From f56e9eef6e90c17f43ebaaef8a7f7f50f9cd2d6e Mon Sep 17 00:00:00 2001 From: Malte Ubl Date: Fri, 27 Mar 2026 12:31:52 -0700 Subject: [PATCH 1/4] feat: executor tool invocation for js-exec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add `executor` option to `BashOptions` that makes a `tools` proxy available to JavaScript code running in js-exec. Tool calls are synchronous from the QuickJS sandbox's perspective — they block via SharedArrayBuffer/Atomics while the host resolves them asynchronously. Natively integrates with `@executor/sdk` — the `setup` callback receives the SDK instance for adding OpenAPI, GraphQL, and MCP sources that auto-discover tools. `onToolApproval` controls which tools are allowed. ## Native SDK integration (OpenAPI, GraphQL, MCP) ```ts import { Bash } from "just-bash"; const bash = new Bash({ executor: { setup: async (sdk) => { await sdk.sources.add({ kind: "openapi", endpoint: "https://petstore3.swagger.io/api/v3", specUrl: "https://petstore3.swagger.io/api/v3/openapi.json", name: "petstore", }); await sdk.sources.add({ kind: "graphql", endpoint: "https://countries.trevorblades.com/graphql", name: "countries", }); await sdk.sources.add({ kind: "mcp", endpoint: "https://mcp.example.com/sse", name: "internal", transport: "sse", }); }, onToolApproval: async (request) => { // Auto-approve reads, require confirmation for writes/deletes if (request.operationKind === "read") return { approved: true }; const ok = await promptUser( `Allow ${request.toolPath} (${request.operationKind})?` ); return ok ? { approved: true } : { approved: false, reason: "denied" }; }, }, }); await bash.exec(`js-exec -c ' const pets = await tools.petstore.findPetsByStatus({ status: "available" }); const country = await tools.countries.country({ code: "US" }); const docs = await tools.internal.searchDocs({ query: "deploy" }); console.log(pets.length, "pets,", country.name, ",", docs.hits.length, "docs"); '`); ``` ## Inline tools (no SDK needed) ```ts const bash = new Bash({ executor: { tools: { "math.add": { description: "Add two numbers", execute: (args) => ({ sum: args.a + args.b }), }, "db.query": { execute: async (args) => { const rows = await pg.query(args.sql); return { rows }; }, }, }, }, }); await bash.exec(`js-exec -c ' const sum = await tools.math.add({ a: 3, b: 4 }); console.log(sum.sum); const data = await tools.db.query({ sql: "SELECT * FROM users" }); for (const row of data.rows) console.log(row.name); '`); ``` ## Both: inline tools + SDK sources ```ts const bash = new Bash({ executor: { tools: { "util.timestamp": { execute: () => ({ ts: Math.floor(Date.now() / 1000) }), }, }, setup: async (sdk) => { await sdk.sources.add({ kind: "openapi", endpoint: "...", specUrl: "...", name: "api" }); }, onToolApproval: "allow-all", }, }); ``` ## Implementation - New INVOKE_TOOL (400) opcode in the SharedArrayBuffer bridge protocol - SyncBackend.invokeTool() — worker-side sync call via Atomics.wait - BridgeHandler accepts optional invokeTool callback, handles new opcode - Worker registers __invokeTool native function + tools Proxy when hasExecutorTools is set - Tool invoker threads from BashOptions → Bash → InterpreterOptions → InterpreterContext → CommandContext → js-exec → BridgeHandler → worker - executor.setup lazily initializes @executor/sdk on first exec (dynamic import — SDK is only loaded when setup is provided) - executor.onToolApproval wired through to createExecutor() — controls approval for SDK-discovered tools (inline tools are always allowed) - SDK's CodeExecutor runtime delegates to js-exec's executeForExecutor - Full executor mode (log capture + result capture) available via executorMode flag for direct SDK integration Co-Authored-By: Claude Opus 4.6 (1M context) --- knip.json | 2 +- package.json | 2 + pnpm-lock.yaml | 13 +- src/Bash.ts | 214 +++- src/commands/js-exec/README.md | 85 ++ .../examples/11-executor-openapi-tools.js | 73 ++ src/commands/js-exec/executor-adapter.ts | 121 +++ src/commands/js-exec/js-exec.executor.test.ts | 194 ++++ src/commands/js-exec/js-exec.ts | 135 +++ src/commands/js-exec/worker.ts | 278 +++++ src/commands/worker-bridge/bridge-handler.ts | 34 + src/commands/worker-bridge/protocol.ts | 2 + src/commands/worker-bridge/sync-backend.ts | 15 + src/interpreter/builtin-dispatch.ts | 1 + src/interpreter/interpreter.ts | 3 + src/interpreter/types.ts | 5 + src/types.ts | 6 + vendor/executor/executor-sdk-bundle.d.mts | 18 + vendor/executor/executor-sdk-bundle.mjs | 972 ++++++++++++++++++ 19 files changed, 2168 insertions(+), 5 deletions(-) create mode 100644 src/commands/js-exec/examples/11-executor-openapi-tools.js create mode 100644 src/commands/js-exec/executor-adapter.ts create mode 100644 src/commands/js-exec/js-exec.executor.test.ts create mode 100644 vendor/executor/executor-sdk-bundle.d.mts create mode 100644 vendor/executor/executor-sdk-bundle.mjs diff --git a/knip.json b/knip.json index 12659b7a..545e49f5 100644 --- a/knip.json +++ b/knip.json @@ -1,6 +1,6 @@ { "$schema": "https://unpkg.com/knip@5/schema.json", - "entry": ["src/cli/just-bash.ts"], + "entry": ["src/cli/just-bash.ts", "src/commands/js-exec/executor-adapter.ts"], "project": ["src/**/*.ts"], "ignore": [ "src/**/*.test.ts", diff --git a/package.json b/package.json index f234cb67..3ae0b19a 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "dist/sandbox/*.d.ts", "dist/utils/*.d.ts", "vendor/cpython-emscripten/", + "vendor/executor/", "README.md", "dist/AGENTS.md" ], @@ -107,6 +108,7 @@ "dependencies": { "compressjs": "^1.0.3", "diff": "^8.0.2", + "effect": "^3.21.0", "fast-xml-parser": "^5.3.3", "file-type": "^21.2.0", "ini": "^6.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 29be728d..7ab704bf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,9 @@ dependencies: diff: specifier: ^8.0.2 version: 8.0.2 + effect: + specifier: ^3.21.0 + version: 3.21.0 fast-xml-parser: specifier: ^5.3.3 version: 5.3.3 @@ -924,7 +927,6 @@ packages: /@standard-schema/spec@1.1.0: resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} - dev: true /@tokenizer/inflate@0.4.1: resolution: {integrity: sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA==} @@ -1213,6 +1215,13 @@ packages: engines: {node: '>=0.3.1'} dev: false + /effect@3.21.0: + resolution: {integrity: sha512-PPN80qRokCd1f015IANNhrwOnLO7GrrMQfk4/lnZRE/8j7UPWrNNjPV0uBrZutI/nHzernbW+J0hdqQysHiSnQ==} + dependencies: + '@standard-schema/spec': 1.1.0 + fast-check: 3.23.2 + dev: false + /end-of-stream@1.4.5: resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==} requiresBuild: true @@ -1282,7 +1291,6 @@ packages: engines: {node: '>=8.0.0'} dependencies: pure-rand: 6.1.0 - dev: true /fast-glob@3.3.3: resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==} @@ -1704,7 +1712,6 @@ packages: /pure-rand@6.1.0: resolution: {integrity: sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==} - dev: true /queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} diff --git a/src/Bash.ts b/src/Bash.ts index b6983262..5b4cc2a9 100644 --- a/src/Bash.ts +++ b/src/Bash.ts @@ -92,6 +92,77 @@ export interface JavaScriptConfig { bootstrap?: string; } +/** Tool definition for the executor integration */ +export interface ExecutorToolDef { + description?: string; + // biome-ignore lint/suspicious/noExplicitAny: matches @executor/sdk SimpleTool signature + execute: (...args: any[]) => unknown; +} + +/** + * Executor SDK instance type (from @executor/sdk). + * Kept as an opaque type to avoid requiring the SDK at import time. + */ +export interface ExecutorSDKHandle { + execute: ( + code: string, + ) => Promise<{ result: unknown; error?: string; logs?: string[] }>; + sources: { + add: ( + input: Record, + options?: Record, + ) => Promise; + list: () => Promise; + [key: string]: unknown; + }; + close: () => Promise; + [key: string]: unknown; +} + +/** Executor configuration for js-exec tool invocation */ +export interface ExecutorConfig { + /** Tool map: keys are dot-separated paths (e.g. "math.add"), values are tool definitions */ + tools?: Record; + /** + * Async setup function that receives the @executor/sdk instance. + * Use this to add OpenAPI, GraphQL, or MCP sources that auto-discover tools. + * When provided, js-exec delegates execution to the SDK pipeline + * (which handles tool approval, auth flows, and interaction loops). + * + * Requires @executor/sdk as a dependency. + * + * @example + * ```ts + * const bash = new Bash({ + * executor: { + * setup: async (sdk) => { + * await sdk.sources.add({ kind: "openapi", endpoint: "https://api.example.com", specUrl: "https://api.example.com/openapi.json", name: "myapi" }); + * await sdk.sources.add({ kind: "mcp", endpoint: "https://mcp.example.com/sse", name: "tools" }); + * }, + * }, + * }); + * ``` + */ + setup?: (sdk: ExecutorSDKHandle) => Promise; + /** + * Tool approval callback for the @executor/sdk pipeline. + * Called when a tool invocation requires approval. + * Defaults to "allow-all" when not provided. + */ + onToolApproval?: + | "allow-all" + | "deny-all" + | ((request: { + toolPath: string; + sourceId: string; + sourceName: string; + operationKind: "read" | "write" | "delete" | "execute" | "unknown"; + args: unknown; + reason: string; + approvalLabel: string | null; + }) => Promise<{ approved: true } | { approved: false; reason?: string }>); +} + export interface BashOptions { files?: InitialFiles; env?: Record; @@ -137,6 +208,13 @@ export interface BashOptions { * Disabled by default. Can be a boolean or a config object with bootstrap code. */ javascript?: boolean | JavaScriptConfig; + /** + * Executor configuration for tool invocation in js-exec. + * When provided, code running in js-exec has access to a `tools` proxy + * (e.g. `tools.math.add({ a: 1, b: 2 })`). + * Implicitly enables JavaScript if not already enabled. + */ + executor?: ExecutorConfig; /** * Optional list of command names to register. * If not provided, all built-in commands are available. @@ -277,6 +355,14 @@ export class Bash { private defenseInDepthConfig?: DefenseInDepthConfig | boolean; private coverageWriter?: FeatureCoverageWriter; private jsBootstrapCode?: string; + private executorInvokeTool?: ( + path: string, + argsJson: string, + ) => Promise; + private executorSetup?: (sdk: ExecutorSDKHandle) => Promise; + private executorApproval?: ExecutorConfig["onToolApproval"]; + private executorSDK?: ExecutorSDKHandle; + private executorInitPromise?: Promise; // biome-ignore lint/suspicious/noExplicitAny: type-erased plugin storage for untyped API private transformPlugins: TransformPlugin[] = []; @@ -450,7 +536,8 @@ export class Bash { } // Register javascript commands only when explicitly enabled - if (options.javascript) { + // (executor config implicitly enables javascript) + if (options.javascript || options.executor) { for (const cmd of createJavaScriptCommands()) { this.registerCommand(cmd); } @@ -464,6 +551,36 @@ export class Bash { } } + // Set up executor tool invoker when executor config is provided + if (options.executor?.tools) { + const tools = options.executor.tools; + this.executorInvokeTool = async ( + path: string, + argsJson: string, + ): Promise => { + if (!Object.hasOwn(tools, path)) { + throw new Error(`Unknown tool: ${path}`); + } + const tool = tools[path]; + let args: unknown; + try { + args = argsJson ? JSON.parse(argsJson) : undefined; + } catch { + args = undefined; + } + const result = await tool.execute(args); + return result !== undefined ? JSON.stringify(result) : ""; + }; + } + + // Store SDK setup function and approval callback for lazy initialization + if (options.executor?.setup) { + this.executorSetup = options.executor.setup; + } + if (options.executor?.onToolApproval) { + this.executorApproval = options.executor.onToolApproval; + } + // Register custom commands (after built-ins so they can override) if (options.customCommands) { for (const cmd of options.customCommands) { @@ -523,10 +640,104 @@ export class Bash { return result; } + /** + * Lazily initialize the @executor/sdk when setup is configured. + * Creates the SDK instance, runs the user's setup function, and wires + * the SDK's tool invocation into the executorInvokeTool callback. + */ + private async ensureExecutorReady(): Promise { + if (!this.executorSetup || this.executorSDK) return; + + // Deduplicate concurrent init calls + if (this.executorInitPromise) { + await this.executorInitPromise; + return; + } + + this.executorInitPromise = (async () => { + // Dynamic import — vendored SDK bundle + effect only loaded when setup is used + const { createExecutor } = await import( + "../vendor/executor/executor-sdk-bundle.mjs" + ); + const { executeForExecutor } = await import( + "./commands/js-exec/js-exec.js" + ); + const EffectMod = await import("effect/Effect"); + + const self = this; + // biome-ignore lint/suspicious/noExplicitAny: CodeExecutor + ToolInvoker types cross package boundaries; validated at runtime by the SDK + const runtime: any = { + // biome-ignore lint/suspicious/noExplicitAny: ToolInvoker type from @executor/sdk + execute(code: string, toolInvoker: any) { + return EffectMod.tryPromise(() => { + const ctx = { + fs: self.fs, + cwd: self.state.cwd, + env: self.state.env, + stdin: "", + limits: self.limits, + }; + const invokeTool = async ( + path: string, + argsJson: string, + ): Promise => { + let args: unknown; + try { + args = argsJson ? JSON.parse(argsJson) : undefined; + } catch { + args = undefined; + } + const result = await EffectMod.runPromise( + toolInvoker.invoke({ path, args }), + ); + return result !== undefined ? JSON.stringify(result) : ""; + }; + return executeForExecutor(code, ctx, invokeTool); + }); + }, + }; + + const sdk = await createExecutor({ + runtime, + storage: "memory", + onToolApproval: this.executorApproval ?? "allow-all", + }); + + // Run user setup (add sources, configure policies, etc.) + if (this.executorSetup) { + await this.executorSetup(sdk as unknown as ExecutorSDKHandle); + } + this.executorSDK = sdk as unknown as ExecutorSDKHandle; + + // Wire SDK execution as the tool invoker for js-exec + this.executorInvokeTool = async ( + path: string, + argsJson: string, + ): Promise => { + // Route through the SDK's execute to get the tool invoker pipeline. + // The SDK creates the tool invoker per-execution, so we run a small + // code snippet that invokes the tool and returns the result. + const escapedPath = path.replace(/\\/g, "\\\\").replace(/'/g, "\\'"); + const sdkHandle = this.executorSDK; + if (!sdkHandle) throw new Error("Executor SDK not initialized"); + const result = await sdkHandle.execute( + `return await tools.${escapedPath}(${argsJson || "{}"})`, + ); + if (result.error) throw new Error(result.error); + return result.result !== undefined ? JSON.stringify(result.result) : ""; + }; + })(); + + await this.executorInitPromise; + } + async exec( commandLine: string, options?: ExecOptions, ): Promise { + // Lazily initialize executor SDK if setup was provided + await this.ensureExecutorReady(); + if (this.state.callDepth === 0) { this.state.commandCount = 0; } @@ -666,6 +877,7 @@ export class Bash { coverage: this.coverageWriter, requireDefenseContext: defenseBox?.isEnabled() === true, jsBootstrapCode: this.jsBootstrapCode, + executorInvokeTool: this.executorInvokeTool, }; const interpreter = new Interpreter(interpreterOptions, execState); diff --git a/src/commands/js-exec/README.md b/src/commands/js-exec/README.md index 5a637b9e..899f364d 100644 --- a/src/commands/js-exec/README.md +++ b/src/commands/js-exec/README.md @@ -236,6 +236,91 @@ js-exec app.ts js-exec --strip-types -c "const x: number = 5; console.log(x)" ``` +## Executor Tools + +When the `Bash` constructor is given an `executor` config, code running in js-exec gets access to a `tools` proxy. Tool calls are synchronous from the script's perspective — they block the QuickJS sandbox while the host resolves them asynchronously. + +### Setup + +```ts +import { Bash } from "just-bash"; + +const bash = new Bash({ + executor: { + tools: { + "math.add": { + description: "Add two numbers", + execute: (args) => ({ sum: args.a + args.b }), + }, + "db.query": { + description: "Run a SQL query", + execute: async (args) => { + const rows = await queryDatabase(args.sql); + return { rows }; + }, + }, + }, + }, +}); +``` + +Passing `executor` implicitly enables `javascript: true` — you don't need both. + +### Using tools in code + +Tools are accessed through a global `tools` proxy. Property access builds the tool path, and calling invokes it: + +```js +// tools.(args) — path matches the key in the tools map +const result = await tools.math.add({ a: 3, b: 4 }); +console.log(result.sum); // 7 + +const data = await tools.db.query({ sql: "SELECT * FROM users" }); +for (const row of data.rows) { + console.log(row.name); +} +``` + +`await` is recommended for consistency with `@executor/sdk` patterns. Tool calls are synchronous under the hood (the worker blocks via `Atomics.wait`), so `await` on the return value is a no-op — but it keeps code portable between just-bash and the SDK's own runtimes. + +Deeply nested paths work — `await tools.a.b.c.d()` invokes the tool registered as `"a.b.c.d"`. + +### Tool definition + +Each tool has an `execute` function and an optional `description`: + +```ts +{ + description?: string; + execute: (...args: unknown[]) => unknown; // sync or async +} +``` + +- `execute` receives the arguments object passed from the script +- Return value is JSON-serialized back to the script +- Returning `undefined` gives `undefined` in the script +- Throwing an error propagates to the script as a catchable exception +- `async` functions are awaited on the host before returning to the script + +### Compatibility with @executor/sdk + +The tool definition shape matches `@executor/sdk`'s `SimpleTool` type. You can pass the same tools map to both: + +```ts +const tools = { + "github.issues.list": { + description: "List GitHub issues", + execute: async (args) => { /* ... */ }, + }, +}; + +// Use with just-bash +const bash = new Bash({ executor: { tools } }); + +// Use with @executor/sdk +const executor = await createExecutor({ tools }); +``` + ## Limits - **Memory**: 64 MB per execution diff --git a/src/commands/js-exec/examples/11-executor-openapi-tools.js b/src/commands/js-exec/examples/11-executor-openapi-tools.js new file mode 100644 index 00000000..46e8d847 --- /dev/null +++ b/src/commands/js-exec/examples/11-executor-openapi-tools.js @@ -0,0 +1,73 @@ +/** + * Example: Native @executor/sdk integration via the Bash constructor + * + * The SDK discovers tools from OpenAPI, GraphQL, and MCP sources. + * js-exec runs user code in a QuickJS sandbox — tool calls are bridged + * back to the SDK, which handles HTTP, auth, and schema validation. + * + * Requires: @executor/sdk and effect as dependencies. + */ + +// @ts-check — this is a JS file with JSDoc types for illustration + +import { Bash } from "just-bash"; + +const bash = new Bash({ + executor: { + // Inline tools work alongside SDK-discovered tools + tools: { + "util.timestamp": { + description: "Get the current Unix timestamp", + execute: () => ({ ts: Math.floor(Date.now() / 1000) }), + }, + }, + + // Async setup receives the @executor/sdk instance. + // Add OpenAPI, GraphQL, or MCP sources here. + setup: async (sdk) => { + // OpenAPI: discovers all operations from the spec + await sdk.sources.add({ + kind: "openapi", + endpoint: "https://petstore3.swagger.io/api/v3", + specUrl: "https://petstore3.swagger.io/api/v3/openapi.json", + name: "petstore", + }); + + // GraphQL: introspects the schema for queries/mutations + await sdk.sources.add({ + kind: "graphql", + endpoint: "https://countries.trevorblades.com/graphql", + name: "countries", + }); + + // MCP: connects to a Model Context Protocol server + await sdk.sources.add({ + kind: "mcp", + endpoint: "https://mcp.example.com/sse", + name: "internal", + transport: "sse", + }); + }, + }, +}); + +// All tools — inline + SDK-discovered — are available as tools.* +const result = await bash.exec(`js-exec -c ' + // Inline tool + const now = await tools.util.timestamp(); + console.log("Timestamp:", now.ts); + + // OpenAPI-discovered tool (from petstore spec) + const pets = await tools.petstore.findPetsByStatus({ status: "available" }); + console.log("Available pets:", pets.length); + + // GraphQL-discovered tool (from introspection) + const country = await tools.countries.country({ code: "US" }); + console.log("Country:", country.name); + + // MCP-discovered tool (from server capabilities) + const docs = await tools.internal.searchDocs({ query: "deployment" }); + console.log("Docs found:", docs.hits.length); +'`); + +console.log(result.stdout); diff --git a/src/commands/js-exec/executor-adapter.ts b/src/commands/js-exec/executor-adapter.ts new file mode 100644 index 00000000..8ecf4d78 --- /dev/null +++ b/src/commands/js-exec/executor-adapter.ts @@ -0,0 +1,121 @@ +/** + * Adapter for using js-exec as a CodeExecutor runtime for @executor/sdk. + * + * This module exports a Promise-based executor that can be wrapped with + * Effect.tryPromise() to satisfy the CodeExecutor interface. + * + * Usage with @executor/sdk: + * + * ```ts + * import { createJustBashCodeExecutor } from 'just-bash/executor'; + * import { createExecutor } from '@executor/sdk'; + * import type { CodeExecutor } from '@executor/sdk'; + * import * as Effect from 'effect/Effect'; + * + * const jb = createJustBashCodeExecutor(); + * + * const codeExecutor: CodeExecutor = { + * execute: (code, toolInvoker) => + * Effect.tryPromise(() => + * jb.execute(code, (path, args) => + * Effect.runPromise(toolInvoker.invoke({ path, args })) + * ) + * ), + * }; + * + * const executor = await createExecutor({ + * runtime: codeExecutor, + * tools: { ... }, + * }); + * ``` + */ + +import { InMemoryFs } from "../../fs/in-memory-fs/in-memory-fs.js"; +import type { IFileSystem } from "../../fs/interface.js"; +import { resolveLimits } from "../../limits.js"; +import type { SecureFetch } from "../../network/index.js"; +import type { CommandContext } from "../../types.js"; +import { type ExecutorResult, executeForExecutor } from "./js-exec.js"; + +export interface JustBashExecutorOptions { + /** Virtual filesystem for code to access. Defaults to an empty InMemoryFs. */ + fs?: IFileSystem; + /** Working directory inside the sandbox. Defaults to /home/user. */ + cwd?: string; + /** Environment variables available to code. Defaults to empty. */ + env?: Record; + /** Network fetch function. Defaults to undefined (no network). */ + fetch?: SecureFetch; +} + +export interface JustBashCodeExecutor { + /** + * Execute code with tool invocation support. + * + * @param code - JavaScript code to execute. Can use `await` and `return`. + * Tools are available as `tools.namespace.method(args)`. + * @param invokeTool - Callback to handle tool invocations. + * Receives (path, args) and should return the tool result. + * @returns ExecutorResult with result, error, and captured logs. + */ + execute( + code: string, + invokeTool: (path: string, args: unknown) => Promise, + ): Promise; +} + +/** + * Create a js-exec based code executor for use with @executor/sdk. + * + * The executor runs JavaScript code in a QuickJS sandbox with: + * - A `tools` proxy for invoking registered tools + * - Console output captured to `logs` array + * - Return value captured in `result` + * - Full Node.js-compatible module system (fs, path, etc.) + */ +export function createJustBashCodeExecutor( + options?: JustBashExecutorOptions, +): JustBashCodeExecutor { + const fs = options?.fs ?? new InMemoryFs(); + const cwd = options?.cwd ?? "/home/user"; + const env = options?.env ?? (Object.create(null) as Record); + const fetch = options?.fetch; + + return { + async execute( + code: string, + invokeTool: (path: string, args: unknown) => Promise, + ): Promise { + const envMap = new Map(); + for (const [k, v] of Object.entries(env)) { + envMap.set(k, v); + } + + const ctx: CommandContext = { + fs, + cwd, + env: envMap, + stdin: "", + fetch, + limits: resolveLimits(), + }; + + // Bridge between the Promise-based invokeTool and the JSON-string protocol + const invokeToolBridge = async ( + path: string, + argsJson: string, + ): Promise => { + let args: unknown; + try { + args = argsJson ? JSON.parse(argsJson) : undefined; + } catch { + args = undefined; + } + const result = await invokeTool(path, args); + return result !== undefined ? JSON.stringify(result) : ""; + }; + + return executeForExecutor(code, ctx, invokeToolBridge); + }, + }; +} diff --git a/src/commands/js-exec/js-exec.executor.test.ts b/src/commands/js-exec/js-exec.executor.test.ts new file mode 100644 index 00000000..bfc0f993 --- /dev/null +++ b/src/commands/js-exec/js-exec.executor.test.ts @@ -0,0 +1,194 @@ +import { describe, expect, it } from "vitest"; +import { Bash } from "../../Bash.js"; + +describe("js-exec executor tools", () => { + function createBashWithTools() { + return new Bash({ + executor: { + tools: { + "math.add": { + description: "Add two numbers", + execute: (args: { a: number; b: number }) => ({ + sum: args.a + args.b, + }), + }, + "math.multiply": { + description: "Multiply two numbers", + execute: (args: { a: number; b: number }) => ({ + product: args.a * args.b, + }), + }, + "echo.back": { + execute: (args: unknown) => args, + }, + }, + }, + }); + } + + it("should call a tool and print the result", async () => { + const bash = createBashWithTools(); + const r = await bash.exec( + `js-exec -c 'const r = tools.math.add({a:3,b:4}); console.log(r.sum)'`, + ); + expect(r.stdout).toBe("7\n"); + expect(r.exitCode).toBe(0); + }); + + it("should chain multiple tool calls", async () => { + const bash = createBashWithTools(); + const r = await bash.exec( + `js-exec -c 'const s = tools.math.add({a:10,b:20}); const p = tools.math.multiply({a:s.sum,b:3}); console.log(p.product)'`, + ); + expect(r.stdout).toBe("90\n"); + expect(r.exitCode).toBe(0); + }); + + it("should return structured JSON from tool", async () => { + const bash = createBashWithTools(); + const r = await bash.exec( + `js-exec -c 'console.log(JSON.stringify(tools.math.add({a:1,b:2})))'`, + ); + expect(r.stdout).toBe('{"sum":3}\n'); + expect(r.exitCode).toBe(0); + }); + + it("should error on unknown tool", async () => { + const bash = createBashWithTools(); + const r = await bash.exec( + `js-exec -c 'try { tools.nope.missing(); } catch(e) { console.error(e.message); }'`, + ); + expect(r.stderr).toContain("Unknown tool: nope.missing"); + expect(r.exitCode).toBe(0); + }); + + it("should support deeply nested tool paths", async () => { + const bash = new Bash({ + executor: { + tools: { + "a.b.c.d": { execute: () => ({ deep: true }) }, + }, + }, + }); + const r = await bash.exec( + `js-exec -c 'console.log(JSON.stringify(tools.a.b.c.d()))'`, + ); + expect(r.stdout).toBe('{"deep":true}\n'); + expect(r.exitCode).toBe(0); + }); + + it("should pass through complex arguments", async () => { + const bash = createBashWithTools(); + const r = await bash.exec( + `js-exec -c 'const r = tools.echo.back({arr:[1,2,3],nested:{x:true}}); console.log(JSON.stringify(r))'`, + ); + expect(r.stdout).toBe('{"arr":[1,2,3],"nested":{"x":true}}\n'); + expect(r.exitCode).toBe(0); + }); + + it("should work with async tool execute functions", async () => { + const bash = new Bash({ + executor: { + tools: { + "async.fetch": { + execute: async (args: { id: number }) => { + return { id: args.id, name: `User ${args.id}` }; + }, + }, + }, + }, + }); + const r = await bash.exec( + `js-exec -c 'const u = tools.async.fetch({id:42}); console.log(u.name)'`, + ); + expect(r.stdout).toBe("User 42\n"); + expect(r.exitCode).toBe(0); + }); + + it("should implicitly enable javascript", async () => { + const bash = new Bash({ + executor: { tools: { "noop.test": { execute: () => ({}) } } }, + }); + // js-exec should be available even without javascript: true + const r = await bash.exec(`js-exec -c 'console.log("works")'`); + expect(r.stdout).toBe("works\n"); + expect(r.exitCode).toBe(0); + }); + + it("should keep console.log going to stdout", async () => { + const bash = createBashWithTools(); + const r = await bash.exec( + `js-exec -c 'console.log("out"); console.error("err")'`, + ); + expect(r.stdout).toBe("out\n"); + expect(r.stderr).toBe("err\n"); + expect(r.exitCode).toBe(0); + }); + + it("should handle tool that returns undefined", async () => { + const bash = new Bash({ + executor: { + tools: { + "void.action": { execute: () => undefined }, + }, + }, + }); + const r = await bash.exec( + `js-exec -c 'const r = tools.void.action(); console.log(typeof r)'`, + ); + expect(r.stdout).toBe("undefined\n"); + expect(r.exitCode).toBe(0); + }); + + it("should handle tool that throws", async () => { + const bash = new Bash({ + executor: { + tools: { + "fail.hard": { + execute: () => { + throw new Error("tool exploded"); + }, + }, + }, + }, + }); + const r = await bash.exec( + `js-exec -c 'try { tools.fail.hard(); } catch(e) { console.error(e.message); }'`, + ); + expect(r.stderr).toContain("tool exploded"); + expect(r.exitCode).toBe(0); + }); + + it("should call tool with no arguments", async () => { + const bash = new Bash({ + executor: { + tools: { + "time.now": { execute: () => ({ ts: 1234567890 }) }, + }, + }, + }); + const r = await bash.exec(`js-exec -c 'console.log(tools.time.now().ts)'`); + expect(r.stdout).toBe("1234567890\n"); + expect(r.exitCode).toBe(0); + }); + + it("should work alongside normal js-exec features", async () => { + const bash = new Bash({ + files: { "/data/test.txt": "hello from file" }, + executor: { + tools: { + "str.upper": { + execute: (args: { s: string }) => ({ + result: args.s.toUpperCase(), + }), + }, + }, + }, + }); + const r = await bash.exec( + `js-exec -c 'const fs = require("fs"); const content = fs.readFileSync("/data/test.txt", "utf8"); const r = tools.str.upper({s: content}); console.log(r.result)'`, + ); + expect(r.stdout).toBe("HELLO FROM FILE\n"); + expect(r.exitCode).toBe(0); + }); +}); diff --git a/src/commands/js-exec/js-exec.ts b/src/commands/js-exec/js-exec.ts index 66dbd974..241cf657 100644 --- a/src/commands/js-exec/js-exec.ts +++ b/src/commands/js-exec/js-exec.ts @@ -435,6 +435,7 @@ async function executeJSInner( ctx.fetch, ctx.limits?.maxOutputSize ?? 0, wrappedExec, + ctx.executorInvokeTool, ); // Network operations need a longer timeout. resolveLimits() always populates @@ -458,6 +459,7 @@ async function executeJSInner( isModule, stripTypes, timeoutMs, + hasExecutorTools: ctx.executorInvokeTool !== undefined, }; // Use deferred pattern to keep queue management outside the Promise constructor @@ -526,6 +528,139 @@ async function executeJSInner( return bridgeOutput; } +/** + * Result from executing code in executor mode. + * Compatible with @executor/sdk's ExecuteResult shape. + */ +export interface ExecutorResult { + result: unknown; + error?: string; + logs?: string[]; +} + +/** + * Execute JavaScript code in executor mode with tool invocation support. + * Used as the runtime for @executor/sdk's CodeExecutor interface. + * + * - Console output is captured to `logs` instead of stdout/stderr + * - Tool calls via `tools.x.y(args)` are routed through `invokeTool` + * - The return value of the code is captured in `result` + */ +export async function executeForExecutor( + code: string, + ctx: CommandContext, + invokeTool: (path: string, argsJson: string) => Promise, +): Promise { + if (jsExecAsyncContext.getStore()) { + return { + result: null, + error: "js-exec: recursive invocation is not supported", + }; + } + + const sharedBuffer = createSharedBuffer(); + + const bridgeHandler = new BridgeHandler( + sharedBuffer, + ctx.fs, + ctx.cwd, + "js-exec", + ctx.fetch, + ctx.limits?.maxOutputSize ?? 0, + undefined, // no exec in executor mode + invokeTool, + ); + + const userTimeout = ctx.limits?.maxJsTimeoutMs ?? DEFAULT_JS_TIMEOUT_MS; + const timeoutMs = ctx.fetch + ? Math.max(userTimeout, DEFAULT_JS_NETWORK_TIMEOUT_MS) + : userTimeout; + + const protocolToken = randomBytes(16).toString("hex"); + + const workerInput: JsExecWorkerInput = { + protocolToken, + sharedBuffer, + jsCode: code, + cwd: ctx.cwd, + env: mapToRecord(ctx.env), + args: [], + executorMode: true, + timeoutMs, + }; + + let resolveWorker!: (result: JsExecWorkerOutput) => void; + const workerPromise = new Promise((resolve) => { + resolveWorker = resolve; + }); + + const queueEntry: QueuedExecution = { + input: workerInput, + resolve: () => {}, + }; + + const timeoutHandle = _setTimeout(() => { + if (currentExecution === queueEntry) { + const workerToTerminate = sharedWorker; + if (workerToTerminate) { + sharedWorker = null; + void workerToTerminate.terminate(); + } + currentExecution = null; + processNextExecution(); + } else { + queueEntry.canceled = true; + if (!currentExecution) { + processNextExecution(); + } + } + queueEntry.resolve({ + success: false, + error: `Execution timeout: exceeded ${timeoutMs}ms limit`, + }); + }, timeoutMs); + + queueEntry.resolve = (result: JsExecWorkerOutput) => { + _clearTimeout(timeoutHandle); + resolveWorker(result); + }; + + executionQueue.push(queueEntry); + processNextExecution(); + + const [, workerResult] = await Promise.all([ + bridgeHandler.run(timeoutMs), + workerPromise.catch((e) => ({ + success: false as const, + error: sanitizeHostErrorMessage(getErrorMessage(e)), + })), + ]); + + // Narrow: the catch path has no executor fields + if ( + "executorResult" in workerResult && + workerResult.executorResult !== undefined + ) { + let parsed: unknown; + try { + parsed = JSON.parse(workerResult.executorResult); + } catch { + parsed = workerResult.executorResult; + } + return { + result: parsed, + logs: workerResult.executorLogs, + }; + } + + return { + result: null, + error: workerResult.error || "Unknown execution error", + logs: + "executorLogs" in workerResult ? workerResult.executorLogs : undefined, + }; +} + export const jsExecCommand: Command = { name: "js-exec", diff --git a/src/commands/js-exec/worker.ts b/src/commands/js-exec/worker.ts index 6749e868..bfc2bcfd 100644 --- a/src/commands/js-exec/worker.ts +++ b/src/commands/js-exec/worker.ts @@ -50,6 +50,10 @@ export interface JsExecWorkerInput { isModule?: boolean; stripTypes?: boolean; timeoutMs?: number; + /** When true, tools proxy is available (console still goes to stdout/stderr) */ + hasExecutorTools?: boolean; + /** When true, runs in full executor mode: tools proxy, log capture, result capture */ + executorMode?: boolean; } export interface JsExecWorkerOutput { @@ -57,6 +61,10 @@ export interface JsExecWorkerOutput { success: boolean; error?: string; defenseStats?: WorkerDefenseStats; + /** JSON-serialized return value (executor mode only) */ + executorResult?: string; + /** Captured console logs (executor mode only) */ + executorLogs?: string[]; } let quickjsModule: QuickJSWASMModule | null = null; @@ -771,6 +779,28 @@ function setupContext( context.setProp(context.global, "__execArgs", execArgsFn); execArgsFn.dispose(); + // --- tool invocation (executor tools or executor mode) --- + if (input.hasExecutorTools || input.executorMode) { + const invokeToolFn = context.newFunction( + "__invokeTool", + (pathHandle: QuickJSHandle, argsHandle: QuickJSHandle) => { + const path = context.getString(pathHandle); + const argsJson = context.getString(argsHandle); + try { + const resultJson = backend.invokeTool(path, argsJson); + return context.newString(resultJson); + } catch (e) { + return throwError( + context, + (e as Error).message || "tool invocation failed", + ); + } + }, + ); + context.setProp(context.global, "__invokeTool", invokeToolFn); + invokeToolFn.dispose(); + } + // --- env --- const envObj = jsToHandle(context, input.env); context.setProp(context.global, "env", envObj); @@ -1065,6 +1095,103 @@ async function initializeWithDefense(): Promise { }); } +/** + * JavaScript source that sets up just the tools proxy (no console override). + * Used when hasExecutorTools is true but executorMode is false. + * Console output still goes to stdout/stderr normally. + */ +const TOOLS_ONLY_SETUP_SOURCE = `(function() { + globalThis.tools = (function makeProxy(path) { + return new Proxy(function(){}, { + get: function(_t, prop) { + if (prop === 'then' || typeof prop === 'symbol') return undefined; + return makeProxy(path.concat([String(prop)])); + }, + apply: function(_t, _this, args) { + var toolPath = path.join('.'); + if (!toolPath) throw new Error('Tool path missing in invocation'); + var argsJson = args[0] !== undefined ? JSON.stringify(args[0]) : '{}'; + var resultJson = globalThis.__invokeTool(toolPath, argsJson); + return resultJson !== undefined && resultJson !== '' ? JSON.parse(resultJson) : undefined; + } + }); + })([]); +})();`; + +/** + * JavaScript source that sets up the full executor environment inside QuickJS. + * - Overrides console to capture logs to an array + * - Creates a tools proxy that calls __invokeTool via the SAB bridge + * Runs after sandbox hardening so Proxy/object literals still work. + */ +const EXECUTOR_SETUP_SOURCE = `(function() { + var __logs = []; + globalThis[Symbol.for('jb:executorLogs')] = __logs; + + var _fmt = function(v) { + if (typeof v === 'string') return v; + try { return JSON.stringify(v); } + catch(e) { return String(v); } + }; + + globalThis.console = { + log: function() { var a = []; for(var i=0;i", + ); + if (logsResult.error) { + logsResult.error.dispose(); + return []; + } + const logs = context.dump(logsResult.value) as string[]; + logsResult.value.dispose(); + return Array.isArray(logs) ? logs : []; +} + +/** + * Read a property from a QuickJS handle and dump its value. + */ +function readPropDump( + context: QuickJSContext, + handle: QuickJSHandle, + key: string, +): unknown { + const prop = context.getProp(handle, key); + try { + return context.dump(prop); + } finally { + prop.dispose(); + } +} + async function executeCode( input: JsExecWorkerInput, ): Promise { @@ -1304,6 +1431,157 @@ async function executeCode( bootstrapResult.value.dispose(); } + // --- Tools-only setup: tools proxy without console/result capture --- + if (input.hasExecutorTools && !input.executorMode) { + const toolsSetupResult = context.evalCode( + TOOLS_ONLY_SETUP_SOURCE, + "", + ); + if (toolsSetupResult.error) { + toolsSetupResult.error.dispose(); + } else { + toolsSetupResult.value.dispose(); + } + } + + // --- Executor mode: tools proxy, log capture, result capture --- + if (input.executorMode) { + const executorSetupResult = context.evalCode( + EXECUTOR_SETUP_SOURCE, + "", + ); + if (executorSetupResult.error) { + const errVal = context.dump(executorSetupResult.error); + executorSetupResult.error.dispose(); + backend.exit(1); + return { + success: true, + error: formatError(errVal), + executorLogs: [], + }; + } + executorSetupResult.value.dispose(); + + // Wrap user code in async IIFE to support await and return values + const wrappedCode = `(async () => {\n${input.jsCode}\n})()`; + const evalResult = context.evalCode(wrappedCode, ""); + + if (evalResult.error) { + const errorVal = context.dump(evalResult.error); + evalResult.error.dispose(); + const errorMsg = formatError(errorVal); + backend.exit(1); + return { + success: true, + executorLogs: readExecutorLogs(context), + error: errorMsg, + }; + } + + // Track promise resolution via state object + context.setProp(context.global, "__executorPromise", evalResult.value); + evalResult.value.dispose(); + + const stateResult = context.evalCode( + [ + "(function(p){", + " var s = { v: void 0, e: void 0, settled: false };", + " var fmtErr = function(e) {", + " if (e && typeof e === 'object') {", + " var m = typeof e.message === 'string' ? e.message : '';", + " var st = typeof e.stack === 'string' ? e.stack : '';", + " if (m && st) return st.indexOf(m) === -1 ? m + '\\n' + st : st;", + " if (m) return m; if (st) return st;", + " }", + " return String(e);", + " };", + " p.then(", + " function(v){ s.v = v; s.settled = true; },", + " function(e){ s.e = fmtErr(e); s.settled = true; }", + " );", + " return s;", + "})(__executorPromise)", + ].join("\n"), + "", + ); + + if (stateResult.error) { + const errorVal = context.dump(stateResult.error); + stateResult.error.dispose(); + backend.exit(1); + return { + success: true, + executorLogs: readExecutorLogs(context), + error: formatError(errorVal), + }; + } + + const stateHandle = stateResult.value; + + // Drain pending jobs (may block on tool calls via SAB bridge) + const pendingResult = runtime.executePendingJobs(); + if ("error" in pendingResult && pendingResult.error) { + const errorVal = context.dump(pendingResult.error); + pendingResult.error.dispose(); + const rawMsg = + typeof errorVal === "object" && + errorVal !== null && + "message" in errorVal + ? (errorVal as { message: string }).message + : String(errorVal); + if (rawMsg !== "__EXIT__") { + stateHandle.dispose(); + backend.exit(1); + return { + success: true, + executorLogs: readExecutorLogs(context), + error: formatError(errorVal), + }; + } + } + + // Read resolved state + const settled = readPropDump(context, stateHandle, "settled"); + const value = readPropDump(context, stateHandle, "v"); + const stateError = readPropDump(context, stateHandle, "e"); + stateHandle.dispose(); + + const logs = readExecutorLogs(context); + + if (!settled) { + backend.exit(0); + return { + success: true, + executorLogs: logs, + error: "Execution did not settle", + }; + } + + if (typeof stateError !== "undefined") { + backend.exit(0); + return { + success: true, + executorLogs: logs, + error: String(stateError), + }; + } + + // Serialize result + let resultJson: string | undefined; + try { + resultJson = value !== undefined ? JSON.stringify(value) : undefined; + } catch { + resultJson = undefined; + } + + backend.exit(0); + return { + success: true, + executorResult: resultJson, + executorLogs: logs, + }; + } + // Run user code const filename = input.scriptPath || ""; let jsCode = input.jsCode; diff --git a/src/commands/worker-bridge/bridge-handler.ts b/src/commands/worker-bridge/bridge-handler.ts index 9a2020a3..d97de265 100644 --- a/src/commands/worker-bridge/bridge-handler.ts +++ b/src/commands/worker-bridge/bridge-handler.ts @@ -48,6 +48,9 @@ export class BridgeHandler { private exec: | ((command: string, options: CommandExecOptions) => Promise) | undefined = undefined, + private invokeTool: + | ((path: string, argsJson: string) => Promise) + | undefined = undefined, ) { this.protocol = new ProtocolBuffer(sharedBuffer); } @@ -195,6 +198,9 @@ export class BridgeHandler { case OpCode.EXEC_COMMAND: await this.handleExecCommand(); break; + case OpCode.INVOKE_TOOL: + await this.handleInvokeTool(); + break; default: this.protocol.setErrorCode(ErrorCode.IO_ERROR); this.protocol.setStatus(Status.ERROR); @@ -584,6 +590,34 @@ export class BridgeHandler { } } + private async handleInvokeTool(): Promise { + const invokeToolFn = this.invokeTool; + if (!invokeToolFn) { + this.protocol.setErrorCode(ErrorCode.IO_ERROR); + this.protocol.setResultFromString( + "Tool invocation not available in this context.", + ); + this.protocol.setStatus(Status.ERROR); + return; + } + + const path = this.protocol.getPath(); + const argsJson = this.protocol.getDataAsString(); + + try { + const resultJson = await this.raceDeadline(() => + invokeToolFn(path, argsJson), + ); + this.protocol.setResultFromString(resultJson); + this.protocol.setStatus(Status.SUCCESS); + } catch (e) { + const message = e instanceof Error ? e.message : String(e); + this.protocol.setErrorCode(ErrorCode.IO_ERROR); + this.protocol.setResultFromString(message); + this.protocol.setStatus(Status.ERROR); + } + } + private setErrorFromException(e: unknown): void { const rawMessage = e instanceof Error ? e.message : String(e); const message = sanitizeErrorMessage(rawMessage); diff --git a/src/commands/worker-bridge/protocol.ts b/src/commands/worker-bridge/protocol.ts index 74e9325a..5b6d71c9 100644 --- a/src/commands/worker-bridge/protocol.ts +++ b/src/commands/worker-bridge/protocol.ts @@ -45,6 +45,8 @@ export const OpCode = { HTTP_REQUEST: 200, // Sub-shell execution EXEC_COMMAND: 300, + // Tool invocation (executor mode) + INVOKE_TOOL: 400, } as const; export type OpCodeType = (typeof OpCode)[keyof typeof OpCode]; diff --git a/src/commands/worker-bridge/sync-backend.ts b/src/commands/worker-bridge/sync-backend.ts index 5e8d4fe0..100dbd3a 100644 --- a/src/commands/worker-bridge/sync-backend.ts +++ b/src/commands/worker-bridge/sync-backend.ts @@ -287,4 +287,19 @@ export class SyncBackend { const responseJson = new TextDecoder().decode(result.result); return JSON.parse(responseJson); } + + /** + * Invoke a tool through the main thread's tool invoker (executor mode). + * Returns the JSON-serialized result. + */ + invokeTool(path: string, argsJson: string): string { + const requestData = argsJson + ? new TextEncoder().encode(argsJson) + : undefined; + const result = this.execSync(OpCode.INVOKE_TOOL, path, requestData); + if (!result.success) { + throw new Error(result.error || "Tool invocation failed"); + } + return new TextDecoder().decode(result.result); + } } diff --git a/src/interpreter/builtin-dispatch.ts b/src/interpreter/builtin-dispatch.ts index 00207174..9990edea 100644 --- a/src/interpreter/builtin-dispatch.ts +++ b/src/interpreter/builtin-dispatch.ts @@ -437,6 +437,7 @@ export async function executeExternalCommand( signal: ctx.state.signal, requireDefenseContext: ctx.requireDefenseContext, jsBootstrapCode: ctx.jsBootstrapCode, + executorInvokeTool: ctx.executorInvokeTool, }; const guardedCmdCtx = createDefenseAwareCommandContext(cmdCtx, commandName); diff --git a/src/interpreter/interpreter.ts b/src/interpreter/interpreter.ts index 3703a185..cd651d3f 100644 --- a/src/interpreter/interpreter.ts +++ b/src/interpreter/interpreter.ts @@ -134,6 +134,8 @@ export interface InterpreterOptions { requireDefenseContext?: boolean; /** Bootstrap JavaScript code for js-exec */ jsBootstrapCode?: string; + /** Tool invoker for executor mode (js-exec) */ + executorInvokeTool?: (path: string, argsJson: string) => Promise; } export class Interpreter { @@ -155,6 +157,7 @@ export class Interpreter { coverage: options.coverage, requireDefenseContext: options.requireDefenseContext ?? false, jsBootstrapCode: options.jsBootstrapCode, + executorInvokeTool: options.executorInvokeTool, }; } diff --git a/src/interpreter/types.ts b/src/interpreter/types.ts index 74106ccf..32233df4 100644 --- a/src/interpreter/types.ts +++ b/src/interpreter/types.ts @@ -444,4 +444,9 @@ export interface InterpreterContext { * Threaded through the context chain instead of shell env. */ jsBootstrapCode?: string; + /** + * Tool invoker for executor mode (js-exec). + * When present, js-exec sets up a `tools` proxy. + */ + executorInvokeTool?: (path: string, argsJson: string) => Promise; } diff --git a/src/types.ts b/src/types.ts index 83dbb186..6e64bf24 100644 --- a/src/types.ts +++ b/src/types.ts @@ -189,6 +189,12 @@ export interface CommandContext { * user access/injection via environment variables. */ jsBootstrapCode?: string; + /** + * Tool invoker for executor mode (js-exec). + * When present, js-exec sets up a `tools` proxy that routes calls through this. + * The function receives (path, argsJson) and returns a JSON result string. + */ + executorInvokeTool?: (path: string, argsJson: string) => Promise; } export interface Command { diff --git a/vendor/executor/executor-sdk-bundle.d.mts b/vendor/executor/executor-sdk-bundle.d.mts new file mode 100644 index 00000000..9d74df14 --- /dev/null +++ b/vendor/executor/executor-sdk-bundle.d.mts @@ -0,0 +1,18 @@ +/** Vendored @executor/sdk bundle — re-exports createExecutor and types */ +export declare function createExecutor(options: { + runtime?: unknown; + storage?: unknown; + tools?: Record unknown }>; + onToolApproval?: unknown; + onInteraction?: unknown; + resolveSecret?: unknown; +}): Promise<{ + execute: (code: string) => Promise<{ result: unknown; error?: string; logs?: string[] }>; + sources: { + add: (input: Record, options?: Record) => Promise; + list: () => Promise; + [key: string]: unknown; + }; + close: () => Promise; + [key: string]: unknown; +}>; diff --git a/vendor/executor/executor-sdk-bundle.mjs b/vendor/executor/executor-sdk-bundle.mjs new file mode 100644 index 00000000..96428c3b --- /dev/null +++ b/vendor/executor/executor-sdk-bundle.mjs @@ -0,0 +1,972 @@ +var $6r=Object.create;var lze=Object.defineProperty;var U6r=Object.getOwnPropertyDescriptor;var z6r=Object.getOwnPropertyNames;var q6r=Object.getPrototypeOf,J6r=Object.prototype.hasOwnProperty;var a0=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,i)=>(typeof require<"u"?require:r)[i]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Rce=(e,r)=>()=>(e&&(r=e(e=0)),r);var dr=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),J7=(e,r)=>{for(var i in r)lze(e,i,{get:r[i],enumerable:!0})},V6r=(e,r,i,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of z6r(r))!J6r.call(e,l)&&l!==i&&lze(e,l,{get:()=>r[l],enumerable:!(s=U6r(r,l))||s.enumerable});return e};var fJ=(e,r,i)=>(i=e!=null?$6r(q6r(e)):{},V6r(r||!e||!e.__esModule?lze(i,"default",{value:e,enumerable:!0}):i,e));var jce=dr(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.regexpCode=Rf.getEsmExportName=Rf.getProperty=Rf.safeStringify=Rf.stringify=Rf.strConcat=Rf.addCodeArg=Rf.str=Rf._=Rf.nil=Rf._Code=Rf.Name=Rf.IDENTIFIER=Rf._CodeOrName=void 0;var Lce=class{};Rf._CodeOrName=Lce;Rf.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var mJ=class extends Lce{constructor(r){if(super(),!Rf.IDENTIFIER.test(r))throw new Error("CodeGen: name must be a valid identifier");this.str=r}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Rf.Name=mJ;var Fw=class extends Lce{constructor(r){super(),this._items=typeof r=="string"?[r]:r}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let r=this._items[0];return r===""||r==='""'}get str(){var r;return(r=this._str)!==null&&r!==void 0?r:this._str=this._items.reduce((i,s)=>`${i}${s}`,"")}get names(){var r;return(r=this._names)!==null&&r!==void 0?r:this._names=this._items.reduce((i,s)=>(s instanceof mJ&&(i[s.str]=(i[s.str]||0)+1),i),{})}};Rf._Code=Fw;Rf.nil=new Fw("");function Xwt(e,...r){let i=[e[0]],s=0;for(;s{"use strict";Object.defineProperty(ak,"__esModule",{value:!0});ak.ValueScope=ak.ValueScopeName=ak.Scope=ak.varKinds=ak.UsedValueState=void 0;var ok=jce(),_ze=class extends Error{constructor(r){super(`CodeGen: "code" for ${r} not defined`),this.value=r.value}},p2e;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(p2e||(ak.UsedValueState=p2e={}));ak.varKinds={const:new ok.Name("const"),let:new ok.Name("let"),var:new ok.Name("var")};var _2e=class{constructor({prefixes:r,parent:i}={}){this._names={},this._prefixes=r,this._parent=i}toName(r){return r instanceof ok.Name?r:this.name(r)}name(r){return new ok.Name(this._newName(r))}_newName(r){let i=this._names[r]||this._nameGroup(r);return`${r}${i.index++}`}_nameGroup(r){var i,s;if(!((s=(i=this._parent)===null||i===void 0?void 0:i._prefixes)===null||s===void 0)&&s.has(r)||this._prefixes&&!this._prefixes.has(r))throw new Error(`CodeGen: prefix "${r}" is not allowed in this scope`);return this._names[r]={prefix:r,index:0}}};ak.Scope=_2e;var d2e=class extends ok.Name{constructor(r,i){super(i),this.prefix=r}setValue(r,{property:i,itemIndex:s}){this.value=r,this.scopePath=(0,ok._)`.${new ok.Name(i)}[${s}]`}};ak.ValueScopeName=d2e;var t4r=(0,ok._)`\n`,dze=class extends _2e{constructor(r){super(r),this._values={},this._scope=r.scope,this.opts={...r,_n:r.lines?t4r:ok.nil}}get(){return this._scope}name(r){return new d2e(r,this._newName(r))}value(r,i){var s;if(i.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let l=this.toName(r),{prefix:d}=l,h=(s=i.key)!==null&&s!==void 0?s:i.ref,S=this._values[d];if(S){let L=S.get(h);if(L)return L}else S=this._values[d]=new Map;S.set(h,l);let b=this._scope[d]||(this._scope[d]=[]),A=b.length;return b[A]=i.ref,l.setValue(i,{property:d,itemIndex:A}),l}getValue(r,i){let s=this._values[r];if(s)return s.get(i)}scopeRefs(r,i=this._values){return this._reduceValues(i,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,ok._)`${r}${s.scopePath}`})}scopeCode(r=this._values,i,s){return this._reduceValues(r,l=>{if(l.value===void 0)throw new Error(`CodeGen: name "${l}" has no value`);return l.value.code},i,s)}_reduceValues(r,i,s={},l){let d=ok.nil;for(let h in r){let S=r[h];if(!S)continue;let b=s[h]=s[h]||new Map;S.forEach(A=>{if(b.has(A))return;b.set(A,p2e.Started);let L=i(A);if(L){let V=this.opts.es5?ak.varKinds.var:ak.varKinds.const;d=(0,ok._)`${d}${V} ${A} = ${L};${this.opts._n}`}else if(L=l?.(A))d=(0,ok._)`${d}${L}${this.opts._n}`;else throw new _ze(A);b.set(A,p2e.Completed)})}return d}};ak.ValueScope=dze});var wp=dr(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0});H_.or=H_.and=H_.not=H_.CodeGen=H_.operators=H_.varKinds=H_.ValueScopeName=H_.ValueScope=H_.Scope=H_.Name=H_.regexpCode=H_.stringify=H_.getProperty=H_.nil=H_.strConcat=H_.str=H_._=void 0;var Wd=jce(),h6=fze(),YM=jce();Object.defineProperty(H_,"_",{enumerable:!0,get:function(){return YM._}});Object.defineProperty(H_,"str",{enumerable:!0,get:function(){return YM.str}});Object.defineProperty(H_,"strConcat",{enumerable:!0,get:function(){return YM.strConcat}});Object.defineProperty(H_,"nil",{enumerable:!0,get:function(){return YM.nil}});Object.defineProperty(H_,"getProperty",{enumerable:!0,get:function(){return YM.getProperty}});Object.defineProperty(H_,"stringify",{enumerable:!0,get:function(){return YM.stringify}});Object.defineProperty(H_,"regexpCode",{enumerable:!0,get:function(){return YM.regexpCode}});Object.defineProperty(H_,"Name",{enumerable:!0,get:function(){return YM.Name}});var g2e=fze();Object.defineProperty(H_,"Scope",{enumerable:!0,get:function(){return g2e.Scope}});Object.defineProperty(H_,"ValueScope",{enumerable:!0,get:function(){return g2e.ValueScope}});Object.defineProperty(H_,"ValueScopeName",{enumerable:!0,get:function(){return g2e.ValueScopeName}});Object.defineProperty(H_,"varKinds",{enumerable:!0,get:function(){return g2e.varKinds}});H_.operators={GT:new Wd._Code(">"),GTE:new Wd._Code(">="),LT:new Wd._Code("<"),LTE:new Wd._Code("<="),EQ:new Wd._Code("==="),NEQ:new Wd._Code("!=="),NOT:new Wd._Code("!"),OR:new Wd._Code("||"),AND:new Wd._Code("&&"),ADD:new Wd._Code("+")};var W7=class{optimizeNodes(){return this}optimizeNames(r,i){return this}},mze=class extends W7{constructor(r,i,s){super(),this.varKind=r,this.name=i,this.rhs=s}render({es5:r,_n:i}){let s=r?h6.varKinds.var:this.varKind,l=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${l};`+i}optimizeNames(r,i){if(r[this.name.str])return this.rhs&&(this.rhs=HZ(this.rhs,r,i)),this}get names(){return this.rhs instanceof Wd._CodeOrName?this.rhs.names:{}}},f2e=class extends W7{constructor(r,i,s){super(),this.lhs=r,this.rhs=i,this.sideEffects=s}render({_n:r}){return`${this.lhs} = ${this.rhs};`+r}optimizeNames(r,i){if(!(this.lhs instanceof Wd.Name&&!r[this.lhs.str]&&!this.sideEffects))return this.rhs=HZ(this.rhs,r,i),this}get names(){let r=this.lhs instanceof Wd.Name?{}:{...this.lhs.names};return h2e(r,this.rhs)}},hze=class extends f2e{constructor(r,i,s,l){super(r,s,l),this.op=i}render({_n:r}){return`${this.lhs} ${this.op}= ${this.rhs};`+r}},gze=class extends W7{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`${this.label}:`+r}},yze=class extends W7{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`break${this.label?` ${this.label}`:""};`+r}},vze=class extends W7{constructor(r){super(),this.error=r}render({_n:r}){return`throw ${this.error};`+r}get names(){return this.error.names}},Sze=class extends W7{constructor(r){super(),this.code=r}render({_n:r}){return`${this.code};`+r}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(r,i){return this.code=HZ(this.code,r,i),this}get names(){return this.code instanceof Wd._CodeOrName?this.code.names:{}}},Bce=class extends W7{constructor(r=[]){super(),this.nodes=r}render(r){return this.nodes.reduce((i,s)=>i+s.render(r),"")}optimizeNodes(){let{nodes:r}=this,i=r.length;for(;i--;){let s=r[i].optimizeNodes();Array.isArray(s)?r.splice(i,1,...s):s?r[i]=s:r.splice(i,1)}return r.length>0?this:void 0}optimizeNames(r,i){let{nodes:s}=this,l=s.length;for(;l--;){let d=s[l];d.optimizeNames(r,i)||(r4r(r,d.names),s.splice(l,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((r,i)=>yJ(r,i.names),{})}},G7=class extends Bce{render(r){return"{"+r._n+super.render(r)+"}"+r._n}},bze=class extends Bce{},GZ=class extends G7{};GZ.kind="else";var hJ=class e extends G7{constructor(r,i){super(i),this.condition=r}render(r){let i=`if(${this.condition})`+super.render(r);return this.else&&(i+="else "+this.else.render(r)),i}optimizeNodes(){super.optimizeNodes();let r=this.condition;if(r===!0)return this.nodes;let i=this.else;if(i){let s=i.optimizeNodes();i=this.else=Array.isArray(s)?new GZ(s):s}if(i)return r===!1?i instanceof e?i:i.nodes:this.nodes.length?this:new e(eIt(r),i instanceof e?[i]:i.nodes);if(!(r===!1||!this.nodes.length))return this}optimizeNames(r,i){var s;if(this.else=(s=this.else)===null||s===void 0?void 0:s.optimizeNames(r,i),!!(super.optimizeNames(r,i)||this.else))return this.condition=HZ(this.condition,r,i),this}get names(){let r=super.names;return h2e(r,this.condition),this.else&&yJ(r,this.else.names),r}};hJ.kind="if";var gJ=class extends G7{};gJ.kind="for";var xze=class extends gJ{constructor(r){super(),this.iteration=r}render(r){return`for(${this.iteration})`+super.render(r)}optimizeNames(r,i){if(super.optimizeNames(r,i))return this.iteration=HZ(this.iteration,r,i),this}get names(){return yJ(super.names,this.iteration.names)}},Tze=class extends gJ{constructor(r,i,s,l){super(),this.varKind=r,this.name=i,this.from=s,this.to=l}render(r){let i=r.es5?h6.varKinds.var:this.varKind,{name:s,from:l,to:d}=this;return`for(${i} ${s}=${l}; ${s}<${d}; ${s}++)`+super.render(r)}get names(){let r=h2e(super.names,this.from);return h2e(r,this.to)}},m2e=class extends gJ{constructor(r,i,s,l){super(),this.loop=r,this.varKind=i,this.name=s,this.iterable=l}render(r){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(r)}optimizeNames(r,i){if(super.optimizeNames(r,i))return this.iterable=HZ(this.iterable,r,i),this}get names(){return yJ(super.names,this.iterable.names)}},$ce=class extends G7{constructor(r,i,s){super(),this.name=r,this.args=i,this.async=s}render(r){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(r)}};$ce.kind="func";var Uce=class extends Bce{render(r){return"return "+super.render(r)}};Uce.kind="return";var Eze=class extends G7{render(r){let i="try"+super.render(r);return this.catch&&(i+=this.catch.render(r)),this.finally&&(i+=this.finally.render(r)),i}optimizeNodes(){var r,i;return super.optimizeNodes(),(r=this.catch)===null||r===void 0||r.optimizeNodes(),(i=this.finally)===null||i===void 0||i.optimizeNodes(),this}optimizeNames(r,i){var s,l;return super.optimizeNames(r,i),(s=this.catch)===null||s===void 0||s.optimizeNames(r,i),(l=this.finally)===null||l===void 0||l.optimizeNames(r,i),this}get names(){let r=super.names;return this.catch&&yJ(r,this.catch.names),this.finally&&yJ(r,this.finally.names),r}},zce=class extends G7{constructor(r){super(),this.error=r}render(r){return`catch(${this.error})`+super.render(r)}};zce.kind="catch";var qce=class extends G7{render(r){return"finally"+super.render(r)}};qce.kind="finally";var kze=class{constructor(r,i={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...i,_n:i.lines?` +`:""},this._extScope=r,this._scope=new h6.Scope({parent:r}),this._nodes=[new bze]}toString(){return this._root.render(this.opts)}name(r){return this._scope.name(r)}scopeName(r){return this._extScope.name(r)}scopeValue(r,i){let s=this._extScope.value(r,i);return(this._values[s.prefix]||(this._values[s.prefix]=new Set)).add(s),s}getScopeValue(r,i){return this._extScope.getValue(r,i)}scopeRefs(r){return this._extScope.scopeRefs(r,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(r,i,s,l){let d=this._scope.toName(i);return s!==void 0&&l&&(this._constants[d.str]=s),this._leafNode(new mze(r,d,s)),d}const(r,i,s){return this._def(h6.varKinds.const,r,i,s)}let(r,i,s){return this._def(h6.varKinds.let,r,i,s)}var(r,i,s){return this._def(h6.varKinds.var,r,i,s)}assign(r,i,s){return this._leafNode(new f2e(r,i,s))}add(r,i){return this._leafNode(new hze(r,H_.operators.ADD,i))}code(r){return typeof r=="function"?r():r!==Wd.nil&&this._leafNode(new Sze(r)),this}object(...r){let i=["{"];for(let[s,l]of r)i.length>1&&i.push(","),i.push(s),(s!==l||this.opts.es5)&&(i.push(":"),(0,Wd.addCodeArg)(i,l));return i.push("}"),new Wd._Code(i)}if(r,i,s){if(this._blockNode(new hJ(r)),i&&s)this.code(i).else().code(s).endIf();else if(i)this.code(i).endIf();else if(s)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(r){return this._elseNode(new hJ(r))}else(){return this._elseNode(new GZ)}endIf(){return this._endBlockNode(hJ,GZ)}_for(r,i){return this._blockNode(r),i&&this.code(i).endFor(),this}for(r,i){return this._for(new xze(r),i)}forRange(r,i,s,l,d=this.opts.es5?h6.varKinds.var:h6.varKinds.let){let h=this._scope.toName(r);return this._for(new Tze(d,h,i,s),()=>l(h))}forOf(r,i,s,l=h6.varKinds.const){let d=this._scope.toName(r);if(this.opts.es5){let h=i instanceof Wd.Name?i:this.var("_arr",i);return this.forRange("_i",0,(0,Wd._)`${h}.length`,S=>{this.var(d,(0,Wd._)`${h}[${S}]`),s(d)})}return this._for(new m2e("of",l,d,i),()=>s(d))}forIn(r,i,s,l=this.opts.es5?h6.varKinds.var:h6.varKinds.const){if(this.opts.ownProperties)return this.forOf(r,(0,Wd._)`Object.keys(${i})`,s);let d=this._scope.toName(r);return this._for(new m2e("in",l,d,i),()=>s(d))}endFor(){return this._endBlockNode(gJ)}label(r){return this._leafNode(new gze(r))}break(r){return this._leafNode(new yze(r))}return(r){let i=new Uce;if(this._blockNode(i),this.code(r),i.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Uce)}try(r,i,s){if(!i&&!s)throw new Error('CodeGen: "try" without "catch" and "finally"');let l=new Eze;if(this._blockNode(l),this.code(r),i){let d=this.name("e");this._currNode=l.catch=new zce(d),i(d)}return s&&(this._currNode=l.finally=new qce,this.code(s)),this._endBlockNode(zce,qce)}throw(r){return this._leafNode(new vze(r))}block(r,i){return this._blockStarts.push(this._nodes.length),r&&this.code(r).endBlock(i),this}endBlock(r){let i=this._blockStarts.pop();if(i===void 0)throw new Error("CodeGen: not in self-balancing block");let s=this._nodes.length-i;if(s<0||r!==void 0&&s!==r)throw new Error(`CodeGen: wrong number of nodes: ${s} vs ${r} expected`);return this._nodes.length=i,this}func(r,i=Wd.nil,s,l){return this._blockNode(new $ce(r,i,s)),l&&this.code(l).endFunc(),this}endFunc(){return this._endBlockNode($ce)}optimize(r=1){for(;r-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(r){return this._currNode.nodes.push(r),this}_blockNode(r){this._currNode.nodes.push(r),this._nodes.push(r)}_endBlockNode(r,i){let s=this._currNode;if(s instanceof r||i&&s instanceof i)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${i?`${r.kind}/${i.kind}`:r.kind}"`)}_elseNode(r){let i=this._currNode;if(!(i instanceof hJ))throw new Error('CodeGen: "else" without "if"');return this._currNode=i.else=r,this}get _root(){return this._nodes[0]}get _currNode(){let r=this._nodes;return r[r.length-1]}set _currNode(r){let i=this._nodes;i[i.length-1]=r}};H_.CodeGen=kze;function yJ(e,r){for(let i in r)e[i]=(e[i]||0)+(r[i]||0);return e}function h2e(e,r){return r instanceof Wd._CodeOrName?yJ(e,r.names):e}function HZ(e,r,i){if(e instanceof Wd.Name)return s(e);if(!l(e))return e;return new Wd._Code(e._items.reduce((d,h)=>(h instanceof Wd.Name&&(h=s(h)),h instanceof Wd._Code?d.push(...h._items):d.push(h),d),[]));function s(d){let h=i[d.str];return h===void 0||r[d.str]!==1?d:(delete r[d.str],h)}function l(d){return d instanceof Wd._Code&&d._items.some(h=>h instanceof Wd.Name&&r[h.str]===1&&i[h.str]!==void 0)}}function r4r(e,r){for(let i in r)e[i]=(e[i]||0)-(r[i]||0)}function eIt(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Wd._)`!${Cze(e)}`}H_.not=eIt;var n4r=tIt(H_.operators.AND);function i4r(...e){return e.reduce(n4r)}H_.and=i4r;var o4r=tIt(H_.operators.OR);function a4r(...e){return e.reduce(o4r)}H_.or=a4r;function tIt(e){return(r,i)=>r===Wd.nil?i:i===Wd.nil?r:(0,Wd._)`${Cze(r)} ${e} ${Cze(i)}`}function Cze(e){return e instanceof Wd.Name?e:(0,Wd._)`(${e})`}});var cd=dr(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.checkStrictMode=sd.getErrorPath=sd.Type=sd.useFunc=sd.setEvaluated=sd.evaluatedPropsToName=sd.mergeEvaluated=sd.eachItem=sd.unescapeJsonPointer=sd.escapeJsonPointer=sd.escapeFragment=sd.unescapeFragment=sd.schemaRefOrVal=sd.schemaHasRulesButRef=sd.schemaHasRules=sd.checkUnknownRules=sd.alwaysValidSchema=sd.toHash=void 0;var eg=wp(),s4r=jce();function c4r(e){let r={};for(let i of e)r[i]=!0;return r}sd.toHash=c4r;function l4r(e,r){return typeof r=="boolean"?r:Object.keys(r).length===0?!0:(iIt(e,r),!oIt(r,e.self.RULES.all))}sd.alwaysValidSchema=l4r;function iIt(e,r=e.schema){let{opts:i,self:s}=e;if(!i.strictSchema||typeof r=="boolean")return;let l=s.RULES.keywords;for(let d in r)l[d]||cIt(e,`unknown keyword: "${d}"`)}sd.checkUnknownRules=iIt;function oIt(e,r){if(typeof e=="boolean")return!e;for(let i in e)if(r[i])return!0;return!1}sd.schemaHasRules=oIt;function u4r(e,r){if(typeof e=="boolean")return!e;for(let i in e)if(i!=="$ref"&&r.all[i])return!0;return!1}sd.schemaHasRulesButRef=u4r;function p4r({topSchemaRef:e,schemaPath:r},i,s,l){if(!l){if(typeof i=="number"||typeof i=="boolean")return i;if(typeof i=="string")return(0,eg._)`${i}`}return(0,eg._)`${e}${r}${(0,eg.getProperty)(s)}`}sd.schemaRefOrVal=p4r;function _4r(e){return aIt(decodeURIComponent(e))}sd.unescapeFragment=_4r;function d4r(e){return encodeURIComponent(Aze(e))}sd.escapeFragment=d4r;function Aze(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}sd.escapeJsonPointer=Aze;function aIt(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}sd.unescapeJsonPointer=aIt;function f4r(e,r){if(Array.isArray(e))for(let i of e)r(i);else r(e)}sd.eachItem=f4r;function rIt({mergeNames:e,mergeToName:r,mergeValues:i,resultToName:s}){return(l,d,h,S)=>{let b=h===void 0?d:h instanceof eg.Name?(d instanceof eg.Name?e(l,d,h):r(l,d,h),h):d instanceof eg.Name?(r(l,h,d),d):i(d,h);return S===eg.Name&&!(b instanceof eg.Name)?s(l,b):b}}sd.mergeEvaluated={props:rIt({mergeNames:(e,r,i)=>e.if((0,eg._)`${i} !== true && ${r} !== undefined`,()=>{e.if((0,eg._)`${r} === true`,()=>e.assign(i,!0),()=>e.assign(i,(0,eg._)`${i} || {}`).code((0,eg._)`Object.assign(${i}, ${r})`))}),mergeToName:(e,r,i)=>e.if((0,eg._)`${i} !== true`,()=>{r===!0?e.assign(i,!0):(e.assign(i,(0,eg._)`${i} || {}`),wze(e,i,r))}),mergeValues:(e,r)=>e===!0?!0:{...e,...r},resultToName:sIt}),items:rIt({mergeNames:(e,r,i)=>e.if((0,eg._)`${i} !== true && ${r} !== undefined`,()=>e.assign(i,(0,eg._)`${r} === true ? true : ${i} > ${r} ? ${i} : ${r}`)),mergeToName:(e,r,i)=>e.if((0,eg._)`${i} !== true`,()=>e.assign(i,r===!0?!0:(0,eg._)`${i} > ${r} ? ${i} : ${r}`)),mergeValues:(e,r)=>e===!0?!0:Math.max(e,r),resultToName:(e,r)=>e.var("items",r)})};function sIt(e,r){if(r===!0)return e.var("props",!0);let i=e.var("props",(0,eg._)`{}`);return r!==void 0&&wze(e,i,r),i}sd.evaluatedPropsToName=sIt;function wze(e,r,i){Object.keys(i).forEach(s=>e.assign((0,eg._)`${r}${(0,eg.getProperty)(s)}`,!0))}sd.setEvaluated=wze;var nIt={};function m4r(e,r){return e.scopeValue("func",{ref:r,code:nIt[r.code]||(nIt[r.code]=new s4r._Code(r.code))})}sd.useFunc=m4r;var Dze;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Dze||(sd.Type=Dze={}));function h4r(e,r,i){if(e instanceof eg.Name){let s=r===Dze.Num;return i?s?(0,eg._)`"[" + ${e} + "]"`:(0,eg._)`"['" + ${e} + "']"`:s?(0,eg._)`"/" + ${e}`:(0,eg._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return i?(0,eg.getProperty)(e).toString():"/"+Aze(e)}sd.getErrorPath=h4r;function cIt(e,r,i=e.opts.strictSchema){if(i){if(r=`strict mode: ${r}`,i===!0)throw new Error(r);e.self.logger.warn(r)}}sd.checkStrictMode=cIt});var Rw=dr(Ize=>{"use strict";Object.defineProperty(Ize,"__esModule",{value:!0});var dT=wp(),g4r={data:new dT.Name("data"),valCxt:new dT.Name("valCxt"),instancePath:new dT.Name("instancePath"),parentData:new dT.Name("parentData"),parentDataProperty:new dT.Name("parentDataProperty"),rootData:new dT.Name("rootData"),dynamicAnchors:new dT.Name("dynamicAnchors"),vErrors:new dT.Name("vErrors"),errors:new dT.Name("errors"),this:new dT.Name("this"),self:new dT.Name("self"),scope:new dT.Name("scope"),json:new dT.Name("json"),jsonPos:new dT.Name("jsonPos"),jsonLen:new dT.Name("jsonLen"),jsonPart:new dT.Name("jsonPart")};Ize.default=g4r});var Jce=dr(fT=>{"use strict";Object.defineProperty(fT,"__esModule",{value:!0});fT.extendErrors=fT.resetErrorsCount=fT.reportExtraError=fT.reportError=fT.keyword$DataError=fT.keywordError=void 0;var gf=wp(),y2e=cd(),D2=Rw();fT.keywordError={message:({keyword:e})=>(0,gf.str)`must pass "${e}" keyword validation`};fT.keyword$DataError={message:({keyword:e,schemaType:r})=>r?(0,gf.str)`"${e}" keyword must be ${r} ($data)`:(0,gf.str)`"${e}" keyword is invalid ($data)`};function y4r(e,r=fT.keywordError,i,s){let{it:l}=e,{gen:d,compositeRule:h,allErrors:S}=l,b=pIt(e,r,i);s??(h||S)?lIt(d,b):uIt(l,(0,gf._)`[${b}]`)}fT.reportError=y4r;function v4r(e,r=fT.keywordError,i){let{it:s}=e,{gen:l,compositeRule:d,allErrors:h}=s,S=pIt(e,r,i);lIt(l,S),d||h||uIt(s,D2.default.vErrors)}fT.reportExtraError=v4r;function S4r(e,r){e.assign(D2.default.errors,r),e.if((0,gf._)`${D2.default.vErrors} !== null`,()=>e.if(r,()=>e.assign((0,gf._)`${D2.default.vErrors}.length`,r),()=>e.assign(D2.default.vErrors,null)))}fT.resetErrorsCount=S4r;function b4r({gen:e,keyword:r,schemaValue:i,data:s,errsCount:l,it:d}){if(l===void 0)throw new Error("ajv implementation error");let h=e.name("err");e.forRange("i",l,D2.default.errors,S=>{e.const(h,(0,gf._)`${D2.default.vErrors}[${S}]`),e.if((0,gf._)`${h}.instancePath === undefined`,()=>e.assign((0,gf._)`${h}.instancePath`,(0,gf.strConcat)(D2.default.instancePath,d.errorPath))),e.assign((0,gf._)`${h}.schemaPath`,(0,gf.str)`${d.errSchemaPath}/${r}`),d.opts.verbose&&(e.assign((0,gf._)`${h}.schema`,i),e.assign((0,gf._)`${h}.data`,s))})}fT.extendErrors=b4r;function lIt(e,r){let i=e.const("err",r);e.if((0,gf._)`${D2.default.vErrors} === null`,()=>e.assign(D2.default.vErrors,(0,gf._)`[${i}]`),(0,gf._)`${D2.default.vErrors}.push(${i})`),e.code((0,gf._)`${D2.default.errors}++`)}function uIt(e,r){let{gen:i,validateName:s,schemaEnv:l}=e;l.$async?i.throw((0,gf._)`new ${e.ValidationError}(${r})`):(i.assign((0,gf._)`${s}.errors`,r),i.return(!1))}var vJ={keyword:new gf.Name("keyword"),schemaPath:new gf.Name("schemaPath"),params:new gf.Name("params"),propertyName:new gf.Name("propertyName"),message:new gf.Name("message"),schema:new gf.Name("schema"),parentSchema:new gf.Name("parentSchema")};function pIt(e,r,i){let{createErrors:s}=e.it;return s===!1?(0,gf._)`{}`:x4r(e,r,i)}function x4r(e,r,i={}){let{gen:s,it:l}=e,d=[T4r(l,i),E4r(e,i)];return k4r(e,r,d),s.object(...d)}function T4r({errorPath:e},{instancePath:r}){let i=r?(0,gf.str)`${e}${(0,y2e.getErrorPath)(r,y2e.Type.Str)}`:e;return[D2.default.instancePath,(0,gf.strConcat)(D2.default.instancePath,i)]}function E4r({keyword:e,it:{errSchemaPath:r}},{schemaPath:i,parentSchema:s}){let l=s?r:(0,gf.str)`${r}/${e}`;return i&&(l=(0,gf.str)`${l}${(0,y2e.getErrorPath)(i,y2e.Type.Str)}`),[vJ.schemaPath,l]}function k4r(e,{params:r,message:i},s){let{keyword:l,data:d,schemaValue:h,it:S}=e,{opts:b,propertyName:A,topSchemaRef:L,schemaPath:V}=S;s.push([vJ.keyword,l],[vJ.params,typeof r=="function"?r(e):r||(0,gf._)`{}`]),b.messages&&s.push([vJ.message,typeof i=="function"?i(e):i]),b.verbose&&s.push([vJ.schema,h],[vJ.parentSchema,(0,gf._)`${L}${V}`],[D2.default.data,d]),A&&s.push([vJ.propertyName,A])}});var dIt=dr(KZ=>{"use strict";Object.defineProperty(KZ,"__esModule",{value:!0});KZ.boolOrEmptySchema=KZ.topBoolOrEmptySchema=void 0;var C4r=Jce(),D4r=wp(),A4r=Rw(),w4r={message:"boolean schema is false"};function I4r(e){let{gen:r,schema:i,validateName:s}=e;i===!1?_It(e,!1):typeof i=="object"&&i.$async===!0?r.return(A4r.default.data):(r.assign((0,D4r._)`${s}.errors`,null),r.return(!0))}KZ.topBoolOrEmptySchema=I4r;function P4r(e,r){let{gen:i,schema:s}=e;s===!1?(i.var(r,!1),_It(e)):i.var(r,!0)}KZ.boolOrEmptySchema=P4r;function _It(e,r){let{gen:i,data:s}=e,l={gen:i,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,C4r.reportError)(l,w4r,void 0,r)}});var Pze=dr(QZ=>{"use strict";Object.defineProperty(QZ,"__esModule",{value:!0});QZ.getRules=QZ.isJSONType=void 0;var N4r=["string","number","integer","boolean","null","object","array"],O4r=new Set(N4r);function F4r(e){return typeof e=="string"&&O4r.has(e)}QZ.isJSONType=F4r;function R4r(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}QZ.getRules=R4r});var Nze=dr(ej=>{"use strict";Object.defineProperty(ej,"__esModule",{value:!0});ej.shouldUseRule=ej.shouldUseGroup=ej.schemaHasRulesForType=void 0;function L4r({schema:e,self:r},i){let s=r.RULES.types[i];return s&&s!==!0&&fIt(e,s)}ej.schemaHasRulesForType=L4r;function fIt(e,r){return r.rules.some(i=>mIt(e,i))}ej.shouldUseGroup=fIt;function mIt(e,r){var i;return e[r.keyword]!==void 0||((i=r.definition.implements)===null||i===void 0?void 0:i.some(s=>e[s]!==void 0))}ej.shouldUseRule=mIt});var Vce=dr(mT=>{"use strict";Object.defineProperty(mT,"__esModule",{value:!0});mT.reportTypeError=mT.checkDataTypes=mT.checkDataType=mT.coerceAndCheckDataType=mT.getJSONTypes=mT.getSchemaTypes=mT.DataType=void 0;var M4r=Pze(),j4r=Nze(),B4r=Jce(),v_=wp(),hIt=cd(),ZZ;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(ZZ||(mT.DataType=ZZ={}));function $4r(e){let r=gIt(e.type);if(r.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!r.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&r.push("null")}return r}mT.getSchemaTypes=$4r;function gIt(e){let r=Array.isArray(e)?e:e?[e]:[];if(r.every(M4r.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}mT.getJSONTypes=gIt;function U4r(e,r){let{gen:i,data:s,opts:l}=e,d=z4r(r,l.coerceTypes),h=r.length>0&&!(d.length===0&&r.length===1&&(0,j4r.schemaHasRulesForType)(e,r[0]));if(h){let S=Fze(r,s,l.strictNumbers,ZZ.Wrong);i.if(S,()=>{d.length?q4r(e,r,d):Rze(e)})}return h}mT.coerceAndCheckDataType=U4r;var yIt=new Set(["string","number","integer","boolean","null"]);function z4r(e,r){return r?e.filter(i=>yIt.has(i)||r==="array"&&i==="array"):[]}function q4r(e,r,i){let{gen:s,data:l,opts:d}=e,h=s.let("dataType",(0,v_._)`typeof ${l}`),S=s.let("coerced",(0,v_._)`undefined`);d.coerceTypes==="array"&&s.if((0,v_._)`${h} == 'object' && Array.isArray(${l}) && ${l}.length == 1`,()=>s.assign(l,(0,v_._)`${l}[0]`).assign(h,(0,v_._)`typeof ${l}`).if(Fze(r,l,d.strictNumbers),()=>s.assign(S,l))),s.if((0,v_._)`${S} !== undefined`);for(let A of i)(yIt.has(A)||A==="array"&&d.coerceTypes==="array")&&b(A);s.else(),Rze(e),s.endIf(),s.if((0,v_._)`${S} !== undefined`,()=>{s.assign(l,S),J4r(e,S)});function b(A){switch(A){case"string":s.elseIf((0,v_._)`${h} == "number" || ${h} == "boolean"`).assign(S,(0,v_._)`"" + ${l}`).elseIf((0,v_._)`${l} === null`).assign(S,(0,v_._)`""`);return;case"number":s.elseIf((0,v_._)`${h} == "boolean" || ${l} === null + || (${h} == "string" && ${l} && ${l} == +${l})`).assign(S,(0,v_._)`+${l}`);return;case"integer":s.elseIf((0,v_._)`${h} === "boolean" || ${l} === null + || (${h} === "string" && ${l} && ${l} == +${l} && !(${l} % 1))`).assign(S,(0,v_._)`+${l}`);return;case"boolean":s.elseIf((0,v_._)`${l} === "false" || ${l} === 0 || ${l} === null`).assign(S,!1).elseIf((0,v_._)`${l} === "true" || ${l} === 1`).assign(S,!0);return;case"null":s.elseIf((0,v_._)`${l} === "" || ${l} === 0 || ${l} === false`),s.assign(S,null);return;case"array":s.elseIf((0,v_._)`${h} === "string" || ${h} === "number" + || ${h} === "boolean" || ${l} === null`).assign(S,(0,v_._)`[${l}]`)}}}function J4r({gen:e,parentData:r,parentDataProperty:i},s){e.if((0,v_._)`${r} !== undefined`,()=>e.assign((0,v_._)`${r}[${i}]`,s))}function Oze(e,r,i,s=ZZ.Correct){let l=s===ZZ.Correct?v_.operators.EQ:v_.operators.NEQ,d;switch(e){case"null":return(0,v_._)`${r} ${l} null`;case"array":d=(0,v_._)`Array.isArray(${r})`;break;case"object":d=(0,v_._)`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":d=h((0,v_._)`!(${r} % 1) && !isNaN(${r})`);break;case"number":d=h();break;default:return(0,v_._)`typeof ${r} ${l} ${e}`}return s===ZZ.Correct?d:(0,v_.not)(d);function h(S=v_.nil){return(0,v_.and)((0,v_._)`typeof ${r} == "number"`,S,i?(0,v_._)`isFinite(${r})`:v_.nil)}}mT.checkDataType=Oze;function Fze(e,r,i,s){if(e.length===1)return Oze(e[0],r,i,s);let l,d=(0,hIt.toHash)(e);if(d.array&&d.object){let h=(0,v_._)`typeof ${r} != "object"`;l=d.null?h:(0,v_._)`!${r} || ${h}`,delete d.null,delete d.array,delete d.object}else l=v_.nil;d.number&&delete d.integer;for(let h in d)l=(0,v_.and)(l,Oze(h,r,i,s));return l}mT.checkDataTypes=Fze;var V4r={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:r})=>typeof e=="string"?(0,v_._)`{type: ${e}}`:(0,v_._)`{type: ${r}}`};function Rze(e){let r=W4r(e);(0,B4r.reportError)(r,V4r)}mT.reportTypeError=Rze;function W4r(e){let{gen:r,data:i,schema:s}=e,l=(0,hIt.schemaRefOrVal)(e,s,"type");return{gen:r,keyword:"type",data:i,schema:s.type,schemaCode:l,schemaValue:l,parentSchema:s,params:{},it:e}}});var SIt=dr(v2e=>{"use strict";Object.defineProperty(v2e,"__esModule",{value:!0});v2e.assignDefaults=void 0;var XZ=wp(),G4r=cd();function H4r(e,r){let{properties:i,items:s}=e.schema;if(r==="object"&&i)for(let l in i)vIt(e,l,i[l].default);else r==="array"&&Array.isArray(s)&&s.forEach((l,d)=>vIt(e,d,l.default))}v2e.assignDefaults=H4r;function vIt(e,r,i){let{gen:s,compositeRule:l,data:d,opts:h}=e;if(i===void 0)return;let S=(0,XZ._)`${d}${(0,XZ.getProperty)(r)}`;if(l){(0,G4r.checkStrictMode)(e,`default is ignored for: ${S}`);return}let b=(0,XZ._)`${S} === undefined`;h.useDefaults==="empty"&&(b=(0,XZ._)`${b} || ${S} === null || ${S} === ""`),s.if(b,(0,XZ._)`${S} = ${(0,XZ.stringify)(i)}`)}});var Lw=dr(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});Dh.validateUnion=Dh.validateArray=Dh.usePattern=Dh.callValidateCode=Dh.schemaProperties=Dh.allSchemaProperties=Dh.noPropertyInData=Dh.propertyInData=Dh.isOwnProperty=Dh.hasPropFunc=Dh.reportMissingProp=Dh.checkMissingProp=Dh.checkReportMissingProp=void 0;var ny=wp(),Lze=cd(),tj=Rw(),K4r=cd();function Q4r(e,r){let{gen:i,data:s,it:l}=e;i.if(jze(i,s,r,l.opts.ownProperties),()=>{e.setParams({missingProperty:(0,ny._)`${r}`},!0),e.error()})}Dh.checkReportMissingProp=Q4r;function Z4r({gen:e,data:r,it:{opts:i}},s,l){return(0,ny.or)(...s.map(d=>(0,ny.and)(jze(e,r,d,i.ownProperties),(0,ny._)`${l} = ${d}`)))}Dh.checkMissingProp=Z4r;function X4r(e,r){e.setParams({missingProperty:r},!0),e.error()}Dh.reportMissingProp=X4r;function bIt(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ny._)`Object.prototype.hasOwnProperty`})}Dh.hasPropFunc=bIt;function Mze(e,r,i){return(0,ny._)`${bIt(e)}.call(${r}, ${i})`}Dh.isOwnProperty=Mze;function Y4r(e,r,i,s){let l=(0,ny._)`${r}${(0,ny.getProperty)(i)} !== undefined`;return s?(0,ny._)`${l} && ${Mze(e,r,i)}`:l}Dh.propertyInData=Y4r;function jze(e,r,i,s){let l=(0,ny._)`${r}${(0,ny.getProperty)(i)} === undefined`;return s?(0,ny.or)(l,(0,ny.not)(Mze(e,r,i))):l}Dh.noPropertyInData=jze;function xIt(e){return e?Object.keys(e).filter(r=>r!=="__proto__"):[]}Dh.allSchemaProperties=xIt;function e3r(e,r){return xIt(r).filter(i=>!(0,Lze.alwaysValidSchema)(e,r[i]))}Dh.schemaProperties=e3r;function t3r({schemaCode:e,data:r,it:{gen:i,topSchemaRef:s,schemaPath:l,errorPath:d},it:h},S,b,A){let L=A?(0,ny._)`${e}, ${r}, ${s}${l}`:r,V=[[tj.default.instancePath,(0,ny.strConcat)(tj.default.instancePath,d)],[tj.default.parentData,h.parentData],[tj.default.parentDataProperty,h.parentDataProperty],[tj.default.rootData,tj.default.rootData]];h.opts.dynamicRef&&V.push([tj.default.dynamicAnchors,tj.default.dynamicAnchors]);let j=(0,ny._)`${L}, ${i.object(...V)}`;return b!==ny.nil?(0,ny._)`${S}.call(${b}, ${j})`:(0,ny._)`${S}(${j})`}Dh.callValidateCode=t3r;var r3r=(0,ny._)`new RegExp`;function n3r({gen:e,it:{opts:r}},i){let s=r.unicodeRegExp?"u":"",{regExp:l}=r.code,d=l(i,s);return e.scopeValue("pattern",{key:d.toString(),ref:d,code:(0,ny._)`${l.code==="new RegExp"?r3r:(0,K4r.useFunc)(e,l)}(${i}, ${s})`})}Dh.usePattern=n3r;function i3r(e){let{gen:r,data:i,keyword:s,it:l}=e,d=r.name("valid");if(l.allErrors){let S=r.let("valid",!0);return h(()=>r.assign(S,!1)),S}return r.var(d,!0),h(()=>r.break()),d;function h(S){let b=r.const("len",(0,ny._)`${i}.length`);r.forRange("i",0,b,A=>{e.subschema({keyword:s,dataProp:A,dataPropType:Lze.Type.Num},d),r.if((0,ny.not)(d),S)})}}Dh.validateArray=i3r;function o3r(e){let{gen:r,schema:i,keyword:s,it:l}=e;if(!Array.isArray(i))throw new Error("ajv implementation error");if(i.some(b=>(0,Lze.alwaysValidSchema)(l,b))&&!l.opts.unevaluated)return;let h=r.let("valid",!1),S=r.name("_valid");r.block(()=>i.forEach((b,A)=>{let L=e.subschema({keyword:s,schemaProp:A,compositeRule:!0},S);r.assign(h,(0,ny._)`${h} || ${S}`),e.mergeValidEvaluated(L,S)||r.if((0,ny.not)(h))})),e.result(h,()=>e.reset(),()=>e.error(!0))}Dh.validateUnion=o3r});var kIt=dr(CN=>{"use strict";Object.defineProperty(CN,"__esModule",{value:!0});CN.validateKeywordUsage=CN.validSchemaType=CN.funcKeywordCode=CN.macroKeywordCode=void 0;var A2=wp(),SJ=Rw(),a3r=Lw(),s3r=Jce();function c3r(e,r){let{gen:i,keyword:s,schema:l,parentSchema:d,it:h}=e,S=r.macro.call(h.self,l,d,h),b=EIt(i,s,S);h.opts.validateSchema!==!1&&h.self.validateSchema(S,!0);let A=i.name("valid");e.subschema({schema:S,schemaPath:A2.nil,errSchemaPath:`${h.errSchemaPath}/${s}`,topSchemaRef:b,compositeRule:!0},A),e.pass(A,()=>e.error(!0))}CN.macroKeywordCode=c3r;function l3r(e,r){var i;let{gen:s,keyword:l,schema:d,parentSchema:h,$data:S,it:b}=e;p3r(b,r);let A=!S&&r.compile?r.compile.call(b.self,d,h,b):r.validate,L=EIt(s,l,A),V=s.let("valid");e.block$data(V,j),e.ok((i=r.valid)!==null&&i!==void 0?i:V);function j(){if(r.errors===!1)X(),r.modifying&&TIt(e),Re(()=>e.error());else{let Je=r.async?ie():te();r.modifying&&TIt(e),Re(()=>u3r(e,Je))}}function ie(){let Je=s.let("ruleErrs",null);return s.try(()=>X((0,A2._)`await `),pt=>s.assign(V,!1).if((0,A2._)`${pt} instanceof ${b.ValidationError}`,()=>s.assign(Je,(0,A2._)`${pt}.errors`),()=>s.throw(pt))),Je}function te(){let Je=(0,A2._)`${L}.errors`;return s.assign(Je,null),X(A2.nil),Je}function X(Je=r.async?(0,A2._)`await `:A2.nil){let pt=b.opts.passContext?SJ.default.this:SJ.default.self,$e=!("compile"in r&&!S||r.schema===!1);s.assign(V,(0,A2._)`${Je}${(0,a3r.callValidateCode)(e,L,pt,$e)}`,r.modifying)}function Re(Je){var pt;s.if((0,A2.not)((pt=r.valid)!==null&&pt!==void 0?pt:V),Je)}}CN.funcKeywordCode=l3r;function TIt(e){let{gen:r,data:i,it:s}=e;r.if(s.parentData,()=>r.assign(i,(0,A2._)`${s.parentData}[${s.parentDataProperty}]`))}function u3r(e,r){let{gen:i}=e;i.if((0,A2._)`Array.isArray(${r})`,()=>{i.assign(SJ.default.vErrors,(0,A2._)`${SJ.default.vErrors} === null ? ${r} : ${SJ.default.vErrors}.concat(${r})`).assign(SJ.default.errors,(0,A2._)`${SJ.default.vErrors}.length`),(0,s3r.extendErrors)(e)},()=>e.error())}function p3r({schemaEnv:e},r){if(r.async&&!e.$async)throw new Error("async keyword in sync schema")}function EIt(e,r,i){if(i===void 0)throw new Error(`keyword "${r}" failed to compile`);return e.scopeValue("keyword",typeof i=="function"?{ref:i}:{ref:i,code:(0,A2.stringify)(i)})}function _3r(e,r,i=!1){return!r.length||r.some(s=>s==="array"?Array.isArray(e):s==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==s||i&&typeof e>"u")}CN.validSchemaType=_3r;function d3r({schema:e,opts:r,self:i,errSchemaPath:s},l,d){if(Array.isArray(l.keyword)?!l.keyword.includes(d):l.keyword!==d)throw new Error("ajv implementation error");let h=l.dependencies;if(h?.some(S=>!Object.prototype.hasOwnProperty.call(e,S)))throw new Error(`parent schema must have dependencies of ${d}: ${h.join(",")}`);if(l.validateSchema&&!l.validateSchema(e[d])){let b=`keyword "${d}" value is invalid at path "${s}": `+i.errorsText(l.validateSchema.errors);if(r.validateSchema==="log")i.logger.error(b);else throw new Error(b)}}CN.validateKeywordUsage=d3r});var DIt=dr(rj=>{"use strict";Object.defineProperty(rj,"__esModule",{value:!0});rj.extendSubschemaMode=rj.extendSubschemaData=rj.getSubschema=void 0;var DN=wp(),CIt=cd();function f3r(e,{keyword:r,schemaProp:i,schema:s,schemaPath:l,errSchemaPath:d,topSchemaRef:h}){if(r!==void 0&&s!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(r!==void 0){let S=e.schema[r];return i===void 0?{schema:S,schemaPath:(0,DN._)`${e.schemaPath}${(0,DN.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${r}`}:{schema:S[i],schemaPath:(0,DN._)`${e.schemaPath}${(0,DN.getProperty)(r)}${(0,DN.getProperty)(i)}`,errSchemaPath:`${e.errSchemaPath}/${r}/${(0,CIt.escapeFragment)(i)}`}}if(s!==void 0){if(l===void 0||d===void 0||h===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:l,topSchemaRef:h,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}rj.getSubschema=f3r;function m3r(e,r,{dataProp:i,dataPropType:s,data:l,dataTypes:d,propertyName:h}){if(l!==void 0&&i!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:S}=r;if(i!==void 0){let{errorPath:A,dataPathArr:L,opts:V}=r,j=S.let("data",(0,DN._)`${r.data}${(0,DN.getProperty)(i)}`,!0);b(j),e.errorPath=(0,DN.str)`${A}${(0,CIt.getErrorPath)(i,s,V.jsPropertySyntax)}`,e.parentDataProperty=(0,DN._)`${i}`,e.dataPathArr=[...L,e.parentDataProperty]}if(l!==void 0){let A=l instanceof DN.Name?l:S.let("data",l,!0);b(A),h!==void 0&&(e.propertyName=h)}d&&(e.dataTypes=d);function b(A){e.data=A,e.dataLevel=r.dataLevel+1,e.dataTypes=[],r.definedProperties=new Set,e.parentData=r.data,e.dataNames=[...r.dataNames,A]}}rj.extendSubschemaData=m3r;function h3r(e,{jtdDiscriminator:r,jtdMetadata:i,compositeRule:s,createErrors:l,allErrors:d}){s!==void 0&&(e.compositeRule=s),l!==void 0&&(e.createErrors=l),d!==void 0&&(e.allErrors=d),e.jtdDiscriminator=r,e.jtdMetadata=i}rj.extendSubschemaMode=h3r});var Bze=dr((E4n,AIt)=>{"use strict";AIt.exports=function e(r,i){if(r===i)return!0;if(r&&i&&typeof r=="object"&&typeof i=="object"){if(r.constructor!==i.constructor)return!1;var s,l,d;if(Array.isArray(r)){if(s=r.length,s!=i.length)return!1;for(l=s;l--!==0;)if(!e(r[l],i[l]))return!1;return!0}if(r.constructor===RegExp)return r.source===i.source&&r.flags===i.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===i.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===i.toString();if(d=Object.keys(r),s=d.length,s!==Object.keys(i).length)return!1;for(l=s;l--!==0;)if(!Object.prototype.hasOwnProperty.call(i,d[l]))return!1;for(l=s;l--!==0;){var h=d[l];if(!e(r[h],i[h]))return!1}return!0}return r!==r&&i!==i}});var IIt=dr((k4n,wIt)=>{"use strict";var nj=wIt.exports=function(e,r,i){typeof r=="function"&&(i=r,r={}),i=r.cb||i;var s=typeof i=="function"?i:i.pre||function(){},l=i.post||function(){};S2e(r,s,l,e,"",e)};nj.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};nj.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};nj.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};nj.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function S2e(e,r,i,s,l,d,h,S,b,A){if(s&&typeof s=="object"&&!Array.isArray(s)){r(s,l,d,h,S,b,A);for(var L in s){var V=s[L];if(Array.isArray(V)){if(L in nj.arrayKeywords)for(var j=0;j{"use strict";Object.defineProperty(sk,"__esModule",{value:!0});sk.getSchemaRefs=sk.resolveUrl=sk.normalizeId=sk._getFullPath=sk.getFullPath=sk.inlineRef=void 0;var y3r=cd(),v3r=Bze(),S3r=IIt(),b3r=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function x3r(e,r=!0){return typeof e=="boolean"?!0:r===!0?!$ze(e):r?PIt(e)<=r:!1}sk.inlineRef=x3r;var T3r=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function $ze(e){for(let r in e){if(T3r.has(r))return!0;let i=e[r];if(Array.isArray(i)&&i.some($ze)||typeof i=="object"&&$ze(i))return!0}return!1}function PIt(e){let r=0;for(let i in e){if(i==="$ref")return 1/0;if(r++,!b3r.has(i)&&(typeof e[i]=="object"&&(0,y3r.eachItem)(e[i],s=>r+=PIt(s)),r===1/0))return 1/0}return r}function NIt(e,r="",i){i!==!1&&(r=YZ(r));let s=e.parse(r);return OIt(e,s)}sk.getFullPath=NIt;function OIt(e,r){return e.serialize(r).split("#")[0]+"#"}sk._getFullPath=OIt;var E3r=/#\/?$/;function YZ(e){return e?e.replace(E3r,""):""}sk.normalizeId=YZ;function k3r(e,r,i){return i=YZ(i),e.resolve(r,i)}sk.resolveUrl=k3r;var C3r=/^[a-z_][-a-z0-9._]*$/i;function D3r(e,r){if(typeof e=="boolean")return{};let{schemaId:i,uriResolver:s}=this.opts,l=YZ(e[i]||r),d={"":l},h=NIt(s,l,!1),S={},b=new Set;return S3r(e,{allKeys:!0},(V,j,ie,te)=>{if(te===void 0)return;let X=h+j,Re=d[te];typeof V[i]=="string"&&(Re=Je.call(this,V[i])),pt.call(this,V.$anchor),pt.call(this,V.$dynamicAnchor),d[j]=Re;function Je($e){let xt=this.opts.uriResolver.resolve;if($e=YZ(Re?xt(Re,$e):$e),b.has($e))throw L($e);b.add($e);let tr=this.refs[$e];return typeof tr=="string"&&(tr=this.refs[tr]),typeof tr=="object"?A(V,tr.schema,$e):$e!==YZ(X)&&($e[0]==="#"?(A(V,S[$e],$e),S[$e]=V):this.refs[$e]=X),$e}function pt($e){if(typeof $e=="string"){if(!C3r.test($e))throw new Error(`invalid anchor "${$e}"`);Je.call(this,`#${$e}`)}}}),S;function A(V,j,ie){if(j!==void 0&&!v3r(V,j))throw L(ie)}function L(V){return new Error(`reference "${V}" resolves to more than one schema`)}}sk.getSchemaRefs=D3r});var eX=dr(ij=>{"use strict";Object.defineProperty(ij,"__esModule",{value:!0});ij.getData=ij.KeywordCxt=ij.validateFunctionCode=void 0;var jIt=dIt(),FIt=Vce(),zze=Nze(),b2e=Vce(),A3r=SIt(),Hce=kIt(),Uze=DIt(),zl=wp(),xp=Rw(),w3r=Wce(),H7=cd(),Gce=Jce();function I3r(e){if(UIt(e)&&(zIt(e),$It(e))){O3r(e);return}BIt(e,()=>(0,jIt.topBoolOrEmptySchema)(e))}ij.validateFunctionCode=I3r;function BIt({gen:e,validateName:r,schema:i,schemaEnv:s,opts:l},d){l.code.es5?e.func(r,(0,zl._)`${xp.default.data}, ${xp.default.valCxt}`,s.$async,()=>{e.code((0,zl._)`"use strict"; ${RIt(i,l)}`),N3r(e,l),e.code(d)}):e.func(r,(0,zl._)`${xp.default.data}, ${P3r(l)}`,s.$async,()=>e.code(RIt(i,l)).code(d))}function P3r(e){return(0,zl._)`{${xp.default.instancePath}="", ${xp.default.parentData}, ${xp.default.parentDataProperty}, ${xp.default.rootData}=${xp.default.data}${e.dynamicRef?(0,zl._)`, ${xp.default.dynamicAnchors}={}`:zl.nil}}={}`}function N3r(e,r){e.if(xp.default.valCxt,()=>{e.var(xp.default.instancePath,(0,zl._)`${xp.default.valCxt}.${xp.default.instancePath}`),e.var(xp.default.parentData,(0,zl._)`${xp.default.valCxt}.${xp.default.parentData}`),e.var(xp.default.parentDataProperty,(0,zl._)`${xp.default.valCxt}.${xp.default.parentDataProperty}`),e.var(xp.default.rootData,(0,zl._)`${xp.default.valCxt}.${xp.default.rootData}`),r.dynamicRef&&e.var(xp.default.dynamicAnchors,(0,zl._)`${xp.default.valCxt}.${xp.default.dynamicAnchors}`)},()=>{e.var(xp.default.instancePath,(0,zl._)`""`),e.var(xp.default.parentData,(0,zl._)`undefined`),e.var(xp.default.parentDataProperty,(0,zl._)`undefined`),e.var(xp.default.rootData,xp.default.data),r.dynamicRef&&e.var(xp.default.dynamicAnchors,(0,zl._)`{}`)})}function O3r(e){let{schema:r,opts:i,gen:s}=e;BIt(e,()=>{i.$comment&&r.$comment&&JIt(e),j3r(e),s.let(xp.default.vErrors,null),s.let(xp.default.errors,0),i.unevaluated&&F3r(e),qIt(e),U3r(e)})}function F3r(e){let{gen:r,validateName:i}=e;e.evaluated=r.const("evaluated",(0,zl._)`${i}.evaluated`),r.if((0,zl._)`${e.evaluated}.dynamicProps`,()=>r.assign((0,zl._)`${e.evaluated}.props`,(0,zl._)`undefined`)),r.if((0,zl._)`${e.evaluated}.dynamicItems`,()=>r.assign((0,zl._)`${e.evaluated}.items`,(0,zl._)`undefined`))}function RIt(e,r){let i=typeof e=="object"&&e[r.schemaId];return i&&(r.code.source||r.code.process)?(0,zl._)`/*# sourceURL=${i} */`:zl.nil}function R3r(e,r){if(UIt(e)&&(zIt(e),$It(e))){L3r(e,r);return}(0,jIt.boolOrEmptySchema)(e,r)}function $It({schema:e,self:r}){if(typeof e=="boolean")return!e;for(let i in e)if(r.RULES.all[i])return!0;return!1}function UIt(e){return typeof e.schema!="boolean"}function L3r(e,r){let{schema:i,gen:s,opts:l}=e;l.$comment&&i.$comment&&JIt(e),B3r(e),$3r(e);let d=s.const("_errs",xp.default.errors);qIt(e,d),s.var(r,(0,zl._)`${d} === ${xp.default.errors}`)}function zIt(e){(0,H7.checkUnknownRules)(e),M3r(e)}function qIt(e,r){if(e.opts.jtd)return LIt(e,[],!1,r);let i=(0,FIt.getSchemaTypes)(e.schema),s=(0,FIt.coerceAndCheckDataType)(e,i);LIt(e,i,!s,r)}function M3r(e){let{schema:r,errSchemaPath:i,opts:s,self:l}=e;r.$ref&&s.ignoreKeywordsWithRef&&(0,H7.schemaHasRulesButRef)(r,l.RULES)&&l.logger.warn(`$ref: keywords ignored in schema at path "${i}"`)}function j3r(e){let{schema:r,opts:i}=e;r.default!==void 0&&i.useDefaults&&i.strictSchema&&(0,H7.checkStrictMode)(e,"default is ignored in the schema root")}function B3r(e){let r=e.schema[e.opts.schemaId];r&&(e.baseId=(0,w3r.resolveUrl)(e.opts.uriResolver,e.baseId,r))}function $3r(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function JIt({gen:e,schemaEnv:r,schema:i,errSchemaPath:s,opts:l}){let d=i.$comment;if(l.$comment===!0)e.code((0,zl._)`${xp.default.self}.logger.log(${d})`);else if(typeof l.$comment=="function"){let h=(0,zl.str)`${s}/$comment`,S=e.scopeValue("root",{ref:r.root});e.code((0,zl._)`${xp.default.self}.opts.$comment(${d}, ${h}, ${S}.schema)`)}}function U3r(e){let{gen:r,schemaEnv:i,validateName:s,ValidationError:l,opts:d}=e;i.$async?r.if((0,zl._)`${xp.default.errors} === 0`,()=>r.return(xp.default.data),()=>r.throw((0,zl._)`new ${l}(${xp.default.vErrors})`)):(r.assign((0,zl._)`${s}.errors`,xp.default.vErrors),d.unevaluated&&z3r(e),r.return((0,zl._)`${xp.default.errors} === 0`))}function z3r({gen:e,evaluated:r,props:i,items:s}){i instanceof zl.Name&&e.assign((0,zl._)`${r}.props`,i),s instanceof zl.Name&&e.assign((0,zl._)`${r}.items`,s)}function LIt(e,r,i,s){let{gen:l,schema:d,data:h,allErrors:S,opts:b,self:A}=e,{RULES:L}=A;if(d.$ref&&(b.ignoreKeywordsWithRef||!(0,H7.schemaHasRulesButRef)(d,L))){l.block(()=>WIt(e,"$ref",L.all.$ref.definition));return}b.jtd||q3r(e,r),l.block(()=>{for(let j of L.rules)V(j);V(L.post)});function V(j){(0,zze.shouldUseGroup)(d,j)&&(j.type?(l.if((0,b2e.checkDataType)(j.type,h,b.strictNumbers)),MIt(e,j),r.length===1&&r[0]===j.type&&i&&(l.else(),(0,b2e.reportTypeError)(e)),l.endIf()):MIt(e,j),S||l.if((0,zl._)`${xp.default.errors} === ${s||0}`))}}function MIt(e,r){let{gen:i,schema:s,opts:{useDefaults:l}}=e;l&&(0,A3r.assignDefaults)(e,r.type),i.block(()=>{for(let d of r.rules)(0,zze.shouldUseRule)(s,d)&&WIt(e,d.keyword,d.definition,r.type)})}function q3r(e,r){e.schemaEnv.meta||!e.opts.strictTypes||(J3r(e,r),e.opts.allowUnionTypes||V3r(e,r),W3r(e,e.dataTypes))}function J3r(e,r){if(r.length){if(!e.dataTypes.length){e.dataTypes=r;return}r.forEach(i=>{VIt(e.dataTypes,i)||qze(e,`type "${i}" not allowed by context "${e.dataTypes.join(",")}"`)}),H3r(e,r)}}function V3r(e,r){r.length>1&&!(r.length===2&&r.includes("null"))&&qze(e,"use allowUnionTypes to allow union type keyword")}function W3r(e,r){let i=e.self.RULES.all;for(let s in i){let l=i[s];if(typeof l=="object"&&(0,zze.shouldUseRule)(e.schema,l)){let{type:d}=l.definition;d.length&&!d.some(h=>G3r(r,h))&&qze(e,`missing type "${d.join(",")}" for keyword "${s}"`)}}}function G3r(e,r){return e.includes(r)||r==="number"&&e.includes("integer")}function VIt(e,r){return e.includes(r)||r==="integer"&&e.includes("number")}function H3r(e,r){let i=[];for(let s of e.dataTypes)VIt(r,s)?i.push(s):r.includes("integer")&&s==="number"&&i.push("integer");e.dataTypes=i}function qze(e,r){let i=e.schemaEnv.baseId+e.errSchemaPath;r+=` at "${i}" (strictTypes)`,(0,H7.checkStrictMode)(e,r,e.opts.strictTypes)}var x2e=class{constructor(r,i,s){if((0,Hce.validateKeywordUsage)(r,i,s),this.gen=r.gen,this.allErrors=r.allErrors,this.keyword=s,this.data=r.data,this.schema=r.schema[s],this.$data=i.$data&&r.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,H7.schemaRefOrVal)(r,this.schema,s,this.$data),this.schemaType=i.schemaType,this.parentSchema=r.schema,this.params={},this.it=r,this.def=i,this.$data)this.schemaCode=r.gen.const("vSchema",GIt(this.$data,r));else if(this.schemaCode=this.schemaValue,!(0,Hce.validSchemaType)(this.schema,i.schemaType,i.allowUndefined))throw new Error(`${s} value must be ${JSON.stringify(i.schemaType)}`);("code"in i?i.trackErrors:i.errors!==!1)&&(this.errsCount=r.gen.const("_errs",xp.default.errors))}result(r,i,s){this.failResult((0,zl.not)(r),i,s)}failResult(r,i,s){this.gen.if(r),s?s():this.error(),i?(this.gen.else(),i(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(r,i){this.failResult((0,zl.not)(r),void 0,i)}fail(r){if(r===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(r),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(r){if(!this.$data)return this.fail(r);let{schemaCode:i}=this;this.fail((0,zl._)`${i} !== undefined && (${(0,zl.or)(this.invalid$data(),r)})`)}error(r,i,s){if(i){this.setParams(i),this._error(r,s),this.setParams({});return}this._error(r,s)}_error(r,i){(r?Gce.reportExtraError:Gce.reportError)(this,this.def.error,i)}$dataError(){(0,Gce.reportError)(this,this.def.$dataError||Gce.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Gce.resetErrorsCount)(this.gen,this.errsCount)}ok(r){this.allErrors||this.gen.if(r)}setParams(r,i){i?Object.assign(this.params,r):this.params=r}block$data(r,i,s=zl.nil){this.gen.block(()=>{this.check$data(r,s),i()})}check$data(r=zl.nil,i=zl.nil){if(!this.$data)return;let{gen:s,schemaCode:l,schemaType:d,def:h}=this;s.if((0,zl.or)((0,zl._)`${l} === undefined`,i)),r!==zl.nil&&s.assign(r,!0),(d.length||h.validateSchema)&&(s.elseIf(this.invalid$data()),this.$dataError(),r!==zl.nil&&s.assign(r,!1)),s.else()}invalid$data(){let{gen:r,schemaCode:i,schemaType:s,def:l,it:d}=this;return(0,zl.or)(h(),S());function h(){if(s.length){if(!(i instanceof zl.Name))throw new Error("ajv implementation error");let b=Array.isArray(s)?s:[s];return(0,zl._)`${(0,b2e.checkDataTypes)(b,i,d.opts.strictNumbers,b2e.DataType.Wrong)}`}return zl.nil}function S(){if(l.validateSchema){let b=r.scopeValue("validate$data",{ref:l.validateSchema});return(0,zl._)`!${b}(${i})`}return zl.nil}}subschema(r,i){let s=(0,Uze.getSubschema)(this.it,r);(0,Uze.extendSubschemaData)(s,this.it,r),(0,Uze.extendSubschemaMode)(s,r);let l={...this.it,...s,items:void 0,props:void 0};return R3r(l,i),l}mergeEvaluated(r,i){let{it:s,gen:l}=this;s.opts.unevaluated&&(s.props!==!0&&r.props!==void 0&&(s.props=H7.mergeEvaluated.props(l,r.props,s.props,i)),s.items!==!0&&r.items!==void 0&&(s.items=H7.mergeEvaluated.items(l,r.items,s.items,i)))}mergeValidEvaluated(r,i){let{it:s,gen:l}=this;if(s.opts.unevaluated&&(s.props!==!0||s.items!==!0))return l.if(i,()=>this.mergeEvaluated(r,zl.Name)),!0}};ij.KeywordCxt=x2e;function WIt(e,r,i,s){let l=new x2e(e,i,r);"code"in i?i.code(l,s):l.$data&&i.validate?(0,Hce.funcKeywordCode)(l,i):"macro"in i?(0,Hce.macroKeywordCode)(l,i):(i.compile||i.validate)&&(0,Hce.funcKeywordCode)(l,i)}var K3r=/^\/(?:[^~]|~0|~1)*$/,Q3r=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function GIt(e,{dataLevel:r,dataNames:i,dataPathArr:s}){let l,d;if(e==="")return xp.default.rootData;if(e[0]==="/"){if(!K3r.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);l=e,d=xp.default.rootData}else{let A=Q3r.exec(e);if(!A)throw new Error(`Invalid JSON-pointer: ${e}`);let L=+A[1];if(l=A[2],l==="#"){if(L>=r)throw new Error(b("property/index",L));return s[r-L]}if(L>r)throw new Error(b("data",L));if(d=i[r-L],!l)return d}let h=d,S=l.split("/");for(let A of S)A&&(d=(0,zl._)`${d}${(0,zl.getProperty)((0,H7.unescapeJsonPointer)(A))}`,h=(0,zl._)`${h} && ${d}`);return h;function b(A,L){return`Cannot access ${A} ${L} levels up, current level is ${r}`}}ij.getData=GIt});var Kce=dr(Vze=>{"use strict";Object.defineProperty(Vze,"__esModule",{value:!0});var Jze=class extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}};Vze.default=Jze});var tX=dr(Hze=>{"use strict";Object.defineProperty(Hze,"__esModule",{value:!0});var Wze=Wce(),Gze=class extends Error{constructor(r,i,s,l){super(l||`can't resolve reference ${s} from id ${i}`),this.missingRef=(0,Wze.resolveUrl)(r,i,s),this.missingSchema=(0,Wze.normalizeId)((0,Wze.getFullPath)(r,this.missingRef))}};Hze.default=Gze});var Qce=dr(Mw=>{"use strict";Object.defineProperty(Mw,"__esModule",{value:!0});Mw.resolveSchema=Mw.getCompilingSchema=Mw.resolveRef=Mw.compileSchema=Mw.SchemaEnv=void 0;var g6=wp(),Z3r=Kce(),bJ=Rw(),y6=Wce(),HIt=cd(),X3r=eX(),rX=class{constructor(r){var i;this.refs={},this.dynamicAnchors={};let s;typeof r.schema=="object"&&(s=r.schema),this.schema=r.schema,this.schemaId=r.schemaId,this.root=r.root||this,this.baseId=(i=r.baseId)!==null&&i!==void 0?i:(0,y6.normalizeId)(s?.[r.schemaId||"$id"]),this.schemaPath=r.schemaPath,this.localRefs=r.localRefs,this.meta=r.meta,this.$async=s?.$async,this.refs={}}};Mw.SchemaEnv=rX;function Qze(e){let r=KIt.call(this,e);if(r)return r;let i=(0,y6.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:s,lines:l}=this.opts.code,{ownProperties:d}=this.opts,h=new g6.CodeGen(this.scope,{es5:s,lines:l,ownProperties:d}),S;e.$async&&(S=h.scopeValue("Error",{ref:Z3r.default,code:(0,g6._)`require("ajv/dist/runtime/validation_error").default`}));let b=h.scopeName("validate");e.validateName=b;let A={gen:h,allErrors:this.opts.allErrors,data:bJ.default.data,parentData:bJ.default.parentData,parentDataProperty:bJ.default.parentDataProperty,dataNames:[bJ.default.data],dataPathArr:[g6.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:h.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,g6.stringify)(e.schema)}:{ref:e.schema}),validateName:b,ValidationError:S,schema:e.schema,schemaEnv:e,rootId:i,baseId:e.baseId||i,schemaPath:g6.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,g6._)`""`,opts:this.opts,self:this},L;try{this._compilations.add(e),(0,X3r.validateFunctionCode)(A),h.optimize(this.opts.code.optimize);let V=h.toString();L=`${h.scopeRefs(bJ.default.scope)}return ${V}`,this.opts.code.process&&(L=this.opts.code.process(L,e));let ie=new Function(`${bJ.default.self}`,`${bJ.default.scope}`,L)(this,this.scope.get());if(this.scope.value(b,{ref:ie}),ie.errors=null,ie.schema=e.schema,ie.schemaEnv=e,e.$async&&(ie.$async=!0),this.opts.code.source===!0&&(ie.source={validateName:b,validateCode:V,scopeValues:h._values}),this.opts.unevaluated){let{props:te,items:X}=A;ie.evaluated={props:te instanceof g6.Name?void 0:te,items:X instanceof g6.Name?void 0:X,dynamicProps:te instanceof g6.Name,dynamicItems:X instanceof g6.Name},ie.source&&(ie.source.evaluated=(0,g6.stringify)(ie.evaluated))}return e.validate=ie,e}catch(V){throw delete e.validate,delete e.validateName,L&&this.logger.error("Error compiling schema, function code:",L),V}finally{this._compilations.delete(e)}}Mw.compileSchema=Qze;function Y3r(e,r,i){var s;i=(0,y6.resolveUrl)(this.opts.uriResolver,r,i);let l=e.refs[i];if(l)return l;let d=rNr.call(this,e,i);if(d===void 0){let h=(s=e.localRefs)===null||s===void 0?void 0:s[i],{schemaId:S}=this.opts;h&&(d=new rX({schema:h,schemaId:S,root:e,baseId:r}))}if(d!==void 0)return e.refs[i]=eNr.call(this,d)}Mw.resolveRef=Y3r;function eNr(e){return(0,y6.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Qze.call(this,e)}function KIt(e){for(let r of this._compilations)if(tNr(r,e))return r}Mw.getCompilingSchema=KIt;function tNr(e,r){return e.schema===r.schema&&e.root===r.root&&e.baseId===r.baseId}function rNr(e,r){let i;for(;typeof(i=this.refs[r])=="string";)r=i;return i||this.schemas[r]||T2e.call(this,e,r)}function T2e(e,r){let i=this.opts.uriResolver.parse(r),s=(0,y6._getFullPath)(this.opts.uriResolver,i),l=(0,y6.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&s===l)return Kze.call(this,i,e);let d=(0,y6.normalizeId)(s),h=this.refs[d]||this.schemas[d];if(typeof h=="string"){let S=T2e.call(this,e,h);return typeof S?.schema!="object"?void 0:Kze.call(this,i,S)}if(typeof h?.schema=="object"){if(h.validate||Qze.call(this,h),d===(0,y6.normalizeId)(r)){let{schema:S}=h,{schemaId:b}=this.opts,A=S[b];return A&&(l=(0,y6.resolveUrl)(this.opts.uriResolver,l,A)),new rX({schema:S,schemaId:b,root:e,baseId:l})}return Kze.call(this,i,h)}}Mw.resolveSchema=T2e;var nNr=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Kze(e,{baseId:r,schema:i,root:s}){var l;if(((l=e.fragment)===null||l===void 0?void 0:l[0])!=="/")return;for(let S of e.fragment.slice(1).split("/")){if(typeof i=="boolean")return;let b=i[(0,HIt.unescapeFragment)(S)];if(b===void 0)return;i=b;let A=typeof i=="object"&&i[this.opts.schemaId];!nNr.has(S)&&A&&(r=(0,y6.resolveUrl)(this.opts.uriResolver,r,A))}let d;if(typeof i!="boolean"&&i.$ref&&!(0,HIt.schemaHasRulesButRef)(i,this.RULES)){let S=(0,y6.resolveUrl)(this.opts.uriResolver,r,i.$ref);d=T2e.call(this,s,S)}let{schemaId:h}=this.opts;if(d=d||new rX({schema:i,schemaId:h,root:s,baseId:r}),d.schema!==d.root.schema)return d}});var QIt=dr((P4n,iNr)=>{iNr.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Xze=dr((N4n,ePt)=>{"use strict";var oNr=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),XIt=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function Zze(e){let r="",i=0,s=0;for(s=0;s=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))return"";r+=e[s];break}for(s+=1;s=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))return"";r+=e[s]}return r}var aNr=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function ZIt(e){return e.length=0,!0}function sNr(e,r,i){if(e.length){let s=Zze(e);if(s!=="")r.push(s);else return i.error=!0,!1;e.length=0}return!0}function cNr(e){let r=0,i={error:!1,address:"",zone:""},s=[],l=[],d=!1,h=!1,S=sNr;for(let b=0;b7){i.error=!0;break}b>0&&e[b-1]===":"&&(d=!0),s.push(":");continue}else if(A==="%"){if(!S(l,s,i))break;S=ZIt}else{l.push(A);continue}}return l.length&&(S===ZIt?i.zone=l.join(""):h?s.push(l.join("")):s.push(Zze(l))),i.address=s.join(""),i}function YIt(e){if(lNr(e,":")<2)return{host:e,isIPV6:!1};let r=cNr(e);if(r.error)return{host:e,isIPV6:!1};{let i=r.address,s=r.address;return r.zone&&(i+="%"+r.zone,s+="%25"+r.zone),{host:i,isIPV6:!0,escapedHost:s}}}function lNr(e,r){let i=0;for(let s=0;s{"use strict";var{isUUID:dNr}=Xze(),fNr=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,mNr=["http","https","ws","wss","urn","urn:uuid"];function hNr(e){return mNr.indexOf(e)!==-1}function Yze(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function tPt(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function rPt(e){let r=String(e.scheme).toLowerCase()==="https";return(e.port===(r?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function gNr(e){return e.secure=Yze(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function yNr(e){if((e.port===(Yze(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[r,i]=e.resourceName.split("?");e.path=r&&r!=="/"?r:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}function vNr(e,r){if(!e.path)return e.error="URN can not be parsed",e;let i=e.path.match(fNr);if(i){let s=r.scheme||e.scheme||"urn";e.nid=i[1].toLowerCase(),e.nss=i[2];let l=`${s}:${r.nid||e.nid}`,d=eqe(l);e.path=void 0,d&&(e=d.parse(e,r))}else e.error=e.error||"URN can not be parsed.";return e}function SNr(e,r){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let i=r.scheme||e.scheme||"urn",s=e.nid.toLowerCase(),l=`${i}:${r.nid||s}`,d=eqe(l);d&&(e=d.serialize(e,r));let h=e,S=e.nss;return h.path=`${s||r.nid}:${S}`,r.skipEscape=!0,h}function bNr(e,r){let i=e;return i.uuid=i.nss,i.nss=void 0,!r.tolerant&&(!i.uuid||!dNr(i.uuid))&&(i.error=i.error||"UUID is not valid."),i}function xNr(e){let r=e;return r.nss=(e.uuid||"").toLowerCase(),r}var nPt={scheme:"http",domainHost:!0,parse:tPt,serialize:rPt},TNr={scheme:"https",domainHost:nPt.domainHost,parse:tPt,serialize:rPt},E2e={scheme:"ws",domainHost:!0,parse:gNr,serialize:yNr},ENr={scheme:"wss",domainHost:E2e.domainHost,parse:E2e.parse,serialize:E2e.serialize},kNr={scheme:"urn",parse:vNr,serialize:SNr,skipNormalize:!0},CNr={scheme:"urn:uuid",parse:bNr,serialize:xNr,skipNormalize:!0},k2e={http:nPt,https:TNr,ws:E2e,wss:ENr,urn:kNr,"urn:uuid":CNr};Object.setPrototypeOf(k2e,null);function eqe(e){return e&&(k2e[e]||k2e[e.toLowerCase()])||void 0}iPt.exports={wsIsSecure:Yze,SCHEMES:k2e,isValidSchemeName:hNr,getSchemeHandler:eqe}});var cPt=dr((F4n,D2e)=>{"use strict";var{normalizeIPv6:DNr,removeDotSegments:Zce,recomposeAuthority:ANr,normalizeComponentEncoding:C2e,isIPv4:wNr,nonSimpleDomain:INr}=Xze(),{SCHEMES:PNr,getSchemeHandler:aPt}=oPt();function NNr(e,r){return typeof e=="string"?e=AN(K7(e,r),r):typeof e=="object"&&(e=K7(AN(e,r),r)),e}function ONr(e,r,i){let s=i?Object.assign({scheme:"null"},i):{scheme:"null"},l=sPt(K7(e,s),K7(r,s),s,!0);return s.skipEscape=!0,AN(l,s)}function sPt(e,r,i,s){let l={};return s||(e=K7(AN(e,i),i),r=K7(AN(r,i),i)),i=i||{},!i.tolerant&&r.scheme?(l.scheme=r.scheme,l.userinfo=r.userinfo,l.host=r.host,l.port=r.port,l.path=Zce(r.path||""),l.query=r.query):(r.userinfo!==void 0||r.host!==void 0||r.port!==void 0?(l.userinfo=r.userinfo,l.host=r.host,l.port=r.port,l.path=Zce(r.path||""),l.query=r.query):(r.path?(r.path[0]==="/"?l.path=Zce(r.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?l.path="/"+r.path:e.path?l.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path:l.path=r.path,l.path=Zce(l.path)),l.query=r.query):(l.path=e.path,r.query!==void 0?l.query=r.query:l.query=e.query),l.userinfo=e.userinfo,l.host=e.host,l.port=e.port),l.scheme=e.scheme),l.fragment=r.fragment,l}function FNr(e,r,i){return typeof e=="string"?(e=unescape(e),e=AN(C2e(K7(e,i),!0),{...i,skipEscape:!0})):typeof e=="object"&&(e=AN(C2e(e,!0),{...i,skipEscape:!0})),typeof r=="string"?(r=unescape(r),r=AN(C2e(K7(r,i),!0),{...i,skipEscape:!0})):typeof r=="object"&&(r=AN(C2e(r,!0),{...i,skipEscape:!0})),e.toLowerCase()===r.toLowerCase()}function AN(e,r){let i={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},s=Object.assign({},r),l=[],d=aPt(s.scheme||i.scheme);d&&d.serialize&&d.serialize(i,s),i.path!==void 0&&(s.skipEscape?i.path=unescape(i.path):(i.path=escape(i.path),i.scheme!==void 0&&(i.path=i.path.split("%3A").join(":")))),s.reference!=="suffix"&&i.scheme&&l.push(i.scheme,":");let h=ANr(i);if(h!==void 0&&(s.reference!=="suffix"&&l.push("//"),l.push(h),i.path&&i.path[0]!=="/"&&l.push("/")),i.path!==void 0){let S=i.path;!s.absolutePath&&(!d||!d.absolutePath)&&(S=Zce(S)),h===void 0&&S[0]==="/"&&S[1]==="/"&&(S="/%2F"+S.slice(2)),l.push(S)}return i.query!==void 0&&l.push("?",i.query),i.fragment!==void 0&&l.push("#",i.fragment),l.join("")}var RNr=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function K7(e,r){let i=Object.assign({},r),s={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},l=!1;i.reference==="suffix"&&(i.scheme?e=i.scheme+":"+e:e="//"+e);let d=e.match(RNr);if(d){if(s.scheme=d[1],s.userinfo=d[3],s.host=d[4],s.port=parseInt(d[5],10),s.path=d[6]||"",s.query=d[7],s.fragment=d[8],isNaN(s.port)&&(s.port=d[5]),s.host)if(wNr(s.host)===!1){let b=DNr(s.host);s.host=b.host.toLowerCase(),l=b.isIPV6}else l=!0;s.scheme===void 0&&s.userinfo===void 0&&s.host===void 0&&s.port===void 0&&s.query===void 0&&!s.path?s.reference="same-document":s.scheme===void 0?s.reference="relative":s.fragment===void 0?s.reference="absolute":s.reference="uri",i.reference&&i.reference!=="suffix"&&i.reference!==s.reference&&(s.error=s.error||"URI is not a "+i.reference+" reference.");let h=aPt(i.scheme||s.scheme);if(!i.unicodeSupport&&(!h||!h.unicodeSupport)&&s.host&&(i.domainHost||h&&h.domainHost)&&l===!1&&INr(s.host))try{s.host=URL.domainToASCII(s.host.toLowerCase())}catch(S){s.error=s.error||"Host's domain name can not be converted to ASCII: "+S}(!h||h&&!h.skipNormalize)&&(e.indexOf("%")!==-1&&(s.scheme!==void 0&&(s.scheme=unescape(s.scheme)),s.host!==void 0&&(s.host=unescape(s.host))),s.path&&(s.path=escape(unescape(s.path))),s.fragment&&(s.fragment=encodeURI(decodeURIComponent(s.fragment)))),h&&h.parse&&h.parse(s,i)}else s.error=s.error||"URI can not be parsed.";return s}var tqe={SCHEMES:PNr,normalize:NNr,resolve:ONr,resolveComponent:sPt,equal:FNr,serialize:AN,parse:K7};D2e.exports=tqe;D2e.exports.default=tqe;D2e.exports.fastUri=tqe});var uPt=dr(rqe=>{"use strict";Object.defineProperty(rqe,"__esModule",{value:!0});var lPt=cPt();lPt.code='require("ajv/dist/runtime/uri").default';rqe.default=lPt});var oqe=dr(Kb=>{"use strict";Object.defineProperty(Kb,"__esModule",{value:!0});Kb.CodeGen=Kb.Name=Kb.nil=Kb.stringify=Kb.str=Kb._=Kb.KeywordCxt=void 0;var LNr=eX();Object.defineProperty(Kb,"KeywordCxt",{enumerable:!0,get:function(){return LNr.KeywordCxt}});var nX=wp();Object.defineProperty(Kb,"_",{enumerable:!0,get:function(){return nX._}});Object.defineProperty(Kb,"str",{enumerable:!0,get:function(){return nX.str}});Object.defineProperty(Kb,"stringify",{enumerable:!0,get:function(){return nX.stringify}});Object.defineProperty(Kb,"nil",{enumerable:!0,get:function(){return nX.nil}});Object.defineProperty(Kb,"Name",{enumerable:!0,get:function(){return nX.Name}});Object.defineProperty(Kb,"CodeGen",{enumerable:!0,get:function(){return nX.CodeGen}});var MNr=Kce(),mPt=tX(),jNr=Pze(),Xce=Qce(),BNr=wp(),Yce=Wce(),A2e=Vce(),iqe=cd(),pPt=QIt(),$Nr=uPt(),hPt=(e,r)=>new RegExp(e,r);hPt.code="new RegExp";var UNr=["removeAdditional","useDefaults","coerceTypes"],zNr=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),qNr={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},JNr={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},_Pt=200;function VNr(e){var r,i,s,l,d,h,S,b,A,L,V,j,ie,te,X,Re,Je,pt,$e,xt,tr,ht,wt,Ut,hr;let Hi=e.strict,un=(r=e.code)===null||r===void 0?void 0:r.optimize,xo=un===!0||un===void 0?1:un||0,Lo=(s=(i=e.code)===null||i===void 0?void 0:i.regExp)!==null&&s!==void 0?s:hPt,yr=(l=e.uriResolver)!==null&&l!==void 0?l:$Nr.default;return{strictSchema:(h=(d=e.strictSchema)!==null&&d!==void 0?d:Hi)!==null&&h!==void 0?h:!0,strictNumbers:(b=(S=e.strictNumbers)!==null&&S!==void 0?S:Hi)!==null&&b!==void 0?b:!0,strictTypes:(L=(A=e.strictTypes)!==null&&A!==void 0?A:Hi)!==null&&L!==void 0?L:"log",strictTuples:(j=(V=e.strictTuples)!==null&&V!==void 0?V:Hi)!==null&&j!==void 0?j:"log",strictRequired:(te=(ie=e.strictRequired)!==null&&ie!==void 0?ie:Hi)!==null&&te!==void 0?te:!1,code:e.code?{...e.code,optimize:xo,regExp:Lo}:{optimize:xo,regExp:Lo},loopRequired:(X=e.loopRequired)!==null&&X!==void 0?X:_Pt,loopEnum:(Re=e.loopEnum)!==null&&Re!==void 0?Re:_Pt,meta:(Je=e.meta)!==null&&Je!==void 0?Je:!0,messages:(pt=e.messages)!==null&&pt!==void 0?pt:!0,inlineRefs:($e=e.inlineRefs)!==null&&$e!==void 0?$e:!0,schemaId:(xt=e.schemaId)!==null&&xt!==void 0?xt:"$id",addUsedSchema:(tr=e.addUsedSchema)!==null&&tr!==void 0?tr:!0,validateSchema:(ht=e.validateSchema)!==null&&ht!==void 0?ht:!0,validateFormats:(wt=e.validateFormats)!==null&&wt!==void 0?wt:!0,unicodeRegExp:(Ut=e.unicodeRegExp)!==null&&Ut!==void 0?Ut:!0,int32range:(hr=e.int32range)!==null&&hr!==void 0?hr:!0,uriResolver:yr}}var ele=class{constructor(r={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,r=this.opts={...r,...VNr(r)};let{es5:i,lines:s}=this.opts.code;this.scope=new BNr.ValueScope({scope:{},prefixes:zNr,es5:i,lines:s}),this.logger=ZNr(r.logger);let l=r.validateFormats;r.validateFormats=!1,this.RULES=(0,jNr.getRules)(),dPt.call(this,qNr,r,"NOT SUPPORTED"),dPt.call(this,JNr,r,"DEPRECATED","warn"),this._metaOpts=KNr.call(this),r.formats&&GNr.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),r.keywords&&HNr.call(this,r.keywords),typeof r.meta=="object"&&this.addMetaSchema(r.meta),WNr.call(this),r.validateFormats=l}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:r,meta:i,schemaId:s}=this.opts,l=pPt;s==="id"&&(l={...pPt},l.id=l.$id,delete l.$id),i&&r&&this.addMetaSchema(l,l[s],!1)}defaultMeta(){let{meta:r,schemaId:i}=this.opts;return this.opts.defaultMeta=typeof r=="object"?r[i]||r:void 0}validate(r,i){let s;if(typeof r=="string"){if(s=this.getSchema(r),!s)throw new Error(`no schema with key or ref "${r}"`)}else s=this.compile(r);let l=s(i);return"$async"in s||(this.errors=s.errors),l}compile(r,i){let s=this._addSchema(r,i);return s.validate||this._compileSchemaEnv(s)}compileAsync(r,i){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:s}=this.opts;return l.call(this,r,i);async function l(L,V){await d.call(this,L.$schema);let j=this._addSchema(L,V);return j.validate||h.call(this,j)}async function d(L){L&&!this.getSchema(L)&&await l.call(this,{$ref:L},!0)}async function h(L){try{return this._compileSchemaEnv(L)}catch(V){if(!(V instanceof mPt.default))throw V;return S.call(this,V),await b.call(this,V.missingSchema),h.call(this,L)}}function S({missingSchema:L,missingRef:V}){if(this.refs[L])throw new Error(`AnySchema ${L} is loaded but ${V} cannot be resolved`)}async function b(L){let V=await A.call(this,L);this.refs[L]||await d.call(this,V.$schema),this.refs[L]||this.addSchema(V,L,i)}async function A(L){let V=this._loading[L];if(V)return V;try{return await(this._loading[L]=s(L))}finally{delete this._loading[L]}}}addSchema(r,i,s,l=this.opts.validateSchema){if(Array.isArray(r)){for(let h of r)this.addSchema(h,void 0,s,l);return this}let d;if(typeof r=="object"){let{schemaId:h}=this.opts;if(d=r[h],d!==void 0&&typeof d!="string")throw new Error(`schema ${h} must be string`)}return i=(0,Yce.normalizeId)(i||d),this._checkUnique(i),this.schemas[i]=this._addSchema(r,s,i,l,!0),this}addMetaSchema(r,i,s=this.opts.validateSchema){return this.addSchema(r,i,!0,s),this}validateSchema(r,i){if(typeof r=="boolean")return!0;let s;if(s=r.$schema,s!==void 0&&typeof s!="string")throw new Error("$schema must be a string");if(s=s||this.opts.defaultMeta||this.defaultMeta(),!s)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let l=this.validate(s,r);if(!l&&i){let d="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(d);else throw new Error(d)}return l}getSchema(r){let i;for(;typeof(i=fPt.call(this,r))=="string";)r=i;if(i===void 0){let{schemaId:s}=this.opts,l=new Xce.SchemaEnv({schema:{},schemaId:s});if(i=Xce.resolveSchema.call(this,l,r),!i)return;this.refs[r]=i}return i.validate||this._compileSchemaEnv(i)}removeSchema(r){if(r instanceof RegExp)return this._removeAllSchemas(this.schemas,r),this._removeAllSchemas(this.refs,r),this;switch(typeof r){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let i=fPt.call(this,r);return typeof i=="object"&&this._cache.delete(i.schema),delete this.schemas[r],delete this.refs[r],this}case"object":{let i=r;this._cache.delete(i);let s=r[this.opts.schemaId];return s&&(s=(0,Yce.normalizeId)(s),delete this.schemas[s],delete this.refs[s]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(r){for(let i of r)this.addKeyword(i);return this}addKeyword(r,i){let s;if(typeof r=="string")s=r,typeof i=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),i.keyword=s);else if(typeof r=="object"&&i===void 0){if(i=r,s=i.keyword,Array.isArray(s)&&!s.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(YNr.call(this,s,i),!i)return(0,iqe.eachItem)(s,d=>nqe.call(this,d)),this;t8r.call(this,i);let l={...i,type:(0,A2e.getJSONTypes)(i.type),schemaType:(0,A2e.getJSONTypes)(i.schemaType)};return(0,iqe.eachItem)(s,l.type.length===0?d=>nqe.call(this,d,l):d=>l.type.forEach(h=>nqe.call(this,d,l,h))),this}getKeyword(r){let i=this.RULES.all[r];return typeof i=="object"?i.definition:!!i}removeKeyword(r){let{RULES:i}=this;delete i.keywords[r],delete i.all[r];for(let s of i.rules){let l=s.rules.findIndex(d=>d.keyword===r);l>=0&&s.rules.splice(l,1)}return this}addFormat(r,i){return typeof i=="string"&&(i=new RegExp(i)),this.formats[r]=i,this}errorsText(r=this.errors,{separator:i=", ",dataVar:s="data"}={}){return!r||r.length===0?"No errors":r.map(l=>`${s}${l.instancePath} ${l.message}`).reduce((l,d)=>l+i+d)}$dataMetaSchema(r,i){let s=this.RULES.all;r=JSON.parse(JSON.stringify(r));for(let l of i){let d=l.split("/").slice(1),h=r;for(let S of d)h=h[S];for(let S in s){let b=s[S];if(typeof b!="object")continue;let{$data:A}=b.definition,L=h[S];A&&L&&(h[S]=gPt(L))}}return r}_removeAllSchemas(r,i){for(let s in r){let l=r[s];(!i||i.test(s))&&(typeof l=="string"?delete r[s]:l&&!l.meta&&(this._cache.delete(l.schema),delete r[s]))}}_addSchema(r,i,s,l=this.opts.validateSchema,d=this.opts.addUsedSchema){let h,{schemaId:S}=this.opts;if(typeof r=="object")h=r[S];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof r!="boolean")throw new Error("schema must be object or boolean")}let b=this._cache.get(r);if(b!==void 0)return b;s=(0,Yce.normalizeId)(h||s);let A=Yce.getSchemaRefs.call(this,r,s);return b=new Xce.SchemaEnv({schema:r,schemaId:S,meta:i,baseId:s,localRefs:A}),this._cache.set(b.schema,b),d&&!s.startsWith("#")&&(s&&this._checkUnique(s),this.refs[s]=b),l&&this.validateSchema(r,!0),b}_checkUnique(r){if(this.schemas[r]||this.refs[r])throw new Error(`schema with key or id "${r}" already exists`)}_compileSchemaEnv(r){if(r.meta?this._compileMetaSchema(r):Xce.compileSchema.call(this,r),!r.validate)throw new Error("ajv implementation error");return r.validate}_compileMetaSchema(r){let i=this.opts;this.opts=this._metaOpts;try{Xce.compileSchema.call(this,r)}finally{this.opts=i}}};ele.ValidationError=MNr.default;ele.MissingRefError=mPt.default;Kb.default=ele;function dPt(e,r,i,s="error"){for(let l in e){let d=l;d in r&&this.logger[s](`${i}: option ${l}. ${e[d]}`)}}function fPt(e){return e=(0,Yce.normalizeId)(e),this.schemas[e]||this.refs[e]}function WNr(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let r in e)this.addSchema(e[r],r)}function GNr(){for(let e in this.opts.formats){let r=this.opts.formats[e];r&&this.addFormat(e,r)}}function HNr(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let r in e){let i=e[r];i.keyword||(i.keyword=r),this.addKeyword(i)}}function KNr(){let e={...this.opts};for(let r of UNr)delete e[r];return e}var QNr={log(){},warn(){},error(){}};function ZNr(e){if(e===!1)return QNr;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var XNr=/^[a-z_$][a-z0-9_$:-]*$/i;function YNr(e,r){let{RULES:i}=this;if((0,iqe.eachItem)(e,s=>{if(i.keywords[s])throw new Error(`Keyword ${s} is already defined`);if(!XNr.test(s))throw new Error(`Keyword ${s} has invalid name`)}),!!r&&r.$data&&!("code"in r||"validate"in r))throw new Error('$data keyword must have "code" or "validate" function')}function nqe(e,r,i){var s;let l=r?.post;if(i&&l)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:d}=this,h=l?d.post:d.rules.find(({type:b})=>b===i);if(h||(h={type:i,rules:[]},d.rules.push(h)),d.keywords[e]=!0,!r)return;let S={keyword:e,definition:{...r,type:(0,A2e.getJSONTypes)(r.type),schemaType:(0,A2e.getJSONTypes)(r.schemaType)}};r.before?e8r.call(this,h,S,r.before):h.rules.push(S),d.all[e]=S,(s=r.implements)===null||s===void 0||s.forEach(b=>this.addKeyword(b))}function e8r(e,r,i){let s=e.rules.findIndex(l=>l.keyword===i);s>=0?e.rules.splice(s,0,r):(e.rules.push(r),this.logger.warn(`rule ${i} is not defined`))}function t8r(e){let{metaSchema:r}=e;r!==void 0&&(e.$data&&this.opts.$data&&(r=gPt(r)),e.validateSchema=this.compile(r,!0))}var r8r={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function gPt(e){return{anyOf:[e,r8r]}}});var yPt=dr(aqe=>{"use strict";Object.defineProperty(aqe,"__esModule",{value:!0});var n8r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};aqe.default=n8r});var P2e=dr(xJ=>{"use strict";Object.defineProperty(xJ,"__esModule",{value:!0});xJ.callRef=xJ.getValidate=void 0;var i8r=tX(),vPt=Lw(),ck=wp(),iX=Rw(),SPt=Qce(),w2e=cd(),o8r={keyword:"$ref",schemaType:"string",code(e){let{gen:r,schema:i,it:s}=e,{baseId:l,schemaEnv:d,validateName:h,opts:S,self:b}=s,{root:A}=d;if((i==="#"||i==="#/")&&l===A.baseId)return V();let L=SPt.resolveRef.call(b,A,l,i);if(L===void 0)throw new i8r.default(s.opts.uriResolver,l,i);if(L instanceof SPt.SchemaEnv)return j(L);return ie(L);function V(){if(d===A)return I2e(e,h,d,d.$async);let te=r.scopeValue("root",{ref:A});return I2e(e,(0,ck._)`${te}.validate`,A,A.$async)}function j(te){let X=bPt(e,te);I2e(e,X,te,te.$async)}function ie(te){let X=r.scopeValue("schema",S.code.source===!0?{ref:te,code:(0,ck.stringify)(te)}:{ref:te}),Re=r.name("valid"),Je=e.subschema({schema:te,dataTypes:[],schemaPath:ck.nil,topSchemaRef:X,errSchemaPath:i},Re);e.mergeEvaluated(Je),e.ok(Re)}}};function bPt(e,r){let{gen:i}=e;return r.validate?i.scopeValue("validate",{ref:r.validate}):(0,ck._)`${i.scopeValue("wrapper",{ref:r})}.validate`}xJ.getValidate=bPt;function I2e(e,r,i,s){let{gen:l,it:d}=e,{allErrors:h,schemaEnv:S,opts:b}=d,A=b.passContext?iX.default.this:ck.nil;s?L():V();function L(){if(!S.$async)throw new Error("async schema referenced by sync schema");let te=l.let("valid");l.try(()=>{l.code((0,ck._)`await ${(0,vPt.callValidateCode)(e,r,A)}`),ie(r),h||l.assign(te,!0)},X=>{l.if((0,ck._)`!(${X} instanceof ${d.ValidationError})`,()=>l.throw(X)),j(X),h||l.assign(te,!1)}),e.ok(te)}function V(){e.result((0,vPt.callValidateCode)(e,r,A),()=>ie(r),()=>j(r))}function j(te){let X=(0,ck._)`${te}.errors`;l.assign(iX.default.vErrors,(0,ck._)`${iX.default.vErrors} === null ? ${X} : ${iX.default.vErrors}.concat(${X})`),l.assign(iX.default.errors,(0,ck._)`${iX.default.vErrors}.length`)}function ie(te){var X;if(!d.opts.unevaluated)return;let Re=(X=i?.validate)===null||X===void 0?void 0:X.evaluated;if(d.props!==!0)if(Re&&!Re.dynamicProps)Re.props!==void 0&&(d.props=w2e.mergeEvaluated.props(l,Re.props,d.props));else{let Je=l.var("props",(0,ck._)`${te}.evaluated.props`);d.props=w2e.mergeEvaluated.props(l,Je,d.props,ck.Name)}if(d.items!==!0)if(Re&&!Re.dynamicItems)Re.items!==void 0&&(d.items=w2e.mergeEvaluated.items(l,Re.items,d.items));else{let Je=l.var("items",(0,ck._)`${te}.evaluated.items`);d.items=w2e.mergeEvaluated.items(l,Je,d.items,ck.Name)}}}xJ.callRef=I2e;xJ.default=o8r});var cqe=dr(sqe=>{"use strict";Object.defineProperty(sqe,"__esModule",{value:!0});var a8r=yPt(),s8r=P2e(),c8r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",a8r.default,s8r.default];sqe.default=c8r});var xPt=dr(lqe=>{"use strict";Object.defineProperty(lqe,"__esModule",{value:!0});var N2e=wp(),oj=N2e.operators,O2e={maximum:{okStr:"<=",ok:oj.LTE,fail:oj.GT},minimum:{okStr:">=",ok:oj.GTE,fail:oj.LT},exclusiveMaximum:{okStr:"<",ok:oj.LT,fail:oj.GTE},exclusiveMinimum:{okStr:">",ok:oj.GT,fail:oj.LTE}},l8r={message:({keyword:e,schemaCode:r})=>(0,N2e.str)`must be ${O2e[e].okStr} ${r}`,params:({keyword:e,schemaCode:r})=>(0,N2e._)`{comparison: ${O2e[e].okStr}, limit: ${r}}`},u8r={keyword:Object.keys(O2e),type:"number",schemaType:"number",$data:!0,error:l8r,code(e){let{keyword:r,data:i,schemaCode:s}=e;e.fail$data((0,N2e._)`${i} ${O2e[r].fail} ${s} || isNaN(${i})`)}};lqe.default=u8r});var TPt=dr(uqe=>{"use strict";Object.defineProperty(uqe,"__esModule",{value:!0});var tle=wp(),p8r={message:({schemaCode:e})=>(0,tle.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,tle._)`{multipleOf: ${e}}`},_8r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:p8r,code(e){let{gen:r,data:i,schemaCode:s,it:l}=e,d=l.opts.multipleOfPrecision,h=r.let("res"),S=d?(0,tle._)`Math.abs(Math.round(${h}) - ${h}) > 1e-${d}`:(0,tle._)`${h} !== parseInt(${h})`;e.fail$data((0,tle._)`(${s} === 0 || (${h} = ${i}/${s}, ${S}))`)}};uqe.default=_8r});var kPt=dr(pqe=>{"use strict";Object.defineProperty(pqe,"__esModule",{value:!0});function EPt(e){let r=e.length,i=0,s=0,l;for(;s=55296&&l<=56319&&s{"use strict";Object.defineProperty(_qe,"__esModule",{value:!0});var TJ=wp(),d8r=cd(),f8r=kPt(),m8r={message({keyword:e,schemaCode:r}){let i=e==="maxLength"?"more":"fewer";return(0,TJ.str)`must NOT have ${i} than ${r} characters`},params:({schemaCode:e})=>(0,TJ._)`{limit: ${e}}`},h8r={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:m8r,code(e){let{keyword:r,data:i,schemaCode:s,it:l}=e,d=r==="maxLength"?TJ.operators.GT:TJ.operators.LT,h=l.opts.unicode===!1?(0,TJ._)`${i}.length`:(0,TJ._)`${(0,d8r.useFunc)(e.gen,f8r.default)}(${i})`;e.fail$data((0,TJ._)`${h} ${d} ${s}`)}};_qe.default=h8r});var DPt=dr(dqe=>{"use strict";Object.defineProperty(dqe,"__esModule",{value:!0});var g8r=Lw(),y8r=cd(),oX=wp(),v8r={message:({schemaCode:e})=>(0,oX.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,oX._)`{pattern: ${e}}`},S8r={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:v8r,code(e){let{gen:r,data:i,$data:s,schema:l,schemaCode:d,it:h}=e,S=h.opts.unicodeRegExp?"u":"";if(s){let{regExp:b}=h.opts.code,A=b.code==="new RegExp"?(0,oX._)`new RegExp`:(0,y8r.useFunc)(r,b),L=r.let("valid");r.try(()=>r.assign(L,(0,oX._)`${A}(${d}, ${S}).test(${i})`),()=>r.assign(L,!1)),e.fail$data((0,oX._)`!${L}`)}else{let b=(0,g8r.usePattern)(e,l);e.fail$data((0,oX._)`!${b}.test(${i})`)}}};dqe.default=S8r});var APt=dr(fqe=>{"use strict";Object.defineProperty(fqe,"__esModule",{value:!0});var rle=wp(),b8r={message({keyword:e,schemaCode:r}){let i=e==="maxProperties"?"more":"fewer";return(0,rle.str)`must NOT have ${i} than ${r} properties`},params:({schemaCode:e})=>(0,rle._)`{limit: ${e}}`},x8r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:b8r,code(e){let{keyword:r,data:i,schemaCode:s}=e,l=r==="maxProperties"?rle.operators.GT:rle.operators.LT;e.fail$data((0,rle._)`Object.keys(${i}).length ${l} ${s}`)}};fqe.default=x8r});var wPt=dr(mqe=>{"use strict";Object.defineProperty(mqe,"__esModule",{value:!0});var nle=Lw(),ile=wp(),T8r=cd(),E8r={message:({params:{missingProperty:e}})=>(0,ile.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,ile._)`{missingProperty: ${e}}`},k8r={keyword:"required",type:"object",schemaType:"array",$data:!0,error:E8r,code(e){let{gen:r,schema:i,schemaCode:s,data:l,$data:d,it:h}=e,{opts:S}=h;if(!d&&i.length===0)return;let b=i.length>=S.loopRequired;if(h.allErrors?A():L(),S.strictRequired){let ie=e.parentSchema.properties,{definedProperties:te}=e.it;for(let X of i)if(ie?.[X]===void 0&&!te.has(X)){let Re=h.schemaEnv.baseId+h.errSchemaPath,Je=`required property "${X}" is not defined at "${Re}" (strictRequired)`;(0,T8r.checkStrictMode)(h,Je,h.opts.strictRequired)}}function A(){if(b||d)e.block$data(ile.nil,V);else for(let ie of i)(0,nle.checkReportMissingProp)(e,ie)}function L(){let ie=r.let("missing");if(b||d){let te=r.let("valid",!0);e.block$data(te,()=>j(ie,te)),e.ok(te)}else r.if((0,nle.checkMissingProp)(e,i,ie)),(0,nle.reportMissingProp)(e,ie),r.else()}function V(){r.forOf("prop",s,ie=>{e.setParams({missingProperty:ie}),r.if((0,nle.noPropertyInData)(r,l,ie,S.ownProperties),()=>e.error())})}function j(ie,te){e.setParams({missingProperty:ie}),r.forOf(ie,s,()=>{r.assign(te,(0,nle.propertyInData)(r,l,ie,S.ownProperties)),r.if((0,ile.not)(te),()=>{e.error(),r.break()})},ile.nil)}}};mqe.default=k8r});var IPt=dr(hqe=>{"use strict";Object.defineProperty(hqe,"__esModule",{value:!0});var ole=wp(),C8r={message({keyword:e,schemaCode:r}){let i=e==="maxItems"?"more":"fewer";return(0,ole.str)`must NOT have ${i} than ${r} items`},params:({schemaCode:e})=>(0,ole._)`{limit: ${e}}`},D8r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:C8r,code(e){let{keyword:r,data:i,schemaCode:s}=e,l=r==="maxItems"?ole.operators.GT:ole.operators.LT;e.fail$data((0,ole._)`${i}.length ${l} ${s}`)}};hqe.default=D8r});var F2e=dr(gqe=>{"use strict";Object.defineProperty(gqe,"__esModule",{value:!0});var PPt=Bze();PPt.code='require("ajv/dist/runtime/equal").default';gqe.default=PPt});var NPt=dr(vqe=>{"use strict";Object.defineProperty(vqe,"__esModule",{value:!0});var yqe=Vce(),Qb=wp(),A8r=cd(),w8r=F2e(),I8r={message:({params:{i:e,j:r}})=>(0,Qb.str)`must NOT have duplicate items (items ## ${r} and ${e} are identical)`,params:({params:{i:e,j:r}})=>(0,Qb._)`{i: ${e}, j: ${r}}`},P8r={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:I8r,code(e){let{gen:r,data:i,$data:s,schema:l,parentSchema:d,schemaCode:h,it:S}=e;if(!s&&!l)return;let b=r.let("valid"),A=d.items?(0,yqe.getSchemaTypes)(d.items):[];e.block$data(b,L,(0,Qb._)`${h} === false`),e.ok(b);function L(){let te=r.let("i",(0,Qb._)`${i}.length`),X=r.let("j");e.setParams({i:te,j:X}),r.assign(b,!0),r.if((0,Qb._)`${te} > 1`,()=>(V()?j:ie)(te,X))}function V(){return A.length>0&&!A.some(te=>te==="object"||te==="array")}function j(te,X){let Re=r.name("item"),Je=(0,yqe.checkDataTypes)(A,Re,S.opts.strictNumbers,yqe.DataType.Wrong),pt=r.const("indices",(0,Qb._)`{}`);r.for((0,Qb._)`;${te}--;`,()=>{r.let(Re,(0,Qb._)`${i}[${te}]`),r.if(Je,(0,Qb._)`continue`),A.length>1&&r.if((0,Qb._)`typeof ${Re} == "string"`,(0,Qb._)`${Re} += "_"`),r.if((0,Qb._)`typeof ${pt}[${Re}] == "number"`,()=>{r.assign(X,(0,Qb._)`${pt}[${Re}]`),e.error(),r.assign(b,!1).break()}).code((0,Qb._)`${pt}[${Re}] = ${te}`)})}function ie(te,X){let Re=(0,A8r.useFunc)(r,w8r.default),Je=r.name("outer");r.label(Je).for((0,Qb._)`;${te}--;`,()=>r.for((0,Qb._)`${X} = ${te}; ${X}--;`,()=>r.if((0,Qb._)`${Re}(${i}[${te}], ${i}[${X}])`,()=>{e.error(),r.assign(b,!1).break(Je)})))}}};vqe.default=P8r});var OPt=dr(bqe=>{"use strict";Object.defineProperty(bqe,"__esModule",{value:!0});var Sqe=wp(),N8r=cd(),O8r=F2e(),F8r={message:"must be equal to constant",params:({schemaCode:e})=>(0,Sqe._)`{allowedValue: ${e}}`},R8r={keyword:"const",$data:!0,error:F8r,code(e){let{gen:r,data:i,$data:s,schemaCode:l,schema:d}=e;s||d&&typeof d=="object"?e.fail$data((0,Sqe._)`!${(0,N8r.useFunc)(r,O8r.default)}(${i}, ${l})`):e.fail((0,Sqe._)`${d} !== ${i}`)}};bqe.default=R8r});var FPt=dr(xqe=>{"use strict";Object.defineProperty(xqe,"__esModule",{value:!0});var ale=wp(),L8r=cd(),M8r=F2e(),j8r={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,ale._)`{allowedValues: ${e}}`},B8r={keyword:"enum",schemaType:"array",$data:!0,error:j8r,code(e){let{gen:r,data:i,$data:s,schema:l,schemaCode:d,it:h}=e;if(!s&&l.length===0)throw new Error("enum must have non-empty array");let S=l.length>=h.opts.loopEnum,b,A=()=>b??(b=(0,L8r.useFunc)(r,M8r.default)),L;if(S||s)L=r.let("valid"),e.block$data(L,V);else{if(!Array.isArray(l))throw new Error("ajv implementation error");let ie=r.const("vSchema",d);L=(0,ale.or)(...l.map((te,X)=>j(ie,X)))}e.pass(L);function V(){r.assign(L,!1),r.forOf("v",d,ie=>r.if((0,ale._)`${A()}(${i}, ${ie})`,()=>r.assign(L,!0).break()))}function j(ie,te){let X=l[te];return typeof X=="object"&&X!==null?(0,ale._)`${A()}(${i}, ${ie}[${te}])`:(0,ale._)`${i} === ${X}`}}};xqe.default=B8r});var Eqe=dr(Tqe=>{"use strict";Object.defineProperty(Tqe,"__esModule",{value:!0});var $8r=xPt(),U8r=TPt(),z8r=CPt(),q8r=DPt(),J8r=APt(),V8r=wPt(),W8r=IPt(),G8r=NPt(),H8r=OPt(),K8r=FPt(),Q8r=[$8r.default,U8r.default,z8r.default,q8r.default,J8r.default,V8r.default,W8r.default,G8r.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},H8r.default,K8r.default];Tqe.default=Q8r});var Cqe=dr(sle=>{"use strict";Object.defineProperty(sle,"__esModule",{value:!0});sle.validateAdditionalItems=void 0;var EJ=wp(),kqe=cd(),Z8r={message:({params:{len:e}})=>(0,EJ.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,EJ._)`{limit: ${e}}`},X8r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Z8r,code(e){let{parentSchema:r,it:i}=e,{items:s}=r;if(!Array.isArray(s)){(0,kqe.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}RPt(e,s)}};function RPt(e,r){let{gen:i,schema:s,data:l,keyword:d,it:h}=e;h.items=!0;let S=i.const("len",(0,EJ._)`${l}.length`);if(s===!1)e.setParams({len:r.length}),e.pass((0,EJ._)`${S} <= ${r.length}`);else if(typeof s=="object"&&!(0,kqe.alwaysValidSchema)(h,s)){let A=i.var("valid",(0,EJ._)`${S} <= ${r.length}`);i.if((0,EJ.not)(A),()=>b(A)),e.ok(A)}function b(A){i.forRange("i",r.length,S,L=>{e.subschema({keyword:d,dataProp:L,dataPropType:kqe.Type.Num},A),h.allErrors||i.if((0,EJ.not)(A),()=>i.break())})}}sle.validateAdditionalItems=RPt;sle.default=X8r});var Dqe=dr(cle=>{"use strict";Object.defineProperty(cle,"__esModule",{value:!0});cle.validateTuple=void 0;var LPt=wp(),R2e=cd(),Y8r=Lw(),eOr={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:r,it:i}=e;if(Array.isArray(r))return MPt(e,"additionalItems",r);i.items=!0,!(0,R2e.alwaysValidSchema)(i,r)&&e.ok((0,Y8r.validateArray)(e))}};function MPt(e,r,i=e.schema){let{gen:s,parentSchema:l,data:d,keyword:h,it:S}=e;L(l),S.opts.unevaluated&&i.length&&S.items!==!0&&(S.items=R2e.mergeEvaluated.items(s,i.length,S.items));let b=s.name("valid"),A=s.const("len",(0,LPt._)`${d}.length`);i.forEach((V,j)=>{(0,R2e.alwaysValidSchema)(S,V)||(s.if((0,LPt._)`${A} > ${j}`,()=>e.subschema({keyword:h,schemaProp:j,dataProp:j},b)),e.ok(b))});function L(V){let{opts:j,errSchemaPath:ie}=S,te=i.length,X=te===V.minItems&&(te===V.maxItems||V[r]===!1);if(j.strictTuples&&!X){let Re=`"${h}" is ${te}-tuple, but minItems or maxItems/${r} are not specified or different at path "${ie}"`;(0,R2e.checkStrictMode)(S,Re,j.strictTuples)}}}cle.validateTuple=MPt;cle.default=eOr});var jPt=dr(Aqe=>{"use strict";Object.defineProperty(Aqe,"__esModule",{value:!0});var tOr=Dqe(),rOr={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,tOr.validateTuple)(e,"items")};Aqe.default=rOr});var $Pt=dr(wqe=>{"use strict";Object.defineProperty(wqe,"__esModule",{value:!0});var BPt=wp(),nOr=cd(),iOr=Lw(),oOr=Cqe(),aOr={message:({params:{len:e}})=>(0,BPt.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,BPt._)`{limit: ${e}}`},sOr={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:aOr,code(e){let{schema:r,parentSchema:i,it:s}=e,{prefixItems:l}=i;s.items=!0,!(0,nOr.alwaysValidSchema)(s,r)&&(l?(0,oOr.validateAdditionalItems)(e,l):e.ok((0,iOr.validateArray)(e)))}};wqe.default=sOr});var UPt=dr(Iqe=>{"use strict";Object.defineProperty(Iqe,"__esModule",{value:!0});var jw=wp(),L2e=cd(),cOr={message:({params:{min:e,max:r}})=>r===void 0?(0,jw.str)`must contain at least ${e} valid item(s)`:(0,jw.str)`must contain at least ${e} and no more than ${r} valid item(s)`,params:({params:{min:e,max:r}})=>r===void 0?(0,jw._)`{minContains: ${e}}`:(0,jw._)`{minContains: ${e}, maxContains: ${r}}`},lOr={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:cOr,code(e){let{gen:r,schema:i,parentSchema:s,data:l,it:d}=e,h,S,{minContains:b,maxContains:A}=s;d.opts.next?(h=b===void 0?1:b,S=A):h=1;let L=r.const("len",(0,jw._)`${l}.length`);if(e.setParams({min:h,max:S}),S===void 0&&h===0){(0,L2e.checkStrictMode)(d,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(S!==void 0&&h>S){(0,L2e.checkStrictMode)(d,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,L2e.alwaysValidSchema)(d,i)){let X=(0,jw._)`${L} >= ${h}`;S!==void 0&&(X=(0,jw._)`${X} && ${L} <= ${S}`),e.pass(X);return}d.items=!0;let V=r.name("valid");S===void 0&&h===1?ie(V,()=>r.if(V,()=>r.break())):h===0?(r.let(V,!0),S!==void 0&&r.if((0,jw._)`${l}.length > 0`,j)):(r.let(V,!1),j()),e.result(V,()=>e.reset());function j(){let X=r.name("_valid"),Re=r.let("count",0);ie(X,()=>r.if(X,()=>te(Re)))}function ie(X,Re){r.forRange("i",0,L,Je=>{e.subschema({keyword:"contains",dataProp:Je,dataPropType:L2e.Type.Num,compositeRule:!0},X),Re()})}function te(X){r.code((0,jw._)`${X}++`),S===void 0?r.if((0,jw._)`${X} >= ${h}`,()=>r.assign(V,!0).break()):(r.if((0,jw._)`${X} > ${S}`,()=>r.assign(V,!1).break()),h===1?r.assign(V,!0):r.if((0,jw._)`${X} >= ${h}`,()=>r.assign(V,!0)))}}};Iqe.default=lOr});var M2e=dr(wN=>{"use strict";Object.defineProperty(wN,"__esModule",{value:!0});wN.validateSchemaDeps=wN.validatePropertyDeps=wN.error=void 0;var Pqe=wp(),uOr=cd(),lle=Lw();wN.error={message:({params:{property:e,depsCount:r,deps:i}})=>{let s=r===1?"property":"properties";return(0,Pqe.str)`must have ${s} ${i} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:i,missingProperty:s}})=>(0,Pqe._)`{property: ${e}, + missingProperty: ${s}, + depsCount: ${r}, + deps: ${i}}`};var pOr={keyword:"dependencies",type:"object",schemaType:"object",error:wN.error,code(e){let[r,i]=_Or(e);zPt(e,r),qPt(e,i)}};function _Or({schema:e}){let r={},i={};for(let s in e){if(s==="__proto__")continue;let l=Array.isArray(e[s])?r:i;l[s]=e[s]}return[r,i]}function zPt(e,r=e.schema){let{gen:i,data:s,it:l}=e;if(Object.keys(r).length===0)return;let d=i.let("missing");for(let h in r){let S=r[h];if(S.length===0)continue;let b=(0,lle.propertyInData)(i,s,h,l.opts.ownProperties);e.setParams({property:h,depsCount:S.length,deps:S.join(", ")}),l.allErrors?i.if(b,()=>{for(let A of S)(0,lle.checkReportMissingProp)(e,A)}):(i.if((0,Pqe._)`${b} && (${(0,lle.checkMissingProp)(e,S,d)})`),(0,lle.reportMissingProp)(e,d),i.else())}}wN.validatePropertyDeps=zPt;function qPt(e,r=e.schema){let{gen:i,data:s,keyword:l,it:d}=e,h=i.name("valid");for(let S in r)(0,uOr.alwaysValidSchema)(d,r[S])||(i.if((0,lle.propertyInData)(i,s,S,d.opts.ownProperties),()=>{let b=e.subschema({keyword:l,schemaProp:S},h);e.mergeValidEvaluated(b,h)},()=>i.var(h,!0)),e.ok(h))}wN.validateSchemaDeps=qPt;wN.default=pOr});var VPt=dr(Nqe=>{"use strict";Object.defineProperty(Nqe,"__esModule",{value:!0});var JPt=wp(),dOr=cd(),fOr={message:"property name must be valid",params:({params:e})=>(0,JPt._)`{propertyName: ${e.propertyName}}`},mOr={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:fOr,code(e){let{gen:r,schema:i,data:s,it:l}=e;if((0,dOr.alwaysValidSchema)(l,i))return;let d=r.name("valid");r.forIn("key",s,h=>{e.setParams({propertyName:h}),e.subschema({keyword:"propertyNames",data:h,dataTypes:["string"],propertyName:h,compositeRule:!0},d),r.if((0,JPt.not)(d),()=>{e.error(!0),l.allErrors||r.break()})}),e.ok(d)}};Nqe.default=mOr});var Fqe=dr(Oqe=>{"use strict";Object.defineProperty(Oqe,"__esModule",{value:!0});var j2e=Lw(),v6=wp(),hOr=Rw(),B2e=cd(),gOr={message:"must NOT have additional properties",params:({params:e})=>(0,v6._)`{additionalProperty: ${e.additionalProperty}}`},yOr={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:gOr,code(e){let{gen:r,schema:i,parentSchema:s,data:l,errsCount:d,it:h}=e;if(!d)throw new Error("ajv implementation error");let{allErrors:S,opts:b}=h;if(h.props=!0,b.removeAdditional!=="all"&&(0,B2e.alwaysValidSchema)(h,i))return;let A=(0,j2e.allSchemaProperties)(s.properties),L=(0,j2e.allSchemaProperties)(s.patternProperties);V(),e.ok((0,v6._)`${d} === ${hOr.default.errors}`);function V(){r.forIn("key",l,Re=>{!A.length&&!L.length?te(Re):r.if(j(Re),()=>te(Re))})}function j(Re){let Je;if(A.length>8){let pt=(0,B2e.schemaRefOrVal)(h,s.properties,"properties");Je=(0,j2e.isOwnProperty)(r,pt,Re)}else A.length?Je=(0,v6.or)(...A.map(pt=>(0,v6._)`${Re} === ${pt}`)):Je=v6.nil;return L.length&&(Je=(0,v6.or)(Je,...L.map(pt=>(0,v6._)`${(0,j2e.usePattern)(e,pt)}.test(${Re})`))),(0,v6.not)(Je)}function ie(Re){r.code((0,v6._)`delete ${l}[${Re}]`)}function te(Re){if(b.removeAdditional==="all"||b.removeAdditional&&i===!1){ie(Re);return}if(i===!1){e.setParams({additionalProperty:Re}),e.error(),S||r.break();return}if(typeof i=="object"&&!(0,B2e.alwaysValidSchema)(h,i)){let Je=r.name("valid");b.removeAdditional==="failing"?(X(Re,Je,!1),r.if((0,v6.not)(Je),()=>{e.reset(),ie(Re)})):(X(Re,Je),S||r.if((0,v6.not)(Je),()=>r.break()))}}function X(Re,Je,pt){let $e={keyword:"additionalProperties",dataProp:Re,dataPropType:B2e.Type.Str};pt===!1&&Object.assign($e,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema($e,Je)}}};Oqe.default=yOr});var HPt=dr(Lqe=>{"use strict";Object.defineProperty(Lqe,"__esModule",{value:!0});var vOr=eX(),WPt=Lw(),Rqe=cd(),GPt=Fqe(),SOr={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:r,schema:i,parentSchema:s,data:l,it:d}=e;d.opts.removeAdditional==="all"&&s.additionalProperties===void 0&&GPt.default.code(new vOr.KeywordCxt(d,GPt.default,"additionalProperties"));let h=(0,WPt.allSchemaProperties)(i);for(let V of h)d.definedProperties.add(V);d.opts.unevaluated&&h.length&&d.props!==!0&&(d.props=Rqe.mergeEvaluated.props(r,(0,Rqe.toHash)(h),d.props));let S=h.filter(V=>!(0,Rqe.alwaysValidSchema)(d,i[V]));if(S.length===0)return;let b=r.name("valid");for(let V of S)A(V)?L(V):(r.if((0,WPt.propertyInData)(r,l,V,d.opts.ownProperties)),L(V),d.allErrors||r.else().var(b,!0),r.endIf()),e.it.definedProperties.add(V),e.ok(b);function A(V){return d.opts.useDefaults&&!d.compositeRule&&i[V].default!==void 0}function L(V){e.subschema({keyword:"properties",schemaProp:V,dataProp:V},b)}}};Lqe.default=SOr});var XPt=dr(Mqe=>{"use strict";Object.defineProperty(Mqe,"__esModule",{value:!0});var KPt=Lw(),$2e=wp(),QPt=cd(),ZPt=cd(),bOr={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:r,schema:i,data:s,parentSchema:l,it:d}=e,{opts:h}=d,S=(0,KPt.allSchemaProperties)(i),b=S.filter(X=>(0,QPt.alwaysValidSchema)(d,i[X]));if(S.length===0||b.length===S.length&&(!d.opts.unevaluated||d.props===!0))return;let A=h.strictSchema&&!h.allowMatchingProperties&&l.properties,L=r.name("valid");d.props!==!0&&!(d.props instanceof $2e.Name)&&(d.props=(0,ZPt.evaluatedPropsToName)(r,d.props));let{props:V}=d;j();function j(){for(let X of S)A&&ie(X),d.allErrors?te(X):(r.var(L,!0),te(X),r.if(L))}function ie(X){for(let Re in A)new RegExp(X).test(Re)&&(0,QPt.checkStrictMode)(d,`property ${Re} matches pattern ${X} (use allowMatchingProperties)`)}function te(X){r.forIn("key",s,Re=>{r.if((0,$2e._)`${(0,KPt.usePattern)(e,X)}.test(${Re})`,()=>{let Je=b.includes(X);Je||e.subschema({keyword:"patternProperties",schemaProp:X,dataProp:Re,dataPropType:ZPt.Type.Str},L),d.opts.unevaluated&&V!==!0?r.assign((0,$2e._)`${V}[${Re}]`,!0):!Je&&!d.allErrors&&r.if((0,$2e.not)(L),()=>r.break())})})}}};Mqe.default=bOr});var YPt=dr(jqe=>{"use strict";Object.defineProperty(jqe,"__esModule",{value:!0});var xOr=cd(),TOr={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:r,schema:i,it:s}=e;if((0,xOr.alwaysValidSchema)(s,i)){e.fail();return}let l=r.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},l),e.failResult(l,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};jqe.default=TOr});var e6t=dr(Bqe=>{"use strict";Object.defineProperty(Bqe,"__esModule",{value:!0});var EOr=Lw(),kOr={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:EOr.validateUnion,error:{message:"must match a schema in anyOf"}};Bqe.default=kOr});var t6t=dr($qe=>{"use strict";Object.defineProperty($qe,"__esModule",{value:!0});var U2e=wp(),COr=cd(),DOr={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,U2e._)`{passingSchemas: ${e.passing}}`},AOr={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:DOr,code(e){let{gen:r,schema:i,parentSchema:s,it:l}=e;if(!Array.isArray(i))throw new Error("ajv implementation error");if(l.opts.discriminator&&s.discriminator)return;let d=i,h=r.let("valid",!1),S=r.let("passing",null),b=r.name("_valid");e.setParams({passing:S}),r.block(A),e.result(h,()=>e.reset(),()=>e.error(!0));function A(){d.forEach((L,V)=>{let j;(0,COr.alwaysValidSchema)(l,L)?r.var(b,!0):j=e.subschema({keyword:"oneOf",schemaProp:V,compositeRule:!0},b),V>0&&r.if((0,U2e._)`${b} && ${h}`).assign(h,!1).assign(S,(0,U2e._)`[${S}, ${V}]`).else(),r.if(b,()=>{r.assign(h,!0),r.assign(S,V),j&&e.mergeEvaluated(j,U2e.Name)})})}}};$qe.default=AOr});var r6t=dr(Uqe=>{"use strict";Object.defineProperty(Uqe,"__esModule",{value:!0});var wOr=cd(),IOr={keyword:"allOf",schemaType:"array",code(e){let{gen:r,schema:i,it:s}=e;if(!Array.isArray(i))throw new Error("ajv implementation error");let l=r.name("valid");i.forEach((d,h)=>{if((0,wOr.alwaysValidSchema)(s,d))return;let S=e.subschema({keyword:"allOf",schemaProp:h},l);e.ok(l),e.mergeEvaluated(S)})}};Uqe.default=IOr});var o6t=dr(zqe=>{"use strict";Object.defineProperty(zqe,"__esModule",{value:!0});var z2e=wp(),i6t=cd(),POr={message:({params:e})=>(0,z2e.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,z2e._)`{failingKeyword: ${e.ifClause}}`},NOr={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:POr,code(e){let{gen:r,parentSchema:i,it:s}=e;i.then===void 0&&i.else===void 0&&(0,i6t.checkStrictMode)(s,'"if" without "then" and "else" is ignored');let l=n6t(s,"then"),d=n6t(s,"else");if(!l&&!d)return;let h=r.let("valid",!0),S=r.name("_valid");if(b(),e.reset(),l&&d){let L=r.let("ifClause");e.setParams({ifClause:L}),r.if(S,A("then",L),A("else",L))}else l?r.if(S,A("then")):r.if((0,z2e.not)(S),A("else"));e.pass(h,()=>e.error(!0));function b(){let L=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},S);e.mergeEvaluated(L)}function A(L,V){return()=>{let j=e.subschema({keyword:L},S);r.assign(h,S),e.mergeValidEvaluated(j,h),V?r.assign(V,(0,z2e._)`${L}`):e.setParams({ifClause:L})}}}};function n6t(e,r){let i=e.schema[r];return i!==void 0&&!(0,i6t.alwaysValidSchema)(e,i)}zqe.default=NOr});var a6t=dr(qqe=>{"use strict";Object.defineProperty(qqe,"__esModule",{value:!0});var OOr=cd(),FOr={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:r,it:i}){r.if===void 0&&(0,OOr.checkStrictMode)(i,`"${e}" without "if" is ignored`)}};qqe.default=FOr});var Vqe=dr(Jqe=>{"use strict";Object.defineProperty(Jqe,"__esModule",{value:!0});var ROr=Cqe(),LOr=jPt(),MOr=Dqe(),jOr=$Pt(),BOr=UPt(),$Or=M2e(),UOr=VPt(),zOr=Fqe(),qOr=HPt(),JOr=XPt(),VOr=YPt(),WOr=e6t(),GOr=t6t(),HOr=r6t(),KOr=o6t(),QOr=a6t();function ZOr(e=!1){let r=[VOr.default,WOr.default,GOr.default,HOr.default,KOr.default,QOr.default,UOr.default,zOr.default,$Or.default,qOr.default,JOr.default];return e?r.push(LOr.default,jOr.default):r.push(ROr.default,MOr.default),r.push(BOr.default),r}Jqe.default=ZOr});var Gqe=dr(ule=>{"use strict";Object.defineProperty(ule,"__esModule",{value:!0});ule.dynamicAnchor=void 0;var Wqe=wp(),XOr=Rw(),s6t=Qce(),YOr=P2e(),eFr={keyword:"$dynamicAnchor",schemaType:"string",code:e=>c6t(e,e.schema)};function c6t(e,r){let{gen:i,it:s}=e;s.schemaEnv.root.dynamicAnchors[r]=!0;let l=(0,Wqe._)`${XOr.default.dynamicAnchors}${(0,Wqe.getProperty)(r)}`,d=s.errSchemaPath==="#"?s.validateName:tFr(e);i.if((0,Wqe._)`!${l}`,()=>i.assign(l,d))}ule.dynamicAnchor=c6t;function tFr(e){let{schemaEnv:r,schema:i,self:s}=e.it,{root:l,baseId:d,localRefs:h,meta:S}=r.root,{schemaId:b}=s.opts,A=new s6t.SchemaEnv({schema:i,schemaId:b,root:l,baseId:d,localRefs:h,meta:S});return s6t.compileSchema.call(s,A),(0,YOr.getValidate)(e,A)}ule.default=eFr});var Hqe=dr(ple=>{"use strict";Object.defineProperty(ple,"__esModule",{value:!0});ple.dynamicRef=void 0;var l6t=wp(),rFr=Rw(),u6t=P2e(),nFr={keyword:"$dynamicRef",schemaType:"string",code:e=>p6t(e,e.schema)};function p6t(e,r){let{gen:i,keyword:s,it:l}=e;if(r[0]!=="#")throw new Error(`"${s}" only supports hash fragment reference`);let d=r.slice(1);if(l.allErrors)h();else{let b=i.let("valid",!1);h(b),e.ok(b)}function h(b){if(l.schemaEnv.root.dynamicAnchors[d]){let A=i.let("_v",(0,l6t._)`${rFr.default.dynamicAnchors}${(0,l6t.getProperty)(d)}`);i.if(A,S(A,b),S(l.validateName,b))}else S(l.validateName,b)()}function S(b,A){return A?()=>i.block(()=>{(0,u6t.callRef)(e,b),i.let(A,!0)}):()=>(0,u6t.callRef)(e,b)}}ple.dynamicRef=p6t;ple.default=nFr});var _6t=dr(Kqe=>{"use strict";Object.defineProperty(Kqe,"__esModule",{value:!0});var iFr=Gqe(),oFr=cd(),aFr={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,iFr.dynamicAnchor)(e,""):(0,oFr.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Kqe.default=aFr});var d6t=dr(Qqe=>{"use strict";Object.defineProperty(Qqe,"__esModule",{value:!0});var sFr=Hqe(),cFr={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,sFr.dynamicRef)(e,e.schema)};Qqe.default=cFr});var f6t=dr(Zqe=>{"use strict";Object.defineProperty(Zqe,"__esModule",{value:!0});var lFr=Gqe(),uFr=Hqe(),pFr=_6t(),_Fr=d6t(),dFr=[lFr.default,uFr.default,pFr.default,_Fr.default];Zqe.default=dFr});var h6t=dr(Xqe=>{"use strict";Object.defineProperty(Xqe,"__esModule",{value:!0});var m6t=M2e(),fFr={keyword:"dependentRequired",type:"object",schemaType:"object",error:m6t.error,code:e=>(0,m6t.validatePropertyDeps)(e)};Xqe.default=fFr});var g6t=dr(Yqe=>{"use strict";Object.defineProperty(Yqe,"__esModule",{value:!0});var mFr=M2e(),hFr={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,mFr.validateSchemaDeps)(e)};Yqe.default=hFr});var y6t=dr(eJe=>{"use strict";Object.defineProperty(eJe,"__esModule",{value:!0});var gFr=cd(),yFr={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:r,it:i}){r.contains===void 0&&(0,gFr.checkStrictMode)(i,`"${e}" without "contains" is ignored`)}};eJe.default=yFr});var v6t=dr(tJe=>{"use strict";Object.defineProperty(tJe,"__esModule",{value:!0});var vFr=h6t(),SFr=g6t(),bFr=y6t(),xFr=[vFr.default,SFr.default,bFr.default];tJe.default=xFr});var b6t=dr(rJe=>{"use strict";Object.defineProperty(rJe,"__esModule",{value:!0});var aj=wp(),S6t=cd(),TFr=Rw(),EFr={message:"must NOT have unevaluated properties",params:({params:e})=>(0,aj._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},kFr={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:EFr,code(e){let{gen:r,schema:i,data:s,errsCount:l,it:d}=e;if(!l)throw new Error("ajv implementation error");let{allErrors:h,props:S}=d;S instanceof aj.Name?r.if((0,aj._)`${S} !== true`,()=>r.forIn("key",s,V=>r.if(A(S,V),()=>b(V)))):S!==!0&&r.forIn("key",s,V=>S===void 0?b(V):r.if(L(S,V),()=>b(V))),d.props=!0,e.ok((0,aj._)`${l} === ${TFr.default.errors}`);function b(V){if(i===!1){e.setParams({unevaluatedProperty:V}),e.error(),h||r.break();return}if(!(0,S6t.alwaysValidSchema)(d,i)){let j=r.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:V,dataPropType:S6t.Type.Str},j),h||r.if((0,aj.not)(j),()=>r.break())}}function A(V,j){return(0,aj._)`!${V} || !${V}[${j}]`}function L(V,j){let ie=[];for(let te in V)V[te]===!0&&ie.push((0,aj._)`${j} !== ${te}`);return(0,aj.and)(...ie)}}};rJe.default=kFr});var T6t=dr(nJe=>{"use strict";Object.defineProperty(nJe,"__esModule",{value:!0});var kJ=wp(),x6t=cd(),CFr={message:({params:{len:e}})=>(0,kJ.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,kJ._)`{limit: ${e}}`},DFr={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:CFr,code(e){let{gen:r,schema:i,data:s,it:l}=e,d=l.items||0;if(d===!0)return;let h=r.const("len",(0,kJ._)`${s}.length`);if(i===!1)e.setParams({len:d}),e.fail((0,kJ._)`${h} > ${d}`);else if(typeof i=="object"&&!(0,x6t.alwaysValidSchema)(l,i)){let b=r.var("valid",(0,kJ._)`${h} <= ${d}`);r.if((0,kJ.not)(b),()=>S(b,d)),e.ok(b)}l.items=!0;function S(b,A){r.forRange("i",A,h,L=>{e.subschema({keyword:"unevaluatedItems",dataProp:L,dataPropType:x6t.Type.Num},b),l.allErrors||r.if((0,kJ.not)(b),()=>r.break())})}}};nJe.default=DFr});var E6t=dr(iJe=>{"use strict";Object.defineProperty(iJe,"__esModule",{value:!0});var AFr=b6t(),wFr=T6t(),IFr=[AFr.default,wFr.default];iJe.default=IFr});var k6t=dr(oJe=>{"use strict";Object.defineProperty(oJe,"__esModule",{value:!0});var x1=wp(),PFr={message:({schemaCode:e})=>(0,x1.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,x1._)`{format: ${e}}`},NFr={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:PFr,code(e,r){let{gen:i,data:s,$data:l,schema:d,schemaCode:h,it:S}=e,{opts:b,errSchemaPath:A,schemaEnv:L,self:V}=S;if(!b.validateFormats)return;l?j():ie();function j(){let te=i.scopeValue("formats",{ref:V.formats,code:b.code.formats}),X=i.const("fDef",(0,x1._)`${te}[${h}]`),Re=i.let("fType"),Je=i.let("format");i.if((0,x1._)`typeof ${X} == "object" && !(${X} instanceof RegExp)`,()=>i.assign(Re,(0,x1._)`${X}.type || "string"`).assign(Je,(0,x1._)`${X}.validate`),()=>i.assign(Re,(0,x1._)`"string"`).assign(Je,X)),e.fail$data((0,x1.or)(pt(),$e()));function pt(){return b.strictSchema===!1?x1.nil:(0,x1._)`${h} && !${Je}`}function $e(){let xt=L.$async?(0,x1._)`(${X}.async ? await ${Je}(${s}) : ${Je}(${s}))`:(0,x1._)`${Je}(${s})`,tr=(0,x1._)`(typeof ${Je} == "function" ? ${xt} : ${Je}.test(${s}))`;return(0,x1._)`${Je} && ${Je} !== true && ${Re} === ${r} && !${tr}`}}function ie(){let te=V.formats[d];if(!te){pt();return}if(te===!0)return;let[X,Re,Je]=$e(te);X===r&&e.pass(xt());function pt(){if(b.strictSchema===!1){V.logger.warn(tr());return}throw new Error(tr());function tr(){return`unknown format "${d}" ignored in schema at path "${A}"`}}function $e(tr){let ht=tr instanceof RegExp?(0,x1.regexpCode)(tr):b.code.formats?(0,x1._)`${b.code.formats}${(0,x1.getProperty)(d)}`:void 0,wt=i.scopeValue("formats",{key:d,ref:tr,code:ht});return typeof tr=="object"&&!(tr instanceof RegExp)?[tr.type||"string",tr.validate,(0,x1._)`${wt}.validate`]:["string",tr,wt]}function xt(){if(typeof te=="object"&&!(te instanceof RegExp)&&te.async){if(!L.$async)throw new Error("async format in sync schema");return(0,x1._)`await ${Je}(${s})`}return typeof Re=="function"?(0,x1._)`${Je}(${s})`:(0,x1._)`${Je}.test(${s})`}}}};oJe.default=NFr});var sJe=dr(aJe=>{"use strict";Object.defineProperty(aJe,"__esModule",{value:!0});var OFr=k6t(),FFr=[OFr.default];aJe.default=FFr});var cJe=dr(aX=>{"use strict";Object.defineProperty(aX,"__esModule",{value:!0});aX.contentVocabulary=aX.metadataVocabulary=void 0;aX.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];aX.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var D6t=dr(lJe=>{"use strict";Object.defineProperty(lJe,"__esModule",{value:!0});var RFr=cqe(),LFr=Eqe(),MFr=Vqe(),jFr=f6t(),BFr=v6t(),$Fr=E6t(),UFr=sJe(),C6t=cJe(),zFr=[jFr.default,RFr.default,LFr.default,(0,MFr.default)(!0),UFr.default,C6t.metadataVocabulary,C6t.contentVocabulary,BFr.default,$Fr.default];lJe.default=zFr});var w6t=dr(q2e=>{"use strict";Object.defineProperty(q2e,"__esModule",{value:!0});q2e.DiscrError=void 0;var A6t;(function(e){e.Tag="tag",e.Mapping="mapping"})(A6t||(q2e.DiscrError=A6t={}))});var _Je=dr(pJe=>{"use strict";Object.defineProperty(pJe,"__esModule",{value:!0});var sX=wp(),uJe=w6t(),I6t=Qce(),qFr=tX(),JFr=cd(),VFr={message:({params:{discrError:e,tagName:r}})=>e===uJe.DiscrError.Tag?`tag "${r}" must be string`:`value of tag "${r}" must be in oneOf`,params:({params:{discrError:e,tag:r,tagName:i}})=>(0,sX._)`{error: ${e}, tag: ${i}, tagValue: ${r}}`},WFr={keyword:"discriminator",type:"object",schemaType:"object",error:VFr,code(e){let{gen:r,data:i,schema:s,parentSchema:l,it:d}=e,{oneOf:h}=l;if(!d.opts.discriminator)throw new Error("discriminator: requires discriminator option");let S=s.propertyName;if(typeof S!="string")throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!h)throw new Error("discriminator: requires oneOf keyword");let b=r.let("valid",!1),A=r.const("tag",(0,sX._)`${i}${(0,sX.getProperty)(S)}`);r.if((0,sX._)`typeof ${A} == "string"`,()=>L(),()=>e.error(!1,{discrError:uJe.DiscrError.Tag,tag:A,tagName:S})),e.ok(b);function L(){let ie=j();r.if(!1);for(let te in ie)r.elseIf((0,sX._)`${A} === ${te}`),r.assign(b,V(ie[te]));r.else(),e.error(!1,{discrError:uJe.DiscrError.Mapping,tag:A,tagName:S}),r.endIf()}function V(ie){let te=r.name("valid"),X=e.subschema({keyword:"oneOf",schemaProp:ie},te);return e.mergeEvaluated(X,sX.Name),te}function j(){var ie;let te={},X=Je(l),Re=!0;for(let xt=0;xt{GFr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var N6t=dr((R3n,HFr)=>{HFr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var O6t=dr((L3n,KFr)=>{KFr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var F6t=dr((M3n,QFr)=>{QFr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var R6t=dr((j3n,ZFr)=>{ZFr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var L6t=dr((B3n,XFr)=>{XFr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var M6t=dr(($3n,YFr)=>{YFr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var j6t=dr((U3n,e7r)=>{e7r.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var B6t=dr(dJe=>{"use strict";Object.defineProperty(dJe,"__esModule",{value:!0});var t7r=P6t(),r7r=N6t(),n7r=O6t(),i7r=F6t(),o7r=R6t(),a7r=L6t(),s7r=M6t(),c7r=j6t(),l7r=["/properties"];function u7r(e){return[t7r,r7r,n7r,i7r,o7r,r(this,a7r),s7r,r(this,c7r)].forEach(i=>this.addMetaSchema(i,void 0,!1)),this;function r(i,s){return e?i.$dataMetaSchema(s,l7r):s}}dJe.default=u7r});var $6t=dr((iy,mJe)=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});iy.MissingRefError=iy.ValidationError=iy.CodeGen=iy.Name=iy.nil=iy.stringify=iy.str=iy._=iy.KeywordCxt=iy.Ajv2020=void 0;var p7r=oqe(),_7r=D6t(),d7r=_Je(),f7r=B6t(),fJe="https://json-schema.org/draft/2020-12/schema",cX=class extends p7r.default{constructor(r={}){super({...r,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),_7r.default.forEach(r=>this.addVocabulary(r)),this.opts.discriminator&&this.addKeyword(d7r.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:r,meta:i}=this.opts;i&&(f7r.default.call(this,r),this.refs["http://json-schema.org/schema"]=fJe)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(fJe)?fJe:void 0)}};iy.Ajv2020=cX;mJe.exports=iy=cX;mJe.exports.Ajv2020=cX;Object.defineProperty(iy,"__esModule",{value:!0});iy.default=cX;var m7r=eX();Object.defineProperty(iy,"KeywordCxt",{enumerable:!0,get:function(){return m7r.KeywordCxt}});var lX=wp();Object.defineProperty(iy,"_",{enumerable:!0,get:function(){return lX._}});Object.defineProperty(iy,"str",{enumerable:!0,get:function(){return lX.str}});Object.defineProperty(iy,"stringify",{enumerable:!0,get:function(){return lX.stringify}});Object.defineProperty(iy,"nil",{enumerable:!0,get:function(){return lX.nil}});Object.defineProperty(iy,"Name",{enumerable:!0,get:function(){return lX.Name}});Object.defineProperty(iy,"CodeGen",{enumerable:!0,get:function(){return lX.CodeGen}});var h7r=Kce();Object.defineProperty(iy,"ValidationError",{enumerable:!0,get:function(){return h7r.default}});var g7r=tX();Object.defineProperty(iy,"MissingRefError",{enumerable:!0,get:function(){return g7r.default}})});var P8t=dr(NHe=>{"use strict";Object.defineProperty(NHe,"__esModule",{value:!0});var HMr=cqe(),KMr=Eqe(),QMr=Vqe(),ZMr=sJe(),I8t=cJe(),XMr=[HMr.default,KMr.default,(0,QMr.default)(),ZMr.default,I8t.metadataVocabulary,I8t.contentVocabulary];NHe.default=XMr});var N8t=dr((IMn,YMr)=>{YMr.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var FHe=dr((ay,OHe)=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});ay.MissingRefError=ay.ValidationError=ay.CodeGen=ay.Name=ay.nil=ay.stringify=ay.str=ay._=ay.KeywordCxt=ay.Ajv=void 0;var ejr=oqe(),tjr=P8t(),rjr=_Je(),O8t=N8t(),njr=["/properties"],dke="http://json-schema.org/draft-07/schema",$X=class extends ejr.default{_addVocabularies(){super._addVocabularies(),tjr.default.forEach(r=>this.addVocabulary(r)),this.opts.discriminator&&this.addKeyword(rjr.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let r=this.opts.$data?this.$dataMetaSchema(O8t,njr):O8t;this.addMetaSchema(r,dke,!1),this.refs["http://json-schema.org/schema"]=dke}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(dke)?dke:void 0)}};ay.Ajv=$X;OHe.exports=ay=$X;OHe.exports.Ajv=$X;Object.defineProperty(ay,"__esModule",{value:!0});ay.default=$X;var ijr=eX();Object.defineProperty(ay,"KeywordCxt",{enumerable:!0,get:function(){return ijr.KeywordCxt}});var UX=wp();Object.defineProperty(ay,"_",{enumerable:!0,get:function(){return UX._}});Object.defineProperty(ay,"str",{enumerable:!0,get:function(){return UX.str}});Object.defineProperty(ay,"stringify",{enumerable:!0,get:function(){return UX.stringify}});Object.defineProperty(ay,"nil",{enumerable:!0,get:function(){return UX.nil}});Object.defineProperty(ay,"Name",{enumerable:!0,get:function(){return UX.Name}});Object.defineProperty(ay,"CodeGen",{enumerable:!0,get:function(){return UX.CodeGen}});var ojr=Kce();Object.defineProperty(ay,"ValidationError",{enumerable:!0,get:function(){return ojr.default}});var ajr=tX();Object.defineProperty(ay,"MissingRefError",{enumerable:!0,get:function(){return ajr.default}})});var U8t=dr(RN=>{"use strict";Object.defineProperty(RN,"__esModule",{value:!0});RN.formatNames=RN.fastFormats=RN.fullFormats=void 0;function FN(e,r){return{validate:e,compare:r}}RN.fullFormats={date:FN(M8t,jHe),time:FN(LHe(!0),BHe),"date-time":FN(F8t(!0),B8t),"iso-time":FN(LHe(),j8t),"iso-date-time":FN(F8t(),$8t),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:_jr,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:vjr,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:djr,int32:{type:"number",validate:hjr},int64:{type:"number",validate:gjr},float:{type:"number",validate:L8t},double:{type:"number",validate:L8t},password:!0,binary:!0};RN.fastFormats={...RN.fullFormats,date:FN(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,jHe),time:FN(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,BHe),"date-time":FN(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,B8t),"iso-time":FN(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,j8t),"iso-date-time":FN(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,$8t),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};RN.formatNames=Object.keys(RN.fullFormats);function sjr(e){return e%4===0&&(e%100!==0||e%400===0)}var cjr=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ljr=[0,31,28,31,30,31,30,31,31,30,31,30,31];function M8t(e){let r=cjr.exec(e);if(!r)return!1;let i=+r[1],s=+r[2],l=+r[3];return s>=1&&s<=12&&l>=1&&l<=(s===2&&sjr(i)?29:ljr[s])}function jHe(e,r){if(e&&r)return e>r?1:e23||L>59||e&&!S)return!1;if(l<=23&&d<=59&&h<60)return!0;let V=d-L*b,j=l-A*b-(V<0?1:0);return(j===23||j===-1)&&(V===59||V===-1)&&h<61}}function BHe(e,r){if(!(e&&r))return;let i=new Date("2020-01-01T"+e).valueOf(),s=new Date("2020-01-01T"+r).valueOf();if(i&&s)return i-s}function j8t(e,r){if(!(e&&r))return;let i=RHe.exec(e),s=RHe.exec(r);if(i&&s)return e=i[1]+i[2]+i[3],r=s[1]+s[2]+s[3],e>r?1:e=fjr}function gjr(e){return Number.isInteger(e)}function L8t(){return!0}var yjr=/[^\\]\\Z/;function vjr(e){if(yjr.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var z8t=dr(zX=>{"use strict";Object.defineProperty(zX,"__esModule",{value:!0});zX.formatLimitDefinition=void 0;var Sjr=FHe(),C6=wp(),yj=C6.operators,fke={formatMaximum:{okStr:"<=",ok:yj.LTE,fail:yj.GT},formatMinimum:{okStr:">=",ok:yj.GTE,fail:yj.LT},formatExclusiveMaximum:{okStr:"<",ok:yj.LT,fail:yj.GTE},formatExclusiveMinimum:{okStr:">",ok:yj.GT,fail:yj.LTE}},bjr={message:({keyword:e,schemaCode:r})=>(0,C6.str)`should be ${fke[e].okStr} ${r}`,params:({keyword:e,schemaCode:r})=>(0,C6._)`{comparison: ${fke[e].okStr}, limit: ${r}}`};zX.formatLimitDefinition={keyword:Object.keys(fke),type:"string",schemaType:"string",$data:!0,error:bjr,code(e){let{gen:r,data:i,schemaCode:s,keyword:l,it:d}=e,{opts:h,self:S}=d;if(!h.validateFormats)return;let b=new Sjr.KeywordCxt(d,S.RULES.all.format.definition,"format");b.$data?A():L();function A(){let j=r.scopeValue("formats",{ref:S.formats,code:h.code.formats}),ie=r.const("fmt",(0,C6._)`${j}[${b.schemaCode}]`);e.fail$data((0,C6.or)((0,C6._)`typeof ${ie} != "object"`,(0,C6._)`${ie} instanceof RegExp`,(0,C6._)`typeof ${ie}.compare != "function"`,V(ie)))}function L(){let j=b.schema,ie=S.formats[j];if(!ie||ie===!0)return;if(typeof ie!="object"||ie instanceof RegExp||typeof ie.compare!="function")throw new Error(`"${l}": format "${j}" does not define "compare" function`);let te=r.scopeValue("formats",{key:j,ref:ie,code:h.code.formats?(0,C6._)`${h.code.formats}${(0,C6.getProperty)(j)}`:void 0});e.fail$data(V(te))}function V(j){return(0,C6._)`${j}.compare(${i}, ${s}) ${fke[l].fail} 0`}},dependencies:["format"]};var xjr=e=>(e.addKeyword(zX.formatLimitDefinition),e);zX.default=xjr});var W8t=dr((Aue,V8t)=>{"use strict";Object.defineProperty(Aue,"__esModule",{value:!0});var qX=U8t(),Tjr=z8t(),$He=wp(),q8t=new $He.Name("fullFormats"),Ejr=new $He.Name("fastFormats"),UHe=(e,r={keywords:!0})=>{if(Array.isArray(r))return J8t(e,r,qX.fullFormats,q8t),e;let[i,s]=r.mode==="fast"?[qX.fastFormats,Ejr]:[qX.fullFormats,q8t],l=r.formats||qX.formatNames;return J8t(e,l,i,s),r.keywords&&(0,Tjr.default)(e),e};UHe.get=(e,r="full")=>{let s=(r==="fast"?qX.fastFormats:qX.fullFormats)[e];if(!s)throw new Error(`Unknown format "${e}"`);return s};function J8t(e,r,i,s){var l,d;(l=(d=e.opts.code).formats)!==null&&l!==void 0||(d.formats=(0,$He._)`require("ajv-formats/dist/formats").${s}`);for(let h of r)e.addFormat(h,i[h])}V8t.exports=Aue=UHe;Object.defineProperty(Aue,"__esModule",{value:!0});Aue.default=UHe});var yOt=dr((_jn,gOt)=>{gOt.exports=hOt;hOt.sync=rBr;var fOt=a0("fs");function tBr(e,r){var i=r.pathExt!==void 0?r.pathExt:process.env.PATHEXT;if(!i||(i=i.split(";"),i.indexOf("")!==-1))return!0;for(var s=0;s{xOt.exports=SOt;SOt.sync=nBr;var vOt=a0("fs");function SOt(e,r,i){vOt.stat(e,function(s,l){i(s,s?!1:bOt(l,r))})}function nBr(e,r){return bOt(vOt.statSync(e),r)}function bOt(e,r){return e.isFile()&&iBr(e,r)}function iBr(e,r){var i=e.mode,s=e.uid,l=e.gid,d=r.uid!==void 0?r.uid:process.getuid&&process.getuid(),h=r.gid!==void 0?r.gid:process.getgid&&process.getgid(),S=parseInt("100",8),b=parseInt("010",8),A=parseInt("001",8),L=S|b,V=i&A||i&b&&l===h||i&S&&s===d||i&L&&d===0;return V}});var kOt=dr((mjn,EOt)=>{var fjn=a0("fs"),Cke;process.platform==="win32"||global.TESTING_WINDOWS?Cke=yOt():Cke=TOt();EOt.exports=sKe;sKe.sync=oBr;function sKe(e,r,i){if(typeof r=="function"&&(i=r,r={}),!i){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(s,l){sKe(e,r||{},function(d,h){d?l(d):s(h)})})}Cke(e,r||{},function(s,l){s&&(s.code==="EACCES"||r&&r.ignoreErrors)&&(s=null,l=!1),i(s,l)})}function oBr(e,r){try{return Cke.sync(e,r||{})}catch(i){if(r&&r.ignoreErrors||i.code==="EACCES")return!1;throw i}}});var NOt=dr((hjn,POt)=>{var ZX=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",COt=a0("path"),aBr=ZX?";":":",DOt=kOt(),AOt=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),wOt=(e,r)=>{let i=r.colon||aBr,s=e.match(/\//)||ZX&&e.match(/\\/)?[""]:[...ZX?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(i)],l=ZX?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",d=ZX?l.split(i):[""];return ZX&&e.indexOf(".")!==-1&&d[0]!==""&&d.unshift(""),{pathEnv:s,pathExt:d,pathExtExe:l}},IOt=(e,r,i)=>{typeof r=="function"&&(i=r,r={}),r||(r={});let{pathEnv:s,pathExt:l,pathExtExe:d}=wOt(e,r),h=[],S=A=>new Promise((L,V)=>{if(A===s.length)return r.all&&h.length?L(h):V(AOt(e));let j=s[A],ie=/^".*"$/.test(j)?j.slice(1,-1):j,te=COt.join(ie,e),X=!ie&&/^\.[\\\/]/.test(e)?e.slice(0,2)+te:te;L(b(X,A,0))}),b=(A,L,V)=>new Promise((j,ie)=>{if(V===l.length)return j(S(L+1));let te=l[V];DOt(A+te,{pathExt:d},(X,Re)=>{if(!X&&Re)if(r.all)h.push(A+te);else return j(A+te);return j(b(A,L,V+1))})});return i?S(0).then(A=>i(null,A),i):S(0)},sBr=(e,r)=>{r=r||{};let{pathEnv:i,pathExt:s,pathExtExe:l}=wOt(e,r),d=[];for(let h=0;h{"use strict";var OOt=(e={})=>{let r=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(r).reverse().find(s=>s.toUpperCase()==="PATH")||"Path"};cKe.exports=OOt;cKe.exports.default=OOt});var jOt=dr((yjn,MOt)=>{"use strict";var ROt=a0("path"),cBr=NOt(),lBr=FOt();function LOt(e,r){let i=e.options.env||process.env,s=process.cwd(),l=e.options.cwd!=null,d=l&&process.chdir!==void 0&&!process.chdir.disabled;if(d)try{process.chdir(e.options.cwd)}catch{}let h;try{h=cBr.sync(e.command,{path:i[lBr({env:i})],pathExt:r?ROt.delimiter:void 0})}catch{}finally{d&&process.chdir(s)}return h&&(h=ROt.resolve(l?e.options.cwd:"",h)),h}function uBr(e){return LOt(e)||LOt(e,!0)}MOt.exports=uBr});var BOt=dr((vjn,uKe)=>{"use strict";var lKe=/([()\][%!^"`<>&|;, *?])/g;function pBr(e){return e=e.replace(lKe,"^$1"),e}function _Br(e,r){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(lKe,"^$1"),r&&(e=e.replace(lKe,"^$1")),e}uKe.exports.command=pBr;uKe.exports.argument=_Br});var UOt=dr((Sjn,$Ot)=>{"use strict";$Ot.exports=/^#!(.*)/});var qOt=dr((bjn,zOt)=>{"use strict";var dBr=UOt();zOt.exports=(e="")=>{let r=e.match(dBr);if(!r)return null;let[i,s]=r[0].replace(/#! ?/,"").split(" "),l=i.split("/").pop();return l==="env"?s:s?`${l} ${s}`:l}});var VOt=dr((xjn,JOt)=>{"use strict";var pKe=a0("fs"),fBr=qOt();function mBr(e){let i=Buffer.alloc(150),s;try{s=pKe.openSync(e,"r"),pKe.readSync(s,i,0,150,0),pKe.closeSync(s)}catch{}return fBr(i.toString())}JOt.exports=mBr});var KOt=dr((Tjn,HOt)=>{"use strict";var hBr=a0("path"),WOt=jOt(),GOt=BOt(),gBr=VOt(),yBr=process.platform==="win32",vBr=/\.(?:com|exe)$/i,SBr=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function bBr(e){e.file=WOt(e);let r=e.file&&gBr(e.file);return r?(e.args.unshift(e.file),e.command=r,WOt(e)):e.file}function xBr(e){if(!yBr)return e;let r=bBr(e),i=!vBr.test(r);if(e.options.forceShell||i){let s=SBr.test(r);e.command=hBr.normalize(e.command),e.command=GOt.command(e.command),e.args=e.args.map(d=>GOt.argument(d,s));let l=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${l}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function TBr(e,r,i){r&&!Array.isArray(r)&&(i=r,r=null),r=r?r.slice(0):[],i=Object.assign({},i);let s={command:e,args:r,options:i,file:void 0,original:{command:e,args:r}};return i.shell?s:xBr(s)}HOt.exports=TBr});var XOt=dr((Ejn,ZOt)=>{"use strict";var _Ke=process.platform==="win32";function dKe(e,r){return Object.assign(new Error(`${r} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${e.command}`,path:e.command,spawnargs:e.args})}function EBr(e,r){if(!_Ke)return;let i=e.emit;e.emit=function(s,l){if(s==="exit"){let d=QOt(l,r);if(d)return i.call(e,"error",d)}return i.apply(e,arguments)}}function QOt(e,r){return _Ke&&e===1&&!r.file?dKe(r.original,"spawn"):null}function kBr(e,r){return _Ke&&e===1&&!r.file?dKe(r.original,"spawnSync"):null}ZOt.exports={hookChildProcess:EBr,verifyENOENT:QOt,verifyENOENTSync:kBr,notFoundError:dKe}});var tFt=dr((kjn,XX)=>{"use strict";var YOt=a0("child_process"),fKe=KOt(),mKe=XOt();function eFt(e,r,i){let s=fKe(e,r,i),l=YOt.spawn(s.command,s.args,s.options);return mKe.hookChildProcess(l,s),l}function CBr(e,r,i){let s=fKe(e,r,i),l=YOt.spawnSync(s.command,s.args,s.options);return l.error=l.error||mKe.verifyENOENTSync(l.status,s),l}XX.exports=eFt;XX.exports.spawn=eFt;XX.exports.sync=CBr;XX.exports._parse=fKe;XX.exports._enoent=mKe});var Dzt=dr(hee=>{"use strict";Object.defineProperty(hee,"__esModule",{value:!0});hee.versionInfo=hee.version=void 0;var J_n="16.13.1";hee.version=J_n;var V_n=Object.freeze({major:16,minor:13,patch:1,preReleaseTag:null});hee.versionInfo=V_n});var J2=dr(xet=>{"use strict";Object.defineProperty(xet,"__esModule",{value:!0});xet.devAssert=W_n;function W_n(e,r){if(!!!e)throw new Error(r)}});var FDe=dr(Tet=>{"use strict";Object.defineProperty(Tet,"__esModule",{value:!0});Tet.isPromise=G_n;function G_n(e){return typeof e?.then=="function"}});var C8=dr(Eet=>{"use strict";Object.defineProperty(Eet,"__esModule",{value:!0});Eet.isObjectLike=H_n;function H_n(e){return typeof e=="object"&&e!==null}});var kT=dr(ket=>{"use strict";Object.defineProperty(ket,"__esModule",{value:!0});ket.invariant=K_n;function K_n(e,r){if(!!!e)throw new Error(r??"Unexpected invariant triggered.")}});var RDe=dr(Cet=>{"use strict";Object.defineProperty(Cet,"__esModule",{value:!0});Cet.getLocation=X_n;var Q_n=kT(),Z_n=/\r\n|[\n\r]/g;function X_n(e,r){let i=0,s=1;for(let l of e.body.matchAll(Z_n)){if(typeof l.index=="number"||(0,Q_n.invariant)(!1),l.index>=r)break;i=l.index+l[0].length,s+=1}return{line:s,column:r+1-i}}});var Det=dr(LDe=>{"use strict";Object.defineProperty(LDe,"__esModule",{value:!0});LDe.printLocation=edn;LDe.printSourceLocation=wzt;var Y_n=RDe();function edn(e){return wzt(e.source,(0,Y_n.getLocation)(e.source,e.start))}function wzt(e,r){let i=e.locationOffset.column-1,s="".padStart(i)+e.body,l=r.line-1,d=e.locationOffset.line-1,h=r.line+d,S=r.line===1?i:0,b=r.column+S,A=`${e.name}:${h}:${b} +`,L=s.split(/\r\n|[\n\r]/g),V=L[l];if(V.length>120){let j=Math.floor(b/80),ie=b%80,te=[];for(let X=0;X["|",X]),["|","^".padStart(ie)],["|",te[j+1]]])}return A+Azt([[`${h-1} |`,L[l-1]],[`${h} |`,V],["|","^".padStart(b)],[`${h+1} |`,L[l+1]]])}function Azt(e){let r=e.filter(([s,l])=>l!==void 0),i=Math.max(...r.map(([s])=>s.length));return r.map(([s,l])=>s.padStart(i)+(l?" "+l:"")).join(` +`)}});var Cu=dr(gee=>{"use strict";Object.defineProperty(gee,"__esModule",{value:!0});gee.GraphQLError=void 0;gee.formatError=idn;gee.printError=ndn;var tdn=C8(),Izt=RDe(),Pzt=Det();function rdn(e){let r=e[0];return r==null||"kind"in r||"length"in r?{nodes:r,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:r}var Aet=class e extends Error{constructor(r,...i){var s,l,d;let{nodes:h,source:S,positions:b,path:A,originalError:L,extensions:V}=rdn(i);super(r),this.name="GraphQLError",this.path=A??void 0,this.originalError=L??void 0,this.nodes=Nzt(Array.isArray(h)?h:h?[h]:void 0);let j=Nzt((s=this.nodes)===null||s===void 0?void 0:s.map(te=>te.loc).filter(te=>te!=null));this.source=S??(j==null||(l=j[0])===null||l===void 0?void 0:l.source),this.positions=b??j?.map(te=>te.start),this.locations=b&&S?b.map(te=>(0,Izt.getLocation)(S,te)):j?.map(te=>(0,Izt.getLocation)(te.source,te.start));let ie=(0,tdn.isObjectLike)(L?.extensions)?L?.extensions:void 0;this.extensions=(d=V??ie)!==null&&d!==void 0?d:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),L!=null&&L.stack?Object.defineProperty(this,"stack",{value:L.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let r=this.message;if(this.nodes)for(let i of this.nodes)i.loc&&(r+=` + +`+(0,Pzt.printLocation)(i.loc));else if(this.source&&this.locations)for(let i of this.locations)r+=` + +`+(0,Pzt.printSourceLocation)(this.source,i);return r}toJSON(){let r={message:this.message};return this.locations!=null&&(r.locations=this.locations),this.path!=null&&(r.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(r.extensions=this.extensions),r}};gee.GraphQLError=Aet;function Nzt(e){return e===void 0||e.length===0?void 0:e}function ndn(e){return e.toString()}function idn(e){return e.toJSON()}});var k_e=dr(wet=>{"use strict";Object.defineProperty(wet,"__esModule",{value:!0});wet.syntaxError=adn;var odn=Cu();function adn(e,r,i){return new odn.GraphQLError(`Syntax Error: ${i}`,{source:e,positions:[r]})}});var aI=dr(oI=>{"use strict";Object.defineProperty(oI,"__esModule",{value:!0});oI.Token=oI.QueryDocumentKeys=oI.OperationTypeNode=oI.Location=void 0;oI.isNode=cdn;var Iet=class{constructor(r,i,s){this.start=r.start,this.end=i.end,this.startToken=r,this.endToken=i,this.source=s}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};oI.Location=Iet;var Pet=class{constructor(r,i,s,l,d,h){this.kind=r,this.start=i,this.end=s,this.line=l,this.column=d,this.value=h,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};oI.Token=Pet;var Ozt={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]};oI.QueryDocumentKeys=Ozt;var sdn=new Set(Object.keys(Ozt));function cdn(e){let r=e?.kind;return typeof r=="string"&&sdn.has(r)}var Net;oI.OperationTypeNode=Net;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Net||(oI.OperationTypeNode=Net={}))});var yee=dr(C_e=>{"use strict";Object.defineProperty(C_e,"__esModule",{value:!0});C_e.DirectiveLocation=void 0;var Oet;C_e.DirectiveLocation=Oet;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Oet||(C_e.DirectiveLocation=Oet={}))});var Md=dr(D_e=>{"use strict";Object.defineProperty(D_e,"__esModule",{value:!0});D_e.Kind=void 0;var Fet;D_e.Kind=Fet;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(Fet||(D_e.Kind=Fet={}))});var A_e=dr(MV=>{"use strict";Object.defineProperty(MV,"__esModule",{value:!0});MV.isDigit=Fzt;MV.isLetter=Ret;MV.isNameContinue=pdn;MV.isNameStart=udn;MV.isWhiteSpace=ldn;function ldn(e){return e===9||e===32}function Fzt(e){return e>=48&&e<=57}function Ret(e){return e>=97&&e<=122||e>=65&&e<=90}function udn(e){return Ret(e)||e===95}function pdn(e){return Ret(e)||Fzt(e)||e===95}});var I_e=dr(w_e=>{"use strict";Object.defineProperty(w_e,"__esModule",{value:!0});w_e.dedentBlockStringLines=_dn;w_e.isPrintableAsBlockString=fdn;w_e.printBlockString=mdn;var Let=A_e();function _dn(e){var r;let i=Number.MAX_SAFE_INTEGER,s=null,l=-1;for(let h=0;hS===0?h:h.slice(i)).slice((r=s)!==null&&r!==void 0?r:0,l+1)}function ddn(e){let r=0;for(;r1&&s.slice(1).every(ie=>ie.length===0||(0,Let.isWhiteSpace)(ie.charCodeAt(0))),h=i.endsWith('\\"""'),S=e.endsWith('"')&&!h,b=e.endsWith("\\"),A=S||b,L=!(r!=null&&r.minimize)&&(!l||e.length>70||A||d||h),V="",j=l&&(0,Let.isWhiteSpace)(e.charCodeAt(0));return(L&&!j||d)&&(V+=` +`),V+=i,(L||A)&&(V+=` +`),'"""'+V+'"""'}});var vee=dr(P_e=>{"use strict";Object.defineProperty(P_e,"__esModule",{value:!0});P_e.TokenKind=void 0;var Met;P_e.TokenKind=Met;(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(Met||(P_e.TokenKind=Met={}))});var O_e=dr(kB=>{"use strict";Object.defineProperty(kB,"__esModule",{value:!0});kB.Lexer=void 0;kB.createToken=A1;kB.isPunctuatorTokenKind=gdn;kB.printCodePointAt=EB;kB.readName=Bzt;var W6=k_e(),Lzt=aI(),hdn=I_e(),jV=A_e(),$_=vee(),Bet=class{constructor(r){let i=new Lzt.Token($_.TokenKind.SOF,0,0,0,0);this.source=r,this.lastToken=i,this.token=i,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let r=this.token;if(r.kind!==$_.TokenKind.EOF)do if(r.next)r=r.next;else{let i=ydn(this,r.end);r.next=i,i.prev=r,r=i}while(r.kind===$_.TokenKind.COMMENT);return r}};kB.Lexer=Bet;function gdn(e){return e===$_.TokenKind.BANG||e===$_.TokenKind.DOLLAR||e===$_.TokenKind.AMP||e===$_.TokenKind.PAREN_L||e===$_.TokenKind.PAREN_R||e===$_.TokenKind.DOT||e===$_.TokenKind.SPREAD||e===$_.TokenKind.COLON||e===$_.TokenKind.EQUALS||e===$_.TokenKind.AT||e===$_.TokenKind.BRACKET_L||e===$_.TokenKind.BRACKET_R||e===$_.TokenKind.BRACE_L||e===$_.TokenKind.PIPE||e===$_.TokenKind.BRACE_R}function See(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function MDe(e,r){return Mzt(e.charCodeAt(r))&&jzt(e.charCodeAt(r+1))}function Mzt(e){return e>=55296&&e<=56319}function jzt(e){return e>=56320&&e<=57343}function EB(e,r){let i=e.source.body.codePointAt(r);if(i===void 0)return $_.TokenKind.EOF;if(i>=32&&i<=126){let s=String.fromCodePoint(i);return s==='"'?`'"'`:`"${s}"`}return"U+"+i.toString(16).toUpperCase().padStart(4,"0")}function A1(e,r,i,s,l){let d=e.line,h=1+i-e.lineStart;return new Lzt.Token(r,i,s,d,h,l)}function ydn(e,r){let i=e.source.body,s=i.length,l=r;for(;l=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Edn(e,r){let i=e.source.body;switch(i.charCodeAt(r+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` +`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,W6.syntaxError)(e.source,r,`Invalid character escape sequence: "${i.slice(r,r+2)}".`)}function kdn(e,r){let i=e.source.body,s=i.length,l=e.lineStart,d=r+3,h=d,S="",b=[];for(;d{"use strict";Object.defineProperty(jDe,"__esModule",{value:!0});jDe.SchemaCoordinateLexer=void 0;var Cdn=k_e(),Ddn=aI(),Adn=A_e(),CB=O_e(),DB=vee(),$et=class{line=1;lineStart=0;constructor(r){let i=new Ddn.Token(DB.TokenKind.SOF,0,0,0,0);this.source=r,this.lastToken=i,this.token=i}get[Symbol.toStringTag](){return"SchemaCoordinateLexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let r=this.token;if(r.kind!==DB.TokenKind.EOF){let i=wdn(this,r.end);r.next=i,i.prev=r,r=i}return r}};jDe.SchemaCoordinateLexer=$et;function wdn(e,r){let i=e.source.body,s=i.length,l=r;if(l{"use strict";Object.defineProperty(Uet,"__esModule",{value:!0});Uet.inspect=Pdn;var Idn=10,Uzt=2;function Pdn(e){return BDe(e,[])}function BDe(e,r){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Ndn(e,r);default:return String(e)}}function Ndn(e,r){if(e===null)return"null";if(r.includes(e))return"[Circular]";let i=[...r,e];if(Odn(e)){let s=e.toJSON();if(s!==e)return typeof s=="string"?s:BDe(s,i)}else if(Array.isArray(e))return Rdn(e,i);return Fdn(e,i)}function Odn(e){return typeof e.toJSON=="function"}function Fdn(e,r){let i=Object.entries(e);return i.length===0?"{}":r.length>Uzt?"["+Ldn(e)+"]":"{ "+i.map(([l,d])=>l+": "+BDe(d,r)).join(", ")+" }"}function Rdn(e,r){if(e.length===0)return"[]";if(r.length>Uzt)return"[Array]";let i=Math.min(Idn,e.length),s=e.length-i,l=[];for(let d=0;d1&&l.push(`... ${s} more items`),"["+l.join(", ")+"]"}function Ldn(e){let r=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(r==="Object"&&typeof e.constructor=="function"){let i=e.constructor.name;if(typeof i=="string"&&i!=="")return i}return r}});var F_e=dr($De=>{"use strict";Object.defineProperty($De,"__esModule",{value:!0});$De.instanceOf=void 0;var Mdn=gm(),jdn=globalThis.process&&process.env.NODE_ENV==="production",Bdn=jdn?function(r,i){return r instanceof i}:function(r,i){if(r instanceof i)return!0;if(typeof r=="object"&&r!==null){var s;let l=i.prototype[Symbol.toStringTag],d=Symbol.toStringTag in r?r[Symbol.toStringTag]:(s=r.constructor)===null||s===void 0?void 0:s.name;if(l===d){let h=(0,Mdn.inspect)(r);throw new Error(`Cannot use ${l} "${h}" from another module or realm. + +Ensure that there is only one instance of "graphql" in the node_modules +directory. If different versions of "graphql" are the dependencies of other +relied on modules, use "resolutions" to ensure only one version is installed. + +https://yarnpkg.com/en/docs/selective-version-resolutions + +Duplicate "graphql" modules cannot be used at the same time since different +versions may have different capabilities and behavior. The data from one +version used in the function from another could produce confusing and +spurious results.`)}}return!1};$De.instanceOf=Bdn});var zDe=dr(R_e=>{"use strict";Object.defineProperty(R_e,"__esModule",{value:!0});R_e.Source=void 0;R_e.isSource=zdn;var zet=J2(),$dn=gm(),Udn=F_e(),UDe=class{constructor(r,i="GraphQL request",s={line:1,column:1}){typeof r=="string"||(0,zet.devAssert)(!1,`Body must be a string. Received: ${(0,$dn.inspect)(r)}.`),this.body=r,this.name=i,this.locationOffset=s,this.locationOffset.line>0||(0,zet.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,zet.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};R_e.Source=UDe;function zdn(e){return(0,Udn.instanceOf)(e,UDe)}});var BV=dr(e9=>{"use strict";Object.defineProperty(e9,"__esModule",{value:!0});e9.Parser=void 0;e9.parse=Vdn;e9.parseConstValue=Gdn;e9.parseSchemaCoordinate=Kdn;e9.parseType=Hdn;e9.parseValue=Wdn;var AB=k_e(),L_e=aI(),qdn=yee(),Fu=Md(),zzt=O_e(),Jdn=$zt(),JDe=zDe(),Fs=vee();function Vdn(e,r){let i=new wB(e,r),s=i.parseDocument();return Object.defineProperty(s,"tokenCount",{enumerable:!1,value:i.tokenCount}),s}function Wdn(e,r){let i=new wB(e,r);i.expectToken(Fs.TokenKind.SOF);let s=i.parseValueLiteral(!1);return i.expectToken(Fs.TokenKind.EOF),s}function Gdn(e,r){let i=new wB(e,r);i.expectToken(Fs.TokenKind.SOF);let s=i.parseConstValueLiteral();return i.expectToken(Fs.TokenKind.EOF),s}function Hdn(e,r){let i=new wB(e,r);i.expectToken(Fs.TokenKind.SOF);let s=i.parseTypeReference();return i.expectToken(Fs.TokenKind.EOF),s}function Kdn(e){let r=(0,JDe.isSource)(e)?e:new JDe.Source(e),i=new Jdn.SchemaCoordinateLexer(r),s=new wB(e,{lexer:i});s.expectToken(Fs.TokenKind.SOF);let l=s.parseSchemaCoordinate();return s.expectToken(Fs.TokenKind.EOF),l}var wB=class{constructor(r,i={}){let{lexer:s,...l}=i;if(s)this._lexer=s;else{let d=(0,JDe.isSource)(r)?r:new JDe.Source(r);this._lexer=new zzt.Lexer(d)}this._options=l,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let r=this.expectToken(Fs.TokenKind.NAME);return this.node(r,{kind:Fu.Kind.NAME,value:r.value})}parseDocument(){return this.node(this._lexer.token,{kind:Fu.Kind.DOCUMENT,definitions:this.many(Fs.TokenKind.SOF,this.parseDefinition,Fs.TokenKind.EOF)})}parseDefinition(){if(this.peek(Fs.TokenKind.BRACE_L))return this.parseOperationDefinition();let r=this.peekDescription(),i=r?this._lexer.lookahead():this._lexer.token;if(r&&i.kind===Fs.TokenKind.BRACE_L)throw(0,AB.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(i.kind===Fs.TokenKind.NAME){switch(i.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(i.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(r)throw(0,AB.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(i.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(i)}parseOperationDefinition(){let r=this._lexer.token;if(this.peek(Fs.TokenKind.BRACE_L))return this.node(r,{kind:Fu.Kind.OPERATION_DEFINITION,operation:L_e.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let i=this.parseDescription(),s=this.parseOperationType(),l;return this.peek(Fs.TokenKind.NAME)&&(l=this.parseName()),this.node(r,{kind:Fu.Kind.OPERATION_DEFINITION,operation:s,description:i,name:l,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let r=this.expectToken(Fs.TokenKind.NAME);switch(r.value){case"query":return L_e.OperationTypeNode.QUERY;case"mutation":return L_e.OperationTypeNode.MUTATION;case"subscription":return L_e.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(r)}parseVariableDefinitions(){return this.optionalMany(Fs.TokenKind.PAREN_L,this.parseVariableDefinition,Fs.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Fu.Kind.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(Fs.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Fs.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let r=this._lexer.token;return this.expectToken(Fs.TokenKind.DOLLAR),this.node(r,{kind:Fu.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Fu.Kind.SELECTION_SET,selections:this.many(Fs.TokenKind.BRACE_L,this.parseSelection,Fs.TokenKind.BRACE_R)})}parseSelection(){return this.peek(Fs.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let r=this._lexer.token,i=this.parseName(),s,l;return this.expectOptionalToken(Fs.TokenKind.COLON)?(s=i,l=this.parseName()):l=i,this.node(r,{kind:Fu.Kind.FIELD,alias:s,name:l,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Fs.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(r){let i=r?this.parseConstArgument:this.parseArgument;return this.optionalMany(Fs.TokenKind.PAREN_L,i,Fs.TokenKind.PAREN_R)}parseArgument(r=!1){let i=this._lexer.token,s=this.parseName();return this.expectToken(Fs.TokenKind.COLON),this.node(i,{kind:Fu.Kind.ARGUMENT,name:s,value:this.parseValueLiteral(r)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let r=this._lexer.token;this.expectToken(Fs.TokenKind.SPREAD);let i=this.expectOptionalKeyword("on");return!i&&this.peek(Fs.TokenKind.NAME)?this.node(r,{kind:Fu.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(r,{kind:Fu.Kind.INLINE_FRAGMENT,typeCondition:i?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let r=this._lexer.token,i=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(r,{kind:Fu.Kind.FRAGMENT_DEFINITION,description:i,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(r,{kind:Fu.Kind.FRAGMENT_DEFINITION,description:i,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(r){let i=this._lexer.token;switch(i.kind){case Fs.TokenKind.BRACKET_L:return this.parseList(r);case Fs.TokenKind.BRACE_L:return this.parseObject(r);case Fs.TokenKind.INT:return this.advanceLexer(),this.node(i,{kind:Fu.Kind.INT,value:i.value});case Fs.TokenKind.FLOAT:return this.advanceLexer(),this.node(i,{kind:Fu.Kind.FLOAT,value:i.value});case Fs.TokenKind.STRING:case Fs.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case Fs.TokenKind.NAME:switch(this.advanceLexer(),i.value){case"true":return this.node(i,{kind:Fu.Kind.BOOLEAN,value:!0});case"false":return this.node(i,{kind:Fu.Kind.BOOLEAN,value:!1});case"null":return this.node(i,{kind:Fu.Kind.NULL});default:return this.node(i,{kind:Fu.Kind.ENUM,value:i.value})}case Fs.TokenKind.DOLLAR:if(r)if(this.expectToken(Fs.TokenKind.DOLLAR),this._lexer.token.kind===Fs.TokenKind.NAME){let s=this._lexer.token.value;throw(0,AB.syntaxError)(this._lexer.source,i.start,`Unexpected variable "$${s}" in constant value.`)}else throw this.unexpected(i);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let r=this._lexer.token;return this.advanceLexer(),this.node(r,{kind:Fu.Kind.STRING,value:r.value,block:r.kind===Fs.TokenKind.BLOCK_STRING})}parseList(r){let i=()=>this.parseValueLiteral(r);return this.node(this._lexer.token,{kind:Fu.Kind.LIST,values:this.any(Fs.TokenKind.BRACKET_L,i,Fs.TokenKind.BRACKET_R)})}parseObject(r){let i=()=>this.parseObjectField(r);return this.node(this._lexer.token,{kind:Fu.Kind.OBJECT,fields:this.any(Fs.TokenKind.BRACE_L,i,Fs.TokenKind.BRACE_R)})}parseObjectField(r){let i=this._lexer.token,s=this.parseName();return this.expectToken(Fs.TokenKind.COLON),this.node(i,{kind:Fu.Kind.OBJECT_FIELD,name:s,value:this.parseValueLiteral(r)})}parseDirectives(r){let i=[];for(;this.peek(Fs.TokenKind.AT);)i.push(this.parseDirective(r));return i}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(r){let i=this._lexer.token;return this.expectToken(Fs.TokenKind.AT),this.node(i,{kind:Fu.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(r)})}parseTypeReference(){let r=this._lexer.token,i;if(this.expectOptionalToken(Fs.TokenKind.BRACKET_L)){let s=this.parseTypeReference();this.expectToken(Fs.TokenKind.BRACKET_R),i=this.node(r,{kind:Fu.Kind.LIST_TYPE,type:s})}else i=this.parseNamedType();return this.expectOptionalToken(Fs.TokenKind.BANG)?this.node(r,{kind:Fu.Kind.NON_NULL_TYPE,type:i}):i}parseNamedType(){return this.node(this._lexer.token,{kind:Fu.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Fs.TokenKind.STRING)||this.peek(Fs.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let r=this._lexer.token,i=this.parseDescription();this.expectKeyword("schema");let s=this.parseConstDirectives(),l=this.many(Fs.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Fs.TokenKind.BRACE_R);return this.node(r,{kind:Fu.Kind.SCHEMA_DEFINITION,description:i,directives:s,operationTypes:l})}parseOperationTypeDefinition(){let r=this._lexer.token,i=this.parseOperationType();this.expectToken(Fs.TokenKind.COLON);let s=this.parseNamedType();return this.node(r,{kind:Fu.Kind.OPERATION_TYPE_DEFINITION,operation:i,type:s})}parseScalarTypeDefinition(){let r=this._lexer.token,i=this.parseDescription();this.expectKeyword("scalar");let s=this.parseName(),l=this.parseConstDirectives();return this.node(r,{kind:Fu.Kind.SCALAR_TYPE_DEFINITION,description:i,name:s,directives:l})}parseObjectTypeDefinition(){let r=this._lexer.token,i=this.parseDescription();this.expectKeyword("type");let s=this.parseName(),l=this.parseImplementsInterfaces(),d=this.parseConstDirectives(),h=this.parseFieldsDefinition();return this.node(r,{kind:Fu.Kind.OBJECT_TYPE_DEFINITION,description:i,name:s,interfaces:l,directives:d,fields:h})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Fs.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Fs.TokenKind.BRACE_L,this.parseFieldDefinition,Fs.TokenKind.BRACE_R)}parseFieldDefinition(){let r=this._lexer.token,i=this.parseDescription(),s=this.parseName(),l=this.parseArgumentDefs();this.expectToken(Fs.TokenKind.COLON);let d=this.parseTypeReference(),h=this.parseConstDirectives();return this.node(r,{kind:Fu.Kind.FIELD_DEFINITION,description:i,name:s,arguments:l,type:d,directives:h})}parseArgumentDefs(){return this.optionalMany(Fs.TokenKind.PAREN_L,this.parseInputValueDef,Fs.TokenKind.PAREN_R)}parseInputValueDef(){let r=this._lexer.token,i=this.parseDescription(),s=this.parseName();this.expectToken(Fs.TokenKind.COLON);let l=this.parseTypeReference(),d;this.expectOptionalToken(Fs.TokenKind.EQUALS)&&(d=this.parseConstValueLiteral());let h=this.parseConstDirectives();return this.node(r,{kind:Fu.Kind.INPUT_VALUE_DEFINITION,description:i,name:s,type:l,defaultValue:d,directives:h})}parseInterfaceTypeDefinition(){let r=this._lexer.token,i=this.parseDescription();this.expectKeyword("interface");let s=this.parseName(),l=this.parseImplementsInterfaces(),d=this.parseConstDirectives(),h=this.parseFieldsDefinition();return this.node(r,{kind:Fu.Kind.INTERFACE_TYPE_DEFINITION,description:i,name:s,interfaces:l,directives:d,fields:h})}parseUnionTypeDefinition(){let r=this._lexer.token,i=this.parseDescription();this.expectKeyword("union");let s=this.parseName(),l=this.parseConstDirectives(),d=this.parseUnionMemberTypes();return this.node(r,{kind:Fu.Kind.UNION_TYPE_DEFINITION,description:i,name:s,directives:l,types:d})}parseUnionMemberTypes(){return this.expectOptionalToken(Fs.TokenKind.EQUALS)?this.delimitedMany(Fs.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let r=this._lexer.token,i=this.parseDescription();this.expectKeyword("enum");let s=this.parseName(),l=this.parseConstDirectives(),d=this.parseEnumValuesDefinition();return this.node(r,{kind:Fu.Kind.ENUM_TYPE_DEFINITION,description:i,name:s,directives:l,values:d})}parseEnumValuesDefinition(){return this.optionalMany(Fs.TokenKind.BRACE_L,this.parseEnumValueDefinition,Fs.TokenKind.BRACE_R)}parseEnumValueDefinition(){let r=this._lexer.token,i=this.parseDescription(),s=this.parseEnumValueName(),l=this.parseConstDirectives();return this.node(r,{kind:Fu.Kind.ENUM_VALUE_DEFINITION,description:i,name:s,directives:l})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,AB.syntaxError)(this._lexer.source,this._lexer.token.start,`${qDe(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let r=this._lexer.token,i=this.parseDescription();this.expectKeyword("input");let s=this.parseName(),l=this.parseConstDirectives(),d=this.parseInputFieldsDefinition();return this.node(r,{kind:Fu.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:s,directives:l,fields:d})}parseInputFieldsDefinition(){return this.optionalMany(Fs.TokenKind.BRACE_L,this.parseInputValueDef,Fs.TokenKind.BRACE_R)}parseTypeSystemExtension(){let r=this._lexer.lookahead();if(r.kind===Fs.TokenKind.NAME)switch(r.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(r)}parseSchemaExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let i=this.parseConstDirectives(),s=this.optionalMany(Fs.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Fs.TokenKind.BRACE_R);if(i.length===0&&s.length===0)throw this.unexpected();return this.node(r,{kind:Fu.Kind.SCHEMA_EXTENSION,directives:i,operationTypes:s})}parseScalarTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let i=this.parseName(),s=this.parseConstDirectives();if(s.length===0)throw this.unexpected();return this.node(r,{kind:Fu.Kind.SCALAR_TYPE_EXTENSION,name:i,directives:s})}parseObjectTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let i=this.parseName(),s=this.parseImplementsInterfaces(),l=this.parseConstDirectives(),d=this.parseFieldsDefinition();if(s.length===0&&l.length===0&&d.length===0)throw this.unexpected();return this.node(r,{kind:Fu.Kind.OBJECT_TYPE_EXTENSION,name:i,interfaces:s,directives:l,fields:d})}parseInterfaceTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let i=this.parseName(),s=this.parseImplementsInterfaces(),l=this.parseConstDirectives(),d=this.parseFieldsDefinition();if(s.length===0&&l.length===0&&d.length===0)throw this.unexpected();return this.node(r,{kind:Fu.Kind.INTERFACE_TYPE_EXTENSION,name:i,interfaces:s,directives:l,fields:d})}parseUnionTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let i=this.parseName(),s=this.parseConstDirectives(),l=this.parseUnionMemberTypes();if(s.length===0&&l.length===0)throw this.unexpected();return this.node(r,{kind:Fu.Kind.UNION_TYPE_EXTENSION,name:i,directives:s,types:l})}parseEnumTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let i=this.parseName(),s=this.parseConstDirectives(),l=this.parseEnumValuesDefinition();if(s.length===0&&l.length===0)throw this.unexpected();return this.node(r,{kind:Fu.Kind.ENUM_TYPE_EXTENSION,name:i,directives:s,values:l})}parseInputObjectTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let i=this.parseName(),s=this.parseConstDirectives(),l=this.parseInputFieldsDefinition();if(s.length===0&&l.length===0)throw this.unexpected();return this.node(r,{kind:Fu.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:s,fields:l})}parseDirectiveDefinition(){let r=this._lexer.token,i=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Fs.TokenKind.AT);let s=this.parseName(),l=this.parseArgumentDefs(),d=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let h=this.parseDirectiveLocations();return this.node(r,{kind:Fu.Kind.DIRECTIVE_DEFINITION,description:i,name:s,arguments:l,repeatable:d,locations:h})}parseDirectiveLocations(){return this.delimitedMany(Fs.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let r=this._lexer.token,i=this.parseName();if(Object.prototype.hasOwnProperty.call(qdn.DirectiveLocation,i.value))return i;throw this.unexpected(r)}parseSchemaCoordinate(){let r=this._lexer.token,i=this.expectOptionalToken(Fs.TokenKind.AT),s=this.parseName(),l;!i&&this.expectOptionalToken(Fs.TokenKind.DOT)&&(l=this.parseName());let d;return(i||l)&&this.expectOptionalToken(Fs.TokenKind.PAREN_L)&&(d=this.parseName(),this.expectToken(Fs.TokenKind.COLON),this.expectToken(Fs.TokenKind.PAREN_R)),i?d?this.node(r,{kind:Fu.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:s,argumentName:d}):this.node(r,{kind:Fu.Kind.DIRECTIVE_COORDINATE,name:s}):l?d?this.node(r,{kind:Fu.Kind.ARGUMENT_COORDINATE,name:s,fieldName:l,argumentName:d}):this.node(r,{kind:Fu.Kind.MEMBER_COORDINATE,name:s,memberName:l}):this.node(r,{kind:Fu.Kind.TYPE_COORDINATE,name:s})}node(r,i){return this._options.noLocation!==!0&&(i.loc=new L_e.Location(r,this._lexer.lastToken,this._lexer.source)),i}peek(r){return this._lexer.token.kind===r}expectToken(r){let i=this._lexer.token;if(i.kind===r)return this.advanceLexer(),i;throw(0,AB.syntaxError)(this._lexer.source,i.start,`Expected ${qzt(r)}, found ${qDe(i)}.`)}expectOptionalToken(r){return this._lexer.token.kind===r?(this.advanceLexer(),!0):!1}expectKeyword(r){let i=this._lexer.token;if(i.kind===Fs.TokenKind.NAME&&i.value===r)this.advanceLexer();else throw(0,AB.syntaxError)(this._lexer.source,i.start,`Expected "${r}", found ${qDe(i)}.`)}expectOptionalKeyword(r){let i=this._lexer.token;return i.kind===Fs.TokenKind.NAME&&i.value===r?(this.advanceLexer(),!0):!1}unexpected(r){let i=r??this._lexer.token;return(0,AB.syntaxError)(this._lexer.source,i.start,`Unexpected ${qDe(i)}.`)}any(r,i,s){this.expectToken(r);let l=[];for(;!this.expectOptionalToken(s);)l.push(i.call(this));return l}optionalMany(r,i,s){if(this.expectOptionalToken(r)){let l=[];do l.push(i.call(this));while(!this.expectOptionalToken(s));return l}return[]}many(r,i,s){this.expectToken(r);let l=[];do l.push(i.call(this));while(!this.expectOptionalToken(s));return l}delimitedMany(r,i){this.expectOptionalToken(r);let s=[];do s.push(i.call(this));while(this.expectOptionalToken(r));return s}advanceLexer(){let{maxTokens:r}=this._options,i=this._lexer.advance();if(i.kind!==Fs.TokenKind.EOF&&(++this._tokenCounter,r!==void 0&&this._tokenCounter>r))throw(0,AB.syntaxError)(this._lexer.source,i.start,`Document contains more that ${r} tokens. Parsing aborted.`)}};e9.Parser=wB;function qDe(e){let r=e.value;return qzt(e.kind)+(r!=null?` "${r}"`:"")}function qzt(e){return(0,zzt.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var IB=dr(qet=>{"use strict";Object.defineProperty(qet,"__esModule",{value:!0});qet.didYouMean=Zdn;var Qdn=5;function Zdn(e,r){let[i,s]=r?[e,r]:[void 0,e],l=" Did you mean ";i&&(l+=i+" ");let d=s.map(b=>`"${b}"`);switch(d.length){case 0:return"";case 1:return l+d[0]+"?";case 2:return l+d[0]+" or "+d[1]+"?"}let h=d.slice(0,Qdn),S=h.pop();return l+h.join(", ")+", or "+S+"?"}});var Jzt=dr(Jet=>{"use strict";Object.defineProperty(Jet,"__esModule",{value:!0});Jet.identityFunc=Xdn;function Xdn(e){return e}});var PB=dr(Vet=>{"use strict";Object.defineProperty(Vet,"__esModule",{value:!0});Vet.keyMap=Ydn;function Ydn(e,r){let i=Object.create(null);for(let s of e)i[r(s)]=s;return i}});var M_e=dr(Wet=>{"use strict";Object.defineProperty(Wet,"__esModule",{value:!0});Wet.keyValMap=efn;function efn(e,r,i){let s=Object.create(null);for(let l of e)s[r(l)]=i(l);return s}});var VDe=dr(Get=>{"use strict";Object.defineProperty(Get,"__esModule",{value:!0});Get.mapValue=tfn;function tfn(e,r){let i=Object.create(null);for(let s of Object.keys(e))i[s]=r(e[s],s);return i}});var j_e=dr(Ket=>{"use strict";Object.defineProperty(Ket,"__esModule",{value:!0});Ket.naturalCompare=rfn;function rfn(e,r){let i=0,s=0;for(;i0);let S=0;do++s,S=S*10+d-Het,d=r.charCodeAt(s);while(WDe(d)&&S>0);if(hS)return 1}else{if(ld)return 1;++i,++s}}return e.length-r.length}var Het=48,nfn=57;function WDe(e){return!isNaN(e)&&Het<=e&&e<=nfn}});var NB=dr(Zet=>{"use strict";Object.defineProperty(Zet,"__esModule",{value:!0});Zet.suggestionList=ofn;var ifn=j_e();function ofn(e,r){let i=Object.create(null),s=new Qet(e),l=Math.floor(e.length*.4)+1;for(let d of r){let h=s.measure(d,l);h!==void 0&&(i[d]=h)}return Object.keys(i).sort((d,h)=>{let S=i[d]-i[h];return S!==0?S:(0,ifn.naturalCompare)(d,h)})}var Qet=class{constructor(r){this._input=r,this._inputLowerCase=r.toLowerCase(),this._inputArray=Vzt(this._inputLowerCase),this._rows=[new Array(r.length+1).fill(0),new Array(r.length+1).fill(0),new Array(r.length+1).fill(0)]}measure(r,i){if(this._input===r)return 0;let s=r.toLowerCase();if(this._inputLowerCase===s)return 1;let l=Vzt(s),d=this._inputArray;if(l.lengthi)return;let b=this._rows;for(let L=0;L<=S;L++)b[0][L]=L;for(let L=1;L<=h;L++){let V=b[(L-1)%3],j=b[L%3],ie=j[0]=L;for(let te=1;te<=S;te++){let X=l[L-1]===d[te-1]?0:1,Re=Math.min(V[te]+1,j[te-1]+1,V[te-1]+X);if(L>1&&te>1&&l[L-1]===d[te-2]&&l[L-2]===d[te-1]){let Je=b[(L-2)%3][te-2];Re=Math.min(Re,Je+1)}Rei)return}let A=b[h%3][S];return A<=i?A:void 0}};function Vzt(e){let r=e.length,i=new Array(r);for(let s=0;s{"use strict";Object.defineProperty(Xet,"__esModule",{value:!0});Xet.toObjMap=afn;function afn(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let r=Object.create(null);for(let[i,s]of Object.entries(e))r[i]=s;return r}});var Wzt=dr(Yet=>{"use strict";Object.defineProperty(Yet,"__esModule",{value:!0});Yet.printString=sfn;function sfn(e){return`"${e.replace(cfn,lfn)}"`}var cfn=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function lfn(e){return ufn[e.charCodeAt(0)]}var ufn=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});var $V=dr(OB=>{"use strict";Object.defineProperty(OB,"__esModule",{value:!0});OB.BREAK=void 0;OB.getEnterLeaveForKind=HDe;OB.getVisitFn=mfn;OB.visit=dfn;OB.visitInParallel=ffn;var pfn=J2(),_fn=gm(),ett=aI(),Gzt=Md(),bee=Object.freeze({});OB.BREAK=bee;function dfn(e,r,i=ett.QueryDocumentKeys){let s=new Map;for(let Je of Object.values(Gzt.Kind))s.set(Je,HDe(r,Je));let l,d=Array.isArray(e),h=[e],S=-1,b=[],A=e,L,V,j=[],ie=[];do{S++;let Je=S===h.length,pt=Je&&b.length!==0;if(Je){if(L=ie.length===0?void 0:j[j.length-1],A=V,V=ie.pop(),pt)if(d){A=A.slice();let xt=0;for(let[tr,ht]of b){let wt=tr-xt;ht===null?(A.splice(wt,1),xt++):A[wt]=ht}}else{A={...A};for(let[xt,tr]of b)A[xt]=tr}S=l.index,h=l.keys,b=l.edits,d=l.inArray,l=l.prev}else if(V){if(L=d?S:h[S],A=V[L],A==null)continue;j.push(L)}let $e;if(!Array.isArray(A)){var te,X;(0,ett.isNode)(A)||(0,pfn.devAssert)(!1,`Invalid AST Node: ${(0,_fn.inspect)(A)}.`);let xt=Je?(te=s.get(A.kind))===null||te===void 0?void 0:te.leave:(X=s.get(A.kind))===null||X===void 0?void 0:X.enter;if($e=xt?.call(r,A,L,V,j,ie),$e===bee)break;if($e===!1){if(!Je){j.pop();continue}}else if($e!==void 0&&(b.push([L,$e]),!Je))if((0,ett.isNode)($e))A=$e;else{j.pop();continue}}if($e===void 0&&pt&&b.push([L,A]),Je)j.pop();else{var Re;l={inArray:d,index:S,keys:h,edits:b,prev:l},d=Array.isArray(A),h=d?A:(Re=i[A.kind])!==null&&Re!==void 0?Re:[],S=-1,b=[],V&&ie.push(V),V=A}}while(l!==void 0);return b.length!==0?b[b.length-1][1]:e}function ffn(e){let r=new Array(e.length).fill(null),i=Object.create(null);for(let s of Object.values(Gzt.Kind)){let l=!1,d=new Array(e.length).fill(void 0),h=new Array(e.length).fill(void 0);for(let b=0;b{"use strict";Object.defineProperty(rtt,"__esModule",{value:!0});rtt.print=vfn;var hfn=I_e(),gfn=Wzt(),yfn=$V();function vfn(e){return(0,yfn.visit)(e,bfn)}var Sfn=80,bfn={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>qc(e.definitions,` + +`)},OperationDefinition:{leave(e){let r=ttt(e.variableDefinitions)?Up(`( +`,qc(e.variableDefinitions,` +`),` +)`):Up("(",qc(e.variableDefinitions,", "),")"),i=Up("",e.description,` +`)+qc([e.operation,qc([e.name,r]),qc(e.directives," ")]," ");return(i==="query"?"":i+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:r,defaultValue:i,directives:s,description:l})=>Up("",l,` +`)+e+": "+r+Up(" = ",i)+Up(" ",qc(s," "))},SelectionSet:{leave:({selections:e})=>G6(e)},Field:{leave({alias:e,name:r,arguments:i,directives:s,selectionSet:l}){let d=Up("",e,": ")+r,h=d+Up("(",qc(i,", "),")");return h.length>Sfn&&(h=d+Up(`( +`,KDe(qc(i,` +`)),` +)`)),qc([h,qc(s," "),l]," ")}},Argument:{leave:({name:e,value:r})=>e+": "+r},FragmentSpread:{leave:({name:e,directives:r})=>"..."+e+Up(" ",qc(r," "))},InlineFragment:{leave:({typeCondition:e,directives:r,selectionSet:i})=>qc(["...",Up("on ",e),qc(r," "),i]," ")},FragmentDefinition:{leave:({name:e,typeCondition:r,variableDefinitions:i,directives:s,selectionSet:l,description:d})=>Up("",d,` +`)+`fragment ${e}${Up("(",qc(i,", "),")")} on ${r} ${Up("",qc(s," ")," ")}`+l},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:r})=>r?(0,hfn.printBlockString)(e):(0,gfn.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+qc(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+qc(e,", ")+"}"},ObjectField:{leave:({name:e,value:r})=>e+": "+r},Directive:{leave:({name:e,arguments:r})=>"@"+e+Up("(",qc(r,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:r,operationTypes:i})=>Up("",e,` +`)+qc(["schema",qc(r," "),G6(i)]," ")},OperationTypeDefinition:{leave:({operation:e,type:r})=>e+": "+r},ScalarTypeDefinition:{leave:({description:e,name:r,directives:i})=>Up("",e,` +`)+qc(["scalar",r,qc(i," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:r,interfaces:i,directives:s,fields:l})=>Up("",e,` +`)+qc(["type",r,Up("implements ",qc(i," & ")),qc(s," "),G6(l)]," ")},FieldDefinition:{leave:({description:e,name:r,arguments:i,type:s,directives:l})=>Up("",e,` +`)+r+(ttt(i)?Up(`( +`,KDe(qc(i,` +`)),` +)`):Up("(",qc(i,", "),")"))+": "+s+Up(" ",qc(l," "))},InputValueDefinition:{leave:({description:e,name:r,type:i,defaultValue:s,directives:l})=>Up("",e,` +`)+qc([r+": "+i,Up("= ",s),qc(l," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:r,interfaces:i,directives:s,fields:l})=>Up("",e,` +`)+qc(["interface",r,Up("implements ",qc(i," & ")),qc(s," "),G6(l)]," ")},UnionTypeDefinition:{leave:({description:e,name:r,directives:i,types:s})=>Up("",e,` +`)+qc(["union",r,qc(i," "),Up("= ",qc(s," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:r,directives:i,values:s})=>Up("",e,` +`)+qc(["enum",r,qc(i," "),G6(s)]," ")},EnumValueDefinition:{leave:({description:e,name:r,directives:i})=>Up("",e,` +`)+qc([r,qc(i," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:r,directives:i,fields:s})=>Up("",e,` +`)+qc(["input",r,qc(i," "),G6(s)]," ")},DirectiveDefinition:{leave:({description:e,name:r,arguments:i,repeatable:s,locations:l})=>Up("",e,` +`)+"directive @"+r+(ttt(i)?Up(`( +`,KDe(qc(i,` +`)),` +)`):Up("(",qc(i,", "),")"))+(s?" repeatable":"")+" on "+qc(l," | ")},SchemaExtension:{leave:({directives:e,operationTypes:r})=>qc(["extend schema",qc(e," "),G6(r)]," ")},ScalarTypeExtension:{leave:({name:e,directives:r})=>qc(["extend scalar",e,qc(r," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:r,directives:i,fields:s})=>qc(["extend type",e,Up("implements ",qc(r," & ")),qc(i," "),G6(s)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:r,directives:i,fields:s})=>qc(["extend interface",e,Up("implements ",qc(r," & ")),qc(i," "),G6(s)]," ")},UnionTypeExtension:{leave:({name:e,directives:r,types:i})=>qc(["extend union",e,qc(r," "),Up("= ",qc(i," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:r,values:i})=>qc(["extend enum",e,qc(r," "),G6(i)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:r,fields:i})=>qc(["extend input",e,qc(r," "),G6(i)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:r})=>qc([e,Up(".",r)])},ArgumentCoordinate:{leave:({name:e,fieldName:r,argumentName:i})=>qc([e,Up(".",r),Up("(",i,":)")])},DirectiveCoordinate:{leave:({name:e})=>qc(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:r})=>qc(["@",e,Up("(",r,":)")])}};function qc(e,r=""){var i;return(i=e?.filter(s=>s).join(r))!==null&&i!==void 0?i:""}function G6(e){return Up(`{ +`,KDe(qc(e,` +`)),` +}`)}function Up(e,r,i=""){return r!=null&&r!==""?e+r+i:""}function KDe(e){return Up(" ",e.replace(/\n/g,` + `))}function ttt(e){var r;return(r=e?.some(i=>i.includes(` +`)))!==null&&r!==void 0?r:!1}});var ott=dr(itt=>{"use strict";Object.defineProperty(itt,"__esModule",{value:!0});itt.valueFromASTUntyped=ntt;var xfn=M_e(),t9=Md();function ntt(e,r){switch(e.kind){case t9.Kind.NULL:return null;case t9.Kind.INT:return parseInt(e.value,10);case t9.Kind.FLOAT:return parseFloat(e.value);case t9.Kind.STRING:case t9.Kind.ENUM:case t9.Kind.BOOLEAN:return e.value;case t9.Kind.LIST:return e.values.map(i=>ntt(i,r));case t9.Kind.OBJECT:return(0,xfn.keyValMap)(e.fields,i=>i.name.value,i=>ntt(i.value,r));case t9.Kind.VARIABLE:return r?.[e.name.value]}}});var B_e=dr(ZDe=>{"use strict";Object.defineProperty(ZDe,"__esModule",{value:!0});ZDe.assertEnumValueName=Tfn;ZDe.assertName=Qzt;var Hzt=J2(),QDe=Cu(),Kzt=A_e();function Qzt(e){if(e!=null||(0,Hzt.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,Hzt.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new QDe.GraphQLError("Expected name to be a non-empty string.");for(let r=1;r{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.GraphQLUnionType=Fl.GraphQLScalarType=Fl.GraphQLObjectType=Fl.GraphQLNonNull=Fl.GraphQLList=Fl.GraphQLInterfaceType=Fl.GraphQLInputObjectType=Fl.GraphQLEnumType=void 0;Fl.argsToArgsConfig=lqt;Fl.assertAbstractType=qfn;Fl.assertCompositeType=zfn;Fl.assertEnumType=Rfn;Fl.assertInputObjectType=Lfn;Fl.assertInputType=Bfn;Fl.assertInterfaceType=Ofn;Fl.assertLeafType=Ufn;Fl.assertListType=Mfn;Fl.assertNamedType=Gfn;Fl.assertNonNullType=jfn;Fl.assertNullableType=Vfn;Fl.assertObjectType=Nfn;Fl.assertOutputType=$fn;Fl.assertScalarType=Pfn;Fl.assertType=Ifn;Fl.assertUnionType=Ffn;Fl.assertWrappingType=Jfn;Fl.defineArguments=sqt;Fl.getNamedType=Hfn;Fl.getNullableType=Wfn;Fl.isAbstractType=nqt;Fl.isCompositeType=rqt;Fl.isEnumType=JV;Fl.isInputObjectType=U_e;Fl.isInputType=att;Fl.isInterfaceType=zV;Fl.isLeafType=tqt;Fl.isListType=lAe;Fl.isNamedType=iqt;Fl.isNonNullType=RB;Fl.isNullableType=ctt;Fl.isObjectType=Tee;Fl.isOutputType=stt;Fl.isRequiredArgument=Kfn;Fl.isRequiredInputField=Xfn;Fl.isScalarType=UV;Fl.isType=cAe;Fl.isUnionType=qV;Fl.isWrappingType=z_e;Fl.resolveObjMapThunk=utt;Fl.resolveReadonlyArrayThunk=ltt;var nb=J2(),Efn=IB(),Zzt=Jzt(),ag=gm(),FB=F_e(),kfn=C8(),Cfn=PB(),eqt=M_e(),sAe=VDe(),Dfn=NB(),D8=GDe(),$_e=Cu(),Afn=Md(),Xzt=FD(),wfn=ott(),A8=B_e();function cAe(e){return UV(e)||Tee(e)||zV(e)||qV(e)||JV(e)||U_e(e)||lAe(e)||RB(e)}function Ifn(e){if(!cAe(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL type.`);return e}function UV(e){return(0,FB.instanceOf)(e,tAe)}function Pfn(e){if(!UV(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL Scalar type.`);return e}function Tee(e){return(0,FB.instanceOf)(e,rAe)}function Nfn(e){if(!Tee(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL Object type.`);return e}function zV(e){return(0,FB.instanceOf)(e,nAe)}function Ofn(e){if(!zV(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL Interface type.`);return e}function qV(e){return(0,FB.instanceOf)(e,iAe)}function Ffn(e){if(!qV(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL Union type.`);return e}function JV(e){return(0,FB.instanceOf)(e,oAe)}function Rfn(e){if(!JV(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL Enum type.`);return e}function U_e(e){return(0,FB.instanceOf)(e,aAe)}function Lfn(e){if(!U_e(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL Input Object type.`);return e}function lAe(e){return(0,FB.instanceOf)(e,YDe)}function Mfn(e){if(!lAe(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL List type.`);return e}function RB(e){return(0,FB.instanceOf)(e,eAe)}function jfn(e){if(!RB(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function att(e){return UV(e)||JV(e)||U_e(e)||z_e(e)&&att(e.ofType)}function Bfn(e){if(!att(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL input type.`);return e}function stt(e){return UV(e)||Tee(e)||zV(e)||qV(e)||JV(e)||z_e(e)&&stt(e.ofType)}function $fn(e){if(!stt(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL output type.`);return e}function tqt(e){return UV(e)||JV(e)}function Ufn(e){if(!tqt(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL leaf type.`);return e}function rqt(e){return Tee(e)||zV(e)||qV(e)}function zfn(e){if(!rqt(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL composite type.`);return e}function nqt(e){return zV(e)||qV(e)}function qfn(e){if(!nqt(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL abstract type.`);return e}var YDe=class{constructor(r){cAe(r)||(0,nb.devAssert)(!1,`Expected ${(0,ag.inspect)(r)} to be a GraphQL type.`),this.ofType=r}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};Fl.GraphQLList=YDe;var eAe=class{constructor(r){ctt(r)||(0,nb.devAssert)(!1,`Expected ${(0,ag.inspect)(r)} to be a GraphQL nullable type.`),this.ofType=r}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};Fl.GraphQLNonNull=eAe;function z_e(e){return lAe(e)||RB(e)}function Jfn(e){if(!z_e(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL wrapping type.`);return e}function ctt(e){return cAe(e)&&!RB(e)}function Vfn(e){if(!ctt(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL nullable type.`);return e}function Wfn(e){if(e)return RB(e)?e.ofType:e}function iqt(e){return UV(e)||Tee(e)||zV(e)||qV(e)||JV(e)||U_e(e)}function Gfn(e){if(!iqt(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL named type.`);return e}function Hfn(e){if(e){let r=e;for(;z_e(r);)r=r.ofType;return r}}function ltt(e){return typeof e=="function"?e():e}function utt(e){return typeof e=="function"?e():e}var tAe=class{constructor(r){var i,s,l,d;let h=(i=r.parseValue)!==null&&i!==void 0?i:Zzt.identityFunc;this.name=(0,A8.assertName)(r.name),this.description=r.description,this.specifiedByURL=r.specifiedByURL,this.serialize=(s=r.serialize)!==null&&s!==void 0?s:Zzt.identityFunc,this.parseValue=h,this.parseLiteral=(l=r.parseLiteral)!==null&&l!==void 0?l:(S,b)=>h((0,wfn.valueFromASTUntyped)(S,b)),this.extensions=(0,D8.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(d=r.extensionASTNodes)!==null&&d!==void 0?d:[],r.specifiedByURL==null||typeof r.specifiedByURL=="string"||(0,nb.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,ag.inspect)(r.specifiedByURL)}.`),r.serialize==null||typeof r.serialize=="function"||(0,nb.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),r.parseLiteral&&(typeof r.parseValue=="function"&&typeof r.parseLiteral=="function"||(0,nb.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Fl.GraphQLScalarType=tAe;var rAe=class{constructor(r){var i;this.name=(0,A8.assertName)(r.name),this.description=r.description,this.isTypeOf=r.isTypeOf,this.extensions=(0,D8.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(i=r.extensionASTNodes)!==null&&i!==void 0?i:[],this._fields=()=>aqt(r),this._interfaces=()=>oqt(r),r.isTypeOf==null||typeof r.isTypeOf=="function"||(0,nb.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,ag.inspect)(r.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:cqt(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Fl.GraphQLObjectType=rAe;function oqt(e){var r;let i=ltt((r=e.interfaces)!==null&&r!==void 0?r:[]);return Array.isArray(i)||(0,nb.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),i}function aqt(e){let r=utt(e.fields);return xee(r)||(0,nb.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,sAe.mapValue)(r,(i,s)=>{var l;xee(i)||(0,nb.devAssert)(!1,`${e.name}.${s} field config must be an object.`),i.resolve==null||typeof i.resolve=="function"||(0,nb.devAssert)(!1,`${e.name}.${s} field resolver must be a function if provided, but got: ${(0,ag.inspect)(i.resolve)}.`);let d=(l=i.args)!==null&&l!==void 0?l:{};return xee(d)||(0,nb.devAssert)(!1,`${e.name}.${s} args must be an object with argument names as keys.`),{name:(0,A8.assertName)(s),description:i.description,type:i.type,args:sqt(d),resolve:i.resolve,subscribe:i.subscribe,deprecationReason:i.deprecationReason,extensions:(0,D8.toObjMap)(i.extensions),astNode:i.astNode}})}function sqt(e){return Object.entries(e).map(([r,i])=>({name:(0,A8.assertName)(r),description:i.description,type:i.type,defaultValue:i.defaultValue,deprecationReason:i.deprecationReason,extensions:(0,D8.toObjMap)(i.extensions),astNode:i.astNode}))}function xee(e){return(0,kfn.isObjectLike)(e)&&!Array.isArray(e)}function cqt(e){return(0,sAe.mapValue)(e,r=>({description:r.description,type:r.type,args:lqt(r.args),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}))}function lqt(e){return(0,eqt.keyValMap)(e,r=>r.name,r=>({description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}))}function Kfn(e){return RB(e.type)&&e.defaultValue===void 0}var nAe=class{constructor(r){var i;this.name=(0,A8.assertName)(r.name),this.description=r.description,this.resolveType=r.resolveType,this.extensions=(0,D8.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(i=r.extensionASTNodes)!==null&&i!==void 0?i:[],this._fields=aqt.bind(void 0,r),this._interfaces=oqt.bind(void 0,r),r.resolveType==null||typeof r.resolveType=="function"||(0,nb.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,ag.inspect)(r.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:cqt(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Fl.GraphQLInterfaceType=nAe;var iAe=class{constructor(r){var i;this.name=(0,A8.assertName)(r.name),this.description=r.description,this.resolveType=r.resolveType,this.extensions=(0,D8.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(i=r.extensionASTNodes)!==null&&i!==void 0?i:[],this._types=Qfn.bind(void 0,r),r.resolveType==null||typeof r.resolveType=="function"||(0,nb.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,ag.inspect)(r.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Fl.GraphQLUnionType=iAe;function Qfn(e){let r=ltt(e.types);return Array.isArray(r)||(0,nb.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),r}var oAe=class{constructor(r){var i;this.name=(0,A8.assertName)(r.name),this.description=r.description,this.extensions=(0,D8.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(i=r.extensionASTNodes)!==null&&i!==void 0?i:[],this._values=typeof r.values=="function"?r.values:Yzt(this.name,r.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=Yzt(this.name,this._values())),this._values}getValue(r){return this._nameLookup===null&&(this._nameLookup=(0,Cfn.keyMap)(this.getValues(),i=>i.name)),this._nameLookup[r]}serialize(r){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(s=>[s.value,s])));let i=this._valueLookup.get(r);if(i===void 0)throw new $_e.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,ag.inspect)(r)}`);return i.name}parseValue(r){if(typeof r!="string"){let s=(0,ag.inspect)(r);throw new $_e.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${s}.`+XDe(this,s))}let i=this.getValue(r);if(i==null)throw new $_e.GraphQLError(`Value "${r}" does not exist in "${this.name}" enum.`+XDe(this,r));return i.value}parseLiteral(r,i){if(r.kind!==Afn.Kind.ENUM){let l=(0,Xzt.print)(r);throw new $_e.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${l}.`+XDe(this,l),{nodes:r})}let s=this.getValue(r.value);if(s==null){let l=(0,Xzt.print)(r);throw new $_e.GraphQLError(`Value "${l}" does not exist in "${this.name}" enum.`+XDe(this,l),{nodes:r})}return s.value}toConfig(){let r=(0,eqt.keyValMap)(this.getValues(),i=>i.name,i=>({description:i.description,value:i.value,deprecationReason:i.deprecationReason,extensions:i.extensions,astNode:i.astNode}));return{name:this.name,description:this.description,values:r,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Fl.GraphQLEnumType=oAe;function XDe(e,r){let i=e.getValues().map(l=>l.name),s=(0,Dfn.suggestionList)(r,i);return(0,Efn.didYouMean)("the enum value",s)}function Yzt(e,r){return xee(r)||(0,nb.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(r).map(([i,s])=>(xee(s)||(0,nb.devAssert)(!1,`${e}.${i} must refer to an object with a "value" key representing an internal value but got: ${(0,ag.inspect)(s)}.`),{name:(0,A8.assertEnumValueName)(i),description:s.description,value:s.value!==void 0?s.value:i,deprecationReason:s.deprecationReason,extensions:(0,D8.toObjMap)(s.extensions),astNode:s.astNode}))}var aAe=class{constructor(r){var i,s;this.name=(0,A8.assertName)(r.name),this.description=r.description,this.extensions=(0,D8.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(i=r.extensionASTNodes)!==null&&i!==void 0?i:[],this.isOneOf=(s=r.isOneOf)!==null&&s!==void 0?s:!1,this._fields=Zfn.bind(void 0,r)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let r=(0,sAe.mapValue)(this.getFields(),i=>({description:i.description,type:i.type,defaultValue:i.defaultValue,deprecationReason:i.deprecationReason,extensions:i.extensions,astNode:i.astNode}));return{name:this.name,description:this.description,fields:r,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};Fl.GraphQLInputObjectType=aAe;function Zfn(e){let r=utt(e.fields);return xee(r)||(0,nb.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,sAe.mapValue)(r,(i,s)=>(!("resolve"in i)||(0,nb.devAssert)(!1,`${e.name}.${s} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,A8.assertName)(s),description:i.description,type:i.type,defaultValue:i.defaultValue,deprecationReason:i.deprecationReason,extensions:(0,D8.toObjMap)(i.extensions),astNode:i.astNode}))}function Xfn(e){return RB(e.type)&&e.defaultValue===void 0}});var J_e=dr(q_e=>{"use strict";Object.defineProperty(q_e,"__esModule",{value:!0});q_e.doTypesOverlap=Yfn;q_e.isEqualType=ptt;q_e.isTypeSubTypeOf=uAe;var CT=jd();function ptt(e,r){return e===r?!0:(0,CT.isNonNullType)(e)&&(0,CT.isNonNullType)(r)||(0,CT.isListType)(e)&&(0,CT.isListType)(r)?ptt(e.ofType,r.ofType):!1}function uAe(e,r,i){return r===i?!0:(0,CT.isNonNullType)(i)?(0,CT.isNonNullType)(r)?uAe(e,r.ofType,i.ofType):!1:(0,CT.isNonNullType)(r)?uAe(e,r.ofType,i):(0,CT.isListType)(i)?(0,CT.isListType)(r)?uAe(e,r.ofType,i.ofType):!1:(0,CT.isListType)(r)?!1:(0,CT.isAbstractType)(i)&&((0,CT.isInterfaceType)(r)||(0,CT.isObjectType)(r))&&e.isSubType(i,r)}function Yfn(e,r,i){return r===i?!0:(0,CT.isAbstractType)(r)?(0,CT.isAbstractType)(i)?e.getPossibleTypes(r).some(s=>e.isSubType(i,s)):e.isSubType(r,i):(0,CT.isAbstractType)(i)?e.isSubType(i,r):!1}});var w8=dr(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0});Zv.GraphQLString=Zv.GraphQLInt=Zv.GraphQLID=Zv.GraphQLFloat=Zv.GraphQLBoolean=Zv.GRAPHQL_MIN_INT=Zv.GRAPHQL_MAX_INT=void 0;Zv.isSpecifiedScalarType=emn;Zv.specifiedScalarTypes=void 0;var H6=gm(),uqt=C8(),ib=Cu(),VV=Md(),V_e=FD(),W_e=jd(),pAe=2147483647;Zv.GRAPHQL_MAX_INT=pAe;var _Ae=-2147483648;Zv.GRAPHQL_MIN_INT=_Ae;var pqt=new W_e.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let r=G_e(e);if(typeof r=="boolean")return r?1:0;let i=r;if(typeof r=="string"&&r!==""&&(i=Number(r)),typeof i!="number"||!Number.isInteger(i))throw new ib.GraphQLError(`Int cannot represent non-integer value: ${(0,H6.inspect)(r)}`);if(i>pAe||i<_Ae)throw new ib.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,H6.inspect)(r));return i},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new ib.GraphQLError(`Int cannot represent non-integer value: ${(0,H6.inspect)(e)}`);if(e>pAe||e<_Ae)throw new ib.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==VV.Kind.INT)throw new ib.GraphQLError(`Int cannot represent non-integer value: ${(0,V_e.print)(e)}`,{nodes:e});let r=parseInt(e.value,10);if(r>pAe||r<_Ae)throw new ib.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return r}});Zv.GraphQLInt=pqt;var _qt=new W_e.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){let r=G_e(e);if(typeof r=="boolean")return r?1:0;let i=r;if(typeof r=="string"&&r!==""&&(i=Number(r)),typeof i!="number"||!Number.isFinite(i))throw new ib.GraphQLError(`Float cannot represent non numeric value: ${(0,H6.inspect)(r)}`);return i},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new ib.GraphQLError(`Float cannot represent non numeric value: ${(0,H6.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==VV.Kind.FLOAT&&e.kind!==VV.Kind.INT)throw new ib.GraphQLError(`Float cannot represent non numeric value: ${(0,V_e.print)(e)}`,e);return parseFloat(e.value)}});Zv.GraphQLFloat=_qt;var dqt=new W_e.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){let r=G_e(e);if(typeof r=="string")return r;if(typeof r=="boolean")return r?"true":"false";if(typeof r=="number"&&Number.isFinite(r))return r.toString();throw new ib.GraphQLError(`String cannot represent value: ${(0,H6.inspect)(e)}`)},parseValue(e){if(typeof e!="string")throw new ib.GraphQLError(`String cannot represent a non string value: ${(0,H6.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==VV.Kind.STRING)throw new ib.GraphQLError(`String cannot represent a non string value: ${(0,V_e.print)(e)}`,{nodes:e});return e.value}});Zv.GraphQLString=dqt;var fqt=new W_e.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let r=G_e(e);if(typeof r=="boolean")return r;if(Number.isFinite(r))return r!==0;throw new ib.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,H6.inspect)(r)}`)},parseValue(e){if(typeof e!="boolean")throw new ib.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,H6.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==VV.Kind.BOOLEAN)throw new ib.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,V_e.print)(e)}`,{nodes:e});return e.value}});Zv.GraphQLBoolean=fqt;var mqt=new W_e.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){let r=G_e(e);if(typeof r=="string")return r;if(Number.isInteger(r))return String(r);throw new ib.GraphQLError(`ID cannot represent value: ${(0,H6.inspect)(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new ib.GraphQLError(`ID cannot represent value: ${(0,H6.inspect)(e)}`)},parseLiteral(e){if(e.kind!==VV.Kind.STRING&&e.kind!==VV.Kind.INT)throw new ib.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,V_e.print)(e),{nodes:e});return e.value}});Zv.GraphQLID=mqt;var hqt=Object.freeze([dqt,pqt,_qt,fqt,mqt]);Zv.specifiedScalarTypes=hqt;function emn(e){return hqt.some(({name:r})=>e.name===r)}function G_e(e){if((0,uqt.isObjectLike)(e)){if(typeof e.valueOf=="function"){let r=e.valueOf();if(!(0,uqt.isObjectLike)(r))return r}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var kk=dr(w1=>{"use strict";Object.defineProperty(w1,"__esModule",{value:!0});w1.GraphQLSpecifiedByDirective=w1.GraphQLSkipDirective=w1.GraphQLOneOfDirective=w1.GraphQLIncludeDirective=w1.GraphQLDirective=w1.GraphQLDeprecatedDirective=w1.DEFAULT_DEPRECATION_REASON=void 0;w1.assertDirective=amn;w1.isDirective=yqt;w1.isSpecifiedDirective=smn;w1.specifiedDirectives=void 0;var gqt=J2(),tmn=gm(),rmn=F_e(),nmn=C8(),imn=GDe(),sI=yee(),omn=B_e(),H_e=jd(),dAe=w8();function yqt(e){return(0,rmn.instanceOf)(e,r9)}function amn(e){if(!yqt(e))throw new Error(`Expected ${(0,tmn.inspect)(e)} to be a GraphQL directive.`);return e}var r9=class{constructor(r){var i,s;this.name=(0,omn.assertName)(r.name),this.description=r.description,this.locations=r.locations,this.isRepeatable=(i=r.isRepeatable)!==null&&i!==void 0?i:!1,this.extensions=(0,imn.toObjMap)(r.extensions),this.astNode=r.astNode,Array.isArray(r.locations)||(0,gqt.devAssert)(!1,`@${r.name} locations must be an Array.`);let l=(s=r.args)!==null&&s!==void 0?s:{};(0,nmn.isObjectLike)(l)&&!Array.isArray(l)||(0,gqt.devAssert)(!1,`@${r.name} args must be an object with argument names as keys.`),this.args=(0,H_e.defineArguments)(l)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,H_e.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};w1.GraphQLDirective=r9;var vqt=new r9({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[sI.DirectiveLocation.FIELD,sI.DirectiveLocation.FRAGMENT_SPREAD,sI.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new H_e.GraphQLNonNull(dAe.GraphQLBoolean),description:"Included when true."}}});w1.GraphQLIncludeDirective=vqt;var Sqt=new r9({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[sI.DirectiveLocation.FIELD,sI.DirectiveLocation.FRAGMENT_SPREAD,sI.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new H_e.GraphQLNonNull(dAe.GraphQLBoolean),description:"Skipped when true."}}});w1.GraphQLSkipDirective=Sqt;var bqt="No longer supported";w1.DEFAULT_DEPRECATION_REASON=bqt;var xqt=new r9({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[sI.DirectiveLocation.FIELD_DEFINITION,sI.DirectiveLocation.ARGUMENT_DEFINITION,sI.DirectiveLocation.INPUT_FIELD_DEFINITION,sI.DirectiveLocation.ENUM_VALUE],args:{reason:{type:dAe.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:bqt}}});w1.GraphQLDeprecatedDirective=xqt;var Tqt=new r9({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[sI.DirectiveLocation.SCALAR],args:{url:{type:new H_e.GraphQLNonNull(dAe.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});w1.GraphQLSpecifiedByDirective=Tqt;var Eqt=new r9({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[sI.DirectiveLocation.INPUT_OBJECT],args:{}});w1.GraphQLOneOfDirective=Eqt;var kqt=Object.freeze([vqt,Sqt,xqt,Tqt,Eqt]);w1.specifiedDirectives=kqt;function smn(e){return kqt.some(({name:r})=>r===e.name)}});var fAe=dr(_tt=>{"use strict";Object.defineProperty(_tt,"__esModule",{value:!0});_tt.isIterableObject=cmn;function cmn(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}});var Z_e=dr(dtt=>{"use strict";Object.defineProperty(dtt,"__esModule",{value:!0});dtt.astFromValue=Q_e;var Cqt=gm(),lmn=kT(),umn=fAe(),pmn=C8(),cI=Md(),K_e=jd(),_mn=w8();function Q_e(e,r){if((0,K_e.isNonNullType)(r)){let i=Q_e(e,r.ofType);return i?.kind===cI.Kind.NULL?null:i}if(e===null)return{kind:cI.Kind.NULL};if(e===void 0)return null;if((0,K_e.isListType)(r)){let i=r.ofType;if((0,umn.isIterableObject)(e)){let s=[];for(let l of e){let d=Q_e(l,i);d!=null&&s.push(d)}return{kind:cI.Kind.LIST,values:s}}return Q_e(e,i)}if((0,K_e.isInputObjectType)(r)){if(!(0,pmn.isObjectLike)(e))return null;let i=[];for(let s of Object.values(r.getFields())){let l=Q_e(e[s.name],s.type);l&&i.push({kind:cI.Kind.OBJECT_FIELD,name:{kind:cI.Kind.NAME,value:s.name},value:l})}return{kind:cI.Kind.OBJECT,fields:i}}if((0,K_e.isLeafType)(r)){let i=r.serialize(e);if(i==null)return null;if(typeof i=="boolean")return{kind:cI.Kind.BOOLEAN,value:i};if(typeof i=="number"&&Number.isFinite(i)){let s=String(i);return Dqt.test(s)?{kind:cI.Kind.INT,value:s}:{kind:cI.Kind.FLOAT,value:s}}if(typeof i=="string")return(0,K_e.isEnumType)(r)?{kind:cI.Kind.ENUM,value:i}:r===_mn.GraphQLID&&Dqt.test(i)?{kind:cI.Kind.INT,value:i}:{kind:cI.Kind.STRING,value:i};throw new TypeError(`Cannot convert value to AST: ${(0,Cqt.inspect)(i)}.`)}(0,lmn.invariant)(!1,"Unexpected input type: "+(0,Cqt.inspect)(r))}var Dqt=/^-?(?:0|[1-9][0-9]*)$/});var uI=dr($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.introspectionTypes=$m.__TypeKind=$m.__Type=$m.__Schema=$m.__InputValue=$m.__Field=$m.__EnumValue=$m.__DirectiveLocation=$m.__Directive=$m.TypeNameMetaFieldDef=$m.TypeMetaFieldDef=$m.TypeKind=$m.SchemaMetaFieldDef=void 0;$m.isIntrospectionType=Smn;var dmn=gm(),fmn=kT(),Xv=yee(),mmn=FD(),hmn=Z_e(),pl=jd(),Oh=w8(),ftt=new pl.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Oh.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new pl.GraphQLNonNull(new pl.GraphQLList(new pl.GraphQLNonNull(lI))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new pl.GraphQLNonNull(lI),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:lI,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:lI,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new pl.GraphQLNonNull(new pl.GraphQLList(new pl.GraphQLNonNull(mtt))),resolve:e=>e.getDirectives()}})});$m.__Schema=ftt;var mtt=new pl.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. + +In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new pl.GraphQLNonNull(Oh.GraphQLString),resolve:e=>e.name},description:{type:Oh.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new pl.GraphQLNonNull(Oh.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new pl.GraphQLNonNull(new pl.GraphQLList(new pl.GraphQLNonNull(htt))),resolve:e=>e.locations},args:{type:new pl.GraphQLNonNull(new pl.GraphQLList(new pl.GraphQLNonNull(X_e))),args:{includeDeprecated:{type:Oh.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){return r?e.args:e.args.filter(i=>i.deprecationReason==null)}}})});$m.__Directive=mtt;var htt=new pl.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:Xv.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Xv.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Xv.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Xv.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Xv.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Xv.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Xv.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Xv.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Xv.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Xv.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Xv.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Xv.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Xv.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Xv.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Xv.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Xv.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Xv.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Xv.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Xv.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});$m.__DirectiveLocation=htt;var lI=new pl.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new pl.GraphQLNonNull(vtt),resolve(e){if((0,pl.isScalarType)(e))return Yv.SCALAR;if((0,pl.isObjectType)(e))return Yv.OBJECT;if((0,pl.isInterfaceType)(e))return Yv.INTERFACE;if((0,pl.isUnionType)(e))return Yv.UNION;if((0,pl.isEnumType)(e))return Yv.ENUM;if((0,pl.isInputObjectType)(e))return Yv.INPUT_OBJECT;if((0,pl.isListType)(e))return Yv.LIST;if((0,pl.isNonNullType)(e))return Yv.NON_NULL;(0,fmn.invariant)(!1,`Unexpected type: "${(0,dmn.inspect)(e)}".`)}},name:{type:Oh.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:Oh.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Oh.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new pl.GraphQLList(new pl.GraphQLNonNull(gtt)),args:{includeDeprecated:{type:Oh.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){if((0,pl.isObjectType)(e)||(0,pl.isInterfaceType)(e)){let i=Object.values(e.getFields());return r?i:i.filter(s=>s.deprecationReason==null)}}},interfaces:{type:new pl.GraphQLList(new pl.GraphQLNonNull(lI)),resolve(e){if((0,pl.isObjectType)(e)||(0,pl.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new pl.GraphQLList(new pl.GraphQLNonNull(lI)),resolve(e,r,i,{schema:s}){if((0,pl.isAbstractType)(e))return s.getPossibleTypes(e)}},enumValues:{type:new pl.GraphQLList(new pl.GraphQLNonNull(ytt)),args:{includeDeprecated:{type:Oh.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){if((0,pl.isEnumType)(e)){let i=e.getValues();return r?i:i.filter(s=>s.deprecationReason==null)}}},inputFields:{type:new pl.GraphQLList(new pl.GraphQLNonNull(X_e)),args:{includeDeprecated:{type:Oh.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){if((0,pl.isInputObjectType)(e)){let i=Object.values(e.getFields());return r?i:i.filter(s=>s.deprecationReason==null)}}},ofType:{type:lI,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:Oh.GraphQLBoolean,resolve:e=>{if((0,pl.isInputObjectType)(e))return e.isOneOf}}})});$m.__Type=lI;var gtt=new pl.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new pl.GraphQLNonNull(Oh.GraphQLString),resolve:e=>e.name},description:{type:Oh.GraphQLString,resolve:e=>e.description},args:{type:new pl.GraphQLNonNull(new pl.GraphQLList(new pl.GraphQLNonNull(X_e))),args:{includeDeprecated:{type:Oh.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){return r?e.args:e.args.filter(i=>i.deprecationReason==null)}},type:{type:new pl.GraphQLNonNull(lI),resolve:e=>e.type},isDeprecated:{type:new pl.GraphQLNonNull(Oh.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Oh.GraphQLString,resolve:e=>e.deprecationReason}})});$m.__Field=gtt;var X_e=new pl.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new pl.GraphQLNonNull(Oh.GraphQLString),resolve:e=>e.name},description:{type:Oh.GraphQLString,resolve:e=>e.description},type:{type:new pl.GraphQLNonNull(lI),resolve:e=>e.type},defaultValue:{type:Oh.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:r,defaultValue:i}=e,s=(0,hmn.astFromValue)(i,r);return s?(0,mmn.print)(s):null}},isDeprecated:{type:new pl.GraphQLNonNull(Oh.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Oh.GraphQLString,resolve:e=>e.deprecationReason}})});$m.__InputValue=X_e;var ytt=new pl.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new pl.GraphQLNonNull(Oh.GraphQLString),resolve:e=>e.name},description:{type:Oh.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new pl.GraphQLNonNull(Oh.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Oh.GraphQLString,resolve:e=>e.deprecationReason}})});$m.__EnumValue=ytt;var Yv;$m.TypeKind=Yv;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(Yv||($m.TypeKind=Yv={}));var vtt=new pl.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Yv.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Yv.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Yv.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Yv.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Yv.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Yv.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Yv.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Yv.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});$m.__TypeKind=vtt;var gmn={name:"__schema",type:new pl.GraphQLNonNull(ftt),description:"Access the current type schema of this server.",args:[],resolve:(e,r,i,{schema:s})=>s,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};$m.SchemaMetaFieldDef=gmn;var ymn={name:"__type",type:lI,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new pl.GraphQLNonNull(Oh.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:r},i,{schema:s})=>s.getType(r),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};$m.TypeMetaFieldDef=ymn;var vmn={name:"__typename",type:new pl.GraphQLNonNull(Oh.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,r,i,{parentType:s})=>s.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};$m.TypeNameMetaFieldDef=vmn;var Aqt=Object.freeze([ftt,mtt,htt,lI,gtt,X_e,ytt,vtt]);$m.introspectionTypes=Aqt;function Smn(e){return Aqt.some(({name:r})=>e.name===r)}});var WV=dr(Eee=>{"use strict";Object.defineProperty(Eee,"__esModule",{value:!0});Eee.GraphQLSchema=void 0;Eee.assertSchema=kmn;Eee.isSchema=Iqt;var mAe=J2(),btt=gm(),bmn=F_e(),xmn=C8(),Tmn=GDe(),Stt=aI(),K6=jd(),wqt=kk(),Emn=uI();function Iqt(e){return(0,bmn.instanceOf)(e,hAe)}function kmn(e){if(!Iqt(e))throw new Error(`Expected ${(0,btt.inspect)(e)} to be a GraphQL schema.`);return e}var hAe=class{constructor(r){var i,s;this.__validationErrors=r.assumeValid===!0?[]:void 0,(0,xmn.isObjectLike)(r)||(0,mAe.devAssert)(!1,"Must provide configuration object."),!r.types||Array.isArray(r.types)||(0,mAe.devAssert)(!1,`"types" must be Array if provided but got: ${(0,btt.inspect)(r.types)}.`),!r.directives||Array.isArray(r.directives)||(0,mAe.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,btt.inspect)(r.directives)}.`),this.description=r.description,this.extensions=(0,Tmn.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(i=r.extensionASTNodes)!==null&&i!==void 0?i:[],this._queryType=r.query,this._mutationType=r.mutation,this._subscriptionType=r.subscription,this._directives=(s=r.directives)!==null&&s!==void 0?s:wqt.specifiedDirectives;let l=new Set(r.types);if(r.types!=null)for(let d of r.types)l.delete(d),Q6(d,l);this._queryType!=null&&Q6(this._queryType,l),this._mutationType!=null&&Q6(this._mutationType,l),this._subscriptionType!=null&&Q6(this._subscriptionType,l);for(let d of this._directives)if((0,wqt.isDirective)(d))for(let h of d.args)Q6(h.type,l);Q6(Emn.__Schema,l),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let d of l){if(d==null)continue;let h=d.name;if(h||(0,mAe.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[h]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${h}".`);if(this._typeMap[h]=d,(0,K6.isInterfaceType)(d)){for(let S of d.getInterfaces())if((0,K6.isInterfaceType)(S)){let b=this._implementationsMap[S.name];b===void 0&&(b=this._implementationsMap[S.name]={objects:[],interfaces:[]}),b.interfaces.push(d)}}else if((0,K6.isObjectType)(d)){for(let S of d.getInterfaces())if((0,K6.isInterfaceType)(S)){let b=this._implementationsMap[S.name];b===void 0&&(b=this._implementationsMap[S.name]={objects:[],interfaces:[]}),b.objects.push(d)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(r){switch(r){case Stt.OperationTypeNode.QUERY:return this.getQueryType();case Stt.OperationTypeNode.MUTATION:return this.getMutationType();case Stt.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(r){return this.getTypeMap()[r]}getPossibleTypes(r){return(0,K6.isUnionType)(r)?r.getTypes():this.getImplementations(r).objects}getImplementations(r){let i=this._implementationsMap[r.name];return i??{objects:[],interfaces:[]}}isSubType(r,i){let s=this._subTypeMap[r.name];if(s===void 0){if(s=Object.create(null),(0,K6.isUnionType)(r))for(let l of r.getTypes())s[l.name]=!0;else{let l=this.getImplementations(r);for(let d of l.objects)s[d.name]=!0;for(let d of l.interfaces)s[d.name]=!0}this._subTypeMap[r.name]=s}return s[i.name]!==void 0}getDirectives(){return this._directives}getDirective(r){return this.getDirectives().find(i=>i.name===r)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};Eee.GraphQLSchema=hAe;function Q6(e,r){let i=(0,K6.getNamedType)(e);if(!r.has(i)){if(r.add(i),(0,K6.isUnionType)(i))for(let s of i.getTypes())Q6(s,r);else if((0,K6.isObjectType)(i)||(0,K6.isInterfaceType)(i)){for(let s of i.getInterfaces())Q6(s,r);for(let s of Object.values(i.getFields())){Q6(s.type,r);for(let l of s.args)Q6(l.type,r)}}else if((0,K6.isInputObjectType)(i))for(let s of Object.values(i.getFields()))Q6(s.type,r)}return r}});var ede=dr(gAe=>{"use strict";Object.defineProperty(gAe,"__esModule",{value:!0});gAe.assertValidSchema=wmn;gAe.validateSchema=Lqt;var DT=gm(),Cmn=Cu(),xtt=aI(),Pqt=J_e(),z0=jd(),Rqt=kk(),Dmn=uI(),Amn=WV();function Lqt(e){if((0,Amn.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let r=new Ett(e);Imn(r),Pmn(r),Nmn(r);let i=r.getErrors();return e.__validationErrors=i,i}function wmn(e){let r=Lqt(e);if(r.length!==0)throw new Error(r.map(i=>i.message).join(` + +`))}var Ett=class{constructor(r){this._errors=[],this.schema=r}reportError(r,i){let s=Array.isArray(i)?i.filter(Boolean):i;this._errors.push(new Cmn.GraphQLError(r,{nodes:s}))}getErrors(){return this._errors}};function Imn(e){let r=e.schema,i=r.getQueryType();if(!i)e.reportError("Query root type must be provided.",r.astNode);else if(!(0,z0.isObjectType)(i)){var s;e.reportError(`Query root type must be Object type, it cannot be ${(0,DT.inspect)(i)}.`,(s=Ttt(r,xtt.OperationTypeNode.QUERY))!==null&&s!==void 0?s:i.astNode)}let l=r.getMutationType();if(l&&!(0,z0.isObjectType)(l)){var d;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,DT.inspect)(l)}.`,(d=Ttt(r,xtt.OperationTypeNode.MUTATION))!==null&&d!==void 0?d:l.astNode)}let h=r.getSubscriptionType();if(h&&!(0,z0.isObjectType)(h)){var S;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,DT.inspect)(h)}.`,(S=Ttt(r,xtt.OperationTypeNode.SUBSCRIPTION))!==null&&S!==void 0?S:h.astNode)}}function Ttt(e,r){var i;return(i=[e.astNode,...e.extensionASTNodes].flatMap(s=>{var l;return(l=s?.operationTypes)!==null&&l!==void 0?l:[]}).find(s=>s.operation===r))===null||i===void 0?void 0:i.type}function Pmn(e){for(let i of e.schema.getDirectives()){if(!(0,Rqt.isDirective)(i)){e.reportError(`Expected directive but got: ${(0,DT.inspect)(i)}.`,i?.astNode);continue}GV(e,i),i.locations.length===0&&e.reportError(`Directive @${i.name} must include 1 or more locations.`,i.astNode);for(let s of i.args)if(GV(e,s),(0,z0.isInputType)(s.type)||e.reportError(`The type of @${i.name}(${s.name}:) must be Input Type but got: ${(0,DT.inspect)(s.type)}.`,s.astNode),(0,z0.isRequiredArgument)(s)&&s.deprecationReason!=null){var r;e.reportError(`Required argument @${i.name}(${s.name}:) cannot be deprecated.`,[ktt(s.astNode),(r=s.astNode)===null||r===void 0?void 0:r.type])}}}function GV(e,r){r.name.startsWith("__")&&e.reportError(`Name "${r.name}" must not begin with "__", which is reserved by GraphQL introspection.`,r.astNode)}function Nmn(e){let r=Bmn(e),i=e.schema.getTypeMap();for(let s of Object.values(i)){if(!(0,z0.isNamedType)(s)){e.reportError(`Expected GraphQL named type but got: ${(0,DT.inspect)(s)}.`,s.astNode);continue}(0,Dmn.isIntrospectionType)(s)||GV(e,s),(0,z0.isObjectType)(s)||(0,z0.isInterfaceType)(s)?(Nqt(e,s),Oqt(e,s)):(0,z0.isUnionType)(s)?Rmn(e,s):(0,z0.isEnumType)(s)?Lmn(e,s):(0,z0.isInputObjectType)(s)&&(Mmn(e,s),r(s))}}function Nqt(e,r){let i=Object.values(r.getFields());i.length===0&&e.reportError(`Type ${r.name} must define one or more fields.`,[r.astNode,...r.extensionASTNodes]);for(let h of i){if(GV(e,h),!(0,z0.isOutputType)(h.type)){var s;e.reportError(`The type of ${r.name}.${h.name} must be Output Type but got: ${(0,DT.inspect)(h.type)}.`,(s=h.astNode)===null||s===void 0?void 0:s.type)}for(let S of h.args){let b=S.name;if(GV(e,S),!(0,z0.isInputType)(S.type)){var l;e.reportError(`The type of ${r.name}.${h.name}(${b}:) must be Input Type but got: ${(0,DT.inspect)(S.type)}.`,(l=S.astNode)===null||l===void 0?void 0:l.type)}if((0,z0.isRequiredArgument)(S)&&S.deprecationReason!=null){var d;e.reportError(`Required argument ${r.name}.${h.name}(${b}:) cannot be deprecated.`,[ktt(S.astNode),(d=S.astNode)===null||d===void 0?void 0:d.type])}}}}function Oqt(e,r){let i=Object.create(null);for(let s of r.getInterfaces()){if(!(0,z0.isInterfaceType)(s)){e.reportError(`Type ${(0,DT.inspect)(r)} must only implement Interface types, it cannot implement ${(0,DT.inspect)(s)}.`,Y_e(r,s));continue}if(r===s){e.reportError(`Type ${r.name} cannot implement itself because it would create a circular reference.`,Y_e(r,s));continue}if(i[s.name]){e.reportError(`Type ${r.name} can only implement ${s.name} once.`,Y_e(r,s));continue}i[s.name]=!0,Fmn(e,r,s),Omn(e,r,s)}}function Omn(e,r,i){let s=r.getFields();for(let b of Object.values(i.getFields())){let A=b.name,L=s[A];if(!L){e.reportError(`Interface field ${i.name}.${A} expected but ${r.name} does not provide it.`,[b.astNode,r.astNode,...r.extensionASTNodes]);continue}if(!(0,Pqt.isTypeSubTypeOf)(e.schema,L.type,b.type)){var l,d;e.reportError(`Interface field ${i.name}.${A} expects type ${(0,DT.inspect)(b.type)} but ${r.name}.${A} is type ${(0,DT.inspect)(L.type)}.`,[(l=b.astNode)===null||l===void 0?void 0:l.type,(d=L.astNode)===null||d===void 0?void 0:d.type])}for(let V of b.args){let j=V.name,ie=L.args.find(te=>te.name===j);if(!ie){e.reportError(`Interface field argument ${i.name}.${A}(${j}:) expected but ${r.name}.${A} does not provide it.`,[V.astNode,L.astNode]);continue}if(!(0,Pqt.isEqualType)(V.type,ie.type)){var h,S;e.reportError(`Interface field argument ${i.name}.${A}(${j}:) expects type ${(0,DT.inspect)(V.type)} but ${r.name}.${A}(${j}:) is type ${(0,DT.inspect)(ie.type)}.`,[(h=V.astNode)===null||h===void 0?void 0:h.type,(S=ie.astNode)===null||S===void 0?void 0:S.type])}}for(let V of L.args){let j=V.name;!b.args.find(te=>te.name===j)&&(0,z0.isRequiredArgument)(V)&&e.reportError(`Object field ${r.name}.${A} includes required argument ${j} that is missing from the Interface field ${i.name}.${A}.`,[V.astNode,b.astNode])}}}function Fmn(e,r,i){let s=r.getInterfaces();for(let l of i.getInterfaces())s.includes(l)||e.reportError(l===r?`Type ${r.name} cannot implement ${i.name} because it would create a circular reference.`:`Type ${r.name} must implement ${l.name} because it is implemented by ${i.name}.`,[...Y_e(i,l),...Y_e(r,i)])}function Rmn(e,r){let i=r.getTypes();i.length===0&&e.reportError(`Union type ${r.name} must define one or more member types.`,[r.astNode,...r.extensionASTNodes]);let s=Object.create(null);for(let l of i){if(s[l.name]){e.reportError(`Union type ${r.name} can only include type ${l.name} once.`,Fqt(r,l.name));continue}s[l.name]=!0,(0,z0.isObjectType)(l)||e.reportError(`Union type ${r.name} can only include Object types, it cannot include ${(0,DT.inspect)(l)}.`,Fqt(r,String(l)))}}function Lmn(e,r){let i=r.getValues();i.length===0&&e.reportError(`Enum type ${r.name} must define one or more values.`,[r.astNode,...r.extensionASTNodes]);for(let s of i)GV(e,s)}function Mmn(e,r){let i=Object.values(r.getFields());i.length===0&&e.reportError(`Input Object type ${r.name} must define one or more fields.`,[r.astNode,...r.extensionASTNodes]);for(let d of i){if(GV(e,d),!(0,z0.isInputType)(d.type)){var s;e.reportError(`The type of ${r.name}.${d.name} must be Input Type but got: ${(0,DT.inspect)(d.type)}.`,(s=d.astNode)===null||s===void 0?void 0:s.type)}if((0,z0.isRequiredInputField)(d)&&d.deprecationReason!=null){var l;e.reportError(`Required input field ${r.name}.${d.name} cannot be deprecated.`,[ktt(d.astNode),(l=d.astNode)===null||l===void 0?void 0:l.type])}r.isOneOf&&jmn(r,d,e)}}function jmn(e,r,i){if((0,z0.isNonNullType)(r.type)){var s;i.reportError(`OneOf input field ${e.name}.${r.name} must be nullable.`,(s=r.astNode)===null||s===void 0?void 0:s.type)}r.defaultValue!==void 0&&i.reportError(`OneOf input field ${e.name}.${r.name} cannot have a default value.`,r.astNode)}function Bmn(e){let r=Object.create(null),i=[],s=Object.create(null);return l;function l(d){if(r[d.name])return;r[d.name]=!0,s[d.name]=i.length;let h=Object.values(d.getFields());for(let S of h)if((0,z0.isNonNullType)(S.type)&&(0,z0.isInputObjectType)(S.type.ofType)){let b=S.type.ofType,A=s[b.name];if(i.push(S),A===void 0)l(b);else{let L=i.slice(A),V=L.map(j=>j.name).join(".");e.reportError(`Cannot reference Input Object "${b.name}" within itself through a series of non-null fields: "${V}".`,L.map(j=>j.astNode))}i.pop()}s[d.name]=void 0}}function Y_e(e,r){let{astNode:i,extensionASTNodes:s}=e;return(i!=null?[i,...s]:s).flatMap(d=>{var h;return(h=d.interfaces)!==null&&h!==void 0?h:[]}).filter(d=>d.name.value===r.name)}function Fqt(e,r){let{astNode:i,extensionASTNodes:s}=e;return(i!=null?[i,...s]:s).flatMap(d=>{var h;return(h=d.types)!==null&&h!==void 0?h:[]}).filter(d=>d.name.value===r)}function ktt(e){var r;return e==null||(r=e.directives)===null||r===void 0?void 0:r.find(i=>i.name.value===Rqt.GraphQLDeprecatedDirective.name)}});var I8=dr(Att=>{"use strict";Object.defineProperty(Att,"__esModule",{value:!0});Att.typeFromAST=Dtt;var Ctt=Md(),Mqt=jd();function Dtt(e,r){switch(r.kind){case Ctt.Kind.LIST_TYPE:{let i=Dtt(e,r.type);return i&&new Mqt.GraphQLList(i)}case Ctt.Kind.NON_NULL_TYPE:{let i=Dtt(e,r.type);return i&&new Mqt.GraphQLNonNull(i)}case Ctt.Kind.NAMED_TYPE:return e.getType(r.name.value)}}});var yAe=dr(tde=>{"use strict";Object.defineProperty(tde,"__esModule",{value:!0});tde.TypeInfo=void 0;tde.visitWithTypeInfo=zmn;var $mn=aI(),q0=Md(),jqt=$V(),J0=jd(),kee=uI(),Bqt=I8(),wtt=class{constructor(r,i,s){this._schema=r,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=s??Umn,i&&((0,J0.isInputType)(i)&&this._inputTypeStack.push(i),(0,J0.isCompositeType)(i)&&this._parentTypeStack.push(i),(0,J0.isOutputType)(i)&&this._typeStack.push(i))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(r){let i=this._schema;switch(r.kind){case q0.Kind.SELECTION_SET:{let l=(0,J0.getNamedType)(this.getType());this._parentTypeStack.push((0,J0.isCompositeType)(l)?l:void 0);break}case q0.Kind.FIELD:{let l=this.getParentType(),d,h;l&&(d=this._getFieldDef(i,l,r),d&&(h=d.type)),this._fieldDefStack.push(d),this._typeStack.push((0,J0.isOutputType)(h)?h:void 0);break}case q0.Kind.DIRECTIVE:this._directive=i.getDirective(r.name.value);break;case q0.Kind.OPERATION_DEFINITION:{let l=i.getRootType(r.operation);this._typeStack.push((0,J0.isObjectType)(l)?l:void 0);break}case q0.Kind.INLINE_FRAGMENT:case q0.Kind.FRAGMENT_DEFINITION:{let l=r.typeCondition,d=l?(0,Bqt.typeFromAST)(i,l):(0,J0.getNamedType)(this.getType());this._typeStack.push((0,J0.isOutputType)(d)?d:void 0);break}case q0.Kind.VARIABLE_DEFINITION:{let l=(0,Bqt.typeFromAST)(i,r.type);this._inputTypeStack.push((0,J0.isInputType)(l)?l:void 0);break}case q0.Kind.ARGUMENT:{var s;let l,d,h=(s=this.getDirective())!==null&&s!==void 0?s:this.getFieldDef();h&&(l=h.args.find(S=>S.name===r.name.value),l&&(d=l.type)),this._argument=l,this._defaultValueStack.push(l?l.defaultValue:void 0),this._inputTypeStack.push((0,J0.isInputType)(d)?d:void 0);break}case q0.Kind.LIST:{let l=(0,J0.getNullableType)(this.getInputType()),d=(0,J0.isListType)(l)?l.ofType:l;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,J0.isInputType)(d)?d:void 0);break}case q0.Kind.OBJECT_FIELD:{let l=(0,J0.getNamedType)(this.getInputType()),d,h;(0,J0.isInputObjectType)(l)&&(h=l.getFields()[r.name.value],h&&(d=h.type)),this._defaultValueStack.push(h?h.defaultValue:void 0),this._inputTypeStack.push((0,J0.isInputType)(d)?d:void 0);break}case q0.Kind.ENUM:{let l=(0,J0.getNamedType)(this.getInputType()),d;(0,J0.isEnumType)(l)&&(d=l.getValue(r.value)),this._enumValue=d;break}default:}}leave(r){switch(r.kind){case q0.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case q0.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case q0.Kind.DIRECTIVE:this._directive=null;break;case q0.Kind.OPERATION_DEFINITION:case q0.Kind.INLINE_FRAGMENT:case q0.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case q0.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case q0.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case q0.Kind.LIST:case q0.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case q0.Kind.ENUM:this._enumValue=null;break;default:}}};tde.TypeInfo=wtt;function Umn(e,r,i){let s=i.name.value;if(s===kee.SchemaMetaFieldDef.name&&e.getQueryType()===r)return kee.SchemaMetaFieldDef;if(s===kee.TypeMetaFieldDef.name&&e.getQueryType()===r)return kee.TypeMetaFieldDef;if(s===kee.TypeNameMetaFieldDef.name&&(0,J0.isCompositeType)(r))return kee.TypeNameMetaFieldDef;if((0,J0.isObjectType)(r)||(0,J0.isInterfaceType)(r))return r.getFields()[s]}function zmn(e,r){return{enter(...i){let s=i[0];e.enter(s);let l=(0,jqt.getEnterLeaveForKind)(r,s.kind).enter;if(l){let d=l.apply(r,i);return d!==void 0&&(e.leave(s),(0,$mn.isNode)(d)&&e.enter(d)),d}},leave(...i){let s=i[0],l=(0,jqt.getEnterLeaveForKind)(r,s.kind).leave,d;return l&&(d=l.apply(r,i)),e.leave(s),d}}}});var HV=dr(RD=>{"use strict";Object.defineProperty(RD,"__esModule",{value:!0});RD.isConstValueNode=Itt;RD.isDefinitionNode=qmn;RD.isExecutableDefinitionNode=$qt;RD.isSchemaCoordinateNode=Wmn;RD.isSelectionNode=Jmn;RD.isTypeDefinitionNode=qqt;RD.isTypeExtensionNode=Vqt;RD.isTypeNode=Vmn;RD.isTypeSystemDefinitionNode=zqt;RD.isTypeSystemExtensionNode=Jqt;RD.isValueNode=Uqt;var U_=Md();function qmn(e){return $qt(e)||zqt(e)||Jqt(e)}function $qt(e){return e.kind===U_.Kind.OPERATION_DEFINITION||e.kind===U_.Kind.FRAGMENT_DEFINITION}function Jmn(e){return e.kind===U_.Kind.FIELD||e.kind===U_.Kind.FRAGMENT_SPREAD||e.kind===U_.Kind.INLINE_FRAGMENT}function Uqt(e){return e.kind===U_.Kind.VARIABLE||e.kind===U_.Kind.INT||e.kind===U_.Kind.FLOAT||e.kind===U_.Kind.STRING||e.kind===U_.Kind.BOOLEAN||e.kind===U_.Kind.NULL||e.kind===U_.Kind.ENUM||e.kind===U_.Kind.LIST||e.kind===U_.Kind.OBJECT}function Itt(e){return Uqt(e)&&(e.kind===U_.Kind.LIST?e.values.some(Itt):e.kind===U_.Kind.OBJECT?e.fields.some(r=>Itt(r.value)):e.kind!==U_.Kind.VARIABLE)}function Vmn(e){return e.kind===U_.Kind.NAMED_TYPE||e.kind===U_.Kind.LIST_TYPE||e.kind===U_.Kind.NON_NULL_TYPE}function zqt(e){return e.kind===U_.Kind.SCHEMA_DEFINITION||qqt(e)||e.kind===U_.Kind.DIRECTIVE_DEFINITION}function qqt(e){return e.kind===U_.Kind.SCALAR_TYPE_DEFINITION||e.kind===U_.Kind.OBJECT_TYPE_DEFINITION||e.kind===U_.Kind.INTERFACE_TYPE_DEFINITION||e.kind===U_.Kind.UNION_TYPE_DEFINITION||e.kind===U_.Kind.ENUM_TYPE_DEFINITION||e.kind===U_.Kind.INPUT_OBJECT_TYPE_DEFINITION}function Jqt(e){return e.kind===U_.Kind.SCHEMA_EXTENSION||Vqt(e)}function Vqt(e){return e.kind===U_.Kind.SCALAR_TYPE_EXTENSION||e.kind===U_.Kind.OBJECT_TYPE_EXTENSION||e.kind===U_.Kind.INTERFACE_TYPE_EXTENSION||e.kind===U_.Kind.UNION_TYPE_EXTENSION||e.kind===U_.Kind.ENUM_TYPE_EXTENSION||e.kind===U_.Kind.INPUT_OBJECT_TYPE_EXTENSION}function Wmn(e){return e.kind===U_.Kind.TYPE_COORDINATE||e.kind===U_.Kind.MEMBER_COORDINATE||e.kind===U_.Kind.ARGUMENT_COORDINATE||e.kind===U_.Kind.DIRECTIVE_COORDINATE||e.kind===U_.Kind.DIRECTIVE_ARGUMENT_COORDINATE}});var Ntt=dr(Ptt=>{"use strict";Object.defineProperty(Ptt,"__esModule",{value:!0});Ptt.ExecutableDefinitionsRule=Kmn;var Gmn=Cu(),Wqt=Md(),Hmn=HV();function Kmn(e){return{Document(r){for(let i of r.definitions)if(!(0,Hmn.isExecutableDefinitionNode)(i)){let s=i.kind===Wqt.Kind.SCHEMA_DEFINITION||i.kind===Wqt.Kind.SCHEMA_EXTENSION?"schema":'"'+i.name.value+'"';e.reportError(new Gmn.GraphQLError(`The ${s} definition is not executable.`,{nodes:i}))}return!1}}}});var Ftt=dr(Ott=>{"use strict";Object.defineProperty(Ott,"__esModule",{value:!0});Ott.FieldsOnCorrectTypeRule=Ymn;var Gqt=IB(),Qmn=j_e(),Zmn=NB(),Xmn=Cu(),rde=jd();function Ymn(e){return{Field(r){let i=e.getParentType();if(i&&!e.getFieldDef()){let l=e.getSchema(),d=r.name.value,h=(0,Gqt.didYouMean)("to use an inline fragment on",ehn(l,i,d));h===""&&(h=(0,Gqt.didYouMean)(thn(i,d))),e.reportError(new Xmn.GraphQLError(`Cannot query field "${d}" on type "${i.name}".`+h,{nodes:r}))}}}}function ehn(e,r,i){if(!(0,rde.isAbstractType)(r))return[];let s=new Set,l=Object.create(null);for(let h of e.getPossibleTypes(r))if(h.getFields()[i]){s.add(h),l[h.name]=1;for(let S of h.getInterfaces()){var d;S.getFields()[i]&&(s.add(S),l[S.name]=((d=l[S.name])!==null&&d!==void 0?d:0)+1)}}return[...s].sort((h,S)=>{let b=l[S.name]-l[h.name];return b!==0?b:(0,rde.isInterfaceType)(h)&&e.isSubType(h,S)?-1:(0,rde.isInterfaceType)(S)&&e.isSubType(S,h)?1:(0,Qmn.naturalCompare)(h.name,S.name)}).map(h=>h.name)}function thn(e,r){if((0,rde.isObjectType)(e)||(0,rde.isInterfaceType)(e)){let i=Object.keys(e.getFields());return(0,Zmn.suggestionList)(r,i)}return[]}});var Ltt=dr(Rtt=>{"use strict";Object.defineProperty(Rtt,"__esModule",{value:!0});Rtt.FragmentsOnCompositeTypesRule=rhn;var Hqt=Cu(),Kqt=FD(),Qqt=jd(),Zqt=I8();function rhn(e){return{InlineFragment(r){let i=r.typeCondition;if(i){let s=(0,Zqt.typeFromAST)(e.getSchema(),i);if(s&&!(0,Qqt.isCompositeType)(s)){let l=(0,Kqt.print)(i);e.reportError(new Hqt.GraphQLError(`Fragment cannot condition on non composite type "${l}".`,{nodes:i}))}}},FragmentDefinition(r){let i=(0,Zqt.typeFromAST)(e.getSchema(),r.typeCondition);if(i&&!(0,Qqt.isCompositeType)(i)){let s=(0,Kqt.print)(r.typeCondition);e.reportError(new Hqt.GraphQLError(`Fragment "${r.name.value}" cannot condition on non composite type "${s}".`,{nodes:r.typeCondition}))}}}}});var Mtt=dr(vAe=>{"use strict";Object.defineProperty(vAe,"__esModule",{value:!0});vAe.KnownArgumentNamesOnDirectivesRule=tJt;vAe.KnownArgumentNamesRule=ohn;var Xqt=IB(),Yqt=NB(),eJt=Cu(),nhn=Md(),ihn=kk();function ohn(e){return{...tJt(e),Argument(r){let i=e.getArgument(),s=e.getFieldDef(),l=e.getParentType();if(!i&&s&&l){let d=r.name.value,h=s.args.map(b=>b.name),S=(0,Yqt.suggestionList)(d,h);e.reportError(new eJt.GraphQLError(`Unknown argument "${d}" on field "${l.name}.${s.name}".`+(0,Xqt.didYouMean)(S),{nodes:r}))}}}}function tJt(e){let r=Object.create(null),i=e.getSchema(),s=i?i.getDirectives():ihn.specifiedDirectives;for(let h of s)r[h.name]=h.args.map(S=>S.name);let l=e.getDocument().definitions;for(let h of l)if(h.kind===nhn.Kind.DIRECTIVE_DEFINITION){var d;let S=(d=h.arguments)!==null&&d!==void 0?d:[];r[h.name.value]=S.map(b=>b.name.value)}return{Directive(h){let S=h.name.value,b=r[S];if(h.arguments&&b)for(let A of h.arguments){let L=A.name.value;if(!b.includes(L)){let V=(0,Yqt.suggestionList)(L,b);e.reportError(new eJt.GraphQLError(`Unknown argument "${L}" on directive "@${S}".`+(0,Xqt.didYouMean)(V),{nodes:A}))}}return!1}}}});var Utt=dr($tt=>{"use strict";Object.defineProperty($tt,"__esModule",{value:!0});$tt.KnownDirectivesRule=chn;var ahn=gm(),jtt=kT(),rJt=Cu(),Btt=aI(),eS=yee(),ly=Md(),shn=kk();function chn(e){let r=Object.create(null),i=e.getSchema(),s=i?i.getDirectives():shn.specifiedDirectives;for(let d of s)r[d.name]=d.locations;let l=e.getDocument().definitions;for(let d of l)d.kind===ly.Kind.DIRECTIVE_DEFINITION&&(r[d.name.value]=d.locations.map(h=>h.value));return{Directive(d,h,S,b,A){let L=d.name.value,V=r[L];if(!V){e.reportError(new rJt.GraphQLError(`Unknown directive "@${L}".`,{nodes:d}));return}let j=lhn(A);j&&!V.includes(j)&&e.reportError(new rJt.GraphQLError(`Directive "@${L}" may not be used on ${j}.`,{nodes:d}))}}}function lhn(e){let r=e[e.length-1];switch("kind"in r||(0,jtt.invariant)(!1),r.kind){case ly.Kind.OPERATION_DEFINITION:return uhn(r.operation);case ly.Kind.FIELD:return eS.DirectiveLocation.FIELD;case ly.Kind.FRAGMENT_SPREAD:return eS.DirectiveLocation.FRAGMENT_SPREAD;case ly.Kind.INLINE_FRAGMENT:return eS.DirectiveLocation.INLINE_FRAGMENT;case ly.Kind.FRAGMENT_DEFINITION:return eS.DirectiveLocation.FRAGMENT_DEFINITION;case ly.Kind.VARIABLE_DEFINITION:return eS.DirectiveLocation.VARIABLE_DEFINITION;case ly.Kind.SCHEMA_DEFINITION:case ly.Kind.SCHEMA_EXTENSION:return eS.DirectiveLocation.SCHEMA;case ly.Kind.SCALAR_TYPE_DEFINITION:case ly.Kind.SCALAR_TYPE_EXTENSION:return eS.DirectiveLocation.SCALAR;case ly.Kind.OBJECT_TYPE_DEFINITION:case ly.Kind.OBJECT_TYPE_EXTENSION:return eS.DirectiveLocation.OBJECT;case ly.Kind.FIELD_DEFINITION:return eS.DirectiveLocation.FIELD_DEFINITION;case ly.Kind.INTERFACE_TYPE_DEFINITION:case ly.Kind.INTERFACE_TYPE_EXTENSION:return eS.DirectiveLocation.INTERFACE;case ly.Kind.UNION_TYPE_DEFINITION:case ly.Kind.UNION_TYPE_EXTENSION:return eS.DirectiveLocation.UNION;case ly.Kind.ENUM_TYPE_DEFINITION:case ly.Kind.ENUM_TYPE_EXTENSION:return eS.DirectiveLocation.ENUM;case ly.Kind.ENUM_VALUE_DEFINITION:return eS.DirectiveLocation.ENUM_VALUE;case ly.Kind.INPUT_OBJECT_TYPE_DEFINITION:case ly.Kind.INPUT_OBJECT_TYPE_EXTENSION:return eS.DirectiveLocation.INPUT_OBJECT;case ly.Kind.INPUT_VALUE_DEFINITION:{let i=e[e.length-3];return"kind"in i||(0,jtt.invariant)(!1),i.kind===ly.Kind.INPUT_OBJECT_TYPE_DEFINITION?eS.DirectiveLocation.INPUT_FIELD_DEFINITION:eS.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,jtt.invariant)(!1,"Unexpected kind: "+(0,ahn.inspect)(r.kind))}}function uhn(e){switch(e){case Btt.OperationTypeNode.QUERY:return eS.DirectiveLocation.QUERY;case Btt.OperationTypeNode.MUTATION:return eS.DirectiveLocation.MUTATION;case Btt.OperationTypeNode.SUBSCRIPTION:return eS.DirectiveLocation.SUBSCRIPTION}}});var qtt=dr(ztt=>{"use strict";Object.defineProperty(ztt,"__esModule",{value:!0});ztt.KnownFragmentNamesRule=_hn;var phn=Cu();function _hn(e){return{FragmentSpread(r){let i=r.name.value;e.getFragment(i)||e.reportError(new phn.GraphQLError(`Unknown fragment "${i}".`,{nodes:r.name}))}}}});var Wtt=dr(Vtt=>{"use strict";Object.defineProperty(Vtt,"__esModule",{value:!0});Vtt.KnownTypeNamesRule=yhn;var dhn=IB(),fhn=NB(),mhn=Cu(),Jtt=HV(),hhn=uI(),ghn=w8();function yhn(e){let r=e.getSchema(),i=r?r.getTypeMap():Object.create(null),s=Object.create(null);for(let d of e.getDocument().definitions)(0,Jtt.isTypeDefinitionNode)(d)&&(s[d.name.value]=!0);let l=[...Object.keys(i),...Object.keys(s)];return{NamedType(d,h,S,b,A){let L=d.name.value;if(!i[L]&&!s[L]){var V;let j=(V=A[2])!==null&&V!==void 0?V:S,ie=j!=null&&vhn(j);if(ie&&nJt.includes(L))return;let te=(0,fhn.suggestionList)(L,ie?nJt.concat(l):l);e.reportError(new mhn.GraphQLError(`Unknown type "${L}".`+(0,dhn.didYouMean)(te),{nodes:d}))}}}}var nJt=[...ghn.specifiedScalarTypes,...hhn.introspectionTypes].map(e=>e.name);function vhn(e){return"kind"in e&&((0,Jtt.isTypeSystemDefinitionNode)(e)||(0,Jtt.isTypeSystemExtensionNode)(e))}});var Htt=dr(Gtt=>{"use strict";Object.defineProperty(Gtt,"__esModule",{value:!0});Gtt.LoneAnonymousOperationRule=xhn;var Shn=Cu(),bhn=Md();function xhn(e){let r=0;return{Document(i){r=i.definitions.filter(s=>s.kind===bhn.Kind.OPERATION_DEFINITION).length},OperationDefinition(i){!i.name&&r>1&&e.reportError(new Shn.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:i}))}}}});var Qtt=dr(Ktt=>{"use strict";Object.defineProperty(Ktt,"__esModule",{value:!0});Ktt.LoneSchemaDefinitionRule=Thn;var iJt=Cu();function Thn(e){var r,i,s;let l=e.getSchema(),d=(r=(i=(s=l?.astNode)!==null&&s!==void 0?s:l?.getQueryType())!==null&&i!==void 0?i:l?.getMutationType())!==null&&r!==void 0?r:l?.getSubscriptionType(),h=0;return{SchemaDefinition(S){if(d){e.reportError(new iJt.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:S}));return}h>0&&e.reportError(new iJt.GraphQLError("Must provide only one schema definition.",{nodes:S})),++h}}}});var Xtt=dr(Ztt=>{"use strict";Object.defineProperty(Ztt,"__esModule",{value:!0});Ztt.MaxIntrospectionDepthRule=Chn;var Ehn=Cu(),oJt=Md(),khn=3;function Chn(e){function r(i,s=Object.create(null),l=0){if(i.kind===oJt.Kind.FRAGMENT_SPREAD){let d=i.name.value;if(s[d]===!0)return!1;let h=e.getFragment(d);if(!h)return!1;try{return s[d]=!0,r(h,s,l)}finally{s[d]=void 0}}if(i.kind===oJt.Kind.FIELD&&(i.name.value==="fields"||i.name.value==="interfaces"||i.name.value==="possibleTypes"||i.name.value==="inputFields")&&(l++,l>=khn))return!0;if("selectionSet"in i&&i.selectionSet){for(let d of i.selectionSet.selections)if(r(d,s,l))return!0}return!1}return{Field(i){if((i.name.value==="__schema"||i.name.value==="__type")&&r(i))return e.reportError(new Ehn.GraphQLError("Maximum introspection depth exceeded",{nodes:[i]})),!1}}}});var ert=dr(Ytt=>{"use strict";Object.defineProperty(Ytt,"__esModule",{value:!0});Ytt.NoFragmentCyclesRule=Ahn;var Dhn=Cu();function Ahn(e){let r=Object.create(null),i=[],s=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(d){return l(d),!1}};function l(d){if(r[d.name.value])return;let h=d.name.value;r[h]=!0;let S=e.getFragmentSpreads(d.selectionSet);if(S.length!==0){s[h]=i.length;for(let b of S){let A=b.name.value,L=s[A];if(i.push(b),L===void 0){let V=e.getFragment(A);V&&l(V)}else{let V=i.slice(L),j=V.slice(0,-1).map(ie=>'"'+ie.name.value+'"').join(", ");e.reportError(new Dhn.GraphQLError(`Cannot spread fragment "${A}" within itself`+(j!==""?` via ${j}.`:"."),{nodes:V}))}i.pop()}s[h]=void 0}}}});var rrt=dr(trt=>{"use strict";Object.defineProperty(trt,"__esModule",{value:!0});trt.NoUndefinedVariablesRule=Ihn;var whn=Cu();function Ihn(e){let r=Object.create(null);return{OperationDefinition:{enter(){r=Object.create(null)},leave(i){let s=e.getRecursiveVariableUsages(i);for(let{node:l}of s){let d=l.name.value;r[d]!==!0&&e.reportError(new whn.GraphQLError(i.name?`Variable "$${d}" is not defined by operation "${i.name.value}".`:`Variable "$${d}" is not defined.`,{nodes:[l,i]}))}}},VariableDefinition(i){r[i.variable.name.value]=!0}}}});var irt=dr(nrt=>{"use strict";Object.defineProperty(nrt,"__esModule",{value:!0});nrt.NoUnusedFragmentsRule=Nhn;var Phn=Cu();function Nhn(e){let r=[],i=[];return{OperationDefinition(s){return r.push(s),!1},FragmentDefinition(s){return i.push(s),!1},Document:{leave(){let s=Object.create(null);for(let l of r)for(let d of e.getRecursivelyReferencedFragments(l))s[d.name.value]=!0;for(let l of i){let d=l.name.value;s[d]!==!0&&e.reportError(new Phn.GraphQLError(`Fragment "${d}" is never used.`,{nodes:l}))}}}}}});var art=dr(ort=>{"use strict";Object.defineProperty(ort,"__esModule",{value:!0});ort.NoUnusedVariablesRule=Fhn;var Ohn=Cu();function Fhn(e){let r=[];return{OperationDefinition:{enter(){r=[]},leave(i){let s=Object.create(null),l=e.getRecursiveVariableUsages(i);for(let{node:d}of l)s[d.name.value]=!0;for(let d of r){let h=d.variable.name.value;s[h]!==!0&&e.reportError(new Ohn.GraphQLError(i.name?`Variable "$${h}" is never used in operation "${i.name.value}".`:`Variable "$${h}" is never used.`,{nodes:d}))}}},VariableDefinition(i){r.push(i)}}}});var lrt=dr(crt=>{"use strict";Object.defineProperty(crt,"__esModule",{value:!0});crt.sortValueNode=srt;var Rhn=j_e(),n9=Md();function srt(e){switch(e.kind){case n9.Kind.OBJECT:return{...e,fields:Lhn(e.fields)};case n9.Kind.LIST:return{...e,values:e.values.map(srt)};case n9.Kind.INT:case n9.Kind.FLOAT:case n9.Kind.STRING:case n9.Kind.BOOLEAN:case n9.Kind.NULL:case n9.Kind.ENUM:case n9.Kind.VARIABLE:return e}}function Lhn(e){return e.map(r=>({...r,value:srt(r.value)})).sort((r,i)=>(0,Rhn.naturalCompare)(r.name.value,i.name.value))}});var hrt=dr(mrt=>{"use strict";Object.defineProperty(mrt,"__esModule",{value:!0});mrt.OverlappingFieldsCanBeMergedRule=$hn;var aJt=gm(),Mhn=Cu(),urt=Md(),jhn=FD(),Ck=jd(),Bhn=lrt(),cJt=I8();function lJt(e){return Array.isArray(e)?e.map(([r,i])=>`subfields "${r}" conflict because `+lJt(i)).join(" and "):e}function $hn(e){let r=new TAe,i=new drt,s=new Map;return{SelectionSet(l){let d=Uhn(e,s,r,i,e.getParentType(),l);for(let[[h,S],b,A]of d){let L=lJt(S);e.reportError(new Mhn.GraphQLError(`Fields "${h}" conflict because ${L}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:b.concat(A)}))}}}}function Uhn(e,r,i,s,l,d){let h=[],[S,b]=xAe(e,r,l,d);if(qhn(e,h,r,i,s,S),b.length!==0)for(let A=0;A1)for(let b=0;b[d.value,h]));return i.every(d=>{let h=d.value,S=l.get(d.name.value);return S===void 0?!1:sJt(h)===sJt(S)})}function sJt(e){return(0,jhn.print)((0,Bhn.sortValueNode)(e))}function prt(e,r){return(0,Ck.isListType)(e)?(0,Ck.isListType)(r)?prt(e.ofType,r.ofType):!0:(0,Ck.isListType)(r)?!0:(0,Ck.isNonNullType)(e)?(0,Ck.isNonNullType)(r)?prt(e.ofType,r.ofType):!0:(0,Ck.isNonNullType)(r)?!0:(0,Ck.isLeafType)(e)||(0,Ck.isLeafType)(r)?e!==r:!1}function xAe(e,r,i,s){let l=r.get(s);if(l)return l;let d=Object.create(null),h=Object.create(null);pJt(e,i,s,d,h);let S=[d,Object.keys(h)];return r.set(s,S),S}function _rt(e,r,i){let s=r.get(i.selectionSet);if(s)return s;let l=(0,cJt.typeFromAST)(e.getSchema(),i.typeCondition);return xAe(e,r,l,i.selectionSet)}function pJt(e,r,i,s,l){for(let d of i.selections)switch(d.kind){case urt.Kind.FIELD:{let h=d.name.value,S;((0,Ck.isObjectType)(r)||(0,Ck.isInterfaceType)(r))&&(S=r.getFields()[h]);let b=d.alias?d.alias.value:h;s[b]||(s[b]=[]),s[b].push([r,d,S]);break}case urt.Kind.FRAGMENT_SPREAD:l[d.name.value]=!0;break;case urt.Kind.INLINE_FRAGMENT:{let h=d.typeCondition,S=h?(0,cJt.typeFromAST)(e.getSchema(),h):r;pJt(e,S,d.selectionSet,s,l);break}}}function Vhn(e,r,i,s){if(e.length>0)return[[r,e.map(([l])=>l)],[i,...e.map(([,l])=>l).flat()],[s,...e.map(([,,l])=>l).flat()]]}var TAe=class{constructor(){this._data=new Map}has(r,i,s){var l;let d=(l=this._data.get(r))===null||l===void 0?void 0:l.get(i);return d===void 0?!1:s?!0:s===d}add(r,i,s){let l=this._data.get(r);l===void 0?this._data.set(r,new Map([[i,s]])):l.set(i,s)}},drt=class{constructor(){this._orderedPairSet=new TAe}has(r,i,s){return r{"use strict";Object.defineProperty(yrt,"__esModule",{value:!0});yrt.PossibleFragmentSpreadsRule=Ghn;var EAe=gm(),_Jt=Cu(),grt=jd(),dJt=J_e(),Whn=I8();function Ghn(e){return{InlineFragment(r){let i=e.getType(),s=e.getParentType();if((0,grt.isCompositeType)(i)&&(0,grt.isCompositeType)(s)&&!(0,dJt.doTypesOverlap)(e.getSchema(),i,s)){let l=(0,EAe.inspect)(s),d=(0,EAe.inspect)(i);e.reportError(new _Jt.GraphQLError(`Fragment cannot be spread here as objects of type "${l}" can never be of type "${d}".`,{nodes:r}))}},FragmentSpread(r){let i=r.name.value,s=Hhn(e,i),l=e.getParentType();if(s&&l&&!(0,dJt.doTypesOverlap)(e.getSchema(),s,l)){let d=(0,EAe.inspect)(l),h=(0,EAe.inspect)(s);e.reportError(new _Jt.GraphQLError(`Fragment "${i}" cannot be spread here as objects of type "${d}" can never be of type "${h}".`,{nodes:r}))}}}}function Hhn(e,r){let i=e.getFragment(r);if(i){let s=(0,Whn.typeFromAST)(e.getSchema(),i.typeCondition);if((0,grt.isCompositeType)(s))return s}}});var brt=dr(Srt=>{"use strict";Object.defineProperty(Srt,"__esModule",{value:!0});Srt.PossibleTypeExtensionsRule=Xhn;var Khn=IB(),mJt=gm(),hJt=kT(),Qhn=NB(),fJt=Cu(),Cy=Md(),Zhn=HV(),Cee=jd();function Xhn(e){let r=e.getSchema(),i=Object.create(null);for(let l of e.getDocument().definitions)(0,Zhn.isTypeDefinitionNode)(l)&&(i[l.name.value]=l);return{ScalarTypeExtension:s,ObjectTypeExtension:s,InterfaceTypeExtension:s,UnionTypeExtension:s,EnumTypeExtension:s,InputObjectTypeExtension:s};function s(l){let d=l.name.value,h=i[d],S=r?.getType(d),b;if(h?b=Yhn[h.kind]:S&&(b=egn(S)),b){if(b!==l.kind){let A=tgn(l.kind);e.reportError(new fJt.GraphQLError(`Cannot extend non-${A} type "${d}".`,{nodes:h?[h,l]:l}))}}else{let A=Object.keys({...i,...r?.getTypeMap()}),L=(0,Qhn.suggestionList)(d,A);e.reportError(new fJt.GraphQLError(`Cannot extend type "${d}" because it is not defined.`+(0,Khn.didYouMean)(L),{nodes:l.name}))}}}var Yhn={[Cy.Kind.SCALAR_TYPE_DEFINITION]:Cy.Kind.SCALAR_TYPE_EXTENSION,[Cy.Kind.OBJECT_TYPE_DEFINITION]:Cy.Kind.OBJECT_TYPE_EXTENSION,[Cy.Kind.INTERFACE_TYPE_DEFINITION]:Cy.Kind.INTERFACE_TYPE_EXTENSION,[Cy.Kind.UNION_TYPE_DEFINITION]:Cy.Kind.UNION_TYPE_EXTENSION,[Cy.Kind.ENUM_TYPE_DEFINITION]:Cy.Kind.ENUM_TYPE_EXTENSION,[Cy.Kind.INPUT_OBJECT_TYPE_DEFINITION]:Cy.Kind.INPUT_OBJECT_TYPE_EXTENSION};function egn(e){if((0,Cee.isScalarType)(e))return Cy.Kind.SCALAR_TYPE_EXTENSION;if((0,Cee.isObjectType)(e))return Cy.Kind.OBJECT_TYPE_EXTENSION;if((0,Cee.isInterfaceType)(e))return Cy.Kind.INTERFACE_TYPE_EXTENSION;if((0,Cee.isUnionType)(e))return Cy.Kind.UNION_TYPE_EXTENSION;if((0,Cee.isEnumType)(e))return Cy.Kind.ENUM_TYPE_EXTENSION;if((0,Cee.isInputObjectType)(e))return Cy.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,hJt.invariant)(!1,"Unexpected type: "+(0,mJt.inspect)(e))}function tgn(e){switch(e){case Cy.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case Cy.Kind.OBJECT_TYPE_EXTENSION:return"object";case Cy.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case Cy.Kind.UNION_TYPE_EXTENSION:return"union";case Cy.Kind.ENUM_TYPE_EXTENSION:return"enum";case Cy.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,hJt.invariant)(!1,"Unexpected kind: "+(0,mJt.inspect)(e))}}});var Trt=dr(kAe=>{"use strict";Object.defineProperty(kAe,"__esModule",{value:!0});kAe.ProvidedRequiredArgumentsOnDirectivesRule=bJt;kAe.ProvidedRequiredArgumentsRule=ign;var yJt=gm(),gJt=PB(),vJt=Cu(),SJt=Md(),rgn=FD(),xrt=jd(),ngn=kk();function ign(e){return{...bJt(e),Field:{leave(r){var i;let s=e.getFieldDef();if(!s)return!1;let l=new Set((i=r.arguments)===null||i===void 0?void 0:i.map(d=>d.name.value));for(let d of s.args)if(!l.has(d.name)&&(0,xrt.isRequiredArgument)(d)){let h=(0,yJt.inspect)(d.type);e.reportError(new vJt.GraphQLError(`Field "${s.name}" argument "${d.name}" of type "${h}" is required, but it was not provided.`,{nodes:r}))}}}}}function bJt(e){var r;let i=Object.create(null),s=e.getSchema(),l=(r=s?.getDirectives())!==null&&r!==void 0?r:ngn.specifiedDirectives;for(let S of l)i[S.name]=(0,gJt.keyMap)(S.args.filter(xrt.isRequiredArgument),b=>b.name);let d=e.getDocument().definitions;for(let S of d)if(S.kind===SJt.Kind.DIRECTIVE_DEFINITION){var h;let b=(h=S.arguments)!==null&&h!==void 0?h:[];i[S.name.value]=(0,gJt.keyMap)(b.filter(ogn),A=>A.name.value)}return{Directive:{leave(S){let b=S.name.value,A=i[b];if(A){var L;let V=(L=S.arguments)!==null&&L!==void 0?L:[],j=new Set(V.map(ie=>ie.name.value));for(let[ie,te]of Object.entries(A))if(!j.has(ie)){let X=(0,xrt.isType)(te.type)?(0,yJt.inspect)(te.type):(0,rgn.print)(te.type);e.reportError(new vJt.GraphQLError(`Directive "@${b}" argument "${ie}" of type "${X}" is required, but it was not provided.`,{nodes:S}))}}}}}}function ogn(e){return e.type.kind===SJt.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var Drt=dr(Crt=>{"use strict";Object.defineProperty(Crt,"__esModule",{value:!0});Crt.ScalarLeafsRule=agn;var Ert=gm(),krt=Cu(),xJt=jd();function agn(e){return{Field(r){let i=e.getType(),s=r.selectionSet;if(i)if((0,xJt.isLeafType)((0,xJt.getNamedType)(i))){if(s){let l=r.name.value,d=(0,Ert.inspect)(i);e.reportError(new krt.GraphQLError(`Field "${l}" must not have a selection since type "${d}" has no subfields.`,{nodes:s}))}}else if(s){if(s.selections.length===0){let l=r.name.value,d=(0,Ert.inspect)(i);e.reportError(new krt.GraphQLError(`Field "${l}" of type "${d}" must have at least one field selected.`,{nodes:r}))}}else{let l=r.name.value,d=(0,Ert.inspect)(i);e.reportError(new krt.GraphQLError(`Field "${l}" of type "${d}" must have a selection of subfields. Did you mean "${l} { ... }"?`,{nodes:r}))}}}}});var wrt=dr(Art=>{"use strict";Object.defineProperty(Art,"__esModule",{value:!0});Art.printPathArray=sgn;function sgn(e){return e.map(r=>typeof r=="number"?"["+r.toString()+"]":"."+r).join("")}});var nde=dr(CAe=>{"use strict";Object.defineProperty(CAe,"__esModule",{value:!0});CAe.addPath=cgn;CAe.pathToArray=lgn;function cgn(e,r,i){return{prev:e,key:r,typename:i}}function lgn(e){let r=[],i=e;for(;i;)r.push(i.key),i=i.prev;return r.reverse()}});var Prt=dr(Irt=>{"use strict";Object.defineProperty(Irt,"__esModule",{value:!0});Irt.coerceInputValue=hgn;var ugn=IB(),DAe=gm(),pgn=kT(),_gn=fAe(),dgn=C8(),Z6=nde(),fgn=wrt(),mgn=NB(),i9=Cu(),ide=jd();function hgn(e,r,i=ggn){return ode(e,r,i,void 0)}function ggn(e,r,i){let s="Invalid value "+(0,DAe.inspect)(r);throw e.length>0&&(s+=` at "value${(0,fgn.printPathArray)(e)}"`),i.message=s+": "+i.message,i}function ode(e,r,i,s){if((0,ide.isNonNullType)(r)){if(e!=null)return ode(e,r.ofType,i,s);i((0,Z6.pathToArray)(s),e,new i9.GraphQLError(`Expected non-nullable type "${(0,DAe.inspect)(r)}" not to be null.`));return}if(e==null)return null;if((0,ide.isListType)(r)){let l=r.ofType;return(0,_gn.isIterableObject)(e)?Array.from(e,(d,h)=>{let S=(0,Z6.addPath)(s,h,void 0);return ode(d,l,i,S)}):[ode(e,l,i,s)]}if((0,ide.isInputObjectType)(r)){if(!(0,dgn.isObjectLike)(e)||Array.isArray(e)){i((0,Z6.pathToArray)(s),e,new i9.GraphQLError(`Expected type "${r.name}" to be an object.`));return}let l={},d=r.getFields();for(let h of Object.values(d)){let S=e[h.name];if(S===void 0){if(h.defaultValue!==void 0)l[h.name]=h.defaultValue;else if((0,ide.isNonNullType)(h.type)){let b=(0,DAe.inspect)(h.type);i((0,Z6.pathToArray)(s),e,new i9.GraphQLError(`Field "${h.name}" of required type "${b}" was not provided.`))}continue}l[h.name]=ode(S,h.type,i,(0,Z6.addPath)(s,h.name,r.name))}for(let h of Object.keys(e))if(!d[h]){let S=(0,mgn.suggestionList)(h,Object.keys(r.getFields()));i((0,Z6.pathToArray)(s),e,new i9.GraphQLError(`Field "${h}" is not defined by type "${r.name}".`+(0,ugn.didYouMean)(S)))}if(r.isOneOf){let h=Object.keys(l);h.length!==1&&i((0,Z6.pathToArray)(s),e,new i9.GraphQLError(`Exactly one key must be specified for OneOf type "${r.name}".`));let S=h[0],b=l[S];b===null&&i((0,Z6.pathToArray)(s).concat(S),b,new i9.GraphQLError(`Field "${S}" must be non-null.`))}return l}if((0,ide.isLeafType)(r)){let l;try{l=r.parseValue(e)}catch(d){d instanceof i9.GraphQLError?i((0,Z6.pathToArray)(s),e,d):i((0,Z6.pathToArray)(s),e,new i9.GraphQLError(`Expected type "${r.name}". `+d.message,{originalError:d}));return}return l===void 0&&i((0,Z6.pathToArray)(s),e,new i9.GraphQLError(`Expected type "${r.name}".`)),l}(0,pgn.invariant)(!1,"Unexpected input type: "+(0,DAe.inspect)(r))}});var sde=dr(Nrt=>{"use strict";Object.defineProperty(Nrt,"__esModule",{value:!0});Nrt.valueFromAST=ade;var ygn=gm(),vgn=kT(),Sgn=PB(),Dee=Md(),KV=jd();function ade(e,r,i){if(e){if(e.kind===Dee.Kind.VARIABLE){let s=e.name.value;if(i==null||i[s]===void 0)return;let l=i[s];return l===null&&(0,KV.isNonNullType)(r)?void 0:l}if((0,KV.isNonNullType)(r))return e.kind===Dee.Kind.NULL?void 0:ade(e,r.ofType,i);if(e.kind===Dee.Kind.NULL)return null;if((0,KV.isListType)(r)){let s=r.ofType;if(e.kind===Dee.Kind.LIST){let d=[];for(let h of e.values)if(TJt(h,i)){if((0,KV.isNonNullType)(s))return;d.push(null)}else{let S=ade(h,s,i);if(S===void 0)return;d.push(S)}return d}let l=ade(e,s,i);return l===void 0?void 0:[l]}if((0,KV.isInputObjectType)(r)){if(e.kind!==Dee.Kind.OBJECT)return;let s=Object.create(null),l=(0,Sgn.keyMap)(e.fields,d=>d.name.value);for(let d of Object.values(r.getFields())){let h=l[d.name];if(!h||TJt(h.value,i)){if(d.defaultValue!==void 0)s[d.name]=d.defaultValue;else if((0,KV.isNonNullType)(d.type))return;continue}let S=ade(h.value,d.type,i);if(S===void 0)return;s[d.name]=S}if(r.isOneOf){let d=Object.keys(s);if(d.length!==1||s[d[0]]===null)return}return s}if((0,KV.isLeafType)(r)){let s;try{s=r.parseLiteral(e,i)}catch{return}return s===void 0?void 0:s}(0,vgn.invariant)(!1,"Unexpected input type: "+(0,ygn.inspect)(r))}}function TJt(e,r){return e.kind===Dee.Kind.VARIABLE&&(r==null||r[e.name.value]===void 0)}});var Iee=dr(cde=>{"use strict";Object.defineProperty(cde,"__esModule",{value:!0});cde.getArgumentValues=DJt;cde.getDirectiveValues=Dgn;cde.getVariableValues=kgn;var Aee=gm(),bgn=PB(),xgn=wrt(),o9=Cu(),EJt=Md(),kJt=FD(),wee=jd(),Tgn=Prt(),Egn=I8(),CJt=sde();function kgn(e,r,i,s){let l=[],d=s?.maxErrors;try{let h=Cgn(e,r,i,S=>{if(d!=null&&l.length>=d)throw new o9.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");l.push(S)});if(l.length===0)return{coerced:h}}catch(h){l.push(h)}return{errors:l}}function Cgn(e,r,i,s){let l={};for(let d of r){let h=d.variable.name.value,S=(0,Egn.typeFromAST)(e,d.type);if(!(0,wee.isInputType)(S)){let A=(0,kJt.print)(d.type);s(new o9.GraphQLError(`Variable "$${h}" expected value of type "${A}" which cannot be used as an input type.`,{nodes:d.type}));continue}if(!AJt(i,h)){if(d.defaultValue)l[h]=(0,CJt.valueFromAST)(d.defaultValue,S);else if((0,wee.isNonNullType)(S)){let A=(0,Aee.inspect)(S);s(new o9.GraphQLError(`Variable "$${h}" of required type "${A}" was not provided.`,{nodes:d}))}continue}let b=i[h];if(b===null&&(0,wee.isNonNullType)(S)){let A=(0,Aee.inspect)(S);s(new o9.GraphQLError(`Variable "$${h}" of non-null type "${A}" must not be null.`,{nodes:d}));continue}l[h]=(0,Tgn.coerceInputValue)(b,S,(A,L,V)=>{let j=`Variable "$${h}" got invalid value `+(0,Aee.inspect)(L);A.length>0&&(j+=` at "${h}${(0,xgn.printPathArray)(A)}"`),s(new o9.GraphQLError(j+"; "+V.message,{nodes:d,originalError:V}))})}return l}function DJt(e,r,i){var s;let l={},d=(s=r.arguments)!==null&&s!==void 0?s:[],h=(0,bgn.keyMap)(d,S=>S.name.value);for(let S of e.args){let b=S.name,A=S.type,L=h[b];if(!L){if(S.defaultValue!==void 0)l[b]=S.defaultValue;else if((0,wee.isNonNullType)(A))throw new o9.GraphQLError(`Argument "${b}" of required type "${(0,Aee.inspect)(A)}" was not provided.`,{nodes:r});continue}let V=L.value,j=V.kind===EJt.Kind.NULL;if(V.kind===EJt.Kind.VARIABLE){let te=V.name.value;if(i==null||!AJt(i,te)){if(S.defaultValue!==void 0)l[b]=S.defaultValue;else if((0,wee.isNonNullType)(A))throw new o9.GraphQLError(`Argument "${b}" of required type "${(0,Aee.inspect)(A)}" was provided the variable "$${te}" which was not provided a runtime value.`,{nodes:V});continue}j=i[te]==null}if(j&&(0,wee.isNonNullType)(A))throw new o9.GraphQLError(`Argument "${b}" of non-null type "${(0,Aee.inspect)(A)}" must not be null.`,{nodes:V});let ie=(0,CJt.valueFromAST)(V,A,i);if(ie===void 0)throw new o9.GraphQLError(`Argument "${b}" has invalid value ${(0,kJt.print)(V)}.`,{nodes:V});l[b]=ie}return l}function Dgn(e,r,i){var s;let l=(s=r.directives)===null||s===void 0?void 0:s.find(d=>d.name.value===e.name);if(l)return DJt(e,l,i)}function AJt(e,r){return Object.prototype.hasOwnProperty.call(e,r)}});var IAe=dr(wAe=>{"use strict";Object.defineProperty(wAe,"__esModule",{value:!0});wAe.collectFields=Ign;wAe.collectSubfields=Pgn;var Ort=Md(),Agn=jd(),wJt=kk(),wgn=I8(),IJt=Iee();function Ign(e,r,i,s,l){let d=new Map;return AAe(e,r,i,s,l,d,new Set),d}function Pgn(e,r,i,s,l){let d=new Map,h=new Set;for(let S of l)S.selectionSet&&AAe(e,r,i,s,S.selectionSet,d,h);return d}function AAe(e,r,i,s,l,d,h){for(let S of l.selections)switch(S.kind){case Ort.Kind.FIELD:{if(!Frt(i,S))continue;let b=Ngn(S),A=d.get(b);A!==void 0?A.push(S):d.set(b,[S]);break}case Ort.Kind.INLINE_FRAGMENT:{if(!Frt(i,S)||!PJt(e,S,s))continue;AAe(e,r,i,s,S.selectionSet,d,h);break}case Ort.Kind.FRAGMENT_SPREAD:{let b=S.name.value;if(h.has(b)||!Frt(i,S))continue;h.add(b);let A=r[b];if(!A||!PJt(e,A,s))continue;AAe(e,r,i,s,A.selectionSet,d,h);break}}}function Frt(e,r){let i=(0,IJt.getDirectiveValues)(wJt.GraphQLSkipDirective,r,e);if(i?.if===!0)return!1;let s=(0,IJt.getDirectiveValues)(wJt.GraphQLIncludeDirective,r,e);return s?.if!==!1}function PJt(e,r,i){let s=r.typeCondition;if(!s)return!0;let l=(0,wgn.typeFromAST)(e,s);return l===i?!0:(0,Agn.isAbstractType)(l)?e.isSubType(l,i):!1}function Ngn(e){return e.alias?e.alias.value:e.name.value}});var Lrt=dr(Rrt=>{"use strict";Object.defineProperty(Rrt,"__esModule",{value:!0});Rrt.SingleFieldSubscriptionsRule=Rgn;var NJt=Cu(),Ogn=Md(),Fgn=IAe();function Rgn(e){return{OperationDefinition(r){if(r.operation==="subscription"){let i=e.getSchema(),s=i.getSubscriptionType();if(s){let l=r.name?r.name.value:null,d=Object.create(null),h=e.getDocument(),S=Object.create(null);for(let A of h.definitions)A.kind===Ogn.Kind.FRAGMENT_DEFINITION&&(S[A.name.value]=A);let b=(0,Fgn.collectFields)(i,S,d,s,r.selectionSet);if(b.size>1){let V=[...b.values()].slice(1).flat();e.reportError(new NJt.GraphQLError(l!=null?`Subscription "${l}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:V}))}for(let A of b.values())A[0].name.value.startsWith("__")&&e.reportError(new NJt.GraphQLError(l!=null?`Subscription "${l}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:A}))}}}}}});var PAe=dr(Mrt=>{"use strict";Object.defineProperty(Mrt,"__esModule",{value:!0});Mrt.groupBy=Lgn;function Lgn(e,r){let i=new Map;for(let s of e){let l=r(s),d=i.get(l);d===void 0?i.set(l,[s]):d.push(s)}return i}});var Brt=dr(jrt=>{"use strict";Object.defineProperty(jrt,"__esModule",{value:!0});jrt.UniqueArgumentDefinitionNamesRule=Bgn;var Mgn=PAe(),jgn=Cu();function Bgn(e){return{DirectiveDefinition(s){var l;let d=(l=s.arguments)!==null&&l!==void 0?l:[];return i(`@${s.name.value}`,d)},InterfaceTypeDefinition:r,InterfaceTypeExtension:r,ObjectTypeDefinition:r,ObjectTypeExtension:r};function r(s){var l;let d=s.name.value,h=(l=s.fields)!==null&&l!==void 0?l:[];for(let b of h){var S;let A=b.name.value,L=(S=b.arguments)!==null&&S!==void 0?S:[];i(`${d}.${A}`,L)}return!1}function i(s,l){let d=(0,Mgn.groupBy)(l,h=>h.name.value);for(let[h,S]of d)S.length>1&&e.reportError(new jgn.GraphQLError(`Argument "${s}(${h}:)" can only be defined once.`,{nodes:S.map(b=>b.name)}));return!1}}});var Urt=dr($rt=>{"use strict";Object.defineProperty($rt,"__esModule",{value:!0});$rt.UniqueArgumentNamesRule=zgn;var $gn=PAe(),Ugn=Cu();function zgn(e){return{Field:r,Directive:r};function r(i){var s;let l=(s=i.arguments)!==null&&s!==void 0?s:[],d=(0,$gn.groupBy)(l,h=>h.name.value);for(let[h,S]of d)S.length>1&&e.reportError(new Ugn.GraphQLError(`There can be only one argument named "${h}".`,{nodes:S.map(b=>b.name)}))}}});var qrt=dr(zrt=>{"use strict";Object.defineProperty(zrt,"__esModule",{value:!0});zrt.UniqueDirectiveNamesRule=qgn;var OJt=Cu();function qgn(e){let r=Object.create(null),i=e.getSchema();return{DirectiveDefinition(s){let l=s.name.value;if(i!=null&&i.getDirective(l)){e.reportError(new OJt.GraphQLError(`Directive "@${l}" already exists in the schema. It cannot be redefined.`,{nodes:s.name}));return}return r[l]?e.reportError(new OJt.GraphQLError(`There can be only one directive named "@${l}".`,{nodes:[r[l],s.name]})):r[l]=s.name,!1}}}});var Wrt=dr(Vrt=>{"use strict";Object.defineProperty(Vrt,"__esModule",{value:!0});Vrt.UniqueDirectivesPerLocationRule=Wgn;var Jgn=Cu(),Jrt=Md(),FJt=HV(),Vgn=kk();function Wgn(e){let r=Object.create(null),i=e.getSchema(),s=i?i.getDirectives():Vgn.specifiedDirectives;for(let S of s)r[S.name]=!S.isRepeatable;let l=e.getDocument().definitions;for(let S of l)S.kind===Jrt.Kind.DIRECTIVE_DEFINITION&&(r[S.name.value]=!S.repeatable);let d=Object.create(null),h=Object.create(null);return{enter(S){if(!("directives"in S)||!S.directives)return;let b;if(S.kind===Jrt.Kind.SCHEMA_DEFINITION||S.kind===Jrt.Kind.SCHEMA_EXTENSION)b=d;else if((0,FJt.isTypeDefinitionNode)(S)||(0,FJt.isTypeExtensionNode)(S)){let A=S.name.value;b=h[A],b===void 0&&(h[A]=b=Object.create(null))}else b=Object.create(null);for(let A of S.directives){let L=A.name.value;r[L]&&(b[L]?e.reportError(new Jgn.GraphQLError(`The directive "@${L}" can only be used once at this location.`,{nodes:[b[L],A]})):b[L]=A)}}}}});var Hrt=dr(Grt=>{"use strict";Object.defineProperty(Grt,"__esModule",{value:!0});Grt.UniqueEnumValueNamesRule=Hgn;var RJt=Cu(),Ggn=jd();function Hgn(e){let r=e.getSchema(),i=r?r.getTypeMap():Object.create(null),s=Object.create(null);return{EnumTypeDefinition:l,EnumTypeExtension:l};function l(d){var h;let S=d.name.value;s[S]||(s[S]=Object.create(null));let b=(h=d.values)!==null&&h!==void 0?h:[],A=s[S];for(let L of b){let V=L.name.value,j=i[S];(0,Ggn.isEnumType)(j)&&j.getValue(V)?e.reportError(new RJt.GraphQLError(`Enum value "${S}.${V}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:L.name})):A[V]?e.reportError(new RJt.GraphQLError(`Enum value "${S}.${V}" can only be defined once.`,{nodes:[A[V],L.name]})):A[V]=L.name}return!1}}});var Zrt=dr(Qrt=>{"use strict";Object.defineProperty(Qrt,"__esModule",{value:!0});Qrt.UniqueFieldDefinitionNamesRule=Kgn;var LJt=Cu(),Krt=jd();function Kgn(e){let r=e.getSchema(),i=r?r.getTypeMap():Object.create(null),s=Object.create(null);return{InputObjectTypeDefinition:l,InputObjectTypeExtension:l,InterfaceTypeDefinition:l,InterfaceTypeExtension:l,ObjectTypeDefinition:l,ObjectTypeExtension:l};function l(d){var h;let S=d.name.value;s[S]||(s[S]=Object.create(null));let b=(h=d.fields)!==null&&h!==void 0?h:[],A=s[S];for(let L of b){let V=L.name.value;Qgn(i[S],V)?e.reportError(new LJt.GraphQLError(`Field "${S}.${V}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:L.name})):A[V]?e.reportError(new LJt.GraphQLError(`Field "${S}.${V}" can only be defined once.`,{nodes:[A[V],L.name]})):A[V]=L.name}return!1}}function Qgn(e,r){return(0,Krt.isObjectType)(e)||(0,Krt.isInterfaceType)(e)||(0,Krt.isInputObjectType)(e)?e.getFields()[r]!=null:!1}});var Yrt=dr(Xrt=>{"use strict";Object.defineProperty(Xrt,"__esModule",{value:!0});Xrt.UniqueFragmentNamesRule=Xgn;var Zgn=Cu();function Xgn(e){let r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(i){let s=i.name.value;return r[s]?e.reportError(new Zgn.GraphQLError(`There can be only one fragment named "${s}".`,{nodes:[r[s],i.name]})):r[s]=i.name,!1}}}});var tnt=dr(ent=>{"use strict";Object.defineProperty(ent,"__esModule",{value:!0});ent.UniqueInputFieldNamesRule=tyn;var Ygn=kT(),eyn=Cu();function tyn(e){let r=[],i=Object.create(null);return{ObjectValue:{enter(){r.push(i),i=Object.create(null)},leave(){let s=r.pop();s||(0,Ygn.invariant)(!1),i=s}},ObjectField(s){let l=s.name.value;i[l]?e.reportError(new eyn.GraphQLError(`There can be only one input field named "${l}".`,{nodes:[i[l],s.name]})):i[l]=s.name}}}});var nnt=dr(rnt=>{"use strict";Object.defineProperty(rnt,"__esModule",{value:!0});rnt.UniqueOperationNamesRule=nyn;var ryn=Cu();function nyn(e){let r=Object.create(null);return{OperationDefinition(i){let s=i.name;return s&&(r[s.value]?e.reportError(new ryn.GraphQLError(`There can be only one operation named "${s.value}".`,{nodes:[r[s.value],s]})):r[s.value]=s),!1},FragmentDefinition:()=>!1}}});var ont=dr(int=>{"use strict";Object.defineProperty(int,"__esModule",{value:!0});int.UniqueOperationTypesRule=iyn;var MJt=Cu();function iyn(e){let r=e.getSchema(),i=Object.create(null),s=r?{query:r.getQueryType(),mutation:r.getMutationType(),subscription:r.getSubscriptionType()}:{};return{SchemaDefinition:l,SchemaExtension:l};function l(d){var h;let S=(h=d.operationTypes)!==null&&h!==void 0?h:[];for(let b of S){let A=b.operation,L=i[A];s[A]?e.reportError(new MJt.GraphQLError(`Type for ${A} already defined in the schema. It cannot be redefined.`,{nodes:b})):L?e.reportError(new MJt.GraphQLError(`There can be only one ${A} type in schema.`,{nodes:[L,b]})):i[A]=b}return!1}}});var snt=dr(ant=>{"use strict";Object.defineProperty(ant,"__esModule",{value:!0});ant.UniqueTypeNamesRule=oyn;var jJt=Cu();function oyn(e){let r=Object.create(null),i=e.getSchema();return{ScalarTypeDefinition:s,ObjectTypeDefinition:s,InterfaceTypeDefinition:s,UnionTypeDefinition:s,EnumTypeDefinition:s,InputObjectTypeDefinition:s};function s(l){let d=l.name.value;if(i!=null&&i.getType(d)){e.reportError(new jJt.GraphQLError(`Type "${d}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:l.name}));return}return r[d]?e.reportError(new jJt.GraphQLError(`There can be only one type named "${d}".`,{nodes:[r[d],l.name]})):r[d]=l.name,!1}}});var lnt=dr(cnt=>{"use strict";Object.defineProperty(cnt,"__esModule",{value:!0});cnt.UniqueVariableNamesRule=cyn;var ayn=PAe(),syn=Cu();function cyn(e){return{OperationDefinition(r){var i;let s=(i=r.variableDefinitions)!==null&&i!==void 0?i:[],l=(0,ayn.groupBy)(s,d=>d.variable.name.value);for(let[d,h]of l)h.length>1&&e.reportError(new syn.GraphQLError(`There can be only one variable named "$${d}".`,{nodes:h.map(S=>S.variable.name)}))}}}});var pnt=dr(unt=>{"use strict";Object.defineProperty(unt,"__esModule",{value:!0});unt.ValuesOfCorrectTypeRule=dyn;var lyn=IB(),lde=gm(),uyn=PB(),pyn=NB(),a9=Cu(),_yn=Md(),NAe=FD(),P8=jd();function dyn(e){let r={};return{OperationDefinition:{enter(){r={}}},VariableDefinition(i){r[i.variable.name.value]=i},ListValue(i){let s=(0,P8.getNullableType)(e.getParentInputType());if(!(0,P8.isListType)(s))return QV(e,i),!1},ObjectValue(i){let s=(0,P8.getNamedType)(e.getInputType());if(!(0,P8.isInputObjectType)(s))return QV(e,i),!1;let l=(0,uyn.keyMap)(i.fields,d=>d.name.value);for(let d of Object.values(s.getFields()))if(!l[d.name]&&(0,P8.isRequiredInputField)(d)){let S=(0,lde.inspect)(d.type);e.reportError(new a9.GraphQLError(`Field "${s.name}.${d.name}" of required type "${S}" was not provided.`,{nodes:i}))}s.isOneOf&&fyn(e,i,s,l)},ObjectField(i){let s=(0,P8.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,P8.isInputObjectType)(s)){let d=(0,pyn.suggestionList)(i.name.value,Object.keys(s.getFields()));e.reportError(new a9.GraphQLError(`Field "${i.name.value}" is not defined by type "${s.name}".`+(0,lyn.didYouMean)(d),{nodes:i}))}},NullValue(i){let s=e.getInputType();(0,P8.isNonNullType)(s)&&e.reportError(new a9.GraphQLError(`Expected value of type "${(0,lde.inspect)(s)}", found ${(0,NAe.print)(i)}.`,{nodes:i}))},EnumValue:i=>QV(e,i),IntValue:i=>QV(e,i),FloatValue:i=>QV(e,i),StringValue:i=>QV(e,i),BooleanValue:i=>QV(e,i)}}function QV(e,r){let i=e.getInputType();if(!i)return;let s=(0,P8.getNamedType)(i);if(!(0,P8.isLeafType)(s)){let l=(0,lde.inspect)(i);e.reportError(new a9.GraphQLError(`Expected value of type "${l}", found ${(0,NAe.print)(r)}.`,{nodes:r}));return}try{if(s.parseLiteral(r,void 0)===void 0){let d=(0,lde.inspect)(i);e.reportError(new a9.GraphQLError(`Expected value of type "${d}", found ${(0,NAe.print)(r)}.`,{nodes:r}))}}catch(l){let d=(0,lde.inspect)(i);l instanceof a9.GraphQLError?e.reportError(l):e.reportError(new a9.GraphQLError(`Expected value of type "${d}", found ${(0,NAe.print)(r)}; `+l.message,{nodes:r,originalError:l}))}}function fyn(e,r,i,s){var l;let d=Object.keys(s);if(d.length!==1){e.reportError(new a9.GraphQLError(`OneOf Input Object "${i.name}" must specify exactly one key.`,{nodes:[r]}));return}let S=(l=s[d[0]])===null||l===void 0?void 0:l.value;(!S||S.kind===_yn.Kind.NULL)&&e.reportError(new a9.GraphQLError(`Field "${i.name}.${d[0]}" must be non-null.`,{nodes:[r]}))}});var dnt=dr(_nt=>{"use strict";Object.defineProperty(_nt,"__esModule",{value:!0});_nt.VariablesAreInputTypesRule=vyn;var myn=Cu(),hyn=FD(),gyn=jd(),yyn=I8();function vyn(e){return{VariableDefinition(r){let i=(0,yyn.typeFromAST)(e.getSchema(),r.type);if(i!==void 0&&!(0,gyn.isInputType)(i)){let s=r.variable.name.value,l=(0,hyn.print)(r.type);e.reportError(new myn.GraphQLError(`Variable "$${s}" cannot be non-input type "${l}".`,{nodes:r.type}))}}}}});var mnt=dr(fnt=>{"use strict";Object.defineProperty(fnt,"__esModule",{value:!0});fnt.VariablesInAllowedPositionRule=xyn;var BJt=gm(),$Jt=Cu(),Syn=Md(),OAe=jd(),UJt=J_e(),byn=I8();function xyn(e){let r=Object.create(null);return{OperationDefinition:{enter(){r=Object.create(null)},leave(i){let s=e.getRecursiveVariableUsages(i);for(let{node:l,type:d,defaultValue:h,parentType:S}of s){let b=l.name.value,A=r[b];if(A&&d){let L=e.getSchema(),V=(0,byn.typeFromAST)(L,A.type);if(V&&!Tyn(L,V,A.defaultValue,d,h)){let j=(0,BJt.inspect)(V),ie=(0,BJt.inspect)(d);e.reportError(new $Jt.GraphQLError(`Variable "$${b}" of type "${j}" used in position expecting type "${ie}".`,{nodes:[A,l]}))}(0,OAe.isInputObjectType)(S)&&S.isOneOf&&(0,OAe.isNullableType)(V)&&e.reportError(new $Jt.GraphQLError(`Variable "$${b}" is of type "${V}" but must be non-nullable to be used for OneOf Input Object "${S}".`,{nodes:[A,l]}))}}}},VariableDefinition(i){r[i.variable.name.value]=i}}}function Tyn(e,r,i,s,l){if((0,OAe.isNonNullType)(s)&&!(0,OAe.isNonNullType)(r)){if(!(i!=null&&i.kind!==Syn.Kind.NULL)&&!(l!==void 0))return!1;let S=s.ofType;return(0,UJt.isTypeSubTypeOf)(e,r,S)}return(0,UJt.isTypeSubTypeOf)(e,r,s)}});var hnt=dr(LB=>{"use strict";Object.defineProperty(LB,"__esModule",{value:!0});LB.specifiedSDLRules=LB.specifiedRules=LB.recommendedRules=void 0;var Eyn=Ntt(),kyn=Ftt(),Cyn=Ltt(),zJt=Mtt(),qJt=Utt(),Dyn=qtt(),JJt=Wtt(),Ayn=Htt(),wyn=Qtt(),Iyn=Xtt(),Pyn=ert(),Nyn=rrt(),Oyn=irt(),Fyn=art(),Ryn=hrt(),Lyn=vrt(),Myn=brt(),VJt=Trt(),jyn=Drt(),Byn=Lrt(),$yn=Brt(),WJt=Urt(),Uyn=qrt(),GJt=Wrt(),zyn=Hrt(),qyn=Zrt(),Jyn=Yrt(),HJt=tnt(),Vyn=nnt(),Wyn=ont(),Gyn=snt(),Hyn=lnt(),Kyn=pnt(),Qyn=dnt(),Zyn=mnt(),KJt=Object.freeze([Iyn.MaxIntrospectionDepthRule]);LB.recommendedRules=KJt;var Xyn=Object.freeze([Eyn.ExecutableDefinitionsRule,Vyn.UniqueOperationNamesRule,Ayn.LoneAnonymousOperationRule,Byn.SingleFieldSubscriptionsRule,JJt.KnownTypeNamesRule,Cyn.FragmentsOnCompositeTypesRule,Qyn.VariablesAreInputTypesRule,jyn.ScalarLeafsRule,kyn.FieldsOnCorrectTypeRule,Jyn.UniqueFragmentNamesRule,Dyn.KnownFragmentNamesRule,Oyn.NoUnusedFragmentsRule,Lyn.PossibleFragmentSpreadsRule,Pyn.NoFragmentCyclesRule,Hyn.UniqueVariableNamesRule,Nyn.NoUndefinedVariablesRule,Fyn.NoUnusedVariablesRule,qJt.KnownDirectivesRule,GJt.UniqueDirectivesPerLocationRule,zJt.KnownArgumentNamesRule,WJt.UniqueArgumentNamesRule,Kyn.ValuesOfCorrectTypeRule,VJt.ProvidedRequiredArgumentsRule,Zyn.VariablesInAllowedPositionRule,Ryn.OverlappingFieldsCanBeMergedRule,HJt.UniqueInputFieldNamesRule,...KJt]);LB.specifiedRules=Xyn;var Yyn=Object.freeze([wyn.LoneSchemaDefinitionRule,Wyn.UniqueOperationTypesRule,Gyn.UniqueTypeNamesRule,zyn.UniqueEnumValueNamesRule,qyn.UniqueFieldDefinitionNamesRule,$yn.UniqueArgumentDefinitionNamesRule,Uyn.UniqueDirectiveNamesRule,JJt.KnownTypeNamesRule,qJt.KnownDirectivesRule,GJt.UniqueDirectivesPerLocationRule,Myn.PossibleTypeExtensionsRule,zJt.KnownArgumentNamesOnDirectivesRule,WJt.UniqueArgumentNamesRule,HJt.UniqueInputFieldNamesRule,VJt.ProvidedRequiredArgumentsOnDirectivesRule]);LB.specifiedSDLRules=Yyn});var vnt=dr(MB=>{"use strict";Object.defineProperty(MB,"__esModule",{value:!0});MB.ValidationContext=MB.SDLValidationContext=MB.ASTValidationContext=void 0;var QJt=Md(),e0n=$V(),ZJt=yAe(),ude=class{constructor(r,i){this._ast=r,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=i}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(r){this._onError(r)}getDocument(){return this._ast}getFragment(r){let i;if(this._fragments)i=this._fragments;else{i=Object.create(null);for(let s of this.getDocument().definitions)s.kind===QJt.Kind.FRAGMENT_DEFINITION&&(i[s.name.value]=s);this._fragments=i}return i[r]}getFragmentSpreads(r){let i=this._fragmentSpreads.get(r);if(!i){i=[];let s=[r],l;for(;l=s.pop();)for(let d of l.selections)d.kind===QJt.Kind.FRAGMENT_SPREAD?i.push(d):d.selectionSet&&s.push(d.selectionSet);this._fragmentSpreads.set(r,i)}return i}getRecursivelyReferencedFragments(r){let i=this._recursivelyReferencedFragments.get(r);if(!i){i=[];let s=Object.create(null),l=[r.selectionSet],d;for(;d=l.pop();)for(let h of this.getFragmentSpreads(d)){let S=h.name.value;if(s[S]!==!0){s[S]=!0;let b=this.getFragment(S);b&&(i.push(b),l.push(b.selectionSet))}}this._recursivelyReferencedFragments.set(r,i)}return i}};MB.ASTValidationContext=ude;var gnt=class extends ude{constructor(r,i,s){super(r,s),this._schema=i}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};MB.SDLValidationContext=gnt;var ynt=class extends ude{constructor(r,i,s,l){super(i,l),this._schema=r,this._typeInfo=s,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(r){let i=this._variableUsages.get(r);if(!i){let s=[],l=new ZJt.TypeInfo(this._schema);(0,e0n.visit)(r,(0,ZJt.visitWithTypeInfo)(l,{VariableDefinition:()=>!1,Variable(d){s.push({node:d,type:l.getInputType(),defaultValue:l.getDefaultValue(),parentType:l.getParentInputType()})}})),i=s,this._variableUsages.set(r,i)}return i}getRecursiveVariableUsages(r){let i=this._recursiveVariableUsages.get(r);if(!i){i=this.getVariableUsages(r);for(let s of this.getRecursivelyReferencedFragments(r))i=i.concat(this.getVariableUsages(s));this._recursiveVariableUsages.set(r,i)}return i}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};MB.ValidationContext=ynt});var pde=dr(Pee=>{"use strict";Object.defineProperty(Pee,"__esModule",{value:!0});Pee.assertValidSDL=c0n;Pee.assertValidSDLExtension=l0n;Pee.validate=s0n;Pee.validateSDL=Snt;var t0n=J2(),r0n=VDe(),n0n=Cu(),i0n=aI(),FAe=$V(),o0n=ede(),XJt=yAe(),YJt=hnt(),eVt=vnt(),a0n=(0,r0n.mapValue)(i0n.QueryDocumentKeys,e=>e.filter(r=>r!=="description"));function s0n(e,r,i=YJt.specifiedRules,s,l=new XJt.TypeInfo(e)){var d;let h=(d=s?.maxErrors)!==null&&d!==void 0?d:100;r||(0,t0n.devAssert)(!1,"Must provide document."),(0,o0n.assertValidSchema)(e);let S=Object.freeze({}),b=[],A=new eVt.ValidationContext(e,r,l,V=>{if(b.length>=h)throw b.push(new n0n.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),S;b.push(V)}),L=(0,FAe.visitInParallel)(i.map(V=>V(A)));try{(0,FAe.visit)(r,(0,XJt.visitWithTypeInfo)(l,L),a0n)}catch(V){if(V!==S)throw V}return b}function Snt(e,r,i=YJt.specifiedSDLRules){let s=[],l=new eVt.SDLValidationContext(e,r,h=>{s.push(h)}),d=i.map(h=>h(l));return(0,FAe.visit)(e,(0,FAe.visitInParallel)(d)),s}function c0n(e){let r=Snt(e);if(r.length!==0)throw new Error(r.map(i=>i.message).join(` + +`))}function l0n(e,r){let i=Snt(e,r);if(i.length!==0)throw new Error(i.map(s=>s.message).join(` + +`))}});var tVt=dr(bnt=>{"use strict";Object.defineProperty(bnt,"__esModule",{value:!0});bnt.memoize3=u0n;function u0n(e){let r;return function(s,l,d){r===void 0&&(r=new WeakMap);let h=r.get(s);h===void 0&&(h=new WeakMap,r.set(s,h));let S=h.get(l);S===void 0&&(S=new WeakMap,h.set(l,S));let b=S.get(d);return b===void 0&&(b=e(s,l,d),S.set(d,b)),b}}});var rVt=dr(xnt=>{"use strict";Object.defineProperty(xnt,"__esModule",{value:!0});xnt.promiseForObject=p0n;function p0n(e){return Promise.all(Object.values(e)).then(r=>{let i=Object.create(null);for(let[s,l]of Object.keys(e).entries())i[l]=r[s];return i})}});var nVt=dr(Tnt=>{"use strict";Object.defineProperty(Tnt,"__esModule",{value:!0});Tnt.promiseReduce=d0n;var _0n=FDe();function d0n(e,r,i){let s=i;for(let l of e)s=(0,_0n.isPromise)(s)?s.then(d=>r(d,l)):r(s,l);return s}});var iVt=dr(knt=>{"use strict";Object.defineProperty(knt,"__esModule",{value:!0});knt.toError=m0n;var f0n=gm();function m0n(e){return e instanceof Error?e:new Ent(e)}var Ent=class extends Error{constructor(r){super("Unexpected error value: "+(0,f0n.inspect)(r)),this.name="NonErrorThrown",this.thrownValue=r}}});var RAe=dr(Cnt=>{"use strict";Object.defineProperty(Cnt,"__esModule",{value:!0});Cnt.locatedError=y0n;var h0n=iVt(),g0n=Cu();function y0n(e,r,i){var s;let l=(0,h0n.toError)(e);return v0n(l)?l:new g0n.GraphQLError(l.message,{nodes:(s=l.nodes)!==null&&s!==void 0?s:r,source:l.source,positions:l.positions,path:i,originalError:l})}function v0n(e){return Array.isArray(e.path)}});var dde=dr(_I=>{"use strict";Object.defineProperty(_I,"__esModule",{value:!0});_I.assertValidExecutionArguments=_Vt;_I.buildExecutionContext=dVt;_I.buildResolveInfo=mVt;_I.defaultTypeResolver=_I.defaultFieldResolver=void 0;_I.execute=pVt;_I.executeSync=C0n;_I.getFieldDef=gVt;var Ant=J2(),ZV=gm(),S0n=kT(),b0n=fAe(),Nnt=C8(),X6=FDe(),x0n=tVt(),XV=nde(),oVt=rVt(),T0n=nVt(),pI=Cu(),MAe=RAe(),Dnt=aI(),aVt=Md(),jB=jd(),Nee=uI(),E0n=ede(),lVt=IAe(),uVt=Iee(),k0n=(0,x0n.memoize3)((e,r,i)=>(0,lVt.collectSubfields)(e.schema,e.fragments,e.variableValues,r,i)),wnt=class{constructor(){this._errorPositions=new Set,this._errors=[]}get errors(){return this._errors}add(r,i){this._hasNulledPosition(i)||(this._errorPositions.add(i),this._errors.push(r))}_hasNulledPosition(r){let i=r;for(;i!==void 0;){if(this._errorPositions.has(i))return!0;i=i.prev}return this._errorPositions.has(void 0)}};function pVt(e){arguments.length<2||(0,Ant.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:r,document:i,variableValues:s,rootValue:l}=e;_Vt(r,i,s);let d=dVt(e);if(!("schema"in d))return{errors:d};try{let{operation:h}=d,S=D0n(d,h,l);return(0,X6.isPromise)(S)?S.then(b=>LAe(b,d.collectedErrors.errors),b=>(d.collectedErrors.add(b,void 0),LAe(null,d.collectedErrors.errors))):LAe(S,d.collectedErrors.errors)}catch(h){return d.collectedErrors.add(h,void 0),LAe(null,d.collectedErrors.errors)}}function C0n(e){let r=pVt(e);if((0,X6.isPromise)(r))throw new Error("GraphQL execution failed to complete synchronously.");return r}function LAe(e,r){return r.length===0?{data:e}:{errors:r,data:e}}function _Vt(e,r,i){r||(0,Ant.devAssert)(!1,"Must provide document."),(0,E0n.assertValidSchema)(e),i==null||(0,Nnt.isObjectLike)(i)||(0,Ant.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function dVt(e){var r,i,s;let{schema:l,document:d,rootValue:h,contextValue:S,variableValues:b,operationName:A,fieldResolver:L,typeResolver:V,subscribeFieldResolver:j,options:ie}=e,te,X=Object.create(null);for(let pt of d.definitions)switch(pt.kind){case aVt.Kind.OPERATION_DEFINITION:if(A==null){if(te!==void 0)return[new pI.GraphQLError("Must provide operation name if query contains multiple operations.")];te=pt}else((r=pt.name)===null||r===void 0?void 0:r.value)===A&&(te=pt);break;case aVt.Kind.FRAGMENT_DEFINITION:X[pt.name.value]=pt;break;default:}if(!te)return A!=null?[new pI.GraphQLError(`Unknown operation named "${A}".`)]:[new pI.GraphQLError("Must provide an operation.")];let Re=(i=te.variableDefinitions)!==null&&i!==void 0?i:[],Je=(0,uVt.getVariableValues)(l,Re,b??{},{maxErrors:(s=ie?.maxCoercionErrors)!==null&&s!==void 0?s:50});return Je.errors?Je.errors:{schema:l,fragments:X,rootValue:h,contextValue:S,operation:te,variableValues:Je.coerced,fieldResolver:L??Pnt,typeResolver:V??hVt,subscribeFieldResolver:j??Pnt,collectedErrors:new wnt}}function D0n(e,r,i){let s=e.schema.getRootType(r.operation);if(s==null)throw new pI.GraphQLError(`Schema is not configured to execute ${r.operation} operation.`,{nodes:r});let l=(0,lVt.collectFields)(e.schema,e.fragments,e.variableValues,s,r.selectionSet),d=void 0;switch(r.operation){case Dnt.OperationTypeNode.QUERY:return jAe(e,s,i,d,l);case Dnt.OperationTypeNode.MUTATION:return A0n(e,s,i,d,l);case Dnt.OperationTypeNode.SUBSCRIPTION:return jAe(e,s,i,d,l)}}function A0n(e,r,i,s,l){return(0,T0n.promiseReduce)(l.entries(),(d,[h,S])=>{let b=(0,XV.addPath)(s,h,r.name),A=fVt(e,r,i,S,b);return A===void 0?d:(0,X6.isPromise)(A)?A.then(L=>(d[h]=L,d)):(d[h]=A,d)},Object.create(null))}function jAe(e,r,i,s,l){let d=Object.create(null),h=!1;try{for(let[S,b]of l.entries()){let A=(0,XV.addPath)(s,S,r.name),L=fVt(e,r,i,b,A);L!==void 0&&(d[S]=L,(0,X6.isPromise)(L)&&(h=!0))}}catch(S){if(h)return(0,oVt.promiseForObject)(d).finally(()=>{throw S});throw S}return h?(0,oVt.promiseForObject)(d):d}function fVt(e,r,i,s,l){var d;let h=gVt(e.schema,r,s[0]);if(!h)return;let S=h.type,b=(d=h.resolve)!==null&&d!==void 0?d:e.fieldResolver,A=mVt(e,h,s,r,l);try{let L=(0,uVt.getArgumentValues)(h,s[0],e.variableValues),V=e.contextValue,j=b(i,L,V,A),ie;return(0,X6.isPromise)(j)?ie=j.then(te=>_de(e,S,s,A,l,te)):ie=_de(e,S,s,A,l,j),(0,X6.isPromise)(ie)?ie.then(void 0,te=>{let X=(0,MAe.locatedError)(te,s,(0,XV.pathToArray)(l));return BAe(X,S,l,e)}):ie}catch(L){let V=(0,MAe.locatedError)(L,s,(0,XV.pathToArray)(l));return BAe(V,S,l,e)}}function mVt(e,r,i,s,l){return{fieldName:r.name,fieldNodes:i,returnType:r.type,parentType:s,path:l,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function BAe(e,r,i,s){if((0,jB.isNonNullType)(r))throw e;return s.collectedErrors.add(e,i),null}function _de(e,r,i,s,l,d){if(d instanceof Error)throw d;if((0,jB.isNonNullType)(r)){let h=_de(e,r.ofType,i,s,l,d);if(h===null)throw new Error(`Cannot return null for non-nullable field ${s.parentType.name}.${s.fieldName}.`);return h}if(d==null)return null;if((0,jB.isListType)(r))return w0n(e,r,i,s,l,d);if((0,jB.isLeafType)(r))return I0n(r,d);if((0,jB.isAbstractType)(r))return P0n(e,r,i,s,l,d);if((0,jB.isObjectType)(r))return Int(e,r,i,s,l,d);(0,S0n.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,ZV.inspect)(r))}function w0n(e,r,i,s,l,d){if(!(0,b0n.isIterableObject)(d))throw new pI.GraphQLError(`Expected Iterable, but did not find one for field "${s.parentType.name}.${s.fieldName}".`);let h=r.ofType,S=!1,b=Array.from(d,(A,L)=>{let V=(0,XV.addPath)(l,L,void 0);try{let j;return(0,X6.isPromise)(A)?j=A.then(ie=>_de(e,h,i,s,V,ie)):j=_de(e,h,i,s,V,A),(0,X6.isPromise)(j)?(S=!0,j.then(void 0,ie=>{let te=(0,MAe.locatedError)(ie,i,(0,XV.pathToArray)(V));return BAe(te,h,V,e)})):j}catch(j){let ie=(0,MAe.locatedError)(j,i,(0,XV.pathToArray)(V));return BAe(ie,h,V,e)}});return S?Promise.all(b):b}function I0n(e,r){let i=e.serialize(r);if(i==null)throw new Error(`Expected \`${(0,ZV.inspect)(e)}.serialize(${(0,ZV.inspect)(r)})\` to return non-nullable value, returned: ${(0,ZV.inspect)(i)}`);return i}function P0n(e,r,i,s,l,d){var h;let S=(h=r.resolveType)!==null&&h!==void 0?h:e.typeResolver,b=e.contextValue,A=S(d,b,s,r);return(0,X6.isPromise)(A)?A.then(L=>Int(e,sVt(L,e,r,i,s,d),i,s,l,d)):Int(e,sVt(A,e,r,i,s,d),i,s,l,d)}function sVt(e,r,i,s,l,d){if(e==null)throw new pI.GraphQLError(`Abstract type "${i.name}" must resolve to an Object type at runtime for field "${l.parentType.name}.${l.fieldName}". Either the "${i.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,s);if((0,jB.isObjectType)(e))throw new pI.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new pI.GraphQLError(`Abstract type "${i.name}" must resolve to an Object type at runtime for field "${l.parentType.name}.${l.fieldName}" with value ${(0,ZV.inspect)(d)}, received "${(0,ZV.inspect)(e)}".`);let h=r.schema.getType(e);if(h==null)throw new pI.GraphQLError(`Abstract type "${i.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:s});if(!(0,jB.isObjectType)(h))throw new pI.GraphQLError(`Abstract type "${i.name}" was resolved to a non-object type "${e}".`,{nodes:s});if(!r.schema.isSubType(i,h))throw new pI.GraphQLError(`Runtime Object type "${h.name}" is not a possible type for "${i.name}".`,{nodes:s});return h}function Int(e,r,i,s,l,d){let h=k0n(e,r,i);if(r.isTypeOf){let S=r.isTypeOf(d,e.contextValue,s);if((0,X6.isPromise)(S))return S.then(b=>{if(!b)throw cVt(r,d,i);return jAe(e,r,d,l,h)});if(!S)throw cVt(r,d,i)}return jAe(e,r,d,l,h)}function cVt(e,r,i){return new pI.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,ZV.inspect)(r)}.`,{nodes:i})}var hVt=function(e,r,i,s){if((0,Nnt.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let l=i.schema.getPossibleTypes(s),d=[];for(let h=0;h{}),S.name}}if(d.length)return Promise.all(d).then(h=>{for(let S=0;S{"use strict";Object.defineProperty($Ae,"__esModule",{value:!0});$Ae.graphql=j0n;$Ae.graphqlSync=B0n;var N0n=J2(),O0n=FDe(),F0n=BV(),R0n=ede(),L0n=pde(),M0n=dde();function j0n(e){return new Promise(r=>r(yVt(e)))}function B0n(e){let r=yVt(e);if((0,O0n.isPromise)(r))throw new Error("GraphQL execution failed to complete synchronously.");return r}function yVt(e){arguments.length<2||(0,N0n.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:r,source:i,rootValue:s,contextValue:l,variableValues:d,operationName:h,fieldResolver:S,typeResolver:b}=e,A=(0,R0n.validateSchema)(r);if(A.length>0)return{errors:A};let L;try{L=(0,F0n.parse)(i)}catch(j){return{errors:[j]}}let V=(0,L0n.validate)(r,L);return V.length>0?{errors:V}:(0,M0n.execute)({schema:r,document:L,rootValue:s,contextValue:l,variableValues:d,operationName:h,fieldResolver:S,typeResolver:b})}});var xVt=dr(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});Object.defineProperty(ms,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Y6.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(ms,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return s9.GRAPHQL_MAX_INT}});Object.defineProperty(ms,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return s9.GRAPHQL_MIN_INT}});Object.defineProperty(ms,"GraphQLBoolean",{enumerable:!0,get:function(){return s9.GraphQLBoolean}});Object.defineProperty(ms,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Y6.GraphQLDeprecatedDirective}});Object.defineProperty(ms,"GraphQLDirective",{enumerable:!0,get:function(){return Y6.GraphQLDirective}});Object.defineProperty(ms,"GraphQLEnumType",{enumerable:!0,get:function(){return pp.GraphQLEnumType}});Object.defineProperty(ms,"GraphQLFloat",{enumerable:!0,get:function(){return s9.GraphQLFloat}});Object.defineProperty(ms,"GraphQLID",{enumerable:!0,get:function(){return s9.GraphQLID}});Object.defineProperty(ms,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Y6.GraphQLIncludeDirective}});Object.defineProperty(ms,"GraphQLInputObjectType",{enumerable:!0,get:function(){return pp.GraphQLInputObjectType}});Object.defineProperty(ms,"GraphQLInt",{enumerable:!0,get:function(){return s9.GraphQLInt}});Object.defineProperty(ms,"GraphQLInterfaceType",{enumerable:!0,get:function(){return pp.GraphQLInterfaceType}});Object.defineProperty(ms,"GraphQLList",{enumerable:!0,get:function(){return pp.GraphQLList}});Object.defineProperty(ms,"GraphQLNonNull",{enumerable:!0,get:function(){return pp.GraphQLNonNull}});Object.defineProperty(ms,"GraphQLObjectType",{enumerable:!0,get:function(){return pp.GraphQLObjectType}});Object.defineProperty(ms,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Y6.GraphQLOneOfDirective}});Object.defineProperty(ms,"GraphQLScalarType",{enumerable:!0,get:function(){return pp.GraphQLScalarType}});Object.defineProperty(ms,"GraphQLSchema",{enumerable:!0,get:function(){return Ont.GraphQLSchema}});Object.defineProperty(ms,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Y6.GraphQLSkipDirective}});Object.defineProperty(ms,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Y6.GraphQLSpecifiedByDirective}});Object.defineProperty(ms,"GraphQLString",{enumerable:!0,get:function(){return s9.GraphQLString}});Object.defineProperty(ms,"GraphQLUnionType",{enumerable:!0,get:function(){return pp.GraphQLUnionType}});Object.defineProperty(ms,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Dk.SchemaMetaFieldDef}});Object.defineProperty(ms,"TypeKind",{enumerable:!0,get:function(){return Dk.TypeKind}});Object.defineProperty(ms,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Dk.TypeMetaFieldDef}});Object.defineProperty(ms,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Dk.TypeNameMetaFieldDef}});Object.defineProperty(ms,"__Directive",{enumerable:!0,get:function(){return Dk.__Directive}});Object.defineProperty(ms,"__DirectiveLocation",{enumerable:!0,get:function(){return Dk.__DirectiveLocation}});Object.defineProperty(ms,"__EnumValue",{enumerable:!0,get:function(){return Dk.__EnumValue}});Object.defineProperty(ms,"__Field",{enumerable:!0,get:function(){return Dk.__Field}});Object.defineProperty(ms,"__InputValue",{enumerable:!0,get:function(){return Dk.__InputValue}});Object.defineProperty(ms,"__Schema",{enumerable:!0,get:function(){return Dk.__Schema}});Object.defineProperty(ms,"__Type",{enumerable:!0,get:function(){return Dk.__Type}});Object.defineProperty(ms,"__TypeKind",{enumerable:!0,get:function(){return Dk.__TypeKind}});Object.defineProperty(ms,"assertAbstractType",{enumerable:!0,get:function(){return pp.assertAbstractType}});Object.defineProperty(ms,"assertCompositeType",{enumerable:!0,get:function(){return pp.assertCompositeType}});Object.defineProperty(ms,"assertDirective",{enumerable:!0,get:function(){return Y6.assertDirective}});Object.defineProperty(ms,"assertEnumType",{enumerable:!0,get:function(){return pp.assertEnumType}});Object.defineProperty(ms,"assertEnumValueName",{enumerable:!0,get:function(){return bVt.assertEnumValueName}});Object.defineProperty(ms,"assertInputObjectType",{enumerable:!0,get:function(){return pp.assertInputObjectType}});Object.defineProperty(ms,"assertInputType",{enumerable:!0,get:function(){return pp.assertInputType}});Object.defineProperty(ms,"assertInterfaceType",{enumerable:!0,get:function(){return pp.assertInterfaceType}});Object.defineProperty(ms,"assertLeafType",{enumerable:!0,get:function(){return pp.assertLeafType}});Object.defineProperty(ms,"assertListType",{enumerable:!0,get:function(){return pp.assertListType}});Object.defineProperty(ms,"assertName",{enumerable:!0,get:function(){return bVt.assertName}});Object.defineProperty(ms,"assertNamedType",{enumerable:!0,get:function(){return pp.assertNamedType}});Object.defineProperty(ms,"assertNonNullType",{enumerable:!0,get:function(){return pp.assertNonNullType}});Object.defineProperty(ms,"assertNullableType",{enumerable:!0,get:function(){return pp.assertNullableType}});Object.defineProperty(ms,"assertObjectType",{enumerable:!0,get:function(){return pp.assertObjectType}});Object.defineProperty(ms,"assertOutputType",{enumerable:!0,get:function(){return pp.assertOutputType}});Object.defineProperty(ms,"assertScalarType",{enumerable:!0,get:function(){return pp.assertScalarType}});Object.defineProperty(ms,"assertSchema",{enumerable:!0,get:function(){return Ont.assertSchema}});Object.defineProperty(ms,"assertType",{enumerable:!0,get:function(){return pp.assertType}});Object.defineProperty(ms,"assertUnionType",{enumerable:!0,get:function(){return pp.assertUnionType}});Object.defineProperty(ms,"assertValidSchema",{enumerable:!0,get:function(){return SVt.assertValidSchema}});Object.defineProperty(ms,"assertWrappingType",{enumerable:!0,get:function(){return pp.assertWrappingType}});Object.defineProperty(ms,"getNamedType",{enumerable:!0,get:function(){return pp.getNamedType}});Object.defineProperty(ms,"getNullableType",{enumerable:!0,get:function(){return pp.getNullableType}});Object.defineProperty(ms,"introspectionTypes",{enumerable:!0,get:function(){return Dk.introspectionTypes}});Object.defineProperty(ms,"isAbstractType",{enumerable:!0,get:function(){return pp.isAbstractType}});Object.defineProperty(ms,"isCompositeType",{enumerable:!0,get:function(){return pp.isCompositeType}});Object.defineProperty(ms,"isDirective",{enumerable:!0,get:function(){return Y6.isDirective}});Object.defineProperty(ms,"isEnumType",{enumerable:!0,get:function(){return pp.isEnumType}});Object.defineProperty(ms,"isInputObjectType",{enumerable:!0,get:function(){return pp.isInputObjectType}});Object.defineProperty(ms,"isInputType",{enumerable:!0,get:function(){return pp.isInputType}});Object.defineProperty(ms,"isInterfaceType",{enumerable:!0,get:function(){return pp.isInterfaceType}});Object.defineProperty(ms,"isIntrospectionType",{enumerable:!0,get:function(){return Dk.isIntrospectionType}});Object.defineProperty(ms,"isLeafType",{enumerable:!0,get:function(){return pp.isLeafType}});Object.defineProperty(ms,"isListType",{enumerable:!0,get:function(){return pp.isListType}});Object.defineProperty(ms,"isNamedType",{enumerable:!0,get:function(){return pp.isNamedType}});Object.defineProperty(ms,"isNonNullType",{enumerable:!0,get:function(){return pp.isNonNullType}});Object.defineProperty(ms,"isNullableType",{enumerable:!0,get:function(){return pp.isNullableType}});Object.defineProperty(ms,"isObjectType",{enumerable:!0,get:function(){return pp.isObjectType}});Object.defineProperty(ms,"isOutputType",{enumerable:!0,get:function(){return pp.isOutputType}});Object.defineProperty(ms,"isRequiredArgument",{enumerable:!0,get:function(){return pp.isRequiredArgument}});Object.defineProperty(ms,"isRequiredInputField",{enumerable:!0,get:function(){return pp.isRequiredInputField}});Object.defineProperty(ms,"isScalarType",{enumerable:!0,get:function(){return pp.isScalarType}});Object.defineProperty(ms,"isSchema",{enumerable:!0,get:function(){return Ont.isSchema}});Object.defineProperty(ms,"isSpecifiedDirective",{enumerable:!0,get:function(){return Y6.isSpecifiedDirective}});Object.defineProperty(ms,"isSpecifiedScalarType",{enumerable:!0,get:function(){return s9.isSpecifiedScalarType}});Object.defineProperty(ms,"isType",{enumerable:!0,get:function(){return pp.isType}});Object.defineProperty(ms,"isUnionType",{enumerable:!0,get:function(){return pp.isUnionType}});Object.defineProperty(ms,"isWrappingType",{enumerable:!0,get:function(){return pp.isWrappingType}});Object.defineProperty(ms,"resolveObjMapThunk",{enumerable:!0,get:function(){return pp.resolveObjMapThunk}});Object.defineProperty(ms,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return pp.resolveReadonlyArrayThunk}});Object.defineProperty(ms,"specifiedDirectives",{enumerable:!0,get:function(){return Y6.specifiedDirectives}});Object.defineProperty(ms,"specifiedScalarTypes",{enumerable:!0,get:function(){return s9.specifiedScalarTypes}});Object.defineProperty(ms,"validateSchema",{enumerable:!0,get:function(){return SVt.validateSchema}});var Ont=WV(),pp=jd(),Y6=kk(),s9=w8(),Dk=uI(),SVt=ede(),bVt=B_e()});var EVt=dr(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Object.defineProperty(Qd,"BREAK",{enumerable:!0,get:function(){return mde.BREAK}});Object.defineProperty(Qd,"DirectiveLocation",{enumerable:!0,get:function(){return W0n.DirectiveLocation}});Object.defineProperty(Qd,"Kind",{enumerable:!0,get:function(){return z0n.Kind}});Object.defineProperty(Qd,"Lexer",{enumerable:!0,get:function(){return J0n.Lexer}});Object.defineProperty(Qd,"Location",{enumerable:!0,get:function(){return Fnt.Location}});Object.defineProperty(Qd,"OperationTypeNode",{enumerable:!0,get:function(){return Fnt.OperationTypeNode}});Object.defineProperty(Qd,"Source",{enumerable:!0,get:function(){return $0n.Source}});Object.defineProperty(Qd,"Token",{enumerable:!0,get:function(){return Fnt.Token}});Object.defineProperty(Qd,"TokenKind",{enumerable:!0,get:function(){return q0n.TokenKind}});Object.defineProperty(Qd,"getEnterLeaveForKind",{enumerable:!0,get:function(){return mde.getEnterLeaveForKind}});Object.defineProperty(Qd,"getLocation",{enumerable:!0,get:function(){return U0n.getLocation}});Object.defineProperty(Qd,"getVisitFn",{enumerable:!0,get:function(){return mde.getVisitFn}});Object.defineProperty(Qd,"isConstValueNode",{enumerable:!0,get:function(){return e4.isConstValueNode}});Object.defineProperty(Qd,"isDefinitionNode",{enumerable:!0,get:function(){return e4.isDefinitionNode}});Object.defineProperty(Qd,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return e4.isExecutableDefinitionNode}});Object.defineProperty(Qd,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return e4.isSchemaCoordinateNode}});Object.defineProperty(Qd,"isSelectionNode",{enumerable:!0,get:function(){return e4.isSelectionNode}});Object.defineProperty(Qd,"isTypeDefinitionNode",{enumerable:!0,get:function(){return e4.isTypeDefinitionNode}});Object.defineProperty(Qd,"isTypeExtensionNode",{enumerable:!0,get:function(){return e4.isTypeExtensionNode}});Object.defineProperty(Qd,"isTypeNode",{enumerable:!0,get:function(){return e4.isTypeNode}});Object.defineProperty(Qd,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return e4.isTypeSystemDefinitionNode}});Object.defineProperty(Qd,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return e4.isTypeSystemExtensionNode}});Object.defineProperty(Qd,"isValueNode",{enumerable:!0,get:function(){return e4.isValueNode}});Object.defineProperty(Qd,"parse",{enumerable:!0,get:function(){return fde.parse}});Object.defineProperty(Qd,"parseConstValue",{enumerable:!0,get:function(){return fde.parseConstValue}});Object.defineProperty(Qd,"parseSchemaCoordinate",{enumerable:!0,get:function(){return fde.parseSchemaCoordinate}});Object.defineProperty(Qd,"parseType",{enumerable:!0,get:function(){return fde.parseType}});Object.defineProperty(Qd,"parseValue",{enumerable:!0,get:function(){return fde.parseValue}});Object.defineProperty(Qd,"print",{enumerable:!0,get:function(){return V0n.print}});Object.defineProperty(Qd,"printLocation",{enumerable:!0,get:function(){return TVt.printLocation}});Object.defineProperty(Qd,"printSourceLocation",{enumerable:!0,get:function(){return TVt.printSourceLocation}});Object.defineProperty(Qd,"visit",{enumerable:!0,get:function(){return mde.visit}});Object.defineProperty(Qd,"visitInParallel",{enumerable:!0,get:function(){return mde.visitInParallel}});var $0n=zDe(),U0n=RDe(),TVt=Det(),z0n=Md(),q0n=vee(),J0n=O_e(),fde=BV(),V0n=FD(),mde=$V(),Fnt=aI(),e4=HV(),W0n=yee()});var kVt=dr(Rnt=>{"use strict";Object.defineProperty(Rnt,"__esModule",{value:!0});Rnt.isAsyncIterable=G0n;function G0n(e){return typeof e?.[Symbol.asyncIterator]=="function"}});var CVt=dr(Lnt=>{"use strict";Object.defineProperty(Lnt,"__esModule",{value:!0});Lnt.mapAsyncIterator=H0n;function H0n(e,r){let i=e[Symbol.asyncIterator]();async function s(l){if(l.done)return l;try{return{value:await r(l.value),done:!1}}catch(d){if(typeof i.return=="function")try{await i.return()}catch{}throw d}}return{async next(){return s(await i.next())},async return(){return typeof i.return=="function"?s(await i.return()):{value:void 0,done:!0}},async throw(l){if(typeof i.throw=="function")return s(await i.throw(l));throw l},[Symbol.asyncIterator](){return this}}}});var IVt=dr(UAe=>{"use strict";Object.defineProperty(UAe,"__esModule",{value:!0});UAe.createSourceEventStream=wVt;UAe.subscribe=t1n;var K0n=J2(),Q0n=gm(),AVt=kVt(),DVt=nde(),Mnt=Cu(),Z0n=RAe(),X0n=IAe(),hde=dde(),Y0n=CVt(),e1n=Iee();async function t1n(e){arguments.length<2||(0,K0n.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let r=await wVt(e);if(!(0,AVt.isAsyncIterable)(r))return r;let i=s=>(0,hde.execute)({...e,rootValue:s});return(0,Y0n.mapAsyncIterator)(r,i)}function r1n(e){let r=e[0];return r&&"document"in r?r:{schema:r,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function wVt(...e){let r=r1n(e),{schema:i,document:s,variableValues:l}=r;(0,hde.assertValidExecutionArguments)(i,s,l);let d=(0,hde.buildExecutionContext)(r);if(!("schema"in d))return{errors:d};try{let h=await n1n(d);if(!(0,AVt.isAsyncIterable)(h))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,Q0n.inspect)(h)}.`);return h}catch(h){if(h instanceof Mnt.GraphQLError)return{errors:[h]};throw h}}async function n1n(e){let{schema:r,fragments:i,operation:s,variableValues:l,rootValue:d}=e,h=r.getSubscriptionType();if(h==null)throw new Mnt.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:s});let S=(0,X0n.collectFields)(r,i,l,h,s.selectionSet),[b,A]=[...S.entries()][0],L=(0,hde.getFieldDef)(r,h,A[0]);if(!L){let te=A[0].name.value;throw new Mnt.GraphQLError(`The subscription field "${te}" is not defined.`,{nodes:A})}let V=(0,DVt.addPath)(void 0,b,h.name),j=(0,hde.buildResolveInfo)(e,L,A,h,V);try{var ie;let te=(0,e1n.getArgumentValues)(L,A[0],l),X=e.contextValue,Je=await((ie=L.subscribe)!==null&&ie!==void 0?ie:e.subscribeFieldResolver)(d,te,X,j);if(Je instanceof Error)throw Je;return Je}catch(te){throw(0,Z0n.locatedError)(te,A,(0,DVt.pathToArray)(V))}}});var NVt=dr(dI=>{"use strict";Object.defineProperty(dI,"__esModule",{value:!0});Object.defineProperty(dI,"createSourceEventStream",{enumerable:!0,get:function(){return PVt.createSourceEventStream}});Object.defineProperty(dI,"defaultFieldResolver",{enumerable:!0,get:function(){return zAe.defaultFieldResolver}});Object.defineProperty(dI,"defaultTypeResolver",{enumerable:!0,get:function(){return zAe.defaultTypeResolver}});Object.defineProperty(dI,"execute",{enumerable:!0,get:function(){return zAe.execute}});Object.defineProperty(dI,"executeSync",{enumerable:!0,get:function(){return zAe.executeSync}});Object.defineProperty(dI,"getArgumentValues",{enumerable:!0,get:function(){return jnt.getArgumentValues}});Object.defineProperty(dI,"getDirectiveValues",{enumerable:!0,get:function(){return jnt.getDirectiveValues}});Object.defineProperty(dI,"getVariableValues",{enumerable:!0,get:function(){return jnt.getVariableValues}});Object.defineProperty(dI,"responsePathAsArray",{enumerable:!0,get:function(){return i1n.pathToArray}});Object.defineProperty(dI,"subscribe",{enumerable:!0,get:function(){return PVt.subscribe}});var i1n=nde(),zAe=dde(),PVt=IVt(),jnt=Iee()});var OVt=dr(Unt=>{"use strict";Object.defineProperty(Unt,"__esModule",{value:!0});Unt.NoDeprecatedCustomRule=o1n;var Bnt=kT(),gde=Cu(),$nt=jd();function o1n(e){return{Field(r){let i=e.getFieldDef(),s=i?.deprecationReason;if(i&&s!=null){let l=e.getParentType();l!=null||(0,Bnt.invariant)(!1),e.reportError(new gde.GraphQLError(`The field ${l.name}.${i.name} is deprecated. ${s}`,{nodes:r}))}},Argument(r){let i=e.getArgument(),s=i?.deprecationReason;if(i&&s!=null){let l=e.getDirective();if(l!=null)e.reportError(new gde.GraphQLError(`Directive "@${l.name}" argument "${i.name}" is deprecated. ${s}`,{nodes:r}));else{let d=e.getParentType(),h=e.getFieldDef();d!=null&&h!=null||(0,Bnt.invariant)(!1),e.reportError(new gde.GraphQLError(`Field "${d.name}.${h.name}" argument "${i.name}" is deprecated. ${s}`,{nodes:r}))}}},ObjectField(r){let i=(0,$nt.getNamedType)(e.getParentInputType());if((0,$nt.isInputObjectType)(i)){let s=i.getFields()[r.name.value],l=s?.deprecationReason;l!=null&&e.reportError(new gde.GraphQLError(`The input field ${i.name}.${s.name} is deprecated. ${l}`,{nodes:r}))}},EnumValue(r){let i=e.getEnumValue(),s=i?.deprecationReason;if(i&&s!=null){let l=(0,$nt.getNamedType)(e.getInputType());l!=null||(0,Bnt.invariant)(!1),e.reportError(new gde.GraphQLError(`The enum value "${l.name}.${i.name}" is deprecated. ${s}`,{nodes:r}))}}}}});var FVt=dr(znt=>{"use strict";Object.defineProperty(znt,"__esModule",{value:!0});znt.NoSchemaIntrospectionCustomRule=l1n;var a1n=Cu(),s1n=jd(),c1n=uI();function l1n(e){return{Field(r){let i=(0,s1n.getNamedType)(e.getType());i&&(0,c1n.isIntrospectionType)(i)&&e.reportError(new a1n.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${r.name.value}".`,{nodes:r}))}}}});var LVt=dr(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Object.defineProperty(Yp,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return _1n.ExecutableDefinitionsRule}});Object.defineProperty(Yp,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return d1n.FieldsOnCorrectTypeRule}});Object.defineProperty(Yp,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return f1n.FragmentsOnCompositeTypesRule}});Object.defineProperty(Yp,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return m1n.KnownArgumentNamesRule}});Object.defineProperty(Yp,"KnownDirectivesRule",{enumerable:!0,get:function(){return h1n.KnownDirectivesRule}});Object.defineProperty(Yp,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return g1n.KnownFragmentNamesRule}});Object.defineProperty(Yp,"KnownTypeNamesRule",{enumerable:!0,get:function(){return y1n.KnownTypeNamesRule}});Object.defineProperty(Yp,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return v1n.LoneAnonymousOperationRule}});Object.defineProperty(Yp,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return B1n.LoneSchemaDefinitionRule}});Object.defineProperty(Yp,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return j1n.MaxIntrospectionDepthRule}});Object.defineProperty(Yp,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return G1n.NoDeprecatedCustomRule}});Object.defineProperty(Yp,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return S1n.NoFragmentCyclesRule}});Object.defineProperty(Yp,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return H1n.NoSchemaIntrospectionCustomRule}});Object.defineProperty(Yp,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return b1n.NoUndefinedVariablesRule}});Object.defineProperty(Yp,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return x1n.NoUnusedFragmentsRule}});Object.defineProperty(Yp,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return T1n.NoUnusedVariablesRule}});Object.defineProperty(Yp,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return E1n.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Yp,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return k1n.PossibleFragmentSpreadsRule}});Object.defineProperty(Yp,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return W1n.PossibleTypeExtensionsRule}});Object.defineProperty(Yp,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return C1n.ProvidedRequiredArgumentsRule}});Object.defineProperty(Yp,"ScalarLeafsRule",{enumerable:!0,get:function(){return D1n.ScalarLeafsRule}});Object.defineProperty(Yp,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return A1n.SingleFieldSubscriptionsRule}});Object.defineProperty(Yp,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return J1n.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(Yp,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return w1n.UniqueArgumentNamesRule}});Object.defineProperty(Yp,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return V1n.UniqueDirectiveNamesRule}});Object.defineProperty(Yp,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return I1n.UniqueDirectivesPerLocationRule}});Object.defineProperty(Yp,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return z1n.UniqueEnumValueNamesRule}});Object.defineProperty(Yp,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return q1n.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Yp,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return P1n.UniqueFragmentNamesRule}});Object.defineProperty(Yp,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return N1n.UniqueInputFieldNamesRule}});Object.defineProperty(Yp,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return O1n.UniqueOperationNamesRule}});Object.defineProperty(Yp,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return $1n.UniqueOperationTypesRule}});Object.defineProperty(Yp,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return U1n.UniqueTypeNamesRule}});Object.defineProperty(Yp,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return F1n.UniqueVariableNamesRule}});Object.defineProperty(Yp,"ValidationContext",{enumerable:!0,get:function(){return p1n.ValidationContext}});Object.defineProperty(Yp,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return R1n.ValuesOfCorrectTypeRule}});Object.defineProperty(Yp,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return L1n.VariablesAreInputTypesRule}});Object.defineProperty(Yp,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return M1n.VariablesInAllowedPositionRule}});Object.defineProperty(Yp,"recommendedRules",{enumerable:!0,get:function(){return RVt.recommendedRules}});Object.defineProperty(Yp,"specifiedRules",{enumerable:!0,get:function(){return RVt.specifiedRules}});Object.defineProperty(Yp,"validate",{enumerable:!0,get:function(){return u1n.validate}});var u1n=pde(),p1n=vnt(),RVt=hnt(),_1n=Ntt(),d1n=Ftt(),f1n=Ltt(),m1n=Mtt(),h1n=Utt(),g1n=qtt(),y1n=Wtt(),v1n=Htt(),S1n=ert(),b1n=rrt(),x1n=irt(),T1n=art(),E1n=hrt(),k1n=vrt(),C1n=Trt(),D1n=Drt(),A1n=Lrt(),w1n=Urt(),I1n=Wrt(),P1n=Yrt(),N1n=tnt(),O1n=nnt(),F1n=lnt(),R1n=pnt(),L1n=dnt(),M1n=mnt(),j1n=Xtt(),B1n=Qtt(),$1n=ont(),U1n=snt(),z1n=Hrt(),q1n=Zrt(),J1n=Brt(),V1n=qrt(),W1n=brt(),G1n=OVt(),H1n=FVt()});var MVt=dr(YV=>{"use strict";Object.defineProperty(YV,"__esModule",{value:!0});Object.defineProperty(YV,"GraphQLError",{enumerable:!0,get:function(){return qnt.GraphQLError}});Object.defineProperty(YV,"formatError",{enumerable:!0,get:function(){return qnt.formatError}});Object.defineProperty(YV,"locatedError",{enumerable:!0,get:function(){return Q1n.locatedError}});Object.defineProperty(YV,"printError",{enumerable:!0,get:function(){return qnt.printError}});Object.defineProperty(YV,"syntaxError",{enumerable:!0,get:function(){return K1n.syntaxError}});var qnt=Cu(),K1n=k_e(),Q1n=RAe()});var Vnt=dr(Jnt=>{"use strict";Object.defineProperty(Jnt,"__esModule",{value:!0});Jnt.getIntrospectionQuery=Z1n;function Z1n(e){let r={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},i=r.descriptions?"description":"",s=r.specifiedByUrl?"specifiedByURL":"",l=r.directiveIsRepeatable?"isRepeatable":"",d=r.schemaDescription?i:"";function h(b){return r.inputValueDeprecation?b:""}let S=r.oneOf?"isOneOf":"";return` + query IntrospectionQuery { + __schema { + ${d} + queryType { name kind } + mutationType { name kind } + subscriptionType { name kind } + types { + ...FullType + } + directives { + name + ${i} + ${l} + locations + args${h("(includeDeprecated: true)")} { + ...InputValue + } + } + } + } + + fragment FullType on __Type { + kind + name + ${i} + ${s} + ${S} + fields(includeDeprecated: true) { + name + ${i} + args${h("(includeDeprecated: true)")} { + ...InputValue + } + type { + ...TypeRef + } + isDeprecated + deprecationReason + } + inputFields${h("(includeDeprecated: true)")} { + ...InputValue + } + interfaces { + ...TypeRef + } + enumValues(includeDeprecated: true) { + name + ${i} + isDeprecated + deprecationReason + } + possibleTypes { + ...TypeRef + } + } + + fragment InputValue on __InputValue { + name + ${i} + type { ...TypeRef } + defaultValue + ${h("isDeprecated")} + ${h("deprecationReason")} + } + + fragment TypeRef on __Type { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + } + } + } + } + } + } + } + } + } + } + `}});var jVt=dr(Wnt=>{"use strict";Object.defineProperty(Wnt,"__esModule",{value:!0});Wnt.getOperationAST=Y1n;var X1n=Md();function Y1n(e,r){let i=null;for(let l of e.definitions)if(l.kind===X1n.Kind.OPERATION_DEFINITION){var s;if(r==null){if(i)return null;i=l}else if(((s=l.name)===null||s===void 0?void 0:s.value)===r)return l}return i}});var BVt=dr(Gnt=>{"use strict";Object.defineProperty(Gnt,"__esModule",{value:!0});Gnt.getOperationRootType=evn;var qAe=Cu();function evn(e,r){if(r.operation==="query"){let i=e.getQueryType();if(!i)throw new qAe.GraphQLError("Schema does not define the required query root type.",{nodes:r});return i}if(r.operation==="mutation"){let i=e.getMutationType();if(!i)throw new qAe.GraphQLError("Schema is not configured for mutations.",{nodes:r});return i}if(r.operation==="subscription"){let i=e.getSubscriptionType();if(!i)throw new qAe.GraphQLError("Schema is not configured for subscriptions.",{nodes:r});return i}throw new qAe.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:r})}});var $Vt=dr(Hnt=>{"use strict";Object.defineProperty(Hnt,"__esModule",{value:!0});Hnt.introspectionFromSchema=ovn;var tvn=kT(),rvn=BV(),nvn=dde(),ivn=Vnt();function ovn(e,r){let i={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...r},s=(0,rvn.parse)((0,ivn.getIntrospectionQuery)(i)),l=(0,nvn.executeSync)({schema:e,document:s});return!l.errors&&l.data||(0,tvn.invariant)(!1),l.data}});var zVt=dr(Knt=>{"use strict";Object.defineProperty(Knt,"__esModule",{value:!0});Knt.buildClientSchema=_vn;var avn=J2(),LD=gm(),UVt=C8(),JAe=M_e(),svn=BV(),MD=jd(),cvn=kk(),N8=uI(),lvn=w8(),uvn=WV(),pvn=sde();function _vn(e,r){(0,UVt.isObjectLike)(e)&&(0,UVt.isObjectLike)(e.__schema)||(0,avn.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,LD.inspect)(e)}.`);let i=e.__schema,s=(0,JAe.keyValMap)(i.types,hr=>hr.name,hr=>j(hr));for(let hr of[...lvn.specifiedScalarTypes,...N8.introspectionTypes])s[hr.name]&&(s[hr.name]=hr);let l=i.queryType?L(i.queryType):null,d=i.mutationType?L(i.mutationType):null,h=i.subscriptionType?L(i.subscriptionType):null,S=i.directives?i.directives.map(Ut):[];return new uvn.GraphQLSchema({description:i.description,query:l,mutation:d,subscription:h,types:Object.values(s),directives:S,assumeValid:r?.assumeValid});function b(hr){if(hr.kind===N8.TypeKind.LIST){let Hi=hr.ofType;if(!Hi)throw new Error("Decorated type deeper than introspection query.");return new MD.GraphQLList(b(Hi))}if(hr.kind===N8.TypeKind.NON_NULL){let Hi=hr.ofType;if(!Hi)throw new Error("Decorated type deeper than introspection query.");let un=b(Hi);return new MD.GraphQLNonNull((0,MD.assertNullableType)(un))}return A(hr)}function A(hr){let Hi=hr.name;if(!Hi)throw new Error(`Unknown type reference: ${(0,LD.inspect)(hr)}.`);let un=s[Hi];if(!un)throw new Error(`Invalid or incomplete schema, unknown type: ${Hi}. Ensure that a full introspection query is used in order to build a client schema.`);return un}function L(hr){return(0,MD.assertObjectType)(A(hr))}function V(hr){return(0,MD.assertInterfaceType)(A(hr))}function j(hr){if(hr!=null&&hr.name!=null&&hr.kind!=null)switch(hr.kind){case N8.TypeKind.SCALAR:return ie(hr);case N8.TypeKind.OBJECT:return X(hr);case N8.TypeKind.INTERFACE:return Re(hr);case N8.TypeKind.UNION:return Je(hr);case N8.TypeKind.ENUM:return pt(hr);case N8.TypeKind.INPUT_OBJECT:return $e(hr)}let Hi=(0,LD.inspect)(hr);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${Hi}.`)}function ie(hr){return new MD.GraphQLScalarType({name:hr.name,description:hr.description,specifiedByURL:hr.specifiedByURL})}function te(hr){if(hr.interfaces===null&&hr.kind===N8.TypeKind.INTERFACE)return[];if(!hr.interfaces){let Hi=(0,LD.inspect)(hr);throw new Error(`Introspection result missing interfaces: ${Hi}.`)}return hr.interfaces.map(V)}function X(hr){return new MD.GraphQLObjectType({name:hr.name,description:hr.description,interfaces:()=>te(hr),fields:()=>xt(hr)})}function Re(hr){return new MD.GraphQLInterfaceType({name:hr.name,description:hr.description,interfaces:()=>te(hr),fields:()=>xt(hr)})}function Je(hr){if(!hr.possibleTypes){let Hi=(0,LD.inspect)(hr);throw new Error(`Introspection result missing possibleTypes: ${Hi}.`)}return new MD.GraphQLUnionType({name:hr.name,description:hr.description,types:()=>hr.possibleTypes.map(L)})}function pt(hr){if(!hr.enumValues){let Hi=(0,LD.inspect)(hr);throw new Error(`Introspection result missing enumValues: ${Hi}.`)}return new MD.GraphQLEnumType({name:hr.name,description:hr.description,values:(0,JAe.keyValMap)(hr.enumValues,Hi=>Hi.name,Hi=>({description:Hi.description,deprecationReason:Hi.deprecationReason}))})}function $e(hr){if(!hr.inputFields){let Hi=(0,LD.inspect)(hr);throw new Error(`Introspection result missing inputFields: ${Hi}.`)}return new MD.GraphQLInputObjectType({name:hr.name,description:hr.description,fields:()=>ht(hr.inputFields),isOneOf:hr.isOneOf})}function xt(hr){if(!hr.fields)throw new Error(`Introspection result missing fields: ${(0,LD.inspect)(hr)}.`);return(0,JAe.keyValMap)(hr.fields,Hi=>Hi.name,tr)}function tr(hr){let Hi=b(hr.type);if(!(0,MD.isOutputType)(Hi)){let un=(0,LD.inspect)(Hi);throw new Error(`Introspection must provide output type for fields, but received: ${un}.`)}if(!hr.args){let un=(0,LD.inspect)(hr);throw new Error(`Introspection result missing field args: ${un}.`)}return{description:hr.description,deprecationReason:hr.deprecationReason,type:Hi,args:ht(hr.args)}}function ht(hr){return(0,JAe.keyValMap)(hr,Hi=>Hi.name,wt)}function wt(hr){let Hi=b(hr.type);if(!(0,MD.isInputType)(Hi)){let xo=(0,LD.inspect)(Hi);throw new Error(`Introspection must provide input type for arguments, but received: ${xo}.`)}let un=hr.defaultValue!=null?(0,pvn.valueFromAST)((0,svn.parseValue)(hr.defaultValue),Hi):void 0;return{description:hr.description,type:Hi,defaultValue:un,deprecationReason:hr.deprecationReason}}function Ut(hr){if(!hr.args){let Hi=(0,LD.inspect)(hr);throw new Error(`Introspection result missing directive args: ${Hi}.`)}if(!hr.locations){let Hi=(0,LD.inspect)(hr);throw new Error(`Introspection result missing directive locations: ${Hi}.`)}return new cvn.GraphQLDirective({name:hr.name,description:hr.description,isRepeatable:hr.isRepeatable,locations:hr.locations.slice(),args:ht(hr.args)})}}});var Znt=dr(WAe=>{"use strict";Object.defineProperty(WAe,"__esModule",{value:!0});WAe.extendSchema=yvn;WAe.extendSchemaImpl=QVt;var dvn=J2(),fvn=gm(),mvn=kT(),hvn=PB(),yde=VDe(),fI=Md(),qVt=HV(),Dy=jd(),vde=kk(),HVt=uI(),KVt=w8(),JVt=WV(),gvn=pde(),Qnt=Iee(),VVt=sde();function yvn(e,r,i){(0,JVt.assertSchema)(e),r!=null&&r.kind===fI.Kind.DOCUMENT||(0,dvn.devAssert)(!1,"Must provide valid Document AST."),i?.assumeValid!==!0&&i?.assumeValidSDL!==!0&&(0,gvn.assertValidSDLExtension)(r,e);let s=e.toConfig(),l=QVt(s,r,i);return s===l?e:new JVt.GraphQLSchema(l)}function QVt(e,r,i){var s,l,d,h;let S=[],b=Object.create(null),A=[],L,V=[];for(let Xr of r.definitions)if(Xr.kind===fI.Kind.SCHEMA_DEFINITION)L=Xr;else if(Xr.kind===fI.Kind.SCHEMA_EXTENSION)V.push(Xr);else if((0,qVt.isTypeDefinitionNode)(Xr))S.push(Xr);else if((0,qVt.isTypeExtensionNode)(Xr)){let li=Xr.name.value,Wi=b[li];b[li]=Wi?Wi.concat([Xr]):[Xr]}else Xr.kind===fI.Kind.DIRECTIVE_DEFINITION&&A.push(Xr);if(Object.keys(b).length===0&&S.length===0&&A.length===0&&V.length===0&&L==null)return e;let j=Object.create(null);for(let Xr of e.types)j[Xr.name]=pt(Xr);for(let Xr of S){var ie;let li=Xr.name.value;j[li]=(ie=WVt[li])!==null&&ie!==void 0?ie:an(Xr)}let te={query:e.query&&Re(e.query),mutation:e.mutation&&Re(e.mutation),subscription:e.subscription&&Re(e.subscription),...L&&un([L]),...un(V)};return{description:(s=L)===null||s===void 0||(l=s.description)===null||l===void 0?void 0:l.value,...te,types:Object.values(j),directives:[...e.directives.map(Je),...A.map(yr)],extensions:Object.create(null),astNode:(d=L)!==null&&d!==void 0?d:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(V),assumeValid:(h=i?.assumeValid)!==null&&h!==void 0?h:!1};function X(Xr){return(0,Dy.isListType)(Xr)?new Dy.GraphQLList(X(Xr.ofType)):(0,Dy.isNonNullType)(Xr)?new Dy.GraphQLNonNull(X(Xr.ofType)):Re(Xr)}function Re(Xr){return j[Xr.name]}function Je(Xr){let li=Xr.toConfig();return new vde.GraphQLDirective({...li,args:(0,yde.mapValue)(li.args,Hi)})}function pt(Xr){if((0,HVt.isIntrospectionType)(Xr)||(0,KVt.isSpecifiedScalarType)(Xr))return Xr;if((0,Dy.isScalarType)(Xr))return tr(Xr);if((0,Dy.isObjectType)(Xr))return ht(Xr);if((0,Dy.isInterfaceType)(Xr))return wt(Xr);if((0,Dy.isUnionType)(Xr))return Ut(Xr);if((0,Dy.isEnumType)(Xr))return xt(Xr);if((0,Dy.isInputObjectType)(Xr))return $e(Xr);(0,mvn.invariant)(!1,"Unexpected type: "+(0,fvn.inspect)(Xr))}function $e(Xr){var li;let Wi=Xr.toConfig(),Bo=(li=b[Wi.name])!==null&&li!==void 0?li:[];return new Dy.GraphQLInputObjectType({...Wi,fields:()=>({...(0,yde.mapValue)(Wi.fields,Wn=>({...Wn,type:X(Wn.type)})),...Cr(Bo)}),extensionASTNodes:Wi.extensionASTNodes.concat(Bo)})}function xt(Xr){var li;let Wi=Xr.toConfig(),Bo=(li=b[Xr.name])!==null&&li!==void 0?li:[];return new Dy.GraphQLEnumType({...Wi,values:{...Wi.values,...ol(Bo)},extensionASTNodes:Wi.extensionASTNodes.concat(Bo)})}function tr(Xr){var li;let Wi=Xr.toConfig(),Bo=(li=b[Wi.name])!==null&&li!==void 0?li:[],Wn=Wi.specifiedByURL;for(let hs of Bo){var Na;Wn=(Na=GVt(hs))!==null&&Na!==void 0?Na:Wn}return new Dy.GraphQLScalarType({...Wi,specifiedByURL:Wn,extensionASTNodes:Wi.extensionASTNodes.concat(Bo)})}function ht(Xr){var li;let Wi=Xr.toConfig(),Bo=(li=b[Wi.name])!==null&&li!==void 0?li:[];return new Dy.GraphQLObjectType({...Wi,interfaces:()=>[...Xr.getInterfaces().map(Re),...Zo(Bo)],fields:()=>({...(0,yde.mapValue)(Wi.fields,hr),...co(Bo)}),extensionASTNodes:Wi.extensionASTNodes.concat(Bo)})}function wt(Xr){var li;let Wi=Xr.toConfig(),Bo=(li=b[Wi.name])!==null&&li!==void 0?li:[];return new Dy.GraphQLInterfaceType({...Wi,interfaces:()=>[...Xr.getInterfaces().map(Re),...Zo(Bo)],fields:()=>({...(0,yde.mapValue)(Wi.fields,hr),...co(Bo)}),extensionASTNodes:Wi.extensionASTNodes.concat(Bo)})}function Ut(Xr){var li;let Wi=Xr.toConfig(),Bo=(li=b[Wi.name])!==null&&li!==void 0?li:[];return new Dy.GraphQLUnionType({...Wi,types:()=>[...Xr.getTypes().map(Re),...Rc(Bo)],extensionASTNodes:Wi.extensionASTNodes.concat(Bo)})}function hr(Xr){return{...Xr,type:X(Xr.type),args:Xr.args&&(0,yde.mapValue)(Xr.args,Hi)}}function Hi(Xr){return{...Xr,type:X(Xr.type)}}function un(Xr){let li={};for(let Bo of Xr){var Wi;let Wn=(Wi=Bo.operationTypes)!==null&&Wi!==void 0?Wi:[];for(let Na of Wn)li[Na.operation]=xo(Na.type)}return li}function xo(Xr){var li;let Wi=Xr.name.value,Bo=(li=WVt[Wi])!==null&&li!==void 0?li:j[Wi];if(Bo===void 0)throw new Error(`Unknown type: "${Wi}".`);return Bo}function Lo(Xr){return Xr.kind===fI.Kind.LIST_TYPE?new Dy.GraphQLList(Lo(Xr.type)):Xr.kind===fI.Kind.NON_NULL_TYPE?new Dy.GraphQLNonNull(Lo(Xr.type)):xo(Xr)}function yr(Xr){var li;return new vde.GraphQLDirective({name:Xr.name.value,description:(li=Xr.description)===null||li===void 0?void 0:li.value,locations:Xr.locations.map(({value:Wi})=>Wi),isRepeatable:Xr.repeatable,args:Cs(Xr.arguments),astNode:Xr})}function co(Xr){let li=Object.create(null);for(let Wn of Xr){var Wi;let Na=(Wi=Wn.fields)!==null&&Wi!==void 0?Wi:[];for(let hs of Na){var Bo;li[hs.name.value]={type:Lo(hs.type),description:(Bo=hs.description)===null||Bo===void 0?void 0:Bo.value,args:Cs(hs.arguments),deprecationReason:VAe(hs),astNode:hs}}}return li}function Cs(Xr){let li=Xr??[],Wi=Object.create(null);for(let Wn of li){var Bo;let Na=Lo(Wn.type);Wi[Wn.name.value]={type:Na,description:(Bo=Wn.description)===null||Bo===void 0?void 0:Bo.value,defaultValue:(0,VVt.valueFromAST)(Wn.defaultValue,Na),deprecationReason:VAe(Wn),astNode:Wn}}return Wi}function Cr(Xr){let li=Object.create(null);for(let Wn of Xr){var Wi;let Na=(Wi=Wn.fields)!==null&&Wi!==void 0?Wi:[];for(let hs of Na){var Bo;let Us=Lo(hs.type);li[hs.name.value]={type:Us,description:(Bo=hs.description)===null||Bo===void 0?void 0:Bo.value,defaultValue:(0,VVt.valueFromAST)(hs.defaultValue,Us),deprecationReason:VAe(hs),astNode:hs}}}return li}function ol(Xr){let li=Object.create(null);for(let Wn of Xr){var Wi;let Na=(Wi=Wn.values)!==null&&Wi!==void 0?Wi:[];for(let hs of Na){var Bo;li[hs.name.value]={description:(Bo=hs.description)===null||Bo===void 0?void 0:Bo.value,deprecationReason:VAe(hs),astNode:hs}}}return li}function Zo(Xr){return Xr.flatMap(li=>{var Wi,Bo;return(Wi=(Bo=li.interfaces)===null||Bo===void 0?void 0:Bo.map(xo))!==null&&Wi!==void 0?Wi:[]})}function Rc(Xr){return Xr.flatMap(li=>{var Wi,Bo;return(Wi=(Bo=li.types)===null||Bo===void 0?void 0:Bo.map(xo))!==null&&Wi!==void 0?Wi:[]})}function an(Xr){var li;let Wi=Xr.name.value,Bo=(li=b[Wi])!==null&&li!==void 0?li:[];switch(Xr.kind){case fI.Kind.OBJECT_TYPE_DEFINITION:{var Wn;let uc=[Xr,...Bo];return new Dy.GraphQLObjectType({name:Wi,description:(Wn=Xr.description)===null||Wn===void 0?void 0:Wn.value,interfaces:()=>Zo(uc),fields:()=>co(uc),astNode:Xr,extensionASTNodes:Bo})}case fI.Kind.INTERFACE_TYPE_DEFINITION:{var Na;let uc=[Xr,...Bo];return new Dy.GraphQLInterfaceType({name:Wi,description:(Na=Xr.description)===null||Na===void 0?void 0:Na.value,interfaces:()=>Zo(uc),fields:()=>co(uc),astNode:Xr,extensionASTNodes:Bo})}case fI.Kind.ENUM_TYPE_DEFINITION:{var hs;let uc=[Xr,...Bo];return new Dy.GraphQLEnumType({name:Wi,description:(hs=Xr.description)===null||hs===void 0?void 0:hs.value,values:ol(uc),astNode:Xr,extensionASTNodes:Bo})}case fI.Kind.UNION_TYPE_DEFINITION:{var Us;let uc=[Xr,...Bo];return new Dy.GraphQLUnionType({name:Wi,description:(Us=Xr.description)===null||Us===void 0?void 0:Us.value,types:()=>Rc(uc),astNode:Xr,extensionASTNodes:Bo})}case fI.Kind.SCALAR_TYPE_DEFINITION:{var Sc;return new Dy.GraphQLScalarType({name:Wi,description:(Sc=Xr.description)===null||Sc===void 0?void 0:Sc.value,specifiedByURL:GVt(Xr),astNode:Xr,extensionASTNodes:Bo})}case fI.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var Wu;let uc=[Xr,...Bo];return new Dy.GraphQLInputObjectType({name:Wi,description:(Wu=Xr.description)===null||Wu===void 0?void 0:Wu.value,fields:()=>Cr(uc),astNode:Xr,extensionASTNodes:Bo,isOneOf:vvn(Xr)})}}}}var WVt=(0,hvn.keyMap)([...KVt.specifiedScalarTypes,...HVt.introspectionTypes],e=>e.name);function VAe(e){let r=(0,Qnt.getDirectiveValues)(vde.GraphQLDeprecatedDirective,e);return r?.reason}function GVt(e){let r=(0,Qnt.getDirectiveValues)(vde.GraphQLSpecifiedByDirective,e);return r?.url}function vvn(e){return!!(0,Qnt.getDirectiveValues)(vde.GraphQLOneOfDirective,e)}});var XVt=dr(GAe=>{"use strict";Object.defineProperty(GAe,"__esModule",{value:!0});GAe.buildASTSchema=ZVt;GAe.buildSchema=Dvn;var Svn=J2(),bvn=Md(),xvn=BV(),Tvn=kk(),Evn=WV(),kvn=pde(),Cvn=Znt();function ZVt(e,r){e!=null&&e.kind===bvn.Kind.DOCUMENT||(0,Svn.devAssert)(!1,"Must provide valid Document AST."),r?.assumeValid!==!0&&r?.assumeValidSDL!==!0&&(0,kvn.assertValidSDL)(e);let i={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},s=(0,Cvn.extendSchemaImpl)(i,e,r);if(s.astNode==null)for(let d of s.types)switch(d.name){case"Query":s.query=d;break;case"Mutation":s.mutation=d;break;case"Subscription":s.subscription=d;break}let l=[...s.directives,...Tvn.specifiedDirectives.filter(d=>s.directives.every(h=>h.name!==d.name))];return new Evn.GraphQLSchema({...s,directives:l})}function Dvn(e,r){let i=(0,xvn.parse)(e,{noLocation:r?.noLocation,allowLegacyFragmentVariables:r?.allowLegacyFragmentVariables});return ZVt(i,{assumeValidSDL:r?.assumeValidSDL,assumeValid:r?.assumeValid})}});var tWt=dr(Ynt=>{"use strict";Object.defineProperty(Ynt,"__esModule",{value:!0});Ynt.lexicographicSortSchema=Fvn;var Avn=gm(),wvn=kT(),Ivn=M_e(),YVt=j_e(),V2=jd(),Pvn=kk(),Nvn=uI(),Ovn=WV();function Fvn(e){let r=e.toConfig(),i=(0,Ivn.keyValMap)(Xnt(r.types),j=>j.name,V);return new Ovn.GraphQLSchema({...r,types:Object.values(i),directives:Xnt(r.directives).map(h),query:d(r.query),mutation:d(r.mutation),subscription:d(r.subscription)});function s(j){return(0,V2.isListType)(j)?new V2.GraphQLList(s(j.ofType)):(0,V2.isNonNullType)(j)?new V2.GraphQLNonNull(s(j.ofType)):l(j)}function l(j){return i[j.name]}function d(j){return j&&l(j)}function h(j){let ie=j.toConfig();return new Pvn.GraphQLDirective({...ie,locations:eWt(ie.locations,te=>te),args:S(ie.args)})}function S(j){return HAe(j,ie=>({...ie,type:s(ie.type)}))}function b(j){return HAe(j,ie=>({...ie,type:s(ie.type),args:ie.args&&S(ie.args)}))}function A(j){return HAe(j,ie=>({...ie,type:s(ie.type)}))}function L(j){return Xnt(j).map(l)}function V(j){if((0,V2.isScalarType)(j)||(0,Nvn.isIntrospectionType)(j))return j;if((0,V2.isObjectType)(j)){let ie=j.toConfig();return new V2.GraphQLObjectType({...ie,interfaces:()=>L(ie.interfaces),fields:()=>b(ie.fields)})}if((0,V2.isInterfaceType)(j)){let ie=j.toConfig();return new V2.GraphQLInterfaceType({...ie,interfaces:()=>L(ie.interfaces),fields:()=>b(ie.fields)})}if((0,V2.isUnionType)(j)){let ie=j.toConfig();return new V2.GraphQLUnionType({...ie,types:()=>L(ie.types)})}if((0,V2.isEnumType)(j)){let ie=j.toConfig();return new V2.GraphQLEnumType({...ie,values:HAe(ie.values,te=>te)})}if((0,V2.isInputObjectType)(j)){let ie=j.toConfig();return new V2.GraphQLInputObjectType({...ie,fields:()=>A(ie.fields)})}(0,wvn.invariant)(!1,"Unexpected type: "+(0,Avn.inspect)(j))}}function HAe(e,r){let i=Object.create(null);for(let s of Object.keys(e).sort(YVt.naturalCompare))i[s]=r(e[s]);return i}function Xnt(e){return eWt(e,r=>r.name)}function eWt(e,r){return e.slice().sort((i,s)=>{let l=r(i),d=r(s);return(0,YVt.naturalCompare)(l,d)})}});var cWt=dr(Sde=>{"use strict";Object.defineProperty(Sde,"__esModule",{value:!0});Sde.printIntrospectionSchema=Uvn;Sde.printSchema=$vn;Sde.printType=iWt;var Rvn=gm(),Lvn=kT(),Mvn=I_e(),tit=Md(),KAe=FD(),Oee=jd(),rit=kk(),rWt=uI(),jvn=w8(),Bvn=Z_e();function $vn(e){return nWt(e,r=>!(0,rit.isSpecifiedDirective)(r),zvn)}function Uvn(e){return nWt(e,rit.isSpecifiedDirective,rWt.isIntrospectionType)}function zvn(e){return!(0,jvn.isSpecifiedScalarType)(e)&&!(0,rWt.isIntrospectionType)(e)}function nWt(e,r,i){let s=e.getDirectives().filter(r),l=Object.values(e.getTypeMap()).filter(i);return[qvn(e),...s.map(d=>Zvn(d)),...l.map(d=>iWt(d))].filter(Boolean).join(` + +`)}function qvn(e){if(e.description==null&&Jvn(e))return;let r=[],i=e.getQueryType();i&&r.push(` query: ${i.name}`);let s=e.getMutationType();s&&r.push(` mutation: ${s.name}`);let l=e.getSubscriptionType();return l&&r.push(` subscription: ${l.name}`),mI(e)+`schema { +${r.join(` +`)} +}`}function Jvn(e){let r=e.getQueryType();if(r&&r.name!=="Query")return!1;let i=e.getMutationType();if(i&&i.name!=="Mutation")return!1;let s=e.getSubscriptionType();return!(s&&s.name!=="Subscription")}function iWt(e){if((0,Oee.isScalarType)(e))return Vvn(e);if((0,Oee.isObjectType)(e))return Wvn(e);if((0,Oee.isInterfaceType)(e))return Gvn(e);if((0,Oee.isUnionType)(e))return Hvn(e);if((0,Oee.isEnumType)(e))return Kvn(e);if((0,Oee.isInputObjectType)(e))return Qvn(e);(0,Lvn.invariant)(!1,"Unexpected type: "+(0,Rvn.inspect)(e))}function Vvn(e){return mI(e)+`scalar ${e.name}`+Xvn(e)}function oWt(e){let r=e.getInterfaces();return r.length?" implements "+r.map(i=>i.name).join(" & "):""}function Wvn(e){return mI(e)+`type ${e.name}`+oWt(e)+aWt(e)}function Gvn(e){return mI(e)+`interface ${e.name}`+oWt(e)+aWt(e)}function Hvn(e){let r=e.getTypes(),i=r.length?" = "+r.join(" | "):"";return mI(e)+"union "+e.name+i}function Kvn(e){let r=e.getValues().map((i,s)=>mI(i," ",!s)+" "+i.name+iit(i.deprecationReason));return mI(e)+`enum ${e.name}`+nit(r)}function Qvn(e){let r=Object.values(e.getFields()).map((i,s)=>mI(i," ",!s)+" "+eit(i));return mI(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+nit(r)}function aWt(e){let r=Object.values(e.getFields()).map((i,s)=>mI(i," ",!s)+" "+i.name+sWt(i.args," ")+": "+String(i.type)+iit(i.deprecationReason));return nit(r)}function nit(e){return e.length!==0?` { +`+e.join(` +`)+` +}`:""}function sWt(e,r=""){return e.length===0?"":e.every(i=>!i.description)?"("+e.map(eit).join(", ")+")":`( +`+e.map((i,s)=>mI(i," "+r,!s)+" "+r+eit(i)).join(` +`)+` +`+r+")"}function eit(e){let r=(0,Bvn.astFromValue)(e.defaultValue,e.type),i=e.name+": "+String(e.type);return r&&(i+=` = ${(0,KAe.print)(r)}`),i+iit(e.deprecationReason)}function Zvn(e){return mI(e)+"directive @"+e.name+sWt(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function iit(e){return e==null?"":e!==rit.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,KAe.print)({kind:tit.Kind.STRING,value:e})})`:" @deprecated"}function Xvn(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,KAe.print)({kind:tit.Kind.STRING,value:e.specifiedByURL})})`}function mI(e,r="",i=!0){let{description:s}=e;if(s==null)return"";let l=(0,KAe.print)({kind:tit.Kind.STRING,value:s,block:(0,Mvn.isPrintableAsBlockString)(s)});return(r&&!i?` +`+r:r)+l.replace(/\n/g,` +`+r)+` +`}});var lWt=dr(oit=>{"use strict";Object.defineProperty(oit,"__esModule",{value:!0});oit.concatAST=eSn;var Yvn=Md();function eSn(e){let r=[];for(let i of e)r.push(...i.definitions);return{kind:Yvn.Kind.DOCUMENT,definitions:r}}});var _Wt=dr(ait=>{"use strict";Object.defineProperty(ait,"__esModule",{value:!0});ait.separateOperations=rSn;var QAe=Md(),tSn=$V();function rSn(e){let r=[],i=Object.create(null);for(let l of e.definitions)switch(l.kind){case QAe.Kind.OPERATION_DEFINITION:r.push(l);break;case QAe.Kind.FRAGMENT_DEFINITION:i[l.name.value]=uWt(l.selectionSet);break;default:}let s=Object.create(null);for(let l of r){let d=new Set;for(let S of uWt(l.selectionSet))pWt(d,i,S);let h=l.name?l.name.value:"";s[h]={kind:QAe.Kind.DOCUMENT,definitions:e.definitions.filter(S=>S===l||S.kind===QAe.Kind.FRAGMENT_DEFINITION&&d.has(S.name.value))}}return s}function pWt(e,r,i){if(!e.has(i)){e.add(i);let s=r[i];if(s!==void 0)for(let l of s)pWt(e,r,l)}}function uWt(e){let r=[];return(0,tSn.visit)(e,{FragmentSpread(i){r.push(i.name.value)}}),r}});var mWt=dr(cit=>{"use strict";Object.defineProperty(cit,"__esModule",{value:!0});cit.stripIgnoredCharacters=iSn;var nSn=I_e(),dWt=O_e(),fWt=zDe(),sit=vee();function iSn(e){let r=(0,fWt.isSource)(e)?e:new fWt.Source(e),i=r.body,s=new dWt.Lexer(r),l="",d=!1;for(;s.advance().kind!==sit.TokenKind.EOF;){let h=s.token,S=h.kind,b=!(0,dWt.isPunctuatorTokenKind)(h.kind);d&&(b||h.kind===sit.TokenKind.SPREAD)&&(l+=" ");let A=i.slice(h.start,h.end);S===sit.TokenKind.BLOCK_STRING?l+=(0,nSn.printBlockString)(h.value,{minimize:!0}):l+=A,d=b}return l}});var gWt=dr(ZAe=>{"use strict";Object.defineProperty(ZAe,"__esModule",{value:!0});ZAe.assertValidName=cSn;ZAe.isValidNameError=hWt;var oSn=J2(),aSn=Cu(),sSn=B_e();function cSn(e){let r=hWt(e);if(r)throw r;return e}function hWt(e){if(typeof e=="string"||(0,oSn.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new aSn.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,sSn.assertName)(e)}catch(r){return r}}});var kWt=dr(O8=>{"use strict";Object.defineProperty(O8,"__esModule",{value:!0});O8.DangerousChangeType=O8.BreakingChangeType=void 0;O8.findBreakingChanges=fSn;O8.findDangerousChanges=mSn;var lSn=gm(),TWt=kT(),yWt=PB(),uSn=FD(),Xf=jd(),pSn=w8(),_Sn=Z_e(),dSn=lrt(),V0;O8.BreakingChangeType=V0;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(V0||(O8.BreakingChangeType=V0={}));var t4;O8.DangerousChangeType=t4;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(t4||(O8.DangerousChangeType=t4={}));function fSn(e,r){return EWt(e,r).filter(i=>i.type in V0)}function mSn(e,r){return EWt(e,r).filter(i=>i.type in t4)}function EWt(e,r){return[...gSn(e,r),...hSn(e,r)]}function hSn(e,r){let i=[],s=c9(e.getDirectives(),r.getDirectives());for(let l of s.removed)i.push({type:V0.DIRECTIVE_REMOVED,description:`${l.name} was removed.`});for(let[l,d]of s.persisted){let h=c9(l.args,d.args);for(let S of h.added)(0,Xf.isRequiredArgument)(S)&&i.push({type:V0.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${S.name} on directive ${l.name} was added.`});for(let S of h.removed)i.push({type:V0.DIRECTIVE_ARG_REMOVED,description:`${S.name} was removed from ${l.name}.`});l.isRepeatable&&!d.isRepeatable&&i.push({type:V0.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${l.name}.`});for(let S of l.locations)d.locations.includes(S)||i.push({type:V0.DIRECTIVE_LOCATION_REMOVED,description:`${S} was removed from ${l.name}.`})}return i}function gSn(e,r){let i=[],s=c9(Object.values(e.getTypeMap()),Object.values(r.getTypeMap()));for(let l of s.removed)i.push({type:V0.TYPE_REMOVED,description:(0,pSn.isSpecifiedScalarType)(l)?`Standard scalar ${l.name} was removed because it is not referenced anymore.`:`${l.name} was removed.`});for(let[l,d]of s.persisted)(0,Xf.isEnumType)(l)&&(0,Xf.isEnumType)(d)?i.push(...SSn(l,d)):(0,Xf.isUnionType)(l)&&(0,Xf.isUnionType)(d)?i.push(...vSn(l,d)):(0,Xf.isInputObjectType)(l)&&(0,Xf.isInputObjectType)(d)?i.push(...ySn(l,d)):(0,Xf.isObjectType)(l)&&(0,Xf.isObjectType)(d)?i.push(...SWt(l,d),...vWt(l,d)):(0,Xf.isInterfaceType)(l)&&(0,Xf.isInterfaceType)(d)?i.push(...SWt(l,d),...vWt(l,d)):l.constructor!==d.constructor&&i.push({type:V0.TYPE_CHANGED_KIND,description:`${l.name} changed from ${bWt(l)} to ${bWt(d)}.`});return i}function ySn(e,r){let i=[],s=c9(Object.values(e.getFields()),Object.values(r.getFields()));for(let l of s.added)(0,Xf.isRequiredInputField)(l)?i.push({type:V0.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${l.name} on input type ${e.name} was added.`}):i.push({type:t4.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${l.name} on input type ${e.name} was added.`});for(let l of s.removed)i.push({type:V0.FIELD_REMOVED,description:`${e.name}.${l.name} was removed.`});for(let[l,d]of s.persisted)xde(l.type,d.type)||i.push({type:V0.FIELD_CHANGED_KIND,description:`${e.name}.${l.name} changed type from ${String(l.type)} to ${String(d.type)}.`});return i}function vSn(e,r){let i=[],s=c9(e.getTypes(),r.getTypes());for(let l of s.added)i.push({type:t4.TYPE_ADDED_TO_UNION,description:`${l.name} was added to union type ${e.name}.`});for(let l of s.removed)i.push({type:V0.TYPE_REMOVED_FROM_UNION,description:`${l.name} was removed from union type ${e.name}.`});return i}function SSn(e,r){let i=[],s=c9(e.getValues(),r.getValues());for(let l of s.added)i.push({type:t4.VALUE_ADDED_TO_ENUM,description:`${l.name} was added to enum type ${e.name}.`});for(let l of s.removed)i.push({type:V0.VALUE_REMOVED_FROM_ENUM,description:`${l.name} was removed from enum type ${e.name}.`});return i}function vWt(e,r){let i=[],s=c9(e.getInterfaces(),r.getInterfaces());for(let l of s.added)i.push({type:t4.IMPLEMENTED_INTERFACE_ADDED,description:`${l.name} added to interfaces implemented by ${e.name}.`});for(let l of s.removed)i.push({type:V0.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${l.name}.`});return i}function SWt(e,r){let i=[],s=c9(Object.values(e.getFields()),Object.values(r.getFields()));for(let l of s.removed)i.push({type:V0.FIELD_REMOVED,description:`${e.name}.${l.name} was removed.`});for(let[l,d]of s.persisted)i.push(...bSn(e,l,d)),bde(l.type,d.type)||i.push({type:V0.FIELD_CHANGED_KIND,description:`${e.name}.${l.name} changed type from ${String(l.type)} to ${String(d.type)}.`});return i}function bSn(e,r,i){let s=[],l=c9(r.args,i.args);for(let d of l.removed)s.push({type:V0.ARG_REMOVED,description:`${e.name}.${r.name} arg ${d.name} was removed.`});for(let[d,h]of l.persisted)if(!xde(d.type,h.type))s.push({type:V0.ARG_CHANGED_KIND,description:`${e.name}.${r.name} arg ${d.name} has changed type from ${String(d.type)} to ${String(h.type)}.`});else if(d.defaultValue!==void 0)if(h.defaultValue===void 0)s.push({type:t4.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${r.name} arg ${d.name} defaultValue was removed.`});else{let b=xWt(d.defaultValue,d.type),A=xWt(h.defaultValue,h.type);b!==A&&s.push({type:t4.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${r.name} arg ${d.name} has changed defaultValue from ${b} to ${A}.`})}for(let d of l.added)(0,Xf.isRequiredArgument)(d)?s.push({type:V0.REQUIRED_ARG_ADDED,description:`A required arg ${d.name} on ${e.name}.${r.name} was added.`}):s.push({type:t4.OPTIONAL_ARG_ADDED,description:`An optional arg ${d.name} on ${e.name}.${r.name} was added.`});return s}function bde(e,r){return(0,Xf.isListType)(e)?(0,Xf.isListType)(r)&&bde(e.ofType,r.ofType)||(0,Xf.isNonNullType)(r)&&bde(e,r.ofType):(0,Xf.isNonNullType)(e)?(0,Xf.isNonNullType)(r)&&bde(e.ofType,r.ofType):(0,Xf.isNamedType)(r)&&e.name===r.name||(0,Xf.isNonNullType)(r)&&bde(e,r.ofType)}function xde(e,r){return(0,Xf.isListType)(e)?(0,Xf.isListType)(r)&&xde(e.ofType,r.ofType):(0,Xf.isNonNullType)(e)?(0,Xf.isNonNullType)(r)&&xde(e.ofType,r.ofType)||!(0,Xf.isNonNullType)(r)&&xde(e.ofType,r):(0,Xf.isNamedType)(r)&&e.name===r.name}function bWt(e){if((0,Xf.isScalarType)(e))return"a Scalar type";if((0,Xf.isObjectType)(e))return"an Object type";if((0,Xf.isInterfaceType)(e))return"an Interface type";if((0,Xf.isUnionType)(e))return"a Union type";if((0,Xf.isEnumType)(e))return"an Enum type";if((0,Xf.isInputObjectType)(e))return"an Input type";(0,TWt.invariant)(!1,"Unexpected type: "+(0,lSn.inspect)(e))}function xWt(e,r){let i=(0,_Sn.astFromValue)(e,r);return i!=null||(0,TWt.invariant)(!1),(0,uSn.print)((0,dSn.sortValueNode)(i))}function c9(e,r){let i=[],s=[],l=[],d=(0,yWt.keyMap)(e,({name:S})=>S),h=(0,yWt.keyMap)(r,({name:S})=>S);for(let S of e){let b=h[S.name];b===void 0?s.push(S):l.push([S,b])}for(let S of r)d[S.name]===void 0&&i.push(S);return{added:i,persisted:l,removed:s}}});var DWt=dr(XAe=>{"use strict";Object.defineProperty(XAe,"__esModule",{value:!0});XAe.resolveASTSchemaCoordinate=CWt;XAe.resolveSchemaCoordinate=TSn;var eW=gm(),Tde=Md(),xSn=BV(),BB=jd();function TSn(e,r){return CWt(e,(0,xSn.parseSchemaCoordinate)(r))}function ESn(e,r){let i=r.name.value,s=e.getType(i);if(s!=null)return{kind:"NamedType",type:s}}function kSn(e,r){let i=r.name.value,s=e.getType(i);if(!s)throw new Error(`Expected ${(0,eW.inspect)(i)} to be defined as a type in the schema.`);if(!(0,BB.isEnumType)(s)&&!(0,BB.isInputObjectType)(s)&&!(0,BB.isObjectType)(s)&&!(0,BB.isInterfaceType)(s))throw new Error(`Expected ${(0,eW.inspect)(i)} to be an Enum, Input Object, Object or Interface type.`);if((0,BB.isEnumType)(s)){let h=r.memberName.value,S=s.getValue(h);return S==null?void 0:{kind:"EnumValue",type:s,enumValue:S}}if((0,BB.isInputObjectType)(s)){let h=r.memberName.value,S=s.getFields()[h];return S==null?void 0:{kind:"InputField",type:s,inputField:S}}let l=r.memberName.value,d=s.getFields()[l];if(d!=null)return{kind:"Field",type:s,field:d}}function CSn(e,r){let i=r.name.value,s=e.getType(i);if(s==null)throw new Error(`Expected ${(0,eW.inspect)(i)} to be defined as a type in the schema.`);if(!(0,BB.isObjectType)(s)&&!(0,BB.isInterfaceType)(s))throw new Error(`Expected ${(0,eW.inspect)(i)} to be an object type or interface type.`);let l=r.fieldName.value,d=s.getFields()[l];if(d==null)throw new Error(`Expected ${(0,eW.inspect)(l)} to exist as a field of type ${(0,eW.inspect)(i)} in the schema.`);let h=r.argumentName.value,S=d.args.find(b=>b.name===h);if(S!=null)return{kind:"FieldArgument",type:s,field:d,fieldArgument:S}}function DSn(e,r){let i=r.name.value,s=e.getDirective(i);if(s)return{kind:"Directive",directive:s}}function ASn(e,r){let i=r.name.value,s=e.getDirective(i);if(!s)throw new Error(`Expected ${(0,eW.inspect)(i)} to be defined as a directive in the schema.`);let{argumentName:{value:l}}=r,d=s.args.find(h=>h.name===l);if(d)return{kind:"DirectiveArgument",directive:s,directiveArgument:d}}function CWt(e,r){switch(r.kind){case Tde.Kind.TYPE_COORDINATE:return ESn(e,r);case Tde.Kind.MEMBER_COORDINATE:return kSn(e,r);case Tde.Kind.ARGUMENT_COORDINATE:return CSn(e,r);case Tde.Kind.DIRECTIVE_COORDINATE:return DSn(e,r);case Tde.Kind.DIRECTIVE_ARGUMENT_COORDINATE:return ASn(e,r)}}});var NWt=dr(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Object.defineProperty(Zd,"BreakingChangeType",{enumerable:!0,get:function(){return YAe.BreakingChangeType}});Object.defineProperty(Zd,"DangerousChangeType",{enumerable:!0,get:function(){return YAe.DangerousChangeType}});Object.defineProperty(Zd,"TypeInfo",{enumerable:!0,get:function(){return wWt.TypeInfo}});Object.defineProperty(Zd,"assertValidName",{enumerable:!0,get:function(){return IWt.assertValidName}});Object.defineProperty(Zd,"astFromValue",{enumerable:!0,get:function(){return BSn.astFromValue}});Object.defineProperty(Zd,"buildASTSchema",{enumerable:!0,get:function(){return AWt.buildASTSchema}});Object.defineProperty(Zd,"buildClientSchema",{enumerable:!0,get:function(){return OSn.buildClientSchema}});Object.defineProperty(Zd,"buildSchema",{enumerable:!0,get:function(){return AWt.buildSchema}});Object.defineProperty(Zd,"coerceInputValue",{enumerable:!0,get:function(){return $Sn.coerceInputValue}});Object.defineProperty(Zd,"concatAST",{enumerable:!0,get:function(){return USn.concatAST}});Object.defineProperty(Zd,"doTypesOverlap",{enumerable:!0,get:function(){return uit.doTypesOverlap}});Object.defineProperty(Zd,"extendSchema",{enumerable:!0,get:function(){return FSn.extendSchema}});Object.defineProperty(Zd,"findBreakingChanges",{enumerable:!0,get:function(){return YAe.findBreakingChanges}});Object.defineProperty(Zd,"findDangerousChanges",{enumerable:!0,get:function(){return YAe.findDangerousChanges}});Object.defineProperty(Zd,"getIntrospectionQuery",{enumerable:!0,get:function(){return wSn.getIntrospectionQuery}});Object.defineProperty(Zd,"getOperationAST",{enumerable:!0,get:function(){return ISn.getOperationAST}});Object.defineProperty(Zd,"getOperationRootType",{enumerable:!0,get:function(){return PSn.getOperationRootType}});Object.defineProperty(Zd,"introspectionFromSchema",{enumerable:!0,get:function(){return NSn.introspectionFromSchema}});Object.defineProperty(Zd,"isEqualType",{enumerable:!0,get:function(){return uit.isEqualType}});Object.defineProperty(Zd,"isTypeSubTypeOf",{enumerable:!0,get:function(){return uit.isTypeSubTypeOf}});Object.defineProperty(Zd,"isValidNameError",{enumerable:!0,get:function(){return IWt.isValidNameError}});Object.defineProperty(Zd,"lexicographicSortSchema",{enumerable:!0,get:function(){return RSn.lexicographicSortSchema}});Object.defineProperty(Zd,"printIntrospectionSchema",{enumerable:!0,get:function(){return lit.printIntrospectionSchema}});Object.defineProperty(Zd,"printSchema",{enumerable:!0,get:function(){return lit.printSchema}});Object.defineProperty(Zd,"printType",{enumerable:!0,get:function(){return lit.printType}});Object.defineProperty(Zd,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return PWt.resolveASTSchemaCoordinate}});Object.defineProperty(Zd,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return PWt.resolveSchemaCoordinate}});Object.defineProperty(Zd,"separateOperations",{enumerable:!0,get:function(){return zSn.separateOperations}});Object.defineProperty(Zd,"stripIgnoredCharacters",{enumerable:!0,get:function(){return qSn.stripIgnoredCharacters}});Object.defineProperty(Zd,"typeFromAST",{enumerable:!0,get:function(){return LSn.typeFromAST}});Object.defineProperty(Zd,"valueFromAST",{enumerable:!0,get:function(){return MSn.valueFromAST}});Object.defineProperty(Zd,"valueFromASTUntyped",{enumerable:!0,get:function(){return jSn.valueFromASTUntyped}});Object.defineProperty(Zd,"visitWithTypeInfo",{enumerable:!0,get:function(){return wWt.visitWithTypeInfo}});var wSn=Vnt(),ISn=jVt(),PSn=BVt(),NSn=$Vt(),OSn=zVt(),AWt=XVt(),FSn=Znt(),RSn=tWt(),lit=cWt(),LSn=I8(),MSn=sde(),jSn=ott(),BSn=Z_e(),wWt=yAe(),$Sn=Prt(),USn=lWt(),zSn=_Wt(),qSn=mWt(),uit=J_e(),IWt=gWt(),YAe=kWt(),PWt=DWt()});var RWt=dr(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Object.defineProperty(Tn,"BREAK",{enumerable:!0,get:function(){return Lf.BREAK}});Object.defineProperty(Tn,"BreakingChangeType",{enumerable:!0,get:function(){return Mf.BreakingChangeType}});Object.defineProperty(Tn,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return xs.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(Tn,"DangerousChangeType",{enumerable:!0,get:function(){return Mf.DangerousChangeType}});Object.defineProperty(Tn,"DirectiveLocation",{enumerable:!0,get:function(){return Lf.DirectiveLocation}});Object.defineProperty(Tn,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return k_.ExecutableDefinitionsRule}});Object.defineProperty(Tn,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return k_.FieldsOnCorrectTypeRule}});Object.defineProperty(Tn,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return k_.FragmentsOnCompositeTypesRule}});Object.defineProperty(Tn,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return xs.GRAPHQL_MAX_INT}});Object.defineProperty(Tn,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return xs.GRAPHQL_MIN_INT}});Object.defineProperty(Tn,"GraphQLBoolean",{enumerable:!0,get:function(){return xs.GraphQLBoolean}});Object.defineProperty(Tn,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return xs.GraphQLDeprecatedDirective}});Object.defineProperty(Tn,"GraphQLDirective",{enumerable:!0,get:function(){return xs.GraphQLDirective}});Object.defineProperty(Tn,"GraphQLEnumType",{enumerable:!0,get:function(){return xs.GraphQLEnumType}});Object.defineProperty(Tn,"GraphQLError",{enumerable:!0,get:function(){return Ede.GraphQLError}});Object.defineProperty(Tn,"GraphQLFloat",{enumerable:!0,get:function(){return xs.GraphQLFloat}});Object.defineProperty(Tn,"GraphQLID",{enumerable:!0,get:function(){return xs.GraphQLID}});Object.defineProperty(Tn,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return xs.GraphQLIncludeDirective}});Object.defineProperty(Tn,"GraphQLInputObjectType",{enumerable:!0,get:function(){return xs.GraphQLInputObjectType}});Object.defineProperty(Tn,"GraphQLInt",{enumerable:!0,get:function(){return xs.GraphQLInt}});Object.defineProperty(Tn,"GraphQLInterfaceType",{enumerable:!0,get:function(){return xs.GraphQLInterfaceType}});Object.defineProperty(Tn,"GraphQLList",{enumerable:!0,get:function(){return xs.GraphQLList}});Object.defineProperty(Tn,"GraphQLNonNull",{enumerable:!0,get:function(){return xs.GraphQLNonNull}});Object.defineProperty(Tn,"GraphQLObjectType",{enumerable:!0,get:function(){return xs.GraphQLObjectType}});Object.defineProperty(Tn,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return xs.GraphQLOneOfDirective}});Object.defineProperty(Tn,"GraphQLScalarType",{enumerable:!0,get:function(){return xs.GraphQLScalarType}});Object.defineProperty(Tn,"GraphQLSchema",{enumerable:!0,get:function(){return xs.GraphQLSchema}});Object.defineProperty(Tn,"GraphQLSkipDirective",{enumerable:!0,get:function(){return xs.GraphQLSkipDirective}});Object.defineProperty(Tn,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return xs.GraphQLSpecifiedByDirective}});Object.defineProperty(Tn,"GraphQLString",{enumerable:!0,get:function(){return xs.GraphQLString}});Object.defineProperty(Tn,"GraphQLUnionType",{enumerable:!0,get:function(){return xs.GraphQLUnionType}});Object.defineProperty(Tn,"Kind",{enumerable:!0,get:function(){return Lf.Kind}});Object.defineProperty(Tn,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return k_.KnownArgumentNamesRule}});Object.defineProperty(Tn,"KnownDirectivesRule",{enumerable:!0,get:function(){return k_.KnownDirectivesRule}});Object.defineProperty(Tn,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return k_.KnownFragmentNamesRule}});Object.defineProperty(Tn,"KnownTypeNamesRule",{enumerable:!0,get:function(){return k_.KnownTypeNamesRule}});Object.defineProperty(Tn,"Lexer",{enumerable:!0,get:function(){return Lf.Lexer}});Object.defineProperty(Tn,"Location",{enumerable:!0,get:function(){return Lf.Location}});Object.defineProperty(Tn,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return k_.LoneAnonymousOperationRule}});Object.defineProperty(Tn,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return k_.LoneSchemaDefinitionRule}});Object.defineProperty(Tn,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return k_.MaxIntrospectionDepthRule}});Object.defineProperty(Tn,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return k_.NoDeprecatedCustomRule}});Object.defineProperty(Tn,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return k_.NoFragmentCyclesRule}});Object.defineProperty(Tn,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return k_.NoSchemaIntrospectionCustomRule}});Object.defineProperty(Tn,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return k_.NoUndefinedVariablesRule}});Object.defineProperty(Tn,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return k_.NoUnusedFragmentsRule}});Object.defineProperty(Tn,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return k_.NoUnusedVariablesRule}});Object.defineProperty(Tn,"OperationTypeNode",{enumerable:!0,get:function(){return Lf.OperationTypeNode}});Object.defineProperty(Tn,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return k_.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Tn,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return k_.PossibleFragmentSpreadsRule}});Object.defineProperty(Tn,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return k_.PossibleTypeExtensionsRule}});Object.defineProperty(Tn,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return k_.ProvidedRequiredArgumentsRule}});Object.defineProperty(Tn,"ScalarLeafsRule",{enumerable:!0,get:function(){return k_.ScalarLeafsRule}});Object.defineProperty(Tn,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return xs.SchemaMetaFieldDef}});Object.defineProperty(Tn,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return k_.SingleFieldSubscriptionsRule}});Object.defineProperty(Tn,"Source",{enumerable:!0,get:function(){return Lf.Source}});Object.defineProperty(Tn,"Token",{enumerable:!0,get:function(){return Lf.Token}});Object.defineProperty(Tn,"TokenKind",{enumerable:!0,get:function(){return Lf.TokenKind}});Object.defineProperty(Tn,"TypeInfo",{enumerable:!0,get:function(){return Mf.TypeInfo}});Object.defineProperty(Tn,"TypeKind",{enumerable:!0,get:function(){return xs.TypeKind}});Object.defineProperty(Tn,"TypeMetaFieldDef",{enumerable:!0,get:function(){return xs.TypeMetaFieldDef}});Object.defineProperty(Tn,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return xs.TypeNameMetaFieldDef}});Object.defineProperty(Tn,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return k_.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(Tn,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return k_.UniqueArgumentNamesRule}});Object.defineProperty(Tn,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return k_.UniqueDirectiveNamesRule}});Object.defineProperty(Tn,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return k_.UniqueDirectivesPerLocationRule}});Object.defineProperty(Tn,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return k_.UniqueEnumValueNamesRule}});Object.defineProperty(Tn,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return k_.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Tn,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return k_.UniqueFragmentNamesRule}});Object.defineProperty(Tn,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return k_.UniqueInputFieldNamesRule}});Object.defineProperty(Tn,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return k_.UniqueOperationNamesRule}});Object.defineProperty(Tn,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return k_.UniqueOperationTypesRule}});Object.defineProperty(Tn,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return k_.UniqueTypeNamesRule}});Object.defineProperty(Tn,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return k_.UniqueVariableNamesRule}});Object.defineProperty(Tn,"ValidationContext",{enumerable:!0,get:function(){return k_.ValidationContext}});Object.defineProperty(Tn,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return k_.ValuesOfCorrectTypeRule}});Object.defineProperty(Tn,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return k_.VariablesAreInputTypesRule}});Object.defineProperty(Tn,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return k_.VariablesInAllowedPositionRule}});Object.defineProperty(Tn,"__Directive",{enumerable:!0,get:function(){return xs.__Directive}});Object.defineProperty(Tn,"__DirectiveLocation",{enumerable:!0,get:function(){return xs.__DirectiveLocation}});Object.defineProperty(Tn,"__EnumValue",{enumerable:!0,get:function(){return xs.__EnumValue}});Object.defineProperty(Tn,"__Field",{enumerable:!0,get:function(){return xs.__Field}});Object.defineProperty(Tn,"__InputValue",{enumerable:!0,get:function(){return xs.__InputValue}});Object.defineProperty(Tn,"__Schema",{enumerable:!0,get:function(){return xs.__Schema}});Object.defineProperty(Tn,"__Type",{enumerable:!0,get:function(){return xs.__Type}});Object.defineProperty(Tn,"__TypeKind",{enumerable:!0,get:function(){return xs.__TypeKind}});Object.defineProperty(Tn,"assertAbstractType",{enumerable:!0,get:function(){return xs.assertAbstractType}});Object.defineProperty(Tn,"assertCompositeType",{enumerable:!0,get:function(){return xs.assertCompositeType}});Object.defineProperty(Tn,"assertDirective",{enumerable:!0,get:function(){return xs.assertDirective}});Object.defineProperty(Tn,"assertEnumType",{enumerable:!0,get:function(){return xs.assertEnumType}});Object.defineProperty(Tn,"assertEnumValueName",{enumerable:!0,get:function(){return xs.assertEnumValueName}});Object.defineProperty(Tn,"assertInputObjectType",{enumerable:!0,get:function(){return xs.assertInputObjectType}});Object.defineProperty(Tn,"assertInputType",{enumerable:!0,get:function(){return xs.assertInputType}});Object.defineProperty(Tn,"assertInterfaceType",{enumerable:!0,get:function(){return xs.assertInterfaceType}});Object.defineProperty(Tn,"assertLeafType",{enumerable:!0,get:function(){return xs.assertLeafType}});Object.defineProperty(Tn,"assertListType",{enumerable:!0,get:function(){return xs.assertListType}});Object.defineProperty(Tn,"assertName",{enumerable:!0,get:function(){return xs.assertName}});Object.defineProperty(Tn,"assertNamedType",{enumerable:!0,get:function(){return xs.assertNamedType}});Object.defineProperty(Tn,"assertNonNullType",{enumerable:!0,get:function(){return xs.assertNonNullType}});Object.defineProperty(Tn,"assertNullableType",{enumerable:!0,get:function(){return xs.assertNullableType}});Object.defineProperty(Tn,"assertObjectType",{enumerable:!0,get:function(){return xs.assertObjectType}});Object.defineProperty(Tn,"assertOutputType",{enumerable:!0,get:function(){return xs.assertOutputType}});Object.defineProperty(Tn,"assertScalarType",{enumerable:!0,get:function(){return xs.assertScalarType}});Object.defineProperty(Tn,"assertSchema",{enumerable:!0,get:function(){return xs.assertSchema}});Object.defineProperty(Tn,"assertType",{enumerable:!0,get:function(){return xs.assertType}});Object.defineProperty(Tn,"assertUnionType",{enumerable:!0,get:function(){return xs.assertUnionType}});Object.defineProperty(Tn,"assertValidName",{enumerable:!0,get:function(){return Mf.assertValidName}});Object.defineProperty(Tn,"assertValidSchema",{enumerable:!0,get:function(){return xs.assertValidSchema}});Object.defineProperty(Tn,"assertWrappingType",{enumerable:!0,get:function(){return xs.assertWrappingType}});Object.defineProperty(Tn,"astFromValue",{enumerable:!0,get:function(){return Mf.astFromValue}});Object.defineProperty(Tn,"buildASTSchema",{enumerable:!0,get:function(){return Mf.buildASTSchema}});Object.defineProperty(Tn,"buildClientSchema",{enumerable:!0,get:function(){return Mf.buildClientSchema}});Object.defineProperty(Tn,"buildSchema",{enumerable:!0,get:function(){return Mf.buildSchema}});Object.defineProperty(Tn,"coerceInputValue",{enumerable:!0,get:function(){return Mf.coerceInputValue}});Object.defineProperty(Tn,"concatAST",{enumerable:!0,get:function(){return Mf.concatAST}});Object.defineProperty(Tn,"createSourceEventStream",{enumerable:!0,get:function(){return F8.createSourceEventStream}});Object.defineProperty(Tn,"defaultFieldResolver",{enumerable:!0,get:function(){return F8.defaultFieldResolver}});Object.defineProperty(Tn,"defaultTypeResolver",{enumerable:!0,get:function(){return F8.defaultTypeResolver}});Object.defineProperty(Tn,"doTypesOverlap",{enumerable:!0,get:function(){return Mf.doTypesOverlap}});Object.defineProperty(Tn,"execute",{enumerable:!0,get:function(){return F8.execute}});Object.defineProperty(Tn,"executeSync",{enumerable:!0,get:function(){return F8.executeSync}});Object.defineProperty(Tn,"extendSchema",{enumerable:!0,get:function(){return Mf.extendSchema}});Object.defineProperty(Tn,"findBreakingChanges",{enumerable:!0,get:function(){return Mf.findBreakingChanges}});Object.defineProperty(Tn,"findDangerousChanges",{enumerable:!0,get:function(){return Mf.findDangerousChanges}});Object.defineProperty(Tn,"formatError",{enumerable:!0,get:function(){return Ede.formatError}});Object.defineProperty(Tn,"getArgumentValues",{enumerable:!0,get:function(){return F8.getArgumentValues}});Object.defineProperty(Tn,"getDirectiveValues",{enumerable:!0,get:function(){return F8.getDirectiveValues}});Object.defineProperty(Tn,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Lf.getEnterLeaveForKind}});Object.defineProperty(Tn,"getIntrospectionQuery",{enumerable:!0,get:function(){return Mf.getIntrospectionQuery}});Object.defineProperty(Tn,"getLocation",{enumerable:!0,get:function(){return Lf.getLocation}});Object.defineProperty(Tn,"getNamedType",{enumerable:!0,get:function(){return xs.getNamedType}});Object.defineProperty(Tn,"getNullableType",{enumerable:!0,get:function(){return xs.getNullableType}});Object.defineProperty(Tn,"getOperationAST",{enumerable:!0,get:function(){return Mf.getOperationAST}});Object.defineProperty(Tn,"getOperationRootType",{enumerable:!0,get:function(){return Mf.getOperationRootType}});Object.defineProperty(Tn,"getVariableValues",{enumerable:!0,get:function(){return F8.getVariableValues}});Object.defineProperty(Tn,"getVisitFn",{enumerable:!0,get:function(){return Lf.getVisitFn}});Object.defineProperty(Tn,"graphql",{enumerable:!0,get:function(){return FWt.graphql}});Object.defineProperty(Tn,"graphqlSync",{enumerable:!0,get:function(){return FWt.graphqlSync}});Object.defineProperty(Tn,"introspectionFromSchema",{enumerable:!0,get:function(){return Mf.introspectionFromSchema}});Object.defineProperty(Tn,"introspectionTypes",{enumerable:!0,get:function(){return xs.introspectionTypes}});Object.defineProperty(Tn,"isAbstractType",{enumerable:!0,get:function(){return xs.isAbstractType}});Object.defineProperty(Tn,"isCompositeType",{enumerable:!0,get:function(){return xs.isCompositeType}});Object.defineProperty(Tn,"isConstValueNode",{enumerable:!0,get:function(){return Lf.isConstValueNode}});Object.defineProperty(Tn,"isDefinitionNode",{enumerable:!0,get:function(){return Lf.isDefinitionNode}});Object.defineProperty(Tn,"isDirective",{enumerable:!0,get:function(){return xs.isDirective}});Object.defineProperty(Tn,"isEnumType",{enumerable:!0,get:function(){return xs.isEnumType}});Object.defineProperty(Tn,"isEqualType",{enumerable:!0,get:function(){return Mf.isEqualType}});Object.defineProperty(Tn,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Lf.isExecutableDefinitionNode}});Object.defineProperty(Tn,"isInputObjectType",{enumerable:!0,get:function(){return xs.isInputObjectType}});Object.defineProperty(Tn,"isInputType",{enumerable:!0,get:function(){return xs.isInputType}});Object.defineProperty(Tn,"isInterfaceType",{enumerable:!0,get:function(){return xs.isInterfaceType}});Object.defineProperty(Tn,"isIntrospectionType",{enumerable:!0,get:function(){return xs.isIntrospectionType}});Object.defineProperty(Tn,"isLeafType",{enumerable:!0,get:function(){return xs.isLeafType}});Object.defineProperty(Tn,"isListType",{enumerable:!0,get:function(){return xs.isListType}});Object.defineProperty(Tn,"isNamedType",{enumerable:!0,get:function(){return xs.isNamedType}});Object.defineProperty(Tn,"isNonNullType",{enumerable:!0,get:function(){return xs.isNonNullType}});Object.defineProperty(Tn,"isNullableType",{enumerable:!0,get:function(){return xs.isNullableType}});Object.defineProperty(Tn,"isObjectType",{enumerable:!0,get:function(){return xs.isObjectType}});Object.defineProperty(Tn,"isOutputType",{enumerable:!0,get:function(){return xs.isOutputType}});Object.defineProperty(Tn,"isRequiredArgument",{enumerable:!0,get:function(){return xs.isRequiredArgument}});Object.defineProperty(Tn,"isRequiredInputField",{enumerable:!0,get:function(){return xs.isRequiredInputField}});Object.defineProperty(Tn,"isScalarType",{enumerable:!0,get:function(){return xs.isScalarType}});Object.defineProperty(Tn,"isSchema",{enumerable:!0,get:function(){return xs.isSchema}});Object.defineProperty(Tn,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return Lf.isSchemaCoordinateNode}});Object.defineProperty(Tn,"isSelectionNode",{enumerable:!0,get:function(){return Lf.isSelectionNode}});Object.defineProperty(Tn,"isSpecifiedDirective",{enumerable:!0,get:function(){return xs.isSpecifiedDirective}});Object.defineProperty(Tn,"isSpecifiedScalarType",{enumerable:!0,get:function(){return xs.isSpecifiedScalarType}});Object.defineProperty(Tn,"isType",{enumerable:!0,get:function(){return xs.isType}});Object.defineProperty(Tn,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Lf.isTypeDefinitionNode}});Object.defineProperty(Tn,"isTypeExtensionNode",{enumerable:!0,get:function(){return Lf.isTypeExtensionNode}});Object.defineProperty(Tn,"isTypeNode",{enumerable:!0,get:function(){return Lf.isTypeNode}});Object.defineProperty(Tn,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Mf.isTypeSubTypeOf}});Object.defineProperty(Tn,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Lf.isTypeSystemDefinitionNode}});Object.defineProperty(Tn,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Lf.isTypeSystemExtensionNode}});Object.defineProperty(Tn,"isUnionType",{enumerable:!0,get:function(){return xs.isUnionType}});Object.defineProperty(Tn,"isValidNameError",{enumerable:!0,get:function(){return Mf.isValidNameError}});Object.defineProperty(Tn,"isValueNode",{enumerable:!0,get:function(){return Lf.isValueNode}});Object.defineProperty(Tn,"isWrappingType",{enumerable:!0,get:function(){return xs.isWrappingType}});Object.defineProperty(Tn,"lexicographicSortSchema",{enumerable:!0,get:function(){return Mf.lexicographicSortSchema}});Object.defineProperty(Tn,"locatedError",{enumerable:!0,get:function(){return Ede.locatedError}});Object.defineProperty(Tn,"parse",{enumerable:!0,get:function(){return Lf.parse}});Object.defineProperty(Tn,"parseConstValue",{enumerable:!0,get:function(){return Lf.parseConstValue}});Object.defineProperty(Tn,"parseSchemaCoordinate",{enumerable:!0,get:function(){return Lf.parseSchemaCoordinate}});Object.defineProperty(Tn,"parseType",{enumerable:!0,get:function(){return Lf.parseType}});Object.defineProperty(Tn,"parseValue",{enumerable:!0,get:function(){return Lf.parseValue}});Object.defineProperty(Tn,"print",{enumerable:!0,get:function(){return Lf.print}});Object.defineProperty(Tn,"printError",{enumerable:!0,get:function(){return Ede.printError}});Object.defineProperty(Tn,"printIntrospectionSchema",{enumerable:!0,get:function(){return Mf.printIntrospectionSchema}});Object.defineProperty(Tn,"printLocation",{enumerable:!0,get:function(){return Lf.printLocation}});Object.defineProperty(Tn,"printSchema",{enumerable:!0,get:function(){return Mf.printSchema}});Object.defineProperty(Tn,"printSourceLocation",{enumerable:!0,get:function(){return Lf.printSourceLocation}});Object.defineProperty(Tn,"printType",{enumerable:!0,get:function(){return Mf.printType}});Object.defineProperty(Tn,"recommendedRules",{enumerable:!0,get:function(){return k_.recommendedRules}});Object.defineProperty(Tn,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return Mf.resolveASTSchemaCoordinate}});Object.defineProperty(Tn,"resolveObjMapThunk",{enumerable:!0,get:function(){return xs.resolveObjMapThunk}});Object.defineProperty(Tn,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return xs.resolveReadonlyArrayThunk}});Object.defineProperty(Tn,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return Mf.resolveSchemaCoordinate}});Object.defineProperty(Tn,"responsePathAsArray",{enumerable:!0,get:function(){return F8.responsePathAsArray}});Object.defineProperty(Tn,"separateOperations",{enumerable:!0,get:function(){return Mf.separateOperations}});Object.defineProperty(Tn,"specifiedDirectives",{enumerable:!0,get:function(){return xs.specifiedDirectives}});Object.defineProperty(Tn,"specifiedRules",{enumerable:!0,get:function(){return k_.specifiedRules}});Object.defineProperty(Tn,"specifiedScalarTypes",{enumerable:!0,get:function(){return xs.specifiedScalarTypes}});Object.defineProperty(Tn,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Mf.stripIgnoredCharacters}});Object.defineProperty(Tn,"subscribe",{enumerable:!0,get:function(){return F8.subscribe}});Object.defineProperty(Tn,"syntaxError",{enumerable:!0,get:function(){return Ede.syntaxError}});Object.defineProperty(Tn,"typeFromAST",{enumerable:!0,get:function(){return Mf.typeFromAST}});Object.defineProperty(Tn,"validate",{enumerable:!0,get:function(){return k_.validate}});Object.defineProperty(Tn,"validateSchema",{enumerable:!0,get:function(){return xs.validateSchema}});Object.defineProperty(Tn,"valueFromAST",{enumerable:!0,get:function(){return Mf.valueFromAST}});Object.defineProperty(Tn,"valueFromASTUntyped",{enumerable:!0,get:function(){return Mf.valueFromASTUntyped}});Object.defineProperty(Tn,"version",{enumerable:!0,get:function(){return OWt.version}});Object.defineProperty(Tn,"versionInfo",{enumerable:!0,get:function(){return OWt.versionInfo}});Object.defineProperty(Tn,"visit",{enumerable:!0,get:function(){return Lf.visit}});Object.defineProperty(Tn,"visitInParallel",{enumerable:!0,get:function(){return Lf.visitInParallel}});Object.defineProperty(Tn,"visitWithTypeInfo",{enumerable:!0,get:function(){return Mf.visitWithTypeInfo}});var OWt=Dzt(),FWt=vVt(),xs=xVt(),Lf=EVt(),F8=NVt(),k_=LVt(),Ede=MVt(),Mf=NWt()});var xf=dr(px=>{"use strict";var git=Symbol.for("yaml.alias"),nGt=Symbol.for("yaml.document"),owe=Symbol.for("yaml.map"),iGt=Symbol.for("yaml.pair"),yit=Symbol.for("yaml.scalar"),awe=Symbol.for("yaml.seq"),l9=Symbol.for("yaml.node.type"),wbn=e=>!!e&&typeof e=="object"&&e[l9]===git,Ibn=e=>!!e&&typeof e=="object"&&e[l9]===nGt,Pbn=e=>!!e&&typeof e=="object"&&e[l9]===owe,Nbn=e=>!!e&&typeof e=="object"&&e[l9]===iGt,oGt=e=>!!e&&typeof e=="object"&&e[l9]===yit,Obn=e=>!!e&&typeof e=="object"&&e[l9]===awe;function aGt(e){if(e&&typeof e=="object")switch(e[l9]){case owe:case awe:return!0}return!1}function Fbn(e){if(e&&typeof e=="object")switch(e[l9]){case git:case owe:case yit:case awe:return!0}return!1}var Rbn=e=>(oGt(e)||aGt(e))&&!!e.anchor;px.ALIAS=git;px.DOC=nGt;px.MAP=owe;px.NODE_TYPE=l9;px.PAIR=iGt;px.SCALAR=yit;px.SEQ=awe;px.hasAnchor=Rbn;px.isAlias=wbn;px.isCollection=aGt;px.isDocument=Ibn;px.isMap=Pbn;px.isNode=Fbn;px.isPair=Nbn;px.isScalar=oGt;px.isSeq=Obn});var Ide=dr(vit=>{"use strict";var tS=xf(),Ak=Symbol("break visit"),sGt=Symbol("skip children"),R8=Symbol("remove node");function swe(e,r){let i=cGt(r);tS.isDocument(e)?Ree(null,e.contents,i,Object.freeze([e]))===R8&&(e.contents=null):Ree(null,e,i,Object.freeze([]))}swe.BREAK=Ak;swe.SKIP=sGt;swe.REMOVE=R8;function Ree(e,r,i,s){let l=lGt(e,r,i,s);if(tS.isNode(l)||tS.isPair(l))return uGt(e,s,l),Ree(e,l,i,s);if(typeof l!="symbol"){if(tS.isCollection(r)){s=Object.freeze(s.concat(r));for(let d=0;d{"use strict";var pGt=xf(),Lbn=Ide(),Mbn={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},jbn=e=>e.replace(/[!,[\]{}]/g,r=>Mbn[r]),Pde=class e{constructor(r,i){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,r),this.tags=Object.assign({},e.defaultTags,i)}clone(){let r=new e(this.yaml,this.tags);return r.docStart=this.docStart,r}atDocument(){let r=new e(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},e.defaultTags);break}return r}add(r,i){this.atNextDocument&&(this.yaml={explicit:e.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},e.defaultTags),this.atNextDocument=!1);let s=r.trim().split(/[ \t]+/),l=s.shift();switch(l){case"%TAG":{if(s.length!==2&&(i(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;let[d,h]=s;return this.tags[d]=h,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return i(0,"%YAML directive should contain exactly one part"),!1;let[d]=s;if(d==="1.1"||d==="1.2")return this.yaml.version=d,!0;{let h=/^\d+\.\d+$/.test(d);return i(6,`Unsupported YAML version ${d}`,h),!1}}default:return i(0,`Unknown directive ${l}`,!0),!1}}tagName(r,i){if(r==="!")return"!";if(r[0]!=="!")return i(`Not a valid tag: ${r}`),null;if(r[1]==="<"){let h=r.slice(2,-1);return h==="!"||h==="!!"?(i(`Verbatim tags aren't resolved, so ${r} is invalid.`),null):(r[r.length-1]!==">"&&i("Verbatim tags must end with a >"),h)}let[,s,l]=r.match(/^(.*!)([^!]*)$/s);l||i(`The ${r} tag has no suffix`);let d=this.tags[s];if(d)try{return d+decodeURIComponent(l)}catch(h){return i(String(h)),null}return s==="!"?r:(i(`Could not resolve tag: ${r}`),null)}tagString(r){for(let[i,s]of Object.entries(this.tags))if(r.startsWith(s))return i+jbn(r.substring(s.length));return r[0]==="!"?r:`!<${r}>`}toString(r){let i=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags),l;if(r&&s.length>0&&pGt.isNode(r.contents)){let d={};Lbn.visit(r.contents,(h,S)=>{pGt.isNode(S)&&S.tag&&(d[S.tag]=!0)}),l=Object.keys(d)}else l=[];for(let[d,h]of s)d==="!!"&&h==="tag:yaml.org,2002:"||(!r||l.some(S=>S.startsWith(h)))&&i.push(`%TAG ${d} ${h}`);return i.join(` +`)}};Pde.defaultYaml={explicit:!1,version:"1.2"};Pde.defaultTags={"!!":"tag:yaml.org,2002:"};_Gt.Directives=Pde});var lwe=dr(Nde=>{"use strict";var dGt=xf(),Bbn=Ide();function $bn(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let i=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(i)}return!0}function fGt(e){let r=new Set;return Bbn.visit(e,{Value(i,s){s.anchor&&r.add(s.anchor)}}),r}function mGt(e,r){for(let i=1;;++i){let s=`${e}${i}`;if(!r.has(s))return s}}function Ubn(e,r){let i=[],s=new Map,l=null;return{onAnchor:d=>{i.push(d),l??(l=fGt(e));let h=mGt(r,l);return l.add(h),h},setAnchors:()=>{for(let d of i){let h=s.get(d);if(typeof h=="object"&&h.anchor&&(dGt.isScalar(h.node)||dGt.isCollection(h.node)))h.node.anchor=h.anchor;else{let S=new Error("Failed to resolve repeated object (this should not happen)");throw S.source=d,S}}},sourceObjects:s}}Nde.anchorIsValid=$bn;Nde.anchorNames=fGt;Nde.createNodeAnchors=Ubn;Nde.findNewAnchor=mGt});var bit=dr(hGt=>{"use strict";function Ode(e,r,i,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let l=0,d=s.length;l{"use strict";var zbn=xf();function gGt(e,r,i){if(Array.isArray(e))return e.map((s,l)=>gGt(s,String(l),i));if(e&&typeof e.toJSON=="function"){if(!i||!zbn.hasAnchor(e))return e.toJSON(r,i);let s={aliasCount:0,count:1,res:void 0};i.anchors.set(e,s),i.onCreate=d=>{s.res=d,delete i.onCreate};let l=e.toJSON(r,i);return i.onCreate&&i.onCreate(l),l}return typeof e=="bigint"&&!i?.keep?Number(e):e}yGt.toJS=gGt});var uwe=dr(SGt=>{"use strict";var qbn=bit(),vGt=xf(),Jbn=UB(),xit=class{constructor(r){Object.defineProperty(this,vGt.NODE_TYPE,{value:r})}clone(){let r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(r.range=this.range.slice()),r}toJS(r,{mapAsMap:i,maxAliasCount:s,onAnchor:l,reviver:d}={}){if(!vGt.isDocument(r))throw new TypeError("A document argument is required");let h={anchors:new Map,doc:r,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},S=Jbn.toJS(this,"",h);if(typeof l=="function")for(let{count:b,res:A}of h.anchors.values())l(A,b);return typeof d=="function"?qbn.applyReviver(d,{"":S},"",S):S}};SGt.NodeBase=xit});var Fde=dr(bGt=>{"use strict";var Vbn=lwe(),Wbn=Ide(),Mee=xf(),Gbn=uwe(),Hbn=UB(),Tit=class extends Gbn.NodeBase{constructor(r){super(Mee.ALIAS),this.source=r,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(r,i){let s;i?.aliasResolveCache?s=i.aliasResolveCache:(s=[],Wbn.visit(r,{Node:(d,h)=>{(Mee.isAlias(h)||Mee.hasAnchor(h))&&s.push(h)}}),i&&(i.aliasResolveCache=s));let l;for(let d of s){if(d===this)break;d.anchor===this.source&&(l=d)}return l}toJSON(r,i){if(!i)return{source:this.source};let{anchors:s,doc:l,maxAliasCount:d}=i,h=this.resolve(l,i);if(!h){let b=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(b)}let S=s.get(h);if(S||(Hbn.toJS(h,null,i),S=s.get(h)),S?.res===void 0){let b="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(b)}if(d>=0&&(S.count+=1,S.aliasCount===0&&(S.aliasCount=pwe(l,h,s)),S.count*S.aliasCount>d)){let b="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(b)}return S.res}toString(r,i,s){let l=`*${this.source}`;if(r){if(Vbn.anchorIsValid(this.source),r.options.verifyAliasOrder&&!r.anchors.has(this.source)){let d=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(d)}if(r.implicitKey)return`${l} `}return l}};function pwe(e,r,i){if(Mee.isAlias(r)){let s=r.resolve(e),l=i&&s&&i.get(s);return l?l.count*l.aliasCount:0}else if(Mee.isCollection(r)){let s=0;for(let l of r.items){let d=pwe(e,l,i);d>s&&(s=d)}return s}else if(Mee.isPair(r)){let s=pwe(e,r.key,i),l=pwe(e,r.value,i);return Math.max(s,l)}return 1}bGt.Alias=Tit});var uv=dr(Eit=>{"use strict";var Kbn=xf(),Qbn=uwe(),Zbn=UB(),Xbn=e=>!e||typeof e!="function"&&typeof e!="object",zB=class extends Qbn.NodeBase{constructor(r){super(Kbn.SCALAR),this.value=r}toJSON(r,i){return i?.keep?this.value:Zbn.toJS(this.value,r,i)}toString(){return String(this.value)}};zB.BLOCK_FOLDED="BLOCK_FOLDED";zB.BLOCK_LITERAL="BLOCK_LITERAL";zB.PLAIN="PLAIN";zB.QUOTE_DOUBLE="QUOTE_DOUBLE";zB.QUOTE_SINGLE="QUOTE_SINGLE";Eit.Scalar=zB;Eit.isScalarValue=Xbn});var Rde=dr(TGt=>{"use strict";var Ybn=Fde(),rW=xf(),xGt=uv(),exn="tag:yaml.org,2002:";function txn(e,r,i){if(r){let s=i.filter(d=>d.tag===r),l=s.find(d=>!d.format)??s[0];if(!l)throw new Error(`Tag ${r} not found`);return l}return i.find(s=>s.identify?.(e)&&!s.format)}function rxn(e,r,i){if(rW.isDocument(e)&&(e=e.contents),rW.isNode(e))return e;if(rW.isPair(e)){let V=i.schema[rW.MAP].createNode?.(i.schema,null,i);return V.items.push(e),V}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:s,onAnchor:l,onTagObj:d,schema:h,sourceObjects:S}=i,b;if(s&&e&&typeof e=="object"){if(b=S.get(e),b)return b.anchor??(b.anchor=l(e)),new Ybn.Alias(b.anchor);b={anchor:null,node:null},S.set(e,b)}r?.startsWith("!!")&&(r=exn+r.slice(2));let A=txn(e,r,h.tags);if(!A){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){let V=new xGt.Scalar(e);return b&&(b.node=V),V}A=e instanceof Map?h[rW.MAP]:Symbol.iterator in Object(e)?h[rW.SEQ]:h[rW.MAP]}d&&(d(A),delete i.onTagObj);let L=A?.createNode?A.createNode(i.schema,e,i):typeof A?.nodeClass?.from=="function"?A.nodeClass.from(i.schema,e,i):new xGt.Scalar(e);return r?L.tag=r:A.default||(L.tag=A.tag),b&&(b.node=L),L}TGt.createNode=rxn});var dwe=dr(_we=>{"use strict";var nxn=Rde(),L8=xf(),ixn=uwe();function kit(e,r,i){let s=i;for(let l=r.length-1;l>=0;--l){let d=r[l];if(typeof d=="number"&&Number.isInteger(d)&&d>=0){let h=[];h[d]=s,s=h}else s=new Map([[d,s]])}return nxn.createNode(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}var EGt=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done,Cit=class extends ixn.NodeBase{constructor(r,i){super(r),Object.defineProperty(this,"schema",{value:i,configurable:!0,enumerable:!1,writable:!0})}clone(r){let i=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return r&&(i.schema=r),i.items=i.items.map(s=>L8.isNode(s)||L8.isPair(s)?s.clone(r):s),this.range&&(i.range=this.range.slice()),i}addIn(r,i){if(EGt(r))this.add(i);else{let[s,...l]=r,d=this.get(s,!0);if(L8.isCollection(d))d.addIn(l,i);else if(d===void 0&&this.schema)this.set(s,kit(this.schema,l,i));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${l}`)}}deleteIn(r){let[i,...s]=r;if(s.length===0)return this.delete(i);let l=this.get(i,!0);if(L8.isCollection(l))return l.deleteIn(s);throw new Error(`Expected YAML collection at ${i}. Remaining path: ${s}`)}getIn(r,i){let[s,...l]=r,d=this.get(s,!0);return l.length===0?!i&&L8.isScalar(d)?d.value:d:L8.isCollection(d)?d.getIn(l,i):void 0}hasAllNullValues(r){return this.items.every(i=>{if(!L8.isPair(i))return!1;let s=i.value;return s==null||r&&L8.isScalar(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(r){let[i,...s]=r;if(s.length===0)return this.has(i);let l=this.get(i,!0);return L8.isCollection(l)?l.hasIn(s):!1}setIn(r,i){let[s,...l]=r;if(l.length===0)this.set(s,i);else{let d=this.get(s,!0);if(L8.isCollection(d))d.setIn(l,i);else if(d===void 0&&this.schema)this.set(s,kit(this.schema,l,i));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${l}`)}}};_we.Collection=Cit;_we.collectionFromPath=kit;_we.isEmptyPath=EGt});var Lde=dr(fwe=>{"use strict";var oxn=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Dit(e,r){return/^\n+$/.test(e)?e.substring(1):r?e.replace(/^(?! *$)/gm,r):e}var axn=(e,r,i)=>e.endsWith(` +`)?Dit(i,r):i.includes(` +`)?` +`+Dit(i,r):(e.endsWith(" ")?"":" ")+i;fwe.indentComment=Dit;fwe.lineComment=axn;fwe.stringifyComment=oxn});var CGt=dr(Mde=>{"use strict";var sxn="flow",Ait="block",mwe="quoted";function cxn(e,r,i="flow",{indentAtStart:s,lineWidth:l=80,minContentWidth:d=20,onFold:h,onOverflow:S}={}){if(!l||l<0)return e;ll-Math.max(2,d)?A.push(0):V=l-s);let j,ie,te=!1,X=-1,Re=-1,Je=-1;i===Ait&&(X=kGt(e,X,r.length),X!==-1&&(V=X+b));for(let $e;$e=e[X+=1];){if(i===mwe&&$e==="\\"){switch(Re=X,e[X+1]){case"x":X+=3;break;case"u":X+=5;break;case"U":X+=9;break;default:X+=1}Je=X}if($e===` +`)i===Ait&&(X=kGt(e,X,r.length)),V=X+r.length+b,j=void 0;else{if($e===" "&&ie&&ie!==" "&&ie!==` +`&&ie!==" "){let xt=e[X+1];xt&&xt!==" "&&xt!==` +`&&xt!==" "&&(j=X)}if(X>=V)if(j)A.push(j),V=j+b,j=void 0;else if(i===mwe){for(;ie===" "||ie===" ";)ie=$e,$e=e[X+=1],te=!0;let xt=X>Je+1?X-2:Re-1;if(L[xt])return e;A.push(xt),L[xt]=!0,V=xt+b,j=void 0}else te=!0}ie=$e}if(te&&S&&S(),A.length===0)return e;h&&h();let pt=e.slice(0,A[0]);for(let $e=0;$e{"use strict";var n4=uv(),qB=CGt(),gwe=(e,r)=>({indentAtStart:r?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),ywe=e=>/^(%|---|\.\.\.)/m.test(e);function lxn(e,r,i){if(!r||r<0)return!1;let s=r-i,l=e.length;if(l<=s)return!1;for(let d=0,h=0;ds)return!0;if(h=d+1,l-h<=s)return!1}return!0}function jde(e,r){let i=JSON.stringify(e);if(r.options.doubleQuotedAsJSON)return i;let{implicitKey:s}=r,l=r.options.doubleQuotedMinMultiLineLength,d=r.indent||(ywe(e)?" ":""),h="",S=0;for(let b=0,A=i[b];A;A=i[++b])if(A===" "&&i[b+1]==="\\"&&i[b+2]==="n"&&(h+=i.slice(S,b)+"\\ ",b+=1,S=b,A="\\"),A==="\\")switch(i[b+1]){case"u":{h+=i.slice(S,b);let L=i.substr(b+2,4);switch(L){case"0000":h+="\\0";break;case"0007":h+="\\a";break;case"000b":h+="\\v";break;case"001b":h+="\\e";break;case"0085":h+="\\N";break;case"00a0":h+="\\_";break;case"2028":h+="\\L";break;case"2029":h+="\\P";break;default:L.substr(0,2)==="00"?h+="\\x"+L.substr(2):h+=i.substr(b,6)}b+=5,S=b+1}break;case"n":if(s||i[b+2]==='"'||i.length +`;let V,j;for(j=i.length;j>0;--j){let tr=i[j-1];if(tr!==` +`&&tr!==" "&&tr!==" ")break}let ie=i.substring(j),te=ie.indexOf(` +`);te===-1?V="-":i===ie||te!==ie.length-1?(V="+",d&&d()):V="",ie&&(i=i.slice(0,-ie.length),ie[ie.length-1]===` +`&&(ie=ie.slice(0,-1)),ie=ie.replace(Iit,`$&${A}`));let X=!1,Re,Je=-1;for(Re=0;Re{ht=!0});let Ut=qB.foldFlowLines(`${pt}${tr}${ie}`,A,qB.FOLD_BLOCK,wt);if(!ht)return`>${xt} +${A}${Ut}`}return i=i.replace(/\n+/g,`$&${A}`),`|${xt} +${A}${pt}${i}${ie}`}function uxn(e,r,i,s){let{type:l,value:d}=e,{actualString:h,implicitKey:S,indent:b,indentStep:A,inFlow:L}=r;if(S&&d.includes(` +`)||L&&/[[\]{},]/.test(d))return jee(d,r);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(d))return S||L||!d.includes(` +`)?jee(d,r):hwe(e,r,i,s);if(!S&&!L&&l!==n4.Scalar.PLAIN&&d.includes(` +`))return hwe(e,r,i,s);if(ywe(d)){if(b==="")return r.forceBlockIndent=!0,hwe(e,r,i,s);if(S&&b===A)return jee(d,r)}let V=d.replace(/\n+/g,`$& +${b}`);if(h){let j=X=>X.default&&X.tag!=="tag:yaml.org,2002:str"&&X.test?.test(V),{compat:ie,tags:te}=r.doc.schema;if(te.some(j)||ie?.some(j))return jee(d,r)}return S?V:qB.foldFlowLines(V,b,qB.FOLD_FLOW,gwe(r,!1))}function pxn(e,r,i,s){let{implicitKey:l,inFlow:d}=r,h=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)}),{type:S}=e;S!==n4.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(h.value)&&(S=n4.Scalar.QUOTE_DOUBLE);let b=L=>{switch(L){case n4.Scalar.BLOCK_FOLDED:case n4.Scalar.BLOCK_LITERAL:return l||d?jee(h.value,r):hwe(h,r,i,s);case n4.Scalar.QUOTE_DOUBLE:return jde(h.value,r);case n4.Scalar.QUOTE_SINGLE:return wit(h.value,r);case n4.Scalar.PLAIN:return uxn(h,r,i,s);default:return null}},A=b(S);if(A===null){let{defaultKeyType:L,defaultStringType:V}=r.options,j=l&&L||V;if(A=b(j),A===null)throw new Error(`Unsupported default string type ${j}`)}return A}DGt.stringifyString=pxn});var $de=dr(Pit=>{"use strict";var _xn=lwe(),JB=xf(),dxn=Lde(),fxn=Bde();function mxn(e,r){let i=Object.assign({blockQuote:!0,commentString:dxn.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,r),s;switch(i.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:e,flowCollectionPadding:i.flowCollectionPadding?" ":"",indent:"",indentStep:typeof i.indent=="number"?" ".repeat(i.indent):" ",inFlow:s,options:i}}function hxn(e,r){if(r.tag){let l=e.filter(d=>d.tag===r.tag);if(l.length>0)return l.find(d=>d.format===r.format)??l[0]}let i,s;if(JB.isScalar(r)){s=r.value;let l=e.filter(d=>d.identify?.(s));if(l.length>1){let d=l.filter(h=>h.test);d.length>0&&(l=d)}i=l.find(d=>d.format===r.format)??l.find(d=>!d.format)}else s=r,i=e.find(l=>l.nodeClass&&s instanceof l.nodeClass);if(!i){let l=s?.constructor?.name??(s===null?"null":typeof s);throw new Error(`Tag not resolved for ${l} value`)}return i}function gxn(e,r,{anchors:i,doc:s}){if(!s.directives)return"";let l=[],d=(JB.isScalar(e)||JB.isCollection(e))&&e.anchor;d&&_xn.anchorIsValid(d)&&(i.add(d),l.push(`&${d}`));let h=e.tag??(r.default?null:r.tag);return h&&l.push(s.directives.tagString(h)),l.join(" ")}function yxn(e,r,i,s){if(JB.isPair(e))return e.toString(r,i,s);if(JB.isAlias(e)){if(r.doc.directives)return e.toString(r);if(r.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");r.resolvedAliases?r.resolvedAliases.add(e):r.resolvedAliases=new Set([e]),e=e.resolve(r.doc)}let l,d=JB.isNode(e)?e:r.doc.createNode(e,{onTagObj:b=>l=b});l??(l=hxn(r.doc.schema.tags,d));let h=gxn(d,l,r);h.length>0&&(r.indentAtStart=(r.indentAtStart??0)+h.length+1);let S=typeof l.stringify=="function"?l.stringify(d,r,i,s):JB.isScalar(d)?fxn.stringifyString(d,r,i,s):d.toString(r,i,s);return h?JB.isScalar(d)||S[0]==="{"||S[0]==="["?`${h} ${S}`:`${h} +${r.indent}${S}`:S}Pit.createStringifyContext=mxn;Pit.stringify=yxn});var PGt=dr(IGt=>{"use strict";var u9=xf(),AGt=uv(),wGt=$de(),Ude=Lde();function vxn({key:e,value:r},i,s,l){let{allNullValues:d,doc:h,indent:S,indentStep:b,options:{commentString:A,indentSeq:L,simpleKeys:V}}=i,j=u9.isNode(e)&&e.comment||null;if(V){if(j)throw new Error("With simple keys, key nodes cannot have comments");if(u9.isCollection(e)||!u9.isNode(e)&&typeof e=="object"){let wt="With simple keys, collection cannot be used as a key value";throw new Error(wt)}}let ie=!V&&(!e||j&&r==null&&!i.inFlow||u9.isCollection(e)||(u9.isScalar(e)?e.type===AGt.Scalar.BLOCK_FOLDED||e.type===AGt.Scalar.BLOCK_LITERAL:typeof e=="object"));i=Object.assign({},i,{allNullValues:!1,implicitKey:!ie&&(V||!d),indent:S+b});let te=!1,X=!1,Re=wGt.stringify(e,i,()=>te=!0,()=>X=!0);if(!ie&&!i.inFlow&&Re.length>1024){if(V)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");ie=!0}if(i.inFlow){if(d||r==null)return te&&s&&s(),Re===""?"?":ie?`? ${Re}`:Re}else if(d&&!V||r==null&&ie)return Re=`? ${Re}`,j&&!te?Re+=Ude.lineComment(Re,i.indent,A(j)):X&&l&&l(),Re;te&&(j=null),ie?(j&&(Re+=Ude.lineComment(Re,i.indent,A(j))),Re=`? ${Re} +${S}:`):(Re=`${Re}:`,j&&(Re+=Ude.lineComment(Re,i.indent,A(j))));let Je,pt,$e;u9.isNode(r)?(Je=!!r.spaceBefore,pt=r.commentBefore,$e=r.comment):(Je=!1,pt=null,$e=null,r&&typeof r=="object"&&(r=h.createNode(r))),i.implicitKey=!1,!ie&&!j&&u9.isScalar(r)&&(i.indentAtStart=Re.length+1),X=!1,!L&&b.length>=2&&!i.inFlow&&!ie&&u9.isSeq(r)&&!r.flow&&!r.tag&&!r.anchor&&(i.indent=i.indent.substring(2));let xt=!1,tr=wGt.stringify(r,i,()=>xt=!0,()=>X=!0),ht=" ";if(j||Je||pt){if(ht=Je?` +`:"",pt){let wt=A(pt);ht+=` +${Ude.indentComment(wt,i.indent)}`}tr===""&&!i.inFlow?ht===` +`&&$e&&(ht=` + +`):ht+=` +${i.indent}`}else if(!ie&&u9.isCollection(r)){let wt=tr[0],Ut=tr.indexOf(` +`),hr=Ut!==-1,Hi=i.inFlow??r.flow??r.items.length===0;if(hr||!Hi){let un=!1;if(hr&&(wt==="&"||wt==="!")){let xo=tr.indexOf(" ");wt==="&"&&xo!==-1&&xo{"use strict";var NGt=a0("process");function Sxn(e,...r){e==="debug"&&console.log(...r)}function bxn(e,r){(e==="debug"||e==="warn")&&(typeof NGt.emitWarning=="function"?NGt.emitWarning(r):console.warn(r))}Nit.debug=Sxn;Nit.warn=bxn});var xwe=dr(bwe=>{"use strict";var zde=xf(),OGt=uv(),vwe="<<",Swe={identify:e=>e===vwe||typeof e=="symbol"&&e.description===vwe,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new OGt.Scalar(Symbol(vwe)),{addToJSMap:FGt}),stringify:()=>vwe},xxn=(e,r)=>(Swe.identify(r)||zde.isScalar(r)&&(!r.type||r.type===OGt.Scalar.PLAIN)&&Swe.identify(r.value))&&e?.doc.schema.tags.some(i=>i.tag===Swe.tag&&i.default);function FGt(e,r,i){if(i=e&&zde.isAlias(i)?i.resolve(e.doc):i,zde.isSeq(i))for(let s of i.items)Fit(e,r,s);else if(Array.isArray(i))for(let s of i)Fit(e,r,s);else Fit(e,r,i)}function Fit(e,r,i){let s=e&&zde.isAlias(i)?i.resolve(e.doc):i;if(!zde.isMap(s))throw new Error("Merge sources must be maps or map aliases");let l=s.toJSON(null,e,Map);for(let[d,h]of l)r instanceof Map?r.has(d)||r.set(d,h):r instanceof Set?r.add(d):Object.prototype.hasOwnProperty.call(r,d)||Object.defineProperty(r,d,{value:h,writable:!0,enumerable:!0,configurable:!0});return r}bwe.addMergeToJSMap=FGt;bwe.isMergeKey=xxn;bwe.merge=Swe});var Lit=dr(MGt=>{"use strict";var Txn=Oit(),RGt=xwe(),Exn=$de(),LGt=xf(),Rit=UB();function kxn(e,r,{key:i,value:s}){if(LGt.isNode(i)&&i.addToJSMap)i.addToJSMap(e,r,s);else if(RGt.isMergeKey(e,i))RGt.addMergeToJSMap(e,r,s);else{let l=Rit.toJS(i,"",e);if(r instanceof Map)r.set(l,Rit.toJS(s,l,e));else if(r instanceof Set)r.add(l);else{let d=Cxn(i,l,e),h=Rit.toJS(s,d,e);d in r?Object.defineProperty(r,d,{value:h,writable:!0,enumerable:!0,configurable:!0}):r[d]=h}}return r}function Cxn(e,r,i){if(r===null)return"";if(typeof r!="object")return String(r);if(LGt.isNode(e)&&i?.doc){let s=Exn.createStringifyContext(i.doc,{});s.anchors=new Set;for(let d of i.anchors.keys())s.anchors.add(d.anchor);s.inFlow=!0,s.inStringifyKey=!0;let l=e.toString(s);if(!i.mapKeyWarned){let d=JSON.stringify(l);d.length>40&&(d=d.substring(0,36)+'..."'),Txn.warn(i.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${d}. Set mapAsMap: true to use object keys.`),i.mapKeyWarned=!0}return l}return JSON.stringify(r)}MGt.addPairToJSMap=kxn});var VB=dr(Mit=>{"use strict";var jGt=Rde(),Dxn=PGt(),Axn=Lit(),Twe=xf();function wxn(e,r,i){let s=jGt.createNode(e,void 0,i),l=jGt.createNode(r,void 0,i);return new Ewe(s,l)}var Ewe=class e{constructor(r,i=null){Object.defineProperty(this,Twe.NODE_TYPE,{value:Twe.PAIR}),this.key=r,this.value=i}clone(r){let{key:i,value:s}=this;return Twe.isNode(i)&&(i=i.clone(r)),Twe.isNode(s)&&(s=s.clone(r)),new e(i,s)}toJSON(r,i){let s=i?.mapAsMap?new Map:{};return Axn.addPairToJSMap(i,s,this)}toString(r,i,s){return r?.doc?Dxn.stringifyPair(this,r,i,s):JSON.stringify(this)}};Mit.Pair=Ewe;Mit.createPair=wxn});var jit=dr($Gt=>{"use strict";var nW=xf(),BGt=$de(),kwe=Lde();function Ixn(e,r,i){return(r.inFlow??e.flow?Nxn:Pxn)(e,r,i)}function Pxn({comment:e,items:r},i,{blockItemPrefix:s,flowChars:l,itemIndent:d,onChompKeep:h,onComment:S}){let{indent:b,options:{commentString:A}}=i,L=Object.assign({},i,{indent:d,type:null}),V=!1,j=[];for(let te=0;teRe=null,()=>V=!0);Re&&(Je+=kwe.lineComment(Je,d,A(Re))),V&&Re&&(V=!1),j.push(s+Je)}let ie;if(j.length===0)ie=l.start+l.end;else{ie=j[0];for(let te=1;teRe=null);teL||Je.includes(` +`))&&(A=!0),V.push(Je),L=V.length}let{start:j,end:ie}=i;if(V.length===0)return j+ie;if(!A){let te=V.reduce((X,Re)=>X+Re.length+2,2);A=r.options.lineWidth>0&&te>r.options.lineWidth}if(A){let te=j;for(let X of V)te+=X?` +${d}${l}${X}`:` +`;return`${te} +${l}${ie}`}else return`${j}${h}${V.join(" ")}${h}${ie}`}function Cwe({indent:e,options:{commentString:r}},i,s,l){if(s&&l&&(s=s.replace(/^\n+/,"")),s){let d=kwe.indentComment(r(s),e);i.push(d.trimStart())}}$Gt.stringifyCollection=Ixn});var GB=dr($it=>{"use strict";var Oxn=jit(),Fxn=Lit(),Rxn=dwe(),WB=xf(),Dwe=VB(),Lxn=uv();function qde(e,r){let i=WB.isScalar(r)?r.value:r;for(let s of e)if(WB.isPair(s)&&(s.key===r||s.key===i||WB.isScalar(s.key)&&s.key.value===i))return s}var Bit=class extends Rxn.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(r){super(WB.MAP,r),this.items=[]}static from(r,i,s){let{keepUndefined:l,replacer:d}=s,h=new this(r),S=(b,A)=>{if(typeof d=="function")A=d.call(i,b,A);else if(Array.isArray(d)&&!d.includes(b))return;(A!==void 0||l)&&h.items.push(Dwe.createPair(b,A,s))};if(i instanceof Map)for(let[b,A]of i)S(b,A);else if(i&&typeof i=="object")for(let b of Object.keys(i))S(b,i[b]);return typeof r.sortMapEntries=="function"&&h.items.sort(r.sortMapEntries),h}add(r,i){let s;WB.isPair(r)?s=r:!r||typeof r!="object"||!("key"in r)?s=new Dwe.Pair(r,r?.value):s=new Dwe.Pair(r.key,r.value);let l=qde(this.items,s.key),d=this.schema?.sortMapEntries;if(l){if(!i)throw new Error(`Key ${s.key} already set`);WB.isScalar(l.value)&&Lxn.isScalarValue(s.value)?l.value.value=s.value:l.value=s.value}else if(d){let h=this.items.findIndex(S=>d(s,S)<0);h===-1?this.items.push(s):this.items.splice(h,0,s)}else this.items.push(s)}delete(r){let i=qde(this.items,r);return i?this.items.splice(this.items.indexOf(i),1).length>0:!1}get(r,i){let l=qde(this.items,r)?.value;return(!i&&WB.isScalar(l)?l.value:l)??void 0}has(r){return!!qde(this.items,r)}set(r,i){this.add(new Dwe.Pair(r,i),!0)}toJSON(r,i,s){let l=s?new s:i?.mapAsMap?new Map:{};i?.onCreate&&i.onCreate(l);for(let d of this.items)Fxn.addPairToJSMap(i,l,d);return l}toString(r,i,s){if(!r)return JSON.stringify(this);for(let l of this.items)if(!WB.isPair(l))throw new Error(`Map items must all be pairs; found ${JSON.stringify(l)} instead`);return!r.allNullValues&&this.hasAllNullValues(!1)&&(r=Object.assign({},r,{allNullValues:!0})),Oxn.stringifyCollection(this,r,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:r.indent||"",onChompKeep:s,onComment:i})}};$it.YAMLMap=Bit;$it.findPair=qde});var Bee=dr(zGt=>{"use strict";var Mxn=xf(),UGt=GB(),jxn={collection:"map",default:!0,nodeClass:UGt.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,r){return Mxn.isMap(e)||r("Expected a mapping for this tag"),e},createNode:(e,r,i)=>UGt.YAMLMap.from(e,r,i)};zGt.map=jxn});var HB=dr(qGt=>{"use strict";var Bxn=Rde(),$xn=jit(),Uxn=dwe(),wwe=xf(),zxn=uv(),qxn=UB(),Uit=class extends Uxn.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(r){super(wwe.SEQ,r),this.items=[]}add(r){this.items.push(r)}delete(r){let i=Awe(r);return typeof i!="number"?!1:this.items.splice(i,1).length>0}get(r,i){let s=Awe(r);if(typeof s!="number")return;let l=this.items[s];return!i&&wwe.isScalar(l)?l.value:l}has(r){let i=Awe(r);return typeof i=="number"&&i=0?r:null}qGt.YAMLSeq=Uit});var $ee=dr(VGt=>{"use strict";var Jxn=xf(),JGt=HB(),Vxn={collection:"seq",default:!0,nodeClass:JGt.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,r){return Jxn.isSeq(e)||r("Expected a sequence for this tag"),e},createNode:(e,r,i)=>JGt.YAMLSeq.from(e,r,i)};VGt.seq=Vxn});var Jde=dr(WGt=>{"use strict";var Wxn=Bde(),Gxn={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,r,i,s){return r=Object.assign({actualString:!0},r),Wxn.stringifyString(e,r,i,s)}};WGt.string=Gxn});var Iwe=dr(KGt=>{"use strict";var GGt=uv(),HGt={identify:e=>e==null,createNode:()=>new GGt.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new GGt.Scalar(null),stringify:({source:e},r)=>typeof e=="string"&&HGt.test.test(e)?e:r.options.nullStr};KGt.nullTag=HGt});var zit=dr(ZGt=>{"use strict";var Hxn=uv(),QGt={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Hxn.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:r},i){if(e&&QGt.test.test(e)){let s=e[0]==="t"||e[0]==="T";if(r===s)return e}return r?i.options.trueStr:i.options.falseStr}};ZGt.boolTag=QGt});var Uee=dr(XGt=>{"use strict";function Kxn({format:e,minFractionDigits:r,tag:i,value:s}){if(typeof s=="bigint")return String(s);let l=typeof s=="number"?s:Number(s);if(!isFinite(l))return isNaN(l)?".nan":l<0?"-.inf":".inf";let d=Object.is(s,-0)?"-0":JSON.stringify(s);if(!e&&r&&(!i||i==="tag:yaml.org,2002:float")&&/^\d/.test(d)){let h=d.indexOf(".");h<0&&(h=d.length,d+=".");let S=r-(d.length-h-1);for(;S-- >0;)d+="0"}return d}XGt.stringifyNumber=Kxn});var Jit=dr(Pwe=>{"use strict";var Qxn=uv(),qit=Uee(),Zxn={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:qit.stringifyNumber},Xxn={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let r=Number(e.value);return isFinite(r)?r.toExponential():qit.stringifyNumber(e)}},Yxn={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let r=new Qxn.Scalar(parseFloat(e)),i=e.indexOf(".");return i!==-1&&e[e.length-1]==="0"&&(r.minFractionDigits=e.length-i-1),r},stringify:qit.stringifyNumber};Pwe.float=Yxn;Pwe.floatExp=Xxn;Pwe.floatNaN=Zxn});var Wit=dr(Owe=>{"use strict";var YGt=Uee(),Nwe=e=>typeof e=="bigint"||Number.isInteger(e),Vit=(e,r,i,{intAsBigInt:s})=>s?BigInt(e):parseInt(e.substring(r),i);function eHt(e,r,i){let{value:s}=e;return Nwe(s)&&s>=0?i+s.toString(r):YGt.stringifyNumber(e)}var eTn={identify:e=>Nwe(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,r,i)=>Vit(e,2,8,i),stringify:e=>eHt(e,8,"0o")},tTn={identify:Nwe,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,r,i)=>Vit(e,0,10,i),stringify:YGt.stringifyNumber},rTn={identify:e=>Nwe(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,r,i)=>Vit(e,2,16,i),stringify:e=>eHt(e,16,"0x")};Owe.int=tTn;Owe.intHex=rTn;Owe.intOct=eTn});var rHt=dr(tHt=>{"use strict";var nTn=Bee(),iTn=Iwe(),oTn=$ee(),aTn=Jde(),sTn=zit(),Git=Jit(),Hit=Wit(),cTn=[nTn.map,oTn.seq,aTn.string,iTn.nullTag,sTn.boolTag,Hit.intOct,Hit.int,Hit.intHex,Git.floatNaN,Git.floatExp,Git.float];tHt.schema=cTn});var oHt=dr(iHt=>{"use strict";var lTn=uv(),uTn=Bee(),pTn=$ee();function nHt(e){return typeof e=="bigint"||Number.isInteger(e)}var Fwe=({value:e})=>JSON.stringify(e),_Tn=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Fwe},{identify:e=>e==null,createNode:()=>new lTn.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Fwe},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:Fwe},{identify:nHt,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,r,{intAsBigInt:i})=>i?BigInt(e):parseInt(e,10),stringify:({value:e})=>nHt(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Fwe}],dTn={default:!0,tag:"",test:/^/,resolve(e,r){return r(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},fTn=[uTn.map,pTn.seq].concat(_Tn,dTn);iHt.schema=fTn});var Qit=dr(aHt=>{"use strict";var Vde=a0("buffer"),Kit=uv(),mTn=Bde(),hTn={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,r){if(typeof Vde.Buffer=="function")return Vde.Buffer.from(e,"base64");if(typeof atob=="function"){let i=atob(e.replace(/[\n\r]/g,"")),s=new Uint8Array(i.length);for(let l=0;l{"use strict";var Rwe=xf(),Zit=VB(),gTn=uv(),yTn=HB();function sHt(e,r){if(Rwe.isSeq(e))for(let i=0;i1&&r("Each pair must have its own sequence indicator");let l=s.items[0]||new Zit.Pair(new gTn.Scalar(null));if(s.commentBefore&&(l.key.commentBefore=l.key.commentBefore?`${s.commentBefore} +${l.key.commentBefore}`:s.commentBefore),s.comment){let d=l.value??l.key;d.comment=d.comment?`${s.comment} +${d.comment}`:s.comment}s=l}e.items[i]=Rwe.isPair(s)?s:new Zit.Pair(s)}}else r("Expected a sequence for this tag");return e}function cHt(e,r,i){let{replacer:s}=i,l=new yTn.YAMLSeq(e);l.tag="tag:yaml.org,2002:pairs";let d=0;if(r&&Symbol.iterator in Object(r))for(let h of r){typeof s=="function"&&(h=s.call(r,String(d++),h));let S,b;if(Array.isArray(h))if(h.length===2)S=h[0],b=h[1];else throw new TypeError(`Expected [key, value] tuple: ${h}`);else if(h&&h instanceof Object){let A=Object.keys(h);if(A.length===1)S=A[0],b=h[S];else throw new TypeError(`Expected tuple with one key, not ${A.length} keys`)}else S=h;l.items.push(Zit.createPair(S,b,i))}return l}var vTn={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:sHt,createNode:cHt};Lwe.createPairs=cHt;Lwe.pairs=vTn;Lwe.resolvePairs=sHt});var eot=dr(Yit=>{"use strict";var lHt=xf(),Xit=UB(),Wde=GB(),STn=HB(),uHt=Mwe(),iW=class e extends STn.YAMLSeq{constructor(){super(),this.add=Wde.YAMLMap.prototype.add.bind(this),this.delete=Wde.YAMLMap.prototype.delete.bind(this),this.get=Wde.YAMLMap.prototype.get.bind(this),this.has=Wde.YAMLMap.prototype.has.bind(this),this.set=Wde.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(r,i){if(!i)return super.toJSON(r);let s=new Map;i?.onCreate&&i.onCreate(s);for(let l of this.items){let d,h;if(lHt.isPair(l)?(d=Xit.toJS(l.key,"",i),h=Xit.toJS(l.value,d,i)):d=Xit.toJS(l,"",i),s.has(d))throw new Error("Ordered maps must not include duplicate keys");s.set(d,h)}return s}static from(r,i,s){let l=uHt.createPairs(r,i,s),d=new this;return d.items=l.items,d}};iW.tag="tag:yaml.org,2002:omap";var bTn={collection:"seq",identify:e=>e instanceof Map,nodeClass:iW,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,r){let i=uHt.resolvePairs(e,r),s=[];for(let{key:l}of i.items)lHt.isScalar(l)&&(s.includes(l.value)?r(`Ordered maps must not include duplicate keys: ${l.value}`):s.push(l.value));return Object.assign(new iW,i)},createNode:(e,r,i)=>iW.from(e,r,i)};Yit.YAMLOMap=iW;Yit.omap=bTn});var mHt=dr(tot=>{"use strict";var pHt=uv();function _Ht({value:e,source:r},i){return r&&(e?dHt:fHt).test.test(r)?r:e?i.options.trueStr:i.options.falseStr}var dHt={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new pHt.Scalar(!0),stringify:_Ht},fHt={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new pHt.Scalar(!1),stringify:_Ht};tot.falseTag=fHt;tot.trueTag=dHt});var hHt=dr(jwe=>{"use strict";var xTn=uv(),rot=Uee(),TTn={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:rot.stringifyNumber},ETn={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let r=Number(e.value);return isFinite(r)?r.toExponential():rot.stringifyNumber(e)}},kTn={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let r=new xTn.Scalar(parseFloat(e.replace(/_/g,""))),i=e.indexOf(".");if(i!==-1){let s=e.substring(i+1).replace(/_/g,"");s[s.length-1]==="0"&&(r.minFractionDigits=s.length)}return r},stringify:rot.stringifyNumber};jwe.float=kTn;jwe.floatExp=ETn;jwe.floatNaN=TTn});var yHt=dr(Hde=>{"use strict";var gHt=Uee(),Gde=e=>typeof e=="bigint"||Number.isInteger(e);function Bwe(e,r,i,{intAsBigInt:s}){let l=e[0];if((l==="-"||l==="+")&&(r+=1),e=e.substring(r).replace(/_/g,""),s){switch(i){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let h=BigInt(e);return l==="-"?BigInt(-1)*h:h}let d=parseInt(e,i);return l==="-"?-1*d:d}function not(e,r,i){let{value:s}=e;if(Gde(s)){let l=s.toString(r);return s<0?"-"+i+l.substr(1):i+l}return gHt.stringifyNumber(e)}var CTn={identify:Gde,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,r,i)=>Bwe(e,2,2,i),stringify:e=>not(e,2,"0b")},DTn={identify:Gde,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,r,i)=>Bwe(e,1,8,i),stringify:e=>not(e,8,"0")},ATn={identify:Gde,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,r,i)=>Bwe(e,0,10,i),stringify:gHt.stringifyNumber},wTn={identify:Gde,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,r,i)=>Bwe(e,2,16,i),stringify:e=>not(e,16,"0x")};Hde.int=ATn;Hde.intBin=CTn;Hde.intHex=wTn;Hde.intOct=DTn});var oot=dr(iot=>{"use strict";var zwe=xf(),$we=VB(),Uwe=GB(),oW=class e extends Uwe.YAMLMap{constructor(r){super(r),this.tag=e.tag}add(r){let i;zwe.isPair(r)?i=r:r&&typeof r=="object"&&"key"in r&&"value"in r&&r.value===null?i=new $we.Pair(r.key,null):i=new $we.Pair(r,null),Uwe.findPair(this.items,i.key)||this.items.push(i)}get(r,i){let s=Uwe.findPair(this.items,r);return!i&&zwe.isPair(s)?zwe.isScalar(s.key)?s.key.value:s.key:s}set(r,i){if(typeof i!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof i}`);let s=Uwe.findPair(this.items,r);s&&!i?this.items.splice(this.items.indexOf(s),1):!s&&i&&this.items.push(new $we.Pair(r))}toJSON(r,i){return super.toJSON(r,i,Set)}toString(r,i,s){if(!r)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},r,{allNullValues:!0}),i,s);throw new Error("Set items must all have null values")}static from(r,i,s){let{replacer:l}=s,d=new this(r);if(i&&Symbol.iterator in Object(i))for(let h of i)typeof l=="function"&&(h=l.call(i,h,h)),d.items.push($we.createPair(h,null,s));return d}};oW.tag="tag:yaml.org,2002:set";var ITn={collection:"map",identify:e=>e instanceof Set,nodeClass:oW,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,r,i)=>oW.from(e,r,i),resolve(e,r){if(zwe.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new oW,e);r("Set items must all have null values")}else r("Expected a mapping for this tag");return e}};iot.YAMLSet=oW;iot.set=ITn});var sot=dr(qwe=>{"use strict";var PTn=Uee();function aot(e,r){let i=e[0],s=i==="-"||i==="+"?e.substring(1):e,l=h=>r?BigInt(h):Number(h),d=s.replace(/_/g,"").split(":").reduce((h,S)=>h*l(60)+l(S),l(0));return i==="-"?l(-1)*d:d}function vHt(e){let{value:r}=e,i=h=>h;if(typeof r=="bigint")i=h=>BigInt(h);else if(isNaN(r)||!isFinite(r))return PTn.stringifyNumber(e);let s="";r<0&&(s="-",r*=i(-1));let l=i(60),d=[r%l];return r<60?d.unshift(0):(r=(r-d[0])/l,d.unshift(r%l),r>=60&&(r=(r-d[0])/l,d.unshift(r))),s+d.map(h=>String(h).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var NTn={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,r,{intAsBigInt:i})=>aot(e,i),stringify:vHt},OTn={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>aot(e,!1),stringify:vHt},SHt={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let r=e.match(SHt.test);if(!r)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,i,s,l,d,h,S]=r.map(Number),b=r[7]?Number((r[7]+"00").substr(1,3)):0,A=Date.UTC(i,s-1,l,d||0,h||0,S||0,b),L=r[8];if(L&&L!=="Z"){let V=aot(L,!1);Math.abs(V)<30&&(V*=60),A-=6e4*V}return new Date(A)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};qwe.floatTime=OTn;qwe.intTime=NTn;qwe.timestamp=SHt});var THt=dr(xHt=>{"use strict";var FTn=Bee(),RTn=Iwe(),LTn=$ee(),MTn=Jde(),jTn=Qit(),bHt=mHt(),cot=hHt(),Jwe=yHt(),BTn=xwe(),$Tn=eot(),UTn=Mwe(),zTn=oot(),lot=sot(),qTn=[FTn.map,LTn.seq,MTn.string,RTn.nullTag,bHt.trueTag,bHt.falseTag,Jwe.intBin,Jwe.intOct,Jwe.int,Jwe.intHex,cot.floatNaN,cot.floatExp,cot.float,jTn.binary,BTn.merge,$Tn.omap,UTn.pairs,zTn.set,lot.intTime,lot.floatTime,lot.timestamp];xHt.schema=qTn});var OHt=dr(_ot=>{"use strict";var DHt=Bee(),JTn=Iwe(),AHt=$ee(),VTn=Jde(),WTn=zit(),uot=Jit(),pot=Wit(),GTn=rHt(),HTn=oHt(),wHt=Qit(),Kde=xwe(),IHt=eot(),PHt=Mwe(),EHt=THt(),NHt=oot(),Vwe=sot(),kHt=new Map([["core",GTn.schema],["failsafe",[DHt.map,AHt.seq,VTn.string]],["json",HTn.schema],["yaml11",EHt.schema],["yaml-1.1",EHt.schema]]),CHt={binary:wHt.binary,bool:WTn.boolTag,float:uot.float,floatExp:uot.floatExp,floatNaN:uot.floatNaN,floatTime:Vwe.floatTime,int:pot.int,intHex:pot.intHex,intOct:pot.intOct,intTime:Vwe.intTime,map:DHt.map,merge:Kde.merge,null:JTn.nullTag,omap:IHt.omap,pairs:PHt.pairs,seq:AHt.seq,set:NHt.set,timestamp:Vwe.timestamp},KTn={"tag:yaml.org,2002:binary":wHt.binary,"tag:yaml.org,2002:merge":Kde.merge,"tag:yaml.org,2002:omap":IHt.omap,"tag:yaml.org,2002:pairs":PHt.pairs,"tag:yaml.org,2002:set":NHt.set,"tag:yaml.org,2002:timestamp":Vwe.timestamp};function QTn(e,r,i){let s=kHt.get(r);if(s&&!e)return i&&!s.includes(Kde.merge)?s.concat(Kde.merge):s.slice();let l=s;if(!l)if(Array.isArray(e))l=[];else{let d=Array.from(kHt.keys()).filter(h=>h!=="yaml11").map(h=>JSON.stringify(h)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${d} or define customTags array`)}if(Array.isArray(e))for(let d of e)l=l.concat(d);else typeof e=="function"&&(l=e(l.slice()));return i&&(l=l.concat(Kde.merge)),l.reduce((d,h)=>{let S=typeof h=="string"?CHt[h]:h;if(!S){let b=JSON.stringify(h),A=Object.keys(CHt).map(L=>JSON.stringify(L)).join(", ");throw new Error(`Unknown custom tag ${b}; use one of ${A}`)}return d.includes(S)||d.push(S),d},[])}_ot.coreKnownTags=KTn;_ot.getTags=QTn});var mot=dr(FHt=>{"use strict";var dot=xf(),ZTn=Bee(),XTn=$ee(),YTn=Jde(),Wwe=OHt(),e2n=(e,r)=>e.keyr.key?1:0,fot=class e{constructor({compat:r,customTags:i,merge:s,resolveKnownTags:l,schema:d,sortMapEntries:h,toStringDefaults:S}){this.compat=Array.isArray(r)?Wwe.getTags(r,"compat"):r?Wwe.getTags(null,r):null,this.name=typeof d=="string"&&d||"core",this.knownTags=l?Wwe.coreKnownTags:{},this.tags=Wwe.getTags(i,this.name,s),this.toStringOptions=S??null,Object.defineProperty(this,dot.MAP,{value:ZTn.map}),Object.defineProperty(this,dot.SCALAR,{value:YTn.string}),Object.defineProperty(this,dot.SEQ,{value:XTn.seq}),this.sortMapEntries=typeof h=="function"?h:h===!0?e2n:null}clone(){let r=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return r.tags=this.tags.slice(),r}};FHt.Schema=fot});var LHt=dr(RHt=>{"use strict";var t2n=xf(),hot=$de(),Qde=Lde();function r2n(e,r){let i=[],s=r.directives===!0;if(r.directives!==!1&&e.directives){let b=e.directives.toString(e);b?(i.push(b),s=!0):e.directives.docStart&&(s=!0)}s&&i.push("---");let l=hot.createStringifyContext(e,r),{commentString:d}=l.options;if(e.commentBefore){i.length!==1&&i.unshift("");let b=d(e.commentBefore);i.unshift(Qde.indentComment(b,""))}let h=!1,S=null;if(e.contents){if(t2n.isNode(e.contents)){if(e.contents.spaceBefore&&s&&i.push(""),e.contents.commentBefore){let L=d(e.contents.commentBefore);i.push(Qde.indentComment(L,""))}l.forceBlockIndent=!!e.comment,S=e.contents.comment}let b=S?void 0:()=>h=!0,A=hot.stringify(e.contents,l,()=>S=null,b);S&&(A+=Qde.lineComment(A,"",d(S))),(A[0]==="|"||A[0]===">")&&i[i.length-1]==="---"?i[i.length-1]=`--- ${A}`:i.push(A)}else i.push(hot.stringify(e.contents,l));if(e.directives?.docEnd)if(e.comment){let b=d(e.comment);b.includes(` +`)?(i.push("..."),i.push(Qde.indentComment(b,""))):i.push(`... ${b}`)}else i.push("...");else{let b=e.comment;b&&h&&(b=b.replace(/^\n+/,"")),b&&((!h||S)&&i[i.length-1]!==""&&i.push(""),i.push(Qde.indentComment(d(b),"")))}return i.join(` +`)+` +`}RHt.stringifyDocument=r2n});var Zde=dr(MHt=>{"use strict";var n2n=Fde(),zee=dwe(),hI=xf(),i2n=VB(),o2n=UB(),a2n=mot(),s2n=LHt(),got=lwe(),c2n=bit(),l2n=Rde(),yot=Sit(),vot=class e{constructor(r,i,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,hI.NODE_TYPE,{value:hI.DOC});let l=null;typeof i=="function"||Array.isArray(i)?l=i:s===void 0&&i&&(s=i,i=void 0);let d=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},s);this.options=d;let{version:h}=d;s?._directives?(this.directives=s._directives.atDocument(),this.directives.yaml.explicit&&(h=this.directives.yaml.version)):this.directives=new yot.Directives({version:h}),this.setSchema(h,s),this.contents=r===void 0?null:this.createNode(r,l,s)}clone(){let r=Object.create(e.prototype,{[hI.NODE_TYPE]:{value:hI.DOC}});return r.commentBefore=this.commentBefore,r.comment=this.comment,r.errors=this.errors.slice(),r.warnings=this.warnings.slice(),r.options=Object.assign({},this.options),this.directives&&(r.directives=this.directives.clone()),r.schema=this.schema.clone(),r.contents=hI.isNode(this.contents)?this.contents.clone(r.schema):this.contents,this.range&&(r.range=this.range.slice()),r}add(r){qee(this.contents)&&this.contents.add(r)}addIn(r,i){qee(this.contents)&&this.contents.addIn(r,i)}createAlias(r,i){if(!r.anchor){let s=got.anchorNames(this);r.anchor=!i||s.has(i)?got.findNewAnchor(i||"a",s):i}return new n2n.Alias(r.anchor)}createNode(r,i,s){let l;if(typeof i=="function")r=i.call({"":r},"",r),l=i;else if(Array.isArray(i)){let Re=pt=>typeof pt=="number"||pt instanceof String||pt instanceof Number,Je=i.filter(Re).map(String);Je.length>0&&(i=i.concat(Je)),l=i}else s===void 0&&i&&(s=i,i=void 0);let{aliasDuplicateObjects:d,anchorPrefix:h,flow:S,keepUndefined:b,onTagObj:A,tag:L}=s??{},{onAnchor:V,setAnchors:j,sourceObjects:ie}=got.createNodeAnchors(this,h||"a"),te={aliasDuplicateObjects:d??!0,keepUndefined:b??!1,onAnchor:V,onTagObj:A,replacer:l,schema:this.schema,sourceObjects:ie},X=l2n.createNode(r,L,te);return S&&hI.isCollection(X)&&(X.flow=!0),j(),X}createPair(r,i,s={}){let l=this.createNode(r,null,s),d=this.createNode(i,null,s);return new i2n.Pair(l,d)}delete(r){return qee(this.contents)?this.contents.delete(r):!1}deleteIn(r){return zee.isEmptyPath(r)?this.contents==null?!1:(this.contents=null,!0):qee(this.contents)?this.contents.deleteIn(r):!1}get(r,i){return hI.isCollection(this.contents)?this.contents.get(r,i):void 0}getIn(r,i){return zee.isEmptyPath(r)?!i&&hI.isScalar(this.contents)?this.contents.value:this.contents:hI.isCollection(this.contents)?this.contents.getIn(r,i):void 0}has(r){return hI.isCollection(this.contents)?this.contents.has(r):!1}hasIn(r){return zee.isEmptyPath(r)?this.contents!==void 0:hI.isCollection(this.contents)?this.contents.hasIn(r):!1}set(r,i){this.contents==null?this.contents=zee.collectionFromPath(this.schema,[r],i):qee(this.contents)&&this.contents.set(r,i)}setIn(r,i){zee.isEmptyPath(r)?this.contents=i:this.contents==null?this.contents=zee.collectionFromPath(this.schema,Array.from(r),i):qee(this.contents)&&this.contents.setIn(r,i)}setSchema(r,i={}){typeof r=="number"&&(r=String(r));let s;switch(r){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new yot.Directives({version:"1.1"}),s={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=r:this.directives=new yot.Directives({version:r}),s={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,s=null;break;default:{let l=JSON.stringify(r);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${l}`)}}if(i.schema instanceof Object)this.schema=i.schema;else if(s)this.schema=new a2n.Schema(Object.assign(s,i));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:r,jsonArg:i,mapAsMap:s,maxAliasCount:l,onAnchor:d,reviver:h}={}){let S={anchors:new Map,doc:this,keep:!r,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof l=="number"?l:100},b=o2n.toJS(this.contents,i??"",S);if(typeof d=="function")for(let{count:A,res:L}of S.anchors.values())d(L,A);return typeof h=="function"?c2n.applyReviver(h,{"":b},"",b):b}toJSON(r,i){return this.toJS({json:!0,jsonArg:r,mapAsMap:!1,onAnchor:i})}toString(r={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in r&&(!Number.isInteger(r.indent)||Number(r.indent)<=0)){let i=JSON.stringify(r.indent);throw new Error(`"indent" option must be a positive integer, not ${i}`)}return s2n.stringifyDocument(this,r)}};function qee(e){if(hI.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}MHt.Document=vot});var efe=dr(Yde=>{"use strict";var Xde=class extends Error{constructor(r,i,s,l){super(),this.name=r,this.code=s,this.message=l,this.pos=i}},Sot=class extends Xde{constructor(r,i,s){super("YAMLParseError",r,i,s)}},bot=class extends Xde{constructor(r,i,s){super("YAMLWarning",r,i,s)}},u2n=(e,r)=>i=>{if(i.pos[0]===-1)return;i.linePos=i.pos.map(S=>r.linePos(S));let{line:s,col:l}=i.linePos[0];i.message+=` at line ${s}, column ${l}`;let d=l-1,h=e.substring(r.lineStarts[s-1],r.lineStarts[s]).replace(/[\n\r]+$/,"");if(d>=60&&h.length>80){let S=Math.min(d-39,h.length-79);h="\u2026"+h.substring(S),d-=S-1}if(h.length>80&&(h=h.substring(0,79)+"\u2026"),s>1&&/^ *$/.test(h.substring(0,d))){let S=e.substring(r.lineStarts[s-2],r.lineStarts[s-1]);S.length>80&&(S=S.substring(0,79)+`\u2026 +`),h=S+h}if(/[^ ]/.test(h)){let S=1,b=i.linePos[1];b?.line===s&&b.col>l&&(S=Math.max(1,Math.min(b.col-l,80-d)));let A=" ".repeat(d)+"^".repeat(S);i.message+=`: + +${h} +${A} +`}};Yde.YAMLError=Xde;Yde.YAMLParseError=Sot;Yde.YAMLWarning=bot;Yde.prettifyError=u2n});var tfe=dr(jHt=>{"use strict";function p2n(e,{flow:r,indicator:i,next:s,offset:l,onError:d,parentIndent:h,startOnNewline:S}){let b=!1,A=S,L=S,V="",j="",ie=!1,te=!1,X=null,Re=null,Je=null,pt=null,$e=null,xt=null,tr=null;for(let Ut of e)switch(te&&(Ut.type!=="space"&&Ut.type!=="newline"&&Ut.type!=="comma"&&d(Ut.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),te=!1),X&&(A&&Ut.type!=="comment"&&Ut.type!=="newline"&&d(X,"TAB_AS_INDENT","Tabs are not allowed as indentation"),X=null),Ut.type){case"space":!r&&(i!=="doc-start"||s?.type!=="flow-collection")&&Ut.source.includes(" ")&&(X=Ut),L=!0;break;case"comment":{L||d(Ut,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let hr=Ut.source.substring(1)||" ";V?V+=j+hr:V=hr,j="",A=!1;break}case"newline":A?V?V+=Ut.source:(!xt||i!=="seq-item-ind")&&(b=!0):j+=Ut.source,A=!0,ie=!0,(Re||Je)&&(pt=Ut),L=!0;break;case"anchor":Re&&d(Ut,"MULTIPLE_ANCHORS","A node can have at most one anchor"),Ut.source.endsWith(":")&&d(Ut.offset+Ut.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),Re=Ut,tr??(tr=Ut.offset),A=!1,L=!1,te=!0;break;case"tag":{Je&&d(Ut,"MULTIPLE_TAGS","A node can have at most one tag"),Je=Ut,tr??(tr=Ut.offset),A=!1,L=!1,te=!0;break}case i:(Re||Je)&&d(Ut,"BAD_PROP_ORDER",`Anchors and tags must be after the ${Ut.source} indicator`),xt&&d(Ut,"UNEXPECTED_TOKEN",`Unexpected ${Ut.source} in ${r??"collection"}`),xt=Ut,A=i==="seq-item-ind"||i==="explicit-key-ind",L=!1;break;case"comma":if(r){$e&&d(Ut,"UNEXPECTED_TOKEN",`Unexpected , in ${r}`),$e=Ut,A=!1,L=!1;break}default:d(Ut,"UNEXPECTED_TOKEN",`Unexpected ${Ut.type} token`),A=!1,L=!1}let ht=e[e.length-1],wt=ht?ht.offset+ht.source.length:l;return te&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")&&d(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),X&&(A&&X.indent<=h||s?.type==="block-map"||s?.type==="block-seq")&&d(X,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:$e,found:xt,spaceBefore:b,comment:V,hasNewline:ie,anchor:Re,tag:Je,newlineAfterProp:pt,end:wt,start:tr??wt}}jHt.resolveProps=p2n});var Gwe=dr(BHt=>{"use strict";function xot(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(` +`))return!0;if(e.end){for(let r of e.end)if(r.type==="newline")return!0}return!1;case"flow-collection":for(let r of e.items){for(let i of r.start)if(i.type==="newline")return!0;if(r.sep){for(let i of r.sep)if(i.type==="newline")return!0}if(xot(r.key)||xot(r.value))return!0}return!1;default:return!0}}BHt.containsNewline=xot});var Tot=dr($Ht=>{"use strict";var _2n=Gwe();function d2n(e,r,i){if(r?.type==="flow-collection"){let s=r.end[0];s.indent===e&&(s.source==="]"||s.source==="}")&&_2n.containsNewline(r)&&i(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}$Ht.flowIndentCheck=d2n});var Eot=dr(zHt=>{"use strict";var UHt=xf();function f2n(e,r,i){let{uniqueKeys:s}=e.options;if(s===!1)return!1;let l=typeof s=="function"?s:(d,h)=>d===h||UHt.isScalar(d)&&UHt.isScalar(h)&&d.value===h.value;return r.some(d=>l(d.key,i))}zHt.mapIncludes=f2n});var HHt=dr(GHt=>{"use strict";var qHt=VB(),m2n=GB(),JHt=tfe(),h2n=Gwe(),VHt=Tot(),g2n=Eot(),WHt="All mapping items must start at the same column";function y2n({composeNode:e,composeEmptyNode:r},i,s,l,d){let h=d?.nodeClass??m2n.YAMLMap,S=new h(i.schema);i.atRoot&&(i.atRoot=!1);let b=s.offset,A=null;for(let L of s.items){let{start:V,key:j,sep:ie,value:te}=L,X=JHt.resolveProps(V,{indicator:"explicit-key-ind",next:j??ie?.[0],offset:b,onError:l,parentIndent:s.indent,startOnNewline:!0}),Re=!X.found;if(Re){if(j&&(j.type==="block-seq"?l(b,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in j&&j.indent!==s.indent&&l(b,"BAD_INDENT",WHt)),!X.anchor&&!X.tag&&!ie){A=X.end,X.comment&&(S.comment?S.comment+=` +`+X.comment:S.comment=X.comment);continue}(X.newlineAfterProp||h2n.containsNewline(j))&&l(j??V[V.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else X.found?.indent!==s.indent&&l(b,"BAD_INDENT",WHt);i.atKey=!0;let Je=X.end,pt=j?e(i,j,X,l):r(i,Je,V,null,X,l);i.schema.compat&&VHt.flowIndentCheck(s.indent,j,l),i.atKey=!1,g2n.mapIncludes(i,S.items,pt)&&l(Je,"DUPLICATE_KEY","Map keys must be unique");let $e=JHt.resolveProps(ie??[],{indicator:"map-value-ind",next:te,offset:pt.range[2],onError:l,parentIndent:s.indent,startOnNewline:!j||j.type==="block-scalar"});if(b=$e.end,$e.found){Re&&(te?.type==="block-map"&&!$e.hasNewline&&l(b,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),i.options.strict&&X.start<$e.found.offset-1024&&l(pt.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let xt=te?e(i,te,$e,l):r(i,b,ie,null,$e,l);i.schema.compat&&VHt.flowIndentCheck(s.indent,te,l),b=xt.range[2];let tr=new qHt.Pair(pt,xt);i.options.keepSourceTokens&&(tr.srcToken=L),S.items.push(tr)}else{Re&&l(pt.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),$e.comment&&(pt.comment?pt.comment+=` +`+$e.comment:pt.comment=$e.comment);let xt=new qHt.Pair(pt);i.options.keepSourceTokens&&(xt.srcToken=L),S.items.push(xt)}}return A&&A{"use strict";var v2n=HB(),S2n=tfe(),b2n=Tot();function x2n({composeNode:e,composeEmptyNode:r},i,s,l,d){let h=d?.nodeClass??v2n.YAMLSeq,S=new h(i.schema);i.atRoot&&(i.atRoot=!1),i.atKey&&(i.atKey=!1);let b=s.offset,A=null;for(let{start:L,value:V}of s.items){let j=S2n.resolveProps(L,{indicator:"seq-item-ind",next:V,offset:b,onError:l,parentIndent:s.indent,startOnNewline:!0});if(!j.found)if(j.anchor||j.tag||V)V?.type==="block-seq"?l(j.end,"BAD_INDENT","All sequence items must start at the same column"):l(b,"MISSING_CHAR","Sequence item without - indicator");else{A=j.end,j.comment&&(S.comment=j.comment);continue}let ie=V?e(i,V,j,l):r(i,j.end,L,null,j,l);i.schema.compat&&b2n.flowIndentCheck(s.indent,V,l),b=ie.range[2],S.items.push(ie)}return S.range=[s.offset,b,A??b],S}KHt.resolveBlockSeq=x2n});var Jee=dr(ZHt=>{"use strict";function T2n(e,r,i,s){let l="";if(e){let d=!1,h="";for(let S of e){let{source:b,type:A}=S;switch(A){case"space":d=!0;break;case"comment":{i&&!d&&s(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let L=b.substring(1)||" ";l?l+=h+L:l=L,h="";break}case"newline":l&&(h+=b),d=!0;break;default:s(S,"UNEXPECTED_TOKEN",`Unexpected ${A} at node end`)}r+=b.length}}return{comment:l,offset:r}}ZHt.resolveEnd=T2n});var tKt=dr(eKt=>{"use strict";var E2n=xf(),k2n=VB(),XHt=GB(),C2n=HB(),D2n=Jee(),YHt=tfe(),A2n=Gwe(),w2n=Eot(),kot="Block collections are not allowed within flow collections",Cot=e=>e&&(e.type==="block-map"||e.type==="block-seq");function I2n({composeNode:e,composeEmptyNode:r},i,s,l,d){let h=s.start.source==="{",S=h?"flow map":"flow sequence",b=d?.nodeClass??(h?XHt.YAMLMap:C2n.YAMLSeq),A=new b(i.schema);A.flow=!0;let L=i.atRoot;L&&(i.atRoot=!1),i.atKey&&(i.atKey=!1);let V=s.offset+s.start.source.length;for(let Re=0;Re0){let Re=D2n.resolveEnd(te,X,i.options.strict,l);Re.comment&&(A.comment?A.comment+=` +`+Re.comment:A.comment=Re.comment),A.range=[s.offset,X,Re.offset]}else A.range=[s.offset,X,X];return A}eKt.resolveFlowCollection=I2n});var nKt=dr(rKt=>{"use strict";var P2n=xf(),N2n=uv(),O2n=GB(),F2n=HB(),R2n=HHt(),L2n=QHt(),M2n=tKt();function Dot(e,r,i,s,l,d){let h=i.type==="block-map"?R2n.resolveBlockMap(e,r,i,s,d):i.type==="block-seq"?L2n.resolveBlockSeq(e,r,i,s,d):M2n.resolveFlowCollection(e,r,i,s,d),S=h.constructor;return l==="!"||l===S.tagName?(h.tag=S.tagName,h):(l&&(h.tag=l),h)}function j2n(e,r,i,s,l){let d=s.tag,h=d?r.directives.tagName(d.source,j=>l(d,"TAG_RESOLVE_FAILED",j)):null;if(i.type==="block-seq"){let{anchor:j,newlineAfterProp:ie}=s,te=j&&d?j.offset>d.offset?j:d:j??d;te&&(!ie||ie.offsetj.tag===h&&j.collection===S);if(!b){let j=r.schema.knownTags[h];if(j?.collection===S)r.schema.tags.push(Object.assign({},j,{default:!1})),b=j;else return j?l(d,"BAD_COLLECTION_TYPE",`${j.tag} used for ${S} collection, but expects ${j.collection??"scalar"}`,!0):l(d,"TAG_RESOLVE_FAILED",`Unresolved tag: ${h}`,!0),Dot(e,r,i,l,h)}let A=Dot(e,r,i,l,h,b),L=b.resolve?.(A,j=>l(d,"TAG_RESOLVE_FAILED",j),r.options)??A,V=P2n.isNode(L)?L:new N2n.Scalar(L);return V.range=A.range,V.tag=h,b?.format&&(V.format=b.format),V}rKt.composeCollection=j2n});var wot=dr(iKt=>{"use strict";var Aot=uv();function B2n(e,r,i){let s=r.offset,l=$2n(r,e.options.strict,i);if(!l)return{value:"",type:null,comment:"",range:[s,s,s]};let d=l.mode===">"?Aot.Scalar.BLOCK_FOLDED:Aot.Scalar.BLOCK_LITERAL,h=r.source?U2n(r.source):[],S=h.length;for(let X=h.length-1;X>=0;--X){let Re=h[X][1];if(Re===""||Re==="\r")S=X;else break}if(S===0){let X=l.chomp==="+"&&h.length>0?` +`.repeat(Math.max(1,h.length-1)):"",Re=s+l.length;return r.source&&(Re+=r.source.length),{value:X,type:d,comment:l.comment,range:[s,Re,Re]}}let b=r.indent+l.indent,A=r.offset+l.length,L=0;for(let X=0;Xb&&(b=Re.length);else{Re.length=S;--X)h[X][0].length>b&&(S=X+1);let V="",j="",ie=!1;for(let X=0;Xb||Je[0]===" "?(j===" "?j=` +`:!ie&&j===` +`&&(j=` + +`),V+=j+Re.slice(b)+Je,j=` +`,ie=!0):Je===""?j===` +`?V+=` +`:j=` +`:(V+=j+Je,j=" ",ie=!1)}switch(l.chomp){case"-":break;case"+":for(let X=S;X{"use strict";var Iot=uv(),z2n=Jee();function q2n(e,r,i){let{offset:s,type:l,source:d,end:h}=e,S,b,A=(j,ie,te)=>i(s+j,ie,te);switch(l){case"scalar":S=Iot.Scalar.PLAIN,b=J2n(d,A);break;case"single-quoted-scalar":S=Iot.Scalar.QUOTE_SINGLE,b=V2n(d,A);break;case"double-quoted-scalar":S=Iot.Scalar.QUOTE_DOUBLE,b=W2n(d,A);break;default:return i(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${l}`),{value:"",type:null,comment:"",range:[s,s+d.length,s+d.length]}}let L=s+d.length,V=z2n.resolveEnd(h,L,r,i);return{value:b,type:S,comment:V.comment,range:[s,L,V.offset]}}function J2n(e,r){let i="";switch(e[0]){case" ":i="a tab character";break;case",":i="flow indicator character ,";break;case"%":i="directive indicator character %";break;case"|":case">":{i=`block scalar indicator ${e[0]}`;break}case"@":case"`":{i=`reserved character ${e[0]}`;break}}return i&&r(0,"BAD_SCALAR_START",`Plain value cannot start with ${i}`),oKt(e)}function V2n(e,r){return(e[e.length-1]!=="'"||e.length===1)&&r(e.length,"MISSING_CHAR","Missing closing 'quote"),oKt(e.slice(1,-1)).replace(/''/g,"'")}function oKt(e){let r,i;try{r=new RegExp(`(.*?)(?d?e.slice(d,s+1):l)}else i+=l}return(e[e.length-1]!=='"'||e.length===1)&&r(e.length,"MISSING_CHAR",'Missing closing "quote'),i}function G2n(e,r){let i="",s=e[r+1];for(;(s===" "||s===" "||s===` +`||s==="\r")&&!(s==="\r"&&e[r+2]!==` +`);)s===` +`&&(i+=` +`),r+=1,s=e[r+1];return i||(i=" "),{fold:i,offset:r}}var H2n={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:` +`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function K2n(e,r,i,s){let l=e.substr(r,i),h=l.length===i&&/^[0-9a-fA-F]+$/.test(l)?parseInt(l,16):NaN;if(isNaN(h)){let S=e.substr(r-2,i+2);return s(r-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${S}`),S}return String.fromCodePoint(h)}aKt.resolveFlowScalar=q2n});var lKt=dr(cKt=>{"use strict";var aW=xf(),sKt=uv(),Q2n=wot(),Z2n=Pot();function X2n(e,r,i,s){let{value:l,type:d,comment:h,range:S}=r.type==="block-scalar"?Q2n.resolveBlockScalar(e,r,s):Z2n.resolveFlowScalar(r,e.options.strict,s),b=i?e.directives.tagName(i.source,V=>s(i,"TAG_RESOLVE_FAILED",V)):null,A;e.options.stringKeys&&e.atKey?A=e.schema[aW.SCALAR]:b?A=Y2n(e.schema,l,b,i,s):r.type==="scalar"?A=eEn(e,l,r,s):A=e.schema[aW.SCALAR];let L;try{let V=A.resolve(l,j=>s(i??r,"TAG_RESOLVE_FAILED",j),e.options);L=aW.isScalar(V)?V:new sKt.Scalar(V)}catch(V){let j=V instanceof Error?V.message:String(V);s(i??r,"TAG_RESOLVE_FAILED",j),L=new sKt.Scalar(l)}return L.range=S,L.source=l,d&&(L.type=d),b&&(L.tag=b),A.format&&(L.format=A.format),h&&(L.comment=h),L}function Y2n(e,r,i,s,l){if(i==="!")return e[aW.SCALAR];let d=[];for(let S of e.tags)if(!S.collection&&S.tag===i)if(S.default&&S.test)d.push(S);else return S;for(let S of d)if(S.test?.test(r))return S;let h=e.knownTags[i];return h&&!h.collection?(e.tags.push(Object.assign({},h,{default:!1,test:void 0})),h):(l(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,i!=="tag:yaml.org,2002:str"),e[aW.SCALAR])}function eEn({atKey:e,directives:r,schema:i},s,l,d){let h=i.tags.find(S=>(S.default===!0||e&&S.default==="key")&&S.test?.test(s))||i[aW.SCALAR];if(i.compat){let S=i.compat.find(b=>b.default&&b.test?.test(s))??i[aW.SCALAR];if(h.tag!==S.tag){let b=r.tagString(h.tag),A=r.tagString(S.tag),L=`Value may be parsed as either ${b} or ${A}`;d(l,"TAG_RESOLVE_FAILED",L,!0)}}return h}cKt.composeScalar=X2n});var pKt=dr(uKt=>{"use strict";function tEn(e,r,i){if(r){i??(i=r.length);for(let s=i-1;s>=0;--s){let l=r[s];switch(l.type){case"space":case"comment":case"newline":e-=l.source.length;continue}for(l=r[++s];l?.type==="space";)e+=l.source.length,l=r[++s];break}}return e}uKt.emptyScalarPosition=tEn});var fKt=dr(Oot=>{"use strict";var rEn=Fde(),nEn=xf(),iEn=nKt(),_Kt=lKt(),oEn=Jee(),aEn=pKt(),sEn={composeNode:dKt,composeEmptyNode:Not};function dKt(e,r,i,s){let l=e.atKey,{spaceBefore:d,comment:h,anchor:S,tag:b}=i,A,L=!0;switch(r.type){case"alias":A=cEn(e,r,s),(S||b)&&s(r,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":A=_Kt.composeScalar(e,r,b,s),S&&(A.anchor=S.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":A=iEn.composeCollection(sEn,e,r,i,s),S&&(A.anchor=S.source.substring(1));break;default:{let V=r.type==="error"?r.message:`Unsupported token (type: ${r.type})`;s(r,"UNEXPECTED_TOKEN",V),A=Not(e,r.offset,void 0,null,i,s),L=!1}}return S&&A.anchor===""&&s(S,"BAD_ALIAS","Anchor cannot be an empty string"),l&&e.options.stringKeys&&(!nEn.isScalar(A)||typeof A.value!="string"||A.tag&&A.tag!=="tag:yaml.org,2002:str")&&s(b??r,"NON_STRING_KEY","With stringKeys, all keys must be strings"),d&&(A.spaceBefore=!0),h&&(r.type==="scalar"&&r.source===""?A.comment=h:A.commentBefore=h),e.options.keepSourceTokens&&L&&(A.srcToken=r),A}function Not(e,r,i,s,{spaceBefore:l,comment:d,anchor:h,tag:S,end:b},A){let L={type:"scalar",offset:aEn.emptyScalarPosition(r,i,s),indent:-1,source:""},V=_Kt.composeScalar(e,L,S,A);return h&&(V.anchor=h.source.substring(1),V.anchor===""&&A(h,"BAD_ALIAS","Anchor cannot be an empty string")),l&&(V.spaceBefore=!0),d&&(V.comment=d,V.range[2]=b),V}function cEn({options:e},{offset:r,source:i,end:s},l){let d=new rEn.Alias(i.substring(1));d.source===""&&l(r,"BAD_ALIAS","Alias cannot be an empty string"),d.source.endsWith(":")&&l(r+i.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let h=r+i.length,S=oEn.resolveEnd(s,h,e.strict,l);return d.range=[r,h,S.offset],S.comment&&(d.comment=S.comment),d}Oot.composeEmptyNode=Not;Oot.composeNode=dKt});var gKt=dr(hKt=>{"use strict";var lEn=Zde(),mKt=fKt(),uEn=Jee(),pEn=tfe();function _En(e,r,{offset:i,start:s,value:l,end:d},h){let S=Object.assign({_directives:r},e),b=new lEn.Document(void 0,S),A={atKey:!1,atRoot:!0,directives:b.directives,options:b.options,schema:b.schema},L=pEn.resolveProps(s,{indicator:"doc-start",next:l??d?.[0],offset:i,onError:h,parentIndent:0,startOnNewline:!0});L.found&&(b.directives.docStart=!0,l&&(l.type==="block-map"||l.type==="block-seq")&&!L.hasNewline&&h(L.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),b.contents=l?mKt.composeNode(A,l,L,h):mKt.composeEmptyNode(A,L.end,s,null,L,h);let V=b.contents.range[2],j=uEn.resolveEnd(d,V,!1,h);return j.comment&&(b.comment=j.comment),b.range=[i,V,j.offset],b}hKt.composeDoc=_En});var Rot=dr(SKt=>{"use strict";var dEn=a0("process"),fEn=Sit(),mEn=Zde(),rfe=efe(),yKt=xf(),hEn=gKt(),gEn=Jee();function nfe(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:r,source:i}=e;return[r,r+(typeof i=="string"?i.length:1)]}function vKt(e){let r="",i=!1,s=!1;for(let l=0;l{let h=nfe(i);d?this.warnings.push(new rfe.YAMLWarning(h,s,l)):this.errors.push(new rfe.YAMLParseError(h,s,l))},this.directives=new fEn.Directives({version:r.version||"1.2"}),this.options=r}decorate(r,i){let{comment:s,afterEmptyLine:l}=vKt(this.prelude);if(s){let d=r.contents;if(i)r.comment=r.comment?`${r.comment} +${s}`:s;else if(l||r.directives.docStart||!d)r.commentBefore=s;else if(yKt.isCollection(d)&&!d.flow&&d.items.length>0){let h=d.items[0];yKt.isPair(h)&&(h=h.key);let S=h.commentBefore;h.commentBefore=S?`${s} +${S}`:s}else{let h=d.commentBefore;d.commentBefore=h?`${s} +${h}`:s}}i?(Array.prototype.push.apply(r.errors,this.errors),Array.prototype.push.apply(r.warnings,this.warnings)):(r.errors=this.errors,r.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:vKt(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(r,i=!1,s=-1){for(let l of r)yield*this.next(l);yield*this.end(i,s)}*next(r){switch(dEn.env.LOG_STREAM&&console.dir(r,{depth:null}),r.type){case"directive":this.directives.add(r.source,(i,s,l)=>{let d=nfe(r);d[0]+=i,this.onError(d,"BAD_DIRECTIVE",s,l)}),this.prelude.push(r.source),this.atDirectives=!0;break;case"document":{let i=hEn.composeDoc(this.options,this.directives,r,this.onError);this.atDirectives&&!i.directives.docStart&&this.onError(r,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(i,!1),this.doc&&(yield this.doc),this.doc=i,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(r.source);break;case"error":{let i=r.source?`${r.message}: ${JSON.stringify(r.source)}`:r.message,s=new rfe.YAMLParseError(nfe(r),"UNEXPECTED_TOKEN",i);this.atDirectives||!this.doc?this.errors.push(s):this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){let s="Unexpected doc-end without preceding document";this.errors.push(new rfe.YAMLParseError(nfe(r),"UNEXPECTED_TOKEN",s));break}this.doc.directives.docEnd=!0;let i=gEn.resolveEnd(r.end,r.offset+r.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),i.comment){let s=this.doc.comment;this.doc.comment=s?`${s} +${i.comment}`:i.comment}this.doc.range[2]=i.offset;break}default:this.errors.push(new rfe.YAMLParseError(nfe(r),"UNEXPECTED_TOKEN",`Unsupported token ${r.type}`))}}*end(r=!1,i=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(r){let s=Object.assign({_directives:this.directives},this.options),l=new mEn.Document(void 0,s);this.atDirectives&&this.onError(i,"MISSING_CHAR","Missing directives-end indicator line"),l.range=[0,i,i],this.decorate(l,!1),yield l}}};SKt.Composer=Fot});var TKt=dr(Hwe=>{"use strict";var yEn=wot(),vEn=Pot(),SEn=efe(),bKt=Bde();function bEn(e,r=!0,i){if(e){let s=(l,d,h)=>{let S=typeof l=="number"?l:Array.isArray(l)?l[0]:l.offset;if(i)i(S,d,h);else throw new SEn.YAMLParseError([S,S+1],d,h)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return vEn.resolveFlowScalar(e,r,s);case"block-scalar":return yEn.resolveBlockScalar({options:{strict:r}},e,s)}}return null}function xEn(e,r){let{implicitKey:i=!1,indent:s,inFlow:l=!1,offset:d=-1,type:h="PLAIN"}=r,S=bKt.stringifyString({type:h,value:e},{implicitKey:i,indent:s>0?" ".repeat(s):"",inFlow:l,options:{blockQuote:!0,lineWidth:-1}}),b=r.end??[{type:"newline",offset:-1,indent:s,source:` +`}];switch(S[0]){case"|":case">":{let A=S.indexOf(` +`),L=S.substring(0,A),V=S.substring(A+1)+` +`,j=[{type:"block-scalar-header",offset:d,indent:s,source:L}];return xKt(j,b)||j.push({type:"newline",offset:-1,indent:s,source:` +`}),{type:"block-scalar",offset:d,indent:s,props:j,source:V}}case'"':return{type:"double-quoted-scalar",offset:d,indent:s,source:S,end:b};case"'":return{type:"single-quoted-scalar",offset:d,indent:s,source:S,end:b};default:return{type:"scalar",offset:d,indent:s,source:S,end:b}}}function TEn(e,r,i={}){let{afterKey:s=!1,implicitKey:l=!1,inFlow:d=!1,type:h}=i,S="indent"in e?e.indent:null;if(s&&typeof S=="number"&&(S+=2),!h)switch(e.type){case"single-quoted-scalar":h="QUOTE_SINGLE";break;case"double-quoted-scalar":h="QUOTE_DOUBLE";break;case"block-scalar":{let A=e.props[0];if(A.type!=="block-scalar-header")throw new Error("Invalid block scalar header");h=A.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:h="PLAIN"}let b=bKt.stringifyString({type:h,value:r},{implicitKey:l||S===null,indent:S!==null&&S>0?" ".repeat(S):"",inFlow:d,options:{blockQuote:!0,lineWidth:-1}});switch(b[0]){case"|":case">":EEn(e,b);break;case'"':Lot(e,b,"double-quoted-scalar");break;case"'":Lot(e,b,"single-quoted-scalar");break;default:Lot(e,b,"scalar")}}function EEn(e,r){let i=r.indexOf(` +`),s=r.substring(0,i),l=r.substring(i+1)+` +`;if(e.type==="block-scalar"){let d=e.props[0];if(d.type!=="block-scalar-header")throw new Error("Invalid block scalar header");d.source=s,e.source=l}else{let{offset:d}=e,h="indent"in e?e.indent:-1,S=[{type:"block-scalar-header",offset:d,indent:h,source:s}];xKt(S,"end"in e?e.end:void 0)||S.push({type:"newline",offset:-1,indent:h,source:` +`});for(let b of Object.keys(e))b!=="type"&&b!=="offset"&&delete e[b];Object.assign(e,{type:"block-scalar",indent:h,props:S,source:l})}}function xKt(e,r){if(r)for(let i of r)switch(i.type){case"space":case"comment":e.push(i);break;case"newline":return e.push(i),!0}return!1}function Lot(e,r,i){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=i,e.source=r;break;case"block-scalar":{let s=e.props.slice(1),l=r.length;e.props[0].type==="block-scalar-header"&&(l-=e.props[0].source.length);for(let d of s)d.offset+=l;delete e.props,Object.assign(e,{type:i,source:r,end:s});break}case"block-map":case"block-seq":{let l={type:"newline",offset:e.offset+r.length,indent:e.indent,source:` +`};delete e.items,Object.assign(e,{type:i,source:r,end:[l]});break}default:{let s="indent"in e?e.indent:-1,l="end"in e&&Array.isArray(e.end)?e.end.filter(d=>d.type==="space"||d.type==="comment"||d.type==="newline"):[];for(let d of Object.keys(e))d!=="type"&&d!=="offset"&&delete e[d];Object.assign(e,{type:i,indent:s,source:r,end:l})}}}Hwe.createScalarToken=xEn;Hwe.resolveAsScalar=bEn;Hwe.setScalarValue=TEn});var kKt=dr(EKt=>{"use strict";var kEn=e=>"type"in e?Qwe(e):Kwe(e);function Qwe(e){switch(e.type){case"block-scalar":{let r="";for(let i of e.props)r+=Qwe(i);return r+e.source}case"block-map":case"block-seq":{let r="";for(let i of e.items)r+=Kwe(i);return r}case"flow-collection":{let r=e.start.source;for(let i of e.items)r+=Kwe(i);for(let i of e.end)r+=i.source;return r}case"document":{let r=Kwe(e);if(e.end)for(let i of e.end)r+=i.source;return r}default:{let r=e.source;if("end"in e&&e.end)for(let i of e.end)r+=i.source;return r}}}function Kwe({start:e,key:r,sep:i,value:s}){let l="";for(let d of e)l+=d.source;if(r&&(l+=Qwe(r)),i)for(let d of i)l+=d.source;return s&&(l+=Qwe(s)),l}EKt.stringify=kEn});var wKt=dr(AKt=>{"use strict";var Mot=Symbol("break visit"),CEn=Symbol("skip children"),CKt=Symbol("remove item");function sW(e,r){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),DKt(Object.freeze([]),e,r)}sW.BREAK=Mot;sW.SKIP=CEn;sW.REMOVE=CKt;sW.itemAtPath=(e,r)=>{let i=e;for(let[s,l]of r){let d=i?.[s];if(d&&"items"in d)i=d.items[l];else return}return i};sW.parentCollection=(e,r)=>{let i=sW.itemAtPath(e,r.slice(0,-1)),s=r[r.length-1][0],l=i?.[s];if(l&&"items"in l)return l;throw new Error("Parent collection not found")};function DKt(e,r,i){let s=i(r,e);if(typeof s=="symbol")return s;for(let l of["key","value"]){let d=r[l];if(d&&"items"in d){for(let h=0;h{"use strict";var jot=TKt(),DEn=kKt(),AEn=wKt(),Bot="\uFEFF",$ot="",Uot="",zot="",wEn=e=>!!e&&"items"in e,IEn=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function PEn(e){switch(e){case Bot:return"";case $ot:return"";case Uot:return"";case zot:return"";default:return JSON.stringify(e)}}function NEn(e){switch(e){case Bot:return"byte-order-mark";case $ot:return"doc-mode";case Uot:return"flow-error-end";case zot:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case` +`:case`\r +`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}wk.createScalarToken=jot.createScalarToken;wk.resolveAsScalar=jot.resolveAsScalar;wk.setScalarValue=jot.setScalarValue;wk.stringify=DEn.stringify;wk.visit=AEn.visit;wk.BOM=Bot;wk.DOCUMENT=$ot;wk.FLOW_END=Uot;wk.SCALAR=zot;wk.isCollection=wEn;wk.isScalar=IEn;wk.prettyToken=PEn;wk.tokenType=NEn});var Vot=dr(PKt=>{"use strict";var ife=Zwe();function i4(e){switch(e){case void 0:case" ":case` +`:case"\r":case" ":return!0;default:return!1}}var IKt=new Set("0123456789ABCDEFabcdef"),OEn=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Xwe=new Set(",[]{}"),FEn=new Set(` ,[]{} +\r `),qot=e=>!e||FEn.has(e),Jot=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(r,i=!1){if(r){if(typeof r!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+r:r,this.lineEndPos=null}this.atEnd=!i;let s=this.next??"stream";for(;s&&(i||this.hasChars(1));)s=yield*this.parseNext(s)}atLineEnd(){let r=this.pos,i=this.buffer[r];for(;i===" "||i===" ";)i=this.buffer[++r];return!i||i==="#"||i===` +`?!0:i==="\r"?this.buffer[r+1]===` +`:!1}charAt(r){return this.buffer[this.pos+r]}continueScalar(r){let i=this.buffer[r];if(this.indentNext>0){let s=0;for(;i===" ";)i=this.buffer[++s+r];if(i==="\r"){let l=this.buffer[s+r+1];if(l===` +`||!l&&!this.atEnd)return r+s+1}return i===` +`||s>=this.indentNext||!i&&!this.atEnd?r+s:-1}if(i==="-"||i==="."){let s=this.buffer.substr(r,3);if((s==="---"||s==="...")&&i4(this.buffer[r+3]))return-1}return r}getLine(){let r=this.lineEndPos;return(typeof r!="number"||r!==-1&&rthis.indentValue&&!i4(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[r,i]=this.peek(2);if(!i&&!this.atEnd)return this.setNext("block-start");if((r==="-"||r==="?"||r===":")&&i4(i)){let s=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=s,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let r=this.getLine();if(r===null)return this.setNext("doc");let i=yield*this.pushIndicators();switch(r[i]){case"#":yield*this.pushCount(r.length-i);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(qot),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return i+=yield*this.parseBlockScalarHeader(),i+=yield*this.pushSpaces(!0),yield*this.pushCount(r.length-i),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let r,i,s=-1;do r=yield*this.pushNewline(),r>0?(i=yield*this.pushSpaces(!1),this.indentValue=s=i):i=0,i+=yield*this.pushSpaces(!0);while(r+i>0);let l=this.getLine();if(l===null)return this.setNext("flow");if((s!==-1&&s"0"&&i<="9")this.blockScalarIndent=Number(i)-1;else if(i!=="-")break}return yield*this.pushUntil(i=>i4(i)||i==="#")}*parseBlockScalar(){let r=this.pos-1,i=0,s;e:for(let d=this.pos;s=this.buffer[d];++d)switch(s){case" ":i+=1;break;case` +`:r=d,i=0;break;case"\r":{let h=this.buffer[d+1];if(!h&&!this.atEnd)return this.setNext("block-scalar");if(h===` +`)break}default:break e}if(!s&&!this.atEnd)return this.setNext("block-scalar");if(i>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=i:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let d=this.continueScalar(r+1);if(d===-1)break;r=this.buffer.indexOf(` +`,d)}while(r!==-1);if(r===-1){if(!this.atEnd)return this.setNext("block-scalar");r=this.buffer.length}}let l=r+1;for(s=this.buffer[l];s===" ";)s=this.buffer[++l];if(s===" "){for(;s===" "||s===" "||s==="\r"||s===` +`;)s=this.buffer[++l];r=l-1}else if(!this.blockScalarKeep)do{let d=r-1,h=this.buffer[d];h==="\r"&&(h=this.buffer[--d]);let S=d;for(;h===" ";)h=this.buffer[--d];if(h===` +`&&d>=this.pos&&d+1+i>S)r=d;else break}while(!0);return yield ife.SCALAR,yield*this.pushToIndex(r+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let r=this.flowLevel>0,i=this.pos-1,s=this.pos-1,l;for(;l=this.buffer[++s];)if(l===":"){let d=this.buffer[s+1];if(i4(d)||r&&Xwe.has(d))break;i=s}else if(i4(l)){let d=this.buffer[s+1];if(l==="\r"&&(d===` +`?(s+=1,l=` +`,d=this.buffer[s+1]):i=s),d==="#"||r&&Xwe.has(d))break;if(l===` +`){let h=this.continueScalar(s+1);if(h===-1)break;s=Math.max(s,h-2)}}else{if(r&&Xwe.has(l))break;i=s}return!l&&!this.atEnd?this.setNext("plain-scalar"):(yield ife.SCALAR,yield*this.pushToIndex(i+1,!0),r?"flow":"doc")}*pushCount(r){return r>0?(yield this.buffer.substr(this.pos,r),this.pos+=r,r):0}*pushToIndex(r,i){let s=this.buffer.slice(this.pos,r);return s?(yield s,this.pos+=s.length,s.length):(i&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(qot))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let r=this.flowLevel>0,i=this.charAt(1);if(i4(i)||r&&Xwe.has(i))return r?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let r=this.pos+2,i=this.buffer[r];for(;!i4(i)&&i!==">";)i=this.buffer[++r];return yield*this.pushToIndex(i===">"?r+1:r,!1)}else{let r=this.pos+1,i=this.buffer[r];for(;i;)if(OEn.has(i))i=this.buffer[++r];else if(i==="%"&&IKt.has(this.buffer[r+1])&&IKt.has(this.buffer[r+2]))i=this.buffer[r+=3];else break;return yield*this.pushToIndex(r,!1)}}*pushNewline(){let r=this.buffer[this.pos];return r===` +`?yield*this.pushCount(1):r==="\r"&&this.charAt(1)===` +`?yield*this.pushCount(2):0}*pushSpaces(r){let i=this.pos-1,s;do s=this.buffer[++i];while(s===" "||r&&s===" ");let l=i-this.pos;return l>0&&(yield this.buffer.substr(this.pos,l),this.pos=i),l}*pushUntil(r){let i=this.pos,s=this.buffer[i];for(;!r(s);)s=this.buffer[++i];return yield*this.pushToIndex(i,!1)}};PKt.Lexer=Jot});var Got=dr(NKt=>{"use strict";var Wot=class{constructor(){this.lineStarts=[],this.addNewLine=r=>this.lineStarts.push(r),this.linePos=r=>{let i=0,s=this.lineStarts.length;for(;i>1;this.lineStarts[d]{"use strict";var REn=a0("process"),OKt=Zwe(),LEn=Vot();function KB(e,r){for(let i=0;i=0;)switch(e[r].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++r]?.type==="space";);return e.splice(r,e.length)}function RKt(e){if(e.start.type==="flow-seq-start")for(let r of e.items)r.sep&&!r.value&&!KB(r.start,"explicit-key-ind")&&!KB(r.sep,"map-value-ind")&&(r.key&&(r.value=r.key),delete r.key,LKt(r.value)?r.value.end?Array.prototype.push.apply(r.value.end,r.sep):r.value.end=r.sep:Array.prototype.push.apply(r.start,r.sep),delete r.sep)}var Hot=class{constructor(r){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new LEn.Lexer,this.onNewLine=r}*parse(r,i=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let s of this.lexer.lex(r,i))yield*this.next(s);i||(yield*this.end())}*next(r){if(this.source=r,REn.env.LOG_TOKENS&&console.log("|",OKt.prettyToken(r)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=r.length;return}let i=OKt.tokenType(r);if(i)if(i==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=i,yield*this.step(),i){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+r.length);break;case"space":this.atNewLine&&r[0]===" "&&(this.indent+=r.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=r.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=r.length}else{let s=`Not a YAML token: ${r}`;yield*this.pop({type:"error",offset:this.offset,message:s,source:r}),this.offset+=r.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let r=this.peek(1);if(this.type==="doc-end"&&r?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!r)return yield*this.stream();switch(r.type){case"document":return yield*this.document(r);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(r);case"block-scalar":return yield*this.blockScalar(r);case"block-map":return yield*this.blockMap(r);case"block-seq":return yield*this.blockSequence(r);case"flow-collection":return yield*this.flowCollection(r);case"doc-end":return yield*this.documentEnd(r)}yield*this.pop()}peek(r){return this.stack[this.stack.length-r]}*pop(r){let i=r??this.stack.pop();if(!i)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield i;else{let s=this.peek(1);switch(i.type==="block-scalar"?i.indent="indent"in s?s.indent:0:i.type==="flow-collection"&&s.type==="document"&&(i.indent=0),i.type==="flow-collection"&&RKt(i),s.type){case"document":s.value=i;break;case"block-scalar":s.props.push(i);break;case"block-map":{let l=s.items[s.items.length-1];if(l.value){s.items.push({start:[],key:i,sep:[]}),this.onKeyLine=!0;return}else if(l.sep)l.value=i;else{Object.assign(l,{key:i,sep:[]}),this.onKeyLine=!l.explicitKey;return}break}case"block-seq":{let l=s.items[s.items.length-1];l.value?s.items.push({start:[],value:i}):l.value=i;break}case"flow-collection":{let l=s.items[s.items.length-1];!l||l.value?s.items.push({start:[],key:i,sep:[]}):l.sep?l.value=i:Object.assign(l,{key:i,sep:[]});return}default:yield*this.pop(),yield*this.pop(i)}if((s.type==="document"||s.type==="block-map"||s.type==="block-seq")&&(i.type==="block-map"||i.type==="block-seq")){let l=i.items[i.items.length-1];l&&!l.sep&&!l.value&&l.start.length>0&&FKt(l.start)===-1&&(i.indent===0||l.start.every(d=>d.type!=="comment"||d.indent=r.indent){let s=!this.onKeyLine&&this.indent===r.indent,l=s&&(i.sep||i.explicitKey)&&this.type!=="seq-item-ind",d=[];if(l&&i.sep&&!i.value){let h=[];for(let S=0;Sr.indent&&(h.length=0);break;default:h.length=0}}h.length>=2&&(d=i.sep.splice(h[1]))}switch(this.type){case"anchor":case"tag":l||i.value?(d.push(this.sourceToken),r.items.push({start:d}),this.onKeyLine=!0):i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"explicit-key-ind":!i.sep&&!i.explicitKey?(i.start.push(this.sourceToken),i.explicitKey=!0):l||i.value?(d.push(this.sourceToken),r.items.push({start:d,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(i.explicitKey)if(i.sep)if(i.value)r.items.push({start:[],key:null,sep:[this.sourceToken]});else if(KB(i.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:d,key:null,sep:[this.sourceToken]}]});else if(LKt(i.key)&&!KB(i.sep,"newline")){let h=Vee(i.start),S=i.key,b=i.sep;b.push(this.sourceToken),delete i.key,delete i.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:S,sep:b}]})}else d.length>0?i.sep=i.sep.concat(d,this.sourceToken):i.sep.push(this.sourceToken);else if(KB(i.start,"newline"))Object.assign(i,{key:null,sep:[this.sourceToken]});else{let h=Vee(i.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:null,sep:[this.sourceToken]}]})}else i.sep?i.value||l?r.items.push({start:d,key:null,sep:[this.sourceToken]}):KB(i.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):i.sep.push(this.sourceToken):Object.assign(i,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let h=this.flowScalar(this.type);l||i.value?(r.items.push({start:d,key:h,sep:[]}),this.onKeyLine=!0):i.sep?this.stack.push(h):(Object.assign(i,{key:h,sep:[]}),this.onKeyLine=!0);return}default:{let h=this.startBlockValue(r);if(h){if(h.type==="block-seq"){if(!i.explicitKey&&i.sep&&!KB(i.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else s&&r.items.push({start:d});this.stack.push(h);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(r){let i=r.items[r.items.length-1];switch(this.type){case"newline":if(i.value){let s="end"in i.value?i.value.end:void 0;(Array.isArray(s)?s[s.length-1]:void 0)?.type==="comment"?s?.push(this.sourceToken):r.items.push({start:[this.sourceToken]})}else i.start.push(this.sourceToken);return;case"space":case"comment":if(i.value)r.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(i.start,r.indent)){let l=r.items[r.items.length-2]?.value?.end;if(Array.isArray(l)){Array.prototype.push.apply(l,i.start),l.push(this.sourceToken),r.items.pop();return}}i.start.push(this.sourceToken)}return;case"anchor":case"tag":if(i.value||this.indent<=r.indent)break;i.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==r.indent)break;i.value||KB(i.start,"seq-item-ind")?r.items.push({start:[this.sourceToken]}):i.start.push(this.sourceToken);return}if(this.indent>r.indent){let s=this.startBlockValue(r);if(s){this.stack.push(s);return}}yield*this.pop(),yield*this.step()}*flowCollection(r){let i=r.items[r.items.length-1];if(this.type==="flow-error-end"){let s;do yield*this.pop(),s=this.peek(1);while(s?.type==="flow-collection")}else if(r.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!i||i.sep?r.items.push({start:[this.sourceToken]}):i.start.push(this.sourceToken);return;case"map-value-ind":!i||i.value?r.items.push({start:[],key:null,sep:[this.sourceToken]}):i.sep?i.sep.push(this.sourceToken):Object.assign(i,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!i||i.value?r.items.push({start:[this.sourceToken]}):i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let l=this.flowScalar(this.type);!i||i.value?r.items.push({start:[],key:l,sep:[]}):i.sep?this.stack.push(l):Object.assign(i,{key:l,sep:[]});return}case"flow-map-end":case"flow-seq-end":r.end.push(this.sourceToken);return}let s=this.startBlockValue(r);s?this.stack.push(s):(yield*this.pop(),yield*this.step())}else{let s=this.peek(2);if(s.type==="block-map"&&(this.type==="map-value-ind"&&s.indent===r.indent||this.type==="newline"&&!s.items[s.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&s.type!=="flow-collection"){let l=Ywe(s),d=Vee(l);RKt(r);let h=r.end.splice(1,r.end.length);h.push(this.sourceToken);let S={type:"block-map",offset:r.offset,indent:r.indent,items:[{start:d,key:r,sep:h}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=S}else yield*this.lineEnd(r)}}flowScalar(r){if(this.onNewLine){let i=this.source.indexOf(` +`)+1;for(;i!==0;)this.onNewLine(this.offset+i),i=this.source.indexOf(` +`,i)+1}return{type:r,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(r){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let i=Ywe(r),s=Vee(i);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let i=Ywe(r),s=Vee(i);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(r,i){return this.type!=="comment"||this.indent<=i?!1:r.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(r){this.type!=="doc-mode"&&(r.end?r.end.push(this.sourceToken):r.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(r){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:r.end?r.end.push(this.sourceToken):r.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};MKt.Parser=Hot});var zKt=dr(afe=>{"use strict";var jKt=Rot(),MEn=Zde(),ofe=efe(),jEn=Oit(),BEn=xf(),$En=Got(),BKt=Kot();function $Kt(e){let r=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||r&&new $En.LineCounter||null,prettyErrors:r}}function UEn(e,r={}){let{lineCounter:i,prettyErrors:s}=$Kt(r),l=new BKt.Parser(i?.addNewLine),d=new jKt.Composer(r),h=Array.from(d.compose(l.parse(e)));if(s&&i)for(let S of h)S.errors.forEach(ofe.prettifyError(e,i)),S.warnings.forEach(ofe.prettifyError(e,i));return h.length>0?h:Object.assign([],{empty:!0},d.streamInfo())}function UKt(e,r={}){let{lineCounter:i,prettyErrors:s}=$Kt(r),l=new BKt.Parser(i?.addNewLine),d=new jKt.Composer(r),h=null;for(let S of d.compose(l.parse(e),!0,e.length))if(!h)h=S;else if(h.options.logLevel!=="silent"){h.errors.push(new ofe.YAMLParseError(S.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&i&&(h.errors.forEach(ofe.prettifyError(e,i)),h.warnings.forEach(ofe.prettifyError(e,i))),h}function zEn(e,r,i){let s;typeof r=="function"?s=r:i===void 0&&r&&typeof r=="object"&&(i=r);let l=UKt(e,i);if(!l)return null;if(l.warnings.forEach(d=>jEn.warn(l.options.logLevel,d)),l.errors.length>0){if(l.options.logLevel!=="silent")throw l.errors[0];l.errors=[]}return l.toJS(Object.assign({reviver:s},i))}function qEn(e,r,i){let s=null;if(typeof r=="function"||Array.isArray(r)?s=r:i===void 0&&r&&(i=r),typeof i=="string"&&(i=i.length),typeof i=="number"){let l=Math.round(i);i=l<1?void 0:l>8?{indent:8}:{indent:l}}if(e===void 0){let{keepUndefined:l}=i??r??{};if(!l)return}return BEn.isDocument(e)&&!s?e.toString(i):new MEn.Document(e,s,i).toString(i)}afe.parse=zEn;afe.parseAllDocuments=UEn;afe.parseDocument=UKt;afe.stringify=qEn});var JKt=dr(Um=>{"use strict";var JEn=Rot(),VEn=Zde(),WEn=mot(),Qot=efe(),GEn=Fde(),QB=xf(),HEn=VB(),KEn=uv(),QEn=GB(),ZEn=HB(),XEn=Zwe(),YEn=Vot(),ekn=Got(),tkn=Kot(),eIe=zKt(),qKt=Ide();Um.Composer=JEn.Composer;Um.Document=VEn.Document;Um.Schema=WEn.Schema;Um.YAMLError=Qot.YAMLError;Um.YAMLParseError=Qot.YAMLParseError;Um.YAMLWarning=Qot.YAMLWarning;Um.Alias=GEn.Alias;Um.isAlias=QB.isAlias;Um.isCollection=QB.isCollection;Um.isDocument=QB.isDocument;Um.isMap=QB.isMap;Um.isNode=QB.isNode;Um.isPair=QB.isPair;Um.isScalar=QB.isScalar;Um.isSeq=QB.isSeq;Um.Pair=HEn.Pair;Um.Scalar=KEn.Scalar;Um.YAMLMap=QEn.YAMLMap;Um.YAMLSeq=ZEn.YAMLSeq;Um.CST=XEn;Um.Lexer=YEn.Lexer;Um.LineCounter=ekn.LineCounter;Um.Parser=tkn.Parser;Um.parse=eIe.parse;Um.parseAllDocuments=eIe.parseAllDocuments;Um.parseDocument=eIe.parseDocument;Um.stringify=eIe.stringify;Um.visit=qKt.visit;Um.visitAsync=qKt.visitAsync});var fW,qat,wIe,mW,Ife,IIe=Rce(()=>{fW={JS_EVAL_TYPE_GLOBAL:0,JS_EVAL_TYPE_MODULE:1,JS_EVAL_TYPE_DIRECT:2,JS_EVAL_TYPE_INDIRECT:3,JS_EVAL_TYPE_MASK:3,JS_EVAL_FLAG_STRICT:8,JS_EVAL_FLAG_STRIP:16,JS_EVAL_FLAG_COMPILE_ONLY:32,JS_EVAL_FLAG_BACKTRACE_BARRIER:64},qat={BaseObjects:1,Date:2,Eval:4,StringNormalize:8,RegExp:16,RegExpCompiler:32,JSON:64,Proxy:128,MapSet:256,TypedArrays:512,Promise:1024,BigInt:2048,BigFloat:4096,BigDecimal:8192,OperatorOverloading:16384,BignumExt:32768},wIe={Pending:0,Fulfilled:1,Rejected:2},mW={JS_GPN_STRING_MASK:1,JS_GPN_SYMBOL_MASK:2,JS_GPN_PRIVATE_MASK:4,JS_GPN_ENUM_ONLY:16,JS_GPN_SET_ENUM:32,QTS_GPN_NUMBER_MASK:64,QTS_STANDARD_COMPLIANT_NUMBER:128},Ife={IsStrictlyEqual:0,IsSameValue:1,IsSameValueZero:2}});function Pfe(...e){Hat&&console.log("quickjs-emscripten:",...e)}function*VZt(e){return yield e}function NDn(e){return VZt(Qat(e))}function RZt(e,r){return(...i)=>{let s=r.call(e,Kat,...i);return Qat(s)}}function ODn(e,r){let i=r.call(e,Kat);return Qat(i)}function Qat(e){function r(i){return i.done?i.value:i.value instanceof Promise?i.value.then(s=>r(e.next(s)),s=>r(e.throw(s))):r(e.next(i.value))}return r(e.next())}function Jat(e,r){let i;try{e.dispose()}catch(s){i=s}if(r&&i)throw Object.assign(r,{message:`${r.message} + Then, failed to dispose scope: ${i.message}`,disposeError:i}),r;if(r||i)throw r||i}function FDn(e){let r=e?Array.from(e):[];function i(){return r.forEach(l=>l.alive?l.dispose():void 0)}function s(){return r.some(l=>l.alive)}return Object.defineProperty(r,Gat,{configurable:!0,enumerable:!1,value:i}),Object.defineProperty(r,"dispose",{configurable:!0,enumerable:!1,value:i}),Object.defineProperty(r,"alive",{configurable:!0,enumerable:!1,get:s}),r}function NIe(e){return!!(e&&(typeof e=="object"||typeof e=="function")&&"alive"in e&&typeof e.alive=="boolean"&&"dispose"in e&&typeof e.dispose=="function")}function jDn(e){if(!e)return 0;let r=0;for(let[i,s]of Object.entries(e)){if(!(i in qat))throw new zZt(i);s&&(r|=qat[i])}return r}function BDn(e){if(typeof e=="number")return e;if(e===void 0)return 0;let{type:r,strict:i,strip:s,compileOnly:l,backtraceBarrier:d}=e,h=0;return r==="global"&&(h|=fW.JS_EVAL_TYPE_GLOBAL),r==="module"&&(h|=fW.JS_EVAL_TYPE_MODULE),i&&(h|=fW.JS_EVAL_FLAG_STRICT),s&&(h|=fW.JS_EVAL_FLAG_STRIP),l&&(h|=fW.JS_EVAL_FLAG_COMPILE_ONLY),d&&(h|=fW.JS_EVAL_FLAG_BACKTRACE_BARRIER),h}function $Dn(e){if(typeof e=="number")return e;if(e===void 0)return 0;let{strings:r,symbols:i,quickjsPrivate:s,onlyEnumerable:l,numbers:d,numbersAsStrings:h}=e,S=0;return r&&(S|=mW.JS_GPN_STRING_MASK),i&&(S|=mW.JS_GPN_SYMBOL_MASK),s&&(S|=mW.JS_GPN_PRIVATE_MASK),l&&(S|=mW.JS_GPN_ENUM_ONLY),d&&(S|=mW.QTS_GPN_NUMBER_MASK),h&&(S|=mW.QTS_STANDARD_COMPLIANT_NUMBER),S}function UDn(...e){let r=[];for(let i of e)i!==void 0&&(r=r.concat(i));return r}function Yat(e,r){r.interruptHandler&&e.setInterruptHandler(r.interruptHandler),r.maxStackSizeBytes!==void 0&&e.setMaxStackSize(r.maxStackSizeBytes),r.memoryLimitBytes!==void 0&&e.setMemoryLimit(r.memoryLimitBytes)}function est(e,r){r.moduleLoader&&e.setModuleLoader(r.moduleLoader),r.shouldInterrupt&&e.setInterruptHandler(r.shouldInterrupt),r.memoryLimitBytes!==void 0&&e.setMemoryLimit(r.memoryLimitBytes),r.maxStackSizeBytes!==void 0&&e.setMaxStackSize(r.maxStackSizeBytes)}var DDn,ADn,Hat,wDn,Vat,jZt,Wat,BZt,$Zt,UZt,IDn,PDn,zZt,qZt,JZt,Kat,o$,Gat,LZt,G2,hW,MZt,j8,Zat,RDn,LDn,Xee,MDn,HZt,gei,zDn,qDn,JDn,VDn,WDn,Xat,KZt,QZt=Rce(()=>{IIe();IIe();DDn=Object.defineProperty,ADn=(e,r)=>{for(var i in r)DDn(e,i,{get:r[i],enumerable:!0})},Hat=!1;wDn={};ADn(wDn,{QuickJSAsyncifyError:()=>$Zt,QuickJSAsyncifySuspended:()=>UZt,QuickJSEmptyGetOwnPropertyNames:()=>JZt,QuickJSEmscriptenModuleError:()=>PDn,QuickJSMemoryLeakDetected:()=>IDn,QuickJSNotImplemented:()=>BZt,QuickJSPromisePending:()=>qZt,QuickJSUnknownIntrinsic:()=>zZt,QuickJSUnwrapError:()=>Vat,QuickJSUseAfterFree:()=>Wat,QuickJSWrongOwner:()=>jZt});Vat=class extends Error{constructor(e,r){let i=typeof e=="object"&&e&&"message"in e?String(e.message):String(e);super(i),this.cause=e,this.context=r,this.name="QuickJSUnwrapError"}},jZt=class extends Error{constructor(){super(...arguments),this.name="QuickJSWrongOwner"}},Wat=class extends Error{constructor(){super(...arguments),this.name="QuickJSUseAfterFree"}},BZt=class extends Error{constructor(){super(...arguments),this.name="QuickJSNotImplemented"}},$Zt=class extends Error{constructor(){super(...arguments),this.name="QuickJSAsyncifyError"}},UZt=class extends Error{constructor(){super(...arguments),this.name="QuickJSAsyncifySuspended"}},IDn=class extends Error{constructor(){super(...arguments),this.name="QuickJSMemoryLeakDetected"}},PDn=class extends Error{constructor(){super(...arguments),this.name="QuickJSEmscriptenModuleError"}},zZt=class extends TypeError{constructor(){super(...arguments),this.name="QuickJSUnknownIntrinsic"}},qZt=class extends Error{constructor(){super(...arguments),this.name="QuickJSPromisePending"}},JZt=class extends Error{constructor(){super(...arguments),this.name="QuickJSEmptyGetOwnPropertyNames"}};Kat=VZt;Kat.of=NDn;o$=class{[Symbol.dispose](){return this.dispose()}},Gat=Symbol.dispose??Symbol.for("Symbol.dispose"),LZt=o$.prototype;LZt[Gat]||(LZt[Gat]=function(){return this.dispose()});G2=class WZt extends o${constructor(r,i,s,l){super(),this._value=r,this.copier=i,this.disposer=s,this._owner=l,this._alive=!0,this._constructorStack=Hat?new Error("Lifetime constructed").stack:void 0}get alive(){return this._alive}get value(){return this.assertAlive(),this._value}get owner(){return this._owner}get dupable(){return!!this.copier}dup(){if(this.assertAlive(),!this.copier)throw new Error("Non-dupable lifetime");return new WZt(this.copier(this._value),this.copier,this.disposer,this._owner)}consume(r){this.assertAlive();let i=r(this);return this.dispose(),i}map(r){return this.assertAlive(),r(this)}tap(r){return r(this),this}dispose(){this.assertAlive(),this.disposer&&this.disposer(this._value),this._alive=!1}assertAlive(){if(!this.alive)throw this._constructorStack?new Wat(`Lifetime not alive +${this._constructorStack} +Lifetime used`):new Wat("Lifetime not alive")}},hW=class extends G2{constructor(e,r){super(e,void 0,void 0,r)}get dupable(){return!0}dup(){return this}dispose(){}},MZt=class extends G2{constructor(e,r,i,s){super(e,r,i,s)}dispose(){this._alive=!1}};j8=class PIe extends o${constructor(){super(...arguments),this._disposables=new G2(new Set),this.manage=r=>(this._disposables.value.add(r),r)}static withScope(r){let i=new PIe,s;try{return r(i)}catch(l){throw s=l,l}finally{Jat(i,s)}}static withScopeMaybeAsync(r,i){return ODn(void 0,function*(s){let l=new PIe,d;try{return yield*s.of(i.call(r,s,l))}catch(h){throw d=h,h}finally{Jat(l,d)}})}static async withScopeAsync(r){let i=new PIe,s;try{return await r(i)}catch(l){throw s=l,l}finally{Jat(i,s)}}get alive(){return this._disposables.alive}dispose(){let r=Array.from(this._disposables.value.values()).reverse();for(let i of r)i.alive&&i.dispose();this._disposables.dispose()}};Zat=class GZt extends o${static success(r){return new RDn(r)}static fail(r,i){return new LDn(r,i)}static is(r){return r instanceof GZt}},RDn=class extends Zat{constructor(e){super(),this.value=e}get alive(){return NIe(this.value)?this.value.alive:!0}dispose(){NIe(this.value)&&this.value.dispose()}unwrap(){return this.value}unwrapOr(e){return this.value}},LDn=class extends Zat{constructor(e,r){super(),this.error=e,this.onUnwrap=r}get alive(){return NIe(this.error)?this.error.alive:!0}dispose(){NIe(this.error)&&this.error.dispose()}unwrap(){throw this.onUnwrap(this),this.error}unwrapOr(e){return e}},Xee=Zat,MDn=class extends o${constructor(e){super(),this.resolve=r=>{this.resolveHandle.alive&&(this.context.unwrapResult(this.context.callFunction(this.resolveHandle,this.context.undefined,r||this.context.undefined)).dispose(),this.disposeResolvers(),this.onSettled())},this.reject=r=>{this.rejectHandle.alive&&(this.context.unwrapResult(this.context.callFunction(this.rejectHandle,this.context.undefined,r||this.context.undefined)).dispose(),this.disposeResolvers(),this.onSettled())},this.dispose=()=>{this.handle.alive&&this.handle.dispose(),this.disposeResolvers()},this.context=e.context,this.owner=e.context.runtime,this.handle=e.promiseHandle,this.settled=new Promise(r=>{this.onSettled=r}),this.resolveHandle=e.resolveHandle,this.rejectHandle=e.rejectHandle}get alive(){return this.handle.alive||this.resolveHandle.alive||this.rejectHandle.alive}disposeResolvers(){this.resolveHandle.alive&&this.resolveHandle.dispose(),this.rejectHandle.alive&&this.rejectHandle.dispose()}},HZt=class{constructor(e){this.module=e}toPointerArray(e){let r=new Int32Array(e.map(l=>l.value)),i=r.length*r.BYTES_PER_ELEMENT,s=this.module._malloc(i);return new Uint8Array(this.module.HEAPU8.buffer,s,i).set(new Uint8Array(r.buffer)),new G2(s,void 0,l=>this.module._free(l))}newTypedArray(e,r){let i=new e(new Array(r).fill(0)),s=i.length*i.BYTES_PER_ELEMENT,l=this.module._malloc(s),d=new e(this.module.HEAPU8.buffer,l,r);return d.set(i),new G2({typedArray:d,ptr:l},void 0,h=>this.module._free(h.ptr))}newMutablePointerArray(e){return this.newTypedArray(Int32Array,e)}newHeapCharPointer(e){let r=this.module.lengthBytesUTF8(e),i=r+1,s=this.module._malloc(i);return this.module.stringToUTF8(e,s,i),new G2({ptr:s,strlen:r},void 0,l=>this.module._free(l.ptr))}newHeapBufferPointer(e){let r=e.byteLength,i=this.module._malloc(r);return this.module.HEAPU8.set(e,i),new G2({pointer:i,numBytes:r},void 0,s=>this.module._free(s.pointer))}consumeHeapCharPointer(e){let r=this.module.UTF8ToString(e);return this.module._free(e),r}},gei=Object.freeze({BaseObjects:!0,Date:!0,Eval:!0,StringNormalize:!0,RegExp:!0,JSON:!0,Proxy:!0,MapSet:!0,TypedArrays:!0,Promise:!0});zDn=class extends o${constructor(e,r){super(),this.handle=e,this.context=r,this._isDone=!1,this.owner=r.runtime}[Symbol.iterator](){return this}next(e){if(!this.alive||this._isDone)return{done:!0,value:void 0};let r=this._next??(this._next=this.context.getProp(this.handle,"next"));return this.callIteratorMethod(r,e)}return(e){if(!this.alive)return{done:!0,value:void 0};let r=this.context.getProp(this.handle,"return");if(r===this.context.undefined&&e===void 0)return this.dispose(),{done:!0,value:void 0};let i=this.callIteratorMethod(r,e);return r.dispose(),this.dispose(),i}throw(e){if(!this.alive)return{done:!0,value:void 0};let r=e instanceof G2?e:this.context.newError(e),i=this.context.getProp(this.handle,"throw"),s=this.callIteratorMethod(i,e);return r.alive&&r.dispose(),i.dispose(),this.dispose(),s}get alive(){return this.handle.alive}dispose(){this._isDone=!0,this.handle.dispose(),this._next?.dispose()}callIteratorMethod(e,r){let i=r?this.context.callFunction(e,this.handle,r):this.context.callFunction(e,this.handle);if(i.error)return this.dispose(),{value:i};let s=this.context.getProp(i.value,"done").consume(d=>this.context.dump(d));if(s)return i.value.dispose(),this.dispose(),{done:s,value:void 0};let l=this.context.getProp(i.value,"value");return i.value.dispose(),{value:Xee.success(l),done:s}}},qDn=class extends HZt{constructor(e){super(e.module),this.scope=new j8,this.copyJSValue=r=>this.ffi.QTS_DupValuePointer(this.ctx.value,r),this.freeJSValue=r=>{this.ffi.QTS_FreeValuePointer(this.ctx.value,r)},e.ownedLifetimes?.forEach(r=>this.scope.manage(r)),this.owner=e.owner,this.module=e.module,this.ffi=e.ffi,this.rt=e.rt,this.ctx=this.scope.manage(e.ctx)}get alive(){return this.scope.alive}dispose(){return this.scope.dispose()}[Symbol.dispose](){return this.dispose()}manage(e){return this.scope.manage(e)}consumeJSCharPointer(e){let r=this.module.UTF8ToString(e);return this.ffi.QTS_FreeCString(this.ctx.value,e),r}heapValueHandle(e){return new G2(e,this.copyJSValue,this.freeJSValue,this.owner)}staticHeapValueHandle(e){return this.manage(this.heapValueHandle(e)),new hW(e,this.owner)}},JDn=class extends o${constructor(e){super(),this._undefined=void 0,this._null=void 0,this._false=void 0,this._true=void 0,this._global=void 0,this._BigInt=void 0,this._Symbol=void 0,this._SymbolIterator=void 0,this._SymbolAsyncIterator=void 0,this.fnNextId=-32768,this.fnMaps=new Map,this.cToHostCallbacks={callFunction:(r,i,s,l,d)=>{if(r!==this.ctx.value)throw new Error("QuickJSContext instance received C -> JS call with mismatched ctx");let h=this.getFunction(d);if(!h)throw new Error(`QuickJSContext had no callback with id ${d}`);return j8.withScopeMaybeAsync(this,function*(S,b){let A=b.manage(new MZt(i,this.memory.copyJSValue,this.memory.freeJSValue,this.runtime)),L=new Array(s);for(let V=0;Vthis.ffi.QTS_Throw(this.ctx.value,j.value))}})}},this.runtime=e.runtime,this.module=e.module,this.ffi=e.ffi,this.rt=e.rt,this.ctx=e.ctx,this.memory=new qDn({...e,owner:this.runtime}),e.callbacks.setContextCallbacks(this.ctx.value,this.cToHostCallbacks),this.dump=this.dump.bind(this),this.getString=this.getString.bind(this),this.getNumber=this.getNumber.bind(this),this.resolvePromise=this.resolvePromise.bind(this),this.uint32Out=this.memory.manage(this.memory.newTypedArray(Uint32Array,1))}get alive(){return this.memory.alive}dispose(){this.memory.dispose()}get undefined(){if(this._undefined)return this._undefined;let e=this.ffi.QTS_GetUndefined();return this._undefined=new hW(e)}get null(){if(this._null)return this._null;let e=this.ffi.QTS_GetNull();return this._null=new hW(e)}get true(){if(this._true)return this._true;let e=this.ffi.QTS_GetTrue();return this._true=new hW(e)}get false(){if(this._false)return this._false;let e=this.ffi.QTS_GetFalse();return this._false=new hW(e)}get global(){if(this._global)return this._global;let e=this.ffi.QTS_GetGlobalObject(this.ctx.value);return this._global=this.memory.staticHeapValueHandle(e),this._global}newNumber(e){return this.memory.heapValueHandle(this.ffi.QTS_NewFloat64(this.ctx.value,e))}newString(e){let r=this.memory.newHeapCharPointer(e).consume(i=>this.ffi.QTS_NewString(this.ctx.value,i.value.ptr));return this.memory.heapValueHandle(r)}newUniqueSymbol(e){let r=(typeof e=="symbol"?e.description:e)??"",i=this.memory.newHeapCharPointer(r).consume(s=>this.ffi.QTS_NewSymbol(this.ctx.value,s.value.ptr,0));return this.memory.heapValueHandle(i)}newSymbolFor(e){let r=(typeof e=="symbol"?e.description:e)??"",i=this.memory.newHeapCharPointer(r).consume(s=>this.ffi.QTS_NewSymbol(this.ctx.value,s.value.ptr,1));return this.memory.heapValueHandle(i)}getWellKnownSymbol(e){return this._Symbol??(this._Symbol=this.memory.manage(this.getProp(this.global,"Symbol"))),this.getProp(this._Symbol,e)}newBigInt(e){if(!this._BigInt){let s=this.getProp(this.global,"BigInt");this.memory.manage(s),this._BigInt=new hW(s.value,this.runtime)}let r=this._BigInt,i=String(e);return this.newString(i).consume(s=>this.unwrapResult(this.callFunction(r,this.undefined,s)))}newObject(e){e&&this.runtime.assertOwned(e);let r=e?this.ffi.QTS_NewObjectProto(this.ctx.value,e.value):this.ffi.QTS_NewObject(this.ctx.value);return this.memory.heapValueHandle(r)}newArray(){let e=this.ffi.QTS_NewArray(this.ctx.value);return this.memory.heapValueHandle(e)}newArrayBuffer(e){let r=new Uint8Array(e),i=this.memory.newHeapBufferPointer(r),s=this.ffi.QTS_NewArrayBuffer(this.ctx.value,i.value.pointer,r.length);return this.memory.heapValueHandle(s)}newPromise(e){let r=j8.withScope(i=>{let s=i.manage(this.memory.newMutablePointerArray(2)),l=this.ffi.QTS_NewPromiseCapability(this.ctx.value,s.value.ptr),d=this.memory.heapValueHandle(l),[h,S]=Array.from(s.value.typedArray).map(b=>this.memory.heapValueHandle(b));return new MDn({context:this,promiseHandle:d,resolveHandle:h,rejectHandle:S})});return e&&typeof e=="function"&&(e=new Promise(e)),e&&Promise.resolve(e).then(r.resolve,i=>i instanceof G2?r.reject(i):this.newError(i).consume(r.reject)),r}newFunction(e,r){let i=++this.fnNextId;return this.setFunction(i,r),this.memory.heapValueHandle(this.ffi.QTS_NewFunction(this.ctx.value,i,e))}newError(e){let r=this.memory.heapValueHandle(this.ffi.QTS_NewError(this.ctx.value));return e&&typeof e=="object"?(e.name!==void 0&&this.newString(e.name).consume(i=>this.setProp(r,"name",i)),e.message!==void 0&&this.newString(e.message).consume(i=>this.setProp(r,"message",i))):typeof e=="string"?this.newString(e).consume(i=>this.setProp(r,"message",i)):e!==void 0&&this.newString(String(e)).consume(i=>this.setProp(r,"message",i)),r}typeof(e){return this.runtime.assertOwned(e),this.memory.consumeHeapCharPointer(this.ffi.QTS_Typeof(this.ctx.value,e.value))}getNumber(e){return this.runtime.assertOwned(e),this.ffi.QTS_GetFloat64(this.ctx.value,e.value)}getString(e){return this.runtime.assertOwned(e),this.memory.consumeJSCharPointer(this.ffi.QTS_GetString(this.ctx.value,e.value))}getSymbol(e){this.runtime.assertOwned(e);let r=this.memory.consumeJSCharPointer(this.ffi.QTS_GetSymbolDescriptionOrKey(this.ctx.value,e.value));return this.ffi.QTS_IsGlobalSymbol(this.ctx.value,e.value)?Symbol.for(r):Symbol(r)}getBigInt(e){this.runtime.assertOwned(e);let r=this.getString(e);return BigInt(r)}getArrayBuffer(e){this.runtime.assertOwned(e);let r=this.ffi.QTS_GetArrayBufferLength(this.ctx.value,e.value),i=this.ffi.QTS_GetArrayBuffer(this.ctx.value,e.value);if(!i)throw new Error("Couldn't allocate memory to get ArrayBuffer");return new G2(this.module.HEAPU8.subarray(i,i+r),void 0,()=>this.module._free(i))}getPromiseState(e){this.runtime.assertOwned(e);let r=this.ffi.QTS_PromiseState(this.ctx.value,e.value);if(r<0)return{type:"fulfilled",value:e,notAPromise:!0};if(r===wIe.Pending)return{type:"pending",get error(){return new qZt("Cannot unwrap a pending promise")}};let i=this.ffi.QTS_PromiseResult(this.ctx.value,e.value),s=this.memory.heapValueHandle(i);if(r===wIe.Fulfilled)return{type:"fulfilled",value:s};if(r===wIe.Rejected)return{type:"rejected",error:s};throw s.dispose(),new Error(`Unknown JSPromiseStateEnum: ${r}`)}resolvePromise(e){this.runtime.assertOwned(e);let r=j8.withScope(i=>{let s=i.manage(this.getProp(this.global,"Promise")),l=i.manage(this.getProp(s,"resolve"));return this.callFunction(l,s,e)});return r.error?Promise.resolve(r):new Promise(i=>{j8.withScope(s=>{let l=s.manage(this.newFunction("resolve",b=>{i(this.success(b&&b.dup()))})),d=s.manage(this.newFunction("reject",b=>{i(this.fail(b&&b.dup()))})),h=s.manage(r.value),S=s.manage(this.getProp(h,"then"));this.callFunction(S,h,l,d).unwrap().dispose()})})}isEqual(e,r,i=Ife.IsStrictlyEqual){if(e===r)return!0;this.runtime.assertOwned(e),this.runtime.assertOwned(r);let s=this.ffi.QTS_IsEqual(this.ctx.value,e.value,r.value,i);if(s===-1)throw new BZt("WASM variant does not expose equality");return!!s}eq(e,r){return this.isEqual(e,r,Ife.IsStrictlyEqual)}sameValue(e,r){return this.isEqual(e,r,Ife.IsSameValue)}sameValueZero(e,r){return this.isEqual(e,r,Ife.IsSameValueZero)}getProp(e,r){this.runtime.assertOwned(e);let i;return typeof r=="number"&&r>=0?i=this.ffi.QTS_GetPropNumber(this.ctx.value,e.value,r):i=this.borrowPropertyKey(r).consume(s=>this.ffi.QTS_GetProp(this.ctx.value,e.value,s.value)),this.memory.heapValueHandle(i)}getLength(e){if(this.runtime.assertOwned(e),!(this.ffi.QTS_GetLength(this.ctx.value,this.uint32Out.value.ptr,e.value)<0))return this.uint32Out.value.typedArray[0]}getOwnPropertyNames(e,r={strings:!0,numbersAsStrings:!0}){this.runtime.assertOwned(e),e.value;let i=$Dn(r);if(i===0)throw new JZt("No options set, will return an empty array");return j8.withScope(s=>{let l=s.manage(this.memory.newMutablePointerArray(1)),d=this.ffi.QTS_GetOwnPropertyNames(this.ctx.value,l.value.ptr,this.uint32Out.value.ptr,e.value,i);if(d)return this.fail(this.memory.heapValueHandle(d));let h=this.uint32Out.value.typedArray[0],S=l.value.typedArray[0],b=new Uint32Array(this.module.HEAP8.buffer,S,h),A=Array.from(b).map(L=>this.memory.heapValueHandle(L));return this.ffi.QTS_FreeVoidPointer(this.ctx.value,S),this.success(FDn(A))})}getIterator(e){let r=this._SymbolIterator??(this._SymbolIterator=this.memory.manage(this.getWellKnownSymbol("iterator")));return j8.withScope(i=>{let s=i.manage(this.getProp(e,r)),l=this.callFunction(s,e);return l.error?l:this.success(new zDn(l.value,this))})}setProp(e,r,i){this.runtime.assertOwned(e),this.borrowPropertyKey(r).consume(s=>this.ffi.QTS_SetProp(this.ctx.value,e.value,s.value,i.value))}defineProp(e,r,i){this.runtime.assertOwned(e),j8.withScope(s=>{let l=s.manage(this.borrowPropertyKey(r)),d=i.value||this.undefined,h=!!i.configurable,S=!!i.enumerable,b=!!i.value,A=i.get?s.manage(this.newFunction(i.get.name,i.get)):this.undefined,L=i.set?s.manage(this.newFunction(i.set.name,i.set)):this.undefined;this.ffi.QTS_DefineProp(this.ctx.value,e.value,l.value,d.value,A.value,L.value,h,S,b)})}callFunction(e,r,...i){this.runtime.assertOwned(e);let s,l=i[0];l===void 0||Array.isArray(l)?s=l??[]:s=i;let d=this.memory.toPointerArray(s).consume(S=>this.ffi.QTS_Call(this.ctx.value,e.value,r.value,s.length,S.value)),h=this.ffi.QTS_ResolveException(this.ctx.value,d);return h?(this.ffi.QTS_FreeValuePointer(this.ctx.value,d),this.fail(this.memory.heapValueHandle(h))):this.success(this.memory.heapValueHandle(d))}callMethod(e,r,i=[]){return this.getProp(e,r).consume(s=>this.callFunction(s,e,i))}evalCode(e,r="eval.js",i){let s=i===void 0?1:0,l=BDn(i),d=this.memory.newHeapCharPointer(e).consume(S=>this.ffi.QTS_Eval(this.ctx.value,S.value.ptr,S.value.strlen,r,s,l)),h=this.ffi.QTS_ResolveException(this.ctx.value,d);return h?(this.ffi.QTS_FreeValuePointer(this.ctx.value,d),this.fail(this.memory.heapValueHandle(h))):this.success(this.memory.heapValueHandle(d))}throw(e){return this.errorToHandle(e).consume(r=>this.ffi.QTS_Throw(this.ctx.value,r.value))}borrowPropertyKey(e){return typeof e=="number"?this.newNumber(e):typeof e=="string"?this.newString(e):new hW(e.value,this.runtime)}getMemory(e){if(e===this.rt.value)return this.memory;throw new Error("Private API. Cannot get memory from a different runtime")}dump(e){this.runtime.assertOwned(e);let r=this.typeof(e);if(r==="string")return this.getString(e);if(r==="number")return this.getNumber(e);if(r==="bigint")return this.getBigInt(e);if(r==="undefined")return;if(r==="symbol")return this.getSymbol(e);let i=this.getPromiseState(e);if(i.type==="fulfilled"&&!i.notAPromise)return e.dispose(),{type:i.type,value:i.value.consume(this.dump)};if(i.type==="pending")return e.dispose(),{type:i.type};if(i.type==="rejected")return e.dispose(),{type:i.type,error:i.error.consume(this.dump)};let s=this.memory.consumeJSCharPointer(this.ffi.QTS_Dump(this.ctx.value,e.value));try{return JSON.parse(s)}catch{return s}}unwrapResult(e){if(e.error){let r="context"in e.error?e.error.context:this,i=e.error.consume(s=>this.dump(s));if(i&&typeof i=="object"&&typeof i.message=="string"){let{message:s,name:l,stack:d,...h}=i,S=new Vat(i,r);typeof l=="string"&&(S.name=i.name),S.message=s;let b=S.stack;throw typeof d=="string"&&(S.stack=`${l}: ${s} +${i.stack}Host: ${b}`),Object.assign(S,h),S}throw new Vat(i)}return e.value}[Symbol.for("nodejs.util.inspect.custom")](){return this.alive?`${this.constructor.name} { ctx: ${this.ctx.value} rt: ${this.rt.value} }`:`${this.constructor.name} { disposed }`}getFunction(e){let r=e>>8,i=this.fnMaps.get(r);if(i)return i.get(e)}setFunction(e,r){let i=e>>8,s=this.fnMaps.get(i);return s||(s=new Map,this.fnMaps.set(i,s)),s.set(e,r)}errorToHandle(e){return e instanceof G2?e:this.newError(e)}encodeBinaryJSON(e){let r=this.ffi.QTS_bjson_encode(this.ctx.value,e.value);return this.memory.heapValueHandle(r)}decodeBinaryJSON(e){let r=this.ffi.QTS_bjson_decode(this.ctx.value,e.value);return this.memory.heapValueHandle(r)}success(e){return Xee.success(e)}fail(e){return Xee.fail(e,r=>this.unwrapResult(r))}},VDn=class extends o${constructor(e){super(),this.scope=new j8,this.contextMap=new Map,this._debugMode=!1,this.cToHostCallbacks={shouldInterrupt:r=>{if(r!==this.rt.value)throw new Error("QuickJSContext instance received C -> JS interrupt with mismatched rt");let i=this.interruptHandler;if(!i)throw new Error("QuickJSContext had no interrupt handler");return i(this)?1:0},loadModuleSource:RZt(this,function*(r,i,s,l){let d=this.moduleLoader;if(!d)throw new Error("Runtime has no module loader");if(i!==this.rt.value)throw new Error("Runtime pointer mismatch");let h=this.contextMap.get(s)??this.newContext({contextPointer:s});try{let S=yield*r(d(l,h));if(typeof S=="object"&&"error"in S&&S.error)throw this.debugLog("cToHostLoadModule: loader returned error",S.error),S.error;let b=typeof S=="string"?S:"value"in S?S.value:S;return this.memory.newHeapCharPointer(b).value.ptr}catch(S){return this.debugLog("cToHostLoadModule: caught error",S),h.throw(S),0}}),normalizeModule:RZt(this,function*(r,i,s,l,d){let h=this.moduleNormalizer;if(!h)throw new Error("Runtime has no module normalizer");if(i!==this.rt.value)throw new Error("Runtime pointer mismatch");let S=this.contextMap.get(s)??this.newContext({contextPointer:s});try{let b=yield*r(h(l,d,S));if(typeof b=="object"&&"error"in b&&b.error)throw this.debugLog("cToHostNormalizeModule: normalizer returned error",b.error),b.error;let A=typeof b=="string"?b:b.value;return S.getMemory(this.rt.value).newHeapCharPointer(A).value.ptr}catch(b){return this.debugLog("normalizeModule: caught error",b),S.throw(b),0}})},e.ownedLifetimes?.forEach(r=>this.scope.manage(r)),this.module=e.module,this.memory=new HZt(this.module),this.ffi=e.ffi,this.rt=e.rt,this.callbacks=e.callbacks,this.scope.manage(this.rt),this.callbacks.setRuntimeCallbacks(this.rt.value,this.cToHostCallbacks),this.executePendingJobs=this.executePendingJobs.bind(this),Hat&&this.setDebugMode(!0)}get alive(){return this.scope.alive}dispose(){return this.scope.dispose()}newContext(e={}){let r=jDn(e.intrinsics),i=new G2(e.contextPointer||this.ffi.QTS_NewContext(this.rt.value,r),void 0,l=>{this.contextMap.delete(l),this.callbacks.deleteContext(l),this.ffi.QTS_FreeContext(l)}),s=new JDn({module:this.module,ctx:i,ffi:this.ffi,rt:this.rt,ownedLifetimes:e.ownedLifetimes,runtime:this,callbacks:this.callbacks});return this.contextMap.set(i.value,s),s}setModuleLoader(e,r){this.moduleLoader=e,this.moduleNormalizer=r,this.ffi.QTS_RuntimeEnableModuleLoader(this.rt.value,this.moduleNormalizer?1:0)}removeModuleLoader(){this.moduleLoader=void 0,this.ffi.QTS_RuntimeDisableModuleLoader(this.rt.value)}hasPendingJob(){return!!this.ffi.QTS_IsJobPending(this.rt.value)}setInterruptHandler(e){let r=this.interruptHandler;this.interruptHandler=e,r||this.ffi.QTS_RuntimeEnableInterruptHandler(this.rt.value)}removeInterruptHandler(){this.interruptHandler&&(this.ffi.QTS_RuntimeDisableInterruptHandler(this.rt.value),this.interruptHandler=void 0)}executePendingJobs(e=-1){let r=this.memory.newMutablePointerArray(1),i=this.ffi.QTS_ExecutePendingJob(this.rt.value,e??-1,r.value.ptr),s=r.value.typedArray[0];if(r.dispose(),s===0)return this.ffi.QTS_FreeValuePointerRuntime(this.rt.value,i),Xee.success(0);let l=this.contextMap.get(s)??this.newContext({contextPointer:s}),d=l.getMemory(this.rt.value).heapValueHandle(i);if(l.typeof(d)==="number"){let h=l.getNumber(d);return d.dispose(),Xee.success(h)}else{let h=Object.assign(d,{context:l});return Xee.fail(h,S=>l.unwrapResult(S))}}setMemoryLimit(e){if(e<0&&e!==-1)throw new Error("Cannot set memory limit to negative number. To unset, pass -1");this.ffi.QTS_RuntimeSetMemoryLimit(this.rt.value,e)}computeMemoryUsage(){let e=this.getSystemContext().getMemory(this.rt.value);return e.heapValueHandle(this.ffi.QTS_RuntimeComputeMemoryUsage(this.rt.value,e.ctx.value))}dumpMemoryUsage(){return this.memory.consumeHeapCharPointer(this.ffi.QTS_RuntimeDumpMemoryUsage(this.rt.value))}setMaxStackSize(e){if(e<0)throw new Error("Cannot set memory limit to negative number. To unset, pass 0.");this.ffi.QTS_RuntimeSetMaxStackSize(this.rt.value,e)}assertOwned(e){if(e.owner&&e.owner.rt!==this.rt)throw new jZt(`Handle is not owned by this runtime: ${e.owner.rt.value} != ${this.rt.value}`)}setDebugMode(e){this._debugMode=e,this.ffi.DEBUG&&this.rt.alive&&this.ffi.QTS_SetDebugLogEnabled(this.rt.value,e?1:0)}isDebugMode(){return this._debugMode}debugLog(...e){this._debugMode&&console.log("quickjs-emscripten:",...e)}[Symbol.for("nodejs.util.inspect.custom")](){return this.alive?`${this.constructor.name} { rt: ${this.rt.value} }`:`${this.constructor.name} { disposed }`}getSystemContext(){return this.context||(this.context=this.scope.manage(this.newContext())),this.context}},WDn=class{constructor(e){this.callFunction=e.callFunction,this.shouldInterrupt=e.shouldInterrupt,this.loadModuleSource=e.loadModuleSource,this.normalizeModule=e.normalizeModule}},Xat=class{constructor(e){this.contextCallbacks=new Map,this.runtimeCallbacks=new Map,this.suspendedCount=0,this.cToHostCallbacks=new WDn({callFunction:(r,i,s,l,d,h)=>this.handleAsyncify(r,()=>{try{let S=this.contextCallbacks.get(i);if(!S)throw new Error(`QuickJSContext(ctx = ${i}) not found for C function call "${h}"`);return S.callFunction(i,s,l,d,h)}catch(S){return console.error("[C to host error: returning null]",S),0}}),shouldInterrupt:(r,i)=>this.handleAsyncify(r,()=>{try{let s=this.runtimeCallbacks.get(i);if(!s)throw new Error(`QuickJSRuntime(rt = ${i}) not found for C interrupt`);return s.shouldInterrupt(i)}catch(s){return console.error("[C to host interrupt: returning error]",s),1}}),loadModuleSource:(r,i,s,l)=>this.handleAsyncify(r,()=>{try{let d=this.runtimeCallbacks.get(i);if(!d)throw new Error(`QuickJSRuntime(rt = ${i}) not found for C module loader`);let h=d.loadModuleSource;if(!h)throw new Error(`QuickJSRuntime(rt = ${i}) does not support module loading`);return h(i,s,l)}catch(d){return console.error("[C to host module loader error: returning null]",d),0}}),normalizeModule:(r,i,s,l,d)=>this.handleAsyncify(r,()=>{try{let h=this.runtimeCallbacks.get(i);if(!h)throw new Error(`QuickJSRuntime(rt = ${i}) not found for C module loader`);let S=h.normalizeModule;if(!S)throw new Error(`QuickJSRuntime(rt = ${i}) does not support module loading`);return S(i,s,l,d)}catch(h){return console.error("[C to host module loader error: returning null]",h),0}})}),this.module=e,this.module.callbacks=this.cToHostCallbacks}setRuntimeCallbacks(e,r){this.runtimeCallbacks.set(e,r)}deleteRuntime(e){this.runtimeCallbacks.delete(e)}setContextCallbacks(e,r){this.contextCallbacks.set(e,r)}deleteContext(e){this.contextCallbacks.delete(e)}handleAsyncify(e,r){if(e)return e.handleSleep(s=>{try{let l=r();if(!(l instanceof Promise)){Pfe("asyncify.handleSleep: not suspending:",l),s(l);return}if(this.suspended)throw new $Zt(`Already suspended at: ${this.suspended.stack} +Attempted to suspend at:`);this.suspended=new UZt(`(${this.suspendedCount++})`),Pfe("asyncify.handleSleep: suspending:",this.suspended),l.then(d=>{this.suspended=void 0,Pfe("asyncify.handleSleep: resolved:",d),s(d)},d=>{Pfe("asyncify.handleSleep: rejected:",d),console.error("QuickJS: cannot handle error in suspended function",d),this.suspended=void 0})}catch(l){throw Pfe("asyncify.handleSleep: error:",l),this.suspended=void 0,l}});let i=r();if(i instanceof Promise)throw new Error("Promise return value not supported in non-asyncify context.");return i}};KZt=class{constructor(e,r){this.module=e,this.ffi=r,this.callbacks=new Xat(e)}newRuntime(e={}){let r=new G2(this.ffi.QTS_NewRuntime(),void 0,s=>{this.callbacks.deleteRuntime(s),this.ffi.QTS_FreeRuntime(s)}),i=new VDn({module:this.module,callbacks:this.callbacks,ffi:this.ffi,rt:r});return Yat(i,e),e.moduleLoader&&i.setModuleLoader(e.moduleLoader),i}newContext(e={}){let r=this.newRuntime(),i=r.newContext({...e,ownedLifetimes:UDn(r,e.ownedLifetimes)});return r.context=i,i}evalCode(e,r={}){return j8.withScope(i=>{let s=i.manage(this.newContext());est(s.runtime,r);let l=s.evalCode(e,"eval.js");if(r.memoryLimitBytes!==void 0&&s.runtime.setMemoryLimit(-1),l.error)throw s.dump(i.manage(l.error));return s.dump(i.manage(l.value))})}getWasmMemory(){let e=this.module.quickjsEmscriptenInit?.(()=>{})?.getWasmMemory?.();if(!e)throw new Error("Variant does not support getting WebAssembly.Memory");return e}getFFI(){return this.ffi}}});var ZZt={};J7(ZZt,{QuickJSModuleCallbacks:()=>Xat,QuickJSWASMModule:()=>KZt,applyBaseRuntimeOptions:()=>Yat,applyModuleEvalRuntimeOptions:()=>est});var XZt=Rce(()=>{QZt()});var tXt={};J7(tXt,{QuickJSFFI:()=>GDn});var GDn,rXt=Rce(()=>{GDn=class{constructor(e){this.module=e,this.DEBUG=!1,this.QTS_Throw=this.module.cwrap("QTS_Throw","number",["number","number"]),this.QTS_NewError=this.module.cwrap("QTS_NewError","number",["number"]),this.QTS_RuntimeSetMemoryLimit=this.module.cwrap("QTS_RuntimeSetMemoryLimit",null,["number","number"]),this.QTS_RuntimeComputeMemoryUsage=this.module.cwrap("QTS_RuntimeComputeMemoryUsage","number",["number","number"]),this.QTS_RuntimeDumpMemoryUsage=this.module.cwrap("QTS_RuntimeDumpMemoryUsage","number",["number"]),this.QTS_RecoverableLeakCheck=this.module.cwrap("QTS_RecoverableLeakCheck","number",[]),this.QTS_BuildIsSanitizeLeak=this.module.cwrap("QTS_BuildIsSanitizeLeak","number",[]),this.QTS_RuntimeSetMaxStackSize=this.module.cwrap("QTS_RuntimeSetMaxStackSize",null,["number","number"]),this.QTS_GetUndefined=this.module.cwrap("QTS_GetUndefined","number",[]),this.QTS_GetNull=this.module.cwrap("QTS_GetNull","number",[]),this.QTS_GetFalse=this.module.cwrap("QTS_GetFalse","number",[]),this.QTS_GetTrue=this.module.cwrap("QTS_GetTrue","number",[]),this.QTS_NewRuntime=this.module.cwrap("QTS_NewRuntime","number",[]),this.QTS_FreeRuntime=this.module.cwrap("QTS_FreeRuntime",null,["number"]),this.QTS_NewContext=this.module.cwrap("QTS_NewContext","number",["number","number"]),this.QTS_FreeContext=this.module.cwrap("QTS_FreeContext",null,["number"]),this.QTS_FreeValuePointer=this.module.cwrap("QTS_FreeValuePointer",null,["number","number"]),this.QTS_FreeValuePointerRuntime=this.module.cwrap("QTS_FreeValuePointerRuntime",null,["number","number"]),this.QTS_FreeVoidPointer=this.module.cwrap("QTS_FreeVoidPointer",null,["number","number"]),this.QTS_FreeCString=this.module.cwrap("QTS_FreeCString",null,["number","number"]),this.QTS_DupValuePointer=this.module.cwrap("QTS_DupValuePointer","number",["number","number"]),this.QTS_NewObject=this.module.cwrap("QTS_NewObject","number",["number"]),this.QTS_NewObjectProto=this.module.cwrap("QTS_NewObjectProto","number",["number","number"]),this.QTS_NewArray=this.module.cwrap("QTS_NewArray","number",["number"]),this.QTS_NewArrayBuffer=this.module.cwrap("QTS_NewArrayBuffer","number",["number","number","number"]),this.QTS_NewFloat64=this.module.cwrap("QTS_NewFloat64","number",["number","number"]),this.QTS_GetFloat64=this.module.cwrap("QTS_GetFloat64","number",["number","number"]),this.QTS_NewString=this.module.cwrap("QTS_NewString","number",["number","number"]),this.QTS_GetString=this.module.cwrap("QTS_GetString","number",["number","number"]),this.QTS_GetArrayBuffer=this.module.cwrap("QTS_GetArrayBuffer","number",["number","number"]),this.QTS_GetArrayBufferLength=this.module.cwrap("QTS_GetArrayBufferLength","number",["number","number"]),this.QTS_NewSymbol=this.module.cwrap("QTS_NewSymbol","number",["number","number","number"]),this.QTS_GetSymbolDescriptionOrKey=this.module.cwrap("QTS_GetSymbolDescriptionOrKey","number",["number","number"]),this.QTS_IsGlobalSymbol=this.module.cwrap("QTS_IsGlobalSymbol","number",["number","number"]),this.QTS_IsJobPending=this.module.cwrap("QTS_IsJobPending","number",["number"]),this.QTS_ExecutePendingJob=this.module.cwrap("QTS_ExecutePendingJob","number",["number","number","number"]),this.QTS_GetProp=this.module.cwrap("QTS_GetProp","number",["number","number","number"]),this.QTS_GetPropNumber=this.module.cwrap("QTS_GetPropNumber","number",["number","number","number"]),this.QTS_SetProp=this.module.cwrap("QTS_SetProp",null,["number","number","number","number"]),this.QTS_DefineProp=this.module.cwrap("QTS_DefineProp",null,["number","number","number","number","number","number","boolean","boolean","boolean"]),this.QTS_GetOwnPropertyNames=this.module.cwrap("QTS_GetOwnPropertyNames","number",["number","number","number","number","number"]),this.QTS_Call=this.module.cwrap("QTS_Call","number",["number","number","number","number","number"]),this.QTS_ResolveException=this.module.cwrap("QTS_ResolveException","number",["number","number"]),this.QTS_Dump=this.module.cwrap("QTS_Dump","number",["number","number"]),this.QTS_Eval=this.module.cwrap("QTS_Eval","number",["number","number","number","string","number","number"]),this.QTS_GetModuleNamespace=this.module.cwrap("QTS_GetModuleNamespace","number",["number","number"]),this.QTS_Typeof=this.module.cwrap("QTS_Typeof","number",["number","number"]),this.QTS_GetLength=this.module.cwrap("QTS_GetLength","number",["number","number","number"]),this.QTS_IsEqual=this.module.cwrap("QTS_IsEqual","number",["number","number","number","number"]),this.QTS_GetGlobalObject=this.module.cwrap("QTS_GetGlobalObject","number",["number"]),this.QTS_NewPromiseCapability=this.module.cwrap("QTS_NewPromiseCapability","number",["number","number"]),this.QTS_PromiseState=this.module.cwrap("QTS_PromiseState","number",["number","number"]),this.QTS_PromiseResult=this.module.cwrap("QTS_PromiseResult","number",["number","number"]),this.QTS_TestStringArg=this.module.cwrap("QTS_TestStringArg",null,["string"]),this.QTS_GetDebugLogEnabled=this.module.cwrap("QTS_GetDebugLogEnabled","number",["number"]),this.QTS_SetDebugLogEnabled=this.module.cwrap("QTS_SetDebugLogEnabled",null,["number","number"]),this.QTS_BuildIsDebug=this.module.cwrap("QTS_BuildIsDebug","number",[]),this.QTS_BuildIsAsyncify=this.module.cwrap("QTS_BuildIsAsyncify","number",[]),this.QTS_NewFunction=this.module.cwrap("QTS_NewFunction","number",["number","number","string"]),this.QTS_ArgvGetJSValueConstPointer=this.module.cwrap("QTS_ArgvGetJSValueConstPointer","number",["number","number"]),this.QTS_RuntimeEnableInterruptHandler=this.module.cwrap("QTS_RuntimeEnableInterruptHandler",null,["number"]),this.QTS_RuntimeDisableInterruptHandler=this.module.cwrap("QTS_RuntimeDisableInterruptHandler",null,["number"]),this.QTS_RuntimeEnableModuleLoader=this.module.cwrap("QTS_RuntimeEnableModuleLoader",null,["number","number"]),this.QTS_RuntimeDisableModuleLoader=this.module.cwrap("QTS_RuntimeDisableModuleLoader",null,["number"]),this.QTS_bjson_encode=this.module.cwrap("QTS_bjson_encode","number",["number","number"]),this.QTS_bjson_decode=this.module.cwrap("QTS_bjson_decode","number",["number","number"])}}});var nXt={};J7(nXt,{default:()=>KDn});var HDn,KDn,iXt=Rce(()=>{HDn=(()=>{var e=import.meta.url;return(async function(r={}){var i,s=r,l,d,h=new Promise((or,Gr)=>{l=or,d=Gr}),S=typeof window=="object",b=typeof importScripts=="function",A=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string";if(A){let{createRequire:or}=await import("module");var L=or(import.meta.url)}function V(or){or={log:or||function(){}};for(let Gr of V.Ia)Gr(or);return s.quickJSEmscriptenExtensions=or}V.Ia=[],s.quickjsEmscriptenInit=V,V.Ia.push(or=>{or.getWasmMemory=function(){return wt}});var j=Object.assign({},s),ie="./this.program",te=(or,Gr)=>{throw Gr},X="",Re,Je;if(A){var pt=L("fs"),$e=L("path");X=L("url").fileURLToPath(new URL("./",import.meta.url)),Je=or=>(or=Wi(or)?new URL(or):$e.normalize(or),pt.readFileSync(or)),Re=or=>(or=Wi(or)?new URL(or):$e.normalize(or),new Promise((Gr,pi)=>{pt.readFile(or,void 0,(ia,To)=>{ia?pi(ia):Gr(To.buffer)})})),!s.thisProgram&&1{throw process.exitCode=or,Gr}}else(S||b)&&(b?X=self.location.href:typeof document<"u"&&document.currentScript&&(X=document.currentScript.src),e&&(X=e),X.startsWith("blob:")?X="":X=X.substr(0,X.replace(/[?#].*/,"").lastIndexOf("/")+1),b&&(Je=or=>{var Gr=new XMLHttpRequest;return Gr.open("GET",or,!1),Gr.responseType="arraybuffer",Gr.send(null),new Uint8Array(Gr.response)}),Re=or=>Wi(or)?new Promise((Gr,pi)=>{var ia=new XMLHttpRequest;ia.open("GET",or,!0),ia.responseType="arraybuffer",ia.onload=()=>{ia.status==200||ia.status==0&&ia.response?Gr(ia.response):pi(ia.status)},ia.onerror=pi,ia.send(null)}):fetch(or,{credentials:"same-origin"}).then(Gr=>Gr.ok?Gr.arrayBuffer():Promise.reject(Error(Gr.status+" : "+Gr.url))));var xt=s.print||console.log.bind(console),tr=s.printErr||console.error.bind(console);Object.assign(s,j),j=null,s.thisProgram&&(ie=s.thisProgram);var ht=s.wasmBinary,wt,Ut=!1,hr,Hi,un,xo,Lo;function yr(){var or=wt.buffer;s.HEAP8=Hi=new Int8Array(or),s.HEAP16=new Int16Array(or),s.HEAPU8=un=new Uint8Array(or),s.HEAPU16=new Uint16Array(or),s.HEAP32=xo=new Int32Array(or),s.HEAPU32=Lo=new Uint32Array(or),s.HEAPF32=new Float32Array(or),s.HEAPF64=new Float64Array(or)}s.wasmMemory?wt=s.wasmMemory:wt=new WebAssembly.Memory({initial:(s.INITIAL_MEMORY||16777216)/65536,maximum:32768}),yr();var co=[],Cs=[],Cr=[];function ol(){var or=s.preRun.shift();co.unshift(or)}var Zo=0,Rc=null,an=null;function Xr(or){throw s.onAbort?.(or),or="Aborted("+or+")",tr(or),Ut=!0,hr=1,or=new WebAssembly.RuntimeError(or+". Build with -sASSERTIONS for more info."),d(or),or}var li=or=>or.startsWith("data:application/octet-stream;base64,"),Wi=or=>or.startsWith("file://"),Bo;function Wn(or){if(or==Bo&&ht)return new Uint8Array(ht);if(Je)return Je(or);throw"both async and sync fetching of the wasm failed"}function Na(or){return ht?Promise.resolve().then(()=>Wn(or)):Re(or).then(Gr=>new Uint8Array(Gr),()=>Wn(or))}function hs(or,Gr,pi){return Na(or).then(ia=>WebAssembly.instantiate(ia,Gr)).then(pi,ia=>{tr(`failed to asynchronously prepare wasm: ${ia}`),Xr(ia)})}function Us(or,Gr){var pi=Bo;return ht||typeof WebAssembly.instantiateStreaming!="function"||li(pi)||Wi(pi)||A||typeof fetch!="function"?hs(pi,or,Gr):fetch(pi,{credentials:"same-origin"}).then(ia=>WebAssembly.instantiateStreaming(ia,or).then(Gr,function(To){return tr(`wasm streaming compile failed: ${To}`),tr("falling back to ArrayBuffer instantiation"),hs(pi,or,Gr)}))}function Sc(or){this.name="ExitStatus",this.message=`Program terminated with exit(${or})`,this.status=or}var Wu=or=>{for(;0{var ia=Gr+pi;for(pi=Gr;or[pi]&&!(pi>=ia);)++pi;if(16To?ia+=String.fromCharCode(To):(To-=65536,ia+=String.fromCharCode(55296|To>>10,56320|To&1023))}}else ia+=String.fromCharCode(To)}return ia},go=[0,31,60,91,121,152,182,213,244,274,305,335],mc=[0,31,59,90,120,151,181,212,243,273,304,334],zp={},Rh=0,K0=or=>{hr=or,uc||0{if(!Ut)try{if(or(),!(uc||0performance.now();var dy=(or,Gr,pi)=>{var ia=un;if(!(0=Yr){var Sn=or.charCodeAt(++Gu);Yr=65536+((Yr&1023)<<10)|Sn&1023}if(127>=Yr){if(Gr>=pi)break;ia[Gr++]=Yr}else{if(2047>=Yr){if(Gr+1>=pi)break;ia[Gr++]=192|Yr>>6}else{if(65535>=Yr){if(Gr+2>=pi)break;ia[Gr++]=224|Yr>>12}else{if(Gr+3>=pi)break;ia[Gr++]=240|Yr>>18,ia[Gr++]=128|Yr>>12&63}ia[Gr++]=128|Yr>>6&63}ia[Gr++]=128|Yr&63}}return ia[Gr]=0,Gr-To},vm={},O1=()=>{if(!__){var or={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:ie||"./this.program"},Gr;for(Gr in vm)vm[Gr]===void 0?delete or[Gr]:or[Gr]=vm[Gr];var pi=[];for(Gr in or)pi.push(`${Gr}=${or[Gr]}`);__=pi}return __},__,Bc=[null,[],[]],cb=or=>{for(var Gr=0,pi=0;pi=ia?Gr++:2047>=ia?Gr+=2:55296<=ia&&57343>=ia?(Gr+=4,++pi):Gr+=3}return Gr},jt=(or,Gr,pi,ia)=>{var To={string:us=>{var Ja=0;if(us!=null&&us!==0){Ja=cb(us)+1;var pc=Jl(Ja);dy(us,pc,Ja),Ja=pc}return Ja},array:us=>{var Ja=Jl(us.length);return Hi.set(us,Ja),Ja}};or=s["_"+or];var Gu=[],Yr=0;if(ia)for(var Sn=0;Sn{Xr(`Assertion failed: ${or?ou(un,or):""}, at: `+[Gr?Gr?ou(un,Gr):"":"unknown filename",pi,ia?ia?ou(un,ia):"":"unknown function"])},q:()=>{Xr("")},n:()=>{uc=!1,Rh=0},j:function(or,Gr,pi){or=new Date(1e3*(Gr+2097152>>>0<4194305-!!or?(or>>>0)+4294967296*Gr:NaN)),xo[pi>>2]=or.getSeconds(),xo[pi+4>>2]=or.getMinutes(),xo[pi+8>>2]=or.getHours(),xo[pi+12>>2]=or.getDate(),xo[pi+16>>2]=or.getMonth(),xo[pi+20>>2]=or.getFullYear()-1900,xo[pi+24>>2]=or.getDay(),Gr=or.getFullYear(),xo[pi+28>>2]=(Gr%4!==0||Gr%100===0&&Gr%400!==0?mc:go)[or.getMonth()]+or.getDate()-1|0,xo[pi+36>>2]=-(60*or.getTimezoneOffset()),Gr=new Date(or.getFullYear(),6,1).getTimezoneOffset();var ia=new Date(or.getFullYear(),0,1).getTimezoneOffset();xo[pi+32>>2]=(Gr!=ia&&or.getTimezoneOffset()==Math.min(ia,Gr))|0},l:(or,Gr)=>{if(zp[or]&&(clearTimeout(zp[or].id),delete zp[or]),!Gr)return 0;var pi=setTimeout(()=>{delete zp[or],rf(()=>En(or,vx()))},Gr);return zp[or]={id:pi,Na:Gr},0},o:(or,Gr,pi,ia)=>{var To=new Date().getFullYear(),Gu=new Date(To,0,1).getTimezoneOffset();To=new Date(To,6,1).getTimezoneOffset(),Lo[or>>2]=60*Math.max(Gu,To),xo[Gr>>2]=+(Gu!=To),Gr=Yr=>{var Sn=Math.abs(Yr);return`UTC${0<=Yr?"-":"+"}${String(Math.floor(Sn/60)).padStart(2,"0")}${String(Sn%60).padStart(2,"0")}`},or=Gr(Gu),Gr=Gr(To),ToDate.now(),m:or=>{var Gr=un.length;if(or>>>=0,2147483648=pi;pi*=2){var ia=Gr*(1+.2/pi);ia=Math.min(ia,or+100663296);e:{ia=(Math.min(2147483648,65536*Math.ceil(Math.max(or,ia)/65536))-wt.buffer.byteLength+65535)/65536;try{wt.grow(ia),yr();var To=1;break e}catch{}To=void 0}if(To)return!0}return!1},f:(or,Gr)=>{var pi=0;return O1().forEach((ia,To)=>{var Gu=Gr+pi;for(To=Lo[or+4*To>>2]=Gu,Gu=0;Gu{var pi=O1();Lo[or>>2]=pi.length;var ia=0;return pi.forEach(To=>ia+=To.length+1),Lo[Gr>>2]=ia,0},e:()=>52,k:function(){return 70},d:(or,Gr,pi,ia)=>{for(var To=0,Gu=0;Gu>2],Sn=Lo[Gr+4>>2];Gr+=8;for(var to=0;to>2]=To,0},a:wt,c:K0,s:function(or,Gr,pi,ia,To){return s.callbacks.callFunction(void 0,or,Gr,pi,ia,To)},r:function(or){return s.callbacks.shouldInterrupt(void 0,or)},i:function(or,Gr,pi){return pi=pi?ou(un,pi):"",s.callbacks.loadModuleSource(void 0,or,Gr,pi)},h:function(or,Gr,pi,ia){return pi=pi?ou(un,pi):"",ia=ia?ou(un,ia):"",s.callbacks.normalizeModule(void 0,or,Gr,pi,ia)}},Ti=(function(){function or(pi){return Ti=pi.exports,Cs.unshift(Ti.t),Zo--,s.monitorRunDependencies?.(Zo),Zo==0&&(Rc!==null&&(clearInterval(Rc),Rc=null),an&&(pi=an,an=null,pi())),Ti}var Gr={a:ea};if(Zo++,s.monitorRunDependencies?.(Zo),s.instantiateWasm)try{return s.instantiateWasm(Gr,or)}catch(pi){tr(`Module.instantiateWasm callback failed with error: ${pi}`),d(pi)}return Bo||=s.locateFile?li("emscripten-module.wasm")?"emscripten-module.wasm":s.locateFile?s.locateFile("emscripten-module.wasm",X):X+"emscripten-module.wasm":new URL("emscripten-module.wasm",import.meta.url).href,Us(Gr,function(pi){or(pi.instance)}).catch(d),{}})();s._malloc=or=>(s._malloc=Ti.u)(or),s._QTS_Throw=(or,Gr)=>(s._QTS_Throw=Ti.v)(or,Gr),s._QTS_NewError=or=>(s._QTS_NewError=Ti.w)(or),s._QTS_RuntimeSetMemoryLimit=(or,Gr)=>(s._QTS_RuntimeSetMemoryLimit=Ti.x)(or,Gr),s._QTS_RuntimeComputeMemoryUsage=(or,Gr)=>(s._QTS_RuntimeComputeMemoryUsage=Ti.y)(or,Gr),s._QTS_RuntimeDumpMemoryUsage=or=>(s._QTS_RuntimeDumpMemoryUsage=Ti.z)(or),s._QTS_RecoverableLeakCheck=()=>(s._QTS_RecoverableLeakCheck=Ti.A)(),s._QTS_BuildIsSanitizeLeak=()=>(s._QTS_BuildIsSanitizeLeak=Ti.B)(),s._QTS_RuntimeSetMaxStackSize=(or,Gr)=>(s._QTS_RuntimeSetMaxStackSize=Ti.C)(or,Gr),s._QTS_GetUndefined=()=>(s._QTS_GetUndefined=Ti.D)(),s._QTS_GetNull=()=>(s._QTS_GetNull=Ti.E)(),s._QTS_GetFalse=()=>(s._QTS_GetFalse=Ti.F)(),s._QTS_GetTrue=()=>(s._QTS_GetTrue=Ti.G)(),s._QTS_NewRuntime=()=>(s._QTS_NewRuntime=Ti.H)(),s._QTS_FreeRuntime=or=>(s._QTS_FreeRuntime=Ti.I)(or),s._free=or=>(s._free=Ti.J)(or),s._QTS_NewContext=(or,Gr)=>(s._QTS_NewContext=Ti.K)(or,Gr),s._QTS_FreeContext=or=>(s._QTS_FreeContext=Ti.L)(or),s._QTS_FreeValuePointer=(or,Gr)=>(s._QTS_FreeValuePointer=Ti.M)(or,Gr),s._QTS_FreeValuePointerRuntime=(or,Gr)=>(s._QTS_FreeValuePointerRuntime=Ti.N)(or,Gr),s._QTS_FreeVoidPointer=(or,Gr)=>(s._QTS_FreeVoidPointer=Ti.O)(or,Gr),s._QTS_FreeCString=(or,Gr)=>(s._QTS_FreeCString=Ti.P)(or,Gr),s._QTS_DupValuePointer=(or,Gr)=>(s._QTS_DupValuePointer=Ti.Q)(or,Gr),s._QTS_NewObject=or=>(s._QTS_NewObject=Ti.R)(or),s._QTS_NewObjectProto=(or,Gr)=>(s._QTS_NewObjectProto=Ti.S)(or,Gr),s._QTS_NewArray=or=>(s._QTS_NewArray=Ti.T)(or),s._QTS_NewArrayBuffer=(or,Gr,pi)=>(s._QTS_NewArrayBuffer=Ti.U)(or,Gr,pi),s._QTS_NewFloat64=(or,Gr)=>(s._QTS_NewFloat64=Ti.V)(or,Gr),s._QTS_GetFloat64=(or,Gr)=>(s._QTS_GetFloat64=Ti.W)(or,Gr),s._QTS_NewString=(or,Gr)=>(s._QTS_NewString=Ti.X)(or,Gr),s._QTS_GetString=(or,Gr)=>(s._QTS_GetString=Ti.Y)(or,Gr),s._QTS_GetArrayBuffer=(or,Gr)=>(s._QTS_GetArrayBuffer=Ti.Z)(or,Gr),s._QTS_GetArrayBufferLength=(or,Gr)=>(s._QTS_GetArrayBufferLength=Ti._)(or,Gr),s._QTS_NewSymbol=(or,Gr,pi)=>(s._QTS_NewSymbol=Ti.$)(or,Gr,pi),s._QTS_GetSymbolDescriptionOrKey=(or,Gr)=>(s._QTS_GetSymbolDescriptionOrKey=Ti.aa)(or,Gr),s._QTS_IsGlobalSymbol=(or,Gr)=>(s._QTS_IsGlobalSymbol=Ti.ba)(or,Gr),s._QTS_IsJobPending=or=>(s._QTS_IsJobPending=Ti.ca)(or),s._QTS_ExecutePendingJob=(or,Gr,pi)=>(s._QTS_ExecutePendingJob=Ti.da)(or,Gr,pi),s._QTS_GetProp=(or,Gr,pi)=>(s._QTS_GetProp=Ti.ea)(or,Gr,pi),s._QTS_GetPropNumber=(or,Gr,pi)=>(s._QTS_GetPropNumber=Ti.fa)(or,Gr,pi),s._QTS_SetProp=(or,Gr,pi,ia)=>(s._QTS_SetProp=Ti.ga)(or,Gr,pi,ia),s._QTS_DefineProp=(or,Gr,pi,ia,To,Gu,Yr,Sn,to)=>(s._QTS_DefineProp=Ti.ha)(or,Gr,pi,ia,To,Gu,Yr,Sn,to),s._QTS_GetOwnPropertyNames=(or,Gr,pi,ia,To)=>(s._QTS_GetOwnPropertyNames=Ti.ia)(or,Gr,pi,ia,To),s._QTS_Call=(or,Gr,pi,ia,To)=>(s._QTS_Call=Ti.ja)(or,Gr,pi,ia,To),s._QTS_ResolveException=(or,Gr)=>(s._QTS_ResolveException=Ti.ka)(or,Gr),s._QTS_Dump=(or,Gr)=>(s._QTS_Dump=Ti.la)(or,Gr),s._QTS_Eval=(or,Gr,pi,ia,To,Gu)=>(s._QTS_Eval=Ti.ma)(or,Gr,pi,ia,To,Gu),s._QTS_GetModuleNamespace=(or,Gr)=>(s._QTS_GetModuleNamespace=Ti.na)(or,Gr),s._QTS_Typeof=(or,Gr)=>(s._QTS_Typeof=Ti.oa)(or,Gr),s._QTS_GetLength=(or,Gr,pi)=>(s._QTS_GetLength=Ti.pa)(or,Gr,pi),s._QTS_IsEqual=(or,Gr,pi,ia)=>(s._QTS_IsEqual=Ti.qa)(or,Gr,pi,ia),s._QTS_GetGlobalObject=or=>(s._QTS_GetGlobalObject=Ti.ra)(or),s._QTS_NewPromiseCapability=(or,Gr)=>(s._QTS_NewPromiseCapability=Ti.sa)(or,Gr),s._QTS_PromiseState=(or,Gr)=>(s._QTS_PromiseState=Ti.ta)(or,Gr),s._QTS_PromiseResult=(or,Gr)=>(s._QTS_PromiseResult=Ti.ua)(or,Gr),s._QTS_TestStringArg=or=>(s._QTS_TestStringArg=Ti.va)(or),s._QTS_GetDebugLogEnabled=or=>(s._QTS_GetDebugLogEnabled=Ti.wa)(or),s._QTS_SetDebugLogEnabled=(or,Gr)=>(s._QTS_SetDebugLogEnabled=Ti.xa)(or,Gr),s._QTS_BuildIsDebug=()=>(s._QTS_BuildIsDebug=Ti.ya)(),s._QTS_BuildIsAsyncify=()=>(s._QTS_BuildIsAsyncify=Ti.za)(),s._QTS_NewFunction=(or,Gr,pi)=>(s._QTS_NewFunction=Ti.Aa)(or,Gr,pi),s._QTS_ArgvGetJSValueConstPointer=(or,Gr)=>(s._QTS_ArgvGetJSValueConstPointer=Ti.Ba)(or,Gr),s._QTS_RuntimeEnableInterruptHandler=or=>(s._QTS_RuntimeEnableInterruptHandler=Ti.Ca)(or),s._QTS_RuntimeDisableInterruptHandler=or=>(s._QTS_RuntimeDisableInterruptHandler=Ti.Da)(or),s._QTS_RuntimeEnableModuleLoader=(or,Gr)=>(s._QTS_RuntimeEnableModuleLoader=Ti.Ea)(or,Gr),s._QTS_RuntimeDisableModuleLoader=or=>(s._QTS_RuntimeDisableModuleLoader=Ti.Fa)(or),s._QTS_bjson_encode=(or,Gr)=>(s._QTS_bjson_encode=Ti.Ga)(or,Gr),s._QTS_bjson_decode=(or,Gr)=>(s._QTS_bjson_decode=Ti.Ha)(or,Gr);var En=(or,Gr)=>(En=Ti.Ja)(or,Gr),Zc=or=>(Zc=Ti.Ka)(or),Jl=or=>(Jl=Ti.La)(or),zd=()=>(zd=Ti.Ma)();s.cwrap=(or,Gr,pi,ia)=>{var To=!pi||pi.every(Gu=>Gu==="number"||Gu==="boolean");return Gr!=="string"&&To&&!ia?s["_"+or]:(...Gu)=>jt(or,Gr,pi,Gu)},s.UTF8ToString=(or,Gr)=>or?ou(un,or,Gr):"",s.stringToUTF8=(or,Gr,pi)=>dy(or,Gr,pi),s.lengthBytesUTF8=cb;var pu;an=function or(){pu||Tf(),pu||(an=or)};function Tf(){function or(){if(!pu&&(pu=!0,s.calledRun=!0,!Ut)){if(Wu(Cs),l(s),s.onRuntimeInitialized?.(),s.postRun)for(typeof s.postRun=="function"&&(s.postRun=[s.postRun]);s.postRun.length;){var Gr=s.postRun.shift();Cr.unshift(Gr)}Wu(Cr)}}if(!(0{var etr={};(e=>{"use strict";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,d=(t,n)=>{for(var a in n)r(t,a,{get:n[a],enumerable:!0})},h=(t,n,a,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let u of s(n))!l.call(t,u)&&u!==a&&r(t,u,{get:()=>n[u],enumerable:!(c=i(n,u))||c.enumerable});return t},S=t=>t,b={};d(b,{ANONYMOUS:()=>xve,AccessFlags:()=>X2,AssertionLevel:()=>d$,AssignmentDeclarationKind:()=>aR,AssignmentKind:()=>M6e,Associativity:()=>V6e,BreakpointResolver:()=>SSe,BuilderFileEmit:()=>$Oe,BuilderProgramKind:()=>HOe,BuilderState:()=>Dv,CallHierarchy:()=>JF,CharacterCodes:()=>fR,CheckFlags:()=>dO,CheckMode:()=>Vye,ClassificationType:()=>O1e,ClassificationTypeNames:()=>QFe,CommentDirectiveType:()=>G9,Comparison:()=>V,CompletionInfoFlags:()=>qFe,CompletionTriggerKind:()=>P1e,Completions:()=>KF,ContainerFlags:()=>S8e,ContextFlags:()=>k$,Debug:()=>$,DiagnosticCategory:()=>gO,Diagnostics:()=>x,DocumentHighlights:()=>dae,ElementFlags:()=>nf,EmitFlags:()=>SO,EmitHint:()=>rE,EmitOnly:()=>K9,EndOfLineState:()=>WFe,ExitStatus:()=>ZD,ExportKind:()=>$7e,Extension:()=>mR,ExternalEmitHelpers:()=>gR,FileIncludeKind:()=>H9,FilePreprocessingDiagnosticsKind:()=>uO,FileSystemEntryKind:()=>TO,FileWatcherEventKind:()=>v4,FindAllReferences:()=>Pu,FlattenLevel:()=>z8e,FlowFlags:()=>PI,ForegroundColorEscapeSequences:()=>IOe,FunctionFlags:()=>q6e,GeneratedIdentifierFlags:()=>V9,GetLiteralTextFlags:()=>e6e,GoToDefinition:()=>cM,HighlightSpanKind:()=>UFe,IdentifierNameMap:()=>jL,ImportKind:()=>B7e,ImportsNotUsedAsValues:()=>OI,IndentStyle:()=>zFe,IndexFlags:()=>hO,IndexKind:()=>eE,InferenceFlags:()=>w$,InferencePriority:()=>iR,InlayHintKind:()=>$Fe,InlayHints:()=>pbe,InternalEmitFlags:()=>P$,InternalNodeBuilderFlags:()=>C$,InternalSymbolName:()=>A$,IntersectionFlags:()=>X9,InvalidatedProjectKind:()=>gFe,JSDocParsingMode:()=>RI,JsDoc:()=>VA,JsTyping:()=>wC,JsxEmit:()=>I$,JsxFlags:()=>lO,JsxReferenceKind:()=>Y2,LanguageFeatureMinimumTarget:()=>C_,LanguageServiceMode:()=>jFe,LanguageVariant:()=>dR,LexicalEnvironmentFlags:()=>h4,ListFormat:()=>FI,LogLevel:()=>I9,MapCode:()=>_be,MemberOverrideStatus:()=>Q9,ModifierFlags:()=>cO,ModuleDetectionKind:()=>sR,ModuleInstanceState:()=>y8e,ModuleKind:()=>tE,ModuleResolutionKind:()=>zk,ModuleSpecifierEnding:()=>U4e,NavigateTo:()=>u5e,NavigationBar:()=>_5e,NewLineKind:()=>pR,NodeBuilderFlags:()=>Y9,NodeCheckFlags:()=>fO,NodeFactoryFlags:()=>y3e,NodeFlags:()=>sO,NodeResolutionFeatures:()=>c8e,ObjectFlags:()=>mO,OperationCanceledException:()=>Uk,OperatorPrecedence:()=>W6e,OrganizeImports:()=>WA,OrganizeImportsMode:()=>I1e,OuterExpressionKinds:()=>N$,OutliningElementsCollector:()=>fbe,OutliningSpanKind:()=>JFe,OutputFileType:()=>VFe,PackageJsonAutoImportPreference:()=>MFe,PackageJsonDependencyGroup:()=>LFe,PatternMatchKind:()=>Uve,PollingInterval:()=>yR,PollingWatchKind:()=>uR,PragmaKindFlags:()=>g4,PredicateSemantics:()=>J9,PreparePasteEdits:()=>wbe,PrivateIdentifierKind:()=>A3e,ProcessLevel:()=>W8e,ProgramUpdateLevel:()=>kOe,QuotePreference:()=>y7e,RegularExpressionFlags:()=>W9,RelationComparisonResult:()=>q9,Rename:()=>Qae,ScriptElementKind:()=>HFe,ScriptElementKindModifier:()=>KFe,ScriptKind:()=>m4,ScriptSnapshot:()=>koe,ScriptTarget:()=>_R,SemanticClassificationFormat:()=>BFe,SemanticMeaning:()=>ZFe,SemicolonPreference:()=>N1e,SignatureCheckMode:()=>Wye,SignatureFlags:()=>Vm,SignatureHelp:()=>AQ,SignatureInfo:()=>BOe,SignatureKind:()=>nR,SmartSelectionRange:()=>gbe,SnippetKind:()=>hR,StatisticType:()=>CFe,StructureIsReused:()=>d4,SymbolAccessibility:()=>tR,SymbolDisplay:()=>wE,SymbolDisplayPartKind:()=>Doe,SymbolFlags:()=>_O,SymbolFormatFlags:()=>f4,SyntaxKind:()=>z9,Ternary:()=>oR,ThrottledCancellationToken:()=>S9e,TokenClass:()=>GFe,TokenFlags:()=>E$,TransformFlags:()=>vO,TypeFacts:()=>Jye,TypeFlags:()=>NI,TypeFormatFlags:()=>eR,TypeMapKind:()=>Ny,TypePredicateKind:()=>pO,TypeReferenceSerializationKind:()=>D$,UnionReduction:()=>Z9,UpToDateStatusType:()=>uFe,VarianceFlags:()=>rR,Version:()=>Iy,VersionRange:()=>KD,WatchDirectoryFlags:()=>yO,WatchDirectoryKind:()=>lR,WatchFileKind:()=>cR,WatchLogLevel:()=>DOe,WatchType:()=>cf,accessPrivateIdentifier:()=>U8e,addEmitFlags:()=>CS,addEmitHelper:()=>pF,addEmitHelpers:()=>Ux,addInternalEmitFlags:()=>e3,addNodeFactoryPatcher:()=>klt,addObjectAllocatorPatcher:()=>llt,addRange:()=>En,addRelatedInfo:()=>ac,addSyntheticLeadingComment:()=>gC,addSyntheticTrailingComment:()=>nz,addToSeen:()=>o1,advancedAsyncSuperHelper:()=>Lne,affectsDeclarationPathOptionDeclarations:()=>ONe,affectsEmitOptionDeclarations:()=>NNe,allKeysStartWithDot:()=>Iie,altDirectorySeparator:()=>x4,and:()=>EI,append:()=>jt,appendIfUnique:()=>Jl,arrayFrom:()=>so,arrayIsEqualTo:()=>__,arrayIsHomogeneous:()=>K4e,arrayOf:()=>Jn,arrayReverseIterator:()=>Tf,arrayToMap:()=>_l,arrayToMultiMap:()=>tu,arrayToNumericMap:()=>bi,assertType:()=>h$,assign:()=>qe,asyncSuperHelper:()=>Rne,attachFileToDiagnostics:()=>rF,base64decode:()=>d4e,base64encode:()=>_4e,binarySearch:()=>rs,binarySearchKey:()=>Yl,bindSourceFile:()=>b8e,breakIntoCharacterSpans:()=>r5e,breakIntoWordSpans:()=>n5e,buildLinkParts:()=>C7e,buildOpts:()=>tK,buildOverload:()=>pTt,bundlerModuleNameResolver:()=>l8e,canBeConvertedToAsync:()=>Gve,canHaveDecorators:()=>kP,canHaveExportModifier:()=>kH,canHaveFlowNode:()=>KR,canHaveIllegalDecorators:()=>eye,canHaveIllegalModifiers:()=>dNe,canHaveIllegalType:()=>Zlt,canHaveIllegalTypeParameters:()=>_Ne,canHaveJSDoc:()=>WG,canHaveLocals:()=>vb,canHaveModifiers:()=>l1,canHaveModuleSpecifier:()=>F6e,canHaveSymbol:()=>gv,canIncludeBindAndCheckDiagnostics:()=>GU,canJsonReportNoInputFiles:()=>sK,canProduceDiagnostics:()=>gK,canUsePropertyAccess:()=>ige,canWatchAffectingLocation:()=>rFe,canWatchAtTypes:()=>tFe,canWatchDirectoryOrFile:()=>G0e,canWatchDirectoryOrFilePath:()=>NK,cartesianProduct:()=>A9,cast:()=>Ba,chainBundle:()=>Cv,chainDiagnosticMessages:()=>ws,changeAnyExtension:()=>Og,changeCompilerHostLikeToUseCache:()=>Bz,changeExtension:()=>hE,changeFullExtension:()=>T4,changesAffectModuleResolution:()=>Yte,changesAffectingProgramStructure:()=>WPe,characterCodeToRegularExpressionFlag:()=>DO,childIsDecorated:()=>mU,classElementOrClassElementParameterIsDecorated:()=>Bme,classHasClassThisAssignment:()=>s0e,classHasDeclaredOrExplicitlyAssignedName:()=>c0e,classHasExplicitlyAssignedName:()=>qie,classOrConstructorParameterIsDecorated:()=>pE,classicNameResolver:()=>h8e,classifier:()=>E9e,cleanExtendedConfigCache:()=>Kie,clear:()=>Cs,clearMap:()=>dg,clearSharedExtendedConfigFileWatcher:()=>x0e,climbPastPropertyAccess:()=>Ioe,clone:()=>qp,cloneCompilerOptions:()=>X1e,closeFileWatcher:()=>W1,closeFileWatcherOf:()=>C0,codefix:()=>Im,collapseTextChangeRangesAcrossMultipleVersions:()=>w,collectExternalModuleInfo:()=>n0e,combine:()=>ea,combinePaths:()=>Xi,commandLineOptionOfCustomType:()=>LNe,commentPragmas:()=>y4,commonOptionsWithBuild:()=>lie,compact:()=>Bc,compareBooleans:()=>cS,compareDataObjects:()=>Nhe,compareDiagnostics:()=>$U,compareEmitHelpers:()=>I3e,compareNumberOfDirectorySeparators:()=>bH,comparePaths:()=>M1,comparePathsCaseInsensitive:()=>$$,comparePathsCaseSensitive:()=>B$,comparePatternKeys:()=>Mye,compareProperties:()=>WD,compareStringsCaseInsensitive:()=>JD,compareStringsCaseInsensitiveEslintCompatible:()=>Sm,compareStringsCaseSensitive:()=>Su,compareStringsCaseSensitiveUI:()=>Rk,compareTextSpans:()=>fy,compareValues:()=>Br,compilerOptionsAffectDeclarationPath:()=>R4e,compilerOptionsAffectEmit:()=>F4e,compilerOptionsAffectSemanticDiagnostics:()=>O4e,compilerOptionsDidYouMeanDiagnostics:()=>die,compilerOptionsIndicateEsModules:()=>ive,computeCommonSourceDirectoryOfFilenames:()=>AOe,computeLineAndCharacterOfPosition:()=>aE,computeLineOfPosition:()=>nA,computeLineStarts:()=>oE,computePositionOfLineAndCharacter:()=>AO,computeSignatureWithDiagnostics:()=>U0e,computeSuggestionDiagnostics:()=>Jve,computedOptions:()=>UU,concatenate:()=>go,concatenateDiagnosticMessageChains:()=>C4e,consumesNodeCoreModules:()=>iae,contains:()=>un,containsIgnoredPath:()=>QU,containsObjectRestOrSpread:()=>ZH,containsParseError:()=>BO,containsPath:()=>ug,convertCompilerOptionsForTelemetry:()=>ZNe,convertCompilerOptionsFromJson:()=>apt,convertJsonOption:()=>m3,convertToBase64:()=>p4e,convertToJson:()=>iK,convertToObject:()=>VNe,convertToOptionsWithAbsolutePaths:()=>gie,convertToRelativePath:()=>BI,convertToTSConfig:()=>Sye,convertTypeAcquisitionFromJson:()=>spt,copyComments:()=>E3,copyEntries:()=>ere,copyLeadingComments:()=>eM,copyProperties:()=>zm,copyTrailingAsLeadingComments:()=>YK,copyTrailingComments:()=>tq,couldStartTrivia:()=>D4,countWhere:()=>Lo,createAbstractBuilder:()=>ddt,createAccessorPropertyBackingField:()=>nye,createAccessorPropertyGetRedirector:()=>bNe,createAccessorPropertySetRedirector:()=>xNe,createBaseNodeFactory:()=>d3e,createBinaryExpressionTrampoline:()=>iie,createBuilderProgram:()=>z0e,createBuilderProgramUsingIncrementalBuildInfo:()=>XOe,createBuilderStatusReporter:()=>goe,createCacheableExportInfoMap:()=>Ove,createCachedDirectoryStructureHost:()=>Gie,createClassifier:()=>qft,createCommentDirectivesMap:()=>XPe,createCompilerDiagnostic:()=>bp,createCompilerDiagnosticForInvalidCustomType:()=>MNe,createCompilerDiagnosticFromMessageChain:()=>nne,createCompilerHost:()=>wOe,createCompilerHostFromProgramHost:()=>c1e,createCompilerHostWorker:()=>Qie,createDetachedDiagnostic:()=>tF,createDiagnosticCollection:()=>IU,createDiagnosticForFileFromMessageChain:()=>Fme,createDiagnosticForNode:()=>xi,createDiagnosticForNodeArray:()=>UR,createDiagnosticForNodeArrayFromMessageChain:()=>EG,createDiagnosticForNodeFromMessageChain:()=>Nx,createDiagnosticForNodeInSourceFile:()=>m0,createDiagnosticForRange:()=>_6e,createDiagnosticMessageChainFromDiagnostic:()=>p6e,createDiagnosticReporter:()=>LF,createDocumentPositionMapper:()=>L8e,createDocumentRegistry:()=>V7e,createDocumentRegistryInternal:()=>jve,createEmitAndSemanticDiagnosticsBuilderProgram:()=>W0e,createEmitHelperFactory:()=>w3e,createEmptyExports:()=>qH,createEvaluator:()=>o3e,createExpressionForJsxElement:()=>aNe,createExpressionForJsxFragment:()=>sNe,createExpressionForObjectLiteralElementLike:()=>cNe,createExpressionForPropertyName:()=>Hge,createExpressionFromEntityName:()=>JH,createExternalHelpersImportDeclarationIfNeeded:()=>Zge,createFileDiagnostic:()=>md,createFileDiagnosticFromMessageChain:()=>ure,createFlowNode:()=>wb,createForOfBindingStatement:()=>Gge,createFutureSourceFile:()=>uae,createGetCanonicalFileName:()=>_d,createGetIsolatedDeclarationErrors:()=>mOe,createGetSourceFile:()=>D0e,createGetSymbolAccessibilityDiagnosticForNode:()=>RA,createGetSymbolAccessibilityDiagnosticForNodeName:()=>fOe,createGetSymbolWalker:()=>x8e,createIncrementalCompilerHost:()=>hoe,createIncrementalProgram:()=>lFe,createJsxFactoryExpression:()=>Wge,createLanguageService:()=>b9e,createLanguageServiceSourceFile:()=>wae,createMemberAccessForPropertyName:()=>d3,createModeAwareCache:()=>OL,createModeAwareCacheKey:()=>Ez,createModeMismatchDetails:()=>yme,createModuleNotFoundChain:()=>rre,createModuleResolutionCache:()=>FL,createModuleResolutionLoader:()=>O0e,createModuleResolutionLoaderUsingGlobalCache:()=>aFe,createModuleSpecifierResolutionHost:()=>BA,createMultiMap:()=>d_,createNameResolver:()=>lge,createNodeConverters:()=>h3e,createNodeFactory:()=>IH,createOptionNameMap:()=>pie,createOverload:()=>Pbe,createPackageJsonImportFilter:()=>tM,createPackageJsonInfo:()=>kve,createParenthesizerRules:()=>f3e,createPatternMatcher:()=>Q7e,createPrinter:()=>DC,createPrinterWithDefaults:()=>TOe,createPrinterWithRemoveComments:()=>wP,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>EOe,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>b0e,createProgram:()=>wK,createProgramDiagnostics:()=>MOe,createProgramHost:()=>l1e,createPropertyNameNodeForIdentifierOrLiteral:()=>EH,createQueue:()=>u0,createRange:()=>y0,createRedirectedBuilderProgram:()=>V0e,createResolutionCache:()=>K0e,createRuntimeTypeSerializer:()=>Z8e,createScanner:()=>B1,createSemanticDiagnosticsBuilderProgram:()=>_dt,createSet:()=>Qi,createSolutionBuilder:()=>fFe,createSolutionBuilderHost:()=>_Fe,createSolutionBuilderWithWatch:()=>mFe,createSolutionBuilderWithWatchHost:()=>dFe,createSortedArray:()=>dy,createSourceFile:()=>DF,createSourceMapGenerator:()=>P8e,createSourceMapSource:()=>wlt,createSuperAccessVariableStatement:()=>Vie,createSymbolTable:()=>ic,createSymlinkCache:()=>zhe,createSyntacticTypeNodeBuilder:()=>OFe,createSystemWatchFunctions:()=>F$,createTextChange:()=>WK,createTextChangeFromStartLength:()=>qoe,createTextChangeRange:()=>X0,createTextRangeFromNode:()=>tve,createTextRangeFromSpan:()=>zoe,createTextSpan:()=>Jp,createTextSpanFromBounds:()=>Hu,createTextSpanFromNode:()=>yh,createTextSpanFromRange:()=>CE,createTextSpanFromStringLiteralLikeContent:()=>eve,createTextWriter:()=>nH,createTokenRange:()=>Dhe,createTypeChecker:()=>w8e,createTypeReferenceDirectiveResolutionCache:()=>Die,createTypeReferenceResolutionLoader:()=>Yie,createWatchCompilerHost:()=>Tdt,createWatchCompilerHostOfConfigFile:()=>u1e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>p1e,createWatchFactory:()=>s1e,createWatchHost:()=>a1e,createWatchProgram:()=>_1e,createWatchStatusReporter:()=>Q0e,createWriteFileMeasuringIO:()=>A0e,declarationNameToString:()=>du,decodeMappings:()=>e0e,decodedTextSpanIntersectsWith:()=>dS,deduplicate:()=>rf,defaultHoverMaximumTruncationLength:()=>JPe,defaultInitCompilerOptions:()=>Cut,defaultMaximumTruncationLength:()=>cU,diagnosticCategoryName:()=>NT,diagnosticToString:()=>FP,diagnosticsEqualityComparer:()=>ine,directoryProbablyExists:()=>Sv,directorySeparator:()=>Gl,displayPart:()=>hg,displayPartsToString:()=>_Q,disposeEmitNodes:()=>Sge,documentSpansEqual:()=>pve,dumpTracingLegend:()=>U9,elementAt:()=>Gr,elideNodes:()=>SNe,emitDetachedComments:()=>t4e,emitFiles:()=>v0e,emitFilesAndReportErrors:()=>_oe,emitFilesAndReportErrorsAndGetExitStatus:()=>o1e,emitModuleKindIsNonNodeESM:()=>gH,emitNewLineBeforeLeadingCommentOfPosition:()=>e4e,emitResolverSkipsTypeChecking:()=>y0e,emitSkippedWithNoDiagnostics:()=>L0e,emptyArray:()=>j,emptyFileSystemEntries:()=>Qhe,emptyMap:()=>ie,emptyOptions:()=>u1,endsWith:()=>au,ensurePathIsNonModuleName:()=>Tx,ensureScriptKind:()=>fne,ensureTrailingDirectorySeparator:()=>r_,entityNameToString:()=>Rg,enumerateInsertsAndDeletes:()=>kI,equalOwnProperties:()=>yl,equateStringsCaseInsensitive:()=>F1,equateStringsCaseSensitive:()=>qm,equateValues:()=>Ng,escapeJsxAttributeString:()=>lhe,escapeLeadingUnderscores:()=>dp,escapeNonAsciiString:()=>Mre,escapeSnippetText:()=>mP,escapeString:()=>kb,escapeTemplateSubstitution:()=>she,evaluatorResult:()=>wd,every:()=>ht,exclusivelyPrefixedNodeCoreModules:()=>wne,executeCommandLine:()=>rft,expandPreOrPostfixIncrementOrDecrementExpression:()=>Yne,explainFiles:()=>e1e,explainIfFileIsRedirectAndImpliedFormat:()=>t1e,exportAssignmentIsAlias:()=>QG,expressionResultIsUnused:()=>Z4e,extend:()=>Lh,extensionFromPath:()=>VU,extensionIsTS:()=>vne,extensionsNotSupportingExtensionlessResolution:()=>yne,externalHelpersModuleNameText:()=>nC,factory:()=>W,fileExtensionIs:()=>Au,fileExtensionIsOneOf:()=>_p,fileIncludeReasonToDiagnostics:()=>i1e,fileShouldUseJavaScriptRequire:()=>Nve,filter:()=>yr,filterMutate:()=>co,filterSemanticDiagnostics:()=>noe,find:()=>wt,findAncestor:()=>fn,findBestPatternMatch:()=>GD,findChildOfKind:()=>Kl,findComputedPropertyNameCacheAssignment:()=>oie,findConfigFile:()=>k0e,findConstructorDeclaration:()=>AH,findContainingList:()=>Roe,findDiagnosticForNode:()=>L7e,findFirstNonJsxWhitespaceToken:()=>o7e,findIndex:()=>hr,findLast:()=>Ut,findLastIndex:()=>Hi,findListItemInfo:()=>i7e,findModifier:()=>ZL,findNextToken:()=>OP,findPackageJson:()=>R7e,findPackageJsons:()=>Eve,findPrecedingMatchingToken:()=>$oe,findPrecedingToken:()=>vd,findSuperStatementIndexPath:()=>Bie,findTokenOnLeftOfPosition:()=>Hz,findUseStrictPrologue:()=>Qge,first:()=>To,firstDefined:()=>Je,firstDefinedIterator:()=>pt,firstIterator:()=>Gu,firstOrOnly:()=>Ave,firstOrUndefined:()=>pi,firstOrUndefinedIterator:()=>ia,fixupCompilerOptions:()=>Hve,flatMap:()=>an,flatMapIterator:()=>li,flatMapToMutable:()=>Xr,flatten:()=>Rc,flattenCommaList:()=>TNe,flattenDestructuringAssignment:()=>v3,flattenDestructuringBinding:()=>AP,flattenDiagnosticMessageText:()=>RS,forEach:()=>X,forEachAncestor:()=>GPe,forEachAncestorDirectory:()=>Ex,forEachAncestorDirectoryStoppingAtGlobalCache:()=>Ab,forEachChild:()=>Is,forEachChildRecursively:()=>CF,forEachDynamicImportOrRequireCall:()=>Ine,forEachEmittedFile:()=>f0e,forEachEnclosingBlockScopeContainer:()=>c6e,forEachEntry:()=>Ad,forEachExternalModuleToImportFrom:()=>Rve,forEachImportClauseDeclaration:()=>R6e,forEachKey:()=>Ix,forEachLeadingCommentRange:()=>A4,forEachNameInAccessChainWalkingLeft:()=>b4e,forEachNameOfDefaultExport:()=>_ae,forEachOptionsSyntaxByName:()=>mge,forEachProjectReference:()=>tz,forEachPropertyAssignment:()=>JR,forEachResolvedProjectReference:()=>dge,forEachReturnStatement:()=>sC,forEachRight:()=>Re,forEachTrailingCommentRange:()=>w4,forEachTsConfigPropArray:()=>wG,forEachUnique:()=>dve,forEachYieldExpression:()=>h6e,formatColorAndReset:()=>IP,formatDiagnostic:()=>w0e,formatDiagnostics:()=>$_t,formatDiagnosticsWithColorAndContext:()=>OOe,formatGeneratedName:()=>IA,formatGeneratedNamePart:()=>wL,formatLocation:()=>I0e,formatMessage:()=>nF,formatStringFromArgs:()=>Mx,formatting:()=>rd,generateDjb2Hash:()=>qk,generateTSConfig:()=>WNe,getAdjustedReferenceLocation:()=>W1e,getAdjustedRenameLocation:()=>Moe,getAliasDeclarationFromName:()=>Zme,getAllAccessorDeclarations:()=>uP,getAllDecoratorsOfClass:()=>o0e,getAllDecoratorsOfClassElement:()=>Uie,getAllJSDocTags:()=>Mte,getAllJSDocTagsOfKind:()=>Nct,getAllKeys:()=>aS,getAllProjectOutputs:()=>Wie,getAllSuperTypeNodes:()=>EU,getAllowImportingTsExtensions:()=>A4e,getAllowJSCompilerOption:()=>fC,getAllowSyntheticDefaultImports:()=>iF,getAncestor:()=>mA,getAnyExtensionFromPath:()=>nE,getAreDeclarationMapsEnabled:()=>one,getAssignedExpandoInitializer:()=>zO,getAssignedName:()=>Q$,getAssignmentDeclarationKind:()=>m_,getAssignmentDeclarationPropertyAccessKind:()=>UG,getAssignmentTargetKind:()=>cC,getAutomaticTypeDirectiveNames:()=>kie,getBaseFileName:()=>t_,getBinaryOperatorPrecedence:()=>eH,getBuildInfo:()=>S0e,getBuildInfoFileVersionMap:()=>J0e,getBuildInfoText:()=>bOe,getBuildOrderFromAnyBuildOrder:()=>FK,getBuilderCreationParameters:()=>soe,getBuilderFileEmit:()=>AC,getCanonicalDiagnostic:()=>d6e,getCheckFlags:()=>Fp,getClassExtendsHeritageElement:()=>aP,getClassLikeDeclarationOfSymbol:()=>JT,getCombinedLocalAndExportSymbolFlags:()=>iL,getCombinedModifierFlags:()=>Ra,getCombinedNodeFlags:()=>dd,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>_u,getCommentRange:()=>DS,getCommonSourceDirectory:()=>jz,getCommonSourceDirectoryOfConfig:()=>S3,getCompilerOptionValue:()=>cne,getConditions:()=>EC,getConfigFileParsingDiagnostics:()=>PP,getConstantValue:()=>b3e,getContainerFlags:()=>Bye,getContainerNode:()=>T3,getContainingClass:()=>Cf,getContainingClassExcludingClassDecorators:()=>yre,getContainingClassStaticBlock:()=>E6e,getContainingFunction:()=>My,getContainingFunctionDeclaration:()=>T6e,getContainingFunctionOrClassStaticBlock:()=>gre,getContainingNodeArray:()=>X4e,getContainingObjectLiteralElement:()=>dQ,getContextualTypeFromParent:()=>Xoe,getContextualTypeFromParentOrAncestorTypeNode:()=>Loe,getDeclarationDiagnostics:()=>hOe,getDeclarationEmitExtensionForPath:()=>$re,getDeclarationEmitOutputFilePath:()=>Q6e,getDeclarationEmitOutputFilePathWorker:()=>Bre,getDeclarationFileExtension:()=>sie,getDeclarationFromName:()=>TU,getDeclarationModifierFlagsFromSymbol:()=>S0,getDeclarationOfKind:()=>Qu,getDeclarationsOfKind:()=>VPe,getDeclaredExpandoInitializer:()=>vU,getDecorators:()=>yb,getDefaultCompilerOptions:()=>Aae,getDefaultFormatCodeSettings:()=>Coe,getDefaultLibFileName:()=>kn,getDefaultLibFilePath:()=>x9e,getDefaultLikeExportInfo:()=>pae,getDefaultLikeExportNameFromDeclaration:()=>wve,getDefaultResolutionModeForFileWorker:()=>roe,getDiagnosticText:()=>Jh,getDiagnosticsWithinSpan:()=>M7e,getDirectoryPath:()=>mo,getDirectoryToWatchFailedLookupLocation:()=>H0e,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>iFe,getDocumentPositionMapper:()=>qve,getDocumentSpansEqualityComparer:()=>_ve,getESModuleInterop:()=>kS,getEditsForFileRename:()=>G7e,getEffectiveBaseTypeNode:()=>vv,getEffectiveConstraintOfTypeParameter:()=>NR,getEffectiveContainerForJSDocTemplateTag:()=>Ire,getEffectiveImplementsTypeNodes:()=>ZR,getEffectiveInitializer:()=>jG,getEffectiveJSDocHost:()=>fA,getEffectiveModifierFlags:()=>tm,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>o4e,getEffectiveModifierFlagsNoCache:()=>a4e,getEffectiveReturnTypeNode:()=>jg,getEffectiveSetAccessorTypeAnnotationNode:()=>ghe,getEffectiveTypeAnnotationNode:()=>X_,getEffectiveTypeParameterDeclarations:()=>Zk,getEffectiveTypeRoots:()=>Tz,getElementOrPropertyAccessArgumentExpressionOrName:()=>wre,getElementOrPropertyAccessName:()=>BT,getElementsOfBindingOrAssignmentPattern:()=>AL,getEmitDeclarations:()=>fg,getEmitFlags:()=>Xc,getEmitHelpers:()=>bge,getEmitModuleDetectionKind:()=>w4e,getEmitModuleFormatOfFileWorker:()=>zz,getEmitModuleKind:()=>Km,getEmitModuleResolutionKind:()=>km,getEmitScriptTarget:()=>$c,getEmitStandardClassFields:()=>$he,getEnclosingBlockScopeContainer:()=>yv,getEnclosingContainer:()=>lre,getEncodedSemanticClassifications:()=>Lve,getEncodedSyntacticClassifications:()=>Mve,getEndLinePosition:()=>vG,getEntityNameFromTypeNode:()=>NG,getEntrypointsFromPackageJsonInfo:()=>Fye,getErrorCountForSummary:()=>uoe,getErrorSpanForNode:()=>$4,getErrorSummaryText:()=>X0e,getEscapedTextOfIdentifierOrLiteral:()=>DU,getEscapedTextOfJsxAttributeName:()=>YU,getEscapedTextOfJsxNamespacedName:()=>cF,getExpandoInitializer:()=>_A,getExportAssignmentExpression:()=>Xme,getExportInfoMap:()=>oQ,getExportNeedsImportStarHelper:()=>M8e,getExpressionAssociativity:()=>ohe,getExpressionPrecedence:()=>wU,getExternalHelpersModuleName:()=>WH,getExternalModuleImportEqualsDeclarationExpression:()=>hU,getExternalModuleName:()=>JO,getExternalModuleNameFromDeclaration:()=>H6e,getExternalModuleNameFromPath:()=>_he,getExternalModuleNameLiteral:()=>kF,getExternalModuleRequireArgument:()=>Ume,getFallbackOptions:()=>CK,getFileEmitOutput:()=>jOe,getFileMatcherPatterns:()=>dne,getFileNamesFromConfigSpecs:()=>bz,getFileWatcherEventKind:()=>S4,getFilesInErrorForSummary:()=>poe,getFirstConstructorWithBody:()=>Rx,getFirstIdentifier:()=>_h,getFirstNonSpaceCharacterPosition:()=>w7e,getFirstProjectOutput:()=>g0e,getFixableErrorSpanExpression:()=>Cve,getFormatCodeSettingsForWriting:()=>cae,getFullWidth:()=>gG,getFunctionFlags:()=>A_,getHeritageClause:()=>ZG,getHostSignatureFromJSDoc:()=>dA,getIdentifierAutoGenerate:()=>Nlt,getIdentifierGeneratedImportReference:()=>D3e,getIdentifierTypeArguments:()=>t3,getImmediatelyInvokedFunctionExpression:()=>uA,getImpliedNodeFormatForEmitWorker:()=>b3,getImpliedNodeFormatForFile:()=>AK,getImpliedNodeFormatForFileWorker:()=>toe,getImportNeedsImportDefaultHelper:()=>r0e,getImportNeedsImportStarHelper:()=>Mie,getIndentString:()=>jre,getInferredLibraryNameResolveFrom:()=>eoe,getInitializedVariables:()=>MU,getInitializerOfBinaryExpression:()=>Vme,getInitializerOfBindingOrAssignmentElement:()=>HH,getInterfaceBaseTypeNodes:()=>kU,getInternalEmitFlags:()=>J1,getInvokedExpression:()=>bre,getIsFileExcluded:()=>z7e,getIsolatedModules:()=>a1,getJSDocAugmentsTag:()=>Ote,getJSDocClassTag:()=>X$,getJSDocCommentRanges:()=>Lme,getJSDocCommentsAndTags:()=>Wme,getJSDocDeprecatedTag:()=>cu,getJSDocDeprecatedTagNoCache:()=>kf,getJSDocEnumTag:()=>U1,getJSDocHost:()=>iP,getJSDocImplementsTags:()=>Fte,getJSDocOverloadTags:()=>Hme,getJSDocOverrideTagNoCache:()=>ml,getJSDocParameterTags:()=>P4,getJSDocParameterTagsNoCache:()=>Ite,getJSDocPrivateTag:()=>GI,getJSDocPrivateTagNoCache:()=>Ln,getJSDocProtectedTag:()=>ao,getJSDocProtectedTagNoCache:()=>lo,getJSDocPublicTag:()=>N4,getJSDocPublicTagNoCache:()=>Rte,getJSDocReadonlyTag:()=>aa,getJSDocReadonlyTagNoCache:()=>ta,getJSDocReturnTag:()=>Y0,getJSDocReturnType:()=>iG,getJSDocRoot:()=>QR,getJSDocSatisfiesExpressionType:()=>age,getJSDocSatisfiesTag:()=>IO,getJSDocTags:()=>sA,getJSDocTemplateTag:()=>LT,getJSDocThisTag:()=>d0,getJSDocType:()=>hv,getJSDocTypeAliasName:()=>Yge,getJSDocTypeAssertionType:()=>CL,getJSDocTypeParameterDeclarations:()=>Vre,getJSDocTypeParameterTags:()=>Pte,getJSDocTypeParameterTagsNoCache:()=>Z$,getJSDocTypeTag:()=>mv,getJSXImplicitImportBase:()=>yH,getJSXRuntimeImport:()=>une,getJSXTransformEnabled:()=>lne,getKeyForCompilerOptions:()=>wye,getLanguageVariant:()=>_H,getLastChild:()=>Ohe,getLeadingCommentRanges:()=>my,getLeadingCommentRangesOfNode:()=>Rme,getLeftmostAccessExpression:()=>oL,getLeftmostExpression:()=>aL,getLibFileNameFromLibReference:()=>_ge,getLibNameFromLibReference:()=>pge,getLibraryNameFromLibFileName:()=>F0e,getLineAndCharacterOfPosition:()=>qs,getLineInfo:()=>Yye,getLineOfLocalPosition:()=>PU,getLineStartPositionForPosition:()=>p1,getLineStarts:()=>Ry,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>y4e,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>g4e,getLinesBetweenPositions:()=>zI,getLinesBetweenRangeEndAndRangeStart:()=>Ahe,getLinesBetweenRangeEndPositions:()=>slt,getLiteralText:()=>t6e,getLocalNameForExternalImport:()=>DL,getLocalSymbolForExportDefault:()=>RU,getLocaleSpecificMessage:()=>As,getLocaleTimeString:()=>OK,getMappedContextSpan:()=>fve,getMappedDocumentSpan:()=>Koe,getMappedLocation:()=>Xz,getMatchedFileSpec:()=>r1e,getMatchedIncludeSpec:()=>n1e,getMeaningFromDeclaration:()=>Aoe,getMeaningFromLocation:()=>x3,getMembersOfDeclaration:()=>g6e,getModeForFileReference:()=>FOe,getModeForResolutionAtIndex:()=>W_t,getModeForUsageLocation:()=>N0e,getModifiedTime:()=>OT,getModifiers:()=>Qk,getModuleInstanceState:()=>KT,getModuleNameStringLiteralAt:()=>IK,getModuleSpecifierEndingPreference:()=>z4e,getModuleSpecifierResolverHost:()=>ove,getNameForExportedSymbol:()=>oae,getNameFromImportAttribute:()=>Cne,getNameFromIndexInfo:()=>l6e,getNameFromPropertyName:()=>HK,getNameOfAccessExpression:()=>Rhe,getNameOfCompilerOptionValue:()=>hie,getNameOfDeclaration:()=>cs,getNameOfExpando:()=>zme,getNameOfJSDocTypedef:()=>Ate,getNameOfScriptTarget:()=>sne,getNameOrArgument:()=>$G,getNameTable:()=>vSe,getNamespaceDeclarationNode:()=>HR,getNewLineCharacter:()=>fE,getNewLineKind:()=>iQ,getNewLineOrDefaultFromHost:()=>ZT,getNewTargetContainer:()=>C6e,getNextJSDocCommentLocation:()=>Gme,getNodeChildren:()=>Jge,getNodeForGeneratedName:()=>QH,getNodeId:()=>hl,getNodeKind:()=>NP,getNodeModifiers:()=>Kz,getNodeModulePathParts:()=>Tne,getNonAssignedNameOfDeclaration:()=>PR,getNonAssignmentOperatorForCompoundAssignment:()=>Pz,getNonAugmentationDeclaration:()=>Ame,getNonDecoratorTokenPosOfNode:()=>xme,getNonIncrementalBuildInfoRoots:()=>YOe,getNonModifierTokenPosOfNode:()=>YPe,getNormalizedAbsolutePath:()=>za,getNormalizedAbsolutePathWithoutRoot:()=>ER,getNormalizedPathComponents:()=>Jk,getObjectFlags:()=>ro,getOperatorAssociativity:()=>ahe,getOperatorPrecedence:()=>YG,getOptionFromName:()=>mye,getOptionsForLibraryResolution:()=>Iye,getOptionsNameMap:()=>PL,getOptionsSyntaxByArrayElementValue:()=>fge,getOptionsSyntaxByValue:()=>u3e,getOrCreateEmitNode:()=>nm,getOrUpdate:()=>hs,getOriginalNode:()=>Ku,getOriginalNodeId:()=>gh,getOutputDeclarationFileName:()=>Mz,getOutputDeclarationFileNameWorker:()=>m0e,getOutputExtension:()=>TK,getOutputFileNames:()=>j_t,getOutputJSFileNameWorker:()=>h0e,getOutputPathsFor:()=>Lz,getOwnEmitOutputFilePath:()=>K6e,getOwnKeys:()=>Lu,getOwnValues:()=>sS,getPackageJsonTypesVersionsPaths:()=>Eie,getPackageNameFromTypesPackageName:()=>Dz,getPackageScopeForPath:()=>Cz,getParameterSymbolFromJSDoc:()=>GG,getParentNodeInSpan:()=>QK,getParseTreeNode:()=>vs,getParsedCommandLineOfConfigFile:()=>rK,getPathComponents:()=>Cd,getPathFromPathComponents:()=>pS,getPathUpdater:()=>$ve,getPathsBasePath:()=>Ure,getPatternFromSpec:()=>Vhe,getPendingEmitKindWithSeen:()=>aoe,getPositionOfLineAndCharacter:()=>C4,getPossibleGenericSignatures:()=>H1e,getPossibleOriginalInputExtensionForExtension:()=>dhe,getPossibleOriginalInputPathWithoutChangingExt:()=>fhe,getPossibleTypeArgumentsInfo:()=>K1e,getPreEmitDiagnostics:()=>B_t,getPrecedingNonSpaceCharacterPosition:()=>Qoe,getPrivateIdentifier:()=>a0e,getProperties:()=>i0e,getProperty:()=>Q0,getPropertyAssignmentAliasLikeExpression:()=>z6e,getPropertyNameForPropertyNameNode:()=>H4,getPropertyNameFromType:()=>x0,getPropertyNameOfBindingOrAssignmentElement:()=>Xge,getPropertySymbolFromBindingElement:()=>Hoe,getPropertySymbolsFromContextualType:()=>Iae,getQuoteFromPreference:()=>sve,getQuotePreference:()=>Vg,getRangesWhere:()=>ou,getRefactorContextSpan:()=>$F,getReferencedFileLocation:()=>Uz,getRegexFromPattern:()=>mE,getRegularExpressionForWildcard:()=>zU,getRegularExpressionsForWildcards:()=>pne,getRelativePathFromDirectory:()=>lh,getRelativePathFromFile:()=>Vk,getRelativePathToDirectoryOrUrl:()=>FT,getRenameLocation:()=>XK,getReplacementSpanForContextToken:()=>Y1e,getResolutionDiagnostic:()=>j0e,getResolutionModeOverride:()=>$L,getResolveJsonModule:()=>_P,getResolvePackageJsonExports:()=>fH,getResolvePackageJsonImports:()=>mH,getResolvedExternalModuleName:()=>phe,getResolvedModuleFromResolution:()=>jO,getResolvedTypeReferenceDirectiveFromResolution:()=>tre,getRestIndicatorOfBindingOrAssignmentElement:()=>rie,getRestParameterElementType:()=>Mme,getRightMostAssignedExpression:()=>BG,getRootDeclaration:()=>bS,getRootDirectoryOfResolutionCache:()=>oFe,getRootLength:()=>Fy,getScriptKind:()=>yve,getScriptKindFromFileName:()=>mne,getScriptTargetFeatures:()=>Tme,getSelectedEffectiveModifierFlags:()=>QO,getSelectedSyntacticModifierFlags:()=>n4e,getSemanticClassifications:()=>q7e,getSemanticJsxChildren:()=>YR,getSetAccessorTypeAnnotationNode:()=>X6e,getSetAccessorValueParameter:()=>NU,getSetExternalModuleIndicator:()=>dH,getShebang:()=>VI,getSingleVariableOfVariableStatement:()=>GO,getSnapshotText:()=>BF,getSnippetElement:()=>xge,getSourceFileOfModule:()=>yG,getSourceFileOfNode:()=>Pn,getSourceFilePathInNewDir:()=>qre,getSourceFileVersionAsHashFromText:()=>doe,getSourceFilesToEmit:()=>zre,getSourceMapRange:()=>yE,getSourceMapper:()=>o5e,getSourceTextOfNodeFromSourceFile:()=>XI,getSpanOfTokenAtPosition:()=>gS,getSpellingSuggestion:()=>xx,getStartPositionOfLine:()=>iC,getStartPositionOfRange:()=>LU,getStartsOnNewLine:()=>rz,getStaticPropertiesAndClassStaticBlock:()=>$ie,getStrictOptionValue:()=>rm,getStringComparer:()=>ub,getSubPatternFromSpec:()=>_ne,getSuperCallFromStatement:()=>jie,getSuperContainer:()=>IG,getSupportedCodeFixes:()=>gSe,getSupportedExtensions:()=>qU,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>SH,getSwitchedType:()=>bve,getSymbolId:()=>hc,getSymbolNameForPrivateIdentifier:()=>XG,getSymbolTarget:()=>vve,getSyntacticClassifications:()=>J7e,getSyntacticModifierFlags:()=>_E,getSyntacticModifierFlagsNoCache:()=>She,getSynthesizedDeepClone:()=>Il,getSynthesizedDeepCloneWithReplacements:()=>wH,getSynthesizedDeepClones:()=>hP,getSynthesizedDeepClonesWithReplacements:()=>hge,getSyntheticLeadingComments:()=>_L,getSyntheticTrailingComments:()=>FH,getTargetLabel:()=>Poe,getTargetOfBindingOrAssignmentElement:()=>xC,getTemporaryModuleResolutionState:()=>kz,getTextOfConstantValue:()=>r6e,getTextOfIdentifierOrLiteral:()=>g0,getTextOfJSDocComment:()=>oG,getTextOfJsxAttributeName:()=>DH,getTextOfJsxNamespacedName:()=>ez,getTextOfNode:()=>Sp,getTextOfNodeFromSourceText:()=>uU,getTextOfPropertyName:()=>UO,getThisContainer:()=>Hm,getThisParameter:()=>cP,getTokenAtPosition:()=>la,getTokenPosOfNode:()=>oC,getTokenSourceMapRange:()=>Ilt,getTouchingPropertyName:()=>Vh,getTouchingToken:()=>KL,getTrailingCommentRanges:()=>hb,getTrailingSemicolonDeferringWriter:()=>uhe,getTransformers:()=>yOe,getTsBuildInfoEmitOutputFilePath:()=>LA,getTsConfigObjectLiteralExpression:()=>fU,getTsConfigPropArrayElementValue:()=>hre,getTypeAnnotationNode:()=>Y6e,getTypeArgumentOrTypeParameterList:()=>_7e,getTypeKeywordOfTypeOnlyImport:()=>uve,getTypeNode:()=>k3e,getTypeNodeIfAccessible:()=>nq,getTypeParameterFromJsDoc:()=>L6e,getTypeParameterOwner:()=>z,getTypesPackageName:()=>Pie,getUILocale:()=>Fk,getUniqueName:()=>k3,getUniqueSymbolId:()=>A7e,getUseDefineForClassFields:()=>hH,getWatchErrorSummaryDiagnosticMessage:()=>Z0e,getWatchFactory:()=>E0e,group:()=>Pg,groupBy:()=>Du,guessIndentation:()=>zPe,handleNoEmitOptions:()=>M0e,handleWatchOptionsConfigDirTemplateSubstitution:()=>yie,hasAbstractModifier:()=>pP,hasAccessorModifier:()=>xS,hasAmbientModifier:()=>vhe,hasChangesInResolutions:()=>vme,hasContextSensitiveParameters:()=>xne,hasDecorators:()=>By,hasDocComment:()=>u7e,hasDynamicName:()=>$T,hasEffectiveModifier:()=>Bg,hasEffectiveModifiers:()=>yhe,hasEffectiveReadonlyModifier:()=>Q4,hasExtension:()=>eA,hasImplementationTSFileExtension:()=>$4e,hasIndexSignature:()=>Sve,hasInferredType:()=>Ane,hasInitializer:()=>lE,hasInvalidEscape:()=>che,hasJSDocNodes:()=>hy,hasJSDocParameterTags:()=>Nte,hasJSFileExtension:()=>jx,hasJsonModuleEmitEnabled:()=>ane,hasOnlyExpressionInitializer:()=>j4,hasOverrideModifier:()=>Wre,hasPossibleExternalModuleReference:()=>s6e,hasProperty:()=>Ho,hasPropertyAccessExpressionWithName:()=>$K,hasQuestionToken:()=>VO,hasRecordedExternalHelpers:()=>pNe,hasResolutionModeOverride:()=>n3e,hasRestParameter:()=>fme,hasScopeMarker:()=>OPe,hasStaticModifier:()=>fd,hasSyntacticModifier:()=>ko,hasSyntacticModifiers:()=>r4e,hasTSFileExtension:()=>X4,hasTabstop:()=>e3e,hasTrailingDirectorySeparator:()=>uS,hasType:()=>Qte,hasTypeArguments:()=>Zct,hasZeroOrOneAsteriskCharacter:()=>Uhe,hostGetCanonicalFileName:()=>UT,hostUsesCaseSensitiveFileNames:()=>K4,idText:()=>Zi,identifierIsThisKeyword:()=>hhe,identifierToKeywordKind:()=>aA,identity:()=>vl,identitySourceMapConsumer:()=>t0e,ignoreSourceNewlines:()=>Ege,ignoredPaths:()=>b4,importFromModuleSpecifier:()=>bU,importSyntaxAffectsModuleResolution:()=>Bhe,indexOfAnyCharCode:()=>xo,indexOfNode:()=>BR,indicesOf:()=>zp,inferredTypesContainingFile:()=>$z,injectClassNamedEvaluationHelperBlockIfMissing:()=>Jie,injectClassThisAssignmentIfMissing:()=>V8e,insertImports:()=>lve,insertSorted:()=>vm,insertStatementAfterCustomPrologue:()=>B4,insertStatementAfterStandardPrologue:()=>Jct,insertStatementsAfterCustomPrologue:()=>Sme,insertStatementsAfterStandardPrologue:()=>Px,intersperse:()=>tr,intrinsicTagNameToString:()=>sge,introducesArgumentsExoticObject:()=>S6e,inverseJsxOptionMap:()=>eK,isAbstractConstructorSymbol:()=>v4e,isAbstractModifier:()=>M3e,isAccessExpression:()=>wu,isAccessibilityModifier:()=>Z1e,isAccessor:()=>tC,isAccessorModifier:()=>Ige,isAliasableExpression:()=>Pre,isAmbientModule:()=>Gm,isAmbientPropertyDeclaration:()=>Ime,isAnyDirectorySeparator:()=>XD,isAnyImportOrBareOrAccessedRequire:()=>o6e,isAnyImportOrReExport:()=>xG,isAnyImportOrRequireStatement:()=>a6e,isAnyImportSyntax:()=>$O,isAnySupportedFileExtension:()=>blt,isApplicableVersionedTypesKey:()=>uK,isArgumentExpressionOfElementAccess:()=>$1e,isArray:()=>Zn,isArrayBindingElement:()=>Jte,isArrayBindingOrAssignmentElement:()=>pG,isArrayBindingOrAssignmentPattern:()=>cme,isArrayBindingPattern:()=>xE,isArrayLiteralExpression:()=>qf,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>kE,isArrayTypeNode:()=>jH,isArrowFunction:()=>Iu,isAsExpression:()=>gL,isAssertClause:()=>V3e,isAssertEntry:()=>Ult,isAssertionExpression:()=>ZI,isAssertsKeyword:()=>R3e,isAssignmentDeclaration:()=>yU,isAssignmentExpression:()=>of,isAssignmentOperator:()=>zT,isAssignmentPattern:()=>aU,isAssignmentTarget:()=>lC,isAsteriskToken:()=>LH,isAsyncFunction:()=>CU,isAsyncModifier:()=>oz,isAutoAccessorPropertyDeclaration:()=>Mh,isAwaitExpression:()=>SC,isAwaitKeyword:()=>wge,isBigIntLiteral:()=>dL,isBinaryExpression:()=>wi,isBinaryLogicalOperator:()=>iH,isBinaryOperatorToken:()=>vNe,isBindableObjectDefinePropertyCall:()=>J4,isBindableStaticAccessExpression:()=>nP,isBindableStaticElementAccessExpression:()=>Are,isBindableStaticNameExpression:()=>V4,isBindingElement:()=>Vc,isBindingElementOfBareOrAccessedRequire:()=>w6e,isBindingName:()=>L4,isBindingOrAssignmentElement:()=>wPe,isBindingOrAssignmentPattern:()=>lG,isBindingPattern:()=>$s,isBlock:()=>Vs,isBlockLike:()=>UF,isBlockOrCatchScoped:()=>Eme,isBlockScope:()=>Pme,isBlockScopedContainerTopLevel:()=>i6e,isBooleanLiteral:()=>oU,isBreakOrContinueStatement:()=>tU,isBreakStatement:()=>jlt,isBuildCommand:()=>DFe,isBuildInfoFile:()=>vOe,isBuilderProgram:()=>Y0e,isBundle:()=>K3e,isCallChain:()=>O4,isCallExpression:()=>Js,isCallExpressionTarget:()=>F1e,isCallLikeExpression:()=>QI,isCallLikeOrFunctionLikeExpression:()=>lme,isCallOrNewExpression:()=>mS,isCallOrNewExpressionTarget:()=>R1e,isCallSignatureDeclaration:()=>hF,isCallToHelper:()=>iz,isCaseBlock:()=>_z,isCaseClause:()=>bL,isCaseKeyword:()=>B3e,isCaseOrDefaultClause:()=>Hte,isCatchClause:()=>TP,isCatchClauseVariableDeclaration:()=>Y4e,isCatchClauseVariableDeclarationOrBindingElement:()=>kme,isCheckJsEnabledForFile:()=>WU,isCircularBuildOrder:()=>MF,isClassDeclaration:()=>ed,isClassElement:()=>J_,isClassExpression:()=>w_,isClassInstanceProperty:()=>DPe,isClassLike:()=>Co,isClassMemberModifier:()=>ome,isClassNamedEvaluationHelperBlock:()=>FF,isClassOrTypeElement:()=>qte,isClassStaticBlockDeclaration:()=>n_,isClassThisAssignmentBlock:()=>Oz,isColonToken:()=>O3e,isCommaExpression:()=>VH,isCommaListExpression:()=>uz,isCommaSequence:()=>gz,isCommaToken:()=>N3e,isComment:()=>Uoe,isCommonJsExportPropertyAssignment:()=>fre,isCommonJsExportedExpression:()=>y6e,isCompoundAssignment:()=>Iz,isComputedNonLiteralName:()=>TG,isComputedPropertyName:()=>dc,isConciseBody:()=>Wte,isConditionalExpression:()=>a3,isConditionalTypeNode:()=>yP,isConstAssertion:()=>cge,isConstTypeReference:()=>z1,isConstructSignatureDeclaration:()=>cz,isConstructorDeclaration:()=>kp,isConstructorTypeNode:()=>fL,isContextualKeyword:()=>Ore,isContinueStatement:()=>Mlt,isCustomPrologue:()=>AG,isDebuggerStatement:()=>Blt,isDeclaration:()=>Vd,isDeclarationBindingElement:()=>cG,isDeclarationFileName:()=>sf,isDeclarationName:()=>Eb,isDeclarationNameOfEnumOrNamespace:()=>Ihe,isDeclarationReadonly:()=>kG,isDeclarationStatement:()=>MPe,isDeclarationWithTypeParameterChildren:()=>Ome,isDeclarationWithTypeParameters:()=>Nme,isDecorator:()=>hd,isDecoratorTarget:()=>YFe,isDefaultClause:()=>dz,isDefaultImport:()=>W4,isDefaultModifier:()=>$ne,isDefaultedExpandoInitializer:()=>I6e,isDeleteExpression:()=>U3e,isDeleteTarget:()=>Qme,isDeprecatedDeclaration:()=>aae,isDestructuringAssignment:()=>dE,isDiskPathRoot:()=>jI,isDoStatement:()=>Llt,isDocumentRegistryEntry:()=>aQ,isDotDotDotToken:()=>jne,isDottedName:()=>aH,isDynamicName:()=>Rre,isEffectiveExternalModule:()=>$R,isEffectiveStrictModeSourceFile:()=>wme,isElementAccessChain:()=>Yfe,isElementAccessExpression:()=>mu,isEmittedFileOfProgram:()=>COe,isEmptyArrayLiteral:()=>u4e,isEmptyBindingElement:()=>bt,isEmptyBindingPattern:()=>Ie,isEmptyObjectLiteral:()=>khe,isEmptyStatement:()=>Oge,isEmptyStringLiteral:()=>$me,isEntityName:()=>uh,isEntityNameExpression:()=>ru,isEnumConst:()=>lA,isEnumDeclaration:()=>CA,isEnumMember:()=>GT,isEqualityOperatorKind:()=>Yoe,isEqualsGreaterThanToken:()=>F3e,isExclamationToken:()=>MH,isExcludedFile:()=>HNe,isExclusivelyTypeOnlyImportOrExport:()=>P0e,isExpandoPropertyDeclaration:()=>lF,isExportAssignment:()=>Xu,isExportDeclaration:()=>P_,isExportModifier:()=>fF,isExportName:()=>eie,isExportNamespaceAsDefaultDeclaration:()=>are,isExportOrDefaultModifier:()=>KH,isExportSpecifier:()=>Cm,isExportsIdentifier:()=>q4,isExportsOrModuleExportsOrAlias:()=>CP,isExpression:()=>Vt,isExpressionNode:()=>Tb,isExpressionOfExternalModuleImportEqualsDeclaration:()=>r7e,isExpressionOfOptionalChainRoot:()=>Bte,isExpressionStatement:()=>af,isExpressionWithTypeArguments:()=>VT,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Hre,isExternalModule:()=>yd,isExternalModuleAugmentation:()=>eP,isExternalModuleImportEqualsDeclaration:()=>pA,isExternalModuleIndicator:()=>dG,isExternalModuleNameRelative:()=>vt,isExternalModuleReference:()=>WT,isExternalModuleSymbol:()=>LO,isExternalOrCommonJsModule:()=>Lg,isFileLevelReservedGeneratedIdentifier:()=>sG,isFileLevelUniqueName:()=>ire,isFileProbablyExternalModule:()=>XH,isFirstDeclarationOfSymbolParameter:()=>mve,isFixablePromiseHandler:()=>Wve,isForInOrOfStatement:()=>M4,isForInStatement:()=>Vne,isForInitializer:()=>f0,isForOfStatement:()=>$H,isForStatement:()=>kA,isFullSourceFile:()=>Ox,isFunctionBlock:()=>tP,isFunctionBody:()=>pme,isFunctionDeclaration:()=>i_,isFunctionExpression:()=>bu,isFunctionExpressionOrArrowFunction:()=>mC,isFunctionLike:()=>Rs,isFunctionLikeDeclaration:()=>lu,isFunctionLikeKind:()=>NO,isFunctionLikeOrClassStaticBlockDeclaration:()=>RR,isFunctionOrConstructorTypeNode:()=>APe,isFunctionOrModuleBlock:()=>ame,isFunctionSymbol:()=>O6e,isFunctionTypeNode:()=>Cb,isGeneratedIdentifier:()=>ap,isGeneratedPrivateIdentifier:()=>R4,isGetAccessor:()=>Ax,isGetAccessorDeclaration:()=>T0,isGetOrSetAccessorDeclaration:()=>aG,isGlobalScopeAugmentation:()=>xb,isGlobalSourceFile:()=>uE,isGrammarError:()=>ZPe,isHeritageClause:()=>zg,isHoistedFunction:()=>_re,isHoistedVariableStatement:()=>dre,isIdentifier:()=>ct,isIdentifierANonContextualKeyword:()=>the,isIdentifierName:()=>U6e,isIdentifierOrThisTypeNode:()=>mNe,isIdentifierPart:()=>j1,isIdentifierStart:()=>pg,isIdentifierText:()=>Jd,isIdentifierTypePredicate:()=>b6e,isIdentifierTypeReference:()=>H4e,isIfStatement:()=>EA,isIgnoredFileFromWildCardWatching:()=>kK,isImplicitGlob:()=>Jhe,isImportAttribute:()=>W3e,isImportAttributeName:()=>CPe,isImportAttributes:()=>l3,isImportCall:()=>Bh,isImportClause:()=>H1,isImportDeclaration:()=>fp,isImportEqualsDeclaration:()=>gd,isImportKeyword:()=>sz,isImportMeta:()=>qR,isImportOrExportSpecifier:()=>Yk,isImportOrExportSpecifierName:()=>D7e,isImportSpecifier:()=>Xm,isImportTypeAssertionContainer:()=>$lt,isImportTypeNode:()=>AS,isImportable:()=>Fve,isInComment:()=>EE,isInCompoundLikeAssignment:()=>Kme,isInExpressionContext:()=>xre,isInJSDoc:()=>gU,isInJSFile:()=>Ei,isInJSXText:()=>l7e,isInJsonFile:()=>Ere,isInNonReferenceComment:()=>m7e,isInReferenceComment:()=>f7e,isInRightSideOfInternalImportEqualsDeclaration:()=>woe,isInString:()=>jF,isInTemplateString:()=>G1e,isInTopLevelContext:()=>vre,isInTypeQuery:()=>KO,isIncrementalBuildInfo:()=>PK,isIncrementalBundleEmitBuildInfo:()=>GOe,isIncrementalCompilation:()=>dP,isIndexSignatureDeclaration:()=>vC,isIndexedAccessTypeNode:()=>vP,isInferTypeNode:()=>n3,isInfinityOrNaNString:()=>ZU,isInitializedProperty:()=>mK,isInitializedVariable:()=>pH,isInsideJsxElement:()=>Boe,isInsideJsxElementOrAttribute:()=>c7e,isInsideNodeModules:()=>tQ,isInsideTemplateLiteral:()=>VK,isInstanceOfExpression:()=>Kre,isInstantiatedModule:()=>Hye,isInterfaceDeclaration:()=>Af,isInternalDeclaration:()=>qPe,isInternalModuleImportEqualsDeclaration:()=>z4,isInternalName:()=>Kge,isIntersectionTypeNode:()=>vF,isIntrinsicJsxName:()=>eL,isIterationStatement:()=>rC,isJSDoc:()=>kv,isJSDocAllType:()=>X3e,isJSDocAugmentsTag:()=>EF,isJSDocAuthorTag:()=>Vlt,isJSDocCallbackTag:()=>Mge,isJSDocClassTag:()=>eNe,isJSDocCommentContainingNode:()=>Kte,isJSDocConstructSignature:()=>WO,isJSDocDeprecatedTag:()=>zge,isJSDocEnumTag:()=>zH,isJSDocFunctionType:()=>TL,isJSDocImplementsTag:()=>Zne,isJSDocImportTag:()=>OS,isJSDocIndexSignature:()=>Cre,isJSDocLikeText:()=>iye,isJSDocLink:()=>Q3e,isJSDocLinkCode:()=>Z3e,isJSDocLinkLike:()=>RO,isJSDocLinkPlain:()=>qlt,isJSDocMemberName:()=>wA,isJSDocNameReference:()=>fz,isJSDocNamepathType:()=>Jlt,isJSDocNamespaceBody:()=>Mct,isJSDocNode:()=>LR,isJSDocNonNullableType:()=>Gne,isJSDocNullableType:()=>xL,isJSDocOptionalParameter:()=>Ene,isJSDocOptionalType:()=>Lge,isJSDocOverloadTag:()=>EL,isJSDocOverrideTag:()=>Kne,isJSDocParameterTag:()=>Uy,isJSDocPrivateTag:()=>Bge,isJSDocPropertyLikeTag:()=>rU,isJSDocPropertyTag:()=>tNe,isJSDocProtectedTag:()=>$ge,isJSDocPublicTag:()=>jge,isJSDocReadonlyTag:()=>Uge,isJSDocReturnTag:()=>Qne,isJSDocSatisfiesExpression:()=>oge,isJSDocSatisfiesTag:()=>Xne,isJSDocSeeTag:()=>Wlt,isJSDocSignature:()=>TE,isJSDocTag:()=>MR,isJSDocTemplateTag:()=>c1,isJSDocThisTag:()=>qge,isJSDocThrowsTag:()=>Hlt,isJSDocTypeAlias:()=>n1,isJSDocTypeAssertion:()=>EP,isJSDocTypeExpression:()=>AA,isJSDocTypeLiteral:()=>p3,isJSDocTypeTag:()=>mz,isJSDocTypedefTag:()=>_3,isJSDocUnknownTag:()=>Glt,isJSDocUnknownType:()=>Y3e,isJSDocVariadicType:()=>Hne,isJSXTagName:()=>WR,isJsonEqual:()=>Sne,isJsonSourceFile:()=>h0,isJsxAttribute:()=>NS,isJsxAttributeLike:()=>Gte,isJsxAttributeName:()=>r3e,isJsxAttributes:()=>xP,isJsxCallLike:()=>UPe,isJsxChild:()=>hG,isJsxClosingElement:()=>bP,isJsxClosingFragment:()=>H3e,isJsxElement:()=>PS,isJsxExpression:()=>SL,isJsxFragment:()=>DA,isJsxNamespacedName:()=>Ev,isJsxOpeningElement:()=>Tv,isJsxOpeningFragment:()=>K1,isJsxOpeningLikeElement:()=>Em,isJsxOpeningLikeElementTagName:()=>e7e,isJsxSelfClosingElement:()=>u3,isJsxSpreadAttribute:()=>TF,isJsxTagNameExpression:()=>sU,isJsxText:()=>_F,isJumpStatementTarget:()=>UK,isKeyword:()=>Uh,isKeywordOrPunctuation:()=>Nre,isKnownSymbol:()=>AU,isLabelName:()=>j1e,isLabelOfLabeledStatement:()=>M1e,isLabeledStatement:()=>bC,isLateVisibilityPaintedStatement:()=>cre,isLeftHandSideExpression:()=>jh,isLet:()=>pre,isLineBreak:()=>Dd,isLiteralComputedPropertyDeclarationName:()=>KG,isLiteralExpression:()=>F4,isLiteralExpressionOfObject:()=>nme,isLiteralImportTypeNode:()=>jT,isLiteralKind:()=>nU,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>Noe,isLiteralTypeLiteral:()=>NPe,isLiteralTypeNode:()=>bE,isLocalName:()=>HT,isLogicalOperator:()=>s4e,isLogicalOrCoalescingAssignmentExpression:()=>bhe,isLogicalOrCoalescingAssignmentOperator:()=>OU,isLogicalOrCoalescingBinaryExpression:()=>oH,isLogicalOrCoalescingBinaryOperator:()=>Gre,isMappedTypeNode:()=>o3,isMemberName:()=>Dx,isMetaProperty:()=>s3,isMethodDeclaration:()=>Ep,isMethodOrAccessor:()=>OO,isMethodSignature:()=>G1,isMinusToken:()=>Age,isMissingDeclaration:()=>zlt,isMissingPackageJsonInfo:()=>o8e,isModifier:()=>bc,isModifierKind:()=>eC,isModifierLike:()=>sp,isModuleAugmentationExternal:()=>Dme,isModuleBlock:()=>wS,isModuleBody:()=>FPe,isModuleDeclaration:()=>I_,isModuleExportName:()=>Wne,isModuleExportsAccessExpression:()=>Fx,isModuleIdentifier:()=>qme,isModuleName:()=>yNe,isModuleOrEnumDeclaration:()=>fG,isModuleReference:()=>BPe,isModuleSpecifierLike:()=>Goe,isModuleWithStringLiteralName:()=>sre,isNameOfFunctionDeclaration:()=>z1e,isNameOfModuleDeclaration:()=>U1e,isNamedDeclaration:()=>Vp,isNamedEvaluation:()=>Mg,isNamedEvaluationSource:()=>rhe,isNamedExportBindings:()=>tme,isNamedExports:()=>k0,isNamedImportBindings:()=>_me,isNamedImports:()=>IS,isNamedImportsOrExports:()=>tne,isNamedTupleMember:()=>mL,isNamespaceBody:()=>Lct,isNamespaceExport:()=>Db,isNamespaceExportDeclaration:()=>UH,isNamespaceImport:()=>zx,isNamespaceReexportDeclaration:()=>A6e,isNewExpression:()=>SP,isNewExpressionTarget:()=>Wz,isNewScopeNode:()=>l3e,isNoSubstitutionTemplateLiteral:()=>r3,isNodeArray:()=>HI,isNodeArrayMultiLine:()=>h4e,isNodeDescendantOf:()=>oP,isNodeKind:()=>Ute,isNodeLikeSystem:()=>rO,isNodeModulesDirectory:()=>CO,isNodeWithPossibleHoistedDeclaration:()=>B6e,isNonContextualKeyword:()=>ehe,isNonGlobalAmbientModule:()=>Cme,isNonNullAccess:()=>t3e,isNonNullChain:()=>$te,isNonNullExpression:()=>bF,isNonStaticMethodOrAccessorWithPrivateName:()=>j8e,isNotEmittedStatement:()=>G3e,isNullishCoalesce:()=>eme,isNumber:()=>Kn,isNumericLiteral:()=>qh,isNumericLiteralName:()=>$x,isObjectBindingElementWithoutPropertyName:()=>KK,isObjectBindingOrAssignmentElement:()=>uG,isObjectBindingOrAssignmentPattern:()=>sme,isObjectBindingPattern:()=>$y,isObjectLiteralElement:()=>dme,isObjectLiteralElementLike:()=>MT,isObjectLiteralExpression:()=>Lc,isObjectLiteralMethod:()=>r1,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>mre,isObjectTypeDeclaration:()=>eF,isOmittedExpression:()=>Id,isOptionalChain:()=>xm,isOptionalChainRoot:()=>Y$,isOptionalDeclaration:()=>sF,isOptionalJSDocPropertyLikeTag:()=>CH,isOptionalTypeNode:()=>Une,isOuterExpression:()=>tie,isOutermostOptionalChain:()=>eU,isOverrideModifier:()=>j3e,isPackageJsonInfo:()=>Cie,isPackedArrayLiteral:()=>nge,isParameter:()=>wa,isParameterPropertyDeclaration:()=>ne,isParameterPropertyModifier:()=>iU,isParenthesizedExpression:()=>mh,isParenthesizedTypeNode:()=>i3,isParseTreeNode:()=>I4,isPartOfParameterDeclaration:()=>hA,isPartOfTypeNode:()=>vS,isPartOfTypeOnlyImportOrExportDeclaration:()=>kPe,isPartOfTypeQuery:()=>Tre,isPartiallyEmittedExpression:()=>z3e,isPatternMatch:()=>L1,isPinnedComment:()=>ore,isPlainJsFile:()=>lU,isPlusToken:()=>Dge,isPossiblyTypeArgumentPosition:()=>JK,isPostfixUnaryExpression:()=>Nge,isPrefixUnaryExpression:()=>TA,isPrimitiveLiteralValue:()=>Dne,isPrivateIdentifier:()=>Aa,isPrivateIdentifierClassElementDeclaration:()=>Tm,isPrivateIdentifierPropertyAccessExpression:()=>FR,isPrivateIdentifierSymbol:()=>J6e,isProgramUptoDate:()=>R0e,isPrologueDirective:()=>yS,isPropertyAccessChain:()=>jte,isPropertyAccessEntityNameExpression:()=>sH,isPropertyAccessExpression:()=>no,isPropertyAccessOrQualifiedName:()=>_G,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>IPe,isPropertyAssignment:()=>td,isPropertyDeclaration:()=>ps,isPropertyName:()=>q_,isPropertyNameLiteral:()=>SS,isPropertySignature:()=>Zm,isPrototypeAccess:()=>_C,isPrototypePropertyAssignment:()=>zG,isPunctuation:()=>Yme,isPushOrUnshiftIdentifier:()=>nhe,isQualifiedName:()=>dh,isQuestionDotToken:()=>Bne,isQuestionOrExclamationToken:()=>fNe,isQuestionOrPlusOrMinusToken:()=>gNe,isQuestionToken:()=>yC,isReadonlyKeyword:()=>L3e,isReadonlyKeywordOrPlusOrMinusToken:()=>hNe,isRecognizedTripleSlashComment:()=>bme,isReferenceFileLocation:()=>UL,isReferencedFile:()=>MA,isRegularExpressionLiteral:()=>kge,isRequireCall:()=>$h,isRequireVariableStatement:()=>LG,isRestParameter:()=>Sb,isRestTypeNode:()=>zne,isReturnStatement:()=>gy,isReturnStatementWithFixablePromiseHandler:()=>fae,isRightSideOfAccessExpression:()=>Ehe,isRightSideOfInstanceofExpression:()=>l4e,isRightSideOfPropertyAccess:()=>WL,isRightSideOfQualifiedName:()=>t7e,isRightSideOfQualifiedNameOrPropertyAccess:()=>FU,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>c4e,isRootedDiskPath:()=>qd,isSameEntityName:()=>GR,isSatisfiesExpression:()=>yL,isSemicolonClassElement:()=>q3e,isSetAccessor:()=>hS,isSetAccessorDeclaration:()=>mg,isShiftOperatorOrHigher:()=>tye,isShorthandAmbientModuleSymbol:()=>bG,isShorthandPropertyAssignment:()=>im,isSideEffectImport:()=>uge,isSignedNumericLiteral:()=>Fre,isSimpleCopiableExpression:()=>DP,isSimpleInlineableExpression:()=>FS,isSimpleParameterList:()=>hK,isSingleOrDoubleQuote:()=>MG,isSolutionConfig:()=>Eye,isSourceElement:()=>i3e,isSourceFile:()=>Ta,isSourceFileFromLibrary:()=>rM,isSourceFileJS:()=>ph,isSourceFileNotJson:()=>kre,isSourceMapping:()=>R8e,isSpecialPropertyDeclaration:()=>N6e,isSpreadAssignment:()=>qx,isSpreadElement:()=>E0,isStatement:()=>fa,isStatementButNotDeclaration:()=>mG,isStatementOrBlock:()=>jPe,isStatementWithLocals:()=>QPe,isStatic:()=>oc,isStaticModifier:()=>mF,isString:()=>Ni,isStringANonContextualKeyword:()=>HO,isStringAndEmptyAnonymousObjectIntersection:()=>d7e,isStringDoubleQuoted:()=>Dre,isStringLiteral:()=>Ic,isStringLiteralLike:()=>Sl,isStringLiteralOrJsxExpression:()=>$Pe,isStringLiteralOrTemplate:()=>P7e,isStringOrNumericLiteralLike:()=>jy,isStringOrRegularExpressionOrTemplateLiteral:()=>Q1e,isStringTextContainingNode:()=>ime,isSuperCall:()=>U4,isSuperKeyword:()=>az,isSuperProperty:()=>_g,isSupportedSourceFileName:()=>Khe,isSwitchStatement:()=>pz,isSyntaxList:()=>kL,isSyntheticExpression:()=>Rlt,isSyntheticReference:()=>xF,isTagName:()=>B1e,isTaggedTemplateExpression:()=>xA,isTaggedTemplateTag:()=>XFe,isTemplateExpression:()=>Jne,isTemplateHead:()=>dF,isTemplateLiteral:()=>FO,isTemplateLiteralKind:()=>Xk,isTemplateLiteralToken:()=>TPe,isTemplateLiteralTypeNode:()=>$3e,isTemplateLiteralTypeSpan:()=>Pge,isTemplateMiddle:()=>Cge,isTemplateMiddleOrTemplateTail:()=>zte,isTemplateSpan:()=>vL,isTemplateTail:()=>Mne,isTextWhiteSpaceLike:()=>v7e,isThis:()=>GL,isThisContainerOrFunctionBlock:()=>k6e,isThisIdentifier:()=>pC,isThisInTypeQuery:()=>lP,isThisInitializedDeclaration:()=>Sre,isThisInitializedObjectBindingExpression:()=>D6e,isThisProperty:()=>PG,isThisTypeNode:()=>lz,isThisTypeParameter:()=>XU,isThisTypePredicate:()=>x6e,isThrowStatement:()=>Rge,isToken:()=>PO,isTokenKind:()=>rme,isTraceEnabled:()=>TC,isTransientSymbol:()=>wx,isTrivia:()=>XR,isTryStatement:()=>c3,isTupleTypeNode:()=>yF,isTypeAlias:()=>VG,isTypeAliasDeclaration:()=>s1,isTypeAssertionExpression:()=>qne,isTypeDeclaration:()=>aF,isTypeElement:()=>KI,isTypeKeyword:()=>Qz,isTypeKeywordTokenOrIdentifier:()=>Joe,isTypeLiteralNode:()=>fh,isTypeNode:()=>Wo,isTypeNodeKind:()=>Fhe,isTypeOfExpression:()=>hL,isTypeOnlyExportDeclaration:()=>EPe,isTypeOnlyImportDeclaration:()=>OR,isTypeOnlyImportOrExportDeclaration:()=>cE,isTypeOperatorNode:()=>bA,isTypeParameterDeclaration:()=>Zu,isTypePredicateNode:()=>gF,isTypeQueryNode:()=>gP,isTypeReferenceNode:()=>Ug,isTypeReferenceType:()=>Zte,isTypeUsableAsPropertyName:()=>b0,isUMDExportSymbol:()=>ene,isUnaryExpression:()=>ume,isUnaryExpressionWithWrite:()=>PPe,isUnicodeIdentifierStart:()=>fv,isUnionTypeNode:()=>SE,isUrl:()=>TR,isValidBigIntString:()=>bne,isValidESSymbolDeclaration:()=>v6e,isValidTypeOnlyAliasUseSite:()=>yA,isValueSignatureDeclaration:()=>G4,isVarAwaitUsing:()=>CG,isVarConst:()=>zR,isVarConstLike:()=>m6e,isVarUsing:()=>DG,isVariableDeclaration:()=>Oo,isVariableDeclarationInVariableStatement:()=>dU,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>rP,isVariableDeclarationInitializedToRequire:()=>RG,isVariableDeclarationList:()=>Df,isVariableLike:()=>_U,isVariableStatement:()=>h_,isVoidExpression:()=>SF,isWatchSet:()=>Phe,isWhileStatement:()=>Fge,isWhiteSpaceLike:()=>p0,isWhiteSpaceSingleLine:()=>_0,isWithStatement:()=>J3e,isWriteAccess:()=>YO,isWriteOnlyAccess:()=>Yre,isYieldExpression:()=>BH,jsxModeNeedsExplicitImport:()=>Pve,keywordPart:()=>Wg,last:()=>Sn,lastOrUndefined:()=>Yr,length:()=>te,libMap:()=>lye,libs:()=>cie,lineBreakPart:()=>YL,loadModuleFromGlobalCache:()=>g8e,loadWithModeAwareCache:()=>DK,makeIdentifierFromModuleName:()=>n6e,makeImport:()=>IC,makeStringLiteral:()=>Zz,mangleScopedPackageName:()=>LL,map:()=>Cr,mapAllOrFail:()=>Bo,mapDefined:()=>Wn,mapDefinedIterator:()=>Na,mapEntries:()=>uc,mapIterator:()=>ol,mapOneOrMany:()=>Dve,mapToDisplayParts:()=>PC,matchFiles:()=>Whe,matchPatternOrExact:()=>Zhe,matchedText:()=>D9,matchesExclude:()=>bie,matchesExcludeWorker:()=>xie,maxBy:()=>Q2,maybeBind:()=>ja,maybeSetLocalizedDiagnosticMessages:()=>k4e,memoize:()=>Ef,memoizeOne:()=>pd,min:()=>bx,minAndMax:()=>V4e,missingFileModifiedTime:()=>Wm,modifierToFlag:()=>ZO,modifiersToFlags:()=>TS,moduleExportNameIsDefault:()=>bb,moduleExportNameTextEscaped:()=>YI,moduleExportNameTextUnescaped:()=>aC,moduleOptionDeclaration:()=>INe,moduleResolutionIsEqualTo:()=>HPe,moduleResolutionNameAndModeGetter:()=>Xie,moduleResolutionOptionDeclarations:()=>pye,moduleResolutionSupportsPackageJsonExportsAndImports:()=>sL,moduleResolutionUsesNodeModules:()=>Voe,moduleSpecifierToValidIdentifier:()=>nQ,moduleSpecifiers:()=>QT,moduleSupportsImportAttributes:()=>N4e,moduleSymbolToValidIdentifier:()=>rQ,moveEmitHelpers:()=>T3e,moveRangeEnd:()=>Zre,moveRangePastDecorators:()=>qT,moveRangePastModifiers:()=>ES,moveRangePos:()=>gA,moveSyntheticComments:()=>S3e,mutateMap:()=>BU,mutateMapSkippingNewValues:()=>Lx,needsParentheses:()=>Zoe,needsScopeMarker:()=>Vte,newCaseClauseTracker:()=>lae,newPrivateEnvironment:()=>$8e,noEmitNotification:()=>SK,noEmitSubstitution:()=>Rz,noTransformers:()=>gOe,noTruncationMaximumTruncationLength:()=>hme,nodeCanBeDecorated:()=>OG,nodeCoreModules:()=>pL,nodeHasName:()=>wO,nodeIsDecorated:()=>VR,nodeIsMissing:()=>Op,nodeIsPresent:()=>t1,nodeIsSynthesized:()=>fu,nodeModuleNameResolver:()=>u8e,nodeModulesPathPart:()=>Jx,nodeNextJsonConfigResolver:()=>p8e,nodeOrChildIsDecorated:()=>FG,nodeOverlapsWithStartEnd:()=>Ooe,nodePosToString:()=>$ct,nodeSeenTracker:()=>QL,nodeStartsNewLexicalEnvironment:()=>ihe,noop:()=>zs,noopFileWatcher:()=>JL,normalizePath:()=>Qs,normalizeSlashes:()=>Z_,normalizeSpans:()=>D_,not:()=>_4,notImplemented:()=>Ts,notImplementedResolver:()=>xOe,nullNodeConverters:()=>g3e,nullParenthesizerRules:()=>m3e,nullTransformationContext:()=>xK,objectAllocator:()=>Uf,operatorPart:()=>Yz,optionDeclarations:()=>Q1,optionMapToObject:()=>mie,optionsAffectingProgramStructure:()=>FNe,optionsForBuild:()=>dye,optionsForWatch:()=>wF,optionsHaveChanges:()=>MO,or:()=>jf,orderedRemoveItem:()=>IT,orderedRemoveItemAt:()=>R1,packageIdToPackageName:()=>nre,packageIdToString:()=>cA,parameterIsThisKeyword:()=>uC,parameterNamePart:()=>b7e,parseBaseNodeFactory:()=>ENe,parseBigInt:()=>G4e,parseBuildCommand:()=>zNe,parseCommandLine:()=>$Ne,parseCommandLineWorker:()=>fye,parseConfigFileTextToJson:()=>hye,parseConfigFileWithSystem:()=>sFe,parseConfigHostFromCompilerHostLike:()=>ioe,parseCustomTypeOption:()=>_ie,parseIsolatedEntityName:()=>AF,parseIsolatedJSDocComment:()=>CNe,parseJSDocTypeExpressionForTests:()=>yut,parseJsonConfigFileContent:()=>Hut,parseJsonSourceFileConfigFileContent:()=>oK,parseJsonText:()=>YH,parseListTypeOption:()=>jNe,parseNodeFactory:()=>PA,parseNodeModuleFromPath:()=>lK,parsePackageName:()=>wie,parsePseudoBigInt:()=>HU,parseValidBigInt:()=>tge,pasteEdits:()=>Ibe,patchWriteFileEnsuringDirectory:()=>bR,pathContainsNodeModules:()=>kC,pathIsAbsolute:()=>YD,pathIsBareSpecifier:()=>EO,pathIsRelative:()=>ch,patternText:()=>X8,performIncrementalCompilation:()=>cFe,performance:()=>R9,positionBelongsToNode:()=>q1e,positionIsASICandidate:()=>eae,positionIsSynthesized:()=>bv,positionsAreOnSameLine:()=>v0,preProcessFile:()=>nmt,probablyUsesSemicolons:()=>eQ,processCommentPragmas:()=>sye,processPragmasIntoFields:()=>cye,processTaggedTemplateExpression:()=>l0e,programContainsEsModules:()=>g7e,programContainsModules:()=>h7e,projectReferenceIsEqualTo:()=>gme,propertyNamePart:()=>x7e,pseudoBigIntToString:()=>fP,punctuationPart:()=>wm,pushIfUnique:()=>Zc,quote:()=>rq,quotePreferenceFromString:()=>ave,rangeContainsPosition:()=>HL,rangeContainsPositionExclusive:()=>zK,rangeContainsRange:()=>zh,rangeContainsRangeExclusive:()=>n7e,rangeContainsStartEnd:()=>qK,rangeEndIsOnSameLineAsRangeStart:()=>uH,rangeEndPositionsAreOnSameLine:()=>f4e,rangeEquals:()=>or,rangeIsOnSingleLine:()=>Z4,rangeOfNode:()=>Yhe,rangeOfTypeParameters:()=>ege,rangeOverlapsWithStartEnd:()=>Gz,rangeStartIsOnSameLineAsRangeEnd:()=>m4e,rangeStartPositionsAreOnSameLine:()=>Xre,readBuilderProgram:()=>moe,readConfigFile:()=>nK,readJson:()=>nL,readJsonConfigFile:()=>qNe,readJsonOrUndefined:()=>Che,reduceEachLeadingCommentRange:()=>G$,reduceEachTrailingCommentRange:()=>JI,reduceLeft:()=>nl,reduceLeftIterator:()=>$e,reducePathComponents:()=>iE,refactor:()=>qF,regExpEscape:()=>mlt,regularExpressionFlagToCharacterCode:()=>ZW,relativeComplement:()=>cb,removeAllComments:()=>NH,removeEmitHelper:()=>Plt,removeExtension:()=>xH,removeFileExtension:()=>Qm,removeIgnoredPath:()=>coe,removeMinAndVersionNumbers:()=>C9,removePrefix:()=>Mk,removeSuffix:()=>Lk,removeTrailingDirectorySeparator:()=>dv,repeatString:()=>GK,replaceElement:()=>pc,replaceFirstStar:()=>Y4,resolutionExtensionIsTSOrJson:()=>JU,resolveConfigFileProjectName:()=>d1e,resolveJSModule:()=>s8e,resolveLibrary:()=>Aie,resolveModuleName:()=>h3,resolveModuleNameFromCache:()=>Ept,resolvePackageNameToPackageJson:()=>Aye,resolvePath:()=>mb,resolveProjectReferencePath:()=>RF,resolveTripleslashReference:()=>C0e,resolveTypeReferenceDirective:()=>n8e,resolvingEmptyArray:()=>mme,returnFalse:()=>Yf,returnNoopFileWatcher:()=>qz,returnTrue:()=>AT,returnUndefined:()=>Sx,returnsPromise:()=>Vve,rewriteModuleSpecifier:()=>NF,sameFlatMap:()=>Wi,sameMap:()=>Zo,sameMapping:()=>f_t,scanTokenAtPosition:()=>f6e,scanner:()=>wf,semanticDiagnosticsOptionDeclarations:()=>PNe,serializeCompilerOptions:()=>bye,server:()=>o2t,servicesVersion:()=>Wht,setCommentRange:()=>Y_,setConfigFileInOptions:()=>xye,setConstantValue:()=>x3e,setEmitFlags:()=>Ai,setGetSourceFileAsHashVersioned:()=>foe,setIdentifierAutoGenerate:()=>RH,setIdentifierGeneratedImportReference:()=>C3e,setIdentifierTypeArguments:()=>vE,setInternalEmitFlags:()=>OH,setLocalizedDiagnosticMessages:()=>E4e,setNodeChildren:()=>rNe,setNodeFlags:()=>Q4e,setObjectAllocator:()=>T4e,setOriginalNode:()=>Yi,setParent:()=>xl,setParentRecursive:()=>vA,setPrivateIdentifier:()=>y3,setSnippetElement:()=>Tge,setSourceMapRange:()=>Jc,setStackTraceLimit:()=>OW,setStartsOnNewLine:()=>One,setSyntheticLeadingComments:()=>SA,setSyntheticTrailingComments:()=>uF,setSys:()=>R$,setSysLog:()=>lS,setTextRange:()=>qt,setTextRangeEnd:()=>uL,setTextRangePos:()=>KU,setTextRangePosEnd:()=>xv,setTextRangePosWidth:()=>rge,setTokenSourceMapRange:()=>v3e,setTypeNode:()=>E3e,setUILocale:()=>f$,setValueDeclaration:()=>SU,shouldAllowImportingTsExtension:()=>ML,shouldPreserveConstEnums:()=>dC,shouldRewriteModuleSpecifier:()=>JG,shouldUseUriStyleNodeCoreModules:()=>sae,showModuleSpecifier:()=>S4e,signatureHasRestParameter:()=>Am,signatureToDisplayParts:()=>gve,single:()=>us,singleElementArray:()=>Z2,singleIterator:()=>Sc,singleOrMany:()=>Ja,singleOrUndefined:()=>to,skipAlias:()=>$f,skipConstraint:()=>nve,skipOuterExpressions:()=>Wp,skipParentheses:()=>bl,skipPartiallyEmittedExpressions:()=>q1,skipTrivia:()=>_c,skipTypeChecking:()=>lL,skipTypeCheckingIgnoringNoCheck:()=>W4e,skipTypeParentheses:()=>xU,skipWhile:()=>tO,sliceAfter:()=>Xhe,some:()=>Pt,sortAndDeduplicate:()=>O1,sortAndDeduplicateDiagnostics:()=>nr,sourceFileAffectingCompilerOptions:()=>_ye,sourceFileMayBeEmitted:()=>sP,sourceMapCommentRegExp:()=>Zye,sourceMapCommentRegExpDontCareLineStart:()=>N8e,spacePart:()=>Lp,spanMap:()=>Wu,startEndContainsRange:()=>whe,startEndOverlapsWithStartEnd:()=>Foe,startOnNewLine:()=>Dm,startTracing:()=>$9,startsWith:()=>Ca,startsWithDirectory:()=>rA,startsWithUnderscore:()=>Ive,startsWithUseStrict:()=>lNe,stringContainsAt:()=>j7e,stringToToken:()=>kx,stripQuotes:()=>i1,supportedDeclarationExtensions:()=>gne,supportedJSExtensionsFlat:()=>cL,supportedLocaleDirectories:()=>fS,supportedTSExtensionsFlat:()=>Ghe,supportedTSImplementationExtensions:()=>vH,suppressLeadingAndTrailingTrivia:()=>$g,suppressLeadingTrivia:()=>gge,suppressTrailingTrivia:()=>p3e,symbolEscapedNameNoDefault:()=>Woe,symbolName:()=>vp,symbolNameNoDefault:()=>cve,symbolToDisplayParts:()=>eq,sys:()=>f_,sysLog:()=>Oy,tagNamesAreEquivalent:()=>OA,takeWhile:()=>eO,targetOptionDeclaration:()=>uye,targetToLibMap:()=>Rr,testFormatSettings:()=>kft,textChangeRangeIsUnchanged:()=>Cx,textChangeRangeNewSpan:()=>WI,textChanges:()=>ki,textOrKeywordPart:()=>hve,textPart:()=>Vy,textRangeContainsPositionInclusive:()=>Ao,textRangeContainsTextSpan:()=>Hl,textRangeIntersectsWithTextSpan:()=>Hk,textSpanContainsPosition:()=>jo,textSpanContainsTextRange:()=>su,textSpanContainsTextSpan:()=>Ha,textSpanEnd:()=>Xn,textSpanIntersection:()=>fl,textSpanIntersectsWith:()=>_S,textSpanIntersectsWithPosition:()=>gb,textSpanIntersectsWithTextSpan:()=>Fg,textSpanIsEmpty:()=>Da,textSpanOverlap:()=>$1,textSpanOverlapsWith:()=>dl,textSpansEqual:()=>XL,textToKeywordObj:()=>UI,timestamp:()=>Ml,toArray:()=>Ll,toBuilderFileEmit:()=>QOe,toBuilderStateFileInfoForMultiEmit:()=>KOe,toEditorSettings:()=>pQ,toFileNameLowerCase:()=>lb,toPath:()=>wl,toProgramEmitPending:()=>ZOe,toSorted:()=>pu,tokenIsIdentifierOrKeyword:()=>Bf,tokenIsIdentifierOrKeywordOrGreaterThan:()=>$I,tokenToString:()=>Zs,trace:()=>ns,tracing:()=>hi,tracingEnabled:()=>II,transferSourceFileChildren:()=>nNe,transform:()=>rgt,transformClassFields:()=>Q8e,transformDeclarations:()=>d0e,transformECMAScriptModule:()=>_0e,transformES2015:()=>uOe,transformES2016:()=>lOe,transformES2017:()=>eOe,transformES2018:()=>tOe,transformES2019:()=>rOe,transformES2020:()=>nOe,transformES2021:()=>iOe,transformESDecorators:()=>Y8e,transformESNext:()=>oOe,transformGenerators:()=>pOe,transformImpliedNodeFormatDependentModule:()=>dOe,transformJsx:()=>cOe,transformLegacyDecorators:()=>X8e,transformModule:()=>p0e,transformNamedEvaluation:()=>qg,transformNodes:()=>bK,transformSystemModule:()=>_Oe,transformTypeScript:()=>K8e,transpile:()=>_mt,transpileDeclaration:()=>umt,transpileModule:()=>s5e,transpileOptionValueCompilerOptions:()=>RNe,tryAddToSet:()=>Us,tryAndIgnoreErrors:()=>nae,tryCast:()=>Ci,tryDirectoryExists:()=>rae,tryExtractTSExtension:()=>Qre,tryFileExists:()=>iq,tryGetClassExtendingExpressionWithTypeArguments:()=>xhe,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>The,tryGetDirectories:()=>tae,tryGetExtensionFromPath:()=>Bx,tryGetImportFromModuleSpecifier:()=>qG,tryGetJSDocSatisfiesTypeNode:()=>kne,tryGetModuleNameFromFile:()=>GH,tryGetModuleSpecifierFromDeclaration:()=>qO,tryGetNativePerformanceHooks:()=>nO,tryGetPropertyAccessOrIdentifierToString:()=>cH,tryGetPropertyNameOfBindingOrAssignmentElement:()=>nie,tryGetSourceMappingURL:()=>O8e,tryGetTextOfPropertyName:()=>pU,tryParseJson:()=>lH,tryParsePattern:()=>oF,tryParsePatterns:()=>TH,tryParseRawSourceMap:()=>F8e,tryReadDirectory:()=>Tve,tryReadFile:()=>Sz,tryRemoveDirectoryPrefix:()=>qhe,tryRemoveExtension:()=>J4e,tryRemovePrefix:()=>Y8,tryRemoveSuffix:()=>wT,tscBuildOption:()=>f3,typeAcquisitionDeclarations:()=>uie,typeAliasNamePart:()=>T7e,typeDirectiveIsEqualTo:()=>KPe,typeKeywords:()=>rve,typeParameterNamePart:()=>E7e,typeToDisplayParts:()=>ZK,unchangedPollThresholds:()=>LI,unchangedTextChangeRange:()=>_i,unescapeLeadingUnderscores:()=>oa,unmangleScopedPackageName:()=>pK,unorderedRemoveItem:()=>pb,unprefixedNodeCoreModules:()=>c3e,unreachableCodeIsError:()=>I4e,unsetNodeChildren:()=>Vge,unusedLabelIsError:()=>P4e,unwrapInnermostStatementOfLabel:()=>jme,unwrapParenthesizedExpression:()=>a3e,updateErrorForNoInputFiles:()=>Sie,updateLanguageServiceSourceFile:()=>ySe,updateMissingFilePathsWatch:()=>T0e,updateResolutionField:()=>NL,updateSharedExtendedConfigFileWatcher:()=>Hie,updateSourceFile:()=>oye,updateWatchingWildcardDirectories:()=>EK,usingSingleLineStringWriter:()=>jR,utf16EncodeAsString:()=>Gk,validateLocaleAndSetLanguage:()=>oA,version:()=>L,versionMajorMinor:()=>A,visitArray:()=>Az,visitCommaListElements:()=>fK,visitEachChild:()=>Dn,visitFunctionBody:()=>Jy,visitIterationBody:()=>hh,visitLexicalEnvironment:()=>Qye,visitNode:()=>At,visitNodes:()=>Bn,visitParameterList:()=>Rp,walkUpBindingElementsAndPatterns:()=>Pr,walkUpOuterExpressions:()=>uNe,walkUpParenthesizedExpressions:()=>V1,walkUpParenthesizedTypes:()=>HG,walkUpParenthesizedTypesAndGetParentAndChild:()=>$6e,whitespaceOrMapCommentRegExp:()=>Xye,writeCommentRange:()=>rL,writeFile:()=>Jre,writeFileEnsuringDirectories:()=>mhe,zipWith:()=>xt}),e.exports=S(b);var A="5.9",L="5.9.3",V=(t=>(t[t.LessThan=-1]="LessThan",t[t.EqualTo=0]="EqualTo",t[t.GreaterThan=1]="GreaterThan",t))(V||{}),j=[],ie=new Map;function te(t){return t!==void 0?t.length:0}function X(t,n){if(t!==void 0)for(let a=0;a=0;a--){let c=n(t[a],a);if(c)return c}}function Je(t,n){if(t!==void 0)for(let a=0;a=0;c--){let u=t[c];if(n(u,c))return u}}function hr(t,n,a){if(t===void 0)return-1;for(let c=a??0;c=0;c--)if(n(t[c],c))return c;return-1}function un(t,n,a=Ng){if(t!==void 0){for(let c=0;c{let[_,f]=n(u,c);a.set(_,f)}),a}function Pt(t,n){if(t!==void 0)if(n!==void 0){for(let a=0;a0;return!1}function ou(t,n,a){let c;for(let u=0;ut[f])}function K0(t,n){let a=[];for(let c=0;c0&&c(n,t[f-1]))return!1;if(f0&&$.assertGreaterThanOrEqual(a(n[_],n[_-1]),0);t:for(let f=u;uf&&$.assertGreaterThanOrEqual(a(t[u],t[u-1]),0),a(n[_],t[u])){case-1:c.push(n[_]);continue e;case 0:continue e;case 1:continue t}}return c}function jt(t,n){return n===void 0?t:t===void 0?[n]:(t.push(n),t)}function ea(t,n){return t===void 0?n:n===void 0?t:Zn(t)?Zn(n)?go(t,n):jt(t,n):Zn(n)?jt(n,t):[t,n]}function Ti(t,n){return n<0?t.length+n:n}function En(t,n,a,c){if(n===void 0||n.length===0)return t;if(t===void 0)return n.slice(a,c);a=a===void 0?0:Ti(n,a),c=c===void 0?n.length:Ti(n,c);for(let u=a;ua(t[c],t[u])||Br(c,u))}function pu(t,n){return t.length===0?j:t.slice().sort(n)}function*Tf(t){for(let n=t.length-1;n>=0;n--)yield t[n]}function or(t,n,a,c){for(;at?.at(n):(t,n)=>{if(t!==void 0&&(n=Ti(t,n),n>1),g=a(t[y],y);switch(c(g,n)){case-1:_=y+1;break;case 0:return y;case 1:f=y-1;break}}return~_}function nl(t,n,a,c,u){if(t&&t.length>0){let _=t.length;if(_>0){let f=c===void 0||c<0?0:c,y=u===void 0||f+u>_-1?_-1:f+u,g;for(arguments.length<=2?(g=t[f],f++):g=a;f<=y;)g=n(g,t[f],f),f++;return g}}return a}var eu=Object.prototype.hasOwnProperty;function Ho(t,n){return eu.call(t,n)}function Q0(t,n){return eu.call(t,n)?t[n]:void 0}function Lu(t){let n=[];for(let a in t)eu.call(t,a)&&n.push(a);return n}function aS(t){let n=[];do{let a=Object.getOwnPropertyNames(t);for(let c of a)Zc(n,c)}while(t=Object.getPrototypeOf(t));return n}function sS(t){let n=[];for(let a in t)eu.call(t,a)&&n.push(t[a]);return n}function Jn(t,n){let a=new Array(t);for(let c=0;c100&&a>n.length>>1){let y=n.length-a;n.copyWithin(0,a),n.length=y,a=0}return f}return{enqueue:u,dequeue:_,isEmpty:c}}function Qi(t,n){let a=new Map,c=0;function*u(){for(let f of a.values())Zn(f)?yield*f:yield f}let _={has(f){let y=t(f);if(!a.has(y))return!1;let g=a.get(y);return Zn(g)?un(g,f,n):n(g,f)},add(f){let y=t(f);if(a.has(y)){let g=a.get(y);if(Zn(g))un(g,f,n)||(g.push(f),c++);else{let k=g;n(k,f)||(a.set(y,[k,f]),c++)}}else a.set(y,f),c++;return this},delete(f){let y=t(f);if(!a.has(y))return!1;let g=a.get(y);if(Zn(g)){for(let k=0;ku(),[Symbol.toStringTag]:a[Symbol.toStringTag]};return _}function Zn(t){return Array.isArray(t)}function Ll(t){return Zn(t)?t:[t]}function Ni(t){return typeof t=="string"}function Kn(t){return typeof t=="number"}function Ci(t,n){return t!==void 0&&n(t)?t:void 0}function Ba(t,n){return t!==void 0&&n(t)?t:$.fail(`Invalid cast. The supplied value ${t} did not pass the test '${$.getFunctionName(n)}'.`)}function zs(t){}function Yf(){return!1}function AT(){return!0}function Sx(){}function vl(t){return t}function Wl(t){return t.toLowerCase()}var em=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function lb(t){return em.test(t)?t.replace(em,Wl):t}function Ts(){throw new Error("Not implemented")}function Ef(t){let n;return()=>(t&&(n=t(),t=void 0),n)}function pd(t){let n=new Map;return a=>{let c=`${typeof a}:${a}`,u=n.get(c);return u===void 0&&!n.has(c)&&(u=t(a),n.set(c,u)),u}}var d$=(t=>(t[t.None=0]="None",t[t.Normal=1]="Normal",t[t.Aggressive=2]="Aggressive",t[t.VeryAggressive=3]="VeryAggressive",t))(d$||{});function Ng(t,n){return t===n}function F1(t,n){return t===n||t!==void 0&&n!==void 0&&t.toUpperCase()===n.toUpperCase()}function qm(t,n){return Ng(t,n)}function cg(t,n){return t===n?0:t===void 0?-1:n===void 0?1:tn(a,c)===-1?a:c)}function JD(t,n){return t===n?0:t===void 0?-1:n===void 0?1:(t=t.toUpperCase(),n=n.toUpperCase(),tn?1:0)}function Sm(t,n){return t===n?0:t===void 0?-1:n===void 0?1:(t=t.toLowerCase(),n=n.toLowerCase(),tn?1:0)}function Su(t,n){return cg(t,n)}function ub(t){return t?JD:Su}var VD=(()=>{return n;function t(a,c,u){if(a===c)return 0;if(a===void 0)return-1;if(c===void 0)return 1;let _=u(a,c);return _<0?-1:_>0?1:0}function n(a){let c=new Intl.Collator(a,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(u,_)=>t(u,_,c)}})(),Q8,k9;function Fk(){return k9}function f$(t){k9!==t&&(k9=t,Q8=void 0)}function Rk(t,n){return Q8??(Q8=VD(k9)),Q8(t,n)}function WD(t,n,a,c){return t===n?0:t===void 0?-1:n===void 0?1:c(t[a],n[a])}function cS(t,n){return Br(t?1:0,n?1:0)}function xx(t,n,a){let c=Math.max(2,Math.floor(t.length*.34)),u=Math.floor(t.length*.4)+1,_;for(let f of n){let y=a(f);if(y!==void 0&&Math.abs(y.length-t.length)<=c){if(y===t||y.length<3&&y.toLowerCase()!==t.toLowerCase())continue;let g=Z8(t,y,u-.1);if(g===void 0)continue;$.assert(ga?y-a:1),T=Math.floor(n.length>a+y?a+y:n.length);u[0]=y;let C=y;for(let F=1;Fa)return;let O=c;c=u,u=O}let f=c[n.length];return f>a?void 0:f}function au(t,n,a){let c=t.length-n.length;return c>=0&&(a?F1(t.slice(c),n):t.indexOf(n,c)===c)}function Lk(t,n){return au(t,n)?t.slice(0,t.length-n.length):t}function wT(t,n){return au(t,n)?t.slice(0,t.length-n.length):void 0}function C9(t){let n=t.length;for(let a=n-1;a>0;a--){let c=t.charCodeAt(a);if(c>=48&&c<=57)do--a,c=t.charCodeAt(a);while(a>0&&c>=48&&c<=57);else if(a>4&&(c===110||c===78)){if(--a,c=t.charCodeAt(a),c!==105&&c!==73||(--a,c=t.charCodeAt(a),c!==109&&c!==77))break;--a,c=t.charCodeAt(a)}else break;if(c!==45&&c!==46)break;n=a}return n===t.length?t:t.slice(0,n)}function IT(t,n){for(let a=0;aa===n)}function dte(t,n){for(let a=0;au&&L1(y,a)&&(u=y.prefix.length,c=f)}return c}function Ca(t,n,a){return a?F1(t.slice(0,n.length),n):t.lastIndexOf(n,0)===0}function Mk(t,n){return Ca(t,n)?t.substr(n.length):t}function Y8(t,n,a=vl){return Ca(a(t),a(n))?t.substring(n.length):void 0}function L1({prefix:t,suffix:n},a){return a.length>=t.length+n.length&&Ca(a,t)&&au(a,n)}function EI(t,n){return a=>t(a)&&n(a)}function jf(...t){return(...n)=>{let a;for(let c of t)if(a=c(...n),a)return a;return a}}function _4(t){return(...n)=>!t(...n)}function h$(t){}function Z2(t){return t===void 0?void 0:[t]}function kI(t,n,a,c,u,_){_??(_=zs);let f=0,y=0,g=t.length,k=n.length,T=!1;for(;f(t[t.Off=0]="Off",t[t.Error=1]="Error",t[t.Warning=2]="Warning",t[t.Info=3]="Info",t[t.Verbose=4]="Verbose",t))(I9||{}),$;(t=>{let n=0;t.currentLogLevel=2,t.isDebugging=!1;function a(ft){return t.currentLogLevel<=ft}t.shouldLog=a;function c(ft,Ht){t.loggingHost&&a(ft)&&t.loggingHost.log(ft,Ht)}function u(ft){c(3,ft)}t.log=u,(ft=>{function Ht(Eo){c(1,Eo)}ft.error=Ht;function Wr(Eo){c(2,Eo)}ft.warn=Wr;function ai(Eo){c(3,Eo)}ft.log=ai;function vo(Eo){c(4,Eo)}ft.trace=vo})(u=t.log||(t.log={}));let _={};function f(){return n}t.getAssertionLevel=f;function y(ft){let Ht=n;if(n=ft,ft>Ht)for(let Wr of Lu(_)){let ai=_[Wr];ai!==void 0&&t[Wr]!==ai.assertion&&ft>=ai.level&&(t[Wr]=ai,_[Wr]=void 0)}}t.setAssertionLevel=y;function g(ft){return n>=ft}t.shouldAssert=g;function k(ft,Ht){return g(ft)?!0:(_[Ht]={level:ft,assertion:t[Ht]},t[Ht]=zs,!1)}function T(ft,Ht){debugger;let Wr=new Error(ft?`Debug Failure. ${ft}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Wr,Ht||T),Wr}t.fail=T;function C(ft,Ht,Wr){return T(`${Ht||"Unexpected node."}\r +Node ${ze(ft.kind)} was unexpected.`,Wr||C)}t.failBadSyntaxKind=C;function O(ft,Ht,Wr,ai){ft||(Ht=Ht?`False expression: ${Ht}`:"False expression.",Wr&&(Ht+=`\r +Verbose Debug Information: `+(typeof Wr=="string"?Wr:Wr())),T(Ht,ai||O))}t.assert=O;function F(ft,Ht,Wr,ai,vo){if(ft!==Ht){let Eo=Wr?ai?`${Wr} ${ai}`:Wr:"";T(`Expected ${ft} === ${Ht}. ${Eo}`,vo||F)}}t.assertEqual=F;function M(ft,Ht,Wr,ai){ft>=Ht&&T(`Expected ${ft} < ${Ht}. ${Wr||""}`,ai||M)}t.assertLessThan=M;function U(ft,Ht,Wr){ft>Ht&&T(`Expected ${ft} <= ${Ht}`,Wr||U)}t.assertLessThanOrEqual=U;function J(ft,Ht,Wr){ft= ${Ht}`,Wr||J)}t.assertGreaterThanOrEqual=J;function G(ft,Ht,Wr){ft==null&&T(Ht,Wr||G)}t.assertIsDefined=G;function Z(ft,Ht,Wr){return G(ft,Ht,Wr||Z),ft}t.checkDefined=Z;function Q(ft,Ht,Wr){for(let ai of ft)G(ai,Ht,Wr||Q)}t.assertEachIsDefined=Q;function re(ft,Ht,Wr){return Q(ft,Ht,Wr||re),ft}t.checkEachDefined=re;function ae(ft,Ht="Illegal value:",Wr){let ai=typeof ft=="object"&&Ho(ft,"kind")&&Ho(ft,"pos")?"SyntaxKind: "+ze(ft.kind):JSON.stringify(ft);return T(`${Ht} ${ai}`,Wr||ae)}t.assertNever=ae;function _e(ft,Ht,Wr,ai){k(1,"assertEachNode")&&O(Ht===void 0||ht(ft,Ht),Wr||"Unexpected node.",()=>`Node array did not pass test '${Ce(Ht)}'.`,ai||_e)}t.assertEachNode=_e;function me(ft,Ht,Wr,ai){k(1,"assertNode")&&O(ft!==void 0&&(Ht===void 0||Ht(ft)),Wr||"Unexpected node.",()=>`Node ${ze(ft?.kind)} did not pass test '${Ce(Ht)}'.`,ai||me)}t.assertNode=me;function le(ft,Ht,Wr,ai){k(1,"assertNotNode")&&O(ft===void 0||Ht===void 0||!Ht(ft),Wr||"Unexpected node.",()=>`Node ${ze(ft.kind)} should not have passed test '${Ce(Ht)}'.`,ai||le)}t.assertNotNode=le;function Oe(ft,Ht,Wr,ai){k(1,"assertOptionalNode")&&O(Ht===void 0||ft===void 0||Ht(ft),Wr||"Unexpected node.",()=>`Node ${ze(ft?.kind)} did not pass test '${Ce(Ht)}'.`,ai||Oe)}t.assertOptionalNode=Oe;function be(ft,Ht,Wr,ai){k(1,"assertOptionalToken")&&O(Ht===void 0||ft===void 0||ft.kind===Ht,Wr||"Unexpected node.",()=>`Node ${ze(ft?.kind)} was not a '${ze(Ht)}' token.`,ai||be)}t.assertOptionalToken=be;function ue(ft,Ht,Wr){k(1,"assertMissingNode")&&O(ft===void 0,Ht||"Unexpected node.",()=>`Node ${ze(ft.kind)} was unexpected'.`,Wr||ue)}t.assertMissingNode=ue;function De(ft){}t.type=De;function Ce(ft){if(typeof ft!="function")return"";if(Ho(ft,"name"))return ft.name;{let Ht=Function.prototype.toString.call(ft),Wr=/^function\s+([\w$]+)\s*\(/.exec(Ht);return Wr?Wr[1]:""}}t.getFunctionName=Ce;function Ae(ft){return`{ name: ${oa(ft.escapedName)}; flags: ${ke(ft.flags)}; declarations: ${Cr(ft.declarations,Ht=>ze(Ht.kind))} }`}t.formatSymbol=Ae;function Fe(ft=0,Ht,Wr){let ai=de(Ht);if(ft===0)return ai.length>0&&ai[0][0]===0?ai[0][1]:"0";if(Wr){let vo=[],Eo=ft;for(let[ya,Ls]of ai){if(ya>ft)break;ya!==0&&ya&ft&&(vo.push(Ls),Eo&=~ya)}if(Eo===0)return vo.join("|")}else for(let[vo,Eo]of ai)if(vo===ft)return Eo;return ft.toString()}t.formatEnum=Fe;let Be=new Map;function de(ft){let Ht=Be.get(ft);if(Ht)return Ht;let Wr=[];for(let vo in ft){let Eo=ft[vo];typeof Eo=="number"&&Wr.push([Eo,vo])}let ai=pu(Wr,(vo,Eo)=>Br(vo[0],Eo[0]));return Be.set(ft,ai),ai}function ze(ft){return Fe(ft,z9,!1)}t.formatSyntaxKind=ze;function ut(ft){return Fe(ft,hR,!1)}t.formatSnippetKind=ut;function je(ft){return Fe(ft,m4,!1)}t.formatScriptKind=je;function ve(ft){return Fe(ft,sO,!0)}t.formatNodeFlags=ve;function Le(ft){return Fe(ft,fO,!0)}t.formatNodeCheckFlags=Le;function Ve(ft){return Fe(ft,cO,!0)}t.formatModifierFlags=Ve;function nt(ft){return Fe(ft,vO,!0)}t.formatTransformFlags=nt;function It(ft){return Fe(ft,SO,!0)}t.formatEmitFlags=It;function ke(ft){return Fe(ft,_O,!0)}t.formatSymbolFlags=ke;function _t(ft){return Fe(ft,NI,!0)}t.formatTypeFlags=_t;function Se(ft){return Fe(ft,Vm,!0)}t.formatSignatureFlags=Se;function tt(ft){return Fe(ft,mO,!0)}t.formatObjectFlags=tt;function Qe(ft){return Fe(ft,PI,!0)}t.formatFlowFlags=Qe;function We(ft){return Fe(ft,q9,!0)}t.formatRelationComparisonResult=We;function St(ft){return Fe(ft,Vye,!0)}t.formatCheckMode=St;function Kt(ft){return Fe(ft,Wye,!0)}t.formatSignatureCheckMode=Kt;function Sr(ft){return Fe(ft,Jye,!0)}t.formatTypeFacts=Sr;let nn=!1,Nn;function $t(ft){"__debugFlowFlags"in ft||Object.defineProperties(ft,{__tsDebuggerDisplay:{value(){let Ht=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",Wr=this.flags&-2048;return`${Ht}${Wr?` (${Qe(Wr)})`:""}`}},__debugFlowFlags:{get(){return Fe(this.flags,PI,!0)}},__debugToString:{value(){return $o(this)}}})}function Dr(ft){return nn&&(typeof Object.setPrototypeOf=="function"?(Nn||(Nn=Object.create(Object.prototype),$t(Nn)),Object.setPrototypeOf(ft,Nn)):$t(ft)),ft}t.attachFlowNodeDebugInfo=Dr;let Qn;function Ko(ft){"__tsDebuggerDisplay"in ft||Object.defineProperties(ft,{__tsDebuggerDisplay:{value(Ht){return Ht=String(Ht).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${Ht}`}}})}function is(ft){nn&&(typeof Object.setPrototypeOf=="function"?(Qn||(Qn=Object.create(Array.prototype),Ko(Qn)),Object.setPrototypeOf(ft,Qn)):Ko(ft))}t.attachNodeArrayDebugInfo=is;function sr(){if(nn)return;let ft=new WeakMap,Ht=new WeakMap;Object.defineProperties(Uf.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let ai=this.flags&33554432?"TransientSymbol":"Symbol",vo=this.flags&-33554433;return`${ai} '${vp(this)}'${vo?` (${ke(vo)})`:""}`}},__debugFlags:{get(){return ke(this.flags)}}}),Object.defineProperties(Uf.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let ai=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",vo=this.flags&524288?this.objectFlags&-1344:0;return`${ai}${this.symbol?` '${vp(this.symbol)}'`:""}${vo?` (${tt(vo)})`:""}`}},__debugFlags:{get(){return _t(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?tt(this.objectFlags):""}},__debugTypeToString:{value(){let ai=ft.get(this);return ai===void 0&&(ai=this.checker.typeToString(this),ft.set(this,ai)),ai}}}),Object.defineProperties(Uf.getSignatureConstructor().prototype,{__debugFlags:{get(){return Se(this.flags)}},__debugSignatureToString:{value(){var ai;return(ai=this.checker)==null?void 0:ai.signatureToString(this)}}});let Wr=[Uf.getNodeConstructor(),Uf.getIdentifierConstructor(),Uf.getTokenConstructor(),Uf.getSourceFileConstructor()];for(let ai of Wr)Ho(ai.prototype,"__debugKind")||Object.defineProperties(ai.prototype,{__tsDebuggerDisplay:{value(){return`${ap(this)?"GeneratedIdentifier":ct(this)?`Identifier '${Zi(this)}'`:Aa(this)?`PrivateIdentifier '${Zi(this)}'`:Ic(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:qh(this)?`NumericLiteral ${this.text}`:dL(this)?`BigIntLiteral ${this.text}n`:Zu(this)?"TypeParameterDeclaration":wa(this)?"ParameterDeclaration":kp(this)?"ConstructorDeclaration":T0(this)?"GetAccessorDeclaration":mg(this)?"SetAccessorDeclaration":hF(this)?"CallSignatureDeclaration":cz(this)?"ConstructSignatureDeclaration":vC(this)?"IndexSignatureDeclaration":gF(this)?"TypePredicateNode":Ug(this)?"TypeReferenceNode":Cb(this)?"FunctionTypeNode":fL(this)?"ConstructorTypeNode":gP(this)?"TypeQueryNode":fh(this)?"TypeLiteralNode":jH(this)?"ArrayTypeNode":yF(this)?"TupleTypeNode":Une(this)?"OptionalTypeNode":zne(this)?"RestTypeNode":SE(this)?"UnionTypeNode":vF(this)?"IntersectionTypeNode":yP(this)?"ConditionalTypeNode":n3(this)?"InferTypeNode":i3(this)?"ParenthesizedTypeNode":lz(this)?"ThisTypeNode":bA(this)?"TypeOperatorNode":vP(this)?"IndexedAccessTypeNode":o3(this)?"MappedTypeNode":bE(this)?"LiteralTypeNode":mL(this)?"NamedTupleMember":AS(this)?"ImportTypeNode":ze(this.kind)}${this.flags?` (${ve(this.flags)})`:""}`}},__debugKind:{get(){return ze(this.kind)}},__debugNodeFlags:{get(){return ve(this.flags)}},__debugModifierFlags:{get(){return Ve(a4e(this))}},__debugTransformFlags:{get(){return nt(this.transformFlags)}},__debugIsParseTreeNode:{get(){return I4(this)}},__debugEmitFlags:{get(){return It(Xc(this))}},__debugGetText:{value(vo){if(fu(this))return"";let Eo=Ht.get(this);if(Eo===void 0){let ya=vs(this),Ls=ya&&Pn(ya);Eo=Ls?XI(Ls,ya,vo):"",Ht.set(this,Eo)}return Eo}}});nn=!0}t.enableDebugInfo=sr;function uo(ft){let Ht=ft&7,Wr=Ht===0?"in out":Ht===3?"[bivariant]":Ht===2?"in":Ht===1?"out":Ht===4?"[independent]":"";return ft&8?Wr+=" (unmeasurable)":ft&16&&(Wr+=" (unreliable)"),Wr}t.formatVariance=uo;class Wa{__debugToString(){var Ht;switch(this.kind){case 3:return((Ht=this.debugInfo)==null?void 0:Ht.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return xt(this.sources,this.targets||Cr(this.sources,()=>"any"),(Wr,ai)=>`${Wr.__debugTypeToString()} -> ${typeof ai=="string"?ai:ai.__debugTypeToString()}`).join(", ");case 2:return xt(this.sources,this.targets,(Wr,ai)=>`${Wr.__debugTypeToString()} -> ${ai().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +`).join(` + `)} +m2: ${this.mapper2.__debugToString().split(` +`).join(` + `)}`;default:return ae(this)}}}t.DebugTypeMapper=Wa;function oo(ft){return t.isDebugging?Object.setPrototypeOf(ft,Wa.prototype):ft}t.attachDebugPrototypeIfDebug=oo;function Oi(ft){return console.log($o(ft))}t.printControlFlowGraph=Oi;function $o(ft){let Ht=-1;function Wr(pe){return pe.id||(pe.id=Ht,Ht--),pe.id}let ai;(pe=>{pe.lr="\u2500",pe.ud="\u2502",pe.dr="\u256D",pe.dl="\u256E",pe.ul="\u256F",pe.ur="\u2570",pe.udr="\u251C",pe.udl="\u2524",pe.dlr="\u252C",pe.ulr="\u2534",pe.udlr="\u256B"})(ai||(ai={}));let vo;(pe=>{pe[pe.None=0]="None",pe[pe.Up=1]="Up",pe[pe.Down=2]="Down",pe[pe.Left=4]="Left",pe[pe.Right=8]="Right",pe[pe.UpDown=3]="UpDown",pe[pe.LeftRight=12]="LeftRight",pe[pe.UpLeft=5]="UpLeft",pe[pe.UpRight=9]="UpRight",pe[pe.DownLeft=6]="DownLeft",pe[pe.DownRight=10]="DownRight",pe[pe.UpDownLeft=7]="UpDownLeft",pe[pe.UpDownRight=11]="UpDownRight",pe[pe.UpLeftRight=13]="UpLeftRight",pe[pe.DownLeftRight=14]="DownLeftRight",pe[pe.UpDownLeftRight=15]="UpDownLeftRight",pe[pe.NoChildren=16]="NoChildren"})(vo||(vo={}));let Eo=2032,ya=882,Ls=Object.create(null),yc=[],Cn=[],Es=ar(ft,new Set);for(let pe of yc)pe.text=Ye(pe.flowNode,pe.circular),Zt(pe);let Dt=Qt(Es),ur=pr(Dt);return Et(Es,0),er();function Ee(pe){return!!(pe.flags&128)}function Bt(pe){return!!(pe.flags&12)&&!!pe.antecedent}function ye(pe){return!!(pe.flags&Eo)}function et(pe){return!!(pe.flags&ya)}function Ct(pe){let Gt=[];for(let mr of pe.edges)mr.source===pe&&Gt.push(mr.target);return Gt}function Ot(pe){let Gt=[];for(let mr of pe.edges)mr.target===pe&&Gt.push(mr.source);return Gt}function ar(pe,Gt){let mr=Wr(pe),Ge=Ls[mr];if(Ge&&Gt.has(pe))return Ge.circular=!0,Ge={id:-1,flowNode:pe,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},yc.push(Ge),Ge;if(Gt.add(pe),!Ge)if(Ls[mr]=Ge={id:mr,flowNode:pe,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},yc.push(Ge),Bt(pe))for(let Mt of pe.antecedent)at(Ge,Mt,Gt);else ye(pe)&&at(Ge,pe.antecedent,Gt);return Gt.delete(pe),Ge}function at(pe,Gt,mr){let Ge=ar(Gt,mr),Mt={source:pe,target:Ge};Cn.push(Mt),pe.edges.push(Mt),Ge.edges.push(Mt)}function Zt(pe){if(pe.level!==-1)return pe.level;let Gt=0;for(let mr of Ot(pe))Gt=Math.max(Gt,Zt(mr)+1);return pe.level=Gt}function Qt(pe){let Gt=0;for(let mr of Ct(pe))Gt=Math.max(Gt,Qt(mr));return Gt+1}function pr(pe){let Gt=Y(Array(pe),0);for(let mr of yc)Gt[mr.level]=Math.max(Gt[mr.level],mr.text.length);return Gt}function Et(pe,Gt){if(pe.lane===-1){pe.lane=Gt,pe.endLane=Gt;let mr=Ct(pe);for(let Ge=0;Ge0&&Gt++;let Mt=mr[Ge];Et(Mt,Gt),Mt.endLane>pe.endLane&&(Gt=Mt.endLane)}pe.endLane=Gt}}function xr(pe){if(pe&2)return"Start";if(pe&4)return"Branch";if(pe&8)return"Loop";if(pe&16)return"Assignment";if(pe&32)return"True";if(pe&64)return"False";if(pe&128)return"SwitchClause";if(pe&256)return"ArrayMutation";if(pe&512)return"Call";if(pe&1024)return"ReduceLabel";if(pe&1)return"Unreachable";throw new Error}function gi(pe){let Gt=Pn(pe);return XI(Gt,pe,!1)}function Ye(pe,Gt){let mr=xr(pe.flags);if(Gt&&(mr=`${mr}#${Wr(pe)}`),Ee(pe)){let Ge=[],{switchStatement:Mt,clauseStart:Ir,clauseEnd:ii}=pe.node;for(let Rn=Ir;Rnii.lane)+1,mr=Y(Array(Gt),""),Ge=ur.map(()=>Array(Gt)),Mt=ur.map(()=>Y(Array(Gt),0));for(let ii of yc){Ge[ii.level][ii.lane]=ii;let Rn=Ct(ii);for(let Rt=0;Rt0&&(_r|=1),Rt0&&(_r|=1),Rt0?Mt[ii-1][Rn]:0,Rt=Rn>0?Mt[ii][Rn-1]:0,rr=Mt[ii][Rn];rr||(zn&8&&(rr|=12),Rt&2&&(rr|=3),Mt[ii][Rn]=rr)}for(let ii=0;ii0?pe.repeat(Gt):"";let mr="";for(;mr.length=0,"Invalid argument: major"),$.assert(a>=0,"Invalid argument: minor"),$.assert(c>=0,"Invalid argument: patch");let f=u?Zn(u)?u:u.split("."):j,y=_?Zn(_)?_:_.split("."):j;$.assert(ht(f,g=>g$.test(g)),"Invalid argument: prerelease"),$.assert(ht(y,g=>kW.test(g)),"Invalid argument: build"),this.major=n,this.minor=a,this.patch=c,this.prerelease=f,this.build=y}static tryParse(n){let a=CI(n);if(!a)return;let{major:c,minor:u,patch:_,prerelease:f,build:y}=a;return new _te(c,u,_,f,y)}compareTo(n){return this===n?0:n===void 0?1:Br(this.major,n.major)||Br(this.minor,n.minor)||Br(this.patch,n.patch)||fte(this.prerelease,n.prerelease)}increment(n){switch(n){case"major":return new _te(this.major+1,0,0);case"minor":return new _te(this.major,this.minor+1,0);case"patch":return new _te(this.major,this.minor,this.patch+1);default:return $.assertNever(n)}}with(n){let{major:a=this.major,minor:c=this.minor,patch:u=this.patch,prerelease:_=this.prerelease,build:f=this.build}=n;return new _te(a,c,u,_,f)}toString(){let n=`${this.major}.${this.minor}.${this.patch}`;return Pt(this.prerelease)&&(n+=`-${this.prerelease.join(".")}`),Pt(this.build)&&(n+=`+${this.build.join(".")}`),n}};Bk.zero=new Bk(0,0,0,["0"]);var Iy=Bk;function CI(t){let n=P9.exec(t);if(!n)return;let[,a,c="0",u="0",_="",f=""]=n;if(!(_&&!_b.test(_))&&!(f&&!jk.test(f)))return{major:parseInt(a,10),minor:parseInt(c,10),patch:parseInt(u,10),prerelease:_,build:f}}function fte(t,n){if(t===n)return 0;if(t.length===0)return n.length===0?0:1;if(n.length===0)return-1;let a=Math.min(t.length,n.length);for(let c=0;c=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function PT(t){let n=[];for(let a of t.trim().split(CW)){if(!a)continue;let c=[];a=a.trim();let u=AW.exec(a);if(u){if(!IW(u[1],u[2],c))return}else for(let _ of a.split(mte)){let f=wW.exec(_.trim());if(!f||!hte(f[1],f[2],c))return}n.push(c)}return n}function DI(t){let n=DW.exec(t);if(!n)return;let[,a,c="*",u="*",_,f]=n;return{version:new Iy(bm(a)?0:parseInt(a,10),bm(a)||bm(c)?0:parseInt(c,10),bm(a)||bm(c)||bm(u)?0:parseInt(u,10),_,f),major:a,minor:c,patch:u}}function IW(t,n,a){let c=DI(t);if(!c)return!1;let u=DI(n);return u?(bm(c.major)||a.push(lg(">=",c.version)),bm(u.major)||a.push(bm(u.minor)?lg("<",u.version.increment("major")):bm(u.patch)?lg("<",u.version.increment("minor")):lg("<=",u.version)),!0):!1}function hte(t,n,a){let c=DI(n);if(!c)return!1;let{version:u,major:_,minor:f,patch:y}=c;if(bm(_))(t==="<"||t===">")&&a.push(lg("<",Iy.zero));else switch(t){case"~":a.push(lg(">=",u)),a.push(lg("<",u.increment(bm(f)?"major":"minor")));break;case"^":a.push(lg(">=",u)),a.push(lg("<",u.increment(u.major>0||bm(f)?"major":u.minor>0||bm(y)?"minor":"patch")));break;case"<":case">=":a.push(bm(f)||bm(y)?lg(t,u.with({prerelease:"0"})):lg(t,u));break;case"<=":case">":a.push(bm(f)?lg(t==="<="?"<":">=",u.increment("major").with({prerelease:"0"})):bm(y)?lg(t==="<="?"<":">=",u.increment("minor").with({prerelease:"0"})):lg(t,u));break;case"=":case void 0:bm(f)||bm(y)?(a.push(lg(">=",u.with({prerelease:"0"}))),a.push(lg("<",u.increment(bm(f)?"major":"minor").with({prerelease:"0"})))):a.push(lg("=",u));break;default:return!1}return!0}function bm(t){return t==="*"||t==="x"||t==="X"}function lg(t,n){return{operator:t,operand:n}}function PW(t,n){if(n.length===0)return!0;for(let a of n)if(N9(t,a))return!0;return!1}function N9(t,n){for(let a of n)if(!y$(t,a.operator,a.operand))return!1;return!0}function y$(t,n,a){let c=t.compareTo(a);switch(n){case"<":return c<0;case"<=":return c<=0;case">":return c>0;case">=":return c>=0;case"=":return c===0;default:return $.assertNever(n)}}function gte(t){return Cr(t,v$).join(" || ")||"*"}function v$(t){return Cr(t,yte).join(" ")}function yte(t){return`${t.operator}${t.operand}`}function NW(){if(rO())try{let{performance:t}=a0("perf_hooks");if(t)return{shouldWriteNativeEvents:!1,performance:t}}catch{}if(typeof performance=="object")return{shouldWriteNativeEvents:!0,performance}}function vte(){let t=NW();if(!t)return;let{shouldWriteNativeEvents:n,performance:a}=t,c={shouldWriteNativeEvents:n,performance:void 0,performanceTime:void 0};return typeof a.timeOrigin=="number"&&typeof a.now=="function"&&(c.performanceTime=a),c.performanceTime&&typeof a.mark=="function"&&typeof a.measure=="function"&&typeof a.clearMarks=="function"&&typeof a.clearMeasures=="function"&&(c.performance=a),c}var O9=vte(),F9=O9?.performanceTime;function nO(){return O9}var Ml=F9?()=>F9.now():Date.now,R9={};d(R9,{clearMarks:()=>T$,clearMeasures:()=>x$,createTimer:()=>iO,createTimerIf:()=>S$,disable:()=>B9,enable:()=>aO,forEachMark:()=>j9,forEachMeasure:()=>M9,getCount:()=>b$,getDuration:()=>fb,isEnabled:()=>wI,mark:()=>jl,measure:()=>Jm,nullTimer:()=>oO});var Py,db;function S$(t,n,a,c){return t?iO(n,a,c):oO}function iO(t,n,a){let c=0;return{enter:u,exit:_};function u(){++c===1&&jl(n)}function _(){--c===0?(jl(a),Jm(t,n,a)):c<0&&$.fail("enter/exit count does not match.")}}var oO={enter:zs,exit:zs},QD=!1,L9=Ml(),Z0=new Map,AI=new Map,$k=new Map;function jl(t){if(QD){let n=AI.get(t)??0;AI.set(t,n+1),Z0.set(t,Ml()),db?.mark(t),typeof onProfilerEvent=="function"&&onProfilerEvent(t)}}function Jm(t,n,a){if(QD){let c=(a!==void 0?Z0.get(a):void 0)??Ml(),u=(n!==void 0?Z0.get(n):void 0)??L9,_=$k.get(t)||0;$k.set(t,_+(c-u)),db?.measure(t,n,a)}}function b$(t){return AI.get(t)||0}function fb(t){return $k.get(t)||0}function M9(t){$k.forEach((n,a)=>t(a,n))}function j9(t){Z0.forEach((n,a)=>t(a))}function x$(t){t!==void 0?$k.delete(t):$k.clear(),db?.clearMeasures(t)}function T$(t){t!==void 0?(AI.delete(t),Z0.delete(t)):(AI.clear(),Z0.clear()),db?.clearMarks(t)}function wI(){return QD}function aO(t=f_){var n;return QD||(QD=!0,Py||(Py=nO()),Py?.performance&&(L9=Py.performance.timeOrigin,(Py.shouldWriteNativeEvents||(n=t?.cpuProfilingEnabled)!=null&&n.call(t)||t?.debugMode)&&(db=Py.performance))),!0}function B9(){QD&&(Z0.clear(),AI.clear(),$k.clear(),db=void 0,QD=!1)}var hi,II;(t=>{let n,a=0,c=0,u,_=[],f,y=[];function g(me,le,Oe){if($.assert(!hi,"Tracing already started"),n===void 0)try{n=a0("fs")}catch(Ae){throw new Error(`tracing requires having fs +(original error: ${Ae.message||Ae})`)}u=me,_.length=0,f===void 0&&(f=Xi(le,"legend.json")),n.existsSync(le)||n.mkdirSync(le,{recursive:!0});let be=u==="build"?`.${process.pid}-${++a}`:u==="server"?`.${process.pid}`:"",ue=Xi(le,`trace${be}.json`),De=Xi(le,`types${be}.json`);y.push({configFilePath:Oe,tracePath:ue,typesPath:De}),c=n.openSync(ue,"w"),hi=t;let Ce={cat:"__metadata",ph:"M",ts:1e3*Ml(),pid:1,tid:1};n.writeSync(c,`[ +`+[{name:"process_name",args:{name:"tsc"},...Ce},{name:"thread_name",args:{name:"Main"},...Ce},{name:"TracingStartedInBrowser",...Ce,cat:"disabled-by-default-devtools.timeline"}].map(Ae=>JSON.stringify(Ae)).join(`, +`))}t.startTracing=g;function k(){$.assert(hi,"Tracing is not in progress"),$.assert(!!_.length==(u!=="server")),n.writeSync(c,` +] +`),n.closeSync(c),hi=void 0,_.length?ae(_):y[y.length-1].typesPath=void 0}t.stopTracing=k;function T(me){u!=="server"&&_.push(me)}t.recordType=T;let C;(me=>{me.Parse="parse",me.Program="program",me.Bind="bind",me.Check="check",me.CheckTypes="checkTypes",me.Emit="emit",me.Session="session"})(C=t.Phase||(t.Phase={}));function O(me,le,Oe){Q("I",me,le,Oe,'"s":"g"')}t.instant=O;let F=[];function M(me,le,Oe,be=!1){be&&Q("B",me,le,Oe),F.push({phase:me,name:le,args:Oe,time:1e3*Ml(),separateBeginAndEnd:be})}t.push=M;function U(me){$.assert(F.length>0),Z(F.length-1,1e3*Ml(),me),F.length--}t.pop=U;function J(){let me=1e3*Ml();for(let le=F.length-1;le>=0;le--)Z(le,me);F.length=0}t.popAll=J;let G=1e3*10;function Z(me,le,Oe){let{phase:be,name:ue,args:De,time:Ce,separateBeginAndEnd:Ae}=F[me];Ae?($.assert(!Oe,"`results` are not supported for events with `separateBeginAndEnd`"),Q("E",be,ue,De,void 0,le)):G-Ce%G<=le-Ce&&Q("X",be,ue,{...De,results:Oe},`"dur":${le-Ce}`,Ce)}function Q(me,le,Oe,be,ue,De=1e3*Ml()){u==="server"&&le==="checkTypes"||(jl("beginTracing"),n.writeSync(c,`, +{"pid":1,"tid":1,"ph":"${me}","cat":"${le}","ts":${De},"name":"${Oe}"`),ue&&n.writeSync(c,`,${ue}`),be&&n.writeSync(c,`,"args":${JSON.stringify(be)}`),n.writeSync(c,"}"),jl("endTracing"),Jm("Tracing","beginTracing","endTracing"))}function re(me){let le=Pn(me);return le?{path:le.path,start:Oe(qs(le,me.pos)),end:Oe(qs(le,me.end))}:void 0;function Oe(be){return{line:be.line+1,character:be.character+1}}}function ae(me){var le,Oe,be,ue,De,Ce,Ae,Fe,Be,de,ze,ut,je,ve,Le,Ve,nt,It,ke;jl("beginDumpTypes");let _t=y[y.length-1].typesPath,Se=n.openSync(_t,"w"),tt=new Map;n.writeSync(Se,"[");let Qe=me.length;for(let We=0;WeOi.id),referenceLocation:re(oo.node)}}let Dr={};if(St.flags&16777216){let oo=St;Dr={conditionalCheckType:(Ce=oo.checkType)==null?void 0:Ce.id,conditionalExtendsType:(Ae=oo.extendsType)==null?void 0:Ae.id,conditionalTrueType:((Fe=oo.resolvedTrueType)==null?void 0:Fe.id)??-1,conditionalFalseType:((Be=oo.resolvedFalseType)==null?void 0:Be.id)??-1}}let Qn={};if(St.flags&33554432){let oo=St;Qn={substitutionBaseType:(de=oo.baseType)==null?void 0:de.id,constraintType:(ze=oo.constraint)==null?void 0:ze.id}}let Ko={};if(Kt&1024){let oo=St;Ko={reverseMappedSourceType:(ut=oo.source)==null?void 0:ut.id,reverseMappedMappedType:(je=oo.mappedType)==null?void 0:je.id,reverseMappedConstraintType:(ve=oo.constraintType)==null?void 0:ve.id}}let is={};if(Kt&256){let oo=St;is={evolvingArrayElementType:oo.elementType.id,evolvingArrayFinalType:(Le=oo.finalArrayType)==null?void 0:Le.id}}let sr,uo=St.checker.getRecursionIdentity(St);uo&&(sr=tt.get(uo),sr||(sr=tt.size,tt.set(uo,sr)));let Wa={id:St.id,intrinsicName:St.intrinsicName,symbolName:Sr?.escapedName&&oa(Sr.escapedName),recursionId:sr,isTuple:Kt&8?!0:void 0,unionTypes:St.flags&1048576?(Ve=St.types)==null?void 0:Ve.map(oo=>oo.id):void 0,intersectionTypes:St.flags&2097152?St.types.map(oo=>oo.id):void 0,aliasTypeArguments:(nt=St.aliasTypeArguments)==null?void 0:nt.map(oo=>oo.id),keyofType:St.flags&4194304?(It=St.type)==null?void 0:It.id:void 0,...Nn,...$t,...Dr,...Qn,...Ko,...is,destructuringPattern:re(St.pattern),firstDeclaration:re((ke=Sr?.declarations)==null?void 0:ke[0]),flags:$.formatTypeFlags(St.flags).split("|"),display:nn};n.writeSync(Se,JSON.stringify(Wa)),We(t[t.Unknown=0]="Unknown",t[t.EndOfFileToken=1]="EndOfFileToken",t[t.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",t[t.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",t[t.NewLineTrivia=4]="NewLineTrivia",t[t.WhitespaceTrivia=5]="WhitespaceTrivia",t[t.ShebangTrivia=6]="ShebangTrivia",t[t.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",t[t.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",t[t.NumericLiteral=9]="NumericLiteral",t[t.BigIntLiteral=10]="BigIntLiteral",t[t.StringLiteral=11]="StringLiteral",t[t.JsxText=12]="JsxText",t[t.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",t[t.RegularExpressionLiteral=14]="RegularExpressionLiteral",t[t.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",t[t.TemplateHead=16]="TemplateHead",t[t.TemplateMiddle=17]="TemplateMiddle",t[t.TemplateTail=18]="TemplateTail",t[t.OpenBraceToken=19]="OpenBraceToken",t[t.CloseBraceToken=20]="CloseBraceToken",t[t.OpenParenToken=21]="OpenParenToken",t[t.CloseParenToken=22]="CloseParenToken",t[t.OpenBracketToken=23]="OpenBracketToken",t[t.CloseBracketToken=24]="CloseBracketToken",t[t.DotToken=25]="DotToken",t[t.DotDotDotToken=26]="DotDotDotToken",t[t.SemicolonToken=27]="SemicolonToken",t[t.CommaToken=28]="CommaToken",t[t.QuestionDotToken=29]="QuestionDotToken",t[t.LessThanToken=30]="LessThanToken",t[t.LessThanSlashToken=31]="LessThanSlashToken",t[t.GreaterThanToken=32]="GreaterThanToken",t[t.LessThanEqualsToken=33]="LessThanEqualsToken",t[t.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",t[t.EqualsEqualsToken=35]="EqualsEqualsToken",t[t.ExclamationEqualsToken=36]="ExclamationEqualsToken",t[t.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",t[t.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",t[t.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",t[t.PlusToken=40]="PlusToken",t[t.MinusToken=41]="MinusToken",t[t.AsteriskToken=42]="AsteriskToken",t[t.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",t[t.SlashToken=44]="SlashToken",t[t.PercentToken=45]="PercentToken",t[t.PlusPlusToken=46]="PlusPlusToken",t[t.MinusMinusToken=47]="MinusMinusToken",t[t.LessThanLessThanToken=48]="LessThanLessThanToken",t[t.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",t[t.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",t[t.AmpersandToken=51]="AmpersandToken",t[t.BarToken=52]="BarToken",t[t.CaretToken=53]="CaretToken",t[t.ExclamationToken=54]="ExclamationToken",t[t.TildeToken=55]="TildeToken",t[t.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",t[t.BarBarToken=57]="BarBarToken",t[t.QuestionToken=58]="QuestionToken",t[t.ColonToken=59]="ColonToken",t[t.AtToken=60]="AtToken",t[t.QuestionQuestionToken=61]="QuestionQuestionToken",t[t.BacktickToken=62]="BacktickToken",t[t.HashToken=63]="HashToken",t[t.EqualsToken=64]="EqualsToken",t[t.PlusEqualsToken=65]="PlusEqualsToken",t[t.MinusEqualsToken=66]="MinusEqualsToken",t[t.AsteriskEqualsToken=67]="AsteriskEqualsToken",t[t.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",t[t.SlashEqualsToken=69]="SlashEqualsToken",t[t.PercentEqualsToken=70]="PercentEqualsToken",t[t.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",t[t.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",t[t.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",t[t.AmpersandEqualsToken=74]="AmpersandEqualsToken",t[t.BarEqualsToken=75]="BarEqualsToken",t[t.BarBarEqualsToken=76]="BarBarEqualsToken",t[t.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",t[t.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",t[t.CaretEqualsToken=79]="CaretEqualsToken",t[t.Identifier=80]="Identifier",t[t.PrivateIdentifier=81]="PrivateIdentifier",t[t.JSDocCommentTextToken=82]="JSDocCommentTextToken",t[t.BreakKeyword=83]="BreakKeyword",t[t.CaseKeyword=84]="CaseKeyword",t[t.CatchKeyword=85]="CatchKeyword",t[t.ClassKeyword=86]="ClassKeyword",t[t.ConstKeyword=87]="ConstKeyword",t[t.ContinueKeyword=88]="ContinueKeyword",t[t.DebuggerKeyword=89]="DebuggerKeyword",t[t.DefaultKeyword=90]="DefaultKeyword",t[t.DeleteKeyword=91]="DeleteKeyword",t[t.DoKeyword=92]="DoKeyword",t[t.ElseKeyword=93]="ElseKeyword",t[t.EnumKeyword=94]="EnumKeyword",t[t.ExportKeyword=95]="ExportKeyword",t[t.ExtendsKeyword=96]="ExtendsKeyword",t[t.FalseKeyword=97]="FalseKeyword",t[t.FinallyKeyword=98]="FinallyKeyword",t[t.ForKeyword=99]="ForKeyword",t[t.FunctionKeyword=100]="FunctionKeyword",t[t.IfKeyword=101]="IfKeyword",t[t.ImportKeyword=102]="ImportKeyword",t[t.InKeyword=103]="InKeyword",t[t.InstanceOfKeyword=104]="InstanceOfKeyword",t[t.NewKeyword=105]="NewKeyword",t[t.NullKeyword=106]="NullKeyword",t[t.ReturnKeyword=107]="ReturnKeyword",t[t.SuperKeyword=108]="SuperKeyword",t[t.SwitchKeyword=109]="SwitchKeyword",t[t.ThisKeyword=110]="ThisKeyword",t[t.ThrowKeyword=111]="ThrowKeyword",t[t.TrueKeyword=112]="TrueKeyword",t[t.TryKeyword=113]="TryKeyword",t[t.TypeOfKeyword=114]="TypeOfKeyword",t[t.VarKeyword=115]="VarKeyword",t[t.VoidKeyword=116]="VoidKeyword",t[t.WhileKeyword=117]="WhileKeyword",t[t.WithKeyword=118]="WithKeyword",t[t.ImplementsKeyword=119]="ImplementsKeyword",t[t.InterfaceKeyword=120]="InterfaceKeyword",t[t.LetKeyword=121]="LetKeyword",t[t.PackageKeyword=122]="PackageKeyword",t[t.PrivateKeyword=123]="PrivateKeyword",t[t.ProtectedKeyword=124]="ProtectedKeyword",t[t.PublicKeyword=125]="PublicKeyword",t[t.StaticKeyword=126]="StaticKeyword",t[t.YieldKeyword=127]="YieldKeyword",t[t.AbstractKeyword=128]="AbstractKeyword",t[t.AccessorKeyword=129]="AccessorKeyword",t[t.AsKeyword=130]="AsKeyword",t[t.AssertsKeyword=131]="AssertsKeyword",t[t.AssertKeyword=132]="AssertKeyword",t[t.AnyKeyword=133]="AnyKeyword",t[t.AsyncKeyword=134]="AsyncKeyword",t[t.AwaitKeyword=135]="AwaitKeyword",t[t.BooleanKeyword=136]="BooleanKeyword",t[t.ConstructorKeyword=137]="ConstructorKeyword",t[t.DeclareKeyword=138]="DeclareKeyword",t[t.GetKeyword=139]="GetKeyword",t[t.InferKeyword=140]="InferKeyword",t[t.IntrinsicKeyword=141]="IntrinsicKeyword",t[t.IsKeyword=142]="IsKeyword",t[t.KeyOfKeyword=143]="KeyOfKeyword",t[t.ModuleKeyword=144]="ModuleKeyword",t[t.NamespaceKeyword=145]="NamespaceKeyword",t[t.NeverKeyword=146]="NeverKeyword",t[t.OutKeyword=147]="OutKeyword",t[t.ReadonlyKeyword=148]="ReadonlyKeyword",t[t.RequireKeyword=149]="RequireKeyword",t[t.NumberKeyword=150]="NumberKeyword",t[t.ObjectKeyword=151]="ObjectKeyword",t[t.SatisfiesKeyword=152]="SatisfiesKeyword",t[t.SetKeyword=153]="SetKeyword",t[t.StringKeyword=154]="StringKeyword",t[t.SymbolKeyword=155]="SymbolKeyword",t[t.TypeKeyword=156]="TypeKeyword",t[t.UndefinedKeyword=157]="UndefinedKeyword",t[t.UniqueKeyword=158]="UniqueKeyword",t[t.UnknownKeyword=159]="UnknownKeyword",t[t.UsingKeyword=160]="UsingKeyword",t[t.FromKeyword=161]="FromKeyword",t[t.GlobalKeyword=162]="GlobalKeyword",t[t.BigIntKeyword=163]="BigIntKeyword",t[t.OverrideKeyword=164]="OverrideKeyword",t[t.OfKeyword=165]="OfKeyword",t[t.DeferKeyword=166]="DeferKeyword",t[t.QualifiedName=167]="QualifiedName",t[t.ComputedPropertyName=168]="ComputedPropertyName",t[t.TypeParameter=169]="TypeParameter",t[t.Parameter=170]="Parameter",t[t.Decorator=171]="Decorator",t[t.PropertySignature=172]="PropertySignature",t[t.PropertyDeclaration=173]="PropertyDeclaration",t[t.MethodSignature=174]="MethodSignature",t[t.MethodDeclaration=175]="MethodDeclaration",t[t.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",t[t.Constructor=177]="Constructor",t[t.GetAccessor=178]="GetAccessor",t[t.SetAccessor=179]="SetAccessor",t[t.CallSignature=180]="CallSignature",t[t.ConstructSignature=181]="ConstructSignature",t[t.IndexSignature=182]="IndexSignature",t[t.TypePredicate=183]="TypePredicate",t[t.TypeReference=184]="TypeReference",t[t.FunctionType=185]="FunctionType",t[t.ConstructorType=186]="ConstructorType",t[t.TypeQuery=187]="TypeQuery",t[t.TypeLiteral=188]="TypeLiteral",t[t.ArrayType=189]="ArrayType",t[t.TupleType=190]="TupleType",t[t.OptionalType=191]="OptionalType",t[t.RestType=192]="RestType",t[t.UnionType=193]="UnionType",t[t.IntersectionType=194]="IntersectionType",t[t.ConditionalType=195]="ConditionalType",t[t.InferType=196]="InferType",t[t.ParenthesizedType=197]="ParenthesizedType",t[t.ThisType=198]="ThisType",t[t.TypeOperator=199]="TypeOperator",t[t.IndexedAccessType=200]="IndexedAccessType",t[t.MappedType=201]="MappedType",t[t.LiteralType=202]="LiteralType",t[t.NamedTupleMember=203]="NamedTupleMember",t[t.TemplateLiteralType=204]="TemplateLiteralType",t[t.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",t[t.ImportType=206]="ImportType",t[t.ObjectBindingPattern=207]="ObjectBindingPattern",t[t.ArrayBindingPattern=208]="ArrayBindingPattern",t[t.BindingElement=209]="BindingElement",t[t.ArrayLiteralExpression=210]="ArrayLiteralExpression",t[t.ObjectLiteralExpression=211]="ObjectLiteralExpression",t[t.PropertyAccessExpression=212]="PropertyAccessExpression",t[t.ElementAccessExpression=213]="ElementAccessExpression",t[t.CallExpression=214]="CallExpression",t[t.NewExpression=215]="NewExpression",t[t.TaggedTemplateExpression=216]="TaggedTemplateExpression",t[t.TypeAssertionExpression=217]="TypeAssertionExpression",t[t.ParenthesizedExpression=218]="ParenthesizedExpression",t[t.FunctionExpression=219]="FunctionExpression",t[t.ArrowFunction=220]="ArrowFunction",t[t.DeleteExpression=221]="DeleteExpression",t[t.TypeOfExpression=222]="TypeOfExpression",t[t.VoidExpression=223]="VoidExpression",t[t.AwaitExpression=224]="AwaitExpression",t[t.PrefixUnaryExpression=225]="PrefixUnaryExpression",t[t.PostfixUnaryExpression=226]="PostfixUnaryExpression",t[t.BinaryExpression=227]="BinaryExpression",t[t.ConditionalExpression=228]="ConditionalExpression",t[t.TemplateExpression=229]="TemplateExpression",t[t.YieldExpression=230]="YieldExpression",t[t.SpreadElement=231]="SpreadElement",t[t.ClassExpression=232]="ClassExpression",t[t.OmittedExpression=233]="OmittedExpression",t[t.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",t[t.AsExpression=235]="AsExpression",t[t.NonNullExpression=236]="NonNullExpression",t[t.MetaProperty=237]="MetaProperty",t[t.SyntheticExpression=238]="SyntheticExpression",t[t.SatisfiesExpression=239]="SatisfiesExpression",t[t.TemplateSpan=240]="TemplateSpan",t[t.SemicolonClassElement=241]="SemicolonClassElement",t[t.Block=242]="Block",t[t.EmptyStatement=243]="EmptyStatement",t[t.VariableStatement=244]="VariableStatement",t[t.ExpressionStatement=245]="ExpressionStatement",t[t.IfStatement=246]="IfStatement",t[t.DoStatement=247]="DoStatement",t[t.WhileStatement=248]="WhileStatement",t[t.ForStatement=249]="ForStatement",t[t.ForInStatement=250]="ForInStatement",t[t.ForOfStatement=251]="ForOfStatement",t[t.ContinueStatement=252]="ContinueStatement",t[t.BreakStatement=253]="BreakStatement",t[t.ReturnStatement=254]="ReturnStatement",t[t.WithStatement=255]="WithStatement",t[t.SwitchStatement=256]="SwitchStatement",t[t.LabeledStatement=257]="LabeledStatement",t[t.ThrowStatement=258]="ThrowStatement",t[t.TryStatement=259]="TryStatement",t[t.DebuggerStatement=260]="DebuggerStatement",t[t.VariableDeclaration=261]="VariableDeclaration",t[t.VariableDeclarationList=262]="VariableDeclarationList",t[t.FunctionDeclaration=263]="FunctionDeclaration",t[t.ClassDeclaration=264]="ClassDeclaration",t[t.InterfaceDeclaration=265]="InterfaceDeclaration",t[t.TypeAliasDeclaration=266]="TypeAliasDeclaration",t[t.EnumDeclaration=267]="EnumDeclaration",t[t.ModuleDeclaration=268]="ModuleDeclaration",t[t.ModuleBlock=269]="ModuleBlock",t[t.CaseBlock=270]="CaseBlock",t[t.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",t[t.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",t[t.ImportDeclaration=273]="ImportDeclaration",t[t.ImportClause=274]="ImportClause",t[t.NamespaceImport=275]="NamespaceImport",t[t.NamedImports=276]="NamedImports",t[t.ImportSpecifier=277]="ImportSpecifier",t[t.ExportAssignment=278]="ExportAssignment",t[t.ExportDeclaration=279]="ExportDeclaration",t[t.NamedExports=280]="NamedExports",t[t.NamespaceExport=281]="NamespaceExport",t[t.ExportSpecifier=282]="ExportSpecifier",t[t.MissingDeclaration=283]="MissingDeclaration",t[t.ExternalModuleReference=284]="ExternalModuleReference",t[t.JsxElement=285]="JsxElement",t[t.JsxSelfClosingElement=286]="JsxSelfClosingElement",t[t.JsxOpeningElement=287]="JsxOpeningElement",t[t.JsxClosingElement=288]="JsxClosingElement",t[t.JsxFragment=289]="JsxFragment",t[t.JsxOpeningFragment=290]="JsxOpeningFragment",t[t.JsxClosingFragment=291]="JsxClosingFragment",t[t.JsxAttribute=292]="JsxAttribute",t[t.JsxAttributes=293]="JsxAttributes",t[t.JsxSpreadAttribute=294]="JsxSpreadAttribute",t[t.JsxExpression=295]="JsxExpression",t[t.JsxNamespacedName=296]="JsxNamespacedName",t[t.CaseClause=297]="CaseClause",t[t.DefaultClause=298]="DefaultClause",t[t.HeritageClause=299]="HeritageClause",t[t.CatchClause=300]="CatchClause",t[t.ImportAttributes=301]="ImportAttributes",t[t.ImportAttribute=302]="ImportAttribute",t[t.AssertClause=301]="AssertClause",t[t.AssertEntry=302]="AssertEntry",t[t.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",t[t.PropertyAssignment=304]="PropertyAssignment",t[t.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",t[t.SpreadAssignment=306]="SpreadAssignment",t[t.EnumMember=307]="EnumMember",t[t.SourceFile=308]="SourceFile",t[t.Bundle=309]="Bundle",t[t.JSDocTypeExpression=310]="JSDocTypeExpression",t[t.JSDocNameReference=311]="JSDocNameReference",t[t.JSDocMemberName=312]="JSDocMemberName",t[t.JSDocAllType=313]="JSDocAllType",t[t.JSDocUnknownType=314]="JSDocUnknownType",t[t.JSDocNullableType=315]="JSDocNullableType",t[t.JSDocNonNullableType=316]="JSDocNonNullableType",t[t.JSDocOptionalType=317]="JSDocOptionalType",t[t.JSDocFunctionType=318]="JSDocFunctionType",t[t.JSDocVariadicType=319]="JSDocVariadicType",t[t.JSDocNamepathType=320]="JSDocNamepathType",t[t.JSDoc=321]="JSDoc",t[t.JSDocComment=321]="JSDocComment",t[t.JSDocText=322]="JSDocText",t[t.JSDocTypeLiteral=323]="JSDocTypeLiteral",t[t.JSDocSignature=324]="JSDocSignature",t[t.JSDocLink=325]="JSDocLink",t[t.JSDocLinkCode=326]="JSDocLinkCode",t[t.JSDocLinkPlain=327]="JSDocLinkPlain",t[t.JSDocTag=328]="JSDocTag",t[t.JSDocAugmentsTag=329]="JSDocAugmentsTag",t[t.JSDocImplementsTag=330]="JSDocImplementsTag",t[t.JSDocAuthorTag=331]="JSDocAuthorTag",t[t.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",t[t.JSDocClassTag=333]="JSDocClassTag",t[t.JSDocPublicTag=334]="JSDocPublicTag",t[t.JSDocPrivateTag=335]="JSDocPrivateTag",t[t.JSDocProtectedTag=336]="JSDocProtectedTag",t[t.JSDocReadonlyTag=337]="JSDocReadonlyTag",t[t.JSDocOverrideTag=338]="JSDocOverrideTag",t[t.JSDocCallbackTag=339]="JSDocCallbackTag",t[t.JSDocOverloadTag=340]="JSDocOverloadTag",t[t.JSDocEnumTag=341]="JSDocEnumTag",t[t.JSDocParameterTag=342]="JSDocParameterTag",t[t.JSDocReturnTag=343]="JSDocReturnTag",t[t.JSDocThisTag=344]="JSDocThisTag",t[t.JSDocTypeTag=345]="JSDocTypeTag",t[t.JSDocTemplateTag=346]="JSDocTemplateTag",t[t.JSDocTypedefTag=347]="JSDocTypedefTag",t[t.JSDocSeeTag=348]="JSDocSeeTag",t[t.JSDocPropertyTag=349]="JSDocPropertyTag",t[t.JSDocThrowsTag=350]="JSDocThrowsTag",t[t.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",t[t.JSDocImportTag=352]="JSDocImportTag",t[t.SyntaxList=353]="SyntaxList",t[t.NotEmittedStatement=354]="NotEmittedStatement",t[t.NotEmittedTypeElement=355]="NotEmittedTypeElement",t[t.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",t[t.CommaListExpression=357]="CommaListExpression",t[t.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",t[t.Count=359]="Count",t[t.FirstAssignment=64]="FirstAssignment",t[t.LastAssignment=79]="LastAssignment",t[t.FirstCompoundAssignment=65]="FirstCompoundAssignment",t[t.LastCompoundAssignment=79]="LastCompoundAssignment",t[t.FirstReservedWord=83]="FirstReservedWord",t[t.LastReservedWord=118]="LastReservedWord",t[t.FirstKeyword=83]="FirstKeyword",t[t.LastKeyword=166]="LastKeyword",t[t.FirstFutureReservedWord=119]="FirstFutureReservedWord",t[t.LastFutureReservedWord=127]="LastFutureReservedWord",t[t.FirstTypeNode=183]="FirstTypeNode",t[t.LastTypeNode=206]="LastTypeNode",t[t.FirstPunctuation=19]="FirstPunctuation",t[t.LastPunctuation=79]="LastPunctuation",t[t.FirstToken=0]="FirstToken",t[t.LastToken=166]="LastToken",t[t.FirstTriviaToken=2]="FirstTriviaToken",t[t.LastTriviaToken=7]="LastTriviaToken",t[t.FirstLiteralToken=9]="FirstLiteralToken",t[t.LastLiteralToken=15]="LastLiteralToken",t[t.FirstTemplateToken=15]="FirstTemplateToken",t[t.LastTemplateToken=18]="LastTemplateToken",t[t.FirstBinaryOperator=30]="FirstBinaryOperator",t[t.LastBinaryOperator=79]="LastBinaryOperator",t[t.FirstStatement=244]="FirstStatement",t[t.LastStatement=260]="LastStatement",t[t.FirstNode=167]="FirstNode",t[t.FirstJSDocNode=310]="FirstJSDocNode",t[t.LastJSDocNode=352]="LastJSDocNode",t[t.FirstJSDocTagNode=328]="FirstJSDocTagNode",t[t.LastJSDocTagNode=352]="LastJSDocTagNode",t[t.FirstContextualKeyword=128]="FirstContextualKeyword",t[t.LastContextualKeyword=166]="LastContextualKeyword",t))(z9||{}),sO=(t=>(t[t.None=0]="None",t[t.Let=1]="Let",t[t.Const=2]="Const",t[t.Using=4]="Using",t[t.AwaitUsing=6]="AwaitUsing",t[t.NestedNamespace=8]="NestedNamespace",t[t.Synthesized=16]="Synthesized",t[t.Namespace=32]="Namespace",t[t.OptionalChain=64]="OptionalChain",t[t.ExportContext=128]="ExportContext",t[t.ContainsThis=256]="ContainsThis",t[t.HasImplicitReturn=512]="HasImplicitReturn",t[t.HasExplicitReturn=1024]="HasExplicitReturn",t[t.GlobalAugmentation=2048]="GlobalAugmentation",t[t.HasAsyncFunctions=4096]="HasAsyncFunctions",t[t.DisallowInContext=8192]="DisallowInContext",t[t.YieldContext=16384]="YieldContext",t[t.DecoratorContext=32768]="DecoratorContext",t[t.AwaitContext=65536]="AwaitContext",t[t.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",t[t.ThisNodeHasError=262144]="ThisNodeHasError",t[t.JavaScriptFile=524288]="JavaScriptFile",t[t.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",t[t.HasAggregatedChildData=2097152]="HasAggregatedChildData",t[t.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",t[t.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",t[t.JSDoc=16777216]="JSDoc",t[t.Ambient=33554432]="Ambient",t[t.InWithStatement=67108864]="InWithStatement",t[t.JsonFile=134217728]="JsonFile",t[t.TypeCached=268435456]="TypeCached",t[t.Deprecated=536870912]="Deprecated",t[t.BlockScoped=7]="BlockScoped",t[t.Constant=6]="Constant",t[t.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",t[t.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",t[t.ContextFlags=101441536]="ContextFlags",t[t.TypeExcludesFlags=81920]="TypeExcludesFlags",t[t.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",t[t.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",t[t.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",t))(sO||{}),cO=(t=>(t[t.None=0]="None",t[t.Public=1]="Public",t[t.Private=2]="Private",t[t.Protected=4]="Protected",t[t.Readonly=8]="Readonly",t[t.Override=16]="Override",t[t.Export=32]="Export",t[t.Abstract=64]="Abstract",t[t.Ambient=128]="Ambient",t[t.Static=256]="Static",t[t.Accessor=512]="Accessor",t[t.Async=1024]="Async",t[t.Default=2048]="Default",t[t.Const=4096]="Const",t[t.In=8192]="In",t[t.Out=16384]="Out",t[t.Decorator=32768]="Decorator",t[t.Deprecated=65536]="Deprecated",t[t.JSDocPublic=8388608]="JSDocPublic",t[t.JSDocPrivate=16777216]="JSDocPrivate",t[t.JSDocProtected=33554432]="JSDocProtected",t[t.JSDocReadonly=67108864]="JSDocReadonly",t[t.JSDocOverride=134217728]="JSDocOverride",t[t.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",t[t.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",t[t.SyntacticModifiers=65535]="SyntacticModifiers",t[t.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",t[t.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",t[t.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",t[t.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",t[t.HasComputedFlags=536870912]="HasComputedFlags",t[t.AccessibilityModifier=7]="AccessibilityModifier",t[t.ParameterPropertyModifier=31]="ParameterPropertyModifier",t[t.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",t[t.TypeScriptModifier=28895]="TypeScriptModifier",t[t.ExportDefault=2080]="ExportDefault",t[t.All=131071]="All",t[t.Modifier=98303]="Modifier",t))(cO||{}),lO=(t=>(t[t.None=0]="None",t[t.IntrinsicNamedElement=1]="IntrinsicNamedElement",t[t.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",t[t.IntrinsicElement=3]="IntrinsicElement",t))(lO||{}),q9=(t=>(t[t.None=0]="None",t[t.Succeeded=1]="Succeeded",t[t.Failed=2]="Failed",t[t.ReportsUnmeasurable=8]="ReportsUnmeasurable",t[t.ReportsUnreliable=16]="ReportsUnreliable",t[t.ReportsMask=24]="ReportsMask",t[t.ComplexityOverflow=32]="ComplexityOverflow",t[t.StackDepthOverflow=64]="StackDepthOverflow",t[t.Overflow=96]="Overflow",t))(q9||{}),J9=(t=>(t[t.None=0]="None",t[t.Always=1]="Always",t[t.Never=2]="Never",t[t.Sometimes=3]="Sometimes",t))(J9||{}),V9=(t=>(t[t.None=0]="None",t[t.Auto=1]="Auto",t[t.Loop=2]="Loop",t[t.Unique=3]="Unique",t[t.Node=4]="Node",t[t.KindMask=7]="KindMask",t[t.ReservedInNestedScopes=8]="ReservedInNestedScopes",t[t.Optimistic=16]="Optimistic",t[t.FileLevel=32]="FileLevel",t[t.AllowNameSubstitution=64]="AllowNameSubstitution",t))(V9||{}),W9=(t=>(t[t.None=0]="None",t[t.HasIndices=1]="HasIndices",t[t.Global=2]="Global",t[t.IgnoreCase=4]="IgnoreCase",t[t.Multiline=8]="Multiline",t[t.DotAll=16]="DotAll",t[t.Unicode=32]="Unicode",t[t.UnicodeSets=64]="UnicodeSets",t[t.Sticky=128]="Sticky",t[t.AnyUnicodeMode=96]="AnyUnicodeMode",t[t.Modifiers=28]="Modifiers",t))(W9||{}),E$=(t=>(t[t.None=0]="None",t[t.PrecedingLineBreak=1]="PrecedingLineBreak",t[t.PrecedingJSDocComment=2]="PrecedingJSDocComment",t[t.Unterminated=4]="Unterminated",t[t.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",t[t.Scientific=16]="Scientific",t[t.Octal=32]="Octal",t[t.HexSpecifier=64]="HexSpecifier",t[t.BinarySpecifier=128]="BinarySpecifier",t[t.OctalSpecifier=256]="OctalSpecifier",t[t.ContainsSeparator=512]="ContainsSeparator",t[t.UnicodeEscape=1024]="UnicodeEscape",t[t.ContainsInvalidEscape=2048]="ContainsInvalidEscape",t[t.HexEscape=4096]="HexEscape",t[t.ContainsLeadingZero=8192]="ContainsLeadingZero",t[t.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",t[t.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",t[t.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",t[t.WithSpecifier=448]="WithSpecifier",t[t.StringLiteralFlags=7176]="StringLiteralFlags",t[t.NumericLiteralFlags=25584]="NumericLiteralFlags",t[t.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",t[t.IsInvalid=26656]="IsInvalid",t))(E$||{}),PI=(t=>(t[t.Unreachable=1]="Unreachable",t[t.Start=2]="Start",t[t.BranchLabel=4]="BranchLabel",t[t.LoopLabel=8]="LoopLabel",t[t.Assignment=16]="Assignment",t[t.TrueCondition=32]="TrueCondition",t[t.FalseCondition=64]="FalseCondition",t[t.SwitchClause=128]="SwitchClause",t[t.ArrayMutation=256]="ArrayMutation",t[t.Call=512]="Call",t[t.ReduceLabel=1024]="ReduceLabel",t[t.Referenced=2048]="Referenced",t[t.Shared=4096]="Shared",t[t.Label=12]="Label",t[t.Condition=96]="Condition",t))(PI||{}),G9=(t=>(t[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore",t))(G9||{}),Uk=class{},H9=(t=>(t[t.RootFile=0]="RootFile",t[t.SourceFromProjectReference=1]="SourceFromProjectReference",t[t.OutputFromProjectReference=2]="OutputFromProjectReference",t[t.Import=3]="Import",t[t.ReferenceFile=4]="ReferenceFile",t[t.TypeReferenceDirective=5]="TypeReferenceDirective",t[t.LibFile=6]="LibFile",t[t.LibReferenceDirective=7]="LibReferenceDirective",t[t.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",t))(H9||{}),uO=(t=>(t[t.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",t[t.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",t[t.ResolutionDiagnostics=2]="ResolutionDiagnostics",t))(uO||{}),K9=(t=>(t[t.Js=0]="Js",t[t.Dts=1]="Dts",t[t.BuilderSignature=2]="BuilderSignature",t))(K9||{}),d4=(t=>(t[t.Not=0]="Not",t[t.SafeModules=1]="SafeModules",t[t.Completely=2]="Completely",t))(d4||{}),ZD=(t=>(t[t.Success=0]="Success",t[t.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",t[t.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",t[t.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",t[t.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",t))(ZD||{}),Q9=(t=>(t[t.Ok=0]="Ok",t[t.NeedsOverride=1]="NeedsOverride",t[t.HasInvalidOverride=2]="HasInvalidOverride",t))(Q9||{}),Z9=(t=>(t[t.None=0]="None",t[t.Literal=1]="Literal",t[t.Subtype=2]="Subtype",t))(Z9||{}),X9=(t=>(t[t.None=0]="None",t[t.NoSupertypeReduction=1]="NoSupertypeReduction",t[t.NoConstraintReduction=2]="NoConstraintReduction",t))(X9||{}),k$=(t=>(t[t.None=0]="None",t[t.Signature=1]="Signature",t[t.NoConstraints=2]="NoConstraints",t[t.Completions=4]="Completions",t[t.SkipBindingPatterns=8]="SkipBindingPatterns",t))(k$||{}),Y9=(t=>(t[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.OmitThisParameter=33554432]="OmitThisParameter",t[t.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",t[t.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",t[t.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",t[t.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",t[t.AllowEmptyTuple=524288]="AllowEmptyTuple",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",t[t.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",t[t.IgnoreErrors=70221824]="IgnoreErrors",t[t.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.InInitialEntityName=16777216]="InInitialEntityName",t))(Y9||{}),C$=(t=>(t[t.None=0]="None",t[t.WriteComputedProps=1]="WriteComputedProps",t[t.NoSyntacticPrinter=2]="NoSyntacticPrinter",t[t.DoNotIncludeSymbolChain=4]="DoNotIncludeSymbolChain",t[t.AllowUnresolvedNames=8]="AllowUnresolvedNames",t))(C$||{}),eR=(t=>(t[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.OmitThisParameter=33554432]="OmitThisParameter",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AddUndefined=131072]="AddUndefined",t[t.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",t[t.InArrayType=524288]="InArrayType",t[t.InElementType=2097152]="InElementType",t[t.InFirstTypeArgument=4194304]="InFirstTypeArgument",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",t))(eR||{}),f4=(t=>(t[t.None=0]="None",t[t.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",t[t.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",t[t.AllowAnyNodeKind=4]="AllowAnyNodeKind",t[t.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",t[t.WriteComputedProps=16]="WriteComputedProps",t[t.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",t))(f4||{}),tR=(t=>(t[t.Accessible=0]="Accessible",t[t.NotAccessible=1]="NotAccessible",t[t.CannotBeNamed=2]="CannotBeNamed",t[t.NotResolved=3]="NotResolved",t))(tR||{}),pO=(t=>(t[t.This=0]="This",t[t.Identifier=1]="Identifier",t[t.AssertsThis=2]="AssertsThis",t[t.AssertsIdentifier=3]="AssertsIdentifier",t))(pO||{}),D$=(t=>(t[t.Unknown=0]="Unknown",t[t.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",t[t.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",t[t.NumberLikeType=3]="NumberLikeType",t[t.BigIntLikeType=4]="BigIntLikeType",t[t.StringLikeType=5]="StringLikeType",t[t.BooleanType=6]="BooleanType",t[t.ArrayLikeType=7]="ArrayLikeType",t[t.ESSymbolType=8]="ESSymbolType",t[t.Promise=9]="Promise",t[t.TypeWithCallSignature=10]="TypeWithCallSignature",t[t.ObjectType=11]="ObjectType",t))(D$||{}),_O=(t=>(t[t.None=0]="None",t[t.FunctionScopedVariable=1]="FunctionScopedVariable",t[t.BlockScopedVariable=2]="BlockScopedVariable",t[t.Property=4]="Property",t[t.EnumMember=8]="EnumMember",t[t.Function=16]="Function",t[t.Class=32]="Class",t[t.Interface=64]="Interface",t[t.ConstEnum=128]="ConstEnum",t[t.RegularEnum=256]="RegularEnum",t[t.ValueModule=512]="ValueModule",t[t.NamespaceModule=1024]="NamespaceModule",t[t.TypeLiteral=2048]="TypeLiteral",t[t.ObjectLiteral=4096]="ObjectLiteral",t[t.Method=8192]="Method",t[t.Constructor=16384]="Constructor",t[t.GetAccessor=32768]="GetAccessor",t[t.SetAccessor=65536]="SetAccessor",t[t.Signature=131072]="Signature",t[t.TypeParameter=262144]="TypeParameter",t[t.TypeAlias=524288]="TypeAlias",t[t.ExportValue=1048576]="ExportValue",t[t.Alias=2097152]="Alias",t[t.Prototype=4194304]="Prototype",t[t.ExportStar=8388608]="ExportStar",t[t.Optional=16777216]="Optional",t[t.Transient=33554432]="Transient",t[t.Assignment=67108864]="Assignment",t[t.ModuleExports=134217728]="ModuleExports",t[t.All=-1]="All",t[t.Enum=384]="Enum",t[t.Variable=3]="Variable",t[t.Value=111551]="Value",t[t.Type=788968]="Type",t[t.Namespace=1920]="Namespace",t[t.Module=1536]="Module",t[t.Accessor=98304]="Accessor",t[t.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",t[t.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",t[t.ParameterExcludes=111551]="ParameterExcludes",t[t.PropertyExcludes=0]="PropertyExcludes",t[t.EnumMemberExcludes=900095]="EnumMemberExcludes",t[t.FunctionExcludes=110991]="FunctionExcludes",t[t.ClassExcludes=899503]="ClassExcludes",t[t.InterfaceExcludes=788872]="InterfaceExcludes",t[t.RegularEnumExcludes=899327]="RegularEnumExcludes",t[t.ConstEnumExcludes=899967]="ConstEnumExcludes",t[t.ValueModuleExcludes=110735]="ValueModuleExcludes",t[t.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",t[t.MethodExcludes=103359]="MethodExcludes",t[t.GetAccessorExcludes=46015]="GetAccessorExcludes",t[t.SetAccessorExcludes=78783]="SetAccessorExcludes",t[t.AccessorExcludes=13247]="AccessorExcludes",t[t.TypeParameterExcludes=526824]="TypeParameterExcludes",t[t.TypeAliasExcludes=788968]="TypeAliasExcludes",t[t.AliasExcludes=2097152]="AliasExcludes",t[t.ModuleMember=2623475]="ModuleMember",t[t.ExportHasLocal=944]="ExportHasLocal",t[t.BlockScoped=418]="BlockScoped",t[t.PropertyOrAccessor=98308]="PropertyOrAccessor",t[t.ClassMember=106500]="ClassMember",t[t.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",t[t.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",t[t.Classifiable=2885600]="Classifiable",t[t.LateBindingContainer=6256]="LateBindingContainer",t))(_O||{}),dO=(t=>(t[t.None=0]="None",t[t.Instantiated=1]="Instantiated",t[t.SyntheticProperty=2]="SyntheticProperty",t[t.SyntheticMethod=4]="SyntheticMethod",t[t.Readonly=8]="Readonly",t[t.ReadPartial=16]="ReadPartial",t[t.WritePartial=32]="WritePartial",t[t.HasNonUniformType=64]="HasNonUniformType",t[t.HasLiteralType=128]="HasLiteralType",t[t.ContainsPublic=256]="ContainsPublic",t[t.ContainsProtected=512]="ContainsProtected",t[t.ContainsPrivate=1024]="ContainsPrivate",t[t.ContainsStatic=2048]="ContainsStatic",t[t.Late=4096]="Late",t[t.ReverseMapped=8192]="ReverseMapped",t[t.OptionalParameter=16384]="OptionalParameter",t[t.RestParameter=32768]="RestParameter",t[t.DeferredType=65536]="DeferredType",t[t.HasNeverType=131072]="HasNeverType",t[t.Mapped=262144]="Mapped",t[t.StripOptional=524288]="StripOptional",t[t.Unresolved=1048576]="Unresolved",t[t.Synthetic=6]="Synthetic",t[t.Discriminant=192]="Discriminant",t[t.Partial=48]="Partial",t))(dO||{}),A$=(t=>(t.Call="__call",t.Constructor="__constructor",t.New="__new",t.Index="__index",t.ExportStar="__export",t.Global="__global",t.Missing="__missing",t.Type="__type",t.Object="__object",t.JSXAttributes="__jsxAttributes",t.Class="__class",t.Function="__function",t.Computed="__computed",t.Resolving="__resolving__",t.ExportEquals="export=",t.Default="default",t.This="this",t.InstantiationExpression="__instantiationExpression",t.ImportAttributes="__importAttributes",t))(A$||{}),fO=(t=>(t[t.None=0]="None",t[t.TypeChecked=1]="TypeChecked",t[t.LexicalThis=2]="LexicalThis",t[t.CaptureThis=4]="CaptureThis",t[t.CaptureNewTarget=8]="CaptureNewTarget",t[t.SuperInstance=16]="SuperInstance",t[t.SuperStatic=32]="SuperStatic",t[t.ContextChecked=64]="ContextChecked",t[t.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",t[t.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",t[t.CaptureArguments=512]="CaptureArguments",t[t.EnumValuesComputed=1024]="EnumValuesComputed",t[t.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",t[t.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",t[t.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",t[t.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",t[t.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",t[t.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",t[t.AssignmentsMarked=131072]="AssignmentsMarked",t[t.ContainsConstructorReference=262144]="ContainsConstructorReference",t[t.ConstructorReference=536870912]="ConstructorReference",t[t.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",t[t.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",t[t.InCheckIdentifier=4194304]="InCheckIdentifier",t[t.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",t[t.LazyFlags=539358128]="LazyFlags",t))(fO||{}),NI=(t=>(t[t.Any=1]="Any",t[t.Unknown=2]="Unknown",t[t.String=4]="String",t[t.Number=8]="Number",t[t.Boolean=16]="Boolean",t[t.Enum=32]="Enum",t[t.BigInt=64]="BigInt",t[t.StringLiteral=128]="StringLiteral",t[t.NumberLiteral=256]="NumberLiteral",t[t.BooleanLiteral=512]="BooleanLiteral",t[t.EnumLiteral=1024]="EnumLiteral",t[t.BigIntLiteral=2048]="BigIntLiteral",t[t.ESSymbol=4096]="ESSymbol",t[t.UniqueESSymbol=8192]="UniqueESSymbol",t[t.Void=16384]="Void",t[t.Undefined=32768]="Undefined",t[t.Null=65536]="Null",t[t.Never=131072]="Never",t[t.TypeParameter=262144]="TypeParameter",t[t.Object=524288]="Object",t[t.Union=1048576]="Union",t[t.Intersection=2097152]="Intersection",t[t.Index=4194304]="Index",t[t.IndexedAccess=8388608]="IndexedAccess",t[t.Conditional=16777216]="Conditional",t[t.Substitution=33554432]="Substitution",t[t.NonPrimitive=67108864]="NonPrimitive",t[t.TemplateLiteral=134217728]="TemplateLiteral",t[t.StringMapping=268435456]="StringMapping",t[t.Reserved1=536870912]="Reserved1",t[t.Reserved2=1073741824]="Reserved2",t[t.AnyOrUnknown=3]="AnyOrUnknown",t[t.Nullable=98304]="Nullable",t[t.Literal=2944]="Literal",t[t.Unit=109472]="Unit",t[t.Freshable=2976]="Freshable",t[t.StringOrNumberLiteral=384]="StringOrNumberLiteral",t[t.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",t[t.DefinitelyFalsy=117632]="DefinitelyFalsy",t[t.PossiblyFalsy=117724]="PossiblyFalsy",t[t.Intrinsic=67359327]="Intrinsic",t[t.StringLike=402653316]="StringLike",t[t.NumberLike=296]="NumberLike",t[t.BigIntLike=2112]="BigIntLike",t[t.BooleanLike=528]="BooleanLike",t[t.EnumLike=1056]="EnumLike",t[t.ESSymbolLike=12288]="ESSymbolLike",t[t.VoidLike=49152]="VoidLike",t[t.Primitive=402784252]="Primitive",t[t.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",t[t.DisjointDomains=469892092]="DisjointDomains",t[t.UnionOrIntersection=3145728]="UnionOrIntersection",t[t.StructuredType=3670016]="StructuredType",t[t.TypeVariable=8650752]="TypeVariable",t[t.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",t[t.InstantiablePrimitive=406847488]="InstantiablePrimitive",t[t.Instantiable=465829888]="Instantiable",t[t.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",t[t.ObjectFlagsType=3899393]="ObjectFlagsType",t[t.Simplifiable=25165824]="Simplifiable",t[t.Singleton=67358815]="Singleton",t[t.Narrowable=536624127]="Narrowable",t[t.IncludesMask=473694207]="IncludesMask",t[t.IncludesMissingType=262144]="IncludesMissingType",t[t.IncludesNonWideningType=4194304]="IncludesNonWideningType",t[t.IncludesWildcard=8388608]="IncludesWildcard",t[t.IncludesEmptyObject=16777216]="IncludesEmptyObject",t[t.IncludesInstantiable=33554432]="IncludesInstantiable",t[t.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",t[t.IncludesError=1073741824]="IncludesError",t[t.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",t))(NI||{}),mO=(t=>(t[t.None=0]="None",t[t.Class=1]="Class",t[t.Interface=2]="Interface",t[t.Reference=4]="Reference",t[t.Tuple=8]="Tuple",t[t.Anonymous=16]="Anonymous",t[t.Mapped=32]="Mapped",t[t.Instantiated=64]="Instantiated",t[t.ObjectLiteral=128]="ObjectLiteral",t[t.EvolvingArray=256]="EvolvingArray",t[t.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",t[t.ReverseMapped=1024]="ReverseMapped",t[t.JsxAttributes=2048]="JsxAttributes",t[t.JSLiteral=4096]="JSLiteral",t[t.FreshLiteral=8192]="FreshLiteral",t[t.ArrayLiteral=16384]="ArrayLiteral",t[t.PrimitiveUnion=32768]="PrimitiveUnion",t[t.ContainsWideningType=65536]="ContainsWideningType",t[t.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",t[t.NonInferrableType=262144]="NonInferrableType",t[t.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",t[t.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",t[t.SingleSignatureType=134217728]="SingleSignatureType",t[t.ClassOrInterface=3]="ClassOrInterface",t[t.RequiresWidening=196608]="RequiresWidening",t[t.PropagatingFlags=458752]="PropagatingFlags",t[t.InstantiatedMapped=96]="InstantiatedMapped",t[t.ObjectTypeKindMask=1343]="ObjectTypeKindMask",t[t.ContainsSpread=2097152]="ContainsSpread",t[t.ObjectRestType=4194304]="ObjectRestType",t[t.InstantiationExpressionType=8388608]="InstantiationExpressionType",t[t.IsClassInstanceClone=16777216]="IsClassInstanceClone",t[t.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",t[t.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",t[t.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",t[t.IsGenericObjectType=4194304]="IsGenericObjectType",t[t.IsGenericIndexType=8388608]="IsGenericIndexType",t[t.IsGenericType=12582912]="IsGenericType",t[t.ContainsIntersections=16777216]="ContainsIntersections",t[t.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",t[t.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",t[t.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",t[t.IsNeverIntersection=33554432]="IsNeverIntersection",t[t.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",t))(mO||{}),rR=(t=>(t[t.Invariant=0]="Invariant",t[t.Covariant=1]="Covariant",t[t.Contravariant=2]="Contravariant",t[t.Bivariant=3]="Bivariant",t[t.Independent=4]="Independent",t[t.VarianceMask=7]="VarianceMask",t[t.Unmeasurable=8]="Unmeasurable",t[t.Unreliable=16]="Unreliable",t[t.AllowsStructuralFallback=24]="AllowsStructuralFallback",t))(rR||{}),nf=(t=>(t[t.Required=1]="Required",t[t.Optional=2]="Optional",t[t.Rest=4]="Rest",t[t.Variadic=8]="Variadic",t[t.Fixed=3]="Fixed",t[t.Variable=12]="Variable",t[t.NonRequired=14]="NonRequired",t[t.NonRest=11]="NonRest",t))(nf||{}),X2=(t=>(t[t.None=0]="None",t[t.IncludeUndefined=1]="IncludeUndefined",t[t.NoIndexSignatures=2]="NoIndexSignatures",t[t.Writing=4]="Writing",t[t.CacheSymbol=8]="CacheSymbol",t[t.AllowMissing=16]="AllowMissing",t[t.ExpressionPosition=32]="ExpressionPosition",t[t.ReportDeprecated=64]="ReportDeprecated",t[t.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",t[t.Contextual=256]="Contextual",t[t.Persistent=1]="Persistent",t))(X2||{}),hO=(t=>(t[t.None=0]="None",t[t.StringsOnly=1]="StringsOnly",t[t.NoIndexSignatures=2]="NoIndexSignatures",t[t.NoReducibleCheck=4]="NoReducibleCheck",t))(hO||{}),Y2=(t=>(t[t.Component=0]="Component",t[t.Function=1]="Function",t[t.Mixed=2]="Mixed",t))(Y2||{}),nR=(t=>(t[t.Call=0]="Call",t[t.Construct=1]="Construct",t))(nR||{}),Vm=(t=>(t[t.None=0]="None",t[t.HasRestParameter=1]="HasRestParameter",t[t.HasLiteralTypes=2]="HasLiteralTypes",t[t.Abstract=4]="Abstract",t[t.IsInnerCallChain=8]="IsInnerCallChain",t[t.IsOuterCallChain=16]="IsOuterCallChain",t[t.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",t[t.IsNonInferrable=64]="IsNonInferrable",t[t.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",t[t.PropagatingFlags=167]="PropagatingFlags",t[t.CallChainFlags=24]="CallChainFlags",t))(Vm||{}),eE=(t=>(t[t.String=0]="String",t[t.Number=1]="Number",t))(eE||{}),Ny=(t=>(t[t.Simple=0]="Simple",t[t.Array=1]="Array",t[t.Deferred=2]="Deferred",t[t.Function=3]="Function",t[t.Composite=4]="Composite",t[t.Merged=5]="Merged",t))(Ny||{}),iR=(t=>(t[t.None=0]="None",t[t.NakedTypeVariable=1]="NakedTypeVariable",t[t.SpeculativeTuple=2]="SpeculativeTuple",t[t.SubstituteSource=4]="SubstituteSource",t[t.HomomorphicMappedType=8]="HomomorphicMappedType",t[t.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",t[t.MappedTypeConstraint=32]="MappedTypeConstraint",t[t.ContravariantConditional=64]="ContravariantConditional",t[t.ReturnType=128]="ReturnType",t[t.LiteralKeyof=256]="LiteralKeyof",t[t.NoConstraints=512]="NoConstraints",t[t.AlwaysStrict=1024]="AlwaysStrict",t[t.MaxValue=2048]="MaxValue",t[t.PriorityImpliesCombination=416]="PriorityImpliesCombination",t[t.Circularity=-1]="Circularity",t))(iR||{}),w$=(t=>(t[t.None=0]="None",t[t.NoDefault=1]="NoDefault",t[t.AnyDefault=2]="AnyDefault",t[t.SkippedGenericFunction=4]="SkippedGenericFunction",t))(w$||{}),oR=(t=>(t[t.False=0]="False",t[t.Unknown=1]="Unknown",t[t.Maybe=3]="Maybe",t[t.True=-1]="True",t))(oR||{}),aR=(t=>(t[t.None=0]="None",t[t.ExportsProperty=1]="ExportsProperty",t[t.ModuleExports=2]="ModuleExports",t[t.PrototypeProperty=3]="PrototypeProperty",t[t.ThisProperty=4]="ThisProperty",t[t.Property=5]="Property",t[t.Prototype=6]="Prototype",t[t.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",t[t.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",t[t.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",t))(aR||{}),gO=(t=>(t[t.Warning=0]="Warning",t[t.Error=1]="Error",t[t.Suggestion=2]="Suggestion",t[t.Message=3]="Message",t))(gO||{});function NT(t,n=!0){let a=gO[t.category];return n?a.toLowerCase():a}var zk=(t=>(t[t.Classic=1]="Classic",t[t.NodeJs=2]="NodeJs",t[t.Node10=2]="Node10",t[t.Node16=3]="Node16",t[t.NodeNext=99]="NodeNext",t[t.Bundler=100]="Bundler",t))(zk||{}),sR=(t=>(t[t.Legacy=1]="Legacy",t[t.Auto=2]="Auto",t[t.Force=3]="Force",t))(sR||{}),cR=(t=>(t[t.FixedPollingInterval=0]="FixedPollingInterval",t[t.PriorityPollingInterval=1]="PriorityPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",t[t.UseFsEvents=4]="UseFsEvents",t[t.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",t))(cR||{}),lR=(t=>(t[t.UseFsEvents=0]="UseFsEvents",t[t.FixedPollingInterval=1]="FixedPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",t))(lR||{}),uR=(t=>(t[t.FixedInterval=0]="FixedInterval",t[t.PriorityInterval=1]="PriorityInterval",t[t.DynamicPriority=2]="DynamicPriority",t[t.FixedChunkSize=3]="FixedChunkSize",t))(uR||{}),tE=(t=>(t[t.None=0]="None",t[t.CommonJS=1]="CommonJS",t[t.AMD=2]="AMD",t[t.UMD=3]="UMD",t[t.System=4]="System",t[t.ES2015=5]="ES2015",t[t.ES2020=6]="ES2020",t[t.ES2022=7]="ES2022",t[t.ESNext=99]="ESNext",t[t.Node16=100]="Node16",t[t.Node18=101]="Node18",t[t.Node20=102]="Node20",t[t.NodeNext=199]="NodeNext",t[t.Preserve=200]="Preserve",t))(tE||{}),I$=(t=>(t[t.None=0]="None",t[t.Preserve=1]="Preserve",t[t.React=2]="React",t[t.ReactNative=3]="ReactNative",t[t.ReactJSX=4]="ReactJSX",t[t.ReactJSXDev=5]="ReactJSXDev",t))(I$||{}),OI=(t=>(t[t.Remove=0]="Remove",t[t.Preserve=1]="Preserve",t[t.Error=2]="Error",t))(OI||{}),pR=(t=>(t[t.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",t[t.LineFeed=1]="LineFeed",t))(pR||{}),m4=(t=>(t[t.Unknown=0]="Unknown",t[t.JS=1]="JS",t[t.JSX=2]="JSX",t[t.TS=3]="TS",t[t.TSX=4]="TSX",t[t.External=5]="External",t[t.JSON=6]="JSON",t[t.Deferred=7]="Deferred",t))(m4||{}),_R=(t=>(t[t.ES3=0]="ES3",t[t.ES5=1]="ES5",t[t.ES2015=2]="ES2015",t[t.ES2016=3]="ES2016",t[t.ES2017=4]="ES2017",t[t.ES2018=5]="ES2018",t[t.ES2019=6]="ES2019",t[t.ES2020=7]="ES2020",t[t.ES2021=8]="ES2021",t[t.ES2022=9]="ES2022",t[t.ES2023=10]="ES2023",t[t.ES2024=11]="ES2024",t[t.ESNext=99]="ESNext",t[t.JSON=100]="JSON",t[t.Latest=99]="Latest",t))(_R||{}),dR=(t=>(t[t.Standard=0]="Standard",t[t.JSX=1]="JSX",t))(dR||{}),yO=(t=>(t[t.None=0]="None",t[t.Recursive=1]="Recursive",t))(yO||{}),fR=(t=>(t[t.EOF=-1]="EOF",t[t.nullCharacter=0]="nullCharacter",t[t.maxAsciiCharacter=127]="maxAsciiCharacter",t[t.lineFeed=10]="lineFeed",t[t.carriageReturn=13]="carriageReturn",t[t.lineSeparator=8232]="lineSeparator",t[t.paragraphSeparator=8233]="paragraphSeparator",t[t.nextLine=133]="nextLine",t[t.space=32]="space",t[t.nonBreakingSpace=160]="nonBreakingSpace",t[t.enQuad=8192]="enQuad",t[t.emQuad=8193]="emQuad",t[t.enSpace=8194]="enSpace",t[t.emSpace=8195]="emSpace",t[t.threePerEmSpace=8196]="threePerEmSpace",t[t.fourPerEmSpace=8197]="fourPerEmSpace",t[t.sixPerEmSpace=8198]="sixPerEmSpace",t[t.figureSpace=8199]="figureSpace",t[t.punctuationSpace=8200]="punctuationSpace",t[t.thinSpace=8201]="thinSpace",t[t.hairSpace=8202]="hairSpace",t[t.zeroWidthSpace=8203]="zeroWidthSpace",t[t.narrowNoBreakSpace=8239]="narrowNoBreakSpace",t[t.ideographicSpace=12288]="ideographicSpace",t[t.mathematicalSpace=8287]="mathematicalSpace",t[t.ogham=5760]="ogham",t[t.replacementCharacter=65533]="replacementCharacter",t[t._=95]="_",t[t.$=36]="$",t[t._0=48]="_0",t[t._1=49]="_1",t[t._2=50]="_2",t[t._3=51]="_3",t[t._4=52]="_4",t[t._5=53]="_5",t[t._6=54]="_6",t[t._7=55]="_7",t[t._8=56]="_8",t[t._9=57]="_9",t[t.a=97]="a",t[t.b=98]="b",t[t.c=99]="c",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.g=103]="g",t[t.h=104]="h",t[t.i=105]="i",t[t.j=106]="j",t[t.k=107]="k",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.p=112]="p",t[t.q=113]="q",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.v=118]="v",t[t.w=119]="w",t[t.x=120]="x",t[t.y=121]="y",t[t.z=122]="z",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.ampersand=38]="ampersand",t[t.asterisk=42]="asterisk",t[t.at=64]="at",t[t.backslash=92]="backslash",t[t.backtick=96]="backtick",t[t.bar=124]="bar",t[t.caret=94]="caret",t[t.closeBrace=125]="closeBrace",t[t.closeBracket=93]="closeBracket",t[t.closeParen=41]="closeParen",t[t.colon=58]="colon",t[t.comma=44]="comma",t[t.dot=46]="dot",t[t.doubleQuote=34]="doubleQuote",t[t.equals=61]="equals",t[t.exclamation=33]="exclamation",t[t.greaterThan=62]="greaterThan",t[t.hash=35]="hash",t[t.lessThan=60]="lessThan",t[t.minus=45]="minus",t[t.openBrace=123]="openBrace",t[t.openBracket=91]="openBracket",t[t.openParen=40]="openParen",t[t.percent=37]="percent",t[t.plus=43]="plus",t[t.question=63]="question",t[t.semicolon=59]="semicolon",t[t.singleQuote=39]="singleQuote",t[t.slash=47]="slash",t[t.tilde=126]="tilde",t[t.backspace=8]="backspace",t[t.formFeed=12]="formFeed",t[t.byteOrderMark=65279]="byteOrderMark",t[t.tab=9]="tab",t[t.verticalTab=11]="verticalTab",t))(fR||{}),mR=(t=>(t.Ts=".ts",t.Tsx=".tsx",t.Dts=".d.ts",t.Js=".js",t.Jsx=".jsx",t.Json=".json",t.TsBuildInfo=".tsbuildinfo",t.Mjs=".mjs",t.Mts=".mts",t.Dmts=".d.mts",t.Cjs=".cjs",t.Cts=".cts",t.Dcts=".d.cts",t))(mR||{}),vO=(t=>(t[t.None=0]="None",t[t.ContainsTypeScript=1]="ContainsTypeScript",t[t.ContainsJsx=2]="ContainsJsx",t[t.ContainsESNext=4]="ContainsESNext",t[t.ContainsES2022=8]="ContainsES2022",t[t.ContainsES2021=16]="ContainsES2021",t[t.ContainsES2020=32]="ContainsES2020",t[t.ContainsES2019=64]="ContainsES2019",t[t.ContainsES2018=128]="ContainsES2018",t[t.ContainsES2017=256]="ContainsES2017",t[t.ContainsES2016=512]="ContainsES2016",t[t.ContainsES2015=1024]="ContainsES2015",t[t.ContainsGenerator=2048]="ContainsGenerator",t[t.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",t[t.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",t[t.ContainsLexicalThis=16384]="ContainsLexicalThis",t[t.ContainsRestOrSpread=32768]="ContainsRestOrSpread",t[t.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",t[t.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",t[t.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",t[t.ContainsBindingPattern=524288]="ContainsBindingPattern",t[t.ContainsYield=1048576]="ContainsYield",t[t.ContainsAwait=2097152]="ContainsAwait",t[t.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",t[t.ContainsDynamicImport=8388608]="ContainsDynamicImport",t[t.ContainsClassFields=16777216]="ContainsClassFields",t[t.ContainsDecorators=33554432]="ContainsDecorators",t[t.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",t[t.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",t[t.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",t[t.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",t[t.HasComputedFlags=-2147483648]="HasComputedFlags",t[t.AssertTypeScript=1]="AssertTypeScript",t[t.AssertJsx=2]="AssertJsx",t[t.AssertESNext=4]="AssertESNext",t[t.AssertES2022=8]="AssertES2022",t[t.AssertES2021=16]="AssertES2021",t[t.AssertES2020=32]="AssertES2020",t[t.AssertES2019=64]="AssertES2019",t[t.AssertES2018=128]="AssertES2018",t[t.AssertES2017=256]="AssertES2017",t[t.AssertES2016=512]="AssertES2016",t[t.AssertES2015=1024]="AssertES2015",t[t.AssertGenerator=2048]="AssertGenerator",t[t.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",t[t.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",t[t.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",t[t.NodeExcludes=-2147483648]="NodeExcludes",t[t.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",t[t.FunctionExcludes=-1937940480]="FunctionExcludes",t[t.ConstructorExcludes=-1937948672]="ConstructorExcludes",t[t.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",t[t.PropertyExcludes=-2013249536]="PropertyExcludes",t[t.ClassExcludes=-2147344384]="ClassExcludes",t[t.ModuleExcludes=-1941676032]="ModuleExcludes",t[t.TypeExcludes=-2]="TypeExcludes",t[t.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",t[t.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",t[t.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",t[t.ParameterExcludes=-2147483648]="ParameterExcludes",t[t.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",t[t.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",t[t.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",t[t.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",t))(vO||{}),hR=(t=>(t[t.TabStop=0]="TabStop",t[t.Placeholder=1]="Placeholder",t[t.Choice=2]="Choice",t[t.Variable=3]="Variable",t))(hR||{}),SO=(t=>(t[t.None=0]="None",t[t.SingleLine=1]="SingleLine",t[t.MultiLine=2]="MultiLine",t[t.AdviseOnEmitNode=4]="AdviseOnEmitNode",t[t.NoSubstitution=8]="NoSubstitution",t[t.CapturesThis=16]="CapturesThis",t[t.NoLeadingSourceMap=32]="NoLeadingSourceMap",t[t.NoTrailingSourceMap=64]="NoTrailingSourceMap",t[t.NoSourceMap=96]="NoSourceMap",t[t.NoNestedSourceMaps=128]="NoNestedSourceMaps",t[t.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",t[t.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",t[t.NoTokenSourceMaps=768]="NoTokenSourceMaps",t[t.NoLeadingComments=1024]="NoLeadingComments",t[t.NoTrailingComments=2048]="NoTrailingComments",t[t.NoComments=3072]="NoComments",t[t.NoNestedComments=4096]="NoNestedComments",t[t.HelperName=8192]="HelperName",t[t.ExportName=16384]="ExportName",t[t.LocalName=32768]="LocalName",t[t.InternalName=65536]="InternalName",t[t.Indented=131072]="Indented",t[t.NoIndentation=262144]="NoIndentation",t[t.AsyncFunctionBody=524288]="AsyncFunctionBody",t[t.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",t[t.CustomPrologue=2097152]="CustomPrologue",t[t.NoHoisting=4194304]="NoHoisting",t[t.Iterator=8388608]="Iterator",t[t.NoAsciiEscaping=16777216]="NoAsciiEscaping",t))(SO||{}),P$=(t=>(t[t.None=0]="None",t[t.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",t[t.NeverApplyImportHelper=2]="NeverApplyImportHelper",t[t.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",t[t.Immutable=8]="Immutable",t[t.IndirectCall=16]="IndirectCall",t[t.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",t))(P$||{}),C_={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},gR=(t=>(t[t.Extends=1]="Extends",t[t.Assign=2]="Assign",t[t.Rest=4]="Rest",t[t.Decorate=8]="Decorate",t[t.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",t[t.Metadata=16]="Metadata",t[t.Param=32]="Param",t[t.Awaiter=64]="Awaiter",t[t.Generator=128]="Generator",t[t.Values=256]="Values",t[t.Read=512]="Read",t[t.SpreadArray=1024]="SpreadArray",t[t.Await=2048]="Await",t[t.AsyncGenerator=4096]="AsyncGenerator",t[t.AsyncDelegator=8192]="AsyncDelegator",t[t.AsyncValues=16384]="AsyncValues",t[t.ExportStar=32768]="ExportStar",t[t.ImportStar=65536]="ImportStar",t[t.ImportDefault=131072]="ImportDefault",t[t.MakeTemplateObject=262144]="MakeTemplateObject",t[t.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",t[t.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",t[t.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",t[t.SetFunctionName=4194304]="SetFunctionName",t[t.PropKey=8388608]="PropKey",t[t.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",t[t.RewriteRelativeImportExtension=33554432]="RewriteRelativeImportExtension",t[t.FirstEmitHelper=1]="FirstEmitHelper",t[t.LastEmitHelper=16777216]="LastEmitHelper",t[t.ForOfIncludes=256]="ForOfIncludes",t[t.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",t[t.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",t[t.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",t[t.SpreadIncludes=1536]="SpreadIncludes",t))(gR||{}),rE=(t=>(t[t.SourceFile=0]="SourceFile",t[t.Expression=1]="Expression",t[t.IdentifierName=2]="IdentifierName",t[t.MappedTypeParameter=3]="MappedTypeParameter",t[t.Unspecified=4]="Unspecified",t[t.EmbeddedStatement=5]="EmbeddedStatement",t[t.JsxAttributeValue=6]="JsxAttributeValue",t[t.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",t))(rE||{}),N$=(t=>(t[t.Parentheses=1]="Parentheses",t[t.TypeAssertions=2]="TypeAssertions",t[t.NonNullAssertions=4]="NonNullAssertions",t[t.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",t[t.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",t[t.Satisfies=32]="Satisfies",t[t.Assertions=38]="Assertions",t[t.All=63]="All",t[t.ExcludeJSDocTypeAssertion=-2147483648]="ExcludeJSDocTypeAssertion",t))(N$||{}),h4=(t=>(t[t.None=0]="None",t[t.InParameters=1]="InParameters",t[t.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",t))(h4||{}),FI=(t=>(t[t.None=0]="None",t[t.SingleLine=0]="SingleLine",t[t.MultiLine=1]="MultiLine",t[t.PreserveLines=2]="PreserveLines",t[t.LinesMask=3]="LinesMask",t[t.NotDelimited=0]="NotDelimited",t[t.BarDelimited=4]="BarDelimited",t[t.AmpersandDelimited=8]="AmpersandDelimited",t[t.CommaDelimited=16]="CommaDelimited",t[t.AsteriskDelimited=32]="AsteriskDelimited",t[t.DelimitersMask=60]="DelimitersMask",t[t.AllowTrailingComma=64]="AllowTrailingComma",t[t.Indented=128]="Indented",t[t.SpaceBetweenBraces=256]="SpaceBetweenBraces",t[t.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",t[t.Braces=1024]="Braces",t[t.Parenthesis=2048]="Parenthesis",t[t.AngleBrackets=4096]="AngleBrackets",t[t.SquareBrackets=8192]="SquareBrackets",t[t.BracketsMask=15360]="BracketsMask",t[t.OptionalIfUndefined=16384]="OptionalIfUndefined",t[t.OptionalIfEmpty=32768]="OptionalIfEmpty",t[t.Optional=49152]="Optional",t[t.PreferNewLine=65536]="PreferNewLine",t[t.NoTrailingNewLine=131072]="NoTrailingNewLine",t[t.NoInterveningComments=262144]="NoInterveningComments",t[t.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",t[t.SingleElement=1048576]="SingleElement",t[t.SpaceAfterList=2097152]="SpaceAfterList",t[t.Modifiers=2359808]="Modifiers",t[t.HeritageClauses=512]="HeritageClauses",t[t.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",t[t.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",t[t.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",t[t.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",t[t.UnionTypeConstituents=516]="UnionTypeConstituents",t[t.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",t[t.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",t[t.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",t[t.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",t[t.ImportAttributes=526226]="ImportAttributes",t[t.ImportClauseEntries=526226]="ImportClauseEntries",t[t.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",t[t.CommaListElements=528]="CommaListElements",t[t.CallExpressionArguments=2576]="CallExpressionArguments",t[t.NewExpressionArguments=18960]="NewExpressionArguments",t[t.TemplateExpressionSpans=262144]="TemplateExpressionSpans",t[t.SingleLineBlockStatements=768]="SingleLineBlockStatements",t[t.MultiLineBlockStatements=129]="MultiLineBlockStatements",t[t.VariableDeclarationList=528]="VariableDeclarationList",t[t.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",t[t.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",t[t.ClassHeritageClauses=0]="ClassHeritageClauses",t[t.ClassMembers=129]="ClassMembers",t[t.InterfaceMembers=129]="InterfaceMembers",t[t.EnumMembers=145]="EnumMembers",t[t.CaseBlockClauses=129]="CaseBlockClauses",t[t.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",t[t.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",t[t.JsxElementAttributes=262656]="JsxElementAttributes",t[t.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",t[t.HeritageClauseTypes=528]="HeritageClauseTypes",t[t.SourceFileStatements=131073]="SourceFileStatements",t[t.Decorators=2146305]="Decorators",t[t.TypeArguments=53776]="TypeArguments",t[t.TypeParameters=53776]="TypeParameters",t[t.Parameters=2576]="Parameters",t[t.IndexSignatureParameters=8848]="IndexSignatureParameters",t[t.JSDocComment=33]="JSDocComment",t))(FI||{}),g4=(t=>(t[t.None=0]="None",t[t.TripleSlashXML=1]="TripleSlashXML",t[t.SingleLine=2]="SingleLine",t[t.MultiLine=4]="MultiLine",t[t.All=7]="All",t[t.Default=7]="Default",t))(g4||{}),y4={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},RI=(t=>(t[t.ParseAll=0]="ParseAll",t[t.ParseNone=1]="ParseNone",t[t.ParseForTypeErrors=2]="ParseForTypeErrors",t[t.ParseForTypeInfo=3]="ParseForTypeInfo",t))(RI||{});function qk(t){let n=5381;for(let a=0;a(t[t.Created=0]="Created",t[t.Changed=1]="Changed",t[t.Deleted=2]="Deleted",t))(v4||{}),yR=(t=>(t[t.High=2e3]="High",t[t.Medium=500]="Medium",t[t.Low=250]="Low",t))(yR||{}),Wm=new Date(0);function OT(t,n){return t.getModifiedTime(n)||Wm}function O$(t){return{250:t.Low,500:t.Medium,2e3:t.High}}var bO={Low:32,Medium:64,High:256},xO=O$(bO),LI=O$(bO);function Ste(t){if(!t.getEnvironmentVariable)return;let n=u("TSC_WATCH_POLLINGINTERVAL",yR);xO=_("TSC_WATCH_POLLINGCHUNKSIZE",bO)||xO,LI=_("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",bO)||LI;function a(f,y){return t.getEnvironmentVariable(`${f}_${y.toUpperCase()}`)}function c(f){let y;return g("Low"),g("Medium"),g("High"),y;function g(k){let T=a(f,k);T&&((y||(y={}))[k]=Number(T))}}function u(f,y){let g=c(f);if(g)return k("Low"),k("Medium"),k("High"),!0;return!1;function k(T){y[T]=g[T]||y[T]}}function _(f,y){let g=c(f);return(n||g)&&O$(g?{...y,...g}:y)}}function FW(t,n,a,c,u){let _=a;for(let y=n.length;c&&y;f(),y--){let g=n[a];if(g){if(g.isClosed){n[a]=void 0;continue}}else continue;c--;let k=jW(g,OT(t,g.fileName));if(g.isClosed){n[a]=void 0;continue}u?.(g,a,k),n[a]&&(_{Q.isClosed=!0,pb(n,Q)}}}function y(J){let G=[];return G.pollingInterval=J,G.pollIndex=0,G.pollScheduled=!1,G}function g(J,G){G.pollIndex=T(G,G.pollingInterval,G.pollIndex,xO[G.pollingInterval]),G.length?U(G.pollingInterval):($.assert(G.pollIndex===0),G.pollScheduled=!1)}function k(J,G){T(a,250,0,a.length),g(J,G),!G.pollScheduled&&a.length&&U(250)}function T(J,G,Z,Q){return FW(t,J,Z,Q,re);function re(ae,_e,me){me?(ae.unchangedPolls=0,J!==a&&(J[_e]=void 0,F(ae))):ae.unchangedPolls!==LI[G]?ae.unchangedPolls++:J===a?(ae.unchangedPolls=1,J[_e]=void 0,O(ae,250)):G!==2e3&&(ae.unchangedPolls++,J[_e]=void 0,O(ae,G===250?500:2e3))}}function C(J){switch(J){case 250:return c;case 500:return u;case 2e3:return _}}function O(J,G){C(G).push(J),M(G)}function F(J){a.push(J),M(250)}function M(J){C(J).pollScheduled||U(J)}function U(J){C(J).pollScheduled=t.setTimeout(J===250?k:g,J,J===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",C(J))}}function bte(t,n,a,c){let u=d_(),_=c?new Map:void 0,f=new Map,y=_d(n);return g;function g(T,C,O,F){let M=y(T);u.add(M,C).length===1&&_&&_.set(M,a(T)||Wm);let U=mo(M)||".",J=f.get(U)||k(mo(T)||".",U,F);return J.referenceCount++,{close:()=>{J.referenceCount===1?(J.close(),f.delete(U)):J.referenceCount--,u.remove(M,C)}}}function k(T,C,O){let F=t(T,1,(M,U)=>{if(!Ni(U))return;let J=za(U,T),G=y(J),Z=J&&u.get(G);if(Z){let Q,re=1;if(_){let ae=_.get(G);if(M==="change"&&(Q=a(J)||Wm,Q.getTime()===ae.getTime()))return;Q||(Q=a(J)||Wm),_.set(G,Q),ae===Wm?re=0:Q===Wm&&(re=2)}for(let ae of Z)ae(J,re,Q)}},!1,500,O);return F.referenceCount=0,f.set(C,F),F}}function LW(t){let n=[],a=0,c;return u;function u(y,g){let k={fileName:y,callback:g,mtime:OT(t,y)};return n.push(k),f(),{close:()=>{k.isClosed=!0,pb(n,k)}}}function _(){c=void 0,a=FW(t,n,a,xO[250]),f()}function f(){!n.length||c||(c=t.setTimeout(_,2e3,"pollQueue"))}}function MW(t,n,a,c,u){let f=_d(n)(a),y=t.get(f);return y?y.callbacks.push(c):t.set(f,{watcher:u((g,k,T)=>{var C;return(C=t.get(f))==null?void 0:C.callbacks.slice().forEach(O=>O(g,k,T))}),callbacks:[c]}),{close:()=>{let g=t.get(f);g&&(!IT(g.callbacks,c)||g.callbacks.length||(t.delete(f),C0(g)))}}}function jW(t,n){let a=t.mtime.getTime(),c=n.getTime();return a!==c?(t.mtime=n,t.callback(t.fileName,S4(a,c),n),!0):!1}function S4(t,n){return t===0?0:n===0?2:1}var b4=["/node_modules/.","/.git","/.#"],BW=zs;function Oy(t){return BW(t)}function lS(t){BW=t}function MI({watchDirectory:t,useCaseSensitiveFileNames:n,getCurrentDirectory:a,getAccessibleSortedChildDirectories:c,fileSystemEntryExists:u,realpath:_,setTimeout:f,clearTimeout:y}){let g=new Map,k=d_(),T=new Map,C,O=ub(!n),F=_d(n);return(le,Oe,be,ue)=>be?M(le,ue,Oe):t(le,Oe,be,ue);function M(le,Oe,be,ue){let De=F(le),Ce=g.get(De);Ce?Ce.refCount++:(Ce={watcher:t(le,Fe=>{var Be;_e(Fe,Oe)||(Oe?.synchronousWatchDirectory?((Be=g.get(De))!=null&&Be.targetWatcher||U(le,De,Fe),ae(le,De,Oe)):J(le,De,Fe,Oe))},!1,Oe),refCount:1,childWatches:j,targetWatcher:void 0,links:void 0},g.set(De,Ce),ae(le,De,Oe)),ue&&(Ce.links??(Ce.links=new Set)).add(ue);let Ae=be&&{dirName:le,callback:be};return Ae&&k.add(De,Ae),{dirName:le,close:()=>{var Fe;let Be=$.checkDefined(g.get(De));Ae&&k.remove(De,Ae),ue&&((Fe=Be.links)==null||Fe.delete(ue)),Be.refCount--,!Be.refCount&&(g.delete(De),Be.links=void 0,C0(Be),re(Be),Be.childWatches.forEach(W1))}}}function U(le,Oe,be,ue){var De,Ce;let Ae,Fe;Ni(be)?Ae=be:Fe=be,k.forEach((Be,de)=>{if(!(Fe&&Fe.get(de)===!0)&&(de===Oe||Ca(Oe,de)&&Oe[de.length]===Gl))if(Fe)if(ue){let ze=Fe.get(de);ze?ze.push(...ue):Fe.set(de,ue.slice())}else Fe.set(de,!0);else Be.forEach(({callback:ze})=>ze(Ae))}),(Ce=(De=g.get(Oe))==null?void 0:De.links)==null||Ce.forEach(Be=>{let de=ze=>Xi(Be,lh(le,ze,F));Fe?U(Be,F(Be),Fe,ue?.map(de)):U(Be,F(Be),de(Ae))})}function J(le,Oe,be,ue){let De=g.get(Oe);if(De&&u(le,1)){G(le,Oe,be,ue);return}U(le,Oe,be),re(De),Q(De)}function G(le,Oe,be,ue){let De=T.get(Oe);De?De.fileNames.push(be):T.set(Oe,{dirName:le,options:ue,fileNames:[be]}),C&&(y(C),C=void 0),C=f(Z,1e3,"timerToUpdateChildWatches")}function Z(){var le;C=void 0,Oy(`sysLog:: onTimerToUpdateChildWatches:: ${T.size}`);let Oe=Ml(),be=new Map;for(;!C&&T.size;){let De=T.entries().next();$.assert(!De.done);let{value:[Ce,{dirName:Ae,options:Fe,fileNames:Be}]}=De;T.delete(Ce);let de=ae(Ae,Ce,Fe);(le=g.get(Ce))!=null&&le.targetWatcher||U(Ae,Ce,be,de?void 0:Be)}Oy(`sysLog:: invokingWatchers:: Elapsed:: ${Ml()-Oe}ms:: ${T.size}`),k.forEach((De,Ce)=>{let Ae=be.get(Ce);Ae&&De.forEach(({callback:Fe,dirName:Be})=>{Zn(Ae)?Ae.forEach(Fe):Fe(Be)})});let ue=Ml()-Oe;Oy(`sysLog:: Elapsed:: ${ue}ms:: onTimerToUpdateChildWatches:: ${T.size} ${C}`)}function Q(le){if(!le)return;let Oe=le.childWatches;le.childWatches=j;for(let be of Oe)be.close(),Q(g.get(F(be.dirName)))}function re(le){le?.targetWatcher&&(le.targetWatcher.close(),le.targetWatcher=void 0)}function ae(le,Oe,be){let ue=g.get(Oe);if(!ue)return!1;let De=Qs(_(le)),Ce,Ae;return O(De,le)===0?Ce=kI(u(le,1)?Wn(c(le),de=>{let ze=za(de,le);return!_e(ze,be)&&O(ze,Qs(_(ze)))===0?ze:void 0}):j,ue.childWatches,(de,ze)=>O(de,ze.dirName),Fe,W1,Be):ue.targetWatcher&&O(De,ue.targetWatcher.dirName)===0?(Ce=!1,$.assert(ue.childWatches===j)):(re(ue),ue.targetWatcher=M(De,be,void 0,le),ue.childWatches.forEach(W1),Ce=!0),ue.childWatches=Ae||j,Ce;function Fe(de){let ze=M(de,be);Be(ze)}function Be(de){(Ae||(Ae=[])).push(de)}}function _e(le,Oe){return Pt(b4,be=>me(le,be))||UW(le,Oe,n,a)}function me(le,Oe){return le.includes(Oe)?!0:n?!1:F(le).includes(Oe)}}var TO=(t=>(t[t.File=0]="File",t[t.Directory=1]="Directory",t))(TO||{});function $W(t){return(n,a,c)=>t(a===1?"change":"rename","",c)}function vR(t,n,a){return(c,u,_)=>{c==="rename"?(_||(_=a(t)||Wm),n(t,_!==Wm?0:2,_)):n(t,1,_)}}function UW(t,n,a,c){return(n?.excludeDirectories||n?.excludeFiles)&&(bie(t,n?.excludeFiles,a,c())||bie(t,n?.excludeDirectories,a,c()))}function SR(t,n,a,c,u){return(_,f)=>{if(_==="rename"){let y=f?Qs(Xi(t,f)):t;(!f||!UW(y,a,c,u))&&n(y)}}}function F$({pollingWatchFileWorker:t,getModifiedTime:n,setTimeout:a,clearTimeout:c,fsWatchWorker:u,fileSystemEntryExists:_,useCaseSensitiveFileNames:f,getCurrentDirectory:y,fsSupportsRecursiveFsWatch:g,getAccessibleSortedChildDirectories:k,realpath:T,tscWatchFile:C,useNonPollingWatchers:O,tscWatchDirectory:F,inodeWatching:M,fsWatchWithTimestamp:U,sysLog:J}){let G=new Map,Z=new Map,Q=new Map,re,ae,_e,me,le=!1;return{watchFile:Oe,watchDirectory:Ae};function Oe(ve,Le,Ve,nt){nt=De(nt,O);let It=$.checkDefined(nt.watchFile);switch(It){case 0:return de(ve,Le,250,void 0);case 1:return de(ve,Le,Ve,void 0);case 2:return be()(ve,Le,Ve,void 0);case 3:return ue()(ve,Le,void 0,void 0);case 4:return ze(ve,0,vR(ve,Le,n),!1,Ve,CK(nt));case 5:return _e||(_e=bte(ze,f,n,U)),_e(ve,Le,Ve,CK(nt));default:$.assertNever(It)}}function be(){return re||(re=RW({getModifiedTime:n,setTimeout:a}))}function ue(){return ae||(ae=LW({getModifiedTime:n,setTimeout:a}))}function De(ve,Le){if(ve&&ve.watchFile!==void 0)return ve;switch(C){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return Ce(4,1,ve);case"UseFsEventsWithFallbackDynamicPolling":return Ce(4,2,ve);case"UseFsEventsOnParentDirectory":Le=!0;default:return Le?Ce(5,1,ve):{watchFile:4}}}function Ce(ve,Le,Ve){let nt=Ve?.fallbackPolling;return{watchFile:ve,fallbackPolling:nt===void 0?Le:nt}}function Ae(ve,Le,Ve,nt){return g?ze(ve,1,SR(ve,Le,nt,f,y),Ve,500,CK(nt)):(me||(me=MI({useCaseSensitiveFileNames:f,getCurrentDirectory:y,fileSystemEntryExists:_,getAccessibleSortedChildDirectories:k,watchDirectory:Fe,realpath:T,setTimeout:a,clearTimeout:c})),me(ve,Le,Ve,nt))}function Fe(ve,Le,Ve,nt){$.assert(!Ve);let It=Be(nt),ke=$.checkDefined(It.watchDirectory);switch(ke){case 1:return de(ve,()=>Le(ve),500,void 0);case 2:return be()(ve,()=>Le(ve),500,void 0);case 3:return ue()(ve,()=>Le(ve),void 0,void 0);case 0:return ze(ve,1,SR(ve,Le,nt,f,y),Ve,500,CK(It));default:$.assertNever(ke)}}function Be(ve){if(ve&&ve.watchDirectory!==void 0)return ve;switch(F){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:let Le=ve?.fallbackPolling;return{watchDirectory:0,fallbackPolling:Le!==void 0?Le:void 0}}}function de(ve,Le,Ve,nt){return MW(G,f,ve,Le,It=>t(ve,It,Ve,nt))}function ze(ve,Le,Ve,nt,It,ke){return MW(nt?Q:Z,f,ve,Ve,_t=>ut(ve,Le,_t,nt,It,ke))}function ut(ve,Le,Ve,nt,It,ke){let _t,Se;M&&(_t=ve.substring(ve.lastIndexOf(Gl)),Se=_t.slice(Gl.length));let tt=_(ve,Le)?We():Sr();return{close:()=>{tt&&(tt.close(),tt=void 0)}};function Qe(nn){tt&&(J(`sysLog:: ${ve}:: Changing watcher to ${nn===We?"Present":"Missing"}FileSystemEntryWatcher`),tt.close(),tt=nn())}function We(){if(le)return J(`sysLog:: ${ve}:: Defaulting to watchFile`),Kt();try{let nn=(Le===1||!U?u:je)(ve,nt,M?St:Ve);return nn.on("error",()=>{Ve("rename",""),Qe(Sr)}),nn}catch(nn){return le||(le=nn.code==="ENOSPC"),J(`sysLog:: ${ve}:: Changing to watchFile`),Kt()}}function St(nn,Nn){let $t;if(Nn&&au(Nn,"~")&&($t=Nn,Nn=Nn.slice(0,Nn.length-1)),nn==="rename"&&(!Nn||Nn===Se||au(Nn,_t))){let Dr=n(ve)||Wm;$t&&Ve(nn,$t,Dr),Ve(nn,Nn,Dr),M?Qe(Dr===Wm?Sr:We):Dr===Wm&&Qe(Sr)}else $t&&Ve(nn,$t),Ve(nn,Nn)}function Kt(){return Oe(ve,$W(Ve),It,ke)}function Sr(){return Oe(ve,(nn,Nn,$t)=>{Nn===0&&($t||($t=n(ve)||Wm),$t!==Wm&&(Ve("rename","",$t),Qe(We)))},It,ke)}}function je(ve,Le,Ve){let nt=n(ve)||Wm;return u(ve,Le,(It,ke,_t)=>{It==="change"&&(_t||(_t=n(ve)||Wm),_t.getTime()===nt.getTime())||(nt=_t||n(ve)||Wm,Ve(It,ke,nt))})}}function bR(t){let n=t.writeFile;t.writeFile=(a,c,u)=>mhe(a,c,!!u,(_,f,y)=>n.call(t,_,f,y),_=>t.createDirectory(_),_=>t.directoryExists(_))}var f_=(()=>{function n(){let c=/^native |^\([^)]+\)$|^(?:internal[\\/]|[\w\s]+(?:\.js)?$)/,u=a0("fs"),_=a0("path"),f=a0("os"),y;try{y=a0("crypto")}catch{y=void 0}let g,k="./profile.cpuprofile",T=process.platform==="darwin",C=process.platform==="linux"||T,O={throwIfNoEntry:!1},F=f.platform(),M=be(),U=u.realpathSync.native?process.platform==="win32"?Le:u.realpathSync.native:u.realpathSync,J=__filename.endsWith("sys.js")?_.join(_.dirname(__dirname),"__fake__.js"):__filename,G=process.platform==="win32"||T,Z=Ef(()=>process.cwd()),{watchFile:Q,watchDirectory:re}=F$({pollingWatchFileWorker:De,getModifiedTime:nt,setTimeout,clearTimeout,fsWatchWorker:Ce,useCaseSensitiveFileNames:M,getCurrentDirectory:Z,fileSystemEntryExists:ze,fsSupportsRecursiveFsWatch:G,getAccessibleSortedChildDirectories:Se=>Be(Se).directories,realpath:Ve,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:C,fsWatchWithTimestamp:T,sysLog:Oy}),ae={args:process.argv.slice(2),newLine:f.EOL,useCaseSensitiveFileNames:M,write(Se){process.stdout.write(Se)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:Ae,writeFile:Fe,watchFile:Q,watchDirectory:re,preferNonRecursiveWatch:!G,resolvePath:Se=>_.resolve(Se),fileExists:ut,directoryExists:je,getAccessibleFileSystemEntries:Be,createDirectory(Se){if(!ae.directoryExists(Se))try{u.mkdirSync(Se)}catch(tt){if(tt.code!=="EEXIST")throw tt}},getExecutingFilePath(){return J},getCurrentDirectory:Z,getDirectories:ve,getEnvironmentVariable(Se){return process.env[Se]||""},readDirectory:de,getModifiedTime:nt,setModifiedTime:It,deleteFile:ke,createHash:y?_t:qk,createSHA256Hash:y?_t:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(Se){let tt=_e(Se);return tt?.isFile()?tt.size:0},exit(Se){Oe(()=>process.exit(Se))},enableCPUProfiler:me,disableCPUProfiler:Oe,cpuProfilingEnabled:()=>!!g||un(process.execArgv,"--cpu-prof")||un(process.execArgv,"--prof"),realpath:Ve,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||Pt(process.execArgv,Se=>/^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(Se))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{a0("source-map-support").install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1B[2J\x1B[3J\x1B[H")},setBlocking:()=>{var Se;let tt=(Se=process.stdout)==null?void 0:Se._handle;tt&&tt.setBlocking&&tt.setBlocking(!0)},base64decode:Se=>Buffer.from(Se,"base64").toString("utf8"),base64encode:Se=>Buffer.from(Se).toString("base64"),require:(Se,tt)=>{try{let Qe=s8e(tt,Se,ae);return{module:a0(Qe),modulePath:Qe,error:void 0}}catch(Qe){return{module:void 0,modulePath:void 0,error:Qe}}}};return ae;function _e(Se){try{return u.statSync(Se,O)}catch{return}}function me(Se,tt){if(g)return tt(),!1;let Qe=a0("inspector");if(!Qe||!Qe.Session)return tt(),!1;let We=new Qe.Session;return We.connect(),We.post("Profiler.enable",()=>{We.post("Profiler.start",()=>{g=We,k=Se,tt()})}),!0}function le(Se){let tt=0,Qe=new Map,We=Z_(_.dirname(J)),St=`file://${Fy(We)===1?"":"/"}${We}`;for(let Kt of Se.nodes)if(Kt.callFrame.url){let Sr=Z_(Kt.callFrame.url);ug(St,Sr,M)?Kt.callFrame.url=FT(St,Sr,St,_d(M),!0):c.test(Sr)||(Kt.callFrame.url=(Qe.has(Sr)?Qe:Qe.set(Sr,`external${tt}.js`)).get(Sr),tt++)}return Se}function Oe(Se){if(g&&g!=="stopping"){let tt=g;return g.post("Profiler.stop",(Qe,{profile:We})=>{var St;if(!Qe){(St=_e(k))!=null&&St.isDirectory()&&(k=_.join(k,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`));try{u.mkdirSync(_.dirname(k),{recursive:!0})}catch{}u.writeFileSync(k,JSON.stringify(le(We)))}g=void 0,tt.disconnect(),Se()}),g="stopping",!0}else return Se(),!1}function be(){return F==="win32"||F==="win64"?!1:!ut(ue(__filename))}function ue(Se){return Se.replace(/\w/g,tt=>{let Qe=tt.toUpperCase();return tt===Qe?tt.toLowerCase():Qe})}function De(Se,tt,Qe){u.watchFile(Se,{persistent:!0,interval:Qe},St);let We;return{close:()=>u.unwatchFile(Se,St)};function St(Kt,Sr){let nn=+Sr.mtime==0||We===2;if(+Kt.mtime==0){if(nn)return;We=2}else if(nn)We=0;else{if(+Kt.mtime==+Sr.mtime)return;We=1}tt(Se,We,Kt.mtime)}}function Ce(Se,tt,Qe){return u.watch(Se,G?{persistent:!0,recursive:!!tt}:{persistent:!0},Qe)}function Ae(Se,tt){let Qe;try{Qe=u.readFileSync(Se)}catch{return}let We=Qe.length;if(We>=2&&Qe[0]===254&&Qe[1]===255){We&=-2;for(let St=0;St=2&&Qe[0]===255&&Qe[1]===254?Qe.toString("utf16le",2):We>=3&&Qe[0]===239&&Qe[1]===187&&Qe[2]===191?Qe.toString("utf8",3):Qe.toString("utf8")}function Fe(Se,tt,Qe){Qe&&(tt="\uFEFF"+tt);let We;try{We=u.openSync(Se,"w"),u.writeSync(We,tt,void 0,"utf8")}finally{We!==void 0&&u.closeSync(We)}}function Be(Se){try{let tt=u.readdirSync(Se||".",{withFileTypes:!0}),Qe=[],We=[];for(let St of tt){let Kt=typeof St=="string"?St:St.name;if(Kt==="."||Kt==="..")continue;let Sr;if(typeof St=="string"||St.isSymbolicLink()){let nn=Xi(Se,Kt);if(Sr=_e(nn),!Sr)continue}else Sr=St;Sr.isFile()?Qe.push(Kt):Sr.isDirectory()&&We.push(Kt)}return Qe.sort(),We.sort(),{files:Qe,directories:We}}catch{return Qhe}}function de(Se,tt,Qe,We,St){return Whe(Se,tt,Qe,We,M,process.cwd(),St,Be,Ve)}function ze(Se,tt){let Qe=_e(Se);if(!Qe)return!1;switch(tt){case 0:return Qe.isFile();case 1:return Qe.isDirectory();default:return!1}}function ut(Se){return ze(Se,0)}function je(Se){return ze(Se,1)}function ve(Se){return Be(Se).directories.slice()}function Le(Se){return Se.length<260?u.realpathSync.native(Se):u.realpathSync(Se)}function Ve(Se){try{return U(Se)}catch{return Se}}function nt(Se){var tt;return(tt=_e(Se))==null?void 0:tt.mtime}function It(Se,tt){try{u.utimesSync(Se,tt,tt)}catch{return}}function ke(Se){try{return u.unlinkSync(Se)}catch{return}}function _t(Se){let tt=y.createHash("sha256");return tt.update(Se),tt.digest("hex")}}let a;return rO()&&(a=n()),a&&bR(a),a})();function R$(t){f_=t}f_&&f_.getEnvironmentVariable&&(Ste(f_),$.setAssertionLevel(/^development$/i.test(f_.getEnvironmentVariable("NODE_ENV"))?1:0)),f_&&f_.debugMode&&($.isDebugging=!0);var Gl="/",x4="\\",xR="://",L$=/\\/g;function XD(t){return t===47||t===92}function TR(t){return kO(t)<0}function qd(t){return kO(t)>0}function jI(t){let n=kO(t);return n>0&&n===t.length}function YD(t){return kO(t)!==0}function ch(t){return/^\.\.?(?:$|[\\/])/.test(t)}function EO(t){return!YD(t)&&!ch(t)}function eA(t){return t_(t).includes(".")}function Au(t,n){return t.length>n.length&&au(t,n)}function _p(t,n){for(let a of n)if(Au(t,a))return!0;return!1}function uS(t){return t.length>0&&XD(t.charCodeAt(t.length-1))}function zW(t){return t>=97&&t<=122||t>=65&&t<=90}function qW(t,n){let a=t.charCodeAt(n);if(a===58)return n+1;if(a===37&&t.charCodeAt(n+1)===51){let c=t.charCodeAt(n+2);if(c===97||c===65)return n+3}return-1}function kO(t){if(!t)return 0;let n=t.charCodeAt(0);if(n===47||n===92){if(t.charCodeAt(1)!==n)return 1;let c=t.indexOf(n===47?Gl:x4,2);return c<0?t.length:c+1}if(zW(n)&&t.charCodeAt(1)===58){let c=t.charCodeAt(2);if(c===47||c===92)return 3;if(t.length===2)return 2}let a=t.indexOf(xR);if(a!==-1){let c=a+xR.length,u=t.indexOf(Gl,c);if(u!==-1){let _=t.slice(0,a),f=t.slice(c,u);if(_==="file"&&(f===""||f==="localhost")&&zW(t.charCodeAt(u+1))){let y=qW(t,u+2);if(y!==-1){if(t.charCodeAt(y)===47)return~(y+1);if(y===t.length)return~y}}return~(u+1)}return~t.length}return 0}function Fy(t){let n=kO(t);return n<0?~n:n}function mo(t){t=Z_(t);let n=Fy(t);return n===t.length?t:(t=dv(t),t.slice(0,Math.max(n,t.lastIndexOf(Gl))))}function t_(t,n,a){if(t=Z_(t),Fy(t)===t.length)return"";t=dv(t);let u=t.slice(Math.max(Fy(t),t.lastIndexOf(Gl)+1)),_=n!==void 0&&a!==void 0?nE(u,n,a):void 0;return _?u.slice(0,u.length-_.length):u}function M$(t,n,a){if(Ca(n,".")||(n="."+n),t.length>=n.length&&t.charCodeAt(t.length-n.length)===46){let c=t.slice(t.length-n.length);if(a(c,n))return c}}function xte(t,n,a){if(typeof n=="string")return M$(t,n,a)||"";for(let c of n){let u=M$(t,c,a);if(u)return u}return""}function nE(t,n,a){if(n)return xte(dv(t),n,a?F1:qm);let c=t_(t),u=c.lastIndexOf(".");return u>=0?c.substring(u):""}function Tte(t,n){let a=t.substring(0,n),c=t.substring(n).split(Gl);return c.length&&!Yr(c)&&c.pop(),[a,...c]}function Cd(t,n=""){return t=Xi(n,t),Tte(t,Fy(t))}function pS(t,n){return t.length===0?"":(t[0]&&r_(t[0]))+t.slice(1,n).join(Gl)}function Z_(t){return t.includes("\\")?t.replace(L$,Gl):t}function iE(t){if(!Pt(t))return[];let n=[t[0]];for(let a=1;a1){if(n[n.length-1]!==".."){n.pop();continue}}else if(n[0])continue}n.push(c)}}return n}function Xi(t,...n){t&&(t=Z_(t));for(let a of n)a&&(a=Z_(a),!t||Fy(a)!==0?t=a:t=r_(t)+a);return t}function mb(t,...n){return Qs(Pt(n)?Xi(t,...n):Z_(t))}function Jk(t,n){return iE(Cd(t,n))}function za(t,n){let a=Fy(t);a===0&&n?(t=Xi(n,t),a=Fy(t)):t=Z_(t);let c=JW(t);if(c!==void 0)return c.length>a?dv(c):c;let u=t.length,_=t.substring(0,a),f,y=a,g=y,k=y,T=a!==0;for(;yg&&(f??(f=t.substring(0,g-1)),g=y);let O=t.indexOf(Gl,y+1);O===-1&&(O=u);let F=O-g;if(F===1&&t.charCodeAt(y)===46)f??(f=t.substring(0,k));else if(F===2&&t.charCodeAt(y)===46&&t.charCodeAt(y+1)===46)if(!T)f!==void 0?f+=f.length===a?"..":"/..":k=y+2;else if(f===void 0)k-2>=0?f=t.substring(0,Math.max(a,t.lastIndexOf(Gl,k-2))):f=t.substring(0,k);else{let M=f.lastIndexOf(Gl);M!==-1?f=f.substring(0,Math.max(a,M)):f=_,f.length===a&&(T=a!==0)}else f!==void 0?(f.length!==a&&(f+=Gl),T=!0,f+=t.substring(g,O)):(T=!0,k=O);y=O+1}return f??(u>a?dv(t):t)}function Qs(t){t=Z_(t);let n=JW(t);return n!==void 0?n:(n=za(t,""),n&&uS(t)?r_(n):n)}function JW(t){if(!tA.test(t))return t;let n=t.replace(/\/\.\//g,"/");if(n.startsWith("./")&&(n=n.slice(2)),n!==t&&(t=n,!tA.test(t)))return t}function VW(t){return t.length===0?"":t.slice(1).join(Gl)}function ER(t,n){return VW(Jk(t,n))}function wl(t,n,a){let c=qd(t)?Qs(t):za(t,n);return a(c)}function dv(t){return uS(t)?t.substr(0,t.length-1):t}function r_(t){return uS(t)?t:t+Gl}function Tx(t){return!YD(t)&&!ch(t)?"./"+t:t}function Og(t,n,a,c){let u=a!==void 0&&c!==void 0?nE(t,a,c):nE(t);return u?t.slice(0,t.length-u.length)+(Ca(n,".")?n:"."+n):t}function T4(t,n){let a=sie(t);return a?t.slice(0,t.length-a.length)+(Ca(n,".")?n:"."+n):Og(t,n)}var tA=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function j$(t,n,a){if(t===n)return 0;if(t===void 0)return-1;if(n===void 0)return 1;let c=t.substring(0,Fy(t)),u=n.substring(0,Fy(n)),_=JD(c,u);if(_!==0)return _;let f=t.substring(c.length),y=n.substring(u.length);if(!tA.test(f)&&!tA.test(y))return a(f,y);let g=iE(Cd(t)),k=iE(Cd(n)),T=Math.min(g.length,k.length);for(let C=1;C0==Fy(n)>0,"Paths must either both be absolute or both be relative");let _=WW(t,n,(typeof a=="boolean"?a:!1)?F1:qm,typeof a=="function"?a:vl);return pS(_)}function BI(t,n,a){return qd(t)?FT(n,t,n,a,!1):t}function Vk(t,n,a){return Tx(lh(mo(t),n,a))}function FT(t,n,a,c,u){let _=WW(mb(a,t),mb(a,n),qm,c),f=_[0];if(u&&qd(f)){let y=f.charAt(0)===Gl?"file://":"file:///";_[0]=y+f}return pS(_)}function Ex(t,n){for(;;){let a=n(t);if(a!==void 0)return a;let c=mo(t);if(c===t)return;t=c}}function CO(t){return au(t,"/node_modules")}function I(t,n,a,c,u,_,f){return{code:t,category:n,key:a,message:c,reportsUnnecessary:u,elidedInCompatabilityPyramid:_,reportsDeprecated:f}}var x={Unterminated_string_literal:I(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:I(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:I(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:I(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:I(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:I(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:I(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:I(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:I(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:I(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:I(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:I(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:I(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:I(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:I(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:I(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:I(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:I(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:I(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:I(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:I(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:I(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:I(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:I(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:I(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:I(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:I(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:I(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:I(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:I(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:I(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:I(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:I(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:I(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:I(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:I(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:I(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:I(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:I(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:I(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:I(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:I(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:I(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:I(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:I(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:I(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:I(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:I(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:I(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:I(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:I(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:I(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:I(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:I(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:I(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:I(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:I(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:I(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:I(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:I(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:I(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:I(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:I(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:I(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:I(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:I(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:I(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:I(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:I(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:I(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:I(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:I(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:I(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:I(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:I(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:I(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:I(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:I(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:I(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:I(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:I(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:I(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:I(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:I(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:I(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:I(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:I(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:I(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:I(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:I(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:I(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:I(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:I(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:I(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:I(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:I(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:I(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:I(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:I(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:I(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:I(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:I(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:I(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:I(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:I(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:I(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:I(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:I(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:I(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:I(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:I(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:I(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:I(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:I(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:I(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:I(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:I(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:I(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:I(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:I(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:I(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:I(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:I(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:I(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:I(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:I(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:I(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:I(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:I(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:I(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:I(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:I(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:I(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:I(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:I(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:I(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:I(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:I(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:I(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:I(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:I(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:I(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:I(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:I(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:I(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:I(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:I(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:I(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:I(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:I(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:I(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:I(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:I(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:I(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:I(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:I(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:I(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:I(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:I(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:I(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:I(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:I(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:I(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:I(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:I(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:I(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:I(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:I(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:I(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:I(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:I(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:I(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:I(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:I(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:I(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:I(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:I(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:I(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:I(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:I(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:I(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:I(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:I(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:I(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:I(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:I(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:I(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:I(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:I(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:I(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:I(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:I(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:I(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:I(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:I(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:I(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:I(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:I(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:I(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:I(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:I(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:I(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:I(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:I(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:I(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:I(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:I(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:I(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:I(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:I(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:I(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:I(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:I(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:I(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:I(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:I(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:I(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:I(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:I(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:I(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:I(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:I(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:I(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:I(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:I(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:I(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:I(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:I(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:I(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:I(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:I(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:I(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:I(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:I(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:I(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:I(1286,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:I(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:I(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:I(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:I(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:I(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:I(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:I(1293,1,"ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:I(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:I(1295,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript."),with_statements_are_not_allowed_in_an_async_function_block:I(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:I(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:I(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:I(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:I(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:I(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:I(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:I(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:I(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:I(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:I(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:I(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:I(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:I(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext:I(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:I(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:I(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:I(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:I(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:I(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:I(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:I(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:I(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:I(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:I(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:I(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:I(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:I(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:I(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:I(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:I(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:I(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext:I(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'."),A_label_is_not_allowed_here:I(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:I(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:I(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:I(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:I(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:I(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:I(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:I(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:I(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:I(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:I(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:I(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:I(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:I(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:I(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:I(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:I(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:I(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:I(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:I(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:I(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:I(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:I(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:I(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:I(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:I(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:I(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:I(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:I(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:I(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:I(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:I(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:I(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:I(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:I(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:I(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:I(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:I(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:I(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:I(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:I(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:I(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:I(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:I(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:I(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:I(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:I(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:I(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:I(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:I(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:I(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:I(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:I(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:I(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:I(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:I(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:I(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:I(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:I(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:I(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:I(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:I(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:I(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:I(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:I(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:I(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:I(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:I(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:I(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:I(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:I(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:I(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:I(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:I(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:I(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:I(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:I(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:I(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:I(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:I(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:I(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:I(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:I(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:I(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:I(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:I(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:I(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:I(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:I(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:I(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:I(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:I(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:I(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:I(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:I(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:I(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:I(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:I(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:I(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:I(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:I(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:I(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:I(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:I(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:I(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:I(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:I(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:I(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:I(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:I(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:I(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:I(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:I(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:I(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:I(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:I(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:I(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:I(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:I(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:I(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:I(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:I(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:I(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:I(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:I(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:I(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:I(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:I(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:I(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:I(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:I(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:I(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:I(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:I(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:I(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:I(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:I(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:I(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:I(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:I(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:I(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:I(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:I(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:I(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:I(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:I(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:I(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:I(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:I(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:I(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:I(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:I(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:I(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:I(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:I(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:I(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:I(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:I(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:I(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:I(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:I(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:I(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:I(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:I(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:I(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:I(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:I(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:I(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:I(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:I(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:I(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:I(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:I(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:I(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:I(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:I(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:I(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:I(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:I(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:I(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:I(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:I(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),using_declarations_are_not_allowed_in_ambient_contexts:I(1545,1,"using_declarations_are_not_allowed_in_ambient_contexts_1545","'using' declarations are not allowed in ambient contexts."),await_using_declarations_are_not_allowed_in_ambient_contexts:I(1546,1,"await_using_declarations_are_not_allowed_in_ambient_contexts_1546","'await using' declarations are not allowed in ambient contexts."),The_types_of_0_are_incompatible_between_these_types:I(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:I(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:I(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:I(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:I(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:I(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:I(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:I(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:I(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:I(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:I(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:I(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:I(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:I(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:I(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:I(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:I(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:I(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:I(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:I(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:I(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:I(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:I(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:I(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:I(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:I(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:I(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:I(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:I(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:I(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:I(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:I(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:I(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:I(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:I(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:I(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:I(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:I(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:I(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:I(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:I(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:I(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:I(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:I(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:I(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:I(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:I(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:I(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:I(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:I(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:I(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:I(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:I(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:I(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:I(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:I(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:I(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:I(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:I(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:I(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:I(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:I(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:I(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:I(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:I(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:I(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:I(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:I(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:I(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:I(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:I(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:I(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:I(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:I(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:I(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:I(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:I(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:I(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:I(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:I(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:I(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:I(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:I(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:I(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:I(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:I(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:I(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:I(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:I(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:I(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:I(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:I(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:I(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:I(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:I(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:I(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:I(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:I(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:I(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:I(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:I(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:I(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:I(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:I(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:I(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:I(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:I(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:I(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:I(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:I(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:I(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:I(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:I(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:I(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:I(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:I(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:I(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:I(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:I(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:I(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:I(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:I(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:I(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:I(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:I(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:I(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:I(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:I(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:I(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:I(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:I(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:I(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:I(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:I(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:I(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:I(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:I(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:I(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:I(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:I(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:I(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:I(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:I(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:I(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:I(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:I(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:I(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:I(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:I(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:I(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:I(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:I(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:I(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:I(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:I(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:I(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:I(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:I(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:I(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:I(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:I(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:I(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:I(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:I(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:I(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:I(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:I(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:I(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:I(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:I(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:I(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:I(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:I(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:I(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:I(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:I(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:I(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:I(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:I(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:I(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:I(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:I(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:I(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:I(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:I(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:I(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:I(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:I(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:I(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:I(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:I(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:I(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:I(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:I(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:I(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:I(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:I(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:I(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:I(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:I(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:I(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:I(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:I(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:I(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:I(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:I(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:I(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:I(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:I(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:I(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:I(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:I(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:I(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:I(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:I(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:I(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:I(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:I(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:I(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:I(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:I(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:I(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:I(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:I(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:I(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:I(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:I(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:I(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:I(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:I(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:I(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:I(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:I(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:I(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:I(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:I(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:I(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:I(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:I(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:I(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:I(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:I(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:I(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:I(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:I(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:I(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:I(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:I(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:I(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:I(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:I(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:I(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:I(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:I(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:I(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:I(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:I(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:I(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:I(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:I(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:I(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:I(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:I(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:I(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:I(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:I(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:I(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:I(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:I(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:I(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:I(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:I(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:I(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:I(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:I(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:I(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:I(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:I(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:I(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:I(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:I(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:I(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:I(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:I(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:I(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:I(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:I(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:I(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:I(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:I(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:I(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:I(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:I(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:I(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:I(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:I(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:I(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:I(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:I(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:I(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:I(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:I(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:I(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:I(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:I(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:I(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:I(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:I(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:I(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:I(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:I(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:I(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:I(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:I(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:I(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:I(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:I(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:I(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:I(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:I(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:I(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:I(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:I(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:I(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:I(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:I(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:I(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:I(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:I(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:I(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:I(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:I(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:I(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:I(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:I(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:I(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:I(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:I(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:I(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:I(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:I(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:I(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:I(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:I(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:I(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:I(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:I(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:I(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:I(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:I(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:I(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:I(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:I(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:I(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:I(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:I(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:I(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:I(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:I(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:I(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:I(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:I(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:I(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:I(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:I(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:I(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:I(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:I(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:I(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:I(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:I(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:I(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:I(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:I(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:I(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:I(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:I(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:I(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:I(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:I(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:I(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:I(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:I(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:I(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:I(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:I(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:I(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:I(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:I(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:I(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:I(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:I(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0:I(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 and above with module {0}."),Cannot_find_lib_definition_for_0:I(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:I(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:I(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:I(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:I(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:I(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:I(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:I(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:I(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:I(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:I(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:I(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:I(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:I(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:I(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:I(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:I(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:I(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:I(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:I(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:I(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:I(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:I(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:I(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:I(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:I(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:I(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:I(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:I(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:I(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:I(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:I(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:I(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:I(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:I(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:I(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:I(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:I(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:I(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:I(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:I(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:I(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:I(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:I(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:I(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:I(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:I(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:I(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:I(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:I(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:I(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:I(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:I(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:I(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:I(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:I(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:I(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:I(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:I(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:I(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:I(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:I(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:I(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:I(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:I(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:I(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:I(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:I(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:I(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:I(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:I(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:I(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:I(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:I(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:I(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:I(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:I(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:I(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:I(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:I(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:I(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:I(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:I(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:I(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:I(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:I(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:I(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:I(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks:I(2815,1,"arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815","'arguments' cannot be referenced in property initializers or class static initialization blocks."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:I(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:I(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:I(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:I(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:I(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:I(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:I(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:I(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:I(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:I(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:I(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:I(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:I(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:I(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:I(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:I(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:I(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:I(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:I(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:I(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:I(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:I(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:I(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:I(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:I(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:I(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:I(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:I(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:I(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:I(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:I(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:I(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:I(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:I(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:I(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:I(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:I(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:I(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:I(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:I(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:I(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:I(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:I(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:I(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:I(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:I(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:I(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:I(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:I(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:I(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:I(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:I(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:I(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:I(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),This_expression_is_never_nullish:I(2881,1,"This_expression_is_never_nullish_2881","This expression is never nullish."),Import_declaration_0_is_using_private_name_1:I(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:I(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:I(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:I(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:I(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:I(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:I(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:I(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:I(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:I(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:I(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:I(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:I(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:I(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:I(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:I(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:I(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:I(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:I(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:I(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:I(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:I(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:I(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:I(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:I(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:I(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:I(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:I(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:I(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:I(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:I(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:I(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:I(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:I(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:I(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:I(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:I(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:I(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:I(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:I(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:I(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:I(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:I(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:I(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:I(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:I(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:I(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:I(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:I(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:I(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:I(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:I(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:I(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:I(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:I(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:I(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:I(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:I(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:I(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:I(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:I(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:I(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:I(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:I(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:I(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:I(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:I(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:I(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:I(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:I(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:I(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:I(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:I(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:I(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:I(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:I(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:I(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:I(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:I(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:I(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:I(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:I(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:I(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:I(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:I(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:I(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:I(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:I(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:I(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:I(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:I(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:I(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:I(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:I(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:I(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:I(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:I(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:I(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:I(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),The_current_host_does_not_support_the_0_option:I(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:I(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:I(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:I(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:I(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:I(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:I(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:I(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:I(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:I(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:I(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:I(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:I(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:I(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:I(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:I(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:I(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:I(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:I(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:I(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:I(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:I(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:I(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:I(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:I(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:I(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:I(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:I(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:I(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:I(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:I(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:I(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:I(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:I(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:I(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:I(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:I(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:I(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:I(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:I(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:I(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:I(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:I(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:I(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:I(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:I(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:I(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:I(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:I(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:I(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:I(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:I(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:I(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:I(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:I(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:I(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:I(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:I(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:I(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:I(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:I(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:I(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:I(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:I(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:I(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:I(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:I(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:I(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:I(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:I(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:I(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:I(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:I(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:I(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:I(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:I(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:I(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:I(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:I(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:I(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:I(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:I(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:I(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:I(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:I(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:I(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:I(6024,3,"options_6024","options"),file:I(6025,3,"file_6025","file"),Examples_Colon_0:I(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:I(6027,3,"Options_Colon_6027","Options:"),Version_0:I(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:I(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:I(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:I(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:I(6034,3,"KIND_6034","KIND"),FILE:I(6035,3,"FILE_6035","FILE"),VERSION:I(6036,3,"VERSION_6036","VERSION"),LOCATION:I(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:I(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:I(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:I(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:I(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:I(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:I(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:I(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:I(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:I(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:I(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:I(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:I(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:I(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:I(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:I(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:I(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:I(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:I(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:I(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:I(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:I(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:I(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:I(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:I(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:I(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:I(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:I(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:I(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:I(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:I(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:I(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:I(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:I(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:I(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:I(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:I(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:I(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:I(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:I(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:I(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:I(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:I(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:I(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:I(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:I(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:I(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:I(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:I(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:I(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:I(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:I(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:I(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:I(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:I(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:I(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:I(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:I(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:I(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:I(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:I(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:I(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:I(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:I(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:I(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:I(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:I(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:I(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:I(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:I(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:I(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:I(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:I(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:I(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:I(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:I(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:I(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:I(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:I(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:I(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:I(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:I(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:I(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:I(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:I(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:I(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:I(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:I(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:I(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:I(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:I(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:I(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:I(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:I(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:I(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:I(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:I(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:I(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:I(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:I(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:I(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:I(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:I(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:I(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:I(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:I(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:I(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:I(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:I(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:I(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:I(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:I(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:I(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:I(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:I(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:I(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:I(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:I(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:I(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:I(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:I(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:I(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:I(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:I(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:I(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:I(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:I(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:I(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:I(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:I(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:I(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:I(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:I(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:I(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:I(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:I(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:I(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:I(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:I(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:I(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:I(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:I(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:I(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:I(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:I(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:I(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:I(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:I(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:I(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:I(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:I(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:I(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:I(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:I(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:I(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:I(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:I(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:I(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:I(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:I(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:I(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:I(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:I(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:I(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:I(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:I(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:I(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:I(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:I(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:I(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:I(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:I(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:I(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:I(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:I(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:I(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:I(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:I(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:I(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:I(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:I(6244,3,"Modules_6244","Modules"),File_Management:I(6245,3,"File_Management_6245","File Management"),Emit:I(6246,3,"Emit_6246","Emit"),JavaScript_Support:I(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:I(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:I(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:I(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:I(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:I(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:I(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:I(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:I(6255,3,"Projects_6255","Projects"),Output_Formatting:I(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:I(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:I(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:I(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:I(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:I(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:I(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:I(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:I(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:I(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:I(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:I(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:I(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:I(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:I(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:I(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:I(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:I(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:I(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:I(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:I(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:I(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:I(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:I(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:I(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),File_Layout:I(6284,3,"File_Layout_6284","File Layout"),Environment_Settings:I(6285,3,"Environment_Settings_6285","Environment Settings"),See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule:I(6286,3,"See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286","See also https://aka.ms/tsconfig/module"),For_nodejs_Colon:I(6287,3,"For_nodejs_Colon_6287","For nodejs:"),and_npm_install_D_types_Slashnode:I(6290,3,"and_npm_install_D_types_Slashnode_6290","and npm install -D @types/node"),Other_Outputs:I(6291,3,"Other_Outputs_6291","Other Outputs"),Stricter_Typechecking_Options:I(6292,3,"Stricter_Typechecking_Options_6292","Stricter Typechecking Options"),Style_Options:I(6293,3,"Style_Options_6293","Style Options"),Recommended_Options:I(6294,3,"Recommended_Options_6294","Recommended Options"),Enable_project_compilation:I(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:I(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:I(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:I(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:I(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:I(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:I(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:I(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:I(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:I(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:I(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:I(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:I(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:I(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:I(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:I(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:I(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:I(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:I(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:I(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:I(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:I(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:I(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:I(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:I(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:I(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:I(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:I(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:I(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:I(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:I(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:I(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:I(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:I(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:I(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:I(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:I(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:I(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:I(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:I(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:I(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:I(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:I(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:I(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:I(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:I(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:I(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:I(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:I(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:I(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:I(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:I(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:I(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:I(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:I(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:I(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:I(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:I(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:I(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:I(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:I(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:I(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:I(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:I(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:I(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:I(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:I(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:I(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:I(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:I(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:I(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:I(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:I(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:I(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:I(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:I(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:I(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files:I(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:I(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:I(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:I(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:I(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:I(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:I(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:I(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:I(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:I(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:I(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:I(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:I(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:I(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:I(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:I(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:I(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:I(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:I(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:I(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:I(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:I(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:I(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:I(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:I(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:I(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:I(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:I(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:I(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:I(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:I(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:I(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:I(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:I(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:I(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:I(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:I(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:I(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:I(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:I(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:I(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:I(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:I(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:I(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:I(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:I(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:I(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:I(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:I(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:I(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:I(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:I(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:I(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:I(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:I(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:I(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:I(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:I(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:I(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:I(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:I(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:I(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:I(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:I(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:I(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:I(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:I(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:I(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:I(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:I(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:I(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:I(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:I(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:I(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:I(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:I(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:I(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:I(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:I(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:I(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:I(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:I(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:I(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:I(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:I(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:I(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:I(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:I(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:I(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:I(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:I(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:I(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:I(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:I(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:I(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:I(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:I(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:I(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:I(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:I(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:I(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:I(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:I(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:I(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:I(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:I(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:I(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:I(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:I(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:I(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:I(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:I(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:I(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:I(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:I(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:I(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:I(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:I(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),Default_catch_clause_variables_as_unknown_instead_of_any:I(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:I(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:I(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:I(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:I(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:I(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),one_of_Colon:I(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:I(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:I(6902,3,"type_Colon_6902","type:"),default_Colon:I(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:I(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:I(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:I(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:I(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:I(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:I(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:I(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:I(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:I(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:I(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:I(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:I(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:I(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:I(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:I(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:I(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:I(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:I(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:I(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:I(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:I(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:I(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:I(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:I(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:I(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:I(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:I(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:I(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:I(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:I(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:I(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:I(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:I(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:I(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:I(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:I(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:I(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:I(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:I(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:I(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:I(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:I(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:I(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:I(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:I(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:I(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:I(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:I(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:I(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:I(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:I(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:I(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:I(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:I(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:I(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:I(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:I(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:I(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:I(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:I(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:I(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:I(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:I(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:I(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:I(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:I(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:I(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:I(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:I(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:I(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:I(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:I(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:I(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:I(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:I(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:I(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:I(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:I(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:I(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:I(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:I(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:I(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:I(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:I(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:I(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:I(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:I(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:I(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:I(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:I(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:I(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:I(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:I(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:I(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:I(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:I(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:I(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:I(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:I(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:I(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:I(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:I(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:I(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:I(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:I(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:I(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:I(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:I(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:I(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:I(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:I(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:I(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:I(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:I(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:I(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:I(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:I(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:I(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:I(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:I(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:I(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:I(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:I(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:I(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:I(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:I(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:I(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:I(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:I(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:I(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:I(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:I(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:I(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:I(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:I(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:I(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:I(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:I(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:I(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:I(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:I(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:I(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:I(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:I(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:I(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:I(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:I(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:I(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:I(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:I(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:I(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:I(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:I(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:I(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:I(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:I(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:I(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:I(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:I(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:I(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:I(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:I(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:I(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:I(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:I(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:I(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:I(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:I(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:I(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:I(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:I(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:I(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:I(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:I(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:I(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:I(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:I(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:I(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:I(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:I(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:I(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:I(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:I(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:I(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:I(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:I(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:I(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:I(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:I(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:I(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:I(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:I(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:I(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:I(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:I(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:I(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:I(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:I(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:I(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:I(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:I(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:I(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:I(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:I(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:I(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:I(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:I(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:I(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:I(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:I(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:I(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:I(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:I(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:I(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:I(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:I(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:I(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:I(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:I(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:I(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:I(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:I(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:I(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:I(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:I(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:I(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:I(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:I(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:I(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:I(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:I(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:I(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:I(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:I(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:I(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:I(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:I(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:I(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:I(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:I(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:I(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:I(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:I(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:I(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:I(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:I(95005,3,"Extract_function_95005","Extract function"),Extract_constant:I(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:I(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:I(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:I(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:I(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:I(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:I(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:I(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:I(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:I(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:I(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:I(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:I(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:I(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:I(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:I(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:I(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:I(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:I(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:I(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:I(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:I(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:I(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:I(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:I(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:I(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:I(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:I(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:I(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:I(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:I(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:I(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:I(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:I(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:I(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:I(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:I(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:I(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:I(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:I(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:I(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:I(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:I(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:I(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:I(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:I(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:I(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:I(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:I(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:I(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:I(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:I(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:I(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:I(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:I(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:I(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:I(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:I(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:I(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:I(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:I(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:I(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:I(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:I(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:I(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:I(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:I(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:I(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:I(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:I(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:I(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:I(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:I(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:I(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:I(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:I(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:I(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:I(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:I(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:I(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:I(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:I(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:I(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:I(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:I(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:I(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:I(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:I(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:I(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:I(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:I(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:I(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:I(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:I(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:I(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:I(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:I(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:I(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:I(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:I(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:I(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:I(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:I(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:I(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:I(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:I(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:I(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:I(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:I(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:I(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:I(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:I(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:I(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:I(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:I(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:I(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:I(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:I(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:I(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:I(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:I(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:I(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:I(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:I(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:I(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:I(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:I(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:I(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:I(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:I(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:I(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:I(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:I(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:I(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:I(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:I(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:I(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:I(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:I(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:I(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:I(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:I(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:I(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:I(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:I(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:I(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:I(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:I(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:I(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:I(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:I(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:I(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:I(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:I(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:I(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:I(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:I(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:I(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:I(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:I(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:I(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:I(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:I(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:I(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:I(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:I(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:I(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:I(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:I(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:I(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:I(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:I(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:I(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:I(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:I(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:I(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:I(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:I(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:I(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:I(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:I(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:I(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:I(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:I(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:I(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:I(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:I(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:I(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:I(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:I(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:I(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:I(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:I(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:I(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:I(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:I(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:I(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:I(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:I(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:I(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:I(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:I(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:I(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:I(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:I(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:I(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:I(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:I(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:I(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:I(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:I(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:I(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:I(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:I(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:I(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:I(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:I(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:I(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:I(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:I(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:I(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:I(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:I(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:I(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:I(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:I(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:I(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:I(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:I(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:I(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:I(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:I(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:I(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'."),Default_imports_are_not_allowed_in_a_deferred_import:I(18058,1,"Default_imports_are_not_allowed_in_a_deferred_import_18058","Default imports are not allowed in a deferred import."),Named_imports_are_not_allowed_in_a_deferred_import:I(18059,1,"Named_imports_are_not_allowed_in_a_deferred_import_18059","Named imports are not allowed in a deferred import."),Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:I(18060,1,"Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060","Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'."),_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:I(18061,1,"_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061","'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?")};function Bf(t){return t>=80}function $I(t){return t===32||Bf(t)}var UI={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,defer:166,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},Ete=new Map(Object.entries(UI)),U$=new Map(Object.entries({...UI,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),z$=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),kR=new Map([[1,C_.RegularExpressionFlagsHasIndices],[16,C_.RegularExpressionFlagsDotAll],[32,C_.RegularExpressionFlagsUnicode],[64,C_.RegularExpressionFlagsUnicodeSets],[128,C_.RegularExpressionFlagsSticky]]),q$=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],E4=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],GW=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],kte=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],Cte=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,HW=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,KW=/@(?:see|link)/i;function k4(t,n){if(t=2?k4(t,GW):k4(t,q$)}function QW(t,n){return n>=2?k4(t,kte):k4(t,E4)}function J$(t){let n=[];return t.forEach((a,c)=>{n[a]=c}),n}var Dte=J$(U$);function Zs(t){return Dte[t]}function kx(t){return U$.get(t)}var V$=J$(z$);function ZW(t){return V$[t]}function DO(t){return z$.get(t)}function oE(t){let n=[],a=0,c=0;for(;a127&&Dd(u)&&(n.push(c),c=a);break}}return n.push(c),n}function C4(t,n,a,c){return t.getPositionOfLineAndCharacter?t.getPositionOfLineAndCharacter(n,a,c):AO(Ry(t),n,a,t.text,c)}function AO(t,n,a,c,u){(n<0||n>=t.length)&&(u?n=n<0?0:n>=t.length?t.length-1:n:$.fail(`Bad line number. Line: ${n}, lineStarts.length: ${t.length} , line map is correct? ${c!==void 0?__(t,oE(c)):"unknown"}`));let _=t[n]+a;return u?_>t[n+1]?t[n+1]:typeof c=="string"&&_>c.length?c.length:_:(n=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function Dd(t){return t===10||t===13||t===8232||t===8233}function Wk(t){return t>=48&&t<=57}function CR(t){return Wk(t)||t>=65&&t<=70||t>=97&&t<=102}function W$(t){return t>=65&&t<=90||t>=97&&t<=122}function XW(t){return W$(t)||Wk(t)||t===95}function DR(t){return t>=48&&t<=55}function D4(t,n){let a=t.charCodeAt(n);switch(a){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return n===0;default:return a>127}}function _c(t,n,a,c,u){if(bv(n))return n;let _=!1;for(;;){let f=t.charCodeAt(n);switch(f){case 13:t.charCodeAt(n+1)===10&&n++;case 10:if(n++,a)return n;_=!!u;continue;case 9:case 11:case 12:case 32:n++;continue;case 47:if(c)break;if(t.charCodeAt(n+1)===47){for(n+=2;n127&&p0(f)){n++;continue}break}return n}}var AR=7;function RT(t,n){if($.assert(n>=0),n===0||Dd(t.charCodeAt(n-1))){let a=t.charCodeAt(n);if(n+AR=0&&a127&&p0(M)){C&&Dd(M)&&(T=!0),a++;continue}break e}}return C&&(F=u(y,g,k,T,_,F)),F}function A4(t,n,a,c){return sE(!1,t,n,!1,a,c)}function w4(t,n,a,c){return sE(!1,t,n,!0,a,c)}function G$(t,n,a,c,u){return sE(!0,t,n,!1,a,c,u)}function JI(t,n,a,c,u){return sE(!0,t,n,!0,a,c,u)}function eG(t,n,a,c,u,_=[]){return _.push({kind:a,pos:t,end:n,hasTrailingNewLine:c}),_}function my(t,n){return G$(t,n,eG,void 0,void 0)}function hb(t,n){return JI(t,n,eG,void 0,void 0)}function VI(t){let n=wR.exec(t);if(n)return n[0]}function pg(t,n){return W$(t)||t===36||t===95||t>127&&fv(t,n)}function j1(t,n,a){return XW(t)||t===36||(a===1?t===45||t===58:!1)||t>127&&QW(t,n)}function Jd(t,n,a){let c=iA(t,0);if(!pg(c,n))return!1;for(let u=Ly(c);uT,getStartPos:()=>T,getTokenEnd:()=>g,getTextPos:()=>g,getToken:()=>O,getTokenStart:()=>C,getTokenPos:()=>C,getTokenText:()=>y.substring(C,g),getTokenValue:()=>F,hasUnicodeEscape:()=>(M&1024)!==0,hasExtendedUnicodeEscape:()=>(M&8)!==0,hasPrecedingLineBreak:()=>(M&1)!==0,hasPrecedingJSDocComment:()=>(M&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(M&32768)!==0,isIdentifier:()=>O===80||O>118,isReservedWord:()=>O>=83&&O<=118,isUnterminated:()=>(M&4)!==0,getCommentDirectives:()=>U,getNumericLiteralFlags:()=>M&25584,getTokenFlags:()=>M,reScanGreaterToken:Qe,reScanAsteriskEqualsToken:We,reScanSlashToken:St,reScanTemplateToken:$t,reScanTemplateHeadOrNoSubstitutionTemplate:Dr,scanJsxIdentifier:Wa,scanJsxAttributeValue:oo,reScanJsxAttributeValue:Oi,reScanJsxToken:Qn,reScanLessThanToken:Ko,reScanHashToken:is,reScanQuestionToken:sr,reScanInvalidIdentifier:Se,scanJsxToken:uo,scanJsDocToken:ft,scanJSDocCommentTextToken:$o,scan:ke,getText:Eo,clearCommentDirectives:ya,setText:Ls,setScriptTarget:Cn,setLanguageVariant:Es,setScriptKind:Dt,setJSDocParsingMode:ur,setOnError:yc,resetTokenState:Ee,setTextPos:Ee,setSkipJsDocLeadingAsterisks:Bt,tryScan:vo,lookAhead:ai,scanRange:Wr};return $.isDebugging&&Object.defineProperty(Q,"__debugShowCurrentPositionInText",{get:()=>{let ye=Q.getText();return ye.slice(0,Q.getTokenFullStart())+"\u2551"+ye.slice(Q.getTokenFullStart())}}),Q;function re(ye){return iA(y,ye)}function ae(ye){return ye>=0&&ye=0&&ye=65&&Zt<=70)Zt+=32;else if(!(Zt>=48&&Zt<=57||Zt>=97&&Zt<=102))break;Ot.push(Zt),g++,at=!1}return Ot.length=k){Ct+=y.substring(Ot,g),M|=4,le(x.Unterminated_string_literal);break}let ar=_e(g);if(ar===et){Ct+=y.substring(Ot,g),g++;break}if(ar===92&&!ye){Ct+=y.substring(Ot,g),Ct+=ze(3),Ot=g;continue}if((ar===10||ar===13)&&!ye){Ct+=y.substring(Ot,g),M|=4,le(x.Unterminated_string_literal);break}g++}return Ct}function de(ye){let et=_e(g)===96;g++;let Ct=g,Ot="",ar;for(;;){if(g>=k){Ot+=y.substring(Ct,g),M|=4,le(x.Unterminated_template_literal),ar=et?15:18;break}let at=_e(g);if(at===96){Ot+=y.substring(Ct,g),g++,ar=et?15:18;break}if(at===36&&g+1=k)return le(x.Unexpected_end_of_text),"";let Ct=_e(g);switch(g++,Ct){case 48:if(g>=k||!Wk(_e(g)))return"\0";case 49:case 50:case 51:g=55296&&Ot<=56319&&g+6=56320&&Qt<=57343)return g=Zt,ar+String.fromCharCode(Qt)}return ar;case 120:for(;g1114111&&(ye&&le(x.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,Ct,g-Ct),at=!0),g>=k?(ye&&le(x.Unexpected_end_of_text),at=!0):_e(g)===125?g++:(ye&&le(x.Unterminated_Unicode_escape_sequence),at=!0),at?(M|=2048,y.substring(et,g)):(M|=8,Gk(ar))}function je(){if(g+5=0&&j1(Ct,t)){ye+=ut(!0),et=g;continue}if(Ct=je(),!(Ct>=0&&j1(Ct,t)))break;M|=1024,ye+=y.substring(et,g),ye+=Gk(Ct),g+=6,et=g}else break}return ye+=y.substring(et,g),ye}function Ve(){let ye=F.length;if(ye>=2&&ye<=12){let et=F.charCodeAt(0);if(et>=97&&et<=122){let Ct=Ete.get(F);if(Ct!==void 0)return O=Ct}}return O=80}function nt(ye){let et="",Ct=!1,Ot=!1;for(;;){let ar=_e(g);if(ar===95){M|=512,Ct?(Ct=!1,Ot=!0):le(Ot?x.Multiple_consecutive_numeric_separators_are_not_permitted:x.Numeric_separators_are_not_allowed_here,g,1),g++;continue}if(Ct=!0,!Wk(ar)||ar-48>=ye)break;et+=y[g],g++,Ot=!1}return _e(g-1)===95&&le(x.Numeric_separators_are_not_allowed_here,g-1,1),et}function It(){return _e(g)===110?(F+="n",M&384&&(F=HU(F)+"n"),g++,10):(F=""+(M&128?parseInt(F.slice(2),2):M&256?parseInt(F.slice(2),8):+F),9)}function ke(){for(T=g,M=0;;){if(C=g,g>=k)return O=1;let ye=re(g);if(g===0&&ye===35&&YW(y,g)){if(g=IR(y,g),n)continue;return O=6}switch(ye){case 10:case 13:if(M|=1,n){g++;continue}else return ye===13&&g+1=0&&pg(et,t))return F=ut(!0)+Le(),O=Ve();let Ct=je();return Ct>=0&&pg(Ct,t)?(g+=6,M|=1024,F=String.fromCharCode(Ct)+Le(),O=Ve()):(le(x.Invalid_character),g++,O=0);case 35:if(g!==0&&y[g+1]==="!")return le(x.can_only_be_used_at_the_start_of_a_file,g,2),g++,O=0;let Ot=re(g+1);if(Ot===92){g++;let Zt=ve();if(Zt>=0&&pg(Zt,t))return F="#"+ut(!0)+Le(),O=81;let Qt=je();if(Qt>=0&&pg(Qt,t))return g+=6,M|=1024,F="#"+String.fromCharCode(Qt)+Le(),O=81;g--}return pg(Ot,t)?(g++,tt(Ot,t)):(F="#",le(x.Invalid_character,g++,Ly(ye))),O=81;case 65533:return le(x.File_appears_to_be_binary,0,0),g=k,O=8;default:let ar=tt(ye,t);if(ar)return O=ar;if(_0(ye)){g+=Ly(ye);continue}else if(Dd(ye)){M|=1,g+=Ly(ye);continue}let at=Ly(ye);return le(x.Invalid_character,g,at),g+=at,O=0}}}function _t(){switch(Z){case 0:return!0;case 1:return!1}return G!==3&&G!==4?!0:Z===3?!1:KW.test(y.slice(T,g))}function Se(){$.assert(O===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),g=C=T,M=0;let ye=re(g),et=tt(ye,99);return et?O=et:(g+=Ly(ye),O)}function tt(ye,et){let Ct=ye;if(pg(Ct,et)){for(g+=Ly(Ct);g=k)return O=1;let et=_e(g);if(et===60)return _e(g+1)===47?(g+=2,O=31):(g++,O=30);if(et===123)return g++,O=19;let Ct=0;for(;g0)break;p0(et)||(Ct=g)}g++}return F=y.substring(T,g),Ct===-1?13:12}function Wa(){if(Bf(O)){for(;g=k)return O=1;for(let et=_e(g);g=0&&_0(_e(g-1))&&!(g+1=k)return O=1;let ye=re(g);switch(g+=Ly(ye),ye){case 9:case 11:case 12:case 32:for(;g=0&&pg(et,t))return F=ut(!0)+Le(),O=Ve();let Ct=je();return Ct>=0&&pg(Ct,t)?(g+=6,M|=1024,F=String.fromCharCode(Ct)+Le(),O=Ve()):(g++,O=0)}if(pg(ye,t)){let et=ye;for(;g=0),g=ye,T=ye,C=ye,O=0,F=void 0,M=0}function Bt(ye){J+=ye?1:-1}}function iA(t,n){return t.codePointAt(n)}function Ly(t){return t>=65536?2:t===-1?0:1}function tG(t){if($.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);let n=Math.floor((t-65536)/1024)+55296,a=(t-65536)%1024+56320;return String.fromCharCode(n,a)}var rG=String.fromCodePoint?t=>String.fromCodePoint(t):tG;function Gk(t){return rG(t)}var H$=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),K$=new Set(["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","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","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"]),ge=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),Ke={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};Ke.Script_Extensions=Ke.Script;function vt(t){return ch(t)||qd(t)}function nr(t){return O1(t,$U,ine)}var Rr=new Map([[99,"lib.esnext.full.d.ts"],[11,"lib.es2024.full.d.ts"],[10,"lib.es2023.full.d.ts"],[9,"lib.es2022.full.d.ts"],[8,"lib.es2021.full.d.ts"],[7,"lib.es2020.full.d.ts"],[6,"lib.es2019.full.d.ts"],[5,"lib.es2018.full.d.ts"],[4,"lib.es2017.full.d.ts"],[3,"lib.es2016.full.d.ts"],[2,"lib.es6.d.ts"]]);function kn(t){let n=$c(t);switch(n){case 99:case 11:case 10:case 9:case 8:case 7:case 6:case 5:case 4:case 3:case 2:return Rr.get(n);default:return"lib.d.ts"}}function Xn(t){return t.start+t.length}function Da(t){return t.length===0}function jo(t,n){return n>=t.start&&n=t.pos&&n<=t.end}function Ha(t,n){return n.start>=t.start&&Xn(n)<=Xn(t)}function su(t,n){return n.pos>=t.start&&n.end<=Xn(t)}function Hl(t,n){return n.start>=t.pos&&Xn(n)<=t.end}function dl(t,n){return $1(t,n)!==void 0}function $1(t,n){let a=fl(t,n);return a&&a.length===0?void 0:a}function Fg(t,n){return dS(t.start,t.length,n.start,n.length)}function _S(t,n,a){return dS(t.start,t.length,n,a)}function dS(t,n,a,c){let u=t+n,_=a+c;return a<=u&&_>=t}function gb(t,n){return n<=Xn(t)&&n>=t.start}function Hk(t,n){return _S(n,t.pos,t.end-t.pos)}function fl(t,n){let a=Math.max(t.start,n.start),c=Math.min(Xn(t),Xn(n));return a<=c?Hu(a,c):void 0}function D_(t){t=t.filter(c=>c.length>0).sort((c,u)=>c.start!==u.start?c.start-u.start:c.length-u.length);let n=[],a=0;for(;a=2&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95?"_"+t:t}function oa(t){let n=t;return n.length>=3&&n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===95?n.substr(1):n}function Zi(t){return oa(t.escapedText)}function aA(t){let n=kx(t.escapedText);return n?Ci(n,Uh):void 0}function vp(t){return t.valueDeclaration&&Tm(t.valueDeclaration)?Zi(t.valueDeclaration.name):oa(t.escapedName)}function Zfe(t){let n=t.parent.parent;if(n){if(Vd(n))return nG(n);switch(n.kind){case 244:if(n.declarationList&&n.declarationList.declarations[0])return nG(n.declarationList.declarations[0]);break;case 245:let a=n.expression;switch(a.kind===227&&a.operatorToken.kind===64&&(a=a.left),a.kind){case 212:return a.name;case 213:let c=a.argumentExpression;if(ct(c))return c}break;case 218:return nG(n.expression);case 257:{if(Vd(n.statement)||Vt(n.statement))return nG(n.statement);break}}}}function nG(t){let n=cs(t);return n&&ct(n)?n:void 0}function wO(t,n){return!!(Vp(t)&&ct(t.name)&&Zi(t.name)===Zi(n)||h_(t)&&Pt(t.declarationList.declarations,a=>wO(a,n)))}function Ate(t){return t.name||Zfe(t)}function Vp(t){return!!t.name}function PR(t){switch(t.kind){case 80:return t;case 349:case 342:{let{name:a}=t;if(a.kind===167)return a.right;break}case 214:case 227:{let a=t;switch(m_(a)){case 1:case 4:case 5:case 3:return wre(a.left);case 7:case 8:case 9:return a.arguments[1];default:return}}case 347:return Ate(t);case 341:return Zfe(t);case 278:{let{expression:a}=t;return ct(a)?a:void 0}case 213:let n=t;if(Are(n))return n.argumentExpression}return t.name}function cs(t){if(t!==void 0)return PR(t)||(bu(t)||Iu(t)||w_(t)?Q$(t):void 0)}function Q$(t){if(t.parent){if(td(t.parent)||Vc(t.parent))return t.parent.name;if(wi(t.parent)&&t===t.parent.right){if(ct(t.parent.left))return t.parent.left;if(wu(t.parent.left))return wre(t.parent.left)}else if(Oo(t.parent)&&ct(t.parent.name))return t.parent.name}else return}function yb(t){if(By(t))return yr(t.modifiers,hd)}function Qk(t){if(ko(t,98303))return yr(t.modifiers,bc)}function wte(t,n){if(t.name)if(ct(t.name)){let a=t.name.escapedText;return Lte(t.parent,n).filter(c=>Uy(c)&&ct(c.name)&&c.name.escapedText===a)}else{let a=t.parent.parameters.indexOf(t);$.assert(a>-1,"Parameters should always be in their parents' parameter list");let c=Lte(t.parent,n).filter(Uy);if(ac1(c)&&c.typeParameters.some(u=>u.name.escapedText===a))}function Pte(t){return Xfe(t,!1)}function Z$(t){return Xfe(t,!0)}function Nte(t){return!!e1(t,Uy)}function Ote(t){return e1(t,EF)}function Fte(t){return Mte(t,Zne)}function X$(t){return e1(t,eNe)}function N4(t){return e1(t,jge)}function Rte(t){return e1(t,jge,!0)}function GI(t){return e1(t,Bge)}function Ln(t){return e1(t,Bge,!0)}function ao(t){return e1(t,$ge)}function lo(t){return e1(t,$ge,!0)}function aa(t){return e1(t,Uge)}function ta(t){return e1(t,Uge,!0)}function ml(t){return e1(t,Kne,!0)}function cu(t){return e1(t,zge)}function kf(t){return e1(t,zge,!0)}function U1(t){return e1(t,zH)}function d0(t){return e1(t,qge)}function Y0(t){return e1(t,Qne)}function LT(t){return e1(t,c1)}function IO(t){return e1(t,Xne)}function mv(t){let n=e1(t,mz);if(n&&n.typeExpression&&n.typeExpression.type)return n}function hv(t){let n=e1(t,mz);return!n&&wa(t)&&(n=wt(P4(t),a=>!!a.typeExpression)),n&&n.typeExpression&&n.typeExpression.type}function iG(t){let n=Y0(t);if(n&&n.typeExpression)return n.typeExpression.type;let a=mv(t);if(a&&a.typeExpression){let c=a.typeExpression.type;if(fh(c)){let u=wt(c.members,hF);return u&&u.type}if(Cb(c)||TL(c))return c.type}}function Lte(t,n){var a;if(!WG(t))return j;let c=(a=t.jsDoc)==null?void 0:a.jsDocCache;if(c===void 0||n){let u=Wme(t,n);$.assert(u.length<2||u[0]!==u[1]),c=an(u,_=>kv(_)?_.tags:_),n||(t.jsDoc??(t.jsDoc=[]),t.jsDoc.jsDocCache=c)}return c}function sA(t){return Lte(t,!1)}function e1(t,n,a){return wt(Lte(t,a),n)}function Mte(t,n){return sA(t).filter(n)}function Nct(t,n){return sA(t).filter(a=>a.kind===n)}function oG(t){return typeof t=="string"?t:t?.map(n=>n.kind===322?n.text:jtr(n)).join("")}function jtr(t){let n=t.kind===325?"link":t.kind===326?"linkcode":"linkplain",a=t.name?Rg(t.name):"",c=t.name&&(t.text===""||t.text.startsWith("://"))?"":" ";return`{@${n} ${a}${c}${t.text}}`}function Zk(t){if(TE(t)){if(EL(t.parent)){let n=QR(t.parent);if(n&&te(n.tags))return an(n.tags,a=>c1(a)?a.typeParameters:void 0)}return j}if(n1(t))return $.assert(t.parent.kind===321),an(t.parent.tags,n=>c1(n)?n.typeParameters:void 0);if(t.typeParameters||_Ne(t)&&t.typeParameters)return t.typeParameters;if(Ei(t)){let n=Vre(t);if(n.length)return n;let a=hv(t);if(a&&Cb(a)&&a.typeParameters)return a.typeParameters}return j}function NR(t){return t.constraint?t.constraint:c1(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0}function Dx(t){return t.kind===80||t.kind===81}function aG(t){return t.kind===179||t.kind===178}function jte(t){return no(t)&&!!(t.flags&64)}function Yfe(t){return mu(t)&&!!(t.flags&64)}function O4(t){return Js(t)&&!!(t.flags&64)}function xm(t){let n=t.kind;return!!(t.flags&64)&&(n===212||n===213||n===214||n===236)}function Y$(t){return xm(t)&&!bF(t)&&!!t.questionDotToken}function Bte(t){return Y$(t.parent)&&t.parent.expression===t}function eU(t){return!xm(t.parent)||Y$(t.parent)||t!==t.parent.expression}function eme(t){return t.kind===227&&t.operatorToken.kind===61}function z1(t){return Ug(t)&&ct(t.typeName)&&t.typeName.escapedText==="const"&&!t.typeArguments}function q1(t){return Wp(t,8)}function $te(t){return bF(t)&&!!(t.flags&64)}function tU(t){return t.kind===253||t.kind===252}function tme(t){return t.kind===281||t.kind===280}function rU(t){return t.kind===349||t.kind===342}function Ute(t){return t>=167}function rme(t){return t>=0&&t<=166}function PO(t){return rme(t.kind)}function HI(t){return Ho(t,"pos")&&Ho(t,"end")}function nU(t){return 9<=t&&t<=15}function F4(t){return nU(t.kind)}function nme(t){switch(t.kind){case 211:case 210:case 14:case 219:case 232:return!0}return!1}function Xk(t){return 15<=t&&t<=18}function TPe(t){return Xk(t.kind)}function zte(t){let n=t.kind;return n===17||n===18}function Yk(t){return Xm(t)||Cm(t)}function OR(t){switch(t.kind){case 277:return t.isTypeOnly||t.parent.parent.phaseModifier===156;case 275:return t.parent.phaseModifier===156;case 274:return t.phaseModifier===156;case 272:return t.isTypeOnly}return!1}function EPe(t){switch(t.kind){case 282:return t.isTypeOnly||t.parent.parent.isTypeOnly;case 279:return t.isTypeOnly&&!!t.moduleSpecifier&&!t.exportClause;case 281:return t.parent.isTypeOnly}return!1}function cE(t){return OR(t)||EPe(t)}function kPe(t){return fn(t,cE)!==void 0}function ime(t){return t.kind===11||Xk(t.kind)}function CPe(t){return Ic(t)||ct(t)}function ap(t){var n;return ct(t)&&((n=t.emitNode)==null?void 0:n.autoGenerate)!==void 0}function R4(t){var n;return Aa(t)&&((n=t.emitNode)==null?void 0:n.autoGenerate)!==void 0}function sG(t){let n=t.emitNode.autoGenerate.flags;return!!(n&32)&&!!(n&16)&&!!(n&8)}function Tm(t){return(ps(t)||OO(t))&&Aa(t.name)}function FR(t){return no(t)&&Aa(t.name)}function eC(t){switch(t){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function iU(t){return!!(ZO(t)&31)}function ome(t){return iU(t)||t===126||t===164||t===129}function bc(t){return eC(t.kind)}function uh(t){let n=t.kind;return n===167||n===80}function q_(t){let n=t.kind;return n===80||n===81||n===11||n===9||n===168}function L4(t){let n=t.kind;return n===80||n===207||n===208}function Rs(t){return!!t&&NO(t.kind)}function RR(t){return!!t&&(NO(t.kind)||n_(t))}function lu(t){return t&&Oct(t.kind)}function oU(t){return t.kind===112||t.kind===97}function Oct(t){switch(t){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function NO(t){switch(t){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return Oct(t)}}function ame(t){return Ta(t)||wS(t)||Vs(t)&&Rs(t.parent)}function J_(t){let n=t.kind;return n===177||n===173||n===175||n===178||n===179||n===182||n===176||n===241}function Co(t){return t&&(t.kind===264||t.kind===232)}function tC(t){return t&&(t.kind===178||t.kind===179)}function Mh(t){return ps(t)&&xS(t)}function DPe(t){return Ei(t)&&lF(t)?(!nP(t)||!_C(t.expression))&&!V4(t,!0):t.parent&&Co(t.parent)&&ps(t)&&!xS(t)}function OO(t){switch(t.kind){case 175:case 178:case 179:return!0;default:return!1}}function sp(t){return bc(t)||hd(t)}function KI(t){let n=t.kind;return n===181||n===180||n===172||n===174||n===182||n===178||n===179||n===355}function qte(t){return KI(t)||J_(t)}function MT(t){let n=t.kind;return n===304||n===305||n===306||n===175||n===178||n===179}function Wo(t){return Fhe(t.kind)}function APe(t){switch(t.kind){case 185:case 186:return!0}return!1}function $s(t){if(t){let n=t.kind;return n===208||n===207}return!1}function aU(t){let n=t.kind;return n===210||n===211}function Jte(t){let n=t.kind;return n===209||n===233}function cG(t){switch(t.kind){case 261:case 170:case 209:return!0}return!1}function wPe(t){return Oo(t)||wa(t)||uG(t)||pG(t)}function lG(t){return sme(t)||cme(t)}function sme(t){switch(t.kind){case 207:case 211:return!0}return!1}function uG(t){switch(t.kind){case 209:case 304:case 305:case 306:return!0}return!1}function cme(t){switch(t.kind){case 208:case 210:return!0}return!1}function pG(t){switch(t.kind){case 209:case 233:case 231:case 210:case 211:case 80:case 212:case 213:return!0}return of(t,!0)}function IPe(t){let n=t.kind;return n===212||n===167||n===206}function _G(t){let n=t.kind;return n===212||n===167}function lme(t){return QI(t)||mC(t)}function QI(t){switch(t.kind){case 214:case 215:case 216:case 171:case 287:case 286:case 290:return!0;case 227:return t.operatorToken.kind===104;default:return!1}}function mS(t){return t.kind===214||t.kind===215}function FO(t){let n=t.kind;return n===229||n===15}function jh(t){return Fct(q1(t).kind)}function Fct(t){switch(t){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function ume(t){return Rct(q1(t).kind)}function Rct(t){switch(t){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return Fct(t)}}function PPe(t){switch(t.kind){case 226:return!0;case 225:return t.operator===46||t.operator===47;default:return!1}}function NPe(t){switch(t.kind){case 106:case 112:case 97:case 225:return!0;default:return F4(t)}}function Vt(t){return Btr(q1(t).kind)}function Btr(t){switch(t){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return Rct(t)}}function ZI(t){let n=t.kind;return n===217||n===235}function rC(t,n){switch(t.kind){case 249:case 250:case 251:case 247:case 248:return!0;case 257:return n&&rC(t.statement,n)}return!1}function $tr(t){return Xu(t)||P_(t)}function OPe(t){return Pt(t,$tr)}function Vte(t){return!xG(t)&&!Xu(t)&&!ko(t,32)&&!Gm(t)}function dG(t){return xG(t)||Xu(t)||ko(t,32)}function M4(t){return t.kind===250||t.kind===251}function Wte(t){return Vs(t)||Vt(t)}function pme(t){return Vs(t)}function f0(t){return Df(t)||Vt(t)}function FPe(t){let n=t.kind;return n===269||n===268||n===80}function Lct(t){let n=t.kind;return n===269||n===268}function Mct(t){let n=t.kind;return n===80||n===268}function _me(t){let n=t.kind;return n===276||n===275}function fG(t){return t.kind===268||t.kind===267}function gv(t){switch(t.kind){case 220:case 227:case 209:case 214:case 180:case 264:case 232:case 176:case 177:case 186:case 181:case 213:case 267:case 307:case 278:case 279:case 282:case 263:case 219:case 185:case 178:case 80:case 274:case 272:case 277:case 182:case 265:case 339:case 341:case 318:case 342:case 349:case 324:case 347:case 323:case 292:case 293:case 294:case 201:case 175:case 174:case 268:case 203:case 281:case 271:case 275:case 215:case 15:case 9:case 211:case 170:case 212:case 304:case 173:case 172:case 179:case 305:case 308:case 306:case 11:case 266:case 188:case 169:case 261:return!0;default:return!1}}function vb(t){switch(t.kind){case 220:case 242:case 180:case 270:case 300:case 176:case 195:case 177:case 186:case 181:case 249:case 250:case 251:case 263:case 219:case 185:case 178:case 182:case 339:case 341:case 318:case 324:case 347:case 201:case 175:case 174:case 268:case 179:case 308:case 266:return!0;default:return!1}}function Utr(t){return t===220||t===209||t===264||t===232||t===176||t===177||t===267||t===307||t===282||t===263||t===219||t===178||t===274||t===272||t===277||t===265||t===292||t===175||t===174||t===268||t===271||t===275||t===281||t===170||t===304||t===173||t===172||t===179||t===305||t===266||t===169||t===261||t===347||t===339||t===349||t===203}function RPe(t){return t===263||t===283||t===264||t===265||t===266||t===267||t===268||t===273||t===272||t===279||t===278||t===271}function LPe(t){return t===253||t===252||t===260||t===247||t===245||t===243||t===250||t===251||t===249||t===246||t===257||t===254||t===256||t===258||t===259||t===244||t===248||t===255||t===354}function Vd(t){return t.kind===169?t.parent&&t.parent.kind!==346||Ei(t):Utr(t.kind)}function MPe(t){return RPe(t.kind)}function mG(t){return LPe(t.kind)}function fa(t){let n=t.kind;return LPe(n)||RPe(n)||ztr(t)}function ztr(t){return t.kind!==242||t.parent!==void 0&&(t.parent.kind===259||t.parent.kind===300)?!1:!tP(t)}function jPe(t){let n=t.kind;return LPe(n)||RPe(n)||n===242}function BPe(t){let n=t.kind;return n===284||n===167||n===80}function sU(t){let n=t.kind;return n===110||n===80||n===212||n===296}function hG(t){let n=t.kind;return n===285||n===295||n===286||n===12||n===289}function Gte(t){let n=t.kind;return n===292||n===294}function $Pe(t){let n=t.kind;return n===11||n===295}function Em(t){let n=t.kind;return n===287||n===286}function UPe(t){let n=t.kind;return n===287||n===286||n===290}function Hte(t){let n=t.kind;return n===297||n===298}function LR(t){return t.kind>=310&&t.kind<=352}function Kte(t){return t.kind===321||t.kind===320||t.kind===322||RO(t)||MR(t)||p3(t)||TE(t)}function MR(t){return t.kind>=328&&t.kind<=352}function hS(t){return t.kind===179}function Ax(t){return t.kind===178}function hy(t){if(!WG(t))return!1;let{jsDoc:n}=t;return!!n&&n.length>0}function Qte(t){return!!t.type}function lE(t){return!!t.initializer}function j4(t){switch(t.kind){case 261:case 170:case 209:case 173:case 304:case 307:return!0;default:return!1}}function dme(t){return t.kind===292||t.kind===294||MT(t)}function Zte(t){return t.kind===184||t.kind===234}var jct=1073741823;function zPe(t){let n=jct;for(let a of t){if(!a.length)continue;let c=0;for(;c0?a.parent.parameters[u-1]:void 0,f=n.text,y=_?go(hb(f,_c(f,_.end+1,!1,!0)),my(f,t.pos)):hb(f,_c(f,t.pos,!1,!0));return Pt(y)&&Bct(Sn(y),n)}let c=a&&Rme(a,n);return!!X(c,u=>Bct(u,n))}var mme=[],nC="tslib",cU=160,hme=1e6,JPe=500;function Qu(t,n){let a=t.declarations;if(a){for(let c of a)if(c.kind===n)return c}}function VPe(t,n){return yr(t.declarations||j,a=>a.kind===n)}function ic(t){let n=new Map;if(t)for(let a of t)n.set(a.escapedName,a);return n}function wx(t){return(t.flags&33554432)!==0}function LO(t){return!!(t.flags&1536)&&t.escapedName.charCodeAt(0)===34}var Xte=qtr();function qtr(){var t="";let n=a=>t+=a;return{getText:()=>t,write:n,rawWrite:n,writeKeyword:n,writeOperator:n,writePunctuation:n,writeSpace:n,writeStringLiteral:n,writeLiteral:n,writeParameter:n,writeProperty:n,writeSymbol:(a,c)=>n(a),writeTrailingSemicolon:n,writeComment:n,getTextPos:()=>t.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!t.length&&p0(t.charCodeAt(t.length-1)),writeLine:()=>t+=" ",increaseIndent:zs,decreaseIndent:zs,clear:()=>t=""}}function Yte(t,n){return t.configFilePath!==n.configFilePath||Jtr(t,n)}function Jtr(t,n){return MO(t,n,pye)}function WPe(t,n){return MO(t,n,FNe)}function MO(t,n,a){return t!==n&&a.some(c=>!Sne(cne(t,c),cne(n,c)))}function GPe(t,n){for(;;){let a=n(t);if(a==="quit")return;if(a!==void 0)return a;if(Ta(t))return;t=t.parent}}function Ad(t,n){let a=t.entries();for(let[c,u]of a){let _=n(u,c);if(_)return _}}function Ix(t,n){let a=t.keys();for(let c of a){let u=n(c);if(u)return u}}function ere(t,n){t.forEach((a,c)=>{n.set(c,a)})}function jR(t){let n=Xte.getText();try{return t(Xte),Xte.getText()}finally{Xte.clear(),Xte.writeKeyword(n)}}function gG(t){return t.end-t.pos}function gme(t,n){return t.path===n.path&&!t.prepend==!n.prepend&&!t.circular==!n.circular}function HPe(t,n){return t===n||t.resolvedModule===n.resolvedModule||!!t.resolvedModule&&!!n.resolvedModule&&t.resolvedModule.isExternalLibraryImport===n.resolvedModule.isExternalLibraryImport&&t.resolvedModule.extension===n.resolvedModule.extension&&t.resolvedModule.resolvedFileName===n.resolvedModule.resolvedFileName&&t.resolvedModule.originalPath===n.resolvedModule.originalPath&&Vtr(t.resolvedModule.packageId,n.resolvedModule.packageId)&&t.alternateResult===n.alternateResult}function jO(t){return t.resolvedModule}function tre(t){return t.resolvedTypeReferenceDirective}function rre(t,n,a,c,u){var _;let f=(_=n.getResolvedModule(t,a,c))==null?void 0:_.alternateResult,y=f&&(km(n.getCompilerOptions())===2?[x.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[f]]:[x.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[f,f.includes(Jx+"@types/")?`@types/${LL(u)}`:u]]),g=y?ws(void 0,y[0],...y[1]):n.typesPackageExists(u)?ws(void 0,x.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,u,LL(u)):n.packageBundlesTypes(u)?ws(void 0,x.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,u,a):ws(void 0,x.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,a,LL(u));return g&&(g.repopulateInfo=()=>({moduleReference:a,mode:c,packageName:u===a?void 0:u})),g}function yme(t){let n=Bx(t.fileName),a=t.packageJsonScope,c=n===".ts"?".mts":n===".js"?".mjs":void 0,u=a&&!a.contents.packageJsonContent.type?c?ws(void 0,x.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,c,Xi(a.packageDirectory,"package.json")):ws(void 0,x.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Xi(a.packageDirectory,"package.json")):c?ws(void 0,x.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,c):ws(void 0,x.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return u.repopulateInfo=()=>!0,u}function Vtr(t,n){return t===n||!!t&&!!n&&t.name===n.name&&t.subModuleName===n.subModuleName&&t.version===n.version&&t.peerDependencies===n.peerDependencies}function nre({name:t,subModuleName:n}){return n?`${t}/${n}`:t}function cA(t){return`${nre(t)}@${t.version}${t.peerDependencies??""}`}function KPe(t,n){return t===n||t.resolvedTypeReferenceDirective===n.resolvedTypeReferenceDirective||!!t.resolvedTypeReferenceDirective&&!!n.resolvedTypeReferenceDirective&&t.resolvedTypeReferenceDirective.resolvedFileName===n.resolvedTypeReferenceDirective.resolvedFileName&&!!t.resolvedTypeReferenceDirective.primary==!!n.resolvedTypeReferenceDirective.primary&&t.resolvedTypeReferenceDirective.originalPath===n.resolvedTypeReferenceDirective.originalPath}function vme(t,n,a,c){$.assert(t.length===n.length);for(let u=0;u=0),Ry(n)[t]}function $ct(t){let n=Pn(t),a=qs(n,t.pos);return`${n.fileName}(${a.line+1},${a.character+1})`}function vG(t,n){$.assert(t>=0);let a=Ry(n),c=t,u=n.text;if(c+1===a.length)return u.length-1;{let _=a[c],f=a[c+1]-1;for($.assert(Dd(u.charCodeAt(f)));_<=f&&Dd(u.charCodeAt(f));)f--;return f}}function ire(t,n,a){return!(a&&a(n))&&!t.identifiers.has(n)}function Op(t){return t===void 0?!0:t.pos===t.end&&t.pos>=0&&t.kind!==1}function t1(t){return!Op(t)}function ZPe(t,n){return Zu(t)?n===t.expression:n_(t)?n===t.modifiers:Zm(t)?n===t.initializer:ps(t)?n===t.questionToken&&Mh(t):td(t)?n===t.modifiers||n===t.questionToken||n===t.exclamationToken||SG(t.modifiers,n,sp):im(t)?n===t.equalsToken||n===t.modifiers||n===t.questionToken||n===t.exclamationToken||SG(t.modifiers,n,sp):Ep(t)?n===t.exclamationToken:kp(t)?n===t.typeParameters||n===t.type||SG(t.typeParameters,n,Zu):T0(t)?n===t.typeParameters||SG(t.typeParameters,n,Zu):mg(t)?n===t.typeParameters||n===t.type||SG(t.typeParameters,n,Zu):UH(t)?n===t.modifiers||SG(t.modifiers,n,sp):!1}function SG(t,n,a){return!t||Zn(n)||!a(n)?!1:un(t,n)}function Uct(t,n,a){if(n===void 0||n.length===0)return t;let c=0;for(;c[`${qs(t,f.range.end).line}`,f])),c=new Map;return{getUnusedExpectations:u,markUsed:_};function u(){return so(a.entries()).filter(([f,y])=>y.type===0&&!c.get(f)).map(([f,y])=>y)}function _(f){return a.has(`${f}`)?(c.set(`${f}`,!0),!0):!1}}function oC(t,n,a){if(Op(t))return t.pos;if(LR(t)||t.kind===12)return _c((n??Pn(t)).text,t.pos,!1,!0);if(a&&hy(t))return oC(t.jsDoc[0],n);if(t.kind===353){n??(n=Pn(t));let c=pi(Jge(t,n));if(c)return oC(c,n,a)}return _c((n??Pn(t)).text,t.pos,!1,!1,gU(t))}function xme(t,n){let a=!Op(t)&&l1(t)?Ut(t.modifiers,hd):void 0;return a?_c((n||Pn(t)).text,a.end):oC(t,n)}function YPe(t,n){let a=!Op(t)&&l1(t)&&t.modifiers?Sn(t.modifiers):void 0;return a?_c((n||Pn(t)).text,a.end):oC(t,n)}function XI(t,n,a=!1){return uU(t.text,n,a)}function Gtr(t){return!!fn(t,AA)}function are(t){return!!(P_(t)&&t.exportClause&&Db(t.exportClause)&&bb(t.exportClause.name))}function aC(t){return t.kind===11?t.text:oa(t.escapedText)}function YI(t){return t.kind===11?dp(t.text):t.escapedText}function bb(t){return(t.kind===11?t.text:t.escapedText)==="default"}function uU(t,n,a=!1){if(Op(n))return"";let c=t.substring(a?n.pos:_c(t,n.pos),n.end);return Gtr(n)&&(c=c.split(/\r\n|\n|\r/).map(u=>u.replace(/^\s*\*/,"").trimStart()).join(` +`)),c}function Sp(t,n=!1){return XI(Pn(t),t,n)}function Htr(t){return t.pos}function BR(t,n){return rs(t,n,Htr,Br)}function Xc(t){let n=t.emitNode;return n&&n.flags||0}function J1(t){let n=t.emitNode;return n&&n.internalFlags||0}var Tme=Ef(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Iterator:new Map(Object.entries({es2015:j})),AsyncIterator:new Map(Object.entries({es2015:j})),ArrayBuffer:new Map(Object.entries({es2024:["maxByteLength","resizable","resize","detached","transfer","transferToFixedLength"]})),Atomics:new Map(Object.entries({es2017:["add","and","compareExchange","exchange","isLockFree","load","or","store","sub","wait","notify","xor"],es2024:["waitAsync"],esnext:["pause"]})),SharedArrayBuffer:new Map(Object.entries({es2017:["byteLength","slice"],es2024:["growable","maxByteLength","grow"]})),AsyncIterable:new Map(Object.entries({es2018:j})),AsyncIterableIterator:new Map(Object.entries({es2018:j})),AsyncGenerator:new Map(Object.entries({es2018:j})),AsyncGeneratorFunction:new Map(Object.entries({es2018:j})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"],es2024:["unicodeSets"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"],es2024:["groupBy"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],esnext:["f16round"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),MapConstructor:new Map(Object.entries({es2024:["groupBy"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"],esnext:["union","intersection","difference","symmetricDifference","isSubsetOf","isSupersetOf","isDisjointFrom"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"],es2024:["withResolvers"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"],es2024:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:j,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"],esnext:["metadata","dispose","asyncDispose"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],esnext:["setFloat16","getFloat16"]})),BigInt:new Map(Object.entries({es2020:j})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float16Array:new Map(Object.entries({esnext:j})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigInt64Array:new Map(Object.entries({es2020:j,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:j,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),e6e=(t=>(t[t.None=0]="None",t[t.NeverAsciiEscape=1]="NeverAsciiEscape",t[t.JsxAttributeEscape=2]="JsxAttributeEscape",t[t.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",t[t.AllowNumericSeparator=8]="AllowNumericSeparator",t))(e6e||{});function t6e(t,n,a){if(n&&Ktr(t,a))return XI(n,t);switch(t.kind){case 11:{let c=a&2?lhe:a&1||Xc(t)&16777216?kb:Mre;return t.singleQuote?"'"+c(t.text,39)+"'":'"'+c(t.text,34)+'"'}case 15:case 16:case 17:case 18:{let c=a&1||Xc(t)&16777216?kb:Mre,u=t.rawText??she(c(t.text,96));switch(t.kind){case 15:return"`"+u+"`";case 16:return"`"+u+"${";case 17:return"}"+u+"${";case 18:return"}"+u+"`"}break}case 9:case 10:return t.text;case 14:return a&4&&t.isUnterminated?t.text+(t.text.charCodeAt(t.text.length-1)===92?" /":"/"):t.text}return $.fail(`Literal kind '${t.kind}' not accounted for.`)}function Ktr(t,n){if(fu(t)||!t.parent||n&4&&t.isUnterminated)return!1;if(qh(t)){if(t.numericLiteralFlags&26656)return!1;if(t.numericLiteralFlags&512)return!!(n&8)}return!dL(t)}function r6e(t){return Ni(t)?`"${kb(t)}"`:""+t}function n6e(t){return t_(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function Eme(t){return(dd(t)&7)!==0||kme(t)}function kme(t){let n=bS(t);return n.kind===261&&n.parent.kind===300}function Gm(t){return I_(t)&&(t.name.kind===11||xb(t))}function sre(t){return I_(t)&&t.name.kind===11}function Cme(t){return I_(t)&&Ic(t.name)}function Qtr(t){return I_(t)||ct(t)}function bG(t){return Ztr(t.valueDeclaration)}function Ztr(t){return!!t&&t.kind===268&&!t.body}function i6e(t){return t.kind===308||t.kind===268||RR(t)}function xb(t){return!!(t.flags&2048)}function eP(t){return Gm(t)&&Dme(t)}function Dme(t){switch(t.parent.kind){case 308:return yd(t.parent);case 269:return Gm(t.parent.parent)&&Ta(t.parent.parent.parent)&&!yd(t.parent.parent.parent)}return!1}function Ame(t){var n;return(n=t.declarations)==null?void 0:n.find(a=>!eP(a)&&!(I_(a)&&xb(a)))}function Xtr(t){return t===1||100<=t&&t<=199}function $R(t,n){return yd(t)||Xtr(Km(n))&&!!t.commonJsModuleIndicator}function wme(t,n){switch(t.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return t.isDeclarationFile?!1:!!(rm(n,"alwaysStrict")||lNe(t.statements)||yd(t)||a1(n))}function Ime(t){return!!(t.flags&33554432)||ko(t,128)}function Pme(t,n){switch(t.kind){case 308:case 270:case 300:case 268:case 249:case 250:case 251:case 177:case 175:case 178:case 179:case 263:case 219:case 220:case 173:case 176:return!0;case 242:return!RR(n)}return!1}function Nme(t){switch($.type(t),t.kind){case 339:case 347:case 324:return!0;default:return Ome(t)}}function Ome(t){switch($.type(t),t.kind){case 180:case 181:case 174:case 182:case 185:case 186:case 318:case 264:case 232:case 265:case 266:case 346:case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function $O(t){switch(t.kind){case 273:case 272:return!0;default:return!1}}function o6e(t){return $O(t)||rP(t)}function a6e(t){return $O(t)||LG(t)}function cre(t){switch(t.kind){case 273:case 272:case 244:case 264:case 263:case 268:case 266:case 265:case 267:return!0;default:return!1}}function s6e(t){return xG(t)||I_(t)||AS(t)||Bh(t)}function xG(t){return $O(t)||P_(t)}function lre(t){return fn(t.parent,n=>!!(Bye(n)&1))}function yv(t){return fn(t.parent,n=>Pme(n,n.parent))}function c6e(t,n){let a=yv(t);for(;a;)n(a),a=yv(a)}function du(t){return!t||gG(t)===0?"(Missing)":Sp(t)}function l6e(t){return t.declaration?du(t.declaration.parameters[0].name):void 0}function TG(t){return t.kind===168&&!jy(t.expression)}function pU(t){var n;switch(t.kind){case 80:case 81:return(n=t.emitNode)!=null&&n.autoGenerate?void 0:t.escapedText;case 11:case 9:case 10:case 15:return dp(t.text);case 168:return jy(t.expression)?dp(t.expression.text):void 0;case 296:return cF(t);default:return $.assertNever(t)}}function UO(t){return $.checkDefined(pU(t))}function Rg(t){switch(t.kind){case 110:return"this";case 81:case 80:return gG(t)===0?Zi(t):Sp(t);case 167:return Rg(t.left)+"."+Rg(t.right);case 212:return ct(t.name)||Aa(t.name)?Rg(t.expression)+"."+Rg(t.name):$.assertNever(t.name);case 312:return Rg(t.left)+"#"+Rg(t.right);case 296:return Rg(t.namespace)+":"+Rg(t.name);default:return $.assertNever(t)}}function xi(t,n,...a){let c=Pn(t);return m0(c,t,n,...a)}function UR(t,n,a,...c){let u=_c(t.text,n.pos);return md(t,u,n.end-u,a,...c)}function m0(t,n,a,...c){let u=$4(t,n);return md(t,u.start,u.length,a,...c)}function Nx(t,n,a,c){let u=$4(t,n);return ure(t,u.start,u.length,a,c)}function EG(t,n,a,c){let u=_c(t.text,n.pos);return ure(t,u,n.end-u,a,c)}function u6e(t,n,a){$.assertGreaterThanOrEqual(n,0),$.assertGreaterThanOrEqual(a,0),$.assertLessThanOrEqual(n,t.length),$.assertLessThanOrEqual(n+a,t.length)}function ure(t,n,a,c,u){return u6e(t.text,n,a),{file:t,start:n,length:a,code:c.code,category:c.category,messageText:c.next?c:c.messageText,relatedInformation:u,canonicalHead:c.canonicalHead}}function Fme(t,n,a){return{file:t,start:0,length:0,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:a}}function p6e(t){return typeof t.messageText=="string"?{code:t.code,category:t.category,messageText:t.messageText,next:t.next}:t.messageText}function _6e(t,n,a){return{file:t,start:n.pos,length:n.end-n.pos,code:a.code,category:a.category,messageText:a.message}}function d6e(t,...n){return{code:t.code,messageText:nF(t,...n)}}function gS(t,n){let a=B1(t.languageVersion,!0,t.languageVariant,t.text,void 0,n);a.scan();let c=a.getTokenStart();return Hu(c,a.getTokenEnd())}function f6e(t,n){let a=B1(t.languageVersion,!0,t.languageVariant,t.text,void 0,n);return a.scan(),a.getToken()}function Ytr(t,n){let a=_c(t.text,n.pos);if(n.body&&n.body.kind===242){let{line:c}=qs(t,n.body.pos),{line:u}=qs(t,n.body.end);if(c0?n.statements[0].pos:n.end;return Hu(_,f)}case 254:case 230:{let _=_c(t.text,n.pos);return gS(t,_)}case 239:{let _=_c(t.text,n.expression.end);return gS(t,_)}case 351:{let _=_c(t.text,n.tagName.pos);return gS(t,_)}case 177:{let _=n,f=_c(t.text,_.pos),y=B1(t.languageVersion,!0,t.languageVariant,t.text,void 0,f),g=y.scan();for(;g!==137&&g!==1;)g=y.scan();let k=y.getTokenEnd();return Hu(f,k)}}if(a===void 0)return gS(t,n.pos);$.assert(!kv(a));let c=Op(a),u=c||_F(n)?a.pos:_c(t.text,a.pos);return c?($.assert(u===a.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),$.assert(u===a.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):($.assert(u>=a.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),$.assert(u<=a.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Hu(u,a.end)}function uE(t){return t.kind===308&&!Lg(t)}function Lg(t){return(t.externalModuleIndicator||t.commonJsModuleIndicator)!==void 0}function h0(t){return t.scriptKind===6}function lA(t){return!!(Ra(t)&4096)}function kG(t){return!!(Ra(t)&8&&!ne(t,t.parent))}function CG(t){return(dd(t)&7)===6}function DG(t){return(dd(t)&7)===4}function zR(t){return(dd(t)&7)===2}function m6e(t){let n=dd(t)&7;return n===2||n===4||n===6}function pre(t){return(dd(t)&7)===1}function U4(t){return t.kind===214&&t.expression.kind===108}function Bh(t){if(t.kind!==214)return!1;let n=t.expression;return n.kind===102||s3(n)&&n.keywordToken===102&&n.name.escapedText==="defer"}function qR(t){return s3(t)&&t.keywordToken===102&&t.name.escapedText==="meta"}function jT(t){return AS(t)&&bE(t.argument)&&Ic(t.argument.literal)}function yS(t){return t.kind===245&&t.expression.kind===11}function AG(t){return!!(Xc(t)&2097152)}function _re(t){return AG(t)&&i_(t)}function err(t){return ct(t.name)&&!t.initializer}function dre(t){return AG(t)&&h_(t)&&ht(t.declarationList.declarations,err)}function Rme(t,n){return t.kind!==12?my(n.text,t.pos):void 0}function Lme(t,n){let a=t.kind===170||t.kind===169||t.kind===219||t.kind===220||t.kind===218||t.kind===261||t.kind===282?go(hb(n,t.pos),my(n,t.pos)):my(n,t.pos);return yr(a,c=>c.end<=t.end&&n.charCodeAt(c.pos+1)===42&&n.charCodeAt(c.pos+2)===42&&n.charCodeAt(c.pos+3)!==47)}var trr=/^\/\/\/\s*/,rrr=/^\/\/\/\s*/,nrr=/^\/\/\/\s*/,irr=/^\/\/\/\s*/,orr=/^\/\/\/\s*/,arr=/^\/\/\/\s*/;function vS(t){if(183<=t.kind&&t.kind<=206)return!0;switch(t.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return t.parent.kind!==223;case 234:return Vct(t);case 169:return t.parent.kind===201||t.parent.kind===196;case 80:(t.parent.kind===167&&t.parent.right===t||t.parent.kind===212&&t.parent.name===t)&&(t=t.parent),$.assert(t.kind===80||t.kind===167||t.kind===212,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 167:case 212:case 110:{let{parent:n}=t;if(n.kind===187)return!1;if(n.kind===206)return!n.isTypeOf;if(183<=n.kind&&n.kind<=206)return!0;switch(n.kind){case 234:return Vct(n);case 169:return t===n.constraint;case 346:return t===n.constraint;case 173:case 172:case 170:case 261:return t===n.type;case 263:case 219:case 220:case 177:case 175:case 174:case 178:case 179:return t===n.type;case 180:case 181:case 182:return t===n.type;case 217:return t===n.type;case 214:case 215:case 216:return un(n.typeArguments,t)}}}return!1}function Vct(t){return Zne(t.parent)||EF(t.parent)||zg(t.parent)&&!Hre(t)}function sC(t,n){return a(t);function a(c){switch(c.kind){case 254:return n(c);case 270:case 242:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 297:case 298:case 257:case 259:case 300:return Is(c,a)}}}function h6e(t,n){return a(t);function a(c){switch(c.kind){case 230:n(c);let u=c.expression;u&&a(u);return;case 267:case 265:case 268:case 266:return;default:if(Rs(c)){if(c.name&&c.name.kind===168){a(c.name.expression);return}}else vS(c)||Is(c,a)}}}function Mme(t){return t&&t.kind===189?t.elementType:t&&t.kind===184?to(t.typeArguments):void 0}function g6e(t){switch(t.kind){case 265:case 264:case 232:case 188:return t.members;case 211:return t.properties}}function _U(t){if(t)switch(t.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function dU(t){return t.parent.kind===262&&t.parent.parent.kind===244}function y6e(t){return Ei(t)?Lc(t.parent)&&wi(t.parent.parent)&&m_(t.parent.parent)===2||fre(t.parent):!1}function fre(t){return Ei(t)?wi(t)&&m_(t)===1:!1}function v6e(t){return(Oo(t)?zR(t)&&ct(t.name)&&dU(t):ps(t)?Q4(t)&&fd(t):Zm(t)&&Q4(t))||fre(t)}function S6e(t){switch(t.kind){case 175:case 174:case 177:case 178:case 179:case 263:case 219:return!0}return!1}function jme(t,n){for(;;){if(n&&n(t),t.statement.kind!==257)return t.statement;t=t.statement}}function tP(t){return t&&t.kind===242&&Rs(t.parent)}function r1(t){return t&&t.kind===175&&t.parent.kind===211}function mre(t){return(t.kind===175||t.kind===178||t.kind===179)&&(t.parent.kind===211||t.parent.kind===232)}function b6e(t){return t&&t.kind===1}function x6e(t){return t&&t.kind===0}function JR(t,n,a,c){return X(t?.properties,u=>{if(!td(u))return;let _=pU(u.name);return n===_||c&&c===_?a(u):void 0})}function fU(t){if(t&&t.statements.length){let n=t.statements[0].expression;return Ci(n,Lc)}}function hre(t,n,a){return wG(t,n,c=>qf(c.initializer)?wt(c.initializer.elements,u=>Ic(u)&&u.text===a):void 0)}function wG(t,n,a){return JR(fU(t),n,a)}function My(t){return fn(t.parent,Rs)}function T6e(t){return fn(t.parent,lu)}function Cf(t){return fn(t.parent,Co)}function E6e(t){return fn(t.parent,n=>Co(n)||Rs(n)?"quit":n_(n))}function gre(t){return fn(t.parent,RR)}function yre(t){let n=fn(t.parent,a=>Co(a)?"quit":hd(a));return n&&Co(n.parent)?Cf(n.parent):Cf(n??t)}function Hm(t,n,a){for($.assert(t.kind!==308);;){if(t=t.parent,!t)return $.fail();switch(t.kind){case 168:if(a&&Co(t.parent.parent))return t;t=t.parent.parent;break;case 171:t.parent.kind===170&&J_(t.parent.parent)?t=t.parent.parent:J_(t.parent)&&(t=t.parent);break;case 220:if(!n)continue;case 263:case 219:case 268:case 176:case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 180:case 181:case 182:case 267:case 308:return t}}}function k6e(t){switch(t.kind){case 220:case 263:case 219:case 173:return!0;case 242:switch(t.parent.kind){case 177:case 175:case 178:case 179:return!0;default:return!1}default:return!1}}function vre(t){ct(t)&&(ed(t.parent)||i_(t.parent))&&t.parent.name===t&&(t=t.parent);let n=Hm(t,!0,!1);return Ta(n)}function C6e(t){let n=Hm(t,!1,!1);if(n)switch(n.kind){case 177:case 263:case 219:return n}}function IG(t,n){for(;;){if(t=t.parent,!t)return;switch(t.kind){case 168:t=t.parent;break;case 263:case 219:case 220:if(!n)continue;case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 176:return t;case 171:t.parent.kind===170&&J_(t.parent.parent)?t=t.parent.parent:J_(t.parent)&&(t=t.parent);break}}}function uA(t){if(t.kind===219||t.kind===220){let n=t,a=t.parent;for(;a.kind===218;)n=a,a=a.parent;if(a.kind===214&&a.expression===n)return a}}function _g(t){let n=t.kind;return(n===212||n===213)&&t.expression.kind===108}function PG(t){let n=t.kind;return(n===212||n===213)&&t.expression.kind===110}function Sre(t){var n;return!!t&&Oo(t)&&((n=t.initializer)==null?void 0:n.kind)===110}function D6e(t){return!!t&&(im(t)||td(t))&&wi(t.parent.parent)&&t.parent.parent.operatorToken.kind===64&&t.parent.parent.right.kind===110}function NG(t){switch(t.kind){case 184:return t.typeName;case 234:return ru(t.expression)?t.expression:void 0;case 80:case 167:return t}}function bre(t){switch(t.kind){case 216:return t.tag;case 287:case 286:return t.tagName;case 227:return t.right;case 290:return t;default:return t.expression}}function OG(t,n,a,c){if(t&&Vp(n)&&Aa(n.name))return!1;switch(n.kind){case 264:return!0;case 232:return!t;case 173:return a!==void 0&&(t?ed(a):Co(a)&&!pP(n)&&!vhe(n));case 178:case 179:case 175:return n.body!==void 0&&a!==void 0&&(t?ed(a):Co(a));case 170:return t?a!==void 0&&a.body!==void 0&&(a.kind===177||a.kind===175||a.kind===179)&&cP(a)!==n&&c!==void 0&&c.kind===264:!1}return!1}function VR(t,n,a,c){return By(n)&&OG(t,n,a,c)}function FG(t,n,a,c){return VR(t,n,a,c)||mU(t,n,a)}function mU(t,n,a){switch(n.kind){case 264:return Pt(n.members,c=>FG(t,c,n,a));case 232:return!t&&Pt(n.members,c=>FG(t,c,n,a));case 175:case 179:case 177:return Pt(n.parameters,c=>VR(t,c,n,a));default:return!1}}function pE(t,n){if(VR(t,n))return!0;let a=Rx(n);return!!a&&mU(t,a,n)}function Bme(t,n,a){let c;if(tC(n)){let{firstAccessor:u,secondAccessor:_,setAccessor:f}=uP(a.members,n),y=By(u)?u:_&&By(_)?_:void 0;if(!y||n!==y)return!1;c=f?.parameters}else Ep(n)&&(c=n.parameters);if(VR(t,n,a))return!0;if(c){for(let u of c)if(!uC(u)&&VR(t,u,n,a))return!0}return!1}function $me(t){if(t.textSourceNode){switch(t.textSourceNode.kind){case 11:return $me(t.textSourceNode);case 15:return t.text===""}return!1}return t.text===""}function WR(t){let{parent:n}=t;return n.kind===287||n.kind===286||n.kind===288?n.tagName===t:!1}function Tb(t){switch(t.kind){case 108:case 106:case 112:case 97:case 14:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 235:case 217:case 239:case 236:case 218:case 219:case 232:case 220:case 223:case 221:case 222:case 225:case 226:case 227:case 228:case 231:case 229:case 233:case 285:case 286:case 289:case 230:case 224:return!0;case 237:return!Bh(t.parent)||t.parent.expression!==t;case 234:return!zg(t.parent)&&!EF(t.parent);case 167:for(;t.parent.kind===167;)t=t.parent;return t.parent.kind===187||RO(t.parent)||fz(t.parent)||wA(t.parent)||WR(t);case 312:for(;wA(t.parent);)t=t.parent;return t.parent.kind===187||RO(t.parent)||fz(t.parent)||wA(t.parent)||WR(t);case 81:return wi(t.parent)&&t.parent.left===t&&t.parent.operatorToken.kind===103;case 80:if(t.parent.kind===187||RO(t.parent)||fz(t.parent)||wA(t.parent)||WR(t))return!0;case 9:case 10:case 11:case 15:case 110:return xre(t);default:return!1}}function xre(t){let{parent:n}=t;switch(n.kind){case 261:case 170:case 173:case 172:case 307:case 304:case 209:return n.initializer===t;case 245:case 246:case 247:case 248:case 254:case 255:case 256:case 297:case 258:return n.expression===t;case 249:let a=n;return a.initializer===t&&a.initializer.kind!==262||a.condition===t||a.incrementor===t;case 250:case 251:let c=n;return c.initializer===t&&c.initializer.kind!==262||c.expression===t;case 217:case 235:return t===n.expression;case 240:return t===n.expression;case 168:return t===n.expression;case 171:case 295:case 294:case 306:return!0;case 234:return n.expression===t&&!vS(n);case 305:return n.objectAssignmentInitializer===t;case 239:return t===n.expression;default:return Tb(n)}}function Tre(t){for(;t.kind===167||t.kind===80;)t=t.parent;return t.kind===187}function A6e(t){return Db(t)&&!!t.parent.moduleSpecifier}function pA(t){return t.kind===272&&t.moduleReference.kind===284}function hU(t){return $.assert(pA(t)),t.moduleReference.expression}function Ume(t){return rP(t)&&oL(t.initializer).arguments[0]}function z4(t){return t.kind===272&&t.moduleReference.kind!==284}function Ox(t){return t?.kind===308}function ph(t){return Ei(t)}function Ei(t){return!!t&&!!(t.flags&524288)}function Ere(t){return!!t&&!!(t.flags&134217728)}function kre(t){return!h0(t)}function gU(t){return!!t&&!!(t.flags&16777216)}function Cre(t){return Ug(t)&&ct(t.typeName)&&t.typeName.escapedText==="Object"&&t.typeArguments&&t.typeArguments.length===2&&(t.typeArguments[0].kind===154||t.typeArguments[0].kind===150)}function $h(t,n){if(t.kind!==214)return!1;let{expression:a,arguments:c}=t;if(a.kind!==80||a.escapedText!=="require"||c.length!==1)return!1;let u=c[0];return!n||Sl(u)}function RG(t){return Wct(t,!1)}function rP(t){return Wct(t,!0)}function w6e(t){return Vc(t)&&rP(t.parent.parent)}function Wct(t,n){return Oo(t)&&!!t.initializer&&$h(n?oL(t.initializer):t.initializer,!0)}function LG(t){return h_(t)&&t.declarationList.declarations.length>0&&ht(t.declarationList.declarations,n=>RG(n))}function MG(t){return t===39||t===34}function Dre(t,n){return XI(n,t).charCodeAt(0)===34}function yU(t){return wi(t)||wu(t)||ct(t)||Js(t)}function jG(t){return Ei(t)&&t.initializer&&wi(t.initializer)&&(t.initializer.operatorToken.kind===57||t.initializer.operatorToken.kind===61)&&t.name&&ru(t.name)&&GR(t.name,t.initializer.left)?t.initializer.right:t.initializer}function vU(t){let n=jG(t);return n&&_A(n,_C(t.name))}function srr(t,n){return X(t.properties,a=>td(a)&&ct(a.name)&&a.name.escapedText==="value"&&a.initializer&&_A(a.initializer,n))}function zO(t){if(t&&t.parent&&wi(t.parent)&&t.parent.operatorToken.kind===64){let n=_C(t.parent.left);return _A(t.parent.right,n)||crr(t.parent.left,t.parent.right,n)}if(t&&Js(t)&&J4(t)){let n=srr(t.arguments[2],t.arguments[1].text==="prototype");if(n)return n}}function _A(t,n){if(Js(t)){let a=bl(t.expression);return a.kind===219||a.kind===220?t:void 0}if(t.kind===219||t.kind===232||t.kind===220||Lc(t)&&(t.properties.length===0||n))return t}function crr(t,n,a){let c=wi(n)&&(n.operatorToken.kind===57||n.operatorToken.kind===61)&&_A(n.right,a);if(c&&GR(t,n.left))return c}function I6e(t){let n=Oo(t.parent)?t.parent.name:wi(t.parent)&&t.parent.operatorToken.kind===64?t.parent.left:void 0;return n&&_A(t.right,_C(n))&&ru(n)&&GR(n,t.left)}function zme(t){if(wi(t.parent)){let n=(t.parent.operatorToken.kind===57||t.parent.operatorToken.kind===61)&&wi(t.parent.parent)?t.parent.parent:t.parent;if(n.operatorToken.kind===64&&ct(n.left))return n.left}else if(Oo(t.parent))return t.parent.name}function GR(t,n){return SS(t)&&SS(n)?g0(t)===g0(n):Dx(t)&&P6e(n)&&(n.expression.kind===110||ct(n.expression)&&(n.expression.escapedText==="window"||n.expression.escapedText==="self"||n.expression.escapedText==="global"))?GR(t,$G(n)):P6e(t)&&P6e(n)?BT(t)===BT(n)&&GR(t.expression,n.expression):!1}function BG(t){for(;of(t,!0);)t=t.right;return t}function q4(t){return ct(t)&&t.escapedText==="exports"}function qme(t){return ct(t)&&t.escapedText==="module"}function Fx(t){return(no(t)||Jme(t))&&qme(t.expression)&&BT(t)==="exports"}function m_(t){let n=lrr(t);return n===5||Ei(t)?n:0}function J4(t){return te(t.arguments)===3&&no(t.expression)&&ct(t.expression.expression)&&Zi(t.expression.expression)==="Object"&&Zi(t.expression.name)==="defineProperty"&&jy(t.arguments[1])&&V4(t.arguments[0],!0)}function P6e(t){return no(t)||Jme(t)}function Jme(t){return mu(t)&&jy(t.argumentExpression)}function nP(t,n){return no(t)&&(!n&&t.expression.kind===110||ct(t.name)&&V4(t.expression,!0))||Are(t,n)}function Are(t,n){return Jme(t)&&(!n&&t.expression.kind===110||ru(t.expression)||nP(t.expression,!0))}function V4(t,n){return ru(t)||nP(t,n)}function $G(t){return no(t)?t.name:t.argumentExpression}function lrr(t){if(Js(t)){if(!J4(t))return 0;let n=t.arguments[0];return q4(n)||Fx(n)?8:nP(n)&&BT(n)==="prototype"?9:7}return t.operatorToken.kind!==64||!wu(t.left)||urr(BG(t))?0:V4(t.left.expression,!0)&&BT(t.left)==="prototype"&&Lc(Vme(t))?6:UG(t.left)}function urr(t){return SF(t)&&qh(t.expression)&&t.expression.text==="0"}function wre(t){if(no(t))return t.name;let n=bl(t.argumentExpression);return qh(n)||Sl(n)?n:t}function BT(t){let n=wre(t);if(n){if(ct(n))return n.escapedText;if(Sl(n)||qh(n))return dp(n.text)}}function UG(t){if(t.expression.kind===110)return 4;if(Fx(t))return 2;if(V4(t.expression,!0)){if(_C(t.expression))return 3;let n=t;for(;!ct(n.expression);)n=n.expression;let a=n.expression;if((a.escapedText==="exports"||a.escapedText==="module"&&BT(n)==="exports")&&nP(t))return 1;if(V4(t,!0)||mu(t)&&Rre(t))return 5}return 0}function Vme(t){for(;wi(t.right);)t=t.right;return t.right}function zG(t){return wi(t)&&m_(t)===3}function N6e(t){return Ei(t)&&t.parent&&t.parent.kind===245&&(!mu(t)||Jme(t))&&!!mv(t.parent)}function SU(t,n){let{valueDeclaration:a}=t;(!a||!(n.flags&33554432&&!Ei(n)&&!(a.flags&33554432))&&yU(a)&&!yU(n)||a.kind!==n.kind&&Qtr(a))&&(t.valueDeclaration=n)}function O6e(t){if(!t||!t.valueDeclaration)return!1;let n=t.valueDeclaration;return n.kind===263||Oo(n)&&n.initializer&&Rs(n.initializer)}function F6e(t){switch(t?.kind){case 261:case 209:case 273:case 279:case 272:case 274:case 281:case 275:case 282:case 277:case 206:return!0}return!1}function qO(t){var n,a;switch(t.kind){case 261:case 209:return(n=fn(t.initializer,c=>$h(c,!0)))==null?void 0:n.arguments[0];case 273:case 279:case 352:return Ci(t.moduleSpecifier,Sl);case 272:return Ci((a=Ci(t.moduleReference,WT))==null?void 0:a.expression,Sl);case 274:case 281:return Ci(t.parent.moduleSpecifier,Sl);case 275:case 282:return Ci(t.parent.parent.moduleSpecifier,Sl);case 277:return Ci(t.parent.parent.parent.moduleSpecifier,Sl);case 206:return jT(t)?t.argument.literal:void 0;default:$.assertNever(t)}}function bU(t){return qG(t)||$.failBadSyntaxKind(t.parent)}function qG(t){switch(t.parent.kind){case 273:case 279:case 352:return t.parent;case 284:return t.parent.parent;case 214:return Bh(t.parent)||$h(t.parent,!1)?t.parent:void 0;case 202:if(!Ic(t))break;return Ci(t.parent.parent,AS);default:return}}function JG(t,n){return!!n.rewriteRelativeImportExtensions&&ch(t)&&!sf(t)&&X4(t)}function JO(t){switch(t.kind){case 273:case 279:case 352:return t.moduleSpecifier;case 272:return t.moduleReference.kind===284?t.moduleReference.expression:void 0;case 206:return jT(t)?t.argument.literal:void 0;case 214:return t.arguments[0];case 268:return t.name.kind===11?t.name:void 0;default:return $.assertNever(t)}}function HR(t){switch(t.kind){case 273:return t.importClause&&Ci(t.importClause.namedBindings,zx);case 272:return t;case 279:return t.exportClause&&Ci(t.exportClause,Db);default:return $.assertNever(t)}}function W4(t){return(t.kind===273||t.kind===352)&&!!t.importClause&&!!t.importClause.name}function R6e(t,n){if(t.name){let a=n(t);if(a)return a}if(t.namedBindings){let a=zx(t.namedBindings)?n(t.namedBindings):X(t.namedBindings.elements,n);if(a)return a}}function VO(t){switch(t.kind){case 170:case 175:case 174:case 305:case 304:case 173:case 172:return t.questionToken!==void 0}return!1}function WO(t){let n=TL(t)?pi(t.parameters):void 0,a=Ci(n&&n.name,ct);return!!a&&a.escapedText==="new"}function n1(t){return t.kind===347||t.kind===339||t.kind===341}function VG(t){return n1(t)||s1(t)}function prr(t){return af(t)&&wi(t.expression)&&t.expression.operatorToken.kind===64?BG(t.expression):void 0}function Gct(t){return af(t)&&wi(t.expression)&&m_(t.expression)!==0&&wi(t.expression.right)&&(t.expression.right.operatorToken.kind===57||t.expression.right.operatorToken.kind===61)?t.expression.right.right:void 0}function Hct(t){switch(t.kind){case 244:let n=GO(t);return n&&n.initializer;case 173:return t.initializer;case 304:return t.initializer}}function GO(t){return h_(t)?pi(t.declarationList.declarations):void 0}function Kct(t){return I_(t)&&t.body&&t.body.kind===268?t.body:void 0}function KR(t){if(t.kind>=244&&t.kind<=260)return!0;switch(t.kind){case 80:case 110:case 108:case 167:case 237:case 213:case 212:case 209:case 219:case 220:case 175:case 178:case 179:return!0;default:return!1}}function WG(t){switch(t.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function Wme(t,n){let a;_U(t)&&lE(t)&&hy(t.initializer)&&(a=En(a,Qct(t,t.initializer.jsDoc)));let c=t;for(;c&&c.parent;){if(hy(c)&&(a=En(a,Qct(t,c.jsDoc))),c.kind===170){a=En(a,(n?Ite:P4)(c));break}if(c.kind===169){a=En(a,(n?Z$:Pte)(c));break}c=Gme(c)}return a||j}function Qct(t,n){let a=Sn(n);return an(n,c=>{if(c===a){let u=yr(c.tags,_=>_rr(t,_));return c.tags===u?[c]:u}else return yr(c.tags,EL)})}function _rr(t,n){return!(mz(n)||Xne(n))||!n.parent||!kv(n.parent)||!mh(n.parent.parent)||n.parent.parent===t}function Gme(t){let n=t.parent;if(n.kind===304||n.kind===278||n.kind===173||n.kind===245&&t.kind===212||n.kind===254||Kct(n)||of(t))return n;if(n.parent&&(GO(n.parent)===t||of(n)))return n.parent;if(n.parent&&n.parent.parent&&(GO(n.parent.parent)||Hct(n.parent.parent)===t||Gct(n.parent.parent)))return n.parent.parent}function GG(t){if(t.symbol)return t.symbol;if(!ct(t.name))return;let n=t.name.escapedText,a=dA(t);if(!a)return;let c=wt(a.parameters,u=>u.name.kind===80&&u.name.escapedText===n);return c&&c.symbol}function Ire(t){if(kv(t.parent)&&t.parent.tags){let n=wt(t.parent.tags,n1);if(n)return n}return dA(t)}function Hme(t){return Mte(t,EL)}function dA(t){let n=fA(t);if(n)return Zm(n)&&n.type&&Rs(n.type)?n.type:Rs(n)?n:void 0}function fA(t){let n=iP(t);if(n)return Gct(n)||prr(n)||Hct(n)||GO(n)||Kct(n)||n}function iP(t){let n=QR(t);if(!n)return;let a=n.parent;if(a&&a.jsDoc&&n===Yr(a.jsDoc))return a}function QR(t){return fn(t.parent,kv)}function L6e(t){let n=t.name.escapedText,{typeParameters:a}=t.parent.parent.parent;return a&&wt(a,c=>c.name.escapedText===n)}function Zct(t){return!!t.typeArguments}var M6e=(t=>(t[t.None=0]="None",t[t.Definite=1]="Definite",t[t.Compound=2]="Compound",t))(M6e||{});function j6e(t){let n=t.parent;for(;;){switch(n.kind){case 227:let a=n,c=a.operatorToken.kind;return zT(c)&&a.left===t?a:void 0;case 225:case 226:let u=n,_=u.operator;return _===46||_===47?u:void 0;case 250:case 251:let f=n;return f.initializer===t?f:void 0;case 218:case 210:case 231:case 236:t=n;break;case 306:t=n.parent;break;case 305:if(n.name!==t)return;t=n.parent;break;case 304:if(n.name===t)return;t=n.parent;break;default:return}n=t.parent}}function cC(t){let n=j6e(t);if(!n)return 0;switch(n.kind){case 227:let a=n.operatorToken.kind;return a===64||OU(a)?1:2;case 225:case 226:return 2;case 250:case 251:return 1}}function lC(t){return!!j6e(t)}function drr(t){let n=bl(t.right);return n.kind===227&&tye(n.operatorToken.kind)}function Kme(t){let n=j6e(t);return!!n&&of(n,!0)&&drr(n)}function B6e(t){switch(t.kind){case 242:case 244:case 255:case 246:case 256:case 270:case 297:case 298:case 257:case 249:case 250:case 251:case 247:case 248:case 259:case 300:return!0}return!1}function G4(t){return bu(t)||Iu(t)||OO(t)||i_(t)||kp(t)}function Xct(t,n){for(;t&&t.kind===n;)t=t.parent;return t}function HG(t){return Xct(t,197)}function V1(t){return Xct(t,218)}function $6e(t){let n;for(;t&&t.kind===197;)n=t,t=t.parent;return[n,t]}function xU(t){for(;i3(t);)t=t.type;return t}function bl(t,n){return Wp(t,n?-2147483647:1)}function Qme(t){return t.kind!==212&&t.kind!==213?!1:(t=V1(t.parent),t&&t.kind===221)}function oP(t,n){for(;t;){if(t===n)return!0;t=t.parent}return!1}function Eb(t){return!Ta(t)&&!$s(t)&&Vd(t.parent)&&t.parent.name===t}function TU(t){let n=t.parent;switch(t.kind){case 11:case 15:case 9:if(dc(n))return n.parent;case 80:if(Vd(n))return n.name===t?n:void 0;if(dh(n)){let a=n.parent;return Uy(a)&&a.name===n?a:void 0}else{let a=n.parent;return wi(a)&&m_(a)!==0&&(a.left.symbol||a.symbol)&&cs(a)===t?a:void 0}case 81:return Vd(n)&&n.name===t?n:void 0;default:return}}function KG(t){return jy(t)&&t.parent.kind===168&&Vd(t.parent.parent)}function U6e(t){let n=t.parent;switch(n.kind){case 173:case 172:case 175:case 174:case 178:case 179:case 307:case 304:case 212:return n.name===t;case 167:return n.right===t;case 209:case 277:return n.propertyName===t;case 282:case 292:case 286:case 287:case 288:return!0}return!1}function Zme(t){switch(t.parent.kind){case 274:case 277:case 275:case 282:case 278:case 272:case 281:return t.parent;case 167:do t=t.parent;while(t.parent.kind===167);return Zme(t)}}function Pre(t){return ru(t)||w_(t)}function QG(t){let n=Xme(t);return Pre(n)}function Xme(t){return Xu(t)?t.expression:t.right}function z6e(t){return t.kind===305?t.name:t.kind===304?t.initializer:t.parent.right}function vv(t){let n=aP(t);if(n&&Ei(t)){let a=Ote(t);if(a)return a.class}return n}function aP(t){let n=ZG(t.heritageClauses,96);return n&&n.types.length>0?n.types[0]:void 0}function ZR(t){if(Ei(t))return Fte(t).map(n=>n.class);{let n=ZG(t.heritageClauses,119);return n?.types}}function EU(t){return Af(t)?kU(t)||j:Co(t)&&go(Z2(vv(t)),ZR(t))||j}function kU(t){let n=ZG(t.heritageClauses,96);return n?n.types:void 0}function ZG(t,n){if(t){for(let a of t)if(a.token===n)return a}}function mA(t,n){for(;t;){if(t.kind===n)return t;t=t.parent}}function Uh(t){return 83<=t&&t<=166}function Yme(t){return 19<=t&&t<=79}function Nre(t){return Uh(t)||Yme(t)}function Ore(t){return 128<=t&&t<=166}function ehe(t){return Uh(t)&&!Ore(t)}function HO(t){let n=kx(t);return n!==void 0&&ehe(n)}function the(t){let n=aA(t);return!!n&&!Ore(n)}function XR(t){return 2<=t&&t<=7}var q6e=(t=>(t[t.Normal=0]="Normal",t[t.Generator=1]="Generator",t[t.Async=2]="Async",t[t.Invalid=4]="Invalid",t[t.AsyncGenerator=3]="AsyncGenerator",t))(q6e||{});function A_(t){if(!t)return 4;let n=0;switch(t.kind){case 263:case 219:case 175:t.asteriskToken&&(n|=1);case 220:ko(t,1024)&&(n|=2);break}return t.body||(n|=4),n}function CU(t){switch(t.kind){case 263:case 219:case 220:case 175:return t.body!==void 0&&t.asteriskToken===void 0&&ko(t,1024)}return!1}function jy(t){return Sl(t)||qh(t)}function Fre(t){return TA(t)&&(t.operator===40||t.operator===41)&&qh(t.operand)}function $T(t){let n=cs(t);return!!n&&Rre(n)}function Rre(t){if(!(t.kind===168||t.kind===213))return!1;let n=mu(t)?bl(t.argumentExpression):t.expression;return!jy(n)&&!Fre(n)}function H4(t){switch(t.kind){case 80:case 81:return t.escapedText;case 11:case 15:case 9:case 10:return dp(t.text);case 168:let n=t.expression;return jy(n)?dp(n.text):Fre(n)?n.operator===41?Zs(n.operator)+n.operand.text:n.operand.text:void 0;case 296:return cF(t);default:return $.assertNever(t)}}function SS(t){switch(t.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function g0(t){return Dx(t)?Zi(t):Ev(t)?ez(t):t.text}function DU(t){return Dx(t)?t.escapedText:Ev(t)?cF(t):dp(t.text)}function XG(t,n){return`__#${hc(t)}@${n}`}function AU(t){return Ca(t.escapedName,"__@")}function J6e(t){return Ca(t.escapedName,"__#")}function frr(t){return ct(t)?Zi(t)==="__proto__":Ic(t)&&t.text==="__proto__"}function Lre(t,n){switch(t=Wp(t),t.kind){case 232:if(c0e(t))return!1;break;case 219:if(t.name)return!1;break;case 220:break;default:return!1}return typeof n=="function"?n(t):!0}function rhe(t){switch(t.kind){case 304:return!frr(t.name);case 305:return!!t.objectAssignmentInitializer;case 261:return ct(t.name)&&!!t.initializer;case 170:return ct(t.name)&&!!t.initializer&&!t.dotDotDotToken;case 209:return ct(t.name)&&!!t.initializer&&!t.dotDotDotToken;case 173:return!!t.initializer;case 227:switch(t.operatorToken.kind){case 64:case 77:case 76:case 78:return ct(t.left)}break;case 278:return!0}return!1}function Mg(t,n){if(!rhe(t))return!1;switch(t.kind){case 304:return Lre(t.initializer,n);case 305:return Lre(t.objectAssignmentInitializer,n);case 261:case 170:case 209:case 173:return Lre(t.initializer,n);case 227:return Lre(t.right,n);case 278:return Lre(t.expression,n)}}function nhe(t){return t.escapedText==="push"||t.escapedText==="unshift"}function hA(t){return bS(t).kind===170}function bS(t){for(;t.kind===209;)t=t.parent.parent;return t}function ihe(t){let n=t.kind;return n===177||n===219||n===263||n===220||n===175||n===178||n===179||n===268||n===308}function fu(t){return bv(t.pos)||bv(t.end)}var V6e=(t=>(t[t.Left=0]="Left",t[t.Right=1]="Right",t))(V6e||{});function ohe(t){let n=Yct(t),a=t.kind===215&&t.arguments!==void 0;return ahe(t.kind,n,a)}function ahe(t,n,a){switch(t){case 215:return a?0:1;case 225:case 222:case 223:case 221:case 224:case 228:case 230:return 1;case 227:switch(n){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function wU(t){let n=Yct(t),a=t.kind===215&&t.arguments!==void 0;return YG(t.kind,n,a)}function Yct(t){return t.kind===227?t.operatorToken.kind:t.kind===225||t.kind===226?t.operator:t.kind}var W6e=(t=>(t[t.Comma=0]="Comma",t[t.Spread=1]="Spread",t[t.Yield=2]="Yield",t[t.Assignment=3]="Assignment",t[t.Conditional=4]="Conditional",t[t.LogicalOR=5]="LogicalOR",t[t.Coalesce=5]="Coalesce",t[t.LogicalAND=6]="LogicalAND",t[t.BitwiseOR=7]="BitwiseOR",t[t.BitwiseXOR=8]="BitwiseXOR",t[t.BitwiseAND=9]="BitwiseAND",t[t.Equality=10]="Equality",t[t.Relational=11]="Relational",t[t.Shift=12]="Shift",t[t.Additive=13]="Additive",t[t.Multiplicative=14]="Multiplicative",t[t.Exponentiation=15]="Exponentiation",t[t.Unary=16]="Unary",t[t.Update=17]="Update",t[t.LeftHandSide=18]="LeftHandSide",t[t.Member=19]="Member",t[t.Primary=20]="Primary",t[t.Highest=20]="Highest",t[t.Lowest=0]="Lowest",t[t.Invalid=-1]="Invalid",t))(W6e||{});function YG(t,n,a){switch(t){case 357:return 0;case 231:return 1;case 230:return 2;case 228:return 4;case 227:switch(n){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return eH(n)}case 217:case 236:case 225:case 222:case 223:case 221:case 224:return 16;case 226:return 17;case 214:return 18;case 215:return a?19:18;case 216:case 212:case 213:case 237:return 19;case 235:case 239:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 210:case 211:case 219:case 220:case 232:case 14:case 15:case 229:case 218:case 233:case 285:case 286:case 289:return 20;default:return-1}}function eH(t){switch(t){case 61:return 5;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function YR(t){return yr(t,n=>{switch(n.kind){case 295:return!!n.expression;case 12:return!n.containsOnlyTriviaWhiteSpaces;default:return!0}})}function IU(){let t=[],n=[],a=new Map,c=!1;return{add:_,lookup:u,getGlobalDiagnostics:f,getDiagnostics:y};function u(g){let k;if(g.file?k=a.get(g.file.fileName):k=t,!k)return;let T=rs(k,g,vl,D4e);if(T>=0)return k[T];if(~T>0&&ine(g,k[~T-1]))return k[~T-1]}function _(g){let k;g.file?(k=a.get(g.file.fileName),k||(k=[],a.set(g.file.fileName,k),vm(n,g.file.fileName,Su))):(c&&(c=!1,t=t.slice()),k=t),vm(k,g,D4e,ine)}function f(){return c=!0,t}function y(g){if(g)return a.get(g)||[];let k=Xr(n,T=>a.get(T));return t.length&&k.unshift(...t),k}}var mrr=/\$\{/g;function she(t){return t.replace(mrr,"\\${")}function G6e(t){return!!((t.templateFlags||0)&2048)}function che(t){return t&&!!(r3(t)?G6e(t):G6e(t.head)||Pt(t.templateSpans,n=>G6e(n.literal)))}var hrr=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,grr=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,yrr=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,vrr=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));function elt(t){return"\\u"+("0000"+t.toString(16).toUpperCase()).slice(-4)}function Srr(t,n,a){if(t.charCodeAt(0)===0){let c=a.charCodeAt(n+t.length);return c>=48&&c<=57?"\\x00":"\\0"}return vrr.get(t)||elt(t.charCodeAt(0))}function kb(t,n){let a=n===96?yrr:n===39?grr:hrr;return t.replace(a,Srr)}var tlt=/[^\u0000-\u007F]/g;function Mre(t,n){return t=kb(t,n),tlt.test(t)?t.replace(tlt,a=>elt(a.charCodeAt(0))):t}var brr=/["\u0000-\u001f\u2028\u2029\u0085]/g,xrr=/['\u0000-\u001f\u2028\u2029\u0085]/g,Trr=new Map(Object.entries({'"':""","'":"'"}));function Err(t){return"&#x"+t.toString(16).toUpperCase()+";"}function krr(t){return t.charCodeAt(0)===0?"�":Trr.get(t)||Err(t.charCodeAt(0))}function lhe(t,n){let a=n===39?xrr:brr;return t.replace(a,krr)}function i1(t){let n=t.length;return n>=2&&t.charCodeAt(0)===t.charCodeAt(n-1)&&Crr(t.charCodeAt(0))?t.substring(1,n-1):t}function Crr(t){return t===39||t===34||t===96}function eL(t){let n=t.charCodeAt(0);return n>=97&&n<=122||t.includes("-")}var tH=[""," "];function jre(t){let n=tH[1];for(let a=tH.length;a<=t;a++)tH.push(tH[a-1]+n);return tH[t]}function rH(){return tH[1].length}function nH(t){var n,a,c,u,_,f=!1;function y(U){let J=oE(U);J.length>1?(u=u+J.length-1,_=n.length-U.length+Sn(J),c=_-n.length===0):c=!1}function g(U){U&&U.length&&(c&&(U=jre(a)+U,c=!1),n+=U,y(U))}function k(U){U&&(f=!1),g(U)}function T(U){U&&(f=!0),g(U)}function C(){n="",a=0,c=!0,u=0,_=0,f=!1}function O(U){U!==void 0&&(n+=U,y(U),f=!1)}function F(U){U&&U.length&&k(U)}function M(U){(!c||U)&&(n+=t,u++,_=n.length,c=!0,f=!1)}return C(),{write:k,rawWrite:O,writeLiteral:F,writeLine:M,increaseIndent:()=>{a++},decreaseIndent:()=>{a--},getIndent:()=>a,getTextPos:()=>n.length,getLine:()=>u,getColumn:()=>c?a*rH():n.length-_,getText:()=>n,isAtStartOfLine:()=>c,hasTrailingComment:()=>f,hasTrailingWhitespace:()=>!!n.length&&p0(n.charCodeAt(n.length-1)),clear:C,writeKeyword:k,writeOperator:k,writeParameter:k,writeProperty:k,writePunctuation:k,writeSpace:k,writeStringLiteral:k,writeSymbol:(U,J)=>k(U),writeTrailingSemicolon:k,writeComment:T}}function uhe(t){let n=!1;function a(){n&&(t.writeTrailingSemicolon(";"),n=!1)}return{...t,writeTrailingSemicolon(){n=!0},writeLiteral(c){a(),t.writeLiteral(c)},writeStringLiteral(c){a(),t.writeStringLiteral(c)},writeSymbol(c,u){a(),t.writeSymbol(c,u)},writePunctuation(c){a(),t.writePunctuation(c)},writeKeyword(c){a(),t.writeKeyword(c)},writeOperator(c){a(),t.writeOperator(c)},writeParameter(c){a(),t.writeParameter(c)},writeSpace(c){a(),t.writeSpace(c)},writeProperty(c){a(),t.writeProperty(c)},writeComment(c){a(),t.writeComment(c)},writeLine(){a(),t.writeLine()},increaseIndent(){a(),t.increaseIndent()},decreaseIndent(){a(),t.decreaseIndent()}}}function K4(t){return t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!1}function UT(t){return _d(K4(t))}function phe(t,n,a){return n.moduleName||_he(t,n.fileName,a&&a.fileName)}function rlt(t,n){return t.getCanonicalFileName(za(n,t.getCurrentDirectory()))}function H6e(t,n,a){let c=n.getExternalModuleFileFromDeclaration(a);if(!c||c.isDeclarationFile)return;let u=JO(a);if(!(u&&Sl(u)&&!ch(u.text)&&!rlt(t,c.path).includes(rlt(t,r_(t.getCommonSourceDirectory())))))return phe(t,c)}function _he(t,n,a){let c=g=>t.getCanonicalFileName(g),u=wl(a?mo(a):t.getCommonSourceDirectory(),t.getCurrentDirectory(),c),_=za(n,t.getCurrentDirectory()),f=FT(u,_,u,c,!1),y=Qm(f);return a?Tx(y):y}function K6e(t,n,a){let c=n.getCompilerOptions(),u;return c.outDir?u=Qm(qre(t,n,c.outDir)):u=Qm(t),u+a}function Q6e(t,n){return Bre(t,n.getCompilerOptions(),n)}function Bre(t,n,a){let c=n.declarationDir||n.outDir,u=c?Z6e(t,c,a.getCurrentDirectory(),a.getCommonSourceDirectory(),f=>a.getCanonicalFileName(f)):t,_=$re(u);return Qm(u)+_}function $re(t){return _p(t,[".mjs",".mts"])?".d.mts":_p(t,[".cjs",".cts"])?".d.cts":_p(t,[".json"])?".d.json.ts":".d.ts"}function dhe(t){return _p(t,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:_p(t,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:_p(t,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function fhe(t,n,a,c){return a?mb(c(),lh(a,t,n)):t}function Ure(t,n){var a;if(t.paths)return t.baseUrl??$.checkDefined(t.pathsBasePath||((a=n.getCurrentDirectory)==null?void 0:a.call(n)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function zre(t,n,a){let c=t.getCompilerOptions();if(c.outFile){let u=Km(c),_=c.emitDeclarationOnly||u===2||u===4;return yr(t.getSourceFiles(),f=>(_||!yd(f))&&sP(f,t,a))}else{let u=n===void 0?t.getSourceFiles():[n];return yr(u,_=>sP(_,t,a))}}function sP(t,n,a){let c=n.getCompilerOptions();if(c.noEmitForJsFiles&&ph(t)||t.isDeclarationFile||n.isSourceFileFromExternalLibrary(t))return!1;if(a)return!0;if(n.isSourceOfProjectReferenceRedirect(t.fileName))return!1;if(!h0(t))return!0;if(n.getRedirectFromSourceFile(t.fileName))return!1;if(c.outFile)return!0;if(!c.outDir)return!1;if(c.rootDir||c.composite&&c.configFilePath){let u=za(jz(c,()=>[],n.getCurrentDirectory(),n.getCanonicalFileName),n.getCurrentDirectory()),_=Z6e(t.fileName,c.outDir,n.getCurrentDirectory(),u,n.getCanonicalFileName);if(M1(t.fileName,_,n.getCurrentDirectory(),!n.useCaseSensitiveFileNames())===0)return!1}return!0}function qre(t,n,a){return Z6e(t,a,n.getCurrentDirectory(),n.getCommonSourceDirectory(),c=>n.getCanonicalFileName(c))}function Z6e(t,n,a,c,u){let _=za(t,a);return _=u(_).indexOf(u(c))===0?_.substring(c.length):_,Xi(n,_)}function Jre(t,n,a,c,u,_,f){t.writeFile(a,c,u,y=>{n.add(bp(x.Could_not_write_file_0_Colon_1,a,y))},_,f)}function nlt(t,n,a){if(t.length>Fy(t)&&!a(t)){let c=mo(t);nlt(c,n,a),n(t)}}function mhe(t,n,a,c,u,_){try{c(t,n,a)}catch{nlt(mo(Qs(t)),u,_),c(t,n,a)}}function PU(t,n){let a=Ry(t);return nA(a,n)}function tL(t,n){return nA(t,n)}function Rx(t){return wt(t.members,n=>kp(n)&&t1(n.body))}function NU(t){if(t&&t.parameters.length>0){let n=t.parameters.length===2&&uC(t.parameters[0]);return t.parameters[n?1:0]}}function X6e(t){let n=NU(t);return n&&n.type}function cP(t){if(t.parameters.length&&!TE(t)){let n=t.parameters[0];if(uC(n))return n}}function uC(t){return pC(t.name)}function pC(t){return!!t&&t.kind===80&&hhe(t)}function KO(t){return!!fn(t,n=>n.kind===187?!0:n.kind===80||n.kind===167?!1:"quit")}function lP(t){if(!pC(t))return!1;for(;dh(t.parent)&&t.parent.left===t;)t=t.parent;return t.parent.kind===187}function hhe(t){return t.escapedText==="this"}function uP(t,n){let a,c,u,_;return $T(n)?(a=n,n.kind===178?u=n:n.kind===179?_=n:$.fail("Accessor has wrong kind")):X(t,f=>{if(tC(f)&&oc(f)===oc(n)){let y=H4(f.name),g=H4(n.name);y===g&&(a?c||(c=f):a=f,f.kind===178&&!u&&(u=f),f.kind===179&&!_&&(_=f))}}),{firstAccessor:a,secondAccessor:c,getAccessor:u,setAccessor:_}}function X_(t){if(!Ei(t)&&i_(t)||s1(t))return;let n=t.type;return n||!Ei(t)?n:rU(t)?t.typeExpression&&t.typeExpression.type:hv(t)}function Y6e(t){return t.type}function jg(t){return TE(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(Ei(t)?iG(t):void 0)}function Vre(t){return an(sA(t),n=>Drr(n)?n.typeParameters:void 0)}function Drr(t){return c1(t)&&!(t.parent.kind===321&&(t.parent.tags.some(n1)||t.parent.tags.some(EL)))}function ghe(t){let n=NU(t);return n&&X_(n)}function Arr(t,n,a,c){wrr(t,n,a.pos,c)}function wrr(t,n,a,c){c&&c.length&&a!==c[0].pos&&tL(t,a)!==tL(t,c[0].pos)&&n.writeLine()}function e4e(t,n,a,c){a!==c&&tL(t,a)!==tL(t,c)&&n.writeLine()}function Irr(t,n,a,c,u,_,f,y){if(c&&c.length>0){u&&a.writeSpace(" ");let g=!1;for(let k of c)g&&(a.writeSpace(" "),g=!1),y(t,n,a,k.pos,k.end,f),k.hasTrailingNewLine?a.writeLine():g=!0;g&&_&&a.writeSpace(" ")}}function t4e(t,n,a,c,u,_,f){let y,g;if(f?u.pos===0&&(y=yr(my(t,u.pos),k)):y=my(t,u.pos),y){let T=[],C;for(let O of y){if(C){let F=tL(n,C.end);if(tL(n,O.pos)>=F+2)break}T.push(O),C=O}if(T.length){let O=tL(n,Sn(T).end);tL(n,_c(t,u.pos))>=O+2&&(Arr(n,a,u,y),Irr(t,n,a,T,!1,!0,_,c),g={nodePos:u.pos,detachedCommentEndPos:Sn(T).end})}}return g;function k(T){return ore(t,T.pos)}}function rL(t,n,a,c,u,_){if(t.charCodeAt(c+1)===42){let f=aE(n,c),y=n.length,g;for(let k=c,T=f.line;k0){let M=F%rH(),U=jre((F-M)/rH());for(a.rawWrite(U);M;)a.rawWrite(" "),M--}else a.rawWrite("")}Prr(t,u,a,_,k,C),k=C}}else a.writeComment(t.substring(c,u))}function Prr(t,n,a,c,u,_){let f=Math.min(n,_-1),y=t.substring(u,f).trim();y?(a.writeComment(y),f!==n&&a.writeLine()):a.rawWrite(c)}function ilt(t,n,a){let c=0;for(;n=0&&t.kind<=166?0:(t.modifierFlagsCache&536870912||(t.modifierFlagsCache=She(t)|536870912),a||n&&Ei(t)?(!(t.modifierFlagsCache&268435456)&&t.parent&&(t.modifierFlagsCache|=olt(t)|268435456),alt(t.modifierFlagsCache)):Nrr(t.modifierFlagsCache))}function tm(t){return i4e(t,!0)}function o4e(t){return i4e(t,!0,!0)}function _E(t){return i4e(t,!1)}function olt(t){let n=0;return t.parent&&!wa(t)&&(Ei(t)&&(Rte(t)&&(n|=8388608),Ln(t)&&(n|=16777216),lo(t)&&(n|=33554432),ta(t)&&(n|=67108864),ml(t)&&(n|=134217728)),kf(t)&&(n|=65536)),n}function Nrr(t){return t&65535}function alt(t){return t&131071|(t&260046848)>>>23}function Orr(t){return alt(olt(t))}function a4e(t){return She(t)|Orr(t)}function She(t){let n=l1(t)?TS(t.modifiers):0;return(t.flags&8||t.kind===80&&t.flags&4096)&&(n|=32),n}function TS(t){let n=0;if(t)for(let a of t)n|=ZO(a.kind);return n}function ZO(t){switch(t){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 171:return 32768}return 0}function iH(t){return t===57||t===56}function s4e(t){return iH(t)||t===54}function OU(t){return t===76||t===77||t===78}function bhe(t){return wi(t)&&OU(t.operatorToken.kind)}function Gre(t){return iH(t)||t===61}function oH(t){return wi(t)&&Gre(t.operatorToken.kind)}function zT(t){return t>=64&&t<=79}function xhe(t){let n=The(t);return n&&!n.isImplements?n.class:void 0}function The(t){if(VT(t)){if(zg(t.parent)&&Co(t.parent.parent))return{class:t.parent.parent,isImplements:t.parent.token===119};if(EF(t.parent)){let n=fA(t.parent);if(n&&Co(n))return{class:n,isImplements:!1}}}}function of(t,n){return wi(t)&&(n?t.operatorToken.kind===64:zT(t.operatorToken.kind))&&jh(t.left)}function dE(t){if(of(t,!0)){let n=t.left.kind;return n===211||n===210}return!1}function Hre(t){return xhe(t)!==void 0}function ru(t){return t.kind===80||sH(t)}function _h(t){switch(t.kind){case 80:return t;case 167:do t=t.left;while(t.kind!==80);return t;case 212:do t=t.expression;while(t.kind!==80);return t}}function aH(t){return t.kind===80||t.kind===110||t.kind===108||t.kind===237||t.kind===212&&aH(t.expression)||t.kind===218&&aH(t.expression)}function sH(t){return no(t)&&ct(t.name)&&ru(t.expression)}function cH(t){if(no(t)){let n=cH(t.expression);if(n!==void 0)return n+"."+Rg(t.name)}else if(mu(t)){let n=cH(t.expression);if(n!==void 0&&q_(t.argumentExpression))return n+"."+H4(t.argumentExpression)}else{if(ct(t))return oa(t.escapedText);if(Ev(t))return ez(t)}}function _C(t){return nP(t)&&BT(t)==="prototype"}function FU(t){return t.parent.kind===167&&t.parent.right===t||t.parent.kind===212&&t.parent.name===t||t.parent.kind===237&&t.parent.name===t}function Ehe(t){return!!t.parent&&(no(t.parent)&&t.parent.name===t||mu(t.parent)&&t.parent.argumentExpression===t)}function c4e(t){return dh(t.parent)&&t.parent.right===t||no(t.parent)&&t.parent.name===t||wA(t.parent)&&t.parent.right===t}function Kre(t){return wi(t)&&t.operatorToken.kind===104}function l4e(t){return Kre(t.parent)&&t===t.parent.right}function khe(t){return t.kind===211&&t.properties.length===0}function u4e(t){return t.kind===210&&t.elements.length===0}function RU(t){if(!(!Frr(t)||!t.declarations)){for(let n of t.declarations)if(n.localSymbol)return n.localSymbol}}function Frr(t){return t&&te(t.declarations)>0&&ko(t.declarations[0],2048)}function Qre(t){return wt(cnr,n=>Au(t,n))}function Rrr(t){let n=[],a=t.length;for(let c=0;c>6|192),n.push(u&63|128)):u<65536?(n.push(u>>12|224),n.push(u>>6&63|128),n.push(u&63|128)):u<131072?(n.push(u>>18|240),n.push(u>>12&63|128),n.push(u>>6&63|128),n.push(u&63|128)):$.assert(!1,"Unexpected code point")}return n}var XO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function p4e(t){let n="",a=Rrr(t),c=0,u=a.length,_,f,y,g;for(;c>2,f=(a[c]&3)<<4|a[c+1]>>4,y=(a[c+1]&15)<<2|a[c+2]>>6,g=a[c+2]&63,c+1>=u?y=g=64:c+2>=u&&(g=64),n+=XO.charAt(_)+XO.charAt(f)+XO.charAt(y)+XO.charAt(g),c+=3;return n}function Lrr(t){let n="",a=0,c=t.length;for(;a>4&3,T=(f&15)<<4|y>>2&15,C=(y&3)<<6|g&63;T===0&&y!==0?c.push(k):C===0&&g!==0?c.push(k,T):c.push(k,T,C),u+=4}return Lrr(c)}function Che(t,n){let a=Ni(n)?n:n.readFile(t);if(!a)return;let c=lH(a);if(c===void 0){let u=hye(t,a);u.error||(c=u.config)}return c}function nL(t,n){return Che(t,n)||{}}function lH(t){try{return JSON.parse(t)}catch{return}}function Sv(t,n){return!n.directoryExists||n.directoryExists(t)}var Mrr=`\r +`,jrr=` +`;function fE(t){switch(t.newLine){case 0:return Mrr;case 1:case void 0:return jrr}}function y0(t,n=t){return $.assert(n>=t||n===-1),{pos:t,end:n}}function Zre(t,n){return y0(t.pos,n)}function gA(t,n){return y0(n,t.end)}function qT(t){let n=l1(t)?Ut(t.modifiers,hd):void 0;return n&&!bv(n.end)?gA(t,n.end):t}function ES(t){if(ps(t)||Ep(t))return gA(t,t.name.pos);let n=l1(t)?Yr(t.modifiers):void 0;return n&&!bv(n.end)?gA(t,n.end):qT(t)}function Dhe(t,n){return y0(t,t+Zs(n).length)}function Z4(t,n){return m4e(t,t,n)}function Xre(t,n,a){return v0(LU(t,a,!1),LU(n,a,!1),a)}function f4e(t,n,a){return v0(t.end,n.end,a)}function m4e(t,n,a){return v0(LU(t,a,!1),n.end,a)}function uH(t,n,a){return v0(t.end,LU(n,a,!1),a)}function Ahe(t,n,a,c){let u=LU(n,a,c);return zI(a,t.end,u)}function slt(t,n,a){return zI(a,t.end,n.end)}function h4e(t,n){return!v0(t.pos,t.end,n)}function v0(t,n,a){return zI(a,t,n)===0}function LU(t,n,a){return bv(t.pos)?-1:_c(n.text,t.pos,!1,a)}function g4e(t,n,a,c){let u=_c(a.text,t,!1,c),_=Brr(u,n,a);return zI(a,_??n,u)}function y4e(t,n,a,c){let u=_c(a.text,t,!1,c);return zI(a,t,Math.min(n,u))}function zh(t,n){return whe(t.pos,t.end,n)}function whe(t,n,a){return t<=a.pos&&n>=a.end}function Brr(t,n=0,a){for(;t-- >n;)if(!p0(a.text.charCodeAt(t)))return t}function Ihe(t){let n=vs(t);if(n)switch(n.parent.kind){case 267:case 268:return n===n.parent.name}return!1}function MU(t){return yr(t.declarations,pH)}function pH(t){return Oo(t)&&t.initializer!==void 0}function Phe(t){return t.watch&&Ho(t,"watch")}function W1(t){t.close()}function Fp(t){return t.flags&33554432?t.links.checkFlags:0}function S0(t,n=!1){if(t.valueDeclaration){let a=n&&t.declarations&&wt(t.declarations,mg)||t.flags&32768&&wt(t.declarations,T0)||t.valueDeclaration,c=Ra(a);return t.parent&&t.parent.flags&32?c:c&-8}if(Fp(t)&6){let a=t.links.checkFlags,c=a&1024?2:a&256?1:4,u=a&2048?256:0;return c|u}return t.flags&4194304?257:0}function $f(t,n){return t.flags&2097152?n.getAliasedSymbol(t):t}function iL(t){return t.exportSymbol?t.exportSymbol.flags|t.flags:t.flags}function Yre(t){return jU(t)===1}function YO(t){return jU(t)!==0}function jU(t){let{parent:n}=t;switch(n?.kind){case 218:return jU(n);case 226:case 225:let{operator:a}=n;return a===46||a===47?2:0;case 227:let{left:c,operatorToken:u}=n;return c===t&&zT(u.kind)?u.kind===64?1:2:0;case 212:return n.name!==t?0:jU(n);case 304:{let _=jU(n.parent);return t===n.name?$rr(_):_}case 305:return t===n.objectAssignmentInitializer?0:jU(n.parent);case 210:return jU(n);case 250:case 251:return t===n.initializer?1:0;default:return 0}}function $rr(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return $.assertNever(t)}}function Nhe(t,n){if(!t||!n||Object.keys(t).length!==Object.keys(n).length)return!1;for(let a in t)if(typeof t[a]=="object"){if(!Nhe(t[a],n[a]))return!1}else if(typeof t[a]!="function"&&t[a]!==n[a])return!1;return!0}function dg(t,n){t.forEach(n),t.clear()}function Lx(t,n,a){let{onDeleteValue:c,onExistingValue:u}=a;t.forEach((_,f)=>{var y;n?.has(f)?u&&u(_,(y=n.get)==null?void 0:y.call(n,f),f):(t.delete(f),c(_,f))})}function BU(t,n,a){Lx(t,n,a);let{createNewValue:c}=a;n?.forEach((u,_)=>{t.has(_)||t.set(_,c(_,u))})}function v4e(t){if(t.flags&32){let n=JT(t);return!!n&&ko(n,64)}return!1}function JT(t){var n;return(n=t.declarations)==null?void 0:n.find(Co)}function ro(t){return t.flags&3899393?t.objectFlags:0}function ene(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&UH(t.declarations[0])}function S4e({moduleSpecifier:t}){return Ic(t)?t.text:Sp(t)}function Ohe(t){let n;return Is(t,a=>{t1(a)&&(n=a)},a=>{for(let c=a.length-1;c>=0;c--)if(t1(a[c])){n=a[c];break}}),n}function o1(t,n){return t.has(n)?!1:(t.add(n),!0)}function eF(t){return Co(t)||Af(t)||fh(t)}function Fhe(t){return t>=183&&t<=206||t===133||t===159||t===150||t===163||t===151||t===136||t===154||t===155||t===116||t===157||t===146||t===141||t===234||t===313||t===314||t===315||t===316||t===317||t===318||t===319}function wu(t){return t.kind===212||t.kind===213}function Rhe(t){return t.kind===212?t.name:($.assert(t.kind===213),t.argumentExpression)}function tne(t){return t.kind===276||t.kind===280}function oL(t){for(;wu(t);)t=t.expression;return t}function b4e(t,n){if(wu(t.parent)&&Ehe(t))return a(t.parent);function a(c){if(c.kind===212){let u=n(c.name);if(u!==void 0)return u}else if(c.kind===213)if(ct(c.argumentExpression)||Sl(c.argumentExpression)){let u=n(c.argumentExpression);if(u!==void 0)return u}else return;if(wu(c.expression))return a(c.expression);if(ct(c.expression))return n(c.expression)}}function aL(t,n){for(;;){switch(t.kind){case 226:t=t.operand;continue;case 227:t=t.left;continue;case 228:t=t.condition;continue;case 216:t=t.tag;continue;case 214:if(n)return t;case 235:case 213:case 212:case 236:case 356:case 239:t=t.expression;continue}return t}}function Urr(t,n){this.flags=t,this.escapedName=n,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function zrr(t,n){this.flags=n,($.isDebugging||hi)&&(this.checker=t)}function qrr(t,n){this.flags=n,$.isDebugging&&(this.checker=t)}function x4e(t,n,a){this.pos=n,this.end=a,this.kind=t,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Jrr(t,n,a){this.pos=n,this.end=a,this.kind=t,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function Vrr(t,n,a){this.pos=n,this.end=a,this.kind=t,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Wrr(t,n,a){this.fileName=t,this.text=n,this.skipTrivia=a||(c=>c)}var Uf={getNodeConstructor:()=>x4e,getTokenConstructor:()=>Jrr,getIdentifierConstructor:()=>Vrr,getPrivateIdentifierConstructor:()=>x4e,getSourceFileConstructor:()=>x4e,getSymbolConstructor:()=>Urr,getTypeConstructor:()=>zrr,getSignatureConstructor:()=>qrr,getSourceMapSourceConstructor:()=>Wrr},clt=[];function llt(t){clt.push(t),t(Uf)}function T4e(t){Object.assign(Uf,t),X(clt,n=>n(Uf))}function Mx(t,n){return t.replace(/\{(\d+)\}/g,(a,c)=>""+$.checkDefined(n[+c]))}var rne;function E4e(t){rne=t}function k4e(t){!rne&&t&&(rne=t())}function As(t){return rne&&rne[t.key]||t.message}function tF(t,n,a,c,u,..._){a+c>n.length&&(c=n.length-a),u6e(n,a,c);let f=As(u);return Pt(_)&&(f=Mx(f,_)),{file:void 0,start:a,length:c,messageText:f,category:u.category,code:u.code,reportsUnnecessary:u.reportsUnnecessary,fileName:t}}function Grr(t){return t.file===void 0&&t.start!==void 0&&t.length!==void 0&&typeof t.fileName=="string"}function ult(t,n){let a=n.fileName||"",c=n.text.length;$.assertEqual(t.fileName,a),$.assertLessThanOrEqual(t.start,c),$.assertLessThanOrEqual(t.start+t.length,c);let u={file:n,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){u.relatedInformation=[];for(let _ of t.relatedInformation)Grr(_)&&_.fileName===a?($.assertLessThanOrEqual(_.start,c),$.assertLessThanOrEqual(_.start+_.length,c),u.relatedInformation.push(ult(_,n))):u.relatedInformation.push(_)}return u}function rF(t,n){let a=[];for(let c of t)a.push(ult(c,n));return a}function md(t,n,a,c,...u){u6e(t.text,n,a);let _=As(c);return Pt(u)&&(_=Mx(_,u)),{file:t,start:n,length:a,messageText:_,category:c.category,code:c.code,reportsUnnecessary:c.reportsUnnecessary,reportsDeprecated:c.reportsDeprecated}}function nF(t,...n){let a=As(t);return Pt(n)&&(a=Mx(a,n)),a}function bp(t,...n){let a=As(t);return Pt(n)&&(a=Mx(a,n)),{file:void 0,start:void 0,length:void 0,messageText:a,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}function nne(t,n){return{file:void 0,start:void 0,length:void 0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function ws(t,n,...a){let c=As(n);return Pt(a)&&(c=Mx(c,a)),{messageText:c,category:n.category,code:n.code,next:t===void 0||Array.isArray(t)?t:[t]}}function C4e(t,n){let a=t;for(;a.next;)a=a.next[0];a.next=[n]}function Lhe(t){return t.file?t.file.path:void 0}function $U(t,n){return D4e(t,n)||Hrr(t,n)||0}function D4e(t,n){let a=Mhe(t),c=Mhe(n);return Su(Lhe(t),Lhe(n))||Br(t.start,n.start)||Br(t.length,n.length)||Br(a,c)||Krr(t,n)||0}function Hrr(t,n){return!t.relatedInformation&&!n.relatedInformation?0:t.relatedInformation&&n.relatedInformation?Br(n.relatedInformation.length,t.relatedInformation.length)||X(t.relatedInformation,(a,c)=>{let u=n.relatedInformation[c];return $U(a,u)})||0:t.relatedInformation?-1:1}function Krr(t,n){let a=jhe(t),c=jhe(n);typeof a!="string"&&(a=a.messageText),typeof c!="string"&&(c=c.messageText);let u=typeof t.messageText!="string"?t.messageText.next:void 0,_=typeof n.messageText!="string"?n.messageText.next:void 0,f=Su(a,c);return f||(f=Qrr(u,_),f)?f:t.canonicalHead&&!n.canonicalHead?-1:n.canonicalHead&&!t.canonicalHead?1:0}function Qrr(t,n){return t===void 0&&n===void 0?0:t===void 0?1:n===void 0?-1:plt(t,n)||_lt(t,n)}function plt(t,n){if(t===void 0&&n===void 0)return 0;if(t===void 0)return 1;if(n===void 0)return-1;let a=Br(n.length,t.length);if(a)return a;for(let c=0;c{u.externalModuleIndicator=XH(u)||!u.isDeclarationFile||void 0};case 1:return u=>{u.externalModuleIndicator=XH(u)};case 2:let n=[XH];(t.jsx===4||t.jsx===5)&&n.push(Xrr),n.push(Yrr);let a=jf(...n);return u=>{u.externalModuleIndicator=a(u,t)}}}function Bhe(t){let n=km(t);return 3<=n&&n<=99||fH(t)||mH(t)}function s4n(t){return t}var zf={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:t=>!!(t.allowImportingTsExtensions||t.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:t=>(t.target===0?void 0:t.target)??(t.module===100&&9||t.module===101&&9||t.module===102&&10||t.module===199&&99||1)},module:{dependencies:["target"],computeValue:t=>typeof t.module=="number"?t.module:zf.target.computeValue(t)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:t=>{let n=t.moduleResolution;if(n===void 0)switch(zf.module.computeValue(t)){case 1:n=2;break;case 100:case 101:case 102:n=3;break;case 199:n=99;break;case 200:n=100;break;default:n=1;break}return n}},moduleDetection:{dependencies:["module","target"],computeValue:t=>{if(t.moduleDetection!==void 0)return t.moduleDetection;let n=zf.module.computeValue(t);return 100<=n&&n<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:t=>!!(t.isolatedModules||t.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:t=>{if(t.esModuleInterop!==void 0)return t.esModuleInterop;switch(zf.module.computeValue(t)){case 100:case 101:case 102:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:t=>t.allowSyntheticDefaultImports!==void 0?t.allowSyntheticDefaultImports:zf.esModuleInterop.computeValue(t)||zf.module.computeValue(t)===4||zf.moduleResolution.computeValue(t)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:t=>{let n=zf.moduleResolution.computeValue(t);if(!sL(n))return!1;if(t.resolvePackageJsonExports!==void 0)return t.resolvePackageJsonExports;switch(n){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:t=>{let n=zf.moduleResolution.computeValue(t);if(!sL(n))return!1;if(t.resolvePackageJsonImports!==void 0)return t.resolvePackageJsonImports;switch(n){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:t=>{if(t.resolveJsonModule!==void 0)return t.resolveJsonModule;switch(zf.module.computeValue(t)){case 102:case 199:return!0}return zf.moduleResolution.computeValue(t)===100}},declaration:{dependencies:["composite"],computeValue:t=>!!(t.declaration||t.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:t=>!!(t.preserveConstEnums||zf.isolatedModules.computeValue(t))},incremental:{dependencies:["composite"],computeValue:t=>!!(t.incremental||t.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:t=>!!(t.declarationMap&&zf.declaration.computeValue(t))},allowJs:{dependencies:["checkJs"],computeValue:t=>t.allowJs===void 0?!!t.checkJs:t.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:t=>t.useDefineForClassFields===void 0?zf.target.computeValue(t)>=9:t.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:t=>rm(t,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:t=>rm(t,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:t=>rm(t,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:t=>rm(t,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:t=>rm(t,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:t=>rm(t,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:t=>rm(t,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:t=>rm(t,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:t=>rm(t,"useUnknownInCatchVariables")}},UU=zf,A4e=zf.allowImportingTsExtensions.computeValue,$c=zf.target.computeValue,Km=zf.module.computeValue,km=zf.moduleResolution.computeValue,w4e=zf.moduleDetection.computeValue,a1=zf.isolatedModules.computeValue,kS=zf.esModuleInterop.computeValue,iF=zf.allowSyntheticDefaultImports.computeValue,fH=zf.resolvePackageJsonExports.computeValue,mH=zf.resolvePackageJsonImports.computeValue,_P=zf.resolveJsonModule.computeValue,fg=zf.declaration.computeValue,dC=zf.preserveConstEnums.computeValue,dP=zf.incremental.computeValue,one=zf.declarationMap.computeValue,fC=zf.allowJs.computeValue,hH=zf.useDefineForClassFields.computeValue;function gH(t){return t>=5&&t<=99}function ane(t){switch(Km(t)){case 0:case 4:case 3:return!1}return!0}function I4e(t){return t.allowUnreachableCode===!1}function P4e(t){return t.allowUnusedLabels===!1}function sL(t){return t>=3&&t<=99||t===100}function N4e(t){return 101<=t&&t<=199||t===200||t===99}function rm(t,n){return t[n]===void 0?!!t.strict:!!t[n]}function sne(t){return Ad(uye.type,(n,a)=>n===t?a:void 0)}function $he(t){return t.useDefineForClassFields!==!1&&$c(t)>=9}function O4e(t,n){return MO(n,t,PNe)}function F4e(t,n){return MO(n,t,NNe)}function R4e(t,n){return MO(n,t,ONe)}function cne(t,n){return n.strictFlag?rm(t,n.name):n.allowJsFlag?fC(t):t[n.name]}function lne(t){let n=t.jsx;return n===2||n===4||n===5}function yH(t,n){let a=n?.pragmas.get("jsximportsource"),c=Zn(a)?a[a.length-1]:a,u=n?.pragmas.get("jsxruntime"),_=Zn(u)?u[u.length-1]:u;if(_?.arguments.factory!=="classic")return t.jsx===4||t.jsx===5||t.jsxImportSource||c||_?.arguments.factory==="automatic"?c?.arguments.factory||t.jsxImportSource||"react":void 0}function une(t,n){return t?`${t}/${n.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function Uhe(t){let n=!1;for(let a=0;au,getSymlinkedDirectories:()=>a,getSymlinkedDirectoriesByRealpath:()=>c,setSymlinkedFile:(g,k)=>(u||(u=new Map)).set(g,k),setSymlinkedDirectory:(g,k)=>{let T=wl(g,t,n);QU(T)||(T=r_(T),k!==!1&&!a?.has(T)&&(c||(c=d_())).add(k.realPath,g),(a||(a=new Map)).set(T,k))},setSymlinksFromResolutions(g,k,T){$.assert(!_),_=!0,g(C=>y(this,C.resolvedModule)),k(C=>y(this,C.resolvedTypeReferenceDirective)),T.forEach(C=>y(this,C.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>_,setSymlinksFromResolution(g){y(this,g)},hasAnySymlinks:f};function f(){return!!u?.size||!!a&&!!Ad(a,g=>!!g)}function y(g,k){if(!k||!k.originalPath||!k.resolvedFileName)return;let{resolvedFileName:T,originalPath:C}=k;g.setSymlinkedFile(wl(C,t,n),T);let[O,F]=enr(T,C,t,n)||j;O&&F&&g.setSymlinkedDirectory(F,{real:r_(O),realPath:r_(wl(O,t,n))})}}function enr(t,n,a,c){let u=Cd(za(t,a)),_=Cd(za(n,a)),f=!1;for(;u.length>=2&&_.length>=2&&!flt(u[u.length-2],c)&&!flt(_[_.length-2],c)&&c(u[u.length-1])===c(_[_.length-1]);)u.pop(),_.pop(),f=!0;return f?[pS(u),pS(_)]:void 0}function flt(t,n){return t!==void 0&&(n(t)==="node_modules"||Ca(t,"@"))}function tnr(t){return XD(t.charCodeAt(0))?t.slice(1):void 0}function qhe(t,n,a){let c=Y8(t,n,a);return c===void 0?void 0:tnr(c)}var L4e=/[^\w\s/]/g;function mlt(t){return t.replace(L4e,rnr)}function rnr(t){return"\\"+t}var nnr=[42,63],inr=["node_modules","bower_components","jspm_packages"],M4e=`(?!(?:${inr.join("|")})(?:/|$))`,hlt={singleAsteriskRegexFragment:"(?:[^./]|(?:\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(?:/${M4e}[^/.][^/]*)*?`,replaceWildcardCharacter:t=>B4e(t,hlt.singleAsteriskRegexFragment)},glt={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(?:/${M4e}[^/.][^/]*)*?`,replaceWildcardCharacter:t=>B4e(t,glt.singleAsteriskRegexFragment)},ylt={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(?:/.+?)?",replaceWildcardCharacter:t=>B4e(t,ylt.singleAsteriskRegexFragment)},j4e={files:hlt,directories:glt,exclude:ylt};function zU(t,n,a){let c=pne(t,n,a);return!c||!c.length?void 0:`^(?:${c.map(f=>`(?:${f})`).join("|")})${a==="exclude"?"(?:$|/)":"$"}`}function pne(t,n,a){if(!(t===void 0||t.length===0))return an(t,c=>c&&_ne(c,n,a,j4e[a]))}function Jhe(t){return!/[.*?]/.test(t)}function Vhe(t,n,a){let c=t&&_ne(t,n,a,j4e[a]);return c&&`^(?:${c})${a==="exclude"?"(?:$|/)":"$"}`}function _ne(t,n,a,{singleAsteriskRegexFragment:c,doubleAsteriskRegexFragment:u,replaceWildcardCharacter:_}=j4e[a]){let f="",y=!1,g=Jk(t,n),k=Sn(g);if(a!=="exclude"&&k==="**")return;g[0]=dv(g[0]),Jhe(k)&&g.push("**","*");let T=0;for(let C of g){if(C==="**")f+=u;else if(a==="directories"&&(f+="(?:",T++),y&&(f+=Gl),a!=="exclude"){let O="";C.charCodeAt(0)===42?(O+="(?:[^./]"+c+")?",C=C.substr(1)):C.charCodeAt(0)===63&&(O+="[^./]",C=C.substr(1)),O+=C.replace(L4e,_),O!==C&&(f+=M4e),f+=O}else f+=C.replace(L4e,_);y=!0}for(;T>0;)f+=")?",T--;return f}function B4e(t,n){return t==="*"?n:t==="?"?"[^/]":"\\"+t}function dne(t,n,a,c,u){t=Qs(t),u=Qs(u);let _=Xi(u,t);return{includeFilePatterns:Cr(pne(a,_,"files"),f=>`^${f}$`),includeFilePattern:zU(a,_,"files"),includeDirectoryPattern:zU(a,_,"directories"),excludePattern:zU(n,_,"exclude"),basePaths:onr(t,a,c)}}function mE(t,n){return new RegExp(t,n?"":"i")}function Whe(t,n,a,c,u,_,f,y,g){t=Qs(t),_=Qs(_);let k=dne(t,a,c,u,_),T=k.includeFilePatterns&&k.includeFilePatterns.map(G=>mE(G,u)),C=k.includeDirectoryPattern&&mE(k.includeDirectoryPattern,u),O=k.excludePattern&&mE(k.excludePattern,u),F=T?T.map(()=>[]):[[]],M=new Map,U=_d(u);for(let G of k.basePaths)J(G,Xi(_,G),f);return Rc(F);function J(G,Z,Q){let re=U(g(Z));if(M.has(re))return;M.set(re,!0);let{files:ae,directories:_e}=y(G);for(let me of pu(ae,Su)){let le=Xi(G,me),Oe=Xi(Z,me);if(!(n&&!_p(le,n))&&!(O&&O.test(Oe)))if(!T)F[0].push(le);else{let be=hr(T,ue=>ue.test(Oe));be!==-1&&F[be].push(le)}}if(!(Q!==void 0&&(Q--,Q===0)))for(let me of pu(_e,Su)){let le=Xi(G,me),Oe=Xi(Z,me);(!C||C.test(Oe))&&(!O||!O.test(Oe))&&J(le,Oe,Q)}}}function onr(t,n,a){let c=[t];if(n){let u=[];for(let _ of n){let f=qd(_)?_:Qs(Xi(t,_));u.push(anr(f))}u.sort(ub(!a));for(let _ of u)ht(c,f=>!ug(f,_,t,!a))&&c.push(_)}return c}function anr(t){let n=xo(t,nnr);return n<0?eA(t)?dv(mo(t)):t:t.substring(0,t.lastIndexOf(Gl,n))}function fne(t,n){return n||mne(t)||3}function mne(t){switch(t.substr(t.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var hne=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],Ghe=Rc(hne),snr=[...hne,[".json"]],cnr=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],lnr=[[".js",".jsx"],[".mjs"],[".cjs"]],cL=Rc(lnr),Hhe=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],unr=[...Hhe,[".json"]],gne=[".d.ts",".d.cts",".d.mts"],vH=[".ts",".cts",".mts",".tsx"],yne=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function qU(t,n){let a=t&&fC(t);if(!n||n.length===0)return a?Hhe:hne;let c=a?Hhe:hne,u=Rc(c);return[...c,...Wn(n,f=>f.scriptKind===7||a&&pnr(f.scriptKind)&&!u.includes(f.extension)?[f.extension]:void 0)]}function SH(t,n){return!t||!_P(t)?n:n===Hhe?unr:n===hne?snr:[...n,[".json"]]}function pnr(t){return t===1||t===2}function jx(t){return Pt(cL,n=>Au(t,n))}function X4(t){return Pt(Ghe,n=>Au(t,n))}function $4e(t){return Pt(vH,n=>Au(t,n))&&!sf(t)}var U4e=(t=>(t[t.Minimal=0]="Minimal",t[t.Index=1]="Index",t[t.JsExtension=2]="JsExtension",t[t.TsExtension=3]="TsExtension",t))(U4e||{});function _nr({imports:t},n=jf(jx,X4)){return Je(t,({text:a})=>ch(a)&&!_p(a,yne)?n(a):void 0)||!1}function z4e(t,n,a,c){let u=km(a),_=3<=u&&u<=99;if(t==="js"||n===99&&_)return ML(a)&&f()!==2?3:2;if(t==="minimal")return 0;if(t==="index")return 1;if(!ML(a))return c&&_nr(c)?2:0;return f();function f(){let y=!1,g=c?.imports.length?c.imports:c&&ph(c)?dnr(c).map(k=>k.arguments[0]):j;for(let k of g)if(ch(k.text)){if(_&&n===1&&N0e(c,k,a)===99||_p(k.text,yne))continue;if(X4(k.text))return 3;jx(k.text)&&(y=!0)}return y?2:0}}function dnr(t){let n=0,a;for(let c of t.statements){if(n>3)break;LG(c)?a=go(a,c.declarationList.declarations.map(u=>u.initializer)):af(c)&&$h(c.expression,!0)?a=jt(a,c.expression):n++}return a||j}function Khe(t,n,a){if(!t)return!1;let c=qU(n,a);for(let u of Rc(SH(n,c)))if(Au(t,u))return!0;return!1}function vlt(t){let n=t.match(/\//g);return n?n.length:0}function bH(t,n){return Br(vlt(t),vlt(n))}var q4e=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function Qm(t){for(let n of q4e){let a=J4e(t,n);if(a!==void 0)return a}return t}function J4e(t,n){return Au(t,n)?xH(t,n):void 0}function xH(t,n){return t.substring(0,t.length-n.length)}function hE(t,n){return Og(t,n,q4e,!1)}function oF(t){let n=t.indexOf("*");return n===-1?t:t.indexOf("*",n+1)!==-1?void 0:{prefix:t.substr(0,n),suffix:t.substr(n+1)}}var Slt=new WeakMap;function TH(t){let n=Slt.get(t);if(n!==void 0)return n;let a,c,u=Lu(t);for(let _ of u){let f=oF(_);f!==void 0&&(typeof f=="string"?(a??(a=new Set)).add(f):(c??(c=[])).push(f))}return Slt.set(t,n={matchableStringSet:a,patterns:c}),n}function bv(t){return!(t>=0)}function vne(t){return t===".ts"||t===".tsx"||t===".d.ts"||t===".cts"||t===".mts"||t===".d.mts"||t===".d.cts"||Ca(t,".d.")&&au(t,".ts")}function JU(t){return vne(t)||t===".json"}function VU(t){let n=Bx(t);return n!==void 0?n:$.fail(`File ${t} has unknown extension.`)}function blt(t){return Bx(t)!==void 0}function Bx(t){return wt(q4e,n=>Au(t,n))}function WU(t,n){return t.checkJsDirective?t.checkJsDirective.enabled:n.checkJs}var Qhe={files:j,directories:j};function Zhe(t,n){let{matchableStringSet:a,patterns:c}=t;if(a?.has(n))return n;if(!(c===void 0||c.length===0))return GD(c,u=>u,n)}function Xhe(t,n){let a=t.indexOf(n);return $.assert(a!==-1),t.slice(a)}function ac(t,...n){return n.length&&(t.relatedInformation||(t.relatedInformation=[]),$.assert(t.relatedInformation!==j,"Diagnostic had empty array singleton for related info, but is still being constructed!"),t.relatedInformation.push(...n)),t}function V4e(t,n){$.assert(t.length!==0);let a=n(t[0]),c=a;for(let u=1;uc&&(c=_)}return{min:a,max:c}}function Yhe(t){return{pos:oC(t),end:t.end}}function ege(t,n){let a=n.pos-1,c=Math.min(t.text.length,_c(t.text,n.end)+1);return{pos:a,end:c}}function lL(t,n,a){return xlt(t,n,a,!1)}function W4e(t,n,a){return xlt(t,n,a,!0)}function xlt(t,n,a,c){return n.skipLibCheck&&t.isDeclarationFile||n.skipDefaultLibCheck&&t.hasNoDefaultLib||!c&&n.noCheck||a.isSourceOfProjectReferenceRedirect(t.fileName)||!GU(t,n)}function GU(t,n){if(t.checkJsDirective&&t.checkJsDirective.enabled===!1)return!1;if(t.scriptKind===3||t.scriptKind===4||t.scriptKind===5)return!0;let c=(t.scriptKind===1||t.scriptKind===2)&&WU(t,n);return lU(t,n.checkJs)||c||t.scriptKind===7}function Sne(t,n){return t===n||typeof t=="object"&&t!==null&&typeof n=="object"&&n!==null&&yl(t,n,Sne)}function HU(t){let n;switch(t.charCodeAt(1)){case 98:case 66:n=1;break;case 111:case 79:n=3;break;case 120:case 88:n=4;break;default:let k=t.length-1,T=0;for(;t.charCodeAt(T)===48;)T++;return t.slice(T,k)||"0"}let a=2,c=t.length-1,u=(c-a)*n,_=new Uint16Array((u>>>4)+(u&15?1:0));for(let k=c-1,T=0;k>=a;k--,T+=n){let C=T>>>4,O=t.charCodeAt(k),M=(O<=57?O-48:10+O-(O<=70?65:97))<<(T&15);_[C]|=M;let U=M>>>16;U&&(_[C+1]|=U)}let f="",y=_.length-1,g=!0;for(;g;){let k=0;g=!1;for(let T=y;T>=0;T--){let C=k<<16|_[T],O=C/10|0;_[T]=O,k=C-O*10,O&&!g&&(y=T,g=!0)}f=k+f}return f}function fP({negative:t,base10Value:n}){return(t&&n!=="0"?"-":"")+n}function G4e(t){if(bne(t,!1))return tge(t)}function tge(t){let n=t.startsWith("-"),a=HU(`${n?t.slice(1):t}n`);return{negative:n,base10Value:a}}function bne(t,n){if(t==="")return!1;let a=B1(99,!1),c=!0;a.setOnError(()=>c=!1),a.setText(t+"n");let u=a.scan(),_=u===41;_&&(u=a.scan());let f=a.getTokenFlags();return c&&u===10&&a.getTokenEnd()===t.length+1&&!(f&512)&&(!n||t===fP({negative:_,base10Value:HU(a.getTokenValue())}))}function yA(t){return!!(t.flags&33554432)||gU(t)||Tre(t)||hnr(t)||mnr(t)||!(Tb(t)||fnr(t))}function fnr(t){return ct(t)&&im(t.parent)&&t.parent.name===t}function mnr(t){for(;t.kind===80||t.kind===212;)t=t.parent;if(t.kind!==168)return!1;if(ko(t.parent,64))return!0;let n=t.parent.parent.kind;return n===265||n===188}function hnr(t){if(t.kind!==80)return!1;let n=fn(t.parent,a=>{switch(a.kind){case 299:return!0;case 212:case 234:return!1;default:return"quit"}});return n?.token===119||n?.parent.kind===265}function H4e(t){return Ug(t)&&ct(t.typeName)}function K4e(t,n=Ng){if(t.length<2)return!0;let a=t[0];for(let c=1,u=t.length;ct.includes(n))}function X4e(t){if(!t.parent)return;switch(t.kind){case 169:let{parent:a}=t;return a.kind===196?void 0:a.typeParameters;case 170:return t.parent.parameters;case 205:return t.parent.templateSpans;case 240:return t.parent.templateSpans;case 171:{let{parent:c}=t;return kP(c)?c.modifiers:void 0}case 299:return t.parent.heritageClauses}let{parent:n}=t;if(MR(t))return p3(t.parent)?void 0:t.parent.tags;switch(n.kind){case 188:case 265:return KI(t)?n.members:void 0;case 193:case 194:return n.types;case 190:case 210:case 357:case 276:case 280:return n.elements;case 211:case 293:return n.properties;case 214:case 215:return Wo(t)?n.typeArguments:n.expression===t?void 0:n.arguments;case 285:case 289:return hG(t)?n.children:void 0;case 287:case 286:return Wo(t)?n.typeArguments:void 0;case 242:case 297:case 298:case 269:return n.statements;case 270:return n.clauses;case 264:case 232:return J_(t)?n.members:void 0;case 267:return GT(t)?n.members:void 0;case 308:return n.statements}}function xne(t){if(!t.typeParameters){if(Pt(t.parameters,n=>!X_(n)))return!0;if(t.kind!==220){let n=pi(t.parameters);if(!(n&&uC(n)))return!0}}return!1}function ZU(t){return t==="Infinity"||t==="-Infinity"||t==="NaN"}function Y4e(t){return t.kind===261&&t.parent.kind===300}function mC(t){return t.kind===219||t.kind===220}function mP(t){return t.replace(/\$/g,()=>"\\$")}function $x(t){return(+t).toString()===t}function EH(t,n,a,c,u){let _=u&&t==="new";return!_&&Jd(t,n)?W.createIdentifier(t):!c&&!_&&$x(t)&&+t>=0?W.createNumericLiteral(+t):W.createStringLiteral(t,!!a)}function XU(t){return!!(t.flags&262144&&t.isThisType)}function Tne(t){let n=0,a=0,c=0,u=0,_;(k=>{k[k.BeforeNodeModules=0]="BeforeNodeModules",k[k.NodeModules=1]="NodeModules",k[k.Scope=2]="Scope",k[k.PackageContent=3]="PackageContent"})(_||(_={}));let f=0,y=0,g=0;for(;y>=0;)switch(f=y,y=t.indexOf("/",f+1),g){case 0:t.indexOf(Jx,f)===f&&(n=f,a=y,g=1);break;case 1:case 2:g===1&&t.charAt(f+1)==="@"?g=2:(c=y,g=3);break;case 3:t.indexOf(Jx,f)===f?g=1:g=3;break}return u=f,g>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:a,packageRootIndex:c,fileNameIndex:u}:void 0}function aF(t){switch(t.kind){case 169:case 264:case 265:case 266:case 267:case 347:case 339:case 341:return!0;case 274:return t.phaseModifier===156;case 277:return t.parent.parent.phaseModifier===156;case 282:return t.parent.parent.isTypeOnly;default:return!1}}function kH(t){return CA(t)||h_(t)||i_(t)||ed(t)||Af(t)||aF(t)||I_(t)&&!eP(t)&&!xb(t)}function CH(t){if(!rU(t))return!1;let{isBracketed:n,typeExpression:a}=t;return n||!!a&&a.type.kind===317}function ige(t,n){if(t.length===0)return!1;let a=t.charCodeAt(0);return a===35?t.length>1&&pg(t.charCodeAt(1),n):pg(a,n)}function e3e(t){var n;return((n=xge(t))==null?void 0:n.kind)===0}function Ene(t){return Ei(t)&&(t.type&&t.type.kind===317||P4(t).some(CH))}function sF(t){switch(t.kind){case 173:case 172:return!!t.questionToken;case 170:return!!t.questionToken||Ene(t);case 349:case 342:return CH(t);default:return!1}}function t3e(t){let n=t.kind;return(n===212||n===213)&&bF(t.expression)}function oge(t){return Ei(t)&&mh(t)&&hy(t)&&!!IO(t)}function age(t){return $.checkDefined(kne(t))}function kne(t){let n=IO(t);return n&&n.typeExpression&&n.typeExpression.type}function YU(t){return ct(t)?t.escapedText:cF(t)}function DH(t){return ct(t)?Zi(t):ez(t)}function r3e(t){let n=t.kind;return n===80||n===296}function cF(t){return`${t.namespace.escapedText}:${Zi(t.name)}`}function ez(t){return`${Zi(t.namespace)}:${Zi(t.name)}`}function sge(t){return ct(t)?Zi(t):ez(t)}function b0(t){return!!(t.flags&8576)}function x0(t){return t.flags&8192?t.escapedName:t.flags&384?dp(""+t.value):$.fail()}function lF(t){return!!t&&(no(t)||mu(t)||wi(t))}function n3e(t){return t===void 0?!1:!!$L(t.attributes)}var ynr=String.prototype.replace;function Y4(t,n){return ynr.call(t,"*",n)}function Cne(t){return ct(t.name)?t.name.escapedText:dp(t.name.text)}function i3e(t){switch(t.kind){case 169:case 170:case 173:case 172:case 186:case 185:case 180:case 181:case 182:case 175:case 174:case 176:case 177:case 178:case 179:case 184:case 183:case 187:case 188:case 189:case 190:case 193:case 194:case 197:case 191:case 192:case 198:case 199:case 195:case 196:case 204:case 206:case 203:case 329:case 330:case 347:case 339:case 341:case 346:case 345:case 325:case 326:case 327:case 342:case 349:case 318:case 316:case 315:case 313:case 314:case 323:case 319:case 310:case 334:case 336:case 335:case 351:case 344:case 200:case 201:case 263:case 242:case 269:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 261:case 209:case 264:case 265:case 266:case 267:case 268:case 273:case 272:case 279:case 278:case 243:case 260:case 283:return!0}return!1}function wd(t,n=!1,a=!1,c=!1){return{value:t,isSyntacticallyString:n,resolvedOtherFiles:a,hasExternalReferences:c}}function o3e({evaluateElementAccessExpression:t,evaluateEntityNameExpression:n}){function a(u,_){let f=!1,y=!1,g=!1;switch(u=bl(u),u.kind){case 225:let k=a(u.operand,_);if(y=k.resolvedOtherFiles,g=k.hasExternalReferences,typeof k.value=="number")switch(u.operator){case 40:return wd(k.value,f,y,g);case 41:return wd(-k.value,f,y,g);case 55:return wd(~k.value,f,y,g)}break;case 227:{let T=a(u.left,_),C=a(u.right,_);if(f=(T.isSyntacticallyString||C.isSyntacticallyString)&&u.operatorToken.kind===40,y=T.resolvedOtherFiles||C.resolvedOtherFiles,g=T.hasExternalReferences||C.hasExternalReferences,typeof T.value=="number"&&typeof C.value=="number")switch(u.operatorToken.kind){case 52:return wd(T.value|C.value,f,y,g);case 51:return wd(T.value&C.value,f,y,g);case 49:return wd(T.value>>C.value,f,y,g);case 50:return wd(T.value>>>C.value,f,y,g);case 48:return wd(T.value<=2)break;case 175:case 177:case 178:case 179:case 263:if(_e&3&&ve==="arguments"){Ae=a;break e}break;case 219:if(_e&3&&ve==="arguments"){Ae=a;break e}if(_e&16){let nt=re.name;if(nt&&ve===nt.escapedText){Ae=re.symbol;break e}}break;case 171:re.parent&&re.parent.kind===170&&(re=re.parent),re.parent&&(J_(re.parent)||re.parent.kind===264)&&(re=re.parent);break;case 347:case 339:case 341:case 352:let Ve=QR(re);Ve&&(re=Ve.parent);break;case 170:Fe&&(Fe===re.initializer||Fe===re.name&&$s(Fe))&&(ze||(ze=re));break;case 209:Fe&&(Fe===re.initializer||Fe===re.name&&$s(Fe))&&hA(re)&&!ze&&(ze=re);break;case 196:if(_e&262144){let nt=re.typeParameter.name;if(nt&&ve===nt.escapedText){Ae=re.typeParameter.symbol;break e}}break;case 282:Fe&&Fe===re.propertyName&&re.parent.parent.moduleSpecifier&&(re=re.parent.parent.parent);break}Z(re,Fe)&&(Be=re),Fe=re,re=c1(re)?Ire(re)||re.parent:(Uy(re)||Qne(re))&&dA(re)||re.parent}if(le&&Ae&&(!Be||Ae!==Be.symbol)&&(Ae.isReferenced|=_e),!Ae){if(Fe&&($.assertNode(Fe,Ta),Fe.commonJsModuleIndicator&&ve==="exports"&&_e&Fe.symbol.flags))return Fe.symbol;Oe||(Ae=f(_,ve,_e))}if(!Ae&&Ce&&Ei(Ce)&&Ce.parent&&$h(Ce.parent,!1))return n;if(me){if(de&&k(Ce,ve,de,Ae))return;Ae?C(Ce,Ae,_e,Fe,ze,ut):T(Ce,ae,_e,me)}return Ae}function J(re,ae,_e){let me=$c(t),le=ae;if(wa(_e)&&le.body&&re.valueDeclaration&&re.valueDeclaration.pos>=le.body.pos&&re.valueDeclaration.end<=le.body.end&&me>=2){let ue=g(le);return ue===void 0&&(ue=X(le.parameters,Oe)||!1,y(le,ue)),!ue}return!1;function Oe(ue){return be(ue.name)||!!ue.initializer&&be(ue.initializer)}function be(ue){switch(ue.kind){case 220:case 219:case 263:case 177:return!1;case 175:case 178:case 179:case 304:return be(ue.name);case 173:return fd(ue)?!F:be(ue.name);default:return eme(ue)||xm(ue)?me<7:Vc(ue)&&ue.dotDotDotToken&&$y(ue.parent)?me<4:Wo(ue)?!1:Is(ue,be)||!1}}}function G(re,ae){return re.kind!==220&&re.kind!==219?gP(re)||(lu(re)||re.kind===173&&!oc(re))&&(!ae||ae!==re.name):ae&&ae===re.name?!1:re.asteriskToken||ko(re,1024)?!0:!uA(re)}function Z(re,ae){switch(re.kind){case 170:return!!ae&&ae===re.name;case 263:case 264:case 265:case 267:case 266:case 268:return!0;default:return!1}}function Q(re,ae){if(re.declarations){for(let _e of re.declarations)if(_e.kind===169&&(c1(_e.parent)?iP(_e.parent):_e.parent)===ae)return!(c1(_e.parent)&&wt(_e.parent.parent.tags,n1))}return!1}}function Dne(t,n=!0){switch($.type(t),t.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return n;case 225:return t.operator===41?qh(t.operand)||n&&dL(t.operand):t.operator===40?qh(t.operand):!1;default:return!1}}function a3e(t){for(;t.kind===218;)t=t.expression;return t}function Ane(t){switch($.type(t),t.kind){case 170:case 172:case 173:case 209:case 212:case 213:case 227:case 261:case 278:case 304:case 305:case 342:case 349:return!0;default:return!1}}function uge(t){let n=fn(t,fp);return!!n&&!n.importClause}var s3e=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],c3e=new Set(s3e),wne=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),pL=new Set([...s3e,...s3e.map(t=>`node:${t}`),...wne]);function Ine(t,n,a,c){let u=Ei(t),_=/import|require/g;for(;_.exec(t.text)!==null;){let f=vnr(t,_.lastIndex,n);if(u&&$h(f,a))c(f,f.arguments[0]);else if(Bh(f)&&f.arguments.length>=1&&(!a||Sl(f.arguments[0])))c(f,f.arguments[0]);else if(n&&jT(f))c(f,f.argument.literal);else if(n&&OS(f)){let y=JO(f);y&&Ic(y)&&y.text&&c(f,y)}}}function vnr(t,n,a){let c=Ei(t),u=t,_=f=>{if(f.pos<=n&&(na&&n(a))}function tz(t,n,a,c){let u;return _(t,n,void 0);function _(f,y,g){if(c){let T=c(f,g);if(T)return T}let k;return X(y,(T,C)=>{if(T&&u?.has(T.sourceFile.path)){(k??(k=new Set)).add(T);return}let O=a(T,g,C);if(O||!T)return O;(u||(u=new Set)).add(T.sourceFile.path)})||X(y,T=>T&&!k?.has(T)?_(T.commandLine.projectReferences,T.references,T):void 0)}}function fge(t,n,a){return t&&Snr(t,n,a)}function Snr(t,n,a){return JR(t,n,c=>qf(c.initializer)?wt(c.initializer.elements,u=>Ic(u)&&u.text===a):void 0)}function u3e(t,n,a){return mge(t,n,c=>Ic(c.initializer)&&c.initializer.text===a?c.initializer:void 0)}function mge(t,n,a){return JR(t,n,a)}function Il(t,n=!0){let a=t&&Tlt(t);return a&&!n&&$g(a),vA(a,!1)}function wH(t,n,a){let c=a(t);return c?Yi(c,t):c=Tlt(t,a),c&&!n&&$g(c),c}function Tlt(t,n){let a=n?_=>wH(_,!0,n):Il,u=Dn(t,a,void 0,n?_=>_&&hge(_,!0,n):_=>_&&hP(_),a);if(u===t){let _=Ic(t)?Yi(W.createStringLiteralFromNode(t),t):qh(t)?Yi(W.createNumericLiteral(t.text,t.numericLiteralFlags),t):W.cloneNode(t);return qt(_,t)}return u.parent=void 0,u}function hP(t,n=!0){if(t){let a=W.createNodeArray(t.map(c=>Il(c,n)),t.hasTrailingComma);return qt(a,t),a}return t}function hge(t,n,a){return W.createNodeArray(t.map(c=>wH(c,n,a)),t.hasTrailingComma)}function $g(t){gge(t),p3e(t)}function gge(t){_3e(t,1024,bnr)}function p3e(t){_3e(t,2048,Ohe)}function _3e(t,n,a){CS(t,n);let c=a(t);c&&_3e(c,n,a)}function bnr(t){return Is(t,n=>n)}function d3e(){let t,n,a,c,u;return{createBaseSourceFileNode:_,createBaseIdentifierNode:f,createBasePrivateIdentifierNode:y,createBaseTokenNode:g,createBaseNode:k};function _(T){return new(u||(u=Uf.getSourceFileConstructor()))(T,-1,-1)}function f(T){return new(a||(a=Uf.getIdentifierConstructor()))(T,-1,-1)}function y(T){return new(c||(c=Uf.getPrivateIdentifierConstructor()))(T,-1,-1)}function g(T){return new(n||(n=Uf.getTokenConstructor()))(T,-1,-1)}function k(T){return new(t||(t=Uf.getNodeConstructor()))(T,-1,-1)}}function f3e(t){let n,a;return{getParenthesizeLeftSideOfBinaryForOperator:c,getParenthesizeRightSideOfBinaryForOperator:u,parenthesizeLeftSideOfBinary:T,parenthesizeRightSideOfBinary:C,parenthesizeExpressionOfComputedPropertyName:O,parenthesizeConditionOfConditionalExpression:F,parenthesizeBranchOfConditionalExpression:M,parenthesizeExpressionOfExportDefault:U,parenthesizeExpressionOfNew:J,parenthesizeLeftSideOfAccess:G,parenthesizeOperandOfPostfixUnary:Z,parenthesizeOperandOfPrefixUnary:Q,parenthesizeExpressionsOfCommaDelimitedList:re,parenthesizeExpressionForDisallowedComma:ae,parenthesizeExpressionOfExpressionStatement:_e,parenthesizeConciseBodyOfArrowFunction:me,parenthesizeCheckTypeOfConditionalType:le,parenthesizeExtendsTypeOfConditionalType:Oe,parenthesizeConstituentTypesOfUnionType:ue,parenthesizeConstituentTypeOfUnionType:be,parenthesizeConstituentTypesOfIntersectionType:Ce,parenthesizeConstituentTypeOfIntersectionType:De,parenthesizeOperandOfTypeOperator:Ae,parenthesizeOperandOfReadonlyTypeOperator:Fe,parenthesizeNonArrayTypeOfPostfixType:Be,parenthesizeElementTypesOfTupleType:de,parenthesizeElementTypeOfTupleType:ze,parenthesizeTypeOfOptionalType:je,parenthesizeTypeArguments:Ve,parenthesizeLeadingTypeArgument:ve};function c(nt){n||(n=new Map);let It=n.get(nt);return It||(It=ke=>T(nt,ke),n.set(nt,It)),It}function u(nt){a||(a=new Map);let It=a.get(nt);return It||(It=ke=>C(nt,void 0,ke),a.set(nt,It)),It}function _(nt,It){return nt===61?It===56||It===57:It===61?nt===56||nt===57:!1}function f(nt,It,ke,_t){let Se=q1(It);if(wi(Se)&&_(nt,Se.operatorToken.kind))return!0;let tt=YG(227,nt),Qe=ahe(227,nt);if(!ke&&It.kind===220&&tt>3)return!0;let We=wU(Se);switch(Br(We,tt)){case-1:return!(!ke&&Qe===1&&It.kind===230);case 1:return!1;case 0:if(ke)return Qe===1;if(wi(Se)&&Se.operatorToken.kind===nt){if(y(nt))return!1;if(nt===40){let Kt=_t?g(_t):0;if(nU(Kt)&&Kt===g(Se))return!1}}return ohe(Se)===0}}function y(nt){return nt===42||nt===52||nt===51||nt===53||nt===28}function g(nt){if(nt=q1(nt),nU(nt.kind))return nt.kind;if(nt.kind===227&&nt.operatorToken.kind===40){if(nt.cachedLiteralKind!==void 0)return nt.cachedLiteralKind;let It=g(nt.left),ke=nU(It)&&It===g(nt.right)?It:0;return nt.cachedLiteralKind=ke,ke}return 0}function k(nt,It,ke,_t){return q1(It).kind===218?It:f(nt,It,ke,_t)?t.createParenthesizedExpression(It):It}function T(nt,It){return k(nt,It,!0)}function C(nt,It,ke){return k(nt,ke,!1,It)}function O(nt){return gz(nt)?t.createParenthesizedExpression(nt):nt}function F(nt){let It=YG(228,58),ke=q1(nt),_t=wU(ke);return Br(_t,It)!==1?t.createParenthesizedExpression(nt):nt}function M(nt){let It=q1(nt);return gz(It)?t.createParenthesizedExpression(nt):nt}function U(nt){let It=q1(nt),ke=gz(It);if(!ke)switch(aL(It,!1).kind){case 232:case 219:ke=!0}return ke?t.createParenthesizedExpression(nt):nt}function J(nt){let It=aL(nt,!0);switch(It.kind){case 214:return t.createParenthesizedExpression(nt);case 215:return It.arguments?nt:t.createParenthesizedExpression(nt)}return G(nt)}function G(nt,It){let ke=q1(nt);return jh(ke)&&(ke.kind!==215||ke.arguments)&&(It||!xm(ke))?nt:qt(t.createParenthesizedExpression(nt),nt)}function Z(nt){return jh(nt)?nt:qt(t.createParenthesizedExpression(nt),nt)}function Q(nt){return ume(nt)?nt:qt(t.createParenthesizedExpression(nt),nt)}function re(nt){let It=Zo(nt,ae);return qt(t.createNodeArray(It,nt.hasTrailingComma),nt)}function ae(nt){let It=q1(nt),ke=wU(It),_t=YG(227,28);return ke>_t?nt:qt(t.createParenthesizedExpression(nt),nt)}function _e(nt){let It=q1(nt);if(Js(It)){let _t=It.expression,Se=q1(_t).kind;if(Se===219||Se===220){let tt=t.updateCallExpression(It,qt(t.createParenthesizedExpression(_t),_t),It.typeArguments,It.arguments);return t.restoreOuterExpressions(nt,tt,8)}}let ke=aL(It,!1).kind;return ke===211||ke===219?qt(t.createParenthesizedExpression(nt),nt):nt}function me(nt){return!Vs(nt)&&(gz(nt)||aL(nt,!1).kind===211)?qt(t.createParenthesizedExpression(nt),nt):nt}function le(nt){switch(nt.kind){case 185:case 186:case 195:return t.createParenthesizedType(nt)}return nt}function Oe(nt){return nt.kind===195?t.createParenthesizedType(nt):nt}function be(nt){switch(nt.kind){case 193:case 194:return t.createParenthesizedType(nt)}return le(nt)}function ue(nt){return t.createNodeArray(Zo(nt,be))}function De(nt){switch(nt.kind){case 193:case 194:return t.createParenthesizedType(nt)}return be(nt)}function Ce(nt){return t.createNodeArray(Zo(nt,De))}function Ae(nt){return nt.kind===194?t.createParenthesizedType(nt):De(nt)}function Fe(nt){return nt.kind===199?t.createParenthesizedType(nt):Ae(nt)}function Be(nt){switch(nt.kind){case 196:case 199:case 187:return t.createParenthesizedType(nt)}return Ae(nt)}function de(nt){return t.createNodeArray(Zo(nt,ze))}function ze(nt){return ut(nt)?t.createParenthesizedType(nt):nt}function ut(nt){return xL(nt)?nt.postfix:mL(nt)||Cb(nt)||fL(nt)||bA(nt)?ut(nt.type):yP(nt)?ut(nt.falseType):SE(nt)||vF(nt)?ut(Sn(nt.types)):n3(nt)?!!nt.typeParameter.constraint&&ut(nt.typeParameter.constraint):!1}function je(nt){return ut(nt)?t.createParenthesizedType(nt):Be(nt)}function ve(nt){return APe(nt)&&nt.typeParameters?t.createParenthesizedType(nt):nt}function Le(nt,It){return It===0?ve(nt):nt}function Ve(nt){if(Pt(nt))return t.createNodeArray(Zo(nt,Le))}}var m3e={getParenthesizeLeftSideOfBinaryForOperator:t=>vl,getParenthesizeRightSideOfBinaryForOperator:t=>vl,parenthesizeLeftSideOfBinary:(t,n)=>n,parenthesizeRightSideOfBinary:(t,n,a)=>a,parenthesizeExpressionOfComputedPropertyName:vl,parenthesizeConditionOfConditionalExpression:vl,parenthesizeBranchOfConditionalExpression:vl,parenthesizeExpressionOfExportDefault:vl,parenthesizeExpressionOfNew:t=>Ba(t,jh),parenthesizeLeftSideOfAccess:t=>Ba(t,jh),parenthesizeOperandOfPostfixUnary:t=>Ba(t,jh),parenthesizeOperandOfPrefixUnary:t=>Ba(t,ume),parenthesizeExpressionsOfCommaDelimitedList:t=>Ba(t,HI),parenthesizeExpressionForDisallowedComma:vl,parenthesizeExpressionOfExpressionStatement:vl,parenthesizeConciseBodyOfArrowFunction:vl,parenthesizeCheckTypeOfConditionalType:vl,parenthesizeExtendsTypeOfConditionalType:vl,parenthesizeConstituentTypesOfUnionType:t=>Ba(t,HI),parenthesizeConstituentTypeOfUnionType:vl,parenthesizeConstituentTypesOfIntersectionType:t=>Ba(t,HI),parenthesizeConstituentTypeOfIntersectionType:vl,parenthesizeOperandOfTypeOperator:vl,parenthesizeOperandOfReadonlyTypeOperator:vl,parenthesizeNonArrayTypeOfPostfixType:vl,parenthesizeElementTypesOfTupleType:t=>Ba(t,HI),parenthesizeElementTypeOfTupleType:vl,parenthesizeTypeOfOptionalType:vl,parenthesizeTypeArguments:t=>t&&Ba(t,HI),parenthesizeLeadingTypeArgument:vl};function h3e(t){return{convertToFunctionBlock:n,convertToFunctionExpression:a,convertToClassExpression:c,convertToArrayAssignmentElement:u,convertToObjectAssignmentElement:_,convertToAssignmentPattern:f,convertToObjectAssignmentPattern:y,convertToArrayAssignmentPattern:g,convertToAssignmentElementTarget:k};function n(T,C){if(Vs(T))return T;let O=t.createReturnStatement(T);qt(O,T);let F=t.createBlock([O],C);return qt(F,T),F}function a(T){var C;if(!T.body)return $.fail("Cannot convert a FunctionDeclaration without a body");let O=t.createFunctionExpression((C=Qk(T))==null?void 0:C.filter(F=>!fF(F)&&!$ne(F)),T.asteriskToken,T.name,T.typeParameters,T.parameters,T.type,T.body);return Yi(O,T),qt(O,T),rz(T)&&One(O,!0),O}function c(T){var C;let O=t.createClassExpression((C=T.modifiers)==null?void 0:C.filter(F=>!fF(F)&&!$ne(F)),T.name,T.typeParameters,T.heritageClauses,T.members);return Yi(O,T),qt(O,T),rz(T)&&One(O,!0),O}function u(T){if(Vc(T)){if(T.dotDotDotToken)return $.assertNode(T.name,ct),Yi(qt(t.createSpreadElement(T.name),T),T);let C=k(T.name);return T.initializer?Yi(qt(t.createAssignment(C,T.initializer),T),T):C}return Ba(T,Vt)}function _(T){if(Vc(T)){if(T.dotDotDotToken)return $.assertNode(T.name,ct),Yi(qt(t.createSpreadAssignment(T.name),T),T);if(T.propertyName){let C=k(T.name);return Yi(qt(t.createPropertyAssignment(T.propertyName,T.initializer?t.createAssignment(C,T.initializer):C),T),T)}return $.assertNode(T.name,ct),Yi(qt(t.createShorthandPropertyAssignment(T.name,T.initializer),T),T)}return Ba(T,MT)}function f(T){switch(T.kind){case 208:case 210:return g(T);case 207:case 211:return y(T)}}function y(T){return $y(T)?Yi(qt(t.createObjectLiteralExpression(Cr(T.elements,_)),T),T):Ba(T,Lc)}function g(T){return xE(T)?Yi(qt(t.createArrayLiteralExpression(Cr(T.elements,u)),T),T):Ba(T,qf)}function k(T){return $s(T)?f(T):Ba(T,Vt)}}var g3e={convertToFunctionBlock:Ts,convertToFunctionExpression:Ts,convertToClassExpression:Ts,convertToArrayAssignmentElement:Ts,convertToObjectAssignmentElement:Ts,convertToAssignmentPattern:Ts,convertToObjectAssignmentPattern:Ts,convertToArrayAssignmentPattern:Ts,convertToAssignmentElementTarget:Ts},yge=0,y3e=(t=>(t[t.None=0]="None",t[t.NoParenthesizerRules=1]="NoParenthesizerRules",t[t.NoNodeConverters=2]="NoNodeConverters",t[t.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",t[t.NoOriginalNode=8]="NoOriginalNode",t))(y3e||{}),Elt=[];function klt(t){Elt.push(t)}function IH(t,n){let a=t&8?vl:Yi,c=Ef(()=>t&1?m3e:f3e(G)),u=Ef(()=>t&2?g3e:h3e(G)),_=pd(P=>(q,oe)=>Yn(q,P,oe)),f=pd(P=>q=>Ft(P,q)),y=pd(P=>q=>Mr(q,P)),g=pd(P=>()=>gs(P)),k=pd(P=>q=>$3(P,q)),T=pd(P=>(q,oe)=>Ii(P,q,oe)),C=pd(P=>(q,oe)=>gg(P,q,oe)),O=pd(P=>(q,oe)=>jC(P,q,oe)),F=pd(P=>(q,oe)=>lw(P,q,oe)),M=pd(P=>(q,oe,we)=>_2(P,q,oe,we)),U=pd(P=>(q,oe,we)=>EM(P,q,oe,we)),J=pd(P=>(q,oe,we,Tt)=>uw(P,q,oe,we,Tt)),G={get parenthesizer(){return c()},get converters(){return u()},baseFactory:n,flags:t,createNodeArray:Z,createNumericLiteral:_e,createBigIntLiteral:me,createStringLiteral:Oe,createStringLiteralFromNode:be,createRegularExpressionLiteral:ue,createLiteralLikeNode:De,createIdentifier:Fe,createTempVariable:Be,createLoopVariable:de,createUniqueName:ze,getGeneratedNameForNode:ut,createPrivateIdentifier:ve,createUniquePrivateName:Ve,getGeneratedPrivateNameForNode:nt,createToken:ke,createSuper:_t,createThis:Se,createNull:tt,createTrue:Qe,createFalse:We,createModifier:St,createModifiersFromModifierFlags:Kt,createQualifiedName:Sr,updateQualifiedName:nn,createComputedPropertyName:Nn,updateComputedPropertyName:$t,createTypeParameterDeclaration:Dr,updateTypeParameterDeclaration:Qn,createParameterDeclaration:Ko,updateParameterDeclaration:is,createDecorator:sr,updateDecorator:uo,createPropertySignature:Wa,updatePropertySignature:oo,createPropertyDeclaration:$o,updatePropertyDeclaration:ft,createMethodSignature:Ht,updateMethodSignature:Wr,createMethodDeclaration:ai,updateMethodDeclaration:vo,createConstructorDeclaration:Cn,updateConstructorDeclaration:Es,createGetAccessorDeclaration:ur,updateGetAccessorDeclaration:Ee,createSetAccessorDeclaration:ye,updateSetAccessorDeclaration:et,createCallSignature:Ot,updateCallSignature:ar,createConstructSignature:at,updateConstructSignature:Zt,createIndexSignature:Qt,updateIndexSignature:pr,createClassStaticBlockDeclaration:ya,updateClassStaticBlockDeclaration:Ls,createTemplateLiteralTypeSpan:Et,updateTemplateLiteralTypeSpan:xr,createKeywordTypeNode:gi,createTypePredicateNode:Ye,updateTypePredicateNode:er,createTypeReferenceNode:Ne,updateTypeReferenceNode:Y,createFunctionTypeNode:ot,updateFunctionTypeNode:pe,createConstructorTypeNode:mr,updateConstructorTypeNode:Ir,createTypeQueryNode:zn,updateTypeQueryNode:Rt,createTypeLiteralNode:rr,updateTypeLiteralNode:_r,createArrayTypeNode:wr,updateArrayTypeNode:pn,createTupleTypeNode:tn,updateTupleTypeNode:lr,createNamedTupleMember:cn,updateNamedTupleMember:gn,createOptionalTypeNode:bn,updateOptionalTypeNode:$r,createRestTypeNode:Uo,updateRestTypeNode:Ys,createUnionTypeNode:Mp,updateUnionTypeNode:Cp,createIntersectionTypeNode:uu,updateIntersectionTypeNode:$a,createConditionalTypeNode:bs,updateConditionalTypeNode:V_,createInferTypeNode:Nu,updateInferTypeNode:kc,createImportTypeNode:_s,updateImportTypeNode:sc,createParenthesizedType:sl,updateParenthesizedType:Yc,createThisTypeNode:Ar,createTypeOperatorNode:Ql,updateTypeOperatorNode:Gp,createIndexedAccessTypeNode:N_,updateIndexedAccessTypeNode:lf,createMappedTypeNode:Yu,updateMappedTypeNode:Hp,createLiteralTypeNode:H,updateLiteralTypeNode:st,createTemplateLiteralType:o_,updateTemplateLiteralType:Gy,createObjectBindingPattern:zt,updateObjectBindingPattern:Er,createArrayBindingPattern:jn,updateArrayBindingPattern:So,createBindingElement:Di,updateBindingElement:On,createArrayLiteralExpression:ua,updateArrayLiteralExpression:va,createObjectLiteralExpression:Bl,updateObjectLiteralExpression:xc,createPropertyAccessExpression:t&4?(P,q)=>Ai(W_(P,q),262144):W_,updatePropertyAccessExpression:g_,createPropertyAccessChain:t&4?(P,q,oe)=>Ai(xu(P,q,oe),262144):xu,updatePropertyAccessChain:a_,createElementAccessExpression:Wf,updateElementAccessExpression:yy,createElementAccessChain:Wh,updateElementAccessChain:rt,createCallExpression:Vn,updateCallExpression:Ga,createCallChain:el,updateCallChain:tl,createNewExpression:Uc,updateNewExpression:nd,createTaggedTemplateExpression:Mu,updateTaggedTemplateExpression:Dp,createTypeAssertion:Kp,updateTypeAssertion:vy,createParenthesizedExpression:If,updateParenthesizedExpression:uf,createFunctionExpression:Hg,updateFunctionExpression:Ym,createArrowFunction:D0,updateArrowFunction:Pb,createDeleteExpression:Wx,updateDeleteExpression:Gx,createTypeOfExpression:Gh,updateTypeOfExpression:Nd,createVoidExpression:Iv,updateVoidExpression:Hy,createAwaitExpression:US,updateAwaitExpression:xe,createPrefixUnaryExpression:Ft,updatePrefixUnaryExpression:Nr,createPostfixUnaryExpression:Mr,updatePostfixUnaryExpression:wn,createBinaryExpression:Yn,updateBinaryExpression:Mo,createConditionalExpression:Ea,updateConditionalExpression:ee,createTemplateExpression:it,updateTemplateExpression:cr,createTemplateHead:cp,createTemplateMiddle:Cc,createTemplateTail:pf,createNoSubstitutionTemplateLiteral:Kg,createTemplateLiteralLikeNode:ks,createYieldExpression:Ky,updateYieldExpression:A0,createSpreadElement:r2,updateSpreadElement:PE,createClassExpression:vh,updateClassExpression:Nb,createOmittedExpression:Pv,createExpressionWithTypeArguments:d1,updateExpressionWithTypeArguments:OC,createAsExpression:dt,updateAsExpression:Lt,createNonNullExpression:Tr,updateNonNullExpression:dn,createSatisfiesExpression:qn,updateSatisfiesExpression:Fi,createNonNullChain:$n,updateNonNullChain:oi,createMetaProperty:sa,updateMetaProperty:os,createTemplateSpan:Po,updateTemplateSpan:as,createSemicolonClassElement:ka,createBlock:lp,updateBlock:Hh,createVariableStatement:f1,updateVariableStatement:Pf,createEmptyStatement:m1,createExpressionStatement:Qg,updateExpressionStatement:GA,createIfStatement:zS,updateIfStatement:Ob,createDoStatement:HA,updateDoStatement:Fb,createWhileStatement:hM,updateWhileStatement:xq,createForStatement:gM,updateForStatement:Hx,createForInStatement:KA,updateForInStatement:P3,createForOfStatement:NE,updateForOfStatement:N3,createContinueStatement:e7,updateContinueStatement:Tq,createBreakStatement:O3,updateBreakStatement:t7,createReturnStatement:QA,updateReturnStatement:yM,createWithStatement:F3,updateWithStatement:r7,createSwitchStatement:UP,updateSwitchStatement:FC,createLabeledStatement:n7,updateLabeledStatement:i7,createThrowStatement:zP,updateThrowStatement:RC,createTryStatement:OE,updateTryStatement:n2,createDebuggerStatement:i2,createVariableDeclaration:o2,updateVariableDeclaration:LC,createVariableDeclarationList:ZA,updateVariableDeclarationList:R3,createFunctionDeclaration:XA,updateFunctionDeclaration:il,createClassDeclaration:vM,updateClassDeclaration:a2,createInterfaceDeclaration:s2,updateInterfaceDeclaration:Rb,createTypeAliasDeclaration:tp,updateTypeAliasDeclaration:am,createEnumDeclaration:Kh,updateEnumDeclaration:sm,createModuleDeclaration:YA,updateModuleDeclaration:eh,createModuleBlock:Lb,updateModuleBlock:Sh,createCaseBlock:h1,updateCaseBlock:X1,createNamespaceExportDeclaration:ew,updateNamespaceExportDeclaration:tw,createImportEqualsDeclaration:SM,updateImportEqualsDeclaration:FE,createImportDeclaration:qP,updateImportDeclaration:gt,createImportClause:M3,updateImportClause:Kx,createAssertClause:Y1,updateAssertClause:RE,createAssertEntry:MC,updateAssertEntry:th,createImportTypeAssertionContainer:Nv,updateImportTypeAssertionContainer:g1,createImportAttributes:rw,updateImportAttributes:zc,createImportAttribute:Qy,updateImportAttribute:LE,createNamespaceImport:j3,updateNamespaceImport:c2,createNamespaceExport:JP,updateNamespaceExport:w0,createNamedImports:Qx,updateNamedImports:nw,createImportSpecifier:ME,updateImportSpecifier:qS,createExportAssignment:VP,updateExportAssignment:iw,createExportDeclaration:io,updateExportDeclaration:Ki,createNamedExports:B3,updateNamedExports:l2,createExportSpecifier:WP,updateExportSpecifier:bM,createMissingDeclaration:kq,createExternalModuleReference:qi,updateExternalModuleReference:rh,get createJSDocAllType(){return g(313)},get createJSDocUnknownType(){return g(314)},get createJSDocNonNullableType(){return C(316)},get updateJSDocNonNullableType(){return O(316)},get createJSDocNullableType(){return C(315)},get updateJSDocNullableType(){return O(315)},get createJSDocOptionalType(){return k(317)},get updateJSDocOptionalType(){return T(317)},get createJSDocVariadicType(){return k(319)},get updateJSDocVariadicType(){return T(319)},get createJSDocNamepathType(){return k(320)},get updateJSDocNamepathType(){return T(320)},createJSDocFunctionType:xM,updateJSDocFunctionType:o7,createJSDocTypeLiteral:Pm,updateJSDocTypeLiteral:Mb,createJSDocTypeExpression:Ov,updateJSDocTypeExpression:BC,createJSDocSignature:U3,updateJSDocSignature:$C,createJSDocTemplateTag:Qh,updateJSDocTemplateTag:jE,createJSDocTypedefTag:ow,updateJSDocTypedefTag:a7,createJSDocParameterTag:aw,updateJSDocParameterTag:UC,createJSDocPropertyTag:s7,updateJSDocPropertyTag:u2,createJSDocCallbackTag:JS,updateJSDocCallbackTag:zC,createJSDocOverloadTag:sw,updateJSDocOverloadTag:BE,createJSDocAugmentsTag:qC,updateJSDocAugmentsTag:tv,createJSDocImplementsTag:p2,updateJSDocImplementsTag:u7,createJSDocSeeTag:Zx,updateJSDocSeeTag:JC,createJSDocImportTag:Zh,updateJSDocImportTag:P0,createJSDocNameReference:_f,updateJSDocNameReference:GP,createJSDocMemberName:Xx,updateJSDocMemberName:cw,createJSDocLink:z3,updateJSDocLink:Yx,createJSDocLinkCode:TM,updateJSDocLinkCode:c7,createJSDocLinkPlain:l7,updateJSDocLinkPlain:Cq,get createJSDocTypeTag(){return U(345)},get updateJSDocTypeTag(){return J(345)},get createJSDocReturnTag(){return U(343)},get updateJSDocReturnTag(){return J(343)},get createJSDocThisTag(){return U(344)},get updateJSDocThisTag(){return J(344)},get createJSDocAuthorTag(){return F(331)},get updateJSDocAuthorTag(){return M(331)},get createJSDocClassTag(){return F(333)},get updateJSDocClassTag(){return M(333)},get createJSDocPublicTag(){return F(334)},get updateJSDocPublicTag(){return M(334)},get createJSDocPrivateTag(){return F(335)},get updateJSDocPrivateTag(){return M(335)},get createJSDocProtectedTag(){return F(336)},get updateJSDocProtectedTag(){return M(336)},get createJSDocReadonlyTag(){return F(337)},get updateJSDocReadonlyTag(){return M(337)},get createJSDocOverrideTag(){return F(338)},get updateJSDocOverrideTag(){return M(338)},get createJSDocDeprecatedTag(){return F(332)},get updateJSDocDeprecatedTag(){return M(332)},get createJSDocThrowsTag(){return U(350)},get updateJSDocThrowsTag(){return J(350)},get createJSDocSatisfiesTag(){return U(351)},get updateJSDocSatisfiesTag(){return J(351)},createJSDocEnumTag:df,updateJSDocEnumTag:p7,createJSDocUnknownTag:q3,updateJSDocUnknownTag:O_,createJSDocText:HP,updateJSDocText:Fv,createJSDocComment:VC,updateJSDocComment:$E,createJsxElement:_7,updateJsxElement:Dq,createJsxSelfClosingElement:jp,updateJsxSelfClosingElement:kM,createJsxOpeningElement:J3,updateJsxOpeningElement:KP,createJsxClosingElement:d7,updateJsxClosingElement:Nm,createJsxFragment:yg,createJsxText:pw,updateJsxText:vg,createJsxOpeningFragment:W3,createJsxJsxClosingFragment:eT,updateJsxFragment:V3,createJsxAttribute:f7,updateJsxAttribute:G3,createJsxAttributes:rv,updateJsxAttributes:m7,createJsxSpreadAttribute:CM,updateJsxSpreadAttribute:h7,createJsxExpression:H3,updateJsxExpression:g7,createJsxNamespacedName:UE,updateJsxNamespacedName:Zg,createCaseClause:VS,updateCaseClause:K3,createDefaultClause:Q3,updateDefaultClause:cl,createHeritageClause:$i,updateHeritageClause:Xy,createCatchClause:Od,updateCatchClause:_w,createPropertyAssignment:Z3,updatePropertyAssignment:QP,createShorthandPropertyAssignment:X3,updateShorthandPropertyAssignment:B,createSpreadAssignment:Wt,updateSpreadAssignment:ln,createEnumMember:Fo,updateEnumMember:na,createSourceFile:Ya,updateSourceFile:fw,createRedirectedSourceFile:ra,createBundle:xh,updateBundle:WC,createSyntheticExpression:y7,createSyntaxList:y1,createNotEmittedStatement:mp,createNotEmittedTypeElement:nv,createPartiallyEmittedExpression:Y3,updatePartiallyEmittedExpression:zE,createCommaListExpression:ZP,updateCommaListExpression:ase,createSyntheticReferenceExpression:Aq,updateSyntheticReferenceExpression:v7,cloneNode:eN,get createComma(){return _(28)},get createAssignment(){return _(64)},get createLogicalOr(){return _(57)},get createLogicalAnd(){return _(56)},get createBitwiseOr(){return _(52)},get createBitwiseXor(){return _(53)},get createBitwiseAnd(){return _(51)},get createStrictEquality(){return _(37)},get createStrictInequality(){return _(38)},get createEquality(){return _(35)},get createInequality(){return _(36)},get createLessThan(){return _(30)},get createLessThanEquals(){return _(33)},get createGreaterThan(){return _(32)},get createGreaterThanEquals(){return _(34)},get createLeftShift(){return _(48)},get createRightShift(){return _(49)},get createUnsignedRightShift(){return _(50)},get createAdd(){return _(40)},get createSubtract(){return _(41)},get createMultiply(){return _(42)},get createDivide(){return _(44)},get createModulo(){return _(45)},get createExponent(){return _(43)},get createPrefixPlus(){return f(40)},get createPrefixMinus(){return f(41)},get createPrefixIncrement(){return f(46)},get createPrefixDecrement(){return f(47)},get createBitwiseNot(){return f(55)},get createLogicalNot(){return f(54)},get createPostfixIncrement(){return y(46)},get createPostfixDecrement(){return y(47)},createImmediatelyInvokedFunctionExpression:sse,createImmediatelyInvokedArrowFunction:XP,createVoidZero:tN,createExportDefault:Iq,createExternalModuleExport:b7,createTypeCheck:Ua,createIsNotTypeCheck:HC,createMethodCall:ri,createGlobalMethodCall:YP,createFunctionBindCall:Pq,createFunctionCallCall:DM,createFunctionApplyCall:AM,createArraySliceCall:VQ,createArrayConcatCall:rN,createObjectDefinePropertyCall:cse,createObjectGetOwnPropertyDescriptorCall:wM,createReflectGetCall:jb,createReflectSetCall:WQ,createPropertyDescriptor:lse,createCallBinding:IM,createAssignmentTargetWrapper:WS,inlineExpressions:he,getInternalName:kt,getLocalName:ir,getExportName:Or,getDeclarationName:en,getNamespaceMemberName:_o,getExternalModuleOrNamespaceExportName:Mi,restoreOuterExpressions:Oq,restoreEnclosingLabel:hw,createUseStrictPrologue:La,copyPrologue:si,copyStandardPrologue:hu,copyCustomPrologue:Zl,ensureUseStrict:ll,liftToBlock:N0,mergeLexicalEnvironment:JE,replaceModifiers:VE,replaceDecoratorsAndModifiers:tT,replacePropertyName:KC};return X(Elt,P=>P(G)),G;function Z(P,q){if(P===void 0||P===j)P=[];else if(HI(P)){if(q===void 0||P.hasTrailingComma===q)return P.transformFlags===void 0&&Dlt(P),$.attachNodeArrayDebugInfo(P),P;let Tt=P.slice();return Tt.pos=P.pos,Tt.end=P.end,Tt.hasTrailingComma=q,Tt.transformFlags=P.transformFlags,$.attachNodeArrayDebugInfo(Tt),Tt}let oe=P.length,we=oe>=1&&oe<=4?P.slice():P;return we.pos=-1,we.end=-1,we.hasTrailingComma=!!q,we.transformFlags=0,Dlt(we),$.attachNodeArrayDebugInfo(we),we}function Q(P){return n.createBaseNode(P)}function re(P){let q=Q(P);return q.symbol=void 0,q.localSymbol=void 0,q}function ae(P,q){return P!==q&&(P.typeArguments=q.typeArguments),yi(P,q)}function _e(P,q=0){let oe=typeof P=="number"?P+"":P;$.assert(oe.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let we=re(9);return we.text=oe,we.numericLiteralFlags=q,q&384&&(we.transformFlags|=1024),we}function me(P){let q=It(10);return q.text=typeof P=="string"?P:fP(P)+"n",q.transformFlags|=32,q}function le(P,q){let oe=re(11);return oe.text=P,oe.singleQuote=q,oe}function Oe(P,q,oe){let we=le(P,q);return we.hasExtendedUnicodeEscape=oe,oe&&(we.transformFlags|=1024),we}function be(P){let q=le(g0(P),void 0);return q.textSourceNode=P,q}function ue(P){let q=It(14);return q.text=P,q}function De(P,q){switch(P){case 9:return _e(q,0);case 10:return me(q);case 11:return Oe(q,void 0);case 12:return pw(q,!1);case 13:return pw(q,!0);case 14:return ue(q);case 15:return ks(P,q,void 0,0)}}function Ce(P){let q=n.createBaseIdentifierNode(80);return q.escapedText=P,q.jsDoc=void 0,q.flowNode=void 0,q.symbol=void 0,q}function Ae(P,q,oe,we){let Tt=Ce(dp(P));return RH(Tt,{flags:q,id:yge,prefix:oe,suffix:we}),yge++,Tt}function Fe(P,q,oe){q===void 0&&P&&(q=kx(P)),q===80&&(q=void 0);let we=Ce(dp(P));return oe&&(we.flags|=256),we.escapedText==="await"&&(we.transformFlags|=67108864),we.flags&256&&(we.transformFlags|=1024),we}function Be(P,q,oe,we){let Tt=1;q&&(Tt|=8);let Fr=Ae("",Tt,oe,we);return P&&P(Fr),Fr}function de(P){let q=2;return P&&(q|=8),Ae("",q,void 0,void 0)}function ze(P,q=0,oe,we){return $.assert(!(q&7),"Argument out of range: flags"),$.assert((q&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Ae(P,3|q,oe,we)}function ut(P,q=0,oe,we){$.assert(!(q&7),"Argument out of range: flags");let Tt=P?Dx(P)?IA(!1,oe,P,we,Zi):`generated@${hl(P)}`:"";(oe||we)&&(q|=16);let Fr=Ae(Tt,4|q,oe,we);return Fr.original=P,Fr}function je(P){let q=n.createBasePrivateIdentifierNode(81);return q.escapedText=P,q.transformFlags|=16777216,q}function ve(P){return Ca(P,"#")||$.fail("First character of private identifier must be #: "+P),je(dp(P))}function Le(P,q,oe,we){let Tt=je(dp(P));return RH(Tt,{flags:q,id:yge,prefix:oe,suffix:we}),yge++,Tt}function Ve(P,q,oe){P&&!Ca(P,"#")&&$.fail("First character of private identifier must be #: "+P);let we=8|(P?3:1);return Le(P??"",we,q,oe)}function nt(P,q,oe){let we=Dx(P)?IA(!0,q,P,oe,Zi):`#generated@${hl(P)}`,Fr=Le(we,4|(q||oe?16:0),q,oe);return Fr.original=P,Fr}function It(P){return n.createBaseTokenNode(P)}function ke(P){$.assert(P>=0&&P<=166,"Invalid token"),$.assert(P<=15||P>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),$.assert(P<=9||P>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),$.assert(P!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let q=It(P),oe=0;switch(P){case 134:oe=384;break;case 160:oe=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:oe=1;break;case 108:oe=134218752,q.flowNode=void 0;break;case 126:oe=1024;break;case 129:oe=16777216;break;case 110:oe=16384,q.flowNode=void 0;break}return oe&&(q.transformFlags|=oe),q}function _t(){return ke(108)}function Se(){return ke(110)}function tt(){return ke(106)}function Qe(){return ke(112)}function We(){return ke(97)}function St(P){return ke(P)}function Kt(P){let q=[];return P&32&&q.push(St(95)),P&128&&q.push(St(138)),P&2048&&q.push(St(90)),P&4096&&q.push(St(87)),P&1&&q.push(St(125)),P&2&&q.push(St(123)),P&4&&q.push(St(124)),P&64&&q.push(St(128)),P&256&&q.push(St(126)),P&16&&q.push(St(164)),P&8&&q.push(St(148)),P&512&&q.push(St(129)),P&1024&&q.push(St(134)),P&8192&&q.push(St(103)),P&16384&&q.push(St(147)),q.length?q:void 0}function Sr(P,q){let oe=Q(167);return oe.left=P,oe.right=Sd(q),oe.transformFlags|=zi(oe.left)|PH(oe.right),oe.flowNode=void 0,oe}function nn(P,q,oe){return P.left!==q||P.right!==oe?yi(Sr(q,oe),P):P}function Nn(P){let q=Q(168);return q.expression=c().parenthesizeExpressionOfComputedPropertyName(P),q.transformFlags|=zi(q.expression)|1024|131072,q}function $t(P,q){return P.expression!==q?yi(Nn(q),P):P}function Dr(P,q,oe,we){let Tt=re(169);return Tt.modifiers=gl(P),Tt.name=Sd(q),Tt.constraint=oe,Tt.default=we,Tt.transformFlags=1,Tt.expression=void 0,Tt.jsDoc=void 0,Tt}function Qn(P,q,oe,we,Tt){return P.modifiers!==q||P.name!==oe||P.constraint!==we||P.default!==Tt?yi(Dr(q,oe,we,Tt),P):P}function Ko(P,q,oe,we,Tt,Fr){let ji=re(170);return ji.modifiers=gl(P),ji.dotDotDotToken=q,ji.name=Sd(oe),ji.questionToken=we,ji.type=Tt,ji.initializer=Om(Fr),pC(ji.name)?ji.transformFlags=1:ji.transformFlags=al(ji.modifiers)|zi(ji.dotDotDotToken)|hC(ji.name)|zi(ji.questionToken)|zi(ji.initializer)|(ji.questionToken??ji.type?1:0)|(ji.dotDotDotToken??ji.initializer?1024:0)|(TS(ji.modifiers)&31?8192:0),ji.jsDoc=void 0,ji}function is(P,q,oe,we,Tt,Fr,ji){return P.modifiers!==q||P.dotDotDotToken!==oe||P.name!==we||P.questionToken!==Tt||P.type!==Fr||P.initializer!==ji?yi(Ko(q,oe,we,Tt,Fr,ji),P):P}function sr(P){let q=Q(171);return q.expression=c().parenthesizeLeftSideOfAccess(P,!1),q.transformFlags|=zi(q.expression)|1|8192|33554432,q}function uo(P,q){return P.expression!==q?yi(sr(q),P):P}function Wa(P,q,oe,we){let Tt=re(172);return Tt.modifiers=gl(P),Tt.name=Sd(q),Tt.type=we,Tt.questionToken=oe,Tt.transformFlags=1,Tt.initializer=void 0,Tt.jsDoc=void 0,Tt}function oo(P,q,oe,we,Tt){return P.modifiers!==q||P.name!==oe||P.questionToken!==we||P.type!==Tt?Oi(Wa(q,oe,we,Tt),P):P}function Oi(P,q){return P!==q&&(P.initializer=q.initializer),yi(P,q)}function $o(P,q,oe,we,Tt){let Fr=re(173);Fr.modifiers=gl(P),Fr.name=Sd(q),Fr.questionToken=oe&&yC(oe)?oe:void 0,Fr.exclamationToken=oe&&MH(oe)?oe:void 0,Fr.type=we,Fr.initializer=Om(Tt);let ji=Fr.flags&33554432||TS(Fr.modifiers)&128;return Fr.transformFlags=al(Fr.modifiers)|hC(Fr.name)|zi(Fr.initializer)|(ji||Fr.questionToken||Fr.exclamationToken||Fr.type?1:0)|(dc(Fr.name)||TS(Fr.modifiers)&256&&Fr.initializer?8192:0)|16777216,Fr.jsDoc=void 0,Fr}function ft(P,q,oe,we,Tt,Fr){return P.modifiers!==q||P.name!==oe||P.questionToken!==(we!==void 0&&yC(we)?we:void 0)||P.exclamationToken!==(we!==void 0&&MH(we)?we:void 0)||P.type!==Tt||P.initializer!==Fr?yi($o(q,oe,we,Tt,Fr),P):P}function Ht(P,q,oe,we,Tt,Fr){let ji=re(174);return ji.modifiers=gl(P),ji.name=Sd(q),ji.questionToken=oe,ji.typeParameters=gl(we),ji.parameters=gl(Tt),ji.type=Fr,ji.transformFlags=1,ji.jsDoc=void 0,ji.locals=void 0,ji.nextContainer=void 0,ji.typeArguments=void 0,ji}function Wr(P,q,oe,we,Tt,Fr,ji){return P.modifiers!==q||P.name!==oe||P.questionToken!==we||P.typeParameters!==Tt||P.parameters!==Fr||P.type!==ji?ae(Ht(q,oe,we,Tt,Fr,ji),P):P}function ai(P,q,oe,we,Tt,Fr,ji,ds){let ju=re(175);if(ju.modifiers=gl(P),ju.asteriskToken=q,ju.name=Sd(oe),ju.questionToken=we,ju.exclamationToken=void 0,ju.typeParameters=gl(Tt),ju.parameters=Z(Fr),ju.type=ji,ju.body=ds,!ju.body)ju.transformFlags=1;else{let Sy=TS(ju.modifiers)&1024,QC=!!ju.asteriskToken,Rv=Sy&&QC;ju.transformFlags=al(ju.modifiers)|zi(ju.asteriskToken)|hC(ju.name)|zi(ju.questionToken)|al(ju.typeParameters)|al(ju.parameters)|zi(ju.type)|zi(ju.body)&-67108865|(Rv?128:Sy?256:QC?2048:0)|(ju.questionToken||ju.typeParameters||ju.type?1:0)|1024}return ju.typeArguments=void 0,ju.jsDoc=void 0,ju.locals=void 0,ju.nextContainer=void 0,ju.flowNode=void 0,ju.endFlowNode=void 0,ju.returnFlowNode=void 0,ju}function vo(P,q,oe,we,Tt,Fr,ji,ds,ju){return P.modifiers!==q||P.asteriskToken!==oe||P.name!==we||P.questionToken!==Tt||P.typeParameters!==Fr||P.parameters!==ji||P.type!==ds||P.body!==ju?Eo(ai(q,oe,we,Tt,Fr,ji,ds,ju),P):P}function Eo(P,q){return P!==q&&(P.exclamationToken=q.exclamationToken),yi(P,q)}function ya(P){let q=re(176);return q.body=P,q.transformFlags=zi(P)|16777216,q.modifiers=void 0,q.jsDoc=void 0,q.locals=void 0,q.nextContainer=void 0,q.endFlowNode=void 0,q.returnFlowNode=void 0,q}function Ls(P,q){return P.body!==q?yc(ya(q),P):P}function yc(P,q){return P!==q&&(P.modifiers=q.modifiers),yi(P,q)}function Cn(P,q,oe){let we=re(177);return we.modifiers=gl(P),we.parameters=Z(q),we.body=oe,we.body?we.transformFlags=al(we.modifiers)|al(we.parameters)|zi(we.body)&-67108865|1024:we.transformFlags=1,we.typeParameters=void 0,we.type=void 0,we.typeArguments=void 0,we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we.endFlowNode=void 0,we.returnFlowNode=void 0,we}function Es(P,q,oe,we){return P.modifiers!==q||P.parameters!==oe||P.body!==we?Dt(Cn(q,oe,we),P):P}function Dt(P,q){return P!==q&&(P.typeParameters=q.typeParameters,P.type=q.type),ae(P,q)}function ur(P,q,oe,we,Tt){let Fr=re(178);return Fr.modifiers=gl(P),Fr.name=Sd(q),Fr.parameters=Z(oe),Fr.type=we,Fr.body=Tt,Fr.body?Fr.transformFlags=al(Fr.modifiers)|hC(Fr.name)|al(Fr.parameters)|zi(Fr.type)|zi(Fr.body)&-67108865|(Fr.type?1:0):Fr.transformFlags=1,Fr.typeArguments=void 0,Fr.typeParameters=void 0,Fr.jsDoc=void 0,Fr.locals=void 0,Fr.nextContainer=void 0,Fr.flowNode=void 0,Fr.endFlowNode=void 0,Fr.returnFlowNode=void 0,Fr}function Ee(P,q,oe,we,Tt,Fr){return P.modifiers!==q||P.name!==oe||P.parameters!==we||P.type!==Tt||P.body!==Fr?Bt(ur(q,oe,we,Tt,Fr),P):P}function Bt(P,q){return P!==q&&(P.typeParameters=q.typeParameters),ae(P,q)}function ye(P,q,oe,we){let Tt=re(179);return Tt.modifiers=gl(P),Tt.name=Sd(q),Tt.parameters=Z(oe),Tt.body=we,Tt.body?Tt.transformFlags=al(Tt.modifiers)|hC(Tt.name)|al(Tt.parameters)|zi(Tt.body)&-67108865|(Tt.type?1:0):Tt.transformFlags=1,Tt.typeArguments=void 0,Tt.typeParameters=void 0,Tt.type=void 0,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.flowNode=void 0,Tt.endFlowNode=void 0,Tt.returnFlowNode=void 0,Tt}function et(P,q,oe,we,Tt){return P.modifiers!==q||P.name!==oe||P.parameters!==we||P.body!==Tt?Ct(ye(q,oe,we,Tt),P):P}function Ct(P,q){return P!==q&&(P.typeParameters=q.typeParameters,P.type=q.type),ae(P,q)}function Ot(P,q,oe){let we=re(180);return we.typeParameters=gl(P),we.parameters=gl(q),we.type=oe,we.transformFlags=1,we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we.typeArguments=void 0,we}function ar(P,q,oe,we){return P.typeParameters!==q||P.parameters!==oe||P.type!==we?ae(Ot(q,oe,we),P):P}function at(P,q,oe){let we=re(181);return we.typeParameters=gl(P),we.parameters=gl(q),we.type=oe,we.transformFlags=1,we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we.typeArguments=void 0,we}function Zt(P,q,oe,we){return P.typeParameters!==q||P.parameters!==oe||P.type!==we?ae(at(q,oe,we),P):P}function Qt(P,q,oe){let we=re(182);return we.modifiers=gl(P),we.parameters=gl(q),we.type=oe,we.transformFlags=1,we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we.typeArguments=void 0,we}function pr(P,q,oe,we){return P.parameters!==oe||P.type!==we||P.modifiers!==q?ae(Qt(q,oe,we),P):P}function Et(P,q){let oe=Q(205);return oe.type=P,oe.literal=q,oe.transformFlags=1,oe}function xr(P,q,oe){return P.type!==q||P.literal!==oe?yi(Et(q,oe),P):P}function gi(P){return ke(P)}function Ye(P,q,oe){let we=Q(183);return we.assertsModifier=P,we.parameterName=Sd(q),we.type=oe,we.transformFlags=1,we}function er(P,q,oe,we){return P.assertsModifier!==q||P.parameterName!==oe||P.type!==we?yi(Ye(q,oe,we),P):P}function Ne(P,q){let oe=Q(184);return oe.typeName=Sd(P),oe.typeArguments=q&&c().parenthesizeTypeArguments(Z(q)),oe.transformFlags=1,oe}function Y(P,q,oe){return P.typeName!==q||P.typeArguments!==oe?yi(Ne(q,oe),P):P}function ot(P,q,oe){let we=re(185);return we.typeParameters=gl(P),we.parameters=gl(q),we.type=oe,we.transformFlags=1,we.modifiers=void 0,we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we.typeArguments=void 0,we}function pe(P,q,oe,we){return P.typeParameters!==q||P.parameters!==oe||P.type!==we?Gt(ot(q,oe,we),P):P}function Gt(P,q){return P!==q&&(P.modifiers=q.modifiers),ae(P,q)}function mr(...P){return P.length===4?Ge(...P):P.length===3?Mt(...P):$.fail("Incorrect number of arguments specified.")}function Ge(P,q,oe,we){let Tt=re(186);return Tt.modifiers=gl(P),Tt.typeParameters=gl(q),Tt.parameters=gl(oe),Tt.type=we,Tt.transformFlags=1,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.typeArguments=void 0,Tt}function Mt(P,q,oe){return Ge(void 0,P,q,oe)}function Ir(...P){return P.length===5?ii(...P):P.length===4?Rn(...P):$.fail("Incorrect number of arguments specified.")}function ii(P,q,oe,we,Tt){return P.modifiers!==q||P.typeParameters!==oe||P.parameters!==we||P.type!==Tt?ae(mr(q,oe,we,Tt),P):P}function Rn(P,q,oe,we){return ii(P,P.modifiers,q,oe,we)}function zn(P,q){let oe=Q(187);return oe.exprName=P,oe.typeArguments=q&&c().parenthesizeTypeArguments(q),oe.transformFlags=1,oe}function Rt(P,q,oe){return P.exprName!==q||P.typeArguments!==oe?yi(zn(q,oe),P):P}function rr(P){let q=re(188);return q.members=Z(P),q.transformFlags=1,q}function _r(P,q){return P.members!==q?yi(rr(q),P):P}function wr(P){let q=Q(189);return q.elementType=c().parenthesizeNonArrayTypeOfPostfixType(P),q.transformFlags=1,q}function pn(P,q){return P.elementType!==q?yi(wr(q),P):P}function tn(P){let q=Q(190);return q.elements=Z(c().parenthesizeElementTypesOfTupleType(P)),q.transformFlags=1,q}function lr(P,q){return P.elements!==q?yi(tn(q),P):P}function cn(P,q,oe,we){let Tt=re(203);return Tt.dotDotDotToken=P,Tt.name=q,Tt.questionToken=oe,Tt.type=we,Tt.transformFlags=1,Tt.jsDoc=void 0,Tt}function gn(P,q,oe,we,Tt){return P.dotDotDotToken!==q||P.name!==oe||P.questionToken!==we||P.type!==Tt?yi(cn(q,oe,we,Tt),P):P}function bn(P){let q=Q(191);return q.type=c().parenthesizeTypeOfOptionalType(P),q.transformFlags=1,q}function $r(P,q){return P.type!==q?yi(bn(q),P):P}function Uo(P){let q=Q(192);return q.type=P,q.transformFlags=1,q}function Ys(P,q){return P.type!==q?yi(Uo(q),P):P}function ec(P,q,oe){let we=Q(P);return we.types=G.createNodeArray(oe(q)),we.transformFlags=1,we}function Ss(P,q,oe){return P.types!==q?yi(ec(P.kind,q,oe),P):P}function Mp(P){return ec(193,P,c().parenthesizeConstituentTypesOfUnionType)}function Cp(P,q){return Ss(P,q,c().parenthesizeConstituentTypesOfUnionType)}function uu(P){return ec(194,P,c().parenthesizeConstituentTypesOfIntersectionType)}function $a(P,q){return Ss(P,q,c().parenthesizeConstituentTypesOfIntersectionType)}function bs(P,q,oe,we){let Tt=Q(195);return Tt.checkType=c().parenthesizeCheckTypeOfConditionalType(P),Tt.extendsType=c().parenthesizeExtendsTypeOfConditionalType(q),Tt.trueType=oe,Tt.falseType=we,Tt.transformFlags=1,Tt.locals=void 0,Tt.nextContainer=void 0,Tt}function V_(P,q,oe,we,Tt){return P.checkType!==q||P.extendsType!==oe||P.trueType!==we||P.falseType!==Tt?yi(bs(q,oe,we,Tt),P):P}function Nu(P){let q=Q(196);return q.typeParameter=P,q.transformFlags=1,q}function kc(P,q){return P.typeParameter!==q?yi(Nu(q),P):P}function o_(P,q){let oe=Q(204);return oe.head=P,oe.templateSpans=Z(q),oe.transformFlags=1,oe}function Gy(P,q,oe){return P.head!==q||P.templateSpans!==oe?yi(o_(q,oe),P):P}function _s(P,q,oe,we,Tt=!1){let Fr=Q(206);return Fr.argument=P,Fr.attributes=q,Fr.assertions&&Fr.assertions.assertClause&&Fr.attributes&&(Fr.assertions.assertClause=Fr.attributes),Fr.qualifier=oe,Fr.typeArguments=we&&c().parenthesizeTypeArguments(we),Fr.isTypeOf=Tt,Fr.transformFlags=1,Fr}function sc(P,q,oe,we,Tt,Fr=P.isTypeOf){return P.argument!==q||P.attributes!==oe||P.qualifier!==we||P.typeArguments!==Tt||P.isTypeOf!==Fr?yi(_s(q,oe,we,Tt,Fr),P):P}function sl(P){let q=Q(197);return q.type=P,q.transformFlags=1,q}function Yc(P,q){return P.type!==q?yi(sl(q),P):P}function Ar(){let P=Q(198);return P.transformFlags=1,P}function Ql(P,q){let oe=Q(199);return oe.operator=P,oe.type=P===148?c().parenthesizeOperandOfReadonlyTypeOperator(q):c().parenthesizeOperandOfTypeOperator(q),oe.transformFlags=1,oe}function Gp(P,q){return P.type!==q?yi(Ql(P.operator,q),P):P}function N_(P,q){let oe=Q(200);return oe.objectType=c().parenthesizeNonArrayTypeOfPostfixType(P),oe.indexType=q,oe.transformFlags=1,oe}function lf(P,q,oe){return P.objectType!==q||P.indexType!==oe?yi(N_(q,oe),P):P}function Yu(P,q,oe,we,Tt,Fr){let ji=re(201);return ji.readonlyToken=P,ji.typeParameter=q,ji.nameType=oe,ji.questionToken=we,ji.type=Tt,ji.members=Fr&&Z(Fr),ji.transformFlags=1,ji.locals=void 0,ji.nextContainer=void 0,ji}function Hp(P,q,oe,we,Tt,Fr,ji){return P.readonlyToken!==q||P.typeParameter!==oe||P.nameType!==we||P.questionToken!==Tt||P.type!==Fr||P.members!==ji?yi(Yu(q,oe,we,Tt,Fr,ji),P):P}function H(P){let q=Q(202);return q.literal=P,q.transformFlags=1,q}function st(P,q){return P.literal!==q?yi(H(q),P):P}function zt(P){let q=Q(207);return q.elements=Z(P),q.transformFlags|=al(q.elements)|1024|524288,q.transformFlags&32768&&(q.transformFlags|=65664),q}function Er(P,q){return P.elements!==q?yi(zt(q),P):P}function jn(P){let q=Q(208);return q.elements=Z(P),q.transformFlags|=al(q.elements)|1024|524288,q}function So(P,q){return P.elements!==q?yi(jn(q),P):P}function Di(P,q,oe,we){let Tt=re(209);return Tt.dotDotDotToken=P,Tt.propertyName=Sd(q),Tt.name=Sd(oe),Tt.initializer=Om(we),Tt.transformFlags|=zi(Tt.dotDotDotToken)|hC(Tt.propertyName)|hC(Tt.name)|zi(Tt.initializer)|(Tt.dotDotDotToken?32768:0)|1024,Tt.flowNode=void 0,Tt}function On(P,q,oe,we,Tt){return P.propertyName!==oe||P.dotDotDotToken!==q||P.name!==we||P.initializer!==Tt?yi(Di(q,oe,we,Tt),P):P}function ua(P,q){let oe=Q(210),we=P&&Yr(P),Tt=Z(P,we&&Id(we)?!0:void 0);return oe.elements=c().parenthesizeExpressionsOfCommaDelimitedList(Tt),oe.multiLine=q,oe.transformFlags|=al(oe.elements),oe}function va(P,q){return P.elements!==q?yi(ua(q,P.multiLine),P):P}function Bl(P,q){let oe=re(211);return oe.properties=Z(P),oe.multiLine=q,oe.transformFlags|=al(oe.properties),oe.jsDoc=void 0,oe}function xc(P,q){return P.properties!==q?yi(Bl(q,P.multiLine),P):P}function ep(P,q,oe){let we=re(212);return we.expression=P,we.questionDotToken=q,we.name=oe,we.transformFlags=zi(we.expression)|zi(we.questionDotToken)|(ct(we.name)?PH(we.name):zi(we.name)|536870912),we.jsDoc=void 0,we.flowNode=void 0,we}function W_(P,q){let oe=ep(c().parenthesizeLeftSideOfAccess(P,!1),void 0,Sd(q));return az(P)&&(oe.transformFlags|=384),oe}function g_(P,q,oe){return jte(P)?a_(P,q,P.questionDotToken,Ba(oe,ct)):P.expression!==q||P.name!==oe?yi(W_(q,oe),P):P}function xu(P,q,oe){let we=ep(c().parenthesizeLeftSideOfAccess(P,!0),q,Sd(oe));return we.flags|=64,we.transformFlags|=32,we}function a_(P,q,oe,we){return $.assert(!!(P.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),P.expression!==q||P.questionDotToken!==oe||P.name!==we?yi(xu(q,oe,we),P):P}function Gg(P,q,oe){let we=re(213);return we.expression=P,we.questionDotToken=q,we.argumentExpression=oe,we.transformFlags|=zi(we.expression)|zi(we.questionDotToken)|zi(we.argumentExpression),we.jsDoc=void 0,we.flowNode=void 0,we}function Wf(P,q){let oe=Gg(c().parenthesizeLeftSideOfAccess(P,!1),void 0,WE(q));return az(P)&&(oe.transformFlags|=384),oe}function yy(P,q,oe){return Yfe(P)?rt(P,q,P.questionDotToken,oe):P.expression!==q||P.argumentExpression!==oe?yi(Wf(q,oe),P):P}function Wh(P,q,oe){let we=Gg(c().parenthesizeLeftSideOfAccess(P,!0),q,WE(oe));return we.flags|=64,we.transformFlags|=32,we}function rt(P,q,oe,we){return $.assert(!!(P.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),P.expression!==q||P.questionDotToken!==oe||P.argumentExpression!==we?yi(Wh(q,oe,we),P):P}function br(P,q,oe,we){let Tt=re(214);return Tt.expression=P,Tt.questionDotToken=q,Tt.typeArguments=oe,Tt.arguments=we,Tt.transformFlags|=zi(Tt.expression)|zi(Tt.questionDotToken)|al(Tt.typeArguments)|al(Tt.arguments),Tt.typeArguments&&(Tt.transformFlags|=1),_g(Tt.expression)&&(Tt.transformFlags|=16384),Tt}function Vn(P,q,oe){let we=br(c().parenthesizeLeftSideOfAccess(P,!1),void 0,gl(q),c().parenthesizeExpressionsOfCommaDelimitedList(Z(oe)));return sz(we.expression)&&(we.transformFlags|=8388608),we}function Ga(P,q,oe,we){return O4(P)?tl(P,q,P.questionDotToken,oe,we):P.expression!==q||P.typeArguments!==oe||P.arguments!==we?yi(Vn(q,oe,we),P):P}function el(P,q,oe,we){let Tt=br(c().parenthesizeLeftSideOfAccess(P,!0),q,gl(oe),c().parenthesizeExpressionsOfCommaDelimitedList(Z(we)));return Tt.flags|=64,Tt.transformFlags|=32,Tt}function tl(P,q,oe,we,Tt){return $.assert(!!(P.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),P.expression!==q||P.questionDotToken!==oe||P.typeArguments!==we||P.arguments!==Tt?yi(el(q,oe,we,Tt),P):P}function Uc(P,q,oe){let we=re(215);return we.expression=c().parenthesizeExpressionOfNew(P),we.typeArguments=gl(q),we.arguments=oe?c().parenthesizeExpressionsOfCommaDelimitedList(oe):void 0,we.transformFlags|=zi(we.expression)|al(we.typeArguments)|al(we.arguments)|32,we.typeArguments&&(we.transformFlags|=1),we}function nd(P,q,oe,we){return P.expression!==q||P.typeArguments!==oe||P.arguments!==we?yi(Uc(q,oe,we),P):P}function Mu(P,q,oe){let we=Q(216);return we.tag=c().parenthesizeLeftSideOfAccess(P,!1),we.typeArguments=gl(q),we.template=oe,we.transformFlags|=zi(we.tag)|al(we.typeArguments)|zi(we.template)|1024,we.typeArguments&&(we.transformFlags|=1),che(we.template)&&(we.transformFlags|=128),we}function Dp(P,q,oe,we){return P.tag!==q||P.typeArguments!==oe||P.template!==we?yi(Mu(q,oe,we),P):P}function Kp(P,q){let oe=Q(217);return oe.expression=c().parenthesizeOperandOfPrefixUnary(q),oe.type=P,oe.transformFlags|=zi(oe.expression)|zi(oe.type)|1,oe}function vy(P,q,oe){return P.type!==q||P.expression!==oe?yi(Kp(q,oe),P):P}function If(P){let q=Q(218);return q.expression=P,q.transformFlags=zi(q.expression),q.jsDoc=void 0,q}function uf(P,q){return P.expression!==q?yi(If(q),P):P}function Hg(P,q,oe,we,Tt,Fr,ji){let ds=re(219);ds.modifiers=gl(P),ds.asteriskToken=q,ds.name=Sd(oe),ds.typeParameters=gl(we),ds.parameters=Z(Tt),ds.type=Fr,ds.body=ji;let ju=TS(ds.modifiers)&1024,Sy=!!ds.asteriskToken,QC=ju&&Sy;return ds.transformFlags=al(ds.modifiers)|zi(ds.asteriskToken)|hC(ds.name)|al(ds.typeParameters)|al(ds.parameters)|zi(ds.type)|zi(ds.body)&-67108865|(QC?128:ju?256:Sy?2048:0)|(ds.typeParameters||ds.type?1:0)|4194304,ds.typeArguments=void 0,ds.jsDoc=void 0,ds.locals=void 0,ds.nextContainer=void 0,ds.flowNode=void 0,ds.endFlowNode=void 0,ds.returnFlowNode=void 0,ds}function Ym(P,q,oe,we,Tt,Fr,ji,ds){return P.name!==we||P.modifiers!==q||P.asteriskToken!==oe||P.typeParameters!==Tt||P.parameters!==Fr||P.type!==ji||P.body!==ds?ae(Hg(q,oe,we,Tt,Fr,ji,ds),P):P}function D0(P,q,oe,we,Tt,Fr){let ji=re(220);ji.modifiers=gl(P),ji.typeParameters=gl(q),ji.parameters=Z(oe),ji.type=we,ji.equalsGreaterThanToken=Tt??ke(39),ji.body=c().parenthesizeConciseBodyOfArrowFunction(Fr);let ds=TS(ji.modifiers)&1024;return ji.transformFlags=al(ji.modifiers)|al(ji.typeParameters)|al(ji.parameters)|zi(ji.type)|zi(ji.equalsGreaterThanToken)|zi(ji.body)&-67108865|(ji.typeParameters||ji.type?1:0)|(ds?16640:0)|1024,ji.typeArguments=void 0,ji.jsDoc=void 0,ji.locals=void 0,ji.nextContainer=void 0,ji.flowNode=void 0,ji.endFlowNode=void 0,ji.returnFlowNode=void 0,ji}function Pb(P,q,oe,we,Tt,Fr,ji){return P.modifiers!==q||P.typeParameters!==oe||P.parameters!==we||P.type!==Tt||P.equalsGreaterThanToken!==Fr||P.body!==ji?ae(D0(q,oe,we,Tt,Fr,ji),P):P}function Wx(P){let q=Q(221);return q.expression=c().parenthesizeOperandOfPrefixUnary(P),q.transformFlags|=zi(q.expression),q}function Gx(P,q){return P.expression!==q?yi(Wx(q),P):P}function Gh(P){let q=Q(222);return q.expression=c().parenthesizeOperandOfPrefixUnary(P),q.transformFlags|=zi(q.expression),q}function Nd(P,q){return P.expression!==q?yi(Gh(q),P):P}function Iv(P){let q=Q(223);return q.expression=c().parenthesizeOperandOfPrefixUnary(P),q.transformFlags|=zi(q.expression),q}function Hy(P,q){return P.expression!==q?yi(Iv(q),P):P}function US(P){let q=Q(224);return q.expression=c().parenthesizeOperandOfPrefixUnary(P),q.transformFlags|=zi(q.expression)|256|128|2097152,q}function xe(P,q){return P.expression!==q?yi(US(q),P):P}function Ft(P,q){let oe=Q(225);return oe.operator=P,oe.operand=c().parenthesizeOperandOfPrefixUnary(q),oe.transformFlags|=zi(oe.operand),(P===46||P===47)&&ct(oe.operand)&&!ap(oe.operand)&&!HT(oe.operand)&&(oe.transformFlags|=268435456),oe}function Nr(P,q){return P.operand!==q?yi(Ft(P.operator,q),P):P}function Mr(P,q){let oe=Q(226);return oe.operator=q,oe.operand=c().parenthesizeOperandOfPostfixUnary(P),oe.transformFlags|=zi(oe.operand),ct(oe.operand)&&!ap(oe.operand)&&!HT(oe.operand)&&(oe.transformFlags|=268435456),oe}function wn(P,q){return P.operand!==q?yi(Mr(q,P.operator),P):P}function Yn(P,q,oe){let we=re(227),Tt=x7(q),Fr=Tt.kind;return we.left=c().parenthesizeLeftSideOfBinary(Fr,P),we.operatorToken=Tt,we.right=c().parenthesizeRightSideOfBinary(Fr,we.left,oe),we.transformFlags|=zi(we.left)|zi(we.operatorToken)|zi(we.right),Fr===61?we.transformFlags|=32:Fr===64?Lc(we.left)?we.transformFlags|=5248|fo(we.left):qf(we.left)&&(we.transformFlags|=5120|fo(we.left)):Fr===43||Fr===68?we.transformFlags|=512:OU(Fr)&&(we.transformFlags|=16),Fr===103&&Aa(we.left)&&(we.transformFlags|=536870912),we.jsDoc=void 0,we}function fo(P){return ZH(P)?65536:0}function Mo(P,q,oe,we){return P.left!==q||P.operatorToken!==oe||P.right!==we?yi(Yn(q,oe,we),P):P}function Ea(P,q,oe,we,Tt){let Fr=Q(228);return Fr.condition=c().parenthesizeConditionOfConditionalExpression(P),Fr.questionToken=q??ke(58),Fr.whenTrue=c().parenthesizeBranchOfConditionalExpression(oe),Fr.colonToken=we??ke(59),Fr.whenFalse=c().parenthesizeBranchOfConditionalExpression(Tt),Fr.transformFlags|=zi(Fr.condition)|zi(Fr.questionToken)|zi(Fr.whenTrue)|zi(Fr.colonToken)|zi(Fr.whenFalse),Fr.flowNodeWhenFalse=void 0,Fr.flowNodeWhenTrue=void 0,Fr}function ee(P,q,oe,we,Tt,Fr){return P.condition!==q||P.questionToken!==oe||P.whenTrue!==we||P.colonToken!==Tt||P.whenFalse!==Fr?yi(Ea(q,oe,we,Tt,Fr),P):P}function it(P,q){let oe=Q(229);return oe.head=P,oe.templateSpans=Z(q),oe.transformFlags|=zi(oe.head)|al(oe.templateSpans)|1024,oe}function cr(P,q,oe){return P.head!==q||P.templateSpans!==oe?yi(it(q,oe),P):P}function In(P,q,oe,we=0){$.assert(!(we&-7177),"Unsupported template flags.");let Tt;if(oe!==void 0&&oe!==q&&(Tt=xnr(P,oe),typeof Tt=="object"))return $.fail("Invalid raw text");if(q===void 0){if(Tt===void 0)return $.fail("Arguments 'text' and 'rawText' may not both be undefined.");q=Tt}else Tt!==void 0&&$.assert(q===Tt,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return q}function Ka(P){let q=1024;return P&&(q|=128),q}function Ws(P,q,oe,we){let Tt=It(P);return Tt.text=q,Tt.rawText=oe,Tt.templateFlags=we&7176,Tt.transformFlags=Ka(Tt.templateFlags),Tt}function Xa(P,q,oe,we){let Tt=re(P);return Tt.text=q,Tt.rawText=oe,Tt.templateFlags=we&7176,Tt.transformFlags=Ka(Tt.templateFlags),Tt}function ks(P,q,oe,we){return P===15?Xa(P,q,oe,we):Ws(P,q,oe,we)}function cp(P,q,oe){return P=In(16,P,q,oe),ks(16,P,q,oe)}function Cc(P,q,oe){return P=In(16,P,q,oe),ks(17,P,q,oe)}function pf(P,q,oe){return P=In(16,P,q,oe),ks(18,P,q,oe)}function Kg(P,q,oe){return P=In(16,P,q,oe),Xa(15,P,q,oe)}function Ky(P,q){$.assert(!P||!!q,"A `YieldExpression` with an asteriskToken must have an expression.");let oe=Q(230);return oe.expression=q&&c().parenthesizeExpressionForDisallowedComma(q),oe.asteriskToken=P,oe.transformFlags|=zi(oe.expression)|zi(oe.asteriskToken)|1024|128|1048576,oe}function A0(P,q,oe){return P.expression!==oe||P.asteriskToken!==q?yi(Ky(q,oe),P):P}function r2(P){let q=Q(231);return q.expression=c().parenthesizeExpressionForDisallowedComma(P),q.transformFlags|=zi(q.expression)|1024|32768,q}function PE(P,q){return P.expression!==q?yi(r2(q),P):P}function vh(P,q,oe,we,Tt){let Fr=re(232);return Fr.modifiers=gl(P),Fr.name=Sd(q),Fr.typeParameters=gl(oe),Fr.heritageClauses=gl(we),Fr.members=Z(Tt),Fr.transformFlags|=al(Fr.modifiers)|hC(Fr.name)|al(Fr.typeParameters)|al(Fr.heritageClauses)|al(Fr.members)|(Fr.typeParameters?1:0)|1024,Fr.jsDoc=void 0,Fr}function Nb(P,q,oe,we,Tt,Fr){return P.modifiers!==q||P.name!==oe||P.typeParameters!==we||P.heritageClauses!==Tt||P.members!==Fr?yi(vh(q,oe,we,Tt,Fr),P):P}function Pv(){return Q(233)}function d1(P,q){let oe=Q(234);return oe.expression=c().parenthesizeLeftSideOfAccess(P,!1),oe.typeArguments=q&&c().parenthesizeTypeArguments(q),oe.transformFlags|=zi(oe.expression)|al(oe.typeArguments)|1024,oe}function OC(P,q,oe){return P.expression!==q||P.typeArguments!==oe?yi(d1(q,oe),P):P}function dt(P,q){let oe=Q(235);return oe.expression=P,oe.type=q,oe.transformFlags|=zi(oe.expression)|zi(oe.type)|1,oe}function Lt(P,q,oe){return P.expression!==q||P.type!==oe?yi(dt(q,oe),P):P}function Tr(P){let q=Q(236);return q.expression=c().parenthesizeLeftSideOfAccess(P,!1),q.transformFlags|=zi(q.expression)|1,q}function dn(P,q){return $te(P)?oi(P,q):P.expression!==q?yi(Tr(q),P):P}function qn(P,q){let oe=Q(239);return oe.expression=P,oe.type=q,oe.transformFlags|=zi(oe.expression)|zi(oe.type)|1,oe}function Fi(P,q,oe){return P.expression!==q||P.type!==oe?yi(qn(q,oe),P):P}function $n(P){let q=Q(236);return q.flags|=64,q.expression=c().parenthesizeLeftSideOfAccess(P,!0),q.transformFlags|=zi(q.expression)|1,q}function oi(P,q){return $.assert(!!(P.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),P.expression!==q?yi($n(q),P):P}function sa(P,q){let oe=Q(237);switch(oe.keywordToken=P,oe.name=q,oe.transformFlags|=zi(oe.name),P){case 105:oe.transformFlags|=1024;break;case 102:oe.transformFlags|=32;break;default:return $.assertNever(P)}return oe.flowNode=void 0,oe}function os(P,q){return P.name!==q?yi(sa(P.keywordToken,q),P):P}function Po(P,q){let oe=Q(240);return oe.expression=P,oe.literal=q,oe.transformFlags|=zi(oe.expression)|zi(oe.literal)|1024,oe}function as(P,q,oe){return P.expression!==q||P.literal!==oe?yi(Po(q,oe),P):P}function ka(){let P=Q(241);return P.transformFlags|=1024,P}function lp(P,q){let oe=Q(242);return oe.statements=Z(P),oe.multiLine=q,oe.transformFlags|=al(oe.statements),oe.jsDoc=void 0,oe.locals=void 0,oe.nextContainer=void 0,oe}function Hh(P,q){return P.statements!==q?yi(lp(q,P.multiLine),P):P}function f1(P,q){let oe=Q(244);return oe.modifiers=gl(P),oe.declarationList=Zn(q)?ZA(q):q,oe.transformFlags|=al(oe.modifiers)|zi(oe.declarationList),TS(oe.modifiers)&128&&(oe.transformFlags=1),oe.jsDoc=void 0,oe.flowNode=void 0,oe}function Pf(P,q,oe){return P.modifiers!==q||P.declarationList!==oe?yi(f1(q,oe),P):P}function m1(){let P=Q(243);return P.jsDoc=void 0,P}function Qg(P){let q=Q(245);return q.expression=c().parenthesizeExpressionOfExpressionStatement(P),q.transformFlags|=zi(q.expression),q.jsDoc=void 0,q.flowNode=void 0,q}function GA(P,q){return P.expression!==q?yi(Qg(q),P):P}function zS(P,q,oe){let we=Q(246);return we.expression=P,we.thenStatement=rT(q),we.elseStatement=rT(oe),we.transformFlags|=zi(we.expression)|zi(we.thenStatement)|zi(we.elseStatement),we.jsDoc=void 0,we.flowNode=void 0,we}function Ob(P,q,oe,we){return P.expression!==q||P.thenStatement!==oe||P.elseStatement!==we?yi(zS(q,oe,we),P):P}function HA(P,q){let oe=Q(247);return oe.statement=rT(P),oe.expression=q,oe.transformFlags|=zi(oe.statement)|zi(oe.expression),oe.jsDoc=void 0,oe.flowNode=void 0,oe}function Fb(P,q,oe){return P.statement!==q||P.expression!==oe?yi(HA(q,oe),P):P}function hM(P,q){let oe=Q(248);return oe.expression=P,oe.statement=rT(q),oe.transformFlags|=zi(oe.expression)|zi(oe.statement),oe.jsDoc=void 0,oe.flowNode=void 0,oe}function xq(P,q,oe){return P.expression!==q||P.statement!==oe?yi(hM(q,oe),P):P}function gM(P,q,oe,we){let Tt=Q(249);return Tt.initializer=P,Tt.condition=q,Tt.incrementor=oe,Tt.statement=rT(we),Tt.transformFlags|=zi(Tt.initializer)|zi(Tt.condition)|zi(Tt.incrementor)|zi(Tt.statement),Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.flowNode=void 0,Tt}function Hx(P,q,oe,we,Tt){return P.initializer!==q||P.condition!==oe||P.incrementor!==we||P.statement!==Tt?yi(gM(q,oe,we,Tt),P):P}function KA(P,q,oe){let we=Q(250);return we.initializer=P,we.expression=q,we.statement=rT(oe),we.transformFlags|=zi(we.initializer)|zi(we.expression)|zi(we.statement),we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we.flowNode=void 0,we}function P3(P,q,oe,we){return P.initializer!==q||P.expression!==oe||P.statement!==we?yi(KA(q,oe,we),P):P}function NE(P,q,oe,we){let Tt=Q(251);return Tt.awaitModifier=P,Tt.initializer=q,Tt.expression=c().parenthesizeExpressionForDisallowedComma(oe),Tt.statement=rT(we),Tt.transformFlags|=zi(Tt.awaitModifier)|zi(Tt.initializer)|zi(Tt.expression)|zi(Tt.statement)|1024,P&&(Tt.transformFlags|=128),Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.flowNode=void 0,Tt}function N3(P,q,oe,we,Tt){return P.awaitModifier!==q||P.initializer!==oe||P.expression!==we||P.statement!==Tt?yi(NE(q,oe,we,Tt),P):P}function e7(P){let q=Q(252);return q.label=Sd(P),q.transformFlags|=zi(q.label)|4194304,q.jsDoc=void 0,q.flowNode=void 0,q}function Tq(P,q){return P.label!==q?yi(e7(q),P):P}function O3(P){let q=Q(253);return q.label=Sd(P),q.transformFlags|=zi(q.label)|4194304,q.jsDoc=void 0,q.flowNode=void 0,q}function t7(P,q){return P.label!==q?yi(O3(q),P):P}function QA(P){let q=Q(254);return q.expression=P,q.transformFlags|=zi(q.expression)|128|4194304,q.jsDoc=void 0,q.flowNode=void 0,q}function yM(P,q){return P.expression!==q?yi(QA(q),P):P}function F3(P,q){let oe=Q(255);return oe.expression=P,oe.statement=rT(q),oe.transformFlags|=zi(oe.expression)|zi(oe.statement),oe.jsDoc=void 0,oe.flowNode=void 0,oe}function r7(P,q,oe){return P.expression!==q||P.statement!==oe?yi(F3(q,oe),P):P}function UP(P,q){let oe=Q(256);return oe.expression=c().parenthesizeExpressionForDisallowedComma(P),oe.caseBlock=q,oe.transformFlags|=zi(oe.expression)|zi(oe.caseBlock),oe.jsDoc=void 0,oe.flowNode=void 0,oe.possiblyExhaustive=!1,oe}function FC(P,q,oe){return P.expression!==q||P.caseBlock!==oe?yi(UP(q,oe),P):P}function n7(P,q){let oe=Q(257);return oe.label=Sd(P),oe.statement=rT(q),oe.transformFlags|=zi(oe.label)|zi(oe.statement),oe.jsDoc=void 0,oe.flowNode=void 0,oe}function i7(P,q,oe){return P.label!==q||P.statement!==oe?yi(n7(q,oe),P):P}function zP(P){let q=Q(258);return q.expression=P,q.transformFlags|=zi(q.expression),q.jsDoc=void 0,q.flowNode=void 0,q}function RC(P,q){return P.expression!==q?yi(zP(q),P):P}function OE(P,q,oe){let we=Q(259);return we.tryBlock=P,we.catchClause=q,we.finallyBlock=oe,we.transformFlags|=zi(we.tryBlock)|zi(we.catchClause)|zi(we.finallyBlock),we.jsDoc=void 0,we.flowNode=void 0,we}function n2(P,q,oe,we){return P.tryBlock!==q||P.catchClause!==oe||P.finallyBlock!==we?yi(OE(q,oe,we),P):P}function i2(){let P=Q(260);return P.jsDoc=void 0,P.flowNode=void 0,P}function o2(P,q,oe,we){let Tt=re(261);return Tt.name=Sd(P),Tt.exclamationToken=q,Tt.type=oe,Tt.initializer=Om(we),Tt.transformFlags|=hC(Tt.name)|zi(Tt.initializer)|(Tt.exclamationToken??Tt.type?1:0),Tt.jsDoc=void 0,Tt}function LC(P,q,oe,we,Tt){return P.name!==q||P.type!==we||P.exclamationToken!==oe||P.initializer!==Tt?yi(o2(q,oe,we,Tt),P):P}function ZA(P,q=0){let oe=Q(262);return oe.flags|=q&7,oe.declarations=Z(P),oe.transformFlags|=al(oe.declarations)|4194304,q&7&&(oe.transformFlags|=263168),q&4&&(oe.transformFlags|=4),oe}function R3(P,q){return P.declarations!==q?yi(ZA(q,P.flags),P):P}function XA(P,q,oe,we,Tt,Fr,ji){let ds=re(263);if(ds.modifiers=gl(P),ds.asteriskToken=q,ds.name=Sd(oe),ds.typeParameters=gl(we),ds.parameters=Z(Tt),ds.type=Fr,ds.body=ji,!ds.body||TS(ds.modifiers)&128)ds.transformFlags=1;else{let ju=TS(ds.modifiers)&1024,Sy=!!ds.asteriskToken,QC=ju&&Sy;ds.transformFlags=al(ds.modifiers)|zi(ds.asteriskToken)|hC(ds.name)|al(ds.typeParameters)|al(ds.parameters)|zi(ds.type)|zi(ds.body)&-67108865|(QC?128:ju?256:Sy?2048:0)|(ds.typeParameters||ds.type?1:0)|4194304}return ds.typeArguments=void 0,ds.jsDoc=void 0,ds.locals=void 0,ds.nextContainer=void 0,ds.endFlowNode=void 0,ds.returnFlowNode=void 0,ds}function il(P,q,oe,we,Tt,Fr,ji,ds){return P.modifiers!==q||P.asteriskToken!==oe||P.name!==we||P.typeParameters!==Tt||P.parameters!==Fr||P.type!==ji||P.body!==ds?L3(XA(q,oe,we,Tt,Fr,ji,ds),P):P}function L3(P,q){return P!==q&&P.modifiers===q.modifiers&&(P.modifiers=q.modifiers),ae(P,q)}function vM(P,q,oe,we,Tt){let Fr=re(264);return Fr.modifiers=gl(P),Fr.name=Sd(q),Fr.typeParameters=gl(oe),Fr.heritageClauses=gl(we),Fr.members=Z(Tt),TS(Fr.modifiers)&128?Fr.transformFlags=1:(Fr.transformFlags|=al(Fr.modifiers)|hC(Fr.name)|al(Fr.typeParameters)|al(Fr.heritageClauses)|al(Fr.members)|(Fr.typeParameters?1:0)|1024,Fr.transformFlags&8192&&(Fr.transformFlags|=1)),Fr.jsDoc=void 0,Fr}function a2(P,q,oe,we,Tt,Fr){return P.modifiers!==q||P.name!==oe||P.typeParameters!==we||P.heritageClauses!==Tt||P.members!==Fr?yi(vM(q,oe,we,Tt,Fr),P):P}function s2(P,q,oe,we,Tt){let Fr=re(265);return Fr.modifiers=gl(P),Fr.name=Sd(q),Fr.typeParameters=gl(oe),Fr.heritageClauses=gl(we),Fr.members=Z(Tt),Fr.transformFlags=1,Fr.jsDoc=void 0,Fr}function Rb(P,q,oe,we,Tt,Fr){return P.modifiers!==q||P.name!==oe||P.typeParameters!==we||P.heritageClauses!==Tt||P.members!==Fr?yi(s2(q,oe,we,Tt,Fr),P):P}function tp(P,q,oe,we){let Tt=re(266);return Tt.modifiers=gl(P),Tt.name=Sd(q),Tt.typeParameters=gl(oe),Tt.type=we,Tt.transformFlags=1,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt}function am(P,q,oe,we,Tt){return P.modifiers!==q||P.name!==oe||P.typeParameters!==we||P.type!==Tt?yi(tp(q,oe,we,Tt),P):P}function Kh(P,q,oe){let we=re(267);return we.modifiers=gl(P),we.name=Sd(q),we.members=Z(oe),we.transformFlags|=al(we.modifiers)|zi(we.name)|al(we.members)|1,we.transformFlags&=-67108865,we.jsDoc=void 0,we}function sm(P,q,oe,we){return P.modifiers!==q||P.name!==oe||P.members!==we?yi(Kh(q,oe,we),P):P}function YA(P,q,oe,we=0){let Tt=re(268);return Tt.modifiers=gl(P),Tt.flags|=we&2088,Tt.name=q,Tt.body=oe,TS(Tt.modifiers)&128?Tt.transformFlags=1:Tt.transformFlags|=al(Tt.modifiers)|zi(Tt.name)|zi(Tt.body)|1,Tt.transformFlags&=-67108865,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt}function eh(P,q,oe,we){return P.modifiers!==q||P.name!==oe||P.body!==we?yi(YA(q,oe,we,P.flags),P):P}function Lb(P){let q=Q(269);return q.statements=Z(P),q.transformFlags|=al(q.statements),q.jsDoc=void 0,q}function Sh(P,q){return P.statements!==q?yi(Lb(q),P):P}function h1(P){let q=Q(270);return q.clauses=Z(P),q.transformFlags|=al(q.clauses),q.locals=void 0,q.nextContainer=void 0,q}function X1(P,q){return P.clauses!==q?yi(h1(q),P):P}function ew(P){let q=re(271);return q.name=Sd(P),q.transformFlags|=PH(q.name)|1,q.modifiers=void 0,q.jsDoc=void 0,q}function tw(P,q){return P.name!==q?Eq(ew(q),P):P}function Eq(P,q){return P!==q&&(P.modifiers=q.modifiers),yi(P,q)}function SM(P,q,oe,we){let Tt=re(272);return Tt.modifiers=gl(P),Tt.name=Sd(oe),Tt.isTypeOnly=q,Tt.moduleReference=we,Tt.transformFlags|=al(Tt.modifiers)|PH(Tt.name)|zi(Tt.moduleReference),WT(Tt.moduleReference)||(Tt.transformFlags|=1),Tt.transformFlags&=-67108865,Tt.jsDoc=void 0,Tt}function FE(P,q,oe,we,Tt){return P.modifiers!==q||P.isTypeOnly!==oe||P.name!==we||P.moduleReference!==Tt?yi(SM(q,oe,we,Tt),P):P}function qP(P,q,oe,we){let Tt=Q(273);return Tt.modifiers=gl(P),Tt.importClause=q,Tt.moduleSpecifier=oe,Tt.attributes=Tt.assertClause=we,Tt.transformFlags|=zi(Tt.importClause)|zi(Tt.moduleSpecifier),Tt.transformFlags&=-67108865,Tt.jsDoc=void 0,Tt}function gt(P,q,oe,we,Tt){return P.modifiers!==q||P.importClause!==oe||P.moduleSpecifier!==we||P.attributes!==Tt?yi(qP(q,oe,we,Tt),P):P}function M3(P,q,oe){let we=re(274);return typeof P=="boolean"&&(P=P?156:void 0),we.isTypeOnly=P===156,we.phaseModifier=P,we.name=q,we.namedBindings=oe,we.transformFlags|=zi(we.name)|zi(we.namedBindings),P===156&&(we.transformFlags|=1),we.transformFlags&=-67108865,we}function Kx(P,q,oe,we){return typeof q=="boolean"&&(q=q?156:void 0),P.phaseModifier!==q||P.name!==oe||P.namedBindings!==we?yi(M3(q,oe,we),P):P}function Y1(P,q){let oe=Q(301);return oe.elements=Z(P),oe.multiLine=q,oe.token=132,oe.transformFlags|=4,oe}function RE(P,q,oe){return P.elements!==q||P.multiLine!==oe?yi(Y1(q,oe),P):P}function MC(P,q){let oe=Q(302);return oe.name=P,oe.value=q,oe.transformFlags|=4,oe}function th(P,q,oe){return P.name!==q||P.value!==oe?yi(MC(q,oe),P):P}function Nv(P,q){let oe=Q(303);return oe.assertClause=P,oe.multiLine=q,oe}function g1(P,q,oe){return P.assertClause!==q||P.multiLine!==oe?yi(Nv(q,oe),P):P}function rw(P,q,oe){let we=Q(301);return we.token=oe??118,we.elements=Z(P),we.multiLine=q,we.transformFlags|=4,we}function zc(P,q,oe){return P.elements!==q||P.multiLine!==oe?yi(rw(q,oe,P.token),P):P}function Qy(P,q){let oe=Q(302);return oe.name=P,oe.value=q,oe.transformFlags|=4,oe}function LE(P,q,oe){return P.name!==q||P.value!==oe?yi(Qy(q,oe),P):P}function j3(P){let q=re(275);return q.name=P,q.transformFlags|=zi(q.name),q.transformFlags&=-67108865,q}function c2(P,q){return P.name!==q?yi(j3(q),P):P}function JP(P){let q=re(281);return q.name=P,q.transformFlags|=zi(q.name)|32,q.transformFlags&=-67108865,q}function w0(P,q){return P.name!==q?yi(JP(q),P):P}function Qx(P){let q=Q(276);return q.elements=Z(P),q.transformFlags|=al(q.elements),q.transformFlags&=-67108865,q}function nw(P,q){return P.elements!==q?yi(Qx(q),P):P}function ME(P,q,oe){let we=re(277);return we.isTypeOnly=P,we.propertyName=q,we.name=oe,we.transformFlags|=zi(we.propertyName)|zi(we.name),we.transformFlags&=-67108865,we}function qS(P,q,oe,we){return P.isTypeOnly!==q||P.propertyName!==oe||P.name!==we?yi(ME(q,oe,we),P):P}function VP(P,q,oe){let we=re(278);return we.modifiers=gl(P),we.isExportEquals=q,we.expression=q?c().parenthesizeRightSideOfBinary(64,void 0,oe):c().parenthesizeExpressionOfExportDefault(oe),we.transformFlags|=al(we.modifiers)|zi(we.expression),we.transformFlags&=-67108865,we.jsDoc=void 0,we}function iw(P,q,oe){return P.modifiers!==q||P.expression!==oe?yi(VP(q,P.isExportEquals,oe),P):P}function io(P,q,oe,we,Tt){let Fr=re(279);return Fr.modifiers=gl(P),Fr.isTypeOnly=q,Fr.exportClause=oe,Fr.moduleSpecifier=we,Fr.attributes=Fr.assertClause=Tt,Fr.transformFlags|=al(Fr.modifiers)|zi(Fr.exportClause)|zi(Fr.moduleSpecifier),Fr.transformFlags&=-67108865,Fr.jsDoc=void 0,Fr}function Ki(P,q,oe,we,Tt,Fr){return P.modifiers!==q||P.isTypeOnly!==oe||P.exportClause!==we||P.moduleSpecifier!==Tt||P.attributes!==Fr?Nf(io(q,oe,we,Tt,Fr),P):P}function Nf(P,q){return P!==q&&P.modifiers===q.modifiers&&(P.modifiers=q.modifiers),yi(P,q)}function B3(P){let q=Q(280);return q.elements=Z(P),q.transformFlags|=al(q.elements),q.transformFlags&=-67108865,q}function l2(P,q){return P.elements!==q?yi(B3(q),P):P}function WP(P,q,oe){let we=Q(282);return we.isTypeOnly=P,we.propertyName=Sd(q),we.name=Sd(oe),we.transformFlags|=zi(we.propertyName)|zi(we.name),we.transformFlags&=-67108865,we.jsDoc=void 0,we}function bM(P,q,oe,we){return P.isTypeOnly!==q||P.propertyName!==oe||P.name!==we?yi(WP(q,oe,we),P):P}function kq(){let P=re(283);return P.jsDoc=void 0,P}function qi(P){let q=Q(284);return q.expression=P,q.transformFlags|=zi(q.expression),q.transformFlags&=-67108865,q}function rh(P,q){return P.expression!==q?yi(qi(q),P):P}function gs(P){return Q(P)}function gg(P,q,oe=!1){let we=$3(P,oe?q&&c().parenthesizeNonArrayTypeOfPostfixType(q):q);return we.postfix=oe,we}function $3(P,q){let oe=Q(P);return oe.type=q,oe}function jC(P,q,oe){return q.type!==oe?yi(gg(P,oe,q.postfix),q):q}function Ii(P,q,oe){return q.type!==oe?yi($3(P,oe),q):q}function xM(P,q){let oe=re(318);return oe.parameters=gl(P),oe.type=q,oe.transformFlags=al(oe.parameters)|(oe.type?1:0),oe.jsDoc=void 0,oe.locals=void 0,oe.nextContainer=void 0,oe.typeArguments=void 0,oe}function o7(P,q,oe){return P.parameters!==q||P.type!==oe?yi(xM(q,oe),P):P}function Pm(P,q=!1){let oe=re(323);return oe.jsDocPropertyTags=gl(P),oe.isArrayType=q,oe}function Mb(P,q,oe){return P.jsDocPropertyTags!==q||P.isArrayType!==oe?yi(Pm(q,oe),P):P}function Ov(P){let q=Q(310);return q.type=P,q}function BC(P,q){return P.type!==q?yi(Ov(q),P):P}function U3(P,q,oe){let we=re(324);return we.typeParameters=gl(P),we.parameters=Z(q),we.type=oe,we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we}function $C(P,q,oe,we){return P.typeParameters!==q||P.parameters!==oe||P.type!==we?yi(U3(q,oe,we),P):P}function Zy(P){let q=vge(P.kind);return P.tagName.escapedText===dp(q)?P.tagName:Fe(q)}function ev(P,q,oe){let we=Q(P);return we.tagName=q,we.comment=oe,we}function I0(P,q,oe){let we=re(P);return we.tagName=q,we.comment=oe,we}function Qh(P,q,oe,we){let Tt=ev(346,P??Fe("template"),we);return Tt.constraint=q,Tt.typeParameters=Z(oe),Tt}function jE(P,q=Zy(P),oe,we,Tt){return P.tagName!==q||P.constraint!==oe||P.typeParameters!==we||P.comment!==Tt?yi(Qh(q,oe,we,Tt),P):P}function ow(P,q,oe,we){let Tt=I0(347,P??Fe("typedef"),we);return Tt.typeExpression=q,Tt.fullName=oe,Tt.name=Yge(oe),Tt.locals=void 0,Tt.nextContainer=void 0,Tt}function a7(P,q=Zy(P),oe,we,Tt){return P.tagName!==q||P.typeExpression!==oe||P.fullName!==we||P.comment!==Tt?yi(ow(q,oe,we,Tt),P):P}function aw(P,q,oe,we,Tt,Fr){let ji=I0(342,P??Fe("param"),Fr);return ji.typeExpression=we,ji.name=q,ji.isNameFirst=!!Tt,ji.isBracketed=oe,ji}function UC(P,q=Zy(P),oe,we,Tt,Fr,ji){return P.tagName!==q||P.name!==oe||P.isBracketed!==we||P.typeExpression!==Tt||P.isNameFirst!==Fr||P.comment!==ji?yi(aw(q,oe,we,Tt,Fr,ji),P):P}function s7(P,q,oe,we,Tt,Fr){let ji=I0(349,P??Fe("prop"),Fr);return ji.typeExpression=we,ji.name=q,ji.isNameFirst=!!Tt,ji.isBracketed=oe,ji}function u2(P,q=Zy(P),oe,we,Tt,Fr,ji){return P.tagName!==q||P.name!==oe||P.isBracketed!==we||P.typeExpression!==Tt||P.isNameFirst!==Fr||P.comment!==ji?yi(s7(q,oe,we,Tt,Fr,ji),P):P}function JS(P,q,oe,we){let Tt=I0(339,P??Fe("callback"),we);return Tt.typeExpression=q,Tt.fullName=oe,Tt.name=Yge(oe),Tt.locals=void 0,Tt.nextContainer=void 0,Tt}function zC(P,q=Zy(P),oe,we,Tt){return P.tagName!==q||P.typeExpression!==oe||P.fullName!==we||P.comment!==Tt?yi(JS(q,oe,we,Tt),P):P}function sw(P,q,oe){let we=ev(340,P??Fe("overload"),oe);return we.typeExpression=q,we}function BE(P,q=Zy(P),oe,we){return P.tagName!==q||P.typeExpression!==oe||P.comment!==we?yi(sw(q,oe,we),P):P}function qC(P,q,oe){let we=ev(329,P??Fe("augments"),oe);return we.class=q,we}function tv(P,q=Zy(P),oe,we){return P.tagName!==q||P.class!==oe||P.comment!==we?yi(qC(q,oe,we),P):P}function p2(P,q,oe){let we=ev(330,P??Fe("implements"),oe);return we.class=q,we}function Zx(P,q,oe){let we=ev(348,P??Fe("see"),oe);return we.name=q,we}function JC(P,q,oe,we){return P.tagName!==q||P.name!==oe||P.comment!==we?yi(Zx(q,oe,we),P):P}function _f(P){let q=Q(311);return q.name=P,q}function GP(P,q){return P.name!==q?yi(_f(q),P):P}function Xx(P,q){let oe=Q(312);return oe.left=P,oe.right=q,oe.transformFlags|=zi(oe.left)|zi(oe.right),oe}function cw(P,q,oe){return P.left!==q||P.right!==oe?yi(Xx(q,oe),P):P}function z3(P,q){let oe=Q(325);return oe.name=P,oe.text=q,oe}function Yx(P,q,oe){return P.name!==q?yi(z3(q,oe),P):P}function TM(P,q){let oe=Q(326);return oe.name=P,oe.text=q,oe}function c7(P,q,oe){return P.name!==q?yi(TM(q,oe),P):P}function l7(P,q){let oe=Q(327);return oe.name=P,oe.text=q,oe}function Cq(P,q,oe){return P.name!==q?yi(l7(q,oe),P):P}function u7(P,q=Zy(P),oe,we){return P.tagName!==q||P.class!==oe||P.comment!==we?yi(p2(q,oe,we),P):P}function lw(P,q,oe){return ev(P,q??Fe(vge(P)),oe)}function _2(P,q,oe=Zy(q),we){return q.tagName!==oe||q.comment!==we?yi(lw(P,oe,we),q):q}function EM(P,q,oe,we){let Tt=ev(P,q??Fe(vge(P)),we);return Tt.typeExpression=oe,Tt}function uw(P,q,oe=Zy(q),we,Tt){return q.tagName!==oe||q.typeExpression!==we||q.comment!==Tt?yi(EM(P,oe,we,Tt),q):q}function q3(P,q){return ev(328,P,q)}function O_(P,q,oe){return P.tagName!==q||P.comment!==oe?yi(q3(q,oe),P):P}function df(P,q,oe){let we=I0(341,P??Fe(vge(341)),oe);return we.typeExpression=q,we.locals=void 0,we.nextContainer=void 0,we}function p7(P,q=Zy(P),oe,we){return P.tagName!==q||P.typeExpression!==oe||P.comment!==we?yi(df(q,oe,we),P):P}function Zh(P,q,oe,we,Tt){let Fr=ev(352,P??Fe("import"),Tt);return Fr.importClause=q,Fr.moduleSpecifier=oe,Fr.attributes=we,Fr.comment=Tt,Fr}function P0(P,q,oe,we,Tt,Fr){return P.tagName!==q||P.comment!==Fr||P.importClause!==oe||P.moduleSpecifier!==we||P.attributes!==Tt?yi(Zh(q,oe,we,Tt,Fr),P):P}function HP(P){let q=Q(322);return q.text=P,q}function Fv(P,q){return P.text!==q?yi(HP(q),P):P}function VC(P,q){let oe=Q(321);return oe.comment=P,oe.tags=gl(q),oe}function $E(P,q,oe){return P.comment!==q||P.tags!==oe?yi(VC(q,oe),P):P}function _7(P,q,oe){let we=Q(285);return we.openingElement=P,we.children=Z(q),we.closingElement=oe,we.transformFlags|=zi(we.openingElement)|al(we.children)|zi(we.closingElement)|2,we}function Dq(P,q,oe,we){return P.openingElement!==q||P.children!==oe||P.closingElement!==we?yi(_7(q,oe,we),P):P}function jp(P,q,oe){let we=Q(286);return we.tagName=P,we.typeArguments=gl(q),we.attributes=oe,we.transformFlags|=zi(we.tagName)|al(we.typeArguments)|zi(we.attributes)|2,we.typeArguments&&(we.transformFlags|=1),we}function kM(P,q,oe,we){return P.tagName!==q||P.typeArguments!==oe||P.attributes!==we?yi(jp(q,oe,we),P):P}function J3(P,q,oe){let we=Q(287);return we.tagName=P,we.typeArguments=gl(q),we.attributes=oe,we.transformFlags|=zi(we.tagName)|al(we.typeArguments)|zi(we.attributes)|2,q&&(we.transformFlags|=1),we}function KP(P,q,oe,we){return P.tagName!==q||P.typeArguments!==oe||P.attributes!==we?yi(J3(q,oe,we),P):P}function d7(P){let q=Q(288);return q.tagName=P,q.transformFlags|=zi(q.tagName)|2,q}function Nm(P,q){return P.tagName!==q?yi(d7(q),P):P}function yg(P,q,oe){let we=Q(289);return we.openingFragment=P,we.children=Z(q),we.closingFragment=oe,we.transformFlags|=zi(we.openingFragment)|al(we.children)|zi(we.closingFragment)|2,we}function V3(P,q,oe,we){return P.openingFragment!==q||P.children!==oe||P.closingFragment!==we?yi(yg(q,oe,we),P):P}function pw(P,q){let oe=Q(12);return oe.text=P,oe.containsOnlyTriviaWhiteSpaces=!!q,oe.transformFlags|=2,oe}function vg(P,q,oe){return P.text!==q||P.containsOnlyTriviaWhiteSpaces!==oe?yi(pw(q,oe),P):P}function W3(){let P=Q(290);return P.transformFlags|=2,P}function eT(){let P=Q(291);return P.transformFlags|=2,P}function f7(P,q){let oe=re(292);return oe.name=P,oe.initializer=q,oe.transformFlags|=zi(oe.name)|zi(oe.initializer)|2,oe}function G3(P,q,oe){return P.name!==q||P.initializer!==oe?yi(f7(q,oe),P):P}function rv(P){let q=re(293);return q.properties=Z(P),q.transformFlags|=al(q.properties)|2,q}function m7(P,q){return P.properties!==q?yi(rv(q),P):P}function CM(P){let q=Q(294);return q.expression=P,q.transformFlags|=zi(q.expression)|2,q}function h7(P,q){return P.expression!==q?yi(CM(q),P):P}function H3(P,q){let oe=Q(295);return oe.dotDotDotToken=P,oe.expression=q,oe.transformFlags|=zi(oe.dotDotDotToken)|zi(oe.expression)|2,oe}function g7(P,q){return P.expression!==q?yi(H3(P.dotDotDotToken,q),P):P}function UE(P,q){let oe=Q(296);return oe.namespace=P,oe.name=q,oe.transformFlags|=zi(oe.namespace)|zi(oe.name)|2,oe}function Zg(P,q,oe){return P.namespace!==q||P.name!==oe?yi(UE(q,oe),P):P}function VS(P,q){let oe=Q(297);return oe.expression=c().parenthesizeExpressionForDisallowedComma(P),oe.statements=Z(q),oe.transformFlags|=zi(oe.expression)|al(oe.statements),oe.jsDoc=void 0,oe}function K3(P,q,oe){return P.expression!==q||P.statements!==oe?yi(VS(q,oe),P):P}function Q3(P){let q=Q(298);return q.statements=Z(P),q.transformFlags=al(q.statements),q}function cl(P,q){return P.statements!==q?yi(Q3(q),P):P}function $i(P,q){let oe=Q(299);switch(oe.token=P,oe.types=Z(q),oe.transformFlags|=al(oe.types),P){case 96:oe.transformFlags|=1024;break;case 119:oe.transformFlags|=1;break;default:return $.assertNever(P)}return oe}function Xy(P,q){return P.types!==q?yi($i(P.token,q),P):P}function Od(P,q){let oe=Q(300);return oe.variableDeclaration=$b(P),oe.block=q,oe.transformFlags|=zi(oe.variableDeclaration)|zi(oe.block)|(P?0:64),oe.locals=void 0,oe.nextContainer=void 0,oe}function _w(P,q,oe){return P.variableDeclaration!==q||P.block!==oe?yi(Od(q,oe),P):P}function Z3(P,q){let oe=re(304);return oe.name=Sd(P),oe.initializer=c().parenthesizeExpressionForDisallowedComma(q),oe.transformFlags|=hC(oe.name)|zi(oe.initializer),oe.modifiers=void 0,oe.questionToken=void 0,oe.exclamationToken=void 0,oe.jsDoc=void 0,oe}function QP(P,q,oe){return P.name!==q||P.initializer!==oe?dw(Z3(q,oe),P):P}function dw(P,q){return P!==q&&(P.modifiers=q.modifiers,P.questionToken=q.questionToken,P.exclamationToken=q.exclamationToken),yi(P,q)}function X3(P,q){let oe=re(305);return oe.name=Sd(P),oe.objectAssignmentInitializer=q&&c().parenthesizeExpressionForDisallowedComma(q),oe.transformFlags|=PH(oe.name)|zi(oe.objectAssignmentInitializer)|1024,oe.equalsToken=void 0,oe.modifiers=void 0,oe.questionToken=void 0,oe.exclamationToken=void 0,oe.jsDoc=void 0,oe}function B(P,q,oe){return P.name!==q||P.objectAssignmentInitializer!==oe?Pe(X3(q,oe),P):P}function Pe(P,q){return P!==q&&(P.modifiers=q.modifiers,P.questionToken=q.questionToken,P.exclamationToken=q.exclamationToken,P.equalsToken=q.equalsToken),yi(P,q)}function Wt(P){let q=re(306);return q.expression=c().parenthesizeExpressionForDisallowedComma(P),q.transformFlags|=zi(q.expression)|128|65536,q.jsDoc=void 0,q}function ln(P,q){return P.expression!==q?yi(Wt(q),P):P}function Fo(P,q){let oe=re(307);return oe.name=Sd(P),oe.initializer=q&&c().parenthesizeExpressionForDisallowedComma(q),oe.transformFlags|=zi(oe.name)|zi(oe.initializer)|1,oe.jsDoc=void 0,oe}function na(P,q,oe){return P.name!==q||P.initializer!==oe?yi(Fo(q,oe),P):P}function Ya(P,q,oe){let we=n.createBaseSourceFileNode(308);return we.statements=Z(P),we.endOfFileToken=q,we.flags|=oe,we.text="",we.fileName="",we.path="",we.resolvedPath="",we.originalFileName="",we.languageVersion=1,we.languageVariant=0,we.scriptKind=0,we.isDeclarationFile=!1,we.hasNoDefaultLib=!1,we.transformFlags|=al(we.statements)|zi(we.endOfFileToken),we.locals=void 0,we.nextContainer=void 0,we.endFlowNode=void 0,we.nodeCount=0,we.identifierCount=0,we.symbolCount=0,we.parseDiagnostics=void 0,we.bindDiagnostics=void 0,we.bindSuggestionDiagnostics=void 0,we.lineMap=void 0,we.externalModuleIndicator=void 0,we.setExternalModuleIndicator=void 0,we.pragmas=void 0,we.checkJsDirective=void 0,we.referencedFiles=void 0,we.typeReferenceDirectives=void 0,we.libReferenceDirectives=void 0,we.amdDependencies=void 0,we.commentDirectives=void 0,we.identifiers=void 0,we.packageJsonLocations=void 0,we.packageJsonScope=void 0,we.imports=void 0,we.moduleAugmentations=void 0,we.ambientModuleNames=void 0,we.classifiableNames=void 0,we.impliedNodeFormat=void 0,we}function ra(P){let q=Object.create(P.redirectTarget);return Object.defineProperties(q,{id:{get(){return this.redirectInfo.redirectTarget.id},set(oe){this.redirectInfo.redirectTarget.id=oe}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(oe){this.redirectInfo.redirectTarget.symbol=oe}}}),q.redirectInfo=P,q}function Wc(P){let q=ra(P.redirectInfo);return q.flags|=P.flags&-17,q.fileName=P.fileName,q.path=P.path,q.resolvedPath=P.resolvedPath,q.originalFileName=P.originalFileName,q.packageJsonLocations=P.packageJsonLocations,q.packageJsonScope=P.packageJsonScope,q.emitNode=void 0,q}function F_(P){let q=n.createBaseSourceFileNode(308);q.flags|=P.flags&-17;for(let oe in P)if(!(Ho(q,oe)||!Ho(P,oe))){if(oe==="emitNode"){q.emitNode=void 0;continue}q[oe]=P[oe]}return q}function cm(P){let q=P.redirectInfo?Wc(P):F_(P);return a(q,P),q}function bh(P,q,oe,we,Tt,Fr,ji){let ds=cm(P);return ds.statements=Z(q),ds.isDeclarationFile=oe,ds.referencedFiles=we,ds.typeReferenceDirectives=Tt,ds.hasNoDefaultLib=Fr,ds.libReferenceDirectives=ji,ds.transformFlags=al(ds.statements)|zi(ds.endOfFileToken),ds}function fw(P,q,oe=P.isDeclarationFile,we=P.referencedFiles,Tt=P.typeReferenceDirectives,Fr=P.hasNoDefaultLib,ji=P.libReferenceDirectives){return P.statements!==q||P.isDeclarationFile!==oe||P.referencedFiles!==we||P.typeReferenceDirectives!==Tt||P.hasNoDefaultLib!==Fr||P.libReferenceDirectives!==ji?yi(bh(P,q,oe,we,Tt,Fr,ji),P):P}function xh(P){let q=Q(309);return q.sourceFiles=P,q.syntheticFileReferences=void 0,q.syntheticTypeReferences=void 0,q.syntheticLibReferences=void 0,q.hasNoDefaultLib=void 0,q}function WC(P,q){return P.sourceFiles!==q?yi(xh(q),P):P}function y7(P,q=!1,oe){let we=Q(238);return we.type=P,we.isSpread=q,we.tupleNameSource=oe,we}function y1(P){let q=Q(353);return q._children=P,q}function mp(P){let q=Q(354);return q.original=P,qt(q,P),q}function Y3(P,q){let oe=Q(356);return oe.expression=P,oe.original=q,oe.transformFlags|=zi(oe.expression)|1,qt(oe,q),oe}function zE(P,q){return P.expression!==q?yi(Y3(q,P.original),P):P}function nv(){return Q(355)}function qE(P){if(fu(P)&&!I4(P)&&!P.original&&!P.emitNode&&!P.id){if(uz(P))return P.elements;if(wi(P)&&N3e(P.operatorToken))return[P.left,P.right]}return P}function ZP(P){let q=Q(357);return q.elements=Z(Wi(P,qE)),q.transformFlags|=al(q.elements),q}function ase(P,q){return P.elements!==q?yi(ZP(q),P):P}function Aq(P,q){let oe=Q(358);return oe.expression=P,oe.thisArg=q,oe.transformFlags|=zi(oe.expression)|zi(oe.thisArg),oe}function v7(P,q,oe){return P.expression!==q||P.thisArg!==oe?yi(Aq(q,oe),P):P}function wq(P){let q=Ce(P.escapedText);return q.flags|=P.flags&-17,q.transformFlags=P.transformFlags,a(q,P),RH(q,{...P.emitNode.autoGenerate}),q}function JQ(P){let q=Ce(P.escapedText);q.flags|=P.flags&-17,q.jsDoc=P.jsDoc,q.flowNode=P.flowNode,q.symbol=P.symbol,q.transformFlags=P.transformFlags,a(q,P);let oe=t3(P);return oe&&vE(q,oe),q}function GC(P){let q=je(P.escapedText);return q.flags|=P.flags&-17,q.transformFlags=P.transformFlags,a(q,P),RH(q,{...P.emitNode.autoGenerate}),q}function S7(P){let q=je(P.escapedText);return q.flags|=P.flags&-17,q.transformFlags=P.transformFlags,a(q,P),q}function eN(P){if(P===void 0)return P;if(Ta(P))return cm(P);if(ap(P))return wq(P);if(ct(P))return JQ(P);if(R4(P))return GC(P);if(Aa(P))return S7(P);let q=Ute(P.kind)?n.createBaseNode(P.kind):n.createBaseTokenNode(P.kind);q.flags|=P.flags&-17,q.transformFlags=P.transformFlags,a(q,P);for(let oe in P)Ho(q,oe)||!Ho(P,oe)||(q[oe]=P[oe]);return q}function sse(P,q,oe){return Vn(Hg(void 0,void 0,void 0,void 0,q?[q]:[],void 0,lp(P,!0)),void 0,oe?[oe]:[])}function XP(P,q,oe){return Vn(D0(void 0,void 0,q?[q]:[],void 0,void 0,lp(P,!0)),void 0,oe?[oe]:[])}function tN(){return Iv(_e("0"))}function Iq(P){return VP(void 0,!1,P)}function b7(P){return io(void 0,!1,B3([WP(!1,void 0,P)]))}function Ua(P,q){return q==="null"?G.createStrictEquality(P,tt()):q==="undefined"?G.createStrictEquality(P,tN()):G.createStrictEquality(Gh(P),Oe(q))}function HC(P,q){return q==="null"?G.createStrictInequality(P,tt()):q==="undefined"?G.createStrictInequality(P,tN()):G.createStrictInequality(Gh(P),Oe(q))}function ri(P,q,oe){return O4(P)?el(xu(P,void 0,q),void 0,void 0,oe):Vn(W_(P,q),void 0,oe)}function Pq(P,q,oe){return ri(P,"bind",[q,...oe])}function DM(P,q,oe){return ri(P,"call",[q,...oe])}function AM(P,q,oe){return ri(P,"apply",[q,oe])}function YP(P,q,oe){return ri(Fe(P),q,oe)}function VQ(P,q){return ri(P,"slice",q===void 0?[]:[WE(q)])}function rN(P,q){return ri(P,"concat",q)}function cse(P,q,oe){return YP("Object","defineProperty",[P,WE(q),oe])}function wM(P,q){return YP("Object","getOwnPropertyDescriptor",[P,WE(q)])}function jb(P,q,oe){return YP("Reflect","get",oe?[P,q,oe]:[P,q])}function WQ(P,q,oe,we){return YP("Reflect","set",we?[P,q,oe,we]:[P,q,oe])}function mw(P,q,oe){return oe?(P.push(Z3(q,oe)),!0):!1}function lse(P,q){let oe=[];mw(oe,"enumerable",WE(P.enumerable)),mw(oe,"configurable",WE(P.configurable));let we=mw(oe,"writable",WE(P.writable));we=mw(oe,"value",P.value)||we;let Tt=mw(oe,"get",P.get);return Tt=mw(oe,"set",P.set)||Tt,$.assert(!(we&&Tt),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Bl(oe,!q)}function Nq(P,q){switch(P.kind){case 218:return uf(P,q);case 217:return vy(P,P.type,q);case 235:return Lt(P,q,P.type);case 239:return Fi(P,q,P.type);case 236:return dn(P,q);case 234:return OC(P,q,P.typeArguments);case 356:return zE(P,q)}}function GQ(P){return mh(P)&&fu(P)&&fu(yE(P))&&fu(DS(P))&&!Pt(_L(P))&&!Pt(FH(P))}function Oq(P,q,oe=63){return P&&tie(P,oe)&&!GQ(P)?Nq(P,Oq(P.expression,q)):q}function hw(P,q,oe){if(!q)return P;let we=i7(q,q.label,bC(q.statement)?hw(P,q.statement):P);return oe&&oe(q),we}function Bb(P,q){let oe=bl(P);switch(oe.kind){case 80:return q;case 110:case 9:case 10:case 11:return!1;case 210:return oe.elements.length!==0;case 211:return oe.properties.length>0;default:return!0}}function IM(P,q,oe,we=!1){let Tt=Wp(P,63),Fr,ji;return _g(Tt)?(Fr=Se(),ji=Tt):az(Tt)?(Fr=Se(),ji=oe!==void 0&&oe<2?qt(Fe("_super"),Tt):Tt):Xc(Tt)&8192?(Fr=tN(),ji=c().parenthesizeLeftSideOfAccess(Tt,!1)):no(Tt)?Bb(Tt.expression,we)?(Fr=Be(q),ji=W_(qt(G.createAssignment(Fr,Tt.expression),Tt.expression),Tt.name),qt(ji,Tt)):(Fr=Tt.expression,ji=Tt):mu(Tt)?Bb(Tt.expression,we)?(Fr=Be(q),ji=Wf(qt(G.createAssignment(Fr,Tt.expression),Tt.expression),Tt.argumentExpression),qt(ji,Tt)):(Fr=Tt.expression,ji=Tt):(Fr=tN(),ji=c().parenthesizeLeftSideOfAccess(P,!1)),{target:ji,thisArg:Fr}}function WS(P,q){return W_(If(Bl([ye(void 0,"value",[Ko(void 0,void 0,P,void 0,void 0,void 0)],lp([Qg(q)]))])),"value")}function he(P){return P.length>10?ZP(P):nl(P,G.createComma)}function Ze(P,q,oe,we=0,Tt){let Fr=Tt?P&&PR(P):cs(P);if(Fr&&ct(Fr)&&!ap(Fr)){let ji=xl(qt(eN(Fr),Fr),Fr.parent);return we|=Xc(Fr),oe||(we|=96),q||(we|=3072),we&&Ai(ji,we),ji}return ut(P)}function kt(P,q,oe){return Ze(P,q,oe,98304)}function ir(P,q,oe,we){return Ze(P,q,oe,32768,we)}function Or(P,q,oe){return Ze(P,q,oe,16384)}function en(P,q,oe){return Ze(P,q,oe)}function _o(P,q,oe,we){let Tt=W_(P,fu(q)?q:eN(q));qt(Tt,q);let Fr=0;return we||(Fr|=96),oe||(Fr|=3072),Fr&&Ai(Tt,Fr),Tt}function Mi(P,q,oe,we){return P&&ko(q,32)?_o(P,Ze(q),oe,we):Or(q,oe,we)}function si(P,q,oe,we){let Tt=hu(P,q,0,oe);return Zl(P,q,Tt,we)}function zo(P){return Ic(P.expression)&&P.expression.text==="use strict"}function La(){return Dm(Qg(Oe("use strict")))}function hu(P,q,oe=0,we){$.assert(q.length===0,"Prologue directives should be at the first statement in the target statements array");let Tt=!1,Fr=P.length;for(;oeds&&Sy.splice(Tt,0,...q.slice(ds,ju)),ds>ji&&Sy.splice(we,0,...q.slice(ji,ds)),ji>Fr&&Sy.splice(oe,0,...q.slice(Fr,ji)),Fr>0)if(oe===0)Sy.splice(0,0,...q.slice(0,Fr));else{let QC=new Map;for(let Rv=0;Rv=0;Rv--){let T7=q[Rv];QC.has(T7.expression.text)||Sy.unshift(T7)}}return HI(P)?qt(Z(Sy,P.hasTrailingComma),P):P}function VE(P,q){let oe;return typeof q=="number"?oe=Kt(q):oe=q,Zu(P)?Qn(P,oe,P.name,P.constraint,P.default):wa(P)?is(P,oe,P.dotDotDotToken,P.name,P.questionToken,P.type,P.initializer):fL(P)?ii(P,oe,P.typeParameters,P.parameters,P.type):Zm(P)?oo(P,oe,P.name,P.questionToken,P.type):ps(P)?ft(P,oe,P.name,P.questionToken??P.exclamationToken,P.type,P.initializer):G1(P)?Wr(P,oe,P.name,P.questionToken,P.typeParameters,P.parameters,P.type):Ep(P)?vo(P,oe,P.asteriskToken,P.name,P.questionToken,P.typeParameters,P.parameters,P.type,P.body):kp(P)?Es(P,oe,P.parameters,P.body):T0(P)?Ee(P,oe,P.name,P.parameters,P.type,P.body):mg(P)?et(P,oe,P.name,P.parameters,P.body):vC(P)?pr(P,oe,P.parameters,P.type):bu(P)?Ym(P,oe,P.asteriskToken,P.name,P.typeParameters,P.parameters,P.type,P.body):Iu(P)?Pb(P,oe,P.typeParameters,P.parameters,P.type,P.equalsGreaterThanToken,P.body):w_(P)?Nb(P,oe,P.name,P.typeParameters,P.heritageClauses,P.members):h_(P)?Pf(P,oe,P.declarationList):i_(P)?il(P,oe,P.asteriskToken,P.name,P.typeParameters,P.parameters,P.type,P.body):ed(P)?a2(P,oe,P.name,P.typeParameters,P.heritageClauses,P.members):Af(P)?Rb(P,oe,P.name,P.typeParameters,P.heritageClauses,P.members):s1(P)?am(P,oe,P.name,P.typeParameters,P.type):CA(P)?sm(P,oe,P.name,P.members):I_(P)?eh(P,oe,P.name,P.body):gd(P)?FE(P,oe,P.isTypeOnly,P.name,P.moduleReference):fp(P)?gt(P,oe,P.importClause,P.moduleSpecifier,P.attributes):Xu(P)?iw(P,oe,P.expression):P_(P)?Ki(P,oe,P.isTypeOnly,P.exportClause,P.moduleSpecifier,P.attributes):$.assertNever(P)}function tT(P,q){return wa(P)?is(P,q,P.dotDotDotToken,P.name,P.questionToken,P.type,P.initializer):ps(P)?ft(P,q,P.name,P.questionToken??P.exclamationToken,P.type,P.initializer):Ep(P)?vo(P,q,P.asteriskToken,P.name,P.questionToken,P.typeParameters,P.parameters,P.type,P.body):T0(P)?Ee(P,q,P.name,P.parameters,P.type,P.body):mg(P)?et(P,q,P.name,P.parameters,P.body):w_(P)?Nb(P,q,P.name,P.typeParameters,P.heritageClauses,P.members):ed(P)?a2(P,q,P.name,P.typeParameters,P.heritageClauses,P.members):$.assertNever(P)}function KC(P,q){switch(P.kind){case 178:return Ee(P,P.modifiers,q,P.parameters,P.type,P.body);case 179:return et(P,P.modifiers,q,P.parameters,P.body);case 175:return vo(P,P.modifiers,P.asteriskToken,q,P.questionToken,P.typeParameters,P.parameters,P.type,P.body);case 174:return Wr(P,P.modifiers,q,P.questionToken,P.typeParameters,P.parameters,P.type);case 173:return ft(P,P.modifiers,q,P.questionToken??P.exclamationToken,P.type,P.initializer);case 172:return oo(P,P.modifiers,q,P.questionToken,P.type);case 304:return QP(P,q,P.initializer)}}function gl(P){return P?Z(P):void 0}function Sd(P){return typeof P=="string"?Fe(P):P}function WE(P){return typeof P=="string"?Oe(P):typeof P=="number"?_e(P):typeof P=="boolean"?P?Qe():We():P}function Om(P){return P&&c().parenthesizeExpressionForDisallowedComma(P)}function x7(P){return typeof P=="number"?ke(P):P}function rT(P){return P&&G3e(P)?qt(a(m1(),P),P):P}function $b(P){return typeof P=="string"||P&&!Oo(P)?o2(P,void 0,void 0,void 0):P}function yi(P,q){return P!==q&&(a(P,q),qt(P,q)),P}}function vge(t){switch(t){case 345:return"type";case 343:return"returns";case 344:return"this";case 341:return"enum";case 331:return"author";case 333:return"class";case 334:return"public";case 335:return"private";case 336:return"protected";case 337:return"readonly";case 338:return"override";case 346:return"template";case 347:return"typedef";case 342:return"param";case 349:return"prop";case 339:return"callback";case 340:return"overload";case 329:return"augments";case 330:return"implements";case 352:return"import";default:return $.fail(`Unsupported kind: ${$.formatSyntaxKind(t)}`)}}var gE,Clt={};function xnr(t,n){switch(gE||(gE=B1(99,!1,0)),t){case 15:gE.setText("`"+n+"`");break;case 16:gE.setText("`"+n+"${");break;case 17:gE.setText("}"+n+"${");break;case 18:gE.setText("}"+n+"`");break}let a=gE.scan();if(a===20&&(a=gE.reScanTemplateToken(!1)),gE.isUnterminated())return gE.setText(void 0),Clt;let c;switch(a){case 15:case 16:case 17:case 18:c=gE.getTokenValue();break}return c===void 0||gE.scan()!==1?(gE.setText(void 0),Clt):(gE.setText(void 0),c)}function hC(t){return t&&ct(t)?PH(t):zi(t)}function PH(t){return zi(t)&-67108865}function Tnr(t,n){return n|t.transformFlags&134234112}function zi(t){if(!t)return 0;let n=t.transformFlags&~Enr(t.kind);return Vp(t)&&q_(t.name)?Tnr(t.name,n):n}function al(t){return t?t.transformFlags:0}function Dlt(t){let n=0;for(let a of t)n|=zi(a);t.transformFlags=n}function Enr(t){if(t>=183&&t<=206)return-2;switch(t){case 214:case 215:case 210:return-2147450880;case 268:return-1941676032;case 170:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112;case 207:case 208:return-2147450880;case 217:case 239:case 235:case 356:case 218:case 108:return-2147483648;case 212:case 213:return-2147483648;default:return-2147483648}}var Pne=d3e();function Nne(t){return t.flags|=16,t}var knr={createBaseSourceFileNode:t=>Nne(Pne.createBaseSourceFileNode(t)),createBaseIdentifierNode:t=>Nne(Pne.createBaseIdentifierNode(t)),createBasePrivateIdentifierNode:t=>Nne(Pne.createBasePrivateIdentifierNode(t)),createBaseTokenNode:t=>Nne(Pne.createBaseTokenNode(t)),createBaseNode:t=>Nne(Pne.createBaseNode(t))},W=IH(4,knr),Alt;function wlt(t,n,a){return new(Alt||(Alt=Uf.getSourceMapSourceConstructor()))(t,n,a)}function Yi(t,n){if(t.original!==n&&(t.original=n,n)){let a=n.emitNode;a&&(t.emitNode=Cnr(a,t.emitNode))}return t}function Cnr(t,n){let{flags:a,internalFlags:c,leadingComments:u,trailingComments:_,commentRange:f,sourceMapRange:y,tokenSourceMapRanges:g,constantValue:k,helpers:T,startsOnNewLine:C,snippetElement:O,classThis:F,assignedName:M}=t;if(n||(n={}),a&&(n.flags=a),c&&(n.internalFlags=c&-9),u&&(n.leadingComments=En(u.slice(),n.leadingComments)),_&&(n.trailingComments=En(_.slice(),n.trailingComments)),f&&(n.commentRange=f),y&&(n.sourceMapRange=y),g&&(n.tokenSourceMapRanges=Dnr(g,n.tokenSourceMapRanges)),k!==void 0&&(n.constantValue=k),T)for(let U of T)n.helpers=Jl(n.helpers,U);return C!==void 0&&(n.startsOnNewLine=C),O!==void 0&&(n.snippetElement=O),F&&(n.classThis=F),M&&(n.assignedName=M),n}function Dnr(t,n){n||(n=[]);for(let a in t)n[a]=t[a];return n}function nm(t){if(t.emitNode)$.assert(!(t.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(I4(t)){if(t.kind===308)return t.emitNode={annotatedNodes:[t]};let n=Pn(vs(Pn(t)))??$.fail("Could not determine parsed source file.");nm(n).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function Sge(t){var n,a;let c=(a=(n=Pn(vs(t)))==null?void 0:n.emitNode)==null?void 0:a.annotatedNodes;if(c)for(let u of c)u.emitNode=void 0}function NH(t){let n=nm(t);return n.flags|=3072,n.leadingComments=void 0,n.trailingComments=void 0,t}function Ai(t,n){return nm(t).flags=n,t}function CS(t,n){let a=nm(t);return a.flags=a.flags|n,t}function OH(t,n){return nm(t).internalFlags=n,t}function e3(t,n){let a=nm(t);return a.internalFlags=a.internalFlags|n,t}function yE(t){var n;return((n=t.emitNode)==null?void 0:n.sourceMapRange)??t}function Jc(t,n){return nm(t).sourceMapRange=n,t}function Ilt(t,n){var a,c;return(c=(a=t.emitNode)==null?void 0:a.tokenSourceMapRanges)==null?void 0:c[n]}function v3e(t,n,a){let c=nm(t),u=c.tokenSourceMapRanges??(c.tokenSourceMapRanges=[]);return u[n]=a,t}function rz(t){var n;return(n=t.emitNode)==null?void 0:n.startsOnNewLine}function One(t,n){return nm(t).startsOnNewLine=n,t}function DS(t){var n;return((n=t.emitNode)==null?void 0:n.commentRange)??t}function Y_(t,n){return nm(t).commentRange=n,t}function _L(t){var n;return(n=t.emitNode)==null?void 0:n.leadingComments}function SA(t,n){return nm(t).leadingComments=n,t}function gC(t,n,a,c){return SA(t,jt(_L(t),{kind:n,pos:-1,end:-1,hasTrailingNewLine:c,text:a}))}function FH(t){var n;return(n=t.emitNode)==null?void 0:n.trailingComments}function uF(t,n){return nm(t).trailingComments=n,t}function nz(t,n,a,c){return uF(t,jt(FH(t),{kind:n,pos:-1,end:-1,hasTrailingNewLine:c,text:a}))}function S3e(t,n){SA(t,_L(n)),uF(t,FH(n));let a=nm(n);return a.leadingComments=void 0,a.trailingComments=void 0,t}function b3e(t){var n;return(n=t.emitNode)==null?void 0:n.constantValue}function x3e(t,n){let a=nm(t);return a.constantValue=n,t}function pF(t,n){let a=nm(t);return a.helpers=jt(a.helpers,n),t}function Ux(t,n){if(Pt(n)){let a=nm(t);for(let c of n)a.helpers=Jl(a.helpers,c)}return t}function Plt(t,n){var a;let c=(a=t.emitNode)==null?void 0:a.helpers;return c?IT(c,n):!1}function bge(t){var n;return(n=t.emitNode)==null?void 0:n.helpers}function T3e(t,n,a){let c=t.emitNode,u=c&&c.helpers;if(!Pt(u))return;let _=nm(n),f=0;for(let y=0;y0&&(u[y-f]=g)}f>0&&(u.length-=f)}function xge(t){var n;return(n=t.emitNode)==null?void 0:n.snippetElement}function Tge(t,n){let a=nm(t);return a.snippetElement=n,t}function Ege(t){return nm(t).internalFlags|=4,t}function E3e(t,n){let a=nm(t);return a.typeNode=n,t}function k3e(t){var n;return(n=t.emitNode)==null?void 0:n.typeNode}function vE(t,n){return nm(t).identifierTypeArguments=n,t}function t3(t){var n;return(n=t.emitNode)==null?void 0:n.identifierTypeArguments}function RH(t,n){return nm(t).autoGenerate=n,t}function Nlt(t){var n;return(n=t.emitNode)==null?void 0:n.autoGenerate}function C3e(t,n){return nm(t).generatedImportReference=n,t}function D3e(t){var n;return(n=t.emitNode)==null?void 0:n.generatedImportReference}var A3e=(t=>(t.Field="f",t.Method="m",t.Accessor="a",t))(A3e||{});function w3e(t){let n=t.factory,a=Ef(()=>OH(n.createTrue(),8)),c=Ef(()=>OH(n.createFalse(),8));return{getUnscopedHelperName:u,createDecorateHelper:_,createMetadataHelper:f,createParamHelper:y,createESDecorateHelper:U,createRunInitializersHelper:J,createAssignHelper:G,createAwaitHelper:Z,createAsyncGeneratorHelper:Q,createAsyncDelegatorHelper:re,createAsyncValuesHelper:ae,createRestHelper:_e,createAwaiterHelper:me,createExtendsHelper:le,createTemplateObjectHelper:Oe,createSpreadArrayHelper:be,createPropKeyHelper:ue,createSetFunctionNameHelper:De,createValuesHelper:Ce,createReadHelper:Ae,createGeneratorHelper:Fe,createImportStarHelper:Be,createImportStarCallbackHelper:de,createImportDefaultHelper:ze,createExportStarHelper:ut,createClassPrivateFieldGetHelper:je,createClassPrivateFieldSetHelper:ve,createClassPrivateFieldInHelper:Le,createAddDisposableResourceHelper:Ve,createDisposeResourcesHelper:nt,createRewriteRelativeImportExtensionsHelper:It};function u(ke){return Ai(n.createIdentifier(ke),8196)}function _(ke,_t,Se,tt){t.requestEmitHelper(Anr);let Qe=[];return Qe.push(n.createArrayLiteralExpression(ke,!0)),Qe.push(_t),Se&&(Qe.push(Se),tt&&Qe.push(tt)),n.createCallExpression(u("__decorate"),void 0,Qe)}function f(ke,_t){return t.requestEmitHelper(wnr),n.createCallExpression(u("__metadata"),void 0,[n.createStringLiteral(ke),_t])}function y(ke,_t,Se){return t.requestEmitHelper(Inr),qt(n.createCallExpression(u("__param"),void 0,[n.createNumericLiteral(_t+""),ke]),Se)}function g(ke){let _t=[n.createPropertyAssignment(n.createIdentifier("kind"),n.createStringLiteral("class")),n.createPropertyAssignment(n.createIdentifier("name"),ke.name),n.createPropertyAssignment(n.createIdentifier("metadata"),ke.metadata)];return n.createObjectLiteralExpression(_t)}function k(ke){let _t=ke.computed?n.createElementAccessExpression(n.createIdentifier("obj"),ke.name):n.createPropertyAccessExpression(n.createIdentifier("obj"),ke.name);return n.createPropertyAssignment("get",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj"))],void 0,void 0,_t))}function T(ke){let _t=ke.computed?n.createElementAccessExpression(n.createIdentifier("obj"),ke.name):n.createPropertyAccessExpression(n.createIdentifier("obj"),ke.name);return n.createPropertyAssignment("set",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj")),n.createParameterDeclaration(void 0,void 0,n.createIdentifier("value"))],void 0,void 0,n.createBlock([n.createExpressionStatement(n.createAssignment(_t,n.createIdentifier("value")))])))}function C(ke){let _t=ke.computed?ke.name:ct(ke.name)?n.createStringLiteralFromNode(ke.name):ke.name;return n.createPropertyAssignment("has",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj"))],void 0,void 0,n.createBinaryExpression(_t,103,n.createIdentifier("obj"))))}function O(ke,_t){let Se=[];return Se.push(C(ke)),_t.get&&Se.push(k(ke)),_t.set&&Se.push(T(ke)),n.createObjectLiteralExpression(Se)}function F(ke){let _t=[n.createPropertyAssignment(n.createIdentifier("kind"),n.createStringLiteral(ke.kind)),n.createPropertyAssignment(n.createIdentifier("name"),ke.name.computed?ke.name.name:n.createStringLiteralFromNode(ke.name.name)),n.createPropertyAssignment(n.createIdentifier("static"),ke.static?n.createTrue():n.createFalse()),n.createPropertyAssignment(n.createIdentifier("private"),ke.private?n.createTrue():n.createFalse()),n.createPropertyAssignment(n.createIdentifier("access"),O(ke.name,ke.access)),n.createPropertyAssignment(n.createIdentifier("metadata"),ke.metadata)];return n.createObjectLiteralExpression(_t)}function M(ke){return ke.kind==="class"?g(ke):F(ke)}function U(ke,_t,Se,tt,Qe,We){return t.requestEmitHelper(Pnr),n.createCallExpression(u("__esDecorate"),void 0,[ke??n.createNull(),_t??n.createNull(),Se,M(tt),Qe,We])}function J(ke,_t,Se){return t.requestEmitHelper(Nnr),n.createCallExpression(u("__runInitializers"),void 0,Se?[ke,_t,Se]:[ke,_t])}function G(ke){return $c(t.getCompilerOptions())>=2?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"assign"),void 0,ke):(t.requestEmitHelper(Onr),n.createCallExpression(u("__assign"),void 0,ke))}function Z(ke){return t.requestEmitHelper(Fne),n.createCallExpression(u("__await"),void 0,[ke])}function Q(ke,_t){return t.requestEmitHelper(Fne),t.requestEmitHelper(Fnr),(ke.emitNode||(ke.emitNode={})).flags|=1572864,n.createCallExpression(u("__asyncGenerator"),void 0,[_t?n.createThis():n.createVoidZero(),n.createIdentifier("arguments"),ke])}function re(ke){return t.requestEmitHelper(Fne),t.requestEmitHelper(Rnr),n.createCallExpression(u("__asyncDelegator"),void 0,[ke])}function ae(ke){return t.requestEmitHelper(Lnr),n.createCallExpression(u("__asyncValues"),void 0,[ke])}function _e(ke,_t,Se,tt){t.requestEmitHelper(Mnr);let Qe=[],We=0;for(let St=0;St<_t.length-1;St++){let Kt=Xge(_t[St]);if(Kt)if(dc(Kt)){$.assertIsDefined(Se,"Encountered computed property name but 'computedTempVariables' argument was not provided.");let Sr=Se[We];We++,Qe.push(n.createConditionalExpression(n.createTypeCheck(Sr,"symbol"),void 0,Sr,void 0,n.createAdd(Sr,n.createStringLiteral(""))))}else Qe.push(n.createStringLiteralFromNode(Kt))}return n.createCallExpression(u("__rest"),void 0,[ke,qt(n.createArrayLiteralExpression(Qe),tt)])}function me(ke,_t,Se,tt,Qe){t.requestEmitHelper(jnr);let We=n.createFunctionExpression(void 0,n.createToken(42),void 0,void 0,tt??[],void 0,Qe);return(We.emitNode||(We.emitNode={})).flags|=1572864,n.createCallExpression(u("__awaiter"),void 0,[ke?n.createThis():n.createVoidZero(),_t??n.createVoidZero(),Se?JH(n,Se):n.createVoidZero(),We])}function le(ke){return t.requestEmitHelper(Bnr),n.createCallExpression(u("__extends"),void 0,[ke,n.createUniqueName("_super",48)])}function Oe(ke,_t){return t.requestEmitHelper($nr),n.createCallExpression(u("__makeTemplateObject"),void 0,[ke,_t])}function be(ke,_t,Se){return t.requestEmitHelper(znr),n.createCallExpression(u("__spreadArray"),void 0,[ke,_t,Se?a():c()])}function ue(ke){return t.requestEmitHelper(qnr),n.createCallExpression(u("__propKey"),void 0,[ke])}function De(ke,_t,Se){return t.requestEmitHelper(Jnr),t.factory.createCallExpression(u("__setFunctionName"),void 0,Se?[ke,_t,t.factory.createStringLiteral(Se)]:[ke,_t])}function Ce(ke){return t.requestEmitHelper(Vnr),n.createCallExpression(u("__values"),void 0,[ke])}function Ae(ke,_t){return t.requestEmitHelper(Unr),n.createCallExpression(u("__read"),void 0,_t!==void 0?[ke,n.createNumericLiteral(_t+"")]:[ke])}function Fe(ke){return t.requestEmitHelper(Wnr),n.createCallExpression(u("__generator"),void 0,[n.createThis(),ke])}function Be(ke){return t.requestEmitHelper(Flt),n.createCallExpression(u("__importStar"),void 0,[ke])}function de(){return t.requestEmitHelper(Flt),u("__importStar")}function ze(ke){return t.requestEmitHelper(Hnr),n.createCallExpression(u("__importDefault"),void 0,[ke])}function ut(ke,_t=n.createIdentifier("exports")){return t.requestEmitHelper(Knr),t.requestEmitHelper(P3e),n.createCallExpression(u("__exportStar"),void 0,[ke,_t])}function je(ke,_t,Se,tt){t.requestEmitHelper(Qnr);let Qe;return tt?Qe=[ke,_t,n.createStringLiteral(Se),tt]:Qe=[ke,_t,n.createStringLiteral(Se)],n.createCallExpression(u("__classPrivateFieldGet"),void 0,Qe)}function ve(ke,_t,Se,tt,Qe){t.requestEmitHelper(Znr);let We;return Qe?We=[ke,_t,Se,n.createStringLiteral(tt),Qe]:We=[ke,_t,Se,n.createStringLiteral(tt)],n.createCallExpression(u("__classPrivateFieldSet"),void 0,We)}function Le(ke,_t){return t.requestEmitHelper(Xnr),n.createCallExpression(u("__classPrivateFieldIn"),void 0,[ke,_t])}function Ve(ke,_t,Se){return t.requestEmitHelper(Ynr),n.createCallExpression(u("__addDisposableResource"),void 0,[ke,_t,Se?n.createTrue():n.createFalse()])}function nt(ke){return t.requestEmitHelper(eir),n.createCallExpression(u("__disposeResources"),void 0,[ke])}function It(ke){return t.requestEmitHelper(tir),n.createCallExpression(u("__rewriteRelativeImportExtension"),void 0,t.getCompilerOptions().jsx===1?[ke,n.createTrue()]:[ke])}}function I3e(t,n){return t===n||t.priority===n.priority?0:t.priority===void 0?1:n.priority===void 0?-1:Br(t.priority,n.priority)}function Olt(t,...n){return a=>{let c="";for(let u=0;u= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + };`},wnr={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:` + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + };`},Inr={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:` + var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + };`},Pnr={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:` + var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; + };`},Nnr={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:` + var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; + };`},Onr={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:` + var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); + };`},Fne={name:"typescript:await",importName:"__await",scoped:!1,text:` + var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},Fnr={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[Fne],text:` + var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + };`},Rnr={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[Fne],text:` + var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } + };`},Lnr={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:` + var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + };`},Mnr={name:"typescript:rest",importName:"__rest",scoped:!1,text:` + var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + };`},jnr={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:` + var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + };`},Bnr={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` + var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + })();`},$nr={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:` + var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + };`},Unr={name:"typescript:read",importName:"__read",scoped:!1,text:` + var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + };`},znr={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:` + var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + };`},qnr={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` + var __propKey = (this && this.__propKey) || function (x) { + return typeof x === "symbol" ? x : "".concat(x); + };`},Jnr={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:` + var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { + if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; + return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); + };`},Vnr={name:"typescript:values",importName:"__values",scoped:!1,text:` + var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + };`},Wnr={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` + var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); + return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + };`},P3e={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` + var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }));`},Gnr={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:` + var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + });`},Flt={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[P3e,Gnr],priority:2,text:` + var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; + })();`},Hnr={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` + var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + };`},Knr={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[P3e],priority:2,text:` + var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); + };`},Qnr={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` + var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + };`},Znr={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:` + var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; + };`},Xnr={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:` + var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) { + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + };`},Ynr={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:` + var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose, inner; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + if (async) inner = dispose; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; + };`},eir={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` + var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { + return function (env) { + function fail(e) { + env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + var r, s = 0; + function next() { + while (r = env.stack.pop()) { + try { + if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); + if (r.dispose) { + var result = r.dispose.call(r.value); + if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + else s |= 1; + } + catch (e) { + fail(e); + } + } + if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); + if (env.hasError) throw env.error; + } + return next(); + }; + })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; + });`},tir={name:"typescript:rewriteRelativeImportExtensions",importName:"__rewriteRelativeImportExtension",scoped:!1,text:` + var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) { + if (typeof path === "string" && /^\\.\\.?\\//.test(path)) { + return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { + return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js"); + }); + } + return path; + };`},Rne={name:"typescript:async-super",scoped:!0,text:Olt` + const ${"_superIndex"} = name => super[name];`},Lne={name:"typescript:advanced-async-super",scoped:!0,text:Olt` + const ${"_superIndex"} = (function (geti, seti) { + const cache = Object.create(null); + return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); + })(name => super[name], (name, value) => super[name] = value);`};function iz(t,n){return Js(t)&&ct(t.expression)&&(Xc(t.expression)&8192)!==0&&t.expression.escapedText===n}function qh(t){return t.kind===9}function dL(t){return t.kind===10}function Ic(t){return t.kind===11}function _F(t){return t.kind===12}function kge(t){return t.kind===14}function r3(t){return t.kind===15}function dF(t){return t.kind===16}function Cge(t){return t.kind===17}function Mne(t){return t.kind===18}function jne(t){return t.kind===26}function N3e(t){return t.kind===28}function Dge(t){return t.kind===40}function Age(t){return t.kind===41}function LH(t){return t.kind===42}function MH(t){return t.kind===54}function yC(t){return t.kind===58}function O3e(t){return t.kind===59}function Bne(t){return t.kind===29}function F3e(t){return t.kind===39}function ct(t){return t.kind===80}function Aa(t){return t.kind===81}function fF(t){return t.kind===95}function $ne(t){return t.kind===90}function oz(t){return t.kind===134}function R3e(t){return t.kind===131}function wge(t){return t.kind===135}function L3e(t){return t.kind===148}function mF(t){return t.kind===126}function M3e(t){return t.kind===128}function j3e(t){return t.kind===164}function Ige(t){return t.kind===129}function az(t){return t.kind===108}function sz(t){return t.kind===102}function B3e(t){return t.kind===84}function dh(t){return t.kind===167}function dc(t){return t.kind===168}function Zu(t){return t.kind===169}function wa(t){return t.kind===170}function hd(t){return t.kind===171}function Zm(t){return t.kind===172}function ps(t){return t.kind===173}function G1(t){return t.kind===174}function Ep(t){return t.kind===175}function n_(t){return t.kind===176}function kp(t){return t.kind===177}function T0(t){return t.kind===178}function mg(t){return t.kind===179}function hF(t){return t.kind===180}function cz(t){return t.kind===181}function vC(t){return t.kind===182}function gF(t){return t.kind===183}function Ug(t){return t.kind===184}function Cb(t){return t.kind===185}function fL(t){return t.kind===186}function gP(t){return t.kind===187}function fh(t){return t.kind===188}function jH(t){return t.kind===189}function yF(t){return t.kind===190}function mL(t){return t.kind===203}function Une(t){return t.kind===191}function zne(t){return t.kind===192}function SE(t){return t.kind===193}function vF(t){return t.kind===194}function yP(t){return t.kind===195}function n3(t){return t.kind===196}function i3(t){return t.kind===197}function lz(t){return t.kind===198}function bA(t){return t.kind===199}function vP(t){return t.kind===200}function o3(t){return t.kind===201}function bE(t){return t.kind===202}function AS(t){return t.kind===206}function Pge(t){return t.kind===205}function $3e(t){return t.kind===204}function $y(t){return t.kind===207}function xE(t){return t.kind===208}function Vc(t){return t.kind===209}function qf(t){return t.kind===210}function Lc(t){return t.kind===211}function no(t){return t.kind===212}function mu(t){return t.kind===213}function Js(t){return t.kind===214}function SP(t){return t.kind===215}function xA(t){return t.kind===216}function qne(t){return t.kind===217}function mh(t){return t.kind===218}function bu(t){return t.kind===219}function Iu(t){return t.kind===220}function U3e(t){return t.kind===221}function hL(t){return t.kind===222}function SF(t){return t.kind===223}function SC(t){return t.kind===224}function TA(t){return t.kind===225}function Nge(t){return t.kind===226}function wi(t){return t.kind===227}function a3(t){return t.kind===228}function Jne(t){return t.kind===229}function BH(t){return t.kind===230}function E0(t){return t.kind===231}function w_(t){return t.kind===232}function Id(t){return t.kind===233}function VT(t){return t.kind===234}function gL(t){return t.kind===235}function yL(t){return t.kind===239}function bF(t){return t.kind===236}function s3(t){return t.kind===237}function Rlt(t){return t.kind===238}function z3e(t){return t.kind===356}function uz(t){return t.kind===357}function vL(t){return t.kind===240}function q3e(t){return t.kind===241}function Vs(t){return t.kind===242}function h_(t){return t.kind===244}function Oge(t){return t.kind===243}function af(t){return t.kind===245}function EA(t){return t.kind===246}function Llt(t){return t.kind===247}function Fge(t){return t.kind===248}function kA(t){return t.kind===249}function Vne(t){return t.kind===250}function $H(t){return t.kind===251}function Mlt(t){return t.kind===252}function jlt(t){return t.kind===253}function gy(t){return t.kind===254}function J3e(t){return t.kind===255}function pz(t){return t.kind===256}function bC(t){return t.kind===257}function Rge(t){return t.kind===258}function c3(t){return t.kind===259}function Blt(t){return t.kind===260}function Oo(t){return t.kind===261}function Df(t){return t.kind===262}function i_(t){return t.kind===263}function ed(t){return t.kind===264}function Af(t){return t.kind===265}function s1(t){return t.kind===266}function CA(t){return t.kind===267}function I_(t){return t.kind===268}function wS(t){return t.kind===269}function _z(t){return t.kind===270}function UH(t){return t.kind===271}function gd(t){return t.kind===272}function fp(t){return t.kind===273}function H1(t){return t.kind===274}function $lt(t){return t.kind===303}function V3e(t){return t.kind===301}function Ult(t){return t.kind===302}function l3(t){return t.kind===301}function W3e(t){return t.kind===302}function zx(t){return t.kind===275}function Db(t){return t.kind===281}function IS(t){return t.kind===276}function Xm(t){return t.kind===277}function Xu(t){return t.kind===278}function P_(t){return t.kind===279}function k0(t){return t.kind===280}function Cm(t){return t.kind===282}function Wne(t){return t.kind===80||t.kind===11}function zlt(t){return t.kind===283}function G3e(t){return t.kind===354}function xF(t){return t.kind===358}function WT(t){return t.kind===284}function PS(t){return t.kind===285}function u3(t){return t.kind===286}function Tv(t){return t.kind===287}function bP(t){return t.kind===288}function DA(t){return t.kind===289}function K1(t){return t.kind===290}function H3e(t){return t.kind===291}function NS(t){return t.kind===292}function xP(t){return t.kind===293}function TF(t){return t.kind===294}function SL(t){return t.kind===295}function Ev(t){return t.kind===296}function bL(t){return t.kind===297}function dz(t){return t.kind===298}function zg(t){return t.kind===299}function TP(t){return t.kind===300}function td(t){return t.kind===304}function im(t){return t.kind===305}function qx(t){return t.kind===306}function GT(t){return t.kind===307}function Ta(t){return t.kind===308}function K3e(t){return t.kind===309}function AA(t){return t.kind===310}function fz(t){return t.kind===311}function wA(t){return t.kind===312}function Q3e(t){return t.kind===325}function Z3e(t){return t.kind===326}function qlt(t){return t.kind===327}function X3e(t){return t.kind===313}function Y3e(t){return t.kind===314}function xL(t){return t.kind===315}function Gne(t){return t.kind===316}function Lge(t){return t.kind===317}function TL(t){return t.kind===318}function Hne(t){return t.kind===319}function Jlt(t){return t.kind===320}function kv(t){return t.kind===321}function p3(t){return t.kind===323}function TE(t){return t.kind===324}function EF(t){return t.kind===329}function Vlt(t){return t.kind===331}function eNe(t){return t.kind===333}function Mge(t){return t.kind===339}function jge(t){return t.kind===334}function Bge(t){return t.kind===335}function $ge(t){return t.kind===336}function Uge(t){return t.kind===337}function Kne(t){return t.kind===338}function EL(t){return t.kind===340}function zge(t){return t.kind===332}function Wlt(t){return t.kind===348}function zH(t){return t.kind===341}function Uy(t){return t.kind===342}function Qne(t){return t.kind===343}function qge(t){return t.kind===344}function mz(t){return t.kind===345}function c1(t){return t.kind===346}function _3(t){return t.kind===347}function Glt(t){return t.kind===328}function tNe(t){return t.kind===349}function Zne(t){return t.kind===330}function Xne(t){return t.kind===351}function Hlt(t){return t.kind===350}function OS(t){return t.kind===352}function kL(t){return t.kind===353}var hz=new WeakMap;function Jge(t,n){var a;let c=t.kind;return Ute(c)?c===353?t._children:(a=hz.get(n))==null?void 0:a.get(t):j}function rNe(t,n,a){t.kind===353&&$.fail("Should not need to re-set the children of a SyntaxList.");let c=hz.get(n);return c===void 0&&(c=new WeakMap,hz.set(n,c)),c.set(t,a),a}function Vge(t,n){var a;t.kind===353&&$.fail("Did not expect to unset the children of a SyntaxList."),(a=hz.get(n))==null||a.delete(t)}function nNe(t,n){let a=hz.get(t);a!==void 0&&(hz.delete(t),hz.set(n,a))}function qH(t){return t.createExportDeclaration(void 0,!1,t.createNamedExports([]),void 0)}function d3(t,n,a,c){if(dc(a))return qt(t.createElementAccessExpression(n,a.expression),c);{let u=qt(Dx(a)?t.createPropertyAccessExpression(n,a):t.createElementAccessExpression(n,a),a);return CS(u,128),u}}function iNe(t,n){let a=PA.createIdentifier(t||"React");return xl(a,vs(n)),a}function oNe(t,n,a){if(dh(n)){let c=oNe(t,n.left,a),u=t.createIdentifier(Zi(n.right));return u.escapedText=n.right.escapedText,t.createPropertyAccessExpression(c,u)}else return iNe(Zi(n),a)}function Wge(t,n,a,c){return n?oNe(t,n,c):t.createPropertyAccessExpression(iNe(a,c),"createElement")}function rir(t,n,a,c){return n?oNe(t,n,c):t.createPropertyAccessExpression(iNe(a,c),"Fragment")}function aNe(t,n,a,c,u,_){let f=[a];if(c&&f.push(c),u&&u.length>0)if(c||f.push(t.createNull()),u.length>1)for(let y of u)Dm(y),f.push(y);else f.push(u[0]);return qt(t.createCallExpression(n,void 0,f),_)}function sNe(t,n,a,c,u,_,f){let g=[rir(t,a,c,_),t.createNull()];if(u&&u.length>0)if(u.length>1)for(let k of u)Dm(k),g.push(k);else g.push(u[0]);return qt(t.createCallExpression(Wge(t,n,c,_),void 0,g),f)}function Gge(t,n,a){if(Df(n)){let c=To(n.declarations),u=t.updateVariableDeclaration(c,c.name,void 0,void 0,a);return qt(t.createVariableStatement(void 0,t.updateVariableDeclarationList(n,[u])),n)}else{let c=qt(t.createAssignment(n,a),n);return qt(t.createExpressionStatement(c),n)}}function JH(t,n){if(dh(n)){let a=JH(t,n.left),c=xl(qt(t.cloneNode(n.right),n.right),n.right.parent);return qt(t.createPropertyAccessExpression(a,c),n)}else return xl(qt(t.cloneNode(n),n),n.parent)}function Hge(t,n){return ct(n)?t.createStringLiteralFromNode(n):dc(n)?xl(qt(t.cloneNode(n.expression),n.expression),n.expression.parent):xl(qt(t.cloneNode(n),n),n.parent)}function nir(t,n,a,c,u){let{firstAccessor:_,getAccessor:f,setAccessor:y}=uP(n,a);if(a===_)return qt(t.createObjectDefinePropertyCall(c,Hge(t,a.name),t.createPropertyDescriptor({enumerable:t.createFalse(),configurable:!0,get:f&&qt(Yi(t.createFunctionExpression(Qk(f),void 0,void 0,void 0,f.parameters,void 0,f.body),f),f),set:y&&qt(Yi(t.createFunctionExpression(Qk(y),void 0,void 0,void 0,y.parameters,void 0,y.body),y),y)},!u)),_)}function iir(t,n,a){return Yi(qt(t.createAssignment(d3(t,a,n.name,n.name),n.initializer),n),n)}function oir(t,n,a){return Yi(qt(t.createAssignment(d3(t,a,n.name,n.name),t.cloneNode(n.name)),n),n)}function air(t,n,a){return Yi(qt(t.createAssignment(d3(t,a,n.name,n.name),Yi(qt(t.createFunctionExpression(Qk(n),n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n)}function cNe(t,n,a,c){switch(a.name&&Aa(a.name)&&$.failBadSyntaxKind(a.name,"Private identifiers are not allowed in object literals."),a.kind){case 178:case 179:return nir(t,n.properties,a,c,!!n.multiLine);case 304:return iir(t,a,c);case 305:return oir(t,a,c);case 175:return air(t,a,c)}}function Yne(t,n,a,c,u){let _=n.operator;$.assert(_===46||_===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let f=t.createTempVariable(c);a=t.createAssignment(f,a),qt(a,n.operand);let y=TA(n)?t.createPrefixUnaryExpression(_,f):t.createPostfixUnaryExpression(f,_);return qt(y,n),u&&(y=t.createAssignment(u,y),qt(y,n)),a=t.createComma(a,y),qt(a,n),Nge(n)&&(a=t.createComma(a,f),qt(a,n)),a}function Kge(t){return(Xc(t)&65536)!==0}function HT(t){return(Xc(t)&32768)!==0}function eie(t){return(Xc(t)&16384)!==0}function Klt(t){return Ic(t.expression)&&t.expression.text==="use strict"}function Qge(t){for(let n of t)if(yS(n)){if(Klt(n))return n}else break}function lNe(t){let n=pi(t);return n!==void 0&&yS(n)&&Klt(n)}function VH(t){return t.kind===227&&t.operatorToken.kind===28}function gz(t){return VH(t)||uz(t)}function EP(t){return mh(t)&&Ei(t)&&!!mv(t)}function CL(t){let n=hv(t);return $.assertIsDefined(n),n}function tie(t,n=63){switch(t.kind){case 218:return n&-2147483648&&EP(t)?!1:(n&1)!==0;case 217:case 235:return(n&2)!==0;case 239:return(n&34)!==0;case 234:return(n&16)!==0;case 236:return(n&4)!==0;case 356:return(n&8)!==0}return!1}function Wp(t,n=63){for(;tie(t,n);)t=t.expression;return t}function uNe(t,n=63){let a=t.parent;for(;tie(a,n);)a=a.parent,$.assert(a);return a}function Dm(t){return One(t,!0)}function WH(t){let n=Ku(t,Ta),a=n&&n.emitNode;return a&&a.externalHelpersModuleName}function pNe(t){let n=Ku(t,Ta),a=n&&n.emitNode;return!!a&&(!!a.externalHelpersModuleName||!!a.externalHelpers)}function Zge(t,n,a,c,u,_,f){if(c.importHelpers&&$R(a,c)){let y=Km(c),g=b3(a,c),k=sir(a);if(g!==1&&(y>=5&&y<=99||g===99||g===void 0&&y===200)){if(k){let T=[];for(let C of k){let O=C.importName;O&&Zc(T,O)}if(Pt(T)){T.sort(Su);let C=t.createNamedImports(Cr(T,U=>ire(a,U)?t.createImportSpecifier(!1,void 0,t.createIdentifier(U)):t.createImportSpecifier(!1,t.createIdentifier(U),n.getUnscopedHelperName(U)))),O=Ku(a,Ta),F=nm(O);F.externalHelpers=!0;let M=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,C),t.createStringLiteral(nC),void 0);return e3(M,2),M}}}else{let T=cir(t,a,c,k,u,_||f);if(T){let C=t.createImportEqualsDeclaration(void 0,!1,T,t.createExternalModuleReference(t.createStringLiteral(nC)));return e3(C,2),C}}}}function sir(t){return yr(bge(t),n=>!n.scoped)}function cir(t,n,a,c,u,_){let f=WH(n);if(f)return f;if(Pt(c)||(u||kS(a)&&_)&&zz(n,a)<4){let g=Ku(n,Ta),k=nm(g);return k.externalHelpersModuleName||(k.externalHelpersModuleName=t.createUniqueName(nC))}}function DL(t,n,a){let c=HR(n);if(c&&!W4(n)&&!are(n)){let u=c.name;return u.kind===11?t.getGeneratedNameForNode(n):ap(u)?u:t.createIdentifier(XI(a,u)||Zi(u))}if(n.kind===273&&n.importClause||n.kind===279&&n.moduleSpecifier)return t.getGeneratedNameForNode(n)}function kF(t,n,a,c,u,_){let f=JO(n);if(f&&Ic(f))return uir(n,c,t,u,_)||lir(t,f,a)||t.cloneNode(f)}function lir(t,n,a){let c=a.renamedDependencies&&a.renamedDependencies.get(n.text);return c?t.createStringLiteral(c):void 0}function GH(t,n,a,c){if(n){if(n.moduleName)return t.createStringLiteral(n.moduleName);if(!n.isDeclarationFile&&c.outFile)return t.createStringLiteral(_he(a,n.fileName))}}function uir(t,n,a,c,u){return GH(a,c.getExternalModuleFileFromDeclaration(t),n,u)}function HH(t){if(cG(t))return t.initializer;if(td(t)){let n=t.initializer;return of(n,!0)?n.right:void 0}if(im(t))return t.objectAssignmentInitializer;if(of(t,!0))return t.right;if(E0(t))return HH(t.expression)}function xC(t){if(cG(t))return t.name;if(MT(t)){switch(t.kind){case 304:return xC(t.initializer);case 305:return t.name;case 306:return xC(t.expression)}return}return of(t,!0)?xC(t.left):E0(t)?xC(t.expression):t}function rie(t){switch(t.kind){case 170:case 209:return t.dotDotDotToken;case 231:case 306:return t}}function Xge(t){let n=nie(t);return $.assert(!!n||qx(t),"Invalid property name for binding element."),n}function nie(t){switch(t.kind){case 209:if(t.propertyName){let a=t.propertyName;return Aa(a)?$.failBadSyntaxKind(a):dc(a)&&Qlt(a.expression)?a.expression:a}break;case 304:if(t.name){let a=t.name;return Aa(a)?$.failBadSyntaxKind(a):dc(a)&&Qlt(a.expression)?a.expression:a}break;case 306:return t.name&&Aa(t.name)?$.failBadSyntaxKind(t.name):t.name}let n=xC(t);if(n&&q_(n))return n}function Qlt(t){let n=t.kind;return n===11||n===9}function AL(t){switch(t.kind){case 207:case 208:case 210:return t.elements;case 211:return t.properties}}function Yge(t){if(t){let n=t;for(;;){if(ct(n)||!n.body)return ct(n)?n:n.name;n=n.body}}}function Zlt(t){let n=t.kind;return n===177||n===179}function _Ne(t){let n=t.kind;return n===177||n===178||n===179}function eye(t){let n=t.kind;return n===304||n===305||n===263||n===177||n===182||n===176||n===283||n===244||n===265||n===266||n===267||n===268||n===272||n===273||n===271||n===279||n===278}function dNe(t){let n=t.kind;return n===176||n===304||n===305||n===283||n===271}function fNe(t){return yC(t)||MH(t)}function mNe(t){return ct(t)||lz(t)}function hNe(t){return L3e(t)||Dge(t)||Age(t)}function gNe(t){return yC(t)||Dge(t)||Age(t)}function yNe(t){return ct(t)||Ic(t)}function pir(t){return t===43}function _ir(t){return t===42||t===44||t===45}function dir(t){return pir(t)||_ir(t)}function fir(t){return t===40||t===41}function mir(t){return fir(t)||dir(t)}function hir(t){return t===48||t===49||t===50}function tye(t){return hir(t)||mir(t)}function gir(t){return t===30||t===33||t===32||t===34||t===104||t===103}function yir(t){return gir(t)||tye(t)}function vir(t){return t===35||t===37||t===36||t===38}function Sir(t){return vir(t)||yir(t)}function bir(t){return t===51||t===52||t===53}function xir(t){return bir(t)||Sir(t)}function Tir(t){return t===56||t===57}function Eir(t){return Tir(t)||xir(t)}function kir(t){return t===61||Eir(t)||zT(t)}function Cir(t){return kir(t)||t===28}function vNe(t){return Cir(t.kind)}var rye;(t=>{function n(T,C,O,F,M,U,J){let G=C>0?M[C-1]:void 0;return $.assertEqual(O[C],n),M[C]=T.onEnter(F[C],G,J),O[C]=y(T,n),C}t.enter=n;function a(T,C,O,F,M,U,J){$.assertEqual(O[C],a),$.assertIsDefined(T.onLeft),O[C]=y(T,a);let G=T.onLeft(F[C].left,M[C],F[C]);return G?(k(C,F,G),g(C,O,F,M,G)):C}t.left=a;function c(T,C,O,F,M,U,J){return $.assertEqual(O[C],c),$.assertIsDefined(T.onOperator),O[C]=y(T,c),T.onOperator(F[C].operatorToken,M[C],F[C]),C}t.operator=c;function u(T,C,O,F,M,U,J){$.assertEqual(O[C],u),$.assertIsDefined(T.onRight),O[C]=y(T,u);let G=T.onRight(F[C].right,M[C],F[C]);return G?(k(C,F,G),g(C,O,F,M,G)):C}t.right=u;function _(T,C,O,F,M,U,J){$.assertEqual(O[C],_),O[C]=y(T,_);let G=T.onExit(F[C],M[C]);if(C>0){if(C--,T.foldState){let Z=O[C]===_?"right":"left";M[C]=T.foldState(M[C],G,Z)}}else U.value=G;return C}t.exit=_;function f(T,C,O,F,M,U,J){return $.assertEqual(O[C],f),C}t.done=f;function y(T,C){switch(C){case n:if(T.onLeft)return a;case a:if(T.onOperator)return c;case c:if(T.onRight)return u;case u:return _;case _:return f;case f:return f;default:$.fail("Invalid state")}}t.nextState=y;function g(T,C,O,F,M){return T++,C[T]=n,O[T]=M,F[T]=void 0,T}function k(T,C,O){if($.shouldAssert(2))for(;T>=0;)$.assert(C[T]!==O,"Circular traversal detected."),T--}})(rye||(rye={}));var Dir=class{constructor(t,n,a,c,u,_){this.onEnter=t,this.onLeft=n,this.onOperator=a,this.onRight=c,this.onExit=u,this.foldState=_}};function iie(t,n,a,c,u,_){let f=new Dir(t,n,a,c,u,_);return y;function y(g,k){let T={value:void 0},C=[rye.enter],O=[g],F=[void 0],M=0;for(;C[M]!==rye.done;)M=C[M](f,M,C,O,F,T,k);return $.assertEqual(M,0),T.value}}function Air(t){return t===95||t===90}function KH(t){let n=t.kind;return Air(n)}function SNe(t,n){if(n!==void 0)return n.length===0?n:qt(t.createNodeArray([],n.hasTrailingComma),n)}function QH(t){var n;let a=t.emitNode.autoGenerate;if(a.flags&4){let c=a.id,u=t,_=u.original;for(;_;){u=_;let f=(n=u.emitNode)==null?void 0:n.autoGenerate;if(Dx(u)&&(f===void 0||f.flags&4&&f.id!==c))break;_=u.original}return u}return t}function wL(t,n){return typeof t=="object"?IA(!1,t.prefix,t.node,t.suffix,n):typeof t=="string"?t.length>0&&t.charCodeAt(0)===35?t.slice(1):t:""}function wir(t,n){return typeof t=="string"?t:Iir(t,$.checkDefined(n))}function Iir(t,n){return R4(t)?n(t).slice(1):ap(t)?n(t):Aa(t)?t.escapedText.slice(1):Zi(t)}function IA(t,n,a,c,u){return n=wL(n,u),c=wL(c,u),a=wir(a,u),`${t?"#":""}${n}${a}${c}`}function nye(t,n,a,c){return t.updatePropertyDeclaration(n,a,t.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage"),void 0,void 0,c)}function bNe(t,n,a,c,u=t.createThis()){return t.createGetAccessorDeclaration(a,c,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(u,t.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage")))]))}function xNe(t,n,a,c,u=t.createThis()){return t.createSetAccessorDeclaration(a,c,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(u,t.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage")),t.createIdentifier("value")))]))}function oie(t){let n=t.expression;for(;;){if(n=Wp(n),uz(n)){n=Sn(n.elements);continue}if(VH(n)){n=n.right;continue}if(of(n,!0)&&ap(n.left))return n;break}}function Pir(t){return mh(t)&&fu(t)&&!t.emitNode}function aie(t,n){if(Pir(t))aie(t.expression,n);else if(VH(t))aie(t.left,n),aie(t.right,n);else if(uz(t))for(let a of t.elements)aie(a,n);else n.push(t)}function TNe(t){let n=[];return aie(t,n),n}function ZH(t){if(t.transformFlags&65536)return!0;if(t.transformFlags&128)for(let n of AL(t)){let a=xC(n);if(a&&aU(a)&&(a.transformFlags&65536||a.transformFlags&128&&ZH(a)))return!0}return!1}function qt(t,n){return n?xv(t,n.pos,n.end):t}function l1(t){let n=t.kind;return n===169||n===170||n===172||n===173||n===174||n===175||n===177||n===178||n===179||n===182||n===186||n===219||n===220||n===232||n===244||n===263||n===264||n===265||n===266||n===267||n===268||n===272||n===273||n===278||n===279}function kP(t){let n=t.kind;return n===170||n===173||n===175||n===178||n===179||n===232||n===264}var Xlt,Ylt,eut,tut,rut,ENe={createBaseSourceFileNode:t=>new(rut||(rut=Uf.getSourceFileConstructor()))(t,-1,-1),createBaseIdentifierNode:t=>new(eut||(eut=Uf.getIdentifierConstructor()))(t,-1,-1),createBasePrivateIdentifierNode:t=>new(tut||(tut=Uf.getPrivateIdentifierConstructor()))(t,-1,-1),createBaseTokenNode:t=>new(Ylt||(Ylt=Uf.getTokenConstructor()))(t,-1,-1),createBaseNode:t=>new(Xlt||(Xlt=Uf.getNodeConstructor()))(t,-1,-1)},PA=IH(1,ENe);function zr(t,n){return n&&t(n)}function ba(t,n,a){if(a){if(n)return n(a);for(let c of a){let u=t(c);if(u)return u}}}function iye(t,n){return t.charCodeAt(n+1)===42&&t.charCodeAt(n+2)===42&&t.charCodeAt(n+3)!==47}function XH(t){return X(t.statements,Nir)||Oir(t)}function Nir(t){return l1(t)&&Fir(t,95)||gd(t)&&WT(t.moduleReference)||fp(t)||Xu(t)||P_(t)?t:void 0}function Oir(t){return t.flags&8388608?nut(t):void 0}function nut(t){return Rir(t)?t:Is(t,nut)}function Fir(t,n){return Pt(t.modifiers,a=>a.kind===n)}function Rir(t){return s3(t)&&t.keywordToken===102&&t.name.escapedText==="meta"}var Lir={167:function(n,a,c){return zr(a,n.left)||zr(a,n.right)},169:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||zr(a,n.constraint)||zr(a,n.default)||zr(a,n.expression)},305:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||zr(a,n.questionToken)||zr(a,n.exclamationToken)||zr(a,n.equalsToken)||zr(a,n.objectAssignmentInitializer)},306:function(n,a,c){return zr(a,n.expression)},170:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.dotDotDotToken)||zr(a,n.name)||zr(a,n.questionToken)||zr(a,n.type)||zr(a,n.initializer)},173:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||zr(a,n.questionToken)||zr(a,n.exclamationToken)||zr(a,n.type)||zr(a,n.initializer)},172:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||zr(a,n.questionToken)||zr(a,n.type)||zr(a,n.initializer)},304:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||zr(a,n.questionToken)||zr(a,n.exclamationToken)||zr(a,n.initializer)},261:function(n,a,c){return zr(a,n.name)||zr(a,n.exclamationToken)||zr(a,n.type)||zr(a,n.initializer)},209:function(n,a,c){return zr(a,n.dotDotDotToken)||zr(a,n.propertyName)||zr(a,n.name)||zr(a,n.initializer)},182:function(n,a,c){return ba(a,c,n.modifiers)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)},186:function(n,a,c){return ba(a,c,n.modifiers)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)},185:function(n,a,c){return ba(a,c,n.modifiers)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)},180:iut,181:iut,175:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.asteriskToken)||zr(a,n.name)||zr(a,n.questionToken)||zr(a,n.exclamationToken)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)||zr(a,n.body)},174:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||zr(a,n.questionToken)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)},177:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)||zr(a,n.body)},178:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)||zr(a,n.body)},179:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)||zr(a,n.body)},263:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.asteriskToken)||zr(a,n.name)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)||zr(a,n.body)},219:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.asteriskToken)||zr(a,n.name)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)||zr(a,n.body)},220:function(n,a,c){return ba(a,c,n.modifiers)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)||zr(a,n.equalsGreaterThanToken)||zr(a,n.body)},176:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.body)},184:function(n,a,c){return zr(a,n.typeName)||ba(a,c,n.typeArguments)},183:function(n,a,c){return zr(a,n.assertsModifier)||zr(a,n.parameterName)||zr(a,n.type)},187:function(n,a,c){return zr(a,n.exprName)||ba(a,c,n.typeArguments)},188:function(n,a,c){return ba(a,c,n.members)},189:function(n,a,c){return zr(a,n.elementType)},190:function(n,a,c){return ba(a,c,n.elements)},193:out,194:out,195:function(n,a,c){return zr(a,n.checkType)||zr(a,n.extendsType)||zr(a,n.trueType)||zr(a,n.falseType)},196:function(n,a,c){return zr(a,n.typeParameter)},206:function(n,a,c){return zr(a,n.argument)||zr(a,n.attributes)||zr(a,n.qualifier)||ba(a,c,n.typeArguments)},303:function(n,a,c){return zr(a,n.assertClause)},197:aut,199:aut,200:function(n,a,c){return zr(a,n.objectType)||zr(a,n.indexType)},201:function(n,a,c){return zr(a,n.readonlyToken)||zr(a,n.typeParameter)||zr(a,n.nameType)||zr(a,n.questionToken)||zr(a,n.type)||ba(a,c,n.members)},202:function(n,a,c){return zr(a,n.literal)},203:function(n,a,c){return zr(a,n.dotDotDotToken)||zr(a,n.name)||zr(a,n.questionToken)||zr(a,n.type)},207:sut,208:sut,210:function(n,a,c){return ba(a,c,n.elements)},211:function(n,a,c){return ba(a,c,n.properties)},212:function(n,a,c){return zr(a,n.expression)||zr(a,n.questionDotToken)||zr(a,n.name)},213:function(n,a,c){return zr(a,n.expression)||zr(a,n.questionDotToken)||zr(a,n.argumentExpression)},214:cut,215:cut,216:function(n,a,c){return zr(a,n.tag)||zr(a,n.questionDotToken)||ba(a,c,n.typeArguments)||zr(a,n.template)},217:function(n,a,c){return zr(a,n.type)||zr(a,n.expression)},218:function(n,a,c){return zr(a,n.expression)},221:function(n,a,c){return zr(a,n.expression)},222:function(n,a,c){return zr(a,n.expression)},223:function(n,a,c){return zr(a,n.expression)},225:function(n,a,c){return zr(a,n.operand)},230:function(n,a,c){return zr(a,n.asteriskToken)||zr(a,n.expression)},224:function(n,a,c){return zr(a,n.expression)},226:function(n,a,c){return zr(a,n.operand)},227:function(n,a,c){return zr(a,n.left)||zr(a,n.operatorToken)||zr(a,n.right)},235:function(n,a,c){return zr(a,n.expression)||zr(a,n.type)},236:function(n,a,c){return zr(a,n.expression)},239:function(n,a,c){return zr(a,n.expression)||zr(a,n.type)},237:function(n,a,c){return zr(a,n.name)},228:function(n,a,c){return zr(a,n.condition)||zr(a,n.questionToken)||zr(a,n.whenTrue)||zr(a,n.colonToken)||zr(a,n.whenFalse)},231:function(n,a,c){return zr(a,n.expression)},242:lut,269:lut,308:function(n,a,c){return ba(a,c,n.statements)||zr(a,n.endOfFileToken)},244:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.declarationList)},262:function(n,a,c){return ba(a,c,n.declarations)},245:function(n,a,c){return zr(a,n.expression)},246:function(n,a,c){return zr(a,n.expression)||zr(a,n.thenStatement)||zr(a,n.elseStatement)},247:function(n,a,c){return zr(a,n.statement)||zr(a,n.expression)},248:function(n,a,c){return zr(a,n.expression)||zr(a,n.statement)},249:function(n,a,c){return zr(a,n.initializer)||zr(a,n.condition)||zr(a,n.incrementor)||zr(a,n.statement)},250:function(n,a,c){return zr(a,n.initializer)||zr(a,n.expression)||zr(a,n.statement)},251:function(n,a,c){return zr(a,n.awaitModifier)||zr(a,n.initializer)||zr(a,n.expression)||zr(a,n.statement)},252:uut,253:uut,254:function(n,a,c){return zr(a,n.expression)},255:function(n,a,c){return zr(a,n.expression)||zr(a,n.statement)},256:function(n,a,c){return zr(a,n.expression)||zr(a,n.caseBlock)},270:function(n,a,c){return ba(a,c,n.clauses)},297:function(n,a,c){return zr(a,n.expression)||ba(a,c,n.statements)},298:function(n,a,c){return ba(a,c,n.statements)},257:function(n,a,c){return zr(a,n.label)||zr(a,n.statement)},258:function(n,a,c){return zr(a,n.expression)},259:function(n,a,c){return zr(a,n.tryBlock)||zr(a,n.catchClause)||zr(a,n.finallyBlock)},300:function(n,a,c){return zr(a,n.variableDeclaration)||zr(a,n.block)},171:function(n,a,c){return zr(a,n.expression)},264:put,232:put,265:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||ba(a,c,n.typeParameters)||ba(a,c,n.heritageClauses)||ba(a,c,n.members)},266:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||ba(a,c,n.typeParameters)||zr(a,n.type)},267:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||ba(a,c,n.members)},307:function(n,a,c){return zr(a,n.name)||zr(a,n.initializer)},268:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||zr(a,n.body)},272:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||zr(a,n.moduleReference)},273:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.importClause)||zr(a,n.moduleSpecifier)||zr(a,n.attributes)},274:function(n,a,c){return zr(a,n.name)||zr(a,n.namedBindings)},301:function(n,a,c){return ba(a,c,n.elements)},302:function(n,a,c){return zr(a,n.name)||zr(a,n.value)},271:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)},275:function(n,a,c){return zr(a,n.name)},281:function(n,a,c){return zr(a,n.name)},276:_ut,280:_ut,279:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.exportClause)||zr(a,n.moduleSpecifier)||zr(a,n.attributes)},277:dut,282:dut,278:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.expression)},229:function(n,a,c){return zr(a,n.head)||ba(a,c,n.templateSpans)},240:function(n,a,c){return zr(a,n.expression)||zr(a,n.literal)},204:function(n,a,c){return zr(a,n.head)||ba(a,c,n.templateSpans)},205:function(n,a,c){return zr(a,n.type)||zr(a,n.literal)},168:function(n,a,c){return zr(a,n.expression)},299:function(n,a,c){return ba(a,c,n.types)},234:function(n,a,c){return zr(a,n.expression)||ba(a,c,n.typeArguments)},284:function(n,a,c){return zr(a,n.expression)},283:function(n,a,c){return ba(a,c,n.modifiers)},357:function(n,a,c){return ba(a,c,n.elements)},285:function(n,a,c){return zr(a,n.openingElement)||ba(a,c,n.children)||zr(a,n.closingElement)},289:function(n,a,c){return zr(a,n.openingFragment)||ba(a,c,n.children)||zr(a,n.closingFragment)},286:fut,287:fut,293:function(n,a,c){return ba(a,c,n.properties)},292:function(n,a,c){return zr(a,n.name)||zr(a,n.initializer)},294:function(n,a,c){return zr(a,n.expression)},295:function(n,a,c){return zr(a,n.dotDotDotToken)||zr(a,n.expression)},288:function(n,a,c){return zr(a,n.tagName)},296:function(n,a,c){return zr(a,n.namespace)||zr(a,n.name)},191:yz,192:yz,310:yz,316:yz,315:yz,317:yz,319:yz,318:function(n,a,c){return ba(a,c,n.parameters)||zr(a,n.type)},321:function(n,a,c){return(typeof n.comment=="string"?void 0:ba(a,c,n.comment))||ba(a,c,n.tags)},348:function(n,a,c){return zr(a,n.tagName)||zr(a,n.name)||(typeof n.comment=="string"?void 0:ba(a,c,n.comment))},311:function(n,a,c){return zr(a,n.name)},312:function(n,a,c){return zr(a,n.left)||zr(a,n.right)},342:mut,349:mut,331:function(n,a,c){return zr(a,n.tagName)||(typeof n.comment=="string"?void 0:ba(a,c,n.comment))},330:function(n,a,c){return zr(a,n.tagName)||zr(a,n.class)||(typeof n.comment=="string"?void 0:ba(a,c,n.comment))},329:function(n,a,c){return zr(a,n.tagName)||zr(a,n.class)||(typeof n.comment=="string"?void 0:ba(a,c,n.comment))},346:function(n,a,c){return zr(a,n.tagName)||zr(a,n.constraint)||ba(a,c,n.typeParameters)||(typeof n.comment=="string"?void 0:ba(a,c,n.comment))},347:function(n,a,c){return zr(a,n.tagName)||(n.typeExpression&&n.typeExpression.kind===310?zr(a,n.typeExpression)||zr(a,n.fullName)||(typeof n.comment=="string"?void 0:ba(a,c,n.comment)):zr(a,n.fullName)||zr(a,n.typeExpression)||(typeof n.comment=="string"?void 0:ba(a,c,n.comment)))},339:function(n,a,c){return zr(a,n.tagName)||zr(a,n.fullName)||zr(a,n.typeExpression)||(typeof n.comment=="string"?void 0:ba(a,c,n.comment))},343:vz,345:vz,344:vz,341:vz,351:vz,350:vz,340:vz,324:function(n,a,c){return X(n.typeParameters,a)||X(n.parameters,a)||zr(a,n.type)},325:kNe,326:kNe,327:kNe,323:function(n,a,c){return X(n.jsDocPropertyTags,a)},328:IL,333:IL,334:IL,335:IL,336:IL,337:IL,332:IL,338:IL,352:Mir,356:jir};function iut(t,n,a){return ba(n,a,t.typeParameters)||ba(n,a,t.parameters)||zr(n,t.type)}function out(t,n,a){return ba(n,a,t.types)}function aut(t,n,a){return zr(n,t.type)}function sut(t,n,a){return ba(n,a,t.elements)}function cut(t,n,a){return zr(n,t.expression)||zr(n,t.questionDotToken)||ba(n,a,t.typeArguments)||ba(n,a,t.arguments)}function lut(t,n,a){return ba(n,a,t.statements)}function uut(t,n,a){return zr(n,t.label)}function put(t,n,a){return ba(n,a,t.modifiers)||zr(n,t.name)||ba(n,a,t.typeParameters)||ba(n,a,t.heritageClauses)||ba(n,a,t.members)}function _ut(t,n,a){return ba(n,a,t.elements)}function dut(t,n,a){return zr(n,t.propertyName)||zr(n,t.name)}function fut(t,n,a){return zr(n,t.tagName)||ba(n,a,t.typeArguments)||zr(n,t.attributes)}function yz(t,n,a){return zr(n,t.type)}function mut(t,n,a){return zr(n,t.tagName)||(t.isNameFirst?zr(n,t.name)||zr(n,t.typeExpression):zr(n,t.typeExpression)||zr(n,t.name))||(typeof t.comment=="string"?void 0:ba(n,a,t.comment))}function vz(t,n,a){return zr(n,t.tagName)||zr(n,t.typeExpression)||(typeof t.comment=="string"?void 0:ba(n,a,t.comment))}function kNe(t,n,a){return zr(n,t.name)}function IL(t,n,a){return zr(n,t.tagName)||(typeof t.comment=="string"?void 0:ba(n,a,t.comment))}function Mir(t,n,a){return zr(n,t.tagName)||zr(n,t.importClause)||zr(n,t.moduleSpecifier)||zr(n,t.attributes)||(typeof t.comment=="string"?void 0:ba(n,a,t.comment))}function jir(t,n,a){return zr(n,t.expression)}function Is(t,n,a){if(t===void 0||t.kind<=166)return;let c=Lir[t.kind];return c===void 0?void 0:c(t,n,a)}function CF(t,n,a){let c=hut(t),u=[];for(;u.length=0;--y)c.push(_[y]),u.push(f)}else{let y=n(_,f);if(y){if(y==="skip")continue;return y}if(_.kind>=167)for(let g of hut(_))c.push(g),u.push(_)}}}function hut(t){let n=[];return Is(t,a,a),n;function a(c){n.unshift(c)}}function gut(t){t.externalModuleIndicator=XH(t)}function DF(t,n,a,c=!1,u){var _,f;(_=hi)==null||_.push(hi.Phase.Parse,"createSourceFile",{path:t},!0),jl("beforeParse");let y,{languageVersion:g,setExternalModuleIndicator:k,impliedNodeFormat:T,jsDocParsingMode:C}=typeof a=="object"?a:{languageVersion:a};if(g===100)y=NA.parseSourceFile(t,n,g,void 0,c,6,zs,C);else{let O=T===void 0?k:F=>(F.impliedNodeFormat=T,(k||gut)(F));y=NA.parseSourceFile(t,n,g,void 0,c,u,O,C)}return jl("afterParse"),Jm("Parse","beforeParse","afterParse"),(f=hi)==null||f.pop(),y}function AF(t,n){return NA.parseIsolatedEntityName(t,n)}function YH(t,n){return NA.parseJsonText(t,n)}function yd(t){return t.externalModuleIndicator!==void 0}function oye(t,n,a,c=!1){let u=aye.updateSourceFile(t,n,a,c);return u.flags|=t.flags&12582912,u}function CNe(t,n,a){let c=NA.JSDocParser.parseIsolatedJSDocComment(t,n,a);return c&&c.jsDoc&&NA.fixupParentReferences(c.jsDoc),c}function yut(t,n,a){return NA.JSDocParser.parseJSDocTypeExpressionForTests(t,n,a)}var NA;(t=>{var n=B1(99,!0),a=40960,c,u,_,f,y;function g(he){return We++,he}var k={createBaseSourceFileNode:he=>g(new y(he,0,0)),createBaseIdentifierNode:he=>g(new _(he,0,0)),createBasePrivateIdentifierNode:he=>g(new f(he,0,0)),createBaseTokenNode:he=>g(new u(he,0,0)),createBaseNode:he=>g(new c(he,0,0))},T=IH(11,k),{createNodeArray:C,createNumericLiteral:O,createStringLiteral:F,createLiteralLikeNode:M,createIdentifier:U,createPrivateIdentifier:J,createToken:G,createArrayLiteralExpression:Z,createObjectLiteralExpression:Q,createPropertyAccessExpression:re,createPropertyAccessChain:ae,createElementAccessExpression:_e,createElementAccessChain:me,createCallExpression:le,createCallChain:Oe,createNewExpression:be,createParenthesizedExpression:ue,createBlock:De,createVariableStatement:Ce,createExpressionStatement:Ae,createIfStatement:Fe,createWhileStatement:Be,createForStatement:de,createForOfStatement:ze,createVariableDeclaration:ut,createVariableDeclarationList:je}=T,ve,Le,Ve,nt,It,ke,_t,Se,tt,Qe,We,St,Kt,Sr,nn,Nn,$t=!0,Dr=!1;function Qn(he,Ze,kt,ir,Or=!1,en,_o,Mi=0){var si;if(en=fne(he,en),en===6){let La=is(he,Ze,kt,ir,Or);return iK(La,(si=La.statements[0])==null?void 0:si.expression,La.parseDiagnostics,!1,void 0),La.referencedFiles=j,La.typeReferenceDirectives=j,La.libReferenceDirectives=j,La.amdDependencies=j,La.hasNoDefaultLib=!1,La.pragmas=ie,La}sr(he,Ze,kt,ir,en,Mi);let zo=Wa(kt,Or,en,_o||gut,Mi);return uo(),zo}t.parseSourceFile=Qn;function Ko(he,Ze){sr("",he,Ze,void 0,1,0),Ge();let kt=Ft(!0),ir=pe()===1&&!_t.length;return uo(),ir?kt:void 0}t.parseIsolatedEntityName=Ko;function is(he,Ze,kt=2,ir,Or=!1){sr(he,Ze,kt,ir,6,0),Le=Nn,Ge();let en=Y(),_o,Mi;if(pe()===1)_o=Yc([],en,en),Mi=o_();else{let La;for(;pe()!==1;){let ll;switch(pe()){case 23:ll=zC();break;case 112:case 97:case 106:ll=o_();break;case 41:lr(()=>Ge()===9&&Ge()!==59)?ll=LE():ll=BE();break;case 9:case 11:if(lr(()=>Ge()!==59)){ll=cr();break}default:ll=BE();break}La&&Zn(La)?La.push(ll):La?La=[La,ll]:(La=ll,pe()!==1&&xr(x.Unexpected_token))}let hu=Zn(La)?Ar(Z(La),en):$.checkDefined(La),Zl=Ae(hu);Ar(Zl,en),_o=Yc([Zl],en),Mi=Nu(1,x.Unexpected_token)}let si=Ht(he,2,6,!1,_o,Mi,Le,zs);Or&&ft(si),si.nodeCount=We,si.identifierCount=Kt,si.identifiers=St,si.parseDiagnostics=rF(_t,si),Se&&(si.jsDocDiagnostics=rF(Se,si));let zo=si;return uo(),zo}t.parseJsonText=is;function sr(he,Ze,kt,ir,Or,en){switch(c=Uf.getNodeConstructor(),u=Uf.getTokenConstructor(),_=Uf.getIdentifierConstructor(),f=Uf.getPrivateIdentifierConstructor(),y=Uf.getSourceFileConstructor(),ve=Qs(he),Ve=Ze,nt=kt,tt=ir,It=Or,ke=_H(Or),_t=[],Sr=0,St=new Map,Kt=0,We=0,Le=0,$t=!0,It){case 1:case 2:Nn=524288;break;case 6:Nn=134742016;break;default:Nn=0;break}Dr=!1,n.setText(Ve),n.setOnError(Ne),n.setScriptTarget(nt),n.setLanguageVariant(ke),n.setScriptKind(It),n.setJSDocParsingMode(en)}function uo(){n.clearCommentDirectives(),n.setText(""),n.setOnError(void 0),n.setScriptKind(0),n.setJSDocParsingMode(0),Ve=void 0,nt=void 0,tt=void 0,It=void 0,ke=void 0,Le=0,_t=void 0,Se=void 0,Sr=0,St=void 0,nn=void 0,$t=!0}function Wa(he,Ze,kt,ir,Or){let en=sf(ve);en&&(Nn|=33554432),Le=Nn,Ge();let _o=Uc(0,yg);$.assert(pe()===1);let Mi=ot(),si=Oi(o_(),Mi),zo=Ht(ve,he,kt,en,_o,si,Le,ir);return sye(zo,Ve),cye(zo,La),zo.commentDirectives=n.getCommentDirectives(),zo.nodeCount=We,zo.identifierCount=Kt,zo.identifiers=St,zo.parseDiagnostics=rF(_t,zo),zo.jsDocParsingMode=Or,Se&&(zo.jsDocDiagnostics=rF(Se,zo)),Ze&&ft(zo),zo;function La(hu,Zl,ll){_t.push(tF(ve,Ve,hu,Zl,ll))}}let oo=!1;function Oi(he,Ze){if(!Ze)return he;$.assert(!he.jsDoc);let kt=Wn(Lme(he,Ve),ir=>WS.parseJSDocComment(he,ir.pos,ir.end-ir.pos));return kt.length&&(he.jsDoc=kt),oo&&(oo=!1,he.flags|=536870912),he}function $o(he){let Ze=tt,kt=aye.createSyntaxCursor(he);tt={currentNode:La};let ir=[],Or=_t;_t=[];let en=0,_o=si(he.statements,0);for(;_o!==-1;){let hu=he.statements[en],Zl=he.statements[_o];En(ir,he.statements,en,_o),en=zo(he.statements,_o);let ll=hr(Or,Yy=>Yy.start>=hu.pos),N0=ll>=0?hr(Or,Yy=>Yy.start>=Zl.pos,ll):-1;ll>=0&&En(_t,Or,ll,N0>=0?N0:void 0),tn(()=>{let Yy=Nn;for(Nn|=65536,n.resetTokenState(Zl.pos),Ge();pe()!==1;){let JE=n.getTokenFullStart(),VE=nd(0,yg);if(ir.push(VE),JE===n.getTokenFullStart()&&Ge(),en>=0){let tT=he.statements[en];if(VE.end===tT.pos)break;VE.end>tT.pos&&(en=zo(he.statements,en+1))}}Nn=Yy},2),_o=en>=0?si(he.statements,en):-1}if(en>=0){let hu=he.statements[en];En(ir,he.statements,en);let Zl=hr(Or,ll=>ll.start>=hu.pos);Zl>=0&&En(_t,Or,Zl)}return tt=Ze,T.updateSourceFile(he,qt(C(ir),he.statements));function Mi(hu){return!(hu.flags&65536)&&!!(hu.transformFlags&67108864)}function si(hu,Zl){for(let ll=Zl;ll118}function bn(){return pe()===80?!0:pe()===127&&at()||pe()===135&&Et()?!1:pe()>118}function $r(he,Ze,kt=!0){return pe()===he?(kt&&Ge(),!0):(Ze?xr(Ze):xr(x._0_expected,Zs(he)),!1)}let Uo=Object.keys(UI).filter(he=>he.length>2);function Ys(he){if(xA(he)){Ye(_c(Ve,he.template.pos),he.template.end,x.Module_declaration_names_may_only_use_or_quoted_strings);return}let Ze=ct(he)?Zi(he):void 0;if(!Ze||!Jd(Ze,nt)){xr(x._0_expected,Zs(27));return}let kt=_c(Ve,he.pos);switch(Ze){case"const":case"let":case"var":Ye(kt,he.end,x.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":ec(x.Interface_name_cannot_be_0,x.Interface_must_be_given_a_name,19);return;case"is":Ye(kt,n.getTokenStart(),x.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":ec(x.Namespace_name_cannot_be_0,x.Namespace_must_be_given_a_name,19);return;case"type":ec(x.Type_alias_name_cannot_be_0,x.Type_alias_must_be_given_a_name,64);return}let ir=xx(Ze,Uo,vl)??Ss(Ze);if(ir){Ye(kt,he.end,x.Unknown_keyword_or_identifier_Did_you_mean_0,ir);return}pe()!==0&&Ye(kt,he.end,x.Unexpected_keyword_or_identifier)}function ec(he,Ze,kt){pe()===kt?xr(Ze):xr(he,n.getTokenValue())}function Ss(he){for(let Ze of Uo)if(he.length>Ze.length+2&&Ca(he,Ze))return`${Ze} ${he.slice(Ze.length)}`}function Mp(he,Ze,kt){if(pe()===60&&!n.hasPrecedingLineBreak()){xr(x.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(pe()===21){xr(x.Cannot_start_a_function_call_in_a_type_annotation),Ge();return}if(Ze&&!_s()){kt?xr(x._0_expected,Zs(27)):xr(x.Expected_for_property_initializer);return}if(!sc()){if(kt){xr(x._0_expected,Zs(27));return}Ys(he)}}function Cp(he){return pe()===he?(Mt(),!0):($.assert(Nre(he)),xr(x._0_expected,Zs(he)),!1)}function uu(he,Ze,kt,ir){if(pe()===Ze){Ge();return}let Or=xr(x._0_expected,Zs(Ze));kt&&Or&&ac(Or,tF(ve,Ve,ir,1,x.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Zs(he),Zs(Ze)))}function $a(he){return pe()===he?(Ge(),!0):!1}function bs(he){if(pe()===he)return o_()}function V_(he){if(pe()===he)return Gy()}function Nu(he,Ze,kt){return bs(he)||Ql(he,!1,Ze||x._0_expected,kt||Zs(he))}function kc(he){let Ze=V_(he);return Ze||($.assert(Nre(he)),Ql(he,!1,x._0_expected,Zs(he)))}function o_(){let he=Y(),Ze=pe();return Ge(),Ar(G(Ze),he)}function Gy(){let he=Y(),Ze=pe();return Mt(),Ar(G(Ze),he)}function _s(){return pe()===27?!0:pe()===20||pe()===1||n.hasPrecedingLineBreak()}function sc(){return _s()?(pe()===27&&Ge(),!0):!1}function sl(){return sc()||$r(27)}function Yc(he,Ze,kt,ir){let Or=C(he,ir);return xv(Or,Ze,kt??n.getTokenFullStart()),Or}function Ar(he,Ze,kt){return xv(he,Ze,kt??n.getTokenFullStart()),Nn&&(he.flags|=Nn),Dr&&(Dr=!1,he.flags|=262144),he}function Ql(he,Ze,kt,...ir){Ze?gi(n.getTokenFullStart(),0,kt,...ir):kt&&xr(kt,...ir);let Or=Y(),en=he===80?U("",void 0):Xk(he)?T.createTemplateLiteralLikeNode(he,"","",void 0):he===9?O("",void 0):he===11?F("",void 0):he===283?T.createMissingDeclaration():G(he);return Ar(en,Or)}function Gp(he){let Ze=St.get(he);return Ze===void 0&&St.set(he,Ze=he),Ze}function N_(he,Ze,kt){if(he){Kt++;let Mi=n.hasPrecedingJSDocLeadingAsterisks()?n.getTokenStart():Y(),si=pe(),zo=Gp(n.getTokenValue()),La=n.hasExtendedUnicodeEscape();return Gt(),Ar(U(zo,si,La),Mi)}if(pe()===81)return xr(kt||x.Private_identifiers_are_not_allowed_outside_class_bodies),N_(!0);if(pe()===0&&n.tryScan(()=>n.reScanInvalidIdentifier()===80))return N_(!0);Kt++;let ir=pe()===1,Or=n.isReservedWord(),en=n.getTokenText(),_o=Or?x.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:x.Identifier_expected;return Ql(80,ir,Ze||_o,en)}function lf(he){return N_(gn(),void 0,he)}function Yu(he,Ze){return N_(bn(),he,Ze)}function Hp(he){return N_(Bf(pe()),he)}function H(){return(n.hasUnicodeEscape()||n.hasExtendedUnicodeEscape())&&xr(x.Unicode_escape_sequence_cannot_appear_here),N_(Bf(pe()))}function st(){return Bf(pe())||pe()===11||pe()===9||pe()===10}function zt(){return Bf(pe())||pe()===11}function Er(he){if(pe()===11||pe()===9||pe()===10){let Ze=cr();return Ze.text=Gp(Ze.text),Ze}return he&&pe()===23?So():pe()===81?Di():Hp()}function jn(){return Er(!0)}function So(){let he=Y();$r(23);let Ze=Cn(eh);return $r(24),Ar(T.createComputedPropertyName(Ze),he)}function Di(){let he=Y(),Ze=J(Gp(n.getTokenValue()));return Ge(),Ar(Ze,he)}function On(he){return pe()===he&&cn(va)}function ua(){return Ge(),n.hasPrecedingLineBreak()?!1:W_()}function va(){switch(pe()){case 87:return Ge()===94;case 95:return Ge(),pe()===90?lr(xu):pe()===156?lr(xc):Bl();case 90:return xu();case 126:return Ge(),W_();case 139:case 153:return Ge(),g_();default:return ua()}}function Bl(){return pe()===60||pe()!==42&&pe()!==130&&pe()!==19&&W_()}function xc(){return Ge(),Bl()}function ep(){return eC(pe())&&cn(va)}function W_(){return pe()===23||pe()===19||pe()===42||pe()===26||st()}function g_(){return pe()===23||st()}function xu(){return Ge(),pe()===86||pe()===100||pe()===120||pe()===60||pe()===128&&lr(Zh)||pe()===134&&lr(P0)}function a_(he,Ze){if(Mu(he))return!0;switch(he){case 0:case 1:case 3:return!(pe()===27&&Ze)&&$E();case 2:return pe()===84||pe()===90;case 4:return lr(m1);case 5:return lr(X3)||pe()===27&&!Ze;case 6:return pe()===23||st();case 12:switch(pe()){case 23:case 42:case 26:case 25:return!0;default:return st()}case 18:return st();case 9:return pe()===23||pe()===26||st();case 24:return zt();case 7:return pe()===19?lr(Gg):Ze?bn()&&!rt():Kh()&&!rt();case 8:return g7();case 10:return pe()===28||pe()===26||g7();case 19:return pe()===103||pe()===87||bn();case 15:switch(pe()){case 28:case 25:return!0}case 11:return pe()===26||sm();case 16:return Lt(!1);case 17:return Lt(!0);case 20:case 21:return pe()===28||FC();case 22:return Y3();case 23:return pe()===161&&lr(eT)?!1:pe()===11?!0:Bf(pe());case 13:return Bf(pe())||pe()===19;case 14:return!0;case 25:return!0;case 26:return $.fail("ParsingContext.Count used as a context");default:$.assertNever(he,"Non-exhaustive case in 'isListElement'.")}}function Gg(){if($.assert(pe()===19),Ge()===20){let he=Ge();return he===28||he===19||he===96||he===119}return!0}function Wf(){return Ge(),bn()}function yy(){return Ge(),Bf(pe())}function Wh(){return Ge(),$I(pe())}function rt(){return pe()===119||pe()===96?lr(br):!1}function br(){return Ge(),sm()}function Vn(){return Ge(),FC()}function Ga(he){if(pe()===1)return!0;switch(he){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return pe()===20;case 3:return pe()===20||pe()===84||pe()===90;case 7:return pe()===19||pe()===96||pe()===119;case 8:return el();case 19:return pe()===32||pe()===21||pe()===19||pe()===96||pe()===119;case 11:return pe()===22||pe()===27;case 15:case 21:case 10:return pe()===24;case 17:case 16:case 18:return pe()===22||pe()===24;case 20:return pe()!==28;case 22:return pe()===19||pe()===20;case 13:return pe()===32||pe()===44;case 14:return pe()===30&&lr(sse);default:return!1}}function el(){return!!(_s()||th(pe())||pe()===39)}function tl(){$.assert(Sr,"Missing parsing context");for(let he=0;he<26;he++)if(Sr&1<=0)}function Iv(he){return he===6?x.An_enum_member_name_must_be_followed_by_a_or:void 0}function Hy(){let he=Yc([],Y());return he.isMissingList=!0,he}function US(he){return!!he.isMissingList}function xe(he,Ze,kt,ir){if($r(kt)){let Or=Nd(he,Ze);return $r(ir),Or}return Hy()}function Ft(he,Ze){let kt=Y(),ir=he?Hp(Ze):Yu(Ze);for(;$a(25)&&pe()!==30;)ir=Ar(T.createQualifiedName(ir,Mr(he,!1,!0)),kt);return ir}function Nr(he,Ze){return Ar(T.createQualifiedName(he,Ze),he.pos)}function Mr(he,Ze,kt){if(n.hasPrecedingLineBreak()&&Bf(pe())&&lr(p7))return Ql(80,!0,x.Identifier_expected);if(pe()===81){let ir=Di();return Ze?ir:Ql(80,!0,x.Identifier_expected)}return he?kt?Hp():H():Yu()}function wn(he){let Ze=Y(),kt=[],ir;do ir=it(he),kt.push(ir);while(ir.literal.kind===17);return Yc(kt,Ze)}function Yn(he){let Ze=Y();return Ar(T.createTemplateExpression(In(he),wn(he)),Ze)}function fo(){let he=Y();return Ar(T.createTemplateLiteralType(In(!1),Mo()),he)}function Mo(){let he=Y(),Ze=[],kt;do kt=Ea(),Ze.push(kt);while(kt.literal.kind===17);return Yc(Ze,he)}function Ea(){let he=Y();return Ar(T.createTemplateLiteralTypeSpan(tp(),ee(!1)),he)}function ee(he){return pe()===20?(zn(he),Ka()):Nu(18,x._0_expected,Zs(20))}function it(he){let Ze=Y();return Ar(T.createTemplateSpan(Cn(eh),ee(he)),Ze)}function cr(){return Xa(pe())}function In(he){!he&&n.getTokenFlags()&26656&&zn(!1);let Ze=Xa(pe());return $.assert(Ze.kind===16,"Template head has wrong token kind"),Ze}function Ka(){let he=Xa(pe());return $.assert(he.kind===17||he.kind===18,"Template fragment has wrong token kind"),he}function Ws(he){let Ze=he===15||he===18,kt=n.getTokenText();return kt.substring(1,kt.length-(n.isUnterminated()?0:Ze?1:2))}function Xa(he){let Ze=Y(),kt=Xk(he)?T.createTemplateLiteralLikeNode(he,n.getTokenValue(),Ws(he),n.getTokenFlags()&7176):he===9?O(n.getTokenValue(),n.getNumericLiteralFlags()):he===11?F(n.getTokenValue(),void 0,n.hasExtendedUnicodeEscape()):nU(he)?M(he,n.getTokenValue()):$.fail();return n.hasExtendedUnicodeEscape()&&(kt.hasExtendedUnicodeEscape=!0),n.isUnterminated()&&(kt.isUnterminated=!0),Ge(),Ar(kt,Ze)}function ks(){return Ft(!0,x.Type_expected)}function cp(){if(!n.hasPrecedingLineBreak()&&Rt()===30)return xe(20,tp,30,32)}function Cc(){let he=Y();return Ar(T.createTypeReferenceNode(ks(),cp()),he)}function pf(he){switch(he.kind){case 184:return Op(he.typeName);case 185:case 186:{let{parameters:Ze,type:kt}=he;return US(Ze)||pf(kt)}case 197:return pf(he.type);default:return!1}}function Kg(he){return Ge(),Ar(T.createTypePredicateNode(void 0,he,tp()),he.pos)}function Ky(){let he=Y();return Ge(),Ar(T.createThisTypeNode(),he)}function A0(){let he=Y();return Ge(),Ar(T.createJSDocAllType(),he)}function r2(){let he=Y();return Ge(),Ar(T.createJSDocNonNullableType(UP(),!1),he)}function PE(){let he=Y();return Ge(),pe()===28||pe()===20||pe()===22||pe()===32||pe()===64||pe()===52?Ar(T.createJSDocUnknownType(),he):Ar(T.createJSDocNullableType(tp(),!1),he)}function vh(){let he=Y(),Ze=ot();if(cn(S7)){let kt=Po(36),ir=oi(59,!1);return Oi(Ar(T.createJSDocFunctionType(kt,ir),he),Ze)}return Ar(T.createTypeReferenceNode(Hp(),void 0),he)}function Nb(){let he=Y(),Ze;return(pe()===110||pe()===105)&&(Ze=Hp(),$r(59)),Ar(T.createParameterDeclaration(void 0,void 0,Ze,void 0,Pv(),void 0),he)}function Pv(){n.setSkipJsDocLeadingAsterisks(!0);let he=Y();if($a(144)){let ir=T.createJSDocNamepathType(void 0);e:for(;;)switch(pe()){case 20:case 1:case 28:case 5:break e;default:Mt()}return n.setSkipJsDocLeadingAsterisks(!1),Ar(ir,he)}let Ze=$a(26),kt=a2();return n.setSkipJsDocLeadingAsterisks(!1),Ze&&(kt=Ar(T.createJSDocVariadicType(kt),he)),pe()===64?(Ge(),Ar(T.createJSDocOptionalType(kt),he)):kt}function d1(){let he=Y();$r(114);let Ze=Ft(!0),kt=n.hasPrecedingLineBreak()?void 0:mp();return Ar(T.createTypeQueryNode(Ze,kt),he)}function OC(){let he=Y(),Ze=na(!1,!0),kt=Yu(),ir,Or;$a(96)&&(FC()||!sm()?ir=tp():Or=nw());let en=$a(64)?tp():void 0,_o=T.createTypeParameterDeclaration(Ze,kt,ir,en);return _o.expression=Or,Ar(_o,he)}function dt(){if(pe()===30)return xe(19,OC,30,32)}function Lt(he){return pe()===26||g7()||eC(pe())||pe()===60||FC(!he)}function Tr(he){let Ze=UE(x.Private_identifiers_cannot_be_used_as_parameters);return gG(Ze)===0&&!Pt(he)&&eC(pe())&&Ge(),Ze}function dn(){return gn()||pe()===23||pe()===19}function qn(he){return $n(he)}function Fi(he){return $n(he,!1)}function $n(he,Ze=!0){let kt=Y(),ir=ot(),Or=he?ye(()=>na(!0)):et(()=>na(!0));if(pe()===110){let si=T.createParameterDeclaration(Or,void 0,N_(!0),void 0,am(),void 0),zo=pi(Or);return zo&&er(zo,x.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Oi(Ar(si,kt),ir)}let en=$t;$t=!1;let _o=bs(26);if(!Ze&&!dn())return;let Mi=Oi(Ar(T.createParameterDeclaration(Or,_o,Tr(Or),bs(58),am(),Lb()),kt),ir);return $t=en,Mi}function oi(he,Ze){if(sa(he,Ze))return Dt(a2)}function sa(he,Ze){return he===39?($r(he),!0):$a(59)?!0:Ze&&pe()===39?(xr(x._0_expected,Zs(59)),Ge(),!0):!1}function os(he,Ze){let kt=at(),ir=Et();vo(!!(he&1)),ya(!!(he&2));let Or=he&32?Nd(17,Nb):Nd(16,()=>Ze?qn(ir):Fi(ir));return vo(kt),ya(ir),Or}function Po(he){if(!$r(21))return Hy();let Ze=os(he,!0);return $r(22),Ze}function as(){$a(28)||sl()}function ka(he){let Ze=Y(),kt=ot();he===181&&$r(105);let ir=dt(),Or=Po(4),en=oi(59,!0);as();let _o=he===180?T.createCallSignature(ir,Or,en):T.createConstructSignature(ir,Or,en);return Oi(Ar(_o,Ze),kt)}function lp(){return pe()===23&&lr(Hh)}function Hh(){if(Ge(),pe()===26||pe()===24)return!0;if(eC(pe())){if(Ge(),bn())return!0}else if(bn())Ge();else return!1;return pe()===59||pe()===28?!0:pe()!==58?!1:(Ge(),pe()===59||pe()===28||pe()===24)}function f1(he,Ze,kt){let ir=xe(16,()=>qn(!1),23,24),Or=am();as();let en=T.createIndexSignature(kt,ir,Or);return Oi(Ar(en,he),Ze)}function Pf(he,Ze,kt){let ir=jn(),Or=bs(58),en;if(pe()===21||pe()===30){let _o=dt(),Mi=Po(4),si=oi(59,!0);en=T.createMethodSignature(kt,ir,Or,_o,Mi,si)}else{let _o=am();en=T.createPropertySignature(kt,ir,Or,_o),pe()===64&&(en.initializer=Lb())}return as(),Oi(Ar(en,he),Ze)}function m1(){if(pe()===21||pe()===30||pe()===139||pe()===153)return!0;let he=!1;for(;eC(pe());)he=!0,Ge();return pe()===23?!0:(st()&&(he=!0,Ge()),he?pe()===21||pe()===30||pe()===58||pe()===59||pe()===28||_s():!1)}function Qg(){if(pe()===21||pe()===30)return ka(180);if(pe()===105&&lr(GA))return ka(181);let he=Y(),Ze=ot(),kt=na(!1);return On(139)?dw(he,Ze,kt,178,4):On(153)?dw(he,Ze,kt,179,4):lp()?f1(he,Ze,kt):Pf(he,Ze,kt)}function GA(){return Ge(),pe()===21||pe()===30}function zS(){return Ge()===25}function Ob(){switch(Ge()){case 21:case 30:case 25:return!0}return!1}function HA(){let he=Y();return Ar(T.createTypeLiteralNode(Fb()),he)}function Fb(){let he;return $r(19)?(he=Uc(4,Qg),$r(20)):he=Hy(),he}function hM(){return Ge(),pe()===40||pe()===41?Ge()===148:(pe()===148&&Ge(),pe()===23&&Wf()&&Ge()===103)}function xq(){let he=Y(),Ze=Hp();$r(103);let kt=tp();return Ar(T.createTypeParameterDeclaration(void 0,Ze,kt,void 0),he)}function gM(){let he=Y();$r(19);let Ze;(pe()===148||pe()===40||pe()===41)&&(Ze=o_(),Ze.kind!==148&&$r(148)),$r(23);let kt=xq(),ir=$a(130)?tp():void 0;$r(24);let Or;(pe()===58||pe()===40||pe()===41)&&(Or=o_(),Or.kind!==58&&$r(58));let en=am();sl();let _o=Uc(4,Qg);return $r(20),Ar(T.createMappedTypeNode(Ze,kt,ir,Or,en,_o),he)}function Hx(){let he=Y();if($a(26))return Ar(T.createRestTypeNode(tp()),he);let Ze=tp();if(xL(Ze)&&Ze.pos===Ze.type.pos){let kt=T.createOptionalTypeNode(Ze.type);return qt(kt,Ze),kt.flags=Ze.flags,kt}return Ze}function KA(){return Ge()===59||pe()===58&&Ge()===59}function P3(){return pe()===26?Bf(Ge())&&KA():Bf(pe())&&KA()}function NE(){if(lr(P3)){let he=Y(),Ze=ot(),kt=bs(26),ir=Hp(),Or=bs(58);$r(59);let en=Hx(),_o=T.createNamedTupleMember(kt,ir,Or,en);return Oi(Ar(_o,he),Ze)}return Hx()}function N3(){let he=Y();return Ar(T.createTupleTypeNode(xe(21,NE,23,24)),he)}function e7(){let he=Y();$r(21);let Ze=tp();return $r(22),Ar(T.createParenthesizedType(Ze),he)}function Tq(){let he;if(pe()===128){let Ze=Y();Ge();let kt=Ar(G(128),Ze);he=Yc([kt],Ze)}return he}function O3(){let he=Y(),Ze=ot(),kt=Tq(),ir=$a(105);$.assert(!kt||ir,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let Or=dt(),en=Po(4),_o=oi(39,!1),Mi=ir?T.createConstructorTypeNode(kt,Or,en,_o):T.createFunctionTypeNode(Or,en,_o);return Oi(Ar(Mi,he),Ze)}function t7(){let he=o_();return pe()===25?void 0:he}function QA(he){let Ze=Y();he&&Ge();let kt=pe()===112||pe()===97||pe()===106?o_():Xa(pe());return he&&(kt=Ar(T.createPrefixUnaryExpression(41,kt),Ze)),Ar(T.createLiteralTypeNode(kt),Ze)}function yM(){return Ge(),pe()===102}function F3(){Le|=4194304;let he=Y(),Ze=$a(114);$r(102),$r(21);let kt=tp(),ir;if($a(28)){let _o=n.getTokenStart();$r(19);let Mi=pe();if(Mi===118||Mi===132?Ge():xr(x._0_expected,Zs(118)),$r(59),ir=HC(Mi,!0),$a(28),!$r(20)){let si=Yr(_t);si&&si.code===x._0_expected.code&&ac(si,tF(ve,Ve,_o,1,x.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}$r(22);let Or=$a(25)?ks():void 0,en=cp();return Ar(T.createImportTypeNode(kt,ir,Or,en,Ze),he)}function r7(){return Ge(),pe()===9||pe()===10}function UP(){switch(pe()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return cn(t7)||Cc();case 67:n.reScanAsteriskEqualsToken();case 42:return A0();case 61:n.reScanQuestionToken();case 58:return PE();case 100:return vh();case 54:return r2();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return QA();case 41:return lr(r7)?QA(!0):Cc();case 116:return o_();case 110:{let he=Ky();return pe()===142&&!n.hasPrecedingLineBreak()?Kg(he):he}case 114:return lr(yM)?F3():d1();case 19:return lr(hM)?gM():HA();case 23:return N3();case 21:return e7();case 102:return F3();case 131:return lr(p7)?Rb():Cc();case 16:return fo();default:return Cc()}}function FC(he){switch(pe()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!he;case 41:return!he&&lr(r7);case 21:return!he&&lr(n7);default:return bn()}}function n7(){return Ge(),pe()===22||Lt(!1)||FC()}function i7(){let he=Y(),Ze=UP();for(;!n.hasPrecedingLineBreak();)switch(pe()){case 54:Ge(),Ze=Ar(T.createJSDocNonNullableType(Ze,!0),he);break;case 58:if(lr(Vn))return Ze;Ge(),Ze=Ar(T.createJSDocNullableType(Ze,!0),he);break;case 23:if($r(23),FC()){let kt=tp();$r(24),Ze=Ar(T.createIndexedAccessTypeNode(Ze,kt),he)}else $r(24),Ze=Ar(T.createArrayTypeNode(Ze),he);break;default:return Ze}return Ze}function zP(he){let Ze=Y();return $r(he),Ar(T.createTypeOperatorNode(he,i2()),Ze)}function RC(){if($a(96)){let he=ur(tp);if(Qt()||pe()!==58)return he}}function OE(){let he=Y(),Ze=Yu(),kt=cn(RC),ir=T.createTypeParameterDeclaration(void 0,Ze,kt);return Ar(ir,he)}function n2(){let he=Y();return $r(140),Ar(T.createInferTypeNode(OE()),he)}function i2(){let he=pe();switch(he){case 143:case 158:case 148:return zP(he);case 140:return n2()}return Dt(i7)}function o2(he){if(il()){let Ze=O3(),kt;return Cb(Ze)?kt=he?x.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:x.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:kt=he?x.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:x.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,er(Ze,kt),Ze}}function LC(he,Ze,kt){let ir=Y(),Or=he===52,en=$a(he),_o=en&&o2(Or)||Ze();if(pe()===he||en){let Mi=[_o];for(;$a(he);)Mi.push(o2(Or)||Ze());_o=Ar(kt(Yc(Mi,ir)),ir)}return _o}function ZA(){return LC(51,i2,T.createIntersectionTypeNode)}function R3(){return LC(52,ZA,T.createUnionTypeNode)}function XA(){return Ge(),pe()===105}function il(){return pe()===30||pe()===21&&lr(vM)?!0:pe()===105||pe()===128&&lr(XA)}function L3(){if(eC(pe())&&na(!1),bn()||pe()===110)return Ge(),!0;if(pe()===23||pe()===19){let he=_t.length;return UE(),he===_t.length}return!1}function vM(){return Ge(),!!(pe()===22||pe()===26||L3()&&(pe()===59||pe()===28||pe()===58||pe()===64||pe()===22&&(Ge(),pe()===39)))}function a2(){let he=Y(),Ze=bn()&&cn(s2),kt=tp();return Ze?Ar(T.createTypePredicateNode(void 0,Ze,kt),he):kt}function s2(){let he=Yu();if(pe()===142&&!n.hasPrecedingLineBreak())return Ge(),he}function Rb(){let he=Y(),Ze=Nu(131),kt=pe()===110?Ky():Yu(),ir=$a(142)?tp():void 0;return Ar(T.createTypePredicateNode(Ze,kt,ir),he)}function tp(){if(Nn&81920)return Ls(81920,tp);if(il())return O3();let he=Y(),Ze=R3();if(!Qt()&&!n.hasPrecedingLineBreak()&&$a(96)){let kt=ur(tp);$r(58);let ir=Dt(tp);$r(59);let Or=Dt(tp);return Ar(T.createConditionalTypeNode(Ze,kt,ir,Or),he)}return Ze}function am(){return $a(59)?tp():void 0}function Kh(){switch(pe()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return lr(Ob);default:return bn()}}function sm(){if(Kh())return!0;switch(pe()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return g1()?!0:bn()}}function YA(){return pe()!==19&&pe()!==100&&pe()!==86&&pe()!==60&&sm()}function eh(){let he=pr();he&&Eo(!1);let Ze=Y(),kt=Sh(!0),ir;for(;ir=bs(28);)kt=zc(kt,ir,Sh(!0),Ze);return he&&Eo(!0),kt}function Lb(){return $a(64)?Sh(!0):void 0}function Sh(he){if(h1())return ew();let Ze=Eq(he)||gt(he);if(Ze)return Ze;let kt=Y(),ir=ot(),Or=MC(0);return Or.kind===80&&pe()===39?tw(kt,Or,he,ir,void 0):jh(Or)&&zT(ii())?zc(Or,o_(),Sh(he),kt):RE(Or,kt,he)}function h1(){return pe()===127?at()?!0:lr(HP):!1}function X1(){return Ge(),!n.hasPrecedingLineBreak()&&bn()}function ew(){let he=Y();return Ge(),!n.hasPrecedingLineBreak()&&(pe()===42||sm())?Ar(T.createYieldExpression(bs(42),Sh(!0)),he):Ar(T.createYieldExpression(void 0,void 0),he)}function tw(he,Ze,kt,ir,Or){$.assert(pe()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let en=T.createParameterDeclaration(void 0,void 0,Ze,void 0,void 0,void 0);Ar(en,Ze.pos);let _o=Yc([en],en.pos,en.end),Mi=Nu(39),si=Y1(!!Or,kt),zo=T.createArrowFunction(Or,void 0,_o,void 0,Mi,si);return Oi(Ar(zo,he),ir)}function Eq(he){let Ze=SM();if(Ze!==0)return Ze===1?Kx(!0,!0):cn(()=>qP(he))}function SM(){return pe()===21||pe()===30||pe()===134?lr(FE):pe()===39?1:0}function FE(){if(pe()===134&&(Ge(),n.hasPrecedingLineBreak()||pe()!==21&&pe()!==30))return 0;let he=pe(),Ze=Ge();if(he===21){if(Ze===22)switch(Ge()){case 39:case 59:case 19:return 1;default:return 0}if(Ze===23||Ze===19)return 2;if(Ze===26)return 1;if(eC(Ze)&&Ze!==134&&lr(Wf))return Ge()===130?0:1;if(!bn()&&Ze!==110)return 0;switch(Ge()){case 59:return 1;case 58:return Ge(),pe()===59||pe()===28||pe()===64||pe()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return $.assert(he===30),!bn()&&pe()!==87?0:ke===1?lr(()=>{$a(87);let ir=Ge();if(ir===96)switch(Ge()){case 64:case 32:case 44:return!1;default:return!0}else if(ir===28||ir===64)return!0;return!1})?1:0:2}function qP(he){let Ze=n.getTokenStart();if(nn?.has(Ze))return;let kt=Kx(!1,he);return kt||(nn||(nn=new Set)).add(Ze),kt}function gt(he){if(pe()===134&&lr(M3)===1){let Ze=Y(),kt=ot(),ir=Ya(),Or=MC(0);return tw(Ze,Or,he,kt,ir)}}function M3(){if(pe()===134){if(Ge(),n.hasPrecedingLineBreak()||pe()===39)return 0;let he=MC(0);if(!n.hasPrecedingLineBreak()&&he.kind===80&&pe()===39)return 1}return 0}function Kx(he,Ze){let kt=Y(),ir=ot(),Or=Ya(),en=Pt(Or,oz)?2:0,_o=dt(),Mi;if($r(21)){if(he)Mi=os(en,he);else{let JE=os(en,he);if(!JE)return;Mi=JE}if(!$r(22)&&!he)return}else{if(!he)return;Mi=Hy()}let si=pe()===59,zo=oi(59,!1);if(zo&&!he&&pf(zo))return;let La=zo;for(;La?.kind===197;)La=La.type;let hu=La&&TL(La);if(!he&&pe()!==39&&(hu||pe()!==19))return;let Zl=pe(),ll=Nu(39),N0=Zl===39||Zl===19?Y1(Pt(Or,oz),Ze):Yu();if(!Ze&&si&&pe()!==59)return;let Yy=T.createArrowFunction(Or,_o,Mi,zo,ll,N0);return Oi(Ar(Yy,kt),ir)}function Y1(he,Ze){if(pe()===19)return JC(he?2:0);if(pe()!==27&&pe()!==100&&pe()!==86&&$E()&&!YA())return JC(16|(he?2:0));let kt=at();vo(!1);let ir=$t;$t=!1;let Or=he?ye(()=>Sh(Ze)):et(()=>Sh(Ze));return $t=ir,vo(kt),Or}function RE(he,Ze,kt){let ir=bs(58);if(!ir)return he;let Or;return Ar(T.createConditionalExpression(he,ir,Ls(a,()=>Sh(!1)),Or=Nu(59),t1(Or)?Sh(kt):Ql(80,!1,x._0_expected,Zs(59))),Ze)}function MC(he){let Ze=Y(),kt=nw();return Nv(he,kt,Ze)}function th(he){return he===103||he===165}function Nv(he,Ze,kt){for(;;){ii();let ir=eH(pe());if(!(pe()===43?ir>=he:ir>he)||pe()===103&&Zt())break;if(pe()===130||pe()===152){if(n.hasPrecedingLineBreak())break;{let en=pe();Ge(),Ze=en===152?rw(Ze,tp()):Qy(Ze,tp())}}else Ze=zc(Ze,o_(),MC(ir),kt)}return Ze}function g1(){return Zt()&&pe()===103?!1:eH(pe())>0}function rw(he,Ze){return Ar(T.createSatisfiesExpression(he,Ze),he.pos)}function zc(he,Ze,kt,ir){return Ar(T.createBinaryExpression(he,Ze,kt),ir)}function Qy(he,Ze){return Ar(T.createAsExpression(he,Ze),he.pos)}function LE(){let he=Y();return Ar(T.createPrefixUnaryExpression(pe(),mr(ME)),he)}function j3(){let he=Y();return Ar(T.createDeleteExpression(mr(ME)),he)}function c2(){let he=Y();return Ar(T.createTypeOfExpression(mr(ME)),he)}function JP(){let he=Y();return Ar(T.createVoidExpression(mr(ME)),he)}function w0(){return pe()===135?Et()?!0:lr(HP):!1}function Qx(){let he=Y();return Ar(T.createAwaitExpression(mr(ME)),he)}function nw(){if(qS()){let kt=Y(),ir=VP();return pe()===43?Nv(eH(pe()),ir,kt):ir}let he=pe(),Ze=ME();if(pe()===43){let kt=_c(Ve,Ze.pos),{end:ir}=Ze;Ze.kind===217?Ye(kt,ir,x.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):($.assert(Nre(he)),Ye(kt,ir,x.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,Zs(he)))}return Ze}function ME(){switch(pe()){case 40:case 41:case 55:case 54:return LE();case 91:return j3();case 114:return c2();case 116:return JP();case 30:return ke===1?Nf(!0,void 0,void 0,!0):Pm();case 135:if(w0())return Qx();default:return VP()}}function qS(){switch(pe()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ke!==1)return!1;default:return!0}}function VP(){if(pe()===46||pe()===47){let Ze=Y();return Ar(T.createPrefixUnaryExpression(pe(),mr(iw)),Ze)}else if(ke===1&&pe()===30&&lr(Wh))return Nf(!0);let he=iw();if($.assert(jh(he)),(pe()===46||pe()===47)&&!n.hasPrecedingLineBreak()){let Ze=pe();return Ge(),Ar(T.createPostfixUnaryExpression(he,Ze),he.pos)}return he}function iw(){let he=Y(),Ze;return pe()===102?lr(GA)?(Le|=4194304,Ze=o_()):lr(zS)?(Ge(),Ge(),Ze=Ar(T.createMetaProperty(102,Hp()),he),Ze.name.escapedText==="defer"?(pe()===21||pe()===30)&&(Le|=4194304):Le|=8388608):Ze=io():Ze=pe()===108?Ki():io(),Qh(he,Ze)}function io(){let he=Y(),Ze=aw();return Zy(he,Ze,!0)}function Ki(){let he=Y(),Ze=o_();if(pe()===30){let kt=Y(),ir=cn(ow);ir!==void 0&&(Ye(kt,Y(),x.super_may_not_use_type_arguments),ev()||(Ze=T.createExpressionWithTypeArguments(Ze,ir)))}return pe()===21||pe()===25||pe()===23?Ze:(Nu(25,x.super_must_be_followed_by_an_argument_list_or_member_access),Ar(re(Ze,Mr(!0,!0,!0)),he))}function Nf(he,Ze,kt,ir=!1){let Or=Y(),en=kq(he),_o;if(en.kind===287){let Mi=WP(en),si,zo=Mi[Mi.length-1];if(zo?.kind===285&&!OA(zo.openingElement.tagName,zo.closingElement.tagName)&&OA(en.tagName,zo.closingElement.tagName)){let La=zo.children.end,hu=Ar(T.createJsxElement(zo.openingElement,zo.children,Ar(T.createJsxClosingElement(Ar(U(""),La,La)),La,La)),zo.openingElement.pos,La);Mi=Yc([...Mi.slice(0,Mi.length-1),hu],Mi.pos,La),si=zo.closingElement}else si=xM(en,he),OA(en.tagName,si.tagName)||(kt&&Tv(kt)&&OA(si.tagName,kt.tagName)?er(en.tagName,x.JSX_element_0_has_no_corresponding_closing_tag,uU(Ve,en.tagName)):er(si.tagName,x.Expected_corresponding_JSX_closing_tag_for_0,uU(Ve,en.tagName)));_o=Ar(T.createJsxElement(en,Mi,si),Or)}else en.kind===290?_o=Ar(T.createJsxFragment(en,WP(en),o7(he)),Or):($.assert(en.kind===286),_o=en);if(!ir&&he&&pe()===30){let Mi=typeof Ze>"u"?_o.pos:Ze,si=cn(()=>Nf(!0,Mi));if(si){let zo=Ql(28,!1);return rge(zo,si.pos,0),Ye(_c(Ve,Mi),si.end,x.JSX_expressions_must_have_one_parent_element),Ar(T.createBinaryExpression(_o,zo,si),Or)}}return _o}function B3(){let he=Y(),Ze=T.createJsxText(n.getTokenValue(),Qe===13);return Qe=n.scanJsxToken(),Ar(Ze,he)}function l2(he,Ze){switch(Ze){case 1:if(K1(he))er(he,x.JSX_fragment_has_no_corresponding_closing_tag);else{let kt=he.tagName,ir=Math.min(_c(Ve,kt.pos),kt.end);Ye(ir,kt.end,x.JSX_element_0_has_no_corresponding_closing_tag,uU(Ve,he.tagName))}return;case 31:case 7:return;case 12:case 13:return B3();case 19:return gs(!1);case 30:return Nf(!1,void 0,he);default:return $.assertNever(Ze)}}function WP(he){let Ze=[],kt=Y(),ir=Sr;for(Sr|=16384;;){let Or=l2(he,Qe=n.reScanJsxToken());if(!Or||(Ze.push(Or),Tv(he)&&Or?.kind===285&&!OA(Or.openingElement.tagName,Or.closingElement.tagName)&&OA(he.tagName,Or.closingElement.tagName)))break}return Sr=ir,Yc(Ze,kt)}function bM(){let he=Y();return Ar(T.createJsxAttributes(Uc(13,gg)),he)}function kq(he){let Ze=Y();if($r(30),pe()===32)return wr(),Ar(T.createJsxOpeningFragment(),Ze);let kt=qi(),ir=(Nn&524288)===0?mp():void 0,Or=bM(),en;return pe()===32?(wr(),en=T.createJsxOpeningElement(kt,ir,Or)):($r(44),$r(32,void 0,!1)&&(he?Ge():wr()),en=T.createJsxSelfClosingElement(kt,ir,Or)),Ar(en,Ze)}function qi(){let he=Y(),Ze=rh();if(Ev(Ze))return Ze;let kt=Ze;for(;$a(25);)kt=Ar(re(kt,Mr(!0,!1,!1)),he);return kt}function rh(){let he=Y();_r();let Ze=pe()===110,kt=H();return $a(59)?(_r(),Ar(T.createJsxNamespacedName(kt,H()),he)):Ze?Ar(T.createToken(110),he):kt}function gs(he){let Ze=Y();if(!$r(19))return;let kt,ir;return pe()!==20&&(he||(kt=bs(26)),ir=eh()),he?$r(20):$r(20,void 0,!1)&&wr(),Ar(T.createJsxExpression(kt,ir),Ze)}function gg(){if(pe()===19)return Ii();let he=Y();return Ar(T.createJsxAttribute(jC(),$3()),he)}function $3(){if(pe()===64){if(pn()===11)return cr();if(pe()===19)return gs(!0);if(pe()===30)return Nf(!0);xr(x.or_JSX_element_expected)}}function jC(){let he=Y();_r();let Ze=H();return $a(59)?(_r(),Ar(T.createJsxNamespacedName(Ze,H()),he)):Ze}function Ii(){let he=Y();$r(19),$r(26);let Ze=eh();return $r(20),Ar(T.createJsxSpreadAttribute(Ze),he)}function xM(he,Ze){let kt=Y();$r(31);let ir=qi();return $r(32,void 0,!1)&&(Ze||!OA(he.tagName,ir)?Ge():wr()),Ar(T.createJsxClosingElement(ir),kt)}function o7(he){let Ze=Y();return $r(31),$r(32,x.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(he?Ge():wr()),Ar(T.createJsxJsxClosingFragment(),Ze)}function Pm(){$.assert(ke!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let he=Y();$r(30);let Ze=tp();$r(32);let kt=ME();return Ar(T.createTypeAssertion(Ze,kt),he)}function Mb(){return Ge(),Bf(pe())||pe()===23||ev()}function Ov(){return pe()===29&&lr(Mb)}function BC(he){if(he.flags&64)return!0;if(bF(he)){let Ze=he.expression;for(;bF(Ze)&&!(Ze.flags&64);)Ze=Ze.expression;if(Ze.flags&64){for(;bF(he);)he.flags|=64,he=he.expression;return!0}}return!1}function U3(he,Ze,kt){let ir=Mr(!0,!0,!0),Or=kt||BC(Ze),en=Or?ae(Ze,kt,ir):re(Ze,ir);if(Or&&Aa(en.name)&&er(en.name,x.An_optional_chain_cannot_contain_private_identifiers),VT(Ze)&&Ze.typeArguments){let _o=Ze.typeArguments.pos-1,Mi=_c(Ve,Ze.typeArguments.end)+1;Ye(_o,Mi,x.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Ar(en,he)}function $C(he,Ze,kt){let ir;if(pe()===24)ir=Ql(80,!0,x.An_element_access_expression_should_take_an_argument);else{let en=Cn(eh);jy(en)&&(en.text=Gp(en.text)),ir=en}$r(24);let Or=kt||BC(Ze)?me(Ze,kt,ir):_e(Ze,ir);return Ar(Or,he)}function Zy(he,Ze,kt){for(;;){let ir,Or=!1;if(kt&&Ov()?(ir=Nu(29),Or=Bf(pe())):Or=$a(25),Or){Ze=U3(he,Ze,ir);continue}if((ir||!pr())&&$a(23)){Ze=$C(he,Ze,ir);continue}if(ev()){Ze=!ir&&Ze.kind===234?I0(he,Ze.expression,ir,Ze.typeArguments):I0(he,Ze,ir,void 0);continue}if(!ir){if(pe()===54&&!n.hasPrecedingLineBreak()){Ge(),Ze=Ar(T.createNonNullExpression(Ze),he);continue}let en=cn(ow);if(en){Ze=Ar(T.createExpressionWithTypeArguments(Ze,en),he);continue}}return Ze}}function ev(){return pe()===15||pe()===16}function I0(he,Ze,kt,ir){let Or=T.createTaggedTemplateExpression(Ze,ir,pe()===15?(zn(!0),cr()):Yn(!0));return(kt||Ze.flags&64)&&(Or.flags|=64),Or.questionDotToken=kt,Ar(Or,he)}function Qh(he,Ze){for(;;){Ze=Zy(he,Ze,!0);let kt,ir=bs(29);if(ir&&(kt=cn(ow),ev())){Ze=I0(he,Ze,ir,kt);continue}if(kt||pe()===21){!ir&&Ze.kind===234&&(kt=Ze.typeArguments,Ze=Ze.expression);let Or=jE(),en=ir||BC(Ze)?Oe(Ze,ir,kt,Or):le(Ze,kt,Or);Ze=Ar(en,he);continue}if(ir){let Or=Ql(80,!1,x.Identifier_expected);Ze=Ar(ae(Ze,ir,Or),he)}break}return Ze}function jE(){$r(21);let he=Nd(11,JS);return $r(22),he}function ow(){if((Nn&524288)!==0||Rt()!==30)return;Ge();let he=Nd(20,tp);if(ii()===32)return Ge(),he&&a7()?he:void 0}function a7(){switch(pe()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return n.hasPrecedingLineBreak()||g1()||!sm()}function aw(){switch(pe()){case 15:n.getTokenFlags()&26656&&zn(!1);case 9:case 10:case 11:return cr();case 110:case 108:case 106:case 112:case 97:return o_();case 21:return UC();case 23:return zC();case 19:return BE();case 134:if(!lr(P0))break;return qC();case 60:return Wc();case 86:return F_();case 100:return qC();case 105:return p2();case 44:case 69:if(Rn()===14)return cr();break;case 16:return Yn(!1);case 81:return Di()}return Yu(x.Expression_expected)}function UC(){let he=Y(),Ze=ot();$r(21);let kt=Cn(eh);return $r(22),Oi(Ar(ue(kt),he),Ze)}function s7(){let he=Y();$r(26);let Ze=Sh(!0);return Ar(T.createSpreadElement(Ze),he)}function u2(){return pe()===26?s7():pe()===28?Ar(T.createOmittedExpression(),Y()):Sh(!0)}function JS(){return Ls(a,u2)}function zC(){let he=Y(),Ze=n.getTokenStart(),kt=$r(23),ir=n.hasPrecedingLineBreak(),Or=Nd(15,u2);return uu(23,24,kt,Ze),Ar(Z(Or,ir),he)}function sw(){let he=Y(),Ze=ot();if(bs(26)){let La=Sh(!0);return Oi(Ar(T.createSpreadAssignment(La),he),Ze)}let kt=na(!0);if(On(139))return dw(he,Ze,kt,178,0);if(On(153))return dw(he,Ze,kt,179,0);let ir=bs(42),Or=bn(),en=jn(),_o=bs(58),Mi=bs(54);if(ir||pe()===21||pe()===30)return _w(he,Ze,kt,ir,en,_o,Mi);let si;if(Or&&pe()!==59){let La=bs(64),hu=La?Cn(()=>Sh(!0)):void 0;si=T.createShorthandPropertyAssignment(en,hu),si.equalsToken=La}else{$r(59);let La=Cn(()=>Sh(!0));si=T.createPropertyAssignment(en,La)}return si.modifiers=kt,si.questionToken=_o,si.exclamationToken=Mi,Oi(Ar(si,he),Ze)}function BE(){let he=Y(),Ze=n.getTokenStart(),kt=$r(19),ir=n.hasPrecedingLineBreak(),Or=Nd(12,sw,!0);return uu(19,20,kt,Ze),Ar(Q(Or,ir),he)}function qC(){let he=pr();Eo(!1);let Ze=Y(),kt=ot(),ir=na(!1);$r(100);let Or=bs(42),en=Or?1:0,_o=Pt(ir,oz)?2:0,Mi=en&&_o?Ct(tv):en?Ee(tv):_o?ye(tv):tv(),si=dt(),zo=Po(en|_o),La=oi(59,!1),hu=JC(en|_o);Eo(he);let Zl=T.createFunctionExpression(ir,Or,Mi,si,zo,La,hu);return Oi(Ar(Zl,Ze),kt)}function tv(){return gn()?lf():void 0}function p2(){let he=Y();if($r(105),$a(25)){let en=Hp();return Ar(T.createMetaProperty(105,en),he)}let Ze=Y(),kt=Zy(Ze,aw(),!1),ir;kt.kind===234&&(ir=kt.typeArguments,kt=kt.expression),pe()===29&&xr(x.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,uU(Ve,kt));let Or=pe()===21?jE():void 0;return Ar(be(kt,ir,Or),he)}function Zx(he,Ze){let kt=Y(),ir=ot(),Or=n.getTokenStart(),en=$r(19,Ze);if(en||he){let _o=n.hasPrecedingLineBreak(),Mi=Uc(1,yg);uu(19,20,en,Or);let si=Oi(Ar(De(Mi,_o),kt),ir);return pe()===64&&(xr(x.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Ge()),si}else{let _o=Hy();return Oi(Ar(De(_o,void 0),kt),ir)}}function JC(he,Ze){let kt=at();vo(!!(he&1));let ir=Et();ya(!!(he&2));let Or=$t;$t=!1;let en=pr();en&&Eo(!1);let _o=Zx(!!(he&16),Ze);return en&&Eo(!0),$t=Or,vo(kt),ya(ir),_o}function _f(){let he=Y(),Ze=ot();return $r(27),Oi(Ar(T.createEmptyStatement(),he),Ze)}function GP(){let he=Y(),Ze=ot();$r(101);let kt=n.getTokenStart(),ir=$r(21),Or=Cn(eh);uu(21,22,ir,kt);let en=yg(),_o=$a(93)?yg():void 0;return Oi(Ar(Fe(Or,en,_o),he),Ze)}function Xx(){let he=Y(),Ze=ot();$r(92);let kt=yg();$r(117);let ir=n.getTokenStart(),Or=$r(21),en=Cn(eh);return uu(21,22,Or,ir),$a(27),Oi(Ar(T.createDoStatement(kt,en),he),Ze)}function cw(){let he=Y(),Ze=ot();$r(117);let kt=n.getTokenStart(),ir=$r(21),Or=Cn(eh);uu(21,22,ir,kt);let en=yg();return Oi(Ar(Be(Or,en),he),Ze)}function z3(){let he=Y(),Ze=ot();$r(99);let kt=bs(135);$r(21);let ir;pe()!==27&&(pe()===115||pe()===121||pe()===87||pe()===160&&lr(jp)||pe()===135&&lr(d7)?ir=K3(!0):ir=Es(eh));let Or;if(kt?$r(165):$a(165)){let en=Cn(()=>Sh(!0));$r(22),Or=ze(kt,ir,en,yg())}else if($a(103)){let en=Cn(eh);$r(22),Or=T.createForInStatement(ir,en,yg())}else{$r(27);let en=pe()!==27&&pe()!==22?Cn(eh):void 0;$r(27);let _o=pe()!==22?Cn(eh):void 0;$r(22),Or=de(ir,en,_o,yg())}return Oi(Ar(Or,he),Ze)}function Yx(he){let Ze=Y(),kt=ot();$r(he===253?83:88);let ir=_s()?void 0:Yu();sl();let Or=he===253?T.createBreakStatement(ir):T.createContinueStatement(ir);return Oi(Ar(Or,Ze),kt)}function TM(){let he=Y(),Ze=ot();$r(107);let kt=_s()?void 0:Cn(eh);return sl(),Oi(Ar(T.createReturnStatement(kt),he),Ze)}function c7(){let he=Y(),Ze=ot();$r(118);let kt=n.getTokenStart(),ir=$r(21),Or=Cn(eh);uu(21,22,ir,kt);let en=yc(67108864,yg);return Oi(Ar(T.createWithStatement(Or,en),he),Ze)}function l7(){let he=Y(),Ze=ot();$r(84);let kt=Cn(eh);$r(59);let ir=Uc(3,yg);return Oi(Ar(T.createCaseClause(kt,ir),he),Ze)}function Cq(){let he=Y();$r(90),$r(59);let Ze=Uc(3,yg);return Ar(T.createDefaultClause(Ze),he)}function u7(){return pe()===84?l7():Cq()}function lw(){let he=Y();$r(19);let Ze=Uc(2,u7);return $r(20),Ar(T.createCaseBlock(Ze),he)}function _2(){let he=Y(),Ze=ot();$r(109),$r(21);let kt=Cn(eh);$r(22);let ir=lw();return Oi(Ar(T.createSwitchStatement(kt,ir),he),Ze)}function EM(){let he=Y(),Ze=ot();$r(111);let kt=n.hasPrecedingLineBreak()?void 0:Cn(eh);return kt===void 0&&(Kt++,kt=Ar(U(""),Y())),sc()||Ys(kt),Oi(Ar(T.createThrowStatement(kt),he),Ze)}function uw(){let he=Y(),Ze=ot();$r(113);let kt=Zx(!1),ir=pe()===85?q3():void 0,Or;return(!ir||pe()===98)&&($r(98,x.catch_or_finally_expected),Or=Zx(!1)),Oi(Ar(T.createTryStatement(kt,ir,Or),he),Ze)}function q3(){let he=Y();$r(85);let Ze;$a(21)?(Ze=VS(),$r(22)):Ze=void 0;let kt=Zx(!1);return Ar(T.createCatchClause(Ze,kt),he)}function O_(){let he=Y(),Ze=ot();return $r(89),sl(),Oi(Ar(T.createDebuggerStatement(),he),Ze)}function df(){let he=Y(),Ze=ot(),kt,ir=pe()===21,Or=Cn(eh);return ct(Or)&&$a(59)?kt=T.createLabeledStatement(Or,yg()):(sc()||Ys(Or),kt=Ae(Or),ir&&(Ze=!1)),Oi(Ar(kt,he),Ze)}function p7(){return Ge(),Bf(pe())&&!n.hasPrecedingLineBreak()}function Zh(){return Ge(),pe()===86&&!n.hasPrecedingLineBreak()}function P0(){return Ge(),pe()===100&&!n.hasPrecedingLineBreak()}function HP(){return Ge(),(Bf(pe())||pe()===9||pe()===10||pe()===11)&&!n.hasPrecedingLineBreak()}function Fv(){for(;;)switch(pe()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return KP();case 135:return Nm();case 120:case 156:case 166:return X1();case 144:case 145:return G3();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let he=pe();if(Ge(),n.hasPrecedingLineBreak())return!1;if(he===138&&pe()===156)return!0;continue;case 162:return Ge(),pe()===19||pe()===80||pe()===95;case 102:return Ge(),pe()===166||pe()===11||pe()===42||pe()===19||Bf(pe());case 95:let Ze=Ge();if(Ze===156&&(Ze=lr(Ge)),Ze===64||Ze===42||Ze===19||Ze===90||Ze===130||Ze===60)return!0;continue;case 126:Ge();continue;default:return!1}}function VC(){return lr(Fv)}function $E(){switch(pe()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return VC()||lr(Ob);case 87:case 95:return VC();case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return VC()||!lr(p7);default:return sm()}}function _7(){return Ge(),gn()||pe()===19||pe()===23}function Dq(){return lr(_7)}function jp(){return J3(!0)}function kM(){return Ge(),pe()===64||pe()===27||pe()===59}function J3(he){return Ge(),he&&pe()===165?lr(kM):(gn()||pe()===19)&&!n.hasPrecedingLineBreak()}function KP(){return lr(J3)}function d7(he){return Ge()===160?J3(he):!1}function Nm(){return lr(d7)}function yg(){switch(pe()){case 27:return _f();case 19:return Zx(!1);case 115:return cl(Y(),ot(),void 0);case 121:if(Dq())return cl(Y(),ot(),void 0);break;case 135:if(Nm())return cl(Y(),ot(),void 0);break;case 160:if(KP())return cl(Y(),ot(),void 0);break;case 100:return $i(Y(),ot(),void 0);case 86:return cm(Y(),ot(),void 0);case 101:return GP();case 92:return Xx();case 117:return cw();case 99:return z3();case 88:return Yx(252);case 83:return Yx(253);case 107:return TM();case 118:return c7();case 109:return _2();case 111:return EM();case 113:case 85:case 98:return uw();case 89:return O_();case 60:return pw();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(VC())return pw();break}return df()}function V3(he){return he.kind===138}function pw(){let he=Y(),Ze=ot(),kt=na(!0);if(Pt(kt,V3)){let Or=vg(he);if(Or)return Or;for(let en of kt)en.flags|=33554432;return yc(33554432,()=>W3(he,Ze,kt))}else return W3(he,Ze,kt)}function vg(he){return yc(33554432,()=>{let Ze=Mu(Sr,he);if(Ze)return Dp(Ze)})}function W3(he,Ze,kt){switch(pe()){case 115:case 121:case 87:case 160:case 135:return cl(he,Ze,kt);case 100:return $i(he,Ze,kt);case 86:return cm(he,Ze,kt);case 120:return nv(he,Ze,kt);case 156:return qE(he,Ze,kt);case 94:return ase(he,Ze,kt);case 162:case 144:case 145:return JQ(he,Ze,kt);case 102:return tN(he,Ze,kt);case 95:switch(Ge(),pe()){case 90:case 64:return hw(he,Ze,kt);case 130:return XP(he,Ze,kt);default:return Oq(he,Ze,kt)}default:if(kt){let ir=Ql(283,!0,x.Declaration_expected);return KU(ir,he),ir.modifiers=kt,ir}return}}function eT(){return Ge()===11}function f7(){return Ge(),pe()===161||pe()===64}function G3(){return Ge(),!n.hasPrecedingLineBreak()&&(bn()||pe()===11)}function rv(he,Ze){if(pe()!==19){if(he&4){as();return}if(_s()){sl();return}}return JC(he,Ze)}function m7(){let he=Y();if(pe()===28)return Ar(T.createOmittedExpression(),he);let Ze=bs(26),kt=UE(),ir=Lb();return Ar(T.createBindingElement(Ze,void 0,kt,ir),he)}function CM(){let he=Y(),Ze=bs(26),kt=gn(),ir=jn(),Or;kt&&pe()!==59?(Or=ir,ir=void 0):($r(59),Or=UE());let en=Lb();return Ar(T.createBindingElement(Ze,ir,Or,en),he)}function h7(){let he=Y();$r(19);let Ze=Cn(()=>Nd(9,CM));return $r(20),Ar(T.createObjectBindingPattern(Ze),he)}function H3(){let he=Y();$r(23);let Ze=Cn(()=>Nd(10,m7));return $r(24),Ar(T.createArrayBindingPattern(Ze),he)}function g7(){return pe()===19||pe()===23||pe()===81||gn()}function UE(he){return pe()===23?H3():pe()===19?h7():lf(he)}function Zg(){return VS(!0)}function VS(he){let Ze=Y(),kt=ot(),ir=UE(x.Private_identifiers_are_not_allowed_in_variable_declarations),Or;he&&ir.kind===80&&pe()===54&&!n.hasPrecedingLineBreak()&&(Or=o_());let en=am(),_o=th(pe())?void 0:Lb(),Mi=ut(ir,Or,en,_o);return Oi(Ar(Mi,Ze),kt)}function K3(he){let Ze=Y(),kt=0;switch(pe()){case 115:break;case 121:kt|=1;break;case 87:kt|=2;break;case 160:kt|=4;break;case 135:$.assert(Nm()),kt|=6,Ge();break;default:$.fail()}Ge();let ir;if(pe()===165&&lr(Q3))ir=Hy();else{let Or=Zt();ai(he),ir=Nd(8,he?VS:Zg),ai(Or)}return Ar(je(ir,kt),Ze)}function Q3(){return Wf()&&Ge()===22}function cl(he,Ze,kt){let ir=K3(!1);sl();let Or=Ce(kt,ir);return Oi(Ar(Or,he),Ze)}function $i(he,Ze,kt){let ir=Et(),Or=TS(kt);$r(100);let en=bs(42),_o=Or&2048?tv():lf(),Mi=en?1:0,si=Or&1024?2:0,zo=dt();Or&32&&ya(!0);let La=Po(Mi|si),hu=oi(59,!1),Zl=rv(Mi|si,x.or_expected);ya(ir);let ll=T.createFunctionDeclaration(kt,en,_o,zo,La,hu,Zl);return Oi(Ar(ll,he),Ze)}function Xy(){if(pe()===137)return $r(137);if(pe()===11&&lr(Ge)===21)return cn(()=>{let he=cr();return he.text==="constructor"?he:void 0})}function Od(he,Ze,kt){return cn(()=>{if(Xy()){let ir=dt(),Or=Po(0),en=oi(59,!1),_o=rv(0,x.or_expected),Mi=T.createConstructorDeclaration(kt,Or,_o);return Mi.typeParameters=ir,Mi.type=en,Oi(Ar(Mi,he),Ze)}})}function _w(he,Ze,kt,ir,Or,en,_o,Mi){let si=ir?1:0,zo=Pt(kt,oz)?2:0,La=dt(),hu=Po(si|zo),Zl=oi(59,!1),ll=rv(si|zo,Mi),N0=T.createMethodDeclaration(kt,ir,Or,en,La,hu,Zl,ll);return N0.exclamationToken=_o,Oi(Ar(N0,he),Ze)}function Z3(he,Ze,kt,ir,Or){let en=!Or&&!n.hasPrecedingLineBreak()?bs(54):void 0,_o=am(),Mi=Ls(90112,Lb);Mp(ir,_o,Mi);let si=T.createPropertyDeclaration(kt,ir,Or||en,_o,Mi);return Oi(Ar(si,he),Ze)}function QP(he,Ze,kt){let ir=bs(42),Or=jn(),en=bs(58);return ir||pe()===21||pe()===30?_w(he,Ze,kt,ir,Or,en,void 0,x.or_expected):Z3(he,Ze,kt,Or,en)}function dw(he,Ze,kt,ir,Or){let en=jn(),_o=dt(),Mi=Po(0),si=oi(59,!1),zo=rv(Or),La=ir===178?T.createGetAccessorDeclaration(kt,en,Mi,si,zo):T.createSetAccessorDeclaration(kt,en,Mi,zo);return La.typeParameters=_o,mg(La)&&(La.type=si),Oi(Ar(La,he),Ze)}function X3(){let he;if(pe()===60)return!0;for(;eC(pe());){if(he=pe(),ome(he))return!0;Ge()}if(pe()===42||(st()&&(he=pe(),Ge()),pe()===23))return!0;if(he!==void 0){if(!Uh(he)||he===153||he===139)return!0;switch(pe()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return _s()}}return!1}function B(he,Ze,kt){Nu(126);let ir=Pe(),Or=Oi(Ar(T.createClassStaticBlockDeclaration(ir),he),Ze);return Or.modifiers=kt,Or}function Pe(){let he=at(),Ze=Et();vo(!1),ya(!0);let kt=Zx(!1);return vo(he),ya(Ze),kt}function Wt(){if(Et()&&pe()===135){let he=Y(),Ze=Yu(x.Expression_expected);Ge();let kt=Zy(he,Ze,!0);return Qh(he,kt)}return iw()}function ln(){let he=Y();if(!$a(60))return;let Ze=Bt(Wt);return Ar(T.createDecorator(Ze),he)}function Fo(he,Ze,kt){let ir=Y(),Or=pe();if(pe()===87&&Ze){if(!cn(ua))return}else{if(kt&&pe()===126&&lr(eN))return;if(he&&pe()===126)return;if(!ep())return}return Ar(G(Or),ir)}function na(he,Ze,kt){let ir=Y(),Or,en,_o,Mi=!1,si=!1,zo=!1;if(he&&pe()===60)for(;en=ln();)Or=jt(Or,en);for(;_o=Fo(Mi,Ze,kt);)_o.kind===126&&(Mi=!0),Or=jt(Or,_o),si=!0;if(si&&he&&pe()===60)for(;en=ln();)Or=jt(Or,en),zo=!0;if(zo)for(;_o=Fo(Mi,Ze,kt);)_o.kind===126&&(Mi=!0),Or=jt(Or,_o);return Or&&Yc(Or,ir)}function Ya(){let he;if(pe()===134){let Ze=Y();Ge();let kt=Ar(G(134),Ze);he=Yc([kt],Ze)}return he}function ra(){let he=Y(),Ze=ot();if(pe()===27)return Ge(),Oi(Ar(T.createSemicolonClassElement(),he),Ze);let kt=na(!0,!0,!0);if(pe()===126&&lr(eN))return B(he,Ze,kt);if(On(139))return dw(he,Ze,kt,178,0);if(On(153))return dw(he,Ze,kt,179,0);if(pe()===137||pe()===11){let ir=Od(he,Ze,kt);if(ir)return ir}if(lp())return f1(he,Ze,kt);if(Bf(pe())||pe()===11||pe()===9||pe()===10||pe()===42||pe()===23)if(Pt(kt,V3)){for(let Or of kt)Or.flags|=33554432;return yc(33554432,()=>QP(he,Ze,kt))}else return QP(he,Ze,kt);if(kt){let ir=Ql(80,!0,x.Declaration_expected);return Z3(he,Ze,kt,ir,void 0)}return $.fail("Should not have attempted to parse class member declaration.")}function Wc(){let he=Y(),Ze=ot(),kt=na(!0);if(pe()===86)return bh(he,Ze,kt,232);let ir=Ql(283,!0,x.Expression_expected);return KU(ir,he),ir.modifiers=kt,ir}function F_(){return bh(Y(),ot(),void 0,232)}function cm(he,Ze,kt){return bh(he,Ze,kt,264)}function bh(he,Ze,kt,ir){let Or=Et();$r(86);let en=fw(),_o=dt();Pt(kt,fF)&&ya(!0);let Mi=WC(),si;$r(19)?(si=zE(),$r(20)):si=Hy(),ya(Or);let zo=ir===264?T.createClassDeclaration(kt,en,_o,Mi,si):T.createClassExpression(kt,en,_o,Mi,si);return Oi(Ar(zo,he),Ze)}function fw(){return gn()&&!xh()?N_(gn()):void 0}function xh(){return pe()===119&&lr(yy)}function WC(){if(Y3())return Uc(22,y7)}function y7(){let he=Y(),Ze=pe();$.assert(Ze===96||Ze===119),Ge();let kt=Nd(7,y1);return Ar(T.createHeritageClause(Ze,kt),he)}function y1(){let he=Y(),Ze=iw();if(Ze.kind===234)return Ze;let kt=mp();return Ar(T.createExpressionWithTypeArguments(Ze,kt),he)}function mp(){return pe()===30?xe(20,tp,30,32):void 0}function Y3(){return pe()===96||pe()===119}function zE(){return Uc(5,ra)}function nv(he,Ze,kt){$r(120);let ir=Yu(),Or=dt(),en=WC(),_o=Fb(),Mi=T.createInterfaceDeclaration(kt,ir,Or,en,_o);return Oi(Ar(Mi,he),Ze)}function qE(he,Ze,kt){$r(156),n.hasPrecedingLineBreak()&&xr(x.Line_break_not_permitted_here);let ir=Yu(),Or=dt();$r(64);let en=pe()===141&&cn(t7)||tp();sl();let _o=T.createTypeAliasDeclaration(kt,ir,Or,en);return Oi(Ar(_o,he),Ze)}function ZP(){let he=Y(),Ze=ot(),kt=jn(),ir=Cn(Lb);return Oi(Ar(T.createEnumMember(kt,ir),he),Ze)}function ase(he,Ze,kt){$r(94);let ir=Yu(),Or;$r(19)?(Or=Ot(()=>Nd(6,ZP)),$r(20)):Or=Hy();let en=T.createEnumDeclaration(kt,ir,Or);return Oi(Ar(en,he),Ze)}function Aq(){let he=Y(),Ze;return $r(19)?(Ze=Uc(1,yg),$r(20)):Ze=Hy(),Ar(T.createModuleBlock(Ze),he)}function v7(he,Ze,kt,ir){let Or=ir&32,en=ir&8?Hp():Yu(),_o=$a(25)?v7(Y(),!1,void 0,8|Or):Aq(),Mi=T.createModuleDeclaration(kt,en,_o,ir);return Oi(Ar(Mi,he),Ze)}function wq(he,Ze,kt){let ir=0,Or;pe()===162?(Or=Yu(),ir|=2048):(Or=cr(),Or.text=Gp(Or.text));let en;pe()===19?en=Aq():sl();let _o=T.createModuleDeclaration(kt,Or,en,ir);return Oi(Ar(_o,he),Ze)}function JQ(he,Ze,kt){let ir=0;if(pe()===162)return wq(he,Ze,kt);if($a(145))ir|=32;else if($r(144),pe()===11)return wq(he,Ze,kt);return v7(he,Ze,kt,ir)}function GC(){return pe()===149&&lr(S7)}function S7(){return Ge()===21}function eN(){return Ge()===19}function sse(){return Ge()===44}function XP(he,Ze,kt){$r(130),$r(145);let ir=Yu();sl();let Or=T.createNamespaceExportDeclaration(ir);return Or.modifiers=kt,Oi(Ar(Or,he),Ze)}function tN(he,Ze,kt){$r(102);let ir=n.getTokenFullStart(),Or;bn()&&(Or=Yu());let en;if(Or?.escapedText==="type"&&(pe()!==161||bn()&&lr(f7))&&(bn()||ri())?(en=156,Or=bn()?Yu():void 0):Or?.escapedText==="defer"&&(pe()===161?!lr(eT):pe()!==28&&pe()!==64)&&(en=166,Or=bn()?Yu():void 0),Or&&!Pq()&&en!==166)return DM(he,Ze,kt,Or,en===156);let _o=Iq(Or,ir,en,void 0),Mi=rN(),si=b7();sl();let zo=T.createImportDeclaration(kt,_o,Mi,si);return Oi(Ar(zo,he),Ze)}function Iq(he,Ze,kt,ir=!1){let Or;return(he||pe()===42||pe()===19)&&(Or=AM(he,Ze,kt,ir),$r(161)),Or}function b7(){let he=pe();if((he===118||he===132)&&!n.hasPrecedingLineBreak())return HC(he)}function Ua(){let he=Y(),Ze=Bf(pe())?Hp():Xa(11);$r(59);let kt=Sh(!0);return Ar(T.createImportAttribute(Ze,kt),he)}function HC(he,Ze){let kt=Y();Ze||$r(he);let ir=n.getTokenStart();if($r(19)){let Or=n.hasPrecedingLineBreak(),en=Nd(24,Ua,!0);if(!$r(20)){let _o=Yr(_t);_o&&_o.code===x._0_expected.code&&ac(_o,tF(ve,Ve,ir,1,x.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Ar(T.createImportAttributes(en,Or,he),kt)}else{let Or=Yc([],Y(),void 0,!1);return Ar(T.createImportAttributes(Or,!1,he),kt)}}function ri(){return pe()===42||pe()===19}function Pq(){return pe()===28||pe()===161}function DM(he,Ze,kt,ir,Or){$r(64);let en=YP();sl();let _o=T.createImportEqualsDeclaration(kt,Or,ir,en);return Oi(Ar(_o,he),Ze)}function AM(he,Ze,kt,ir){let Or;return(!he||$a(28))&&(ir&&n.setSkipJsDocLeadingAsterisks(!0),pe()===42?Or=cse():Or=WQ(276),ir&&n.setSkipJsDocLeadingAsterisks(!1)),Ar(T.createImportClause(kt,he,Or),Ze)}function YP(){return GC()?VQ():Ft(!1)}function VQ(){let he=Y();$r(149),$r(21);let Ze=rN();return $r(22),Ar(T.createExternalModuleReference(Ze),he)}function rN(){if(pe()===11){let he=cr();return he.text=Gp(he.text),he}else return eh()}function cse(){let he=Y();$r(42),$r(130);let Ze=Yu();return Ar(T.createNamespaceImport(Ze),he)}function wM(){return Bf(pe())||pe()===11}function jb(he){return pe()===11?cr():he()}function WQ(he){let Ze=Y(),kt=he===276?T.createNamedImports(xe(23,lse,19,20)):T.createNamedExports(xe(23,mw,19,20));return Ar(kt,Ze)}function mw(){let he=ot();return Oi(Nq(282),he)}function lse(){return Nq(277)}function Nq(he){let Ze=Y(),kt=Uh(pe())&&!bn(),ir=n.getTokenStart(),Or=n.getTokenEnd(),en=!1,_o,Mi=!0,si=jb(Hp);if(si.kind===80&&si.escapedText==="type")if(pe()===130){let hu=Hp();if(pe()===130){let Zl=Hp();wM()?(en=!0,_o=hu,si=jb(La),Mi=!1):(_o=si,si=Zl,Mi=!1)}else wM()?(_o=si,Mi=!1,si=jb(La)):(en=!0,si=hu)}else wM()&&(en=!0,si=jb(La));Mi&&pe()===130&&(_o=si,$r(130),si=jb(La)),he===277&&(si.kind!==80?(Ye(_c(Ve,si.pos),si.end,x.Identifier_expected),si=xv(Ql(80,!1),si.pos,si.pos)):kt&&Ye(ir,Or,x.Identifier_expected));let zo=he===277?T.createImportSpecifier(en,_o,si):T.createExportSpecifier(en,_o,si);return Ar(zo,Ze);function La(){return kt=Uh(pe())&&!bn(),ir=n.getTokenStart(),Or=n.getTokenEnd(),Hp()}}function GQ(he){return Ar(T.createNamespaceExport(jb(Hp)),he)}function Oq(he,Ze,kt){let ir=Et();ya(!0);let Or,en,_o,Mi=$a(156),si=Y();$a(42)?($a(130)&&(Or=GQ(si)),$r(161),en=rN()):(Or=WQ(280),(pe()===161||pe()===11&&!n.hasPrecedingLineBreak())&&($r(161),en=rN()));let zo=pe();en&&(zo===118||zo===132)&&!n.hasPrecedingLineBreak()&&(_o=HC(zo)),sl(),ya(ir);let La=T.createExportDeclaration(kt,Mi,Or,en,_o);return Oi(Ar(La,he),Ze)}function hw(he,Ze,kt){let ir=Et();ya(!0);let Or;$a(64)?Or=!0:$r(90);let en=Sh(!0);sl(),ya(ir);let _o=T.createExportAssignment(kt,Or,en);return Oi(Ar(_o,he),Ze)}let Bb;(he=>{he[he.SourceElements=0]="SourceElements",he[he.BlockStatements=1]="BlockStatements",he[he.SwitchClauses=2]="SwitchClauses",he[he.SwitchClauseStatements=3]="SwitchClauseStatements",he[he.TypeMembers=4]="TypeMembers",he[he.ClassMembers=5]="ClassMembers",he[he.EnumMembers=6]="EnumMembers",he[he.HeritageClauseElement=7]="HeritageClauseElement",he[he.VariableDeclarations=8]="VariableDeclarations",he[he.ObjectBindingElements=9]="ObjectBindingElements",he[he.ArrayBindingElements=10]="ArrayBindingElements",he[he.ArgumentExpressions=11]="ArgumentExpressions",he[he.ObjectLiteralMembers=12]="ObjectLiteralMembers",he[he.JsxAttributes=13]="JsxAttributes",he[he.JsxChildren=14]="JsxChildren",he[he.ArrayLiteralMembers=15]="ArrayLiteralMembers",he[he.Parameters=16]="Parameters",he[he.JSDocParameters=17]="JSDocParameters",he[he.RestProperties=18]="RestProperties",he[he.TypeParameters=19]="TypeParameters",he[he.TypeArguments=20]="TypeArguments",he[he.TupleElementTypes=21]="TupleElementTypes",he[he.HeritageClauses=22]="HeritageClauses",he[he.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",he[he.ImportAttributes=24]="ImportAttributes",he[he.JSDocComment=25]="JSDocComment",he[he.Count=26]="Count"})(Bb||(Bb={}));let IM;(he=>{he[he.False=0]="False",he[he.True=1]="True",he[he.Unknown=2]="Unknown"})(IM||(IM={}));let WS;(he=>{function Ze(zo,La,hu){sr("file.js",zo,99,void 0,1,0),n.setText(zo,La,hu),Qe=n.scan();let Zl=kt(),ll=Ht("file.js",99,1,!1,[],G(1),0,zs),N0=rF(_t,ll);return Se&&(ll.jsDocDiagnostics=rF(Se,ll)),uo(),Zl?{jsDocTypeExpression:Zl,diagnostics:N0}:void 0}he.parseJSDocTypeExpressionForTests=Ze;function kt(zo){let La=Y(),hu=(zo?$a:$r)(19),Zl=yc(16777216,Pv);(!zo||hu)&&Cp(20);let ll=T.createJSDocTypeExpression(Zl);return ft(ll),Ar(ll,La)}he.parseJSDocTypeExpression=kt;function ir(){let zo=Y(),La=$a(19),hu=Y(),Zl=Ft(!1);for(;pe()===81;)rr(),Mt(),Zl=Ar(T.createJSDocMemberName(Zl,Yu()),hu);La&&Cp(20);let ll=T.createJSDocNameReference(Zl);return ft(ll),Ar(ll,zo)}he.parseJSDocNameReference=ir;function Or(zo,La,hu){sr("",zo,99,void 0,1,0);let Zl=yc(16777216,()=>si(La,hu)),N0=rF(_t,{languageVariant:0,text:zo});return uo(),Zl?{jsDoc:Zl,diagnostics:N0}:void 0}he.parseIsolatedJSDocComment=Or;function en(zo,La,hu){let Zl=Qe,ll=_t.length,N0=Dr,Yy=yc(16777216,()=>si(La,hu));return xl(Yy,zo),Nn&524288&&(Se||(Se=[]),En(Se,_t,ll)),Qe=Zl,_t.length=ll,Dr=N0,Yy}he.parseJSDocComment=en;let _o;(zo=>{zo[zo.BeginningOfLine=0]="BeginningOfLine",zo[zo.SawAsterisk=1]="SawAsterisk",zo[zo.SavingComments=2]="SavingComments",zo[zo.SavingBackticks=3]="SavingBackticks"})(_o||(_o={}));let Mi;(zo=>{zo[zo.Property=1]="Property",zo[zo.Parameter=2]="Parameter",zo[zo.CallbackParameter=4]="CallbackParameter"})(Mi||(Mi={}));function si(zo=0,La){let hu=Ve,Zl=La===void 0?hu.length:zo+La;if(La=Zl-zo,$.assert(zo>=0),$.assert(zo<=Zl),$.assert(Zl<=hu.length),!iye(hu,zo))return;let ll,N0,Yy,JE,VE,tT=[],KC=[],gl=Sr;Sr|=1<<25;let Sd=n.scanRange(zo+3,La-5,WE);return Sr=gl,Sd;function WE(){let Fn=1,eo,po=zo-(hu.lastIndexOf(` +`,zo)+1)+4;function Xo(gu){eo||(eo=po),tT.push(gu),po+=gu.length}for(Mt();Lv(5););Lv(4)&&(Fn=0,po=0);e:for(;;){switch(pe()){case 60:x7(tT),VE||(VE=Y()),ju(P(po)),Fn=0,eo=void 0;break;case 4:tT.push(n.getTokenText()),Fn=0,po=0;break;case 42:let gu=n.getTokenText();Fn===1?(Fn=2,Xo(gu)):($.assert(Fn===0),Fn=1,po+=gu.length);break;case 5:$.assert(Fn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let Of=n.getTokenText();eo!==void 0&&po+Of.length>eo&&tT.push(Of.slice(eo-po)),po+=Of.length;break;case 1:break e;case 82:Fn=2,Xo(n.getTokenValue());break;case 19:Fn=2;let Mv=n.getTokenFullStart(),v1=n.getTokenEnd()-1,iv=we(v1);if(iv){JE||Om(tT),KC.push(Ar(T.createJSDocText(tT.join("")),JE??zo,Mv)),KC.push(iv),tT=[],JE=n.getTokenEnd();break}default:Fn=2,Xo(n.getTokenText());break}Fn===2?Ir(!1):Mt()}let ca=tT.join("").trimEnd();KC.length&&ca.length&&KC.push(Ar(T.createJSDocText(ca),JE??zo,VE)),KC.length&&ll&&$.assertIsDefined(VE,"having parsed tags implies that the end of the comment span should be set");let Dc=ll&&Yc(ll,N0,Yy);return Ar(T.createJSDocComment(KC.length?Yc(KC,zo,VE):ca.length?ca:void 0,Dc),zo,Zl)}function Om(Fn){for(;Fn.length&&(Fn[0]===` +`||Fn[0]==="\r");)Fn.shift()}function x7(Fn){for(;Fn.length;){let eo=Fn[Fn.length-1].trimEnd();if(eo==="")Fn.pop();else if(eo.lengthOf&&(Xo.push(nT.slice(Of-Fn)),gu=2),Fn+=nT.length;break;case 19:gu=2;let d2=n.getTokenFullStart(),PM=n.getTokenEnd()-1,jq=we(PM);jq?(ca.push(Ar(T.createJSDocText(Xo.join("")),Dc??po,d2)),ca.push(jq),Xo=[],Dc=n.getTokenEnd()):Mv(n.getTokenText());break;case 62:gu===3?gu=2:gu=3,Mv(n.getTokenText());break;case 82:gu!==3&&(gu=2),Mv(n.getTokenValue());break;case 42:if(gu===0){gu=1,Fn+=1;break}default:gu!==3&&(gu=2),Mv(n.getTokenText());break}gu===2||gu===3?v1=Ir(gu===3):v1=Mt()}Om(Xo);let iv=Xo.join("").trimEnd();if(ca.length)return iv.length&&ca.push(Ar(T.createJSDocText(iv),Dc??po)),Yc(ca,po,n.getTokenEnd());if(iv.length)return iv}function we(Fn){let eo=cn(Fr);if(!eo)return;Mt(),$b();let po=Tt(),Xo=[];for(;pe()!==20&&pe()!==4&&pe()!==1;)Xo.push(n.getTokenText()),Mt();let ca=eo==="link"?T.createJSDocLink:eo==="linkcode"?T.createJSDocLinkCode:T.createJSDocLinkPlain;return Ar(ca(po,Xo.join("")),Fn,n.getTokenEnd())}function Tt(){if(Bf(pe())){let Fn=Y(),eo=Hp();for(;$a(25);)eo=Ar(T.createQualifiedName(eo,pe()===81?Ql(80,!1):Hp()),Fn);for(;pe()===81;)rr(),Mt(),eo=Ar(T.createJSDocMemberName(eo,Yu()),Fn);return eo}}function Fr(){if(yi(),pe()===19&&Mt()===60&&Bf(Mt())){let Fn=n.getTokenValue();if(ji(Fn))return Fn}}function ji(Fn){return Fn==="link"||Fn==="linkcode"||Fn==="linkplain"}function ds(Fn,eo,po,Xo){return Ar(T.createJSDocUnknownTag(eo,q(Fn,Y(),po,Xo)),Fn)}function ju(Fn){Fn&&(ll?ll.push(Fn):(ll=[Fn],N0=Fn.pos),Yy=Fn.end)}function Sy(){return yi(),pe()===19?kt():void 0}function QC(){let Fn=Lv(23);Fn&&$b();let eo=Lv(62),po=lxe();return eo&&kc(62),Fn&&($b(),bs(64)&&eh(),$r(24)),{name:po,isBracketed:Fn}}function Rv(Fn){switch(Fn.kind){case 151:return!0;case 189:return Rv(Fn.elementType);default:return Ug(Fn)&&ct(Fn.typeName)&&Fn.typeName.escapedText==="Object"&&!Fn.typeArguments}}function T7(Fn,eo,po,Xo){let ca=Sy(),Dc=!ca;yi();let{name:gu,isBracketed:Of}=QC(),Mv=yi();Dc&&!lr(Fr)&&(ca=Sy());let v1=q(Fn,Y(),Xo,Mv),iv=xje(ca,gu,po,Xo);iv&&(ca=iv,Dc=!0);let nT=po===1?T.createJSDocPropertyTag(eo,gu,Of,ca,Dc,v1):T.createJSDocParameterTag(eo,gu,Of,ca,Dc,v1);return Ar(nT,Fn)}function xje(Fn,eo,po,Xo){if(Fn&&Rv(Fn.type)){let ca=Y(),Dc,gu;for(;Dc=cn(()=>nN(po,Xo,eo));)Dc.kind===342||Dc.kind===349?gu=jt(gu,Dc):Dc.kind===346&&er(Dc.tagName,x.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(gu){let Of=Ar(T.createJSDocTypeLiteral(gu,Fn.type.kind===189),ca);return Ar(T.createJSDocTypeExpression(Of),ca)}}}function Fq(Fn,eo,po,Xo){Pt(ll,Qne)&&Ye(eo.pos,n.getTokenStart(),x._0_tag_already_specified,oa(eo.escapedText));let ca=Sy();return Ar(T.createJSDocReturnTag(eo,ca,q(Fn,Y(),po,Xo)),Fn)}function E7(Fn,eo,po,Xo){Pt(ll,mz)&&Ye(eo.pos,n.getTokenStart(),x._0_tag_already_specified,oa(eo.escapedText));let ca=kt(!0),Dc=po!==void 0&&Xo!==void 0?q(Fn,Y(),po,Xo):void 0;return Ar(T.createJSDocTypeTag(eo,ca,Dc),Fn)}function Tje(Fn,eo,po,Xo){let Dc=pe()===23||lr(()=>Mt()===60&&Bf(Mt())&&ji(n.getTokenValue()))?void 0:ir(),gu=po!==void 0&&Xo!==void 0?q(Fn,Y(),po,Xo):void 0;return Ar(T.createJSDocSeeTag(eo,Dc,gu),Fn)}function Eje(Fn,eo,po,Xo){let ca=Sy(),Dc=q(Fn,Y(),po,Xo);return Ar(T.createJSDocThrowsTag(eo,ca,Dc),Fn)}function HQ(Fn,eo,po,Xo){let ca=Y(),Dc=nxe(),gu=n.getTokenFullStart(),Of=q(Fn,gu,po,Xo);Of||(gu=n.getTokenFullStart());let Mv=typeof Of!="string"?Yc(go([Ar(Dc,ca,gu)],Of),ca):Dc.text+Of;return Ar(T.createJSDocAuthorTag(eo,Mv),Fn)}function nxe(){let Fn=[],eo=!1,po=n.getToken();for(;po!==1&&po!==4;){if(po===30)eo=!0;else{if(po===60&&!eo)break;if(po===32&&eo){Fn.push(n.getTokenText()),n.resetTokenState(n.getTokenEnd());break}}Fn.push(n.getTokenText()),po=Mt()}return T.createJSDocText(Fn.join(""))}function ZC(Fn,eo,po,Xo){let ca=e6();return Ar(T.createJSDocImplementsTag(eo,ca,q(Fn,Y(),po,Xo)),Fn)}function kje(Fn,eo,po,Xo){let ca=e6();return Ar(T.createJSDocAugmentsTag(eo,ca,q(Fn,Y(),po,Xo)),Fn)}function Cje(Fn,eo,po,Xo){let ca=kt(!1),Dc=po!==void 0&&Xo!==void 0?q(Fn,Y(),po,Xo):void 0;return Ar(T.createJSDocSatisfiesTag(eo,ca,Dc),Fn)}function Dje(Fn,eo,po,Xo){let ca=n.getTokenFullStart(),Dc;bn()&&(Dc=Yu());let gu=Iq(Dc,ca,156,!0),Of=rN(),Mv=b7(),v1=po!==void 0&&Xo!==void 0?q(Fn,Y(),po,Xo):void 0;return Ar(T.createJSDocImportTag(eo,gu,Of,Mv,v1),Fn)}function e6(){let Fn=$a(19),eo=Y(),po=Rq();n.setSkipJsDocLeadingAsterisks(!0);let Xo=mp();n.setSkipJsDocLeadingAsterisks(!1);let ca=T.createExpressionWithTypeArguments(po,Xo),Dc=Ar(ca,eo);return Fn&&($b(),$r(20)),Dc}function Rq(){let Fn=Y(),eo=Xg();for(;$a(25);){let po=Xg();eo=Ar(re(eo,po),Fn)}return eo}function k7(Fn,eo,po,Xo,ca){return Ar(eo(po,q(Fn,Y(),Xo,ca)),Fn)}function ixe(Fn,eo,po,Xo){let ca=kt(!0);return $b(),Ar(T.createJSDocThisTag(eo,ca,q(Fn,Y(),po,Xo)),Fn)}function Lq(Fn,eo,po,Xo){let ca=kt(!0);return $b(),Ar(T.createJSDocEnumTag(eo,ca,q(Fn,Y(),po,Xo)),Fn)}function oxe(Fn,eo,po,Xo){let ca=Sy();yi();let Dc=KQ();$b();let gu=oe(po),Of;if(!ca||Rv(ca.type)){let v1,iv,nT,d2=!1;for(;(v1=cn(()=>Ije(po)))&&v1.kind!==346;)if(d2=!0,v1.kind===345)if(iv){let PM=xr(x.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);PM&&ac(PM,tF(ve,Ve,0,0,x.The_tag_was_first_specified_here));break}else iv=v1;else nT=jt(nT,v1);if(d2){let PM=ca&&ca.type.kind===189,jq=T.createJSDocTypeLiteral(nT,PM);ca=iv&&iv.typeExpression&&!Rv(iv.typeExpression.type)?iv.typeExpression:Ar(jq,Fn),Of=ca.end}}Of=Of||gu!==void 0?Y():(Dc??ca??eo).end,gu||(gu=q(Fn,Of,po,Xo));let Mv=T.createJSDocTypedefTag(eo,ca,Dc,gu);return Ar(Mv,Fn,Of)}function KQ(Fn){let eo=n.getTokenStart();if(!Bf(pe()))return;let po=Xg();if($a(25)){let Xo=KQ(!0),ca=T.createModuleDeclaration(void 0,po,Xo,Fn?8:void 0);return Ar(ca,eo)}return Fn&&(po.flags|=4096),po}function Mq(Fn){let eo=Y(),po,Xo;for(;po=cn(()=>nN(4,Fn));){if(po.kind===346){er(po.tagName,x.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Xo=jt(Xo,po)}return Yc(Xo||[],eo)}function axe(Fn,eo){let po=Mq(eo),Xo=cn(()=>{if(Lv(60)){let ca=P(eo);if(ca&&ca.kind===343)return ca}});return Ar(T.createJSDocSignature(void 0,po,Xo),Fn)}function sxe(Fn,eo,po,Xo){let ca=KQ();$b();let Dc=oe(po),gu=axe(Fn,po);Dc||(Dc=q(Fn,Y(),po,Xo));let Of=Dc!==void 0?Y():gu.end;return Ar(T.createJSDocCallbackTag(eo,gu,ca,Dc),Fn,Of)}function Aje(Fn,eo,po,Xo){$b();let ca=oe(po),Dc=axe(Fn,po);ca||(ca=q(Fn,Y(),po,Xo));let gu=ca!==void 0?Y():Dc.end;return Ar(T.createJSDocOverloadTag(eo,Dc,ca),Fn,gu)}function wje(Fn,eo){for(;!ct(Fn)||!ct(eo);)if(!ct(Fn)&&!ct(eo)&&Fn.right.escapedText===eo.right.escapedText)Fn=Fn.left,eo=eo.left;else return!1;return Fn.escapedText===eo.escapedText}function Ije(Fn){return nN(1,Fn)}function nN(Fn,eo,po){let Xo=!0,ca=!1;for(;;)switch(Mt()){case 60:if(Xo){let Dc=cxe(Fn,eo);return Dc&&(Dc.kind===342||Dc.kind===349)&&po&&(ct(Dc.name)||!wje(po,Dc.name.left))?!1:Dc}ca=!1;break;case 4:Xo=!0,ca=!1;break;case 42:ca&&(Xo=!1),ca=!0;break;case 80:Xo=!1;break;case 1:return!1}}function cxe(Fn,eo){$.assert(pe()===60);let po=n.getTokenFullStart();Mt();let Xo=Xg(),ca=yi(),Dc;switch(Xo.escapedText){case"type":return Fn===1&&E7(po,Xo);case"prop":case"property":Dc=1;break;case"arg":case"argument":case"param":Dc=6;break;case"template":return di(po,Xo,eo,ca);case"this":return ixe(po,Xo,eo,ca);default:return!1}return Fn&Dc?T7(po,Xo,Fn,eo):!1}function Pje(){let Fn=Y(),eo=Lv(23);eo&&$b();let po=na(!1,!0),Xo=Xg(x.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),ca;if(eo&&($b(),$r(64),ca=yc(16777216,Pv),$r(24)),!Op(Xo))return Ar(T.createTypeParameterDeclaration(po,Xo,void 0,ca),Fn)}function GE(){let Fn=Y(),eo=[];do{$b();let po=Pje();po!==void 0&&eo.push(po),yi()}while(Lv(28));return Yc(eo,Fn)}function di(Fn,eo,po,Xo){let ca=pe()===19?kt():void 0,Dc=GE();return Ar(T.createJSDocTemplateTag(eo,ca,Dc,q(Fn,Y(),po,Xo)),Fn)}function Lv(Fn){return pe()===Fn?(Mt(),!0):!1}function lxe(){let Fn=Xg();for($a(23)&&$r(24);$a(25);){let eo=Xg();$a(23)&&$r(24),Fn=Nr(Fn,eo)}return Fn}function Xg(Fn){if(!Bf(pe()))return Ql(80,!Fn,Fn||x.Identifier_expected);Kt++;let eo=n.getTokenStart(),po=n.getTokenEnd(),Xo=pe(),ca=Gp(n.getTokenValue()),Dc=Ar(U(ca,Xo),eo,po);return Mt(),Dc}}})(WS=t.JSDocParser||(t.JSDocParser={}))})(NA||(NA={}));var vut=new WeakSet;function Bir(t){vut.has(t)&&$.fail("Source file has already been incrementally parsed"),vut.add(t)}var Sut=new WeakSet;function $ir(t){return Sut.has(t)}function DNe(t){Sut.add(t)}var aye;(t=>{function n(F,M,U,J){if(J=J||$.shouldAssert(2),T(F,M,U,J),Cx(U))return F;if(F.statements.length===0)return NA.parseSourceFile(F.fileName,M,F.languageVersion,void 0,!0,F.scriptKind,F.setExternalModuleIndicator,F.jsDocParsingMode);Bir(F),NA.fixupParentReferences(F);let G=F.text,Z=C(F),Q=g(F,U);T(F,M,Q,J),$.assert(Q.span.start<=U.span.start),$.assert(Xn(Q.span)===Xn(U.span)),$.assert(Xn(WI(Q))===Xn(WI(U)));let re=WI(Q).length-Q.span.length;y(F,Q.span.start,Xn(Q.span),Xn(WI(Q)),re,G,M,J);let ae=NA.parseSourceFile(F.fileName,M,F.languageVersion,Z,!0,F.scriptKind,F.setExternalModuleIndicator,F.jsDocParsingMode);return ae.commentDirectives=a(F.commentDirectives,ae.commentDirectives,Q.span.start,Xn(Q.span),re,G,M,J),ae.impliedNodeFormat=F.impliedNodeFormat,nNe(F,ae),ae}t.updateSourceFile=n;function a(F,M,U,J,G,Z,Q,re){if(!F)return M;let ae,_e=!1;for(let le of F){let{range:Oe,type:be}=le;if(Oe.endJ){me();let ue={range:{pos:Oe.pos+G,end:Oe.end+G},type:be};ae=jt(ae,ue),re&&$.assert(Z.substring(Oe.pos,Oe.end)===Q.substring(ue.range.pos,ue.range.end))}}return me(),ae;function me(){_e||(_e=!0,ae?M&&ae.push(...M):ae=M)}}function c(F,M,U,J,G,Z,Q){U?ae(F):re(F);return;function re(_e){let me="";if(Q&&u(_e)&&(me=G.substring(_e.pos,_e.end)),Vge(_e,M),xv(_e,_e.pos+J,_e.end+J),Q&&u(_e)&&$.assert(me===Z.substring(_e.pos,_e.end)),Is(_e,re,ae),hy(_e))for(let le of _e.jsDoc)re(le);f(_e,Q)}function ae(_e){xv(_e,_e.pos+J,_e.end+J);for(let me of _e)re(me)}}function u(F){switch(F.kind){case 11:case 9:case 80:return!0}return!1}function _(F,M,U,J,G){$.assert(F.end>=M,"Adjusting an element that was entirely before the change range"),$.assert(F.pos<=U,"Adjusting an element that was entirely after the change range"),$.assert(F.pos<=F.end);let Z=Math.min(F.pos,J),Q=F.end>=U?F.end+G:Math.min(F.end,J);if($.assert(Z<=Q),F.parent){let re=F.parent;$.assertGreaterThanOrEqual(Z,re.pos),$.assertLessThanOrEqual(Q,re.end)}xv(F,Z,Q)}function f(F,M){if(M){let U=F.pos,J=G=>{$.assert(G.pos>=U),U=G.end};if(hy(F))for(let G of F.jsDoc)J(G);Is(F,J),$.assert(U<=F.end)}}function y(F,M,U,J,G,Z,Q,re){ae(F);return;function ae(me){if($.assert(me.pos<=me.end),me.pos>U){c(me,F,!1,G,Z,Q,re);return}let le=me.end;if(le>=M){if(DNe(me),Vge(me,F),_(me,M,U,J,G),Is(me,ae,_e),hy(me))for(let Oe of me.jsDoc)ae(Oe);f(me,re);return}$.assert(leU){c(me,F,!0,G,Z,Q,re);return}let le=me.end;if(le>=M){DNe(me),_(me,M,U,J,G);for(let Oe of me)ae(Oe);return}$.assert(le0&&Q<=1;Q++){let re=k(F,J);$.assert(re.pos<=J);let ae=re.pos;J=Math.max(0,ae-1)}let G=Hu(J,Xn(M.span)),Z=M.newLength+(M.span.start-J);return X0(G,Z)}function k(F,M){let U=F,J;if(Is(F,Z),J){let Q=G(J);Q.pos>U.pos&&(U=Q)}return U;function G(Q){for(;;){let re=Ohe(Q);if(re)Q=re;else return Q}}function Z(Q){if(!Op(Q))if(Q.pos<=M){if(Q.pos>=U.pos&&(U=Q),MM),!0}}function T(F,M,U,J){let G=F.text;if(U&&($.assert(G.length-U.span.length+U.newLength===M.length),J||$.shouldAssert(3))){let Z=G.substr(0,U.span.start),Q=M.substr(0,U.span.start);$.assert(Z===Q);let re=G.substring(Xn(U.span),G.length),ae=M.substring(Xn(WI(U)),M.length);$.assert(re===ae)}}function C(F){let M=F.statements,U=0;$.assert(U=_e.pos&&Q<_e.end?(Is(_e,re,ae),!0):!1}function ae(_e){if(Q>=_e.pos&&Q<_e.end)for(let me=0;me<_e.length;me++){let le=_e[me];if(le){if(le.pos===Q)return M=_e,U=me,J=le,!0;if(le.pos{F[F.Value=-1]="Value"})(O||(O={}))})(aye||(aye={}));function sf(t){return sie(t)!==void 0}function sie(t){let n=nE(t,gne,!1);if(n)return n;if(Au(t,".ts")){let a=t_(t),c=a.lastIndexOf(".d.");if(c>=0)return a.substring(c)}}function Uir(t,n,a,c){if(t){if(t==="import")return 99;if(t==="require")return 1;c(n,a-n,x.resolution_mode_should_be_either_require_or_import)}}function sye(t,n){let a=[];for(let c of my(n,0)||j){let u=n.substring(c.pos,c.end);Vir(a,c,u)}t.pragmas=new Map;for(let c of a){if(t.pragmas.has(c.name)){let u=t.pragmas.get(c.name);u instanceof Array?u.push(c.args):t.pragmas.set(c.name,[u,c.args]);continue}t.pragmas.set(c.name,c.args)}}function cye(t,n){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.libReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach((a,c)=>{switch(c){case"reference":{let u=t.referencedFiles,_=t.typeReferenceDirectives,f=t.libReferenceDirectives;X(Ll(a),y=>{let{types:g,lib:k,path:T,["resolution-mode"]:C,preserve:O}=y.arguments,F=O==="true"?!0:void 0;if(y.arguments["no-default-lib"]==="true")t.hasNoDefaultLib=!0;else if(g){let M=Uir(C,g.pos,g.end,n);_.push({pos:g.pos,end:g.end,fileName:g.value,...M?{resolutionMode:M}:{},...F?{preserve:F}:{}})}else k?f.push({pos:k.pos,end:k.end,fileName:k.value,...F?{preserve:F}:{}}):T?u.push({pos:T.pos,end:T.end,fileName:T.value,...F?{preserve:F}:{}}):n(y.range.pos,y.range.end-y.range.pos,x.Invalid_reference_directive_syntax)});break}case"amd-dependency":{t.amdDependencies=Cr(Ll(a),u=>({name:u.arguments.name,path:u.arguments.path}));break}case"amd-module":{if(a instanceof Array)for(let u of a)t.moduleName&&n(u.range.pos,u.range.end-u.range.pos,x.An_AMD_module_cannot_have_multiple_name_assignments),t.moduleName=u.arguments.name;else t.moduleName=a.arguments.name;break}case"ts-nocheck":case"ts-check":{X(Ll(a),u=>{(!t.checkJsDirective||u.range.pos>t.checkJsDirective.pos)&&(t.checkJsDirective={enabled:c==="ts-check",end:u.range.end,pos:u.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:$.fail("Unhandled pragma kind")}})}var ANe=new Map;function zir(t){if(ANe.has(t))return ANe.get(t);let n=new RegExp(`(\\s${t}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return ANe.set(t,n),n}var qir=/^\/\/\/\s*<(\S+)\s.*?\/>/m,Jir=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function Vir(t,n,a){let c=n.kind===2&&qir.exec(a);if(c){let _=c[1].toLowerCase(),f=y4[_];if(!f||!(f.kind&1))return;if(f.args){let y={};for(let g of f.args){let T=zir(g.name).exec(a);if(!T&&!g.optional)return;if(T){let C=T[2]||T[3];if(g.captureSpan){let O=n.pos+T.index+T[1].length+1;y[g.name]={value:C,pos:O,end:O+C.length}}else y[g.name]=C}}t.push({name:_,args:{arguments:y,range:n}})}else t.push({name:_,args:{arguments:{},range:n}});return}let u=n.kind===2&&Jir.exec(a);if(u)return but(t,n,2,u);if(n.kind===3){let _=/@(\S+)(\s+(?:\S.*)?)?$/gm,f;for(;f=_.exec(a);)but(t,n,4,f)}}function but(t,n,a,c){if(!c)return;let u=c[1].toLowerCase(),_=y4[u];if(!_||!(_.kind&a))return;let f=c[2],y=Wir(_,f);y!=="fail"&&t.push({name:u,args:{arguments:y,range:n}})}function Wir(t,n){if(!n)return{};if(!t.args)return{};let a=n.trim().split(/\s+/),c={};for(let u=0;u[""+n,t])),Tut=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["es2024","lib.es2024.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.arraybuffer","lib.es2017.arraybuffer.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["es2023.intl","lib.es2023.intl.d.ts"],["es2024.arraybuffer","lib.es2024.arraybuffer.d.ts"],["es2024.collection","lib.es2024.collection.d.ts"],["es2024.object","lib.es2024.object.d.ts"],["es2024.promise","lib.es2024.promise.d.ts"],["es2024.regexp","lib.es2024.regexp.d.ts"],["es2024.sharedmemory","lib.es2024.sharedmemory.d.ts"],["es2024.string","lib.es2024.string.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2024.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.es2024.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.es2024.regexp.d.ts"],["esnext.string","lib.es2024.string.d.ts"],["esnext.iterator","lib.esnext.iterator.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.float16","lib.esnext.float16.d.ts"],["esnext.error","lib.esnext.error.d.ts"],["esnext.sharedmemory","lib.esnext.sharedmemory.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],cie=Tut.map(t=>t[0]),lye=new Map(Tut),wF=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:x.Watch_and_Build_Modes,description:x.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:x.Watch_and_Build_Modes,description:x.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:x.Watch_and_Build_Modes,description:x.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:x.Watch_and_Build_Modes,description:x.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:KNe},allowConfigDirTemplateSubstitution:!0,category:x.Watch_and_Build_Modes,description:x.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:KNe},allowConfigDirTemplateSubstitution:!0,category:x.Watch_and_Build_Modes,description:x.Remove_a_list_of_files_from_the_watch_mode_s_processing}],lie=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:x.Command_line_Options,description:x.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:x.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:x.Command_line_Options,description:x.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:x.Output_Formatting,description:x.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:x.Compiler_Diagnostics,description:x.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:x.Compiler_Diagnostics,description:x.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:x.Compiler_Diagnostics,description:x.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:x.Output_Formatting,description:x.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:x.Compiler_Diagnostics,description:x.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:x.Compiler_Diagnostics,description:x.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:x.Compiler_Diagnostics,description:x.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:x.FILE_OR_DIRECTORY,category:x.Compiler_Diagnostics,description:x.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,paramType:x.DIRECTORY,category:x.Compiler_Diagnostics,description:x.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:x.Projects,description:x.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:x.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:x.Emit,transpileOptionValue:void 0,description:x.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:x.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:x.Emit,defaultValueDescription:!1,description:x.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:x.Emit,description:x.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:x.Emit,defaultValueDescription:!1,description:x.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:x.Emit,description:x.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:x.Compiler_Diagnostics,description:x.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:x.Emit,description:x.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:x.Watch_and_Build_Modes,description:x.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:x.Command_line_Options,isCommandLineOnly:!0,description:x.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:x.Platform_specific}],uye={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,es2023:10,es2024:11,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:x.VERSION,showInSimplifiedHelpView:!0,category:x.Language_and_Environment,description:x.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},INe={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,node18:101,node20:102,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:x.KIND,showInSimplifiedHelpView:!0,category:x.Modules,description:x.Specify_what_module_code_is_generated,defaultValueDescription:void 0},Eut=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:x.Command_line_Options,description:x.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:x.Command_line_Options,description:x.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:x.Command_line_Options,description:x.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:x.Command_line_Options,paramType:x.FILE_OR_DIRECTORY,description:x.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:x.Command_line_Options,isCommandLineOnly:!0,description:x.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:x.Command_line_Options,isCommandLineOnly:!0,description:x.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},uye,INe,{name:"lib",type:"list",element:{name:"lib",type:lye,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:x.Language_and_Environment,description:x.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:x.JavaScript_Support,description:x.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:x.JavaScript_Support,description:x.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:xut,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:x.KIND,showInSimplifiedHelpView:!0,category:x.Language_and_Environment,description:x.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:x.FILE,showInSimplifiedHelpView:!0,category:x.Emit,description:x.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:x.DIRECTORY,showInSimplifiedHelpView:!0,category:x.Emit,description:x.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:x.LOCATION,category:x.Modules,description:x.Specify_the_root_folder_within_your_source_files,defaultValueDescription:x.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:x.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:x.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:x.FILE,category:x.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:x.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:x.Emit,defaultValueDescription:!1,description:x.Disable_emitting_comments},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!0,category:x.Emit,description:x.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Backwards_Compatibility,description:x.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:x.Emit,description:x.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:x.Interop_Constraints,description:x.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Interop_Constraints,description:x.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"isolatedDeclarations",type:"boolean",category:x.Interop_Constraints,description:x.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"erasableSyntaxOnly",type:"boolean",category:x.Interop_Constraints,description:x.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"libReplacement",type:"boolean",affectsProgramStructure:!0,category:x.Language_and_Environment,description:x.Enable_lib_replacement,defaultValueDescription:!0},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:x.Type_Checking,description:x.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:x.Type_Checking,description:x.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:x.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:x.Type_Checking,description:x.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:x.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:x.Type_Checking,description:x.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:x.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:x.Type_Checking,description:x.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:x.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:x.Type_Checking,description:x.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:x.false_unless_strict_is_set},{name:"strictBuiltinIteratorReturn",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:x.Type_Checking,description:x.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,defaultValueDescription:x.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:x.Type_Checking,description:x.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:x.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:x.Type_Checking,description:x.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:x.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:x.Type_Checking,description:x.Ensure_use_strict_is_always_emitted,defaultValueDescription:x.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Type_Checking,description:x.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Type_Checking,description:x.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Type_Checking,description:x.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Type_Checking,description:x.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Type_Checking,description:x.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Type_Checking,description:x.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Type_Checking,description:x.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:x.Type_Checking,description:x.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:x.STRATEGY,category:x.Modules,description:x.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:x.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:x.Modules,description:x.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:x.Modules,description:x.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:x.Modules,description:x.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:x.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:x.Modules,description:x.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:x.Modules,description:x.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Interop_Constraints,description:x.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:x.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:x.Interop_Constraints,description:x.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:x.Interop_Constraints,description:x.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Modules,description:x.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:x.Modules,description:x.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Modules,description:x.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"rewriteRelativeImportExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Modules,description:x.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files,defaultValueDescription:!1},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:x.Modules,description:x.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:x.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:x.Modules,description:x.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:x.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:x.Modules,description:x.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"noUncheckedSideEffectImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Modules,description:x.Check_side_effect_imports,defaultValueDescription:!1},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:x.LOCATION,category:x.Emit,description:x.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:x.LOCATION,category:x.Emit,description:x.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:x.Emit,description:x.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Language_and_Environment,description:x.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:x.Language_and_Environment,description:x.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:x.Language_and_Environment,description:x.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:x.Language_and_Environment,description:x.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSourceFile:!0,category:x.Language_and_Environment,description:x.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:x.Modules,description:x.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:x.Modules,description:x.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:x.Backwards_Compatibility,paramType:x.FILE,transpileOptionValue:void 0,description:x.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:x.Language_and_Environment,description:x.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:x.Completeness,description:x.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:x.Backwards_Compatibility,description:x.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:x.Emit,description:x.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:x.NEWLINE,category:x.Emit,description:x.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Output_Formatting,description:x.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:x.Language_and_Environment,affectsProgramStructure:!0,description:x.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:x.Modules,description:x.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:x.Emit,description:x.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:x.Editor_Support,description:x.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:x.Projects,description:x.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:x.Projects,description:x.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:x.Projects,description:x.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Backwards_Compatibility,description:x.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:x.Emit,description:x.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:x.Emit,transpileOptionValue:void 0,description:x.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:x.Emit,description:x.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:x.DIRECTORY,category:x.Emit,transpileOptionValue:void 0,description:x.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:x.Completeness,description:x.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Type_Checking,description:x.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Type_Checking,description:x.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Backwards_Compatibility,description:x.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Backwards_Compatibility,description:x.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:x.Interop_Constraints,description:x.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:x.JavaScript_Support,description:x.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Backwards_Compatibility,description:x.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:x.Language_and_Environment,description:x.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:x.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:x.Backwards_Compatibility,description:x.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:x.Backwards_Compatibility,description:x.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:x.Specify_a_list_of_language_service_plugins_to_include,category:x.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:x.Control_what_method_is_used_to_detect_module_format_JS_files,category:x.Language_and_Environment,defaultValueDescription:x.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],Q1=[...lie,...Eut],PNe=Q1.filter(t=>!!t.affectsSemanticDiagnostics),NNe=Q1.filter(t=>!!t.affectsEmit),ONe=Q1.filter(t=>!!t.affectsDeclarationPath),pye=Q1.filter(t=>!!t.affectsModuleResolution),_ye=Q1.filter(t=>!!t.affectsSourceFile||!!t.affectsBindDiagnostics),FNe=Q1.filter(t=>!!t.affectsProgramStructure),RNe=Q1.filter(t=>Ho(t,"transpileOptionValue")),Gir=Q1.filter(t=>t.allowConfigDirTemplateSubstitution||!t.isCommandLineOnly&&t.isFilePath),Hir=wF.filter(t=>t.allowConfigDirTemplateSubstitution||!t.isCommandLineOnly&&t.isFilePath),LNe=Q1.filter(Kir);function Kir(t){return!Ni(t.type)}var f3={name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:x.Command_line_Options,description:x.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},dye=[f3,{name:"verbose",shortName:"v",category:x.Command_line_Options,description:x.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:x.Command_line_Options,description:x.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:x.Command_line_Options,description:x.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:x.Command_line_Options,description:x.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1},{name:"stopBuildOnErrors",category:x.Command_line_Options,description:x.Skip_building_downstream_projects_on_error_in_upstream_project,type:"boolean",defaultValueDescription:!1}],tK=[...lie,...dye],uie=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}];function pie(t){let n=new Map,a=new Map;return X(t,c=>{n.set(c.name.toLowerCase(),c),c.shortName&&a.set(c.shortName,c.name)}),{optionsNameMap:n,shortOptionNames:a}}var kut;function PL(){return kut||(kut=pie(Q1))}var Qir={diagnostic:x.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:Put},Cut={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function MNe(t){return Dut(t,bp)}function Dut(t,n){let a=so(t.type.keys()),c=(t.deprecatedKeys?a.filter(u=>!t.deprecatedKeys.has(u)):a).map(u=>`'${u}'`).join(", ");return n(x.Argument_for_0_option_must_be_Colon_1,`--${t.name}`,c)}function _ie(t,n,a){return ppt(t,(n??"").trim(),a)}function jNe(t,n="",a){if(n=n.trim(),Ca(n,"-"))return;if(t.type==="listOrElement"&&!n.includes(","))return IF(t,n,a);if(n==="")return[];let c=n.split(",");switch(t.element.type){case"number":return Wn(c,u=>IF(t.element,parseInt(u),a));case"string":return Wn(c,u=>IF(t.element,u||"",a));case"boolean":case"object":return $.fail(`List of ${t.element.type} is not yet supported.`);default:return Wn(c,u=>_ie(t.element,u,a))}}function Aut(t){return t.name}function BNe(t,n,a,c,u){var _;let f=(_=n.alternateMode)==null?void 0:_.getOptionsNameMap().optionsNameMap.get(t.toLowerCase());if(f)return FA(u,c,f!==f3?n.alternateMode.diagnostic:x.Option_build_must_be_the_first_command_line_argument,t);let y=xx(t,n.optionDeclarations,Aut);return y?FA(u,c,n.unknownDidYouMeanDiagnostic,a||t,y.name):FA(u,c,n.unknownOptionDiagnostic,a||t)}function fye(t,n,a){let c={},u,_=[],f=[];return y(n),{options:c,watchOptions:u,fileNames:_,errors:f};function y(k){let T=0;for(;Tf_.readFile(F)));if(!Ni(T)){f.push(T);return}let C=[],O=0;for(;;){for(;O=T.length)break;let F=O;if(T.charCodeAt(F)===34){for(O++;O32;)O++;C.push(T.substring(F,O))}}y(C)}}function wut(t,n,a,c,u,_){if(c.isTSConfigOnly){let f=t[n];f==="null"?(u[c.name]=void 0,n++):c.type==="boolean"?f==="false"?(u[c.name]=IF(c,!1,_),n++):(f==="true"&&n++,_.push(bp(x.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,c.name))):(_.push(bp(x.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,c.name)),f&&!Ca(f,"-")&&n++)}else if(!t[n]&&c.type!=="boolean"&&_.push(bp(a.optionTypeMismatchDiagnostic,c.name,vye(c))),t[n]!=="null")switch(c.type){case"number":u[c.name]=IF(c,parseInt(t[n]),_),n++;break;case"boolean":let f=t[n];u[c.name]=IF(c,f!=="false",_),(f==="false"||f==="true")&&n++;break;case"string":u[c.name]=IF(c,t[n]||"",_),n++;break;case"list":let y=jNe(c,t[n],_);u[c.name]=y||[],y&&n++;break;case"listOrElement":$.fail("listOrElement not supported here");break;default:u[c.name]=_ie(c,t[n],_),n++;break}else u[c.name]=void 0,n++;return n}var die={alternateMode:Qir,getOptionsNameMap:PL,optionDeclarations:Q1,unknownOptionDiagnostic:x.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:x.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:x.Compiler_option_0_expects_an_argument};function $Ne(t,n){return fye(die,t,n)}function mye(t,n){return UNe(PL,t,n)}function UNe(t,n,a=!1){n=n.toLowerCase();let{optionsNameMap:c,shortOptionNames:u}=t();if(a){let _=u.get(n);_!==void 0&&(n=_)}return c.get(n)}var Iut;function Put(){return Iut||(Iut=pie(tK))}var Zir={diagnostic:x.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:PL},Xir={alternateMode:Zir,getOptionsNameMap:Put,optionDeclarations:tK,unknownOptionDiagnostic:x.Unknown_build_option_0,unknownDidYouMeanDiagnostic:x.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:x.Build_option_0_requires_a_value_of_type_1};function zNe(t){let{options:n,watchOptions:a,fileNames:c,errors:u}=fye(Xir,t),_=n;return c.length===0&&c.push("."),_.clean&&_.force&&u.push(bp(x.Options_0_and_1_cannot_be_combined,"clean","force")),_.clean&&_.verbose&&u.push(bp(x.Options_0_and_1_cannot_be_combined,"clean","verbose")),_.clean&&_.watch&&u.push(bp(x.Options_0_and_1_cannot_be_combined,"clean","watch")),_.watch&&_.dry&&u.push(bp(x.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:_,watchOptions:a,projects:c,errors:u}}function Jh(t,...n){return Ba(bp(t,...n).messageText,Ni)}function rK(t,n,a,c,u,_){let f=Sz(t,k=>a.readFile(k));if(!Ni(f)){a.onUnRecoverableConfigFileDiagnostic(f);return}let y=YH(t,f),g=a.getCurrentDirectory();return y.path=wl(t,g,_d(a.useCaseSensitiveFileNames)),y.resolvedPath=y.path,y.originalFileName=y.fileName,oK(y,a,za(mo(t),g),n,za(t,g),void 0,_,c,u)}function nK(t,n){let a=Sz(t,n);return Ni(a)?hye(t,a):{config:{},error:a}}function hye(t,n){let a=YH(t,n);return{config:Jut(a,a.parseDiagnostics,void 0),error:a.parseDiagnostics.length?a.parseDiagnostics[0]:void 0}}function qNe(t,n){let a=Sz(t,n);return Ni(a)?YH(t,a):{fileName:t,parseDiagnostics:[a]}}function Sz(t,n){let a;try{a=n(t)}catch(c){return bp(x.Cannot_read_file_0_Colon_1,t,c.message)}return a===void 0?bp(x.Cannot_read_file_0,t):a}function gye(t){return _l(t,Aut)}var Nut={optionDeclarations:uie,unknownOptionDiagnostic:x.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:x.Unknown_type_acquisition_option_0_Did_you_mean_1},Out;function Fut(){return Out||(Out=pie(wF))}var yye={getOptionsNameMap:Fut,optionDeclarations:wF,unknownOptionDiagnostic:x.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:x.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:x.Watch_option_0_requires_a_value_of_type_1},Rut;function Lut(){return Rut||(Rut=gye(Q1))}var Mut;function jut(){return Mut||(Mut=gye(wF))}var But;function $ut(){return But||(But=gye(uie))}var fie={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:x.File_Management,disallowNullOrUndefined:!0},Uut={name:"compilerOptions",type:"object",elementOptions:Lut(),extraKeyDiagnostics:die},zut={name:"watchOptions",type:"object",elementOptions:jut(),extraKeyDiagnostics:yye},qut={name:"typeAcquisition",type:"object",elementOptions:$ut(),extraKeyDiagnostics:Nut},JNe;function Yir(){return JNe===void 0&&(JNe={name:void 0,type:"object",elementOptions:gye([Uut,zut,qut,fie,{name:"references",type:"list",element:{name:"references",type:"object"},category:x.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:x.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:x.File_Management,defaultValueDescription:x.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:x.File_Management,defaultValueDescription:x.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},wNe])}),JNe}function Jut(t,n,a){var c;let u=(c=t.statements[0])==null?void 0:c.expression;if(u&&u.kind!==211){if(n.push(m0(t,u,x.The_root_value_of_a_0_file_must_be_an_object,t_(t.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),qf(u)){let _=wt(u.elements,Lc);if(_)return iK(t,_,n,!0,a)}return{}}return iK(t,u,n,!0,a)}function VNe(t,n){var a;return iK(t,(a=t.statements[0])==null?void 0:a.expression,n,!0,void 0)}function iK(t,n,a,c,u){if(!n)return c?{}:void 0;return y(n,u?.rootOptions);function _(k,T){var C;let O=c?{}:void 0;for(let F of k.properties){if(F.kind!==304){a.push(m0(t,F,x.Property_assignment_expected));continue}F.questionToken&&a.push(m0(t,F.questionToken,x.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),g(F.name)||a.push(m0(t,F.name,x.String_literal_with_double_quotes_expected));let M=TG(F.name)?void 0:UO(F.name),U=M&&oa(M),J=U?(C=T?.elementOptions)==null?void 0:C.get(U):void 0,G=y(F.initializer,J);typeof U<"u"&&(c&&(O[U]=G),u?.onPropertySet(U,G,F,T,J))}return O}function f(k,T){if(!c){k.forEach(C=>y(C,T));return}return yr(k.map(C=>y(C,T)),C=>C!==void 0)}function y(k,T){switch(k.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return g(k)||a.push(m0(t,k,x.String_literal_with_double_quotes_expected)),k.text;case 9:return Number(k.text);case 225:if(k.operator!==41||k.operand.kind!==9)break;return-Number(k.operand.text);case 211:return _(k,T);case 210:return f(k.elements,T&&T.element)}T?a.push(m0(t,k,x.Compiler_option_0_requires_a_value_of_type_1,T.name,vye(T))):a.push(m0(t,k,x.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function g(k){return Ic(k)&&Dre(k,t)}}function vye(t){return t.type==="listOrElement"?`${vye(t.element)} or Array`:t.type==="list"?"Array":Ni(t.type)?t.type:"string"}function Vut(t,n){if(t){if(aK(n))return!t.disallowNullOrUndefined;if(t.type==="list")return Zn(n);if(t.type==="listOrElement")return Zn(n)||Vut(t.element,n);let a=Ni(t.type)?t.type:"string";return typeof n===a}return!1}function Sye(t,n,a){var c,u,_;let f=_d(a.useCaseSensitiveFileNames),y=Cr(yr(t.fileNames,(u=(c=t.options.configFile)==null?void 0:c.configFileSpecs)!=null&&u.validatedIncludeSpecs?ror(n,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,a):AT),M=>Vk(za(n,a.getCurrentDirectory()),za(M,a.getCurrentDirectory()),f)),g={configFilePath:za(n,a.getCurrentDirectory()),useCaseSensitiveFileNames:a.useCaseSensitiveFileNames},k=bye(t.options,g),T=t.watchOptions&&nor(t.watchOptions),C={compilerOptions:{...mie(k),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:T&&mie(T),references:Cr(t.projectReferences,M=>({...M,path:M.originalPath?M.originalPath:"",originalPath:void 0})),files:te(y)?y:void 0,...(_=t.options.configFile)!=null&&_.configFileSpecs?{include:tor(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:t.compileOnSave?!0:void 0},O=new Set(k.keys()),F={};for(let M in UU)if(!O.has(M)&&eor(M,O)){let U=UU[M].computeValue(t.options),J=UU[M].computeValue({});U!==J&&(F[M]=UU[M].computeValue(t.options))}return qe(C.compilerOptions,mie(bye(F,g))),C}function eor(t,n){let a=new Set;return c(t);function c(u){var _;return o1(a,u)?Pt((_=UU[u])==null?void 0:_.dependencies,f=>n.has(f)||c(f)):!1}}function mie(t){return Object.fromEntries(t)}function tor(t){if(te(t)){if(te(t)!==1)return t;if(t[0]!==Qut)return t}}function ror(t,n,a,c){if(!n)return AT;let u=dne(t,a,n,c.useCaseSensitiveFileNames,c.getCurrentDirectory()),_=u.excludePattern&&mE(u.excludePattern,c.useCaseSensitiveFileNames),f=u.includeFilePattern&&mE(u.includeFilePattern,c.useCaseSensitiveFileNames);return f?_?y=>!(f.test(y)&&!_.test(y)):y=>!f.test(y):_?y=>_.test(y):AT}function Wut(t){switch(t.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return Wut(t.element);default:return t.type}}function hie(t,n){return Ad(n,(a,c)=>{if(a===t)return c})}function bye(t,n){return Gut(t,PL(),n)}function nor(t){return Gut(t,Fut())}function Gut(t,{optionsNameMap:n},a){let c=new Map,u=a&&_d(a.useCaseSensitiveFileNames);for(let _ in t)if(Ho(t,_)){if(n.has(_)&&(n.get(_).category===x.Command_line_Options||n.get(_).category===x.Output_Formatting))continue;let f=t[_],y=n.get(_.toLowerCase());if(y){$.assert(y.type!=="listOrElement");let g=Wut(y);g?y.type==="list"?c.set(_,f.map(k=>hie(k,g))):c.set(_,hie(f,g)):a&&y.isFilePath?c.set(_,Vk(a.configFilePath,za(f,mo(a.configFilePath)),u)):a&&y.type==="list"&&y.element.isFilePath?c.set(_,f.map(k=>Vk(a.configFilePath,za(k,mo(a.configFilePath)),u))):c.set(_,f)}}return c}function WNe(t,n){let c=[],u=Object.keys(t).filter(T=>T!=="init"&&T!=="help"&&T!=="watch");if(c.push("{"),c.push(` // ${As(x.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)}`),c.push(' "compilerOptions": {'),f(x.File_Layout),y("rootDir","./src","optional"),y("outDir","./dist","optional"),_(),f(x.Environment_Settings),f(x.See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule),y("module",199),y("target",99),y("types",[]),t.lib&&y("lib",t.lib),f(x.For_nodejs_Colon),c.push(' // "lib": ["esnext"],'),c.push(' // "types": ["node"],'),f(x.and_npm_install_D_types_Slashnode),_(),f(x.Other_Outputs),y("sourceMap",!0),y("declaration",!0),y("declarationMap",!0),_(),f(x.Stricter_Typechecking_Options),y("noUncheckedIndexedAccess",!0),y("exactOptionalPropertyTypes",!0),_(),f(x.Style_Options),y("noImplicitReturns",!0,"optional"),y("noImplicitOverride",!0,"optional"),y("noUnusedLocals",!0,"optional"),y("noUnusedParameters",!0,"optional"),y("noFallthroughCasesInSwitch",!0,"optional"),y("noPropertyAccessFromIndexSignature",!0,"optional"),_(),f(x.Recommended_Options),y("strict",!0),y("jsx",4),y("verbatimModuleSyntax",!0),y("isolatedModules",!0),y("noUncheckedSideEffectImports",!0),y("moduleDetection",3),y("skipLibCheck",!0),u.length>0)for(_();u.length>0;)y(u[0],t[u[0]]);function _(){c.push("")}function f(T){c.push(` // ${As(T)}`)}function y(T,C,O="never"){let F=u.indexOf(T);F>=0&&u.splice(F,1);let M;O==="always"?M=!0:O==="never"?M=!1:M=!Ho(t,T);let U=t[T]??C;M?c.push(` // "${T}": ${g(T,U)},`):c.push(` "${T}": ${g(T,U)},`)}function g(T,C){let O=Q1.filter(M=>M.name===T)[0];O||$.fail(`No option named ${T}?`);let F=O.type instanceof Map?O.type:void 0;if(Zn(C)){let M="element"in O&&O.element.type instanceof Map?O.element.type:void 0;return`[${C.map(U=>k(U,M)).join(", ")}]`}else return k(C,F)}function k(T,C){return C&&(T=hie(T,C)??$.fail(`No matching value of ${T}`)),JSON.stringify(T)}return c.push(" }"),c.push("}"),c.push(""),c.join(n)}function gie(t,n){let a={},c=PL().optionsNameMap;for(let u in t)Ho(t,u)&&(a[u]=ior(c.get(u.toLowerCase()),t[u],n));return a.configFilePath&&(a.configFilePath=n(a.configFilePath)),a}function ior(t,n,a){if(t&&!aK(n)){if(t.type==="list"){let c=n;if(t.element.isFilePath&&c.length)return c.map(a)}else if(t.isFilePath)return a(n);$.assert(t.type!=="listOrElement")}return n}function Hut(t,n,a,c,u,_,f,y,g){return Zut(t,void 0,n,a,c,g,u,_,f,y)}function oK(t,n,a,c,u,_,f,y,g){var k,T;(k=hi)==null||k.push(hi.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:t.fileName});let C=Zut(void 0,t,n,a,c,g,u,_,f,y);return(T=hi)==null||T.pop(),C}function xye(t,n){n&&Object.defineProperty(t,"configFile",{enumerable:!1,writable:!1,value:n})}function aK(t){return t==null}function Kut(t,n){return mo(za(t,n))}var Qut="**/*";function Zut(t,n,a,c,u={},_,f,y=[],g=[],k){$.assert(t===void 0&&n!==void 0||t!==void 0&&n===void 0);let T=[],C=npt(t,n,a,c,f,y,T,k),{raw:O}=C,F=Xut(Lh(u,C.options||{}),Gir,c),M=yie(_&&C.watchOptions?Lh(_,C.watchOptions):C.watchOptions||_,c);F.configFilePath=f&&Z_(f);let U=Qs(f?Kut(f,c):c),J=G();return n&&(n.configFileSpecs=J),xye(F,n),{options:F,watchOptions:M,fileNames:Z(U),projectReferences:Q(U),typeAcquisition:C.typeAcquisition||kye(),raw:O,errors:T,wildcardDirectories:gor(J,U,a.useCaseSensitiveFileNames),compileOnSave:!!O.compileOnSave};function G(){let le=_e("references",je=>typeof je=="object","object"),Oe=re(ae("files"));if(Oe){let je=le==="no-prop"||Zn(le)&&le.length===0,ve=Ho(O,"extends");if(Oe.length===0&&je&&!ve)if(n){let Le=f||"tsconfig.json",Ve=x.The_files_list_in_config_file_0_is_empty,nt=wG(n,"files",ke=>ke.initializer),It=FA(n,nt,Ve,Le);T.push(It)}else me(x.The_files_list_in_config_file_0_is_empty,f||"tsconfig.json")}let be=re(ae("include")),ue=ae("exclude"),De=!1,Ce=re(ue);if(ue==="no-prop"){let je=F.outDir,ve=F.declarationDir;(je||ve)&&(Ce=yr([je,ve],Le=>!!Le))}Oe===void 0&&be===void 0&&(be=[Qut],De=!0);let Ae,Fe,Be,de;be&&(Ae=fpt(be,T,!0,n,"include"),Be=vie(Ae,U)||Ae),Ce&&(Fe=fpt(Ce,T,!1,n,"exclude"),de=vie(Fe,U)||Fe);let ze=yr(Oe,Ni),ut=vie(ze,U)||ze;return{filesSpecs:Oe,includeSpecs:be,excludeSpecs:Ce,validatedFilesSpec:ut,validatedIncludeSpecs:Be,validatedExcludeSpecs:de,validatedFilesSpecBeforeSubstitution:ze,validatedIncludeSpecsBeforeSubstitution:Ae,validatedExcludeSpecsBeforeSubstitution:Fe,isDefaultIncludeSpec:De}}function Z(le){let Oe=bz(J,le,F,a,g);return rpt(Oe,sK(O),y)&&T.push(tpt(J,f)),Oe}function Q(le){let Oe,be=_e("references",ue=>typeof ue=="object","object");if(Zn(be))for(let ue of be)typeof ue.path!="string"?me(x.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(Oe||(Oe=[])).push({path:za(ue.path,le),originalPath:ue.path,prepend:ue.prepend,circular:ue.circular});return Oe}function re(le){return Zn(le)?le:void 0}function ae(le){return _e(le,Ni,"string")}function _e(le,Oe,be){if(Ho(O,le)&&!aK(O[le]))if(Zn(O[le])){let ue=O[le];return!n&&!ht(ue,Oe)&&T.push(bp(x.Compiler_option_0_requires_a_value_of_type_1,le,be)),ue}else return me(x.Compiler_option_0_requires_a_value_of_type_1,le,"Array"),"not-array";return"no-prop"}function me(le,...Oe){n||T.push(bp(le,...Oe))}}function yie(t,n){return Xut(t,Hir,n)}function Xut(t,n,a){if(!t)return t;let c;for(let _ of n)if(t[_.name]!==void 0){let f=t[_.name];switch(_.type){case"string":$.assert(_.isFilePath),Tye(f)&&u(_,ept(f,a));break;case"list":$.assert(_.element.isFilePath);let y=vie(f,a);y&&u(_,y);break;case"object":$.assert(_.name==="paths");let g=oor(f,a);g&&u(_,g);break;default:$.fail("option type not supported")}}return c||t;function u(_,f){(c??(c=qe({},t)))[_.name]=f}}var Yut="${configDir}";function Tye(t){return Ni(t)&&Ca(t,Yut,!0)}function ept(t,n){return za(t.replace(Yut,"./"),n)}function vie(t,n){if(!t)return t;let a;return t.forEach((c,u)=>{Tye(c)&&((a??(a=t.slice()))[u]=ept(c,n))}),a}function oor(t,n){let a;return Lu(t).forEach(u=>{if(!Zn(t[u]))return;let _=vie(t[u],n);_&&((a??(a=qe({},t)))[u]=_)}),a}function aor(t){return t.code===x.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function tpt({includeSpecs:t,excludeSpecs:n},a){return bp(x.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,a||"tsconfig.json",JSON.stringify(t||[]),JSON.stringify(n||[]))}function rpt(t,n,a){return t.length===0&&n&&(!a||a.length===0)}function Eye(t){return!t.fileNames.length&&Ho(t.raw,"references")}function sK(t){return!Ho(t,"files")&&!Ho(t,"references")}function Sie(t,n,a,c,u){let _=c.length;return rpt(t,u)?c.push(tpt(a,n)):co(c,f=>!aor(f)),_!==c.length}function sor(t){return!!t.options}function npt(t,n,a,c,u,_,f,y){var g;c=Z_(c);let k=za(u||"",c);if(_.includes(k))return f.push(bp(x.Circularity_detected_while_resolving_configuration_Colon_0,[..._,k].join(" -> "))),{raw:t||VNe(n,f)};let T=t?cor(t,a,c,u,f):lor(n,a,c,u,f);if((g=T.options)!=null&&g.paths&&(T.options.pathsBasePath=c),T.extendedConfigPath){_=_.concat([k]);let F={options:{}};Ni(T.extendedConfigPath)?C(F,T.extendedConfigPath):T.extendedConfigPath.forEach(M=>C(F,M)),F.include&&(T.raw.include=F.include),F.exclude&&(T.raw.exclude=F.exclude),F.files&&(T.raw.files=F.files),T.raw.compileOnSave===void 0&&F.compileOnSave&&(T.raw.compileOnSave=F.compileOnSave),n&&F.extendedSourceFiles&&(n.extendedSourceFiles=so(F.extendedSourceFiles.keys())),T.options=qe(F.options,T.options),T.watchOptions=T.watchOptions&&F.watchOptions?O(F,T.watchOptions):T.watchOptions||F.watchOptions}return T;function C(F,M){let U=uor(n,M,a,_,f,y,F);if(U&&sor(U)){let J=U.raw,G,Z=Q=>{T.raw[Q]||J[Q]&&(F[Q]=Cr(J[Q],re=>Tye(re)||qd(re)?re:Xi(G||(G=BI(mo(M),c,_d(a.useCaseSensitiveFileNames))),re)))};Z("include"),Z("exclude"),Z("files"),J.compileOnSave!==void 0&&(F.compileOnSave=J.compileOnSave),qe(F.options,U.options),F.watchOptions=F.watchOptions&&U.watchOptions?O(F,U.watchOptions):F.watchOptions||U.watchOptions}}function O(F,M){return F.watchOptionsCopied?qe(F.watchOptions,M):(F.watchOptionsCopied=!0,qe({},F.watchOptions,M))}}function cor(t,n,a,c,u){Ho(t,"excludes")&&u.push(bp(x.Unknown_option_excludes_Did_you_mean_exclude));let _=lpt(t.compilerOptions,a,u,c),f=upt(t.typeAcquisition,a,u,c),y=_or(t.watchOptions,a,u);t.compileOnSave=por(t,a,u);let g=t.extends||t.extends===""?ipt(t.extends,n,a,c,u):void 0;return{raw:t,options:_,watchOptions:y,typeAcquisition:f,extendedConfigPath:g}}function ipt(t,n,a,c,u,_,f,y){let g,k=c?Kut(c,a):a;if(Ni(t))g=opt(t,n,k,u,f,y);else if(Zn(t)){g=[];for(let T=0;TZ.name===F)&&(k=jt(k,U.name))))}}function opt(t,n,a,c,u,_){if(t=Z_(t),qd(t)||Ca(t,"./")||Ca(t,"../")){let y=za(t,a);if(!n.fileExists(y)&&!au(y,".json")&&(y=`${y}.json`,!n.fileExists(y))){c.push(FA(_,u,x.File_0_not_found,t));return}return y}let f=p8e(t,Xi(a,"tsconfig.json"),n);if(f.resolvedModule)return f.resolvedModule.resolvedFileName;t===""?c.push(FA(_,u,x.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):c.push(FA(_,u,x.File_0_not_found,t))}function uor(t,n,a,c,u,_,f){let y=a.useCaseSensitiveFileNames?n:lb(n),g,k,T;if(_&&(g=_.get(y))?{extendedResult:k,extendedConfig:T}=g:(k=qNe(n,C=>a.readFile(C)),k.parseDiagnostics.length||(T=npt(void 0,k,a,mo(n),t_(n),c,u,_)),_&&_.set(y,{extendedResult:k,extendedConfig:T})),t&&((f.extendedSourceFiles??(f.extendedSourceFiles=new Set)).add(k.fileName),k.extendedSourceFiles))for(let C of k.extendedSourceFiles)f.extendedSourceFiles.add(C);if(k.parseDiagnostics.length){u.push(...k.parseDiagnostics);return}return T}function por(t,n,a){if(!Ho(t,wNe.name))return!1;let c=m3(wNe,t.compileOnSave,n,a);return typeof c=="boolean"&&c}function apt(t,n,a){let c=[];return{options:lpt(t,n,c,a),errors:c}}function spt(t,n,a){let c=[];return{options:upt(t,n,c,a),errors:c}}function cpt(t){return t&&t_(t)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function lpt(t,n,a,c){let u=cpt(c);return GNe(Lut(),t,n,u,die,a),c&&(u.configFilePath=Z_(c)),u}function kye(t){return{enable:!!t&&t_(t)==="jsconfig.json",include:[],exclude:[]}}function upt(t,n,a,c){let u=kye(c);return GNe($ut(),t,n,u,Nut,a),u}function _or(t,n,a){return GNe(jut(),t,n,void 0,yye,a)}function GNe(t,n,a,c,u,_){if(n){for(let f in n){let y=t.get(f);y?(c||(c={}))[y.name]=m3(y,n[f],a,_):_.push(BNe(f,u))}return c}}function FA(t,n,a,...c){return t&&n?m0(t,n,a,...c):bp(a,...c)}function m3(t,n,a,c,u,_,f){if(t.isCommandLineOnly){c.push(FA(f,u?.name,x.Option_0_can_only_be_specified_on_command_line,t.name));return}if(Vut(t,n)){let y=t.type;if(y==="list"&&Zn(n))return _pt(t,n,a,c,u,_,f);if(y==="listOrElement")return Zn(n)?_pt(t,n,a,c,u,_,f):m3(t.element,n,a,c,u,_,f);if(!Ni(t.type))return ppt(t,n,c,_,f);let g=IF(t,n,c,_,f);return aK(g)?g:dor(t,a,g)}else c.push(FA(f,_,x.Compiler_option_0_requires_a_value_of_type_1,t.name,vye(t)))}function dor(t,n,a){return t.isFilePath&&(a=Z_(a),a=Tye(a)?a:za(a,n),a===""&&(a=".")),a}function IF(t,n,a,c,u){var _;if(aK(n))return;let f=(_=t.extraValidation)==null?void 0:_.call(t,n);if(!f)return n;a.push(FA(u,c,...f))}function ppt(t,n,a,c,u){if(aK(n))return;let _=n.toLowerCase(),f=t.type.get(_);if(f!==void 0)return IF(t,f,a,c,u);a.push(Dut(t,(y,...g)=>FA(u,c,y,...g)))}function _pt(t,n,a,c,u,_,f){return yr(Cr(n,(y,g)=>m3(t.element,y,a,c,u,_?.elements[g],f)),y=>t.listPreserveFalsyValues?!0:!!y)}var mor=/(?:^|\/)\*\*\/?$/,hor=/^[^*?]*(?=\/[^/]*[*?])/;function bz(t,n,a,c,u=j){n=Qs(n);let _=_d(c.useCaseSensitiveFileNames),f=new Map,y=new Map,g=new Map,{validatedFilesSpec:k,validatedIncludeSpecs:T,validatedExcludeSpecs:C}=t,O=qU(a,u),F=SH(a,O);if(k)for(let G of k){let Z=za(G,n);f.set(_(Z),Z)}let M;if(T&&T.length>0)for(let G of c.readDirectory(n,Rc(F),C,T,void 0)){if(Au(G,".json")){if(!M){let re=T.filter(_e=>au(_e,".json")),ae=Cr(pne(re,n,"files"),_e=>`^${_e}$`);M=ae?ae.map(_e=>mE(_e,c.useCaseSensitiveFileNames)):j}if(hr(M,re=>re.test(G))!==-1){let re=_(G);!f.has(re)&&!g.has(re)&&g.set(re,G)}continue}if(vor(G,f,y,O,_))continue;Sor(G,y,O,_);let Z=_(G);!f.has(Z)&&!y.has(Z)&&y.set(Z,G)}let U=so(f.values()),J=so(y.values());return U.concat(J,so(g.values()))}function HNe(t,n,a,c,u){let{validatedFilesSpec:_,validatedIncludeSpecs:f,validatedExcludeSpecs:y}=n;if(!te(f)||!te(y))return!1;a=Qs(a);let g=_d(c);if(_){for(let k of _)if(g(za(k,a))===t)return!1}return xie(t,y,c,u,a)}function dpt(t){let n=Ca(t,"**/")?0:t.indexOf("/**/");return n===-1?!1:(au(t,"/..")?t.length:t.lastIndexOf("/../"))>n}function bie(t,n,a,c){return xie(t,yr(n,u=>!dpt(u)),a,c)}function xie(t,n,a,c,u){let _=zU(n,Xi(Qs(c),u),"exclude"),f=_&&mE(_,a);return f?f.test(t)?!0:!eA(t)&&f.test(r_(t)):!1}function fpt(t,n,a,c,u){return t.filter(f=>{if(!Ni(f))return!1;let y=KNe(f,a);return y!==void 0&&n.push(_(...y)),y===void 0});function _(f,y){let g=hre(c,u,y);return FA(c,g,f,y)}}function KNe(t,n){if($.assert(typeof t=="string"),n&&mor.test(t))return[x.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t];if(dpt(t))return[x.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]}function gor({validatedIncludeSpecs:t,validatedExcludeSpecs:n},a,c){let u=zU(n,a,"exclude"),_=u&&new RegExp(u,c?"":"i"),f={},y=new Map;if(t!==void 0){let g=[];for(let k of t){let T=Qs(Xi(a,k));if(_&&_.test(T))continue;let C=yor(T,c);if(C){let{key:O,path:F,flags:M}=C,U=y.get(O),J=U!==void 0?f[U]:void 0;(J===void 0||J_p(t,f)?f:void 0);if(!_)return!1;for(let f of _){if(Au(t,f)&&(f!==".ts"||!Au(t,".d.ts")))return!1;let y=u(hE(t,f));if(n.has(y)||a.has(y)){if(f===".d.ts"&&(Au(t,".js")||Au(t,".jsx")))continue;return!0}}return!1}function Sor(t,n,a,c){let u=X(a,_=>_p(t,_)?_:void 0);if(u)for(let _=u.length-1;_>=0;_--){let f=u[_];if(Au(t,f))return;let y=c(hE(t,f));n.delete(y)}}function ZNe(t){let n={};for(let a in t)if(Ho(t,a)){let c=mye(a);c!==void 0&&(n[a]=XNe(t[a],c))}return n}function XNe(t,n){if(t===void 0)return t;switch(n.type){case"object":return"";case"string":return"";case"number":return typeof t=="number"?t:"";case"boolean":return typeof t=="boolean"?t:"";case"listOrElement":if(!Zn(t))return XNe(t,n.element);case"list":let a=n.element;return Zn(t)?Wn(t,c=>XNe(c,a)):"";default:return Ad(n.type,(c,u)=>{if(c===t)return u})}}function ns(t,n,...a){t.trace(nF(n,...a))}function TC(t,n){return!!t.traceResolution&&n.trace!==void 0}function PF(t,n,a){let c;if(n&&t){let u=t.contents.packageJsonContent;typeof u.name=="string"&&typeof u.version=="string"&&(c={name:u.name,subModuleName:n.path.slice(t.packageDirectory.length+Gl.length),version:u.version,peerDependencies:Uor(t,a)})}return n&&{path:n.path,extension:n.ext,packageId:c,resolvedUsingTsExtension:n.resolvedUsingTsExtension}}function Cye(t){return PF(void 0,t,void 0)}function mpt(t){if(t)return $.assert(t.packageId===void 0),{path:t.path,ext:t.extension,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function Tie(t){let n=[];return t&1&&n.push("TypeScript"),t&2&&n.push("JavaScript"),t&4&&n.push("Declaration"),t&8&&n.push("JSON"),n.join(", ")}function bor(t){let n=[];return t&1&&n.push(...vH),t&2&&n.push(...cL),t&4&&n.push(...gne),t&8&&n.push(".json"),n}function YNe(t){if(t)return $.assert(vne(t.extension)),{fileName:t.path,packageId:t.packageId}}function hpt(t,n,a,c,u,_,f,y,g){if(!f.resultFromCache&&!f.compilerOptions.preserveSymlinks&&n&&a&&!n.originalPath&&!vt(t)){let{resolvedFileName:k,originalPath:T}=vpt(n.path,f.host,f.traceEnabled);T&&(n={...n,path:k,originalPath:T})}return gpt(n,a,c,u,_,f.resultFromCache,y,g)}function gpt(t,n,a,c,u,_,f,y){return _?f?.isReadonly?{..._,failedLookupLocations:e8e(_.failedLookupLocations,a),affectingLocations:e8e(_.affectingLocations,c),resolutionDiagnostics:e8e(_.resolutionDiagnostics,u)}:(_.failedLookupLocations=NL(_.failedLookupLocations,a),_.affectingLocations=NL(_.affectingLocations,c),_.resolutionDiagnostics=NL(_.resolutionDiagnostics,u),_):{resolvedModule:t&&{resolvedFileName:t.path,originalPath:t.originalPath===!0?void 0:t.originalPath,extension:t.extension,isExternalLibraryImport:n,packageId:t.packageId,resolvedUsingTsExtension:!!t.resolvedUsingTsExtension},failedLookupLocations:xz(a),affectingLocations:xz(c),resolutionDiagnostics:xz(u),alternateResult:y}}function xz(t){return t.length?t:void 0}function NL(t,n){return n?.length?t?.length?(t.push(...n),t):n:t}function e8e(t,n){return t?.length?n.length?[...t,...n]:t.slice():xz(n)}function t8e(t,n,a,c){if(!Ho(t,n)){c.traceEnabled&&ns(c.host,x.package_json_does_not_have_a_0_field,n);return}let u=t[n];if(typeof u!==a||u===null){c.traceEnabled&&ns(c.host,x.Expected_type_of_0_field_in_package_json_to_be_1_got_2,n,a,u===null?"null":typeof u);return}return u}function Dye(t,n,a,c){let u=t8e(t,n,"string",c);if(u===void 0)return;if(!u){c.traceEnabled&&ns(c.host,x.package_json_had_a_falsy_0_field,n);return}let _=Qs(Xi(a,u));return c.traceEnabled&&ns(c.host,x.package_json_has_0_field_1_that_references_2,n,u,_),_}function xor(t,n,a){return Dye(t,"typings",n,a)||Dye(t,"types",n,a)}function Tor(t,n,a){return Dye(t,"tsconfig",n,a)}function Eor(t,n,a){return Dye(t,"main",n,a)}function kor(t,n){let a=t8e(t,"typesVersions","object",n);if(a!==void 0)return n.traceEnabled&&ns(n.host,x.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),a}function Cor(t,n){let a=kor(t,n);if(a===void 0)return;if(n.traceEnabled)for(let f in a)Ho(a,f)&&!KD.tryParse(f)&&ns(n.host,x.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,f);let c=Eie(a);if(!c){n.traceEnabled&&ns(n.host,x.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,A);return}let{version:u,paths:_}=c;if(typeof _!="object"){n.traceEnabled&&ns(n.host,x.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${u}']`,"object",typeof _);return}return c}var r8e;function Eie(t){r8e||(r8e=new Iy(L));for(let n in t){if(!Ho(t,n))continue;let a=KD.tryParse(n);if(a!==void 0&&a.test(r8e))return{version:n,paths:t[n]}}}function Tz(t,n){if(t.typeRoots)return t.typeRoots;let a;if(t.configFilePath?a=mo(t.configFilePath):n.getCurrentDirectory&&(a=n.getCurrentDirectory()),a!==void 0)return Dor(a)}function Dor(t){let n;return Ex(Qs(t),a=>{let c=Xi(a,Aor);(n??(n=[])).push(c)}),n}var Aor=Xi("node_modules","@types");function ypt(t,n,a){let c=typeof a.useCaseSensitiveFileNames=="function"?a.useCaseSensitiveFileNames():a.useCaseSensitiveFileNames;return M1(t,n,!c)===0}function vpt(t,n,a){let c=Apt(t,n,a),u=ypt(t,c,n);return{resolvedFileName:u?t:c,originalPath:u?void 0:t}}function Spt(t,n,a){let c=au(t,"/node_modules/@types")||au(t,"/node_modules/@types/")?Upt(n,a):n;return Xi(t,c)}function n8e(t,n,a,c,u,_,f){$.assert(typeof t=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");let y=TC(a,c);u&&(a=u.commandLine.options);let g=n?mo(n):void 0,k=g?_?.getFromDirectoryCache(t,f,g,u):void 0;if(!k&&g&&!vt(t)&&(k=_?.getFromNonRelativeNameCache(t,f,g,u)),k)return y&&(ns(c,x.Resolving_type_reference_directive_0_containing_file_1,t,n),u&&ns(c,x.Using_compiler_options_of_project_reference_redirect_0,u.sourceFile.fileName),ns(c,x.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,t,g),ae(k)),k;let T=Tz(a,c);y&&(n===void 0?T===void 0?ns(c,x.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,t):ns(c,x.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,t,T):T===void 0?ns(c,x.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,t,n):ns(c,x.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,t,n,T),u&&ns(c,x.Using_compiler_options_of_project_reference_redirect_0,u.sourceFile.fileName));let C=[],O=[],F=i8e(a);f!==void 0&&(F|=30);let M=km(a);f===99&&3<=M&&M<=99&&(F|=32);let U=F&8?EC(a,f):[],J=[],G={compilerOptions:a,host:c,traceEnabled:y,failedLookupLocations:C,affectingLocations:O,packageJsonInfoCache:_,features:F,conditions:U,requestContainingDirectory:g,reportDiagnostic:le=>{J.push(le)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},Z=_e(),Q=!0;Z||(Z=me(),Q=!1);let re;if(Z){let{fileName:le,packageId:Oe}=Z,be=le,ue;a.preserveSymlinks||({resolvedFileName:be,originalPath:ue}=vpt(le,c,y)),re={primary:Q,resolvedFileName:be,originalPath:ue,packageId:Oe,isExternalLibraryImport:kC(le)}}return k={resolvedTypeReferenceDirective:re,failedLookupLocations:xz(C),affectingLocations:xz(O),resolutionDiagnostics:xz(J)},g&&_&&!_.isReadonly&&(_.getOrCreateCacheForDirectory(g,u).set(t,f,k),vt(t)||_.getOrCreateCacheForNonRelativeName(t,f,u).set(g,k)),y&&ae(k),k;function ae(le){var Oe;(Oe=le.resolvedTypeReferenceDirective)!=null&&Oe.resolvedFileName?le.resolvedTypeReferenceDirective.packageId?ns(c,x.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,t,le.resolvedTypeReferenceDirective.resolvedFileName,cA(le.resolvedTypeReferenceDirective.packageId),le.resolvedTypeReferenceDirective.primary):ns(c,x.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,t,le.resolvedTypeReferenceDirective.resolvedFileName,le.resolvedTypeReferenceDirective.primary):ns(c,x.Type_reference_directive_0_was_not_resolved,t)}function _e(){if(T&&T.length)return y&&ns(c,x.Resolving_with_primary_search_path_0,T.join(", ")),Je(T,le=>{let Oe=Spt(le,t,G),be=Sv(le,c);if(!be&&y&&ns(c,x.Directory_0_does_not_exist_skipping_all_lookups_in_it,le),a.typeRoots){let ue=RL(4,Oe,!be,G);if(ue){let De=lK(ue.path),Ce=De?g3(De,!1,G):void 0;return YNe(PF(Ce,ue,G))}}return YNe(d8e(4,Oe,!be,G))});y&&ns(c,x.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function me(){let le=n&&mo(n);if(le!==void 0){let Oe;if(!a.typeRoots||!au(n,$z))if(y&&ns(c,x.Looking_up_in_node_modules_folder_initial_location_0,le),vt(t)){let{path:be}=Dpt(le,t);Oe=Pye(4,be,!1,G,!0)}else{let be=Mpt(4,t,le,G,void 0,void 0);Oe=be&&be.value}else y&&ns(c,x.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return YNe(Oe)}else y&&ns(c,x.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function i8e(t){let n=0;switch(km(t)){case 3:n=30;break;case 99:n=30;break;case 100:n=30;break}return t.resolvePackageJsonExports?n|=8:t.resolvePackageJsonExports===!1&&(n&=-9),t.resolvePackageJsonImports?n|=2:t.resolvePackageJsonImports===!1&&(n&=-3),n}function EC(t,n){let a=km(t);if(n===void 0){if(a===100)n=99;else if(a===2)return[]}let c=n===99?["import"]:["require"];return t.noDtsResolution||c.push("types"),a!==100&&c.push("node"),go(c,t.customConditions)}function Aye(t,n,a,c,u){let _=kz(u?.getPackageJsonInfoCache(),c,a);return Ab(c,n,f=>{if(t_(f)!=="node_modules"){let y=Xi(f,"node_modules"),g=Xi(y,t);return g3(g,!1,_)}})}function kie(t,n){if(t.types)return t.types;let a=[];if(n.directoryExists&&n.getDirectories){let c=Tz(t,n);if(c){for(let u of c)if(n.directoryExists(u))for(let _ of n.getDirectories(u)){let f=Qs(_),y=Xi(u,f,"package.json");if(!(n.fileExists(y)&&nL(y,n).typings===null)){let k=t_(f);k.charCodeAt(0)!==46&&a.push(k)}}}}return a}function Cie(t){return!!t?.contents}function o8e(t){return!!t&&!t.contents}function a8e(t){var n;if(t===null||typeof t!="object")return""+t;if(Zn(t))return`[${(n=t.map(c=>a8e(c)))==null?void 0:n.join(",")}]`;let a="{";for(let c in t)Ho(t,c)&&(a+=`${c}: ${a8e(t[c])}`);return a+"}"}function wye(t,n){return n.map(a=>a8e(cne(t,a))).join("|")+`|${t.pathsBasePath}`}function bpt(t,n){let a=new Map,c=new Map,u=new Map;return t&&a.set(t,u),{getMapOfCacheRedirects:_,getOrCreateMapOfCacheRedirects:f,update:y,clear:k,getOwnMap:()=>u};function _(C){return C?g(C.commandLine.options,!1):u}function f(C){return C?g(C.commandLine.options,!0):u}function y(C){t!==C&&(t?u=g(C,!0):a.set(C,u),t=C)}function g(C,O){let F=a.get(C);if(F)return F;let M=T(C);if(F=c.get(M),!F){if(t){let U=T(t);U===M?F=u:c.has(U)||c.set(U,u)}O&&(F??(F=new Map)),F&&c.set(M,F)}return F&&a.set(C,F),F}function k(){let C=t&&n.get(t);u.clear(),a.clear(),n.clear(),c.clear(),t&&(C&&n.set(t,C),a.set(t,u))}function T(C){let O=n.get(C);return O||n.set(C,O=wye(C,pye)),O}}function wor(t,n){let a;return{getPackageJsonInfo:c,setPackageJsonInfo:u,clear:_,getInternalMap:f};function c(y){return a?.get(wl(y,t,n))}function u(y,g){(a||(a=new Map)).set(wl(y,t,n),g)}function _(){a=void 0}function f(){return a}}function xpt(t,n,a,c){let u=t.getOrCreateMapOfCacheRedirects(n),_=u.get(a);return _||(_=c(),u.set(a,_)),_}function Ior(t,n,a,c){let u=bpt(a,c);return{getFromDirectoryCache:g,getOrCreateCacheForDirectory:y,clear:_,update:f,directoryToModuleNameMap:u};function _(){u.clear()}function f(k){u.update(k)}function y(k,T){let C=wl(k,t,n);return xpt(u,T,C,()=>OL())}function g(k,T,C,O){var F,M;let U=wl(C,t,n);return(M=(F=u.getMapOfCacheRedirects(O))==null?void 0:F.get(U))==null?void 0:M.get(k,T)}}function Ez(t,n){return n===void 0?t:`${n}|${t}`}function OL(){let t=new Map,n=new Map,a={get(u,_){return t.get(c(u,_))},set(u,_,f){return t.set(c(u,_),f),a},delete(u,_){return t.delete(c(u,_)),a},has(u,_){return t.has(c(u,_))},forEach(u){return t.forEach((_,f)=>{let[y,g]=n.get(f);return u(_,y,g)})},size(){return t.size}};return a;function c(u,_){let f=Ez(u,_);return n.set(f,[u,_]),f}}function Por(t){return t.resolvedModule&&(t.resolvedModule.originalPath||t.resolvedModule.resolvedFileName)}function Nor(t){return t.resolvedTypeReferenceDirective&&(t.resolvedTypeReferenceDirective.originalPath||t.resolvedTypeReferenceDirective.resolvedFileName)}function Oor(t,n,a,c,u){let _=bpt(a,u);return{getFromNonRelativeNameCache:g,getOrCreateCacheForNonRelativeName:k,clear:f,update:y};function f(){_.clear()}function y(C){_.update(C)}function g(C,O,F,M){var U,J;return $.assert(!vt(C)),(J=(U=_.getMapOfCacheRedirects(M))==null?void 0:U.get(Ez(C,O)))==null?void 0:J.get(F)}function k(C,O,F){return $.assert(!vt(C)),xpt(_,F,Ez(C,O),T)}function T(){let C=new Map;return{get:O,set:F};function O(U){return C.get(wl(U,t,n))}function F(U,J){let G=wl(U,t,n);if(C.has(G))return;C.set(G,J);let Z=c(J),Q=Z&&M(G,Z),re=G;for(;re!==Q;){let ae=mo(re);if(ae===re||C.has(ae))break;C.set(ae,J),re=ae}}function M(U,J){let G=wl(mo(J),t,n),Z=0,Q=Math.min(U.length,G.length);for(;Zc,clearAllExceptPackageJsonInfoCache:k,optionsToRedirectsKey:_};function g(){k(),c.clear()}function k(){f.clear(),y.clear()}function T(C){f.update(C),y.update(C)}}function FL(t,n,a,c,u){let _=Tpt(t,n,a,c,Por,u);return _.getOrCreateCacheForModuleName=(f,y,g)=>_.getOrCreateCacheForNonRelativeName(f,y,g),_}function Die(t,n,a,c,u){return Tpt(t,n,a,c,Nor,u)}function Iye(t){return{moduleResolution:2,traceResolution:t.traceResolution}}function Aie(t,n,a,c,u){return h3(t,n,Iye(a),c,u)}function Ept(t,n,a,c){let u=mo(n);return a.getFromDirectoryCache(t,c,u,void 0)}function h3(t,n,a,c,u,_,f){let y=TC(a,c);_&&(a=_.commandLine.options),y&&(ns(c,x.Resolving_module_0_from_1,t,n),_&&ns(c,x.Using_compiler_options_of_project_reference_redirect_0,_.sourceFile.fileName));let g=mo(n),k=u?.getFromDirectoryCache(t,f,g,_);if(k)y&&ns(c,x.Resolution_for_module_0_was_found_in_cache_from_location_1,t,g);else{let T=a.moduleResolution;switch(T===void 0?(T=km(a),y&&ns(c,x.Module_resolution_kind_is_not_specified_using_0,zk[T])):y&&ns(c,x.Explicitly_specified_module_resolution_kind_Colon_0,zk[T]),T){case 3:k=Mor(t,n,a,c,u,_,f);break;case 99:k=jor(t,n,a,c,u,_,f);break;case 2:k=u8e(t,n,a,c,u,_,f?EC(a,f):void 0);break;case 1:k=h8e(t,n,a,c,u,_);break;case 100:k=l8e(t,n,a,c,u,_,f?EC(a,f):void 0);break;default:return $.fail(`Unexpected moduleResolution: ${T}`)}u&&!u.isReadonly&&(u.getOrCreateCacheForDirectory(g,_).set(t,f,k),vt(t)||u.getOrCreateCacheForNonRelativeName(t,f,_).set(g,k))}return y&&(k.resolvedModule?k.resolvedModule.packageId?ns(c,x.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,t,k.resolvedModule.resolvedFileName,cA(k.resolvedModule.packageId)):ns(c,x.Module_name_0_was_successfully_resolved_to_1,t,k.resolvedModule.resolvedFileName):ns(c,x.Module_name_0_was_not_resolved,t)),k}function kpt(t,n,a,c,u){let _=For(t,n,c,u);return _?_.value:vt(n)?Ror(t,n,a,c,u):Lor(t,n,c,u)}function For(t,n,a,c){let{baseUrl:u,paths:_}=c.compilerOptions;if(_&&!ch(n)){c.traceEnabled&&(u&&ns(c.host,x.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,u,n),ns(c.host,x.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n));let f=Ure(c.compilerOptions,c.host),y=TH(_);return f8e(t,n,f,_,y,a,!1,c)}}function Ror(t,n,a,c,u){if(!u.compilerOptions.rootDirs)return;u.traceEnabled&&ns(u.host,x.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);let _=Qs(Xi(a,n)),f,y;for(let g of u.compilerOptions.rootDirs){let k=Qs(g);au(k,Gl)||(k+=Gl);let T=Ca(_,k)&&(y===void 0||y.length(t[t.None=0]="None",t[t.Imports=2]="Imports",t[t.SelfName=4]="SelfName",t[t.Exports=8]="Exports",t[t.ExportsPatternTrailers=16]="ExportsPatternTrailers",t[t.AllFeatures=30]="AllFeatures",t[t.Node16Default=30]="Node16Default",t[t.NodeNextDefault=30]="NodeNextDefault",t[t.BundlerDefault=30]="BundlerDefault",t[t.EsmMode=32]="EsmMode",t))(c8e||{});function Mor(t,n,a,c,u,_,f){return Cpt(30,t,n,a,c,u,_,f)}function jor(t,n,a,c,u,_,f){return Cpt(30,t,n,a,c,u,_,f)}function Cpt(t,n,a,c,u,_,f,y,g){let k=mo(a),T=y===99?32:0,C=c.noDtsResolution?3:7;return _P(c)&&(C|=8),cK(t|T,n,k,c,u,_,C,!1,f,g)}function Bor(t,n,a){return cK(0,t,n,{moduleResolution:2,allowJs:!0},a,void 0,2,!1,void 0,void 0)}function l8e(t,n,a,c,u,_,f){let y=mo(n),g=a.noDtsResolution?3:7;return _P(a)&&(g|=8),cK(i8e(a),t,y,a,c,u,g,!1,_,f)}function u8e(t,n,a,c,u,_,f,y){let g;return y?g=8:a.noDtsResolution?(g=3,_P(a)&&(g|=8)):g=_P(a)?15:7,cK(f?30:0,t,mo(n),a,c,u,g,!!y,_,f)}function p8e(t,n,a){return cK(30,t,mo(n),{moduleResolution:99},a,void 0,8,!0,void 0,void 0)}function cK(t,n,a,c,u,_,f,y,g,k){var T,C,O,F,M;let U=TC(c,u),J=[],G=[],Z=km(c);k??(k=EC(c,Z===100||Z===2?void 0:t&32?99:1));let Q=[],re={compilerOptions:c,host:u,traceEnabled:U,failedLookupLocations:J,affectingLocations:G,packageJsonInfoCache:_,features:t,conditions:k??j,requestContainingDirectory:a,reportDiagnostic:le=>{Q.push(le)},isConfigLookup:y,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};U&&sL(Z)&&ns(u,x.Resolving_in_0_mode_with_conditions_1,t&32?"ESM":"CJS",re.conditions.map(le=>`'${le}'`).join(", "));let ae;if(Z===2){let le=f&5,Oe=f&-6;ae=le&&me(le,re)||Oe&&me(Oe,re)||void 0}else ae=me(f,re);let _e;if(re.resolvedPackageDirectory&&!y&&!vt(n)){let le=ae?.value&&f&5&&!Fpt(5,ae.value.resolved.extension);if((T=ae?.value)!=null&&T.isExternalLibraryImport&&le&&t&8&&k?.includes("import")){CC(re,x.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let Oe={...re,features:re.features&-9,reportDiagnostic:zs},be=me(f&5,Oe);(C=be?.value)!=null&&C.isExternalLibraryImport&&(_e=be.value.resolved.path)}else if((!ae?.value||le)&&Z===2){CC(re,x.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let Oe={...re.compilerOptions,moduleResolution:100},be={...re,compilerOptions:Oe,features:30,conditions:EC(Oe),reportDiagnostic:zs},ue=me(f&5,be);(O=ue?.value)!=null&&O.isExternalLibraryImport&&(_e=ue.value.resolved.path)}}return hpt(n,(F=ae?.value)==null?void 0:F.resolved,(M=ae?.value)==null?void 0:M.isExternalLibraryImport,J,G,Q,re,_,_e);function me(le,Oe){let ue=kpt(le,n,a,(De,Ce,Ae,Fe)=>Pye(De,Ce,Ae,Fe,!0),Oe);if(ue)return zy({resolved:ue,isExternalLibraryImport:kC(ue.path)});if(vt(n)){let{path:De,parts:Ce}=Dpt(a,n),Ae=Pye(le,De,!1,Oe,!0);return Ae&&zy({resolved:Ae,isExternalLibraryImport:un(Ce,"node_modules")})}else{if(t&2&&Ca(n,"#")){let Ce=Vor(le,n,a,Oe,_,g);if(Ce)return Ce.value&&{value:{resolved:Ce.value,isExternalLibraryImport:!1}}}if(t&4){let Ce=Jor(le,n,a,Oe,_,g);if(Ce)return Ce.value&&{value:{resolved:Ce.value,isExternalLibraryImport:!1}}}if(n.includes(":")){U&&ns(u,x.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,n,Tie(le));return}U&&ns(u,x.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,n,Tie(le));let De=Mpt(le,n,a,Oe,_,g);return le&4&&(De??(De=qpt(n,Oe))),De&&{value:De.value&&{resolved:De.value,isExternalLibraryImport:!0}}}}}function Dpt(t,n){let a=Xi(t,n),c=Cd(a),u=Yr(c);return{path:u==="."||u===".."?r_(Qs(a)):Qs(a),parts:c}}function Apt(t,n,a){if(!n.realpath)return t;let c=Qs(n.realpath(t));return a&&ns(n,x.Resolving_real_path_for_0_result_1,t,c),c}function Pye(t,n,a,c,u){if(c.traceEnabled&&ns(c.host,x.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,n,Tie(t)),!uS(n)){if(!a){let f=mo(n);Sv(f,c.host)||(c.traceEnabled&&ns(c.host,x.Directory_0_does_not_exist_skipping_all_lookups_in_it,f),a=!0)}let _=RL(t,n,a,c);if(_){let f=u?lK(_.path):void 0,y=f?g3(f,!1,c):void 0;return PF(y,_,c)}}if(a||Sv(n,c.host)||(c.traceEnabled&&ns(c.host,x.Directory_0_does_not_exist_skipping_all_lookups_in_it,n),a=!0),!(c.features&32))return d8e(t,n,a,c,u)}var Jx="/node_modules/";function kC(t){return t.includes(Jx)}function lK(t,n){let a=Qs(t),c=a.lastIndexOf(Jx);if(c===-1)return;let u=c+Jx.length,_=wpt(a,u,n);return a.charCodeAt(u)===64&&(_=wpt(a,_,n)),a.slice(0,_)}function wpt(t,n,a){let c=t.indexOf(Gl,n+1);return c===-1?a?t.length:n:c}function _8e(t,n,a,c){return Cye(RL(t,n,a,c))}function RL(t,n,a,c){let u=Ipt(t,n,a,c);if(u)return u;if(!(c.features&32)){let _=Ppt(n,t,"",a,c);if(_)return _}}function Ipt(t,n,a,c){if(!t_(n).includes("."))return;let _=Qm(n);_===n&&(_=n.substring(0,n.lastIndexOf(".")));let f=n.substring(_.length);return c.traceEnabled&&ns(c.host,x.File_name_0_has_a_1_extension_stripping_it,n,f),Ppt(_,t,f,a,c)}function Nye(t,n,a,c,u){if(t&1&&_p(n,vH)||t&4&&_p(n,gne)){let _=Oye(n,c,u),f=Qre(n);return _!==void 0?{path:n,ext:f,resolvedUsingTsExtension:a?!au(a,f):void 0}:void 0}return u.isConfigLookup&&t===8&&Au(n,".json")?Oye(n,c,u)!==void 0?{path:n,ext:".json",resolvedUsingTsExtension:void 0}:void 0:Ipt(t,n,c,u)}function Ppt(t,n,a,c,u){if(!c){let f=mo(t);f&&(c=!Sv(f,u.host))}switch(a){case".mjs":case".mts":case".d.mts":return n&1&&_(".mts",a===".mts"||a===".d.mts")||n&4&&_(".d.mts",a===".mts"||a===".d.mts")||n&2&&_(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return n&1&&_(".cts",a===".cts"||a===".d.cts")||n&4&&_(".d.cts",a===".cts"||a===".d.cts")||n&2&&_(".cjs")||void 0;case".json":return n&4&&_(".d.json.ts")||n&8&&_(".json")||void 0;case".tsx":case".jsx":return n&1&&(_(".tsx",a===".tsx")||_(".ts",a===".tsx"))||n&4&&_(".d.ts",a===".tsx")||n&2&&(_(".jsx")||_(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return n&1&&(_(".ts",a===".ts"||a===".d.ts")||_(".tsx",a===".ts"||a===".d.ts"))||n&4&&_(".d.ts",a===".ts"||a===".d.ts")||n&2&&(_(".js")||_(".jsx"))||u.isConfigLookup&&_(".json")||void 0;default:return n&4&&!sf(t+a)&&_(`.d${a}.ts`)||void 0}function _(f,y){let g=Oye(t+f,c,u);return g===void 0?void 0:{path:g,ext:f,resolvedUsingTsExtension:!u.candidateIsFromPackageJsonField&&y}}}function Oye(t,n,a){var c;if(!((c=a.compilerOptions.moduleSuffixes)!=null&&c.length))return Npt(t,n,a);let u=Bx(t)??"",_=u?xH(t,u):t;return X(a.compilerOptions.moduleSuffixes,f=>Npt(_+f+u,n,a))}function Npt(t,n,a){var c;if(!n){if(a.host.fileExists(t))return a.traceEnabled&&ns(a.host,x.File_0_exists_use_it_as_a_name_resolution_result,t),t;a.traceEnabled&&ns(a.host,x.File_0_does_not_exist,t)}(c=a.failedLookupLocations)==null||c.push(t)}function d8e(t,n,a,c,u=!0){let _=u?g3(n,a,c):void 0;return PF(_,Rye(t,n,a,c,_),c)}function Fye(t,n,a,c,u){if(!u&&t.contents.resolvedEntrypoints!==void 0)return t.contents.resolvedEntrypoints;let _,f=5|(u?2:0),y=i8e(n),g=kz(c?.getPackageJsonInfoCache(),a,n);g.conditions=EC(n),g.requestContainingDirectory=t.packageDirectory;let k=Rye(f,t.packageDirectory,!1,g,t);if(_=jt(_,k?.path),y&8&&t.contents.packageJsonContent.exports){let T=rf([EC(n,99),EC(n,1)],__);for(let C of T){let O={...g,failedLookupLocations:[],conditions:C,host:a},F=$or(t,t.contents.packageJsonContent.exports,O,f);if(F)for(let M of F)_=Jl(_,M.path)}}return t.contents.resolvedEntrypoints=_||!1}function $or(t,n,a,c){let u;if(Zn(n))for(let f of n)_(f);else if(typeof n=="object"&&n!==null&&Iie(n))for(let f in n)_(n[f]);else _(n);return u;function _(f){var y,g;if(typeof f=="string"&&Ca(f,"./"))if(f.includes("*")&&a.host.readDirectory){if(f.indexOf("*")!==f.lastIndexOf("*"))return!1;a.host.readDirectory(t.packageDirectory,bor(c),void 0,[T4(Y4(f,"**/*"),".*")]).forEach(k=>{u=Jl(u,{path:k,ext:nE(k),resolvedUsingTsExtension:void 0})})}else{let k=Cd(f).slice(2);if(k.includes("..")||k.includes(".")||k.includes("node_modules"))return!1;let T=Xi(t.packageDirectory,f),C=za(T,(g=(y=a.host).getCurrentDirectory)==null?void 0:g.call(y)),O=Nye(c,C,f,!1,a);if(O)return u=Jl(u,O,(F,M)=>F.path===M.path),!0}else if(Array.isArray(f)){for(let k of f)if(_(k))return!0}else if(typeof f=="object"&&f!==null)return X(Lu(f),k=>{if(k==="default"||un(a.conditions,k)||uK(a.conditions,k))return _(f[k]),!0})}}function kz(t,n,a){return{host:n,compilerOptions:a,traceEnabled:TC(a,n),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:t,features:0,conditions:j,requestContainingDirectory:void 0,reportDiagnostic:zs,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function Cz(t,n){return Ab(n.host,t,a=>g3(a,!1,n))}function Opt(t,n){return t.contents.versionPaths===void 0&&(t.contents.versionPaths=Cor(t.contents.packageJsonContent,n)||!1),t.contents.versionPaths||void 0}function Uor(t,n){return t.contents.peerDependencies===void 0&&(t.contents.peerDependencies=zor(t,n)||!1),t.contents.peerDependencies||void 0}function zor(t,n){let a=t8e(t.contents.packageJsonContent,"peerDependencies","object",n);if(a===void 0)return;n.traceEnabled&&ns(n.host,x.package_json_has_a_peerDependencies_field);let c=Apt(t.packageDirectory,n.host,n.traceEnabled),u=c.substring(0,c.lastIndexOf("node_modules")+12)+Gl,_="";for(let f in a)if(Ho(a,f)){let y=g3(u+f,!1,n);if(y){let g=y.contents.packageJsonContent.version;_+=`+${f}@${g}`,n.traceEnabled&&ns(n.host,x.Found_peerDependency_0_with_1_version,f,g)}else n.traceEnabled&&ns(n.host,x.Failed_to_find_peerDependency_0,f)}return _}function g3(t,n,a){var c,u,_,f,y,g;let{host:k,traceEnabled:T}=a,C=Xi(t,"package.json");if(n){(c=a.failedLookupLocations)==null||c.push(C);return}let O=(u=a.packageJsonInfoCache)==null?void 0:u.getPackageJsonInfo(C);if(O!==void 0){if(Cie(O))return T&&ns(k,x.File_0_exists_according_to_earlier_cached_lookups,C),(_=a.affectingLocations)==null||_.push(C),O.packageDirectory===t?O:{packageDirectory:t,contents:O.contents};O.directoryExists&&T&&ns(k,x.File_0_does_not_exist_according_to_earlier_cached_lookups,C),(f=a.failedLookupLocations)==null||f.push(C);return}let F=Sv(t,k);if(F&&k.fileExists(C)){let M=nL(C,k);T&&ns(k,x.Found_package_json_at_0,C);let U={packageDirectory:t,contents:{packageJsonContent:M,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return a.packageJsonInfoCache&&!a.packageJsonInfoCache.isReadonly&&a.packageJsonInfoCache.setPackageJsonInfo(C,U),(y=a.affectingLocations)==null||y.push(C),U}else F&&T&&ns(k,x.File_0_does_not_exist,C),a.packageJsonInfoCache&&!a.packageJsonInfoCache.isReadonly&&a.packageJsonInfoCache.setPackageJsonInfo(C,{packageDirectory:t,directoryExists:F}),(g=a.failedLookupLocations)==null||g.push(C)}function Rye(t,n,a,c,u){let _=u&&Opt(u,c),f;u&&ypt(u?.packageDirectory,n,c.host)&&(c.isConfigLookup?f=Tor(u.contents.packageJsonContent,u.packageDirectory,c):f=t&4&&xor(u.contents.packageJsonContent,u.packageDirectory,c)||t&7&&Eor(u.contents.packageJsonContent,u.packageDirectory,c)||void 0);let y=(O,F,M,U)=>{let J=Nye(O,F,void 0,M,U);if(J)return Cye(J);let G=O===4?5:O,Z=U.features,Q=U.candidateIsFromPackageJsonField;U.candidateIsFromPackageJsonField=!0,u?.contents.packageJsonContent.type!=="module"&&(U.features&=-33);let re=Pye(G,F,M,U,!1);return U.features=Z,U.candidateIsFromPackageJsonField=Q,re},g=f?!Sv(mo(f),c.host):void 0,k=a||!Sv(n,c.host),T=Xi(n,c.isConfigLookup?"tsconfig":"index");if(_&&(!f||ug(n,f))){let O=lh(n,f||T,!1);c.traceEnabled&&ns(c.host,x.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,_.version,L,O);let F=TH(_.paths),M=f8e(t,O,n,_.paths,F,y,g||k,c);if(M)return mpt(M.value)}let C=f&&mpt(y(t,f,g,c));if(C)return C;if(!(c.features&32))return RL(t,T,k,c)}function Fpt(t,n){return t&2&&(n===".js"||n===".jsx"||n===".mjs"||n===".cjs")||t&1&&(n===".ts"||n===".tsx"||n===".mts"||n===".cts")||t&4&&(n===".d.ts"||n===".d.mts"||n===".d.cts")||t&8&&n===".json"||!1}function wie(t){let n=t.indexOf(Gl);return t[0]==="@"&&(n=t.indexOf(Gl,n+1)),n===-1?{packageName:t,rest:""}:{packageName:t.slice(0,n),rest:t.slice(n+1)}}function Iie(t){return ht(Lu(t),n=>Ca(n,"."))}function qor(t){return!Pt(Lu(t),n=>Ca(n,"."))}function Jor(t,n,a,c,u,_){var f,y;let g=za(a,(y=(f=c.host).getCurrentDirectory)==null?void 0:y.call(f)),k=Cz(g,c);if(!k||!k.contents.packageJsonContent.exports||typeof k.contents.packageJsonContent.name!="string")return;let T=Cd(n),C=Cd(k.contents.packageJsonContent.name);if(!ht(C,(J,G)=>T[G]===J))return;let O=T.slice(C.length),F=te(O)?`.${Gl}${O.join(Gl)}`:".";if(fC(c.compilerOptions)&&!kC(a))return Lye(k,t,F,c,u,_);let M=t&5,U=t&-6;return Lye(k,M,F,c,u,_)||Lye(k,U,F,c,u,_)}function Lye(t,n,a,c,u,_){if(t.contents.packageJsonContent.exports){if(a==="."){let f;if(typeof t.contents.packageJsonContent.exports=="string"||Array.isArray(t.contents.packageJsonContent.exports)||typeof t.contents.packageJsonContent.exports=="object"&&qor(t.contents.packageJsonContent.exports)?f=t.contents.packageJsonContent.exports:Ho(t.contents.packageJsonContent.exports,".")&&(f=t.contents.packageJsonContent.exports["."]),f)return Lpt(n,c,u,_,a,t,!1)(f,"",!1,".")}else if(Iie(t.contents.packageJsonContent.exports)){if(typeof t.contents.packageJsonContent.exports!="object")return c.traceEnabled&&ns(c.host,x.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,a,t.packageDirectory),zy(void 0);let f=Rpt(n,c,u,_,a,t.contents.packageJsonContent.exports,t,!1);if(f)return f}return c.traceEnabled&&ns(c.host,x.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,a,t.packageDirectory),zy(void 0)}}function Vor(t,n,a,c,u,_){var f,y;if(n==="#"||Ca(n,"#/"))return c.traceEnabled&&ns(c.host,x.Invalid_import_specifier_0_has_no_possible_resolutions,n),zy(void 0);let g=za(a,(y=(f=c.host).getCurrentDirectory)==null?void 0:y.call(f)),k=Cz(g,c);if(!k)return c.traceEnabled&&ns(c.host,x.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,g),zy(void 0);if(!k.contents.packageJsonContent.imports)return c.traceEnabled&&ns(c.host,x.package_json_scope_0_has_no_imports_defined,k.packageDirectory),zy(void 0);let T=Rpt(t,c,u,_,n,k.contents.packageJsonContent.imports,k,!0);return T||(c.traceEnabled&&ns(c.host,x.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,k.packageDirectory),zy(void 0))}function Mye(t,n){let a=t.indexOf("*"),c=n.indexOf("*"),u=a===-1?t.length:a+1,_=c===-1?n.length:c+1;return u>_?-1:_>u||a===-1?1:c===-1||t.length>n.length?-1:n.length>t.length?1:0}function Rpt(t,n,a,c,u,_,f,y){let g=Lpt(t,n,a,c,u,f,y);if(!au(u,Gl)&&!u.includes("*")&&Ho(_,u)){let C=_[u];return g(C,"",!1,u)}let k=pu(yr(Lu(_),C=>Wor(C)||au(C,"/")),Mye);for(let C of k)if(n.features&16&&T(C,u)){let O=_[C],F=C.indexOf("*"),M=u.substring(C.substring(0,F).length,u.length-(C.length-1-F));return g(O,M,!0,C)}else if(au(C,"*")&&Ca(u,C.substring(0,C.length-1))){let O=_[C],F=u.substring(C.length-1);return g(O,F,!0,C)}else if(Ca(u,C)){let O=_[C],F=u.substring(C.length);return g(O,F,!1,C)}function T(C,O){if(au(C,"*"))return!1;let F=C.indexOf("*");return F===-1?!1:Ca(O,C.substring(0,F))&&au(O,C.substring(F+1))}}function Wor(t){let n=t.indexOf("*");return n!==-1&&n===t.lastIndexOf("*")}function Lpt(t,n,a,c,u,_,f){return y;function y(g,k,T,C){var O,F;if(typeof g=="string"){if(!T&&k.length>0&&!au(g,"/"))return n.traceEnabled&&ns(n.host,x.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,_.packageDirectory,u),zy(void 0);if(!Ca(g,"./")){if(f&&!Ca(g,"../")&&!Ca(g,"/")&&!qd(g)){let me=T?g.replace(/\*/g,k):g+k;CC(n,x.Using_0_subpath_1_with_target_2,"imports",C,me),CC(n,x.Resolving_module_0_from_1,me,_.packageDirectory+"/");let le=cK(n.features,me,_.packageDirectory+"/",n.compilerOptions,n.host,a,t,!1,c,n.conditions);return(O=n.failedLookupLocations)==null||O.push(...le.failedLookupLocations??j),(F=n.affectingLocations)==null||F.push(...le.affectingLocations??j),zy(le.resolvedModule?{path:le.resolvedModule.resolvedFileName,extension:le.resolvedModule.extension,packageId:le.resolvedModule.packageId,originalPath:le.resolvedModule.originalPath,resolvedUsingTsExtension:le.resolvedModule.resolvedUsingTsExtension}:void 0)}return n.traceEnabled&&ns(n.host,x.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,_.packageDirectory,u),zy(void 0)}let Z=(ch(g)?Cd(g).slice(1):Cd(g)).slice(1);if(Z.includes("..")||Z.includes(".")||Z.includes("node_modules"))return n.traceEnabled&&ns(n.host,x.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,_.packageDirectory,u),zy(void 0);let Q=Xi(_.packageDirectory,g),re=Cd(k);if(re.includes("..")||re.includes(".")||re.includes("node_modules"))return n.traceEnabled&&ns(n.host,x.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,_.packageDirectory,u),zy(void 0);n.traceEnabled&&ns(n.host,x.Using_0_subpath_1_with_target_2,f?"imports":"exports",C,T?g.replace(/\*/g,k):g+k);let ae=M(T?Q.replace(/\*/g,k):Q+k),_e=J(ae,k,Xi(_.packageDirectory,"package.json"),f);return _e||zy(PF(_,Nye(t,ae,g,!1,n),n))}else if(typeof g=="object"&&g!==null)if(Array.isArray(g)){if(!te(g))return n.traceEnabled&&ns(n.host,x.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,_.packageDirectory,u),zy(void 0);for(let G of g){let Z=y(G,k,T,C);if(Z)return Z}}else{CC(n,x.Entering_conditional_exports);for(let G of Lu(g))if(G==="default"||n.conditions.includes(G)||uK(n.conditions,G)){CC(n,x.Matched_0_condition_1,f?"imports":"exports",G);let Z=g[G],Q=y(Z,k,T,C);if(Q)return CC(n,x.Resolved_under_condition_0,G),CC(n,x.Exiting_conditional_exports),Q;CC(n,x.Failed_to_resolve_under_condition_0,G)}else CC(n,x.Saw_non_matching_condition_0,G);CC(n,x.Exiting_conditional_exports);return}else if(g===null)return n.traceEnabled&&ns(n.host,x.package_json_scope_0_explicitly_maps_specifier_1_to_null,_.packageDirectory,u),zy(void 0);return n.traceEnabled&&ns(n.host,x.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,_.packageDirectory,u),zy(void 0);function M(G){var Z,Q;return G===void 0?G:za(G,(Q=(Z=n.host).getCurrentDirectory)==null?void 0:Q.call(Z))}function U(G,Z){return r_(Xi(G,Z))}function J(G,Z,Q,re){var ae,_e,me,le;if(!n.isConfigLookup&&(n.compilerOptions.declarationDir||n.compilerOptions.outDir)&&!G.includes("/node_modules/")&&(!n.compilerOptions.configFile||ug(_.packageDirectory,M(n.compilerOptions.configFile.fileName),!jye(n)))){let be=UT({useCaseSensitiveFileNames:()=>jye(n)}),ue=[];if(n.compilerOptions.rootDir||n.compilerOptions.composite&&n.compilerOptions.configFilePath){let De=M(jz(n.compilerOptions,()=>[],((_e=(ae=n.host).getCurrentDirectory)==null?void 0:_e.call(ae))||"",be));ue.push(De)}else if(n.requestContainingDirectory){let De=M(Xi(n.requestContainingDirectory,"index.ts")),Ce=M(jz(n.compilerOptions,()=>[De,M(Q)],((le=(me=n.host).getCurrentDirectory)==null?void 0:le.call(me))||"",be));ue.push(Ce);let Ae=r_(Ce);for(;Ae&&Ae.length>1;){let Fe=Cd(Ae);Fe.pop();let Be=pS(Fe);ue.unshift(Be),Ae=r_(Be)}}ue.length>1&&n.reportDiagnostic(bp(re?x.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:x.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,Z===""?".":Z,Q));for(let De of ue){let Ce=Oe(De);for(let Ae of Ce)if(ug(Ae,G,!jye(n))){let Fe=G.slice(Ae.length+1),Be=Xi(De,Fe),de=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(let ze of de)if(Au(Be,ze)){let ut=dhe(Be);for(let je of ut){if(!Fpt(t,je))continue;let ve=Og(Be,je,ze,!jye(n));if(n.host.fileExists(ve))return zy(PF(_,Nye(t,ve,void 0,!1,n),n))}}}}}return;function Oe(be){var ue,De;let Ce=n.compilerOptions.configFile?((De=(ue=n.host).getCurrentDirectory)==null?void 0:De.call(ue))||"":be,Ae=[];return n.compilerOptions.declarationDir&&Ae.push(M(U(Ce,n.compilerOptions.declarationDir))),n.compilerOptions.outDir&&n.compilerOptions.outDir!==n.compilerOptions.declarationDir&&Ae.push(M(U(Ce,n.compilerOptions.outDir))),Ae}}}}function uK(t,n){if(!t.includes("types")||!Ca(n,"types@"))return!1;let a=KD.tryParse(n.substring(6));return a?a.test(L):!1}function Mpt(t,n,a,c,u,_){return jpt(t,n,a,c,!1,u,_)}function Gor(t,n,a){return jpt(4,t,n,a,!0,void 0,void 0)}function jpt(t,n,a,c,u,_,f){let y=c.features===0?void 0:c.features&32||c.conditions.includes("import")?99:1,g=t&5,k=t&-6;if(g){CC(c,x.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,Tie(g));let C=T(g);if(C)return C}if(k&&!u)return CC(c,x.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,Tie(k)),T(k);function T(C){return Ab(c.host,Z_(a),O=>{if(t_(O)!=="node_modules"){let F=zpt(_,n,y,O,f,c);return F||zy(Bpt(C,n,O,c,u,_,f))}})}}function Ab(t,n,a){var c;let u=(c=t?.getGlobalTypingsCacheLocation)==null?void 0:c.call(t);return Ex(n,_=>{let f=a(_);if(f!==void 0)return f;if(_===u)return!1})||void 0}function Bpt(t,n,a,c,u,_,f){let y=Xi(a,"node_modules"),g=Sv(y,c.host);if(!g&&c.traceEnabled&&ns(c.host,x.Directory_0_does_not_exist_skipping_all_lookups_in_it,y),!u){let k=$pt(t,n,y,g,c,_,f);if(k)return k}if(t&4){let k=Xi(y,"@types"),T=g;return g&&!Sv(k,c.host)&&(c.traceEnabled&&ns(c.host,x.Directory_0_does_not_exist_skipping_all_lookups_in_it,k),T=!1),$pt(4,Upt(n,c),k,T,c,_,f)}}function $pt(t,n,a,c,u,_,f){var y,g;let k=Qs(Xi(a,n)),{packageName:T,rest:C}=wie(n),O=Xi(a,T),F,M=g3(k,!c,u);if(C!==""&&M&&(!(u.features&8)||!Ho(((y=F=g3(O,!c,u))==null?void 0:y.contents.packageJsonContent)??j,"exports"))){let G=RL(t,k,!c,u);if(G)return Cye(G);let Z=Rye(t,k,!c,u,M);return PF(M,Z,u)}let U=(G,Z,Q,re)=>{let ae=(C||!(re.features&32))&&RL(G,Z,Q,re)||Rye(G,Z,Q,re,M);return!ae&&!C&&M&&(M.contents.packageJsonContent.exports===void 0||M.contents.packageJsonContent.exports===null)&&re.features&32&&(ae=RL(G,Xi(Z,"index.js"),Q,re)),PF(M,ae,re)};if(C!==""&&(M=F??g3(O,!c,u)),M&&(u.resolvedPackageDirectory=!0),M&&M.contents.packageJsonContent.exports&&u.features&8)return(g=Lye(M,t,Xi(".",C),u,_,f))==null?void 0:g.value;let J=C!==""&&M?Opt(M,u):void 0;if(J){u.traceEnabled&&ns(u.host,x.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,J.version,L,C);let G=c&&Sv(O,u.host),Z=TH(J.paths),Q=f8e(t,C,O,J.paths,Z,U,!G,u);if(Q)return Q.value}return U(t,k,!c,u)}function f8e(t,n,a,c,u,_,f,y){let g=Zhe(u,n);if(g){let k=Ni(g)?void 0:D9(g,n),T=Ni(g)?g:X8(g);return y.traceEnabled&&ns(y.host,x.Module_name_0_matched_pattern_1,n,T),{value:X(c[T],O=>{let F=k?Y4(O,k):O,M=Qs(Xi(a,F));y.traceEnabled&&ns(y.host,x.Trying_substitution_0_candidate_module_location_Colon_1,O,F);let U=Bx(O);if(U!==void 0){let J=Oye(M,f,y);if(J!==void 0)return Cye({path:J,ext:U,resolvedUsingTsExtension:void 0})}return _(t,M,f||!Sv(mo(M),y.host),y)})}}}var m8e="__";function Upt(t,n){let a=LL(t);return n.traceEnabled&&a!==t&&ns(n.host,x.Scoped_package_detected_looking_in_0,a),a}function Pie(t){return`@types/${LL(t)}`}function LL(t){if(Ca(t,"@")){let n=t.replace(Gl,m8e);if(n!==t)return n.slice(1)}return t}function Dz(t){let n=Mk(t,"@types/");return n!==t?pK(n):t}function pK(t){return t.includes(m8e)?"@"+t.replace(m8e,Gl):t}function zpt(t,n,a,c,u,_){let f=t&&t.getFromNonRelativeNameCache(n,a,c,u);if(f)return _.traceEnabled&&ns(_.host,x.Resolution_for_module_0_was_found_in_cache_from_location_1,n,c),_.resultFromCache=f,{value:f.resolvedModule&&{path:f.resolvedModule.resolvedFileName,originalPath:f.resolvedModule.originalPath||!0,extension:f.resolvedModule.extension,packageId:f.resolvedModule.packageId,resolvedUsingTsExtension:f.resolvedModule.resolvedUsingTsExtension}}}function h8e(t,n,a,c,u,_){let f=TC(a,c),y=[],g=[],k=mo(n),T=[],C={compilerOptions:a,host:c,traceEnabled:f,failedLookupLocations:y,affectingLocations:g,packageJsonInfoCache:u,features:0,conditions:[],requestContainingDirectory:k,reportDiagnostic:M=>{T.push(M)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},O=F(5)||F(2|(a.resolveJsonModule?8:0));return hpt(t,O&&O.value,O?.value&&kC(O.value.path),y,g,T,C,u);function F(M){let U=kpt(M,t,k,_8e,C);if(U)return{value:U};if(vt(t)){let J=Qs(Xi(k,t));return zy(_8e(M,J,!1,C))}else{let J=Ab(C.host,k,G=>{let Z=zpt(u,t,void 0,G,_,C);if(Z)return Z;let Q=Qs(Xi(G,t));return zy(_8e(M,Q,!1,C))});if(J)return J;if(M&5){let G=Gor(t,k,C);return M&4&&(G??(G=qpt(t,C))),G}}}}function qpt(t,n){if(n.compilerOptions.typeRoots)for(let a of n.compilerOptions.typeRoots){let c=Spt(a,t,n),u=Sv(a,n.host);!u&&n.traceEnabled&&ns(n.host,x.Directory_0_does_not_exist_skipping_all_lookups_in_it,a);let _=RL(4,c,!u,n);if(_){let y=lK(_.path),g=y?g3(y,!1,n):void 0;return zy(PF(g,_,n))}let f=d8e(4,c,!u,n);if(f)return zy(f)}}function ML(t,n){return A4e(t)||!!n&&sf(n)}function g8e(t,n,a,c,u,_){let f=TC(a,c);f&&ns(c,x.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,n,t,u);let y=[],g=[],k=[],T={compilerOptions:a,host:c,traceEnabled:f,failedLookupLocations:y,affectingLocations:g,packageJsonInfoCache:_,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:O=>{k.push(O)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},C=Bpt(4,t,u,T,!1,void 0,void 0);return gpt(C,!0,y,g,k,T.resultFromCache,void 0)}function zy(t){return t!==void 0?{value:t}:void 0}function CC(t,n,...a){t.traceEnabled&&ns(t.host,n,...a)}function jye(t){return t.host.useCaseSensitiveFileNames?typeof t.host.useCaseSensitiveFileNames=="boolean"?t.host.useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames():!0}var y8e=(t=>(t[t.NonInstantiated=0]="NonInstantiated",t[t.Instantiated=1]="Instantiated",t[t.ConstEnumOnly=2]="ConstEnumOnly",t))(y8e||{});function KT(t,n){return t.body&&!t.body.parent&&(xl(t.body,t),vA(t.body,!1)),t.body?v8e(t.body,n):1}function v8e(t,n=new Map){let a=hl(t);if(n.has(a))return n.get(a)||0;n.set(a,void 0);let c=Hor(t,n);return n.set(a,c),c}function Hor(t,n){switch(t.kind){case 265:case 266:return 0;case 267:if(lA(t))return 2;break;case 273:case 272:if(!ko(t,32))return 0;break;case 279:let a=t;if(!a.moduleSpecifier&&a.exportClause&&a.exportClause.kind===280){let c=0;for(let u of a.exportClause.elements){let _=Kor(u,n);if(_>c&&(c=_),c===1)return c}return c}break;case 269:{let c=0;return Is(t,u=>{let _=v8e(u,n);switch(_){case 0:return;case 2:c=2;return;case 1:return c=1,!0;default:$.assertNever(_)}}),c}case 268:return KT(t,n);case 80:if(t.flags&4096)return 0}return 1}function Kor(t,n){let a=t.propertyName||t.name;if(a.kind!==80)return 1;let c=t.parent;for(;c;){if(Vs(c)||wS(c)||Ta(c)){let u=c.statements,_;for(let f of u)if(wO(f,a)){f.parent||(xl(f,c),vA(f,!1));let y=v8e(f,n);if((_===void 0||y>_)&&(_=y),_===1)return _;f.kind===272&&(_=1)}if(_!==void 0)return _}c=c.parent}return 1}var S8e=(t=>(t[t.None=0]="None",t[t.IsContainer=1]="IsContainer",t[t.IsBlockScopedContainer=2]="IsBlockScopedContainer",t[t.IsControlFlowContainer=4]="IsControlFlowContainer",t[t.IsFunctionLike=8]="IsFunctionLike",t[t.IsFunctionExpression=16]="IsFunctionExpression",t[t.HasLocals=32]="HasLocals",t[t.IsInterface=64]="IsInterface",t[t.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",t))(S8e||{});function wb(t,n,a){return $.attachFlowNodeDebugInfo({flags:t,id:0,node:n,antecedent:a})}var Qor=Zor();function b8e(t,n){jl("beforeBind"),Qor(t,n),jl("afterBind"),Jm("Bind","beforeBind","afterBind")}function Zor(){var t,n,a,c,u,_,f,y,g,k,T,C,O,F,M,U,J,G,Z,Q,re,ae,_e,me,le,Oe=!1,be=0,ue,De,Ce=wb(1,void 0,void 0),Ae=wb(1,void 0,void 0),Fe=Y();return de;function Be(ee,it,...cr){return m0(Pn(ee)||t,ee,it,...cr)}function de(ee,it){var cr,In;t=ee,n=it,a=$c(n),le=ze(t,it),De=new Set,be=0,ue=Uf.getSymbolConstructor(),$.attachFlowNodeDebugInfo(Ce),$.attachFlowNodeDebugInfo(Ae),t.locals||((cr=hi)==null||cr.push(hi.Phase.Bind,"bindSourceFile",{path:t.path},!0),On(t),(In=hi)==null||In.pop(),t.symbolCount=be,t.classifiableNames=De,Nu(),kc()),t=void 0,n=void 0,a=void 0,c=void 0,u=void 0,_=void 0,f=void 0,y=void 0,g=void 0,T=void 0,k=!1,C=void 0,O=void 0,F=void 0,M=void 0,U=void 0,J=void 0,G=void 0,Q=void 0,re=!1,ae=!1,_e=!1,Oe=!1,me=0}function ze(ee,it){return rm(it,"alwaysStrict")&&!ee.isDeclarationFile?!0:!!ee.externalModuleIndicator}function ut(ee,it){return be++,new ue(ee,it)}function je(ee,it,cr){ee.flags|=cr,it.symbol=ee,ee.declarations=Jl(ee.declarations,it),cr&1955&&!ee.exports&&(ee.exports=ic()),cr&6240&&!ee.members&&(ee.members=ic()),ee.constEnumOnlyModule&&ee.flags&304&&(ee.constEnumOnlyModule=!1),cr&111551&&SU(ee,it)}function ve(ee){if(ee.kind===278)return ee.isExportEquals?"export=":"default";let it=cs(ee);if(it){if(Gm(ee)){let cr=g0(it);return xb(ee)?"__global":`"${cr}"`}if(it.kind===168){let cr=it.expression;if(jy(cr))return dp(cr.text);if(Fre(cr))return Zs(cr.operator)+cr.operand.text;$.fail("Only computed properties with literal names have declaration names")}if(Aa(it)){let cr=Cf(ee);if(!cr)return;let In=cr.symbol;return XG(In,it.escapedText)}return Ev(it)?cF(it):SS(it)?DU(it):void 0}switch(ee.kind){case 177:return"__constructor";case 185:case 180:case 324:return"__call";case 186:case 181:return"__new";case 182:return"__index";case 279:return"__export";case 308:return"export=";case 227:if(m_(ee)===2)return"export=";$.fail("Unknown binary declaration kind");break;case 318:return WO(ee)?"__new":"__call";case 170:return $.assert(ee.parent.kind===318,"Impossible parameter parent kind",()=>`parent is: ${$.formatSyntaxKind(ee.parent.kind)}, expected JSDocFunctionType`),"arg"+ee.parent.parameters.indexOf(ee)}}function Le(ee){return Vp(ee)?du(ee.name):oa($.checkDefined(ve(ee)))}function Ve(ee,it,cr,In,Ka,Ws,Xa){$.assert(Xa||!$T(cr));let ks=ko(cr,2048)||Cm(cr)&&bb(cr.name),cp=Xa?"__computed":ks&&it?"default":ve(cr),Cc;if(cp===void 0)Cc=ut(0,"__missing");else if(Cc=ee.get(cp),In&2885600&&De.add(cp),!Cc)ee.set(cp,Cc=ut(0,cp)),Ws&&(Cc.isReplaceableByMethod=!0);else{if(Ws&&!Cc.isReplaceableByMethod)return Cc;if(Cc.flags&Ka){if(Cc.isReplaceableByMethod)ee.set(cp,Cc=ut(0,cp));else if(!(In&3&&Cc.flags&67108864)){Vp(cr)&&xl(cr.name,cr);let pf=Cc.flags&2?x.Cannot_redeclare_block_scoped_variable_0:x.Duplicate_identifier_0,Kg=!0;(Cc.flags&384||In&384)&&(pf=x.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Kg=!1);let Ky=!1;te(Cc.declarations)&&(ks||Cc.declarations&&Cc.declarations.length&&cr.kind===278&&!cr.isExportEquals)&&(pf=x.A_module_cannot_have_multiple_default_exports,Kg=!1,Ky=!0);let A0=[];s1(cr)&&Op(cr.type)&&ko(cr,32)&&Cc.flags&2887656&&A0.push(Be(cr,x.Did_you_mean_0,`export type { ${oa(cr.name.escapedText)} }`));let r2=cs(cr)||cr;X(Cc.declarations,(vh,Nb)=>{let Pv=cs(vh)||vh,d1=Kg?Be(Pv,pf,Le(vh)):Be(Pv,pf);t.bindDiagnostics.push(Ky?ac(d1,Be(r2,Nb===0?x.Another_export_default_is_here:x.and_here)):d1),Ky&&A0.push(Be(Pv,x.The_first_export_default_is_here))});let PE=Kg?Be(r2,pf,Le(cr)):Be(r2,pf);t.bindDiagnostics.push(ac(PE,...A0)),Cc=ut(0,cp)}}}return je(Cc,cr,In),Cc.parent?$.assert(Cc.parent===it,"Existing symbol parent should match new one"):Cc.parent=it,Cc}function nt(ee,it,cr){let In=!!(Ra(ee)&32)||It(ee);if(it&2097152)return ee.kind===282||ee.kind===272&&In?Ve(u.symbol.exports,u.symbol,ee,it,cr):($.assertNode(u,vb),Ve(u.locals,void 0,ee,it,cr));if(n1(ee)&&$.assert(Ei(ee)),!Gm(ee)&&(In||u.flags&128)){if(!vb(u)||!u.locals||ko(ee,2048)&&!ve(ee))return Ve(u.symbol.exports,u.symbol,ee,it,cr);let Ka=it&111551?1048576:0,Ws=Ve(u.locals,void 0,ee,Ka,cr);return Ws.exportSymbol=Ve(u.symbol.exports,u.symbol,ee,it,cr),ee.localSymbol=Ws,Ws}else return $.assertNode(u,vb),Ve(u.locals,void 0,ee,it,cr)}function It(ee){if(ee.parent&&I_(ee)&&(ee=ee.parent),!n1(ee))return!1;if(!zH(ee)&&ee.fullName)return!0;let it=cs(ee);return it?!!(sH(it.parent)&&D0(it.parent)||Vd(it.parent)&&Ra(it.parent)&32):!1}function ke(ee,it){let cr=u,In=_,Ka=f,Ws=ae;if(ee.kind===220&&ee.body.kind!==242&&(ae=!0),it&1?(ee.kind!==220&&(_=u),u=f=ee,it&32&&(u.locals=ic(),cn(u))):it&2&&(f=ee,it&32&&(f.locals=void 0)),it&4){let Xa=C,ks=O,cp=F,Cc=M,pf=G,Kg=Q,Ky=re,A0=it&16&&!ko(ee,1024)&&!ee.asteriskToken&&!!uA(ee)||ee.kind===176;A0||(C=wb(2,void 0,void 0),it&144&&(C.node=ee)),M=A0||ee.kind===177||Ei(ee)&&(ee.kind===263||ee.kind===219)?Dr():void 0,G=void 0,O=void 0,F=void 0,Q=void 0,re=!1,Qe(ee),ee.flags&=-5633,!(C.flags&1)&&it&8&&t1(ee.body)&&(ee.flags|=512,re&&(ee.flags|=1024),ee.endFlowNode=C),ee.kind===308&&(ee.flags|=me,ee.endFlowNode=C),M&&(sr(M,C),C=$o(M),(ee.kind===177||ee.kind===176||Ei(ee)&&(ee.kind===263||ee.kind===219))&&(ee.returnFlowNode=C)),A0||(C=Xa),O=ks,F=cp,M=Cc,G=pf,Q=Kg,re=Ky}else it&64?(k=!1,Qe(ee),$.assertNotNode(ee,ct),ee.flags=k?ee.flags|256:ee.flags&-257):Qe(ee);ae=Ws,u=cr,_=In,f=Ka}function _t(ee){Se(ee,it=>it.kind===263?On(it):void 0),Se(ee,it=>it.kind!==263?On(it):void 0)}function Se(ee,it=On){ee!==void 0&&X(ee,it)}function tt(ee){Is(ee,On,Se)}function Qe(ee){let it=Oe;if(Oe=!1,Ea(ee)){KR(ee)&&ee.flowNode&&(ee.flowNode=void 0),tt(ee),ua(ee),Oe=it;return}switch(ee.kind>=244&&ee.kind<=260&&(!n.allowUnreachableCode||ee.kind===254)&&(ee.flowNode=C),ee.kind){case 248:yc(ee);break;case 247:Cn(ee);break;case 249:Es(ee);break;case 250:case 251:Dt(ee);break;case 246:ur(ee);break;case 254:case 258:Ee(ee);break;case 253:case 252:et(ee);break;case 259:Ct(ee);break;case 256:Ot(ee);break;case 270:ar(ee);break;case 297:at(ee);break;case 245:Zt(ee);break;case 257:pr(ee);break;case 225:Ye(ee);break;case 226:er(ee);break;case 227:if(dE(ee)){Oe=it,Ne(ee);return}Fe(ee);break;case 221:ot(ee);break;case 228:pe(ee);break;case 261:mr(ee);break;case 212:case 213:tn(ee);break;case 214:lr(ee);break;case 236:pn(ee);break;case 347:case 339:case 341:ii(ee);break;case 352:zn(ee);break;case 308:{_t(ee.statements),On(ee.endOfFileToken);break}case 242:case 269:_t(ee.statements);break;case 209:Ge(ee);break;case 170:Mt(ee);break;case 211:case 210:case 304:case 231:Oe=it;default:tt(ee);break}ua(ee),Oe=it}function We(ee){switch(ee.kind){case 80:case 110:return!0;case 212:case 213:return Kt(ee);case 214:return Sr(ee);case 218:if(EP(ee))return!1;case 236:return We(ee.expression);case 227:return Nn(ee);case 225:return ee.operator===54&&We(ee.operand);case 222:return We(ee.expression)}return!1}function St(ee){switch(ee.kind){case 80:case 110:case 108:case 237:return!0;case 212:case 218:case 236:return St(ee.expression);case 213:return(jy(ee.argumentExpression)||ru(ee.argumentExpression))&&St(ee.expression);case 227:return ee.operatorToken.kind===28&&St(ee.right)||zT(ee.operatorToken.kind)&&jh(ee.left)}return!1}function Kt(ee){return St(ee)||xm(ee)&&Kt(ee.expression)}function Sr(ee){if(ee.arguments){for(let it of ee.arguments)if(Kt(it))return!0}return!!(ee.expression.kind===212&&Kt(ee.expression.expression))}function nn(ee,it){return hL(ee)&&$t(ee.expression)&&Sl(it)}function Nn(ee){switch(ee.operatorToken.kind){case 64:case 76:case 77:case 78:return Kt(ee.left);case 35:case 36:case 37:case 38:let it=bl(ee.left),cr=bl(ee.right);return $t(it)||$t(cr)||nn(cr,it)||nn(it,cr)||oU(cr)&&We(it)||oU(it)&&We(cr);case 104:return $t(ee.left);case 103:return We(ee.right);case 28:return We(ee.right)}return!1}function $t(ee){switch(ee.kind){case 218:return $t(ee.expression);case 227:switch(ee.operatorToken.kind){case 64:return $t(ee.left);case 28:return $t(ee.right)}}return Kt(ee)}function Dr(){return wb(4,void 0,void 0)}function Qn(){return wb(8,void 0,void 0)}function Ko(ee,it,cr){return wb(1024,{target:ee,antecedents:it},cr)}function is(ee){ee.flags|=ee.flags&2048?4096:2048}function sr(ee,it){!(it.flags&1)&&!un(ee.antecedent,it)&&((ee.antecedent||(ee.antecedent=[])).push(it),is(it))}function uo(ee,it,cr){return it.flags&1?it:cr?(cr.kind===112&&ee&64||cr.kind===97&&ee&32)&&!Bte(cr)&&!eme(cr.parent)?Ce:We(cr)?(is(it),wb(ee,cr,it)):it:ee&32?it:Ce}function Wa(ee,it,cr,In){return is(ee),wb(128,{switchStatement:it,clauseStart:cr,clauseEnd:In},ee)}function oo(ee,it,cr){is(it),_e=!0;let In=wb(ee,cr,it);return G&&sr(G,In),In}function Oi(ee,it){return is(ee),_e=!0,wb(512,it,ee)}function $o(ee){let it=ee.antecedent;return it?it.length===1?it[0]:ee:Ce}function ft(ee){let it=ee.parent;switch(it.kind){case 246:case 248:case 247:return it.expression===ee;case 249:case 228:return it.condition===ee}return!1}function Ht(ee){for(;;)if(ee.kind===218)ee=ee.expression;else if(ee.kind===225&&ee.operator===54)ee=ee.operand;else return oH(ee)}function Wr(ee){return bhe(bl(ee))}function ai(ee){for(;mh(ee.parent)||TA(ee.parent)&&ee.parent.operator===54;)ee=ee.parent;return!ft(ee)&&!Ht(ee.parent)&&!(xm(ee.parent)&&ee.parent.expression===ee)}function vo(ee,it,cr,In){let Ka=U,Ws=J;U=cr,J=In,ee(it),U=Ka,J=Ws}function Eo(ee,it,cr){vo(On,ee,it,cr),(!ee||!Wr(ee)&&!Ht(ee)&&!(xm(ee)&&eU(ee)))&&(sr(it,uo(32,C,ee)),sr(cr,uo(64,C,ee)))}function ya(ee,it,cr){let In=O,Ka=F;O=it,F=cr,On(ee),O=In,F=Ka}function Ls(ee,it){let cr=Q;for(;cr&&ee.parent.kind===257;)cr.continueTarget=it,cr=cr.next,ee=ee.parent;return it}function yc(ee){let it=Ls(ee,Qn()),cr=Dr(),In=Dr();sr(it,C),C=it,Eo(ee.expression,cr,In),C=$o(cr),ya(ee.statement,In,it),sr(it,C),C=$o(In)}function Cn(ee){let it=Qn(),cr=Ls(ee,Dr()),In=Dr();sr(it,C),C=it,ya(ee.statement,In,cr),sr(cr,C),C=$o(cr),Eo(ee.expression,it,In),C=$o(In)}function Es(ee){let it=Ls(ee,Qn()),cr=Dr(),In=Dr(),Ka=Dr();On(ee.initializer),sr(it,C),C=it,Eo(ee.condition,cr,Ka),C=$o(cr),ya(ee.statement,Ka,In),sr(In,C),C=$o(In),On(ee.incrementor),sr(it,C),C=$o(Ka)}function Dt(ee){let it=Ls(ee,Qn()),cr=Dr();On(ee.expression),sr(it,C),C=it,ee.kind===251&&On(ee.awaitModifier),sr(cr,C),On(ee.initializer),ee.initializer.kind!==262&&xr(ee.initializer),ya(ee.statement,cr,it),sr(it,C),C=$o(cr)}function ur(ee){let it=Dr(),cr=Dr(),In=Dr();Eo(ee.expression,it,cr),C=$o(it),On(ee.thenStatement),sr(In,C),C=$o(cr),On(ee.elseStatement),sr(In,C),C=$o(In)}function Ee(ee){let it=ae;ae=!0,On(ee.expression),ae=it,ee.kind===254&&(re=!0,M&&sr(M,C)),C=Ce,_e=!0}function Bt(ee){for(let it=Q;it;it=it.next)if(it.name===ee)return it}function ye(ee,it,cr){let In=ee.kind===253?it:cr;In&&(sr(In,C),C=Ce,_e=!0)}function et(ee){if(On(ee.label),ee.label){let it=Bt(ee.label.escapedText);it&&(it.referenced=!0,ye(ee,it.breakTarget,it.continueTarget))}else ye(ee,O,F)}function Ct(ee){let it=M,cr=G,In=Dr(),Ka=Dr(),Ws=Dr();if(ee.finallyBlock&&(M=Ka),sr(Ws,C),G=Ws,On(ee.tryBlock),sr(In,C),ee.catchClause&&(C=$o(Ws),Ws=Dr(),sr(Ws,C),G=Ws,On(ee.catchClause),sr(In,C)),M=it,G=cr,ee.finallyBlock){let Xa=Dr();Xa.antecedent=go(go(In.antecedent,Ws.antecedent),Ka.antecedent),C=Xa,On(ee.finallyBlock),C.flags&1?C=Ce:(M&&Ka.antecedent&&sr(M,Ko(Xa,Ka.antecedent,C)),G&&Ws.antecedent&&sr(G,Ko(Xa,Ws.antecedent,C)),C=In.antecedent?Ko(Xa,In.antecedent,C):Ce)}else C=$o(In)}function Ot(ee){let it=Dr();On(ee.expression);let cr=O,In=Z;O=it,Z=C,On(ee.caseBlock),sr(it,C);let Ka=X(ee.caseBlock.clauses,Ws=>Ws.kind===298);ee.possiblyExhaustive=!Ka&&!it.antecedent,Ka||sr(it,Wa(Z,ee,0,0)),O=cr,Z=In,C=$o(it)}function ar(ee){let it=ee.clauses,cr=ee.parent.expression.kind===112||We(ee.parent.expression),In=Ce;for(let Ka=0;KaP_(cr)||Xu(cr))}function Ys(ee){ee.flags&33554432&&!Uo(ee)?ee.flags|=128:ee.flags&=-129}function ec(ee){if(Ys(ee),Gm(ee))if(ko(ee,32)&&Er(ee,x.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),Dme(ee))Ss(ee);else{let it;if(ee.name.kind===11){let{text:In}=ee.name;it=oF(In),it===void 0&&Er(ee.name,x.Pattern_0_can_have_at_most_one_Asterisk_character,In)}let cr=gn(ee,512,110735);t.patternAmbientModules=jt(t.patternAmbientModules,it&&!Ni(it)?{pattern:it,symbol:cr}:void 0)}else{let it=Ss(ee);if(it!==0){let{symbol:cr}=ee;cr.constEnumOnlyModule=!(cr.flags&304)&&it===2&&cr.constEnumOnlyModule!==!1}}}function Ss(ee){let it=KT(ee),cr=it!==0;return gn(ee,cr?512:1024,cr?110735:0),it}function Mp(ee){let it=ut(131072,ve(ee));je(it,ee,131072);let cr=ut(2048,"__type");je(cr,ee,2048),cr.members=ic(),cr.members.set(it.escapedName,it)}function Cp(ee){return bs(ee,4096,"__object")}function uu(ee){return bs(ee,4096,"__jsxAttributes")}function $a(ee,it,cr){return gn(ee,it,cr)}function bs(ee,it,cr){let In=ut(it,cr);return it&106508&&(In.parent=u.symbol),je(In,ee,it),In}function V_(ee,it,cr){switch(f.kind){case 268:nt(ee,it,cr);break;case 308:if(Lg(u)){nt(ee,it,cr);break}default:$.assertNode(f,vb),f.locals||(f.locals=ic(),cn(f)),Ve(f.locals,void 0,ee,it,cr)}}function Nu(){if(!g)return;let ee=u,it=y,cr=f,In=c,Ka=C;for(let Ws of g){let Xa=Ws.parent.parent;u=lre(Xa)||t,f=yv(Xa)||t,C=wb(2,void 0,void 0),c=Ws,On(Ws.typeExpression);let ks=cs(Ws);if((zH(Ws)||!Ws.fullName)&&ks&&sH(ks.parent)){let cp=D0(ks.parent);if(cp){Hg(t.symbol,ks.parent,cp,!!fn(ks,pf=>no(pf)&&pf.name.escapedText==="prototype"),!1);let Cc=u;switch(UG(ks.parent)){case 1:case 2:Lg(t)?u=t:u=void 0;break;case 4:u=ks.parent.expression;break;case 3:u=ks.parent.expression.name;break;case 5:u=CP(t,ks.parent.expression)?t:no(ks.parent.expression)?ks.parent.expression.name:ks.parent.expression;break;case 0:return $.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}u&&nt(Ws,524288,788968),u=Cc}}else zH(Ws)||!Ws.fullName||Ws.fullName.kind===80?(c=Ws.parent,V_(Ws,524288,788968)):On(Ws.fullName)}u=ee,y=it,f=cr,c=In,C=Ka}function kc(){if(T===void 0)return;let ee=u,it=y,cr=f,In=c,Ka=C;for(let Ws of T){let Xa=iP(Ws),ks=Xa?lre(Xa):void 0,cp=Xa?yv(Xa):void 0;u=ks||t,f=cp||t,C=wb(2,void 0,void 0),c=Ws,On(Ws.importClause)}u=ee,y=it,f=cr,c=In,C=Ka}function o_(ee){if(!t.parseDiagnostics.length&&!(ee.flags&33554432)&&!(ee.flags&16777216)&&!U6e(ee)){let it=aA(ee);if(it===void 0)return;le&&it>=119&&it<=127?t.bindDiagnostics.push(Be(ee,Gy(ee),du(ee))):it===135?yd(t)&&vre(ee)?t.bindDiagnostics.push(Be(ee,x.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,du(ee))):ee.flags&65536&&t.bindDiagnostics.push(Be(ee,x.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,du(ee))):it===127&&ee.flags&16384&&t.bindDiagnostics.push(Be(ee,x.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,du(ee)))}}function Gy(ee){return Cf(ee)?x.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?x.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:x.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function _s(ee){ee.escapedText==="#constructor"&&(t.parseDiagnostics.length||t.bindDiagnostics.push(Be(ee,x.constructor_is_a_reserved_word,du(ee))))}function sc(ee){le&&jh(ee.left)&&zT(ee.operatorToken.kind)&&Ql(ee,ee.left)}function sl(ee){le&&ee.variableDeclaration&&Ql(ee,ee.variableDeclaration.name)}function Yc(ee){if(le&&ee.expression.kind===80){let it=$4(t,ee.expression);t.bindDiagnostics.push(md(t,it.start,it.length,x.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Ar(ee){return ct(ee)&&(ee.escapedText==="eval"||ee.escapedText==="arguments")}function Ql(ee,it){if(it&&it.kind===80){let cr=it;if(Ar(cr)){let In=$4(t,it);t.bindDiagnostics.push(md(t,In.start,In.length,Gp(ee),Zi(cr)))}}}function Gp(ee){return Cf(ee)?x.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t.externalModuleIndicator?x.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:x.Invalid_use_of_0_in_strict_mode}function N_(ee){le&&!(ee.flags&33554432)&&Ql(ee,ee.name)}function lf(ee){return Cf(ee)?x.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?x.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:x.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}function Yu(ee){if(a<2&&f.kind!==308&&f.kind!==268&&!RR(f)){let it=$4(t,ee);t.bindDiagnostics.push(md(t,it.start,it.length,lf(ee)))}}function Hp(ee){le&&Ql(ee,ee.operand)}function H(ee){le&&(ee.operator===46||ee.operator===47)&&Ql(ee,ee.operand)}function st(ee){le&&Er(ee,x.with_statements_are_not_allowed_in_strict_mode)}function zt(ee){le&&$c(n)>=2&&(MPe(ee.statement)||h_(ee.statement))&&Er(ee.label,x.A_label_is_not_allowed_here)}function Er(ee,it,...cr){let In=gS(t,ee.pos);t.bindDiagnostics.push(md(t,In.start,In.length,it,...cr))}function jn(ee,it,cr){So(ee,it,it,cr)}function So(ee,it,cr,In){Di(ee,{pos:oC(it,t),end:cr.end},In)}function Di(ee,it,cr){let In=md(t,it.pos,it.end-it.pos,cr);ee?t.bindDiagnostics.push(In):t.bindSuggestionDiagnostics=jt(t.bindSuggestionDiagnostics,{...In,category:2})}function On(ee){if(!ee)return;xl(ee,c),hi&&(ee.tracingPath=t.path);let it=le;if(xc(ee),ee.kind>166){let cr=c;c=ee;let In=Bye(ee);In===0?Qe(ee):ke(ee,In),c=cr}else{let cr=c;ee.kind===1&&(c=ee),ua(ee),c=cr}le=it}function ua(ee){if(hy(ee))if(Ei(ee))for(let it of ee.jsDoc)On(it);else for(let it of ee.jsDoc)xl(it,ee),vA(it,!1)}function va(ee){if(!le)for(let it of ee){if(!yS(it))return;if(Bl(it)){le=!0;return}}}function Bl(ee){let it=XI(t,ee.expression);return it==='"use strict"'||it==="'use strict'"}function xc(ee){switch(ee.kind){case 80:if(ee.flags&4096){let Xa=ee.parent;for(;Xa&&!n1(Xa);)Xa=Xa.parent;V_(Xa,524288,788968);break}case 110:return C&&(Vt(ee)||c.kind===305)&&(ee.flowNode=C),o_(ee);case 167:C&&Tre(ee)&&(ee.flowNode=C);break;case 237:case 108:ee.flowNode=C;break;case 81:return _s(ee);case 212:case 213:let it=ee;C&&St(it)&&(it.flowNode=C),N6e(it)&&nd(it),Ei(it)&&t.commonJsModuleIndicator&&Fx(it)&&!Nie(f,"module")&&Ve(t.locals,void 0,it.expression,134217729,111550);break;case 227:switch(m_(ee)){case 1:br(ee);break;case 2:Vn(ee);break;case 3:Kp(ee.left,ee);break;case 6:Mu(ee);break;case 4:el(ee);break;case 5:let Xa=ee.left.expression;if(Ei(ee)&&ct(Xa)){let ks=Nie(f,Xa.escapedText);if(Sre(ks?.valueDeclaration)){el(ee);break}}If(ee);break;case 0:break;default:$.fail("Unknown binary expression special property assignment kind")}return sc(ee);case 300:return sl(ee);case 221:return Yc(ee);case 226:return Hp(ee);case 225:return H(ee);case 255:return st(ee);case 257:return zt(ee);case 198:k=!0;return;case 183:break;case 169:return fo(ee);case 170:return Ft(ee);case 261:return xe(ee);case 209:return ee.flowNode=C,xe(ee);case 173:case 172:return ep(ee);case 304:case 305:return wn(ee,4,0);case 307:return wn(ee,8,900095);case 180:case 181:case 182:return gn(ee,131072,0);case 175:case 174:return wn(ee,8192|(ee.questionToken?16777216:0),r1(ee)?0:103359);case 263:return Nr(ee);case 177:return gn(ee,16384,0);case 178:return wn(ee,32768,46015);case 179:return wn(ee,65536,78783);case 185:case 318:case 324:case 186:return Mp(ee);case 188:case 323:case 201:return W_(ee);case 333:return Rn(ee);case 211:return Cp(ee);case 219:case 220:return Mr(ee);case 214:switch(m_(ee)){case 7:return vy(ee);case 8:return rt(ee);case 9:return Dp(ee);case 0:break;default:return $.fail("Unknown call expression assignment declaration kind")}Ei(ee)&&Iv(ee);break;case 232:case 264:return le=!0,Hy(ee);case 265:return V_(ee,64,788872);case 266:return V_(ee,524288,788968);case 267:return US(ee);case 268:return ec(ee);case 293:return uu(ee);case 292:return $a(ee,4,0);case 272:case 275:case 277:case 282:return gn(ee,2097152,2097152);case 271:return Gg(ee);case 274:return yy(ee);case 279:return Wf(ee);case 278:return a_(ee);case 308:return va(ee.statements),g_();case 242:if(!RR(ee.parent))return;case 269:return va(ee.statements);case 342:if(ee.parent.kind===324)return Ft(ee);if(ee.parent.kind!==323)break;case 349:let Ka=ee,Ws=Ka.isBracketed||Ka.typeExpression&&Ka.typeExpression.type.kind===317?16777220:4;return gn(Ka,Ws,0);case 347:case 339:case 341:return(g||(g=[])).push(ee);case 340:return On(ee.typeExpression);case 352:return(T||(T=[])).push(ee)}}function ep(ee){let it=Mh(ee),cr=it?98304:4,In=it?13247:0;return wn(ee,cr|(ee.questionToken?16777216:0),In)}function W_(ee){return bs(ee,2048,"__type")}function g_(){if(Ys(t),yd(t))xu();else if(h0(t)){xu();let ee=t.symbol;Ve(t.symbol.exports,t.symbol,t,4,-1),t.symbol=ee}}function xu(){bs(t,512,`"${Qm(t.fileName)}"`)}function a_(ee){if(!u.symbol||!u.symbol.exports)bs(ee,111551,ve(ee));else{let it=QG(ee)?2097152:4,cr=Ve(u.symbol.exports,u.symbol,ee,it,-1);ee.isExportEquals&&SU(cr,ee)}}function Gg(ee){Pt(ee.modifiers)&&t.bindDiagnostics.push(Be(ee,x.Modifiers_cannot_appear_here));let it=Ta(ee.parent)?yd(ee.parent)?ee.parent.isDeclarationFile?void 0:x.Global_module_exports_may_only_appear_in_declaration_files:x.Global_module_exports_may_only_appear_in_module_files:x.Global_module_exports_may_only_appear_at_top_level;it?t.bindDiagnostics.push(Be(ee,it)):(t.symbol.globalExports=t.symbol.globalExports||ic(),Ve(t.symbol.globalExports,t.symbol,ee,2097152,2097152))}function Wf(ee){!u.symbol||!u.symbol.exports?bs(ee,8388608,ve(ee)):ee.exportClause?Db(ee.exportClause)&&(xl(ee.exportClause,ee),Ve(u.symbol.exports,u.symbol,ee.exportClause,2097152,2097152)):Ve(u.symbol.exports,u.symbol,ee,8388608,0)}function yy(ee){ee.name&&gn(ee,2097152,2097152)}function Wh(ee){return t.externalModuleIndicator&&t.externalModuleIndicator!==!0?!1:(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=ee,t.externalModuleIndicator||xu()),!0)}function rt(ee){if(!Wh(ee))return;let it=Nd(ee.arguments[0],void 0,(cr,In)=>(In&&je(In,cr,67110400),In));it&&Ve(it.exports,it,ee,1048580,0)}function br(ee){if(!Wh(ee))return;let it=Nd(ee.left.expression,void 0,(cr,In)=>(In&&je(In,cr,67110400),In));if(it){let In=Pre(ee.right)&&(q4(ee.left.expression)||Fx(ee.left.expression))?2097152:1048580;xl(ee.left,ee),Ve(it.exports,it,ee.left,In,0)}}function Vn(ee){if(!Wh(ee))return;let it=BG(ee.right);if(khe(it)||u===t&&CP(t,it))return;if(Lc(it)&&ht(it.properties,im)){X(it.properties,Ga);return}let cr=QG(ee)?2097152:1049092,In=Ve(t.symbol.exports,t.symbol,ee,cr|67108864,0);SU(In,ee)}function Ga(ee){Ve(t.symbol.exports,t.symbol,ee,69206016,0)}function el(ee){if($.assert(Ei(ee)),wi(ee)&&no(ee.left)&&Aa(ee.left.name)||no(ee)&&Aa(ee.name))return;let cr=Hm(ee,!1,!1);switch(cr.kind){case 263:case 219:let In=cr.symbol;if(wi(cr.parent)&&cr.parent.operatorToken.kind===64){let Xa=cr.parent.left;nP(Xa)&&_C(Xa.expression)&&(In=Gh(Xa.expression.expression,_))}In&&In.valueDeclaration&&(In.members=In.members||ic(),$T(ee)?tl(ee,In,In.members):Ve(In.members,In,ee,67108868,0),je(In,In.valueDeclaration,32));break;case 177:case 173:case 175:case 178:case 179:case 176:let Ka=cr.parent,Ws=oc(cr)?Ka.symbol.exports:Ka.symbol.members;$T(ee)?tl(ee,Ka.symbol,Ws):Ve(Ws,Ka.symbol,ee,67108868,0,!0);break;case 308:if($T(ee))break;cr.commonJsModuleIndicator?Ve(cr.symbol.exports,cr.symbol,ee,1048580,0):gn(ee,1,111550);break;case 268:break;default:$.failBadSyntaxKind(cr)}}function tl(ee,it,cr){Ve(cr,it,ee,4,0,!0,!0),Uc(ee,it)}function Uc(ee,it){it&&(it.assignmentDeclarationMembers||(it.assignmentDeclarationMembers=new Map)).set(hl(ee),ee)}function nd(ee){ee.expression.kind===110?el(ee):nP(ee)&&ee.parent.parent.kind===308&&(_C(ee.expression)?Kp(ee,ee.parent):uf(ee))}function Mu(ee){xl(ee.left,ee),xl(ee.right,ee),Pb(ee.left.expression,ee.left,!1,!0)}function Dp(ee){let it=Gh(ee.arguments[0].expression);it&&it.valueDeclaration&&je(it,it.valueDeclaration,32),Ym(ee,it,!0)}function Kp(ee,it){let cr=ee.expression,In=cr.expression;xl(In,cr),xl(cr,ee),xl(ee,it),Pb(In,ee,!0,!0)}function vy(ee){let it=Gh(ee.arguments[0]),cr=ee.parent.parent.kind===308;it=Hg(it,ee.arguments[0],cr,!1,!1),Ym(ee,it,!1)}function If(ee){var it;let cr=Gh(ee.left.expression,f)||Gh(ee.left.expression,u);if(!Ei(ee)&&!O6e(cr))return;let In=oL(ee.left);if(!(ct(In)&&((it=Nie(u,In.escapedText))==null?void 0:it.flags)&2097152))if(xl(ee.left,ee),xl(ee.right,ee),ct(ee.left.expression)&&u===t&&CP(t,ee.left.expression))br(ee);else if($T(ee)){bs(ee,67108868,"__computed");let Ka=Hg(cr,ee.left.expression,D0(ee.left),!1,!1);Uc(ee,Ka)}else uf(Ba(ee.left,V4))}function uf(ee){$.assert(!ct(ee)),xl(ee.expression,ee),Pb(ee.expression,ee,!1,!1)}function Hg(ee,it,cr,In,Ka){return ee?.flags&2097152||(cr&&!In&&(ee=Nd(it,ee,(ks,cp,Cc)=>{if(cp)return je(cp,ks,67110400),cp;{let pf=Cc?Cc.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=ic());return Ve(pf,Cc,ks,67110400,110735)}})),Ka&&ee&&ee.valueDeclaration&&je(ee,ee.valueDeclaration,32)),ee}function Ym(ee,it,cr){if(!it||!Wx(it))return;let In=cr?it.members||(it.members=ic()):it.exports||(it.exports=ic()),Ka=0,Ws=0;lu(zO(ee))?(Ka=8192,Ws=103359):Js(ee)&&J4(ee)&&(Pt(ee.arguments[2].properties,Xa=>{let ks=cs(Xa);return!!ks&&ct(ks)&&Zi(ks)==="set"})&&(Ka|=65540,Ws|=78783),Pt(ee.arguments[2].properties,Xa=>{let ks=cs(Xa);return!!ks&&ct(ks)&&Zi(ks)==="get"})&&(Ka|=32772,Ws|=46015)),Ka===0&&(Ka=4,Ws=0),Ve(In,it,ee,Ka|67108864,Ws&-67108865)}function D0(ee){return wi(ee.parent)?Gx(ee.parent).parent.kind===308:ee.parent.parent.kind===308}function Pb(ee,it,cr,In){let Ka=Gh(ee,f)||Gh(ee,u),Ws=D0(it);Ka=Hg(Ka,it.expression,Ws,cr,In),Ym(it,Ka,cr)}function Wx(ee){if(ee.flags&1072)return!0;let it=ee.valueDeclaration;if(it&&Js(it))return!!zO(it);let cr=it?Oo(it)?it.initializer:wi(it)?it.right:no(it)&&wi(it.parent)?it.parent.right:void 0:void 0;if(cr=cr&&BG(cr),cr){let In=_C(Oo(it)?it.name:wi(it)?it.left:it);return!!_A(wi(cr)&&(cr.operatorToken.kind===57||cr.operatorToken.kind===61)?cr.right:cr,In)}return!1}function Gx(ee){for(;wi(ee.parent);)ee=ee.parent;return ee.parent}function Gh(ee,it=u){if(ct(ee))return Nie(it,ee.escapedText);{let cr=Gh(ee.expression);return cr&&cr.exports&&cr.exports.get(BT(ee))}}function Nd(ee,it,cr){if(CP(t,ee))return t.symbol;if(ct(ee))return cr(ee,Gh(ee),it);{let In=Nd(ee.expression,it,cr),Ka=$G(ee);return Aa(Ka)&&$.fail("unexpected PrivateIdentifier"),cr(Ka,In&&In.exports&&In.exports.get(BT(ee)),In)}}function Iv(ee){!t.commonJsModuleIndicator&&$h(ee,!1)&&Wh(ee)}function Hy(ee){if(ee.kind===264)V_(ee,32,899503);else{let Ka=ee.name?ee.name.escapedText:"__class";bs(ee,32,Ka),ee.name&&De.add(ee.name.escapedText)}let{symbol:it}=ee,cr=ut(4194308,"prototype"),In=it.exports.get(cr.escapedName);In&&(ee.name&&xl(ee.name,ee),t.bindDiagnostics.push(Be(In.declarations[0],x.Duplicate_identifier_0,vp(cr)))),it.exports.set(cr.escapedName,cr),cr.parent=it}function US(ee){return lA(ee)?V_(ee,128,899967):V_(ee,256,899327)}function xe(ee){if(le&&Ql(ee,ee.name),!$s(ee.name)){let it=ee.kind===261?ee:ee.parent.parent;Ei(ee)&&rP(it)&&!mv(ee)&&!(Ra(ee)&32)?gn(ee,2097152,2097152):Eme(ee)?V_(ee,2,111551):hA(ee)?gn(ee,1,111551):gn(ee,1,111550)}}function Ft(ee){if(!(ee.kind===342&&u.kind!==324)&&(le&&!(ee.flags&33554432)&&Ql(ee,ee.name),$s(ee.name)?bs(ee,1,"__"+ee.parent.parameters.indexOf(ee)):gn(ee,1,111551),ne(ee,ee.parent))){let it=ee.parent.parent;Ve(it.symbol.members,it.symbol,ee,4|(ee.questionToken?16777216:0),0)}}function Nr(ee){!t.isDeclarationFile&&!(ee.flags&33554432)&&CU(ee)&&(me|=4096),N_(ee),le?(Yu(ee),V_(ee,16,110991)):gn(ee,16,110991)}function Mr(ee){!t.isDeclarationFile&&!(ee.flags&33554432)&&CU(ee)&&(me|=4096),C&&(ee.flowNode=C),N_(ee);let it=ee.name?ee.name.escapedText:"__function";return bs(ee,16,it)}function wn(ee,it,cr){return!t.isDeclarationFile&&!(ee.flags&33554432)&&CU(ee)&&(me|=4096),C&&mre(ee)&&(ee.flowNode=C),$T(ee)?bs(ee,it,"__computed"):gn(ee,it,cr)}function Yn(ee){let it=fn(ee,cr=>cr.parent&&yP(cr.parent)&&cr.parent.extendsType===cr);return it&&it.parent}function fo(ee){if(c1(ee.parent)){let it=Ire(ee.parent);it?($.assertNode(it,vb),it.locals??(it.locals=ic()),Ve(it.locals,void 0,ee,262144,526824)):gn(ee,262144,526824)}else if(ee.parent.kind===196){let it=Yn(ee.parent);it?($.assertNode(it,vb),it.locals??(it.locals=ic()),Ve(it.locals,void 0,ee,262144,526824)):bs(ee,262144,ve(ee))}else gn(ee,262144,526824)}function Mo(ee){let it=KT(ee);return it===1||it===2&&dC(n)}function Ea(ee){if(!(C.flags&1))return!1;if(C===Ce&&(mG(ee)&&ee.kind!==243||ee.kind===264||Jpt(ee,n)||ee.kind===268&&Mo(ee))&&(C=Ae,!n.allowUnreachableCode)){let cr=I4e(n)&&!(ee.flags&33554432)&&(!h_(ee)||!!(dd(ee.declarationList)&7)||ee.declarationList.declarations.some(In=>!!In.initializer));Xor(ee,n,(In,Ka)=>So(cr,In,Ka,x.Unreachable_code_detected))}return!0}}function Jpt(t,n){return t.kind===267&&(!lA(t)||dC(n))}function Xor(t,n,a){if(fa(t)&&c(t)&&Vs(t.parent)){let{statements:_}=t.parent,f=Xhe(_,t);ou(f,c,(y,g)=>a(f[y],f[g-1]))}else a(t,t);function c(_){return!i_(_)&&!u(_)&&!(h_(_)&&!(dd(_)&7)&&_.declarationList.declarations.some(f=>!f.initializer))}function u(_){switch(_.kind){case 265:case 266:return!0;case 268:return KT(_)!==1;case 267:return!Jpt(_,n);default:return!1}}}function CP(t,n){let a=0,c=u0();for(c.enqueue(n);!c.isEmpty()&&a<100;){if(a++,n=c.dequeue(),q4(n)||Fx(n))return!0;if(ct(n)){let u=Nie(t,n.escapedText);if(u&&u.valueDeclaration&&Oo(u.valueDeclaration)&&u.valueDeclaration.initializer){let _=u.valueDeclaration.initializer;c.enqueue(_),of(_,!0)&&(c.enqueue(_.left),c.enqueue(_.right))}}}return!1}function Bye(t){switch(t.kind){case 232:case 264:case 267:case 211:case 188:case 323:case 293:return 1;case 265:return 65;case 268:case 266:case 201:case 182:return 33;case 308:return 37;case 178:case 179:case 175:if(mre(t))return 173;case 177:case 263:case 174:case 180:case 324:case 318:case 185:case 181:case 186:case 176:return 45;case 352:return 37;case 219:case 220:return 61;case 269:return 4;case 173:return t.initializer?4:0;case 300:case 249:case 250:case 251:case 270:return 34;case 242:return Rs(t.parent)||n_(t.parent)?0:34}return 0}function Nie(t,n){var a,c,u,_;let f=(c=(a=Ci(t,vb))==null?void 0:a.locals)==null?void 0:c.get(n);if(f)return f.exportSymbol??f;if(Ta(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(n))return t.jsGlobalAugmentations.get(n);if(gv(t))return(_=(u=t.symbol)==null?void 0:u.exports)==null?void 0:_.get(n)}function x8e(t,n,a,c,u,_,f,y,g,k){return T;function T(C=()=>!0){let O=[],F=[];return{walkType:Oe=>{try{return M(Oe),{visitedTypes:sS(O),visitedSymbols:sS(F)}}finally{Cs(O),Cs(F)}},walkSymbol:Oe=>{try{return le(Oe),{visitedTypes:sS(O),visitedSymbols:sS(F)}}finally{Cs(O),Cs(F)}}};function M(Oe){if(!(!Oe||O[Oe.id]||(O[Oe.id]=Oe,le(Oe.symbol)))){if(Oe.flags&524288){let ue=Oe,De=ue.objectFlags;De&4&&U(Oe),De&32&&re(Oe),De&3&&_e(Oe),De&24&&me(ue)}Oe.flags&262144&&J(Oe),Oe.flags&3145728&&G(Oe),Oe.flags&4194304&&Z(Oe),Oe.flags&8388608&&Q(Oe)}}function U(Oe){M(Oe.target),X(k(Oe),M)}function J(Oe){M(y(Oe))}function G(Oe){X(Oe.types,M)}function Z(Oe){M(Oe.type)}function Q(Oe){M(Oe.objectType),M(Oe.indexType),M(Oe.constraint)}function re(Oe){M(Oe.typeParameter),M(Oe.constraintType),M(Oe.templateType),M(Oe.modifiersType)}function ae(Oe){let be=n(Oe);be&&M(be.type),X(Oe.typeParameters,M);for(let ue of Oe.parameters)le(ue);M(t(Oe)),M(a(Oe))}function _e(Oe){me(Oe),X(Oe.typeParameters,M),X(c(Oe),M),M(Oe.thisType)}function me(Oe){let be=u(Oe);for(let ue of be.indexInfos)M(ue.keyType),M(ue.type);for(let ue of be.callSignatures)ae(ue);for(let ue of be.constructSignatures)ae(ue);for(let ue of be.properties)le(ue)}function le(Oe){if(!Oe)return!1;let be=hc(Oe);if(F[be])return!1;if(F[be]=Oe,!C(Oe))return!0;let ue=_(Oe);return M(ue),Oe.exports&&Oe.exports.forEach(le),X(Oe.declarations,De=>{if(De.type&&De.type.kind===187){let Ce=De.type,Ae=f(g(Ce.exprName));le(Ae)}}),!1}}}var QT={};d(QT,{RelativePreference:()=>Vpt,countPathComponents:()=>Rie,forEachFileNameOfModule:()=>Zpt,getLocalModuleSpecifierBetweenFileNames:()=>iar,getModuleSpecifier:()=>tar,getModuleSpecifierPreferences:()=>_K,getModuleSpecifiers:()=>Hpt,getModuleSpecifiersWithCacheInfo:()=>Kpt,getNodeModulesPackageName:()=>rar,tryGetJSExtensionForFile:()=>Uye,tryGetModuleSpecifiersFromCache:()=>nar,tryGetRealFileNameForNonJsDeclarationFileName:()=>r_t,updateModuleSpecifier:()=>ear});var Yor=pd(t=>{try{let n=t.indexOf("/");if(n!==0)return new RegExp(t);let a=t.lastIndexOf("/");if(n===a)return new RegExp(t);for(;(n=t.indexOf("/",n+1))!==a;)if(t[n-1]!=="\\")return new RegExp(t);let c=t.substring(a+1).replace(/[^iu]/g,"");return t=t.substring(1,a),new RegExp(t,c)}catch{return}}),Vpt=(t=>(t[t.Relative=0]="Relative",t[t.NonRelative=1]="NonRelative",t[t.Shortest=2]="Shortest",t[t.ExternalNonRelative=3]="ExternalNonRelative",t))(Vpt||{});function _K({importModuleSpecifierPreference:t,importModuleSpecifierEnding:n,autoImportSpecifierExcludeRegexes:a},c,u,_,f){let y=g();return{excludeRegexes:a,relativePreference:f!==void 0?vt(f)?0:1:t==="relative"?0:t==="non-relative"?1:t==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:k=>{let T=zye(_,c,u),C=k!==T?g(k):y,O=km(u);if((k??T)===99&&3<=O&&O<=99)return ML(u,_.fileName)?[3,2]:[2];if(km(u)===1)return C===2?[2,1]:[1,2];let F=ML(u,_.fileName);switch(C){case 2:return F?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return F?[1,0,3,2]:[1,0,2];case 0:return F?[0,1,3,2]:[0,1,2];default:$.assertNever(C)}}};function g(k){if(f!==void 0){if(jx(f))return 2;if(au(f,"/index"))return 1}return z4e(n,k??zye(_,c,u),u,Ox(_)?_:void 0)}}function ear(t,n,a,c,u,_,f={}){let y=Wpt(t,n,a,c,u,_K({},u,t,n,_),{},f);if(y!==_)return y}function tar(t,n,a,c,u,_={}){return Wpt(t,n,a,c,u,_K({},u,t,n),{},_)}function rar(t,n,a,c,u,_={}){let f=Fie(n.fileName,c),y=Xpt(f,a,c,u,t,_);return Je(y,g=>k8e(g,f,n,c,t,u,!0,_.overrideImportMode))}function Wpt(t,n,a,c,u,_,f,y={}){let g=Fie(a,u),k=Xpt(g,c,u,f,t,y);return Je(k,T=>k8e(T,g,n,u,t,f,void 0,y.overrideImportMode))||T8e(c,g,t,u,y.overrideImportMode||zye(n,u,t),_)}function nar(t,n,a,c,u={}){let _=Gpt(t,n,a,c,u);return _[1]&&{kind:_[0],moduleSpecifiers:_[1],computedWithoutCache:!1}}function Gpt(t,n,a,c,u={}){var _;let f=yG(t);if(!f)return j;let y=(_=a.getModuleSpecifierCache)==null?void 0:_.call(a),g=y?.get(n.path,f.path,c,u);return[g?.kind,g?.moduleSpecifiers,f,g?.modulePaths,y]}function Hpt(t,n,a,c,u,_,f={}){return Kpt(t,n,a,c,u,_,f,!1).moduleSpecifiers}function Kpt(t,n,a,c,u,_,f={},y){let g=!1,k=lar(t,n);if(k)return{kind:"ambient",moduleSpecifiers:y&&Oie(k,_.autoImportSpecifierExcludeRegexes)?j:[k],computedWithoutCache:g};let[T,C,O,F,M]=Gpt(t,c,u,_,f);if(C)return{kind:T,moduleSpecifiers:C,computedWithoutCache:g};if(!O)return{kind:void 0,moduleSpecifiers:j,computedWithoutCache:g};g=!0,F||(F=Ypt(Fie(c.fileName,u),O.originalFileName,u,a,f));let U=oar(F,a,c,u,_,f,y);return M?.set(c.path,O.path,_,f,U.kind,F,U.moduleSpecifiers),U}function iar(t,n,a,c,u,_={}){let f=Fie(t.fileName,c),y=_.overrideImportMode??t.impliedNodeFormat;return T8e(n,f,a,c,y,_K(u,c,a,t))}function oar(t,n,a,c,u,_={},f){let y=Fie(a.fileName,c),g=_K(u,c,n,a),k=Ox(a)&&X(t,U=>X(c.getFileIncludeReasons().get(wl(U.path,c.getCurrentDirectory(),y.getCanonicalFileName)),J=>{if(J.kind!==3||J.file!==a.path)return;let G=c.getModeForResolutionAtIndex(a,J.index),Z=_.overrideImportMode??c.getDefaultResolutionModeForFile(a);if(G!==Z&&G!==void 0&&Z!==void 0)return;let Q=IK(a,J.index).text;return g.relativePreference!==1||!ch(Q)?Q:void 0}));if(k)return{kind:void 0,moduleSpecifiers:[k],computedWithoutCache:!0};let T=Pt(t,U=>U.isInNodeModules),C,O,F,M;for(let U of t){let J=U.isInNodeModules?k8e(U,y,a,c,n,u,void 0,_.overrideImportMode):void 0;if(J&&!(f&&Oie(J,g.excludeRegexes))&&(C=jt(C,J),U.isRedirect))return{kind:"node_modules",moduleSpecifiers:C,computedWithoutCache:!0};let G=T8e(U.path,y,n,c,_.overrideImportMode||a.impliedNodeFormat,g,U.isRedirect||!!J);!G||f&&Oie(G,g.excludeRegexes)||(U.isRedirect?F=jt(F,G):EO(G)?kC(G)?M=jt(M,G):O=jt(O,G):(f||!T||U.isInNodeModules)&&(M=jt(M,G)))}return O?.length?{kind:"paths",moduleSpecifiers:O,computedWithoutCache:!0}:F?.length?{kind:"redirect",moduleSpecifiers:F,computedWithoutCache:!0}:C?.length?{kind:"node_modules",moduleSpecifiers:C,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:M??j,computedWithoutCache:!0}}function Oie(t,n){return Pt(n,a=>{var c;return!!((c=Yor(a))!=null&&c.test(t))})}function Fie(t,n){t=za(t,n.getCurrentDirectory());let a=_d(n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():!0),c=mo(t);return{getCanonicalFileName:a,importingSourceFileName:t,sourceDirectory:c,canonicalSourceDirectory:a(c)}}function T8e(t,n,a,c,u,{getAllowedEndingsInPreferredOrder:_,relativePreference:f,excludeRegexes:y},g){let{baseUrl:k,paths:T,rootDirs:C}=a;if(g&&!T)return;let{sourceDirectory:O,canonicalSourceDirectory:F,getCanonicalFileName:M}=n,U=_(u),J=C&&_ar(C,t,O,M,U,a)||dK(Tx(lh(O,t,M)),U,a);if(!k&&!T&&!mH(a)||f===0)return g?void 0:J;let G=za(Ure(a,c)||k,c.getCurrentDirectory()),Z=C8e(t,G,M);if(!Z)return g?void 0:J;let Q=g?void 0:par(t,O,a,c,u,far(U)),re=g||Q===void 0?T&&e_t(Z,T,U,G,M,c,a):void 0;if(g)return re;let ae=Q??(re===void 0&&k!==void 0?dK(Z,U,a):re);if(!ae)return J;let _e=Oie(J,y),me=Oie(ae,y);if(!_e&&me)return J;if(_e&&!me||f===1&&!ch(ae))return ae;if(f===3&&!ch(ae)){let le=a.configFilePath?wl(mo(a.configFilePath),c.getCurrentDirectory(),n.getCanonicalFileName):n.getCanonicalFileName(c.getCurrentDirectory()),Oe=wl(t,le,M),be=Ca(F,le),ue=Ca(Oe,le);if(be&&!ue||!be&&ue)return ae;let De=E8e(c,mo(Oe)),Ce=E8e(c,O),Ae=!K4(c);return aar(De,Ce,Ae)?J:ae}return n_t(ae)||Rie(J)t.fileExists(Xi(a,"package.json"))?a:void 0)}function Zpt(t,n,a,c,u){var _,f;let y=UT(a),g=a.getCurrentDirectory(),k=a.isSourceOfProjectReferenceRedirect(n)?(_=a.getRedirectFromSourceFile(n))==null?void 0:_.outputDts:void 0,T=wl(n,g,y),C=a.redirectTargetsMap.get(T)||j,F=[...k?[k]:j,n,...C].map(Z=>za(Z,g)),M=!ht(F,QU);if(!c){let Z=X(F,Q=>!(M&&QU(Q))&&u(Q,k===Q));if(Z)return Z}let U=(f=a.getSymlinkCache)==null?void 0:f.call(a).getSymlinkedDirectoriesByRealpath(),J=za(n,g);return U&&Ab(a,mo(J),Z=>{let Q=U.get(r_(wl(Z,g,y)));if(Q)return rA(t,Z,y)?!1:X(F,re=>{if(!rA(re,Z,y))return;let ae=lh(Z,re,y);for(let _e of Q){let me=mb(_e,ae),le=u(me,re===k);if(M=!0,le)return le}})})||(c?X(F,Z=>M&&QU(Z)?void 0:u(Z,Z===k)):void 0)}function Xpt(t,n,a,c,u,_={}){var f;let y=wl(t.importingSourceFileName,a.getCurrentDirectory(),UT(a)),g=wl(n,a.getCurrentDirectory(),UT(a)),k=(f=a.getModuleSpecifierCache)==null?void 0:f.call(a);if(k){let C=k.get(y,g,c,_);if(C?.modulePaths)return C.modulePaths}let T=Ypt(t,n,a,u,_);return k&&k.setModulePaths(y,g,c,_,T),T}var sar=["dependencies","peerDependencies","optionalDependencies"];function car(t){let n;for(let a of sar){let c=t[a];c&&typeof c=="object"&&(n=go(n,Lu(c)))}return n}function Ypt(t,n,a,c,u){var _,f;let y=(_=a.getModuleResolutionCache)==null?void 0:_.call(a),g=(f=a.getSymlinkCache)==null?void 0:f.call(a);if(y&&g&&a.readFile&&!kC(t.importingSourceFileName)){$.type(a);let O=kz(y.getPackageJsonInfoCache(),a,{}),F=Cz(mo(t.importingSourceFileName),O);if(F){let M=car(F.contents.packageJsonContent);for(let U of M||j){let J=h3(U,Xi(F.packageDirectory,"package.json"),c,a,y,void 0,u.overrideImportMode);g.setSymlinksFromResolution(J.resolvedModule)}}}let k=new Map,T=!1;Zpt(t.importingSourceFileName,n,a,!0,(O,F)=>{let M=kC(O);k.set(O,{path:t.getCanonicalFileName(O),isRedirect:F,isInNodeModules:M}),T=T||M});let C=[];for(let O=t.canonicalSourceDirectory;k.size!==0;){let F=r_(O),M;k.forEach(({path:J,isRedirect:G,isInNodeModules:Z},Q)=>{Ca(J,F)&&((M||(M=[])).push({path:Q,isRedirect:G,isInNodeModules:Z}),k.delete(Q))}),M&&(M.length>1&&M.sort(Qpt),C.push(...M));let U=mo(O);if(U===O)break;O=U}if(k.size){let O=so(k.entries(),([F,{isRedirect:M,isInNodeModules:U}])=>({path:F,isRedirect:M,isInNodeModules:U}));O.length>1&&O.sort(Qpt),C.push(...O)}return C}function lar(t,n){var a;let c=(a=t.declarations)==null?void 0:a.find(f=>Cme(f)&&(!eP(f)||!vt(g0(f.name))));if(c)return c.name.text;let _=Wn(t.declarations,f=>{var y,g,k,T;if(!I_(f))return;let C=U(f);if(!((y=C?.parent)!=null&&y.parent&&wS(C.parent)&&Gm(C.parent.parent)&&Ta(C.parent.parent.parent)))return;let O=(T=(k=(g=C.parent.parent.symbol.exports)==null?void 0:g.get("export="))==null?void 0:k.valueDeclaration)==null?void 0:T.expression;if(!O)return;let F=n.getSymbolAtLocation(O);if(!F)return;if((F?.flags&2097152?n.getAliasedSymbol(F):F)===f.symbol)return C.parent.parent;function U(J){for(;J.flags&8;)J=J.parent;return J}})[0];if(_)return _.name.text}function e_t(t,n,a,c,u,_,f){for(let g in n)for(let k of n[g]){let T=Qs(k),C=C8e(T,c,u)??T,O=C.indexOf("*"),F=a.map(M=>({ending:M,value:dK(t,[M],f)}));if(Bx(C)&&F.push({ending:void 0,value:t}),O!==-1){let M=C.substring(0,O),U=C.substring(O+1);for(let{ending:J,value:G}of F)if(G.length>=M.length+U.length&&Ca(G,M)&&au(G,U)&&y({ending:J,value:G})){let Z=G.substring(M.length,G.length-U.length);if(!ch(Z))return Y4(g,Z)}}else if(Pt(F,M=>M.ending!==0&&C===M.value)||Pt(F,M=>M.ending===0&&C===M.value&&y(M)))return g}function y({ending:g,value:k}){return g!==0||k===dK(t,[g],f,_)}}function Lie(t,n,a,c,u,_,f,y,g,k){if(typeof _=="string"){let T=!K4(n),C=()=>n.getCommonSourceDirectory(),O=g&&h0e(a,t,T,C),F=g&&m0e(a,t,T,C),M=za(Xi(c,_),void 0),U=X4(a)?Qm(a)+Uye(a,t):void 0,J=k&&$4e(a);switch(y){case 0:if(U&&M1(U,M,T)===0||M1(a,M,T)===0||O&&M1(O,M,T)===0||F&&M1(F,M,T)===0)return{moduleFileToTry:u};break;case 1:if(J&&ug(a,M,T)){let re=lh(M,a,!1);return{moduleFileToTry:za(Xi(Xi(u,_),re),void 0)}}if(U&&ug(M,U,T)){let re=lh(M,U,!1);return{moduleFileToTry:za(Xi(Xi(u,_),re),void 0)}}if(!J&&ug(M,a,T)){let re=lh(M,a,!1);return{moduleFileToTry:za(Xi(Xi(u,_),re),void 0)}}if(O&&ug(M,O,T)){let re=lh(M,O,!1);return{moduleFileToTry:Xi(u,re)}}if(F&&ug(M,F,T)){let re=T4(lh(M,F,!1),$ye(F,t));return{moduleFileToTry:Xi(u,re)}}break;case 2:let G=M.indexOf("*"),Z=M.slice(0,G),Q=M.slice(G+1);if(J&&Ca(a,Z,T)&&au(a,Q,T)){let re=a.slice(Z.length,a.length-Q.length);return{moduleFileToTry:Y4(u,re)}}if(U&&Ca(U,Z,T)&&au(U,Q,T)){let re=U.slice(Z.length,U.length-Q.length);return{moduleFileToTry:Y4(u,re)}}if(!J&&Ca(a,Z,T)&&au(a,Q,T)){let re=a.slice(Z.length,a.length-Q.length);return{moduleFileToTry:Y4(u,re)}}if(O&&Ca(O,Z,T)&&au(O,Q,T)){let re=O.slice(Z.length,O.length-Q.length);return{moduleFileToTry:Y4(u,re)}}if(F&&Ca(F,Z,T)&&au(F,Q,T)){let re=F.slice(Z.length,F.length-Q.length),ae=Y4(u,re),_e=Uye(F,t);return _e?{moduleFileToTry:T4(ae,_e)}:void 0}break}}else{if(Array.isArray(_))return X(_,T=>Lie(t,n,a,c,u,T,f,y,g,k));if(typeof _=="object"&&_!==null){for(let T of Lu(_))if(T==="default"||f.indexOf(T)>=0||uK(f,T)){let C=_[T],O=Lie(t,n,a,c,u,C,f,y,g,k);if(O)return O}}}}function uar(t,n,a,c,u,_,f){return typeof _=="object"&&_!==null&&!Array.isArray(_)&&Iie(_)?X(Lu(_),y=>{let g=za(Xi(u,y),void 0),k=au(y,"/")?1:y.includes("*")?2:0;return Lie(t,n,a,c,g,_[y],f,k,!1,!1)}):Lie(t,n,a,c,u,_,f,0,!1,!1)}function par(t,n,a,c,u,_){var f,y,g;if(!c.readFile||!mH(a))return;let k=E8e(c,n);if(!k)return;let T=Xi(k,"package.json"),C=(y=(f=c.getPackageJsonInfoCache)==null?void 0:f.call(c))==null?void 0:y.getPackageJsonInfo(T);if(o8e(C)||!c.fileExists(T))return;let O=C?.contents.packageJsonContent||lH(c.readFile(T)),F=O?.imports;if(!F)return;let M=EC(a,u);return(g=X(Lu(F),U=>{if(!Ca(U,"#")||U==="#"||Ca(U,"#/"))return;let J=au(U,"/")?1:U.includes("*")?2:0;return Lie(a,c,t,k,U,F[U],M,J,!0,_)}))==null?void 0:g.moduleFileToTry}function _ar(t,n,a,c,u,_){let f=t_t(n,t,c);if(f===void 0)return;let y=t_t(a,t,c),g=an(y,T=>Cr(f,C=>Tx(lh(T,C,c)))),k=bx(g,bH);if(k)return dK(k,u,_)}function k8e({path:t,isRedirect:n},{getCanonicalFileName:a,canonicalSourceDirectory:c},u,_,f,y,g,k){if(!_.fileExists||!_.readFile)return;let T=Tne(t);if(!T)return;let O=_K(y,_,f,u).getAllowedEndingsInPreferredOrder(),F=t,M=!1;if(!g){let re=T.packageRootIndex,ae;for(;;){let{moduleFileToTry:_e,packageRootPath:me,blockedByExports:le,verbatimFromExports:Oe}=Q(re);if(km(f)!==1){if(le)return;if(Oe)return _e}if(me){F=me,M=!0;break}if(ae||(ae=_e),re=t.indexOf(Gl,re+1),re===-1){F=dK(ae,O,f,_);break}}}if(n&&!M)return;let U=_.getGlobalTypingsCacheLocation&&_.getGlobalTypingsCacheLocation(),J=a(F.substring(0,T.topLevelNodeModulesIndex));if(!(Ca(c,J)||U&&Ca(a(U),J)))return;let G=F.substring(T.topLevelPackageNameIndex+1),Z=Dz(G);return km(f)===1&&Z===G?void 0:Z;function Q(re){var ae,_e;let me=t.substring(0,re),le=Xi(me,"package.json"),Oe=t,be=!1,ue=(_e=(ae=_.getPackageJsonInfoCache)==null?void 0:ae.call(_))==null?void 0:_e.getPackageJsonInfo(le);if(Cie(ue)||ue===void 0&&_.fileExists(le)){let De=ue?.contents.packageJsonContent||lH(_.readFile(le)),Ce=k||zye(u,_,f);if(fH(f)){let Be=me.substring(T.topLevelPackageNameIndex+1),de=Dz(Be),ze=EC(f,Ce),ut=De?.exports?uar(f,_,t,me,de,De.exports,ze):void 0;if(ut)return{...ut,verbatimFromExports:!0};if(De?.exports)return{moduleFileToTry:t,blockedByExports:!0}}let Ae=De?.typesVersions?Eie(De.typesVersions):void 0;if(Ae){let Be=t.slice(me.length+1),de=e_t(Be,Ae.paths,O,me,a,_,f);de===void 0?be=!0:Oe=Xi(me,de)}let Fe=De?.typings||De?.types||De?.main||"index.js";if(Ni(Fe)&&!(be&&Zhe(TH(Ae.paths),Fe))){let Be=wl(Fe,me,a),de=a(Oe);if(Qm(Be)===Qm(de))return{packageRootPath:me,moduleFileToTry:Oe};if(De?.type!=="module"&&!_p(de,yne)&&Ca(de,Be)&&mo(de)===dv(Be)&&Qm(t_(de))==="index")return{packageRootPath:me,moduleFileToTry:Oe}}}else{let De=a(Oe.substring(T.packageRootIndex+1));if(De==="index.d.ts"||De==="index.js"||De==="index.ts"||De==="index.tsx")return{moduleFileToTry:Oe,packageRootPath:me}}return{moduleFileToTry:Oe}}}function dar(t,n){if(!t.fileExists)return;let a=Rc(qU({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(let c of a){let u=n+c;if(t.fileExists(u))return u}}function t_t(t,n,a){return Wn(n,c=>{let u=C8e(t,c,a);return u!==void 0&&n_t(u)?void 0:u})}function dK(t,n,a,c){if(_p(t,[".json",".mjs",".cjs"]))return t;let u=Qm(t);if(t===u)return t;let _=n.indexOf(2),f=n.indexOf(3);if(_p(t,[".mts",".cts"])&&f!==-1&&f<_)return t;if(_p(t,[".d.mts",".mts",".d.cts",".cts"]))return u+$ye(t,a);if(!_p(t,[".d.ts"])&&_p(t,[".ts"])&&t.includes(".d."))return r_t(t);switch(n[0]){case 0:let y=Lk(u,"/index");return c&&y!==u&&dar(c,y)?u:y;case 1:return u;case 2:return u+$ye(t,a);case 3:if(sf(t)){let g=n.findIndex(k=>k===0||k===1);return g!==-1&&g<_?u:u+$ye(t,a)}return t;default:return $.assertNever(n[0])}}function r_t(t){let n=t_(t);if(!au(t,".ts")||!n.includes(".d.")||_p(n,[".d.ts"]))return;let a=xH(t,".ts"),c=a.substring(a.lastIndexOf("."));return a.substring(0,a.indexOf(".d."))+c}function $ye(t,n){return Uye(t,n)??$.fail(`Extension ${VU(t)} is unsupported:: FileName:: ${t}`)}function Uye(t,n){let a=Bx(t);switch(a){case".ts":case".d.ts":return".js";case".tsx":return n.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return a;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function C8e(t,n,a){let c=FT(n,t,n,a,!1);return qd(c)?void 0:c}function n_t(t){return Ca(t,"..")}function zye(t,n,a){return Ox(t)?n.getDefaultResolutionModeForFile(t):roe(t,a)}function far(t){let n=t.indexOf(3);return n>-1&&n(t[t.None=0]="None",t[t.TypeofEQString=1]="TypeofEQString",t[t.TypeofEQNumber=2]="TypeofEQNumber",t[t.TypeofEQBigInt=4]="TypeofEQBigInt",t[t.TypeofEQBoolean=8]="TypeofEQBoolean",t[t.TypeofEQSymbol=16]="TypeofEQSymbol",t[t.TypeofEQObject=32]="TypeofEQObject",t[t.TypeofEQFunction=64]="TypeofEQFunction",t[t.TypeofEQHostObject=128]="TypeofEQHostObject",t[t.TypeofNEString=256]="TypeofNEString",t[t.TypeofNENumber=512]="TypeofNENumber",t[t.TypeofNEBigInt=1024]="TypeofNEBigInt",t[t.TypeofNEBoolean=2048]="TypeofNEBoolean",t[t.TypeofNESymbol=4096]="TypeofNESymbol",t[t.TypeofNEObject=8192]="TypeofNEObject",t[t.TypeofNEFunction=16384]="TypeofNEFunction",t[t.TypeofNEHostObject=32768]="TypeofNEHostObject",t[t.EQUndefined=65536]="EQUndefined",t[t.EQNull=131072]="EQNull",t[t.EQUndefinedOrNull=262144]="EQUndefinedOrNull",t[t.NEUndefined=524288]="NEUndefined",t[t.NENull=1048576]="NENull",t[t.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",t[t.Truthy=4194304]="Truthy",t[t.Falsy=8388608]="Falsy",t[t.IsUndefined=16777216]="IsUndefined",t[t.IsNull=33554432]="IsNull",t[t.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",t[t.All=134217727]="All",t[t.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",t[t.BaseStringFacts=12582401]="BaseStringFacts",t[t.StringStrictFacts=16317953]="StringStrictFacts",t[t.StringFacts=16776705]="StringFacts",t[t.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",t[t.EmptyStringFacts=12582401]="EmptyStringFacts",t[t.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",t[t.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",t[t.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",t[t.BaseNumberFacts=12582146]="BaseNumberFacts",t[t.NumberStrictFacts=16317698]="NumberStrictFacts",t[t.NumberFacts=16776450]="NumberFacts",t[t.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",t[t.ZeroNumberFacts=12582146]="ZeroNumberFacts",t[t.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",t[t.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",t[t.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",t[t.BaseBigIntFacts=12581636]="BaseBigIntFacts",t[t.BigIntStrictFacts=16317188]="BigIntStrictFacts",t[t.BigIntFacts=16775940]="BigIntFacts",t[t.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",t[t.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",t[t.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",t[t.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",t[t.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",t[t.BaseBooleanFacts=12580616]="BaseBooleanFacts",t[t.BooleanStrictFacts=16316168]="BooleanStrictFacts",t[t.BooleanFacts=16774920]="BooleanFacts",t[t.FalseStrictFacts=12121864]="FalseStrictFacts",t[t.FalseFacts=12580616]="FalseFacts",t[t.TrueStrictFacts=7927560]="TrueStrictFacts",t[t.TrueFacts=16774920]="TrueFacts",t[t.SymbolStrictFacts=7925520]="SymbolStrictFacts",t[t.SymbolFacts=16772880]="SymbolFacts",t[t.ObjectStrictFacts=7888800]="ObjectStrictFacts",t[t.ObjectFacts=16736160]="ObjectFacts",t[t.FunctionStrictFacts=7880640]="FunctionStrictFacts",t[t.FunctionFacts=16728e3]="FunctionFacts",t[t.VoidFacts=9830144]="VoidFacts",t[t.UndefinedFacts=26607360]="UndefinedFacts",t[t.NullFacts=42917664]="NullFacts",t[t.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",t[t.EmptyObjectFacts=83886079]="EmptyObjectFacts",t[t.UnknownFacts=83886079]="UnknownFacts",t[t.AllTypeofNE=556800]="AllTypeofNE",t[t.OrFactsMask=8256]="OrFactsMask",t[t.AndFactsMask=134209471]="AndFactsMask",t))(Jye||{}),A8e=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),Vye=(t=>(t[t.Normal=0]="Normal",t[t.Contextual=1]="Contextual",t[t.Inferential=2]="Inferential",t[t.SkipContextSensitive=4]="SkipContextSensitive",t[t.SkipGenericFunctions=8]="SkipGenericFunctions",t[t.IsForSignatureHelp=16]="IsForSignatureHelp",t[t.RestBindingElement=32]="RestBindingElement",t[t.TypeOnly=64]="TypeOnly",t))(Vye||{}),Wye=(t=>(t[t.None=0]="None",t[t.BivariantCallback=1]="BivariantCallback",t[t.StrictCallback=2]="StrictCallback",t[t.IgnoreReturnTypes=4]="IgnoreReturnTypes",t[t.StrictArity=8]="StrictArity",t[t.StrictTopSignature=16]="StrictTopSignature",t[t.Callback=3]="Callback",t))(Wye||{}),mar=EI(l_t,gar),Gye=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),c_t=class{};function har(){this.flags=0}function hl(t){return t.id||(t.id=o_t,o_t++),t.id}function hc(t){return t.id||(t.id=i_t,i_t++),t.id}function Hye(t,n){let a=KT(t);return a===1||n&&a===2}function w8e(t){var n=[],a=o=>{n.push(o)},c,u,_=Uf.getSymbolConstructor(),f=Uf.getTypeConstructor(),y=Uf.getSignatureConstructor(),g=0,k=0,T=0,C=0,O=0,F=0,M,U,J=!1,G=ic(),Z=[1],Q=t.getCompilerOptions(),re=$c(Q),ae=Km(Q),_e=!!Q.experimentalDecorators,me=hH(Q),le=$he(Q),Oe=iF(Q),be=rm(Q,"strictNullChecks"),ue=rm(Q,"strictFunctionTypes"),De=rm(Q,"strictBindCallApply"),Ce=rm(Q,"strictPropertyInitialization"),Ae=rm(Q,"strictBuiltinIteratorReturn"),Fe=rm(Q,"noImplicitAny"),Be=rm(Q,"noImplicitThis"),de=rm(Q,"useUnknownInCatchVariables"),ze=Q.exactOptionalPropertyTypes,ut=!!Q.noUncheckedSideEffectImports,je=tAr(),ve=BPr(),Le=cse(),Ve=OFe(Q,Le.syntacticBuilderResolver),nt=o3e({evaluateElementAccessExpression:wIr,evaluateEntityNameExpression:cwt}),It=ic(),ke=zc(4,"undefined");ke.declarations=[];var _t=zc(1536,"globalThis",8);_t.exports=It,_t.declarations=[],It.set(_t.escapedName,_t);var Se=zc(4,"arguments"),tt=zc(4,"require"),Qe=Q.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",We=!Q.verbatimModuleSyntax,St,Kt,Sr=0,nn,Nn=0,$t=lge({compilerOptions:Q,requireSymbol:tt,argumentsSymbol:Se,globals:It,getSymbolOfDeclaration:$i,error:gt,getRequiresScopeChangeCache:WP,setRequiresScopeChangeCache:bM,lookup:Nf,onPropertyWithInvalidInitializer:kq,onFailedToResolveSymbol:qi,onSuccessfullyResolvedSymbol:rh}),Dr=lge({compilerOptions:Q,requireSymbol:tt,argumentsSymbol:Se,globals:It,getSymbolOfDeclaration:$i,error:gt,getRequiresScopeChangeCache:WP,setRequiresScopeChangeCache:bM,lookup:xCr});let Qn={getNodeCount:()=>nl(t.getSourceFiles(),(o,p)=>o+p.nodeCount,0),getIdentifierCount:()=>nl(t.getSourceFiles(),(o,p)=>o+p.identifierCount,0),getSymbolCount:()=>nl(t.getSourceFiles(),(o,p)=>o+p.symbolCount,k),getTypeCount:()=>g,getInstantiationCount:()=>T,getRelationCacheSizes:()=>({assignable:am.size,identity:sm.size,subtype:Rb.size,strictSubtype:tp.size}),isUndefinedSymbol:o=>o===ke,isArgumentsSymbol:o=>o===Se,isUnknownSymbol:o=>o===ye,getMergedSymbol:cl,symbolIsValue:ln,getDiagnostics:hwt,getGlobalDiagnostics:ePr,getRecursionIdentity:zxe,getUnmatchedProperties:n$e,getTypeOfSymbolAtLocation:(o,p)=>{let m=vs(p);return m?OEr(o,m):Et},getTypeOfSymbol:di,getSymbolsOfParameterPropertyDeclaration:(o,p)=>{let m=vs(o,wa);return m===void 0?$.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):($.assert(ne(m,m.parent)),B3(m,dp(p)))},getDeclaredTypeOfSymbol:Tu,getPropertiesOfType:$l,getPropertyOfType:(o,p)=>vc(o,dp(p)),getPrivateIdentifierPropertyOfType:(o,p,m)=>{let v=vs(m);if(!v)return;let E=dp(p),D=rce(E,v);return D?ETe(o,D):void 0},getTypeOfPropertyOfType:(o,p)=>en(o,dp(p)),getIndexInfoOfType:(o,p)=>oT(o,p===0?Mt:Ir),getIndexInfosOfType:lm,getIndexInfosOfIndexSymbol:yxe,getSignaturesOfType:Gs,getIndexTypeOfType:(o,p)=>vw(o,p===0?Mt:Ir),getIndexType:o=>KS(o),getBaseTypes:ov,getBaseTypeOfLiteralType:S2,getWidenedType:ry,getWidenedLiteralType:Cw,fillMissingTypeArguments:QE,getTypeFromTypeNode:o=>{let p=vs(o,Wo);return p?Sa(p):Et},getParameterType:qv,getParameterIdentifierInfoAtPosition:hDr,getPromisedTypeOfPromise:LZ,getAwaitedType:o=>j7(o),getReturnTypeOfSignature:Tl,isNullableType:tce,getNullableType:jse,getNonNullableType:b2,getNonOptionalType:Wxe,getTypeArguments:Bu,typeToTypeNode:Le.typeToTypeNode,typePredicateToTypePredicateNode:Le.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:Le.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Le.signatureToSignatureDeclaration,symbolToEntityName:Le.symbolToEntityName,symbolToExpression:Le.symbolToExpression,symbolToNode:Le.symbolToNode,symbolToTypeParameterDeclarations:Le.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Le.symbolToParameterDeclaration,typeParameterToDeclaration:Le.typeParameterToDeclaration,getSymbolsInScope:(o,p)=>{let m=vs(o);return m?tPr(m,p):[]},getSymbolAtLocation:o=>{let p=vs(o);return p?B0(p,!0):void 0},getIndexInfosAtLocation:o=>{let p=vs(o);return p?lPr(p):void 0},getShorthandAssignmentValueSymbol:o=>{let p=vs(o);return p?uPr(p):void 0},getExportSpecifierLocalTargetSymbol:o=>{let p=vs(o,Cm);return p?pPr(p):void 0},getExportSymbolOfSymbol(o){return cl(o.exportSymbol||o)},getTypeAtLocation:o=>{let p=vs(o);return p?$7(p):Et},getTypeOfAssignmentPattern:o=>{let p=vs(o,aU);return p&&e2e(p)||Et},getPropertySymbolOfDestructuringAssignment:o=>{let p=vs(o,ct);return p?_Pr(p):void 0},signatureToString:(o,p,m,v)=>HC(o,vs(p),m,v),typeToString:(o,p,m)=>ri(o,vs(p),m),symbolToString:(o,p,m,v)=>Ua(o,vs(p),m,v),typePredicateToString:(o,p,m)=>jb(o,vs(p),m),writeSignature:(o,p,m,v,E,D,R,K)=>HC(o,vs(p),m,v,E,D,R,K),writeType:(o,p,m,v,E,D,R)=>ri(o,vs(p),m,v,E,D,R),writeSymbol:(o,p,m,v,E)=>Ua(o,vs(p),m,v,E),writeTypePredicate:(o,p,m,v)=>jb(o,vs(p),m,v),getAugmentedPropertiesOfType:WUe,getRootSymbols:Ewt,getSymbolOfExpando:ITe,getContextualType:(o,p)=>{let m=vs(o,Vt);if(m)return p&4?uo(m,()=>Eh(m,p)):Eh(m,p)},getContextualTypeForObjectLiteralElement:o=>{let p=vs(o,MT);return p?O$e(p,void 0):void 0},getContextualTypeForArgumentAtIndex:(o,p)=>{let m=vs(o,QI);return m&&I$e(m,p)},getContextualTypeForJsxAttribute:o=>{let p=vs(o,Gte);return p&&BCt(p,void 0)},isContextSensitive:r0,getTypeOfPropertyOfContextualType:Aw,getFullyQualifiedName:$E,getResolvedSignature:(o,p,m)=>Wa(o,p,m,0),getCandidateSignaturesForStringLiteralCompletions:is,getResolvedSignatureForSignatureHelp:(o,p,m)=>sr(o,()=>Wa(o,p,m,16)),getExpandedParameters:x2t,hasEffectiveRestParameter:Wb,containsArgumentsReference:Kje,getConstantValue:o=>{let p=vs(o,Iwt);return p?n2e(p):void 0},isValidPropertyAccess:(o,p)=>{let m=vs(o,IPe);return!!m&&kCr(m,dp(p))},isValidPropertyAccessForCompletions:(o,p,m)=>{let v=vs(o,no);return!!v&&hDt(v,p,m)},getSignatureFromDeclaration:o=>{let p=vs(o,Rs);return p?t0(p):void 0},isImplementationOfOverload:o=>{let p=vs(o,Rs);return p?Awt(p):void 0},getImmediateAliasedSymbol:gTe,getAliasedSymbol:df,getEmitResolver:Eq,requiresAddingImplicitUndefined:Ace,getExportsOfModule:m7,getExportsAndPropertiesOfModule:CM,forEachExportAndPropertyOfModule:h7,getSymbolWalker:x8e(Zbr,F0,Tl,ov,jv,di,Fm,Th,_h,Bu),getAmbientModules:D6r,getJsxIntrinsicTagNamesAt:oCr,isOptionalParameter:o=>{let p=vs(o,wa);return p?eZ(p):!1},tryGetMemberInModuleExports:(o,p)=>H3(dp(o),p),tryGetMemberInModuleExportsAndProperties:(o,p)=>g7(dp(o),p),tryFindAmbientModule:o=>z2t(o,!0),getApparentType:nh,getUnionType:Do,isTypeAssignableTo:tc,createAnonymousType:mp,createSignature:GS,createSymbol:zc,createIndexInfo:aT,getAnyType:()=>at,getStringType:()=>Mt,getStringLiteralType:Sg,getNumberType:()=>Ir,getNumberLiteralType:Bv,getBigIntType:()=>ii,getBigIntLiteralType:Cse,getUnknownType:()=>er,createPromiseType:pce,createArrayType:um,getElementTypeOfArrayType:Mse,getBooleanType:()=>_r,getFalseType:o=>o?Rn:zn,getTrueType:o=>o?Rt:rr,getVoidType:()=>pn,getUndefinedType:()=>Ne,getNullType:()=>mr,getESSymbolType:()=>wr,getNeverType:()=>tn,getNonPrimitiveType:()=>bn,getOptionalType:()=>Gt,getPromiseType:()=>Sse(!1),getPromiseLikeType:()=>_Et(!1),getAnyAsyncIterableType:()=>{let o=bse(!1);if(o!==Ar)return f2(o,[at,at,at])},isSymbolAccessible:GC,isArrayType:L0,isTupleType:Gc,isArrayLikeType:YE,isEmptyAnonymousObjectType:Vb,isTypeInvalidDueToUnionDiscriminant:Nbr,getExactOptionalProperties:s2r,getAllPossiblePropertiesOfTypes:Obr,getSuggestedSymbolForNonexistentProperty:W$e,getSuggestedSymbolForNonexistentJSXAttribute:_Dt,getSuggestedSymbolForNonexistentSymbol:(o,p,m)=>fDt(o,dp(p),m),getSuggestedSymbolForNonexistentModule:G$e,getSuggestedSymbolForNonexistentClassMember:pDt,getBaseConstraintOfType:Gf,getDefaultFromTypeParameter:o=>o&&o.flags&262144?r6(o):void 0,resolveName(o,p,m,v){return $t(p,dp(o),m,void 0,!1,v)},getJsxNamespace:o=>oa(X1(o)),getJsxFragmentFactory:o=>{let p=ZUe(o);return p&&oa(_h(p).escapedText)},getAccessibleSymbolChain:qE,getTypePredicateOfSignature:F0,resolveExternalModuleName:o=>{let p=vs(o,Vt);return p&&Nm(p,p,!0)},resolveExternalModuleSymbol:vg,tryGetThisTypeAt:(o,p,m)=>{let v=vs(o);return v&&C$e(v,p,m)},getTypeArgumentConstraint:o=>{let p=vs(o,Wo);return p&&MAr(p)},getSuggestionDiagnostics:(o,p)=>{let m=vs(o,Ta)||$.fail("Could not determine parsed source file.");if(lL(m,Q,t))return j;let v;try{return c=p,JUe(m),$.assert(!!(Ki(m).flags&1)),v=En(v,L3.getDiagnostics(m.fileName)),FAt(mwt(m),(E,D,R)=>{!BO(E)&&!fwt(D,!!(E.flags&33554432))&&(v||(v=[])).push({...R,category:2})}),v||j}finally{c=void 0}},runWithCancellationToken:(o,p)=>{try{return c=o,p(Qn)}finally{c=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Dc,isDeclarationVisible:Bb,isPropertyAccessible:K$e,getTypeOnlyAliasDeclaration:Fv,getMemberOverrideModifierStatus:yIr,isTypeParameterPossiblyReferenced:wse,typeHasCallOrConstructSignatures:t2e,getSymbolFlags:Zh,getTypeArgumentsForResolvedSignature:Ko,isLibType:wM};function Ko(o){if(o.mapper!==void 0)return y2((o.target||o).typeParameters,o.mapper)}function is(o,p){let m=new Set,v=[];uo(p,()=>Wa(o,v,void 0,0));for(let E of v)m.add(E);v.length=0,sr(p,()=>Wa(o,v,void 0,0));for(let E of v)m.add(E);return so(m)}function sr(o,p){if(o=fn(o,lme),o){let m=[],v=[];for(;o;){let D=Ki(o);if(m.push([D,D.resolvedSignature]),D.resolvedSignature=void 0,mC(o)){let R=io($i(o)),K=R.type;v.push([R,K]),R.type=void 0}o=fn(o.parent,lme)}let E=p();for(let[D,R]of m)D.resolvedSignature=R;for(let[D,R]of v)D.type=R;return E}return p()}function uo(o,p){let m=fn(o,QI);if(m){let E=o;do Ki(E).skipDirectInference=!0,E=E.parent;while(E&&E!==m)}J=!0;let v=sr(o,p);if(J=!1,m){let E=o;do Ki(E).skipDirectInference=void 0,E=E.parent;while(E&&E!==m)}return v}function Wa(o,p,m,v){let E=vs(o,QI);St=m;let D=E?HM(E,p,v):void 0;return St=void 0,D}var oo=new Map,Oi=new Map,$o=new Map,ft=new Map,Ht=new Map,Wr=new Map,ai=new Map,vo=new Map,Eo=new Map,ya=new Map,Ls=new Map,yc=new Map,Cn=new Map,Es=new Map,Dt=new Map,ur=[],Ee=new Map,Bt=new Set,ye=zc(4,"unknown"),et=zc(0,"__resolving__"),Ct=new Map,Ot=new Map,ar=new Set,at=ra(1,"any"),Zt=ra(1,"any",262144,"auto"),Qt=ra(1,"any",void 0,"wildcard"),pr=ra(1,"any",void 0,"blocked string"),Et=ra(1,"error"),xr=ra(1,"unresolved"),gi=ra(1,"any",65536,"non-inferrable"),Ye=ra(1,"intrinsic"),er=ra(2,"unknown"),Ne=ra(32768,"undefined"),Y=be?Ne:ra(32768,"undefined",65536,"widening"),ot=ra(32768,"undefined",void 0,"missing"),pe=ze?ot:Ne,Gt=ra(32768,"undefined",void 0,"optional"),mr=ra(65536,"null"),Ge=be?mr:ra(65536,"null",65536,"widening"),Mt=ra(4,"string"),Ir=ra(8,"number"),ii=ra(64,"bigint"),Rn=ra(512,"false",void 0,"fresh"),zn=ra(512,"false"),Rt=ra(512,"true",void 0,"fresh"),rr=ra(512,"true");Rt.regularType=rr,Rt.freshType=Rt,rr.regularType=rr,rr.freshType=Rt,Rn.regularType=zn,Rn.freshType=Rn,zn.regularType=zn,zn.freshType=Rn;var _r=Do([zn,rr]),wr=ra(4096,"symbol"),pn=ra(16384,"void"),tn=ra(131072,"never"),lr=ra(131072,"never",262144,"silent"),cn=ra(131072,"never",void 0,"implicit"),gn=ra(131072,"never",void 0,"unreachable"),bn=ra(67108864,"object"),$r=Do([Mt,Ir]),Uo=Do([Mt,Ir,wr]),Ys=Do([Ir,ii]),ec=Do([Mt,Ir,_r,ii,mr,Ne]),Ss=cN(["",""],[Ir]),Mp=Ase(o=>o.flags&262144?OTr(o):o,()=>"(restrictive mapper)"),Cp=Ase(o=>o.flags&262144?Qt:o,()=>"(permissive mapper)"),uu=ra(131072,"never",void 0,"unique literal"),$a=Ase(o=>o.flags&262144?uu:o,()=>"(unique literal mapper)"),bs,V_=Ase(o=>(bs&&(o===Yu||o===Hp||o===H)&&bs(!0),o),()=>"(unmeasurable reporter)"),Nu=Ase(o=>(bs&&(o===Yu||o===Hp||o===H)&&bs(!1),o),()=>"(unreliable reporter)"),kc=mp(void 0,G,j,j,j),o_=mp(void 0,G,j,j,j);o_.objectFlags|=2048;var Gy=mp(void 0,G,j,j,j);Gy.objectFlags|=141440;var _s=zc(2048,"__type");_s.members=ic();var sc=mp(_s,G,j,j,j),sl=mp(void 0,G,j,j,j),Yc=be?Do([Ne,mr,sl]):er,Ar=mp(void 0,G,j,j,j);Ar.instantiations=new Map;var Ql=mp(void 0,G,j,j,j);Ql.objectFlags|=262144;var Gp=mp(void 0,G,j,j,j),N_=mp(void 0,G,j,j,j),lf=mp(void 0,G,j,j,j),Yu=bh(),Hp=bh();Hp.constraint=Yu;var H=bh(),st=bh(),zt=bh();zt.constraint=st;var Er=tZ(1,"<>",0,at),jn=GS(void 0,void 0,void 0,j,at,void 0,0,0),So=GS(void 0,void 0,void 0,j,Et,void 0,0,0),Di=GS(void 0,void 0,void 0,j,at,void 0,0,0),On=GS(void 0,void 0,void 0,j,lr,void 0,0,0),ua=aT(Ir,Mt,!0),va=aT(Mt,at,!1),Bl=new Map,xc={get yieldType(){return $.fail("Not supported")},get returnType(){return $.fail("Not supported")},get nextType(){return $.fail("Not supported")}},ep=aD(at,at,at),W_=aD(lr,lr,lr),g_={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:_xr,getGlobalIterableType:bse,getGlobalIterableIteratorType:dEt,getGlobalIteratorObjectType:fxr,getGlobalGeneratorType:mxr,getGlobalBuiltinIteratorTypes:dxr,resolveIterationType:(o,p)=>j7(o,p,x.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:x.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:x.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:x.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},xu={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:hxr,getGlobalIterableType:Cxe,getGlobalIterableIteratorType:fEt,getGlobalIteratorObjectType:yxr,getGlobalGeneratorType:vxr,getGlobalBuiltinIteratorTypes:gxr,resolveIterationType:(o,p)=>o,mustHaveANextMethodDiagnostic:x.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:x.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:x.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},a_,Gg=new Map,Wf=new Map,yy,Wh,rt,br,Vn,Ga,el,tl,Uc,nd,Mu,Dp,Kp,vy,If,uf,Hg,Ym,D0,Pb,Wx,Gx,Gh,Nd,Iv,Hy,US,xe,Ft,Nr,Mr,wn,Yn,fo,Mo,Ea,ee,it,cr,In,Ka,Ws,Xa,ks,cp,Cc,pf,Kg,Ky,A0,r2,PE,vh,Nb,Pv,d1,OC,dt,Lt,Tr,dn,qn=new Map,Fi=0,$n=0,oi=0,sa=!1,os=0,Po,as,ka,lp=[],Hh=[],f1=[],Pf=0,m1=[],Qg=[],GA=[],zS=0,Ob=[],HA=[],Fb=0,hM=Sg(""),xq=Bv(0),gM=Cse({negative:!1,base10Value:"0"}),Hx=[],KA=[],P3=[],NE=0,N3=!1,e7=0,Tq=10,O3=[],t7=[],QA=[],yM=[],F3=[],r7=[],UP=[],FC=[],n7=[],i7=[],zP=[],RC=[],OE=[],n2=[],i2=[],o2=[],LC=[],ZA=[],R3=[],XA=0,il=IU(),L3=IU(),vM=cm(),a2,s2,Rb=new Map,tp=new Map,am=new Map,Kh=new Map,sm=new Map,YA=new Map,eh=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",Q.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return $Pr(),Qn;function Lb(o){return!no(o)||!ct(o.name)||!no(o.expression)&&!ct(o.expression)?!1:ct(o.expression)?Zi(o.expression)==="Symbol"&&Fm(o.expression)===(BM("Symbol",1160127,void 0)||ye):ct(o.expression.expression)?Zi(o.expression.name)==="Symbol"&&Zi(o.expression.expression)==="globalThis"&&Fm(o.expression.expression)===_t:!1}function Sh(o){return o?Dt.get(o):void 0}function h1(o,p){return o&&Dt.set(o,p),p}function X1(o){if(o){let p=Pn(o);if(p)if(K1(o)){if(p.localJsxFragmentNamespace)return p.localJsxFragmentNamespace;let m=p.pragmas.get("jsxfrag");if(m){let E=Zn(m)?m[0]:m;if(p.localJsxFragmentFactory=AF(E.arguments.factory,re),At(p.localJsxFragmentFactory,tw,uh),p.localJsxFragmentFactory)return p.localJsxFragmentNamespace=_h(p.localJsxFragmentFactory).escapedText}let v=ZUe(o);if(v)return p.localJsxFragmentFactory=v,p.localJsxFragmentNamespace=_h(v).escapedText}else{let m=ew(p);if(m)return p.localJsxNamespace=m}}return a2||(a2="React",Q.jsxFactory?(s2=AF(Q.jsxFactory,re),At(s2,tw),s2&&(a2=_h(s2).escapedText)):Q.reactNamespace&&(a2=dp(Q.reactNamespace))),s2||(s2=W.createQualifiedName(W.createIdentifier(oa(a2)),"createElement")),a2}function ew(o){if(o.localJsxNamespace)return o.localJsxNamespace;let p=o.pragmas.get("jsx");if(p){let m=Zn(p)?p[0]:p;if(o.localJsxFactory=AF(m.arguments.factory,re),At(o.localJsxFactory,tw,uh),o.localJsxFactory)return o.localJsxNamespace=_h(o.localJsxFactory).escapedText}}function tw(o){return xv(o,-1,-1),Dn(o,tw,void 0)}function Eq(o,p,m){return m||hwt(o,p),ve}function SM(o,p,...m){let v=o?xi(o,p,...m):bp(p,...m),E=il.lookup(v);return E||(il.add(v),v)}function FE(o,p,m,...v){let E=gt(p,m,...v);return E.skippedOn=o,E}function qP(o,p,...m){return o?xi(o,p,...m):bp(p,...m)}function gt(o,p,...m){let v=qP(o,p,...m);return il.add(v),v}function M3(o){let m=Pn(o).fileName;return _p(m,[".cts",".cjs"])?x.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:x.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript}function Kx(o,p){o?il.add(p):L3.add({...p,category:2})}function Y1(o,p,m,...v){if(p.pos<0||p.end<0){if(!o)return;let E=Pn(p);Kx(o,"message"in m?md(E,0,0,m,...v):Fme(E,m));return}Kx(o,"message"in m?xi(p,m,...v):Nx(Pn(p),p,m))}function RE(o,p,m,...v){let E=gt(o,m,...v);if(p){let D=xi(o,x.Did_you_forget_to_use_await);ac(E,D)}return E}function MC(o,p){let m=Array.isArray(o)?X(o,cu):cu(o);return m&&ac(p,xi(m,x.The_declaration_was_marked_as_deprecated_here)),L3.add(p),p}function th(o){let p=Od(o);return p&&te(o.declarations)>1?p.flags&64?Pt(o.declarations,Nv):ht(o.declarations,Nv):!!o.valueDeclaration&&Nv(o.valueDeclaration)||te(o.declarations)&&ht(o.declarations,Nv)}function Nv(o){return!!(f6(o)&536870912)}function g1(o,p,m){let v=xi(o,x._0_is_deprecated,m);return MC(p,v)}function rw(o,p,m,v){let E=m?xi(o,x.The_signature_0_of_1_is_deprecated,v,m):xi(o,x._0_is_deprecated,v);return MC(p,E)}function zc(o,p,m){k++;let v=new _(o|33554432,p);return v.links=new c_t,v.links.checkFlags=m||0,v}function Qy(o,p){let m=zc(1,o);return m.links.type=p,m}function LE(o,p){let m=zc(4,o);return m.links.type=p,m}function j3(o){let p=0;return o&2&&(p|=111551),o&1&&(p|=111550),o&4&&(p|=0),o&8&&(p|=900095),o&16&&(p|=110991),o&32&&(p|=899503),o&64&&(p|=788872),o&256&&(p|=899327),o&128&&(p|=899967),o&512&&(p|=110735),o&8192&&(p|=103359),o&32768&&(p|=46015),o&65536&&(p|=78783),o&262144&&(p|=526824),o&524288&&(p|=788968),o&2097152&&(p|=2097152),p}function c2(o,p){p.mergeId||(p.mergeId=a_t,a_t++),O3[p.mergeId]=o}function JP(o){let p=zc(o.flags,o.escapedName);return p.declarations=o.declarations?o.declarations.slice():[],p.parent=o.parent,o.valueDeclaration&&(p.valueDeclaration=o.valueDeclaration),o.constEnumOnlyModule&&(p.constEnumOnlyModule=!0),o.members&&(p.members=new Map(o.members)),o.exports&&(p.exports=new Map(o.exports)),c2(p,o),p}function w0(o,p,m=!1){if(!(o.flags&j3(p.flags))||(p.flags|o.flags)&67108864){if(p===o)return o;if(!(o.flags&33554432)){let D=O_(o);if(D===ye)return p;if(!(D.flags&j3(p.flags))||(p.flags|D.flags)&67108864)o=JP(D);else return v(o,p),p}p.flags&512&&o.flags&512&&o.constEnumOnlyModule&&!p.constEnumOnlyModule&&(o.constEnumOnlyModule=!1),o.flags|=p.flags,p.valueDeclaration&&SU(o,p.valueDeclaration),En(o.declarations,p.declarations),p.members&&(o.members||(o.members=ic()),qS(o.members,p.members,m)),p.exports&&(o.exports||(o.exports=ic()),qS(o.exports,p.exports,m,o)),m||c2(o,p)}else o.flags&1024?o!==_t&>(p.declarations&&cs(p.declarations[0]),x.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Ua(o)):v(o,p);return o;function v(D,R){let K=!!(D.flags&384||R.flags&384),se=!!(D.flags&2||R.flags&2),ce=K?x.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:se?x.Cannot_redeclare_block_scoped_variable_0:x.Duplicate_identifier_0,fe=R.declarations&&Pn(R.declarations[0]),Ue=D.declarations&&Pn(D.declarations[0]),Me=lU(fe,Q.checkJs),yt=lU(Ue,Q.checkJs),Jt=Ua(R);if(fe&&Ue&&a_&&!K&&fe!==Ue){let Xt=M1(fe.path,Ue.path)===-1?fe:Ue,kr=Xt===fe?Ue:fe,on=hs(a_,`${Xt.path}|${kr.path}`,()=>({firstFile:Xt,secondFile:kr,conflictingSymbols:new Map})),Hn=hs(on.conflictingSymbols,Jt,()=>({isBlockScoped:se,firstFileLocations:[],secondFileLocations:[]}));Me||E(Hn.firstFileLocations,R),yt||E(Hn.secondFileLocations,D)}else Me||Qx(R,ce,Jt,D),yt||Qx(D,ce,Jt,R)}function E(D,R){if(R.declarations)for(let K of R.declarations)Zc(D,K)}}function Qx(o,p,m,v){X(o.declarations,E=>{nw(E,p,m,v.declarations)})}function nw(o,p,m,v){let E=(_A(o,!1)?zme(o):cs(o))||o,D=SM(E,p,m);for(let R of v||j){let K=(_A(R,!1)?zme(R):cs(R))||R;if(K===E)continue;D.relatedInformation=D.relatedInformation||[];let se=xi(K,x._0_was_also_declared_here,m),ce=xi(K,x.and_here);te(D.relatedInformation)>=5||Pt(D.relatedInformation,fe=>$U(fe,ce)===0||$U(fe,se)===0)||ac(D,te(D.relatedInformation)?ce:se)}}function ME(o,p){if(!o?.size)return p;if(!p?.size)return o;let m=ic();return qS(m,o),qS(m,p),m}function qS(o,p,m=!1,v){p.forEach((E,D)=>{let R=o.get(D),K=R?w0(R,E,m):cl(E);v&&R&&(K.parent=v),o.set(D,K)})}function VP(o){var p,m,v;let E=o.parent;if(((p=E.symbol.declarations)==null?void 0:p[0])!==E){$.assert(E.symbol.declarations.length>1);return}if(xb(E))qS(It,E.symbol.exports);else{let D=o.parent.parent.flags&33554432?void 0:x.Invalid_module_name_in_augmentation_module_0_cannot_be_found,R=yg(o,o,D,!1,!0);if(!R)return;if(R=vg(R),R.flags&1920)if(Pt(Wh,K=>R===K.symbol)){let K=w0(E.symbol,R,!0);rt||(rt=new Map),rt.set(o.text,K)}else{if((m=R.exports)!=null&&m.get("__export")&&((v=E.symbol.exports)!=null&&v.size)){let K=Fje(R,"resolvedExports");for(let[se,ce]of so(E.symbol.exports.entries()))K.has(se)&&!R.exports.has(se)&&w0(K.get(se),ce)}w0(R,E.symbol)}else gt(o,x.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,o.text)}}function iw(){let o=ke.escapedName,p=It.get(o);p?X(p.declarations,m=>{aF(m)||il.add(xi(m,x.Declaration_name_conflicts_with_built_in_global_identifier_0,oa(o)))}):It.set(o,ke)}function io(o){if(o.flags&33554432)return o.links;let p=hc(o);return t7[p]??(t7[p]=new c_t)}function Ki(o){let p=hl(o);return QA[p]||(QA[p]=new har)}function Nf(o,p,m){if(m){let v=cl(o.get(p));if(v&&(v.flags&m||v.flags&2097152&&Zh(v)&m))return v}}function B3(o,p){let m=o.parent,v=o.parent.parent,E=Nf(m.locals,p,111551),D=Nf(Ub(v.symbol),p,111551);return E&&D?[E,D]:$.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function l2(o,p){let m=Pn(o),v=Pn(p),E=yv(o);if(m!==v){if(ae&&(m.externalModuleIndicator||v.externalModuleIndicator)||!Q.outFile||KO(p)||o.flags&33554432||R(p,o))return!0;let ce=t.getSourceFiles();return ce.indexOf(m)<=ce.indexOf(v)}if(p.flags&16777216||KO(p)||u$e(p))return!0;if(o.pos<=p.pos&&!(ps(o)&&PG(p.parent)&&!o.initializer&&!o.exclamationToken)){if(o.kind===209){let ce=mA(p,209);return ce?fn(ce,Vc)!==fn(o,Vc)||o.posfe===o?"quit":dc(fe)?fe.parent.parent===o:!_e&&hd(fe)&&(fe.parent===o||Ep(fe.parent)&&fe.parent.parent===o||aG(fe.parent)&&fe.parent.parent===o||ps(fe.parent)&&fe.parent.parent===o||wa(fe.parent)&&fe.parent.parent.parent===o));return ce?!_e&&hd(ce)?!!fn(p,fe=>fe===ce?"quit":Rs(fe)&&!uA(fe)):!1:!0}else{if(ps(o))return!se(o,p,!1);if(ne(o,o.parent))return!(le&&Cf(o)===Cf(p)&&R(p,o))}}return!0}if(p.parent.kind===282||p.parent.kind===278&&p.parent.isExportEquals||p.kind===278&&p.isExportEquals)return!0;if(R(p,o))return le&&Cf(o)&&(ps(o)||ne(o,o.parent))?!se(o,p,!0):!0;return!1;function D(ce,fe){switch(ce.parent.parent.kind){case 244:case 249:case 251:if(ev(fe,ce,E))return!0;break}let Ue=ce.parent.parent;return M4(Ue)&&ev(fe,Ue.expression,E)}function R(ce,fe){return K(ce,fe)}function K(ce,fe){return!!fn(ce,Ue=>{if(Ue===E)return"quit";if(Rs(Ue))return!uA(Ue);if(n_(Ue))return fe.posce.end?!1:fn(fe,yt=>{if(yt===ce)return"quit";switch(yt.kind){case 220:return!0;case 173:return Ue&&(ps(ce)&&yt.parent===ce.parent||ne(ce,ce.parent)&&yt.parent===ce.parent.parent)?"quit":!0;case 242:switch(yt.parent.kind){case 178:case 175:case 179:return!0;default:return!1}default:return!1}})===void 0}}function WP(o){return Ki(o).declarationRequiresScopeChange}function bM(o,p){Ki(o).declarationRequiresScopeChange=p}function kq(o,p,m,v){return le?!1:(o&&!v&&$3(o,p,p)||gt(o,o&&m.type&&Ao(m.type,o.pos)?x.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:x.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,du(m.name),gg(p)),!0)}function qi(o,p,m,v){let E=Ni(p)?p:p.escapedText;a(()=>{if(!o||o.parent.kind!==325&&!$3(o,E,p)&&!jC(o)&&!xM(o,E,m)&&!Mb(o,E)&&!$C(o,E,m)&&!Ov(o,E,m)&&!o7(o,E,m)){let D,R;if(p&&(R=SCr(p),R&>(o,v,gg(p),R)),!R&&e7{var R;let K=p.escapedName,se=v&&Ta(v)&&Lg(v);if(o&&(m&2||(m&32||m&384)&&(m&111551)===111551)){let ce=Wt(p);(ce.flags&2||ce.flags&32||ce.flags&384)&&Zy(ce,o)}if(se&&(m&111551)===111551&&!(o.flags&16777216)){let ce=cl(p);te(ce.declarations)&&ht(ce.declarations,fe=>UH(fe)||Ta(fe)&&!!fe.symbol.globalExports)&&Y1(!Q.allowUmdGlobalAccess,o,x._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,oa(K))}if(E&&!D&&(m&111551)===111551){let ce=cl(pxe(p)),fe=bS(E);ce===$i(E)?gt(o,x.Parameter_0_cannot_reference_itself,du(E.name)):ce.valueDeclaration&&ce.valueDeclaration.pos>E.pos&&fe.parent.locals&&Nf(fe.parent.locals,ce.escapedName,m)===ce&>(o,x.Parameter_0_cannot_reference_identifier_1_declared_after_it,du(E.name),du(o))}if(o&&m&111551&&p.flags&2097152&&!(p.flags&111551)&&!yA(o)){let ce=Fv(p,111551);if(ce){let fe=ce.kind===282||ce.kind===279||ce.kind===281?x._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:x._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Ue=oa(K);gs(gt(o,fe,Ue),ce,Ue)}}if(Q.isolatedModules&&p&&se&&(m&111551)===111551){let fe=Nf(It,K,m)===p&&Ta(v)&&v.locals&&Nf(v.locals,K,-111552);if(fe){let Ue=(R=fe.declarations)==null?void 0:R.find(Me=>Me.kind===277||Me.kind===274||Me.kind===275||Me.kind===272);Ue&&!OR(Ue)&>(Ue,x.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,oa(K))}}})}function gs(o,p,m){return p?ac(o,xi(p,p.kind===282||p.kind===279||p.kind===281?x._0_was_exported_here:x._0_was_imported_here,m)):o}function gg(o){return Ni(o)?oa(o):du(o)}function $3(o,p,m){if(!ct(o)||o.escapedText!==p||gwt(o)||KO(o))return!1;let v=Hm(o,!1,!1),E=v;for(;E;){if(Co(E.parent)){let D=$i(E.parent);if(!D)break;let R=di(D);if(vc(R,p))return gt(o,x.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,gg(m),Ua(D)),!0;if(E===v&&!oc(E)){let K=Tu(D).thisType;if(vc(K,p))return gt(o,x.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,gg(m)),!0}}E=E.parent}return!1}function jC(o){let p=Ii(o);return p&&jp(p,64,!0)?(gt(o,x.Cannot_extend_an_interface_0_Did_you_mean_implements,Sp(p)),!0):!1}function Ii(o){switch(o.kind){case 80:case 212:return o.parent?Ii(o.parent):void 0;case 234:if(ru(o.expression))return o.expression;default:return}}function xM(o,p,m){let v=1920|(Ei(o)?111551:0);if(m===v){let E=O_($t(o,p,788968&~v,void 0,!1)),D=o.parent;if(E){if(dh(D)){$.assert(D.left===o,"Should only be resolving left side of qualified name as a namespace");let R=D.right.escapedText;if(vc(Tu(E),R))return gt(D,x.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,oa(p),oa(R)),!0}return gt(o,x._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,oa(p)),!0}}return!1}function o7(o,p,m){if(m&788584){let v=O_($t(o,p,111127,void 0,!1));if(v&&!(v.flags&1920))return gt(o,x._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,oa(p)),!0}return!1}function Pm(o){return o==="any"||o==="string"||o==="number"||o==="boolean"||o==="never"||o==="unknown"}function Mb(o,p){return Pm(p)&&o.parent.kind===282?(gt(o,x.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,p),!0):!1}function Ov(o,p,m){if(m&111551){if(Pm(p)){let D=o.parent.parent;if(D&&D.parent&&zg(D)){let R=D.token;D.parent.kind===265&&R===96?gt(o,x.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,oa(p)):Co(D.parent)&&R===96?gt(o,x.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,oa(p)):Co(D.parent)&&R===119&>(o,x.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,oa(p))}else gt(o,x._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,oa(p));return!0}let v=O_($t(o,p,788544,void 0,!1)),E=v&&Zh(v);if(v&&E!==void 0&&!(E&111551)){let D=oa(p);return U3(p)?gt(o,x._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,D):BC(o,v)?gt(o,x._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,D,D==="K"?"P":"K"):gt(o,x._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,D),!0}}return!1}function BC(o,p){let m=fn(o.parent,v=>dc(v)||Zm(v)?!1:fh(v)||"quit");if(m&&m.members.length===1){let v=Tu(p);return!!(v.flags&1048576)&&NZ(v,384,!0)}return!1}function U3(o){switch(o){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function $C(o,p,m){if(m&111127){if(O_($t(o,p,1024,void 0,!1)))return gt(o,x.Cannot_use_namespace_0_as_a_value,oa(p)),!0}else if(m&788544&&O_($t(o,p,1536,void 0,!1)))return gt(o,x.Cannot_use_namespace_0_as_a_type,oa(p)),!0;return!1}function Zy(o,p){var m;if($.assert(!!(o.flags&2||o.flags&32||o.flags&384)),o.flags&67108881&&o.flags&32)return;let v=(m=o.declarations)==null?void 0:m.find(E=>Eme(E)||Co(E)||E.kind===267);if(v===void 0)return $.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(v.flags&33554432)&&!l2(v,p)){let E,D=du(cs(v));o.flags&2?E=gt(p,x.Block_scoped_variable_0_used_before_its_declaration,D):o.flags&32?E=gt(p,x.Class_0_used_before_its_declaration,D):o.flags&256?E=gt(p,x.Enum_0_used_before_its_declaration,D):($.assert(!!(o.flags&128)),a1(Q)&&(E=gt(p,x.Enum_0_used_before_its_declaration,D))),E&&ac(E,xi(v,x._0_is_declared_here,D))}}function ev(o,p,m){return!!p&&!!fn(o,v=>v===p||(v===m||Rs(v)&&(!uA(v)||A_(v)&3)?"quit":!1))}function I0(o){switch(o.kind){case 272:return o;case 274:return o.parent;case 275:return o.parent.parent;case 277:return o.parent.parent.parent;default:return}}function Qh(o){return o.declarations&&Ut(o.declarations,jE)}function jE(o){return o.kind===272||o.kind===271||o.kind===274&&!!o.name||o.kind===275||o.kind===281||o.kind===277||o.kind===282||o.kind===278&&QG(o)||wi(o)&&m_(o)===2&&QG(o)||wu(o)&&wi(o.parent)&&o.parent.left===o&&o.parent.operatorToken.kind===64&&ow(o.parent.right)||o.kind===305||o.kind===304&&ow(o.initializer)||o.kind===261&&rP(o)||o.kind===209&&rP(o.parent.parent)}function ow(o){return Pre(o)||bu(o)&&XS(o)}function a7(o,p){let m=l7(o);if(m){let E=oL(m.expression).arguments[0];return ct(m.name)?O_(vc(q2t(E),m.name.escapedText)):void 0}if(Oo(o)||o.moduleReference.kind===284){let E=Nm(o,Ume(o)||hU(o)),D=vg(E);if(D&&102<=ae&&ae<=199){let R=GP(D,"module.exports",o,p);if(R)return R}return P0(o,E,D,!1),D}let v=VC(o.moduleReference,p);return aw(o,v),v}function aw(o,p){if(P0(o,void 0,p,!1)&&!o.isTypeOnly){let m=Fv($i(o)),v=m.kind===282||m.kind===279,E=v?x.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:x.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,D=v?x._0_was_exported_here:x._0_was_imported_here,R=m.kind===279?"*":aC(m.name);ac(gt(o.moduleReference,E),xi(m,D,R))}}function UC(o,p,m,v){let E=o.exports.get("export="),D=E?vc(di(E),p,!0):o.exports.get(p),R=O_(D,v);return P0(m,D,R,!1),R}function s7(o){return Xu(o)&&!o.isExportEquals||ko(o,2048)||Cm(o)||Db(o)}function u2(o){return Sl(o)?t.getEmitSyntaxForUsageLocation(Pn(o),o):void 0}function JS(o,p){return o===99&&p===1}function zC(o,p){if(100<=ae&&ae<=199&&u2(o)===99){p??(p=Nm(o,o,!0));let v=p&&yG(p);return v&&(h0(v)||sie(v.fileName)===".d.json.ts")}return!1}function sw(o,p,m,v){let E=o&&u2(v);if(o&&E!==void 0){let D=t.getImpliedNodeFormatForEmit(o);if(E===99&&D===1&&100<=ae&&ae<=199)return!0;if(E===99&&D===99)return!1}if(!Oe)return!1;if(!o||o.isDeclarationFile){let D=UC(p,"default",void 0,!0);return!(D&&Pt(D.declarations,s7)||UC(p,dp("__esModule"),void 0,m))}return ph(o)?typeof o.externalModuleIndicator!="object"&&!UC(p,dp("__esModule"),void 0,m):rv(p)}function BE(o,p){let m=Nm(o,o.parent.moduleSpecifier);if(m)return qC(m,o,p)}function qC(o,p,m){var v;let E=(v=o.declarations)==null?void 0:v.find(Ta),D=tv(p),R,K;if(bG(o))R=o;else if(E&&D&&102<=ae&&ae<=199&&u2(D)===1&&t.getImpliedNodeFormatForEmit(E)===99&&(K=UC(o,"module.exports",p,m))){if(!kS(Q)){gt(p.name,x.Module_0_can_only_be_default_imported_using_the_1_flag,Ua(o),"esModuleInterop");return}return P0(p,K,void 0,!1),K}else R=UC(o,"default",p,m);if(!D)return R;let se=zC(D,o),ce=sw(E,o,m,D);if(!R&&!ce&&!se)if(rv(o)&&!Oe){let fe=ae>=5?"allowSyntheticDefaultImports":"esModuleInterop",Me=o.exports.get("export=").valueDeclaration,yt=gt(p.name,x.Module_0_can_only_be_default_imported_using_the_1_flag,Ua(o),fe);Me&&ac(yt,xi(Me,x.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,fe))}else H1(p)?p2(o,p):z3(o,o,p,Yk(p)&&p.propertyName||p.name);else if(ce||se){let fe=vg(o,m)||O_(o,m);return P0(p,o,fe,!1),fe}return P0(p,R,void 0,!1),R}function tv(o){switch(o.kind){case 274:return o.parent.moduleSpecifier;case 272:return WT(o.moduleReference)?o.moduleReference.expression:void 0;case 275:return o.parent.parent.moduleSpecifier;case 277:return o.parent.parent.parent.moduleSpecifier;case 282:return o.parent.parent.moduleSpecifier;default:return $.assertNever(o)}}function p2(o,p){var m,v,E;if((m=o.exports)!=null&&m.has(p.symbol.escapedName))gt(p.name,x.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Ua(o),Ua(p.symbol));else{let D=gt(p.name,x.Module_0_has_no_default_export,Ua(o)),R=(v=o.exports)==null?void 0:v.get("__export");if(R){let K=(E=R.declarations)==null?void 0:E.find(se=>{var ce,fe;return!!(P_(se)&&se.moduleSpecifier&&((fe=(ce=Nm(se,se.moduleSpecifier))==null?void 0:ce.exports)!=null&&fe.has("default")))});K&&ac(D,xi(K,x.export_Asterisk_does_not_re_export_a_default))}}}function Zx(o,p){let m=o.parent.parent.moduleSpecifier,v=Nm(o,m),E=eT(v,m,p,!1);return P0(o,v,E,!1),E}function JC(o,p){let m=o.parent.moduleSpecifier,v=m&&Nm(o,m),E=m&&eT(v,m,p,!1);return P0(o,v,E,!1),E}function _f(o,p){if(o===ye&&p===ye)return ye;if(o.flags&790504)return o;let m=zc(o.flags|p.flags,o.escapedName);return $.assert(o.declarations||p.declarations),m.declarations=rf(go(o.declarations,p.declarations),Ng),m.parent=o.parent||p.parent,o.valueDeclaration&&(m.valueDeclaration=o.valueDeclaration),p.members&&(m.members=new Map(p.members)),o.exports&&(m.exports=new Map(o.exports)),m}function GP(o,p,m,v){var E;if(o.flags&1536){let D=Zg(o).get(p),R=O_(D,v),K=(E=io(o).typeOnlyExportStarMap)==null?void 0:E.get(p);return P0(m,D,R,!1,K,p),R}}function Xx(o,p){if(o.flags&3){let m=o.valueDeclaration.type;if(m)return O_(vc(Sa(m),p))}}function cw(o,p,m=!1){var v;let E=Ume(o)||o.moduleSpecifier,D=Nm(o,E),R=!no(p)&&p.propertyName||p.name;if(!ct(R)&&R.kind!==11)return;let K=YI(R),ce=eT(D,E,!1,K==="default"&&Oe);if(ce&&(K||R.kind===11)){if(bG(D))return D;let fe;D&&D.exports&&D.exports.get("export=")?fe=vc(di(ce),K,!0):fe=Xx(ce,K),fe=O_(fe,m);let Ue=GP(ce,K,p,m);if(Ue===void 0&&K==="default"){let yt=(v=D.declarations)==null?void 0:v.find(Ta);(zC(E,D)||sw(yt,D,m,E))&&(Ue=vg(D,m)||O_(D,m))}let Me=Ue&&fe&&Ue!==fe?_f(fe,Ue):Ue||fe;return Yk(p)&&zC(E,D)&&K!=="default"?gt(R,x.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,tE[ae]):Me||z3(D,ce,o,R),Me}}function z3(o,p,m,v){var E;let D=$E(o,m),R=du(v),K=ct(v)?G$e(v,p):void 0;if(K!==void 0){let se=Ua(K),ce=gt(v,x._0_has_no_exported_member_named_1_Did_you_mean_2,D,R,se);K.valueDeclaration&&ac(ce,xi(K.valueDeclaration,x._0_is_declared_here,se))}else(E=o.exports)!=null&&E.has("default")?gt(v,x.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,D,R):Yx(m,v,R,o,D)}function Yx(o,p,m,v,E){var D,R;let K=(R=(D=Ci(v.valueDeclaration,vb))==null?void 0:D.locals)==null?void 0:R.get(YI(p)),se=v.exports;if(K){let ce=se?.get("export=");if(ce)Pe(ce,K)?TM(o,p,m,E):gt(p,x.Module_0_has_no_exported_member_1,E,m);else{let fe=se?wt(Hje(se),Me=>!!Pe(Me,K)):void 0,Ue=fe?gt(p,x.Module_0_declares_1_locally_but_it_is_exported_as_2,E,m,Ua(fe)):gt(p,x.Module_0_declares_1_locally_but_it_is_not_exported,E,m);K.declarations&&ac(Ue,...Cr(K.declarations,(Me,yt)=>xi(Me,yt===0?x._0_is_declared_here:x.and_here,m)))}}else gt(p,x.Module_0_has_no_exported_member_1,E,m)}function TM(o,p,m,v){if(ae>=5){let E=kS(Q)?x._0_can_only_be_imported_by_using_a_default_import:x._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;gt(p,E,m)}else if(Ei(o)){let E=kS(Q)?x._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:x._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;gt(p,E,m)}else{let E=kS(Q)?x._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:x._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;gt(p,E,m,m,v)}}function c7(o,p){if(Xm(o)&&bb(o.propertyName||o.name)){let R=tv(o),K=R&&Nm(o,R);if(K)return qC(K,o,p)}let m=Vc(o)?bS(o):o.parent.parent.parent,v=l7(m),E=cw(m,v||o,p),D=o.propertyName||o.name;return v&&E&&ct(D)?O_(vc(di(E),D.escapedText),p):(P0(o,void 0,E,!1),E)}function l7(o){if(Oo(o)&&o.initializer&&no(o.initializer))return o.initializer}function Cq(o,p){if(gv(o.parent)){let m=vg(o.parent.symbol,p);return P0(o,void 0,m,!1),m}}function u7(o,p,m){let v=o.propertyName||o.name;if(bb(v)){let D=tv(o),R=D&&Nm(o,D);if(R)return qC(R,o,!!m)}let E=o.parent.parent.moduleSpecifier?cw(o.parent.parent,o,m):v.kind===11?void 0:jp(v,p,!1,m);return P0(o,void 0,E,!1),E}function lw(o,p){let m=Xu(o)?o.expression:o.right,v=_2(m,p);return P0(o,void 0,v,!1),v}function _2(o,p){if(w_(o))return Bp(o).symbol;if(!uh(o)&&!ru(o))return;let m=jp(o,901119,!0,p);return m||(Bp(o),Ki(o).resolvedSymbol)}function EM(o,p){if(wi(o.parent)&&o.parent.left===o&&o.parent.operatorToken.kind===64)return _2(o.parent.right,p)}function uw(o,p=!1){switch(o.kind){case 272:case 261:return a7(o,p);case 274:return BE(o,p);case 275:return Zx(o,p);case 281:return JC(o,p);case 277:case 209:return c7(o,p);case 282:return u7(o,901119,p);case 278:case 227:return lw(o,p);case 271:return Cq(o,p);case 305:return jp(o.name,901119,!0,p);case 304:return _2(o.initializer,p);case 213:case 212:return EM(o,p);default:return $.fail()}}function q3(o,p=901119){return o?(o.flags&(2097152|p))===2097152||!!(o.flags&2097152&&o.flags&67108864):!1}function O_(o,p){return!p&&q3(o)?df(o):o}function df(o){$.assert((o.flags&2097152)!==0,"Should only get Alias here.");let p=io(o);if(p.aliasTarget)p.aliasTarget===et&&(p.aliasTarget=ye);else{p.aliasTarget=et;let m=Qh(o);if(!m)return $.fail();let v=uw(m);p.aliasTarget===et?p.aliasTarget=v||ye:gt(m,x.Circular_definition_of_import_alias_0,Ua(o))}return p.aliasTarget}function p7(o){if(io(o).aliasTarget!==et)return df(o)}function Zh(o,p,m){let v=p&&Fv(o),E=v&&P_(v),D=v&&(E?Nm(v.moduleSpecifier,v.moduleSpecifier,!0):df(v.symbol)),R=E&&D?VS(D):void 0,K=m?0:o.flags,se;for(;o.flags&2097152;){let ce=Wt(df(o));if(!E&&ce===D||R?.get(ce.escapedName)===ce)break;if(ce===ye)return-1;if(ce===o||se?.has(ce))break;ce.flags&2097152&&(se?se.add(ce):se=new Set([o,ce])),K|=ce.flags,o=ce}return K}function P0(o,p,m,v,E,D){if(!o||no(o))return!1;let R=$i(o);if(cE(o)){let se=io(R);return se.typeOnlyDeclaration=o,!0}if(E){let se=io(R);return se.typeOnlyDeclaration=E,R.escapedName!==D&&(se.typeOnlyExportStarName=D),!0}let K=io(R);return HP(K,p,v)||HP(K,m,v)}function HP(o,p,m){var v;if(p&&(o.typeOnlyDeclaration===void 0||m&&o.typeOnlyDeclaration===!1)){let E=((v=p.exports)==null?void 0:v.get("export="))??p,D=E.declarations&&wt(E.declarations,cE);o.typeOnlyDeclaration=D??io(E).typeOnlyDeclaration??!1}return!!o.typeOnlyDeclaration}function Fv(o,p){var m;if(!(o.flags&2097152))return;let v=io(o);if(v.typeOnlyDeclaration===void 0){v.typeOnlyDeclaration=!1;let E=O_(o);P0((m=o.declarations)==null?void 0:m[0],Qh(o)&&gTe(o),E,!0)}if(p===void 0)return v.typeOnlyDeclaration||void 0;if(v.typeOnlyDeclaration){let E=v.typeOnlyDeclaration.kind===279?O_(VS(v.typeOnlyDeclaration.symbol.parent).get(v.typeOnlyExportStarName||o.escapedName)):df(v.typeOnlyDeclaration.symbol);return Zh(E)&p?v.typeOnlyDeclaration:void 0}}function VC(o,p){return o.kind===80&&FU(o)&&(o=o.parent),o.kind===80||o.parent.kind===167?jp(o,1920,!1,p):($.assert(o.parent.kind===272),jp(o,901119,!1,p))}function $E(o,p){return o.parent?$E(o.parent,p)+"."+Ua(o):Ua(o,p,void 0,36)}function _7(o){for(;dh(o.parent);)o=o.parent;return o}function Dq(o){let p=_h(o),m=$t(p,p,111551,void 0,!0);if(m){for(;dh(p.parent);){let v=di(m);if(m=vc(v,p.parent.right.escapedText),!m)return;p=p.parent}return m}}function jp(o,p,m,v,E){if(Op(o))return;let D=1920|(Ei(o)?p&111551:0),R;if(o.kind===80){let K=p===D||fu(o)?x.Cannot_find_namespace_0:qkt(_h(o)),se=Ei(o)&&!fu(o)?kM(o,p):void 0;if(R=cl($t(E||o,o,p,m||se?void 0:K,!0,!1)),!R)return cl(se)}else if(o.kind===167||o.kind===212){let K=o.kind===167?o.left:o.expression,se=o.kind===167?o.right:o.name,ce=jp(K,D,m,!1,E);if(!ce||Op(se))return;if(ce===ye)return ce;if(ce.valueDeclaration&&Ei(ce.valueDeclaration)&&km(Q)!==100&&Oo(ce.valueDeclaration)&&ce.valueDeclaration.initializer&&BDt(ce.valueDeclaration.initializer)){let fe=ce.valueDeclaration.initializer.arguments[0],Ue=Nm(fe,fe);if(Ue){let Me=vg(Ue);Me&&(ce=Me)}}if(R=cl(Nf(Zg(ce),se.escapedText,p)),!R&&ce.flags&2097152&&(R=cl(Nf(Zg(df(ce)),se.escapedText,p))),!R){if(!m){let fe=$E(ce),Ue=du(se),Me=G$e(se,ce);if(Me){gt(se,x._0_has_no_exported_member_named_1_Did_you_mean_2,fe,Ue,Ua(Me));return}let yt=dh(o)&&_7(o);if(br&&p&788968&&yt&&!hL(yt.parent)&&Dq(yt)){gt(yt,x._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Rg(yt));return}if(p&1920&&dh(o.parent)){let Xt=cl(Nf(Zg(ce),se.escapedText,788968));if(Xt){gt(o.parent.right,x.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ua(Xt),oa(o.parent.right.escapedText));return}}gt(se,x.Namespace_0_has_no_exported_member_1,fe,Ue)}return}}else $.assertNever(o,"Unknown entity name kind.");return!fu(o)&&uh(o)&&(R.flags&2097152||o.parent.kind===278)&&P0(Zme(o),R,void 0,!0),R.flags&p||v?R:df(R)}function kM(o,p){if(Txe(o.parent)){let m=J3(o.parent);if(m)return $t(m,o,p,void 0,!0)}}function J3(o){if(fn(o,E=>LR(E)||E.flags&16777216?n1(E):"quit"))return;let m=iP(o);if(m&&af(m)&&zG(m.expression)){let E=$i(m.expression.left);if(E)return KP(E)}if(m&&bu(m)&&zG(m.parent)&&af(m.parent.parent)){let E=$i(m.parent.left);if(E)return KP(E)}if(m&&(r1(m)||td(m))&&wi(m.parent.parent)&&m_(m.parent.parent)===6){let E=$i(m.parent.parent.left);if(E)return KP(E)}let v=fA(o);if(v&&Rs(v)){let E=$i(v);return E&&E.valueDeclaration}}function KP(o){let p=o.parent.valueDeclaration;return p?(yU(p)?zO(p):j4(p)?vU(p):void 0)||p:void 0}function d7(o){let p=o.valueDeclaration;if(!p||!Ei(p)||o.flags&524288||_A(p,!1))return;let m=Oo(p)?vU(p):zO(p);if(m){let v=Xy(m);if(v)return nUe(v,o)}}function Nm(o,p,m){let E=km(Q)===1?x.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:x.Cannot_find_module_0_or_its_corresponding_type_declarations;return yg(o,p,m?void 0:E,m)}function yg(o,p,m,v=!1,E=!1){return Sl(p)?V3(o,p.text,m,v?void 0:p,E):void 0}function V3(o,p,m,v,E=!1){var D,R,K,se,ce,fe,Ue,Me,yt,Jt,Xt,kr;if(v&&Ca(p,"@types/")){let pa=x.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Ps=Mk(p,"@types/");gt(v,pa,Ps,p)}let on=z2t(p,!0);if(on)return on;let Hn=Pn(o),fi=Sl(o)?o:((D=I_(o)?o:o.parent&&I_(o.parent)&&o.parent.name===o?o.parent:void 0)==null?void 0:D.name)||((R=jT(o)?o:void 0)==null?void 0:R.argument.literal)||(Oo(o)&&o.initializer&&$h(o.initializer,!0)?o.initializer.arguments[0]:void 0)||((K=fn(o,Bh))==null?void 0:K.arguments[0])||((se=fn(o,jf(fp,OS,P_)))==null?void 0:se.moduleSpecifier)||((ce=fn(o,pA))==null?void 0:ce.moduleReference.expression),sn=fi&&Sl(fi)?t.getModeForUsageLocation(Hn,fi):t.getDefaultResolutionModeForFile(Hn),rn=km(Q),vi=(fe=t.getResolvedModule(Hn,p,sn))==null?void 0:fe.resolvedModule,wo=v&&vi&&j0e(Q,vi,Hn),Fa=vi&&(!wo||wo===x.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&t.getSourceFile(vi.resolvedFileName);if(Fa){if(wo&>(v,wo,p,vi.resolvedFileName),vi.resolvedUsingTsExtension&&sf(p)){let pa=((Ue=fn(o,fp))==null?void 0:Ue.importClause)||fn(o,jf(gd,P_));(v&&pa&&!pa.isTypeOnly||fn(o,Bh))&>(v,x.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,ho($.checkDefined(Qre(p))))}else if(vi.resolvedUsingTsExtension&&!ML(Q,Hn.fileName)){let pa=((Me=fn(o,fp))==null?void 0:Me.importClause)||fn(o,jf(gd,P_));if(v&&!(pa?.isTypeOnly||fn(o,AS))){let Ps=$.checkDefined(Qre(p));gt(v,x.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Ps)}}else if(Q.rewriteRelativeImportExtensions&&!(o.flags&33554432)&&!sf(p)&&!jT(o)&&!kPe(o)){let pa=JG(p,Q);if(!vi.resolvedUsingTsExtension&&pa)gt(v,x.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,Vk(za(Hn.fileName,t.getCurrentDirectory()),vi.resolvedFileName,UT(t)));else if(vi.resolvedUsingTsExtension&&!pa&&sP(Fa,t))gt(v,x.This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path,nE(p));else if(vi.resolvedUsingTsExtension&&pa){let Ps=(yt=t.getRedirectFromSourceFile(Fa.path))==null?void 0:yt.resolvedRef;if(Ps){let El=!t.useCaseSensitiveFileNames(),qa=t.getCommonSourceDirectory(),rp=S3(Ps.commandLine,El),Zp=lh(qa,rp,El),Rm=lh(Q.outDir||qa,Ps.commandLine.options.outDir||rp,El);Zp!==Rm&>(v,x.This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files)}}}if(Fa.symbol){if(v&&vi.isExternalLibraryImport&&!JU(vi.extension)&&pw(!1,v,Hn,sn,vi,p),v&&(ae===100||ae===101)){let pa=Hn.impliedNodeFormat===1&&!fn(o,Bh)||!!fn(o,gd),Ps=fn(o,El=>AS(El)||P_(El)||fp(El)||OS(El));if(pa&&Fa.impliedNodeFormat===99&&!n3e(Ps))if(fn(o,gd))gt(v,x.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,p);else{let El,qa=Bx(Hn.fileName);(qa===".ts"||qa===".js"||qa===".tsx"||qa===".jsx")&&(El=yme(Hn));let rp=Ps?.kind===273&&((Jt=Ps.importClause)!=null&&Jt.isTypeOnly)?x.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:Ps?.kind===206?x.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:x.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead;il.add(Nx(Pn(v),v,ws(El,rp,p)))}}return cl(Fa.symbol)}v&&m&&!uge(v)&>(v,x.File_0_is_not_a_module,Fa.fileName);return}if(Wh){let pa=GD(Wh,Ps=>Ps.pattern,p);if(pa){let Ps=rt&&rt.get(p);return cl(Ps||pa.symbol)}}if(!v)return;if(vi&&!JU(vi.extension)&&wo===void 0||wo===x.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(E){let pa=x.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;gt(v,pa,p,vi.resolvedFileName)}else pw(Fe&&!!m,v,Hn,sn,vi,p);return}if(m){if(vi){let pa=t.getRedirectFromSourceFile(vi.resolvedFileName);if(pa?.outputDts){gt(v,x.Output_file_0_has_not_been_built_from_source_file_1,pa.outputDts,vi.resolvedFileName);return}}if(wo)gt(v,wo,p,vi.resolvedFileName);else{let pa=ch(p)&&!eA(p),Ps=rn===3||rn===99;if(!_P(Q)&&Au(p,".json")&&rn!==1&&ane(Q))gt(v,x.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,p);else if(sn===99&&Ps&&pa){let El=za(p,mo(Hn.path)),qa=(Xt=eh.find(([rp,Zp])=>t.fileExists(El+rp)))==null?void 0:Xt[1];qa?gt(v,x.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,p+qa):gt(v,x.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((kr=t.getResolvedModule(Hn,p,sn))!=null&&kr.alternateResult){let El=rre(Hn,t,p,sn,p);Y1(!0,v,ws(El,m,p))}else gt(v,m,p)}}return;function ho(pa){let Ps=xH(p,pa);if(gH(ae)||sn===99){let El=sf(p)&&ML(Q);return Ps+(pa===".mts"||pa===".d.mts"?El?".mts":".mjs":pa===".cts"||pa===".d.mts"?El?".cts":".cjs":El?".ts":".js")}return Ps}}function pw(o,p,m,v,{packageId:E,resolvedFileName:D},R){if(uge(p))return;let K;!vt(R)&&E&&(K=rre(m,t,R,v,E.name)),Y1(o,p,ws(K,x.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,R,D))}function vg(o,p){if(o?.exports){let m=O_(o.exports.get("export="),p),v=W3(cl(m),cl(o));return cl(v)||o}}function W3(o,p){if(!o||o===ye||o===p||p.exports.size===1||o.flags&2097152)return o;let m=io(o);if(m.cjsExportMerged)return m.cjsExportMerged;let v=o.flags&33554432?o:JP(o);return v.flags=v.flags|512,v.exports===void 0&&(v.exports=ic()),p.exports.forEach((E,D)=>{D!=="export="&&v.exports.set(D,v.exports.has(D)?w0(v.exports.get(D),E):E)}),v===o&&(io(v).resolvedExports=void 0,io(v).resolvedMembers=void 0),io(v).cjsExportMerged=v,m.cjsExportMerged=v}function eT(o,p,m,v){var E;let D=vg(o,m);if(!m&&D){if(!v&&!(D.flags&1539)&&!Qu(D,308)){let se=ae>=5?"allowSyntheticDefaultImports":"esModuleInterop";return gt(p,x.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,se),D}let R=p.parent,K=fp(R)&&HR(R);if(K||Bh(R)){let se=Bh(R)?R.arguments[0]:R.moduleSpecifier,ce=di(D),fe=MDt(ce,D,o,se);if(fe)return G3(D,fe,R);let Ue=(E=o?.declarations)==null?void 0:E.find(Ta),Me=u2(se),yt;if(K&&Ue&&102<=ae&&ae<=199&&Me===1&&t.getImpliedNodeFormatForEmit(Ue)===99&&(yt=UC(D,"module.exports",K,m)))return!v&&!(D.flags&1539)&>(p,x.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,"esModuleInterop"),kS(Q)&&f7(ce)?G3(yt,ce,R):yt;let Jt=Ue&&JS(Me,t.getImpliedNodeFormatForEmit(Ue));if((kS(Q)||Jt)&&(f7(ce)||vc(ce,"default",!0)||Jt)){let Xt=ce.flags&3670016?jDt(ce,D,o,se):iUe(D,D.parent);return G3(D,Xt,R)}}}return D}function f7(o){return Pt(gse(o,0))||Pt(gse(o,1))}function G3(o,p,m){let v=zc(o.flags,o.escapedName);v.declarations=o.declarations?o.declarations.slice():[],v.parent=o.parent,v.links.target=o,v.links.originatingImport=m,o.valueDeclaration&&(v.valueDeclaration=o.valueDeclaration),o.constEnumOnlyModule&&(v.constEnumOnlyModule=!0),o.members&&(v.members=new Map(o.members)),o.exports&&(v.exports=new Map(o.exports));let E=jv(p);return v.links.type=mp(v,E.members,j,j,E.indexInfos),v}function rv(o){return o.exports.get("export=")!==void 0}function m7(o){return Hje(VS(o))}function CM(o){let p=m7(o),m=vg(o);if(m!==o){let v=di(m);UE(v)&&En(p,$l(v))}return p}function h7(o,p){VS(o).forEach((E,D)=>{fw(D)||p(E,D)});let v=vg(o);if(v!==o){let E=di(v);UE(E)&&Pbr(E,(D,R)=>{p(D,R)})}}function H3(o,p){let m=VS(p);if(m)return m.get(o)}function g7(o,p){let m=H3(o,p);if(m)return m;let v=vg(p);if(v===p)return;let E=di(v);return UE(E)?vc(E,o):void 0}function UE(o){return!(o.flags&402784252||ro(o)&1||L0(o)||Gc(o))}function Zg(o){return o.flags&6256?Fje(o,"resolvedExports"):o.flags&1536?VS(o):o.exports||G}function VS(o){let p=io(o);if(!p.resolvedExports){let{exports:m,typeOnlyExportStarMap:v}=Q3(o);p.resolvedExports=m,p.typeOnlyExportStarMap=v}return p.resolvedExports}function K3(o,p,m,v){p&&p.forEach((E,D)=>{if(D==="default")return;let R=o.get(D);if(!R)o.set(D,E),m&&v&&m.set(D,{specifierText:Sp(v.moduleSpecifier)});else if(m&&v&&R&&O_(R)!==O_(E)){let K=m.get(D);K.exportsWithDuplicate?K.exportsWithDuplicate.push(v):K.exportsWithDuplicate=[v]}})}function Q3(o){let p=[],m,v=new Set;o=vg(o);let E=D(o)||G;return m&&v.forEach(R=>m.delete(R)),{exports:E,typeOnlyExportStarMap:m};function D(R,K,se){if(!se&&R?.exports&&R.exports.forEach((Ue,Me)=>v.add(Me)),!(R&&R.exports&&Zc(p,R)))return;let ce=new Map(R.exports),fe=R.exports.get("__export");if(fe){let Ue=ic(),Me=new Map;if(fe.declarations)for(let yt of fe.declarations){let Jt=Nm(yt,yt.moduleSpecifier),Xt=D(Jt,yt,se||yt.isTypeOnly);K3(Ue,Xt,Me,yt)}Me.forEach(({exportsWithDuplicate:yt},Jt)=>{if(!(Jt==="export="||!(yt&&yt.length)||ce.has(Jt)))for(let Xt of yt)il.add(xi(Xt,x.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Me.get(Jt).specifierText,oa(Jt)))}),K3(ce,Ue)}return K?.isTypeOnly&&(m??(m=new Map),ce.forEach((Ue,Me)=>m.set(Me,K))),ce}}function cl(o){let p;return o&&o.mergeId&&(p=O3[o.mergeId])?p:o}function $i(o){return cl(o.symbol&&pxe(o.symbol))}function Xy(o){return gv(o)?$i(o):void 0}function Od(o){return cl(o.parent&&pxe(o.parent))}function _w(o){var p,m;return(((p=o.valueDeclaration)==null?void 0:p.kind)===220||((m=o.valueDeclaration)==null?void 0:m.kind)===219)&&Xy(o.valueDeclaration.parent)||o}function Z3(o,p){let m=Pn(p),v=hl(m),E=io(o),D;if(E.extendedContainersByFile&&(D=E.extendedContainersByFile.get(v)))return D;if(m&&m.imports){for(let K of m.imports){if(fu(K))continue;let se=Nm(p,K,!0);!se||!B(se,o)||(D=jt(D,se))}if(te(D))return(E.extendedContainersByFile||(E.extendedContainersByFile=new Map)).set(v,D),D}if(E.extendedContainers)return E.extendedContainers;let R=t.getSourceFiles();for(let K of R){if(!yd(K))continue;let se=$i(K);B(se,o)&&(D=jt(D,se))}return E.extendedContainers=D||j}function QP(o,p,m){let v=Od(o);if(v&&!(o.flags&262144))return se(v);let E=Wn(o.declarations,fe=>{if(!Gm(fe)&&fe.parent){if(XP(fe.parent))return $i(fe.parent);if(wS(fe.parent)&&fe.parent.parent&&vg($i(fe.parent.parent))===o)return $i(fe.parent.parent)}if(w_(fe)&&wi(fe.parent)&&fe.parent.operatorToken.kind===64&&wu(fe.parent.left)&&ru(fe.parent.left.expression))return Fx(fe.parent.left)||q4(fe.parent.left.expression)?$i(Pn(fe)):(Bp(fe.parent.left.expression),Ki(fe.parent.left.expression).resolvedSymbol)});if(!te(E))return;let D=Wn(E,fe=>B(fe,o)?fe:void 0),R=[],K=[];for(let fe of D){let[Ue,...Me]=se(fe);R=jt(R,Ue),K=En(K,Me)}return go(R,K);function se(fe){let Ue=Wn(fe.declarations,ce),Me=p&&Z3(o,p),yt=dw(fe,m);if(p&&fe.flags&nv(m)&&qE(fe,p,1920,!1))return jt(go(go([fe],Ue),Me),yt);let Jt=!(fe.flags&nv(m))&&fe.flags&788968&&Tu(fe).flags&524288&&m===111551?zE(p,kr=>Ad(kr,on=>{if(on.flags&nv(m)&&di(on)===Tu(fe))return on})):void 0,Xt=Jt?[Jt,...Ue,fe]:[...Ue,fe];return Xt=jt(Xt,yt),Xt=En(Xt,Me),Xt}function ce(fe){return v&&X3(fe,v)}}function dw(o,p){let m=!!te(o.declarations)&&To(o.declarations);if(p&111551&&m&&m.parent&&Oo(m.parent)&&(Lc(m)&&m===m.parent.initializer||fh(m)&&m===m.parent.type))return $i(m.parent)}function X3(o,p){let m=eN(o),v=m&&m.exports&&m.exports.get("export=");return v&&Pe(v,p)?m:void 0}function B(o,p){if(o===Od(p))return p;let m=o.exports&&o.exports.get("export=");if(m&&Pe(m,p))return o;let v=Zg(o),E=v.get(p.escapedName);return E&&Pe(E,p)?E:Ad(v,D=>{if(Pe(D,p))return D})}function Pe(o,p){if(cl(O_(cl(o)))===cl(O_(cl(p))))return o}function Wt(o){return cl(o&&(o.flags&1048576)!==0&&o.exportSymbol||o)}function ln(o,p){return!!(o.flags&111551||o.flags&2097152&&Zh(o,!p)&111551)}function Fo(o){var p;let m=new f(Qn,o);return g++,m.id=g,(p=hi)==null||p.recordType(m),m}function na(o,p){let m=Fo(o);return m.symbol=p,m}function Ya(o){return new f(Qn,o)}function ra(o,p,m=0,v){Wc(p,v);let E=Fo(o);return E.intrinsicName=p,E.debugIntrinsicName=v,E.objectFlags=m|524288|2097152|33554432|16777216,E}function Wc(o,p){let m=`${o},${p??""}`;ar.has(m)&&$.fail(`Duplicate intrinsic type name ${o}${p?` (${p})`:""}; you may need to pass a name to createIntrinsicType.`),ar.add(m)}function F_(o,p){let m=na(524288,p);return m.objectFlags=o,m.members=void 0,m.properties=void 0,m.callSignatures=void 0,m.constructSignatures=void 0,m.indexInfos=void 0,m}function cm(){return Do(so(A8e.keys(),Sg))}function bh(o){return na(262144,o)}function fw(o){return o.charCodeAt(0)===95&&o.charCodeAt(1)===95&&o.charCodeAt(2)!==95&&o.charCodeAt(2)!==64&&o.charCodeAt(2)!==35}function xh(o){let p;return o.forEach((m,v)=>{WC(m,v)&&(p||(p=[])).push(m)}),p||j}function WC(o,p){return!fw(p)&&ln(o)}function y7(o){let p=xh(o),m=gxe(o);return m?go(p,[m]):p}function y1(o,p,m,v,E){let D=o;return D.members=p,D.properties=j,D.callSignatures=m,D.constructSignatures=v,D.indexInfos=E,p!==G&&(D.properties=xh(p)),D}function mp(o,p,m,v,E){return y1(F_(16,o),p,m,v,E)}function Y3(o){if(o.constructSignatures.length===0)return o;if(o.objectTypeWithoutAbstractConstructSignatures)return o.objectTypeWithoutAbstractConstructSignatures;let p=yr(o.constructSignatures,v=>!(v.flags&4));if(o.constructSignatures===p)return o;let m=mp(o.symbol,o.members,o.callSignatures,Pt(p)?p:j,o.indexInfos);return o.objectTypeWithoutAbstractConstructSignatures=m,m.objectTypeWithoutAbstractConstructSignatures=m,m}function zE(o,p){let m;for(let v=o;v;v=v.parent){if(vb(v)&&v.locals&&!uE(v)&&(m=p(v.locals,void 0,!0,v)))return m;switch(v.kind){case 308:if(!Lg(v))break;case 268:let E=$i(v);if(m=p(E?.exports||G,void 0,!0,v))return m;break;case 264:case 232:case 265:let D;if(($i(v).members||G).forEach((R,K)=>{R.flags&788968&&(D||(D=ic())).set(K,R)}),D&&(m=p(D,void 0,!1,v)))return m;break}}return p(It,void 0,!0)}function nv(o){return o===111551?111551:1920}function qE(o,p,m,v,E=new Map){if(!(o&&!ase(o)))return;let D=io(o),R=D.accessibleChainCache||(D.accessibleChainCache=new Map),K=zE(p,(on,Hn,fi,sn)=>sn),se=`${v?0:1}|${K?hl(K):0}|${m}`;if(R.has(se))return R.get(se);let ce=hc(o),fe=E.get(ce);fe||E.set(ce,fe=[]);let Ue=zE(p,Me);return R.set(se,Ue),Ue;function Me(on,Hn,fi){if(!Zc(fe,on))return;let sn=Xt(on,Hn,fi);return fe.pop(),sn}function yt(on,Hn){return!ZP(on,p,Hn)||!!qE(on.parent,p,nv(Hn),v,E)}function Jt(on,Hn,fi){return(o===(Hn||on)||cl(o)===cl(Hn||on))&&!Pt(on.declarations,XP)&&(fi||yt(cl(on),m))}function Xt(on,Hn,fi){return Jt(on.get(o.escapedName),void 0,Hn)?[o]:Ad(on,rn=>{if(rn.flags&2097152&&rn.escapedName!=="export="&&rn.escapedName!=="default"&&!(ene(rn)&&p&&yd(Pn(p)))&&(!v||Pt(rn.declarations,pA))&&(!fi||!Pt(rn.declarations,A6e))&&(Hn||!Qu(rn,282))){let vi=df(rn),wo=kr(rn,vi,Hn);if(wo)return wo}if(rn.escapedName===o.escapedName&&rn.exportSymbol&&Jt(cl(rn.exportSymbol),void 0,Hn))return[o]})||(on===It?kr(_t,_t,Hn):void 0)}function kr(on,Hn,fi){if(Jt(on,Hn,fi))return[on];let sn=Zg(Hn),rn=sn&&Me(sn,!0);if(rn&&yt(on,nv(m)))return[on].concat(rn)}}function ZP(o,p,m){let v=!1;return zE(p,E=>{let D=cl(E.get(o.escapedName));if(!D)return!1;if(D===o)return!0;let R=D.flags&2097152&&!Qu(D,282);return D=R?df(D):D,(R?Zh(D):D.flags)&m?(v=!0,!0):!1}),v}function ase(o){if(o.declarations&&o.declarations.length){for(let p of o.declarations)switch(p.kind){case 173:case 175:case 178:case 179:continue;default:return!1}return!0}return!1}function Aq(o,p){return S7(o,p,788968,!1,!0).accessibility===0}function v7(o,p){return S7(o,p,111551,!1,!0).accessibility===0}function wq(o,p,m){return S7(o,p,m,!1,!1).accessibility===0}function JQ(o,p,m,v,E,D){if(!te(o))return;let R,K=!1;for(let se of o){let ce=qE(se,p,v,!1);if(ce){R=se;let Me=tN(ce[0],E);if(Me)return Me}if(D&&Pt(se.declarations,XP)){if(E){K=!0;continue}return{accessibility:0}}let fe=QP(se,p,v),Ue=JQ(fe,p,m,m===se?nv(v):v,E,D);if(Ue)return Ue}if(K)return{accessibility:0};if(R)return{accessibility:1,errorSymbolName:Ua(m,p,v),errorModuleName:R!==m?Ua(R,p,1920):void 0}}function GC(o,p,m,v){return S7(o,p,m,v,!0)}function S7(o,p,m,v,E){if(o&&p){let D=JQ([o],p,o,m,v,E);if(D)return D;let R=X(o.declarations,eN);if(R){let K=eN(p);if(R!==K)return{accessibility:2,errorSymbolName:Ua(o,p,m),errorModuleName:Ua(R),errorNode:Ei(p)?p:void 0}}return{accessibility:1,errorSymbolName:Ua(o,p,m)}}return{accessibility:0}}function eN(o){let p=fn(o,sse);return p&&$i(p)}function sse(o){return Gm(o)||o.kind===308&&Lg(o)}function XP(o){return sre(o)||o.kind===308&&Lg(o)}function tN(o,p){let m;if(!ht(yr(o.declarations,D=>D.kind!==80),v))return;return{accessibility:0,aliasesToMakeVisible:m};function v(D){var R,K;if(!Bb(D)){let se=I0(D);if(se&&!ko(se,32)&&Bb(se.parent))return E(D,se);if(Oo(D)&&h_(D.parent.parent)&&!ko(D.parent.parent,32)&&Bb(D.parent.parent.parent))return E(D,D.parent.parent);if(cre(D)&&!ko(D,32)&&Bb(D.parent))return E(D,D);if(Vc(D)){if(o.flags&2097152&&Ei(D)&&((R=D.parent)!=null&&R.parent)&&Oo(D.parent.parent)&&((K=D.parent.parent.parent)!=null&&K.parent)&&h_(D.parent.parent.parent.parent)&&!ko(D.parent.parent.parent.parent,32)&&D.parent.parent.parent.parent.parent&&Bb(D.parent.parent.parent.parent.parent))return E(D,D.parent.parent.parent.parent);if(o.flags&2){let ce=Pr(D);if(ce.kind===170)return!1;let fe=ce.parent.parent;return fe.kind!==244?!1:ko(fe,32)?!0:Bb(fe.parent)?E(D,fe):!1}}return!1}return!0}function E(D,R){return p&&(Ki(D).isVisible=!0,m=Jl(m,R)),!0}}function Iq(o){let p;return o.parent.kind===187||o.parent.kind===234&&!vS(o.parent)||o.parent.kind===168||o.parent.kind===183&&o.parent.parameterName===o?p=1160127:o.kind===167||o.kind===212||o.parent.kind===272||o.parent.kind===167&&o.parent.left===o||o.parent.kind===212&&o.parent.expression===o||o.parent.kind===213&&o.parent.expression===o?p=1920:p=788968,p}function b7(o,p,m=!0){let v=Iq(o),E=_h(o),D=$t(p,E.escapedText,v,void 0,!1);return D&&D.flags&262144&&v&788968?{accessibility:0}:!D&&pC(E)&&GC($i(Hm(E,!1,!1)),E,v,!1).accessibility===0?{accessibility:0}:D?tN(D,m)||{accessibility:1,errorSymbolName:Sp(E),errorNode:E}:{accessibility:3,errorSymbolName:Sp(E),errorNode:E}}function Ua(o,p,m,v=4,E){let D=70221824,R=0;v&2&&(D|=128),v&1&&(D|=512),v&8&&(D|=16384),v&32&&(R|=4),v&16&&(R|=1);let K=v&4?Le.symbolToNode:Le.symbolToEntityName;return E?se(E).getText():jR(se);function se(ce){let fe=K(o,m,p,D,R),Ue=p?.kind===308?EOe():wP(),Me=p&&Pn(p);return Ue.writeNode(4,fe,Me,ce),ce}}function HC(o,p,m=0,v,E,D,R,K){return E?se(E).getText():jR(se);function se(ce){let fe;m&262144?fe=v===1?186:185:fe=v===1?181:180;let Ue=Le.signatureToSignatureDeclaration(o,fe,p,YP(m)|70221824|512,void 0,void 0,D,R,K),Me=b0e(),yt=p&&Pn(p);return Me.writeNode(4,Ue,yt,uhe(ce)),ce}}function ri(o,p,m=1064960,v=nH(""),E,D,R){let K=!E&&Q.noErrorTruncation||m&1,se=Le.typeToTypeNode(o,p,YP(m)|70221824|(K?1:0),void 0,void 0,E,D,R);if(se===void 0)return $.fail("should always get typenode");let ce=o!==xr?wP():TOe(),fe=p&&Pn(p);ce.writeNode(4,se,fe,v);let Ue=v.getText(),Me=E||(K?hme*2:cU*2);return Me&&Ue&&Ue.length>=Me?Ue.substr(0,Me-3)+"...":Ue}function Pq(o,p){let m=AM(o.symbol)?ri(o,o.symbol.valueDeclaration):ri(o),v=AM(p.symbol)?ri(p,p.symbol.valueDeclaration):ri(p);return m===v&&(m=DM(o),v=DM(p)),[m,v]}function DM(o){return ri(o,void 0,64)}function AM(o){return o&&!!o.valueDeclaration&&Vt(o.valueDeclaration)&&!r0(o.valueDeclaration)}function YP(o=0){return o&848330095}function VQ(o){return!!o.symbol&&!!(o.symbol.flags&32)&&(o===O0(o.symbol)||!!(o.flags&524288)&&!!(ro(o)&16777216))}function rN(o){return Sa(o)}function cse(){return{syntacticBuilderResolver:{evaluateEntityNameExpression:cwt,isExpandoFunctionDeclaration:wwt,hasLateBindableName:NM,shouldRemoveDeclaration(Xe,Te){return!(Xe.internalFlags&8&&ru(Te.name.expression)&&sv(Te.name).flags&1)},createRecoveryBoundary(Xe){return pa(Xe)},isDefinitelyReferenceToGlobalSymbolObject:Lb,getAllAccessorDeclarations:KUe,requiresAddingImplicitUndefined(Xe,Te,Lr){var Vr;switch(Xe.kind){case 173:case 172:case 349:Te??(Te=$i(Xe));let He=di(Te);return!!(Te.flags&4&&Te.flags&16777216&&sF(Xe)&&((Vr=Te.links)!=null&&Vr.mappedType)&&n2r(He));case 170:case 342:return Ace(Xe,Lr);default:$.assertNever(Xe)}},isOptionalParameter:eZ,isUndefinedIdentifierExpression(Xe){return B0(Xe)===ke},isEntityNameVisible(Xe,Te,Lr){return b7(Te,Xe.enclosingDeclaration,Lr)},serializeExistingTypeNode(Xe,Te,Lr){return Yh(Xe,Te,!!Lr)},serializeReturnTypeForSignature(Xe,Te,Lr){let Vr=Xe,He=t0(Te);Lr??(Lr=$i(Te));let lt=Vr.enclosingSymbolTypes.get(hc(Lr))??Oa(Tl(He),Vr.mapper);return Nc(Vr,He,lt)},serializeTypeOfExpression(Xe,Te){let Lr=Xe,Vr=Oa(ry(bwt(Te)),Lr.mapper);return kr(Vr,Lr)},serializeTypeOfDeclaration(Xe,Te,Lr){var Vr;let He=Xe;Lr??(Lr=$i(Te));let lt=(Vr=He.enclosingSymbolTypes)==null?void 0:Vr.get(hc(Lr));return lt===void 0&&(lt=Lr.flags&98304&&Te.kind===179?Oa(GE(Lr),He.mapper):Lr&&!(Lr.flags&133120)?Oa(Cw(di(Lr)),He.mapper):Et),Te&&(wa(Te)||Uy(Te))&&Ace(Te,He.enclosingDeclaration)&&(lt=nD(lt)),ui(Lr,He,lt)},serializeNameOfParameter(Xe,Te){return ha($i(Te),Te,Xe)},serializeEntityName(Xe,Te){let Lr=Xe,Vr=B0(Te,!0);if(Vr&&v7(Vr,Lr.enclosingDeclaration))return $0(Vr,Lr,1160127)},serializeTypeName(Xe,Te,Lr,Vr){return Rd(Xe,Te,Lr,Vr)},getJsDocPropertyOverride(Xe,Te,Lr){let Vr=Xe,He=ct(Lr.name)?Lr.name:Lr.name.right,lt=en(p(Vr,Te),He.escapedText);return lt&&Lr.typeExpression&&p(Vr,Lr.typeExpression.type)!==lt?kr(lt,Vr):void 0},enterNewScope(Xe,Te){if(Rs(Te)||TE(Te)){let Lr=t0(Te);return Ps(Xe,Te,Lr.parameters,Lr.typeParameters)}else{let Lr=yP(Te)?xBe(Te):[gw($i(Te.typeParameter))];return Ps(Xe,Te,void 0,Lr)}},markNodeReuse(Xe,Te,Lr){return m(Xe,Te,Lr)},trackExistingEntityName(Xe,Te){return yu(Te,Xe)},trackComputedName(Xe,Te){mi(Te,Xe.enclosingDeclaration,Xe)},getModuleSpecifierOverride(Xe,Te,Lr){let Vr=Xe;if(Vr.bundled||Vr.enclosingFile!==Pn(Lr)){let He=Lr.text,lt=He,Nt=Ki(Te).resolvedSymbol,fr=Te.isTypeOf?111551:788968,jr=Nt&&GC(Nt,Vr.enclosingDeclaration,fr,!1).accessibility===0&&fs(Nt,Vr,fr,!0)[0];if(jr&&LO(jr))He=y_(jr,Vr);else{let gr=XUe(Te);gr&&(He=y_(gr.symbol,Vr))}if(He.includes("/node_modules/")&&(Vr.encounteredError=!0,Vr.tracker.reportLikelyUnsafeImportRequiredError&&Vr.tracker.reportLikelyUnsafeImportRequiredError(He)),He!==lt)return He}},canReuseTypeNode(Xe,Te){return Lm(Xe,Te)},canReuseTypeNodeAnnotation(Xe,Te,Lr,Vr,He){var lt;let Nt=Xe;if(Nt.enclosingDeclaration===void 0)return!1;Vr??(Vr=$i(Te));let fr=(lt=Nt.enclosingSymbolTypes)==null?void 0:lt.get(hc(Vr));fr===void 0&&(Vr.flags&98304?fr=Te.kind===179?GE(Vr):Lq(Vr):G4(Te)?fr=Tl(t0(Te)):fr=di(Vr));let jr=rN(Lr);return si(jr)?!0:(He&&jr&&(jr=Om(jr,!wa(Te))),!!jr&&No(Te,fr,jr)&&hn(Lr,fr))}},typeToTypeNode:(Xe,Te,Lr,Vr,He,lt,Nt,fr)=>ce(Te,Lr,Vr,He,lt,Nt,jr=>kr(Xe,jr),fr),typePredicateToTypePredicateNode:(Xe,Te,Lr,Vr,He)=>ce(Te,Lr,Vr,He,void 0,void 0,lt=>Rm(Xe,lt)),serializeTypeForDeclaration:(Xe,Te,Lr,Vr,He,lt)=>ce(Lr,Vr,He,lt,void 0,void 0,Nt=>Ve.serializeTypeOfDeclaration(Xe,Te,Nt)),serializeReturnTypeForSignature:(Xe,Te,Lr,Vr,He)=>ce(Te,Lr,Vr,He,void 0,void 0,lt=>Ve.serializeReturnTypeForSignature(Xe,$i(Xe),lt)),serializeTypeForExpression:(Xe,Te,Lr,Vr,He)=>ce(Te,Lr,Vr,He,void 0,void 0,lt=>Ve.serializeTypeOfExpression(Xe,lt)),indexInfoToIndexSignatureDeclaration:(Xe,Te,Lr,Vr,He)=>ce(Te,Lr,Vr,He,void 0,void 0,lt=>Fa(Xe,lt,void 0)),signatureToSignatureDeclaration:(Xe,Te,Lr,Vr,He,lt,Nt,fr,jr)=>ce(Lr,Vr,He,lt,Nt,fr,gr=>ho(Xe,Te,gr),jr),symbolToEntityName:(Xe,Te,Lr,Vr,He,lt)=>ce(Lr,Vr,He,lt,void 0,void 0,Nt=>c_(Xe,Nt,Te,!1)),symbolToExpression:(Xe,Te,Lr,Vr,He,lt)=>ce(Lr,Vr,He,lt,void 0,void 0,Nt=>$0(Xe,Nt,Te)),symbolToTypeParameterDeclarations:(Xe,Te,Lr,Vr,He)=>ce(Te,Lr,Vr,He,void 0,void 0,lt=>$u(Xe,lt)),symbolToParameterDeclaration:(Xe,Te,Lr,Vr,He)=>ce(Te,Lr,Vr,He,void 0,void 0,lt=>ei(Xe,lt)),typeParameterToDeclaration:(Xe,Te,Lr,Vr,He,lt,Nt,fr)=>ce(Te,Lr,Vr,He,lt,Nt,jr=>Zp(Xe,jr),fr),symbolTableToDeclarationStatements:(Xe,Te,Lr,Vr,He)=>ce(Te,Lr,Vr,He,void 0,void 0,lt=>Pw(Xe,lt)),symbolToNode:(Xe,Te,Lr,Vr,He,lt)=>ce(Lr,Vr,He,lt,void 0,void 0,Nt=>v(Xe,Nt,Te)),symbolToDeclarations:E};function p(Xe,Te,Lr){let Vr=rN(Te);if(!Xe.mapper)return Vr;let He=Oa(Vr,Xe.mapper);return Lr&&He!==Vr?void 0:He}function m(Xe,Te,Lr){if((!fu(Te)||!(Te.flags&16)||!Xe.enclosingFile||Xe.enclosingFile!==Pn(Ku(Te)))&&(Te=W.cloneNode(Te)),Te===Lr||!Lr)return Te;let Vr=Te.original;for(;Vr&&Vr!==Lr;)Vr=Vr.original;return Vr||Yi(Te,Lr),Xe.enclosingFile&&Xe.enclosingFile===Pn(Ku(Lr))?qt(Te,Lr):Te}function v(Xe,Te,Lr){if(Te.internalFlags&1){if(Xe.valueDeclaration){let He=cs(Xe.valueDeclaration);if(He&&dc(He))return He}let Vr=io(Xe).nameType;if(Vr&&Vr.flags&9216)return Te.enclosingDeclaration=Vr.symbol.valueDeclaration,W.createComputedPropertyName($0(Vr.symbol,Te,Lr))}return $0(Xe,Te,Lr)}function E(Xe,Te,Lr,Vr,He,lt){let Nt=ce(void 0,Lr,void 0,void 0,Vr,He,fr=>se(Xe,fr),lt);return Wn(Nt,fr=>{switch(fr.kind){case 264:return D(fr,Xe);case 267:return R(fr,CA,Xe);case 265:return K(fr,Xe,Te);case 268:return R(fr,I_,Xe);default:return}})}function D(Xe,Te){let Lr=yr(Te.declarations,Co),Vr=Lr&&Lr.length>0?Lr[0]:Xe,He=tm(Vr)&-161;return w_(Vr)&&(Xe=W.updateClassDeclaration(Xe,Xe.modifiers,void 0,Xe.typeParameters,Xe.heritageClauses,Xe.members)),W.replaceModifiers(Xe,He)}function R(Xe,Te,Lr){let Vr=yr(Lr.declarations,Te),He=Vr&&Vr.length>0?Vr[0]:Xe,lt=tm(He)&-161;return W.replaceModifiers(Xe,lt)}function K(Xe,Te,Lr){if(Lr&64)return R(Xe,Af,Te)}function se(Xe,Te){let Lr=Tu(Xe);Te.typeStack.push(Lr.id),Te.typeStack.push(-1);let Vr=ic([Xe]),He=Pw(Vr,Te);return Te.typeStack.pop(),Te.typeStack.pop(),He}function ce(Xe,Te,Lr,Vr,He,lt,Nt,fr){let jr=Vr?.trackSymbol?Vr.moduleResolverHost:(Lr||0)&4?yar(t):void 0;Te=Te||0;let gr=He||(Te&1?hme:cU),Jr={enclosingDeclaration:Xe,enclosingFile:Xe&&Pn(Xe),flags:Te,internalFlags:Lr||0,tracker:void 0,maxTruncationLength:gr,maxExpansionDepth:lt??-1,encounteredError:!1,suppressReportInferenceFallback:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!Q.outFile&&!!Xe&&Lg(Pn(Xe)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,enclosingSymbolTypes:new Map,mapper:void 0,depth:0,typeStack:[],out:{canIncreaseExpansionDepth:!1,truncated:!1}};Jr.tracker=new I8e(Jr,Vr,jr);let Gn=Nt(Jr);return Jr.truncating&&Jr.flags&1&&Jr.tracker.reportTruncationError(),fr&&(fr.canIncreaseExpansionDepth=Jr.out.canIncreaseExpansionDepth,fr.truncated=Jr.out.truncated),Jr.encounteredError?void 0:Gn}function fe(Xe,Te,Lr){let Vr=hc(Te),He=Xe.enclosingSymbolTypes.get(Vr);return Xe.enclosingSymbolTypes.set(Vr,Lr),lt;function lt(){He?Xe.enclosingSymbolTypes.set(Vr,He):Xe.enclosingSymbolTypes.delete(Vr)}}function Ue(Xe){let Te=Xe.flags,Lr=Xe.internalFlags,Vr=Xe.depth;return He;function He(){Xe.flags=Te,Xe.internalFlags=Lr,Xe.depth=Vr}}function Me(Xe){return Xe.maxExpansionDepth>=0&&yt(Xe)}function yt(Xe){return Xe.truncating?Xe.truncating:Xe.truncating=Xe.approximateLength>Xe.maxTruncationLength}function Jt(Xe,Te){for(let Lr=0;Lr0)return Xe.flags&1048576?W.createUnionTypeNode(Gi):W.createIntersectionTypeNode(Gi);!Te.encounteredError&&!(Te.flags&262144)&&(Te.encounteredError=!0);return}if(Nt&48)return $.assert(!!(Xe.flags&524288)),Si(Xe);if(Xe.flags&4194304){let Zr=Xe.type;Te.approximateLength+=6;let Gi=kr(Zr,Te);return W.createTypeOperatorNode(143,Gi)}if(Xe.flags&134217728){let Zr=Xe.texts,Gi=Xe.types,ys=W.createTemplateHead(Zr[0]),Qa=W.createNodeArray(Cr(Gi,(Kc,kl)=>W.createTemplateLiteralTypeSpan(kr(Kc,Te),(klfr(Zr));if(Xe.flags&33554432){let Zr=kr(Xe.baseType,Te),Gi=jM(Xe)&&nBe("NoInfer",!1);return Gi?Ul(Gi,Te,788968,[Zr]):Zr}return $.fail("Should be unreachable.");function fr(Zr){let Gi=kr(Zr.checkType,Te);if(Te.approximateLength+=15,Te.flags&4&&Zr.root.isDistributive&&!(Zr.checkType.flags&262144)){let ls=bh(zc(262144,"T")),id=gp(ls,Te),od=W.createTypeReferenceNode(id);Te.approximateLength+=37;let Qf=_N(Zr.root.checkType,ls,Zr.mapper),Mm=Te.inferTypeParameters;Te.inferTypeParameters=Zr.root.inferTypeParameters;let kh=kr(Oa(Zr.root.extendsType,Qf),Te);Te.inferTypeParameters=Mm;let C2=jr(Oa(p(Te,Zr.root.node.trueType),Qf)),Ow=jr(Oa(p(Te,Zr.root.node.falseType),Qf));return W.createConditionalTypeNode(Gi,W.createInferTypeNode(W.createTypeParameterDeclaration(void 0,W.cloneNode(od.typeName))),W.createConditionalTypeNode(W.createTypeReferenceNode(W.cloneNode(id)),kr(Zr.checkType,Te),W.createConditionalTypeNode(od,kh,C2,Ow),W.createKeywordTypeNode(146)),W.createKeywordTypeNode(146))}let ys=Te.inferTypeParameters;Te.inferTypeParameters=Zr.root.inferTypeParameters;let Qa=kr(Zr.extendsType,Te);Te.inferTypeParameters=ys;let Kc=jr(eD(Zr)),kl=jr(tD(Zr));return W.createConditionalTypeNode(Gi,Qa,Kc,kl)}function jr(Zr){var Gi,ys,Qa;return Zr.flags&1048576?(Gi=Te.visitedTypes)!=null&&Gi.has(ff(Zr))?(Te.flags&131072||(Te.encounteredError=!0,(Qa=(ys=Te.tracker)==null?void 0:ys.reportCyclicStructureError)==null||Qa.call(ys)),Hn(Te)):Ui(Zr,Kc=>kr(Kc,Te)):kr(Zr,Te)}function gr(Zr){return!!cZ(Zr)}function Jr(Zr){return!!Zr.target&&gr(Zr.target)&&!gr(Zr)}function Gn(Zr){var Gi;$.assert(!!(Zr.flags&524288));let ys=Zr.declaration.readonlyToken?W.createToken(Zr.declaration.readonlyToken.kind):void 0,Qa=Zr.declaration.questionToken?W.createToken(Zr.declaration.questionToken.kind):void 0,Kc,kl,ls=iT(Zr),id=av(Zr),od=!FM(Zr)&&!(yw(Zr).flags&2)&&Te.flags&4&&!(e0(Zr).flags&262144&&((Gi=Th(e0(Zr)))==null?void 0:Gi.flags)&4194304);if(FM(Zr)){if(Jr(Zr)&&Te.flags&4){let cD=bh(zc(262144,"T")),q7=gp(cD,Te),_J=Zr.target;kl=W.createTypeReferenceNode(q7),ls=Oa(iT(_J),XEt([av(_J),yw(_J)],[id,cD]))}Kc=W.createTypeOperatorNode(143,kl||kr(yw(Zr),Te))}else if(od){let cD=bh(zc(262144,"T")),q7=gp(cD,Te);kl=W.createTypeReferenceNode(q7),Kc=kl}else Kc=kr(e0(Zr),Te);let Qf=qa(id,Te,Kc),Mm=Ps(Te,Zr.declaration,void 0,[gw($i(Zr.declaration.typeParameter))]),kh=Zr.declaration.nameType?kr(HE(Zr),Te):void 0,C2=kr(x2(ls,!!(zb(Zr)&4)),Te);Mm();let Ow=W.createMappedTypeNode(ys,Qf,kh,Qa,C2,void 0);Te.approximateLength+=10;let m6=Ai(Ow,1);if(Jr(Zr)&&Te.flags&4){let cD=Oa(Th(p(Te,Zr.declaration.typeParameter.constraint.type))||er,Zr.mapper);return W.createConditionalTypeNode(kr(yw(Zr),Te),W.createInferTypeNode(W.createTypeParameterDeclaration(void 0,W.cloneNode(kl.typeName),cD.flags&2?void 0:kr(cD,Te))),m6,W.createKeywordTypeNode(146))}else if(od)return W.createConditionalTypeNode(kr(e0(Zr),Te),W.createInferTypeNode(W.createTypeParameterDeclaration(void 0,W.cloneNode(kl.typeName),W.createTypeOperatorNode(143,kr(yw(Zr),Te)))),m6,W.createKeywordTypeNode(146));return m6}function Si(Zr,Gi=!1,ys=!1){var Qa,Kc;let kl=Zr.id,ls=Zr.symbol;if(ls){if(!!(ro(Zr)&8388608)){let kh=Zr.node;if(gP(kh)&&p(Te,kh)===Zr){let C2=Ve.tryReuseExistingTypeNode(Te,kh);if(C2)return C2}return(Qa=Te.visitedTypes)!=null&&Qa.has(kl)?Hn(Te):Ui(Zr,Io)}let Qf=VQ(Zr)?788968:111551;if(XS(ls.valueDeclaration))return Ul(ls,Te,Qf);if(!ys&&(ls.flags&32&&!Gi&&!KQ(ls)&&!(ls.valueDeclaration&&Co(ls.valueDeclaration)&&Te.flags&2048&&(!ed(ls.valueDeclaration)||GC(ls,Te.enclosingDeclaration,Qf,!1).accessibility!==0))||ls.flags&896||id()))if(Xt(Zr,Te))Te.depth+=1;else return Ul(ls,Te,Qf);if((Kc=Te.visitedTypes)!=null&&Kc.has(kl)){let Mm=lse(Zr);return Mm?Ul(Mm,Te,788968):Hn(Te)}else return Ui(Zr,Io)}else return Io(Zr);function id(){var od;let Qf=!!(ls.flags&8192)&&Pt(ls.declarations,kh=>oc(kh)&&!m2t(cs(kh))),Mm=!!(ls.flags&16)&&(ls.parent||X(ls.declarations,kh=>kh.parent.kind===308||kh.parent.kind===269));if(Qf||Mm)return(!!(Te.flags&4096)||((od=Te.visitedTypes)==null?void 0:od.has(kl)))&&(!(Te.flags&8)||v7(ls,Te.enclosingDeclaration))}}function Ui(Zr,Gi){var ys,Qa,Kc;let kl=Zr.id,ls=ro(Zr)&16&&Zr.symbol&&Zr.symbol.flags&32,id=ro(Zr)&4&&Zr.node?"N"+hl(Zr.node):Zr.flags&16777216?"N"+hl(Zr.root.node):Zr.symbol?(ls?"+":"")+hc(Zr.symbol):void 0;Te.visitedTypes||(Te.visitedTypes=new Set),id&&!Te.symbolDepth&&(Te.symbolDepth=new Map);let od=Te.maxExpansionDepth>=0?void 0:Te.enclosingDeclaration&&Ki(Te.enclosingDeclaration),Qf=`${ff(Zr)}|${Te.flags}|${Te.internalFlags}`;od&&(od.serializedTypes||(od.serializedTypes=new Map));let Mm=(ys=od?.serializedTypes)==null?void 0:ys.get(Qf);if(Mm)return(Qa=Mm.trackedSymbols)==null||Qa.forEach(([Gb,XM,Pce])=>Te.tracker.trackSymbol(Gb,XM,Pce)),Mm.truncating&&(Te.truncating=!0),Te.approximateLength+=Mm.addedLength,q7(Mm.node);let kh;if(id){if(kh=Te.symbolDepth.get(id)||0,kh>10)return Hn(Te);Te.symbolDepth.set(id,kh+1)}Te.visitedTypes.add(kl);let C2=Te.trackedSymbols;Te.trackedSymbols=void 0;let Ow=Te.approximateLength,m6=Gi(Zr),cD=Te.approximateLength-Ow;return!Te.reportedDiagnostic&&!Te.encounteredError&&((Kc=od?.serializedTypes)==null||Kc.set(Qf,{node:m6,truncating:Te.truncating,addedLength:cD,trackedSymbols:Te.trackedSymbols})),Te.visitedTypes.delete(kl),id&&Te.symbolDepth.set(id,kh),Te.trackedSymbols=C2,m6;function q7(Gb){return!fu(Gb)&&vs(Gb)===Gb?Gb:m(Te,W.cloneNode(Dn(Gb,q7,void 0,_J,q7)),Gb)}function _J(Gb,XM,Pce,ize,oze){return Gb&&Gb.length===0?qt(W.createNodeArray(void 0,Gb.hasTrailingComma),Gb):Bn(Gb,XM,Pce,ize,oze)}}function Io(Zr){if(Xh(Zr)||Zr.containsError)return Gn(Zr);let Gi=jv(Zr);if(!Gi.properties.length&&!Gi.indexInfos.length){if(!Gi.callSignatures.length&&!Gi.constructSignatures.length)return Te.approximateLength+=2,Ai(W.createTypeLiteralNode(void 0),1);if(Gi.callSignatures.length===1&&!Gi.constructSignatures.length){let ls=Gi.callSignatures[0];return ho(ls,185,Te)}if(Gi.constructSignatures.length===1&&!Gi.callSignatures.length){let ls=Gi.constructSignatures[0];return ho(ls,186,Te)}}let ys=yr(Gi.constructSignatures,ls=>!!(ls.flags&4));if(Pt(ys)){let ls=Cr(ys,aN);return Gi.callSignatures.length+(Gi.constructSignatures.length-ys.length)+Gi.indexInfos.length+(Te.flags&2048?Lo(Gi.properties,od=>!(od.flags&4194304)):te(Gi.properties))&&ls.push(Y3(Gi)),kr(Ac(ls),Te)}let Qa=Ue(Te);Te.flags|=4194304;let Kc=rl(Gi);Qa();let kl=W.createTypeLiteralNode(Kc);return Te.approximateLength+=2,Ai(kl,Te.flags&1024?0:1),kl}function bo(Zr){let Gi=Bu(Zr);if(Zr.target===tl||Zr.target===Uc){if(Te.flags&2){let Kc=kr(Gi[0],Te);return W.createTypeReferenceNode(Zr.target===tl?"Array":"ReadonlyArray",[Kc])}let ys=kr(Gi[0],Te),Qa=W.createArrayTypeNode(ys);return Zr.target===tl?Qa:W.createTypeOperatorNode(148,Qa)}else if(Zr.target.objectFlags&8){if(Gi=Zo(Gi,(ys,Qa)=>x2(ys,!!(Zr.target.elementFlags[Qa]&2))),Gi.length>0){let ys=ZE(Zr),Qa=vi(Gi.slice(0,ys),Te);if(Qa){let{labeledElementDeclarations:Kc}=Zr.target;for(let ls=0;ls0){let od=0;if(Zr.target.typeParameters&&(od=Math.min(Zr.target.typeParameters.length,Gi.length),(Xg(Zr,Cxe(!1))||Xg(Zr,fEt(!1))||Xg(Zr,bse(!1))||Xg(Zr,dEt(!1)))&&(!Zr.node||!Ug(Zr.node)||!Zr.node.typeArguments||Zr.node.typeArguments.length0;){let Qf=Gi[od-1],Mm=Zr.target.typeParameters[od-1],kh=r6(Mm);if(!kh||!cT(Qf,kh))break;od--}kl=vi(Gi.slice(Qa,od),Te)}let ls=Ue(Te);Te.flags|=16;let id=Ul(Zr.symbol,Te,788968,kl);return ls(),Kc?ti(Kc,id):id}}}function ti(Zr,Gi){if(AS(Zr)){let ys=Zr.typeArguments,Qa=Zr.qualifier;Qa&&(ct(Qa)?ys!==t3(Qa)&&(Qa=vE(W.cloneNode(Qa),ys)):ys!==t3(Qa.right)&&(Qa=W.updateQualifiedName(Qa,Qa.left,vE(W.cloneNode(Qa.right),ys)))),ys=Gi.typeArguments;let Kc=qo(Gi);for(let kl of Kc)Qa=Qa?W.createQualifiedName(Qa,kl):kl;return W.updateImportTypeNode(Zr,Zr.argument,Zr.attributes,Qa,ys,Zr.isTypeOf)}else{let ys=Zr.typeArguments,Qa=Zr.typeName;ct(Qa)?ys!==t3(Qa)&&(Qa=vE(W.cloneNode(Qa),ys)):ys!==t3(Qa.right)&&(Qa=W.updateQualifiedName(Qa,Qa.left,vE(W.cloneNode(Qa.right),ys))),ys=Gi.typeArguments;let Kc=qo(Gi);for(let kl of Kc)Qa=W.createQualifiedName(Qa,kl);return W.updateTypeReferenceNode(Zr,Qa,ys)}}function qo(Zr){let Gi=Zr.typeName,ys=[];for(;!ct(Gi);)ys.unshift(Gi.right),Gi=Gi.left;return ys.unshift(Gi),ys}function ss(Zr,Gi,ys){if(Zr.components&&ht(Zr.components,Kc=>{var kl;return!!(Kc.name&&dc(Kc.name)&&ru(Kc.name.expression)&&Gi.enclosingDeclaration&&((kl=b7(Kc.name.expression,Gi.enclosingDeclaration,!1))==null?void 0:kl.accessibility)===0)})){let Kc=yr(Zr.components,kl=>!NM(kl));return Cr(Kc,kl=>(mi(kl.name.expression,Gi.enclosingDeclaration,Gi),m(Gi,W.createPropertySignature(Zr.isReadonly?[W.createModifier(148)]:void 0,kl.name,(Zm(kl)||ps(kl)||G1(kl)||Ep(kl)||Ax(kl)||hS(kl))&&kl.questionToken?W.createToken(58):void 0,ys||kr(di(kl.symbol),Gi)),kl)))}return[Fa(Zr,Gi,ys)]}function rl(Zr){if(yt(Te))return Te.out.truncated=!0,Te.flags&1?[nz(W.createNotEmittedTypeElement(),3,"elided")]:[W.createPropertySignature(void 0,"...",void 0,void 0)];Te.typeStack.push(-1);let Gi=[];for(let Kc of Zr.callSignatures)Gi.push(ho(Kc,180,Te));for(let Kc of Zr.constructSignatures)Kc.flags&4||Gi.push(ho(Kc,181,Te));for(let Kc of Zr.indexInfos)Gi.push(...ss(Kc,Te,Zr.objectFlags&1024?Hn(Te):void 0));let ys=Zr.properties;if(!ys)return Te.typeStack.pop(),Gi;let Qa=0;for(let Kc of ys)if(!(Nw(Te)&&Kc.flags&4194304)){if(Qa++,Te.flags&2048){if(Kc.flags&4194304)continue;S0(Kc)&6&&Te.tracker.reportPrivateInBaseOfClassExpression&&Te.tracker.reportPrivateInBaseOfClassExpression(oa(Kc.escapedName))}if(yt(Te)&&Qa+2!(Io.flags&32768)),0);for(let Io of Ui){let bo=ho(Io,174,Te,{name:fr,questionToken:jr});Lr.push(Si(bo,Io.declaration||Xe.valueDeclaration))}if(Ui.length||!jr)return}let gr;fi(Xe,Te)?gr=Hn(Te):(He&&(Te.reverseMappedStack||(Te.reverseMappedStack=[]),Te.reverseMappedStack.push(Xe)),gr=lt?Vi(Te,void 0,lt,Xe):W.createKeywordTypeNode(133),He&&Te.reverseMappedStack.pop());let Jr=Vv(Xe)?[W.createToken(148)]:void 0;Jr&&(Te.approximateLength+=9);let Gn=W.createPropertySignature(Jr,fr,jr,gr);Lr.push(Si(Gn,Xe.valueDeclaration));function Si(Ui,Io){var bo;let ti=(bo=Xe.declarations)==null?void 0:bo.find(qo=>qo.kind===349);if(ti){let qo=oG(ti.comment);qo&&SA(Ui,[{kind:3,text:`* + * `+qo.replace(/\n/g,` + * `)+` + `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else Io&&rn(Te,Ui,Io);return Ui}}function rn(Xe,Te,Lr){return Xe.enclosingFile&&Xe.enclosingFile===Pn(Lr)?Y_(Te,Lr):Te}function vi(Xe,Te,Lr){if(Pt(Xe)){if(yt(Te))if(Te.out.truncated=!0,Lr){if(Xe.length>2)return[kr(Xe[0],Te),Te.flags&1?gC(W.createKeywordTypeNode(133),3,`... ${Xe.length-2} more elided ...`):W.createTypeReferenceNode(`... ${Xe.length-2} more ...`,void 0),kr(Xe[Xe.length-1],Te)]}else return[Te.flags&1?gC(W.createKeywordTypeNode(133),3,"elided"):W.createTypeReferenceNode("...",void 0)];let He=!(Te.flags&64)?d_():void 0,lt=[],Nt=0;for(let fr of Xe){if(Nt++,yt(Te)&&Nt+2{if(!K4e(jr,([gr],[Jr])=>wo(gr,Jr)))for(let[gr,Jr]of jr)lt[Jr]=kr(gr,Te)}),fr()}return lt}}function wo(Xe,Te){return Xe===Te||!!Xe.symbol&&Xe.symbol===Te.symbol||!!Xe.aliasSymbol&&Xe.aliasSymbol===Te.aliasSymbol}function Fa(Xe,Te,Lr){let Vr=l6e(Xe)||"x",He=kr(Xe.keyType,Te),lt=W.createParameterDeclaration(void 0,void 0,Vr,void 0,He,void 0);return Lr||(Lr=kr(Xe.type||at,Te)),!Xe.type&&!(Te.flags&2097152)&&(Te.encounteredError=!0),Te.approximateLength+=Vr.length+4,W.createIndexSignature(Xe.isReadonly?[W.createToken(148)]:void 0,[lt],Lr)}function ho(Xe,Te,Lr,Vr){var He;let lt,Nt,fr=x2t(Xe,!0)[0],jr=Ps(Lr,Xe.declaration,fr,Xe.typeParameters,Xe.parameters,Xe.mapper);Lr.approximateLength+=3,Lr.flags&32&&Xe.target&&Xe.mapper&&Xe.target.typeParameters?Nt=Xe.target.typeParameters.map(bo=>kr(Oa(bo,Xe.mapper),Lr)):lt=Xe.typeParameters&&Xe.typeParameters.map(bo=>Zp(bo,Lr));let gr=Ue(Lr);Lr.flags&=-257;let Jr=(Pt(fr,bo=>bo!==fr[fr.length-1]&&!!(Fp(bo)&32768))?Xe.parameters:fr).map(bo=>ei(bo,Lr,Te===177)),Gn=Lr.flags&33554432?void 0:El(Xe,Lr);Gn&&Jr.unshift(Gn),gr();let Si=wc(Lr,Xe),Ui=Vr?.modifiers;if(Te===186&&Xe.flags&4){let bo=TS(Ui);Ui=W.createModifiersFromModifierFlags(bo|64)}let Io=Te===180?W.createCallSignature(lt,Jr,Si):Te===181?W.createConstructSignature(lt,Jr,Si):Te===174?W.createMethodSignature(Ui,Vr?.name??W.createIdentifier(""),Vr?.questionToken,lt,Jr,Si):Te===175?W.createMethodDeclaration(Ui,void 0,Vr?.name??W.createIdentifier(""),void 0,lt,Jr,Si,void 0):Te===177?W.createConstructorDeclaration(Ui,Jr,void 0):Te===178?W.createGetAccessorDeclaration(Ui,Vr?.name??W.createIdentifier(""),Jr,Si,void 0):Te===179?W.createSetAccessorDeclaration(Ui,Vr?.name??W.createIdentifier(""),Jr,void 0):Te===182?W.createIndexSignature(Ui,Jr,Si):Te===318?W.createJSDocFunctionType(Jr,Si):Te===185?W.createFunctionTypeNode(lt,Jr,Si??W.createTypeReferenceNode(W.createIdentifier(""))):Te===186?W.createConstructorTypeNode(Ui,lt,Jr,Si??W.createTypeReferenceNode(W.createIdentifier(""))):Te===263?W.createFunctionDeclaration(Ui,void 0,Vr?.name?Ba(Vr.name,ct):W.createIdentifier(""),lt,Jr,Si,void 0):Te===219?W.createFunctionExpression(Ui,void 0,Vr?.name?Ba(Vr.name,ct):W.createIdentifier(""),lt,Jr,Si,W.createBlock([])):Te===220?W.createArrowFunction(Ui,lt,Jr,Si,void 0,W.createBlock([])):$.assertNever(Te);if(Nt&&(Io.typeArguments=W.createNodeArray(Nt)),((He=Xe.declaration)==null?void 0:He.kind)===324&&Xe.declaration.parent.kind===340){let bo=Sp(Xe.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(ti=>ti.replace(/^\s+/," ")).join(` +`);gC(Io,3,bo,!0)}return jr?.(),Io}function pa(Xe){c&&c.throwIfCancellationRequested&&c.throwIfCancellationRequested();let Te,Lr,Vr=!1,He=Xe.tracker,lt=Xe.trackedSymbols;Xe.trackedSymbols=void 0;let Nt=Xe.encounteredError;return Xe.tracker=new I8e(Xe,{...He.inner,reportCyclicStructureError(){fr(()=>He.reportCyclicStructureError())},reportInaccessibleThisError(){fr(()=>He.reportInaccessibleThisError())},reportInaccessibleUniqueSymbolError(){fr(()=>He.reportInaccessibleUniqueSymbolError())},reportLikelyUnsafeImportRequiredError(Jr){fr(()=>He.reportLikelyUnsafeImportRequiredError(Jr))},reportNonSerializableProperty(Jr){fr(()=>He.reportNonSerializableProperty(Jr))},reportPrivateInBaseOfClassExpression(Jr){fr(()=>He.reportPrivateInBaseOfClassExpression(Jr))},trackSymbol(Jr,Gn,Si){return(Te??(Te=[])).push([Jr,Gn,Si]),!1},moduleResolverHost:Xe.tracker.moduleResolverHost},Xe.tracker.moduleResolverHost),{startRecoveryScope:jr,finalizeBoundary:gr,markError:fr,hadError:()=>Vr};function fr(Jr){Vr=!0,Jr&&(Lr??(Lr=[])).push(Jr)}function jr(){let Jr=Te?.length??0,Gn=Lr?.length??0;return()=>{Vr=!1,Te&&(Te.length=Jr),Lr&&(Lr.length=Gn)}}function gr(){return Xe.tracker=He,Xe.trackedSymbols=lt,Xe.encounteredError=Nt,Lr?.forEach(Jr=>Jr()),Vr?!1:(Te?.forEach(([Jr,Gn,Si])=>Xe.tracker.trackSymbol(Jr,Gn,Si)),!0)}}function Ps(Xe,Te,Lr,Vr,He,lt){let Nt=WZ(Xe),fr,jr,gr=Xe.enclosingDeclaration,Jr=Xe.mapper;if(lt&&(Xe.mapper=lt),Xe.enclosingDeclaration&&Te){let Si=function(Ui,Io){$.assert(Xe.enclosingDeclaration);let bo;Ki(Xe.enclosingDeclaration).fakeScopeForSignatureDeclaration===Ui?bo=Xe.enclosingDeclaration:Xe.enclosingDeclaration.parent&&Ki(Xe.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===Ui&&(bo=Xe.enclosingDeclaration.parent),$.assertOptionalNode(bo,Vs);let ti=bo?.locals??ic(),qo,ss;if(Io((rl,Zr)=>{if(bo){let Gi=ti.get(rl);Gi?ss=jt(ss,{name:rl,oldSymbol:Gi}):qo=jt(qo,rl)}ti.set(rl,Zr)}),bo)return function(){X(qo,Zr=>ti.delete(Zr)),X(ss,Zr=>ti.set(Zr.name,Zr.oldSymbol))};{let rl=W.createBlock(j);Ki(rl).fakeScopeForSignatureDeclaration=Ui,rl.locals=ti,xl(rl,Xe.enclosingDeclaration),Xe.enclosingDeclaration=rl}};var Gn=Si;fr=Pt(Lr)?Si("params",Ui=>{if(Lr)for(let Io=0;Io{if(wa(qo)&&$s(qo.name))return ss(qo.name),!0;return;function ss(Zr){X(Zr.elements,Gi=>{switch(Gi.kind){case 233:return;case 209:return rl(Gi);default:return $.assertNever(Gi)}})}function rl(Zr){if($s(Zr.name))return ss(Zr.name);let Gi=$i(Zr);Ui(Gi.escapedName,Gi)}})||Ui(bo.escapedName,bo)}}):void 0,Xe.flags&4&&Pt(Vr)&&(jr=Si("typeParams",Ui=>{for(let Io of Vr??j){let bo=gp(Io,Xe).escapedText;Ui(bo,Io.symbol)}}))}return()=>{fr?.(),jr?.(),Nt(),Xe.enclosingDeclaration=gr,Xe.mapper=Jr}}function El(Xe,Te){if(Xe.thisParameter)return ei(Xe.thisParameter,Te);if(Xe.declaration&&Ei(Xe.declaration)){let Lr=d0(Xe.declaration);if(Lr&&Lr.typeExpression)return W.createParameterDeclaration(void 0,void 0,"this",void 0,kr(p(Te,Lr.typeExpression),Te))}}function qa(Xe,Te,Lr){let Vr=Ue(Te);Te.flags&=-513;let He=W.createModifiersFromModifierFlags(zBe(Xe)),lt=gp(Xe,Te),Nt=r6(Xe),fr=Nt&&kr(Nt,Te);return Vr(),W.createTypeParameterDeclaration(He,lt,Lr,fr)}function rp(Xe,Te,Lr){return!Jt(Xe,Lr)&&Te&&p(Lr,Te)===Xe&&Ve.tryReuseExistingTypeNode(Lr,Te)||kr(Xe,Lr)}function Zp(Xe,Te,Lr=Th(Xe)){let Vr=Lr&&rp(Lr,Sxe(Xe),Te);return qa(Xe,Te,Vr)}function Rm(Xe,Te){let Lr=Xe.kind===2||Xe.kind===3?W.createToken(131):void 0,Vr=Xe.kind===1||Xe.kind===3?Ai(W.createIdentifier(Xe.parameterName),16777216):W.createThisTypeNode(),He=Xe.type&&kr(Xe.type,Te);return W.createTypePredicateNode(Lr,Vr,He)}function Mn(Xe){let Te=Qu(Xe,170);if(Te)return Te;if(!wx(Xe))return Qu(Xe,342)}function ei(Xe,Te,Lr){let Vr=Mn(Xe),He=di(Xe),lt=Vi(Te,Vr,He,Xe),Nt=!(Te.flags&8192)&&Lr&&Vr&&l1(Vr)?Cr(Qk(Vr),W.cloneNode):void 0,jr=Vr&&Sb(Vr)||Fp(Xe)&32768?W.createToken(26):void 0,gr=ha(Xe,Vr,Te),Gn=Vr&&eZ(Vr)||Fp(Xe)&16384?W.createToken(58):void 0,Si=W.createParameterDeclaration(Nt,jr,gr,Gn,lt,void 0);return Te.approximateLength+=vp(Xe).length+3,Si}function ha(Xe,Te,Lr){return Te&&Te.name?Te.name.kind===80?Ai(W.cloneNode(Te.name),16777216):Te.name.kind===167?Ai(W.cloneNode(Te.name.right),16777216):Vr(Te.name):vp(Xe);function Vr(He){return lt(He);function lt(Nt){Lr.tracker.canTrackSymbol&&dc(Nt)&&Oje(Nt)&&mi(Nt.expression,Lr.enclosingDeclaration,Lr);let fr=Dn(Nt,lt,void 0,void 0,lt);return Vc(fr)&&(fr=W.updateBindingElement(fr,fr.dotDotDotToken,fr.propertyName,fr.name,void 0)),fu(fr)||(fr=W.cloneNode(fr)),Ai(fr,16777217)}}}function mi(Xe,Te,Lr){if(!Lr.tracker.canTrackSymbol)return;let Vr=_h(Xe),He=$t(Te,Vr.escapedText,1160127,void 0,!0);if(He)Lr.tracker.trackSymbol(He,Te,111551);else{let lt=$t(Vr,Vr.escapedText,1160127,void 0,!0);lt&&Lr.tracker.trackSymbol(lt,Te,111551)}}function fs(Xe,Te,Lr,Vr){return Te.tracker.trackSymbol(Xe,Te.enclosingDeclaration,Lr),Rl(Xe,Te,Lr,Vr)}function Rl(Xe,Te,Lr,Vr){let He;return!(Xe.flags&262144)&&(Te.enclosingDeclaration||Te.flags&64)&&!(Te.internalFlags&4)?(He=$.checkDefined(Nt(Xe,Lr,!0)),$.assert(He&&He.length>0)):He=[Xe],He;function Nt(fr,jr,gr){let Jr=qE(fr,Te.enclosingDeclaration,jr,!!(Te.flags&128)),Gn;if(!Jr||ZP(Jr[0],Te.enclosingDeclaration,Jr.length===1?jr:nv(jr))){let Ui=QP(Jr?Jr[0]:fr,Te.enclosingDeclaration,jr);if(te(Ui)){Gn=Ui.map(ti=>Pt(ti.declarations,XP)?y_(ti,Te):void 0);let Io=Ui.map((ti,qo)=>qo);Io.sort(Si);let bo=Io.map(ti=>Ui[ti]);for(let ti of bo){let qo=Nt(ti,nv(jr),!1);if(qo){if(ti.exports&&ti.exports.get("export=")&&Pe(ti.exports.get("export="),fr)){Jr=qo;break}Jr=qo.concat(Jr||[B(ti,fr)||fr]);break}}}}if(Jr)return Jr;if(gr||!(fr.flags&6144))return!gr&&!Vr&&X(fr.declarations,XP)?void 0:[fr];function Si(Ui,Io){let bo=Gn[Ui],ti=Gn[Io];if(bo&&ti){let qo=ch(ti);return ch(bo)===qo?Rie(bo)-Rie(ti):qo?-1:1}return 0}}}function $u(Xe,Te){let Lr;return ZM(Xe).flags&524384&&(Lr=W.createNodeArray(Cr(Dc(Xe),He=>Zp(He,Te)))),Lr}function hf(Xe,Te,Lr){var Vr;$.assert(Xe&&0<=Te&&TeXE(Jr,jr.links.mapper)),Lr)}else Nt=$u(He,Lr)}return Nt}function Hc(Xe){return vP(Xe.objectType)?Hc(Xe.objectType):Xe}function y_(Xe,Te,Lr){let Vr=Qu(Xe,308);if(!Vr){let Gn=Je(Xe.declarations,Si=>X3(Si,Xe));Gn&&(Vr=Qu(Gn,308))}if(Vr&&Vr.moduleName!==void 0)return Vr.moduleName;if(!Vr&&D8e.test(Xe.escapedName))return Xe.escapedName.substring(1,Xe.escapedName.length-1);if(!Te.enclosingFile||!Te.tracker.moduleResolverHost)return D8e.test(Xe.escapedName)?Xe.escapedName.substring(1,Xe.escapedName.length-1):Pn(Ame(Xe)).fileName;let He=Ku(Te.enclosingDeclaration),lt=F6e(He)?qO(He):void 0,Nt=Te.enclosingFile,fr=Lr||lt&&t.getModeForUsageLocation(Nt,lt)||Nt&&t.getDefaultResolutionModeForFile(Nt),jr=Ez(Nt.path,fr),gr=io(Xe),Jr=gr.specifierCache&&gr.specifierCache.get(jr);if(!Jr){let Gn=!!Q.outFile,{moduleResolverHost:Si}=Te.tracker,Ui=Gn?{...Q,baseUrl:Si.getCommonSourceDirectory()}:Q;Jr=To(Hpt(Xe,Qn,Ui,Nt,Si,{importModuleSpecifierPreference:Gn?"non-relative":"project-relative",importModuleSpecifierEnding:Gn?"minimal":fr===99?"js":void 0},{overrideImportMode:Lr})),gr.specifierCache??(gr.specifierCache=new Map),gr.specifierCache.set(jr,Jr)}return Jr}function R_(Xe){let Te=W.createIdentifier(oa(Xe.escapedName));return Xe.parent?W.createQualifiedName(R_(Xe.parent),Te):Te}function Ul(Xe,Te,Lr,Vr){let He=fs(Xe,Te,Lr,!(Te.flags&16384)),lt=Lr===111551;if(Pt(He[0].declarations,XP)){let jr=He.length>1?fr(He,He.length-1,1):void 0,gr=Vr||hf(He,0,Te),Jr=Pn(Ku(Te.enclosingDeclaration)),Gn=yG(He[0]),Si,Ui;if((km(Q)===3||km(Q)===99)&&Gn?.impliedNodeFormat===99&&Gn.impliedNodeFormat!==Jr?.impliedNodeFormat&&(Si=y_(He[0],Te,99),Ui=W.createImportAttributes(W.createNodeArray([W.createImportAttribute(W.createStringLiteral("resolution-mode"),W.createStringLiteral("import"))]))),Si||(Si=y_(He[0],Te)),!(Te.flags&67108864)&&km(Q)!==1&&Si.includes("/node_modules/")){let bo=Si;if(km(Q)===3||km(Q)===99){let ti=Jr?.impliedNodeFormat===99?1:99;Si=y_(He[0],Te,ti),Si.includes("/node_modules/")?Si=bo:Ui=W.createImportAttributes(W.createNodeArray([W.createImportAttribute(W.createStringLiteral("resolution-mode"),W.createStringLiteral(ti===99?"import":"require"))]))}Ui||(Te.encounteredError=!0,Te.tracker.reportLikelyUnsafeImportRequiredError&&Te.tracker.reportLikelyUnsafeImportRequiredError(bo))}let Io=W.createLiteralTypeNode(W.createStringLiteral(Si));if(Te.approximateLength+=Si.length+10,!jr||uh(jr)){if(jr){let bo=ct(jr)?jr:jr.right;vE(bo,void 0)}return W.createImportTypeNode(Io,Ui,jr,gr,lt)}else{let bo=Hc(jr),ti=bo.objectType.typeName;return W.createIndexedAccessTypeNode(W.createImportTypeNode(Io,Ui,ti,gr,lt),bo.indexType)}}let Nt=fr(He,He.length-1,0);if(vP(Nt))return Nt;if(lt)return W.createTypeQueryNode(Nt);{let jr=ct(Nt)?Nt:Nt.right,gr=t3(jr);return vE(jr,void 0),W.createTypeReferenceNode(Nt,gr)}function fr(jr,gr,Jr){let Gn=gr===jr.length-1?Vr:hf(jr,gr,Te),Si=jr[gr],Ui=jr[gr-1],Io;if(gr===0)Te.flags|=16777216,Io=hw(Si,Te),Te.approximateLength+=(Io?Io.length:0)+1,Te.flags^=16777216;else if(Ui&&Zg(Ui)){let ti=Zg(Ui);Ad(ti,(qo,ss)=>{if(Pe(qo,Si)&&!QQ(ss)&&ss!=="export=")return Io=oa(ss),!0})}if(Io===void 0){let ti=Je(Si.declarations,cs);if(ti&&dc(ti)&&uh(ti.expression)){let qo=fr(jr,gr-1,Jr);return uh(qo)?W.createIndexedAccessTypeNode(W.createParenthesizedType(W.createTypeQueryNode(qo)),W.createTypeQueryNode(ti.expression)):qo}Io=hw(Si,Te)}if(Te.approximateLength+=Io.length+1,!(Te.flags&16)&&Ui&&Ub(Ui)&&Ub(Ui).get(Si.escapedName)&&Pe(Ub(Ui).get(Si.escapedName),Si)){let ti=fr(jr,gr-1,Jr);return vP(ti)?W.createIndexedAccessTypeNode(ti,W.createLiteralTypeNode(W.createStringLiteral(Io))):W.createIndexedAccessTypeNode(W.createTypeReferenceNode(ti,Gn),W.createLiteralTypeNode(W.createStringLiteral(Io)))}let bo=Ai(W.createIdentifier(Io),16777216);if(Gn&&vE(bo,W.createNodeArray(Gn)),bo.symbol=Si,gr>Jr){let ti=fr(jr,gr-1,Jr);return uh(ti)?W.createQualifiedName(ti,bo):$.fail("Impossible construct - an export of an indexed access cannot be reachable")}return bo}}function n0(Xe,Te,Lr){let Vr=$t(Te.enclosingDeclaration,Xe,788968,void 0,!1);return Vr&&Vr.flags&262144?Vr!==Lr.symbol:!1}function gp(Xe,Te){var Lr,Vr,He,lt;if(Te.flags&4&&Te.typeParameterNames){let jr=Te.typeParameterNames.get(ff(Xe));if(jr)return jr}let Nt=c_(Xe.symbol,Te,788968,!0);if(!(Nt.kind&80))return W.createIdentifier("(Missing type parameter)");let fr=(Vr=(Lr=Xe.symbol)==null?void 0:Lr.declarations)==null?void 0:Vr[0];if(fr&&Zu(fr)&&(Nt=m(Te,Nt,fr.name)),Te.flags&4){let jr=Nt.escapedText,gr=((He=Te.typeParameterNamesByTextNextNameCount)==null?void 0:He.get(jr))||0,Jr=jr;for(;(lt=Te.typeParameterNamesByText)!=null&<.has(Jr)||n0(Jr,Te,Xe);)gr++,Jr=`${jr}_${gr}`;if(Jr!==jr){let Gn=t3(Nt);Nt=W.createIdentifier(Jr),vE(Nt,Gn)}Te.mustCreateTypeParametersNamesLookups&&(Te.mustCreateTypeParametersNamesLookups=!1,Te.typeParameterNames=new Map(Te.typeParameterNames),Te.typeParameterNamesByTextNextNameCount=new Map(Te.typeParameterNamesByTextNextNameCount),Te.typeParameterNamesByText=new Set(Te.typeParameterNamesByText)),Te.typeParameterNamesByTextNextNameCount.set(jr,gr),Te.typeParameterNames.set(ff(Xe),Nt),Te.typeParameterNamesByText.add(Jr)}return Nt}function c_(Xe,Te,Lr,Vr){let He=fs(Xe,Te,Lr);return Vr&&He.length!==1&&!Te.encounteredError&&!(Te.flags&65536)&&(Te.encounteredError=!0),lt(He,He.length-1);function lt(Nt,fr){let jr=hf(Nt,fr,Te),gr=Nt[fr];fr===0&&(Te.flags|=16777216);let Jr=hw(gr,Te);fr===0&&(Te.flags^=16777216);let Gn=Ai(W.createIdentifier(Jr),16777216);return jr&&vE(Gn,W.createNodeArray(jr)),Gn.symbol=gr,fr>0?W.createQualifiedName(lt(Nt,fr-1),Gn):Gn}}function $0(Xe,Te,Lr){let Vr=fs(Xe,Te,Lr);return He(Vr,Vr.length-1);function He(lt,Nt){let fr=hf(lt,Nt,Te),jr=lt[Nt];Nt===0&&(Te.flags|=16777216);let gr=hw(jr,Te);Nt===0&&(Te.flags^=16777216);let Jr=gr.charCodeAt(0);if(MG(Jr)&&Pt(jr.declarations,XP)){let Gn=y_(jr,Te);return Te.approximateLength+=2+Gn.length,W.createStringLiteral(Gn)}if(Nt===0||ige(gr,re)){let Gn=Ai(W.createIdentifier(gr),16777216);return fr&&vE(Gn,W.createNodeArray(fr)),Gn.symbol=jr,Te.approximateLength+=1+gr.length,Nt>0?W.createPropertyAccessExpression(He(lt,Nt-1),Gn):Gn}else{Jr===91&&(gr=gr.substring(1,gr.length-1),Jr=gr.charCodeAt(0));let Gn;if(MG(Jr)&&!(jr.flags&8)){let Si=i1(gr).replace(/\\./g,Ui=>Ui.substring(1));Te.approximateLength+=Si.length+2,Gn=W.createStringLiteral(Si,Jr===39)}else""+ +gr===gr&&(Te.approximateLength+=gr.length,Gn=W.createNumericLiteral(+gr));if(!Gn){let Si=Ai(W.createIdentifier(gr),16777216);fr&&vE(Si,W.createNodeArray(fr)),Si.symbol=jr,Te.approximateLength+=gr.length,Gn=Si}return Te.approximateLength+=2,W.createElementAccessExpression(He(lt,Nt-1),Gn)}}}function uJ(Xe){let Te=cs(Xe);return Te?dc(Te)?!!(Va(Te.expression).flags&402653316):mu(Te)?!!(Va(Te.argumentExpression).flags&402653316):Ic(Te):!1}function VZ(Xe){let Te=cs(Xe);return!!(Te&&Ic(Te)&&(Te.singleQuote||!fu(Te)&&Ca(Sp(Te,!1),"'")))}function pJ(Xe,Te){let Lr=l2e(Xe);if(Lr)if(!!Te.tracker.reportPrivateInBaseOfClassExpression&&Te.flags&2048){let gr=oa(Xe.escapedName);return gr=gr.replace(/__#\d+@#/g,"__#private@#"),EH(gr,$c(Q),!1,!0,!!(Xe.flags&8192))}else return Lr;let Vr=!!te(Xe.declarations)&&ht(Xe.declarations,uJ),He=!!te(Xe.declarations)&&ht(Xe.declarations,VZ),lt=!!(Xe.flags&8192),Nt=by(Xe,Te,He,Vr,lt);if(Nt)return Nt;let fr=oa(Xe.escapedName);return EH(fr,$c(Q),He,Vr,lt)}function by(Xe,Te,Lr,Vr,He){let lt=io(Xe).nameType;if(lt){if(lt.flags&384){let Nt=""+lt.value;return!Jd(Nt,$c(Q))&&(Vr||!$x(Nt))?W.createStringLiteral(Nt,!!Lr):$x(Nt)&&Ca(Nt,"-")?W.createComputedPropertyName(W.createPrefixUnaryExpression(41,W.createNumericLiteral(-Nt))):EH(Nt,$c(Q),Lr,Vr,He)}if(lt.flags&8192)return W.createComputedPropertyName($0(lt.symbol,Te,111551))}}function WZ(Xe){let Te=Xe.mustCreateTypeParameterSymbolList,Lr=Xe.mustCreateTypeParametersNamesLookups;Xe.mustCreateTypeParameterSymbolList=!0,Xe.mustCreateTypeParametersNamesLookups=!0;let Vr=Xe.typeParameterNames,He=Xe.typeParameterNamesByText,lt=Xe.typeParameterNamesByTextNextNameCount,Nt=Xe.typeParameterSymbolList;return()=>{Xe.typeParameterNames=Vr,Xe.typeParameterNamesByText=He,Xe.typeParameterNamesByTextNextNameCount=lt,Xe.typeParameterSymbolList=Nt,Xe.mustCreateTypeParameterSymbolList=Te,Xe.mustCreateTypeParametersNamesLookups=Lr}}function vr(Xe,Te){return Xe.declarations&&wt(Xe.declarations,Lr=>!!Pwt(Lr)&&(!Te||!!fn(Lr,Vr=>Vr===Te)))}function hn(Xe,Te){if(!(ro(Te)&4)||!Ug(Xe))return!0;Exe(Xe);let Lr=Ki(Xe).resolvedSymbol,Vr=Lr&&Tu(Lr);return!Vr||Vr!==Te.target?!0:te(Xe.typeArguments)>=qb(Te.target.typeParameters)}function Un(Xe){for(;Ki(Xe).fakeScopeForSignatureDeclaration;)Xe=Xe.parent;return Xe}function ui(Xe,Te,Lr){return Lr.flags&8192&&Lr.symbol===Xe&&(!Te.enclosingDeclaration||Pt(Xe.declarations,He=>Pn(He)===Te.enclosingFile))&&(Te.flags|=1048576),kr(Lr,Te)}function Vi(Xe,Te,Lr,Vr){var He;let lt,Nt=Te&&(wa(Te)||Uy(Te))&&Ace(Te,Xe.enclosingDeclaration),fr=Te??Vr.valueDeclaration??vr(Vr)??((He=Vr.declarations)==null?void 0:He[0]);if(!Jt(Lr,Xe)&&fr){let jr=fe(Xe,Vr,Lr);tC(fr)?lt=Ve.serializeTypeOfAccessor(fr,Vr,Xe):Ane(fr)&&!fu(fr)&&!(ro(Lr)&196608)&&(lt=Ve.serializeTypeOfDeclaration(fr,Vr,Xe)),jr()}return lt||(Nt&&(Lr=nD(Lr)),lt=ui(Vr,Xe,Lr)),lt??W.createKeywordTypeNode(133)}function No(Xe,Te,Lr){return Lr===Te?!0:Xe&&((Zm(Xe)||ps(Xe))&&Xe.questionToken||wa(Xe)&&dxe(Xe))?M0(Te,524288)===Lr:!1}function wc(Xe,Te){let Lr=Xe.flags&256,Vr=Ue(Xe);Lr&&(Xe.flags&=-257);let He,lt=Tl(Te);if(!(Lr&&Mi(lt))){if(Te.declaration&&!fu(Te.declaration)&&!Jt(lt,Xe)){let Nt=$i(Te.declaration),fr=fe(Xe,Nt,lt);He=Ve.serializeReturnTypeForSignature(Te.declaration,Nt,Xe),fr()}He||(He=Nc(Xe,Te,lt))}return!He&&!Lr&&(He=W.createKeywordTypeNode(133)),Vr(),He}function Nc(Xe,Te,Lr){let Vr=Xe.suppressReportInferenceFallback;Xe.suppressReportInferenceFallback=!0;let He=F0(Te),lt=He?Rm(Xe.mapper?tkt(He,Xe.mapper):He,Xe):kr(Lr,Xe);return Xe.suppressReportInferenceFallback=Vr,lt}function yu(Xe,Te,Lr=Te.enclosingDeclaration){let Vr=!1,He=_h(Xe);if(Ei(Xe)&&(q4(He)||Fx(He.parent)||dh(He.parent)&&qme(He.parent.left)&&q4(He.parent.right)))return Vr=!0,{introducesError:Vr,node:Xe};let lt=Iq(Xe),Nt;if(pC(He))return Nt=$i(Hm(He,!1,!1)),GC(Nt,He,lt,!1).accessibility!==0&&(Vr=!0,Te.tracker.reportInaccessibleThisError()),{introducesError:Vr,node:fr(Xe)};if(Nt=jp(He,lt,!0,!0),Te.enclosingDeclaration&&!(Nt&&Nt.flags&262144)){Nt=Wt(Nt);let jr=jp(He,lt,!0,!0,Te.enclosingDeclaration);if(jr===ye||jr===void 0&&Nt!==void 0||jr&&Nt&&!Pe(Wt(jr),Nt))return jr!==ye&&Te.tracker.reportInferenceFallback(Xe),Vr=!0,{introducesError:Vr,node:Xe,sym:Nt};Nt=jr}if(Nt)return Nt.flags&1&&Nt.valueDeclaration&&(hA(Nt.valueDeclaration)||Uy(Nt.valueDeclaration))?{introducesError:Vr,node:fr(Xe)}:(!(Nt.flags&262144)&&!Eb(Xe)&&GC(Nt,Lr,lt,!1).accessibility!==0?(Te.tracker.reportInferenceFallback(Xe),Vr=!0):Te.tracker.trackSymbol(Nt,Lr,lt),{introducesError:Vr,node:fr(Xe)});return{introducesError:Vr,node:Xe};function fr(jr){if(jr===He){let Jr=Tu(Nt),Gn=Nt.flags&262144?gp(Jr,Te):W.cloneNode(jr);return Gn.symbol=Nt,m(Te,Ai(Gn,16777216),jr)}let gr=Dn(jr,Jr=>fr(Jr),void 0);return m(Te,gr,jr)}}function Rd(Xe,Te,Lr,Vr){let He=Lr?111551:788968,lt=jp(Te,He,!0);if(!lt)return;let Nt=lt.flags&2097152?df(lt):lt;if(GC(lt,Xe.enclosingDeclaration,He,!1).accessibility===0)return Ul(Nt,Xe,He,Vr)}function Lm(Xe,Te){let Lr=p(Xe,Te,!0);if(!Lr)return!1;if(Ei(Te)&&jT(Te)){WEt(Te);let Vr=Ki(Te).resolvedSymbol;return!Vr||!(!Te.isTypeOf&&!(Vr.flags&788968)||!(te(Te.typeArguments)>=qb(Dc(Vr))))}if(Ug(Te)){if(z1(Te))return!1;let Vr=Ki(Te).resolvedSymbol;if(!Vr)return!1;if(Vr.flags&262144){let He=Tu(Vr);return!(Xe.mapper&&XE(He,Xe.mapper)!==He)}if(gU(Te))return hn(Te,Lr)&&!nEt(Te)&&!!(Vr.flags&788968)}if(bA(Te)&&Te.operator===158&&Te.type.kind===155){let Vr=Xe.enclosingDeclaration&&Un(Xe.enclosingDeclaration);return!!fn(Te,He=>He===Vr)}return!0}function Yh(Xe,Te,Lr){let Vr=p(Xe,Te);if(Lr&&!j0(Vr,He=>!!(He.flags&32768))&&Lm(Xe,Te)){let He=Ve.tryReuseExistingTypeNode(Xe,Te);if(He)return W.createUnionTypeNode([He,W.createKeywordTypeNode(157)])}return kr(Vr,Xe)}function Pw(Xe,Te){var Lr;let Vr=Gwt(W.createPropertyDeclaration,175,!0),He=Gwt((Yt,ci,Ro,Jo)=>W.createPropertySignature(Yt,ci,Ro,Jo),174,!1),lt=Te.enclosingDeclaration,Nt=[],fr=new Set,jr=[],gr=Te;Te={...gr,usedSymbolNames:new Set(gr.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Lr=gr.remappedSymbolReferences)==null?void 0:Lr.entries()),tracker:void 0};let Jr={...gr.tracker.inner,trackSymbol:(Yt,ci,Ro)=>{var Jo,Li;if((Jo=Te.remappedSymbolNames)!=null&&Jo.has(hc(Yt)))return!1;if(GC(Yt,ci,Ro,!1).accessibility===0){let Mc=Rl(Yt,Te,Ro);if(!(Yt.flags&4)){let Ns=Mc[0],Yo=Pn(gr.enclosingDeclaration);Pt(Ns.declarations,fc=>Pn(fc)===Yo)&&Kc(Ns)}}else if((Li=gr.tracker.inner)!=null&&Li.trackSymbol)return gr.tracker.inner.trackSymbol(Yt,ci,Ro);return!1}};Te.tracker=new I8e(Te,Jr,gr.tracker.moduleResolverHost),Ad(Xe,(Yt,ci)=>{let Ro=oa(ci);Hb(Yt,Ro)});let Gn=!Te.bundled,Si=Xe.get("export=");return Si&&Xe.size>1&&Si.flags&2098688&&(Xe=ic(),Xe.set("export=",Si)),Gi(Xe),ss(Nt);function Ui(Yt){return!!Yt&&Yt.kind===80}function Io(Yt){return h_(Yt)?yr(Cr(Yt.declarationList.declarations,cs),Ui):yr([cs(Yt)],Ui)}function bo(Yt){let ci=wt(Yt,Xu),Ro=hr(Yt,I_),Jo=Ro!==-1?Yt[Ro]:void 0;if(Jo&&ci&&ci.isExportEquals&&ct(ci.expression)&&ct(Jo.name)&&Zi(Jo.name)===Zi(ci.expression)&&Jo.body&&wS(Jo.body)){let Li=yr(Yt,Ns=>!!(tm(Ns)&32)),Tc=Jo.name,Mc=Jo.body;if(te(Li)&&(Jo=W.updateModuleDeclaration(Jo,Jo.modifiers,Jo.name,Mc=W.updateModuleBlock(Mc,W.createNodeArray([...Jo.body.statements,W.createExportDeclaration(void 0,!1,W.createNamedExports(Cr(an(Li,Ns=>Io(Ns)),Ns=>W.createExportSpecifier(!1,void 0,Ns))),void 0)]))),Yt=[...Yt.slice(0,Ro),Jo,...Yt.slice(Ro+1)]),!wt(Yt,Ns=>Ns!==Jo&&wO(Ns,Tc))){Nt=[];let Ns=!Pt(Mc.statements,Yo=>ko(Yo,32)||Xu(Yo)||P_(Yo));X(Mc.statements,Yo=>{ls(Yo,Ns?32:0)}),Yt=[...yr(Yt,Yo=>Yo!==Jo&&Yo!==ci),...Nt]}}return Yt}function ti(Yt){let ci=yr(Yt,Jo=>P_(Jo)&&!Jo.moduleSpecifier&&!!Jo.exportClause&&k0(Jo.exportClause));te(ci)>1&&(Yt=[...yr(Yt,Li=>!P_(Li)||!!Li.moduleSpecifier||!Li.exportClause),W.createExportDeclaration(void 0,!1,W.createNamedExports(an(ci,Li=>Ba(Li.exportClause,k0).elements)),void 0)]);let Ro=yr(Yt,Jo=>P_(Jo)&&!!Jo.moduleSpecifier&&!!Jo.exportClause&&k0(Jo.exportClause));if(te(Ro)>1){let Jo=Pg(Ro,Li=>Ic(Li.moduleSpecifier)?">"+Li.moduleSpecifier.text:">");if(Jo.length!==Ro.length)for(let Li of Jo)Li.length>1&&(Yt=[...yr(Yt,Tc=>!Li.includes(Tc)),W.createExportDeclaration(void 0,!1,W.createNamedExports(an(Li,Tc=>Ba(Tc.exportClause,k0).elements)),Li[0].moduleSpecifier)])}return Yt}function qo(Yt){let ci=hr(Yt,Ro=>P_(Ro)&&!Ro.moduleSpecifier&&!Ro.attributes&&!!Ro.exportClause&&k0(Ro.exportClause));if(ci>=0){let Ro=Yt[ci],Jo=Wn(Ro.exportClause.elements,Li=>{if(!Li.propertyName&&Li.name.kind!==11){let Tc=Li.name,Mc=zp(Yt),Ns=yr(Mc,Yo=>wO(Yt[Yo],Tc));if(te(Ns)&&ht(Ns,Yo=>kH(Yt[Yo]))){for(let Yo of Ns)Yt[Yo]=rl(Yt[Yo]);return}}return Li});te(Jo)?Yt[ci]=W.updateExportDeclaration(Ro,Ro.modifiers,Ro.isTypeOnly,W.updateNamedExports(Ro.exportClause,Jo),Ro.moduleSpecifier,Ro.attributes):R1(Yt,ci)}return Yt}function ss(Yt){return Yt=bo(Yt),Yt=ti(Yt),Yt=qo(Yt),lt&&(Ta(lt)&&Lg(lt)||I_(lt))&&(!Pt(Yt,dG)||!OPe(Yt)&&Pt(Yt,Vte))&&Yt.push(qH(W)),Yt}function rl(Yt){let ci=(tm(Yt)|32)&-129;return W.replaceModifiers(Yt,ci)}function Zr(Yt){let ci=tm(Yt)&-33;return W.replaceModifiers(Yt,ci)}function Gi(Yt,ci,Ro){ci||jr.push(new Map);let Jo=0,Li=Array.from(Yt.values());for(let Tc of Li){if(Jo++,Me(Te)&&Jo+2{ys(Tc,!0,!!Ro)}),jr.pop())}function ys(Yt,ci,Ro){$l(di(Yt));let Jo=cl(Yt);if(fr.has(hc(Jo)))return;if(fr.add(hc(Jo)),!ci||te(Yt.declarations)&&Pt(Yt.declarations,Tc=>!!fn(Tc,Mc=>Mc===lt))){let Tc=WZ(Te);Te.tracker.pushErrorFallbackNode(wt(Yt.declarations,Mc=>Pn(Mc)===Te.enclosingFile)),Qa(Yt,ci,Ro),Te.tracker.popErrorFallbackNode(),Tc()}}function Qa(Yt,ci,Ro,Jo=Yt.escapedName){var Li,Tc,Mc,Ns,Yo,fc,ad;let up=oa(Jo),_m=Jo==="default";if(ci&&!(Te.flags&131072)&&HO(up)&&!_m){Te.encounteredError=!0;return}let Xp=_m&&!!(Yt.flags&-113||Yt.flags&16&&te($l(di(Yt))))&&!(Yt.flags&2097152),Uu=!Xp&&!ci&&HO(up)&&!_m;(Xp||Uu)&&(ci=!0);let Ap=(ci?0:32)|(_m&&!Xp?2048:0),$p=Yt.flags&1536&&Yt.flags&7&&Jo!=="export=",i0=$p&&aze(di(Yt),Yt);if((Yt.flags&8208||i0)&&cD(di(Yt),Yt,Hb(Yt,up),Ap),Yt.flags&524288&&id(Yt,up,Ap),Yt.flags&98311&&Jo!=="export="&&!(Yt.flags&4194304)&&!(Yt.flags&32)&&!(Yt.flags&8192)&&!i0)if(Ro)Nce(Yt)&&(Uu=!1,Xp=!1);else{let L_=di(Yt),Ch=Hb(Yt,up);if(L_.symbol&&L_.symbol!==Yt&&L_.symbol.flags&16&&Pt(L_.symbol.declarations,mC)&&((Li=L_.symbol.members)!=null&&Li.size||(Tc=L_.symbol.exports)!=null&&Tc.size))Te.remappedSymbolReferences||(Te.remappedSymbolReferences=new Map),Te.remappedSymbolReferences.set(hc(L_.symbol),Yt),Qa(L_.symbol,ci,Ro,Jo),Te.remappedSymbolReferences.delete(hc(L_.symbol));else if(!(Yt.flags&16)&&aze(L_,Yt))cD(L_,Yt,Ch,Ap);else{let nk=Yt.flags&2?F7(Yt)?2:1:(Mc=Yt.parent)!=null&&Mc.valueDeclaration&&Ta((Ns=Yt.parent)==null?void 0:Ns.valueDeclaration)?2:void 0,o0=Xp||!(Yt.flags&4)?Ch:Fce(Ch,Yt),_T=Yt.declarations&&wt(Yt.declarations,uD=>Oo(uD));_T&&Df(_T.parent)&&_T.parent.declarations.length===1&&(_T=_T.parent.parent);let lD=(Yo=Yt.declarations)==null?void 0:Yo.find(no);if(lD&&wi(lD.parent)&&ct(lD.parent.right)&&((fc=L_.symbol)!=null&&fc.valueDeclaration)&&Ta(L_.symbol.valueDeclaration)){let uD=Ch===lD.parent.right.escapedText?void 0:lD.parent.right;Te.approximateLength+=12+(((ad=uD?.escapedText)==null?void 0:ad.length)??0),ls(W.createExportDeclaration(void 0,!1,W.createNamedExports([W.createExportSpecifier(!1,uD,Ch)])),0),Te.tracker.trackSymbol(L_.symbol,Te.enclosingDeclaration,111551)}else{let uD=m(Te,W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(o0,void 0,Vi(Te,void 0,L_,Yt))],nk)),_T);Te.approximateLength+=7+o0.length,ls(uD,o0!==Ch?Ap&-33:Ap),o0!==Ch&&!ci&&(Te.approximateLength+=16+o0.length+Ch.length,ls(W.createExportDeclaration(void 0,!1,W.createNamedExports([W.createExportSpecifier(!1,o0,Ch)])),0),Uu=!1,Xp=!1)}}}if(Yt.flags&384&&m6(Yt,up,Ap),Yt.flags&32&&(Yt.flags&4&&Yt.valueDeclaration&&wi(Yt.valueDeclaration.parent)&&w_(Yt.valueDeclaration.parent.right)?Wwt(Yt,Hb(Yt,up),Ap):ize(Yt,Hb(Yt,up),Ap)),(Yt.flags&1536&&(!$p||C2(Yt))||i0)&&Ow(Yt,up,Ap),Yt.flags&64&&!(Yt.flags&32)&&od(Yt,up,Ap),Yt.flags&2097152&&Wwt(Yt,Hb(Yt,up),Ap),Yt.flags&4&&Yt.escapedName==="export="&&Nce(Yt),Yt.flags&8388608&&Yt.declarations)for(let L_ of Yt.declarations){let Ch=Nm(L_,L_.moduleSpecifier);if(!Ch)continue;let nk=L_.isTypeOnly,o0=y_(Ch,Te);Te.approximateLength+=17+o0.length,ls(W.createExportDeclaration(void 0,nk,void 0,W.createStringLiteral(o0)),0)}if(Xp){let L_=Hb(Yt,up);Te.approximateLength+=16+L_.length,ls(W.createExportAssignment(void 0,!1,W.createIdentifier(L_)),0)}else if(Uu){let L_=Hb(Yt,up);Te.approximateLength+=22+up.length+L_.length,ls(W.createExportDeclaration(void 0,!1,W.createNamedExports([W.createExportSpecifier(!1,L_,up)])),0)}}function Kc(Yt){if(Pt(Yt.declarations,hA))return;$.assertIsDefined(jr[jr.length-1]),Fce(oa(Yt.escapedName),Yt);let ci=!!(Yt.flags&2097152)&&!Pt(Yt.declarations,Ro=>!!fn(Ro,P_)||Db(Ro)||gd(Ro)&&!WT(Ro.moduleReference));jr[ci?0:jr.length-1].set(hc(Yt),Yt)}function kl(Yt){return Ta(Yt)&&(Lg(Yt)||h0(Yt))||Gm(Yt)&&!xb(Yt)}function ls(Yt,ci){if(l1(Yt)){let Ro=tm(Yt),Jo=0,Li=Te.enclosingDeclaration&&(n1(Te.enclosingDeclaration)?Pn(Te.enclosingDeclaration):Te.enclosingDeclaration);ci&32&&Li&&(kl(Li)||I_(Li))&&kH(Yt)&&(Jo|=32),Gn&&!(Jo&32)&&(!Li||!(Li.flags&33554432))&&(CA(Yt)||h_(Yt)||i_(Yt)||ed(Yt)||I_(Yt))&&(Jo|=128),ci&2048&&(ed(Yt)||Af(Yt)||i_(Yt))&&(Jo|=2048),Jo&&(Yt=W.replaceModifiers(Yt,Jo|Ro)),Te.approximateLength+=Oce(Jo|Ro)}Nt.push(Yt)}function id(Yt,ci,Ro){var Jo;let Li=a2t(Yt),Tc=io(Yt).typeParameters,Mc=Cr(Tc,Xp=>Zp(Xp,Te)),Ns=(Jo=Yt.declarations)==null?void 0:Jo.find(n1),Yo=oG(Ns?Ns.comment||Ns.parent.comment:void 0),fc=Ue(Te);Te.flags|=8388608;let ad=Te.enclosingDeclaration;Te.enclosingDeclaration=Ns;let up=Ns&&Ns.typeExpression&&AA(Ns.typeExpression)&&Ve.tryReuseExistingTypeNode(Te,Ns.typeExpression.type)||kr(Li,Te),_m=Hb(Yt,ci);Te.approximateLength+=8+(Yo?.length??0)+_m.length,ls(SA(W.createTypeAliasDeclaration(void 0,_m,Mc,up),Yo?[{kind:3,text:`* + * `+Yo.replace(/\n/g,` + * `)+` + `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Ro),fc(),Te.enclosingDeclaration=ad}function od(Yt,ci,Ro){let Jo=Hb(Yt,ci);Te.approximateLength+=14+Jo.length;let Li=O0(Yt),Tc=Dc(Yt),Mc=Cr(Tc,Uu=>Zp(Uu,Te)),Ns=ov(Li),Yo=te(Ns)?Ac(Ns):void 0,fc=Qf($l(Li),!1,Yo),ad=sze(0,Li,Yo,180),up=sze(1,Li,Yo,181),_m=Kwt(Li,Yo),Xp=te(Ns)?[W.createHeritageClause(96,Wn(Ns,Uu=>cze(Uu,111551)))]:void 0;ls(W.createInterfaceDeclaration(void 0,Jo,Mc,Xp,[..._m,...up,...ad,...fc]),Ro)}function Qf(Yt,ci,Ro,Jo){let Li=[],Tc=0;for(let Mc of Yt){if(Tc++,Me(Te)&&Tc+2XM(Jo)&&Jd(Jo.escapedName,99))}function C2(Yt){return ht(kh(Yt),ci=>!(Zh(O_(ci))&111551))}function Ow(Yt,ci,Ro){let Jo=kh(Yt),Li=Nw(Te),Tc=tu(Jo,Yo=>Yo.parent&&Yo.parent===Yt||Li?"real":"merged"),Mc=Tc.get("real")||j,Ns=Tc.get("merged")||j;if(te(Mc)||Li){let Yo;if(Li){let fc=Te.flags;Te.flags|=514,Yo=v(Yt,Te,-1),Te.flags=fc}else{let fc=Hb(Yt,ci);Yo=W.createIdentifier(fc),Te.approximateLength+=fc.length}Gb(Mc,Yo,Ro,!!(Yt.flags&67108880))}if(te(Ns)){let Yo=Pn(Te.enclosingDeclaration),fc=Hb(Yt,ci),ad=W.createModuleBlock([W.createExportDeclaration(void 0,!1,W.createNamedExports(Wn(yr(Ns,up=>up.escapedName!=="export="),up=>{var _m,Xp;let Uu=oa(up.escapedName),Ap=Hb(up,Uu),$p=up.declarations&&Qh(up);if(Yo&&($p?Yo!==Pn($p):!Pt(up.declarations,Ch=>Pn(Ch)===Yo))){(Xp=(_m=Te.tracker)==null?void 0:_m.reportNonlocalAugmentation)==null||Xp.call(_m,Yo,Yt,up);return}let i0=$p&&uw($p,!0);Kc(i0||up);let L_=i0?Hb(i0,oa(i0.escapedName)):Ap;return W.createExportSpecifier(!1,Uu===L_?void 0:L_,Uu)})))]);ls(W.createModuleDeclaration(void 0,W.createIdentifier(fc),ad,32),0)}}function m6(Yt,ci,Ro){let Jo=Hb(Yt,ci);Te.approximateLength+=9+Jo.length;let Li=[],Tc=yr($l(di(Yt)),Ns=>!!(Ns.flags&8)),Mc=0;for(let Ns of Tc){if(Mc++,Me(Te)&&Mc+2!te($p.declarations)||Pt($p.declarations,i0=>Pn(i0)===Pn(Te.enclosingDeclaration))||Tc?"local":"remote").get("local")||j,Yo=PA.createModuleDeclaration(void 0,ci,W.createModuleBlock([]),Li);xl(Yo,lt),Yo.locals=ic(Yt),Yo.symbol=Yt[0].parent;let fc=Nt;Nt=[];let ad=Gn;Gn=!1;let up={...Te,enclosingDeclaration:Yo},_m=Te;Te=up,Gi(ic(Ns),Jo,!0),Te=_m,Gn=ad;let Xp=Nt;Nt=fc;let Uu=Cr(Xp,$p=>Xu($p)&&!$p.isExportEquals&&ct($p.expression)?W.createExportDeclaration(void 0,!1,W.createNamedExports([W.createExportSpecifier(!1,$p.expression,W.createIdentifier("default"))])):$p),Ap=ht(Uu,$p=>ko($p,32))?Cr(Uu,Zr):Uu;Yo=W.updateModuleDeclaration(Yo,Yo.modifiers,Yo.name,W.createModuleBlock(Ap)),ls(Yo,Ro)}else Tc&&(Te.approximateLength+=14,ls(W.createModuleDeclaration(void 0,ci,W.createModuleBlock([]),Li),Ro))}function XM(Yt){return!!(Yt.flags&2887656)||!(Yt.flags&4194304||Yt.escapedName==="prototype"||Yt.valueDeclaration&&oc(Yt.valueDeclaration)&&Co(Yt.valueDeclaration.parent))}function Pce(Yt){let ci=Wn(Yt,Ro=>{let Jo=Te.enclosingDeclaration;Te.enclosingDeclaration=Ro;let Li=Ro.expression;if(ru(Li)){if(ct(Li)&&Zi(Li)==="")return Tc(void 0);let Mc;if({introducesError:Mc,node:Li}=yu(Li,Te),Mc)return Tc(void 0)}return Tc(W.createExpressionWithTypeArguments(Li,Cr(Ro.typeArguments,Mc=>Ve.tryReuseExistingTypeNode(Te,Mc)||kr(p(Te,Mc),Te))));function Tc(Mc){return Te.enclosingDeclaration=Jo,Mc}});if(ci.length===Yt.length)return ci}function ize(Yt,ci,Ro){var Jo,Li;Te.approximateLength+=9+ci.length;let Tc=(Jo=Yt.declarations)==null?void 0:Jo.find(Co),Mc=Te.enclosingDeclaration;Te.enclosingDeclaration=Tc||Mc;let Ns=Dc(Yt),Yo=Cr(Ns,ik=>Zp(ik,Te));X(Ns,ik=>Te.approximateLength+=vp(ik.symbol).length);let fc=Yg(O0(Yt)),ad=ov(fc),up=Tc&&ZR(Tc),_m=up&&Pce(up)||Wn(PM(fc),j6r),Xp=di(Yt),Uu=!!((Li=Xp.symbol)!=null&&Li.valueDeclaration)&&Co(Xp.symbol.valueDeclaration),Ap=Uu?d2(Xp):at;Te.approximateLength+=(te(ad)?8:0)+(te(_m)?11:0);let $p=[...te(ad)?[W.createHeritageClause(96,Cr(ad,ik=>M6r(ik,Ap,ci)))]:[],...te(_m)?[W.createHeritageClause(119,_m)]:[]],i0=bIr(fc,ad,$l(fc)),L_=yr(i0,ik=>!Ice(ik)),Ch=Pt(i0,Ice),nk=Ch?Nw(Te)?Qf(yr(i0,Ice),!0,ad[0],!1):[W.createPropertyDeclaration(void 0,W.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:j;Ch&&!Nw(Te)&&(Te.approximateLength+=9);let o0=Qf(L_,!0,ad[0],!1),_T=Qf(yr($l(Xp),ik=>!(ik.flags&4194304)&&ik.escapedName!=="prototype"&&!XM(ik)),!0,Ap,!0),lD=!Uu&&!!Yt.valueDeclaration&&Ei(Yt.valueDeclaration)&&!Pt(Gs(Xp,1));lD&&(Te.approximateLength+=21);let uD=lD?[W.createConstructorDeclaration(W.createModifiersFromModifierFlags(2),[],void 0)]:sze(1,Xp,Ap,177),B6r=Kwt(fc,ad[0]);Te.enclosingDeclaration=Mc,ls(m(Te,W.createClassDeclaration(void 0,ci,Yo,$p,[...B6r,..._T,...uD,...o0,...nk]),Yt.declarations&&yr(Yt.declarations,ik=>ed(ik)||w_(ik))[0]),Ro)}function oze(Yt){return Je(Yt,ci=>{if(Xm(ci)||Cm(ci))return aC(ci.propertyName||ci.name);if(wi(ci)||Xu(ci)){let Ro=Xu(ci)?ci.expression:ci.right;if(no(Ro))return Zi(Ro.name)}if(jE(ci)){let Ro=cs(ci);if(Ro&&ct(Ro))return Zi(Ro)}})}function Wwt(Yt,ci,Ro){var Jo,Li,Tc,Mc,Ns;let Yo=Qh(Yt);if(!Yo)return $.fail();let fc=cl(uw(Yo,!0));if(!fc)return;let ad=bG(fc)&&oze(Yt.declarations)||oa(fc.escapedName);ad==="export="&&Oe&&(ad="default");let up=Hb(fc,ad);switch(Kc(fc),Yo.kind){case 209:if(((Li=(Jo=Yo.parent)==null?void 0:Jo.parent)==null?void 0:Li.kind)===261){let Uu=y_(fc.parent||fc,Te),{propertyName:Ap}=Yo,$p=Ap&&ct(Ap)?Zi(Ap):void 0;Te.approximateLength+=24+ci.length+Uu.length+($p?.length??0),ls(W.createImportDeclaration(void 0,W.createImportClause(void 0,void 0,W.createNamedImports([W.createImportSpecifier(!1,$p?W.createIdentifier($p):void 0,W.createIdentifier(ci))])),W.createStringLiteral(Uu),void 0),0);break}$.failBadSyntaxKind(((Tc=Yo.parent)==null?void 0:Tc.parent)||Yo,"Unhandled binding element grandparent kind in declaration serialization");break;case 305:((Ns=(Mc=Yo.parent)==null?void 0:Mc.parent)==null?void 0:Ns.kind)===227&&dJ(oa(Yt.escapedName),up);break;case 261:if(no(Yo.initializer)){let Uu=Yo.initializer,Ap=W.createUniqueName(ci),$p=y_(fc.parent||fc,Te);Te.approximateLength+=22+$p.length+Zi(Ap).length,ls(W.createImportEqualsDeclaration(void 0,!1,Ap,W.createExternalModuleReference(W.createStringLiteral($p))),0),Te.approximateLength+=12+ci.length+Zi(Ap).length+Zi(Uu.name).length,ls(W.createImportEqualsDeclaration(void 0,!1,W.createIdentifier(ci),W.createQualifiedName(Ap,Uu.name)),Ro);break}case 272:if(fc.escapedName==="export="&&Pt(fc.declarations,Uu=>Ta(Uu)&&h0(Uu))){Nce(Yt);break}let _m=!(fc.flags&512)&&!Oo(Yo);Te.approximateLength+=11+ci.length+oa(fc.escapedName).length,ls(W.createImportEqualsDeclaration(void 0,!1,W.createIdentifier(ci),_m?c_(fc,Te,-1,!1):W.createExternalModuleReference(W.createStringLiteral(y_(fc,Te)))),_m?Ro:0);break;case 271:ls(W.createNamespaceExportDeclaration(Zi(Yo.name)),0);break;case 274:{let Uu=y_(fc.parent||fc,Te),Ap=Te.bundled?W.createStringLiteral(Uu):Yo.parent.moduleSpecifier,$p=fp(Yo.parent)?Yo.parent.attributes:void 0,i0=OS(Yo.parent);Te.approximateLength+=14+ci.length+3+(i0?4:0),ls(W.createImportDeclaration(void 0,W.createImportClause(i0?156:void 0,W.createIdentifier(ci),void 0),Ap,$p),0);break}case 275:{let Uu=y_(fc.parent||fc,Te),Ap=Te.bundled?W.createStringLiteral(Uu):Yo.parent.parent.moduleSpecifier,$p=OS(Yo.parent.parent);Te.approximateLength+=19+ci.length+3+($p?4:0),ls(W.createImportDeclaration(void 0,W.createImportClause($p?156:void 0,void 0,W.createNamespaceImport(W.createIdentifier(ci))),Ap,Yo.parent.attributes),0);break}case 281:Te.approximateLength+=19+ci.length+3,ls(W.createExportDeclaration(void 0,!1,W.createNamespaceExport(W.createIdentifier(ci)),W.createStringLiteral(y_(fc,Te))),0);break;case 277:{let Uu=y_(fc.parent||fc,Te),Ap=Te.bundled?W.createStringLiteral(Uu):Yo.parent.parent.parent.moduleSpecifier,$p=OS(Yo.parent.parent.parent);Te.approximateLength+=19+ci.length+3+($p?4:0),ls(W.createImportDeclaration(void 0,W.createImportClause($p?156:void 0,void 0,W.createNamedImports([W.createImportSpecifier(!1,ci!==ad?W.createIdentifier(ad):void 0,W.createIdentifier(ci))])),Ap,Yo.parent.parent.parent.attributes),0);break}case 282:let Xp=Yo.parent.parent.moduleSpecifier;if(Xp){let Uu=Yo.propertyName;Uu&&bb(Uu)&&(ad="default")}dJ(oa(Yt.escapedName),Xp?ad:up,Xp&&Sl(Xp)?W.createStringLiteral(Xp.text):void 0);break;case 278:Nce(Yt);break;case 227:case 212:case 213:Yt.escapedName==="default"||Yt.escapedName==="export="?Nce(Yt):dJ(ci,up);break;default:return $.failBadSyntaxKind(Yo,"Unhandled alias declaration kind in symbol serializer!")}}function dJ(Yt,ci,Ro){Te.approximateLength+=16+Yt.length+(Yt!==ci?ci.length:0),ls(W.createExportDeclaration(void 0,!1,W.createNamedExports([W.createExportSpecifier(!1,Yt!==ci?ci:void 0,Yt)]),Ro),0)}function Nce(Yt){var ci;if(Yt.flags&4194304)return!1;let Ro=oa(Yt.escapedName),Jo=Ro==="export=",Tc=Jo||Ro==="default",Mc=Yt.declarations&&Qh(Yt),Ns=Mc&&uw(Mc,!0);if(Ns&&te(Ns.declarations)&&Pt(Ns.declarations,Yo=>Pn(Yo)===Pn(lt))){let Yo=Mc&&(Xu(Mc)||wi(Mc)?Xme(Mc):z6e(Mc)),fc=Yo&&ru(Yo)?LIr(Yo):void 0,ad=fc&&jp(fc,-1,!0,!0,lt);(ad||Ns)&&Kc(ad||Ns);let up=Te.tracker.disableTrackSymbol;if(Te.tracker.disableTrackSymbol=!0,Tc)Te.approximateLength+=10,Nt.push(W.createExportAssignment(void 0,Jo,$0(Ns,Te,-1)));else if(fc===Yo&&fc)dJ(Ro,Zi(fc));else if(Yo&&w_(Yo))dJ(Ro,Hb(Ns,vp(Ns)));else{let _m=Fce(Ro,Yt);Te.approximateLength+=_m.length+10,ls(W.createImportEqualsDeclaration(void 0,!1,W.createIdentifier(_m),c_(Ns,Te,-1,!1)),0),dJ(Ro,_m)}return Te.tracker.disableTrackSymbol=up,!0}else{let Yo=Fce(Ro,Yt),fc=ry(di(cl(Yt)));if(aze(fc,Yt))cD(fc,Yt,Yo,Tc?0:32);else{let ad=((ci=Te.enclosingDeclaration)==null?void 0:ci.kind)===268&&(!(Yt.flags&98304)||Yt.flags&65536)?1:2;Te.approximateLength+=Yo.length+5;let up=W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Yo,void 0,Vi(Te,void 0,fc,Yt))],ad));ls(up,Ns&&Ns.flags&4&&Ns.escapedName==="export="?128:Ro===Yo?32:0)}return Tc?(Te.approximateLength+=Yo.length+10,Nt.push(W.createExportAssignment(void 0,Jo,W.createIdentifier(Yo))),!0):Ro!==Yo?(dJ(Ro,Yo),!0):!1}}function aze(Yt,ci){var Ro;let Jo=Pn(Te.enclosingDeclaration);return ro(Yt)&48&&!Pt((Ro=Yt.symbol)==null?void 0:Ro.declarations,Wo)&&!te(lm(Yt))&&!VQ(Yt)&&!!(te(yr($l(Yt),XM))||te(Gs(Yt,0)))&&!te(Gs(Yt,1))&&!vr(ci,lt)&&!(Yt.symbol&&Pt(Yt.symbol.declarations,Li=>Pn(Li)!==Jo))&&!Pt($l(Yt),Li=>QQ(Li.escapedName))&&!Pt($l(Yt),Li=>Pt(Li.declarations,Tc=>Pn(Tc)!==Jo))&&ht($l(Yt),Li=>Jd(vp(Li),re)?Li.flags&98304?Lv(Li)===GE(Li):!0:!1)}function Gwt(Yt,ci,Ro){return function(Li,Tc,Mc){var Ns,Yo,fc,ad,up,_m;let Xp=S0(Li),Uu=!!(Xp&2)&&!Nw(Te);if(Tc&&Li.flags&2887656)return[];if(Li.flags&4194304||Li.escapedName==="constructor"||Mc&&vc(Mc,Li.escapedName)&&Vv(vc(Mc,Li.escapedName))===Vv(Li)&&(Li.flags&16777216)===(vc(Mc,Li.escapedName).flags&16777216)&&cT(di(Li),en(Mc,Li.escapedName)))return[];let Ap=Xp&-1025|(Tc?256:0),$p=pJ(Li,Te),i0=(Ns=Li.declarations)==null?void 0:Ns.find(jf(ps,tC,Oo,Zm,wi,no));if(Li.flags&98304&&Ro){let L_=[];if(Li.flags&65536){let Ch=Li.declarations&&X(Li.declarations,_T=>{if(_T.kind===179)return _T;if(Js(_T)&&J4(_T))return X(_T.arguments[2].properties,lD=>{let uD=cs(lD);if(uD&&ct(uD)&&Zi(uD)==="set")return lD})});$.assert(!!Ch);let nk=lu(Ch)?t0(Ch).parameters[0]:void 0,o0=(Yo=Li.declarations)==null?void 0:Yo.find(hS);Te.approximateLength+=Oce(Ap)+7+(nk?vp(nk).length:5)+(Uu?0:2),L_.push(m(Te,W.createSetAccessorDeclaration(W.createModifiersFromModifierFlags(Ap),$p,[W.createParameterDeclaration(void 0,void 0,nk?ha(nk,Mn(nk),Te):"value",void 0,Uu?void 0:Vi(Te,o0,GE(Li),Li))],void 0),o0??i0))}if(Li.flags&32768){let Ch=(fc=Li.declarations)==null?void 0:fc.find(Ax);Te.approximateLength+=Oce(Ap)+8+(Uu?0:2),L_.push(m(Te,W.createGetAccessorDeclaration(W.createModifiersFromModifierFlags(Ap),$p,[],Uu?void 0:Vi(Te,Ch,di(Li),Li),void 0),Ch??i0))}return L_}else if(Li.flags&98311){let L_=(Vv(Li)?8:0)|Ap;return Te.approximateLength+=2+(Uu?0:2)+Oce(L_),m(Te,Yt(W.createModifiersFromModifierFlags(L_),$p,Li.flags&16777216?W.createToken(58):void 0,Uu?void 0:Vi(Te,(ad=Li.declarations)==null?void 0:ad.find(mg),GE(Li),Li),void 0),((up=Li.declarations)==null?void 0:up.find(jf(ps,Oo)))||i0)}if(Li.flags&8208){let L_=di(Li),Ch=Gs(L_,0);if(Uu){let o0=(Vv(Li)?8:0)|Ap;return Te.approximateLength+=1+Oce(o0),m(Te,Yt(W.createModifiersFromModifierFlags(o0),$p,Li.flags&16777216?W.createToken(58):void 0,void 0,void 0),((_m=Li.declarations)==null?void 0:_m.find(lu))||Ch[0]&&Ch[0].declaration||Li.declarations&&Li.declarations[0])}let nk=[];for(let o0 of Ch){Te.approximateLength+=1;let _T=ho(o0,ci,Te,{name:$p,questionToken:Li.flags&16777216?W.createToken(58):void 0,modifiers:Ap?W.createModifiersFromModifierFlags(Ap):void 0}),lD=o0.declaration&&zG(o0.declaration.parent)?o0.declaration.parent:o0.declaration;nk.push(m(Te,_T,lD))}return nk}return $.fail(`Unhandled class member kind! ${Li.__debugFlags||Li.flags}`)}}function Oce(Yt){let ci=0;return Yt&32&&(ci+=7),Yt&128&&(ci+=8),Yt&2048&&(ci+=8),Yt&4096&&(ci+=6),Yt&1&&(ci+=7),Yt&2&&(ci+=8),Yt&4&&(ci+=10),Yt&64&&(ci+=9),Yt&256&&(ci+=7),Yt&16&&(ci+=9),Yt&8&&(ci+=9),Yt&512&&(ci+=9),Yt&1024&&(ci+=6),Yt&8192&&(ci+=3),Yt&16384&&(ci+=4),ci}function Hwt(Yt,ci){return He(Yt,!1,ci)}function sze(Yt,ci,Ro,Jo){let Li=Gs(ci,Yt);if(Yt===1){if(!Ro&&ht(Li,Ns=>te(Ns.parameters)===0))return[];if(Ro){let Ns=Gs(Ro,1);if(!te(Ns)&&ht(Li,Yo=>te(Yo.parameters)===0))return[];if(Ns.length===Li.length){let Yo=!1;for(let fc=0;fckr(Li,Te)),Jo=$0(Yt.target.symbol,Te,788968)):Yt.symbol&&wq(Yt.symbol,lt,ci)&&(Jo=$0(Yt.symbol,Te,788968)),Jo)return W.createExpressionWithTypeArguments(Jo,Ro)}function j6r(Yt){let ci=cze(Yt,788968);if(ci)return ci;if(Yt.symbol)return W.createExpressionWithTypeArguments($0(Yt.symbol,Te,788968),void 0)}function Fce(Yt,ci){var Ro,Jo;let Li=ci?hc(ci):void 0;if(Li&&Te.remappedSymbolNames.has(Li))return Te.remappedSymbolNames.get(Li);ci&&(Yt=Qwt(ci,Yt));let Tc=0,Mc=Yt;for(;(Ro=Te.usedSymbolNames)!=null&&Ro.has(Yt);)Tc++,Yt=`${Mc}_${Tc}`;return(Jo=Te.usedSymbolNames)==null||Jo.add(Yt),Li&&Te.remappedSymbolNames.set(Li,Yt),Yt}function Qwt(Yt,ci){if(ci==="default"||ci==="__class"||ci==="__function"){let Ro=Ue(Te);Te.flags|=16777216;let Jo=hw(Yt,Te);Ro(),ci=Jo.length>0&&MG(Jo.charCodeAt(0))?i1(Jo):Jo}return ci==="default"?ci="_default":ci==="export="&&(ci="_exports"),ci=Jd(ci,re)&&!HO(ci)?ci:"_"+ci.replace(/[^a-z0-9]/gi,"_"),ci}function Hb(Yt,ci){let Ro=hc(Yt);return Te.remappedSymbolNames.has(Ro)?Te.remappedSymbolNames.get(Ro):(ci=Qwt(Yt,ci),Te.remappedSymbolNames.set(Ro,ci),ci)}}function Nw(Xe){return Xe.maxExpansionDepth!==-1}function Ice(Xe){return!!Xe.valueDeclaration&&Vp(Xe.valueDeclaration)&&Aa(Xe.valueDeclaration.name)}function l2e(Xe){if(Xe.valueDeclaration&&Vp(Xe.valueDeclaration)&&Aa(Xe.valueDeclaration.name))return W.cloneNode(Xe.valueDeclaration.name)}}function wM(o){var p;let m=(ro(o)&4)!==0?o.target.symbol:o.symbol;return Gc(o)||!!((p=m?.declarations)!=null&&p.some(v=>t.isSourceFileDefaultLibrary(Pn(v))))}function jb(o,p,m=16384,v){return v?E(v).getText():jR(E);function E(D){let R=YP(m)|70221824|512,K=Le.typePredicateToTypePredicateNode(o,p,R),se=wP(),ce=p&&Pn(p);return se.writeNode(4,K,ce,D),D}}function WQ(o,p){let m=[],v=0;for(let E=0;Ecs(R)?R:void 0),D=E&&cs(E);if(E&&D){if(Js(E)&&J4(E))return vp(o);if(dc(D)&&!(Fp(o)&4096)){let R=io(o).nameType;if(R&&R.flags&384){let K=Oq(o,p);if(K!==void 0)return K}}return du(D)}if(E||(E=o.declarations[0]),E.parent&&E.parent.kind===261)return du(E.parent.name);switch(E.kind){case 232:case 219:case 220:return p&&!p.encounteredError&&!(p.flags&131072)&&(p.encounteredError=!0),E.kind===232?"(Anonymous class)":"(Anonymous function)"}}let v=Oq(o,p);return v!==void 0?v:vp(o)}function Bb(o){if(o){let m=Ki(o);return m.isVisible===void 0&&(m.isVisible=!!p()),m.isVisible}return!1;function p(){switch(o.kind){case 339:case 347:case 341:return!!(o.parent&&o.parent.parent&&o.parent.parent.parent&&Ta(o.parent.parent.parent));case 209:return Bb(o.parent.parent);case 261:if($s(o.name)&&!o.name.elements.length)return!1;case 268:case 264:case 265:case 266:case 263:case 267:case 272:if(eP(o))return!0;let m=ir(o);return!(c2e(o)&32)&&!(o.kind!==272&&m.kind!==308&&m.flags&33554432)?uE(m):Bb(m);case 173:case 172:case 178:case 179:case 175:case 174:if(Bg(o,6))return!1;case 177:case 181:case 180:case 182:case 170:case 269:case 185:case 186:case 188:case 184:case 189:case 190:case 193:case 194:case 197:case 203:return Bb(o.parent);case 274:case 275:case 277:return!1;case 169:case 308:case 271:return!0;case 278:return!1;default:return!1}}}function IM(o,p){let m;o.kind!==11&&o.parent&&o.parent.kind===278?m=$t(o,o,2998271,void 0,!1):o.parent.kind===282&&(m=u7(o.parent,2998271));let v,E;return m&&(E=new Set,E.add(hc(m)),D(m.declarations)),v;function D(R){X(R,K=>{let se=I0(K)||K;if(p?Ki(K).isVisible=!0:(v=v||[],Zc(v,se)),z4(K)){let ce=K.moduleReference,fe=_h(ce),Ue=$t(K,fe.escapedText,901119,void 0,!1);Ue&&E&&Us(E,hc(Ue))&&D(Ue.declarations)}})}}function WS(o,p){let m=he(o,p);if(m>=0){let{length:v}=Hx;for(let E=m;E=NE;m--){if(Ze(Hx[m],P3[m]))return-1;if(Hx[m]===o&&P3[m]===p)return m}return-1}function Ze(o,p){switch(p){case 0:return!!io(o).type;case 2:return!!io(o).declaredType;case 1:return!!o.resolvedBaseConstructorType;case 3:return!!o.resolvedReturnType;case 4:return!!o.immediateBaseConstraint;case 5:return!!o.resolvedTypeArguments;case 6:return!!o.baseTypesResolved;case 7:return!!io(o).writeType;case 8:return Ki(o).parameterInitializerContainsUndefined!==void 0}return $.assertNever(p)}function kt(){return Hx.pop(),P3.pop(),KA.pop()}function ir(o){return fn(bS(o),p=>{switch(p.kind){case 261:case 262:case 277:case 276:case 275:case 274:return!1;default:return!0}}).parent}function Or(o){let p=Tu(Od(o));return p.typeParameters?f2(p,Cr(p.typeParameters,m=>at)):p}function en(o,p){let m=vc(o,p);return m?di(m):void 0}function _o(o,p){var m;let v;return en(o,p)||(v=(m=D7(o,p))==null?void 0:m.type)&&Om(v,!0,!0)}function Mi(o){return o&&(o.flags&1)!==0}function si(o){return o===Et||!!(o.flags&1&&o.aliasSymbol)}function zo(o,p){if(p!==0)return x7(o,!1,p);let m=$i(o);return m&&io(m).type||x7(o,!1,p)}function La(o,p,m){if(o=G_(o,se=>!(se.flags&98304)),o.flags&131072)return kc;if(o.flags&1048576)return hp(o,se=>La(se,p,m));let v=Do(Cr(p,m2)),E=[],D=[];for(let se of $l(o)){let ce=A7(se,8576);!tc(ce,v)&&!(S0(se)&6)&&Ixe(se)?E.push(se):D.push(ce)}if(uN(o)||pN(v)){if(D.length&&(v=Do([v,...D])),v.flags&131072)return o;let se=Exr();return se?MM(se,[o,v]):Et}let R=ic();for(let se of E)R.set(se.escapedName,kBe(se,!1));let K=mp(m,R,j,j,lm(o));return K.objectFlags|=4194304,K}function hu(o){return!!(o.flags&465829888)&&s_(Gf(o)||er,32768)}function Zl(o){let p=j0(o,hu)?hp(o,m=>m.flags&465829888?HS(m):m):o;return M0(p,524288)}function ll(o,p){let m=N0(o);return m?T2(m,p):p}function N0(o){let p=Yy(o);if(p&&KR(p)&&p.flowNode){let m=JE(o);if(m){let v=qt(PA.createStringLiteral(m),o),E=jh(p)?p:PA.createParenthesizedExpression(p),D=qt(PA.createElementAccessExpression(E,v),o);return xl(v,D),xl(D,o),E!==p&&xl(E,D),D.flowNode=p.flowNode,D}}}function Yy(o){let p=o.parent.parent;switch(p.kind){case 209:case 304:return N0(p);case 210:return N0(o.parent);case 261:return p.initializer;case 227:return p.right}}function JE(o){let p=o.parent;return o.kind===209&&p.kind===207?VE(o.propertyName||o.name):o.kind===304||o.kind===305?VE(o.name):""+p.elements.indexOf(o)}function VE(o){let p=m2(o);return p.flags&384?""+p.value:void 0}function tT(o){let p=o.dotDotDotToken?32:0,m=zo(o.parent.parent,p);return m&&KC(o,m,!1)}function KC(o,p,m){if(Mi(p))return p;let v=o.parent;be&&o.flags&33554432&&hA(o)?p=b2(p):be&&v.parent.initializer&&!Uv(eCt(v.parent.initializer),65536)&&(p=M0(p,524288));let E=32|(m||L7(o)?16:0),D;if(v.kind===207)if(o.dotDotDotToken){if(p=S1(p),p.flags&2||!Xse(p))return gt(o,x.Rest_types_may_only_be_created_from_object_types),Et;let R=[];for(let K of v.elements)K.dotDotDotToken||R.push(K.propertyName||K.name);D=La(p,R,o.symbol)}else{let R=o.propertyName||o.name,K=m2(R),se=ey(p,K,E,R);D=ll(o,se)}else{let R=tk(65|(o.dotDotDotToken?0:128),p,Ne,v),K=v.elements.indexOf(o);if(o.dotDotDotToken){let se=hp(p,ce=>ce.flags&58982400?HS(ce):ce);D=bg(se,Gc)?hp(se,ce=>Wq(ce,K)):um(R)}else if(YE(p)){let se=Bv(K),ce=YC(p,se,E,o.name)||Et;D=ll(o,ce)}else D=R}return o.initializer?X_(Pr(o))?be&&!Uv(rJ(o,0),16777216)?Zl(D):D:SUe(o,Do([Zl(D),rJ(o,0)],2)):D}function gl(o){let p=hv(o);if(p)return Sa(p)}function Sd(o){let p=bl(o,!0);return p.kind===106||p.kind===80&&Fm(p)===ke}function WE(o){let p=bl(o,!0);return p.kind===210&&p.elements.length===0}function Om(o,p=!1,m=!0){return be&&m?nD(o,p):o}function x7(o,p,m){if(Oo(o)&&o.parent.parent.kind===250){let R=KS(U$e(Va(o.parent.parent.expression,m)));return R.flags&4456448?FEt(R):Mt}if(Oo(o)&&o.parent.parent.kind===251){let R=o.parent.parent;return Tce(R)||at}if($s(o.parent))return tT(o);let v=ps(o)&&!xS(o)||Zm(o)||tNe(o),E=p&&sF(o),D=ZC(o);if(kme(o))return D?Mi(D)||D===er?D:Et:de?er:at;if(D)return Om(D,v,E);if((Fe||Ei(o))&&Oo(o)&&!$s(o.name)&&!(c2e(o)&32)&&!(o.flags&33554432)){if(!(f6(o)&6)&&(!o.initializer||Sd(o.initializer)))return Zt;if(o.initializer&&WE(o.initializer))return uf}if(wa(o)){if(!o.symbol)return;let R=o.parent;if(R.kind===179&&OM(R)){let ce=Qu($i(o.parent),178);if(ce){let fe=t0(ce),Ue=tze(R);return Ue&&o===Ue?($.assert(!Ue.type),di(fe.thisParameter)):Tl(fe)}}let K=Hbr(R,o);if(K)return K;let se=o.symbol.escapedName==="this"?D$e(R):PCt(o);if(se)return Om(se,!1,E)}if(j4(o)&&o.initializer){if(Ei(o)&&!wa(o)){let K=Fr(o,$i(o),vU(o));if(K)return K}let R=SUe(o,rJ(o,m));return Om(R,v,E)}if(ps(o)&&(Fe||Ei(o)))if(fd(o)){let R=yr(o.parent.members,n_),K=R.length?q(o.symbol,R):tm(o)&128?Uxe(o.symbol):void 0;return K&&Om(K,!0,E)}else{let R=AH(o.parent),K=R?oe(o.symbol,R):tm(o)&128?Uxe(o.symbol):void 0;return K&&Om(K,!0,E)}if(NS(o))return Rt;if($s(o.name))return Fq(o.name,!1,!0)}function rT(o){if(o.valueDeclaration&&wi(o.valueDeclaration)){let p=io(o);return p.isConstructorDeclaredProperty===void 0&&(p.isConstructorDeclaredProperty=!1,p.isConstructorDeclaredProperty=!!yi(o)&&ht(o.declarations,m=>wi(m)&&_Te(m)&&(m.left.kind!==213||jy(m.left.argumentExpression))&&!ji(void 0,m,o,m))),p.isConstructorDeclaredProperty}return!1}function $b(o){let p=o.valueDeclaration;return p&&ps(p)&&!X_(p)&&!p.initializer&&(Fe||Ei(p))}function yi(o){if(o.declarations)for(let p of o.declarations){let m=Hm(p,!1,!1);if(m&&(m.kind===177||XS(m)))return m}}function P(o){let p=Pn(o.declarations[0]),m=oa(o.escapedName),v=o.declarations.every(D=>Ei(D)&&wu(D)&&Fx(D.expression)),E=v?W.createPropertyAccessExpression(W.createPropertyAccessExpression(W.createIdentifier("module"),W.createIdentifier("exports")),m):W.createPropertyAccessExpression(W.createIdentifier("exports"),m);return v&&xl(E.expression.expression,E.expression),xl(E.expression,E),xl(E,p),E.flowNode=p.endFlowNode,T2(E,Zt,Ne)}function q(o,p){let m=Ca(o.escapedName,"__#")?W.createPrivateIdentifier(o.escapedName.split("@")[1]):oa(o.escapedName);for(let v of p){let E=W.createPropertyAccessExpression(W.createThis(),m);xl(E.expression,E),xl(E,v),E.flowNode=v.returnFlowNode;let D=we(E,o);if(Fe&&(D===Zt||D===uf)&>(o.valueDeclaration,x.Member_0_implicitly_has_an_1_type,Ua(o),ri(D)),!bg(D,tce))return $Z(D)}}function oe(o,p){let m=Ca(o.escapedName,"__#")?W.createPrivateIdentifier(o.escapedName.split("@")[1]):oa(o.escapedName),v=W.createPropertyAccessExpression(W.createThis(),m);xl(v.expression,v),xl(v,p),v.flowNode=p.returnFlowNode;let E=we(v,o);return Fe&&(E===Zt||E===uf)&>(o.valueDeclaration,x.Member_0_implicitly_has_an_1_type,Ua(o),ri(E)),bg(E,tce)?void 0:$Z(E)}function we(o,p){let m=p?.valueDeclaration&&(!$b(p)||tm(p.valueDeclaration)&128)&&Uxe(p)||Ne;return T2(o,Zt,m)}function Tt(o,p){let m=zO(o.valueDeclaration);if(m){let K=Ei(m)?mv(m):void 0;return K&&K.typeExpression?Sa(K.typeExpression):o.valueDeclaration&&Fr(o.valueDeclaration,o,m)||Cw(Bp(m))}let v,E=!1,D=!1;if(rT(o)&&(v=oe(o,yi(o))),!v){let K;if(o.declarations){let se;for(let ce of o.declarations){let fe=wi(ce)||Js(ce)?ce:wu(ce)?wi(ce.parent)?ce.parent:ce:void 0;if(!fe)continue;let Ue=wu(fe)?UG(fe):m_(fe);(Ue===4||wi(fe)&&_Te(fe,Ue))&&(Sy(fe)?E=!0:D=!0),Js(fe)||(se=ji(se,fe,o,ce)),se||(K||(K=[])).push(wi(fe)||Js(fe)?ds(o,p,fe,Ue):tn)}v=se}if(!v){if(!te(K))return Et;let se=E&&o.declarations?QC(K,o.declarations):void 0;if(D){let fe=Uxe(o);fe&&((se||(se=[])).push(fe),E=!0)}let ce=Pt(se,fe=>!!(fe.flags&-98305))?se:K;v=Do(ce)}}let R=ry(Om(v,!1,D&&!E));return o.valueDeclaration&&Ei(o.valueDeclaration)&&G_(R,K=>!!(K.flags&-98305))===tn?(Dw(o.valueDeclaration,at),at):R}function Fr(o,p,m){var v,E;if(!Ei(o)||!m||!Lc(m)||m.properties.length)return;let D=ic();for(;wi(o)||no(o);){let se=Xy(o);(v=se?.exports)!=null&&v.size&&qS(D,se.exports),o=wi(o)?o.parent:o.parent.parent}let R=Xy(o);(E=R?.exports)!=null&&E.size&&qS(D,R.exports);let K=mp(p,D,j,j,j);return K.objectFlags|=4096,K}function ji(o,p,m,v){var E;let D=X_(p.parent);if(D){let R=ry(Sa(D));if(o)!si(o)&&!si(R)&&!cT(o,R)&&BAt(void 0,o,v,R);else return R}if((E=m.parent)!=null&&E.valueDeclaration){let R=_w(m.parent);if(R.valueDeclaration){let K=X_(R.valueDeclaration);if(K){let se=vc(Sa(K),m.escapedName);if(se)return Lv(se)}}}return o}function ds(o,p,m,v){if(Js(m)){if(p)return di(p);let R=Bp(m.arguments[2]),K=en(R,"value");if(K)return K;let se=en(R,"get");if(se){let fe=TN(se);if(fe)return Tl(fe)}let ce=en(R,"set");if(ce){let fe=TN(ce);if(fe)return uUe(fe)}return at}if(ju(m.left,m.right))return at;let E=v===1&&(no(m.left)||mu(m.left))&&(Fx(m.left.expression)||ct(m.left.expression)&&q4(m.left.expression)),D=p?di(p):E?ih(Bp(m.right)):Cw(Bp(m.right));if(D.flags&524288&&v===2&&o.escapedName==="export="){let R=jv(D),K=ic();ere(R.members,K);let se=K.size;p&&!p.exports&&(p.exports=ic()),(p||o).exports.forEach((fe,Ue)=>{var Me;let yt=K.get(Ue);if(yt&&yt!==fe&&!(fe.flags&2097152))if(fe.flags&111551&&yt.flags&111551){if(fe.valueDeclaration&&yt.valueDeclaration&&Pn(fe.valueDeclaration)!==Pn(yt.valueDeclaration)){let Xt=oa(fe.escapedName),kr=((Me=Ci(yt.valueDeclaration,Vp))==null?void 0:Me.name)||yt.valueDeclaration;ac(gt(fe.valueDeclaration,x.Duplicate_identifier_0,Xt),xi(kr,x._0_was_also_declared_here,Xt)),ac(gt(kr,x.Duplicate_identifier_0,Xt),xi(fe.valueDeclaration,x._0_was_also_declared_here,Xt))}let Jt=zc(fe.flags|yt.flags,Ue);Jt.links.type=Do([di(fe),di(yt)]),Jt.valueDeclaration=yt.valueDeclaration,Jt.declarations=go(yt.declarations,fe.declarations),K.set(Ue,Jt)}else K.set(Ue,w0(fe,yt));else K.set(Ue,fe)});let ce=mp(se!==K.size?void 0:R.symbol,K,R.callSignatures,R.constructSignatures,R.indexInfos);if(se===K.size&&(D.aliasSymbol&&(ce.aliasSymbol=D.aliasSymbol,ce.aliasTypeArguments=D.aliasTypeArguments),ro(D)&4)){ce.aliasSymbol=D.symbol;let fe=Bu(D);ce.aliasTypeArguments=te(fe)?fe:void 0}return ce.objectFlags|=yse([D])|ro(D)&20608,ce.symbol&&ce.symbol.flags&32&&D===O0(ce.symbol)&&(ce.objectFlags|=16777216),ce}return qxe(D)?(Dw(m,If),If):D}function ju(o,p){return no(o)&&o.expression.kind===110&&CF(p,m=>Ff(o,m))}function Sy(o){let p=Hm(o,!1,!1);return p.kind===177||p.kind===263||p.kind===219&&!zG(p.parent)}function QC(o,p){return $.assert(o.length===p.length),o.filter((m,v)=>{let E=p[v],D=wi(E)?E:wi(E.parent)?E.parent:void 0;return D&&Sy(D)})}function Rv(o,p,m){if(o.initializer){let v=$s(o.name)?Fq(o.name,!0,!1):er;return Om(pAt(o,rJ(o,0,v)))}return $s(o.name)?Fq(o.name,p,m):(m&&!nxe(o)&&Dw(o,at),p?gi:at)}function T7(o,p,m){let v=ic(),E,D=131200;X(o.elements,K=>{let se=K.propertyName||K.name;if(K.dotDotDotToken){E=aT(Mt,at,!1);return}let ce=m2(se);if(!b0(ce)){D|=512;return}let fe=x0(ce),Ue=4|(K.initializer?16777216:0),Me=zc(Ue,fe);Me.links.type=Rv(K,p,m),v.set(Me.escapedName,Me)});let R=mp(void 0,v,j,j,E?[E]:j);return R.objectFlags|=D,p&&(R.pattern=o,R.objectFlags|=131072),R}function xje(o,p,m){let v=o.elements,E=Yr(v),D=E&&E.kind===209&&E.dotDotDotToken?E:void 0;if(v.length===0||v.length===1&&D)return re>=2?yEt(at):If;let R=Cr(v,fe=>Id(fe)?at:Rv(fe,p,m)),K=Hi(v,fe=>!(fe===D||Id(fe)||L7(fe)),v.length-1)+1,se=Cr(v,(fe,Ue)=>fe===D?4:Ue>=K?2:1),ce=Jb(R,se);return p&&(ce=Q2t(ce),ce.pattern=o,ce.objectFlags|=131072),ce}function Fq(o,p=!1,m=!1){p&&m1.push(o);let v=o.kind===207?T7(o,p,m):xje(o,p,m);return p&&m1.pop(),v}function E7(o,p){return HQ(x7(o,!0,0),o,p)}function Tje(o){let p=Ki(o);if(!p.resolvedType){let m=zc(4096,"__importAttributes"),v=ic();X(o.elements,D=>{let R=zc(4,Cne(D));R.parent=m,R.links.type=MIr(D),R.links.target=R,v.set(R.escapedName,R)});let E=mp(m,v,j,j,j);E.objectFlags|=262272,p.resolvedType=E}return p.resolvedType}function Eje(o){let p=Xy(o),m=uxr(!1);return m&&p&&p===m}function HQ(o,p,m){return o?(o.flags&4096&&Eje(p.parent)&&(o=CBe(p)),m&&Zxe(p,o),o.flags&8192&&(Vc(p)||!ZC(p))&&o.symbol!==$i(p)&&(o=wr),ry(o)):(o=wa(p)&&p.dotDotDotToken?If:at,m&&(nxe(p)||Dw(p,o)),o)}function nxe(o){let p=bS(o),m=p.kind===170?p.parent:p;return gce(m)}function ZC(o){let p=X_(o);if(p)return Sa(p)}function kje(o){let p=o.valueDeclaration;return p?(Vc(p)&&(p=Pr(p)),wa(p)?Fxe(p.parent):!1):!1}function Cje(o){let p=io(o);if(!p.type){let m=Dje(o);return!p.type&&!kje(o)&&(p.type=m),m}return p.type}function Dje(o){if(o.flags&4194304)return Or(o);if(o===tt)return at;if(o.flags&134217728&&o.valueDeclaration){let v=$i(Pn(o.valueDeclaration)),E=zc(v.flags,"exports");E.declarations=v.declarations?v.declarations.slice():[],E.parent=o,E.links.target=v,v.valueDeclaration&&(E.valueDeclaration=v.valueDeclaration),v.members&&(E.members=new Map(v.members)),v.exports&&(E.exports=new Map(v.exports));let D=ic();return D.set("exports",E),mp(o,D,j,j,j)}$.assertIsDefined(o.valueDeclaration);let p=o.valueDeclaration;if(Ta(p)&&h0(p))return p.statements.length?ry(Cw(Va(p.statements[0].expression))):kc;if(tC(p))return Lq(o);if(!WS(o,0))return o.flags&512&&!(o.flags&67108864)?Mq(o):nN(o);let m;if(p.kind===278)m=HQ(ZC(p)||Bp(p.expression),p);else if(wi(p)||Ei(p)&&(Js(p)||(no(p)||Are(p))&&wi(p.parent)))m=Tt(o);else if(no(p)||mu(p)||ct(p)||Sl(p)||qh(p)||ed(p)||i_(p)||Ep(p)&&!r1(p)||G1(p)||Ta(p)){if(o.flags&9136)return Mq(o);m=wi(p.parent)?Tt(o):ZC(p)||at}else if(td(p))m=ZC(p)||_At(p);else if(NS(p))m=ZC(p)||WCt(p);else if(im(p))m=ZC(p)||iJ(p.name,0);else if(r1(p))m=ZC(p)||dAt(p,0);else if(wa(p)||ps(p)||Zm(p)||Oo(p)||Vc(p)||rU(p))m=E7(p,!0);else if(CA(p))m=Mq(o);else if(GT(p))m=sxe(o);else return $.fail("Unhandled declaration kind! "+$.formatSyntaxKind(p.kind)+" for "+$.formatSymbol(o));return kt()?m:o.flags&512&&!(o.flags&67108864)?Mq(o):nN(o)}function e6(o){if(o)switch(o.kind){case 178:return jg(o);case 179:return ghe(o);case 173:return $.assert(xS(o)),X_(o)}}function Rq(o){let p=e6(o);return p&&Sa(p)}function k7(o){let p=tze(o);return p&&p.symbol}function ixe(o){return Sw(t0(o))}function Lq(o){let p=io(o);if(!p.type){if(!WS(o,0))return Et;let m=Qu(o,178),v=Qu(o,179),E=Ci(Qu(o,173),Mh),D=m&&Ei(m)&&gl(m)||Rq(m)||Rq(v)||Rq(E)||m&&m.body&&NTe(m)||E&&E7(E,!0);D||(v&&!gce(v)?Y1(Fe,v,x.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ua(o)):m&&!gce(m)?Y1(Fe,m,x.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ua(o)):E&&!gce(E)&&Y1(Fe,E,x.Member_0_implicitly_has_an_1_type,Ua(o),"any"),D=at),kt()||(e6(m)?gt(m,x._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ua(o)):e6(v)||e6(E)?gt(v,x._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ua(o)):m&&Fe&>(m,x._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Ua(o)),D=at),p.type??(p.type=D)}return p.type}function oxe(o){let p=io(o);if(!p.writeType){if(!WS(o,7))return Et;let m=Qu(o,179)??Ci(Qu(o,173),Mh),v=Rq(m);kt()||(e6(m)&>(m,x._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ua(o)),v=at),p.writeType??(p.writeType=v||Lq(o))}return p.writeType}function KQ(o){let p=d2(O0(o));return p.flags&8650752?p:p.flags&2097152?wt(p.types,m=>!!(m.flags&8650752)):void 0}function Mq(o){let p=io(o),m=p;if(!p.type){let v=o.valueDeclaration&&ITe(o.valueDeclaration,!1);if(v){let E=nUe(o,v);E&&(o=E,p=E.links)}m.type=p.type=axe(o)}return p.type}function axe(o){let p=o.valueDeclaration;if(o.flags&1536&&bG(o))return at;if(p&&(p.kind===227||wu(p)&&p.parent.kind===227))return Tt(o);if(o.flags&512&&p&&Ta(p)&&p.commonJsModuleIndicator){let v=vg(o);if(v!==o){if(!WS(o,0))return Et;let E=cl(o.exports.get("export=")),D=Tt(E,E===v?void 0:v);return kt()?D:nN(o)}}let m=F_(16,o);if(o.flags&32){let v=KQ(o);return v?Ac([m,v]):m}else return be&&o.flags&16777216?nD(m,!0):m}function sxe(o){let p=io(o);return p.type||(p.type=l2t(o))}function Aje(o){let p=io(o);if(!p.type){if(!WS(o,0))return Et;let m=df(o),v=o.declarations&&uw(Qh(o),!0),E=Je(v?.declarations,D=>Xu(D)?ZC(D):void 0);if(p.type??(p.type=v?.declarations&&XTe(v.declarations)&&o.declarations.length?P(v):XTe(o.declarations)?Zt:E||(Zh(m)&111551?di(m):Et)),!kt())return nN(v??o),p.type??(p.type=Et)}return p.type}function wje(o){let p=io(o);return p.type||(p.type=Oa(di(p.target),p.mapper))}function Ije(o){let p=io(o);return p.writeType||(p.writeType=Oa(GE(p.target),p.mapper))}function nN(o){let p=o.valueDeclaration;if(p){if(X_(p))return gt(o.valueDeclaration,x._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ua(o)),Et;Fe&&(p.kind!==170||p.initializer)&>(o.valueDeclaration,x._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Ua(o))}else if(o.flags&2097152){let m=Qh(o);m&>(m,x.Circular_definition_of_import_alias_0,Ua(o))}return at}function cxe(o){let p=io(o);return p.type||($.assertIsDefined(p.deferralParent),$.assertIsDefined(p.deferralConstituents),p.type=p.deferralParent.flags&1048576?Do(p.deferralConstituents):Ac(p.deferralConstituents)),p.type}function Pje(o){let p=io(o);return!p.writeType&&p.deferralWriteConstituents&&($.assertIsDefined(p.deferralParent),$.assertIsDefined(p.deferralConstituents),p.writeType=p.deferralParent.flags&1048576?Do(p.deferralWriteConstituents):Ac(p.deferralWriteConstituents)),p.writeType}function GE(o){let p=Fp(o);return p&2?p&65536?Pje(o)||cxe(o):o.links.writeType||o.links.type:o.flags&4?x2(di(o),!!(o.flags&16777216)):o.flags&98304?p&1?Ije(o):oxe(o):di(o)}function di(o){let p=Fp(o);return p&65536?cxe(o):p&1?wje(o):p&262144?wbr(o):p&8192?W2r(o):o.flags&7?Cje(o):o.flags&9136?Mq(o):o.flags&8?sxe(o):o.flags&98304?Lq(o):o.flags&2097152?Aje(o):Et}function Lv(o){return x2(di(o),!!(o.flags&16777216))}function lxe(o,p){if(o===void 0||(ro(o)&4)===0)return!1;for(let m of p)if(o.target===m)return!0;return!1}function Xg(o,p){return o!==void 0&&p!==void 0&&(ro(o)&4)!==0&&o.target===p}function Fn(o){return ro(o)&4?o.target:o}function eo(o,p){return m(o);function m(v){if(ro(v)&7){let E=Fn(v);return E===p||Pt(ov(E),m)}else if(v.flags&2097152)return Pt(v.types,m);return!1}}function po(o,p){for(let m of p)o=Jl(o,gw($i(m)));return o}function Xo(o,p){for(;;){if(o=o.parent,o&&wi(o)){let v=m_(o);if(v===6||v===3){let E=$i(o.left);E&&E.parent&&!fn(E.parent.valueDeclaration,D=>o===D)&&(o=E.parent.valueDeclaration)}}if(!o)return;let m=o.kind;switch(m){case 264:case 232:case 265:case 180:case 181:case 174:case 185:case 186:case 318:case 263:case 175:case 219:case 220:case 266:case 346:case 347:case 341:case 339:case 201:case 195:{let E=Xo(o,p);if((m===219||m===220||r1(o))&&r0(o)){let K=pi(Gs(di($i(o)),0));if(K&&K.typeParameters)return[...E||j,...K.typeParameters]}if(m===201)return jt(E,gw($i(o.typeParameter)));if(m===195)return go(E,xBe(o));let D=po(E,Zk(o)),R=p&&(m===264||m===232||m===265||XS(o))&&O0($i(o)).thisType;return R?jt(D,R):D}case 342:let v=GG(o);v&&(o=v.valueDeclaration);break;case 321:{let E=Xo(o,p);return o.tags?po(E,an(o.tags,D=>c1(D)?D.typeParameters:void 0)):E}}}}function ca(o){var p;let m=o.flags&32||o.flags&16?o.valueDeclaration:(p=o.declarations)==null?void 0:p.find(v=>{if(v.kind===265)return!0;if(v.kind!==261)return!1;let E=v.initializer;return!!E&&(E.kind===219||E.kind===220)});return $.assert(!!m,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Xo(m)}function Dc(o){if(!o.declarations)return;let p;for(let m of o.declarations)(m.kind===265||m.kind===264||m.kind===232||XS(m)||VG(m))&&(p=po(p,Zk(m)));return p}function gu(o){return go(ca(o),Dc(o))}function Of(o){let p=Gs(o,1);if(p.length===1){let m=p[0];if(!m.typeParameters&&m.parameters.length===1&&Am(m)){let v=cce(m.parameters[0]);return Mi(v)||Mse(v)===at}}return!1}function Mv(o){if(Gs(o,1).length>0)return!0;if(o.flags&8650752){let p=Gf(o);return!!p&&Of(p)}return!1}function v1(o){let p=JT(o.symbol);return p&&vv(p)}function iv(o,p,m){let v=te(p),E=Ei(m);return yr(Gs(o,1),D=>(E||v>=qb(D.typeParameters))&&v<=te(D.typeParameters))}function nT(o,p,m){let v=iv(o,p,m),E=Cr(p,Sa);return Zo(v,D=>Pt(D.typeParameters)?rZ(D,E,Ei(m)):D)}function d2(o){if(!o.resolvedBaseConstructorType){let p=JT(o.symbol),m=p&&vv(p),v=v1(o);if(!v)return o.resolvedBaseConstructorType=Ne;if(!WS(o,1))return Et;let E=Va(v.expression);if(m&&v!==m&&($.assert(!m.typeArguments),Va(m.expression)),E.flags&2621440&&jv(E),!kt())return gt(o.symbol.valueDeclaration,x._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ua(o.symbol)),o.resolvedBaseConstructorType??(o.resolvedBaseConstructorType=Et);if(!(E.flags&1)&&E!==Ge&&!Mv(E)){let D=gt(v.expression,x.Type_0_is_not_a_constructor_function_type,ri(E));if(E.flags&262144){let R=qq(E),K=er;if(R){let se=Gs(R,1);se[0]&&(K=Tl(se[0]))}E.symbol.declarations&&ac(D,xi(E.symbol.declarations[0],x.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Ua(E.symbol),ri(K)))}return o.resolvedBaseConstructorType??(o.resolvedBaseConstructorType=Et)}o.resolvedBaseConstructorType??(o.resolvedBaseConstructorType=E)}return o.resolvedBaseConstructorType}function PM(o){let p=j;if(o.symbol.declarations)for(let m of o.symbol.declarations){let v=ZR(m);if(v)for(let E of v){let D=Sa(E);si(D)||(p===j?p=[D]:p.push(D))}}return p}function jq(o,p){gt(o,x.Type_0_recursively_references_itself_as_a_base_type,ri(p,void 0,2))}function ov(o){if(!o.baseTypesResolved){if(WS(o,6)&&(o.objectFlags&8?o.resolvedBaseTypes=[ebr(o)]:o.symbol.flags&96?(o.symbol.flags&32&&tbr(o),o.symbol.flags&64&&nbr(o)):$.fail("type must be class or interface"),!kt()&&o.symbol.declarations))for(let p of o.symbol.declarations)(p.kind===264||p.kind===265)&&jq(p,o);o.baseTypesResolved=!0}return o.resolvedBaseTypes}function ebr(o){let p=Zo(o.typeParameters,(m,v)=>o.elementFlags[v]&8?ey(m,Ir):m);return um(Do(p||j),o.readonly)}function tbr(o){o.resolvedBaseTypes=mme;let p=nh(d2(o));if(!(p.flags&2621441))return o.resolvedBaseTypes=j;let m=v1(o),v,E=p.symbol?Tu(p.symbol):void 0;if(p.symbol&&p.symbol.flags&32&&rbr(E))v=Z2t(m,p.symbol);else if(p.flags&1)v=p;else{let R=nT(p,m.typeArguments,m);if(!R.length)return gt(m.expression,x.No_base_constructor_has_the_specified_number_of_type_arguments),o.resolvedBaseTypes=j;v=Tl(R[0])}if(si(v))return o.resolvedBaseTypes=j;let D=S1(v);if(!use(D)){let R=Jje(void 0,v),K=ws(R,x.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,ri(D));return il.add(Nx(Pn(m.expression),m.expression,K)),o.resolvedBaseTypes=j}return o===D||eo(D,o)?(gt(o.symbol.valueDeclaration,x.Type_0_recursively_references_itself_as_a_base_type,ri(o,void 0,2)),o.resolvedBaseTypes=j):(o.resolvedBaseTypes===mme&&(o.members=void 0),o.resolvedBaseTypes=[D])}function rbr(o){let p=o.outerTypeParameters;if(p){let m=p.length-1,v=Bu(o);return p[m].symbol!==v[m].symbol}return!0}function use(o){if(o.flags&262144){let p=Gf(o);if(p)return use(p)}return!!(o.flags&67633153&&!Xh(o)||o.flags&2097152&&ht(o.types,use))}function nbr(o){if(o.resolvedBaseTypes=o.resolvedBaseTypes||j,o.symbol.declarations){for(let p of o.symbol.declarations)if(p.kind===265&&kU(p))for(let m of kU(p)){let v=S1(Sa(m));si(v)||(use(v)?o!==v&&!eo(v,o)?o.resolvedBaseTypes===j?o.resolvedBaseTypes=[v]:o.resolvedBaseTypes.push(v):jq(p,o):gt(m,x.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function ibr(o){if(!o.declarations)return!0;for(let p of o.declarations)if(p.kind===265){if(p.flags&256)return!1;let m=kU(p);if(m){for(let v of m)if(ru(v.expression)){let E=jp(v.expression,788968,!0);if(!E||!(E.flags&64)||O0(E).thisType)return!1}}}return!0}function O0(o){let p=io(o),m=p;if(!p.declaredType){let v=o.flags&32?1:2,E=nUe(o,o.valueDeclaration&&iDr(o.valueDeclaration));E&&(o=E,p=E.links);let D=m.declaredType=p.declaredType=F_(v,o),R=ca(o),K=Dc(o);(R||K||v===1||!ibr(o))&&(D.objectFlags|=4,D.typeParameters=go(R,K),D.outerTypeParameters=R,D.localTypeParameters=K,D.instantiations=new Map,D.instantiations.set(b1(D.typeParameters),D),D.target=D,D.resolvedTypeArguments=D.typeParameters,D.thisType=bh(o),D.thisType.isThisType=!0,D.thisType.constraint=D)}return p.declaredType}function a2t(o){var p;let m=io(o);if(!m.declaredType){if(!WS(o,2))return Et;let v=$.checkDefined((p=o.declarations)==null?void 0:p.find(VG),"Type alias symbol with no valid declaration found"),E=n1(v)?v.typeExpression:v.type,D=E?Sa(E):Et;if(kt()){let R=Dc(o);R&&(m.typeParameters=R,m.instantiations=new Map,m.instantiations.set(b1(R),D)),D===Ye&&o.escapedName==="BuiltinIteratorReturn"&&(D=aBe())}else D=Et,v.kind===341?gt(v.typeExpression.type,x.Type_alias_0_circularly_references_itself,Ua(o)):gt(Vp(v)&&v.name||v,x.Type_alias_0_circularly_references_itself,Ua(o));m.declaredType??(m.declaredType=D)}return m.declaredType}function uxe(o){return o.flags&1056&&o.symbol.flags&8?Tu(Od(o.symbol)):o}function s2t(o){let p=io(o);if(!p.declaredType){let m=[];if(o.declarations){for(let E of o.declarations)if(E.kind===267){for(let D of E.members)if(OM(D)){let R=$i(D),K=kN(D).value,se=P7(K!==void 0?CTr(K,hc(o),R):c2t(R));io(R).declaredType=se,m.push(ih(se))}}}let v=m.length?Do(m,1,o,void 0):c2t(o);v.flags&1048576&&(v.flags|=1024,v.symbol=o),p.declaredType=v}return p.declaredType}function c2t(o){let p=na(32,o),m=na(32,o);return p.regularType=p,p.freshType=m,m.regularType=p,m.freshType=m,p}function l2t(o){let p=io(o);if(!p.declaredType){let m=s2t(Od(o));p.declaredType||(p.declaredType=m)}return p.declaredType}function gw(o){let p=io(o);return p.declaredType||(p.declaredType=bh(o))}function obr(o){let p=io(o);return p.declaredType||(p.declaredType=Tu(df(o)))}function Tu(o){return u2t(o)||Et}function u2t(o){if(o.flags&96)return O0(o);if(o.flags&524288)return a2t(o);if(o.flags&262144)return gw(o);if(o.flags&384)return s2t(o);if(o.flags&8)return l2t(o);if(o.flags&2097152)return obr(o)}function pse(o){switch(o.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 202:return!0;case 189:return pse(o.elementType);case 184:return!o.typeArguments||o.typeArguments.every(pse)}return!1}function abr(o){let p=NR(o);return!p||pse(p)}function p2t(o){let p=X_(o);return p?pse(p):!lE(o)}function sbr(o){let p=jg(o),m=Zk(o);return(o.kind===177||!!p&&pse(p))&&o.parameters.every(p2t)&&m.every(abr)}function cbr(o){if(o.declarations&&o.declarations.length===1){let p=o.declarations[0];if(p)switch(p.kind){case 173:case 172:return p2t(p);case 175:case 174:case 177:case 178:case 179:return sbr(p)}}return!1}function _2t(o,p,m){let v=ic();for(let E of o)v.set(E.escapedName,m&&cbr(E)?E:IBe(E,p));return v}function d2t(o,p){for(let m of p){if(f2t(m))continue;let v=o.get(m.escapedName);(!v||v.valueDeclaration&&wi(v.valueDeclaration)&&!rT(v)&&!E6e(v.valueDeclaration))&&(o.set(m.escapedName,m),o.set(m.escapedName,m))}}function f2t(o){return!!o.valueDeclaration&&Tm(o.valueDeclaration)&&oc(o.valueDeclaration)}function Nje(o){if(!o.declaredProperties){let p=o.symbol,m=Ub(p);o.declaredProperties=xh(m),o.declaredCallSignatures=j,o.declaredConstructSignatures=j,o.declaredIndexInfos=j,o.declaredCallSignatures=n6(m.get("__call")),o.declaredConstructSignatures=n6(m.get("__new")),o.declaredIndexInfos=G2t(p)}return o}function Oje(o){return h2t(o)&&b0(dc(o)?sv(o):Bp(o.argumentExpression))}function m2t(o){return h2t(o)&&lbr(dc(o)?sv(o):Bp(o.argumentExpression))}function h2t(o){if(!dc(o)&&!mu(o))return!1;let p=dc(o)?o.expression:o.argumentExpression;return ru(p)}function lbr(o){return tc(o,Uo)}function QQ(o){return o.charCodeAt(0)===95&&o.charCodeAt(1)===95&&o.charCodeAt(2)===64}function NM(o){let p=cs(o);return!!p&&Oje(p)}function g2t(o){let p=cs(o);return!!p&&m2t(p)}function OM(o){return!$T(o)||NM(o)}function y2t(o){return Rre(o)&&!Oje(o)}function ubr(o,p,m){$.assert(!!(Fp(o)&4096),"Expected a late-bound symbol."),o.flags|=m,io(p.symbol).lateSymbol=o,o.declarations?p.symbol.isReplaceableByMethod||o.declarations.push(p):o.declarations=[p],m&111551&&SU(o,p)}function v2t(o,p,m,v){$.assert(!!v.symbol,"The member is expected to have a symbol.");let E=Ki(v);if(!E.resolvedSymbol){E.resolvedSymbol=v.symbol;let D=wi(v)?v.left:v.name,R=mu(D)?Bp(D.argumentExpression):sv(D);if(b0(R)){let K=x0(R),se=v.symbol.flags,ce=m.get(K);ce||m.set(K,ce=zc(0,K,4096));let fe=p&&p.get(K);if(!(o.flags&32)&&ce.flags&j3(se)){let Ue=fe?go(fe.declarations,ce.declarations):ce.declarations,Me=!(R.flags&8192)&&oa(K)||du(D);X(Ue,yt=>gt(cs(yt)||yt,x.Property_0_was_also_declared_here,Me)),gt(D||v,x.Duplicate_property_0,Me),ce=zc(0,K,4096)}return ce.links.nameType=R,ubr(ce,v,se),ce.parent?$.assert(ce.parent===o,"Existing symbol parent should match new one"):ce.parent=o,E.resolvedSymbol=ce}}return E.resolvedSymbol}function pbr(o,p,m,v){let E=m.get("__index");if(!E){let D=p?.get("__index");D?(E=JP(D),E.links.checkFlags|=4096):E=zc(0,"__index",4096),m.set("__index",E)}E.declarations?v.symbol.isReplaceableByMethod||E.declarations.push(v):E.declarations=[v]}function Fje(o,p){let m=io(o);if(!m[p]){let v=p==="resolvedExports",E=v?o.flags&1536?Q3(o).exports:o.exports:o.members;m[p]=E||G;let D=ic();for(let se of o.declarations||j){let ce=g6e(se);if(ce)for(let fe of ce)v===fd(fe)&&(NM(fe)?v2t(o,E,D,fe):g2t(fe)&&pbr(o,E,D,fe))}let R=_w(o).assignmentDeclarationMembers;if(R){let se=so(R.values());for(let ce of se){let fe=m_(ce),Ue=fe===3||wi(ce)&&_Te(ce,fe)||fe===9||fe===6;v===!Ue&&NM(ce)&&v2t(o,E,D,ce)}}let K=ME(E,D);if(o.flags&33554432&&m.cjsExportMerged&&o.declarations)for(let se of o.declarations){let ce=io(se.symbol)[p];if(!K){K=ce;continue}ce&&ce.forEach((fe,Ue)=>{let Me=K.get(Ue);if(!Me)K.set(Ue,fe);else{if(Me===fe)return;K.set(Ue,w0(Me,fe))}})}m[p]=K||G}return m[p]}function Ub(o){return o.flags&6256?Fje(o,"resolvedMembers"):o.members||G}function pxe(o){if(o.flags&106500&&o.escapedName==="__computed"){let p=io(o);if(!p.lateSymbol&&Pt(o.declarations,NM)){let m=cl(o.parent);Pt(o.declarations,fd)?Zg(m):Ub(m)}return p.lateSymbol||(p.lateSymbol=o)}return o}function Yg(o,p,m){if(ro(o)&4){let v=o.target,E=Bu(o);return te(v.typeParameters)===te(E)?f2(v,go(E,[p||v.thisType])):o}else if(o.flags&2097152){let v=Zo(o.types,E=>Yg(E,p,m));return v!==o.types?Ac(v):o}return m?nh(o):o}function S2t(o,p,m,v){let E,D,R,K,se;or(m,v,0,m.length)?(D=p.symbol?Ub(p.symbol):ic(p.declaredProperties),R=p.declaredCallSignatures,K=p.declaredConstructSignatures,se=p.declaredIndexInfos):(E=ty(m,v),D=_2t(p.declaredProperties,E,m.length===1),R=Nxe(p.declaredCallSignatures,E),K=Nxe(p.declaredConstructSignatures,E),se=ZEt(p.declaredIndexInfos,E));let ce=ov(p);if(ce.length){if(p.symbol&&D===Ub(p.symbol)){let Ue=ic(p.declaredProperties),Me=hxe(p.symbol);Me&&Ue.set("__index",Me),D=Ue}y1(o,D,R,K,se);let fe=Yr(v);for(let Ue of ce){let Me=fe?Yg(Oa(Ue,E),fe):Ue;d2t(D,$l(Me)),R=go(R,Gs(Me,0)),K=go(K,Gs(Me,1));let yt=Me!==at?lm(Me):[va];se=go(se,yr(yt,Jt=>!Uq(se,Jt.keyType)))}}y1(o,D,R,K,se)}function _br(o){S2t(o,Nje(o),j,j)}function dbr(o){let p=Nje(o.target),m=go(p.typeParameters,[p.thisType]),v=Bu(o),E=v.length===m.length?v:go(v,[o]);S2t(o,p,m,E)}function GS(o,p,m,v,E,D,R,K){let se=new y(Qn,K);return se.declaration=o,se.typeParameters=p,se.parameters=v,se.thisParameter=m,se.resolvedReturnType=E,se.resolvedTypePredicate=D,se.minArgumentCount=R,se.resolvedMinArgumentCount=void 0,se.target=void 0,se.mapper=void 0,se.compositeSignatures=void 0,se.compositeKind=void 0,se}function ZQ(o){let p=GS(o.declaration,o.typeParameters,o.thisParameter,o.parameters,void 0,void 0,o.minArgumentCount,o.flags&167);return p.target=o.target,p.mapper=o.mapper,p.compositeSignatures=o.compositeSignatures,p.compositeKind=o.compositeKind,p}function b2t(o,p){let m=ZQ(o);return m.compositeSignatures=p,m.compositeKind=1048576,m.target=void 0,m.mapper=void 0,m}function fbr(o,p){if((o.flags&24)===p)return o;o.optionalCallSignatureCache||(o.optionalCallSignatureCache={});let m=p===8?"inner":"outer";return o.optionalCallSignatureCache[m]||(o.optionalCallSignatureCache[m]=mbr(o,p))}function mbr(o,p){$.assert(p===8||p===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");let m=ZQ(o);return m.flags|=p,m}function x2t(o,p){if(Am(o)){let E=o.parameters.length-1,D=o.parameters[E],R=di(D);if(Gc(R))return[m(R,E,D)];if(!p&&R.flags&1048576&&ht(R.types,Gc))return Cr(R.types,K=>m(K,E,D))}return[o.parameters];function m(E,D,R){let K=Bu(E),se=v(E,R),ce=Cr(K,(fe,Ue)=>{let Me=se&&se[Ue]?se[Ue]:tJ(o,D+Ue,E),yt=E.target.elementFlags[Ue],Jt=yt&12?32768:yt&2?16384:0,Xt=zc(1,Me,Jt);return Xt.links.type=yt&4?um(fe):fe,Xt});return go(o.parameters.slice(0,D),ce)}function v(E,D){let R=Cr(E.target.labeledElementDeclarations,(K,se)=>lUe(K,se,E.target.elementFlags[se],D));if(R){let K=[],se=new Set;for(let fe=0;fe=Ue&&se<=Me){let yt=Me?mxe(fe,QE(K,fe.typeParameters,Ue,R)):ZQ(fe);yt.typeParameters=o.localTypeParameters,yt.resolvedReturnType=o,yt.flags=E?yt.flags|4:yt.flags&-5,ce.push(yt)}}return ce}function _xe(o,p,m,v,E){for(let D of o)if(Rse(D,p,m,v,E,m?qTr:uZ))return D}function gbr(o,p,m){if(p.typeParameters){if(m>0)return;for(let E=1;E1&&(m=m===void 0?v:-1);for(let E of o[v])if(!p||!_xe(p,E,!1,!1,!0)){let D=gbr(o,E,v);if(D){let R=E;if(D.length>1){let K=E.thisParameter,se=X(D,ce=>ce.thisParameter);if(se){let ce=Ac(Wn(D,fe=>fe.thisParameter&&di(fe.thisParameter)));K=mN(se,ce)}R=b2t(E,D),R.thisParameter=K}(p||(p=[])).push(R)}}}if(!te(p)&&m!==-1){let v=o[m!==void 0?m:0],E=v.slice();for(let D of o)if(D!==v){let R=D[0];if($.assert(!!R,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),E=R.typeParameters&&Pt(E,K=>!!K.typeParameters&&!T2t(R.typeParameters,K.typeParameters))?void 0:Cr(E,K=>Sbr(K,R)),!E)break}p=E}return p||j}function T2t(o,p){if(te(o)!==te(p))return!1;if(!o||!p)return!0;let m=ty(p,o);for(let v=0;v=E?o:p,R=D===o?p:o,K=D===o?v:E,se=Wb(o)||Wb(p),ce=se&&!Wb(D),fe=new Array(K+(ce?1:0));for(let Ue=0;Ue=Jv(D)&&Ue>=Jv(R),on=Ue>=v?void 0:tJ(o,Ue),Hn=Ue>=E?void 0:tJ(p,Ue),fi=on===Hn?on:on?Hn?void 0:on:Hn,sn=zc(1|(kr&&!Xt?16777216:0),fi||`arg${Ue}`,Xt?32768:kr?16384:0);sn.links.type=Xt?um(Jt):Jt,fe[Ue]=sn}if(ce){let Ue=zc(1,"args",32768);Ue.links.type=um(qv(R,K)),R===p&&(Ue.links.type=Oa(Ue.links.type,m)),fe[K]=Ue}return fe}function Sbr(o,p){let m=o.typeParameters||p.typeParameters,v;o.typeParameters&&p.typeParameters&&(v=ty(p.typeParameters,o.typeParameters));let E=(o.flags|p.flags)&166,D=o.declaration,R=vbr(o,p,v),K=Yr(R);K&&Fp(K)&32768&&(E|=1);let se=ybr(o.thisParameter,p.thisParameter,v),ce=Math.max(o.minArgumentCount,p.minArgumentCount),fe=GS(D,m,se,R,void 0,void 0,ce,E);return fe.compositeKind=1048576,fe.compositeSignatures=go(o.compositeKind!==2097152&&o.compositeSignatures||[o],[p]),v?fe.mapper=o.compositeKind!==2097152&&o.mapper&&o.compositeSignatures?Tw(o.mapper,v):v:o.compositeKind!==2097152&&o.mapper&&o.compositeSignatures&&(fe.mapper=o.mapper),fe}function E2t(o){let p=lm(o[0]);if(p){let m=[];for(let v of p){let E=v.keyType;ht(o,D=>!!oT(D,E))&&m.push(aT(E,Do(Cr(o,D=>vw(D,E))),Pt(o,D=>oT(D,E).isReadonly)))}return m}return j}function bbr(o){let p=Rje(Cr(o.types,E=>E===Vn?[So]:Gs(E,0))),m=Rje(Cr(o.types,E=>Gs(E,1))),v=E2t(o.types);y1(o,G,p,m,v)}function _se(o,p){return o?p?Ac([o,p]):o:p}function k2t(o){let p=Lo(o,v=>Gs(v,1).length>0),m=Cr(o,Of);if(p>0&&p===Lo(m,v=>v)){let v=m.indexOf(!0);m[v]=!1}return m}function xbr(o,p,m,v){let E=[];for(let D=0;DK);for(let K=0;K0&&(ce=Cr(ce,fe=>{let Ue=ZQ(fe);return Ue.resolvedReturnType=xbr(Tl(fe),E,D,K),Ue})),m=C2t(m,ce)}p=C2t(p,Gs(se,0)),v=nl(lm(se),(ce,fe)=>D2t(ce,fe,!1),v)}y1(o,G,p||j,m||j,v||j)}function C2t(o,p){for(let m of p)(!o||ht(o,v=>!Rse(v,m,!1,!1,!1,uZ)))&&(o=jt(o,m));return o}function D2t(o,p,m){if(o)for(let v=0;v{var se;!(K.flags&418)&&!(K.flags&512&&((se=K.declarations)!=null&&se.length)&&ht(K.declarations,Gm))&&R.set(K.escapedName,K)}),m=R}let E;if(y1(o,m,j,j,j),p.flags&32){let R=O0(p),K=d2(R);K.flags&11272192?(m=ic(y7(m)),d2t(m,$l(K))):K===at&&(E=va)}let D=gxe(m);if(D?v=yxe(D,so(m.values())):(E&&(v=jt(v,E)),p.flags&384&&(Tu(p).flags&32||Pt(o.properties,R=>!!(di(R).flags&296)))&&(v=jt(v,ua))),y1(o,m,j,j,v||j),p.flags&8208&&(o.callSignatures=n6(p)),p.flags&32){let R=O0(p),K=p.members?n6(p.members.get("__constructor")):j;p.flags&16&&(K=En(K.slice(),Wn(o.callSignatures,se=>XS(se.declaration)?GS(se.declaration,se.typeParameters,se.thisParameter,se.parameters,R,void 0,se.minArgumentCount,se.flags&167):void 0))),K.length||(K=hbr(R)),o.constructSignatures=K}}function kbr(o,p,m){return Oa(o,ty([p.indexType,p.objectType],[Bv(0),Jb([m])]))}function Cbr(o){let p=e0(o.mappedType);if(!(p.flags&1048576||p.flags&2097152))return;let m=p.flags&1048576?p.origin:p;if(!m||!(m.flags&2097152))return;let v=Ac(m.types.filter(E=>E!==o.constraintType));return v!==tn?v:void 0}function Dbr(o){let p=oT(o.source,Mt),m=zb(o.mappedType),v=!(m&1),E=m&4?0:16777216,D=p?[aT(Mt,Yxe(p.type,o.mappedType,o.constraintType)||er,v&&p.isReadonly)]:j,R=ic(),K=Cbr(o);for(let se of $l(o.source)){if(K){let Ue=A7(se,8576);if(!tc(Ue,K))continue}let ce=8192|(v&&Vv(se)?8:0),fe=zc(4|se.flags&E,se.escapedName,ce);if(fe.declarations=se.declarations,fe.links.nameType=io(se).nameType,fe.links.propertyType=di(se),o.constraintType.type.flags&8388608&&o.constraintType.type.objectType.flags&262144&&o.constraintType.type.indexType.flags&262144){let Ue=o.constraintType.type.objectType,Me=kbr(o.mappedType,o.constraintType.type,Ue);fe.links.mappedType=Me,fe.links.constraintType=KS(Ue)}else fe.links.mappedType=o.mappedType,fe.links.constraintType=o.constraintType;R.set(se.escapedName,fe)}y1(o,R,j,j,D)}function dse(o){if(o.flags&4194304){let p=nh(o.type);return rD(p)?xEt(p):KS(p)}if(o.flags&16777216){if(o.root.isDistributive){let p=o.checkType,m=dse(p);if(m!==p)return NBe(o,_N(o.root.checkType,m,o.mapper),!1)}return o}if(o.flags&1048576)return hp(o,dse,!0);if(o.flags&2097152){let p=o.types;return p.length===2&&p[0].flags&76&&p[1]===sc?o:Ac(Zo(o.types,dse))}return o}function Lje(o){return Fp(o)&4096}function Mje(o,p,m,v){for(let E of $l(o))v(A7(E,p));if(o.flags&1)v(Mt);else for(let E of lm(o))(!m||E.keyType.flags&134217732)&&v(E.keyType)}function Abr(o){let p=ic(),m;y1(o,G,j,j,j);let v=av(o),E=e0(o),D=o.target||o,R=HE(D),K=XQ(D)!==2,se=iT(D),ce=nh(yw(o)),fe=zb(o);FM(o)?Mje(ce,8576,!1,Me):vN(dse(E),Me),y1(o,p,j,j,m||j);function Me(Jt){let Xt=R?Oa(R,sZ(o.mapper,v,Jt)):Jt;vN(Xt,kr=>yt(Jt,kr))}function yt(Jt,Xt){if(b0(Xt)){let kr=x0(Xt),on=p.get(kr);if(on)on.links.nameType=Do([on.links.nameType,Xt]),on.links.keyType=Do([on.links.keyType,Jt]);else{let Hn=b0(Jt)?vc(ce,x0(Jt)):void 0,fi=!!(fe&4||!(fe&8)&&Hn&&Hn.flags&16777216),sn=!!(fe&1||!(fe&2)&&Hn&&Vv(Hn)),rn=be&&!fi&&Hn&&Hn.flags&16777216,vi=Hn?Lje(Hn):0,wo=zc(4|(fi?16777216:0),kr,vi|262144|(sn?8:0)|(rn?524288:0));wo.links.mappedType=o,wo.links.nameType=Xt,wo.links.keyType=Jt,Hn&&(wo.links.syntheticOrigin=Hn,wo.declarations=K?Hn.declarations:void 0),p.set(kr,wo)}}else if(vxe(Xt)||Xt.flags&33){let kr=Xt.flags&5?Mt:Xt.flags&40?Ir:Xt,on=Oa(se,sZ(o.mapper,v,Jt)),Hn=YQ(ce,Xt),fi=!!(fe&1||!(fe&2)&&Hn?.isReadonly),sn=aT(kr,on,fi);m=D2t(m,sn,!0)}}}function wbr(o){var p;if(!o.links.type){let m=o.links.mappedType;if(!WS(o,0))return m.containsError=!0,Et;let v=iT(m.target||m),E=sZ(m.mapper,av(m),o.links.keyType),D=Oa(v,E),R=be&&o.flags&16777216&&!s_(D,49152)?nD(D,!0):o.links.checkFlags&524288?Hxe(D):D;kt()||(gt(M,x.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Ua(o),ri(m)),R=Et),(p=o.links).type??(p.type=R)}return o.links.type}function av(o){return o.typeParameter||(o.typeParameter=gw($i(o.declaration.typeParameter)))}function e0(o){return o.constraintType||(o.constraintType=Th(av(o))||Et)}function HE(o){return o.declaration.nameType?o.nameType||(o.nameType=Oa(Sa(o.declaration.nameType),o.mapper)):void 0}function iT(o){return o.templateType||(o.templateType=o.declaration.type?Oa(Om(Sa(o.declaration.type),!0,!!(zb(o)&4)),o.mapper):Et)}function A2t(o){return NR(o.declaration.typeParameter)}function FM(o){let p=A2t(o);return p.kind===199&&p.operator===143}function yw(o){if(!o.modifiersType)if(FM(o))o.modifiersType=Oa(Sa(A2t(o).type),o.mapper);else{let p=SBe(o.declaration),m=e0(p),v=m&&m.flags&262144?Th(m):m;o.modifiersType=v&&v.flags&4194304?Oa(v.type,o.mapper):er}return o.modifiersType}function zb(o){let p=o.declaration;return(p.readonlyToken?p.readonlyToken.kind===41?2:1:0)|(p.questionToken?p.questionToken.kind===41?8:4:0)}function w2t(o){let p=zb(o);return p&8?-1:p&4?1:0}function Bq(o){if(ro(o)&32)return w2t(o)||Bq(yw(o));if(o.flags&2097152){let p=Bq(o.types[0]);return ht(o.types,(m,v)=>v===0||Bq(m)===p)?p:0}return 0}function Ibr(o){return!!(ro(o)&32&&zb(o)&4)}function Xh(o){if(ro(o)&32){let p=e0(o);if(pN(p))return!0;let m=HE(o);if(m&&pN(Oa(m,s6(av(o),p))))return!0}return!1}function XQ(o){let p=HE(o);return p?tc(p,av(o))?1:2:0}function jv(o){return o.members||(o.flags&524288?o.objectFlags&4?dbr(o):o.objectFlags&3?_br(o):o.objectFlags&1024?Dbr(o):o.objectFlags&16?Ebr(o):o.objectFlags&32?Abr(o):$.fail("Unhandled object type "+$.formatObjectFlags(o.objectFlags)):o.flags&1048576?bbr(o):o.flags&2097152?Tbr(o):$.fail("Unhandled type "+$.formatTypeFlags(o.flags))),o}function KE(o){return o.flags&524288?jv(o).properties:j}function t6(o,p){if(o.flags&524288){let v=jv(o).members.get(p);if(v&&ln(v))return v}}function fse(o){if(!o.resolvedProperties){let p=ic();for(let m of o.types){for(let v of $l(m))if(!p.has(v.escapedName)){let E=hse(o,v.escapedName,!!(o.flags&2097152));E&&p.set(v.escapedName,E)}if(o.flags&1048576&&lm(m).length===0)break}o.resolvedProperties=xh(p)}return o.resolvedProperties}function $l(o){return o=$q(o),o.flags&3145728?fse(o):KE(o)}function Pbr(o,p){o=$q(o),o.flags&3670016&&jv(o).members.forEach((m,v)=>{WC(m,v)&&p(m,v)})}function Nbr(o,p){return p.properties.some(v=>{let E=v.name&&(Ev(v.name)?Sg(DH(v.name)):m2(v.name)),D=E&&b0(E)?x0(E):void 0,R=D===void 0?void 0:en(o,D);return!!R&&dZ(R)&&!tc($7(v),R)})}function Obr(o){let p=Do(o);if(!(p.flags&1048576))return WUe(p);let m=ic();for(let v of o)for(let{escapedName:E}of WUe(v))if(!m.has(E)){let D=L2t(p,E);D&&m.set(E,D)}return so(m.values())}function iN(o){return o.flags&262144?Th(o):o.flags&8388608?Rbr(o):o.flags&16777216?N2t(o):Gf(o)}function Th(o){return mse(o)?qq(o):void 0}function Fbr(o,p){let m=cZ(o);return!!m&&oN(m,p)}function oN(o,p=0){var m;return p<5&&!!(o&&(o.flags&262144&&Pt((m=o.symbol)==null?void 0:m.declarations,v=>ko(v,4096))||o.flags&3145728&&Pt(o.types,v=>oN(v,p))||o.flags&8388608&&oN(o.objectType,p+1)||o.flags&16777216&&oN(N2t(o),p+1)||o.flags&33554432&&oN(o.baseType,p)||ro(o)&32&&Fbr(o,p)||rD(o)&&hr(i6(o),(v,E)=>!!(o.target.elementFlags[E]&8)&&oN(v,p))>=0))}function Rbr(o){return mse(o)?Lbr(o):void 0}function jje(o){let p=h2(o,!1);return p!==o?p:iN(o)}function Lbr(o){if(zje(o))return Axe(o.objectType,o.indexType);let p=jje(o.indexType);if(p&&p!==o.indexType){let v=YC(o.objectType,p,o.accessFlags);if(v)return v}let m=jje(o.objectType);if(m&&m!==o.objectType)return YC(m,o.indexType,o.accessFlags)}function Bje(o){if(!o.resolvedDefaultConstraint){let p=bTr(o),m=tD(o);o.resolvedDefaultConstraint=Mi(p)?m:Mi(m)?p:Do([p,m])}return o.resolvedDefaultConstraint}function I2t(o){if(o.resolvedConstraintOfDistributive!==void 0)return o.resolvedConstraintOfDistributive||void 0;if(o.root.isDistributive&&o.restrictiveInstantiation!==o){let p=h2(o.checkType,!1),m=p===o.checkType?iN(p):p;if(m&&m!==o.checkType){let v=NBe(o,_N(o.root.checkType,m,o.mapper),!0);if(!(v.flags&131072))return o.resolvedConstraintOfDistributive=v,v}}o.resolvedConstraintOfDistributive=!1}function P2t(o){return I2t(o)||Bje(o)}function N2t(o){return mse(o)?P2t(o):void 0}function Mbr(o,p){let m,v=!1;for(let E of o)if(E.flags&465829888){let D=iN(E);for(;D&&D.flags&21233664;)D=iN(D);D&&(m=jt(m,D),p&&(m=jt(m,E)))}else(E.flags&469892092||Vb(E))&&(v=!0);if(m&&(p||v)){if(v)for(let E of o)(E.flags&469892092||Vb(E))&&(m=jt(m,E));return Nse(Ac(m,2),!1)}}function Gf(o){if(o.flags&464781312||rD(o)){let p=$je(o);return p!==Gp&&p!==N_?p:void 0}return o.flags&4194304?Uo:void 0}function HS(o){return Gf(o)||o}function mse(o){return $je(o)!==N_}function $je(o){if(o.resolvedBaseConstraint)return o.resolvedBaseConstraint;let p=[];return o.resolvedBaseConstraint=m(o);function m(D){if(!D.immediateBaseConstraint){if(!WS(D,4))return N_;let R,K=zxe(D);if((p.length<10||p.length<50&&!un(p,K))&&(p.push(K),R=E(h2(D,!1)),p.pop()),!kt()){if(D.flags&262144){let se=Sxe(D);if(se){let ce=gt(se,x.Type_parameter_0_has_a_circular_constraint,ri(D));M&&!oP(se,M)&&!oP(M,se)&&ac(ce,xi(M,x.Circularity_originates_in_type_at_this_location))}}R=N_}D.immediateBaseConstraint??(D.immediateBaseConstraint=R||Gp)}return D.immediateBaseConstraint}function v(D){let R=m(D);return R!==Gp&&R!==N_?R:void 0}function E(D){if(D.flags&262144){let R=qq(D);return D.isThisType||!R?R:v(R)}if(D.flags&3145728){let R=D.types,K=[],se=!1;for(let ce of R){let fe=v(ce);fe?(fe!==ce&&(se=!0),K.push(fe)):se=!0}return se?D.flags&1048576&&K.length===R.length?Do(K):D.flags&2097152&&K.length?Ac(K):void 0:D}if(D.flags&4194304)return Uo;if(D.flags&134217728){let R=D.types,K=Wn(R,v);return K.length===R.length?cN(D.texts,K):Mt}if(D.flags&268435456){let R=v(D.type);return R&&R!==D.type?w7(D.symbol,R):Mt}if(D.flags&8388608){if(zje(D))return v(Axe(D.objectType,D.indexType));let R=v(D.objectType),K=v(D.indexType),se=R&&K&&YC(R,K,D.accessFlags);return se&&v(se)}if(D.flags&16777216){let R=P2t(D);return R&&v(R)}if(D.flags&33554432)return v(tBe(D));if(rD(D)){let R=Cr(i6(D),(K,se)=>{let ce=K.flags&262144&&D.target.elementFlags[se]&8&&v(K)||K;return ce!==K&&bg(ce,fe=>kw(fe)&&!rD(fe))?ce:K});return Jb(R,D.target.elementFlags,D.target.readonly,D.target.labeledElementDeclarations)}return D}}function jbr(o,p){if(o===p)return o.resolvedApparentType||(o.resolvedApparentType=Yg(o,p,!0));let m=`I${ff(o)},${ff(p)}`;return Sh(m)??h1(m,Yg(o,p,!0))}function Uje(o){if(o.default)o.default===lf&&(o.default=N_);else if(o.target){let p=Uje(o.target);o.default=p?Oa(p,o.mapper):Gp}else{o.default=lf;let p=o.symbol&&X(o.symbol.declarations,v=>Zu(v)&&v.default),m=p?Sa(p):Gp;o.default===lf&&(o.default=m)}return o.default}function r6(o){let p=Uje(o);return p!==Gp&&p!==N_?p:void 0}function Bbr(o){return Uje(o)!==N_}function O2t(o){return!!(o.symbol&&X(o.symbol.declarations,p=>Zu(p)&&p.default))}function F2t(o){return o.resolvedApparentType||(o.resolvedApparentType=$br(o))}function $br(o){let p=o.target??o,m=cZ(p);if(m&&!p.declaration.nameType){let v=yw(o),E=Xh(v)?F2t(v):Gf(v);if(E&&bg(E,D=>kw(D)||R2t(D)))return Oa(p,_N(m,E,o.mapper))}return o}function R2t(o){return!!(o.flags&2097152)&&ht(o.types,kw)}function zje(o){let p;return!!(o.flags&8388608&&ro(p=o.objectType)&32&&!Xh(p)&&pN(o.indexType)&&!(zb(p)&8)&&!p.declaration.nameType)}function nh(o){let p=o.flags&465829888?Gf(o)||er:o,m=ro(p);return m&32?F2t(p):m&4&&p!==o?Yg(p,o):p.flags&2097152?jbr(p,o):p.flags&402653316?nd:p.flags&296?Mu:p.flags&2112?kxr():p.flags&528?Dp:p.flags&12288?pEt():p.flags&67108864?kc:p.flags&4194304?Uo:p.flags&2&&!be?kc:p}function $q(o){return S1(nh(S1(o)))}function L2t(o,p,m){var v,E,D;let R=0,K,se,ce,fe=o.flags&1048576,Ue,Me=4,yt=fe?0:8,Jt=!1;for(let Fa of o.types){let ho=nh(Fa);if(!(si(ho)||ho.flags&131072)){let pa=vc(ho,p,m),Ps=pa?S0(pa):0;if(pa){if(pa.flags&106500&&(Ue??(Ue=fe?0:16777216),fe?Ue|=pa.flags&16777216:Ue&=pa.flags),!K)K=pa,R=pa.flags&98304||4;else if(pa!==K){if((ZM(pa)||pa)===(ZM(K)||K)&&qBe(K,pa,(qa,rp)=>qa===rp?-1:0)===-1)Jt=!!K.parent&&!!te(Dc(K.parent));else{se||(se=new Map,se.set(hc(K),K));let qa=hc(pa);se.has(qa)||se.set(qa,pa)}R&98304&&(pa.flags&98304)!==(R&98304)&&(R=R&-98305|4)}fe&&Vv(pa)?yt|=8:!fe&&!Vv(pa)&&(yt&=-9),yt|=(Ps&6?0:256)|(Ps&4?512:0)|(Ps&2?1024:0)|(Ps&256?2048:0),B$e(pa)||(Me=2)}else if(fe){let El=!QQ(p)&&D7(ho,p);El?(R=R&-98305|4,yt|=32|(El.isReadonly?8:0),ce=jt(ce,Gc(ho)?Vxe(ho)||Ne:El.type)):ek(ho)&&!(ro(ho)&2097152)?(yt|=32,ce=jt(ce,Ne)):yt|=16}}}if(!K||fe&&(se||yt&48)&&yt&1536&&!(se&&Ubr(se.values())))return;if(!se&&!(yt&16)&&!ce)if(Jt){let Fa=(v=Ci(K,wx))==null?void 0:v.links,ho=mN(K,Fa?.type);return ho.parent=(D=(E=K.valueDeclaration)==null?void 0:E.symbol)==null?void 0:D.parent,ho.links.containingType=o,ho.links.mapper=Fa?.mapper,ho.links.writeType=GE(K),ho}else return K;let Xt=se?so(se.values()):[K],kr,on,Hn,fi=[],sn,rn,vi=!1;for(let Fa of Xt){rn?Fa.valueDeclaration&&Fa.valueDeclaration!==rn&&(vi=!0):rn=Fa.valueDeclaration,kr=En(kr,Fa.declarations);let ho=di(Fa);on||(on=ho,Hn=io(Fa).nameType);let pa=GE(Fa);(sn||pa!==ho)&&(sn=jt(sn||fi.slice(),pa)),ho!==on&&(yt|=64),(dZ(ho)||lN(ho))&&(yt|=128),ho.flags&131072&&ho!==uu&&(yt|=131072),fi.push(ho)}En(fi,ce);let wo=zc(R|(Ue??0),p,Me|yt);return wo.links.containingType=o,!vi&&rn&&(wo.valueDeclaration=rn,rn.symbol.parent&&(wo.parent=rn.symbol.parent)),wo.declarations=kr,wo.links.nameType=Hn,fi.length>2?(wo.links.checkFlags|=65536,wo.links.deferralParent=o,wo.links.deferralConstituents=fi,wo.links.deferralWriteConstituents=sn):(wo.links.type=fe?Do(fi):Ac(fi),sn&&(wo.links.writeType=fe?Do(sn):Ac(sn))),wo}function M2t(o,p,m){var v,E,D;let R=m?(v=o.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:v.get(p):(E=o.propertyCache)==null?void 0:E.get(p);return R||(R=L2t(o,p,m),R&&((m?o.propertyCacheWithoutObjectFunctionPropertyAugment||(o.propertyCacheWithoutObjectFunctionPropertyAugment=ic()):o.propertyCache||(o.propertyCache=ic())).set(p,R),m&&!(Fp(R)&48)&&!((D=o.propertyCache)!=null&&D.get(p))&&(o.propertyCache||(o.propertyCache=ic())).set(p,R))),R}function Ubr(o){let p;for(let m of o){if(!m.declarations)return;if(!p){p=new Set(m.declarations);continue}if(p.forEach(v=>{un(m.declarations,v)||p.delete(v)}),p.size===0)return}return p}function hse(o,p,m){let v=M2t(o,p,m);return v&&!(Fp(v)&16)?v:void 0}function S1(o){return o.flags&1048576&&o.objectFlags&16777216?o.resolvedReducedType||(o.resolvedReducedType=zbr(o)):o.flags&2097152?(o.objectFlags&16777216||(o.objectFlags|=16777216|(Pt(fse(o),qbr)?33554432:0)),o.objectFlags&33554432?tn:o):o}function zbr(o){let p=Zo(o.types,S1);if(p===o.types)return o;let m=Do(p);return m.flags&1048576&&(m.resolvedReducedType=m),m}function qbr(o){return j2t(o)||B2t(o)}function j2t(o){return!(o.flags&16777216)&&(Fp(o)&131264)===192&&!!(di(o).flags&131072)}function B2t(o){return!o.valueDeclaration&&!!(Fp(o)&1024)}function qje(o){return!!(o.flags&1048576&&o.objectFlags&16777216&&Pt(o.types,qje)||o.flags&2097152&&Jbr(o))}function Jbr(o){let p=o.uniqueLiteralFilledInstantiation||(o.uniqueLiteralFilledInstantiation=Oa(o,$a));return S1(p)!==p}function Jje(o,p){if(p.flags&2097152&&ro(p)&33554432){let m=wt(fse(p),j2t);if(m)return ws(o,x.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,ri(p,void 0,536870912),Ua(m));let v=wt(fse(p),B2t);if(v)return ws(o,x.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,ri(p,void 0,536870912),Ua(v))}return o}function vc(o,p,m,v){var E,D;if(o=$q(o),o.flags&524288){let R=jv(o),K=R.members.get(p);if(K&&!v&&((E=o.symbol)==null?void 0:E.flags)&512&&((D=io(o.symbol).typeOnlyExportStarMap)!=null&&D.has(p)))return;if(K&&ln(K,v))return K;if(m)return;let se=R===Ql?Vn:R.callSignatures.length?Ga:R.constructSignatures.length?el:void 0;if(se){let ce=t6(se,p);if(ce)return ce}return t6(br,p)}if(o.flags&2097152){let R=hse(o,p,!0);return R||(m?void 0:hse(o,p,m))}if(o.flags&1048576)return hse(o,p,m)}function gse(o,p){if(o.flags&3670016){let m=jv(o);return p===0?m.callSignatures:m.constructSignatures}return j}function Gs(o,p){let m=gse($q(o),p);if(p===0&&!te(m)&&o.flags&1048576){if(o.arrayFallbackSignatures)return o.arrayFallbackSignatures;let v;if(bg(o,E=>{var D;return!!((D=E.symbol)!=null&&D.parent)&&Vbr(E.symbol.parent)&&(v?v===E.symbol.escapedName:(v=E.symbol.escapedName,!0))})){let E=hp(o,R=>XE(($2t(R.symbol.parent)?Uc:tl).typeParameters[0],R.mapper)),D=um(E,j0(o,R=>$2t(R.symbol.parent)));return o.arrayFallbackSignatures=Gs(en(D,v),p)}o.arrayFallbackSignatures=m}return m}function Vbr(o){return!o||!tl.symbol||!Uc.symbol?!1:!!Pe(o,tl.symbol)||!!Pe(o,Uc.symbol)}function $2t(o){return!o||!Uc.symbol?!1:!!Pe(o,Uc.symbol)}function Uq(o,p){return wt(o,m=>m.keyType===p)}function Vje(o,p){let m,v,E;for(let D of o)D.keyType===Mt?m=D:C7(p,D.keyType)&&(v?(E||(E=[v])).push(D):v=D);return E?aT(er,Ac(Cr(E,D=>D.type)),nl(E,(D,R)=>D&&R.isReadonly,!0)):v||(m&&C7(p,Mt)?m:void 0)}function C7(o,p){return tc(o,p)||p===Mt&&tc(o,Ir)||p===Ir&&(o===Ss||!!(o.flags&128)&&$x(o.value))}function Wje(o){return o.flags&3670016?jv(o).indexInfos:j}function lm(o){return Wje($q(o))}function oT(o,p){return Uq(lm(o),p)}function vw(o,p){var m;return(m=oT(o,p))==null?void 0:m.type}function Gje(o,p){return lm(o).filter(m=>C7(p,m.keyType))}function YQ(o,p){return Vje(lm(o),p)}function D7(o,p){return YQ(o,QQ(p)?wr:Sg(oa(p)))}function U2t(o){var p;let m;for(let v of Zk(o))m=Jl(m,gw(v.symbol));return m?.length?m:i_(o)?(p=zq(o))==null?void 0:p.typeParameters:void 0}function Hje(o){let p=[];return o.forEach((m,v)=>{fw(v)||p.push(m)}),p}function z2t(o,p){if(vt(o))return;let m=Nf(It,'"'+o+'"',512);return m&&p?cl(m):m}function dxe(o){return VO(o)||CH(o)||wa(o)&&Ene(o)}function eZ(o){if(dxe(o))return!0;if(!wa(o))return!1;if(o.initializer){let m=t0(o.parent),v=o.parent.parameters.indexOf(o);return $.assert(v>=0),v>=Jv(m,3)}let p=uA(o.parent);return p?!o.type&&!o.dotDotDotToken&&o.parent.parameters.indexOf(o)>=ATe(p).length:!1}function Wbr(o){return ps(o)&&!xS(o)&&o.questionToken}function tZ(o,p,m,v){return{kind:o,parameterName:p,parameterIndex:m,type:v}}function qb(o){let p=0;if(o)for(let m=0;m=m&&D<=E){let R=o?o.slice():[];for(let se=D;se!!hv(Jt))&&!hv(o)&&!hTe(o)&&(v|=32);for(let Jt=ce?1:0;Jtse.arguments.length&&!on||(E=m.length)}if((o.kind===178||o.kind===179)&&OM(o)&&(!K||!D)){let Jt=o.kind===178?179:178,Xt=Qu($i(o),Jt);Xt&&(D=k7(Xt))}R&&R.typeExpression&&(D=mN(zc(1,"this"),Sa(R.typeExpression)));let Ue=TE(o)?fA(o):o,Me=Ue&&kp(Ue)?O0(cl(Ue.parent.symbol)):void 0,yt=Me?Me.localTypeParameters:U2t(o);(fme(o)||Ei(o)&&Gbr(o,m))&&(v|=1),(fL(o)&&ko(o,64)||kp(o)&&ko(o.parent,64))&&(v|=4),p.resolvedSignature=GS(o,yt,D,m,void 0,void 0,E,v)}return p.resolvedSignature}function Gbr(o,p){if(TE(o)||!Kje(o))return!1;let m=Yr(o.parameters),v=m?P4(m):sA(o).filter(Uy),E=Je(v,R=>R.typeExpression&&Hne(R.typeExpression.type)?R.typeExpression.type:void 0),D=zc(3,"args",32768);return E?D.links.type=um(Sa(E.type)):(D.links.checkFlags|=65536,D.links.deferralParent=tn,D.links.deferralConstituents=[If],D.links.deferralWriteConstituents=[If]),E&&p.pop(),p.push(D),!0}function zq(o){if(!(Ei(o)&&lu(o)))return;let p=mv(o);return p?.typeExpression&&TN(Sa(p.typeExpression))}function Hbr(o,p){let m=zq(o);if(!m)return;let v=o.parameters.indexOf(p);return p.dotDotDotToken?lce(m,v):qv(m,v)}function Kbr(o){let p=zq(o);return p&&Tl(p)}function Kje(o){let p=Ki(o);return p.containsArgumentsReference===void 0&&(p.flags&512?p.containsArgumentsReference=!0:p.containsArgumentsReference=m(o.body)),p.containsArgumentsReference;function m(v){if(!v)return!1;switch(v.kind){case 80:return v.escapedText===Se.escapedName&&qZ(v)===Se;case 173:case 175:case 178:case 179:return v.name.kind===168&&m(v.name);case 212:case 213:return m(v.expression);case 304:return m(v.initializer);default:return!ihe(v)&&!vS(v)&&!!Is(v,m)}}}function n6(o){if(!o||!o.declarations)return j;let p=[];for(let m=0;m0&&v.body){let E=o.declarations[m-1];if(v.parent===E.parent&&v.kind===E.kind&&v.pos===E.end)continue}if(Ei(v)&&v.jsDoc){let E=Hme(v);if(te(E)){for(let D of E){let R=D.typeExpression;R.type===void 0&&!kp(v)&&Dw(R,at),p.push(t0(R))}continue}}p.push(!mC(v)&&!r1(v)&&zq(v)||t0(v))}}return p}function q2t(o){let p=Nm(o,o);if(p){let m=vg(p);if(m)return di(m)}return at}function Sw(o){if(o.thisParameter)return di(o.thisParameter)}function F0(o){if(!o.resolvedTypePredicate){if(o.target){let p=F0(o.target);o.resolvedTypePredicate=p?tkt(p,o.mapper):Er}else if(o.compositeSignatures)o.resolvedTypePredicate=Qxr(o.compositeSignatures,o.compositeKind)||Er;else{let p=o.declaration&&jg(o.declaration),m;if(!p){let v=zq(o.declaration);v&&o!==v&&(m=F0(v))}if(p||m)o.resolvedTypePredicate=p&&gF(p)?Qbr(p,o):m||Er;else if(o.declaration&&lu(o.declaration)&&(!o.resolvedReturnType||o.resolvedReturnType.flags&16)&&xg(o)>0){let{declaration:v}=o;o.resolvedTypePredicate=Er,o.resolvedTypePredicate=LDr(v)||Er}else o.resolvedTypePredicate=Er}$.assert(!!o.resolvedTypePredicate)}return o.resolvedTypePredicate===Er?void 0:o.resolvedTypePredicate}function Qbr(o,p){let m=o.parameterName,v=o.type&&Sa(o.type);return m.kind===198?tZ(o.assertsModifier?2:0,void 0,void 0,v):tZ(o.assertsModifier?3:1,m.escapedText,hr(p.parameters,E=>E.escapedName===m.escapedText),v)}function J2t(o,p,m){return p!==2097152?Do(o,m):Ac(o)}function Tl(o){if(!o.resolvedReturnType){if(!WS(o,3))return Et;let p=o.target?Oa(Tl(o.target),o.mapper):o.compositeSignatures?Oa(J2t(Cr(o.compositeSignatures,Tl),o.compositeKind,2),o.mapper):RM(o.declaration)||(Op(o.declaration.body)?at:NTe(o.declaration));if(o.flags&8?p=Ikt(p):o.flags&16&&(p=nD(p)),!kt()){if(o.declaration){let m=jg(o.declaration);if(m)gt(m,x.Return_type_annotation_circularly_references_itself);else if(Fe){let v=o.declaration,E=cs(v);E?gt(E,x._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,du(E)):gt(v,x.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}p=at}o.resolvedReturnType??(o.resolvedReturnType=p)}return o.resolvedReturnType}function RM(o){if(o.kind===177)return O0(cl(o.parent.symbol));let p=jg(o);if(TE(o)){let m=QR(o);if(m&&kp(m.parent)&&!p)return O0(cl(m.parent.parent.symbol))}if(WO(o))return Sa(o.parameters[0].type);if(p)return Sa(p);if(o.kind===178&&OM(o)){let m=Ei(o)&&gl(o);if(m)return m;let v=Qu($i(o),179),E=Rq(v);if(E)return E}return Kbr(o)}function fxe(o){return o.compositeSignatures&&Pt(o.compositeSignatures,fxe)||!o.resolvedReturnType&&he(o,3)>=0}function Zbr(o){return V2t(o)||at}function V2t(o){if(Am(o)){let p=di(o.parameters[o.parameters.length-1]),m=Gc(p)?Vxe(p):p;return m&&vw(m,Ir)}}function rZ(o,p,m,v){let E=Qje(o,QE(p,o.typeParameters,qb(o.typeParameters),m));if(v){let D=bDt(Tl(E));if(D){let R=ZQ(D);R.typeParameters=v;let K=aN(R);K.mapper=E.mapper;let se=ZQ(E);return se.resolvedReturnType=K,se}}return E}function Qje(o,p){let m=o.instantiations||(o.instantiations=new Map),v=b1(p),E=m.get(v);return E||m.set(v,E=mxe(o,p)),E}function mxe(o,p){return dN(o,Xbr(o,p),!0)}function W2t(o){return Zo(o.typeParameters,p=>p.mapper?Oa(p,p.mapper):p)}function Xbr(o,p){return ty(W2t(o),p)}function nZ(o){return o.typeParameters?o.erasedSignatureCache||(o.erasedSignatureCache=Ybr(o)):o}function Ybr(o){return dN(o,YEt(o.typeParameters),!0)}function exr(o){return o.typeParameters?o.canonicalSignatureCache||(o.canonicalSignatureCache=txr(o)):o}function txr(o){return rZ(o,Cr(o.typeParameters,p=>p.target&&!Th(p.target)?p.target:p),Ei(o.declaration))}function rxr(o){let p=o.typeParameters;if(p){if(o.baseSignatureCache)return o.baseSignatureCache;let m=YEt(p),v=ty(p,Cr(p,D=>Th(D)||er)),E=Cr(p,D=>Oa(D,v)||er);for(let D=0;D{vxe(yt)&&!Uq(m,yt)&&m.push(aT(yt,Ue.type?Sa(Ue.type):at,Bg(Ue,8),Ue))})}}else if(g2t(Ue)){let Me=wi(Ue)?Ue.left:Ue.name,yt=mu(Me)?Bp(Me.argumentExpression):sv(Me);if(Uq(m,yt))continue;tc(yt,Uo)&&(tc(yt,Ir)?(v=!0,Q4(Ue)||(E=!1)):tc(yt,wr)?(D=!0,Q4(Ue)||(R=!1)):(K=!0,Q4(Ue)||(se=!1)),ce.push(Ue.symbol))}let fe=go(ce,yr(p,Ue=>Ue!==o));return K&&!Uq(m,Mt)&&m.push(EZ(se,0,fe,Mt)),v&&!Uq(m,Ir)&&m.push(EZ(E,0,fe,Ir)),D&&!Uq(m,wr)&&m.push(EZ(R,0,fe,wr)),m}return j}function vxe(o){return!!(o.flags&4108)||lN(o)||!!(o.flags&2097152)&&!xw(o)&&Pt(o.types,vxe)}function Sxe(o){return Wn(yr(o.symbol&&o.symbol.declarations,Zu),NR)[0]}function H2t(o,p){var m;let v;if((m=o.symbol)!=null&&m.declarations){for(let E of o.symbol.declarations)if(E.parent.kind===196){let[D=E.parent,R]=$6e(E.parent.parent);if(R.kind===184&&!p){let K=R,se=kUe(K);if(se){let ce=K.typeArguments.indexOf(D);if(ce()=>RAr(K,se,Jt))),Me=Oa(fe,Ue);Me!==o&&(v=jt(v,Me))}}}}else if(R.kind===170&&R.dotDotDotToken||R.kind===192||R.kind===203&&R.dotDotDotToken)v=jt(v,um(er));else if(R.kind===205)v=jt(v,Mt);else if(R.kind===169&&R.parent.kind===201)v=jt(v,Uo);else if(R.kind===201&&R.type&&bl(R.type)===E.parent&&R.parent.kind===195&&R.parent.extendsType===R&&R.parent.checkType.kind===201&&R.parent.checkType.type){let K=R.parent.checkType,se=Sa(K.type);v=jt(v,Oa(se,s6(gw($i(K.typeParameter)),K.typeParameter.constraint?Sa(K.typeParameter.constraint):Uo)))}}}return v&&Ac(v)}function qq(o){if(!o.constraint)if(o.target){let p=Th(o.target);o.constraint=p?Oa(p,o.mapper):Gp}else{let p=Sxe(o);if(!p)o.constraint=H2t(o)||Gp;else{let m=Sa(p);m.flags&1&&!si(m)&&(m=p.parent.parent.kind===201?Uo:er),o.constraint=m}}return o.constraint===Gp?void 0:o.constraint}function K2t(o){let p=Qu(o.symbol,169),m=c1(p.parent)?Ire(p.parent):p.parent;return m&&Xy(m)}function b1(o){let p="";if(o){let m=o.length,v=0;for(;v1&&(p+=":"+D),v+=D}}return p}function sN(o,p){return o?`@${hc(o)}`+(p?`:${b1(p)}`:""):""}function yse(o,p){let m=0;for(let v of o)(p===void 0||!(v.flags&p))&&(m|=ro(v));return m&458752}function LM(o,p){return Pt(p)&&o===Ar?er:f2(o,p)}function f2(o,p){let m=b1(p),v=o.instantiations.get(m);return v||(v=F_(4,o.symbol),o.instantiations.set(m,v),v.objectFlags|=p?yse(p):0,v.target=o,v.resolvedTypeArguments=p),v}function Q2t(o){let p=na(o.flags,o.symbol);return p.objectFlags=o.objectFlags,p.target=o.target,p.resolvedTypeArguments=o.resolvedTypeArguments,p}function Zje(o,p,m,v,E){if(!v){v=I7(p);let R=$M(v);E=m?y2(R,m):R}let D=F_(4,o.symbol);return D.target=o,D.node=p,D.mapper=m,D.aliasSymbol=v,D.aliasTypeArguments=E,D}function Bu(o){var p,m;if(!o.resolvedTypeArguments){if(!WS(o,5))return go(o.target.outerTypeParameters,(p=o.target.localTypeParameters)==null?void 0:p.map(()=>Et))||j;let v=o.node,E=v?v.kind===184?go(o.target.outerTypeParameters,jTe(v,o.target.localTypeParameters)):v.kind===189?[Sa(v.elementType)]:Cr(v.elements,Sa):j;kt()?o.resolvedTypeArguments??(o.resolvedTypeArguments=o.mapper?y2(E,o.mapper):E):(o.resolvedTypeArguments??(o.resolvedTypeArguments=go(o.target.outerTypeParameters,((m=o.target.localTypeParameters)==null?void 0:m.map(()=>Et))||j)),gt(o.node||M,o.target.symbol?x.Type_arguments_for_0_circularly_reference_themselves:x.Tuple_type_arguments_circularly_reference_themselves,o.target.symbol&&Ua(o.target.symbol)))}return o.resolvedTypeArguments}function ZE(o){return te(o.target.typeParameters)}function Z2t(o,p){let m=Tu(cl(p)),v=m.localTypeParameters;if(v){let E=te(o.typeArguments),D=qb(v),R=Ei(o);if(!(!Fe&&R)&&(Ev.length)){let ce=R&&VT(o)&&!EF(o.parent),fe=D===v.length?ce?x.Expected_0_type_arguments_provide_these_with_an_extends_tag:x.Generic_type_0_requires_1_type_argument_s:ce?x.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:x.Generic_type_0_requires_between_1_and_2_type_arguments,Ue=ri(m,void 0,2);if(gt(o,fe,Ue,D,v.length),!R)return Et}if(o.kind===184&&SEt(o,te(o.typeArguments)!==v.length))return Zje(m,o,void 0);let se=go(m.outerTypeParameters,QE(vse(o),v,D,R));return f2(m,se)}return bw(o,p)?m:Et}function MM(o,p,m,v){let E=Tu(o);if(E===Ye){let ce=Gye.get(o.escapedName);if(ce!==void 0&&p&&p.length===1)return ce===4?Xje(p[0]):w7(o,p[0])}let D=io(o),R=D.typeParameters,K=b1(p)+sN(m,v),se=D.instantiations.get(K);return se||D.instantiations.set(K,se=ikt(E,ty(R,QE(p,R,qb(R),Ei(o.valueDeclaration))),m,v)),se}function nxr(o,p){if(Fp(p)&1048576){let E=vse(o),D=sN(p,E),R=Ot.get(D);return R||(R=ra(1,"error",void 0,`alias ${D}`),R.aliasSymbol=p,R.aliasTypeArguments=E,Ot.set(D,R)),R}let m=Tu(p),v=io(p).typeParameters;if(v){let E=te(o.typeArguments),D=qb(v);if(Ev.length)return gt(o,D===v.length?x.Generic_type_0_requires_1_type_argument_s:x.Generic_type_0_requires_between_1_and_2_type_arguments,Ua(p),D,v.length),Et;let R=I7(o),K=R&&(X2t(p)||!X2t(R))?R:void 0,se;if(K)se=$M(K);else if(Zte(o)){let ce=Jq(o,2097152,!0);if(ce&&ce!==ye){let fe=df(ce);fe&&fe.flags&524288&&(K=fe,se=vse(o)||(v?[]:void 0))}}return MM(p,vse(o),K,se)}return bw(o,p)?m:Et}function X2t(o){var p;let m=(p=o.declarations)==null?void 0:p.find(VG);return!!(m&&My(m))}function ixr(o){switch(o.kind){case 184:return o.typeName;case 234:let p=o.expression;if(ru(p))return p}}function Y2t(o){return o.parent?`${Y2t(o.parent)}.${o.escapedName}`:o.escapedName}function bxe(o){let m=(o.kind===167?o.right:o.kind===212?o.name:o).escapedText;if(m){let v=o.kind===167?bxe(o.left):o.kind===212?bxe(o.expression):void 0,E=v?`${Y2t(v)}.${m}`:m,D=Ct.get(E);return D||(Ct.set(E,D=zc(524288,m,1048576)),D.parent=v,D.links.declaredType=xr),D}return ye}function Jq(o,p,m){let v=ixr(o);if(!v)return ye;let E=jp(v,p,m);return E&&E!==ye?E:m?ye:bxe(v)}function xxe(o,p){if(p===ye)return Et;if(p=d7(p)||p,p.flags&96)return Z2t(o,p);if(p.flags&524288)return nxr(o,p);let m=u2t(p);if(m)return bw(o,p)?ih(m):Et;if(p.flags&111551&&Txe(o)){let v=oxr(o,p);return v||(Jq(o,788968),di(p))}return Et}function oxr(o,p){let m=Ki(o);if(!m.resolvedJSDocType){let v=di(p),E=v;if(p.valueDeclaration){let D=o.kind===206&&o.qualifier;v.symbol&&v.symbol!==p&&D&&(E=xxe(o,v.symbol))}m.resolvedJSDocType=E}return m.resolvedJSDocType}function Xje(o){return Yje(o)?eEt(o,er):o}function Yje(o){return!!(o.flags&3145728&&Pt(o.types,Yje)||o.flags&33554432&&!jM(o)&&Yje(o.baseType)||o.flags&524288&&!Vb(o)||o.flags&432275456&&!lN(o))}function jM(o){return!!(o.flags&33554432&&o.constraint.flags&2)}function eBe(o,p){return p.flags&3||p===o||o.flags&1?o:eEt(o,p)}function eEt(o,p){let m=`${ff(o)}>${ff(p)}`,v=yc.get(m);if(v)return v;let E=Fo(33554432);return E.baseType=o,E.constraint=p,yc.set(m,E),E}function tBe(o){return jM(o)?o.baseType:Ac([o.constraint,o.baseType])}function tEt(o){return o.kind===190&&o.elements.length===1}function rEt(o,p,m){return tEt(p)&&tEt(m)?rEt(o,p.elements[0],m.elements[0]):g2(Sa(p))===g2(o)?Sa(m):void 0}function axr(o,p){let m,v=!0;for(;p&&!fa(p)&&p.kind!==321;){let E=p.parent;if(E.kind===170&&(v=!v),(v||o.flags&8650752)&&E.kind===195&&p===E.trueType){let D=rEt(o,E.checkType,E.extendsType);D&&(m=jt(m,D))}else if(o.flags&262144&&E.kind===201&&!E.nameType&&p===E.type){let D=Sa(E);if(av(D)===g2(o)){let R=cZ(D);if(R){let K=Th(R);K&&bg(K,kw)&&(m=jt(m,Do([Ir,Ss])))}}}p=E}return m?eBe(o,Ac(m)):o}function Txe(o){return!!(o.flags&16777216)&&(o.kind===184||o.kind===206)}function bw(o,p){return o.typeArguments?(gt(o,x.Type_0_is_not_generic,p?Ua(p):o.typeName?du(o.typeName):qye),!1):!0}function nEt(o){if(ct(o.typeName)){let p=o.typeArguments;switch(o.typeName.escapedText){case"String":return bw(o),Mt;case"Number":return bw(o),Ir;case"BigInt":return bw(o),ii;case"Boolean":return bw(o),_r;case"Void":return bw(o),pn;case"Undefined":return bw(o),Ne;case"Null":return bw(o),mr;case"Function":case"function":return bw(o),Vn;case"array":return(!p||!p.length)&&!Fe?If:void 0;case"promise":return(!p||!p.length)&&!Fe?pce(at):void 0;case"Object":if(p&&p.length===2){if(Cre(o)){let m=Sa(p[0]),v=Sa(p[1]),E=m===Mt||m===Ir?[aT(m,v,!1)]:j;return mp(void 0,G,j,j,E)}return at}return bw(o),Fe?void 0:at}}}function sxr(o){let p=Sa(o.type);return be?jse(p,65536):p}function Exe(o){let p=Ki(o);if(!p.resolvedType){if(z1(o)&&ZI(o.parent))return p.resolvedSymbol=ye,p.resolvedType=Bp(o.parent.expression);let m,v,E=788968;Txe(o)&&(v=nEt(o),v||(m=Jq(o,E,!0),m===ye?m=Jq(o,E|111551):Jq(o,E),v=xxe(o,m))),v||(m=Jq(o,E),v=xxe(o,m)),p.resolvedSymbol=m,p.resolvedType=v}return p.resolvedType}function vse(o){return Cr(o.typeArguments,Sa)}function iEt(o){let p=Ki(o);if(!p.resolvedType){let m=zDt(o);p.resolvedType=ih(ry(m))}return p.resolvedType}function oEt(o,p){function m(E){let D=E.declarations;if(D)for(let R of D)switch(R.kind){case 264:case 265:case 267:return R}}if(!o)return p?Ar:kc;let v=Tu(o);return v.flags&524288?te(v.typeParameters)!==p?(gt(m(o),x.Global_type_0_must_have_1_type_parameter_s,vp(o),p),p?Ar:kc):v:(gt(m(o),x.Global_type_0_must_be_a_class_or_interface_type,vp(o)),p?Ar:kc)}function rBe(o,p){return BM(o,111551,p?x.Cannot_find_global_value_0:void 0)}function nBe(o,p){return BM(o,788968,p?x.Cannot_find_global_type_0:void 0)}function kxe(o,p,m){let v=BM(o,788968,m?x.Cannot_find_global_type_0:void 0);if(v&&(Tu(v),te(io(v).typeParameters)!==p)){let E=v.declarations&&wt(v.declarations,s1);gt(E,x.Global_type_0_must_have_1_type_parameter_s,vp(v),p);return}return v}function BM(o,p,m){return $t(void 0,o,p,m,!1,!1)}function Qp(o,p,m){let v=nBe(o,m);return v||m?oEt(v,p):void 0}function aEt(o,p){let m;for(let v of o)m=jt(m,Qp(v,p,!1));return m??j}function cxr(){return Gx||(Gx=Qp("TypedPropertyDescriptor",1,!0)||Ar)}function lxr(){return Ka||(Ka=Qp("TemplateStringsArray",0,!0)||kc)}function sEt(){return Ws||(Ws=Qp("ImportMeta",0,!0)||kc)}function cEt(){if(!Xa){let o=zc(0,"ImportMetaExpression"),p=sEt(),m=zc(4,"meta",8);m.parent=o,m.links.type=p;let v=ic([m]);o.members=v,Xa=mp(o,v,j,j,j)}return Xa}function lEt(o){return ks||(ks=Qp("ImportCallOptions",0,o))||kc}function iBe(o){return cp||(cp=Qp("ImportAttributes",0,o))||kc}function uEt(o){return D0||(D0=rBe("Symbol",o))}function uxr(o){return Pb||(Pb=nBe("SymbolConstructor",o))}function pEt(){return Wx||(Wx=Qp("Symbol",0,!1))||kc}function Sse(o){return Gh||(Gh=Qp("Promise",1,o))||Ar}function _Et(o){return Nd||(Nd=Qp("PromiseLike",1,o))||Ar}function oBe(o){return Iv||(Iv=rBe("Promise",o))}function pxr(o){return Hy||(Hy=Qp("PromiseConstructorLike",0,o))||kc}function bse(o){return fo||(fo=Qp("AsyncIterable",3,o))||Ar}function _xr(o){return Mo||(Mo=Qp("AsyncIterator",3,o))||Ar}function dEt(o){return Ea||(Ea=Qp("AsyncIterableIterator",3,o))||Ar}function dxr(){return it??(it=aEt(["ReadableStreamAsyncIterator"],1))}function fxr(o){return cr||(cr=Qp("AsyncIteratorObject",3,o))||Ar}function mxr(o){return In||(In=Qp("AsyncGenerator",3,o))||Ar}function Cxe(o){return US||(US=Qp("Iterable",3,o))||Ar}function hxr(o){return xe||(xe=Qp("Iterator",3,o))||Ar}function fEt(o){return Ft||(Ft=Qp("IterableIterator",3,o))||Ar}function aBe(){return Ae?Ne:at}function gxr(){return ee??(ee=aEt(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))}function yxr(o){return Nr||(Nr=Qp("IteratorObject",3,o))||Ar}function vxr(o){return Mr||(Mr=Qp("Generator",3,o))||Ar}function Sxr(o){return wn||(wn=Qp("IteratorYieldResult",1,o))||Ar}function bxr(o){return Yn||(Yn=Qp("IteratorReturnResult",1,o))||Ar}function mEt(o){return Cc||(Cc=Qp("Disposable",0,o))||kc}function xxr(o){return pf||(pf=Qp("AsyncDisposable",0,o))||kc}function hEt(o,p=0){let m=BM(o,788968,void 0);return m&&oEt(m,p)}function Txr(){return Kg||(Kg=kxe("Extract",2,!0)||ye),Kg===ye?void 0:Kg}function Exr(){return Ky||(Ky=kxe("Omit",2,!0)||ye),Ky===ye?void 0:Ky}function sBe(o){return A0||(A0=kxe("Awaited",1,o)||(o?ye:void 0)),A0===ye?void 0:A0}function kxr(){return r2||(r2=Qp("BigInt",0,!1))||kc}function Cxr(o){return Nb??(Nb=Qp("ClassDecoratorContext",1,o))??Ar}function Dxr(o){return Pv??(Pv=Qp("ClassMethodDecoratorContext",2,o))??Ar}function Axr(o){return d1??(d1=Qp("ClassGetterDecoratorContext",2,o))??Ar}function wxr(o){return OC??(OC=Qp("ClassSetterDecoratorContext",2,o))??Ar}function Ixr(o){return dt??(dt=Qp("ClassAccessorDecoratorContext",2,o))??Ar}function Pxr(o){return Lt??(Lt=Qp("ClassAccessorDecoratorTarget",2,o))??Ar}function Nxr(o){return Tr??(Tr=Qp("ClassAccessorDecoratorResult",2,o))??Ar}function Oxr(o){return dn??(dn=Qp("ClassFieldDecoratorContext",2,o))??Ar}function Fxr(){return PE||(PE=rBe("NaN",!1))}function Rxr(){return vh||(vh=kxe("Record",2,!0)||ye),vh===ye?void 0:vh}function Vq(o,p){return o!==Ar?f2(o,p):kc}function gEt(o){return Vq(cxr(),[o])}function yEt(o){return Vq(Cxe(!0),[o,pn,Ne])}function um(o,p){return Vq(p?Uc:tl,[o])}function cBe(o){switch(o.kind){case 191:return 2;case 192:return vEt(o);case 203:return o.questionToken?2:o.dotDotDotToken?vEt(o):1;default:return 1}}function vEt(o){return Dse(o.type)?4:8}function Lxr(o){let p=Bxr(o.parent);if(Dse(o))return p?Uc:tl;let v=Cr(o.elements,cBe);return lBe(v,p,Cr(o.elements,Mxr))}function Mxr(o){return mL(o)||wa(o)?o:void 0}function SEt(o,p){return!!I7(o)||bEt(o)&&(o.kind===189?XC(o.elementType):o.kind===190?Pt(o.elements,XC):p||Pt(o.typeArguments,XC))}function bEt(o){let p=o.parent;switch(p.kind){case 197:case 203:case 184:case 193:case 194:case 200:case 195:case 199:case 189:case 190:return bEt(p);case 266:return!0}return!1}function XC(o){switch(o.kind){case 184:return Txe(o)||!!(Jq(o,788968).flags&524288);case 187:return!0;case 199:return o.operator!==158&&XC(o.type);case 197:case 191:case 203:case 317:case 315:case 316:case 310:return XC(o.type);case 192:return o.type.kind!==189||XC(o.type.elementType);case 193:case 194:return Pt(o.types,XC);case 200:return XC(o.objectType)||XC(o.indexType);case 195:return XC(o.checkType)||XC(o.extendsType)||XC(o.trueType)||XC(o.falseType)}return!1}function jxr(o){let p=Ki(o);if(!p.resolvedType){let m=Lxr(o);if(m===Ar)p.resolvedType=kc;else if(!(o.kind===190&&Pt(o.elements,v=>!!(cBe(v)&8)))&&SEt(o))p.resolvedType=o.kind===190&&o.elements.length===0?m:Zje(m,o,void 0);else{let v=o.kind===189?[Sa(o.elementType)]:Cr(o.elements,Sa);p.resolvedType=uBe(m,v)}}return p.resolvedType}function Bxr(o){return bA(o)&&o.operator===148}function Jb(o,p,m=!1,v=[]){let E=lBe(p||Cr(o,D=>1),m,v);return E===Ar?kc:o.length?uBe(E,o):E}function lBe(o,p,m){if(o.length===1&&o[0]&4)return p?Uc:tl;let v=Cr(o,D=>D&1?"#":D&2?"?":D&4?".":"*").join()+(p?"R":"")+(Pt(m,D=>!!D)?","+Cr(m,D=>D?hl(D):"_").join(","):""),E=oo.get(v);return E||oo.set(v,E=$xr(o,p,m)),E}function $xr(o,p,m){let v=o.length,E=Lo(o,Ue=>!!(Ue&9)),D,R=[],K=0;if(v){D=new Array(v);for(let Ue=0;Ue!!(o.elementFlags[kr]&8&&Xt.flags&1179648));if(Jt>=0)return Tse(Cr(p,(Xt,kr)=>o.elementFlags[kr]&8?Xt:er))?hp(p[Jt],Xt=>pBe(o,pc(p,Jt,Xt))):Et}let R=[],K=[],se=[],ce=-1,fe=-1,Ue=-1;for(let Jt=0;Jt=1e4)return gt(M,vS(M)?x.Type_produces_a_tuple_type_that_is_too_large_to_represent:x.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Et;X(on,(Hn,fi)=>{var sn;return yt(Hn,Xt.target.elementFlags[fi],(sn=Xt.target.labeledElementDeclarations)==null?void 0:sn[fi])})}else yt(YE(Xt)&&vw(Xt,Ir)||Et,4,(E=o.labeledElementDeclarations)==null?void 0:E[Jt]);else yt(Xt,kr,(D=o.labeledElementDeclarations)==null?void 0:D[Jt])}for(let Jt=0;Jt=0&&feK[fe+Xt]&8?ey(Jt,Ir):Jt)),R.splice(fe+1,Ue-fe),K.splice(fe+1,Ue-fe),se.splice(fe+1,Ue-fe));let Me=lBe(K,o.readonly,se);return Me===Ar?kc:K.length?f2(Me,R):Me;function yt(Jt,Xt,kr){Xt&1&&(ce=K.length),Xt&4&&fe<0&&(fe=K.length),Xt&6&&(Ue=K.length),R.push(Xt&2?Om(Jt,!0):Jt),K.push(Xt),se.push(kr)}}function Wq(o,p,m=0){let v=o.target,E=ZE(o)-m;return p>v.fixedLength?D2r(o)||Jb(j):Jb(Bu(o).slice(p,E),v.elementFlags.slice(p,E),!1,v.labeledElementDeclarations&&v.labeledElementDeclarations.slice(p,E))}function xEt(o){return Do(jt(Jn(o.target.fixedLength,p=>Sg(""+p)),KS(o.target.readonly?Uc:tl)))}function Uxr(o,p){let m=hr(o.elementFlags,v=>!(v&p));return m>=0?m:o.elementFlags.length}function iZ(o,p){return o.elementFlags.length-Hi(o.elementFlags,m=>!(m&p))-1}function _Be(o){return o.fixedLength+iZ(o,3)}function i6(o){let p=Bu(o),m=ZE(o);return p.length===m?p:p.slice(0,m)}function zxr(o){return Om(Sa(o.type),!0)}function ff(o){return o.id}function sT(o,p){return rs(o,p,ff,Br)>=0}function xse(o,p){let m=rs(o,p,ff,Br);return m<0?(o.splice(~m,0,p),!0):!1}function qxr(o,p,m){let v=m.flags;if(!(v&131072))if(p|=v&473694207,v&465829888&&(p|=33554432),v&2097152&&ro(m)&67108864&&(p|=536870912),m===Qt&&(p|=8388608),si(m)&&(p|=1073741824),!be&&v&98304)ro(m)&65536||(p|=4194304);else{let E=o.length,D=E&&m.id>o[E-1].id?~E:rs(o,m,ff,Br);D<0&&o.splice(~D,0,m)}return p}function TEt(o,p,m){let v;for(let E of m)E!==v&&(p=E.flags&1048576?TEt(o,p|(Kxr(E)?1048576:0),E.types):qxr(o,p,E),v=E);return p}function Jxr(o,p){var m;if(o.length<2)return o;let v=b1(o),E=Cn.get(v);if(E)return E;let D=p&&Pt(o,ce=>!!(ce.flags&524288)&&!Xh(ce)&&LBe(jv(ce))),R=o.length,K=R,se=0;for(;K>0;){K--;let ce=o[K];if(D||ce.flags&469499904){if(ce.flags&262144&&HS(ce).flags&1048576){QS(ce,Do(Cr(o,Me=>Me===ce?tn:Me)),tp)&&R1(o,K);continue}let fe=ce.flags&61603840?wt($l(ce),Me=>$v(di(Me))):void 0,Ue=fe&&ih(di(fe));for(let Me of o)if(ce!==Me){if(se===1e5&&se/(R-K)*R>1e6){(m=hi)==null||m.instant(hi.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:o.map(Jt=>Jt.id)}),gt(M,x.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(se++,fe&&Me.flags&61603840){let yt=en(Me,fe.escapedName);if(yt&&$v(yt)&&ih(yt)!==Ue)continue}if(QS(ce,Me,tp)&&(!(ro(Fn(ce))&1)||!(ro(Fn(Me))&1)||Ew(ce,Me))){R1(o,K);break}}}}return Cn.set(v,o),o}function Vxr(o,p,m){let v=o.length;for(;v>0;){v--;let E=o[v],D=E.flags;(D&402653312&&p&4||D&256&&p&8||D&2048&&p&64||D&8192&&p&4096||m&&D&32768&&p&16384||a6(E)&&sT(o,E.regularType))&&R1(o,v)}}function Wxr(o){let p=yr(o,lN);if(p.length){let m=o.length;for(;m>0;){m--;let v=o[m];v.flags&128&&Pt(p,E=>Gxr(v,E))&&R1(o,m)}}}function Gxr(o,p){return p.flags&134217728?tTe(o,p):eTe(o,p)}function Hxr(o){let p=[];for(let m of o)if(m.flags&2097152&&ro(m)&67108864){let v=m.types[0].flags&8650752?0:1;Zc(p,m.types[v])}for(let m of p){let v=[];for(let D of o)if(D.flags&2097152&&ro(D)&67108864){let R=D.types[0].flags&8650752?0:1;D.types[R]===m&&xse(v,D.types[1-R])}let E=Gf(m);if(bg(E,D=>sT(v,D))){let D=o.length;for(;D>0;){D--;let R=o[D];if(R.flags&2097152&&ro(R)&67108864){let K=R.types[0].flags&8650752?0:1;R.types[K]===m&&sT(v,R.types[1-K])&&R1(o,D)}}xse(o,m)}}}function Kxr(o){return!!(o.flags&1048576&&(o.aliasSymbol||o.origin))}function EEt(o,p){for(let m of p)if(m.flags&1048576){let v=m.origin;m.aliasSymbol||v&&!(v.flags&1048576)?Zc(o,m):v&&v.flags&1048576&&EEt(o,v.types)}}function dBe(o,p){let m=Ya(o);return m.types=p,m}function Do(o,p=1,m,v,E){if(o.length===0)return tn;if(o.length===1)return o[0];if(o.length===2&&!E&&(o[0].flags&1048576||o[1].flags&1048576)){let D=p===0?"N":p===2?"S":"L",R=o[0].id=2&&D[0]===Ne&&D[1]===ot&&R1(D,1),(R&402664352||R&16384&&R&32768)&&Vxr(D,R,!!(p&2)),R&128&&R&402653184&&Wxr(D),R&536870912&&Hxr(D),p===2&&(D=Jxr(D,!!(R&524288)),!D))return Et;if(D.length===0)return R&65536?R&4194304?mr:Ge:R&32768?R&4194304?Ne:Y:tn}if(!E&&R&1048576){let se=[];EEt(se,o);let ce=[];for(let Ue of D)Pt(se,Me=>sT(Me.types,Ue))||ce.push(Ue);if(!m&&se.length===1&&ce.length===0)return se[0];if(nl(se,(Ue,Me)=>Ue+Me.types.length,0)+ce.length===D.length){for(let Ue of se)xse(ce,Ue);E=dBe(1048576,ce)}}let K=(R&36323331?0:32768)|(R&2097152?16777216:0);return mBe(D,K,m,v,E)}function Qxr(o,p){let m,v=[];for(let D of o){let R=F0(D);if(R){if(R.kind!==0&&R.kind!==1||m&&!fBe(m,R))return;m=R,v.push(R.type)}else{let K=p!==2097152?Tl(D):void 0;if(K!==Rn&&K!==zn)return}}if(!m)return;let E=J2t(v,p);return tZ(m.kind,m.parameterName,m.parameterIndex,E)}function fBe(o,p){return o.kind===p.kind&&o.parameterIndex===p.parameterIndex}function mBe(o,p,m,v,E){if(o.length===0)return tn;if(o.length===1)return o[0];let R=(E?E.flags&1048576?`|${b1(E.types)}`:E.flags&2097152?`&${b1(E.types)}`:`#${E.type.id}|${b1(o)}`:b1(o))+sN(m,v),K=Oi.get(R);return K||(K=Fo(1048576),K.objectFlags=p|yse(o,98304),K.types=o,K.origin=E,K.aliasSymbol=m,K.aliasTypeArguments=v,o.length===2&&o[0].flags&512&&o[1].flags&512&&(K.flags|=16,K.intrinsicName="boolean"),Oi.set(R,K)),K}function Zxr(o){let p=Ki(o);if(!p.resolvedType){let m=I7(o);p.resolvedType=Do(Cr(o.types,Sa),1,m,$M(m))}return p.resolvedType}function Xxr(o,p,m){let v=m.flags;return v&2097152?CEt(o,p,m.types):(Vb(m)?p&16777216||(p|=16777216,o.set(m.id.toString(),m)):(v&3?(m===Qt&&(p|=8388608),si(m)&&(p|=1073741824)):(be||!(v&98304))&&(m===ot&&(p|=262144,m=Ne),o.has(m.id.toString())||(m.flags&109472&&p&109472&&(p|=67108864),o.set(m.id.toString(),m))),p|=v&473694207),p)}function CEt(o,p,m){for(let v of m)p=Xxr(o,p,ih(v));return p}function Yxr(o,p){let m=o.length;for(;m>0;){m--;let v=o[m];(v.flags&4&&p&402653312||v.flags&8&&p&256||v.flags&64&&p&2048||v.flags&4096&&p&8192||v.flags&16384&&p&32768||Vb(v)&&p&470302716)&&R1(o,m)}}function eTr(o,p){for(let m of o)if(!sT(m.types,p)){if(p===ot)return sT(m.types,Ne);if(p===Ne)return sT(m.types,ot);let v=p.flags&128?Mt:p.flags&288?Ir:p.flags&2048?ii:p.flags&8192?wr:void 0;if(!v||!sT(m.types,v))return!1}return!0}function tTr(o){let p=o.length,m=yr(o,v=>!!(v.flags&128));for(;p>0;){p--;let v=o[p];if(v.flags&402653184){for(let E of m)if(c6(E,v)){R1(o,p);break}else if(lN(v))return!0}}return!1}function DEt(o,p){for(let m=0;m!(v.flags&p))}function rTr(o){let p,m=hr(o,R=>!!(ro(R)&32768));if(m<0)return!1;let v=m+1;for(;v!!(Jt.flags&469893116)||Vb(Jt))){if(Gq(yt,Me))return Ue;if(!(yt.flags&1048576&&j0(yt,Jt=>Gq(Jt,Me)))&&!Gq(Me,yt))return tn;K=67108864}}}let se=b1(R)+(p&2?"*":sN(m,v)),ce=ft.get(se);if(!ce){if(D&1048576)if(rTr(R))ce=Ac(R,p,m,v);else if(ht(R,fe=>!!(fe.flags&1048576&&fe.types[0].flags&32768))){let fe=Pt(R,mZ)?ot:Ne;DEt(R,32768),ce=Do([Ac(R,p),fe],1,m,v)}else if(ht(R,fe=>!!(fe.flags&1048576&&(fe.types[0].flags&65536||fe.types[1].flags&65536))))DEt(R,65536),ce=Do([Ac(R,p),mr],1,m,v);else if(R.length>=3&&o.length>2){let fe=Math.floor(R.length/2);ce=Ac([Ac(R.slice(0,fe),p),Ac(R.slice(fe),p)],p,m,v)}else{if(!Tse(R))return Et;let fe=iTr(R,p),Ue=Pt(fe,Me=>!!(Me.flags&2097152))&&hBe(fe)>hBe(R)?dBe(2097152,R):void 0;ce=Do(fe,1,m,v,Ue)}else ce=nTr(R,K,m,v);ft.set(se,ce)}return ce}function AEt(o){return nl(o,(p,m)=>m.flags&1048576?p*m.types.length:m.flags&131072?0:p,1)}function Tse(o){var p;let m=AEt(o);return m>=1e5?((p=hi)==null||p.instant(hi.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:o.map(v=>v.id),size:m}),gt(M,x.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function iTr(o,p){let m=AEt(o),v=[];for(let E=0;E=0;se--)if(o[se].flags&1048576){let ce=o[se].types,fe=ce.length;D[se]=ce[R%fe],R=Math.floor(R/fe)}let K=Ac(D,p);K.flags&131072||v.push(K)}return v}function wEt(o){return!(o.flags&3145728)||o.aliasSymbol?1:o.flags&1048576&&o.origin?wEt(o.origin):hBe(o.types)}function hBe(o){return nl(o,(p,m)=>p+wEt(m),0)}function oTr(o){let p=Ki(o);if(!p.resolvedType){let m=I7(o),v=Cr(o.types,Sa),E=v.length===2?v.indexOf(sc):-1,D=E>=0?v[1-E]:er,R=!!(D.flags&76||D.flags&134217728&&lN(D));p.resolvedType=Ac(v,R?1:0,m,$M(m))}return p.resolvedType}function IEt(o,p){let m=Fo(4194304);return m.type=o,m.indexFlags=p,m}function aTr(o){let p=Ya(4194304);return p.type=o,p}function PEt(o,p){return p&1?o.resolvedStringIndexType||(o.resolvedStringIndexType=IEt(o,1)):o.resolvedIndexType||(o.resolvedIndexType=IEt(o,0))}function NEt(o,p){let m=av(o),v=e0(o),E=HE(o.target||o);if(!E&&!(p&2))return v;let D=[];if(pN(v)){if(FM(o))return PEt(o,p);vN(v,K)}else if(FM(o)){let se=nh(yw(o));Mje(se,8576,!!(p&1),K)}else vN(dse(v),K);let R=p&2?G_(Do(D),se=>!(se.flags&5)):Do(D);if(R.flags&1048576&&v.flags&1048576&&b1(R.types)===b1(v.types))return v;return R;function K(se){let ce=E?Oa(E,sZ(o.mapper,m,se)):se;D.push(ce===Mt?$r:ce)}}function sTr(o){let p=av(o);return m(HE(o)||p);function m(v){return v.flags&470810623?!0:v.flags&16777216?v.root.isDistributive&&v.checkType===p:v.flags&137363456?ht(v.types,m):v.flags&8388608?m(v.objectType)&&m(v.indexType):v.flags&33554432?m(v.baseType)&&m(v.constraint):v.flags&268435456?m(v.type):!1}}function m2(o){if(Aa(o))return tn;if(qh(o))return ih(Va(o));if(dc(o))return ih(sv(o));let p=H4(o);return p!==void 0?Sg(oa(p)):Vt(o)?ih(Va(o)):tn}function A7(o,p,m){if(m||!(S0(o)&6)){let v=io(pxe(o)).nameType;if(!v){let E=cs(o.valueDeclaration);v=o.escapedName==="default"?Sg("default"):E&&m2(E)||(AU(o)?void 0:Sg(vp(o)))}if(v&&v.flags&p)return v}return tn}function OEt(o,p){return!!(o.flags&p||o.flags&2097152&&Pt(o.types,m=>OEt(m,p)))}function cTr(o,p,m){let v=m&&(ro(o)&7||o.aliasSymbol)?aTr(o):void 0,E=Cr($l(o),R=>A7(R,p)),D=Cr(lm(o),R=>R!==ua&&OEt(R.keyType,p)?R.keyType===Mt&&p&8?$r:R.keyType:tn);return Do(go(E,D),1,void 0,void 0,v)}function gBe(o,p=0){return!!(o.flags&58982400||rD(o)||Xh(o)&&(!sTr(o)||XQ(o)===2)||o.flags&1048576&&!(p&4)&&qje(o)||o.flags&2097152&&s_(o,465829888)&&Pt(o.types,Vb))}function KS(o,p=0){return o=S1(o),jM(o)?Xje(KS(o.baseType,p)):gBe(o,p)?PEt(o,p):o.flags&1048576?Ac(Cr(o.types,m=>KS(m,p))):o.flags&2097152?Do(Cr(o.types,m=>KS(m,p))):ro(o)&32?NEt(o,p):o===Qt?Qt:o.flags&2?tn:o.flags&131073?Uo:cTr(o,(p&2?128:402653316)|(p&1?0:12584),p===0)}function FEt(o){let p=Txr();return p?MM(p,[o,Mt]):Mt}function lTr(o){let p=FEt(KS(o));return p.flags&131072?Mt:p}function uTr(o){let p=Ki(o);if(!p.resolvedType)switch(o.operator){case 143:p.resolvedType=KS(Sa(o.type));break;case 158:p.resolvedType=o.type.kind===155?CBe(HG(o.parent)):Et;break;case 148:p.resolvedType=Sa(o.type);break;default:$.assertNever(o.operator)}return p.resolvedType}function pTr(o){let p=Ki(o);return p.resolvedType||(p.resolvedType=cN([o.head.text,...Cr(o.templateSpans,m=>m.literal.text)],Cr(o.templateSpans,m=>Sa(m.type)))),p.resolvedType}function cN(o,p){let m=hr(p,ce=>!!(ce.flags&1179648));if(m>=0)return Tse(p)?hp(p[m],ce=>cN(o,pc(p,m,ce))):Et;if(un(p,Qt))return Qt;let v=[],E=[],D=o[0];if(!se(o,p))return Mt;if(v.length===0)return Sg(D);if(E.push(D),ht(E,ce=>ce==="")){if(ht(v,ce=>!!(ce.flags&4)))return Mt;if(v.length===1&&lN(v[0]))return v[0]}let R=`${b1(v)}|${Cr(E,ce=>ce.length).join(",")}|${E.join("")}`,K=ya.get(R);return K||ya.set(R,K=dTr(E,v)),K;function se(ce,fe){for(let Ue=0;Uew7(o,m)):p.flags&128?Sg(REt(o,p.value)):p.flags&134217728?cN(...fTr(o,p.texts,p.types)):p.flags&268435456&&o===p.symbol?p:p.flags&268435461||pN(p)?LEt(o,p):Ese(p)?LEt(o,cN(["",""],[p])):p}function REt(o,p){switch(Gye.get(o.escapedName)){case 0:return p.toUpperCase();case 1:return p.toLowerCase();case 2:return p.charAt(0).toUpperCase()+p.slice(1);case 3:return p.charAt(0).toLowerCase()+p.slice(1)}return p}function fTr(o,p,m){switch(Gye.get(o.escapedName)){case 0:return[p.map(v=>v.toUpperCase()),m.map(v=>w7(o,v))];case 1:return[p.map(v=>v.toLowerCase()),m.map(v=>w7(o,v))];case 2:return[p[0]===""?p:[p[0].charAt(0).toUpperCase()+p[0].slice(1),...p.slice(1)],p[0]===""?[w7(o,m[0]),...m.slice(1)]:m];case 3:return[p[0]===""?p:[p[0].charAt(0).toLowerCase()+p[0].slice(1),...p.slice(1)],p[0]===""?[w7(o,m[0]),...m.slice(1)]:m]}return[p,m]}function LEt(o,p){let m=`${hc(o)},${ff(p)}`,v=Ls.get(m);return v||Ls.set(m,v=mTr(o,p)),v}function mTr(o,p){let m=na(268435456,o);return m.type=p,m}function hTr(o,p,m,v,E){let D=Fo(8388608);return D.objectType=o,D.indexType=p,D.accessFlags=m,D.aliasSymbol=v,D.aliasTypeArguments=E,D}function oZ(o){if(Fe)return!1;if(ro(o)&4096)return!0;if(o.flags&1048576)return ht(o.types,oZ);if(o.flags&2097152)return Pt(o.types,oZ);if(o.flags&465829888){let p=$je(o);return p!==o&&oZ(p)}return!1}function Dxe(o,p){return b0(o)?x0(o):p&&q_(p)?H4(p):void 0}function yBe(o,p){if(p.flags&8208){let m=fn(o.parent,v=>!wu(v))||o.parent;return QI(m)?mS(m)&&ct(o)&&Hkt(m,o):ht(p.declarations,v=>!Rs(v)||Nv(v))}return!0}function MEt(o,p,m,v,E,D){let R=E&&E.kind===213?E:void 0,K=E&&Aa(E)?void 0:Dxe(m,E);if(K!==void 0){if(D&256)return Aw(p,K)||at;let ce=vc(p,K);if(ce){if(D&64&&E&&ce.declarations&&th(ce)&&yBe(E,ce)){let Ue=R?.argumentExpression??(vP(E)?E.indexType:E);g1(Ue,ce.declarations,K)}if(R){if(ice(ce,R,mDt(R.expression,p.symbol)),nAt(R,ce,cC(R))){gt(R.argumentExpression,x.Cannot_assign_to_0_because_it_is_a_read_only_property,Ua(ce));return}if(D&8&&(Ki(E).resolvedSymbol=ce),sDt(R,ce))return Zt}let fe=D&4?GE(ce):di(ce);return R&&cC(R)!==1?T2(R,fe):E&&vP(E)&&mZ(fe)?Do([fe,Ne]):fe}if(bg(p,Gc)&&$x(K)){let fe=+K;if(E&&bg(p,Ue=>!(Ue.target.combinedFlags&12))&&!(D&16)){let Ue=vBe(E);if(Gc(p)){if(fe<0)return gt(Ue,x.A_tuple_type_cannot_be_indexed_with_a_negative_value),Ne;gt(Ue,x.Tuple_type_0_of_length_1_has_no_element_at_index_2,ri(p),ZE(p),oa(K))}else gt(Ue,x.Property_0_does_not_exist_on_type_1,oa(K),ri(p))}if(fe>=0)return se(oT(p,Ir)),Dkt(p,fe,D&1?ot:void 0)}}if(!(m.flags&98304)&&Hf(m,402665900)){if(p.flags&131073)return p;let ce=YQ(p,m)||oT(p,Mt);if(ce){if(D&2&&ce.keyType!==Ir){R&&(D&4?gt(R,x.Type_0_is_generic_and_can_only_be_indexed_for_reading,ri(o)):gt(R,x.Type_0_cannot_be_used_to_index_type_1,ri(m),ri(o)));return}if(E&&ce.keyType===Mt&&!Hf(m,12)){let fe=vBe(E);return gt(fe,x.Type_0_cannot_be_used_as_an_index_type,ri(m)),D&1?Do([ce.type,ot]):ce.type}return se(ce),D&1&&!(p.symbol&&p.symbol.flags&384&&m.symbol&&m.flags&1024&&Od(m.symbol)===p.symbol)?Do([ce.type,ot]):ce.type}if(m.flags&131072)return tn;if(oZ(p))return at;if(R&&!RTe(p)){if(ek(p)){if(Fe&&m.flags&384)return il.add(xi(R,x.Property_0_does_not_exist_on_type_1,m.value,ri(p))),Ne;if(m.flags&12){let fe=Cr(p.properties,Ue=>di(Ue));return Do(jt(fe,Ne))}}if(p.symbol===_t&&K!==void 0&&_t.exports.has(K)&&_t.exports.get(K).flags&418)gt(R,x.Property_0_does_not_exist_on_type_1,oa(K),ri(p));else if(Fe&&!(D&128))if(K!==void 0&&uDt(K,p)){let fe=ri(p);gt(R,x.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,K,fe,fe+"["+Sp(R.argumentExpression)+"]")}else if(vw(p,Ir))gt(R.argumentExpression,x.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let fe;if(K!==void 0&&(fe=dDt(K,p)))fe!==void 0&>(R.argumentExpression,x.Property_0_does_not_exist_on_type_1_Did_you_mean_2,K,ri(p),fe);else{let Ue=TCr(p,R,m);if(Ue!==void 0)gt(R,x.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,ri(p),Ue);else{let Me;if(m.flags&1024)Me=ws(void 0,x.Property_0_does_not_exist_on_type_1,"["+ri(m)+"]",ri(p));else if(m.flags&8192){let yt=$E(m.symbol,R);Me=ws(void 0,x.Property_0_does_not_exist_on_type_1,"["+yt+"]",ri(p))}else m.flags&128||m.flags&256?Me=ws(void 0,x.Property_0_does_not_exist_on_type_1,m.value,ri(p)):m.flags&12&&(Me=ws(void 0,x.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,ri(m),ri(p)));Me=ws(Me,x.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,ri(v),ri(p)),il.add(Nx(Pn(R),R,Me))}}}return}}if(D&16&&ek(p))return Ne;if(oZ(p))return at;if(E){let ce=vBe(E);if(ce.kind!==10&&m.flags&384)gt(ce,x.Property_0_does_not_exist_on_type_1,""+m.value,ri(p));else if(m.flags&12)gt(ce,x.Type_0_has_no_matching_index_signature_for_type_1,ri(p),ri(m));else{let fe=ce.kind===10?"bigint":ri(m);gt(ce,x.Type_0_cannot_be_used_as_an_index_type,fe)}}if(Mi(m))return m;return;function se(ce){ce&&ce.isReadonly&&R&&(lC(R)||Qme(R))&>(R,x.Index_signature_in_type_0_only_permits_reading,ri(p))}}function vBe(o){return o.kind===213?o.argumentExpression:o.kind===200?o.indexType:o.kind===168?o.expression:o}function Ese(o){if(o.flags&2097152){let p=!1;for(let m of o.types)if(m.flags&101248||Ese(m))p=!0;else if(!(m.flags&524288))return!1;return p}return!!(o.flags&77)||lN(o)}function lN(o){return!!(o.flags&134217728)&&ht(o.types,Ese)||!!(o.flags&268435456)&&Ese(o.type)}function jEt(o){return!!(o.flags&402653184)&&!lN(o)}function xw(o){return!!aZ(o)}function uN(o){return!!(aZ(o)&4194304)}function pN(o){return!!(aZ(o)&8388608)}function aZ(o){return o.flags&3145728?(o.objectFlags&2097152||(o.objectFlags|=2097152|nl(o.types,(p,m)=>p|aZ(m),0)),o.objectFlags&12582912):o.flags&33554432?(o.objectFlags&2097152||(o.objectFlags|=2097152|aZ(o.baseType)|aZ(o.constraint)),o.objectFlags&12582912):(o.flags&58982400||Xh(o)||rD(o)?4194304:0)|(o.flags&63176704||jEt(o)?8388608:0)}function h2(o,p){return o.flags&8388608?yTr(o,p):o.flags&16777216?vTr(o,p):o}function BEt(o,p,m){if(o.flags&1048576||o.flags&2097152&&!gBe(o)){let v=Cr(o.types,E=>h2(ey(E,p),m));return o.flags&2097152||m?Ac(v):Do(v)}}function gTr(o,p,m){if(p.flags&1048576){let v=Cr(p.types,E=>h2(ey(o,E),m));return m?Ac(v):Do(v)}}function yTr(o,p){let m=p?"simplifiedForWriting":"simplifiedForReading";if(o[m])return o[m]===N_?o:o[m];o[m]=N_;let v=h2(o.objectType,p),E=h2(o.indexType,p),D=gTr(v,E,p);if(D)return o[m]=D;if(!(E.flags&465829888)){let R=BEt(v,E,p);if(R)return o[m]=R}if(rD(v)&&E.flags&296){let R=Qq(v,E.flags&8?0:v.target.fixedLength,0,p);if(R)return o[m]=R}return Xh(v)&&XQ(v)!==2?o[m]=hp(Axe(v,o.indexType),R=>h2(R,p)):o[m]=o}function vTr(o,p){let m=o.checkType,v=o.extendsType,E=eD(o),D=tD(o);if(D.flags&131072&&g2(E)===g2(m)){if(m.flags&1||tc(fN(m),fN(v)))return h2(E,p);if($Et(m,v))return tn}else if(E.flags&131072&&g2(D)===g2(m)){if(!(m.flags&1)&&tc(fN(m),fN(v)))return tn;if(m.flags&1||$Et(m,v))return h2(D,p)}return o}function $Et(o,p){return!!(Do([_se(o,p),tn]).flags&131072)}function Axe(o,p){let m=ty([av(o)],[p]),v=Tw(o.mapper,m),E=Oa(iT(o.target||o),v),D=w2t(o)>0||(xw(o)?Bq(yw(o))>0:STr(o,p));return Om(E,!0,D)}function STr(o,p){let m=Gf(p);return!!m&&Pt($l(o),v=>!!(v.flags&16777216)&&tc(A7(v,8576),m))}function ey(o,p,m=0,v,E,D){return YC(o,p,m,v,E,D)||(v?Et:er)}function UEt(o,p){return bg(o,m=>{if(m.flags&384){let v=x0(m);if($x(v)){let E=+v;return E>=0&&E0&&!Pt(o.elements,p=>Une(p)||zne(p)||mL(p)&&!!(p.questionToken||p.dotDotDotToken))}function JEt(o,p){return xw(o)||p&&Gc(o)&&Pt(i6(o),xw)}function bBe(o,p,m,v,E){let D,R,K=0;for(;;){if(K===1e3)return gt(M,x.Type_instantiation_is_excessively_deep_and_possibly_infinite),Et;let ce=Oa(g2(o.checkType),p),fe=Oa(o.extendsType,p);if(ce===Et||fe===Et)return Et;if(ce===Qt||fe===Qt)return Qt;let Ue=xU(o.node.checkType),Me=xU(o.node.extendsType),yt=qEt(Ue)&&qEt(Me)&&te(Ue.elements)===te(Me.elements),Jt=JEt(ce,yt),Xt;if(o.inferTypeParameters){let on=gZ(o.inferTypeParameters,void 0,0);p&&(on.nonFixingMapper=Tw(on.nonFixingMapper,p)),Jt||lT(on.inferences,ce,fe,1536),Xt=p?Tw(on.mapper,p):on.mapper}let kr=Xt?Oa(o.extendsType,Xt):fe;if(!Jt&&!JEt(kr,yt)){if(!(kr.flags&3)&&(ce.flags&1||!tc(lZ(ce),lZ(kr)))){(ce.flags&1||m&&!(kr.flags&131072)&&j0(lZ(kr),Hn=>tc(Hn,lZ(ce))))&&(R||(R=[])).push(Oa(Sa(o.node.trueType),Xt||p));let on=Sa(o.node.falseType);if(on.flags&16777216){let Hn=on.root;if(Hn.node.parent===o.node&&(!Hn.isDistributive||Hn.checkType===o.checkType)){o=Hn;continue}if(se(on,p))continue}D=Oa(on,p);break}if(kr.flags&3||tc(fN(ce),fN(kr))){let on=Sa(o.node.trueType),Hn=Xt||p;if(se(on,Hn))continue;D=Oa(on,Hn);break}}D=Fo(16777216),D.root=o,D.checkType=Oa(o.checkType,p),D.extendsType=Oa(o.extendsType,p),D.mapper=p,D.combinedMapper=Xt,D.aliasSymbol=v||o.aliasSymbol,D.aliasTypeArguments=v?E:y2(o.aliasTypeArguments,p);break}return R?Do(jt(R,D)):D;function se(ce,fe){if(ce.flags&16777216&&fe){let Ue=ce.root;if(Ue.outerTypeParameters){let Me=Tw(ce.mapper,fe),yt=Cr(Ue.outerTypeParameters,kr=>XE(kr,Me)),Jt=ty(Ue.outerTypeParameters,yt),Xt=Ue.isDistributive?XE(Ue.checkType,Jt):void 0;if(!Xt||Xt===Ue.checkType||!(Xt.flags&1179648))return o=Ue,p=Jt,v=void 0,E=void 0,Ue.aliasSymbol&&K++,!0}}return!1}}function eD(o){return o.resolvedTrueType||(o.resolvedTrueType=Oa(Sa(o.root.node.trueType),o.mapper))}function tD(o){return o.resolvedFalseType||(o.resolvedFalseType=Oa(Sa(o.root.node.falseType),o.mapper))}function bTr(o){return o.resolvedInferredTrueType||(o.resolvedInferredTrueType=o.combinedMapper?Oa(Sa(o.root.node.trueType),o.combinedMapper):eD(o))}function xBe(o){let p;return o.locals&&o.locals.forEach(m=>{m.flags&262144&&(p=jt(p,Tu(m)))}),p}function xTr(o){return o.isDistributive&&(wse(o.checkType,o.node.trueType)||wse(o.checkType,o.node.falseType))}function TTr(o){let p=Ki(o);if(!p.resolvedType){let m=Sa(o.checkType),v=I7(o),E=$M(v),D=Xo(o,!0),R=E?D:yr(D,se=>wse(se,o)),K={node:o,checkType:m,extendsType:Sa(o.extendsType),isDistributive:!!(m.flags&262144),inferTypeParameters:xBe(o),outerTypeParameters:R,instantiations:void 0,aliasSymbol:v,aliasTypeArguments:E};p.resolvedType=bBe(K,void 0,!1),R&&(K.instantiations=new Map,K.instantiations.set(b1(R),p.resolvedType))}return p.resolvedType}function ETr(o){let p=Ki(o);return p.resolvedType||(p.resolvedType=gw($i(o.typeParameter))),p.resolvedType}function VEt(o){return ct(o)?[o]:jt(VEt(o.left),o.right)}function WEt(o){var p;let m=Ki(o);if(!m.resolvedType){if(!jT(o))return gt(o.argument,x.String_literal_expected),m.resolvedSymbol=ye,m.resolvedType=Et;let v=o.isTypeOf?111551:o.flags&16777216?900095:788968,E=Nm(o,o.argument.literal);if(!E)return m.resolvedSymbol=ye,m.resolvedType=Et;let D=!!((p=E.exports)!=null&&p.get("export=")),R=vg(E,!1);if(Op(o.qualifier))if(R.flags&v)m.resolvedType=GEt(o,m,R,v);else{let K=v===111551?x.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:x.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;gt(o,K,o.argument.literal.text),m.resolvedSymbol=ye,m.resolvedType=Et}else{let K=VEt(o.qualifier),se=R,ce;for(;ce=K.shift();){let fe=K.length?1920:v,Ue=cl(O_(se)),Me=o.isTypeOf||Ei(o)&&D?vc(di(Ue),ce.escapedText,!1,!0):void 0,Jt=(o.isTypeOf?void 0:Nf(Zg(Ue),ce.escapedText,fe))??Me;if(!Jt)return gt(ce,x.Namespace_0_has_no_exported_member_1,$E(se),du(ce)),m.resolvedType=Et;Ki(ce).resolvedSymbol=Jt,Ki(ce.parent).resolvedSymbol=Jt,se=Jt}m.resolvedType=GEt(o,m,se,v)}}return m.resolvedType}function GEt(o,p,m,v){let E=O_(m);return p.resolvedSymbol=E,v===111551?qDt(di(m),o):xxe(o,E)}function HEt(o){let p=Ki(o);if(!p.resolvedType){let m=I7(o);if(!o.symbol||Ub(o.symbol).size===0&&!m)p.resolvedType=sc;else{let v=F_(16,o.symbol);v.aliasSymbol=m,v.aliasTypeArguments=$M(m),p3(o)&&o.isArrayType&&(v=um(v)),p.resolvedType=v}}return p.resolvedType}function I7(o){let p=o.parent;for(;i3(p)||AA(p)||bA(p)&&p.operator===148;)p=p.parent;return VG(p)?$i(p):void 0}function $M(o){return o?Dc(o):void 0}function wxe(o){return!!(o.flags&524288)&&!Xh(o)}function TBe(o){return v2(o)||!!(o.flags&474058748)}function EBe(o,p){if(!(o.flags&1048576))return o;if(ht(o.types,TBe))return wt(o.types,v2)||kc;let m=wt(o.types,D=>!TBe(D));if(!m||wt(o.types,D=>D!==m&&!TBe(D)))return o;return E(m);function E(D){let R=ic();for(let se of $l(D))if(!(S0(se)&6)){if(Ixe(se)){let ce=se.flags&65536&&!(se.flags&32768),Ue=zc(16777220,se.escapedName,Lje(se)|(p?8:0));Ue.links.type=ce?Ne:Om(di(se),!0),Ue.declarations=se.declarations,Ue.links.nameType=io(se).nameType,Ue.links.syntheticOrigin=se,R.set(se.escapedName,Ue)}}let K=mp(D.symbol,R,j,j,lm(D));return K.objectFlags|=131200,K}}function o6(o,p,m,v,E){if(o.flags&1||p.flags&1)return at;if(o.flags&2||p.flags&2)return er;if(o.flags&131072)return p;if(p.flags&131072)return o;if(o=EBe(o,E),o.flags&1048576)return Tse([o,p])?hp(o,ce=>o6(ce,p,m,v,E)):Et;if(p=EBe(p,E),p.flags&1048576)return Tse([o,p])?hp(p,ce=>o6(o,ce,m,v,E)):Et;if(p.flags&473960444)return o;if(uN(o)||uN(p)){if(v2(o))return p;if(o.flags&2097152){let ce=o.types,fe=ce[ce.length-1];if(wxe(fe)&&wxe(p))return Ac(go(ce.slice(0,ce.length-1),[o6(fe,p,m,v,E)]))}return Ac([o,p])}let D=ic(),R=new Set,K=o===kc?lm(p):E2t([o,p]);for(let ce of $l(p))S0(ce)&6?R.add(ce.escapedName):Ixe(ce)&&D.set(ce.escapedName,kBe(ce,E));for(let ce of $l(o))if(!(R.has(ce.escapedName)||!Ixe(ce)))if(D.has(ce.escapedName)){let fe=D.get(ce.escapedName),Ue=di(fe);if(fe.flags&16777216){let Me=go(ce.declarations,fe.declarations),yt=4|ce.flags&16777216,Jt=zc(yt,ce.escapedName),Xt=di(ce),kr=Hxe(Xt),on=Hxe(Ue);Jt.links.type=kr===on?Xt:Do([Xt,on],2),Jt.links.leftSpread=ce,Jt.links.rightSpread=fe,Jt.declarations=Me,Jt.links.nameType=io(ce).nameType,D.set(ce.escapedName,Jt)}}else D.set(ce.escapedName,kBe(ce,E));let se=mp(m,D,j,j,Zo(K,ce=>kTr(ce,E)));return se.objectFlags|=2228352|v,se}function Ixe(o){var p;return!Pt(o.declarations,Tm)&&(!(o.flags&106496)||!((p=o.declarations)!=null&&p.some(m=>Co(m.parent))))}function kBe(o,p){let m=o.flags&65536&&!(o.flags&32768);if(!m&&p===Vv(o))return o;let v=4|o.flags&16777216,E=zc(v,o.escapedName,Lje(o)|(p?8:0));return E.links.type=m?Ne:di(o),E.declarations=o.declarations,E.links.nameType=io(o).nameType,E.links.syntheticOrigin=o,E}function kTr(o,p){return o.isReadonly!==p?aT(o.keyType,o.type,p,o.declaration,o.components):o}function kse(o,p,m,v){let E=na(o,m);return E.value=p,E.regularType=v||E,E}function P7(o){if(o.flags&2976){if(!o.freshType){let p=kse(o.flags,o.value,o.symbol,o);p.freshType=p,o.freshType=p}return o.freshType}return o}function ih(o){return o.flags&2976?o.regularType:o.flags&1048576?o.regularType||(o.regularType=hp(o,ih)):o}function a6(o){return!!(o.flags&2976)&&o.freshType===o}function Sg(o){let p;return Ht.get(o)||(Ht.set(o,p=kse(128,o)),p)}function Bv(o){let p;return Wr.get(o)||(Wr.set(o,p=kse(256,o)),p)}function Cse(o){let p,m=fP(o);return ai.get(m)||(ai.set(m,p=kse(2048,o)),p)}function CTr(o,p,m){let v,E=`${p}${typeof o=="string"?"@":"#"}${o}`,D=1024|(typeof o=="string"?128:256);return vo.get(E)||(vo.set(E,v=kse(D,o,m)),v)}function DTr(o){if(o.literal.kind===106)return mr;let p=Ki(o);return p.resolvedType||(p.resolvedType=ih(Va(o.literal))),p.resolvedType}function ATr(o){let p=na(8192,o);return p.escapedName=`__@${p.symbol.escapedName}@${hc(p.symbol)}`,p}function CBe(o){if(Ei(o)&&AA(o)){let p=iP(o);p&&(o=GO(p)||p)}if(v6e(o)){let p=fre(o)?Xy(o.left):Xy(o);if(p){let m=io(p);return m.uniqueESSymbolType||(m.uniqueESSymbolType=ATr(p))}}return wr}function wTr(o){let p=Hm(o,!1,!1),m=p&&p.parent;if(m&&(Co(m)||m.kind===265)&&!oc(p)&&(!kp(p)||oP(o,p.body)))return O0($i(m)).thisType;if(m&&Lc(m)&&wi(m.parent)&&m_(m.parent)===6)return O0(Xy(m.parent.left).parent).thisType;let v=o.flags&16777216?dA(o):void 0;return v&&bu(v)&&wi(v.parent)&&m_(v.parent)===3?O0(Xy(v.parent.left).parent).thisType:XS(p)&&oP(o,p.body)?O0($i(p)).thisType:(gt(o,x.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Et)}function DBe(o){let p=Ki(o);return p.resolvedType||(p.resolvedType=wTr(o)),p.resolvedType}function KEt(o){return Sa(Dse(o.type)||o.type)}function Dse(o){switch(o.kind){case 197:return Dse(o.type);case 190:if(o.elements.length===1&&(o=o.elements[0],o.kind===192||o.kind===203&&o.dotDotDotToken))return Dse(o.type);break;case 189:return o.elementType}}function ITr(o){let p=Ki(o);return p.resolvedType||(p.resolvedType=o.dotDotDotToken?KEt(o):Om(Sa(o.type),!0,!!o.questionToken))}function Sa(o){return axr(QEt(o),o)}function QEt(o){switch(o.kind){case 133:case 313:case 314:return at;case 159:return er;case 154:return Mt;case 150:return Ir;case 163:return ii;case 136:return _r;case 155:return wr;case 116:return pn;case 157:return Ne;case 106:return mr;case 146:return tn;case 151:return o.flags&524288&&!Fe?at:bn;case 141:return Ye;case 198:case 110:return DBe(o);case 202:return DTr(o);case 184:return Exe(o);case 183:return o.assertsModifier?pn:_r;case 234:return Exe(o);case 187:return iEt(o);case 189:case 190:return jxr(o);case 191:return zxr(o);case 193:return Zxr(o);case 194:return oTr(o);case 315:return sxr(o);case 317:return Om(Sa(o.type));case 203:return ITr(o);case 197:case 316:case 310:return Sa(o.type);case 192:return KEt(o);case 319:return HIr(o);case 185:case 186:case 188:case 323:case 318:case 324:return HEt(o);case 199:return uTr(o);case 200:return zEt(o);case 201:return SBe(o);case 195:return TTr(o);case 196:return ETr(o);case 204:return pTr(o);case 206:return WEt(o);case 80:case 167:case 212:let p=B0(o);return p?Tu(p):Et;default:return Et}}function Pxe(o,p,m){if(o&&o.length)for(let v=0;vv.typeParameter),Cr(m,()=>er))}function NTr(o){return o.outerReturnMapper??(o.outerReturnMapper=ekt(o.returnMapper,Okt(o).mapper))}function Tw(o,p){return o?Oxe(4,o,p):p}function ekt(o,p){return o?Oxe(5,o,p):p}function _N(o,p,m){return m?Oxe(5,s6(o,p),m):s6(o,p)}function sZ(o,p,m){return o?Oxe(5,o,s6(p,m)):s6(p,m)}function OTr(o){return!o.constraint&&!Sxe(o)||o.constraint===Gp?o:o.restrictiveInstantiation||(o.restrictiveInstantiation=bh(o.symbol),o.restrictiveInstantiation.constraint=Gp,o.restrictiveInstantiation)}function wBe(o){let p=bh(o.symbol);return p.target=o,p}function tkt(o,p){return tZ(o.kind,o.parameterName,o.parameterIndex,Oa(o.type,p))}function dN(o,p,m){let v;if(o.typeParameters&&!m){v=Cr(o.typeParameters,wBe),p=Tw(ty(o.typeParameters,v),p);for(let D of v)D.mapper=p}let E=GS(o.declaration,v,o.thisParameter&&IBe(o.thisParameter,p),Pxe(o.parameters,p,IBe),void 0,void 0,o.minArgumentCount,o.flags&167);return E.target=o,E.mapper=p,E}function IBe(o,p){let m=io(o);if(m.type&&!iD(m.type)&&(!(o.flags&65536)||m.writeType&&!iD(m.writeType)))return o;Fp(o)&1&&(o=m.target,p=Tw(m.mapper,p));let v=zc(o.flags,o.escapedName,1|Fp(o)&53256);return v.declarations=o.declarations,v.parent=o.parent,v.links.target=o,v.links.mapper=p,o.valueDeclaration&&(v.valueDeclaration=o.valueDeclaration),m.nameType&&(v.links.nameType=m.nameType),v}function FTr(o,p,m,v){let E=o.objectFlags&4||o.objectFlags&8388608?o.node:o.symbol.declarations[0],D=Ki(E),R=o.objectFlags&4?D.resolvedType:o.objectFlags&64?o.target:o,K=D.outerTypeParameters;if(!K){let se=Xo(E,!0);if(XS(E)){let fe=U2t(E);se=En(se,fe)}K=se||j;let ce=o.objectFlags&8388612?[E]:o.symbol.declarations;K=(R.objectFlags&8388612||R.symbol.flags&8192||R.symbol.flags&2048)&&!R.aliasTypeArguments?yr(K,fe=>Pt(ce,Ue=>wse(fe,Ue))):K,D.outerTypeParameters=K}if(K.length){let se=Tw(o.mapper,p),ce=Cr(K,Jt=>XE(Jt,se)),fe=m||o.aliasSymbol,Ue=m?v:y2(o.aliasTypeArguments,p),Me=b1(ce)+sN(fe,Ue);R.instantiations||(R.instantiations=new Map,R.instantiations.set(b1(K)+sN(R.aliasSymbol,R.aliasTypeArguments),R));let yt=R.instantiations.get(Me);if(!yt){let Jt=ty(K,ce);R.objectFlags&134217728&&p&&(Jt=Tw(Jt,p)),yt=R.objectFlags&4?Zje(o.target,o.node,Jt,fe,Ue):R.objectFlags&32?LTr(R,Jt,fe,Ue):PBe(R,Jt,fe,Ue),R.instantiations.set(Me,yt);let Xt=ro(yt);if(yt.flags&3899393&&!(Xt&524288)){let kr=Pt(ce,iD);ro(yt)&524288||(Xt&52?yt.objectFlags|=524288|(kr?1048576:0):yt.objectFlags|=kr?0:524288)}}return yt}return o}function RTr(o){return!(o.parent.kind===184&&o.parent.typeArguments&&o===o.parent.typeName||o.parent.kind===206&&o.parent.typeArguments&&o===o.parent.qualifier)}function wse(o,p){if(o.symbol&&o.symbol.declarations&&o.symbol.declarations.length===1){let v=o.symbol.declarations[0].parent;for(let E=p;E!==v;E=E.parent)if(!E||E.kind===242||E.kind===195&&Is(E.extendsType,m))return!0;return m(p)}return!0;function m(v){switch(v.kind){case 198:return!!o.isThisType;case 80:return!o.isThisType&&vS(v)&&RTr(v)&&QEt(v)===o;case 187:let E=v.exprName,D=_h(E);if(!pC(D)){let R=Fm(D),K=o.symbol.declarations[0],se=K.kind===169?K.parent:o.isThisType?K:void 0;if(R.declarations&&se)return Pt(R.declarations,ce=>oP(ce,se))||Pt(v.typeArguments,m)}return!0;case 175:case 174:return!v.type&&!!v.body||Pt(v.typeParameters,m)||Pt(v.parameters,m)||!!v.type&&m(v.type)}return!!Is(v,m)}}function cZ(o){let p=e0(o);if(p.flags&4194304){let m=g2(p.type);if(m.flags&262144)return m}}function LTr(o,p,m,v){let E=cZ(o);if(E){let R=Oa(E,p);if(E!==R)return iCt(S1(R),D,m,v)}return Oa(e0(o),p)===Qt?Qt:PBe(o,p,m,v);function D(R){if(R.flags&61603843&&R!==Qt&&!si(R)){if(!o.declaration.nameType){let K;if(L0(R)||R.flags&1&&he(E,4)<0&&(K=Th(E))&&bg(K,kw))return jTr(R,o,_N(E,R,p));if(Gc(R))return MTr(R,o,E,p);if(R2t(R))return Ac(Cr(R.types,D))}return PBe(o,_N(E,R,p))}return R}}function rkt(o,p){return p&1?!0:p&2?!1:o}function MTr(o,p,m,v){let E=o.target.elementFlags,D=o.target.fixedLength,R=D?_N(m,o,v):v,K=Cr(i6(o),(Ue,Me)=>{let yt=E[Me];return MeUe&1?2:Ue):se&8?Cr(E,Ue=>Ue&2?1:Ue):E,fe=rkt(o.target.readonly,zb(p));return un(K,Et)?Et:Jb(K,ce,fe,o.target.labeledElementDeclarations)}function jTr(o,p,m){let v=nkt(p,Ir,!0,m);return si(v)?Et:um(v,rkt(Hq(o),zb(p)))}function nkt(o,p,m,v){let E=sZ(v,av(o),p),D=Oa(iT(o.target||o),E),R=zb(o);return be&&R&4&&!s_(D,49152)?nD(D,!0):be&&R&8&&m?M0(D,524288):D}function PBe(o,p,m,v){$.assert(o.symbol,"anonymous type must have symbol to be instantiated");let E=F_(o.objectFlags&-1572865|64,o.symbol);if(o.objectFlags&32){E.declaration=o.declaration;let D=av(o),R=wBe(D);E.typeParameter=R,p=Tw(s6(D,R),p),R.mapper=p}return o.objectFlags&8388608&&(E.node=o.node),E.target=o,E.mapper=p,E.aliasSymbol=m||o.aliasSymbol,E.aliasTypeArguments=m?v:y2(o.aliasTypeArguments,p),E.objectFlags|=E.aliasTypeArguments?yse(E.aliasTypeArguments):0,E}function NBe(o,p,m,v,E){let D=o.root;if(D.outerTypeParameters){let R=Cr(D.outerTypeParameters,ce=>XE(ce,p)),K=(m?"C":"")+b1(R)+sN(v,E),se=D.instantiations.get(K);if(!se){let ce=ty(D.outerTypeParameters,R),fe=D.checkType,Ue=D.isDistributive?S1(XE(fe,ce)):void 0;se=Ue&&fe!==Ue&&Ue.flags&1179648?iCt(Ue,Me=>bBe(D,_N(fe,Me,ce),m),v,E):bBe(D,ce,m,v,E),D.instantiations.set(K,se)}return se}return o}function Oa(o,p){return o&&p?ikt(o,p,void 0,void 0):o}function ikt(o,p,m,v){var E;if(!iD(o))return o;if(O===100||C>=5e6)return(E=hi)==null||E.instant(hi.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:o.id,instantiationDepth:O,instantiationCount:C}),gt(M,x.Type_instantiation_is_excessively_deep_and_possibly_infinite),Et;let D=Ekr(p);D===-1&&xkr(p);let R=o.id+sN(m,v),K=HA[D!==-1?D:Fb-1],se=K.get(R);if(se)return se;T++,C++,O++;let ce=BTr(o,p,m,v);return D===-1?Tkr():K.set(R,ce),O--,ce}function BTr(o,p,m,v){let E=o.flags;if(E&262144)return XE(o,p);if(E&524288){let D=o.objectFlags;if(D&52){if(D&4&&!o.node){let R=o.resolvedTypeArguments,K=y2(R,p);return K!==R?uBe(o.target,K):o}return D&1024?$Tr(o,p):FTr(o,p,m,v)}return o}if(E&3145728){let D=o.flags&1048576?o.origin:void 0,R=D&&D.flags&3145728?D.types:o.types,K=y2(R,p);if(K===R&&m===o.aliasSymbol)return o;let se=m||o.aliasSymbol,ce=m?v:y2(o.aliasTypeArguments,p);return E&2097152||D&&D.flags&2097152?Ac(K,0,se,ce):Do(K,1,se,ce)}if(E&4194304)return KS(Oa(o.type,p));if(E&134217728)return cN(o.texts,y2(o.types,p));if(E&268435456)return w7(o.symbol,Oa(o.type,p));if(E&8388608){let D=m||o.aliasSymbol,R=m?v:y2(o.aliasTypeArguments,p);return ey(Oa(o.objectType,p),Oa(o.indexType,p),o.accessFlags,void 0,D,R)}if(E&16777216)return NBe(o,Tw(o.mapper,p),!1,m,v);if(E&33554432){let D=Oa(o.baseType,p);if(jM(o))return Xje(D);let R=Oa(o.constraint,p);return D.flags&8650752&&xw(R)?eBe(D,R):R.flags&3||tc(fN(D),fN(R))?D:D.flags&8650752?eBe(D,R):Ac([R,D])}return o}function $Tr(o,p){let m=Oa(o.mappedType,p);if(!(ro(m)&32))return o;let v=Oa(o.constraintType,p);if(!(v.flags&4194304))return o;let E=Lkt(Oa(o.source,p),m,v);return E||o}function lZ(o){return o.flags&402915327?o:o.permissiveInstantiation||(o.permissiveInstantiation=Oa(o,Cp))}function fN(o){return o.flags&402915327?o:(o.restrictiveInstantiation||(o.restrictiveInstantiation=Oa(o,Mp),o.restrictiveInstantiation.restrictiveInstantiation=o.restrictiveInstantiation),o.restrictiveInstantiation)}function UTr(o,p){return aT(o.keyType,Oa(o.type,p),o.isReadonly,o.declaration,o.components)}function r0(o){switch($.assert(o.kind!==175||r1(o)),o.kind){case 219:case 220:case 175:case 263:return okt(o);case 211:return Pt(o.properties,r0);case 210:return Pt(o.elements,r0);case 228:return r0(o.whenTrue)||r0(o.whenFalse);case 227:return(o.operatorToken.kind===57||o.operatorToken.kind===61)&&(r0(o.left)||r0(o.right));case 304:return r0(o.initializer);case 218:return r0(o.expression);case 293:return Pt(o.properties,r0)||Tv(o.parent)&&Pt(o.parent.parent.children,r0);case 292:{let{initializer:p}=o;return!!p&&r0(p)}case 295:{let{expression:p}=o;return!!p&&r0(p)}}return!1}function okt(o){return xne(o)||zTr(o)}function zTr(o){return o.typeParameters||jg(o)||!o.body?!1:o.body.kind!==242?r0(o.body):!!sC(o.body,p=>!!p.expression&&r0(p.expression))}function Fxe(o){return(mC(o)||r1(o))&&okt(o)}function akt(o){if(o.flags&524288){let p=jv(o);if(p.constructSignatures.length||p.callSignatures.length){let m=F_(16,o.symbol);return m.members=p.members,m.properties=p.properties,m.callSignatures=j,m.constructSignatures=j,m.indexInfos=j,m}}else if(o.flags&2097152)return Ac(Cr(o.types,akt));return o}function cT(o,p){return QS(o,p,sm)}function uZ(o,p){return QS(o,p,sm)?-1:0}function OBe(o,p){return QS(o,p,am)?-1:0}function qTr(o,p){return QS(o,p,Rb)?-1:0}function c6(o,p){return QS(o,p,Rb)}function Gq(o,p){return QS(o,p,tp)}function tc(o,p){return QS(o,p,am)}function Ew(o,p){return o.flags&1048576?ht(o.types,m=>Ew(m,p)):p.flags&1048576?Pt(p.types,m=>Ew(o,m)):o.flags&2097152?Pt(o.types,m=>Ew(m,p)):o.flags&58982400?Ew(Gf(o)||er,p):Vb(p)?!!(o.flags&67633152):p===br?!!(o.flags&67633152)&&!Vb(o):p===Vn?!!(o.flags&524288)&&d$e(o):eo(o,Fn(p))||L0(p)&&!Hq(p)&&Ew(o,Uc)}function Rxe(o,p){return QS(o,p,Kh)}function Ise(o,p){return Rxe(o,p)||Rxe(p,o)}function pm(o,p,m,v,E,D){return R0(o,p,am,m,v,E,D)}function l6(o,p,m,v,E,D){return FBe(o,p,am,m,v,E,D,void 0)}function FBe(o,p,m,v,E,D,R,K){return QS(o,p,m)?!0:!v||!pZ(E,o,p,m,D,R,K)?R0(o,p,m,v,D,R,K):!1}function skt(o){return!!(o.flags&16777216||o.flags&2097152&&Pt(o.types,skt))}function pZ(o,p,m,v,E,D,R){if(!o||skt(m))return!1;if(!R0(p,m,v,void 0)&&JTr(o,p,m,v,E,D,R))return!0;switch(o.kind){case 235:if(!cge(o))break;case 295:case 218:return pZ(o.expression,p,m,v,E,D,R);case 227:switch(o.operatorToken.kind){case 64:case 28:return pZ(o.right,p,m,v,E,D,R)}break;case 211:return XTr(o,p,m,v,D,R);case 210:return QTr(o,p,m,v,D,R);case 293:return KTr(o,p,m,v,D,R);case 220:return VTr(o,p,m,v,D,R)}return!1}function JTr(o,p,m,v,E,D,R){let K=Gs(p,0),se=Gs(p,1);for(let ce of[se,K])if(Pt(ce,fe=>{let Ue=Tl(fe);return!(Ue.flags&131073)&&R0(Ue,m,v,void 0)})){let fe=R||{};pm(p,m,o,E,D,fe);let Ue=fe.errors[fe.errors.length-1];return ac(Ue,xi(o,ce===se?x.Did_you_mean_to_use_new_with_this_expression:x.Did_you_mean_to_call_this_expression)),!0}return!1}function VTr(o,p,m,v,E,D){if(Vs(o.body)||Pt(o.parameters,Qte))return!1;let R=TN(p);if(!R)return!1;let K=Gs(m,0);if(!te(K))return!1;let se=o.body,ce=Tl(R),fe=Do(Cr(K,Tl));if(!R0(ce,fe,v,void 0)){let Ue=se&&pZ(se,ce,fe,v,void 0,E,D);if(Ue)return Ue;let Me=D||{};if(R0(ce,fe,v,se,void 0,E,Me),Me.errors)return m.symbol&&te(m.symbol.declarations)&&ac(Me.errors[Me.errors.length-1],xi(m.symbol.declarations[0],x.The_expected_type_comes_from_the_return_type_of_this_signature)),(A_(o)&2)===0&&!en(ce,"then")&&R0(pce(ce),fe,v,void 0)&&ac(Me.errors[Me.errors.length-1],xi(o,x.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function ckt(o,p,m){let v=YC(p,m);if(v)return v;if(p.flags&1048576){let E=hkt(o,p);if(E)return YC(E,m)}}function lkt(o,p){Zse(o,p,!1);let m=iJ(o,1);return xZ(),m}function Pse(o,p,m,v,E,D){let R=!1;for(let K of o){let{errorNode:se,innerExpression:ce,nameType:fe,errorMessage:Ue}=K,Me=ckt(p,m,fe);if(!Me||Me.flags&8388608)continue;let yt=YC(p,fe);if(!yt)continue;let Jt=Dxe(fe,void 0);if(!R0(yt,Me,v,void 0)){let Xt=ce&&pZ(ce,yt,Me,v,void 0,E,D);if(R=!0,!Xt){let kr=D||{},on=ce?lkt(ce,yt):yt;if(ze&&Mxe(on,Me)){let Hn=xi(se,x.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,ri(on),ri(Me));il.add(Hn),kr.errors=[Hn]}else{let Hn=!!(Jt&&(vc(m,Jt)||ye).flags&16777216),fi=!!(Jt&&(vc(p,Jt)||ye).flags&16777216);Me=x2(Me,Hn),yt=x2(yt,Hn&&fi),R0(on,Me,v,se,Ue,E,kr)&&on!==yt&&R0(yt,Me,v,se,Ue,E,kr)}if(kr.errors){let Hn=kr.errors[kr.errors.length-1],fi=b0(fe)?x0(fe):void 0,sn=fi!==void 0?vc(m,fi):void 0,rn=!1;if(!sn){let vi=YQ(m,fe);vi&&vi.declaration&&!Pn(vi.declaration).hasNoDefaultLib&&(rn=!0,ac(Hn,xi(vi.declaration,x.The_expected_type_comes_from_this_index_signature)))}if(!rn&&(sn&&te(sn.declarations)||m.symbol&&te(m.symbol.declarations))){let vi=sn&&te(sn.declarations)?sn.declarations[0]:m.symbol.declarations[0];Pn(vi).hasNoDefaultLib||ac(Hn,xi(vi,x.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,fi&&!(fe.flags&8192)?oa(fi):ri(fe),ri(m)))}}}}}return R}function WTr(o,p,m,v,E,D){let R=G_(m,Jxe),K=G_(m,fe=>!Jxe(fe)),se=K!==tn?RUe(13,0,K,void 0):void 0,ce=!1;for(let fe=o.next();!fe.done;fe=o.next()){let{errorNode:Ue,innerExpression:Me,nameType:yt,errorMessage:Jt}=fe.value,Xt=se,kr=R!==tn?ckt(p,R,yt):void 0;if(kr&&!(kr.flags&8388608)&&(Xt=se?Do([se,kr]):kr),!Xt)continue;let on=YC(p,yt);if(!on)continue;let Hn=Dxe(yt,void 0);if(!R0(on,Xt,v,void 0)){let fi=Me&&pZ(Me,on,Xt,v,void 0,E,D);if(ce=!0,!fi){let sn=D||{},rn=Me?lkt(Me,on):on;if(ze&&Mxe(rn,Xt)){let vi=xi(Ue,x.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,ri(rn),ri(Xt));il.add(vi),sn.errors=[vi]}else{let vi=!!(Hn&&(vc(R,Hn)||ye).flags&16777216),wo=!!(Hn&&(vc(p,Hn)||ye).flags&16777216);Xt=x2(Xt,vi),on=x2(on,vi&&wo),R0(rn,Xt,v,Ue,Jt,E,sn)&&rn!==on&&R0(on,Xt,v,Ue,Jt,E,sn)}}}}return ce}function*GTr(o){if(te(o.properties))for(let p of o.properties)TF(p)||L$e(DH(p.name))||(yield{errorNode:p.name,innerExpression:p.initializer,nameType:Sg(DH(p.name))})}function*HTr(o,p){if(!te(o.children))return;let m=0;for(let v=0;v1,kr,on;if(Cxe(!1)!==Ar){let fi=yEt(at);kr=G_(yt,sn=>tc(sn,fi)),on=G_(yt,sn=>!tc(sn,fi))}else kr=G_(yt,Jxe),on=G_(yt,fi=>!Jxe(fi));if(Xt){if(kr!==tn){let fi=Jb(yTe(ce,0)),sn=HTr(ce,se);R=WTr(sn,fi,kr,v,E,D)||R}else if(!QS(ey(p,Me),yt,v)){R=!0;let fi=gt(ce.openingElement.tagName,x.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Ue,ri(yt));D&&D.skipLogging&&(D.errors||(D.errors=[])).push(fi)}}else if(on!==tn){let fi=Jt[0],sn=ukt(fi,Me,se);sn&&(R=Pse((function*(){yield sn})(),p,m,v,E,D)||R)}else if(!QS(ey(p,Me),yt,v)){R=!0;let fi=gt(ce.openingElement.tagName,x.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Ue,ri(yt));D&&D.skipLogging&&(D.errors||(D.errors=[])).push(fi)}}return R;function se(){if(!K){let ce=Sp(o.parent.tagName),fe=Yse(bN(o)),Ue=fe===void 0?"children":oa(fe),Me=ey(m,Sg(Ue)),yt=x._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;K={...yt,key:"!!ALREADY FORMATTED!!",message:nF(yt,ce,Ue,ri(Me))}}return K}}function*pkt(o,p){let m=te(o.elements);if(m)for(let v=0;vse:Jv(o)>se))return v&&!(m&8)&&E(x.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,Jv(o),se),0;o.typeParameters&&o.typeParameters!==p.typeParameters&&(p=exr(p),o=xDt(o,p,void 0,R));let fe=xg(o),Ue=IZ(o),Me=IZ(p);(Ue||Me)&&Oa(Ue||Me,K);let yt=p.declaration?p.declaration.kind:0,Jt=!(m&3)&&ue&&yt!==175&&yt!==174&&yt!==177,Xt=-1,kr=Sw(o);if(kr&&kr!==pn){let fi=Sw(p);if(fi){let sn=!Jt&&R(kr,fi,!1)||R(fi,kr,v);if(!sn)return v&&E(x.The_this_types_of_each_signature_are_incompatible),0;Xt&=sn}}let on=Ue||Me?Math.min(fe,se):Math.max(fe,se),Hn=Ue||Me?on-1:-1;for(let fi=0;fi=Jv(o)&&fi=3&&p[0].flags&32768&&p[1].flags&65536&&Pt(p,Vb)?67108864:0)}return!!(o.objectFlags&67108864)}return!1}function UM(o){return!!((o.flags&1048576?o.types[0]:o).flags&32768)}function n2r(o){let p=o.flags&1048576?o.types[0]:o;return!!(p.flags&32768)&&p!==ot}function dkt(o){return o.flags&524288&&!Xh(o)&&$l(o).length===0&&lm(o).length===1&&!!oT(o,Mt)||o.flags&3145728&&ht(o.types,dkt)||!1}function MBe(o,p,m){let v=o.flags&8?Od(o):o,E=p.flags&8?Od(p):p;if(v===E)return!0;if(v.escapedName!==E.escapedName||!(v.flags&256)||!(E.flags&256))return!1;let D=hc(v)+","+hc(E),R=YA.get(D);if(R!==void 0&&!(R&2&&m))return!!(R&1);let K=di(E);for(let se of $l(di(v)))if(se.flags&8){let ce=vc(K,se.escapedName);if(!ce||!(ce.flags&8))return m&&m(x.Property_0_is_missing_in_type_1,vp(se),ri(Tu(E),void 0,64)),YA.set(D,2),!1;let fe=kN(Qu(se,307)).value,Ue=kN(Qu(ce,307)).value;if(fe!==Ue){let Me=typeof fe=="string",yt=typeof Ue=="string";if(fe!==void 0&&Ue!==void 0){if(m){let Jt=Me?`"${kb(fe)}"`:fe,Xt=yt?`"${kb(Ue)}"`:Ue;m(x.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,vp(E),vp(ce),Xt,Jt)}return YA.set(D,2),!1}if(Me||yt){if(m){let Jt=fe??Ue;$.assert(typeof Jt=="string");let Xt=`"${kb(Jt)}"`;m(x.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,vp(E),vp(ce),Xt)}return YA.set(D,2),!1}}}return YA.set(D,1),!0}function _Z(o,p,m,v){let E=o.flags,D=p.flags;return D&1||E&131072||o===Qt||D&2&&!(m===tp&&E&1)?!0:D&131072?!1:!!(E&402653316&&D&4||E&128&&E&1024&&D&128&&!(D&1024)&&o.value===p.value||E&296&&D&8||E&256&&E&1024&&D&256&&!(D&1024)&&o.value===p.value||E&2112&&D&64||E&528&&D&16||E&12288&&D&4096||E&32&&D&32&&o.symbol.escapedName===p.symbol.escapedName&&MBe(o.symbol,p.symbol,v)||E&1024&&D&1024&&(E&1048576&&D&1048576&&MBe(o.symbol,p.symbol,v)||E&2944&&D&2944&&o.value===p.value&&MBe(o.symbol,p.symbol,v))||E&32768&&(!be&&!(D&3145728)||D&49152)||E&65536&&(!be&&!(D&3145728)||D&65536)||E&524288&&D&67108864&&!(m===tp&&Vb(o)&&!(ro(o)&8192))||(m===am||m===Kh)&&(E&1||E&8&&(D&32||D&256&&D&1024)||E&256&&!(E&1024)&&(D&32||D&256&&D&1024&&o.value===p.value)||r2r(p)))}function QS(o,p,m){if(a6(o)&&(o=o.regularType),a6(p)&&(p=p.regularType),o===p)return!0;if(m!==sm){if(m===Kh&&!(p.flags&131072)&&_Z(p,o,m)||_Z(o,p,m))return!0}else if(!((o.flags|p.flags)&61865984)){if(o.flags!==p.flags)return!1;if(o.flags&67358815)return!0}if(o.flags&524288&&p.flags&524288){let v=m.get($xe(o,p,0,m,!1));if(v!==void 0)return!!(v&1)}return o.flags&469499904||p.flags&469499904?R0(o,p,m,void 0):!1}function fkt(o,p){return ro(o)&2048&&L$e(p.escapedName)}function Nse(o,p){for(;;){let m=a6(o)?o.regularType:rD(o)?a2r(o,p):ro(o)&4?o.node?f2(o.target,Bu(o)):VBe(o)||o:o.flags&3145728?i2r(o,p):o.flags&33554432?p?o.baseType:tBe(o):o.flags&25165824?h2(o,p):o;if(m===o)return m;o=m}}function i2r(o,p){let m=S1(o);if(m!==o)return m;if(o.flags&2097152&&o2r(o)){let v=Zo(o.types,E=>Nse(E,p));if(v!==o.types)return Ac(v)}return o}function o2r(o){let p=!1,m=!1;for(let v of o.types)if(p||(p=!!(v.flags&465829888)),m||(m=!!(v.flags&98304)||Vb(v)),p&&m)return!0;return!1}function a2r(o,p){let m=i6(o),v=Zo(m,E=>E.flags&25165824?h2(E,p):E);return m!==v?pBe(o.target,v):o}function R0(o,p,m,v,E,D,R){var K;let se,ce,fe,Ue,Me,yt,Jt=0,Xt=0,kr=0,on=0,Hn=!1,fi=0,sn=0,rn,vi,wo=16e6-m.size>>3;$.assert(m!==sm||!v,"no error reporting in identity checking");let Fa=mi(o,p,3,!!v,E);if(vi&&El(),Hn){let He=$xe(o,p,0,m,!1);m.set(He,2|(wo<=0?32:64)),(K=hi)==null||K.instant(hi.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:o.id,targetId:p.id,depth:Xt,targetDepth:kr});let lt=wo<=0?x.Excessive_complexity_comparing_types_0_and_1:x.Excessive_stack_depth_comparing_types_0_and_1,Nt=gt(v||M,lt,ri(o),ri(p));R&&(R.errors||(R.errors=[])).push(Nt)}else if(se){if(D){let Nt=D();Nt&&(C4e(Nt,se),se=Nt)}let He;if(E&&v&&!Fa&&o.symbol){let Nt=io(o.symbol);if(Nt.originatingImport&&!Bh(Nt.originatingImport)&&R0(di(Nt.target),p,m,void 0)){let jr=xi(Nt.originatingImport,x.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);He=jt(He,jr)}}let lt=Nx(Pn(v),v,se,He);ce&&ac(lt,...ce),R&&(R.errors||(R.errors=[])).push(lt),(!R||!R.skipLogging)&&il.add(lt)}return v&&R&&R.skipLogging&&Fa===0&&$.assert(!!R.errors,"missed opportunity to interact with error."),Fa!==0;function ho(He){se=He.errorInfo,rn=He.lastSkippedInfo,vi=He.incompatibleStack,fi=He.overrideNextErrorInfo,sn=He.skipParentCounter,ce=He.relatedInfo}function pa(){return{errorInfo:se,lastSkippedInfo:rn,incompatibleStack:vi?.slice(),overrideNextErrorInfo:fi,skipParentCounter:sn,relatedInfo:ce?.slice()}}function Ps(He,...lt){fi++,rn=void 0,(vi||(vi=[])).push([He,...lt])}function El(){let He=vi||[];vi=void 0;let lt=rn;if(rn=void 0,He.length===1){qa(...He[0]),lt&&Rm(void 0,...lt);return}let Nt="",fr=[];for(;He.length;){let[jr,...gr]=He.pop();switch(jr.code){case x.Types_of_property_0_are_incompatible.code:{Nt.indexOf("new ")===0&&(Nt=`(${Nt})`);let Jr=""+gr[0];Nt.length===0?Nt=`${Jr}`:Jd(Jr,$c(Q))?Nt=`${Nt}.${Jr}`:Jr[0]==="["&&Jr[Jr.length-1]==="]"?Nt=`${Nt}${Jr}`:Nt=`${Nt}[${Jr}]`;break}case x.Call_signature_return_types_0_and_1_are_incompatible.code:case x.Construct_signature_return_types_0_and_1_are_incompatible.code:case x.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case x.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Nt.length===0){let Jr=jr;jr.code===x.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?Jr=x.Call_signature_return_types_0_and_1_are_incompatible:jr.code===x.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(Jr=x.Construct_signature_return_types_0_and_1_are_incompatible),fr.unshift([Jr,gr[0],gr[1]])}else{let Jr=jr.code===x.Construct_signature_return_types_0_and_1_are_incompatible.code||jr.code===x.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Gn=jr.code===x.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||jr.code===x.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Nt=`${Jr}${Nt}(${Gn})`}break}case x.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{fr.unshift([x.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,gr[0],gr[1]]);break}case x.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{fr.unshift([x.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,gr[0],gr[1],gr[2]]);break}default:return $.fail(`Unhandled Diagnostic: ${jr.code}`)}}Nt?qa(Nt[Nt.length-1]===")"?x.The_types_returned_by_0_are_incompatible_between_these_types:x.The_types_of_0_are_incompatible_between_these_types,Nt):fr.shift();for(let[jr,...gr]of fr){let Jr=jr.elidedInCompatabilityPyramid;jr.elidedInCompatabilityPyramid=!1,qa(jr,...gr),jr.elidedInCompatabilityPyramid=Jr}lt&&Rm(void 0,...lt)}function qa(He,...lt){$.assert(!!v),vi&&El(),!He.elidedInCompatabilityPyramid&&(sn===0?se=ws(se,He,...lt):sn--)}function rp(He,...lt){qa(He,...lt),sn++}function Zp(He){$.assert(!!se),ce?ce.push(He):ce=[He]}function Rm(He,lt,Nt){vi&&El();let[fr,jr]=Pq(lt,Nt),gr=lt,Jr=fr;if(!(Nt.flags&131072)&&dZ(lt)&&!jBe(Nt)&&(gr=S2(lt),$.assert(!tc(gr,Nt),"generalized source shouldn't be assignable"),Jr=DM(gr)),(Nt.flags&8388608&&!(lt.flags&8388608)?Nt.objectType.flags:Nt.flags)&262144&&Nt!==st&&Nt!==zt){let Si=Gf(Nt),Ui;Si&&(tc(gr,Si)||(Ui=tc(lt,Si)))?qa(x._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Ui?fr:Jr,jr,ri(Si)):(se=void 0,qa(x._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,jr,Jr))}if(He)He===x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&ze&&mkt(lt,Nt).length&&(He=x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(m===Kh)He=x.Type_0_is_not_comparable_to_type_1;else if(fr===jr)He=x.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(ze&&mkt(lt,Nt).length)He=x.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(lt.flags&128&&Nt.flags&1048576){let Si=ECr(lt,Nt);if(Si){qa(x.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,Jr,jr,ri(Si));return}}He=x.Type_0_is_not_assignable_to_type_1}qa(He,Jr,jr)}function Mn(He,lt){let Nt=AM(He.symbol)?ri(He,He.symbol.valueDeclaration):ri(He),fr=AM(lt.symbol)?ri(lt,lt.symbol.valueDeclaration):ri(lt);(nd===He&&Mt===lt||Mu===He&&Ir===lt||Dp===He&&_r===lt||pEt()===He&&wr===lt)&&qa(x._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,fr,Nt)}function ei(He,lt,Nt){return Gc(He)?He.target.readonly&&Lse(lt)?(Nt&&qa(x.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ri(He),ri(lt)),!1):kw(lt):Hq(He)&&Lse(lt)?(Nt&&qa(x.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ri(He),ri(lt)),!1):Gc(lt)?L0(He):!0}function ha(He,lt,Nt){return mi(He,lt,3,Nt)}function mi(He,lt,Nt=3,fr=!1,jr,gr=0){if(He===lt)return-1;if(He.flags&524288&<.flags&402784252)return m===Kh&&!(lt.flags&131072)&&_Z(lt,He,m)||_Z(He,lt,m,fr?qa:void 0)?-1:(fr&&fs(He,lt,He,lt,jr),0);let Jr=Nse(He,!1),Gn=Nse(lt,!0);if(Jr===Gn)return-1;if(m===sm)return Jr.flags!==Gn.flags?0:Jr.flags&67358815?-1:(Rl(Jr,Gn),VZ(Jr,Gn,!1,0,Nt));if(Jr.flags&262144&&iN(Jr)===Gn)return-1;if(Jr.flags&470302716&&Gn.flags&1048576){let Si=Gn.types,Ui=Si.length===2&&Si[0].flags&98304?Si[1]:Si.length===3&&Si[0].flags&98304&&Si[1].flags&98304?Si[2]:void 0;if(Ui&&!(Ui.flags&98304)&&(Gn=Nse(Ui,!0),Jr===Gn))return-1}if(m===Kh&&!(Gn.flags&131072)&&_Z(Gn,Jr,m)||_Z(Jr,Gn,m,fr?qa:void 0))return-1;if(Jr.flags&469499904||Gn.flags&469499904){if(!(gr&2)&&ek(Jr)&&ro(Jr)&8192&&hf(Jr,Gn,fr))return fr&&Rm(jr,Jr,lt.aliasSymbol?lt:Gn),0;let Ui=(m!==Kh||$v(Jr))&&!(gr&2)&&Jr.flags&405405692&&Jr!==br&&Gn.flags&2621440&&$Be(Gn)&&($l(Jr).length>0||t2e(Jr)),Io=!!(ro(Jr)&2048);if(Ui&&!c2r(Jr,Gn,Io)){if(fr){let qo=ri(He.aliasSymbol?He:Jr),ss=ri(lt.aliasSymbol?lt:Gn),rl=Gs(Jr,0),Zr=Gs(Jr,1);rl.length>0&&mi(Tl(rl[0]),Gn,1,!1)||Zr.length>0&&mi(Tl(Zr[0]),Gn,1,!1)?qa(x.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,qo,ss):qa(x.Type_0_has_no_properties_in_common_with_type_1,qo,ss)}return 0}Rl(Jr,Gn);let ti=Jr.flags&1048576&&Jr.types.length<4&&!(Gn.flags&1048576)||Gn.flags&1048576&&Gn.types.length<4&&!(Jr.flags&469499904)?y_(Jr,Gn,fr,gr):VZ(Jr,Gn,fr,gr,Nt);if(ti)return ti}return fr&&fs(He,lt,Jr,Gn,jr),0}function fs(He,lt,Nt,fr,jr){var gr,Jr;let Gn=!!VBe(He),Si=!!VBe(lt);Nt=He.aliasSymbol||Gn?He:Nt,fr=lt.aliasSymbol||Si?lt:fr;let Ui=fi>0;if(Ui&&fi--,Nt.flags&524288&&fr.flags&524288){let Io=se;ei(Nt,fr,!0),se!==Io&&(Ui=!!se)}if(Nt.flags&524288&&fr.flags&402784252)Mn(Nt,fr);else if(Nt.symbol&&Nt.flags&524288&&br===Nt)qa(x.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(ro(Nt)&2048&&fr.flags&2097152){let Io=fr.types,bo=_6(qy.IntrinsicAttributes,v),ti=_6(qy.IntrinsicClassAttributes,v);if(!si(bo)&&!si(ti)&&(un(Io,bo)||un(Io,ti)))return}else se=Jje(se,lt);if(!jr&&Ui){let Io=pa();Rm(jr,Nt,fr);let bo;se&&se!==Io.errorInfo&&(bo={code:se.code,messageText:se.messageText}),ho(Io),bo&&se&&(se.canonicalHead=bo),rn=[Nt,fr];return}if(Rm(jr,Nt,fr),Nt.flags&262144&&((Jr=(gr=Nt.symbol)==null?void 0:gr.declarations)!=null&&Jr[0])&&!iN(Nt)){let Io=wBe(Nt);if(Io.constraint=Oa(fr,s6(Nt,Io)),mse(Io)){let bo=ri(fr,Nt.symbol.declarations[0]);Zp(xi(Nt.symbol.declarations[0],x.This_type_parameter_might_need_an_extends_0_constraint,bo))}}}function Rl(He,lt){if(hi&&He.flags&3145728&<.flags&3145728){let Nt=He,fr=lt;if(Nt.objectFlags&fr.objectFlags&32768)return;let jr=Nt.types.length,gr=fr.types.length;jr*gr>1e6&&hi.instant(hi.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:He.id,sourceSize:jr,targetId:lt.id,targetSize:gr,pos:v?.pos,end:v?.end})}}function $u(He,lt){return Do(nl(He,(fr,jr)=>{var gr;jr=nh(jr);let Jr=jr.flags&3145728?hse(jr,lt):t6(jr,lt),Gn=Jr&&di(Jr)||((gr=D7(jr,lt))==null?void 0:gr.type)||Ne;return jt(fr,Gn)},void 0)||j)}function hf(He,lt,Nt){var fr;if(!kZ(lt)||!Fe&&ro(lt)&4096)return!1;let jr=!!(ro(He)&2048);if((m===am||m===Kh)&&(Xq(br,lt)||!jr&&v2(lt)))return!1;let gr=lt,Jr;lt.flags&1048576&&(gr=Vwt(He,lt,mi)||F6r(lt),Jr=gr.flags&1048576?gr.types:[gr]);for(let Gn of $l(He))if(Hc(Gn,He.symbol)&&!fkt(He,Gn)){if(!bTe(gr,Gn.escapedName,jr)){if(Nt){let Si=G_(gr,kZ);if(!v)return $.fail();if(xP(v)||Em(v)||Em(v.parent)){Gn.valueDeclaration&&NS(Gn.valueDeclaration)&&Pn(v)===Pn(Gn.valueDeclaration.name)&&(v=Gn.valueDeclaration.name);let Ui=Ua(Gn),Io=_Dt(Ui,Si),bo=Io?Ua(Io):void 0;bo?qa(x.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Ui,ri(Si),bo):qa(x.Property_0_does_not_exist_on_type_1,Ui,ri(Si))}else{let Ui=((fr=He.symbol)==null?void 0:fr.declarations)&&pi(He.symbol.declarations),Io;if(Gn.valueDeclaration&&fn(Gn.valueDeclaration,bo=>bo===Ui)&&Pn(Ui)===Pn(v)){let bo=Gn.valueDeclaration;$.assertNode(bo,MT);let ti=bo.name;v=ti,ct(ti)&&(Io=dDt(ti,Si))}Io!==void 0?rp(x.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Ua(Gn),ri(Si),Io):rp(x.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ua(Gn),ri(Si))}}return!0}if(Jr&&!mi(di(Gn),$u(Jr,Gn.escapedName),3,Nt))return Nt&&Ps(x.Types_of_property_0_are_incompatible,Ua(Gn)),!0}return!1}function Hc(He,lt){return He.valueDeclaration&<.valueDeclaration&&He.valueDeclaration.parent===lt.valueDeclaration}function y_(He,lt,Nt,fr){if(He.flags&1048576){if(lt.flags&1048576){let jr=He.origin;if(jr&&jr.flags&2097152&<.aliasSymbol&&un(jr.types,lt))return-1;let gr=lt.origin;if(gr&&gr.flags&1048576&&He.aliasSymbol&&un(gr.types,He))return-1}return m===Kh?gp(He,lt,Nt&&!(He.flags&402784252),fr):$0(He,lt,Nt&&!(He.flags&402784252),fr)}if(lt.flags&1048576)return Ul(hZ(He),lt,Nt&&!(He.flags&402784252)&&!(lt.flags&402784252),fr);if(lt.flags&2097152)return n0(He,lt,Nt,2);if(m===Kh&<.flags&402784252){let jr=Zo(He.types,gr=>gr.flags&465829888?Gf(gr)||er:gr);if(jr!==He.types){if(He=Ac(jr),He.flags&131072)return 0;if(!(He.flags&2097152))return mi(He,lt,1,!1)||mi(lt,He,1,!1)}}return gp(He,lt,!1,1)}function R_(He,lt){let Nt=-1,fr=He.types;for(let jr of fr){let gr=Ul(jr,lt,!1,0);if(!gr)return 0;Nt&=gr}return Nt}function Ul(He,lt,Nt,fr){let jr=lt.types;if(lt.flags&1048576){if(sT(jr,He))return-1;if(m!==Kh&&ro(lt)&32768&&!(He.flags&1024)&&(He.flags&2688||(m===Rb||m===tp)&&He.flags&256)){let Jr=He===He.regularType?He.freshType:He.regularType,Gn=He.flags&128?Mt:He.flags&256?Ir:He.flags&2048?ii:void 0;return Gn&&sT(jr,Gn)||Jr&&sT(jr,Jr)?-1:0}let gr=Wkt(lt,He);if(gr){let Jr=mi(He,gr,2,!1,void 0,fr);if(Jr)return Jr}}for(let gr of jr){let Jr=mi(He,gr,2,!1,void 0,fr);if(Jr)return Jr}if(Nt){let gr=hkt(He,lt,mi);gr&&mi(He,gr,2,!0,void 0,fr)}return 0}function n0(He,lt,Nt,fr){let jr=-1,gr=lt.types;for(let Jr of gr){let Gn=mi(He,Jr,2,Nt,void 0,fr);if(!Gn)return 0;jr&=Gn}return jr}function gp(He,lt,Nt,fr){let jr=He.types;if(He.flags&1048576&&sT(jr,lt))return-1;let gr=jr.length;for(let Jr=0;Jr=Jr.types.length&&gr.length%Jr.types.length===0){let Io=mi(Si,Jr.types[Gn%Jr.types.length],3,!1,void 0,fr);if(Io){jr&=Io;continue}}let Ui=mi(Si,lt,1,Nt,void 0,fr);if(!Ui)return 0;jr&=Ui}return jr}function uJ(He=j,lt=j,Nt=j,fr,jr){if(He.length!==lt.length&&m===sm)return 0;let gr=He.length<=lt.length?He.length:lt.length,Jr=-1;for(let Gn=0;Gn(qo|=Zr?16:8,ti(Zr)));let ss;return on===3?((gr=hi)==null||gr.instant(hi.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:He.id,sourceIdStack:Me.map(Zr=>Zr.id),targetId:lt.id,targetIdStack:yt.map(Zr=>Zr.id),depth:Xt,targetDepth:kr}),ss=3):((Jr=hi)==null||Jr.push(hi.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:He.id,targetId:lt.id}),ss=pJ(He,lt,Nt,fr),(Gn=hi)==null||Gn.pop()),bs&&(bs=ti),jr&1&&Xt--,jr&2&&kr--,on=bo,ss?(ss===-1||Xt===0&&kr===0)&&rl(ss===-1||ss===3):(m.set(Si,2|qo),wo--,rl(!1)),ss;function rl(Zr){for(let Gi=Io;GiGn!==He)&&(gr=mi(Jr,lt,1,!1,void 0,fr))}gr&&!(fr&2)&<.flags&2097152&&!uN(lt)&&He.flags&2621440?(gr&=wc(He,lt,Nt,void 0,!1,0),gr&&ek(He)&&ro(He)&8192&&(gr&=Xe(He,lt,!1,Nt,0))):gr&&wxe(lt)&&!kw(lt)&&He.flags&2097152&&nh(He).flags&3670016&&!Pt(He.types,Jr=>Jr===lt||!!(ro(Jr)&262144))&&(gr&=wc(He,lt,Nt,void 0,!0,fr))}return gr&&ho(jr),gr}function by(He,lt){let Nt=nh(yw(lt)),fr=[];return Mje(Nt,8576,!1,jr=>{fr.push(Oa(He,sZ(lt.mapper,av(lt),jr)))}),Do(fr)}function WZ(He,lt,Nt,fr,jr){let gr,Jr,Gn=!1,Si=He.flags,Ui=lt.flags;if(m===sm){if(Si&3145728){let ti=R_(He,lt);return ti&&(ti&=R_(lt,He)),ti}if(Si&4194304)return mi(He.type,lt.type,3,!1);if(Si&8388608&&(gr=mi(He.objectType,lt.objectType,3,!1))&&(gr&=mi(He.indexType,lt.indexType,3,!1))||Si&16777216&&He.root.isDistributive===lt.root.isDistributive&&(gr=mi(He.checkType,lt.checkType,3,!1))&&(gr&=mi(He.extendsType,lt.extendsType,3,!1))&&(gr&=mi(eD(He),eD(lt),3,!1))&&(gr&=mi(tD(He),tD(lt),3,!1))||Si&33554432&&(gr=mi(He.baseType,lt.baseType,3,!1))&&(gr&=mi(He.constraint,lt.constraint,3,!1)))return gr;if(Si&134217728&&__(He.texts,lt.texts)){let ti=He.types,qo=lt.types;gr=-1;for(let ss=0;ss!!(qo.flags&262144));){if(gr=mi(ti,lt,1,!1))return gr;ti=Th(ti)}return 0}}else if(Ui&4194304){let ti=lt.type;if(Si&4194304&&(gr=mi(ti,He.type,3,!1)))return gr;if(Gc(ti)){if(gr=mi(He,xEt(ti),2,Nt))return gr}else{let qo=jje(ti);if(qo){if(mi(He,KS(qo,lt.indexFlags|4),2,Nt)===-1)return-1}else if(Xh(ti)){let ss=HE(ti),rl=e0(ti),Zr;if(ss&&FM(ti)){let Gi=by(ss,ti);Zr=Do([Gi,ss])}else Zr=ss||rl;if(mi(He,Zr,2,Nt)===-1)return-1}}}else if(Ui&8388608){if(Si&8388608){if((gr=mi(He.objectType,lt.objectType,3,Nt))&&(gr&=mi(He.indexType,lt.indexType,3,Nt)),gr)return gr;Nt&&(Jr=se)}if(m===am||m===Kh){let ti=lt.objectType,qo=lt.indexType,ss=Gf(ti)||ti,rl=Gf(qo)||qo;if(!uN(ss)&&!pN(rl)){let Zr=4|(ss!==ti?2:0),Gi=YC(ss,rl,Zr);if(Gi){if(Nt&&Jr&&ho(jr),gr=mi(He,Gi,2,Nt,void 0,fr))return gr;Nt&&Jr&&se&&(se=Io([Jr])<=Io([se])?Jr:se)}}}Nt&&(Jr=void 0)}else if(Xh(lt)&&m!==sm){let ti=!!lt.declaration.nameType,qo=iT(lt),ss=zb(lt);if(!(ss&8)){if(!ti&&qo.flags&8388608&&qo.objectType===He&&qo.indexType===av(lt))return-1;if(!Xh(He)){let rl=ti?HE(lt):e0(lt),Zr=KS(He,2),Gi=ss&4,ys=Gi?_se(rl,Zr):void 0;if(Gi?!(ys.flags&131072):mi(rl,Zr,3)){let Qa=iT(lt),Kc=av(lt),kl=Yq(Qa,-98305);if(!ti&&kl.flags&8388608&&kl.indexType===Kc){if(gr=mi(He,kl.objectType,2,Nt))return gr}else{let ls=ti?ys||rl:ys?Ac([ys,Kc]):Kc,id=ey(He,ls);if(gr=mi(id,Qa,3,Nt))return gr}}Jr=se,ho(jr)}}}else if(Ui&16777216){if(O7(lt,yt,kr,10))return 3;let ti=lt;if(!ti.root.inferTypeParameters&&!xTr(ti.root)&&!(He.flags&16777216&&He.root===ti.root)){let qo=!tc(lZ(ti.checkType),lZ(ti.extendsType)),ss=!qo&&tc(fN(ti.checkType),fN(ti.extendsType));if((gr=qo?-1:mi(He,eD(ti),2,!1,void 0,fr))&&(gr&=ss?-1:mi(He,tD(ti),2,!1,void 0,fr),gr))return gr}}else if(Ui&134217728){if(Si&134217728){if(m===Kh)return Q2r(He,lt)?0:-1;Oa(He,V_)}if(tTe(He,lt))return-1}else if(lt.flags&268435456&&!(He.flags&268435456)&&eTe(He,lt))return-1;if(Si&8650752){if(!(Si&8388608&&Ui&8388608)){let ti=iN(He)||er;if(gr=mi(ti,lt,1,!1,void 0,fr))return gr;if(gr=mi(Yg(ti,He),lt,1,Nt&&ti!==er&&!(Ui&Si&262144),void 0,fr))return gr;if(zje(He)){let qo=iN(He.indexType);if(qo&&(gr=mi(ey(He.objectType,qo),lt,1,Nt)))return gr}}}else if(Si&4194304){let ti=gBe(He.type,He.indexFlags)&&ro(He.type)&32;if(gr=mi(Uo,lt,1,Nt&&!ti))return gr;if(ti){let qo=He.type,ss=HE(qo),rl=ss&&FM(qo)?by(ss,qo):ss||e0(qo);if(gr=mi(rl,lt,1,Nt))return gr}}else if(Si&134217728&&!(Ui&524288)){if(!(Ui&134217728)){let ti=Gf(He);if(ti&&ti!==He&&(gr=mi(ti,lt,1,Nt)))return gr}}else if(Si&268435456)if(Ui&268435456){if(He.symbol!==lt.symbol)return 0;if(gr=mi(He.type,lt.type,3,Nt))return gr}else{let ti=Gf(He);if(ti&&(gr=mi(ti,lt,1,Nt)))return gr}else if(Si&16777216){if(O7(He,Me,Xt,10))return 3;if(Ui&16777216){let ss=He.root.inferTypeParameters,rl=He.extendsType,Zr;if(ss){let Gi=gZ(ss,void 0,0,ha);lT(Gi.inferences,lt.extendsType,rl,1536),rl=Oa(rl,Gi.mapper),Zr=Gi.mapper}if(cT(rl,lt.extendsType)&&(mi(He.checkType,lt.checkType,3)||mi(lt.checkType,He.checkType,3))&&((gr=mi(Oa(eD(He),Zr),eD(lt),3,Nt))&&(gr&=mi(tD(He),tD(lt),3,Nt)),gr))return gr}let ti=Bje(He);if(ti&&(gr=mi(ti,lt,1,Nt)))return gr;let qo=!(Ui&16777216)&&mse(He)?I2t(He):void 0;if(qo&&(ho(jr),gr=mi(qo,lt,1,Nt)))return gr}else{if(m!==Rb&&m!==tp&&Ibr(lt)&&v2(He))return-1;if(Xh(lt))return Xh(He)&&(gr=vr(He,lt,Nt))?gr:0;let ti=!!(Si&402784252);if(m!==sm)He=nh(He),Si=He.flags;else if(Xh(He))return 0;if(ro(He)&4&&ro(lt)&4&&He.target===lt.target&&!Gc(He)&&!(jxe(He)||jxe(lt))){if(qxe(He))return-1;let qo=UBe(He.target);if(qo===j)return 1;let ss=bo(Bu(He),Bu(lt),qo,fr);if(ss!==void 0)return ss}else{if(Hq(lt)?bg(He,kw):L0(lt)&&bg(He,qo=>Gc(qo)&&!qo.target.readonly))return m!==sm?mi(vw(He,Ir)||at,vw(lt,Ir)||at,3,Nt):0;if(rD(He)&&Gc(lt)&&!rD(lt)){let qo=HS(He);if(qo!==He)return mi(qo,lt,1,Nt)}else if((m===Rb||m===tp)&&v2(lt)&&ro(lt)&8192&&!v2(He))return 0}if(Si&2621440&&Ui&524288){let qo=Nt&&se===jr.errorInfo&&!ti;if(gr=wc(He,lt,qo,void 0,!1,fr),gr&&(gr&=yu(He,lt,0,qo,fr),gr&&(gr&=yu(He,lt,1,qo,fr),gr&&(gr&=Xe(He,lt,ti,qo,fr)))),Gn&&gr)se=Jr||se||jr.errorInfo;else if(gr)return gr}if(Si&2621440&&Ui&1048576){let qo=Yq(lt,36175872);if(qo.flags&1048576){let ss=hn(He,qo);if(ss)return ss}}}return 0;function Io(ti){return ti?nl(ti,(qo,ss)=>qo+1+Io(ss.next),0):0}function bo(ti,qo,ss,rl){if(gr=uJ(ti,qo,ss,Nt,rl))return gr;if(Pt(ss,Gi=>!!(Gi&24))){Jr=void 0,ho(jr);return}let Zr=qo&&l2r(qo,ss);if(Gn=!Zr,ss!==j&&!Zr){if(Gn&&!(Nt&&Pt(ss,Gi=>(Gi&7)===0)))return 0;Jr=se,ho(jr)}}}function vr(He,lt,Nt){if(m===Kh||(m===sm?zb(He)===zb(lt):Bq(He)<=Bq(lt))){let jr,gr=e0(lt),Jr=Oa(e0(He),Bq(He)<0?Nu:V_);if(jr=mi(gr,Jr,3,Nt)){let Gn=ty([av(He)],[av(lt)]);if(Oa(HE(He),Gn)===Oa(HE(lt),Gn))return jr&mi(Oa(iT(He),Gn),iT(lt),3,Nt)}}return 0}function hn(He,lt){var Nt;let fr=$l(He),jr=Vkt(fr,lt);if(!jr)return 0;let gr=1;for(let bo of jr)if(gr*=EEr(Lv(bo)),gr>25)return(Nt=hi)==null||Nt.instant(hi.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:He.id,targetId:lt.id,numCombinations:gr}),0;let Jr=new Array(jr.length),Gn=new Set;for(let bo=0;bobo[ss],!1,0,be||m===Kh))continue e}Zc(Ui,qo,Ng),ti=!0}if(!ti)return 0}let Io=-1;for(let bo of Ui)if(Io&=wc(He,bo,!1,Gn,!1,0),Io&&(Io&=yu(He,bo,0,!1,0),Io&&(Io&=yu(He,bo,1,!1,0),Io&&!(Gc(He)&&Gc(bo))&&(Io&=Xe(He,bo,!1,!1,0)))),!Io)return Io;return Io}function Un(He,lt){if(!lt||He.length===0)return He;let Nt;for(let fr=0;fr5?qa(x.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,ri(He),ri(lt),Cr(gr.slice(0,4),Jr=>Ua(Jr)).join(", "),gr.length-4):qa(x.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,ri(He),ri(lt),Cr(gr,Jr=>Ua(Jr)).join(", ")),jr&&se&&fi++)}function wc(He,lt,Nt,fr,jr,gr){if(m===sm)return Nc(He,lt,fr);let Jr=-1;if(Gc(lt)){if(kw(He)){if(!lt.target.readonly&&(Hq(He)||Gc(He)&&He.target.readonly))return 0;let bo=ZE(He),ti=ZE(lt),qo=Gc(He)?He.target.combinedFlags&4:4,ss=!!(lt.target.combinedFlags&12),rl=Gc(He)?He.target.minLength:0,Zr=lt.target.minLength;if(!qo&&bo=Qa?ti-1-Math.min(od,Kc):ls,Mm=lt.target.elementFlags[Qf];if(Mm&8&&!(id&8))return Nt&&qa(x.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Qf),0;if(id&8&&!(Mm&12))return Nt&&qa(x.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,ls,Qf),0;if(Mm&1&&!(id&1))return Nt&&qa(x.Source_provides_no_match_for_required_element_at_position_0_in_target,Qf),0;if(kl&&((id&12||Mm&12)&&(kl=!1),kl&&fr?.has(""+ls)))continue;let kh=x2(Gi[ls],!!(id&Mm&2)),C2=ys[Qf],Ow=id&8&&Mm&4?um(C2):x2(C2,!!(Mm&2)),m6=mi(kh,Ow,3,Nt,void 0,gr);if(!m6)return Nt&&(ti>1||bo>1)&&(ss&&ls>=Qa&&od>=Kc&&Qa!==bo-Kc-1?Ps(x.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Qa,bo-Kc-1,Qf):Ps(x.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,ls,Qf)),0;Jr&=m6}return Jr}if(lt.target.combinedFlags&12)return 0}let Gn=(m===Rb||m===tp)&&!ek(He)&&!qxe(He)&&!Gc(He),Si=i$e(He,lt,Gn,!1);if(Si)return Nt&&Rd(He,lt)&&No(He,lt,Si,Gn),0;if(ek(lt)){for(let bo of Un($l(He),fr))if(!t6(lt,bo.escapedName)&&!(di(bo).flags&32768))return Nt&&qa(x.Property_0_does_not_exist_on_type_1,Ua(bo),ri(lt)),0}let Ui=$l(lt),Io=Gc(He)&&Gc(lt);for(let bo of Un(Ui,fr)){let ti=bo.escapedName;if(!(bo.flags&4194304)&&(!Io||$x(ti)||ti==="length")&&(!jr||bo.flags&16777216)){let qo=vc(He,ti);if(qo&&qo!==bo){let ss=Vi(He,lt,qo,bo,Lv,Nt,gr,m===Kh);if(!ss)return 0;Jr&=ss}}}return Jr}function Nc(He,lt,Nt){if(!(He.flags&524288&<.flags&524288))return 0;let fr=Un(KE(He),Nt),jr=Un(KE(lt),Nt);if(fr.length!==jr.length)return 0;let gr=-1;for(let Jr of fr){let Gn=t6(lt,Jr.escapedName);if(!Gn)return 0;let Si=qBe(Jr,Gn,mi);if(!Si)return 0;gr&=Si}return gr}function yu(He,lt,Nt,fr,jr){var gr,Jr;if(m===sm)return Nw(He,lt,Nt);if(lt===Ql||He===Ql)return-1;let Gn=He.symbol&&XS(He.symbol.valueDeclaration),Si=lt.symbol&&XS(lt.symbol.valueDeclaration),Ui=Gs(He,Gn&&Nt===1?0:Nt),Io=Gs(lt,Si&&Nt===1?0:Nt);if(Nt===1&&Ui.length&&Io.length){let rl=!!(Ui[0].flags&4),Zr=!!(Io[0].flags&4);if(rl&&!Zr)return fr&&qa(x.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Vr(Ui[0],Io[0],fr))return 0}let bo=-1,ti=Nt===1?Yh:Lm,qo=ro(He),ss=ro(lt);if(qo&64&&ss&64&&He.symbol===lt.symbol||qo&4&&ss&4&&He.target===lt.target){$.assertEqual(Ui.length,Io.length);for(let rl=0;rlHC(Qa,void 0,262144,Nt);return qa(x.Type_0_is_not_assignable_to_type_1,ys(Zr),ys(Gi)),qa(x.Types_of_construct_signatures_are_incompatible),bo}}else e:for(let rl of Io){let Zr=pa(),Gi=fr;for(let ys of Ui){let Qa=Pw(ys,rl,!0,Gi,jr,ti(ys,rl));if(Qa){bo&=Qa,ho(Zr);continue e}Gi=!1}return Gi&&qa(x.Type_0_provides_no_match_for_the_signature_1,ri(He),HC(rl,void 0,void 0,Nt)),0}return bo}function Rd(He,lt){let Nt=gse(He,0),fr=gse(He,1),jr=KE(He);return(Nt.length||fr.length)&&!jr.length?!!(Gs(lt,0).length&&Nt.length||Gs(lt,1).length&&fr.length):!0}function Lm(He,lt){return He.parameters.length===0&<.parameters.length===0?(Nt,fr)=>Ps(x.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ri(Nt),ri(fr)):(Nt,fr)=>Ps(x.Call_signature_return_types_0_and_1_are_incompatible,ri(Nt),ri(fr))}function Yh(He,lt){return He.parameters.length===0&<.parameters.length===0?(Nt,fr)=>Ps(x.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ri(Nt),ri(fr)):(Nt,fr)=>Ps(x.Construct_signature_return_types_0_and_1_are_incompatible,ri(Nt),ri(fr))}function Pw(He,lt,Nt,fr,jr,gr){let Jr=m===Rb?16:m===tp?24:0;return RBe(Nt?nZ(He):He,Nt?nZ(lt):lt,Jr,fr,qa,gr,Gn,V_);function Gn(Si,Ui,Io){return mi(Si,Ui,3,Io,void 0,jr)}}function Nw(He,lt,Nt){let fr=Gs(He,Nt),jr=Gs(lt,Nt);if(fr.length!==jr.length)return 0;let gr=-1;for(let Jr=0;JrSi.keyType===Mt),Gn=-1;for(let Si of gr){let Ui=m!==tp&&!Nt&&Jr&&Si.type.flags&1?-1:Xh(He)&&Jr?mi(iT(He),Si.type,3,fr):Te(He,Si,fr,jr);if(!Ui)return 0;Gn&=Ui}return Gn}function Te(He,lt,Nt,fr){let jr=YQ(He,lt.keyType);return jr?l2e(jr,lt,Nt,fr):!(fr&1)&&(m!==tp||ro(He)&8192)&&Kxe(He)?Ice(He,lt,Nt,fr):(Nt&&qa(x.Index_signature_for_type_0_is_missing_in_type_1,ri(lt.keyType),ri(He)),0)}function Lr(He,lt){let Nt=lm(He),fr=lm(lt);if(Nt.length!==fr.length)return 0;for(let jr of fr){let gr=oT(He,jr.keyType);if(!(gr&&mi(gr.type,jr.type,3)&&gr.isReadonly===jr.isReadonly))return 0}return-1}function Vr(He,lt,Nt){if(!He.declaration||!lt.declaration)return!0;let fr=QO(He.declaration,6),jr=QO(lt.declaration,6);return jr===2||jr===4&&fr!==2||jr!==4&&!fr?!0:(Nt&&qa(x.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,mw(fr),mw(jr)),!1)}}function jBe(o){if(o.flags&16)return!1;if(o.flags&3145728)return!!X(o.types,jBe);if(o.flags&465829888){let p=iN(o);if(p&&p!==o)return jBe(p)}return $v(o)||!!(o.flags&134217728)||!!(o.flags&268435456)}function mkt(o,p){return Gc(o)&&Gc(p)?j:$l(p).filter(m=>Mxe(en(o,m.escapedName),di(m)))}function Mxe(o,p){return!!o&&!!p&&s_(o,32768)&&!!mZ(p)}function s2r(o){return $l(o).filter(p=>mZ(di(p)))}function hkt(o,p,m=OBe){return Vwt(o,p,m)||I6r(o,p)||P6r(o,p)||N6r(o,p)||O6r(o,p)}function BBe(o,p,m){let v=o.types,E=v.map(R=>R.flags&402784252?0:-1);for(let[R,K]of p){let se=!1;for(let ce=0;ce!!m(Ue,fe))?se=!0:E[ce]=3)}for(let ce=0;ceE[K]),0):o;return D.flags&131072?o:D}function $Be(o){if(o.flags&524288){let p=jv(o);return p.callSignatures.length===0&&p.constructSignatures.length===0&&p.indexInfos.length===0&&p.properties.length>0&&ht(p.properties,m=>!!(m.flags&16777216))}return o.flags&33554432?$Be(o.baseType):o.flags&2097152?ht(o.types,$Be):!1}function c2r(o,p,m){for(let v of $l(o))if(bTe(p,v.escapedName,m))return!0;return!1}function UBe(o){return o===tl||o===Uc||o.objectFlags&8?Z:ykt(o.symbol,o.typeParameters)}function gkt(o){return ykt(o,io(o).typeParameters)}function ykt(o,p=j){var m,v;let E=io(o);if(!E.variances){(m=hi)==null||m.push(hi.Phase.CheckTypes,"getVariancesWorker",{arity:p.length,id:ff(Tu(o))});let D=N3,R=NE;N3||(N3=!0,NE=Hx.length),E.variances=j;let K=[];for(let se of p){let ce=zBe(se),fe=ce&16384?ce&8192?0:1:ce&8192?2:void 0;if(fe===void 0){let Ue=!1,Me=!1,yt=bs;bs=kr=>kr?Me=!0:Ue=!0;let Jt=Ose(o,se,Yu),Xt=Ose(o,se,Hp);fe=(tc(Xt,Jt)?1:0)|(tc(Jt,Xt)?2:0),fe===3&&tc(Ose(o,se,H),Jt)&&(fe=4),bs=yt,(Ue||Me)&&(Ue&&(fe|=8),Me&&(fe|=16))}K.push(fe)}D||(N3=!1,NE=R),E.variances=K,(v=hi)==null||v.pop({variances:K.map($.formatVariance)})}return E.variances}function Ose(o,p,m){let v=s6(p,m),E=Tu(o);if(si(E))return E;let D=o.flags&524288?MM(o,y2(io(o).typeParameters,v)):f2(E,y2(E.typeParameters,v));return Bt.add(ff(D)),D}function jxe(o){return Bt.has(ff(o))}function zBe(o){var p;return nl((p=o.symbol)==null?void 0:p.declarations,(m,v)=>m|tm(v),0)&28672}function l2r(o,p){for(let m=0;m!!(p.flags&262144)||Bxe(p))}function _2r(o,p,m,v){let E=[],D="",R=se(o,0),K=se(p,0);return`${D}${R},${K}${m}`;function se(ce,fe=0){let Ue=""+ce.target.id;for(let Me of Bu(ce)){if(Me.flags&262144){if(v||u2r(Me)){let yt=E.indexOf(Me);yt<0&&(yt=E.length,E.push(Me)),Ue+="="+yt;continue}D="*"}else if(fe<4&&Bxe(Me)){Ue+="<"+se(Me,fe+1)+">";continue}Ue+="-"+Me.id}return Ue}}function $xe(o,p,m,v,E){if(v===sm&&o.id>p.id){let R=o;o=p,p=R}let D=m?":"+m:"";return Bxe(o)&&Bxe(p)?_2r(o,p,D,E):`${o.id},${p.id}${D}`}function Fse(o,p){if(Fp(o)&6){for(let m of o.links.containingType.types){let v=vc(m,o.escapedName),E=v&&Fse(v,p);if(E)return E}return}return p(o)}function N7(o){return o.parent&&o.parent.flags&32?Tu(Od(o)):void 0}function Uxe(o){let p=N7(o),m=p&&ov(p)[0];return m&&en(m,o.escapedName)}function d2r(o,p){return Fse(o,m=>{let v=N7(m);return v?eo(v,p):!1})}function f2r(o,p){return!Fse(p,m=>S0(m)&4?!d2r(o,N7(m)):!1)}function vkt(o,p,m){return Fse(p,v=>S0(v,m)&4?!eo(o,N7(v)):!1)?void 0:o}function O7(o,p,m,v=3){if(m>=v){if((ro(o)&96)===96&&(o=Skt(o)),o.flags&2097152)return Pt(o.types,K=>O7(K,p,m,v));let E=zxe(o),D=0,R=0;for(let K=0;K=R&&(D++,D>=v))return!0;R=se.id}}}return!1}function Skt(o){let p;for(;(ro(o)&96)===96&&(p=yw(o))&&(p.symbol||p.flags&2097152&&Pt(p.types,m=>!!m.symbol));)o=p;return o}function bkt(o,p){return(ro(o)&96)===96&&(o=Skt(o)),o.flags&2097152?Pt(o.types,m=>bkt(m,p)):zxe(o)===p}function zxe(o){if(o.flags&524288&&!a$e(o)){if(ro(o)&4&&o.node)return o.node;if(o.symbol&&!(ro(o)&16&&o.symbol.flags&32))return o.symbol;if(Gc(o))return o.target}if(o.flags&262144)return o.symbol;if(o.flags&8388608){do o=o.objectType;while(o.flags&8388608);return o}return o.flags&16777216?o.root:o}function m2r(o,p){return qBe(o,p,uZ)!==0}function qBe(o,p,m){if(o===p)return-1;let v=S0(o)&6,E=S0(p)&6;if(v!==E)return 0;if(v){if(ZM(o)!==ZM(p))return 0}else if((o.flags&16777216)!==(p.flags&16777216))return 0;return Vv(o)!==Vv(p)?0:m(di(o),di(p))}function h2r(o,p,m){let v=xg(o),E=xg(p),D=Jv(o),R=Jv(p),K=Wb(o),se=Wb(p);return!!(v===E&&D===R&&K===se||m&&D<=R)}function Rse(o,p,m,v,E,D){if(o===p)return-1;if(!h2r(o,p,m)||te(o.typeParameters)!==te(p.typeParameters))return 0;if(p.typeParameters){let se=ty(o.typeParameters,p.typeParameters);for(let ce=0;cep|(m.flags&1048576?xkt(m.types):m.flags),0)}function v2r(o){if(o.length===1)return o[0];let p=be?Zo(o,v=>G_(v,E=>!(E.flags&98304))):o,m=y2r(p)?Do(p):S2r(p);return p===o?m:jse(m,xkt(o)&98304)}function S2r(o){let p=nl(o,(m,v)=>Gq(m,v)?v:m);return ht(o,m=>m===p||Gq(m,p))?p:nl(o,(m,v)=>c6(m,v)?v:m)}function b2r(o){return nl(o,(p,m)=>c6(m,p)?m:p)}function L0(o){return!!(ro(o)&4)&&(o.target===tl||o.target===Uc)}function Hq(o){return!!(ro(o)&4)&&o.target===Uc}function kw(o){return L0(o)||Gc(o)}function Lse(o){return L0(o)&&!Hq(o)||Gc(o)&&!o.target.readonly}function Mse(o){return L0(o)?Bu(o)[0]:void 0}function YE(o){return L0(o)||!(o.flags&98304)&&tc(o,Hg)}function JBe(o){return Lse(o)||!(o.flags&98305)&&tc(o,If)}function VBe(o){if(!(ro(o)&4)||!(ro(o.target)&3))return;if(ro(o)&33554432)return ro(o)&67108864?o.cachedEquivalentBaseType:void 0;o.objectFlags|=33554432;let p=o.target;if(ro(p)&1){let E=v1(p);if(E&&E.expression.kind!==80&&E.expression.kind!==212)return}let m=ov(p);if(m.length!==1||Ub(o.symbol).size)return;let v=te(p.typeParameters)?Oa(m[0],ty(p.typeParameters,Bu(o).slice(0,p.typeParameters.length))):m[0];return te(Bu(o))>te(p.typeParameters)&&(v=Yg(v,Sn(Bu(o)))),o.objectFlags|=67108864,o.cachedEquivalentBaseType=v}function Tkt(o){return be?o===cn:o===Y}function qxe(o){let p=Mse(o);return!!p&&Tkt(p)}function Kq(o){let p;return Gc(o)||!!vc(o,"0")||YE(o)&&!!(p=en(o,"length"))&&bg(p,m=>!!(m.flags&256))}function Jxe(o){return YE(o)||Kq(o)}function x2r(o,p){let m=en(o,""+p);if(m)return m;if(bg(o,Gc))return Dkt(o,p,Q.noUncheckedIndexedAccess?Ne:void 0)}function T2r(o){return!(o.flags&240544)}function $v(o){return!!(o.flags&109472)}function Ekt(o){let p=HS(o);return p.flags&2097152?Pt(p.types,$v):$v(p)}function E2r(o){return o.flags&2097152&&wt(o.types,$v)||o}function dZ(o){return o.flags&16?!0:o.flags&1048576?o.flags&1024?!0:ht(o.types,$v):$v(o)}function S2(o){return o.flags&1056?uxe(o):o.flags&402653312?Mt:o.flags&256?Ir:o.flags&2048?ii:o.flags&512?_r:o.flags&1048576?k2r(o):o}function k2r(o){let p=`B${ff(o)}`;return Sh(p)??h1(p,hp(o,S2))}function WBe(o){return o.flags&402653312?Mt:o.flags&288?Ir:o.flags&2048?ii:o.flags&512?_r:o.flags&1048576?hp(o,WBe):o}function Cw(o){return o.flags&1056&&a6(o)?uxe(o):o.flags&128&&a6(o)?Mt:o.flags&256&&a6(o)?Ir:o.flags&2048&&a6(o)?ii:o.flags&512&&a6(o)?_r:o.flags&1048576?hp(o,Cw):o}function kkt(o){return o.flags&8192?wr:o.flags&1048576?hp(o,kkt):o}function GBe(o,p){return LTe(o,p)||(o=kkt(Cw(o))),ih(o)}function C2r(o,p,m){if(o&&$v(o)){let v=p?m?LZ(p):p:void 0;o=GBe(o,v)}return o}function HBe(o,p,m,v){if(o&&$v(o)){let E=p?rk(m,p,v):void 0;o=GBe(o,E)}return o}function Gc(o){return!!(ro(o)&4&&o.target.objectFlags&8)}function rD(o){return Gc(o)&&!!(o.target.combinedFlags&8)}function Ckt(o){return rD(o)&&o.target.elementFlags.length===1}function Vxe(o){return Qq(o,o.target.fixedLength)}function Dkt(o,p,m){return hp(o,v=>{let E=v,D=Vxe(E);return D?m&&p>=_Be(E.target)?Do([D,m]):D:Ne})}function D2r(o){let p=Vxe(o);return p&&um(p)}function Qq(o,p,m=0,v=!1,E=!1){let D=ZE(o)-m;if(p(m&12)===(p.target.elementFlags[v]&12))}function Akt({value:o}){return o.base10Value==="0"}function wkt(o){return G_(o,p=>Uv(p,4194304))}function w2r(o){return hp(o,I2r)}function I2r(o){return o.flags&4?hM:o.flags&8?xq:o.flags&64?gM:o===zn||o===Rn||o.flags&114691||o.flags&128&&o.value===""||o.flags&256&&o.value===0||o.flags&2048&&Akt(o)?o:tn}function jse(o,p){let m=p&~o.flags&98304;return m===0?o:Do(m===32768?[o,Ne]:m===65536?[o,mr]:[o,Ne,mr])}function nD(o,p=!1){$.assert(be);let m=p?pe:Ne;return o===m||o.flags&1048576&&o.types[0]===m?o:Do([o,m])}function P2r(o){return Ym||(Ym=BM("NonNullable",524288,void 0)||ye),Ym!==ye?MM(Ym,[o]):Ac([o,kc])}function b2(o){return be?yN(o,2097152):o}function Ikt(o){return be?Do([o,Gt]):o}function Wxe(o){return be?nTe(o,Gt):o}function Gxe(o,p,m){return m?eU(p)?nD(o):Ikt(o):o}function fZ(o,p){return Bte(p)?b2(o):xm(p)?Wxe(o):o}function x2(o,p){return ze&&p?nTe(o,ot):o}function mZ(o){return o===ot||!!(o.flags&1048576)&&o.types[0]===ot}function Hxe(o){return ze?nTe(o,ot):M0(o,524288)}function N2r(o,p){return(o.flags&524)!==0&&(p.flags&28)!==0}function Kxe(o){let p=ro(o);return o.flags&2097152?ht(o.types,Kxe):!!(o.symbol&&(o.symbol.flags&7040)!==0&&!(o.symbol.flags&32)&&!t2e(o))||!!(p&4194304)||!!(p&1024&&Kxe(o.source))}function mN(o,p){let m=zc(o.flags,o.escapedName,Fp(o)&8);m.declarations=o.declarations,m.parent=o.parent,m.links.type=p,m.links.target=o,o.valueDeclaration&&(m.valueDeclaration=o.valueDeclaration);let v=io(o).nameType;return v&&(m.links.nameType=v),m}function O2r(o,p){let m=ic();for(let v of KE(o)){let E=di(v),D=p(E);m.set(v.escapedName,D===E?v:mN(v,D))}return m}function hZ(o){if(!(ek(o)&&ro(o)&8192))return o;let p=o.regularType;if(p)return p;let m=o,v=O2r(o,hZ),E=mp(m.symbol,v,m.callSignatures,m.constructSignatures,m.indexInfos);return E.flags=m.flags,E.objectFlags|=m.objectFlags&-8193,o.regularType=E,E}function Pkt(o,p,m){return{parent:o,propertyName:p,siblings:m,resolvedProperties:void 0}}function Nkt(o){if(!o.siblings){let p=[];for(let m of Nkt(o.parent))if(ek(m)){let v=t6(m,o.propertyName);v&&vN(di(v),E=>{p.push(E)})}o.siblings=p}return o.siblings}function F2r(o){if(!o.resolvedProperties){let p=new Map;for(let m of Nkt(o))if(ek(m)&&!(ro(m)&2097152))for(let v of $l(m))p.set(v.escapedName,v);o.resolvedProperties=so(p.values())}return o.resolvedProperties}function R2r(o,p){if(!(o.flags&4))return o;let m=di(o),v=p&&Pkt(p,o.escapedName,void 0),E=KBe(m,v);return E===m?o:mN(o,E)}function L2r(o){let p=Ee.get(o.escapedName);if(p)return p;let m=mN(o,pe);return m.flags|=16777216,Ee.set(o.escapedName,m),m}function M2r(o,p){let m=ic();for(let E of KE(o))m.set(E.escapedName,R2r(E,p));if(p)for(let E of F2r(p))m.has(E.escapedName)||m.set(E.escapedName,L2r(E));let v=mp(o.symbol,m,j,j,Zo(lm(o),E=>aT(E.keyType,ry(E.type),E.isReadonly,E.declaration,E.components)));return v.objectFlags|=ro(o)&266240,v}function ry(o){return KBe(o,void 0)}function KBe(o,p){if(ro(o)&196608){if(p===void 0&&o.widened)return o.widened;let m;if(o.flags&98305)m=at;else if(ek(o))m=M2r(o,p);else if(o.flags&1048576){let v=p||Pkt(void 0,void 0,o.types),E=Zo(o.types,D=>D.flags&98304?D:KBe(D,v));m=Do(E,Pt(E,v2)?2:1)}else o.flags&2097152?m=Ac(Zo(o.types,ry)):kw(o)&&(m=f2(o.target,Zo(Bu(o),ry)));return m&&p===void 0&&(o.widened=m),m||o}return o}function Qxe(o){var p;let m=!1;if(ro(o)&65536){if(o.flags&1048576)if(Pt(o.types,v2))m=!0;else for(let v of o.types)m||(m=Qxe(v));else if(kw(o))for(let v of Bu(o))m||(m=Qxe(v));else if(ek(o))for(let v of KE(o)){let E=di(v);if(ro(E)&65536&&(m=Qxe(E),!m)){let D=(p=v.declarations)==null?void 0:p.find(R=>{var K;return((K=R.symbol.valueDeclaration)==null?void 0:K.parent)===o.symbol.valueDeclaration});D&&(gt(D,x.Object_literal_s_property_0_implicitly_has_an_1_type,Ua(v),ri(ry(E))),m=!0)}}}return m}function Dw(o,p,m){let v=ri(ry(p));if(Ei(o)&&!WU(Pn(o),Q))return;let E;switch(o.kind){case 227:case 173:case 172:E=Fe?x.Member_0_implicitly_has_an_1_type:x.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 170:let D=o;if(ct(D.name)){let R=aA(D.name);if((hF(D.parent)||G1(D.parent)||Cb(D.parent))&&D.parent.parameters.includes(D)&&($t(D,D.name.escapedText,788968,void 0,!0)||R&&Fhe(R))){let K="arg"+D.parent.parameters.indexOf(D),se=du(D.name)+(D.dotDotDotToken?"[]":"");Y1(Fe,o,x.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,K,se);return}}E=o.dotDotDotToken?Fe?x.Rest_parameter_0_implicitly_has_an_any_type:x.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Fe?x.Parameter_0_implicitly_has_an_1_type:x.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 209:if(E=x.Binding_element_0_implicitly_has_an_1_type,!Fe)return;break;case 318:gt(o,x.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,v);return;case 324:Fe&&EL(o.parent)&>(o.parent.tagName,x.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,v);return;case 263:case 175:case 174:case 178:case 179:case 219:case 220:if(Fe&&!o.name){m===3?gt(o,x.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation,v):gt(o,x.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,v);return}E=Fe?m===3?x._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:x._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:x._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 201:Fe&>(o,x.Mapped_object_type_implicitly_has_an_any_template_type);return;default:E=Fe?x.Variable_0_implicitly_has_an_1_type:x.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Y1(Fe,o,E,du(cs(o)),v)}function j2r(o,p){let m=hTe(o);if(!m)return!0;let v=Tl(m),E=A_(o);switch(p){case 1:return E&1?v=rk(1,v,!!(E&2))??v:E&2&&(v=E2(v)??v),xw(v);case 3:let D=rk(0,v,!!(E&2));return!!D&&xw(D);case 2:let R=rk(2,v,!!(E&2));return!!R&&xw(R)}return!1}function Zxe(o,p,m){a(()=>{Fe&&ro(p)&65536&&(!m||lu(o)&&j2r(o,m))&&(Qxe(p)||Dw(o,p,m))})}function QBe(o,p,m){let v=xg(o),E=xg(p),D=wZ(o),R=wZ(p),K=R?E-1:E,se=D?K:Math.min(v,K),ce=Sw(o);if(ce){let fe=Sw(p);fe&&m(ce,fe)}for(let fe=0;fep.typeParameter),Cr(o.inferences,(p,m)=>()=>(p.isFixed||(U2r(o),Xxe(o.inferences),p.isFixed=!0),s$e(o,m))))}function $2r(o){return ABe(Cr(o.inferences,p=>p.typeParameter),Cr(o.inferences,(p,m)=>()=>s$e(o,m)))}function Xxe(o){for(let p of o)p.isFixed||(p.inferredType=void 0)}function YBe(o,p,m){(o.intraExpressionInferenceSites??(o.intraExpressionInferenceSites=[])).push({node:p,type:m})}function U2r(o){if(o.intraExpressionInferenceSites){for(let{node:p,type:m}of o.intraExpressionInferenceSites){let v=p.kind===175?jCt(p,2):Eh(p,2);v&&lT(o.inferences,m,v)}o.intraExpressionInferenceSites=void 0}}function e$e(o){return{typeParameter:o,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Fkt(o){return{typeParameter:o.typeParameter,candidates:o.candidates&&o.candidates.slice(),contraCandidates:o.contraCandidates&&o.contraCandidates.slice(),inferredType:o.inferredType,priority:o.priority,topLevel:o.topLevel,isFixed:o.isFixed,impliedArity:o.impliedArity}}function z2r(o){let p=yr(o.inferences,QM);return p.length?XBe(Cr(p,Fkt),o.signature,o.flags,o.compareTypes):void 0}function t$e(o){return o&&o.mapper}function iD(o){let p=ro(o);if(p&524288)return!!(p&1048576);let m=!!(o.flags&465829888||o.flags&524288&&!Rkt(o)&&(p&4&&(o.node||Pt(Bu(o),iD))||p&16&&o.symbol&&o.symbol.flags&14384&&o.symbol.declarations||p&12583968)||o.flags&3145728&&!(o.flags&1024)&&!Rkt(o)&&Pt(o.types,iD));return o.flags&3899393&&(o.objectFlags|=524288|(m?1048576:0)),m}function Rkt(o){if(o.aliasSymbol&&!o.aliasTypeArguments){let p=Qu(o.aliasSymbol,266);return!!(p&&fn(p.parent,m=>m.kind===308?!0:m.kind===268?!1:"quit"))}return!1}function yZ(o,p,m=0){return!!(o===p||o.flags&3145728&&Pt(o.types,v=>yZ(v,p,m))||m<3&&o.flags&16777216&&(yZ(eD(o),p,m+1)||yZ(tD(o),p,m+1)))}function q2r(o,p){let m=F0(o);return m?!!m.type&&yZ(m.type,p):yZ(Tl(o),p)}function J2r(o){let p=ic();vN(o,v=>{if(!(v.flags&128))return;let E=dp(v.value),D=zc(4,E);D.links.type=at,v.symbol&&(D.declarations=v.symbol.declarations,D.valueDeclaration=v.symbol.valueDeclaration),p.set(E,D)});let m=o.flags&4?[aT(Mt,kc,!1)]:j;return mp(void 0,p,j,j,m)}function Lkt(o,p,m){let v=o.id+","+p.id+","+m.id;if(Wf.has(v))return Wf.get(v);let E=V2r(o,p,m);return Wf.set(v,E),E}function r$e(o){return!(ro(o)&262144)||ek(o)&&Pt($l(o),p=>r$e(di(p)))||Gc(o)&&Pt(i6(o),r$e)}function V2r(o,p,m){if(!(oT(o,Mt)||$l(o).length!==0&&r$e(o)))return;if(L0(o)){let E=Yxe(Bu(o)[0],p,m);return E?um(E,Hq(o)):void 0}if(Gc(o)){let E=Cr(i6(o),R=>Yxe(R,p,m));if(!ht(E,R=>!!R))return;let D=zb(p)&4?Zo(o.target.elementFlags,R=>R&2?1:R):o.target.elementFlags;return Jb(E,D,o.target.readonly,o.target.labeledElementDeclarations)}let v=F_(1040,void 0);return v.source=o,v.mappedType=p,v.constraintType=m,v}function W2r(o){let p=io(o);return p.type||(p.type=Yxe(o.links.propertyType,o.links.mappedType,o.links.constraintType)||er),p.type}function G2r(o,p,m){let v=ey(m.type,av(p)),E=iT(p),D=e$e(v);return lT([D],o,E),Mkt(D)||er}function Yxe(o,p,m){let v=o.id+","+p.id+","+m.id;if(Gg.has(v))return Gg.get(v)||er;ZA.push(o),R3.push(p);let E=XA;O7(o,ZA,ZA.length,2)&&(XA|=1),O7(p,R3,R3.length,2)&&(XA|=2);let D;return XA!==3&&(D=G2r(o,p,m)),ZA.pop(),R3.pop(),XA=E,Gg.set(v,D),D}function*n$e(o,p,m,v){let E=$l(p);for(let D of E)if(!f2t(D)&&(m||!(D.flags&16777216||Fp(D)&48))){let R=vc(o,D.escapedName);if(!R)yield D;else if(v){let K=di(D);if(K.flags&109472){let se=di(R);se.flags&1||ih(se)===ih(K)||(yield D)}}}}function i$e(o,p,m,v){return ia(n$e(o,p,m,v))}function H2r(o,p){return!(p.target.combinedFlags&8)&&p.target.minLength>o.target.minLength||!(p.target.combinedFlags&12)&&(!!(o.target.combinedFlags&12)||p.target.fixedLengthw7(D,E),o)===o&&eTe(o,p)}return!1}function $kt(o,p){if(p.flags&2097152)return ht(p.types,m=>m===sc||$kt(o,m));if(p.flags&4||tc(o,p))return!0;if(o.flags&128){let m=o.value;return!!(p.flags&8&&Bkt(m,!1)||p.flags&64&&bne(m,!1)||p.flags&98816&&m===p.intrinsicName||p.flags&268435456&&eTe(o,p)||p.flags&134217728&&tTe(o,p))}if(o.flags&134217728){let m=o.texts;return m.length===2&&m[0]===""&&m[1]===""&&tc(o.types[0],p)}return!1}function Ukt(o,p){return o.flags&128?zkt([o.value],j,p):o.flags&134217728?__(o.texts,p.texts)?Cr(o.types,(m,v)=>tc(HS(m),HS(p.types[v]))?m:X2r(m)):zkt(o.texts,o.types,p):void 0}function tTe(o,p){let m=Ukt(o,p);return!!m&&ht(m,(v,E)=>$kt(v,p.types[E]))}function X2r(o){return o.flags&402653317?o:cN(["",""],[o])}function zkt(o,p,m){let v=o.length-1,E=o[0],D=o[v],R=m.texts,K=R.length-1,se=R[0],ce=R[K];if(v===0&&E.length0){let Hn=Me,fi=yt;for(;fi=Jt(Hn).indexOf(on,fi),!(fi>=0);){if(Hn++,Hn===o.length)return;fi=0}Xt(Hn,fi),yt+=on.length}else if(yt!un(mi,Rl)):Mn,fs?yr(ei,Rl=>!un(fs,Rl)):ei]}function Hn(Mn,ei,ha){let mi=Mn.length!!rn(fs));if(!mi||ei&&mi!==ei)return;ei=mi}return ei}function wo(Mn,ei,ha){let mi=0;if(ha&1048576){let fs,Rl=Mn.flags&1048576?Mn.types:[Mn],$u=new Array(Rl.length),hf=!1;for(let Hc of ei)if(rn(Hc))fs=Hc,mi++;else for(let y_=0;y_$u[R_]?void 0:y_);if(Hc.length){Me(Do(Hc),fs);return}}}else for(let fs of ei)rn(fs)?mi++:Me(Mn,fs);if(ha&2097152?mi===1:mi>0)for(let fs of ei)rn(fs)&&yt(Mn,fs,1)}function Fa(Mn,ei,ha){if(ha.flags&1048576||ha.flags&2097152){let mi=!1;for(let fs of ha.types)mi=Fa(Mn,ei,fs)||mi;return mi}if(ha.flags&4194304){let mi=rn(ha.type);if(mi&&!mi.isFixed&&!jkt(Mn)){let fs=Lkt(Mn,ei,ha);fs&&yt(fs,mi.typeParameter,ro(Mn)&262144?16:8)}return!0}if(ha.flags&262144){yt(KS(Mn,Mn.pattern?2:0),ha,32);let mi=iN(ha);if(mi&&Fa(Mn,ei,mi))return!0;let fs=Cr($l(Mn),di),Rl=Cr(lm(Mn),$u=>$u!==ua?$u.type:tn);return Me(Do(go(fs,Rl)),iT(ei)),!0}return!1}function ho(Mn,ei){if(Mn.flags&16777216)Me(Mn.checkType,ei.checkType),Me(Mn.extendsType,ei.extendsType),Me(eD(Mn),eD(ei)),Me(tD(Mn),tD(ei));else{let ha=[eD(ei),tD(ei)];Xt(Mn,ha,ei.flags,E?64:0)}}function pa(Mn,ei){let ha=Ukt(Mn,ei),mi=ei.types;if(ha||ht(ei.texts,fs=>fs.length===0))for(let fs=0;fsUl|n0.flags,0);if(!(R_&4)){let Ul=Rl.value;R_&296&&!Bkt(Ul,!0)&&(R_&=-297),R_&2112&&!bne(Ul,!0)&&(R_&=-2113);let n0=nl(y_,(gp,c_)=>c_.flags&R_?gp.flags&4?gp:c_.flags&4?Rl:gp.flags&134217728?gp:c_.flags&134217728&&tTe(Rl,c_)?Rl:gp.flags&268435456?gp:c_.flags&268435456&&Ul===REt(c_.symbol,Ul)?Rl:gp.flags&128?gp:c_.flags&128&&c_.value===Ul?c_:gp.flags&8?gp:c_.flags&8?Bv(+Ul):gp.flags&32?gp:c_.flags&32?Bv(+Ul):gp.flags&256?gp:c_.flags&256&&c_.value===+Ul?c_:gp.flags&64?gp:c_.flags&64?Z2r(Ul):gp.flags&2048?gp:c_.flags&2048&&fP(c_.value)===Ul?c_:gp.flags&16?gp:c_.flags&16?Ul==="true"?Rt:Ul==="false"?Rn:_r:gp.flags&512?gp:c_.flags&512&&c_.intrinsicName===Ul?c_:gp.flags&32768?gp:c_.flags&32768&&c_.intrinsicName===Ul?c_:gp.flags&65536?gp:c_.flags&65536&&c_.intrinsicName===Ul?c_:gp:gp,tn);if(!(n0.flags&131072)){Me(n0,$u);continue}}}}Me(Rl,$u)}}function Ps(Mn,ei){Me(e0(Mn),e0(ei)),Me(iT(Mn),iT(ei));let ha=HE(Mn),mi=HE(ei);ha&&mi&&Me(ha,mi)}function El(Mn,ei){var ha,mi;if(ro(Mn)&4&&ro(ei)&4&&(Mn.target===ei.target||L0(Mn)&&L0(ei))){Hn(Bu(Mn),Bu(ei),UBe(Mn.target));return}if(Xh(Mn)&&Xh(ei)&&Ps(Mn,ei),ro(ei)&32&&!ei.declaration.nameType){let fs=e0(ei);if(Fa(Mn,ei,fs))return}if(!K2r(Mn,ei)){if(kw(Mn)){if(Gc(ei)){let fs=ZE(Mn),Rl=ZE(ei),$u=Bu(ei),hf=ei.target.elementFlags;if(Gc(Mn)&&A2r(Mn,ei)){for(let R_=0;R_0){let Rl=Gs(ei,ha),$u=Rl.length;for(let hf=0;hf<$u;hf++){let Hc=Math.max(fs-$u+hf,0);Zp(rxr(mi[Hc]),nZ(Rl[hf]))}}}function Zp(Mn,ei){if(!(Mn.flags&64)){let ha=D,mi=ei.declaration?ei.declaration.kind:0;D=D||mi===175||mi===174||mi===177,QBe(Mn,ei,sn),D=ha}ZBe(Mn,ei,Me)}function Rm(Mn,ei){let ha=ro(Mn)&ro(ei)&32?8:0,mi=lm(ei);if(Kxe(Mn))for(let fs of mi){let Rl=[];for(let $u of $l(Mn))if(C7(A7($u,8576),fs.keyType)){let hf=di($u);Rl.push($u.flags&16777216?Hxe(hf):hf)}for(let $u of lm(Mn))C7($u.keyType,fs.keyType)&&Rl.push($u.type);Rl.length&&yt(Do(Rl),fs.type,ha)}for(let fs of mi){let Rl=YQ(Mn,fs.keyType);Rl&&yt(Rl.type,fs.type,ha)}}}function Y2r(o,p){return p===ot?o===p:cT(o,p)||!!(p.flags&4&&o.flags&128||p.flags&8&&o.flags&256)}function eEr(o,p){return!!(o.flags&524288&&p.flags&524288&&o.symbol&&o.symbol===p.symbol||o.aliasSymbol&&o.aliasTypeArguments&&o.aliasSymbol===p.aliasSymbol)}function tEr(o){let p=Th(o);return!!p&&s_(p.flags&16777216?Bje(p):p,406978556)}function ek(o){return!!(ro(o)&128)}function a$e(o){return!!(ro(o)&16512)}function rEr(o){if(o.length>1){let p=yr(o,a$e);if(p.length){let m=Do(p,2);return go(yr(o,v=>!a$e(v)),[m])}}return o}function nEr(o){return o.priority&416?Ac(o.contraCandidates):b2r(o.contraCandidates)}function iEr(o,p){let m=rEr(o.candidates),v=tEr(o.typeParameter)||oN(o.typeParameter),E=!v&&o.topLevel&&(o.isFixed||!q2r(p,o.typeParameter)),D=v?Zo(m,ih):E?Zo(m,Cw):m,R=o.priority&416?Do(D,2):v2r(D);return ry(R)}function s$e(o,p){let m=o.inferences[p];if(!m.inferredType){let v,E;if(o.signature){let R=m.candidates?iEr(m,o.signature):void 0,K=m.contraCandidates?nEr(m):void 0;if(R||K){let se=R&&(!K||!(R.flags&131073)&&Pt(m.contraCandidates,ce=>tc(R,ce))&&ht(o.inferences,ce=>ce!==m&&Th(ce.typeParameter)!==m.typeParameter||ht(ce.candidates,fe=>tc(fe,R))));v=se?R:K,E=se?K:R}else if(o.flags&1)v=lr;else{let se=r6(m.typeParameter);se&&(v=Oa(se,ekt(PTr(o,p),o.nonFixingMapper)))}}else v=Mkt(m);m.inferredType=v||c$e(!!(o.flags&2));let D=Th(m.typeParameter);if(D){let R=Oa(D,o.nonFixingMapper);(!v||!o.compareTypes(v,Yg(R,v)))&&(m.inferredType=E&&o.compareTypes(E,Yg(R,E))?E:R)}kkr()}return m.inferredType}function c$e(o){return o?at:er}function l$e(o){let p=[];for(let m=0;mAf(p)||s1(p)||fh(p)))}function Bse(o,p,m,v){switch(o.kind){case 80:if(!lP(o)){let R=Fm(o);return R!==ye?`${v?hl(v):"-1"}|${ff(p)}|${ff(m)}|${hc(R)}`:void 0}case 110:return`0|${v?hl(v):"-1"}|${ff(p)}|${ff(m)}`;case 236:case 218:return Bse(o.expression,p,m,v);case 167:let E=Bse(o.left,p,m,v);return E&&`${E}.${o.right.escapedText}`;case 212:case 213:let D=hN(o);if(D!==void 0){let R=Bse(o.expression,p,m,v);return R&&`${R}.${D}`}if(mu(o)&&ct(o.argumentExpression)){let R=Fm(o.argumentExpression);if(F7(R)||bZ(R)&&!SZ(R)){let K=Bse(o.expression,p,m,v);return K&&`${K}.@${hc(R)}`}}break;case 207:case 208:case 263:case 219:case 220:case 175:return`${hl(o)}#${ff(p)}`}}function Ff(o,p){switch(p.kind){case 218:case 236:return Ff(o,p.expression);case 227:return of(p)&&Ff(o,p.left)||wi(p)&&p.operatorToken.kind===28&&Ff(o,p.right)}switch(o.kind){case 237:return p.kind===237&&o.keywordToken===p.keywordToken&&o.name.escapedText===p.name.escapedText;case 80:case 81:return lP(o)?p.kind===110:p.kind===80&&Fm(o)===Fm(p)||(Oo(p)||Vc(p))&&Wt(Fm(o))===$i(p);case 110:return p.kind===110;case 108:return p.kind===108;case 236:case 218:case 239:return Ff(o.expression,p);case 212:case 213:let m=hN(o);if(m!==void 0){let v=wu(p)?hN(p):void 0;if(v!==void 0)return v===m&&Ff(o.expression,p.expression)}if(mu(o)&&mu(p)&&ct(o.argumentExpression)&&ct(p.argumentExpression)){let v=Fm(o.argumentExpression);if(v===Fm(p.argumentExpression)&&(F7(v)||bZ(v)&&!SZ(v)))return Ff(o.expression,p.expression)}break;case 167:return wu(p)&&o.right.escapedText===hN(p)&&Ff(o.left,p.expression);case 227:return wi(o)&&o.operatorToken.kind===28&&Ff(o.right,p)}return!1}function hN(o){if(no(o))return o.name.escapedText;if(mu(o))return oEr(o);if(Vc(o)){let p=JE(o);return p?dp(p):void 0}if(wa(o))return""+o.parent.parameters.indexOf(o)}function p$e(o){return o.flags&8192?o.escapedName:o.flags&384?dp(""+o.value):void 0}function oEr(o){return jy(o.argumentExpression)?dp(o.argumentExpression.text):ru(o.argumentExpression)?aEr(o.argumentExpression):void 0}function aEr(o){let p=jp(o,111551,!0);if(!p||!(F7(p)||p.flags&8))return;let m=p.valueDeclaration;if(m===void 0)return;let v=ZC(m);if(v){let E=p$e(v);if(E!==void 0)return E}if(j4(m)&&l2(m,o)){let E=jG(m);if(E){let D=$s(m.parent)?tT(m):Kf(E);return D&&p$e(D)}if(GT(m))return UO(m.name)}}function Jkt(o,p){for(;wu(o);)if(o=o.expression,Ff(o,p))return!0;return!1}function gN(o,p){for(;xm(o);)if(o=o.expression,Ff(o,p))return!0;return!1}function Zq(o,p){if(o&&o.flags&1048576){let m=M2t(o,p);if(m&&Fp(m)&2)return m.links.isDiscriminantProperty===void 0&&(m.links.isDiscriminantProperty=(m.links.checkFlags&192)===192&&!xw(di(m))),!!m.links.isDiscriminantProperty}return!1}function Vkt(o,p){let m;for(let v of o)if(Zq(p,v.escapedName)){if(m){m.push(v);continue}m=[v]}return m}function sEr(o,p){let m=new Map,v=0;for(let E of o)if(E.flags&61603840){let D=en(E,p);if(D){if(!dZ(D))return;let R=!1;vN(D,K=>{let se=ff(ih(K)),ce=m.get(se);ce?ce!==er&&(m.set(se,er),R=!0):m.set(se,E)}),R||v++}}return v>=10&&v*2>=o.length?m:void 0}function $se(o){let p=o.types;if(!(p.length<10||ro(o)&32768||Lo(p,m=>!!(m.flags&59506688))<10)){if(o.keyPropertyName===void 0){let m=X(p,E=>E.flags&59506688?X($l(E),D=>$v(di(D))?D.escapedName:void 0):void 0),v=m&&sEr(p,m);o.keyPropertyName=v?m:"",o.constituentMap=v}return o.keyPropertyName.length?o.keyPropertyName:void 0}}function Use(o,p){var m;let v=(m=o.constituentMap)==null?void 0:m.get(ff(ih(p)));return v!==er?v:void 0}function Wkt(o,p){let m=$se(o),v=m&&en(p,m);return v&&Use(o,v)}function cEr(o,p){let m=$se(o),v=m&&wt(p.properties,D=>D.symbol&&D.kind===304&&D.symbol.escapedName===m&&Qse(D.initializer)),E=v&&hce(v.initializer);return E&&Use(o,E)}function Gkt(o,p){return Ff(o,p)||Jkt(o,p)}function Hkt(o,p){if(o.arguments){for(let m of o.arguments)if(Gkt(p,m)||gN(m,p))return!0}return!!(o.expression.kind===212&&Gkt(p,o.expression.expression))}function _$e(o){return o.id<=0&&(o.id=s_t,s_t++),o.id}function lEr(o,p){if(!(o.flags&1048576))return tc(o,p);for(let m of o.types)if(tc(m,p))return!0;return!1}function uEr(o,p){if(o===p)return o;if(p.flags&131072)return p;let m=`A${ff(o)},${ff(p)}`;return Sh(m)??h1(m,pEr(o,p))}function pEr(o,p){let m=G_(o,E=>lEr(p,E)),v=p.flags&512&&a6(p)?hp(m,P7):m;return tc(p,v)?v:o}function d$e(o){if(ro(o)&256)return!1;let p=jv(o);return!!(p.callSignatures.length||p.constructSignatures.length||p.members.get("bind")&&c6(o,Vn))}function zM(o,p){return f$e(o,p)&p}function Uv(o,p){return zM(o,p)!==0}function f$e(o,p){o.flags&467927040&&(o=Gf(o)||er);let m=o.flags;if(m&268435460)return be?16317953:16776705;if(m&134217856){let v=m&128&&o.value==="";return be?v?12123649:7929345:v?12582401:16776705}if(m&40)return be?16317698:16776450;if(m&256){let v=o.value===0;return be?v?12123394:7929090:v?12582146:16776450}if(m&64)return be?16317188:16775940;if(m&2048){let v=Akt(o);return be?v?12122884:7928580:v?12581636:16775940}return m&16?be?16316168:16774920:m&528?be?o===Rn||o===zn?12121864:7927560:o===Rn||o===zn?12580616:16774920:m&524288?(p&(be?83427327:83886079))===0?0:ro(o)&16&&v2(o)?be?83427327:83886079:d$e(o)?be?7880640:16728e3:be?7888800:16736160:m&16384?9830144:m&32768?26607360:m&65536?42917664:m&12288?be?7925520:16772880:m&67108864?be?7888800:16736160:m&131072?0:m&1048576?nl(o.types,(v,E)=>v|f$e(E,p),0):m&2097152?_Er(o,p):83886079}function _Er(o,p){let m=s_(o,402784252),v=0,E=134217727;for(let D of o.types)if(!(m&&D.flags&524288)){let R=f$e(D,p);v|=R,E&=R}return v&8256|E&134209471}function M0(o,p){return G_(o,m=>Uv(m,p))}function yN(o,p){let m=m$e(M0(be&&o.flags&2?Yc:o,p));if(be)switch(p){case 524288:return Kkt(m,65536,131072,33554432,mr);case 1048576:return Kkt(m,131072,65536,16777216,Ne);case 2097152:case 4194304:return hp(m,v=>Uv(v,262144)?P2r(v):v)}return m}function Kkt(o,p,m,v,E){let D=zM(o,50528256);if(!(D&p))return o;let R=Do([kc,E]);return hp(o,K=>Uv(K,p)?Ac([K,!(D&v)&&Uv(K,m)?R:kc]):K)}function m$e(o){return o===Yc?er:o}function h$e(o,p){return p?Do([Zl(o),Kf(p)]):o}function Qkt(o,p){var m;let v=m2(p);if(!b0(v))return Et;let E=x0(v);return en(o,E)||vZ((m=D7(o,E))==null?void 0:m.type)||Et}function Zkt(o,p){return bg(o,Kq)&&x2r(o,p)||vZ(tk(65,o,Ne,void 0))||Et}function vZ(o){return o&&(Q.noUncheckedIndexedAccess?Do([o,ot]):o)}function Xkt(o){return um(tk(65,o,Ne,void 0)||Et)}function dEr(o){return o.parent.kind===210&&g$e(o.parent)||o.parent.kind===304&&g$e(o.parent.parent)?h$e(zse(o),o.right):Kf(o.right)}function g$e(o){return o.parent.kind===227&&o.parent.left===o||o.parent.kind===251&&o.parent.initializer===o}function fEr(o,p){return Zkt(zse(o),o.elements.indexOf(p))}function mEr(o){return Xkt(zse(o.parent))}function Ykt(o){return Qkt(zse(o.parent),o.name)}function hEr(o){return h$e(Ykt(o),o.objectAssignmentInitializer)}function zse(o){let{parent:p}=o;switch(p.kind){case 250:return Mt;case 251:return Tce(p)||Et;case 227:return dEr(p);case 221:return Ne;case 210:return fEr(p,o);case 231:return mEr(p);case 304:return Ykt(p);case 305:return hEr(p)}return Et}function gEr(o){let p=o.parent,m=tCt(p.parent),v=p.kind===207?Qkt(m,o.propertyName||o.name):o.dotDotDotToken?Xkt(m):Zkt(m,p.elements.indexOf(o));return h$e(v,o.initializer)}function eCt(o){return Ki(o).resolvedType||Kf(o)}function yEr(o){return o.initializer?eCt(o.initializer):o.parent.parent.kind===250?Mt:o.parent.parent.kind===251&&Tce(o.parent.parent)||Et}function tCt(o){return o.kind===261?yEr(o):gEr(o)}function vEr(o){return o.kind===261&&o.initializer&&WE(o.initializer)||o.kind!==209&&o.parent.kind===227&&WE(o.parent.right)}function u6(o){switch(o.kind){case 218:return u6(o.expression);case 227:switch(o.operatorToken.kind){case 64:case 76:case 77:case 78:return u6(o.left);case 28:return u6(o.right)}}return o}function rCt(o){let{parent:p}=o;return p.kind===218||p.kind===227&&p.operatorToken.kind===64&&p.left===o||p.kind===227&&p.operatorToken.kind===28&&p.right===o?rCt(p):o}function SEr(o){return o.kind===297?ih(Kf(o.expression)):tn}function rTe(o){let p=Ki(o);if(!p.switchTypes){p.switchTypes=[];for(let m of o.caseBlock.clauses)p.switchTypes.push(SEr(m))}return p.switchTypes}function nCt(o){if(Pt(o.caseBlock.clauses,m=>m.kind===297&&!Sl(m.expression)))return;let p=[];for(let m of o.caseBlock.clauses){let v=m.kind===297?m.expression.text:void 0;p.push(v&&!un(p,v)?v:void 0)}return p}function bEr(o,p){return o.flags&1048576?!X(o.types,m=>!un(p,m)):un(p,o)}function Xq(o,p){return!!(o===p||o.flags&131072||p.flags&1048576&&xEr(o,p))}function xEr(o,p){if(o.flags&1048576){for(let m of o.types)if(!sT(p.types,m))return!1;return!0}return o.flags&1056&&uxe(o)===p?!0:sT(p.types,o)}function vN(o,p){return o.flags&1048576?X(o.types,p):p(o)}function j0(o,p){return o.flags&1048576?Pt(o.types,p):p(o)}function bg(o,p){return o.flags&1048576?ht(o.types,p):p(o)}function TEr(o,p){return o.flags&3145728?ht(o.types,p):p(o)}function G_(o,p){if(o.flags&1048576){let m=o.types,v=yr(m,p);if(v===m)return o;let E=o.origin,D;if(E&&E.flags&1048576){let R=E.types,K=yr(R,se=>!!(se.flags&1048576)||p(se));if(R.length-K.length===m.length-v.length){if(K.length===1)return K[0];D=dBe(1048576,K)}}return mBe(v,o.objectFlags&16809984,void 0,void 0,D)}return o.flags&131072||p(o)?o:tn}function nTe(o,p){return G_(o,m=>m!==p)}function EEr(o){return o.flags&1048576?o.types.length:1}function hp(o,p,m){if(o.flags&131072)return o;if(!(o.flags&1048576))return p(o);let v=o.origin,E=v&&v.flags&1048576?v.types:o.types,D,R=!1;for(let K of E){let se=K.flags&1048576?hp(K,p,m):p(K);R||(R=K!==se),se&&(D?D.push(se):D=[se])}return R?D&&Do(D,m?0:1):o}function iCt(o,p,m,v){return o.flags&1048576&&m?Do(Cr(o.types,p),1,m,v):hp(o,p)}function Yq(o,p){return G_(o,m=>(m.flags&p)!==0)}function oCt(o,p){return s_(o,134217804)&&s_(p,402655616)?hp(o,m=>m.flags&4?Yq(p,402653316):lN(m)&&!s_(p,402653188)?Yq(p,128):m.flags&8?Yq(p,264):m.flags&64?Yq(p,2112):m):o}function qM(o){return o.flags===0}function SN(o){return o.flags===0?o.type:o}function JM(o,p){return p?{flags:0,type:o.flags&131072?lr:o}:o}function kEr(o){let p=F_(256);return p.elementType=o,p}function y$e(o){return ur[o.id]||(ur[o.id]=kEr(o))}function aCt(o,p){let m=hZ(S2(hce(p)));return Xq(m,o.elementType)?o:y$e(Do([o.elementType,m]))}function CEr(o){return o.flags&131072?uf:um(o.flags&1048576?Do(o.types,2):o)}function DEr(o){return o.finalArrayType||(o.finalArrayType=CEr(o.elementType))}function qse(o){return ro(o)&256?DEr(o):o}function AEr(o){return ro(o)&256?o.elementType:tn}function wEr(o){let p=!1;for(let m of o)if(!(m.flags&131072)){if(!(ro(m)&256))return!1;p=!0}return p}function sCt(o){let p=rCt(o),m=p.parent,v=no(m)&&(m.name.escapedText==="length"||m.parent.kind===214&&ct(m.name)&&nhe(m.name)),E=m.kind===213&&m.expression===p&&m.parent.kind===227&&m.parent.operatorToken.kind===64&&m.parent.left===m&&!lC(m.parent)&&Hf(Kf(m.argumentExpression),296);return v||E}function IEr(o){return(Oo(o)||ps(o)||Zm(o)||wa(o))&&!!(X_(o)||Ei(o)&&lE(o)&&o.initializer&&mC(o.initializer)&&jg(o.initializer))}function iTe(o,p){if(o=O_(o),o.flags&8752)return di(o);if(o.flags&7){if(Fp(o)&262144){let v=o.links.syntheticOrigin;if(v&&iTe(v))return di(o)}let m=o.valueDeclaration;if(m){if(IEr(m))return di(o);if(Oo(m)&&m.parent.parent.kind===251){let v=m.parent.parent,E=Jse(v.expression,void 0);if(E){let D=v.awaitModifier?15:13;return tk(D,E,Ne,void 0)}}p&&ac(p,xi(m,x._0_needs_an_explicit_type_annotation,Ua(o)))}}}function Jse(o,p){if(!(o.flags&67108864))switch(o.kind){case 80:let m=Wt(Fm(o));return iTe(m,p);case 110:return ZEr(o);case 108:return uTe(o);case 212:{let v=Jse(o.expression,p);if(v){let E=o.name,D;if(Aa(E)){if(!v.symbol)return;D=vc(v,XG(v.symbol,E.escapedText))}else D=vc(v,E.escapedText);return D&&iTe(D,p)}return}case 218:return Jse(o.expression,p)}}function Vse(o){let p=Ki(o),m=p.effectsSignature;if(m===void 0){let v;if(wi(o)){let R=WM(o.right);v=yUe(R)}else o.parent.kind===245?v=Jse(o.expression,void 0):o.expression.kind!==108&&(xm(o)?v=ZS(fZ(Va(o.expression),o.expression),o.expression):v=WM(o.expression));let E=Gs(v&&nh(v)||er,0),D=E.length===1&&!E[0].typeParameters?E[0]:Pt(E,cCt)?HM(o):void 0;m=p.effectsSignature=D&&cCt(D)?D:So}return m===So?void 0:m}function cCt(o){return!!(F0(o)||o.declaration&&(RM(o.declaration)||er).flags&131072)}function PEr(o,p){if(o.kind===1||o.kind===3)return p.arguments[o.parameterIndex];let m=bl(p.expression);return wu(m)?bl(m.expression):void 0}function NEr(o){let p=fn(o,ame),m=Pn(o),v=gS(m,p.statements.pos);il.add(md(m,v.start,v.length,x.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function Wse(o){let p=oTe(o,!1);return Po=o,as=p,p}function Gse(o){let p=bl(o,!0);return p.kind===97||p.kind===227&&(p.operatorToken.kind===56&&(Gse(p.left)||Gse(p.right))||p.operatorToken.kind===57&&Gse(p.left)&&Gse(p.right))}function oTe(o,p){for(;;){if(o===Po)return as;let m=o.flags;if(m&4096){if(!p){let v=_$e(o),E=i7[v];return E!==void 0?E:i7[v]=oTe(o,!0)}p=!1}if(m&368)o=o.antecedent;else if(m&512){let v=Vse(o.node);if(v){let E=F0(v);if(E&&E.kind===3&&!E.type){let D=o.node.arguments[E.parameterIndex];if(D&&Gse(D))return!1}if(Tl(v).flags&131072)return!1}o=o.antecedent}else{if(m&4)return Pt(o.antecedent,v=>oTe(v,!1));if(m&8){let v=o.antecedent;if(v===void 0||v.length===0)return!1;o=v[0]}else if(m&128){let v=o.node;if(v.clauseStart===v.clauseEnd&&eAt(v.switchStatement))return!1;o=o.antecedent}else if(m&1024){Po=void 0;let v=o.node.target,E=v.antecedent;v.antecedent=o.node.antecedents;let D=oTe(o.antecedent,!1);return v.antecedent=E,D}else return!(m&1)}}}function aTe(o,p){for(;;){let m=o.flags;if(m&4096){if(!p){let v=_$e(o),E=zP[v];return E!==void 0?E:zP[v]=aTe(o,!0)}p=!1}if(m&496)o=o.antecedent;else if(m&512){if(o.node.expression.kind===108)return!0;o=o.antecedent}else{if(m&4)return ht(o.antecedent,v=>aTe(v,!1));if(m&8)o=o.antecedent[0];else if(m&1024){let v=o.node.target,E=v.antecedent;v.antecedent=o.node.antecedents;let D=aTe(o.antecedent,!1);return v.antecedent=E,D}else return!!(m&1)}}}function v$e(o){switch(o.kind){case 110:return!0;case 80:if(!lP(o)){let m=Fm(o);return F7(m)||bZ(m)&&!SZ(m)||!!m.valueDeclaration&&bu(m.valueDeclaration)}break;case 212:case 213:return v$e(o.expression)&&Vv(Ki(o).resolvedSymbol||ye);case 207:case 208:let p=bS(o.parent);return wa(p)||Y4e(p)?!S$e(p):Oo(p)&&JZ(p)}return!1}function T2(o,p,m=p,v,E=(D=>(D=Ci(o,KR))==null?void 0:D.flowNode)()){let D,R=!1,K=0;if(sa)return Et;if(!E)return p;os++;let se=oi,ce=SN(Me(E));oi=se;let fe=ro(ce)&256&&sCt(o)?uf:qse(ce);if(fe===gn||o.parent&&o.parent.kind===236&&!(fe.flags&131072)&&M0(fe,2097152).flags&131072)return p;return fe;function Ue(){return R?D:(R=!0,D=Bse(o,p,m,v))}function Me(vr){var hn;if(K===2e3)return(hn=hi)==null||hn.instant(hi.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:vr.id}),sa=!0,NEr(o),Et;K++;let Un;for(;;){let ui=vr.flags;if(ui&4096){for(let No=se;No=0&&Un.parameterIndex!(No.flags&163840)):hn.kind===222&&gN(hn.expression,o)&&(ui=Rl(ui,vr.node,No=>!(No.flags&131072||No.flags&128&&No.value==="undefined"))));let Vi=Fa(hn,ui);Vi&&(ui=Ps(ui,Vi,vr.node))}return JM(ui,qM(Un))}function sn(vr){let hn=[],Un=!1,ui=!1,Vi;for(let No of vr.antecedent){if(!Vi&&No.flags&128&&No.node.clauseStart===No.node.clauseEnd){Vi=No;continue}let wc=Me(No),Nc=SN(wc);if(Nc===p&&p===m)return Nc;Zc(hn,Nc),Xq(Nc,m)||(Un=!0),qM(wc)&&(ui=!0)}if(Vi){let No=Me(Vi),wc=SN(No);if(!(wc.flags&131072)&&!un(hn,wc)&&!eAt(Vi.node.switchStatement)){if(wc===p&&p===m)return wc;hn.push(wc),Xq(wc,m)||(Un=!0),qM(No)&&(ui=!0)}}return JM(vi(hn,Un?2:1),ui)}function rn(vr){let hn=_$e(vr),Un=yM[hn]||(yM[hn]=new Map),ui=Ue();if(!ui)return p;let Vi=Un.get(ui);if(Vi)return Vi;for(let Rd=Fi;Rd<$n;Rd++)if(F3[Rd]===vr&&r7[Rd]===ui&&UP[Rd].length)return JM(vi(UP[Rd],1),!0);let No=[],wc=!1,Nc;for(let Rd of vr.antecedent){let Lm;if(!Nc)Lm=Nc=Me(Rd);else{F3[$n]=vr,r7[$n]=ui,UP[$n]=No,$n++;let Pw=ka;ka=void 0,Lm=Me(Rd),ka=Pw,$n--;let Nw=Un.get(ui);if(Nw)return Nw}let Yh=SN(Lm);if(Zc(No,Yh),Xq(Yh,m)||(wc=!0),Yh===p)break}let yu=vi(No,wc?2:1);return qM(Nc)?JM(yu,!0):(Un.set(ui,yu),yu)}function vi(vr,hn){if(wEr(vr))return y$e(Do(Cr(vr,AEr)));let Un=m$e(Do(Zo(vr,qse),hn));return Un!==p&&Un.flags&p.flags&1048576&&__(Un.types,p.types)?p:Un}function wo(vr){if($s(o)||mC(o)||r1(o)){if(ct(vr)){let hn=Fm(vr),Un=Wt(hn).valueDeclaration;if(Un&&(Vc(Un)||wa(Un))&&o===Un.parent&&!Un.initializer&&!Un.dotDotDotToken)return Un}}else if(wu(vr)){if(Ff(o,vr.expression))return vr}else if(ct(vr)){let hn=Fm(vr);if(F7(hn)){let Un=hn.valueDeclaration;if(Oo(Un)&&!Un.type&&Un.initializer&&wu(Un.initializer)&&Ff(o,Un.initializer.expression))return Un.initializer;if(Vc(Un)&&!Un.initializer){let ui=Un.parent.parent;if(Oo(ui)&&!ui.type&&ui.initializer&&(ct(ui.initializer)||wu(ui.initializer))&&Ff(o,ui.initializer))return Un}}}}function Fa(vr,hn){if(p.flags&1048576||hn.flags&1048576){let Un=wo(vr);if(Un){let ui=hN(Un);if(ui){let Vi=p.flags&1048576&&Xq(hn,p)?p:hn;if(Zq(Vi,ui))return Un}}}}function ho(vr,hn,Un){let ui=hN(hn);if(ui===void 0)return vr;let Vi=xm(hn),No=be&&(Vi||t3e(hn))&&s_(vr,98304),wc=en(No?M0(vr,2097152):vr,ui);if(!wc)return vr;wc=No&&Vi?nD(wc):wc;let Nc=Un(wc);return G_(vr,yu=>{let Rd=_o(yu,ui)||er;return!(Rd.flags&131072)&&!(Nc.flags&131072)&&Ise(Nc,Rd)})}function pa(vr,hn,Un,ui,Vi){if((Un===37||Un===38)&&vr.flags&1048576){let No=$se(vr);if(No&&No===hN(hn)){let wc=Use(vr,Kf(ui));if(wc)return Un===(Vi?37:38)?wc:$v(en(wc,No)||er)?nTe(vr,wc):vr}}return ho(vr,hn,No=>ha(No,Un,ui,Vi))}function Ps(vr,hn,Un){if(Un.clauseStartUse(vr,No)||er));if(Vi!==er)return Vi}return ho(vr,hn,ui=>$u(ui,Un))}function El(vr,hn,Un){if(Ff(o,hn))return yN(vr,Un?4194304:8388608);be&&Un&&gN(hn,o)&&(vr=yN(vr,2097152));let ui=Fa(hn,vr);return ui?ho(vr,ui,Vi=>M0(Vi,Un?4194304:8388608)):vr}function qa(vr,hn,Un){let ui=vc(vr,hn);return ui?!!(ui.flags&16777216||Fp(ui)&48)||Un:!!D7(vr,hn)||!Un}function rp(vr,hn,Un){let ui=x0(hn);if(j0(vr,No=>qa(No,ui,!0)))return G_(vr,No=>qa(No,ui,Un));if(Un){let No=Rxr();if(No)return Ac([vr,MM(No,[hn,er])])}return vr}function Zp(vr,hn,Un,ui,Vi){return Vi=Vi!==(Un.kind===112)!=(ui!==38&&ui!==36),by(vr,hn,Vi)}function Rm(vr,hn,Un){switch(hn.operatorToken.kind){case 64:case 76:case 77:case 78:return El(by(vr,hn.right,Un),hn.left,Un);case 35:case 36:case 37:case 38:let ui=hn.operatorToken.kind,Vi=u6(hn.left),No=u6(hn.right);if(Vi.kind===222&&Sl(No))return mi(vr,Vi,ui,No,Un);if(No.kind===222&&Sl(Vi))return mi(vr,No,ui,Vi,Un);if(Ff(o,Vi))return ha(vr,ui,No,Un);if(Ff(o,No))return ha(vr,ui,Vi,Un);be&&(gN(Vi,o)?vr=ei(vr,ui,No,Un):gN(No,o)&&(vr=ei(vr,ui,Vi,Un)));let wc=Fa(Vi,vr);if(wc)return pa(vr,wc,ui,No,Un);let Nc=Fa(No,vr);if(Nc)return pa(vr,Nc,ui,Vi,Un);if(Ul(Vi))return n0(vr,ui,No,Un);if(Ul(No))return n0(vr,ui,Vi,Un);if(oU(No)&&!wu(Vi))return Zp(vr,Vi,No,ui,Un);if(oU(Vi)&&!wu(No))return Zp(vr,No,Vi,ui,Un);break;case 104:return gp(vr,hn,Un);case 103:if(Aa(hn.left))return Mn(vr,hn,Un);let yu=u6(hn.right);if(mZ(vr)&&wu(o)&&Ff(o.expression,yu)){let Rd=Kf(hn.left);if(b0(Rd)&&hN(o)===x0(Rd))return M0(vr,Un?524288:65536)}if(Ff(o,yu)){let Rd=Kf(hn.left);if(b0(Rd))return rp(vr,Rd,Un)}break;case 28:return by(vr,hn.right,Un);case 56:return Un?by(by(vr,hn.left,!0),hn.right,!0):Do([by(vr,hn.left,!1),by(vr,hn.right,!1)]);case 57:return Un?Do([by(vr,hn.left,!0),by(vr,hn.right,!0)]):by(by(vr,hn.left,!1),hn.right,!1)}return vr}function Mn(vr,hn,Un){let ui=u6(hn.right);if(!Ff(o,ui))return vr;$.assertNode(hn.left,Aa);let Vi=TTe(hn.left);if(Vi===void 0)return vr;let No=Vi.parent,wc=fd($.checkDefined(Vi.valueDeclaration,"should always have a declaration"))?di(No):Tu(No);return $0(vr,wc,Un,!0)}function ei(vr,hn,Un,ui){let Vi=hn===35||hn===37,No=hn===35||hn===36?98304:32768,wc=Kf(Un);return Vi!==ui&&bg(wc,yu=>!!(yu.flags&No))||Vi===ui&&bg(wc,yu=>!(yu.flags&(3|No)))?yN(vr,2097152):vr}function ha(vr,hn,Un,ui){if(vr.flags&1)return vr;(hn===36||hn===38)&&(ui=!ui);let Vi=Kf(Un),No=hn===35||hn===36;if(Vi.flags&98304){if(!be)return vr;let wc=No?ui?262144:2097152:Vi.flags&65536?ui?131072:1048576:ui?65536:524288;return yN(vr,wc)}if(ui){if(!No&&(vr.flags&2||j0(vr,Vb))){if(Vi.flags&469893116||Vb(Vi))return Vi;if(Vi.flags&524288)return bn}let wc=G_(vr,Nc=>Ise(Nc,Vi)||No&&N2r(Nc,Vi));return oCt(wc,Vi)}return $v(Vi)?G_(vr,wc=>!(Ekt(wc)&&Ise(wc,Vi))):vr}function mi(vr,hn,Un,ui,Vi){(Un===36||Un===38)&&(Vi=!Vi);let No=u6(hn.expression);if(!Ff(o,No)){be&&gN(No,o)&&Vi===(ui.text!=="undefined")&&(vr=yN(vr,2097152));let wc=Fa(No,vr);return wc?ho(vr,wc,Nc=>fs(Nc,ui,Vi)):vr}return fs(vr,ui,Vi)}function fs(vr,hn,Un){return Un?hf(vr,hn.text):yN(vr,A8e.get(hn.text)||32768)}function Rl(vr,{switchStatement:hn,clauseStart:Un,clauseEnd:ui},Vi){return Un!==ui&&ht(rTe(hn).slice(Un,ui),Vi)?M0(vr,2097152):vr}function $u(vr,{switchStatement:hn,clauseStart:Un,clauseEnd:ui}){let Vi=rTe(hn);if(!Vi.length)return vr;let No=Vi.slice(Un,ui),wc=Un===ui||un(No,tn);if(vr.flags&2&&!wc){let Lm;for(let Yh=0;YhIse(Nc,Lm)),Nc);if(!wc)return yu;let Rd=G_(vr,Lm=>!(Ekt(Lm)&&un(Vi,Lm.flags&32768?Ne:ih(E2r(Lm)))));return yu.flags&131072?Rd:Do([yu,Rd])}function hf(vr,hn){switch(hn){case"string":return Hc(vr,Mt,1);case"number":return Hc(vr,Ir,2);case"bigint":return Hc(vr,ii,4);case"boolean":return Hc(vr,_r,8);case"symbol":return Hc(vr,wr,16);case"object":return vr.flags&1?vr:Do([Hc(vr,bn,32),Hc(vr,mr,131072)]);case"function":return vr.flags&1?vr:Hc(vr,Vn,64);case"undefined":return Hc(vr,Ne,65536)}return Hc(vr,bn,128)}function Hc(vr,hn,Un){return hp(vr,ui=>QS(ui,hn,tp)?Uv(ui,Un)?ui:tn:c6(hn,ui)?hn:Uv(ui,Un)?Ac([ui,hn]):tn)}function y_(vr,{switchStatement:hn,clauseStart:Un,clauseEnd:ui}){let Vi=nCt(hn);if(!Vi)return vr;let No=hr(hn.caseBlock.clauses,yu=>yu.kind===298);if(Un===ui||No>=Un&&NozM(Rd,yu)===yu)}let Nc=Vi.slice(Un,ui);return Do(Cr(Nc,yu=>yu?hf(vr,yu):tn))}function R_(vr,{switchStatement:hn,clauseStart:Un,clauseEnd:ui}){let Vi=hr(hn.caseBlock.clauses,Nc=>Nc.kind===298),No=Un===ui||Vi>=Un&&ViNc.kind===297?by(vr,Nc.expression,!0):tn))}function Ul(vr){return(no(vr)&&Zi(vr.name)==="constructor"||mu(vr)&&Sl(vr.argumentExpression)&&vr.argumentExpression.text==="constructor")&&Ff(o,vr.expression)}function n0(vr,hn,Un,ui){if(ui?hn!==35&&hn!==37:hn!==36&&hn!==38)return vr;let Vi=Kf(Un);if(!HUe(Vi)&&!Mv(Vi))return vr;let No=vc(Vi,"prototype");if(!No)return vr;let wc=di(No),Nc=Mi(wc)?void 0:wc;if(!Nc||Nc===br||Nc===Vn)return vr;if(Mi(vr))return Nc;return G_(vr,Rd=>yu(Rd,Nc));function yu(Rd,Lm){return Rd.flags&524288&&ro(Rd)&1||Lm.flags&524288&&ro(Lm)&1?Rd.symbol===Lm.symbol:c6(Rd,Lm)}}function gp(vr,hn,Un){let ui=u6(hn.left);if(!Ff(o,ui))return Un&&be&&gN(ui,o)?yN(vr,2097152):vr;let Vi=hn.right,No=Kf(Vi);if(!Ew(No,br))return vr;let wc=Vse(hn),Nc=wc&&F0(wc);if(Nc&&Nc.kind===1&&Nc.parameterIndex===0)return $0(vr,Nc.type,Un,!0);if(!Ew(No,Vn))return vr;let yu=hp(No,c_);return Mi(vr)&&(yu===br||yu===Vn)||!Un&&!(yu.flags&524288&&!Vb(yu))?vr:$0(vr,yu,Un,!0)}function c_(vr){let hn=en(vr,"prototype");if(hn&&!Mi(hn))return hn;let Un=Gs(vr,1);return Un.length?Do(Cr(Un,ui=>Tl(nZ(ui)))):kc}function $0(vr,hn,Un,ui){let Vi=vr.flags&1048576?`N${ff(vr)},${ff(hn)},${(Un?1:0)|(ui?2:0)}`:void 0;return Sh(Vi)??h1(Vi,uJ(vr,hn,Un,ui))}function uJ(vr,hn,Un,ui){if(!Un){if(vr===hn)return tn;if(ui)return G_(vr,yu=>!Ew(yu,hn));vr=vr.flags&2?Yc:vr;let Nc=$0(vr,hn,!0,!1);return m$e(G_(vr,yu=>!Xq(yu,Nc)))}if(vr.flags&3||vr===hn)return hn;let Vi=ui?Ew:c6,No=vr.flags&1048576?$se(vr):void 0,wc=hp(hn,Nc=>{let yu=No&&en(Nc,No),Rd=yu&&Use(vr,yu),Lm=hp(Rd||vr,ui?Yh=>Ew(Yh,Nc)?Yh:Ew(Nc,Yh)?Nc:tn:Yh=>Gq(Yh,Nc)?Yh:Gq(Nc,Yh)?Nc:c6(Yh,Nc)?Yh:c6(Nc,Yh)?Nc:tn);return Lm.flags&131072?hp(vr,Yh=>s_(Yh,465829888)&&Vi(Nc,Gf(Yh)||er)?Ac([Yh,Nc]):tn):Lm});return wc.flags&131072?c6(hn,vr)?hn:tc(vr,hn)?vr:tc(hn,vr)?hn:Ac([vr,hn]):wc}function VZ(vr,hn,Un){if(Hkt(hn,o)){let ui=Un||!O4(hn)?Vse(hn):void 0,Vi=ui&&F0(ui);if(Vi&&(Vi.kind===0||Vi.kind===1))return pJ(vr,Vi,hn,Un)}if(mZ(vr)&&wu(o)&&no(hn.expression)){let ui=hn.expression;if(Ff(o.expression,u6(ui.expression))&&ct(ui.name)&&ui.name.escapedText==="hasOwnProperty"&&hn.arguments.length===1){let Vi=hn.arguments[0];if(Sl(Vi)&&hN(o)===dp(Vi.text))return M0(vr,Un?524288:65536)}}return vr}function pJ(vr,hn,Un,ui){if(hn.type&&!(Mi(vr)&&(hn.type===br||hn.type===Vn))){let Vi=PEr(hn,Un);if(Vi){if(Ff(o,Vi))return $0(vr,hn.type,ui,!1);be&&gN(Vi,o)&&(ui&&!Uv(hn.type,65536)||!ui&&bg(hn.type,tce))&&(vr=yN(vr,2097152));let No=Fa(Vi,vr);if(No)return ho(vr,No,wc=>$0(wc,hn.type,ui,!1))}}return vr}function by(vr,hn,Un){if(Bte(hn)||wi(hn.parent)&&(hn.parent.operatorToken.kind===61||hn.parent.operatorToken.kind===78)&&hn.parent.left===hn)return WZ(vr,hn,Un);switch(hn.kind){case 80:if(!Ff(o,hn)&&F<5){let ui=Fm(hn);if(F7(ui)){let Vi=ui.valueDeclaration;if(Vi&&Oo(Vi)&&!Vi.type&&Vi.initializer&&v$e(o)){F++;let No=by(vr,Vi.initializer,Un);return F--,No}}}case 110:case 108:case 212:case 213:return El(vr,hn,Un);case 214:return VZ(vr,hn,Un);case 218:case 236:case 239:return by(vr,hn.expression,Un);case 227:return Rm(vr,hn,Un);case 225:if(hn.operator===54)return by(vr,hn.operand,!Un);break}return vr}function WZ(vr,hn,Un){if(Ff(o,hn))return yN(vr,Un?2097152:262144);let ui=Fa(hn,vr);return ui?ho(vr,ui,Vi=>M0(Vi,Un?2097152:262144)):vr}}function OEr(o,p){if(o=Wt(o),(p.kind===80||p.kind===81)&&(FU(p)&&(p=p.parent),Tb(p)&&(!lC(p)||YO(p)))){let m=Wxe(YO(p)&&p.kind===212?xTe(p,void 0,!0):Kf(p));if(Wt(Ki(p).resolvedSymbol)===o)return m}return Eb(p)&&hS(p.parent)&&e6(p.parent)?oxe(p.parent.symbol):Ehe(p)&&YO(p.parent)?GE(o):Lv(o)}function eJ(o){return fn(o.parent,p=>Rs(p)&&!uA(p)||p.kind===269||p.kind===308||p.kind===173)}function FEr(o){return(o.lastAssignmentPos!==void 0||SZ(o)&&o.lastAssignmentPos!==void 0)&&o.lastAssignmentPos<0}function SZ(o){return!lCt(o,void 0)}function lCt(o,p){let m=fn(o.valueDeclaration,sTe);if(!m)return!1;let v=Ki(m);return v.flags&131072||(v.flags|=131072,REr(m)||pCt(m)),!o.lastAssignmentPos||p&&Math.abs(o.lastAssignmentPos)p.kind!==233&&uCt(p.name))}function REr(o){return!!fn(o.parent,p=>sTe(p)&&!!(Ki(p).flags&131072))}function sTe(o){return lu(o)||Ta(o)}function pCt(o){switch(o.kind){case 80:let p=cC(o);if(p!==0){let E=Fm(o),D=p===1||E.lastAssignmentPos!==void 0&&E.lastAssignmentPos<0;if(bZ(E)){if(E.lastAssignmentPos===void 0||Math.abs(E.lastAssignmentPos)!==Number.MAX_VALUE){let R=fn(o,sTe),K=fn(E.valueDeclaration,sTe);E.lastAssignmentPos=R===K?LEr(o,E.valueDeclaration):Number.MAX_VALUE}D&&E.lastAssignmentPos>0&&(E.lastAssignmentPos*=-1)}}return;case 282:let m=o.parent.parent,v=o.propertyName||o.name;if(!o.isTypeOnly&&!m.isTypeOnly&&!m.moduleSpecifier&&v.kind!==11){let E=jp(v,111551,!0,!0);if(E&&bZ(E)){let D=E.lastAssignmentPos!==void 0&&E.lastAssignmentPos<0?-1:1;E.lastAssignmentPos=D*Number.MAX_VALUE}}return;case 265:case 266:case 267:return}Wo(o)||Is(o,pCt)}function LEr(o,p){let m=o.pos;for(;o&&o.pos>p.pos;){switch(o.kind){case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 259:case 264:m=o.end}o=o.parent}return m}function F7(o){return o.flags&3&&(j$e(o)&6)!==0}function bZ(o){let p=o.valueDeclaration&&bS(o.valueDeclaration);return!!p&&(wa(p)||Oo(p)&&(TP(p.parent)||_Ct(p)))}function _Ct(o){return!!(o.parent.flags&1)&&!(Ra(o)&32||o.parent.parent.kind===244&&uE(o.parent.parent.parent))}function MEr(o){let p=Ki(o);if(p.parameterInitializerContainsUndefined===void 0){if(!WS(o,8))return nN(o.symbol),!0;let m=!!Uv(rJ(o,0),16777216);if(!kt())return nN(o.symbol),!0;p.parameterInitializerContainsUndefined??(p.parameterInitializerContainsUndefined=m)}return p.parameterInitializerContainsUndefined}function jEr(o,p){return be&&p.kind===170&&p.initializer&&Uv(o,16777216)&&!MEr(p)?M0(o,524288):o}function BEr(o,p){let m=p.parent;return m.kind===212||m.kind===167||m.kind===214&&m.expression===p||m.kind===215&&m.expression===p||m.kind===213&&m.expression===p&&!(j0(o,fCt)&&pN(Kf(m.argumentExpression)))}function dCt(o){return o.flags&2097152?Pt(o.types,dCt):!!(o.flags&465829888&&HS(o).flags&1146880)}function fCt(o){return o.flags&2097152?Pt(o.types,fCt):!!(o.flags&465829888&&!s_(HS(o),98304))}function $Er(o,p){let m=(ct(o)||no(o)||mu(o))&&!((Tv(o.parent)||u3(o.parent))&&o.parent.tagName===o)&&(p&&p&32?Eh(o,8):Eh(o,void 0));return m&&!xw(m)}function b$e(o,p,m){return jM(o)&&(o=o.baseType),!(m&&m&2)&&j0(o,dCt)&&(BEr(o,p)||$Er(p,m))?hp(o,HS):o}function mCt(o){return!!fn(o,p=>{let m=p.parent;return m===void 0?"quit":Xu(m)?m.expression===p&&ru(p):Cm(m)?m.name===p||m.propertyName===p:!1})}function R7(o,p,m,v){if(We&&!(o.flags&33554432&&!Zm(o)&&!ps(o)))switch(p){case 1:return cTe(o);case 2:return hCt(o,m,v);case 3:return gCt(o);case 4:return x$e(o);case 5:return yCt(o);case 6:return vCt(o);case 7:return SCt(o);case 8:return bCt(o);case 0:{if(ct(o)&&(Tb(o)||im(o.parent)||gd(o.parent)&&o.parent.moduleReference===o)&&kCt(o)){if(_G(o.parent)&&(no(o.parent)?o.parent.expression:o.parent.left)!==o)return;cTe(o);return}if(_G(o)){let E=o;for(;_G(E);){if(vS(E))return;E=E.parent}return hCt(o)}return Xu(o)?gCt(o):Em(o)||K1(o)?x$e(o):gd(o)?z4(o)||HTe(o)?vCt(o):void 0:Cm(o)?SCt(o):((lu(o)||G1(o))&&yCt(o),!Q.emitDecoratorMetadata||!kP(o)||!By(o)||!o.modifiers||!OG(_e,o,o.parent,o.parent.parent)?void 0:bCt(o))}default:$.assertNever(p,`Unhandled reference hint: ${p}`)}}function cTe(o){let p=Fm(o);p&&p!==Se&&p!==ye&&!lP(o)&&Hse(p,o)}function hCt(o,p,m){let v=no(o)?o.expression:o.left;if(pC(v)||!ct(v))return;let E=Fm(v);if(!E||E===ye)return;if(a1(Q)||dC(Q)&&mCt(o)){Hse(E,o);return}let D=m||Bp(v);if(Mi(D)||D===lr){Hse(E,o);return}let R=p;if(!R&&!m){let K=no(o)?o.name:o.right,se=Aa(K)&&rce(K.escapedText,K),ce=cC(o),fe=nh(ce!==0||z$e(o)?ry(D):D);R=Aa(K)?se&&ETe(fe,se)||void 0:vc(fe,K.escapedText)}R&&(zZ(R)||R.flags&8&&o.parent.kind===307)||Hse(E,o)}function gCt(o){if(ct(o.expression)){let p=o.expression,m=Wt(jp(p,-1,!0,!0,o));m&&Hse(m,p)}}function x$e(o){if(!STe(o)){let p=il&&Q.jsx===2?x.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:void 0,m=X1(o),v=Em(o)?o.tagName:o,E=Q.jsx!==1&&Q.jsx!==3,D;if(K1(o)&&m==="null"||(D=$t(v,m,E?111551:111167,p,!0)),D&&(D.isReferenced=-1,We&&D.flags&2097152&&!Fv(D)&&lTe(D)),K1(o)){let R=Pn(o),K=QUe(R);if(K){let se=_h(K).escapedText;$t(v,se,E?111551:111167,p,!0)}}}}function yCt(o){if(re<2&&A_(o)&2){let p=jg(o);UEr(p)}}function vCt(o){ko(o,32)&&xCt(o)}function SCt(o){if(!o.parent.parent.moduleSpecifier&&!o.isTypeOnly&&!o.parent.parent.isTypeOnly){let p=o.propertyName||o.name;if(p.kind===11)return;let m=$t(p,p.escapedText,2998271,void 0,!0);if(!(m&&(m===ke||m===_t||m.declarations&&uE(ir(m.declarations[0]))))){let v=m&&(m.flags&2097152?df(m):m);(!v||Zh(v)&111551)&&(xCt(o),cTe(p))}return}}function bCt(o){if(Q.emitDecoratorMetadata){let p=wt(o.modifiers,hd);if(!p)return;switch(Fd(p,16),o.kind){case 264:let m=Rx(o);if(m)for(let R of m.parameters)VM(UTe(R));break;case 178:case 179:let v=o.kind===178?179:178,E=Qu($i(o),v);VM(e6(o)||E&&e6(E));break;case 175:for(let R of o.parameters)VM(UTe(R));VM(jg(o));break;case 173:VM(X_(o));break;case 170:VM(UTe(o));let D=o.parent;for(let R of D.parameters)VM(UTe(R));VM(jg(D));break}}}function Hse(o,p){if(We&&q3(o,111551)&&!KO(p)){let m=df(o);Zh(o,!0)&1160127&&(a1(Q)||dC(Q)&&mCt(p)||!zZ(Wt(m)))&&lTe(o)}}function lTe(o){$.assert(We);let p=io(o);if(!p.referenced){p.referenced=!0;let m=Qh(o);if(!m)return $.fail();if(z4(m)&&Zh(O_(o))&111551){let v=_h(m.moduleReference);cTe(v)}}}function xCt(o){let p=$i(o),m=df(p);m&&(m===ye||Zh(p,!0)&111551&&!zZ(m))&&lTe(p)}function TCt(o,p){if(!o)return;let m=_h(o),v=(o.kind===80?788968:1920)|2097152,E=$t(m,m.escapedText,v,void 0,!0);if(E&&E.flags&2097152){if(We&&ln(E)&&!zZ(df(E))&&!Fv(E))lTe(E);else if(p&&a1(Q)&&Km(Q)>=5&&!ln(E)&&!Pt(E.declarations,cE)){let D=gt(o,x.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),R=wt(E.declarations||j,jE);R&&ac(D,xi(R,x._0_was_imported_here,Zi(m)))}}}function UEr(o){TCt(o&&NG(o),!1)}function VM(o){let p=AUe(o);p&&uh(p)&&TCt(p,!0)}function zEr(o,p){var m;let v=di(o),E=o.valueDeclaration;if(E){if(Vc(E)&&!E.initializer&&!E.dotDotDotToken&&E.parent.elements.length>=2){let D=E.parent.parent,R=bS(D);if(R.kind===261&&f6(R)&6||R.kind===170){let K=Ki(D);if(!(K.flags&4194304)){K.flags|=4194304;let se=zo(D,0),ce=se&&hp(se,HS);if(K.flags&=-4194305,ce&&ce.flags&1048576&&!(R.kind===170&&S$e(R))){let fe=E.parent,Ue=T2(fe,ce,ce,void 0,p.flowNode);return Ue.flags&131072?tn:KC(E,Ue,!0)}}}}if(wa(E)&&!E.type&&!E.initializer&&!E.dotDotDotToken){let D=E.parent;if(D.parameters.length>=2&&Fxe(D)){let R=TZ(D);if(R&&R.parameters.length===1&&Am(R)){let K=$q(Oa(di(R.parameters[0]),(m=p6(D))==null?void 0:m.nonFixingMapper));if(K.flags&1048576&&bg(K,Gc)&&!Pt(D.parameters,S$e)){let se=T2(D,K,K,void 0,p.flowNode),ce=D.parameters.indexOf(E)-(cP(D)?1:0);return ey(se,Bv(ce))}}}}}return v}function ECt(o,p){if(lP(o))return;if(p===Se){if(V$e(o,!0)){gt(o,x.arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks);return}let D=My(o);if(D)for(re<2&&(D.kind===220?gt(o,x.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):ko(D,1024)&>(o,x.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),Ki(D).flags|=512;D&&Iu(D);)D=My(D),D&&(Ki(D).flags|=512);return}let m=Wt(p),v=UUe(m,o);th(v)&&yBe(o,v)&&v.declarations&&g1(o,v.declarations,o.escapedText);let E=m.valueDeclaration;if(E&&m.flags&32&&Co(E)&&E.name!==o){let D=Hm(o,!1,!1);for(;D.kind!==308&&D.parent!==E;)D=Hm(D,!1,!1);D.kind!==308&&(Ki(E).flags|=262144,Ki(D).flags|=262144,Ki(o).flags|=536870912)}GEr(o,p)}function qEr(o,p){if(lP(o))return Kse(o);let m=Fm(o);if(m===ye)return Et;if(ECt(o,m),m===Se)return V$e(o)?Et:di(m);kCt(o)&&R7(o,1);let v=Wt(m),E=v.valueDeclaration,D=E;if(E&&E.kind===209&&un(m1,E.parent)&&fn(o,rn=>rn===E.parent))return gi;let R=zEr(v,o),K=cC(o);if(K){if(!(v.flags&3)&&!(Ei(o)&&v.flags&512)){let rn=v.flags&384?x.Cannot_assign_to_0_because_it_is_an_enum:v.flags&32?x.Cannot_assign_to_0_because_it_is_a_class:v.flags&1536?x.Cannot_assign_to_0_because_it_is_a_namespace:v.flags&16?x.Cannot_assign_to_0_because_it_is_a_function:v.flags&2097152?x.Cannot_assign_to_0_because_it_is_an_import:x.Cannot_assign_to_0_because_it_is_not_a_variable;return gt(o,rn,Ua(m)),Et}if(Vv(v))return v.flags&3?gt(o,x.Cannot_assign_to_0_because_it_is_a_constant,Ua(m)):gt(o,x.Cannot_assign_to_0_because_it_is_a_read_only_property,Ua(m)),Et}let se=v.flags&2097152;if(v.flags&3){if(K===1)return Kme(o)?S2(R):R}else if(se)E=Qh(m);else return R;if(!E)return R;R=b$e(R,o,p);let ce=bS(E).kind===170,fe=eJ(E),Ue=eJ(o),Me=Ue!==fe,yt=o.parent&&o.parent.parent&&qx(o.parent)&&g$e(o.parent.parent),Jt=m.flags&134217728,Xt=R===Zt||R===uf,kr=Xt&&o.parent.kind===236;for(;Ue!==fe&&(Ue.kind===219||Ue.kind===220||mre(Ue))&&(F7(v)&&R!==uf||bZ(v)&&lCt(v,o));)Ue=eJ(Ue);let on=D&&Oo(D)&&!D.initializer&&!D.exclamationToken&&_Ct(D)&&!FEr(m),Hn=ce||se||Me&&!on||yt||Jt||JEr(o,E)||R!==Zt&&R!==uf&&(!be||(R.flags&16387)!==0||KO(o)||u$e(o)||o.parent.kind===282)||o.parent.kind===236||E.kind===261&&E.exclamationToken||E.flags&33554432,fi=kr?Ne:Hn?ce?jEr(R,E):R:Xt?Ne:nD(R),sn=kr?b2(T2(o,R,fi,Ue)):T2(o,R,fi,Ue);if(!sCt(o)&&(R===Zt||R===uf)){if(sn===Zt||sn===uf)return Fe&&(gt(cs(E),x.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Ua(m),ri(sn)),gt(o,x.Variable_0_implicitly_has_an_1_type,Ua(m),ri(sn))),$Z(sn)}else if(!Hn&&!UM(R)&&UM(sn))return gt(o,x.Variable_0_is_used_before_being_assigned,Ua(m)),R;return K?S2(sn):sn}function JEr(o,p){if(Vc(p)){let m=fn(o,Vc);return m&&bS(m)===bS(p)}}function kCt(o){var p;let m=o.parent;if(m){if(no(m)&&m.expression===o||Cm(m)&&m.isTypeOnly)return!1;let v=(p=m.parent)==null?void 0:p.parent;if(v&&P_(v)&&v.isTypeOnly)return!1}return!0}function VEr(o,p){return!!fn(o,m=>m===p?"quit":Rs(m)||m.parent&&ps(m.parent)&&!fd(m.parent)&&m.parent.initializer===m)}function WEr(o,p){return fn(o,m=>m===p?"quit":m===p.initializer||m===p.condition||m===p.incrementor||m===p.statement)}function T$e(o){return fn(o,p=>!p||ihe(p)?"quit":rC(p,!1))}function GEr(o,p){if(re>=2||(p.flags&34)===0||!p.valueDeclaration||Ta(p.valueDeclaration)||p.valueDeclaration.parent.kind===300)return;let m=yv(p.valueDeclaration),v=VEr(o,m),E=T$e(m);if(E){if(v){let D=!0;if(kA(m)){let R=mA(p.valueDeclaration,262);if(R&&R.parent===m){let K=WEr(o.parent,m);if(K){let se=Ki(K);se.flags|=8192;let ce=se.capturedBlockScopeBindings||(se.capturedBlockScopeBindings=[]);Zc(ce,p),K===m.initializer&&(D=!1)}}}D&&(Ki(E).flags|=4096)}if(kA(m)){let D=mA(p.valueDeclaration,262);D&&D.parent===m&&KEr(o,m)&&(Ki(p.valueDeclaration).flags|=65536)}Ki(p.valueDeclaration).flags|=32768}v&&(Ki(p.valueDeclaration).flags|=16384)}function HEr(o,p){let m=Ki(o);return!!m&&un(m.capturedBlockScopeBindings,$i(p))}function KEr(o,p){let m=o;for(;m.parent.kind===218;)m=m.parent;let v=!1;if(lC(m))v=!0;else if(m.parent.kind===225||m.parent.kind===226){let E=m.parent;v=E.operator===46||E.operator===47}return v?!!fn(m,E=>E===p?"quit":E===p.statement):!1}function E$e(o,p){if(Ki(o).flags|=2,p.kind===173||p.kind===177){let m=p.parent;Ki(m).flags|=4}else Ki(p).flags|=4}function CCt(o){return U4(o)?o:Rs(o)?void 0:Is(o,CCt)}function k$e(o){let p=$i(o),m=Tu(p);return d2(m)===Ge}function DCt(o,p,m){let v=p.parent;aP(v)&&!k$e(v)&&KR(o)&&o.flowNode&&!aTe(o.flowNode,!1)&>(o,m)}function QEr(o,p){ps(p)&&fd(p)&&_e&&p.initializer&&Ao(p.initializer,o.pos)&&By(p.parent)&>(o,x.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function Kse(o){let p=KO(o),m=Hm(o,!0,!0),v=!1,E=!1;for(m.kind===177&&DCt(o,m,x.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(m.kind===220&&(m=Hm(m,!1,!E),v=!0),m.kind===168){m=Hm(m,!v,!1),E=!0;continue}break}if(QEr(o,m),E)gt(o,x.this_cannot_be_referenced_in_a_computed_property_name);else switch(m.kind){case 268:gt(o,x.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 267:gt(o,x.this_cannot_be_referenced_in_current_location);break}!p&&v&&re<2&&E$e(o,m);let D=C$e(o,!0,m);if(Be){let R=di(_t);if(D===R&&v)gt(o,x.The_containing_arrow_function_captures_the_global_value_of_this);else if(!D){let K=gt(o,x.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Ta(m)){let se=C$e(m);se&&se!==R&&ac(K,xi(m,x.An_outer_value_of_this_is_shadowed_by_this_container))}}}return D||at}function C$e(o,p=!0,m=Hm(o,!1,!1)){let v=Ei(o);if(Rs(m)&&(!w$e(o)||cP(m))){let E=ixe(m)||v&&YEr(m);if(!E){let D=XEr(m);if(v&&D){let R=Va(D).symbol;R&&R.members&&R.flags&16&&(E=Tu(R).thisType)}else XS(m)&&(E=Tu(cl(m.symbol)).thisType);E||(E=D$e(m))}if(E)return T2(o,E)}if(Co(m.parent)){let E=$i(m.parent),D=oc(m)?di(E):Tu(E).thisType;return T2(o,D)}if(Ta(m))if(m.commonJsModuleIndicator){let E=$i(m);return E&&di(E)}else{if(m.externalModuleIndicator)return Ne;if(p)return di(_t)}}function ZEr(o){let p=Hm(o,!1,!1);if(Rs(p)){let m=t0(p);if(m.thisParameter)return iTe(m.thisParameter)}if(Co(p.parent)){let m=$i(p.parent);return oc(p)?di(m):Tu(m).thisType}}function XEr(o){if(o.kind===219&&wi(o.parent)&&m_(o.parent)===3)return o.parent.left.expression.expression;if(o.kind===175&&o.parent.kind===211&&wi(o.parent.parent)&&m_(o.parent.parent)===6)return o.parent.parent.left.expression;if(o.kind===219&&o.parent.kind===304&&o.parent.parent.kind===211&&wi(o.parent.parent.parent)&&m_(o.parent.parent.parent)===6)return o.parent.parent.parent.left.expression;if(o.kind===219&&td(o.parent)&&ct(o.parent.name)&&(o.parent.name.escapedText==="value"||o.parent.name.escapedText==="get"||o.parent.name.escapedText==="set")&&Lc(o.parent.parent)&&Js(o.parent.parent.parent)&&o.parent.parent.parent.arguments[2]===o.parent.parent&&m_(o.parent.parent.parent)===9)return o.parent.parent.parent.arguments[0].expression;if(Ep(o)&&ct(o.name)&&(o.name.escapedText==="value"||o.name.escapedText==="get"||o.name.escapedText==="set")&&Lc(o.parent)&&Js(o.parent.parent)&&o.parent.parent.arguments[2]===o.parent&&m_(o.parent.parent)===9)return o.parent.parent.arguments[0].expression}function YEr(o){let p=d0(o);if(p&&p.typeExpression)return Sa(p.typeExpression);let m=zq(o);if(m)return Sw(m)}function ekr(o,p){return!!fn(o,m=>lu(m)?"quit":m.kind===170&&m.parent===p)}function uTe(o){let p=o.parent.kind===214&&o.parent.expression===o,m=IG(o,!0),v=m,E=!1,D=!1;if(!p){for(;v&&v.kind===220;)ko(v,1024)&&(D=!0),v=IG(v,!0),E=re<2;v&&ko(v,1024)&&(D=!0)}let R=0;if(!v||!fe(v)){let Ue=fn(o,Me=>Me===v?"quit":Me.kind===168);return Ue&&Ue.kind===168?gt(o,x.super_cannot_be_referenced_in_a_computed_property_name):p?gt(o,x.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!v||!v.parent||!(Co(v.parent)||v.parent.kind===211)?gt(o,x.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):gt(o,x.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Et}if(!p&&m.kind===177&&DCt(o,v,x.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),oc(v)||p?(R=32,!p&&re>=2&&re<=8&&(ps(v)||n_(v))&&c6e(o.parent,Ue=>{(!Ta(Ue)||Lg(Ue))&&(Ki(Ue).flags|=2097152)})):R=16,Ki(o).flags|=R,v.kind===175&&D&&(_g(o.parent)&&lC(o.parent)?Ki(v).flags|=256:Ki(v).flags|=128),E&&E$e(o.parent,v),v.parent.kind===211)return re<2?(gt(o,x.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Et):at;let K=v.parent;if(!aP(K))return gt(o,x.super_can_only_be_referenced_in_a_derived_class),Et;if(k$e(K))return p?Et:Ge;let se=Tu($i(K)),ce=se&&ov(se)[0];if(!ce)return Et;if(v.kind===177&&ekr(o,v))return gt(o,x.super_cannot_be_referenced_in_constructor_arguments),Et;return R===32?d2(se):Yg(ce,se.thisType);function fe(Ue){return p?Ue.kind===177:Co(Ue.parent)||Ue.parent.kind===211?oc(Ue)?Ue.kind===175||Ue.kind===174||Ue.kind===178||Ue.kind===179||Ue.kind===173||Ue.kind===176:Ue.kind===175||Ue.kind===174||Ue.kind===178||Ue.kind===179||Ue.kind===173||Ue.kind===172||Ue.kind===177:!1}}function ACt(o){return(o.kind===175||o.kind===178||o.kind===179)&&o.parent.kind===211?o.parent:o.kind===219&&o.parent.kind===304?o.parent.parent:void 0}function wCt(o){return ro(o)&4&&o.target===vy?Bu(o)[0]:void 0}function tkr(o){return hp(o,p=>p.flags&2097152?X(p.types,wCt):wCt(p))}function ICt(o,p){let m=o,v=p;for(;v;){let E=tkr(v);if(E)return E;if(m.parent.kind!==304)break;m=m.parent.parent,v=ww(m,void 0)}}function D$e(o){if(o.kind===220)return;if(Fxe(o)){let m=TZ(o);if(m){let v=m.thisParameter;if(v)return di(v)}}let p=Ei(o);if(Be||p){let m=ACt(o);if(m){let E=ww(m,void 0),D=ICt(m,E);return D?Oa(D,t$e(p6(m))):ry(E?b2(E):Bp(m))}let v=V1(o.parent);if(of(v)){let E=v.left;if(wu(E)){let{expression:D}=E;if(p&&ct(D)){let R=Pn(v);if(R.commonJsModuleIndicator&&Fm(D)===R.symbol)return}return ry(Bp(D))}}}}function PCt(o){let p=o.parent;if(!Fxe(p))return;let m=uA(p);if(m&&m.arguments){let E=ATe(m),D=p.parameters.indexOf(o);if(o.dotDotDotToken)return Y$e(E,D,E.length,at,void 0,0);let R=Ki(m),K=R.resolvedSignature;R.resolvedSignature=jn;let se=D0)return Fq(m.name,!0,!1)}}function okr(o,p){let m=My(o);if(m){let v=pTe(m,p);if(v){let E=A_(m);if(E&1){let D=(E&2)!==0;v.flags&1048576&&(v=G_(v,K=>!!rk(1,K,D)));let R=rk(1,v,(E&2)!==0);if(!R)return;v=R}if(E&2){let D=hp(v,E2);return D&&Do([D,ZDt(D)])}return v}}}function akr(o,p){let m=Eh(o,p);if(m){let v=E2(m);return v&&Do([v,ZDt(v)])}}function skr(o,p){let m=My(o);if(m){let v=A_(m),E=pTe(m,p);if(E){let D=(v&2)!==0;if(!o.asteriskToken&&E.flags&1048576&&(E=G_(E,R=>!!rk(1,R,D))),o.asteriskToken){let R=BUe(E,D),K=R?.yieldType??lr,se=Eh(o,p)??lr,ce=R?.nextType??er,fe=OTe(K,se,ce,!1);if(D){let Ue=OTe(K,se,ce,!0);return Do([fe,Ue])}return fe}return rk(0,E,D)}}}function w$e(o){let p=!1;for(;o.parent&&!Rs(o.parent);){if(wa(o.parent)&&(p||o.parent.initializer===o))return!0;Vc(o.parent)&&o.parent.initializer===o&&(p=!0),o=o.parent}return!1}function NCt(o,p){let m=!!(A_(p)&2),v=pTe(p,void 0);if(v)return rk(o,v,m)||void 0}function pTe(o,p){let m=RM(o);if(m)return m;let v=hTe(o);if(v&&!fxe(v)){let D=Tl(v),R=A_(o);return R&1?G_(D,K=>!!(K.flags&58998787)||TUe(K,R,void 0)):R&2?G_(D,K=>!!(K.flags&58998787)||!!oJ(K)):D}let E=uA(o);if(E)return Eh(E,p)}function OCt(o,p){let v=ATe(o).indexOf(p);return v===-1?void 0:I$e(o,v)}function I$e(o,p){if(Bh(o))return p===0?Mt:p===1?lEt(!1):at;let m=Ki(o).resolvedSignature===Di?Di:HM(o);if(Em(o)&&p===0)return mTe(m,o);let v=m.parameters.length-1;return Am(m)&&p>=v?ey(di(m.parameters[v]),Bv(p-v),256):qv(m,p)}function ckr(o){let p=dUe(o);return p?aN(p):void 0}function lkr(o,p){if(o.parent.kind===216)return OCt(o.parent,p)}function ukr(o,p){let m=o.parent,{left:v,operatorToken:E,right:D}=m;switch(E.kind){case 64:case 77:case 76:case 78:return o===D?_kr(m):void 0;case 57:case 61:let R=Eh(m,p);return o===D&&(R&&R.pattern||!R&&!I6e(m))?Kf(v):R;case 56:case 28:return o===D?Eh(m,p):void 0;default:return}}function pkr(o){if(gv(o)&&o.symbol)return o.symbol;if(ct(o))return Fm(o);if(no(o)){let m=Kf(o.expression);return Aa(o.name)?p(m,o.name):vc(m,o.name.escapedText)}if(mu(o)){let m=Bp(o.argumentExpression);if(!b0(m))return;let v=Kf(o.expression);return vc(v,x0(m))}return;function p(m,v){let E=rce(v.escapedText,v);return E&&ETe(m,E)}}function _kr(o){var p,m;let v=m_(o);switch(v){case 0:case 4:let E=pkr(o.left),D=E&&E.valueDeclaration;if(D&&(ps(D)||Zm(D))){let se=X_(D);return se&&Oa(Sa(se),io(E).mapper)||(ps(D)?D.initializer&&Kf(o.left):void 0)}return v===0?Kf(o.left):FCt(o);case 5:if(_Te(o,v))return FCt(o);if(!gv(o.left)||!o.left.symbol)return Kf(o.left);{let se=o.left.symbol.valueDeclaration;if(!se)return;let ce=Ba(o.left,wu),fe=X_(se);if(fe)return Sa(fe);if(ct(ce.expression)){let Ue=ce.expression,Me=$t(Ue,Ue.escapedText,111551,void 0,!0);if(Me){let yt=Me.valueDeclaration&&X_(Me.valueDeclaration);if(yt){let Jt=BT(ce);if(Jt!==void 0)return Aw(Sa(yt),Jt)}return}}return Ei(se)||se===o.left?void 0:Kf(o.left)}case 1:case 6:case 3:case 2:let R;v!==2&&(R=gv(o.left)?(p=o.left.symbol)==null?void 0:p.valueDeclaration:void 0),R||(R=(m=o.symbol)==null?void 0:m.valueDeclaration);let K=R&&X_(R);return K?Sa(K):void 0;case 7:case 8:case 9:return $.fail("Does not apply");default:return $.assertNever(v)}}function _Te(o,p=m_(o)){if(p===4)return!0;if(!Ei(o)||p!==5||!ct(o.left.expression))return!1;let m=o.left.expression.escapedText,v=$t(o.left,m,111551,void 0,!0,!0);return Sre(v?.valueDeclaration)}function FCt(o){if(!o.symbol)return Kf(o.left);if(o.symbol.valueDeclaration){let E=X_(o.symbol.valueDeclaration);if(E){let D=Sa(E);if(D)return D}}let p=Ba(o.left,wu);if(!r1(Hm(p.expression,!1,!1)))return;let m=Kse(p.expression),v=BT(p);return v!==void 0&&Aw(m,v)||void 0}function dkr(o){return!!(Fp(o)&262144&&!o.links.type&&he(o,0)>=0)}function P$e(o,p){if(o.flags&16777216){let m=o;return!!(S1(eD(m)).flags&131072)&&g2(tD(m))===g2(m.checkType)&&tc(p,m.extendsType)}return o.flags&2097152?Pt(o.types,m=>P$e(m,p)):!1}function Aw(o,p,m){return hp(o,v=>{if(v.flags&2097152){let E,D,R=!1;for(let K of v.types){if(!(K.flags&524288))continue;if(Xh(K)&&XQ(K)!==2){let ce=RCt(K,p,m);E=N$e(E,ce);continue}let se=LCt(K,p);if(!se){R||(D=jt(D,K));continue}R=!0,D=void 0,E=N$e(E,se)}if(D)for(let K of D){let se=MCt(K,p,m);E=N$e(E,se)}return E?E.length===1?E[0]:Ac(E):void 0}if(v.flags&524288)return Xh(v)&&XQ(v)!==2?RCt(v,p,m):LCt(v,p)??MCt(v,p,m)},!0)}function N$e(o,p){return p?jt(o,p.flags&1?er:p):o}function RCt(o,p,m){let v=m||Sg(oa(p)),E=e0(o);if(o.nameType&&P$e(o.nameType,v)||P$e(E,v))return;let D=Gf(E)||E;if(tc(v,D))return Axe(o,v)}function LCt(o,p){let m=vc(o,p);if(!(!m||dkr(m)))return x2(di(m),!!(m.flags&16777216))}function MCt(o,p,m){var v;if(Gc(o)&&$x(p)&&+p>=0){let E=Qq(o,o.target.fixedLength,0,!1,!0);if(E)return E}return(v=Vje(Wje(o),m||Sg(oa(p))))==null?void 0:v.type}function jCt(o,p){if($.assert(r1(o)),!(o.flags&67108864))return O$e(o,p)}function O$e(o,p){let m=o.parent,v=td(o)&&A$e(o,p);if(v)return v;let E=ww(m,p);if(E){if(OM(o)){let D=$i(o);return Aw(E,D.escapedName,io(D).nameType)}if($T(o)){let D=cs(o);if(D&&dc(D)){let R=Va(D.expression),K=b0(R)&&Aw(E,x0(R));if(K)return K}}if(o.name){let D=m2(o.name);return hp(E,R=>{var K;return(K=Vje(Wje(R),D))==null?void 0:K.type},!0)}}}function fkr(o){let p,m;for(let v=0;v{if(Gc(D)){if((v===void 0||pE)?m-p:0,K=R>0&&D.target.combinedFlags&12?iZ(D.target,3):0;return R>0&&R<=K?Bu(D)[ZE(D)-R]:Qq(D,v===void 0?D.target.fixedLength:Math.min(D.target.fixedLength,v),m===void 0||E===void 0?K:Math.min(K,m-E),!1,!0)}return(!v||pYE(se)?ey(se,Bv(R)):se,!0))}function gkr(o,p){let m=o.parent;return Gte(m)?Eh(o,p):PS(m)?hkr(m,o,p):void 0}function BCt(o,p){if(NS(o)){let m=ww(o.parent,p);return!m||Mi(m)?void 0:Aw(m,YU(o.name))}else return Eh(o.parent,p)}function Qse(o){switch(o.kind){case 11:case 9:case 10:case 15:case 229:case 112:case 97:case 106:case 80:case 157:return!0;case 212:case 218:return Qse(o.expression);case 295:return!o.expression||Qse(o.expression)}return!1}function ykr(o,p){let m=`D${hl(o)},${ff(p)}`;return Sh(m)??h1(m,cEr(p,o)??BBe(p,go(Cr(yr(o.properties,v=>v.symbol?v.kind===304?Qse(v.initializer)&&Zq(p,v.symbol.escapedName):v.kind===305?Zq(p,v.symbol.escapedName):!1:!1),v=>[()=>hce(v.kind===304?v.initializer:v.name),v.symbol.escapedName]),Cr(yr($l(p),v=>{var E;return!!(v.flags&16777216)&&!!((E=o?.symbol)!=null&&E.members)&&!o.symbol.members.has(v.escapedName)&&Zq(p,v.escapedName)}),v=>[()=>Ne,v.escapedName])),tc))}function vkr(o,p){let m=`D${hl(o)},${ff(p)}`,v=Sh(m);if(v)return v;let E=Yse(bN(o));return h1(m,BBe(p,go(Cr(yr(o.properties,D=>!!D.symbol&&D.kind===292&&Zq(p,D.symbol.escapedName)&&(!D.initializer||Qse(D.initializer))),D=>[D.initializer?()=>hce(D.initializer):()=>Rt,D.symbol.escapedName]),Cr(yr($l(p),D=>{var R;if(!(D.flags&16777216)||!((R=o?.symbol)!=null&&R.members))return!1;let K=o.parent.parent;return D.escapedName===E&&PS(K)&&YR(K.children).length?!1:!o.symbol.members.has(D.escapedName)&&Zq(p,D.escapedName)}),D=>[()=>Ne,D.escapedName])),tc))}function ww(o,p){let m=r1(o)?jCt(o,p):Eh(o,p),v=dTe(m,o,p);if(v&&!(p&&p&2&&v.flags&8650752)){let E=hp(v,D=>ro(D)&32?D:nh(D),!0);return E.flags&1048576&&Lc(o)?ykr(o,E):E.flags&1048576&&xP(o)?vkr(o,E):E}}function dTe(o,p,m){if(o&&s_(o,465829888)){let v=p6(p);if(v&&m&1&&Pt(v.inferences,mAr))return fTe(o,v.nonFixingMapper);if(v?.returnMapper){let E=fTe(o,v.returnMapper);return E.flags&1048576&&sT(E.types,zn)&&sT(E.types,rr)?G_(E,D=>D!==zn&&D!==rr):E}}return o}function fTe(o,p){return o.flags&465829888?Oa(o,p):o.flags&1048576?Do(Cr(o.types,m=>fTe(m,p)),0):o.flags&2097152?Ac(Cr(o.types,m=>fTe(m,p))):o}function Eh(o,p){var m;if(o.flags&67108864)return;let v=UCt(o,!p);if(v>=0)return Hh[v];let{parent:E}=o;switch(E.kind){case 261:case 170:case 173:case 172:case 209:return ikr(o,p);case 220:case 254:return okr(o,p);case 230:return skr(E,p);case 224:return akr(E,p);case 214:case 215:return OCt(E,o);case 171:return ckr(E);case 217:case 235:return z1(E.type)?Eh(E,p):Sa(E.type);case 227:return ukr(o,p);case 304:case 305:return O$e(E,p);case 306:return Eh(E.parent,p);case 210:{let D=E,R=ww(D,p),K=BR(D.elements,o),se=(m=Ki(D)).spreadIndices??(m.spreadIndices=fkr(D.elements));return F$e(R,K,D.elements.length,se.first,se.last)}case 228:return mkr(o,p);case 240:return $.assert(E.parent.kind===229),lkr(E.parent,o);case 218:{if(Ei(E)){if(oge(E))return Sa(age(E));let D=mv(E);if(D&&!z1(D.typeExpression.type))return Sa(D.typeExpression.type)}return Eh(E,p)}case 236:return Eh(E,p);case 239:return Sa(E.type);case 278:return ZC(E);case 295:return gkr(E,p);case 292:case 294:return BCt(E,p);case 287:case 286:return Dkr(E,p);case 302:return Ckr(E)}}function $Ct(o){Zse(o,Eh(o,void 0),!0)}function Zse(o,p,m){lp[Pf]=o,Hh[Pf]=p,f1[Pf]=m,Pf++}function xZ(){Pf--,lp[Pf]=void 0,Hh[Pf]=void 0,f1[Pf]=void 0}function UCt(o,p){for(let m=Pf-1;m>=0;m--)if(o===lp[m]&&(p||!f1[m]))return m;return-1}function Skr(o,p){Qg[zS]=o,GA[zS]=p,zS++}function bkr(){zS--,Qg[zS]=void 0,GA[zS]=void 0}function p6(o){for(let p=zS-1;p>=0;p--)if(oP(o,Qg[p]))return GA[p]}function xkr(o){Ob[Fb]=o,HA[Fb]??(HA[Fb]=new Map),Fb++}function Tkr(){Fb--,Ob[Fb]=void 0,HA[Fb].clear()}function Ekr(o){for(let p=Fb-1;p>=0;p--)if(o===Ob[p])return p;return-1}function kkr(){for(let o=Fb-1;o>=0;o--)HA[o].clear()}function Ckr(o){return Aw(iBe(!1),Cne(o))}function Dkr(o,p){if(Tv(o)&&p!==4){let m=UCt(o.parent,!p);if(m>=0)return Hh[m]}return I$e(o,0)}function mTe(o,p){return K1(p)||kDt(p)!==0?Akr(o,p):Pkr(o,p)}function Akr(o,p){let m=pUe(o,er);m=zCt(p,bN(p),m);let v=_6(qy.IntrinsicAttributes,p);return si(v)||(m=_se(v,m)),m}function wkr(o,p){if(o.compositeSignatures){let v=[];for(let E of o.compositeSignatures){let D=Tl(E);if(Mi(D))return D;let R=en(D,p);if(!R)return;v.push(R)}return Ac(v)}let m=Tl(o);return Mi(m)?m:en(m,p)}function Ikr(o){if(K1(o))return RDt(o);if(M7(o.tagName)){let m=XCt(o),v=wTe(o,m);return aN(v)}let p=Bp(o.tagName);if(p.flags&128){let m=ZCt(p,o);if(!m)return Et;let v=wTe(o,m);return aN(v)}return p}function zCt(o,p,m){let v=eCr(p);if(v){let E=Ikr(o),D=tDt(v,Ei(o),E,m);if(D)return D}return m}function Pkr(o,p){let m=bN(p),v=rCr(m),E=v===void 0?pUe(o,er):v===""?Tl(o):wkr(o,v);if(!E)return v&&te(p.attributes.properties)&>(p,x.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,oa(v)),er;if(E=zCt(p,m,E),Mi(E))return E;{let D=E,R=_6(qy.IntrinsicClassAttributes,p);if(!si(R)){let se=Dc(R.symbol),ce=Tl(o),fe;if(se){let Ue=QE([ce],se,qb(se),Ei(p));fe=Oa(R,ty(se,Ue))}else fe=R;D=_se(fe,D)}let K=_6(qy.IntrinsicAttributes,p);return si(K)||(D=_se(K,D)),D}}function Nkr(o){return rm(Q,"noImplicitAny")?nl(o,(p,m)=>p===m||!p?p:T2t(p.typeParameters,m.typeParameters)?Rkr(p,m):void 0):void 0}function Okr(o,p,m){if(!o||!p)return o||p;let v=Do([di(o),Oa(di(p),m)]);return mN(o,v)}function Fkr(o,p,m){let v=xg(o),E=xg(p),D=v>=E?o:p,R=D===o?p:o,K=D===o?v:E,se=Wb(o)||Wb(p),ce=se&&!Wb(D),fe=new Array(K+(ce?1:0));for(let Ue=0;Ue=Jv(D)&&Ue>=Jv(R),on=Ue>=v?void 0:tJ(o,Ue),Hn=Ue>=E?void 0:tJ(p,Ue),fi=on===Hn?on:on?Hn?void 0:on:Hn,sn=zc(1|(kr&&!Xt?16777216:0),fi||`arg${Ue}`,Xt?32768:kr?16384:0);sn.links.type=Xt?um(Jt):Jt,fe[Ue]=sn}if(ce){let Ue=zc(1,"args",32768);Ue.links.type=um(qv(R,K)),R===p&&(Ue.links.type=Oa(Ue.links.type,m)),fe[K]=Ue}return fe}function Rkr(o,p){let m=o.typeParameters||p.typeParameters,v;o.typeParameters&&p.typeParameters&&(v=ty(p.typeParameters,o.typeParameters));let E=(o.flags|p.flags)&166,D=o.declaration,R=Fkr(o,p,v),K=Yr(R);K&&Fp(K)&32768&&(E|=1);let se=Okr(o.thisParameter,p.thisParameter,v),ce=Math.max(o.minArgumentCount,p.minArgumentCount),fe=GS(D,m,se,R,void 0,void 0,ce,E);return fe.compositeKind=2097152,fe.compositeSignatures=go(o.compositeKind===2097152&&o.compositeSignatures||[o],[p]),v&&(fe.mapper=o.compositeKind===2097152&&o.mapper&&o.compositeSignatures?Tw(o.mapper,v):v),fe}function R$e(o,p){let m=Gs(o,0),v=yr(m,E=>!Lkr(E,p));return v.length===1?v[0]:Nkr(v)}function Lkr(o,p){let m=0;for(;m{let R=u.getTokenEnd();if(v.category===3&&m&&R===m.start&&E===m.length){let K=tF(p.fileName,p.text,R,E,v,D);ac(m,K)}else(!m||R!==m.start)&&(m=md(p,R,E,v,D),il.add(m))}),u.setText(p.text,o.pos,o.end-o.pos);try{return u.scan(),$.assert(u.reScanSlashToken(!0)===14,"Expected scanner to rescan RegularExpressionLiteral"),!!m}finally{u.setText(""),u.setOnError(void 0)}}return!1}function jkr(o){let p=Ki(o);return p.flags&1||(p.flags|=1,a(()=>Mkr(o))),Kp}function Bkr(o,p){reKq(Me)||Xh(Me)&&!Me.nameType&&!!cZ(Me.target||Me)),Ue=!1;for(let Me=0;MeR[yt]&8?YC(Me,Ir)||at:Me),2):be?cn:Y,se))}function JCt(o){if(!(ro(o)&4))return o;let p=o.literalType;return p||(p=o.literalType=Q2t(o),p.objectFlags|=147456),p}function zkr(o){switch(o.kind){case 168:return qkr(o);case 80:return $x(o.escapedText);case 9:case 11:return $x(o.text);default:return!1}}function qkr(o){return Hf(sv(o),296)}function sv(o){let p=Ki(o.expression);if(!p.resolvedType){if((fh(o.parent.parent)||Co(o.parent.parent)||Af(o.parent.parent))&&wi(o.expression)&&o.expression.operatorToken.kind===103&&o.parent.kind!==178&&o.parent.kind!==179)return p.resolvedType=Et;if(p.resolvedType=Va(o.expression),ps(o.parent)&&!fd(o.parent)&&w_(o.parent.parent)){let m=yv(o.parent.parent),v=T$e(m);v&&(Ki(v).flags|=4096,Ki(o).flags|=32768,Ki(o.parent.parent).flags|=32768)}(p.resolvedType.flags&98304||!Hf(p.resolvedType,402665900)&&!tc(p.resolvedType,Uo))&>(o,x.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return p.resolvedType}function Jkr(o){var p;let m=(p=o.declarations)==null?void 0:p[0];return $x(o.escapedName)||m&&Vp(m)&&zkr(m.name)}function VCt(o){var p;let m=(p=o.declarations)==null?void 0:p[0];return AU(o)||m&&Vp(m)&&dc(m.name)&&Hf(sv(m.name),4096)}function Vkr(o){var p;let m=(p=o.declarations)==null?void 0:p[0];return m&&Vp(m)&&dc(m.name)}function EZ(o,p,m,v){var E;let D=[],R;for(let se=p;se0&&(R=o6(R,sn(),o.symbol,Jt,ce),D=[],E=ic(),kr=!1,on=!1,Hn=!1);let Fa=S1(Va(rn.expression,p&2));if(Xse(Fa)){let ho=EBe(Fa,ce);if(v&&HCt(ho,v,rn),fi=D.length,si(R))continue;R=o6(R,ho,o.symbol,Jt,ce)}else gt(rn,x.Spread_types_may_only_be_created_from_object_types),R=Et;continue}else $.assert(rn.kind===178||rn.kind===179),B7(rn);wo&&!(wo.flags&8576)?tc(wo,Uo)&&(tc(wo,Ir)?on=!0:tc(wo,wr)?Hn=!0:kr=!0,m&&(Xt=!0)):E.set(vi.escapedName,vi),D.push(vi)}if(xZ(),si(R))return Et;if(R!==kc)return D.length>0&&(R=o6(R,sn(),o.symbol,Jt,ce),D=[],E=ic(),kr=!1,on=!1),hp(R,rn=>rn===kc?sn():rn);return sn();function sn(){let rn=[],vi=nJ(o);kr&&rn.push(EZ(vi,fi,D,Mt)),on&&rn.push(EZ(vi,fi,D,Ir)),Hn&&rn.push(EZ(vi,fi,D,wr));let wo=mp(o.symbol,E,j,j,rn);return wo.objectFlags|=Jt|128|131072,yt&&(wo.objectFlags|=4096),Xt&&(wo.objectFlags|=512),m&&(wo.pattern=o),wo}}function Xse(o){let p=wkt(hp(o,HS));return!!(p.flags&126615553||p.flags&3145728&&ht(p.types,Xse))}function Gkr(o){M$e(o)}function Hkr(o,p){return B7(o),ece(o)||at}function Kkr(o){M$e(o.openingElement),M7(o.closingElement.tagName)?vTe(o.closingElement):Va(o.closingElement.tagName),yTe(o)}function Qkr(o,p){return B7(o),ece(o)||at}function Zkr(o){M$e(o.openingFragment);let p=Pn(o);lne(Q)&&(Q.jsxFactory||p.pragmas.has("jsx"))&&!Q.jsxFragmentFactory&&!p.pragmas.has("jsxfrag")&>(o,Q.jsxFactory?x.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:x.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),yTe(o);let m=ece(o);return si(m)?at:m}function L$e(o){return o.includes("-")}function M7(o){return ct(o)&&eL(o.escapedText)||Ev(o)}function WCt(o,p){return o.initializer?iJ(o.initializer,p):Rt}function GCt(o,p=0){let m=be?ic():void 0,v=ic(),E=o_,D=!1,R,K=!1,se=2048,ce=Yse(bN(o)),fe=K1(o),Ue,Me=o;if(!fe){let Xt=o.attributes;Ue=Xt.symbol,Me=Xt;let kr=Eh(Xt,0);for(let on of Xt.properties){let Hn=on.symbol;if(NS(on)){let fi=WCt(on,p);se|=ro(fi)&458752;let sn=zc(4|Hn.flags,Hn.escapedName);if(sn.declarations=Hn.declarations,sn.parent=Hn.parent,Hn.valueDeclaration&&(sn.valueDeclaration=Hn.valueDeclaration),sn.links.type=fi,sn.links.target=Hn,v.set(sn.escapedName,sn),m?.set(sn.escapedName,sn),YU(on.name)===ce&&(K=!0),kr){let rn=vc(kr,Hn.escapedName);rn&&rn.declarations&&th(rn)&&ct(on.name)&&g1(on.name,rn.declarations,on.name.escapedText)}if(kr&&p&2&&!(p&4)&&r0(on)){let rn=p6(Xt);$.assert(rn);let vi=on.initializer.expression;YBe(rn,vi,fi)}}else{$.assert(on.kind===294),v.size>0&&(E=o6(E,Jt(),Xt.symbol,se,!1),v=ic());let fi=S1(Va(on.expression,p&2));Mi(fi)&&(D=!0),Xse(fi)?(E=o6(E,fi,Xt.symbol,se,!1),m&&HCt(fi,m,on)):(gt(on.expression,x.Spread_types_may_only_be_created_from_object_types),R=R?Ac([R,fi]):fi)}}D||v.size>0&&(E=o6(E,Jt(),Xt.symbol,se,!1))}let yt=o.parent;if((PS(yt)&&yt.openingElement===o||DA(yt)&&yt.openingFragment===o)&&YR(yt.children).length>0){let Xt=yTe(yt,p);if(!D&&ce&&ce!==""){K&>(Me,x._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,oa(ce));let kr=Tv(o)?ww(o.attributes,void 0):void 0,on=kr&&Aw(kr,ce),Hn=zc(4,ce);Hn.links.type=Xt.length===1?Xt[0]:on&&j0(on,Kq)?Jb(Xt):um(Do(Xt)),Hn.valueDeclaration=W.createPropertySignature(void 0,oa(ce),void 0,void 0),xl(Hn.valueDeclaration,Me),Hn.valueDeclaration.symbol=Hn;let fi=ic();fi.set(ce,Hn),E=o6(E,mp(Ue,fi,j,j,j),Ue,se,!1)}}if(D)return at;if(R&&E!==o_)return Ac([R,E]);return R||(E===o_?Jt():E);function Jt(){return se|=8192,Xkr(se,Ue,v)}}function Xkr(o,p,m){let v=mp(p,m,j,j,j);return v.objectFlags|=o|8192|128|131072,v}function yTe(o,p){let m=[];for(let v of o.children)if(v.kind===12)v.containsOnlyTriviaWhiteSpaces||m.push(Mt);else{if(v.kind===295&&!v.expression)continue;m.push(iJ(v,p))}return m}function HCt(o,p,m){for(let v of $l(o))if(!(v.flags&16777216)){let E=p.get(v.escapedName);if(E){let D=gt(E.valueDeclaration,x._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,oa(E.escapedName));ac(D,xi(m,x.This_spread_always_overwrites_this_property))}}}function Ykr(o,p){return GCt(o.parent,p)}function _6(o,p){let m=bN(p),v=m&&Zg(m),E=v&&Nf(v,o,788968);return E?Tu(E):Et}function vTe(o){let p=Ki(o);if(!p.resolvedSymbol){let m=_6(qy.IntrinsicElements,o);if(si(m))return Fe&>(o,x.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,oa(qy.IntrinsicElements)),p.resolvedSymbol=ye;{if(!ct(o.tagName)&&!Ev(o.tagName))return $.fail();let v=Ev(o.tagName)?cF(o.tagName):o.tagName.escapedText,E=vc(m,v);if(E)return p.jsxFlags|=1,p.resolvedSymbol=E;let D=Swt(m,Sg(oa(v)));return D?(p.jsxFlags|=2,p.resolvedSymbol=D):_o(m,v)?(p.jsxFlags|=2,p.resolvedSymbol=m.symbol):(gt(o,x.Property_0_does_not_exist_on_type_1,sge(o.tagName),"JSX."+qy.IntrinsicElements),p.resolvedSymbol=ye)}}return p.resolvedSymbol}function STe(o){let p=o&&Pn(o),m=p&&Ki(p);if(m&&m.jsxImplicitImportContainer===!1)return;if(m&&m.jsxImplicitImportContainer)return m.jsxImplicitImportContainer;let v=une(yH(Q,p),Q);if(!v)return;let D=km(Q)===1?x.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:x.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed,R=R6r(p,v),K=V3(R||o,v,D,o),se=K&&K!==ye?cl(O_(K)):void 0;return m&&(m.jsxImplicitImportContainer=se||!1),se}function bN(o){let p=o&&Ki(o);if(p&&p.jsxNamespace)return p.jsxNamespace;if(!p||p.jsxNamespace!==!1){let v=STe(o);if(!v||v===ye){let E=X1(o);v=$t(o,E,1920,void 0,!1)}if(v){let E=O_(Nf(Zg(O_(v)),qy.JSX,1920));if(E&&E!==ye)return p&&(p.jsxNamespace=E),E}p&&(p.jsxNamespace=!1)}let m=O_(BM(qy.JSX,1920,void 0));if(m!==ye)return m}function KCt(o,p){let m=p&&Nf(p.exports,o,788968),v=m&&Tu(m),E=v&&$l(v);if(E){if(E.length===0)return"";if(E.length===1)return E[0].escapedName;E.length>1&&m.declarations&>(m.declarations[0],x.The_global_type_JSX_0_may_not_have_more_than_one_property,oa(o))}}function eCr(o){return o&&Nf(o.exports,qy.LibraryManagedAttributes,788968)}function tCr(o){return o&&Nf(o.exports,qy.ElementType,788968)}function rCr(o){return KCt(qy.ElementAttributesPropertyNameContainer,o)}function Yse(o){return Q.jsx===4||Q.jsx===5?"children":KCt(qy.ElementChildrenAttributeNameContainer,o)}function QCt(o,p){if(o.flags&4)return[jn];if(o.flags&128){let E=ZCt(o,p);return E?[wTe(p,E)]:(gt(p,x.Property_0_does_not_exist_on_type_1,o.value,"JSX."+qy.IntrinsicElements),j)}let m=nh(o),v=Gs(m,1);return v.length===0&&(v=Gs(m,0)),v.length===0&&m.flags&1048576&&(v=Rje(Cr(m.types,E=>QCt(E,p)))),v}function ZCt(o,p){let m=_6(qy.IntrinsicElements,p);if(!si(m)){let v=o.value,E=vc(m,dp(v));if(E)return di(E);let D=vw(m,Mt);return D||void 0}return at}function nCr(o,p,m){if(o===1){let E=eDt(m);E&&R0(p,E,am,m.tagName,x.Its_return_type_0_is_not_a_valid_JSX_element,v)}else if(o===0){let E=YCt(m);E&&R0(p,E,am,m.tagName,x.Its_instance_type_0_is_not_a_valid_JSX_element,v)}else{let E=eDt(m),D=YCt(m);if(!E||!D)return;let R=Do([E,D]);R0(p,R,am,m.tagName,x.Its_element_type_0_is_not_a_valid_JSX_element,v)}function v(){let E=Sp(m.tagName);return ws(void 0,x._0_cannot_be_used_as_a_JSX_component,E)}}function XCt(o){var p;$.assert(M7(o.tagName));let m=Ki(o);if(!m.resolvedJsxElementAttributesType){let v=vTe(o);if(m.jsxFlags&1)return m.resolvedJsxElementAttributesType=di(v)||Et;if(m.jsxFlags&2){let E=Ev(o.tagName)?cF(o.tagName):o.tagName.escapedText;return m.resolvedJsxElementAttributesType=((p=D7(_6(qy.IntrinsicElements,o),E))==null?void 0:p.type)||Et}else return m.resolvedJsxElementAttributesType=Et}return m.resolvedJsxElementAttributesType}function YCt(o){let p=_6(qy.ElementClass,o);if(!si(p))return p}function ece(o){return _6(qy.Element,o)}function eDt(o){let p=ece(o);if(p)return Do([p,mr])}function iCr(o){let p=bN(o);if(!p)return;let m=tCr(p);if(!m)return;let v=tDt(m,Ei(o));if(!(!v||si(v)))return v}function tDt(o,p,...m){let v=Tu(o);if(o.flags&524288){let E=io(o).typeParameters;if(te(E)>=m.length){let D=QE(m,E,m.length,p);return te(D)===0?v:MM(o,D)}}if(te(v.typeParameters)>=m.length){let E=QE(m,v.typeParameters,m.length,p);return f2(v,E)}}function oCr(o){let p=_6(qy.IntrinsicElements,o);return p?$l(p):j}function aCr(o){(Q.jsx||0)===0&>(o,x.Cannot_use_JSX_unless_the_jsx_flag_is_provided),ece(o)===void 0&&Fe&>(o,x.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function M$e(o){let p=Em(o);p&&a6r(o),aCr(o),x$e(o);let m=HM(o);if(PTe(m,o),p){let v=o,E=iCr(v);if(E!==void 0){let D=v.tagName,R=M7(D)?Sg(sge(D)):Va(D);R0(R,E,am,D,x.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let K=Sp(D);return ws(void 0,x._0_cannot_be_used_as_a_JSX_component,K)})}else nCr(kDt(v),Tl(m),v)}}function bTe(o,p,m){if(o.flags&524288&&(t6(o,p)||D7(o,p)||QQ(p)&&oT(o,Mt)||m&&L$e(p)))return!0;if(o.flags&33554432)return bTe(o.baseType,p,m);if(o.flags&3145728&&kZ(o)){for(let v of o.types)if(bTe(v,p,m))return!0}return!1}function kZ(o){return!!(o.flags&524288&&!(ro(o)&512)||o.flags&67108864||o.flags&33554432&&kZ(o.baseType)||o.flags&1048576&&Pt(o.types,kZ)||o.flags&2097152&&ht(o.types,kZ))}function sCr(o,p){if(c6r(o),o.expression){let m=Va(o.expression,p);return o.dotDotDotToken&&m!==at&&!L0(m)&>(o,x.JSX_spread_child_must_be_an_array_type),m}else return Et}function j$e(o){return o.valueDeclaration?f6(o.valueDeclaration):0}function B$e(o){if(o.flags&8192||Fp(o)&4)return!0;if(Ei(o.valueDeclaration)){let p=o.valueDeclaration.parent;return p&&wi(p)&&m_(p)===3}}function $$e(o,p,m,v,E,D=!0){let R=D?o.kind===167?o.right:o.kind===206?o:o.kind===209&&o.propertyName?o.propertyName:o.name:void 0;return rDt(o,p,m,v,E,R)}function rDt(o,p,m,v,E,D){var R;let K=S0(E,m);if(p){if(re<2&&nDt(E))return D&>(D,x.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(K&64)return D&>(D,x.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Ua(E),ri(N7(E))),!1;if(!(K&256)&&((R=E.declarations)!=null&&R.some(DPe)))return D&>(D,x.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Ua(E)),!1}if(K&64&&nDt(E)&&(PG(o)||D6e(o)||$y(o.parent)&&Sre(o.parent.parent))){let ce=JT(Od(E));if(ce&&iPr(o))return D&>(D,x.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Ua(E),g0(ce.name)),!1}if(!(K&6))return!0;if(K&2){let ce=JT(Od(E));return VUe(o,ce)?!0:(D&>(D,x.Property_0_is_private_and_only_accessible_within_class_1,Ua(E),ri(N7(E))),!1)}if(p)return!0;let se=ywt(o,ce=>{let fe=Tu($i(ce));return vkt(fe,E,m)});return!se&&(se=cCr(o),se=se&&vkt(se,E,m),K&256||!se)?(D&>(D,x.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Ua(E),ri(N7(E)||v)),!1):K&256?!0:(v.flags&262144&&(v=v.isThisType?Th(v):Gf(v)),!v||!eo(v,se)?(D&>(D,x.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Ua(E),ri(se),ri(v)),!1):!0)}function cCr(o){let p=lCr(o),m=p?.type&&Sa(p.type);if(m)m.flags&262144&&(m=Th(m));else{let v=Hm(o,!1,!1);Rs(v)&&(m=D$e(v))}if(m&&ro(m)&7)return Fn(m)}function lCr(o){let p=Hm(o,!1,!1);return p&&Rs(p)?cP(p):void 0}function nDt(o){return!!Fse(o,p=>!(p.flags&8192))}function WM(o){return ZS(Va(o),o)}function tce(o){return Uv(o,50331648)}function U$e(o){return tce(o)?b2(o):o}function uCr(o,p){let m=ru(o)?Rg(o):void 0;if(o.kind===106){gt(o,x.The_value_0_cannot_be_used_here,"null");return}if(m!==void 0&&m.length<100){if(ct(o)&&m==="undefined"){gt(o,x.The_value_0_cannot_be_used_here,"undefined");return}gt(o,p&16777216?p&33554432?x._0_is_possibly_null_or_undefined:x._0_is_possibly_undefined:x._0_is_possibly_null,m)}else gt(o,p&16777216?p&33554432?x.Object_is_possibly_null_or_undefined:x.Object_is_possibly_undefined:x.Object_is_possibly_null)}function pCr(o,p){gt(o,p&16777216?p&33554432?x.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:x.Cannot_invoke_an_object_which_is_possibly_undefined:x.Cannot_invoke_an_object_which_is_possibly_null)}function iDt(o,p,m){if(be&&o.flags&2){if(ru(p)){let E=Rg(p);if(E.length<100)return gt(p,x._0_is_of_type_unknown,E),Et}return gt(p,x.Object_is_of_type_unknown),Et}let v=zM(o,50331648);if(v&50331648){m(p,v);let E=b2(o);return E.flags&229376?Et:E}return o}function ZS(o,p){return iDt(o,p,uCr)}function oDt(o,p){let m=ZS(o,p);if(m.flags&16384){if(ru(p)){let v=Rg(p);if(ct(p)&&v==="undefined")return gt(p,x.The_value_0_cannot_be_used_here,v),m;if(v.length<100)return gt(p,x._0_is_possibly_undefined,v),m}gt(p,x.Object_is_possibly_undefined)}return m}function xTe(o,p,m){return o.flags&64?_Cr(o,p):q$e(o,o.expression,WM(o.expression),o.name,p,m)}function _Cr(o,p){let m=Va(o.expression),v=fZ(m,o.expression);return Gxe(q$e(o,o.expression,ZS(v,o.expression),o.name,p),o,v!==m)}function aDt(o,p){let m=Tre(o)&&pC(o.left)?ZS(Kse(o.left),o.left):WM(o.left);return q$e(o,o.left,m,o.right,p)}function z$e(o){for(;o.parent.kind===218;)o=o.parent;return mS(o.parent)&&o.parent.expression===o}function rce(o,p){for(let m=yre(p);m;m=Cf(m)){let{symbol:v}=m,E=XG(v,o),D=v.members&&v.members.get(E)||v.exports&&v.exports.get(E);if(D)return D}}function dCr(o){if(!Cf(o))return mn(o,x.Private_identifiers_are_not_allowed_outside_class_bodies);if(!Vne(o.parent)){if(!Tb(o))return mn(o,x.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);let p=wi(o.parent)&&o.parent.operatorToken.kind===103;if(!TTe(o)&&!p)return mn(o,x.Cannot_find_name_0,Zi(o))}return!1}function fCr(o){dCr(o);let p=TTe(o);return p&&ice(p,void 0,!1),at}function TTe(o){if(!Tb(o))return;let p=Ki(o);return p.resolvedSymbol===void 0&&(p.resolvedSymbol=rce(o.escapedText,o)),p.resolvedSymbol}function ETe(o,p){return vc(o,p.escapedName)}function mCr(o,p,m){let v,E=$l(o);E&&X(E,R=>{let K=R.valueDeclaration;if(K&&Vp(K)&&Aa(K.name)&&K.name.escapedText===p.escapedText)return v=R,!0});let D=gg(p);if(v){let R=$.checkDefined(v.valueDeclaration),K=$.checkDefined(Cf(R));if(m?.valueDeclaration){let se=m.valueDeclaration,ce=Cf(se);if($.assert(!!ce),fn(ce,fe=>K===fe)){let fe=gt(p,x.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,D,ri(o));return ac(fe,xi(se,x.The_shadowing_declaration_of_0_is_defined_here,D),xi(R,x.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,D)),!0}}return gt(p,x.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,D,gg(K.name||qye)),!0}return!1}function sDt(o,p){return(rT(p)||PG(o)&&$b(p))&&Hm(o,!0,!1)===yi(p)}function q$e(o,p,m,v,E,D){let R=Ki(p).resolvedSymbol,K=cC(o),se=nh(K!==0||z$e(o)?ry(m):m),ce=Mi(se)||se===lr,fe;if(Aa(v)){(re{switch(m.kind){case 173:case 176:return!0;case 187:case 288:return"quit";case 220:return p?!1:"quit";case 242:return lu(m.parent)&&m.parent.kind!==220?"quit":!1;default:return!1}})}function gCr(o){if(!(o.parent.flags&32))return!1;let p=di(o.parent);for(;;){if(p=p.symbol&&yCr(p),!p)return!1;let m=vc(p,o.escapedName);if(m&&m.valueDeclaration)return!0}}function yCr(o){let p=ov(o);if(p.length!==0)return Ac(p)}function lDt(o,p,m){let v=Ki(o),E=v.nonExistentPropCheckCache||(v.nonExistentPropCheckCache=new Set),D=`${ff(p)}|${m}`;if(E.has(D))return;E.add(D);let R,K;if(!Aa(o)&&p.flags&1048576&&!(p.flags&402784252)){for(let ce of p.types)if(!vc(ce,o.escapedText)&&!D7(ce,o.escapedText)){R=ws(R,x.Property_0_does_not_exist_on_type_1,du(o),ri(ce));break}}if(uDt(o.escapedText,p)){let ce=du(o),fe=ri(p);R=ws(R,x.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,ce,fe,fe+"."+ce)}else{let ce=LZ(p);if(ce&&vc(ce,o.escapedText))R=ws(R,x.Property_0_does_not_exist_on_type_1,du(o),ri(p)),K=xi(o,x.Did_you_forget_to_use_await);else{let fe=du(o),Ue=ri(p),Me=bCr(fe,p);if(Me!==void 0)R=ws(R,x.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,fe,Ue,Me);else{let yt=W$e(o,p);if(yt!==void 0){let Jt=vp(yt),Xt=m?x.Property_0_may_not_exist_on_type_1_Did_you_mean_2:x.Property_0_does_not_exist_on_type_1_Did_you_mean_2;R=ws(R,Xt,fe,Ue,Jt),K=yt.valueDeclaration&&xi(yt.valueDeclaration,x._0_is_declared_here,Jt)}else{let Jt=vCr(p)?x.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:x.Property_0_does_not_exist_on_type_1;R=ws(Jje(R,p),Jt,fe,Ue)}}}}let se=Nx(Pn(o),o,R);K&&ac(se,K),Kx(!m||R.code!==x.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,se)}function vCr(o){return Q.lib&&!Q.lib.includes("lib.dom.d.ts")&&TEr(o,p=>p.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(oa(p.symbol.escapedName)))&&v2(o)}function uDt(o,p){let m=p.symbol&&vc(di(p.symbol),o);return m!==void 0&&!!m.valueDeclaration&&oc(m.valueDeclaration)}function SCr(o){let p=gg(o),v=Tme().get(p);return v&&Gu(v.keys())}function bCr(o,p){let m=nh(p).symbol;if(!m)return;let v=vp(m),D=Tme().get(v);if(D){for(let[R,K]of D)if(un(K,o))return R}}function pDt(o,p){return nce(o,$l(p),106500)}function W$e(o,p){let m=$l(p);if(typeof o!="string"){let v=o.parent;no(v)&&(m=yr(m,E=>hDt(v,p,E))),o=Zi(o)}return nce(o,m,111551)}function _Dt(o,p){let m=Ni(o)?o:Zi(o),v=$l(p);return(m==="for"?wt(v,D=>vp(D)==="htmlFor"):m==="class"?wt(v,D=>vp(D)==="className"):void 0)??nce(m,v,111551)}function dDt(o,p){let m=W$e(o,p);return m&&vp(m)}function xCr(o,p,m){let v=Nf(o,p,m);if(v)return v;let E;return o===It?E=Wn(["string","number","boolean","object","bigint","symbol"],R=>o.has(R.charAt(0).toUpperCase()+R.slice(1))?zc(524288,R):void 0).concat(so(o.values())):E=so(o.values()),nce(oa(p),E,m)}function fDt(o,p,m){return $.assert(p!==void 0,"outername should always be defined"),Dr(o,p,m,void 0,!1,!1)}function G$e(o,p){return p.exports&&nce(Zi(o),m7(p),2623475)}function TCr(o,p,m){function v(R){let K=t6(o,R);if(K){let se=TN(di(K));return!!se&&Jv(se)>=1&&tc(m,qv(se,0))}return!1}let E=lC(p)?"set":"get";if(!v(E))return;let D=cH(p.expression);return D===void 0?D=E:D+="."+E,D}function ECr(o,p){let m=p.types.filter(v=>!!(v.flags&128));return xx(o.value,m,v=>v.value)}function nce(o,p,m){return xx(o,p,v);function v(E){let D=vp(E);if(!Ca(D,'"')){if(E.flags&m)return D;if(E.flags&2097152){let R=p7(E);if(R&&R.flags&m)return D}}}}function ice(o,p,m){let v=o&&o.flags&106500&&o.valueDeclaration;if(!v)return;let E=Bg(v,2),D=o.valueDeclaration&&Vp(o.valueDeclaration)&&Aa(o.valueDeclaration.name);if(!(!E&&!D)&&!(p&&Yre(p)&&!(o.flags&65536))){if(m){let R=fn(p,lu);if(R&&R.symbol===o)return}(Fp(o)&1?io(o).target:o).isReferenced=-1}}function mDt(o,p){return o.kind===110||!!p&&ru(o)&&p===Fm(_h(o))}function kCr(o,p){switch(o.kind){case 212:return H$e(o,o.expression.kind===108,p,ry(Va(o.expression)));case 167:return H$e(o,!1,p,ry(Va(o.left)));case 206:return H$e(o,!1,p,Sa(o))}}function hDt(o,p,m){return K$e(o,o.kind===212&&o.expression.kind===108,!1,p,m)}function H$e(o,p,m,v){if(Mi(v))return!0;let E=vc(v,m);return!!E&&K$e(o,p,!1,v,E)}function K$e(o,p,m,v,E){if(Mi(v))return!0;if(E.valueDeclaration&&Tm(E.valueDeclaration)){let D=Cf(E.valueDeclaration);return!xm(o)&&!!fn(o,R=>R===D)}return rDt(o,p,m,v,E)}function CCr(o){let p=o.initializer;if(p.kind===262){let m=p.declarations[0];if(m&&!$s(m.name))return $i(m)}else if(p.kind===80)return Fm(p)}function DCr(o){return lm(o).length===1&&!!oT(o,Ir)}function ACr(o){let p=bl(o);if(p.kind===80){let m=Fm(p);if(m.flags&3){let v=o,E=o.parent;for(;E;){if(E.kind===250&&v===E.statement&&CCr(E)===m&&DCr(Kf(E.expression)))return!0;v=E,E=E.parent}}}return!1}function wCr(o,p){return o.flags&64?ICr(o,p):gDt(o,WM(o.expression),p)}function ICr(o,p){let m=Va(o.expression),v=fZ(m,o.expression);return Gxe(gDt(o,ZS(v,o.expression),p),o,v!==m)}function gDt(o,p,m){let v=cC(o)!==0||z$e(o)?ry(p):p,E=o.argumentExpression,D=Va(E);if(si(v)||v===lr)return v;if(RTe(v)&&!Sl(E))return gt(E,x.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Et;let R=ACr(E)?Ir:D,K=cC(o),se;K===0?se=32:(se=4|(uN(v)&&!XU(v)?2:0),K===2&&(se|=32));let ce=YC(v,R,se,o)||Et;return CAt(cDt(o,Ki(o).resolvedSymbol,ce,E,m),o)}function yDt(o){return mS(o)||xA(o)||Em(o)}function xN(o){return yDt(o)&&X(o.typeArguments,Pc),o.kind===216?Va(o.template):Em(o)?Va(o.attributes):wi(o)?Va(o.left):mS(o)&&X(o.arguments,p=>{Va(p)}),jn}function zv(o){return xN(o),So}function PCr(o,p,m){let v,E,D=0,R,K=-1,se;$.assert(!p.length);for(let ce of o){let fe=ce.declaration&&$i(ce.declaration),Ue=ce.declaration&&ce.declaration.parent;!E||fe===E?v&&Ue===v?R=R+1:(v=Ue,R=D):(R=D=p.length,v=Ue),E=fe,__t(ce)?(K++,se=K,D++):se=R,p.splice(se,0,m?fbr(ce,m):ce)}}function kTe(o){return!!o&&(o.kind===231||o.kind===238&&o.isSpread)}function Q$e(o){return hr(o,kTe)}function vDt(o){return!!(o.flags&16384)}function NCr(o){return!!(o.flags&49155)}function CTe(o,p,m,v=!1){if(K1(o))return!0;let E,D=!1,R=xg(m),K=Jv(m);if(o.kind===216)if(E=p.length,o.template.kind===229){let se=Sn(o.template.templateSpans);D=Op(se.literal)||!!se.literal.isUnterminated}else{let se=o.template;$.assert(se.kind===15),D=!!se.isUnterminated}else if(o.kind===171)E=DDt(o,m);else if(o.kind===227)E=1;else if(Em(o)){if(D=o.attributes.end===o.end,D)return!0;E=K===0?p.length:1,R=p.length===0?R:1,K=Math.min(K,1)}else if(o.arguments){E=v?p.length+1:p.length,D=o.arguments.end===o.end;let se=Q$e(p);if(se>=0)return se>=Jv(m)&&(Wb(m)||seR)return!1;if(D||E>=K)return!0;for(let se=E;se=v&&p.length<=m}function SDt(o,p){let m;return!!(o.target&&(m=d6(o.target,p))&&xw(m))}function TN(o){return CZ(o,0,!1)}function bDt(o){return CZ(o,0,!1)||CZ(o,1,!1)}function CZ(o,p,m){if(o.flags&524288){let v=jv(o);if(m||v.properties.length===0&&v.indexInfos.length===0){if(p===0&&v.callSignatures.length===1&&v.constructSignatures.length===0)return v.callSignatures[0];if(p===1&&v.constructSignatures.length===1&&v.callSignatures.length===0)return v.constructSignatures[0]}}}function xDt(o,p,m,v){let E=gZ(W2t(o),o,0,v),D=wZ(p),R=m&&(D&&D.flags&262144?m.nonFixingMapper:m.mapper),K=R?dN(p,R):p;return QBe(K,o,(se,ce)=>{lT(E.inferences,se,ce)}),m||ZBe(p,o,(se,ce)=>{lT(E.inferences,se,ce,128)}),rZ(o,l$e(E),Ei(p.declaration))}function OCr(o,p,m,v){let E=mTe(p,o),D=KM(o.attributes,E,v,m);return lT(v.inferences,D,E),l$e(v)}function TDt(o){if(!o)return pn;let p=Va(o);return l4e(o)?p:Y$(o.parent)?b2(p):xm(o.parent)?Wxe(p):p}function X$e(o,p,m,v,E){if(Em(o))return OCr(o,p,v,E);if(o.kind!==171&&o.kind!==227){let se=ht(p.typeParameters,fe=>!!r6(fe)),ce=Eh(o,se?8:0);if(ce){let fe=Tl(p);if(iD(fe)){let Ue=p6(o);if(!(!se&&Eh(o,8)!==ce)){let Xt=t$e(Okt(Ue,1)),kr=Oa(ce,Xt),on=TN(kr),Hn=on&&on.typeParameters?aN(Qje(on,on.typeParameters)):kr;lT(E.inferences,Hn,fe,128)}let yt=gZ(p.typeParameters,p,E.flags),Jt=Oa(ce,Ue&&NTr(Ue));lT(yt.inferences,Jt,fe),E.returnMapper=Pt(yt.inferences,QM)?t$e(z2r(yt)):void 0}}}let D=IZ(p),R=D?Math.min(xg(p)-1,m.length):m.length;if(D&&D.flags&262144){let se=wt(E.inferences,ce=>ce.typeParameter===D);se&&(se.impliedArity=hr(m,kTe,R)<0?m.length-R:void 0)}let K=Sw(p);if(K&&iD(K)){let se=CDt(o);lT(E.inferences,TDt(se),K)}for(let se=0;se=m-1){let fe=o[m-1];if(kTe(fe)){let Ue=fe.kind===238?fe.type:KM(fe.expression,v,E,D);return YE(Ue)?EDt(Ue):um(tk(33,Ue,Ne,fe.kind===231?fe.expression:fe),R)}}let K=[],se=[],ce=[];for(let fe=p;fews(void 0,x.Type_0_does_not_satisfy_the_constraint_1):void 0,Ue=v||x.Type_0_does_not_satisfy_the_constraint_1;K||(K=ty(D,R));let Me=R[se];if(!pm(Me,Yg(Oa(ce,K),Me),m?p[se]:void 0,Ue,fe))return}}return R}function kDt(o){if(M7(o.tagName))return 2;let p=nh(Va(o.tagName));return te(Gs(p,1))?0:te(Gs(p,0))?1:2}function FCr(o,p,m,v,E,D,R){let K=mTe(p,o),se=K1(o)?GCt(o):KM(o.attributes,K,void 0,v),ce=v&4?hZ(se):se;return fe()&&FBe(ce,K,m,E?K1(o)?o:o.tagName:void 0,K1(o)?void 0:o.attributes,void 0,D,R);function fe(){var Ue;if(STe(o))return!0;let Me=(Tv(o)||u3(o))&&!(M7(o.tagName)||Ev(o.tagName))?Va(o.tagName):void 0;if(!Me)return!0;let yt=Gs(Me,0);if(!te(yt))return!0;let Jt=QUe(o);if(!Jt)return!0;let Xt=jp(Jt,111551,!0,!1,o);if(!Xt)return!0;let kr=di(Xt),on=Gs(kr,0);if(!te(on))return!0;let Hn=!1,fi=0;for(let rn of on){let vi=qv(rn,0),wo=Gs(vi,0);if(te(wo))for(let Fa of wo){if(Hn=!0,Wb(Fa))return!0;let ho=xg(Fa);ho>fi&&(fi=ho)}}if(!Hn)return!0;let sn=1/0;for(let rn of yt){let vi=Jv(rn);vi{E.push(D.expression)}),E}if(o.kind===171)return RCr(o);if(o.kind===227)return[o.left];if(Em(o))return o.attributes.properties.length>0||Tv(o)&&o.parent.children.length>0?[o.attributes]:j;let p=o.arguments||j,m=Q$e(p);if(m>=0){let v=p.slice(0,m);for(let E=m;E{var ce;let fe=R.target.elementFlags[se],Ue=DZ(D,fe&4?um(K):K,!!(fe&12),(ce=R.target.labeledElementDeclarations)==null?void 0:ce[se]);v.push(Ue)}):v.push(D)}return v}return p}function RCr(o){let p=o.expression,m=dUe(o);if(m){let v=[];for(let E of m.parameters){let D=di(E);v.push(DZ(p,D))}return v}return $.fail()}function DDt(o,p){return Q.experimentalDecorators?LCr(o,p):Math.min(Math.max(xg(p),1),2)}function LCr(o,p){switch(o.parent.kind){case 264:case 232:return 1;case 173:return xS(o.parent)?3:2;case 175:case 178:case 179:return p.parameters.length<=2?2:3;case 170:return 3;default:return $.fail()}}function ADt(o){let p=Pn(o),{start:m,length:v}=$4(p,no(o.expression)?o.expression.name:o.expression);return{start:m,length:v,sourceFile:p}}function AZ(o,p,...m){if(Js(o)){let{sourceFile:v,start:E,length:D}=ADt(o);return"message"in p?md(v,E,D,p,...m):Fme(v,p)}else return"message"in p?xi(o,p,...m):Nx(Pn(o),o,p)}function MCr(o){return mS(o)?no(o.expression)?o.expression.name:o.expression:xA(o)?no(o.tag)?o.tag.name:o.tag:Em(o)?o.tagName:o}function jCr(o){if(!Js(o)||!ct(o.expression))return!1;let p=$t(o.expression,o.expression.escapedText,111551,void 0,!1),m=p?.valueDeclaration;if(!m||!wa(m)||!mC(m.parent)||!SP(m.parent.parent)||!ct(m.parent.parent.expression))return!1;let v=oBe(!1);return v?B0(m.parent.parent.expression,!0)===v:!1}function wDt(o,p,m,v){var E;let D=Q$e(m);if(D>-1)return xi(m[D],x.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let R=Number.POSITIVE_INFINITY,K=Number.NEGATIVE_INFINITY,se=Number.NEGATIVE_INFINITY,ce=Number.POSITIVE_INFINITY,fe;for(let Xt of p){let kr=Jv(Xt),on=xg(Xt);krse&&(se=kr),m.lengthE?R=Math.min(R,se):ce1&&(Xt=Fa(on,Rb,sn,rn)),Xt||(Xt=Fa(on,am,sn,rn));let vi=Ki(o);if(vi.resolvedSignature!==Di&&!m)return $.assert(vi.resolvedSignature),vi.resolvedSignature;if(Xt)return Xt;if(Xt=$Cr(o,on,fi,!!m,v),vi.resolvedSignature=Xt,Ue){if(!D&&fe&&(D=x.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),Me)if(Me.length===1||Me.length>3){let ho=Me[Me.length-1],pa;Me.length>3&&(pa=ws(pa,x.The_last_overload_gave_the_following_error),pa=ws(pa,x.No_overload_matches_this_call)),D&&(pa=ws(pa,D));let Ps=oce(o,fi,ho,am,0,!0,()=>pa);if(Ps)for(let El of Ps)ho.declaration&&Me.length>3&&ac(El,xi(ho.declaration,x.The_last_overload_is_declared_here)),wo(ho,El),il.add(El);else $.fail("No error for last overload signature")}else{let ho=[],pa=0,Ps=Number.MAX_VALUE,El=0,qa=0;for(let ei of Me){let mi=oce(o,fi,ei,am,0,!0,()=>ws(void 0,x.Overload_0_of_1_2_gave_the_following_error,qa+1,on.length,HC(ei)));mi?(mi.length<=Ps&&(Ps=mi.length,El=qa),pa=Math.max(pa,mi.length),ho.push(mi)):$.fail("No error for 3 or fewer overload signatures"),qa++}let rp=pa>1?ho[El]:Rc(ho);$.assert(rp.length>0,"No errors reported for 3 or fewer overload signatures");let Zp=ws(Cr(rp,p6e),x.No_overload_matches_this_call);D&&(Zp=ws(Zp,D));let Rm=[...an(rp,ei=>ei.relatedInformation)],Mn;if(ht(rp,ei=>ei.start===rp[0].start&&ei.length===rp[0].length&&ei.file===rp[0].file)){let{file:ei,start:ha,length:mi}=rp[0];Mn={file:ei,start:ha,length:mi,code:Zp.code,category:Zp.category,messageText:Zp,relatedInformation:Rm}}else Mn=Nx(Pn(o),MCr(o),Zp,Rm);wo(Me[0],Mn),il.add(Mn)}else if(yt)il.add(wDt(o,[yt],fi,D));else if(Jt)eUe(Jt,o.typeArguments,!0,D);else if(!ce){let ho=yr(p,pa=>Z$e(pa,Hn));ho.length===0?il.add(BCr(o,p,Hn,D)):il.add(wDt(o,ho,fi,D))}}return Xt;function wo(ho,pa){var Ps,El;let qa=Me,rp=yt,Zp=Jt,Rm=((El=(Ps=ho.declaration)==null?void 0:Ps.symbol)==null?void 0:El.declarations)||j,ei=Rm.length>1?wt(Rm,ha=>lu(ha)&&t1(ha.body)):void 0;if(ei){let ha=t0(ei),mi=!ha.typeParameters;Fa([ha],am,mi)&&ac(pa,xi(ei,x.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}Me=qa,yt=rp,Jt=Zp}function Fa(ho,pa,Ps,El=!1){if(Me=void 0,yt=void 0,Jt=void 0,Ps){let qa=ho[0];if(Pt(Hn)||!CTe(o,fi,qa,El))return;if(oce(o,fi,qa,pa,0,!1,void 0)){Me=[qa];return}return qa}for(let qa=0;qa0),B7(o),v||p.length===1||p.some(D=>!!D.typeParameters)?qCr(o,p,m,E):UCr(p)}function UCr(o){let p=Wn(o,se=>se.thisParameter),m;p.length&&(m=IDt(p,p.map(cce)));let{min:v,max:E}=V4e(o,zCr),D=[];for(let se=0;seAm(fe)?sed6(fe,se))))}let R=Wn(o,se=>Am(se)?Sn(se.parameters):void 0),K=128;if(R.length!==0){let se=um(Do(Wn(o,V2t),2));D.push(PDt(R,se)),K|=1}return o.some(__t)&&(K|=2),GS(o[0].declaration,void 0,m,D,Ac(o.map(Tl)),void 0,v,K)}function zCr(o){let p=o.parameters.length;return Am(o)?p-1:p}function IDt(o,p){return PDt(o,Do(p,2))}function PDt(o,p){return mN(To(o),p)}function qCr(o,p,m,v){let E=WCr(p,St===void 0?m.length:St),D=p[E],{typeParameters:R}=D;if(!R)return D;let K=yDt(o)?o.typeArguments:void 0,se=K?mxe(D,JCr(K,R,Ei(o))):VCr(o,R,D,m,v);return p[E]=se,se}function JCr(o,p,m){let v=o.map($7);for(;v.length>p.length;)v.pop();for(;v.length=p)return E;R>v&&(v=R,m=E)}return m}function GCr(o,p,m){if(o.expression.kind===108){let se=uTe(o.expression);if(Mi(se)){for(let ce of o.arguments)Va(ce);return jn}if(!si(se)){let ce=vv(Cf(o));if(ce){let fe=nT(se,ce.typeArguments,ce);return GM(o,fe,p,m,0)}}return xN(o)}let v,E=Va(o.expression);if(O4(o)){let se=fZ(E,o.expression);v=se===E?0:eU(o)?16:8,E=se}else v=0;if(E=iDt(E,o.expression,pCr),E===lr)return On;let D=nh(E);if(si(D))return zv(o);let R=Gs(D,0),K=Gs(D,1).length;if(ace(E,D,R.length,K))return!si(E)&&o.typeArguments&>(o,x.Untyped_function_calls_may_not_accept_type_arguments),xN(o);if(!R.length){if(K)gt(o,x.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ri(E));else{let se;if(o.arguments.length===1){let ce=Pn(o).text;Dd(ce.charCodeAt(_c(ce,o.expression.end,!0)-1))&&(se=xi(o.expression,x.Are_you_missing_a_semicolon))}rUe(o.expression,D,0,se)}return zv(o)}return m&8&&!o.typeArguments&&R.some(HCr)?(mAt(o,m),Di):R.some(se=>Ei(se.declaration)&&!!X$(se.declaration))?(gt(o,x.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ri(E)),zv(o)):GM(o,R,p,m,v)}function HCr(o){return!!(o.typeParameters&&HUe(Tl(o)))}function ace(o,p,m,v){return Mi(o)||Mi(p)&&!!(o.flags&262144)||!m&&!v&&!(p.flags&1048576)&&!(S1(p).flags&131072)&&tc(o,Vn)}function KCr(o,p,m){let v=WM(o.expression);if(v===lr)return On;if(v=nh(v),si(v))return zv(o);if(Mi(v))return o.typeArguments&>(o,x.Untyped_function_calls_may_not_accept_type_arguments),xN(o);let E=Gs(v,1);if(E.length){if(!QCr(o,E[0]))return zv(o);if(NDt(E,K=>!!(K.flags&4)))return gt(o,x.Cannot_create_an_instance_of_an_abstract_class),zv(o);let R=v.symbol&&JT(v.symbol);return R&&ko(R,64)?(gt(o,x.Cannot_create_an_instance_of_an_abstract_class),zv(o)):GM(o,E,p,m,0)}let D=Gs(v,0);if(D.length){let R=GM(o,D,p,m,0);return Fe||(R.declaration&&!XS(R.declaration)&&Tl(R)!==pn&>(o,x.Only_a_void_function_can_be_called_with_the_new_keyword),Sw(R)===pn&>(o,x.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),R}return rUe(o.expression,v,1),zv(o)}function NDt(o,p){return Zn(o)?Pt(o,m=>NDt(m,p)):o.compositeKind===1048576?Pt(o.compositeSignatures,p):p(o)}function tUe(o,p){let m=ov(p);if(!te(m))return!1;let v=m[0];if(v.flags&2097152){let E=v.types,D=k2t(E),R=0;for(let K of v.types){if(!D[R]&&ro(K)&3&&(K.symbol===o||tUe(o,K)))return!0;R++}return!1}return v.symbol===o?!0:tUe(o,v)}function QCr(o,p){if(!p||!p.declaration)return!0;let m=p.declaration,v=QO(m,6);if(!v||m.kind!==177)return!0;let E=JT(m.parent.symbol),D=Tu(m.parent.symbol);if(!VUe(o,E)){let R=Cf(o);if(R&&v&4){let K=$7(R);if(tUe(m.parent.symbol,K))return!0}return v&2&>(o,x.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,ri(D)),v&4&>(o,x.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,ri(D)),!1}return!0}function ODt(o,p,m){let v,E=m===0,D=j7(p),R=D&&Gs(D,m).length>0;if(p.flags&1048576){let se=p.types,ce=!1;for(let fe of se)if(Gs(fe,m).length!==0){if(ce=!0,v)break}else if(v||(v=ws(v,E?x.Type_0_has_no_call_signatures:x.Type_0_has_no_construct_signatures,ri(fe)),v=ws(v,E?x.Not_all_constituents_of_type_0_are_callable:x.Not_all_constituents_of_type_0_are_constructable,ri(p))),ce)break;ce||(v=ws(void 0,E?x.No_constituent_of_type_0_is_callable:x.No_constituent_of_type_0_is_constructable,ri(p))),v||(v=ws(v,E?x.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:x.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,ri(p)))}else v=ws(v,E?x.Type_0_has_no_call_signatures:x.Type_0_has_no_construct_signatures,ri(p));let K=E?x.This_expression_is_not_callable:x.This_expression_is_not_constructable;if(Js(o.parent)&&o.parent.arguments.length===0){let{resolvedSymbol:se}=Ki(o);se&&se.flags&32768&&(K=x.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:ws(v,K),relatedMessage:R?x.Did_you_forget_to_use_await:void 0}}function rUe(o,p,m,v){let{messageChain:E,relatedMessage:D}=ODt(o,p,m),R=Nx(Pn(o),o,E);if(D&&ac(R,xi(o,D)),Js(o.parent)){let{start:K,length:se}=ADt(o.parent);R.start=K,R.length=se}il.add(R),FDt(p,m,v?ac(R,v):R)}function FDt(o,p,m){if(!o.symbol)return;let v=io(o.symbol).originatingImport;if(v&&!Bh(v)){let E=Gs(di(io(o.symbol).target),p);if(!E||!E.length)return;ac(m,xi(v,x.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function ZCr(o,p,m){let v=Va(o.tag),E=nh(v);if(si(E))return zv(o);let D=Gs(E,0),R=Gs(E,1).length;if(ace(v,E,D.length,R))return xN(o);if(!D.length){if(qf(o.parent)){let K=xi(o.tag,x.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return il.add(K),zv(o)}return rUe(o.tag,E,0),zv(o)}return GM(o,D,p,m,0)}function XCr(o){switch(o.parent.kind){case 264:case 232:return x.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 170:return x.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 173:return x.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 175:case 178:case 179:return x.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return $.fail()}}function YCr(o,p,m){let v=Va(o.expression),E=nh(v);if(si(E))return zv(o);let D=Gs(E,0),R=Gs(E,1).length;if(ace(v,E,D.length,R))return xN(o);if(rDr(o,D)&&!mh(o.expression)){let se=Sp(o.expression,!1);return gt(o,x._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,se),zv(o)}let K=XCr(o);if(!D.length){let se=ODt(o.expression,E,0),ce=ws(se.messageChain,K),fe=Nx(Pn(o.expression),o.expression,ce);return se.relatedMessage&&ac(fe,xi(o.expression,se.relatedMessage)),il.add(fe),FDt(E,0,fe),zv(o)}return GM(o,D,p,m,0,K)}function wTe(o,p){let m=bN(o),v=m&&Zg(m),E=v&&Nf(v,qy.Element,788968),D=E&&Le.symbolToEntityName(E,788968,o),R=W.createFunctionTypeNode(void 0,[W.createParameterDeclaration(void 0,void 0,"props",void 0,Le.typeToTypeNode(p,o))],D?W.createTypeReferenceNode(D,void 0):W.createKeywordTypeNode(133)),K=zc(1,"props");return K.links.type=p,GS(R,void 0,void 0,[K],E?Tu(E):Et,void 0,1,0)}function RDt(o){let p=Ki(Pn(o));if(p.jsxFragmentType!==void 0)return p.jsxFragmentType;let m=X1(o);if(!((Q.jsx===2||Q.jsxFragmentFactory!==void 0)&&m!=="null"))return p.jsxFragmentType=at;let E=Q.jsx!==1&&Q.jsx!==3,D=il?x.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:void 0,R=STe(o)??$t(o,m,E?111551:111167,D,!0);if(R===void 0)return p.jsxFragmentType=Et;if(R.escapedName===Kye.Fragment)return p.jsxFragmentType=di(R);let K=(R.flags&2097152)===0?R:df(R),se=R&&Zg(K),ce=se&&Nf(se,Kye.Fragment,2),fe=ce&&di(ce);return p.jsxFragmentType=fe===void 0?Et:fe}function eDr(o,p,m){let v=K1(o),E;if(v)E=RDt(o);else{if(M7(o.tagName)){let K=XCt(o),se=wTe(o,K);return l6(KM(o.attributes,mTe(se,o),void 0,0),K,o.tagName,o.attributes),te(o.typeArguments)&&(X(o.typeArguments,Pc),il.add(UR(Pn(o),o.typeArguments,x.Expected_0_type_arguments_but_got_1,0,te(o.typeArguments)))),se}E=Va(o.tagName)}let D=nh(E);if(si(D))return zv(o);let R=QCt(E,o);return ace(E,D,R.length,0)?xN(o):R.length===0?(v?gt(o,x.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Sp(o)):gt(o.tagName,x.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Sp(o.tagName)),zv(o)):GM(o,R,p,m,0)}function tDr(o,p,m){let v=Va(o.right);if(!Mi(v)){let E=yUe(v);if(E){let D=nh(E);if(si(D))return zv(o);let R=Gs(D,0),K=Gs(D,1);if(ace(E,D,R.length,K.length))return xN(o);if(R.length)return GM(o,R,p,m,0)}else if(!(t2e(v)||c6(v,Vn)))return gt(o.right,x.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),zv(o)}return jn}function rDr(o,p){return p.length&&ht(p,m=>m.minArgumentCount===0&&!Am(m)&&m.parameters.length1?Bp(o.arguments[1]):void 0;for(let D=2;D{let R=ry(E);Rxe(D,R)||_kt(E,D,m,x.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function pDr(o){let p=Va(o.expression),m=fZ(p,o.expression);return Gxe(b2(m),o,m!==p)}function _Dr(o){return o.flags&64?pDr(o):b2(Va(o.expression))}function zDt(o){if(Fwt(o),X(o.typeArguments,Pc),o.kind===234){let m=V1(o.parent);m.kind===227&&m.operatorToken.kind===104&&oP(o,m.right)&>(o,x.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}let p=o.kind===234?Va(o.expression):pC(o.exprName)?Kse(o.exprName):Va(o.exprName);return qDt(p,o)}function qDt(o,p){let m=p.typeArguments;if(o===lr||si(o)||!Pt(m))return o;let v=Ki(p);if(v.instantiationExpressionTypes||(v.instantiationExpressionTypes=new Map),v.instantiationExpressionTypes.has(o.id))return v.instantiationExpressionTypes.get(o.id);let E=!1,D,R=se(o);v.instantiationExpressionTypes.set(o.id,R);let K=E?D:o;return K&&il.add(UR(Pn(p),m,x.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,ri(K))),R;function se(fe){let Ue=!1,Me=!1,yt=Jt(fe);return E||(E=Me),Ue&&!Me&&(D??(D=fe)),yt;function Jt(Xt){if(Xt.flags&524288){let kr=jv(Xt),on=ce(kr.callSignatures),Hn=ce(kr.constructSignatures);if(Ue||(Ue=kr.callSignatures.length!==0||kr.constructSignatures.length!==0),Me||(Me=on.length!==0||Hn.length!==0),on!==kr.callSignatures||Hn!==kr.constructSignatures){let fi=mp(zc(0,"__instantiationExpression"),kr.members,on,Hn,kr.indexInfos);return fi.objectFlags|=8388608,fi.node=p,fi}}else if(Xt.flags&58982400){let kr=Gf(Xt);if(kr){let on=Jt(kr);if(on!==kr)return on}}else{if(Xt.flags&1048576)return hp(Xt,se);if(Xt.flags&2097152)return Ac(Zo(Xt.types,Jt))}return Xt}}function ce(fe){let Ue=yr(fe,Me=>!!Me.typeParameters&&Z$e(Me,m));return Zo(Ue,Me=>{let yt=eUe(Me,m,!0);return yt?rZ(Me,yt,Ei(Me.declaration)):Me})}}function dDr(o){return Pc(o.type),aUe(o.expression,o.type)}function aUe(o,p,m){let v=Va(o,m),E=Sa(p);if(si(E))return E;let D=fn(p.parent,R=>R.kind===239||R.kind===351);return l6(v,E,D,o,x.Type_0_does_not_satisfy_the_expected_type_1),v}function fDr(o){return y6r(o),o.keywordToken===105?sUe(o):o.keywordToken===102?o.name.escapedText==="defer"?($.assert(!Js(o.parent)||o.parent.expression!==o,"Trying to get the type of `import.defer` in `import.defer(...)`"),Et):mDr(o):$.assertNever(o.keywordToken)}function JDt(o){switch(o.keywordToken){case 102:return cEt();case 105:let p=sUe(o);return si(p)?Et:NDr(p);default:$.assertNever(o.keywordToken)}}function sUe(o){let p=C6e(o);if(p)if(p.kind===177){let m=$i(p.parent);return di(m)}else{let m=$i(p);return di(m)}else return gt(o,x.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Et}function mDr(o){100<=ae&&ae<=199?Pn(o).impliedNodeFormat!==99&>(o,x.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):ae<6&&ae!==4&>(o,x.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext);let p=Pn(o);return $.assert(!!(p.flags&8388608),"Containing file is missing import meta node flag."),o.name.escapedText==="meta"?sEt():Et}function cce(o){let p=o.valueDeclaration;return Om(di(o),!1,!!p&&(lE(p)||sF(p)))}function cUe(o,p,m){switch(o.name.kind){case 80:{let v=o.name.escapedText;return o.dotDotDotToken?m&12?v:`${v}_${p}`:m&3?v:`${v}_n`}case 208:{if(o.dotDotDotToken){let v=o.name.elements,E=Ci(Yr(v),Vc),D=v.length-(E?.dotDotDotToken?1:0);if(p=v-1)return p===v-1?D:um(ey(D,Ir));let R=[],K=[],se=[];for(let ce=p;ce!(se&1)),K=R<0?D.target.fixedLength:R;K>0&&(E=o.parameters.length-1+K)}}if(E===void 0){if(!m&&o.flags&32)return 0;E=o.minArgumentCount}if(v)return E;for(let D=E-1;D>=0;D--){let R=qv(o,D);if(G_(R,vDt).flags&131072)break;E=D}o.resolvedMinArgumentCount=E}return o.resolvedMinArgumentCount}function Wb(o){if(Am(o)){let p=di(o.parameters[o.parameters.length-1]);return!Gc(p)||!!(p.target.combinedFlags&12)}return!1}function wZ(o){if(Am(o)){let p=di(o.parameters[o.parameters.length-1]);if(!Gc(p))return Mi(p)?If:p;if(p.target.combinedFlags&12)return Wq(p,p.target.fixedLength)}}function IZ(o){let p=wZ(o);return p&&!L0(p)&&!Mi(p)?p:void 0}function uUe(o){return pUe(o,tn)}function pUe(o,p){return o.parameters.length>0?qv(o,0):p}function HDt(o,p,m){let v=o.parameters.length-(Am(o)?1:0);for(let D=0;D=0);let D=kp(v.parent)?di($i(v.parent.parent)):xwt(v.parent),R=kp(v.parent)?Ne:Twt(v.parent),K=Bv(E),se=Qy("target",D),ce=Qy("propertyKey",R),fe=Qy("parameterIndex",K);m.decoratorSignature=MZ(void 0,void 0,[se,ce,fe],pn);break}case 175:case 178:case 179:case 173:{let v=p;if(!Co(v.parent))break;let E=xwt(v),D=Qy("target",E),R=Twt(v),K=Qy("propertyKey",R),se=ps(v)?pn:gEt($7(v));if(!ps(p)||xS(p)){let fe=gEt($7(v)),Ue=Qy("descriptor",fe);m.decoratorSignature=MZ(void 0,void 0,[D,K,Ue],Do([se,pn]))}else m.decoratorSignature=MZ(void 0,void 0,[D,K],Do([se,pn]));break}}return m.decoratorSignature===jn?void 0:m.decoratorSignature}function dUe(o){return _e?PDr(o):IDr(o)}function pce(o){let p=Sse(!0);return p!==Ar?(o=E2(aJ(o))||er,f2(p,[o])):er}function ZDt(o){let p=_Et(!0);return p!==Ar?(o=E2(aJ(o))||er,f2(p,[o])):er}function _ce(o,p){let m=pce(p);return m===er?(gt(o,Bh(o)?x.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:x.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Et):(oBe(!0)||gt(o,Bh(o)?x.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:x.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),m)}function NDr(o){let p=zc(0,"NewTargetExpression"),m=zc(4,"target",8);m.parent=p,m.links.type=o;let v=ic([m]);return p.members=v,mp(p,v,j,j,j)}function NTe(o,p){if(!o.body)return Et;let m=A_(o),v=(m&2)!==0,E=(m&1)!==0,D,R,K,se=pn;if(o.body.kind!==242)D=Bp(o.body,p&&p&-9),v&&(D=aJ(yce(D,!1,o,x.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(E){let ce=tAt(o,p);ce?ce.length>0&&(D=Do(ce,2)):se=tn;let{yieldTypes:fe,nextTypes:Ue}=ODr(o,p);R=Pt(fe)?Do(fe,2):void 0,K=Pt(Ue)?Ac(Ue):void 0}else{let ce=tAt(o,p);if(!ce)return m&2?_ce(o,tn):tn;if(ce.length===0){let fe=pTe(o,void 0),Ue=fe&&(Ece(fe,m)||pn).flags&32768?Ne:pn;return m&2?_ce(o,Ue):Ue}D=Do(ce,2)}if(D||R||K){if(R&&Zxe(o,R,3),D&&Zxe(o,D,1),K&&Zxe(o,K,2),D&&$v(D)||R&&$v(R)||K&&$v(K)){let ce=hTe(o),fe=ce?ce===t0(o)?E?void 0:D:dTe(Tl(ce),o,void 0):void 0;E?(R=HBe(R,fe,0,v),D=HBe(D,fe,1,v),K=HBe(K,fe,2,v)):D=C2r(D,fe,v)}R&&(R=ry(R)),D&&(D=ry(D)),K&&(K=ry(K))}return E?OTe(R||tn,D||se,K||NCt(2,o)||er,v):v?pce(D||se):D||se}function OTe(o,p,m,v){let E=v?g_:xu,D=E.getGlobalGeneratorType(!1);if(o=E.resolveIterationType(o,void 0)||er,p=E.resolveIterationType(p,void 0)||er,D===Ar){let R=E.getGlobalIterableIteratorType(!1);return R!==Ar?Vq(R,[o,p,m]):(E.getGlobalIterableIteratorType(!0),kc)}return Vq(D,[o,p,m])}function ODr(o,p){let m=[],v=[],E=(A_(o)&2)!==0;return h6e(o.body,D=>{let R=D.expression?Va(D.expression,p):Y;Zc(m,XDt(D,R,at,E));let K;if(D.asteriskToken){let se=VTe(R,E?19:17,D.expression);K=se&&se.nextType}else K=Eh(D,void 0);K&&Zc(v,K)}),{yieldTypes:m,nextTypes:v}}function XDt(o,p,m,v){if(p===lr)return lr;let E=o.expression||o,D=o.asteriskToken?tk(v?19:17,p,m,E):p;return v?j7(D,E,o.asteriskToken?x.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:x.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):D}function YDt(o,p,m){let v=0;for(let E=0;E=p?m[E]:void 0;v|=D!==void 0?A8e.get(D)||32768:0}return v}function eAt(o){let p=Ki(o);if(p.isExhaustive===void 0){p.isExhaustive=0;let m=FDr(o);p.isExhaustive===0&&(p.isExhaustive=m)}else p.isExhaustive===0&&(p.isExhaustive=!1);return p.isExhaustive}function FDr(o){if(o.expression.kind===222){let v=nCt(o);if(!v)return!1;let E=HS(Bp(o.expression.expression)),D=YDt(0,0,v);return E.flags&3?(556800&D)===556800:!j0(E,R=>zM(R,D)===D)}let p=HS(Bp(o.expression));if(!dZ(p))return!1;let m=rTe(o);return!m.length||Pt(m,T2r)?!1:bEr(hp(p,ih),m)}function fUe(o){return o.endFlowNode&&Wse(o.endFlowNode)}function tAt(o,p){let m=A_(o),v=[],E=fUe(o),D=!1;if(sC(o.body,R=>{let K=R.expression;if(K){if(K=bl(K,!0),m&2&&K.kind===224&&(K=bl(K.expression,!0)),K.kind===214&&K.expression.kind===80&&Bp(K.expression).symbol===cl(o.symbol)&&(!mC(o.symbol.valueDeclaration)||v$e(K.expression))){D=!0;return}let se=Bp(K,p&&p&-9);m&2&&(se=aJ(yce(se,!1,o,x.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),se.flags&131072&&(D=!0),Zc(v,se)}else E=!0}),!(v.length===0&&!E&&(D||RDr(o))))return be&&v.length&&E&&!(XS(o)&&v.some(R=>R.symbol===o.symbol))&&Zc(v,Ne),v}function RDr(o){switch(o.kind){case 219:case 220:return!0;case 175:return o.parent.kind===211;default:return!1}}function LDr(o){switch(o.kind){case 177:case 178:case 179:return}if(A_(o)!==0)return;let m;if(o.body&&o.body.kind!==242)m=o.body;else if(sC(o.body,E=>{if(m||!E.expression)return!0;m=E.expression})||!m||fUe(o))return;return MDr(o,m)}function MDr(o,p){if(p=bl(p,!0),!!(Bp(p).flags&16))return X(o.parameters,(v,E)=>{let D=di(v.symbol);if(!D||D.flags&16||!ct(v.name)||SZ(v.symbol)||Sb(v))return;let R=jDr(o,p,v,D);if(R)return tZ(1,oa(v.name.escapedText),E,R)})}function jDr(o,p,m,v){let E=KR(p)&&p.flowNode||p.parent.kind===254&&p.parent.flowNode||wb(2,void 0,void 0),D=wb(32,p,E),R=T2(m.name,v,v,o,D);if(R===v)return;let K=wb(64,p,E);return S1(T2(m.name,v,R,o,K)).flags&131072?R:void 0}function mUe(o,p){a(m);return;function m(){let v=A_(o),E=p&&Ece(p,v);if(E&&(s_(E,16384)||E.flags&32769)||o.kind===174||Op(o.body)||o.body.kind!==242||!fUe(o))return;let D=o.flags&1024,R=jg(o)||o;if(E&&E.flags&131072)gt(R,x.A_function_returning_never_cannot_have_a_reachable_end_point);else if(E&&!D)gt(R,x.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(E&&be&&!tc(Ne,E))gt(R,x.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(Q.noImplicitReturns){if(!E){if(!D)return;let K=Tl(t0(o));if(KAt(o,K))return}gt(R,x.Not_all_code_paths_return_a_value)}}}function rAt(o,p){if($.assert(o.kind!==175||r1(o)),B7(o),bu(o)&&sJ(o,o.name),p&&p&4&&r0(o)){if(!jg(o)&&!xne(o)){let v=TZ(o);if(v&&iD(Tl(v))){let E=Ki(o);if(E.contextFreeType)return E.contextFreeType;let D=NTe(o,p),R=GS(void 0,void 0,void 0,j,D,void 0,0,64),K=mp(o.symbol,G,[R],j,j);return K.objectFlags|=262144,E.contextFreeType=K}}return Ql}return!o2e(o)&&o.kind===219&&YUe(o),BDr(o,p),di($i(o))}function BDr(o,p){let m=Ki(o);if(!(m.flags&64)){let v=TZ(o);if(!(m.flags&64)){m.flags|=64;let E=pi(Gs(di($i(o)),0));if(!E)return;if(r0(o))if(v){let D=p6(o),R;if(p&&p&2){HDt(E,v,D);let K=wZ(v);K&&K.flags&262144&&(R=dN(v,D.nonFixingMapper))}R||(R=D?dN(v,D.mapper):v),yDr(E,R)}else vDr(E);else if(v&&!o.typeParameters&&v.parameters.length>o.parameters.length){let D=p6(o);p&&p&2&&HDt(E,v,D)}if(v&&!RM(o)&&!E.resolvedReturnType){let D=NTe(o,p);E.resolvedReturnType||(E.resolvedReturnType=D)}OZ(o)}}}function $Dr(o){$.assert(o.kind!==175||r1(o));let p=A_(o),m=RM(o);if(mUe(o,m),o.body)if(jg(o)||Tl(t0(o)),o.body.kind===242)Pc(o.body);else{let v=Va(o.body),E=m&&Ece(m,p);E&&WTe(o,E,o.body,o.body,v)}}function FTe(o,p,m,v=!1){if(!tc(p,Ys)){let E=v&&oJ(p);return RE(o,!!E&&tc(E,Ys),m),!1}return!0}function UDr(o){if(!Js(o)||!J4(o))return!1;let p=Bp(o.arguments[2]);if(en(p,"value")){let E=vc(p,"writable"),D=E&&di(E);if(!D||D===Rn||D===zn)return!0;if(E&&E.valueDeclaration&&td(E.valueDeclaration)){let R=E.valueDeclaration.initializer,K=Va(R);if(K===Rn||K===zn)return!0}return!1}return!vc(p,"set")}function Vv(o){return!!(Fp(o)&8||o.flags&4&&S0(o)&8||o.flags&3&&j$e(o)&6||o.flags&98304&&!(o.flags&65536)||o.flags&8||Pt(o.declarations,UDr))}function nAt(o,p,m){var v,E;if(m===0)return!1;if(Vv(p)){if(p.flags&4&&wu(o)&&o.expression.kind===110){let D=eJ(o);if(!(D&&(D.kind===177||XS(D))))return!0;if(p.valueDeclaration){let R=wi(p.valueDeclaration),K=D.parent===p.valueDeclaration.parent,se=D===p.valueDeclaration.parent,ce=R&&((v=p.parent)==null?void 0:v.valueDeclaration)===D.parent,fe=R&&((E=p.parent)==null?void 0:E.valueDeclaration)===D;return!(K||se||ce||fe)}}return!0}if(wu(o)){let D=bl(o.expression);if(D.kind===80){let R=Ki(D).resolvedSymbol;if(R.flags&2097152){let K=Qh(R);return!!K&&K.kind===275}}}return!1}function PZ(o,p,m){let v=Wp(o,39);return v.kind!==80&&!wu(v)?(gt(o,p),!1):v.flags&64?(gt(o,m),!1):!0}function zDr(o){Va(o.expression);let p=bl(o.expression);if(!wu(p))return gt(p,x.The_operand_of_a_delete_operator_must_be_a_property_reference),_r;no(p)&&Aa(p.name)&>(p,x.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let m=Ki(p),v=Wt(m.resolvedSymbol);return v&&(Vv(v)?gt(p,x.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):qDr(p,v)),_r}function qDr(o,p){let m=di(p);be&&!(m.flags&131075)&&!(ze?p.flags&16777216:Uv(m,16777216))&>(o,x.The_operand_of_a_delete_operator_must_be_optional)}function JDr(o){return Va(o.expression),vM}function VDr(o){return B7(o),Y}function iAt(o){let p=!1,m=gre(o);if(m&&n_(m)){let v=SC(o)?x.await_expression_cannot_be_used_inside_a_class_static_block:x.await_using_statements_cannot_be_used_inside_a_class_static_block;gt(o,v),p=!0}else if(!(o.flags&65536))if(vre(o)){let v=Pn(o);if(!sD(v)){let E;if(!$R(v,Q)){E??(E=gS(v,o.pos));let D=SC(o)?x.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:x.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,R=md(v,E.start,E.length,D);il.add(R),p=!0}switch(ae){case 100:case 101:case 102:case 199:if(v.impliedNodeFormat===1){E??(E=gS(v,o.pos)),il.add(md(v,E.start,E.length,x.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),p=!0;break}case 7:case 99:case 200:case 4:if(re>=4)break;default:E??(E=gS(v,o.pos));let D=SC(o)?x.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:x.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;il.add(md(v,E.start,E.length,D)),p=!0;break}}}else{let v=Pn(o);if(!sD(v)){let E=gS(v,o.pos),D=SC(o)?x.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:x.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,R=md(v,E.start,E.length,D);if(m&&m.kind!==177&&(A_(m)&2)===0){let K=xi(m,x.Did_you_mean_to_mark_this_function_as_async);ac(R,K)}il.add(R),p=!0}}return SC(o)&&w$e(o)&&(gt(o,x.await_expressions_cannot_be_used_in_a_parameter_initializer),p=!0),p}function WDr(o){a(()=>iAt(o));let p=Va(o.expression),m=yce(p,!0,o,x.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return m===p&&!si(m)&&!(p.flags&3)&&Kx(!1,xi(o,x.await_has_no_effect_on_the_type_of_this_expression)),m}function GDr(o){let p=Va(o.operand);if(p===lr)return lr;switch(o.operand.kind){case 9:switch(o.operator){case 41:return P7(Bv(-o.operand.text));case 40:return P7(Bv(+o.operand.text))}break;case 10:if(o.operator===41)return P7(Cse({negative:!0,base10Value:HU(o.operand.text)}))}switch(o.operator){case 40:case 41:case 55:return ZS(p,o.operand),dce(p,12288)&>(o.operand,x.The_0_operator_cannot_be_applied_to_type_symbol,Zs(o.operator)),o.operator===40?(dce(p,2112)&>(o.operand,x.Operator_0_cannot_be_applied_to_type_1,Zs(o.operator),ri(S2(p))),Ir):hUe(p);case 54:NUe(p,o.operand);let m=zM(p,12582912);return m===4194304?Rn:m===8388608?Rt:_r;case 46:case 47:return FTe(o.operand,ZS(p,o.operand),x.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&PZ(o.operand,x.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,x.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),hUe(p)}return Et}function HDr(o){let p=Va(o.operand);return p===lr?lr:(FTe(o.operand,ZS(p,o.operand),x.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&PZ(o.operand,x.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,x.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),hUe(p))}function hUe(o){return s_(o,2112)?Hf(o,3)||s_(o,296)?Ys:ii:Ir}function dce(o,p){if(s_(o,p))return!0;let m=HS(o);return!!m&&s_(m,p)}function s_(o,p){if(o.flags&p)return!0;if(o.flags&3145728){let m=o.types;for(let v of m)if(s_(v,p))return!0}return!1}function Hf(o,p,m){return o.flags&p?!0:m&&o.flags&114691?!1:!!(p&296)&&tc(o,Ir)||!!(p&2112)&&tc(o,ii)||!!(p&402653316)&&tc(o,Mt)||!!(p&528)&&tc(o,_r)||!!(p&16384)&&tc(o,pn)||!!(p&131072)&&tc(o,tn)||!!(p&65536)&&tc(o,mr)||!!(p&32768)&&tc(o,Ne)||!!(p&4096)&&tc(o,wr)||!!(p&67108864)&&tc(o,bn)}function NZ(o,p,m){return o.flags&1048576?ht(o.types,v=>NZ(v,p,m)):Hf(o,p,m)}function RTe(o){return!!(ro(o)&16)&&!!o.symbol&&gUe(o.symbol)}function gUe(o){return(o.flags&128)!==0}function yUe(o){let p=VAt("hasInstance");if(NZ(o,67108864)){let m=vc(o,p);if(m){let v=di(m);if(v&&Gs(v,0).length!==0)return v}}}function KDr(o,p,m,v,E){if(m===lr||v===lr)return lr;!Mi(m)&&NZ(m,402784252)&>(o,x.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),$.assert(Kre(o.parent));let D=HM(o.parent,void 0,E);if(D===Di)return lr;let R=Tl(D);return pm(R,_r,p,x.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),_r}function QDr(o){return j0(o,p=>p===sl||!!(p.flags&2097152)&&Vb(HS(p)))}function ZDr(o,p,m,v){if(m===lr||v===lr)return lr;if(Aa(o)){if((reWq(ce,m)):um(v);return EN(K,se,E)}}}}function EN(o,p,m,v){let E;if(o.kind===305){let D=o;D.objectAssignmentInitializer&&(be&&!Uv(Va(D.objectAssignmentInitializer),16777216)&&(p=M0(p,524288)),aAr(D.name,D.equalsToken,D.objectAssignmentInitializer,m)),E=o.name}else E=o;return E.kind===227&&E.operatorToken.kind===64&&(je(E,m),E=E.left,be&&(p=M0(p,524288))),E.kind===211?XDr(E,p,v):E.kind===210?YDr(E,p,m):eAr(E,p,m)}function eAr(o,p,m){let v=Va(o,m),E=o.parent.kind===306?x.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:x.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,D=o.parent.kind===306?x.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:x.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return PZ(o,E,D)&&l6(p,v,o,o),FR(o)&&Fd(o.parent,1048576),p}function fce(o){switch(o=bl(o),o.kind){case 80:case 11:case 14:case 216:case 229:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 219:case 232:case 220:case 210:case 211:case 222:case 236:case 286:case 285:return!0;case 228:return fce(o.whenTrue)&&fce(o.whenFalse);case 227:return zT(o.operatorToken.kind)?!1:fce(o.left)&&fce(o.right);case 225:case 226:switch(o.operator){case 54:case 40:case 41:case 55:return!0}return!1;default:return!1}}function vUe(o,p){return(p.flags&98304)!==0||Rxe(o,p)}function tAr(){let o=iie(p,m,v,E,D,R);return(Me,yt)=>{let Jt=o(Me,yt);return $.assertIsDefined(Jt),Jt};function p(Me,yt,Jt){return yt?(yt.stackIndex++,yt.skip=!1,ce(yt,void 0),Ue(yt,void 0)):yt={checkMode:Jt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Ei(Me)&&zO(Me)?(yt.skip=!0,Ue(yt,Va(Me.right,Jt)),yt):(rAr(Me),Me.operatorToken.kind===64&&(Me.left.kind===211||Me.left.kind===210)&&(yt.skip=!0,Ue(yt,EN(Me.left,Va(Me.right,Jt),Jt,Me.right.kind===110))),yt)}function m(Me,yt,Jt){if(!yt.skip)return K(yt,Me)}function v(Me,yt,Jt){if(!yt.skip){let Xt=fe(yt);$.assertIsDefined(Xt),ce(yt,Xt),Ue(yt,void 0);let kr=Me.kind;if(Gre(kr)){let on=Jt.parent;for(;on.kind===218||oH(on);)on=on.parent;(kr===56||EA(on))&&PUe(Jt.left,Xt,EA(on)?on.thenStatement:void 0),iH(kr)&&NUe(Xt,Jt.left)}}}function E(Me,yt,Jt){if(!yt.skip)return K(yt,Me)}function D(Me,yt){let Jt;if(yt.skip)Jt=fe(yt);else{let Xt=se(yt);$.assertIsDefined(Xt);let kr=fe(yt);$.assertIsDefined(kr),Jt=sAt(Me.left,Me.operatorToken,Me.right,Xt,kr,yt.checkMode,Me)}return yt.skip=!1,ce(yt,void 0),Ue(yt,void 0),yt.stackIndex--,Jt}function R(Me,yt,Jt){return Ue(Me,yt),Me}function K(Me,yt){if(wi(yt))return yt;Ue(Me,Va(yt,Me.checkMode))}function se(Me){return Me.typeStack[Me.stackIndex]}function ce(Me,yt){Me.typeStack[Me.stackIndex]=yt}function fe(Me){return Me.typeStack[Me.stackIndex+1]}function Ue(Me,yt){Me.typeStack[Me.stackIndex+1]=yt}}function rAr(o){if(o.operatorToken.kind===61){if(wi(o.parent)){let{left:p,operatorToken:m}=o.parent;wi(p)&&m.kind===57&&mn(p,x._0_and_1_operations_cannot_be_mixed_without_parentheses,Zs(61),Zs(m.kind))}else if(wi(o.left)){let{operatorToken:p}=o.left;(p.kind===57||p.kind===56)&&mn(o.left,x._0_and_1_operations_cannot_be_mixed_without_parentheses,Zs(p.kind),Zs(61))}else if(wi(o.right)){let{operatorToken:p}=o.right;p.kind===56&&mn(o.right,x._0_and_1_operations_cannot_be_mixed_without_parentheses,Zs(61),Zs(p.kind))}nAr(o),iAr(o)}}function nAr(o){let p=Wp(o.left,63),m=mce(p);m!==3&&(m===1?gt(p,x.This_expression_is_always_nullish):gt(p,x.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish))}function iAr(o){let p=Wp(o.right,63),m=mce(p);oAr(o)||(m===1?gt(p,x.This_expression_is_always_nullish):m===2&>(p,x.This_expression_is_never_nullish))}function oAr(o){return!wi(o.parent)||o.parent.operatorToken.kind!==61}function mce(o){switch(o=Wp(o),o.kind){case 224:case 214:case 216:case 213:case 237:case 215:case 212:case 230:case 110:return 3;case 227:switch(o.operatorToken.kind){case 64:case 61:case 78:case 57:case 76:case 56:case 77:return 3;case 28:return mce(o.right)}return 2;case 228:return mce(o.whenTrue)|mce(o.whenFalse);case 106:return 1;case 80:return Fm(o)===ke?1:3}return 2}function aAr(o,p,m,v,E){let D=p.kind;if(D===64&&(o.kind===211||o.kind===210))return EN(o,Va(m,v),v,m.kind===110);let R;iH(D)?R=UZ(o,v):R=Va(o,v);let K=Va(m,v);return sAt(o,p,m,R,K,v,E)}function sAt(o,p,m,v,E,D,R){let K=p.kind;switch(K){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(v===lr||E===lr)return lr;v=ZS(v,o),E=ZS(E,m);let sn;if(v.flags&528&&E.flags&528&&(sn=Me(p.kind))!==void 0)return gt(R||p,x.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Zs(p.kind),Zs(sn)),Ir;{let wo=FTe(o,v,x.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Fa=FTe(m,E,x.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),ho;if(Hf(v,3)&&Hf(E,3)||!(s_(v,2112)||s_(E,2112)))ho=Ir;else if(se(v,E)){switch(K){case 50:case 73:kr();break;case 43:case 68:re<3&>(R,x.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}ho=ii}else kr(se),ho=Et;if(wo&&Fa)switch(yt(ho),K){case 48:case 71:case 49:case 72:case 50:case 73:let pa=nt(m);typeof pa.value=="number"&&Math.abs(pa.value)>=32&&Y1(GT(V1(m.parent.parent)),R||p,x.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,Sp(o),Zs(K),pa.value%32);break;default:break}return ho}case 40:case 65:if(v===lr||E===lr)return lr;!Hf(v,402653316)&&!Hf(E,402653316)&&(v=ZS(v,o),E=ZS(E,m));let rn;return Hf(v,296,!0)&&Hf(E,296,!0)?rn=Ir:Hf(v,2112,!0)&&Hf(E,2112,!0)?rn=ii:Hf(v,402653316,!0)||Hf(E,402653316,!0)?rn=Mt:(Mi(v)||Mi(E))&&(rn=si(v)||si(E)?Et:at),rn&&!Ue(K)?rn:rn?(K===65&&yt(rn),rn):(kr((Fa,ho)=>Hf(Fa,402655727)&&Hf(ho,402655727)),at);case 30:case 32:case 33:case 34:return Ue(K)&&(v=WBe(ZS(v,o)),E=WBe(ZS(E,m)),Xt((wo,Fa)=>{if(Mi(wo)||Mi(Fa))return!0;let ho=tc(wo,Ys),pa=tc(Fa,Ys);return ho&&pa||!ho&&!pa&&Ise(wo,Fa)})),_r;case 35:case 36:case 37:case 38:if(!(D&&D&64)){if((nme(o)||nme(m))&&(!Ei(o)||K===37||K===38)){let wo=K===35||K===37;gt(R,x.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,wo?"false":"true")}Hn(R,K,o,m),Xt((wo,Fa)=>vUe(wo,Fa)||vUe(Fa,wo))}return _r;case 104:return KDr(o,m,v,E,D);case 103:return ZDr(o,m,v,E);case 56:case 77:{let wo=Uv(v,4194304)?Do([w2r(be?v:S2(E)),E]):v;return K===77&&yt(E),wo}case 57:case 76:{let wo=Uv(v,8388608)?Do([b2(wkt(v)),E],2):v;return K===76&&yt(E),wo}case 61:case 78:{let wo=Uv(v,262144)?Do([b2(v),E],2):v;return K===78&&yt(E),wo}case 64:let vi=wi(o.parent)?m_(o.parent):0;return ce(vi,E),Jt(vi)?((!(E.flags&524288)||vi!==2&&vi!==6&&!v2(E)&&!d$e(E)&&!(ro(E)&1))&&yt(E),v):(yt(E),E);case 28:if(!Q.allowUnreachableCode&&fce(o)&&!fe(o.parent)){let wo=Pn(o),Fa=wo.text,ho=_c(Fa,o.pos);wo.parseDiagnostics.some(Ps=>Ps.code!==x.JSX_expressions_must_have_one_parent_element.code?!1:jo(Ps,ho))||gt(o,x.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return E;default:return $.fail()}function se(sn,rn){return Hf(sn,2112)&&Hf(rn,2112)}function ce(sn,rn){if(sn===2)for(let vi of KE(rn)){let wo=di(vi);if(wo.symbol&&wo.symbol.flags&32){let Fa=vi.escapedName,ho=$t(vi.valueDeclaration,Fa,788968,void 0,!1);ho?.declarations&&ho.declarations.some(_3)&&(Qx(ho,x.Duplicate_identifier_0,oa(Fa),vi),Qx(vi,x.Duplicate_identifier_0,oa(Fa),ho))}}}function fe(sn){return sn.parent.kind===218&&qh(sn.left)&&sn.left.text==="0"&&(Js(sn.parent.parent)&&sn.parent.parent.expression===sn.parent||sn.parent.parent.kind===216)&&(wu(sn.right)||ct(sn.right)&&sn.right.escapedText==="eval")}function Ue(sn){let rn=dce(v,12288)?o:dce(E,12288)?m:void 0;return rn?(gt(rn,x.The_0_operator_cannot_be_applied_to_type_symbol,Zs(sn)),!1):!0}function Me(sn){switch(sn){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function yt(sn){zT(K)&&a(rn);function rn(){let vi=v;if(Iz(p.kind)&&o.kind===212&&(vi=xTe(o,void 0,!0)),PZ(o,x.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,x.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let wo;if(ze&&no(o)&&s_(sn,32768)){let Fa=en(Kf(o.expression),o.name.escapedText);Mxe(sn,Fa)&&(wo=x.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}l6(sn,vi,o,m,wo)}}}function Jt(sn){var rn;switch(sn){case 2:return!0;case 1:case 5:case 6:case 3:case 4:let vi=Xy(o),wo=zO(m);return!!wo&&Lc(wo)&&!!((rn=vi?.exports)!=null&&rn.size);default:return!1}}function Xt(sn){return sn(v,E)?!1:(kr(sn),!0)}function kr(sn){let rn=!1,vi=R||p;if(sn){let Ps=E2(v),El=E2(E);rn=!(Ps===v&&El===E)&&!!(Ps&&El)&&sn(Ps,El)}let wo=v,Fa=E;!rn&&sn&&([wo,Fa]=sAr(v,E,sn));let[ho,pa]=Pq(wo,Fa);on(vi,rn,ho,pa)||RE(vi,rn,x.Operator_0_cannot_be_applied_to_types_1_and_2,Zs(p.kind),ho,pa)}function on(sn,rn,vi,wo){switch(p.kind){case 37:case 35:case 38:case 36:return RE(sn,rn,x.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,vi,wo);default:return}}function Hn(sn,rn,vi,wo){let Fa=fi(bl(vi)),ho=fi(bl(wo));if(Fa||ho){let pa=gt(sn,x.This_condition_will_always_return_0,Zs(rn===37||rn===35?97:112));if(Fa&&ho)return;let Ps=rn===38||rn===36?Zs(54):"",El=Fa?wo:vi,qa=bl(El);ac(pa,xi(El,x.Did_you_mean_0,`${Ps}Number.isNaN(${ru(qa)?Rg(qa):"..."})`))}}function fi(sn){if(ct(sn)&&sn.escapedText==="NaN"){let rn=Fxr();return!!rn&&rn===Fm(sn)}return!1}}function sAr(o,p,m){let v=o,E=p,D=S2(o),R=S2(p);return m(D,R)||(v=D,E=R),[v,E]}function cAr(o){a(Ue);let p=My(o);if(!p)return at;let m=A_(p);if(!(m&1))return at;let v=(m&2)!==0;o.asteriskToken&&(v&&reTUe(Me,m,void 0)));let D=E&&BUe(E,v),R=D&&D.yieldType||at,K=D&&D.nextType||at,se=o.expression?Va(o.expression):Y,ce=XDt(o,se,K,v);if(E&&ce&&l6(ce,R,o.expression||o,o.expression),o.asteriskToken)return RUe(v?19:17,1,se,o.expression)||at;if(E)return rk(2,E,v)||at;let fe=NCt(2,p);return fe||(fe=at,a(()=>{if(Fe&&!Z4e(o)){let Me=Eh(o,void 0);(!Me||Mi(Me))&>(o,x.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),fe;function Ue(){o.flags&16384||mf(o,x.A_yield_expression_is_only_allowed_in_a_generator_body),w$e(o)&>(o,x.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function lAr(o,p){let m=UZ(o.condition,p);PUe(o.condition,m,o.whenTrue);let v=Va(o.whenTrue,p),E=Va(o.whenFalse,p);return Do([v,E],2)}function cAt(o){let p=o.parent;return mh(p)&&cAt(p)||mu(p)&&p.argumentExpression===o}function uAr(o){let p=[o.head.text],m=[];for(let E of o.templateSpans){let D=Va(E.expression);dce(D,12288)&>(E.expression,x.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),p.push(E.literal.text),m.push(tc(D,ec)?D:Mt)}let v=o.parent.kind!==216&&nt(o).value;return v?P7(Sg(v)):nJ(o)||cAt(o)||j0(Eh(o,void 0)||er,pAr)?cN(p,m):Mt}function pAr(o){return!!(o.flags&134217856||o.flags&58982400&&s_(Gf(o)||er,402653316))}function _Ar(o){return xP(o)&&!u3(o.parent)?o.parent.parent:o}function KM(o,p,m,v){let E=_Ar(o);Zse(E,p,!1),Skr(E,m);let D=Va(o,v|1|(m?2:0));m&&m.intraExpressionInferenceSites&&(m.intraExpressionInferenceSites=void 0);let R=s_(D,2944)&<e(D,dTe(p,o,void 0))?ih(D):D;return bkr(),xZ(),R}function Bp(o,p){if(p)return Va(o,p);let m=Ki(o);if(!m.resolvedType){let v=Fi,E=ka;Fi=$n,ka=void 0,m.resolvedType=Va(o,p),ka=E,Fi=v}return m.resolvedType}function lAt(o){return o=bl(o,!0),o.kind===217||o.kind===235||EP(o)}function rJ(o,p,m){let v=jG(o);if(Ei(o)){let D=kne(o);if(D)return aUe(v,D,p)}let E=xUe(v)||(m?KM(v,m,void 0,p||0):Bp(v,p));if(wa(Vc(o)?Pr(o):o)){if(o.name.kind===207&&ek(E))return dAr(E,o.name);if(o.name.kind===208&&Gc(E))return fAr(E,o.name)}return E}function dAr(o,p){let m;for(let D of p.elements)if(D.initializer){let R=uAt(D);R&&!vc(o,R)&&(m=jt(m,D))}if(!m)return o;let v=ic();for(let D of KE(o))v.set(D.escapedName,D);for(let D of m){let R=zc(16777220,uAt(D));R.links.type=Rv(D,!1,!1),v.set(R.escapedName,R)}let E=mp(o.symbol,v,j,j,lm(o));return E.objectFlags=o.objectFlags,E}function uAt(o){let p=m2(o.propertyName||o.name);return b0(p)?x0(p):void 0}function fAr(o,p){if(o.target.combinedFlags&12||ZE(o)>=p.elements.length)return o;let m=p.elements,v=i6(o).slice(),E=o.target.elementFlags.slice();for(let D=ZE(o);DLTe(o,v))}if(p.flags&58982400){let m=Gf(p)||er;return s_(m,4)&&s_(o,128)||s_(m,8)&&s_(o,256)||s_(m,64)&&s_(o,2048)||s_(m,4096)&&s_(o,8192)||LTe(o,m)}return!!(p.flags&406847616&&s_(o,128)||p.flags&256&&s_(o,256)||p.flags&2048&&s_(o,2048)||p.flags&512&&s_(o,512)||p.flags&8192&&s_(o,8192))}return!1}function nJ(o){let p=o.parent;return ZI(p)&&z1(p.type)||EP(p)&&z1(CL(p))||oUe(o)&&oN(Eh(o,0))||(mh(p)||qf(p)||E0(p))&&nJ(p)||(td(p)||im(p)||vL(p))&&nJ(p.parent)}function iJ(o,p,m){let v=Va(o,p,m);return nJ(o)||y6e(o)?ih(v):lAt(o)?v:GBe(v,dTe(Eh(o,void 0),o,void 0))}function _At(o,p){return o.name.kind===168&&sv(o.name),iJ(o.initializer,p)}function dAt(o,p){Mwt(o),o.name.kind===168&&sv(o.name);let m=rAt(o,p);return fAt(o,m,p)}function fAt(o,p,m){if(m&&m&10){let v=CZ(p,0,!0),E=CZ(p,1,!0),D=v||E;if(D&&D.typeParameters){let R=ww(o,2);if(R){let K=CZ(b2(R),v?0:1,!1);if(K&&!K.typeParameters){if(m&8)return mAt(o,m),Ql;let se=p6(o),ce=se.signature&&Tl(se.signature),fe=ce&&bDt(ce);if(fe&&!fe.typeParameters&&!ht(se.inferences,QM)){let Ue=yAr(se,D.typeParameters),Me=Qje(D,Ue),yt=Cr(se.inferences,Jt=>e$e(Jt.typeParameter));if(QBe(Me,K,(Jt,Xt)=>{lT(yt,Jt,Xt,0,!0)}),Pt(yt,QM)&&(ZBe(Me,K,(Jt,Xt)=>{lT(yt,Jt,Xt)}),!hAr(se.inferences,yt)))return gAr(se.inferences,yt),se.inferredTypeParameters=go(se.inferredTypeParameters,Ue),aN(Me)}return aN(xDt(D,K,se))}}}}return p}function mAt(o,p){if(p&2){let m=p6(o);m.flags|=4}}function QM(o){return!!(o.candidates||o.contraCandidates)}function mAr(o){return!!(o.candidates||o.contraCandidates||O2t(o.typeParameter))}function hAr(o,p){for(let m=0;mm.symbol.escapedName===p)}function vAr(o,p){let m=p.length;for(;m>1&&p.charCodeAt(m-1)>=48&&p.charCodeAt(m-1)<=57;)m--;let v=p.slice(0,m);for(let E=1;;E++){let D=v+E;if(!bUe(o,D))return D}}function hAt(o){let p=TN(o);if(p&&!p.typeParameters)return Tl(p)}function SAr(o){let p=Va(o.expression),m=fZ(p,o.expression),v=hAt(p);return v&&Gxe(v,o,m!==p)}function Kf(o){let p=xUe(o);if(p)return p;if(o.flags&268435456&&ka){let E=ka[hl(o)];if(E)return E}let m=os,v=Va(o,64);if(os!==m){let E=ka||(ka=[]);E[hl(o)]=v,Q4e(o,o.flags|268435456)}return v}function xUe(o){let p=bl(o,!0);if(EP(p)){let m=CL(p);if(!z1(m))return Sa(m)}if(p=bl(o),SC(p)){let m=xUe(p.expression);return m?j7(m):void 0}if(Js(p)&&p.expression.kind!==108&&!$h(p,!0)&&!LDt(p)&&!Bh(p))return O4(p)?SAr(p):hAt(WM(p.expression));if(ZI(p)&&!z1(p.type))return Sa(p.type);if(F4(o)||oU(o))return Va(o)}function hce(o){let p=Ki(o);if(p.contextFreeType)return p.contextFreeType;Zse(o,at,!1);let m=p.contextFreeType=Va(o,4);return xZ(),m}function Va(o,p,m){var v,E;(v=hi)==null||v.push(hi.Phase.Check,"checkExpression",{kind:o.kind,pos:o.pos,end:o.end,path:o.tracingPath});let D=M;M=o,C=0;let R=TAr(o,p,m),K=fAt(o,R,p);return RTe(K)&&bAr(o,K),M=D,(E=hi)==null||E.pop(),K}function bAr(o,p){var m;let v=o.parent.kind===212&&o.parent.expression===o||o.parent.kind===213&&o.parent.expression===o||(o.kind===80||o.kind===167)&&YTe(o)||o.parent.kind===187&&o.parent.exprName===o||o.parent.kind===282;if(v||gt(o,x.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),Q.isolatedModules||Q.verbatimModuleSyntax&&v&&!$t(o,_h(o),2097152,void 0,!1,!0)){$.assert(!!(p.symbol.flags&128));let E=p.symbol.valueDeclaration,D=(m=t.getRedirectFromOutput(Pn(E).resolvedPath))==null?void 0:m.resolvedRef;E.flags&33554432&&!yA(o)&&(!D||!dC(D.commandLine.options))&>(o,x.Cannot_access_ambient_const_enums_when_0_is_enabled,Qe)}}function xAr(o,p){if(hy(o)){if(oge(o))return aUe(o.expression,age(o),p);if(EP(o))return $Dt(o,p)}return Va(o.expression,p)}function TAr(o,p,m){let v=o.kind;if(c)switch(v){case 232:case 219:case 220:c.throwIfCancellationRequested()}switch(v){case 80:return qEr(o,p);case 81:return fCr(o);case 110:return Kse(o);case 108:return uTe(o);case 106:return Ge;case 15:case 11:return o$e(o)?pr:P7(Sg(o.text));case 9:return qwt(o),P7(Bv(+o.text));case 10:return k6r(o),P7(Cse({negative:!1,base10Value:HU(o.text)}));case 112:return Rt;case 97:return Rn;case 229:return uAr(o);case 14:return jkr(o);case 210:return qCt(o,p,m);case 211:return Wkr(o,p);case 212:return xTe(o,p);case 167:return aDt(o,p);case 213:return wCr(o,p);case 214:if(Bh(o))return sDr(o);case 215:return aDr(o,p);case 216:return cDr(o);case 218:return xAr(o,p);case 232:return dIr(o);case 219:case 220:return rAt(o,p);case 222:return JDr(o);case 217:case 235:return lDr(o,p);case 236:return _Dr(o);case 234:return zDt(o);case 239:return dDr(o);case 237:return fDr(o);case 221:return zDr(o);case 223:return VDr(o);case 224:return WDr(o);case 225:return GDr(o);case 226:return HDr(o);case 227:return je(o,p);case 228:return lAr(o,p);case 231:return Bkr(o,p);case 233:return Y;case 230:return cAr(o);case 238:return $kr(o);case 295:return sCr(o,p);case 285:return Qkr(o,p);case 286:return Hkr(o,p);case 289:return Zkr(o);case 293:return Ykr(o,p);case 287:$.fail("Shouldn't ever directly check a JsxOpeningElement")}return Et}function gAt(o){pT(o),o.expression&&mf(o.expression,x.Type_expected),Pc(o.constraint),Pc(o.default);let p=gw($i(o));Gf(p),Bbr(p)||gt(o.default,x.Type_parameter_0_has_a_circular_default,ri(p));let m=Th(p),v=r6(p);m&&v&&pm(v,Yg(Oa(m,s6(p,v)),v),o.default,x.Type_0_does_not_satisfy_the_constraint_1),B7(o),a(()=>cJ(o.name,x.Type_parameter_name_cannot_be_0))}function EAr(o){var p,m;if(Af(o.parent)||Co(o.parent)||s1(o.parent)){let v=gw($i(o)),E=zBe(v)&24576;if(E){let D=$i(o.parent);if(s1(o.parent)&&!(ro(Tu(D))&48))gt(o,x.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(E===8192||E===16384){(p=hi)==null||p.push(hi.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:ff(Tu(D)),id:ff(v)});let R=Ose(D,v,E===16384?zt:st),K=Ose(D,v,E===16384?st:zt),se=v;U=v,pm(R,K,o,x.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),U=se,(m=hi)==null||m.pop()}}}}function yAt(o){pT(o),xce(o);let p=My(o);ko(o,31)&&(Q.erasableSyntaxOnly&>(o,x.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),p.kind===177&&t1(p.body)||gt(o,x.A_parameter_property_is_only_allowed_in_a_constructor_implementation),p.kind===177&&ct(o.name)&&o.name.escapedText==="constructor"&>(o.name,x.constructor_cannot_be_used_as_a_parameter_property_name)),!o.initializer&&sF(o)&&$s(o.name)&&p.body&>(o,x.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),o.name&&ct(o.name)&&(o.name.escapedText==="this"||o.name.escapedText==="new")&&(p.parameters.indexOf(o)!==0&>(o,x.A_0_parameter_must_be_the_first_parameter,o.name.escapedText),(p.kind===177||p.kind===181||p.kind===186)&>(o,x.A_constructor_cannot_have_a_this_parameter),p.kind===220&>(o,x.An_arrow_function_cannot_have_a_this_parameter),(p.kind===178||p.kind===179)&>(o,x.get_and_set_accessors_cannot_declare_this_parameters)),o.dotDotDotToken&&!$s(o.name)&&!tc(S1(di(o.symbol)),Hg)&>(o,x.A_rest_parameter_must_be_of_an_array_type)}function kAr(o){let p=CAr(o);if(!p){gt(o,x.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let m=t0(p),v=F0(m);if(!v)return;Pc(o.type);let{parameterName:E}=o;if(v.kind!==0&&v.kind!==2){if(v.parameterIndex>=0){if(Am(m)&&v.parameterIndex===m.parameters.length-1)gt(E,x.A_type_predicate_cannot_reference_a_rest_parameter);else if(v.type){let D=()=>ws(void 0,x.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);pm(v.type,di(m.parameters[v.parameterIndex]),o.type,void 0,D)}}else if(E){let D=!1;for(let{name:R}of p.parameters)if($s(R)&&vAt(R,E,v.parameterName)){D=!0;break}D||gt(o.parameterName,x.Cannot_find_parameter_0,v.parameterName)}}}function CAr(o){switch(o.parent.kind){case 220:case 180:case 263:case 219:case 185:case 175:case 174:let p=o.parent;if(o===p.type)return p}}function vAt(o,p,m){for(let v of o.elements){if(Id(v))continue;let E=v.name;if(E.kind===80&&E.escapedText===m)return gt(p,x.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,m),!0;if((E.kind===208||E.kind===207)&&vAt(E,p,m))return!0}}function OZ(o){o.kind===182?e6r(o):(o.kind===185||o.kind===263||o.kind===186||o.kind===180||o.kind===177||o.kind===181)&&o2e(o);let p=A_(o);p&4||((p&3)===3&&re0&&m.declarations[0]!==o)return}let p=hxe($i(o));if(p?.declarations){let m=new Map;for(let v of p.declarations)vC(v)&&v.parameters.length===1&&v.parameters[0].type&&vN(Sa(v.parameters[0].type),E=>{let D=m.get(ff(E));D?D.declarations.push(v):m.set(ff(E),{type:E,declarations:[v]})});m.forEach(v=>{if(v.declarations.length>1)for(let E of v.declarations)gt(E,x.Duplicate_index_signature_for_type_0,ri(v.type))})}}function bAt(o){!pT(o)&&!x6r(o)&&a2e(o.name),xce(o),MTe(o),ko(o,64)&&o.kind===173&&o.initializer&>(o,x.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,du(o.name))}function wAr(o){return Aa(o.name)&>(o,x.Private_identifiers_are_not_allowed_outside_class_bodies),bAt(o)}function IAr(o){Mwt(o)||a2e(o.name),Ep(o)&&o.asteriskToken&&ct(o.name)&&Zi(o.name)==="constructor"&>(o.name,x.Class_constructor_may_not_be_a_generator),OAt(o),ko(o,64)&&o.kind===175&&o.body&>(o,x.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,du(o.name)),Aa(o.name)&&!Cf(o)&>(o,x.Private_identifiers_are_not_allowed_outside_class_bodies),MTe(o)}function MTe(o){if(Aa(o.name)&&(reko(ce,31))))if(!OAr(K,o.body))gt(K,x.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let ce;for(let fe of o.body.statements){if(af(fe)&&U4(Wp(fe.expression))){ce=fe;break}if(xAt(fe))break}ce===void 0&>(o,x.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else R||gt(o,x.Constructors_for_derived_classes_must_contain_a_super_call)}}}function OAr(o,p){let m=V1(o.parent);return af(m)&&m.parent===p}function xAt(o){return o.kind===108||o.kind===110?!0:k6e(o)?!1:!!Is(o,xAt)}function TAt(o){ct(o.name)&&Zi(o.name)==="constructor"&&Co(o.parent)&>(o.name,x.Class_constructor_may_not_be_an_accessor),a(p),Pc(o.body),MTe(o);function p(){if(!o2e(o)&&!l6r(o)&&a2e(o.name),vce(o),OZ(o),o.kind===178&&!(o.flags&33554432)&&t1(o.body)&&o.flags&512&&(o.flags&1024||gt(o.name,x.A_get_accessor_must_return_a_value)),o.name.kind===168&&sv(o.name),OM(o)){let v=$i(o),E=Qu(v,178),D=Qu(v,179);if(E&&D&&!(U7(E)&1)){Ki(E).flags|=1;let R=tm(E),K=tm(D);(R&64)!==(K&64)&&(gt(E.name,x.Accessors_must_both_be_abstract_or_non_abstract),gt(D.name,x.Accessors_must_both_be_abstract_or_non_abstract)),(R&4&&!(K&6)||R&2&&!(K&2))&&(gt(E.name,x.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),gt(D.name,x.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}let m=Lq($i(o));o.kind===178&&mUe(o,m)}}function FAr(o){vce(o)}function RAr(o,p,m){return o.typeArguments&&m{let v=kUe(o);v&&EAt(o,v)});let m=Ki(o).resolvedSymbol;m&&Pt(m.declarations,v=>aF(v)&&!!(v.flags&536870912))&&g1(sce(o),m.declarations,m.escapedName)}}function MAr(o){let p=Ci(o.parent,Zte);if(!p)return;let m=kUe(p);if(!m)return;let v=Th(m[p.typeArguments.indexOf(o)]);return v&&Oa(v,ty(m,jTe(p,m)))}function jAr(o){iEt(o)}function BAr(o){X(o.members,Pc),a(p);function p(){let m=HEt(o);GTe(m,m.symbol),EUe(o),SAt(o)}}function $Ar(o){Pc(o.elementType)}function UAr(o){let p=!1,m=!1;for(let v of o.elements){let E=cBe(v);if(E&8){let D=Sa(v.type);if(!YE(D)){gt(v,x.A_rest_element_type_must_be_an_array_type);break}(L0(D)||Gc(D)&&D.target.combinedFlags&4)&&(E|=4)}if(E&4){if(m){mn(v,x.A_rest_element_cannot_follow_another_rest_element);break}m=!0}else if(E&2){if(m){mn(v,x.An_optional_element_cannot_follow_a_rest_element);break}p=!0}else if(E&1&&p){mn(v,x.A_required_element_cannot_follow_an_optional_element);break}}X(o.elements,Pc),Sa(o)}function zAr(o){X(o.types,Pc),Sa(o)}function CAt(o,p){if(!(o.flags&8388608))return o;let m=o.objectType,v=o.indexType,E=Xh(m)&&XQ(m)===2?NEt(m,0):KS(m,0),D=!!oT(m,Ir);if(bg(v,R=>tc(R,E)||D&&C7(R,Ir)))return p.kind===213&&lC(p)&&ro(m)&32&&zb(m)&1&>(p,x.Index_signature_in_type_0_only_permits_reading,ri(m)),o;if(uN(m)){let R=Dxe(v,p);if(R){let K=vN(nh(m),se=>vc(se,R));if(K&&S0(K)&6)return gt(p,x.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,oa(R)),Et}}return gt(p,x.Type_0_cannot_be_used_to_index_type_1,ri(v),ri(m)),Et}function qAr(o){Pc(o.objectType),Pc(o.indexType),CAt(zEt(o),o)}function JAr(o){VAr(o),Pc(o.typeParameter),Pc(o.nameType),Pc(o.type),o.type||Dw(o,at);let p=SBe(o),m=HE(p);if(m)pm(m,Uo,o.nameType);else{let v=e0(p);pm(v,Uo,NR(o.typeParameter))}}function VAr(o){var p;if((p=o.members)!=null&&p.length)return mn(o.members[0],x.A_mapped_type_may_not_declare_properties_or_methods)}function WAr(o){DBe(o)}function GAr(o){p6r(o),Pc(o.type)}function HAr(o){Is(o,Pc)}function KAr(o){fn(o,m=>m.parent&&m.parent.kind===195&&m.parent.extendsType===m)||mn(o,x.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Pc(o.typeParameter);let p=$i(o.typeParameter);if(p.declarations&&p.declarations.length>1){let m=io(p);if(!m.typeParametersChecked){m.typeParametersChecked=!0;let v=gw(p),E=VPe(p,169);if(!XAt(E,[v],D=>[D])){let D=Ua(p);for(let R of E)gt(R.name,x.All_declarations_of_0_must_have_identical_constraints,D)}}}oD(o)}function QAr(o){for(let p of o.templateSpans){Pc(p.type);let m=Sa(p.type);pm(m,ec,p.type)}Sa(o)}function ZAr(o){Pc(o.argument),o.attributes&&$L(o.attributes,mn),kAt(o)}function XAr(o){o.dotDotDotToken&&o.questionToken&&mn(o,x.A_tuple_member_cannot_be_both_optional_and_rest),o.type.kind===191&&mn(o.type,x.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),o.type.kind===192&&mn(o.type,x.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Pc(o.type),Sa(o)}function gce(o){return(Bg(o,2)||Tm(o))&&!!(o.flags&33554432)}function FZ(o,p){let m=c2e(o);if(o.parent.kind!==265&&o.parent.kind!==264&&o.parent.kind!==232&&o.flags&33554432){let v=lre(o);v&&v.flags&128&&!(m&128)&&!(wS(o.parent)&&I_(o.parent.parent)&&xb(o.parent.parent))&&(m|=32),m|=128}return m&p}function BTe(o){a(()=>YAr(o))}function YAr(o){function p(sn,rn){return rn!==void 0&&rn.parent===sn[0].parent?rn:sn[0]}function m(sn,rn,vi,wo,Fa){if((wo^Fa)!==0){let pa=FZ(p(sn,rn),vi);Pg(sn,Ps=>Pn(Ps).fileName).forEach(Ps=>{let El=FZ(p(Ps,rn),vi);for(let qa of Ps){let rp=FZ(qa,vi)^pa,Zp=FZ(qa,vi)^El;Zp&32?gt(cs(qa),x.Overload_signatures_must_all_be_exported_or_non_exported):Zp&128?gt(cs(qa),x.Overload_signatures_must_all_be_ambient_or_non_ambient):rp&6?gt(cs(qa)||qa,x.Overload_signatures_must_all_be_public_private_or_protected):rp&64&>(cs(qa),x.Overload_signatures_must_all_be_abstract_or_non_abstract)}})}}function v(sn,rn,vi,wo){if(vi!==wo){let Fa=VO(p(sn,rn));X(sn,ho=>{VO(ho)!==Fa&>(cs(ho),x.Overload_signatures_must_all_be_optional_or_required)})}}let E=230,D=0,R=E,K=!1,se=!0,ce=!1,fe,Ue,Me,yt=o.declarations,Jt=(o.flags&16384)!==0;function Xt(sn){if(sn.name&&Op(sn.name))return;let rn=!1,vi=Is(sn.parent,Fa=>{if(rn)return Fa;rn=Fa===sn});if(vi&&vi.pos===sn.end&&vi.kind===sn.kind){let Fa=vi.name||vi,ho=vi.name;if(sn.name&&ho&&(Aa(sn.name)&&Aa(ho)&&sn.name.escapedText===ho.escapedText||dc(sn.name)&&dc(ho)&&cT(sv(sn.name),sv(ho))||SS(sn.name)&&SS(ho)&&DU(sn.name)===DU(ho))){if((sn.kind===175||sn.kind===174)&&oc(sn)!==oc(vi)){let Ps=oc(sn)?x.Function_overload_must_be_static:x.Function_overload_must_not_be_static;gt(Fa,Ps)}return}if(t1(vi.body)){gt(Fa,x.Function_implementation_name_must_be_0,du(sn.name));return}}let wo=sn.name||sn;Jt?gt(wo,x.Constructor_implementation_is_missing):ko(sn,64)?gt(wo,x.All_declarations_of_an_abstract_method_must_be_consecutive):gt(wo,x.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let kr=!1,on=!1,Hn=!1,fi=[];if(yt)for(let sn of yt){let rn=sn,vi=rn.flags&33554432,wo=rn.parent&&(rn.parent.kind===265||rn.parent.kind===188)||vi;if(wo&&(Me=void 0),(rn.kind===264||rn.kind===232)&&!vi&&(Hn=!0),rn.kind===263||rn.kind===175||rn.kind===174||rn.kind===177){fi.push(rn);let Fa=FZ(rn,E);D|=Fa,R&=Fa,K=K||VO(rn),se=se&&VO(rn);let ho=t1(rn.body);ho&&fe?Jt?on=!0:kr=!0:Me?.parent===rn.parent&&Me.end!==rn.pos&&Xt(Me),ho?fe||(fe=rn):ce=!0,Me=rn,wo||(Ue=rn)}Ei(sn)&&Rs(sn)&&sn.jsDoc&&(ce=te(Hme(sn))>0)}if(on&&X(fi,sn=>{gt(sn,x.Multiple_constructor_implementations_are_not_allowed)}),kr&&X(fi,sn=>{gt(cs(sn)||sn,x.Duplicate_function_implementation)}),Hn&&!Jt&&o.flags&16&&yt){let sn=yr(yt,rn=>rn.kind===264).map(rn=>xi(rn,x.Consider_adding_a_declare_modifier_to_this_class));X(yt,rn=>{let vi=rn.kind===264?x.Class_declaration_cannot_implement_overload_list_for_0:rn.kind===263?x.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;vi&&ac(gt(cs(rn)||rn,vi,vp(o)),...sn)})}if(Ue&&!Ue.body&&!ko(Ue,64)&&!Ue.questionToken&&Xt(Ue),ce&&(yt&&(m(yt,fe,E,D,R),v(yt,fe,K,se)),fe)){let sn=n6(o),rn=t0(fe);for(let vi of sn)if(!t2r(rn,vi)){let wo=vi.declaration&&TE(vi.declaration)?vi.declaration.parent.tagName:vi.declaration;ac(gt(wo,x.This_overload_signature_is_not_compatible_with_its_implementation_signature),xi(fe,x.The_implementation_signature_is_declared_here));break}}}function RZ(o){a(()=>ewr(o))}function ewr(o){let p=o.localSymbol;if(!p&&(p=$i(o),!p.exportSymbol)||Qu(p,o.kind)!==o)return;let m=0,v=0,E=0;for(let ce of p.declarations){let fe=se(ce),Ue=FZ(ce,2080);Ue&32?Ue&2048?E|=fe:m|=fe:v|=fe}let D=m|v,R=m&v,K=E&D;if(R||K)for(let ce of p.declarations){let fe=se(ce),Ue=cs(ce);fe&K?gt(Ue,x.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,du(Ue)):fe&R&>(Ue,x.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,du(Ue))}function se(ce){let fe=ce;switch(fe.kind){case 265:case 266:case 347:case 339:case 341:return 2;case 268:return Gm(fe)||KT(fe)!==0?5:4;case 264:case 267:case 307:return 3;case 308:return 7;case 278:case 227:let Ue=fe,Me=Xu(Ue)?Ue.expression:Ue.right;if(!ru(Me))return 1;fe=Me;case 272:case 275:case 274:let yt=0,Jt=df($i(fe));return X(Jt.declarations,Xt=>{yt|=se(Xt)}),yt;case 261:case 209:case 263:case 277:case 80:return 1;case 174:case 172:return 2;default:return $.failBadSyntaxKind(fe)}}}function oJ(o,p,m,...v){let E=LZ(o,p);return E&&j7(E,p,m,...v)}function LZ(o,p,m){if(Mi(o))return;let v=o;if(v.promisedTypeOfPromise)return v.promisedTypeOfPromise;if(Xg(o,Sse(!1)))return v.promisedTypeOfPromise=Bu(o)[0];if(NZ(HS(o),402915324))return;let E=en(o,"then");if(Mi(E))return;let D=E?Gs(E,0):j;if(D.length===0){p&>(p,x.A_promise_must_have_a_then_method);return}let R,K;for(let fe of D){let Ue=Sw(fe);Ue&&Ue!==pn&&!QS(o,Ue,Rb)?R=Ue:K=jt(K,fe)}if(!K){$.assertIsDefined(R),m&&(m.value=R),p&>(p,x.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,ri(o),ri(R));return}let se=M0(Do(Cr(K,uUe)),2097152);if(Mi(se))return;let ce=Gs(se,0);if(ce.length===0){p&>(p,x.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return v.promisedTypeOfPromise=Do(Cr(ce,uUe),2)}function yce(o,p,m,v,...E){return(p?j7(o,m,v,...E):E2(o,m,v,...E))||Et}function DAt(o){if(NZ(HS(o),402915324))return!1;let p=en(o,"then");return!!p&&Gs(M0(p,2097152),0).length>0}function $Te(o){var p;if(o.flags&16777216){let m=sBe(!1);return!!m&&o.aliasSymbol===m&&((p=o.aliasTypeArguments)==null?void 0:p.length)===1}return!1}function aJ(o){return o.flags&1048576?hp(o,aJ):$Te(o)?o.aliasTypeArguments[0]:o}function AAt(o){if(Mi(o)||$Te(o))return!1;if(uN(o)){let p=Gf(o);if(p?p.flags&3||v2(p)||j0(p,DAt):s_(o,8650752))return!0}return!1}function twr(o){let p=sBe(!0);if(p)return MM(p,[aJ(o)])}function rwr(o){return AAt(o)?twr(o)??o:($.assert($Te(o)||LZ(o)===void 0,"type provided should not be a non-generic 'promise'-like."),o)}function j7(o,p,m,...v){let E=E2(o,p,m,...v);return E&&rwr(E)}function E2(o,p,m,...v){if(Mi(o)||$Te(o))return o;let E=o;if(E.awaitedTypeOfType)return E.awaitedTypeOfType;if(o.flags&1048576){if(LC.lastIndexOf(o.id)>=0){p&>(p,x.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let K=p?ce=>E2(ce,p,m,...v):E2;LC.push(o.id);let se=hp(o,K);return LC.pop(),E.awaitedTypeOfType=se}if(AAt(o))return E.awaitedTypeOfType=o;let D={value:void 0},R=LZ(o,void 0,D);if(R){if(o.id===R.id||LC.lastIndexOf(R.id)>=0){p&>(p,x.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}LC.push(o.id);let K=E2(R,p,m,...v);return LC.pop(),K?E.awaitedTypeOfType=K:void 0}if(DAt(o)){if(p){$.assertIsDefined(m);let K;D.value&&(K=ws(K,x.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,ri(o),ri(D.value))),K=ws(K,m,...v),il.add(Nx(Pn(p),p,K))}return}return E.awaitedTypeOfType=o}function nwr(o,p,m){let v=Sa(p);if(re>=2){if(si(v))return;let D=Sse(!0);if(D!==Ar&&!Xg(v,D)){E(x.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,p,m,ri(E2(v)||pn));return}}else{if(R7(o,5),si(v))return;let D=NG(p);if(D===void 0){E(x.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,p,m,ri(v));return}let R=jp(D,111551,!0),K=R?di(R):Et;if(si(K)){D.kind===80&&D.escapedText==="Promise"&&Fn(v)===Sse(!1)?gt(m,x.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):E(x.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,p,m,Rg(D));return}let se=pxr(!0);if(se===kc){E(x.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,p,m,Rg(D));return}let ce=x.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!pm(K,se,m,ce,()=>p===m?void 0:ws(void 0,x.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;let Ue=D&&_h(D),Me=Nf(o.locals,Ue.escapedText,111551);if(Me){gt(Me.valueDeclaration,x.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Zi(Ue),Rg(D));return}}yce(v,!1,o,x.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function E(D,R,K,se){if(R===K)gt(K,D,se);else{let ce=gt(K,x.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);ac(ce,xi(R,D,se))}}}function iwr(o){let p=Pn(o);if(!sD(p)){let m=o.expression;if(mh(m))return!1;let v=!0,E;for(;;){if(VT(m)||bF(m)){m=m.expression;continue}if(Js(m)){v||(E=m),m.questionDotToken&&(E=m.questionDotToken),m=m.expression,v=!1;continue}if(no(m)){m.questionDotToken&&(E=m.questionDotToken),m=m.expression,v=!1;continue}ct(m)||(E=m);break}if(E)return ac(gt(o.expression,x.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),xi(E,x.Invalid_syntax_in_decorator)),!0}return!1}function owr(o){iwr(o);let p=HM(o);PTe(p,o);let m=Tl(p);if(m.flags&1)return;let v=dUe(o);if(!v?.resolvedReturnType)return;let E,D=v.resolvedReturnType;switch(o.parent.kind){case 264:case 232:E=x.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 173:if(!_e){E=x.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 170:E=x.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 175:case 178:case 179:E=x.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return $.failBadSyntaxKind(o.parent)}pm(m,D,o.expression,E)}function MZ(o,p,m,v,E,D=m.length,R=0){let K=W.createFunctionTypeNode(void 0,j,W.createKeywordTypeNode(133));return GS(K,o,p,m,v,E,D,R)}function DUe(o,p,m,v,E,D,R){let K=MZ(o,p,m,v,E,D,R);return aN(K)}function wAt(o){return DUe(void 0,void 0,j,o)}function IAt(o){let p=Qy("value",o);return DUe(void 0,void 0,[p],pn)}function AUe(o){if(o)switch(o.kind){case 194:case 193:return PAt(o.types);case 195:return PAt([o.trueType,o.falseType]);case 197:case 203:return AUe(o.type);case 184:return o.typeName}}function PAt(o){let p;for(let m of o){for(;m.kind===197||m.kind===203;)m=m.type;if(m.kind===146||!be&&(m.kind===202&&m.literal.kind===106||m.kind===157))continue;let v=AUe(m);if(!v)return;if(p){if(!ct(p)||!ct(v)||p.escapedText!==v.escapedText)return}else p=v}return p}function UTe(o){let p=X_(o);return Sb(o)?Mme(p):p}function vce(o){if(!kP(o)||!By(o)||!o.modifiers||!OG(_e,o,o.parent,o.parent.parent))return;let p=wt(o.modifiers,hd);if(p){_e?(Fd(p,8),o.kind===170&&Fd(p,32)):re1)for(let v=1;v0),m.length>1&>(m[1],x.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);let v=NAt(o.class.expression),E=aP(p);if(E){let D=NAt(E.expression);D&&v.escapedText!==D.escapedText&>(v,x.JSDoc_0_1_does_not_match_the_extends_2_clause,Zi(o.tagName),Zi(v),Zi(D))}}function vwr(o){let p=iP(o);p&&Tm(p)&>(o,x.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function NAt(o){switch(o.kind){case 80:return o;case 212:return o.name;default:return}}function OAt(o){var p;vce(o),OZ(o);let m=A_(o);if(o.name&&o.name.kind===168&&sv(o.name),OM(o)){let D=$i(o),R=o.localSymbol||D,K=(p=R.declarations)==null?void 0:p.find(se=>se.kind===o.kind&&!(se.flags&524288));o===K&&BTe(R),D.parent&&BTe(D)}let v=o.kind===174?void 0:o.body;if(Pc(v),mUe(o,RM(o)),a(E),Ei(o)){let D=mv(o);D&&D.typeExpression&&!R$e(Sa(D.typeExpression),o)&>(D.typeExpression.type,x.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function E(){jg(o)||(Op(v)&&!gce(o)&&Dw(o,at),m&1&&t1(v)&&Tl(t0(o)))}}function oD(o){a(p);function p(){let m=Pn(o),v=qn.get(m.path);v||(v=[],qn.set(m.path,v)),v.push(o)}}function FAt(o,p){for(let m of o)switch(m.kind){case 264:case 232:Swr(m,p),wUe(m,p);break;case 308:case 268:case 242:case 270:case 249:case 250:case 251:MAt(m,p);break;case 177:case 219:case 263:case 220:case 175:case 178:case 179:m.body&&MAt(m,p),wUe(m,p);break;case 174:case 180:case 181:case 185:case 186:case 266:case 265:wUe(m,p);break;case 196:bwr(m,p);break;default:$.assertNever(m,"Node should not have been registered for unused identifiers check")}}function RAt(o,p,m){let v=cs(o)||o,E=aF(o)?x._0_is_declared_but_never_used:x._0_is_declared_but_its_value_is_never_read;m(o,0,xi(v,E,p))}function jZ(o){return ct(o)&&Zi(o).charCodeAt(0)===95}function Swr(o,p){for(let m of o.members)switch(m.kind){case 175:case 173:case 178:case 179:if(m.kind===179&&m.symbol.flags&32768)break;let v=$i(m);!v.isReferenced&&(Bg(m,2)||Vp(m)&&Aa(m.name))&&!(m.flags&33554432)&&p(m,0,xi(m.name,x._0_is_declared_but_its_value_is_never_read,Ua(v)));break;case 177:for(let E of m.parameters)!E.symbol.isReferenced&&ko(E,2)&&p(E,0,xi(E.name,x.Property_0_is_declared_but_its_value_is_never_read,vp(E.symbol)));break;case 182:case 241:case 176:break;default:$.fail("Unexpected class member")}}function bwr(o,p){let{typeParameter:m}=o;IUe(m)&&p(o,1,xi(o,x._0_is_declared_but_its_value_is_never_read,Zi(m.name)))}function wUe(o,p){let m=$i(o).declarations;if(!m||Sn(m)!==o)return;let v=Zk(o),E=new Set;for(let D of v){if(!IUe(D))continue;let R=Zi(D.name),{parent:K}=D;if(K.kind!==196&&K.typeParameters.every(IUe)){if(Us(E,K)){let se=Pn(K),ce=c1(K)?Yhe(K):ege(se,K.typeParameters),Ue=K.typeParameters.length===1?[x._0_is_declared_but_its_value_is_never_read,R]:[x.All_type_parameters_are_unused];p(D,1,md(se,ce.pos,ce.end-ce.pos,...Ue))}}else p(D,1,xi(D,x._0_is_declared_but_its_value_is_never_read,R))}}function IUe(o){return!(cl(o.symbol).isReferenced&262144)&&!jZ(o.name)}function Sce(o,p,m,v){let E=String(v(p)),D=o.get(E);D?D[1].push(m):o.set(E,[p,[m]])}function LAt(o){return Ci(bS(o),wa)}function xwr(o){return Vc(o)?$y(o.parent)?!!(o.propertyName&&jZ(o.name)):jZ(o.name):Gm(o)||(Oo(o)&&M4(o.parent.parent)||jAt(o))&&jZ(o.name)}function MAt(o,p){let m=new Map,v=new Map,E=new Map;o.locals.forEach(D=>{if(!(D.flags&262144?!(D.flags&3&&!(D.isReferenced&3)):D.isReferenced||D.exportSymbol)&&D.declarations){for(let R of D.declarations)if(!xwr(R))if(jAt(R))Sce(m,Ewr(R),R,hl);else if(Vc(R)&&$y(R.parent)){let K=Sn(R.parent.elements);(R===K||!Sn(R.parent.elements).dotDotDotToken)&&Sce(v,R.parent,R,hl)}else if(Oo(R)){let K=f6(R)&7,se=cs(R);(K!==4&&K!==6||!se||!jZ(se))&&Sce(E,R.parent,R,hl)}else{let K=D.valueDeclaration&&LAt(D.valueDeclaration),se=D.valueDeclaration&&cs(D.valueDeclaration);K&&se?!ne(K,K.parent)&&!uC(K)&&!jZ(se)&&(Vc(R)&&xE(R.parent)?Sce(v,R.parent,R,hl):p(K,1,xi(se,x._0_is_declared_but_its_value_is_never_read,vp(D)))):RAt(R,vp(D),p)}}}),m.forEach(([D,R])=>{let K=D.parent;if((D.name?1:0)+(D.namedBindings?D.namedBindings.kind===275?1:D.namedBindings.elements.length:0)===R.length)p(K,0,R.length===1?xi(K,x._0_is_declared_but_its_value_is_never_read,Zi(To(R).name)):xi(K,x.All_imports_in_import_declaration_are_unused));else for(let ce of R)RAt(ce,Zi(ce.name),p)}),v.forEach(([D,R])=>{let K=LAt(D.parent)?1:0;if(D.elements.length===R.length)R.length===1&&D.parent.kind===261&&D.parent.parent.kind===262?Sce(E,D.parent.parent,D.parent,hl):p(D,K,R.length===1?xi(D,x._0_is_declared_but_its_value_is_never_read,bce(To(R).name)):xi(D,x.All_destructured_elements_are_unused));else for(let se of R)p(se,K,xi(se,x._0_is_declared_but_its_value_is_never_read,bce(se.name)))}),E.forEach(([D,R])=>{if(D.declarations.length===R.length)p(D,0,R.length===1?xi(To(R).name,x._0_is_declared_but_its_value_is_never_read,bce(To(R).name)):xi(D.parent.kind===244?D.parent:D,x.All_variables_are_unused));else for(let K of R)p(K,0,xi(K,x._0_is_declared_but_its_value_is_never_read,bce(K.name)))})}function Twr(){var o;for(let p of o2)if(!((o=$i(p))!=null&&o.isReferenced)){let m=Pr(p);$.assert(hA(m),"Only parameter declaration should be checked here");let v=xi(p.name,x._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,du(p.name),du(p.propertyName));m.type||ac(v,md(Pn(m),m.end,0,x.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,du(p.propertyName))),il.add(v)}}function bce(o){switch(o.kind){case 80:return Zi(o);case 208:case 207:return bce(Ba(To(o.elements),Vc).name);default:return $.assertNever(o)}}function jAt(o){return o.kind===274||o.kind===277||o.kind===275}function Ewr(o){return o.kind===274?o:o.kind===275?o.parent:o.parent.parent}function zTe(o){if(o.kind===242&&k2(o),ame(o)){let p=sa;X(o.statements,Pc),sa=p}else X(o.statements,Pc);o.locals&&oD(o)}function kwr(o){re>=2||!fme(o)||o.flags&33554432||Op(o.body)||X(o.parameters,p=>{p.name&&!$s(p.name)&&p.name.escapedText===Se.escapedName&&FE("noEmit",p,x.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function BZ(o,p,m){if(p?.escapedText!==m||o.kind===173||o.kind===172||o.kind===175||o.kind===174||o.kind===178||o.kind===179||o.kind===304||o.flags&33554432||(H1(o)||gd(o)||Xm(o))&&cE(o))return!1;let v=bS(o);return!(wa(v)&&Op(v.parent.body))}function Cwr(o){fn(o,p=>U7(p)&4?(o.kind!==80?gt(cs(o),x.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):gt(o,x.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Dwr(o){fn(o,p=>U7(p)&8?(o.kind!==80?gt(cs(o),x.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):gt(o,x.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function Awr(o,p){if(t.getEmitModuleFormatOfFile(Pn(o))>=5||!p||!BZ(o,p,"require")&&!BZ(o,p,"exports")||I_(o)&&KT(o)!==1)return;let m=ir(o);m.kind===308&&Lg(m)&&FE("noEmit",p,x.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,du(p),du(p))}function wwr(o,p){if(!p||re>=4||!BZ(o,p,"Promise")||I_(o)&&KT(o)!==1)return;let m=ir(o);m.kind===308&&Lg(m)&&m.flags&4096&&FE("noEmit",p,x.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,du(p),du(p))}function Iwr(o,p){re<=8&&(BZ(o,p,"WeakMap")||BZ(o,p,"WeakSet"))&&n2.push(o)}function Pwr(o){let p=yv(o);U7(p)&1048576&&($.assert(Vp(o)&&ct(o.name)&&typeof o.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),FE("noEmit",o,x.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,o.name.escapedText))}function Nwr(o,p){p&&re>=2&&re<=8&&BZ(o,p,"Reflect")&&i2.push(o)}function Owr(o){let p=!1;if(w_(o)){for(let m of o.members)if(U7(m)&2097152){p=!0;break}}else if(bu(o))U7(o)&2097152&&(p=!0);else{let m=yv(o);m&&U7(m)&2097152&&(p=!0)}p&&($.assert(Vp(o)&&ct(o.name),"The target of a Reflect collision check should be an identifier"),FE("noEmit",o,x.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,du(o.name),"Reflect"))}function sJ(o,p){p&&(Awr(o,p),wwr(o,p),Iwr(o,p),Nwr(o,p),Co(o)?(cJ(p,x.Class_name_cannot_be_0),o.flags&33554432||lIr(p)):CA(o)&&cJ(p,x.Enum_name_cannot_be_0))}function Fwr(o){if((f6(o)&7)!==0||hA(o))return;let p=$i(o);if(p.flags&1){if(!ct(o.name))return $.fail();let m=$t(o,o.name.escapedText,3,void 0,!1);if(m&&m!==p&&m.flags&2&&j$e(m)&7){let v=mA(m.valueDeclaration,262),E=v.parent.kind===244&&v.parent.parent?v.parent.parent:void 0;if(!(E&&(E.kind===242&&Rs(E.parent)||E.kind===269||E.kind===268||E.kind===308))){let R=Ua(m);gt(o,x.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,R,R)}}}}function $Z(o){return o===Zt?at:o===uf?If:o}function xce(o){var p;if(vce(o),Vc(o)||Pc(o.type),!o.name)return;if(o.name.kind===168&&(sv(o.name),j4(o)&&o.initializer&&Bp(o.initializer)),Vc(o)){if(o.propertyName&&ct(o.name)&&hA(o)&&Op(My(o).body)){o2.push(o);return}$y(o.parent)&&o.dotDotDotToken&&re1&&Pt(m.declarations,D=>D!==o&&_U(D)&&!$At(D,o))&>(o.name,x.All_declarations_of_0_must_have_identical_modifiers,du(o.name))}else{let E=$Z(E7(o));!si(v)&&!si(E)&&!cT(v,E)&&!(m.flags&67108864)&&BAt(m.valueDeclaration,v,o,E),j4(o)&&o.initializer&&l6(Bp(o.initializer),E,o,o.initializer,void 0),m.valueDeclaration&&!$At(o,m.valueDeclaration)&>(o.name,x.All_declarations_of_0_must_have_identical_modifiers,du(o.name))}o.kind!==173&&o.kind!==172&&(RZ(o),(o.kind===261||o.kind===209)&&Fwr(o),sJ(o,o.name))}function BAt(o,p,m,v){let E=cs(m),D=m.kind===173||m.kind===172?x.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:x.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,R=du(E),K=gt(E,D,R,ri(p),ri(v));o&&ac(K,xi(o,x._0_was_also_declared_here,R))}function $At(o,p){if(o.kind===170&&p.kind===261||o.kind===261&&p.kind===170)return!0;if(VO(o)!==VO(p))return!1;let m=1358;return QO(o,m)===QO(p,m)}function Rwr(o){var p,m;(p=hi)==null||p.push(hi.Phase.Check,"checkVariableDeclaration",{kind:o.kind,pos:o.pos,end:o.end,path:o.tracingPath}),h6r(o),xce(o),(m=hi)==null||m.pop()}function Lwr(o){return d6r(o),xce(o)}function qTe(o){let p=dd(o)&7;(p===4||p===6)&&re=2,K=!R&&Q.downlevelIteration,se=Q.noUncheckedIndexedAccess&&!!(o&128);if(R||K||D){let yt=VTe(p,o,R?v:void 0);if(E&&yt){let Jt=o&8?x.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:o&32?x.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:o&64?x.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:o&16?x.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;Jt&&pm(m,yt.nextType,v,Jt)}if(yt||R)return se?vZ(yt&&yt.yieldType):yt&&yt.yieldType}let ce=p,fe=!1;if(o&4){if(ce.flags&1048576){let yt=p.types,Jt=yr(yt,Xt=>!(Xt.flags&402653316));Jt!==yt&&(ce=Do(Jt,2))}else ce.flags&402653316&&(ce=tn);if(fe=ce!==p,fe&&ce.flags&131072)return se?vZ(Mt):Mt}if(!YE(ce)){if(v){let yt=!!(o&4)&&!fe,[Jt,Xt]=Me(yt,K);RE(v,Xt&&!!oJ(ce),Jt,ri(ce))}return fe?se?vZ(Mt):Mt:void 0}let Ue=vw(ce,Ir);if(fe&&Ue)return Ue.flags&402653316&&!Q.noUncheckedIndexedAccess?Mt:Do(se?[Ue,Mt,Ne]:[Ue,Mt],2);return o&128?vZ(Ue):Ue;function Me(yt,Jt){var Xt;return Jt?yt?[x.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[x.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:RUe(o,0,p,void 0)?[x.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:Gwr((Xt=p.symbol)==null?void 0:Xt.escapedName)?[x.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:yt?[x.Type_0_is_not_an_array_type_or_a_string_type,!0]:[x.Type_0_is_not_an_array_type,!0]}}function Gwr(o){switch(o){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function RUe(o,p,m,v){if(Mi(m))return;let E=VTe(m,o,v);return E&&E[p_t(p)]}function aD(o=tn,p=tn,m=er){if(o.flags&67359327&&p.flags&180227&&m.flags&180227){let v=b1([o,p,m]),E=Bl.get(v);return E||(E={yieldType:o,returnType:p,nextType:m},Bl.set(v,E)),E}return{yieldType:o,returnType:p,nextType:m}}function UAt(o){let p,m,v;for(let E of o)if(!(E===void 0||E===xc)){if(E===ep)return ep;p=jt(p,E.yieldType),m=jt(m,E.returnType),v=jt(v,E.nextType)}return p||m||v?aD(p&&Do(p),m&&Do(m),v&&Ac(v)):xc}function JTe(o,p){return o[p]}function uT(o,p,m){return o[p]=m}function VTe(o,p,m){var v,E;if(o===lr)return W_;if(Mi(o))return ep;if(!(o.flags&1048576)){let ce=m?{errors:void 0,skipLogging:!0}:void 0,fe=zAt(o,p,m,ce);if(fe===xc){if(m){let Ue=MUe(m,o,!!(p&2));ce?.errors&&ac(Ue,...ce.errors)}return}else if((v=ce?.errors)!=null&&v.length)for(let Ue of ce.errors)il.add(Ue);return fe}let D=p&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",R=JTe(o,D);if(R)return R===xc?void 0:R;let K;for(let ce of o.types){let fe=m?{errors:void 0}:void 0,Ue=zAt(ce,p,m,fe);if(Ue===xc){if(m){let Me=MUe(m,o,!!(p&2));fe?.errors&&ac(Me,...fe.errors)}uT(o,D,xc);return}else if((E=fe?.errors)!=null&&E.length)for(let Me of fe.errors)il.add(Me);K=jt(K,Ue)}let se=K?UAt(K):xc;return uT(o,D,se),se===xc?void 0:se}function LUe(o,p){if(o===xc)return xc;if(o===ep)return ep;let{yieldType:m,returnType:v,nextType:E}=o;return p&&sBe(!0),aD(j7(m,p)||at,j7(v,p)||at,E)}function zAt(o,p,m,v){if(Mi(o))return ep;let E=!1;if(p&2){let D=qAt(o,g_)||JAt(o,g_);if(D)if(D===xc&&m)E=!0;else return p&8?LUe(D,m):D}if(p&1){let D=qAt(o,xu)||JAt(o,xu);if(D)if(D===xc&&m)E=!0;else if(p&2){if(D!==xc)return D=LUe(D,m),E?D:uT(o,"iterationTypesOfAsyncIterable",D)}else return D}if(p&2){let D=WAt(o,g_,m,v,E);if(D!==xc)return D}if(p&1){let D=WAt(o,xu,m,v,E);if(D!==xc)return p&2?(D=LUe(D,m),E?D:uT(o,"iterationTypesOfAsyncIterable",D)):D}return xc}function qAt(o,p){return JTe(o,p.iterableCacheKey)}function JAt(o,p){if(Xg(o,p.getGlobalIterableType(!1))||Xg(o,p.getGlobalIteratorObjectType(!1))||Xg(o,p.getGlobalIterableIteratorType(!1))||Xg(o,p.getGlobalGeneratorType(!1))){let[m,v,E]=Bu(o);return uT(o,p.iterableCacheKey,aD(p.resolveIterationType(m,void 0)||m,p.resolveIterationType(v,void 0)||v,E))}if(lxe(o,p.getGlobalBuiltinIteratorTypes())){let[m]=Bu(o),v=aBe(),E=er;return uT(o,p.iterableCacheKey,aD(p.resolveIterationType(m,void 0)||m,p.resolveIterationType(v,void 0)||v,E))}}function VAt(o){let p=uEt(!1),m=p&&en(di(p),dp(o));return m&&b0(m)?x0(m):`__@${o}`}function WAt(o,p,m,v,E){let D=vc(o,VAt(p.iteratorSymbolName)),R=D&&!(D.flags&16777216)?di(D):void 0;if(Mi(R))return E?ep:uT(o,p.iterableCacheKey,ep);let K=R?Gs(R,0):void 0,se=yr(K,Ue=>Jv(Ue)===0);if(!Pt(se))return m&&Pt(K)&&pm(o,p.getGlobalIterableType(!0),m,void 0,void 0,v),E?xc:uT(o,p.iterableCacheKey,xc);let ce=Ac(Cr(se,Tl)),fe=GAt(ce,p,m,v,E)??xc;return E?fe:uT(o,p.iterableCacheKey,fe)}function MUe(o,p,m){let v=m?x.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:x.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,E=!!oJ(p)||!m&&$H(o.parent)&&o.parent.expression===o&&bse(!1)!==Ar&&tc(p,Vq(bse(!1),[at,at,at]));return RE(o,E,v,ri(p))}function Hwr(o,p,m,v){return GAt(o,p,m,v,!1)}function GAt(o,p,m,v,E){if(Mi(o))return ep;let D=Kwr(o,p)||Qwr(o,p);return D===xc&&m&&(D=void 0,E=!0),D??(D=eIr(o,p,m,v,E)),D===xc?void 0:D}function Kwr(o,p){return JTe(o,p.iteratorCacheKey)}function Qwr(o,p){if(Xg(o,p.getGlobalIterableIteratorType(!1))||Xg(o,p.getGlobalIteratorType(!1))||Xg(o,p.getGlobalIteratorObjectType(!1))||Xg(o,p.getGlobalGeneratorType(!1))){let[m,v,E]=Bu(o);return uT(o,p.iteratorCacheKey,aD(m,v,E))}if(lxe(o,p.getGlobalBuiltinIteratorTypes())){let[m]=Bu(o),v=aBe(),E=er;return uT(o,p.iteratorCacheKey,aD(m,v,E))}}function HAt(o,p){let m=en(o,"done")||Rn;return tc(p===0?Rn:Rt,m)}function Zwr(o){return HAt(o,0)}function Xwr(o){return HAt(o,1)}function Ywr(o){if(Mi(o))return ep;let p=JTe(o,"iterationTypesOfIteratorResult");if(p)return p;if(Xg(o,Sxr(!1))){let R=Bu(o)[0];return uT(o,"iterationTypesOfIteratorResult",aD(R,void 0,void 0))}if(Xg(o,bxr(!1))){let R=Bu(o)[0];return uT(o,"iterationTypesOfIteratorResult",aD(void 0,R,void 0))}let m=G_(o,Zwr),v=m!==tn?en(m,"value"):void 0,E=G_(o,Xwr),D=E!==tn?en(E,"value"):void 0;return!v&&!D?uT(o,"iterationTypesOfIteratorResult",xc):uT(o,"iterationTypesOfIteratorResult",aD(v,D||pn,void 0))}function jUe(o,p,m,v,E){var D,R,K,se;let ce=vc(o,m);if(!ce&&m!=="next")return;let fe=ce&&!(m==="next"&&ce.flags&16777216)?m==="next"?di(ce):M0(di(ce),2097152):void 0;if(Mi(fe))return ep;let Ue=fe?Gs(fe,0):j;if(Ue.length===0){if(v){let sn=m==="next"?p.mustHaveANextMethodDiagnostic:p.mustBeAMethodDiagnostic;E?(E.errors??(E.errors=[]),E.errors.push(xi(v,sn,m))):gt(v,sn,m)}return m==="next"?xc:void 0}if(fe?.symbol&&Ue.length===1){let sn=p.getGlobalGeneratorType(!1),rn=p.getGlobalIteratorType(!1),vi=((R=(D=sn.symbol)==null?void 0:D.members)==null?void 0:R.get(m))===fe.symbol,wo=!vi&&((se=(K=rn.symbol)==null?void 0:K.members)==null?void 0:se.get(m))===fe.symbol;if(vi||wo){let Fa=vi?sn:rn,{mapper:ho}=fe;return aD(XE(Fa.typeParameters[0],ho),XE(Fa.typeParameters[1],ho),m==="next"?XE(Fa.typeParameters[2],ho):void 0)}}let Me,yt;for(let sn of Ue)m!=="throw"&&Pt(sn.parameters)&&(Me=jt(Me,qv(sn,0))),yt=jt(yt,Tl(sn));let Jt,Xt;if(m!=="throw"){let sn=Me?Do(Me):er;if(m==="next")Xt=sn;else if(m==="return"){let rn=p.resolveIterationType(sn,v)||at;Jt=jt(Jt,rn)}}let kr,on=yt?Ac(yt):tn,Hn=p.resolveIterationType(on,v)||at,fi=Ywr(Hn);return fi===xc?(v&&(E?(E.errors??(E.errors=[]),E.errors.push(xi(v,p.mustHaveAValueDiagnostic,m))):gt(v,p.mustHaveAValueDiagnostic,m)),kr=at,Jt=jt(Jt,at)):(kr=fi.yieldType,Jt=jt(Jt,fi.returnType)),aD(kr,Do(Jt),Xt)}function eIr(o,p,m,v,E){let D=UAt([jUe(o,p,"next",m,v),jUe(o,p,"return",m,v),jUe(o,p,"throw",m,v)]);return E?D:uT(o,p.iteratorCacheKey,D)}function rk(o,p,m){if(Mi(p))return;let v=BUe(p,m);return v&&v[p_t(o)]}function BUe(o,p){if(Mi(o))return ep;let m=p?2:1,v=p?g_:xu;return VTe(o,m,void 0)||Hwr(o,v,void 0,void 0)}function tIr(o){k2(o)||_6r(o)}function Ece(o,p){let m=!!(p&1),v=!!(p&2);if(m){let E=rk(1,o,v);return E?v?E2(aJ(E)):E:Et}return v?E2(o)||Et:o}function KAt(o,p){let m=Ece(p,A_(o));return!!(m&&(s_(m,16384)||m.flags&32769))}function rIr(o){if(k2(o))return;let p=gre(o);if(p&&n_(p)){mf(o,x.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!p){mf(o,x.A_return_statement_can_only_be_used_within_a_function_body);return}let m=t0(p),v=Tl(m);if(be||o.expression||v.flags&131072){let E=o.expression?Bp(o.expression):Ne;if(p.kind===179)o.expression&>(o,x.Setters_cannot_return_a_value);else if(p.kind===177){let D=o.expression?Bp(o.expression):Ne;o.expression&&!l6(D,v,o,o.expression)&>(o,x.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class)}else if(RM(p)){let D=Ece(v,A_(p))??v;WTe(p,D,o,o.expression,E)}}else p.kind!==177&&Q.noImplicitReturns&&!KAt(p,v)&>(o,x.Not_all_code_paths_return_a_value)}function WTe(o,p,m,v,E,D=!1){let R=Ei(m),K=A_(o);if(v){let Me=bl(v,R);if(a3(Me)){WTe(o,p,m,Me.whenTrue,Va(Me.whenTrue),!0),WTe(o,p,m,Me.whenFalse,Va(Me.whenFalse),!0);return}}let se=m.kind===254,ce=K&2?yce(E,!1,m,x.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):E,fe=v&&DTe(v);l6(ce,p,se&&!D?m:fe,fe)}function nIr(o){k2(o)||o.flags&65536&&mf(o,x.with_statements_are_not_allowed_in_an_async_function_block),Va(o.expression);let p=Pn(o);if(!sD(p)){let m=gS(p,o.pos).start,v=o.statement.pos;Iw(p,m,v-m,x.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function iIr(o){k2(o);let p,m=!1,v=Va(o.expression);X(o.caseBlock.clauses,E=>{E.kind===298&&!m&&(p===void 0?p=E:(mn(E,x.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),m=!0)),E.kind===297&&a(D(E)),X(E.statements,Pc),Q.noFallthroughCasesInSwitch&&E.fallthroughFlowNode&&Wse(E.fallthroughFlowNode)&>(E,x.Fallthrough_case_in_switch);function D(R){return()=>{let K=Va(R.expression);vUe(v,K)||_kt(K,v,R.expression,void 0)}}}),o.caseBlock.locals&&oD(o.caseBlock)}function oIr(o){k2(o)||fn(o.parent,p=>Rs(p)?"quit":p.kind===257&&p.label.escapedText===o.label.escapedText?(mn(o.label,x.Duplicate_label_0,Sp(o.label)),!0):!1),Pc(o.statement)}function aIr(o){k2(o)||ct(o.expression)&&!o.expression.escapedText&&C6r(o,x.Line_break_not_permitted_here),o.expression&&Va(o.expression)}function sIr(o){k2(o),zTe(o.tryBlock);let p=o.catchClause;if(p){if(p.variableDeclaration){let m=p.variableDeclaration;xce(m);let v=X_(m);if(v){let E=Sa(v);E&&!(E.flags&3)&&mf(v,x.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(m.initializer)mf(m.initializer,x.Catch_clause_variable_cannot_have_an_initializer);else{let E=p.block.locals;E&&Ix(p.locals,D=>{let R=E.get(D);R?.valueDeclaration&&(R.flags&2)!==0&&mn(R.valueDeclaration,x.Cannot_redeclare_identifier_0_in_catch_clause,oa(D))})}}zTe(p.block)}o.finallyBlock&&zTe(o.finallyBlock)}function GTe(o,p,m){let v=lm(o);if(v.length===0)return;for(let D of KE(o))m&&D.flags&4194304||QAt(o,D,A7(D,8576,!0),Lv(D));let E=p.valueDeclaration;if(E&&Co(E)){for(let D of E.members)if((!m&&!oc(D)||m&&oc(D))&&!OM(D)){let R=$i(D);QAt(o,R,Kf(D.name.expression),Lv(R))}}if(v.length>1)for(let D of v)cIr(o,D)}function QAt(o,p,m,v){let E=p.valueDeclaration,D=cs(E);if(D&&Aa(D))return;let R=Gje(o,m),K=ro(o)&2?Qu(o.symbol,265):void 0,se=E&&E.kind===227||D&&D.kind===168?E:void 0,ce=Od(p)===o.symbol?E:void 0;for(let fe of R){let Ue=fe.declaration&&Od($i(fe.declaration))===o.symbol?fe.declaration:void 0,Me=ce||Ue||(K&&!Pt(ov(o),yt=>!!t6(yt,p.escapedName)&&!!vw(yt,fe.keyType))?K:void 0);if(Me&&!tc(v,fe.type)){let yt=qP(Me,x.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Ua(p),ri(v),ri(fe.keyType),ri(fe.type));se&&Me!==se&&ac(yt,xi(se,x._0_is_declared_here,Ua(p))),il.add(yt)}}}function cIr(o,p){let m=p.declaration,v=Gje(o,p.keyType),E=ro(o)&2?Qu(o.symbol,265):void 0,D=m&&Od($i(m))===o.symbol?m:void 0;for(let R of v){if(R===p)continue;let K=R.declaration&&Od($i(R.declaration))===o.symbol?R.declaration:void 0,se=D||K||(E&&!Pt(ov(o),ce=>!!oT(ce,p.keyType)&&!!vw(ce,R.keyType))?E:void 0);se&&!tc(p.type,R.type)&>(se,x._0_index_type_1_is_not_assignable_to_2_index_type_3,ri(p.keyType),ri(p.type),ri(R.keyType),ri(R.type))}}function cJ(o,p){switch(o.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":case"undefined":gt(o,p,o.escapedText)}}function lIr(o){re>=1&&o.escapedText==="Object"&&t.getEmitModuleFormatOfFile(Pn(o))<5&>(o,x.Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0,tE[ae])}function uIr(o){let p=yr(sA(o),Uy);if(!te(p))return;let m=Ei(o),v=new Set,E=new Set;if(X(o.parameters,({name:R},K)=>{ct(R)&&v.add(R.escapedText),$s(R)&&E.add(K)}),Kje(o)){let R=p.length-1,K=p[R];m&&K&&ct(K.name)&&K.typeExpression&&K.typeExpression.type&&!v.has(K.name.escapedText)&&!E.has(R)&&!L0(Sa(K.typeExpression.type))&>(K.name,x.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Zi(K.name))}else X(p,({name:R,isNameFirst:K},se)=>{E.has(se)||ct(R)&&v.has(R.escapedText)||(dh(R)?m&>(R,x.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Rg(R),Rg(R.left)):K||Y1(m,R,x.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Zi(R)))})}function kce(o){let p=!1;if(o)for(let v=0;v{v.default?(p=!0,pIr(v.default,o,E)):p&>(v,x.Required_type_parameters_may_not_follow_optional_type_parameters);for(let D=0;Dv)return!1;for(let se=0;sefd(m)&&Tm(m))&&mn(p,x.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!o.name&&!ko(o,2048)&&mf(o,x.A_class_declaration_without_the_default_modifier_must_have_a_name),ewt(o),X(o.members,Pc),oD(o)}function ewt(o){ZPr(o),vce(o),sJ(o,o.name),kce(Zk(o)),RZ(o);let p=$i(o),m=Tu(p),v=Yg(m),E=di(p);ZAt(p),BTe(p),DAr(o),o.flags&33554432||AAr(o);let R=vv(o);if(R){X(R.typeArguments,Pc),re{let Ue=fe[0],Me=d2(m),yt=nh(Me);if(gIr(yt,R),Pc(R.expression),Pt(R.typeArguments)){X(R.typeArguments,Pc);for(let Xt of iv(yt,R.typeArguments,R))if(!EAt(R,Xt.typeParameters))break}let Jt=Yg(Ue,m.thisType);if(pm(v,Jt,void 0)?pm(E,akt(yt),o.name||o,x.Class_static_side_0_incorrectly_extends_base_class_static_side_1):nwt(o,v,Jt,x.Class_0_incorrectly_extends_base_class_1),Me.flags&8650752&&(Of(E)?Gs(Me,1).some(kr=>kr.flags&4)&&!ko(o,64)&>(o.name||o,x.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):gt(o.name||o,x.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(yt.symbol&&yt.symbol.flags&32)&&!(Me.flags&8650752)){let Xt=nT(yt,R.typeArguments,R);X(Xt,kr=>!XS(kr.declaration)&&!cT(Tl(kr),Ue))&>(R.expression,x.Base_constructors_must_all_have_the_same_return_type)}SIr(m,Ue)})}hIr(o,m,v,E);let K=ZR(o);if(K)for(let ce of K)(!ru(ce.expression)||xm(ce.expression))&>(ce.expression,x.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),CUe(ce),a(se(ce));a(()=>{GTe(m,p),GTe(E,p,!0),EUe(o),TIr(o)});function se(ce){return()=>{let fe=S1(Sa(ce));if(!si(fe))if(use(fe)){let Ue=fe.symbol&&fe.symbol.flags&32?x.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:x.Class_0_incorrectly_implements_interface_1,Me=Yg(fe,m.thisType);pm(v,Me,void 0)||nwt(o,v,Me,Ue)}else gt(ce,x.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function hIr(o,p,m,v){let D=vv(o)&&ov(p),R=D?.length?Yg(To(D),p.thisType):void 0,K=d2(p);for(let se of o.members)vhe(se)||(kp(se)&&X(se.parameters,ce=>{ne(ce,se)&&twt(o,v,K,R,p,m,ce,!0)}),twt(o,v,K,R,p,m,se,!1))}function twt(o,p,m,v,E,D,R,K,se=!0){let ce=R.name&&B0(R.name)||B0(R);return ce?rwt(o,p,m,v,E,D,Wre(R),pP(R),oc(R),K,ce,se?R:void 0):0}function rwt(o,p,m,v,E,D,R,K,se,ce,fe,Ue){let Me=Ei(o),yt=!!(o.flags&33554432);if(R&&fe?.valueDeclaration&&J_(fe.valueDeclaration)&&fe.valueDeclaration.name&&y2t(fe.valueDeclaration.name))return gt(Ue,Me?x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:x.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic),2;if(v&&(R||Q.noImplicitOverride)){let Jt=se?p:D,Xt=se?m:v,kr=vc(Jt,fe.escapedName),on=vc(Xt,fe.escapedName),Hn=ri(v);if(kr&&!on&&R){if(Ue){let fi=pDt(vp(fe),Xt);fi?gt(Ue,Me?x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:x.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Hn,Ua(fi)):gt(Ue,Me?x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:x.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Hn)}return 2}else if(kr&&on?.declarations&&Q.noImplicitOverride&&!yt){let fi=Pt(on.declarations,pP);if(R)return 0;if(fi){if(K&&fi)return Ue&>(Ue,x.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Hn),1}else{if(Ue){let sn=ce?Me?x.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:x.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Me?x.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:x.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;gt(Ue,sn,Hn)}return 1}}}else if(R){if(Ue){let Jt=ri(E);gt(Ue,Me?x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:x.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,Jt)}return 2}return 0}function nwt(o,p,m,v){let E=!1;for(let D of o.members){if(oc(D))continue;let R=D.name&&B0(D.name)||B0(D);if(R){let K=vc(p,R.escapedName),se=vc(m,R.escapedName);if(K&&se){let ce=()=>ws(void 0,x.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Ua(R),ri(p),ri(m));pm(di(K),di(se),D.name||D,void 0,ce)||(E=!0)}}}E||pm(p,m,o.name||o,v)}function gIr(o,p){let m=Gs(o,1);if(m.length){let v=m[0].declaration;if(v&&Bg(v,2)){let E=JT(o.symbol);VUe(p,E)||gt(p,x.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,$E(o.symbol))}}}function yIr(o,p,m){if(!p.name)return 0;let v=$i(o),E=Tu(v),D=Yg(E),R=di(v),se=vv(o)&&ov(E),ce=se?.length?Yg(To(se),E.thisType):void 0,fe=d2(E),Ue=p.parent?Wre(p):ko(p,16);return rwt(o,R,fe,ce,E,D,Ue,pP(p),oc(p),!1,m)}function ZM(o){return Fp(o)&1?o.links.target:o}function vIr(o){return yr(o.declarations,p=>p.kind===264||p.kind===265)}function SIr(o,p){var m,v,E,D,R;let K=$l(p),se=new Map;e:for(let ce of K){let fe=ZM(ce);if(fe.flags&4194304)continue;let Ue=t6(o,fe.escapedName);if(!Ue)continue;let Me=ZM(Ue),yt=S0(fe);if($.assert(!!Me,"derived should point to something, even if it is the base class' declaration."),Me===fe){let Jt=JT(o.symbol);if(yt&64&&(!Jt||!ko(Jt,64))){for(let fi of ov(o)){if(fi===p)continue;let sn=t6(fi,fe.escapedName),rn=sn&&ZM(sn);if(rn&&rn!==fe)continue e}let Xt=ri(p),kr=ri(o),on=Ua(ce),Hn=jt((m=se.get(Jt))==null?void 0:m.missedProperties,on);se.set(Jt,{baseTypeName:Xt,typeName:kr,missedProperties:Hn})}}else{let Jt=S0(Me);if(yt&2||Jt&2)continue;let Xt,kr=fe.flags&98308,on=Me.flags&98308;if(kr&&on){if((Fp(fe)&6?(v=fe.declarations)!=null&&v.some(sn=>iwt(sn,yt)):(E=fe.declarations)!=null&&E.every(sn=>iwt(sn,yt)))||Fp(fe)&262144||Me.valueDeclaration&&wi(Me.valueDeclaration))continue;let Hn=kr!==4&&on===4;if(Hn||kr===4&&on!==4){let sn=Hn?x._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:x._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;gt(cs(Me.valueDeclaration)||Me.valueDeclaration,sn,Ua(fe),ri(p),ri(o))}else if(me){let sn=(D=Me.declarations)==null?void 0:D.find(rn=>rn.kind===173&&!rn.initializer);if(sn&&!(Me.flags&33554432)&&!(yt&64)&&!(Jt&64)&&!((R=Me.declarations)!=null&&R.some(rn=>!!(rn.flags&33554432)))){let rn=AH(JT(o.symbol)),vi=sn.name;if(sn.exclamationToken||!rn||!ct(vi)||!be||!awt(vi,o,rn)){let wo=x.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;gt(cs(Me.valueDeclaration)||Me.valueDeclaration,wo,Ua(fe),ri(p))}}}continue}else if(B$e(fe)){if(B$e(Me)||Me.flags&4)continue;$.assert(!!(Me.flags&98304)),Xt=x.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else fe.flags&98304?Xt=x.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Xt=x.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;gt(cs(Me.valueDeclaration)||Me.valueDeclaration,Xt,ri(p),Ua(fe),ri(o))}}for(let[ce,fe]of se)if(te(fe.missedProperties)===1)w_(ce)?gt(ce,x.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,To(fe.missedProperties),fe.baseTypeName):gt(ce,x.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,fe.typeName,To(fe.missedProperties),fe.baseTypeName);else if(te(fe.missedProperties)>5){let Ue=Cr(fe.missedProperties.slice(0,4),yt=>`'${yt}'`).join(", "),Me=te(fe.missedProperties)-4;w_(ce)?gt(ce,x.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,fe.baseTypeName,Ue,Me):gt(ce,x.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,fe.typeName,fe.baseTypeName,Ue,Me)}else{let Ue=Cr(fe.missedProperties,Me=>`'${Me}'`).join(", ");w_(ce)?gt(ce,x.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,fe.baseTypeName,Ue):gt(ce,x.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,fe.typeName,fe.baseTypeName,Ue)}}function iwt(o,p){return p&64&&(!ps(o)||!o.initializer)||Af(o.parent)}function bIr(o,p,m){if(!te(p))return m;let v=new Map;X(m,E=>{v.set(E.escapedName,E)});for(let E of p){let D=$l(Yg(E,o.thisType));for(let R of D){let K=v.get(R.escapedName);K&&R.parent===K.parent&&v.delete(R.escapedName)}}return so(v.values())}function xIr(o,p){let m=ov(o);if(m.length<2)return!0;let v=new Map;X(Nje(o).declaredProperties,D=>{v.set(D.escapedName,{prop:D,containingType:o})});let E=!0;for(let D of m){let R=$l(Yg(D,o.thisType));for(let K of R){let se=v.get(K.escapedName);if(!se)v.set(K.escapedName,{prop:K,containingType:D});else if(se.containingType!==o&&!m2r(se.prop,K)){E=!1;let fe=ri(se.containingType),Ue=ri(D),Me=ws(void 0,x.Named_property_0_of_types_1_and_2_are_not_identical,Ua(K),fe,Ue);Me=ws(Me,x.Interface_0_cannot_simultaneously_extend_types_1_and_2,ri(o),fe,Ue),il.add(Nx(Pn(p),p,Me))}}}return E}function TIr(o){if(!be||!Ce||o.flags&33554432)return;let p=AH(o);for(let m of o.members)if(!(tm(m)&128)&&!oc(m)&&owt(m)){let v=m.name;if(ct(v)||Aa(v)||dc(v)){let E=di($i(m));E.flags&3||UM(E)||(!p||!awt(v,E,p))&>(m.name,x.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,du(v))}}}function owt(o){return o.kind===173&&!pP(o)&&!o.exclamationToken&&!o.initializer}function EIr(o,p,m,v,E){for(let D of m)if(D.pos>=v&&D.pos<=E){let R=W.createPropertyAccessExpression(W.createThis(),o);xl(R.expression,R),xl(R,D),R.flowNode=D.returnFlowNode;let K=T2(R,p,nD(p));if(!UM(K))return!0}return!1}function awt(o,p,m){let v=dc(o)?W.createElementAccessExpression(W.createThis(),o.expression):W.createPropertyAccessExpression(W.createThis(),o);xl(v.expression,v),xl(v,m),v.flowNode=m.returnFlowNode;let E=T2(v,p,nD(p));return!UM(E)}function kIr(o){pT(o)||i6r(o),s2e(o.parent)||mn(o,x._0_declarations_can_only_be_declared_inside_a_block,"interface"),kce(o.typeParameters),a(()=>{cJ(o.name,x.Interface_name_cannot_be_0),RZ(o);let p=$i(o);ZAt(p);let m=Qu(p,265);if(o===m){let v=Tu(p),E=Yg(v);if(xIr(v,o.name)){for(let D of ov(v))pm(E,Yg(D,v.thisType),o.name,x.Interface_0_incorrectly_extends_interface_1);GTe(v,p)}}SAt(o)}),X(kU(o),p=>{(!ru(p.expression)||xm(p.expression))&>(p.expression,x.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),CUe(p)}),X(o.members,Pc),a(()=>{EUe(o),oD(o)})}function CIr(o){if(pT(o),cJ(o.name,x.Type_alias_name_cannot_be_0),s2e(o.parent)||mn(o,x._0_declarations_can_only_be_declared_inside_a_block,"type"),RZ(o),kce(o.typeParameters),o.type.kind===141){let p=te(o.typeParameters);(p===0?o.name.escapedText==="BuiltinIteratorReturn":p===1&&Gye.has(o.name.escapedText))||gt(o.type,x.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else Pc(o.type),oD(o)}function swt(o){let p=Ki(o);if(!(p.flags&1024)){p.flags|=1024;let m=0,v;for(let E of o.members){let D=DIr(E,m,v);Ki(E).enumMemberValue=D,m=typeof D.value=="number"?D.value+1:void 0,v=E}}}function DIr(o,p,m){if(TG(o.name))gt(o.name,x.Computed_property_names_are_not_allowed_in_enums);else if(dL(o.name))gt(o.name,x.An_enum_member_cannot_have_a_numeric_name);else{let v=UO(o.name);$x(v)&&!ZU(v)&>(o.name,x.An_enum_member_cannot_have_a_numeric_name)}if(o.initializer)return AIr(o);if(o.parent.flags&33554432&&!lA(o.parent))return wd(void 0);if(p===void 0)return gt(o.name,x.Enum_member_must_have_initializer),wd(void 0);if(a1(Q)&&m?.initializer){let v=kN(m);typeof v.value=="number"&&!v.resolvedOtherFiles||gt(o.name,x.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return wd(p)}function AIr(o){let p=lA(o.parent),m=o.initializer,v=nt(m,o);return v.value!==void 0?p&&typeof v.value=="number"&&!isFinite(v.value)?gt(m,isNaN(v.value)?x.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:x.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a1(Q)&&typeof v.value=="string"&&!v.isSyntacticallyString&>(m,x._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${Zi(o.parent.name)}.${UO(o.name)}`):p?gt(m,x.const_enum_member_initializers_must_be_constant_expressions):o.parent.flags&33554432?gt(m,x.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):pm(Va(m),Ir,m,x.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),v}function cwt(o,p){let m=jp(o,111551,!0);if(!m)return wd(void 0);if(o.kind===80){let v=o;if(ZU(v.escapedText)&&m===BM(v.escapedText,111551,void 0))return wd(+v.escapedText,!1)}if(m.flags&8)return p?lwt(o,m,p):kN(m.valueDeclaration);if(F7(m)){let v=m.valueDeclaration;if(v&&Oo(v)&&!v.type&&v.initializer&&(!p||v!==p&&l2(v,p))){let E=nt(v.initializer,v);return p&&Pn(p)!==Pn(v)?wd(E.value,!1,!0,!0):wd(E.value,E.isSyntacticallyString,E.resolvedOtherFiles,!0)}}return wd(void 0)}function wIr(o,p){let m=o.expression;if(ru(m)&&Sl(o.argumentExpression)){let v=jp(m,111551,!0);if(v&&v.flags&384){let E=dp(o.argumentExpression.text),D=v.exports.get(E);if(D)return $.assert(Pn(D.valueDeclaration)===Pn(v.valueDeclaration)),p?lwt(o,D,p):kN(D.valueDeclaration)}}return wd(void 0)}function lwt(o,p,m){let v=p.valueDeclaration;if(!v||v===m)return gt(o,x.Property_0_is_used_before_being_assigned,Ua(p)),wd(void 0);if(!l2(v,m))return gt(o,x.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),wd(0);let E=kN(v);return m.parent!==v.parent?wd(E.value,E.isSyntacticallyString,E.resolvedOtherFiles,!0):E}function IIr(o){a(()=>PIr(o))}function PIr(o){pT(o),sJ(o,o.name),RZ(o),o.members.forEach(Pc),Q.erasableSyntaxOnly&&!(o.flags&33554432)&>(o,x.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),swt(o);let p=$i(o),m=Qu(p,o.kind);if(o===m){if(p.declarations&&p.declarations.length>1){let E=lA(o);X(p.declarations,D=>{CA(D)&&lA(D)!==E&>(cs(D),x.Enum_declarations_must_all_be_const_or_non_const)})}let v=!1;X(p.declarations,E=>{if(E.kind!==267)return!1;let D=E;if(!D.members.length)return!1;let R=D.members[0];R.initializer||(v?gt(R.name,x.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):v=!0)})}}function NIr(o){Aa(o.name)&>(o,x.An_enum_member_cannot_be_named_with_a_private_identifier),o.initializer&&Va(o.initializer)}function OIr(o){let p=o.declarations;if(p){for(let m of p)if((m.kind===264||m.kind===263&&t1(m.body))&&!(m.flags&33554432))return m}}function FIr(o,p){let m=yv(o),v=yv(p);return uE(m)?uE(v):uE(v)?!1:m===v}function RIr(o){o.body&&(Pc(o.body),xb(o)||oD(o)),a(p);function p(){var m,v;let E=xb(o),D=o.flags&33554432;E&&!D&>(o.name,x.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);let R=Gm(o),K=R?x.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:x.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(Cce(o,K))return;if(pT(o)||!D&&o.name.kind===11&&mn(o.name,x.Only_ambient_modules_can_use_quoted_names),ct(o.name)&&(sJ(o,o.name),!(o.flags&2080))){let ce=Pn(o),fe=YPe(o),Ue=gS(ce,fe);L3.add(md(ce,Ue.start,Ue.length,x.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}RZ(o);let se=$i(o);if(se.flags&512&&!D&&Hye(o,dC(Q))){if(Q.erasableSyntaxOnly&>(o.name,x.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),a1(Q)&&!Pn(o).externalModuleIndicator&>(o.name,x.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Qe),((m=se.declarations)==null?void 0:m.length)>1){let ce=OIr(se);ce&&(Pn(o)!==Pn(ce)?gt(o.name,x.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):o.posfe.kind===95);ce&>(ce,x.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(R)if(eP(o)){if((E||$i(o).flags&33554432)&&o.body)for(let fe of o.body.statements)$Ue(fe,E)}else uE(o.parent)?E?gt(o.name,x.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):vt(g0(o.name))&>(o.name,x.Ambient_module_declaration_cannot_specify_relative_module_name):E?gt(o.name,x.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):gt(o.name,x.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function $Ue(o,p){switch(o.kind){case 244:for(let v of o.declarationList.declarations)$Ue(v,p);break;case 278:case 279:mf(o,x.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 272:if(z4(o))break;case 273:mf(o,x.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 209:case 261:let m=o.name;if($s(m)){for(let v of m.elements)$Ue(v,p);break}case 264:case 267:case 263:case 265:case 268:case 266:if(p)return;break}}function LIr(o){switch(o.kind){case 80:return o;case 167:do o=o.left;while(o.kind!==80);return o;case 212:do{if(Fx(o.expression)&&!Aa(o.name))return o.name;o=o.expression}while(o.kind!==80);return o}}function HTe(o){let p=JO(o);if(!p||Op(p))return!1;if(!Ic(p))return gt(p,x.String_literal_expected),!1;let m=o.parent.kind===269&&Gm(o.parent.parent);if(o.parent.kind!==308&&!m)return gt(p,o.kind===279?x.Export_declarations_are_not_permitted_in_a_namespace:x.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(m&&vt(p.text)&&!Nq(o))return gt(o,x.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!gd(o)&&o.attributes){let v=o.attributes.token===118?x.Import_attribute_values_must_be_string_literal_expressions:x.Import_assertion_values_must_be_string_literal_expressions,E=!1;for(let D of o.attributes.elements)Ic(D.value)||(E=!0,gt(D.value,v));return!E}return!0}function KTe(o,p=!0){o===void 0||o.kind!==11||(p?(ae===5||ae===6)&&mn(o,x.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):mn(o,x.Identifier_expected))}function QTe(o){var p,m,v,E,D;let R=$i(o),K=df(R);if(K!==ye){if(R=cl(R.exportSymbol||R),Ei(o)&&!(K.flags&111551)&&!cE(o)){let fe=Yk(o)?o.propertyName||o.name:Vp(o)?o.name:o;if($.assert(o.kind!==281),o.kind===282){let Ue=gt(fe,x.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Me=(m=(p=Pn(o).symbol)==null?void 0:p.exports)==null?void 0:m.get(YI(o.propertyName||o.name));if(Me===K){let yt=(v=Me.declarations)==null?void 0:v.find(LR);yt&&ac(Ue,xi(yt,x._0_is_automatically_exported_here,oa(Me.escapedName)))}}else{$.assert(o.kind!==261);let Ue=fn(o,jf(fp,gd)),Me=(Ue&&((E=qO(Ue))==null?void 0:E.text))??"...",yt=oa(ct(fe)?fe.escapedText:R.escapedName);gt(fe,x._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,yt,`import("${Me}").${yt}`)}return}let se=Zh(K),ce=(R.flags&1160127?111551:0)|(R.flags&788968?788968:0)|(R.flags&1920?1920:0);if(se&ce){let fe=o.kind===282?x.Export_declaration_conflicts_with_exported_declaration_of_0:x.Import_declaration_conflicts_with_local_declaration_of_0;gt(o,fe,Ua(R))}else o.kind!==282&&Q.isolatedModules&&!fn(o,cE)&&R.flags&1160127&>(o,x.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ua(R),Qe);if(a1(Q)&&!cE(o)&&!(o.flags&33554432)){let fe=Fv(R),Ue=!(se&111551);if(Ue||fe)switch(o.kind){case 274:case 277:case 272:{if(Q.verbatimModuleSyntax){$.assertIsDefined(o.name,"An ImportClause with a symbol should have a name");let Me=Q.verbatimModuleSyntax&&z4(o)?x.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Ue?x._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:x._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,yt=aC(o.kind===277&&o.propertyName||o.name);gs(gt(o,Me,yt),Ue?void 0:fe,yt)}Ue&&o.kind===272&&Bg(o,32)&>(o,x.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Qe);break}case 282:if(Q.verbatimModuleSyntax||Pn(fe)!==Pn(o)){let Me=aC(o.propertyName||o.name),yt=Ue?gt(o,x.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Qe):gt(o,x._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Me,Qe);gs(yt,Ue?void 0:fe,Me);break}}if(Q.verbatimModuleSyntax&&o.kind!==272&&!Ei(o)&&t.getEmitModuleFormatOfFile(Pn(o))===1?gt(o,M3(o)):ae===200&&o.kind!==272&&o.kind!==261&&t.getEmitModuleFormatOfFile(Pn(o))===1&>(o,x.ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),Q.verbatimModuleSyntax&&!cE(o)&&!(o.flags&33554432)&&se&128){let Me=K.valueDeclaration,yt=(D=t.getRedirectFromOutput(Pn(Me).resolvedPath))==null?void 0:D.resolvedRef;Me.flags&33554432&&(!yt||!dC(yt.commandLine.options))&>(o,x.Cannot_access_ambient_const_enums_when_0_is_enabled,Qe)}}if(Xm(o)){let fe=UUe(R,o);th(fe)&&fe.declarations&&g1(o,fe.declarations,fe.escapedName)}}}function UUe(o,p){if(!(o.flags&2097152)||th(o)||!Qh(o))return o;let m=df(o);if(m===ye)return m;for(;o.flags&2097152;){let v=gTe(o);if(v){if(v===m)break;if(v.declarations&&te(v.declarations))if(th(v)){g1(p,v.declarations,v.escapedName);break}else{if(o===m)break;o=v}}else break}return m}function ZTe(o){sJ(o,o.name),QTe(o),o.kind===277&&(KTe(o.propertyName),bb(o.propertyName||o.name)&&kS(Q)&&t.getEmitModuleFormatOfFile(Pn(o))<4&&Fd(o,131072))}function zUe(o){var p;let m=o.attributes;if(m){let v=iBe(!0);v!==kc&&pm(Tje(m),jse(v,32768),m);let E=P0e(o),D=$L(m,E?mn:void 0),R=o.attributes.token===118;if(E&&D)return;if(!N4e(ae))return mn(m,R?x.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:x.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve);if(102<=ae&&ae<=199&&!R)return mf(m,x.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);if(o.moduleSpecifier&&u2(o.moduleSpecifier)===1)return mn(m,R?x.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:x.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls);if(OS(o)||(fp(o)?(p=o.importClause)==null?void 0:p.isTypeOnly:o.isTypeOnly))return mn(m,R?x.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:x.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(D)return mn(m,x.resolution_mode_can_only_be_set_for_type_only_imports)}}function MIr(o){return ih(Bp(o.value))}function jIr(o){if(!Cce(o,Ei(o)?x.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:x.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!pT(o)&&o.modifiers&&mf(o,x.An_import_declaration_cannot_have_modifiers),HTe(o)){let p,m=o.importClause;m&&!A6r(m)?(m.name&&ZTe(m),m.namedBindings&&(m.namedBindings.kind===275?(ZTe(m.namedBindings),t.getEmitModuleFormatOfFile(Pn(o))<4&&kS(Q)&&Fd(o,65536)):(p=Nm(o,o.moduleSpecifier),p&&X(m.namedBindings.elements,ZTe))),!m.isTypeOnly&&101<=ae&&ae<=199&&zC(o.moduleSpecifier,p)&&!BIr(o)&>(o.moduleSpecifier,x.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,tE[ae])):ut&&!m&&Nm(o,o.moduleSpecifier)}zUe(o)}}function BIr(o){return!!o.attributes&&o.attributes.elements.some(p=>{var m;return g0(p.name)==="type"&&((m=Ci(p.value,Sl))==null?void 0:m.text)==="json"})}function $Ir(o){if(!Cce(o,Ei(o)?x.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:x.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(pT(o),Q.erasableSyntaxOnly&&!(o.flags&33554432)&>(o,x.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),z4(o)||HTe(o)))if(ZTe(o),R7(o,6),o.moduleReference.kind!==284){let p=df($i(o));if(p!==ye){let m=Zh(p);if(m&111551){let v=_h(o.moduleReference);jp(v,112575).flags&1920||gt(v,x.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,du(v))}m&788968&&cJ(o.name,x.Import_name_cannot_be_0)}o.isTypeOnly&&mn(o,x.An_import_alias_cannot_use_import_type)}else 5<=ae&&ae<=99&&!o.isTypeOnly&&!(o.flags&33554432)&&mn(o,x.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function UIr(o){if(!Cce(o,Ei(o)?x.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:x.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!pT(o)&&r4e(o)&&mf(o,x.An_export_declaration_cannot_have_modifiers),zIr(o),!o.moduleSpecifier||HTe(o))if(o.exportClause&&!Db(o.exportClause)){X(o.exportClause.elements,qIr);let p=o.parent.kind===269&&Gm(o.parent.parent),m=!p&&o.parent.kind===269&&!o.moduleSpecifier&&o.flags&33554432;o.parent.kind!==308&&!p&&!m&>(o,x.Export_declarations_are_not_permitted_in_a_namespace)}else{let p=Nm(o,o.moduleSpecifier);p&&rv(p)?gt(o.moduleSpecifier,x.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Ua(p)):o.exportClause&&(QTe(o.exportClause),KTe(o.exportClause.name)),t.getEmitModuleFormatOfFile(Pn(o))<4&&(o.exportClause?kS(Q)&&Fd(o,65536):Fd(o,32768))}zUe(o)}}function zIr(o){var p;return o.isTypeOnly&&((p=o.exportClause)==null?void 0:p.kind)===280?Jwt(o.exportClause):!1}function Cce(o,p){let m=o.parent.kind===308||o.parent.kind===269||o.parent.kind===268;return m||mf(o,p),!m}function qIr(o){QTe(o);let p=o.parent.parent.moduleSpecifier!==void 0;if(KTe(o.propertyName,p),KTe(o.name),fg(Q)&&IM(o.propertyName||o.name,!0),p)kS(Q)&&t.getEmitModuleFormatOfFile(Pn(o))<4&&bb(o.propertyName||o.name)&&Fd(o,131072);else{let m=o.propertyName||o.name;if(m.kind===11)return;let v=$t(m,m.escapedText,2998271,void 0,!0);v&&(v===ke||v===_t||v.declarations&&uE(ir(v.declarations[0])))?gt(m,x.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Zi(m)):R7(o,7)}}function JIr(o){let p=o.isExportEquals?x.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:x.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(Cce(o,p))return;Q.erasableSyntaxOnly&&o.isExportEquals&&!(o.flags&33554432)&>(o,x.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);let m=o.parent.kind===308?o.parent:o.parent.parent;if(m.kind===268&&!Gm(m)){o.isExportEquals?gt(o,x.An_export_assignment_cannot_be_used_in_a_namespace):gt(o,x.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!pT(o)&&yhe(o)&&mf(o,x.An_export_assignment_cannot_have_modifiers);let v=X_(o);v&&pm(Bp(o.expression),Sa(v),o.expression);let E=!o.isExportEquals&&!(o.flags&33554432)&&Q.verbatimModuleSyntax&&t.getEmitModuleFormatOfFile(Pn(o))===1;if(o.expression.kind===80){let D=o.expression,R=Wt(jp(D,-1,!0,!0,o));if(R){R7(o,3);let K=Fv(R,111551);if(Zh(R)&111551?(Bp(D),!E&&!(o.flags&33554432)&&Q.verbatimModuleSyntax&&K&>(D,o.isExportEquals?x.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:x.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Zi(D))):!E&&!(o.flags&33554432)&&Q.verbatimModuleSyntax&>(D,o.isExportEquals?x.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:x.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Zi(D)),!E&&!(o.flags&33554432)&&a1(Q)&&!(R.flags&111551)){let se=Zh(R,!1,!0);R.flags&2097152&&se&788968&&!(se&111551)&&(!K||Pn(K)!==Pn(o))?gt(D,o.isExportEquals?x._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:x._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Zi(D),Qe):K&&Pn(K)!==Pn(o)&&gs(gt(D,o.isExportEquals?x._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:x._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Zi(D),Qe),K,Zi(D))}}else Bp(D);fg(Q)&&IM(D,!0)}else Bp(o.expression);E&>(o,M3(o)),uwt(m),o.flags&33554432&&!ru(o.expression)&&mn(o.expression,x.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),o.isExportEquals&&(ae>=5&&ae!==200&&(o.flags&33554432&&t.getImpliedNodeFormatForEmit(Pn(o))===99||!(o.flags&33554432)&&t.getImpliedNodeFormatForEmit(Pn(o))!==1)?mn(o,x.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):ae===4&&!(o.flags&33554432)&&mn(o,x.Export_assignment_is_not_supported_when_module_flag_is_system))}function VIr(o){return Ad(o.exports,(p,m)=>m!=="export=")}function uwt(o){let p=$i(o),m=io(p);if(!m.exportsChecked){let v=p.exports.get("export=");if(v&&VIr(p)){let D=Qh(v)||v.valueDeclaration;D&&!Nq(D)&&!Ei(D)&>(D,x.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let E=VS(p);E&&E.forEach(({declarations:D,flags:R},K)=>{if(K==="__export"||R&1920)return;let se=Lo(D,EI(mar,_4(Af)));if(!(R&524288&&se<=2)&&se>1&&!XTe(D))for(let ce of D)l_t(ce)&&il.add(xi(ce,x.Cannot_redeclare_exported_variable_0,oa(K)))}),m.exportsChecked=!0}}function XTe(o){return o&&o.length>1&&o.every(p=>Ei(p)&&wu(p)&&(q4(p.expression)||Fx(p.expression)))}function Pc(o){if(o){let p=M;M=o,C=0,WIr(o),M=p}}function WIr(o){if(U7(o)&8388608)return;WG(o)&&X(o.jsDoc,({comment:m,tags:v})=>{pwt(m),X(v,E=>{pwt(E.comment),Ei(o)&&Pc(E)})});let p=o.kind;if(c)switch(p){case 268:case 264:case 265:case 263:c.throwIfCancellationRequested()}switch(p>=244&&p<=260&&KR(o)&&o.flowNode&&!Wse(o.flowNode)&&Y1(Q.allowUnreachableCode===!1,o,x.Unreachable_code_detected),p){case 169:return gAt(o);case 170:return yAt(o);case 173:return bAt(o);case 172:return wAr(o);case 186:case 185:case 180:case 181:case 182:return OZ(o);case 175:case 174:return IAr(o);case 176:return PAr(o);case 177:return NAr(o);case 178:case 179:return TAt(o);case 184:return CUe(o);case 183:return kAr(o);case 187:return jAr(o);case 188:return BAr(o);case 189:return $Ar(o);case 190:return UAr(o);case 193:case 194:return zAr(o);case 197:case 191:case 192:return Pc(o.type);case 198:return WAr(o);case 199:return GAr(o);case 195:return HAr(o);case 196:return KAr(o);case 204:return QAr(o);case 206:return ZAr(o);case 203:return XAr(o);case 329:return ywr(o);case 330:return gwr(o);case 347:case 339:case 341:return swr(o);case 346:return cwr(o);case 345:return lwr(o);case 325:case 326:case 327:return pwr(o);case 342:return _wr(o);case 349:return dwr(o);case 318:fwr(o);case 316:case 315:case 313:case 314:case 323:_wt(o),Is(o,Pc);return;case 319:GIr(o);return;case 310:return Pc(o.type);case 334:case 336:case 335:return vwr(o);case 351:return uwr(o);case 344:return mwr(o);case 352:return hwr(o);case 200:return qAr(o);case 201:return JAr(o);case 263:return awr(o);case 242:case 269:return zTe(o);case 244:return Mwr(o);case 245:return jwr(o);case 246:return Bwr(o);case 247:return zwr(o);case 248:return qwr(o);case 249:return Jwr(o);case 250:return Wwr(o);case 251:return Vwr(o);case 252:case 253:return tIr(o);case 254:return rIr(o);case 255:return nIr(o);case 256:return iIr(o);case 257:return oIr(o);case 258:return aIr(o);case 259:return sIr(o);case 261:return Rwr(o);case 209:return Lwr(o);case 264:return mIr(o);case 265:return kIr(o);case 266:return CIr(o);case 267:return IIr(o);case 307:return NIr(o);case 268:return RIr(o);case 273:return jIr(o);case 272:return $Ir(o);case 279:return UIr(o);case 278:return JIr(o);case 243:case 260:k2(o);return;case 283:return FAr(o)}}function pwt(o){Zn(o)&&X(o,p=>{RO(p)&&Pc(p)})}function _wt(o){if(!Ei(o))if(Gne(o)||xL(o)){let p=Zs(Gne(o)?54:58),m=o.postfix?x._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:x._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,v=o.type,E=Sa(v);mn(o,m,p,ri(xL(o)&&!(E===tn||E===pn)?Do(jt([E,Ne],o.postfix?void 0:mr)):E))}else mn(o,x.JSDoc_types_can_only_be_used_inside_documentation_comments)}function GIr(o){_wt(o),Pc(o.type);let{parent:p}=o;if(wa(p)&&TL(p.parent)){Sn(p.parent.parameters)!==p&>(o,x.A_rest_parameter_must_be_last_in_a_parameter_list);return}AA(p)||gt(o,x.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let m=o.parent.parent;if(!Uy(m)){gt(o,x.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let v=GG(m);if(!v)return;let E=dA(m);(!E||Sn(E.parameters).symbol!==v)&>(o,x.A_rest_parameter_must_be_last_in_a_parameter_list)}function HIr(o){let p=Sa(o.type),{parent:m}=o,v=o.parent.parent;if(AA(o.parent)&&Uy(v)){let E=dA(v),D=Mge(v.parent.parent);if(E||D){let R=Yr(D?v.parent.parent.typeExpression.parameters:E.parameters),K=GG(v);if(!R||K&&R.symbol===K&&Sb(R))return um(p)}}return wa(m)&&TL(m.parent)?um(p):Om(p)}function B7(o){let p=Pn(o),m=Ki(p);m.flags&1?$.assert(!m.deferredNodes,"A type-checked file should have no deferred nodes."):(m.deferredNodes||(m.deferredNodes=new Set),m.deferredNodes.add(o))}function dwt(o){let p=Ki(o);p.deferredNodes&&p.deferredNodes.forEach(KIr),p.deferredNodes=void 0}function KIr(o){var p,m;(p=hi)==null||p.push(hi.Phase.Check,"checkDeferredNode",{kind:o.kind,pos:o.pos,end:o.end,path:o.tracingPath});let v=M;switch(M=o,C=0,o.kind){case 214:case 215:case 216:case 171:case 287:xN(o);break;case 219:case 220:case 175:case 174:$Dr(o);break;case 178:case 179:TAt(o);break;case 232:fIr(o);break;case 169:EAr(o);break;case 286:Gkr(o);break;case 285:Kkr(o);break;case 217:case 235:case 218:uDr(o);break;case 223:Va(o.expression);break;case 227:Kre(o)&&xN(o);break}M=v,(m=hi)==null||m.pop()}function QIr(o,p){var m,v;(m=hi)==null||m.push(hi.Phase.Check,p?"checkSourceFileNodes":"checkSourceFile",{path:o.path},!0);let E=p?"beforeCheckNodes":"beforeCheck",D=p?"afterCheckNodes":"afterCheck";jl(E),p?XIr(o,p):ZIr(o),jl(D),Jm("Check",E,D),(v=hi)==null||v.pop()}function fwt(o,p){if(p)return!1;switch(o){case 0:return!!Q.noUnusedLocals;case 1:return!!Q.noUnusedParameters;default:return $.assertNever(o)}}function mwt(o){return qn.get(o.path)||j}function ZIr(o){let p=Ki(o);if(!(p.flags&1)){if(lL(o,Q,t))return;zwt(o),Cs(RC),Cs(OE),Cs(n2),Cs(i2),Cs(o2),p.flags&8388608&&(RC=p.potentialThisCollisions,OE=p.potentialNewTargetCollisions,n2=p.potentialWeakMapSetCollisions,i2=p.potentialReflectCollisions,o2=p.potentialUnusedRenamedBindingElementsInTypes),X(o.statements,Pc),Pc(o.endOfFileToken),dwt(o),Lg(o)&&oD(o),a(()=>{!o.isDeclarationFile&&(Q.noUnusedLocals||Q.noUnusedParameters)&&FAt(mwt(o),(m,v,E)=>{!BO(m)&&fwt(v,!!(m.flags&33554432))&&il.add(E)}),o.isDeclarationFile||Twr()}),Lg(o)&&uwt(o),RC.length&&(X(RC,Cwr),Cs(RC)),OE.length&&(X(OE,Dwr),Cs(OE)),n2.length&&(X(n2,Pwr),Cs(n2)),i2.length&&(X(i2,Owr),Cs(i2)),p.flags|=1}}function XIr(o,p){let m=Ki(o);if(!(m.flags&1)){if(lL(o,Q,t))return;zwt(o),Cs(RC),Cs(OE),Cs(n2),Cs(i2),Cs(o2),X(p,Pc),dwt(o),(m.potentialThisCollisions||(m.potentialThisCollisions=[])).push(...RC),(m.potentialNewTargetCollisions||(m.potentialNewTargetCollisions=[])).push(...OE),(m.potentialWeakMapSetCollisions||(m.potentialWeakMapSetCollisions=[])).push(...n2),(m.potentialReflectCollisions||(m.potentialReflectCollisions=[])).push(...i2),(m.potentialUnusedRenamedBindingElementsInTypes||(m.potentialUnusedRenamedBindingElementsInTypes=[])).push(...o2),m.flags|=8388608;for(let v of p){let E=Ki(v);E.flags|=8388608}}}function hwt(o,p,m){try{return c=p,YIr(o,m)}finally{c=void 0}}function qUe(){for(let o of n)o();n=[]}function JUe(o,p){qUe();let m=a;a=v=>v(),QIr(o,p),a=m}function YIr(o,p){if(o){qUe();let m=il.getGlobalDiagnostics(),v=m.length;JUe(o,p);let E=il.getDiagnostics(o.fileName);if(p)return E;let D=il.getGlobalDiagnostics();if(D!==m){let R=cb(m,D,$U);return go(R,E)}else if(v===0&&D.length>0)return go(D,E);return E}return X(t.getSourceFiles(),m=>JUe(m)),il.getDiagnostics()}function ePr(){return qUe(),il.getGlobalDiagnostics()}function tPr(o,p){if(o.flags&67108864)return[];let m=ic(),v=!1;return E(),m.delete("this"),Hje(m);function E(){for(;o;){switch(vb(o)&&o.locals&&!uE(o)&&R(o.locals,p),o.kind){case 308:if(!yd(o))break;case 268:K($i(o).exports,p&2623475);break;case 267:R($i(o).exports,p&8);break;case 232:o.name&&D(o.symbol,p);case 264:case 265:v||R(Ub($i(o)),p&788968);break;case 219:o.name&&D(o.symbol,p);break}S6e(o)&&D(Se,p),v=oc(o),o=o.parent}R(It,p)}function D(se,ce){if(iL(se)&ce){let fe=se.escapedName;m.has(fe)||m.set(fe,se)}}function R(se,ce){ce&&se.forEach(fe=>{D(fe,ce)})}function K(se,ce){ce&&se.forEach(fe=>{!Qu(fe,282)&&!Qu(fe,281)&&fe.escapedName!=="default"&&D(fe,ce)})}}function rPr(o){return o.kind===80&&aF(o.parent)&&cs(o.parent)===o}function gwt(o){for(;o.parent.kind===167;)o=o.parent;return o.parent.kind===184}function nPr(o){for(;o.parent.kind===212;)o=o.parent;return o.parent.kind===234}function ywt(o,p){let m,v=Cf(o);for(;v&&!(m=p(v));)v=Cf(v);return m}function iPr(o){return!!fn(o,p=>kp(p)&&t1(p.body)||ps(p)?!0:Co(p)||lu(p)?"quit":!1)}function VUe(o,p){return!!ywt(o,m=>m===p)}function oPr(o){for(;o.parent.kind===167;)o=o.parent;if(o.parent.kind===272)return o.parent.moduleReference===o?o.parent:void 0;if(o.parent.kind===278)return o.parent.expression===o?o.parent:void 0}function YTe(o){return oPr(o)!==void 0}function aPr(o){switch(m_(o.parent.parent)){case 1:case 3:return Xy(o.parent);case 5:if(no(o.parent)&&oL(o.parent)===o)return;case 4:case 2:return $i(o.parent.parent)}}function sPr(o){let p=o.parent;for(;dh(p);)o=p,p=p.parent;if(p&&p.kind===206&&p.qualifier===o)return p}function cPr(o){if(o.expression.kind===110){let p=Hm(o,!1,!1);if(Rs(p)){let m=ACt(p);if(m){let v=ww(m,void 0),E=ICt(m,v);return E&&!Mi(E)}}}}function vwt(o){if(Eb(o))return Xy(o.parent);if(Ei(o)&&o.parent.kind===212&&o.parent===o.parent.parent.left&&!Aa(o)&&!wA(o)&&!cPr(o.parent)){let p=aPr(o);if(p)return p}if(o.parent.kind===278&&ru(o)){let p=jp(o,2998271,!0);if(p&&p!==ye)return p}else if(uh(o)&&YTe(o)){let p=mA(o,272);return $.assert(p!==void 0),VC(o,!0)}if(uh(o)){let p=sPr(o);if(p){Sa(p);let m=Ki(o).resolvedSymbol;return m===ye?void 0:m}}for(;c4e(o);)o=o.parent;if(nPr(o)){let p=0;o.parent.kind===234?(p=vS(o)?788968:111551,Hre(o.parent)&&(p|=111551)):p=1920,p|=2097152;let m=ru(o)?jp(o,p,!0):void 0;if(m)return m}if(o.parent.kind===342)return GG(o.parent);if(o.parent.kind===169&&o.parent.parent.kind===346){$.assert(!Ei(o));let p=L6e(o.parent);return p&&p.symbol}if(Tb(o)){if(Op(o))return;let p=fn(o,jf(RO,fz,wA)),m=p?901119:111551;if(o.kind===80){if(WR(o)&&M7(o)){let E=vTe(o.parent);return E===ye?void 0:E}let v=jp(o,m,!0,!0,dA(o));if(!v&&p){let E=fn(o,jf(Co,Af));if(E)return Dce(o,!0,$i(E))}if(v&&p){let E=iP(o);if(E&>(E)&&E===v.valueDeclaration)return jp(o,m,!0,!0,Pn(E))||v}return v}else{if(Aa(o))return TTe(o);if(o.kind===212||o.kind===167){let v=Ki(o);return v.resolvedSymbol?v.resolvedSymbol:(o.kind===212?(xTe(o,0),v.resolvedSymbol||(v.resolvedSymbol=Swt(Bp(o.expression),m2(o.name)))):aDt(o,0),!v.resolvedSymbol&&p&&dh(o)?Dce(o):v.resolvedSymbol)}else if(wA(o))return Dce(o)}}else if(uh(o)&&gwt(o)){let p=o.parent.kind===184?788968:1920,m=jp(o,p,!0,!0);return m&&m!==ye?m:bxe(o)}if(o.parent.kind===183)return jp(o,1,!0)}function Swt(o,p){let m=Gje(o,p);if(m.length&&o.members){let v=gxe(jv(o).members);if(m===lm(o))return v;if(v){let E=io(v),D=Wn(m,K=>K.declaration),R=Cr(D,hl).join(",");if(E.filteredIndexSymbolCache||(E.filteredIndexSymbolCache=new Map),E.filteredIndexSymbolCache.has(R))return E.filteredIndexSymbolCache.get(R);{let K=zc(131072,"__index");return K.declarations=Wn(m,se=>se.declaration),K.parent=o.aliasSymbol?o.aliasSymbol:o.symbol?o.symbol:B0(K.declarations[0].parent),E.filteredIndexSymbolCache.set(R,K),K}}}}function Dce(o,p,m){if(uh(o)){let R=jp(o,901119,p,!0,dA(o));if(!R&&ct(o)&&m&&(R=cl(Nf(Zg(m),o.escapedText,901119))),R)return R}let v=ct(o)?m:Dce(o.left,p,m),E=ct(o)?o.escapedText:o.right.escapedText;if(v){let D=v.flags&111551&&vc(di(v),"prototype"),R=D?di(D):Tu(v);return vc(R,E)}}function B0(o,p){if(Ta(o))return yd(o)?cl(o.symbol):void 0;let{parent:m}=o,v=m.parent;if(!(o.flags&67108864)){if(u_t(o)){let E=$i(m);return Yk(o.parent)&&o.parent.propertyName===o?gTe(E):E}else if(KG(o))return $i(m.parent);if(o.kind===80){if(YTe(o))return vwt(o);if(m.kind===209&&v.kind===207&&o===m.propertyName){let E=$7(v),D=vc(E,o.escapedText);if(D)return D}else if(s3(m)&&m.name===o)return m.keywordToken===105&&Zi(o)==="target"?sUe(m).symbol:m.keywordToken===102&&Zi(o)==="meta"?cEt().members.get("meta"):void 0}switch(o.kind){case 80:case 81:case 212:case 167:if(!lP(o))return vwt(o);case 110:let E=Hm(o,!1,!1);if(Rs(E)){let K=t0(E);if(K.thisParameter)return K.thisParameter}if(xre(o))return Va(o).symbol;case 198:return DBe(o).symbol;case 108:return Va(o).symbol;case 137:let D=o.parent;return D&&D.kind===177?D.parent.symbol:void 0;case 11:case 15:if(pA(o.parent.parent)&&hU(o.parent.parent)===o||(o.parent.kind===273||o.parent.kind===279)&&o.parent.moduleSpecifier===o||Ei(o)&&OS(o.parent)&&o.parent.moduleSpecifier===o||Ei(o)&&$h(o.parent,!1)||Bh(o.parent)||bE(o.parent)&&jT(o.parent.parent)&&o.parent.parent.argument===o.parent)return Nm(o,o,p);if(Js(m)&&J4(m)&&m.arguments[1]===o)return $i(m);case 9:let R=mu(m)?m.argumentExpression===o?Kf(m.expression):void 0:bE(m)&&vP(v)?Sa(v.objectType):void 0;return R&&vc(R,dp(o.text));case 90:case 100:case 39:case 86:return Xy(o.parent);case 206:return jT(o)?B0(o.argument.literal,p):void 0;case 95:return Xu(o.parent)?$.checkDefined(o.parent.symbol):void 0;case 102:if(s3(o.parent)&&o.parent.name.escapedText==="defer")return;case 105:return s3(o.parent)?JDt(o.parent).symbol:void 0;case 104:if(wi(o.parent)){let K=Kf(o.parent.right),se=yUe(K);return se?.symbol??K.symbol}return;case 237:return Va(o).symbol;case 296:if(WR(o)&&M7(o)){let K=vTe(o.parent);return K===ye?void 0:K}default:return}}}function lPr(o){if(ct(o)&&no(o.parent)&&o.parent.name===o){let p=m2(o),m=Kf(o.parent.expression),v=m.flags&1048576?m.types:[m];return an(v,E=>yr(lm(E),D=>C7(p,D.keyType)))}}function uPr(o){if(o&&o.kind===305)return jp(o.name,2208703,!0)}function pPr(o){if(Cm(o)){let p=o.propertyName||o.name;return o.parent.parent.moduleSpecifier?cw(o.parent.parent,o):p.kind===11?void 0:jp(p,2998271,!0)}else return jp(o,2998271,!0)}function $7(o){if(Ta(o)&&!yd(o)||o.flags&67108864)return Et;let p=The(o),m=p&&O0($i(p.class));if(vS(o)){let v=Sa(o);return m?Yg(v,m.thisType):v}if(Tb(o))return bwt(o);if(m&&!p.isImplements){let v=pi(ov(m));return v?Yg(v,m.thisType):Et}if(aF(o)){let v=$i(o);return Tu(v)}if(rPr(o)){let v=B0(o);return v?Tu(v):Et}if(Vc(o))return x7(o,!0,0)||Et;if(Vd(o)){let v=$i(o);return v?di(v):Et}if(u_t(o)){let v=B0(o);return v?di(v):Et}if($s(o))return x7(o.parent,!0,0)||Et;if(YTe(o)){let v=B0(o);if(v){let E=Tu(v);return si(E)?di(v):E}}return s3(o.parent)&&o.parent.keywordToken===o.kind?JDt(o.parent):l3(o)?iBe(!1):Et}function e2e(o){if($.assert(o.kind===211||o.kind===210),o.parent.kind===251){let E=Tce(o.parent);return EN(o,E||Et)}if(o.parent.kind===227){let E=Kf(o.parent.right);return EN(o,E||Et)}if(o.parent.kind===304){let E=Ba(o.parent.parent,Lc),D=e2e(E)||Et,R=BR(E.properties,o.parent);return oAt(E,D,R)}let p=Ba(o.parent,qf),m=e2e(p)||Et,v=tk(65,m,Ne,o.parent)||Et;return aAt(p,m,p.elements.indexOf(o),v)}function _Pr(o){let p=e2e(Ba(o.parent.parent,aU));return p&&vc(p,o.escapedText)}function bwt(o){return FU(o)&&(o=o.parent),ih(Kf(o))}function xwt(o){let p=Xy(o.parent);return oc(o)?di(p):Tu(p)}function Twt(o){let p=o.name;switch(p.kind){case 80:return Sg(Zi(p));case 9:case 11:return Sg(p.text);case 168:let m=sv(p);return Hf(m,12288)?m:Mt;default:return $.fail("Unsupported property name.")}}function WUe(o){o=nh(o);let p=ic($l(o)),m=Gs(o,0).length?Ga:Gs(o,1).length?el:void 0;return m&&X($l(m),v=>{p.has(v.escapedName)||p.set(v.escapedName,v)}),xh(p)}function t2e(o){return Gs(o,0).length!==0||Gs(o,1).length!==0}function Ewt(o){let p=dPr(o);return p?an(p,Ewt):[o]}function dPr(o){if(Fp(o)&6)return Wn(io(o).containingType.types,p=>vc(p,o.escapedName));if(o.flags&33554432){let{links:{leftSpread:p,rightSpread:m,syntheticOrigin:v}}=o;return p?[p,m]:v?[v]:Z2(fPr(o))}}function fPr(o){let p,m=o;for(;m=io(m).target;)p=m;return p}function mPr(o){if(ap(o))return!1;let p=vs(o,ct);if(!p)return!1;let m=p.parent;return m?!((no(m)||td(m))&&m.name===p)&&qZ(p)===Se:!1}function hPr(o){return fG(o.parent)&&o===o.parent.name}function gPr(o,p){var m;let v=vs(o,ct);if(v){let E=qZ(v,hPr(v));if(E){if(E.flags&1048576){let R=cl(E.exportSymbol);if(!p&&R.flags&944&&!(R.flags&3))return;E=R}let D=Od(E);if(D){if(D.flags&512&&((m=D.valueDeclaration)==null?void 0:m.kind)===308){let R=D.valueDeclaration,K=Pn(v);return R!==K?void 0:R}return fn(v.parent,R=>fG(R)&&$i(R)===D)}}}}function yPr(o){let p=D3e(o);if(p)return p;let m=vs(o,ct);if(m){let v=OPr(m);if(q3(v,111551)&&!Fv(v,111551))return Qh(v)}}function vPr(o){return o.valueDeclaration&&Vc(o.valueDeclaration)&&Pr(o.valueDeclaration).parent.kind===300}function kwt(o){if(o.flags&418&&o.valueDeclaration&&!Ta(o.valueDeclaration)){let p=io(o);if(p.isDeclarationWithCollidingName===void 0){let m=yv(o.valueDeclaration);if(QPe(m)||vPr(o))if($t(m.parent,o.escapedName,111551,void 0,!1))p.isDeclarationWithCollidingName=!0;else if(GUe(o.valueDeclaration,16384)){let v=GUe(o.valueDeclaration,32768),E=rC(m,!1),D=m.kind===242&&rC(m.parent,!1);p.isDeclarationWithCollidingName=!i6e(m)&&(!v||!E&&!D)}else p.isDeclarationWithCollidingName=!1}return p.isDeclarationWithCollidingName}return!1}function SPr(o){if(!ap(o)){let p=vs(o,ct);if(p){let m=qZ(p);if(m&&kwt(m))return m.valueDeclaration}}}function bPr(o){let p=vs(o,Vd);if(p){let m=$i(p);if(m)return kwt(m)}return!1}function Cwt(o){switch($.assert(We),o.kind){case 272:return r2e($i(o));case 274:case 275:case 277:case 282:let p=$i(o);return!!p&&r2e(p,!0);case 279:let m=o.exportClause;return!!m&&(Db(m)||Pt(m.elements,Cwt));case 278:return o.expression&&o.expression.kind===80?r2e($i(o),!0):!0}return!1}function xPr(o){let p=vs(o,gd);return p===void 0||p.parent.kind!==308||!z4(p)?!1:r2e($i(p))&&p.moduleReference&&!Op(p.moduleReference)}function r2e(o,p){if(!o)return!1;let m=Pn(o.valueDeclaration),v=m&&$i(m);vg(v);let E=Wt(df(o));return E===ye?!p||!Fv(o):!!(Zh(o,p,!0)&111551)&&(dC(Q)||!zZ(E))}function zZ(o){return gUe(o)||!!o.constEnumOnlyModule}function Dwt(o,p){if($.assert(We),jE(o)){let m=$i(o),v=m&&io(m);if(v?.referenced)return!0;let E=io(m).aliasTarget;if(E&&tm(o)&32&&Zh(E)&111551&&(dC(Q)||!zZ(E)))return!0}return p?!!Is(o,m=>Dwt(m,p)):!1}function Awt(o){if(t1(o.body)){if(Ax(o)||hS(o))return!1;let p=$i(o),m=n6(p);return m.length>1||m.length===1&&m[0].declaration!==o}return!1}function TPr(o){let p=Pwt(o);if(!p)return!1;let m=Sa(p);return si(m)||UM(m)}function Ace(o,p){return(EPr(o,p)||kPr(o))&&!TPr(o)}function EPr(o,p){return!be||eZ(o)||Uy(o)||!o.initializer?!1:ko(o,31)?!!p&&lu(p):!0}function kPr(o){return be&&eZ(o)&&(Uy(o)||!o.initializer)&&ko(o,31)}function wwt(o){let p=vs(o,v=>i_(v)||Oo(v));if(!p)return!1;let m;if(Oo(p)){if(p.type||!Ei(p)&&!JZ(p))return!1;let v=vU(p);if(!v||!gv(v))return!1;m=$i(v)}else m=$i(p);return!m||!(m.flags&16|3)?!1:!!Ad(Zg(m),v=>v.flags&111551&&lF(v.valueDeclaration))}function CPr(o){let p=vs(o,i_);if(!p)return j;let m=$i(p);return m&&$l(di(m))||j}function U7(o){var p;let m=o.id||0;return m<0||m>=QA.length?0:((p=QA[m])==null?void 0:p.flags)||0}function GUe(o,p){return DPr(o,p),!!(U7(o)&p)}function DPr(o,p){if(!Q.noCheck&&GU(Pn(o),Q)||Ki(o).calculatedFlags&p)return;switch(p){case 16:case 32:return R(o);case 128:case 256:case 2097152:return D(o);case 512:case 8192:case 65536:case 262144:return se(o);case 536870912:return fe(o);case 4096:case 32768:case 16384:return Me(o);default:return $.assertNever(p,`Unhandled node check flag calculation: ${$.formatNodeCheckFlags(p)}`)}function v(Jt,Xt){let kr=Xt(Jt,Jt.parent);if(kr!=="skip")return kr||CF(Jt,Xt)}function E(Jt){let Xt=Ki(Jt);if(Xt.calculatedFlags&p)return"skip";Xt.calculatedFlags|=2097536,R(Jt)}function D(Jt){v(Jt,E)}function R(Jt){let Xt=Ki(Jt);Xt.calculatedFlags|=48,Jt.kind===108&&uTe(Jt)}function K(Jt){let Xt=Ki(Jt);if(Xt.calculatedFlags&p)return"skip";Xt.calculatedFlags|=336384,fe(Jt)}function se(Jt){v(Jt,K)}function ce(Jt){return Tb(Jt)||im(Jt.parent)&&(Jt.parent.objectAssignmentInitializer??Jt.parent.name)===Jt}function fe(Jt){let Xt=Ki(Jt);if(Xt.calculatedFlags|=536870912,ct(Jt)&&(Xt.calculatedFlags|=49152,ce(Jt)&&!(no(Jt.parent)&&Jt.parent.name===Jt))){let kr=Fm(Jt);kr&&kr!==ye&&ECt(Jt,kr)}}function Ue(Jt){let Xt=Ki(Jt);if(Xt.calculatedFlags&p)return"skip";Xt.calculatedFlags|=53248,yt(Jt)}function Me(Jt){let Xt=yv(Eb(Jt)?Jt.parent:Jt);v(Xt,Ue)}function yt(Jt){fe(Jt),dc(Jt)&&sv(Jt),Aa(Jt)&&J_(Jt.parent)&&MTe(Jt.parent)}}function kN(o){return swt(o.parent),Ki(o).enumMemberValue??wd(void 0)}function Iwt(o){switch(o.kind){case 307:case 212:case 213:return!0}return!1}function n2e(o){if(o.kind===307)return kN(o).value;Ki(o).resolvedSymbol||Bp(o);let p=Ki(o).resolvedSymbol||(ru(o)?jp(o,111551,!0):void 0);if(p&&p.flags&8){let m=p.valueDeclaration;if(lA(m.parent))return kN(m).value}}function HUe(o){return!!(o.flags&524288)&&Gs(o,0).length>0}function APr(o,p){var m;let v=vs(o,uh);if(!v||p&&(p=vs(p),!p))return 0;let E=!1;if(dh(v)){let fe=jp(_h(v),111551,!0,!0,p);E=!!((m=fe?.declarations)!=null&&m.every(cE))}let D=jp(v,111551,!0,!0,p),R=D&&D.flags&2097152?df(D):D;E||(E=!!(D&&Fv(D,111551)));let K=jp(v,788968,!0,!0,p),se=K&&K.flags&2097152?df(K):K;if(D||E||(E=!!(K&&Fv(K,788968))),R&&R===se){let fe=oBe(!1);if(fe&&R===fe)return 9;let Ue=di(R);if(Ue&&Mv(Ue))return E?10:1}if(!se)return E?11:0;let ce=Tu(se);return si(ce)?E?11:0:ce.flags&3?11:Hf(ce,245760)?2:Hf(ce,528)?6:Hf(ce,296)?3:Hf(ce,2112)?4:Hf(ce,402653316)?5:Gc(ce)?7:Hf(ce,12288)?8:HUe(ce)?10:L0(ce)?7:11}function wPr(o,p,m,v,E){let D=vs(o,Ane);if(!D)return W.createToken(133);let R=$i(D);return Le.serializeTypeForDeclaration(D,R,p,m|1024,v,E)}function KUe(o){o=vs(o,aG);let p=o.kind===179?178:179,m=Qu($i(o),p),v=m&&m.pos{switch(v.kind){case 261:case 170:case 209:case 173:case 304:case 305:case 307:case 211:case 263:case 219:case 220:case 264:case 232:case 267:case 175:case 178:case 179:case 268:return!0}return!1})}}}function LPr(o){return kG(o)||Oo(o)&&JZ(o)?a6(di($i(o))):!1}function MPr(o,p,m){let v=o.flags&1056?Le.symbolToExpression(o.symbol,111551,p,void 0,void 0,m):o===Rt?W.createTrue():o===Rn&&W.createFalse();if(v)return v;let E=o.value;return typeof E=="object"?W.createBigIntLiteral(E):typeof E=="string"?W.createStringLiteral(E):E<0?W.createPrefixUnaryExpression(41,W.createNumericLiteral(-E)):W.createNumericLiteral(E)}function jPr(o,p){let m=di($i(o));return MPr(m,o,p)}function QUe(o){return o?(X1(o),Pn(o).localJsxFactory||s2):s2}function ZUe(o){if(o){let p=Pn(o);if(p){if(p.localJsxFragmentFactory)return p.localJsxFragmentFactory;let m=p.pragmas.get("jsxfrag"),v=Zn(m)?m[0]:m;if(v)return p.localJsxFragmentFactory=AF(v.arguments.factory,re),p.localJsxFragmentFactory}}if(Q.jsxFragmentFactory)return AF(Q.jsxFragmentFactory,re)}function Pwt(o){let p=X_(o);if(p)return p;if(o.kind===170&&o.parent.kind===179){let m=KUe(o.parent).getAccessor;if(m)return jg(m)}}function BPr(){return{getReferencedExportContainer:gPr,getReferencedImportDeclaration:yPr,getReferencedDeclarationWithCollidingName:SPr,isDeclarationWithCollidingName:bPr,isValueAliasDeclaration:p=>{let m=vs(p);return m&&We?Cwt(m):!0},hasGlobalName:NPr,isReferencedAliasDeclaration:(p,m)=>{let v=vs(p);return v&&We?Dwt(v,m):!0},hasNodeCheckFlag:(p,m)=>{let v=vs(p);return v?GUe(v,m):!1},isTopLevelValueImportEqualsWithEntityName:xPr,isDeclarationVisible:Bb,isImplementationOfOverload:Awt,requiresAddingImplicitUndefined:Ace,isExpandoFunctionDeclaration:wwt,getPropertiesOfContainerFunction:CPr,createTypeOfDeclaration:wPr,createReturnTypeOfSignatureDeclaration:IPr,createTypeOfExpression:PPr,createLiteralConstValue:jPr,isSymbolAccessible:GC,isEntityNameVisible:b7,getConstantValue:p=>{let m=vs(p,Iwt);return m?n2e(m):void 0},getEnumMemberValue:p=>{let m=vs(p,GT);return m?kN(m):void 0},collectLinkedAliases:IM,markLinkedReferences:p=>{let m=vs(p);return m&&R7(m,0)},getReferencedValueDeclaration:FPr,getReferencedValueDeclarations:RPr,getTypeReferenceSerializationKind:APr,isOptionalParameter:eZ,isArgumentsLocalBinding:mPr,getExternalModuleFileFromDeclaration:p=>{let m=vs(p,s6e);return m&&XUe(m)},isLiteralConstDeclaration:LPr,isLateBound:p=>{let m=vs(p,Vd),v=m&&$i(m);return!!(v&&Fp(v)&4096)},getJsxFactoryEntity:QUe,getJsxFragmentFactoryEntity:ZUe,isBindingCapturedByNode:(p,m)=>{let v=vs(p),E=vs(m);return!!v&&!!E&&(Oo(E)||Vc(E))&&HEr(v,E)},getDeclarationStatementsForSourceFile:(p,m,v,E)=>{let D=vs(p);$.assert(D&&D.kind===308,"Non-sourcefile node passed into getDeclarationsForSourceFile");let R=$i(p);return R?(vg(R),R.exports?Le.symbolTableToDeclarationStatements(R.exports,p,m,v,E):[]):p.locals?Le.symbolTableToDeclarationStatements(p.locals,p,m,v,E):[]},isImportRequiredByAugmentation:o,isDefinitelyReferenceToGlobalSymbolObject:Lb,createLateBoundIndexSignatures:(p,m,v,E,D)=>{let R=p.symbol,K=lm(di(R)),se=hxe(R),ce=se&&yxe(se,so(Ub(R).values())),fe;for(let Me of[K,ce])if(te(Me)){fe||(fe=[]);for(let yt of Me){if(yt.declaration||yt===va)continue;if(yt.components&&ht(yt.components,kr=>{var on;return!!(kr.name&&dc(kr.name)&&ru(kr.name.expression)&&m&&((on=b7(kr.name.expression,m,!1))==null?void 0:on.accessibility)===0)})){let kr=yr(yt.components,on=>!NM(on));fe.push(...Cr(kr,on=>{Ue(on.name.expression);let Hn=Me===K?[W.createModifier(126)]:void 0;return W.createPropertyDeclaration(jt(Hn,yt.isReadonly?W.createModifier(148):void 0),on.name,(Zm(on)||ps(on)||G1(on)||Ep(on)||Ax(on)||hS(on))&&on.questionToken?W.createToken(58):void 0,Le.typeToTypeNode(di(on.symbol),m,v,E,D),void 0)}));continue}let Jt=Le.indexInfoToIndexSignatureDeclaration(yt,m,v,E,D);Jt&&Me===K&&(Jt.modifiers||(Jt.modifiers=W.createNodeArray())).unshift(W.createModifier(126)),Jt&&fe.push(Jt)}}return fe;function Ue(Me){if(!D.trackSymbol)return;let yt=_h(Me),Jt=$t(yt,yt.escapedText,1160127,void 0,!0);Jt&&D.trackSymbol(Jt,m,111551)}},symbolToDeclarations:(p,m,v,E,D,R)=>Le.symbolToDeclarations(p,m,v,E,D,R)};function o(p){let m=Pn(p);if(!m.symbol)return!1;let v=XUe(p);if(!v||v===m)return!1;let E=VS(m.symbol);for(let D of so(E.values()))if(D.mergeId){let R=cl(D);if(R.declarations){for(let K of R.declarations)if(Pn(K)===v)return!0}}return!1}}function XUe(o){let p=o.kind===268?Ci(o.name,Ic):JO(o),m=yg(p,p,void 0);if(m)return Qu(m,308)}function $Pr(){for(let p of t.getSourceFiles())b8e(p,Q);a_=new Map;let o;for(let p of t.getSourceFiles())if(!p.redirectInfo){if(!Lg(p)){let m=p.locals.get("globalThis");if(m?.declarations)for(let v of m.declarations)il.add(xi(v,x.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));qS(It,p.locals)}p.jsGlobalAugmentations&&qS(It,p.jsGlobalAugmentations),p.patternAmbientModules&&p.patternAmbientModules.length&&(Wh=go(Wh,p.patternAmbientModules)),p.moduleAugmentations.length&&(o||(o=[])).push(p.moduleAugmentations),p.symbol&&p.symbol.globalExports&&p.symbol.globalExports.forEach((v,E)=>{It.has(E)||It.set(E,v)})}if(o)for(let p of o)for(let m of p)xb(m.parent)&&VP(m);if(iw(),io(ke).type=Y,io(Se).type=Qp("IArguments",0,!0),io(ye).type=Et,io(_t).type=F_(16,_t),tl=Qp("Array",1,!0),br=Qp("Object",0,!0),Vn=Qp("Function",0,!0),Ga=De&&Qp("CallableFunction",0,!0)||Vn,el=De&&Qp("NewableFunction",0,!0)||Vn,nd=Qp("String",0,!0),Mu=Qp("Number",0,!0),Dp=Qp("Boolean",0,!0),Kp=Qp("RegExp",0,!0),If=um(at),uf=um(Zt),uf===kc&&(uf=mp(void 0,G,j,j,j)),Uc=hEt("ReadonlyArray",1)||tl,Hg=Uc?Vq(Uc,[at]):If,vy=hEt("ThisType",1),o)for(let p of o)for(let m of p)xb(m.parent)||VP(m);a_.forEach(({firstFile:p,secondFile:m,conflictingSymbols:v})=>{if(v.size<8)v.forEach(({isBlockScoped:E,firstFileLocations:D,secondFileLocations:R},K)=>{let se=E?x.Cannot_redeclare_block_scoped_variable_0:x.Duplicate_identifier_0;for(let ce of D)nw(ce,se,K,R);for(let ce of R)nw(ce,se,K,D)});else{let E=so(v.keys()).join(", ");il.add(ac(xi(p,x.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,E),xi(m,x.Conflicts_are_in_this_file))),il.add(ac(xi(m,x.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,E),xi(p,x.Conflicts_are_in_this_file)))}}),a_=void 0}function Fd(o,p){if(Q.importHelpers){let m=Pn(o);if($R(m,Q)&&!(o.flags&33554432)){let v=zPr(m,o);if(v!==ye){let E=io(v);if(E.requestedExternalEmitHelpers??(E.requestedExternalEmitHelpers=0),(E.requestedExternalEmitHelpers&p)!==p){let D=p&~E.requestedExternalEmitHelpers;for(let R=1;R<=16777216;R<<=1)if(D&R)for(let K of UPr(R)){let se=O_(Nf(VS(v),dp(K),111551));se?R&524288?Pt(n6(se),ce=>xg(ce)>3)||gt(o,x.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,nC,K,4):R&1048576?Pt(n6(se),ce=>xg(ce)>4)||gt(o,x.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,nC,K,5):R&1024&&(Pt(n6(se),ce=>xg(ce)>2)||gt(o,x.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,nC,K,3)):gt(o,x.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,nC,K)}}E.requestedExternalEmitHelpers|=p}}}}function UPr(o){switch(o){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return _e?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__setFunctionName"];case 8388608:return["__propKey"];case 16777216:return["__addDisposableResource","__disposeResources"];case 33554432:return["__rewriteRelativeImportExtension"];default:return $.fail("Unrecognized helper")}}function zPr(o,p){let m=Ki(o);return m.externalHelpersModule||(m.externalHelpersModule=V3(L6r(o),nC,x.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,p)||ye),m.externalHelpersModule}function pT(o){var p;let m=VPr(o)||qPr(o);if(m!==void 0)return m;if(wa(o)&&uC(o))return mf(o,x.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let v=h_(o)?o.declarationList.flags&7:0,E,D,R,K,se,ce=0,fe=!1,Ue=!1;for(let Me of o.modifiers)if(hd(Me)){if(OG(_e,o,o.parent,o.parent.parent)){if(_e&&(o.kind===178||o.kind===179)){let yt=KUe(o);if(By(yt.firstAccessor)&&o===yt.secondAccessor)return mf(o,x.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return o.kind===175&&!t1(o.body)?mf(o,x.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):mf(o,x.Decorators_are_not_valid_here);if(ce&-34849)return mn(Me,x.Decorators_are_not_valid_here);if(Ue&&ce&98303){$.assertIsDefined(se);let yt=Pn(Me);return sD(yt)?!1:(ac(gt(Me,x.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),xi(se,x.Decorator_used_before_export_here)),!0)}ce|=32768,ce&98303?ce&32&&(fe=!0):Ue=!0,se??(se=Me)}else{if(Me.kind!==148){if(o.kind===172||o.kind===174)return mn(Me,x._0_modifier_cannot_appear_on_a_type_member,Zs(Me.kind));if(o.kind===182&&(Me.kind!==126||!Co(o.parent)))return mn(Me,x._0_modifier_cannot_appear_on_an_index_signature,Zs(Me.kind))}if(Me.kind!==103&&Me.kind!==147&&Me.kind!==87&&o.kind===169)return mn(Me,x._0_modifier_cannot_appear_on_a_type_parameter,Zs(Me.kind));switch(Me.kind){case 87:{if(o.kind!==267&&o.kind!==169)return mn(o,x.A_class_member_cannot_have_the_0_keyword,Zs(87));let Xt=c1(o.parent)&&fA(o.parent)||o.parent;if(o.kind===169&&!(lu(Xt)||Co(Xt)||Cb(Xt)||fL(Xt)||hF(Xt)||cz(Xt)||G1(Xt)))return mn(Me,x._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Zs(Me.kind));break}case 164:if(ce&16)return mn(Me,x._0_modifier_already_seen,"override");if(ce&128)return mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(ce&8)return mn(Me,x._0_modifier_must_precede_1_modifier,"override","readonly");if(ce&512)return mn(Me,x._0_modifier_must_precede_1_modifier,"override","accessor");if(ce&1024)return mn(Me,x._0_modifier_must_precede_1_modifier,"override","async");ce|=16,K=Me;break;case 125:case 124:case 123:let yt=mw(ZO(Me.kind));if(ce&7)return mn(Me,x.Accessibility_modifier_already_seen);if(ce&16)return mn(Me,x._0_modifier_must_precede_1_modifier,yt,"override");if(ce&256)return mn(Me,x._0_modifier_must_precede_1_modifier,yt,"static");if(ce&512)return mn(Me,x._0_modifier_must_precede_1_modifier,yt,"accessor");if(ce&8)return mn(Me,x._0_modifier_must_precede_1_modifier,yt,"readonly");if(ce&1024)return mn(Me,x._0_modifier_must_precede_1_modifier,yt,"async");if(o.parent.kind===269||o.parent.kind===308)return mn(Me,x._0_modifier_cannot_appear_on_a_module_or_namespace_element,yt);if(ce&64)return Me.kind===123?mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,yt,"abstract"):mn(Me,x._0_modifier_must_precede_1_modifier,yt,"abstract");if(Tm(o))return mn(Me,x.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);ce|=ZO(Me.kind);break;case 126:if(ce&256)return mn(Me,x._0_modifier_already_seen,"static");if(ce&8)return mn(Me,x._0_modifier_must_precede_1_modifier,"static","readonly");if(ce&1024)return mn(Me,x._0_modifier_must_precede_1_modifier,"static","async");if(ce&512)return mn(Me,x._0_modifier_must_precede_1_modifier,"static","accessor");if(o.parent.kind===269||o.parent.kind===308)return mn(Me,x._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(o.kind===170)return mn(Me,x._0_modifier_cannot_appear_on_a_parameter,"static");if(ce&64)return mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(ce&16)return mn(Me,x._0_modifier_must_precede_1_modifier,"static","override");ce|=256,E=Me;break;case 129:if(ce&512)return mn(Me,x._0_modifier_already_seen,"accessor");if(ce&8)return mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(ce&128)return mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(o.kind!==173)return mn(Me,x.accessor_modifier_can_only_appear_on_a_property_declaration);ce|=512;break;case 148:if(ce&8)return mn(Me,x._0_modifier_already_seen,"readonly");if(o.kind!==173&&o.kind!==172&&o.kind!==182&&o.kind!==170)return mn(Me,x.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(ce&512)return mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");ce|=8;break;case 95:if(Q.verbatimModuleSyntax&&!(o.flags&33554432)&&o.kind!==266&&o.kind!==265&&o.kind!==268&&o.parent.kind===308&&t.getEmitModuleFormatOfFile(Pn(o))===1)return mn(Me,x.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(ce&32)return mn(Me,x._0_modifier_already_seen,"export");if(ce&128)return mn(Me,x._0_modifier_must_precede_1_modifier,"export","declare");if(ce&64)return mn(Me,x._0_modifier_must_precede_1_modifier,"export","abstract");if(ce&1024)return mn(Me,x._0_modifier_must_precede_1_modifier,"export","async");if(Co(o.parent))return mn(Me,x._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(o.kind===170)return mn(Me,x._0_modifier_cannot_appear_on_a_parameter,"export");if(v===4)return mn(Me,x._0_modifier_cannot_appear_on_a_using_declaration,"export");if(v===6)return mn(Me,x._0_modifier_cannot_appear_on_an_await_using_declaration,"export");ce|=32;break;case 90:let Jt=o.parent.kind===308?o.parent:o.parent.parent;if(Jt.kind===268&&!Gm(Jt))return mn(Me,x.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(v===4)return mn(Me,x._0_modifier_cannot_appear_on_a_using_declaration,"default");if(v===6)return mn(Me,x._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(ce&32){if(fe)return mn(se,x.Decorators_are_not_valid_here)}else return mn(Me,x._0_modifier_must_precede_1_modifier,"export","default");ce|=2048;break;case 138:if(ce&128)return mn(Me,x._0_modifier_already_seen,"declare");if(ce&1024)return mn(Me,x._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(ce&16)return mn(Me,x._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(Co(o.parent)&&!ps(o))return mn(Me,x._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(o.kind===170)return mn(Me,x._0_modifier_cannot_appear_on_a_parameter,"declare");if(v===4)return mn(Me,x._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(v===6)return mn(Me,x._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(o.parent.flags&33554432&&o.parent.kind===269)return mn(Me,x.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(Tm(o))return mn(Me,x._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(ce&512)return mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");ce|=128,D=Me;break;case 128:if(ce&64)return mn(Me,x._0_modifier_already_seen,"abstract");if(o.kind!==264&&o.kind!==186){if(o.kind!==175&&o.kind!==173&&o.kind!==178&&o.kind!==179)return mn(Me,x.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(o.parent.kind===264&&ko(o.parent,64))){let Xt=o.kind===173?x.Abstract_properties_can_only_appear_within_an_abstract_class:x.Abstract_methods_can_only_appear_within_an_abstract_class;return mn(Me,Xt)}if(ce&256)return mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(ce&2)return mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(ce&1024&&R)return mn(R,x._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(ce&16)return mn(Me,x._0_modifier_must_precede_1_modifier,"abstract","override");if(ce&512)return mn(Me,x._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Vp(o)&&o.name.kind===81)return mn(Me,x._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");ce|=64;break;case 134:if(ce&1024)return mn(Me,x._0_modifier_already_seen,"async");if(ce&128||o.parent.flags&33554432)return mn(Me,x._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(o.kind===170)return mn(Me,x._0_modifier_cannot_appear_on_a_parameter,"async");if(ce&64)return mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");ce|=1024,R=Me;break;case 103:case 147:{let Xt=Me.kind===103?8192:16384,kr=Me.kind===103?"in":"out",on=c1(o.parent)&&(fA(o.parent)||wt((p=QR(o.parent))==null?void 0:p.tags,_3))||o.parent;if(o.kind!==169||on&&!(Af(on)||Co(on)||s1(on)||_3(on)))return mn(Me,x._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,kr);if(ce&Xt)return mn(Me,x._0_modifier_already_seen,kr);if(Xt&8192&&ce&16384)return mn(Me,x._0_modifier_must_precede_1_modifier,"in","out");ce|=Xt;break}}}return o.kind===177?ce&256?mn(E,x._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):ce&16?mn(K,x._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):ce&1024?mn(R,x._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(o.kind===273||o.kind===272)&&ce&128?mn(D,x.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):o.kind===170&&ce&31&&$s(o.name)?mn(o,x.A_parameter_property_may_not_be_declared_using_a_binding_pattern):o.kind===170&&ce&31&&o.dotDotDotToken?mn(o,x.A_parameter_property_cannot_be_declared_using_a_rest_parameter):ce&1024?GPr(o,R):!1}function qPr(o){if(!o.modifiers)return!1;let p=JPr(o);return p&&mf(p,x.Modifiers_cannot_appear_here)}function i2e(o,p){let m=wt(o.modifiers,bc);return m&&m.kind!==p?m:void 0}function JPr(o){switch(o.kind){case 178:case 179:case 177:case 173:case 172:case 175:case 174:case 182:case 268:case 273:case 272:case 279:case 278:case 219:case 220:case 170:case 169:return;case 176:case 304:case 305:case 271:case 283:return wt(o.modifiers,bc);default:if(o.parent.kind===269||o.parent.kind===308)return;switch(o.kind){case 263:return i2e(o,134);case 264:case 186:return i2e(o,128);case 232:case 265:case 266:return wt(o.modifiers,bc);case 244:return o.declarationList.flags&4?i2e(o,135):wt(o.modifiers,bc);case 267:return i2e(o,87);default:$.assertNever(o)}}}function VPr(o){let p=WPr(o);return p&&mf(p,x.Decorators_are_not_valid_here)}function WPr(o){return eye(o)?wt(o.modifiers,hd):void 0}function GPr(o,p){switch(o.kind){case 175:case 263:case 219:case 220:return!1}return mn(p,x._0_modifier_cannot_be_used_here,"async")}function z7(o,p=x.Trailing_comma_not_allowed){return o&&o.hasTrailingComma?Iw(o[0],o.end-1,1,p):!1}function Nwt(o,p){if(o&&o.length===0){let m=o.pos-1,v=_c(p.text,o.end)+1;return Iw(p,m,v-m,x.Type_parameter_list_cannot_be_empty)}return!1}function HPr(o){let p=!1,m=o.length;for(let v=0;v!!p.initializer||$s(p.name)||Sb(p))}function QPr(o){if(re>=3){let p=o.body&&Vs(o.body)&&Qge(o.body.statements);if(p){let m=KPr(o.parameters);if(te(m)){X(m,E=>{ac(gt(E,x.This_parameter_is_not_allowed_with_use_strict_directive),xi(p,x.use_strict_directive_used_here))});let v=m.map((E,D)=>D===0?xi(E,x.Non_simple_parameter_declared_here):xi(E,x.and_here));return ac(gt(p,x.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...v),!0}}}return!1}function o2e(o){let p=Pn(o);return pT(o)||Nwt(o.typeParameters,p)||HPr(o.parameters)||XPr(o,p)||lu(o)&&QPr(o)}function ZPr(o){let p=Pn(o);return n6r(o)||Nwt(o.typeParameters,p)}function XPr(o,p){if(!Iu(o))return!1;o.typeParameters&&!(te(o.typeParameters)>1||o.typeParameters.hasTrailingComma||o.typeParameters[0].constraint)&&p&&_p(p.fileName,[".mts",".cts"])&&mn(o.typeParameters[0],x.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);let{equalsGreaterThanToken:m}=o,v=qs(p,m.pos).line,E=qs(p,m.end).line;return v!==E&&mn(m,x.Line_terminator_not_permitted_before_arrow)}function YPr(o){let p=o.parameters[0];if(o.parameters.length!==1)return mn(p?p.name:o,x.An_index_signature_must_have_exactly_one_parameter);if(z7(o.parameters,x.An_index_signature_cannot_have_a_trailing_comma),p.dotDotDotToken)return mn(p.dotDotDotToken,x.An_index_signature_cannot_have_a_rest_parameter);if(yhe(p))return mn(p.name,x.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(p.questionToken)return mn(p.questionToken,x.An_index_signature_parameter_cannot_have_a_question_mark);if(p.initializer)return mn(p.name,x.An_index_signature_parameter_cannot_have_an_initializer);if(!p.type)return mn(p.name,x.An_index_signature_parameter_must_have_a_type_annotation);let m=Sa(p.type);return j0(m,v=>!!(v.flags&8576))||xw(m)?mn(p.name,x.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):bg(m,vxe)?o.type?!1:mn(o,x.An_index_signature_must_have_a_type_annotation):mn(p.name,x.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function e6r(o){return pT(o)||YPr(o)}function t6r(o,p){if(p&&p.length===0){let m=Pn(o),v=p.pos-1,E=_c(m.text,p.end)+1;return Iw(m,v,E-v,x.Type_argument_list_cannot_be_empty)}return!1}function wce(o,p){return z7(p)||t6r(o,p)}function r6r(o){return o.questionDotToken||o.flags&64?mn(o.template,x.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function Owt(o){let p=o.types;if(z7(p))return!0;if(p&&p.length===0){let m=Zs(o.token);return Iw(o,p.pos,0,x._0_list_cannot_be_empty,m)}return Pt(p,Fwt)}function Fwt(o){return VT(o)&&sz(o.expression)&&o.typeArguments?mn(o,x.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):wce(o,o.typeArguments)}function n6r(o){let p=!1,m=!1;if(!pT(o)&&o.heritageClauses)for(let v of o.heritageClauses){if(v.token===96){if(p)return mf(v,x.extends_clause_already_seen);if(m)return mf(v,x.extends_clause_must_precede_implements_clause);if(v.types.length>1)return mf(v.types[1],x.Classes_can_only_extend_a_single_class);p=!0}else{if($.assert(v.token===119),m)return mf(v,x.implements_clause_already_seen);m=!0}Owt(v)}}function i6r(o){let p=!1;if(o.heritageClauses)for(let m of o.heritageClauses){if(m.token===96){if(p)return mf(m,x.extends_clause_already_seen);p=!0}else return $.assert(m.token===119),mf(m,x.Interface_declaration_cannot_have_implements_clause);Owt(m)}return!1}function a2e(o){if(o.kind!==168)return!1;let p=o;return p.expression.kind===227&&p.expression.operatorToken.kind===28?mn(p.expression,x.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function YUe(o){if(o.asteriskToken){if($.assert(o.kind===263||o.kind===219||o.kind===175),o.flags&33554432)return mn(o.asteriskToken,x.Generators_are_not_allowed_in_an_ambient_context);if(!o.body)return mn(o.asteriskToken,x.An_overload_signature_cannot_be_declared_as_a_generator)}}function eze(o,p){return!!o&&mn(o,p)}function Rwt(o,p){return!!o&&mn(o,p)}function o6r(o,p){let m=new Map;for(let v of o.properties){if(v.kind===306){if(p){let R=bl(v.expression);if(qf(R)||Lc(R))return mn(v.expression,x.A_rest_element_cannot_contain_a_binding_pattern)}continue}let E=v.name;if(E.kind===168&&a2e(E),v.kind===305&&!p&&v.objectAssignmentInitializer&&mn(v.equalsToken,x.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),E.kind===81&&mn(E,x.Private_identifiers_are_not_allowed_outside_class_bodies),l1(v)&&v.modifiers)for(let R of v.modifiers)bc(R)&&(R.kind!==134||v.kind!==175)&&mn(R,x._0_modifier_cannot_be_used_here,Sp(R));else if(dNe(v)&&v.modifiers)for(let R of v.modifiers)bc(R)&&mn(R,x._0_modifier_cannot_be_used_here,Sp(R));let D;switch(v.kind){case 305:case 304:Rwt(v.exclamationToken,x.A_definite_assignment_assertion_is_not_permitted_in_this_context),eze(v.questionToken,x.An_object_member_cannot_be_declared_optional),E.kind===9&&qwt(E),E.kind===10&&Kx(!0,xi(E,x.A_bigint_literal_cannot_be_used_as_a_property_name)),D=4;break;case 175:D=8;break;case 178:D=1;break;case 179:D=2;break;default:$.assertNever(v,"Unexpected syntax kind:"+v.kind)}if(!p){let R=nze(E);if(R===void 0)continue;let K=m.get(R);if(!K)m.set(R,D);else if(D&8&&K&8)mn(E,x.Duplicate_identifier_0,Sp(E));else if(D&4&&K&4)mn(E,x.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Sp(E));else if(D&3&&K&3)if(K!==3&&D!==K)m.set(R,D|K);else return mn(E,x.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return mn(E,x.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function a6r(o){s6r(o.tagName),wce(o,o.typeArguments);let p=new Map;for(let m of o.attributes.properties){if(m.kind===294)continue;let{name:v,initializer:E}=m,D=YU(v);if(!p.get(D))p.set(D,!0);else return mn(v,x.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(E&&E.kind===295&&!E.expression)return mn(E,x.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function s6r(o){if(no(o)&&Ev(o.expression))return mn(o.expression,x.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(Ev(o)&&lne(Q)&&!eL(o.namespace.escapedText))return mn(o,x.React_components_cannot_include_JSX_namespace_names)}function c6r(o){if(o.expression&&gz(o.expression))return mn(o.expression,x.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function Lwt(o){if(k2(o))return!0;if(o.kind===251&&o.awaitModifier&&!(o.flags&65536)){let p=Pn(o);if(vre(o)){if(!sD(p))switch($R(p,Q)||il.add(xi(o.awaitModifier,x.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),ae){case 100:case 101:case 102:case 199:if(p.impliedNodeFormat===1){il.add(xi(o.awaitModifier,x.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 200:case 4:if(re>=4)break;default:il.add(xi(o.awaitModifier,x.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!sD(p)){let m=xi(o.awaitModifier,x.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),v=My(o);if(v&&v.kind!==177){$.assert((A_(v)&2)===0,"Enclosing function should never be an async function.");let E=xi(v,x.Did_you_mean_to_mark_this_function_as_async);ac(m,E)}return il.add(m),!0}}if($H(o)&&!(o.flags&65536)&&ct(o.initializer)&&o.initializer.escapedText==="async")return mn(o.initializer,x.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(o.initializer.kind===262){let p=o.initializer;if(!rze(p)){let m=p.declarations;if(!m.length)return!1;if(m.length>1){let E=o.kind===250?x.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:x.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return mf(p.declarations[1],E)}let v=m[0];if(v.initializer){let E=o.kind===250?x.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:x.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return mn(v.name,E)}if(v.type){let E=o.kind===250?x.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:x.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return mn(v,E)}}}return!1}function l6r(o){if(!(o.flags&33554432)&&o.parent.kind!==188&&o.parent.kind!==265){if(re<2&&Aa(o.name))return mn(o.name,x.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(o.body===void 0&&!ko(o,64))return Iw(o,o.end-1,1,x._0_expected,"{")}if(o.body){if(ko(o,64))return mn(o,x.An_abstract_accessor_cannot_have_an_implementation);if(o.parent.kind===188||o.parent.kind===265)return mn(o.body,x.An_implementation_cannot_be_declared_in_ambient_contexts)}if(o.typeParameters)return mn(o.name,x.An_accessor_cannot_have_type_parameters);if(!u6r(o))return mn(o.name,o.kind===178?x.A_get_accessor_cannot_have_parameters:x.A_set_accessor_must_have_exactly_one_parameter);if(o.kind===179){if(o.type)return mn(o.name,x.A_set_accessor_cannot_have_a_return_type_annotation);let p=$.checkDefined(NU(o),"Return value does not match parameter count assertion.");if(p.dotDotDotToken)return mn(p.dotDotDotToken,x.A_set_accessor_cannot_have_rest_parameter);if(p.questionToken)return mn(p.questionToken,x.A_set_accessor_cannot_have_an_optional_parameter);if(p.initializer)return mn(o.name,x.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function u6r(o){return tze(o)||o.parameters.length===(o.kind===178?0:1)}function tze(o){if(o.parameters.length===(o.kind===178?1:2))return cP(o)}function p6r(o){if(o.operator===158){if(o.type.kind!==155)return mn(o.type,x._0_expected,Zs(155));let p=HG(o.parent);if(Ei(p)&&AA(p)){let m=iP(p);m&&(p=GO(m)||m)}switch(p.kind){case 261:let m=p;if(m.name.kind!==80)return mn(o,x.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!dU(m))return mn(o,x.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(m.parent.flags&2))return mn(p.name,x.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 173:if(!oc(p)||!Q4(p))return mn(p.name,x.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 172:if(!ko(p,8))return mn(p.name,x.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return mn(o,x.unique_symbol_types_are_not_allowed_here)}}else if(o.operator===148&&o.type.kind!==189&&o.type.kind!==190)return mf(o,x.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Zs(155))}function lJ(o,p){if(y2t(o)&&!ru(mu(o)?bl(o.argumentExpression):o.expression))return mn(o,p)}function Mwt(o){if(o2e(o))return!0;if(o.kind===175){if(o.parent.kind===211){if(o.modifiers&&!(o.modifiers.length===1&&To(o.modifiers).kind===134))return mf(o,x.Modifiers_cannot_appear_here);if(eze(o.questionToken,x.An_object_member_cannot_be_declared_optional))return!0;if(Rwt(o.exclamationToken,x.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(o.body===void 0)return Iw(o,o.end-1,1,x._0_expected,"{")}if(YUe(o))return!0}if(Co(o.parent)){if(re<2&&Aa(o.name))return mn(o.name,x.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(o.flags&33554432)return lJ(o.name,x.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(o.kind===175&&!o.body)return lJ(o.name,x.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(o.parent.kind===265)return lJ(o.name,x.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(o.parent.kind===188)return lJ(o.name,x.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function _6r(o){let p=o;for(;p;){if(RR(p))return mn(o,x.Jump_target_cannot_cross_function_boundary);switch(p.kind){case 257:if(o.label&&p.label.escapedText===o.label.escapedText)return o.kind===252&&!rC(p.statement,!0)?mn(o,x.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 256:if(o.kind===253&&!o.label)return!1;break;default:if(rC(p,!1)&&!o.label)return!1;break}p=p.parent}if(o.label){let m=o.kind===253?x.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:x.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return mn(o,m)}else{let m=o.kind===253?x.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:x.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return mn(o,m)}}function d6r(o){if(o.dotDotDotToken){let p=o.parent.elements;if(o!==Sn(p))return mn(o,x.A_rest_element_must_be_last_in_a_destructuring_pattern);if(z7(p,x.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),o.propertyName)return mn(o.name,x.A_rest_element_cannot_have_a_property_name)}if(o.dotDotDotToken&&o.initializer)return Iw(o,o.initializer.pos-1,1,x.A_rest_element_cannot_have_an_initializer)}function jwt(o){return jy(o)||o.kind===225&&o.operator===41&&o.operand.kind===9}function f6r(o){return o.kind===10||o.kind===225&&o.operator===41&&o.operand.kind===10}function m6r(o){if((no(o)||mu(o)&&jwt(o.argumentExpression))&&ru(o.expression))return!!(Bp(o).flags&1056)}function Bwt(o){let p=o.initializer;if(p){let m=!(jwt(p)||m6r(p)||p.kind===112||p.kind===97||f6r(p));if((kG(o)||Oo(o)&&JZ(o))&&!o.type){if(m)return mn(p,x.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return mn(p,x.Initializers_are_not_allowed_in_ambient_contexts)}}function h6r(o){let p=f6(o),m=p&7;if($s(o.name))switch(m){case 6:return mn(o,x._0_declarations_may_not_have_binding_patterns,"await using");case 4:return mn(o,x._0_declarations_may_not_have_binding_patterns,"using")}if(o.parent.parent.kind!==250&&o.parent.parent.kind!==251){if(p&33554432)Bwt(o);else if(!o.initializer){if($s(o.name)&&!$s(o.parent))return mn(o,x.A_destructuring_declaration_must_have_an_initializer);switch(m){case 6:return mn(o,x._0_declarations_must_be_initialized,"await using");case 4:return mn(o,x._0_declarations_must_be_initialized,"using");case 2:return mn(o,x._0_declarations_must_be_initialized,"const")}}}if(o.exclamationToken&&(o.parent.parent.kind!==244||!o.type||o.initializer||p&33554432)){let v=o.initializer?x.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:o.type?x.A_definite_assignment_assertion_is_not_permitted_in_this_context:x.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return mn(o.exclamationToken,v)}return t.getEmitModuleFormatOfFile(Pn(o))<4&&!(o.parent.parent.flags&33554432)&&ko(o.parent.parent,32)&&$wt(o.name),!!m&&Uwt(o.name)}function $wt(o){if(o.kind===80){if(Zi(o)==="__esModule")return v6r("noEmit",o,x.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{let p=o.elements;for(let m of p)if(!Id(m))return $wt(m.name)}return!1}function Uwt(o){if(o.kind===80){if(o.escapedText==="let")return mn(o,x.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{let p=o.elements;for(let m of p)Id(m)||Uwt(m.name)}return!1}function rze(o){let p=o.declarations;if(z7(o.declarations))return!0;if(!o.declarations.length)return Iw(o,p.pos,p.end-p.pos,x.Variable_declaration_list_cannot_be_empty);let m=o.flags&7;if(m===4||m===6){if(Vne(o.parent))return mn(o,m===4?x.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:x.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration);if(o.flags&33554432)return mn(o,m===4?x.using_declarations_are_not_allowed_in_ambient_contexts:x.await_using_declarations_are_not_allowed_in_ambient_contexts);if(m===6)return iAt(o)}return!1}function s2e(o){switch(o.kind){case 246:case 247:case 248:case 255:case 249:case 250:case 251:return!1;case 257:return s2e(o.parent)}return!0}function g6r(o){if(!s2e(o.parent)){let p=f6(o.declarationList)&7;if(p){let m=p===1?"let":p===2?"const":p===4?"using":p===6?"await using":$.fail("Unknown BlockScope flag");gt(o,x._0_declarations_can_only_be_declared_inside_a_block,m)}}}function y6r(o){let p=o.name.escapedText;switch(o.keywordToken){case 105:if(p!=="target")return mn(o.name,x._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,oa(o.name.escapedText),Zs(o.keywordToken),"target");break;case 102:if(p!=="meta"){let m=Js(o.parent)&&o.parent.expression===o;if(p==="defer"){if(!m)return Iw(o,o.end,0,x._0_expected,"(")}else return m?mn(o.name,x._0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer,oa(o.name.escapedText)):mn(o.name,x._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,oa(o.name.escapedText),Zs(o.keywordToken),"meta")}break}}function sD(o){return o.parseDiagnostics.length>0}function mf(o,p,...m){let v=Pn(o);if(!sD(v)){let E=gS(v,o.pos);return il.add(md(v,E.start,E.length,p,...m)),!0}return!1}function Iw(o,p,m,v,...E){let D=Pn(o);return sD(D)?!1:(il.add(md(D,p,m,v,...E)),!0)}function v6r(o,p,m,...v){let E=Pn(p);return sD(E)?!1:(FE(o,p,m,...v),!0)}function mn(o,p,...m){let v=Pn(o);return sD(v)?!1:(gt(o,p,...m),!0)}function S6r(o){let p=Ei(o)?Vre(o):void 0,m=o.typeParameters||p&&pi(p);if(m){let v=m.pos===m.end?m.pos:_c(Pn(o).text,m.pos);return Iw(o,v,m.end-v,x.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function b6r(o){let p=o.type||jg(o);if(p)return mn(p,x.Type_annotation_cannot_appear_on_a_constructor_declaration)}function x6r(o){if(dc(o.name)&&wi(o.name.expression)&&o.name.expression.operatorToken.kind===103)return mn(o.parent.members[0],x.A_mapped_type_may_not_declare_properties_or_methods);if(Co(o.parent)){if(Ic(o.name)&&o.name.text==="constructor")return mn(o.name,x.Classes_may_not_have_a_field_named_constructor);if(lJ(o.name,x.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(re<2&&Aa(o.name))return mn(o.name,x.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(re<2&&Mh(o)&&!(o.flags&33554432))return mn(o.name,x.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Mh(o)&&eze(o.questionToken,x.An_accessor_property_cannot_be_declared_optional))return!0}else if(o.parent.kind===265){if(lJ(o.name,x.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if($.assertNode(o,Zm),o.initializer)return mn(o.initializer,x.An_interface_property_cannot_have_an_initializer)}else if(fh(o.parent)){if(lJ(o.name,x.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if($.assertNode(o,Zm),o.initializer)return mn(o.initializer,x.A_type_literal_property_cannot_have_an_initializer)}if(o.flags&33554432&&Bwt(o),ps(o)&&o.exclamationToken&&(!Co(o.parent)||!o.type||o.initializer||o.flags&33554432||oc(o)||pP(o))){let p=o.initializer?x.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:o.type?x.A_definite_assignment_assertion_is_not_permitted_in_this_context:x.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return mn(o.exclamationToken,p)}}function T6r(o){return o.kind===265||o.kind===266||o.kind===273||o.kind===272||o.kind===279||o.kind===278||o.kind===271||ko(o,2208)?!1:mf(o,x.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function E6r(o){for(let p of o.statements)if((Vd(p)||p.kind===244)&&T6r(p))return!0;return!1}function zwt(o){return!!(o.flags&33554432)&&E6r(o)}function k2(o){if(o.flags&33554432){if(!Ki(o).hasReportedStatementInAmbientContext&&(Rs(o.parent)||tC(o.parent)))return Ki(o).hasReportedStatementInAmbientContext=mf(o,x.An_implementation_cannot_be_declared_in_ambient_contexts);if(o.parent.kind===242||o.parent.kind===269||o.parent.kind===308){let m=Ki(o.parent);if(!m.hasReportedStatementInAmbientContext)return m.hasReportedStatementInAmbientContext=mf(o,x.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function qwt(o){let p=Sp(o).includes("."),m=o.numericLiteralFlags&16;p||m||+o.text<=2**53-1||Kx(!1,xi(o,x.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function k6r(o){return!!(!(bE(o.parent)||TA(o.parent)&&bE(o.parent.parent))&&!(o.flags&33554432)&&re<7&&mn(o,x.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function C6r(o,p,...m){let v=Pn(o);if(!sD(v)){let E=gS(v,o.pos);return il.add(md(v,Xn(E),0,p,...m)),!0}return!1}function D6r(){return yy||(yy=[],It.forEach((o,p)=>{D8e.test(p)&&yy.push(o)})),yy}function A6r(o){var p,m;if(o.phaseModifier===156){if(o.name&&o.namedBindings)return mn(o,x.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);if(((p=o.namedBindings)==null?void 0:p.kind)===276)return Jwt(o.namedBindings)}else if(o.phaseModifier===166){if(o.name)return mn(o,x.Default_imports_are_not_allowed_in_a_deferred_import);if(((m=o.namedBindings)==null?void 0:m.kind)===276)return mn(o,x.Named_imports_are_not_allowed_in_a_deferred_import);if(ae!==99&&ae!==200)return mn(o,x.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}return!1}function Jwt(o){return!!X(o.elements,p=>{if(p.isTypeOnly)return mf(p,p.kind===277?x.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:x.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function w6r(o){if(Q.verbatimModuleSyntax&&ae===1)return mn(o,M3(o));if(o.expression.kind===237){if(ae!==99&&ae!==200)return mn(o,x.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}else if(ae===5)return mn(o,x.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext);if(o.typeArguments)return mn(o,x.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);let p=o.arguments;if(!(100<=ae&&ae<=199)&&ae!==99&&ae!==200&&(z7(p),p.length>1)){let v=p[1];return mn(v,x.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve)}if(p.length===0||p.length>2)return mn(o,x.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);let m=wt(p,E0);return m?mn(m,x.Argument_of_dynamic_import_cannot_be_spread_element):!1}function I6r(o,p){let m=ro(o);if(m&20&&p.flags&1048576)return wt(p.types,v=>{if(v.flags&524288){let E=m&ro(v);if(E&4)return o.target===v.target;if(E&16)return!!o.aliasSymbol&&o.aliasSymbol===v.aliasSymbol}return!1})}function P6r(o,p){if(ro(o)&128&&j0(p,YE))return wt(p.types,m=>!YE(m))}function N6r(o,p){let m=0;if(Gs(o,m).length>0||(m=1,Gs(o,m).length>0))return wt(p.types,E=>Gs(E,m).length>0)}function O6r(o,p){let m;if(!(o.flags&406978556)){let v=0;for(let E of p.types)if(!(E.flags&406978556)){let D=Ac([KS(o),KS(E)]);if(D.flags&4194304)return E;if($v(D)||D.flags&1048576){let R=D.flags&1048576?Lo(D.types,$v):1;R>=v&&(m=E,v=R)}}}return m}function F6r(o){if(s_(o,67108864)){let p=G_(o,m=>!(m.flags&402784252));if(!(p.flags&131072))return p}return o}function Vwt(o,p,m){if(p.flags&1048576&&o.flags&2621440){let v=Wkt(p,o);if(v)return v;let E=$l(o);if(E){let D=Vkt(E,p);if(D){let R=BBe(p,Cr(D,K=>[()=>di(K),K.escapedName]),m);if(R!==p)return R}}}}function nze(o){let p=H4(o);return p||(dc(o)?p$e(Kf(o.expression)):void 0)}function c2e(o){return nn===o||(nn=o,Nn=Ra(o)),Nn}function f6(o){return Kt===o||(Kt=o,Sr=dd(o)),Sr}function JZ(o){let p=f6(o)&7;return p===2||p===4||p===6}function R6r(o,p){let m=Q.importHelpers?1:0,v=o?.imports[m];return v&&$.assert(fu(v)&&v.text===p,`Expected sourceFile.imports[${m}] to be the synthesized JSX runtime import`),v}function L6r(o){$.assert(Q.importHelpers,"Expected importHelpers to be enabled");let p=o.imports[0];return $.assert(p&&fu(p)&&p.text==="tslib","Expected sourceFile.imports[0] to be the synthesized tslib import"),p}}function gar(t){return!tC(t)}function l_t(t){return t.kind!==263&&t.kind!==175||!!t.body}function u_t(t){switch(t.parent.kind){case 277:case 282:return ct(t)||t.kind===11;default:return Eb(t)}}var qy;(t=>{t.JSX="JSX",t.IntrinsicElements="IntrinsicElements",t.ElementClass="ElementClass",t.ElementAttributesPropertyNameContainer="ElementAttributesProperty",t.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",t.Element="Element",t.ElementType="ElementType",t.IntrinsicAttributes="IntrinsicAttributes",t.IntrinsicClassAttributes="IntrinsicClassAttributes",t.LibraryManagedAttributes="LibraryManagedAttributes"})(qy||(qy={}));var Kye;(t=>{t.Fragment="Fragment"})(Kye||(Kye={}));function p_t(t){switch(t){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Am(t){return!!(t.flags&1)}function __t(t){return!!(t.flags&2)}function yar(t){return{getCommonSourceDirectory:t.getCommonSourceDirectory?()=>t.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>t.getCurrentDirectory(),getSymlinkCache:ja(t,t.getSymlinkCache),getPackageJsonInfoCache:()=>{var n;return(n=t.getPackageJsonInfoCache)==null?void 0:n.call(t)},useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),redirectTargetsMap:t.redirectTargetsMap,getRedirectFromSourceFile:n=>t.getRedirectFromSourceFile(n),isSourceOfProjectReferenceRedirect:n=>t.isSourceOfProjectReferenceRedirect(n),fileExists:n=>t.fileExists(n),getFileIncludeReasons:()=>t.getFileIncludeReasons(),readFile:t.readFile?n=>t.readFile(n):void 0,getDefaultResolutionModeForFile:n=>t.getDefaultResolutionModeForFile(n),getModeForResolutionAtIndex:(n,a)=>t.getModeForResolutionAtIndex(n,a),getGlobalTypingsCacheLocation:ja(t,t.getGlobalTypingsCacheLocation)}}var I8e=class rtr{constructor(n,a,c){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var u;a instanceof rtr;)a=a.inner;this.inner=a,this.moduleResolverHost=c,this.context=n,this.canTrackSymbol=!!((u=this.inner)!=null&&u.trackSymbol)}trackSymbol(n,a,c){var u,_;if((u=this.inner)!=null&&u.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(n,a,c))return this.onDiagnosticReported(),!0;n.flags&262144||((_=this.context).trackedSymbols??(_.trackedSymbols=[])).push([n,a,c])}return!1}reportInaccessibleThisError(){var n;(n=this.inner)!=null&&n.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(n){var a;(a=this.inner)!=null&&a.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(n))}reportInaccessibleUniqueSymbolError(){var n;(n=this.inner)!=null&&n.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var n;(n=this.inner)!=null&&n.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(n){var a;(a=this.inner)!=null&&a.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(n))}reportTruncationError(){var n;(n=this.inner)!=null&&n.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}reportNonlocalAugmentation(n,a,c){var u;(u=this.inner)!=null&&u.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(n,a,c))}reportNonSerializableProperty(n){var a;(a=this.inner)!=null&&a.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(n))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}reportInferenceFallback(n){var a;(a=this.inner)!=null&&a.reportInferenceFallback&&!this.context.suppressReportInferenceFallback&&(this.onDiagnosticReported(),this.inner.reportInferenceFallback(n))}pushErrorFallbackNode(n){var a,c;return(c=(a=this.inner)==null?void 0:a.pushErrorFallbackNode)==null?void 0:c.call(a,n)}popErrorFallbackNode(){var n,a;return(a=(n=this.inner)==null?void 0:n.popErrorFallbackNode)==null?void 0:a.call(n)}};function At(t,n,a,c){if(t===void 0)return t;let u=n(t),_;if(u!==void 0)return Zn(u)?_=(c||kar)(u):_=u,$.assertNode(_,a),_}function Bn(t,n,a,c,u){if(t===void 0)return t;let _=t.length;(c===void 0||c<0)&&(c=0),(u===void 0||u>_-c)&&(u=_-c);let f,y=-1,g=-1;c>0||u<_?f=t.hasTrailingComma&&c+u===_:(y=t.pos,g=t.end,f=t.hasTrailingComma);let k=d_t(t,n,a,c,u);if(k!==t){let T=W.createNodeArray(k,f);return xv(T,y,g),T}return t}function Az(t,n,a,c,u){if(t===void 0)return t;let _=t.length;return(c===void 0||c<0)&&(c=0),(u===void 0||u>_-c)&&(u=_-c),d_t(t,n,a,c,u)}function d_t(t,n,a,c,u){let _,f=t.length;(c>0||u=2&&(u=Sar(u,a)),a.setLexicalEnvironmentFlags(1,!1)),a.suspendLexicalEnvironment(),u}function Sar(t,n){let a;for(let c=0;c{let f=cy,addSource:Fe,setSourceContent:Be,addName:de,addMapping:je,appendSourceMap:ve,toJSON:ke,toString:()=>JSON.stringify(ke())};function Fe(Se){_();let tt=FT(c,Se,t.getCurrentDirectory(),t.getCanonicalFileName,!0),Qe=k.get(tt);return Qe===void 0&&(Qe=g.length,g.push(tt),y.push(Se),k.set(tt,Qe)),f(),Qe}function Be(Se,tt){if(_(),tt!==null){for(T||(T=[]);T.lengthtt||Oe===tt&&be>Qe)}function je(Se,tt,Qe,We,St,Kt){$.assert(Se>=_e,"generatedLine cannot backtrack"),$.assert(tt>=0,"generatedCharacter cannot be negative"),$.assert(Qe===void 0||Qe>=0,"sourceIndex cannot be negative"),$.assert(We===void 0||We>=0,"sourceLine cannot be negative"),$.assert(St===void 0||St>=0,"sourceCharacter cannot be negative"),_(),(ze(Se,tt)||ut(Qe,We,St))&&(nt(),_e=Se,me=tt,Ce=!1,Ae=!1,De=!0),Qe!==void 0&&We!==void 0&&St!==void 0&&(le=Qe,Oe=We,be=St,Ce=!0,Kt!==void 0&&(ue=Kt,Ae=!0)),f()}function ve(Se,tt,Qe,We,St,Kt){$.assert(Se>=_e,"generatedLine cannot backtrack"),$.assert(tt>=0,"generatedCharacter cannot be negative"),_();let Sr=[],nn,Nn=e0e(Qe.mappings);for(let $t of Nn){if(Kt&&($t.generatedLine>Kt.line||$t.generatedLine===Kt.line&&$t.generatedCharacter>Kt.character))break;if(St&&($t.generatedLine=1024&&It()}function nt(){if(!(!De||!Le())){if(_(),U<_e){do Ve(59),U++;while(U<_e);J=0}else $.assertEqual(U,_e,"generatedLine cannot backtrack"),ae&&Ve(44);_t(me-J),J=me,Ce&&(_t(le-G),G=le,_t(Oe-Z),Z=Oe,_t(be-Q),Q=be,Ae&&(_t(ue-re),re=ue)),ae=!0,f()}}function It(){F.length>0&&(M+=String.fromCharCode.apply(void 0,F),F.length=0)}function ke(){return nt(),It(),{version:3,file:n,sourceRoot:a,sources:g,names:C,mappings:M,sourcesContent:T}}function _t(Se){Se<0?Se=(-Se<<1)+1:Se=Se<<1;do{let tt=Se&31;Se=Se>>5,Se>0&&(tt=tt|32),Ve(Aar(tt))}while(Se>0)}}var N8e=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,Zye=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,Xye=/^\s*(\/\/[@#] .*)?$/;function Yye(t,n){return{getLineCount:()=>n.length,getLineText:a=>t.substring(n[a],n[a+1])}}function O8e(t){for(let n=t.getLineCount()-1;n>=0;n--){let a=t.getLineText(n),c=Zye.exec(a);if(c)return c[1].trimEnd();if(!a.match(Xye))break}}function Car(t){return typeof t=="string"||t===null}function Dar(t){return t!==null&&typeof t=="object"&&t.version===3&&typeof t.file=="string"&&typeof t.mappings=="string"&&Zn(t.sources)&&ht(t.sources,Ni)&&(t.sourceRoot===void 0||t.sourceRoot===null||typeof t.sourceRoot=="string")&&(t.sourcesContent===void 0||t.sourcesContent===null||Zn(t.sourcesContent)&&ht(t.sourcesContent,Car))&&(t.names===void 0||t.names===null||Zn(t.names)&&ht(t.names,Ni))}function F8e(t){try{let n=JSON.parse(t);if(Dar(n))return n}catch{}}function e0e(t){let n=!1,a=0,c=0,u=0,_=0,f=0,y=0,g=0,k;return{get pos(){return a},get error(){return k},get state(){return T(!0,!0)},next(){for(;!n&&a=t.length)return O("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;let re=war(t.charCodeAt(a));if(re===-1)return O("Invalid character in VLQ"),-1;G=(re&32)!==0,Q=Q|(re&31)<>1:(Q=Q>>1,Q=-Q),Q}}function f_t(t,n){return t===n||t.generatedLine===n.generatedLine&&t.generatedCharacter===n.generatedCharacter&&t.sourceIndex===n.sourceIndex&&t.sourceLine===n.sourceLine&&t.sourceCharacter===n.sourceCharacter&&t.nameIndex===n.nameIndex}function R8e(t){return t.sourceIndex!==void 0&&t.sourceLine!==void 0&&t.sourceCharacter!==void 0}function Aar(t){return t>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:t===62?43:t===63?47:$.fail(`${t}: not a base64 value`)}function war(t){return t>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:t===43?62:t===47?63:-1}function m_t(t){return t.sourceIndex!==void 0&&t.sourcePosition!==void 0}function h_t(t,n){return t.generatedPosition===n.generatedPosition&&t.sourceIndex===n.sourceIndex&&t.sourcePosition===n.sourcePosition}function Iar(t,n){return $.assert(t.sourceIndex===n.sourceIndex),Br(t.sourcePosition,n.sourcePosition)}function Par(t,n){return Br(t.generatedPosition,n.generatedPosition)}function Nar(t){return t.sourcePosition}function Oar(t){return t.generatedPosition}function L8e(t,n,a){let c=mo(a),u=n.sourceRoot?za(n.sourceRoot,c):c,_=za(n.file,c),f=t.getSourceFileLike(_),y=n.sources.map(Z=>za(Z,u)),g=new Map(y.map((Z,Q)=>[t.getCanonicalFileName(Z),Q])),k,T,C;return{getSourcePosition:G,getGeneratedPosition:J};function O(Z){let Q=f!==void 0?C4(f,Z.generatedLine,Z.generatedCharacter,!0):-1,re,ae;if(R8e(Z)){let _e=t.getSourceFileLike(y[Z.sourceIndex]);re=n.sources[Z.sourceIndex],ae=_e!==void 0?C4(_e,Z.sourceLine,Z.sourceCharacter,!0):-1}return{generatedPosition:Q,source:re,sourceIndex:Z.sourceIndex,sourcePosition:ae,nameIndex:Z.nameIndex}}function F(){if(k===void 0){let Z=e0e(n.mappings),Q=so(Z,O);Z.error!==void 0?(t.log&&t.log(`Encountered error while decoding sourcemap: ${Z.error}`),k=j):k=Q}return k}function M(Z){if(C===void 0){let Q=[];for(let re of F()){if(!m_t(re))continue;let ae=Q[re.sourceIndex];ae||(Q[re.sourceIndex]=ae=[]),ae.push(re)}C=Q.map(re=>O1(re,Iar,h_t))}return C[Z]}function U(){if(T===void 0){let Z=[];for(let Q of F())Z.push(Q);T=O1(Z,Par,h_t)}return T}function J(Z){let Q=g.get(t.getCanonicalFileName(Z.fileName));if(Q===void 0)return Z;let re=M(Q);if(!Pt(re))return Z;let ae=Yl(re,Z.pos,Nar,Br);ae<0&&(ae=~ae);let _e=re[ae];return _e===void 0||_e.sourceIndex!==Q?Z:{fileName:_,pos:_e.generatedPosition}}function G(Z){let Q=U();if(!Pt(Q))return Z;let re=Yl(Q,Z.pos,Oar,Br);re<0&&(re=~re);let ae=Q[re];return ae===void 0||!m_t(ae)?Z:{fileName:y[ae.sourceIndex],pos:ae.sourcePosition}}}var t0e={getSourcePosition:vl,getGeneratedPosition:vl};function gh(t){return t=Ku(t),t?hl(t):0}function g_t(t){return!t||!IS(t)&&!k0(t)?!1:Pt(t.elements,y_t)}function y_t(t){return bb(t.propertyName||t.name)}function Cv(t,n){return a;function a(u){return u.kind===308?n(u):c(u)}function c(u){return t.factory.createBundle(Cr(u.sourceFiles,n))}}function M8e(t){return!!HR(t)}function Mie(t){if(HR(t))return!0;let n=t.importClause&&t.importClause.namedBindings;if(!n||!IS(n))return!1;let a=0;for(let c of n.elements)y_t(c)&&a++;return a>0&&a!==n.elements.length||!!(n.elements.length-a)&&W4(t)}function r0e(t){return!Mie(t)&&(W4(t)||!!t.importClause&&IS(t.importClause.namedBindings)&&g_t(t.importClause.namedBindings))}function n0e(t,n){let a=t.getEmitResolver(),c=t.getCompilerOptions(),u=[],_=new Far,f=[],y=new Map,g=new Set,k,T=!1,C,O=!1,F=!1,M=!1;for(let Z of n.statements)switch(Z.kind){case 273:u.push(Z),!F&&Mie(Z)&&(F=!0),!M&&r0e(Z)&&(M=!0);break;case 272:Z.moduleReference.kind===284&&u.push(Z);break;case 279:if(Z.moduleSpecifier)if(!Z.exportClause)u.push(Z),O=!0;else if(u.push(Z),k0(Z.exportClause))J(Z),M||(M=g_t(Z.exportClause));else{let Q=Z.exportClause.name,re=aC(Q);y.get(re)||(wz(f,gh(Z),Q),y.set(re,!0),k=jt(k,Q)),F=!0}else J(Z);break;case 278:Z.isExportEquals&&!C&&(C=Z);break;case 244:if(ko(Z,32))for(let Q of Z.declarationList.declarations)k=v_t(Q,y,k,f);break;case 263:ko(Z,32)&&G(Z,void 0,ko(Z,2048));break;case 264:if(ko(Z,32))if(ko(Z,2048))T||(wz(f,gh(Z),t.factory.getDeclarationName(Z)),T=!0);else{let Q=Z.name;Q&&!y.get(Zi(Q))&&(wz(f,gh(Z),Q),y.set(Zi(Q),!0),k=jt(k,Q))}break}let U=Zge(t.factory,t.getEmitHelperFactory(),n,c,O,F,M);return U&&u.unshift(U),{externalImports:u,exportSpecifiers:_,exportEquals:C,hasExportStarsToExportValues:O,exportedBindings:f,exportedNames:k,exportedFunctions:g,externalHelpersImportDeclaration:U};function J(Z){for(let Q of Ba(Z.exportClause,k0).elements){let re=aC(Q.name);if(!y.get(re)){let ae=Q.propertyName||Q.name;if(ae.kind!==11){Z.moduleSpecifier||_.add(ae,Q);let _e=a.getReferencedImportDeclaration(ae)||a.getReferencedValueDeclaration(ae);if(_e){if(_e.kind===263){G(_e,Q.name,bb(Q.name));continue}wz(f,gh(_e),Q.name)}}y.set(re,!0),k=jt(k,Q.name)}}}function G(Z,Q,re){if(g.add(Ku(Z,i_)),re)T||(wz(f,gh(Z),Q??t.factory.getDeclarationName(Z)),T=!0);else{Q??(Q=Z.name);let ae=aC(Q);y.get(ae)||(wz(f,gh(Z),Q),y.set(ae,!0))}}}function v_t(t,n,a,c){if($s(t.name))for(let u of t.name.elements)Id(u)||(a=v_t(u,n,a,c));else if(!ap(t.name)){let u=Zi(t.name);n.get(u)||(n.set(u,!0),a=jt(a,t.name),HT(t.name)&&wz(c,gh(t),t.name))}return a}function wz(t,n,a){let c=t[n];return c?c.push(a):t[n]=c=[a],c}var jL=class _${constructor(){this._map=new Map}get size(){return this._map.size}has(n){return this._map.has(_$.toKey(n))}get(n){return this._map.get(_$.toKey(n))}set(n,a){return this._map.set(_$.toKey(n),a),this}delete(n){var a;return((a=this._map)==null?void 0:a.delete(_$.toKey(n)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(n){if(R4(n)||ap(n)){let a=n.emitNode.autoGenerate;if((a.flags&7)===4){let c=QH(n),u=Dx(c)&&c!==n?_$.toKey(c):`(generated@${hl(c)})`;return IA(!1,a.prefix,u,a.suffix,_$.toKey)}else{let c=`(auto@${a.id})`;return IA(!1,a.prefix,c,a.suffix,_$.toKey)}}return Aa(n)?Zi(n).slice(1):Zi(n)}},Far=class extends jL{add(t,n){let a=this.get(t);return a?a.push(n):this.set(t,a=[n]),a}remove(t,n){let a=this.get(t);a&&(pb(a,n),a.length||this.delete(t))}};function DP(t){return Sl(t)||t.kind===9||Uh(t.kind)||ct(t)}function FS(t){return!ct(t)&&DP(t)}function Iz(t){return t>=65&&t<=79}function Pz(t){switch(t){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function jie(t){if(!af(t))return;let n=bl(t.expression);return U4(n)?n:void 0}function S_t(t,n,a){for(let c=n;cLar(c,n,a))}function Rar(t){return Mar(t)||n_(t)}function $ie(t){return yr(t.members,Rar)}function Lar(t,n,a){return ps(t)&&(!!t.initializer||!n)&&fd(t)===a}function Mar(t){return ps(t)&&fd(t)}function mK(t){return t.kind===173&&t.initializer!==void 0}function j8e(t){return!oc(t)&&(OO(t)||Mh(t))&&Aa(t.name)}function B8e(t){let n;if(t){let a=t.parameters,c=a.length>0&&uC(a[0]),u=c?1:0,_=c?a.length-1:a.length;for(let f=0;f<_;f++){let y=a[f+u];(n||By(y))&&(n||(n=new Array(_)),n[f]=yb(y))}}return n}function o0e(t,n){let a=yb(t),c=n?B8e(Rx(t)):void 0;if(!(!Pt(a)&&!Pt(c)))return{decorators:a,parameters:c}}function Uie(t,n,a){switch(t.kind){case 178:case 179:return a?jar(t,n,!0):b_t(t,!1);case 175:return b_t(t,a);case 173:return Bar(t);default:return}}function jar(t,n,a){if(!t.body)return;let{firstAccessor:c,secondAccessor:u,getAccessor:_,setAccessor:f}=uP(n.members,t),y=By(c)?c:u&&By(u)?u:void 0;if(!y||t!==y)return;let g=yb(y),k=a?B8e(f):void 0;if(!(!Pt(g)&&!Pt(k)))return{decorators:g,parameters:k,getDecorators:_&&yb(_),setDecorators:f&&yb(f)}}function b_t(t,n){if(!t.body)return;let a=yb(t),c=n?B8e(t):void 0;if(!(!Pt(a)&&!Pt(c)))return{decorators:a,parameters:c}}function Bar(t){let n=yb(t);if(Pt(n))return{decorators:n}}function $ar(t,n){for(;t;){let a=n(t);if(a!==void 0)return a;t=t.previous}}function $8e(t){return{data:t}}function a0e(t,n){var a,c;return R4(n)?(a=t?.generatedIdentifiers)==null?void 0:a.get(QH(n)):(c=t?.identifiers)==null?void 0:c.get(n.escapedText)}function y3(t,n,a){R4(n)?(t.generatedIdentifiers??(t.generatedIdentifiers=new Map),t.generatedIdentifiers.set(QH(n),a)):(t.identifiers??(t.identifiers=new Map),t.identifiers.set(n.escapedText,a))}function U8e(t,n){return $ar(t,a=>a0e(a.privateEnv,n))}function Uar(t){return!t.initializer&&ct(t.name)}function hK(t){return ht(t,Uar)}function NF(t,n){if(!t||!Ic(t)||!JG(t.text,n))return t;let a=hE(t.text,TK(t.text,n));return a!==t.text?Yi(qt(W.createStringLiteral(a,t.singleQuote),t),t):t}var z8e=(t=>(t[t.All=0]="All",t[t.ObjectRest=1]="ObjectRest",t))(z8e||{});function v3(t,n,a,c,u,_){let f=t,y;if(dE(t))for(y=t.right;u4e(t.left)||khe(t.left);)if(dE(y))f=t=y,y=t.right;else return $.checkDefined(At(y,n,Vt));let g,k={context:a,level:c,downlevelIteration:!!a.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:T,emitBindingOrAssignment:C,createArrayBindingOrAssignmentPattern:O=>Kar(a.factory,O),createObjectBindingOrAssignmentPattern:O=>Zar(a.factory,O),createArrayBindingOrAssignmentElement:Yar,visitor:n};if(y&&(y=At(y,n,Vt),$.assert(y),ct(y)&&q8e(t,y.escapedText)||J8e(t)?y=OF(k,y,!1,f):u?y=OF(k,y,!0,f):fu(t)&&(f=y)),Nz(k,t,y,f,dE(t)),y&&u){if(!Pt(g))return y;g.push(y)}return a.factory.inlineExpressions(g)||a.factory.createOmittedExpression();function T(O){g=jt(g,O)}function C(O,F,M,U){$.assertNode(O,_?ct:Vt);let J=_?_(O,F,M):qt(a.factory.createAssignment($.checkDefined(At(O,n,Vt)),F),M);J.original=U,T(J)}}function q8e(t,n){let a=xC(t);return lG(a)?zar(a,n):ct(a)?a.escapedText===n:!1}function zar(t,n){let a=AL(t);for(let c of a)if(q8e(c,n))return!0;return!1}function J8e(t){let n=nie(t);if(n&&dc(n)&&!F4(n.expression))return!0;let a=xC(t);return!!a&&lG(a)&&qar(a)}function qar(t){return!!X(AL(t),J8e)}function AP(t,n,a,c,u,_=!1,f){let y,g=[],k=[],T={context:a,level:c,downlevelIteration:!!a.getCompilerOptions().downlevelIteration,hoistTempVariables:_,emitExpression:C,emitBindingOrAssignment:O,createArrayBindingOrAssignmentPattern:F=>Har(a.factory,F),createObjectBindingOrAssignmentPattern:F=>Qar(a.factory,F),createArrayBindingOrAssignmentElement:F=>Xar(a.factory,F),visitor:n};if(Oo(t)){let F=HH(t);F&&(ct(F)&&q8e(t,F.escapedText)||J8e(t))&&(F=OF(T,$.checkDefined(At(F,T.visitor,Vt)),!1,F),t=a.factory.updateVariableDeclaration(t,t.name,void 0,void 0,F))}if(Nz(T,t,u,t,f),y){let F=a.factory.createTempVariable(void 0);if(_){let M=a.factory.inlineExpressions(y);y=void 0,O(F,M,void 0,void 0)}else{a.hoistVariableDeclaration(F);let M=Sn(g);M.pendingExpressions=jt(M.pendingExpressions,a.factory.createAssignment(F,M.value)),En(M.pendingExpressions,y),M.value=F}}for(let{pendingExpressions:F,name:M,value:U,location:J,original:G}of g){let Z=a.factory.createVariableDeclaration(M,void 0,void 0,F?a.factory.inlineExpressions(jt(F,U)):U);Z.original=G,qt(Z,J),k.push(Z)}return k;function C(F){y=jt(y,F)}function O(F,M,U,J){$.assertNode(F,L4),y&&(M=a.factory.inlineExpressions(jt(y,M)),y=void 0),g.push({pendingExpressions:y,name:F,value:M,location:U,original:J})}}function Nz(t,n,a,c,u){let _=xC(n);if(!u){let f=At(HH(n),t.visitor,Vt);f?a?(a=War(t,a,f,c),!FS(f)&&lG(_)&&(a=OF(t,a,!0,c))):a=f:a||(a=t.context.factory.createVoidZero())}sme(_)?Jar(t,n,_,a,c):cme(_)?Var(t,n,_,a,c):t.emitBindingOrAssignment(_,a,c,n)}function Jar(t,n,a,c,u){let _=AL(a),f=_.length;if(f!==1){let k=!cG(n)||f!==0;c=OF(t,c,k,u)}let y,g;for(let k=0;k=1&&!(T.transformFlags&98304)&&!(xC(T).transformFlags&98304)&&!dc(C))y=jt(y,At(T,t.visitor,wPe));else{y&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(y),c,u,a),y=void 0);let O=Gar(t,c,C);dc(C)&&(g=jt(g,O.argumentExpression)),Nz(t,T,O,T)}}}y&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(y),c,u,a)}function Var(t,n,a,c,u){let _=AL(a),f=_.length;if(t.level<1&&t.downlevelIteration)c=OF(t,qt(t.context.getEmitHelperFactory().createReadHelper(c,f>0&&rie(_[f-1])?void 0:f),u),!1,u);else if(f!==1&&(t.level<1||f===0)||ht(_,Id)){let k=!cG(n)||f!==0;c=OF(t,c,k,u)}let y,g;for(let k=0;k=1)if(T.transformFlags&65536||t.hasTransformedPriorElement&&!x_t(T)){t.hasTransformedPriorElement=!0;let C=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(C),g=jt(g,[C,T]),y=jt(y,t.createArrayBindingOrAssignmentElement(C))}else y=jt(y,T);else{if(Id(T))continue;if(rie(T)){if(k===f-1){let C=t.context.factory.createArraySliceCall(c,k);Nz(t,T,C,T)}}else{let C=t.context.factory.createElementAccessExpression(c,k);Nz(t,T,C,T)}}}if(y&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(y),c,u,a),g)for(let[k,T]of g)Nz(t,T,k,T)}function x_t(t){let n=xC(t);if(!n||Id(n))return!0;let a=nie(t);if(a&&!SS(a))return!1;let c=HH(t);return c&&!FS(c)?!1:lG(n)?ht(AL(n),x_t):ct(n)}function War(t,n,a,c){return n=OF(t,n,!0,c),t.context.factory.createConditionalExpression(t.context.factory.createTypeCheck(n,"undefined"),void 0,a,void 0,n)}function Gar(t,n,a){let{factory:c}=t.context;if(dc(a)){let u=OF(t,$.checkDefined(At(a.expression,t.visitor,Vt)),!1,a);return t.context.factory.createElementAccessExpression(n,u)}else if(jy(a)||dL(a)){let u=c.cloneNode(a);return t.context.factory.createElementAccessExpression(n,u)}else{let u=t.context.factory.createIdentifier(Zi(a));return t.context.factory.createPropertyAccessExpression(n,u)}}function OF(t,n,a,c){if(ct(n)&&a)return n;{let u=t.context.factory.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(u),t.emitExpression(qt(t.context.factory.createAssignment(u,n),c))):t.emitBindingOrAssignment(u,n,c,void 0),u}}function Har(t,n){return $.assertEachNode(n,Jte),t.createArrayBindingPattern(n)}function Kar(t,n){return $.assertEachNode(n,pG),t.createArrayLiteralExpression(Cr(n,t.converters.convertToArrayAssignmentElement))}function Qar(t,n){return $.assertEachNode(n,Vc),t.createObjectBindingPattern(n)}function Zar(t,n){return $.assertEachNode(n,uG),t.createObjectLiteralExpression(Cr(n,t.converters.convertToObjectAssignmentElement))}function Xar(t,n){return t.createBindingElement(void 0,void 0,n)}function Yar(t){return t}function esr(t,n,a=t.createThis()){let c=t.createAssignment(n,a),u=t.createExpressionStatement(c),_=t.createBlock([u],!1),f=t.createClassStaticBlockDeclaration(_);return nm(f).classThis=n,f}function Oz(t){var n;if(!n_(t)||t.body.statements.length!==1)return!1;let a=t.body.statements[0];return af(a)&&of(a.expression,!0)&&ct(a.expression.left)&&((n=t.emitNode)==null?void 0:n.classThis)===a.expression.left&&a.expression.right.kind===110}function s0e(t){var n;return!!((n=t.emitNode)!=null&&n.classThis)&&Pt(t.members,Oz)}function V8e(t,n,a,c){if(s0e(n))return n;let u=esr(t,a,c);n.name&&Jc(u.body.statements[0],n.name);let _=t.createNodeArray([u,...n.members]);qt(_,n.members);let f=ed(n)?t.updateClassDeclaration(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,_):t.updateClassExpression(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,_);return nm(f).classThis=a,f}function zie(t,n,a){let c=Ku(Wp(a));return(ed(c)||i_(c))&&!c.name&&ko(c,2048)?t.createStringLiteral("default"):t.createStringLiteralFromNode(n)}function T_t(t,n,a){let{factory:c}=t;if(a!==void 0)return{assignedName:c.createStringLiteral(a),name:n};if(SS(n)||Aa(n))return{assignedName:c.createStringLiteralFromNode(n),name:n};if(SS(n.expression)&&!ct(n.expression))return{assignedName:c.createStringLiteralFromNode(n.expression),name:n};let u=c.getGeneratedNameForNode(n);t.hoistVariableDeclaration(u);let _=t.getEmitHelperFactory().createPropKeyHelper(n.expression),f=c.createAssignment(u,_),y=c.updateComputedPropertyName(n,f);return{assignedName:u,name:y}}function tsr(t,n,a=t.factory.createThis()){let{factory:c}=t,u=t.getEmitHelperFactory().createSetFunctionNameHelper(a,n),_=c.createExpressionStatement(u),f=c.createBlock([_],!1),y=c.createClassStaticBlockDeclaration(f);return nm(y).assignedName=n,y}function FF(t){var n;if(!n_(t)||t.body.statements.length!==1)return!1;let a=t.body.statements[0];return af(a)&&iz(a.expression,"___setFunctionName")&&a.expression.arguments.length>=2&&a.expression.arguments[1]===((n=t.emitNode)==null?void 0:n.assignedName)}function qie(t){var n;return!!((n=t.emitNode)!=null&&n.assignedName)&&Pt(t.members,FF)}function c0e(t){return!!t.name||qie(t)}function Jie(t,n,a,c){if(qie(n))return n;let{factory:u}=t,_=tsr(t,a,c);n.name&&Jc(_.body.statements[0],n.name);let f=hr(n.members,Oz)+1,y=n.members.slice(0,f),g=n.members.slice(f),k=u.createNodeArray([...y,_,...g]);return qt(k,n.members),n=ed(n)?u.updateClassDeclaration(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,k):u.updateClassExpression(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,k),nm(n).assignedName=a,n}function BL(t,n,a,c){if(c&&Ic(a)&&$me(a))return n;let{factory:u}=t,_=Wp(n),f=w_(_)?Ba(Jie(t,_,a),w_):t.getEmitHelperFactory().createSetFunctionNameHelper(_,a);return u.restoreOuterExpressions(n,f)}function rsr(t,n,a,c){let{factory:u}=t,{assignedName:_,name:f}=T_t(t,n.name,c),y=BL(t,n.initializer,_,a);return u.updatePropertyAssignment(n,f,y)}function nsr(t,n,a,c){let{factory:u}=t,_=c!==void 0?u.createStringLiteral(c):zie(u,n.name,n.objectAssignmentInitializer),f=BL(t,n.objectAssignmentInitializer,_,a);return u.updateShorthandPropertyAssignment(n,n.name,f)}function isr(t,n,a,c){let{factory:u}=t,_=c!==void 0?u.createStringLiteral(c):zie(u,n.name,n.initializer),f=BL(t,n.initializer,_,a);return u.updateVariableDeclaration(n,n.name,n.exclamationToken,n.type,f)}function osr(t,n,a,c){let{factory:u}=t,_=c!==void 0?u.createStringLiteral(c):zie(u,n.name,n.initializer),f=BL(t,n.initializer,_,a);return u.updateParameterDeclaration(n,n.modifiers,n.dotDotDotToken,n.name,n.questionToken,n.type,f)}function asr(t,n,a,c){let{factory:u}=t,_=c!==void 0?u.createStringLiteral(c):zie(u,n.name,n.initializer),f=BL(t,n.initializer,_,a);return u.updateBindingElement(n,n.dotDotDotToken,n.propertyName,n.name,f)}function ssr(t,n,a,c){let{factory:u}=t,{assignedName:_,name:f}=T_t(t,n.name,c),y=BL(t,n.initializer,_,a);return u.updatePropertyDeclaration(n,n.modifiers,f,n.questionToken??n.exclamationToken,n.type,y)}function csr(t,n,a,c){let{factory:u}=t,_=c!==void 0?u.createStringLiteral(c):zie(u,n.left,n.right),f=BL(t,n.right,_,a);return u.updateBinaryExpression(n,n.left,n.operatorToken,f)}function lsr(t,n,a,c){let{factory:u}=t,_=c!==void 0?u.createStringLiteral(c):u.createStringLiteral(n.isExportEquals?"":"default"),f=BL(t,n.expression,_,a);return u.updateExportAssignment(n,n.modifiers,f)}function qg(t,n,a,c){switch(n.kind){case 304:return rsr(t,n,a,c);case 305:return nsr(t,n,a,c);case 261:return isr(t,n,a,c);case 170:return osr(t,n,a,c);case 209:return asr(t,n,a,c);case 173:return ssr(t,n,a,c);case 227:return csr(t,n,a,c);case 278:return lsr(t,n,a,c)}}var W8e=(t=>(t[t.LiftRestriction=0]="LiftRestriction",t[t.All=1]="All",t))(W8e||{});function l0e(t,n,a,c,u,_){let f=At(n.tag,a,Vt);$.assert(f);let y=[void 0],g=[],k=[],T=n.template;if(_===0&&!che(T))return Dn(n,a,t);let{factory:C}=t;if(r3(T))g.push(G8e(C,T)),k.push(H8e(C,T,c));else{g.push(G8e(C,T.head)),k.push(H8e(C,T.head,c));for(let F of T.templateSpans)g.push(G8e(C,F.literal)),k.push(H8e(C,F.literal,c)),y.push($.checkDefined(At(F.expression,a,Vt)))}let O=t.getEmitHelperFactory().createTemplateObjectHelper(C.createArrayLiteralExpression(g),C.createArrayLiteralExpression(k));if(yd(c)){let F=C.createUniqueName("templateObject");u(F),y[0]=C.createLogicalOr(F,C.createAssignment(F,O))}else y[0]=O;return C.createCallExpression(f,void 0,y)}function G8e(t,n){return n.templateFlags&26656?t.createVoidZero():t.createStringLiteral(n.text)}function H8e(t,n,a){let c=n.rawText;if(c===void 0){$.assertIsDefined(a,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),c=XI(a,n);let u=n.kind===15||n.kind===18;c=c.substring(1,c.length-(u?1:2))}return c=c.replace(/\r\n?/g,` +`),qt(t.createStringLiteral(c),n)}var usr=!1;function K8e(t){let{factory:n,getEmitHelperFactory:a,startLexicalEnvironment:c,resumeLexicalEnvironment:u,endLexicalEnvironment:_,hoistVariableDeclaration:f}=t,y=t.getEmitResolver(),g=t.getCompilerOptions(),k=$c(g),T=Km(g),C=!!g.experimentalDecorators,O=g.emitDecoratorMetadata?Z8e(t):void 0,F=t.onEmitNode,M=t.onSubstituteNode;t.onEmitNode=Gy,t.onSubstituteNode=_s,t.enableSubstitution(212),t.enableSubstitution(213);let U,J,G,Z,Q,re=0,ae;return _e;function _e(H){return H.kind===309?me(H):le(H)}function me(H){return n.createBundle(H.sourceFiles.map(le))}function le(H){if(H.isDeclarationFile)return H;U=H;let st=Oe(H,_t);return Ux(st,t.readEmitHelpers()),U=void 0,st}function Oe(H,st){let zt=Z,Er=Q;be(H);let jn=st(H);return Z!==zt&&(Q=Er),Z=zt,jn}function be(H){switch(H.kind){case 308:case 270:case 269:case 242:Z=H,Q=void 0;break;case 264:case 263:if(ko(H,128))break;H.name?ot(H):$.assert(H.kind===264||ko(H,2048));break}}function ue(H){return Oe(H,De)}function De(H){return H.transformFlags&1?ke(H):H}function Ce(H){return Oe(H,Ae)}function Ae(H){switch(H.kind){case 273:case 272:case 278:case 279:return Be(H);default:return De(H)}}function Fe(H){let st=vs(H);if(st===H||Xu(H))return!1;if(!st||st.kind!==H.kind)return!0;switch(H.kind){case 273:if($.assertNode(st,fp),H.importClause!==st.importClause||H.attributes!==st.attributes)return!0;break;case 272:if($.assertNode(st,gd),H.name!==st.name||H.isTypeOnly!==st.isTypeOnly||H.moduleReference!==st.moduleReference&&(uh(H.moduleReference)||uh(st.moduleReference)))return!0;break;case 279:if($.assertNode(st,P_),H.exportClause!==st.exportClause||H.attributes!==st.attributes)return!0;break}return!1}function Be(H){if(Fe(H))return H.transformFlags&1?Dn(H,ue,t):H;switch(H.kind){case 273:return ii(H);case 272:return gn(H);case 278:return rr(H);case 279:return _r(H);default:$.fail("Unhandled ellided statement")}}function de(H){return Oe(H,ze)}function ze(H){if(!(H.kind===279||H.kind===273||H.kind===274||H.kind===272&&H.moduleReference.kind===284))return H.transformFlags&1||ko(H,32)?ke(H):H}function ut(H){return st=>Oe(st,zt=>je(zt,H))}function je(H,st){switch(H.kind){case 177:return Ht(H);case 173:return ft(H,st);case 178:return Ls(H,st);case 179:return yc(H,st);case 175:return Eo(H,st);case 176:return Dn(H,ue,t);case 241:return H;case 182:return;default:return $.failBadSyntaxKind(H)}}function ve(H){return st=>Oe(st,zt=>Le(zt,H))}function Le(H,st){switch(H.kind){case 304:case 305:case 306:return ue(H);case 178:return Ls(H,st);case 179:return yc(H,st);case 175:return Eo(H,st);default:return $.failBadSyntaxKind(H)}}function Ve(H){return hd(H)?void 0:ue(H)}function nt(H){return bc(H)?void 0:ue(H)}function It(H){if(!hd(H)&&!(ZO(H.kind)&28895)&&!(J&&H.kind===95))return H}function ke(H){if(fa(H)&&ko(H,128))return n.createNotEmittedStatement(H);switch(H.kind){case 95:case 90:return J?void 0:H;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 189:case 190:case 191:case 192:case 188:case 183:case 169:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 186:case 185:case 187:case 184:case 193:case 194:case 195:case 197:case 198:case 199:case 200:case 201:case 202:case 182:return;case 266:return n.createNotEmittedStatement(H);case 271:return;case 265:return n.createNotEmittedStatement(H);case 264:return St(H);case 232:return Kt(H);case 299:return oo(H);case 234:return Oi(H);case 211:return Se(H);case 177:case 173:case 175:case 178:case 179:case 176:return $.fail("Class and object literal elements must be visited with their respective visitors");case 263:return Cn(H);case 219:return Es(H);case 220:return Dt(H);case 170:return ur(H);case 218:return et(H);case 217:case 235:return Ct(H);case 239:return ar(H);case 214:return at(H);case 215:return Zt(H);case 216:return Qt(H);case 236:return Ot(H);case 267:return gi(H);case 244:return Ee(H);case 261:return ye(H);case 268:return Ge(H);case 272:return gn(H);case 286:return pr(H);case 287:return Et(H);default:return Dn(H,ue,t)}}function _t(H){let st=rm(g,"alwaysStrict")&&!(yd(H)&&T>=5)&&!h0(H);return n.updateSourceFile(H,Qye(H.statements,Ce,t,0,st))}function Se(H){return n.updateObjectLiteralExpression(H,Bn(H.properties,ve(H),MT))}function tt(H){let st=0;Pt(i0e(H,!0,!0))&&(st|=1);let zt=vv(H);return zt&&Wp(zt.expression).kind!==106&&(st|=64),pE(C,H)&&(st|=2),mU(C,H)&&(st|=4),bn(H)?st|=8:Ys(H)?st|=32:Uo(H)&&(st|=16),st}function Qe(H){return!!(H.transformFlags&8192)}function We(H){return By(H)||Pt(H.typeParameters)||Pt(H.heritageClauses,Qe)||Pt(H.members,Qe)}function St(H){let st=tt(H),zt=k<=1&&!!(st&7);if(!We(H)&&!pE(C,H)&&!bn(H))return n.updateClassDeclaration(H,Bn(H.modifiers,It,bc),H.name,void 0,Bn(H.heritageClauses,ue,zg),Bn(H.members,ut(H),J_));zt&&t.startLexicalEnvironment();let Er=zt||st&8,jn=Er?Bn(H.modifiers,nt,sp):Bn(H.modifiers,ue,sp);st&2&&(jn=nn(jn,H));let Di=Er&&!H.name||st&4||st&1?H.name??n.getGeneratedNameForNode(H):H.name,On=n.updateClassDeclaration(H,jn,Di,void 0,Bn(H.heritageClauses,ue,zg),Sr(H)),ua=Xc(H);st&1&&(ua|=64),Ai(On,ua);let va;if(zt){let Bl=[On],xc=Dhe(_c(U.text,H.members.end),20),ep=n.getInternalName(H),W_=n.createPartiallyEmittedExpression(ep);uL(W_,xc.end),Ai(W_,3072);let g_=n.createReturnStatement(W_);KU(g_,xc.pos),Ai(g_,3840),Bl.push(g_),Px(Bl,t.endLexicalEnvironment());let xu=n.createImmediatelyInvokedArrowFunction(Bl);OH(xu,1);let a_=n.createVariableDeclaration(n.getLocalName(H,!1,!1),void 0,void 0,xu);Yi(a_,H);let Gg=n.createVariableStatement(void 0,n.createVariableDeclarationList([a_],1));Yi(Gg,H),Y_(Gg,H),Jc(Gg,qT(H)),Dm(Gg),va=Gg}else va=On;if(Er){if(st&8)return[va,ec(H)];if(st&32)return[va,n.createExportDefault(n.getLocalName(H,!1,!0))];if(st&16)return[va,n.createExternalModuleExport(n.getDeclarationName(H,!1,!0))]}return va}function Kt(H){let st=Bn(H.modifiers,nt,sp);return pE(C,H)&&(st=nn(st,H)),n.updateClassExpression(H,st,H.name,void 0,Bn(H.heritageClauses,ue,zg),Sr(H))}function Sr(H){let st=Bn(H.members,ut(H),J_),zt,Er=Rx(H),jn=Er&&yr(Er.parameters,So=>ne(So,Er));if(jn)for(let So of jn){let Di=n.createPropertyDeclaration(void 0,So.name,void 0,void 0,void 0);Yi(Di,So),zt=jt(zt,Di)}return zt?(zt=En(zt,st),qt(n.createNodeArray(zt),H.members)):st}function nn(H,st){let zt=$t(st,st);if(Pt(zt)){let Er=[];En(Er,eO(H,KH)),En(Er,yr(H,hd)),En(Er,zt),En(Er,yr(tO(H,KH),bc)),H=qt(n.createNodeArray(Er),H)}return H}function Nn(H,st,zt){if(Co(zt)&&Bme(C,st,zt)){let Er=$t(st,zt);if(Pt(Er)){let jn=[];En(jn,yr(H,hd)),En(jn,Er),En(jn,yr(H,bc)),H=qt(n.createNodeArray(jn),H)}}return H}function $t(H,st){if(C)return usr?Qn(H,st):Dr(H,st)}function Dr(H,st){if(O){let zt;if(Ko(H)){let Er=a().createMetadataHelper("design:type",O.serializeTypeOfNode({currentLexicalScope:Z,currentNameScope:st},H,st));zt=jt(zt,n.createDecorator(Er))}if(sr(H)){let Er=a().createMetadataHelper("design:paramtypes",O.serializeParameterTypesOfNode({currentLexicalScope:Z,currentNameScope:st},H,st));zt=jt(zt,n.createDecorator(Er))}if(is(H)){let Er=a().createMetadataHelper("design:returntype",O.serializeReturnTypeOfNode({currentLexicalScope:Z,currentNameScope:st},H));zt=jt(zt,n.createDecorator(Er))}return zt}}function Qn(H,st){if(O){let zt;if(Ko(H)){let Er=n.createPropertyAssignment("type",n.createArrowFunction(void 0,void 0,[],void 0,n.createToken(39),O.serializeTypeOfNode({currentLexicalScope:Z,currentNameScope:st},H,st)));zt=jt(zt,Er)}if(sr(H)){let Er=n.createPropertyAssignment("paramTypes",n.createArrowFunction(void 0,void 0,[],void 0,n.createToken(39),O.serializeParameterTypesOfNode({currentLexicalScope:Z,currentNameScope:st},H,st)));zt=jt(zt,Er)}if(is(H)){let Er=n.createPropertyAssignment("returnType",n.createArrowFunction(void 0,void 0,[],void 0,n.createToken(39),O.serializeReturnTypeOfNode({currentLexicalScope:Z,currentNameScope:st},H)));zt=jt(zt,Er)}if(zt){let Er=a().createMetadataHelper("design:typeinfo",n.createObjectLiteralExpression(zt,!0));return[n.createDecorator(Er)]}}}function Ko(H){let st=H.kind;return st===175||st===178||st===179||st===173}function is(H){return H.kind===175}function sr(H){switch(H.kind){case 264:case 232:return Rx(H)!==void 0;case 175:case 178:case 179:return!0}return!1}function uo(H,st){let zt=H.name;return Aa(zt)?n.createIdentifier(""):dc(zt)?st&&!FS(zt.expression)?n.getGeneratedNameForNode(zt):zt.expression:ct(zt)?n.createStringLiteral(Zi(zt)):n.cloneNode(zt)}function Wa(H){let st=H.name;if(C&&dc(st)&&By(H)){let zt=At(st.expression,ue,Vt);$.assert(zt);let Er=q1(zt);if(!FS(Er)){let jn=n.getGeneratedNameForNode(st);return f(jn),n.updateComputedPropertyName(st,n.createAssignment(jn,zt))}}return $.checkDefined(At(st,ue,q_))}function oo(H){if(H.token!==119)return Dn(H,ue,t)}function Oi(H){return n.updateExpressionWithTypeArguments(H,$.checkDefined(At(H.expression,ue,jh)),void 0)}function $o(H){return!Op(H.body)}function ft(H,st){let zt=H.flags&33554432||ko(H,64);if(zt&&!(C&&By(H)))return;let Er=Co(st)?zt?Bn(H.modifiers,nt,sp):Bn(H.modifiers,ue,sp):Bn(H.modifiers,Ve,sp);return Er=Nn(Er,H,st),zt?n.updatePropertyDeclaration(H,go(Er,n.createModifiersFromModifierFlags(128)),$.checkDefined(At(H.name,ue,q_)),void 0,void 0,void 0):n.updatePropertyDeclaration(H,Er,Wa(H),void 0,void 0,At(H.initializer,ue,Vt))}function Ht(H){if($o(H))return n.updateConstructorDeclaration(H,void 0,Rp(H.parameters,ue,t),ai(H.body,H))}function Wr(H,st,zt,Er,jn,So){let Di=Er[jn],On=st[Di];if(En(H,Bn(st,ue,fa,zt,Di-zt)),c3(On)){let ua=[];Wr(ua,On.tryBlock.statements,0,Er,jn+1,So);let va=n.createNodeArray(ua);qt(va,On.tryBlock.statements),H.push(n.updateTryStatement(On,n.updateBlock(On.tryBlock,ua),At(On.catchClause,ue,TP),At(On.finallyBlock,ue,Vs)))}else En(H,Bn(st,ue,fa,Di,1)),En(H,So);En(H,Bn(st,ue,fa,Di+1))}function ai(H,st){let zt=st&&yr(st.parameters,ua=>ne(ua,st));if(!Pt(zt))return Jy(H,ue,t);let Er=[];u();let jn=n.copyPrologue(H.statements,Er,!1,ue),So=Bie(H.statements,jn),Di=Wn(zt,vo);So.length?Wr(Er,H.statements,jn,So,0,Di):(En(Er,Di),En(Er,Bn(H.statements,ue,fa,jn))),Er=n.mergeLexicalEnvironment(Er,_());let On=n.createBlock(qt(n.createNodeArray(Er),H.statements),!0);return qt(On,H),Yi(On,H),On}function vo(H){let st=H.name;if(!ct(st))return;let zt=xl(qt(n.cloneNode(st),st),st.parent);Ai(zt,3168);let Er=xl(qt(n.cloneNode(st),st),st.parent);return Ai(Er,3072),Dm(NH(qt(Yi(n.createExpressionStatement(n.createAssignment(qt(n.createPropertyAccessExpression(n.createThis(),zt),H.name),Er)),H),gA(H,-1))))}function Eo(H,st){if(!(H.transformFlags&1))return H;if(!$o(H))return;let zt=Co(st)?Bn(H.modifiers,ue,sp):Bn(H.modifiers,Ve,sp);return zt=Nn(zt,H,st),n.updateMethodDeclaration(H,zt,H.asteriskToken,Wa(H),void 0,void 0,Rp(H.parameters,ue,t),void 0,Jy(H.body,ue,t))}function ya(H){return!(Op(H.body)&&ko(H,64))}function Ls(H,st){if(!(H.transformFlags&1))return H;if(!ya(H))return;let zt=Co(st)?Bn(H.modifiers,ue,sp):Bn(H.modifiers,Ve,sp);return zt=Nn(zt,H,st),n.updateGetAccessorDeclaration(H,zt,Wa(H),Rp(H.parameters,ue,t),void 0,Jy(H.body,ue,t)||n.createBlock([]))}function yc(H,st){if(!(H.transformFlags&1))return H;if(!ya(H))return;let zt=Co(st)?Bn(H.modifiers,ue,sp):Bn(H.modifiers,Ve,sp);return zt=Nn(zt,H,st),n.updateSetAccessorDeclaration(H,zt,Wa(H),Rp(H.parameters,ue,t),Jy(H.body,ue,t)||n.createBlock([]))}function Cn(H){if(!$o(H))return n.createNotEmittedStatement(H);let st=n.updateFunctionDeclaration(H,Bn(H.modifiers,It,bc),H.asteriskToken,H.name,void 0,Rp(H.parameters,ue,t),void 0,Jy(H.body,ue,t)||n.createBlock([]));if(bn(H)){let zt=[st];return Ss(zt,H),zt}return st}function Es(H){return $o(H)?n.updateFunctionExpression(H,Bn(H.modifiers,It,bc),H.asteriskToken,H.name,void 0,Rp(H.parameters,ue,t),void 0,Jy(H.body,ue,t)||n.createBlock([])):n.createOmittedExpression()}function Dt(H){return n.updateArrowFunction(H,Bn(H.modifiers,It,bc),void 0,Rp(H.parameters,ue,t),void 0,H.equalsGreaterThanToken,Jy(H.body,ue,t))}function ur(H){if(uC(H))return;let st=n.updateParameterDeclaration(H,Bn(H.modifiers,zt=>hd(zt)?ue(zt):void 0,sp),H.dotDotDotToken,$.checkDefined(At(H.name,ue,L4)),void 0,void 0,At(H.initializer,ue,Vt));return st!==H&&(Y_(st,H),qt(st,ES(H)),Jc(st,ES(H)),Ai(st.name,64)),st}function Ee(H){if(bn(H)){let st=MU(H.declarationList);return st.length===0?void 0:qt(n.createExpressionStatement(n.inlineExpressions(Cr(st,Bt))),H)}else return Dn(H,ue,t)}function Bt(H){let st=H.name;return $s(st)?v3(H,ue,t,0,!1,Cp):qt(n.createAssignment(uu(st),$.checkDefined(At(H.initializer,ue,Vt))),H)}function ye(H){let st=n.updateVariableDeclaration(H,$.checkDefined(At(H.name,ue,L4)),void 0,void 0,At(H.initializer,ue,Vt));return H.type&&E3e(st.name,H.type),st}function et(H){let st=Wp(H.expression,-55);if(ZI(st)||yL(st)){let zt=At(H.expression,ue,Vt);return $.assert(zt),n.createPartiallyEmittedExpression(zt,H)}return Dn(H,ue,t)}function Ct(H){let st=At(H.expression,ue,Vt);return $.assert(st),n.createPartiallyEmittedExpression(st,H)}function Ot(H){let st=At(H.expression,ue,jh);return $.assert(st),n.createPartiallyEmittedExpression(st,H)}function ar(H){let st=At(H.expression,ue,Vt);return $.assert(st),n.createPartiallyEmittedExpression(st,H)}function at(H){return n.updateCallExpression(H,$.checkDefined(At(H.expression,ue,Vt)),void 0,Bn(H.arguments,ue,Vt))}function Zt(H){return n.updateNewExpression(H,$.checkDefined(At(H.expression,ue,Vt)),void 0,Bn(H.arguments,ue,Vt))}function Qt(H){return n.updateTaggedTemplateExpression(H,$.checkDefined(At(H.tag,ue,Vt)),void 0,$.checkDefined(At(H.template,ue,FO)))}function pr(H){return n.updateJsxSelfClosingElement(H,$.checkDefined(At(H.tagName,ue,sU)),void 0,$.checkDefined(At(H.attributes,ue,xP)))}function Et(H){return n.updateJsxOpeningElement(H,$.checkDefined(At(H.tagName,ue,sU)),void 0,$.checkDefined(At(H.attributes,ue,xP)))}function xr(H){return!lA(H)||dC(g)}function gi(H){if(!xr(H))return n.createNotEmittedStatement(H);let st=[],zt=4,Er=mr(st,H);Er&&(T!==4||Z!==U)&&(zt|=1024);let jn=$a(H),So=bs(H),Di=bn(H)?n.getExternalModuleOrNamespaceExportName(G,H,!1,!0):n.getDeclarationName(H,!1,!0),On=n.createLogicalOr(Di,n.createAssignment(Di,n.createObjectLiteralExpression()));if(bn(H)){let va=n.getLocalName(H,!1,!0);On=n.createAssignment(va,On)}let ua=n.createExpressionStatement(n.createCallExpression(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,jn)],void 0,Ye(H,So)),void 0,[On]));return Yi(ua,H),Er&&(SA(ua,void 0),uF(ua,void 0)),qt(ua,H),CS(ua,zt),st.push(ua),st}function Ye(H,st){let zt=G;G=st;let Er=[];c();let jn=Cr(H.members,er);return Px(Er,_()),En(Er,jn),G=zt,n.createBlock(qt(n.createNodeArray(Er),H.members),!0)}function er(H){let st=uo(H,!1),zt=y.getEnumMemberValue(H),Er=Ne(H,zt?.value),jn=n.createAssignment(n.createElementAccessExpression(G,st),Er),So=typeof zt?.value=="string"||zt?.isSyntacticallyString?jn:n.createAssignment(n.createElementAccessExpression(G,jn),st);return qt(n.createExpressionStatement(qt(So,H)),H)}function Ne(H,st){return st!==void 0?typeof st=="string"?n.createStringLiteral(st):st<0?n.createPrefixUnaryExpression(41,n.createNumericLiteral(-st)):n.createNumericLiteral(st):(V_(),H.initializer?$.checkDefined(At(H.initializer,ue,Vt)):n.createVoidZero())}function Y(H){let st=vs(H,I_);return st?Hye(st,dC(g)):!0}function ot(H){Q||(Q=new Map);let st=Gt(H);Q.has(st)||Q.set(st,H)}function pe(H){if(Q){let st=Gt(H);return Q.get(st)===H}return!0}function Gt(H){return $.assertNode(H.name,ct),H.name.escapedText}function mr(H,st){let zt=n.createVariableDeclaration(n.getLocalName(st,!1,!0)),Er=Z.kind===308?0:1,jn=n.createVariableStatement(Bn(st.modifiers,It,bc),n.createVariableDeclarationList([zt],Er));return Yi(zt,st),SA(zt,void 0),uF(zt,void 0),Yi(jn,st),ot(st),pe(st)?(st.kind===267?Jc(jn.declarationList,st):Jc(jn,st),Y_(jn,st),CS(jn,2048),H.push(jn),!0):!1}function Ge(H){if(!Y(H))return n.createNotEmittedStatement(H);$.assertNode(H.name,ct,"A TypeScript namespace should have an Identifier name."),Nu();let st=[],zt=4,Er=mr(st,H);Er&&(T!==4||Z!==U)&&(zt|=1024);let jn=$a(H),So=bs(H),Di=bn(H)?n.getExternalModuleOrNamespaceExportName(G,H,!1,!0):n.getDeclarationName(H,!1,!0),On=n.createLogicalOr(Di,n.createAssignment(Di,n.createObjectLiteralExpression()));if(bn(H)){let va=n.getLocalName(H,!1,!0);On=n.createAssignment(va,On)}let ua=n.createExpressionStatement(n.createCallExpression(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,jn)],void 0,Mt(H,So)),void 0,[On]));return Yi(ua,H),Er&&(SA(ua,void 0),uF(ua,void 0)),qt(ua,H),CS(ua,zt),st.push(ua),st}function Mt(H,st){let zt=G,Er=J,jn=Q;G=st,J=H,Q=void 0;let So=[];c();let Di,On;if(H.body)if(H.body.kind===269)Oe(H.body,va=>En(So,Bn(va.statements,de,fa))),Di=H.body.statements,On=H.body;else{let va=Ge(H.body);va&&(Zn(va)?En(So,va):So.push(va));let Bl=Ir(H).body;Di=gA(Bl.statements,-1)}Px(So,_()),G=zt,J=Er,Q=jn;let ua=n.createBlock(qt(n.createNodeArray(So),Di),!0);return qt(ua,On),(!H.body||H.body.kind!==269)&&Ai(ua,Xc(ua)|3072),ua}function Ir(H){if(H.body.kind===268)return Ir(H.body)||H.body}function ii(H){if(!H.importClause)return H;if(H.importClause.isTypeOnly)return;let st=At(H.importClause,Rn,H1);return st?n.updateImportDeclaration(H,void 0,st,H.moduleSpecifier,H.attributes):void 0}function Rn(H){$.assert(H.phaseModifier!==156);let st=Hp(H)?H.name:void 0,zt=At(H.namedBindings,zn,_me);return st||zt?n.updateImportClause(H,H.phaseModifier,st,zt):void 0}function zn(H){if(H.kind===275)return Hp(H)?H:void 0;{let st=g.verbatimModuleSyntax,zt=Bn(H.elements,Rt,Xm);return st||Pt(zt)?n.updateNamedImports(H,zt):void 0}}function Rt(H){return!H.isTypeOnly&&Hp(H)?H:void 0}function rr(H){return g.verbatimModuleSyntax||y.isValueAliasDeclaration(H)?Dn(H,ue,t):void 0}function _r(H){if(H.isTypeOnly)return;if(!H.exportClause||Db(H.exportClause))return n.updateExportDeclaration(H,H.modifiers,H.isTypeOnly,H.exportClause,H.moduleSpecifier,H.attributes);let st=!!g.verbatimModuleSyntax,zt=At(H.exportClause,Er=>tn(Er,st),tme);return zt?n.updateExportDeclaration(H,void 0,H.isTypeOnly,zt,H.moduleSpecifier,H.attributes):void 0}function wr(H,st){let zt=Bn(H.elements,lr,Cm);return st||Pt(zt)?n.updateNamedExports(H,zt):void 0}function pn(H){return n.updateNamespaceExport(H,$.checkDefined(At(H.name,ue,ct)))}function tn(H,st){return Db(H)?pn(H):wr(H,st)}function lr(H){return!H.isTypeOnly&&(g.verbatimModuleSyntax||y.isValueAliasDeclaration(H))?H:void 0}function cn(H){return Hp(H)||!yd(U)&&y.isTopLevelValueImportEqualsWithEntityName(H)}function gn(H){if(H.isTypeOnly)return;if(pA(H))return Hp(H)?Dn(H,ue,t):void 0;if(!cn(H))return;let st=JH(n,H.moduleReference);return Ai(st,7168),Uo(H)||!bn(H)?Yi(qt(n.createVariableStatement(Bn(H.modifiers,It,bc),n.createVariableDeclarationList([Yi(n.createVariableDeclaration(H.name,void 0,void 0,st),H)])),H),H):Yi(Mp(H.name,st,H),H)}function bn(H){return J!==void 0&&ko(H,32)}function $r(H){return J===void 0&&ko(H,32)}function Uo(H){return $r(H)&&!ko(H,2048)}function Ys(H){return $r(H)&&ko(H,2048)}function ec(H){let st=n.createAssignment(n.getExternalModuleOrNamespaceExportName(G,H,!1,!0),n.getLocalName(H));Jc(st,y0(H.name?H.name.pos:H.pos,H.end));let zt=n.createExpressionStatement(st);return Jc(zt,y0(-1,H.end)),zt}function Ss(H,st){H.push(ec(st))}function Mp(H,st,zt){return qt(n.createExpressionStatement(n.createAssignment(n.getNamespaceMemberName(G,H,!1,!0),st)),zt)}function Cp(H,st,zt){return qt(n.createAssignment(uu(H),st),zt)}function uu(H){return n.getNamespaceMemberName(G,H,!1,!0)}function $a(H){let st=n.getGeneratedNameForNode(H);return Jc(st,H.name),st}function bs(H){return n.getGeneratedNameForNode(H)}function V_(){(re&8)===0&&(re|=8,t.enableSubstitution(80))}function Nu(){(re&2)===0&&(re|=2,t.enableSubstitution(80),t.enableSubstitution(305),t.enableEmitNotification(268))}function kc(H){return Ku(H).kind===268}function o_(H){return Ku(H).kind===267}function Gy(H,st,zt){let Er=ae,jn=U;Ta(st)&&(U=st),re&2&&kc(st)&&(ae|=2),re&8&&o_(st)&&(ae|=8),F(H,st,zt),ae=Er,U=jn}function _s(H,st){return st=M(H,st),H===1?sl(st):im(st)?sc(st):st}function sc(H){if(re&2){let st=H.name,zt=Ar(st);if(zt){if(H.objectAssignmentInitializer){let Er=n.createAssignment(zt,H.objectAssignmentInitializer);return qt(n.createPropertyAssignment(st,Er),H)}return qt(n.createPropertyAssignment(st,zt),H)}}return H}function sl(H){switch(H.kind){case 80:return Yc(H);case 212:return Ql(H);case 213:return Gp(H)}return H}function Yc(H){return Ar(H)||H}function Ar(H){if(re&ae&&!ap(H)&&!HT(H)){let st=y.getReferencedExportContainer(H,!1);if(st&&st.kind!==308&&(ae&2&&st.kind===268||ae&8&&st.kind===267))return qt(n.createPropertyAccessExpression(n.getGeneratedNameForNode(st),H),H)}}function Ql(H){return lf(H)}function Gp(H){return lf(H)}function N_(H){return H.replace(/\*\//g,"*_/")}function lf(H){let st=Yu(H);if(st!==void 0){x3e(H,st);let zt=typeof st=="string"?n.createStringLiteral(st):st<0?n.createPrefixUnaryExpression(41,n.createNumericLiteral(-st)):n.createNumericLiteral(st);if(!g.removeComments){let Er=Ku(H,wu);nz(zt,3,` ${N_(Sp(Er))} `)}return zt}return H}function Yu(H){if(!a1(g))return no(H)||mu(H)?y.getConstantValue(H):void 0}function Hp(H){return g.verbatimModuleSyntax||Ei(H)||y.isReferencedAliasDeclaration(H)}}function Q8e(t){let{factory:n,getEmitHelperFactory:a,hoistVariableDeclaration:c,endLexicalEnvironment:u,startLexicalEnvironment:_,resumeLexicalEnvironment:f,addBlockScopedVariable:y}=t,g=t.getEmitResolver(),k=t.getCompilerOptions(),T=$c(k),C=hH(k),O=!!k.experimentalDecorators,F=!C,M=C&&T<9,U=F||M,J=T<9,G=T<99?-1:C?0:3,Z=T<9,Q=Z&&T>=2,re=U||J||G===-1,ae=t.onSubstituteNode;t.onSubstituteNode=Gp;let _e=t.onEmitNode;t.onEmitNode=Ql;let me=!1,le=0,Oe,be,ue,De,Ce=new Map,Ae=new Set,Fe,Be,de=!1,ze=!1;return Cv(t,ut);function ut(H){if(H.isDeclarationFile||(De=void 0,me=!!(J1(H)&32),!re&&!me))return H;let st=Dn(H,ve,t);return Ux(st,t.readEmitHelpers()),st}function je(H){return H.kind===129?Ht()?void 0:H:Ci(H,bc)}function ve(H){if(!(H.transformFlags&16777216)&&!(H.transformFlags&134234112))return H;switch(H.kind){case 264:return xr(H);case 232:return Ye(H);case 176:case 173:return $.fail("Use `classElementVisitor` instead.");case 304:return We(H);case 244:return St(H);case 261:return Kt(H);case 170:return Sr(H);case 209:return nn(H);case 278:return Nn(H);case 81:return tt(H);case 212:return Ls(H);case 213:return yc(H);case 225:case 226:return Cn(H,!1);case 227:return Ct(H,!1);case 218:return ar(H,!1);case 214:return Ee(H);case 245:return Dt(H);case 216:return Bt(H);case 249:return Es(H);case 110:return Y(H);case 263:case 219:return sr(void 0,Le,H);case 177:case 175:case 178:case 179:return sr(H,Le,H);default:return Le(H)}}function Le(H){return Dn(H,ve,t)}function Ve(H){switch(H.kind){case 225:case 226:return Cn(H,!0);case 227:return Ct(H,!0);case 357:return Ot(H,!0);case 218:return ar(H,!0);default:return ve(H)}}function nt(H){switch(H.kind){case 299:return Dn(H,nt,t);case 234:return pr(H);default:return ve(H)}}function It(H){switch(H.kind){case 211:case 210:return Ar(H);default:return ve(H)}}function ke(H){switch(H.kind){case 177:return sr(H,Qn,H);case 178:case 179:case 175:return sr(H,is,H);case 173:return sr(H,Wr,H);case 176:return sr(H,Ne,H);case 168:return Dr(H);case 241:return H;default:return sp(H)?je(H):ve(H)}}function _t(H){return H.kind===168?Dr(H):ve(H)}function Se(H){switch(H.kind){case 173:return ft(H);case 178:case 179:return ke(H);default:$.assertMissingNode(H,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function tt(H){return!J||fa(H.parent)?H:Yi(n.createIdentifier(""),H)}function Qe(H){let st=bs(H.left);if(st){let zt=At(H.right,ve,Vt);return Yi(a().createClassPrivateFieldInHelper(st.brandCheckIdentifier,zt),H)}return Dn(H,ve,t)}function We(H){return Mg(H,et)&&(H=qg(t,H)),Dn(H,ve,t)}function St(H){let st=ue;ue=[];let zt=Dn(H,ve,t),Er=Pt(ue)?[zt,...ue]:zt;return ue=st,Er}function Kt(H){return Mg(H,et)&&(H=qg(t,H)),Dn(H,ve,t)}function Sr(H){return Mg(H,et)&&(H=qg(t,H)),Dn(H,ve,t)}function nn(H){return Mg(H,et)&&(H=qg(t,H)),Dn(H,ve,t)}function Nn(H){return Mg(H,et)&&(H=qg(t,H,!0,H.isExportEquals?"":"default")),Dn(H,ve,t)}function $t(H){return Pt(be)&&(mh(H)?(be.push(H.expression),H=n.updateParenthesizedExpression(H,n.inlineExpressions(be))):(be.push(H),H=n.inlineExpressions(be)),be=void 0),H}function Dr(H){let st=At(H.expression,ve,Vt);return n.updateComputedPropertyName(H,$t(st))}function Qn(H){return Fe?Gt(H,Fe):Le(H)}function Ko(H){return!!(J||fd(H)&&J1(H)&32)}function is(H){if($.assert(!By(H)),!Tm(H)||!Ko(H))return Dn(H,ke,t);let st=bs(H.name);if($.assert(st,"Undeclared private name for property declaration."),!st.isValid)return H;let zt=uo(H);zt&&bn().push(n.createAssignment(zt,n.createFunctionExpression(yr(H.modifiers,Er=>bc(Er)&&!mF(Er)&&!Ige(Er)),H.asteriskToken,zt,void 0,Rp(H.parameters,ve,t),void 0,Jy(H.body,ve,t))))}function sr(H,st,zt){if(H!==Be){let Er=Be;Be=H;let jn=st(zt);return Be=Er,jn}return st(zt)}function uo(H){$.assert(Aa(H.name));let st=bs(H.name);if($.assert(st,"Undeclared private name for property declaration."),st.kind==="m")return st.methodName;if(st.kind==="a"){if(Ax(H))return st.getterName;if(hS(H))return st.setterName}}function Wa(){let H=cn();return H.classThis??H.classConstructor??Fe?.name}function oo(H){let st=DS(H),zt=yE(H),Er=H.name,jn=Er,So=Er;if(dc(Er)&&!FS(Er.expression)){let ep=oie(Er);if(ep)jn=n.updateComputedPropertyName(Er,At(Er.expression,ve,Vt)),So=n.updateComputedPropertyName(Er,ep.left);else{let W_=n.createTempVariable(c);Jc(W_,Er.expression);let g_=At(Er.expression,ve,Vt),xu=n.createAssignment(W_,g_);Jc(xu,Er.expression),jn=n.updateComputedPropertyName(Er,xu),So=n.updateComputedPropertyName(Er,W_)}}let Di=Bn(H.modifiers,je,bc),On=nye(n,H,Di,H.initializer);Yi(On,H),Ai(On,3072),Jc(On,zt);let ua=oc(H)?Wa()??n.createThis():n.createThis(),va=bNe(n,H,Di,jn,ua);Yi(va,H),Y_(va,st),Jc(va,zt);let Bl=n.createModifiersFromModifierFlags(TS(Di)),xc=xNe(n,H,Bl,So,ua);return Yi(xc,H),Ai(xc,3072),Jc(xc,zt),Az([On,va,xc],Se,J_)}function Oi(H){if(Ko(H)){let st=bs(H.name);if($.assert(st,"Undeclared private name for property declaration."),!st.isValid)return H;if(st.isStatic&&!J){let zt=Ir(H,n.createThis());if(zt)return n.createClassStaticBlockDeclaration(n.createBlock([zt],!0))}return}return F&&!oc(H)&&De?.data&&De.data.facts&16?n.updatePropertyDeclaration(H,Bn(H.modifiers,ve,sp),H.name,void 0,void 0,void 0):(Mg(H,et)&&(H=qg(t,H)),n.updatePropertyDeclaration(H,Bn(H.modifiers,je,bc),At(H.name,_t,q_),void 0,void 0,At(H.initializer,ve,Vt)))}function $o(H){if(U&&!Mh(H)){let st=pn(H.name,!!H.initializer||C);if(st&&bn().push(...TNe(st)),oc(H)&&!J){let zt=Ir(H,n.createThis());if(zt){let Er=n.createClassStaticBlockDeclaration(n.createBlock([zt]));return Yi(Er,H),Y_(Er,H),Y_(zt,{pos:-1,end:-1}),SA(zt,void 0),uF(zt,void 0),Er}}return}return n.updatePropertyDeclaration(H,Bn(H.modifiers,je,bc),At(H.name,_t,q_),void 0,void 0,At(H.initializer,ve,Vt))}function ft(H){return $.assert(!By(H),"Decorators should already have been transformed and elided."),Tm(H)?Oi(H):$o(H)}function Ht(){return G===-1||G===3&&!!De?.data&&!!(De.data.facts&16)}function Wr(H){return Mh(H)&&(Ht()||fd(H)&&J1(H)&32)?oo(H):ft(H)}function ai(){return!!Be&&fd(Be)&&tC(Be)&&Mh(Ku(Be))}function vo(H){if(ai()){let st=Wp(H);st.kind===110&&Ae.add(st)}}function Eo(H,st){return st=At(st,ve,Vt),vo(st),ya(H,st)}function ya(H,st){switch(Y_(st,gA(st,-1)),H.kind){case"a":return a().createClassPrivateFieldGetHelper(st,H.brandCheckIdentifier,H.kind,H.getterName);case"m":return a().createClassPrivateFieldGetHelper(st,H.brandCheckIdentifier,H.kind,H.methodName);case"f":return a().createClassPrivateFieldGetHelper(st,H.brandCheckIdentifier,H.kind,H.isStatic?H.variableName:void 0);case"untransformed":return $.fail("Access helpers should not be created for untransformed private elements");default:$.assertNever(H,"Unknown private element type")}}function Ls(H){if(Aa(H.name)){let st=bs(H.name);if(st)return qt(Yi(Eo(st,H.expression),H),H)}if(Q&&Be&&_g(H)&&ct(H.name)&&Fz(Be)&&De?.data){let{classConstructor:st,superClassReference:zt,facts:Er}=De.data;if(Er&1)return wr(H);if(st&&zt){let jn=n.createReflectGetCall(zt,n.createStringLiteralFromNode(H.name),st);return Yi(jn,H.expression),qt(jn,H.expression),jn}}return Dn(H,ve,t)}function yc(H){if(Q&&Be&&_g(H)&&Fz(Be)&&De?.data){let{classConstructor:st,superClassReference:zt,facts:Er}=De.data;if(Er&1)return wr(H);if(st&&zt){let jn=n.createReflectGetCall(zt,At(H.argumentExpression,ve,Vt),st);return Yi(jn,H.expression),qt(jn,H.expression),jn}}return Dn(H,ve,t)}function Cn(H,st){if(H.operator===46||H.operator===47){let zt=bl(H.operand);if(FR(zt)){let Er;if(Er=bs(zt.name)){let jn=At(zt.expression,ve,Vt);vo(jn);let{readExpression:So,initializeExpression:Di}=ur(jn),On=Eo(Er,So),ua=TA(H)||st?void 0:n.createTempVariable(c);return On=Yne(n,H,On,c,ua),On=at(Er,Di||So,On,64),Yi(On,H),qt(On,H),ua&&(On=n.createComma(On,ua),qt(On,H)),On}}else if(Q&&Be&&_g(zt)&&Fz(Be)&&De?.data){let{classConstructor:Er,superClassReference:jn,facts:So}=De.data;if(So&1){let Di=wr(zt);return TA(H)?n.updatePrefixUnaryExpression(H,Di):n.updatePostfixUnaryExpression(H,Di)}if(Er&&jn){let Di,On;if(no(zt)?ct(zt.name)&&(On=Di=n.createStringLiteralFromNode(zt.name)):FS(zt.argumentExpression)?On=Di=zt.argumentExpression:(On=n.createTempVariable(c),Di=n.createAssignment(On,At(zt.argumentExpression,ve,Vt))),Di&&On){let ua=n.createReflectGetCall(jn,On,Er);qt(ua,zt);let va=st?void 0:n.createTempVariable(c);return ua=Yne(n,H,ua,c,va),ua=n.createReflectSetCall(jn,Di,ua,Er),Yi(ua,H),qt(ua,H),va&&(ua=n.createComma(ua,va),qt(ua,H)),ua}}}}return Dn(H,ve,t)}function Es(H){return n.updateForStatement(H,At(H.initializer,Ve,f0),At(H.condition,ve,Vt),At(H.incrementor,Ve,Vt),hh(H.statement,ve,t))}function Dt(H){return n.updateExpressionStatement(H,At(H.expression,Ve,Vt))}function ur(H){let st=fu(H)?H:n.cloneNode(H);if(H.kind===110&&Ae.has(H)&&Ae.add(st),FS(H))return{readExpression:st,initializeExpression:void 0};let zt=n.createTempVariable(c),Er=n.createAssignment(zt,st);return{readExpression:zt,initializeExpression:Er}}function Ee(H){var st;if(FR(H.expression)&&bs(H.expression.name)){let{thisArg:zt,target:Er}=n.createCallBinding(H.expression,c,T);return O4(H)?n.updateCallChain(H,n.createPropertyAccessChain(At(Er,ve,Vt),H.questionDotToken,"call"),void 0,void 0,[At(zt,ve,Vt),...Bn(H.arguments,ve,Vt)]):n.updateCallExpression(H,n.createPropertyAccessExpression(At(Er,ve,Vt),"call"),void 0,[At(zt,ve,Vt),...Bn(H.arguments,ve,Vt)])}if(Q&&Be&&_g(H.expression)&&Fz(Be)&&((st=De?.data)!=null&&st.classConstructor)){let zt=n.createFunctionCallCall(At(H.expression,ve,Vt),De.data.classConstructor,Bn(H.arguments,ve,Vt));return Yi(zt,H),qt(zt,H),zt}return Dn(H,ve,t)}function Bt(H){var st;if(FR(H.tag)&&bs(H.tag.name)){let{thisArg:zt,target:Er}=n.createCallBinding(H.tag,c,T);return n.updateTaggedTemplateExpression(H,n.createCallExpression(n.createPropertyAccessExpression(At(Er,ve,Vt),"bind"),void 0,[At(zt,ve,Vt)]),void 0,At(H.template,ve,FO))}if(Q&&Be&&_g(H.tag)&&Fz(Be)&&((st=De?.data)!=null&&st.classConstructor)){let zt=n.createFunctionBindCall(At(H.tag,ve,Vt),De.data.classConstructor,[]);return Yi(zt,H),qt(zt,H),n.updateTaggedTemplateExpression(H,zt,void 0,At(H.template,ve,FO))}return Dn(H,ve,t)}function ye(H){if(De&&Ce.set(Ku(H),De),J){if(Oz(H)){let Er=At(H.body.statements[0].expression,ve,Vt);return of(Er,!0)&&Er.left===Er.right?void 0:Er}if(FF(H))return At(H.body.statements[0].expression,ve,Vt);_();let st=sr(H,Er=>Bn(Er,ve,fa),H.body.statements);st=n.mergeLexicalEnvironment(st,u());let zt=n.createImmediatelyInvokedArrowFunction(st);return Yi(bl(zt.expression),H),CS(bl(zt.expression),4),Yi(zt,H),qt(zt,H),zt}}function et(H){if(w_(H)&&!H.name){let st=$ie(H);return Pt(st,FF)?!1:(J||!!J1(H))&&Pt(st,Er=>n_(Er)||Tm(Er)||U&&mK(Er))}return!1}function Ct(H,st){if(dE(H)){let zt=be;be=void 0,H=n.updateBinaryExpression(H,At(H.left,It,Vt),H.operatorToken,At(H.right,ve,Vt));let Er=Pt(be)?n.inlineExpressions(Bc([...be,H])):H;return be=zt,Er}if(of(H)){Mg(H,et)&&(H=qg(t,H),$.assertNode(H,of));let zt=Wp(H.left,9);if(FR(zt)){let Er=bs(zt.name);if(Er)return qt(Yi(at(Er,zt.expression,H.right,H.operatorToken.kind),H),H)}else if(Q&&Be&&_g(H.left)&&Fz(Be)&&De?.data){let{classConstructor:Er,superClassReference:jn,facts:So}=De.data;if(So&1)return n.updateBinaryExpression(H,wr(H.left),H.operatorToken,At(H.right,ve,Vt));if(Er&&jn){let Di=mu(H.left)?At(H.left.argumentExpression,ve,Vt):ct(H.left.name)?n.createStringLiteralFromNode(H.left.name):void 0;if(Di){let On=At(H.right,ve,Vt);if(Iz(H.operatorToken.kind)){let va=Di;FS(Di)||(va=n.createTempVariable(c),Di=n.createAssignment(va,Di));let Bl=n.createReflectGetCall(jn,va,Er);Yi(Bl,H.left),qt(Bl,H.left),On=n.createBinaryExpression(Bl,Pz(H.operatorToken.kind),On),qt(On,H)}let ua=st?void 0:n.createTempVariable(c);return ua&&(On=n.createAssignment(ua,On),qt(ua,H)),On=n.createReflectSetCall(jn,Di,On,Er),Yi(On,H),qt(On,H),ua&&(On=n.createComma(On,ua),qt(On,H)),On}}}}return msr(H)?Qe(H):Dn(H,ve,t)}function Ot(H,st){let zt=st?fK(H.elements,Ve):fK(H.elements,ve,Ve);return n.updateCommaListExpression(H,zt)}function ar(H,st){let zt=st?Ve:ve,Er=At(H.expression,zt,Vt);return n.updateParenthesizedExpression(H,Er)}function at(H,st,zt,Er){if(st=At(st,ve,Vt),zt=At(zt,ve,Vt),vo(st),Iz(Er)){let{readExpression:jn,initializeExpression:So}=ur(st);st=So||jn,zt=n.createBinaryExpression(ya(H,jn),Pz(Er),zt)}switch(Y_(st,gA(st,-1)),H.kind){case"a":return a().createClassPrivateFieldSetHelper(st,H.brandCheckIdentifier,zt,H.kind,H.setterName);case"m":return a().createClassPrivateFieldSetHelper(st,H.brandCheckIdentifier,zt,H.kind,void 0);case"f":return a().createClassPrivateFieldSetHelper(st,H.brandCheckIdentifier,zt,H.kind,H.isStatic?H.variableName:void 0);case"untransformed":return $.fail("Access helpers should not be created for untransformed private elements");default:$.assertNever(H,"Unknown private element type")}}function Zt(H){return yr(H.members,j8e)}function Qt(H){var st;let zt=0,Er=Ku(H);Co(Er)&&pE(O,Er)&&(zt|=1),J&&(s0e(H)||qie(H))&&(zt|=2);let jn=!1,So=!1,Di=!1,On=!1;for(let va of H.members)oc(va)?((va.name&&(Aa(va.name)||Mh(va))&&J||Mh(va)&&G===-1&&!H.name&&!((st=H.emitNode)!=null&&st.classThis))&&(zt|=2),(ps(va)||n_(va))&&(Z&&va.transformFlags&16384&&(zt|=8,zt&1||(zt|=2)),Q&&va.transformFlags&134217728&&(zt&1||(zt|=6)))):pP(Ku(va))||(Mh(va)?(On=!0,Di||(Di=Tm(va))):Tm(va)?(Di=!0,g.hasNodeCheckFlag(va,262144)&&(zt|=2)):ps(va)&&(jn=!0,So||(So=!!va.initializer)));return(M&&jn||F&&So||J&&Di||J&&On&&G===-1)&&(zt|=16),zt}function pr(H){var st;if((((st=De?.data)==null?void 0:st.facts)||0)&4){let Er=n.createTempVariable(c,!0);return cn().superClassReference=Er,n.updateExpressionWithTypeArguments(H,n.createAssignment(Er,At(H.expression,ve,Vt)),void 0)}return Dn(H,ve,t)}function Et(H,st){var zt;let Er=Fe,jn=be,So=De;Fe=H,be=void 0,tn();let Di=J1(H)&32;if(J||Di){let va=cs(H);if(va&&ct(va))gn().data.className=va;else if((zt=H.emitNode)!=null&&zt.assignedName&&Ic(H.emitNode.assignedName)){if(H.emitNode.assignedName.textSourceNode&&ct(H.emitNode.assignedName.textSourceNode))gn().data.className=H.emitNode.assignedName.textSourceNode;else if(Jd(H.emitNode.assignedName.text,T)){let Bl=n.createIdentifier(H.emitNode.assignedName.text);gn().data.className=Bl}}}if(J){let va=Zt(H);Pt(va)&&(gn().data.weakSetName=uu("instances",va[0].name))}let On=Qt(H);On&&(cn().facts=On),On&8&&rr();let ua=st(H,On);return lr(),$.assert(De===So),Fe=Er,be=jn,ua}function xr(H){return Et(H,gi)}function gi(H,st){var zt,Er;let jn;if(st&2)if(J&&((zt=H.emitNode)!=null&&zt.classThis))cn().classConstructor=H.emitNode.classThis,jn=n.createAssignment(H.emitNode.classThis,n.getInternalName(H));else{let xu=n.createTempVariable(c,!0);cn().classConstructor=n.cloneNode(xu),jn=n.createAssignment(xu,n.getInternalName(H))}(Er=H.emitNode)!=null&&Er.classThis&&(cn().classThis=H.emitNode.classThis);let So=g.hasNodeCheckFlag(H,262144),Di=ko(H,32),On=ko(H,2048),ua=Bn(H.modifiers,je,bc),va=Bn(H.heritageClauses,nt,zg),{members:Bl,prologue:xc}=ot(H),ep=[];if(jn&&bn().unshift(jn),Pt(be)&&ep.push(n.createExpressionStatement(n.inlineExpressions(be))),F||J||J1(H)&32){let xu=$ie(H);Pt(xu)&&Mt(ep,xu,n.getInternalName(H))}ep.length>0&&Di&&On&&(ua=Bn(ua,xu=>KH(xu)?void 0:xu,bc),ep.push(n.createExportAssignment(void 0,!1,n.getLocalName(H,!1,!0))));let W_=cn().classConstructor;So&&W_&&(Rt(),Oe[gh(H)]=W_);let g_=n.updateClassDeclaration(H,ua,H.name,void 0,va,Bl);return ep.unshift(g_),xc&&ep.unshift(n.createExpressionStatement(xc)),ep}function Ye(H){return Et(H,er)}function er(H,st){var zt,Er,jn;let So=!!(st&1),Di=$ie(H),On=g.hasNodeCheckFlag(H,262144),ua=g.hasNodeCheckFlag(H,32768),va;function Bl(){var Wf;if(J&&((Wf=H.emitNode)!=null&&Wf.classThis))return cn().classConstructor=H.emitNode.classThis;let yy=n.createTempVariable(ua?y:c,!0);return cn().classConstructor=n.cloneNode(yy),yy}(zt=H.emitNode)!=null&&zt.classThis&&(cn().classThis=H.emitNode.classThis),st&2&&(va??(va=Bl()));let xc=Bn(H.modifiers,je,bc),ep=Bn(H.heritageClauses,nt,zg),{members:W_,prologue:g_}=ot(H),xu=n.updateClassExpression(H,xc,H.name,void 0,ep,W_),a_=[];if(g_&&a_.push(g_),(J||J1(H)&32)&&Pt(Di,Wf=>n_(Wf)||Tm(Wf)||U&&mK(Wf))||Pt(be))if(So)$.assertIsDefined(ue,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),Pt(be)&&En(ue,Cr(be,n.createExpressionStatement)),Pt(Di)&&Mt(ue,Di,((Er=H.emitNode)==null?void 0:Er.classThis)??n.getInternalName(H)),va?a_.push(n.createAssignment(va,xu)):J&&((jn=H.emitNode)!=null&&jn.classThis)?a_.push(n.createAssignment(H.emitNode.classThis,xu)):a_.push(xu);else{if(va??(va=Bl()),On){Rt();let Wf=n.cloneNode(va);Wf.emitNode.autoGenerate.flags&=-9,Oe[gh(H)]=Wf}a_.push(n.createAssignment(va,xu)),En(a_,be),En(a_,ii(Di,va)),a_.push(n.cloneNode(va))}else a_.push(xu);return a_.length>1&&(CS(xu,131072),a_.forEach(Dm)),n.inlineExpressions(a_)}function Ne(H){if(!J)return Dn(H,ve,t)}function Y(H){if(Z&&Be&&n_(Be)&&De?.data){let{classThis:st,classConstructor:zt}=De.data;return st??zt??H}return H}function ot(H){let st=!!(J1(H)&32);if(J||me){for(let Di of H.members)if(Tm(Di))if(Ko(Di))Cp(Di,Di.name,$r);else{let On=gn();y3(On,Di.name,{kind:"untransformed"})}if(J&&Pt(Zt(H))&&pe(),Ht()){for(let Di of H.members)if(Mh(Di)){let On=n.getGeneratedPrivateNameForNode(Di.name,void 0,"_accessor_storage");if(J||st&&fd(Di))Cp(Di,On,Uo);else{let ua=gn();y3(ua,On,{kind:"untransformed"})}}}}let zt=Bn(H.members,ke,J_),Er;Pt(zt,kp)||(Er=Gt(void 0,H));let jn,So;if(!J&&Pt(be)){let Di=n.createExpressionStatement(n.inlineExpressions(be));if(Di.transformFlags&134234112){let ua=n.createTempVariable(c),va=n.createArrowFunction(void 0,void 0,[],void 0,void 0,n.createBlock([Di]));jn=n.createAssignment(ua,va),Di=n.createExpressionStatement(n.createCallExpression(ua,void 0,[]))}let On=n.createBlock([Di]);So=n.createClassStaticBlockDeclaration(On),be=void 0}if(Er||So){let Di,On=wt(zt,Oz),ua=wt(zt,FF);Di=jt(Di,On),Di=jt(Di,ua),Di=jt(Di,Er),Di=jt(Di,So);let va=On||ua?yr(zt,Bl=>Bl!==On&&Bl!==ua):zt;Di=En(Di,va),zt=qt(n.createNodeArray(Di),H.members)}return{members:zt,prologue:jn}}function pe(){let{weakSetName:H}=gn().data;$.assert(H,"weakSetName should be set in private identifier environment"),bn().push(n.createAssignment(H,n.createNewExpression(n.createIdentifier("WeakSet"),void 0,[])))}function Gt(H,st){if(H=At(H,ve,kp),!De?.data||!(De.data.facts&16))return H;let zt=vv(st),Er=!!(zt&&Wp(zt.expression).kind!==106),jn=Rp(H?H.parameters:void 0,ve,t),So=Ge(st,H,Er);return So?H?($.assert(jn),n.updateConstructorDeclaration(H,void 0,jn,So)):Dm(Yi(qt(n.createConstructorDeclaration(void 0,jn??[],So),H||st),H)):H}function mr(H,st,zt,Er,jn,So,Di){let On=Er[jn],ua=st[On];if(En(H,Bn(st,ve,fa,zt,On-zt)),zt=On+1,c3(ua)){let va=[];mr(va,ua.tryBlock.statements,0,Er,jn+1,So,Di);let Bl=n.createNodeArray(va);qt(Bl,ua.tryBlock.statements),H.push(n.updateTryStatement(ua,n.updateBlock(ua.tryBlock,va),At(ua.catchClause,ve,TP),At(ua.finallyBlock,ve,Vs)))}else{for(En(H,Bn(st,ve,fa,On,1));zt!!g_.initializer||Aa(g_.name)||xS(g_)));let Di=Zt(H),On=Pt(So)||Pt(Di);if(!st&&!On)return Jy(void 0,ve,t);f();let ua=!st&&zt,va=0,Bl=[],xc=[],ep=n.createThis();if(_r(xc,Di,ep),st){let g_=yr(jn,a_=>ne(Ku(a_),st)),xu=yr(So,a_=>!ne(Ku(a_),st));Mt(xc,g_,ep),Mt(xc,xu,ep)}else Mt(xc,So,ep);if(st?.body){va=n.copyPrologue(st.body.statements,Bl,!1,ve);let g_=Bie(st.body.statements,va);if(g_.length)mr(Bl,st.body.statements,va,g_,0,xc,st);else{for(;va=Bl.length?st.body.multiLine??Bl.length>0:Bl.length>0;return qt(n.createBlock(qt(n.createNodeArray(Bl),((Er=st?.body)==null?void 0:Er.statements)??H.members),W_),st?.body)}function Mt(H,st,zt){for(let Er of st){if(oc(Er)&&!J)continue;let jn=Ir(Er,zt);jn&&H.push(jn)}}function Ir(H,st){let zt=n_(H)?sr(H,ye,H):Rn(H,st);if(!zt)return;let Er=n.createExpressionStatement(zt);Yi(Er,H),CS(Er,Xc(H)&3072),Y_(Er,H);let jn=Ku(H);return wa(jn)?(Jc(Er,jn),NH(Er)):Jc(Er,ES(H)),SA(zt,void 0),uF(zt,void 0),xS(jn)&&CS(Er,3072),Er}function ii(H,st){let zt=[];for(let Er of H){let jn=n_(Er)?sr(Er,ye,Er):sr(Er,()=>Rn(Er,st),void 0);jn&&(Dm(jn),Yi(jn,Er),CS(jn,Xc(Er)&3072),Jc(jn,ES(Er)),Y_(jn,Er),zt.push(jn))}return zt}function Rn(H,st){var zt;let Er=Be,jn=zn(H,st);return jn&&fd(H)&&((zt=De?.data)!=null&&zt.facts)&&(Yi(jn,H),CS(jn,4),Jc(jn,yE(H.name)),Ce.set(Ku(H),De)),Be=Er,jn}function zn(H,st){let zt=!C;Mg(H,et)&&(H=qg(t,H));let Er=xS(H)?n.getGeneratedPrivateNameForNode(H.name):dc(H.name)&&!FS(H.name.expression)?n.updateComputedPropertyName(H.name,n.getGeneratedNameForNode(H.name)):H.name;if(fd(H)&&(Be=H),Aa(Er)&&Ko(H)){let Di=bs(Er);if(Di)return Di.kind==="f"?Di.isStatic?psr(n,Di.variableName,At(H.initializer,ve,Vt)):_sr(n,st,At(H.initializer,ve,Vt),Di.brandCheckIdentifier):void 0;$.fail("Undeclared private name for property declaration.")}if((Aa(Er)||fd(H))&&!H.initializer)return;let jn=Ku(H);if(ko(jn,64))return;let So=At(H.initializer,ve,Vt);if(ne(jn,jn.parent)&&ct(Er)){let Di=n.cloneNode(Er);So?(mh(So)&&VH(So.expression)&&iz(So.expression.left,"___runInitializers")&&SF(So.expression.right)&&qh(So.expression.right.expression)&&(So=So.expression.left),So=n.inlineExpressions([So,Di])):So=Di,Ai(Er,3168),Jc(Di,jn.name),Ai(Di,3072)}else So??(So=n.createVoidZero());if(zt||Aa(Er)){let Di=d3(n,st,Er,Er);return CS(Di,1024),n.createAssignment(Di,So)}else{let Di=dc(Er)?Er.expression:ct(Er)?n.createStringLiteral(oa(Er.escapedText)):Er,On=n.createPropertyDescriptor({value:So,configurable:!0,writable:!0,enumerable:!0});return n.createObjectDefinePropertyCall(st,Di,On)}}function Rt(){(le&1)===0&&(le|=1,t.enableSubstitution(80),Oe=[])}function rr(){(le&2)===0&&(le|=2,t.enableSubstitution(110),t.enableEmitNotification(263),t.enableEmitNotification(219),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(179),t.enableEmitNotification(175),t.enableEmitNotification(173),t.enableEmitNotification(168))}function _r(H,st,zt){if(!J||!Pt(st))return;let{weakSetName:Er}=gn().data;$.assert(Er,"weakSetName should be set in private identifier environment"),H.push(n.createExpressionStatement(dsr(n,zt,Er)))}function wr(H){return no(H)?n.updatePropertyAccessExpression(H,n.createVoidZero(),H.name):n.updateElementAccessExpression(H,n.createVoidZero(),At(H.argumentExpression,ve,Vt))}function pn(H,st){if(dc(H)){let zt=oie(H),Er=At(H.expression,ve,Vt),jn=q1(Er),So=FS(jn);if(!(!!zt||of(jn)&&ap(jn.left))&&!So&&st){let On=n.getGeneratedNameForNode(H);return g.hasNodeCheckFlag(H,32768)?y(On):c(On),n.createAssignment(On,Er)}return So||ct(jn)?void 0:Er}}function tn(){De={previous:De,data:void 0}}function lr(){De=De?.previous}function cn(){return $.assert(De),De.data??(De.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function gn(){return $.assert(De),De.privateEnv??(De.privateEnv=$8e({className:void 0,weakSetName:void 0}))}function bn(){return be??(be=[])}function $r(H,st,zt,Er,jn,So,Di){Mh(H)?Mp(H,st,zt,Er,jn,So,Di):ps(H)?Uo(H,st,zt,Er,jn,So,Di):Ep(H)?Ys(H,st,zt,Er,jn,So,Di):T0(H)?ec(H,st,zt,Er,jn,So,Di):mg(H)&&Ss(H,st,zt,Er,jn,So,Di)}function Uo(H,st,zt,Er,jn,So,Di){if(jn){let On=$.checkDefined(zt.classThis??zt.classConstructor,"classConstructor should be set in private identifier environment"),ua=$a(st);y3(Er,st,{kind:"f",isStatic:!0,brandCheckIdentifier:On,variableName:ua,isValid:So})}else{let On=$a(st);y3(Er,st,{kind:"f",isStatic:!1,brandCheckIdentifier:On,isValid:So}),bn().push(n.createAssignment(On,n.createNewExpression(n.createIdentifier("WeakMap"),void 0,[])))}}function Ys(H,st,zt,Er,jn,So,Di){let On=$a(st),ua=jn?$.checkDefined(zt.classThis??zt.classConstructor,"classConstructor should be set in private identifier environment"):$.checkDefined(Er.data.weakSetName,"weakSetName should be set in private identifier environment");y3(Er,st,{kind:"m",methodName:On,brandCheckIdentifier:ua,isStatic:jn,isValid:So})}function ec(H,st,zt,Er,jn,So,Di){let On=$a(st,"_get"),ua=jn?$.checkDefined(zt.classThis??zt.classConstructor,"classConstructor should be set in private identifier environment"):$.checkDefined(Er.data.weakSetName,"weakSetName should be set in private identifier environment");Di?.kind==="a"&&Di.isStatic===jn&&!Di.getterName?Di.getterName=On:y3(Er,st,{kind:"a",getterName:On,setterName:void 0,brandCheckIdentifier:ua,isStatic:jn,isValid:So})}function Ss(H,st,zt,Er,jn,So,Di){let On=$a(st,"_set"),ua=jn?$.checkDefined(zt.classThis??zt.classConstructor,"classConstructor should be set in private identifier environment"):$.checkDefined(Er.data.weakSetName,"weakSetName should be set in private identifier environment");Di?.kind==="a"&&Di.isStatic===jn&&!Di.setterName?Di.setterName=On:y3(Er,st,{kind:"a",getterName:void 0,setterName:On,brandCheckIdentifier:ua,isStatic:jn,isValid:So})}function Mp(H,st,zt,Er,jn,So,Di){let On=$a(st,"_get"),ua=$a(st,"_set"),va=jn?$.checkDefined(zt.classThis??zt.classConstructor,"classConstructor should be set in private identifier environment"):$.checkDefined(Er.data.weakSetName,"weakSetName should be set in private identifier environment");y3(Er,st,{kind:"a",getterName:On,setterName:ua,brandCheckIdentifier:va,isStatic:jn,isValid:So})}function Cp(H,st,zt){let Er=cn(),jn=gn(),So=a0e(jn,st),Di=fd(H),On=!fsr(st)&&So===void 0;zt(H,st,Er,jn,Di,On,So)}function uu(H,st,zt){let{className:Er}=gn().data,jn=Er?{prefix:"_",node:Er,suffix:"_"}:"_",So=typeof H=="object"?n.getGeneratedNameForNode(H,24,jn,zt):typeof H=="string"?n.createUniqueName(H,16,jn,zt):n.createTempVariable(void 0,!0,jn,zt);return g.hasNodeCheckFlag(st,32768)?y(So):c(So),So}function $a(H,st){let zt=pU(H);return uu(zt?.substring(1)??H,H,st)}function bs(H){let st=U8e(De,H);return st?.kind==="untransformed"?void 0:st}function V_(H){let st=n.getGeneratedNameForNode(H),zt=bs(H.name);if(!zt)return Dn(H,ve,t);let Er=H.expression;return(PG(H)||_g(H)||!DP(H.expression))&&(Er=n.createTempVariable(c,!0),bn().push(n.createBinaryExpression(Er,64,At(H.expression,ve,Vt)))),n.createAssignmentTargetWrapper(st,at(zt,Er,st,64))}function Nu(H){if(Lc(H)||qf(H))return Ar(H);if(FR(H))return V_(H);if(Q&&Be&&_g(H)&&Fz(Be)&&De?.data){let{classConstructor:st,superClassReference:zt,facts:Er}=De.data;if(Er&1)return wr(H);if(st&&zt){let jn=mu(H)?At(H.argumentExpression,ve,Vt):ct(H.name)?n.createStringLiteralFromNode(H.name):void 0;if(jn){let So=n.createTempVariable(void 0);return n.createAssignmentTargetWrapper(So,n.createReflectSetCall(zt,jn,So,st))}}}return Dn(H,ve,t)}function kc(H){if(Mg(H,et)&&(H=qg(t,H)),of(H,!0)){let st=Nu(H.left),zt=At(H.right,ve,Vt);return n.updateBinaryExpression(H,st,H.operatorToken,zt)}return Nu(H)}function o_(H){if(jh(H.expression)){let st=Nu(H.expression);return n.updateSpreadElement(H,st)}return Dn(H,ve,t)}function Gy(H){if(pG(H)){if(E0(H))return o_(H);if(!Id(H))return kc(H)}return Dn(H,ve,t)}function _s(H){let st=At(H.name,ve,q_);if(of(H.initializer,!0)){let zt=kc(H.initializer);return n.updatePropertyAssignment(H,st,zt)}if(jh(H.initializer)){let zt=Nu(H.initializer);return n.updatePropertyAssignment(H,st,zt)}return Dn(H,ve,t)}function sc(H){return Mg(H,et)&&(H=qg(t,H)),Dn(H,ve,t)}function sl(H){if(jh(H.expression)){let st=Nu(H.expression);return n.updateSpreadAssignment(H,st)}return Dn(H,ve,t)}function Yc(H){return $.assertNode(H,uG),qx(H)?sl(H):im(H)?sc(H):td(H)?_s(H):Dn(H,ve,t)}function Ar(H){return qf(H)?n.updateArrayLiteralExpression(H,Bn(H.elements,Gy,Vt)):n.updateObjectLiteralExpression(H,Bn(H.properties,Yc,MT))}function Ql(H,st,zt){let Er=Ku(st),jn=Ce.get(Er);if(jn){let So=De,Di=ze;De=jn,ze=de,de=!n_(Er)||!(J1(Er)&32),_e(H,st,zt),de=ze,ze=Di,De=So;return}switch(st.kind){case 219:if(Iu(Er)||Xc(st)&524288)break;case 263:case 177:case 178:case 179:case 175:case 173:{let So=De,Di=ze;De=void 0,ze=de,de=!1,_e(H,st,zt),de=ze,ze=Di,De=So;return}case 168:{let So=De,Di=de;De=De?.previous,de=ze,_e(H,st,zt),de=Di,De=So;return}}_e(H,st,zt)}function Gp(H,st){return st=ae(H,st),H===1?N_(st):st}function N_(H){switch(H.kind){case 80:return Yu(H);case 110:return lf(H)}return H}function lf(H){if(le&2&&De?.data&&!Ae.has(H)){let{facts:st,classConstructor:zt,classThis:Er}=De.data,jn=de?Er??zt:zt;if(jn)return qt(Yi(n.cloneNode(jn),H),H);if(st&1&&O)return n.createParenthesizedExpression(n.createVoidZero())}return H}function Yu(H){return Hp(H)||H}function Hp(H){if(le&1&&g.hasNodeCheckFlag(H,536870912)){let st=g.getReferencedValueDeclaration(H);if(st){let zt=Oe[st.id];if(zt){let Er=n.cloneNode(zt);return Jc(Er,H),Y_(Er,H),Er}}}}}function psr(t,n,a){return t.createAssignment(n,t.createObjectLiteralExpression([t.createPropertyAssignment("value",a||t.createVoidZero())]))}function _sr(t,n,a,c){return t.createCallExpression(t.createPropertyAccessExpression(c,"set"),void 0,[n,a||t.createVoidZero()])}function dsr(t,n,a){return t.createCallExpression(t.createPropertyAccessExpression(a,"add"),void 0,[n])}function fsr(t){return!R4(t)&&t.escapedText==="#constructor"}function msr(t){return Aa(t.left)&&t.operatorToken.kind===103}function hsr(t){return ps(t)&&fd(t)}function Fz(t){return n_(t)||hsr(t)}function Z8e(t){let{factory:n,hoistVariableDeclaration:a}=t,c=t.getEmitResolver(),u=t.getCompilerOptions(),_=$c(u),f=rm(u,"strictNullChecks"),y,g;return{serializeTypeNode:(be,ue)=>k(be,U,ue),serializeTypeOfNode:(be,ue,De)=>k(be,C,ue,De),serializeParameterTypesOfNode:(be,ue,De)=>k(be,O,ue,De),serializeReturnTypeOfNode:(be,ue)=>k(be,M,ue)};function k(be,ue,De,Ce){let Ae=y,Fe=g;y=be.currentLexicalScope,g=be.currentNameScope;let Be=Ce===void 0?ue(De):ue(De,Ce);return y=Ae,g=Fe,Be}function T(be,ue){let De=uP(ue.members,be);return De.setAccessor&&X6e(De.setAccessor)||De.getAccessor&&jg(De.getAccessor)}function C(be,ue){switch(be.kind){case 173:case 170:return U(be.type);case 179:case 178:return U(T(be,ue));case 264:case 232:case 175:return n.createIdentifier("Function");default:return n.createVoidZero()}}function O(be,ue){let De=Co(be)?Rx(be):Rs(be)&&t1(be.body)?be:void 0,Ce=[];if(De){let Ae=F(De,ue),Fe=Ae.length;for(let Be=0;BeAe.parent&&yP(Ae.parent)&&(Ae.parent.trueType===Ae||Ae.parent.falseType===Ae)))return n.createIdentifier("Object");let De=ae(be.typeName),Ce=n.createTempVariable(a);return n.createConditionalExpression(n.createTypeCheck(n.createAssignment(Ce,De),"function"),void 0,Ce,void 0,n.createIdentifier("Object"));case 1:return _e(be.typeName);case 2:return n.createVoidZero();case 4:return Oe("BigInt",7);case 6:return n.createIdentifier("Boolean");case 3:return n.createIdentifier("Number");case 5:return n.createIdentifier("String");case 7:return n.createIdentifier("Array");case 8:return Oe("Symbol",2);case 10:return n.createIdentifier("Function");case 9:return n.createIdentifier("Promise");case 11:return n.createIdentifier("Object");default:return $.assertNever(ue)}}function re(be,ue){return n.createLogicalAnd(n.createStrictInequality(n.createTypeOfExpression(be),n.createStringLiteral("undefined")),ue)}function ae(be){if(be.kind===80){let Ce=_e(be);return re(Ce,Ce)}if(be.left.kind===80)return re(_e(be.left),_e(be));let ue=ae(be.left),De=n.createTempVariable(a);return n.createLogicalAnd(n.createLogicalAnd(ue.left,n.createStrictInequality(n.createAssignment(De,ue.right),n.createVoidZero())),n.createPropertyAccessExpression(De,be.right))}function _e(be){switch(be.kind){case 80:let ue=xl(qt(PA.cloneNode(be),be),be.parent);return ue.original=void 0,xl(ue,vs(y)),ue;case 167:return me(be)}}function me(be){return n.createPropertyAccessExpression(_e(be.left),be.right)}function le(be){return n.createConditionalExpression(n.createTypeCheck(n.createIdentifier(be),"function"),void 0,n.createIdentifier(be),void 0,n.createIdentifier("Object"))}function Oe(be,ue){return _KH(Ht)||hd(Ht)?void 0:Ht,sp),Nn=ES(We),$t=nt(We),Dr=f<2?n.getInternalName(We,!1,!0):n.getLocalName(We,!1,!0),Qn=Bn(We.heritageClauses,C,zg),Ko=Bn(We.members,C,J_),is=[];({members:Ko,decorationStatements:is}=J(We,Ko));let sr=f>=9&&!!$t&&Pt(Ko,Ht=>ps(Ht)&&ko(Ht,256)||n_(Ht));sr&&(Ko=qt(n.createNodeArray([n.createClassStaticBlockDeclaration(n.createBlock([n.createExpressionStatement(n.createAssignment($t,n.createThis()))])),...Ko]),Ko));let uo=n.createClassExpression(nn,St&&ap(St)?void 0:St,void 0,Qn,Ko);Yi(uo,We),qt(uo,Nn);let Wa=$t&&!sr?n.createAssignment($t,uo):uo,oo=n.createVariableDeclaration(Dr,void 0,void 0,Wa);Yi(oo,We);let Oi=n.createVariableDeclarationList([oo],1),$o=n.createVariableStatement(void 0,Oi);Yi($o,We),qt($o,Nn),Y_($o,We);let ft=[$o];if(En(ft,is),ze(ft,We),Kt)if(Sr){let Ht=n.createExportDefault(Dr);ft.push(Ht)}else{let Ht=n.createExternalModuleExport(n.getDeclarationName(We));ft.push(Ht)}return ft}function Q(We){return n.updateClassExpression(We,Bn(We.modifiers,T,bc),We.name,void 0,Bn(We.heritageClauses,C,zg),Bn(We.members,C,J_))}function re(We){return n.updateConstructorDeclaration(We,Bn(We.modifiers,T,bc),Bn(We.parameters,C,wa),At(We.body,C,Vs))}function ae(We,St){return We!==St&&(Y_(We,St),Jc(We,ES(St))),We}function _e(We){return ae(n.updateMethodDeclaration(We,Bn(We.modifiers,T,bc),We.asteriskToken,$.checkDefined(At(We.name,C,q_)),void 0,void 0,Bn(We.parameters,C,wa),void 0,At(We.body,C,Vs)),We)}function me(We){return ae(n.updateGetAccessorDeclaration(We,Bn(We.modifiers,T,bc),$.checkDefined(At(We.name,C,q_)),Bn(We.parameters,C,wa),void 0,At(We.body,C,Vs)),We)}function le(We){return ae(n.updateSetAccessorDeclaration(We,Bn(We.modifiers,T,bc),$.checkDefined(At(We.name,C,q_)),Bn(We.parameters,C,wa),At(We.body,C,Vs)),We)}function Oe(We){if(!(We.flags&33554432||ko(We,128)))return ae(n.updatePropertyDeclaration(We,Bn(We.modifiers,T,bc),$.checkDefined(At(We.name,C,q_)),void 0,void 0,At(We.initializer,C,Vt)),We)}function be(We){let St=n.updateParameterDeclaration(We,SNe(n,We.modifiers),We.dotDotDotToken,$.checkDefined(At(We.name,C,L4)),void 0,void 0,At(We.initializer,C,Vt));return St!==We&&(Y_(St,We),qt(St,ES(We)),Jc(St,ES(We)),Ai(St.name,64)),St}function ue(We){return iz(We.expression,"___metadata")}function De(We){if(!We)return;let{false:St,true:Kt}=Du(We.decorators,ue),Sr=[];return En(Sr,Cr(St,je)),En(Sr,an(We.parameters,ve)),En(Sr,Cr(Kt,je)),Sr}function Ce(We,St,Kt){En(We,Cr(Be(St,Kt),Sr=>n.createExpressionStatement(Sr)))}function Ae(We,St,Kt){return FG(!0,We,Kt)&&St===oc(We)}function Fe(We,St){return yr(We.members,Kt=>Ae(Kt,St,We))}function Be(We,St){let Kt=Fe(We,St),Sr;for(let nn of Kt)Sr=jt(Sr,de(We,nn));return Sr}function de(We,St){let Kt=Uie(St,We,!0),Sr=De(Kt);if(!Sr)return;let nn=ke(We,St),Nn=Le(St,!ko(St,128)),$t=ps(St)&&!xS(St)?n.createVoidZero():n.createNull(),Dr=a().createDecorateHelper(Sr,nn,Nn,$t);return Ai(Dr,3072),Jc(Dr,ES(St)),Dr}function ze(We,St){let Kt=ut(St);Kt&&We.push(Yi(n.createExpressionStatement(Kt),St))}function ut(We){let St=o0e(We,!0),Kt=De(St);if(!Kt)return;let Sr=g&&g[gh(We)],nn=f<2?n.getInternalName(We,!1,!0):n.getDeclarationName(We,!1,!0),Nn=a().createDecorateHelper(Kt,nn),$t=n.createAssignment(nn,Sr?n.createAssignment(Sr,Nn):Nn);return Ai($t,3072),Jc($t,ES(We)),$t}function je(We){return $.checkDefined(At(We.expression,C,Vt))}function ve(We,St){let Kt;if(We){Kt=[];for(let Sr of We){let nn=a().createParamHelper(je(Sr),St);qt(nn,Sr.expression),Ai(nn,3072),Kt.push(nn)}}return Kt}function Le(We,St){let Kt=We.name;return Aa(Kt)?n.createIdentifier(""):dc(Kt)?St&&!FS(Kt.expression)?n.getGeneratedNameForNode(Kt):Kt.expression:ct(Kt)?n.createStringLiteral(Zi(Kt)):n.cloneNode(Kt)}function Ve(){g||(t.enableSubstitution(80),g=[])}function nt(We){if(u.hasNodeCheckFlag(We,262144)){Ve();let St=n.createUniqueName(We.name&&!ap(We.name)?Zi(We.name):"default");return g[gh(We)]=St,c(St),St}}function It(We){return n.createPropertyAccessExpression(n.getDeclarationName(We),"prototype")}function ke(We,St){return oc(St)?n.getDeclarationName(We):It(We)}function _t(We,St){return St=y(We,St),We===1?Se(St):St}function Se(We){return We.kind===80?tt(We):We}function tt(We){return Qe(We)??We}function Qe(We){if(g&&u.hasNodeCheckFlag(We,536870912)){let St=u.getReferencedValueDeclaration(We);if(St){let Kt=g[St.id];if(Kt){let Sr=n.cloneNode(Kt);return Jc(Sr,We),Y_(Sr,We),Sr}}}}}function Y8e(t){let{factory:n,getEmitHelperFactory:a,startLexicalEnvironment:c,endLexicalEnvironment:u,hoistVariableDeclaration:_}=t,f=$c(t.getCompilerOptions()),y,g,k,T,C,O;return Cv(t,F);function F(Y){y=void 0,O=!1;let ot=Dn(Y,le,t);return Ux(ot,t.readEmitHelpers()),O&&(e3(ot,32),O=!1),ot}function M(){switch(g=void 0,k=void 0,T=void 0,y?.kind){case"class":g=y.classInfo;break;case"class-element":g=y.next.classInfo,k=y.classThis,T=y.classSuper;break;case"name":let Y=y.next.next.next;Y?.kind==="class-element"&&(g=Y.next.classInfo,k=Y.classThis,T=Y.classSuper);break}}function U(Y){y={kind:"class",next:y,classInfo:Y,savedPendingExpressions:C},C=void 0,M()}function J(){$.assert(y?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${y?.kind}' instead.`),C=y.savedPendingExpressions,y=y.next,M()}function G(Y){var ot,pe;$.assert(y?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${y?.kind}' instead.`),y={kind:"class-element",next:y},(n_(Y)||ps(Y)&&fd(Y))&&(y.classThis=(ot=y.next.classInfo)==null?void 0:ot.classThis,y.classSuper=(pe=y.next.classInfo)==null?void 0:pe.classSuper),M()}function Z(){var Y;$.assert(y?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${y?.kind}' instead.`),$.assert(((Y=y.next)==null?void 0:Y.kind)==="class","Incorrect value for top.next.kind.",()=>{var ot;return`Expected top.next.kind to be 'class' but got '${(ot=y.next)==null?void 0:ot.kind}' instead.`}),y=y.next,M()}function Q(){$.assert(y?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${y?.kind}' instead.`),y={kind:"name",next:y},M()}function re(){$.assert(y?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${y?.kind}' instead.`),y=y.next,M()}function ae(){y?.kind==="other"?($.assert(!C),y.depth++):(y={kind:"other",next:y,depth:0,savedPendingExpressions:C},C=void 0,M())}function _e(){$.assert(y?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${y?.kind}' instead.`),y.depth>0?($.assert(!C),y.depth--):(C=y.savedPendingExpressions,y=y.next,M())}function me(Y){return!!(Y.transformFlags&33554432)||!!k&&!!(Y.transformFlags&16384)||!!k&&!!T&&!!(Y.transformFlags&134217728)}function le(Y){if(!me(Y))return Y;switch(Y.kind){case 171:return $.fail("Use `modifierVisitor` instead.");case 264:return ut(Y);case 232:return je(Y);case 177:case 173:case 176:return $.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 170:return Nn(Y);case 227:return is(Y,!1);case 304:return $o(Y);case 261:return ft(Y);case 209:return Ht(Y);case 278:return Dt(Y);case 110:return We(Y);case 249:return Qn(Y);case 245:return Ko(Y);case 357:return uo(Y,!1);case 218:return ur(Y,!1);case 356:return Ee(Y,!1);case 214:return St(Y);case 216:return Kt(Y);case 225:case 226:return sr(Y,!1);case 212:return Sr(Y);case 213:return nn(Y);case 168:return Oi(Y);case 175:case 179:case 178:case 219:case 263:{ae();let ot=Dn(Y,Oe,t);return _e(),ot}default:return Dn(Y,Oe,t)}}function Oe(Y){if(Y.kind!==171)return le(Y)}function be(Y){if(Y.kind!==171)return Y}function ue(Y){switch(Y.kind){case 177:return Ve(Y);case 175:return ke(Y);case 178:return _t(Y);case 179:return Se(Y);case 173:return Qe(Y);case 176:return tt(Y);default:return le(Y)}}function De(Y){switch(Y.kind){case 225:case 226:return sr(Y,!0);case 227:return is(Y,!0);case 357:return uo(Y,!0);case 218:return ur(Y,!0);default:return le(Y)}}function Ce(Y){let ot=Y.name&&ct(Y.name)&&!ap(Y.name)?Zi(Y.name):Y.name&&Aa(Y.name)&&!ap(Y.name)?Zi(Y.name).slice(1):Y.name&&Ic(Y.name)&&Jd(Y.name.text,99)?Y.name.text:Co(Y)?"class":"member";return Ax(Y)&&(ot=`get_${ot}`),hS(Y)&&(ot=`set_${ot}`),Y.name&&Aa(Y.name)&&(ot=`private_${ot}`),oc(Y)&&(ot=`static_${ot}`),"_"+ot}function Ae(Y,ot){return n.createUniqueName(`${Ce(Y)}_${ot}`,24)}function Fe(Y,ot){return n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Y,void 0,void 0,ot)],1))}function Be(Y){let ot=n.createUniqueName("_metadata",48),pe,Gt,mr=!1,Ge=!1,Mt=!1,Ir,ii,Rn;if(VR(!1,Y)){let zn=Pt(Y.members,Rt=>(Tm(Rt)||Mh(Rt))&&fd(Rt));Ir=n.createUniqueName("_classThis",zn?24:48)}for(let zn of Y.members){if(OO(zn)&&FG(!1,zn,Y))if(fd(zn)){if(!Gt){Gt=n.createUniqueName("_staticExtraInitializers",48);let Rt=a().createRunInitializersHelper(Ir??n.createThis(),Gt);Jc(Rt,Y.name??qT(Y)),ii??(ii=[]),ii.push(Rt)}}else{if(!pe){pe=n.createUniqueName("_instanceExtraInitializers",48);let Rt=a().createRunInitializersHelper(n.createThis(),pe);Jc(Rt,Y.name??qT(Y)),Rn??(Rn=[]),Rn.push(Rt)}pe??(pe=n.createUniqueName("_instanceExtraInitializers",48))}if(n_(zn)?FF(zn)||(mr=!0):ps(zn)&&(fd(zn)?mr||(mr=!!zn.initializer||By(zn)):Ge||(Ge=!Ime(zn))),(Tm(zn)||Mh(zn))&&fd(zn)&&(Mt=!0),Gt&&pe&&mr&&Ge&&Mt)break}return{class:Y,classThis:Ir,metadataReference:ot,instanceMethodExtraInitializersName:pe,staticMethodExtraInitializersName:Gt,hasStaticInitializers:mr,hasNonAmbientInstanceFields:Ge,hasStaticPrivateClassElements:Mt,pendingStaticInitializers:ii,pendingInstanceInitializers:Rn}}function de(Y){c(),!c0e(Y)&&pE(!1,Y)&&(Y=Jie(t,Y,n.createStringLiteral("")));let ot=n.getLocalName(Y,!1,!1,!0),pe=Be(Y),Gt=[],mr,Ge,Mt,Ir,ii=!1,Rn=Ct(o0e(Y,!1));Rn&&(pe.classDecoratorsName=n.createUniqueName("_classDecorators",48),pe.classDescriptorName=n.createUniqueName("_classDescriptor",48),pe.classExtraInitializersName=n.createUniqueName("_classExtraInitializers",48),$.assertIsDefined(pe.classThis),Gt.push(Fe(pe.classDecoratorsName,n.createArrayLiteralExpression(Rn)),Fe(pe.classDescriptorName),Fe(pe.classExtraInitializersName,n.createArrayLiteralExpression()),Fe(pe.classThis)),pe.hasStaticPrivateClassElements&&(ii=!0,O=!0));let zn=ZG(Y.heritageClauses,96),Rt=zn&&pi(zn.types),rr=Rt&&At(Rt.expression,le,Vt);if(rr){pe.classSuper=n.createUniqueName("_classSuper",48);let gn=Wp(rr),bn=w_(gn)&&!gn.name||bu(gn)&&!gn.name||Iu(gn)?n.createComma(n.createNumericLiteral(0),rr):rr;Gt.push(Fe(pe.classSuper,bn));let $r=n.updateExpressionWithTypeArguments(Rt,pe.classSuper,void 0),Uo=n.updateHeritageClause(zn,[$r]);Ir=n.createNodeArray([Uo])}let _r=pe.classThis??n.createThis();U(pe),mr=jt(mr,Ye(pe.metadataReference,pe.classSuper));let wr=Y.members;if(wr=Bn(wr,gn=>kp(gn)?gn:ue(gn),J_),wr=Bn(wr,gn=>kp(gn)?ue(gn):gn,J_),C){let gn;for(let bn of C){bn=At(bn,function Uo(Ys){return Ys.transformFlags&16384?Ys.kind===110?(gn||(gn=n.createUniqueName("_outerThis",16),Gt.unshift(Fe(gn,n.createThis()))),gn):Dn(Ys,Uo,t):Ys},Vt);let $r=n.createExpressionStatement(bn);mr=jt(mr,$r)}C=void 0}if(J(),Pt(pe.pendingInstanceInitializers)&&!Rx(Y)){let gn=ve(Y,pe);if(gn){let bn=vv(Y),$r=!!(bn&&Wp(bn.expression).kind!==106),Uo=[];if($r){let ec=n.createSpreadElement(n.createIdentifier("arguments")),Ss=n.createCallExpression(n.createSuper(),void 0,[ec]);Uo.push(n.createExpressionStatement(Ss))}En(Uo,gn);let Ys=n.createBlock(Uo,!0);Mt=n.createConstructorDeclaration(void 0,[],Ys)}}if(pe.staticMethodExtraInitializersName&&Gt.push(Fe(pe.staticMethodExtraInitializersName,n.createArrayLiteralExpression())),pe.instanceMethodExtraInitializersName&&Gt.push(Fe(pe.instanceMethodExtraInitializersName,n.createArrayLiteralExpression())),pe.memberInfos&&Ad(pe.memberInfos,(gn,bn)=>{oc(bn)&&(Gt.push(Fe(gn.memberDecoratorsName)),gn.memberInitializersName&&Gt.push(Fe(gn.memberInitializersName,n.createArrayLiteralExpression())),gn.memberExtraInitializersName&&Gt.push(Fe(gn.memberExtraInitializersName,n.createArrayLiteralExpression())),gn.memberDescriptorName&&Gt.push(Fe(gn.memberDescriptorName)))}),pe.memberInfos&&Ad(pe.memberInfos,(gn,bn)=>{oc(bn)||(Gt.push(Fe(gn.memberDecoratorsName)),gn.memberInitializersName&&Gt.push(Fe(gn.memberInitializersName,n.createArrayLiteralExpression())),gn.memberExtraInitializersName&&Gt.push(Fe(gn.memberExtraInitializersName,n.createArrayLiteralExpression())),gn.memberDescriptorName&&Gt.push(Fe(gn.memberDescriptorName)))}),mr=En(mr,pe.staticNonFieldDecorationStatements),mr=En(mr,pe.nonStaticNonFieldDecorationStatements),mr=En(mr,pe.staticFieldDecorationStatements),mr=En(mr,pe.nonStaticFieldDecorationStatements),pe.classDescriptorName&&pe.classDecoratorsName&&pe.classExtraInitializersName&&pe.classThis){mr??(mr=[]);let gn=n.createPropertyAssignment("value",_r),bn=n.createObjectLiteralExpression([gn]),$r=n.createAssignment(pe.classDescriptorName,bn),Uo=n.createPropertyAccessExpression(_r,"name"),Ys=a().createESDecorateHelper(n.createNull(),$r,pe.classDecoratorsName,{kind:"class",name:Uo,metadata:pe.metadataReference},n.createNull(),pe.classExtraInitializersName),ec=n.createExpressionStatement(Ys);Jc(ec,qT(Y)),mr.push(ec);let Ss=n.createPropertyAccessExpression(pe.classDescriptorName,"value"),Mp=n.createAssignment(pe.classThis,Ss),Cp=n.createAssignment(ot,Mp);mr.push(n.createExpressionStatement(Cp))}if(mr.push(er(_r,pe.metadataReference)),Pt(pe.pendingStaticInitializers)){for(let gn of pe.pendingStaticInitializers){let bn=n.createExpressionStatement(gn);Jc(bn,yE(gn)),Ge=jt(Ge,bn)}pe.pendingStaticInitializers=void 0}if(pe.classExtraInitializersName){let gn=a().createRunInitializersHelper(_r,pe.classExtraInitializersName),bn=n.createExpressionStatement(gn);Jc(bn,Y.name??qT(Y)),Ge=jt(Ge,bn)}mr&&Ge&&!pe.hasStaticInitializers&&(En(mr,Ge),Ge=void 0);let pn=mr&&n.createClassStaticBlockDeclaration(n.createBlock(mr,!0));pn&&ii&&OH(pn,32);let tn=Ge&&n.createClassStaticBlockDeclaration(n.createBlock(Ge,!0));if(pn||Mt||tn){let gn=[],bn=wr.findIndex(FF);pn?(En(gn,wr,0,bn+1),gn.push(pn),En(gn,wr,bn+1)):En(gn,wr),Mt&&gn.push(Mt),tn&&gn.push(tn),wr=qt(n.createNodeArray(gn),wr)}let lr=u(),cn;if(Rn){cn=n.createClassExpression(void 0,void 0,void 0,Ir,wr),pe.classThis&&(cn=V8e(n,cn,pe.classThis));let gn=n.createVariableDeclaration(ot,void 0,void 0,cn),bn=n.createVariableDeclarationList([gn]),$r=pe.classThis?n.createAssignment(ot,pe.classThis):ot;Gt.push(n.createVariableStatement(void 0,bn),n.createReturnStatement($r))}else cn=n.createClassExpression(void 0,Y.name,void 0,Ir,wr),Gt.push(n.createReturnStatement(cn));if(ii){e3(cn,32);for(let gn of cn.members)(Tm(gn)||Mh(gn))&&fd(gn)&&e3(gn,32)}return Yi(cn,Y),n.createImmediatelyInvokedArrowFunction(n.mergeLexicalEnvironment(Gt,lr))}function ze(Y){return pE(!1,Y)||mU(!1,Y)}function ut(Y){if(ze(Y)){let ot=[],pe=Ku(Y,Co)??Y,Gt=pe.name?n.createStringLiteralFromNode(pe.name):n.createStringLiteral("default"),mr=ko(Y,32),Ge=ko(Y,2048);if(Y.name||(Y=Jie(t,Y,Gt)),mr&&Ge){let Mt=de(Y);if(Y.name){let Ir=n.createVariableDeclaration(n.getLocalName(Y),void 0,void 0,Mt);Yi(Ir,Y);let ii=n.createVariableDeclarationList([Ir],1),Rn=n.createVariableStatement(void 0,ii);ot.push(Rn);let zn=n.createExportDefault(n.getDeclarationName(Y));Yi(zn,Y),Y_(zn,DS(Y)),Jc(zn,qT(Y)),ot.push(zn)}else{let Ir=n.createExportDefault(Mt);Yi(Ir,Y),Y_(Ir,DS(Y)),Jc(Ir,qT(Y)),ot.push(Ir)}}else{$.assertIsDefined(Y.name,"A class declaration that is not a default export must have a name.");let Mt=de(Y),Ir=mr?_r=>fF(_r)?void 0:be(_r):be,ii=Bn(Y.modifiers,Ir,bc),Rn=n.getLocalName(Y,!1,!0),zn=n.createVariableDeclaration(Rn,void 0,void 0,Mt);Yi(zn,Y);let Rt=n.createVariableDeclarationList([zn],1),rr=n.createVariableStatement(ii,Rt);if(Yi(rr,Y),Y_(rr,DS(Y)),ot.push(rr),mr){let _r=n.createExternalModuleExport(Rn);Yi(_r,Y),ot.push(_r)}}return Ja(ot)}else{let ot=Bn(Y.modifiers,be,bc),pe=Bn(Y.heritageClauses,le,zg);U(void 0);let Gt=Bn(Y.members,ue,J_);return J(),n.updateClassDeclaration(Y,ot,Y.name,void 0,pe,Gt)}}function je(Y){if(ze(Y)){let ot=de(Y);return Yi(ot,Y),ot}else{let ot=Bn(Y.modifiers,be,bc),pe=Bn(Y.heritageClauses,le,zg);U(void 0);let Gt=Bn(Y.members,ue,J_);return J(),n.updateClassExpression(Y,ot,Y.name,void 0,pe,Gt)}}function ve(Y,ot){if(Pt(ot.pendingInstanceInitializers)){let pe=[];return pe.push(n.createExpressionStatement(n.inlineExpressions(ot.pendingInstanceInitializers))),ot.pendingInstanceInitializers=void 0,pe}}function Le(Y,ot,pe,Gt,mr,Ge){let Mt=Gt[mr],Ir=ot[Mt];if(En(Y,Bn(ot,le,fa,pe,Mt-pe)),c3(Ir)){let ii=[];Le(ii,Ir.tryBlock.statements,0,Gt,mr+1,Ge);let Rn=n.createNodeArray(ii);qt(Rn,Ir.tryBlock.statements),Y.push(n.updateTryStatement(Ir,n.updateBlock(Ir.tryBlock,ii),At(Ir.catchClause,le,TP),At(Ir.finallyBlock,le,Vs)))}else En(Y,Bn(ot,le,fa,Mt,1)),En(Y,Ge);En(Y,Bn(ot,le,fa,Mt+1))}function Ve(Y){G(Y);let ot=Bn(Y.modifiers,be,bc),pe=Bn(Y.parameters,le,wa),Gt;if(Y.body&&g){let mr=ve(g.class,g);if(mr){let Ge=[],Mt=n.copyPrologue(Y.body.statements,Ge,!1,le),Ir=Bie(Y.body.statements,Mt);Ir.length>0?Le(Ge,Y.body.statements,Mt,Ir,0,mr):(En(Ge,mr),En(Ge,Bn(Y.body.statements,le,fa))),Gt=n.createBlock(Ge,!0),Yi(Gt,Y.body),qt(Gt,Y.body)}}return Gt??(Gt=At(Y.body,le,Vs)),Z(),n.updateConstructorDeclaration(Y,ot,pe,Gt)}function nt(Y,ot){return Y!==ot&&(Y_(Y,ot),Jc(Y,qT(ot))),Y}function It(Y,ot,pe){let Gt,mr,Ge,Mt,Ir,ii;if(!ot){let Rt=Bn(Y.modifiers,be,bc);return Q(),mr=oo(Y.name),re(),{modifiers:Rt,referencedName:Gt,name:mr,initializersName:Ge,descriptorName:ii,thisArg:Ir}}let Rn=Ct(Uie(Y,ot.class,!1)),zn=Bn(Y.modifiers,be,bc);if(Rn){let Rt=Ae(Y,"decorators"),rr=n.createArrayLiteralExpression(Rn),_r=n.createAssignment(Rt,rr),wr={memberDecoratorsName:Rt};ot.memberInfos??(ot.memberInfos=new Map),ot.memberInfos.set(Y,wr),C??(C=[]),C.push(_r);let pn=OO(Y)||Mh(Y)?oc(Y)?ot.staticNonFieldDecorationStatements??(ot.staticNonFieldDecorationStatements=[]):ot.nonStaticNonFieldDecorationStatements??(ot.nonStaticNonFieldDecorationStatements=[]):ps(Y)&&!Mh(Y)?oc(Y)?ot.staticFieldDecorationStatements??(ot.staticFieldDecorationStatements=[]):ot.nonStaticFieldDecorationStatements??(ot.nonStaticFieldDecorationStatements=[]):$.fail(),tn=T0(Y)?"getter":mg(Y)?"setter":Ep(Y)?"method":Mh(Y)?"accessor":ps(Y)?"field":$.fail(),lr;if(ct(Y.name)||Aa(Y.name))lr={computed:!1,name:Y.name};else if(SS(Y.name))lr={computed:!0,name:n.createStringLiteralFromNode(Y.name)};else{let gn=Y.name.expression;SS(gn)&&!ct(gn)?lr={computed:!0,name:n.createStringLiteralFromNode(gn)}:(Q(),{referencedName:Gt,name:mr}=Wa(Y.name),lr={computed:!0,name:Gt},re())}let cn={kind:tn,name:lr,static:oc(Y),private:Aa(Y.name),access:{get:ps(Y)||T0(Y)||Ep(Y),set:ps(Y)||mg(Y)},metadata:ot.metadataReference};if(OO(Y)){let gn=oc(Y)?ot.staticMethodExtraInitializersName:ot.instanceMethodExtraInitializersName;$.assertIsDefined(gn);let bn;Tm(Y)&&pe&&(bn=pe(Y,Bn(zn,Ys=>Ci(Ys,oz),bc)),wr.memberDescriptorName=ii=Ae(Y,"descriptor"),bn=n.createAssignment(ii,bn));let $r=a().createESDecorateHelper(n.createThis(),bn??n.createNull(),Rt,cn,n.createNull(),gn),Uo=n.createExpressionStatement($r);Jc(Uo,qT(Y)),pn.push(Uo)}else if(ps(Y)){Ge=wr.memberInitializersName??(wr.memberInitializersName=Ae(Y,"initializers")),Mt=wr.memberExtraInitializersName??(wr.memberExtraInitializersName=Ae(Y,"extraInitializers")),oc(Y)&&(Ir=ot.classThis);let gn;Tm(Y)&&xS(Y)&&pe&&(gn=pe(Y,void 0),wr.memberDescriptorName=ii=Ae(Y,"descriptor"),gn=n.createAssignment(ii,gn));let bn=a().createESDecorateHelper(Mh(Y)?n.createThis():n.createNull(),gn??n.createNull(),Rt,cn,Ge,Mt),$r=n.createExpressionStatement(bn);Jc($r,qT(Y)),pn.push($r)}}return mr===void 0&&(Q(),mr=oo(Y.name),re()),!Pt(zn)&&(Ep(Y)||ps(Y))&&Ai(mr,1024),{modifiers:zn,referencedName:Gt,name:mr,initializersName:Ge,extraInitializersName:Mt,descriptorName:ii,thisArg:Ir}}function ke(Y){G(Y);let{modifiers:ot,name:pe,descriptorName:Gt}=It(Y,g,at);if(Gt)return Z(),nt(Et(ot,pe,Gt),Y);{let mr=Bn(Y.parameters,le,wa),Ge=At(Y.body,le,Vs);return Z(),nt(n.updateMethodDeclaration(Y,ot,Y.asteriskToken,pe,void 0,void 0,mr,void 0,Ge),Y)}}function _t(Y){G(Y);let{modifiers:ot,name:pe,descriptorName:Gt}=It(Y,g,Zt);if(Gt)return Z(),nt(xr(ot,pe,Gt),Y);{let mr=Bn(Y.parameters,le,wa),Ge=At(Y.body,le,Vs);return Z(),nt(n.updateGetAccessorDeclaration(Y,ot,pe,mr,void 0,Ge),Y)}}function Se(Y){G(Y);let{modifiers:ot,name:pe,descriptorName:Gt}=It(Y,g,Qt);if(Gt)return Z(),nt(gi(ot,pe,Gt),Y);{let mr=Bn(Y.parameters,le,wa),Ge=At(Y.body,le,Vs);return Z(),nt(n.updateSetAccessorDeclaration(Y,ot,pe,mr,Ge),Y)}}function tt(Y){G(Y);let ot;if(FF(Y))ot=Dn(Y,le,t);else if(Oz(Y)){let pe=k;k=void 0,ot=Dn(Y,le,t),k=pe}else if(Y=Dn(Y,le,t),ot=Y,g&&(g.hasStaticInitializers=!0,Pt(g.pendingStaticInitializers))){let pe=[];for(let Ge of g.pendingStaticInitializers){let Mt=n.createExpressionStatement(Ge);Jc(Mt,yE(Ge)),pe.push(Mt)}let Gt=n.createBlock(pe,!0);ot=[n.createClassStaticBlockDeclaration(Gt),ot],g.pendingStaticInitializers=void 0}return Z(),ot}function Qe(Y){Mg(Y,$t)&&(Y=qg(t,Y,Dr(Y.initializer))),G(Y),$.assert(!Ime(Y),"Not yet implemented.");let{modifiers:ot,name:pe,initializersName:Gt,extraInitializersName:mr,descriptorName:Ge,thisArg:Mt}=It(Y,g,xS(Y)?pr:void 0);c();let Ir=At(Y.initializer,le,Vt);Gt&&(Ir=a().createRunInitializersHelper(Mt??n.createThis(),Gt,Ir??n.createVoidZero())),oc(Y)&&g&&Ir&&(g.hasStaticInitializers=!0);let ii=u();if(Pt(ii)&&(Ir=n.createImmediatelyInvokedArrowFunction([...ii,n.createReturnStatement(Ir)])),g&&(oc(Y)?(Ir=et(g,!0,Ir),mr&&(g.pendingStaticInitializers??(g.pendingStaticInitializers=[]),g.pendingStaticInitializers.push(a().createRunInitializersHelper(g.classThis??n.createThis(),mr)))):(Ir=et(g,!1,Ir),mr&&(g.pendingInstanceInitializers??(g.pendingInstanceInitializers=[]),g.pendingInstanceInitializers.push(a().createRunInitializersHelper(n.createThis(),mr))))),Z(),xS(Y)&&Ge){let Rn=DS(Y),zn=yE(Y),Rt=Y.name,rr=Rt,_r=Rt;if(dc(Rt)&&!FS(Rt.expression)){let cn=oie(Rt);if(cn)rr=n.updateComputedPropertyName(Rt,At(Rt.expression,le,Vt)),_r=n.updateComputedPropertyName(Rt,cn.left);else{let gn=n.createTempVariable(_);Jc(gn,Rt.expression);let bn=At(Rt.expression,le,Vt),$r=n.createAssignment(gn,bn);Jc($r,Rt.expression),rr=n.updateComputedPropertyName(Rt,$r),_r=n.updateComputedPropertyName(Rt,gn)}}let wr=Bn(ot,cn=>cn.kind!==129?cn:void 0,bc),pn=nye(n,Y,wr,Ir);Yi(pn,Y),Ai(pn,3072),Jc(pn,zn),Jc(pn.name,Y.name);let tn=xr(wr,rr,Ge);Yi(tn,Y),Y_(tn,Rn),Jc(tn,zn);let lr=gi(wr,_r,Ge);return Yi(lr,Y),Ai(lr,3072),Jc(lr,zn),[pn,tn,lr]}return nt(n.updatePropertyDeclaration(Y,ot,pe,void 0,void 0,Ir),Y)}function We(Y){return k??Y}function St(Y){if(_g(Y.expression)&&k){let ot=At(Y.expression,le,Vt),pe=Bn(Y.arguments,le,Vt),Gt=n.createFunctionCallCall(ot,k,pe);return Yi(Gt,Y),qt(Gt,Y),Gt}return Dn(Y,le,t)}function Kt(Y){if(_g(Y.tag)&&k){let ot=At(Y.tag,le,Vt),pe=n.createFunctionBindCall(ot,k,[]);Yi(pe,Y),qt(pe,Y);let Gt=At(Y.template,le,FO);return n.updateTaggedTemplateExpression(Y,pe,void 0,Gt)}return Dn(Y,le,t)}function Sr(Y){if(_g(Y)&&ct(Y.name)&&k&&T){let ot=n.createStringLiteralFromNode(Y.name),pe=n.createReflectGetCall(T,ot,k);return Yi(pe,Y.expression),qt(pe,Y.expression),pe}return Dn(Y,le,t)}function nn(Y){if(_g(Y)&&k&&T){let ot=At(Y.argumentExpression,le,Vt),pe=n.createReflectGetCall(T,ot,k);return Yi(pe,Y.expression),qt(pe,Y.expression),pe}return Dn(Y,le,t)}function Nn(Y){Mg(Y,$t)&&(Y=qg(t,Y,Dr(Y.initializer)));let ot=n.updateParameterDeclaration(Y,void 0,Y.dotDotDotToken,At(Y.name,le,L4),void 0,void 0,At(Y.initializer,le,Vt));return ot!==Y&&(Y_(ot,Y),qt(ot,ES(Y)),Jc(ot,ES(Y)),Ai(ot.name,64)),ot}function $t(Y){return w_(Y)&&!Y.name&&ze(Y)}function Dr(Y){let ot=Wp(Y);return w_(ot)&&!ot.name&&!pE(!1,ot)}function Qn(Y){return n.updateForStatement(Y,At(Y.initializer,De,f0),At(Y.condition,le,Vt),At(Y.incrementor,De,Vt),hh(Y.statement,le,t))}function Ko(Y){return Dn(Y,De,t)}function is(Y,ot){if(dE(Y)){let pe=Es(Y.left),Gt=At(Y.right,le,Vt);return n.updateBinaryExpression(Y,pe,Y.operatorToken,Gt)}if(of(Y)){if(Mg(Y,$t))return Y=qg(t,Y,Dr(Y.right)),Dn(Y,le,t);if(_g(Y.left)&&k&&T){let pe=mu(Y.left)?At(Y.left.argumentExpression,le,Vt):ct(Y.left.name)?n.createStringLiteralFromNode(Y.left.name):void 0;if(pe){let Gt=At(Y.right,le,Vt);if(Iz(Y.operatorToken.kind)){let Ge=pe;FS(pe)||(Ge=n.createTempVariable(_),pe=n.createAssignment(Ge,pe));let Mt=n.createReflectGetCall(T,Ge,k);Yi(Mt,Y.left),qt(Mt,Y.left),Gt=n.createBinaryExpression(Mt,Pz(Y.operatorToken.kind),Gt),qt(Gt,Y)}let mr=ot?void 0:n.createTempVariable(_);return mr&&(Gt=n.createAssignment(mr,Gt),qt(mr,Y)),Gt=n.createReflectSetCall(T,pe,Gt,k),Yi(Gt,Y),qt(Gt,Y),mr&&(Gt=n.createComma(Gt,mr),qt(Gt,Y)),Gt}}}if(Y.operatorToken.kind===28){let pe=At(Y.left,De,Vt),Gt=At(Y.right,ot?De:le,Vt);return n.updateBinaryExpression(Y,pe,Y.operatorToken,Gt)}return Dn(Y,le,t)}function sr(Y,ot){if(Y.operator===46||Y.operator===47){let pe=bl(Y.operand);if(_g(pe)&&k&&T){let Gt=mu(pe)?At(pe.argumentExpression,le,Vt):ct(pe.name)?n.createStringLiteralFromNode(pe.name):void 0;if(Gt){let mr=Gt;FS(Gt)||(mr=n.createTempVariable(_),Gt=n.createAssignment(mr,Gt));let Ge=n.createReflectGetCall(T,mr,k);Yi(Ge,Y),qt(Ge,Y);let Mt=ot?void 0:n.createTempVariable(_);return Ge=Yne(n,Y,Ge,_,Mt),Ge=n.createReflectSetCall(T,Gt,Ge,k),Yi(Ge,Y),qt(Ge,Y),Mt&&(Ge=n.createComma(Ge,Mt),qt(Ge,Y)),Ge}}}return Dn(Y,le,t)}function uo(Y,ot){let pe=ot?fK(Y.elements,De):fK(Y.elements,le,De);return n.updateCommaListExpression(Y,pe)}function Wa(Y){if(SS(Y)||Aa(Y)){let Ge=n.createStringLiteralFromNode(Y),Mt=At(Y,le,q_);return{referencedName:Ge,name:Mt}}if(SS(Y.expression)&&!ct(Y.expression)){let Ge=n.createStringLiteralFromNode(Y.expression),Mt=At(Y,le,q_);return{referencedName:Ge,name:Mt}}let ot=n.getGeneratedNameForNode(Y);_(ot);let pe=a().createPropKeyHelper(At(Y.expression,le,Vt)),Gt=n.createAssignment(ot,pe),mr=n.updateComputedPropertyName(Y,ye(Gt));return{referencedName:ot,name:mr}}function oo(Y){return dc(Y)?Oi(Y):At(Y,le,q_)}function Oi(Y){let ot=At(Y.expression,le,Vt);return FS(ot)||(ot=ye(ot)),n.updateComputedPropertyName(Y,ot)}function $o(Y){return Mg(Y,$t)&&(Y=qg(t,Y,Dr(Y.initializer))),Dn(Y,le,t)}function ft(Y){return Mg(Y,$t)&&(Y=qg(t,Y,Dr(Y.initializer))),Dn(Y,le,t)}function Ht(Y){return Mg(Y,$t)&&(Y=qg(t,Y,Dr(Y.initializer))),Dn(Y,le,t)}function Wr(Y){if(Lc(Y)||qf(Y))return Es(Y);if(_g(Y)&&k&&T){let ot=mu(Y)?At(Y.argumentExpression,le,Vt):ct(Y.name)?n.createStringLiteralFromNode(Y.name):void 0;if(ot){let pe=n.createTempVariable(void 0),Gt=n.createAssignmentTargetWrapper(pe,n.createReflectSetCall(T,ot,pe,k));return Yi(Gt,Y),qt(Gt,Y),Gt}}return Dn(Y,le,t)}function ai(Y){if(of(Y,!0)){Mg(Y,$t)&&(Y=qg(t,Y,Dr(Y.right)));let ot=Wr(Y.left),pe=At(Y.right,le,Vt);return n.updateBinaryExpression(Y,ot,Y.operatorToken,pe)}else return Wr(Y)}function vo(Y){if(jh(Y.expression)){let ot=Wr(Y.expression);return n.updateSpreadElement(Y,ot)}return Dn(Y,le,t)}function Eo(Y){return $.assertNode(Y,pG),E0(Y)?vo(Y):Id(Y)?Dn(Y,le,t):ai(Y)}function ya(Y){let ot=At(Y.name,le,q_);if(of(Y.initializer,!0)){let pe=ai(Y.initializer);return n.updatePropertyAssignment(Y,ot,pe)}if(jh(Y.initializer)){let pe=Wr(Y.initializer);return n.updatePropertyAssignment(Y,ot,pe)}return Dn(Y,le,t)}function Ls(Y){return Mg(Y,$t)&&(Y=qg(t,Y,Dr(Y.objectAssignmentInitializer))),Dn(Y,le,t)}function yc(Y){if(jh(Y.expression)){let ot=Wr(Y.expression);return n.updateSpreadAssignment(Y,ot)}return Dn(Y,le,t)}function Cn(Y){return $.assertNode(Y,uG),qx(Y)?yc(Y):im(Y)?Ls(Y):td(Y)?ya(Y):Dn(Y,le,t)}function Es(Y){if(qf(Y)){let ot=Bn(Y.elements,Eo,Vt);return n.updateArrayLiteralExpression(Y,ot)}else{let ot=Bn(Y.properties,Cn,MT);return n.updateObjectLiteralExpression(Y,ot)}}function Dt(Y){return Mg(Y,$t)&&(Y=qg(t,Y,Dr(Y.expression))),Dn(Y,le,t)}function ur(Y,ot){let pe=ot?De:le,Gt=At(Y.expression,pe,Vt);return n.updateParenthesizedExpression(Y,Gt)}function Ee(Y,ot){let pe=ot?De:le,Gt=At(Y.expression,pe,Vt);return n.updatePartiallyEmittedExpression(Y,Gt)}function Bt(Y,ot){return Pt(Y)&&(ot?mh(ot)?(Y.push(ot.expression),ot=n.updateParenthesizedExpression(ot,n.inlineExpressions(Y))):(Y.push(ot),ot=n.inlineExpressions(Y)):ot=n.inlineExpressions(Y)),ot}function ye(Y){let ot=Bt(C,Y);return $.assertIsDefined(ot),ot!==Y&&(C=void 0),ot}function et(Y,ot,pe){let Gt=Bt(ot?Y.pendingStaticInitializers:Y.pendingInstanceInitializers,pe);return Gt!==pe&&(ot?Y.pendingStaticInitializers=void 0:Y.pendingInstanceInitializers=void 0),Gt}function Ct(Y){if(!Y)return;let ot=[];return En(ot,Cr(Y.decorators,Ot)),ot}function Ot(Y){let ot=At(Y.expression,le,Vt);Ai(ot,3072);let pe=Wp(ot);if(wu(pe)){let{target:Gt,thisArg:mr}=n.createCallBinding(ot,_,f,!0);return n.restoreOuterExpressions(ot,n.createFunctionBindCall(Gt,mr,[]))}return ot}function ar(Y,ot,pe,Gt,mr,Ge,Mt){let Ir=n.createFunctionExpression(pe,Gt,void 0,void 0,Ge,void 0,Mt??n.createBlock([]));Yi(Ir,Y),Jc(Ir,qT(Y)),Ai(Ir,3072);let ii=mr==="get"||mr==="set"?mr:void 0,Rn=n.createStringLiteralFromNode(ot,void 0),zn=a().createSetFunctionNameHelper(Ir,Rn,ii),Rt=n.createPropertyAssignment(n.createIdentifier(mr),zn);return Yi(Rt,Y),Jc(Rt,qT(Y)),Ai(Rt,3072),Rt}function at(Y,ot){return n.createObjectLiteralExpression([ar(Y,Y.name,ot,Y.asteriskToken,"value",Bn(Y.parameters,le,wa),At(Y.body,le,Vs))])}function Zt(Y,ot){return n.createObjectLiteralExpression([ar(Y,Y.name,ot,void 0,"get",[],At(Y.body,le,Vs))])}function Qt(Y,ot){return n.createObjectLiteralExpression([ar(Y,Y.name,ot,void 0,"set",Bn(Y.parameters,le,wa),At(Y.body,le,Vs))])}function pr(Y,ot){return n.createObjectLiteralExpression([ar(Y,Y.name,ot,void 0,"get",[],n.createBlock([n.createReturnStatement(n.createPropertyAccessExpression(n.createThis(),n.getGeneratedPrivateNameForNode(Y.name)))])),ar(Y,Y.name,ot,void 0,"set",[n.createParameterDeclaration(void 0,void 0,"value")],n.createBlock([n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createThis(),n.getGeneratedPrivateNameForNode(Y.name)),n.createIdentifier("value")))]))])}function Et(Y,ot,pe){return Y=Bn(Y,Gt=>mF(Gt)?Gt:void 0,bc),n.createGetAccessorDeclaration(Y,ot,[],void 0,n.createBlock([n.createReturnStatement(n.createPropertyAccessExpression(pe,n.createIdentifier("value")))]))}function xr(Y,ot,pe){return Y=Bn(Y,Gt=>mF(Gt)?Gt:void 0,bc),n.createGetAccessorDeclaration(Y,ot,[],void 0,n.createBlock([n.createReturnStatement(n.createFunctionCallCall(n.createPropertyAccessExpression(pe,n.createIdentifier("get")),n.createThis(),[]))]))}function gi(Y,ot,pe){return Y=Bn(Y,Gt=>mF(Gt)?Gt:void 0,bc),n.createSetAccessorDeclaration(Y,ot,[n.createParameterDeclaration(void 0,void 0,"value")],n.createBlock([n.createReturnStatement(n.createFunctionCallCall(n.createPropertyAccessExpression(pe,n.createIdentifier("set")),n.createThis(),[n.createIdentifier("value")]))]))}function Ye(Y,ot){let pe=n.createVariableDeclaration(Y,void 0,void 0,n.createConditionalExpression(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("Symbol"),"function"),n.createPropertyAccessExpression(n.createIdentifier("Symbol"),"metadata")),n.createToken(58),n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"create"),void 0,[ot?Ne(ot):n.createNull()]),n.createToken(59),n.createVoidZero()));return n.createVariableStatement(void 0,n.createVariableDeclarationList([pe],2))}function er(Y,ot){let pe=n.createObjectDefinePropertyCall(Y,n.createPropertyAccessExpression(n.createIdentifier("Symbol"),"metadata"),n.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:ot},!0));return Ai(n.createIfStatement(ot,n.createExpressionStatement(pe)),1)}function Ne(Y){return n.createBinaryExpression(n.createElementAccessExpression(Y,n.createPropertyAccessExpression(n.createIdentifier("Symbol"),"metadata")),61,n.createNull())}}function eOe(t){let{factory:n,getEmitHelperFactory:a,resumeLexicalEnvironment:c,endLexicalEnvironment:u,hoistVariableDeclaration:_}=t,f=t.getEmitResolver(),y=t.getCompilerOptions(),g=$c(y),k=0,T=0,C,O,F,M,U=[],J=0,G=t.onEmitNode,Z=t.onSubstituteNode;return t.onEmitNode=Ko,t.onSubstituteNode=is,Cv(t,Q);function Q(ft){if(ft.isDeclarationFile)return ft;re(1,!1),re(2,!wme(ft,y));let Ht=Dn(ft,ue,t);return Ux(Ht,t.readEmitHelpers()),Ht}function re(ft,Ht){J=Ht?J|ft:J&~ft}function ae(ft){return(J&ft)!==0}function _e(){return!ae(1)}function me(){return ae(2)}function le(ft,Ht,Wr){let ai=ft&~J;if(ai){re(ai,!0);let vo=Ht(Wr);return re(ai,!1),vo}return Ht(Wr)}function Oe(ft){return Dn(ft,ue,t)}function be(ft){switch(ft.kind){case 219:case 263:case 175:case 178:case 179:case 177:return ft;case 170:case 209:case 261:break;case 80:if(M&&f.isArgumentsLocalBinding(ft))return M;break}return Dn(ft,be,t)}function ue(ft){if((ft.transformFlags&256)===0)return M?be(ft):ft;switch(ft.kind){case 134:return;case 224:return ze(ft);case 175:return le(3,je,ft);case 263:return le(3,Ve,ft);case 219:return le(3,nt,ft);case 220:return le(1,It,ft);case 212:return O&&no(ft)&&ft.expression.kind===108&&O.add(ft.name.escapedText),Dn(ft,ue,t);case 213:return O&&ft.expression.kind===108&&(F=!0),Dn(ft,ue,t);case 178:return le(3,ve,ft);case 179:return le(3,Le,ft);case 177:return le(3,ut,ft);case 264:case 232:return le(3,Oe,ft);default:return Dn(ft,ue,t)}}function De(ft){if(B6e(ft))switch(ft.kind){case 244:return Ae(ft);case 249:return de(ft);case 250:return Fe(ft);case 251:return Be(ft);case 300:return Ce(ft);case 242:case 256:case 270:case 297:case 298:case 259:case 247:case 248:case 246:case 255:case 257:return Dn(ft,De,t);default:return $.assertNever(ft,"Unhandled node.")}return ue(ft)}function Ce(ft){let Ht=new Set;ke(ft.variableDeclaration,Ht);let Wr;if(Ht.forEach((ai,vo)=>{C.has(vo)&&(Wr||(Wr=new Set(C)),Wr.delete(vo))}),Wr){let ai=C;C=Wr;let vo=Dn(ft,De,t);return C=ai,vo}else return Dn(ft,De,t)}function Ae(ft){if(_t(ft.declarationList)){let Ht=Se(ft.declarationList,!1);return Ht?n.createExpressionStatement(Ht):void 0}return Dn(ft,ue,t)}function Fe(ft){return n.updateForInStatement(ft,_t(ft.initializer)?Se(ft.initializer,!0):$.checkDefined(At(ft.initializer,ue,f0)),$.checkDefined(At(ft.expression,ue,Vt)),hh(ft.statement,De,t))}function Be(ft){return n.updateForOfStatement(ft,At(ft.awaitModifier,ue,wge),_t(ft.initializer)?Se(ft.initializer,!0):$.checkDefined(At(ft.initializer,ue,f0)),$.checkDefined(At(ft.expression,ue,Vt)),hh(ft.statement,De,t))}function de(ft){let Ht=ft.initializer;return n.updateForStatement(ft,_t(Ht)?Se(Ht,!1):At(ft.initializer,ue,f0),At(ft.condition,ue,Vt),At(ft.incrementor,ue,Vt),hh(ft.statement,De,t))}function ze(ft){return _e()?Dn(ft,ue,t):Yi(qt(n.createYieldExpression(void 0,At(ft.expression,ue,Vt)),ft),ft)}function ut(ft){let Ht=M;M=void 0;let Wr=n.updateConstructorDeclaration(ft,Bn(ft.modifiers,ue,bc),Rp(ft.parameters,ue,t),Kt(ft));return M=Ht,Wr}function je(ft){let Ht,Wr=A_(ft),ai=M;M=void 0;let vo=n.updateMethodDeclaration(ft,Bn(ft.modifiers,ue,sp),ft.asteriskToken,ft.name,void 0,void 0,Ht=Wr&2?nn(ft):Rp(ft.parameters,ue,t),void 0,Wr&2?Nn(ft,Ht):Kt(ft));return M=ai,vo}function ve(ft){let Ht=M;M=void 0;let Wr=n.updateGetAccessorDeclaration(ft,Bn(ft.modifiers,ue,sp),ft.name,Rp(ft.parameters,ue,t),void 0,Kt(ft));return M=Ht,Wr}function Le(ft){let Ht=M;M=void 0;let Wr=n.updateSetAccessorDeclaration(ft,Bn(ft.modifiers,ue,sp),ft.name,Rp(ft.parameters,ue,t),Kt(ft));return M=Ht,Wr}function Ve(ft){let Ht,Wr=M;M=void 0;let ai=A_(ft),vo=n.updateFunctionDeclaration(ft,Bn(ft.modifiers,ue,sp),ft.asteriskToken,ft.name,void 0,Ht=ai&2?nn(ft):Rp(ft.parameters,ue,t),void 0,ai&2?Nn(ft,Ht):Jy(ft.body,ue,t));return M=Wr,vo}function nt(ft){let Ht,Wr=M;M=void 0;let ai=A_(ft),vo=n.updateFunctionExpression(ft,Bn(ft.modifiers,ue,bc),ft.asteriskToken,ft.name,void 0,Ht=ai&2?nn(ft):Rp(ft.parameters,ue,t),void 0,ai&2?Nn(ft,Ht):Jy(ft.body,ue,t));return M=Wr,vo}function It(ft){let Ht,Wr=A_(ft);return n.updateArrowFunction(ft,Bn(ft.modifiers,ue,bc),void 0,Ht=Wr&2?nn(ft):Rp(ft.parameters,ue,t),void 0,ft.equalsGreaterThanToken,Wr&2?Nn(ft,Ht):Jy(ft.body,ue,t))}function ke({name:ft},Ht){if(ct(ft))Ht.add(ft.escapedText);else for(let Wr of ft.elements)Id(Wr)||ke(Wr,Ht)}function _t(ft){return!!ft&&Df(ft)&&!(ft.flags&7)&&ft.declarations.some(St)}function Se(ft,Ht){tt(ft);let Wr=MU(ft);return Wr.length===0?Ht?At(n.converters.convertToAssignmentElementTarget(ft.declarations[0].name),ue,Vt):void 0:n.inlineExpressions(Cr(Wr,We))}function tt(ft){X(ft.declarations,Qe)}function Qe({name:ft}){if(ct(ft))_(ft);else for(let Ht of ft.elements)Id(Ht)||Qe(Ht)}function We(ft){let Ht=Jc(n.createAssignment(n.converters.convertToAssignmentElementTarget(ft.name),ft.initializer),ft);return $.checkDefined(At(Ht,ue,Vt))}function St({name:ft}){if(ct(ft))return C.has(ft.escapedText);for(let Ht of ft.elements)if(!Id(Ht)&&St(Ht))return!0;return!1}function Kt(ft){$.assertIsDefined(ft.body);let Ht=O,Wr=F;O=new Set,F=!1;let ai=Jy(ft.body,ue,t),vo=Ku(ft,lu);if(g>=2&&(f.hasNodeCheckFlag(ft,256)||f.hasNodeCheckFlag(ft,128))&&(A_(vo)&3)!==3){if(Qn(),O.size){let ya=Vie(n,f,ft,O);U[hl(ya)]=!0;let Ls=ai.statements.slice();Px(Ls,[ya]),ai=n.updateBlock(ai,Ls)}F&&(f.hasNodeCheckFlag(ft,256)?pF(ai,Lne):f.hasNodeCheckFlag(ft,128)&&pF(ai,Rne))}return O=Ht,F=Wr,ai}function Sr(){$.assert(M);let ft=n.createVariableDeclaration(M,void 0,void 0,n.createIdentifier("arguments")),Ht=n.createVariableStatement(void 0,[ft]);return Dm(Ht),CS(Ht,2097152),Ht}function nn(ft){if(hK(ft.parameters))return Rp(ft.parameters,ue,t);let Ht=[];for(let ai of ft.parameters){if(ai.initializer||ai.dotDotDotToken){if(ft.kind===220){let Eo=n.createParameterDeclaration(void 0,n.createToken(26),n.createUniqueName("args",8));Ht.push(Eo)}break}let vo=n.createParameterDeclaration(void 0,void 0,n.getGeneratedNameForNode(ai.name,8));Ht.push(vo)}let Wr=n.createNodeArray(Ht);return qt(Wr,ft.parameters),Wr}function Nn(ft,Ht){let Wr=hK(ft.parameters)?void 0:Rp(ft.parameters,ue,t);c();let vo=Ku(ft,Rs).type,Eo=g<2?Dr(vo):void 0,ya=ft.kind===220,Ls=M,Cn=f.hasNodeCheckFlag(ft,512)&&!M;Cn&&(M=n.createUniqueName("arguments"));let Es;if(Wr)if(ya){let Ct=[];$.assert(Ht.length<=ft.parameters.length);for(let Ot=0;Ot=2&&(f.hasNodeCheckFlag(ft,256)||f.hasNodeCheckFlag(ft,128));if(Ot&&(Qn(),O.size)){let at=Vie(n,f,ft,O);U[hl(at)]=!0,Px(Ct,[at])}Cn&&Px(Ct,[Sr()]);let ar=n.createBlock(Ct,!0);qt(ar,ft.body),Ot&&F&&(f.hasNodeCheckFlag(ft,256)?pF(ar,Lne):f.hasNodeCheckFlag(ft,128)&&pF(ar,Rne)),et=ar}return C=Dt,ya||(O=ur,F=Ee,M=Ls),et}function $t(ft,Ht){return Vs(ft)?n.updateBlock(ft,Bn(ft.statements,De,fa,Ht)):n.converters.convertToFunctionBlock($.checkDefined(At(ft,De,Wte)))}function Dr(ft){let Ht=ft&&NG(ft);if(Ht&&uh(Ht)){let Wr=f.getTypeReferenceSerializationKind(Ht);if(Wr===1||Wr===0)return Ht}}function Qn(){(k&1)===0&&(k|=1,t.enableSubstitution(214),t.enableSubstitution(212),t.enableSubstitution(213),t.enableEmitNotification(264),t.enableEmitNotification(175),t.enableEmitNotification(178),t.enableEmitNotification(179),t.enableEmitNotification(177),t.enableEmitNotification(244))}function Ko(ft,Ht,Wr){if(k&1&&Oi(Ht)){let ai=(f.hasNodeCheckFlag(Ht,128)?128:0)|(f.hasNodeCheckFlag(Ht,256)?256:0);if(ai!==T){let vo=T;T=ai,G(ft,Ht,Wr),T=vo;return}}else if(k&&U[hl(Ht)]){let ai=T;T=0,G(ft,Ht,Wr),T=ai;return}G(ft,Ht,Wr)}function is(ft,Ht){return Ht=Z(ft,Ht),ft===1&&T?sr(Ht):Ht}function sr(ft){switch(ft.kind){case 212:return uo(ft);case 213:return Wa(ft);case 214:return oo(ft)}return ft}function uo(ft){return ft.expression.kind===108?qt(n.createPropertyAccessExpression(n.createUniqueName("_super",48),ft.name),ft):ft}function Wa(ft){return ft.expression.kind===108?$o(ft.argumentExpression,ft):ft}function oo(ft){let Ht=ft.expression;if(_g(Ht)){let Wr=no(Ht)?uo(Ht):Wa(Ht);return n.createCallExpression(n.createPropertyAccessExpression(Wr,"call"),void 0,[n.createThis(),...ft.arguments])}return ft}function Oi(ft){let Ht=ft.kind;return Ht===264||Ht===177||Ht===175||Ht===178||Ht===179}function $o(ft,Ht){return T&256?qt(n.createPropertyAccessExpression(n.createCallExpression(n.createUniqueName("_superIndex",48),void 0,[ft]),"value"),Ht):qt(n.createCallExpression(n.createUniqueName("_superIndex",48),void 0,[ft]),Ht)}}function Vie(t,n,a,c){let u=n.hasNodeCheckFlag(a,256),_=[];return c.forEach((f,y)=>{let g=oa(y),k=[];k.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,Ai(t.createPropertyAccessExpression(Ai(t.createSuper(),8),g),8)))),u&&k.push(t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,t.createAssignment(Ai(t.createPropertyAccessExpression(Ai(t.createSuper(),8),g),8),t.createIdentifier("v"))))),_.push(t.createPropertyAssignment(g,t.createObjectLiteralExpression(k)))}),t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_super",48),void 0,void 0,t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[t.createNull(),t.createObjectLiteralExpression(_,!0)]))],2))}function tOe(t){let{factory:n,getEmitHelperFactory:a,resumeLexicalEnvironment:c,endLexicalEnvironment:u,hoistVariableDeclaration:_}=t,f=t.getEmitResolver(),y=t.getCompilerOptions(),g=$c(y),k=t.onEmitNode;t.onEmitNode=Ls;let T=t.onSubstituteNode;t.onSubstituteNode=yc;let C=!1,O=0,F,M,U=0,J=0,G,Z,Q,re,ae=[];return Cv(t,be);function _e(ye,et){return J!==(J&~ye|et)}function me(ye,et){let Ct=J;return J=(J&~ye|et)&3,Ct}function le(ye){J=ye}function Oe(ye){Z=jt(Z,n.createVariableDeclaration(ye))}function be(ye){if(ye.isDeclarationFile)return ye;G=ye;let et=It(ye);return Ux(et,t.readEmitHelpers()),G=void 0,Z=void 0,et}function ue(ye){return Be(ye,!1)}function De(ye){return Be(ye,!0)}function Ce(ye){if(ye.kind!==134)return ye}function Ae(ye,et,Ct,Ot){if(_e(Ct,Ot)){let ar=me(Ct,Ot),at=ye(et);return le(ar),at}return ye(et)}function Fe(ye){return Dn(ye,ue,t)}function Be(ye,et){if((ye.transformFlags&128)===0)return ye;switch(ye.kind){case 224:return de(ye);case 230:return ze(ye);case 254:return ut(ye);case 257:return je(ye);case 211:return Le(ye);case 227:return _t(ye,et);case 357:return Se(ye,et);case 300:return tt(ye);case 244:return Qe(ye);case 261:return We(ye);case 247:case 248:case 250:return Ae(Fe,ye,0,2);case 251:return nn(ye,void 0);case 249:return Ae(Kt,ye,0,2);case 223:return Sr(ye);case 177:return Ae(uo,ye,2,1);case 175:return Ae(Oi,ye,2,1);case 178:return Ae(Wa,ye,2,1);case 179:return Ae(oo,ye,2,1);case 263:return Ae($o,ye,2,1);case 219:return Ae(Ht,ye,2,1);case 220:return Ae(ft,ye,2,0);case 170:return is(ye);case 245:return Ve(ye);case 218:return nt(ye,et);case 216:return ke(ye);case 212:return Q&&no(ye)&&ye.expression.kind===108&&Q.add(ye.name.escapedText),Dn(ye,ue,t);case 213:return Q&&ye.expression.kind===108&&(re=!0),Dn(ye,ue,t);case 264:case 232:return Ae(Fe,ye,2,1);default:return Dn(ye,ue,t)}}function de(ye){return F&2&&F&1?Yi(qt(n.createYieldExpression(void 0,a().createAwaitHelper(At(ye.expression,ue,Vt))),ye),ye):Dn(ye,ue,t)}function ze(ye){if(F&2&&F&1){if(ye.asteriskToken){let et=At($.checkDefined(ye.expression),ue,Vt);return Yi(qt(n.createYieldExpression(void 0,a().createAwaitHelper(n.updateYieldExpression(ye,ye.asteriskToken,qt(a().createAsyncDelegatorHelper(qt(a().createAsyncValuesHelper(et),et)),et)))),ye),ye)}return Yi(qt(n.createYieldExpression(void 0,Dr(ye.expression?At(ye.expression,ue,Vt):n.createVoidZero())),ye),ye)}return Dn(ye,ue,t)}function ut(ye){return F&2&&F&1?n.updateReturnStatement(ye,Dr(ye.expression?At(ye.expression,ue,Vt):n.createVoidZero())):Dn(ye,ue,t)}function je(ye){if(F&2){let et=jme(ye);return et.kind===251&&et.awaitModifier?nn(et,ye):n.restoreEnclosingLabel(At(et,ue,fa,n.liftToBlock),ye)}return Dn(ye,ue,t)}function ve(ye){let et,Ct=[];for(let Ot of ye)if(Ot.kind===306){et&&(Ct.push(n.createObjectLiteralExpression(et)),et=void 0);let ar=Ot.expression;Ct.push(At(ar,ue,Vt))}else et=jt(et,Ot.kind===304?n.createPropertyAssignment(Ot.name,At(Ot.initializer,ue,Vt)):At(Ot,ue,MT));return et&&Ct.push(n.createObjectLiteralExpression(et)),Ct}function Le(ye){if(ye.transformFlags&65536){let et=ve(ye.properties);et.length&&et[0].kind!==211&&et.unshift(n.createObjectLiteralExpression());let Ct=et[0];if(et.length>1){for(let Ot=1;Ot=2&&(f.hasNodeCheckFlag(ye,256)||f.hasNodeCheckFlag(ye,128));if(Qt){ya();let Et=Vie(n,f,ye,Q);ae[hl(Et)]=!0,Px(ar,[Et])}ar.push(Zt);let pr=n.updateBlock(ye.body,ar);return Qt&&re&&(f.hasNodeCheckFlag(ye,256)?pF(pr,Lne):f.hasNodeCheckFlag(ye,128)&&pF(pr,Rne)),Q=Ct,re=Ot,pr}function vo(ye){c();let et=0,Ct=[],Ot=At(ye.body,ue,Wte)??n.createBlock([]);Vs(Ot)&&(et=n.copyPrologue(Ot.statements,Ct,!1,ue)),En(Ct,Eo(void 0,ye));let ar=u();if(et>0||Pt(Ct)||Pt(ar)){let at=n.converters.convertToFunctionBlock(Ot,!0);return Px(Ct,ar),En(Ct,at.statements.slice(et)),n.updateBlock(at,qt(n.createNodeArray(Ct),at.statements))}return Ot}function Eo(ye,et){let Ct=!1;for(let Ot of et.parameters)if(Ct){if($s(Ot.name)){if(Ot.name.elements.length>0){let ar=AP(Ot,ue,t,0,n.getGeneratedNameForNode(Ot));if(Pt(ar)){let at=n.createVariableDeclarationList(ar),Zt=n.createVariableStatement(void 0,at);Ai(Zt,2097152),ye=jt(ye,Zt)}}else if(Ot.initializer){let ar=n.getGeneratedNameForNode(Ot),at=At(Ot.initializer,ue,Vt),Zt=n.createAssignment(ar,at),Qt=n.createExpressionStatement(Zt);Ai(Qt,2097152),ye=jt(ye,Qt)}}else if(Ot.initializer){let ar=n.cloneNode(Ot.name);qt(ar,Ot.name),Ai(ar,96);let at=At(Ot.initializer,ue,Vt);CS(at,3168);let Zt=n.createAssignment(ar,at);qt(Zt,Ot),Ai(Zt,3072);let Qt=n.createBlock([n.createExpressionStatement(Zt)]);qt(Qt,Ot),Ai(Qt,3905);let pr=n.createTypeCheck(n.cloneNode(Ot.name),"undefined"),Et=n.createIfStatement(pr,Qt);Dm(Et),qt(Et,Ot),Ai(Et,2101056),ye=jt(ye,Et)}}else if(Ot.transformFlags&65536){Ct=!0;let ar=AP(Ot,ue,t,1,n.getGeneratedNameForNode(Ot),!1,!0);if(Pt(ar)){let at=n.createVariableDeclarationList(ar),Zt=n.createVariableStatement(void 0,at);Ai(Zt,2097152),ye=jt(ye,Zt)}}return ye}function ya(){(O&1)===0&&(O|=1,t.enableSubstitution(214),t.enableSubstitution(212),t.enableSubstitution(213),t.enableEmitNotification(264),t.enableEmitNotification(175),t.enableEmitNotification(178),t.enableEmitNotification(179),t.enableEmitNotification(177),t.enableEmitNotification(244))}function Ls(ye,et,Ct){if(O&1&&Ee(et)){let Ot=(f.hasNodeCheckFlag(et,128)?128:0)|(f.hasNodeCheckFlag(et,256)?256:0);if(Ot!==U){let ar=U;U=Ot,k(ye,et,Ct),U=ar;return}}else if(O&&ae[hl(et)]){let Ot=U;U=0,k(ye,et,Ct),U=Ot;return}k(ye,et,Ct)}function yc(ye,et){return et=T(ye,et),ye===1&&U?Cn(et):et}function Cn(ye){switch(ye.kind){case 212:return Es(ye);case 213:return Dt(ye);case 214:return ur(ye)}return ye}function Es(ye){return ye.expression.kind===108?qt(n.createPropertyAccessExpression(n.createUniqueName("_super",48),ye.name),ye):ye}function Dt(ye){return ye.expression.kind===108?Bt(ye.argumentExpression,ye):ye}function ur(ye){let et=ye.expression;if(_g(et)){let Ct=no(et)?Es(et):Dt(et);return n.createCallExpression(n.createPropertyAccessExpression(Ct,"call"),void 0,[n.createThis(),...ye.arguments])}return ye}function Ee(ye){let et=ye.kind;return et===264||et===177||et===175||et===178||et===179}function Bt(ye,et){return U&256?qt(n.createPropertyAccessExpression(n.createCallExpression(n.createIdentifier("_superIndex"),void 0,[ye]),"value"),et):qt(n.createCallExpression(n.createIdentifier("_superIndex"),void 0,[ye]),et)}}function rOe(t){let n=t.factory;return Cv(t,a);function a(_){return _.isDeclarationFile?_:Dn(_,c,t)}function c(_){return(_.transformFlags&64)===0?_:_.kind===300?u(_):Dn(_,c,t)}function u(_){return _.variableDeclaration?Dn(_,c,t):n.updateCatchClause(_,n.createVariableDeclaration(n.createTempVariable(void 0)),At(_.block,c,Vs))}}function nOe(t){let{factory:n,hoistVariableDeclaration:a}=t;return Cv(t,c);function c(M){return M.isDeclarationFile?M:Dn(M,u,t)}function u(M){if((M.transformFlags&32)===0)return M;switch(M.kind){case 214:{let U=g(M,!1);return $.assertNotNode(U,xF),U}case 212:case 213:if(xm(M)){let U=T(M,!1,!1);return $.assertNotNode(U,xF),U}return Dn(M,u,t);case 227:return M.operatorToken.kind===61?O(M):Dn(M,u,t);case 221:return F(M);default:return Dn(M,u,t)}}function _(M){$.assertNotNode(M,$te);let U=[M];for(;!M.questionDotToken&&!xA(M);)M=Ba(q1(M.expression),xm),$.assertNotNode(M,$te),U.unshift(M);return{expression:M.expression,chain:U}}function f(M,U,J){let G=k(M.expression,U,J);return xF(G)?n.createSyntheticReferenceExpression(n.updateParenthesizedExpression(M,G.expression),G.thisArg):n.updateParenthesizedExpression(M,G)}function y(M,U,J){if(xm(M))return T(M,U,J);let G=At(M.expression,u,Vt);$.assertNotNode(G,xF);let Z;return U&&(DP(G)?Z=G:(Z=n.createTempVariable(a),G=n.createAssignment(Z,G))),G=M.kind===212?n.updatePropertyAccessExpression(M,G,At(M.name,u,ct)):n.updateElementAccessExpression(M,G,At(M.argumentExpression,u,Vt)),Z?n.createSyntheticReferenceExpression(G,Z):G}function g(M,U){if(xm(M))return T(M,U,!1);if(mh(M.expression)&&xm(bl(M.expression))){let J=f(M.expression,!0,!1),G=Bn(M.arguments,u,Vt);return xF(J)?qt(n.createFunctionCallCall(J.expression,J.thisArg,G),M):n.updateCallExpression(M,J,void 0,G)}return Dn(M,u,t)}function k(M,U,J){switch(M.kind){case 218:return f(M,U,J);case 212:case 213:return y(M,U,J);case 214:return g(M,U);default:return At(M,u,Vt)}}function T(M,U,J){let{expression:G,chain:Z}=_(M),Q=k(q1(G),O4(Z[0]),!1),re=xF(Q)?Q.thisArg:void 0,ae=xF(Q)?Q.expression:Q,_e=n.restoreOuterExpressions(G,ae,8);DP(ae)||(ae=n.createTempVariable(a),_e=n.createAssignment(ae,_e));let me=ae,le;for(let be=0;beBe&&En(de,Bn(Ae.statements,C,fa,Be,ze-Be));break}ze++}$.assert(zeJ(de,Be))))],Be,Fe===2)}return Dn(Ae,C,t)}function Z(Ae,Fe,Be,de,ze){let ut=[];for(let Le=Fe;Len&&(n=c)}return n}function ysr(t){let n=0;for(let a of t){let c=u0e(a.statements);if(c===2)return 2;c>n&&(n=c)}return n}function cOe(t){let{factory:n,getEmitHelperFactory:a}=t,c=t.getCompilerOptions(),u,_;return Cv(t,C);function f(){if(_.filenameDeclaration)return _.filenameDeclaration.name;let ke=n.createVariableDeclaration(n.createUniqueName("_jsxFileName",48),void 0,void 0,n.createStringLiteral(u.fileName));return _.filenameDeclaration=ke,_.filenameDeclaration.name}function y(ke){return c.jsx===5?"jsxDEV":ke?"jsxs":"jsx"}function g(ke){let _t=y(ke);return T(_t)}function k(){return T("Fragment")}function T(ke){var _t,Se;let tt=ke==="createElement"?_.importSpecifier:une(_.importSpecifier,c),Qe=(Se=(_t=_.utilizedImplicitRuntimeImports)==null?void 0:_t.get(tt))==null?void 0:Se.get(ke);if(Qe)return Qe.name;_.utilizedImplicitRuntimeImports||(_.utilizedImplicitRuntimeImports=new Map);let We=_.utilizedImplicitRuntimeImports.get(tt);We||(We=new Map,_.utilizedImplicitRuntimeImports.set(tt,We));let St=n.createUniqueName(`_${ke}`,112),Kt=n.createImportSpecifier(!1,n.createIdentifier(ke),St);return C3e(St,Kt),We.set(ke,Kt),St}function C(ke){if(ke.isDeclarationFile)return ke;u=ke,_={},_.importSpecifier=yH(c,ke);let _t=Dn(ke,O,t);Ux(_t,t.readEmitHelpers());let Se=_t.statements;if(_.filenameDeclaration&&(Se=B4(Se.slice(),n.createVariableStatement(void 0,n.createVariableDeclarationList([_.filenameDeclaration],2)))),_.utilizedImplicitRuntimeImports){for(let[tt,Qe]of so(_.utilizedImplicitRuntimeImports.entries()))if(yd(ke)){let We=n.createImportDeclaration(void 0,n.createImportClause(void 0,void 0,n.createNamedImports(so(Qe.values()))),n.createStringLiteral(tt),void 0);vA(We,!1),Se=B4(Se.slice(),We)}else if(Lg(ke)){let We=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createObjectBindingPattern(so(Qe.values(),St=>n.createBindingElement(void 0,St.propertyName,St.name))),void 0,void 0,n.createCallExpression(n.createIdentifier("require"),void 0,[n.createStringLiteral(tt)]))],2));vA(We,!1),Se=B4(Se.slice(),We)}}return Se!==_t.statements&&(_t=n.updateSourceFile(_t,Se)),_=void 0,_t}function O(ke){return ke.transformFlags&2?F(ke):ke}function F(ke){switch(ke.kind){case 285:return Z(ke,!1);case 286:return Q(ke,!1);case 289:return re(ke,!1);case 295:return It(ke);default:return Dn(ke,O,t)}}function M(ke){switch(ke.kind){case 12:return ze(ke);case 295:return It(ke);case 285:return Z(ke,!0);case 286:return Q(ke,!0);case 289:return re(ke,!0);default:return $.failBadSyntaxKind(ke)}}function U(ke){return ke.properties.some(_t=>td(_t)&&(ct(_t.name)&&Zi(_t.name)==="__proto__"||Ic(_t.name)&&_t.name.text==="__proto__"))}function J(ke){let _t=!1;for(let Se of ke.attributes.properties)if(TF(Se)&&(!Lc(Se.expression)||Se.expression.properties.some(qx)))_t=!0;else if(_t&&NS(Se)&&ct(Se.name)&&Se.name.escapedText==="key")return!0;return!1}function G(ke){return _.importSpecifier===void 0||J(ke)}function Z(ke,_t){return(G(ke.openingElement)?Oe:me)(ke.openingElement,ke.children,_t,ke)}function Q(ke,_t){return(G(ke)?Oe:me)(ke,void 0,_t,ke)}function re(ke,_t){return(_.importSpecifier===void 0?ue:be)(ke.openingFragment,ke.children,_t,ke)}function ae(ke){let _t=_e(ke);return _t&&n.createObjectLiteralExpression([_t])}function _e(ke){let _t=YR(ke);if(te(_t)===1&&!_t[0].dotDotDotToken){let tt=M(_t[0]);return tt&&n.createPropertyAssignment("children",tt)}let Se=Wn(ke,M);return te(Se)?n.createPropertyAssignment("children",n.createArrayLiteralExpression(Se)):void 0}function me(ke,_t,Se,tt){let Qe=Ve(ke),We=_t&&_t.length?_e(_t):void 0,St=wt(ke.attributes.properties,nn=>!!nn.name&&ct(nn.name)&&nn.name.escapedText==="key"),Kt=St?yr(ke.attributes.properties,nn=>nn!==St):ke.attributes.properties,Sr=te(Kt)?Ce(Kt,We):n.createObjectLiteralExpression(We?[We]:j);return le(Qe,Sr,St,_t||j,Se,tt)}function le(ke,_t,Se,tt,Qe,We){var St;let Kt=YR(tt),Sr=te(Kt)>1||!!((St=Kt[0])!=null&&St.dotDotDotToken),nn=[ke,_t];if(Se&&nn.push(de(Se.initializer)),c.jsx===5){let $t=Ku(u);if($t&&Ta($t)){Se===void 0&&nn.push(n.createVoidZero()),nn.push(Sr?n.createTrue():n.createFalse());let Dr=qs($t,We.pos);nn.push(n.createObjectLiteralExpression([n.createPropertyAssignment("fileName",f()),n.createPropertyAssignment("lineNumber",n.createNumericLiteral(Dr.line+1)),n.createPropertyAssignment("columnNumber",n.createNumericLiteral(Dr.character+1))])),nn.push(n.createThis())}}let Nn=qt(n.createCallExpression(g(Sr),void 0,nn),We);return Qe&&Dm(Nn),Nn}function Oe(ke,_t,Se,tt){let Qe=Ve(ke),We=ke.attributes.properties,St=te(We)?Ce(We):n.createNull(),Kt=_.importSpecifier===void 0?Wge(n,t.getEmitResolver().getJsxFactoryEntity(u),c.reactNamespace,ke):T("createElement"),Sr=aNe(n,Kt,Qe,St,Wn(_t,M),tt);return Se&&Dm(Sr),Sr}function be(ke,_t,Se,tt){let Qe;if(_t&&_t.length){let We=ae(_t);We&&(Qe=We)}return le(k(),Qe||n.createObjectLiteralExpression([]),void 0,_t,Se,tt)}function ue(ke,_t,Se,tt){let Qe=sNe(n,t.getEmitResolver().getJsxFactoryEntity(u),t.getEmitResolver().getJsxFragmentFactoryEntity(u),c.reactNamespace,Wn(_t,M),ke,tt);return Se&&Dm(Qe),Qe}function De(ke){return Lc(ke.expression)&&!U(ke.expression)?Zo(ke.expression.properties,_t=>$.checkDefined(At(_t,O,MT))):n.createSpreadAssignment($.checkDefined(At(ke.expression,O,Vt)))}function Ce(ke,_t){let Se=$c(c);return Se&&Se>=5?n.createObjectLiteralExpression(Ae(ke,_t)):Fe(ke,_t)}function Ae(ke,_t){let Se=Rc(Wu(ke,TF,(tt,Qe)=>Rc(Cr(tt,We=>Qe?De(We):Be(We)))));return _t&&Se.push(_t),Se}function Fe(ke,_t){let Se=[],tt=[];for(let We of ke){if(TF(We)){if(Lc(We.expression)&&!U(We.expression)){for(let St of We.expression.properties){if(qx(St)){Qe(),Se.push($.checkDefined(At(St.expression,O,Vt)));continue}tt.push($.checkDefined(At(St,O)))}continue}Qe(),Se.push($.checkDefined(At(We.expression,O,Vt)));continue}tt.push(Be(We))}return _t&&tt.push(_t),Qe(),Se.length&&!Lc(Se[0])&&Se.unshift(n.createObjectLiteralExpression()),to(Se)||a().createAssignHelper(Se);function Qe(){tt.length&&(Se.push(n.createObjectLiteralExpression(tt)),tt=[])}}function Be(ke){let _t=nt(ke),Se=de(ke.initializer);return n.createPropertyAssignment(_t,Se)}function de(ke){if(ke===void 0)return n.createTrue();if(ke.kind===11){let _t=ke.singleQuote!==void 0?ke.singleQuote:!Dre(ke,u),Se=n.createStringLiteral(Le(ke.text)||ke.text,_t);return qt(Se,ke)}return ke.kind===295?ke.expression===void 0?n.createTrue():$.checkDefined(At(ke.expression,O,Vt)):PS(ke)?Z(ke,!1):u3(ke)?Q(ke,!1):DA(ke)?re(ke,!1):$.failBadSyntaxKind(ke)}function ze(ke){let _t=ut(ke.text);return _t===void 0?void 0:n.createStringLiteral(_t)}function ut(ke){let _t,Se=0,tt=-1;for(let Qe=0;Qe{if(We)return Gk(parseInt(We,10));if(St)return Gk(parseInt(St,16));{let Sr=vsr.get(Kt);return Sr?Gk(Sr):_t}})}function Le(ke){let _t=ve(ke);return _t===ke?void 0:_t}function Ve(ke){if(ke.kind===285)return Ve(ke.openingElement);{let _t=ke.tagName;return ct(_t)&&eL(_t.escapedText)?n.createStringLiteral(Zi(_t)):Ev(_t)?n.createStringLiteral(Zi(_t.namespace)+":"+Zi(_t.name)):JH(n,_t)}}function nt(ke){let _t=ke.name;if(ct(_t)){let Se=Zi(_t);return/^[A-Z_]\w*$/i.test(Se)?_t:n.createStringLiteral(Se)}return n.createStringLiteral(Zi(_t.namespace)+":"+Zi(_t.name))}function It(ke){let _t=At(ke.expression,O,Vt);return ke.dotDotDotToken?n.createSpreadElement(_t):_t}}var vsr=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}));function lOe(t){let{factory:n,hoistVariableDeclaration:a}=t;return Cv(t,c);function c(g){return g.isDeclarationFile?g:Dn(g,u,t)}function u(g){return(g.transformFlags&512)===0?g:g.kind===227?_(g):Dn(g,u,t)}function _(g){switch(g.operatorToken.kind){case 68:return f(g);case 43:return y(g);default:return Dn(g,u,t)}}function f(g){let k,T,C=At(g.left,u,Vt),O=At(g.right,u,Vt);if(mu(C)){let F=n.createTempVariable(a),M=n.createTempVariable(a);k=qt(n.createElementAccessExpression(qt(n.createAssignment(F,C.expression),C.expression),qt(n.createAssignment(M,C.argumentExpression),C.argumentExpression)),C),T=qt(n.createElementAccessExpression(F,M),C)}else if(no(C)){let F=n.createTempVariable(a);k=qt(n.createPropertyAccessExpression(qt(n.createAssignment(F,C.expression),C.expression),C.name),C),T=qt(n.createPropertyAccessExpression(F,C.name),C)}else k=C,T=C;return qt(n.createAssignment(k,qt(n.createGlobalMethodCall("Math","pow",[T,O]),g)),g)}function y(g){let k=At(g.left,u,Vt),T=At(g.right,u,Vt);return qt(n.createGlobalMethodCall("Math","pow",[k,T]),g)}}function C_t(t,n){return{kind:t,expression:n}}function uOe(t){let{factory:n,getEmitHelperFactory:a,startLexicalEnvironment:c,resumeLexicalEnvironment:u,endLexicalEnvironment:_,hoistVariableDeclaration:f}=t,y=t.getCompilerOptions(),g=t.getEmitResolver(),k=t.onSubstituteNode,T=t.onEmitNode;t.onEmitNode=uf,t.onSubstituteNode=D0;let C,O,F,M;function U(xe){M=jt(M,n.createVariableDeclaration(xe))}let J,G=0;return Cv(t,Z);function Z(xe){if(xe.isDeclarationFile)return xe;C=xe,O=xe.text;let Ft=Ce(xe);return Ux(Ft,t.readEmitHelpers()),C=void 0,O=void 0,M=void 0,F=0,Ft}function Q(xe,Ft){let Nr=F;return F=(F&~xe|Ft)&32767,Nr}function re(xe,Ft,Nr){F=(F&~Ft|Nr)&-32768|xe}function ae(xe){return(F&8192)!==0&&xe.kind===254&&!xe.expression}function _e(xe){return xe.transformFlags&4194304&&(gy(xe)||EA(xe)||J3e(xe)||pz(xe)||_z(xe)||bL(xe)||dz(xe)||c3(xe)||TP(xe)||bC(xe)||rC(xe,!1)||Vs(xe))}function me(xe){return(xe.transformFlags&1024)!==0||J!==void 0||F&8192&&_e(xe)||rC(xe,!1)&&$a(xe)||(J1(xe)&1)!==0}function le(xe){return me(xe)?De(xe,!1):xe}function Oe(xe){return me(xe)?De(xe,!0):xe}function be(xe){if(me(xe)){let Ft=Ku(xe);if(ps(Ft)&&fd(Ft)){let Nr=Q(32670,16449),Mr=De(xe,!1);return re(Nr,229376,0),Mr}return De(xe,!1)}return xe}function ue(xe){return xe.kind===108?vy(xe,!0):le(xe)}function De(xe,Ft){switch(xe.kind){case 126:return;case 264:return Ve(xe);case 232:return nt(xe);case 170:return yc(xe);case 263:return xr(xe);case 220:return pr(xe);case 219:return Et(xe);case 261:return Rn(xe);case 80:return ve(xe);case 262:return Ge(xe);case 256:return Ae(xe);case 270:return Fe(xe);case 242:return er(xe,!1);case 253:case 252:return Le(xe);case 257:return rr(xe);case 247:case 248:return pn(xe,void 0);case 249:return tn(xe,void 0);case 250:return cn(xe,void 0);case 251:return gn(xe,void 0);case 245:return Ne(xe);case 211:return ec(xe);case 300:return ua(xe);case 305:return ep(xe);case 168:return W_(xe);case 210:return xu(xe);case 214:return a_(xe);case 215:return yy(xe);case 218:return Y(xe,Ft);case 227:return ot(xe,Ft);case 357:return pe(xe,Ft);case 15:case 16:case 17:case 18:return tl(xe);case 11:return Uc(xe);case 9:return nd(xe);case 216:return Mu(xe);case 229:return Dp(xe);case 230:return g_(xe);case 231:return el(xe);case 108:return vy(xe,!1);case 110:return ut(xe);case 237:return If(xe);case 175:return Bl(xe);case 178:case 179:return xc(xe);case 244:return mr(xe);case 254:return ze(xe);case 223:return je(xe);default:return Dn(xe,le,t)}}function Ce(xe){let Ft=Q(8064,64),Nr=[],Mr=[];c();let wn=n.copyPrologue(xe.statements,Nr,!1,le);return En(Mr,Bn(xe.statements,le,fa,wn)),M&&Mr.push(n.createVariableStatement(void 0,n.createVariableDeclarationList(M))),n.mergeLexicalEnvironment(Nr,_()),ye(Nr,xe),re(Ft,0,0),n.updateSourceFile(xe,qt(n.createNodeArray(go(Nr,Mr)),xe.statements))}function Ae(xe){if(J!==void 0){let Ft=J.allowedNonLabeledJumps;J.allowedNonLabeledJumps|=2;let Nr=Dn(xe,le,t);return J.allowedNonLabeledJumps=Ft,Nr}return Dn(xe,le,t)}function Fe(xe){let Ft=Q(7104,0),Nr=Dn(xe,le,t);return re(Ft,0,0),Nr}function Be(xe){return Yi(n.createReturnStatement(de()),xe)}function de(){return n.createUniqueName("_this",48)}function ze(xe){return J?(J.nonLocalJumps|=8,ae(xe)&&(xe=Be(xe)),n.createReturnStatement(n.createObjectLiteralExpression([n.createPropertyAssignment(n.createIdentifier("value"),xe.expression?$.checkDefined(At(xe.expression,le,Vt)):n.createVoidZero())]))):ae(xe)?Be(xe):Dn(xe,le,t)}function ut(xe){return F|=65536,F&2&&!(F&16384)&&(F|=131072),J?F&2?(J.containsLexicalThis=!0,xe):J.thisName||(J.thisName=n.createUniqueName("this")):xe}function je(xe){return Dn(xe,Oe,t)}function ve(xe){return J&&g.isArgumentsLocalBinding(xe)?J.argumentsName||(J.argumentsName=n.createUniqueName("arguments")):xe.flags&256?Yi(qt(n.createIdentifier(oa(xe.escapedText)),xe),xe):xe}function Le(xe){if(J){let Ft=xe.kind===253?2:4;if(!(xe.label&&J.labels&&J.labels.get(Zi(xe.label))||!xe.label&&J.allowedNonLabeledJumps&Ft)){let Mr,wn=xe.label;wn?xe.kind===253?(Mr=`break-${wn.escapedText}`,st(J,!0,Zi(wn),Mr)):(Mr=`continue-${wn.escapedText}`,st(J,!1,Zi(wn),Mr)):xe.kind===253?(J.nonLocalJumps|=2,Mr="break"):(J.nonLocalJumps|=4,Mr="continue");let Yn=n.createStringLiteral(Mr);if(J.loopOutParameters.length){let fo=J.loopOutParameters,Mo;for(let Ea=0;Eact(Ft.name)&&!Ft.initializer)}function St(xe){if(U4(xe))return!0;if(!(xe.transformFlags&134217728))return!1;switch(xe.kind){case 220:case 219:case 263:case 177:case 176:return!1;case 178:case 179:case 175:case 173:{let Ft=xe;return dc(Ft.name)?!!Is(Ft.name,St):!1}}return!!Is(xe,St)}function Kt(xe,Ft,Nr,Mr){let wn=!!Nr&&Wp(Nr.expression).kind!==106;if(!xe)return Qe(Ft,wn);let Yn=[],fo=[];u();let Mo=n.copyStandardPrologue(xe.body.statements,Yn,0);(Mr||St(xe.body))&&(F|=8192),En(fo,Bn(xe.body.statements,le,fa,Mo));let Ea=wn||F&8192;Es(Yn,xe),Bt(Yn,xe,Mr),Ct(Yn,xe),Ea?et(Yn,xe,ya()):ye(Yn,xe),n.mergeLexicalEnvironment(Yn,_()),Ea&&!Eo(xe.body)&&fo.push(n.createReturnStatement(de()));let ee=n.createBlock(qt(n.createNodeArray([...Yn,...fo]),xe.body.statements),!0);return qt(ee,xe.body),vo(ee,xe.body,Mr)}function Sr(xe){return ap(xe)&&Zi(xe)==="_this"}function nn(xe){return ap(xe)&&Zi(xe)==="_super"}function Nn(xe){return h_(xe)&&xe.declarationList.declarations.length===1&&$t(xe.declarationList.declarations[0])}function $t(xe){return Oo(xe)&&Sr(xe.name)&&!!xe.initializer}function Dr(xe){return of(xe,!0)&&Sr(xe.left)}function Qn(xe){return Js(xe)&&no(xe.expression)&&nn(xe.expression.expression)&&ct(xe.expression.name)&&(Zi(xe.expression.name)==="call"||Zi(xe.expression.name)==="apply")&&xe.arguments.length>=1&&xe.arguments[0].kind===110}function Ko(xe){return wi(xe)&&xe.operatorToken.kind===57&&xe.right.kind===110&&Qn(xe.left)}function is(xe){return wi(xe)&&xe.operatorToken.kind===56&&wi(xe.left)&&xe.left.operatorToken.kind===38&&nn(xe.left.left)&&xe.left.right.kind===106&&Qn(xe.right)&&Zi(xe.right.expression.name)==="apply"}function sr(xe){return wi(xe)&&xe.operatorToken.kind===57&&xe.right.kind===110&&is(xe.left)}function uo(xe){return Dr(xe)&&Ko(xe.right)}function Wa(xe){return Dr(xe)&&sr(xe.right)}function oo(xe){return Qn(xe)||Ko(xe)||uo(xe)||is(xe)||sr(xe)||Wa(xe)}function Oi(xe){for(let Ft=0;Ft0;Mr--){let wn=xe.statements[Mr];if(gy(wn)&&wn.expression&&Sr(wn.expression)){let Yn=xe.statements[Mr-1],fo;if(af(Yn)&&uo(Wp(Yn.expression)))fo=Yn.expression;else if(Nr&&Nn(Yn)){let ee=Yn.declarationList.declarations[0];oo(Wp(ee.initializer))&&(fo=n.createAssignment(de(),ee.initializer))}if(!fo)break;let Mo=n.createReturnStatement(fo);Yi(Mo,Yn),qt(Mo,Yn);let Ea=n.createNodeArray([...xe.statements.slice(0,Mr-1),Mo,...xe.statements.slice(Mr+1)]);return qt(Ea,xe.statements),n.updateBlock(xe,Ea)}}return xe}function ft(xe){if(Nn(xe)){if(xe.declarationList.declarations[0].initializer.kind===110)return}else if(Dr(xe))return n.createPartiallyEmittedExpression(xe.right,xe);switch(xe.kind){case 220:case 219:case 263:case 177:case 176:return xe;case 178:case 179:case 175:case 173:{let Ft=xe;return dc(Ft.name)?n.replacePropertyName(Ft,Dn(Ft.name,ft,void 0)):xe}}return Dn(xe,ft,void 0)}function Ht(xe,Ft){if(Ft.transformFlags&16384||F&65536||F&131072)return xe;for(let Nr of Ft.statements)if(Nr.transformFlags&134217728&&!jie(Nr))return xe;return n.updateBlock(xe,Bn(xe.statements,ft,fa))}function Wr(xe){if(Qn(xe)&&xe.arguments.length===2&&ct(xe.arguments[1])&&Zi(xe.arguments[1])==="arguments")return n.createLogicalAnd(n.createStrictInequality(Kp(),n.createNull()),xe);switch(xe.kind){case 220:case 219:case 263:case 177:case 176:return xe;case 178:case 179:case 175:case 173:{let Ft=xe;return dc(Ft.name)?n.replacePropertyName(Ft,Dn(Ft.name,Wr,void 0)):xe}}return Dn(xe,Wr,void 0)}function ai(xe){return n.updateBlock(xe,Bn(xe.statements,Wr,fa))}function vo(xe,Ft,Nr){let Mr=xe;return xe=Oi(xe),xe=$o(xe,Ft),xe!==Mr&&(xe=Ht(xe,Ft)),Nr&&(xe=ai(xe)),xe}function Eo(xe){if(xe.kind===254)return!0;if(xe.kind===246){let Ft=xe;if(Ft.elseStatement)return Eo(Ft.thenStatement)&&Eo(Ft.elseStatement)}else if(xe.kind===242){let Ft=Yr(xe.statements);if(Ft&&Eo(Ft))return!0}return!1}function ya(){return Ai(n.createThis(),8)}function Ls(){return n.createLogicalOr(n.createLogicalAnd(n.createStrictInequality(Kp(),n.createNull()),n.createFunctionApplyCall(Kp(),ya(),n.createIdentifier("arguments"))),ya())}function yc(xe){if(!xe.dotDotDotToken)return $s(xe.name)?Yi(qt(n.createParameterDeclaration(void 0,void 0,n.getGeneratedNameForNode(xe),void 0,void 0,void 0),xe),xe):xe.initializer?Yi(qt(n.createParameterDeclaration(void 0,void 0,xe.name,void 0,void 0,void 0),xe),xe):xe}function Cn(xe){return xe.initializer!==void 0||$s(xe.name)}function Es(xe,Ft){if(!Pt(Ft.parameters,Cn))return!1;let Nr=!1;for(let Mr of Ft.parameters){let{name:wn,initializer:Yn,dotDotDotToken:fo}=Mr;fo||($s(wn)?Nr=Dt(xe,Mr,wn,Yn)||Nr:Yn&&(ur(xe,Mr,wn,Yn),Nr=!0))}return Nr}function Dt(xe,Ft,Nr,Mr){return Nr.elements.length>0?(B4(xe,Ai(n.createVariableStatement(void 0,n.createVariableDeclarationList(AP(Ft,le,t,0,n.getGeneratedNameForNode(Ft)))),2097152)),!0):Mr?(B4(xe,Ai(n.createExpressionStatement(n.createAssignment(n.getGeneratedNameForNode(Ft),$.checkDefined(At(Mr,le,Vt)))),2097152)),!0):!1}function ur(xe,Ft,Nr,Mr){Mr=$.checkDefined(At(Mr,le,Vt));let wn=n.createIfStatement(n.createTypeCheck(n.cloneNode(Nr),"undefined"),Ai(qt(n.createBlock([n.createExpressionStatement(Ai(qt(n.createAssignment(Ai(xl(qt(n.cloneNode(Nr),Nr),Nr.parent),96),Ai(Mr,96|Xc(Mr)|3072)),Ft),3072))]),Ft),3905));Dm(wn),qt(wn,Ft),Ai(wn,2101056),B4(xe,wn)}function Ee(xe,Ft){return!!(xe&&xe.dotDotDotToken&&!Ft)}function Bt(xe,Ft,Nr){let Mr=[],wn=Yr(Ft.parameters);if(!Ee(wn,Nr))return!1;let Yn=wn.name.kind===80?xl(qt(n.cloneNode(wn.name),wn.name),wn.name.parent):n.createTempVariable(void 0);Ai(Yn,96);let fo=wn.name.kind===80?n.cloneNode(wn.name):Yn,Mo=Ft.parameters.length-1,Ea=n.createLoopVariable();Mr.push(Ai(qt(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Yn,void 0,void 0,n.createArrayLiteralExpression([]))])),wn),2097152));let ee=n.createForStatement(qt(n.createVariableDeclarationList([n.createVariableDeclaration(Ea,void 0,void 0,n.createNumericLiteral(Mo))]),wn),qt(n.createLessThan(Ea,n.createPropertyAccessExpression(n.createIdentifier("arguments"),"length")),wn),qt(n.createPostfixIncrement(Ea),wn),n.createBlock([Dm(qt(n.createExpressionStatement(n.createAssignment(n.createElementAccessExpression(fo,Mo===0?Ea:n.createSubtract(Ea,n.createNumericLiteral(Mo))),n.createElementAccessExpression(n.createIdentifier("arguments"),Ea))),wn))]));return Ai(ee,2097152),Dm(ee),Mr.push(ee),wn.name.kind!==80&&Mr.push(Ai(qt(n.createVariableStatement(void 0,n.createVariableDeclarationList(AP(wn,le,t,0,fo))),wn),2097152)),Sme(xe,Mr),!0}function ye(xe,Ft){return F&131072&&Ft.kind!==220?(et(xe,Ft,n.createThis()),!0):!1}function et(xe,Ft,Nr){Ym();let Mr=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(de(),void 0,void 0,Nr)]));Ai(Mr,2100224),Jc(Mr,Ft),B4(xe,Mr)}function Ct(xe,Ft){if(F&32768){let Nr;switch(Ft.kind){case 220:return xe;case 175:case 178:case 179:Nr=n.createVoidZero();break;case 177:Nr=n.createPropertyAccessExpression(Ai(n.createThis(),8),"constructor");break;case 263:case 219:Nr=n.createConditionalExpression(n.createLogicalAnd(Ai(n.createThis(),8),n.createBinaryExpression(Ai(n.createThis(),8),104,n.getLocalName(Ft))),void 0,n.createPropertyAccessExpression(Ai(n.createThis(),8),"constructor"),void 0,n.createVoidZero());break;default:return $.failBadSyntaxKind(Ft)}let Mr=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createUniqueName("_newTarget",48),void 0,void 0,Nr)]));Ai(Mr,2100224),B4(xe,Mr)}return xe}function Ot(xe,Ft){for(let Nr of Ft.members)switch(Nr.kind){case 241:xe.push(ar(Nr));break;case 175:xe.push(at(Hy(Ft,Nr),Nr,Ft));break;case 178:case 179:let Mr=uP(Ft.members,Nr);Nr===Mr.firstAccessor&&xe.push(Zt(Hy(Ft,Nr),Mr,Ft));break;case 177:case 176:break;default:$.failBadSyntaxKind(Nr,C&&C.fileName);break}}function ar(xe){return qt(n.createEmptyStatement(),xe)}function at(xe,Ft,Nr){let Mr=DS(Ft),wn=yE(Ft),Yn=gi(Ft,Ft,void 0,Nr),fo=At(Ft.name,le,q_);$.assert(fo);let Mo;if(!Aa(fo)&&hH(t.getCompilerOptions())){let ee=dc(fo)?fo.expression:ct(fo)?n.createStringLiteral(oa(fo.escapedText)):fo;Mo=n.createObjectDefinePropertyCall(xe,ee,n.createPropertyDescriptor({value:Yn,enumerable:!1,writable:!0,configurable:!0}))}else{let ee=d3(n,xe,fo,Ft.name);Mo=n.createAssignment(ee,Yn)}Ai(Yn,3072),Jc(Yn,wn);let Ea=qt(n.createExpressionStatement(Mo),Ft);return Yi(Ea,Ft),Y_(Ea,Mr),Ai(Ea,96),Ea}function Zt(xe,Ft,Nr){let Mr=n.createExpressionStatement(Qt(xe,Ft,Nr,!1));return Ai(Mr,3072),Jc(Mr,yE(Ft.firstAccessor)),Mr}function Qt(xe,{firstAccessor:Ft,getAccessor:Nr,setAccessor:Mr},wn,Yn){let fo=xl(qt(n.cloneNode(xe),xe),xe.parent);Ai(fo,3136),Jc(fo,Ft.name);let Mo=At(Ft.name,le,q_);if($.assert(Mo),Aa(Mo))return $.failBadSyntaxKind(Mo,"Encountered unhandled private identifier while transforming ES2015.");let Ea=Hge(n,Mo);Ai(Ea,3104),Jc(Ea,Ft.name);let ee=[];if(Nr){let cr=gi(Nr,void 0,void 0,wn);Jc(cr,yE(Nr)),Ai(cr,1024);let In=n.createPropertyAssignment("get",cr);Y_(In,DS(Nr)),ee.push(In)}if(Mr){let cr=gi(Mr,void 0,void 0,wn);Jc(cr,yE(Mr)),Ai(cr,1024);let In=n.createPropertyAssignment("set",cr);Y_(In,DS(Mr)),ee.push(In)}ee.push(n.createPropertyAssignment("enumerable",Nr||Mr?n.createFalse():n.createTrue()),n.createPropertyAssignment("configurable",n.createTrue()));let it=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[fo,Ea,n.createObjectLiteralExpression(ee,!0)]);return Yn&&Dm(it),it}function pr(xe){xe.transformFlags&16384&&!(F&16384)&&(F|=131072);let Ft=J;J=void 0;let Nr=Q(15232,66),Mr=n.createFunctionExpression(void 0,void 0,void 0,void 0,Rp(xe.parameters,le,t),void 0,Ye(xe));return qt(Mr,xe),Yi(Mr,xe),Ai(Mr,16),re(Nr,0,0),J=Ft,Mr}function Et(xe){let Ft=Xc(xe)&524288?Q(32662,69):Q(32670,65),Nr=J;J=void 0;let Mr=Rp(xe.parameters,le,t),wn=Ye(xe),Yn=F&32768?n.getLocalName(xe):xe.name;return re(Ft,229376,0),J=Nr,n.updateFunctionExpression(xe,void 0,xe.asteriskToken,Yn,void 0,Mr,void 0,wn)}function xr(xe){let Ft=J;J=void 0;let Nr=Q(32670,65),Mr=Rp(xe.parameters,le,t),wn=Ye(xe),Yn=F&32768?n.getLocalName(xe):xe.name;return re(Nr,229376,0),J=Ft,n.updateFunctionDeclaration(xe,Bn(xe.modifiers,le,bc),xe.asteriskToken,Yn,void 0,Mr,void 0,wn)}function gi(xe,Ft,Nr,Mr){let wn=J;J=void 0;let Yn=Mr&&Co(Mr)&&!oc(xe)?Q(32670,73):Q(32670,65),fo=Rp(xe.parameters,le,t),Mo=Ye(xe);return F&32768&&!Nr&&(xe.kind===263||xe.kind===219)&&(Nr=n.getGeneratedNameForNode(xe)),re(Yn,229376,0),J=wn,Yi(qt(n.createFunctionExpression(void 0,xe.asteriskToken,Nr,void 0,fo,void 0,Mo),Ft),xe)}function Ye(xe){let Ft=!1,Nr=!1,Mr,wn,Yn=[],fo=[],Mo=xe.body,Ea;if(u(),Vs(Mo)&&(Ea=n.copyStandardPrologue(Mo.statements,Yn,0,!1),Ea=n.copyCustomPrologue(Mo.statements,fo,Ea,le,_re),Ea=n.copyCustomPrologue(Mo.statements,fo,Ea,le,dre)),Ft=Es(fo,xe)||Ft,Ft=Bt(fo,xe,!1)||Ft,Vs(Mo))Ea=n.copyCustomPrologue(Mo.statements,fo,Ea,le),Mr=Mo.statements,En(fo,Bn(Mo.statements,le,fa,Ea)),!Ft&&Mo.multiLine&&(Ft=!0);else{$.assert(xe.kind===220),Mr=Zre(Mo,-1);let it=xe.equalsGreaterThanToken;!fu(it)&&!fu(Mo)&&(uH(it,Mo,C)?Nr=!0:Ft=!0);let cr=At(Mo,le,Vt),In=n.createReturnStatement(cr);qt(In,Mo),S3e(In,Mo),Ai(In,2880),fo.push(In),wn=Mo}if(n.mergeLexicalEnvironment(Yn,_()),Ct(Yn,xe),ye(Yn,xe),Pt(Yn)&&(Ft=!0),fo.unshift(...Yn),Vs(Mo)&&__(fo,Mo.statements))return Mo;let ee=n.createBlock(qt(n.createNodeArray(fo),Mr),Ft);return qt(ee,xe.body),!Ft&&Nr&&Ai(ee,1),wn&&v3e(ee,20,wn),Yi(ee,xe.body),ee}function er(xe,Ft){if(Ft)return Dn(xe,le,t);let Nr=F&256?Q(7104,512):Q(6976,128),Mr=Dn(xe,le,t);return re(Nr,0,0),Mr}function Ne(xe){return Dn(xe,Oe,t)}function Y(xe,Ft){return Dn(xe,Ft?Oe:le,t)}function ot(xe,Ft){return dE(xe)?v3(xe,le,t,0,!Ft):xe.operatorToken.kind===28?n.updateBinaryExpression(xe,$.checkDefined(At(xe.left,Oe,Vt)),xe.operatorToken,$.checkDefined(At(xe.right,Ft?Oe:le,Vt))):Dn(xe,le,t)}function pe(xe,Ft){if(Ft)return Dn(xe,Oe,t);let Nr;for(let wn=0;wnEa.name)),Mo=Mr?n.createYieldExpression(n.createToken(42),Ai(fo,8388608)):fo;if(Yn)wn.push(n.createExpressionStatement(Mo)),Yu(Ft.loopOutParameters,1,0,wn);else{let Ea=n.createUniqueName("state"),ee=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Ea,void 0,void 0,Mo)]));if(wn.push(ee),Yu(Ft.loopOutParameters,1,0,wn),Ft.nonLocalJumps&8){let it;Nr?(Nr.nonLocalJumps|=8,it=n.createReturnStatement(Ea)):it=n.createReturnStatement(n.createPropertyAccessExpression(Ea,"value")),wn.push(n.createIfStatement(n.createTypeCheck(Ea,"object"),it))}if(Ft.nonLocalJumps&2&&wn.push(n.createIfStatement(n.createStrictEquality(Ea,n.createStringLiteral("break")),n.createBreakStatement())),Ft.labeledNonLocalBreaks||Ft.labeledNonLocalContinues){let it=[];zt(Ft.labeledNonLocalBreaks,!0,Ea,Nr,it),zt(Ft.labeledNonLocalContinues,!1,Ea,Nr,it),wn.push(n.createSwitchStatement(Ea,n.createCaseBlock(it)))}}return wn}function st(xe,Ft,Nr,Mr){Ft?(xe.labeledNonLocalBreaks||(xe.labeledNonLocalBreaks=new Map),xe.labeledNonLocalBreaks.set(Nr,Mr)):(xe.labeledNonLocalContinues||(xe.labeledNonLocalContinues=new Map),xe.labeledNonLocalContinues.set(Nr,Mr))}function zt(xe,Ft,Nr,Mr,wn){xe&&xe.forEach((Yn,fo)=>{let Mo=[];if(!Mr||Mr.labels&&Mr.labels.get(fo)){let Ea=n.createIdentifier(fo);Mo.push(Ft?n.createBreakStatement(Ea):n.createContinueStatement(Ea))}else st(Mr,Ft,fo,Yn),Mo.push(n.createReturnStatement(Nr));wn.push(n.createCaseClause(n.createStringLiteral(Yn),Mo))})}function Er(xe,Ft,Nr,Mr,wn){let Yn=Ft.name;if($s(Yn))for(let fo of Yn.elements)Id(fo)||Er(xe,fo,Nr,Mr,wn);else{Nr.push(n.createParameterDeclaration(void 0,void 0,Yn));let fo=g.hasNodeCheckFlag(Ft,65536);if(fo||wn){let Mo=n.createUniqueName("out_"+Zi(Yn)),Ea=0;fo&&(Ea|=1),kA(xe)&&(xe.initializer&&g.isBindingCapturedByNode(xe.initializer,Ft)&&(Ea|=2),(xe.condition&&g.isBindingCapturedByNode(xe.condition,Ft)||xe.incrementor&&g.isBindingCapturedByNode(xe.incrementor,Ft))&&(Ea|=1)),Mr.push({flags:Ea,originalName:Yn,outParamName:Mo})}}}function jn(xe,Ft,Nr,Mr){let wn=Ft.properties,Yn=wn.length;for(let fo=Mr;foh_(Cc)&&!!To(Cc.declarationList.declarations).initializer,Mr=J;J=void 0;let wn=Bn(Ft.statements,be,fa);J=Mr;let Yn=yr(wn,Nr),fo=yr(wn,Cc=>!Nr(Cc)),Ea=Ba(To(Yn),h_).declarationList.declarations[0],ee=Wp(Ea.initializer),it=Ci(ee,of);!it&&wi(ee)&&ee.operatorToken.kind===28&&(it=Ci(ee.left,of));let cr=Ba(it?Wp(it.right):ee,Js),In=Ba(Wp(cr.expression),bu),Ka=In.body.statements,Ws=0,Xa=-1,ks=[];if(it){let Cc=Ci(Ka[Ws],af);Cc&&(ks.push(Cc),Ws++),ks.push(Ka[Ws]),Ws++,ks.push(n.createExpressionStatement(n.createAssignment(it.left,Ba(Ea.name,ct))))}for(;!gy(Gr(Ka,Xa));)Xa--;En(ks,Ka,Ws,Xa),Xa<-1&&En(ks,Ka,Xa+1);let cp=Ci(Gr(Ka,Xa),gy);for(let Cc of fo)gy(Cc)&&cp?.expression&&!ct(cp.expression)?ks.push(cp):ks.push(Cc);return En(ks,Yn,1),n.restoreOuterExpressions(xe.expression,n.restoreOuterExpressions(Ea.initializer,n.restoreOuterExpressions(it&&it.right,n.updateCallExpression(cr,n.restoreOuterExpressions(cr.expression,n.updateFunctionExpression(In,void 0,void 0,void 0,void 0,In.parameters,void 0,n.updateBlock(In.body,ks))),void 0,cr.arguments))))}function Wf(xe,Ft){if(xe.transformFlags&32768||xe.expression.kind===108||_g(Wp(xe.expression))){let{target:Nr,thisArg:Mr}=n.createCallBinding(xe.expression,f);xe.expression.kind===108&&Ai(Mr,8);let wn;if(xe.transformFlags&32768?wn=n.createFunctionApplyCall($.checkDefined(At(Nr,ue,Vt)),xe.expression.kind===108?Mr:$.checkDefined(At(Mr,le,Vt)),Wh(xe.arguments,!0,!1,!1)):wn=qt(n.createFunctionCallCall($.checkDefined(At(Nr,ue,Vt)),xe.expression.kind===108?Mr:$.checkDefined(At(Mr,le,Vt)),Bn(xe.arguments,le,Vt)),xe),xe.expression.kind===108){let Yn=n.createLogicalOr(wn,ya());wn=Ft?n.createAssignment(de(),Yn):Yn}return Yi(wn,xe)}return U4(xe)&&(F|=131072),Dn(xe,le,t)}function yy(xe){if(Pt(xe.arguments,E0)){let{target:Ft,thisArg:Nr}=n.createCallBinding(n.createPropertyAccessExpression(xe.expression,"bind"),f);return n.createNewExpression(n.createFunctionApplyCall($.checkDefined(At(Ft,le,Vt)),Nr,Wh(n.createNodeArray([n.createVoidZero(),...xe.arguments]),!0,!1,!1)),void 0,[])}return Dn(xe,le,t)}function Wh(xe,Ft,Nr,Mr){let wn=xe.length,Yn=Rc(Wu(xe,rt,(ee,it,cr,In)=>it(ee,Nr,Mr&&In===wn)));if(Yn.length===1){let ee=Yn[0];if(Ft&&!y.downlevelIteration||nge(ee.expression)||iz(ee.expression,"___spreadArray"))return ee.expression}let fo=a(),Mo=Yn[0].kind!==0,Ea=Mo?n.createArrayLiteralExpression():Yn[0].expression;for(let ee=Mo?0:1;ee0&&Mr.push(n.createStringLiteral(Nr.literal.text)),Ft=n.createCallExpression(n.createPropertyAccessExpression(Ft,"concat"),void 0,Mr)}return qt(Ft,xe)}function Kp(){return n.createUniqueName("_super",48)}function vy(xe,Ft){let Nr=F&8&&!Ft?n.createPropertyAccessExpression(Yi(Kp(),xe),"prototype"):Kp();return Yi(Nr,xe),Y_(Nr,xe),Jc(Nr,xe),Nr}function If(xe){return xe.keywordToken===105&&xe.name.escapedText==="target"?(F|=32768,n.createUniqueName("_newTarget",48)):xe}function uf(xe,Ft,Nr){if(G&1&&Rs(Ft)){let Mr=Q(32670,Xc(Ft)&16?81:65);T(xe,Ft,Nr),re(Mr,0,0);return}T(xe,Ft,Nr)}function Hg(){(G&2)===0&&(G|=2,t.enableSubstitution(80))}function Ym(){(G&1)===0&&(G|=1,t.enableSubstitution(110),t.enableEmitNotification(177),t.enableEmitNotification(175),t.enableEmitNotification(178),t.enableEmitNotification(179),t.enableEmitNotification(220),t.enableEmitNotification(219),t.enableEmitNotification(263))}function D0(xe,Ft){return Ft=k(xe,Ft),xe===1?Gx(Ft):ct(Ft)?Pb(Ft):Ft}function Pb(xe){if(G&2&&!Kge(xe)){let Ft=vs(xe,ct);if(Ft&&Wx(Ft))return qt(n.getGeneratedNameForNode(Ft),xe)}return xe}function Wx(xe){switch(xe.parent.kind){case 209:case 264:case 267:case 261:return xe.parent.name===xe&&g.isDeclarationWithCollidingName(xe.parent)}return!1}function Gx(xe){switch(xe.kind){case 80:return Gh(xe);case 110:return Iv(xe)}return xe}function Gh(xe){if(G&2&&!Kge(xe)){let Ft=g.getReferencedDeclarationWithCollidingName(xe);if(Ft&&!(Co(Ft)&&Nd(Ft,xe)))return qt(n.getGeneratedNameForNode(cs(Ft)),xe)}return xe}function Nd(xe,Ft){let Nr=vs(Ft);if(!Nr||Nr===xe||Nr.end<=xe.pos||Nr.pos>=xe.end)return!1;let Mr=yv(xe);for(;Nr;){if(Nr===Mr||Nr===xe)return!1;if(J_(Nr)&&Nr.parent===xe)return!0;Nr=Nr.parent}return!1}function Iv(xe){return G&1&&F&16?qt(de(),xe):xe}function Hy(xe,Ft){return oc(Ft)?n.getInternalName(xe):n.createPropertyAccessExpression(n.getInternalName(xe),"prototype")}function US(xe,Ft){if(!xe||!Ft||Pt(xe.parameters))return!1;let Nr=pi(xe.body.statements);if(!Nr||!fu(Nr)||Nr.kind!==245)return!1;let Mr=Nr.expression;if(!fu(Mr)||Mr.kind!==214)return!1;let wn=Mr.expression;if(!fu(wn)||wn.kind!==108)return!1;let Yn=to(Mr.arguments);if(!Yn||!fu(Yn)||Yn.kind!==231)return!1;let fo=Yn.expression;return ct(fo)&&fo.escapedText==="arguments"}}function Ssr(t){switch(t){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function pOe(t){let{factory:n,getEmitHelperFactory:a,resumeLexicalEnvironment:c,endLexicalEnvironment:u,hoistFunctionDeclaration:_,hoistVariableDeclaration:f}=t,y=t.getCompilerOptions(),g=$c(y),k=t.getEmitResolver(),T=t.onSubstituteNode;t.onSubstituteNode=Ne;let C,O,F,M,U,J,G,Z,Q,re,ae=1,_e,me,le,Oe,be=0,ue=0,De,Ce,Ae,Fe,Be,de,ze,ut;return Cv(t,je);function je(rt){if(rt.isDeclarationFile||(rt.transformFlags&2048)===0)return rt;let br=Dn(rt,ve,t);return Ux(br,t.readEmitHelpers()),br}function ve(rt){let br=rt.transformFlags;return M?Le(rt):F?Ve(rt):lu(rt)&&rt.asteriskToken?It(rt):br&2048?Dn(rt,ve,t):rt}function Le(rt){switch(rt.kind){case 247:return Ls(rt);case 248:return Cn(rt);case 256:return Qt(rt);case 257:return Et(rt);default:return Ve(rt)}}function Ve(rt){switch(rt.kind){case 263:return ke(rt);case 219:return _t(rt);case 178:case 179:return Se(rt);case 244:return Qe(rt);case 249:return Dt(rt);case 250:return Ee(rt);case 253:return Ct(rt);case 252:return ye(rt);case 254:return ar(rt);default:return rt.transformFlags&1048576?nt(rt):rt.transformFlags&4196352?Dn(rt,ve,t):rt}}function nt(rt){switch(rt.kind){case 227:return We(rt);case 357:return nn(rt);case 228:return $t(rt);case 230:return Dr(rt);case 210:return Qn(rt);case 211:return is(rt);case 213:return sr(rt);case 214:return uo(rt);case 215:return Wa(rt);default:return Dn(rt,ve,t)}}function It(rt){switch(rt.kind){case 263:return ke(rt);case 219:return _t(rt);default:return $.failBadSyntaxKind(rt)}}function ke(rt){if(rt.asteriskToken)rt=Yi(qt(n.createFunctionDeclaration(rt.modifiers,void 0,rt.name,void 0,Rp(rt.parameters,ve,t),void 0,tt(rt.body)),rt),rt);else{let br=F,Vn=M;F=!1,M=!1,rt=Dn(rt,ve,t),F=br,M=Vn}if(F){_(rt);return}else return rt}function _t(rt){if(rt.asteriskToken)rt=Yi(qt(n.createFunctionExpression(void 0,void 0,rt.name,void 0,Rp(rt.parameters,ve,t),void 0,tt(rt.body)),rt),rt);else{let br=F,Vn=M;F=!1,M=!1,rt=Dn(rt,ve,t),F=br,M=Vn}return rt}function Se(rt){let br=F,Vn=M;return F=!1,M=!1,rt=Dn(rt,ve,t),F=br,M=Vn,rt}function tt(rt){let br=[],Vn=F,Ga=M,el=U,tl=J,Uc=G,nd=Z,Mu=Q,Dp=re,Kp=ae,vy=_e,If=me,uf=le,Hg=Oe;F=!0,M=!1,U=void 0,J=void 0,G=void 0,Z=void 0,Q=void 0,re=void 0,ae=1,_e=void 0,me=void 0,le=void 0,Oe=n.createTempVariable(void 0),c();let Ym=n.copyPrologue(rt.statements,br,!1,ve);oo(rt.statements,Ym);let D0=st();return Px(br,u()),br.push(n.createReturnStatement(D0)),F=Vn,M=Ga,U=el,J=tl,G=Uc,Z=nd,Q=Mu,re=Dp,ae=Kp,_e=vy,me=If,le=uf,Oe=Hg,qt(n.createBlock(br,rt.multiLine),rt)}function Qe(rt){if(rt.transformFlags&1048576){ai(rt.declarationList);return}else{if(Xc(rt)&2097152)return rt;for(let Vn of rt.declarationList.declarations)f(Vn.name);let br=MU(rt.declarationList);return br.length===0?void 0:Jc(n.createExpressionStatement(n.inlineExpressions(Cr(br,vo))),rt)}}function We(rt){let br=ohe(rt);switch(br){case 0:return Kt(rt);case 1:return St(rt);default:return $.assertNever(br)}}function St(rt){let{left:br,right:Vn}=rt;if(Ye(Vn)){let Ga;switch(br.kind){case 212:Ga=n.updatePropertyAccessExpression(br,pe($.checkDefined(At(br.expression,ve,jh))),br.name);break;case 213:Ga=n.updateElementAccessExpression(br,pe($.checkDefined(At(br.expression,ve,jh))),pe($.checkDefined(At(br.argumentExpression,ve,Vt))));break;default:Ga=$.checkDefined(At(br,ve,Vt));break}let el=rt.operatorToken.kind;return Iz(el)?qt(n.createAssignment(Ga,qt(n.createBinaryExpression(pe(Ga),Pz(el),$.checkDefined(At(Vn,ve,Vt))),rt)),rt):n.updateBinaryExpression(rt,Ga,rt.operatorToken,$.checkDefined(At(Vn,ve,Vt)))}return Dn(rt,ve,t)}function Kt(rt){return Ye(rt.right)?s4e(rt.operatorToken.kind)?Nn(rt):rt.operatorToken.kind===28?Sr(rt):n.updateBinaryExpression(rt,pe($.checkDefined(At(rt.left,ve,Vt))),rt.operatorToken,$.checkDefined(At(rt.right,ve,Vt))):Dn(rt,ve,t)}function Sr(rt){let br=[];return Vn(rt.left),Vn(rt.right),n.inlineExpressions(br);function Vn(Ga){wi(Ga)&&Ga.operatorToken.kind===28?(Vn(Ga.left),Vn(Ga.right)):(Ye(Ga)&&br.length>0&&(H(1,[n.createExpressionStatement(n.inlineExpressions(br))]),br=[]),br.push($.checkDefined(At(Ga,ve,Vt))))}}function nn(rt){let br=[];for(let Vn of rt.elements)wi(Vn)&&Vn.operatorToken.kind===28?br.push(Sr(Vn)):(Ye(Vn)&&br.length>0&&(H(1,[n.createExpressionStatement(n.inlineExpressions(br))]),br=[]),br.push($.checkDefined(At(Vn,ve,Vt))));return n.inlineExpressions(br)}function Nn(rt){let br=mr(),Vn=Gt();return sl(Vn,$.checkDefined(At(rt.left,ve,Vt)),rt.left),rt.operatorToken.kind===56?Ql(br,Vn,rt.left):Ar(br,Vn,rt.left),sl(Vn,$.checkDefined(At(rt.right,ve,Vt)),rt.right),Ge(br),Vn}function $t(rt){if(Ye(rt.whenTrue)||Ye(rt.whenFalse)){let br=mr(),Vn=mr(),Ga=Gt();return Ql(br,$.checkDefined(At(rt.condition,ve,Vt)),rt.condition),sl(Ga,$.checkDefined(At(rt.whenTrue,ve,Vt)),rt.whenTrue),Yc(Vn),Ge(br),sl(Ga,$.checkDefined(At(rt.whenFalse,ve,Vt)),rt.whenFalse),Ge(Vn),Ga}return Dn(rt,ve,t)}function Dr(rt){let br=mr(),Vn=At(rt.expression,ve,Vt);if(rt.asteriskToken){let Ga=(Xc(rt.expression)&8388608)===0?qt(a().createValuesHelper(Vn),rt):Vn;Gp(Ga,rt)}else N_(Vn,rt);return Ge(br),Gy(rt)}function Qn(rt){return Ko(rt.elements,void 0,void 0,rt.multiLine)}function Ko(rt,br,Vn,Ga){let el=er(rt),tl;if(el>0){tl=Gt();let Mu=Bn(rt,ve,Vt,0,el);sl(tl,n.createArrayLiteralExpression(br?[br,...Mu]:Mu)),br=void 0}let Uc=nl(rt,nd,[],el);return tl?n.createArrayConcatCall(tl,[n.createArrayLiteralExpression(Uc,Ga)]):qt(n.createArrayLiteralExpression(br?[br,...Uc]:Uc,Ga),Vn);function nd(Mu,Dp){if(Ye(Dp)&&Mu.length>0){let Kp=tl!==void 0;tl||(tl=Gt()),sl(tl,Kp?n.createArrayConcatCall(tl,[n.createArrayLiteralExpression(Mu,Ga)]):n.createArrayLiteralExpression(br?[br,...Mu]:Mu,Ga)),br=void 0,Mu=[]}return Mu.push($.checkDefined(At(Dp,ve,Vt))),Mu}}function is(rt){let br=rt.properties,Vn=rt.multiLine,Ga=er(br),el=Gt();sl(el,n.createObjectLiteralExpression(Bn(br,ve,MT,0,Ga),Vn));let tl=nl(br,Uc,[],Ga);return tl.push(Vn?Dm(xl(qt(n.cloneNode(el),el),el.parent)):el),n.inlineExpressions(tl);function Uc(nd,Mu){Ye(Mu)&&nd.length>0&&(sc(n.createExpressionStatement(n.inlineExpressions(nd))),nd=[]);let Dp=cNe(n,rt,Mu,el),Kp=At(Dp,ve,Vt);return Kp&&(Vn&&Dm(Kp),nd.push(Kp)),nd}}function sr(rt){return Ye(rt.argumentExpression)?n.updateElementAccessExpression(rt,pe($.checkDefined(At(rt.expression,ve,jh))),$.checkDefined(At(rt.argumentExpression,ve,Vt))):Dn(rt,ve,t)}function uo(rt){if(!Bh(rt)&&X(rt.arguments,Ye)){let{target:br,thisArg:Vn}=n.createCallBinding(rt.expression,f,g,!0);return Yi(qt(n.createFunctionApplyCall(pe($.checkDefined(At(br,ve,jh))),Vn,Ko(rt.arguments)),rt),rt)}return Dn(rt,ve,t)}function Wa(rt){if(X(rt.arguments,Ye)){let{target:br,thisArg:Vn}=n.createCallBinding(n.createPropertyAccessExpression(rt.expression,"bind"),f);return Yi(qt(n.createNewExpression(n.createFunctionApplyCall(pe($.checkDefined(At(br,ve,Vt))),Vn,Ko(rt.arguments,n.createVoidZero())),void 0,[]),rt),rt)}return Dn(rt,ve,t)}function oo(rt,br=0){let Vn=rt.length;for(let Ga=br;Ga0)break;el.push(vo(Uc))}el.length&&(sc(n.createExpressionStatement(n.inlineExpressions(el))),Ga+=el.length,el=[])}}function vo(rt){return Jc(n.createAssignment(Jc(n.cloneNode(rt.name),rt.name),$.checkDefined(At(rt.initializer,ve,Vt))),rt)}function Eo(rt){if(Ye(rt))if(Ye(rt.thenStatement)||Ye(rt.elseStatement)){let br=mr(),Vn=rt.elseStatement?mr():void 0;Ql(rt.elseStatement?Vn:br,$.checkDefined(At(rt.expression,ve,Vt)),rt.expression),Oi(rt.thenStatement),rt.elseStatement&&(Yc(br),Ge(Vn),Oi(rt.elseStatement)),Ge(br)}else sc(At(rt,ve,fa));else sc(At(rt,ve,fa))}function ya(rt){if(Ye(rt)){let br=mr(),Vn=mr();lr(br),Ge(Vn),Oi(rt.statement),Ge(br),Ar(Vn,$.checkDefined(At(rt.expression,ve,Vt))),cn()}else sc(At(rt,ve,fa))}function Ls(rt){return M?(tn(),rt=Dn(rt,ve,t),cn(),rt):Dn(rt,ve,t)}function yc(rt){if(Ye(rt)){let br=mr(),Vn=lr(br);Ge(br),Ql(Vn,$.checkDefined(At(rt.expression,ve,Vt))),Oi(rt.statement),Yc(br),cn()}else sc(At(rt,ve,fa))}function Cn(rt){return M?(tn(),rt=Dn(rt,ve,t),cn(),rt):Dn(rt,ve,t)}function Es(rt){if(Ye(rt)){let br=mr(),Vn=mr(),Ga=lr(Vn);if(rt.initializer){let el=rt.initializer;Df(el)?ai(el):sc(qt(n.createExpressionStatement($.checkDefined(At(el,ve,Vt))),el))}Ge(br),rt.condition&&Ql(Ga,$.checkDefined(At(rt.condition,ve,Vt))),Oi(rt.statement),Ge(Vn),rt.incrementor&&sc(qt(n.createExpressionStatement($.checkDefined(At(rt.incrementor,ve,Vt))),rt.incrementor)),Yc(br),cn()}else sc(At(rt,ve,fa))}function Dt(rt){M&&tn();let br=rt.initializer;if(br&&Df(br)){for(let Ga of br.declarations)f(Ga.name);let Vn=MU(br);rt=n.updateForStatement(rt,Vn.length>0?n.inlineExpressions(Cr(Vn,vo)):void 0,At(rt.condition,ve,Vt),At(rt.incrementor,ve,Vt),hh(rt.statement,ve,t))}else rt=Dn(rt,ve,t);return M&&cn(),rt}function ur(rt){if(Ye(rt)){let br=Gt(),Vn=Gt(),Ga=Gt(),el=n.createLoopVariable(),tl=rt.initializer;f(el),sl(br,$.checkDefined(At(rt.expression,ve,Vt))),sl(Vn,n.createArrayLiteralExpression()),sc(n.createForInStatement(Ga,br,n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(Vn,"push"),void 0,[Ga])))),sl(el,n.createNumericLiteral(0));let Uc=mr(),nd=mr(),Mu=lr(nd);Ge(Uc),Ql(Mu,n.createLessThan(el,n.createPropertyAccessExpression(Vn,"length"))),sl(Ga,n.createElementAccessExpression(Vn,el)),Ql(nd,n.createBinaryExpression(Ga,103,br));let Dp;if(Df(tl)){for(let Kp of tl.declarations)f(Kp.name);Dp=n.cloneNode(tl.declarations[0].name)}else Dp=$.checkDefined(At(tl,ve,Vt)),$.assert(jh(Dp));sl(Dp,Ga),Oi(rt.statement),Ge(nd),sc(n.createExpressionStatement(n.createPostfixIncrement(el))),Yc(Uc),cn()}else sc(At(rt,ve,fa))}function Ee(rt){M&&tn();let br=rt.initializer;if(Df(br)){for(let Vn of br.declarations)f(Vn.name);rt=n.updateForInStatement(rt,br.declarations[0].name,$.checkDefined(At(rt.expression,ve,Vt)),$.checkDefined(At(rt.statement,ve,fa,n.liftToBlock)))}else rt=Dn(rt,ve,t);return M&&cn(),rt}function Bt(rt){let br=bs(rt.label?Zi(rt.label):void 0);br>0?Yc(br,rt):sc(rt)}function ye(rt){if(M){let br=bs(rt.label&&Zi(rt.label));if(br>0)return kc(br,rt)}return Dn(rt,ve,t)}function et(rt){let br=$a(rt.label?Zi(rt.label):void 0);br>0?Yc(br,rt):sc(rt)}function Ct(rt){if(M){let br=$a(rt.label&&Zi(rt.label));if(br>0)return kc(br,rt)}return Dn(rt,ve,t)}function Ot(rt){lf(At(rt.expression,ve,Vt),rt)}function ar(rt){return o_(At(rt.expression,ve,Vt),rt)}function at(rt){Ye(rt)?(zn(pe($.checkDefined(At(rt.expression,ve,Vt)))),Oi(rt.statement),Rt()):sc(At(rt,ve,fa))}function Zt(rt){if(Ye(rt.caseBlock)){let br=rt.caseBlock,Vn=br.clauses.length,Ga=bn(),el=pe($.checkDefined(At(rt.expression,ve,Vt))),tl=[],Uc=-1;for(let Dp=0;Dp0)break;Mu.push(n.createCaseClause($.checkDefined(At(vy.expression,ve,Vt)),[kc(tl[Kp],vy.expression)]))}else Dp++}Mu.length&&(sc(n.createSwitchStatement(el,n.createCaseBlock(Mu))),nd+=Mu.length,Mu=[]),Dp>0&&(nd+=Dp,Dp=0)}Uc>=0?Yc(tl[Uc]):Yc(Ga);for(let Dp=0;Dp=0;Vn--){let Ga=Z[Vn];if(Mp(Ga)){if(Ga.labelText===rt)return!0}else break}return!1}function $a(rt){if(Z)if(rt)for(let br=Z.length-1;br>=0;br--){let Vn=Z[br];if(Mp(Vn)&&Vn.labelText===rt)return Vn.breakLabel;if(Ss(Vn)&&uu(rt,br-1))return Vn.breakLabel}else for(let br=Z.length-1;br>=0;br--){let Vn=Z[br];if(Ss(Vn))return Vn.breakLabel}return 0}function bs(rt){if(Z)if(rt)for(let br=Z.length-1;br>=0;br--){let Vn=Z[br];if(Cp(Vn)&&uu(rt,br-1))return Vn.continueLabel}else for(let br=Z.length-1;br>=0;br--){let Vn=Z[br];if(Cp(Vn))return Vn.continueLabel}return 0}function V_(rt){if(rt!==void 0&&rt>0){re===void 0&&(re=[]);let br=n.createNumericLiteral(Number.MAX_SAFE_INTEGER);return re[rt]===void 0?re[rt]=[br]:re[rt].push(br),br}return n.createOmittedExpression()}function Nu(rt){let br=n.createNumericLiteral(rt);return nz(br,3,Ssr(rt)),br}function kc(rt,br){return $.assertLessThan(0,rt,"Invalid label"),qt(n.createReturnStatement(n.createArrayLiteralExpression([Nu(3),V_(rt)])),br)}function o_(rt,br){return qt(n.createReturnStatement(n.createArrayLiteralExpression(rt?[Nu(2),rt]:[Nu(2)])),br)}function Gy(rt){return qt(n.createCallExpression(n.createPropertyAccessExpression(Oe,"sent"),void 0,[]),rt)}function _s(){H(0)}function sc(rt){rt?H(1,[rt]):_s()}function sl(rt,br,Vn){H(2,[rt,br],Vn)}function Yc(rt,br){H(3,[rt],br)}function Ar(rt,br,Vn){H(4,[rt,br],Vn)}function Ql(rt,br,Vn){H(5,[rt,br],Vn)}function Gp(rt,br){H(7,[rt],br)}function N_(rt,br){H(6,[rt],br)}function lf(rt,br){H(8,[rt],br)}function Yu(rt,br){H(9,[rt],br)}function Hp(){H(10)}function H(rt,br,Vn){_e===void 0&&(_e=[],me=[],le=[]),Q===void 0&&Ge(mr());let Ga=_e.length;_e[Ga]=rt,me[Ga]=br,le[Ga]=Vn}function st(){be=0,ue=0,De=void 0,Ce=!1,Ae=!1,Fe=void 0,Be=void 0,de=void 0,ze=void 0,ut=void 0;let rt=zt();return a().createGeneratorHelper(Ai(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,Oe)],void 0,n.createBlock(rt,rt.length>0)),1048576))}function zt(){if(_e){for(let rt=0;rt<_e.length;rt++)Bl(rt);jn(_e.length)}else jn(0);if(Fe){let rt=n.createPropertyAccessExpression(Oe,"label"),br=n.createSwitchStatement(rt,n.createCaseBlock(Fe));return[Dm(br)]}return Be||[]}function Er(){Be&&(Di(!Ce),Ce=!1,Ae=!1,ue++)}function jn(rt){So(rt)&&(On(rt),ut=void 0,g_(void 0,void 0)),Be&&Fe&&Di(!1),ua()}function So(rt){if(!Ae)return!0;if(!Q||!re)return!1;for(let br=0;br=0;br--){let Vn=ut[br];Be=[n.createWithStatement(Vn.expression,n.createBlock(Be))]}if(ze){let{startLabel:br,catchLabel:Vn,finallyLabel:Ga,endLabel:el}=ze;Be.unshift(n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createPropertyAccessExpression(Oe,"trys"),"push"),void 0,[n.createArrayLiteralExpression([V_(br),V_(Vn),V_(Ga),V_(el)])]))),ze=void 0}rt&&Be.push(n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(Oe,"label"),n.createNumericLiteral(ue+1))))}Fe.push(n.createCaseClause(n.createNumericLiteral(ue),Be||[])),Be=void 0}function On(rt){if(Q)for(let br=0;br{(!Sl(pe.arguments[0])||JG(pe.arguments[0].text,y))&&(G=jt(G,pe))});let ot=n(C)(Ne);return U=void 0,J=void 0,Q=!1,ot}function ae(){return jx(U.fileName)&&U.commonJsModuleIndicator&&(!U.externalModuleIndicator||U.externalModuleIndicator===!0)?!1:!!(!J.exportEquals&&yd(U))}function _e(Ne){u();let Y=[],ot=rm(y,"alwaysStrict")||yd(U),pe=a.copyPrologue(Ne.statements,Y,ot&&!h0(Ne),Ce);if(ae()&&jt(Y,et()),Pt(J.exportedNames))for(let Ge=0;GeIr.kind===11?a.createAssignment(a.createElementAccessExpression(a.createIdentifier("exports"),a.createStringLiteral(Ir.text)),Mt):a.createAssignment(a.createPropertyAccessExpression(a.createIdentifier("exports"),a.createIdentifier(Zi(Ir))),Mt),a.createVoidZero())));for(let mr of J.exportedFunctions)Ee(Y,mr);jt(Y,At(J.externalHelpersImportDeclaration,Ce,fa)),En(Y,Bn(Ne.statements,Ce,fa,pe)),De(Y,!1),Px(Y,_());let Gt=a.updateSourceFile(Ne,qt(a.createNodeArray(Y),Ne.statements));return Ux(Gt,t.readEmitHelpers()),Gt}function me(Ne){let Y=a.createIdentifier("define"),ot=GH(a,Ne,k,y),pe=h0(Ne)&&Ne,{aliasedModuleNames:Gt,unaliasedModuleNames:mr,importAliasNames:Ge}=Oe(Ne,!0),Mt=a.updateSourceFile(Ne,qt(a.createNodeArray([a.createExpressionStatement(a.createCallExpression(Y,void 0,[...ot?[ot]:[],a.createArrayLiteralExpression(pe?j:[a.createStringLiteral("require"),a.createStringLiteral("exports"),...Gt,...mr]),pe?pe.statements.length?pe.statements[0].expression:a.createObjectLiteralExpression():a.createFunctionExpression(void 0,void 0,void 0,void 0,[a.createParameterDeclaration(void 0,void 0,"require"),a.createParameterDeclaration(void 0,void 0,"exports"),...Ge],void 0,ue(Ne))]))]),Ne.statements));return Ux(Mt,t.readEmitHelpers()),Mt}function le(Ne){let{aliasedModuleNames:Y,unaliasedModuleNames:ot,importAliasNames:pe}=Oe(Ne,!1),Gt=GH(a,Ne,k,y),mr=a.createFunctionExpression(void 0,void 0,void 0,void 0,[a.createParameterDeclaration(void 0,void 0,"factory")],void 0,qt(a.createBlock([a.createIfStatement(a.createLogicalAnd(a.createTypeCheck(a.createIdentifier("module"),"object"),a.createTypeCheck(a.createPropertyAccessExpression(a.createIdentifier("module"),"exports"),"object")),a.createBlock([a.createVariableStatement(void 0,[a.createVariableDeclaration("v",void 0,void 0,a.createCallExpression(a.createIdentifier("factory"),void 0,[a.createIdentifier("require"),a.createIdentifier("exports")]))]),Ai(a.createIfStatement(a.createStrictInequality(a.createIdentifier("v"),a.createIdentifier("undefined")),a.createExpressionStatement(a.createAssignment(a.createPropertyAccessExpression(a.createIdentifier("module"),"exports"),a.createIdentifier("v")))),1)]),a.createIfStatement(a.createLogicalAnd(a.createTypeCheck(a.createIdentifier("define"),"function"),a.createPropertyAccessExpression(a.createIdentifier("define"),"amd")),a.createBlock([a.createExpressionStatement(a.createCallExpression(a.createIdentifier("define"),void 0,[...Gt?[Gt]:[],a.createArrayLiteralExpression([a.createStringLiteral("require"),a.createStringLiteral("exports"),...Y,...ot]),a.createIdentifier("factory")]))])))],!0),void 0)),Ge=a.updateSourceFile(Ne,qt(a.createNodeArray([a.createExpressionStatement(a.createCallExpression(mr,void 0,[a.createFunctionExpression(void 0,void 0,void 0,void 0,[a.createParameterDeclaration(void 0,void 0,"require"),a.createParameterDeclaration(void 0,void 0,"exports"),...pe],void 0,ue(Ne))]))]),Ne.statements));return Ux(Ge,t.readEmitHelpers()),Ge}function Oe(Ne,Y){let ot=[],pe=[],Gt=[];for(let mr of Ne.amdDependencies)mr.name?(ot.push(a.createStringLiteral(mr.path)),Gt.push(a.createParameterDeclaration(void 0,void 0,mr.name))):pe.push(a.createStringLiteral(mr.path));for(let mr of J.externalImports){let Ge=kF(a,mr,U,k,g,y),Mt=DL(a,mr,U);Ge&&(Y&&Mt?(Ai(Mt,8),ot.push(Ge),Gt.push(a.createParameterDeclaration(void 0,void 0,Mt))):pe.push(Ge))}return{aliasedModuleNames:ot,unaliasedModuleNames:pe,importAliasNames:Gt}}function be(Ne){if(gd(Ne)||P_(Ne)||!kF(a,Ne,U,k,g,y))return;let Y=DL(a,Ne,U),ot=oo(Ne,Y);if(ot!==Y)return a.createExpressionStatement(a.createAssignment(Y,ot))}function ue(Ne){u();let Y=[],ot=a.copyPrologue(Ne.statements,Y,!0,Ce);ae()&&jt(Y,et()),Pt(J.exportedNames)&&jt(Y,a.createExpressionStatement(nl(J.exportedNames,(Gt,mr)=>mr.kind===11?a.createAssignment(a.createElementAccessExpression(a.createIdentifier("exports"),a.createStringLiteral(mr.text)),Gt):a.createAssignment(a.createPropertyAccessExpression(a.createIdentifier("exports"),a.createIdentifier(Zi(mr))),Gt),a.createVoidZero())));for(let Gt of J.exportedFunctions)Ee(Y,Gt);jt(Y,At(J.externalHelpersImportDeclaration,Ce,fa)),C===2&&En(Y,Wn(J.externalImports,be)),En(Y,Bn(Ne.statements,Ce,fa,ot)),De(Y,!0),Px(Y,_());let pe=a.createBlock(Y,!0);return Q&&pF(pe,bsr),pe}function De(Ne,Y){if(J.exportEquals){let ot=At(J.exportEquals.expression,Be,Vt);if(ot)if(Y){let pe=a.createReturnStatement(ot);qt(pe,J.exportEquals),Ai(pe,3840),Ne.push(pe)}else{let pe=a.createExpressionStatement(a.createAssignment(a.createPropertyAccessExpression(a.createIdentifier("module"),"exports"),ot));qt(pe,J.exportEquals),Ai(pe,3072),Ne.push(pe)}}}function Ce(Ne){switch(Ne.kind){case 273:return Oi(Ne);case 272:return ft(Ne);case 279:return Ht(Ne);case 278:return Wr(Ne);default:return Ae(Ne)}}function Ae(Ne){switch(Ne.kind){case 244:return Eo(Ne);case 263:return ai(Ne);case 264:return vo(Ne);case 249:return je(Ne,!0);case 250:return ve(Ne);case 251:return Le(Ne);case 247:return Ve(Ne);case 248:return nt(Ne);case 257:return It(Ne);case 255:return ke(Ne);case 246:return _t(Ne);case 256:return Se(Ne);case 270:return tt(Ne);case 297:return Qe(Ne);case 298:return We(Ne);case 259:return St(Ne);case 300:return Kt(Ne);case 242:return Sr(Ne);default:return Be(Ne)}}function Fe(Ne,Y){if(!(Ne.transformFlags&276828160)&&!G?.length)return Ne;switch(Ne.kind){case 249:return je(Ne,!1);case 245:return nn(Ne);case 218:return Nn(Ne,Y);case 356:return $t(Ne,Y);case 214:let ot=Ne===pi(G);if(ot&&G.shift(),Bh(Ne)&&k.shouldTransformImportCall(U))return Ko(Ne,ot);if(ot)return Qn(Ne);break;case 227:if(dE(Ne))return ut(Ne,Y);break;case 225:case 226:return Dr(Ne,Y)}return Dn(Ne,Be,t)}function Be(Ne){return Fe(Ne,!1)}function de(Ne){return Fe(Ne,!0)}function ze(Ne){if(Lc(Ne))for(let Y of Ne.properties)switch(Y.kind){case 304:if(ze(Y.initializer))return!0;break;case 305:if(ze(Y.name))return!0;break;case 306:if(ze(Y.expression))return!0;break;case 175:case 178:case 179:return!1;default:$.assertNever(Y,"Unhandled object member kind")}else if(qf(Ne)){for(let Y of Ne.elements)if(E0(Y)){if(ze(Y.expression))return!0}else if(ze(Y))return!0}else if(ct(Ne))return te(er(Ne))>(eie(Ne)?1:0);return!1}function ut(Ne,Y){return ze(Ne.left)?v3(Ne,Be,t,0,!Y,ya):Dn(Ne,Be,t)}function je(Ne,Y){if(Y&&Ne.initializer&&Df(Ne.initializer)&&!(Ne.initializer.flags&7)){let ot=Dt(void 0,Ne.initializer,!1);if(ot){let pe=[],Gt=At(Ne.initializer,de,Df),mr=a.createVariableStatement(void 0,Gt);pe.push(mr),En(pe,ot);let Ge=At(Ne.condition,Be,Vt),Mt=At(Ne.incrementor,de,Vt),Ir=hh(Ne.statement,Y?Ae:Be,t);return pe.push(a.updateForStatement(Ne,void 0,Ge,Mt,Ir)),pe}}return a.updateForStatement(Ne,At(Ne.initializer,de,f0),At(Ne.condition,Be,Vt),At(Ne.incrementor,de,Vt),hh(Ne.statement,Y?Ae:Be,t))}function ve(Ne){if(Df(Ne.initializer)&&!(Ne.initializer.flags&7)){let Y=Dt(void 0,Ne.initializer,!0);if(Pt(Y)){let ot=At(Ne.initializer,de,f0),pe=At(Ne.expression,Be,Vt),Gt=hh(Ne.statement,Ae,t),mr=Vs(Gt)?a.updateBlock(Gt,[...Y,...Gt.statements]):a.createBlock([...Y,Gt],!0);return a.updateForInStatement(Ne,ot,pe,mr)}}return a.updateForInStatement(Ne,At(Ne.initializer,de,f0),At(Ne.expression,Be,Vt),hh(Ne.statement,Ae,t))}function Le(Ne){if(Df(Ne.initializer)&&!(Ne.initializer.flags&7)){let Y=Dt(void 0,Ne.initializer,!0),ot=At(Ne.initializer,de,f0),pe=At(Ne.expression,Be,Vt),Gt=hh(Ne.statement,Ae,t);return Pt(Y)&&(Gt=Vs(Gt)?a.updateBlock(Gt,[...Y,...Gt.statements]):a.createBlock([...Y,Gt],!0)),a.updateForOfStatement(Ne,Ne.awaitModifier,ot,pe,Gt)}return a.updateForOfStatement(Ne,Ne.awaitModifier,At(Ne.initializer,de,f0),At(Ne.expression,Be,Vt),hh(Ne.statement,Ae,t))}function Ve(Ne){return a.updateDoStatement(Ne,hh(Ne.statement,Ae,t),At(Ne.expression,Be,Vt))}function nt(Ne){return a.updateWhileStatement(Ne,At(Ne.expression,Be,Vt),hh(Ne.statement,Ae,t))}function It(Ne){return a.updateLabeledStatement(Ne,Ne.label,At(Ne.statement,Ae,fa,a.liftToBlock)??qt(a.createEmptyStatement(),Ne.statement))}function ke(Ne){return a.updateWithStatement(Ne,At(Ne.expression,Be,Vt),$.checkDefined(At(Ne.statement,Ae,fa,a.liftToBlock)))}function _t(Ne){return a.updateIfStatement(Ne,At(Ne.expression,Be,Vt),At(Ne.thenStatement,Ae,fa,a.liftToBlock)??a.createBlock([]),At(Ne.elseStatement,Ae,fa,a.liftToBlock))}function Se(Ne){return a.updateSwitchStatement(Ne,At(Ne.expression,Be,Vt),$.checkDefined(At(Ne.caseBlock,Ae,_z)))}function tt(Ne){return a.updateCaseBlock(Ne,Bn(Ne.clauses,Ae,Hte))}function Qe(Ne){return a.updateCaseClause(Ne,At(Ne.expression,Be,Vt),Bn(Ne.statements,Ae,fa))}function We(Ne){return Dn(Ne,Ae,t)}function St(Ne){return Dn(Ne,Ae,t)}function Kt(Ne){return a.updateCatchClause(Ne,Ne.variableDeclaration,$.checkDefined(At(Ne.block,Ae,Vs)))}function Sr(Ne){return Ne=Dn(Ne,Ae,t),Ne}function nn(Ne){return a.updateExpressionStatement(Ne,At(Ne.expression,de,Vt))}function Nn(Ne,Y){return a.updateParenthesizedExpression(Ne,At(Ne.expression,Y?de:Be,Vt))}function $t(Ne,Y){return a.updatePartiallyEmittedExpression(Ne,At(Ne.expression,Y?de:Be,Vt))}function Dr(Ne,Y){if((Ne.operator===46||Ne.operator===47)&&ct(Ne.operand)&&!ap(Ne.operand)&&!HT(Ne.operand)&&!Ihe(Ne.operand)){let ot=er(Ne.operand);if(ot){let pe,Gt=At(Ne.operand,Be,Vt);TA(Ne)?Gt=a.updatePrefixUnaryExpression(Ne,Gt):(Gt=a.updatePostfixUnaryExpression(Ne,Gt),Y||(pe=a.createTempVariable(f),Gt=a.createAssignment(pe,Gt),qt(Gt,Ne)),Gt=a.createComma(Gt,a.cloneNode(Ne.operand)),qt(Gt,Ne));for(let mr of ot)Z[hl(Gt)]=!0,Gt=Ot(mr,Gt),qt(Gt,Ne);return pe&&(Z[hl(Gt)]=!0,Gt=a.createComma(Gt,pe),qt(Gt,Ne)),Gt}}return Dn(Ne,Be,t)}function Qn(Ne){return a.updateCallExpression(Ne,Ne.expression,void 0,Bn(Ne.arguments,Y=>Y===Ne.arguments[0]?Sl(Y)?NF(Y,y):c().createRewriteRelativeImportExtensionsHelper(Y):Be(Y),Vt))}function Ko(Ne,Y){if(C===0&&T>=7)return Dn(Ne,Be,t);let ot=kF(a,Ne,U,k,g,y),pe=At(pi(Ne.arguments),Be,Vt),Gt=ot&&(!pe||!Ic(pe)||pe.text!==ot.text)?ot:pe&&Y?Ic(pe)?NF(pe,y):c().createRewriteRelativeImportExtensionsHelper(pe):pe,mr=!!(Ne.transformFlags&16384);switch(y.module){case 2:return sr(Gt,mr);case 3:return is(Gt??a.createVoidZero(),mr);default:return uo(Gt)}}function is(Ne,Y){if(Q=!0,DP(Ne)){let ot=ap(Ne)?Ne:Ic(Ne)?a.createStringLiteralFromNode(Ne):Ai(qt(a.cloneNode(Ne),Ne),3072);return a.createConditionalExpression(a.createIdentifier("__syncRequire"),void 0,uo(Ne),void 0,sr(ot,Y))}else{let ot=a.createTempVariable(f);return a.createComma(a.createAssignment(ot,Ne),a.createConditionalExpression(a.createIdentifier("__syncRequire"),void 0,uo(ot,!0),void 0,sr(ot,Y)))}}function sr(Ne,Y){let ot=a.createUniqueName("resolve"),pe=a.createUniqueName("reject"),Gt=[a.createParameterDeclaration(void 0,void 0,ot),a.createParameterDeclaration(void 0,void 0,pe)],mr=a.createBlock([a.createExpressionStatement(a.createCallExpression(a.createIdentifier("require"),void 0,[a.createArrayLiteralExpression([Ne||a.createOmittedExpression()]),ot,pe]))]),Ge;T>=2?Ge=a.createArrowFunction(void 0,void 0,Gt,void 0,void 0,mr):(Ge=a.createFunctionExpression(void 0,void 0,void 0,void 0,Gt,void 0,mr),Y&&Ai(Ge,16));let Mt=a.createNewExpression(a.createIdentifier("Promise"),void 0,[Ge]);return kS(y)?a.createCallExpression(a.createPropertyAccessExpression(Mt,a.createIdentifier("then")),void 0,[c().createImportStarCallbackHelper()]):Mt}function uo(Ne,Y){let ot=Ne&&!FS(Ne)&&!Y,pe=a.createCallExpression(a.createPropertyAccessExpression(a.createIdentifier("Promise"),"resolve"),void 0,ot?T>=2?[a.createTemplateExpression(a.createTemplateHead(""),[a.createTemplateSpan(Ne,a.createTemplateTail(""))])]:[a.createCallExpression(a.createPropertyAccessExpression(a.createStringLiteral(""),"concat"),void 0,[Ne])]:[]),Gt=a.createCallExpression(a.createIdentifier("require"),void 0,ot?[a.createIdentifier("s")]:Ne?[Ne]:[]);kS(y)&&(Gt=c().createImportStarHelper(Gt));let mr=ot?[a.createParameterDeclaration(void 0,void 0,"s")]:[],Ge;return T>=2?Ge=a.createArrowFunction(void 0,void 0,mr,void 0,void 0,Gt):Ge=a.createFunctionExpression(void 0,void 0,void 0,void 0,mr,void 0,a.createBlock([a.createReturnStatement(Gt)])),a.createCallExpression(a.createPropertyAccessExpression(pe,"then"),void 0,[Ge])}function Wa(Ne,Y){return!kS(y)||J1(Ne)&2?Y:M8e(Ne)?c().createImportStarHelper(Y):Y}function oo(Ne,Y){return!kS(y)||J1(Ne)&2?Y:Mie(Ne)?c().createImportStarHelper(Y):r0e(Ne)?c().createImportDefaultHelper(Y):Y}function Oi(Ne){let Y,ot=HR(Ne);if(C!==2)if(Ne.importClause){let pe=[];ot&&!W4(Ne)?pe.push(a.createVariableDeclaration(a.cloneNode(ot.name),void 0,void 0,oo(Ne,$o(Ne)))):(pe.push(a.createVariableDeclaration(a.getGeneratedNameForNode(Ne),void 0,void 0,oo(Ne,$o(Ne)))),ot&&W4(Ne)&&pe.push(a.createVariableDeclaration(a.cloneNode(ot.name),void 0,void 0,a.getGeneratedNameForNode(Ne)))),Y=jt(Y,Yi(qt(a.createVariableStatement(void 0,a.createVariableDeclarationList(pe,T>=2?2:0)),Ne),Ne))}else return Yi(qt(a.createExpressionStatement($o(Ne)),Ne),Ne);else ot&&W4(Ne)&&(Y=jt(Y,a.createVariableStatement(void 0,a.createVariableDeclarationList([Yi(qt(a.createVariableDeclaration(a.cloneNode(ot.name),void 0,void 0,a.getGeneratedNameForNode(Ne)),Ne),Ne)],T>=2?2:0))));return Y=yc(Y,Ne),Ja(Y)}function $o(Ne){let Y=kF(a,Ne,U,k,g,y),ot=[];return Y&&ot.push(NF(Y,y)),a.createCallExpression(a.createIdentifier("require"),void 0,ot)}function ft(Ne){$.assert(pA(Ne),"import= for internal module references should be handled in an earlier transformer.");let Y;return C!==2?ko(Ne,32)?Y=jt(Y,Yi(qt(a.createExpressionStatement(Ot(Ne.name,$o(Ne))),Ne),Ne)):Y=jt(Y,Yi(qt(a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(a.cloneNode(Ne.name),void 0,void 0,$o(Ne))],T>=2?2:0)),Ne),Ne)):ko(Ne,32)&&(Y=jt(Y,Yi(qt(a.createExpressionStatement(Ot(a.getExportName(Ne),a.getLocalName(Ne))),Ne),Ne))),Y=Cn(Y,Ne),Ja(Y)}function Ht(Ne){if(!Ne.moduleSpecifier)return;let Y=a.getGeneratedNameForNode(Ne);if(Ne.exportClause&&k0(Ne.exportClause)){let ot=[];C!==2&&ot.push(Yi(qt(a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(Y,void 0,void 0,$o(Ne))])),Ne),Ne));for(let pe of Ne.exportClause.elements){let Gt=pe.propertyName||pe.name,Ge=!!kS(y)&&!(J1(Ne)&2)&&bb(Gt)?c().createImportDefaultHelper(Y):Y,Mt=Gt.kind===11?a.createElementAccessExpression(Ge,Gt):a.createPropertyAccessExpression(Ge,Gt);ot.push(Yi(qt(a.createExpressionStatement(Ot(pe.name.kind===11?a.cloneNode(pe.name):a.getExportName(pe),Mt,void 0,!0)),pe),pe))}return Ja(ot)}else if(Ne.exportClause){let ot=[];return ot.push(Yi(qt(a.createExpressionStatement(Ot(a.cloneNode(Ne.exportClause.name),Wa(Ne,C!==2?$o(Ne):are(Ne)||Ne.exportClause.name.kind===11?Y:a.createIdentifier(Zi(Ne.exportClause.name))))),Ne),Ne)),Ja(ot)}else return Yi(qt(a.createExpressionStatement(c().createExportStarHelper(C!==2?$o(Ne):Y)),Ne),Ne)}function Wr(Ne){if(!Ne.isExportEquals)return Ct(a.createIdentifier("default"),At(Ne.expression,Be,Vt),Ne,!0)}function ai(Ne){let Y;return ko(Ne,32)?Y=jt(Y,Yi(qt(a.createFunctionDeclaration(Bn(Ne.modifiers,ar,bc),Ne.asteriskToken,a.getDeclarationName(Ne,!0,!0),void 0,Bn(Ne.parameters,Be,wa),void 0,Dn(Ne.body,Be,t)),Ne),Ne)):Y=jt(Y,Dn(Ne,Be,t)),Ja(Y)}function vo(Ne){let Y;return ko(Ne,32)?Y=jt(Y,Yi(qt(a.createClassDeclaration(Bn(Ne.modifiers,ar,sp),a.getDeclarationName(Ne,!0,!0),void 0,Bn(Ne.heritageClauses,Be,zg),Bn(Ne.members,Be,J_)),Ne),Ne)):Y=jt(Y,Dn(Ne,Be,t)),Y=Ee(Y,Ne),Ja(Y)}function Eo(Ne){let Y,ot,pe;if(ko(Ne,32)){let Gt,mr=!1;for(let Ge of Ne.declarationList.declarations)if(ct(Ge.name)&&HT(Ge.name))if(Gt||(Gt=Bn(Ne.modifiers,ar,bc)),Ge.initializer){let Mt=a.updateVariableDeclaration(Ge,Ge.name,void 0,void 0,Ot(Ge.name,At(Ge.initializer,Be,Vt)));ot=jt(ot,Mt)}else ot=jt(ot,Ge);else if(Ge.initializer)if(!$s(Ge.name)&&(Iu(Ge.initializer)||bu(Ge.initializer)||w_(Ge.initializer))){let Mt=a.createAssignment(qt(a.createPropertyAccessExpression(a.createIdentifier("exports"),Ge.name),Ge.name),a.createIdentifier(g0(Ge.name))),Ir=a.createVariableDeclaration(Ge.name,Ge.exclamationToken,Ge.type,At(Ge.initializer,Be,Vt));ot=jt(ot,Ir),pe=jt(pe,Mt),mr=!0}else pe=jt(pe,Ls(Ge));if(ot&&(Y=jt(Y,a.updateVariableStatement(Ne,Gt,a.updateVariableDeclarationList(Ne.declarationList,ot)))),pe){let Ge=Yi(qt(a.createExpressionStatement(a.inlineExpressions(pe)),Ne),Ne);mr&&NH(Ge),Y=jt(Y,Ge)}}else Y=jt(Y,Dn(Ne,Be,t));return Y=Es(Y,Ne),Ja(Y)}function ya(Ne,Y,ot){let pe=er(Ne);if(pe){let Gt=eie(Ne)?Y:a.createAssignment(Ne,Y);for(let mr of pe)Ai(Gt,8),Gt=Ot(mr,Gt,ot);return Gt}return a.createAssignment(Ne,Y)}function Ls(Ne){return $s(Ne.name)?v3(At(Ne,Be,pH),Be,t,0,!1,ya):a.createAssignment(qt(a.createPropertyAccessExpression(a.createIdentifier("exports"),Ne.name),Ne.name),Ne.initializer?At(Ne.initializer,Be,Vt):a.createVoidZero())}function yc(Ne,Y){if(J.exportEquals)return Ne;let ot=Y.importClause;if(!ot)return Ne;let pe=new jL;ot.name&&(Ne=Bt(Ne,pe,ot));let Gt=ot.namedBindings;if(Gt)switch(Gt.kind){case 275:Ne=Bt(Ne,pe,Gt);break;case 276:for(let mr of Gt.elements)Ne=Bt(Ne,pe,mr,!0);break}return Ne}function Cn(Ne,Y){return J.exportEquals?Ne:Bt(Ne,new jL,Y)}function Es(Ne,Y){return Dt(Ne,Y.declarationList,!1)}function Dt(Ne,Y,ot){if(J.exportEquals)return Ne;for(let pe of Y.declarations)Ne=ur(Ne,pe,ot);return Ne}function ur(Ne,Y,ot){if(J.exportEquals)return Ne;if($s(Y.name))for(let pe of Y.name.elements)Id(pe)||(Ne=ur(Ne,pe,ot));else!ap(Y.name)&&(!Oo(Y)||Y.initializer||ot)&&(Ne=Bt(Ne,new jL,Y));return Ne}function Ee(Ne,Y){if(J.exportEquals)return Ne;let ot=new jL;if(ko(Y,32)){let pe=ko(Y,2048)?a.createIdentifier("default"):a.getDeclarationName(Y);Ne=ye(Ne,ot,pe,a.getLocalName(Y),Y)}return Y.name&&(Ne=Bt(Ne,ot,Y)),Ne}function Bt(Ne,Y,ot,pe){let Gt=a.getDeclarationName(ot),mr=J.exportSpecifiers.get(Gt);if(mr)for(let Ge of mr)Ne=ye(Ne,Y,Ge.name,Gt,Ge.name,void 0,pe);return Ne}function ye(Ne,Y,ot,pe,Gt,mr,Ge){if(ot.kind!==11){if(Y.has(ot))return Ne;Y.set(ot,!0)}return Ne=jt(Ne,Ct(ot,pe,Gt,mr,Ge)),Ne}function et(){let Ne=a.createExpressionStatement(a.createCallExpression(a.createPropertyAccessExpression(a.createIdentifier("Object"),"defineProperty"),void 0,[a.createIdentifier("exports"),a.createStringLiteral("__esModule"),a.createObjectLiteralExpression([a.createPropertyAssignment("value",a.createTrue())])]));return Ai(Ne,2097152),Ne}function Ct(Ne,Y,ot,pe,Gt){let mr=qt(a.createExpressionStatement(Ot(Ne,Y,void 0,Gt)),ot);return Dm(mr),pe||Ai(mr,3072),mr}function Ot(Ne,Y,ot,pe){return qt(pe?a.createCallExpression(a.createPropertyAccessExpression(a.createIdentifier("Object"),"defineProperty"),void 0,[a.createIdentifier("exports"),a.createStringLiteralFromNode(Ne),a.createObjectLiteralExpression([a.createPropertyAssignment("enumerable",a.createTrue()),a.createPropertyAssignment("get",a.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,a.createBlock([a.createReturnStatement(Y)])))])]):a.createAssignment(Ne.kind===11?a.createElementAccessExpression(a.createIdentifier("exports"),a.cloneNode(Ne)):a.createPropertyAccessExpression(a.createIdentifier("exports"),a.cloneNode(Ne)),Y),ot)}function ar(Ne){switch(Ne.kind){case 95:case 90:return}return Ne}function at(Ne,Y,ot){Y.kind===308?(U=Y,J=M[gh(U)],F(Ne,Y,ot),U=void 0,J=void 0):F(Ne,Y,ot)}function Zt(Ne,Y){return Y=O(Ne,Y),Y.id&&Z[Y.id]?Y:Ne===1?pr(Y):im(Y)?Qt(Y):Y}function Qt(Ne){let Y=Ne.name,ot=gi(Y);if(ot!==Y){if(Ne.objectAssignmentInitializer){let pe=a.createAssignment(ot,Ne.objectAssignmentInitializer);return qt(a.createPropertyAssignment(Y,pe),Ne)}return qt(a.createPropertyAssignment(Y,ot),Ne)}return Ne}function pr(Ne){switch(Ne.kind){case 80:return gi(Ne);case 214:return Et(Ne);case 216:return xr(Ne);case 227:return Ye(Ne)}return Ne}function Et(Ne){if(ct(Ne.expression)){let Y=gi(Ne.expression);if(Z[hl(Y)]=!0,!ct(Y)&&!(Xc(Ne.expression)&8192))return e3(a.updateCallExpression(Ne,Y,void 0,Ne.arguments),16)}return Ne}function xr(Ne){if(ct(Ne.tag)){let Y=gi(Ne.tag);if(Z[hl(Y)]=!0,!ct(Y)&&!(Xc(Ne.tag)&8192))return e3(a.updateTaggedTemplateExpression(Ne,Y,void 0,Ne.template),16)}return Ne}function gi(Ne){var Y,ot;if(Xc(Ne)&8192){let pe=WH(U);return pe?a.createPropertyAccessExpression(pe,Ne):Ne}else if(!(ap(Ne)&&!(Ne.emitNode.autoGenerate.flags&64))&&!HT(Ne)){let pe=g.getReferencedExportContainer(Ne,eie(Ne));if(pe&&pe.kind===308)return qt(a.createPropertyAccessExpression(a.createIdentifier("exports"),a.cloneNode(Ne)),Ne);let Gt=g.getReferencedImportDeclaration(Ne);if(Gt){if(H1(Gt))return qt(a.createPropertyAccessExpression(a.getGeneratedNameForNode(Gt.parent),a.createIdentifier("default")),Ne);if(Xm(Gt)){let mr=Gt.propertyName||Gt.name,Ge=a.getGeneratedNameForNode(((ot=(Y=Gt.parent)==null?void 0:Y.parent)==null?void 0:ot.parent)||Gt);return qt(mr.kind===11?a.createElementAccessExpression(Ge,a.cloneNode(mr)):a.createPropertyAccessExpression(Ge,a.cloneNode(mr)),Ne)}}}return Ne}function Ye(Ne){if(zT(Ne.operatorToken.kind)&&ct(Ne.left)&&(!ap(Ne.left)||sG(Ne.left))&&!HT(Ne.left)){let Y=er(Ne.left);if(Y){let ot=Ne;for(let pe of Y)Z[hl(ot)]=!0,ot=Ot(pe,ot,Ne);return ot}}return Ne}function er(Ne){if(ap(Ne)){if(sG(Ne)){let Y=J?.exportSpecifiers.get(Ne);if(Y){let ot=[];for(let pe of Y)ot.push(pe.name);return ot}}}else{let Y=g.getReferencedImportDeclaration(Ne);if(Y)return J?.exportedBindings[gh(Y)];let ot=new Set,pe=g.getReferencedValueDeclarations(Ne);if(pe){for(let Gt of pe){let mr=J?.exportedBindings[gh(Gt)];if(mr)for(let Ge of mr)ot.add(Ge)}if(ot.size)return so(ot)}}}}var bsr={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` + var __syncRequire = typeof module === "object" && typeof module.exports === "object";`};function _Oe(t){let{factory:n,startLexicalEnvironment:a,endLexicalEnvironment:c,hoistVariableDeclaration:u}=t,_=t.getCompilerOptions(),f=t.getEmitResolver(),y=t.getEmitHost(),g=t.onSubstituteNode,k=t.onEmitNode;t.onSubstituteNode=et,t.onEmitNode=ye,t.enableSubstitution(80),t.enableSubstitution(305),t.enableSubstitution(227),t.enableSubstitution(237),t.enableEmitNotification(308);let T=[],C=[],O=[],F=[],M,U,J,G,Z,Q,re;return Cv(t,ae);function ae(Ye){if(Ye.isDeclarationFile||!($R(Ye,_)||Ye.transformFlags&8388608))return Ye;let er=gh(Ye);M=Ye,Q=Ye,U=T[er]=n0e(t,Ye),J=n.createUniqueName("exports"),C[er]=J,G=F[er]=n.createUniqueName("context");let Ne=_e(U.externalImports),Y=me(Ye,Ne),ot=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,J),n.createParameterDeclaration(void 0,void 0,G)],void 0,Y),pe=GH(n,Ye,y,_),Gt=n.createArrayLiteralExpression(Cr(Ne,Ge=>Ge.name)),mr=Ai(n.updateSourceFile(Ye,qt(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("System"),"register"),void 0,pe?[pe,Gt,ot]:[Gt,ot]))]),Ye.statements)),2048);return _.outFile||T3e(mr,Y,Ge=>!Ge.scoped),re&&(O[er]=re,re=void 0),M=void 0,U=void 0,J=void 0,G=void 0,Z=void 0,Q=void 0,mr}function _e(Ye){let er=new Map,Ne=[];for(let Y of Ye){let ot=kF(n,Y,M,y,f,_);if(ot){let pe=ot.text,Gt=er.get(pe);Gt!==void 0?Ne[Gt].externalImports.push(Y):(er.set(pe,Ne.length),Ne.push({name:ot,externalImports:[Y]}))}}return Ne}function me(Ye,er){let Ne=[];a();let Y=rm(_,"alwaysStrict")||yd(M),ot=n.copyPrologue(Ye.statements,Ne,Y,ue);Ne.push(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration("__moduleName",void 0,void 0,n.createLogicalAnd(G,n.createPropertyAccessExpression(G,"id")))]))),At(U.externalHelpersImportDeclaration,ue,fa);let pe=Bn(Ye.statements,ue,fa,ot);En(Ne,Z),Px(Ne,c());let Gt=le(Ne),mr=Ye.transformFlags&2097152?n.createModifiersFromModifierFlags(1024):void 0,Ge=n.createObjectLiteralExpression([n.createPropertyAssignment("setters",be(Gt,er)),n.createPropertyAssignment("execute",n.createFunctionExpression(mr,void 0,void 0,void 0,[],void 0,n.createBlock(pe,!0)))],!0);return Ne.push(n.createReturnStatement(Ge)),n.createBlock(Ne,!0)}function le(Ye){if(!U.hasExportStarsToExportValues)return;if(!Pt(U.exportedNames)&&U.exportedFunctions.size===0&&U.exportSpecifiers.size===0){let ot=!1;for(let pe of U.externalImports)if(pe.kind===279&&pe.exportClause){ot=!0;break}if(!ot){let pe=Oe(void 0);return Ye.push(pe),pe.name}}let er=[];if(U.exportedNames)for(let ot of U.exportedNames)bb(ot)||er.push(n.createPropertyAssignment(n.createStringLiteralFromNode(ot),n.createTrue()));for(let ot of U.exportedFunctions)ko(ot,2048)||($.assert(!!ot.name),er.push(n.createPropertyAssignment(n.createStringLiteralFromNode(ot.name),n.createTrue())));let Ne=n.createUniqueName("exportedNames");Ye.push(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Ne,void 0,void 0,n.createObjectLiteralExpression(er,!0))])));let Y=Oe(Ne);return Ye.push(Y),Y.name}function Oe(Ye){let er=n.createUniqueName("exportStar"),Ne=n.createIdentifier("m"),Y=n.createIdentifier("n"),ot=n.createIdentifier("exports"),pe=n.createStrictInequality(Y,n.createStringLiteral("default"));return Ye&&(pe=n.createLogicalAnd(pe,n.createLogicalNot(n.createCallExpression(n.createPropertyAccessExpression(Ye,"hasOwnProperty"),void 0,[Y])))),n.createFunctionDeclaration(void 0,void 0,er,void 0,[n.createParameterDeclaration(void 0,void 0,Ne)],void 0,n.createBlock([n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(ot,void 0,void 0,n.createObjectLiteralExpression([]))])),n.createForInStatement(n.createVariableDeclarationList([n.createVariableDeclaration(Y)]),Ne,n.createBlock([Ai(n.createIfStatement(pe,n.createExpressionStatement(n.createAssignment(n.createElementAccessExpression(ot,Y),n.createElementAccessExpression(Ne,Y)))),1)])),n.createExpressionStatement(n.createCallExpression(J,void 0,[ot]))],!0))}function be(Ye,er){let Ne=[];for(let Y of er){let ot=X(Y.externalImports,mr=>DL(n,mr,M)),pe=ot?n.getGeneratedNameForNode(ot):n.createUniqueName(""),Gt=[];for(let mr of Y.externalImports){let Ge=DL(n,mr,M);switch(mr.kind){case 273:if(!mr.importClause)break;case 272:$.assert(Ge!==void 0),Gt.push(n.createExpressionStatement(n.createAssignment(Ge,pe))),ko(mr,32)&&Gt.push(n.createExpressionStatement(n.createCallExpression(J,void 0,[n.createStringLiteral(Zi(Ge)),pe])));break;case 279:if($.assert(Ge!==void 0),mr.exportClause)if(k0(mr.exportClause)){let Mt=[];for(let Ir of mr.exportClause.elements)Mt.push(n.createPropertyAssignment(n.createStringLiteral(aC(Ir.name)),n.createElementAccessExpression(pe,n.createStringLiteral(aC(Ir.propertyName||Ir.name)))));Gt.push(n.createExpressionStatement(n.createCallExpression(J,void 0,[n.createObjectLiteralExpression(Mt,!0)])))}else Gt.push(n.createExpressionStatement(n.createCallExpression(J,void 0,[n.createStringLiteral(aC(mr.exportClause.name)),pe])));else Gt.push(n.createExpressionStatement(n.createCallExpression(Ye,void 0,[pe])));break}}Ne.push(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,pe)],void 0,n.createBlock(Gt,!0)))}return n.createArrayLiteralExpression(Ne,!0)}function ue(Ye){switch(Ye.kind){case 273:return De(Ye);case 272:return Ae(Ye);case 279:return Ce(Ye);case 278:return Fe(Ye);default:return Sr(Ye)}}function De(Ye){let er;return Ye.importClause&&u(DL(n,Ye,M)),Ja(It(er,Ye))}function Ce(Ye){$.assertIsDefined(Ye)}function Ae(Ye){$.assert(pA(Ye),"import= for internal module references should be handled in an earlier transformer.");let er;return u(DL(n,Ye,M)),Ja(ke(er,Ye))}function Fe(Ye){if(Ye.isExportEquals)return;let er=At(Ye.expression,Eo,Vt);return St(n.createIdentifier("default"),er,!0)}function Be(Ye){ko(Ye,32)?Z=jt(Z,n.updateFunctionDeclaration(Ye,Bn(Ye.modifiers,Bt,sp),Ye.asteriskToken,n.getDeclarationName(Ye,!0,!0),void 0,Bn(Ye.parameters,Eo,wa),void 0,At(Ye.body,Eo,Vs))):Z=jt(Z,Dn(Ye,Eo,t)),Z=tt(Z,Ye)}function de(Ye){let er,Ne=n.getLocalName(Ye);return u(Ne),er=jt(er,qt(n.createExpressionStatement(n.createAssignment(Ne,qt(n.createClassExpression(Bn(Ye.modifiers,Bt,sp),Ye.name,void 0,Bn(Ye.heritageClauses,Eo,zg),Bn(Ye.members,Eo,J_)),Ye))),Ye)),er=tt(er,Ye),Ja(er)}function ze(Ye){if(!je(Ye.declarationList))return At(Ye,Eo,fa);let er;if(DG(Ye.declarationList)||CG(Ye.declarationList)){let Ne=Bn(Ye.modifiers,Bt,sp),Y=[];for(let pe of Ye.declarationList.declarations)Y.push(n.updateVariableDeclaration(pe,n.getGeneratedNameForNode(pe.name),void 0,void 0,ve(pe,!1)));let ot=n.updateVariableDeclarationList(Ye.declarationList,Y);er=jt(er,n.updateVariableStatement(Ye,Ne,ot))}else{let Ne,Y=ko(Ye,32);for(let ot of Ye.declarationList.declarations)ot.initializer?Ne=jt(Ne,ve(ot,Y)):ut(ot);Ne&&(er=jt(er,qt(n.createExpressionStatement(n.inlineExpressions(Ne)),Ye)))}return er=_t(er,Ye,!1),Ja(er)}function ut(Ye){if($s(Ye.name))for(let er of Ye.name.elements)Id(er)||ut(er);else u(n.cloneNode(Ye.name))}function je(Ye){return(Xc(Ye)&4194304)===0&&(Q.kind===308||(Ku(Ye).flags&7)===0)}function ve(Ye,er){let Ne=er?Le:Ve;return $s(Ye.name)?v3(Ye,Eo,t,0,!1,Ne):Ye.initializer?Ne(Ye.name,At(Ye.initializer,Eo,Vt)):Ye.name}function Le(Ye,er,Ne){return nt(Ye,er,Ne,!0)}function Ve(Ye,er,Ne){return nt(Ye,er,Ne,!1)}function nt(Ye,er,Ne,Y){return u(n.cloneNode(Ye)),Y?Kt(Ye,xr(qt(n.createAssignment(Ye,er),Ne))):xr(qt(n.createAssignment(Ye,er),Ne))}function It(Ye,er){if(U.exportEquals)return Ye;let Ne=er.importClause;if(!Ne)return Ye;Ne.name&&(Ye=Qe(Ye,Ne));let Y=Ne.namedBindings;if(Y)switch(Y.kind){case 275:Ye=Qe(Ye,Y);break;case 276:for(let ot of Y.elements)Ye=Qe(Ye,ot);break}return Ye}function ke(Ye,er){return U.exportEquals?Ye:Qe(Ye,er)}function _t(Ye,er,Ne){if(U.exportEquals)return Ye;for(let Y of er.declarationList.declarations)(Y.initializer||Ne)&&(Ye=Se(Ye,Y,Ne));return Ye}function Se(Ye,er,Ne){if(U.exportEquals)return Ye;if($s(er.name))for(let Y of er.name.elements)Id(Y)||(Ye=Se(Ye,Y,Ne));else if(!ap(er.name)){let Y;Ne&&(Ye=We(Ye,er.name,n.getLocalName(er)),Y=Zi(er.name)),Ye=Qe(Ye,er,Y)}return Ye}function tt(Ye,er){if(U.exportEquals)return Ye;let Ne;if(ko(er,32)){let Y=ko(er,2048)?n.createStringLiteral("default"):er.name;Ye=We(Ye,Y,n.getLocalName(er)),Ne=g0(Y)}return er.name&&(Ye=Qe(Ye,er,Ne)),Ye}function Qe(Ye,er,Ne){if(U.exportEquals)return Ye;let Y=n.getDeclarationName(er),ot=U.exportSpecifiers.get(Y);if(ot)for(let pe of ot)aC(pe.name)!==Ne&&(Ye=We(Ye,pe.name,Y));return Ye}function We(Ye,er,Ne,Y){return Ye=jt(Ye,St(er,Ne,Y)),Ye}function St(Ye,er,Ne){let Y=n.createExpressionStatement(Kt(Ye,er));return Dm(Y),Ne||Ai(Y,3072),Y}function Kt(Ye,er){let Ne=ct(Ye)?n.createStringLiteralFromNode(Ye):Ye;return Ai(er,Xc(er)|3072),Y_(n.createCallExpression(J,void 0,[Ne,er]),er)}function Sr(Ye){switch(Ye.kind){case 244:return ze(Ye);case 263:return Be(Ye);case 264:return de(Ye);case 249:return nn(Ye,!0);case 250:return Nn(Ye);case 251:return $t(Ye);case 247:return Ko(Ye);case 248:return is(Ye);case 257:return sr(Ye);case 255:return uo(Ye);case 246:return Wa(Ye);case 256:return oo(Ye);case 270:return Oi(Ye);case 297:return $o(Ye);case 298:return ft(Ye);case 259:return Ht(Ye);case 300:return Wr(Ye);case 242:return ai(Ye);default:return Eo(Ye)}}function nn(Ye,er){let Ne=Q;return Q=Ye,Ye=n.updateForStatement(Ye,At(Ye.initializer,er?Qn:ya,f0),At(Ye.condition,Eo,Vt),At(Ye.incrementor,ya,Vt),hh(Ye.statement,er?Sr:Eo,t)),Q=Ne,Ye}function Nn(Ye){let er=Q;return Q=Ye,Ye=n.updateForInStatement(Ye,Qn(Ye.initializer),At(Ye.expression,Eo,Vt),hh(Ye.statement,Sr,t)),Q=er,Ye}function $t(Ye){let er=Q;return Q=Ye,Ye=n.updateForOfStatement(Ye,Ye.awaitModifier,Qn(Ye.initializer),At(Ye.expression,Eo,Vt),hh(Ye.statement,Sr,t)),Q=er,Ye}function Dr(Ye){return Df(Ye)&&je(Ye)}function Qn(Ye){if(Dr(Ye)){let er;for(let Ne of Ye.declarations)er=jt(er,ve(Ne,!1)),Ne.initializer||ut(Ne);return er?n.inlineExpressions(er):n.createOmittedExpression()}else return At(Ye,ya,f0)}function Ko(Ye){return n.updateDoStatement(Ye,hh(Ye.statement,Sr,t),At(Ye.expression,Eo,Vt))}function is(Ye){return n.updateWhileStatement(Ye,At(Ye.expression,Eo,Vt),hh(Ye.statement,Sr,t))}function sr(Ye){return n.updateLabeledStatement(Ye,Ye.label,At(Ye.statement,Sr,fa,n.liftToBlock)??n.createExpressionStatement(n.createIdentifier("")))}function uo(Ye){return n.updateWithStatement(Ye,At(Ye.expression,Eo,Vt),$.checkDefined(At(Ye.statement,Sr,fa,n.liftToBlock)))}function Wa(Ye){return n.updateIfStatement(Ye,At(Ye.expression,Eo,Vt),At(Ye.thenStatement,Sr,fa,n.liftToBlock)??n.createBlock([]),At(Ye.elseStatement,Sr,fa,n.liftToBlock))}function oo(Ye){return n.updateSwitchStatement(Ye,At(Ye.expression,Eo,Vt),$.checkDefined(At(Ye.caseBlock,Sr,_z)))}function Oi(Ye){let er=Q;return Q=Ye,Ye=n.updateCaseBlock(Ye,Bn(Ye.clauses,Sr,Hte)),Q=er,Ye}function $o(Ye){return n.updateCaseClause(Ye,At(Ye.expression,Eo,Vt),Bn(Ye.statements,Sr,fa))}function ft(Ye){return Dn(Ye,Sr,t)}function Ht(Ye){return Dn(Ye,Sr,t)}function Wr(Ye){let er=Q;return Q=Ye,Ye=n.updateCatchClause(Ye,Ye.variableDeclaration,$.checkDefined(At(Ye.block,Sr,Vs))),Q=er,Ye}function ai(Ye){let er=Q;return Q=Ye,Ye=Dn(Ye,Sr,t),Q=er,Ye}function vo(Ye,er){if(!(Ye.transformFlags&276828160))return Ye;switch(Ye.kind){case 249:return nn(Ye,!1);case 245:return Ls(Ye);case 218:return yc(Ye,er);case 356:return Cn(Ye,er);case 227:if(dE(Ye))return Dt(Ye,er);break;case 214:if(Bh(Ye))return Es(Ye);break;case 225:case 226:return Ee(Ye,er)}return Dn(Ye,Eo,t)}function Eo(Ye){return vo(Ye,!1)}function ya(Ye){return vo(Ye,!0)}function Ls(Ye){return n.updateExpressionStatement(Ye,At(Ye.expression,ya,Vt))}function yc(Ye,er){return n.updateParenthesizedExpression(Ye,At(Ye.expression,er?ya:Eo,Vt))}function Cn(Ye,er){return n.updatePartiallyEmittedExpression(Ye,At(Ye.expression,er?ya:Eo,Vt))}function Es(Ye){let er=kF(n,Ye,M,y,f,_),Ne=At(pi(Ye.arguments),Eo,Vt),Y=er&&(!Ne||!Ic(Ne)||Ne.text!==er.text)?er:Ne;return n.createCallExpression(n.createPropertyAccessExpression(G,n.createIdentifier("import")),void 0,Y?[Y]:[])}function Dt(Ye,er){return ur(Ye.left)?v3(Ye,Eo,t,0,!er):Dn(Ye,Eo,t)}function ur(Ye){if(of(Ye,!0))return ur(Ye.left);if(E0(Ye))return ur(Ye.expression);if(Lc(Ye))return Pt(Ye.properties,ur);if(qf(Ye))return Pt(Ye.elements,ur);if(im(Ye))return ur(Ye.name);if(td(Ye))return ur(Ye.initializer);if(ct(Ye)){let er=f.getReferencedExportContainer(Ye);return er!==void 0&&er.kind===308}else return!1}function Ee(Ye,er){if((Ye.operator===46||Ye.operator===47)&&ct(Ye.operand)&&!ap(Ye.operand)&&!HT(Ye.operand)&&!Ihe(Ye.operand)){let Ne=pr(Ye.operand);if(Ne){let Y,ot=At(Ye.operand,Eo,Vt);TA(Ye)?ot=n.updatePrefixUnaryExpression(Ye,ot):(ot=n.updatePostfixUnaryExpression(Ye,ot),er||(Y=n.createTempVariable(u),ot=n.createAssignment(Y,ot),qt(ot,Ye)),ot=n.createComma(ot,n.cloneNode(Ye.operand)),qt(ot,Ye));for(let pe of Ne)ot=Kt(pe,xr(ot));return Y&&(ot=n.createComma(ot,Y),qt(ot,Ye)),ot}}return Dn(Ye,Eo,t)}function Bt(Ye){switch(Ye.kind){case 95:case 90:return}return Ye}function ye(Ye,er,Ne){if(er.kind===308){let Y=gh(er);M=er,U=T[Y],J=C[Y],re=O[Y],G=F[Y],re&&delete O[Y],k(Ye,er,Ne),M=void 0,U=void 0,J=void 0,G=void 0,re=void 0}else k(Ye,er,Ne)}function et(Ye,er){return er=g(Ye,er),gi(er)?er:Ye===1?ar(er):Ye===4?Ct(er):er}function Ct(Ye){return Ye.kind===305?Ot(Ye):Ye}function Ot(Ye){var er,Ne;let Y=Ye.name;if(!ap(Y)&&!HT(Y)){let ot=f.getReferencedImportDeclaration(Y);if(ot){if(H1(ot))return qt(n.createPropertyAssignment(n.cloneNode(Y),n.createPropertyAccessExpression(n.getGeneratedNameForNode(ot.parent),n.createIdentifier("default"))),Ye);if(Xm(ot)){let pe=ot.propertyName||ot.name,Gt=n.getGeneratedNameForNode(((Ne=(er=ot.parent)==null?void 0:er.parent)==null?void 0:Ne.parent)||ot);return qt(n.createPropertyAssignment(n.cloneNode(Y),pe.kind===11?n.createElementAccessExpression(Gt,n.cloneNode(pe)):n.createPropertyAccessExpression(Gt,n.cloneNode(pe))),Ye)}}}return Ye}function ar(Ye){switch(Ye.kind){case 80:return at(Ye);case 227:return Zt(Ye);case 237:return Qt(Ye)}return Ye}function at(Ye){var er,Ne;if(Xc(Ye)&8192){let Y=WH(M);return Y?n.createPropertyAccessExpression(Y,Ye):Ye}if(!ap(Ye)&&!HT(Ye)){let Y=f.getReferencedImportDeclaration(Ye);if(Y){if(H1(Y))return qt(n.createPropertyAccessExpression(n.getGeneratedNameForNode(Y.parent),n.createIdentifier("default")),Ye);if(Xm(Y)){let ot=Y.propertyName||Y.name,pe=n.getGeneratedNameForNode(((Ne=(er=Y.parent)==null?void 0:er.parent)==null?void 0:Ne.parent)||Y);return qt(ot.kind===11?n.createElementAccessExpression(pe,n.cloneNode(ot)):n.createPropertyAccessExpression(pe,n.cloneNode(ot)),Ye)}}}return Ye}function Zt(Ye){if(zT(Ye.operatorToken.kind)&&ct(Ye.left)&&(!ap(Ye.left)||sG(Ye.left))&&!HT(Ye.left)){let er=pr(Ye.left);if(er){let Ne=Ye;for(let Y of er)Ne=Kt(Y,xr(Ne));return Ne}}return Ye}function Qt(Ye){return qR(Ye)?n.createPropertyAccessExpression(G,n.createIdentifier("meta")):Ye}function pr(Ye){let er,Ne=Et(Ye);if(Ne){let Y=f.getReferencedExportContainer(Ye,!1);Y&&Y.kind===308&&(er=jt(er,n.getDeclarationName(Ne))),er=En(er,U?.exportedBindings[gh(Ne)])}else if(ap(Ye)&&sG(Ye)){let Y=U?.exportSpecifiers.get(Ye);if(Y){let ot=[];for(let pe of Y)ot.push(pe.name);return ot}}return er}function Et(Ye){if(!ap(Ye)){let er=f.getReferencedImportDeclaration(Ye);if(er)return er;let Ne=f.getReferencedValueDeclaration(Ye);if(Ne&&U?.exportedBindings[gh(Ne)])return Ne;let Y=f.getReferencedValueDeclarations(Ye);if(Y){for(let ot of Y)if(ot!==Ne&&U?.exportedBindings[gh(ot)])return ot}return Ne}}function xr(Ye){return re===void 0&&(re=[]),re[hl(Ye)]=!0,Ye}function gi(Ye){return re&&Ye.id&&re[Ye.id]}}function _0e(t){let{factory:n,getEmitHelperFactory:a}=t,c=t.getEmitHost(),u=t.getEmitResolver(),_=t.getCompilerOptions(),f=$c(_),y=t.onEmitNode,g=t.onSubstituteNode;t.onEmitNode=le,t.onSubstituteNode=Oe,t.enableEmitNotification(308),t.enableSubstitution(80);let k=new Set,T,C,O,F;return Cv(t,M);function M(ue){if(ue.isDeclarationFile)return ue;if(yd(ue)||a1(_)){O=ue,F=void 0,_.rewriteRelativeImportExtensions&&(O.flags&4194304||Ei(ue))&&Ine(ue,!1,!1,Ce=>{(!Sl(Ce.arguments[0])||JG(Ce.arguments[0].text,_))&&(T=jt(T,Ce))});let De=U(ue);return Ux(De,t.readEmitHelpers()),O=void 0,F&&(De=n.updateSourceFile(De,qt(n.createNodeArray(Sme(De.statements.slice(),F)),De.statements))),!yd(ue)||Km(_)===200||Pt(De.statements,dG)?De:n.updateSourceFile(De,qt(n.createNodeArray([...De.statements,qH(n)]),De.statements))}return ue}function U(ue){let De=Zge(n,a(),ue,_);if(De){let Ce=[],Ae=n.copyPrologue(ue.statements,Ce);return En(Ce,Az([De],J,fa)),En(Ce,Bn(ue.statements,J,fa,Ae)),n.updateSourceFile(ue,qt(n.createNodeArray(Ce),ue.statements))}else return Dn(ue,J,t)}function J(ue){switch(ue.kind){case 272:return Km(_)>=100?re(ue):void 0;case 278:return _e(ue);case 279:return me(ue);case 273:return G(ue);case 214:if(ue===T?.[0])return Z(T.shift());default:if(T?.length&&zh(ue,T[0]))return Dn(ue,J,t)}return ue}function G(ue){if(!_.rewriteRelativeImportExtensions)return ue;let De=NF(ue.moduleSpecifier,_);return De===ue.moduleSpecifier?ue:n.updateImportDeclaration(ue,ue.modifiers,ue.importClause,De,ue.attributes)}function Z(ue){return n.updateCallExpression(ue,ue.expression,ue.typeArguments,[Sl(ue.arguments[0])?NF(ue.arguments[0],_):a().createRewriteRelativeImportExtensionsHelper(ue.arguments[0]),...ue.arguments.slice(1)])}function Q(ue){let De=kF(n,ue,$.checkDefined(O),c,u,_),Ce=[];if(De&&Ce.push(NF(De,_)),Km(_)===200)return n.createCallExpression(n.createIdentifier("require"),void 0,Ce);if(!F){let Fe=n.createUniqueName("_createRequire",48),Be=n.createImportDeclaration(void 0,n.createImportClause(void 0,void 0,n.createNamedImports([n.createImportSpecifier(!1,n.createIdentifier("createRequire"),Fe)])),n.createStringLiteral("module"),void 0),de=n.createUniqueName("__require",48),ze=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(de,void 0,void 0,n.createCallExpression(n.cloneNode(Fe),void 0,[n.createPropertyAccessExpression(n.createMetaProperty(102,n.createIdentifier("meta")),n.createIdentifier("url"))]))],f>=2?2:0));F=[Be,ze]}let Ae=F[1].declarationList.declarations[0].name;return $.assertNode(Ae,ct),n.createCallExpression(n.cloneNode(Ae),void 0,Ce)}function re(ue){$.assert(pA(ue),"import= for internal module references should be handled in an earlier transformer.");let De;return De=jt(De,Yi(qt(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(ue.name),void 0,void 0,Q(ue))],f>=2?2:0)),ue),ue)),De=ae(De,ue),Ja(De)}function ae(ue,De){return ko(De,32)&&(ue=jt(ue,n.createExportDeclaration(void 0,De.isTypeOnly,n.createNamedExports([n.createExportSpecifier(!1,void 0,Zi(De.name))])))),ue}function _e(ue){return ue.isExportEquals?Km(_)===200?Yi(n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),ue.expression)),ue):void 0:ue}function me(ue){let De=NF(ue.moduleSpecifier,_);if(_.module!==void 0&&_.module>5||!ue.exportClause||!Db(ue.exportClause)||!ue.moduleSpecifier)return!ue.moduleSpecifier||De===ue.moduleSpecifier?ue:n.updateExportDeclaration(ue,ue.modifiers,ue.isTypeOnly,ue.exportClause,De,ue.attributes);let Ce=ue.exportClause.name,Ae=n.getGeneratedNameForNode(Ce),Fe=n.createImportDeclaration(void 0,n.createImportClause(void 0,void 0,n.createNamespaceImport(Ae)),De,ue.attributes);Yi(Fe,ue.exportClause);let Be=are(ue)?n.createExportDefault(Ae):n.createExportDeclaration(void 0,!1,n.createNamedExports([n.createExportSpecifier(!1,Ae,Ce)]));return Yi(Be,ue),[Fe,Be]}function le(ue,De,Ce){Ta(De)?((yd(De)||a1(_))&&_.importHelpers&&(C=new Map),O=De,y(ue,De,Ce),O=void 0,C=void 0):y(ue,De,Ce)}function Oe(ue,De){return De=g(ue,De),De.id&&k.has(De.id)?De:ct(De)&&Xc(De)&8192?be(De):De}function be(ue){let De=O&&WH(O);if(De)return k.add(hl(ue)),n.createPropertyAccessExpression(De,ue);if(C){let Ce=Zi(ue),Ae=C.get(Ce);return Ae||C.set(Ce,Ae=n.createUniqueName(Ce,48)),Ae}return ue}}function dOe(t){let n=t.onSubstituteNode,a=t.onEmitNode,c=_0e(t),u=t.onSubstituteNode,_=t.onEmitNode;t.onSubstituteNode=n,t.onEmitNode=a;let f=p0e(t),y=t.onSubstituteNode,g=t.onEmitNode,k=G=>t.getEmitHost().getEmitModuleFormatOfFile(G);t.onSubstituteNode=C,t.onEmitNode=O,t.enableSubstitution(308),t.enableEmitNotification(308);let T;return U;function C(G,Z){return Ta(Z)?(T=Z,n(G,Z)):T?k(T)>=5?u(G,Z):y(G,Z):n(G,Z)}function O(G,Z,Q){return Ta(Z)&&(T=Z),T?k(T)>=5?_(G,Z,Q):g(G,Z,Q):a(G,Z,Q)}function F(G){return k(G)>=5?c:f}function M(G){if(G.isDeclarationFile)return G;T=G;let Z=F(G)(G);return T=void 0,$.assert(Ta(Z)),Z}function U(G){return G.kind===308?M(G):J(G)}function J(G){return t.factory.createBundle(Cr(G.sourceFiles,M))}}function gK(t){return Oo(t)||ps(t)||Zm(t)||Vc(t)||hS(t)||Ax(t)||cz(t)||hF(t)||Ep(t)||G1(t)||i_(t)||wa(t)||Zu(t)||VT(t)||gd(t)||s1(t)||kp(t)||vC(t)||no(t)||mu(t)||wi(t)||n1(t)}function fOe(t){if(hS(t)||Ax(t))return n;return G1(t)||Ep(t)?c:RA(t);function n(_){let f=a(_);return f!==void 0?{diagnosticMessage:f,errorNode:t,typeName:t.name}:void 0}function a(_){return oc(t)?_.errorModuleName?_.accessibility===2?x.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:x.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===264?_.errorModuleName?_.accessibility===2?x.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:x.Public_property_0_of_exported_class_has_or_is_using_private_name_1:_.errorModuleName?x.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:x.Property_0_of_exported_interface_has_or_is_using_private_name_1}function c(_){let f=u(_);return f!==void 0?{diagnosticMessage:f,errorNode:t,typeName:t.name}:void 0}function u(_){return oc(t)?_.errorModuleName?_.accessibility===2?x.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:x.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===264?_.errorModuleName?_.accessibility===2?x.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:x.Public_method_0_of_exported_class_has_or_is_using_private_name_1:_.errorModuleName?x.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:x.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function RA(t){if(Oo(t)||ps(t)||Zm(t)||no(t)||mu(t)||wi(t)||Vc(t)||kp(t))return a;return hS(t)||Ax(t)?c:cz(t)||hF(t)||Ep(t)||G1(t)||i_(t)||vC(t)?u:wa(t)?ne(t,t.parent)&&ko(t.parent,2)?a:_:Zu(t)?y:VT(t)?g:gd(t)?k:s1(t)||n1(t)?T:$.assertNever(t,`Attempted to set a declaration diagnostic context for unhandled node kind: ${$.formatSyntaxKind(t.kind)}`);function n(C){if(t.kind===261||t.kind===209)return C.errorModuleName?C.accessibility===2?x.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:x.Exported_variable_0_has_or_is_using_private_name_1;if(t.kind===173||t.kind===212||t.kind===213||t.kind===227||t.kind===172||t.kind===170&&ko(t.parent,2))return oc(t)?C.errorModuleName?C.accessibility===2?x.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:x.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===264||t.kind===170?C.errorModuleName?C.accessibility===2?x.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:x.Public_property_0_of_exported_class_has_or_is_using_private_name_1:C.errorModuleName?x.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:x.Property_0_of_exported_interface_has_or_is_using_private_name_1}function a(C){let O=n(C);return O!==void 0?{diagnosticMessage:O,errorNode:t,typeName:t.name}:void 0}function c(C){let O;return t.kind===179?oc(t)?O=C.errorModuleName?x.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:x.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:O=C.errorModuleName?x.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:x.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:oc(t)?O=C.errorModuleName?C.accessibility===2?x.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:x.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:O=C.errorModuleName?C.accessibility===2?x.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:x.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:O,errorNode:t.name,typeName:t.name}}function u(C){let O;switch(t.kind){case 181:O=C.errorModuleName?x.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:x.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 180:O=C.errorModuleName?x.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:x.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 182:O=C.errorModuleName?x.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:x.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 175:case 174:oc(t)?O=C.errorModuleName?C.accessibility===2?x.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:x.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:x.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t.parent.kind===264?O=C.errorModuleName?C.accessibility===2?x.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:x.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:x.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:O=C.errorModuleName?x.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:x.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 263:O=C.errorModuleName?C.accessibility===2?x.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:x.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:x.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return $.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:O,errorNode:t.name||t}}function _(C){let O=f(C);return O!==void 0?{diagnosticMessage:O,errorNode:t,typeName:t.name}:void 0}function f(C){switch(t.parent.kind){case 177:return C.errorModuleName?C.accessibility===2?x.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:x.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 181:case 186:return C.errorModuleName?x.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:x.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 180:return C.errorModuleName?x.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:x.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 182:return C.errorModuleName?x.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:x.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 175:case 174:return oc(t.parent)?C.errorModuleName?C.accessibility===2?x.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:x.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===264?C.errorModuleName?C.accessibility===2?x.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:x.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:C.errorModuleName?x.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:x.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 263:case 185:return C.errorModuleName?C.accessibility===2?x.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:x.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 179:case 178:return C.errorModuleName?C.accessibility===2?x.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:x.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return $.fail(`Unknown parent for parameter: ${$.formatSyntaxKind(t.parent.kind)}`)}}function y(){let C;switch(t.parent.kind){case 264:C=x.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 265:C=x.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 201:C=x.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 186:case 181:C=x.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 180:C=x.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 175:case 174:oc(t.parent)?C=x.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===264?C=x.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:C=x.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 185:case 263:C=x.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 196:C=x.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 266:C=x.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return $.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:C,errorNode:t,typeName:t.name}}function g(){let C;return ed(t.parent.parent)?C=zg(t.parent)&&t.parent.token===119?x.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?x.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:x.extends_clause_of_exported_class_has_or_is_using_private_name_0:C=x.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:C,errorNode:t,typeName:cs(t.parent.parent)}}function k(){return{diagnosticMessage:x.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}function T(C){return{diagnosticMessage:C.errorModuleName?x.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:x.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:n1(t)?$.checkDefined(t.typeExpression):t.type,typeName:n1(t)?cs(t):t.name}}}function mOe(t){let n={220:x.Add_a_return_type_to_the_function_expression,219:x.Add_a_return_type_to_the_function_expression,175:x.Add_a_return_type_to_the_method,178:x.Add_a_return_type_to_the_get_accessor_declaration,179:x.Add_a_type_to_parameter_of_the_set_accessor_declaration,263:x.Add_a_return_type_to_the_function_declaration,181:x.Add_a_return_type_to_the_function_declaration,170:x.Add_a_type_annotation_to_the_parameter_0,261:x.Add_a_type_annotation_to_the_variable_0,173:x.Add_a_type_annotation_to_the_property_0,172:x.Add_a_type_annotation_to_the_property_0,278:x.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},a={219:x.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,263:x.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,220:x.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,175:x.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,181:x.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,178:x.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,179:x.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,170:x.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,261:x.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,173:x.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:x.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,168:x.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,306:x.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,305:x.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,210:x.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,278:x.Default_exports_can_t_be_inferred_with_isolatedDeclarations,231:x.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return c;function c(J){if(fn(J,zg))return xi(J,x.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((vS(J)||gP(J.parent))&&(uh(J)||ru(J)))return M(J);switch($.type(J),J.kind){case 178:case 179:return _(J);case 168:case 305:case 306:return y(J);case 210:case 231:return g(J);case 175:case 181:case 219:case 220:case 263:return k(J);case 209:return T(J);case 173:case 261:return C(J);case 170:return O(J);case 304:return U(J.initializer);case 232:return F(J);default:return U(J)}}function u(J){let G=fn(J,Z=>Xu(Z)||fa(Z)||Oo(Z)||ps(Z)||wa(Z));if(G)return Xu(G)?G:gy(G)?fn(G,Z=>lu(Z)&&!kp(Z)):fa(G)?void 0:G}function _(J){let{getAccessor:G,setAccessor:Z}=uP(J.symbol.declarations,J),Q=(hS(J)?J.parameters[0]:J)??J,re=xi(Q,a[J.kind]);return Z&&ac(re,xi(Z,n[Z.kind])),G&&ac(re,xi(G,n[G.kind])),re}function f(J,G){let Z=u(J);if(Z){let Q=Xu(Z)||!Z.name?"":Sp(Z.name,!1);ac(G,xi(Z,n[Z.kind],Q))}return G}function y(J){let G=xi(J,a[J.kind]);return f(J,G),G}function g(J){let G=xi(J,a[J.kind]);return f(J,G),G}function k(J){let G=xi(J,a[J.kind]);return f(J,G),ac(G,xi(J,n[J.kind])),G}function T(J){return xi(J,x.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}function C(J){let G=xi(J,a[J.kind]),Z=Sp(J.name,!1);return ac(G,xi(J,n[J.kind],Z)),G}function O(J){if(hS(J.parent))return _(J.parent);let G=t.requiresAddingImplicitUndefined(J,J.parent);if(!G&&J.initializer)return U(J.initializer);let Z=G?x.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:a[J.kind],Q=xi(J,Z),re=Sp(J.name,!1);return ac(Q,xi(J,n[J.kind],re)),Q}function F(J){return U(J,x.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}function M(J){let G=xi(J,x.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,Sp(J,!1));return f(J,G),G}function U(J,G){let Z=u(J),Q;if(Z){let re=Xu(Z)||!Z.name?"":Sp(Z.name,!1),ae=fn(J.parent,_e=>Xu(_e)||(fa(_e)?"quit":!mh(_e)&&!qne(_e)&&!gL(_e)));Z===ae?(Q=xi(J,G??a[Z.kind]),ac(Q,xi(Z,n[Z.kind],re))):(Q=xi(J,G??x.Expression_type_can_t_be_inferred_with_isolatedDeclarations),ac(Q,xi(Z,n[Z.kind],re)),ac(Q,xi(J,x.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else Q=xi(J,G??x.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return Q}}function hOe(t,n,a){let c=t.getCompilerOptions(),u=yr(zre(t,a),kre);return un(u,a)?bK(n,t,W,c,[a],[d0e],!1).diagnostics:void 0}var yK=531469,vK=8;function d0e(t){let n=()=>$.fail("Diagnostic emitted without context"),a=n,c=!0,u=!1,_=!1,f=!1,y=!1,g,k,T,C,{factory:O}=t,F=t.getEmitHost(),M=()=>{},U={trackSymbol:Ae,reportInaccessibleThisError:ut,reportInaccessibleUniqueSymbolError:de,reportCyclicStructureError:ze,reportPrivateInBaseOfClassExpression:Fe,reportLikelyUnsafeImportRequiredError:je,reportTruncationError:ve,moduleResolverHost:F,reportNonlocalAugmentation:Le,reportNonSerializableProperty:Ve,reportInferenceFallback:De,pushErrorFallbackNode(Ee){let Bt=G,ye=M;M=()=>{M=ye,G=Bt},G=Ee},popErrorFallbackNode(){M()}},J,G,Z,Q,re,ae,_e=t.getEmitResolver(),me=t.getCompilerOptions(),le=mOe(_e),{stripInternal:Oe,isolatedDeclarations:be}=me;return It;function ue(Ee){_e.getPropertiesOfContainerFunction(Ee).forEach(Bt=>{if(lF(Bt.valueDeclaration)){let ye=wi(Bt.valueDeclaration)?Bt.valueDeclaration.left:Bt.valueDeclaration;t.addDiagnostic(xi(ye,x.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}})}function De(Ee){!be||ph(Z)||Pn(Ee)===Z&&(Oo(Ee)&&_e.isExpandoFunctionDeclaration(Ee)?ue(Ee):t.addDiagnostic(le(Ee)))}function Ce(Ee){if(Ee.accessibility===0){if(Ee.aliasesToMakeVisible)if(!k)k=Ee.aliasesToMakeVisible;else for(let Bt of Ee.aliasesToMakeVisible)Zc(k,Bt)}else if(Ee.accessibility!==3){let Bt=a(Ee);if(Bt)return Bt.typeName?t.addDiagnostic(xi(Ee.errorNode||Bt.errorNode,Bt.diagnosticMessage,Sp(Bt.typeName),Ee.errorSymbolName,Ee.errorModuleName)):t.addDiagnostic(xi(Ee.errorNode||Bt.errorNode,Bt.diagnosticMessage,Ee.errorSymbolName,Ee.errorModuleName)),!0}return!1}function Ae(Ee,Bt,ye){return Ee.flags&262144?!1:Ce(_e.isSymbolAccessible(Ee,Bt,ye,!0))}function Fe(Ee){(J||G)&&t.addDiagnostic(ac(xi(J||G,x.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,Ee),...Oo((J||G).parent)?[xi(J||G,x.Add_a_type_annotation_to_the_variable_0,Be())]:[]))}function Be(){return J?du(J):G&&cs(G)?du(cs(G)):G&&Xu(G)?G.isExportEquals?"export=":"default":"(Missing)"}function de(){(J||G)&&t.addDiagnostic(xi(J||G,x.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Be(),"unique symbol"))}function ze(){(J||G)&&t.addDiagnostic(xi(J||G,x.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,Be()))}function ut(){(J||G)&&t.addDiagnostic(xi(J||G,x.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Be(),"this"))}function je(Ee){(J||G)&&t.addDiagnostic(xi(J||G,x.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,Be(),Ee))}function ve(){(J||G)&&t.addDiagnostic(xi(J||G,x.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Le(Ee,Bt,ye){var et;let Ct=(et=Bt.declarations)==null?void 0:et.find(ar=>Pn(ar)===Ee),Ot=yr(ye.declarations,ar=>Pn(ar)!==Ee);if(Ct&&Ot)for(let ar of Ot)t.addDiagnostic(ac(xi(ar,x.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),xi(Ct,x.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Ve(Ee){(J||G)&&t.addDiagnostic(xi(J||G,x.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,Ee))}function nt(Ee){let Bt=a;a=et=>et.errorNode&&gK(et.errorNode)?RA(et.errorNode)(et):{diagnosticMessage:et.errorModuleName?x.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:x.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:et.errorNode||Ee};let ye=_e.getDeclarationStatementsForSourceFile(Ee,yK,vK,U);return a=Bt,ye}function It(Ee){if(Ee.kind===308&&Ee.isDeclarationFile)return Ee;if(Ee.kind===309){u=!0,Q=[],re=[],ae=[];let Zt=!1,Qt=O.createBundle(Cr(Ee.sourceFiles,Et=>{if(Et.isDeclarationFile)return;if(Zt=Zt||Et.hasNoDefaultLib,Z=Et,g=Et,k=void 0,C=!1,T=new Map,a=n,f=!1,y=!1,et(Et),Lg(Et)||h0(Et)){_=!1,c=!1;let gi=ph(Et)?O.createNodeArray(nt(Et)):Bn(Et.statements,$o,fa);return O.updateSourceFile(Et,[O.createModuleDeclaration([O.createModifier(138)],O.createStringLiteral(phe(t.getEmitHost(),Et)),O.createModuleBlock(qt(O.createNodeArray(Wa(gi)),Et.statements)))],!0,[],[],!1,[])}c=!0;let xr=ph(Et)?O.createNodeArray(nt(Et)):Bn(Et.statements,$o,fa);return O.updateSourceFile(Et,Wa(xr),!0,[],[],!1,[])})),pr=mo(Z_(Lz(Ee,F,!0).declarationFilePath));return Qt.syntheticFileReferences=at(pr),Qt.syntheticTypeReferences=Ot(),Qt.syntheticLibReferences=ar(),Qt.hasNoDefaultLib=Zt,Qt}c=!0,f=!1,y=!1,g=Ee,Z=Ee,a=n,u=!1,_=!1,C=!1,k=void 0,T=new Map,Q=[],re=[],ae=[],et(Z);let Bt;if(ph(Z))Bt=O.createNodeArray(nt(Ee));else{let Zt=Bn(Ee.statements,$o,fa);Bt=qt(O.createNodeArray(Wa(Zt)),Ee.statements),yd(Ee)&&(!_||f&&!y)&&(Bt=qt(O.createNodeArray([...Bt,qH(O)]),Bt))}let ye=mo(Z_(Lz(Ee,F,!0).declarationFilePath));return O.updateSourceFile(Ee,Bt,!0,at(ye),Ot(),Ee.hasNoDefaultLib,ar());function et(Zt){Q=go(Q,Cr(Zt.referencedFiles,Qt=>[Zt,Qt])),re=go(re,Zt.typeReferenceDirectives),ae=go(ae,Zt.libReferenceDirectives)}function Ct(Zt){let Qt={...Zt};return Qt.pos=-1,Qt.end=-1,Qt}function Ot(){return Wn(re,Zt=>{if(Zt.preserve)return Ct(Zt)})}function ar(){return Wn(ae,Zt=>{if(Zt.preserve)return Ct(Zt)})}function at(Zt){return Wn(Q,([Qt,pr])=>{if(!pr.preserve)return;let Et=F.getSourceFileFromReference(Qt,pr);if(!Et)return;let xr;if(Et.isDeclarationFile)xr=Et.fileName;else{if(u&&un(Ee.sourceFiles,Et))return;let er=Lz(Et,F,!0);xr=er.declarationFilePath||er.jsFilePath||Et.fileName}if(!xr)return;let gi=FT(Zt,xr,F.getCurrentDirectory(),F.getCanonicalFileName,!1),Ye=Ct(pr);return Ye.fileName=gi,Ye})}}function ke(Ee){if(Ee.kind===80)return Ee;return Ee.kind===208?O.updateArrayBindingPattern(Ee,Bn(Ee.elements,Bt,Jte)):O.updateObjectBindingPattern(Ee,Bn(Ee.elements,Bt,Vc));function Bt(ye){return ye.kind===233?ye:(ye.propertyName&&dc(ye.propertyName)&&ru(ye.propertyName.expression)&&Dr(ye.propertyName.expression,g),O.updateBindingElement(ye,ye.dotDotDotToken,ye.propertyName,ke(ye.name),void 0))}}function _t(Ee,Bt){let ye;C||(ye=a,a=RA(Ee));let et=O.updateParameterDeclaration(Ee,Tsr(O,Ee,Bt),Ee.dotDotDotToken,ke(Ee.name),_e.isOptionalParameter(Ee)?Ee.questionToken||O.createToken(58):void 0,Qe(Ee,!0),tt(Ee));return C||(a=ye),et}function Se(Ee){return A_t(Ee)&&!!Ee.initializer&&_e.isLiteralConstDeclaration(vs(Ee))}function tt(Ee){if(Se(Ee)){let Bt=a3e(Ee.initializer);return Dne(Bt)||De(Ee),_e.createLiteralConstValue(vs(Ee,A_t),U)}}function Qe(Ee,Bt){if(!Bt&&Bg(Ee,2)||Se(Ee))return;if(!Xu(Ee)&&!Vc(Ee)&&Ee.type&&(!wa(Ee)||!_e.requiresAddingImplicitUndefined(Ee,g)))return At(Ee.type,oo,Wo);let ye=J;J=Ee.name;let et;C||(et=a,gK(Ee)&&(a=RA(Ee)));let Ct;return Ane(Ee)?Ct=_e.createTypeOfDeclaration(Ee,g,yK,vK,U):Rs(Ee)?Ct=_e.createReturnTypeOfSignatureDeclaration(Ee,g,yK,vK,U):$.assertNever(Ee),J=ye,C||(a=et),Ct??O.createKeywordTypeNode(133)}function We(Ee){switch(Ee=vs(Ee),Ee.kind){case 263:case 268:case 265:case 264:case 266:case 267:return!_e.isDeclarationVisible(Ee);case 261:return!Kt(Ee);case 272:case 273:case 279:case 278:return!1;case 176:return!0}return!1}function St(Ee){var Bt;if(Ee.body)return!0;let ye=(Bt=Ee.symbol.declarations)==null?void 0:Bt.filter(et=>i_(et)&&!et.body);return!ye||ye.indexOf(Ee)===ye.length-1}function Kt(Ee){return Id(Ee)?!1:$s(Ee.name)?Pt(Ee.name.elements,Kt):_e.isDeclarationVisible(Ee)}function Sr(Ee,Bt,ye){if(Bg(Ee,2))return O.createNodeArray();let et=Cr(Bt,Ct=>_t(Ct,ye));return et?O.createNodeArray(et,Bt.hasTrailingComma):O.createNodeArray()}function nn(Ee,Bt){let ye;if(!Bt){let et=cP(Ee);et&&(ye=[_t(et)])}if(mg(Ee)){let et;if(!Bt){let Ct=NU(Ee);Ct&&(et=_t(Ct))}et||(et=O.createParameterDeclaration(void 0,void 0,"value")),ye=jt(ye,et)}return O.createNodeArray(ye||j)}function Nn(Ee,Bt){return Bg(Ee,2)?void 0:Bn(Bt,oo,Zu)}function $t(Ee){return Ta(Ee)||s1(Ee)||I_(Ee)||ed(Ee)||Af(Ee)||Rs(Ee)||vC(Ee)||o3(Ee)}function Dr(Ee,Bt){let ye=_e.isEntityNameVisible(Ee,Bt);Ce(ye)}function Qn(Ee,Bt){return hy(Ee)&&hy(Bt)&&(Ee.jsDoc=Bt.jsDoc),Y_(Ee,DS(Bt))}function Ko(Ee,Bt){if(Bt){if(_=_||Ee.kind!==268&&Ee.kind!==206,Sl(Bt)&&u){let ye=H6e(t.getEmitHost(),_e,Ee);if(ye)return O.createStringLiteral(ye)}return Bt}}function is(Ee){if(_e.isDeclarationVisible(Ee))if(Ee.moduleReference.kind===284){let Bt=hU(Ee);return O.updateImportEqualsDeclaration(Ee,Ee.modifiers,Ee.isTypeOnly,Ee.name,O.updateExternalModuleReference(Ee.moduleReference,Ko(Ee,Bt)))}else{let Bt=a;return a=RA(Ee),Dr(Ee.moduleReference,g),a=Bt,Ee}}function sr(Ee){if(!Ee.importClause)return O.updateImportDeclaration(Ee,Ee.modifiers,Ee.importClause,Ko(Ee,Ee.moduleSpecifier),uo(Ee.attributes));let Bt=Ee.importClause.phaseModifier===166?void 0:Ee.importClause.phaseModifier,ye=Ee.importClause&&Ee.importClause.name&&_e.isDeclarationVisible(Ee.importClause)?Ee.importClause.name:void 0;if(!Ee.importClause.namedBindings)return ye&&O.updateImportDeclaration(Ee,Ee.modifiers,O.updateImportClause(Ee.importClause,Bt,ye,void 0),Ko(Ee,Ee.moduleSpecifier),uo(Ee.attributes));if(Ee.importClause.namedBindings.kind===275){let Ct=_e.isDeclarationVisible(Ee.importClause.namedBindings)?Ee.importClause.namedBindings:void 0;return ye||Ct?O.updateImportDeclaration(Ee,Ee.modifiers,O.updateImportClause(Ee.importClause,Bt,ye,Ct),Ko(Ee,Ee.moduleSpecifier),uo(Ee.attributes)):void 0}let et=Wn(Ee.importClause.namedBindings.elements,Ct=>_e.isDeclarationVisible(Ct)?Ct:void 0);if(et&&et.length||ye)return O.updateImportDeclaration(Ee,Ee.modifiers,O.updateImportClause(Ee.importClause,Bt,ye,et&&et.length?O.updateNamedImports(Ee.importClause.namedBindings,et):void 0),Ko(Ee,Ee.moduleSpecifier),uo(Ee.attributes));if(_e.isImportRequiredByAugmentation(Ee))return be&&t.addDiagnostic(xi(Ee,x.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),O.updateImportDeclaration(Ee,Ee.modifiers,void 0,Ko(Ee,Ee.moduleSpecifier),uo(Ee.attributes))}function uo(Ee){let Bt=$L(Ee);return Ee&&Bt!==void 0?Ee:void 0}function Wa(Ee){for(;te(k);){let ye=k.shift();if(!cre(ye))return $.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${$.formatSyntaxKind(ye.kind)}`);let et=c;c=ye.parent&&Ta(ye.parent)&&!(yd(ye.parent)&&u);let Ct=Wr(ye);c=et,T.set(gh(ye),Ct)}return Bn(Ee,Bt,fa);function Bt(ye){if(cre(ye)){let et=gh(ye);if(T.has(et)){let Ct=T.get(et);return T.delete(et),Ct&&((Zn(Ct)?Pt(Ct,Vte):Vte(Ct))&&(f=!0),Ta(ye.parent)&&(Zn(Ct)?Pt(Ct,dG):dG(Ct))&&(_=!0)),Ct}}return ye}}function oo(Ee){if(Ls(Ee))return;if(Vd(Ee)){if(We(Ee))return;if($T(Ee)){if(be){if(!_e.isDefinitelyReferenceToGlobalSymbolObject(Ee.name.expression)){if(ed(Ee.parent)||Lc(Ee.parent)){t.addDiagnostic(xi(Ee,x.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));return}else if((Af(Ee.parent)||fh(Ee.parent))&&!ru(Ee.name.expression)){t.addDiagnostic(xi(Ee,x.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations));return}}}else if(!_e.isLateBound(vs(Ee))||!ru(Ee.name.expression))return}}if(Rs(Ee)&&_e.isImplementationOfOverload(Ee)||q3e(Ee))return;let Bt;$t(Ee)&&(Bt=g,g=Ee);let ye=a,et=gK(Ee),Ct=C,Ot=(Ee.kind===188||Ee.kind===201)&&Ee.parent.kind!==266;if((Ep(Ee)||G1(Ee))&&Bg(Ee,2))return Ee.symbol&&Ee.symbol.declarations&&Ee.symbol.declarations[0]!==Ee?void 0:ar(O.createPropertyDeclaration(Es(Ee),Ee.name,void 0,void 0,void 0));if(et&&!C&&(a=RA(Ee)),gP(Ee)&&Dr(Ee.exprName,g),Ot&&(C=!0),ksr(Ee))switch(Ee.kind){case 234:{(uh(Ee.expression)||ru(Ee.expression))&&Dr(Ee.expression,g);let at=Dn(Ee,oo,t);return ar(O.updateExpressionWithTypeArguments(at,at.expression,at.typeArguments))}case 184:{Dr(Ee.typeName,g);let at=Dn(Ee,oo,t);return ar(O.updateTypeReferenceNode(at,at.typeName,at.typeArguments))}case 181:return ar(O.updateConstructSignature(Ee,Nn(Ee,Ee.typeParameters),Sr(Ee,Ee.parameters),Qe(Ee)));case 177:{let at=O.createConstructorDeclaration(Es(Ee),Sr(Ee,Ee.parameters,0),void 0);return ar(at)}case 175:{if(Aa(Ee.name))return ar(void 0);let at=O.createMethodDeclaration(Es(Ee),void 0,Ee.name,Ee.questionToken,Nn(Ee,Ee.typeParameters),Sr(Ee,Ee.parameters),Qe(Ee),void 0);return ar(at)}case 178:return Aa(Ee.name)?ar(void 0):ar(O.updateGetAccessorDeclaration(Ee,Es(Ee),Ee.name,nn(Ee,Bg(Ee,2)),Qe(Ee),void 0));case 179:return Aa(Ee.name)?ar(void 0):ar(O.updateSetAccessorDeclaration(Ee,Es(Ee),Ee.name,nn(Ee,Bg(Ee,2)),void 0));case 173:return Aa(Ee.name)?ar(void 0):ar(O.updatePropertyDeclaration(Ee,Es(Ee),Ee.name,Ee.questionToken,Qe(Ee),tt(Ee)));case 172:return Aa(Ee.name)?ar(void 0):ar(O.updatePropertySignature(Ee,Es(Ee),Ee.name,Ee.questionToken,Qe(Ee)));case 174:return Aa(Ee.name)?ar(void 0):ar(O.updateMethodSignature(Ee,Es(Ee),Ee.name,Ee.questionToken,Nn(Ee,Ee.typeParameters),Sr(Ee,Ee.parameters),Qe(Ee)));case 180:return ar(O.updateCallSignature(Ee,Nn(Ee,Ee.typeParameters),Sr(Ee,Ee.parameters),Qe(Ee)));case 182:return ar(O.updateIndexSignature(Ee,Es(Ee),Sr(Ee,Ee.parameters),At(Ee.type,oo,Wo)||O.createKeywordTypeNode(133)));case 261:return $s(Ee.name)?vo(Ee.name):(Ot=!0,C=!0,ar(O.updateVariableDeclaration(Ee,Ee.name,void 0,Qe(Ee),tt(Ee))));case 169:return Oi(Ee)&&(Ee.default||Ee.constraint)?ar(O.updateTypeParameterDeclaration(Ee,Ee.modifiers,Ee.name,void 0,void 0)):ar(Dn(Ee,oo,t));case 195:{let at=At(Ee.checkType,oo,Wo),Zt=At(Ee.extendsType,oo,Wo),Qt=g;g=Ee.trueType;let pr=At(Ee.trueType,oo,Wo);g=Qt;let Et=At(Ee.falseType,oo,Wo);return $.assert(at),$.assert(Zt),$.assert(pr),$.assert(Et),ar(O.updateConditionalTypeNode(Ee,at,Zt,pr,Et))}case 185:return ar(O.updateFunctionTypeNode(Ee,Bn(Ee.typeParameters,oo,Zu),Sr(Ee,Ee.parameters),$.checkDefined(At(Ee.type,oo,Wo))));case 186:return ar(O.updateConstructorTypeNode(Ee,Es(Ee),Bn(Ee.typeParameters,oo,Zu),Sr(Ee,Ee.parameters),$.checkDefined(At(Ee.type,oo,Wo))));case 206:return jT(Ee)?ar(O.updateImportTypeNode(Ee,O.updateLiteralTypeNode(Ee.argument,Ko(Ee,Ee.argument.literal)),Ee.attributes,Ee.qualifier,Bn(Ee.typeArguments,oo,Wo),Ee.isTypeOf)):ar(Ee);default:$.assertNever(Ee,`Attempted to process unhandled node kind: ${$.formatSyntaxKind(Ee.kind)}`)}return yF(Ee)&&qs(Z,Ee.pos).line===qs(Z,Ee.end).line&&Ai(Ee,1),ar(Dn(Ee,oo,t));function ar(at){return at&&et&&$T(Ee)&&ya(Ee),$t(Ee)&&(g=Bt),et&&!C&&(a=ye),Ot&&(C=Ct),at===Ee?at:at&&Yi(Qn(at,Ee),Ee)}}function Oi(Ee){return Ee.parent.kind===175&&Bg(Ee.parent,2)}function $o(Ee){if(!Esr(Ee)||Ls(Ee))return;switch(Ee.kind){case 279:return Ta(Ee.parent)&&(_=!0),y=!0,O.updateExportDeclaration(Ee,Ee.modifiers,Ee.isTypeOnly,Ee.exportClause,Ko(Ee,Ee.moduleSpecifier),uo(Ee.attributes));case 278:{if(Ta(Ee.parent)&&(_=!0),y=!0,Ee.expression.kind===80)return Ee;{let ye=O.createUniqueName("_default",16);a=()=>({diagnosticMessage:x.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:Ee}),G=Ee;let et=Qe(Ee),Ct=O.createVariableDeclaration(ye,void 0,et,void 0);G=void 0;let Ot=O.createVariableStatement(c?[O.createModifier(138)]:[],O.createVariableDeclarationList([Ct],2));return Qn(Ot,Ee),NH(Ee),[Ot,O.updateExportAssignment(Ee,Ee.modifiers,ye)]}}}let Bt=Wr(Ee);return T.set(gh(Ee),Bt),Ee}function ft(Ee){if(gd(Ee)||Bg(Ee,2048)||!l1(Ee))return Ee;let Bt=O.createModifiersFromModifierFlags(tm(Ee)&131039);return O.replaceModifiers(Ee,Bt)}function Ht(Ee,Bt,ye,et){let Ct=O.updateModuleDeclaration(Ee,Bt,ye,et);if(Gm(Ct)||Ct.flags&32)return Ct;let Ot=O.createModuleDeclaration(Ct.modifiers,Ct.name,Ct.body,Ct.flags|32);return Yi(Ot,Ct),qt(Ot,Ct),Ot}function Wr(Ee){if(k)for(;IT(k,Ee););if(Ls(Ee))return;switch(Ee.kind){case 272:return is(Ee);case 273:return sr(Ee)}if(Vd(Ee)&&We(Ee)||OS(Ee)||Rs(Ee)&&_e.isImplementationOfOverload(Ee))return;let Bt;$t(Ee)&&(Bt=g,g=Ee);let ye=gK(Ee),et=a;ye&&(a=RA(Ee));let Ct=c;switch(Ee.kind){case 266:{c=!1;let ar=Ot(O.updateTypeAliasDeclaration(Ee,Es(Ee),Ee.name,Bn(Ee.typeParameters,oo,Zu),$.checkDefined(At(Ee.type,oo,Wo))));return c=Ct,ar}case 265:return Ot(O.updateInterfaceDeclaration(Ee,Es(Ee),Ee.name,Nn(Ee,Ee.typeParameters),ur(Ee.heritageClauses),Bn(Ee.members,oo,KI)));case 263:{let ar=Ot(O.updateFunctionDeclaration(Ee,Es(Ee),void 0,Ee.name,Nn(Ee,Ee.typeParameters),Sr(Ee,Ee.parameters),Qe(Ee),void 0));if(ar&&_e.isExpandoFunctionDeclaration(Ee)&&St(Ee)){let at=_e.getPropertiesOfContainerFunction(Ee);be&&ue(Ee);let Zt=PA.createModuleDeclaration(void 0,ar.name||O.createIdentifier("_default"),O.createModuleBlock([]),32);xl(Zt,g),Zt.locals=ic(at),Zt.symbol=at[0].parent;let Qt=[],pr=Wn(at,Ne=>{if(!lF(Ne.valueDeclaration))return;let Y=oa(Ne.escapedName);if(!Jd(Y,99))return;a=RA(Ne.valueDeclaration);let ot=_e.createTypeOfDeclaration(Ne.valueDeclaration,Zt,yK,vK|2,U);a=et;let pe=HO(Y),Gt=pe?O.getGeneratedNameForNode(Ne.valueDeclaration):O.createIdentifier(Y);pe&&Qt.push([Gt,Y]);let mr=O.createVariableDeclaration(Gt,void 0,ot,void 0);return O.createVariableStatement(pe?void 0:[O.createToken(95)],O.createVariableDeclarationList([mr]))});Qt.length?pr.push(O.createExportDeclaration(void 0,!1,O.createNamedExports(Cr(Qt,([Ne,Y])=>O.createExportSpecifier(!1,Ne,Y))))):pr=Wn(pr,Ne=>O.replaceModifiers(Ne,0));let Et=O.createModuleDeclaration(Es(Ee),Ee.name,O.createModuleBlock(pr),32);if(!Bg(ar,2048))return[ar,Et];let xr=O.createModifiersFromModifierFlags(tm(ar)&-2081|128),gi=O.updateFunctionDeclaration(ar,xr,void 0,ar.name,ar.typeParameters,ar.parameters,ar.type,void 0),Ye=O.updateModuleDeclaration(Et,xr,Et.name,Et.body),er=O.createExportAssignment(void 0,!1,Et.name);return Ta(Ee.parent)&&(_=!0),y=!0,[gi,Ye,er]}else return ar}case 268:{c=!1;let ar=Ee.body;if(ar&&ar.kind===269){let at=f,Zt=y;y=!1,f=!1;let Qt=Bn(ar.statements,$o,fa),pr=Wa(Qt);Ee.flags&33554432&&(f=!1),!xb(Ee)&&!Cn(pr)&&!y&&(f?pr=O.createNodeArray([...pr,qH(O)]):pr=Bn(pr,ft,fa));let Et=O.updateModuleBlock(ar,pr);c=Ct,f=at,y=Zt;let xr=Es(Ee);return Ot(Ht(Ee,xr,eP(Ee)?Ko(Ee,Ee.name):Ee.name,Et))}else{c=Ct;let at=Es(Ee);c=!1,At(ar,$o);let Zt=gh(ar),Qt=T.get(Zt);return T.delete(Zt),Ot(Ht(Ee,at,Ee.name,Qt))}}case 264:{J=Ee.name,G=Ee;let ar=O.createNodeArray(Es(Ee)),at=Nn(Ee,Ee.typeParameters),Zt=Rx(Ee),Qt;if(Zt){let Ne=a;Qt=Bc(an(Zt.parameters,Y=>{if(!ko(Y,31)||Ls(Y))return;if(a=RA(Y),Y.name.kind===80)return Qn(O.createPropertyDeclaration(Es(Y),Y.name,Y.questionToken,Qe(Y),tt(Y)),Y);return ot(Y.name);function ot(pe){let Gt;for(let mr of pe.elements)Id(mr)||($s(mr.name)&&(Gt=go(Gt,ot(mr.name))),Gt=Gt||[],Gt.push(O.createPropertyDeclaration(Es(Y),mr.name,void 0,Qe(mr),void 0)));return Gt}})),a=Ne}let Et=Pt(Ee.members,Ne=>!!Ne.name&&Aa(Ne.name))?[O.createPropertyDeclaration(void 0,O.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,xr=_e.createLateBoundIndexSignatures(Ee,g,yK,vK,U),gi=go(go(go(Et,xr),Qt),Bn(Ee.members,oo,J_)),Ye=O.createNodeArray(gi),er=vv(Ee);if(er&&!ru(er.expression)&&er.expression.kind!==106){let Ne=Ee.name?oa(Ee.name.escapedText):"default",Y=O.createUniqueName(`${Ne}_base`,16);a=()=>({diagnosticMessage:x.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:er,typeName:Ee.name});let ot=O.createVariableDeclaration(Y,void 0,_e.createTypeOfExpression(er.expression,Ee,yK,vK,U),void 0),pe=O.createVariableStatement(c?[O.createModifier(138)]:[],O.createVariableDeclarationList([ot],2)),Gt=O.createNodeArray(Cr(Ee.heritageClauses,mr=>{if(mr.token===96){let Ge=a;a=RA(mr.types[0]);let Mt=O.updateHeritageClause(mr,Cr(mr.types,Ir=>O.updateExpressionWithTypeArguments(Ir,Y,Bn(Ir.typeArguments,oo,Wo))));return a=Ge,Mt}return O.updateHeritageClause(mr,Bn(O.createNodeArray(yr(mr.types,Ge=>ru(Ge.expression)||Ge.expression.kind===106)),oo,VT))}));return[pe,Ot(O.updateClassDeclaration(Ee,ar,Ee.name,at,Gt,Ye))]}else{let Ne=ur(Ee.heritageClauses);return Ot(O.updateClassDeclaration(Ee,ar,Ee.name,at,Ne,Ye))}}case 244:return Ot(ai(Ee));case 267:return Ot(O.updateEnumDeclaration(Ee,O.createNodeArray(Es(Ee)),Ee.name,O.createNodeArray(Wn(Ee.members,ar=>{if(Ls(ar))return;let at=_e.getEnumMemberValue(ar),Zt=at?.value;be&&ar.initializer&&at?.hasExternalReferences&&!dc(ar.name)&&t.addDiagnostic(xi(ar,x.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));let Qt=Zt===void 0?void 0:typeof Zt=="string"?O.createStringLiteral(Zt):Zt<0?O.createPrefixUnaryExpression(41,O.createNumericLiteral(-Zt)):O.createNumericLiteral(Zt);return Qn(O.updateEnumMember(ar,ar.name,Qt),ar)}))))}return $.assertNever(Ee,`Unhandled top-level node in declaration emit: ${$.formatSyntaxKind(Ee.kind)}`);function Ot(ar){return $t(Ee)&&(g=Bt),ye&&(a=et),Ee.kind===268&&(c=Ct),ar===Ee?ar:(G=void 0,J=void 0,ar&&Yi(Qn(ar,Ee),Ee))}}function ai(Ee){if(!X(Ee.declarationList.declarations,Kt))return;let Bt=Bn(Ee.declarationList.declarations,oo,Oo);if(!te(Bt))return;let ye=O.createNodeArray(Es(Ee)),et;return DG(Ee.declarationList)||CG(Ee.declarationList)?(et=O.createVariableDeclarationList(Bt,2),Yi(et,Ee.declarationList),qt(et,Ee.declarationList),Y_(et,Ee.declarationList)):et=O.updateVariableDeclarationList(Ee.declarationList,Bt),O.updateVariableStatement(Ee,ye,et)}function vo(Ee){return Rc(Wn(Ee.elements,Bt=>Eo(Bt)))}function Eo(Ee){if(Ee.kind!==233&&Ee.name)return Kt(Ee)?$s(Ee.name)?vo(Ee.name):O.createVariableDeclaration(Ee.name,void 0,Qe(Ee),void 0):void 0}function ya(Ee){let Bt;C||(Bt=a,a=fOe(Ee)),J=Ee.name,$.assert($T(Ee));let et=Ee.name.expression;Dr(et,g),C||(a=Bt),J=void 0}function Ls(Ee){return!!Oe&&!!Ee&&qPe(Ee,Z)}function yc(Ee){return Xu(Ee)||P_(Ee)}function Cn(Ee){return Pt(Ee,yc)}function Es(Ee){let Bt=tm(Ee),ye=Dt(Ee);return Bt===ye?Az(Ee.modifiers,et=>Ci(et,bc),bc):O.createModifiersFromModifierFlags(ye)}function Dt(Ee){let Bt=130030,ye=c&&!xsr(Ee)?128:0,et=Ee.parent.kind===308;return(!et||u&&et&&yd(Ee.parent))&&(Bt^=128,ye=0),D_t(Ee,Bt,ye)}function ur(Ee){return O.createNodeArray(yr(Cr(Ee,Bt=>O.updateHeritageClause(Bt,Bn(O.createNodeArray(yr(Bt.types,ye=>ru(ye.expression)||Bt.token===96&&ye.expression.kind===106)),oo,VT))),Bt=>Bt.types&&!!Bt.types.length))}}function xsr(t){return t.kind===265}function Tsr(t,n,a,c){return t.createModifiersFromModifierFlags(D_t(n,a,c))}function D_t(t,n=131070,a=0){let c=tm(t)&n|a;return c&2048&&!(c&32)&&(c^=32),c&2048&&c&128&&(c^=128),c}function A_t(t){switch(t.kind){case 173:case 172:return!Bg(t,2);case 170:case 261:return!0}return!1}function Esr(t){switch(t.kind){case 263:case 268:case 272:case 265:case 264:case 266:case 267:case 244:case 273:case 279:case 278:return!0}return!1}function ksr(t){switch(t.kind){case 181:case 177:case 175:case 178:case 179:case 173:case 172:case 174:case 180:case 182:case 261:case 169:case 234:case 184:case 195:case 185:case 186:case 206:return!0}return!1}function Csr(t){switch(t){case 200:return _0e;case 99:case 7:case 6:case 5:case 100:case 101:case 102:case 199:case 1:return dOe;case 4:return _Oe;default:return p0e}}var gOe={scriptTransformers:j,declarationTransformers:j};function yOe(t,n,a){return{scriptTransformers:Dsr(t,n,a),declarationTransformers:Asr(n)}}function Dsr(t,n,a){if(a)return j;let c=$c(t),u=Km(t),_=hH(t),f=[];return En(f,n&&Cr(n.before,I_t)),f.push(K8e),t.experimentalDecorators&&f.push(X8e),lne(t)&&f.push(cOe),c<99&&f.push(oOe),!t.experimentalDecorators&&(c<99||!_)&&f.push(Y8e),f.push(Q8e),c<8&&f.push(iOe),c<7&&f.push(nOe),c<6&&f.push(rOe),c<5&&f.push(tOe),c<4&&f.push(eOe),c<3&&f.push(lOe),c<2&&(f.push(uOe),f.push(pOe)),f.push(Csr(u)),En(f,n&&Cr(n.after,I_t)),f}function Asr(t){let n=[];return n.push(d0e),En(n,t&&Cr(t.afterDeclarations,Isr)),n}function wsr(t){return n=>K3e(n)?t.transformBundle(n):t.transformSourceFile(n)}function w_t(t,n){return a=>{let c=t(a);return typeof c=="function"?n(a,c):wsr(c)}}function I_t(t){return w_t(t,Cv)}function Isr(t){return w_t(t,(n,a)=>a)}function Rz(t,n){return n}function SK(t,n,a){a(t,n)}function bK(t,n,a,c,u,_,f){var y,g;let k=new Array(359),T,C,O,F=0,M=[],U=[],J=[],G=[],Z=0,Q=!1,re=[],ae=0,_e,me,le=Rz,Oe=SK,be=0,ue=[],De={factory:a,getCompilerOptions:()=>c,getEmitResolver:()=>t,getEmitHost:()=>n,getEmitHelperFactory:Ef(()=>w3e(De)),startLexicalEnvironment:ke,suspendLexicalEnvironment:_t,resumeLexicalEnvironment:Se,endLexicalEnvironment:tt,setLexicalEnvironmentFlags:Qe,getLexicalEnvironmentFlags:We,hoistVariableDeclaration:Ve,hoistFunctionDeclaration:nt,addInitializationStatement:It,startBlockScope:St,endBlockScope:Kt,addBlockScopedVariable:Sr,requestEmitHelper:nn,readEmitHelpers:Nn,enableSubstitution:de,enableEmitNotification:je,isSubstitutionEnabled:ze,isEmitNotificationEnabled:ve,get onSubstituteNode(){return le},set onSubstituteNode(Dr){$.assert(be<1,"Cannot modify transformation hooks after initialization has completed."),$.assert(Dr!==void 0,"Value must not be 'undefined'"),le=Dr},get onEmitNode(){return Oe},set onEmitNode(Dr){$.assert(be<1,"Cannot modify transformation hooks after initialization has completed."),$.assert(Dr!==void 0,"Value must not be 'undefined'"),Oe=Dr},addDiagnostic(Dr){ue.push(Dr)}};for(let Dr of u)Sge(Pn(vs(Dr)));jl("beforeTransform");let Ce=_.map(Dr=>Dr(De)),Ae=Dr=>{for(let Qn of Ce)Dr=Qn(Dr);return Dr};be=1;let Fe=[];for(let Dr of u)(y=hi)==null||y.push(hi.Phase.Emit,"transformNodes",Dr.kind===308?{path:Dr.path}:{kind:Dr.kind,pos:Dr.pos,end:Dr.end}),Fe.push((f?Ae:Be)(Dr)),(g=hi)==null||g.pop();return be=2,jl("afterTransform"),Jm("transformTime","beforeTransform","afterTransform"),{transformed:Fe,substituteNode:ut,emitNodeWithNotification:Le,isEmitNotificationEnabled:ve,dispose:$t,diagnostics:ue};function Be(Dr){return Dr&&(!Ta(Dr)||!Dr.isDeclarationFile)?Ae(Dr):Dr}function de(Dr){$.assert(be<2,"Cannot modify the transformation context after transformation has completed."),k[Dr]|=1}function ze(Dr){return(k[Dr.kind]&1)!==0&&(Xc(Dr)&8)===0}function ut(Dr,Qn){return $.assert(be<3,"Cannot substitute a node after the result is disposed."),Qn&&ze(Qn)&&le(Dr,Qn)||Qn}function je(Dr){$.assert(be<2,"Cannot modify the transformation context after transformation has completed."),k[Dr]|=2}function ve(Dr){return(k[Dr.kind]&2)!==0||(Xc(Dr)&4)!==0}function Le(Dr,Qn,Ko){$.assert(be<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Qn&&(ve(Qn)?Oe(Dr,Qn,Ko):Ko(Dr,Qn))}function Ve(Dr){$.assert(be>0,"Cannot modify the lexical environment during initialization."),$.assert(be<2,"Cannot modify the lexical environment after transformation has completed.");let Qn=Ai(a.createVariableDeclaration(Dr),128);T?T.push(Qn):T=[Qn],F&1&&(F|=2)}function nt(Dr){$.assert(be>0,"Cannot modify the lexical environment during initialization."),$.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),Ai(Dr,2097152),C?C.push(Dr):C=[Dr]}function It(Dr){$.assert(be>0,"Cannot modify the lexical environment during initialization."),$.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),Ai(Dr,2097152),O?O.push(Dr):O=[Dr]}function ke(){$.assert(be>0,"Cannot modify the lexical environment during initialization."),$.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),$.assert(!Q,"Lexical environment is suspended."),M[Z]=T,U[Z]=C,J[Z]=O,G[Z]=F,Z++,T=void 0,C=void 0,O=void 0,F=0}function _t(){$.assert(be>0,"Cannot modify the lexical environment during initialization."),$.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),$.assert(!Q,"Lexical environment is already suspended."),Q=!0}function Se(){$.assert(be>0,"Cannot modify the lexical environment during initialization."),$.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),$.assert(Q,"Lexical environment is not suspended."),Q=!1}function tt(){$.assert(be>0,"Cannot modify the lexical environment during initialization."),$.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),$.assert(!Q,"Lexical environment is suspended.");let Dr;if(T||C||O){if(C&&(Dr=[...C]),T){let Qn=a.createVariableStatement(void 0,a.createVariableDeclarationList(T));Ai(Qn,2097152),Dr?Dr.push(Qn):Dr=[Qn]}O&&(Dr?Dr=[...Dr,...O]:Dr=[...O])}return Z--,T=M[Z],C=U[Z],O=J[Z],F=G[Z],Z===0&&(M=[],U=[],J=[],G=[]),Dr}function Qe(Dr,Qn){F=Qn?F|Dr:F&~Dr}function We(){return F}function St(){$.assert(be>0,"Cannot start a block scope during initialization."),$.assert(be<2,"Cannot start a block scope after transformation has completed."),re[ae]=_e,ae++,_e=void 0}function Kt(){$.assert(be>0,"Cannot end a block scope during initialization."),$.assert(be<2,"Cannot end a block scope after transformation has completed.");let Dr=Pt(_e)?[a.createVariableStatement(void 0,a.createVariableDeclarationList(_e.map(Qn=>a.createVariableDeclaration(Qn)),1))]:void 0;return ae--,_e=re[ae],ae===0&&(re=[]),Dr}function Sr(Dr){$.assert(ae>0,"Cannot add a block scoped variable outside of an iteration body."),(_e||(_e=[])).push(Dr)}function nn(Dr){if($.assert(be>0,"Cannot modify the transformation context during initialization."),$.assert(be<2,"Cannot modify the transformation context after transformation has completed."),$.assert(!Dr.scoped,"Cannot request a scoped emit helper."),Dr.dependencies)for(let Qn of Dr.dependencies)nn(Qn);me=jt(me,Dr)}function Nn(){$.assert(be>0,"Cannot modify the transformation context during initialization."),$.assert(be<2,"Cannot modify the transformation context after transformation has completed.");let Dr=me;return me=void 0,Dr}function $t(){if(be<3){for(let Dr of u)Sge(Pn(vs(Dr)));T=void 0,M=void 0,C=void 0,U=void 0,le=void 0,Oe=void 0,me=void 0,be=3}}}var xK={factory:W,getCompilerOptions:()=>({}),getEmitResolver:Ts,getEmitHost:Ts,getEmitHelperFactory:Ts,startLexicalEnvironment:zs,resumeLexicalEnvironment:zs,suspendLexicalEnvironment:zs,endLexicalEnvironment:Sx,setLexicalEnvironmentFlags:zs,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:zs,hoistFunctionDeclaration:zs,addInitializationStatement:zs,startBlockScope:zs,endBlockScope:Sx,addBlockScopedVariable:zs,requestEmitHelper:zs,readEmitHelpers:Ts,enableSubstitution:zs,enableEmitNotification:zs,isSubstitutionEnabled:Ts,isEmitNotificationEnabled:Ts,onSubstituteNode:Rz,onEmitNode:SK,addDiagnostic:zs},P_t=Nsr();function vOe(t){return Au(t,".tsbuildinfo")}function f0e(t,n,a,c=!1,u,_){let f=Zn(a)?a:zre(t,a,c),y=t.getCompilerOptions();if(!u)if(y.outFile){if(f.length){let g=W.createBundle(f),k=n(Lz(g,t,c),g);if(k)return k}}else for(let g of f){let k=n(Lz(g,t,c),g);if(k)return k}if(_){let g=LA(y);if(g)return n({buildInfoPath:g},void 0)}}function LA(t){let n=t.configFilePath;if(!Psr(t))return;if(t.tsBuildInfoFile)return t.tsBuildInfoFile;let a=t.outFile,c;if(a)c=Qm(a);else{if(!n)return;let u=Qm(n);c=t.outDir?t.rootDir?mb(t.outDir,lh(t.rootDir,u,!0)):Xi(t.outDir,t_(u)):u}return c+".tsbuildinfo"}function Psr(t){return dP(t)||!!t.tscBuild}function SOe(t,n){let a=t.outFile,c=t.emitDeclarationOnly?void 0:a,u=c&&N_t(c,t),_=n||fg(t)?Qm(a)+".d.ts":void 0,f=_&&one(t)?_+".map":void 0;return{jsFilePath:c,sourceMapFilePath:u,declarationFilePath:_,declarationMapPath:f}}function Lz(t,n,a){let c=n.getCompilerOptions();if(t.kind===309)return SOe(c,a);{let u=K6e(t.fileName,n,TK(t.fileName,c)),_=h0(t),f=_&&M1(t.fileName,u,n.getCurrentDirectory(),!n.useCaseSensitiveFileNames())===0,y=c.emitDeclarationOnly||f?void 0:u,g=!y||h0(t)?void 0:N_t(y,c),k=a||fg(c)&&!_?Q6e(t.fileName,n):void 0,T=k&&one(c)?k+".map":void 0;return{jsFilePath:y,sourceMapFilePath:g,declarationFilePath:k,declarationMapPath:T}}}function N_t(t,n){return n.sourceMap&&!n.inlineSourceMap?t+".map":void 0}function TK(t,n){return Au(t,".json")?".json":n.jsx===1&&_p(t,[".jsx",".tsx"])?".jsx":_p(t,[".mts",".mjs"])?".mjs":_p(t,[".cts",".cjs"])?".cjs":".js"}function O_t(t,n,a,c){return a?mb(a,lh(c(),t,n)):t}function Mz(t,n,a,c=()=>S3(n,a)){return m0e(t,n.options,a,c)}function m0e(t,n,a,c){return hE(O_t(t,a,n.declarationDir||n.outDir,c),$re(t))}function F_t(t,n,a,c=()=>S3(n,a)){if(n.options.emitDeclarationOnly)return;let u=Au(t,".json"),_=h0e(t,n.options,a,c);return!u||M1(t,_,$.checkDefined(n.options.configFilePath),a)!==0?_:void 0}function h0e(t,n,a,c){return hE(O_t(t,a,n.outDir,c),TK(t,n))}function R_t(){let t;return{addOutput:n,getOutputs:a};function n(c){c&&(t||(t=[])).push(c)}function a(){return t||j}}function L_t(t,n){let{jsFilePath:a,sourceMapFilePath:c,declarationFilePath:u,declarationMapPath:_}=SOe(t.options,!1);n(a),n(c),n(u),n(_)}function M_t(t,n,a,c,u){if(sf(n))return;let _=F_t(n,t,a,u);if(c(_),!Au(n,".json")&&(_&&t.options.sourceMap&&c(`${_}.map`),fg(t.options))){let f=Mz(n,t,a,u);c(f),t.options.declarationMap&&c(`${f}.map`)}}function jz(t,n,a,c,u){let _;return t.rootDir?(_=za(t.rootDir,a),u?.(t.rootDir)):t.composite&&t.configFilePath?(_=mo(Z_(t.configFilePath)),u?.(_)):_=AOe(n(),a,c),_&&_[_.length-1]!==Gl&&(_+=Gl),_}function S3({options:t,fileNames:n},a){return jz(t,()=>yr(n,c=>!(t.noEmitForJsFiles&&_p(c,cL))&&!sf(c)),mo(Z_($.checkDefined(t.configFilePath))),_d(!a))}function Wie(t,n){let{addOutput:a,getOutputs:c}=R_t();if(t.options.outFile)L_t(t,a);else{let u=Ef(()=>S3(t,n));for(let _ of t.fileNames)M_t(t,_,n,a,u)}return a(LA(t.options)),c()}function j_t(t,n,a){n=Qs(n),$.assert(un(t.fileNames,n),"Expected fileName to be present in command line");let{addOutput:c,getOutputs:u}=R_t();return t.options.outFile?L_t(t,c):M_t(t,n,a,c),u()}function g0e(t,n){if(t.options.outFile){let{jsFilePath:u,declarationFilePath:_}=SOe(t.options,!1);return $.checkDefined(u||_,`project ${t.options.configFilePath} expected to have at least one output`)}let a=Ef(()=>S3(t,n));for(let u of t.fileNames){if(sf(u))continue;let _=F_t(u,t,n,a);if(_)return _;if(!Au(u,".json")&&fg(t.options))return Mz(u,t,n,a)}let c=LA(t.options);return c||$.fail(`project ${t.options.configFilePath} expected to have at least one output`)}function y0e(t,n){return!!n&&!!t}function v0e(t,n,a,{scriptTransformers:c,declarationTransformers:u},_,f,y,g){var k=n.getCompilerOptions(),T=k.sourceMap||k.inlineSourceMap||one(k)?[]:void 0,C=k.listEmittedFiles?[]:void 0,O=IU(),F=fE(k),M=nH(F),{enter:U,exit:J}=iO("printTime","beforePrint","afterPrint"),G=!1;return U(),f0e(n,Z,zre(n,a,y),y,f,!a&&!g),J(),{emitSkipped:G,diagnostics:O.getDiagnostics(),emittedFiles:C,sourceMaps:T};function Z({jsFilePath:Ce,sourceMapFilePath:Ae,declarationFilePath:Fe,declarationMapPath:Be,buildInfoPath:de},ze){var ut,je,ve,Le,Ve,nt;(ut=hi)==null||ut.push(hi.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:Ce}),re(ze,Ce,Ae),(je=hi)==null||je.pop(),(ve=hi)==null||ve.push(hi.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:Fe}),ae(ze,Fe,Be),(Le=hi)==null||Le.pop(),(Ve=hi)==null||Ve.push(hi.Phase.Emit,"emitBuildInfo",{buildInfoPath:de}),Q(de),(nt=hi)==null||nt.pop()}function Q(Ce){if(!Ce||a)return;if(n.isEmitBlocked(Ce)){G=!0;return}let Ae=n.getBuildInfo()||{version:L};Jre(n,O,Ce,bOe(Ae),!1,void 0,{buildInfo:Ae}),C?.push(Ce)}function re(Ce,Ae,Fe){if(!Ce||_||!Ae)return;if(n.isEmitBlocked(Ae)||k.noEmit){G=!0;return}(Ta(Ce)?[Ce]:yr(Ce.sourceFiles,kre)).forEach(ut=>{(k.noCheck||!GU(ut,k))&&me(ut)});let Be=bK(t,n,W,k,[Ce],c,!1),de={removeComments:k.removeComments,newLine:k.newLine,noEmitHelpers:k.noEmitHelpers,module:Km(k),moduleResolution:km(k),target:$c(k),sourceMap:k.sourceMap,inlineSourceMap:k.inlineSourceMap,inlineSources:k.inlineSources,extendedDiagnostics:k.extendedDiagnostics},ze=DC(de,{hasGlobalName:t.hasGlobalName,onEmitNode:Be.emitNodeWithNotification,isEmitNotificationEnabled:Be.isEmitNotificationEnabled,substituteNode:Be.substituteNode});$.assert(Be.transformed.length===1,"Should only see one output from the transform"),le(Ae,Fe,Be,ze,k),Be.dispose(),C&&(C.push(Ae),Fe&&C.push(Fe))}function ae(Ce,Ae,Fe){if(!Ce||_===0)return;if(!Ae){(_||k.emitDeclarationOnly)&&(G=!0);return}let Be=Ta(Ce)?[Ce]:Ce.sourceFiles,de=y?Be:yr(Be,kre),ze=k.outFile?[W.createBundle(de)]:de;de.forEach(ve=>{(_&&!fg(k)||k.noCheck||y0e(_,y)||!GU(ve,k))&&_e(ve)});let ut=bK(t,n,W,k,ze,u,!1);if(te(ut.diagnostics))for(let ve of ut.diagnostics)O.add(ve);let je=!!ut.diagnostics&&!!ut.diagnostics.length||!!n.isEmitBlocked(Ae)||!!k.noEmit;if(G=G||je,!je||y){$.assert(ut.transformed.length===1,"Should only see one output from the decl transform");let ve={removeComments:k.removeComments,newLine:k.newLine,noEmitHelpers:!0,module:k.module,moduleResolution:k.moduleResolution,target:k.target,sourceMap:_!==2&&k.declarationMap,inlineSourceMap:k.inlineSourceMap,extendedDiagnostics:k.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},Le=DC(ve,{hasGlobalName:t.hasGlobalName,onEmitNode:ut.emitNodeWithNotification,isEmitNotificationEnabled:ut.isEmitNotificationEnabled,substituteNode:ut.substituteNode}),Ve=le(Ae,Fe,ut,Le,{sourceMap:ve.sourceMap,sourceRoot:k.sourceRoot,mapRoot:k.mapRoot,extendedDiagnostics:k.extendedDiagnostics});C&&(Ve&&C.push(Ae),Fe&&C.push(Fe))}ut.dispose()}function _e(Ce){if(Xu(Ce)){Ce.expression.kind===80&&t.collectLinkedAliases(Ce.expression,!0);return}else if(Cm(Ce)){t.collectLinkedAliases(Ce.propertyName||Ce.name,!0);return}Is(Ce,_e)}function me(Ce){ph(Ce)||CF(Ce,Ae=>{if(gd(Ae)&&!(_E(Ae)&32)||fp(Ae))return"skip";t.markLinkedReferences(Ae)})}function le(Ce,Ae,Fe,Be,de){let ze=Fe.transformed[0],ut=ze.kind===309?ze:void 0,je=ze.kind===308?ze:void 0,ve=ut?ut.sourceFiles:[je],Le;Oe(de,ze)&&(Le=P8e(n,t_(Z_(Ce)),be(de),ue(de,Ce,je),de)),ut?Be.writeBundle(ut,M,Le):Be.writeFile(je,M,Le);let Ve;if(Le){T&&T.push({inputSourceFileNames:Le.getSources(),sourceMap:Le.toJSON()});let ke=De(de,Le,Ce,Ae,je);if(ke&&(M.isAtStartOfLine()||M.rawWrite(F),Ve=M.getTextPos(),M.writeComment(`//# sourceMappingURL=${ke}`)),Ae){let _t=Le.toString();Jre(n,O,Ae,_t,!1,ve)}}else M.writeLine();let nt=M.getText(),It={sourceMapUrlPos:Ve,diagnostics:Fe.diagnostics};return Jre(n,O,Ce,nt,!!k.emitBOM,ve,It),M.clear(),!It.skippedDtsWrite}function Oe(Ce,Ae){return(Ce.sourceMap||Ce.inlineSourceMap)&&(Ae.kind!==308||!Au(Ae.fileName,".json"))}function be(Ce){let Ae=Z_(Ce.sourceRoot||"");return Ae&&r_(Ae)}function ue(Ce,Ae,Fe){if(Ce.sourceRoot)return n.getCommonSourceDirectory();if(Ce.mapRoot){let Be=Z_(Ce.mapRoot);return Fe&&(Be=mo(qre(Fe.fileName,n,Be))),Fy(Be)===0&&(Be=Xi(n.getCommonSourceDirectory(),Be)),Be}return mo(Qs(Ae))}function De(Ce,Ae,Fe,Be,de){if(Ce.inlineSourceMap){let ut=Ae.toString();return`data:application/json;base64,${_4e(f_,ut)}`}let ze=t_(Z_($.checkDefined(Be)));if(Ce.mapRoot){let ut=Z_(Ce.mapRoot);return de&&(ut=mo(qre(de.fileName,n,ut))),Fy(ut)===0?(ut=Xi(n.getCommonSourceDirectory(),ut),encodeURI(FT(mo(Qs(Fe)),Xi(ut,ze),n.getCurrentDirectory(),n.getCanonicalFileName,!0))):encodeURI(Xi(ut,ze))}return encodeURI(ze)}}function bOe(t){return JSON.stringify(t)}function S0e(t,n){return Che(t,n)}var xOe={hasGlobalName:Ts,getReferencedExportContainer:Ts,getReferencedImportDeclaration:Ts,getReferencedDeclarationWithCollidingName:Ts,isDeclarationWithCollidingName:Ts,isValueAliasDeclaration:Ts,isReferencedAliasDeclaration:Ts,isTopLevelValueImportEqualsWithEntityName:Ts,hasNodeCheckFlag:Ts,isDeclarationVisible:Ts,isLateBound:t=>!1,collectLinkedAliases:Ts,markLinkedReferences:Ts,isImplementationOfOverload:Ts,requiresAddingImplicitUndefined:Ts,isExpandoFunctionDeclaration:Ts,getPropertiesOfContainerFunction:Ts,createTypeOfDeclaration:Ts,createReturnTypeOfSignatureDeclaration:Ts,createTypeOfExpression:Ts,createLiteralConstValue:Ts,isSymbolAccessible:Ts,isEntityNameVisible:Ts,getConstantValue:Ts,getEnumMemberValue:Ts,getReferencedValueDeclaration:Ts,getReferencedValueDeclarations:Ts,getTypeReferenceSerializationKind:Ts,isOptionalParameter:Ts,isArgumentsLocalBinding:Ts,getExternalModuleFileFromDeclaration:Ts,isLiteralConstDeclaration:Ts,getJsxFactoryEntity:Ts,getJsxFragmentFactoryEntity:Ts,isBindingCapturedByNode:Ts,getDeclarationStatementsForSourceFile:Ts,isImportRequiredByAugmentation:Ts,isDefinitelyReferenceToGlobalSymbolObject:Ts,createLateBoundIndexSignatures:Ts,symbolToDeclarations:Ts},TOe=Ef(()=>DC({})),wP=Ef(()=>DC({removeComments:!0})),EOe=Ef(()=>DC({removeComments:!0,neverAsciiEscape:!0})),b0e=Ef(()=>DC({removeComments:!0,omitTrailingSemicolon:!0}));function DC(t={},n={}){var{hasGlobalName:a,onEmitNode:c=SK,isEmitNotificationEnabled:u,substituteNode:_=Rz,onBeforeEmitNode:f,onAfterEmitNode:y,onBeforeEmitNodeArray:g,onAfterEmitNodeArray:k,onBeforeEmitToken:T,onAfterEmitToken:C}=n,O=!!t.extendedDiagnostics,F=!!t.omitBraceSourceMapPositions,M=fE(t),U=Km(t),J=new Map,G,Z,Q,re,ae,_e,me,le,Oe,be,ue,De,Ce,Ae,Fe,Be=t.preserveSourceNewlines,de,ze,ut,je=bM,ve,Le=!0,Ve,nt,It=-1,ke,_t=-1,Se=-1,tt=-1,Qe=-1,We,St,Kt=!1,Sr=!!t.removeComments,nn,Nn,{enter:$t,exit:Dr}=S$(O,"commentTime","beforeComment","afterComment"),Qn=W.parenthesizer,Ko={select:B=>B===0?Qn.parenthesizeLeadingTypeArgument:void 0},is=nd();return Ls(),{printNode:sr,printList:uo,printFile:oo,printBundle:Wa,writeNode:Oi,writeList:$o,writeFile:Ht,writeBundle:ft};function sr(B,Pe,Wt){switch(B){case 0:$.assert(Ta(Pe),"Expected a SourceFile node.");break;case 2:$.assert(ct(Pe),"Expected an Identifier node.");break;case 1:$.assert(Vt(Pe),"Expected an Expression node.");break}switch(Pe.kind){case 308:return oo(Pe);case 309:return Wa(Pe)}return Oi(B,Pe,Wt,Wr()),ai()}function uo(B,Pe,Wt){return $o(B,Pe,Wt,Wr()),ai()}function Wa(B){return ft(B,Wr(),void 0),ai()}function oo(B){return Ht(B,Wr(),void 0),ai()}function Oi(B,Pe,Wt,ln){let Fo=ze;ya(ln,void 0),vo(B,Pe,Wt),Ls(),ze=Fo}function $o(B,Pe,Wt,ln){let Fo=ze;ya(ln,void 0),Wt&&Eo(Wt),io(void 0,Pe,B),Ls(),ze=Fo}function ft(B,Pe,Wt){ve=!1;let ln=ze;ya(Pe,Wt),RE(B),Y1(B),xr(B),Eq(B);for(let Fo of B.sourceFiles)vo(0,Fo,Fo);Ls(),ze=ln}function Ht(B,Pe,Wt){ve=!0;let ln=ze;ya(Pe,Wt),RE(B),Y1(B),vo(0,B,B),Ls(),ze=ln}function Wr(){return ut||(ut=nH(M))}function ai(){let B=ut.getText();return ut.clear(),B}function vo(B,Pe,Wt){Wt&&Eo(Wt),ye(B,Pe,void 0)}function Eo(B){G=B,We=void 0,St=void 0,B&&QP(B)}function ya(B,Pe){B&&t.omitTrailingSemicolon&&(B=uhe(B)),ze=B,Ve=Pe,Le=!ze||!Ve}function Ls(){Z=[],Q=[],re=[],ae=new Set,_e=[],me=new Map,le=[],Oe=0,be=[],ue=0,De=[],Ce=void 0,Ae=[],Fe=void 0,G=void 0,We=void 0,St=void 0,ya(void 0,void 0)}function yc(){return We||(We=Ry($.checkDefined(G)))}function Cn(B,Pe){B!==void 0&&ye(4,B,Pe)}function Es(B){B!==void 0&&ye(2,B,void 0)}function Dt(B,Pe){B!==void 0&&ye(1,B,Pe)}function ur(B){ye(Ic(B)?6:4,B)}function Ee(B){Be&&J1(B)&4&&(Be=!1)}function Bt(B){Be=B}function ye(B,Pe,Wt){Nn=Wt,Ot(0,B,Pe)(B,Pe),Nn=void 0}function et(B){return!Sr&&!Ta(B)}function Ct(B){return!Le&&!Ta(B)&&!Ere(B)}function Ot(B,Pe,Wt){switch(B){case 0:if(c!==SK&&(!u||u(Wt)))return at;case 1:if(_!==Rz&&(nn=_(Pe,Wt)||Wt)!==Wt)return Nn&&(nn=Nn(nn)),Et;case 2:if(et(Wt))return HP;case 3:if(Ct(Wt))return Q3;case 4:return Zt;default:return $.assertNever(B)}}function ar(B,Pe,Wt){return Ot(B+1,Pe,Wt)}function at(B,Pe){let Wt=ar(0,B,Pe);c(B,Pe,Wt)}function Zt(B,Pe){if(f?.(Pe),Be){let Wt=Be;Ee(Pe),Qt(B,Pe),Bt(Wt)}else Qt(B,Pe);y?.(Pe),Nn=void 0}function Qt(B,Pe,Wt=!0){if(Wt){let ln=xge(Pe);if(ln)return Ne(B,Pe,ln)}if(B===0)return tw(Ba(Pe,Ta));if(B===2)return pe(Ba(Pe,ct));if(B===6)return er(Ba(Pe,Ic),!0);if(B===3)return pr(Ba(Pe,Zu));if(B===7)return zS(Ba(Pe,l3));if(B===5)return $.assertNode(Pe,Oge),Iv(!0);if(B===4){switch(Pe.kind){case 16:case 17:case 18:return er(Pe,!1);case 80:return pe(Pe);case 81:return Gt(Pe);case 167:return mr(Pe);case 168:return Mt(Pe);case 169:return Ir(Pe);case 170:return ii(Pe);case 171:return Rn(Pe);case 172:return zn(Pe);case 173:return Rt(Pe);case 174:return rr(Pe);case 175:return _r(Pe);case 176:return wr(Pe);case 177:return pn(Pe);case 178:case 179:return tn(Pe);case 180:return lr(Pe);case 181:return cn(Pe);case 182:return gn(Pe);case 183:return Uo(Pe);case 184:return Ys(Pe);case 185:return ec(Pe);case 186:return V_(Pe);case 187:return Nu(Pe);case 188:return kc(Pe);case 189:return o_(Pe);case 190:return _s(Pe);case 191:return sl(Pe);case 193:return Yc(Pe);case 194:return Ar(Pe);case 195:return Ql(Pe);case 196:return Gp(Pe);case 197:return N_(Pe);case 234:return uf(Pe);case 198:return lf();case 199:return Yu(Pe);case 200:return Hp(Pe);case 201:return H(Pe);case 202:return st(Pe);case 203:return sc(Pe);case 204:return zt(Pe);case 205:return bn(Pe);case 206:return Er(Pe);case 207:return jn(Pe);case 208:return So(Pe);case 209:return Di(Pe);case 240:return Wx(Pe);case 241:return $r();case 242:return Gx(Pe);case 244:return Nd(Pe);case 243:return Iv(!1);case 245:return Hy(Pe);case 246:return US(Pe);case 247:return Ft(Pe);case 248:return Nr(Pe);case 249:return Mr(Pe);case 250:return wn(Pe);case 251:return Yn(Pe);case 252:return Mo(Pe);case 253:return Ea(Pe);case 254:return Ws(Pe);case 255:return Xa(Pe);case 256:return ks(Pe);case 257:return cp(Pe);case 258:return Cc(Pe);case 259:return pf(Pe);case 260:return Kg(Pe);case 261:return Ky(Pe);case 262:return A0(Pe);case 263:return r2(Pe);case 264:return dn(Pe);case 265:return Fi(Pe);case 266:return $n(Pe);case 267:return oi(Pe);case 268:return sa(Pe);case 269:return os(Pe);case 270:return Po(Pe);case 271:return Fb(Pe);case 272:return as(Pe);case 273:return lp(Pe);case 274:return Hh(Pe);case 275:return f1(Pe);case 281:return hM(Pe);case 276:return Pf(Pe);case 277:return m1(Pe);case 278:return Qg(Pe);case 279:return GA(Pe);case 280:return xq(Pe);case 282:return gM(Pe);case 301:return Ob(Pe);case 302:return HA(Pe);case 283:return;case 284:return P3(Pe);case 12:return O3(Pe);case 287:case 290:return Tq(Pe);case 288:case 291:return t7(Pe);case 292:return yM(Pe);case 293:return QA(Pe);case 294:return F3(Pe);case 295:return n7(Pe);case 296:return i7(Pe);case 297:return RC(Pe);case 298:return OE(Pe);case 299:return i2(Pe);case 300:return o2(Pe);case 304:return LC(Pe);case 305:return ZA(Pe);case 306:return R3(Pe);case 307:return XA(Pe);case 308:return tw(Pe);case 309:return $.fail("Bundles should be printed using printBundle");case 310:return ew(Pe);case 311:return s2(Pe);case 313:return qi("*");case 314:return qi("?");case 315:return uu(Pe);case 316:return $a(Pe);case 317:return bs(Pe);case 318:return Cp(Pe);case 192:case 319:return Gy(Pe);case 320:return;case 321:return il(Pe);case 323:return eh(Pe);case 324:return Lb(Pe);case 328:case 333:case 338:return YA(Pe);case 329:case 330:return Rb(Pe);case 331:case 332:return;case 334:case 335:case 336:case 337:return;case 339:return Kh(Pe);case 340:return sm(Pe);case 342:case 349:return Sh(Pe);case 341:case 343:case 344:case 345:case 350:case 351:return L3(Pe);case 346:return tp(Pe);case 347:return am(Pe);case 348:return vM(Pe);case 352:return a2(Pe);case 354:case 355:return}if(Vt(Pe)&&(B=1,_!==Rz)){let ln=_(B,Pe)||Pe;ln!==Pe&&(Pe=ln,Nn&&(Pe=Nn(Pe)))}}if(B===1)switch(Pe.kind){case 9:case 10:return Ye(Pe);case 11:case 14:case 15:return er(Pe,!1);case 80:return pe(Pe);case 81:return Gt(Pe);case 210:return On(Pe);case 211:return ua(Pe);case 212:return va(Pe);case 213:return xc(Pe);case 214:return ep(Pe);case 215:return W_(Pe);case 216:return g_(Pe);case 217:return xu(Pe);case 218:return a_(Pe);case 219:return Gg(Pe);case 220:return Wf(Pe);case 221:return rt(Pe);case 222:return br(Pe);case 223:return Vn(Pe);case 224:return Ga(Pe);case 225:return el(Pe);case 226:return Uc(Pe);case 227:return is(Pe);case 228:return Mu(Pe);case 229:return Dp(Pe);case 230:return Kp(Pe);case 231:return vy(Pe);case 232:return If(Pe);case 233:return;case 235:return Hg(Pe);case 236:return Ym(Pe);case 234:return uf(Pe);case 239:return D0(Pe);case 237:return Pb(Pe);case 238:return $.fail("SyntheticExpression should never be printed.");case 283:return;case 285:return NE(Pe);case 286:return N3(Pe);case 289:return e7(Pe);case 353:return $.fail("SyntaxList should not be printed");case 354:return;case 356:return gt(Pe);case 357:return M3(Pe);case 358:return $.fail("SyntheticReferenceExpression should not be printed")}if(Uh(Pe.kind))return U3(Pe,gs);if(rme(Pe.kind))return U3(Pe,qi);$.fail(`Unhandled SyntaxKind: ${$.formatSyntaxKind(Pe.kind)}.`)}function pr(B){Cn(B.name),Ii(),gs("in"),Ii(),Cn(B.constraint)}function Et(B,Pe){let Wt=ar(1,B,Pe);$.assertIsDefined(nn),Pe=nn,nn=void 0,Wt(B,Pe)}function xr(B){let Pe=!1,Wt=B.kind===309?B:void 0;if(Wt&&U===0)return;let ln=Wt?Wt.sourceFiles.length:1;for(let Fo=0;Fo")}function Mp(B){Ii(),Cn(B.type)}function Cp(B){gs("function"),nw(B,B.parameters),qi(":"),Cn(B.type)}function uu(B){qi("?"),Cn(B.type)}function $a(B){qi("!"),Cn(B.type)}function bs(B){Cn(B.type),qi("=")}function V_(B){Nv(B,B.modifiers),gs("new"),Ii(),vh(B,Ss,Mp)}function Nu(B){gs("typeof"),Ii(),Cn(B.exprName),w0(B,B.typeArguments)}function kc(B){tv(B),X(B.members,GP),qi("{");let Pe=Xc(B)&1?768:32897;io(B,B.members,Pe|524288),qi("}"),p2(B)}function o_(B){Cn(B.elementType,Qn.parenthesizeNonArrayTypeOfPostfixType),qi("["),qi("]")}function Gy(B){qi("..."),Cn(B.type)}function _s(B){ee(23,B.pos,qi,B);let Pe=Xc(B)&1?528:657;io(B,B.elements,Pe|524288,Qn.parenthesizeElementTypeOfTupleType),ee(24,B.elements.end,qi,B)}function sc(B){Cn(B.dotDotDotToken),Cn(B.name),Cn(B.questionToken),ee(59,B.name.end,qi,B),Ii(),Cn(B.type)}function sl(B){Cn(B.type,Qn.parenthesizeTypeOfOptionalType),qi("?")}function Yc(B){io(B,B.types,516,Qn.parenthesizeConstituentTypeOfUnionType)}function Ar(B){io(B,B.types,520,Qn.parenthesizeConstituentTypeOfIntersectionType)}function Ql(B){Cn(B.checkType,Qn.parenthesizeCheckTypeOfConditionalType),Ii(),gs("extends"),Ii(),Cn(B.extendsType,Qn.parenthesizeExtendsTypeOfConditionalType),Ii(),qi("?"),Ii(),Cn(B.trueType),Ii(),qi(":"),Ii(),Cn(B.falseType)}function Gp(B){gs("infer"),Ii(),Cn(B.typeParameter)}function N_(B){qi("("),Cn(B.type),qi(")")}function lf(){gs("this")}function Yu(B){$C(B.operator,gs),Ii();let Pe=B.operator===148?Qn.parenthesizeOperandOfReadonlyTypeOperator:Qn.parenthesizeOperandOfTypeOperator;Cn(B.type,Pe)}function Hp(B){Cn(B.objectType,Qn.parenthesizeNonArrayTypeOfPostfixType),qi("["),Cn(B.indexType),qi("]")}function H(B){let Pe=Xc(B);qi("{"),Pe&1?Ii():(Pm(),Mb()),B.readonlyToken&&(Cn(B.readonlyToken),B.readonlyToken.kind!==148&&gs("readonly"),Ii()),qi("["),ye(3,B.typeParameter),B.nameType&&(Ii(),gs("as"),Ii(),Cn(B.nameType)),qi("]"),B.questionToken&&(Cn(B.questionToken),B.questionToken.kind!==58&&qi("?")),qi(":"),Ii(),Cn(B.type),rh(),Pe&1?Ii():(Pm(),Ov()),io(B,B.members,2),qi("}")}function st(B){Dt(B.literal)}function zt(B){Cn(B.head),io(B,B.templateSpans,262144)}function Er(B){B.isTypeOf&&(gs("typeof"),Ii()),gs("import"),qi("("),Cn(B.argument),B.attributes&&(qi(","),Ii(),ye(7,B.attributes)),qi(")"),B.qualifier&&(qi("."),Cn(B.qualifier)),w0(B,B.typeArguments)}function jn(B){qi("{"),io(B,B.elements,525136),qi("}")}function So(B){qi("["),io(B,B.elements,524880),qi("]")}function Di(B){Cn(B.dotDotDotToken),B.propertyName&&(Cn(B.propertyName),qi(":"),Ii()),Cn(B.name),rw(B.initializer,B.name.end,B,Qn.parenthesizeExpressionForDisallowedComma)}function On(B){let Pe=B.elements,Wt=B.multiLine?65536:0;Ki(B,Pe,8914|Wt,Qn.parenthesizeExpressionForDisallowedComma)}function ua(B){tv(B),X(B.properties,GP);let Pe=Xc(B)&131072;Pe&&Mb();let Wt=B.multiLine?65536:0,ln=G&&G.languageVersion>=1&&!h0(G)?64:0;io(B,B.properties,526226|ln|Wt),Pe&&Ov(),p2(B)}function va(B){Dt(B.expression,Qn.parenthesizeLeftSideOfAccess);let Pe=B.questionDotToken||xv(W.createToken(25),B.expression.end,B.name.pos),Wt=JS(B,B.expression,Pe),ln=JS(B,Pe,B.name);I0(Wt,!1),Pe.kind!==29&&Bl(B.expression)&&!ze.hasTrailingComment()&&!ze.hasTrailingWhitespace()&&qi("."),B.questionDotToken?Cn(Pe):ee(Pe.kind,B.expression.end,qi,B),I0(ln,!1),Cn(B.name),Qh(Wt,ln)}function Bl(B){if(B=q1(B),qh(B)){let Pe=qC(B,void 0,!0,!1);return!(B.numericLiteralFlags&448)&&!Pe.includes(Zs(25))&&!Pe.includes("E")&&!Pe.includes("e")}else if(wu(B)){let Pe=b3e(B);return typeof Pe=="number"&&isFinite(Pe)&&Pe>=0&&Math.floor(Pe)===Pe}}function xc(B){Dt(B.expression,Qn.parenthesizeLeftSideOfAccess),Cn(B.questionDotToken),ee(23,B.expression.end,qi,B),Dt(B.argumentExpression),ee(24,B.argumentExpression.end,qi,B)}function ep(B){let Pe=J1(B)&16;Pe&&(qi("("),l2("0"),qi(","),Ii()),Dt(B.expression,Qn.parenthesizeLeftSideOfAccess),Pe&&qi(")"),Cn(B.questionDotToken),w0(B,B.typeArguments),Ki(B,B.arguments,2576,Qn.parenthesizeExpressionForDisallowedComma)}function W_(B){ee(105,B.pos,gs,B),Ii(),Dt(B.expression,Qn.parenthesizeExpressionOfNew),w0(B,B.typeArguments),Ki(B,B.arguments,18960,Qn.parenthesizeExpressionForDisallowedComma)}function g_(B){let Pe=J1(B)&16;Pe&&(qi("("),l2("0"),qi(","),Ii()),Dt(B.tag,Qn.parenthesizeLeftSideOfAccess),Pe&&qi(")"),w0(B,B.typeArguments),Ii(),Dt(B.template)}function xu(B){qi("<"),Cn(B.type),qi(">"),Dt(B.expression,Qn.parenthesizeOperandOfPrefixUnary)}function a_(B){let Pe=ee(21,B.pos,qi,B),Wt=UC(B.expression,B);Dt(B.expression,void 0),s7(B.expression,B),Qh(Wt),ee(22,B.expression?B.expression.end:Pe,qi,B)}function Gg(B){Xx(B.name),PE(B)}function Wf(B){Nv(B,B.modifiers),vh(B,yy,Wh)}function yy(B){Qx(B,B.typeParameters),qS(B,B.parameters),g1(B.type),Ii(),Cn(B.equalsGreaterThanToken)}function Wh(B){Vs(B.body)?dt(B.body):(Ii(),Dt(B.body,Qn.parenthesizeConciseBodyOfArrowFunction))}function rt(B){ee(91,B.pos,gs,B),Ii(),Dt(B.expression,Qn.parenthesizeOperandOfPrefixUnary)}function br(B){ee(114,B.pos,gs,B),Ii(),Dt(B.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Vn(B){ee(116,B.pos,gs,B),Ii(),Dt(B.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Ga(B){ee(135,B.pos,gs,B),Ii(),Dt(B.expression,Qn.parenthesizeOperandOfPrefixUnary)}function el(B){$C(B.operator,gg),tl(B)&&Ii(),Dt(B.operand,Qn.parenthesizeOperandOfPrefixUnary)}function tl(B){let Pe=B.operand;return Pe.kind===225&&(B.operator===40&&(Pe.operator===40||Pe.operator===46)||B.operator===41&&(Pe.operator===41||Pe.operator===47))}function Uc(B){Dt(B.operand,Qn.parenthesizeOperandOfPostfixUnary),$C(B.operator,gg)}function nd(){return iie(B,Pe,Wt,ln,Fo,void 0);function B(Ya,ra){if(ra){ra.stackIndex++,ra.preserveSourceNewlinesStack[ra.stackIndex]=Be,ra.containerPosStack[ra.stackIndex]=Se,ra.containerEndStack[ra.stackIndex]=tt,ra.declarationListContainerEndStack[ra.stackIndex]=Qe;let Wc=ra.shouldEmitCommentsStack[ra.stackIndex]=et(Ya),F_=ra.shouldEmitSourceMapsStack[ra.stackIndex]=Ct(Ya);f?.(Ya),Wc&&Fv(Ya),F_&&cl(Ya),Ee(Ya)}else ra={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return ra}function Pe(Ya,ra,Wc){return na(Ya,Wc,"left")}function Wt(Ya,ra,Wc){let F_=Ya.kind!==28,cm=JS(Wc,Wc.left,Ya),bh=JS(Wc,Ya,Wc.right);I0(cm,F_),eT(Ya.pos),U3(Ya,Ya.kind===103?gs:gg),rv(Ya.end,!0),I0(bh,!0)}function ln(Ya,ra,Wc){return na(Ya,Wc,"right")}function Fo(Ya,ra){let Wc=JS(Ya,Ya.left,Ya.operatorToken),F_=JS(Ya,Ya.operatorToken,Ya.right);if(Qh(Wc,F_),ra.stackIndex>0){let cm=ra.preserveSourceNewlinesStack[ra.stackIndex],bh=ra.containerPosStack[ra.stackIndex],fw=ra.containerEndStack[ra.stackIndex],xh=ra.declarationListContainerEndStack[ra.stackIndex],WC=ra.shouldEmitCommentsStack[ra.stackIndex],y7=ra.shouldEmitSourceMapsStack[ra.stackIndex];Bt(cm),y7&&$i(Ya),WC&&VC(Ya,bh,fw,xh),y?.(Ya),ra.stackIndex--}}function na(Ya,ra,Wc){let F_=Wc==="left"?Qn.getParenthesizeLeftSideOfBinaryForOperator(ra.operatorToken.kind):Qn.getParenthesizeRightSideOfBinaryForOperator(ra.operatorToken.kind),cm=Ot(0,1,Ya);if(cm===Et&&($.assertIsDefined(nn),Ya=F_(Ba(nn,Vt)),cm=ar(1,1,Ya),nn=void 0),(cm===HP||cm===Q3||cm===Zt)&&wi(Ya))return Ya;Nn=F_,cm(1,Ya)}}function Mu(B){let Pe=JS(B,B.condition,B.questionToken),Wt=JS(B,B.questionToken,B.whenTrue),ln=JS(B,B.whenTrue,B.colonToken),Fo=JS(B,B.colonToken,B.whenFalse);Dt(B.condition,Qn.parenthesizeConditionOfConditionalExpression),I0(Pe,!0),Cn(B.questionToken),I0(Wt,!0),Dt(B.whenTrue,Qn.parenthesizeBranchOfConditionalExpression),Qh(Pe,Wt),I0(ln,!0),Cn(B.colonToken),I0(Fo,!0),Dt(B.whenFalse,Qn.parenthesizeBranchOfConditionalExpression),Qh(ln,Fo)}function Dp(B){Cn(B.head),io(B,B.templateSpans,262144)}function Kp(B){ee(127,B.pos,gs,B),Cn(B.asteriskToken),LE(B.expression&&In(B.expression),Ka)}function vy(B){ee(26,B.pos,qi,B),Dt(B.expression,Qn.parenthesizeExpressionForDisallowedComma)}function If(B){Xx(B.name),qn(B)}function uf(B){Dt(B.expression,Qn.parenthesizeLeftSideOfAccess),w0(B,B.typeArguments)}function Hg(B){Dt(B.expression,void 0),B.type&&(Ii(),gs("as"),Ii(),Cn(B.type))}function Ym(B){Dt(B.expression,Qn.parenthesizeLeftSideOfAccess),gg("!")}function D0(B){Dt(B.expression,void 0),B.type&&(Ii(),gs("satisfies"),Ii(),Cn(B.type))}function Pb(B){BC(B.keywordToken,B.pos,qi),qi("."),Cn(B.name)}function Wx(B){Dt(B.expression),Cn(B.literal)}function Gx(B){Gh(B,!B.multiLine&&zC(B))}function Gh(B,Pe){ee(19,B.pos,qi,B);let Wt=Pe||Xc(B)&1?768:129;io(B,B.statements,Wt),ee(20,B.statements.end,qi,B,!!(Wt&1))}function Nd(B){th(B,B.modifiers,!1),Cn(B.declarationList),rh()}function Iv(B){B?qi(";"):rh()}function Hy(B){Dt(B.expression,Qn.parenthesizeExpressionOfExpressionStatement),(!G||!h0(G)||fu(B.expression))&&rh()}function US(B){let Pe=ee(101,B.pos,gs,B);Ii(),ee(21,Pe,qi,B),Dt(B.expression),ee(22,B.expression.end,qi,B),c2(B,B.thenStatement),B.elseStatement&&(Zy(B,B.thenStatement,B.elseStatement),ee(93,B.thenStatement.end,gs,B),B.elseStatement.kind===246?(Ii(),Cn(B.elseStatement)):c2(B,B.elseStatement))}function xe(B,Pe){let Wt=ee(117,Pe,gs,B);Ii(),ee(21,Wt,qi,B),Dt(B.expression),ee(22,B.expression.end,qi,B)}function Ft(B){ee(92,B.pos,gs,B),c2(B,B.statement),Vs(B.statement)&&!Be?Ii():Zy(B,B.statement,B.expression),xe(B,B.statement.end),rh()}function Nr(B){xe(B,B.pos),c2(B,B.statement)}function Mr(B){let Pe=ee(99,B.pos,gs,B);Ii();let Wt=ee(21,Pe,qi,B);fo(B.initializer),Wt=ee(27,B.initializer?B.initializer.end:Wt,qi,B),LE(B.condition),Wt=ee(27,B.condition?B.condition.end:Wt,qi,B),LE(B.incrementor),ee(22,B.incrementor?B.incrementor.end:Wt,qi,B),c2(B,B.statement)}function wn(B){let Pe=ee(99,B.pos,gs,B);Ii(),ee(21,Pe,qi,B),fo(B.initializer),Ii(),ee(103,B.initializer.end,gs,B),Ii(),Dt(B.expression),ee(22,B.expression.end,qi,B),c2(B,B.statement)}function Yn(B){let Pe=ee(99,B.pos,gs,B);Ii(),j3(B.awaitModifier),ee(21,Pe,qi,B),fo(B.initializer),Ii(),ee(165,B.initializer.end,gs,B),Ii(),Dt(B.expression),ee(22,B.expression.end,qi,B),c2(B,B.statement)}function fo(B){B!==void 0&&(B.kind===262?Cn(B):Dt(B))}function Mo(B){ee(88,B.pos,gs,B),Qy(B.label),rh()}function Ea(B){ee(83,B.pos,gs,B),Qy(B.label),rh()}function ee(B,Pe,Wt,ln,Fo){let na=vs(ln),Ya=na&&na.kind===ln.kind,ra=Pe;if(Ya&&G&&(Pe=_c(G.text,Pe)),Ya&&ln.pos!==ra){let Wc=Fo&&G&&!v0(ra,Pe,G);Wc&&Mb(),eT(ra),Wc&&Ov()}if(!F&&(B===19||B===20)?Pe=BC(B,Pe,Wt,ln):Pe=$C(B,Wt,Pe),Ya&&ln.end!==Pe){let Wc=ln.kind===295;rv(Pe,!Wc,Wc)}return Pe}function it(B){return B.kind===2||!!B.hasTrailingNewLine}function cr(B){if(!G)return!1;let Pe=my(G.text,B.pos);if(Pe){let Wt=vs(B);if(Wt&&mh(Wt.parent))return!0}return Pt(Pe,it)||Pt(_L(B),it)?!0:z3e(B)?B.pos!==B.expression.pos&&Pt(hb(G.text,B.expression.pos),it)?!0:cr(B.expression):!1}function In(B){if(!Sr)switch(B.kind){case 356:if(cr(B)){let Pe=vs(B);if(Pe&&mh(Pe)){let Wt=W.createParenthesizedExpression(B.expression);return Yi(Wt,B),qt(Wt,Pe),Wt}return W.createParenthesizedExpression(B)}return W.updatePartiallyEmittedExpression(B,In(B.expression));case 212:return W.updatePropertyAccessExpression(B,In(B.expression),B.name);case 213:return W.updateElementAccessExpression(B,In(B.expression),B.argumentExpression);case 214:return W.updateCallExpression(B,In(B.expression),B.typeArguments,B.arguments);case 216:return W.updateTaggedTemplateExpression(B,In(B.tag),B.typeArguments,B.template);case 226:return W.updatePostfixUnaryExpression(B,In(B.operand));case 227:return W.updateBinaryExpression(B,In(B.left),B.operatorToken,B.right);case 228:return W.updateConditionalExpression(B,In(B.condition),B.questionToken,B.whenTrue,B.colonToken,B.whenFalse);case 235:return W.updateAsExpression(B,In(B.expression),B.type);case 239:return W.updateSatisfiesExpression(B,In(B.expression),B.type);case 236:return W.updateNonNullExpression(B,In(B.expression))}return B}function Ka(B){return In(Qn.parenthesizeExpressionForDisallowedComma(B))}function Ws(B){ee(107,B.pos,gs,B),LE(B.expression&&In(B.expression),In),rh()}function Xa(B){let Pe=ee(118,B.pos,gs,B);Ii(),ee(21,Pe,qi,B),Dt(B.expression),ee(22,B.expression.end,qi,B),c2(B,B.statement)}function ks(B){let Pe=ee(109,B.pos,gs,B);Ii(),ee(21,Pe,qi,B),Dt(B.expression),ee(22,B.expression.end,qi,B),Ii(),Cn(B.caseBlock)}function cp(B){Cn(B.label),ee(59,B.label.end,qi,B),Ii(),Cn(B.statement)}function Cc(B){ee(111,B.pos,gs,B),LE(In(B.expression),In),rh()}function pf(B){ee(113,B.pos,gs,B),Ii(),Cn(B.tryBlock),B.catchClause&&(Zy(B,B.tryBlock,B.catchClause),Cn(B.catchClause)),B.finallyBlock&&(Zy(B,B.catchClause||B.tryBlock,B.finallyBlock),ee(98,(B.catchClause||B.tryBlock).end,gs,B),Ii(),Cn(B.finallyBlock))}function Kg(B){BC(89,B.pos,gs),rh()}function Ky(B){var Pe,Wt,ln;Cn(B.name),Cn(B.exclamationToken),g1(B.type),rw(B.initializer,((Pe=B.type)==null?void 0:Pe.end)??((ln=(Wt=B.name.emitNode)==null?void 0:Wt.typeNode)==null?void 0:ln.end)??B.name.end,B,Qn.parenthesizeExpressionForDisallowedComma)}function A0(B){if(CG(B))gs("await"),Ii(),gs("using");else{let Pe=pre(B)?"let":zR(B)?"const":DG(B)?"using":"var";gs(Pe)}Ii(),io(B,B.declarations,528)}function r2(B){PE(B)}function PE(B){th(B,B.modifiers,!1),gs("function"),Cn(B.asteriskToken),Ii(),Es(B.name),vh(B,d1,Nb)}function vh(B,Pe,Wt){let ln=Xc(B)&131072;ln&&Mb(),tv(B),X(B.parameters,_f),Pe(B),Wt(B),p2(B),ln&&Ov()}function Nb(B){let Pe=B.body;Pe?dt(Pe):rh()}function Pv(B){rh()}function d1(B){Qx(B,B.typeParameters),nw(B,B.parameters),g1(B.type)}function OC(B){if(Xc(B)&1)return!0;if(B.multiLine||!fu(B)&&G&&!Z4(B,G)||jE(B,pi(B.statements),2)||a7(B,Yr(B.statements),2,B.statements))return!1;let Pe;for(let Wt of B.statements){if(ow(Pe,Wt,2)>0)return!1;Pe=Wt}return!0}function dt(B){_f(B),f?.(B),Ii(),qi("{"),Mb();let Pe=OC(B)?Lt:Tr;KP(B,B.statements,Pe),Ov(),BC(20,B.statements.end,qi,B),y?.(B)}function Lt(B){Tr(B,!0)}function Tr(B,Pe){let Wt=Kx(B.statements),ln=ze.getTextPos();xr(B),Wt===0&&ln===ze.getTextPos()&&Pe?(Ov(),io(B,B.statements,768),Mb()):io(B,B.statements,1,void 0,Wt)}function dn(B){qn(B)}function qn(B){th(B,B.modifiers,!0),ee(86,ES(B).pos,gs,B),B.name&&(Ii(),Es(B.name));let Pe=Xc(B)&131072;Pe&&Mb(),Qx(B,B.typeParameters),io(B,B.heritageClauses,0),Ii(),qi("{"),tv(B),X(B.members,GP),io(B,B.members,129),p2(B),qi("}"),Pe&&Ov()}function Fi(B){th(B,B.modifiers,!1),gs("interface"),Ii(),Cn(B.name),Qx(B,B.typeParameters),io(B,B.heritageClauses,512),Ii(),qi("{"),tv(B),X(B.members,GP),io(B,B.members,129),p2(B),qi("}")}function $n(B){th(B,B.modifiers,!1),gs("type"),Ii(),Cn(B.name),Qx(B,B.typeParameters),Ii(),qi("="),Ii(),Cn(B.type),rh()}function oi(B){th(B,B.modifiers,!1),gs("enum"),Ii(),Cn(B.name),Ii(),qi("{"),io(B,B.members,145),qi("}")}function sa(B){th(B,B.modifiers,!1),~B.flags&2048&&(gs(B.flags&32?"namespace":"module"),Ii()),Cn(B.name);let Pe=B.body;if(!Pe)return rh();for(;Pe&&I_(Pe);)qi("."),Cn(Pe.name),Pe=Pe.body;Ii(),Cn(Pe)}function os(B){tv(B),X(B.statements,_f),Gh(B,zC(B)),p2(B)}function Po(B){ee(19,B.pos,qi,B),io(B,B.clauses,129),ee(20,B.clauses.end,qi,B,!0)}function as(B){th(B,B.modifiers,!1),ee(102,B.modifiers?B.modifiers.end:B.pos,gs,B),Ii(),B.isTypeOnly&&(ee(156,B.pos,gs,B),Ii()),Cn(B.name),Ii(),ee(64,B.name.end,qi,B),Ii(),ka(B.moduleReference),rh()}function ka(B){B.kind===80?Dt(B):Cn(B)}function lp(B){th(B,B.modifiers,!1),ee(102,B.modifiers?B.modifiers.end:B.pos,gs,B),Ii(),B.importClause&&(Cn(B.importClause),Ii(),ee(161,B.importClause.end,gs,B),Ii()),Dt(B.moduleSpecifier),B.attributes&&Qy(B.attributes),rh()}function Hh(B){B.phaseModifier!==void 0&&(ee(B.phaseModifier,B.pos,gs,B),Ii()),Cn(B.name),B.name&&B.namedBindings&&(ee(28,B.name.end,qi,B),Ii()),Cn(B.namedBindings)}function f1(B){let Pe=ee(42,B.pos,qi,B);Ii(),ee(130,Pe,gs,B),Ii(),Cn(B.name)}function Pf(B){Hx(B)}function m1(B){KA(B)}function Qg(B){let Pe=ee(95,B.pos,gs,B);Ii(),B.isExportEquals?ee(64,Pe,gg,B):ee(90,Pe,gs,B),Ii(),Dt(B.expression,B.isExportEquals?Qn.getParenthesizeRightSideOfBinaryForOperator(64):Qn.parenthesizeExpressionOfExportDefault),rh()}function GA(B){th(B,B.modifiers,!1);let Pe=ee(95,B.pos,gs,B);if(Ii(),B.isTypeOnly&&(Pe=ee(156,Pe,gs,B),Ii()),B.exportClause?Cn(B.exportClause):Pe=ee(42,Pe,qi,B),B.moduleSpecifier){Ii();let Wt=B.exportClause?B.exportClause.end:Pe;ee(161,Wt,gs,B),Ii(),Dt(B.moduleSpecifier)}B.attributes&&Qy(B.attributes),rh()}function zS(B){qi("{"),Ii(),gs(B.token===132?"assert":"with"),qi(":"),Ii();let Pe=B.elements;io(B,Pe,526226),Ii(),qi("}")}function Ob(B){ee(B.token,B.pos,gs,B),Ii();let Pe=B.elements;io(B,Pe,526226)}function HA(B){Cn(B.name),qi(":"),Ii();let Pe=B.value;if((Xc(Pe)&1024)===0){let Wt=DS(Pe);rv(Wt.pos)}Cn(Pe)}function Fb(B){let Pe=ee(95,B.pos,gs,B);Ii(),Pe=ee(130,Pe,gs,B),Ii(),Pe=ee(145,Pe,gs,B),Ii(),Cn(B.name),rh()}function hM(B){let Pe=ee(42,B.pos,qi,B);Ii(),ee(130,Pe,gs,B),Ii(),Cn(B.name)}function xq(B){Hx(B)}function gM(B){KA(B)}function Hx(B){qi("{"),io(B,B.elements,525136),qi("}")}function KA(B){B.isTypeOnly&&(gs("type"),Ii()),B.propertyName&&(Cn(B.propertyName),Ii(),ee(130,B.propertyName.end,gs,B),Ii()),Cn(B.name)}function P3(B){gs("require"),qi("("),Dt(B.expression),qi(")")}function NE(B){Cn(B.openingElement),io(B,B.children,262144),Cn(B.closingElement)}function N3(B){qi("<"),zP(B.tagName),w0(B,B.typeArguments),Ii(),Cn(B.attributes),qi("/>")}function e7(B){Cn(B.openingFragment),io(B,B.children,262144),Cn(B.closingFragment)}function Tq(B){if(qi("<"),Tv(B)){let Pe=UC(B.tagName,B);zP(B.tagName),w0(B,B.typeArguments),B.attributes.properties&&B.attributes.properties.length>0&&Ii(),Cn(B.attributes),s7(B.attributes,B),Qh(Pe)}qi(">")}function O3(B){ze.writeLiteral(B.text)}function t7(B){qi("")}function QA(B){io(B,B.properties,262656)}function yM(B){Cn(B.name),zc("=",qi,B.initializer,ur)}function F3(B){qi("{..."),Dt(B.expression),qi("}")}function r7(B){let Pe=!1;return w4(G?.text||"",B+1,()=>Pe=!0),Pe}function UP(B){let Pe=!1;return A4(G?.text||"",B+1,()=>Pe=!0),Pe}function FC(B){return r7(B)||UP(B)}function n7(B){var Pe;if(B.expression||!Sr&&!fu(B)&&FC(B.pos)){let Wt=G&&!fu(B)&&qs(G,B.pos).line!==qs(G,B.end).line;Wt&&ze.increaseIndent();let ln=ee(19,B.pos,qi,B);Cn(B.dotDotDotToken),Dt(B.expression),ee(20,((Pe=B.expression)==null?void 0:Pe.end)||ln,qi,B),Wt&&ze.decreaseIndent()}}function i7(B){Es(B.namespace),qi(":"),Es(B.name)}function zP(B){B.kind===80?Dt(B):Cn(B)}function RC(B){ee(84,B.pos,gs,B),Ii(),Dt(B.expression,Qn.parenthesizeExpressionForDisallowedComma),n2(B,B.statements,B.expression.end)}function OE(B){let Pe=ee(90,B.pos,gs,B);n2(B,B.statements,Pe)}function n2(B,Pe,Wt){let ln=Pe.length===1&&(!G||fu(B)||fu(Pe[0])||Xre(B,Pe[0],G)),Fo=163969;ln?(BC(59,Wt,qi,B),Ii(),Fo&=-130):ee(59,Wt,qi,B),io(B,Pe,Fo)}function i2(B){Ii(),$C(B.token,gs),Ii(),io(B,B.types,528)}function o2(B){let Pe=ee(85,B.pos,gs,B);Ii(),B.variableDeclaration&&(ee(21,Pe,qi,B),Cn(B.variableDeclaration),ee(22,B.variableDeclaration.end,qi,B),Ii()),Cn(B.block)}function LC(B){Cn(B.name),qi(":"),Ii();let Pe=B.initializer;if((Xc(Pe)&1024)===0){let Wt=DS(Pe);rv(Wt.pos)}Dt(Pe,Qn.parenthesizeExpressionForDisallowedComma)}function ZA(B){Cn(B.name),B.objectAssignmentInitializer&&(Ii(),qi("="),Ii(),Dt(B.objectAssignmentInitializer,Qn.parenthesizeExpressionForDisallowedComma))}function R3(B){B.expression&&(ee(26,B.pos,qi,B),Dt(B.expression,Qn.parenthesizeExpressionForDisallowedComma))}function XA(B){Cn(B.name),rw(B.initializer,B.name.end,B,Qn.parenthesizeExpressionForDisallowedComma)}function il(B){if(je("/**"),B.comment){let Pe=oG(B.comment);if(Pe){let Wt=Pe.split(/\r\n?|\n/);for(let ln of Wt)Pm(),Ii(),qi("*"),Ii(),je(ln)}}B.tags&&(B.tags.length===1&&B.tags[0].kind===345&&!B.comment?(Ii(),Cn(B.tags[0])):io(B,B.tags,33)),Ii(),je("*/")}function L3(B){h1(B.tagName),ew(B.typeExpression),X1(B.comment)}function vM(B){h1(B.tagName),Cn(B.name),X1(B.comment)}function a2(B){h1(B.tagName),Ii(),B.importClause&&(Cn(B.importClause),Ii(),ee(161,B.importClause.end,gs,B),Ii()),Dt(B.moduleSpecifier),B.attributes&&Qy(B.attributes),X1(B.comment)}function s2(B){Ii(),qi("{"),Cn(B.name),qi("}")}function Rb(B){h1(B.tagName),Ii(),qi("{"),Cn(B.class),qi("}"),X1(B.comment)}function tp(B){h1(B.tagName),ew(B.constraint),Ii(),io(B,B.typeParameters,528),X1(B.comment)}function am(B){h1(B.tagName),B.typeExpression&&(B.typeExpression.kind===310?ew(B.typeExpression):(Ii(),qi("{"),je("Object"),B.typeExpression.isArrayType&&(qi("["),qi("]")),qi("}"))),B.fullName&&(Ii(),Cn(B.fullName)),X1(B.comment),B.typeExpression&&B.typeExpression.kind===323&&eh(B.typeExpression)}function Kh(B){h1(B.tagName),B.name&&(Ii(),Cn(B.name)),X1(B.comment),Lb(B.typeExpression)}function sm(B){X1(B.comment),Lb(B.typeExpression)}function YA(B){h1(B.tagName),X1(B.comment)}function eh(B){io(B,W.createNodeArray(B.jsDocPropertyTags),33)}function Lb(B){B.typeParameters&&io(B,W.createNodeArray(B.typeParameters),33),B.parameters&&io(B,W.createNodeArray(B.parameters),33),B.type&&(Pm(),Ii(),qi("*"),Ii(),Cn(B.type))}function Sh(B){h1(B.tagName),ew(B.typeExpression),Ii(),B.isBracketed&&qi("["),Cn(B.name),B.isBracketed&&qi("]"),X1(B.comment)}function h1(B){qi("@"),Cn(B)}function X1(B){let Pe=oG(B);Pe&&(Ii(),je(Pe))}function ew(B){B&&(Ii(),qi("{"),Cn(B.type),qi("}"))}function tw(B){Pm();let Pe=B.statements;if(Pe.length===0||!yS(Pe[0])||fu(Pe[0])){KP(B,Pe,qP);return}qP(B)}function Eq(B){FE(!!B.hasNoDefaultLib,B.syntheticFileReferences||[],B.syntheticTypeReferences||[],B.syntheticLibReferences||[])}function SM(B){B.isDeclarationFile&&FE(B.hasNoDefaultLib,B.referencedFiles,B.typeReferenceDirectives,B.libReferenceDirectives)}function FE(B,Pe,Wt,ln){if(B&&(jC('/// '),Pm()),G&&G.moduleName&&(jC(`/// `),Pm()),G&&G.amdDependencies)for(let na of G.amdDependencies)na.name?jC(`/// `):jC(`/// `),Pm();function Fo(na,Ya){for(let ra of Ya){let Wc=ra.resolutionMode?`resolution-mode="${ra.resolutionMode===99?"import":"require"}" `:"",F_=ra.preserve?'preserve="true" ':"";jC(`/// `),Pm()}}Fo("path",Pe),Fo("types",Wt),Fo("lib",ln)}function qP(B){let Pe=B.statements;tv(B),X(B.statements,_f),xr(B);let Wt=hr(Pe,ln=>!yS(ln));SM(B),io(B,Pe,1,void 0,Wt===-1?Pe.length:Wt),p2(B)}function gt(B){let Pe=Xc(B);!(Pe&1024)&&B.pos!==B.expression.pos&&rv(B.expression.pos),Dt(B.expression),!(Pe&2048)&&B.end!==B.expression.end&&eT(B.expression.end)}function M3(B){Ki(B,B.elements,528,void 0)}function Kx(B,Pe,Wt){let ln=!!Pe;for(let Fo=0;Fo=Wt.length||Ya===0;if(Wc&&ln&32768){g?.(Wt),k?.(Wt);return}ln&15360&&(qi(Osr(ln)),Wc&&Wt&&rv(Wt.pos,!0)),g?.(Wt),Wc?ln&1&&!(Be&&(!Pe||G&&Z4(Pe,G)))?Pm():ln&256&&!(ln&524288)&&Ii():B3(B,Pe,Wt,ln,Fo,na,Ya,Wt.hasTrailingComma,Wt),k?.(Wt),ln&15360&&(Wc&&Wt&&eT(Wt.end),qi(Fsr(ln)))}function B3(B,Pe,Wt,ln,Fo,na,Ya,ra,Wc){let F_=(ln&262144)===0,cm=F_,bh=jE(Pe,Wt[na],ln);bh?(Pm(bh),cm=!1):ln&256&&Ii(),ln&128&&Mb();let fw=jsr(B,Fo),xh,WC=!1;for(let zE=0;zE0){if((ln&131)===0&&(Mb(),WC=!0),cm&&ln&60&&!bv(nv.pos)){let ZP=DS(nv);rv(ZP.pos,!!(ln&512),!0)}Pm(qE),cm=!1}else xh&&ln&512&&Ii()}if(cm){let qE=DS(nv);rv(qE.pos)}else cm=F_;de=nv.pos,fw(nv,B,Fo,zE),WC&&(Ov(),WC=!1),xh=nv}let y7=xh?Xc(xh):0,y1=Sr||!!(y7&2048),mp=ra&&ln&64&&ln&16;mp&&(xh&&!y1?ee(28,xh.end,qi,xh):qi(",")),xh&&(Pe?Pe.end:-1)!==xh.end&&ln&60&&!y1&&eT(mp&&Wc?.end?Wc.end:xh.end),ln&128&&Ov();let Y3=a7(Pe,Wt[na+Ya-1],ln,Wc);Y3?Pm(Y3):ln&2097408&&Ii()}function l2(B){ze.writeLiteral(B)}function WP(B){ze.writeStringLiteral(B)}function bM(B){ze.write(B)}function kq(B,Pe){ze.writeSymbol(B,Pe)}function qi(B){ze.writePunctuation(B)}function rh(){ze.writeTrailingSemicolon(";")}function gs(B){ze.writeKeyword(B)}function gg(B){ze.writeOperator(B)}function $3(B){ze.writeParameter(B)}function jC(B){ze.writeComment(B)}function Ii(){ze.writeSpace(" ")}function xM(B){ze.writeProperty(B)}function o7(B){ze.nonEscapingWrite?ze.nonEscapingWrite(B):ze.write(B)}function Pm(B=1){for(let Pe=0;Pe0)}function Mb(){ze.increaseIndent()}function Ov(){ze.decreaseIndent()}function BC(B,Pe,Wt,ln){return Le?$C(B,Wt,Pe):Z3(ln,B,Wt,Pe,$C)}function U3(B,Pe){T&&T(B),Pe(Zs(B.kind)),C&&C(B)}function $C(B,Pe,Wt){let ln=Zs(B);return Pe(ln),Wt<0?Wt:Wt+ln.length}function Zy(B,Pe,Wt){if(Xc(B)&1)Ii();else if(Be){let ln=JS(B,Pe,Wt);ln?Pm(ln):Ii()}else Pm()}function ev(B){let Pe=B.split(/\r\n?|\n/),Wt=zPe(Pe);for(let ln of Pe){let Fo=Wt?ln.slice(Wt):ln;Fo.length&&(Pm(),je(Fo))}}function I0(B,Pe){B?(Mb(),Pm(B)):Pe&&Ii()}function Qh(B,Pe){B&&Ov(),Pe&&Ov()}function jE(B,Pe,Wt){if(Wt&2||Be){if(Wt&65536)return 1;if(Pe===void 0)return!B||G&&Z4(B,G)?0:1;if(Pe.pos===de||Pe.kind===12)return 0;if(G&&B&&!bv(B.pos)&&!fu(Pe)&&(!Pe.parent||Ku(Pe.parent)===Ku(B)))return Be?aw(ln=>g4e(Pe.pos,B.pos,G,ln)):Xre(B,Pe,G)?0:1;if(u2(Pe,Wt))return 1}return Wt&1?1:0}function ow(B,Pe,Wt){if(Wt&2||Be){if(B===void 0||Pe===void 0||Pe.kind===12)return 0;if(G&&!fu(B)&&!fu(Pe))return Be&&Nm(B,Pe)?aw(ln=>Ahe(B,Pe,G,ln)):!Be&&d7(B,Pe)?uH(B,Pe,G)?0:1:Wt&65536?1:0;if(u2(B,Wt)||u2(Pe,Wt))return 1}else if(rz(Pe))return 1;return Wt&1?1:0}function a7(B,Pe,Wt,ln){if(Wt&2||Be){if(Wt&65536)return 1;if(Pe===void 0)return!B||G&&Z4(B,G)?0:1;if(G&&B&&!bv(B.pos)&&!fu(Pe)&&(!Pe.parent||Pe.parent===B)){if(Be){let Fo=ln&&!bv(ln.end)?ln.end:Pe.end;return aw(na=>y4e(Fo,B.end,G,na))}return f4e(B,Pe,G)?0:1}if(u2(Pe,Wt))return 1}return Wt&1&&!(Wt&131072)?1:0}function aw(B){$.assert(!!Be);let Pe=B(!0);return Pe===0?B(!1):Pe}function UC(B,Pe){let Wt=Be&&jE(Pe,B,0);return Wt&&I0(Wt,!1),!!Wt}function s7(B,Pe){let Wt=Be&&a7(Pe,B,0,void 0);Wt&&Pm(Wt)}function u2(B,Pe){if(fu(B)){let Wt=rz(B);return Wt===void 0?(Pe&65536)!==0:Wt}return(Pe&65536)!==0}function JS(B,Pe,Wt){return Xc(B)&262144?0:(B=sw(B),Pe=sw(Pe),Wt=sw(Wt),rz(Wt)?1:G&&!fu(B)&&!fu(Pe)&&!fu(Wt)?Be?aw(ln=>Ahe(Pe,Wt,G,ln)):uH(Pe,Wt,G)?0:1:0)}function zC(B){return B.statements.length===0&&(!G||uH(B,B,G))}function sw(B){for(;B.kind===218&&fu(B);)B=B.expression;return B}function BE(B,Pe){if(ap(B)||R4(B))return cw(B);if(Ic(B)&&B.textSourceNode)return BE(B.textSourceNode,Pe);let Wt=G,ln=!!Wt&&!!B.parent&&!fu(B);if(Dx(B)){if(!ln||Pn(B)!==Ku(Wt))return Zi(B)}else if(Ev(B)){if(!ln||Pn(B)!==Ku(Wt))return ez(B)}else if($.assertNode(B,F4),!ln)return B.text;return XI(Wt,B,Pe)}function qC(B,Pe=G,Wt,ln){if(B.kind===11&&B.textSourceNode){let na=B.textSourceNode;if(ct(na)||Aa(na)||qh(na)||Ev(na)){let Ya=qh(na)?na.text:BE(na);return ln?`"${lhe(Ya)}"`:Wt||Xc(B)&16777216?`"${kb(Ya)}"`:`"${Mre(Ya)}"`}else return qC(na,Pn(na),Wt,ln)}let Fo=(Wt?1:0)|(ln?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&t.target>=8?8:0);return t6e(B,Pe,Fo)}function tv(B){le.push(Oe),Oe=0,Ae.push(Fe),!(B&&Xc(B)&1048576)&&(be.push(ue),ue=0,_e.push(me),me=void 0,De.push(Ce))}function p2(B){Oe=le.pop(),Fe=Ae.pop(),!(B&&Xc(B)&1048576)&&(ue=be.pop(),me=_e.pop(),Ce=De.pop())}function Zx(B){(!Ce||Ce===Yr(De))&&(Ce=new Set),Ce.add(B)}function JC(B){(!Fe||Fe===Yr(Ae))&&(Fe=new Set),Fe.add(B)}function _f(B){if(B)switch(B.kind){case 242:X(B.statements,_f);break;case 257:case 255:case 247:case 248:_f(B.statement);break;case 246:_f(B.thenStatement),_f(B.elseStatement);break;case 249:case 251:case 250:_f(B.initializer),_f(B.statement);break;case 256:_f(B.caseBlock);break;case 270:X(B.clauses,_f);break;case 297:case 298:X(B.statements,_f);break;case 259:_f(B.tryBlock),_f(B.catchClause),_f(B.finallyBlock);break;case 300:_f(B.variableDeclaration),_f(B.block);break;case 244:_f(B.declarationList);break;case 262:X(B.declarations,_f);break;case 261:case 170:case 209:case 264:Xx(B.name);break;case 263:Xx(B.name),Xc(B)&1048576&&(X(B.parameters,_f),_f(B.body));break;case 207:case 208:X(B.elements,_f);break;case 273:_f(B.importClause);break;case 274:Xx(B.name),_f(B.namedBindings);break;case 275:Xx(B.name);break;case 281:Xx(B.name);break;case 276:X(B.elements,_f);break;case 277:Xx(B.propertyName||B.name);break}}function GP(B){if(B)switch(B.kind){case 304:case 305:case 173:case 172:case 175:case 174:case 178:case 179:Xx(B.name);break}}function Xx(B){B&&(ap(B)||R4(B)?cw(B):$s(B)&&_f(B))}function cw(B){let Pe=B.emitNode.autoGenerate;if((Pe.flags&7)===4)return z3(QH(B),Aa(B),Pe.flags,Pe.prefix,Pe.suffix);{let Wt=Pe.id;return re[Wt]||(re[Wt]=P0(B))}}function z3(B,Pe,Wt,ln,Fo){let na=hl(B),Ya=Pe?Q:Z;return Ya[na]||(Ya[na]=Zh(B,Pe,Wt??0,wL(ln,cw),wL(Fo)))}function Yx(B,Pe){return c7(B,Pe)&&!TM(B,Pe)&&!ae.has(B)}function TM(B,Pe){let Wt,ln;if(Pe?(Wt=Fe,ln=Ae):(Wt=Ce,ln=De),Wt?.has(B))return!0;for(let Fo=ln.length-1;Fo>=0;Fo--)if(Wt!==ln[Fo]&&(Wt=ln[Fo],Wt?.has(B)))return!0;return!1}function c7(B,Pe){return G?ire(G,B,a):!0}function l7(B,Pe){for(let Wt=Pe;Wt&&oP(Wt,Pe);Wt=Wt.nextContainer)if(vb(Wt)&&Wt.locals){let ln=Wt.locals.get(dp(B));if(ln&&ln.flags&3257279)return!1}return!0}function Cq(B){switch(B){case"":return ue;case"#":return Oe;default:return me?.get(B)??0}}function u7(B,Pe){switch(B){case"":ue=Pe;break;case"#":Oe=Pe;break;default:me??(me=new Map),me.set(B,Pe);break}}function lw(B,Pe,Wt,ln,Fo){ln.length>0&&ln.charCodeAt(0)===35&&(ln=ln.slice(1));let na=IA(Wt,ln,"",Fo),Ya=Cq(na);if(B&&!(Ya&B)){let Wc=IA(Wt,ln,B===268435456?"_i":"_n",Fo);if(Yx(Wc,Wt))return Ya|=B,Wt?JC(Wc):Pe&&Zx(Wc),u7(na,Ya),Wc}for(;;){let ra=Ya&268435455;if(Ya++,ra!==8&&ra!==13){let Wc=ra<26?"_"+String.fromCharCode(97+ra):"_"+(ra-26),F_=IA(Wt,ln,Wc,Fo);if(Yx(F_,Wt))return Wt?JC(F_):Pe&&Zx(F_),u7(na,Ya),F_}}}function _2(B,Pe=Yx,Wt,ln,Fo,na,Ya){if(B.length>0&&B.charCodeAt(0)===35&&(B=B.slice(1)),na.length>0&&na.charCodeAt(0)===35&&(na=na.slice(1)),Wt){let Wc=IA(Fo,na,B,Ya);if(Pe(Wc,Fo))return Fo?JC(Wc):ln?Zx(Wc):ae.add(Wc),Wc}B.charCodeAt(B.length-1)!==95&&(B+="_");let ra=1;for(;;){let Wc=IA(Fo,na,B+ra,Ya);if(Pe(Wc,Fo))return Fo?JC(Wc):ln?Zx(Wc):ae.add(Wc),Wc;ra++}}function EM(B){return _2(B,c7,!0,!1,!1,"","")}function uw(B){let Pe=BE(B.name);return l7(Pe,Ci(B,vb))?Pe:_2(Pe,Yx,!1,!1,!1,"","")}function q3(B){let Pe=JO(B),Wt=Ic(Pe)?n6e(Pe.text):"module";return _2(Wt,Yx,!1,!1,!1,"","")}function O_(){return _2("default",Yx,!1,!1,!1,"","")}function df(){return _2("class",Yx,!1,!1,!1,"","")}function p7(B,Pe,Wt,ln){return ct(B.name)?z3(B.name,Pe):lw(0,!1,Pe,Wt,ln)}function Zh(B,Pe,Wt,ln,Fo){switch(B.kind){case 80:case 81:return _2(BE(B),Yx,!!(Wt&16),!!(Wt&8),Pe,ln,Fo);case 268:case 267:return $.assert(!ln&&!Fo&&!Pe),uw(B);case 273:case 279:return $.assert(!ln&&!Fo&&!Pe),q3(B);case 263:case 264:{$.assert(!ln&&!Fo&&!Pe);let na=B.name;return na&&!ap(na)?Zh(na,!1,Wt,ln,Fo):O_()}case 278:return $.assert(!ln&&!Fo&&!Pe),O_();case 232:return $.assert(!ln&&!Fo&&!Pe),df();case 175:case 178:case 179:return p7(B,Pe,ln,Fo);case 168:return lw(0,!0,Pe,ln,Fo);default:return lw(0,!1,Pe,ln,Fo)}}function P0(B){let Pe=B.emitNode.autoGenerate,Wt=wL(Pe.prefix,cw),ln=wL(Pe.suffix);switch(Pe.flags&7){case 1:return lw(0,!!(Pe.flags&8),Aa(B),Wt,ln);case 2:return $.assertNode(B,ct),lw(268435456,!!(Pe.flags&8),!1,Wt,ln);case 3:return _2(Zi(B),Pe.flags&32?c7:Yx,!!(Pe.flags&16),!!(Pe.flags&8),Aa(B),Wt,ln)}return $.fail(`Unsupported GeneratedIdentifierKind: ${$.formatEnum(Pe.flags&7,V9,!0)}.`)}function HP(B,Pe){let Wt=ar(2,B,Pe),ln=Se,Fo=tt,na=Qe;Fv(Pe),Wt(B,Pe),VC(Pe,ln,Fo,na)}function Fv(B){let Pe=Xc(B),Wt=DS(B);$E(B,Pe,Wt.pos,Wt.end),Pe&4096&&(Sr=!0)}function VC(B,Pe,Wt,ln){let Fo=Xc(B),na=DS(B);Fo&4096&&(Sr=!1),_7(B,Fo,na.pos,na.end,Pe,Wt,ln);let Ya=k3e(B);Ya&&_7(B,Fo,Ya.pos,Ya.end,Pe,Wt,ln)}function $E(B,Pe,Wt,ln){$t(),Kt=!1;let Fo=Wt<0||(Pe&1024)!==0||B.kind===12,na=ln<0||(Pe&2048)!==0||B.kind===12;(Wt>0||ln>0)&&Wt!==ln&&(Fo||yg(Wt,B.kind!==354),(!Fo||Wt>=0&&(Pe&1024)!==0)&&(Se=Wt),(!na||ln>=0&&(Pe&2048)!==0)&&(tt=ln,B.kind===262&&(Qe=ln))),X(_L(B),Dq),Dr()}function _7(B,Pe,Wt,ln,Fo,na,Ya){$t();let ra=ln<0||(Pe&2048)!==0||B.kind===12;X(FH(B),jp),(Wt>0||ln>0)&&Wt!==ln&&(Se=Fo,tt=na,Qe=Ya,!ra&&B.kind!==354&&f7(ln)),Dr()}function Dq(B){(B.hasLeadingNewline||B.kind===2)&&ze.writeLine(),kM(B),B.hasTrailingNewLine||B.kind===2?ze.writeLine():ze.writeSpace(" ")}function jp(B){ze.isAtStartOfLine()||ze.writeSpace(" "),kM(B),B.hasTrailingNewLine&&ze.writeLine()}function kM(B){let Pe=J3(B),Wt=B.kind===3?oE(Pe):void 0;rL(Pe,Wt,ze,0,Pe.length,M)}function J3(B){return B.kind===3?`/*${B.text}*/`:`//${B.text}`}function KP(B,Pe,Wt){$t();let{pos:ln,end:Fo}=Pe,na=Xc(B),Ya=ln<0||(na&1024)!==0,ra=Sr||Fo<0||(na&2048)!==0;Ya||Zg(Pe),Dr(),na&4096&&!Sr?(Sr=!0,Wt(B),Sr=!1):Wt(B),$t(),ra||(yg(Pe.end,!0),Kt&&!ze.isAtStartOfLine()&&ze.writeLine()),Dr()}function d7(B,Pe){return B=Ku(B),B.parent&&B.parent===Ku(Pe).parent}function Nm(B,Pe){if(Pe.pos-1&&ln.indexOf(Pe)===Fo+1}function yg(B,Pe){Kt=!1,Pe?B===0&&G?.isDeclarationFile?h7(B,pw):h7(B,W3):B===0&&h7(B,V3)}function V3(B,Pe,Wt,ln,Fo){K3(B,Pe)&&W3(B,Pe,Wt,ln,Fo)}function pw(B,Pe,Wt,ln,Fo){K3(B,Pe)||W3(B,Pe,Wt,ln,Fo)}function vg(B,Pe){return t.onlyPrintJsDocStyle?iye(B,Pe)||ore(B,Pe):!0}function W3(B,Pe,Wt,ln,Fo){!G||!vg(G.text,B)||(Kt||(e4e(yc(),ze,Fo,B),Kt=!0),Od(B),rL(G.text,yc(),ze,B,Pe,M),Od(Pe),ln?ze.writeLine():Wt===3&&ze.writeSpace(" "))}function eT(B){Sr||B===-1||yg(B,!0)}function f7(B){H3(B,G3)}function G3(B,Pe,Wt,ln){!G||!vg(G.text,B)||(ze.isAtStartOfLine()||ze.writeSpace(" "),Od(B),rL(G.text,yc(),ze,B,Pe,M),Od(Pe),ln&&ze.writeLine())}function rv(B,Pe,Wt){Sr||($t(),H3(B,Pe?G3:Wt?m7:CM),Dr())}function m7(B,Pe,Wt){G&&(Od(B),rL(G.text,yc(),ze,B,Pe,M),Od(Pe),Wt===2&&ze.writeLine())}function CM(B,Pe,Wt,ln){G&&(Od(B),rL(G.text,yc(),ze,B,Pe,M),Od(Pe),ln?ze.writeLine():ze.writeSpace(" "))}function h7(B,Pe){G&&(Se===-1||B!==Se)&&(g7(B)?UE(Pe):A4(G.text,B,Pe,B))}function H3(B,Pe){G&&(tt===-1||B!==tt&&B!==Qe)&&w4(G.text,B,Pe)}function g7(B){return St!==void 0&&Sn(St).nodePos===B}function UE(B){if(!G)return;let Pe=Sn(St).detachedCommentEndPos;St.length-1?St.pop():St=void 0,A4(G.text,Pe,B,Pe)}function Zg(B){let Pe=G&&t4e(G.text,yc(),ze,VS,B,M,Sr);Pe&&(St?St.push(Pe):St=[Pe])}function VS(B,Pe,Wt,ln,Fo,na){!G||!vg(G.text,ln)||(Od(ln),rL(B,Pe,Wt,ln,Fo,na),Od(Fo))}function K3(B,Pe){return!!G&&bme(G.text,B,Pe)}function Q3(B,Pe){let Wt=ar(3,B,Pe);cl(Pe),Wt(B,Pe),$i(Pe)}function cl(B){let Pe=Xc(B),Wt=yE(B),ln=Wt.source||nt;B.kind!==354&&(Pe&32)===0&&Wt.pos>=0&&_w(Wt.source||nt,Xy(ln,Wt.pos)),Pe&128&&(Le=!0)}function $i(B){let Pe=Xc(B),Wt=yE(B);Pe&128&&(Le=!1),B.kind!==354&&(Pe&64)===0&&Wt.end>=0&&_w(Wt.source||nt,Wt.end)}function Xy(B,Pe){return B.skipTrivia?B.skipTrivia(Pe):_c(B.text,Pe)}function Od(B){if(Le||bv(B)||X3(nt))return;let{line:Pe,character:Wt}=qs(nt,B);Ve.addMapping(ze.getLine(),ze.getColumn(),It,Pe,Wt,void 0)}function _w(B,Pe){if(B!==nt){let Wt=nt,ln=It;QP(B),Od(Pe),dw(Wt,ln)}else Od(Pe)}function Z3(B,Pe,Wt,ln,Fo){if(Le||B&&Ere(B))return Fo(Pe,Wt,ln);let na=B&&B.emitNode,Ya=na&&na.flags||0,ra=na&&na.tokenSourceMapRanges&&na.tokenSourceMapRanges[Pe],Wc=ra&&ra.source||nt;return ln=Xy(Wc,ra?ra.pos:ln),(Ya&256)===0&&ln>=0&&_w(Wc,ln),ln=Fo(Pe,Wt,ln),ra&&(ln=ra.end),(Ya&512)===0&&ln>=0&&_w(Wc,ln),ln}function QP(B){if(!Le){if(nt=B,B===ke){It=_t;return}X3(B)||(It=Ve.addSource(B.fileName),t.inlineSources&&Ve.setSourceContent(It,B.text),ke=B,_t=It)}}function dw(B,Pe){nt=B,It=Pe}function X3(B){return Au(B.fileName,".json")}}function Nsr(){let t=[];return t[1024]=["{","}"],t[2048]=["(",")"],t[4096]=["<",">"],t[8192]=["[","]"],t}function Osr(t){return P_t[t&15360][0]}function Fsr(t){return P_t[t&15360][1]}function Rsr(t,n,a,c){n(t)}function Lsr(t,n,a,c){n(t,a.select(c))}function Msr(t,n,a,c){n(t,a)}function jsr(t,n){return t.length===1?Rsr:typeof n=="object"?Lsr:Msr}function Gie(t,n,a){if(!t.getDirectories||!t.readDirectory)return;let c=new Map,u=_d(a);return{useCaseSensitiveFileNames:a,fileExists:F,readFile:(le,Oe)=>t.readFile(le,Oe),directoryExists:t.directoryExists&&M,getDirectories:J,readDirectory:G,createDirectory:t.createDirectory&&U,writeFile:t.writeFile&&O,addOrDeleteFileOrDirectory:re,addOrDeleteFile:ae,clearCache:me,realpath:t.realpath&&Z};function _(le){return wl(le,n,u)}function f(le){return c.get(r_(le))}function y(le){let Oe=f(mo(le));return Oe&&(Oe.sortedAndCanonicalizedFiles||(Oe.sortedAndCanonicalizedFiles=Oe.files.map(u).sort(),Oe.sortedAndCanonicalizedDirectories=Oe.directories.map(u).sort()),Oe)}function g(le){return t_(Qs(le))}function k(le,Oe){var be;if(!t.realpath||r_(_(t.realpath(le)))===Oe){let ue={files:Cr(t.readDirectory(le,void 0,void 0,["*.*"]),g)||[],directories:t.getDirectories(le)||[]};return c.set(r_(Oe),ue),ue}if((be=t.directoryExists)!=null&&be.call(t,le))return c.set(Oe,!1),!1}function T(le,Oe){Oe=r_(Oe);let be=f(Oe);if(be)return be;try{return k(le,Oe)}catch{$.assert(!c.has(r_(Oe)));return}}function C(le,Oe){return rs(le,Oe,vl,Su)>=0}function O(le,Oe,be){let ue=_(le),De=y(ue);return De&&_e(De,g(le),!0),t.writeFile(le,Oe,be)}function F(le){let Oe=_(le),be=y(Oe);return be&&C(be.sortedAndCanonicalizedFiles,u(g(le)))||t.fileExists(le)}function M(le){let Oe=_(le);return c.has(r_(Oe))||t.directoryExists(le)}function U(le){let Oe=_(le),be=y(Oe);if(be){let ue=g(le),De=u(ue),Ce=be.sortedAndCanonicalizedDirectories;vm(Ce,De,Su)&&be.directories.push(ue)}t.createDirectory(le)}function J(le){let Oe=_(le),be=T(le,Oe);return be?be.directories.slice():t.getDirectories(le)}function G(le,Oe,be,ue,De){let Ce=_(le),Ae=T(le,Ce),Fe;if(Ae!==void 0)return Whe(le,Oe,be,ue,a,n,De,Be,Z);return t.readDirectory(le,Oe,be,ue,De);function Be(ze){let ut=_(ze);if(ut===Ce)return Ae||de(ze,ut);let je=T(ze,ut);return je!==void 0?je||de(ze,ut):Qhe}function de(ze,ut){if(Fe&&ut===Ce)return Fe;let je={files:Cr(t.readDirectory(ze,void 0,void 0,["*.*"]),g)||j,directories:t.getDirectories(ze)||j};return ut===Ce&&(Fe=je),je}}function Z(le){return t.realpath?t.realpath(le):le}function Q(le){Ex(mo(le),Oe=>c.delete(r_(Oe))?!0:void 0)}function re(le,Oe){if(f(Oe)!==void 0){me();return}let ue=y(Oe);if(!ue){Q(Oe);return}if(!t.directoryExists){me();return}let De=g(le),Ce={fileExists:t.fileExists(le),directoryExists:t.directoryExists(le)};return Ce.directoryExists||C(ue.sortedAndCanonicalizedDirectories,u(De))?me():_e(ue,De,Ce.fileExists),Ce}function ae(le,Oe,be){if(be===1)return;let ue=y(Oe);ue?_e(ue,g(le),be===0):Q(Oe)}function _e(le,Oe,be){let ue=le.sortedAndCanonicalizedFiles,De=u(Oe);if(be)vm(ue,De,Su)&&le.files.push(Oe);else{let Ce=rs(ue,De,vl,Su);if(Ce>=0){ue.splice(Ce,1);let Ae=le.files.findIndex(Fe=>u(Fe)===De);le.files.splice(Ae,1)}}}function me(){c.clear()}}var kOe=(t=>(t[t.Update=0]="Update",t[t.RootNamesAndUpdate=1]="RootNamesAndUpdate",t[t.Full=2]="Full",t))(kOe||{});function Hie(t,n,a,c,u){var _;let f=_l(((_=n?.configFile)==null?void 0:_.extendedSourceFiles)||j,u);a.forEach((y,g)=>{f.has(g)||(y.projects.delete(t),y.close())}),f.forEach((y,g)=>{let k=a.get(g);k?k.projects.add(t):a.set(g,{projects:new Set([t]),watcher:c(y,g),close:()=>{let T=a.get(g);!T||T.projects.size!==0||(T.watcher.close(),a.delete(g))}})})}function x0e(t,n){n.forEach(a=>{a.projects.delete(t)&&a.close()})}function Kie(t,n,a){t.delete(n)&&t.forEach(({extendedResult:c},u)=>{var _;(_=c.extendedSourceFiles)!=null&&_.some(f=>a(f)===n)&&Kie(t,u,a)})}function T0e(t,n,a){BU(n,t.getMissingFilePaths(),{createNewValue:a,onDeleteValue:W1})}function EK(t,n,a){n?BU(t,new Map(Object.entries(n)),{createNewValue:c,onDeleteValue:C0,onExistingValue:u}):dg(t,C0);function c(_,f){return{watcher:a(_,f),flags:f}}function u(_,f,y){_.flags!==f&&(_.watcher.close(),t.set(y,c(y,f)))}}function kK({watchedDirPath:t,fileOrDirectory:n,fileOrDirectoryPath:a,configFileName:c,options:u,program:_,extraFileExtensions:f,currentDirectory:y,useCaseSensitiveFileNames:g,writeLog:k,toPath:T,getScriptKind:C}){let O=coe(a);if(!O)return k(`Project: ${c} Detected ignored path: ${n}`),!0;if(a=O,a===t)return!1;if(eA(a)&&!(Khe(n,u,f)||G()))return k(`Project: ${c} Detected file add/remove of non supported extension: ${n}`),!0;if(HNe(n,u.configFile.configFileSpecs,za(mo(c),y),g,y))return k(`Project: ${c} Detected excluded file: ${n}`),!0;if(!_||u.outFile||u.outDir)return!1;if(sf(a)){if(u.declarationDir)return!1}else if(!_p(a,cL))return!1;let F=Qm(a),M=Zn(_)?void 0:Y0e(_)?_.getProgramOrUndefined():_,U=!M&&!Zn(_)?_:void 0;if(J(F+".ts")||J(F+".tsx"))return k(`Project: ${c} Detected output file: ${n}`),!0;return!1;function J(Z){return M?!!M.getSourceFileByPath(Z):U?U.state.fileInfos.has(Z):!!wt(_,Q=>T(Q)===Z)}function G(){if(!C)return!1;switch(C(n)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return fC(u);case 6:return _P(u);case 0:return!1}}}function COe(t,n){return t?t.isEmittedFile(n):!1}var DOe=(t=>(t[t.None=0]="None",t[t.TriggerOnly=1]="TriggerOnly",t[t.Verbose=2]="Verbose",t))(DOe||{});function E0e(t,n,a,c){lS(n===2?a:zs);let u={watchFile:(U,J,G,Z)=>t.watchFile(U,J,G,Z),watchDirectory:(U,J,G,Z)=>t.watchDirectory(U,J,(G&1)!==0,Z)},_=n!==0?{watchFile:F("watchFile"),watchDirectory:F("watchDirectory")}:void 0,f=n===2?{watchFile:C,watchDirectory:O}:_||u,y=n===2?T:qz;return{watchFile:g("watchFile"),watchDirectory:g("watchDirectory")};function g(U){return(J,G,Z,Q,re,ae)=>{var _e;return bie(J,U==="watchFile"?Q?.excludeFiles:Q?.excludeDirectories,k(),((_e=t.getCurrentDirectory)==null?void 0:_e.call(t))||"")?y(J,Z,Q,re,ae):f[U].call(void 0,J,G,Z,Q,re,ae)}}function k(){return typeof t.useCaseSensitiveFileNames=="boolean"?t.useCaseSensitiveFileNames:t.useCaseSensitiveFileNames()}function T(U,J,G,Z,Q){return a(`ExcludeWatcher:: Added:: ${M(U,J,G,Z,Q,c)}`),{close:()=>a(`ExcludeWatcher:: Close:: ${M(U,J,G,Z,Q,c)}`)}}function C(U,J,G,Z,Q,re){a(`FileWatcher:: Added:: ${M(U,G,Z,Q,re,c)}`);let ae=_.watchFile(U,J,G,Z,Q,re);return{close:()=>{a(`FileWatcher:: Close:: ${M(U,G,Z,Q,re,c)}`),ae.close()}}}function O(U,J,G,Z,Q,re){let ae=`DirectoryWatcher:: Added:: ${M(U,G,Z,Q,re,c)}`;a(ae);let _e=Ml(),me=_.watchDirectory(U,J,G,Z,Q,re),le=Ml()-_e;return a(`Elapsed:: ${le}ms ${ae}`),{close:()=>{let Oe=`DirectoryWatcher:: Close:: ${M(U,G,Z,Q,re,c)}`;a(Oe);let be=Ml();me.close();let ue=Ml()-be;a(`Elapsed:: ${ue}ms ${Oe}`)}}}function F(U){return(J,G,Z,Q,re,ae)=>u[U].call(void 0,J,(..._e)=>{let me=`${U==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${_e[0]} ${_e[1]!==void 0?_e[1]:""}:: ${M(J,Z,Q,re,ae,c)}`;a(me);let le=Ml();G.call(void 0,..._e);let Oe=Ml()-le;a(`Elapsed:: ${Oe}ms ${me}`)},Z,Q,re,ae)}function M(U,J,G,Z,Q,re){return`WatchInfo: ${U} ${J} ${JSON.stringify(G)} ${re?re(Z,Q):Q===void 0?Z:`${Z} ${Q}`}`}}function CK(t){let n=t?.fallbackPolling;return{watchFile:n!==void 0?n:1}}function C0(t){t.watcher.close()}function k0e(t,n,a="tsconfig.json"){return Ex(t,c=>{let u=Xi(c,a);return n(u)?u:void 0})}function C0e(t,n){let a=mo(n),c=qd(t)?t:Xi(a,t);return Qs(c)}function AOe(t,n,a){let c;return X(t,_=>{let f=Jk(_,n);if(f.pop(),!c){c=f;return}let y=Math.min(c.length,f.length);for(let g=0;g{let _;try{jl("beforeIORead"),_=t(a),jl("afterIORead"),Jm("I/O Read","beforeIORead","afterIORead")}catch(f){u&&u(f.message),_=""}return _!==void 0?DF(a,_,c,n):void 0}}function A0e(t,n,a){return(c,u,_,f)=>{try{jl("beforeIOWrite"),mhe(c,u,_,t,n,a),jl("afterIOWrite"),Jm("I/O Write","beforeIOWrite","afterIOWrite")}catch(y){f&&f(y.message)}}}function Qie(t,n,a=f_){let c=new Map,u=_d(a.useCaseSensitiveFileNames);function _(T){return c.has(T)?!0:(k.directoryExists||a.directoryExists)(T)?(c.set(T,!0),!0):!1}function f(){return mo(Qs(a.getExecutingFilePath()))}let y=fE(t),g=a.realpath&&(T=>a.realpath(T)),k={getSourceFile:D0e(T=>k.readFile(T),n),getDefaultLibLocation:f,getDefaultLibFileName:T=>Xi(f(),kn(T)),writeFile:A0e((T,C,O)=>a.writeFile(T,C,O),T=>(k.createDirectory||a.createDirectory)(T),T=>_(T)),getCurrentDirectory:Ef(()=>a.getCurrentDirectory()),useCaseSensitiveFileNames:()=>a.useCaseSensitiveFileNames,getCanonicalFileName:u,getNewLine:()=>y,fileExists:T=>a.fileExists(T),readFile:T=>a.readFile(T),trace:T=>a.write(T+y),directoryExists:T=>a.directoryExists(T),getEnvironmentVariable:T=>a.getEnvironmentVariable?a.getEnvironmentVariable(T):"",getDirectories:T=>a.getDirectories(T),realpath:g,readDirectory:(T,C,O,F,M)=>a.readDirectory(T,C,O,F,M),createDirectory:T=>a.createDirectory(T),createHash:ja(a,a.createHash)};return k}function Bz(t,n,a){let c=t.readFile,u=t.fileExists,_=t.directoryExists,f=t.createDirectory,y=t.writeFile,g=new Map,k=new Map,T=new Map,C=new Map,O=U=>{let J=n(U),G=g.get(J);return G!==void 0?G!==!1?G:void 0:F(J,U)},F=(U,J)=>{let G=c.call(t,J);return g.set(U,G!==void 0?G:!1),G};t.readFile=U=>{let J=n(U),G=g.get(J);return G!==void 0?G!==!1?G:void 0:!Au(U,".json")&&!vOe(U)?c.call(t,U):F(J,U)};let M=a?(U,J,G,Z)=>{let Q=n(U),re=typeof J=="object"?J.impliedNodeFormat:void 0,ae=C.get(re),_e=ae?.get(Q);if(_e)return _e;let me=a(U,J,G,Z);return me&&(sf(U)||Au(U,".json"))&&C.set(re,(ae||new Map).set(Q,me)),me}:void 0;return t.fileExists=U=>{let J=n(U),G=k.get(J);if(G!==void 0)return G;let Z=u.call(t,U);return k.set(J,!!Z),Z},y&&(t.writeFile=(U,J,...G)=>{let Z=n(U);k.delete(Z);let Q=g.get(Z);Q!==void 0&&Q!==J?(g.delete(Z),C.forEach(re=>re.delete(Z))):M&&C.forEach(re=>{let ae=re.get(Z);ae&&ae.text!==J&&re.delete(Z)}),y.call(t,U,J,...G)}),_&&(t.directoryExists=U=>{let J=n(U),G=T.get(J);if(G!==void 0)return G;let Z=_.call(t,U);return T.set(J,!!Z),Z},f&&(t.createDirectory=U=>{let J=n(U);T.delete(J),f.call(t,U)})),{originalReadFile:c,originalFileExists:u,originalDirectoryExists:_,originalCreateDirectory:f,originalWriteFile:y,getSourceFileWithCache:M,readFileWithCache:O}}function B_t(t,n,a){let c;return c=En(c,t.getConfigFileParsingDiagnostics()),c=En(c,t.getOptionsDiagnostics(a)),c=En(c,t.getSyntacticDiagnostics(n,a)),c=En(c,t.getGlobalDiagnostics(a)),c=En(c,t.getSemanticDiagnostics(n,a)),fg(t.getCompilerOptions())&&(c=En(c,t.getDeclarationDiagnostics(n,a))),nr(c||j)}function $_t(t,n){let a="";for(let c of t)a+=w0e(c,n);return a}function w0e(t,n){let a=`${NT(t)} TS${t.code}: ${RS(t.messageText,n.getNewLine())}${n.getNewLine()}`;if(t.file){let{line:c,character:u}=qs(t.file,t.start),_=t.file.fileName;return`${BI(_,n.getCurrentDirectory(),y=>n.getCanonicalFileName(y))}(${c+1},${u+1}): `+a}return a}var IOe=(t=>(t.Grey="\x1B[90m",t.Red="\x1B[91m",t.Yellow="\x1B[93m",t.Blue="\x1B[94m",t.Cyan="\x1B[96m",t))(IOe||{}),POe="\x1B[7m",NOe=" ",U_t="\x1B[0m",z_t="...",Bsr=" ",q_t=" ";function J_t(t){switch(t){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return $.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function IP(t,n){return n+t+U_t}function V_t(t,n,a,c,u,_){let{line:f,character:y}=qs(t,n),{line:g,character:k}=qs(t,n+a),T=qs(t,t.text.length).line,C=g-f>=4,O=(g+1+"").length;C&&(O=Math.max(z_t.length,O));let F="";for(let M=f;M<=g;M++){F+=_.getNewLine(),C&&f+1a.getCanonicalFileName(g)):t.fileName,y="";return y+=c(f,"\x1B[96m"),y+=":",y+=c(`${u+1}`,"\x1B[93m"),y+=":",y+=c(`${_+1}`,"\x1B[93m"),y}function OOe(t,n){let a="";for(let c of t){if(c.file){let{file:u,start:_}=c;a+=I0e(u,_,n),a+=" - "}if(a+=IP(NT(c),J_t(c.category)),a+=IP(` TS${c.code}: `,"\x1B[90m"),a+=RS(c.messageText,n.getNewLine()),c.file&&c.code!==x.File_appears_to_be_binary.code&&(a+=n.getNewLine(),a+=V_t(c.file,c.start,c.length,"",J_t(c.category),n)),c.relatedInformation){a+=n.getNewLine();for(let{file:u,start:_,length:f,messageText:y}of c.relatedInformation)u&&(a+=n.getNewLine(),a+=Bsr+I0e(u,_,n),a+=V_t(u,_,f,q_t,"\x1B[96m",n)),a+=n.getNewLine(),a+=q_t+RS(y,n.getNewLine())}a+=n.getNewLine()}return a}function RS(t,n,a=0){if(Ni(t))return t;if(t===void 0)return"";let c="";if(a){c+=n;for(let u=0;uN0e(n,t,a)};function O0e(t,n,a,c,u){return{nameAndMode:Xie,resolve:(_,f)=>h3(_,t,a,c,u,n,f)}}function LOe(t){return Ni(t)?t:t.fileName}var K_t={getName:LOe,getMode:(t,n,a)=>FOe(t,n&&roe(n,a))};function Yie(t,n,a,c,u){return{nameAndMode:K_t,resolve:(_,f)=>n8e(_,t,a,c,n,u,f)}}function DK(t,n,a,c,u,_,f,y){if(t.length===0)return j;let g=[],k=new Map,T=y(n,a,c,_,f);for(let C of t){let O=T.nameAndMode.getName(C),F=T.nameAndMode.getMode(C,u,a?.commandLine.options||c),M=Ez(O,F),U=k.get(M);U||k.set(M,U=T.resolve(O,F)),g.push(U)}return g}var $z="__inferred type names__.ts";function eoe(t,n,a){let c=t.configFilePath?mo(t.configFilePath):n;return Xi(c,`__lib_node_modules_lookup_${a}__.ts`)}function F0e(t){let n=t.split("."),a=n[1],c=2;for(;n[c]&&n[c]!=="d";)a+=(c===2?"/":"-")+n[c],c++;return"@typescript/lib-"+a}function MA(t){switch(t?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function UL(t){return t.pos!==void 0}function Uz(t,n){var a,c,u,_;let f=$.checkDefined(t.getSourceFileByPath(n.file)),{kind:y,index:g}=n,k,T,C;switch(y){case 3:let O=IK(f,g);if(C=(c=(a=t.getResolvedModuleFromModuleSpecifier(O,f))==null?void 0:a.resolvedModule)==null?void 0:c.packageId,O.pos===-1)return{file:f,packageId:C,text:O.text};k=_c(f.text,O.pos),T=O.end;break;case 4:({pos:k,end:T}=f.referencedFiles[g]);break;case 5:({pos:k,end:T}=f.typeReferenceDirectives[g]),C=(_=(u=t.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(f.typeReferenceDirectives[g],f))==null?void 0:u.resolvedTypeReferenceDirective)==null?void 0:_.packageId;break;case 7:({pos:k,end:T}=f.libReferenceDirectives[g]);break;default:return $.assertNever(y)}return{file:f,pos:k,end:T,packageId:C}}function R0e(t,n,a,c,u,_,f,y,g,k){if(!t||y?.()||!__(t.getRootFileNames(),n))return!1;let T;if(!__(t.getProjectReferences(),k,U)||t.getSourceFiles().some(F))return!1;let C=t.getMissingFilePaths();if(C&&Ad(C,u))return!1;let O=t.getCompilerOptions();if(!Nhe(O,a)||t.resolvedLibReferences&&Ad(t.resolvedLibReferences,(G,Z)=>f(Z)))return!1;if(O.configFile&&a.configFile)return O.configFile.text===a.configFile.text;return!0;function F(G){return!M(G)||_(G.path)}function M(G){return G.version===c(G.resolvedPath,G.fileName)}function U(G,Z,Q){return gme(G,Z)&&J(t.getResolvedProjectReferences()[Q],G)}function J(G,Z){if(G){if(un(T,G))return!0;let re=RF(Z),ae=g(re);return!ae||G.commandLine.options.configFile!==ae.options.configFile||!__(G.commandLine.fileNames,ae.fileNames)?!1:((T||(T=[])).push(G),!X(G.references,(_e,me)=>!J(_e,G.commandLine.projectReferences[me])))}let Q=RF(Z);return!g(Q)}}function PP(t){return t.options.configFile?[...t.options.configFile.parseDiagnostics,...t.errors]:t.errors}function AK(t,n,a,c){let u=toe(t,n,a,c);return typeof u=="object"?u.impliedNodeFormat:u}function toe(t,n,a,c){let u=km(c),_=3<=u&&u<=99||kC(t);return _p(t,[".d.mts",".mts",".mjs"])?99:_p(t,[".d.cts",".cts",".cjs"])?1:_&&_p(t,[".d.ts",".ts",".tsx",".js",".jsx"])?f():void 0;function f(){let y=kz(n,a,c),g=[];y.failedLookupLocations=g,y.affectingLocations=g;let k=Cz(mo(t),y);return{impliedNodeFormat:k?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:g,packageJsonScope:k}}}var Q_t=new Set([x.Cannot_redeclare_block_scoped_variable_0.code,x.A_module_cannot_have_multiple_default_exports.code,x.Another_export_default_is_here.code,x.The_first_export_default_is_here.code,x.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,x.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,x.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,x.constructor_is_a_reserved_word.code,x.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,x.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,x.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,x.Invalid_use_of_0_in_strict_mode.code,x.A_label_is_not_allowed_here.code,x.with_statements_are_not_allowed_in_strict_mode.code,x.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,x.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,x.A_class_declaration_without_the_default_modifier_must_have_a_name.code,x.A_class_member_cannot_have_the_0_keyword.code,x.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,x.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,x.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,x.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,x.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,x.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,x.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,x.A_destructuring_declaration_must_have_an_initializer.code,x.A_get_accessor_cannot_have_parameters.code,x.A_rest_element_cannot_contain_a_binding_pattern.code,x.A_rest_element_cannot_have_a_property_name.code,x.A_rest_element_cannot_have_an_initializer.code,x.A_rest_element_must_be_last_in_a_destructuring_pattern.code,x.A_rest_parameter_cannot_have_an_initializer.code,x.A_rest_parameter_must_be_last_in_a_parameter_list.code,x.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,x.A_return_statement_cannot_be_used_inside_a_class_static_block.code,x.A_set_accessor_cannot_have_rest_parameter.code,x.A_set_accessor_must_have_exactly_one_parameter.code,x.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,x.An_export_declaration_cannot_have_modifiers.code,x.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,x.An_import_declaration_cannot_have_modifiers.code,x.An_object_member_cannot_be_declared_optional.code,x.Argument_of_dynamic_import_cannot_be_spread_element.code,x.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,x.Cannot_redeclare_identifier_0_in_catch_clause.code,x.Catch_clause_variable_cannot_have_an_initializer.code,x.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,x.Classes_can_only_extend_a_single_class.code,x.Classes_may_not_have_a_field_named_constructor.code,x.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,x.Duplicate_label_0.code,x.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,x.for_await_loops_cannot_be_used_inside_a_class_static_block.code,x.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,x.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,x.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,x.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,x.Jump_target_cannot_cross_function_boundary.code,x.Line_terminator_not_permitted_before_arrow.code,x.Modifiers_cannot_appear_here.code,x.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,x.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,x.Private_identifiers_are_not_allowed_outside_class_bodies.code,x.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,x.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,x.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,x.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,x.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,x.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,x.Trailing_comma_not_allowed.code,x.Variable_declaration_list_cannot_be_empty.code,x._0_and_1_operations_cannot_be_mixed_without_parentheses.code,x._0_expected.code,x._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,x._0_list_cannot_be_empty.code,x._0_modifier_already_seen.code,x._0_modifier_cannot_appear_on_a_constructor_declaration.code,x._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,x._0_modifier_cannot_appear_on_a_parameter.code,x._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,x._0_modifier_cannot_be_used_here.code,x._0_modifier_must_precede_1_modifier.code,x._0_declarations_can_only_be_declared_inside_a_block.code,x._0_declarations_must_be_initialized.code,x.extends_clause_already_seen.code,x.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,x.Class_constructor_may_not_be_a_generator.code,x.Class_constructor_may_not_be_an_accessor.code,x.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,x.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,x.Private_field_0_must_be_declared_in_an_enclosing_class.code,x.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function $sr(t,n){return t?MO(t.getCompilerOptions(),n,_ye):!1}function Usr(t,n,a,c,u,_){return{rootNames:t,options:n,host:a,oldProgram:c,configFileParsingDiagnostics:u,typeScriptVersion:_}}function wK(t,n,a,c,u){var _,f,y,g,k,T,C,O,F,M,U,J,G,Z,Q,re;let ae=Zn(t)?Usr(t,n,a,c,u):t,{rootNames:_e,options:me,configFileParsingDiagnostics:le,projectReferences:Oe,typeScriptVersion:be,host:ue}=ae,{oldProgram:De}=ae;ae=void 0,t=void 0;for(let dt of LNe)if(Ho(me,dt.name)&&typeof me[dt.name]=="string")throw new Error(`${dt.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);let Ce=Ef(()=>cr("ignoreDeprecations",x.Invalid_value_for_ignoreDeprecations)),Ae,Fe,Be,de,ze,ut,je,ve,Le,Ve=MOe(Xa),nt,It,ke,_t,Se,tt,Qe,We,St,Kt=typeof me.maxNodeModuleJsDepth=="number"?me.maxNodeModuleJsDepth:0,Sr=0,nn=new Map,Nn=new Map;(_=hi)==null||_.push(hi.Phase.Program,"createProgram",{configFilePath:me.configFilePath,rootDir:me.rootDir},!0),jl("beforeProgram");let $t=ue||wOe(me),Dr=ioe($t),Qn=me.noLib,Ko=Ef(()=>$t.getDefaultLibFileName(me)),is=$t.getDefaultLibLocation?$t.getDefaultLibLocation():mo(Ko()),sr=!1,uo=$t.getCurrentDirectory(),Wa=qU(me),oo=SH(me,Wa),Oi=new Map,$o,ft,Ht,Wr,ai=$t.hasInvalidatedResolutions||Yf;$t.resolveModuleNameLiterals?(Wr=$t.resolveModuleNameLiterals.bind($t),Ht=(f=$t.getModuleResolutionCache)==null?void 0:f.call($t)):$t.resolveModuleNames?(Wr=(dt,Lt,Tr,dn,qn,Fi)=>$t.resolveModuleNames(dt.map(ROe),Lt,Fi?.map(ROe),Tr,dn,qn).map($n=>$n?$n.extension!==void 0?{resolvedModule:$n}:{resolvedModule:{...$n,extension:VU($n.resolvedFileName)}}:H_t),Ht=(y=$t.getModuleResolutionCache)==null?void 0:y.call($t)):(Ht=FL(uo,Nd,me),Wr=(dt,Lt,Tr,dn,qn)=>DK(dt,Lt,Tr,dn,qn,$t,Ht,O0e));let vo;if($t.resolveTypeReferenceDirectiveReferences)vo=$t.resolveTypeReferenceDirectiveReferences.bind($t);else if($t.resolveTypeReferenceDirectives)vo=(dt,Lt,Tr,dn,qn)=>$t.resolveTypeReferenceDirectives(dt.map(LOe),Lt,Tr,dn,qn?.impliedNodeFormat).map(Fi=>({resolvedTypeReferenceDirective:Fi}));else{let dt=Die(uo,Nd,void 0,Ht?.getPackageJsonInfoCache(),Ht?.optionsToRedirectsKey);vo=(Lt,Tr,dn,qn,Fi)=>DK(Lt,Tr,dn,qn,Fi,$t,dt,Yie)}let Eo=$t.hasInvalidatedLibResolutions||Yf,ya;if($t.resolveLibrary)ya=$t.resolveLibrary.bind($t);else{let dt=FL(uo,Nd,me,Ht?.getPackageJsonInfoCache());ya=(Lt,Tr,dn)=>Aie(Lt,Tr,dn,$t,dt)}let Ls=new Map,yc=new Map,Cn=d_(),Es,Dt=new Map,ur=new Map,Ee=$t.useCaseSensitiveFileNames()?new Map:void 0,Bt,ye,et,Ct,Ot=!!((g=$t.useSourceOfProjectReferenceRedirect)!=null&&g.call($t))&&!me.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:ar,fileExists:at,directoryExists:Zt}=zsr({compilerHost:$t,getSymlinkCache:Ky,useSourceOfProjectReferenceRedirect:Ot,toPath:_r,getResolvedProjectReferences:ec,getRedirectFromOutput:Kp,forEachResolvedProjectReference:Dp}),Qt=$t.readFile.bind($t);(k=hi)==null||k.push(hi.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!De});let pr=$sr(De,me);(T=hi)==null||T.pop();let Et;if((C=hi)==null||C.push(hi.Phase.Program,"tryReuseStructureFromOldProgram",{}),Et=bn(),(O=hi)==null||O.pop(),Et!==2){if(Ae=[],Fe=[],Oe&&(Bt||(Bt=Oe.map(US)),_e.length&&Bt?.forEach((dt,Lt)=>{if(!dt)return;let Tr=dt.commandLine.options.outFile;if(Ot){if(Tr||Km(dt.commandLine.options)===0)for(let dn of dt.commandLine.fileNames)Wh(dn,{kind:1,index:Lt})}else if(Tr)Wh(hE(Tr,".d.ts"),{kind:2,index:Lt});else if(Km(dt.commandLine.options)===0){let dn=Ef(()=>S3(dt.commandLine,!$t.useCaseSensitiveFileNames()));for(let qn of dt.commandLine.fileNames)!sf(qn)&&!Au(qn,".json")&&Wh(Mz(qn,dt.commandLine,!$t.useCaseSensitiveFileNames(),dn),{kind:2,index:Lt})}})),(F=hi)==null||F.push(hi.Phase.Program,"processRootFiles",{count:_e.length}),X(_e,(dt,Lt)=>xc(dt,!1,!1,{kind:0,index:Lt})),(M=hi)==null||M.pop(),nt??(nt=_e.length?kie(me,$t):j),It=OL(),nt.length){(U=hi)==null||U.push(hi.Phase.Program,"processTypeReferences",{count:nt.length});let dt=me.configFilePath?mo(me.configFilePath):uo,Lt=Xi(dt,$z),Tr=lr(nt,Lt);for(let dn=0;dn{xc(Wx(Lt),!0,!1,{kind:6,index:Tr})})}Be=pu(Ae,Rt).concat(Fe),Ae=void 0,Fe=void 0,je=void 0}if(De&&$t.onReleaseOldSourceFile){let dt=De.getSourceFiles();for(let Lt of dt){let Tr=kc(Lt.resolvedPath);(pr||!Tr||Tr.impliedNodeFormat!==Lt.impliedNodeFormat||Lt.resolvedPath===Lt.path&&Tr.resolvedPath!==Lt.path)&&$t.onReleaseOldSourceFile(Lt,De.getCompilerOptions(),!!kc(Lt.path),Tr)}$t.getParsedCommandLine||De.forEachResolvedProjectReference(Lt=>{If(Lt.sourceFile.path)||$t.onReleaseOldSourceFile(Lt.sourceFile,De.getCompilerOptions(),!1,void 0)})}De&&$t.onReleaseParsedCommandLine&&tz(De.getProjectReferences(),De.getResolvedProjectReferences(),(dt,Lt,Tr)=>{let dn=Lt?.commandLine.projectReferences[Tr]||De.getProjectReferences()[Tr],qn=RF(dn);ye?.has(_r(qn))||$t.onReleaseParsedCommandLine(qn,dt,De.getCompilerOptions())}),De=void 0,_t=void 0,tt=void 0,We=void 0;let xr={getRootFileNames:()=>_e,getSourceFile:Nu,getSourceFileByPath:kc,getSourceFiles:()=>Be,getMissingFilePaths:()=>ur,getModuleResolutionCache:()=>Ht,getFilesByNameMap:()=>Dt,getCompilerOptions:()=>me,getSyntacticDiagnostics:Gy,getOptionsDiagnostics:On,getGlobalDiagnostics:va,getSemanticDiagnostics:_s,getCachedSemanticDiagnostics:sc,getSuggestionDiagnostics:st,getDeclarationDiagnostics:Ar,getBindAndCheckDiagnostics:sl,getProgramDiagnostics:Yc,getTypeChecker:uu,getClassifiableNames:pn,getCommonSourceDirectory:wr,emit:$a,getCurrentDirectory:()=>uo,getNodeCount:()=>uu().getNodeCount(),getIdentifierCount:()=>uu().getIdentifierCount(),getSymbolCount:()=>uu().getSymbolCount(),getTypeCount:()=>uu().getTypeCount(),getInstantiationCount:()=>uu().getInstantiationCount(),getRelationCacheSizes:()=>uu().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Ve.getFileProcessingDiagnostics(),getAutomaticTypeDirectiveNames:()=>nt,getAutomaticTypeDirectiveResolutions:()=>It,isSourceFileFromExternalLibrary:Mp,isSourceFileDefaultLibrary:Cp,getModeForUsageLocation:A0,getEmitSyntaxForUsageLocation:r2,getModeForResolutionAtIndex:PE,getSourceFileFromReference:Gg,getLibFileFromReference:a_,sourceFileToPackageName:yc,redirectTargetsMap:Cn,usesUriStyleNodeCoreModules:Es,resolvedModules:Se,resolvedTypeReferenceDirectiveNames:Qe,resolvedLibReferences:ke,getProgramDiagnosticsContainer:()=>Ve,getResolvedModule:gi,getResolvedModuleFromModuleSpecifier:Ye,getResolvedTypeReferenceDirective:er,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:Ne,forEachResolvedModule:Y,forEachResolvedTypeReferenceDirective:ot,getCurrentPackagesMap:()=>St,typesPackageExists:mr,packageBundlesTypes:Ge,isEmittedFile:pf,getConfigFileParsingDiagnostics:Bl,getProjectReferences:Ss,getResolvedProjectReferences:ec,getRedirectFromSourceFile:Mu,getResolvedProjectReferenceByPath:If,forEachResolvedProjectReference:Dp,isSourceOfProjectReferenceRedirect:vy,getRedirectFromOutput:Kp,getCompilerOptionsForFile:Ym,getDefaultResolutionModeForFile:vh,getEmitModuleFormatOfFile:Pv,getImpliedNodeFormatForEmit:Nb,shouldTransformImportCall:d1,emitBuildInfo:Ys,fileExists:at,readFile:Qt,directoryExists:Zt,getSymlinkCache:Ky,realpath:(Q=$t.realpath)==null?void 0:Q.bind($t),useCaseSensitiveFileNames:()=>$t.useCaseSensitiveFileNames(),getCanonicalFileName:Nd,getFileIncludeReasons:()=>Ve.getFileReasons(),structureIsReused:Et,writeFile:Uo,getGlobalTypingsCacheLocation:ja($t,$t.getGlobalTypingsCacheLocation)};return ar(),sr||xe(),jl("afterProgram"),Jm("Program","beforeProgram","afterProgram"),(re=hi)==null||re.pop(),xr;function gi(dt,Lt,Tr){var dn;return(dn=Se?.get(dt.path))==null?void 0:dn.get(Lt,Tr)}function Ye(dt,Lt){return Lt??(Lt=Pn(dt)),$.assertIsDefined(Lt,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),gi(Lt,dt.text,A0(Lt,dt))}function er(dt,Lt,Tr){var dn;return(dn=Qe?.get(dt.path))==null?void 0:dn.get(Lt,Tr)}function Ne(dt,Lt){return er(Lt,dt.fileName,OC(dt,Lt))}function Y(dt,Lt){pe(Se,dt,Lt)}function ot(dt,Lt){pe(Qe,dt,Lt)}function pe(dt,Lt,Tr){var dn;Tr?(dn=dt?.get(Tr.path))==null||dn.forEach((qn,Fi,$n)=>Lt(qn,Fi,$n,Tr.path)):dt?.forEach((qn,Fi)=>qn.forEach(($n,oi,sa)=>Lt($n,oi,sa,Fi)))}function Gt(){return St||(St=new Map,Y(({resolvedModule:dt})=>{dt?.packageId&&St.set(dt.packageId.name,dt.extension===".d.ts"||!!St.get(dt.packageId.name))}),St)}function mr(dt){return Gt().has(Pie(dt))}function Ge(dt){return!!Gt().get(dt)}function Mt(dt){var Lt;(Lt=dt.resolutionDiagnostics)!=null&&Lt.length&&Ve.addFileProcessingDiagnostic({kind:2,diagnostics:dt.resolutionDiagnostics})}function Ir(dt,Lt,Tr,dn){if($t.resolveModuleNameLiterals||!$t.resolveModuleNames)return Mt(Tr);if(!Ht||vt(Lt))return;let qn=za(dt.originalFileName,uo),Fi=mo(qn),$n=zn(dt),oi=Ht.getFromNonRelativeNameCache(Lt,dn,Fi,$n);oi&&Mt(oi)}function ii(dt,Lt,Tr){var dn,qn;let Fi=za(Lt.originalFileName,uo),$n=zn(Lt);(dn=hi)==null||dn.push(hi.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Fi}),jl("beforeResolveModule");let oi=Wr(dt,Fi,$n,me,Lt,Tr);return jl("afterResolveModule"),Jm("ResolveModule","beforeResolveModule","afterResolveModule"),(qn=hi)==null||qn.pop(),oi}function Rn(dt,Lt,Tr){var dn,qn;let Fi=Ni(Lt)?void 0:Lt,$n=Ni(Lt)?Lt:za(Lt.originalFileName,uo),oi=Fi&&zn(Fi);(dn=hi)==null||dn.push(hi.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:$n}),jl("beforeResolveTypeReference");let sa=vo(dt,$n,oi,me,Fi,Tr);return jl("afterResolveTypeReference"),Jm("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(qn=hi)==null||qn.pop(),sa}function zn(dt){var Lt,Tr;let dn=Mu(dt.originalFileName);if(dn||!sf(dt.originalFileName))return dn?.resolvedRef;let qn=(Lt=Kp(dt.path))==null?void 0:Lt.resolvedRef;if(qn)return qn;if(!$t.realpath||!me.preserveSymlinks||!dt.originalFileName.includes(Jx))return;let Fi=_r($t.realpath(dt.originalFileName));return Fi===dt.path||(Tr=Kp(Fi))==null?void 0:Tr.resolvedRef}function Rt(dt,Lt){return Br(rr(dt),rr(Lt))}function rr(dt){if(ug(is,dt.fileName,!1)){let Lt=t_(dt.fileName);if(Lt==="lib.d.ts"||Lt==="lib.es6.d.ts")return 0;let Tr=Lk(Mk(Lt,"lib."),".d.ts"),dn=cie.indexOf(Tr);if(dn!==-1)return dn+1}return cie.length+2}function _r(dt){return wl(dt,uo,Nd)}function wr(){let dt=Ve.getCommonSourceDirectory();if(dt!==void 0)return dt;let Lt=yr(Be,Tr=>sP(Tr,xr));return dt=jz(me,()=>Wn(Lt,Tr=>Tr.isDeclarationFile?void 0:Tr.fileName),uo,Nd,Tr=>Hy(Lt,Tr)),Ve.setCommonSourceDirectory(dt),dt}function pn(){var dt;if(!ut){uu(),ut=new Set;for(let Lt of Be)(dt=Lt.classifiableNames)==null||dt.forEach(Tr=>ut.add(Tr))}return ut}function tn(dt,Lt){return cn({entries:dt,containingFile:Lt,containingSourceFile:Lt,redirectedReference:zn(Lt),nameAndModeGetter:Xie,resolutionWorker:ii,getResolutionFromOldProgram:(Tr,dn)=>De?.getResolvedModule(Lt,Tr,dn),getResolved:jO,canReuseResolutionsInFile:()=>Lt===De?.getSourceFile(Lt.fileName)&&!ai(Lt.path),resolveToOwnAmbientModule:!0})}function lr(dt,Lt){let Tr=Ni(Lt)?void 0:Lt;return cn({entries:dt,containingFile:Lt,containingSourceFile:Tr,redirectedReference:Tr&&zn(Tr),nameAndModeGetter:K_t,resolutionWorker:Rn,getResolutionFromOldProgram:(dn,qn)=>{var Fi;return Tr?De?.getResolvedTypeReferenceDirective(Tr,dn,qn):(Fi=De?.getAutomaticTypeDirectiveResolutions())==null?void 0:Fi.get(dn,qn)},getResolved:tre,canReuseResolutionsInFile:()=>Tr?Tr===De?.getSourceFile(Tr.fileName)&&!ai(Tr.path):!ai(_r(Lt))})}function cn({entries:dt,containingFile:Lt,containingSourceFile:Tr,redirectedReference:dn,nameAndModeGetter:qn,resolutionWorker:Fi,getResolutionFromOldProgram:$n,getResolved:oi,canReuseResolutionsInFile:sa,resolveToOwnAmbientModule:os}){if(!dt.length)return j;if(Et===0&&(!os||!Tr.ambientModuleNames.length))return Fi(dt,Lt,void 0);let Po,as,ka,lp,Hh=sa();for(let Pf=0;Pfka[as[m1]]=Pf),ka):f1}function gn(){return!tz(De.getProjectReferences(),De.getResolvedProjectReferences(),(dt,Lt,Tr)=>{let dn=(Lt?Lt.commandLine.projectReferences:Oe)[Tr],qn=US(dn);return dt?!qn||qn.sourceFile!==dt.sourceFile||!__(dt.commandLine.fileNames,qn.commandLine.fileNames):qn!==void 0},(dt,Lt)=>{let Tr=Lt?If(Lt.sourceFile.path).commandLine.projectReferences:Oe;return!__(dt,Tr,gme)})}function bn(){var dt;if(!De)return 0;let Lt=De.getCompilerOptions();if(Yte(Lt,me))return 0;let Tr=De.getRootFileNames();if(!__(Tr,_e)||!gn())return 0;Oe&&(Bt=Oe.map(US));let dn=[],qn=[];if(Et=2,Ad(De.getMissingFilePaths(),Po=>$t.fileExists(Po)))return 0;let Fi=De.getSourceFiles(),$n;(Po=>{Po[Po.Exists=0]="Exists",Po[Po.Modified=1]="Modified"})($n||($n={}));let oi=new Map;for(let Po of Fi){let as=Ga(Po.fileName,Ht,$t,me),ka=$t.getSourceFileByPath?$t.getSourceFileByPath(Po.fileName,Po.resolvedPath,as,void 0,pr):$t.getSourceFile(Po.fileName,as,void 0,pr);if(!ka)return 0;ka.packageJsonLocations=(dt=as.packageJsonLocations)!=null&&dt.length?as.packageJsonLocations:void 0,ka.packageJsonScope=as.packageJsonScope,$.assert(!ka.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let lp;if(Po.redirectInfo){if(ka!==Po.redirectInfo.unredirected)return 0;lp=!1,ka=Po}else if(De.redirectTargetsMap.has(Po.path)){if(ka!==Po)return 0;lp=!1}else lp=ka!==Po;ka.path=Po.path,ka.originalFileName=Po.originalFileName,ka.resolvedPath=Po.resolvedPath,ka.fileName=Po.fileName;let Hh=De.sourceFileToPackageName.get(Po.path);if(Hh!==void 0){let f1=oi.get(Hh),Pf=lp?1:0;if(f1!==void 0&&Pf===1||f1===1)return 0;oi.set(Hh,Pf)}lp?(Po.impliedNodeFormat!==ka.impliedNodeFormat?Et=1:__(Po.libReferenceDirectives,ka.libReferenceDirectives,ep)?Po.hasNoDefaultLib!==ka.hasNoDefaultLib?Et=1:__(Po.referencedFiles,ka.referencedFiles,ep)?(xu(ka),__(Po.imports,ka.imports,W_)&&__(Po.moduleAugmentations,ka.moduleAugmentations,W_)?(Po.flags&12582912)!==(ka.flags&12582912)?Et=1:__(Po.typeReferenceDirectives,ka.typeReferenceDirectives,ep)||(Et=1):Et=1):Et=1:Et=1,qn.push(ka)):ai(Po.path)&&(Et=1,qn.push(ka)),dn.push(ka)}if(Et!==2)return Et;for(let Po of qn){let as=X_t(Po),ka=tn(as,Po);(tt??(tt=new Map)).set(Po.path,ka);let lp=Ym(Po);vme(as,ka,Qg=>De.getResolvedModule(Po,Qg.text,Zie(Po,Qg,lp)),HPe)&&(Et=1);let f1=Po.typeReferenceDirectives,Pf=lr(f1,Po);(We??(We=new Map)).set(Po.path,Pf),vme(f1,Pf,Qg=>De.getResolvedTypeReferenceDirective(Po,LOe(Qg),OC(Qg,Po)),KPe)&&(Et=1)}if(Et!==2)return Et;if(WPe(Lt,me)||De.resolvedLibReferences&&Ad(De.resolvedLibReferences,(Po,as)=>Gx(as).actual!==Po.actual))return 1;if($t.hasChangedAutomaticTypeDirectiveNames){if($t.hasChangedAutomaticTypeDirectiveNames())return 1}else if(nt=kie(me,$t),!__(De.getAutomaticTypeDirectiveNames(),nt))return 1;ur=De.getMissingFilePaths(),$.assert(dn.length===De.getSourceFiles().length);for(let Po of dn)Dt.set(Po.path,Po);De.getFilesByNameMap().forEach((Po,as)=>{if(!Po){Dt.set(as,Po);return}if(Po.path===as){De.isSourceFileFromExternalLibrary(Po)&&Nn.set(Po.path,!0);return}Dt.set(as,Dt.get(Po.path))});let os=Lt.configFile&&Lt.configFile===me.configFile||!Lt.configFile&&!me.configFile&&!MO(Lt,me,Q1);return Ve.reuseStateFromOldProgram(De.getProgramDiagnosticsContainer(),os),sr=os,Be=dn,nt=De.getAutomaticTypeDirectiveNames(),It=De.getAutomaticTypeDirectiveResolutions(),yc=De.sourceFileToPackageName,Cn=De.redirectTargetsMap,Es=De.usesUriStyleNodeCoreModules,Se=De.resolvedModules,Qe=De.resolvedTypeReferenceDirectiveNames,ke=De.resolvedLibReferences,St=De.getCurrentPackagesMap(),2}function $r(dt){return{getCanonicalFileName:Nd,getCommonSourceDirectory:xr.getCommonSourceDirectory,getCompilerOptions:xr.getCompilerOptions,getCurrentDirectory:()=>uo,getSourceFile:xr.getSourceFile,getSourceFileByPath:xr.getSourceFileByPath,getSourceFiles:xr.getSourceFiles,isSourceFileFromExternalLibrary:Mp,getRedirectFromSourceFile:Mu,isSourceOfProjectReferenceRedirect:vy,getSymlinkCache:Ky,writeFile:dt||Uo,isEmitBlocked:bs,shouldTransformImportCall:d1,getEmitModuleFormatOfFile:Pv,getDefaultResolutionModeForFile:vh,getModeForResolutionAtIndex:PE,readFile:Lt=>$t.readFile(Lt),fileExists:Lt=>{let Tr=_r(Lt);return kc(Tr)?!0:ur.has(Tr)?!1:$t.fileExists(Lt)},realpath:ja($t,$t.realpath),useCaseSensitiveFileNames:()=>$t.useCaseSensitiveFileNames(),getBuildInfo:()=>{var Lt;return(Lt=xr.getBuildInfo)==null?void 0:Lt.call(xr)},getSourceFileFromReference:(Lt,Tr)=>xr.getSourceFileFromReference(Lt,Tr),redirectTargetsMap:Cn,getFileIncludeReasons:xr.getFileIncludeReasons,createHash:ja($t,$t.createHash),getModuleResolutionCache:()=>xr.getModuleResolutionCache(),trace:ja($t,$t.trace),getGlobalTypingsCacheLocation:xr.getGlobalTypingsCacheLocation}}function Uo(dt,Lt,Tr,dn,qn,Fi){$t.writeFile(dt,Lt,Tr,dn,qn,Fi)}function Ys(dt){var Lt,Tr;(Lt=hi)==null||Lt.push(hi.Phase.Emit,"emitBuildInfo",{},!0),jl("beforeEmit");let dn=v0e(xOe,$r(dt),void 0,gOe,!1,!0);return jl("afterEmit"),Jm("Emit","beforeEmit","afterEmit"),(Tr=hi)==null||Tr.pop(),dn}function ec(){return Bt}function Ss(){return Oe}function Mp(dt){return!!Nn.get(dt.path)}function Cp(dt){if(!dt.isDeclarationFile)return!1;if(dt.hasNoDefaultLib)return!0;if(me.noLib)return!1;let Lt=$t.useCaseSensitiveFileNames()?qm:F1;return me.lib?Pt(me.lib,Tr=>{let dn=ke.get(Tr);return!!dn&&Lt(dt.fileName,dn.actual)}):Lt(dt.fileName,Ko())}function uu(){return ze||(ze=w8e(xr))}function $a(dt,Lt,Tr,dn,qn,Fi,$n){var oi,sa;(oi=hi)==null||oi.push(hi.Phase.Emit,"emit",{path:dt?.path},!0);let os=Gp(()=>V_(xr,dt,Lt,Tr,dn,qn,Fi,$n));return(sa=hi)==null||sa.pop(),os}function bs(dt){return Oi.has(_r(dt))}function V_(dt,Lt,Tr,dn,qn,Fi,$n,oi){if(!$n){let as=M0e(dt,Lt,Tr,dn);if(as)return as}let sa=uu(),os=sa.getEmitResolver(me.outFile?void 0:Lt,dn,y0e(qn,$n));jl("beforeEmit");let Po=sa.runWithCancellationToken(dn,()=>v0e(os,$r(Tr),Lt,yOe(me,Fi,qn),qn,!1,$n,oi));return jl("afterEmit"),Jm("Emit","beforeEmit","afterEmit"),Po}function Nu(dt){return kc(_r(dt))}function kc(dt){return Dt.get(dt)||void 0}function o_(dt,Lt,Tr){return nr(dt?Lt(dt,Tr):an(xr.getSourceFiles(),dn=>(Tr&&Tr.throwIfCancellationRequested(),Lt(dn,Tr))))}function Gy(dt,Lt){return o_(dt,Ql,Lt)}function _s(dt,Lt,Tr){return o_(dt,(dn,qn)=>N_(dn,qn,Tr),Lt)}function sc(dt){return ve?.get(dt.path)}function sl(dt,Lt){return lf(dt,Lt,void 0)}function Yc(dt){var Lt;if(lL(dt,me,xr))return j;let Tr=Ve.getCombinedDiagnostics(xr).getDiagnostics(dt.fileName);return(Lt=dt.commentDirectives)!=null&&Lt.length?H(dt,dt.commentDirectives,Tr).diagnostics:Tr}function Ar(dt,Lt){return o_(dt,Di,Lt)}function Ql(dt){return ph(dt)?(dt.additionalSyntacticDiagnostics||(dt.additionalSyntacticDiagnostics=Er(dt)),go(dt.additionalSyntacticDiagnostics,dt.parseDiagnostics)):dt.parseDiagnostics}function Gp(dt){try{return dt()}catch(Lt){throw Lt instanceof Uk&&(ze=void 0),Lt}}function N_(dt,Lt,Tr){return go(noe(lf(dt,Lt,Tr),me),Yc(dt))}function lf(dt,Lt,Tr){if(Tr)return Yu(dt,Lt,Tr);let dn=ve?.get(dt.path);return dn||(ve??(ve=new Map)).set(dt.path,dn=Yu(dt,Lt)),dn}function Yu(dt,Lt,Tr){return Gp(()=>{if(lL(dt,me,xr))return j;let dn=uu();$.assert(!!dt.bindDiagnostics);let qn=dt.scriptKind===1||dt.scriptKind===2,Fi=lU(dt,me.checkJs),$n=qn&&WU(dt,me),oi=dt.bindDiagnostics,sa=dn.getDiagnostics(dt,Lt,Tr);return Fi&&(oi=yr(oi,os=>Q_t.has(os.code)),sa=yr(sa,os=>Q_t.has(os.code))),Hp(dt,!Fi,!!Tr,oi,sa,$n?dt.jsDocDiagnostics:void 0)})}function Hp(dt,Lt,Tr,...dn){var qn;let Fi=Rc(dn);if(!Lt||!((qn=dt.commentDirectives)!=null&&qn.length))return Fi;let{diagnostics:$n,directives:oi}=H(dt,dt.commentDirectives,Fi);if(Tr)return $n;for(let sa of oi.getUnusedExpectations())$n.push(_6e(dt,sa.range,x.Unused_ts_expect_error_directive));return $n}function H(dt,Lt,Tr){let dn=XPe(dt,Lt);return{diagnostics:Tr.filter(Fi=>zt(Fi,dn)===-1),directives:dn}}function st(dt,Lt){return Gp(()=>uu().getSuggestionDiagnostics(dt,Lt))}function zt(dt,Lt){let{file:Tr,start:dn}=dt;if(!Tr)return-1;let qn=Ry(Tr),Fi=aE(qn,dn).line-1;for(;Fi>=0;){if(Lt.markUsed(Fi))return Fi;let $n=Tr.text.slice(qn[Fi],qn[Fi+1]).trim();if($n!==""&&!/^\s*\/\/.*$/.test($n))return-1;Fi--}return-1}function Er(dt){return Gp(()=>{let Lt=[];return Tr(dt,dt),CF(dt,Tr,dn),Lt;function Tr(oi,sa){switch(sa.kind){case 170:case 173:case 175:if(sa.questionToken===oi)return Lt.push($n(oi,x.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 174:case 177:case 178:case 179:case 219:case 263:case 220:case 261:if(sa.type===oi)return Lt.push($n(oi,x.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(oi.kind){case 274:if(oi.isTypeOnly)return Lt.push($n(sa,x._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 279:if(oi.isTypeOnly)return Lt.push($n(oi,x._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 277:case 282:if(oi.isTypeOnly)return Lt.push($n(oi,x._0_declarations_can_only_be_used_in_TypeScript_files,Xm(oi)?"import...type":"export...type")),"skip";break;case 272:return Lt.push($n(oi,x.import_can_only_be_used_in_TypeScript_files)),"skip";case 278:if(oi.isExportEquals)return Lt.push($n(oi,x.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 299:if(oi.token===119)return Lt.push($n(oi,x.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 265:let Po=Zs(120);return $.assertIsDefined(Po),Lt.push($n(oi,x._0_declarations_can_only_be_used_in_TypeScript_files,Po)),"skip";case 268:let as=oi.flags&32?Zs(145):Zs(144);return $.assertIsDefined(as),Lt.push($n(oi,x._0_declarations_can_only_be_used_in_TypeScript_files,as)),"skip";case 266:return Lt.push($n(oi,x.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 177:case 175:case 263:return oi.body?void 0:(Lt.push($n(oi,x.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 267:let ka=$.checkDefined(Zs(94));return Lt.push($n(oi,x._0_declarations_can_only_be_used_in_TypeScript_files,ka)),"skip";case 236:return Lt.push($n(oi,x.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return Lt.push($n(oi.type,x.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 239:return Lt.push($n(oi.type,x.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 217:$.fail()}}function dn(oi,sa){if(eye(sa)){let os=wt(sa.modifiers,hd);os&&Lt.push($n(os,x.Decorators_are_not_valid_here))}else if(kP(sa)&&sa.modifiers){let os=hr(sa.modifiers,hd);if(os>=0){if(wa(sa)&&!me.experimentalDecorators)Lt.push($n(sa.modifiers[os],x.Decorators_are_not_valid_here));else if(ed(sa)){let Po=hr(sa.modifiers,fF);if(Po>=0){let as=hr(sa.modifiers,$ne);if(os>Po&&as>=0&&os=0&&os=0&&Lt.push(ac($n(sa.modifiers[ka],x.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),$n(sa.modifiers[os],x.Decorator_used_before_export_here)))}}}}}switch(sa.kind){case 264:case 232:case 175:case 177:case 178:case 179:case 219:case 263:case 220:if(oi===sa.typeParameters)return Lt.push(Fi(oi,x.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 244:if(oi===sa.modifiers)return qn(sa.modifiers,sa.kind===244),"skip";break;case 173:if(oi===sa.modifiers){for(let os of oi)bc(os)&&os.kind!==126&&os.kind!==129&&Lt.push($n(os,x.The_0_modifier_can_only_be_used_in_TypeScript_files,Zs(os.kind)));return"skip"}break;case 170:if(oi===sa.modifiers&&Pt(oi,bc))return Lt.push(Fi(oi,x.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 214:case 215:case 234:case 286:case 287:case 216:if(oi===sa.typeArguments)return Lt.push(Fi(oi,x.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function qn(oi,sa){for(let os of oi)switch(os.kind){case 87:if(sa)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:Lt.push($n(os,x.The_0_modifier_can_only_be_used_in_TypeScript_files,Zs(os.kind)));break;case 126:case 95:case 90:case 129:}}function Fi(oi,sa,...os){let Po=oi.pos;return md(dt,Po,oi.end-Po,sa,...os)}function $n(oi,sa,...os){return m0(dt,oi,sa,...os)}})}function jn(dt,Lt){let Tr=Le?.get(dt.path);return Tr||(Le??(Le=new Map)).set(dt.path,Tr=So(dt,Lt)),Tr}function So(dt,Lt){return Gp(()=>{let Tr=uu().getEmitResolver(dt,Lt);return hOe($r(zs),Tr,dt)||j})}function Di(dt,Lt){return dt.isDeclarationFile?j:jn(dt,Lt)}function On(){return nr(go(Ve.getCombinedDiagnostics(xr).getGlobalDiagnostics(),ua()))}function ua(){if(!me.configFile)return j;let dt=Ve.getCombinedDiagnostics(xr).getDiagnostics(me.configFile.fileName);return Dp(Lt=>{dt=go(dt,Ve.getCombinedDiagnostics(xr).getDiagnostics(Lt.sourceFile.fileName))}),dt}function va(){return _e.length?nr(uu().getGlobalDiagnostics().slice()):j}function Bl(){return le||j}function xc(dt,Lt,Tr,dn){yy(Qs(dt),Lt,Tr,void 0,dn)}function ep(dt,Lt){return dt.fileName===Lt.fileName}function W_(dt,Lt){return dt.kind===80?Lt.kind===80&&dt.escapedText===Lt.escapedText:Lt.kind===11&&dt.text===Lt.text}function g_(dt,Lt){let Tr=W.createStringLiteral(dt),dn=W.createImportDeclaration(void 0,void 0,Tr);return e3(dn,2),xl(Tr,dn),xl(dn,Lt),Tr.flags&=-17,dn.flags&=-17,Tr}function xu(dt){if(dt.imports)return;let Lt=ph(dt),Tr=yd(dt),dn,qn,Fi;if(Lt||!dt.isDeclarationFile&&(a1(me)||yd(dt))){me.importHelpers&&(dn=[g_(nC,dt)]);let oi=une(yH(me,dt),me);oi&&(dn||(dn=[])).push(g_(oi,dt))}for(let oi of dt.statements)$n(oi,!1);(dt.flags&4194304||Lt)&&Ine(dt,!0,!0,(oi,sa)=>{vA(oi,!1),dn=jt(dn,sa)}),dt.imports=dn||j,dt.moduleAugmentations=qn||j,dt.ambientModuleNames=Fi||j;return;function $n(oi,sa){if(xG(oi)){let os=JO(oi);os&&Ic(os)&&os.text&&(!sa||!vt(os.text))&&(vA(oi,!1),dn=jt(dn,os),!Es&&Sr===0&&!dt.isDeclarationFile&&(Ca(os.text,"node:")&&!wne.has(os.text)?Es=!0:Es===void 0&&c3e.has(os.text)&&(Es=!1)))}else if(I_(oi)&&Gm(oi)&&(sa||ko(oi,128)||dt.isDeclarationFile)){oi.name.parent=oi;let os=g0(oi.name);if(Tr||sa&&!vt(os))(qn||(qn=[])).push(oi.name);else if(!sa){dt.isDeclarationFile&&(Fi||(Fi=[])).push(os);let Po=oi.body;if(Po)for(let as of Po.statements)$n(as,!0)}}}}function a_(dt){var Lt;let Tr=_ge(dt),dn=Tr&&((Lt=ke?.get(Tr))==null?void 0:Lt.actual);return dn!==void 0?Nu(dn):void 0}function Gg(dt,Lt){return Wf(C0e(Lt.fileName,dt.fileName),Nu)}function Wf(dt,Lt,Tr,dn){if(eA(dt)){let qn=$t.getCanonicalFileName(dt);if(!me.allowNonTsExtensions&&!X(Rc(oo),$n=>Au(qn,$n))){Tr&&(jx(qn)?Tr(x.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,dt):Tr(x.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,dt,"'"+Rc(Wa).join("', '")+"'"));return}let Fi=Lt(dt);if(Tr)if(Fi)MA(dn)&&qn===$t.getCanonicalFileName(kc(dn.file).fileName)&&Tr(x.A_file_cannot_have_a_reference_to_itself);else{let $n=Mu(dt);$n?.outputDts?Tr(x.Output_file_0_has_not_been_built_from_source_file_1,$n.outputDts,dt):Tr(x.File_0_not_found,dt)}return Fi}else{let qn=me.allowNonTsExtensions&&Lt(dt);if(qn)return qn;if(Tr&&me.allowNonTsExtensions){Tr(x.File_0_not_found,dt);return}let Fi=X(Wa[0],$n=>Lt(dt+$n));return Tr&&!Fi&&Tr(x.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,dt,"'"+Rc(Wa).join("', '")+"'"),Fi}}function yy(dt,Lt,Tr,dn,qn){Wf(dt,Fi=>Vn(Fi,Lt,Tr,qn,dn),(Fi,...$n)=>Yn(void 0,qn,Fi,$n),qn)}function Wh(dt,Lt){return yy(dt,!1,!1,void 0,Lt)}function rt(dt,Lt,Tr){!MA(Tr)&&Pt(Ve.getFileReasons().get(Lt.path),MA)?Yn(Lt,Tr,x.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Lt.fileName,dt]):Yn(Lt,Tr,x.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[dt,Lt.fileName])}function br(dt,Lt,Tr,dn,qn,Fi,$n){var oi;let sa=PA.createRedirectedSourceFile({redirectTarget:dt,unredirected:Lt});return sa.fileName=Tr,sa.path=dn,sa.resolvedPath=qn,sa.originalFileName=Fi,sa.packageJsonLocations=(oi=$n.packageJsonLocations)!=null&&oi.length?$n.packageJsonLocations:void 0,sa.packageJsonScope=$n.packageJsonScope,Nn.set(dn,Sr>0),sa}function Vn(dt,Lt,Tr,dn,qn){var Fi,$n;(Fi=hi)==null||Fi.push(hi.Phase.Program,"findSourceFile",{fileName:dt,isDefaultLib:Lt||void 0,fileIncludeKind:H9[dn.kind]});let oi=el(dt,Lt,Tr,dn,qn);return($n=hi)==null||$n.pop(),oi}function Ga(dt,Lt,Tr,dn){let qn=toe(za(dt,uo),Lt?.getPackageJsonInfoCache(),Tr,dn),Fi=$c(dn),$n=dH(dn);return typeof qn=="object"?{...qn,languageVersion:Fi,setExternalModuleIndicator:$n,jsDocParsingMode:Tr.jsDocParsingMode}:{languageVersion:Fi,impliedNodeFormat:qn,setExternalModuleIndicator:$n,jsDocParsingMode:Tr.jsDocParsingMode}}function el(dt,Lt,Tr,dn,qn){var Fi,$n;let oi=_r(dt);if(Ot){let ka=Kp(oi);if(!ka&&$t.realpath&&me.preserveSymlinks&&sf(dt)&&dt.includes(Jx)){let lp=_r($t.realpath(dt));lp!==oi&&(ka=Kp(lp))}if(ka?.source){let lp=Vn(ka.source,Lt,Tr,dn,qn);return lp&&Uc(lp,oi,dt,void 0),lp}}let sa=dt;if(Dt.has(oi)){let ka=Dt.get(oi),lp=tl(ka||void 0,dn,!0);if(ka&&lp&&me.forceConsistentCasingInFileNames!==!1){let Hh=ka.fileName;_r(Hh)!==_r(dt)&&(dt=((Fi=Mu(dt))==null?void 0:Fi.outputDts)||dt);let Pf=ER(Hh,uo),m1=ER(dt,uo);Pf!==m1&&rt(dt,ka,dn)}return ka&&Nn.get(ka.path)&&Sr===0?(Nn.set(ka.path,!1),me.noResolve||(uf(ka,Lt),Hg(ka)),me.noLib||Gh(ka),nn.set(ka.path,!1),Iv(ka)):ka&&nn.get(ka.path)&&SrYn(void 0,dn,x.Cannot_read_file_0_Colon_1,[dt,ka]),pr);if(qn){let ka=cA(qn),lp=Ls.get(ka);if(lp){let Hh=br(lp,as,dt,oi,_r(dt),sa,Po);return Cn.add(lp.path,dt),Uc(Hh,oi,dt,os),tl(Hh,dn,!1),yc.set(oi,nre(qn)),Fe.push(Hh),Hh}else as&&(Ls.set(ka,as),yc.set(oi,nre(qn)))}if(Uc(as,oi,dt,os),as){if(Nn.set(oi,Sr>0),as.fileName=dt,as.path=oi,as.resolvedPath=_r(dt),as.originalFileName=sa,as.packageJsonLocations=($n=Po.packageJsonLocations)!=null&&$n.length?Po.packageJsonLocations:void 0,as.packageJsonScope=Po.packageJsonScope,tl(as,dn,!1),$t.useCaseSensitiveFileNames()){let ka=lb(oi),lp=Ee.get(ka);lp?rt(dt,lp,dn):Ee.set(ka,as)}Qn=Qn||as.hasNoDefaultLib&&!Tr,me.noResolve||(uf(as,Lt),Hg(as)),me.noLib||Gh(as),Iv(as),Lt?Ae.push(as):Fe.push(as),(je??(je=new Set)).add(as.path)}return as}function tl(dt,Lt,Tr){return dt&&(!Tr||!MA(Lt)||!je?.has(Lt.file))?(Ve.getFileReasons().add(dt.path,Lt),!0):!1}function Uc(dt,Lt,Tr,dn){dn?(nd(Tr,dn,dt),nd(Tr,Lt,dt||!1)):nd(Tr,Lt,dt)}function nd(dt,Lt,Tr){Dt.set(Lt,Tr),Tr!==void 0?ur.delete(Lt):ur.set(Lt,dt)}function Mu(dt){return et?.get(_r(dt))}function Dp(dt){return dge(Bt,dt)}function Kp(dt){return Ct?.get(dt)}function vy(dt){return Ot&&!!Mu(dt)}function If(dt){if(ye)return ye.get(dt)||void 0}function uf(dt,Lt){X(dt.referencedFiles,(Tr,dn)=>{yy(C0e(Tr.fileName,dt.fileName),Lt,!1,void 0,{kind:4,file:dt.path,index:dn})})}function Hg(dt){let Lt=dt.typeReferenceDirectives;if(!Lt.length)return;let Tr=We?.get(dt.path)||lr(Lt,dt),dn=OL();(Qe??(Qe=new Map)).set(dt.path,dn);for(let qn=0;qn{let dn=_ge(Lt);dn?xc(Wx(dn),!0,!0,{kind:7,file:dt.path,index:Tr}):Ve.addFileProcessingDiagnostic({kind:0,reason:{kind:7,file:dt.path,index:Tr}})})}function Nd(dt){return $t.getCanonicalFileName(dt)}function Iv(dt){if(xu(dt),dt.imports.length||dt.moduleAugmentations.length){let Lt=X_t(dt),Tr=tt?.get(dt.path)||tn(Lt,dt);$.assert(Tr.length===Lt.length);let dn=Ym(dt),qn=OL();(Se??(Se=new Map)).set(dt.path,qn);for(let Fi=0;FiKt,Hh=ka&&!j0e(dn,$n,dt)&&!dn.noResolve&&FiS3($n.commandLine,!$t.useCaseSensitiveFileNames()));qn.fileNames.forEach(os=>{let Po=_r(os),as;!sf(os)&&!Au(os,".json")&&(qn.options.outFile?as=oi:(as=Mz(os,$n.commandLine,!$t.useCaseSensitiveFileNames(),sa),Ct.set(_r(as),{resolvedRef:$n,source:os}))),et.set(Po,{resolvedRef:$n,outputDts:as})})}return qn.projectReferences&&($n.references=qn.projectReferences.map(US)),$n}function xe(){me.strictPropertyInitialization&&!rm(me,"strictNullChecks")&&it(x.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),me.exactOptionalPropertyTypes&&!rm(me,"strictNullChecks")&&it(x.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(me.isolatedModules||me.verbatimModuleSyntax)&&me.outFile&&it(x.Option_0_cannot_be_specified_with_option_1,"outFile",me.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),me.isolatedDeclarations&&(fC(me)&&it(x.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),fg(me)||it(x.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite")),me.inlineSourceMap&&(me.sourceMap&&it(x.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),me.mapRoot&&it(x.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),me.composite&&(me.declaration===!1&&it(x.Composite_projects_may_not_disable_declaration_emit,"declaration"),me.incremental===!1&&it(x.Composite_projects_may_not_disable_incremental_compilation,"declaration"));let dt=me.outFile;if(!me.tsBuildInfoFile&&me.incremental&&!dt&&!me.configFilePath&&Ve.addConfigDiagnostic(bp(x.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),Mr(),fo(),me.composite){let $n=new Set(_e.map(_r));for(let oi of Be)sP(oi,xr)&&!$n.has(oi.path)&&Ve.addLazyConfigDiagnostic(oi,x.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,oi.fileName,me.configFilePath||"")}if(me.paths){for(let $n in me.paths)if(Ho(me.paths,$n))if(Uhe($n)||Ea(!0,$n,x.Pattern_0_can_have_at_most_one_Asterisk_character,$n),Zn(me.paths[$n])){let oi=me.paths[$n].length;oi===0&&Ea(!1,$n,x.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,$n);for(let sa=0;sayd($n)&&!$n.isDeclarationFile);if(me.isolatedModules||me.verbatimModuleSyntax)me.module===0&&Lt<2&&me.isolatedModules&&it(x.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),me.preserveConstEnums===!1&&it(x.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,me.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Tr&&Lt<2&&me.module===0){let $n=$4(Tr,typeof Tr.externalModuleIndicator=="boolean"?Tr:Tr.externalModuleIndicator);Ve.addConfigDiagnostic(md(Tr,$n.start,$n.length,x.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(dt&&!me.emitDeclarationOnly){if(me.module&&!(me.module===2||me.module===4))it(x.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(me.module===void 0&&Tr){let $n=$4(Tr,typeof Tr.externalModuleIndicator=="boolean"?Tr:Tr.externalModuleIndicator);Ve.addConfigDiagnostic(md(Tr,$n.start,$n.length,x.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}}if(_P(me)&&(km(me)===1?it(x.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):ane(me)||it(x.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),me.outDir||me.rootDir||me.sourceRoot||me.mapRoot||fg(me)&&me.declarationDir){let $n=wr();me.outDir&&$n===""&&Be.some(oi=>Fy(oi.fileName)>1)&&it(x.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}me.checkJs&&!fC(me)&&it(x.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"),me.emitDeclarationOnly&&(fg(me)||it(x.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite")),me.emitDecoratorMetadata&&!me.experimentalDecorators&&it(x.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),me.jsxFactory?(me.reactNamespace&&it(x.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(me.jsx===4||me.jsx===5)&&it(x.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",eK.get(""+me.jsx)),AF(me.jsxFactory,Lt)||cr("jsxFactory",x.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,me.jsxFactory)):me.reactNamespace&&!Jd(me.reactNamespace,Lt)&&cr("reactNamespace",x.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,me.reactNamespace),me.jsxFragmentFactory&&(me.jsxFactory||it(x.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(me.jsx===4||me.jsx===5)&&it(x.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",eK.get(""+me.jsx)),AF(me.jsxFragmentFactory,Lt)||cr("jsxFragmentFactory",x.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,me.jsxFragmentFactory)),me.reactNamespace&&(me.jsx===4||me.jsx===5)&&it(x.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",eK.get(""+me.jsx)),me.jsxImportSource&&me.jsx===2&&it(x.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",eK.get(""+me.jsx));let dn=Km(me);me.verbatimModuleSyntax&&(dn===2||dn===3||dn===4)&&it(x.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),me.allowImportingTsExtensions&&!(me.noEmit||me.emitDeclarationOnly||me.rewriteRelativeImportExtensions)&&cr("allowImportingTsExtensions",x.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let qn=km(me);if(me.resolvePackageJsonExports&&!sL(qn)&&it(x.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),me.resolvePackageJsonImports&&!sL(qn)&&it(x.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),me.customConditions&&!sL(qn)&&it(x.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),qn===100&&!gH(dn)&&dn!==200&&cr("moduleResolution",x.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),tE[dn]&&100<=dn&&dn<=199&&!(3<=qn&&qn<=99)){let $n=tE[dn],oi=zk[$n]?$n:"Node16";cr("moduleResolution",x.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,oi,$n)}else if(zk[qn]&&3<=qn&&qn<=99&&!(100<=dn&&dn<=199)){let $n=zk[qn];cr("module",x.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,$n,$n)}if(!me.noEmit&&!me.suppressOutputPathCheck){let $n=$r(),oi=new Set;f0e($n,sa=>{me.emitDeclarationOnly||Fi(sa.jsFilePath,oi),Fi(sa.declarationFilePath,oi)})}function Fi($n,oi){if($n){let sa=_r($n);if(Dt.has(sa)){let Po;me.configFilePath||(Po=ws(void 0,x.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),Po=ws(Po,x.Cannot_write_file_0_because_it_would_overwrite_input_file,$n),Cc($n,nne(Po))}let os=$t.useCaseSensitiveFileNames()?sa:lb(sa);oi.has(os)?Cc($n,bp(x.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,$n)):oi.add(os)}}}function Ft(){let dt=me.ignoreDeprecations;if(dt){if(dt==="5.0")return new Iy(dt);Ce()}return Iy.zero}function Nr(dt,Lt,Tr,dn){let qn=new Iy(dt),Fi=new Iy(Lt),$n=new Iy(be||A),oi=Ft(),sa=Fi.compareTo($n)!==1,os=!sa&&oi.compareTo(qn)===-1;(sa||os)&&dn((Po,as,ka)=>{sa?as===void 0?Tr(Po,as,ka,x.Option_0_has_been_removed_Please_remove_it_from_your_configuration,Po):Tr(Po,as,ka,x.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,Po,as):as===void 0?Tr(Po,as,ka,x.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,Po,Lt,dt):Tr(Po,as,ka,x.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,Po,as,Lt,dt)})}function Mr(){function dt(Lt,Tr,dn,qn,...Fi){if(dn){let $n=ws(void 0,x.Use_0_instead,dn),oi=ws($n,qn,...Fi);Ka(!Tr,Lt,void 0,oi)}else Ka(!Tr,Lt,void 0,qn,...Fi)}Nr("5.0","5.5",dt,Lt=>{me.target===0&&Lt("target","ES3"),me.noImplicitUseStrict&&Lt("noImplicitUseStrict"),me.keyofStringsOnly&&Lt("keyofStringsOnly"),me.suppressExcessPropertyErrors&&Lt("suppressExcessPropertyErrors"),me.suppressImplicitAnyIndexErrors&&Lt("suppressImplicitAnyIndexErrors"),me.noStrictGenericChecks&&Lt("noStrictGenericChecks"),me.charset&&Lt("charset"),me.out&&Lt("out",void 0,"outFile"),me.importsNotUsedAsValues&&Lt("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),me.preserveValueImports&&Lt("preserveValueImports",void 0,"verbatimModuleSyntax")})}function wn(dt,Lt,Tr){function dn(qn,Fi,$n,oi,...sa){In(Lt,Tr,oi,...sa)}Nr("5.0","5.5",dn,qn=>{dt.prepend&&qn("prepend")})}function Yn(dt,Lt,Tr,dn){Ve.addFileProcessingDiagnostic({kind:1,file:dt&&dt.path,fileProcessingReason:Lt,diagnostic:Tr,args:dn})}function fo(){let dt=me.suppressOutputPathCheck?void 0:LA(me);tz(Oe,Bt,(Lt,Tr,dn)=>{let qn=(Tr?Tr.commandLine.projectReferences:Oe)[dn],Fi=Tr&&Tr.sourceFile;if(wn(qn,Fi,dn),!Lt){In(Fi,dn,x.File_0_not_found,qn.path);return}let $n=Lt.commandLine.options;(!$n.composite||$n.noEmit)&&(Tr?Tr.commandLine.fileNames:_e).length&&($n.composite||In(Fi,dn,x.Referenced_project_0_must_have_setting_composite_Colon_true,qn.path),$n.noEmit&&In(Fi,dn,x.Referenced_project_0_may_not_disable_emit,qn.path)),!Tr&&dt&&dt===LA($n)&&(In(Fi,dn,x.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,dt,qn.path),Oi.set(_r(dt),!0))})}function Mo(dt,Lt,Tr,...dn){let qn=!0;ee(Fi=>{Lc(Fi.initializer)&&JR(Fi.initializer,dt,$n=>{let oi=$n.initializer;qf(oi)&&oi.elements.length>Lt&&(Ve.addConfigDiagnostic(m0(me.configFile,oi.elements[Lt],Tr,...dn)),qn=!1)})}),qn&&Ws(Tr,...dn)}function Ea(dt,Lt,Tr,...dn){let qn=!0;ee(Fi=>{Lc(Fi.initializer)&&cp(Fi.initializer,dt,Lt,void 0,Tr,...dn)&&(qn=!1)}),qn&&Ws(Tr,...dn)}function ee(dt){return mge(Xa(),"paths",dt)}function it(dt,Lt,Tr,dn){Ka(!0,Lt,Tr,dt,Lt,Tr,dn)}function cr(dt,Lt,...Tr){Ka(!1,dt,void 0,Lt,...Tr)}function In(dt,Lt,Tr,...dn){let qn=wG(dt||me.configFile,"references",Fi=>qf(Fi.initializer)?Fi.initializer:void 0);qn&&qn.elements.length>Lt?Ve.addConfigDiagnostic(m0(dt||me.configFile,qn.elements[Lt],Tr,...dn)):Ve.addConfigDiagnostic(bp(Tr,...dn))}function Ka(dt,Lt,Tr,dn,...qn){let Fi=Xa();(!Fi||!cp(Fi,dt,Lt,Tr,dn,...qn))&&Ws(dn,...qn)}function Ws(dt,...Lt){let Tr=ks();Tr?"messageText"in dt?Ve.addConfigDiagnostic(Nx(me.configFile,Tr.name,dt)):Ve.addConfigDiagnostic(m0(me.configFile,Tr.name,dt,...Lt)):"messageText"in dt?Ve.addConfigDiagnostic(nne(dt)):Ve.addConfigDiagnostic(bp(dt,...Lt))}function Xa(){if($o===void 0){let dt=ks();$o=dt&&Ci(dt.initializer,Lc)||!1}return $o||void 0}function ks(){return ft===void 0&&(ft=JR(fU(me.configFile),"compilerOptions",vl)||!1),ft||void 0}function cp(dt,Lt,Tr,dn,qn,...Fi){let $n=!1;return JR(dt,Tr,oi=>{"messageText"in qn?Ve.addConfigDiagnostic(Nx(me.configFile,Lt?oi.name:oi.initializer,qn)):Ve.addConfigDiagnostic(m0(me.configFile,Lt?oi.name:oi.initializer,qn,...Fi)),$n=!0},dn),$n}function Cc(dt,Lt){Oi.set(_r(dt),!0),Ve.addConfigDiagnostic(Lt)}function pf(dt){if(me.noEmit)return!1;let Lt=_r(dt);if(kc(Lt))return!1;let Tr=me.outFile;if(Tr)return Kg(Lt,Tr)||Kg(Lt,Qm(Tr)+".d.ts");if(me.declarationDir&&ug(me.declarationDir,Lt,uo,!$t.useCaseSensitiveFileNames()))return!0;if(me.outDir)return ug(me.outDir,Lt,uo,!$t.useCaseSensitiveFileNames());if(_p(Lt,cL)||sf(Lt)){let dn=Qm(Lt);return!!kc(dn+".ts")||!!kc(dn+".tsx")}return!1}function Kg(dt,Lt){return M1(dt,Lt,uo,!$t.useCaseSensitiveFileNames())===0}function Ky(){return $t.getSymlinkCache?$t.getSymlinkCache():(de||(de=zhe(uo,Nd)),Be&&!de.hasProcessedResolutions()&&de.setSymlinksFromResolutions(Y,ot,It),de)}function A0(dt,Lt){return Zie(dt,Lt,Ym(dt))}function r2(dt,Lt){return G_t(dt,Lt,Ym(dt))}function PE(dt,Lt){return A0(dt,IK(dt,Lt))}function vh(dt){return roe(dt,Ym(dt))}function Nb(dt){return b3(dt,Ym(dt))}function Pv(dt){return zz(dt,Ym(dt))}function d1(dt){return Z_t(dt,Ym(dt))}function OC(dt,Lt){return dt.resolutionMode||vh(Lt)}}function Z_t(t,n){let a=Km(n);return 100<=a&&a<=199||a===200?!1:zz(t,n)<5}function zz(t,n){return b3(t,n)??Km(n)}function b3(t,n){var a,c;let u=Km(n);if(100<=u&&u<=199)return t.impliedNodeFormat;if(t.impliedNodeFormat===1&&(((a=t.packageJsonScope)==null?void 0:a.contents.packageJsonContent.type)==="commonjs"||_p(t.fileName,[".cjs",".cts"])))return 1;if(t.impliedNodeFormat===99&&(((c=t.packageJsonScope)==null?void 0:c.contents.packageJsonContent.type)==="module"||_p(t.fileName,[".mjs",".mts"])))return 99}function roe(t,n){return Bhe(n)?b3(t,n):void 0}function zsr(t){let n,a=t.compilerHost.fileExists,c=t.compilerHost.directoryExists,u=t.compilerHost.getDirectories,_=t.compilerHost.realpath;if(!t.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:zs,fileExists:g};t.compilerHost.fileExists=g;let f;return c&&(f=t.compilerHost.directoryExists=F=>c.call(t.compilerHost,F)?(C(F),!0):t.getResolvedProjectReferences()?(n||(n=new Set,t.forEachResolvedProjectReference(M=>{let U=M.commandLine.options.outFile;if(U)n.add(mo(t.toPath(U)));else{let J=M.commandLine.options.declarationDir||M.commandLine.options.outDir;J&&n.add(t.toPath(J))}})),O(F,!1)):!1),u&&(t.compilerHost.getDirectories=F=>!t.getResolvedProjectReferences()||c&&c.call(t.compilerHost,F)?u.call(t.compilerHost,F):[]),_&&(t.compilerHost.realpath=F=>{var M;return((M=t.getSymlinkCache().getSymlinkedFiles())==null?void 0:M.get(t.toPath(F)))||_.call(t.compilerHost,F)}),{onProgramCreateComplete:y,fileExists:g,directoryExists:f};function y(){t.compilerHost.fileExists=a,t.compilerHost.directoryExists=c,t.compilerHost.getDirectories=u}function g(F){return a.call(t.compilerHost,F)?!0:!t.getResolvedProjectReferences()||!sf(F)?!1:O(F,!0)}function k(F){let M=t.getRedirectFromOutput(t.toPath(F));return M!==void 0?Ni(M.source)?a.call(t.compilerHost,M.source):!0:void 0}function T(F){let M=t.toPath(F),U=`${M}${Gl}`;return Ix(n,J=>M===J||Ca(J,U)||Ca(M,`${J}/`))}function C(F){var M;if(!t.getResolvedProjectReferences()||QU(F)||!_||!F.includes(Jx))return;let U=t.getSymlinkCache(),J=r_(t.toPath(F));if((M=U.getSymlinkedDirectories())!=null&&M.has(J))return;let G=Qs(_.call(t.compilerHost,F)),Z;if(G===F||(Z=r_(t.toPath(G)))===J){U.setSymlinkedDirectory(J,!1);return}U.setSymlinkedDirectory(F,{real:r_(G),realPath:Z})}function O(F,M){var U;let J=M?k:T,G=J(F);if(G!==void 0)return G;let Z=t.getSymlinkCache(),Q=Z.getSymlinkedDirectories();if(!Q)return!1;let re=t.toPath(F);return re.includes(Jx)?M&&((U=Z.getSymlinkedFiles())!=null&&U.has(re))?!0:pt(Q.entries(),([ae,_e])=>{if(!_e||!Ca(re,ae))return;let me=J(re.replace(ae,_e.realPath));if(M&&me){let le=za(F,t.compilerHost.getCurrentDirectory());Z.setSymlinkedFile(re,`${_e.real}${le.replace(new RegExp(ae,"i"),"")}`)}return me})||!1:!1}}var L0e={diagnostics:j,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function M0e(t,n,a,c){let u=t.getCompilerOptions();if(u.noEmit)return n?L0e:t.emitBuildInfo(a,c);if(!u.noEmitOnError)return;let _=[...t.getOptionsDiagnostics(c),...t.getSyntacticDiagnostics(n,c),...t.getGlobalDiagnostics(c),...t.getSemanticDiagnostics(n,c)];if(_.length===0&&fg(t.getCompilerOptions())&&(_=t.getDeclarationDiagnostics(void 0,c)),!_.length)return;let f;if(!n){let y=t.emitBuildInfo(a,c);y.diagnostics&&(_=[..._,...y.diagnostics]),f=y.emittedFiles}return{diagnostics:_,sourceMaps:void 0,emittedFiles:f,emitSkipped:!0}}function noe(t,n){return yr(t,a=>!a.skippedOn||!n[a.skippedOn])}function ioe(t,n=t){return{fileExists:a=>n.fileExists(a),readDirectory(a,c,u,_,f){return $.assertIsDefined(n.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),n.readDirectory(a,c,u,_,f)},readFile:a=>n.readFile(a),directoryExists:ja(n,n.directoryExists),getDirectories:ja(n,n.getDirectories),realpath:ja(n,n.realpath),useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:()=>t.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||Sx,trace:t.trace?a=>t.trace(a):void 0}}function RF(t){return d1e(t.path)}function j0e(t,{extension:n},{isDeclarationFile:a}){switch(n){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return c();case".jsx":return c()||u();case".js":case".mjs":case".cjs":return u();case".json":return _();default:return f()}function c(){return t.jsx?void 0:x.Module_0_was_resolved_to_1_but_jsx_is_not_set}function u(){return fC(t)||!rm(t,"noImplicitAny")?void 0:x.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function _(){return _P(t)?void 0:x.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function f(){return a||t.allowArbitraryExtensions?void 0:x.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function X_t({imports:t,moduleAugmentations:n}){let a=t.map(c=>c);for(let c of n)c.kind===11&&a.push(c);return a}function IK({imports:t,moduleAugmentations:n},a){if(an.add(M)),c?.forEach(M=>{switch(M.kind){case 1:return n.add(T(F,M.file&&F.getSourceFileByPath(M.file),M.fileProcessingReason,M.diagnostic,M.args||j));case 0:return n.add(k(F,M));case 2:return M.diagnostics.forEach(U=>n.add(U));default:$.assertNever(M)}}),f?.forEach(({file:M,diagnostic:U,args:J})=>n.add(T(F,M,void 0,U,J))),y=void 0,g=void 0,n)}};function k(F,{reason:M}){let{file:U,pos:J,end:G}=Uz(F,M),Z=U.libReferenceDirectives[M.index],Q=pge(Z),re=Lk(Mk(Q,"lib."),".d.ts"),ae=xx(re,cie,vl);return md(U,$.checkDefined(J),$.checkDefined(G)-J,ae?x.Cannot_find_lib_definition_for_0_Did_you_mean_1:x.Cannot_find_lib_definition_for_0,Q,ae)}function T(F,M,U,J,G){let Z,Q,re,ae,_e,me,le=M&&a.get(M.path),Oe=MA(U)?U:void 0,be=M&&y?.get(M.path);be?(be.fileIncludeReasonDetails?(Z=new Set(le),le?.forEach(Ae)):le?.forEach(Ce),_e=be.redirectInfo):(le?.forEach(Ce),_e=M&&t1e(M,F.getCompilerOptionsForFile(M))),U&&Ce(U);let ue=Z?.size!==le?.length;Oe&&Z?.size===1&&(Z=void 0),Z&&be&&(be.details&&!ue?me=ws(be.details,J,...G??j):be.fileIncludeReasonDetails&&(ue?Fe()?Q=jt(be.fileIncludeReasonDetails.next.slice(0,le.length),Q[0]):Q=[...be.fileIncludeReasonDetails.next,Q[0]]:Fe()?Q=be.fileIncludeReasonDetails.next.slice(0,le.length):ae=be.fileIncludeReasonDetails)),me||(ae||(ae=Z&&ws(Q,x.The_file_is_in_the_program_because_Colon)),me=ws(_e?ae?[ae,..._e]:_e:ae,J,...G||j)),M&&(be?(!be.fileIncludeReasonDetails||!ue&&ae)&&(be.fileIncludeReasonDetails=ae):(y??(y=new Map)).set(M.path,be={fileIncludeReasonDetails:ae,redirectInfo:_e}),!be.details&&!ue&&(be.details=me.next));let De=Oe&&Uz(F,Oe);return De&&UL(De)?ure(De.file,De.pos,De.end-De.pos,me,re):nne(me,re);function Ce(Be){Z?.has(Be)||((Z??(Z=new Set)).add(Be),(Q??(Q=[])).push(i1e(F,Be)),Ae(Be))}function Ae(Be){!Oe&&MA(Be)?Oe=Be:Oe!==Be&&(re=jt(re,C(F,Be)))}function Fe(){var Be;return((Be=be.fileIncludeReasonDetails.next)==null?void 0:Be.length)!==le?.length}}function C(F,M){let U=g?.get(M);return U===void 0&&(g??(g=new Map)).set(M,U=O(F,M)??!1),U||void 0}function O(F,M){if(MA(M)){let re=Uz(F,M),ae;switch(M.kind){case 3:ae=x.File_is_included_via_import_here;break;case 4:ae=x.File_is_included_via_reference_here;break;case 5:ae=x.File_is_included_via_type_library_reference_here;break;case 7:ae=x.File_is_included_via_library_reference_here;break;default:$.assertNever(M)}return UL(re)?md(re.file,re.pos,re.end-re.pos,ae):void 0}let U=F.getCurrentDirectory(),J=F.getRootFileNames(),G=F.getCompilerOptions();if(!G.configFile)return;let Z,Q;switch(M.kind){case 0:if(!G.configFile.configFileSpecs)return;let re=za(J[M.index],U),ae=r1e(F,re);if(ae){Z=hre(G.configFile,"files",ae),Q=x.File_is_matched_by_files_list_specified_here;break}let _e=n1e(F,re);if(!_e||!Ni(_e))return;Z=hre(G.configFile,"include",_e),Q=x.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let me=F.getResolvedProjectReferences(),le=F.getProjectReferences(),Oe=$.checkDefined(me?.[M.index]),be=tz(le,me,(Fe,Be,de)=>Fe===Oe?{sourceFile:Be?.sourceFile||G.configFile,index:de}:void 0);if(!be)return;let{sourceFile:ue,index:De}=be,Ce=wG(ue,"references",Fe=>qf(Fe.initializer)?Fe.initializer:void 0);return Ce&&Ce.elements.length>De?m0(ue,Ce.elements[De],M.kind===2?x.File_is_output_from_referenced_project_specified_here:x.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!G.types)return;Z=fge(t(),"types",M.typeReference),Q=x.File_is_entry_point_of_type_library_specified_here;break;case 6:if(M.index!==void 0){Z=fge(t(),"lib",G.lib[M.index]),Q=x.File_is_library_specified_here;break}let Ae=sne($c(G));Z=Ae?u3e(t(),"target",Ae):void 0,Q=x.File_is_default_library_for_target_specified_here;break;default:$.assertNever(M)}return Z&&m0(G.configFile,Z,Q)}}function jOe(t,n,a,c,u,_){let f=[],{emitSkipped:y,diagnostics:g}=t.emit(n,k,c,a,u,_);return{outputFiles:f,emitSkipped:y,diagnostics:g};function k(T,C,O){f.push({name:T,writeByteOrderMark:O,text:C})}}var BOe=(t=>(t[t.ComputedDts=0]="ComputedDts",t[t.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",t[t.UsedVersion=2]="UsedVersion",t))(BOe||{}),Dv;(t=>{function n(){function be(ue,De,Ce){let Ae={getKeys:Fe=>De.get(Fe),getValues:Fe=>ue.get(Fe),keys:()=>ue.keys(),size:()=>ue.size,deleteKey:Fe=>{(Ce||(Ce=new Set)).add(Fe);let Be=ue.get(Fe);return Be?(Be.forEach(de=>c(De,de,Fe)),ue.delete(Fe),!0):!1},set:(Fe,Be)=>{Ce?.delete(Fe);let de=ue.get(Fe);return ue.set(Fe,Be),de?.forEach(ze=>{Be.has(ze)||c(De,ze,Fe)}),Be.forEach(ze=>{de?.has(ze)||a(De,ze,Fe)}),Ae}};return Ae}return be(new Map,new Map,void 0)}t.createManyToManyPathMap=n;function a(be,ue,De){let Ce=be.get(ue);Ce||(Ce=new Set,be.set(ue,Ce)),Ce.add(De)}function c(be,ue,De){let Ce=be.get(ue);return Ce?.delete(De)?(Ce.size||be.delete(ue),!0):!1}function u(be){return Wn(be.declarations,ue=>{var De;return(De=Pn(ue))==null?void 0:De.resolvedPath})}function _(be,ue){let De=be.getSymbolAtLocation(ue);return De&&u(De)}function f(be,ue,De,Ce){var Ae;return wl(((Ae=be.getRedirectFromSourceFile(ue))==null?void 0:Ae.outputDts)||ue,De,Ce)}function y(be,ue,De){let Ce;if(ue.imports&&ue.imports.length>0){let de=be.getTypeChecker();for(let ze of ue.imports){let ut=_(de,ze);ut?.forEach(Be)}}let Ae=mo(ue.resolvedPath);if(ue.referencedFiles&&ue.referencedFiles.length>0)for(let de of ue.referencedFiles){let ze=f(be,de.fileName,Ae,De);Be(ze)}if(be.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:de})=>{if(!de)return;let ze=de.resolvedFileName,ut=f(be,ze,Ae,De);Be(ut)},ue),ue.moduleAugmentations.length){let de=be.getTypeChecker();for(let ze of ue.moduleAugmentations){if(!Ic(ze))continue;let ut=de.getSymbolAtLocation(ze);ut&&Fe(ut)}}for(let de of be.getTypeChecker().getAmbientModules())de.declarations&&de.declarations.length>1&&Fe(de);return Ce;function Fe(de){if(de.declarations)for(let ze of de.declarations){let ut=Pn(ze);ut&&ut!==ue&&Be(ut.resolvedPath)}}function Be(de){(Ce||(Ce=new Set)).add(de)}}function g(be,ue){return ue&&!ue.referencedMap==!be}t.canReuseOldState=g;function k(be){return be.module!==0&&!be.outFile?n():void 0}t.createReferencedMap=k;function T(be,ue,De){var Ce,Ae;let Fe=new Map,Be=be.getCompilerOptions(),de=k(Be),ze=g(de,ue);be.getTypeChecker();for(let ut of be.getSourceFiles()){let je=$.checkDefined(ut.version,"Program intended to be used with Builder should have source files with versions set"),ve=ze?(Ce=ue.oldSignatures)==null?void 0:Ce.get(ut.resolvedPath):void 0,Le=ve===void 0?ze?(Ae=ue.fileInfos.get(ut.resolvedPath))==null?void 0:Ae.signature:void 0:ve||void 0;if(de){let Ve=y(be,ut,be.getCanonicalFileName);Ve&&de.set(ut.resolvedPath,Ve)}Fe.set(ut.resolvedPath,{version:je,signature:Le,affectsGlobalScope:Be.outFile?void 0:_e(ut)||void 0,impliedFormat:ut.impliedNodeFormat})}return{fileInfos:Fe,referencedMap:de,useFileVersionAsSignature:!De&&!ze}}t.create=T;function C(be){be.allFilesExcludingDefaultLibraryFile=void 0,be.allFileNames=void 0}t.releaseCache=C;function O(be,ue,De,Ce,Ae){var Fe;let Be=F(be,ue,De,Ce,Ae);return(Fe=be.oldSignatures)==null||Fe.clear(),Be}t.getFilesAffectedBy=O;function F(be,ue,De,Ce,Ae){let Fe=ue.getSourceFileByPath(De);return Fe?J(be,ue,Fe,Ce,Ae)?(be.referencedMap?Oe:le)(be,ue,Fe,Ce,Ae):[Fe]:j}t.getFilesAffectedByWithOldState=F;function M(be,ue,De){be.fileInfos.get(De).signature=ue,(be.hasCalledUpdateShapeSignature||(be.hasCalledUpdateShapeSignature=new Set)).add(De)}t.updateSignatureOfFile=M;function U(be,ue,De,Ce,Ae){be.emit(ue,(Fe,Be,de,ze,ut,je)=>{$.assert(sf(Fe),`File extension for signature expected to be dts: Got:: ${Fe}`),Ae(U0e(be,ue,Be,Ce,je),ut)},De,2,void 0,!0)}t.computeDtsSignature=U;function J(be,ue,De,Ce,Ae,Fe=be.useFileVersionAsSignature){var Be;if((Be=be.hasCalledUpdateShapeSignature)!=null&&Be.has(De.resolvedPath))return!1;let de=be.fileInfos.get(De.resolvedPath),ze=de.signature,ut;return!De.isDeclarationFile&&!Fe&&U(ue,De,Ce,Ae,je=>{ut=je,Ae.storeSignatureInfo&&(be.signatureInfo??(be.signatureInfo=new Map)).set(De.resolvedPath,0)}),ut===void 0&&(ut=De.version,Ae.storeSignatureInfo&&(be.signatureInfo??(be.signatureInfo=new Map)).set(De.resolvedPath,2)),(be.oldSignatures||(be.oldSignatures=new Map)).set(De.resolvedPath,ze||!1),(be.hasCalledUpdateShapeSignature||(be.hasCalledUpdateShapeSignature=new Set)).add(De.resolvedPath),de.signature=ut,ut!==ze}t.updateShapeSignature=J;function G(be,ue,De){if(ue.getCompilerOptions().outFile||!be.referencedMap||_e(De))return Z(be,ue);let Ae=new Set,Fe=[De.resolvedPath];for(;Fe.length;){let Be=Fe.pop();if(!Ae.has(Be)){Ae.add(Be);let de=be.referencedMap.getValues(Be);if(de)for(let ze of de.keys())Fe.push(ze)}}return so(Na(Ae.keys(),Be=>{var de;return((de=ue.getSourceFileByPath(Be))==null?void 0:de.fileName)??Be}))}t.getAllDependencies=G;function Z(be,ue){if(!be.allFileNames){let De=ue.getSourceFiles();be.allFileNames=De===j?j:De.map(Ce=>Ce.fileName)}return be.allFileNames}function Q(be,ue){let De=be.referencedMap.getKeys(ue);return De?so(De.keys()):[]}t.getReferencedByPaths=Q;function re(be){for(let ue of be.statements)if(!sre(ue))return!1;return!0}function ae(be){return Pt(be.moduleAugmentations,ue=>xb(ue.parent))}function _e(be){return ae(be)||!Lg(be)&&!h0(be)&&!re(be)}function me(be,ue,De){if(be.allFilesExcludingDefaultLibraryFile)return be.allFilesExcludingDefaultLibraryFile;let Ce;De&&Ae(De);for(let Fe of ue.getSourceFiles())Fe!==De&&Ae(Fe);return be.allFilesExcludingDefaultLibraryFile=Ce||j,be.allFilesExcludingDefaultLibraryFile;function Ae(Fe){ue.isSourceFileDefaultLibrary(Fe)||(Ce||(Ce=[])).push(Fe)}}t.getAllFilesExcludingDefaultLibraryFile=me;function le(be,ue,De){let Ce=ue.getCompilerOptions();return Ce&&Ce.outFile?[De]:me(be,ue,De)}function Oe(be,ue,De,Ce,Ae){if(_e(De))return me(be,ue,De);let Fe=ue.getCompilerOptions();if(Fe&&(a1(Fe)||Fe.outFile))return[De];let Be=new Map;Be.set(De.resolvedPath,De);let de=Q(be,De.resolvedPath);for(;de.length>0;){let ze=de.pop();if(!Be.has(ze)){let ut=ue.getSourceFileByPath(ze);Be.set(ze,ut),ut&&J(be,ue,ut,Ce,Ae)&&de.push(...Q(be,ut.resolvedPath))}}return so(Na(Be.values(),ze=>ze))}})(Dv||(Dv={}));var $Oe=(t=>(t[t.None=0]="None",t[t.Js=1]="Js",t[t.JsMap=2]="JsMap",t[t.JsInlineMap=4]="JsInlineMap",t[t.DtsErrors=8]="DtsErrors",t[t.DtsEmit=16]="DtsEmit",t[t.DtsMap=32]="DtsMap",t[t.Dts=24]="Dts",t[t.AllJs=7]="AllJs",t[t.AllDtsEmit=48]="AllDtsEmit",t[t.AllDts=56]="AllDts",t[t.All=63]="All",t))($Oe||{});function zL(t){return t.program!==void 0}function qsr(t){return $.assert(zL(t)),t}function AC(t){let n=1;return t.sourceMap&&(n=n|2),t.inlineSourceMap&&(n=n|4),fg(t)&&(n=n|24),t.declarationMap&&(n=n|32),t.emitDeclarationOnly&&(n=n&56),n}function ooe(t,n){let a=n&&(Kn(n)?n:AC(n)),c=Kn(t)?t:AC(t);if(a===c)return 0;if(!a||!c)return c;let u=a^c,_=0;return u&7&&(_=c&7),u&8&&(_=_|c&8),u&48&&(_=_|c&48),_}function Jsr(t,n){return t===n||t!==void 0&&n!==void 0&&t.size===n.size&&!Ix(t,a=>!n.has(a))}function Vsr(t,n){var a,c;let u=Dv.create(t,n,!1);u.program=t;let _=t.getCompilerOptions();u.compilerOptions=_;let f=_.outFile;u.semanticDiagnosticsPerFile=new Map,f&&_.composite&&n?.outSignature&&f===n.compilerOptions.outFile&&(u.outSignature=n.outSignature&&Y_t(_,n.compilerOptions,n.outSignature)),u.changedFilesSet=new Set,u.latestChangedDtsFile=_.composite?n?.latestChangedDtsFile:void 0,u.checkPending=u.compilerOptions.noCheck?!0:void 0;let y=Dv.canReuseOldState(u.referencedMap,n),g=y?n.compilerOptions:void 0,k=y&&!O4e(_,g),T=_.composite&&n?.emitSignatures&&!f&&!R4e(_,n.compilerOptions),C=!0;y?((a=n.changedFilesSet)==null||a.forEach(G=>u.changedFilesSet.add(G)),!f&&((c=n.affectedFilesPendingEmit)!=null&&c.size)&&(u.affectedFilesPendingEmit=new Map(n.affectedFilesPendingEmit),u.seenAffectedFiles=new Set),u.programEmitPending=n.programEmitPending,f&&u.changedFilesSet.size&&(k=!1,C=!1),u.hasErrorsFromOldState=n.hasErrors):u.buildInfoEmitPending=dP(_);let O=u.referencedMap,F=y?n.referencedMap:void 0,M=k&&!_.skipLibCheck==!g.skipLibCheck,U=M&&!_.skipDefaultLibCheck==!g.skipDefaultLibCheck;if(u.fileInfos.forEach((G,Z)=>{var Q;let re,ae;if(!y||!(re=n.fileInfos.get(Z))||re.version!==G.version||re.impliedFormat!==G.impliedFormat||!Jsr(ae=O&&O.getValues(Z),F&&F.getValues(Z))||ae&&Ix(ae,_e=>!u.fileInfos.has(_e)&&n.fileInfos.has(_e)))J(Z);else{let _e=t.getSourceFileByPath(Z),me=C?(Q=n.emitDiagnosticsPerFile)==null?void 0:Q.get(Z):void 0;if(me&&(u.emitDiagnosticsPerFile??(u.emitDiagnosticsPerFile=new Map)).set(Z,n.hasReusableDiagnostic?tdt(me,Z,t):edt(me,t)),k){if(_e.isDeclarationFile&&!M||_e.hasNoDefaultLib&&!U)return;let le=n.semanticDiagnosticsPerFile.get(Z);le&&(u.semanticDiagnosticsPerFile.set(Z,n.hasReusableDiagnostic?tdt(le,Z,t):edt(le,t)),(u.semanticDiagnosticsFromOldState??(u.semanticDiagnosticsFromOldState=new Set)).add(Z))}}if(T){let _e=n.emitSignatures.get(Z);_e&&(u.emitSignatures??(u.emitSignatures=new Map)).set(Z,Y_t(_,n.compilerOptions,_e))}}),y&&Ad(n.fileInfos,(G,Z)=>u.fileInfos.has(Z)?!1:G.affectsGlobalScope?!0:(u.buildInfoEmitPending=!0,!!f)))Dv.getAllFilesExcludingDefaultLibraryFile(u,t,void 0).forEach(G=>J(G.resolvedPath));else if(g){let G=F4e(_,g)?AC(_):ooe(_,g);G!==0&&(f?u.changedFilesSet.size||(u.programEmitPending=u.programEmitPending?u.programEmitPending|G:G):(t.getSourceFiles().forEach(Z=>{u.changedFilesSet.has(Z.resolvedPath)||q0e(u,Z.resolvedPath,G)}),$.assert(!u.seenAffectedFiles||!u.seenAffectedFiles.size),u.seenAffectedFiles=u.seenAffectedFiles||new Set),u.buildInfoEmitPending=!0)}return y&&u.semanticDiagnosticsPerFile.size!==u.fileInfos.size&&n.checkPending!==u.checkPending&&(u.buildInfoEmitPending=!0),u;function J(G){u.changedFilesSet.add(G),f&&(k=!1,C=!1,u.semanticDiagnosticsFromOldState=void 0,u.semanticDiagnosticsPerFile.clear(),u.emitDiagnosticsPerFile=void 0),u.buildInfoEmitPending=!0,u.programEmitPending=void 0}}function Y_t(t,n,a){return!!t.declarationMap==!!n.declarationMap?a:Ni(a)?[a]:a[0]}function edt(t,n){return t.length?Zo(t,a=>{if(Ni(a.messageText))return a;let c=UOe(a.messageText,a.file,n,u=>{var _;return(_=u.repopulateInfo)==null?void 0:_.call(u)});return c===a.messageText?a:{...a,messageText:c}}):t}function UOe(t,n,a,c){let u=c(t);if(u===!0)return{...yme(n),next:zOe(t.next,n,a,c)};if(u)return{...rre(n,a,u.moduleReference,u.mode,u.packageName||u.moduleReference),next:zOe(t.next,n,a,c)};let _=zOe(t.next,n,a,c);return _===t.next?t:{...t,next:_}}function zOe(t,n,a,c){return Zo(t,u=>UOe(u,n,a,c))}function tdt(t,n,a){if(!t.length)return j;let c;return t.map(_=>{let f=rdt(_,n,a,u);f.reportsUnnecessary=_.reportsUnnecessary,f.reportsDeprecated=_.reportDeprecated,f.source=_.source,f.skippedOn=_.skippedOn;let{relatedInformation:y}=_;return f.relatedInformation=y?y.length?y.map(g=>rdt(g,n,a,u)):[]:void 0,f});function u(_){return c??(c=mo(za(LA(a.getCompilerOptions()),a.getCurrentDirectory()))),wl(_,c,a.getCanonicalFileName)}}function rdt(t,n,a,c){let{file:u}=t,_=u!==!1?a.getSourceFileByPath(u?c(u):n):void 0;return{...t,file:_,messageText:Ni(t.messageText)?t.messageText:UOe(t.messageText,_,a,f=>f.info)}}function Wsr(t){Dv.releaseCache(t),t.program=void 0}function qOe(t,n){$.assert(!n||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==n||!t.semanticDiagnosticsPerFile.has(n.resolvedPath))}function ndt(t,n,a){for(var c;;){let{affectedFiles:u}=t;if(u){let y=t.seenAffectedFiles,g=t.affectedFilesIndex;for(;g{let y=a?_&55:_&7;y?t.affectedFilesPendingEmit.set(f,y):t.affectedFilesPendingEmit.delete(f)}),t.programEmitPending)){let _=a?t.programEmitPending&55:t.programEmitPending&7;_?t.programEmitPending=_:t.programEmitPending=void 0}}function aoe(t,n,a,c){let u=ooe(t,n);return a&&(u=u&56),c&&(u=u&8),u}function B0e(t){return t?8:56}function Gsr(t,n,a){var c;if((c=t.affectedFilesPendingEmit)!=null&&c.size)return Ad(t.affectedFilesPendingEmit,(u,_)=>{var f;let y=t.program.getSourceFileByPath(_);if(!y||!sP(y,t.program)){t.affectedFilesPendingEmit.delete(_);return}let g=(f=t.seenEmittedFiles)==null?void 0:f.get(y.resolvedPath),k=aoe(u,g,n,a);if(k)return{affectedFile:y,emitKind:k}})}function Hsr(t,n){var a;if((a=t.emitDiagnosticsPerFile)!=null&&a.size)return Ad(t.emitDiagnosticsPerFile,(c,u)=>{var _;let f=t.program.getSourceFileByPath(u);if(!f||!sP(f,t.program)){t.emitDiagnosticsPerFile.delete(u);return}let y=((_=t.seenEmittedFiles)==null?void 0:_.get(f.resolvedPath))||0;if(!(y&B0e(n)))return{affectedFile:f,diagnostics:c,seenKind:y}})}function odt(t){if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;let n=t.program.getCompilerOptions();X(t.program.getSourceFiles(),a=>t.program.isSourceFileDefaultLibrary(a)&&!W4e(a,n,t.program)&&VOe(t,a.resolvedPath))}}function Ksr(t,n,a,c){if(VOe(t,n.resolvedPath),t.allFilesExcludingDefaultLibraryFile===t.affectedFiles){odt(t),Dv.updateShapeSignature(t,t.program,n,a,c);return}t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||Qsr(t,n,a,c)}function JOe(t,n,a,c,u){if(VOe(t,n),!t.changedFilesSet.has(n)){let _=t.program.getSourceFileByPath(n);_&&(Dv.updateShapeSignature(t,t.program,_,c,u,!0),a?q0e(t,n,AC(t.compilerOptions)):fg(t.compilerOptions)&&q0e(t,n,t.compilerOptions.declarationMap?56:24))}}function VOe(t,n){return t.semanticDiagnosticsFromOldState?(t.semanticDiagnosticsFromOldState.delete(n),t.semanticDiagnosticsPerFile.delete(n),!t.semanticDiagnosticsFromOldState.size):!0}function adt(t,n){let a=$.checkDefined(t.oldSignatures).get(n)||void 0;return $.checkDefined(t.fileInfos.get(n)).signature!==a}function WOe(t,n,a,c,u){var _;return(_=t.fileInfos.get(n))!=null&&_.affectsGlobalScope?(Dv.getAllFilesExcludingDefaultLibraryFile(t,t.program,void 0).forEach(f=>JOe(t,f.resolvedPath,a,c,u)),odt(t),!0):!1}function Qsr(t,n,a,c){var u,_;if(!t.referencedMap||!t.changedFilesSet.has(n.resolvedPath)||!adt(t,n.resolvedPath))return;if(a1(t.compilerOptions)){let g=new Map;g.set(n.resolvedPath,!0);let k=Dv.getReferencedByPaths(t,n.resolvedPath);for(;k.length>0;){let T=k.pop();if(!g.has(T)){if(g.set(T,!0),WOe(t,T,!1,a,c))return;if(JOe(t,T,!1,a,c),adt(t,T)){let C=t.program.getSourceFileByPath(T);k.push(...Dv.getReferencedByPaths(t,C.resolvedPath))}}}}let f=new Set,y=!!((u=n.symbol)!=null&&u.exports)&&!!Ad(n.symbol.exports,g=>{if((g.flags&128)!==0)return!0;let k=$f(g,t.program.getTypeChecker());return k===g?!1:(k.flags&128)!==0&&Pt(k.declarations,T=>Pn(T)===n)});(_=t.referencedMap.getKeys(n.resolvedPath))==null||_.forEach(g=>{if(WOe(t,g,y,a,c))return!0;let k=t.referencedMap.getKeys(g);return k&&Ix(k,T=>sdt(t,T,y,f,a,c))})}function sdt(t,n,a,c,u,_){var f;if(Us(c,n)){if(WOe(t,n,a,u,_))return!0;JOe(t,n,a,u,_),(f=t.referencedMap.getKeys(n))==null||f.forEach(y=>sdt(t,y,a,c,u,_))}}function $0e(t,n,a,c){return t.compilerOptions.noCheck?j:go(Zsr(t,n,a,c),t.program.getProgramDiagnostics(n))}function Zsr(t,n,a,c){c??(c=t.semanticDiagnosticsPerFile);let u=n.resolvedPath,_=c.get(u);if(_)return noe(_,t.compilerOptions);let f=t.program.getBindAndCheckDiagnostics(n,a);return c.set(u,f),t.buildInfoEmitPending=!0,noe(f,t.compilerOptions)}function GOe(t){var n;return!!((n=t.options)!=null&&n.outFile)}function PK(t){return!!t.fileNames}function Xsr(t){return!PK(t)&&!!t.root}function cdt(t){t.hasErrors===void 0&&(dP(t.compilerOptions)?t.hasErrors=!Pt(t.program.getSourceFiles(),n=>{var a,c;let u=t.semanticDiagnosticsPerFile.get(n.resolvedPath);return u===void 0||!!u.length||!!((c=(a=t.emitDiagnosticsPerFile)==null?void 0:a.get(n.resolvedPath))!=null&&c.length)})&&(ldt(t)||Pt(t.program.getSourceFiles(),n=>!!t.program.getProgramDiagnostics(n).length)):t.hasErrors=Pt(t.program.getSourceFiles(),n=>{var a,c;let u=t.semanticDiagnosticsPerFile.get(n.resolvedPath);return!!u?.length||!!((c=(a=t.emitDiagnosticsPerFile)==null?void 0:a.get(n.resolvedPath))!=null&&c.length)})||ldt(t))}function ldt(t){return!!t.program.getConfigFileParsingDiagnostics().length||!!t.program.getSyntacticDiagnostics().length||!!t.program.getOptionsDiagnostics().length||!!t.program.getGlobalDiagnostics().length}function udt(t){return cdt(t),t.buildInfoEmitPending??(t.buildInfoEmitPending=!!t.hasErrorsFromOldState!=!!t.hasErrors)}function Ysr(t){var n,a;let c=t.program.getCurrentDirectory(),u=mo(za(LA(t.compilerOptions),c)),_=t.latestChangedDtsFile?Z(t.latestChangedDtsFile):void 0,f=[],y=new Map,g=new Set(t.program.getRootFileNames().map(de=>wl(de,c,t.program.getCanonicalFileName)));if(cdt(t),!dP(t.compilerOptions))return{root:so(g,ze=>Q(ze)),errors:t.hasErrors?!0:void 0,checkPending:t.checkPending,version:L};let k=[];if(t.compilerOptions.outFile){let de=so(t.fileInfos.entries(),([ut,je])=>{let ve=re(ut);return _e(ut,ve),je.impliedFormat?{version:je.version,impliedFormat:je.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:je.version});return{fileNames:f,fileInfos:de,root:k,resolvedRoot:me(),options:le(t.compilerOptions),semanticDiagnosticsPerFile:t.changedFilesSet.size?void 0:be(),emitDiagnosticsPerFile:ue(),changeFileSet:Be(),outSignature:t.outSignature,latestChangedDtsFile:_,pendingEmit:t.programEmitPending?t.programEmitPending===AC(t.compilerOptions)?!1:t.programEmitPending:void 0,errors:t.hasErrors?!0:void 0,checkPending:t.checkPending,version:L}}let T,C,O,F=so(t.fileInfos.entries(),([de,ze])=>{var ut,je;let ve=re(de);_e(de,ve),$.assert(f[ve-1]===Q(de));let Le=(ut=t.oldSignatures)==null?void 0:ut.get(de),Ve=Le!==void 0?Le||void 0:ze.signature;if(t.compilerOptions.composite){let nt=t.program.getSourceFileByPath(de);if(!h0(nt)&&sP(nt,t.program)){let It=(je=t.emitSignatures)==null?void 0:je.get(de);It!==Ve&&(O=jt(O,It===void 0?ve:[ve,!Ni(It)&&It[0]===Ve?j:It]))}}return ze.version===Ve?ze.affectsGlobalScope||ze.impliedFormat?{version:ze.version,signature:void 0,affectsGlobalScope:ze.affectsGlobalScope,impliedFormat:ze.impliedFormat}:ze.version:Ve!==void 0?Le===void 0?ze:{version:ze.version,signature:Ve,affectsGlobalScope:ze.affectsGlobalScope,impliedFormat:ze.impliedFormat}:{version:ze.version,signature:!1,affectsGlobalScope:ze.affectsGlobalScope,impliedFormat:ze.impliedFormat}}),M;(n=t.referencedMap)!=null&&n.size()&&(M=so(t.referencedMap.keys()).sort(Su).map(de=>[re(de),ae(t.referencedMap.getValues(de))]));let U=be(),J;if((a=t.affectedFilesPendingEmit)!=null&&a.size){let de=AC(t.compilerOptions),ze=new Set;for(let ut of so(t.affectedFilesPendingEmit.keys()).sort(Su))if(Us(ze,ut)){let je=t.program.getSourceFileByPath(ut);if(!je||!sP(je,t.program))continue;let ve=re(ut),Le=t.affectedFilesPendingEmit.get(ut);J=jt(J,Le===de?ve:Le===24?[ve]:[ve,Le])}}return{fileNames:f,fileIdsList:T,fileInfos:F,root:k,resolvedRoot:me(),options:le(t.compilerOptions),referencedMap:M,semanticDiagnosticsPerFile:U,emitDiagnosticsPerFile:ue(),changeFileSet:Be(),affectedFilesPendingEmit:J,emitSignatures:O,latestChangedDtsFile:_,errors:t.hasErrors?!0:void 0,checkPending:t.checkPending,version:L};function Z(de){return Q(za(de,c))}function Q(de){return Tx(lh(u,de,t.program.getCanonicalFileName))}function re(de){let ze=y.get(de);return ze===void 0&&(f.push(Q(de)),y.set(de,ze=f.length)),ze}function ae(de){let ze=so(de.keys(),re).sort(Br),ut=ze.join(),je=C?.get(ut);return je===void 0&&(T=jt(T,ze),(C??(C=new Map)).set(ut,je=T.length)),je}function _e(de,ze){let ut=t.program.getSourceFile(de);if(!t.program.getFileIncludeReasons().get(ut.path).some(Ve=>Ve.kind===0))return;if(!k.length)return k.push(ze);let je=k[k.length-1],ve=Zn(je);if(ve&&je[1]===ze-1)return je[1]=ze;if(ve||k.length===1||je!==ze-1)return k.push(ze);let Le=k[k.length-2];return!Kn(Le)||Le!==je-1?k.push(ze):(k[k.length-2]=[Le,ze],k.length=k.length-1)}function me(){let de;return g.forEach(ze=>{let ut=t.program.getSourceFileByPath(ze);ut&&ze!==ut.resolvedPath&&(de=jt(de,[re(ut.resolvedPath),re(ze)]))}),de}function le(de){let ze,{optionsNameMap:ut}=PL();for(let je of Lu(de).sort(Su)){let ve=ut.get(je.toLowerCase());ve?.affectsBuildInfo&&((ze||(ze={}))[je]=Oe(ve,de[je]))}return ze}function Oe(de,ze){if(de){if($.assert(de.type!=="listOrElement"),de.type==="list"){let ut=ze;if(de.element.isFilePath&&ut.length)return ut.map(Z)}else if(de.isFilePath)return Z(ze)}return ze}function be(){let de;return t.fileInfos.forEach((ze,ut)=>{let je=t.semanticDiagnosticsPerFile.get(ut);je?je.length&&(de=jt(de,[re(ut),De(je,ut)])):t.changedFilesSet.has(ut)||(de=jt(de,re(ut)))}),de}function ue(){var de;let ze;if(!((de=t.emitDiagnosticsPerFile)!=null&&de.size))return ze;for(let ut of so(t.emitDiagnosticsPerFile.keys()).sort(Su)){let je=t.emitDiagnosticsPerFile.get(ut);ze=jt(ze,[re(ut),De(je,ut)])}return ze}function De(de,ze){return $.assert(!!de.length),de.map(ut=>{let je=Ce(ut,ze);je.reportsUnnecessary=ut.reportsUnnecessary,je.reportDeprecated=ut.reportsDeprecated,je.source=ut.source,je.skippedOn=ut.skippedOn;let{relatedInformation:ve}=ut;return je.relatedInformation=ve?ve.length?ve.map(Le=>Ce(Le,ze)):[]:void 0,je})}function Ce(de,ze){let{file:ut}=de;return{...de,file:ut?ut.resolvedPath===ze?void 0:Q(ut.resolvedPath):!1,messageText:Ni(de.messageText)?de.messageText:Ae(de.messageText)}}function Ae(de){if(de.repopulateInfo)return{info:de.repopulateInfo(),next:Fe(de.next)};let ze=Fe(de.next);return ze===de.next?de:{...de,next:ze}}function Fe(de){return de&&(X(de,(ze,ut)=>{let je=Ae(ze);if(ze===je)return;let ve=ut>0?de.slice(0,ut-1):[];ve.push(je);for(let Le=ut+1;Le(t[t.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",t[t.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",t))(HOe||{});function soe(t,n,a,c,u,_){let f,y,g;return t===void 0?($.assert(n===void 0),f=a,g=c,$.assert(!!g),y=g.getProgram()):Zn(t)?(g=c,y=wK({rootNames:t,options:n,host:a,oldProgram:g&&g.getProgramOrUndefined(),configFileParsingDiagnostics:u,projectReferences:_}),f=a):(y=t,f=n,g=a,u=c),{host:f,newProgram:y,oldProgram:g,configFileParsingDiagnostics:u||j}}function pdt(t,n){return n?.sourceMapUrlPos!==void 0?t.substring(0,n.sourceMapUrlPos):t}function U0e(t,n,a,c,u){var _;a=pdt(a,u);let f;return(_=u?.diagnostics)!=null&&_.length&&(a+=u.diagnostics.map(k=>`${g(k)}${gO[k.category]}${k.code}: ${y(k.messageText)}`).join(` +`)),(c.createHash??qk)(a);function y(k){return Ni(k)?k:k===void 0?"":k.next?k.messageText+k.next.map(y).join(` +`):k.messageText}function g(k){return k.file.resolvedPath===n.resolvedPath?`(${k.start},${k.length})`:(f===void 0&&(f=mo(n.resolvedPath)),`${Tx(lh(f,k.file.resolvedPath,t.getCanonicalFileName))}(${k.start},${k.length})`)}}function ecr(t,n,a){return(n.createHash??qk)(pdt(t,a))}function z0e(t,{newProgram:n,host:a,oldProgram:c,configFileParsingDiagnostics:u}){let _=c&&c.state;if(_&&n===_.program&&u===n.getConfigFileParsingDiagnostics())return n=void 0,_=void 0,c;let f=Vsr(n,_);n.getBuildInfo=()=>Ysr(qsr(f)),n=void 0,c=void 0,_=void 0;let y=V0e(f,u);return y.state=f,y.hasChangedEmitSignature=()=>!!f.hasChangedEmitSignature,y.getAllDependencies=Z=>Dv.getAllDependencies(f,$.checkDefined(f.program),Z),y.getSemanticDiagnostics=G,y.getDeclarationDiagnostics=U,y.emit=F,y.releaseProgram=()=>Wsr(f),t===0?y.getSemanticDiagnosticsOfNextAffectedFile=J:t===1?(y.getSemanticDiagnosticsOfNextAffectedFile=J,y.emitNextAffectedFile=C,y.emitBuildInfo=g):Ts(),y;function g(Z,Q){if($.assert(zL(f)),udt(f)){let re=f.program.emitBuildInfo(Z||ja(a,a.writeFile),Q);return f.buildInfoEmitPending=!1,re}return L0e}function k(Z,Q,re,ae,_e){var me,le,Oe,be;$.assert(zL(f));let ue=ndt(f,Q,a),De=AC(f.compilerOptions),Ce=_e?8:re?De&56:De;if(!ue){if(f.compilerOptions.outFile){if(f.programEmitPending&&(Ce=aoe(f.programEmitPending,f.seenProgramEmit,re,_e),Ce&&(ue=f.program)),!ue&&((me=f.emitDiagnosticsPerFile)!=null&&me.size)){let Be=f.seenProgramEmit||0;if(!(Be&B0e(_e))){f.seenProgramEmit=B0e(_e)|Be;let de=[];return f.emitDiagnosticsPerFile.forEach(ze=>En(de,ze)),{result:{emitSkipped:!0,diagnostics:de},affected:f.program}}}}else{let Be=Gsr(f,re,_e);if(Be)({affectedFile:ue,emitKind:Ce}=Be);else{let de=Hsr(f,_e);if(de)return(f.seenEmittedFiles??(f.seenEmittedFiles=new Map)).set(de.affectedFile.resolvedPath,de.seenKind|B0e(_e)),{result:{emitSkipped:!0,diagnostics:de.diagnostics},affected:de.affectedFile}}}if(!ue){if(_e||!udt(f))return;let Be=f.program,de=Be.emitBuildInfo(Z||ja(a,a.writeFile),Q);return f.buildInfoEmitPending=!1,{result:de,affected:Be}}}let Ae;Ce&7&&(Ae=0),Ce&56&&(Ae=Ae===void 0?1:void 0);let Fe=_e?{emitSkipped:!0,diagnostics:f.program.getDeclarationDiagnostics(ue===f.program?void 0:ue,Q)}:f.program.emit(ue===f.program?void 0:ue,O(Z,ae),Q,Ae,ae,void 0,!0);if(ue!==f.program){let Be=ue;f.seenAffectedFiles.add(Be.resolvedPath),f.affectedFilesIndex!==void 0&&f.affectedFilesIndex++,f.buildInfoEmitPending=!0;let de=((le=f.seenEmittedFiles)==null?void 0:le.get(Be.resolvedPath))||0;(f.seenEmittedFiles??(f.seenEmittedFiles=new Map)).set(Be.resolvedPath,Ce|de);let ze=((Oe=f.affectedFilesPendingEmit)==null?void 0:Oe.get(Be.resolvedPath))||De,ut=ooe(ze,Ce|de);ut?(f.affectedFilesPendingEmit??(f.affectedFilesPendingEmit=new Map)).set(Be.resolvedPath,ut):(be=f.affectedFilesPendingEmit)==null||be.delete(Be.resolvedPath),Fe.diagnostics.length&&(f.emitDiagnosticsPerFile??(f.emitDiagnosticsPerFile=new Map)).set(Be.resolvedPath,Fe.diagnostics)}else f.changedFilesSet.clear(),f.programEmitPending=f.changedFilesSet.size?ooe(De,Ce):f.programEmitPending?ooe(f.programEmitPending,Ce):void 0,f.seenProgramEmit=Ce|(f.seenProgramEmit||0),T(Fe.diagnostics),f.buildInfoEmitPending=!0;return{result:Fe,affected:ue}}function T(Z){let Q;Z.forEach(re=>{if(!re.file)return;let ae=Q?.get(re.file.resolvedPath);ae||(Q??(Q=new Map)).set(re.file.resolvedPath,ae=[]),ae.push(re)}),Q&&(f.emitDiagnosticsPerFile=Q)}function C(Z,Q,re,ae){return k(Z,Q,re,ae,!1)}function O(Z,Q){return $.assert(zL(f)),fg(f.compilerOptions)?(re,ae,_e,me,le,Oe)=>{var be,ue,De;if(sf(re))if(f.compilerOptions.outFile){if(f.compilerOptions.composite){let Ae=Ce(f.outSignature,void 0);if(!Ae)return Oe.skippedDtsWrite=!0;f.outSignature=Ae}}else{$.assert(le?.length===1);let Ae;if(!Q){let Fe=le[0],Be=f.fileInfos.get(Fe.resolvedPath);if(Be.signature===Fe.version){let de=U0e(f.program,Fe,ae,a,Oe);(be=Oe?.diagnostics)!=null&&be.length||(Ae=de),de!==Fe.version&&(a.storeSignatureInfo&&(f.signatureInfo??(f.signatureInfo=new Map)).set(Fe.resolvedPath,1),f.affectedFiles&&((ue=f.oldSignatures)==null?void 0:ue.get(Fe.resolvedPath))===void 0&&(f.oldSignatures??(f.oldSignatures=new Map)).set(Fe.resolvedPath,Be.signature||!1),Be.signature=de)}}if(f.compilerOptions.composite){let Fe=le[0].resolvedPath;if(Ae=Ce((De=f.emitSignatures)==null?void 0:De.get(Fe),Ae),!Ae)return Oe.skippedDtsWrite=!0;(f.emitSignatures??(f.emitSignatures=new Map)).set(Fe,Ae)}}Z?Z(re,ae,_e,me,le,Oe):a.writeFile?a.writeFile(re,ae,_e,me,le,Oe):f.program.writeFile(re,ae,_e,me,le,Oe);function Ce(Ae,Fe){let Be=!Ae||Ni(Ae)?Ae:Ae[0];if(Fe??(Fe=ecr(ae,a,Oe)),Fe===Be){if(Ae===Be)return;Oe?Oe.differsOnlyInMap=!0:Oe={differsOnlyInMap:!0}}else f.hasChangedEmitSignature=!0,f.latestChangedDtsFile=re;return Fe}}:Z||ja(a,a.writeFile)}function F(Z,Q,re,ae,_e){$.assert(zL(f)),t===1&&qOe(f,Z);let me=M0e(y,Z,Q,re);if(me)return me;if(!Z)if(t===1){let Oe=[],be=!1,ue,De=[],Ce;for(;Ce=C(Q,re,ae,_e);)be=be||Ce.result.emitSkipped,ue=En(ue,Ce.result.diagnostics),De=En(De,Ce.result.emittedFiles),Oe=En(Oe,Ce.result.sourceMaps);return{emitSkipped:be,diagnostics:ue||j,emittedFiles:De,sourceMaps:Oe}}else idt(f,ae,!1);let le=f.program.emit(Z,O(Q,_e),re,ae,_e);return M(Z,ae,!1,le.diagnostics),le}function M(Z,Q,re,ae){!Z&&t!==1&&(idt(f,Q,re),T(ae))}function U(Z,Q){var re;if($.assert(zL(f)),t===1){qOe(f,Z);let ae,_e;for(;ae=k(void 0,Q,void 0,void 0,!0);)Z||(_e=En(_e,ae.result.diagnostics));return(Z?(re=f.emitDiagnosticsPerFile)==null?void 0:re.get(Z.resolvedPath):_e)||j}else{let ae=f.program.getDeclarationDiagnostics(Z,Q);return M(Z,void 0,!0,ae),ae}}function J(Z,Q){for($.assert(zL(f));;){let re=ndt(f,Z,a),ae;if(re)if(re!==f.program){let _e=re;if((!Q||!Q(_e))&&(ae=$0e(f,_e,Z)),f.seenAffectedFiles.add(_e.resolvedPath),f.affectedFilesIndex++,f.buildInfoEmitPending=!0,!ae)continue}else{let _e,me=new Map;f.program.getSourceFiles().forEach(le=>_e=En(_e,$0e(f,le,Z,me))),f.semanticDiagnosticsPerFile=me,ae=_e||j,f.changedFilesSet.clear(),f.programEmitPending=AC(f.compilerOptions),f.compilerOptions.noCheck||(f.checkPending=void 0),f.buildInfoEmitPending=!0}else{f.checkPending&&!f.compilerOptions.noCheck&&(f.checkPending=void 0,f.buildInfoEmitPending=!0);return}return{result:ae,affected:re}}}function G(Z,Q){if($.assert(zL(f)),qOe(f,Z),Z)return $0e(f,Z,Q);for(;;){let ae=J(Q);if(!ae)break;if(ae.affected===f.program)return ae.result}let re;for(let ae of f.program.getSourceFiles())re=En(re,$0e(f,ae,Q));return f.checkPending&&!f.compilerOptions.noCheck&&(f.checkPending=void 0,f.buildInfoEmitPending=!0),re||j}}function q0e(t,n,a){var c,u;let _=((c=t.affectedFilesPendingEmit)==null?void 0:c.get(n))||0;(t.affectedFilesPendingEmit??(t.affectedFilesPendingEmit=new Map)).set(n,_|a),(u=t.emitDiagnosticsPerFile)==null||u.delete(n)}function KOe(t){return Ni(t)?{version:t,signature:t,affectsGlobalScope:void 0,impliedFormat:void 0}:Ni(t.signature)?t:{version:t.version,signature:t.signature===!1?void 0:t.version,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}}function QOe(t,n){return Kn(t)?n:t[1]||24}function ZOe(t,n){return t||AC(n||{})}function XOe(t,n,a){var c,u,_,f;let y=mo(za(n,a.getCurrentDirectory())),g=_d(a.useCaseSensitiveFileNames()),k,T=(c=t.fileNames)==null?void 0:c.map(U),C,O=t.latestChangedDtsFile?J(t.latestChangedDtsFile):void 0,F=new Map,M=new Set(Cr(t.changeFileSet,G));if(GOe(t))t.fileInfos.forEach((_e,me)=>{let le=G(me+1);F.set(le,Ni(_e)?{version:_e,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:_e)}),k={fileInfos:F,compilerOptions:t.options?gie(t.options,J):{},semanticDiagnosticsPerFile:re(t.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:ae(t.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:M,latestChangedDtsFile:O,outSignature:t.outSignature,programEmitPending:t.pendingEmit===void 0?void 0:ZOe(t.pendingEmit,t.options),hasErrors:t.errors,checkPending:t.checkPending};else{C=(u=t.fileIdsList)==null?void 0:u.map(le=>new Set(le.map(G)));let _e=(_=t.options)!=null&&_.composite&&!t.options.outFile?new Map:void 0;t.fileInfos.forEach((le,Oe)=>{let be=G(Oe+1),ue=KOe(le);F.set(be,ue),_e&&ue.signature&&_e.set(be,ue.signature)}),(f=t.emitSignatures)==null||f.forEach(le=>{if(Kn(le))_e.delete(G(le));else{let Oe=G(le[0]);_e.set(Oe,!Ni(le[1])&&!le[1].length?[_e.get(Oe)]:le[1])}});let me=t.affectedFilesPendingEmit?AC(t.options||{}):void 0;k={fileInfos:F,compilerOptions:t.options?gie(t.options,J):{},referencedMap:Q(t.referencedMap,t.options??{}),semanticDiagnosticsPerFile:re(t.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:ae(t.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:M,affectedFilesPendingEmit:t.affectedFilesPendingEmit&&_l(t.affectedFilesPendingEmit,le=>G(Kn(le)?le:le[0]),le=>QOe(le,me)),latestChangedDtsFile:O,emitSignatures:_e?.size?_e:void 0,hasErrors:t.errors,checkPending:t.checkPending}}return{state:k,getProgram:Ts,getProgramOrUndefined:Sx,releaseProgram:zs,getCompilerOptions:()=>k.compilerOptions,getSourceFile:Ts,getSourceFiles:Ts,getOptionsDiagnostics:Ts,getGlobalDiagnostics:Ts,getConfigFileParsingDiagnostics:Ts,getSyntacticDiagnostics:Ts,getDeclarationDiagnostics:Ts,getSemanticDiagnostics:Ts,emit:Ts,getAllDependencies:Ts,getCurrentDirectory:Ts,emitNextAffectedFile:Ts,getSemanticDiagnosticsOfNextAffectedFile:Ts,emitBuildInfo:Ts,close:zs,hasChangedEmitSignature:Yf};function U(_e){return wl(_e,y,g)}function J(_e){return za(_e,y)}function G(_e){return T[_e-1]}function Z(_e){return C[_e-1]}function Q(_e,me){let le=Dv.createReferencedMap(me);return!le||!_e||_e.forEach(([Oe,be])=>le.set(G(Oe),Z(be))),le}function re(_e){let me=new Map(Na(F.keys(),le=>M.has(le)?void 0:[le,j]));return _e?.forEach(le=>{Kn(le)?me.delete(G(le)):me.set(G(le[0]),le[1])}),me}function ae(_e){return _e&&_l(_e,me=>G(me[0]),me=>me[1])}}function J0e(t,n,a){let c=mo(za(n,a.getCurrentDirectory())),u=_d(a.useCaseSensitiveFileNames()),_=new Map,f=0,y=new Map,g=new Map(t.resolvedRoot);return t.fileInfos.forEach((T,C)=>{let O=wl(t.fileNames[C],c,u),F=Ni(T)?T:T.version;if(_.set(O,F),fwl(_,c,u))}function V0e(t,n){return{state:void 0,getProgram:a,getProgramOrUndefined:()=>t.program,releaseProgram:()=>t.program=void 0,getCompilerOptions:()=>t.compilerOptions,getSourceFile:c=>a().getSourceFile(c),getSourceFiles:()=>a().getSourceFiles(),getOptionsDiagnostics:c=>a().getOptionsDiagnostics(c),getGlobalDiagnostics:c=>a().getGlobalDiagnostics(c),getConfigFileParsingDiagnostics:()=>n,getSyntacticDiagnostics:(c,u)=>a().getSyntacticDiagnostics(c,u),getDeclarationDiagnostics:(c,u)=>a().getDeclarationDiagnostics(c,u),getSemanticDiagnostics:(c,u)=>a().getSemanticDiagnostics(c,u),emit:(c,u,_,f,y)=>a().emit(c,u,_,f,y),emitBuildInfo:(c,u)=>a().emitBuildInfo(c,u),getAllDependencies:Ts,getCurrentDirectory:()=>a().getCurrentDirectory(),close:zs};function a(){return $.checkDefined(t.program)}}function _dt(t,n,a,c,u,_){return z0e(0,soe(t,n,a,c,u,_))}function W0e(t,n,a,c,u,_){return z0e(1,soe(t,n,a,c,u,_))}function ddt(t,n,a,c,u,_){let{newProgram:f,configFileParsingDiagnostics:y}=soe(t,n,a,c,u,_);return V0e({program:f,compilerOptions:f.getCompilerOptions()},y)}function coe(t){return au(t,"/node_modules/.staging")?Lk(t,"/.staging"):Pt(b4,n=>t.includes(n))?void 0:t}function eFe(t,n){if(n<=1)return 1;let a=1,c=t[0].search(/[a-z]:/i)===0;if(t[0]!==Gl&&!c&&t[1].search(/[a-z]\$$/i)===0){if(n===2)return 2;a=2,c=!0}return c&&!t[a].match(/^users$/i)?a:t[a].match(/^workspaces$/i)?a+1:a+2}function G0e(t,n){if(n===void 0&&(n=t.length),n<=2)return!1;let a=eFe(t,n);return n>a+1}function NK(t){return G0e(Cd(t))}function tFe(t){return mdt(mo(t))}function fdt(t,n){if(n.lengthu.length+1?nFe(k,g,Math.max(u.length+1,T+1),O):{dir:a,dirPath:c,nonRecursive:!0}:hdt(k,g,g.length-1,T,C,u,O,y)}function hdt(t,n,a,c,u,_,f,y){if(u!==-1)return nFe(t,n,u+1,f);let g=!0,k=a;if(!y){for(let T=0;T=a&&c+2tcr(c,u,_,t,a,n,f)}}function tcr(t,n,a,c,u,_,f){let y=loe(t),g=h3(a,c,u,y,n,_,f);if(!t.getGlobalTypingsCacheLocation)return g;let k=t.getGlobalTypingsCacheLocation();if(k!==void 0&&!vt(a)&&!(g.resolvedModule&&vne(g.resolvedModule.extension))){let{resolvedModule:T,failedLookupLocations:C,affectingLocations:O,resolutionDiagnostics:F}=g8e($.checkDefined(t.globalCacheResolutionModuleName)(a),t.projectName,u,y,k,n);if(T)return g.resolvedModule=T,g.failedLookupLocations=NL(g.failedLookupLocations,C),g.affectingLocations=NL(g.affectingLocations,O),g.resolutionDiagnostics=NL(g.resolutionDiagnostics,F),g}return g}function K0e(t,n,a){let c,u,_,f=new Set,y=new Set,g=new Set,k=new Map,T=new Map,C=!1,O,F,M,U,J,G=!1,Z=Ef(()=>t.getCurrentDirectory()),Q=t.getCachedDirectoryStructureHost(),re=new Map,ae=FL(Z(),t.getCanonicalFileName,t.getCompilationSettings()),_e=new Map,me=Die(Z(),t.getCanonicalFileName,t.getCompilationSettings(),ae.getPackageJsonInfoCache(),ae.optionsToRedirectsKey),le=new Map,Oe=FL(Z(),t.getCanonicalFileName,Iye(t.getCompilationSettings()),ae.getPackageJsonInfoCache()),be=new Map,ue=new Map,De=oFe(n,Z),Ce=t.toPath(De),Ae=Cd(Ce),Fe=G0e(Ae),Be=new Map,de=new Map,ze=new Map,ut=new Map;return{rootDirForResolution:n,resolvedModuleNames:re,resolvedTypeReferenceDirectives:_e,resolvedLibraries:le,resolvedFileToResolution:k,resolutionsWithFailedLookups:y,resolutionsWithOnlyAffectingLocations:g,directoryWatchesOfFailedLookups:be,fileWatchesOfAffectingLocations:ue,packageDirWatchers:de,dirPathToSymlinkPackageRefCount:ze,watchFailedLookupLocationsOfExternalModuleResolutions:Dr,getModuleResolutionCache:()=>ae,startRecordingFilesWithChangedResolutions:Le,finishRecordingFilesWithChangedResolutions:Ve,startCachingPerDirectoryResolution:ke,finishCachingPerDirectoryResolution:Se,resolveModuleNameLiterals:Sr,resolveTypeReferenceDirectiveReferences:Kt,resolveLibrary:nn,resolveSingleModuleNameWithoutWatching:Nn,removeResolutionsFromProjectReferenceRedirects:Eo,removeResolutionsOfFile:ya,hasChangedAutomaticTypeDirectiveNames:()=>C,invalidateResolutionOfFile:yc,invalidateResolutionsOfFailedLookupLocations:ur,setFilesWithInvalidatedNonRelativeUnresolvedImports:Cn,createHasInvalidatedResolutions:It,isFileWithInvalidatedNonRelativeUnresolvedImports:nt,updateTypeRootsWatch:Ot,closeTypeRootsWatch:et,clear:je,onChangesAffectModuleResolution:ve};function je(){dg(be,C0),dg(ue,C0),Be.clear(),de.clear(),ze.clear(),f.clear(),et(),re.clear(),_e.clear(),k.clear(),y.clear(),g.clear(),M=void 0,U=void 0,J=void 0,F=void 0,O=void 0,G=!1,ae.clear(),me.clear(),ae.update(t.getCompilationSettings()),me.update(t.getCompilationSettings()),Oe.clear(),T.clear(),le.clear(),C=!1}function ve(){G=!0,ae.clearAllExceptPackageJsonInfoCache(),me.clearAllExceptPackageJsonInfoCache(),ae.update(t.getCompilationSettings()),me.update(t.getCompilationSettings())}function Le(){c=[]}function Ve(){let at=c;return c=void 0,at}function nt(at){if(!_)return!1;let Zt=_.get(at);return!!Zt&&!!Zt.length}function It(at,Zt){ur();let Qt=u;return u=void 0,{hasInvalidatedResolutions:pr=>at(pr)||G||!!Qt?.has(pr)||nt(pr),hasInvalidatedLibResolutions:pr=>{var Et;return Zt(pr)||!!((Et=le?.get(pr))!=null&&Et.isInvalidated)}}}function ke(){ae.isReadonly=void 0,me.isReadonly=void 0,Oe.isReadonly=void 0,ae.getPackageJsonInfoCache().isReadonly=void 0,ae.clearAllExceptPackageJsonInfoCache(),me.clearAllExceptPackageJsonInfoCache(),Oe.clearAllExceptPackageJsonInfoCache(),Wa(),Be.clear()}function _t(at){le.forEach((Zt,Qt)=>{var pr;(pr=at?.resolvedLibReferences)!=null&&pr.has(Qt)||(Ht(Zt,t.toPath(eoe(t.getCompilationSettings(),Z(),Qt)),jO),le.delete(Qt))})}function Se(at,Zt){_=void 0,G=!1,Wa(),at!==Zt&&(_t(at),at?.getSourceFiles().forEach(Qt=>{var pr;let Et=((pr=Qt.packageJsonLocations)==null?void 0:pr.length)??0,xr=T.get(Qt.resolvedPath)??j;for(let gi=xr.length;giEt)for(let gi=Et;gi{let Et=at?.getSourceFileByPath(pr);(!Et||Et.resolvedPath!==pr)&&(Qt.forEach(xr=>ue.get(xr).files--),T.delete(pr))})),be.forEach(Qe),ue.forEach(We),de.forEach(tt),C=!1,ae.isReadonly=!0,me.isReadonly=!0,Oe.isReadonly=!0,ae.getPackageJsonInfoCache().isReadonly=!0,Be.clear()}function tt(at,Zt){at.dirPathToWatcher.size===0&&de.delete(Zt)}function Qe(at,Zt){at.refCount===0&&(be.delete(Zt),at.watcher.close())}function We(at,Zt){var Qt;at.files===0&&at.resolutions===0&&!((Qt=at.symlinks)!=null&&Qt.size)&&(ue.delete(Zt),at.watcher.close())}function St({entries:at,containingFile:Zt,containingSourceFile:Qt,redirectedReference:pr,options:Et,perFileCache:xr,reusedNames:gi,loader:Ye,getResolutionWithResolvedFileName:er,deferWatchingNonRelativeResolution:Ne,shouldRetryResolution:Y,logChanges:ot}){var pe;let Gt=t.toPath(Zt),mr=xr.get(Gt)||xr.set(Gt,OL()).get(Gt),Ge=[],Mt=ot&&nt(Gt),Ir=t.getCurrentProgram(),ii=Ir&&((pe=Ir.getRedirectFromSourceFile(Zt))==null?void 0:pe.resolvedRef),Rn=ii?!pr||pr.sourceFile.path!==ii.sourceFile.path:!!pr,zn=OL();for(let rr of at){let _r=Ye.nameAndMode.getName(rr),wr=Ye.nameAndMode.getMode(rr,Qt,pr?.commandLine.options||Et),pn=mr.get(_r,wr);if(!zn.has(_r,wr)&&(G||Rn||!pn||pn.isInvalidated||Mt&&!vt(_r)&&Y(pn))){let tn=pn;pn=Ye.resolve(_r,wr),t.onDiscoveredSymlink&&rcr(pn)&&t.onDiscoveredSymlink(),mr.set(_r,wr,pn),pn!==tn&&(Dr(_r,pn,Gt,er,Ne),tn&&Ht(tn,Gt,er)),ot&&c&&!Rt(tn,pn)&&(c.push(Gt),ot=!1)}else{let tn=loe(t);if(TC(Et,tn)&&!zn.has(_r,wr)){let lr=er(pn);ns(tn,xr===re?lr?.resolvedFileName?lr.packageId?x.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:x.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:x.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:lr?.resolvedFileName?lr.packageId?x.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:x.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:x.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,_r,Zt,lr?.resolvedFileName,lr?.packageId&&cA(lr.packageId))}}$.assert(pn!==void 0&&!pn.isInvalidated),zn.set(_r,wr,!0),Ge.push(pn)}return gi?.forEach(rr=>zn.set(Ye.nameAndMode.getName(rr),Ye.nameAndMode.getMode(rr,Qt,pr?.commandLine.options||Et),!0)),mr.size()!==zn.size()&&mr.forEach((rr,_r,wr)=>{zn.has(_r,wr)||(Ht(rr,Gt,er),mr.delete(_r,wr))}),Ge;function Rt(rr,_r){if(rr===_r)return!0;if(!rr||!_r)return!1;let wr=er(rr),pn=er(_r);return wr===pn?!0:!wr||!pn?!1:wr.resolvedFileName===pn.resolvedFileName}}function Kt(at,Zt,Qt,pr,Et,xr){return St({entries:at,containingFile:Zt,containingSourceFile:Et,redirectedReference:Qt,options:pr,reusedNames:xr,perFileCache:_e,loader:Yie(Zt,Qt,pr,loe(t),me),getResolutionWithResolvedFileName:tre,shouldRetryResolution:gi=>gi.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Sr(at,Zt,Qt,pr,Et,xr){return St({entries:at,containingFile:Zt,containingSourceFile:Et,redirectedReference:Qt,options:pr,reusedNames:xr,perFileCache:re,loader:aFe(Zt,Qt,pr,t,ae),getResolutionWithResolvedFileName:jO,shouldRetryResolution:gi=>!gi.resolvedModule||!JU(gi.resolvedModule.extension),logChanges:a,deferWatchingNonRelativeResolution:!0})}function nn(at,Zt,Qt,pr){let Et=loe(t),xr=le?.get(pr);if(!xr||xr.isInvalidated){let gi=xr;xr=Aie(at,Zt,Qt,Et,Oe);let Ye=t.toPath(Zt);Dr(at,xr,Ye,jO,!1),le.set(pr,xr),gi&&Ht(gi,Ye,jO)}else if(TC(Qt,Et)){let gi=jO(xr);ns(Et,gi?.resolvedFileName?gi.packageId?x.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:x.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:x.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,at,Zt,gi?.resolvedFileName,gi?.packageId&&cA(gi.packageId))}return xr}function Nn(at,Zt){var Qt,pr;let Et=t.toPath(Zt),xr=re.get(Et),gi=xr?.get(at,void 0);if(gi&&!gi.isInvalidated)return gi;let Ye=(Qt=t.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:Qt.call(t,ae),er=loe(t),Ne=h3(at,Zt,t.getCompilationSettings(),er,ae);return(pr=t.afterResolveSingleModuleNameWithoutWatching)==null||pr.call(t,ae,at,Zt,Ne,Ye),Ne}function $t(at){return au(at,"/node_modules/@types")}function Dr(at,Zt,Qt,pr,Et){if((Zt.files??(Zt.files=new Set)).add(Qt),Zt.files.size!==1)return;!Et||vt(at)?Ko(Zt):f.add(Zt);let xr=pr(Zt);if(xr&&xr.resolvedFileName){let gi=t.toPath(xr.resolvedFileName),Ye=k.get(gi);Ye||k.set(gi,Ye=new Set),Ye.add(Zt)}}function Qn(at,Zt){let Qt=t.toPath(at),pr=H0e(at,Qt,De,Ce,Ae,Fe,Z,t.preferNonRecursiveWatch);if(pr){let{dir:Et,dirPath:xr,nonRecursive:gi,packageDir:Ye,packageDirPath:er}=pr;xr===Ce?($.assert(gi),$.assert(!Ye),Zt=!0):Oi(Et,xr,Ye,er,gi)}return Zt}function Ko(at){var Zt;$.assert(!!((Zt=at.files)!=null&&Zt.size));let{failedLookupLocations:Qt,affectingLocations:pr,alternateResult:Et}=at;if(!Qt?.length&&!pr?.length&&!Et)return;(Qt?.length||Et)&&y.add(at);let xr=!1;if(Qt)for(let gi of Qt)xr=Qn(gi,xr);Et&&(xr=Qn(Et,xr)),xr&&Oi(De,Ce,void 0,void 0,!0),is(at,!Qt?.length&&!Et)}function is(at,Zt){var Qt;$.assert(!!((Qt=at.files)!=null&&Qt.size));let{affectingLocations:pr}=at;if(pr?.length){Zt&&g.add(at);for(let Et of pr)sr(Et,!0)}}function sr(at,Zt){let Qt=ue.get(at);if(Qt){Zt?Qt.resolutions++:Qt.files++;return}let pr=at,Et=!1,xr;t.realpath&&(pr=t.realpath(at),at!==pr&&(Et=!0,xr=ue.get(pr)));let gi=Zt?1:0,Ye=Zt?0:1;if(!Et||!xr){let er={watcher:rFe(t.toPath(pr))?t.watchAffectingFileLocation(pr,(Ne,Y)=>{Q?.addOrDeleteFile(Ne,t.toPath(pr),Y),uo(pr,ae.getPackageJsonInfoCache().getInternalMap()),t.scheduleInvalidateResolutionsOfFailedLookupLocations()}):JL,resolutions:Et?0:gi,files:Et?0:Ye,symlinks:void 0};ue.set(pr,er),Et&&(xr=er)}if(Et){$.assert(!!xr);let er={watcher:{close:()=>{var Ne;let Y=ue.get(pr);(Ne=Y?.symlinks)!=null&&Ne.delete(at)&&!Y.symlinks.size&&!Y.resolutions&&!Y.files&&(ue.delete(pr),Y.watcher.close())}},resolutions:gi,files:Ye,symlinks:void 0};ue.set(at,er),(xr.symlinks??(xr.symlinks=new Set)).add(at)}}function uo(at,Zt){var Qt;let pr=ue.get(at);pr?.resolutions&&(F??(F=new Set)).add(at),pr?.files&&(O??(O=new Set)).add(at),(Qt=pr?.symlinks)==null||Qt.forEach(Et=>uo(Et,Zt)),Zt?.delete(t.toPath(at))}function Wa(){f.forEach(Ko),f.clear()}function oo(at,Zt,Qt,pr,Et){$.assert(!Et);let xr=Be.get(pr),gi=de.get(pr);if(xr===void 0){let Ne=t.realpath(Qt);xr=Ne!==Qt&&t.toPath(Ne)!==pr,Be.set(pr,xr),gi?gi.isSymlink!==xr&&(gi.dirPathToWatcher.forEach(Y=>{Wr(gi.isSymlink?pr:Zt),Y.watcher=er()}),gi.isSymlink=xr):de.set(pr,gi={dirPathToWatcher:new Map,isSymlink:xr})}else $.assertIsDefined(gi),$.assert(xr===gi.isSymlink);let Ye=gi.dirPathToWatcher.get(Zt);Ye?Ye.refCount++:(gi.dirPathToWatcher.set(Zt,{watcher:er(),refCount:1}),xr&&ze.set(Zt,(ze.get(Zt)??0)+1));function er(){return xr?$o(Qt,pr,Et):$o(at,Zt,Et)}}function Oi(at,Zt,Qt,pr,Et){!pr||!t.realpath?$o(at,Zt,Et):oo(at,Zt,Qt,pr,Et)}function $o(at,Zt,Qt){let pr=be.get(Zt);return pr?($.assert(!!Qt==!!pr.nonRecursive),pr.refCount++):be.set(Zt,pr={watcher:ai(at,Zt,Qt),refCount:1,nonRecursive:Qt}),pr}function ft(at,Zt){let Qt=t.toPath(at),pr=H0e(at,Qt,De,Ce,Ae,Fe,Z,t.preferNonRecursiveWatch);if(pr){let{dirPath:Et,packageDirPath:xr}=pr;if(Et===Ce)Zt=!0;else if(xr&&t.realpath){let gi=de.get(xr),Ye=gi.dirPathToWatcher.get(Et);if(Ye.refCount--,Ye.refCount===0&&(Wr(gi.isSymlink?xr:Et),gi.dirPathToWatcher.delete(Et),gi.isSymlink)){let er=ze.get(Et)-1;er===0?ze.delete(Et):ze.set(Et,er)}}else Wr(Et)}return Zt}function Ht(at,Zt,Qt){if($.checkDefined(at.files).delete(Zt),at.files.size)return;at.files=void 0;let pr=Qt(at);if(pr&&pr.resolvedFileName){let Ye=t.toPath(pr.resolvedFileName),er=k.get(Ye);er?.delete(at)&&!er.size&&k.delete(Ye)}let{failedLookupLocations:Et,affectingLocations:xr,alternateResult:gi}=at;if(y.delete(at)){let Ye=!1;if(Et)for(let er of Et)Ye=ft(er,Ye);gi&&(Ye=ft(gi,Ye)),Ye&&Wr(Ce)}else xr?.length&&g.delete(at);if(xr)for(let Ye of xr){let er=ue.get(Ye);er.resolutions--}}function Wr(at){let Zt=be.get(at);Zt.refCount--}function ai(at,Zt,Qt){return t.watchDirectoryOfFailedLookupLocation(at,pr=>{let Et=t.toPath(pr);Q&&Q.addOrDeleteFileOrDirectory(pr,Et),Es(Et,Zt===Et)},Qt?0:1)}function vo(at,Zt,Qt){let pr=at.get(Zt);pr&&(pr.forEach(Et=>Ht(Et,Zt,Qt)),at.delete(Zt))}function Eo(at){if(!Au(at,".json"))return;let Zt=t.getCurrentProgram();if(!Zt)return;let Qt=Zt.getResolvedProjectReferenceByPath(at);Qt&&Qt.commandLine.fileNames.forEach(pr=>ya(t.toPath(pr)))}function ya(at){vo(re,at,jO),vo(_e,at,tre)}function Ls(at,Zt){if(!at)return!1;let Qt=!1;return at.forEach(pr=>{if(!(pr.isInvalidated||!Zt(pr))){pr.isInvalidated=Qt=!0;for(let Et of $.checkDefined(pr.files))(u??(u=new Set)).add(Et),C=C||au(Et,$z)}}),Qt}function yc(at){ya(at);let Zt=C;Ls(k.get(at),AT)&&C&&!Zt&&t.onChangedAutomaticTypeDirectiveNames()}function Cn(at){$.assert(_===at||_===void 0),_=at}function Es(at,Zt){if(Zt)(J||(J=new Set)).add(at);else{let Qt=coe(at);if(!Qt||(at=Qt,t.fileIsOpen(at)))return!1;let pr=mo(at);if($t(at)||CO(at)||$t(pr)||CO(pr))(M||(M=new Set)).add(at),(U||(U=new Set)).add(at);else{if(COe(t.getCurrentProgram(),at)||Au(at,".map"))return!1;(M||(M=new Set)).add(at),(U||(U=new Set)).add(at);let Et=lK(at,!0);Et&&(U||(U=new Set)).add(Et)}}t.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Dt(){let at=ae.getPackageJsonInfoCache().getInternalMap();at&&(M||U||J)&&at.forEach((Zt,Qt)=>Bt(Qt)?at.delete(Qt):void 0)}function ur(){var at;if(G)return O=void 0,Dt(),(M||U||J||F)&&Ls(le,Ee),M=void 0,U=void 0,J=void 0,F=void 0,!0;let Zt=!1;return O&&((at=t.getCurrentProgram())==null||at.getSourceFiles().forEach(Qt=>{Pt(Qt.packageJsonLocations,pr=>O.has(pr))&&((u??(u=new Set)).add(Qt.path),Zt=!0)}),O=void 0),!M&&!U&&!J&&!F||(Zt=Ls(y,Ee)||Zt,Dt(),M=void 0,U=void 0,J=void 0,Zt=Ls(g,ye)||Zt,F=void 0),Zt}function Ee(at){var Zt;return ye(at)?!0:!M&&!U&&!J?!1:((Zt=at.failedLookupLocations)==null?void 0:Zt.some(Qt=>Bt(t.toPath(Qt))))||!!at.alternateResult&&Bt(t.toPath(at.alternateResult))}function Bt(at){return M?.has(at)||pt(U?.keys()||[],Zt=>Ca(at,Zt)?!0:void 0)||pt(J?.keys()||[],Zt=>at.length>Zt.length&&Ca(at,Zt)&&(jI(Zt)||at[Zt.length]===Gl)?!0:void 0)}function ye(at){var Zt;return!!F&&((Zt=at.affectingLocations)==null?void 0:Zt.some(Qt=>F.has(Qt)))}function et(){dg(ut,W1)}function Ct(at){return ar(at)?t.watchTypeRootsDirectory(at,Zt=>{let Qt=t.toPath(Zt);Q&&Q.addOrDeleteFileOrDirectory(Zt,Qt),C=!0,t.onChangedAutomaticTypeDirectiveNames();let pr=iFe(at,t.toPath(at),Ce,Ae,Fe,Z,t.preferNonRecursiveWatch,Et=>be.has(Et)||ze.has(Et));pr&&Es(Qt,pr===Qt)},1):JL}function Ot(){let at=t.getCompilationSettings();if(at.types){et();return}let Zt=Tz(at,{getCurrentDirectory:Z});Zt?BU(ut,new Set(Zt),{createNewValue:Ct,onDeleteValue:W1}):et()}function ar(at){return t.getCompilationSettings().typeRoots?!0:tFe(t.toPath(at))}}function rcr(t){var n,a;return!!((n=t.resolvedModule)!=null&&n.originalPath||(a=t.resolvedTypeReferenceDirective)!=null&&a.originalPath)}var gdt=f_?{getCurrentDirectory:()=>f_.getCurrentDirectory(),getNewLine:()=>f_.newLine,getCanonicalFileName:_d(f_.useCaseSensitiveFileNames)}:void 0;function LF(t,n){let a=t===f_&&gdt?gdt:{getCurrentDirectory:()=>t.getCurrentDirectory(),getNewLine:()=>t.newLine,getCanonicalFileName:_d(t.useCaseSensitiveFileNames)};if(!n)return u=>t.write(w0e(u,a));let c=new Array(1);return u=>{c[0]=u,t.write(OOe(c,a)+a.getNewLine()),c[0]=void 0}}function ydt(t,n,a){return t.clearScreen&&!a.preserveWatchOutput&&!a.extendedDiagnostics&&!a.diagnostics&&un(vdt,n.code)?(t.clearScreen(),!0):!1}var vdt=[x.Starting_compilation_in_watch_mode.code,x.File_change_detected_Starting_incremental_compilation.code];function ncr(t,n){return un(vdt,t.code)?n+n:n}function OK(t){return t.now?t.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function Q0e(t,n){return n?(a,c,u)=>{ydt(t,a,u);let _=`[${IP(OK(t),"\x1B[90m")}] `;_+=`${RS(a.messageText,t.newLine)}${c+c}`,t.write(_)}:(a,c,u)=>{let _="";ydt(t,a,u)||(_+=c),_+=`${OK(t)} - `,_+=`${RS(a.messageText,t.newLine)}${ncr(a,c)}`,t.write(_)}}function sFe(t,n,a,c,u,_){let f=u;f.onUnRecoverableConfigFileDiagnostic=g=>xdt(u,_,g);let y=rK(t,n,f,a,c);return f.onUnRecoverableConfigFileDiagnostic=void 0,y}function uoe(t){return Lo(t,n=>n.category===1)}function poe(t){return yr(t,a=>a.category===1).map(a=>{if(a.file!==void 0)return`${a.file.fileName}`}).map(a=>{if(a===void 0)return;let c=wt(t,u=>u.file!==void 0&&u.file.fileName===a);if(c!==void 0){let{line:u}=qs(c.file,c.start);return{fileName:a,line:u+1}}})}function Z0e(t){return t===1?x.Found_1_error_Watching_for_file_changes:x.Found_0_errors_Watching_for_file_changes}function Sdt(t,n){let a=IP(":"+t.line,"\x1B[90m");return YD(t.fileName)&&YD(n)?lh(n,t.fileName,!1)+a:t.fileName+a}function X0e(t,n,a,c){if(t===0)return"";let u=n.filter(T=>T!==void 0),_=u.map(T=>`${T.fileName}:${T.line}`).filter((T,C,O)=>O.indexOf(T)===C),f=u[0]&&Sdt(u[0],c.getCurrentDirectory()),y;t===1?y=n[0]!==void 0?[x.Found_1_error_in_0,f]:[x.Found_1_error]:y=_.length===0?[x.Found_0_errors,t]:_.length===1?[x.Found_0_errors_in_the_same_file_starting_at_Colon_1,t,f]:[x.Found_0_errors_in_1_files,t,_.length];let g=bp(...y),k=_.length>1?icr(u,c):"";return`${a}${RS(g.messageText,a)}${a}${a}${k}`}function icr(t,n){let a=t.filter((C,O,F)=>O===F.findIndex(M=>M?.fileName===C?.fileName));if(a.length===0)return"";let c=C=>Math.log(C)*Math.LOG10E+1,u=a.map(C=>[C,Lo(t,O=>O.fileName===C.fileName)]),_=Q2(u,0,C=>C[1]),f=x.Errors_Files.message,y=f.split(" ")[0].length,g=Math.max(y,c(_)),k=Math.max(c(_)-y,0),T="";return T+=" ".repeat(k)+f+` +`,u.forEach(C=>{let[O,F]=C,M=Math.log(F)*Math.LOG10E+1|0,U=M{n(c.fileName)})}function e1e(t,n){var a,c;let u=t.getFileIncludeReasons(),_=f=>BI(f,t.getCurrentDirectory(),t.getCanonicalFileName);for(let f of t.getSourceFiles())n(`${qL(f,_)}`),(a=u.get(f.path))==null||a.forEach(y=>n(` ${i1e(t,y,_).messageText}`)),(c=t1e(f,t.getCompilerOptionsForFile(f),_))==null||c.forEach(y=>n(` ${y.messageText}`))}function t1e(t,n,a){var c;let u;if(t.path!==t.resolvedPath&&(u??(u=[])).push(ws(void 0,x.File_is_output_of_project_reference_source_0,qL(t.originalFileName,a))),t.redirectInfo&&(u??(u=[])).push(ws(void 0,x.File_redirects_to_file_0,qL(t.redirectInfo.redirectTarget,a))),Lg(t))switch(b3(t,n)){case 99:t.packageJsonScope&&(u??(u=[])).push(ws(void 0,x.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,qL(Sn(t.packageJsonLocations),a)));break;case 1:t.packageJsonScope?(u??(u=[])).push(ws(void 0,t.packageJsonScope.contents.packageJsonContent.type?x.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:x.File_is_CommonJS_module_because_0_does_not_have_field_type,qL(Sn(t.packageJsonLocations),a))):(c=t.packageJsonLocations)!=null&&c.length&&(u??(u=[])).push(ws(void 0,x.File_is_CommonJS_module_because_package_json_was_not_found));break}return u}function r1e(t,n){var a;let c=t.getCompilerOptions().configFile;if(!((a=c?.configFileSpecs)!=null&&a.validatedFilesSpec))return;let u=t.getCanonicalFileName(n),_=mo(za(c.fileName,t.getCurrentDirectory())),f=hr(c.configFileSpecs.validatedFilesSpec,y=>t.getCanonicalFileName(za(y,_))===u);return f!==-1?c.configFileSpecs.validatedFilesSpecBeforeSubstitution[f]:void 0}function n1e(t,n){var a,c;let u=t.getCompilerOptions().configFile;if(!((a=u?.configFileSpecs)!=null&&a.validatedIncludeSpecs))return;if(u.configFileSpecs.isDefaultIncludeSpec)return!0;let _=Au(n,".json"),f=mo(za(u.fileName,t.getCurrentDirectory())),y=t.useCaseSensitiveFileNames(),g=hr((c=u?.configFileSpecs)==null?void 0:c.validatedIncludeSpecs,k=>{if(_&&!au(k,".json"))return!1;let T=Vhe(k,f,"files");return!!T&&mE(`(?:${T})$`,y).test(n)});return g!==-1?u.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[g]:void 0}function i1e(t,n,a){var c,u;let _=t.getCompilerOptions();if(MA(n)){let f=Uz(t,n),y=UL(f)?f.file.text.substring(f.pos,f.end):`"${f.text}"`,g;switch($.assert(UL(f)||n.kind===3,"Only synthetic references are imports"),n.kind){case 3:UL(f)?g=f.packageId?x.Imported_via_0_from_file_1_with_packageId_2:x.Imported_via_0_from_file_1:f.text===nC?g=f.packageId?x.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:x.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:g=f.packageId?x.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:x.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:$.assert(!f.packageId),g=x.Referenced_via_0_from_file_1;break;case 5:g=f.packageId?x.Type_library_referenced_via_0_from_file_1_with_packageId_2:x.Type_library_referenced_via_0_from_file_1;break;case 7:$.assert(!f.packageId),g=x.Library_referenced_via_0_from_file_1;break;default:$.assertNever(n)}return ws(void 0,g,y,qL(f.file,a),f.packageId&&cA(f.packageId))}switch(n.kind){case 0:if(!((c=_.configFile)!=null&&c.configFileSpecs))return ws(void 0,x.Root_file_specified_for_compilation);let f=za(t.getRootFileNames()[n.index],t.getCurrentDirectory());if(r1e(t,f))return ws(void 0,x.Part_of_files_list_in_tsconfig_json);let g=n1e(t,f);return Ni(g)?ws(void 0,x.Matched_by_include_pattern_0_in_1,g,qL(_.configFile,a)):ws(void 0,g?x.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:x.Root_file_specified_for_compilation);case 1:case 2:let k=n.kind===2,T=$.checkDefined((u=t.getResolvedProjectReferences())==null?void 0:u[n.index]);return ws(void 0,_.outFile?k?x.Output_from_referenced_project_0_included_because_1_specified:x.Source_from_referenced_project_0_included_because_1_specified:k?x.Output_from_referenced_project_0_included_because_module_is_specified_as_none:x.Source_from_referenced_project_0_included_because_module_is_specified_as_none,qL(T.sourceFile.fileName,a),_.outFile?"--outFile":"--out");case 8:{let C=_.types?n.packageId?[x.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,n.typeReference,cA(n.packageId)]:[x.Entry_point_of_type_library_0_specified_in_compilerOptions,n.typeReference]:n.packageId?[x.Entry_point_for_implicit_type_library_0_with_packageId_1,n.typeReference,cA(n.packageId)]:[x.Entry_point_for_implicit_type_library_0,n.typeReference];return ws(void 0,...C)}case 6:{if(n.index!==void 0)return ws(void 0,x.Library_0_specified_in_compilerOptions,_.lib[n.index]);let C=sne($c(_)),O=C?[x.Default_library_for_target_0,C]:[x.Default_library];return ws(void 0,...O)}default:$.assertNever(n)}}function qL(t,n){let a=Ni(t)?t:t.fileName;return n?n(a):a}function _oe(t,n,a,c,u,_,f,y){let g=t.getCompilerOptions(),k=t.getConfigFileParsingDiagnostics().slice(),T=k.length;En(k,t.getSyntacticDiagnostics(void 0,_)),k.length===T&&(En(k,t.getOptionsDiagnostics(_)),g.listFilesOnly||(En(k,t.getGlobalDiagnostics(_)),k.length===T&&En(k,t.getSemanticDiagnostics(void 0,_)),g.noEmit&&fg(g)&&k.length===T&&En(k,t.getDeclarationDiagnostics(void 0,_))));let C=g.listFilesOnly?{emitSkipped:!0,diagnostics:j}:t.emit(void 0,u,_,f,y);En(k,C.diagnostics);let O=nr(k);if(O.forEach(n),a){let F=t.getCurrentDirectory();X(C.emittedFiles,M=>{let U=za(M,F);a(`TSFILE: ${U}`)}),ocr(t,a)}return c&&c(uoe(O),poe(O)),{emitResult:C,diagnostics:O}}function o1e(t,n,a,c,u,_,f,y){let{emitResult:g,diagnostics:k}=_oe(t,n,a,c,u,_,f,y);return g.emitSkipped&&k.length>0?1:k.length>0?2:0}var JL={close:zs},qz=()=>JL;function a1e(t=f_,n){return{onWatchStatusChange:n||Q0e(t),watchFile:ja(t,t.watchFile)||qz,watchDirectory:ja(t,t.watchDirectory)||qz,setTimeout:ja(t,t.setTimeout)||zs,clearTimeout:ja(t,t.clearTimeout)||zs,preferNonRecursiveWatch:t.preferNonRecursiveWatch}}var cf={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"};function s1e(t,n){let a=t.trace?n.extendedDiagnostics?2:n.diagnostics?1:0:0,c=a!==0?_=>t.trace(_):zs,u=E0e(t,a,c);return u.writeLog=c,u}function c1e(t,n,a=t){let c=t.useCaseSensitiveFileNames(),u={getSourceFile:D0e((_,f)=>f?t.readFile(_,f):u.readFile(_),void 0),getDefaultLibLocation:ja(t,t.getDefaultLibLocation),getDefaultLibFileName:_=>t.getDefaultLibFileName(_),writeFile:A0e((_,f,y)=>t.writeFile(_,f,y),_=>t.createDirectory(_),_=>t.directoryExists(_)),getCurrentDirectory:Ef(()=>t.getCurrentDirectory()),useCaseSensitiveFileNames:()=>c,getCanonicalFileName:_d(c),getNewLine:()=>fE(n()),fileExists:_=>t.fileExists(_),readFile:_=>t.readFile(_),trace:ja(t,t.trace),directoryExists:ja(a,a.directoryExists),getDirectories:ja(a,a.getDirectories),realpath:ja(t,t.realpath),getEnvironmentVariable:ja(t,t.getEnvironmentVariable)||(()=>""),createHash:ja(t,t.createHash),readDirectory:ja(t,t.readDirectory),storeSignatureInfo:t.storeSignatureInfo,jsDocParsingMode:t.jsDocParsingMode};return u}function doe(t,n){if(n.match(N8e)){let a=n.length,c=a;for(let u=a-1;u>=0;u--){let _=n.charCodeAt(u);switch(_){case 10:u&&n.charCodeAt(u-1)===13&&u--;case 13:break;default:if(_<127||!Dd(_)){c=u;continue}break}let f=n.substring(c,a);if(f.match(Zye)){n=n.substring(0,c);break}else if(!f.match(Xye))break;a=c}}return(t.createHash||qk)(n)}function foe(t){let n=t.getSourceFile;t.getSourceFile=(...a)=>{let c=n.call(t,...a);return c&&(c.version=doe(t,c.text)),c}}function l1e(t,n){let a=Ef(()=>mo(Qs(t.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames,getNewLine:()=>t.newLine,getCurrentDirectory:Ef(()=>t.getCurrentDirectory()),getDefaultLibLocation:a,getDefaultLibFileName:c=>Xi(a(),kn(c)),fileExists:c=>t.fileExists(c),readFile:(c,u)=>t.readFile(c,u),directoryExists:c=>t.directoryExists(c),getDirectories:c=>t.getDirectories(c),readDirectory:(c,u,_,f,y)=>t.readDirectory(c,u,_,f,y),realpath:ja(t,t.realpath),getEnvironmentVariable:ja(t,t.getEnvironmentVariable),trace:c=>t.write(c+t.newLine),createDirectory:c=>t.createDirectory(c),writeFile:(c,u,_)=>t.writeFile(c,u,_),createHash:ja(t,t.createHash),createProgram:n||W0e,storeSignatureInfo:t.storeSignatureInfo,now:ja(t,t.now)}}function bdt(t=f_,n,a,c){let u=f=>t.write(f+t.newLine),_=l1e(t,n);return zm(_,a1e(t,c)),_.afterProgramCreate=f=>{let y=f.getCompilerOptions(),g=fE(y);_oe(f,a,u,k=>_.onWatchStatusChange(bp(Z0e(k),k),g,y,k))},_}function xdt(t,n,a){n(a),t.exit(1)}function u1e({configFileName:t,optionsToExtend:n,watchOptionsToExtend:a,extraFileExtensions:c,system:u,createProgram:_,reportDiagnostic:f,reportWatchStatus:y}){let g=f||LF(u),k=bdt(u,_,g,y);return k.onUnRecoverableConfigFileDiagnostic=T=>xdt(u,g,T),k.configFileName=t,k.optionsToExtend=n,k.watchOptionsToExtend=a,k.extraFileExtensions=c,k}function p1e({rootFiles:t,options:n,watchOptions:a,projectReferences:c,system:u,createProgram:_,reportDiagnostic:f,reportWatchStatus:y}){let g=bdt(u,_,f||LF(u),y);return g.rootFiles=t,g.options=n,g.watchOptions=a,g.projectReferences=c,g}function cFe(t){let n=t.system||f_,a=t.host||(t.host=hoe(t.options,n)),c=lFe(t),u=o1e(c,t.reportDiagnostic||LF(n),_=>a.trace&&a.trace(_),t.reportErrorSummary||t.options.pretty?(_,f)=>n.write(X0e(_,f,n.newLine,a)):void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(c),u}function moe(t,n){let a=LA(t);if(!a)return;let c;if(n.getBuildInfo)c=n.getBuildInfo(a,t.configFilePath);else{let u=n.readFile(a);if(!u)return;c=S0e(a,u)}if(!(!c||c.version!==L||!PK(c)))return XOe(c,a,n)}function hoe(t,n=f_){let a=Qie(t,void 0,n);return a.createHash=ja(n,n.createHash),a.storeSignatureInfo=n.storeSignatureInfo,foe(a),Bz(a,c=>wl(c,a.getCurrentDirectory(),a.getCanonicalFileName)),a}function lFe({rootNames:t,options:n,configFileParsingDiagnostics:a,projectReferences:c,host:u,createProgram:_}){u=u||hoe(n),_=_||W0e;let f=moe(n,u);return _(t,n,u,f,a,c)}function Tdt(t,n,a,c,u,_,f,y){return Zn(t)?p1e({rootFiles:t,options:n,watchOptions:y,projectReferences:f,system:a,createProgram:c,reportDiagnostic:u,reportWatchStatus:_}):u1e({configFileName:t,optionsToExtend:n,watchOptionsToExtend:f,extraFileExtensions:y,system:a,createProgram:c,reportDiagnostic:u,reportWatchStatus:_})}function _1e(t){let n,a,c,u,_=new Map([[void 0,void 0]]),f,y,g,k,T=t.extendedConfigCache,C=!1,O=new Map,F,M=!1,U=t.useCaseSensitiveFileNames(),J=t.getCurrentDirectory(),{configFileName:G,optionsToExtend:Z={},watchOptionsToExtend:Q,extraFileExtensions:re,createProgram:ae}=t,{rootFiles:_e,options:me,watchOptions:le,projectReferences:Oe}=t,be,ue,De=!1,Ce=!1,Ae=G===void 0?void 0:Gie(t,J,U),Fe=Ae||t,Be=ioe(t,Fe),de=Nn();G&&t.configFileParsingResult&&(Cn(t.configFileParsingResult),de=Nn()),oo(x.Starting_compilation_in_watch_mode),G&&!t.configFileParsingResult&&(de=fE(Z),$.assert(!_e),yc(),de=Nn()),$.assert(me),$.assert(_e);let{watchFile:ze,watchDirectory:ut,writeLog:je}=s1e(t,me),ve=_d(U);je(`Current directory: ${J} CaseSensitiveFileNames: ${U}`);let Le;G&&(Le=ze(G,ai,2e3,le,cf.ConfigFile));let Ve=c1e(t,()=>me,Fe);foe(Ve);let nt=Ve.getSourceFile;Ve.getSourceFile=(Qt,...pr)=>is(Qt,$t(Qt),...pr),Ve.getSourceFileByPath=is,Ve.getNewLine=()=>de,Ve.fileExists=Ko,Ve.onReleaseOldSourceFile=Wa,Ve.onReleaseParsedCommandLine=ur,Ve.toPath=$t,Ve.getCompilationSettings=()=>me,Ve.useSourceOfProjectReferenceRedirect=ja(t,t.useSourceOfProjectReferenceRedirect),Ve.preferNonRecursiveWatch=t.preferNonRecursiveWatch,Ve.watchDirectoryOfFailedLookupLocation=(Qt,pr,Et)=>ut(Qt,pr,Et,le,cf.FailedLookupLocations),Ve.watchAffectingFileLocation=(Qt,pr)=>ze(Qt,pr,2e3,le,cf.AffectingFileLocation),Ve.watchTypeRootsDirectory=(Qt,pr,Et)=>ut(Qt,pr,Et,le,cf.TypeRoots),Ve.getCachedDirectoryStructureHost=()=>Ae,Ve.scheduleInvalidateResolutionsOfFailedLookupLocations=ft,Ve.onInvalidatedResolution=Wr,Ve.onChangedAutomaticTypeDirectiveNames=Wr,Ve.fileIsOpen=Yf,Ve.getCurrentProgram=St,Ve.writeLog=je,Ve.getParsedCommandLine=Es;let It=K0e(Ve,G?mo(za(G,J)):J,!1);Ve.resolveModuleNameLiterals=ja(t,t.resolveModuleNameLiterals),Ve.resolveModuleNames=ja(t,t.resolveModuleNames),!Ve.resolveModuleNameLiterals&&!Ve.resolveModuleNames&&(Ve.resolveModuleNameLiterals=It.resolveModuleNameLiterals.bind(It)),Ve.resolveTypeReferenceDirectiveReferences=ja(t,t.resolveTypeReferenceDirectiveReferences),Ve.resolveTypeReferenceDirectives=ja(t,t.resolveTypeReferenceDirectives),!Ve.resolveTypeReferenceDirectiveReferences&&!Ve.resolveTypeReferenceDirectives&&(Ve.resolveTypeReferenceDirectiveReferences=It.resolveTypeReferenceDirectiveReferences.bind(It)),Ve.resolveLibrary=t.resolveLibrary?t.resolveLibrary.bind(t):It.resolveLibrary.bind(It),Ve.getModuleResolutionCache=t.resolveModuleNameLiterals||t.resolveModuleNames?ja(t,t.getModuleResolutionCache):()=>It.getModuleResolutionCache();let _t=!!t.resolveModuleNameLiterals||!!t.resolveTypeReferenceDirectiveReferences||!!t.resolveModuleNames||!!t.resolveTypeReferenceDirectives?ja(t,t.hasInvalidatedResolutions)||AT:Yf,Se=t.resolveLibrary?ja(t,t.hasInvalidatedLibResolutions)||AT:Yf;return n=moe(me,Ve),Kt(),G?{getCurrentProgram:We,getProgram:Eo,close:tt,getResolutionCache:Qe}:{getCurrentProgram:We,getProgram:Eo,updateRootFileNames:nn,close:tt,getResolutionCache:Qe};function tt(){$o(),It.clear(),dg(O,Qt=>{Qt&&Qt.fileWatcher&&(Qt.fileWatcher.close(),Qt.fileWatcher=void 0)}),Le&&(Le.close(),Le=void 0),T?.clear(),T=void 0,k&&(dg(k,C0),k=void 0),u&&(dg(u,C0),u=void 0),c&&(dg(c,W1),c=void 0),g&&(dg(g,Qt=>{var pr;(pr=Qt.watcher)==null||pr.close(),Qt.watcher=void 0,Qt.watchedDirectories&&dg(Qt.watchedDirectories,C0),Qt.watchedDirectories=void 0}),g=void 0),n=void 0}function Qe(){return It}function We(){return n}function St(){return n&&n.getProgramOrUndefined()}function Kt(){je("Synchronizing program"),$.assert(me),$.assert(_e),$o();let Qt=We();M&&(de=Nn(),Qt&&Yte(Qt.getCompilerOptions(),me)&&It.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:pr,hasInvalidatedLibResolutions:Et}=It.createHasInvalidatedResolutions(_t,Se),{originalReadFile:xr,originalFileExists:gi,originalDirectoryExists:Ye,originalCreateDirectory:er,originalWriteFile:Ne,readFileWithCache:Y}=Bz(Ve,$t);return R0e(St(),_e,me,ot=>uo(ot,Y),ot=>Ve.fileExists(ot),pr,Et,Oi,Es,Oe)?Ce&&(C&&oo(x.File_change_detected_Starting_incremental_compilation),n=ae(void 0,void 0,Ve,n,ue,Oe),Ce=!1):(C&&oo(x.File_change_detected_Starting_incremental_compilation),Sr(pr,Et)),C=!1,t.afterProgramCreate&&Qt!==n&&t.afterProgramCreate(n),Ve.readFile=xr,Ve.fileExists=gi,Ve.directoryExists=Ye,Ve.createDirectory=er,Ve.writeFile=Ne,_?.forEach((ot,pe)=>{if(!pe)Ot(),G&&at($t(G),me,le,cf.ExtendedConfigFile);else{let Gt=g?.get(pe);Gt&&Zt(ot,pe,Gt)}}),_=void 0,n}function Sr(Qt,pr){je("CreatingProgramWith::"),je(` roots: ${JSON.stringify(_e)}`),je(` options: ${JSON.stringify(me)}`),Oe&&je(` projectReferences: ${JSON.stringify(Oe)}`);let Et=M||!St();M=!1,Ce=!1,It.startCachingPerDirectoryResolution(),Ve.hasInvalidatedResolutions=Qt,Ve.hasInvalidatedLibResolutions=pr,Ve.hasChangedAutomaticTypeDirectiveNames=Oi;let xr=St();if(n=ae(_e,me,Ve,n,ue,Oe),It.finishCachingPerDirectoryResolution(n.getProgram(),xr),T0e(n.getProgram(),c||(c=new Map),et),Et&&It.updateTypeRootsWatch(),F){for(let gi of F)c.has(gi)||O.delete(gi);F=void 0}}function nn(Qt){$.assert(!G,"Cannot update root file names with config file watch mode"),_e=Qt,Wr()}function Nn(){return fE(me||Z)}function $t(Qt){return wl(Qt,J,ve)}function Dr(Qt){return typeof Qt=="boolean"}function Qn(Qt){return typeof Qt.version=="boolean"}function Ko(Qt){let pr=$t(Qt);return Dr(O.get(pr))?!1:Fe.fileExists(Qt)}function is(Qt,pr,Et,xr,gi){let Ye=O.get(pr);if(Dr(Ye))return;let er=typeof Et=="object"?Et.impliedNodeFormat:void 0;if(Ye===void 0||gi||Qn(Ye)||Ye.sourceFile.impliedNodeFormat!==er){let Ne=nt(Qt,Et,xr);if(Ye)Ne?(Ye.sourceFile=Ne,Ye.version=Ne.version,Ye.fileWatcher||(Ye.fileWatcher=Ee(pr,Qt,Bt,250,le,cf.SourceFile))):(Ye.fileWatcher&&Ye.fileWatcher.close(),O.set(pr,!1));else if(Ne){let Y=Ee(pr,Qt,Bt,250,le,cf.SourceFile);O.set(pr,{sourceFile:Ne,version:Ne.version,fileWatcher:Y})}else O.set(pr,!1);return Ne}return Ye.sourceFile}function sr(Qt){let pr=O.get(Qt);pr!==void 0&&(Dr(pr)?O.set(Qt,{version:!1}):pr.version=!1)}function uo(Qt,pr){let Et=O.get(Qt);if(!Et)return;if(Et.version)return Et.version;let xr=pr(Qt);return xr!==void 0?doe(Ve,xr):void 0}function Wa(Qt,pr,Et){let xr=O.get(Qt.resolvedPath);xr!==void 0&&(Dr(xr)?(F||(F=[])).push(Qt.path):xr.sourceFile===Qt&&(xr.fileWatcher&&xr.fileWatcher.close(),O.delete(Qt.resolvedPath),Et||It.removeResolutionsOfFile(Qt.path)))}function oo(Qt){t.onWatchStatusChange&&t.onWatchStatusChange(bp(Qt),de,me||Z)}function Oi(){return It.hasChangedAutomaticTypeDirectiveNames()}function $o(){return y?(t.clearTimeout(y),y=void 0,!0):!1}function ft(){if(!t.setTimeout||!t.clearTimeout)return It.invalidateResolutionsOfFailedLookupLocations();let Qt=$o();je(`Scheduling invalidateFailedLookup${Qt?", Cancelled earlier one":""}`),y=t.setTimeout(Ht,250,"timerToInvalidateFailedLookupResolutions")}function Ht(){y=void 0,It.invalidateResolutionsOfFailedLookupLocations()&&Wr()}function Wr(){!t.setTimeout||!t.clearTimeout||(f&&t.clearTimeout(f),je("Scheduling update"),f=t.setTimeout(vo,250,"timerToUpdateProgram"))}function ai(){$.assert(!!G),a=2,Wr()}function vo(){f=void 0,C=!0,Eo()}function Eo(){switch(a){case 1:ya();break;case 2:Ls();break;default:Kt();break}return We()}function ya(){je("Reloading new file names and options"),$.assert(me),$.assert(G),a=0,_e=bz(me.configFile.configFileSpecs,za(mo(G),J),me,Be,re),Sie(_e,za(G,J),me.configFile.configFileSpecs,ue,De)&&(Ce=!0),Kt()}function Ls(){$.assert(G),je(`Reloading config file: ${G}`),a=0,Ae&&Ae.clearCache(),yc(),M=!0,(_??(_=new Map)).set(void 0,void 0),Kt()}function yc(){$.assert(G),Cn(rK(G,Z,Be,T||(T=new Map),Q,re))}function Cn(Qt){_e=Qt.fileNames,me=Qt.options,le=Qt.watchOptions,Oe=Qt.projectReferences,be=Qt.wildcardDirectories,ue=PP(Qt).slice(),De=sK(Qt.raw),Ce=!0}function Es(Qt){let pr=$t(Qt),Et=g?.get(pr);if(Et){if(!Et.updateLevel)return Et.parsedCommandLine;if(Et.parsedCommandLine&&Et.updateLevel===1&&!t.getParsedCommandLine){je("Reloading new file names and options"),$.assert(me);let gi=bz(Et.parsedCommandLine.options.configFile.configFileSpecs,za(mo(Qt),J),me,Be);return Et.parsedCommandLine={...Et.parsedCommandLine,fileNames:gi},Et.updateLevel=void 0,Et.parsedCommandLine}}je(`Loading config file: ${Qt}`);let xr=t.getParsedCommandLine?t.getParsedCommandLine(Qt):Dt(Qt);return Et?(Et.parsedCommandLine=xr,Et.updateLevel=void 0):(g||(g=new Map)).set(pr,Et={parsedCommandLine:xr}),(_??(_=new Map)).set(pr,Qt),xr}function Dt(Qt){let pr=Be.onUnRecoverableConfigFileDiagnostic;Be.onUnRecoverableConfigFileDiagnostic=zs;let Et=rK(Qt,void 0,Be,T||(T=new Map),Q);return Be.onUnRecoverableConfigFileDiagnostic=pr,Et}function ur(Qt){var pr;let Et=$t(Qt),xr=g?.get(Et);xr&&(g.delete(Et),xr.watchedDirectories&&dg(xr.watchedDirectories,C0),(pr=xr.watcher)==null||pr.close(),x0e(Et,k))}function Ee(Qt,pr,Et,xr,gi,Ye){return ze(pr,(er,Ne)=>Et(er,Ne,Qt),xr,gi,Ye)}function Bt(Qt,pr,Et){ye(Qt,Et,pr),pr===2&&O.has(Et)&&It.invalidateResolutionOfFile(Et),sr(Et),Wr()}function ye(Qt,pr,Et){Ae&&Ae.addOrDeleteFile(Qt,pr,Et)}function et(Qt,pr){return g?.has(Qt)?JL:Ee(Qt,pr,Ct,500,le,cf.MissingFile)}function Ct(Qt,pr,Et){ye(Qt,Et,pr),pr===0&&c.has(Et)&&(c.get(Et).close(),c.delete(Et),sr(Et),Wr())}function Ot(){EK(u||(u=new Map),be,ar)}function ar(Qt,pr){return ut(Qt,Et=>{$.assert(G),$.assert(me);let xr=$t(Et);Ae&&Ae.addOrDeleteFileOrDirectory(Et,xr),sr(xr),!kK({watchedDirPath:$t(Qt),fileOrDirectory:Et,fileOrDirectoryPath:xr,configFileName:G,extraFileExtensions:re,options:me,program:We()||_e,currentDirectory:J,useCaseSensitiveFileNames:U,writeLog:je,toPath:$t})&&a!==2&&(a=1,Wr())},pr,le,cf.WildcardDirectory)}function at(Qt,pr,Et,xr){Hie(Qt,pr,k||(k=new Map),(gi,Ye)=>ze(gi,(er,Ne)=>{var Y;ye(gi,Ye,Ne),T&&Kie(T,Ye,$t);let ot=(Y=k.get(Ye))==null?void 0:Y.projects;ot?.size&&ot.forEach(pe=>{if(G&&$t(G)===pe)a=2;else{let Gt=g?.get(pe);Gt&&(Gt.updateLevel=2),It.removeResolutionsFromProjectReferenceRedirects(pe)}Wr()})},2e3,Et,xr),$t)}function Zt(Qt,pr,Et){var xr,gi,Ye,er;Et.watcher||(Et.watcher=ze(Qt,(Ne,Y)=>{ye(Qt,pr,Y);let ot=g?.get(pr);ot&&(ot.updateLevel=2),It.removeResolutionsFromProjectReferenceRedirects(pr),Wr()},2e3,((xr=Et.parsedCommandLine)==null?void 0:xr.watchOptions)||le,cf.ConfigFileOfReferencedProject)),EK(Et.watchedDirectories||(Et.watchedDirectories=new Map),(gi=Et.parsedCommandLine)==null?void 0:gi.wildcardDirectories,(Ne,Y)=>{var ot;return ut(Ne,pe=>{let Gt=$t(pe);Ae&&Ae.addOrDeleteFileOrDirectory(pe,Gt),sr(Gt);let mr=g?.get(pr);mr?.parsedCommandLine&&(kK({watchedDirPath:$t(Ne),fileOrDirectory:pe,fileOrDirectoryPath:Gt,configFileName:Qt,options:mr.parsedCommandLine.options,program:mr.parsedCommandLine.fileNames,currentDirectory:J,useCaseSensitiveFileNames:U,writeLog:je,toPath:$t})||mr.updateLevel!==2&&(mr.updateLevel=1,Wr()))},Y,((ot=Et.parsedCommandLine)==null?void 0:ot.watchOptions)||le,cf.WildcardDirectoryOfReferencedProject)}),at(pr,(Ye=Et.parsedCommandLine)==null?void 0:Ye.options,((er=Et.parsedCommandLine)==null?void 0:er.watchOptions)||le,cf.ExtendedConfigOfReferencedProject)}}var uFe=(t=>(t[t.Unbuildable=0]="Unbuildable",t[t.UpToDate=1]="UpToDate",t[t.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",t[t.OutputMissing=3]="OutputMissing",t[t.ErrorReadingFile=4]="ErrorReadingFile",t[t.OutOfDateWithSelf=5]="OutOfDateWithSelf",t[t.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",t[t.OutOfDateBuildInfoWithPendingEmit=7]="OutOfDateBuildInfoWithPendingEmit",t[t.OutOfDateBuildInfoWithErrors=8]="OutOfDateBuildInfoWithErrors",t[t.OutOfDateOptions=9]="OutOfDateOptions",t[t.OutOfDateRoots=10]="OutOfDateRoots",t[t.UpstreamOutOfDate=11]="UpstreamOutOfDate",t[t.UpstreamBlocked=12]="UpstreamBlocked",t[t.ComputingUpstream=13]="ComputingUpstream",t[t.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",t[t.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",t[t.ContainerOnly=16]="ContainerOnly",t[t.ForceBuild=17]="ForceBuild",t))(uFe||{});function d1e(t){return Au(t,".json")?t:Xi(t,"tsconfig.json")}var acr=new Date(-864e13);function scr(t,n,a){let c=t.get(n),u;return c||(u=a(),t.set(n,u)),c||u}function pFe(t,n){return scr(t,n,()=>new Map)}function f1e(t){return t.now?t.now():new Date}function MF(t){return!!t&&!!t.buildOrder}function FK(t){return MF(t)?t.buildOrder:t}function goe(t,n){return a=>{let c=n?`[${IP(OK(t),"\x1B[90m")}] `:`${OK(t)} - `;c+=`${RS(a.messageText,t.newLine)}${t.newLine+t.newLine}`,t.write(c)}}function Edt(t,n,a,c){let u=l1e(t,n);return u.getModifiedTime=t.getModifiedTime?_=>t.getModifiedTime(_):Sx,u.setModifiedTime=t.setModifiedTime?(_,f)=>t.setModifiedTime(_,f):zs,u.deleteFile=t.deleteFile?_=>t.deleteFile(_):zs,u.reportDiagnostic=a||LF(t),u.reportSolutionBuilderStatus=c||goe(t),u.now=ja(t,t.now),u}function _Fe(t=f_,n,a,c,u){let _=Edt(t,n,a,c);return _.reportErrorSummary=u,_}function dFe(t=f_,n,a,c,u){let _=Edt(t,n,a,c),f=a1e(t,u);return zm(_,f),_}function ccr(t){let n={};return lie.forEach(a=>{Ho(t,a.name)&&(n[a.name]=t[a.name])}),n.tscBuild=!0,n}function fFe(t,n,a){return Vdt(!1,t,n,a)}function mFe(t,n,a,c){return Vdt(!0,t,n,a,c)}function lcr(t,n,a,c,u){let _=n,f=n,y=ccr(c),g=c1e(_,()=>U.projectCompilerOptions);foe(g),g.getParsedCommandLine=J=>VL(U,J,Ib(U,J)),g.resolveModuleNameLiterals=ja(_,_.resolveModuleNameLiterals),g.resolveTypeReferenceDirectiveReferences=ja(_,_.resolveTypeReferenceDirectiveReferences),g.resolveLibrary=ja(_,_.resolveLibrary),g.resolveModuleNames=ja(_,_.resolveModuleNames),g.resolveTypeReferenceDirectives=ja(_,_.resolveTypeReferenceDirectives),g.getModuleResolutionCache=ja(_,_.getModuleResolutionCache);let k,T;!g.resolveModuleNameLiterals&&!g.resolveModuleNames&&(k=FL(g.getCurrentDirectory(),g.getCanonicalFileName),g.resolveModuleNameLiterals=(J,G,Z,Q,re)=>DK(J,G,Z,Q,re,_,k,O0e),g.getModuleResolutionCache=()=>k),!g.resolveTypeReferenceDirectiveReferences&&!g.resolveTypeReferenceDirectives&&(T=Die(g.getCurrentDirectory(),g.getCanonicalFileName,void 0,k?.getPackageJsonInfoCache(),k?.optionsToRedirectsKey),g.resolveTypeReferenceDirectiveReferences=(J,G,Z,Q,re)=>DK(J,G,Z,Q,re,_,T,Yie));let C;g.resolveLibrary||(C=FL(g.getCurrentDirectory(),g.getCanonicalFileName,void 0,k?.getPackageJsonInfoCache()),g.resolveLibrary=(J,G,Z)=>Aie(J,G,Z,_,C)),g.getBuildInfo=(J,G)=>Ldt(U,J,Ib(U,G),void 0);let{watchFile:O,watchDirectory:F,writeLog:M}=s1e(f,c),U={host:_,hostWithWatch:f,parseConfigFileHost:ioe(_),write:ja(_,_.trace),options:c,baseCompilerOptions:y,rootNames:a,baseWatchOptions:u,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:g,moduleResolutionCache:k,typeReferenceDirectiveResolutionCache:T,libraryResolutionCache:C,buildOrder:void 0,readFileWithCache:J=>_.readFile(J),projectCompilerOptions:y,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:t,watch:t,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:O,watchDirectory:F,writeLog:M};return U}function Z1(t,n){return wl(n,t.compilerHost.getCurrentDirectory(),t.compilerHost.getCanonicalFileName)}function Ib(t,n){let{resolvedConfigFilePaths:a}=t,c=a.get(n);if(c!==void 0)return c;let u=Z1(t,n);return a.set(n,u),u}function kdt(t){return!!t.options}function ucr(t,n){let a=t.configFileCache.get(n);return a&&kdt(a)?a:void 0}function VL(t,n,a){let{configFileCache:c}=t,u=c.get(a);if(u)return kdt(u)?u:void 0;jl("SolutionBuilder::beforeConfigFileParsing");let _,{parseConfigFileHost:f,baseCompilerOptions:y,baseWatchOptions:g,extendedConfigCache:k,host:T}=t,C;return T.getParsedCommandLine?(C=T.getParsedCommandLine(n),C||(_=bp(x.File_0_not_found,n))):(f.onUnRecoverableConfigFileDiagnostic=O=>_=O,C=rK(n,y,f,k,g),f.onUnRecoverableConfigFileDiagnostic=zs),c.set(a,C||_),jl("SolutionBuilder::afterConfigFileParsing"),Jm("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),C}function RK(t,n){return d1e(mb(t.compilerHost.getCurrentDirectory(),n))}function Cdt(t,n){let a=new Map,c=new Map,u=[],_,f;for(let g of n)y(g);return f?{buildOrder:_||j,circularDiagnostics:f}:_||j;function y(g,k){let T=Ib(t,g);if(c.has(T))return;if(a.has(T)){k||(f||(f=[])).push(bp(x.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,u.join(`\r +`)));return}a.set(T,!0),u.push(g);let C=VL(t,g,T);if(C&&C.projectReferences)for(let O of C.projectReferences){let F=RK(t,O.path);y(F,k||O.circular)}u.pop(),c.set(T,!0),(_||(_=[])).push(g)}}function yoe(t){return t.buildOrder||pcr(t)}function pcr(t){let n=Cdt(t,t.rootNames.map(u=>RK(t,u)));t.resolvedConfigFilePaths.clear();let a=new Set(FK(n).map(u=>Ib(t,u))),c={onDeleteValue:zs};return Lx(t.configFileCache,a,c),Lx(t.projectStatus,a,c),Lx(t.builderPrograms,a,c),Lx(t.diagnostics,a,c),Lx(t.projectPendingBuild,a,c),Lx(t.projectErrorsReported,a,c),Lx(t.buildInfoCache,a,c),Lx(t.outputTimeStamps,a,c),Lx(t.lastCachedPackageJsonLookups,a,c),t.watch&&(Lx(t.allWatchedConfigFiles,a,{onDeleteValue:W1}),t.allWatchedExtendedConfigFiles.forEach(u=>{u.projects.forEach(_=>{a.has(_)||u.projects.delete(_)}),u.close()}),Lx(t.allWatchedWildcardDirectories,a,{onDeleteValue:u=>u.forEach(C0)}),Lx(t.allWatchedInputFiles,a,{onDeleteValue:u=>u.forEach(W1)}),Lx(t.allWatchedPackageJsonFiles,a,{onDeleteValue:u=>u.forEach(W1)})),t.buildOrder=n}function Ddt(t,n,a){let c=n&&RK(t,n),u=yoe(t);if(MF(u))return u;if(c){let f=Ib(t,c);if(hr(u,g=>Ib(t,g)===f)===-1)return}let _=c?Cdt(t,[c]):u;return $.assert(!MF(_)),$.assert(!a||c!==void 0),$.assert(!a||_[_.length-1]===c),a?_.slice(0,_.length-1):_}function Adt(t){t.cache&&hFe(t);let{compilerHost:n,host:a}=t,c=t.readFileWithCache,u=n.getSourceFile,{originalReadFile:_,originalFileExists:f,originalDirectoryExists:y,originalCreateDirectory:g,originalWriteFile:k,getSourceFileWithCache:T,readFileWithCache:C}=Bz(a,O=>Z1(t,O),(...O)=>u.call(n,...O));t.readFileWithCache=C,n.getSourceFile=T,t.cache={originalReadFile:_,originalFileExists:f,originalDirectoryExists:y,originalCreateDirectory:g,originalWriteFile:k,originalReadFileWithCache:c,originalGetSourceFile:u}}function hFe(t){if(!t.cache)return;let{cache:n,host:a,compilerHost:c,extendedConfigCache:u,moduleResolutionCache:_,typeReferenceDirectiveResolutionCache:f,libraryResolutionCache:y}=t;a.readFile=n.originalReadFile,a.fileExists=n.originalFileExists,a.directoryExists=n.originalDirectoryExists,a.createDirectory=n.originalCreateDirectory,a.writeFile=n.originalWriteFile,c.getSourceFile=n.originalGetSourceFile,t.readFileWithCache=n.originalReadFileWithCache,u.clear(),_?.clear(),f?.clear(),y?.clear(),t.cache=void 0}function wdt(t,n){t.projectStatus.delete(n),t.diagnostics.delete(n)}function Idt({projectPendingBuild:t},n,a){let c=t.get(n);(c===void 0||ct.projectPendingBuild.set(Ib(t,c),0)),n&&n.throwIfCancellationRequested()}var gFe=(t=>(t[t.Build=0]="Build",t[t.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",t))(gFe||{});function Ndt(t,n){return t.projectPendingBuild.delete(n),t.diagnostics.has(n)?1:0}function _cr(t,n,a,c,u){let _=!0;return{kind:1,project:n,projectPath:a,buildOrder:u,getCompilerOptions:()=>c.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{jdt(t,c,a),_=!1},done:()=>(_&&jdt(t,c,a),jl("SolutionBuilder::Timestamps only updates"),Ndt(t,a))}}function dcr(t,n,a,c,u,_,f){let y=0,g,k;return{kind:0,project:n,projectPath:a,buildOrder:f,getCompilerOptions:()=>u.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>C(vl),getProgram:()=>C(J=>J.getProgramOrUndefined()),getSourceFile:J=>C(G=>G.getSourceFile(J)),getSourceFiles:()=>O(J=>J.getSourceFiles()),getOptionsDiagnostics:J=>O(G=>G.getOptionsDiagnostics(J)),getGlobalDiagnostics:J=>O(G=>G.getGlobalDiagnostics(J)),getConfigFileParsingDiagnostics:()=>O(J=>J.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(J,G)=>O(Z=>Z.getSyntacticDiagnostics(J,G)),getAllDependencies:J=>O(G=>G.getAllDependencies(J)),getSemanticDiagnostics:(J,G)=>O(Z=>Z.getSemanticDiagnostics(J,G)),getSemanticDiagnosticsOfNextAffectedFile:(J,G)=>C(Z=>Z.getSemanticDiagnosticsOfNextAffectedFile&&Z.getSemanticDiagnosticsOfNextAffectedFile(J,G)),emit:(J,G,Z,Q,re)=>J||Q?C(ae=>{var _e,me;return ae.emit(J,G,Z,Q,re||((me=(_e=t.host).getCustomTransformers)==null?void 0:me.call(_e,n)))}):(U(0,Z),M(G,Z,re)),done:T};function T(J,G,Z){return U(3,J,G,Z),jl("SolutionBuilder::Projects built"),Ndt(t,a)}function C(J){return U(0),g&&J(g)}function O(J){return C(J)||j}function F(){var J,G,Z;if($.assert(g===void 0),t.options.dry){Jg(t,x.A_non_dry_build_would_build_project_0,n),k=1,y=2;return}if(t.options.verbose&&Jg(t,x.Building_project_0,n),u.fileNames.length===0){LK(t,a,PP(u)),k=0,y=2;return}let{host:Q,compilerHost:re}=t;if(t.projectCompilerOptions=u.options,(J=t.moduleResolutionCache)==null||J.update(u.options),(G=t.typeReferenceDirectiveResolutionCache)==null||G.update(u.options),g=Q.createProgram(u.fileNames,u.options,re,fcr(t,a,u),PP(u),u.projectReferences),t.watch){let ae=(Z=t.moduleResolutionCache)==null?void 0:Z.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(a,ae&&new Set(so(ae.values(),_e=>t.host.realpath&&(Cie(_e)||_e.directoryExists)?t.host.realpath(Xi(_e.packageDirectory,"package.json")):Xi(_e.packageDirectory,"package.json")))),t.builderPrograms.set(a,g)}y++}function M(J,G,Z){var Q,re,ae;$.assertIsDefined(g),$.assert(y===1);let{host:_e,compilerHost:me}=t,le=new Map,Oe=g.getCompilerOptions(),be=dP(Oe),ue,De,{emitResult:Ce,diagnostics:Ae}=_oe(g,Fe=>_e.reportDiagnostic(Fe),t.write,void 0,(Fe,Be,de,ze,ut,je)=>{var ve;let Le=Z1(t,Fe);if(le.set(Z1(t,Fe),Fe),je?.buildInfo){De||(De=f1e(t.host));let nt=(ve=g.hasChangedEmitSignature)==null?void 0:ve.call(g),It=g1e(t,Fe,a);It?(It.buildInfo=je.buildInfo,It.modifiedTime=De,nt&&(It.latestChangedDtsTime=De)):t.buildInfoCache.set(a,{path:Z1(t,Fe),buildInfo:je.buildInfo,modifiedTime:De,latestChangedDtsTime:nt?De:void 0})}let Ve=je?.differsOnlyInMap?OT(t.host,Fe):void 0;(J||me.writeFile)(Fe,Be,de,ze,ut,je),je?.differsOnlyInMap?t.host.setModifiedTime(Fe,Ve):!be&&t.watch&&(ue||(ue=vFe(t,a))).set(Le,De||(De=f1e(t.host)))},G,void 0,Z||((re=(Q=t.host).getCustomTransformers)==null?void 0:re.call(Q,n)));return(!Oe.noEmitOnError||!Ae.length)&&(le.size||_.type!==8)&&Mdt(t,u,a,x.Updating_unchanged_output_timestamps_of_project_0,le),t.projectErrorsReported.set(a,!0),k=(ae=g.hasChangedEmitSignature)!=null&&ae.call(g)?0:2,Ae.length?(t.diagnostics.set(a,Ae),t.projectStatus.set(a,{type:0,reason:"it had errors"}),k|=4):(t.diagnostics.delete(a),t.projectStatus.set(a,{type:1,oldestOutputFileName:ia(le.values())??g0e(u,!_e.useCaseSensitiveFileNames())})),mcr(t,g),y=2,Ce}function U(J,G,Z,Q){for(;y<=J&&y<3;){let re=y;switch(y){case 0:F();break;case 1:M(Z,G,Q);break;case 2:vcr(t,n,a,c,u,f,$.checkDefined(k)),y++;break;default:}$.assert(y>re)}}}function Odt(t,n,a){if(!t.projectPendingBuild.size||MF(n))return;let{options:c,projectPendingBuild:u}=t;for(let _=0;_{let F=$.checkDefined(t.filesWatched.get(y));$.assert(m1e(F)),F.modifiedTime=O,F.callbacks.forEach(M=>M(T,C,O))},c,u,_,f);t.filesWatched.set(y,{callbacks:[a],watcher:k,modifiedTime:g})}return{close:()=>{let k=$.checkDefined(t.filesWatched.get(y));$.assert(m1e(k)),k.callbacks.length===1?(t.filesWatched.delete(y),C0(k)):pb(k.callbacks,a)}}}function vFe(t,n){if(!t.watch)return;let a=t.outputTimeStamps.get(n);return a||t.outputTimeStamps.set(n,a=new Map),a}function g1e(t,n,a){let c=Z1(t,n),u=t.buildInfoCache.get(a);return u?.path===c?u:void 0}function Ldt(t,n,a,c){let u=Z1(t,n),_=t.buildInfoCache.get(a);if(_!==void 0&&_.path===u)return _.buildInfo||void 0;let f=t.readFileWithCache(n),y=f?S0e(n,f):void 0;return t.buildInfoCache.set(a,{path:u,buildInfo:y||!1,modifiedTime:c||Wm}),y}function SFe(t,n,a,c){let u=Rdt(t,n);if(are&&(Q=Ae,re=Fe),_e.add(Be)}let le;if(J?(me||(me=J0e(J,C,T)),le=Ad(me.roots,(Ae,Fe)=>_e.has(Fe)?void 0:Fe)):le=X(YOe(U,C,T),Ae=>_e.has(Ae)?void 0:Ae),le)return{type:10,buildInfoFile:C,inputFile:le};if(!O){let Ae=Wie(n,!T.useCaseSensitiveFileNames()),Fe=vFe(t,a);for(let Be of Ae){if(Be===C)continue;let de=Z1(t,Be),ze=Fe?.get(de);if(ze||(ze=OT(t.host,Be),Fe?.set(de,ze)),ze===Wm)return{type:3,missingOutputFileName:Be};if(zeSFe(t,Ae,G,Z));if(ue)return ue;let De=t.lastCachedPackageJsonLookups.get(a),Ce=De&&Ix(De,Ae=>SFe(t,Ae,G,Z));return Ce||{type:Oe?2:ae?15:1,newestInputFileTime:re,newestInputFileName:Q,oldestOutputFileName:Z}}function gcr(t,n,a){return t.buildInfoCache.get(a).path===n.path}function bFe(t,n,a){if(n===void 0)return{type:0,reason:"config file deleted mid-build"};let c=t.projectStatus.get(a);if(c!==void 0)return c;jl("SolutionBuilder::beforeUpToDateCheck");let u=hcr(t,n,a);return jl("SolutionBuilder::afterUpToDateCheck"),Jm("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),t.projectStatus.set(a,u),u}function Mdt(t,n,a,c,u){if(n.options.noEmit)return;let _,f=LA(n.options),y=dP(n.options);if(f&&y){u?.has(Z1(t,f))||(t.options.verbose&&Jg(t,c,n.options.configFilePath),t.host.setModifiedTime(f,_=f1e(t.host)),g1e(t,f,a).modifiedTime=_),t.outputTimeStamps.delete(a);return}let{host:g}=t,k=Wie(n,!g.useCaseSensitiveFileNames()),T=vFe(t,a),C=T?new Set:void 0;if(!u||k.length!==u.size){let O=!!t.options.verbose;for(let F of k){let M=Z1(t,F);u?.has(M)||(O&&(O=!1,Jg(t,c,n.options.configFilePath)),g.setModifiedTime(F,_||(_=f1e(t.host))),F===f?g1e(t,f,a).modifiedTime=_:T&&(T.set(M,_),C.add(M)))}}T?.forEach((O,F)=>{!u?.has(F)&&!C.has(F)&&T.delete(F)})}function ycr(t,n,a){if(!n.composite)return;let c=$.checkDefined(t.buildInfoCache.get(a));if(c.latestChangedDtsTime!==void 0)return c.latestChangedDtsTime||void 0;let u=c.buildInfo&&PK(c.buildInfo)&&c.buildInfo.latestChangedDtsFile?t.host.getModifiedTime(za(c.buildInfo.latestChangedDtsFile,mo(c.path))):void 0;return c.latestChangedDtsTime=u||!1,u}function jdt(t,n,a){if(t.options.dry)return Jg(t,x.A_non_dry_build_would_update_timestamps_for_output_of_project_0,n.options.configFilePath);Mdt(t,n,a,x.Updating_output_timestamps_of_project_0),t.projectStatus.set(a,{type:1,oldestOutputFileName:g0e(n,!t.host.useCaseSensitiveFileNames())})}function vcr(t,n,a,c,u,_,f){if(!(t.options.stopBuildOnErrors&&f&4)&&u.options.composite)for(let y=c+1;y<_.length;y++){let g=_[y],k=Ib(t,g);if(t.projectPendingBuild.has(k))continue;let T=VL(t,g,k);if(!(!T||!T.projectReferences))for(let C of T.projectReferences){let O=RK(t,C.path);if(Ib(t,O)!==a)continue;let F=t.projectStatus.get(k);if(F)switch(F.type){case 1:if(f&2){F.type=2;break}case 15:case 2:f&2||t.projectStatus.set(k,{type:6,outOfDateOutputFileName:F.oldestOutputFileName,newerProjectName:n});break;case 12:Ib(t,RK(t,F.upstreamProjectName))===a&&wdt(t,k);break}Idt(t,k,0);break}}}function Bdt(t,n,a,c,u,_){jl("SolutionBuilder::beforeBuild");let f=Scr(t,n,a,c,u,_);return jl("SolutionBuilder::afterBuild"),Jm("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),f}function Scr(t,n,a,c,u,_){let f=Ddt(t,n,_);if(!f)return 3;Pdt(t,a);let y=!0,g=0;for(;;){let k=yFe(t,f,y);if(!k)break;y=!1,k.done(a,c,u?.(k.project)),t.diagnostics.has(k.projectPath)||g++}return hFe(t),Gdt(t,f),Ecr(t,f),MF(f)?4:f.some(k=>t.diagnostics.has(Ib(t,k)))?g?2:1:0}function $dt(t,n,a){jl("SolutionBuilder::beforeClean");let c=bcr(t,n,a);return jl("SolutionBuilder::afterClean"),Jm("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),c}function bcr(t,n,a){let c=Ddt(t,n,a);if(!c)return 3;if(MF(c))return y1e(t,c.circularDiagnostics),4;let{options:u,host:_}=t,f=u.dry?[]:void 0;for(let y of c){let g=Ib(t,y),k=VL(t,y,g);if(k===void 0){Wdt(t,g);continue}let T=Wie(k,!_.useCaseSensitiveFileNames());if(!T.length)continue;let C=new Set(k.fileNames.map(O=>Z1(t,O)));for(let O of T)C.has(Z1(t,O))||_.fileExists(O)&&(f?f.push(O):(_.deleteFile(O),xFe(t,g,0)))}return f&&Jg(t,x.A_non_dry_build_would_delete_the_following_files_Colon_0,f.map(y=>`\r + * ${y}`).join("")),0}function xFe(t,n,a){t.host.getParsedCommandLine&&a===1&&(a=2),a===2&&(t.configFileCache.delete(n),t.buildOrder=void 0),t.needsSummary=!0,wdt(t,n),Idt(t,n,a),Adt(t)}function voe(t,n,a){t.reportFileChangeDetected=!0,xFe(t,n,a),Udt(t,250,!0)}function Udt(t,n,a){let{hostWithWatch:c}=t;!c.setTimeout||!c.clearTimeout||(t.timerToBuildInvalidatedProject&&c.clearTimeout(t.timerToBuildInvalidatedProject),t.timerToBuildInvalidatedProject=c.setTimeout(xcr,n,"timerToBuildInvalidatedProject",t,a))}function xcr(t,n,a){jl("SolutionBuilder::beforeBuild");let c=Tcr(n,a);jl("SolutionBuilder::afterBuild"),Jm("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),c&&Gdt(n,c)}function Tcr(t,n){t.timerToBuildInvalidatedProject=void 0,t.reportFileChangeDetected&&(t.reportFileChangeDetected=!1,t.projectErrorsReported.clear(),kFe(t,x.File_change_detected_Starting_incremental_compilation));let a=0,c=yoe(t),u=yFe(t,c,!1);if(u)for(u.done(),a++;t.projectPendingBuild.size;){if(t.timerToBuildInvalidatedProject)return;let _=Odt(t,c,!1);if(!_)break;if(_.kind!==1&&(n||a===5)){Udt(t,100,!1);return}Fdt(t,_,c).done(),_.kind!==1&&a++}return hFe(t),c}function zdt(t,n,a,c){!t.watch||t.allWatchedConfigFiles.has(a)||t.allWatchedConfigFiles.set(a,h1e(t,n,()=>voe(t,a,2),2e3,c?.watchOptions,cf.ConfigFile,n))}function qdt(t,n,a){Hie(n,a?.options,t.allWatchedExtendedConfigFiles,(c,u)=>h1e(t,c,()=>{var _;return(_=t.allWatchedExtendedConfigFiles.get(u))==null?void 0:_.projects.forEach(f=>voe(t,f,2))},2e3,a?.watchOptions,cf.ExtendedConfigFile),c=>Z1(t,c))}function Jdt(t,n,a,c){t.watch&&EK(pFe(t.allWatchedWildcardDirectories,a),c.wildcardDirectories,(u,_)=>t.watchDirectory(u,f=>{var y;kK({watchedDirPath:Z1(t,u),fileOrDirectory:f,fileOrDirectoryPath:Z1(t,f),configFileName:n,currentDirectory:t.compilerHost.getCurrentDirectory(),options:c.options,program:t.builderPrograms.get(a)||((y=ucr(t,a))==null?void 0:y.fileNames),useCaseSensitiveFileNames:t.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:g=>t.writeLog(g),toPath:g=>Z1(t,g)})||voe(t,a,1)},_,c?.watchOptions,cf.WildcardDirectory,n))}function TFe(t,n,a,c){t.watch&&BU(pFe(t.allWatchedInputFiles,a),new Set(c.fileNames),{createNewValue:u=>h1e(t,u,()=>voe(t,a,0),250,c?.watchOptions,cf.SourceFile,n),onDeleteValue:W1})}function EFe(t,n,a,c){!t.watch||!t.lastCachedPackageJsonLookups||BU(pFe(t.allWatchedPackageJsonFiles,a),t.lastCachedPackageJsonLookups.get(a),{createNewValue:u=>h1e(t,u,()=>voe(t,a,0),2e3,c?.watchOptions,cf.PackageJson,n),onDeleteValue:W1})}function Ecr(t,n){if(t.watchAllProjectsPending){jl("SolutionBuilder::beforeWatcherCreation"),t.watchAllProjectsPending=!1;for(let a of FK(n)){let c=Ib(t,a),u=VL(t,a,c);zdt(t,a,c,u),qdt(t,c,u),u&&(Jdt(t,a,c,u),TFe(t,a,c,u),EFe(t,a,c,u))}jl("SolutionBuilder::afterWatcherCreation"),Jm("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function kcr(t){dg(t.allWatchedConfigFiles,W1),dg(t.allWatchedExtendedConfigFiles,C0),dg(t.allWatchedWildcardDirectories,n=>dg(n,C0)),dg(t.allWatchedInputFiles,n=>dg(n,W1)),dg(t.allWatchedPackageJsonFiles,n=>dg(n,W1))}function Vdt(t,n,a,c,u){let _=lcr(t,n,a,c,u);return{build:(f,y,g,k)=>Bdt(_,f,y,g,k),clean:f=>$dt(_,f),buildReferences:(f,y,g,k)=>Bdt(_,f,y,g,k,!0),cleanReferences:f=>$dt(_,f,!0),getNextInvalidatedProject:f=>(Pdt(_,f),yFe(_,yoe(_),!1)),getBuildOrder:()=>yoe(_),getUpToDateStatusOfProject:f=>{let y=RK(_,f),g=Ib(_,y);return bFe(_,VL(_,y,g),g)},invalidateProject:(f,y)=>xFe(_,f,y||0),close:()=>kcr(_)}}function Jf(t,n){return BI(n,t.compilerHost.getCurrentDirectory(),t.compilerHost.getCanonicalFileName)}function Jg(t,n,...a){t.host.reportSolutionBuilderStatus(bp(n,...a))}function kFe(t,n,...a){var c,u;(u=(c=t.hostWithWatch).onWatchStatusChange)==null||u.call(c,bp(n,...a),t.host.getNewLine(),t.baseCompilerOptions)}function y1e({host:t},n){n.forEach(a=>t.reportDiagnostic(a))}function LK(t,n,a){y1e(t,a),t.projectErrorsReported.set(n,!0),a.length&&t.diagnostics.set(n,a)}function Wdt(t,n){LK(t,n,[t.configFileCache.get(n)])}function Gdt(t,n){if(!t.needsSummary)return;t.needsSummary=!1;let a=t.watch||!!t.host.reportErrorSummary,{diagnostics:c}=t,u=0,_=[];MF(n)?(Hdt(t,n.buildOrder),y1e(t,n.circularDiagnostics),a&&(u+=uoe(n.circularDiagnostics)),a&&(_=[..._,...poe(n.circularDiagnostics)])):(n.forEach(f=>{let y=Ib(t,f);t.projectErrorsReported.has(y)||y1e(t,c.get(y)||j)}),a&&c.forEach(f=>u+=uoe(f)),a&&c.forEach(f=>[..._,...poe(f)])),t.watch?kFe(t,Z0e(u),u):t.host.reportErrorSummary&&t.host.reportErrorSummary(u,_)}function Hdt(t,n){t.options.verbose&&Jg(t,x.Projects_in_this_build_Colon_0,n.map(a=>`\r + * `+Jf(t,a)).join(""))}function Ccr(t,n,a){switch(a.type){case 5:return Jg(t,x.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Jf(t,n),Jf(t,a.outOfDateOutputFileName),Jf(t,a.newerInputFileName));case 6:return Jg(t,x.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Jf(t,n),Jf(t,a.outOfDateOutputFileName),Jf(t,a.newerProjectName));case 3:return Jg(t,x.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Jf(t,n),Jf(t,a.missingOutputFileName));case 4:return Jg(t,x.Project_0_is_out_of_date_because_there_was_error_reading_file_1,Jf(t,n),Jf(t,a.fileName));case 7:return Jg(t,x.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,Jf(t,n),Jf(t,a.buildInfoFile));case 8:return Jg(t,x.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,Jf(t,n),Jf(t,a.buildInfoFile));case 9:return Jg(t,x.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,Jf(t,n),Jf(t,a.buildInfoFile));case 10:return Jg(t,x.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,Jf(t,n),Jf(t,a.buildInfoFile),Jf(t,a.inputFile));case 1:if(a.newestInputFileTime!==void 0)return Jg(t,x.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,Jf(t,n),Jf(t,a.newestInputFileName||""),Jf(t,a.oldestOutputFileName||""));break;case 2:return Jg(t,x.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Jf(t,n));case 15:return Jg(t,x.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,Jf(t,n));case 11:return Jg(t,x.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Jf(t,n),Jf(t,a.upstreamProjectName));case 12:return Jg(t,a.upstreamProjectBlocked?x.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:x.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Jf(t,n),Jf(t,a.upstreamProjectName));case 0:return Jg(t,x.Project_0_is_out_of_date_because_1,Jf(t,n),a.reason);case 14:return Jg(t,x.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Jf(t,n),a.version,L);case 17:return Jg(t,x.Project_0_is_being_forcibly_rebuilt,Jf(t,n));case 16:case 13:break;default:}}function v1e(t,n,a){t.options.verbose&&Ccr(t,n,a)}var CFe=(t=>(t[t.time=0]="time",t[t.count=1]="count",t[t.memory=2]="memory",t))(CFe||{});function Dcr(t){let n=Acr();return X(t.getSourceFiles(),a=>{let c=wcr(t,a),u=Ry(a).length;n.set(c,n.get(c)+u)}),n}function Acr(){let t=new Map;return t.set("Library",0),t.set("Definitions",0),t.set("TypeScript",0),t.set("JavaScript",0),t.set("JSON",0),t.set("Other",0),t}function wcr(t,n){if(t.isSourceFileDefaultLibrary(n))return"Library";if(n.isDeclarationFile)return"Definitions";let a=n.path;return _p(a,Ghe)?"TypeScript":_p(a,cL)?"JavaScript":Au(a,".json")?"JSON":"Other"}function S1e(t,n,a){return Soe(t,a)?LF(t,!0):n}function Kdt(t){return!!t.writeOutputIsTTY&&t.writeOutputIsTTY()&&!t.getEnvironmentVariable("NO_COLOR")}function Soe(t,n){return!n||typeof n.pretty>"u"?Kdt(t):n.pretty}function Qdt(t){return t.options.all?pu(Q1.concat(f3),(n,a)=>JD(n.name,a.name)):yr(Q1.concat(f3),n=>!!n.showInSimplifiedHelpView)}function b1e(t){t.write(Jh(x.Version_0,L)+t.newLine)}function x1e(t){if(!Kdt(t))return{bold:T=>T,blue:T=>T,blueBackground:T=>T,brightWhite:T=>T};function a(T){return`\x1B[1m${T}\x1B[22m`}let c=t.getEnvironmentVariable("OS")&&t.getEnvironmentVariable("OS").toLowerCase().includes("windows"),u=t.getEnvironmentVariable("WT_SESSION"),_=t.getEnvironmentVariable("TERM_PROGRAM")&&t.getEnvironmentVariable("TERM_PROGRAM")==="vscode";function f(T){return c&&!u&&!_?k(T):`\x1B[94m${T}\x1B[39m`}let y=t.getEnvironmentVariable("COLORTERM")==="truecolor"||t.getEnvironmentVariable("TERM")==="xterm-256color";function g(T){return y?`\x1B[48;5;68m${T}\x1B[39;49m`:`\x1B[44m${T}\x1B[39;49m`}function k(T){return`\x1B[97m${T}\x1B[39m`}return{bold:a,blue:f,brightWhite:k,blueBackground:g}}function Zdt(t){return`--${t.name}${t.shortName?`, -${t.shortName}`:""}`}function Icr(t,n,a,c){var u;let _=[],f=x1e(t),y=Zdt(n),g=M(n),k=typeof n.defaultValueDescription=="object"?Jh(n.defaultValueDescription):C(n.defaultValueDescription,n.type==="list"||n.type==="listOrElement"?n.element.type:n.type),T=((u=t.getWidthOfTerminal)==null?void 0:u.call(t))??0;if(T>=80){let U="";n.description&&(U=Jh(n.description)),_.push(...F(y,U,a,c,T,!0),t.newLine),O(g,n)&&(g&&_.push(...F(g.valueType,g.possibleValues,a,c,T,!1),t.newLine),k&&_.push(...F(Jh(x.default_Colon),k,a,c,T,!1),t.newLine)),_.push(t.newLine)}else{if(_.push(f.blue(y),t.newLine),n.description){let U=Jh(n.description);_.push(U)}if(_.push(t.newLine),O(g,n)){if(g&&_.push(`${g.valueType} ${g.possibleValues}`),k){g&&_.push(t.newLine);let U=Jh(x.default_Colon);_.push(`${U} ${k}`)}_.push(t.newLine)}_.push(t.newLine)}return _;function C(U,J){return U!==void 0&&typeof J=="object"?so(J.entries()).filter(([,G])=>G===U).map(([G])=>G).join("/"):String(U)}function O(U,J){let G=["string"],Z=[void 0,"false","n/a"],Q=J.defaultValueDescription;return!(J.category===x.Command_line_Options||un(G,U?.possibleValues)&&un(Z,Q))}function F(U,J,G,Z,Q,re){let ae=[],_e=!0,me=J,le=Q-Z;for(;me.length>0;){let Oe="";_e?(Oe=U.padStart(G),Oe=Oe.padEnd(Z),Oe=re?f.blue(Oe):Oe):Oe="".padStart(Z);let be=me.substr(0,le);me=me.slice(le),ae.push(`${Oe}${be}`),_e=!1}return ae}function M(U){if(U.type==="object")return;return{valueType:J(U),possibleValues:G(U)};function J(Z){switch($.assert(Z.type!=="listOrElement"),Z.type){case"string":case"number":case"boolean":return Jh(x.type_Colon);case"list":return Jh(x.one_or_more_Colon);default:return Jh(x.one_of_Colon)}}function G(Z){let Q;switch(Z.type){case"string":case"number":case"boolean":Q=Z.type;break;case"list":case"listOrElement":Q=G(Z.element);break;case"object":Q="";break;default:let re={};return Z.type.forEach((ae,_e)=>{var me;(me=Z.deprecatedKeys)!=null&&me.has(_e)||(re[ae]||(re[ae]=[])).push(_e)}),Object.entries(re).map(([,ae])=>ae.join("/")).join(", ")}return Q}}}function Xdt(t,n){let a=0;for(let f of n){let y=Zdt(f).length;a=a>y?a:y}let c=a+2,u=c+2,_=[];for(let f of n){let y=Icr(t,f,c,u);_=[..._,...y]}return _[_.length-2]!==t.newLine&&_.push(t.newLine),_}function MK(t,n,a,c,u,_){let f=[];if(f.push(x1e(t).bold(n)+t.newLine+t.newLine),u&&f.push(u+t.newLine+t.newLine),!c)return f=[...f,...Xdt(t,a)],_&&f.push(_+t.newLine+t.newLine),f;let y=new Map;for(let g of a){if(!g.category)continue;let k=Jh(g.category),T=y.get(k)??[];T.push(g),y.set(k,T)}return y.forEach((g,k)=>{f.push(`### ${k}${t.newLine}${t.newLine}`),f=[...f,...Xdt(t,g)]}),_&&f.push(_+t.newLine+t.newLine),f}function Pcr(t,n){let a=x1e(t),c=[...T1e(t,`${Jh(x.tsc_Colon_The_TypeScript_Compiler)} - ${Jh(x.Version_0,L)}`)];c.push(a.bold(Jh(x.COMMON_COMMANDS))+t.newLine+t.newLine),f("tsc",x.Compiles_the_current_project_tsconfig_json_in_the_working_directory),f("tsc app.ts util.ts",x.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),f("tsc -b",x.Build_a_composite_project_in_the_working_directory),f("tsc --init",x.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),f("tsc -p ./path/to/tsconfig.json",x.Compiles_the_TypeScript_project_located_at_the_specified_path),f("tsc --help --all",x.An_expanded_version_of_this_information_showing_all_possible_compiler_options),f(["tsc --noEmit","tsc --target esnext"],x.Compiles_the_current_project_with_additional_settings);let u=n.filter(y=>y.isCommandLineOnly||y.category===x.Command_line_Options),_=n.filter(y=>!un(u,y));c=[...c,...MK(t,Jh(x.COMMAND_LINE_FLAGS),u,!1,void 0,void 0),...MK(t,Jh(x.COMMON_COMPILER_OPTIONS),_,!1,void 0,nF(x.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(let y of c)t.write(y);function f(y,g){let k=typeof y=="string"?[y]:y;for(let T of k)c.push(" "+a.blue(T)+t.newLine);c.push(" "+Jh(g)+t.newLine+t.newLine)}}function Ncr(t,n,a,c){let u=[...T1e(t,`${Jh(x.tsc_Colon_The_TypeScript_Compiler)} - ${Jh(x.Version_0,L)}`)];u=[...u,...MK(t,Jh(x.ALL_COMPILER_OPTIONS),n,!0,void 0,nF(x.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],u=[...u,...MK(t,Jh(x.WATCH_OPTIONS),c,!1,Jh(x.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],u=[...u,...MK(t,Jh(x.BUILD_OPTIONS),yr(a,_=>_!==f3),!1,nF(x.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(let _ of u)t.write(_)}function Ydt(t,n){let a=[...T1e(t,`${Jh(x.tsc_Colon_The_TypeScript_Compiler)} - ${Jh(x.Version_0,L)}`)];a=[...a,...MK(t,Jh(x.BUILD_OPTIONS),yr(n,c=>c!==f3),!1,nF(x.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(let c of a)t.write(c)}function T1e(t,n){var a;let c=x1e(t),u=[],_=((a=t.getWidthOfTerminal)==null?void 0:a.call(t))??0,f=5,y=c.blueBackground("".padStart(f)),g=c.blueBackground(c.brightWhite("TS ".padStart(f)));if(_>=n.length+f){let T=(_>120?120:_)-f;u.push(n.padEnd(T)+y+t.newLine),u.push("".padStart(T)+g+t.newLine)}else u.push(n+t.newLine),u.push(t.newLine);return u}function eft(t,n){n.options.all?Ncr(t,Qdt(n),dye,wF):Pcr(t,Qdt(n))}function tft(t,n,a){let c=LF(t),u;if(a.options.locale&&oA(a.options.locale,t,a.errors),a.errors.length>0)return a.errors.forEach(c),t.exit(1);if(a.options.init)return Lcr(t,c,a.options),t.exit(0);if(a.options.version)return b1e(t),t.exit(0);if(a.options.help||a.options.all)return eft(t,a),t.exit(0);if(a.options.watch&&a.options.listFilesOnly)return c(bp(x.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),t.exit(1);if(a.options.project){if(a.fileNames.length!==0)return c(bp(x.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),t.exit(1);let y=Qs(a.options.project);if(!y||t.directoryExists(y)){if(u=Xi(y,"tsconfig.json"),!t.fileExists(u))return c(bp(x.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,a.options.project)),t.exit(1)}else if(u=y,!t.fileExists(u))return c(bp(x.The_specified_path_does_not_exist_Colon_0,a.options.project)),t.exit(1)}else if(a.fileNames.length===0){let y=Qs(t.getCurrentDirectory());u=k0e(y,g=>t.fileExists(g))}if(a.fileNames.length===0&&!u)return a.options.showConfig?c(bp(x.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,Qs(t.getCurrentDirectory()))):(b1e(t),eft(t,a)),t.exit(1);let _=t.getCurrentDirectory(),f=gie(a.options,y=>za(y,_));if(u){let y=new Map,g=sFe(u,f,y,a.watchOptions,t,c);if(f.showConfig)return g.errors.length!==0?(c=S1e(t,c,g.options),g.errors.forEach(c),t.exit(1)):(t.write(JSON.stringify(Sye(g,u,t),null,4)+t.newLine),t.exit(0));if(c=S1e(t,c,g.options),Phe(g.options))return AFe(t,c)?void 0:Ocr(t,n,c,g,f,a.watchOptions,y);dP(g.options)?oft(t,n,c,g):ift(t,n,c,g)}else{if(f.showConfig)return t.write(JSON.stringify(Sye(a,Xi(_,"tsconfig.json"),t),null,4)+t.newLine),t.exit(0);if(c=S1e(t,c,f),Phe(f))return AFe(t,c)?void 0:Fcr(t,n,c,a.fileNames,f,a.watchOptions);dP(f)?oft(t,n,c,{...a,options:f}):ift(t,n,c,{...a,options:f})}}function DFe(t){if(t.length>0&&t[0].charCodeAt(0)===45){let n=t[0].slice(t[0].charCodeAt(1)===45?2:1).toLowerCase();return n===f3.name||n===f3.shortName}return!1}function rft(t,n,a){if(DFe(a)){let{buildOptions:u,watchOptions:_,projects:f,errors:y}=zNe(a);if(u.generateCpuProfile&&t.enableCPUProfiler)t.enableCPUProfiler(u.generateCpuProfile,()=>nft(t,n,u,_,f,y));else return nft(t,n,u,_,f,y)}let c=$Ne(a,u=>t.readFile(u));if(c.options.generateCpuProfile&&t.enableCPUProfiler)t.enableCPUProfiler(c.options.generateCpuProfile,()=>tft(t,n,c));else return tft(t,n,c)}function AFe(t,n){return!t.watchFile||!t.watchDirectory?(n(bp(x.The_current_host_does_not_support_the_0_option,"--watch")),t.exit(1),!0):!1}var boe=2;function nft(t,n,a,c,u,_){let f=S1e(t,LF(t),a);if(a.locale&&oA(a.locale,t,_),_.length>0)return _.forEach(f),t.exit(1);if(a.help||u.length===0)return b1e(t),Ydt(t,tK),t.exit(0);if(!t.getModifiedTime||!t.setModifiedTime||a.clean&&!t.deleteFile)return f(bp(x.The_current_host_does_not_support_the_0_option,"--build")),t.exit(1);if(a.watch){if(AFe(t,f))return;let C=dFe(t,void 0,f,goe(t,Soe(t,a)),IFe(t,a));C.jsDocParsingMode=boe;let O=lft(t,a);aft(t,n,C,O);let F=C.onWatchStatusChange,M=!1;C.onWatchStatusChange=(J,G,Z,Q)=>{F?.(J,G,Z,Q),M&&(J.code===x.Found_0_errors_Watching_for_file_changes.code||J.code===x.Found_1_error_Watching_for_file_changes.code)&&PFe(U,O)};let U=mFe(C,u,a,c);return U.build(),PFe(U,O),M=!0,U}let y=_Fe(t,void 0,f,goe(t,Soe(t,a)),wFe(t,a));y.jsDocParsingMode=boe;let g=lft(t,a);aft(t,n,y,g);let k=fFe(y,u,a),T=a.clean?k.clean():k.build();return PFe(k,g),U9(),t.exit(T)}function wFe(t,n){return Soe(t,n)?(a,c)=>t.write(X0e(a,c,t.newLine,t)):void 0}function ift(t,n,a,c){let{fileNames:u,options:_,projectReferences:f}=c,y=Qie(_,void 0,t);y.jsDocParsingMode=boe;let g=y.getCurrentDirectory(),k=_d(y.useCaseSensitiveFileNames());Bz(y,F=>wl(F,g,k)),NFe(t,_,!1);let T={rootNames:u,options:_,projectReferences:f,host:y,configFileParsingDiagnostics:PP(c)},C=wK(T),O=o1e(C,a,F=>t.write(F+t.newLine),wFe(t,_));return k1e(t,C,void 0),n(C),t.exit(O)}function oft(t,n,a,c){let{options:u,fileNames:_,projectReferences:f}=c;NFe(t,u,!1);let y=hoe(u,t);y.jsDocParsingMode=boe;let g=cFe({host:y,system:t,rootNames:_,options:u,configFileParsingDiagnostics:PP(c),projectReferences:f,reportDiagnostic:a,reportErrorSummary:wFe(t,u),afterProgramEmitAndDiagnostics:k=>{k1e(t,k.getProgram(),void 0),n(k)}});return t.exit(g)}function aft(t,n,a,c){sft(t,a,!0),a.afterProgramEmitAndDiagnostics=u=>{k1e(t,u.getProgram(),c),n(u)}}function sft(t,n,a){let c=n.createProgram;n.createProgram=(u,_,f,y,g,k)=>($.assert(u!==void 0||_===void 0&&!!y),_!==void 0&&NFe(t,_,a),c(u,_,f,y,g,k))}function cft(t,n,a){a.jsDocParsingMode=boe,sft(t,a,!1);let c=a.afterProgramCreate;a.afterProgramCreate=u=>{c(u),k1e(t,u.getProgram(),void 0),n(u)}}function IFe(t,n){return Q0e(t,Soe(t,n))}function Ocr(t,n,a,c,u,_,f){let y=u1e({configFileName:c.options.configFilePath,optionsToExtend:u,watchOptionsToExtend:_,system:t,reportDiagnostic:a,reportWatchStatus:IFe(t,c.options)});return cft(t,n,y),y.configFileParsingResult=c,y.extendedConfigCache=f,_1e(y)}function Fcr(t,n,a,c,u,_){let f=p1e({rootFiles:c,options:u,watchOptions:_,system:t,reportDiagnostic:a,reportWatchStatus:IFe(t,u)});return cft(t,n,f),_1e(f)}function lft(t,n){if(t===f_&&n.extendedDiagnostics)return aO(),Rcr()}function Rcr(){let t;return{addAggregateStatistic:n,forEachAggregateStatistics:a,clear:c};function n(u){let _=t?.get(u.name);_?_.type===2?_.value=Math.max(_.value,u.value):_.value+=u.value:(t??(t=new Map)).set(u.name,u)}function a(u){t?.forEach(u)}function c(){t=void 0}}function PFe(t,n){if(!n)return;if(!wI()){f_.write(x.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+` +`);return}let a=[];a.push({name:"Projects in scope",value:FK(t.getBuildOrder()).length,type:1}),c("SolutionBuilder::Projects built"),c("SolutionBuilder::Timestamps only updates"),c("SolutionBuilder::Bundles updated"),n.forEachAggregateStatistics(_=>{_.name=`Aggregate ${_.name}`,a.push(_)}),M9((_,f)=>{E1e(_)&&a.push({name:`${u(_)} time`,value:f,type:0})}),B9(),aO(),n.clear(),_ft(f_,a);function c(_){let f=b$(_);f&&a.push({name:u(_),value:f,type:1})}function u(_){return _.replace("SolutionBuilder::","")}}function uft(t,n){return t===f_&&(n.diagnostics||n.extendedDiagnostics)}function pft(t,n){return t===f_&&n.generateTrace}function NFe(t,n,a){uft(t,n)&&aO(t),pft(t,n)&&$9(a?"build":"project",n.generateTrace,n.configFilePath)}function E1e(t){return Ca(t,"SolutionBuilder::")}function k1e(t,n,a){var c;let u=n.getCompilerOptions();pft(t,u)&&((c=hi)==null||c.stopTracing());let _;if(uft(t,u)){_=[];let k=t.getMemoryUsage?t.getMemoryUsage():-1;y("Files",n.getSourceFiles().length);let T=Dcr(n);if(u.extendedDiagnostics)for(let[J,G]of T.entries())y("Lines of "+J,G);else y("Lines",$e(T.values(),(J,G)=>J+G,0));y("Identifiers",n.getIdentifierCount()),y("Symbols",n.getSymbolCount()),y("Types",n.getTypeCount()),y("Instantiations",n.getInstantiationCount()),k>=0&&f({name:"Memory used",value:k,type:2},!0);let C=wI(),O=C?fb("Program"):0,F=C?fb("Bind"):0,M=C?fb("Check"):0,U=C?fb("Emit"):0;if(u.extendedDiagnostics){let J=n.getRelationCacheSizes();y("Assignability cache size",J.assignable),y("Identity cache size",J.identity),y("Subtype cache size",J.subtype),y("Strict subtype cache size",J.strictSubtype),C&&M9((G,Z)=>{E1e(G)||g(`${G} time`,Z,!0)})}else C&&(g("I/O read",fb("I/O Read"),!0),g("I/O write",fb("I/O Write"),!0),g("Parse time",O,!0),g("Bind time",F,!0),g("Check time",M,!0),g("Emit time",U,!0));C&&g("Total time",O+F+M+U,!1),_ft(t,_),C?a?(M9(J=>{E1e(J)||x$(J)}),j9(J=>{E1e(J)||T$(J)})):B9():t.write(x.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+` +`)}function f(k,T){_.push(k),T&&a?.addAggregateStatistic(k)}function y(k,T){f({name:k,value:T,type:1},!0)}function g(k,T,C){f({name:k,value:T,type:0},C)}}function _ft(t,n){let a=0,c=0;for(let u of n){u.name.length>a&&(a=u.name.length);let _=dft(u);_.length>c&&(c=_.length)}for(let u of n)t.write(`${u.name}:`.padEnd(a+2)+dft(u).toString().padStart(c)+t.newLine)}function dft(t){switch(t.type){case 1:return""+t.value;case 0:return(t.value/1e3).toFixed(2)+"s";case 2:return Math.round(t.value/1e3)+"K";default:$.assertNever(t.type)}}function Lcr(t,n,a){let c=t.getCurrentDirectory(),u=Qs(Xi(c,"tsconfig.json"));if(t.fileExists(u))n(bp(x.A_tsconfig_json_file_is_already_defined_at_Colon_0,u));else{t.writeFile(u,WNe(a,t.newLine));let _=[t.newLine,...T1e(t,"Created a new tsconfig.json")];_.push("You can learn more at https://aka.ms/tsconfig"+t.newLine);for(let f of _)t.write(f)}}function LS(t,n=!0){return{type:t,reportFallback:n}}var fft=LS(void 0,!1),mft=LS(void 0,!1),Jz=LS(void 0,!0);function OFe(t,n){let a=rm(t,"strictNullChecks");return{serializeTypeOfDeclaration:T,serializeReturnTypeForSignature:O,serializeTypeOfExpression:k,serializeTypeOfAccessor:g,tryReuseExistingTypeNode(Se,tt){if(n.canReuseTypeNode(Se,tt))return u(Se,tt)}};function c(Se,tt,Qe=tt){return tt===void 0?void 0:n.markNodeReuse(Se,tt.flags&16?tt:W.cloneNode(tt),Qe??tt)}function u(Se,tt){let{finalizeBoundary:Qe,startRecoveryScope:We,hadError:St,markError:Kt}=n.createRecoveryBoundary(Se),Sr=At(tt,nn,Wo);if(!Qe())return;return Se.approximateLength+=tt.end-tt.pos,Sr;function nn(sr){if(St())return sr;let uo=We(),Wa=l3e(sr)?n.enterNewScope(Se,sr):void 0,oo=is(sr);return Wa?.(),St()?Wo(sr)&&!gF(sr)?(uo(),n.serializeExistingTypeNode(Se,sr)):sr:oo?n.markNodeReuse(Se,oo,sr):void 0}function Nn(sr){let uo=xU(sr);switch(uo.kind){case 184:return Ko(uo);case 187:return Qn(uo);case 200:return $t(uo);case 199:let Wa=uo;if(Wa.operator===143)return Dr(Wa)}return At(sr,nn,Wo)}function $t(sr){let uo=Nn(sr.objectType);if(uo!==void 0)return W.updateIndexedAccessTypeNode(sr,uo,At(sr.indexType,nn,Wo))}function Dr(sr){$.assertEqual(sr.operator,143);let uo=Nn(sr.type);if(uo!==void 0)return W.updateTypeOperatorNode(sr,uo)}function Qn(sr){let{introducesError:uo,node:Wa}=n.trackExistingEntityName(Se,sr.exprName);if(!uo)return W.updateTypeQueryNode(sr,Wa,Bn(sr.typeArguments,nn,Wo));let oo=n.serializeTypeName(Se,sr.exprName,!0);if(oo)return n.markNodeReuse(Se,oo,sr.exprName)}function Ko(sr){if(n.canReuseTypeNode(Se,sr)){let{introducesError:uo,node:Wa}=n.trackExistingEntityName(Se,sr.typeName),oo=Bn(sr.typeArguments,nn,Wo);if(uo){let Oi=n.serializeTypeName(Se,sr.typeName,!1,oo);if(Oi)return n.markNodeReuse(Se,Oi,sr.typeName)}else{let Oi=W.updateTypeReferenceNode(sr,Wa,oo);return n.markNodeReuse(Se,Oi,sr)}}}function is(sr){var uo;if(AA(sr))return At(sr.type,nn,Wo);if(X3e(sr)||sr.kind===320)return W.createKeywordTypeNode(133);if(Y3e(sr))return W.createKeywordTypeNode(159);if(xL(sr))return W.createUnionTypeNode([At(sr.type,nn,Wo),W.createLiteralTypeNode(W.createNull())]);if(Lge(sr))return W.createUnionTypeNode([At(sr.type,nn,Wo),W.createKeywordTypeNode(157)]);if(Gne(sr))return At(sr.type,nn);if(Hne(sr))return W.createArrayTypeNode(At(sr.type,nn,Wo));if(p3(sr))return W.createTypeLiteralNode(Cr(sr.jsDocPropertyTags,Ht=>{let Wr=At(ct(Ht.name)?Ht.name:Ht.name.right,nn,ct),ai=n.getJsDocPropertyOverride(Se,sr,Ht);return W.createPropertySignature(void 0,Wr,Ht.isBracketed||Ht.typeExpression&&Lge(Ht.typeExpression.type)?W.createToken(58):void 0,ai||Ht.typeExpression&&At(Ht.typeExpression.type,nn,Wo)||W.createKeywordTypeNode(133))}));if(Ug(sr)&&ct(sr.typeName)&&sr.typeName.escapedText==="")return Yi(W.createKeywordTypeNode(133),sr);if((VT(sr)||Ug(sr))&&Cre(sr))return W.createTypeLiteralNode([W.createIndexSignature(void 0,[W.createParameterDeclaration(void 0,void 0,"x",void 0,At(sr.typeArguments[0],nn,Wo))],At(sr.typeArguments[1],nn,Wo))]);if(TL(sr))if(WO(sr)){let Ht;return W.createConstructorTypeNode(void 0,Bn(sr.typeParameters,nn,Zu),Wn(sr.parameters,(Wr,ai)=>Wr.name&&ct(Wr.name)&&Wr.name.escapedText==="new"?(Ht=Wr.type,void 0):W.createParameterDeclaration(void 0,Oi(Wr),n.markNodeReuse(Se,W.createIdentifier($o(Wr,ai)),Wr),W.cloneNode(Wr.questionToken),At(Wr.type,nn,Wo),void 0)),At(Ht||sr.type,nn,Wo)||W.createKeywordTypeNode(133))}else return W.createFunctionTypeNode(Bn(sr.typeParameters,nn,Zu),Cr(sr.parameters,(Ht,Wr)=>W.createParameterDeclaration(void 0,Oi(Ht),n.markNodeReuse(Se,W.createIdentifier($o(Ht,Wr)),Ht),W.cloneNode(Ht.questionToken),At(Ht.type,nn,Wo),void 0)),At(sr.type,nn,Wo)||W.createKeywordTypeNode(133));if(lz(sr))return n.canReuseTypeNode(Se,sr)||Kt(),sr;if(Zu(sr)){let{node:Ht}=n.trackExistingEntityName(Se,sr.name);return W.updateTypeParameterDeclaration(sr,Bn(sr.modifiers,nn,bc),Ht,At(sr.constraint,nn,Wo),At(sr.default,nn,Wo))}if(vP(sr)){let Ht=$t(sr);return Ht||(Kt(),sr)}if(Ug(sr)){let Ht=Ko(sr);return Ht||(Kt(),sr)}if(jT(sr)){if(((uo=sr.attributes)==null?void 0:uo.token)===132)return Kt(),sr;if(!n.canReuseTypeNode(Se,sr))return n.serializeExistingTypeNode(Se,sr);let Ht=ft(sr,sr.argument.literal),Wr=Ht===sr.argument.literal?c(Se,sr.argument.literal):Ht;return W.updateImportTypeNode(sr,Wr===sr.argument.literal?c(Se,sr.argument):W.createLiteralTypeNode(Wr),At(sr.attributes,nn,l3),At(sr.qualifier,nn,uh),Bn(sr.typeArguments,nn,Wo),sr.isTypeOf)}if(Vp(sr)&&sr.name.kind===168&&!n.hasLateBindableName(sr)){if(!$T(sr))return Wa(sr,nn);if(n.shouldRemoveDeclaration(Se,sr))return}if(Rs(sr)&&!sr.type||ps(sr)&&!sr.type&&!sr.initializer||Zm(sr)&&!sr.type&&!sr.initializer||wa(sr)&&!sr.type&&!sr.initializer){let Ht=Wa(sr,nn);return Ht===sr&&(Ht=n.markNodeReuse(Se,W.cloneNode(sr),sr)),Ht.type=W.createKeywordTypeNode(133),wa(sr)&&(Ht.modifiers=void 0),Ht}if(gP(sr)){let Ht=Qn(sr);return Ht||(Kt(),sr)}if(dc(sr)&&ru(sr.expression)){let{node:Ht,introducesError:Wr}=n.trackExistingEntityName(Se,sr.expression);if(Wr){let ai=n.serializeTypeOfExpression(Se,sr.expression),vo;if(bE(ai))vo=ai.literal;else{let Eo=n.evaluateEntityNameExpression(sr.expression),ya=typeof Eo.value=="string"?W.createStringLiteral(Eo.value,void 0):typeof Eo.value=="number"?W.createNumericLiteral(Eo.value,0):void 0;if(!ya)return AS(ai)&&n.trackComputedName(Se,sr.expression),sr;vo=ya}return vo.kind===11&&Jd(vo.text,$c(t))?W.createIdentifier(vo.text):vo.kind===9&&!vo.text.startsWith("-")?vo:W.updateComputedPropertyName(sr,vo)}else return W.updateComputedPropertyName(sr,Ht)}if(gF(sr)){let Ht;if(ct(sr.parameterName)){let{node:Wr,introducesError:ai}=n.trackExistingEntityName(Se,sr.parameterName);ai&&Kt(),Ht=Wr}else Ht=W.cloneNode(sr.parameterName);return W.updateTypePredicateNode(sr,W.cloneNode(sr.assertsModifier),Ht,At(sr.type,nn,Wo))}if(yF(sr)||fh(sr)||o3(sr)){let Ht=Wa(sr,nn),Wr=n.markNodeReuse(Se,Ht===sr?W.cloneNode(sr):Ht,sr),ai=Xc(Wr);return Ai(Wr,ai|(Se.flags&1024&&fh(sr)?0:1)),Wr}if(Ic(sr)&&Se.flags&268435456&&!sr.singleQuote){let Ht=W.cloneNode(sr);return Ht.singleQuote=!0,Ht}if(yP(sr)){let Ht=At(sr.checkType,nn,Wo),Wr=n.enterNewScope(Se,sr),ai=At(sr.extendsType,nn,Wo),vo=At(sr.trueType,nn,Wo);Wr();let Eo=At(sr.falseType,nn,Wo);return W.updateConditionalTypeNode(sr,Ht,ai,vo,Eo)}if(bA(sr)){if(sr.operator===158&&sr.type.kind===155){if(!n.canReuseTypeNode(Se,sr))return Kt(),sr}else if(sr.operator===143){let Ht=Dr(sr);return Ht||(Kt(),sr)}}return Wa(sr,nn);function Wa(Ht,Wr){let ai=!Se.enclosingFile||Se.enclosingFile!==Pn(Ht);return Dn(Ht,Wr,void 0,ai?oo:void 0)}function oo(Ht,Wr,ai,vo,Eo){let ya=Bn(Ht,Wr,ai,vo,Eo);return ya&&(ya.pos!==-1||ya.end!==-1)&&(ya===Ht&&(ya=W.createNodeArray(Ht.slice(),Ht.hasTrailingComma)),xv(ya,-1,-1)),ya}function Oi(Ht){return Ht.dotDotDotToken||(Ht.type&&Hne(Ht.type)?W.createToken(26):void 0)}function $o(Ht,Wr){return Ht.name&&ct(Ht.name)&&Ht.name.escapedText==="this"?"this":Oi(Ht)?"args":`arg${Wr}`}function ft(Ht,Wr){let ai=n.getModuleSpecifierOverride(Se,Ht,Wr);return ai?Yi(W.createStringLiteral(ai),Wr):Wr}}}function _(Se,tt,Qe){if(!Se)return;let We;return(!Qe||nt(Se))&&n.canReuseTypeNode(tt,Se)&&(We=u(tt,Se),We!==void 0&&(We=Ve(We,Qe,void 0,tt))),We}function f(Se,tt,Qe,We,St,Kt=St!==void 0){if(!Se||!n.canReuseTypeNodeAnnotation(tt,Qe,Se,We,St)&&(!St||!n.canReuseTypeNodeAnnotation(tt,Qe,Se,We,!1)))return;let Sr;return(!St||nt(Se))&&(Sr=_(Se,tt,St)),Sr!==void 0||!Kt?Sr:(tt.tracker.reportInferenceFallback(Qe),n.serializeExistingTypeNode(tt,Se,St)??W.createKeywordTypeNode(133))}function y(Se,tt,Qe,We){if(!Se)return;let St=_(Se,tt,Qe);return St!==void 0?St:(tt.tracker.reportInferenceFallback(We??Se),n.serializeExistingTypeNode(tt,Se,Qe)??W.createKeywordTypeNode(133))}function g(Se,tt,Qe){return U(Se,tt,Qe)??me(Se,n.getAllAccessorDeclarations(Se),Qe,tt)}function k(Se,tt,Qe,We){let St=be(Se,tt,!1,Qe,We);return St.type!==void 0?St.type:ae(Se,tt,St.reportFallback)}function T(Se,tt,Qe){switch(Se.kind){case 170:case 342:return G(Se,tt,Qe);case 261:return J(Se,tt,Qe);case 172:case 349:case 173:return Q(Se,tt,Qe);case 209:return re(Se,tt,Qe);case 278:return k(Se.expression,Qe,void 0,!0);case 212:case 213:case 227:return Z(Se,tt,Qe);case 304:case 305:return C(Se,tt,Qe);default:$.assertNever(Se,`Node needs to be an inferrable node, found ${$.formatSyntaxKind(Se.kind)}`)}}function C(Se,tt,Qe){let We=X_(Se),St;if(We&&n.canReuseTypeNodeAnnotation(Qe,Se,We,tt)&&(St=_(We,Qe)),!St&&Se.kind===304){let Kt=Se.initializer,Sr=EP(Kt)?CL(Kt):Kt.kind===235||Kt.kind===217?Kt.type:void 0;Sr&&!z1(Sr)&&n.canReuseTypeNodeAnnotation(Qe,Se,Sr,tt)&&(St=_(Sr,Qe))}return St??re(Se,tt,Qe,!1)}function O(Se,tt,Qe){switch(Se.kind){case 178:return g(Se,tt,Qe);case 175:case 263:case 181:case 174:case 180:case 177:case 179:case 182:case 185:case 186:case 219:case 220:case 318:case 324:return It(Se,tt,Qe);default:$.assertNever(Se,`Node needs to be an inferrable node, found ${$.formatSyntaxKind(Se.kind)}`)}}function F(Se){if(Se)return Se.kind===178?Ei(Se)&&hv(Se)||jg(Se):ghe(Se)}function M(Se,tt){let Qe=F(Se);return!Qe&&Se!==tt.firstAccessor&&(Qe=F(tt.firstAccessor)),!Qe&&tt.secondAccessor&&Se!==tt.secondAccessor&&(Qe=F(tt.secondAccessor)),Qe}function U(Se,tt,Qe){let We=n.getAllAccessorDeclarations(Se),St=M(Se,We);if(St&&!gF(St))return le(Qe,Se,()=>f(St,Qe,Se,tt)??re(Se,tt,Qe));if(We.getAccessor)return le(Qe,We.getAccessor,()=>It(We.getAccessor,tt,Qe))}function J(Se,tt,Qe){var We;let St=X_(Se),Kt=Jz;return St?Kt=LS(f(St,Qe,Se,tt)):Se.initializer&&(((We=tt.declarations)==null?void 0:We.length)===1||Lo(tt.declarations,Oo)===1)&&!n.isExpandoFunctionDeclaration(Se)&&!_t(Se)&&(Kt=be(Se.initializer,Qe,void 0,void 0,m6e(Se))),Kt.type!==void 0?Kt.type:re(Se,tt,Qe,Kt.reportFallback)}function G(Se,tt,Qe){let We=Se.parent;if(We.kind===179)return g(We,void 0,Qe);let St=X_(Se),Kt=n.requiresAddingImplicitUndefined(Se,tt,Qe.enclosingDeclaration),Sr=Jz;return St?Sr=LS(f(St,Qe,Se,tt,Kt)):wa(Se)&&Se.initializer&&ct(Se.name)&&!_t(Se)&&(Sr=be(Se.initializer,Qe,void 0,Kt)),Sr.type!==void 0?Sr.type:re(Se,tt,Qe,Sr.reportFallback)}function Z(Se,tt,Qe){let We=X_(Se),St;We&&(St=f(We,Qe,Se,tt));let Kt=Qe.suppressReportInferenceFallback;Qe.suppressReportInferenceFallback=!0;let Sr=St??re(Se,tt,Qe,!1);return Qe.suppressReportInferenceFallback=Kt,Sr}function Q(Se,tt,Qe){let We=X_(Se),St=n.requiresAddingImplicitUndefined(Se,tt,Qe.enclosingDeclaration),Kt=Jz;if(We)Kt=LS(f(We,Qe,Se,tt,St));else{let Sr=ps(Se)?Se.initializer:void 0;if(Sr&&!_t(Se)){let nn=kG(Se);Kt=be(Sr,Qe,void 0,St,nn)}}return Kt.type!==void 0?Kt.type:re(Se,tt,Qe,Kt.reportFallback)}function re(Se,tt,Qe,We=!0){return We&&Qe.tracker.reportInferenceFallback(Se),Qe.noInferenceFallback===!0?W.createKeywordTypeNode(133):n.serializeTypeOfDeclaration(Qe,Se,tt)}function ae(Se,tt,Qe=!0,We){return $.assert(!We),Qe&&tt.tracker.reportInferenceFallback(Se),tt.noInferenceFallback===!0?W.createKeywordTypeNode(133):n.serializeTypeOfExpression(tt,Se)??W.createKeywordTypeNode(133)}function _e(Se,tt,Qe,We){return We&&tt.tracker.reportInferenceFallback(Se),tt.noInferenceFallback===!0?W.createKeywordTypeNode(133):n.serializeReturnTypeForSignature(tt,Se,Qe)??W.createKeywordTypeNode(133)}function me(Se,tt,Qe,We,St=!0){return Se.kind===178?It(Se,We,Qe,St):(St&&Qe.tracker.reportInferenceFallback(Se),(tt.getAccessor&&It(tt.getAccessor,We,Qe,St))??n.serializeTypeOfDeclaration(Qe,Se,We)??W.createKeywordTypeNode(133))}function le(Se,tt,Qe){let We=n.enterNewScope(Se,tt),St=Qe();return We(),St}function Oe(Se,tt,Qe,We){return z1(tt)?be(Se,Qe,!0,We):LS(y(tt,Qe,We))}function be(Se,tt,Qe=!1,We=!1,St=!1){switch(Se.kind){case 218:return EP(Se)?Oe(Se.expression,CL(Se),tt,We):be(Se.expression,tt,Qe,We);case 80:if(n.isUndefinedIdentifierExpression(Se))return LS(ve());break;case 106:return LS(a?Ve(W.createLiteralTypeNode(W.createNull()),We,Se,tt):W.createKeywordTypeNode(133));case 220:case 219:return $.type(Se),le(tt,Se,()=>ue(Se,tt));case 217:case 235:let Kt=Se;return Oe(Kt.expression,Kt.type,tt,We);case 225:let Sr=Se;if(Dne(Sr))return Le(Sr.operator===40?Sr.operand:Sr,Sr.operand.kind===10?163:150,tt,Qe||St,We);break;case 210:return Ce(Se,tt,Qe,We);case 211:return Fe(Se,tt,Qe,We);case 232:return LS(ae(Se,tt,!0,We));case 229:if(!Qe&&!St)return LS(W.createKeywordTypeNode(154));break;default:let nn,Nn=Se;switch(Se.kind){case 9:nn=150;break;case 15:Nn=W.createStringLiteral(Se.text),nn=154;break;case 11:nn=154;break;case 10:nn=163;break;case 112:case 97:nn=136;break}if(nn)return Le(Nn,nn,tt,Qe||St,We)}return Jz}function ue(Se,tt){let Qe=It(Se,void 0,tt),We=ze(Se.typeParameters,tt),St=Se.parameters.map(Kt=>de(Kt,tt));return LS(W.createFunctionTypeNode(We,St,Qe))}function De(Se,tt,Qe){if(!Qe)return tt.tracker.reportInferenceFallback(Se),!1;for(let We of Se.elements)if(We.kind===231)return tt.tracker.reportInferenceFallback(We),!1;return!0}function Ce(Se,tt,Qe,We){if(!De(Se,tt,Qe))return We||Vd(V1(Se).parent)?mft:LS(ae(Se,tt,!1,We));let St=tt.noInferenceFallback;tt.noInferenceFallback=!0;let Kt=[];for(let nn of Se.elements)if($.assert(nn.kind!==231),nn.kind===233)Kt.push(ve());else{let Nn=be(nn,tt,Qe),$t=Nn.type!==void 0?Nn.type:ae(nn,tt,Nn.reportFallback);Kt.push($t)}let Sr=W.createTupleTypeNode(Kt);return Sr.emitNode={flags:1,autoGenerate:void 0,internalFlags:0},tt.noInferenceFallback=St,fft}function Ae(Se,tt){let Qe=!0;for(let We of Se.properties){if(We.flags&262144){Qe=!1;break}if(We.kind===305||We.kind===306)tt.tracker.reportInferenceFallback(We),Qe=!1;else if(We.name.flags&262144){Qe=!1;break}else if(We.name.kind===81)Qe=!1;else if(We.name.kind===168){let St=We.name.expression;!Dne(St,!1)&&!n.isDefinitelyReferenceToGlobalSymbolObject(St)&&(tt.tracker.reportInferenceFallback(We.name),Qe=!1)}}return Qe}function Fe(Se,tt,Qe,We){if(!Ae(Se,tt))return We||Vd(V1(Se).parent)?mft:LS(ae(Se,tt,!1,We));let St=tt.noInferenceFallback;tt.noInferenceFallback=!0;let Kt=[],Sr=tt.flags;tt.flags|=4194304;for(let Nn of Se.properties){$.assert(!im(Nn)&&!qx(Nn));let $t=Nn.name,Dr;switch(Nn.kind){case 175:Dr=le(tt,Nn,()=>ut(Nn,$t,tt,Qe));break;case 304:Dr=Be(Nn,$t,tt,Qe);break;case 179:case 178:Dr=je(Nn,$t,tt);break}Dr&&(Y_(Dr,Nn),Kt.push(Dr))}tt.flags=Sr;let nn=W.createTypeLiteralNode(Kt);return tt.flags&1024||Ai(nn,1),tt.noInferenceFallback=St,fft}function Be(Se,tt,Qe,We){let St=We?[W.createModifier(148)]:[],Kt=be(Se.initializer,Qe,We),Sr=Kt.type!==void 0?Kt.type:re(Se,void 0,Qe,Kt.reportFallback);return W.createPropertySignature(St,c(Qe,tt),void 0,Sr)}function de(Se,tt){return W.updateParameterDeclaration(Se,void 0,c(tt,Se.dotDotDotToken),n.serializeNameOfParameter(tt,Se),n.isOptionalParameter(Se)?W.createToken(58):void 0,G(Se,void 0,tt),void 0)}function ze(Se,tt){return Se?.map(Qe=>{var We;let{node:St}=n.trackExistingEntityName(tt,Qe.name);return W.updateTypeParameterDeclaration(Qe,(We=Qe.modifiers)==null?void 0:We.map(Kt=>c(tt,Kt)),St,y(Qe.constraint,tt),y(Qe.default,tt))})}function ut(Se,tt,Qe,We){let St=It(Se,void 0,Qe),Kt=ze(Se.typeParameters,Qe),Sr=Se.parameters.map(nn=>de(nn,Qe));return We?W.createPropertySignature([W.createModifier(148)],c(Qe,tt),c(Qe,Se.questionToken),W.createFunctionTypeNode(Kt,Sr,St)):(ct(tt)&&tt.escapedText==="new"&&(tt=W.createStringLiteral("new")),W.createMethodSignature([],c(Qe,tt),c(Qe,Se.questionToken),Kt,Sr,St))}function je(Se,tt,Qe){let We=n.getAllAccessorDeclarations(Se),St=We.getAccessor&&F(We.getAccessor),Kt=We.setAccessor&&F(We.setAccessor);if(St!==void 0&&Kt!==void 0)return le(Qe,Se,()=>{let Sr=Se.parameters.map(nn=>de(nn,Qe));return Ax(Se)?W.updateGetAccessorDeclaration(Se,[],c(Qe,tt),Sr,y(St,Qe),void 0):W.updateSetAccessorDeclaration(Se,[],c(Qe,tt),Sr,void 0)});if(We.firstAccessor===Se){let nn=(St?le(Qe,We.getAccessor,()=>y(St,Qe)):Kt?le(Qe,We.setAccessor,()=>y(Kt,Qe)):void 0)??me(Se,We,Qe,void 0);return W.createPropertySignature(We.setAccessor===void 0?[W.createModifier(148)]:[],c(Qe,tt),void 0,nn)}}function ve(){return a?W.createKeywordTypeNode(157):W.createKeywordTypeNode(133)}function Le(Se,tt,Qe,We,St){let Kt;return We?(Se.kind===225&&Se.operator===40&&(Kt=W.createLiteralTypeNode(c(Qe,Se.operand))),Kt=W.createLiteralTypeNode(c(Qe,Se))):Kt=W.createKeywordTypeNode(tt),LS(Ve(Kt,St,Se,Qe))}function Ve(Se,tt,Qe,We){let St=Qe&&V1(Qe).parent,Kt=St&&Vd(St)&&sF(St);return!a||!(tt||Kt)?Se:(nt(Se)||We.tracker.reportInferenceFallback(Se),SE(Se)?W.createUnionTypeNode([...Se.types,W.createKeywordTypeNode(157)]):W.createUnionTypeNode([Se,W.createKeywordTypeNode(157)]))}function nt(Se){return!a||Uh(Se.kind)||Se.kind===202||Se.kind===185||Se.kind===186||Se.kind===189||Se.kind===190||Se.kind===188||Se.kind===204||Se.kind===198?!0:Se.kind===197?nt(Se.type):Se.kind===193||Se.kind===194?Se.types.every(nt):!1}function It(Se,tt,Qe,We=!0){let St=Jz,Kt=WO(Se)?X_(Se.parameters[0]):jg(Se);return Kt?St=LS(f(Kt,Qe,Se,tt)):G4(Se)&&(St=ke(Se,Qe)),St.type!==void 0?St.type:_e(Se,Qe,tt,We&&St.reportFallback&&!Kt)}function ke(Se,tt){let Qe;if(Se&&!Op(Se.body)){if(A_(Se)&3)return Jz;let St=Se.body;St&&Vs(St)?sC(St,Kt=>{if(Kt.parent!==St)return Qe=void 0,!0;if(!Qe)Qe=Kt.expression;else return Qe=void 0,!0}):Qe=St}if(Qe)if(_t(Qe)){let We=EP(Qe)?CL(Qe):gL(Qe)||qne(Qe)?Qe.type:void 0;if(We&&!z1(We))return LS(_(We,tt))}else return be(Qe,tt);return Jz}function _t(Se){return fn(Se.parent,tt=>Js(tt)||!lu(tt)&&!!X_(tt)||PS(tt)||SL(tt))}}var wC={};d(wC,{NameValidationResult:()=>xft,discoverTypings:()=>Bcr,isTypingUpToDate:()=>Sft,loadSafeList:()=>Mcr,loadTypesMap:()=>jcr,nonRelativeModuleNameForTypingCache:()=>bft,renderPackageNameValidationFailure:()=>Ucr,validatePackageName:()=>$cr});var xoe="action::set",Toe="action::invalidate",Eoe="action::packageInstalled",C1e="event::typesRegistry",D1e="event::beginInstallTypes",A1e="event::endInstallTypes",FFe="event::initializationFailed",jK="action::watchTypingLocations",w1e;(t=>{t.GlobalCacheLocation="--globalTypingsCacheLocation",t.LogFile="--logFile",t.EnableTelemetry="--enableTelemetry",t.TypingSafeListLocation="--typingSafeListLocation",t.TypesMapLocation="--typesMapLocation",t.NpmLocation="--npmLocation",t.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(w1e||(w1e={}));function hft(t){return f_.args.includes(t)}function gft(t){let n=f_.args.indexOf(t);return n>=0&&nt.readFile(c));return new Map(Object.entries(a.config))}function jcr(t,n){var a;let c=nK(n,u=>t.readFile(u));if((a=c.config)!=null&&a.simpleMap)return new Map(Object.entries(c.config.simpleMap))}function Bcr(t,n,a,c,u,_,f,y,g,k){if(!f||!f.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let T=new Map;a=Wn(a,re=>{let ae=Qs(re);if(jx(ae))return ae});let C=[];f.include&&G(f.include,"Explicitly included types");let O=f.exclude||[];if(!k.types){let re=new Set(a.map(mo));re.add(c),re.forEach(ae=>{Z(ae,"bower.json","bower_components",C),Z(ae,"package.json","node_modules",C)})}if(f.disableFilenameBasedTypeAcquisition||Q(a),y){let re=rf(y.map(bft),qm,Su);G(re,"Inferred typings from unresolved imports")}for(let re of O)T.delete(re)&&n&&n(`Typing for ${re} is in exclude list, will be ignored.`);_.forEach((re,ae)=>{let _e=g.get(ae);T.get(ae)===!1&&_e!==void 0&&Sft(re,_e)&&T.set(ae,re.typingLocation)});let F=[],M=[];T.forEach((re,ae)=>{re?M.push(re):F.push(ae)});let U={cachedTypingPaths:M,newTypingNames:F,filesToWatch:C};return n&&n(`Finished typings discovery:${jA(U)}`),U;function J(re){T.has(re)||T.set(re,!1)}function G(re,ae){n&&n(`${ae}: ${JSON.stringify(re)}`),X(re,J)}function Z(re,ae,_e,me){let le=Xi(re,ae),Oe,be;t.fileExists(le)&&(me.push(le),Oe=nK(le,Ae=>t.readFile(Ae)).config,be=an([Oe.dependencies,Oe.devDependencies,Oe.optionalDependencies,Oe.peerDependencies],Lu),G(be,`Typing names in '${le}' dependencies`));let ue=Xi(re,_e);if(me.push(ue),!t.directoryExists(ue))return;let De=[],Ce=be?be.map(Ae=>Xi(ue,Ae,ae)):t.readDirectory(ue,[".json"],void 0,void 0,3).filter(Ae=>{if(t_(Ae)!==ae)return!1;let Fe=Cd(Qs(Ae)),Be=Fe[Fe.length-3][0]==="@";return Be&&lb(Fe[Fe.length-4])===_e||!Be&&lb(Fe[Fe.length-3])===_e});n&&n(`Searching for typing names in ${ue}; all files: ${JSON.stringify(Ce)}`);for(let Ae of Ce){let Fe=Qs(Ae),de=nK(Fe,ut=>t.readFile(ut)).config;if(!de.name)continue;let ze=de.types||de.typings;if(ze){let ut=za(ze,mo(Fe));t.fileExists(ut)?(n&&n(` Package '${de.name}' provides its own types.`),T.set(de.name,ut)):n&&n(` Package '${de.name}' provides its own types but they are missing.`)}else De.push(de.name)}G(De," Found package names")}function Q(re){let ae=Wn(re,me=>{if(!jx(me))return;let le=Qm(lb(t_(me))),Oe=C9(le);return u.get(Oe)});ae.length&&G(ae,"Inferred typings from file names"),Pt(re,me=>Au(me,".jsx"))&&(n&&n("Inferred 'react' typings due to presence of '.jsx' extension"),J("react"))}}var xft=(t=>(t[t.Ok=0]="Ok",t[t.EmptyName=1]="EmptyName",t[t.NameTooLong=2]="NameTooLong",t[t.NameStartsWithDot=3]="NameStartsWithDot",t[t.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",t[t.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",t))(xft||{}),Tft=214;function $cr(t){return RFe(t,!0)}function RFe(t,n){if(!t)return 1;if(t.length>Tft)return 2;if(t.charCodeAt(0)===46)return 3;if(t.charCodeAt(0)===95)return 4;if(n){let a=/^@([^/]+)\/([^/]+)$/.exec(t);if(a){let c=RFe(a[1],!1);if(c!==0)return{name:a[1],isScopeName:!0,result:c};let u=RFe(a[2],!1);return u!==0?{name:a[2],isScopeName:!1,result:u}:0}}return encodeURIComponent(t)!==t?5:0}function Ucr(t,n){return typeof t=="object"?Eft(n,t.result,t.name,t.isScopeName):Eft(n,t,n,!1)}function Eft(t,n,a,c){let u=c?"Scope":"Package";switch(n){case 1:return`'${t}':: ${u} name '${a}' cannot be empty`;case 2:return`'${t}':: ${u} name '${a}' should be less than ${Tft} characters`;case 3:return`'${t}':: ${u} name '${a}' cannot start with '.'`;case 4:return`'${t}':: ${u} name '${a}' cannot start with '_'`;case 5:return`'${t}':: ${u} name '${a}' contains non URI safe characters`;case 0:return $.fail();default:$.assertNever(n)}}var koe;(t=>{class n{constructor(u){this.text=u}getText(u,_){return u===0&&_===this.text.length?this.text:this.text.substring(u,_)}getLength(){return this.text.length}getChangeRange(){}}function a(c){return new n(c)}t.fromString=a})(koe||(koe={}));var LFe=(t=>(t[t.Dependencies=1]="Dependencies",t[t.DevDependencies=2]="DevDependencies",t[t.PeerDependencies=4]="PeerDependencies",t[t.OptionalDependencies=8]="OptionalDependencies",t[t.All=15]="All",t))(LFe||{}),MFe=(t=>(t[t.Off=0]="Off",t[t.On=1]="On",t[t.Auto=2]="Auto",t))(MFe||{}),jFe=(t=>(t[t.Semantic=0]="Semantic",t[t.PartialSemantic=1]="PartialSemantic",t[t.Syntactic=2]="Syntactic",t))(jFe||{}),u1={},BFe=(t=>(t.Original="original",t.TwentyTwenty="2020",t))(BFe||{}),I1e=(t=>(t.All="All",t.SortAndCombine="SortAndCombine",t.RemoveUnused="RemoveUnused",t))(I1e||{}),P1e=(t=>(t[t.Invoked=1]="Invoked",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",t))(P1e||{}),$Fe=(t=>(t.Type="Type",t.Parameter="Parameter",t.Enum="Enum",t))($Fe||{}),UFe=(t=>(t.none="none",t.definition="definition",t.reference="reference",t.writtenReference="writtenReference",t))(UFe||{}),zFe=(t=>(t[t.None=0]="None",t[t.Block=1]="Block",t[t.Smart=2]="Smart",t))(zFe||{}),N1e=(t=>(t.Ignore="ignore",t.Insert="insert",t.Remove="remove",t))(N1e||{});function Coe(t){return{indentSize:4,tabSize:4,newLineCharacter:t||` +`,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var kft=Coe(` +`),Doe=(t=>(t[t.aliasName=0]="aliasName",t[t.className=1]="className",t[t.enumName=2]="enumName",t[t.fieldName=3]="fieldName",t[t.interfaceName=4]="interfaceName",t[t.keyword=5]="keyword",t[t.lineBreak=6]="lineBreak",t[t.numericLiteral=7]="numericLiteral",t[t.stringLiteral=8]="stringLiteral",t[t.localName=9]="localName",t[t.methodName=10]="methodName",t[t.moduleName=11]="moduleName",t[t.operator=12]="operator",t[t.parameterName=13]="parameterName",t[t.propertyName=14]="propertyName",t[t.punctuation=15]="punctuation",t[t.space=16]="space",t[t.text=17]="text",t[t.typeParameterName=18]="typeParameterName",t[t.enumMemberName=19]="enumMemberName",t[t.functionName=20]="functionName",t[t.regularExpressionLiteral=21]="regularExpressionLiteral",t[t.link=22]="link",t[t.linkName=23]="linkName",t[t.linkText=24]="linkText",t))(Doe||{}),qFe=(t=>(t[t.None=0]="None",t[t.MayIncludeAutoImports=1]="MayIncludeAutoImports",t[t.IsImportStatementCompletion=2]="IsImportStatementCompletion",t[t.IsContinuation=4]="IsContinuation",t[t.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",t[t.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",t[t.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",t))(qFe||{}),JFe=(t=>(t.Comment="comment",t.Region="region",t.Code="code",t.Imports="imports",t))(JFe||{}),VFe=(t=>(t[t.JavaScript=0]="JavaScript",t[t.SourceMap=1]="SourceMap",t[t.Declaration=2]="Declaration",t))(VFe||{}),WFe=(t=>(t[t.None=0]="None",t[t.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",t[t.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",t[t.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",t[t.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",t[t.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",t[t.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",t))(WFe||{}),GFe=(t=>(t[t.Punctuation=0]="Punctuation",t[t.Keyword=1]="Keyword",t[t.Operator=2]="Operator",t[t.Comment=3]="Comment",t[t.Whitespace=4]="Whitespace",t[t.Identifier=5]="Identifier",t[t.NumberLiteral=6]="NumberLiteral",t[t.BigIntLiteral=7]="BigIntLiteral",t[t.StringLiteral=8]="StringLiteral",t[t.RegExpLiteral=9]="RegExpLiteral",t))(GFe||{}),HFe=(t=>(t.unknown="",t.warning="warning",t.keyword="keyword",t.scriptElement="script",t.moduleElement="module",t.classElement="class",t.localClassElement="local class",t.interfaceElement="interface",t.typeElement="type",t.enumElement="enum",t.enumMemberElement="enum member",t.variableElement="var",t.localVariableElement="local var",t.variableUsingElement="using",t.variableAwaitUsingElement="await using",t.functionElement="function",t.localFunctionElement="local function",t.memberFunctionElement="method",t.memberGetAccessorElement="getter",t.memberSetAccessorElement="setter",t.memberVariableElement="property",t.memberAccessorVariableElement="accessor",t.constructorImplementationElement="constructor",t.callSignatureElement="call",t.indexSignatureElement="index",t.constructSignatureElement="construct",t.parameterElement="parameter",t.typeParameterElement="type parameter",t.primitiveType="primitive type",t.label="label",t.alias="alias",t.constElement="const",t.letElement="let",t.directory="directory",t.externalModuleName="external module name",t.jsxAttribute="JSX attribute",t.string="string",t.link="link",t.linkName="link name",t.linkText="link text",t))(HFe||{}),KFe=(t=>(t.none="",t.publicMemberModifier="public",t.privateMemberModifier="private",t.protectedMemberModifier="protected",t.exportedModifier="export",t.ambientModifier="declare",t.staticModifier="static",t.abstractModifier="abstract",t.optionalModifier="optional",t.deprecatedModifier="deprecated",t.dtsModifier=".d.ts",t.tsModifier=".ts",t.tsxModifier=".tsx",t.jsModifier=".js",t.jsxModifier=".jsx",t.jsonModifier=".json",t.dmtsModifier=".d.mts",t.mtsModifier=".mts",t.mjsModifier=".mjs",t.dctsModifier=".d.cts",t.ctsModifier=".cts",t.cjsModifier=".cjs",t))(KFe||{}),QFe=(t=>(t.comment="comment",t.identifier="identifier",t.keyword="keyword",t.numericLiteral="number",t.bigintLiteral="bigint",t.operator="operator",t.stringLiteral="string",t.whiteSpace="whitespace",t.text="text",t.punctuation="punctuation",t.className="class name",t.enumName="enum name",t.interfaceName="interface name",t.moduleName="module name",t.typeParameterName="type parameter name",t.typeAliasName="type alias name",t.parameterName="parameter name",t.docCommentTagName="doc comment tag name",t.jsxOpenTagName="jsx open tag name",t.jsxCloseTagName="jsx close tag name",t.jsxSelfClosingTagName="jsx self closing tag name",t.jsxAttribute="jsx attribute",t.jsxText="jsx text",t.jsxAttributeStringLiteralValue="jsx attribute string literal value",t))(QFe||{}),O1e=(t=>(t[t.comment=1]="comment",t[t.identifier=2]="identifier",t[t.keyword=3]="keyword",t[t.numericLiteral=4]="numericLiteral",t[t.operator=5]="operator",t[t.stringLiteral=6]="stringLiteral",t[t.regularExpressionLiteral=7]="regularExpressionLiteral",t[t.whiteSpace=8]="whiteSpace",t[t.text=9]="text",t[t.punctuation=10]="punctuation",t[t.className=11]="className",t[t.enumName=12]="enumName",t[t.interfaceName=13]="interfaceName",t[t.moduleName=14]="moduleName",t[t.typeParameterName=15]="typeParameterName",t[t.typeAliasName=16]="typeAliasName",t[t.parameterName=17]="parameterName",t[t.docCommentTagName=18]="docCommentTagName",t[t.jsxOpenTagName=19]="jsxOpenTagName",t[t.jsxCloseTagName=20]="jsxCloseTagName",t[t.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",t[t.jsxAttribute=22]="jsxAttribute",t[t.jsxText=23]="jsxText",t[t.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",t[t.bigintLiteral=25]="bigintLiteral",t))(O1e||{}),wf=B1(99,!0),ZFe=(t=>(t[t.None=0]="None",t[t.Value=1]="Value",t[t.Type=2]="Type",t[t.Namespace=4]="Namespace",t[t.All=7]="All",t))(ZFe||{});function Aoe(t){switch(t.kind){case 261:return Ei(t)&&U1(t)?7:1;case 170:case 209:case 173:case 172:case 304:case 305:case 175:case 174:case 177:case 178:case 179:case 263:case 219:case 220:case 300:case 292:return 1;case 169:case 265:case 266:case 188:return 2;case 347:return t.name===void 0?3:2;case 307:case 264:return 3;case 268:return Gm(t)||KT(t)===1?5:4;case 267:case 276:case 277:case 272:case 273:case 278:case 279:return 7;case 308:return 5}return 7}function x3(t){t=W1e(t);let n=t.parent;return t.kind===308?1:Xu(n)||Cm(n)||WT(n)||Xm(n)||H1(n)||gd(n)&&t===n.name?7:woe(t)?zcr(t):Eb(t)?Aoe(n):uh(t)&&fn(t,jf(fz,RO,wA))?7:Wcr(t)?2:qcr(t)?4:Zu(n)?($.assert(c1(n.parent)),2):bE(n)?3:1}function zcr(t){let n=t.kind===167?t:dh(t.parent)&&t.parent.right===t?t.parent:void 0;return n&&n.parent.kind===272?7:4}function woe(t){if(!t.parent)return!1;for(;t.parent.kind===167;)t=t.parent;return z4(t.parent)&&t.parent.moduleReference===t}function qcr(t){return Jcr(t)||Vcr(t)}function Jcr(t){let n=t,a=!0;if(n.parent.kind===167){for(;n.parent&&n.parent.kind===167;)n=n.parent;a=n.right===t}return n.parent.kind===184&&!a}function Vcr(t){let n=t,a=!0;if(n.parent.kind===212){for(;n.parent&&n.parent.kind===212;)n=n.parent;a=n.name===t}if(!a&&n.parent.kind===234&&n.parent.parent.kind===299){let c=n.parent.parent.parent;return c.kind===264&&n.parent.parent.token===119||c.kind===265&&n.parent.parent.token===96}return!1}function Wcr(t){switch(FU(t)&&(t=t.parent),t.kind){case 110:return!Tb(t);case 198:return!0}switch(t.parent.kind){case 184:return!0;case 206:return!t.parent.isTypeOf;case 234:return vS(t.parent)}return!1}function F1e(t,n=!1,a=!1){return BK(t,Js,L1e,n,a)}function Wz(t,n=!1,a=!1){return BK(t,SP,L1e,n,a)}function R1e(t,n=!1,a=!1){return BK(t,mS,L1e,n,a)}function XFe(t,n=!1,a=!1){return BK(t,xA,Gcr,n,a)}function YFe(t,n=!1,a=!1){return BK(t,hd,L1e,n,a)}function e7e(t,n=!1,a=!1){return BK(t,Em,Hcr,n,a)}function L1e(t){return t.expression}function Gcr(t){return t.tag}function Hcr(t){return t.tagName}function BK(t,n,a,c,u){let _=c?Kcr(t):Ioe(t);return u&&(_=Wp(_)),!!_&&!!_.parent&&n(_.parent)&&a(_.parent)===_}function Ioe(t){return WL(t)?t.parent:t}function Kcr(t){return WL(t)||$1e(t)?t.parent:t}function Poe(t,n){for(;t;){if(t.kind===257&&t.label.escapedText===n)return t.label;t=t.parent}}function $K(t,n){return no(t.expression)?t.expression.name.text===n:!1}function UK(t){var n;return ct(t)&&((n=Ci(t.parent,tU))==null?void 0:n.label)===t}function M1e(t){var n;return ct(t)&&((n=Ci(t.parent,bC))==null?void 0:n.label)===t}function j1e(t){return M1e(t)||UK(t)}function B1e(t){var n;return((n=Ci(t.parent,MR))==null?void 0:n.tagName)===t}function t7e(t){var n;return((n=Ci(t.parent,dh))==null?void 0:n.right)===t}function WL(t){var n;return((n=Ci(t.parent,no))==null?void 0:n.name)===t}function $1e(t){var n;return((n=Ci(t.parent,mu))==null?void 0:n.argumentExpression)===t}function U1e(t){var n;return((n=Ci(t.parent,I_))==null?void 0:n.name)===t}function z1e(t){var n;return ct(t)&&((n=Ci(t.parent,Rs))==null?void 0:n.name)===t}function Noe(t){switch(t.parent.kind){case 173:case 172:case 304:case 307:case 175:case 174:case 178:case 179:case 268:return cs(t.parent)===t;case 213:return t.parent.argumentExpression===t;case 168:return!0;case 202:return t.parent.parent.kind===200;default:return!1}}function r7e(t){return pA(t.parent.parent)&&hU(t.parent.parent)===t}function T3(t){for(n1(t)&&(t=t.parent.parent);;){if(t=t.parent,!t)return;switch(t.kind){case 308:case 175:case 174:case 263:case 219:case 178:case 179:case 264:case 265:case 267:case 268:return t}}}function NP(t){switch(t.kind){case 308:return yd(t)?"module":"script";case 268:return"module";case 264:case 232:return"class";case 265:return"interface";case 266:case 339:case 347:return"type";case 267:return"enum";case 261:return n(t);case 209:return n(bS(t));case 220:case 263:case 219:return"function";case 178:return"getter";case 179:return"setter";case 175:case 174:return"method";case 304:let{initializer:a}=t;return Rs(a)?"method":"property";case 173:case 172:case 305:case 306:return"property";case 182:return"index";case 181:return"construct";case 180:return"call";case 177:case 176:return"constructor";case 169:return"type parameter";case 307:return"enum member";case 170:return ko(t,31)?"property":"parameter";case 272:case 277:case 282:case 275:case 281:return"alias";case 227:let c=m_(t),{right:u}=t;switch(c){case 7:case 8:case 9:case 0:return"";case 1:case 2:let f=NP(u);return f===""?"const":f;case 3:return bu(u)?"method":"property";case 4:return"property";case 5:return bu(u)?"method":"property";case 6:return"local class";default:return""}case 80:return H1(t.parent)?"alias":"";case 278:let _=NP(t.expression);return _===""?"const":_;default:return""}function n(a){return zR(a)?"const":pre(a)?"let":"var"}}function GL(t){switch(t.kind){case 110:return!0;case 80:return hhe(t)&&t.parent.kind===170;default:return!1}}var Qcr=/^\/\/\/\s*=a}function Gz(t,n,a){return Foe(t.pos,t.end,n,a)}function Ooe(t,n,a,c){return Foe(t.getStart(n),t.end,a,c)}function Foe(t,n,a,c){let u=Math.max(t,a),_=Math.min(n,c);return u<_}function q1e(t,n,a){return $.assert(t.pos<=n),nc.kind===n)}function Roe(t){let n=wt(t.parent.getChildren(),a=>kL(a)&&zh(a,t));return $.assert(!n||un(n.getChildren(),t)),n}function Cft(t){return t.kind===90}function Zcr(t){return t.kind===86}function Xcr(t){return t.kind===100}function Ycr(t){if(Vp(t))return t.name;if(ed(t)){let n=t.modifiers&&wt(t.modifiers,Cft);if(n)return n}if(w_(t)){let n=wt(t.getChildren(),Zcr);if(n)return n}}function elr(t){if(Vp(t))return t.name;if(i_(t)){let n=wt(t.modifiers,Cft);if(n)return n}if(bu(t)){let n=wt(t.getChildren(),Xcr);if(n)return n}}function tlr(t){let n;return fn(t,a=>(Wo(a)&&(n=a),!dh(a.parent)&&!Wo(a.parent)&&!KI(a.parent))),n}function Loe(t,n){if(t.flags&16777216)return;let a=Xoe(t,n);if(a)return a;let c=tlr(t);return c&&n.getTypeAtLocation(c)}function rlr(t,n){if(!n)switch(t.kind){case 264:case 232:return Ycr(t);case 263:case 219:return elr(t);case 177:return t}if(Vp(t))return t.name}function Dft(t,n){if(t.importClause){if(t.importClause.name&&t.importClause.namedBindings)return;if(t.importClause.name)return t.importClause.name;if(t.importClause.namedBindings){if(IS(t.importClause.namedBindings)){let a=to(t.importClause.namedBindings.elements);return a?a.name:void 0}else if(zx(t.importClause.namedBindings))return t.importClause.namedBindings.name}}if(!n)return t.moduleSpecifier}function Aft(t,n){if(t.exportClause){if(k0(t.exportClause))return to(t.exportClause.elements)?t.exportClause.elements[0].name:void 0;if(Db(t.exportClause))return t.exportClause.name}if(!n)return t.moduleSpecifier}function nlr(t){if(t.types.length===1)return t.types[0].expression}function wft(t,n){let{parent:a}=t;if(bc(t)&&(n||t.kind!==90)?l1(a)&&un(a.modifiers,t):t.kind===86?ed(a)||w_(t):t.kind===100?i_(a)||bu(t):t.kind===120?Af(a):t.kind===94?CA(a):t.kind===156?s1(a):t.kind===145||t.kind===144?I_(a):t.kind===102?gd(a):t.kind===139?T0(a):t.kind===153&&mg(a)){let c=rlr(a,n);if(c)return c}if((t.kind===115||t.kind===87||t.kind===121)&&Df(a)&&a.declarations.length===1){let c=a.declarations[0];if(ct(c.name))return c.name}if(t.kind===156){if(H1(a)&&a.isTypeOnly){let c=Dft(a.parent,n);if(c)return c}if(P_(a)&&a.isTypeOnly){let c=Aft(a,n);if(c)return c}}if(t.kind===130){if(Xm(a)&&a.propertyName||Cm(a)&&a.propertyName||zx(a)||Db(a))return a.name;if(P_(a)&&a.exportClause&&Db(a.exportClause))return a.exportClause.name}if(t.kind===102&&fp(a)){let c=Dft(a,n);if(c)return c}if(t.kind===95){if(P_(a)){let c=Aft(a,n);if(c)return c}if(Xu(a))return Wp(a.expression)}if(t.kind===149&&WT(a))return a.expression;if(t.kind===161&&(fp(a)||P_(a))&&a.moduleSpecifier)return a.moduleSpecifier;if((t.kind===96||t.kind===119)&&zg(a)&&a.token===t.kind){let c=nlr(a);if(c)return c}if(t.kind===96){if(Zu(a)&&a.constraint&&Ug(a.constraint))return a.constraint.typeName;if(yP(a)&&Ug(a.extendsType))return a.extendsType.typeName}if(t.kind===140&&n3(a))return a.typeParameter.name;if(t.kind===103&&Zu(a)&&o3(a.parent))return a.name;if(t.kind===143&&bA(a)&&a.operator===143&&Ug(a.type))return a.type.typeName;if(t.kind===148&&bA(a)&&a.operator===148&&jH(a.type)&&Ug(a.type.elementType))return a.type.elementType.typeName;if(!n){if((t.kind===105&&SP(a)||t.kind===116&&SF(a)||t.kind===114&&hL(a)||t.kind===135&&SC(a)||t.kind===127&&BH(a)||t.kind===91&&U3e(a))&&a.expression)return Wp(a.expression);if((t.kind===103||t.kind===104)&&wi(a)&&a.operatorToken===t)return Wp(a.right);if(t.kind===130&&gL(a)&&Ug(a.type))return a.type.typeName;if(t.kind===103&&Vne(a)||t.kind===165&&$H(a))return Wp(a.expression)}return t}function W1e(t){return wft(t,!1)}function Moe(t){return wft(t,!0)}function Vh(t,n){return KL(t,n,a=>SS(a)||Uh(a.kind)||Aa(a))}function KL(t,n,a){return Ift(t,n,!1,a,!1)}function la(t,n){return Ift(t,n,!0,void 0,!1)}function Ift(t,n,a,c,u){let _=t,f;e:for(;;){let g=_.getChildren(t),k=Yl(g,n,(T,C)=>C,(T,C)=>{let O=g[T].getEnd();if(On?1:y(g[T],F,O)?g[T-1]&&y(g[T-1])?1:0:c&&F===n&&g[T-1]&&g[T-1].getEnd()===n&&y(g[T-1])?1:-1});if(f)return f;if(k>=0&&g[k]){_=g[k];continue e}return _}function y(g,k,T){if(T??(T=g.getEnd()),Tn))return!1;if(na.getStart(t)&&n(_.pos<=t.pos&&_.end>t.end||_.pos===t.end)&&p7e(_,a)?c(_):void 0)}}function vd(t,n,a,c){let u=_(a||n);return $.assert(!(u&&joe(u))),u;function _(f){if(Pft(f)&&f.kind!==1)return f;let y=f.getChildren(n),g=Yl(y,t,(T,C)=>C,(T,C)=>t=y[T-1].end?0:1:-1);if(g>=0&&y[g]){let T=y[g];if(t=t||!p7e(T,n)||joe(T)){let F=s7e(y,g,n,f.kind);return F?!c&&Kte(F)&&F.getChildren(n).length?_(F):a7e(F,n):void 0}else return _(T)}$.assert(a!==void 0||f.kind===308||f.kind===1||Kte(f));let k=s7e(y,y.length,n,f.kind);return k&&a7e(k,n)}}function Pft(t){return PO(t)&&!joe(t)}function a7e(t,n){if(Pft(t))return t;let a=t.getChildren(n);if(a.length===0)return t;let c=s7e(a,a.length,n,t.kind);return c&&a7e(c,n)}function s7e(t,n,a,c){for(let u=n-1;u>=0;u--){let _=t[u];if(joe(_))u===0&&(c===12||c===286)&&$.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(p7e(t[u],a))return t[u]}}function jF(t,n,a=vd(n,t)){if(a&&ime(a)){let c=a.getStart(t),u=a.getEnd();if(ca.getStart(t)}function l7e(t,n){let a=la(t,n);return!!(_F(a)||a.kind===19&&SL(a.parent)&&PS(a.parent.parent)||a.kind===30&&Em(a.parent)&&PS(a.parent.parent))}function Boe(t,n){function a(c){for(;c;)if(c.kind>=286&&c.kind<=295||c.kind===12||c.kind===30||c.kind===32||c.kind===80||c.kind===20||c.kind===19||c.kind===44)c=c.parent;else if(c.kind===285){if(n>c.getStart(t))return!0;c=c.parent}else return!1;return!1}return a(la(t,n))}function $oe(t,n,a){let c=Zs(t.kind),u=Zs(n),_=t.getFullStart(),f=a.text.lastIndexOf(u,_);if(f===-1)return;if(a.text.lastIndexOf(c,_-1)!!_.typeParameters&&_.typeParameters.length>=n)}function K1e(t,n){if(n.text.lastIndexOf("<",t?t.pos:n.text.length)===-1)return;let a=t,c=0,u=0;for(;a;){switch(a.kind){case 30:if(a=vd(a.getFullStart(),n),a&&a.kind===29&&(a=vd(a.getFullStart(),n)),!a||!ct(a))return;if(!c)return Eb(a)?void 0:{called:a,nTypeArguments:u};c--;break;case 50:c=3;break;case 49:c=2;break;case 32:c++;break;case 20:if(a=$oe(a,19,n),!a)return;break;case 22:if(a=$oe(a,21,n),!a)return;break;case 24:if(a=$oe(a,23,n),!a)return;break;case 28:u++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(Wo(a))break;return}a=vd(a.getFullStart(),n)}}function EE(t,n,a){return rd.getRangeOfEnclosingComment(t,n,void 0,a)}function u7e(t,n){let a=la(t,n);return!!fn(a,kv)}function p7e(t,n){return t.kind===1?!!t.jsDoc:t.getWidth(n)!==0}function Kz(t,n=0){let a=[],c=Vd(t)?_u(t)&~n:0;return c&2&&a.push("private"),c&4&&a.push("protected"),c&1&&a.push("public"),(c&256||n_(t))&&a.push("static"),c&64&&a.push("abstract"),c&32&&a.push("export"),c&65536&&a.push("deprecated"),t.flags&33554432&&a.push("declare"),t.kind===278&&a.push("export"),a.length>0?a.join(","):""}function _7e(t){if(t.kind===184||t.kind===214)return t.typeArguments;if(Rs(t)||t.kind===264||t.kind===265)return t.typeParameters}function Uoe(t){return t===2||t===3}function Q1e(t){return!!(t===11||t===14||Xk(t))}function Nft(t,n,a){return!!(n.flags&4)&&t.isEmptyAnonymousObjectType(a)}function d7e(t){if(!t.isIntersection())return!1;let{types:n,checker:a}=t;return n.length===2&&(Nft(a,n[0],n[1])||Nft(a,n[1],n[0]))}function VK(t,n,a){return Xk(t.kind)&&t.getStart(a){let a=hl(n);return!t[a]&&(t[a]=!0)}}function BF(t){return t.getText(0,t.getLength())}function GK(t,n){let a="";for(let c=0;c!n.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(n)&&!!(n.externalModuleIndicator||n.commonJsModuleIndicator))}function g7e(t){return t.getSourceFiles().some(n=>!n.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(n)&&!!n.externalModuleIndicator)}function ive(t){return!!t.module||$c(t)>=2||!!t.noEmit}function BA(t,n){return{fileExists:a=>t.fileExists(a),getCurrentDirectory:()=>n.getCurrentDirectory(),readFile:ja(n,n.readFile),useCaseSensitiveFileNames:ja(n,n.useCaseSensitiveFileNames)||t.useCaseSensitiveFileNames,getSymlinkCache:ja(n,n.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:ja(n,n.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var a;return(a=t.getModuleResolutionCache())==null?void 0:a.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:ja(n,n.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getRedirectFromSourceFile:a=>t.getRedirectFromSourceFile(a),isSourceOfProjectReferenceRedirect:a=>t.isSourceOfProjectReferenceRedirect(a),getNearestAncestorDirectoryWithPackageJson:ja(n,n.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>t.getFileIncludeReasons(),getCommonSourceDirectory:()=>t.getCommonSourceDirectory(),getDefaultResolutionModeForFile:a=>t.getDefaultResolutionModeForFile(a),getModeForResolutionAtIndex:(a,c)=>t.getModeForResolutionAtIndex(a,c)}}function ove(t,n){return{...BA(t,n),getCommonSourceDirectory:()=>t.getCommonSourceDirectory()}}function Voe(t){return t===2||t>=3&&t<=99||t===100}function IC(t,n,a,c,u){return W.createImportDeclaration(void 0,t||n?W.createImportClause(u?156:void 0,t,n&&n.length?W.createNamedImports(n):void 0):void 0,typeof a=="string"?Zz(a,c):a,void 0)}function Zz(t,n){return W.createStringLiteral(t,n===0)}var y7e=(t=>(t[t.Single=0]="Single",t[t.Double=1]="Double",t))(y7e||{});function ave(t,n){return Dre(t,n)?1:0}function Vg(t,n){if(n.quotePreference&&n.quotePreference!=="auto")return n.quotePreference==="single"?0:1;{let a=Ox(t)&&t.imports&&wt(t.imports,c=>Ic(c)&&!fu(c.parent));return a?ave(a,t):1}}function sve(t){switch(t){case 0:return"'";case 1:return'"';default:return $.assertNever(t)}}function cve(t){let n=Woe(t);return n===void 0?void 0:oa(n)}function Woe(t){return t.escapedName!=="default"?t.escapedName:Je(t.declarations,n=>{let a=cs(n);return a&&a.kind===80?a.escapedText:void 0})}function Goe(t){return Sl(t)&&(WT(t.parent)||fp(t.parent)||OS(t.parent)||$h(t.parent,!1)&&t.parent.arguments[0]===t||Bh(t.parent)&&t.parent.arguments[0]===t)}function KK(t){return Vc(t)&&$y(t.parent)&&ct(t.name)&&!t.propertyName}function Hoe(t,n){let a=t.getTypeAtLocation(n.parent);return a&&t.getPropertyOfType(a,n.name.text)}function QK(t,n,a){if(t)for(;t.parent;){if(Ta(t.parent)||!olr(a,t.parent,n))return t;t=t.parent}}function olr(t,n,a){return jo(t,n.getStart(a))&&n.getEnd()<=Xn(t)}function ZL(t,n){return l1(t)?wt(t.modifiers,a=>a.kind===n):void 0}function lve(t,n,a,c,u){var _;let y=(Zn(a)?a[0]:a).kind===244?LG:$O,g=yr(n.statements,y),{comparer:k,isSorted:T}=WA.getOrganizeImportsStringComparerWithDetection(g,u),C=Zn(a)?pu(a,(O,F)=>WA.compareImportsOrRequireStatements(O,F,k)):[a];if(!g?.length){if(Ox(n))t.insertNodesAtTopOfFile(n,C,c);else for(let O of C)t.insertStatementsInNewFile(n.fileName,[O],(_=Ku(O))==null?void 0:_.getSourceFile());return}if($.assert(Ox(n)),g&&T)for(let O of C){let F=WA.getImportDeclarationInsertionIndex(g,O,k);if(F===0){let M=g[0]===n.statements[0]?{leadingTriviaOption:ki.LeadingTriviaOption.Exclude}:{};t.insertNodeBefore(n,g[0],O,!1,M)}else{let M=g[F-1];t.insertNodeAfter(n,M,O)}}else{let O=Yr(g);O?t.insertNodesAfter(n,O,C):t.insertNodesAtTopOfFile(n,C,c)}}function uve(t,n){return $.assert(t.isTypeOnly),Ba(t.getChildAt(0,n),Fft)}function XL(t,n){return!!t&&!!n&&t.start===n.start&&t.length===n.length}function pve(t,n,a){return(a?qm:F1)(t.fileName,n.fileName)&&XL(t.textSpan,n.textSpan)}function _ve(t){return(n,a)=>pve(n,a,t)}function dve(t,n){if(t){for(let a=0;awa(a)?!0:Vc(a)||$y(a)||xE(a)?!1:"quit")}var S7e=new Map;function alr(t){return t=t||cU,S7e.has(t)||S7e.set(t,slr(t)),S7e.get(t)}function slr(t){let n=t*10,a,c,u,_;C();let f=O=>g(O,17);return{displayParts:()=>{let O=a.length&&a[a.length-1].text;return _>n&&O&&O!=="..."&&(p0(O.charCodeAt(O.length-1))||a.push(hg(" ",16)),a.push(hg("...",15))),a},writeKeyword:O=>g(O,5),writeOperator:O=>g(O,12),writePunctuation:O=>g(O,15),writeTrailingSemicolon:O=>g(O,15),writeSpace:O=>g(O,16),writeStringLiteral:O=>g(O,8),writeParameter:O=>g(O,13),writeProperty:O=>g(O,14),writeLiteral:O=>g(O,8),writeSymbol:k,writeLine:T,write:f,writeComment:f,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Ts,getIndent:()=>u,increaseIndent:()=>{u++},decreaseIndent:()=>{u--},clear:C};function y(){if(!(_>n)&&c){let O=jre(u);O&&(_+=O.length,a.push(hg(O,16))),c=!1}}function g(O,F){_>n||(y(),_+=O.length,a.push(hg(O,F)))}function k(O,F){_>n||(y(),_+=O.length,a.push(clr(O,F)))}function T(){_>n||(_+=1,a.push(YL()),c=!0)}function C(){a=[],c=!0,u=0,_=0}}function clr(t,n){return hg(t,a(n));function a(c){let u=c.flags;return u&3?mve(c)?13:9:u&4||u&32768||u&65536?14:u&8?19:u&16?20:u&32?1:u&64?4:u&384?2:u&1536?11:u&8192?10:u&262144?18:u&524288||u&2097152?0:17}}function hg(t,n){return{text:t,kind:Doe[n]}}function Lp(){return hg(" ",16)}function Wg(t){return hg(Zs(t),5)}function wm(t){return hg(Zs(t),15)}function Yz(t){return hg(Zs(t),12)}function b7e(t){return hg(t,13)}function x7e(t){return hg(t,14)}function hve(t){let n=kx(t);return n===void 0?Vy(t):Wg(n)}function Vy(t){return hg(t,17)}function T7e(t){return hg(t,0)}function E7e(t){return hg(t,18)}function k7e(t){return hg(t,24)}function llr(t,n){return{text:t,kind:Doe[23],target:{fileName:Pn(n).fileName,textSpan:yh(n)}}}function Rft(t){return hg(t,22)}function C7e(t,n){var a;let c=Q3e(t)?"link":Z3e(t)?"linkcode":"linkplain",u=[Rft(`{@${c} `)];if(!t.name)t.text&&u.push(k7e(t.text));else{let _=n?.getSymbolAtLocation(t.name),f=_&&n?vve(_,n):void 0,y=plr(t.text),g=Sp(t.name)+t.text.slice(0,y),k=ulr(t.text.slice(y)),T=f?.valueDeclaration||((a=f?.declarations)==null?void 0:a[0]);if(T)u.push(llr(g,T)),k&&u.push(k7e(k));else{let C=y===0||t.text.charCodeAt(y)===124&&g.charCodeAt(g.length-1)!==32?" ":"";u.push(k7e(g+C+k))}}return u.push(Rft("}")),u}function ulr(t){let n=0;if(t.charCodeAt(n++)===124){for(;n"&&a--,c++,!a)return c}return 0}var _lr=` +`;function ZT(t,n){var a;return n?.newLineCharacter||((a=t.getNewLine)==null?void 0:a.call(t))||_lr}function YL(){return hg(` +`,6)}function PC(t,n){let a=alr(n);try{return t(a),a.displayParts()}finally{a.clear()}}function ZK(t,n,a,c=0,u,_,f){return PC(y=>{t.writeType(n,a,c|1024|16384,y,u,_,f)},u)}function eq(t,n,a,c,u=0){return PC(_=>{t.writeSymbol(n,a,c,u|8,_)})}function gve(t,n,a,c=0,u,_,f){return c|=25632,PC(y=>{t.writeSignature(n,a,c,void 0,y,u,_,f)},u)}function D7e(t){return!!t.parent&&Yk(t.parent)&&t.parent.propertyName===t}function yve(t,n){return fne(t,n.getScriptKind&&n.getScriptKind(t))}function vve(t,n){let a=t;for(;dlr(a)||wx(a)&&a.links.target;)wx(a)&&a.links.target?a=a.links.target:a=$f(a,n);return a}function dlr(t){return(t.flags&2097152)!==0}function A7e(t,n){return hc($f(t,n))}function w7e(t,n){for(;p0(t.charCodeAt(n));)n+=1;return n}function Qoe(t,n){for(;n>-1&&_0(t.charCodeAt(n));)n-=1;return n+1}function E3(t,n){let a=t.getSourceFile(),c=a.text;flr(t,c)?eM(t,n,a):YK(t,n,a),tq(t,n,a)}function flr(t,n){let a=t.getFullStart(),c=t.getStart();for(let u=a;u=0),_}function eM(t,n,a,c,u){A4(a.text,t.pos,I7e(n,a,c,u,gC))}function tq(t,n,a,c,u){w4(a.text,t.end,I7e(n,a,c,u,nz))}function YK(t,n,a,c,u){w4(a.text,t.pos,I7e(n,a,c,u,gC))}function I7e(t,n,a,c,u){return(_,f,y,g)=>{y===3?(_+=2,f-=2):_+=2,u(t,a||y,n.text.slice(_,f),c!==void 0?c:g)}}function mlr(t,n){if(Ca(t,n))return 0;let a=t.indexOf(" "+n);return a===-1&&(a=t.indexOf("."+n)),a===-1&&(a=t.indexOf('"'+n)),a===-1?-1:a+1}function Zoe(t){return wi(t)&&t.operatorToken.kind===28||Lc(t)||(gL(t)||yL(t))&&Lc(t.expression)}function Xoe(t,n,a){let c=V1(t.parent);switch(c.kind){case 215:return n.getContextualType(c,a);case 227:{let{left:u,operatorToken:_,right:f}=c;return Yoe(_.kind)?n.getTypeAtLocation(t===f?u:f):n.getContextualType(t,a)}case 297:return bve(c,n);default:return n.getContextualType(t,a)}}function rq(t,n,a){let c=Vg(t,n),u=JSON.stringify(a);return c===0?`'${i1(u).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:u}function Yoe(t){switch(t){case 37:case 35:case 38:case 36:return!0;default:return!1}}function P7e(t){switch(t.kind){case 11:case 15:case 229:case 216:return!0;default:return!1}}function Sve(t){return!!t.getStringIndexType()||!!t.getNumberIndexType()}function bve(t,n){return n.getTypeAtLocation(t.parent.parent.expression)}var xve="anonymous function";function nq(t,n,a,c){let u=a.getTypeChecker(),_=!0,f=()=>_=!1,y=u.typeToTypeNode(t,n,1,8,{trackSymbol:(g,k,T)=>(_=_&&u.isSymbolAccessible(g,k,T,!1).accessibility===0,!_),reportInaccessibleThisError:f,reportPrivateInBaseOfClassExpression:f,reportInaccessibleUniqueSymbolError:f,moduleResolverHost:ove(a,c)});return _?y:void 0}function N7e(t){return t===180||t===181||t===182||t===172||t===174}function Lft(t){return t===263||t===177||t===175||t===178||t===179}function Mft(t){return t===268}function O7e(t){return t===244||t===245||t===247||t===252||t===253||t===254||t===258||t===260||t===173||t===266||t===273||t===272||t===279||t===271||t===278}var hlr=jf(N7e,Lft,Mft,O7e);function glr(t,n){let a=t.getLastToken(n);if(a&&a.kind===27)return!1;if(N7e(t.kind)){if(a&&a.kind===28)return!1}else if(Mft(t.kind)){let y=Sn(t.getChildren(n));if(y&&wS(y))return!1}else if(Lft(t.kind)){let y=Sn(t.getChildren(n));if(y&&tP(y))return!1}else if(!O7e(t.kind))return!1;if(t.kind===247)return!0;let c=fn(t,y=>!y.parent),u=OP(t,c,n);if(!u||u.kind===20)return!0;let _=n.getLineAndCharacterOfPosition(t.getEnd()).line,f=n.getLineAndCharacterOfPosition(u.getStart(n)).line;return _!==f}function eae(t,n,a){let c=fn(n,u=>u.end!==t?"quit":hlr(u.kind));return!!c&&glr(c,a)}function eQ(t){let n=0,a=0,c=5;return Is(t,function u(_){if(O7e(_.kind)){let f=_.getLastToken(t);f?.kind===27?n++:a++}else if(N7e(_.kind)){let f=_.getLastToken(t);if(f?.kind===27)n++;else if(f&&f.kind!==28){let y=qs(t,f.getStart(t)).line,g=qs(t,gS(t,f.end).start).line;y!==g&&a++}}return n+a>=c?!0:Is(_,u)}),n===0&&a<=1?!0:n/a>1/c}function tae(t,n){return F7e(t,t.getDirectories,n)||[]}function Tve(t,n,a,c,u){return F7e(t,t.readDirectory,n,a,c,u)||j}function iq(t,n){return F7e(t,t.fileExists,n)}function rae(t,n){return nae(()=>Sv(n,t))||!1}function nae(t){try{return t()}catch{return}}function F7e(t,n,...a){return nae(()=>n&&n.apply(t,a))}function Eve(t,n){let a=[];return Ab(n,t,c=>{let u=Xi(c,"package.json");iq(n,u)&&a.push(u)}),a}function R7e(t,n){let a;return Ab(n,t,c=>{if(c==="node_modules"||(a=k0e(c,u=>iq(n,u),"package.json"),a))return!0}),a}function ylr(t,n){if(!n.fileExists)return[];let a=[];return Ab(n,mo(t),c=>{let u=Xi(c,"package.json");if(n.fileExists(u)){let _=kve(u,n);_&&a.push(_)}}),a}function kve(t,n){if(!n.readFile)return;let a=["dependencies","devDependencies","optionalDependencies","peerDependencies"],c=n.readFile(t)||"",u=lH(c),_={};if(u)for(let g of a){let k=u[g];if(!k)continue;let T=new Map;for(let C in k)T.set(C,k[C]);_[g]=T}let f=[[1,_.dependencies],[2,_.devDependencies],[8,_.optionalDependencies],[4,_.peerDependencies]];return{..._,parseable:!!u,fileName:t,get:y,has(g,k){return!!y(g,k)}};function y(g,k=15){for(let[T,C]of f)if(C&&k&T){let O=C.get(g);if(O!==void 0)return O}}}function tM(t,n,a){let c=(a.getPackageJsonsVisibleToFile&&a.getPackageJsonsVisibleToFile(t.fileName)||ylr(t.fileName,a)).filter(M=>M.parseable),u,_,f;return{allowsImportingAmbientModule:g,getSourceFileInfo:k,allowsImportingSpecifier:T};function y(M){let U=F(M);for(let J of c)if(J.has(U)||J.has(Pie(U)))return!0;return!1}function g(M,U){if(!c.length||!M.valueDeclaration)return!0;if(!_)_=new Map;else{let re=_.get(M);if(re!==void 0)return re}let J=i1(M.getName());if(C(J))return _.set(M,!0),!0;let G=M.valueDeclaration.getSourceFile(),Z=O(G.fileName,U);if(typeof Z>"u")return _.set(M,!0),!0;let Q=y(Z)||y(J);return _.set(M,Q),Q}function k(M,U){if(!c.length)return{importable:!0,packageName:void 0};if(!f)f=new Map;else{let Q=f.get(M);if(Q!==void 0)return Q}let J=O(M.fileName,U);if(!J){let Q={importable:!0,packageName:J};return f.set(M,Q),Q}let Z={importable:y(J),packageName:J};return f.set(M,Z),Z}function T(M){return!c.length||C(M)||ch(M)||qd(M)?!0:y(M)}function C(M){return!!(Ox(t)&&ph(t)&&pL.has(M)&&(u===void 0&&(u=iae(t)),u))}function O(M,U){if(!M.includes("node_modules"))return;let J=QT.getNodeModulesPackageName(a.getCompilationSettings(),t,M,U,n);if(J&&!ch(J)&&!qd(J))return F(J)}function F(M){let U=Cd(Dz(M)).slice(1);return Ca(U[0],"@")?`${U[0]}/${U[1]}`:U[0]}}function iae(t){return Pt(t.imports,({text:n})=>pL.has(n))}function tQ(t){return un(Cd(t),"node_modules")}function jft(t){return t.file!==void 0&&t.start!==void 0&&t.length!==void 0}function L7e(t,n){let a=yh(t),c=Yl(n,a,vl,fy);if(c>=0){let u=n[c];return $.assertEqual(u.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),Ba(u,jft)}}function M7e(t,n){var a;let c=Yl(n,t.start,f=>f.start,Br);for(c<0&&(c=~c);((a=n[c-1])==null?void 0:a.start)===t.start;)c--;let u=[],_=Xn(t);for(;;){let f=Ci(n[c],jft);if(!f||f.start>_)break;Ha(t,f)&&u.push(f),c++}return u}function $F({startPosition:t,endPosition:n}){return Hu(t,n===void 0?t:n)}function Cve(t,n){let a=la(t,n.start);return fn(a,u=>u.getStart(t)Xn(n)?"quit":Vt(u)&&XL(n,yh(u,t)))}function Dve(t,n,a=vl){return t?Zn(t)?a(Cr(t,n)):n(t,0):void 0}function Ave(t){return Zn(t)?To(t):t}function oae(t,n,a){return t.escapedName==="export="||t.escapedName==="default"?wve(t)||rQ(vlr(t),n,!!a):t.name}function wve(t){return Je(t.declarations,n=>{var a,c,u;if(Xu(n))return(a=Ci(Wp(n.expression),ct))==null?void 0:a.text;if(Cm(n)&&n.symbol.flags===2097152)return(c=Ci(n.propertyName,ct))==null?void 0:c.text;let _=(u=Ci(cs(n),ct))==null?void 0:u.text;if(_)return _;if(t.parent&&!LO(t.parent))return t.parent.getName()})}function vlr(t){var n;return $.checkDefined(t.parent,`Symbol parent was undefined. Flags: ${$.formatSymbolFlags(t.flags)}. Declarations: ${(n=t.declarations)==null?void 0:n.map(a=>{let c=$.formatSyntaxKind(a.kind),u=Ei(a),{expression:_}=a;return(u?"[JS]":"")+c+(_?` (expression: ${$.formatSyntaxKind(_.kind)})`:"")}).join(", ")}.`)}function rQ(t,n,a){return nQ(Qm(i1(t.name)),n,a)}function nQ(t,n,a){let c=t_(Lk(Qm(t),"/index")),u="",_=!0,f=c.charCodeAt(0);pg(f,n)?(u+=String.fromCharCode(f),a&&(u=u.toUpperCase())):_=!1;for(let y=1;yt.length)return!1;for(let u=0;u(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.Namespace=2]="Namespace",t[t.CommonJS=3]="CommonJS",t))(B7e||{}),$7e=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t[t.UMD=3]="UMD",t[t.Module=4]="Module",t))($7e||{});function Ove(t){let n=1,a=d_(),c=new Map,u=new Map,_,f={isUsableByFile:F=>F===_,isEmpty:()=>!a.size,clear:()=>{a.clear(),c.clear(),_=void 0},add:(F,M,U,J,G,Z,Q,re)=>{F!==_&&(f.clear(),_=F);let ae;if(G){let Be=Tne(G.fileName);if(Be){let{topLevelNodeModulesIndex:de,topLevelPackageNameIndex:ze,packageRootIndex:ut}=Be;if(ae=pK(Dz(G.fileName.substring(ze+1,ut))),Ca(F,G.path.substring(0,de))){let je=u.get(ae),ve=G.fileName.substring(0,ze+1);if(je){let Le=je.indexOf(Jx);de>Le&&u.set(ae,ve)}else u.set(ae,ve)}}}let me=Z===1&&RU(M)||M,le=Z===0||LO(me)?oa(U):blr(me,re,void 0),Oe=typeof le=="string"?le:le[0],be=typeof le=="string"?void 0:le[1],ue=i1(J.name),De=n++,Ce=$f(M,re),Ae=M.flags&33554432?void 0:M,Fe=J.flags&33554432?void 0:J;(!Ae||!Fe)&&c.set(De,[M,J]),a.add(g(Oe,M,vt(ue)?void 0:ue,re),{id:De,symbolTableKey:U,symbolName:Oe,capitalizedSymbolName:be,moduleName:ue,moduleFile:G,moduleFileName:G?.fileName,packageName:ae,exportKind:Z,targetFlags:Ce.flags,isFromPackageJson:Q,symbol:Ae,moduleSymbol:Fe})},get:(F,M)=>{if(F!==_)return;let U=a.get(M);return U?.map(y)},search:(F,M,U,J)=>{if(F===_)return Ad(a,(G,Z)=>{let{symbolName:Q,ambientModuleName:re}=k(Z),ae=M&&G[0].capitalizedSymbolName||Q;if(U(ae,G[0].targetFlags)){let me=G.map(y).filter((le,Oe)=>O(le,G[Oe].packageName));if(me.length){let le=J(me,ae,!!re,Z);if(le!==void 0)return le}}})},releaseSymbols:()=>{c.clear()},onFileChanged:(F,M,U)=>T(F)&&T(M)?!1:_&&_!==M.path||U&&iae(F)!==iae(M)||!__(F.moduleAugmentations,M.moduleAugmentations)||!C(F,M)?(f.clear(),!0):(_=M.path,!1)};return $.isDebugging&&Object.defineProperty(f,"__cache",{value:a}),f;function y(F){if(F.symbol&&F.moduleSymbol)return F;let{id:M,exportKind:U,targetFlags:J,isFromPackageJson:G,moduleFileName:Z}=F,[Q,re]=c.get(M)||j;if(Q&&re)return{symbol:Q,moduleSymbol:re,moduleFileName:Z,exportKind:U,targetFlags:J,isFromPackageJson:G};let ae=(G?t.getPackageJsonAutoImportProvider():t.getCurrentProgram()).getTypeChecker(),_e=F.moduleSymbol||re||$.checkDefined(F.moduleFile?ae.getMergedSymbol(F.moduleFile.symbol):ae.tryFindAmbientModule(F.moduleName)),me=F.symbol||Q||$.checkDefined(U===2?ae.resolveExternalModuleSymbol(_e):ae.tryGetMemberInModuleExportsAndProperties(oa(F.symbolTableKey),_e),`Could not find symbol '${F.symbolName}' by key '${F.symbolTableKey}' in module ${_e.name}`);return c.set(M,[me,_e]),{symbol:me,moduleSymbol:_e,moduleFileName:Z,exportKind:U,targetFlags:J,isFromPackageJson:G}}function g(F,M,U,J){let G=U||"";return`${F.length} ${hc($f(M,J))} ${F} ${G}`}function k(F){let M=F.indexOf(" "),U=F.indexOf(" ",M+1),J=parseInt(F.substring(0,M),10),G=F.substring(U+1),Z=G.substring(0,J),Q=G.substring(J+1);return{symbolName:Z,ambientModuleName:Q===""?void 0:Q}}function T(F){return!F.commonJsModuleIndicator&&!F.externalModuleIndicator&&!F.moduleAugmentations&&!F.ambientModuleNames}function C(F,M){if(!__(F.ambientModuleNames,M.ambientModuleNames))return!1;let U=-1,J=-1;for(let G of M.ambientModuleNames){let Z=Q=>Cme(Q)&&Q.name.text===G;if(U=hr(F.statements,Z,U+1),J=hr(M.statements,Z,J+1),F.statements[U]!==M.statements[J])return!1}return!0}function O(F,M){if(!M||!F.moduleFileName)return!0;let U=t.getGlobalTypingsCacheLocation();if(U&&Ca(F.moduleFileName,U))return!0;let J=u.get(M);return!J||Ca(F.moduleFileName,J)}}function Fve(t,n,a,c,u,_,f,y){var g;if(!a){let F,M=i1(c.name);return pL.has(M)&&(F=sae(n,t))!==void 0?F===Ca(M,"node:"):!_||_.allowsImportingAmbientModule(c,f)||U7e(n,M)}if($.assertIsDefined(a),n===a)return!1;let k=y?.get(n.path,a.path,u,{});if(k?.isBlockedByPackageJsonDependencies!==void 0)return!k.isBlockedByPackageJsonDependencies||!!k.packageName&&U7e(n,k.packageName);let T=UT(f),C=(g=f.getGlobalTypingsCacheLocation)==null?void 0:g.call(f),O=!!QT.forEachFileNameOfModule(n.fileName,a.fileName,f,!1,F=>{let M=t.getSourceFile(F);return(M===a||!M)&&Slr(n.fileName,F,T,C,f)});if(_){let F=O?_.getSourceFileInfo(a,f):void 0;return y?.setBlockedByPackageJsonDependencies(n.path,a.path,u,{},F?.packageName,!F?.importable),!!F?.importable||O&&!!F?.packageName&&U7e(n,F.packageName)}return O}function U7e(t,n){return t.imports&&t.imports.some(a=>a.text===n||a.text.startsWith(n+"/"))}function Slr(t,n,a,c,u){let _=Ab(u,n,y=>t_(y)==="node_modules"?y:void 0),f=_&&mo(a(_));return f===void 0||Ca(a(t),f)||!!c&&Ca(a(c),f)}function Rve(t,n,a,c,u){var _,f;let y=K4(n),g=a.autoImportFileExcludePatterns&&Bft(a,y);$ft(t.getTypeChecker(),t.getSourceFiles(),g,n,(T,C)=>u(T,C,t,!1));let k=c&&((_=n.getPackageJsonAutoImportProvider)==null?void 0:_.call(n));if(k){let T=Ml(),C=t.getTypeChecker();$ft(k.getTypeChecker(),k.getSourceFiles(),g,n,(O,F)=>{(F&&!t.getSourceFile(F.fileName)||!F&&!C.resolveName(O.name,void 0,1536,!1))&&u(O,F,k,!0)}),(f=n.log)==null||f.call(n,`forEachExternalModuleToImportFrom autoImportProvider: ${Ml()-T}`)}}function Bft(t,n){return Wn(t.autoImportFileExcludePatterns,a=>{let c=_ne(a,"","exclude");return c?mE(c,n):void 0})}function $ft(t,n,a,c,u){var _;let f=a&&Uft(a,c);for(let y of t.getAmbientModules())!y.name.includes("*")&&!(a&&((_=y.declarations)!=null&&_.every(g=>f(g.getSourceFile()))))&&u(y,void 0);for(let y of n)Lg(y)&&!f?.(y)&&u(t.getMergedSymbol(y.symbol),y)}function Uft(t,n){var a;let c=(a=n.getSymlinkCache)==null?void 0:a.call(n).getSymlinkedDirectoriesByRealpath();return({fileName:u,path:_})=>{if(t.some(f=>f.test(u)))return!0;if(c?.size&&kC(u)){let f=mo(u);return Ab(n,mo(_),y=>{let g=c.get(r_(y));if(g)return g.some(k=>t.some(T=>T.test(u.replace(f,k))));f=mo(f)})??!1}return!1}}function z7e(t,n){return n.autoImportFileExcludePatterns?Uft(Bft(n,K4(t)),t):()=>!1}function oQ(t,n,a,c,u){var _,f,y,g,k;let T=Ml();(_=n.getPackageJsonAutoImportProvider)==null||_.call(n);let C=((f=n.getCachedExportInfoMap)==null?void 0:f.call(n))||Ove({getCurrentProgram:()=>a,getPackageJsonAutoImportProvider:()=>{var F;return(F=n.getPackageJsonAutoImportProvider)==null?void 0:F.call(n)},getGlobalTypingsCacheLocation:()=>{var F;return(F=n.getGlobalTypingsCacheLocation)==null?void 0:F.call(n)}});if(C.isUsableByFile(t.path))return(y=n.log)==null||y.call(n,"getExportInfoMap: cache hit"),C;(g=n.log)==null||g.call(n,"getExportInfoMap: cache miss or empty; calculating new results");let O=0;try{Rve(a,n,c,!0,(F,M,U,J)=>{++O%100===0&&u?.throwIfCancellationRequested();let G=new Set,Z=U.getTypeChecker(),Q=pae(F,Z);Q&&zft(Q.symbol,Z)&&C.add(t.path,Q.symbol,Q.exportKind===1?"default":"export=",F,M,Q.exportKind,J,Z),Z.forEachExportAndPropertyOfModule(F,(re,ae)=>{re!==Q?.symbol&&zft(re,Z)&&o1(G,ae)&&C.add(t.path,re,ae,F,M,0,J,Z)})})}catch(F){throw C.clear(),F}return(k=n.log)==null||k.call(n,`getExportInfoMap: done in ${Ml()-T} ms`),C}function pae(t,n){let a=n.resolveExternalModuleSymbol(t);if(a!==t){let u=n.tryGetMemberInModuleExports("default",a);return u?{symbol:u,exportKind:1}:{symbol:a,exportKind:2}}let c=n.tryGetMemberInModuleExports("default",t);if(c)return{symbol:c,exportKind:1}}function zft(t,n){return!n.isUndefinedSymbol(t)&&!n.isUnknownSymbol(t)&&!AU(t)&&!J6e(t)}function blr(t,n,a){let c;return _ae(t,n,a,(u,_)=>(c=_?[u,_]:u,!0)),$.checkDefined(c)}function _ae(t,n,a,c){let u,_=t,f=new Set;for(;_;){let y=wve(_);if(y){let g=c(y);if(g)return g}if(_.escapedName!=="default"&&_.escapedName!=="export="){let g=c(_.name);if(g)return g}if(u=jt(u,_),!o1(f,_))break;_=_.flags&2097152?n.getImmediateAliasedSymbol(_):void 0}for(let y of u??j)if(y.parent&&LO(y.parent)){let g=c(rQ(y.parent,a,!1),rQ(y.parent,a,!0));if(g)return g}}function qft(){let t=B1(99,!1);function n(c,u,_){return klr(a(c,u,_),c)}function a(c,u,_){let f=0,y=0,g=[],{prefix:k,pushTemplate:T}=Alr(u);c=k+c;let C=k.length;T&&g.push(16),t.setText(c);let O=0,F=[],M=0;do{f=t.scan(),XR(f)||(U(),y=f);let J=t.getTokenEnd();if(Elr(t.getTokenStart(),J,C,Plr(f),F),J>=c.length){let G=Tlr(t,f,Yr(g));G!==void 0&&(O=G)}}while(f!==1);function U(){switch(f){case 44:case 69:!xlr[y]&&t.reScanSlashToken()===14&&(f=14);break;case 30:y===80&&M++;break;case 32:M>0&&M--;break;case 133:case 154:case 150:case 136:case 155:M>0&&!_&&(f=80);break;case 16:g.push(f);break;case 19:g.length>0&&g.push(f);break;case 20:if(g.length>0){let J=Yr(g);J===16?(f=t.reScanTemplateToken(!1),f===18?g.pop():$.assertEqual(f,17,"Should have been a template middle.")):($.assertEqual(J,19,"Should have been an open brace"),g.pop())}break;default:if(!Uh(f))break;(y===25||Uh(y)&&Uh(f)&&!Dlr(y,f))&&(f=80)}}return{endOfLineState:O,spans:F}}return{getClassificationsForLine:n,getEncodedLexicalClassifications:a}}var xlr=bi([80,11,9,10,14,110,46,47,22,24,20,112,97],t=>t,()=>!0);function Tlr(t,n,a){switch(n){case 11:{if(!t.isUnterminated())return;let c=t.getTokenText(),u=c.length-1,_=0;for(;c.charCodeAt(u-_)===92;)_++;return(_&1)===0?void 0:c.charCodeAt(0)===34?3:2}case 3:return t.isUnterminated()?1:void 0;default:if(Xk(n)){if(!t.isUnterminated())return;switch(n){case 18:return 5;case 15:return 4;default:return $.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+n)}}return a===16?6:void 0}}function Elr(t,n,a,c,u){if(c===8)return;t===0&&a>0&&(t+=a);let _=n-t;_>0&&u.push(t-a,_,c)}function klr(t,n){let a=[],c=t.spans,u=0;for(let f=0;f=0){let T=y-u;T>0&&a.push({length:T,classification:4})}a.push({length:g,classification:Clr(k)}),u=y+g}let _=n.length-u;return _>0&&a.push({length:_,classification:4}),{entries:a,finalLexState:t.endOfLineState}}function Clr(t){switch(t){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function Dlr(t,n){if(!Z1e(t))return!0;switch(n){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function Alr(t){switch(t){case 3:return{prefix:`"\\ +`};case 2:return{prefix:`'\\ +`};case 1:return{prefix:`/* +`};case 4:return{prefix:"`\n"};case 5:return{prefix:`} +`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return $.assertNever(t)}}function wlr(t){switch(t){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function Ilr(t){switch(t){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function Plr(t){if(Uh(t))return 3;if(wlr(t)||Ilr(t))return 5;if(t>=19&&t<=79)return 10;switch(t){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return Xk(t)?6:2}}function q7e(t,n,a,c,u){return Wft(Lve(t,n,a,c,u))}function Jft(t,n){switch(n){case 268:case 264:case 265:case 263:case 232:case 219:case 220:t.throwIfCancellationRequested()}}function Lve(t,n,a,c,u){let _=[];return a.forEachChild(function y(g){if(!(!g||!_S(u,g.pos,g.getFullWidth()))){if(Jft(n,g.kind),ct(g)&&!Op(g)&&c.has(g.escapedText)){let k=t.getSymbolAtLocation(g),T=k&&Vft(k,x3(g),t);T&&f(g.getStart(a),g.getEnd(),T)}g.forEachChild(y)}}),{spans:_,endOfLineState:0};function f(y,g,k){let T=g-y;$.assert(T>0,`Classification had non-positive length of ${T}`),_.push(y),_.push(T),_.push(k)}}function Vft(t,n,a){let c=t.getFlags();if((c&2885600)!==0)return c&32?11:c&384?12:c&524288?16:c&1536?n&4||n&1&&Nlr(t)?14:void 0:c&2097152?Vft(a.getAliasedSymbol(t),n,a):n&2?c&64?13:c&262144?15:void 0:void 0}function Nlr(t){return Pt(t.declarations,n=>I_(n)&&KT(n)===1)}function Olr(t){switch(t){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function Wft(t){$.assert(t.spans.length%3===0);let n=t.spans,a=[];for(let c=0;c])*)(\/>)?)?/m,le=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/g,Oe=n.text.substr(ae,_e),be=me.exec(Oe);if(!be||!be[3]||!(be[3]in y4))return!1;let ue=ae;C(ue,be[1].length),ue+=be[1].length,g(ue,be[2].length,10),ue+=be[2].length,g(ue,be[3].length,21),ue+=be[3].length;let De=be[4],Ce=ue;for(;;){let Fe=le.exec(De);if(!Fe)break;let Be=ue+Fe.index+Fe[1].length;Be>Ce&&(C(Ce,Be-Ce),Ce=Be),g(Ce,Fe[2].length,22),Ce+=Fe[2].length,Fe[3].length&&(C(Ce,Fe[3].length),Ce+=Fe[3].length),g(Ce,Fe[4].length,5),Ce+=Fe[4].length,Fe[5].length&&(C(Ce,Fe[5].length),Ce+=Fe[5].length),g(Ce,Fe[6].length,24),Ce+=Fe[6].length}ue+=be[4].length,ue>Ce&&C(Ce,ue-Ce),be[5]&&(g(ue,be[5].length,10),ue+=be[5].length);let Ae=ae+_e;return ue=0),le>0){let Oe=_e||Q(ae.kind,ae);Oe&&g(me,le,Oe)}return!0}function Z(ae){switch(ae.parent&&ae.parent.kind){case 287:if(ae.parent.tagName===ae)return 19;break;case 288:if(ae.parent.tagName===ae)return 20;break;case 286:if(ae.parent.tagName===ae)return 21;break;case 292:if(ae.parent.name===ae)return 22;break}}function Q(ae,_e){if(Uh(ae))return 3;if((ae===30||ae===32)&&_e&&_7e(_e.parent))return 10;if(Yme(ae)){if(_e){let me=_e.parent;if(ae===64&&(me.kind===261||me.kind===173||me.kind===170||me.kind===292)||me.kind===227||me.kind===225||me.kind===226||me.kind===228)return 5}return 10}else{if(ae===9)return 4;if(ae===10)return 25;if(ae===11)return _e&&_e.parent.kind===292?24:6;if(ae===14)return 6;if(Xk(ae))return 6;if(ae===12)return 23;if(ae===80){if(_e){switch(_e.parent.kind){case 264:return _e.parent.name===_e?11:void 0;case 169:return _e.parent.name===_e?15:void 0;case 265:return _e.parent.name===_e?13:void 0;case 267:return _e.parent.name===_e?12:void 0;case 268:return _e.parent.name===_e?14:void 0;case 170:return _e.parent.name===_e?pC(_e)?3:17:void 0}if(z1(_e.parent))return 3}return 2}}}function re(ae){if(ae&&dS(c,u,ae.pos,ae.getFullWidth())){Jft(t,ae.kind);for(let _e of ae.getChildren(n))G(_e)||re(_e)}}}var dae;(t=>{function n(ue,De,Ce,Ae,Fe){let Be=Vh(Ce,Ae);if(Be.parent&&(Tv(Be.parent)&&Be.parent.tagName===Be||bP(Be.parent))){let{openingElement:de,closingElement:ze}=Be.parent.parent,ut=[de,ze].map(({tagName:je})=>a(je,Ce));return[{fileName:Ce.fileName,highlightSpans:ut}]}return c(Ae,Be,ue,De,Fe)||u(Be,Ce)}t.getDocumentHighlights=n;function a(ue,De){return{fileName:De.fileName,textSpan:yh(ue,De),kind:"none"}}function c(ue,De,Ce,Ae,Fe){let Be=new Set(Fe.map(je=>je.fileName)),de=Pu.getReferenceEntriesForNode(ue,De,Ce,Fe,Ae,void 0,Be);if(!de)return;let ze=tu(de.map(Pu.toHighlightSpan),je=>je.fileName,je=>je.span),ut=_d(Ce.useCaseSensitiveFileNames());return so(Na(ze.entries(),([je,ve])=>{if(!Be.has(je)){if(!Ce.redirectTargetsMap.has(wl(je,Ce.getCurrentDirectory(),ut)))return;let Le=Ce.getSourceFile(je);je=wt(Fe,nt=>!!nt.redirectInfo&&nt.redirectInfo.redirectTarget===Le).fileName,$.assert(Be.has(je))}return{fileName:je,highlightSpans:ve}}))}function u(ue,De){let Ce=_(ue,De);return Ce&&[{fileName:De.fileName,highlightSpans:Ce}]}function _(ue,De){switch(ue.kind){case 101:case 93:return EA(ue.parent)?le(ue.parent,De):void 0;case 107:return Ae(ue.parent,gy,re);case 111:return Ae(ue.parent,Rge,Q);case 113:case 85:case 98:let Be=ue.kind===85?ue.parent.parent:ue.parent;return Ae(Be,c3,Z);case 109:return Ae(ue.parent,pz,G);case 84:case 90:return dz(ue.parent)||bL(ue.parent)?Ae(ue.parent.parent.parent,pz,G):void 0;case 83:case 88:return Ae(ue.parent,tU,J);case 99:case 117:case 92:return Ae(ue.parent,de=>rC(de,!0),U);case 137:return Ce(kp,[137]);case 139:case 153:return Ce(tC,[139,153]);case 135:return Ae(ue.parent,SC,ae);case 134:return Fe(ae(ue));case 127:return Fe(_e(ue));case 103:case 147:return;default:return eC(ue.kind)&&(Vd(ue.parent)||h_(ue.parent))?Fe(O(ue.kind,ue.parent)):void 0}function Ce(Be,de){return Ae(ue.parent,Be,ze=>{var ut;return Wn((ut=Ci(ze,gv))==null?void 0:ut.symbol.declarations,je=>Be(je)?wt(je.getChildren(De),ve=>un(de,ve.kind)):void 0)})}function Ae(Be,de,ze){return de(Be)?Fe(ze(Be,De)):void 0}function Fe(Be){return Be&&Be.map(de=>a(de,De))}}function f(ue){return Rge(ue)?[ue]:c3(ue)?go(ue.catchClause?f(ue.catchClause):ue.tryBlock&&f(ue.tryBlock),ue.finallyBlock&&f(ue.finallyBlock)):Rs(ue)?void 0:k(ue,f)}function y(ue){let De=ue;for(;De.parent;){let Ce=De.parent;if(tP(Ce)||Ce.kind===308)return Ce;if(c3(Ce)&&Ce.tryBlock===De&&Ce.catchClause)return De;De=Ce}}function g(ue){return tU(ue)?[ue]:Rs(ue)?void 0:k(ue,g)}function k(ue,De){let Ce=[];return ue.forEachChild(Ae=>{let Fe=De(Ae);Fe!==void 0&&Ce.push(...Ll(Fe))}),Ce}function T(ue,De){let Ce=C(De);return!!Ce&&Ce===ue}function C(ue){return fn(ue,De=>{switch(De.kind){case 256:if(ue.kind===252)return!1;case 249:case 250:case 251:case 248:case 247:return!ue.label||be(De,ue.label.escapedText);default:return Rs(De)&&"quit"}})}function O(ue,De){return Wn(F(De,ZO(ue)),Ce=>ZL(Ce,ue))}function F(ue,De){let Ce=ue.parent;switch(Ce.kind){case 269:case 308:case 242:case 297:case 298:return De&64&&ed(ue)?[...ue.members,ue]:Ce.statements;case 177:case 175:case 263:return[...Ce.parameters,...Co(Ce.parent)?Ce.parent.members:[]];case 264:case 232:case 265:case 188:let Ae=Ce.members;if(De&15){let Fe=wt(Ce.members,kp);if(Fe)return[...Ae,...Fe.parameters]}else if(De&64)return[...Ae,Ce];return Ae;default:return}}function M(ue,De,...Ce){return De&&un(Ce,De.kind)?(ue.push(De),!0):!1}function U(ue){let De=[];if(M(De,ue.getFirstToken(),99,117,92)&&ue.kind===247){let Ce=ue.getChildren();for(let Ae=Ce.length-1;Ae>=0&&!M(De,Ce[Ae],117);Ae--);}return X(g(ue.statement),Ce=>{T(ue,Ce)&&M(De,Ce.getFirstToken(),83,88)}),De}function J(ue){let De=C(ue);if(De)switch(De.kind){case 249:case 250:case 251:case 247:case 248:return U(De);case 256:return G(De)}}function G(ue){let De=[];return M(De,ue.getFirstToken(),109),X(ue.caseBlock.clauses,Ce=>{M(De,Ce.getFirstToken(),84,90),X(g(Ce),Ae=>{T(ue,Ae)&&M(De,Ae.getFirstToken(),83)})}),De}function Z(ue,De){let Ce=[];if(M(Ce,ue.getFirstToken(),113),ue.catchClause&&M(Ce,ue.catchClause.getFirstToken(),85),ue.finallyBlock){let Ae=Kl(ue,98,De);M(Ce,Ae,98)}return Ce}function Q(ue,De){let Ce=y(ue);if(!Ce)return;let Ae=[];return X(f(Ce),Fe=>{Ae.push(Kl(Fe,111,De))}),tP(Ce)&&sC(Ce,Fe=>{Ae.push(Kl(Fe,107,De))}),Ae}function re(ue,De){let Ce=My(ue);if(!Ce)return;let Ae=[];return sC(Ba(Ce.body,Vs),Fe=>{Ae.push(Kl(Fe,107,De))}),X(f(Ce.body),Fe=>{Ae.push(Kl(Fe,111,De))}),Ae}function ae(ue){let De=My(ue);if(!De)return;let Ce=[];return De.modifiers&&De.modifiers.forEach(Ae=>{M(Ce,Ae,134)}),Is(De,Ae=>{me(Ae,Fe=>{SC(Fe)&&M(Ce,Fe.getFirstToken(),135)})}),Ce}function _e(ue){let De=My(ue);if(!De)return;let Ce=[];return Is(De,Ae=>{me(Ae,Fe=>{BH(Fe)&&M(Ce,Fe.getFirstToken(),127)})}),Ce}function me(ue,De){De(ue),!Rs(ue)&&!Co(ue)&&!Af(ue)&&!I_(ue)&&!s1(ue)&&!Wo(ue)&&Is(ue,Ce=>me(Ce,De))}function le(ue,De){let Ce=Oe(ue,De),Ae=[];for(let Fe=0;Fe=Be.end;ut--)if(!_0(De.text.charCodeAt(ut))){ze=!1;break}if(ze){Ae.push({fileName:De.fileName,textSpan:Hu(Be.getStart(),de.end),kind:"reference"}),Fe++;continue}}Ae.push(a(Ce[Fe],De))}return Ae}function Oe(ue,De){let Ce=[];for(;EA(ue.parent)&&ue.parent.elseStatement===ue;)ue=ue.parent;for(;;){let Ae=ue.getChildren(De);M(Ce,Ae[0],101);for(let Fe=Ae.length-1;Fe>=0&&!M(Ce,Ae[Fe],93);Fe--);if(!ue.elseStatement||!EA(ue.elseStatement))break;ue=ue.elseStatement}return Ce}function be(ue,De){return!!fn(ue.parent,Ce=>bC(Ce)?Ce.label.escapedText===De:"quit")}})(dae||(dae={}));function aQ(t){return!!t.sourceFile}function V7e(t,n,a){return jve(t,n,a)}function jve(t,n="",a,c){let u=new Map,_=_d(!!t);function f(){let J=so(u.keys()).filter(G=>G&&G.charAt(0)==="_").map(G=>{let Z=u.get(G),Q=[];return Z.forEach((re,ae)=>{aQ(re)?Q.push({name:ae,scriptKind:re.sourceFile.scriptKind,refCount:re.languageServiceRefCount}):re.forEach((_e,me)=>Q.push({name:ae,scriptKind:me,refCount:_e.languageServiceRefCount}))}),Q.sort((re,ae)=>ae.refCount-re.refCount),{bucket:G,sourceFiles:Q}});return JSON.stringify(J,void 0,2)}function y(J){return typeof J.getCompilationSettings=="function"?J.getCompilationSettings():J}function g(J,G,Z,Q,re,ae){let _e=wl(J,n,_),me=Bve(y(G));return k(J,_e,G,me,Z,Q,re,ae)}function k(J,G,Z,Q,re,ae,_e,me){return F(J,G,Z,Q,re,ae,!0,_e,me)}function T(J,G,Z,Q,re,ae){let _e=wl(J,n,_),me=Bve(y(G));return C(J,_e,G,me,Z,Q,re,ae)}function C(J,G,Z,Q,re,ae,_e,me){return F(J,G,y(Z),Q,re,ae,!1,_e,me)}function O(J,G){let Z=aQ(J)?J:J.get($.checkDefined(G,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return $.assert(G===void 0||!Z||Z.sourceFile.scriptKind===G,`Script kind should match provided ScriptKind:${G} and sourceFile.scriptKind: ${Z?.sourceFile.scriptKind}, !entry: ${!Z}`),Z}function F(J,G,Z,Q,re,ae,_e,me,le){var Oe,be,ue,De;me=fne(J,me);let Ce=y(Z),Ae=Z===Ce?void 0:Z,Fe=me===6?100:$c(Ce),Be=typeof le=="object"?le:{languageVersion:Fe,impliedNodeFormat:Ae&&AK(G,(De=(ue=(be=(Oe=Ae.getCompilerHost)==null?void 0:Oe.call(Ae))==null?void 0:be.getModuleResolutionCache)==null?void 0:ue.call(be))==null?void 0:De.getPackageJsonInfoCache(),Ae,Ce),setExternalModuleIndicator:dH(Ce),jsDocParsingMode:a};Be.languageVersion=Fe,$.assertEqual(a,Be.jsDocParsingMode);let de=u.size,ze=W7e(Q,Be.impliedNodeFormat),ut=hs(u,ze,()=>new Map);if(hi){u.size>de&&hi.instant(hi.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:Ce.configFilePath,key:ze});let Ve=!sf(G)&&Ad(u,(nt,It)=>It!==ze&&nt.has(G)&&It);Ve&&hi.instant(hi.Phase.Session,"documentRegistryBucketOverlap",{path:G,key1:Ve,key2:ze})}let je=ut.get(G),ve=je&&O(je,me);if(!ve&&c){let Ve=c.getDocument(ze,G);Ve&&Ve.scriptKind===me&&Ve.text===BF(re)&&($.assert(_e),ve={sourceFile:Ve,languageServiceRefCount:0},Le())}if(ve)ve.sourceFile.version!==ae&&(ve.sourceFile=ySe(ve.sourceFile,re,ae,re.getChangeRange(ve.sourceFile.scriptSnapshot)),c&&c.setDocument(ze,G,ve.sourceFile)),_e&&ve.languageServiceRefCount++;else{let Ve=wae(J,re,Be,ae,!1,me);c&&c.setDocument(ze,G,Ve),ve={sourceFile:Ve,languageServiceRefCount:1},Le()}return $.assert(ve.languageServiceRefCount!==0),ve.sourceFile;function Le(){if(!je)ut.set(G,ve);else if(aQ(je)){let Ve=new Map;Ve.set(je.sourceFile.scriptKind,je),Ve.set(me,ve),ut.set(G,Ve)}else je.set(me,ve)}}function M(J,G,Z,Q){let re=wl(J,n,_),ae=Bve(G);return U(re,ae,Z,Q)}function U(J,G,Z,Q){let re=$.checkDefined(u.get(W7e(G,Q))),ae=re.get(J),_e=O(ae,Z);_e.languageServiceRefCount--,$.assert(_e.languageServiceRefCount>=0),_e.languageServiceRefCount===0&&(aQ(ae)?re.delete(J):(ae.delete(Z),ae.size===1&&re.set(J,pt(ae.values(),vl))))}return{acquireDocument:g,acquireDocumentWithKey:k,updateDocument:T,updateDocumentWithKey:C,releaseDocument:M,releaseDocumentWithKey:U,getKeyForCompilationSettings:Bve,getDocumentRegistryBucketKeyWithMode:W7e,reportStats:f,getBuckets:()=>u}}function Bve(t){return wye(t,_ye)}function W7e(t,n){return n?`${t}|${n}`:t}function G7e(t,n,a,c,u,_,f){let y=K4(c),g=_d(y),k=$ve(n,a,g,f),T=$ve(a,n,g,f);return ki.ChangeTracker.with({host:c,formatContext:u,preferences:_},C=>{Rlr(t,C,k,n,a,c.getCurrentDirectory(),y),Llr(t,C,k,T,c,g)})}function $ve(t,n,a,c){let u=a(t);return f=>{let y=c&&c.tryGetSourcePosition({fileName:f,pos:0}),g=_(y?y.fileName:f);return y?g===void 0?void 0:Flr(y.fileName,g,f,a):g};function _(f){if(a(f)===u)return n;let y=qhe(f,u,a);return y===void 0?void 0:n+"/"+y}}function Flr(t,n,a,c){let u=Vk(t,n,c);return H7e(mo(a),u)}function Rlr(t,n,a,c,u,_,f){let{configFile:y}=t.getCompilerOptions();if(!y)return;let g=mo(y.fileName),k=fU(y);if(!k)return;K7e(k,(F,M)=>{switch(M){case"files":case"include":case"exclude":{if(T(F)||M!=="include"||!qf(F.initializer))return;let J=Wn(F.initializer.elements,Z=>Ic(Z)?Z.text:void 0);if(J.length===0)return;let G=dne(g,[],J,f,_);mE($.checkDefined(G.includeFilePattern),f).test(c)&&!mE($.checkDefined(G.includeFilePattern),f).test(u)&&n.insertNodeAfter(y,Sn(F.initializer.elements),W.createStringLiteral(O(u)));return}case"compilerOptions":K7e(F.initializer,(U,J)=>{let G=mye(J);$.assert(G?.type!=="listOrElement"),G&&(G.isFilePath||G.type==="list"&&G.element.isFilePath)?T(U):J==="paths"&&K7e(U.initializer,Z=>{if(qf(Z.initializer))for(let Q of Z.initializer.elements)C(Q)})});return}});function T(F){let M=qf(F.initializer)?F.initializer.elements:[F.initializer],U=!1;for(let J of M)U=C(J)||U;return U}function C(F){if(!Ic(F))return!1;let M=H7e(g,F.text),U=a(M);return U!==void 0?(n.replaceRangeWithText(y,Hft(F,y),O(U)),!0):!1}function O(F){return lh(g,F,!f)}}function Llr(t,n,a,c,u,_){let f=t.getSourceFiles();for(let y of f){let g=a(y.fileName),k=g??y.fileName,T=mo(k),C=c(y.fileName),O=C||y.fileName,F=mo(O),M=g!==void 0||C!==void 0;Blr(y,n,U=>{if(!ch(U))return;let J=H7e(F,U),G=a(J);return G===void 0?void 0:Tx(lh(T,G,_))},U=>{let J=t.getTypeChecker().getSymbolAtLocation(U);if(J?.declarations&&J.declarations.some(Z=>Gm(Z)))return;let G=C!==void 0?Gft(U,h3(U.text,O,t.getCompilerOptions(),u),a,f):jlr(J,U,y,t,u,a);return G!==void 0&&(G.updated||M&&ch(U.text))?QT.updateModuleSpecifier(t.getCompilerOptions(),y,k,G.newFileName,BA(t,u),U.text):void 0})}}function Mlr(t,n){return Qs(Xi(t,n))}function H7e(t,n){return Tx(Mlr(t,n))}function jlr(t,n,a,c,u,_){if(t){let f=wt(t.declarations,Ta).fileName,y=_(f);return y===void 0?{newFileName:f,updated:!1}:{newFileName:y,updated:!0}}else{let f=c.getModeForUsageLocation(a,n),y=u.resolveModuleNameLiterals||!u.resolveModuleNames?c.getResolvedModuleFromModuleSpecifier(n,a):u.getResolvedModuleWithFailedLookupLocationsFromCache&&u.getResolvedModuleWithFailedLookupLocationsFromCache(n.text,a.fileName,f);return Gft(n,y,_,c.getSourceFiles())}}function Gft(t,n,a,c){if(!n)return;if(n.resolvedModule){let g=y(n.resolvedModule.resolvedFileName);if(g)return g}let u=X(n.failedLookupLocations,_)||ch(t.text)&&X(n.failedLookupLocations,f);if(u)return u;return n.resolvedModule&&{newFileName:n.resolvedModule.resolvedFileName,updated:!1};function _(g){let k=a(g);return k&&wt(c,T=>T.fileName===k)?f(g):void 0}function f(g){return au(g,"/package.json")?void 0:y(g)}function y(g){let k=a(g);return k&&{newFileName:k,updated:!0}}}function Blr(t,n,a,c){for(let u of t.referencedFiles||j){let _=a(u.fileName);_!==void 0&&_!==t.text.slice(u.pos,u.end)&&n.replaceRangeWithText(t,u,_)}for(let u of t.imports){let _=c(u);_!==void 0&&_!==u.text&&n.replaceRangeWithText(t,Hft(u,t),_)}}function Hft(t,n){return y0(t.getStart(n)+1,t.end-1)}function K7e(t,n){if(Lc(t))for(let a of t.properties)td(a)&&Ic(a.name)&&n(a,a.name.text)}var Uve=(t=>(t[t.exact=0]="exact",t[t.prefix=1]="prefix",t[t.substring=2]="substring",t[t.camelCase=3]="camelCase",t))(Uve||{});function oq(t,n){return{kind:t,isCaseSensitive:n}}function Q7e(t){let n=new Map,a=t.trim().split(".").map(c=>qlr(c.trim()));if(a.length===1&&a[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>oq(2,!0),getFullMatch:()=>oq(2,!0),patternContainsDots:!1};if(!a.some(c=>!c.subWordTextChunks.length))return{getFullMatch:(c,u)=>$lr(c,u,a,n),getMatchForLastSegmentOfPattern:c=>Z7e(c,Sn(a),n),patternContainsDots:a.length>1}}function $lr(t,n,a,c){if(!Z7e(n,Sn(a),c)||a.length-1>t.length)return;let _;for(let f=a.length-2,y=t.length-1;f>=0;f-=1,y-=1)_=Zft(_,Z7e(t[y],a[f],c));return _}function Kft(t,n){let a=n.get(t);return a||n.set(t,a=n5e(t)),a}function Qft(t,n,a){let c=Jlr(t,n.textLowerCase);if(c===0)return oq(n.text.length===t.length?0:1,Ca(t,n.text));if(n.isLowerCase){if(c===-1)return;let u=Kft(t,a);for(let _ of u)if(X7e(t,_,n.text,!0))return oq(2,X7e(t,_,n.text,!1));if(n.text.length0)return oq(2,!0);if(n.characterSpans.length>0){let u=Kft(t,a),_=Xft(t,u,n,!1)?!0:Xft(t,u,n,!0)?!1:void 0;if(_!==void 0)return oq(3,_)}}}function Z7e(t,n,a){if(zve(n.totalTextChunk.text,_=>_!==32&&_!==42)){let _=Qft(t,n.totalTextChunk,a);if(_)return _}let c=n.subWordTextChunks,u;for(let _ of c)u=Zft(u,Qft(t,_,a));return u}function Zft(t,n){return bx([t,n],Ulr)}function Ulr(t,n){return t===void 0?1:n===void 0?-1:Br(t.kind,n.kind)||cS(!t.isCaseSensitive,!n.isCaseSensitive)}function X7e(t,n,a,c,u={start:0,length:a.length}){return u.length<=n.length&&rmt(0,u.length,_=>zlr(a.charCodeAt(u.start+_),t.charCodeAt(n.start+_),c))}function zlr(t,n,a){return a?Y7e(t)===Y7e(n):t===n}function Xft(t,n,a,c){let u=a.characterSpans,_=0,f=0,y,g;for(;;){if(f===u.length)return!0;if(_===n.length)return!1;let k=n[_],T=!1;for(;f=65&&t<=90)return!0;if(t<127||!fv(t,99))return!1;let n=String.fromCharCode(t);return n===n.toUpperCase()}function Yft(t){if(t>=97&&t<=122)return!0;if(t<127||!fv(t,99))return!1;let n=String.fromCharCode(t);return n===n.toLowerCase()}function Jlr(t,n){let a=t.length-n.length;for(let c=0;c<=a;c++)if(zve(n,(u,_)=>Y7e(t.charCodeAt(_+c))===u))return c;return-1}function Y7e(t){return t>=65&&t<=90?97+(t-65):t<127?t:String.fromCharCode(t).toLowerCase().charCodeAt(0)}function e5e(t){return t>=48&&t<=57}function Vlr(t){return nM(t)||Yft(t)||e5e(t)||t===95||t===36}function Wlr(t){let n=[],a=0,c=0;for(let u=0;u0&&(n.push(t5e(t.substr(a,c))),c=0)}return c>0&&n.push(t5e(t.substr(a,c))),n}function t5e(t){let n=t.toLowerCase();return{text:t,textLowerCase:n,isLowerCase:t===n,characterSpans:r5e(t)}}function r5e(t){return emt(t,!1)}function n5e(t){return emt(t,!0)}function emt(t,n){let a=[],c=0;for(let u=1;ui5e(c)&&c!==95,n,a)}function Glr(t,n,a){return n!==a&&n+1n(t.charCodeAt(u),u))}function nmt(t,n=!0,a=!1){let c={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},u=[],_,f,y,g=0,k=!1;function T(){return f=y,y=wf.scan(),y===19?g++:y===20&&g--,y}function C(){let ae=wf.getTokenValue(),_e=wf.getTokenStart();return{fileName:ae,pos:_e,end:_e+ae.length}}function O(){_||(_=[]),_.push({ref:C(),depth:g})}function F(){u.push(C()),M()}function M(){g===0&&(k=!0)}function U(){let ae=wf.getToken();return ae===138?(ae=T(),ae===144&&(ae=T(),ae===11&&O()),!0):!1}function J(){if(f===25)return!1;let ae=wf.getToken();if(ae===102){if(ae=T(),ae===21){if(ae=T(),ae===11||ae===15)return F(),!0}else{if(ae===11)return F(),!0;if(ae===156&&wf.lookAhead(()=>{let me=wf.scan();return me!==161&&(me===42||me===19||me===80||Uh(me))})&&(ae=T()),ae===80||Uh(ae))if(ae=T(),ae===161){if(ae=T(),ae===11)return F(),!0}else if(ae===64){if(Z(!0))return!0}else if(ae===28)ae=T();else return!0;if(ae===19){for(ae=T();ae!==20&&ae!==1;)ae=T();ae===20&&(ae=T(),ae===161&&(ae=T(),ae===11&&F()))}else ae===42&&(ae=T(),ae===130&&(ae=T(),(ae===80||Uh(ae))&&(ae=T(),ae===161&&(ae=T(),ae===11&&F()))))}return!0}return!1}function G(){let ae=wf.getToken();if(ae===95){if(M(),ae=T(),ae===156&&wf.lookAhead(()=>{let me=wf.scan();return me===42||me===19})&&(ae=T()),ae===19){for(ae=T();ae!==20&&ae!==1;)ae=T();ae===20&&(ae=T(),ae===161&&(ae=T(),ae===11&&F()))}else if(ae===42)ae=T(),ae===161&&(ae=T(),ae===11&&F());else if(ae===102&&(ae=T(),ae===156&&wf.lookAhead(()=>{let me=wf.scan();return me===80||Uh(me)})&&(ae=T()),(ae===80||Uh(ae))&&(ae=T(),ae===64&&Z(!0))))return!0;return!0}return!1}function Z(ae,_e=!1){let me=ae?T():wf.getToken();return me===149?(me=T(),me===21&&(me=T(),(me===11||_e&&me===15)&&F()),!0):!1}function Q(){let ae=wf.getToken();if(ae===80&&wf.getTokenValue()==="define"){if(ae=T(),ae!==21)return!0;if(ae=T(),ae===11||ae===15)if(ae=T(),ae===28)ae=T();else return!0;if(ae!==23)return!0;for(ae=T();ae!==24&&ae!==1;)(ae===11||ae===15)&&F(),ae=T();return!0}return!1}function re(){for(wf.setText(t),T();wf.getToken()!==1;){if(wf.getToken()===16){let ae=[wf.getToken()];e:for(;te(ae);){let _e=wf.scan();switch(_e){case 1:break e;case 102:J();break;case 16:ae.push(_e);break;case 19:te(ae)&&ae.push(_e);break;case 20:te(ae)&&(Yr(ae)===16?wf.reScanTemplateToken(!1)===18&&ae.pop():ae.pop());break}}T()}U()||J()||G()||a&&(Z(!1,!0)||Q())||T()}wf.setText(void 0)}if(n&&re(),sye(c,t),cye(c,zs),k){if(_)for(let ae of _)u.push(ae.ref);return{referencedFiles:c.referencedFiles,typeReferenceDirectives:c.typeReferenceDirectives,libReferenceDirectives:c.libReferenceDirectives,importedFiles:u,isLibFile:!!c.hasNoDefaultLib,ambientExternalModules:void 0}}else{let ae;if(_)for(let _e of _)_e.depth===0?(ae||(ae=[]),ae.push(_e.ref.fileName)):u.push(_e.ref);return{referencedFiles:c.referencedFiles,typeReferenceDirectives:c.typeReferenceDirectives,libReferenceDirectives:c.libReferenceDirectives,importedFiles:u,isLibFile:!!c.hasNoDefaultLib,ambientExternalModules:ae}}}var Klr=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function o5e(t){let n=_d(t.useCaseSensitiveFileNames()),a=t.getCurrentDirectory(),c=new Map,u=new Map;return{tryGetSourcePosition:y,tryGetGeneratedPosition:g,toLineColumnOffset:O,clearCache:F,documentPositionMappers:u};function _(M){return wl(M,a,n)}function f(M,U){let J=_(M),G=u.get(J);if(G)return G;let Z;if(t.getDocumentPositionMapper)Z=t.getDocumentPositionMapper(M,U);else if(t.readFile){let Q=C(M);Z=Q&&qve({getSourceFileLike:C,getCanonicalFileName:n,log:re=>t.log(re)},M,Yye(Q.text,Ry(Q)),re=>!t.fileExists||t.fileExists(re)?t.readFile(re):void 0)}return u.set(J,Z||t0e),Z||t0e}function y(M){if(!sf(M.fileName)||!k(M.fileName))return;let J=f(M.fileName).getSourcePosition(M);return!J||J===M?void 0:y(J)||J}function g(M){if(sf(M.fileName))return;let U=k(M.fileName);if(!U)return;let J=t.getProgram();if(J.isSourceOfProjectReferenceRedirect(U.fileName))return;let Z=J.getCompilerOptions().outFile,Q=Z?Qm(Z)+".d.ts":Bre(M.fileName,J.getCompilerOptions(),J);if(Q===void 0)return;let re=f(Q,M.fileName).getGeneratedPosition(M);return re===M?void 0:re}function k(M){let U=t.getProgram();if(!U)return;let J=_(M),G=U.getSourceFileByPath(J);return G&&G.resolvedPath===J?G:void 0}function T(M){let U=_(M),J=c.get(U);if(J!==void 0)return J||void 0;if(!t.readFile||t.fileExists&&!t.fileExists(M)){c.set(U,!1);return}let G=t.readFile(M),Z=G?Qlr(G):!1;return c.set(U,Z),Z||void 0}function C(M){return t.getSourceFileLike?t.getSourceFileLike(M):k(M)||T(M)}function O(M,U){return C(M).getLineAndCharacterOfPosition(U)}function F(){c.clear(),u.clear()}}function qve(t,n,a,c){let u=O8e(a);if(u){let y=Klr.exec(u);if(y){if(y[1]){let g=y[1];return imt(t,d4e(f_,g),n)}u=void 0}}let _=[];u&&_.push(u),_.push(n+".map");let f=u&&za(u,mo(n));for(let y of _){let g=za(y,mo(n)),k=c(g,f);if(Ni(k))return imt(t,k,g);if(k!==void 0)return k||void 0}}function imt(t,n,a){let c=F8e(n);if(!(!c||!c.sources||!c.file||!c.mappings)&&!(c.sourcesContent&&c.sourcesContent.some(Ni)))return L8e(t,c,a)}function Qlr(t,n){return{text:t,lineMap:n,getLineAndCharacterOfPosition(a){return aE(Ry(this),a)}}}var a5e=new Map;function Jve(t,n,a){var c;n.getSemanticDiagnostics(t,a);let u=[],_=n.getTypeChecker();!(n.getImpliedNodeFormatForEmit(t)===1||_p(t.fileName,[".cts",".cjs"]))&&t.commonJsModuleIndicator&&(g7e(n)||ive(n.getCompilerOptions()))&&Zlr(t)&&u.push(xi(tur(t.commonJsModuleIndicator),x.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let y=ph(t);if(a5e.clear(),g(t),iF(n.getCompilerOptions()))for(let k of t.imports){let T=bU(k);if(gd(T)&&ko(T,32))continue;let C=Xlr(T);if(!C)continue;let O=(c=n.getResolvedModuleFromModuleSpecifier(k,t))==null?void 0:c.resolvedModule,F=O&&n.getSourceFile(O.resolvedFileName);F&&F.externalModuleIndicator&&F.externalModuleIndicator!==!0&&Xu(F.externalModuleIndicator)&&F.externalModuleIndicator.isExportEquals&&u.push(xi(C,x.Import_may_be_converted_to_a_default_import))}return En(u,t.bindSuggestionDiagnostics),En(u,n.getSuggestionDiagnostics(t,a)),u.sort((k,T)=>k.start-T.start),u;function g(k){if(y)nur(k,_)&&u.push(xi(Oo(k.parent)?k.parent.name:k,x.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(h_(k)&&k.parent===t&&k.declarationList.flags&2&&k.declarationList.declarations.length===1){let C=k.declarationList.declarations[0].initializer;C&&$h(C,!0)&&u.push(xi(C,x.require_call_may_be_converted_to_an_import))}let T=Im.getJSDocTypedefNodes(k);for(let C of T)u.push(xi(C,x.JSDoc_typedef_may_be_converted_to_TypeScript_type));Im.parameterShouldGetTypeFromJSDoc(k)&&u.push(xi(k.name||k,x.JSDoc_types_may_be_moved_to_TypeScript_types))}Gve(k)&&Ylr(k,_,u),k.forEachChild(g)}}function Zlr(t){return t.statements.some(n=>{switch(n.kind){case 244:return n.declarationList.declarations.some(a=>!!a.initializer&&$h(omt(a.initializer),!0));case 245:{let{expression:a}=n;if(!wi(a))return $h(a,!0);let c=m_(a);return c===1||c===2}default:return!1}})}function omt(t){return no(t)?omt(t.expression):t}function Xlr(t){switch(t.kind){case 273:let{importClause:n,moduleSpecifier:a}=t;return n&&!n.name&&n.namedBindings&&n.namedBindings.kind===275&&Ic(a)?n.namedBindings.name:void 0;case 272:return t.name;default:return}}function Ylr(t,n,a){eur(t,n)&&!a5e.has(lmt(t))&&a.push(xi(!t.name&&Oo(t.parent)&&ct(t.parent.name)?t.parent.name:t,x.This_may_be_converted_to_an_async_function))}function eur(t,n){return!CU(t)&&t.body&&Vs(t.body)&&rur(t.body,n)&&Vve(t,n)}function Vve(t,n){let a=n.getSignatureFromDeclaration(t),c=a?n.getReturnTypeOfSignature(a):void 0;return!!c&&!!n.getPromisedTypeOfPromise(c)}function tur(t){return wi(t)?t.left:t}function rur(t,n){return!!sC(t,a=>fae(a,n))}function fae(t,n){return gy(t)&&!!t.expression&&Wve(t.expression,n)}function Wve(t,n){if(!amt(t)||!smt(t)||!t.arguments.every(c=>cmt(c,n)))return!1;let a=t.expression.expression;for(;amt(a)||no(a);)if(Js(a)){if(!smt(a)||!a.arguments.every(c=>cmt(c,n)))return!1;a=a.expression.expression}else a=a.expression;return!0}function amt(t){return Js(t)&&($K(t,"then")||$K(t,"catch")||$K(t,"finally"))}function smt(t){let n=t.expression.name.text,a=n==="then"?2:n==="catch"||n==="finally"?1:0;return t.arguments.length>a?!1:t.arguments.lengthc.kind===106||ct(c)&&c.text==="undefined")}function cmt(t,n){switch(t.kind){case 263:case 219:if(A_(t)&1)return!1;case 220:a5e.set(lmt(t),!0);case 106:return!0;case 80:case 212:{let c=n.getSymbolAtLocation(t);return c?n.isUndefinedSymbol(c)||Pt($f(c,n).declarations,u=>Rs(u)||lE(u)&&!!u.initializer&&Rs(u.initializer)):!1}default:return!1}}function lmt(t){return`${t.pos.toString()}:${t.end.toString()}`}function nur(t,n){var a,c,u,_;if(bu(t)){if(Oo(t.parent)&&((a=t.symbol.members)!=null&&a.size))return!0;let f=n.getSymbolOfExpando(t,!1);return!!(f&&((c=f.exports)!=null&&c.size||(u=f.members)!=null&&u.size))}return i_(t)?!!((_=t.symbol.members)!=null&&_.size):!1}function Gve(t){switch(t.kind){case 263:case 175:case 219:case 220:return!0;default:return!1}}var iur=new Set(["isolatedModules"]);function s5e(t,n){return pmt(t,n,!1)}function umt(t,n){return pmt(t,n,!0)}var our=`/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number {} +interface Object {} +interface RegExp {} +interface String {} +interface Array { length: number; [n: number]: T; } +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +}`,mae="lib.d.ts",c5e;function pmt(t,n,a){c5e??(c5e=DF(mae,our,{languageVersion:99}));let c=[],u=n.compilerOptions?Hve(n.compilerOptions,c):{},_=Aae();for(let U in _)Ho(_,U)&&u[U]===void 0&&(u[U]=_[U]);for(let U of RNe)u.verbatimModuleSyntax&&iur.has(U.name)||(u[U.name]=U.transpileOptionValue);u.suppressOutputPathCheck=!0,u.allowNonTsExtensions=!0,a?(u.declaration=!0,u.emitDeclarationOnly=!0,u.isolatedDeclarations=!0):(u.declaration=!1,u.declarationMap=!1);let f=fE(u),y={getSourceFile:U=>U===Qs(g)?k:U===Qs(mae)?c5e:void 0,writeFile:(U,J)=>{Au(U,".map")?($.assertEqual(C,void 0,"Unexpected multiple source map outputs, file:",U),C=J):($.assertEqual(T,void 0,"Unexpected multiple outputs, file:",U),T=J)},getDefaultLibFileName:()=>mae,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:U=>U,getCurrentDirectory:()=>"",getNewLine:()=>f,fileExists:U=>U===g||!!a&&U===mae,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},g=n.fileName||(n.compilerOptions&&n.compilerOptions.jsx?"module.tsx":"module.ts"),k=DF(g,t,{languageVersion:$c(u),impliedNodeFormat:AK(wl(g,"",y.getCanonicalFileName),void 0,y,u),setExternalModuleIndicator:dH(u),jsDocParsingMode:n.jsDocParsingMode??0});n.moduleName&&(k.moduleName=n.moduleName),n.renamedDependencies&&(k.renamedDependencies=new Map(Object.entries(n.renamedDependencies)));let T,C,F=wK(a?[g,mae]:[g],u,y);n.reportDiagnostics&&(En(c,F.getSyntacticDiagnostics(k)),En(c,F.getOptionsDiagnostics()));let M=F.emit(void 0,void 0,void 0,a,n.transformers,a);return En(c,M.diagnostics),T===void 0?$.fail("Output generation failed"):{outputText:T,diagnostics:c,sourceMapText:C}}function _mt(t,n,a,c,u){let _=s5e(t,{compilerOptions:n,fileName:a,reportDiagnostics:!!c,moduleName:u});return En(c,_.diagnostics),_.outputText}var l5e;function Hve(t,n){l5e=l5e||yr(Q1,a=>typeof a.type=="object"&&!Ad(a.type,c=>typeof c!="number")),t=X1e(t);for(let a of l5e){if(!Ho(t,a.name))continue;let c=t[a.name];Ni(c)?t[a.name]=_ie(a,c,n):Ad(a.type,u=>u===c)||n.push(MNe(a))}return t}var u5e={};d(u5e,{getNavigateToItems:()=>dmt});function dmt(t,n,a,c,u,_,f){let y=Q7e(c);if(!y)return j;let g=[],k=t.length===1?t[0]:void 0;for(let T of t)a.throwIfCancellationRequested(),!(_&&T.isDeclarationFile)&&(fmt(T,!!f,k)||T.getNamedDeclarations().forEach((C,O)=>{aur(y,O,C,n,T.fileName,!!f,k,g)}));return g.sort(uur),(u===void 0?g:g.slice(0,u)).map(pur)}function fmt(t,n,a){return t!==a&&n&&(tQ(t.path)||t.hasNoDefaultLib)}function aur(t,n,a,c,u,_,f,y){let g=t.getMatchForLastSegmentOfPattern(n);if(g){for(let k of a)if(sur(k,c,_,f))if(t.patternContainsDots){let T=t.getFullMatch(lur(k),n);T&&y.push({name:n,fileName:u,matchKind:T.kind,isCaseSensitive:T.isCaseSensitive,declaration:k})}else y.push({name:n,fileName:u,matchKind:g.kind,isCaseSensitive:g.isCaseSensitive,declaration:k})}}function sur(t,n,a,c){var u;switch(t.kind){case 274:case 277:case 272:let _=n.getSymbolAtLocation(t.name),f=n.getAliasedSymbol(_);return _.escapedName!==f.escapedName&&!((u=f.declarations)!=null&&u.every(y=>fmt(y.getSourceFile(),a,c)));default:return!0}}function cur(t,n){let a=cs(t);return!!a&&(mmt(a,n)||a.kind===168&&p5e(a.expression,n))}function p5e(t,n){return mmt(t,n)||no(t)&&(n.push(t.name.text),!0)&&p5e(t.expression,n)}function mmt(t,n){return SS(t)&&(n.push(g0(t)),!0)}function lur(t){let n=[],a=cs(t);if(a&&a.kind===168&&!p5e(a.expression,n))return j;n.shift();let c=T3(t);for(;c;){if(!cur(c,n))return j;c=T3(c)}return n.reverse(),n}function uur(t,n){return Br(t.matchKind,n.matchKind)||Rk(t.name,n.name)}function pur(t){let n=t.declaration,a=T3(n),c=a&&cs(a);return{name:t.name,kind:NP(n),kindModifiers:Kz(n),matchKind:Uve[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:yh(n),containerName:c?c.text:"",containerKind:c?NP(a):""}}var _5e={};d(_5e,{getNavigationBarItems:()=>gmt,getNavigationTree:()=>ymt});var _ur=/\s+/g,d5e=150,Kve,sQ,hae=[],DE,hmt=[],iM,f5e=[];function gmt(t,n){Kve=n,sQ=t;try{return Cr(gur(bmt(t)),yur)}finally{vmt()}}function ymt(t,n){Kve=n,sQ=t;try{return Imt(bmt(t))}finally{vmt()}}function vmt(){sQ=void 0,Kve=void 0,hae=[],DE=void 0,f5e=[]}function gae(t){return aq(t.getText(sQ))}function Qve(t){return t.node.kind}function Smt(t,n){t.children?t.children.push(n):t.children=[n]}function bmt(t){$.assert(!hae.length);let n={node:t,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};DE=n;for(let a of t.statements)zF(a);return $A(),$.assert(!DE&&!hae.length),n}function RP(t,n){Smt(DE,m5e(t,n))}function m5e(t,n){return{node:t,name:n||(Vd(t)||Vt(t)?cs(t):void 0),additionalNodes:void 0,parent:DE,children:void 0,indent:DE.indent+1}}function xmt(t){iM||(iM=new Map),iM.set(t,!0)}function Tmt(t){for(let n=0;n0;c--){let u=a[c];LP(t,u)}return[a.length-1,a[0]]}function LP(t,n){let a=m5e(t,n);Smt(DE,a),hae.push(DE),hmt.push(iM),iM=void 0,DE=a}function $A(){DE.children&&(Zve(DE.children,DE),y5e(DE.children)),DE=hae.pop(),iM=hmt.pop()}function UA(t,n,a){LP(t,a),zF(n),$A()}function kmt(t){t.initializer&&Sur(t.initializer)?(LP(t),Is(t.initializer,zF),$A()):UA(t,t.initializer)}function h5e(t){let n=cs(t);if(n===void 0)return!1;if(dc(n)){let a=n.expression;return ru(a)||qh(a)||jy(a)}return!!n}function zF(t){if(Kve.throwIfCancellationRequested(),!(!t||PO(t)))switch(t.kind){case 177:let n=t;UA(n,n.body);for(let f of n.parameters)ne(f,n)&&RP(f);break;case 175:case 178:case 179:case 174:h5e(t)&&UA(t,t.body);break;case 173:h5e(t)&&kmt(t);break;case 172:h5e(t)&&RP(t);break;case 274:let a=t;a.name&&RP(a.name);let{namedBindings:c}=a;if(c)if(c.kind===275)RP(c);else for(let f of c.elements)RP(f);break;case 305:UA(t,t.name);break;case 306:let{expression:u}=t;ct(u)?RP(t,u):RP(t);break;case 209:case 304:case 261:{let f=t;$s(f.name)?zF(f.name):kmt(f);break}case 263:let _=t.name;_&&ct(_)&&xmt(_.text),UA(t,t.body);break;case 220:case 219:UA(t,t.body);break;case 267:LP(t);for(let f of t.members)vur(f)||RP(f);$A();break;case 264:case 232:case 265:LP(t);for(let f of t.members)zF(f);$A();break;case 268:UA(t,Nmt(t).body);break;case 278:{let f=t.expression,y=Lc(f)||Js(f)?f:Iu(f)||bu(f)?f.body:void 0;y?(LP(t),zF(y),$A()):RP(t);break}case 282:case 272:case 182:case 180:case 181:case 266:RP(t);break;case 214:case 227:{let f=m_(t);switch(f){case 1:case 2:UA(t,t.right);return;case 6:case 3:{let y=t,g=y.left,k=f===3?g.expression:g,T=0,C;ct(k.expression)?(xmt(k.expression.text),C=k.expression):[T,C]=Emt(y,k.expression),f===6?Lc(y.right)&&y.right.properties.length>0&&(LP(y,C),Is(y.right,zF),$A()):bu(y.right)||Iu(y.right)?UA(t,y.right,C):(LP(y,C),UA(t,y.right,g.name),$A()),Tmt(T);return}case 7:case 9:{let y=t,g=f===7?y.arguments[0]:y.arguments[0].expression,k=y.arguments[1],[T,C]=Emt(t,g);LP(t,C),LP(t,qt(W.createIdentifier(k.text),k)),zF(t.arguments[2]),$A(),$A(),Tmt(T);return}case 5:{let y=t,g=y.left,k=g.expression;if(ct(k)&&BT(g)!=="prototype"&&iM&&iM.has(k.text)){bu(y.right)||Iu(y.right)?UA(t,y.right,k):nP(g)&&(LP(y,k),UA(y.left,y.right,$G(g)),$A());return}break}case 4:case 0:case 8:break;default:$.assertNever(f)}}default:hy(t)&&X(t.jsDoc,f=>{X(f.tags,y=>{n1(y)&&RP(y)})}),Is(t,zF)}}function Zve(t,n){let a=new Map;co(t,(c,u)=>{let _=c.name||cs(c.node),f=_&&gae(_);if(!f)return!0;let y=a.get(f);if(!y)return a.set(f,c),!0;if(y instanceof Array){for(let g of y)if(Cmt(g,c,u,n))return!1;return y.push(c),!0}else{let g=y;return Cmt(g,c,u,n)?!1:(a.set(f,[g,c]),!0)}})}var cQ={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function dur(t,n,a,c){function u(y){return bu(y)||i_(y)||Oo(y)}let _=wi(n.node)||Js(n.node)?m_(n.node):0,f=wi(t.node)||Js(t.node)?m_(t.node):0;if(cQ[_]&&cQ[f]||u(t.node)&&cQ[_]||u(n.node)&&cQ[f]||ed(t.node)&&g5e(t.node)&&cQ[_]||ed(n.node)&&cQ[f]||ed(t.node)&&g5e(t.node)&&u(n.node)||ed(n.node)&&u(t.node)&&g5e(t.node)){let y=t.additionalNodes&&Yr(t.additionalNodes)||t.node;if(!ed(t.node)&&!ed(n.node)||u(t.node)||u(n.node)){let k=u(t.node)?t.node:u(n.node)?n.node:void 0;if(k!==void 0){let T=qt(W.createConstructorDeclaration(void 0,[],void 0),k),C=m5e(T);C.indent=t.indent+1,C.children=t.node===k?t.children:n.children,t.children=t.node===k?go([C],n.children||[n]):go(t.children||[{...t}],[C])}else(t.children||n.children)&&(t.children=go(t.children||[{...t}],n.children||[n]),t.children&&(Zve(t.children,t),y5e(t.children)));y=t.node=qt(W.createClassDeclaration(void 0,t.name||W.createIdentifier("__class__"),void 0,void 0,[]),t.node)}else t.children=go(t.children,n.children),t.children&&Zve(t.children,t);let g=n.node;return c.children[a-1].node.end===y.end?qt(y,{pos:y.pos,end:g.end}):(t.additionalNodes||(t.additionalNodes=[]),t.additionalNodes.push(qt(W.createClassDeclaration(void 0,t.name||W.createIdentifier("__class__"),void 0,void 0,[]),n.node))),!0}return _!==0}function Cmt(t,n,a,c){return dur(t,n,a,c)?!0:fur(t.node,n.node,c)?(mur(t,n),!0):!1}function fur(t,n,a){if(t.kind!==n.kind||t.parent!==n.parent&&!(Dmt(t,a)&&Dmt(n,a)))return!1;switch(t.kind){case 173:case 175:case 178:case 179:return oc(t)===oc(n);case 268:return Amt(t,n)&&b5e(t)===b5e(n);default:return!0}}function g5e(t){return!!(t.flags&16)}function Dmt(t,n){if(t.parent===void 0)return!1;let a=wS(t.parent)?t.parent.parent:t.parent;return a===n.node||un(n.additionalNodes,a)}function Amt(t,n){return!t.body||!n.body?t.body===n.body:t.body.kind===n.body.kind&&(t.body.kind!==268||Amt(t.body,n.body))}function mur(t,n){t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(n.node),n.additionalNodes&&t.additionalNodes.push(...n.additionalNodes),t.children=go(t.children,n.children),t.children&&(Zve(t.children,t),y5e(t.children))}function y5e(t){t.sort(hur)}function hur(t,n){return Rk(wmt(t.node),wmt(n.node))||Br(Qve(t),Qve(n))}function wmt(t){if(t.kind===268)return Pmt(t);let n=cs(t);if(n&&q_(n)){let a=H4(n);return a&&oa(a)}switch(t.kind){case 219:case 220:case 232:return Fmt(t);default:return}}function v5e(t,n){if(t.kind===268)return aq(Pmt(t));if(n){let a=ct(n)?n.text:mu(n)?`[${gae(n.argumentExpression)}]`:gae(n);if(a.length>0)return aq(a)}switch(t.kind){case 308:let a=t;return yd(a)?`"${kb(t_(Qm(Qs(a.fileName))))}"`:"";case 278:return Xu(t)&&t.isExportEquals?"export=":"default";case 220:case 263:case 219:case 264:case 232:return _E(t)&2048?"default":Fmt(t);case 177:return"constructor";case 181:return"new()";case 180:return"()";case 182:return"[]";default:return""}}function gur(t){let n=[];function a(u){if(c(u)&&(n.push(u),u.children))for(let _ of u.children)a(_)}return a(t),n;function c(u){if(u.children)return!0;switch(Qve(u)){case 264:case 232:case 267:case 265:case 268:case 308:case 266:case 347:case 339:return!0;case 220:case 263:case 219:return _(u);default:return!1}function _(f){if(!f.node.body)return!1;switch(Qve(f.parent)){case 269:case 308:case 175:case 177:return!0;default:return!1}}}}function Imt(t){return{text:v5e(t.node,t.name),kind:NP(t.node),kindModifiers:Omt(t.node),spans:S5e(t),nameSpan:t.name&&x5e(t.name),childItems:Cr(t.children,Imt)}}function yur(t){return{text:v5e(t.node,t.name),kind:NP(t.node),kindModifiers:Omt(t.node),spans:S5e(t),childItems:Cr(t.children,n)||f5e,indent:t.indent,bolded:!1,grayed:!1};function n(a){return{text:v5e(a.node,a.name),kind:NP(a.node),kindModifiers:Kz(a.node),spans:S5e(a),childItems:f5e,indent:0,bolded:!1,grayed:!1}}}function S5e(t){let n=[x5e(t.node)];if(t.additionalNodes)for(let a of t.additionalNodes)n.push(x5e(a));return n}function Pmt(t){return Gm(t)?Sp(t.name):b5e(t)}function b5e(t){let n=[g0(t.name)];for(;t.body&&t.body.kind===268;)t=t.body,n.push(g0(t.name));return n.join(".")}function Nmt(t){return t.body&&I_(t.body)?Nmt(t.body):t}function vur(t){return!t.name||t.name.kind===168}function x5e(t){return t.kind===308?CE(t):yh(t,sQ)}function Omt(t){return t.parent&&t.parent.kind===261&&(t=t.parent),Kz(t)}function Fmt(t){let{parent:n}=t;if(t.name&&gG(t.name)>0)return aq(du(t.name));if(Oo(n))return aq(du(n.name));if(wi(n)&&n.operatorToken.kind===64)return gae(n.left).replace(_ur,"");if(td(n))return gae(n.name);if(_E(t)&2048)return"default";if(Co(t))return"";if(Js(n)){let a=Rmt(n.expression);if(a!==void 0){if(a=aq(a),a.length>d5e)return`${a} callback`;let c=aq(Wn(n.arguments,u=>Sl(u)||FO(u)?u.getText(sQ):void 0).join(", "));return`${a}(${c}) callback`}}return""}function Rmt(t){if(ct(t))return t.text;if(no(t)){let n=Rmt(t.expression),a=t.name.text;return n===void 0?a:`${n}.${a}`}else return}function Sur(t){switch(t.kind){case 220:case 219:case 232:return!0;default:return!1}}function aq(t){return t=t.length>d5e?t.substring(0,d5e)+"...":t,t.replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var qF={};d(qF,{addExportsInOldFile:()=>O5e,addImportsForMovedSymbols:()=>F5e,addNewFileToTsconfig:()=>N5e,addOrRemoveBracesToArrowFunction:()=>mpr,addTargetFileImports:()=>q5e,containsJsx:()=>M5e,convertArrowFunctionOrFunctionExpression:()=>Spr,convertParamsToDestructuredObject:()=>Ppr,convertStringOrTemplateLiteral:()=>Kpr,convertToOptionalChainExpression:()=>o_r,createNewFileName:()=>L5e,doChangeNamedToNamespaceOrDefault:()=>Umt,extractSymbol:()=>Oht,generateGetAccessorAndSetAccessor:()=>z_r,getApplicableRefactors:()=>bur,getEditsForRefactor:()=>xur,getExistingLocals:()=>U5e,getIdentifierForNode:()=>z5e,getNewStatementsAndRemoveFromOldFile:()=>P5e,getStatementsToMove:()=>lQ,getUsageInfo:()=>yae,inferFunctionReturnType:()=>q_r,isInImport:()=>aSe,isRefactorErrorInfo:()=>XT,refactorKindBeginsWith:()=>zA,registerRefactor:()=>Vx});var T5e=new Map;function Vx(t,n){T5e.set(t,n)}function bur(t,n){return so(li(T5e.values(),a=>{var c;return t.cancellationToken&&t.cancellationToken.isCancellationRequested()||!((c=a.kinds)!=null&&c.some(u=>zA(u,t.kind)))?void 0:a.getAvailableActions(t,n)}))}function xur(t,n,a,c){let u=T5e.get(n);return u&&u.getEditsForAction(t,a,c)}var E5e="Convert export",Xve={name:"Convert default export to named export",description:As(x.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},Yve={name:"Convert named export to default export",description:As(x.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};Vx(E5e,{kinds:[Xve.kind,Yve.kind],getAvailableActions:function(n){let a=Lmt(n,n.triggerReason==="invoked");if(!a)return j;if(!XT(a)){let c=a.wasDefault?Xve:Yve;return[{name:E5e,description:c.description,actions:[c]}]}return n.preferences.provideRefactorNotApplicableReason?[{name:E5e,description:As(x.Convert_default_export_to_named_export),actions:[{...Xve,notApplicableReason:a.error},{...Yve,notApplicableReason:a.error}]}]:j},getEditsForAction:function(n,a){$.assert(a===Xve.name||a===Yve.name,"Unexpected action name");let c=Lmt(n);return $.assert(c&&!XT(c),"Expected applicable refactor info"),{edits:ki.ChangeTracker.with(n,_=>Tur(n.file,n.program,c,_,n.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}});function Lmt(t,n=!0){let{file:a,program:c}=t,u=$F(t),_=la(a,u.start),f=_.parent&&_E(_.parent)&32&&n?_.parent:QK(_,a,u);if(!f||!Ta(f.parent)&&!(wS(f.parent)&&Gm(f.parent.parent)))return{error:As(x.Could_not_find_export_statement)};let y=c.getTypeChecker(),g=Aur(f.parent,y),k=_E(f)||(Xu(f)&&!f.isExportEquals?2080:0),T=!!(k&2048);if(!(k&32)||!T&&g.exports.has("default"))return{error:As(x.This_file_already_has_a_default_export)};let C=O=>ct(O)&&y.getSymbolAtLocation(O)?void 0:{error:As(x.Can_only_convert_named_export)};switch(f.kind){case 263:case 264:case 265:case 267:case 266:case 268:{let O=f;return O.name?C(O.name)||{exportNode:O,exportName:O.name,wasDefault:T,exportingModuleSymbol:g}:void 0}case 244:{let O=f;if(!(O.declarationList.flags&2)||O.declarationList.declarations.length!==1)return;let F=To(O.declarationList.declarations);return F.initializer?($.assert(!T,"Can't have a default flag here"),C(F.name)||{exportNode:O,exportName:F.name,wasDefault:T,exportingModuleSymbol:g}):void 0}case 278:{let O=f;return O.isExportEquals?void 0:C(O.expression)||{exportNode:O,exportName:O.expression,wasDefault:T,exportingModuleSymbol:g}}default:return}}function Tur(t,n,a,c,u){Eur(t,a,c,n.getTypeChecker()),kur(n,a,c,u)}function Eur(t,{wasDefault:n,exportNode:a,exportName:c},u,_){if(n)if(Xu(a)&&!a.isExportEquals){let f=a.expression,y=Mmt(f.text,f.text);u.replaceNode(t,a,W.createExportDeclaration(void 0,!1,W.createNamedExports([y])))}else u.delete(t,$.checkDefined(ZL(a,90),"Should find a default keyword in modifier list"));else{let f=$.checkDefined(ZL(a,95),"Should find an export keyword in modifier list");switch(a.kind){case 263:case 264:case 265:u.insertNodeAfter(t,f,W.createToken(90));break;case 244:let y=To(a.declarationList.declarations);if(!Pu.Core.isSymbolReferencedInFile(c,_,t)&&!y.type){u.replaceNode(t,a,W.createExportDefault($.checkDefined(y.initializer,"Initializer was previously known to be present")));break}case 267:case 266:case 268:u.deleteModifier(t,f),u.insertNodeAfter(t,a,W.createExportDefault(W.createIdentifier(c.text)));break;default:$.fail(`Unexpected exportNode kind ${a.kind}`)}}}function kur(t,{wasDefault:n,exportName:a,exportingModuleSymbol:c},u,_){let f=t.getTypeChecker(),y=$.checkDefined(f.getSymbolAtLocation(a),"Export name should resolve to a symbol");Pu.Core.eachExportReference(t.getSourceFiles(),f,_,y,c,a.text,n,g=>{if(a===g)return;let k=g.getSourceFile();n?Cur(k,g,u,a.text):Dur(k,g,u)})}function Cur(t,n,a,c){let{parent:u}=n;switch(u.kind){case 212:a.replaceNode(t,n,W.createIdentifier(c));break;case 277:case 282:{let f=u;a.replaceNode(t,f,k5e(c,f.name.text));break}case 274:{let f=u;$.assert(f.name===n,"Import clause name should match provided ref");let y=k5e(c,n.text),{namedBindings:g}=f;if(!g)a.replaceNode(t,n,W.createNamedImports([y]));else if(g.kind===275){a.deleteRange(t,{pos:n.getStart(t),end:g.getStart(t)});let k=Ic(f.parent.moduleSpecifier)?ave(f.parent.moduleSpecifier,t):1,T=IC(void 0,[k5e(c,n.text)],f.parent.moduleSpecifier,k);a.insertNodeAfter(t,f.parent,T)}else a.delete(t,n),a.insertNodeAtEndOfList(t,g.elements,y);break}case 206:let _=u;a.replaceNode(t,u,W.createImportTypeNode(_.argument,_.attributes,W.createIdentifier(c),_.typeArguments,_.isTypeOf));break;default:$.failBadSyntaxKind(u)}}function Dur(t,n,a){let c=n.parent;switch(c.kind){case 212:a.replaceNode(t,n,W.createIdentifier("default"));break;case 277:{let u=W.createIdentifier(c.name.text);c.parent.elements.length===1?a.replaceNode(t,c.parent,u):(a.delete(t,c),a.insertNodeBefore(t,c.parent,u));break}case 282:{a.replaceNode(t,c,Mmt("default",c.name.text));break}default:$.assertNever(c,`Unexpected parent kind ${c.kind}`)}}function k5e(t,n){return W.createImportSpecifier(!1,t===n?void 0:W.createIdentifier(t),W.createIdentifier(n))}function Mmt(t,n){return W.createExportSpecifier(!1,t===n?void 0:W.createIdentifier(t),W.createIdentifier(n))}function Aur(t,n){if(Ta(t))return t.symbol;let a=t.parent.symbol;return a.valueDeclaration&&eP(a.valueDeclaration)?n.getMergedSymbol(a):a}var C5e="Convert import",eSe={0:{name:"Convert namespace import to named imports",description:As(x.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:As(x.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:As(x.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};Vx(C5e,{kinds:sS(eSe).map(t=>t.kind),getAvailableActions:function(n){let a=jmt(n,n.triggerReason==="invoked");if(!a)return j;if(!XT(a)){let c=eSe[a.convertTo];return[{name:C5e,description:c.description,actions:[c]}]}return n.preferences.provideRefactorNotApplicableReason?sS(eSe).map(c=>({name:C5e,description:c.description,actions:[{...c,notApplicableReason:a.error}]})):j},getEditsForAction:function(n,a){$.assert(Pt(sS(eSe),_=>_.name===a),"Unexpected action name");let c=jmt(n);return $.assert(c&&!XT(c),"Expected applicable refactor info"),{edits:ki.ChangeTracker.with(n,_=>wur(n.file,n.program,_,c)),renameFilename:void 0,renameLocation:void 0}}});function jmt(t,n=!0){let{file:a}=t,c=$F(t),u=la(a,c.start),_=n?fn(u,jf(fp,OS)):QK(u,a,c);if(_===void 0||!(fp(_)||OS(_)))return{error:"Selection is not an import declaration."};let f=c.start+c.length,y=OP(_,_.parent,a);if(y&&f>y.getStart())return;let{importClause:g}=_;return g?g.namedBindings?g.namedBindings.kind===275?{convertTo:0,import:g.namedBindings}:Bmt(t.program,g)?{convertTo:1,import:g.namedBindings}:{convertTo:2,import:g.namedBindings}:{error:As(x.Could_not_find_namespace_import_or_named_imports)}:{error:As(x.Could_not_find_import_clause)}}function Bmt(t,n){return iF(t.getCompilerOptions())&&Nur(n.parent.moduleSpecifier,t.getTypeChecker())}function wur(t,n,a,c){let u=n.getTypeChecker();c.convertTo===0?Iur(t,u,a,c.import,iF(n.getCompilerOptions())):Umt(t,n,a,c.import,c.convertTo===1)}function Iur(t,n,a,c,u){let _=!1,f=[],y=new Map;Pu.Core.eachSymbolReferenceInFile(c.name,n,t,C=>{if(!_G(C.parent))_=!0;else{let O=$mt(C.parent).text;n.resolveName(O,C,-1,!0)&&y.set(O,!0),$.assert(Pur(C.parent)===C,"Parent expression should match id"),f.push(C.parent)}});let g=new Map;for(let C of f){let O=$mt(C).text,F=g.get(O);F===void 0&&g.set(O,F=y.has(O)?k3(O,t):O),a.replaceNode(t,C,W.createIdentifier(F))}let k=[];g.forEach((C,O)=>{k.push(W.createImportSpecifier(!1,C===O?void 0:W.createIdentifier(O),W.createIdentifier(C)))});let T=c.parent.parent;if(_&&!u&&fp(T))a.insertNodeAfter(t,T,zmt(T,void 0,k));else{let C=_?W.createIdentifier(c.name.text):void 0;a.replaceNode(t,c.parent,qmt(C,k))}}function $mt(t){return no(t)?t.name:t.right}function Pur(t){return no(t)?t.expression:t.left}function Umt(t,n,a,c,u=Bmt(n,c.parent)){let _=n.getTypeChecker(),f=c.parent.parent,{moduleSpecifier:y}=f,g=new Set;c.elements.forEach(M=>{let U=_.getSymbolAtLocation(M.name);U&&g.add(U)});let k=y&&Ic(y)?nQ(y.text,99):"module";function T(M){return!!Pu.Core.eachSymbolReferenceInFile(M.name,_,t,U=>{let J=_.resolveName(k,U,-1,!0);return J?g.has(J)?Cm(U.parent):!0:!1})}let O=c.elements.some(T)?k3(k,t):k,F=new Set;for(let M of c.elements){let U=M.propertyName||M.name;Pu.Core.eachSymbolReferenceInFile(M.name,_,t,J=>{let G=U.kind===11?W.createElementAccessExpression(W.createIdentifier(O),W.cloneNode(U)):W.createPropertyAccessExpression(W.createIdentifier(O),W.cloneNode(U));im(J.parent)?a.replaceNode(t,J.parent,W.createPropertyAssignment(J.text,G)):Cm(J.parent)?F.add(M):a.replaceNode(t,J,G)})}if(a.replaceNode(t,c,u?W.createIdentifier(O):W.createNamespaceImport(W.createIdentifier(O))),F.size&&fp(f)){let M=so(F.values(),U=>W.createImportSpecifier(U.isTypeOnly,U.propertyName&&W.cloneNode(U.propertyName),W.cloneNode(U.name)));a.insertNodeAfter(t,c.parent.parent,zmt(f,void 0,M))}}function Nur(t,n){let a=n.resolveExternalModuleName(t);if(!a)return!1;let c=n.resolveExternalModuleSymbol(a);return a!==c}function zmt(t,n,a){return W.createImportDeclaration(void 0,qmt(n,a),t.moduleSpecifier,void 0)}function qmt(t,n){return W.createImportClause(void 0,t,n&&n.length?W.createNamedImports(n):void 0)}var D5e="Extract type",tSe={name:"Extract to type alias",description:As(x.Extract_to_type_alias),kind:"refactor.extract.type"},rSe={name:"Extract to interface",description:As(x.Extract_to_interface),kind:"refactor.extract.interface"},nSe={name:"Extract to typedef",description:As(x.Extract_to_typedef),kind:"refactor.extract.typedef"};Vx(D5e,{kinds:[tSe.kind,rSe.kind,nSe.kind],getAvailableActions:function(n){let{info:a,affectedTextRange:c}=Jmt(n,n.triggerReason==="invoked");return a?XT(a)?n.preferences.provideRefactorNotApplicableReason?[{name:D5e,description:As(x.Extract_type),actions:[{...nSe,notApplicableReason:a.error},{...tSe,notApplicableReason:a.error},{...rSe,notApplicableReason:a.error}]}]:j:[{name:D5e,description:As(x.Extract_type),actions:a.isJS?[nSe]:jt([tSe],a.typeElements&&rSe)}].map(_=>({..._,actions:_.actions.map(f=>({...f,range:c?{start:{line:qs(n.file,c.pos).line,offset:qs(n.file,c.pos).character},end:{line:qs(n.file,c.end).line,offset:qs(n.file,c.end).character}}:void 0}))})):j},getEditsForAction:function(n,a){let{file:c}=n,{info:u}=Jmt(n);$.assert(u&&!XT(u),"Expected to find a range to extract");let _=k3("NewType",c),f=ki.ChangeTracker.with(n,k=>{switch(a){case tSe.name:return $.assert(!u.isJS,"Invalid actionName/JS combo"),Rur(k,c,_,u);case nSe.name:return $.assert(u.isJS,"Invalid actionName/JS combo"),Mur(k,n,c,_,u);case rSe.name:return $.assert(!u.isJS&&!!u.typeElements,"Invalid actionName/JS combo"),Lur(k,c,_,u);default:$.fail("Unexpected action name")}}),y=c.fileName,g=XK(f,y,_,!1);return{edits:f,renameFilename:y,renameLocation:g}}});function Jmt(t,n=!0){let{file:a,startPosition:c}=t,u=ph(a),_=zoe($F(t)),f=_.pos===_.end&&n,y=Our(a,c,_,f);if(!y||!Wo(y))return{info:{error:As(x.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let g=t.program.getTypeChecker(),k=jur(y,u);if(k===void 0)return{info:{error:As(x.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let T=Bur(y,k);if(!Wo(T))return{info:{error:As(x.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let C=[];(SE(T.parent)||vF(T.parent))&&_.end>y.end&&En(C,T.parent.types.filter(J=>Ooe(J,a,_.pos,_.end)));let O=C.length>1?C:T,{typeParameters:F,affectedTextRange:M}=Fur(g,O,k,a);if(!F)return{info:{error:As(x.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let U=iSe(g,O);return{info:{isJS:u,selection:O,enclosingNode:k,typeParameters:F,typeElements:U},affectedTextRange:M}}function Our(t,n,a,c){let u=[()=>la(t,n),()=>KL(t,n,()=>!0)];for(let _ of u){let f=_(),y=Ooe(f,t,a.pos,a.end),g=fn(f,k=>k.parent&&Wo(k)&&!MP(a,k.parent,t)&&(c||y));if(g)return g}}function iSe(t,n){if(n){if(Zn(n)){let a=[];for(let c of n){let u=iSe(t,c);if(!u)return;En(a,u)}return a}if(vF(n)){let a=[],c=new Set;for(let u of n.types){let _=iSe(t,u);if(!_||!_.every(f=>f.name&&o1(c,HK(f.name))))return;En(a,_)}return a}else{if(i3(n))return iSe(t,n.type);if(fh(n))return n.members}}}function MP(t,n,a){return qK(t,_c(a.text,n.pos),n.end)}function Fur(t,n,a,c){let u=[],_=Ll(n),f={pos:_[0].getStart(c),end:_[_.length-1].end};for(let g of _)if(y(g))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:u,affectedTextRange:f};function y(g){if(Ug(g)){if(ct(g.typeName)){let k=g.typeName,T=t.resolveName(k.text,k,262144,!0);for(let C of T?.declarations||j)if(Zu(C)&&C.getSourceFile()===c){if(C.name.escapedText===k.escapedText&&MP(C,f,c))return!0;if(MP(a,C,c)&&!MP(f,C,c)){Zc(u,C);break}}}}else if(n3(g)){let k=fn(g,T=>yP(T)&&MP(T.extendsType,g,c));if(!k||!MP(f,k,c))return!0}else if(gF(g)||lz(g)){let k=fn(g.parent,Rs);if(k&&k.type&&MP(k.type,g,c)&&!MP(f,k,c))return!0}else if(gP(g)){if(ct(g.exprName)){let k=t.resolveName(g.exprName.text,g.exprName,111551,!1);if(k?.valueDeclaration&&MP(a,k.valueDeclaration,c)&&!MP(f,k.valueDeclaration,c))return!0}else if(pC(g.exprName.left)&&!MP(f,g.parent,c))return!0}return c&&yF(g)&&qs(c,g.pos).line===qs(c,g.end).line&&Ai(g,1),Is(g,y)}}function Rur(t,n,a,c){let{enclosingNode:u,typeParameters:_}=c,{firstTypeNode:f,lastTypeNode:y,newTypeNode:g}=A5e(c),k=W.createTypeAliasDeclaration(void 0,a,_.map(T=>W.updateTypeParameterDeclaration(T,T.modifiers,T.name,T.constraint,void 0)),g);t.insertNodeBefore(n,u,Ege(k),!0),t.replaceNodeRange(n,f,y,W.createTypeReferenceNode(a,_.map(T=>W.createTypeReferenceNode(T.name,void 0))),{leadingTriviaOption:ki.LeadingTriviaOption.Exclude,trailingTriviaOption:ki.TrailingTriviaOption.ExcludeWhitespace})}function Lur(t,n,a,c){var u;let{enclosingNode:_,typeParameters:f,typeElements:y}=c,g=W.createInterfaceDeclaration(void 0,a,f,void 0,y);qt(g,(u=y[0])==null?void 0:u.parent),t.insertNodeBefore(n,_,Ege(g),!0);let{firstTypeNode:k,lastTypeNode:T}=A5e(c);t.replaceNodeRange(n,k,T,W.createTypeReferenceNode(a,f.map(C=>W.createTypeReferenceNode(C.name,void 0))),{leadingTriviaOption:ki.LeadingTriviaOption.Exclude,trailingTriviaOption:ki.TrailingTriviaOption.ExcludeWhitespace})}function Mur(t,n,a,c,u){var _;Ll(u.selection).forEach(M=>{Ai(M,7168)});let{enclosingNode:f,typeParameters:y}=u,{firstTypeNode:g,lastTypeNode:k,newTypeNode:T}=A5e(u),C=W.createJSDocTypedefTag(W.createIdentifier("typedef"),W.createJSDocTypeExpression(T),W.createIdentifier(c)),O=[];X(y,M=>{let U=NR(M),J=W.createTypeParameterDeclaration(void 0,M.name),G=W.createJSDocTemplateTag(W.createIdentifier("template"),U&&Ba(U,AA),[J]);O.push(G)});let F=W.createJSDocComment(void 0,W.createNodeArray(go(O,[C])));if(kv(f)){let M=f.getStart(a),U=ZT(n.host,(_=n.formatContext)==null?void 0:_.options);t.insertNodeAt(a,f.getStart(a),F,{suffix:U+U+a.text.slice(Qoe(a.text,M-1),M)})}else t.insertNodeBefore(a,f,F,!0);t.replaceNodeRange(a,g,k,W.createTypeReferenceNode(c,y.map(M=>W.createTypeReferenceNode(M.name,void 0))))}function A5e(t){return Zn(t.selection)?{firstTypeNode:t.selection[0],lastTypeNode:t.selection[t.selection.length-1],newTypeNode:SE(t.selection[0].parent)?W.createUnionTypeNode(t.selection):W.createIntersectionTypeNode(t.selection)}:{firstTypeNode:t.selection,lastTypeNode:t.selection,newTypeNode:t.selection}}function jur(t,n){return fn(t,fa)||(n?fn(t,kv):void 0)}function Bur(t,n){return fn(t,a=>a===n?"quit":!!(SE(a.parent)||vF(a.parent)))??t}var oSe="Move to file",w5e=As(x.Move_to_file),I5e={name:"Move to file",description:w5e,kind:"refactor.move.file"};Vx(oSe,{kinds:[I5e.kind],getAvailableActions:function(n,a){let c=n.file,u=lQ(n);if(!a)return j;if(n.triggerReason==="implicit"&&n.endPosition!==void 0){let _=fn(la(c,n.startPosition),UF),f=fn(la(c,n.endPosition),UF);if(_&&!Ta(_)&&f&&!Ta(f))return j}if(n.preferences.allowTextChangesInNewFiles&&u){let _={start:{line:qs(c,u.all[0].getStart(c)).line,offset:qs(c,u.all[0].getStart(c)).character},end:{line:qs(c,Sn(u.all).end).line,offset:qs(c,Sn(u.all).end).character}};return[{name:oSe,description:w5e,actions:[{...I5e,range:_}]}]}return n.preferences.provideRefactorNotApplicableReason?[{name:oSe,description:w5e,actions:[{...I5e,notApplicableReason:As(x.Selection_is_not_a_valid_statement_or_statements)}]}]:j},getEditsForAction:function(n,a,c){$.assert(a===oSe,"Wrong refactor invoked");let u=$.checkDefined(lQ(n)),{host:_,program:f}=n;$.assert(c,"No interactive refactor arguments available");let y=c.targetFile;return jx(y)||X4(y)?_.fileExists(y)&&f.getSourceFile(y)===void 0?Vmt(As(x.Cannot_move_statements_to_the_selected_file)):{edits:ki.ChangeTracker.with(n,k=>$ur(n,n.file,c.targetFile,n.program,u,k,n.host,n.preferences)),renameFilename:void 0,renameLocation:void 0}:Vmt(As(x.Cannot_move_to_file_selected_file_is_invalid))}});function Vmt(t){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:t}}function $ur(t,n,a,c,u,_,f,y){let g=c.getTypeChecker(),k=!f.fileExists(a),T=k?uae(a,n.externalModuleIndicator?99:n.commonJsModuleIndicator?1:void 0,c,f):$.checkDefined(c.getSourceFile(a)),C=Im.createImportAdder(n,t.program,t.preferences,t.host),O=Im.createImportAdder(T,t.program,t.preferences,t.host);P5e(n,T,yae(n,u.all,g,k?void 0:U5e(T,u.all,g)),_,u,c,f,y,O,C),k&&N5e(c,_,n.fileName,a,UT(f))}function P5e(t,n,a,c,u,_,f,y,g,k){let T=_.getTypeChecker(),C=eO(t.statements,yS),O=!Nve(n.fileName,_,f,!!t.commonJsModuleIndicator),F=Vg(t,y);F5e(a.oldFileImportsFromTargetFile,n.fileName,k,_),zur(t,u.all,a.unusedImportsFromOldFile,k),k.writeFixes(c,F),Uur(t,u.ranges,c),qur(c,_,f,t,a.movedSymbols,n.fileName,F),O5e(t,a.targetFileImportsFromOldFile,c,O),q5e(t,a.oldImportsNeededByTargetFile,a.targetFileImportsFromOldFile,T,_,g),!Ox(n)&&C.length&&c.insertStatementsInNewFile(n.fileName,C,t),g.writeFixes(c,F);let M=Kur(t,u.all,so(a.oldFileImportsFromTargetFile.keys()),O);Ox(n)&&n.statements.length>0?ppr(c,_,M,n,u):Ox(n)?c.insertNodesAtEndOfFile(n,M,!1):c.insertStatementsInNewFile(n.fileName,g.hasFixes()?[4,...M]:M,t)}function N5e(t,n,a,c,u){let _=t.getCompilerOptions().configFile;if(!_)return;let f=Qs(Xi(a,"..",c)),y=Vk(_.fileName,f,u),g=_.statements[0]&&Ci(_.statements[0].expression,Lc),k=g&&wt(g.properties,T=>td(T)&&Ic(T.name)&&T.name.text==="files");k&&qf(k.initializer)&&n.insertNodeInListAfter(_,Sn(k.initializer.elements),W.createStringLiteral(y),k.initializer.elements)}function Uur(t,n,a){for(let{first:c,afterLast:u}of n)a.deleteNodeRangeExcludingEnd(t,c,u)}function zur(t,n,a,c){for(let u of t.statements)un(n,u)||Gmt(u,_=>{Hmt(_,f=>{a.has(f.symbol)&&c.removeExistingImport(f)})})}function O5e(t,n,a,c){let u=QL();n.forEach((_,f)=>{if(f.declarations)for(let y of f.declarations){if(!$5e(y))continue;let g=npr(y);if(!g)continue;let k=Xmt(y);u(k)&&ipr(t,k,g,a,c)}})}function qur(t,n,a,c,u,_,f){let y=n.getTypeChecker();for(let g of n.getSourceFiles())if(g!==c)for(let k of g.statements)Gmt(k,T=>{if(y.getSymbolAtLocation(Gur(T))!==c.symbol)return;let C=J=>{let G=Vc(J.parent)?Hoe(y,J.parent):$f(y.getSymbolAtLocation(J),y);return!!G&&u.has(G)};Qur(g,T,t,C);let O=mb(mo(za(c.fileName,n.getCurrentDirectory())),_);if(ub(!n.useCaseSensitiveFileNames())(O,g.fileName)===0)return;let F=QT.getModuleSpecifier(n.getCompilerOptions(),g,g.fileName,O,BA(n,a)),M=epr(T,Zz(F,f),C);M&&t.insertNodeAfter(g,k,M);let U=Jur(T);U&&Vur(t,g,y,u,F,U,T,f)})}function Jur(t){switch(t.kind){case 273:return t.importClause&&t.importClause.namedBindings&&t.importClause.namedBindings.kind===275?t.importClause.namedBindings.name:void 0;case 272:return t.name;case 261:return Ci(t.name,ct);default:return $.assertNever(t,`Unexpected node kind ${t.kind}`)}}function Vur(t,n,a,c,u,_,f,y){let g=nQ(u,99),k=!1,T=[];if(Pu.Core.eachSymbolReferenceInFile(_,a,n,C=>{no(C.parent)&&(k=k||!!a.resolveName(g,C,-1,!0),c.has(a.getSymbolAtLocation(C.parent.name))&&T.push(C))}),T.length){let C=k?k3(g,n):g;for(let O of T)t.replaceNode(n,O,W.createIdentifier(C));t.insertNodeAfter(n,f,Wur(f,g,u,y))}}function Wur(t,n,a,c){let u=W.createIdentifier(n),_=Zz(a,c);switch(t.kind){case 273:return W.createImportDeclaration(void 0,W.createImportClause(void 0,void 0,W.createNamespaceImport(u)),_,void 0);case 272:return W.createImportEqualsDeclaration(void 0,!1,u,W.createExternalModuleReference(_));case 261:return W.createVariableDeclaration(u,void 0,void 0,Wmt(_));default:return $.assertNever(t,`Unexpected node kind ${t.kind}`)}}function Wmt(t){return W.createCallExpression(W.createIdentifier("require"),void 0,[t])}function Gur(t){return t.kind===273?t.moduleSpecifier:t.kind===272?t.moduleReference.expression:t.initializer.arguments[0]}function Gmt(t,n){if(fp(t))Ic(t.moduleSpecifier)&&n(t);else if(gd(t))WT(t.moduleReference)&&Sl(t.moduleReference.expression)&&n(t);else if(h_(t))for(let a of t.declarationList.declarations)a.initializer&&$h(a.initializer,!0)&&n(a)}function Hmt(t,n){var a,c,u,_,f;if(t.kind===273){if((a=t.importClause)!=null&&a.name&&n(t.importClause),((u=(c=t.importClause)==null?void 0:c.namedBindings)==null?void 0:u.kind)===275&&n(t.importClause.namedBindings),((f=(_=t.importClause)==null?void 0:_.namedBindings)==null?void 0:f.kind)===276)for(let y of t.importClause.namedBindings.elements)n(y)}else if(t.kind===272)n(t);else if(t.kind===261){if(t.name.kind===80)n(t);else if(t.name.kind===207)for(let y of t.name.elements)ct(y.name)&&n(y)}}function F5e(t,n,a,c){for(let[u,_]of t){let f=oae(u,$c(c.getCompilerOptions())),y=u.name==="default"&&u.parent?1:0;a.addImportForNonExistentExport(f,n,y,u.flags,_)}}function Hur(t,n,a,c=2){return W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(t,void 0,n,a)],c))}function Kur(t,n,a,c){return an(n,u=>{if(Qmt(u)&&!Kmt(t,u,c)&&B5e(u,_=>{var f;return a.includes($.checkDefined((f=Ci(_,gv))==null?void 0:f.symbol))})){let _=Zur(Il(u),c);if(_)return _}return Il(u)})}function Kmt(t,n,a,c){var u;return a?!af(n)&&ko(n,32)||!!(c&&t.symbol&&((u=t.symbol.exports)!=null&&u.has(c.escapedText))):!!t.symbol&&!!t.symbol.exports&&R5e(n).some(_=>t.symbol.exports.has(dp(_)))}function Qur(t,n,a,c){if(n.kind===273&&n.importClause){let{name:u,namedBindings:_}=n.importClause;if((!u||c(u))&&(!_||_.kind===276&&_.elements.length!==0&&_.elements.every(f=>c(f.name))))return a.delete(t,n)}Hmt(n,u=>{u.name&&ct(u.name)&&c(u.name)&&a.delete(t,u)})}function Qmt(t){return $.assert(Ta(t.parent),"Node parent should be a SourceFile"),tht(t)||h_(t)}function Zur(t,n){return n?[Xur(t)]:Yur(t)}function Xur(t){let n=l1(t)?go([W.createModifier(95)],Qk(t)):void 0;switch(t.kind){case 263:return W.updateFunctionDeclaration(t,n,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 264:let a=kP(t)?yb(t):void 0;return W.updateClassDeclaration(t,go(a,n),t.name,t.typeParameters,t.heritageClauses,t.members);case 244:return W.updateVariableStatement(t,n,t.declarationList);case 268:return W.updateModuleDeclaration(t,n,t.name,t.body);case 267:return W.updateEnumDeclaration(t,n,t.name,t.members);case 266:return W.updateTypeAliasDeclaration(t,n,t.name,t.typeParameters,t.type);case 265:return W.updateInterfaceDeclaration(t,n,t.name,t.typeParameters,t.heritageClauses,t.members);case 272:return W.updateImportEqualsDeclaration(t,n,t.isTypeOnly,t.name,t.moduleReference);case 245:return $.fail();default:return $.assertNever(t,`Unexpected declaration kind ${t.kind}`)}}function Yur(t){return[t,...R5e(t).map(Zmt)]}function Zmt(t){return W.createExpressionStatement(W.createBinaryExpression(W.createPropertyAccessExpression(W.createIdentifier("exports"),W.createIdentifier(t)),64,W.createIdentifier(t)))}function R5e(t){switch(t.kind){case 263:case 264:return[t.name.text];case 244:return Wn(t.declarationList.declarations,n=>ct(n.name)?n.name.text:void 0);case 268:case 267:case 266:case 265:case 272:return j;case 245:return $.fail("Can't export an ExpressionStatement");default:return $.assertNever(t,`Unexpected decl kind ${t.kind}`)}}function epr(t,n,a){switch(t.kind){case 273:{let c=t.importClause;if(!c)return;let u=c.name&&a(c.name)?c.name:void 0,_=c.namedBindings&&tpr(c.namedBindings,a);return u||_?W.createImportDeclaration(void 0,W.createImportClause(c.phaseModifier,u,_),Il(n),void 0):void 0}case 272:return a(t.name)?t:void 0;case 261:{let c=rpr(t.name,a);return c?Hur(c,t.type,Wmt(n),t.parent.flags):void 0}default:return $.assertNever(t,`Unexpected import kind ${t.kind}`)}}function tpr(t,n){if(t.kind===275)return n(t.name)?t:void 0;{let a=t.elements.filter(c=>n(c.name));return a.length?W.createNamedImports(a):void 0}}function rpr(t,n){switch(t.kind){case 80:return n(t)?t:void 0;case 208:return t;case 207:{let a=t.elements.filter(c=>c.propertyName||!ct(c.name)||n(c.name));return a.length?W.createObjectBindingPattern(a):void 0}}}function npr(t){return af(t)?Ci(t.expression.left.name,ct):Ci(t.name,ct)}function Xmt(t){switch(t.kind){case 261:return t.parent.parent;case 209:return Xmt(Ba(t.parent.parent,n=>Oo(n)||Vc(n)));default:return t}}function ipr(t,n,a,c,u){if(!Kmt(t,n,u,a))if(u)af(n)||c.insertExportModifier(t,n);else{let _=R5e(n);_.length!==0&&c.insertNodesAfter(t,n,_.map(Zmt))}}function L5e(t,n,a,c){let u=n.getTypeChecker();if(c){let _=yae(t,c.all,u),f=mo(t.fileName),y=VU(t.fileName);return Xi(f,cpr(lpr(_.oldFileImportsFromTargetFile,_.movedSymbols),y,f,a))+y}return""}function opr(t){let{file:n}=t,a=zoe($F(t)),{statements:c}=n,u=hr(c,k=>k.end>a.pos);if(u===-1)return;let _=c[u],f=rht(n,_);f&&(u=f.start);let y=hr(c,k=>k.end>=a.end,u);y!==-1&&a.end<=c[y].getStart()&&y--;let g=rht(n,c[y]);return g&&(y=g.end),{toMove:c.slice(u,y===-1?c.length:y+1),afterLast:y===-1?void 0:c[y+1]}}function lQ(t){let n=opr(t);if(n===void 0)return;let a=[],c=[],{toMove:u,afterLast:_}=n;return ou(u,apr,(f,y)=>{for(let g=f;g!!(n.transformFlags&2))}function apr(t){return!spr(t)&&!yS(t)}function spr(t){switch(t.kind){case 273:return!0;case 272:return!ko(t,32);case 244:return t.declarationList.declarations.every(n=>!!n.initializer&&$h(n.initializer,!0));default:return!1}}function yae(t,n,a,c=new Set,u){var _;let f=new Set,y=new Map,g=new Map,k=O(M5e(n));k&&y.set(k,[!1,Ci((_=k.declarations)==null?void 0:_[0],F=>Xm(F)||H1(F)||zx(F)||gd(F)||Vc(F)||Oo(F))]);for(let F of n)B5e(F,M=>{f.add($.checkDefined(af(M)?a.getSymbolAtLocation(M.expression.left):M.symbol,"Need a symbol here"))});let T=new Set;for(let F of n)j5e(F,a,u,(M,U)=>{if(!Pt(M.declarations))return;if(c.has($f(M,a))){T.add(M);return}let J=wt(M.declarations,aSe);if(J){let G=y.get(M);y.set(M,[(G===void 0||G)&&U,Ci(J,Z=>Xm(Z)||H1(Z)||zx(Z)||gd(Z)||Vc(Z)||Oo(Z))])}else!f.has(M)&&ht(M.declarations,G=>$5e(G)&&upr(G)===t)&&g.set(M,U)});for(let F of y.keys())T.add(F);let C=new Map;for(let F of t.statements)un(n,F)||(k&&F.transformFlags&2&&T.delete(k),j5e(F,a,u,(M,U)=>{f.has(M)&&C.set(M,U),T.delete(M)}));return{movedSymbols:f,targetFileImportsFromOldFile:g,oldFileImportsFromTargetFile:C,oldImportsNeededByTargetFile:y,unusedImportsFromOldFile:T};function O(F){if(F===void 0)return;let M=a.getJsxNamespace(F),U=a.resolveName(M,F,1920,!0);return U&&Pt(U.declarations,aSe)?U:void 0}}function cpr(t,n,a,c){let u=t;for(let _=1;;_++){let f=Xi(a,u+n);if(!c.fileExists(f))return u;u=`${t}.${_}`}}function lpr(t,n){return Ix(t,cve)||Ix(n,cve)||"newFile"}function j5e(t,n,a,c){t.forEachChild(function u(_){if(ct(_)&&!Eb(_)){if(a&&!zh(a,_))return;let f=n.getSymbolAtLocation(_);f&&c(f,yA(_))}else _.forEachChild(u)})}function B5e(t,n){switch(t.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return n(t);case 244:return Je(t.declarationList.declarations,a=>eht(a.name,n));case 245:{let{expression:a}=t;return wi(a)&&m_(a)===1?n(t):void 0}}}function aSe(t){switch(t.kind){case 272:case 277:case 274:case 275:return!0;case 261:return Ymt(t);case 209:return Oo(t.parent.parent)&&Ymt(t.parent.parent);default:return!1}}function Ymt(t){return Ta(t.parent.parent.parent)&&!!t.initializer&&$h(t.initializer,!0)}function $5e(t){return tht(t)&&Ta(t.parent)||Oo(t)&&Ta(t.parent.parent.parent)}function upr(t){return Oo(t)?t.parent.parent.parent:t.parent}function eht(t,n){switch(t.kind){case 80:return n(Ba(t.parent,a=>Oo(a)||Vc(a)));case 208:case 207:return Je(t.elements,a=>Id(a)?void 0:eht(a.name,n));default:return $.assertNever(t,`Unexpected name kind ${t.kind}`)}}function tht(t){switch(t.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return!0;default:return!1}}function ppr(t,n,a,c,u){var _;let f=new Set,y=(_=c.symbol)==null?void 0:_.exports;if(y){let k=n.getTypeChecker(),T=new Map;for(let C of u.all)Qmt(C)&&ko(C,32)&&B5e(C,O=>{var F;let M=gv(O)?(F=y.get(O.symbol.escapedName))==null?void 0:F.declarations:void 0,U=Je(M,J=>P_(J)?J:Cm(J)?Ci(J.parent.parent,P_):void 0);U&&U.moduleSpecifier&&T.set(U,(T.get(U)||new Set).add(O))});for(let[C,O]of so(T))if(C.exportClause&&k0(C.exportClause)&&te(C.exportClause.elements)){let F=C.exportClause.elements,M=yr(F,U=>wt($f(U.symbol,k).declarations,J=>$5e(J)&&O.has(J))===void 0);if(te(M)===0){t.deleteNode(c,C),f.add(C);continue}te(M)P_(k)&&!!k.moduleSpecifier&&!f.has(k));g?t.insertNodesBefore(c,g,a,!0):t.insertNodesAfter(c,c.statements[c.statements.length-1],a)}function rht(t,n){if(lu(n)){let a=n.symbol.declarations;if(a===void 0||te(a)<=1||!un(a,n))return;let c=a[0],u=a[te(a)-1],_=Wn(a,g=>Pn(g)===t&&fa(g)?g:void 0),f=hr(t.statements,g=>g.end>=u.end),y=hr(t.statements,g=>g.end>=c.end);return{toMove:_,start:y,end:f}}}function U5e(t,n,a){let c=new Set;for(let u of t.imports){let _=bU(u);if(fp(_)&&_.importClause&&_.importClause.namedBindings&&IS(_.importClause.namedBindings))for(let f of _.importClause.namedBindings.elements){let y=a.getSymbolAtLocation(f.propertyName||f.name);y&&c.add($f(y,a))}if(RG(_.parent)&&$y(_.parent.name))for(let f of _.parent.name.elements){let y=a.getSymbolAtLocation(f.propertyName||f.name);y&&c.add($f(y,a))}}for(let u of n)j5e(u,a,void 0,_=>{let f=$f(_,a);f.valueDeclaration&&Pn(f.valueDeclaration).path===t.path&&c.add(f)});return c}function XT(t){return t.error!==void 0}function zA(t,n){return n?t.substr(0,n.length)===n:!0}function z5e(t,n,a,c){return no(t)&&!Co(n)&&!a.resolveName(t.name.text,t,111551,!1)&&!Aa(t.name)&&!aA(t.name)?t.name.text:k3(Co(n)?"newProperty":"newLocal",c)}function q5e(t,n,a,c,u,_){n.forEach(([f,y],g)=>{var k;let T=$f(g,c);c.isUnknownSymbol(T)?_.addVerbatimImport($.checkDefined(y??fn((k=g.declarations)==null?void 0:k[0],a6e))):T.parent===void 0?($.assert(y!==void 0,"expected module symbol to have a declaration"),_.addImportForModuleSymbol(g,f,y)):_.addImportFromExportedSymbol(T,f,y)}),F5e(a,t.fileName,_,u)}var vae="Inline variable",J5e=As(x.Inline_variable),V5e={name:vae,description:J5e,kind:"refactor.inline.variable"};Vx(vae,{kinds:[V5e.kind],getAvailableActions(t){let{file:n,program:a,preferences:c,startPosition:u,triggerReason:_}=t,f=nht(n,u,_==="invoked",a);return f?qF.isRefactorErrorInfo(f)?c.provideRefactorNotApplicableReason?[{name:vae,description:J5e,actions:[{...V5e,notApplicableReason:f.error}]}]:j:[{name:vae,description:J5e,actions:[V5e]}]:j},getEditsForAction(t,n){$.assert(n===vae,"Unexpected refactor invoked");let{file:a,program:c,startPosition:u}=t,_=nht(a,u,!0,c);if(!_||qF.isRefactorErrorInfo(_))return;let{references:f,declaration:y,replacement:g}=_;return{edits:ki.ChangeTracker.with(t,T=>{for(let C of f){let O=Ic(g)&&ct(C)&&V1(C.parent);O&&vL(O)&&!xA(O.parent.parent)?dpr(T,a,O,g):T.replaceNode(a,C,_pr(C,g))}T.delete(a,y)})}}});function nht(t,n,a,c){var u,_;let f=c.getTypeChecker(),y=Vh(t,n),g=y.parent;if(ct(y)){if(pH(g)&&dU(g)&&ct(g.name)){if(((u=f.getMergedSymbol(g.symbol).declarations)==null?void 0:u.length)!==1)return{error:As(x.Variables_with_multiple_declarations_cannot_be_inlined)};if(iht(g))return;let k=oht(g,f,t);return k&&{references:k,declaration:g,replacement:g.initializer}}if(a){let k=f.resolveName(y.text,y,111551,!1);if(k=k&&f.getMergedSymbol(k),((_=k?.declarations)==null?void 0:_.length)!==1)return{error:As(x.Variables_with_multiple_declarations_cannot_be_inlined)};let T=k.declarations[0];if(!pH(T)||!dU(T)||!ct(T.name)||iht(T))return;let C=oht(T,f,t);return C&&{references:C,declaration:T,replacement:T.initializer}}return{error:As(x.Could_not_find_variable_to_inline)}}}function iht(t){let n=Ba(t.parent.parent,h_);return Pt(n.modifiers,fF)}function oht(t,n,a){let c=[],u=Pu.Core.eachSymbolReferenceInFile(t.name,n,a,_=>{if(Pu.isWriteAccessForReference(_)&&!im(_.parent)||Cm(_.parent)||Xu(_.parent)||gP(_.parent)||Ao(t,_.pos))return!0;c.push(_)});return c.length===0||u?void 0:c}function _pr(t,n){n=Il(n);let{parent:a}=t;return Vt(a)&&(wU(n)fpr(n.file,n.program,c,_,n.host,n,n.preferences)),renameFilename:void 0,renameLocation:void 0}}});function fpr(t,n,a,c,u,_,f){let y=n.getTypeChecker(),g=yae(t,a.all,y),k=L5e(t,n,u,a),T=uae(k,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,n,u),C=Im.createImportAdder(t,_.program,_.preferences,_.host),O=Im.createImportAdder(T,_.program,_.preferences,_.host);P5e(t,T,g,c,a,n,u,f,O,C),N5e(n,c,t.fileName,k,UT(u))}var mpr={},H5e="Convert overload list to single signature",aht=As(x.Convert_overload_list_to_single_signature),sht={name:H5e,description:aht,kind:"refactor.rewrite.function.overloadList"};Vx(H5e,{kinds:[sht.kind],getEditsForAction:gpr,getAvailableActions:hpr});function hpr(t){let{file:n,startPosition:a,program:c}=t;return lht(n,a,c)?[{name:H5e,description:aht,actions:[sht]}]:j}function gpr(t){let{file:n,startPosition:a,program:c}=t,u=lht(n,a,c);if(!u)return;let _=c.getTypeChecker(),f=u[u.length-1],y=f;switch(f.kind){case 174:{y=W.updateMethodSignature(f,f.modifiers,f.name,f.questionToken,f.typeParameters,k(u),f.type);break}case 175:{y=W.updateMethodDeclaration(f,f.modifiers,f.asteriskToken,f.name,f.questionToken,f.typeParameters,k(u),f.type,f.body);break}case 180:{y=W.updateCallSignature(f,f.typeParameters,k(u),f.type);break}case 177:{y=W.updateConstructorDeclaration(f,f.modifiers,k(u),f.body);break}case 181:{y=W.updateConstructSignature(f,f.typeParameters,k(u),f.type);break}case 263:{y=W.updateFunctionDeclaration(f,f.modifiers,f.asteriskToken,f.name,f.typeParameters,k(u),f.type,f.body);break}default:return $.failBadSyntaxKind(f,"Unhandled signature kind in overload list conversion refactoring")}if(y===f)return;return{renameFilename:void 0,renameLocation:void 0,edits:ki.ChangeTracker.with(t,O=>{O.replaceNodeRange(n,u[0],u[u.length-1],y)})};function k(O){let F=O[O.length-1];return lu(F)&&F.body&&(O=O.slice(0,O.length-1)),W.createNodeArray([W.createParameterDeclaration(void 0,W.createToken(26),"args",void 0,W.createUnionTypeNode(Cr(O,T)))])}function T(O){let F=Cr(O.parameters,C);return Ai(W.createTupleTypeNode(F),Pt(F,M=>!!te(_L(M)))?0:1)}function C(O){$.assert(ct(O.name));let F=qt(W.createNamedTupleMember(O.dotDotDotToken,O.name,O.questionToken,O.type||W.createKeywordTypeNode(133)),O),M=O.symbol&&O.symbol.getDocumentationComment(_);if(M){let U=_Q(M);U.length&&SA(F,[{text:`* +${U.split(` +`).map(J=>` * ${J}`).join(` +`)} + `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return F}}function cht(t){switch(t.kind){case 174:case 175:case 180:case 177:case 181:case 263:return!0}return!1}function lht(t,n,a){let c=la(t,n),u=fn(c,cht);if(!u||lu(u)&&u.body&&HL(u.body,n))return;let _=a.getTypeChecker(),f=u.symbol;if(!f)return;let y=f.declarations;if(te(y)<=1||!ht(y,O=>Pn(O)===t)||!cht(y[0]))return;let g=y[0].kind;if(!ht(y,O=>O.kind===g))return;let k=y;if(Pt(k,O=>!!O.typeParameters||Pt(O.parameters,F=>!!F.modifiers||!ct(F.name))))return;let T=Wn(k,O=>_.getSignatureFromDeclaration(O));if(te(T)!==te(y))return;let C=_.getReturnTypeOfSignature(T[0]);if(ht(T,O=>_.getReturnTypeOfSignature(O)===C))return k}var K5e="Add or remove braces in an arrow function",uht=As(x.Add_or_remove_braces_in_an_arrow_function),sSe={name:"Add braces to arrow function",description:As(x.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},bae={name:"Remove braces from arrow function",description:As(x.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};Vx(K5e,{kinds:[bae.kind],getEditsForAction:vpr,getAvailableActions:ypr});function ypr(t){let{file:n,startPosition:a,triggerReason:c}=t,u=pht(n,a,c==="invoked");return u?XT(u)?t.preferences.provideRefactorNotApplicableReason?[{name:K5e,description:uht,actions:[{...sSe,notApplicableReason:u.error},{...bae,notApplicableReason:u.error}]}]:j:[{name:K5e,description:uht,actions:[u.addBraces?sSe:bae]}]:j}function vpr(t,n){let{file:a,startPosition:c}=t,u=pht(a,c);$.assert(u&&!XT(u),"Expected applicable refactor info");let{expression:_,returnStatement:f,func:y}=u,g;if(n===sSe.name){let T=W.createReturnStatement(_);g=W.createBlock([T],!0),eM(_,T,a,3,!0)}else if(n===bae.name&&f){let T=_||W.createVoidZero();g=Zoe(T)?W.createParenthesizedExpression(T):T,YK(f,g,a,3,!1),eM(f,g,a,3,!1),tq(f,g,a,3,!1)}else $.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:ki.ChangeTracker.with(t,T=>{T.replaceNode(a,y.body,g)})}}function pht(t,n,a=!0,c){let u=la(t,n),_=My(u);if(!_)return{error:As(x.Could_not_find_a_containing_arrow_function)};if(!Iu(_))return{error:As(x.Containing_function_is_not_an_arrow_function)};if(!(!zh(_,u)||zh(_.body,u)&&!a)){if(zA(sSe.kind,c)&&Vt(_.body))return{func:_,addBraces:!0,expression:_.body};if(zA(bae.kind,c)&&Vs(_.body)&&_.body.statements.length===1){let f=To(_.body.statements);if(gy(f)){let y=f.expression&&Lc(aL(f.expression,!1))?W.createParenthesizedExpression(f.expression):f.expression;return{func:_,addBraces:!1,expression:y,returnStatement:f}}}}}var Spr={},_ht="Convert arrow function or function expression",bpr=As(x.Convert_arrow_function_or_function_expression),xae={name:"Convert to anonymous function",description:As(x.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},Tae={name:"Convert to named function",description:As(x.Convert_to_named_function),kind:"refactor.rewrite.function.named"},Eae={name:"Convert to arrow function",description:As(x.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};Vx(_ht,{kinds:[xae.kind,Tae.kind,Eae.kind],getEditsForAction:Tpr,getAvailableActions:xpr});function xpr(t){let{file:n,startPosition:a,program:c,kind:u}=t,_=fht(n,a,c);if(!_)return j;let{selectedVariableDeclaration:f,func:y}=_,g=[],k=[];if(zA(Tae.kind,u)){let T=f||Iu(y)&&Oo(y.parent)?void 0:As(x.Could_not_convert_to_named_function);T?k.push({...Tae,notApplicableReason:T}):g.push(Tae)}if(zA(xae.kind,u)){let T=!f&&Iu(y)?void 0:As(x.Could_not_convert_to_anonymous_function);T?k.push({...xae,notApplicableReason:T}):g.push(xae)}if(zA(Eae.kind,u)){let T=bu(y)?void 0:As(x.Could_not_convert_to_arrow_function);T?k.push({...Eae,notApplicableReason:T}):g.push(Eae)}return[{name:_ht,description:bpr,actions:g.length===0&&t.preferences.provideRefactorNotApplicableReason?k:g}]}function Tpr(t,n){let{file:a,startPosition:c,program:u}=t,_=fht(a,c,u);if(!_)return;let{func:f}=_,y=[];switch(n){case xae.name:y.push(...Dpr(t,f));break;case Tae.name:let g=Cpr(f);if(!g)return;y.push(...Apr(t,f,g));break;case Eae.name:if(!bu(f))return;y.push(...wpr(t,f));break;default:return $.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:y}}function dht(t){let n=!1;return t.forEachChild(function a(c){if(GL(c)){n=!0;return}!Co(c)&&!i_(c)&&!bu(c)&&Is(c,a)}),n}function fht(t,n,a){let c=la(t,n),u=a.getTypeChecker(),_=kpr(t,u,c.parent);if(_&&!dht(_.body)&&!u.containsArgumentsReference(_))return{selectedVariableDeclaration:!0,func:_};let f=My(c);if(f&&(bu(f)||Iu(f))&&!zh(f.body,c)&&!dht(f.body)&&!u.containsArgumentsReference(f))return bu(f)&&hht(t,u,f)?void 0:{selectedVariableDeclaration:!1,func:f}}function Epr(t){return Oo(t)||Df(t)&&t.declarations.length===1}function kpr(t,n,a){if(!Epr(a))return;let u=(Oo(a)?a:To(a.declarations)).initializer;if(u&&(Iu(u)||bu(u)&&!hht(t,n,u)))return u}function mht(t){if(Vt(t)){let n=W.createReturnStatement(t),a=t.getSourceFile();return qt(n,t),$g(n),YK(t,n,a,void 0,!0),W.createBlock([n],!0)}else return t}function Cpr(t){let n=t.parent;if(!Oo(n)||!dU(n))return;let a=n.parent,c=a.parent;if(!(!Df(a)||!h_(c)||!ct(n.name)))return{variableDeclaration:n,variableDeclarationList:a,statement:c,name:n.name}}function Dpr(t,n){let{file:a}=t,c=mht(n.body),u=W.createFunctionExpression(n.modifiers,n.asteriskToken,void 0,n.typeParameters,n.parameters,n.type,c);return ki.ChangeTracker.with(t,_=>_.replaceNode(a,n,u))}function Apr(t,n,a){let{file:c}=t,u=mht(n.body),{variableDeclaration:_,variableDeclarationList:f,statement:y,name:g}=a;gge(y);let k=Ra(_)&32|tm(n),T=W.createModifiersFromModifierFlags(k),C=W.createFunctionDeclaration(te(T)?T:void 0,n.asteriskToken,g,n.typeParameters,n.parameters,n.type,u);return f.declarations.length===1?ki.ChangeTracker.with(t,O=>O.replaceNode(c,y,C)):ki.ChangeTracker.with(t,O=>{O.delete(c,_),O.insertNodeAfter(c,y,C)})}function wpr(t,n){let{file:a}=t,u=n.body.statements[0],_;Ipr(n.body,u)?(_=u.expression,$g(_),E3(u,_)):_=n.body;let f=W.createArrowFunction(n.modifiers,n.typeParameters,n.parameters,n.type,W.createToken(39),_);return ki.ChangeTracker.with(t,y=>y.replaceNode(a,n,f))}function Ipr(t,n){return t.statements.length===1&&gy(n)&&!!n.expression}function hht(t,n,a){return!!a.name&&Pu.Core.isSymbolReferencedInFile(a.name,n,t)}var Ppr={},cSe="Convert parameters to destructured object",Npr=1,ght=As(x.Convert_parameters_to_destructured_object),yht={name:cSe,description:ght,kind:"refactor.rewrite.parameters.toDestructured"};Vx(cSe,{kinds:[yht.kind],getEditsForAction:Fpr,getAvailableActions:Opr});function Opr(t){let{file:n,startPosition:a}=t;return ph(n)||!bht(n,a,t.program.getTypeChecker())?j:[{name:cSe,description:ght,actions:[yht]}]}function Fpr(t,n){$.assert(n===cSe,"Unexpected action name");let{file:a,startPosition:c,program:u,cancellationToken:_,host:f}=t,y=bht(a,c,u.getTypeChecker());if(!y||!_)return;let g=Lpr(y,u,_);return g.valid?{renameFilename:void 0,renameLocation:void 0,edits:ki.ChangeTracker.with(t,T=>Rpr(a,u,f,T,y,g))}:{edits:[]}}function Rpr(t,n,a,c,u,_){let f=_.signature,y=Cr(kht(u,n,a),T=>Il(T));if(f){let T=Cr(kht(f,n,a),C=>Il(C));k(f,T)}k(u,y);let g=O1(_.functionCalls,(T,C)=>Br(T.pos,C.pos));for(let T of g)if(T.arguments&&T.arguments.length){let C=Il(Wpr(u,T.arguments),!0);c.replaceNodeRange(Pn(T),To(T.arguments),Sn(T.arguments),C,{leadingTriviaOption:ki.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ki.TrailingTriviaOption.Include})}function k(T,C){c.replaceNodeRangeWithNodes(t,To(T.parameters),Sn(T.parameters),C,{joiner:", ",indentation:0,leadingTriviaOption:ki.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ki.TrailingTriviaOption.Include})}}function Lpr(t,n,a){let c=Hpr(t),u=kp(t)?Gpr(t):[],_=rf([...c,...u],Ng),f=n.getTypeChecker(),y=an(_,C=>Pu.getReferenceEntriesForNode(-1,C,n,n.getSourceFiles(),a)),g=k(y);return ht(g.declarations,C=>un(_,C))||(g.valid=!1),g;function k(C){let O={accessExpressions:[],typeUsages:[]},F={functionCalls:[],declarations:[],classReferences:O,valid:!0},M=Cr(c,T),U=Cr(u,T),J=kp(t),G=Cr(c,Z=>Q5e(Z,f));for(let Z of C){if(Z.kind===Pu.EntryKind.Span){F.valid=!1;continue}if(un(G,T(Z.node))){if($pr(Z.node.parent)){F.signature=Z.node.parent;continue}let re=Sht(Z);if(re){F.functionCalls.push(re);continue}}let Q=Q5e(Z.node,f);if(Q&&un(G,Q)){let re=Z5e(Z);if(re){F.declarations.push(re);continue}}if(un(M,T(Z.node))||Wz(Z.node)){if(vht(Z))continue;let ae=Z5e(Z);if(ae){F.declarations.push(ae);continue}let _e=Sht(Z);if(_e){F.functionCalls.push(_e);continue}}if(J&&un(U,T(Z.node))){if(vht(Z))continue;let ae=Z5e(Z);if(ae){F.declarations.push(ae);continue}let _e=Mpr(Z);if(_e){O.accessExpressions.push(_e);continue}if(ed(t.parent)){let me=jpr(Z);if(me){O.typeUsages.push(me);continue}}}F.valid=!1}return F}function T(C){let O=f.getSymbolAtLocation(C);return O&&vve(O,f)}}function Q5e(t,n){let a=dQ(t);if(a){let c=n.getContextualTypeForObjectLiteralElement(a),u=c?.getSymbol();if(u&&!(Fp(u)&6))return u}}function vht(t){let n=t.node;if(Xm(n.parent)||H1(n.parent)||gd(n.parent)||zx(n.parent)||Cm(n.parent)||Xu(n.parent))return n}function Z5e(t){if(Vd(t.node.parent))return t.node}function Sht(t){if(t.node.parent){let n=t.node,a=n.parent;switch(a.kind){case 214:case 215:let c=Ci(a,mS);if(c&&c.expression===n)return c;break;case 212:let u=Ci(a,no);if(u&&u.parent&&u.name===n){let f=Ci(u.parent,mS);if(f&&f.expression===u)return f}break;case 213:let _=Ci(a,mu);if(_&&_.parent&&_.argumentExpression===n){let f=Ci(_.parent,mS);if(f&&f.expression===_)return f}break}}}function Mpr(t){if(t.node.parent){let n=t.node,a=n.parent;switch(a.kind){case 212:let c=Ci(a,no);if(c&&c.expression===n)return c;break;case 213:let u=Ci(a,mu);if(u&&u.expression===n)return u;break}}}function jpr(t){let n=t.node;if(x3(n)===2||Hre(n.parent))return n}function bht(t,n,a){let c=KL(t,n),u=T6e(c);if(!Bpr(c)&&u&&Upr(u,a)&&zh(u,c)&&!(u.body&&zh(u.body,c)))return u}function Bpr(t){let n=fn(t,LR);if(n){let a=fn(n,c=>!LR(c));return!!a&&lu(a)}return!1}function $pr(t){return G1(t)&&(Af(t.parent)||fh(t.parent))}function Upr(t,n){var a;if(!zpr(t.parameters,n))return!1;switch(t.kind){case 263:return xht(t)&&kae(t,n);case 175:if(Lc(t.parent)){let c=Q5e(t.name,n);return((a=c?.declarations)==null?void 0:a.length)===1&&kae(t,n)}return kae(t,n);case 177:return ed(t.parent)?xht(t.parent)&&kae(t,n):Tht(t.parent.parent)&&kae(t,n);case 219:case 220:return Tht(t.parent)}return!1}function kae(t,n){return!!t.body&&!n.isImplementationOfOverload(t)}function xht(t){return t.name?!0:!!ZL(t,90)}function zpr(t,n){return Jpr(t)>=Npr&&ht(t,a=>qpr(a,n))}function qpr(t,n){if(Sb(t)){let a=n.getTypeAtLocation(t);if(!n.isArrayType(a)&&!n.isTupleType(a))return!1}return!t.modifiers&&ct(t.name)}function Tht(t){return Oo(t)&&zR(t)&&ct(t.name)&&!t.type}function X5e(t){return t.length>0&&GL(t[0].name)}function Jpr(t){return X5e(t)?t.length-1:t.length}function Eht(t){return X5e(t)&&(t=W.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function Vpr(t,n){return ct(n)&&g0(n)===t?W.createShorthandPropertyAssignment(t):W.createPropertyAssignment(t,n)}function Wpr(t,n){let a=Eht(t.parameters),c=Sb(Sn(a)),u=c?n.slice(0,a.length-1):n,_=Cr(u,(y,g)=>{let k=lSe(a[g]),T=Vpr(k,y);return $g(T.name),td(T)&&$g(T.initializer),E3(y,T),T});if(c&&n.length>=a.length){let y=n.slice(a.length-1),g=W.createPropertyAssignment(lSe(Sn(a)),W.createArrayLiteralExpression(y));_.push(g)}return W.createObjectLiteralExpression(_,!1)}function kht(t,n,a){let c=n.getTypeChecker(),u=Eht(t.parameters),_=Cr(u,T),f=W.createObjectBindingPattern(_),y=C(u),g;ht(u,M)&&(g=W.createObjectLiteralExpression());let k=W.createParameterDeclaration(void 0,void 0,f,void 0,y,g);if(X5e(t.parameters)){let U=t.parameters[0],J=W.createParameterDeclaration(void 0,void 0,U.name,void 0,U.type);return $g(J.name),E3(U.name,J.name),U.type&&($g(J.type),E3(U.type,J.type)),W.createNodeArray([J,k])}return W.createNodeArray([k]);function T(U){let J=W.createBindingElement(void 0,void 0,lSe(U),Sb(U)&&M(U)?W.createArrayLiteralExpression():U.initializer);return $g(J),U.initializer&&J.initializer&&E3(U.initializer,J.initializer),J}function C(U){let J=Cr(U,O);return CS(W.createTypeLiteralNode(J),1)}function O(U){let J=U.type;!J&&(U.initializer||Sb(U))&&(J=F(U));let G=W.createPropertySignature(void 0,lSe(U),M(U)?W.createToken(58):U.questionToken,J);return $g(G),E3(U.name,G.name),U.type&&G.type&&E3(U.type,G.type),G}function F(U){let J=c.getTypeAtLocation(U);return nq(J,U,n,a)}function M(U){if(Sb(U)){let J=c.getTypeAtLocation(U);return!c.isTupleType(J)}return c.isOptionalParameter(U)}}function lSe(t){return g0(t.name)}function Gpr(t){switch(t.parent.kind){case 264:let n=t.parent;return n.name?[n.name]:[$.checkDefined(ZL(n,90),"Nameless class declaration should be a default export")];case 232:let c=t.parent,u=t.parent.parent,_=c.name;return _?[_,u.name]:[u.name]}}function Hpr(t){switch(t.kind){case 263:return t.name?[t.name]:[$.checkDefined(ZL(t,90),"Nameless function declaration should be a default export")];case 175:return[t.name];case 177:let a=$.checkDefined(Kl(t,137,t.getSourceFile()),"Constructor declaration should have constructor keyword");return t.parent.kind===232?[t.parent.parent.name,a]:[a];case 220:return[t.parent.name];case 219:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return $.assertNever(t,`Unexpected function declaration kind ${t.kind}`)}}var Kpr={},Y5e="Convert to template string",e9e=As(x.Convert_to_template_string),t9e={name:Y5e,description:e9e,kind:"refactor.rewrite.string"};Vx(Y5e,{kinds:[t9e.kind],getEditsForAction:Zpr,getAvailableActions:Qpr});function Qpr(t){let{file:n,startPosition:a}=t,c=Cht(n,a),u=r9e(c),_=Ic(u),f={name:Y5e,description:e9e,actions:[]};return _&&t.triggerReason!=="invoked"?j:Tb(u)&&(_||wi(u)&&n9e(u).isValidConcatenation)?(f.actions.push(t9e),[f]):t.preferences.provideRefactorNotApplicableReason?(f.actions.push({...t9e,notApplicableReason:As(x.Can_only_convert_string_concatenations_and_string_literals)}),[f]):j}function Cht(t,n){let a=la(t,n),c=r9e(a);return!n9e(c).isValidConcatenation&&mh(c.parent)&&wi(c.parent.parent)?c.parent.parent:a}function Zpr(t,n){let{file:a,startPosition:c}=t,u=Cht(a,c);return n===e9e?{edits:Xpr(t,u)}:$.fail("invalid action")}function Xpr(t,n){let a=r9e(n),c=t.file,u=n_r(n9e(a),c),_=hb(c.text,a.end);if(_){let f=_[_.length-1],y={pos:_[0].pos,end:f.end};return ki.ChangeTracker.with(t,g=>{g.deleteRange(c,y),g.replaceNode(c,a,u)})}else return ki.ChangeTracker.with(t,f=>f.replaceNode(c,a,u))}function Ypr(t){return!(t.operatorToken.kind===64||t.operatorToken.kind===65)}function r9e(t){return fn(t.parent,a=>{switch(a.kind){case 212:case 213:return!1;case 229:case 227:return!(wi(a.parent)&&Ypr(a.parent));default:return"quit"}})||t}function n9e(t){let n=f=>{if(!wi(f))return{nodes:[f],operators:[],validOperators:!0,hasString:Ic(f)||r3(f)};let{nodes:y,operators:g,hasString:k,validOperators:T}=n(f.left);if(!(k||Ic(f.right)||Jne(f.right)))return{nodes:[f],operators:[],hasString:!1,validOperators:!0};let C=f.operatorToken.kind===40,O=T&&C;return y.push(f.right),g.push(f.operatorToken),{nodes:y,operators:g,hasString:!0,validOperators:O}},{nodes:a,operators:c,validOperators:u,hasString:_}=n(t);return{nodes:a,operators:c,isValidConcatenation:u&&_}}var e_r=(t,n)=>(a,c)=>{a(c,u)=>{for(;c.length>0;){let _=c.shift();tq(t[_],u,n,3,!1),a(_,u)}};function r_r(t){return t.replace(/\\.|[$`]/g,n=>n[0]==="\\"?n:"\\"+n)}function Dht(t){let n=dF(t)||Cge(t)?-2:-1;return Sp(t).slice(1,n)}function Aht(t,n){let a=[],c="",u="";for(;t{wht(Q);let ae=re===O.templateSpans.length-1,_e=Q.literal.text+(ae?M:""),me=Dht(Q.literal)+(ae?U:"");return W.createTemplateSpan(Q.expression,G&&ae?W.createTemplateTail(_e,me):W.createTemplateMiddle(_e,me))});k.push(...Z)}else{let Z=G?W.createTemplateTail(M,U):W.createTemplateMiddle(M,U);u(J,Z),k.push(W.createTemplateSpan(O,Z))}}return W.createTemplateExpression(T,k)}function wht(t){let n=t.getSourceFile();tq(t,t.expression,n,3,!1),YK(t.expression,t.expression,n,3,!1)}function i_r(t){return mh(t)&&(wht(t),t=t.expression),t}var o_r={},uSe="Convert to optional chain expression",i9e=As(x.Convert_to_optional_chain_expression),o9e={name:uSe,description:i9e,kind:"refactor.rewrite.expression.optionalChain"};Vx(uSe,{kinds:[o9e.kind],getEditsForAction:s_r,getAvailableActions:a_r});function a_r(t){let n=Iht(t,t.triggerReason==="invoked");return n?XT(n)?t.preferences.provideRefactorNotApplicableReason?[{name:uSe,description:i9e,actions:[{...o9e,notApplicableReason:n.error}]}]:j:[{name:uSe,description:i9e,actions:[o9e]}]:j}function s_r(t,n){let a=Iht(t);return $.assert(a&&!XT(a),"Expected applicable refactor info"),{edits:ki.ChangeTracker.with(t,u=>m_r(t.file,t.program.getTypeChecker(),u,a,n)),renameFilename:void 0,renameLocation:void 0}}function pSe(t){return wi(t)||a3(t)}function c_r(t){return af(t)||gy(t)||h_(t)}function _Se(t){return pSe(t)||c_r(t)}function Iht(t,n=!0){let{file:a,program:c}=t,u=$F(t),_=u.length===0;if(_&&!n)return;let f=la(a,u.start),y=Hz(a,u.start+u.length),g=Hu(f.pos,y&&y.end>=f.pos?y.getEnd():f.getEnd()),k=_?d_r(f):__r(f,g),T=k&&_Se(k)?f_r(k):void 0;if(!T)return{error:As(x.Could_not_find_convertible_access_expression)};let C=c.getTypeChecker();return a3(T)?l_r(T,C):u_r(T)}function l_r(t,n){let a=t.condition,c=s9e(t.whenTrue);if(!c||n.isNullableType(n.getTypeAtLocation(c)))return{error:As(x.Could_not_find_convertible_access_expression)};if((no(a)||ct(a))&&a9e(a,c.expression))return{finalExpression:c,occurrences:[a],expression:t};if(wi(a)){let u=Pht(c.expression,a);return u?{finalExpression:c,occurrences:u,expression:t}:{error:As(x.Could_not_find_matching_access_expressions)}}}function u_r(t){if(t.operatorToken.kind!==56)return{error:As(x.Can_only_convert_logical_AND_access_chains)};let n=s9e(t.right);if(!n)return{error:As(x.Could_not_find_convertible_access_expression)};let a=Pht(n.expression,t.left);return a?{finalExpression:n,occurrences:a,expression:t}:{error:As(x.Could_not_find_matching_access_expressions)}}function Pht(t,n){let a=[];for(;wi(n)&&n.operatorToken.kind===56;){let u=a9e(bl(t),bl(n.right));if(!u)break;a.push(u),t=u,n=n.left}let c=a9e(t,n);return c&&a.push(c),a.length>0?a:void 0}function a9e(t,n){if(!(!ct(n)&&!no(n)&&!mu(n)))return p_r(t,n)?n:void 0}function p_r(t,n){for(;(Js(t)||no(t)||mu(t))&&uQ(t)!==uQ(n);)t=t.expression;for(;no(t)&&no(n)||mu(t)&&mu(n);){if(uQ(t)!==uQ(n))return!1;t=t.expression,n=n.expression}return ct(t)&&ct(n)&&t.getText()===n.getText()}function uQ(t){if(ct(t)||jy(t))return t.getText();if(no(t))return uQ(t.name);if(mu(t))return uQ(t.argumentExpression)}function __r(t,n){for(;t.parent;){if(_Se(t)&&n.length!==0&&t.end>=n.start+n.length)return t;t=t.parent}}function d_r(t){for(;t.parent;){if(_Se(t)&&!_Se(t.parent))return t;t=t.parent}}function f_r(t){if(pSe(t))return t;if(h_(t)){let n=GO(t),a=n?.initializer;return a&&pSe(a)?a:void 0}return t.expression&&pSe(t.expression)?t.expression:void 0}function s9e(t){if(t=bl(t),wi(t))return s9e(t.left);if((no(t)||mu(t)||Js(t))&&!xm(t))return t}function Nht(t,n,a){if(no(n)||mu(n)||Js(n)){let c=Nht(t,n.expression,a),u=a.length>0?a[a.length-1]:void 0,_=u?.getText()===n.expression.getText();if(_&&a.pop(),Js(n))return _?W.createCallChain(c,W.createToken(29),n.typeArguments,n.arguments):W.createCallChain(c,n.questionDotToken,n.typeArguments,n.arguments);if(no(n))return _?W.createPropertyAccessChain(c,W.createToken(29),n.name):W.createPropertyAccessChain(c,n.questionDotToken,n.name);if(mu(n))return _?W.createElementAccessChain(c,W.createToken(29),n.argumentExpression):W.createElementAccessChain(c,n.questionDotToken,n.argumentExpression)}return n}function m_r(t,n,a,c,u){let{finalExpression:_,occurrences:f,expression:y}=c,g=f[f.length-1],k=Nht(n,_,f);k&&(no(k)||mu(k)||Js(k))&&(wi(y)?a.replaceNodeRange(t,g,_,k):a3(y)&&a.replaceNode(t,y,W.createBinaryExpression(k,W.createToken(61),y.whenFalse)))}var Oht={};d(Oht,{Messages:()=>Vf,RangeFacts:()=>Lht,getRangeToExtract:()=>c9e,getRefactorActionsToExtractSymbol:()=>Fht,getRefactorEditsToExtractSymbol:()=>Rht});var sq="Extract Symbol",cq={name:"Extract Constant",description:As(x.Extract_constant),kind:"refactor.extract.constant"},lq={name:"Extract Function",description:As(x.Extract_function),kind:"refactor.extract.function"};Vx(sq,{kinds:[cq.kind,lq.kind],getEditsForAction:Rht,getAvailableActions:Fht});function Fht(t){let n=t.kind,a=c9e(t.file,$F(t),t.triggerReason==="invoked"),c=a.targetRange;if(c===void 0){if(!a.errors||a.errors.length===0||!t.preferences.provideRefactorNotApplicableReason)return j;let U=[];return zA(lq.kind,n)&&U.push({name:sq,description:lq.description,actions:[{...lq,notApplicableReason:M(a.errors)}]}),zA(cq.kind,n)&&U.push({name:sq,description:cq.description,actions:[{...cq,notApplicableReason:M(a.errors)}]}),U}let{affectedTextRange:u,extractions:_}=b_r(c,t);if(_===void 0)return j;let f=[],y=new Map,g,k=[],T=new Map,C,O=0;for(let{functionExtraction:U,constantExtraction:J}of _){if(zA(lq.kind,n)){let G=U.description;U.errors.length===0?y.has(G)||(y.set(G,!0),f.push({description:G,name:`function_scope_${O}`,kind:lq.kind,range:{start:{line:qs(t.file,u.pos).line,offset:qs(t.file,u.pos).character},end:{line:qs(t.file,u.end).line,offset:qs(t.file,u.end).character}}})):g||(g={description:G,name:`function_scope_${O}`,notApplicableReason:M(U.errors),kind:lq.kind})}if(zA(cq.kind,n)){let G=J.description;J.errors.length===0?T.has(G)||(T.set(G,!0),k.push({description:G,name:`constant_scope_${O}`,kind:cq.kind,range:{start:{line:qs(t.file,u.pos).line,offset:qs(t.file,u.pos).character},end:{line:qs(t.file,u.end).line,offset:qs(t.file,u.end).character}}})):C||(C={description:G,name:`constant_scope_${O}`,notApplicableReason:M(J.errors),kind:cq.kind})}O++}let F=[];return f.length?F.push({name:sq,description:As(x.Extract_function),actions:f}):t.preferences.provideRefactorNotApplicableReason&&g&&F.push({name:sq,description:As(x.Extract_function),actions:[g]}),k.length?F.push({name:sq,description:As(x.Extract_constant),actions:k}):t.preferences.provideRefactorNotApplicableReason&&C&&F.push({name:sq,description:As(x.Extract_constant),actions:[C]}),F.length?F:j;function M(U){let J=U[0].messageText;return typeof J!="string"&&(J=J.messageText),J}}function Rht(t,n){let c=c9e(t.file,$F(t)).targetRange,u=/^function_scope_(\d+)$/.exec(n);if(u){let f=+u[1];return $.assert(isFinite(f),"Expected to parse a finite number from the function scope index"),v_r(c,t,f)}let _=/^constant_scope_(\d+)$/.exec(n);if(_){let f=+_[1];return $.assert(isFinite(f),"Expected to parse a finite number from the constant scope index"),S_r(c,t,f)}$.fail("Unrecognized action name")}var Vf;(t=>{function n(a){return{message:a,code:0,category:3,key:a}}t.cannotExtractRange=n("Cannot extract range."),t.cannotExtractImport=n("Cannot extract import statement."),t.cannotExtractSuper=n("Cannot extract super call."),t.cannotExtractJSDoc=n("Cannot extract JSDoc."),t.cannotExtractEmpty=n("Cannot extract empty range."),t.expressionExpected=n("expression expected."),t.uselessConstantType=n("No reason to extract constant of type."),t.statementOrExpressionExpected=n("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=n("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=n("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=n("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=n("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=n("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=n("Function will not visible in the new scope."),t.cannotExtractIdentifier=n("Select more than a single identifier."),t.cannotExtractExportedEntity=n("Cannot extract exported declaration"),t.cannotWriteInExpression=n("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=n("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=n("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=n("Cannot access variables from nested scopes"),t.cannotExtractToJSClass=n("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=n("Cannot extract constant to an arrow function without a block"),t.cannotExtractFunctionsContainingThisToMethod=n("Cannot extract functions containing this to method")})(Vf||(Vf={}));var Lht=(t=>(t[t.None=0]="None",t[t.HasReturn=1]="HasReturn",t[t.IsGenerator=2]="IsGenerator",t[t.IsAsyncFunction=4]="IsAsyncFunction",t[t.UsesThis=8]="UsesThis",t[t.UsesThisInFunction=16]="UsesThisInFunction",t[t.InStaticRegion=32]="InStaticRegion",t))(Lht||{});function c9e(t,n,a=!0){let{length:c}=n;if(c===0&&!a)return{errors:[md(t,n.start,c,Vf.cannotExtractEmpty)]};let u=c===0&&a,_=o7e(t,n.start),f=Hz(t,Xn(n)),y=_&&f&&a?h_r(_,f,t):n,g=u?U_r(_):QK(_,t,y),k=u?g:QK(f,t,y),T=0,C;if(!g||!k)return{errors:[md(t,n.start,c,Vf.cannotExtractRange)]};if(g.flags&16777216)return{errors:[md(t,n.start,c,Vf.cannotExtractJSDoc)]};if(g.parent!==k.parent)return{errors:[md(t,n.start,c,Vf.cannotExtractRange)]};if(g!==k){if(!UF(g.parent))return{errors:[md(t,n.start,c,Vf.cannotExtractRange)]};let Z=[];for(let Q of g.parent.statements){if(Q===g||Z.length){let re=G(Q);if(re)return{errors:re};Z.push(Q)}if(Q===k)break}return Z.length?{targetRange:{range:Z,facts:T,thisNode:C}}:{errors:[md(t,n.start,c,Vf.cannotExtractRange)]}}if(gy(g)&&!g.expression)return{errors:[md(t,n.start,c,Vf.cannotExtractRange)]};let O=M(g),F=U(O)||G(O);if(F)return{errors:F};return{targetRange:{range:g_r(O),facts:T,thisNode:C}};function M(Z){if(gy(Z)){if(Z.expression)return Z.expression}else if(h_(Z)||Df(Z)){let Q=h_(Z)?Z.declarationList.declarations:Z.declarations,re=0,ae;for(let _e of Q)_e.initializer&&(re++,ae=_e.initializer);if(re===1)return ae}else if(Oo(Z)&&Z.initializer)return Z.initializer;return Z}function U(Z){if(ct(af(Z)?Z.expression:Z))return[xi(Z,Vf.cannotExtractIdentifier)]}function J(Z,Q){let re=Z;for(;re!==Q;){if(re.kind===173){oc(re)&&(T|=32);break}else if(re.kind===170){My(re).kind===177&&(T|=32);break}else re.kind===175&&oc(re)&&(T|=32);re=re.parent}}function G(Z){let Q;if((Oe=>{Oe[Oe.None=0]="None",Oe[Oe.Break=1]="Break",Oe[Oe.Continue=2]="Continue",Oe[Oe.Return=4]="Return"})(Q||(Q={})),$.assert(Z.pos<=Z.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),$.assert(!bv(Z.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!fa(Z)&&!(Tb(Z)&&Mht(Z))&&!d9e(Z))return[xi(Z,Vf.statementOrExpressionExpected)];if(Z.flags&33554432)return[xi(Z,Vf.cannotExtractAmbientBlock)];let re=Cf(Z);re&&J(Z,re);let ae,_e=4,me;if(le(Z),T&8){let Oe=Hm(Z,!1,!1);(Oe.kind===263||Oe.kind===175&&Oe.parent.kind===211||Oe.kind===219)&&(T|=16)}return ae;function le(Oe){if(ae)return!0;if(Vd(Oe)){let ue=Oe.kind===261?Oe.parent.parent:Oe;if(ko(ue,32))return(ae||(ae=[])).push(xi(Oe,Vf.cannotExtractExportedEntity)),!0}switch(Oe.kind){case 273:return(ae||(ae=[])).push(xi(Oe,Vf.cannotExtractImport)),!0;case 278:return(ae||(ae=[])).push(xi(Oe,Vf.cannotExtractExportedEntity)),!0;case 108:if(Oe.parent.kind===214){let ue=Cf(Oe);if(ue===void 0||ue.pos=n.start+n.length)return(ae||(ae=[])).push(xi(Oe,Vf.cannotExtractSuper)),!0}else T|=8,C=Oe;break;case 220:Is(Oe,function ue(De){if(GL(De))T|=8,C=Oe;else{if(Co(De)||Rs(De)&&!Iu(De))return!1;Is(De,ue)}});case 264:case 263:Ta(Oe.parent)&&Oe.parent.externalModuleIndicator===void 0&&(ae||(ae=[])).push(xi(Oe,Vf.functionWillNotBeVisibleInTheNewScope));case 232:case 219:case 175:case 177:case 178:case 179:return!1}let be=_e;switch(Oe.kind){case 246:_e&=-5;break;case 259:_e=0;break;case 242:Oe.parent&&Oe.parent.kind===259&&Oe.parent.finallyBlock===Oe&&(_e=4);break;case 298:case 297:_e|=1;break;default:rC(Oe,!1)&&(_e|=3);break}switch(Oe.kind){case 198:case 110:T|=8,C=Oe;break;case 257:{let ue=Oe.label;(me||(me=[])).push(ue.escapedText),Is(Oe,le),me.pop();break}case 253:case 252:{let ue=Oe.label;ue?un(me,ue.escapedText)||(ae||(ae=[])).push(xi(Oe,Vf.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):_e&(Oe.kind===253?1:2)||(ae||(ae=[])).push(xi(Oe,Vf.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 224:T|=4;break;case 230:T|=2;break;case 254:_e&4?T|=1:(ae||(ae=[])).push(xi(Oe,Vf.cannotExtractRangeContainingConditionalReturnStatement));break;default:Is(Oe,le);break}_e=be}}}function h_r(t,n,a){let c=t.getStart(a),u=n.getEnd();return a.text.charCodeAt(u)===59&&u++,{start:c,length:u-c}}function g_r(t){if(fa(t))return[t];if(Tb(t))return af(t.parent)?[t.parent]:t;if(d9e(t))return t}function l9e(t){return Iu(t)?pme(t.body):lu(t)||Ta(t)||wS(t)||Co(t)}function y_r(t){let n=AE(t.range)?To(t.range):t.range;if(t.facts&8&&!(t.facts&16)){let c=Cf(n);if(c){let u=fn(n,lu);return u?[u,c]:[c]}}let a=[];for(;;)if(n=n.parent,n.kind===170&&(n=fn(n,c=>lu(c)).parent),l9e(n)&&(a.push(n),n.kind===308))return a}function v_r(t,n,a){let{scopes:c,readsAndWrites:{target:u,usagesPerScope:_,functionErrorsPerScope:f,exposedVariableDeclarations:y}}=u9e(t,n);return $.assert(!f[a].length,"The extraction went missing? How?"),n.cancellationToken.throwIfCancellationRequested(),D_r(u,c[a],_[a],y,t,n)}function S_r(t,n,a){let{scopes:c,readsAndWrites:{target:u,usagesPerScope:_,constantErrorsPerScope:f,exposedVariableDeclarations:y}}=u9e(t,n);$.assert(!f[a].length,"The extraction went missing? How?"),$.assert(y.length===0,"Extract constant accepted a range containing a variable declaration?"),n.cancellationToken.throwIfCancellationRequested();let g=Vt(u)?u:u.statements[0].expression;return A_r(g,c[a],_[a],t.facts,n)}function b_r(t,n){let{scopes:a,affectedTextRange:c,readsAndWrites:{functionErrorsPerScope:u,constantErrorsPerScope:_}}=u9e(t,n),f=a.map((y,g)=>{let k=x_r(y),T=T_r(y),C=lu(y)?E_r(y):Co(y)?k_r(y):C_r(y),O,F;return C===1?(O=Mx(As(x.Extract_to_0_in_1_scope),[k,"global"]),F=Mx(As(x.Extract_to_0_in_1_scope),[T,"global"])):C===0?(O=Mx(As(x.Extract_to_0_in_1_scope),[k,"module"]),F=Mx(As(x.Extract_to_0_in_1_scope),[T,"module"])):(O=Mx(As(x.Extract_to_0_in_1),[k,C]),F=Mx(As(x.Extract_to_0_in_1),[T,C])),g===0&&!Co(y)&&(F=Mx(As(x.Extract_to_0_in_enclosing_scope),[T])),{functionExtraction:{description:O,errors:u[g]},constantExtraction:{description:F,errors:_[g]}}});return{affectedTextRange:c,extractions:f}}function u9e(t,n){let{file:a}=n,c=y_r(t),u=B_r(t,a),_=$_r(t,c,u,a,n.program.getTypeChecker(),n.cancellationToken);return{scopes:c,affectedTextRange:u,readsAndWrites:_}}function x_r(t){return lu(t)?"inner function":Co(t)?"method":"function"}function T_r(t){return Co(t)?"readonly field":"constant"}function E_r(t){switch(t.kind){case 177:return"constructor";case 219:case 263:return t.name?`function '${t.name.text}'`:xve;case 220:return"arrow function";case 175:return`method '${t.name.getText()}'`;case 178:return`'get ${t.name.getText()}'`;case 179:return`'set ${t.name.getText()}'`;default:$.assertNever(t,`Unexpected scope kind ${t.kind}`)}}function k_r(t){return t.kind===264?t.name?`class '${t.name.text}'`:"anonymous class declaration":t.name?`class expression '${t.name.text}'`:"anonymous class expression"}function C_r(t){return t.kind===269?`namespace '${t.parent.name.getText()}'`:t.externalModuleIndicator?0:1}function D_r(t,n,{usages:a,typeParameterUsages:c,substitutions:u},_,f,y){let g=y.program.getTypeChecker(),k=$c(y.program.getCompilerOptions()),T=Im.createImportAdder(y.file,y.program,y.preferences,y.host),C=n.getSourceFile(),O=k3(Co(n)?"newMethod":"newFunction",C),F=Ei(n),M=W.createIdentifier(O),U,J=[],G=[],Z;a.forEach((ve,Le)=>{let Ve;if(!F){let It=g.getTypeOfSymbolAtLocation(ve.symbol,ve.node);It=g.getBaseTypeOfLiteralType(It),Ve=Im.typeToAutoImportableTypeNode(g,T,It,n,k,1,8)}let nt=W.createParameterDeclaration(void 0,void 0,Le,void 0,Ve);J.push(nt),ve.usage===2&&(Z||(Z=[])).push(ve),G.push(W.createIdentifier(Le))});let Q=so(c.values(),ve=>({type:ve,declaration:I_r(ve,y.startPosition)}));Q.sort(P_r);let re=Q.length===0?void 0:Wn(Q,({declaration:ve})=>ve),ae=re!==void 0?re.map(ve=>W.createTypeReferenceNode(ve.name,void 0)):void 0;if(Vt(t)&&!F){let ve=g.getContextualType(t);U=g.typeToTypeNode(ve,n,1,8)}let{body:_e,returnValueProperty:me}=O_r(t,_,Z,u,!!(f.facts&1));$g(_e);let le,Oe=!!(f.facts&16);if(Co(n)){let ve=F?[]:[W.createModifier(123)];f.facts&32&&ve.push(W.createModifier(126)),f.facts&4&&ve.push(W.createModifier(134)),le=W.createMethodDeclaration(ve.length?ve:void 0,f.facts&2?W.createToken(42):void 0,M,void 0,re,J,U,_e)}else Oe&&J.unshift(W.createParameterDeclaration(void 0,void 0,"this",void 0,g.typeToTypeNode(g.getTypeAtLocation(f.thisNode),n,1,8),void 0)),le=W.createFunctionDeclaration(f.facts&4?[W.createToken(134)]:void 0,f.facts&2?W.createToken(42):void 0,M,re,J,U,_e);let be=ki.ChangeTracker.fromContext(y),ue=(AE(f.range)?Sn(f.range):f.range).end,De=L_r(ue,n);De?be.insertNodeBefore(y.file,De,le,!0):be.insertNodeAtEndOfScope(y.file,n,le),T.writeFixes(be);let Ce=[],Ae=N_r(n,f,O);Oe&&G.unshift(W.createIdentifier("this"));let Fe=W.createCallExpression(Oe?W.createPropertyAccessExpression(Ae,"call"):Ae,ae,G);if(f.facts&2&&(Fe=W.createYieldExpression(W.createToken(42),Fe)),f.facts&4&&(Fe=W.createAwaitExpression(Fe)),_9e(t)&&(Fe=W.createJsxExpression(void 0,Fe)),_.length&&!Z)if($.assert(!me,"Expected no returnValueProperty"),$.assert(!(f.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),_.length===1){let ve=_[0];Ce.push(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Il(ve.name),void 0,Il(ve.type),Fe)],ve.parent.flags)))}else{let ve=[],Le=[],Ve=_[0].parent.flags,nt=!1;for(let ke of _){ve.push(W.createBindingElement(void 0,void 0,Il(ke.name)));let _t=g.typeToTypeNode(g.getBaseTypeOfLiteralType(g.getTypeAtLocation(ke)),n,1,8);Le.push(W.createPropertySignature(void 0,ke.symbol.name,void 0,_t)),nt=nt||ke.type!==void 0,Ve=Ve&ke.parent.flags}let It=nt?W.createTypeLiteralNode(Le):void 0;It&&Ai(It,1),Ce.push(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(W.createObjectBindingPattern(ve),void 0,It,Fe)],Ve)))}else if(_.length||Z){if(_.length)for(let Le of _){let Ve=Le.parent.flags;Ve&2&&(Ve=Ve&-3|1),Ce.push(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Le.symbol.name,void 0,je(Le.type))],Ve)))}me&&Ce.push(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(me,void 0,je(U))],1)));let ve=p9e(_,Z);me&&ve.unshift(W.createShorthandPropertyAssignment(me)),ve.length===1?($.assert(!me,"Shouldn't have returnValueProperty here"),Ce.push(W.createExpressionStatement(W.createAssignment(ve[0].name,Fe))),f.facts&1&&Ce.push(W.createReturnStatement())):(Ce.push(W.createExpressionStatement(W.createAssignment(W.createObjectLiteralExpression(ve),Fe))),me&&Ce.push(W.createReturnStatement(W.createIdentifier(me))))}else f.facts&1?Ce.push(W.createReturnStatement(Fe)):AE(f.range)?Ce.push(W.createExpressionStatement(Fe)):Ce.push(Fe);AE(f.range)?be.replaceNodeRangeWithNodes(y.file,To(f.range),Sn(f.range),Ce):be.replaceNodeWithNodes(y.file,f.range,Ce);let Be=be.getChanges(),ze=(AE(f.range)?To(f.range):f.range).getSourceFile().fileName,ut=XK(Be,ze,O,!1);return{renameFilename:ze,renameLocation:ut,edits:Be};function je(ve){if(ve===void 0)return;let Le=Il(ve),Ve=Le;for(;i3(Ve);)Ve=Ve.type;return SE(Ve)&&wt(Ve.types,nt=>nt.kind===157)?Le:W.createUnionTypeNode([Le,W.createKeywordTypeNode(157)])}}function A_r(t,n,{substitutions:a},c,u){let _=u.program.getTypeChecker(),f=n.getSourceFile(),y=z5e(t,n,_,f),g=Ei(n),k=g||!_.isContextSensitive(t)?void 0:_.typeToTypeNode(_.getContextualType(t),n,1,8),T=F_r(bl(t),a);({variableType:k,initializer:T}=U(k,T)),$g(T);let C=ki.ChangeTracker.fromContext(u);if(Co(n)){$.assert(!g,"Cannot extract to a JS class");let J=[];J.push(W.createModifier(123)),c&32&&J.push(W.createModifier(126)),J.push(W.createModifier(148));let G=W.createPropertyDeclaration(J,y,void 0,k,T),Z=W.createPropertyAccessExpression(c&32?W.createIdentifier(n.name.getText()):W.createThis(),W.createIdentifier(y));_9e(t)&&(Z=W.createJsxExpression(void 0,Z));let Q=t.pos,re=M_r(Q,n);C.insertNodeBefore(u.file,re,G,!0),C.replaceNode(u.file,t,Z)}else{let J=W.createVariableDeclaration(y,void 0,k,T),G=w_r(t,n);if(G){C.insertNodeBefore(u.file,G,J);let Z=W.createIdentifier(y);C.replaceNode(u.file,t,Z)}else if(t.parent.kind===245&&n===fn(t,l9e)){let Z=W.createVariableStatement(void 0,W.createVariableDeclarationList([J],2));C.replaceNode(u.file,t.parent,Z)}else{let Z=W.createVariableStatement(void 0,W.createVariableDeclarationList([J],2)),Q=j_r(t,n);if(Q.pos===0?C.insertNodeAtTopOfFile(u.file,Z,!1):C.insertNodeBefore(u.file,Q,Z,!1),t.parent.kind===245)C.delete(u.file,t.parent);else{let re=W.createIdentifier(y);_9e(t)&&(re=W.createJsxExpression(void 0,re)),C.replaceNode(u.file,t,re)}}}let O=C.getChanges(),F=t.getSourceFile().fileName,M=XK(O,F,y,!0);return{renameFilename:F,renameLocation:M,edits:O};function U(J,G){if(J===void 0)return{variableType:J,initializer:G};if(!bu(G)&&!Iu(G)||G.typeParameters)return{variableType:J,initializer:G};let Z=_.getTypeAtLocation(t),Q=to(_.getSignaturesOfType(Z,0));if(!Q)return{variableType:J,initializer:G};if(Q.getTypeParameters())return{variableType:J,initializer:G};let re=[],ae=!1;for(let _e of G.parameters)if(_e.type)re.push(_e);else{let me=_.getTypeAtLocation(_e);me===_.getAnyType()&&(ae=!0),re.push(W.updateParameterDeclaration(_e,_e.modifiers,_e.dotDotDotToken,_e.name,_e.questionToken,_e.type||_.typeToTypeNode(me,n,1,8),_e.initializer))}if(ae)return{variableType:J,initializer:G};if(J=void 0,Iu(G))G=W.updateArrowFunction(G,l1(t)?Qk(t):void 0,G.typeParameters,re,G.type||_.typeToTypeNode(Q.getReturnType(),n,1,8),G.equalsGreaterThanToken,G.body);else{if(Q&&Q.thisParameter){let _e=pi(re);if(!_e||ct(_e.name)&&_e.name.escapedText!=="this"){let me=_.getTypeOfSymbolAtLocation(Q.thisParameter,t);re.splice(0,0,W.createParameterDeclaration(void 0,void 0,"this",void 0,_.typeToTypeNode(me,n,1,8)))}}G=W.updateFunctionExpression(G,l1(t)?Qk(t):void 0,G.asteriskToken,G.name,G.typeParameters,re,G.type||_.typeToTypeNode(Q.getReturnType(),n,1),G.body)}return{variableType:J,initializer:G}}}function w_r(t,n){let a;for(;t!==void 0&&t!==n;){if(Oo(t)&&t.initializer===a&&Df(t.parent)&&t.parent.declarations.length>1)return t;a=t,t=t.parent}}function I_r(t,n){let a,c=t.symbol;if(c&&c.declarations)for(let u of c.declarations)(a===void 0||u.pos0;if(Vs(t)&&!_&&c.size===0)return{body:W.createBlock(t.statements,!0),returnValueProperty:void 0};let f,y=!1,g=W.createNodeArray(Vs(t)?t.statements.slice(0):[fa(t)?t:W.createReturnStatement(bl(t))]);if(_||c.size){let T=Bn(g,k,fa).slice();if(_&&!u&&fa(t)){let C=p9e(n,a);C.length===1?T.push(W.createReturnStatement(C[0].name)):T.push(W.createReturnStatement(W.createObjectLiteralExpression(C)))}return{body:W.createBlock(T,!0),returnValueProperty:f}}else return{body:W.createBlock(g,!0),returnValueProperty:void 0};function k(T){if(!y&&gy(T)&&_){let C=p9e(n,a);return T.expression&&(f||(f="__return"),C.unshift(W.createPropertyAssignment(f,At(T.expression,k,Vt)))),C.length===1?W.createReturnStatement(C[0].name):W.createReturnStatement(W.createObjectLiteralExpression(C))}else{let C=y;y=y||lu(T)||Co(T);let O=c.get(hl(T).toString()),F=O?Il(O):Dn(T,k,void 0);return y=C,F}}}function F_r(t,n){return n.size?a(t):t;function a(c){let u=n.get(hl(c).toString());return u?Il(u):Dn(c,a,void 0)}}function R_r(t){if(lu(t)){let n=t.body;if(Vs(n))return n.statements}else{if(wS(t)||Ta(t))return t.statements;if(Co(t))return t.members;}return j}function L_r(t,n){return wt(R_r(n),a=>a.pos>=t&&lu(a)&&!kp(a))}function M_r(t,n){let a=n.members;$.assert(a.length>0,"Found no members");let c,u=!0;for(let _ of a){if(_.pos>t)return c||a[0];if(u&&!ps(_)){if(c!==void 0)return _;u=!1}c=_}return c===void 0?$.fail():c}function j_r(t,n){$.assert(!Co(n));let a;for(let c=t;c!==n;c=c.parent)l9e(c)&&(a=c);for(let c=(a||t).parent;;c=c.parent){if(UF(c)){let u;for(let _ of c.statements){if(_.pos>t.pos)break;u=_}return!u&&bL(c)?($.assert(pz(c.parent.parent),"Grandparent isn't a switch statement"),c.parent.parent):$.checkDefined(u,"prevStatement failed to get set")}$.assert(c!==n,"Didn't encounter a block-like before encountering scope")}}function p9e(t,n){let a=Cr(t,u=>W.createShorthandPropertyAssignment(u.symbol.name)),c=Cr(n,u=>W.createShorthandPropertyAssignment(u.symbol.name));return a===void 0?c:c===void 0?a:a.concat(c)}function AE(t){return Zn(t)}function B_r(t,n){return AE(t.range)?{pos:To(t.range).getStart(n),end:Sn(t.range).getEnd()}:t.range}function $_r(t,n,a,c,u,_){let f=new Map,y=[],g=[],k=[],T=[],C=[],O=new Map,F=[],M,U=AE(t.range)?t.range.length===1&&af(t.range[0])?t.range[0].expression:void 0:t.range,J;if(U===void 0){let Ce=t.range,Ae=To(Ce).getStart(),Fe=Sn(Ce).end;J=md(c,Ae,Fe-Ae,Vf.expressionExpected)}else u.getTypeAtLocation(U).flags&147456&&(J=xi(U,Vf.uselessConstantType));for(let Ce of n){y.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),g.push(new Map),k.push([]);let Ae=[];J&&Ae.push(J),Co(Ce)&&Ei(Ce)&&Ae.push(xi(Ce,Vf.cannotExtractToJSClass)),Iu(Ce)&&!Vs(Ce.body)&&Ae.push(xi(Ce,Vf.cannotExtractToExpressionArrowFunction)),T.push(Ae)}let G=new Map,Z=AE(t.range)?W.createBlock(t.range):t.range,Q=AE(t.range)?To(t.range):t.range,re=ae(Q);if(me(Z),re&&!AE(t.range)&&!NS(t.range)){let Ce=u.getContextualType(t.range);_e(Ce)}if(f.size>0){let Ce=new Map,Ae=0;for(let Fe=Q;Fe!==void 0&&Ae{y[Ae].typeParameterUsages.set(de,Be)}),Ae++),Nme(Fe))for(let Be of Zk(Fe)){let de=u.getTypeAtLocation(Be);f.has(de.id.toString())&&Ce.set(de.id.toString(),de)}$.assert(Ae===n.length,"Should have iterated all scopes")}if(C.length){let Ce=Pme(n[0],n[0].parent)?n[0]:yv(n[0]);Is(Ce,be)}for(let Ce=0;Ce0&&(Ae.usages.size>0||Ae.typeParameterUsages.size>0)){let de=AE(t.range)?t.range[0]:t.range;T[Ce].push(xi(de,Vf.cannotAccessVariablesFromNestedScopes))}t.facts&16&&Co(n[Ce])&&k[Ce].push(xi(t.thisNode,Vf.cannotExtractFunctionsContainingThisToMethod));let Fe=!1,Be;if(y[Ce].usages.forEach(de=>{de.usage===2&&(Fe=!0,de.symbol.flags&106500&&de.symbol.valueDeclaration&&Bg(de.symbol.valueDeclaration,8)&&(Be=de.symbol.valueDeclaration))}),$.assert(AE(t.range)||F.length===0,"No variable declarations expected if something was extracted"),Fe&&!AE(t.range)){let de=xi(t.range,Vf.cannotWriteInExpression);k[Ce].push(de),T[Ce].push(de)}else if(Be&&Ce>0){let de=xi(Be,Vf.cannotExtractReadonlyPropertyInitializerOutsideConstructor);k[Ce].push(de),T[Ce].push(de)}else if(M){let de=xi(M,Vf.cannotExtractExportedEntity);k[Ce].push(de),T[Ce].push(de)}}return{target:Z,usagesPerScope:y,functionErrorsPerScope:k,constantErrorsPerScope:T,exposedVariableDeclarations:F};function ae(Ce){return!!fn(Ce,Ae=>Nme(Ae)&&Zk(Ae).length!==0)}function _e(Ce){let Ae=u.getSymbolWalker(()=>(_.throwIfCancellationRequested(),!0)),{visitedTypes:Fe}=Ae.walkType(Ce);for(let Be of Fe)Be.isTypeParameter()&&f.set(Be.id.toString(),Be)}function me(Ce,Ae=1){if(re){let Fe=u.getTypeAtLocation(Ce);_e(Fe)}if(Vd(Ce)&&Ce.symbol&&C.push(Ce),of(Ce))me(Ce.left,2),me(Ce.right);else if(PPe(Ce))me(Ce.operand,2);else if(no(Ce)||mu(Ce))Is(Ce,me);else if(ct(Ce)){if(!Ce.parent||dh(Ce.parent)&&Ce!==Ce.parent.left||no(Ce.parent)&&Ce!==Ce.parent.expression)return;le(Ce,Ae,vS(Ce))}else Is(Ce,me)}function le(Ce,Ae,Fe){let Be=Oe(Ce,Ae,Fe);if(Be)for(let de=0;de=Ae)return de;if(G.set(de,Ae),ze){for(let ve of y)ve.usages.get(Ce.text)&&ve.usages.set(Ce.text,{usage:Ae,symbol:Be,node:Ce});return de}let ut=Be.getDeclarations(),je=ut&&wt(ut,ve=>ve.getSourceFile()===c);if(je&&!qK(a,je.getStart(),je.end)){if(t.facts&2&&Ae===2){let ve=xi(Ce,Vf.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let Le of k)Le.push(ve);for(let Le of T)Le.push(ve)}for(let ve=0;veBe.symbol===Ae);if(Fe)if(Oo(Fe)){let Be=Fe.symbol.id.toString();O.has(Be)||(F.push(Fe),O.set(Be,!0))}else M=M||Fe}Is(Ce,be)}function ue(Ce){return Ce.parent&&im(Ce.parent)&&Ce.parent.name===Ce?u.getShorthandAssignmentValueSymbol(Ce.parent):u.getSymbolAtLocation(Ce)}function De(Ce,Ae,Fe){if(!Ce)return;let Be=Ce.getDeclarations();if(Be&&Be.some(ze=>ze.parent===Ae))return W.createIdentifier(Ce.name);let de=De(Ce.parent,Ae,Fe);if(de!==void 0)return Fe?W.createQualifiedName(de,W.createIdentifier(Ce.name)):W.createPropertyAccessExpression(de,Ce.name)}}function U_r(t){return fn(t,n=>n.parent&&Mht(n)&&!wi(n.parent))}function Mht(t){let{parent:n}=t;if(n.kind===307)return!1;switch(t.kind){case 11:return n.kind!==273&&n.kind!==277;case 231:case 207:case 209:return!1;case 80:return n.kind!==209&&n.kind!==277&&n.kind!==282}return!0}function _9e(t){return d9e(t)||(PS(t)||u3(t)||DA(t))&&(PS(t.parent)||DA(t.parent))}function d9e(t){return Ic(t)&&t.parent&&NS(t.parent)}var z_r={},dSe="Generate 'get' and 'set' accessors",f9e=As(x.Generate_get_and_set_accessors),m9e={name:dSe,description:f9e,kind:"refactor.rewrite.property.generateAccessors"};Vx(dSe,{kinds:[m9e.kind],getEditsForAction:function(n,a){if(!n.endPosition)return;let c=Im.getAccessorConvertiblePropertyAtPosition(n.file,n.program,n.startPosition,n.endPosition);$.assert(c&&!XT(c),"Expected applicable refactor info");let u=Im.generateAccessorFromProperty(n.file,n.program,n.startPosition,n.endPosition,n,a);if(!u)return;let _=n.file.fileName,f=c.renameAccessor?c.accessorName:c.fieldName,g=(ct(f)?0:-1)+XK(u,_,f.text,wa(c.declaration));return{renameFilename:_,renameLocation:g,edits:u}},getAvailableActions(t){if(!t.endPosition)return j;let n=Im.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition,t.triggerReason==="invoked");return n?XT(n)?t.preferences.provideRefactorNotApplicableReason?[{name:dSe,description:f9e,actions:[{...m9e,notApplicableReason:n.error}]}]:j:[{name:dSe,description:f9e,actions:[m9e]}]:j}});var q_r={},fSe="Infer function return type",h9e=As(x.Infer_function_return_type),mSe={name:fSe,description:h9e,kind:"refactor.rewrite.function.returnType"};Vx(fSe,{kinds:[mSe.kind],getEditsForAction:J_r,getAvailableActions:V_r});function J_r(t){let n=jht(t);if(n&&!XT(n))return{renameFilename:void 0,renameLocation:void 0,edits:ki.ChangeTracker.with(t,c=>W_r(t.file,c,n.declaration,n.returnTypeNode))}}function V_r(t){let n=jht(t);return n?XT(n)?t.preferences.provideRefactorNotApplicableReason?[{name:fSe,description:h9e,actions:[{...mSe,notApplicableReason:n.error}]}]:j:[{name:fSe,description:h9e,actions:[mSe]}]:j}function W_r(t,n,a,c){let u=Kl(a,22,t),_=Iu(a)&&u===void 0,f=_?To(a.parameters):u;f&&(_&&(n.insertNodeBefore(t,f,W.createToken(21)),n.insertNodeAfter(t,f,W.createToken(22))),n.insertNodeAt(t,f.end,c,{prefix:": "}))}function jht(t){if(Ei(t.file)||!zA(mSe.kind,t.kind))return;let n=Vh(t.file,t.startPosition),a=fn(n,f=>Vs(f)||f.parent&&Iu(f.parent)&&(f.kind===39||f.parent.body===f)?"quit":G_r(f));if(!a||!a.body||a.type)return{error:As(x.Return_type_must_be_inferred_from_a_function)};let c=t.program.getTypeChecker(),u;if(c.isImplementationOfOverload(a)){let f=c.getTypeAtLocation(a).getCallSignatures();f.length>1&&(u=c.getUnionType(Wn(f,y=>y.getReturnType())))}if(!u){let f=c.getSignatureFromDeclaration(a);if(f){let y=c.getTypePredicateOfSignature(f);if(y&&y.type){let g=c.typePredicateToTypePredicateNode(y,a,1,8);if(g)return{declaration:a,returnTypeNode:g}}else u=c.getReturnTypeOfSignature(f)}}if(!u)return{error:As(x.Could_not_determine_function_return_type)};let _=c.typeToTypeNode(u,a,1,8);if(_)return{declaration:a,returnTypeNode:_}}function G_r(t){switch(t.kind){case 263:case 219:case 220:case 175:return!0;default:return!1}}var Bht=(t=>(t[t.typeOffset=8]="typeOffset",t[t.modifierMask=255]="modifierMask",t))(Bht||{}),$ht=(t=>(t[t.class=0]="class",t[t.enum=1]="enum",t[t.interface=2]="interface",t[t.namespace=3]="namespace",t[t.typeParameter=4]="typeParameter",t[t.type=5]="type",t[t.parameter=6]="parameter",t[t.variable=7]="variable",t[t.enumMember=8]="enumMember",t[t.property=9]="property",t[t.function=10]="function",t[t.member=11]="member",t))($ht||{}),Uht=(t=>(t[t.declaration=0]="declaration",t[t.static=1]="static",t[t.async=2]="async",t[t.readonly=3]="readonly",t[t.defaultLibrary=4]="defaultLibrary",t[t.local=5]="local",t))(Uht||{});function zht(t,n,a,c){let u=g9e(t,n,a,c);$.assert(u.spans.length%3===0);let _=u.spans,f=[];for(let y=0;y<_.length;y+=3)f.push({textSpan:Jp(_[y],_[y+1]),classificationType:_[y+2]});return f}function g9e(t,n,a,c){return{spans:H_r(t,a,c,n),endOfLineState:0}}function H_r(t,n,a,c){let u=[];return t&&n&&K_r(t,n,a,(f,y,g)=>{u.push(f.getStart(n),f.getWidth(n),(y+1<<8)+g)},c),u}function K_r(t,n,a,c,u){let _=t.getTypeChecker(),f=!1;function y(g){switch(g.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 220:u.throwIfCancellationRequested()}if(!g||!_S(a,g.pos,g.getFullWidth())||g.getFullWidth()===0)return;let k=f;if((PS(g)||u3(g))&&(f=!0),SL(g)&&(f=!1),ct(g)&&!f&&!Y_r(g)&&!ZU(g.escapedText)){let T=_.getSymbolAtLocation(g);if(T){T.flags&2097152&&(T=_.getAliasedSymbol(T));let C=Q_r(T,x3(g));if(C!==void 0){let O=0;g.parent&&(Vc(g.parent)||Vht.get(g.parent.kind)===C)&&g.parent.name===g&&(O=1),C===6&&Jht(g)&&(C=9),C=Z_r(_,g,C);let F=T.valueDeclaration;if(F){let M=Ra(F),U=dd(F);M&256&&(O|=2),M&1024&&(O|=4),C!==0&&C!==2&&(M&8||U&2||T.getFlags()&8)&&(O|=8),(C===7||C===10)&&X_r(F,n)&&(O|=32),t.isSourceFileDefaultLibrary(F.getSourceFile())&&(O|=16)}else T.declarations&&T.declarations.some(M=>t.isSourceFileDefaultLibrary(M.getSourceFile()))&&(O|=16);c(g,C,O)}}}Is(g,y),f=k}y(n)}function Q_r(t,n){let a=t.getFlags();if(a&32)return 0;if(a&384)return 1;if(a&524288)return 5;if(a&64){if(n&2)return 2}else if(a&262144)return 4;let c=t.valueDeclaration||t.declarations&&t.declarations[0];return c&&Vc(c)&&(c=qht(c)),c&&Vht.get(c.kind)}function Z_r(t,n,a){if(a===7||a===9||a===6){let c=t.getTypeAtLocation(n);if(c){let u=_=>_(c)||c.isUnion()&&c.types.some(_);if(a!==6&&u(_=>_.getConstructSignatures().length>0))return 0;if(u(_=>_.getCallSignatures().length>0)&&!u(_=>_.getProperties().length>0)||edr(n))return a===9?11:10}}return a}function X_r(t,n){return Vc(t)&&(t=qht(t)),Oo(t)?(!Ta(t.parent.parent.parent)||TP(t.parent))&&t.getSourceFile()===n:i_(t)?!Ta(t.parent)&&t.getSourceFile()===n:!1}function qht(t){for(;;)if(Vc(t.parent.parent))t=t.parent.parent;else return t.parent.parent}function Y_r(t){let n=t.parent;return n&&(H1(n)||Xm(n)||zx(n))}function edr(t){for(;Jht(t);)t=t.parent;return Js(t.parent)&&t.parent.expression===t}function Jht(t){return dh(t.parent)&&t.parent.right===t||no(t.parent)&&t.parent.name===t}var Vht=new Map([[261,7],[170,6],[173,9],[268,3],[267,1],[307,8],[264,0],[175,11],[263,10],[219,10],[174,11],[178,9],[179,9],[172,9],[265,2],[266,5],[169,4],[304,9],[305,9]]),Wht="0.8";function Ght(t,n,a,c){let u=Ute(t)?new y9e(t,n,a):t===80?new Kht(80,n,a):t===81?new Qht(81,n,a):new Hht(t,n,a);return u.parent=c,u.flags=c.flags&101441536,u}var y9e=class{constructor(t,n,a){this.pos=n,this.end=a,this.kind=t,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}assertHasRealPosition(t){$.assert(!bv(this.pos)&&!bv(this.end),t||"Node must have a real position for this operation")}getSourceFile(){return Pn(this)}getStart(t,n){return this.assertHasRealPosition(),oC(this,t,n)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(t){return this.assertHasRealPosition(),this.getEnd()-this.getStart(t)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(t){return this.assertHasRealPosition(),this.getStart(t)-this.pos}getFullText(t){return this.assertHasRealPosition(),(t||this.getSourceFile()).text.substring(this.pos,this.end)}getText(t){return this.assertHasRealPosition(),t||(t=this.getSourceFile()),t.text.substring(this.getStart(t),this.getEnd())}getChildCount(t){return this.getChildren(t).length}getChildAt(t,n){return this.getChildren(n)[t]}getChildren(t=Pn(this)){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),Jge(this,t)??rNe(this,t,tdr(this,t))}getFirstToken(t){this.assertHasRealPosition();let n=this.getChildren(t);if(!n.length)return;let a=wt(n,c=>c.kind<310||c.kind>352);return a.kind<167?a:a.getFirstToken(t)}getLastToken(t){this.assertHasRealPosition();let n=this.getChildren(t),a=Yr(n);if(a)return a.kind<167?a:a.getLastToken(t)}forEachChild(t,n){return Is(this,t,n)}};function tdr(t,n){let a=[];if(Kte(t))return t.forEachChild(f=>{a.push(f)}),a;wf.setText((n||t.getSourceFile()).text);let c=t.pos,u=f=>{Cae(a,c,f.pos,t),a.push(f),c=f.end},_=f=>{Cae(a,c,f.pos,t),a.push(rdr(f,t)),c=f.end};return X(t.jsDoc,u),c=t.pos,t.forEachChild(u,_),Cae(a,c,t.end,t),wf.setText(void 0),a}function Cae(t,n,a,c){for(wf.resetTokenState(n);nn.tagName.text==="inheritDoc"||n.tagName.text==="inheritdoc")}function hSe(t,n){if(!t)return j;let a=VA.getJsDocTagsFromDeclarations(t,n);if(n&&(a.length===0||t.some(Zht))){let c=new Set;for(let u of t){let _=Xht(n,u,f=>{var y;if(!c.has(f))return c.add(f),u.kind===178||u.kind===179?f.getContextualJsDocTags(u,n):((y=f.declarations)==null?void 0:y.length)===1?f.getJsDocTags(n):void 0});_&&(a=[..._,...a])}}return a}function Dae(t,n){if(!t)return j;let a=VA.getJsDocCommentsFromDeclarations(t,n);if(n&&(a.length===0||t.some(Zht))){let c=new Set;for(let u of t){let _=Xht(n,u,f=>{if(!c.has(f))return c.add(f),u.kind===178||u.kind===179?f.getContextualDocumentationComment(u,n):f.getDocumentationComment(n)});_&&(a=a.length===0?_.slice():_.concat(YL(),a))}}return a}function Xht(t,n,a){var c;let u=((c=n.parent)==null?void 0:c.kind)===177?n.parent.parent:n.parent;if(!u)return;let _=fd(n);return Je(EU(u),f=>{let y=t.getTypeAtLocation(f),g=_&&y.symbol?t.getTypeOfSymbol(y.symbol):y,k=t.getPropertyOfType(g,n.symbol.name);return k?a(k):void 0})}var adr=class extends y9e{constructor(t,n,a){super(t,n,a)}update(t,n){return oye(this,t,n)}getLineAndCharacterOfPosition(t){return qs(this,t)}getLineStarts(){return Ry(this)}getPositionOfLineAndCharacter(t,n,a){return AO(Ry(this),t,n,this.text,a)}getLineEndOfPosition(t){let{line:n}=this.getLineAndCharacterOfPosition(t),a=this.getLineStarts(),c;n+1>=a.length&&(c=this.getEnd()),c||(c=a[n+1]-1);let u=this.getFullText();return u[c]===` +`&&u[c-1]==="\r"?c-1:c}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let t=d_();return this.forEachChild(u),t;function n(_){let f=c(_);f&&t.add(f,_)}function a(_){let f=t.get(_);return f||t.set(_,f=[]),f}function c(_){let f=PR(_);return f&&(dc(f)&&no(f.expression)?f.expression.name.text:q_(f)?HK(f):void 0)}function u(_){switch(_.kind){case 263:case 219:case 175:case 174:let f=_,y=c(f);if(y){let T=a(y),C=Yr(T);C&&f.parent===C.parent&&f.symbol===C.symbol?f.body&&!C.body&&(T[T.length-1]=f):T.push(f)}Is(_,u);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:n(_),Is(_,u);break;case 170:if(!ko(_,31))break;case 261:case 209:{let T=_;if($s(T.name)){Is(T.name,u);break}T.initializer&&u(T.initializer)}case 307:case 173:case 172:n(_);break;case 279:let g=_;g.exportClause&&(k0(g.exportClause)?X(g.exportClause.elements,u):u(g.exportClause.name));break;case 273:let k=_.importClause;k&&(k.name&&n(k.name),k.namedBindings&&(k.namedBindings.kind===275?n(k.namedBindings):X(k.namedBindings.elements,u)));break;case 227:m_(_)!==0&&n(_);default:Is(_,u)}}}},sdr=class{constructor(t,n,a){this.fileName=t,this.text=n,this.skipTrivia=a||(c=>c)}getLineAndCharacterOfPosition(t){return qs(this,t)}};function cdr(){return{getNodeConstructor:()=>y9e,getTokenConstructor:()=>Hht,getIdentifierConstructor:()=>Kht,getPrivateIdentifierConstructor:()=>Qht,getSourceFileConstructor:()=>adr,getSymbolConstructor:()=>ndr,getTypeConstructor:()=>idr,getSignatureConstructor:()=>odr,getSourceMapSourceConstructor:()=>sdr}}function pQ(t){let n=!0;for(let c in t)if(Ho(t,c)&&!Yht(c)){n=!1;break}if(n)return t;let a={};for(let c in t)if(Ho(t,c)){let u=Yht(c)?c:c.charAt(0).toLowerCase()+c.substr(1);a[u]=t[c]}return a}function Yht(t){return!t.length||t.charAt(0)===t.charAt(0).toLowerCase()}function _Q(t){return t?Cr(t,n=>n.text).join(""):""}function Aae(){return{target:1,jsx:1}}function gSe(){return Im.getSupportedErrorCodes()}var ldr=class{constructor(t){this.host=t}getCurrentSourceFile(t){var n,a,c,u,_,f,y,g;let k=this.host.getScriptSnapshot(t);if(!k)throw new Error("Could not find file: '"+t+"'.");let T=yve(t,this.host),C=this.host.getScriptVersion(t),O;if(this.currentFileName!==t){let F={languageVersion:99,impliedNodeFormat:AK(wl(t,this.host.getCurrentDirectory(),((c=(a=(n=this.host).getCompilerHost)==null?void 0:a.call(n))==null?void 0:c.getCanonicalFileName)||UT(this.host)),(g=(y=(f=(_=(u=this.host).getCompilerHost)==null?void 0:_.call(u))==null?void 0:f.getModuleResolutionCache)==null?void 0:y.call(f))==null?void 0:g.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:dH(this.host.getCompilationSettings()),jsDocParsingMode:0};O=wae(t,k,F,C,!0,T)}else if(this.currentFileVersion!==C){let F=k.getChangeRange(this.currentFileScriptSnapshot);O=ySe(this.currentSourceFile,k,C,F)}return O&&(this.currentFileVersion=C,this.currentFileName=t,this.currentFileScriptSnapshot=k,this.currentSourceFile=O),this.currentSourceFile}};function egt(t,n,a){t.version=a,t.scriptSnapshot=n}function wae(t,n,a,c,u,_){let f=DF(t,BF(n),a,u,_);return egt(f,n,c),f}function ySe(t,n,a,c,u){if(c&&a!==t.version){let f,y=c.span.start!==0?t.text.substr(0,c.span.start):"",g=Xn(c.span)!==t.text.length?t.text.substr(Xn(c.span)):"";if(c.newLength===0)f=y&&g?y+g:y||g;else{let T=n.getText(c.span.start,c.span.start+c.newLength);f=y&&g?y+T+g:y?y+T:T+g}let k=oye(t,f,c,u);return egt(k,n,a),k.nameTable=void 0,t!==k&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),k}let _={languageVersion:t.languageVersion,impliedNodeFormat:t.impliedNodeFormat,setExternalModuleIndicator:t.setExternalModuleIndicator,jsDocParsingMode:t.jsDocParsingMode};return wae(t.fileName,n,_,a,!0,t.scriptKind)}var udr={isCancellationRequested:Yf,throwIfCancellationRequested:zs},pdr=class{constructor(t){this.cancellationToken=t}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var t;if(this.isCancellationRequested())throw(t=hi)==null||t.instant(hi.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Uk}},S9e=class{constructor(t,n=20){this.hostCancellationToken=t,this.throttleWaitMilliseconds=n,this.lastCancellationCheckTime=0}isCancellationRequested(){let t=Ml();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var t;if(this.isCancellationRequested())throw(t=hi)==null||t.instant(hi.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Uk}},tgt=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],_dr=[...tgt,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];function b9e(t,n=V7e(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory(),t.jsDocParsingMode),a){var c;let u;a===void 0?u=0:typeof a=="boolean"?u=a?2:0:u=a;let _=new ldr(t),f,y,g=0,k=t.getCancellationToken?new pdr(t.getCancellationToken()):udr,T=t.getCurrentDirectory();k4e((c=t.getLocalizedDiagnosticMessages)==null?void 0:c.bind(t));function C(Rt){t.log&&t.log(Rt)}let O=K4(t),F=_d(O),M=o5e({useCaseSensitiveFileNames:()=>O,getCurrentDirectory:()=>T,getProgram:Z,fileExists:ja(t,t.fileExists),readFile:ja(t,t.readFile),getDocumentPositionMapper:ja(t,t.getDocumentPositionMapper),getSourceFileLike:ja(t,t.getSourceFileLike),log:C});function U(Rt){let rr=f.getSourceFile(Rt);if(!rr){let _r=new Error(`Could not find source file: '${Rt}'.`);throw _r.ProgramFiles=f.getSourceFiles().map(wr=>wr.fileName),_r}return rr}function J(){t.updateFromProject&&!t.updateFromProjectInProgress?t.updateFromProject():G()}function G(){var Rt,rr,_r;if($.assert(u!==2),t.getProjectVersion){let _s=t.getProjectVersion();if(_s){if(y===_s&&!((Rt=t.hasChangedAutomaticTypeDirectiveNames)!=null&&Rt.call(t)))return;y=_s}}let wr=t.getTypeRootsVersion?t.getTypeRootsVersion():0;g!==wr&&(C("TypeRoots version has changed; provide new program"),f=void 0,g=wr);let pn=t.getScriptFileNames().slice(),tn=t.getCompilationSettings()||Aae(),lr=t.hasInvalidatedResolutions||Yf,cn=ja(t,t.hasInvalidatedLibResolutions)||Yf,gn=ja(t,t.hasChangedAutomaticTypeDirectiveNames),bn=(rr=t.getProjectReferences)==null?void 0:rr.call(t),$r,Uo={getSourceFile:o_,getSourceFileByPath:Gy,getCancellationToken:()=>k,getCanonicalFileName:F,useCaseSensitiveFileNames:()=>O,getNewLine:()=>fE(tn),getDefaultLibFileName:_s=>t.getDefaultLibFileName(_s),writeFile:zs,getCurrentDirectory:()=>T,fileExists:_s=>t.fileExists(_s),readFile:_s=>t.readFile&&t.readFile(_s),getSymlinkCache:ja(t,t.getSymlinkCache),realpath:ja(t,t.realpath),directoryExists:_s=>Sv(_s,t),getDirectories:_s=>t.getDirectories?t.getDirectories(_s):[],readDirectory:(_s,sc,sl,Yc,Ar)=>($.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(_s,sc,sl,Yc,Ar)),onReleaseOldSourceFile:kc,onReleaseParsedCommandLine:V_,hasInvalidatedResolutions:lr,hasInvalidatedLibResolutions:cn,hasChangedAutomaticTypeDirectiveNames:gn,trace:ja(t,t.trace),resolveModuleNames:ja(t,t.resolveModuleNames),getModuleResolutionCache:ja(t,t.getModuleResolutionCache),createHash:ja(t,t.createHash),resolveTypeReferenceDirectives:ja(t,t.resolveTypeReferenceDirectives),resolveModuleNameLiterals:ja(t,t.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:ja(t,t.resolveTypeReferenceDirectiveReferences),resolveLibrary:ja(t,t.resolveLibrary),useSourceOfProjectReferenceRedirect:ja(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:$a,jsDocParsingMode:t.jsDocParsingMode,getGlobalTypingsCacheLocation:ja(t,t.getGlobalTypingsCacheLocation)},Ys=Uo.getSourceFile,{getSourceFileWithCache:ec}=Bz(Uo,_s=>wl(_s,T,F),(..._s)=>Ys.call(Uo,..._s));Uo.getSourceFile=ec,(_r=t.setCompilerHost)==null||_r.call(t,Uo);let Ss={useCaseSensitiveFileNames:O,fileExists:_s=>Uo.fileExists(_s),readFile:_s=>Uo.readFile(_s),directoryExists:_s=>Uo.directoryExists(_s),getDirectories:_s=>Uo.getDirectories(_s),realpath:Uo.realpath,readDirectory:(..._s)=>Uo.readDirectory(..._s),trace:Uo.trace,getCurrentDirectory:Uo.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:zs},Mp=n.getKeyForCompilationSettings(tn),Cp=new Set;if(R0e(f,pn,tn,(_s,sc)=>t.getScriptVersion(sc),_s=>Uo.fileExists(_s),lr,cn,gn,$a,bn)){Uo=void 0,$r=void 0,Cp=void 0;return}f=wK({rootNames:pn,options:tn,host:Uo,oldProgram:f,projectReferences:bn}),Uo=void 0,$r=void 0,Cp=void 0,M.clearCache(),f.getTypeChecker();return;function $a(_s){let sc=wl(_s,T,F),sl=$r?.get(sc);if(sl!==void 0)return sl||void 0;let Yc=t.getParsedCommandLine?t.getParsedCommandLine(_s):bs(_s);return($r||($r=new Map)).set(sc,Yc||!1),Yc}function bs(_s){let sc=o_(_s,100);if(sc)return sc.path=wl(_s,T,F),sc.resolvedPath=sc.path,sc.originalFileName=sc.fileName,oK(sc,Ss,za(mo(_s),T),void 0,za(_s,T))}function V_(_s,sc,sl){var Yc;t.getParsedCommandLine?(Yc=t.onReleaseParsedCommandLine)==null||Yc.call(t,_s,sc,sl):sc&&Nu(sc.sourceFile,sl)}function Nu(_s,sc){let sl=n.getKeyForCompilationSettings(sc);n.releaseDocumentWithKey(_s.resolvedPath,sl,_s.scriptKind,_s.impliedNodeFormat)}function kc(_s,sc,sl,Yc){var Ar;Nu(_s,sc),(Ar=t.onReleaseOldSourceFile)==null||Ar.call(t,_s,sc,sl,Yc)}function o_(_s,sc,sl,Yc){return Gy(_s,wl(_s,T,F),sc,sl,Yc)}function Gy(_s,sc,sl,Yc,Ar){$.assert(Uo,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let Ql=t.getScriptSnapshot(_s);if(!Ql)return;let Gp=yve(_s,t),N_=t.getScriptVersion(_s);if(!Ar){let lf=f&&f.getSourceFileByPath(sc);if(lf){if(Gp===lf.scriptKind||Cp.has(lf.resolvedPath))return n.updateDocumentWithKey(_s,sc,t,Mp,Ql,N_,Gp,sl);n.releaseDocumentWithKey(lf.resolvedPath,n.getKeyForCompilationSettings(f.getCompilerOptions()),lf.scriptKind,lf.impliedNodeFormat),Cp.add(lf.resolvedPath)}}return n.acquireDocumentWithKey(_s,sc,t,Mp,Ql,N_,Gp,sl)}}function Z(){if(u===2){$.assert(f===void 0);return}return J(),f}function Q(){var Rt;return(Rt=t.getPackageJsonAutoImportProvider)==null?void 0:Rt.call(t)}function re(Rt,rr){let _r=f.getTypeChecker(),wr=pn();if(!wr)return!1;for(let lr of Rt)for(let cn of lr.references){let gn=tn(cn);if($.assertIsDefined(gn),rr.has(cn)||Pu.isDeclarationOfSymbol(gn,wr)){rr.add(cn),cn.isDefinition=!0;let bn=Koe(cn,M,ja(t,t.fileExists));bn&&rr.add(bn)}else cn.isDefinition=!1}return!0;function pn(){for(let lr of Rt)for(let cn of lr.references){if(rr.has(cn)){let bn=tn(cn);return $.assertIsDefined(bn),_r.getSymbolAtLocation(bn)}let gn=Koe(cn,M,ja(t,t.fileExists));if(gn&&rr.has(gn)){let bn=tn(gn);if(bn)return _r.getSymbolAtLocation(bn)}}}function tn(lr){let cn=f.getSourceFile(lr.fileName);if(!cn)return;let gn=Vh(cn,lr.textSpan.start);return Pu.Core.getAdjustedNode(gn,{use:Pu.FindReferencesUse.References})}}function ae(){if(f){let Rt=n.getKeyForCompilationSettings(f.getCompilerOptions());X(f.getSourceFiles(),rr=>n.releaseDocumentWithKey(rr.resolvedPath,Rt,rr.scriptKind,rr.impliedNodeFormat)),f=void 0}}function _e(){ae(),t=void 0}function me(Rt){return J(),f.getSyntacticDiagnostics(U(Rt),k).slice()}function le(Rt){J();let rr=U(Rt),_r=f.getSemanticDiagnostics(rr,k);if(!fg(f.getCompilerOptions()))return _r.slice();let wr=f.getDeclarationDiagnostics(rr,k);return[..._r,...wr]}function Oe(Rt,rr){J();let _r=U(Rt),wr=f.getCompilerOptions();if(lL(_r,wr,f)||!GU(_r,wr)||f.getCachedSemanticDiagnostics(_r))return;let pn=be(_r,rr);if(!pn)return;let tn=D_(pn.map(cn=>Hu(cn.getFullStart(),cn.getEnd())));return{diagnostics:f.getSemanticDiagnostics(_r,k,pn).slice(),spans:tn}}function be(Rt,rr){let _r=[],wr=D_(rr.map(pn=>CE(pn)));for(let pn of wr){let tn=ue(Rt,pn);if(!tn)return;_r.push(...tn)}if(_r.length)return _r}function ue(Rt,rr){if(su(rr,Rt))return;let _r=Hz(Rt,Xn(rr))||Rt,wr=fn(_r,tn=>Hl(tn,rr)),pn=[];if(De(rr,wr,pn),Rt.end===rr.start+rr.length&&pn.push(Rt.endOfFileToken),!Pt(pn,Ta))return pn}function De(Rt,rr,_r){return Ce(rr,Rt)?su(Rt,rr)?(Ae(rr,_r),!0):UF(rr)?Fe(Rt,rr,_r):Co(rr)?Be(Rt,rr,_r):(Ae(rr,_r),!0):!1}function Ce(Rt,rr){let _r=rr.start+rr.length;return Rt.pos<_r&&Rt.end>rr.start}function Ae(Rt,rr){for(;Rt.parent&&!i3e(Rt);)Rt=Rt.parent;rr.push(Rt)}function Fe(Rt,rr,_r){let wr=[];return rr.statements.filter(tn=>De(Rt,tn,wr)).length===rr.statements.length?(Ae(rr,_r),!0):(_r.push(...wr),!1)}function Be(Rt,rr,_r){var wr,pn,tn;let lr=bn=>Hk(bn,Rt);if((wr=rr.modifiers)!=null&&wr.some(lr)||rr.name&&lr(rr.name)||(pn=rr.typeParameters)!=null&&pn.some(lr)||(tn=rr.heritageClauses)!=null&&tn.some(lr))return Ae(rr,_r),!0;let cn=[];return rr.members.filter(bn=>De(Rt,bn,cn)).length===rr.members.length?(Ae(rr,_r),!0):(_r.push(...cn),!1)}function de(Rt){return J(),Jve(U(Rt),f,k)}function ze(){return J(),[...f.getOptionsDiagnostics(k),...f.getGlobalDiagnostics(k)]}function ut(Rt,rr,_r=u1,wr){let pn={..._r,includeCompletionsForModuleExports:_r.includeCompletionsForModuleExports||_r.includeExternalModuleExports,includeCompletionsWithInsertText:_r.includeCompletionsWithInsertText||_r.includeInsertTextCompletions};return J(),KF.getCompletionsAtPosition(t,f,C,U(Rt),rr,pn,_r.triggerCharacter,_r.triggerKind,k,wr&&rd.getFormatContext(wr,t),_r.includeSymbol)}function je(Rt,rr,_r,wr,pn,tn=u1,lr){return J(),KF.getCompletionEntryDetails(f,C,U(Rt),rr,{name:_r,source:pn,data:lr},t,wr&&rd.getFormatContext(wr,t),tn,k)}function ve(Rt,rr,_r,wr,pn=u1){return J(),KF.getCompletionEntrySymbol(f,C,U(Rt),rr,{name:_r,source:wr},t,pn)}function Le(Rt,rr,_r,wr){J();let pn=U(Rt),tn=Vh(pn,rr);if(tn===pn)return;let lr=f.getTypeChecker(),cn=It(tn),gn=hdr(cn,lr);if(!gn||lr.isUnknownSymbol(gn)){let Ss=ke(pn,cn,rr)?lr.getTypeAtLocation(cn):void 0;return Ss&&{kind:"",kindModifiers:"",textSpan:yh(cn,pn),displayParts:lr.runWithCancellationToken(k,Mp=>ZK(Mp,Ss,T3(cn),void 0,wr)),documentation:Ss.symbol?Ss.symbol.getDocumentationComment(lr):void 0,tags:Ss.symbol?Ss.symbol.getJsDocTags(lr):void 0}}let{symbolKind:bn,displayParts:$r,documentation:Uo,tags:Ys,canIncreaseVerbosityLevel:ec}=lr.runWithCancellationToken(k,Ss=>wE.getSymbolDisplayPartsDocumentationAndSymbolKind(Ss,gn,pn,T3(cn),cn,void 0,void 0,_r??JPe,wr));return{kind:bn,kindModifiers:wE.getSymbolModifiers(lr,gn),textSpan:yh(cn,pn),displayParts:$r,documentation:Uo,tags:Ys,canIncreaseVerbosityLevel:ec}}function Ve(Rt,rr){return J(),wbe.preparePasteEdits(U(Rt),rr,f.getTypeChecker())}function nt(Rt,rr){return J(),Ibe.pasteEditsProvider(U(Rt.targetFile),Rt.pastedText,Rt.pasteLocations,Rt.copiedFrom?{file:U(Rt.copiedFrom.file),range:Rt.copiedFrom.range}:void 0,t,Rt.preferences,rd.getFormatContext(rr,t),k)}function It(Rt){return SP(Rt.parent)&&Rt.pos===Rt.parent.pos?Rt.parent.expression:mL(Rt.parent)&&Rt.pos===Rt.parent.pos||qR(Rt.parent)&&Rt.parent.name===Rt||Ev(Rt.parent)?Rt.parent:Rt}function ke(Rt,rr,_r){switch(rr.kind){case 80:return rr.flags&16777216&&!Ei(rr)&&(rr.parent.kind===172&&rr.parent.name===rr||fn(rr,wr=>wr.kind===170))?!1:!j1e(rr)&&!B1e(rr)&&!z1(rr.parent);case 212:case 167:return!EE(Rt,_r);case 110:case 198:case 108:case 203:return!0;case 237:return qR(rr);default:return!1}}function _t(Rt,rr,_r,wr){return J(),cM.getDefinitionAtPosition(f,U(Rt),rr,_r,wr)}function Se(Rt,rr){return J(),cM.getDefinitionAndBoundSpan(f,U(Rt),rr)}function tt(Rt,rr){return J(),cM.getTypeDefinitionAtPosition(f.getTypeChecker(),U(Rt),rr)}function Qe(Rt,rr){return J(),Pu.getImplementationsAtPosition(f,k,f.getSourceFiles(),U(Rt),rr)}function We(Rt,rr,_r){let wr=Qs(Rt);$.assert(_r.some(lr=>Qs(lr)===wr)),J();let pn=Wn(_r,lr=>f.getSourceFile(lr)),tn=U(Rt);return dae.getDocumentHighlights(f,k,tn,rr,pn)}function St(Rt,rr,_r,wr,pn){J();let tn=U(Rt),lr=Moe(Vh(tn,rr));if(Qae.nodeIsEligibleForRename(lr))if(ct(lr)&&(Tv(lr.parent)||bP(lr.parent))&&eL(lr.escapedText)){let{openingElement:cn,closingElement:gn}=lr.parent.parent;return[cn,gn].map(bn=>{let $r=yh(bn.tagName,tn);return{fileName:tn.fileName,textSpan:$r,...Pu.toContextSpan($r,tn,bn.parent)}})}else{let cn=Vg(tn,pn??u1),gn=typeof pn=="boolean"?pn:pn?.providePrefixAndSuffixTextForRename;return Sr(lr,rr,{findInStrings:_r,findInComments:wr,providePrefixAndSuffixTextForRename:gn,use:Pu.FindReferencesUse.Rename},(bn,$r,Uo)=>Pu.toRenameLocation(bn,$r,Uo,gn||!1,cn))}}function Kt(Rt,rr){return J(),Sr(Vh(U(Rt),rr),rr,{use:Pu.FindReferencesUse.References},Pu.toReferenceEntry)}function Sr(Rt,rr,_r,wr){J();let pn=_r&&_r.use===Pu.FindReferencesUse.Rename?f.getSourceFiles().filter(tn=>!f.isSourceFileDefaultLibrary(tn)):f.getSourceFiles();return Pu.findReferenceOrRenameEntries(f,k,pn,Rt,rr,_r,wr)}function nn(Rt,rr){return J(),Pu.findReferencedSymbols(f,k,f.getSourceFiles(),U(Rt),rr)}function Nn(Rt){return J(),Pu.Core.getReferencesForFileName(Rt,f,f.getSourceFiles()).map(Pu.toReferenceEntry)}function $t(Rt,rr,_r,wr=!1,pn=!1){J();let tn=_r?[U(_r)]:f.getSourceFiles();return dmt(tn,f.getTypeChecker(),k,Rt,rr,wr,pn)}function Dr(Rt,rr,_r){J();let wr=U(Rt),pn=t.getCustomTransformers&&t.getCustomTransformers();return jOe(f,wr,!!rr,k,pn,_r)}function Qn(Rt,rr,{triggerReason:_r}=u1){J();let wr=U(Rt);return AQ.getSignatureHelpItems(f,wr,rr,_r,k)}function Ko(Rt){return _.getCurrentSourceFile(Rt)}function is(Rt,rr,_r){let wr=_.getCurrentSourceFile(Rt),pn=Vh(wr,rr);if(pn===wr)return;switch(pn.kind){case 212:case 167:case 11:case 97:case 112:case 106:case 108:case 110:case 198:case 80:break;default:return}let tn=pn;for(;;)if(WL(tn)||t7e(tn))tn=tn.parent;else if(U1e(tn))if(tn.parent.parent.kind===268&&tn.parent.parent.body===tn.parent)tn=tn.parent.parent.name;else break;else break;return Hu(tn.getStart(),pn.getEnd())}function sr(Rt,rr){let _r=_.getCurrentSourceFile(Rt);return SSe.spanInSourceFileAtLocation(_r,rr)}function uo(Rt){return gmt(_.getCurrentSourceFile(Rt),k)}function Wa(Rt){return ymt(_.getCurrentSourceFile(Rt),k)}function oo(Rt,rr,_r){return J(),(_r||"original")==="2020"?zht(f,k,U(Rt),rr):q7e(f.getTypeChecker(),k,U(Rt),f.getClassifiableNames(),rr)}function Oi(Rt,rr,_r){return J(),(_r||"original")==="original"?Lve(f.getTypeChecker(),k,U(Rt),f.getClassifiableNames(),rr):g9e(f,k,U(Rt),rr)}function $o(Rt,rr){return J7e(k,_.getCurrentSourceFile(Rt),rr)}function ft(Rt,rr){return Mve(k,_.getCurrentSourceFile(Rt),rr)}function Ht(Rt){let rr=_.getCurrentSourceFile(Rt);return fbe.collectElements(rr,k)}let Wr=new Map(Object.entries({19:20,21:22,23:24,32:30}));Wr.forEach((Rt,rr)=>Wr.set(Rt.toString(),Number(rr)));function ai(Rt,rr){let _r=_.getCurrentSourceFile(Rt),wr=KL(_r,rr),pn=wr.getStart(_r)===rr?Wr.get(wr.kind.toString()):void 0,tn=pn&&Kl(wr.parent,pn,_r);return tn?[yh(wr,_r),yh(tn,_r)].sort((lr,cn)=>lr.start-cn.start):j}function vo(Rt,rr,_r){let wr=Ml(),pn=pQ(_r),tn=_.getCurrentSourceFile(Rt);C("getIndentationAtPosition: getCurrentSourceFile: "+(Ml()-wr)),wr=Ml();let lr=rd.SmartIndenter.getIndentation(rr,tn,pn);return C("getIndentationAtPosition: computeIndentation : "+(Ml()-wr)),lr}function Eo(Rt,rr,_r,wr){let pn=_.getCurrentSourceFile(Rt);return rd.formatSelection(rr,_r,pn,rd.getFormatContext(pQ(wr),t))}function ya(Rt,rr){return rd.formatDocument(_.getCurrentSourceFile(Rt),rd.getFormatContext(pQ(rr),t))}function Ls(Rt,rr,_r,wr){let pn=_.getCurrentSourceFile(Rt),tn=rd.getFormatContext(pQ(wr),t);if(!EE(pn,rr))switch(_r){case"{":return rd.formatOnOpeningCurly(rr,pn,tn);case"}":return rd.formatOnClosingCurly(rr,pn,tn);case";":return rd.formatOnSemicolon(rr,pn,tn);case` +`:return rd.formatOnEnter(rr,pn,tn)}return[]}function yc(Rt,rr,_r,wr,pn,tn=u1){J();let lr=U(Rt),cn=Hu(rr,_r),gn=rd.getFormatContext(pn,t);return an(rf(wr,Ng,Br),bn=>(k.throwIfCancellationRequested(),Im.getFixes({errorCode:bn,sourceFile:lr,span:cn,program:f,host:t,cancellationToken:k,formatContext:gn,preferences:tn})))}function Cn(Rt,rr,_r,wr=u1){J(),$.assert(Rt.type==="file");let pn=U(Rt.fileName),tn=rd.getFormatContext(_r,t);return Im.getAllFixes({fixId:rr,sourceFile:pn,program:f,host:t,cancellationToken:k,formatContext:tn,preferences:wr})}function Es(Rt,rr,_r=u1){J(),$.assert(Rt.type==="file");let wr=U(Rt.fileName);if(BO(wr))return j;let pn=rd.getFormatContext(rr,t),tn=Rt.mode??(Rt.skipDestructiveCodeActions?"SortAndCombine":"All");return WA.organizeImports(wr,pn,t,f,_r,tn)}function Dt(Rt,rr,_r,wr=u1){return G7e(Z(),Rt,rr,t,rd.getFormatContext(_r,t),wr,M)}function ur(Rt,rr){let _r=typeof Rt=="string"?rr:Rt;return Zn(_r)?Promise.all(_r.map(wr=>Ee(wr))):Ee(_r)}function Ee(Rt){let rr=_r=>wl(_r,T,F);return $.assertEqual(Rt.type,"install package"),t.installPackage?t.installPackage({fileName:rr(Rt.file),packageName:Rt.packageName}):Promise.reject("Host does not implement `installPackage`")}function Bt(Rt,rr,_r,wr){let pn=wr?rd.getFormatContext(wr,t).options:void 0;return VA.getDocCommentTemplateAtPosition(ZT(t,pn),_.getCurrentSourceFile(Rt),rr,_r)}function ye(Rt,rr,_r){if(_r===60)return!1;let wr=_.getCurrentSourceFile(Rt);if(jF(wr,rr))return!1;if(c7e(wr,rr))return _r===123;if(G1e(wr,rr))return!1;switch(_r){case 39:case 34:case 96:return!EE(wr,rr)}return!0}function et(Rt,rr){let _r=_.getCurrentSourceFile(Rt),wr=vd(rr,_r);if(!wr)return;let pn=wr.kind===32&&Tv(wr.parent)?wr.parent.parent:_F(wr)&&PS(wr.parent)?wr.parent:void 0;if(pn&&pr(pn))return{newText:``};let tn=wr.kind===32&&K1(wr.parent)?wr.parent.parent:_F(wr)&&DA(wr.parent)?wr.parent:void 0;if(tn&&Et(tn))return{newText:""}}function Ct(Rt,rr){let _r=_.getCurrentSourceFile(Rt),wr=vd(rr,_r);if(!wr||wr.parent.kind===308)return;let pn="[a-zA-Z0-9:\\-\\._$]*";if(DA(wr.parent.parent)){let tn=wr.parent.parent.openingFragment,lr=wr.parent.parent.closingFragment;if(BO(tn)||BO(lr))return;let cn=tn.getStart(_r)+1,gn=lr.getStart(_r)+2;return rr!==cn&&rr!==gn?void 0:{ranges:[{start:cn,length:0},{start:gn,length:0}],wordPattern:pn}}else{let tn=fn(wr.parent,ec=>!!(Tv(ec)||bP(ec)));if(!tn)return;$.assert(Tv(tn)||bP(tn),"tag should be opening or closing element");let lr=tn.parent.openingElement,cn=tn.parent.closingElement,gn=lr.tagName.getStart(_r),bn=lr.tagName.end,$r=cn.tagName.getStart(_r),Uo=cn.tagName.end;return gn===lr.getStart(_r)||$r===cn.getStart(_r)||bn===lr.getEnd()||Uo===cn.getEnd()||!(gn<=rr&&rr<=bn||$r<=rr&&rr<=Uo)||lr.tagName.getText(_r)!==cn.tagName.getText(_r)?void 0:{ranges:[{start:gn,length:bn-gn},{start:$r,length:Uo-$r}],wordPattern:pn}}}function Ot(Rt,rr){return{lineStarts:Rt.getLineStarts(),firstLine:Rt.getLineAndCharacterOfPosition(rr.pos).line,lastLine:Rt.getLineAndCharacterOfPosition(rr.end).line}}function ar(Rt,rr,_r){let wr=_.getCurrentSourceFile(Rt),pn=[],{lineStarts:tn,firstLine:lr,lastLine:cn}=Ot(wr,rr),gn=_r||!1,bn=Number.MAX_VALUE,$r=new Map,Uo=new RegExp(/\S/),Ys=Boe(wr,tn[lr]),ec=Ys?"{/*":"//";for(let Ss=lr;Ss<=cn;Ss++){let Mp=wr.text.substring(tn[Ss],wr.getLineEndOfPosition(tn[Ss])),Cp=Uo.exec(Mp);Cp&&(bn=Math.min(bn,Cp.index),$r.set(Ss.toString(),Cp.index),Mp.substr(Cp.index,ec.length)!==ec&&(gn=_r===void 0||_r))}for(let Ss=lr;Ss<=cn;Ss++){if(lr!==cn&&tn[Ss]===rr.end)continue;let Mp=$r.get(Ss.toString());Mp!==void 0&&(Ys?pn.push(...at(Rt,{pos:tn[Ss]+bn,end:wr.getLineEndOfPosition(tn[Ss])},gn,Ys)):gn?pn.push({newText:ec,span:{length:0,start:tn[Ss]+bn}}):wr.text.substr(tn[Ss]+Mp,ec.length)===ec&&pn.push({newText:"",span:{length:ec.length,start:tn[Ss]+Mp}}))}return pn}function at(Rt,rr,_r,wr){var pn;let tn=_.getCurrentSourceFile(Rt),lr=[],{text:cn}=tn,gn=!1,bn=_r||!1,$r=[],{pos:Uo}=rr,Ys=wr!==void 0?wr:Boe(tn,Uo),ec=Ys?"{/*":"/*",Ss=Ys?"*/}":"*/",Mp=Ys?"\\{\\/\\*":"\\/\\*",Cp=Ys?"\\*\\/\\}":"\\*\\/";for(;Uo<=rr.end;){let uu=cn.substr(Uo,ec.length)===ec?ec.length:0,$a=EE(tn,Uo+uu);if($a)Ys&&($a.pos--,$a.end++),$r.push($a.pos),$a.kind===3&&$r.push($a.end),gn=!0,Uo=$a.end+1;else{let bs=cn.substring(Uo,rr.end).search(`(${Mp})|(${Cp})`);bn=_r!==void 0?_r:bn||!v7e(cn,Uo,bs===-1?rr.end:Uo+bs),Uo=bs===-1?rr.end+1:Uo+bs+Ss.length}}if(bn||!gn){((pn=EE(tn,rr.pos))==null?void 0:pn.kind)!==2&&vm($r,rr.pos,Br),vm($r,rr.end,Br);let uu=$r[0];cn.substr(uu,ec.length)!==ec&&lr.push({newText:ec,span:{length:0,start:uu}});for(let $a=1;$a<$r.length-1;$a++)cn.substr($r[$a]-Ss.length,Ss.length)!==Ss&&lr.push({newText:Ss,span:{length:0,start:$r[$a]}}),cn.substr($r[$a],ec.length)!==ec&&lr.push({newText:ec,span:{length:0,start:$r[$a]}});lr.length%2!==0&&lr.push({newText:Ss,span:{length:0,start:$r[$r.length-1]}})}else for(let uu of $r){let $a=uu-Ss.length>0?uu-Ss.length:0,bs=cn.substr($a,Ss.length)===Ss?Ss.length:0;lr.push({newText:"",span:{length:ec.length,start:uu-bs}})}return lr}function Zt(Rt,rr){let _r=_.getCurrentSourceFile(Rt),{firstLine:wr,lastLine:pn}=Ot(_r,rr);return wr===pn&&rr.pos!==rr.end?at(Rt,rr,!0):ar(Rt,rr,!0)}function Qt(Rt,rr){let _r=_.getCurrentSourceFile(Rt),wr=[],{pos:pn}=rr,{end:tn}=rr;pn===tn&&(tn+=Boe(_r,pn)?2:1);for(let lr=pn;lr<=tn;lr++){let cn=EE(_r,lr);if(cn){switch(cn.kind){case 2:wr.push(...ar(Rt,{end:cn.end,pos:cn.pos+1},!1));break;case 3:wr.push(...at(Rt,{end:cn.end,pos:cn.pos+1},!1))}lr=cn.end+1}}return wr}function pr({openingElement:Rt,closingElement:rr,parent:_r}){return!OA(Rt.tagName,rr.tagName)||PS(_r)&&OA(Rt.tagName,_r.openingElement.tagName)&&pr(_r)}function Et({closingFragment:Rt,parent:rr}){return!!(Rt.flags&262144)||DA(rr)&&Et(rr)}function xr(Rt,rr,_r){let wr=_.getCurrentSourceFile(Rt),pn=rd.getRangeOfEnclosingComment(wr,rr);return pn&&(!_r||pn.kind===3)?CE(pn):void 0}function gi(Rt,rr){J();let _r=U(Rt);k.throwIfCancellationRequested();let wr=_r.text,pn=[];if(rr.length>0&&!gn(_r.fileName)){let bn=lr(),$r;for(;$r=bn.exec(wr);){k.throwIfCancellationRequested();let Uo=3;$.assert($r.length===rr.length+Uo);let Ys=$r[1],ec=$r.index+Ys.length;if(!EE(_r,ec))continue;let Ss;for(let Cp=0;Cp"("+tn($a.text)+")").join("|")+")",Ss=/(?:$|\*\/)/.source,Mp=/(?:.*?)/.source,Cp="("+ec+Mp+")",uu=Ys+Cp+Ss;return new RegExp(uu,"gim")}function cn(bn){return bn>=97&&bn<=122||bn>=65&&bn<=90||bn>=48&&bn<=57}function gn(bn){return bn.includes("/node_modules/")}}function Ye(Rt,rr,_r){return J(),Qae.getRenameInfo(f,U(Rt),rr,_r||{})}function er(Rt,rr,_r,wr,pn,tn){let[lr,cn]=typeof rr=="number"?[rr,void 0]:[rr.pos,rr.end];return{file:Rt,startPosition:lr,endPosition:cn,program:Z(),host:t,formatContext:rd.getFormatContext(wr,t),cancellationToken:k,preferences:_r,triggerReason:pn,kind:tn}}function Ne(Rt,rr,_r){return{file:Rt,program:Z(),host:t,span:rr,preferences:_r,cancellationToken:k}}function Y(Rt,rr){return gbe.getSmartSelectionRange(rr,_.getCurrentSourceFile(Rt))}function ot(Rt,rr,_r=u1,wr,pn,tn){J();let lr=U(Rt);return qF.getApplicableRefactors(er(lr,rr,_r,u1,wr,pn),tn)}function pe(Rt,rr,_r=u1){J();let wr=U(Rt),pn=$.checkDefined(f.getSourceFiles()),tn=VU(Rt),lr=lQ(er(wr,rr,_r,u1)),cn=M5e(lr?.all),gn=Wn(pn,bn=>{let $r=VU(bn.fileName);return!f?.isSourceFileFromExternalLibrary(wr)&&!(wr===U(bn.fileName)||tn===".ts"&&$r===".d.ts"||tn===".d.ts"&&Ca(t_(bn.fileName),"lib.")&&$r===".d.ts")&&(tn===$r||(tn===".tsx"&&$r===".ts"||tn===".jsx"&&$r===".js")&&!cn)?bn.fileName:void 0});return{newFileName:L5e(wr,f,t,lr),files:gn}}function Gt(Rt,rr,_r,wr,pn,tn=u1,lr){J();let cn=U(Rt);return qF.getEditsForRefactor(er(cn,_r,tn,rr),wr,pn,lr)}function mr(Rt,rr){return rr===0?{line:0,character:0}:M.toLineColumnOffset(Rt,rr)}function Ge(Rt,rr){J();let _r=JF.resolveCallHierarchyDeclaration(f,Vh(U(Rt),rr));return _r&&Dve(_r,wr=>JF.createCallHierarchyItem(f,wr))}function Mt(Rt,rr){J();let _r=U(Rt),wr=Ave(JF.resolveCallHierarchyDeclaration(f,rr===0?_r:Vh(_r,rr)));return wr?JF.getIncomingCalls(f,wr,k):[]}function Ir(Rt,rr){J();let _r=U(Rt),wr=Ave(JF.resolveCallHierarchyDeclaration(f,rr===0?_r:Vh(_r,rr)));return wr?JF.getOutgoingCalls(f,wr):[]}function ii(Rt,rr,_r=u1){J();let wr=U(Rt);return pbe.provideInlayHints(Ne(wr,rr,_r))}function Rn(Rt,rr,_r,wr,pn){return _be.mapCode(_.getCurrentSourceFile(Rt),rr,_r,t,rd.getFormatContext(wr,t),pn)}let zn={dispose:_e,cleanupSemanticCache:ae,getSyntacticDiagnostics:me,getSemanticDiagnostics:le,getRegionSemanticDiagnostics:Oe,getSuggestionDiagnostics:de,getCompilerOptionsDiagnostics:ze,getSyntacticClassifications:$o,getSemanticClassifications:oo,getEncodedSyntacticClassifications:ft,getEncodedSemanticClassifications:Oi,getCompletionsAtPosition:ut,getCompletionEntryDetails:je,getCompletionEntrySymbol:ve,getSignatureHelpItems:Qn,getQuickInfoAtPosition:Le,getDefinitionAtPosition:_t,getDefinitionAndBoundSpan:Se,getImplementationAtPosition:Qe,getTypeDefinitionAtPosition:tt,getReferencesAtPosition:Kt,findReferences:nn,getFileReferences:Nn,getDocumentHighlights:We,getNameOrDottedNameSpan:is,getBreakpointStatementAtPosition:sr,getNavigateToItems:$t,getRenameInfo:Ye,getSmartSelectionRange:Y,findRenameLocations:St,getNavigationBarItems:uo,getNavigationTree:Wa,getOutliningSpans:Ht,getTodoComments:gi,getBraceMatchingAtPosition:ai,getIndentationAtPosition:vo,getFormattingEditsForRange:Eo,getFormattingEditsForDocument:ya,getFormattingEditsAfterKeystroke:Ls,getDocCommentTemplateAtPosition:Bt,isValidBraceCompletionAtPosition:ye,getJsxClosingTagAtPosition:et,getLinkedEditingRangeAtPosition:Ct,getSpanOfEnclosingComment:xr,getCodeFixesAtPosition:yc,getCombinedCodeFix:Cn,applyCodeActionCommand:ur,organizeImports:Es,getEditsForFileRename:Dt,getEmitOutput:Dr,getNonBoundSourceFile:Ko,getProgram:Z,getCurrentProgram:()=>f,getAutoImportProvider:Q,updateIsDefinitionOfReferencedSymbols:re,getApplicableRefactors:ot,getEditsForRefactor:Gt,getMoveToRefactoringFileSuggestions:pe,toLineColumnOffset:mr,getSourceMapper:()=>M,clearSourceMapperCache:()=>M.clearCache(),prepareCallHierarchy:Ge,provideCallHierarchyIncomingCalls:Mt,provideCallHierarchyOutgoingCalls:Ir,toggleLineComment:ar,toggleMultilineComment:at,commentSelection:Zt,uncommentSelection:Qt,provideInlayHints:ii,getSupportedCodeFixes:gSe,preparePasteEditsForFile:Ve,getPasteEdits:nt,mapCode:Rn};switch(u){case 0:break;case 1:tgt.forEach(Rt=>zn[Rt]=()=>{throw new Error(`LanguageService Operation: ${Rt} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:_dr.forEach(Rt=>zn[Rt]=()=>{throw new Error(`LanguageService Operation: ${Rt} not allowed in LanguageServiceMode.Syntactic`)});break;default:$.assertNever(u)}return zn}function vSe(t){return t.nameTable||ddr(t),t.nameTable}function ddr(t){let n=t.nameTable=new Map;t.forEachChild(function a(c){if(ct(c)&&!B1e(c)&&c.escapedText||jy(c)&&fdr(c)){let u=DU(c);n.set(u,n.get(u)===void 0?c.pos:-1)}else if(Aa(c)){let u=c.escapedText;n.set(u,n.get(u)===void 0?c.pos:-1)}if(Is(c,a),hy(c))for(let u of c.jsDoc)Is(u,a)})}function fdr(t){return Eb(t)||t.parent.kind===284||gdr(t)||KG(t)}function dQ(t){let n=mdr(t);return n&&(Lc(n.parent)||xP(n.parent))?n:void 0}function mdr(t){switch(t.kind){case 11:case 15:case 9:if(t.parent.kind===168)return dme(t.parent.parent)?t.parent.parent:void 0;case 80:case 296:return dme(t.parent)&&(t.parent.parent.kind===211||t.parent.parent.kind===293)&&t.parent.name===t?t.parent:void 0}}function hdr(t,n){let a=dQ(t);if(a){let c=n.getContextualType(a.parent),u=c&&Iae(a,n,c,!1);if(u&&u.length===1)return To(u)}return n.getSymbolAtLocation(t)}function Iae(t,n,a,c){let u=HK(t.name);if(!u)return j;if(!a.isUnion()){let y=a.getProperty(u);return y?[y]:j}let _=Lc(t.parent)||xP(t.parent)?yr(a.types,y=>!n.isTypeInvalidDueToUnionDiscriminant(y,t.parent)):a.types,f=Wn(_,y=>y.getProperty(u));if(c&&(f.length===0||f.length===a.types.length)){let y=a.getProperty(u);if(y)return[y]}return!_.length&&!f.length?Wn(a.types,y=>y.getProperty(u)):rf(f,Ng)}function gdr(t){return t&&t.parent&&t.parent.kind===213&&t.parent.argumentExpression===t}function x9e(t){if(f_)return Xi(mo(Qs(f_.getExecutingFilePath())),kn(t));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}T4e(cdr());function rgt(t,n,a){let c=[];a=Hve(a,c);let u=Zn(t)?t:[t],_=bK(void 0,void 0,W,a,u,n,!0);return _.diagnostics=go(_.diagnostics,c),_}var SSe={};d(SSe,{spanInSourceFileAtLocation:()=>ydr});function ydr(t,n){if(t.isDeclarationFile)return;let a=la(t,n),c=t.getLineAndCharacterOfPosition(n).line;if(t.getLineAndCharacterOfPosition(a.getStart(t)).line>c){let C=vd(a.pos,t);if(!C||t.getLineAndCharacterOfPosition(C.getEnd()).line!==c)return;a=C}if(a.flags&33554432)return;return T(a);function u(C,O){let F=kP(C)?Ut(C.modifiers,hd):void 0,M=F?_c(t.text,F.end):C.getStart(t);return Hu(M,(O||C).getEnd())}function _(C,O){return u(C,OP(O,O.parent,t))}function f(C,O){return C&&c===t.getLineAndCharacterOfPosition(C.getStart(t)).line?T(C):T(O)}function y(C,O,F){if(C){let M=C.indexOf(O);if(M>=0){let U=M,J=M+1;for(;U>0&&F(C[U-1]);)U--;for(;J0)return T(ze.declarations[0])}else return T(de.initializer)}function ae(de){if(de.initializer)return re(de);if(de.condition)return u(de.condition);if(de.incrementor)return u(de.incrementor)}function _e(de){let ze=X(de.elements,ut=>ut.kind!==233?ut:void 0);return ze?T(ze):de.parent.kind===209?u(de.parent):O(de.parent)}function me(de){$.assert(de.kind!==208&&de.kind!==207);let ze=de.kind===210?de.elements:de.properties,ut=X(ze,je=>je.kind!==233?je:void 0);return ut?T(ut):u(de.parent.kind===227?de.parent:de)}function le(de){switch(de.parent.kind){case 267:let ze=de.parent;return f(vd(de.pos,t,de.parent),ze.members.length?ze.members[0]:ze.getLastToken(t));case 264:let ut=de.parent;return f(vd(de.pos,t,de.parent),ut.members.length?ut.members[0]:ut.getLastToken(t));case 270:return f(de.parent.parent,de.parent.clauses[0])}return T(de.parent)}function Oe(de){switch(de.parent.kind){case 269:if(KT(de.parent.parent)!==1)return;case 267:case 264:return u(de);case 242:if(tP(de.parent))return u(de);case 300:return T(Yr(de.parent.statements));case 270:let ze=de.parent,ut=Yr(ze.clauses);return ut?T(Yr(ut.statements)):void 0;case 207:let je=de.parent;return T(Yr(je.elements)||je);default:if(kE(de.parent)){let ve=de.parent;return u(Yr(ve.properties)||ve)}return T(de.parent)}}function be(de){switch(de.parent.kind){case 208:let ze=de.parent;return u(Yr(ze.elements)||ze);default:if(kE(de.parent)){let ut=de.parent;return u(Yr(ut.elements)||ut)}return T(de.parent)}}function ue(de){return de.parent.kind===247||de.parent.kind===214||de.parent.kind===215?g(de):de.parent.kind===218?k(de):T(de.parent)}function De(de){switch(de.parent.kind){case 219:case 263:case 220:case 175:case 174:case 178:case 179:case 177:case 248:case 247:case 249:case 251:case 214:case 215:case 218:return g(de);default:return T(de.parent)}}function Ce(de){return Rs(de.parent)||de.parent.kind===304||de.parent.kind===170?g(de):T(de.parent)}function Ae(de){return de.parent.kind===217?k(de):T(de.parent)}function Fe(de){return de.parent.kind===247?_(de,de.parent.expression):T(de.parent)}function Be(de){return de.parent.kind===251?k(de):T(de.parent)}}}var JF={};d(JF,{createCallHierarchyItem:()=>T9e,getIncomingCalls:()=>Cdr,getOutgoingCalls:()=>Ldr,resolveCallHierarchyDeclaration:()=>ugt});function vdr(t){return(bu(t)||w_(t))&&Vp(t)}function ngt(t){return ps(t)||Oo(t)}function fQ(t){return(bu(t)||Iu(t)||w_(t))&&ngt(t.parent)&&t===t.parent.initializer&&ct(t.parent.name)&&(!!(dd(t.parent)&2)||ps(t.parent))}function igt(t){return Ta(t)||I_(t)||i_(t)||bu(t)||ed(t)||w_(t)||n_(t)||Ep(t)||G1(t)||T0(t)||mg(t)}function oM(t){return Ta(t)||I_(t)&&ct(t.name)||i_(t)||ed(t)||n_(t)||Ep(t)||G1(t)||T0(t)||mg(t)||vdr(t)||fQ(t)}function ogt(t){return Ta(t)?t:Vp(t)?t.name:fQ(t)?t.parent.name:$.checkDefined(t.modifiers&&wt(t.modifiers,agt))}function agt(t){return t.kind===90}function sgt(t,n){let a=ogt(n);return a&&t.getSymbolAtLocation(a)}function Sdr(t,n){if(Ta(n))return{text:n.fileName,pos:0,end:0};if((i_(n)||ed(n))&&!Vp(n)){let u=n.modifiers&&wt(n.modifiers,agt);if(u)return{text:"default",pos:u.getStart(),end:u.getEnd()}}if(n_(n)){let u=n.getSourceFile(),_=_c(u.text,ES(n).pos),f=_+6,y=t.getTypeChecker(),g=y.getSymbolAtLocation(n.parent);return{text:`${g?`${y.symbolToString(g,n.parent)} `:""}static {}`,pos:_,end:f}}let a=fQ(n)?n.parent.name:$.checkDefined(cs(n),"Expected call hierarchy item to have a name"),c=ct(a)?Zi(a):jy(a)?a.text:dc(a)&&jy(a.expression)?a.expression.text:void 0;if(c===void 0){let u=t.getTypeChecker(),_=u.getSymbolAtLocation(a);_&&(c=u.symbolToString(_,n))}if(c===void 0){let u=b0e();c=jR(_=>u.writeNode(4,n,n.getSourceFile(),_))}return{text:c,pos:a.getStart(),end:a.getEnd()}}function bdr(t){var n,a,c,u;if(fQ(t))return ps(t.parent)&&Co(t.parent.parent)?w_(t.parent.parent)?(n=Q$(t.parent.parent))==null?void 0:n.getText():(a=t.parent.parent.name)==null?void 0:a.getText():wS(t.parent.parent.parent.parent)&&ct(t.parent.parent.parent.parent.parent.name)?t.parent.parent.parent.parent.parent.name.getText():void 0;switch(t.kind){case 178:case 179:case 175:return t.parent.kind===211?(c=Q$(t.parent))==null?void 0:c.getText():(u=cs(t.parent))==null?void 0:u.getText();case 263:case 264:case 268:if(wS(t.parent)&&ct(t.parent.parent.name))return t.parent.parent.name.getText()}}function cgt(t,n){if(n.body)return n;if(kp(n))return Rx(n.parent);if(i_(n)||Ep(n)){let a=sgt(t,n);return a&&a.valueDeclaration&&lu(a.valueDeclaration)&&a.valueDeclaration.body?a.valueDeclaration:void 0}return n}function lgt(t,n){let a=sgt(t,n),c;if(a&&a.declarations){let u=zp(a.declarations),_=Cr(a.declarations,g=>({file:g.getSourceFile().fileName,pos:g.pos}));u.sort((g,k)=>Su(_[g].file,_[k].file)||_[g].pos-_[k].pos);let f=Cr(u,g=>a.declarations[g]),y;for(let g of f)oM(g)&&((!y||y.parent!==g.parent||y.end!==g.pos)&&(c=jt(c,g)),y=g)}return c}function bSe(t,n){return n_(n)?n:lu(n)?cgt(t,n)??lgt(t,n)??n:lgt(t,n)??n}function ugt(t,n){let a=t.getTypeChecker(),c=!1;for(;;){if(oM(n))return bSe(a,n);if(igt(n)){let u=fn(n,oM);return u&&bSe(a,u)}if(Eb(n)){if(oM(n.parent))return bSe(a,n.parent);if(igt(n.parent)){let u=fn(n.parent,oM);return u&&bSe(a,u)}return ngt(n.parent)&&n.parent.initializer&&fQ(n.parent.initializer)?n.parent.initializer:void 0}if(kp(n))return oM(n.parent)?n.parent:void 0;if(n.kind===126&&n_(n.parent)){n=n.parent;continue}if(Oo(n)&&n.initializer&&fQ(n.initializer))return n.initializer;if(!c){let u=a.getSymbolAtLocation(n);if(u&&(u.flags&2097152&&(u=a.getAliasedSymbol(u)),u.valueDeclaration)){c=!0,n=u.valueDeclaration;continue}}return}}function T9e(t,n){let a=n.getSourceFile(),c=Sdr(t,n),u=bdr(n),_=NP(n),f=Kz(n),y=Hu(_c(a.text,n.getFullStart(),!1,!0),n.getEnd()),g=Hu(c.pos,c.end);return{file:a.fileName,kind:_,kindModifiers:f,name:c.text,containerName:u,span:y,selectionSpan:g}}function xdr(t){return t!==void 0}function Tdr(t){if(t.kind===Pu.EntryKind.Node){let{node:n}=t;if(R1e(n,!0,!0)||XFe(n,!0,!0)||YFe(n,!0,!0)||e7e(n,!0,!0)||WL(n)||$1e(n)){let a=n.getSourceFile();return{declaration:fn(n,oM)||a,range:tve(n,a)}}}}function pgt(t){return hl(t.declaration)}function Edr(t,n){return{from:t,fromSpans:n}}function kdr(t,n){return Edr(T9e(t,n[0].declaration),Cr(n,a=>CE(a.range)))}function Cdr(t,n,a){if(Ta(n)||I_(n)||n_(n))return[];let c=ogt(n),u=yr(Pu.findReferenceOrRenameEntries(t,a,t.getSourceFiles(),c,0,{use:Pu.FindReferencesUse.References},Tdr),xdr);return u?Pg(u,pgt,_=>kdr(t,_)):[]}function Ddr(t,n){function a(u){let _=xA(u)?u.tag:Em(u)?u.tagName:wu(u)||n_(u)?u:u.expression,f=ugt(t,_);if(f){let y=tve(_,u.getSourceFile());if(Zn(f))for(let g of f)n.push({declaration:g,range:y});else n.push({declaration:f,range:y})}}function c(u){if(u&&!(u.flags&33554432)){if(oM(u)){if(Co(u))for(let _ of u.members)_.name&&dc(_.name)&&c(_.name.expression);return}switch(u.kind){case 80:case 272:case 273:case 279:case 265:case 266:return;case 176:a(u);return;case 217:case 235:c(u.expression);return;case 261:case 170:c(u.name),c(u.initializer);return;case 214:a(u),c(u.expression),X(u.arguments,c);return;case 215:a(u),c(u.expression),X(u.arguments,c);return;case 216:a(u),c(u.tag),c(u.template);return;case 287:case 286:a(u),c(u.tagName),c(u.attributes);return;case 171:a(u),c(u.expression);return;case 212:case 213:a(u),Is(u,c);break;case 239:c(u.expression);return}vS(u)||Is(u,c)}}return c}function Adr(t,n){X(t.statements,n)}function wdr(t,n){!ko(t,128)&&t.body&&wS(t.body)&&X(t.body.statements,n)}function Idr(t,n,a){let c=cgt(t,n);c&&(X(c.parameters,a),a(c.body))}function Pdr(t,n){n(t.body)}function Ndr(t,n){X(t.modifiers,n);let a=aP(t);a&&n(a.expression);for(let c of t.members)l1(c)&&X(c.modifiers,n),ps(c)?n(c.initializer):kp(c)&&c.body?(X(c.parameters,n),n(c.body)):n_(c)&&n(c)}function Odr(t,n){let a=[],c=Ddr(t,a);switch(n.kind){case 308:Adr(n,c);break;case 268:wdr(n,c);break;case 263:case 219:case 220:case 175:case 178:case 179:Idr(t.getTypeChecker(),n,c);break;case 264:case 232:Ndr(n,c);break;case 176:Pdr(n,c);break;default:$.assertNever(n)}return a}function Fdr(t,n){return{to:t,fromSpans:n}}function Rdr(t,n){return Fdr(T9e(t,n[0].declaration),Cr(n,a=>CE(a.range)))}function Ldr(t,n){return n.flags&33554432||G1(n)?[]:Pg(Odr(t,n),pgt,a=>Rdr(t,a))}var E9e={};d(E9e,{v2020:()=>_gt});var _gt={};d(_gt,{TokenEncodingConsts:()=>Bht,TokenModifier:()=>Uht,TokenType:()=>$ht,getEncodedSemanticClassifications:()=>g9e,getSemanticClassifications:()=>zht});var Im={};d(Im,{PreserveOptionalFlags:()=>Cvt,addNewNodeForMemberSymbol:()=>Dvt,codeFixAll:()=>Vl,createCodeFixAction:()=>Xs,createCodeFixActionMaybeFixAll:()=>D9e,createCodeFixActionWithoutFixAll:()=>wv,createCombinedCodeActions:()=>VF,createFileTextChanges:()=>dgt,createImportAdder:()=>BP,createImportSpecifierResolver:()=>Vfr,createMissingMemberNodes:()=>HRe,createSignatureDeclarationFromCallExpression:()=>KRe,createSignatureDeclarationFromSignature:()=>GSe,createStubbedBody:()=>Mae,eachDiagnostic:()=>WF,findAncestorMatchingSpan:()=>rLe,generateAccessorFromProperty:()=>Rvt,getAccessorConvertiblePropertyAtPosition:()=>jvt,getAllFixes:()=>$dr,getFixes:()=>Bdr,getImportCompletionAction:()=>Wfr,getImportKind:()=>NSe,getJSDocTypedefNodes:()=>qfr,getNoopSymbolTrackerWithResolver:()=>sM,getPromoteTypeOnlyCompletionAction:()=>Gfr,getSupportedErrorCodes:()=>Mdr,importFixName:()=>Ryt,importSymbols:()=>C3,parameterShouldGetTypeFromJSDoc:()=>Jgt,registerCodeFix:()=>gc,setJsonCompilerOptionValue:()=>eLe,setJsonCompilerOptionValues:()=>YRe,tryGetAutoImportableReferenceFromTypeNode:()=>$P,typeNodeToAutoImportableTypeNode:()=>QRe,typePredicateToAutoImportableTypeNode:()=>Ivt,typeToAutoImportableTypeNode:()=>HSe,typeToMinimizedReferenceType:()=>wvt});var k9e=d_(),C9e=new Map;function wv(t,n,a){return A9e(t,FP(a),n,void 0,void 0)}function Xs(t,n,a,c,u,_){return A9e(t,FP(a),n,c,FP(u),_)}function D9e(t,n,a,c,u,_){return A9e(t,FP(a),n,c,u&&FP(u),_)}function A9e(t,n,a,c,u,_){return{fixName:t,description:n,changes:a,fixId:c,fixAllDescription:u,commands:_?[_]:void 0}}function gc(t){for(let n of t.errorCodes)w9e=void 0,k9e.add(String(n),t);if(t.fixIds)for(let n of t.fixIds)$.assert(!C9e.has(n)),C9e.set(n,t)}var w9e;function Mdr(){return w9e??(w9e=so(k9e.keys()))}function jdr(t,n){let{errorCodes:a}=t,c=0;for(let _ of n)if(un(a,_.code)&&c++,c>1)break;let u=c<2;return({fixId:_,fixAllDescription:f,...y})=>u?y:{...y,fixId:_,fixAllDescription:f}}function Bdr(t){let n=fgt(t),a=k9e.get(String(t.errorCode));return an(a,c=>Cr(c.getCodeActions(t),jdr(c,n)))}function $dr(t){return C9e.get(Ba(t.fixId,Ni)).getAllCodeActions(t)}function VF(t,n){return{changes:t,commands:n}}function dgt(t,n){return{fileName:t,textChanges:n}}function Vl(t,n,a){let c=[],u=ki.ChangeTracker.with(t,_=>WF(t,n,f=>a(_,f,c)));return VF(u,c.length===0?void 0:c)}function WF(t,n,a){for(let c of fgt(t))un(n,c.code)&&a(c)}function fgt({program:t,sourceFile:n,cancellationToken:a}){let c=[...t.getSemanticDiagnostics(n,a),...t.getSyntacticDiagnostics(n,a),...Jve(n,t,a)];return fg(t.getCompilerOptions())&&c.push(...t.getDeclarationDiagnostics(n,a)),c}var I9e="addConvertToUnknownForNonOverlappingTypes",mgt=[x.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];gc({errorCodes:mgt,getCodeActions:function(n){let a=ggt(n.sourceFile,n.span.start);if(a===void 0)return;let c=ki.ChangeTracker.with(n,u=>hgt(u,n.sourceFile,a));return[Xs(I9e,c,x.Add_unknown_conversion_for_non_overlapping_types,I9e,x.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[I9e],getAllCodeActions:t=>Vl(t,mgt,(n,a)=>{let c=ggt(a.file,a.start);c&&hgt(n,a.file,c)})});function hgt(t,n,a){let c=gL(a)?W.createAsExpression(a.expression,W.createKeywordTypeNode(159)):W.createTypeAssertion(W.createKeywordTypeNode(159),a.expression);t.replaceNode(n,a.expression,c)}function ggt(t,n){if(!Ei(t))return fn(la(t,n),a=>gL(a)||qne(a))}gc({errorCodes:[x.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,x.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,x.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(n){let{sourceFile:a}=n,c=ki.ChangeTracker.with(n,u=>{let _=W.createExportDeclaration(void 0,!1,W.createNamedExports([]),void 0);u.insertNodeAtEndOfScope(a,a,_)});return[wv("addEmptyExportDeclaration",c,x.Add_export_to_make_this_file_into_a_module)]}});var P9e="addMissingAsync",ygt=[x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,x.Type_0_is_not_assignable_to_type_1.code,x.Type_0_is_not_comparable_to_type_1.code];gc({fixIds:[P9e],errorCodes:ygt,getCodeActions:function(n){let{sourceFile:a,errorCode:c,cancellationToken:u,program:_,span:f}=n,y=wt(_.getTypeChecker().getDiagnostics(a,u),zdr(f,c)),g=y&&y.relatedInformation&&wt(y.relatedInformation,C=>C.code===x.Did_you_mean_to_mark_this_function_as_async.code),k=Sgt(a,g);return k?[vgt(n,k,C=>ki.ChangeTracker.with(n,C))]:void 0},getAllCodeActions:t=>{let{sourceFile:n}=t,a=new Set;return Vl(t,ygt,(c,u)=>{let _=u.relatedInformation&&wt(u.relatedInformation,g=>g.code===x.Did_you_mean_to_mark_this_function_as_async.code),f=Sgt(n,_);return f?vgt(t,f,g=>(g(c),[]),a):void 0})}});function vgt(t,n,a,c){let u=a(_=>Udr(_,t.sourceFile,n,c));return Xs(P9e,u,x.Add_async_modifier_to_containing_function,P9e,x.Add_all_missing_async_modifiers)}function Udr(t,n,a,c){if(c&&c.has(hl(a)))return;c?.add(hl(a));let u=W.replaceModifiers(Il(a,!0),W.createNodeArray(W.createModifiersFromModifierFlags(_E(a)|1024)));t.replaceNode(n,a,u)}function Sgt(t,n){if(!n)return;let a=la(t,n.start);return fn(a,u=>u.getStart(t)Xn(n)?"quit":(Iu(u)||Ep(u)||bu(u)||i_(u))&&XL(n,yh(u,t)))}function zdr(t,n){return({start:a,length:c,relatedInformation:u,code:_})=>Kn(a)&&Kn(c)&&XL({start:a,length:c},t)&&_===n&&!!u&&Pt(u,f=>f.code===x.Did_you_mean_to_mark_this_function_as_async.code)}var N9e="addMissingAwait",bgt=x.Property_0_does_not_exist_on_type_1.code,xgt=[x.This_expression_is_not_callable.code,x.This_expression_is_not_constructable.code],O9e=[x.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,x.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,x.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,x.Operator_0_cannot_be_applied_to_type_1.code,x.Operator_0_cannot_be_applied_to_types_1_and_2.code,x.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,x.This_condition_will_always_return_true_since_this_0_is_always_defined.code,x.Type_0_is_not_an_array_type.code,x.Type_0_is_not_an_array_type_or_a_string_type.code,x.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,x.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,x.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,x.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,x.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,bgt,...xgt];gc({fixIds:[N9e],errorCodes:O9e,getCodeActions:function(n){let{sourceFile:a,errorCode:c,span:u,cancellationToken:_,program:f}=n,y=Tgt(a,c,u,_,f);if(!y)return;let g=n.program.getTypeChecker(),k=T=>ki.ChangeTracker.with(n,T);return Bc([Egt(n,y,c,g,k),kgt(n,y,c,g,k)])},getAllCodeActions:t=>{let{sourceFile:n,program:a,cancellationToken:c}=t,u=t.program.getTypeChecker(),_=new Set;return Vl(t,O9e,(f,y)=>{let g=Tgt(n,y.code,y,c,a);if(!g)return;let k=T=>(T(f),[]);return Egt(t,g,y.code,u,k,_)||kgt(t,g,y.code,u,k,_)})}});function Tgt(t,n,a,c,u){let _=Cve(t,a);return _&&qdr(t,n,a,c,u)&&Cgt(_)?_:void 0}function Egt(t,n,a,c,u,_){let{sourceFile:f,program:y,cancellationToken:g}=t,k=Jdr(n,f,g,y,c);if(k){let T=u(C=>{X(k.initializers,({expression:O})=>F9e(C,a,f,c,O,_)),_&&k.needsSecondPassForFixAll&&F9e(C,a,f,c,n,_)});return wv("addMissingAwaitToInitializer",T,k.initializers.length===1?[x.Add_await_to_initializer_for_0,k.initializers[0].declarationSymbol.name]:x.Add_await_to_initializers)}}function kgt(t,n,a,c,u,_){let f=u(y=>F9e(y,a,t.sourceFile,c,n,_));return Xs(N9e,f,x.Add_await,N9e,x.Fix_all_expressions_possibly_missing_await)}function qdr(t,n,a,c,u){let f=u.getTypeChecker().getDiagnostics(t,c);return Pt(f,({start:y,length:g,relatedInformation:k,code:T})=>Kn(y)&&Kn(g)&&XL({start:y,length:g},a)&&T===n&&!!k&&Pt(k,C=>C.code===x.Did_you_forget_to_use_await.code))}function Jdr(t,n,a,c,u){let _=Vdr(t,u);if(!_)return;let f=_.isCompleteFix,y;for(let g of _.identifiers){let k=u.getSymbolAtLocation(g);if(!k)continue;let T=Ci(k.valueDeclaration,Oo),C=T&&Ci(T.name,ct),O=mA(T,244);if(!T||!O||T.type||!T.initializer||O.getSourceFile()!==n||ko(O,32)||!C||!Cgt(T.initializer)){f=!1;continue}let F=c.getSemanticDiagnostics(n,a);if(Pu.Core.eachSymbolReferenceInFile(C,u,n,U=>g!==U&&!Wdr(U,F,n,u))){f=!1;continue}(y||(y=[])).push({expression:T.initializer,declarationSymbol:k})}return y&&{initializers:y,needsSecondPassForFixAll:!f}}function Vdr(t,n){if(no(t.parent)&&ct(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(ct(t))return{identifiers:[t],isCompleteFix:!0};if(wi(t)){let a,c=!0;for(let u of[t.left,t.right]){let _=n.getTypeAtLocation(u);if(n.getPromisedTypeOfPromise(_)){if(!ct(u)){c=!1;continue}(a||(a=[])).push(u)}}return a&&{identifiers:a,isCompleteFix:c}}}function Wdr(t,n,a,c){let u=no(t.parent)?t.parent.name:wi(t.parent)?t.parent:t,_=wt(n,f=>f.start===u.getStart(a)&&f.start+f.length===u.getEnd());return _&&un(O9e,_.code)||c.getTypeAtLocation(u).flags&1}function Cgt(t){return t.flags&65536||!!fn(t,n=>n.parent&&Iu(n.parent)&&n.parent.body===n||Vs(n)&&(n.parent.kind===263||n.parent.kind===219||n.parent.kind===220||n.parent.kind===175))}function F9e(t,n,a,c,u,_){if($H(u.parent)&&!u.parent.awaitModifier){let f=c.getTypeAtLocation(u),y=c.getAnyAsyncIterableType();if(y&&c.isTypeAssignableTo(f,y)){let g=u.parent;t.replaceNode(a,g,W.updateForOfStatement(g,W.createToken(135),g.initializer,g.expression,g.statement));return}}if(wi(u))for(let f of[u.left,u.right]){if(_&&ct(f)){let k=c.getSymbolAtLocation(f);if(k&&_.has(hc(k)))continue}let y=c.getTypeAtLocation(f),g=c.getPromisedTypeOfPromise(y)?W.createAwaitExpression(f):f;t.replaceNode(a,f,g)}else if(n===bgt&&no(u.parent)){if(_&&ct(u.parent.expression)){let f=c.getSymbolAtLocation(u.parent.expression);if(f&&_.has(hc(f)))return}t.replaceNode(a,u.parent.expression,W.createParenthesizedExpression(W.createAwaitExpression(u.parent.expression))),Dgt(t,u.parent.expression,a)}else if(un(xgt,n)&&mS(u.parent)){if(_&&ct(u)){let f=c.getSymbolAtLocation(u);if(f&&_.has(hc(f)))return}t.replaceNode(a,u,W.createParenthesizedExpression(W.createAwaitExpression(u))),Dgt(t,u,a)}else{if(_&&Oo(u.parent)&&ct(u.parent.name)){let f=c.getSymbolAtLocation(u.parent.name);if(f&&!Us(_,hc(f)))return}t.replaceNode(a,u,W.createAwaitExpression(u))}}function Dgt(t,n,a){let c=vd(n.pos,a);c&&eae(c.end,c.parent,a)&&t.insertText(a,n.getStart(a),";")}var R9e="addMissingConst",Agt=[x.Cannot_find_name_0.code,x.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];gc({errorCodes:Agt,getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>wgt(c,n.sourceFile,n.span.start,n.program));if(a.length>0)return[Xs(R9e,a,x.Add_const_to_unresolved_variable,R9e,x.Add_const_to_all_unresolved_variables)]},fixIds:[R9e],getAllCodeActions:t=>{let n=new Set;return Vl(t,Agt,(a,c)=>wgt(a,c.file,c.start,t.program,n))}});function wgt(t,n,a,c,u){let _=la(n,a),f=fn(_,k=>M4(k.parent)?k.parent.initializer===k:Gdr(k)?!1:"quit");if(f)return xSe(t,f,n,u);let y=_.parent;if(wi(y)&&y.operatorToken.kind===64&&af(y.parent))return xSe(t,_,n,u);if(qf(y)){let k=c.getTypeChecker();return ht(y.elements,T=>Hdr(T,k))?xSe(t,y,n,u):void 0}let g=fn(_,k=>af(k.parent)?!0:Kdr(k)?!1:"quit");if(g){let k=c.getTypeChecker();return Igt(g,k)?xSe(t,g,n,u):void 0}}function xSe(t,n,a,c){(!c||Us(c,n))&&t.insertModifierBefore(a,87,n)}function Gdr(t){switch(t.kind){case 80:case 210:case 211:case 304:case 305:return!0;default:return!1}}function Hdr(t,n){let a=ct(t)?t:of(t,!0)&&ct(t.left)?t.left:void 0;return!!a&&!n.getSymbolAtLocation(a)}function Kdr(t){switch(t.kind){case 80:case 227:case 28:return!0;default:return!1}}function Igt(t,n){return wi(t)?t.operatorToken.kind===28?ht([t.left,t.right],a=>Igt(a,n)):t.operatorToken.kind===64&&ct(t.left)&&!n.getSymbolAtLocation(t.left):!1}var L9e="addMissingDeclareProperty",Pgt=[x.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];gc({errorCodes:Pgt,getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>Ngt(c,n.sourceFile,n.span.start));if(a.length>0)return[Xs(L9e,a,x.Prefix_with_declare,L9e,x.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[L9e],getAllCodeActions:t=>{let n=new Set;return Vl(t,Pgt,(a,c)=>Ngt(a,c.file,c.start,n))}});function Ngt(t,n,a,c){let u=la(n,a);if(!ct(u))return;let _=u.parent;_.kind===173&&(!c||Us(c,_))&&t.insertModifierBefore(n,138,_)}var M9e="addMissingInvocationForDecorator",Ogt=[x._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];gc({errorCodes:Ogt,getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>Fgt(c,n.sourceFile,n.span.start));return[Xs(M9e,a,x.Call_decorator_expression,M9e,x.Add_to_all_uncalled_decorators)]},fixIds:[M9e],getAllCodeActions:t=>Vl(t,Ogt,(n,a)=>Fgt(n,a.file,a.start))});function Fgt(t,n,a){let c=la(n,a),u=fn(c,hd);$.assert(!!u,"Expected position to be owned by a decorator.");let _=W.createCallExpression(u.expression,void 0,void 0);t.replaceNode(n,u.expression,_)}var j9e="addMissingResolutionModeImportAttribute",Rgt=[x.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code,x.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code];gc({errorCodes:Rgt,getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>Lgt(c,n.sourceFile,n.span.start,n.program,n.host,n.preferences));return[Xs(j9e,a,x.Add_resolution_mode_import_attribute,j9e,x.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]},fixIds:[j9e],getAllCodeActions:t=>Vl(t,Rgt,(n,a)=>Lgt(n,a.file,a.start,t.program,t.host,t.preferences))});function Lgt(t,n,a,c,u,_){var f,y,g;let k=la(n,a),T=fn(k,jf(fp,AS));$.assert(!!T,"Expected position to be owned by an ImportDeclaration or ImportType.");let C=Vg(n,_)===0,O=qO(T),F=!O||((f=h3(O.text,n.fileName,c.getCompilerOptions(),u,c.getModuleResolutionCache(),void 0,99).resolvedModule)==null?void 0:f.resolvedFileName)===((g=(y=c.getResolvedModuleFromModuleSpecifier(O,n))==null?void 0:y.resolvedModule)==null?void 0:g.resolvedFileName),M=T.attributes?W.updateImportAttributes(T.attributes,W.createNodeArray([...T.attributes.elements,W.createImportAttribute(W.createStringLiteral("resolution-mode",C),W.createStringLiteral(F?"import":"require",C))],T.attributes.elements.hasTrailingComma),T.attributes.multiLine):W.createImportAttributes(W.createNodeArray([W.createImportAttribute(W.createStringLiteral("resolution-mode",C),W.createStringLiteral(F?"import":"require",C))]));T.kind===273?t.replaceNode(n,T,W.updateImportDeclaration(T,T.modifiers,T.importClause,T.moduleSpecifier,M)):t.replaceNode(n,T,W.updateImportTypeNode(T,T.argument,M,T.qualifier,T.typeArguments))}var B9e="addNameToNamelessParameter",Mgt=[x.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];gc({errorCodes:Mgt,getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>jgt(c,n.sourceFile,n.span.start));return[Xs(B9e,a,x.Add_parameter_name,B9e,x.Add_names_to_all_parameters_without_names)]},fixIds:[B9e],getAllCodeActions:t=>Vl(t,Mgt,(n,a)=>jgt(n,a.file,a.start))});function jgt(t,n,a){let c=la(n,a),u=c.parent;if(!wa(u))return $.fail("Tried to add a parameter name to a non-parameter: "+$.formatSyntaxKind(c.kind));let _=u.parent.parameters.indexOf(u);$.assert(!u.type,"Tried to add a parameter name to a parameter that already had one."),$.assert(_>-1,"Parameter not found in parent parameter list.");let f=u.name.getEnd(),y=W.createTypeReferenceNode(u.name,void 0),g=Bgt(n,u);for(;g;)y=W.createArrayTypeNode(y),f=g.getEnd(),g=Bgt(n,g);let k=W.createParameterDeclaration(u.modifiers,u.dotDotDotToken,"arg"+_,u.questionToken,u.dotDotDotToken&&!jH(y)?W.createArrayTypeNode(y):y,u.initializer);t.replaceRange(n,y0(u.getStart(n),f),k)}function Bgt(t,n){let a=OP(n.name,n.parent,t);if(a&&a.kind===23&&xE(a.parent)&&wa(a.parent.parent))return a.parent.parent}var $gt="addOptionalPropertyUndefined",Qdr=[x.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,x.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];gc({errorCodes:Qdr,getCodeActions(t){let n=t.program.getTypeChecker(),a=Zdr(t.sourceFile,t.span,n);if(!a.length)return;let c=ki.ChangeTracker.with(t,u=>Ydr(u,a));return[wv($gt,c,x.Add_undefined_to_optional_property_type)]},fixIds:[$gt]});function Zdr(t,n,a){var c,u;let _=Ugt(Cve(t,n),a);if(!_)return j;let{source:f,target:y}=_,g=Xdr(f,y,a)?a.getTypeAtLocation(y.expression):a.getTypeAtLocation(y);return(u=(c=g.symbol)==null?void 0:c.declarations)!=null&&u.some(k=>Pn(k).fileName.match(/\.d\.ts$/))?j:a.getExactOptionalProperties(g)}function Xdr(t,n,a){return no(n)&&!!a.getExactOptionalProperties(a.getTypeAtLocation(n.expression)).length&&a.getTypeAtLocation(t)===a.getUndefinedType()}function Ugt(t,n){var a;if(t){if(wi(t.parent)&&t.parent.operatorToken.kind===64)return{source:t.parent.right,target:t.parent.left};if(Oo(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(Js(t.parent)){let c=n.getSymbolAtLocation(t.parent.expression);if(!c?.valueDeclaration||!NO(c.valueDeclaration.kind)||!Vt(t))return;let u=t.parent.arguments.indexOf(t);if(u===-1)return;let _=c.valueDeclaration.parameters[u].name;if(ct(_))return{source:t,target:_}}else if(td(t.parent)&&ct(t.parent.name)||im(t.parent)){let c=Ugt(t.parent.parent,n);if(!c)return;let u=n.getPropertyOfType(n.getTypeAtLocation(c.target),t.parent.name.text),_=(a=u?.declarations)==null?void 0:a[0];return _?{source:td(t.parent)?t.parent.initializer:t.parent.name,target:_}:void 0}}else return}function Ydr(t,n){for(let a of n){let c=a.valueDeclaration;if(c&&(Zm(c)||ps(c))&&c.type){let u=W.createUnionTypeNode([...c.type.kind===193?c.type.types:[c.type],W.createTypeReferenceNode("undefined")]);t.replaceNode(c.getSourceFile(),c.type,u)}}}var $9e="annotateWithTypeFromJSDoc",zgt=[x.JSDoc_types_may_be_moved_to_TypeScript_types.code];gc({errorCodes:zgt,getCodeActions(t){let n=qgt(t.sourceFile,t.span.start);if(!n)return;let a=ki.ChangeTracker.with(t,c=>Wgt(c,t.sourceFile,n));return[Xs($9e,a,x.Annotate_with_type_from_JSDoc,$9e,x.Annotate_everything_with_types_from_JSDoc)]},fixIds:[$9e],getAllCodeActions:t=>Vl(t,zgt,(n,a)=>{let c=qgt(a.file,a.start);c&&Wgt(n,a.file,c)})});function qgt(t,n){let a=la(t,n);return Ci(wa(a.parent)?a.parent.parent:a.parent,Jgt)}function Jgt(t){return efr(t)&&Vgt(t)}function Vgt(t){return lu(t)?t.parameters.some(Vgt)||!t.type&&!!iG(t):!t.type&&!!hv(t)}function Wgt(t,n,a){if(lu(a)&&(iG(a)||a.parameters.some(c=>!!hv(c)))){if(!a.typeParameters){let u=Vre(a);u.length&&t.insertTypeParameters(n,a,u)}let c=Iu(a)&&!Kl(a,21,n);c&&t.insertNodeBefore(n,To(a.parameters),W.createToken(21));for(let u of a.parameters)if(!u.type){let _=hv(u);_&&t.tryInsertTypeAnnotation(n,u,At(_,jP,Wo))}if(c&&t.insertNodeAfter(n,Sn(a.parameters),W.createToken(22)),!a.type){let u=iG(a);u&&t.tryInsertTypeAnnotation(n,a,At(u,jP,Wo))}}else{let c=$.checkDefined(hv(a),"A JSDocType for this declaration should exist");$.assert(!a.type,"The JSDocType decl should have a type"),t.tryInsertTypeAnnotation(n,a,At(c,jP,Wo))}}function efr(t){return lu(t)||t.kind===261||t.kind===172||t.kind===173}function jP(t){switch(t.kind){case 313:case 314:return W.createTypeReferenceNode("any",j);case 317:return rfr(t);case 316:return jP(t.type);case 315:return nfr(t);case 319:return ifr(t);case 318:return ofr(t);case 184:return sfr(t);case 323:return tfr(t);default:let n=Dn(t,jP,void 0);return Ai(n,1),n}}function tfr(t){let n=W.createTypeLiteralNode(Cr(t.jsDocPropertyTags,a=>W.createPropertySignature(void 0,ct(a.name)?a.name:a.name.right,CH(a)?W.createToken(58):void 0,a.typeExpression&&At(a.typeExpression.type,jP,Wo)||W.createKeywordTypeNode(133))));return Ai(n,1),n}function rfr(t){return W.createUnionTypeNode([At(t.type,jP,Wo),W.createTypeReferenceNode("undefined",j)])}function nfr(t){return W.createUnionTypeNode([At(t.type,jP,Wo),W.createTypeReferenceNode("null",j)])}function ifr(t){return W.createArrayTypeNode(At(t.type,jP,Wo))}function ofr(t){return W.createFunctionTypeNode(j,t.parameters.map(afr),t.type??W.createKeywordTypeNode(133))}function afr(t){let n=t.parent.parameters.indexOf(t),a=t.type.kind===319&&n===t.parent.parameters.length-1,c=t.name||(a?"rest":"arg"+n),u=a?W.createToken(26):t.dotDotDotToken;return W.createParameterDeclaration(t.modifiers,u,c,t.questionToken,At(t.type,jP,Wo),t.initializer)}function sfr(t){let n=t.typeName,a=t.typeArguments;if(ct(t.typeName)){if(Cre(t))return cfr(t);let c=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":c=c.toLowerCase();break;case"array":case"date":case"promise":c=c[0].toUpperCase()+c.slice(1);break}n=W.createIdentifier(c),(c==="Array"||c==="Promise")&&!t.typeArguments?a=W.createNodeArray([W.createTypeReferenceNode("any",j)]):a=Bn(t.typeArguments,jP,Wo)}return W.createTypeReferenceNode(n,a)}function cfr(t){let n=W.createParameterDeclaration(void 0,void 0,t.typeArguments[0].kind===150?"n":"s",void 0,W.createTypeReferenceNode(t.typeArguments[0].kind===150?"number":"string",[]),void 0),a=W.createTypeLiteralNode([W.createIndexSignature(void 0,[n],t.typeArguments[1])]);return Ai(a,1),a}var U9e="convertFunctionToEs6Class",Ggt=[x.This_constructor_function_may_be_converted_to_a_class_declaration.code];gc({errorCodes:Ggt,getCodeActions(t){let n=ki.ChangeTracker.with(t,a=>Hgt(a,t.sourceFile,t.span.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()));return[Xs(U9e,n,x.Convert_function_to_an_ES2015_class,U9e,x.Convert_all_constructor_functions_to_classes)]},fixIds:[U9e],getAllCodeActions:t=>Vl(t,Ggt,(n,a)=>Hgt(n,a.file,a.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()))});function Hgt(t,n,a,c,u,_){let f=c.getSymbolAtLocation(la(n,a));if(!f||!f.valueDeclaration||!(f.flags&19))return;let y=f.valueDeclaration;if(i_(y)||bu(y))t.replaceNode(n,y,T(y));else if(Oo(y)){let C=k(y);if(!C)return;let O=y.parent.parent;Df(y.parent)&&y.parent.declarations.length>1?(t.delete(n,y),t.insertNodeAfter(n,O,C)):t.replaceNode(n,O,C)}function g(C){let O=[];return C.exports&&C.exports.forEach(U=>{if(U.name==="prototype"&&U.declarations){let J=U.declarations[0];if(U.declarations.length===1&&no(J)&&wi(J.parent)&&J.parent.operatorToken.kind===64&&Lc(J.parent.right)){let G=J.parent.right;M(G.symbol,void 0,O)}}else M(U,[W.createToken(126)],O)}),C.members&&C.members.forEach((U,J)=>{var G,Z,Q,re;if(J==="constructor"&&U.valueDeclaration){let ae=(re=(Q=(Z=(G=C.exports)==null?void 0:G.get("prototype"))==null?void 0:Z.declarations)==null?void 0:Q[0])==null?void 0:re.parent;ae&&wi(ae)&&Lc(ae.right)&&Pt(ae.right.properties,ESe)||t.delete(n,U.valueDeclaration.parent);return}M(U,void 0,O)}),O;function F(U,J){return wu(U)?no(U)&&ESe(U)?!0:Rs(J):ht(U.properties,G=>!!(Ep(G)||aG(G)||td(G)&&bu(G.initializer)&&G.name||ESe(G)))}function M(U,J,G){if(!(U.flags&8192)&&!(U.flags&4096))return;let Z=U.valueDeclaration,Q=Z.parent,re=Q.right;if(!F(Z,re)||Pt(G,Oe=>{let be=cs(Oe);return!!(be&&ct(be)&&Zi(be)===vp(U))}))return;let ae=Q.parent&&Q.parent.kind===245?Q.parent:Q;if(t.delete(n,ae),!re){G.push(W.createPropertyDeclaration(J,U.name,void 0,void 0,void 0));return}if(wu(Z)&&(bu(re)||Iu(re))){let Oe=Vg(n,u),be=lfr(Z,_,Oe);be&&_e(G,re,be);return}else if(Lc(re)){X(re.properties,Oe=>{(Ep(Oe)||aG(Oe))&&G.push(Oe),td(Oe)&&bu(Oe.initializer)&&_e(G,Oe.initializer,Oe.name),ESe(Oe)});return}else{if(ph(n)||!no(Z))return;let Oe=W.createPropertyDeclaration(J,Z.name,void 0,void 0,re);eM(Q.parent,Oe,n),G.push(Oe);return}function _e(Oe,be,ue){return bu(be)?me(Oe,be,ue):le(Oe,be,ue)}function me(Oe,be,ue){let De=go(J,TSe(be,134)),Ce=W.createMethodDeclaration(De,void 0,ue,void 0,void 0,be.parameters,void 0,be.body);eM(Q,Ce,n),Oe.push(Ce)}function le(Oe,be,ue){let De=be.body,Ce;De.kind===242?Ce=De:Ce=W.createBlock([W.createReturnStatement(De)]);let Ae=go(J,TSe(be,134)),Fe=W.createMethodDeclaration(Ae,void 0,ue,void 0,void 0,be.parameters,void 0,Ce);eM(Q,Fe,n),Oe.push(Fe)}}}function k(C){let O=C.initializer;if(!O||!bu(O)||!ct(C.name))return;let F=g(C.symbol);O.body&&F.unshift(W.createConstructorDeclaration(void 0,O.parameters,O.body));let M=TSe(C.parent.parent,95);return W.createClassDeclaration(M,C.name,void 0,void 0,F)}function T(C){let O=g(f);C.body&&O.unshift(W.createConstructorDeclaration(void 0,C.parameters,C.body));let F=TSe(C,95);return W.createClassDeclaration(F,C.name,void 0,void 0,O)}}function TSe(t,n){return l1(t)?yr(t.modifiers,a=>a.kind===n):void 0}function ESe(t){return t.name?!!(ct(t.name)&&t.name.text==="constructor"):!1}function lfr(t,n,a){if(no(t))return t.name;let c=t.argumentExpression;if(qh(c))return c;if(Sl(c))return Jd(c.text,$c(n))?W.createIdentifier(c.text):r3(c)?W.createStringLiteral(c.text,a===0):c}var z9e="convertToAsyncFunction",Kgt=[x.This_may_be_converted_to_an_async_function.code],kSe=!0;gc({errorCodes:Kgt,getCodeActions(t){kSe=!0;let n=ki.ChangeTracker.with(t,a=>Qgt(a,t.sourceFile,t.span.start,t.program.getTypeChecker()));return kSe?[Xs(z9e,n,x.Convert_to_async_function,z9e,x.Convert_all_to_async_functions)]:[]},fixIds:[z9e],getAllCodeActions:t=>Vl(t,Kgt,(n,a)=>Qgt(n,a.file,a.start,t.program.getTypeChecker()))});function Qgt(t,n,a,c){let u=la(n,a),_;if(ct(u)&&Oo(u.parent)&&u.parent.initializer&&lu(u.parent.initializer)?_=u.parent.initializer:_=Ci(My(la(n,a)),Gve),!_)return;let f=new Map,y=Ei(_),g=pfr(_,c),k=_fr(_,c,f);if(!Vve(k,c))return;let T=k.body&&Vs(k.body)?ufr(k.body,c):j,C={checker:c,synthNamesMap:f,setOfExpressionsToReturn:g,isInJSFile:y};if(!T.length)return;let O=_c(n.text,ES(_).pos);t.insertModifierAt(n,O,134,{suffix:" "});for(let F of T)if(Is(F,function M(U){if(Js(U)){let J=aM(U,U,C,!1);if(GF())return!0;t.replaceNodeWithNodes(n,F,J)}else if(!Rs(U)&&(Is(U,M),GF()))return!0}),GF())return}function ufr(t,n){let a=[];return sC(t,c=>{fae(c,n)&&a.push(c)}),a}function pfr(t,n){if(!t.body)return new Set;let a=new Set;return Is(t.body,function c(u){mQ(u,n,"then")?(a.add(hl(u)),X(u.arguments,c)):mQ(u,n,"catch")||mQ(u,n,"finally")?(a.add(hl(u)),Is(u,c)):Xgt(u,n)?a.add(hl(u)):Is(u,c)}),a}function mQ(t,n,a){if(!Js(t))return!1;let u=$K(t,a)&&n.getTypeAtLocation(t);return!!(u&&n.getPromisedTypeOfPromise(u))}function Zgt(t,n){return(ro(t)&4)!==0&&t.target===n}function CSe(t,n,a){if(t.expression.name.escapedText==="finally")return;let c=a.getTypeAtLocation(t.expression.expression);if(Zgt(c,a.getPromiseType())||Zgt(c,a.getPromiseLikeType()))if(t.expression.name.escapedText==="then"){if(n===Gr(t.arguments,0))return Gr(t.typeArguments,0);if(n===Gr(t.arguments,1))return Gr(t.typeArguments,1)}else return Gr(t.typeArguments,0)}function Xgt(t,n){return Vt(t)?!!n.getPromisedTypeOfPromise(n.getTypeAtLocation(t)):!1}function _fr(t,n,a){let c=new Map,u=d_();return Is(t,function _(f){if(!ct(f)){Is(f,_);return}let y=n.getSymbolAtLocation(f);if(y){let g=n.getTypeAtLocation(f),k=iyt(g,n),T=hc(y).toString();if(k&&!wa(f.parent)&&!lu(f.parent)&&!a.has(T)){let C=pi(k.parameters),O=C?.valueDeclaration&&wa(C.valueDeclaration)&&Ci(C.valueDeclaration.name,ct)||W.createUniqueName("result",16),F=Ygt(O,u);a.set(T,F),u.add(O.text,y)}else if(f.parent&&(wa(f.parent)||Oo(f.parent)||Vc(f.parent))){let C=f.text,O=u.get(C);if(O&&O.some(F=>F!==y)){let F=Ygt(f,u);c.set(T,F.identifier),a.set(T,F),u.add(C,y)}else{let F=Il(f);a.set(T,uq(F)),u.add(C,y)}}}}),wH(t,!0,_=>{if(Vc(_)&&ct(_.name)&&$y(_.parent)){let f=n.getSymbolAtLocation(_.name),y=f&&c.get(String(hc(f)));if(y&&y.text!==(_.name||_.propertyName).getText())return W.createBindingElement(_.dotDotDotToken,_.propertyName||_.name,y,_.initializer)}else if(ct(_)){let f=n.getSymbolAtLocation(_),y=f&&c.get(String(hc(f)));if(y)return W.createIdentifier(y.text)}})}function Ygt(t,n){let a=(n.get(t.text)||j).length,c=a===0?t:W.createIdentifier(t.text+"_"+a);return uq(c)}function GF(){return!kSe}function qA(){return kSe=!1,j}function aM(t,n,a,c,u){if(mQ(n,a.checker,"then"))return mfr(n,Gr(n.arguments,0),Gr(n.arguments,1),a,c,u);if(mQ(n,a.checker,"catch"))return ryt(n,Gr(n.arguments,0),a,c,u);if(mQ(n,a.checker,"finally"))return ffr(n,Gr(n.arguments,0),a,c,u);if(no(n))return aM(t,n.expression,a,c,u);let _=a.checker.getTypeAtLocation(n);return _&&a.checker.getPromisedTypeOfPromise(_)?($.assertNode(Ku(n).parent,no),hfr(t,n,a,c,u)):qA()}function DSe({checker:t},n){if(n.kind===106)return!0;if(ct(n)&&!ap(n)&&Zi(n)==="undefined"){let a=t.getSymbolAtLocation(n);return!a||t.isUndefinedSymbol(a)}return!1}function dfr(t){let n=W.createUniqueName(t.identifier.text,16);return uq(n)}function eyt(t,n,a){let c;return a&&!gQ(t,n)&&(hQ(a)?(c=a,n.synthNamesMap.forEach((u,_)=>{if(u.identifier.text===a.identifier.text){let f=dfr(a);n.synthNamesMap.set(_,f)}})):c=uq(W.createUniqueName("result",16),a.types),W9e(c)),c}function tyt(t,n,a,c,u){let _=[],f;if(c&&!gQ(t,n)){f=Il(W9e(c));let y=c.types,g=n.checker.getUnionType(y,2),k=n.isInJSFile?void 0:n.checker.typeToTypeNode(g,void 0,void 0),T=[W.createVariableDeclaration(f,void 0,k)],C=W.createVariableStatement(void 0,W.createVariableDeclarationList(T,1));_.push(C)}return _.push(a),u&&f&&vfr(u)&&_.push(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Il(cyt(u)),void 0,void 0,f)],2))),_}function ffr(t,n,a,c,u){if(!n||DSe(a,n))return aM(t,t.expression.expression,a,c,u);let _=eyt(t,a,u),f=aM(t,t.expression.expression,a,!0,_);if(GF())return qA();let y=J9e(n,c,void 0,void 0,t,a);if(GF())return qA();let g=W.createBlock(f),k=W.createBlock(y),T=W.createTryStatement(g,void 0,k);return tyt(t,a,T,_,u)}function ryt(t,n,a,c,u){if(!n||DSe(a,n))return aM(t,t.expression.expression,a,c,u);let _=ayt(n,a),f=eyt(t,a,u),y=aM(t,t.expression.expression,a,!0,f);if(GF())return qA();let g=J9e(n,c,f,_,t,a);if(GF())return qA();let k=W.createBlock(y),T=W.createCatchClause(_&&Il(Pae(_)),W.createBlock(g)),C=W.createTryStatement(k,T,void 0);return tyt(t,a,C,f,u)}function mfr(t,n,a,c,u,_){if(!n||DSe(c,n))return ryt(t,a,c,u,_);if(a&&!DSe(c,a))return qA();let f=ayt(n,c),y=aM(t.expression.expression,t.expression.expression,c,!0,f);if(GF())return qA();let g=J9e(n,u,_,f,t,c);return GF()?qA():go(y,g)}function hfr(t,n,a,c,u){if(gQ(t,a)){let _=Il(n);return c&&(_=W.createAwaitExpression(_)),[W.createReturnStatement(_)]}return ASe(u,W.createAwaitExpression(n),void 0)}function ASe(t,n,a){return!t||syt(t)?[W.createExpressionStatement(n)]:hQ(t)&&t.hasBeenDeclared?[W.createExpressionStatement(W.createAssignment(Il(V9e(t)),n))]:[W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Il(Pae(t)),void 0,a,n)],2))]}function q9e(t,n){if(n&&t){let a=W.createUniqueName("result",16);return[...ASe(uq(a),t,n),W.createReturnStatement(a)]}return[W.createReturnStatement(t)]}function J9e(t,n,a,c,u,_){var f;switch(t.kind){case 106:break;case 212:case 80:if(!c)break;let y=W.createCallExpression(Il(t),void 0,hQ(c)?[V9e(c)]:[]);if(gQ(u,_))return q9e(y,CSe(u,t,_.checker));let g=_.checker.getTypeAtLocation(t),k=_.checker.getSignaturesOfType(g,0);if(!k.length)return qA();let T=k[0].getReturnType(),C=ASe(a,W.createAwaitExpression(y),CSe(u,t,_.checker));return a&&a.types.push(_.checker.getAwaitedType(T)||T),C;case 219:case 220:{let O=t.body,F=(f=iyt(_.checker.getTypeAtLocation(t),_.checker))==null?void 0:f.getReturnType();if(Vs(O)){let M=[],U=!1;for(let J of O.statements)if(gy(J))if(U=!0,fae(J,_.checker))M=M.concat(oyt(_,J,n,a));else{let G=F&&J.expression?nyt(_.checker,F,J.expression):J.expression;M.push(...q9e(G,CSe(u,t,_.checker)))}else{if(n&&sC(J,AT))return qA();M.push(J)}return gQ(u,_)?M.map(J=>Il(J)):gfr(M,a,_,U)}else{let M=Wve(O,_.checker)?oyt(_,W.createReturnStatement(O),n,a):j;if(M.length>0)return M;if(F){let U=nyt(_.checker,F,O);if(gQ(u,_))return q9e(U,CSe(u,t,_.checker));{let J=ASe(a,U,void 0);return a&&a.types.push(_.checker.getAwaitedType(F)||F),J}}else return qA()}}default:return qA()}return j}function nyt(t,n,a){let c=Il(a);return t.getPromisedTypeOfPromise(n)?W.createAwaitExpression(c):c}function iyt(t,n){let a=n.getSignaturesOfType(t,0);return Yr(a)}function gfr(t,n,a,c){let u=[];for(let _ of t)if(gy(_)){if(_.expression){let f=Xgt(_.expression,a.checker)?W.createAwaitExpression(_.expression):_.expression;n===void 0?u.push(W.createExpressionStatement(f)):hQ(n)&&n.hasBeenDeclared?u.push(W.createExpressionStatement(W.createAssignment(V9e(n),f))):u.push(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Pae(n),void 0,void 0,f)],2)))}}else u.push(Il(_));return!c&&n!==void 0&&u.push(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Pae(n),void 0,void 0,W.createIdentifier("undefined"))],2))),u}function oyt(t,n,a,c){let u=[];return Is(n,function _(f){if(Js(f)){let y=aM(f,f,t,a,c);if(u=u.concat(y),u.length>0)return}else Rs(f)||Is(f,_)}),u}function ayt(t,n){let a=[],c;if(lu(t)){if(t.parameters.length>0){let g=t.parameters[0].name;c=u(g)}}else ct(t)?c=_(t):no(t)&&ct(t.name)&&(c=_(t.name));if(!c||"identifier"in c&&c.identifier.text==="undefined")return;return c;function u(g){if(ct(g))return _(g);let k=an(g.elements,T=>Id(T)?[]:[u(T.name)]);return yfr(g,k)}function _(g){let k=y(g),T=f(k);return T&&n.synthNamesMap.get(hc(T).toString())||uq(g,a)}function f(g){var k;return((k=Ci(g,gv))==null?void 0:k.symbol)??n.checker.getSymbolAtLocation(g)}function y(g){return g.original?g.original:g}}function syt(t){return t?hQ(t)?!t.identifier.text:ht(t.elements,syt):!0}function uq(t,n=[]){return{kind:0,identifier:t,types:n,hasBeenDeclared:!1,hasBeenReferenced:!1}}function yfr(t,n=j,a=[]){return{kind:1,bindingPattern:t,elements:n,types:a}}function V9e(t){return t.hasBeenReferenced=!0,t.identifier}function Pae(t){return hQ(t)?W9e(t):cyt(t)}function cyt(t){for(let n of t.elements)Pae(n);return t.bindingPattern}function W9e(t){return t.hasBeenDeclared=!0,t.identifier}function hQ(t){return t.kind===0}function vfr(t){return t.kind===1}function gQ(t,n){return!!t.original&&n.setOfExpressionsToReturn.has(hl(t.original))}gc({errorCodes:[x.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(t){let{sourceFile:n,program:a,preferences:c}=t,u=ki.ChangeTracker.with(t,_=>{if(bfr(n,a.getTypeChecker(),_,$c(a.getCompilerOptions()),Vg(n,c)))for(let y of a.getSourceFiles())Sfr(y,n,a,_,Vg(y,c))});return[wv("convertToEsModule",u,x.Convert_to_ES_module)]}});function Sfr(t,n,a,c,u){var _;for(let f of t.imports){let y=(_=a.getResolvedModuleFromModuleSpecifier(f,t))==null?void 0:_.resolvedModule;if(!y||y.resolvedFileName!==n.fileName)continue;let g=bU(f);switch(g.kind){case 272:c.replaceNode(t,g,IC(g.name,void 0,f,u));break;case 214:$h(g,!1)&&c.replaceNode(t,g,W.createPropertyAccessExpression(Il(g),"default"));break}}}function bfr(t,n,a,c,u){let _={original:Ffr(t),additional:new Set},f=xfr(t,n,_);Tfr(t,f,a);let y=!1,g;for(let k of yr(t.statements,h_)){let T=uyt(t,k,a,n,_,c,u);T&&ere(T,g??(g=new Map))}for(let k of yr(t.statements,T=>!h_(T))){let T=Efr(t,k,n,a,_,c,f,g,u);y=y||T}return g?.forEach((k,T)=>{a.replaceNode(t,T,k)}),y}function xfr(t,n,a){let c=new Map;return lyt(t,u=>{let{text:_}=u.name;!c.has(_)&&(the(u.name)||n.resolveName(_,u,111551,!0))&&c.set(_,wSe(`_${_}`,a))}),c}function Tfr(t,n,a){lyt(t,(c,u)=>{if(u)return;let{text:_}=c.name;a.replaceNode(t,c,W.createIdentifier(n.get(_)||_))})}function lyt(t,n){t.forEachChild(function a(c){if(no(c)&&CP(t,c.expression)&&ct(c.name)){let{parent:u}=c;n(c,wi(u)&&u.left===c&&u.operatorToken.kind===64)}c.forEachChild(a)})}function Efr(t,n,a,c,u,_,f,y,g){switch(n.kind){case 244:return uyt(t,n,c,a,u,_,g),!1;case 245:{let{expression:k}=n;switch(k.kind){case 214:return $h(k,!0)&&c.replaceNode(t,n,IC(void 0,void 0,k.arguments[0],g)),!1;case 227:{let{operatorToken:T}=k;return T.kind===64&&Cfr(t,a,k,c,f,y)}}}default:return!1}}function uyt(t,n,a,c,u,_,f){let{declarationList:y}=n,g=!1,k=Cr(y.declarations,T=>{let{name:C,initializer:O}=T;if(O){if(CP(t,O))return g=!0,pq([]);if($h(O,!0))return g=!0,Nfr(C,O.arguments[0],c,u,_,f);if(no(O)&&$h(O.expression,!0))return g=!0,kfr(C,O.name.text,O.expression.arguments[0],u,f)}return pq([W.createVariableStatement(void 0,W.createVariableDeclarationList([T],y.flags))])});if(g){a.replaceNodeWithNodes(t,n,an(k,C=>C.newImports));let T;return X(k,C=>{C.useSitesToUnqualify&&ere(C.useSitesToUnqualify,T??(T=new Map))}),T}}function kfr(t,n,a,c,u){switch(t.kind){case 207:case 208:{let _=wSe(n,c);return pq([fyt(_,n,a,u),ISe(void 0,t,W.createIdentifier(_))])}case 80:return pq([fyt(t.text,n,a,u)]);default:return $.assertNever(t,`Convert to ES module got invalid syntax form ${t.kind}`)}}function Cfr(t,n,a,c,u,_){let{left:f,right:y}=a;if(!no(f))return!1;if(CP(t,f))if(CP(t,y))c.delete(t,a.parent);else{let g=Lc(y)?Dfr(y,_):$h(y,!0)?wfr(y.arguments[0],n):void 0;return g?(c.replaceNodeWithNodes(t,a.parent,g[0]),g[1]):(c.replaceRangeWithText(t,y0(f.getStart(t),y.pos),"export default"),!0)}else CP(t,f.expression)&&Afr(t,a,c,u);return!1}function Dfr(t,n){let a=Bo(t.properties,c=>{switch(c.kind){case 178:case 179:case 305:case 306:return;case 304:return ct(c.name)?Pfr(c.name.text,c.initializer,n):void 0;case 175:return ct(c.name)?dyt(c.name.text,[W.createToken(95)],c,n):void 0;default:$.assertNever(c,`Convert to ES6 got invalid prop kind ${c.kind}`)}});return a&&[a,!1]}function Afr(t,n,a,c){let{text:u}=n.left.name,_=c.get(u);if(_!==void 0){let f=[ISe(void 0,_,n.right),K9e([W.createExportSpecifier(!1,_,u)])];a.replaceNodeWithNodes(t,n.parent,f)}else Ifr(n,t,a)}function wfr(t,n){let a=t.text,c=n.getSymbolAtLocation(t),u=c?c.exports:ie;return u.has("export=")?[[G9e(a)],!0]:u.has("default")?u.size>1?[[pyt(a),G9e(a)],!0]:[[G9e(a)],!0]:[[pyt(a)],!1]}function pyt(t){return K9e(void 0,t)}function G9e(t){return K9e([W.createExportSpecifier(!1,void 0,"default")],t)}function Ifr({left:t,right:n,parent:a},c,u){let _=t.name.text;if((bu(n)||Iu(n)||w_(n))&&(!n.name||n.name.text===_)){u.replaceRange(c,{pos:t.getStart(c),end:n.getStart(c)},W.createToken(95),{suffix:" "}),n.name||u.insertName(c,n,_);let f=Kl(a,27,c);f&&u.delete(c,f)}else u.replaceNodeRangeWithNodes(c,t.expression,Kl(t,25,c),[W.createToken(95),W.createToken(87)],{joiner:" ",suffix:" "})}function Pfr(t,n,a){let c=[W.createToken(95)];switch(n.kind){case 219:{let{name:_}=n;if(_&&_.text!==t)return u()}case 220:return dyt(t,c,n,a);case 232:return Lfr(t,c,n,a);default:return u()}function u(){return ISe(c,W.createIdentifier(t),H9e(n,a))}}function H9e(t,n){if(!n||!Pt(so(n.keys()),c=>zh(t,c)))return t;return Zn(t)?hge(t,!0,a):wH(t,!0,a);function a(c){if(c.kind===212){let u=n.get(c);return n.delete(c),u}}}function Nfr(t,n,a,c,u,_){switch(t.kind){case 207:{let f=Bo(t.elements,y=>y.dotDotDotToken||y.initializer||y.propertyName&&!ct(y.propertyName)||!ct(y.name)?void 0:myt(y.propertyName&&y.propertyName.text,y.name.text));if(f)return pq([IC(void 0,f,n,_)])}case 208:{let f=wSe(nQ(n.text,u),c);return pq([IC(W.createIdentifier(f),void 0,n,_),ISe(void 0,Il(t),W.createIdentifier(f))])}case 80:return Ofr(t,n,a,c,_);default:return $.assertNever(t,`Convert to ES module got invalid name kind ${t.kind}`)}}function Ofr(t,n,a,c,u){let _=a.getSymbolAtLocation(t),f=new Map,y=!1,g;for(let T of c.original.get(t.text)){if(a.getSymbolAtLocation(T)!==_||T===t)continue;let{parent:C}=T;if(no(C)){let{name:{text:O}}=C;if(O==="default"){y=!0;let F=T.getText();(g??(g=new Map)).set(C,W.createIdentifier(F))}else{$.assert(C.expression===T,"Didn't expect expression === use");let F=f.get(O);F===void 0&&(F=wSe(O,c),f.set(O,F)),(g??(g=new Map)).set(C,W.createIdentifier(F))}}else y=!0}let k=f.size===0?void 0:so(ol(f.entries(),([T,C])=>W.createImportSpecifier(!1,T===C?void 0:W.createIdentifier(T),W.createIdentifier(C))));return k||(y=!0),pq([IC(y?Il(t):void 0,k,n,u)],g)}function wSe(t,n){for(;n.original.has(t)||n.additional.has(t);)t=`_${t}`;return n.additional.add(t),t}function Ffr(t){let n=d_();return _yt(t,a=>n.add(a.text,a)),n}function _yt(t,n){ct(t)&&Rfr(t)&&n(t),t.forEachChild(a=>_yt(a,n))}function Rfr(t){let{parent:n}=t;switch(n.kind){case 212:return n.name!==t;case 209:return n.propertyName!==t;case 277:return n.propertyName!==t;default:return!0}}function dyt(t,n,a,c){return W.createFunctionDeclaration(go(n,hP(a.modifiers)),Il(a.asteriskToken),t,hP(a.typeParameters),hP(a.parameters),Il(a.type),W.converters.convertToFunctionBlock(H9e(a.body,c)))}function Lfr(t,n,a,c){return W.createClassDeclaration(go(n,hP(a.modifiers)),t,hP(a.typeParameters),hP(a.heritageClauses),H9e(a.members,c))}function fyt(t,n,a,c){return n==="default"?IC(W.createIdentifier(t),void 0,a,c):IC(void 0,[myt(n,t)],a,c)}function myt(t,n){return W.createImportSpecifier(!1,t!==void 0&&t!==n?W.createIdentifier(t):void 0,W.createIdentifier(n))}function ISe(t,n,a){return W.createVariableStatement(t,W.createVariableDeclarationList([W.createVariableDeclaration(n,void 0,void 0,a)],2))}function K9e(t,n){return W.createExportDeclaration(void 0,!1,t&&W.createNamedExports(t),n===void 0?void 0:W.createStringLiteral(n))}function pq(t,n){return{newImports:t,useSitesToUnqualify:n}}var Q9e="correctQualifiedNameToIndexedAccessType",hyt=[x.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];gc({errorCodes:hyt,getCodeActions(t){let n=gyt(t.sourceFile,t.span.start);if(!n)return;let a=ki.ChangeTracker.with(t,u=>yyt(u,t.sourceFile,n)),c=`${n.left.text}["${n.right.text}"]`;return[Xs(Q9e,a,[x.Rewrite_as_the_indexed_access_type_0,c],Q9e,x.Rewrite_all_as_indexed_access_types)]},fixIds:[Q9e],getAllCodeActions:t=>Vl(t,hyt,(n,a)=>{let c=gyt(a.file,a.start);c&&yyt(n,a.file,c)})});function gyt(t,n){let a=fn(la(t,n),dh);return $.assert(!!a,"Expected position to be owned by a qualified name."),ct(a.left)?a:void 0}function yyt(t,n,a){let c=a.right.text,u=W.createIndexedAccessTypeNode(W.createTypeReferenceNode(a.left,void 0),W.createLiteralTypeNode(W.createStringLiteral(c)));t.replaceNode(n,a,u)}var Z9e=[x.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],X9e="convertToTypeOnlyExport";gc({errorCodes:Z9e,getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>Syt(c,vyt(n.span,n.sourceFile),n));if(a.length)return[Xs(X9e,a,x.Convert_to_type_only_export,X9e,x.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[X9e],getAllCodeActions:function(n){let a=new Set;return Vl(n,Z9e,(c,u)=>{let _=vyt(u,n.sourceFile);_&&o1(a,hl(_.parent.parent))&&Syt(c,_,n)})}});function vyt(t,n){return Ci(la(n,t.start).parent,Cm)}function Syt(t,n,a){if(!n)return;let c=n.parent,u=c.parent,_=Mfr(n,a);if(_.length===c.elements.length)t.insertModifierBefore(a.sourceFile,156,c);else{let f=W.updateExportDeclaration(u,u.modifiers,!1,W.updateNamedExports(c,yr(c.elements,g=>!un(_,g))),u.moduleSpecifier,void 0),y=W.createExportDeclaration(void 0,!0,W.createNamedExports(_),u.moduleSpecifier,void 0);t.replaceNode(a.sourceFile,u,f,{leadingTriviaOption:ki.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ki.TrailingTriviaOption.Exclude}),t.insertNodeAfter(a.sourceFile,u,y)}}function Mfr(t,n){let a=t.parent;if(a.elements.length===1)return a.elements;let c=M7e(yh(a),n.program.getSemanticDiagnostics(n.sourceFile,n.cancellationToken));return yr(a.elements,u=>{var _;return u===t||((_=L7e(u,c))==null?void 0:_.code)===Z9e[0]})}var byt=[x._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,x._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],PSe="convertToTypeOnlyImport";gc({errorCodes:byt,getCodeActions:function(n){var a;let c=xyt(n.sourceFile,n.span.start);if(c){let u=ki.ChangeTracker.with(n,y=>Nae(y,n.sourceFile,c)),_=c.kind===277&&fp(c.parent.parent.parent)&&Tyt(c,n.sourceFile,n.program)?ki.ChangeTracker.with(n,y=>Nae(y,n.sourceFile,c.parent.parent.parent)):void 0,f=Xs(PSe,u,c.kind===277?[x.Use_type_0,((a=c.propertyName)==null?void 0:a.text)??c.name.text]:x.Use_import_type,PSe,x.Fix_all_with_type_only_imports);return Pt(_)?[wv(PSe,_,x.Use_import_type),f]:[f]}},fixIds:[PSe],getAllCodeActions:function(n){let a=new Set;return Vl(n,byt,(c,u)=>{let _=xyt(u.file,u.start);_?.kind===273&&!a.has(_)?(Nae(c,u.file,_),a.add(_)):_?.kind===277&&fp(_.parent.parent.parent)&&!a.has(_.parent.parent.parent)&&Tyt(_,u.file,n.program)?(Nae(c,u.file,_.parent.parent.parent),a.add(_.parent.parent.parent)):_?.kind===277&&Nae(c,u.file,_)})}});function xyt(t,n){let{parent:a}=la(t,n);return Xm(a)||fp(a)&&a.importClause?a:void 0}function Tyt(t,n,a){if(t.parent.parent.name)return!1;let c=t.parent.elements.filter(_=>!_.isTypeOnly);if(c.length===1)return!0;let u=a.getTypeChecker();for(let _ of c)if(Pu.Core.eachSymbolReferenceInFile(_.name,u,n,y=>{let g=u.getSymbolAtLocation(y);return!!g&&u.symbolIsValue(g)||!yA(y)}))return!1;return!0}function Nae(t,n,a){var c;if(Xm(a))t.replaceNode(n,a,W.updateImportSpecifier(a,!0,a.propertyName,a.name));else{let u=a.importClause;if(u.name&&u.namedBindings)t.replaceNodeWithNodes(n,a,[W.createImportDeclaration(hP(a.modifiers,!0),W.createImportClause(156,Il(u.name,!0),void 0),Il(a.moduleSpecifier,!0),Il(a.attributes,!0)),W.createImportDeclaration(hP(a.modifiers,!0),W.createImportClause(156,void 0,Il(u.namedBindings,!0)),Il(a.moduleSpecifier,!0),Il(a.attributes,!0))]);else{let _=((c=u.namedBindings)==null?void 0:c.kind)===276?W.updateNamedImports(u.namedBindings,Zo(u.namedBindings.elements,y=>W.updateImportSpecifier(y,!1,y.propertyName,y.name))):u.namedBindings,f=W.updateImportDeclaration(a,a.modifiers,W.updateImportClause(u,156,u.name,_),a.moduleSpecifier,a.attributes);t.replaceNode(n,a,f)}}}var Y9e="convertTypedefToType",Eyt=[x.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];gc({fixIds:[Y9e],errorCodes:Eyt,getCodeActions(t){let n=ZT(t.host,t.formatContext.options),a=la(t.sourceFile,t.span.start);if(!a)return;let c=ki.ChangeTracker.with(t,u=>kyt(u,a,t.sourceFile,n));if(c.length>0)return[Xs(Y9e,c,x.Convert_typedef_to_TypeScript_type,Y9e,x.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:t=>Vl(t,Eyt,(n,a)=>{let c=ZT(t.host,t.formatContext.options),u=la(a.file,a.start);u&&kyt(n,u,a.file,c,!0)})});function kyt(t,n,a,c,u=!1){if(!_3(n))return;let _=Bfr(n);if(!_)return;let f=n.parent,{leftSibling:y,rightSibling:g}=jfr(n),k=f.getStart(),T="";!y&&f.comment&&(k=Cyt(f,f.getStart(),n.getStart()),T=`${c} */${c}`),y&&(u&&_3(y)?(k=n.getStart(),T=""):(k=Cyt(f,y.getStart(),n.getStart()),T=`${c} */${c}`));let C=f.getEnd(),O="";g&&(u&&_3(g)?(C=g.getStart(),O=`${c}${c}`):(C=g.getStart(),O=`${c}/**${c} * `)),t.replaceRange(a,{pos:k,end:C},_,{prefix:T,suffix:O})}function jfr(t){let n=t.parent,a=n.getChildCount()-1,c=n.getChildren().findIndex(f=>f.getStart()===t.getStart()&&f.getEnd()===t.getEnd()),u=c>0?n.getChildAt(c-1):void 0,_=c0;u--)if(!/[*/\s]/.test(c.substring(u-1,u)))return n+u;return a}function Bfr(t){var n;let{typeExpression:a}=t;if(!a)return;let c=(n=t.name)==null?void 0:n.getText();if(c){if(a.kind===323)return $fr(c,a);if(a.kind===310)return Ufr(c,a)}}function $fr(t,n){let a=Dyt(n);if(Pt(a))return W.createInterfaceDeclaration(void 0,t,void 0,void 0,a)}function Ufr(t,n){let a=Il(n.type);if(a)return W.createTypeAliasDeclaration(void 0,W.createIdentifier(t),void 0,a)}function Dyt(t){let n=t.jsDocPropertyTags;return Pt(n)?Wn(n,c=>{var u;let _=zfr(c),f=(u=c.typeExpression)==null?void 0:u.type,y=c.isBracketed,g;if(f&&p3(f)){let k=Dyt(f);g=W.createTypeLiteralNode(k)}else f&&(g=Il(f));if(g&&_){let k=y?W.createToken(58):void 0;return W.createPropertySignature(void 0,_,k,g)}}):void 0}function zfr(t){return t.name.kind===80?t.name.text:t.name.right.text}function qfr(t){return hy(t)?an(t.jsDoc,n=>{var a;return(a=n.tags)==null?void 0:a.filter(c=>_3(c))}):[]}var eRe="convertLiteralTypeToMappedType",Ayt=[x._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];gc({errorCodes:Ayt,getCodeActions:function(n){let{sourceFile:a,span:c}=n,u=wyt(a,c.start);if(!u)return;let{name:_,constraint:f}=u,y=ki.ChangeTracker.with(n,g=>Iyt(g,a,u));return[Xs(eRe,y,[x.Convert_0_to_1_in_0,f,_],eRe,x.Convert_all_type_literals_to_mapped_type)]},fixIds:[eRe],getAllCodeActions:t=>Vl(t,Ayt,(n,a)=>{let c=wyt(a.file,a.start);c&&Iyt(n,a.file,c)})});function wyt(t,n){let a=la(t,n);if(ct(a)){let c=Ba(a.parent.parent,Zm),u=a.getText(t);return{container:Ba(c.parent,fh),typeNode:c.type,constraint:u,name:u==="K"?"P":"K"}}}function Iyt(t,n,{container:a,typeNode:c,constraint:u,name:_}){t.replaceNode(n,a,W.createMappedTypeNode(void 0,W.createTypeParameterDeclaration(void 0,_,W.createTypeReferenceNode(u)),void 0,void 0,c,void 0))}var Pyt=[x.Class_0_incorrectly_implements_interface_1.code,x.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],tRe="fixClassIncorrectlyImplementsInterface";gc({errorCodes:Pyt,getCodeActions(t){let{sourceFile:n,span:a}=t,c=Nyt(n,a.start);return Wn(ZR(c),u=>{let _=ki.ChangeTracker.with(t,f=>Fyt(t,u,n,c,f,t.preferences));return _.length===0?void 0:Xs(tRe,_,[x.Implement_interface_0,u.getText(n)],tRe,x.Implement_all_unimplemented_interfaces)})},fixIds:[tRe],getAllCodeActions(t){let n=new Set;return Vl(t,Pyt,(a,c)=>{let u=Nyt(c.file,c.start);if(o1(n,hl(u)))for(let _ of ZR(u))Fyt(t,_,c.file,u,a,t.preferences)})}});function Nyt(t,n){return $.checkDefined(Cf(la(t,n)),"There should be a containing class")}function Oyt(t){return!t.valueDeclaration||!(tm(t.valueDeclaration)&2)}function Fyt(t,n,a,c,u,_){let f=t.program.getTypeChecker(),y=Jfr(c,f),g=f.getTypeAtLocation(n),T=f.getPropertiesOfType(g).filter(EI(Oyt,J=>!y.has(J.escapedName))),C=f.getTypeAtLocation(c),O=wt(c.members,J=>kp(J));C.getNumberIndexType()||M(g,1),C.getStringIndexType()||M(g,0);let F=BP(a,t.program,_,t.host);HRe(c,T,a,t,_,F,J=>U(a,c,J)),F.writeFixes(u);function M(J,G){let Z=f.getIndexInfoOfType(J,G);Z&&U(a,c,f.indexInfoToIndexSignatureDeclaration(Z,c,void 0,void 0,sM(t)))}function U(J,G,Z){O?u.insertNodeAfter(J,O,Z):u.insertMemberAtStart(J,G,Z)}}function Jfr(t,n){let a=vv(t);if(!a)return ic();let c=n.getTypeAtLocation(a),u=n.getPropertiesOfType(c);return ic(u.filter(Oyt))}var Ryt="import",Lyt="fixMissingImport",Myt=[x.Cannot_find_name_0.code,x.Cannot_find_name_0_Did_you_mean_1.code,x.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,x.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,x.Cannot_find_namespace_0.code,x._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,x._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,x.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,x._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,x.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,x.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,x.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,x.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig.code,x.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,x.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig.code,x.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha.code,x.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,x.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,x.Cannot_find_namespace_0_Did_you_mean_1.code,x.Cannot_extend_an_interface_0_Did_you_mean_implements.code,x.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code];gc({errorCodes:Myt,getCodeActions(t){let{errorCode:n,preferences:a,sourceFile:c,span:u,program:_}=t,f=qyt(t,n,u.start,!0);if(f)return f.map(({fix:y,symbolName:g,errorIdentifierText:k})=>iRe(t,c,g,y,g!==k,_,a))},fixIds:[Lyt],getAllCodeActions:t=>{let{sourceFile:n,program:a,preferences:c,host:u,cancellationToken:_}=t,f=jyt(n,a,!0,c,u,_);return WF(t,Myt,y=>f.addImportFromDiagnostic(y,t)),VF(ki.ChangeTracker.with(t,f.writeFixes))}});function BP(t,n,a,c,u){return jyt(t,n,!1,a,c,u)}function jyt(t,n,a,c,u,_){let f=n.getCompilerOptions(),y=[],g=[],k=new Map,T=new Set,C=new Set,O=new Map;return{addImportFromDiagnostic:U,addImportFromExportedSymbol:J,addImportForModuleSymbol:G,writeFixes:ae,hasFixes:me,addImportForUnresolvedIdentifier:M,addImportForNonExistentExport:Z,removeExistingImport:Q,addVerbatimImport:F};function F(le){C.add(le)}function M(le,Oe,be){let ue=tmr(le,Oe,be);!ue||!ue.length||re(To(ue))}function U(le,Oe){let be=qyt(Oe,le.code,le.start,a);!be||!be.length||re(To(be))}function J(le,Oe,be){var ue,De;let Ce=$.checkDefined(le.parent,"Expected exported symbol to have module symbol as parent"),Ae=oae(le,$c(f)),Fe=n.getTypeChecker(),Be=Fe.getMergedSymbol($f(le,Fe)),de=$yt(t,Be,Ae,Ce,!1,n,u,c,_);if(!de){$.assert((ue=c.autoImportFileExcludePatterns)==null?void 0:ue.length);return}let ze=yQ(t,n),ut=rRe(t,de,n,void 0,!!Oe,ze,u,c);if(ut){let je=((De=Ci(be?.name,ct))==null?void 0:De.text)??Ae,ve,Le;be&&OR(be)&&(ut.kind===3||ut.kind===2)&&ut.addAsTypeOnly===1&&(ve=2),le.name!==je&&(Le=le.name),ut={...ut,...ve===void 0?{}:{addAsTypeOnly:ve},...Le===void 0?{}:{propertyName:Le}},re({fix:ut,symbolName:je??Ae,errorIdentifierText:void 0})}}function G(le,Oe,be){var ue,De,Ce;let Ae=n.getTypeChecker(),Fe=Ae.getAliasedSymbol(le);$.assert(Fe.flags&1536,"Expected symbol to be a module");let Be=BA(n,u),de=QT.getModuleSpecifiersWithCacheInfo(Fe,Ae,f,t,Be,c,void 0,!0),ze=yQ(t,n),ut=Fae(Oe,!0,void 0,le.flags,n.getTypeChecker(),f);ut=ut===1&&OR(be)?2:1;let je=fp(be)?W4(be)?1:2:Xm(be)?0:H1(be)&&be.name?1:2,ve=[{symbol:le,moduleSymbol:Fe,moduleFileName:(Ce=(De=(ue=Fe.declarations)==null?void 0:ue[0])==null?void 0:De.getSourceFile())==null?void 0:Ce.fileName,exportKind:4,targetFlags:le.flags,isFromPackageJson:!1}],Le=rRe(t,ve,n,void 0,!!Oe,ze,u,c),Ve;Le&&je!==2&&Le.kind!==0&&Le.kind!==1?Ve={...Le,addAsTypeOnly:ut,importKind:je}:Ve={kind:3,moduleSpecifierKind:Le!==void 0?Le.moduleSpecifierKind:de.kind,moduleSpecifier:Le!==void 0?Le.moduleSpecifier:To(de.moduleSpecifiers),importKind:je,addAsTypeOnly:ut,useRequire:ze},re({fix:Ve,symbolName:le.name,errorIdentifierText:void 0})}function Z(le,Oe,be,ue,De){let Ce=n.getSourceFile(Oe),Ae=yQ(t,n);if(Ce&&Ce.symbol){let{fixes:Fe}=Oae([{exportKind:be,isFromPackageJson:!1,moduleFileName:Oe,moduleSymbol:Ce.symbol,targetFlags:ue}],void 0,De,Ae,n,t,u,c);Fe.length&&re({fix:Fe[0],symbolName:le,errorIdentifierText:le})}else{let Fe=uae(Oe,99,n,u),Be=QT.getLocalModuleSpecifierBetweenFileNames(t,Oe,f,BA(n,u),c),de=NSe(Fe,be,n),ze=Fae(De,!0,void 0,ue,n.getTypeChecker(),f);re({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:Be,importKind:de,addAsTypeOnly:ze,useRequire:Ae},symbolName:le,errorIdentifierText:le})}}function Q(le){le.kind===274&&$.assertIsDefined(le.name,"ImportClause should have a name if it's being removed"),T.add(le)}function re(le){var Oe,be,ue;let{fix:De,symbolName:Ce}=le;switch(De.kind){case 0:y.push(De);break;case 1:g.push(De);break;case 2:{let{importClauseOrBindingPattern:de,importKind:ze,addAsTypeOnly:ut,propertyName:je}=De,ve=k.get(de);if(ve||k.set(de,ve={importClauseOrBindingPattern:de,defaultImport:void 0,namedImports:new Map}),ze===0){let Le=(Oe=ve?.namedImports.get(Ce))==null?void 0:Oe.addAsTypeOnly;ve.namedImports.set(Ce,{addAsTypeOnly:Ae(Le,ut),propertyName:je})}else $.assert(ve.defaultImport===void 0||ve.defaultImport.name===Ce,"(Add to Existing) Default import should be missing or match symbolName"),ve.defaultImport={name:Ce,addAsTypeOnly:Ae((be=ve.defaultImport)==null?void 0:be.addAsTypeOnly,ut)};break}case 3:{let{moduleSpecifier:de,importKind:ze,useRequire:ut,addAsTypeOnly:je,propertyName:ve}=De,Le=Fe(de,ze,ut,je);switch($.assert(Le.useRequire===ut,"(Add new) Tried to add an `import` and a `require` for the same module"),ze){case 1:$.assert(Le.defaultImport===void 0||Le.defaultImport.name===Ce,"(Add new) Default import should be missing or match symbolName"),Le.defaultImport={name:Ce,addAsTypeOnly:Ae((ue=Le.defaultImport)==null?void 0:ue.addAsTypeOnly,je)};break;case 0:let Ve=(Le.namedImports||(Le.namedImports=new Map)).get(Ce);Le.namedImports.set(Ce,[Ae(Ve,je),ve]);break;case 3:if(f.verbatimModuleSyntax){let nt=(Le.namedImports||(Le.namedImports=new Map)).get(Ce);Le.namedImports.set(Ce,[Ae(nt,je),ve])}else $.assert(Le.namespaceLikeImport===void 0||Le.namespaceLikeImport.name===Ce,"Namespacelike import shoudl be missing or match symbolName"),Le.namespaceLikeImport={importKind:ze,name:Ce,addAsTypeOnly:je};break;case 2:$.assert(Le.namespaceLikeImport===void 0||Le.namespaceLikeImport.name===Ce,"Namespacelike import shoudl be missing or match symbolName"),Le.namespaceLikeImport={importKind:ze,name:Ce,addAsTypeOnly:je};break}break}case 4:break;default:$.assertNever(De,`fix wasn't never - got kind ${De.kind}`)}function Ae(de,ze){return Math.max(de??0,ze)}function Fe(de,ze,ut,je){let ve=Be(de,!0),Le=Be(de,!1),Ve=O.get(ve),nt=O.get(Le),It={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:ut};return ze===1&&je===2?Ve||(O.set(ve,It),It):je===1&&(Ve||nt)?Ve||nt:nt||(O.set(Le,It),It)}function Be(de,ze){return`${ze?1:0}|${de}`}}function ae(le,Oe){var be,ue;let De;t.imports!==void 0&&t.imports.length===0&&Oe!==void 0?De=Oe:De=Vg(t,c);for(let Fe of y)oRe(le,t,Fe);for(let Fe of g)Xyt(le,t,Fe,De);let Ce;if(T.size){$.assert(Ox(t),"Cannot remove imports from a future source file");let Fe=new Set(Wn([...T],je=>fn(je,fp))),Be=new Set(Wn([...T],je=>fn(je,RG))),de=[...Fe].filter(je=>{var ve,Le,Ve;return!k.has(je.importClause)&&(!((ve=je.importClause)!=null&&ve.name)||T.has(je.importClause))&&(!Ci((Le=je.importClause)==null?void 0:Le.namedBindings,zx)||T.has(je.importClause.namedBindings))&&(!Ci((Ve=je.importClause)==null?void 0:Ve.namedBindings,IS)||ht(je.importClause.namedBindings.elements,nt=>T.has(nt)))}),ze=[...Be].filter(je=>(je.name.kind!==207||!k.has(je.name))&&(je.name.kind!==207||ht(je.name.elements,ve=>T.has(ve)))),ut=[...Fe].filter(je=>{var ve,Le;return((ve=je.importClause)==null?void 0:ve.namedBindings)&&de.indexOf(je)===-1&&!((Le=k.get(je.importClause))!=null&&Le.namedImports)&&(je.importClause.namedBindings.kind===275||ht(je.importClause.namedBindings.elements,Ve=>T.has(Ve)))});for(let je of[...de,...ze])le.delete(t,je);for(let je of ut)le.replaceNode(t,je.importClause,W.updateImportClause(je.importClause,je.importClause.phaseModifier,je.importClause.name,void 0));for(let je of T){let ve=fn(je,fp);ve&&de.indexOf(ve)===-1&&ut.indexOf(ve)===-1?je.kind===274?le.delete(t,je.name):($.assert(je.kind===277,"NamespaceImport should have been handled earlier"),(be=k.get(ve.importClause))!=null&&be.namedImports?(Ce??(Ce=new Set)).add(je):le.delete(t,je)):je.kind===209?(ue=k.get(je.parent))!=null&&ue.namedImports?(Ce??(Ce=new Set)).add(je):le.delete(t,je):je.kind===272&&le.delete(t,je)}}k.forEach(({importClauseOrBindingPattern:Fe,defaultImport:Be,namedImports:de})=>{Zyt(le,t,Fe,Be,so(de.entries(),([ze,{addAsTypeOnly:ut,propertyName:je}])=>({addAsTypeOnly:ut,propertyName:je,name:ze})),Ce,c)});let Ae;O.forEach(({useRequire:Fe,defaultImport:Be,namedImports:de,namespaceLikeImport:ze},ut)=>{let je=ut.slice(2),Le=(Fe?t0t:e0t)(je,De,Be,de&&so(de.entries(),([Ve,[nt,It]])=>({addAsTypeOnly:nt,propertyName:It,name:Ve})),ze,f,c);Ae=ea(Ae,Le)}),Ae=ea(Ae,_e()),Ae&&lve(le,t,Ae,!0,c)}function _e(){if(!C.size)return;let le=new Set(Wn([...C],be=>fn(be,fp))),Oe=new Set(Wn([...C],be=>fn(be,LG)));return[...Wn([...C],be=>be.kind===272?Il(be,!0):void 0),...[...le].map(be=>{var ue;return C.has(be)?Il(be,!0):Il(W.updateImportDeclaration(be,be.modifiers,be.importClause&&W.updateImportClause(be.importClause,be.importClause.phaseModifier,C.has(be.importClause)?be.importClause.name:void 0,C.has(be.importClause.namedBindings)?be.importClause.namedBindings:(ue=Ci(be.importClause.namedBindings,IS))!=null&&ue.elements.some(De=>C.has(De))?W.updateNamedImports(be.importClause.namedBindings,be.importClause.namedBindings.elements.filter(De=>C.has(De))):void 0),be.moduleSpecifier,be.attributes),!0)}),...[...Oe].map(be=>C.has(be)?Il(be,!0):Il(W.updateVariableStatement(be,be.modifiers,W.updateVariableDeclarationList(be.declarationList,Wn(be.declarationList.declarations,ue=>C.has(ue)?ue:W.updateVariableDeclaration(ue,ue.name.kind===207?W.updateObjectBindingPattern(ue.name,ue.name.elements.filter(De=>C.has(De))):ue.name,ue.exclamationToken,ue.type,ue.initializer)))),!0))]}function me(){return y.length>0||g.length>0||k.size>0||O.size>0||C.size>0||T.size>0}}function Vfr(t,n,a,c){let u=tM(t,c,a),_=Uyt(t,n);return{getModuleSpecifierForBestExportInfo:f};function f(y,g,k,T){let{fixes:C,computedWithoutCacheCount:O}=Oae(y,g,k,!1,n,t,a,c,_,T),F=Vyt(C,t,n,u,a,c);return F&&{...F,computedWithoutCacheCount:O}}}function Wfr(t,n,a,c,u,_,f,y,g,k,T,C){let O;a?(O=oQ(c,f,y,T,C).get(c.path,a),$.assertIsDefined(O,"Some exportInfo should match the specified exportMapKey")):(O=EO(i1(n.name))?[Hfr(t,u,n,y,f)]:$yt(c,t,u,n,_,y,f,T,C),$.assertIsDefined(O,"Some exportInfo should match the specified symbol / moduleSymbol"));let F=yQ(c,y),M=yA(la(c,k)),U=$.checkDefined(rRe(c,O,y,k,M,F,f,T));return{moduleSpecifier:U.moduleSpecifier,codeAction:Byt(iRe({host:f,formatContext:g,preferences:T},c,u,U,!1,y,T))}}function Gfr(t,n,a,c,u,_){let f=a.getCompilerOptions(),y=us(nRe(t,a.getTypeChecker(),n,f)),g=Kyt(t,n,y,a),k=y!==n.text;return g&&Byt(iRe({host:c,formatContext:u,preferences:_},t,y,g,k,a,_))}function rRe(t,n,a,c,u,_,f,y){let g=tM(t,y,f);return Vyt(Oae(n,c,u,_,a,t,f,y).fixes,t,a,g,f,y)}function Byt({description:t,changes:n,commands:a}){return{description:t,changes:n,commands:a}}function $yt(t,n,a,c,u,_,f,y,g){let k=zyt(_,f),T=y.autoImportFileExcludePatterns&&z7e(f,y),C=_.getTypeChecker().getMergedSymbol(c),O=T&&C.declarations&&Qu(C,308),F=O&&T(O);return oQ(t,f,_,y,g).search(t.path,u,M=>M===a,M=>{let U=k(M[0].isFromPackageJson);if(U.getMergedSymbol($f(M[0].symbol,U))===n&&(F||M.some(J=>U.getMergedSymbol(J.moduleSymbol)===c||J.symbol.parent===c)))return M})}function Hfr(t,n,a,c,u){var _,f;let y=k(c.getTypeChecker(),!1);if(y)return y;let g=(f=(_=u.getPackageJsonAutoImportProvider)==null?void 0:_.call(u))==null?void 0:f.getTypeChecker();return $.checkDefined(g&&k(g,!0),"Could not find symbol in specified module for code actions");function k(T,C){let O=pae(a,T);if(O&&$f(O.symbol,T)===t)return{symbol:O.symbol,moduleSymbol:a,moduleFileName:void 0,exportKind:O.exportKind,targetFlags:$f(t,T).flags,isFromPackageJson:C};let F=T.tryGetMemberInModuleExportsAndProperties(n,a);if(F&&$f(F,T)===t)return{symbol:F,moduleSymbol:a,moduleFileName:void 0,exportKind:0,targetFlags:$f(t,T).flags,isFromPackageJson:C}}}function Oae(t,n,a,c,u,_,f,y,g=Ox(_)?Uyt(_,u):void 0,k){let T=u.getTypeChecker(),C=g?an(t,g.getImportsForExportInfo):j,O=n!==void 0&&Kfr(C,n),F=Zfr(C,a,T,u.getCompilerOptions());if(F)return{computedWithoutCacheCount:0,fixes:[...O?[O]:j,F]};let{fixes:M,computedWithoutCacheCount:U=0}=Yfr(t,C,u,_,n,a,c,f,y,k);return{computedWithoutCacheCount:U,fixes:[...O?[O]:j,...M]}}function Kfr(t,n){return Je(t,({declaration:a,importKind:c})=>{var u;if(c!==0)return;let _=Qfr(a),f=_&&((u=qO(a))==null?void 0:u.text);if(f)return{kind:0,namespacePrefix:_,usagePosition:n,moduleSpecifierKind:void 0,moduleSpecifier:f}})}function Qfr(t){var n,a,c;switch(t.kind){case 261:return(n=Ci(t.name,ct))==null?void 0:n.text;case 272:return t.name.text;case 352:case 273:return(c=Ci((a=t.importClause)==null?void 0:a.namedBindings,zx))==null?void 0:c.name.text;default:return $.assertNever(t)}}function Fae(t,n,a,c,u,_){return t?a&&_.verbatimModuleSyntax&&(!(c&111551)||u.getTypeOnlyAliasDeclaration(a))?2:1:4}function Zfr(t,n,a,c){let u;for(let f of t){let y=_(f);if(!y)continue;let g=OR(y.importClauseOrBindingPattern);if(y.addAsTypeOnly!==4&&g||y.addAsTypeOnly===4&&!g)return y;u??(u=y)}return u;function _({declaration:f,importKind:y,symbol:g,targetFlags:k}){if(y===3||y===2||f.kind===272)return;if(f.kind===261)return(y===0||y===1)&&f.name.kind===207?{kind:2,importClauseOrBindingPattern:f.name,importKind:y,moduleSpecifierKind:void 0,moduleSpecifier:f.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;let{importClause:T}=f;if(!T||!Sl(f.moduleSpecifier))return;let{name:C,namedBindings:O}=T;if(T.isTypeOnly&&!(y===0&&O))return;let F=Fae(n,!1,g,k,a,c);if(!(y===1&&(C||F===2&&O))&&!(y===0&&O?.kind===275))return{kind:2,importClauseOrBindingPattern:T,importKind:y,moduleSpecifierKind:void 0,moduleSpecifier:f.moduleSpecifier.text,addAsTypeOnly:F}}}function Uyt(t,n){let a=n.getTypeChecker(),c;for(let u of t.imports){let _=bU(u);if(RG(_.parent)){let f=a.resolveExternalModuleName(u);f&&(c||(c=d_())).add(hc(f),_.parent)}else if(_.kind===273||_.kind===272||_.kind===352){let f=a.getSymbolAtLocation(u);f&&(c||(c=d_())).add(hc(f),_)}}return{getImportsForExportInfo:({moduleSymbol:u,exportKind:_,targetFlags:f,symbol:y})=>{let g=c?.get(hc(u));if(!g||ph(t)&&!(f&111551)&&!ht(g,OS))return j;let k=NSe(t,_,n);return g.map(T=>({declaration:T,importKind:k,symbol:y,targetFlags:f}))}}}function yQ(t,n){if(!jx(t.fileName))return!1;if(t.commonJsModuleIndicator&&!t.externalModuleIndicator)return!0;if(t.externalModuleIndicator&&!t.commonJsModuleIndicator)return!1;let a=n.getCompilerOptions();if(a.configFile)return Km(a)<5;if(sRe(t,n)===1)return!0;if(sRe(t,n)===99)return!1;for(let c of n.getSourceFiles())if(!(c===t||!ph(c)||n.isSourceFileFromExternalLibrary(c))){if(c.commonJsModuleIndicator&&!c.externalModuleIndicator)return!0;if(c.externalModuleIndicator&&!c.commonJsModuleIndicator)return!1}return!0}function zyt(t,n){return pd(a=>a?n.getPackageJsonAutoImportProvider().getTypeChecker():t.getTypeChecker())}function Xfr(t,n,a,c,u,_,f,y,g){let k=jx(n.fileName),T=t.getCompilerOptions(),C=BA(t,f),O=zyt(t,f),F=km(T),M=Voe(F),U=g?Z=>QT.tryGetModuleSpecifiersFromCache(Z.moduleSymbol,n,C,y):(Z,Q)=>QT.getModuleSpecifiersWithCacheInfo(Z.moduleSymbol,Q,T,n,C,y,void 0,!0),J=0,G=an(_,(Z,Q)=>{let re=O(Z.isFromPackageJson),{computedWithoutCache:ae,moduleSpecifiers:_e,kind:me}=U(Z,re)??{},le=!!(Z.targetFlags&111551),Oe=Fae(c,!0,Z.symbol,Z.targetFlags,re,T);return J+=ae?1:0,Wn(_e,be=>{if(M&&kC(be))return;if(!le&&k&&a!==void 0)return{kind:1,moduleSpecifierKind:me,moduleSpecifier:be,usagePosition:a,exportInfo:Z,isReExport:Q>0};let ue=NSe(n,Z.exportKind,t),De;if(a!==void 0&&ue===3&&Z.exportKind===0){let Ce=re.resolveExternalModuleSymbol(Z.moduleSymbol),Ae;Ce!==Z.moduleSymbol&&(Ae=_ae(Ce,re,$c(T),vl)),Ae||(Ae=rQ(Z.moduleSymbol,$c(T),!1)),De={namespacePrefix:Ae,usagePosition:a}}return{kind:3,moduleSpecifierKind:me,moduleSpecifier:be,importKind:ue,useRequire:u,addAsTypeOnly:Oe,exportInfo:Z,isReExport:Q>0,qualification:De}})});return{computedWithoutCacheCount:J,fixes:G}}function Yfr(t,n,a,c,u,_,f,y,g,k){let T=Je(n,C=>emr(C,_,f,a.getTypeChecker(),a.getCompilerOptions()));return T?{fixes:[T]}:Xfr(a,c,u,_,f,t,y,g,k)}function emr({declaration:t,importKind:n,symbol:a,targetFlags:c},u,_,f,y){var g;let k=(g=qO(t))==null?void 0:g.text;if(k){let T=_?4:Fae(u,!0,a,c,f,y);return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:k,importKind:n,addAsTypeOnly:T,useRequire:_}}}function qyt(t,n,a,c){let u=la(t.sourceFile,a),_;if(n===x._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)_=omr(t,u);else if(ct(u))if(n===x._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){let y=us(nRe(t.sourceFile,t.program.getTypeChecker(),u,t.program.getCompilerOptions())),g=Kyt(t.sourceFile,u,y,t.program);return g&&[{fix:g,symbolName:y,errorIdentifierText:u.text}]}else _=Hyt(t,u,c);else return;let f=tM(t.sourceFile,t.preferences,t.host);return _&&Jyt(_,t.sourceFile,t.program,f,t.host,t.preferences)}function Jyt(t,n,a,c,u,_){let f=y=>wl(y,u.getCurrentDirectory(),UT(u));return pu(t,(y,g)=>cS(!!y.isJsxNamespaceFix,!!g.isJsxNamespaceFix)||Br(y.fix.kind,g.fix.kind)||Wyt(y.fix,g.fix,n,a,_,c.allowsImportingSpecifier,f))}function tmr(t,n,a){let c=Hyt(t,n,a),u=tM(t.sourceFile,t.preferences,t.host);return c&&Jyt(c,t.sourceFile,t.program,u,t.host,t.preferences)}function Vyt(t,n,a,c,u,_){if(Pt(t))return t[0].kind===0||t[0].kind===2?t[0]:t.reduce((f,y)=>Wyt(y,f,n,a,_,c.allowsImportingSpecifier,g=>wl(g,u.getCurrentDirectory(),UT(u)))===-1?y:f)}function Wyt(t,n,a,c,u,_,f){return t.kind!==0&&n.kind!==0?cS(n.moduleSpecifierKind!=="node_modules"||_(n.moduleSpecifier),t.moduleSpecifierKind!=="node_modules"||_(t.moduleSpecifier))||rmr(t,n,u)||imr(t.moduleSpecifier,n.moduleSpecifier,a,c)||cS(Gyt(t,a.path,f),Gyt(n,a.path,f))||bH(t.moduleSpecifier,n.moduleSpecifier):0}function rmr(t,n,a){return a.importModuleSpecifierPreference==="non-relative"||a.importModuleSpecifierPreference==="project-relative"?cS(t.moduleSpecifierKind==="relative",n.moduleSpecifierKind==="relative"):0}function Gyt(t,n,a){var c;if(t.isReExport&&((c=t.exportInfo)!=null&&c.moduleFileName)&&nmr(t.exportInfo.moduleFileName)){let u=a(mo(t.exportInfo.moduleFileName));return Ca(n,u)}return!1}function nmr(t){return t_(t,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function imr(t,n,a,c){return Ca(t,"node:")&&!Ca(n,"node:")?sae(a,c)?-1:1:Ca(n,"node:")&&!Ca(t,"node:")?sae(a,c)?1:-1:0}function omr({sourceFile:t,program:n,host:a,preferences:c},u){let _=n.getTypeChecker(),f=amr(u,_);if(!f)return;let y=_.getAliasedSymbol(f),g=f.name,k=[{symbol:f,moduleSymbol:y,moduleFileName:void 0,exportKind:3,targetFlags:y.flags,isFromPackageJson:!1}],T=yQ(t,n);return Oae(k,void 0,!1,T,n,t,a,c).fixes.map(O=>{var F;return{fix:O,symbolName:g,errorIdentifierText:(F=Ci(u,ct))==null?void 0:F.text}})}function amr(t,n){let a=ct(t)?n.getSymbolAtLocation(t):void 0;if(ene(a))return a;let{parent:c}=t;if(Em(c)&&c.tagName===t||K1(c)){let u=n.resolveName(n.getJsxNamespace(c),Em(c)?t:c,111551,!1);if(ene(u))return u}}function NSe(t,n,a,c){if(a.getCompilerOptions().verbatimModuleSyntax&&dmr(t,a)===1)return 3;switch(n){case 0:return 0;case 1:return 1;case 2:return umr(t,a.getCompilerOptions(),!!c);case 3:return smr(t,a,!!c);case 4:return 2;default:return $.assertNever(n)}}function smr(t,n,a){if(iF(n.getCompilerOptions()))return 1;let c=Km(n.getCompilerOptions());switch(c){case 2:case 1:case 3:return jx(t.fileName)&&(t.externalModuleIndicator||a)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 101:case 102:case 199:return sRe(t,n)===99?2:3;default:return $.assertNever(c,`Unexpected moduleKind ${c}`)}}function Hyt({sourceFile:t,program:n,cancellationToken:a,host:c,preferences:u},_,f){let y=n.getTypeChecker(),g=n.getCompilerOptions();return an(nRe(t,y,_,g),k=>{if(k==="default")return;let T=yA(_),C=yQ(t,n),O=lmr(k,WR(_),x3(_),a,t,n,f,c,u);return so(li(O.values(),F=>Oae(F,_.getStart(t),T,C,n,t,c,u).fixes),F=>({fix:F,symbolName:k,errorIdentifierText:_.text,isJsxNamespaceFix:k!==_.text}))})}function Kyt(t,n,a,c){let u=c.getTypeChecker(),_=u.resolveName(a,n,111551,!0);if(!_)return;let f=u.getTypeOnlyAliasDeclaration(_);if(!(!f||Pn(f)!==t))return{kind:4,typeOnlyAliasDeclaration:f}}function nRe(t,n,a,c){let u=a.parent;if((Em(u)||bP(u))&&u.tagName===a&&Pve(c.jsx)){let _=n.getJsxNamespace(t);if(cmr(_,a,n))return!eL(a.text)&&!n.resolveName(a.text,a,111551,!1)?[a.text,_]:[_]}return[a.text]}function cmr(t,n,a){if(eL(n.text))return!0;let c=a.resolveName(t,n,111551,!0);return!c||Pt(c.declarations,cE)&&!(c.flags&111551)}function lmr(t,n,a,c,u,_,f,y,g){var k;let T=d_(),C=tM(u,g,y),O=(k=y.getModuleSpecifierCache)==null?void 0:k.call(y),F=pd(U=>BA(U?y.getPackageJsonAutoImportProvider():_,y));function M(U,J,G,Z,Q,re){let ae=F(re);if(Fve(Q,u,J,U,g,C,ae,O)){let _e=Q.getTypeChecker();T.add(A7e(G,_e).toString(),{symbol:G,moduleSymbol:U,moduleFileName:J?.fileName,exportKind:Z,targetFlags:$f(G,_e).flags,isFromPackageJson:re})}}return Rve(_,y,g,f,(U,J,G,Z)=>{let Q=G.getTypeChecker();c.throwIfCancellationRequested();let re=G.getCompilerOptions(),ae=pae(U,Q);ae&&n0t(Q.getSymbolFlags(ae.symbol),a)&&_ae(ae.symbol,Q,$c(re),(me,le)=>(n?le??me:me)===t)&&M(U,J,ae.symbol,ae.exportKind,G,Z);let _e=Q.tryGetMemberInModuleExportsAndProperties(t,U);_e&&n0t(Q.getSymbolFlags(_e),a)&&M(U,J,_e,0,G,Z)}),T}function umr(t,n,a){let c=iF(n),u=jx(t.fileName);if(!u&&Km(n)>=5)return c?1:2;if(u)return t.externalModuleIndicator||a?c?1:2:3;for(let _ of t.statements??j)if(gd(_)&&!Op(_.moduleReference))return 3;return c?1:3}function iRe(t,n,a,c,u,_,f){let y,g=ki.ChangeTracker.with(t,k=>{y=pmr(k,n,a,c,u,_,f)});return Xs(Ryt,g,y,Lyt,x.Add_all_missing_imports)}function pmr(t,n,a,c,u,_,f){let y=Vg(n,f);switch(c.kind){case 0:return oRe(t,n,c),[x.Change_0_to_1,a,`${c.namespacePrefix}.${a}`];case 1:return Xyt(t,n,c,y),[x.Change_0_to_1,a,Yyt(c.moduleSpecifier,y)+a];case 2:{let{importClauseOrBindingPattern:g,importKind:k,addAsTypeOnly:T,moduleSpecifier:C}=c;Zyt(t,n,g,k===1?{name:a,addAsTypeOnly:T}:void 0,k===0?[{name:a,addAsTypeOnly:T}]:j,void 0,f);let O=i1(C);return u?[x.Import_0_from_1,a,O]:[x.Update_import_from_0,O]}case 3:{let{importKind:g,moduleSpecifier:k,addAsTypeOnly:T,useRequire:C,qualification:O}=c,F=C?t0t:e0t,M=g===1?{name:a,addAsTypeOnly:T}:void 0,U=g===0?[{name:a,addAsTypeOnly:T}]:void 0,J=g===2||g===3?{importKind:g,name:O?.namespacePrefix||a,addAsTypeOnly:T}:void 0;return lve(t,n,F(k,y,M,U,J,_.getCompilerOptions(),f),!0,f),O&&oRe(t,n,O),u?[x.Import_0_from_1,a,k]:[x.Add_import_from_0,k]}case 4:{let{typeOnlyAliasDeclaration:g}=c,k=_mr(t,g,_,n,f);return k.kind===277?[x.Remove_type_from_import_of_0_from_1,a,Qyt(k.parent.parent)]:[x.Remove_type_from_import_declaration_from_0,Qyt(k)]}default:return $.assertNever(c,`Unexpected fix kind ${c.kind}`)}}function Qyt(t){var n,a;return t.kind===272?((a=Ci((n=Ci(t.moduleReference,WT))==null?void 0:n.expression,Sl))==null?void 0:a.text)||t.moduleReference.getText():Ba(t.parent.moduleSpecifier,Ic).text}function _mr(t,n,a,c,u){let _=a.getCompilerOptions(),f=_.verbatimModuleSyntax;switch(n.kind){case 277:if(n.isTypeOnly){if(n.parent.elements.length>1){let g=W.updateImportSpecifier(n,!1,n.propertyName,n.name),{specifierComparer:k}=WA.getNamedImportSpecifierComparerWithDetection(n.parent.parent.parent,u,c),T=WA.getImportSpecifierInsertionIndex(n.parent.elements,g,k);if(T!==n.parent.elements.indexOf(n))return t.delete(c,n),t.insertImportSpecifierAtIndex(c,g,n.parent,T),n}return t.deleteRange(c,{pos:oC(n.getFirstToken()),end:oC(n.propertyName??n.name)}),n}else return $.assert(n.parent.parent.isTypeOnly),y(n.parent.parent),n.parent.parent;case 274:return y(n),n;case 275:return y(n.parent),n.parent;case 272:return t.deleteRange(c,n.getChildAt(1)),n;default:$.failBadSyntaxKind(n)}function y(g){var k;if(t.delete(c,uve(g,c)),!_.allowImportingTsExtensions){let T=qO(g.parent),C=T&&((k=a.getResolvedModuleFromModuleSpecifier(T,c))==null?void 0:k.resolvedModule);if(C?.resolvedUsingTsExtension){let O=Og(T.text,TK(T.text,_));t.replaceNode(c,T,W.createStringLiteral(O))}}if(f){let T=Ci(g.namedBindings,IS);if(T&&T.elements.length>1){WA.getNamedImportSpecifierComparerWithDetection(g.parent,u,c).isSorted!==!1&&n.kind===277&&T.elements.indexOf(n)!==0&&(t.delete(c,n),t.insertImportSpecifierAtIndex(c,n,T,0));for(let O of T.elements)O!==n&&!O.isTypeOnly&&t.insertModifierBefore(c,156,O)}}}}function Zyt(t,n,a,c,u,_,f){var y;if(a.kind===207){if(_&&a.elements.some(C=>_.has(C))){t.replaceNode(n,a,W.createObjectBindingPattern([...a.elements.filter(C=>!_.has(C)),...c?[W.createBindingElement(void 0,"default",c.name)]:j,...u.map(C=>W.createBindingElement(void 0,C.propertyName,C.name))]));return}c&&T(a,c.name,"default");for(let C of u)T(a,C.name,C.propertyName);return}let g=a.isTypeOnly&&Pt([c,...u],C=>C?.addAsTypeOnly===4),k=a.namedBindings&&((y=Ci(a.namedBindings,IS))==null?void 0:y.elements);if(c&&($.assert(!a.name,"Cannot add a default import to an import clause that already has one"),t.insertNodeAt(n,a.getStart(n),W.createIdentifier(c.name),{suffix:", "})),u.length){let{specifierComparer:C,isSorted:O}=WA.getNamedImportSpecifierComparerWithDetection(a.parent,f,n),F=pu(u.map(M=>W.createImportSpecifier((!a.isTypeOnly||g)&&OSe(M,f),M.propertyName===void 0?void 0:W.createIdentifier(M.propertyName),W.createIdentifier(M.name))),C);if(_)t.replaceNode(n,a.namedBindings,W.updateNamedImports(a.namedBindings,pu([...k.filter(M=>!_.has(M)),...F],C)));else if(k?.length&&O!==!1){let M=g&&k?W.updateNamedImports(a.namedBindings,Zo(k,U=>W.updateImportSpecifier(U,!0,U.propertyName,U.name))).elements:k;for(let U of F){let J=WA.getImportSpecifierInsertionIndex(M,U,C);t.insertImportSpecifierAtIndex(n,U,a.namedBindings,J)}}else if(k?.length)for(let M of F)t.insertNodeInListAfter(n,Sn(k),M,k);else if(F.length){let M=W.createNamedImports(F);a.namedBindings?t.replaceNode(n,a.namedBindings,M):t.insertNodeAfter(n,$.checkDefined(a.name,"Import clause must have either named imports or a default import"),M)}}if(g&&(t.delete(n,uve(a,n)),k))for(let C of k)t.insertModifierBefore(n,156,C);function T(C,O,F){let M=W.createBindingElement(void 0,F,O);C.elements.length?t.insertNodeInListAfter(n,Sn(C.elements),M):t.replaceNode(n,C,W.createObjectBindingPattern([M]))}}function oRe(t,n,{namespacePrefix:a,usagePosition:c}){t.insertText(n,c,a+".")}function Xyt(t,n,{moduleSpecifier:a,usagePosition:c},u){t.insertText(n,c,Yyt(a,u))}function Yyt(t,n){let a=sve(n);return`import(${a}${t}${a}).`}function aRe({addAsTypeOnly:t}){return t===2}function OSe(t,n){return aRe(t)||!!n.preferTypeOnlyAutoImports&&t.addAsTypeOnly!==4}function e0t(t,n,a,c,u,_,f){let y=Zz(t,n),g;if(a!==void 0||c?.length){let k=(!a||aRe(a))&&ht(c,aRe)||(_.verbatimModuleSyntax||f.preferTypeOnlyAutoImports)&&a?.addAsTypeOnly!==4&&!Pt(c,T=>T.addAsTypeOnly===4);g=ea(g,IC(a&&W.createIdentifier(a.name),c?.map(T=>W.createImportSpecifier(!k&&OSe(T,f),T.propertyName===void 0?void 0:W.createIdentifier(T.propertyName),W.createIdentifier(T.name))),t,n,k))}if(u){let k=u.importKind===3?W.createImportEqualsDeclaration(void 0,OSe(u,f),W.createIdentifier(u.name),W.createExternalModuleReference(y)):W.createImportDeclaration(void 0,W.createImportClause(OSe(u,f)?156:void 0,void 0,W.createNamespaceImport(W.createIdentifier(u.name))),y,void 0);g=ea(g,k)}return $.checkDefined(g)}function t0t(t,n,a,c,u){let _=Zz(t,n),f;if(a||c?.length){let y=c?.map(({name:k,propertyName:T})=>W.createBindingElement(void 0,T,k))||[];a&&y.unshift(W.createBindingElement(void 0,"default",a.name));let g=r0t(W.createObjectBindingPattern(y),_);f=ea(f,g)}if(u){let y=r0t(u.name,_);f=ea(f,y)}return $.checkDefined(f)}function r0t(t,n){return W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(typeof t=="string"?W.createIdentifier(t):t,void 0,void 0,W.createCallExpression(W.createIdentifier("require"),void 0,[n]))],2))}function n0t(t,n){return n===7?!0:n&1?!!(t&111551):n&2?!!(t&788968):n&4?!!(t&1920):!1}function sRe(t,n){return Ox(t)?n.getImpliedNodeFormatForEmit(t):b3(t,n.getCompilerOptions())}function dmr(t,n){return Ox(t)?n.getEmitModuleFormatOfFile(t):zz(t,n.getCompilerOptions())}var cRe="addMissingConstraint",i0t=[x.Type_0_is_not_comparable_to_type_1.code,x.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,x.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,x.Type_0_is_not_assignable_to_type_1.code,x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,x.Property_0_is_incompatible_with_index_signature.code,x.Property_0_in_type_1_is_not_assignable_to_type_2.code,x.Type_0_does_not_satisfy_the_constraint_1.code];gc({errorCodes:i0t,getCodeActions(t){let{sourceFile:n,span:a,program:c,preferences:u,host:_}=t,f=o0t(c,n,a);if(f===void 0)return;let y=ki.ChangeTracker.with(t,g=>a0t(g,c,u,_,n,f));return[Xs(cRe,y,x.Add_extends_constraint,cRe,x.Add_extends_constraint_to_all_type_parameters)]},fixIds:[cRe],getAllCodeActions:t=>{let{program:n,preferences:a,host:c}=t,u=new Set;return VF(ki.ChangeTracker.with(t,_=>{WF(t,i0t,f=>{let y=o0t(n,f.file,Jp(f.start,f.length));if(y&&o1(u,hl(y.declaration)))return a0t(_,n,a,c,f.file,y)})}))}});function o0t(t,n,a){let c=wt(t.getSemanticDiagnostics(n),f=>f.start===a.start&&f.length===a.length);if(c===void 0||c.relatedInformation===void 0)return;let u=wt(c.relatedInformation,f=>f.code===x.This_type_parameter_might_need_an_extends_0_constraint.code);if(u===void 0||u.file===void 0||u.start===void 0||u.length===void 0)return;let _=rLe(u.file,Jp(u.start,u.length));if(_!==void 0&&(ct(_)&&Zu(_.parent)&&(_=_.parent),Zu(_))){if(o3(_.parent))return;let f=la(n,a.start),y=t.getTypeChecker();return{constraint:mmr(y,f)||fmr(u.messageText),declaration:_,token:f}}}function a0t(t,n,a,c,u,_){let{declaration:f,constraint:y}=_,g=n.getTypeChecker();if(Ni(y))t.insertText(u,f.name.end,` extends ${y}`);else{let k=$c(n.getCompilerOptions()),T=sM({program:n,host:c}),C=BP(u,n,a,c),O=HSe(g,C,y,void 0,k,void 0,void 0,T);O&&(t.replaceNode(u,f,W.updateTypeParameterDeclaration(f,void 0,f.name,O,f.default)),C.writeFixes(t))}}function fmr(t){let[,n]=RS(t,` +`,0).match(/`extends (.*)`/)||[];return n}function mmr(t,n){return Wo(n.parent)?t.getTypeArgumentConstraint(n.parent):(Vt(n)?t.getContextualType(n):void 0)||t.getTypeAtLocation(n)}var s0t="fixOverrideModifier",vQ="fixAddOverrideModifier",Rae="fixRemoveOverrideModifier",c0t=[x.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,x.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,x.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,x.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,x.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,x.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,x.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],l0t={[x.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:x.Add_override_modifier,fixId:vQ,fixAllDescriptions:x.Add_all_missing_override_modifiers},[x.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:x.Add_override_modifier,fixId:vQ,fixAllDescriptions:x.Add_all_missing_override_modifiers},[x.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:x.Remove_override_modifier,fixId:Rae,fixAllDescriptions:x.Remove_all_unnecessary_override_modifiers},[x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:x.Remove_override_modifier,fixId:Rae,fixAllDescriptions:x.Remove_override_modifier},[x.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:x.Add_override_modifier,fixId:vQ,fixAllDescriptions:x.Add_all_missing_override_modifiers},[x.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:x.Add_override_modifier,fixId:vQ,fixAllDescriptions:x.Add_all_missing_override_modifiers},[x.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:x.Add_override_modifier,fixId:vQ,fixAllDescriptions:x.Remove_all_unnecessary_override_modifiers},[x.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:x.Remove_override_modifier,fixId:Rae,fixAllDescriptions:x.Remove_all_unnecessary_override_modifiers},[x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:x.Remove_override_modifier,fixId:Rae,fixAllDescriptions:x.Remove_all_unnecessary_override_modifiers}};gc({errorCodes:c0t,getCodeActions:function(n){let{errorCode:a,span:c}=n,u=l0t[a];if(!u)return j;let{descriptions:_,fixId:f,fixAllDescriptions:y}=u,g=ki.ChangeTracker.with(n,k=>u0t(k,n,a,c.start));return[D9e(s0t,g,_,f,y)]},fixIds:[s0t,vQ,Rae],getAllCodeActions:t=>Vl(t,c0t,(n,a)=>{let{code:c,start:u}=a,_=l0t[c];!_||_.fixId!==t.fixId||u0t(n,t,c,u)})});function u0t(t,n,a,c){switch(a){case x.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case x.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case x.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case x.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case x.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return hmr(t,n.sourceFile,c);case x.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case x.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return gmr(t,n.sourceFile,c);default:$.fail("Unexpected error code: "+a)}}function hmr(t,n,a){let c=_0t(n,a);if(ph(n)){t.addJSDocTags(n,c,[W.createJSDocOverrideTag(W.createIdentifier("override"))]);return}let u=c.modifiers||j,_=wt(u,mF),f=wt(u,M3e),y=wt(u,C=>Z1e(C.kind)),g=Ut(u,hd),k=f?f.end:_?_.end:y?y.end:g?_c(n.text,g.end):c.getStart(n),T=y||_||f?{prefix:" "}:{suffix:" "};t.insertModifierAt(n,k,164,T)}function gmr(t,n,a){let c=_0t(n,a);if(ph(n)){t.filterJSDocTags(n,c,_4(Kne));return}let u=wt(c.modifiers,j3e);$.assertIsDefined(u),t.deleteModifier(n,u)}function p0t(t){switch(t.kind){case 177:case 173:case 175:case 178:case 179:return!0;case 170:return ne(t,t.parent);default:return!1}}function _0t(t,n){let a=la(t,n),c=fn(a,u=>Co(u)?"quit":p0t(u));return $.assert(c&&p0t(c)),c}var lRe="fixNoPropertyAccessFromIndexSignature",d0t=[x.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];gc({errorCodes:d0t,fixIds:[lRe],getCodeActions(t){let{sourceFile:n,span:a,preferences:c}=t,u=m0t(n,a.start),_=ki.ChangeTracker.with(t,f=>f0t(f,t.sourceFile,u,c));return[Xs(lRe,_,[x.Use_element_access_for_0,u.name.text],lRe,x.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:t=>Vl(t,d0t,(n,a)=>f0t(n,a.file,m0t(a.file,a.start),t.preferences))});function f0t(t,n,a,c){let u=Vg(n,c),_=W.createStringLiteral(a.name.text,u===0);t.replaceNode(n,a,jte(a)?W.createElementAccessChain(a.expression,a.questionDotToken,_):W.createElementAccessExpression(a.expression,_))}function m0t(t,n){return Ba(la(t,n).parent,no)}var uRe="fixImplicitThis",h0t=[x.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];gc({errorCodes:h0t,getCodeActions:function(n){let{sourceFile:a,program:c,span:u}=n,_,f=ki.ChangeTracker.with(n,y=>{_=g0t(y,a,u.start,c.getTypeChecker())});return _?[Xs(uRe,f,_,uRe,x.Fix_all_implicit_this_errors)]:j},fixIds:[uRe],getAllCodeActions:t=>Vl(t,h0t,(n,a)=>{g0t(n,a.file,a.start,t.program.getTypeChecker())})});function g0t(t,n,a,c){let u=la(n,a);if(!GL(u))return;let _=Hm(u,!1,!1);if(!(!i_(_)&&!bu(_))&&!Ta(Hm(_,!1,!1))){let f=$.checkDefined(Kl(_,100,n)),{name:y}=_,g=$.checkDefined(_.body);return bu(_)?y&&Pu.Core.isSymbolReferencedInFile(y,c,n,g)?void 0:(t.delete(n,f),y&&t.delete(n,y),t.insertText(n,g.pos," =>"),[x.Convert_function_expression_0_to_arrow_function,y?y.text:xve]):(t.replaceNode(n,f,W.createToken(87)),t.insertText(n,y.end," = "),t.insertText(n,g.pos," =>"),[x.Convert_function_declaration_0_to_arrow_function,y.text])}}var pRe="fixImportNonExportedMember",y0t=[x.Module_0_declares_1_locally_but_it_is_not_exported.code];gc({errorCodes:y0t,fixIds:[pRe],getCodeActions(t){let{sourceFile:n,span:a,program:c}=t,u=v0t(n,a.start,c);if(u===void 0)return;let _=ki.ChangeTracker.with(t,f=>ymr(f,c,u));return[Xs(pRe,_,[x.Export_0_from_module_1,u.exportName.node.text,u.moduleSpecifier],pRe,x.Export_all_referenced_locals)]},getAllCodeActions(t){let{program:n}=t;return VF(ki.ChangeTracker.with(t,a=>{let c=new Map;WF(t,y0t,u=>{let _=v0t(u.file,u.start,n);if(_===void 0)return;let{exportName:f,node:y,moduleSourceFile:g}=_;if(FSe(g,f.isTypeOnly)===void 0&&kH(y))a.insertExportModifier(g,y);else{let k=c.get(g)||{typeOnlyExports:[],exports:[]};f.isTypeOnly?k.typeOnlyExports.push(f):k.exports.push(f),c.set(g,k)}}),c.forEach((u,_)=>{let f=FSe(_,!0);f&&f.isTypeOnly?(_Re(a,n,_,u.typeOnlyExports,f),_Re(a,n,_,u.exports,FSe(_,!1))):_Re(a,n,_,[...u.exports,...u.typeOnlyExports],f)})}))}});function v0t(t,n,a){var c,u;let _=la(t,n);if(ct(_)){let f=fn(_,fp);if(f===void 0)return;let y=Ic(f.moduleSpecifier)?f.moduleSpecifier:void 0;if(y===void 0)return;let g=(c=a.getResolvedModuleFromModuleSpecifier(y,t))==null?void 0:c.resolvedModule;if(g===void 0)return;let k=a.getSourceFile(g.resolvedFileName);if(k===void 0||rM(a,k))return;let T=k.symbol,C=(u=Ci(T.valueDeclaration,vb))==null?void 0:u.locals;if(C===void 0)return;let O=C.get(_.escapedText);if(O===void 0)return;let F=vmr(O);return F===void 0?void 0:{exportName:{node:_,isTypeOnly:aF(F)},node:F,moduleSourceFile:k,moduleSpecifier:y.text}}}function ymr(t,n,{exportName:a,node:c,moduleSourceFile:u}){let _=FSe(u,a.isTypeOnly);_?S0t(t,n,u,_,[a]):kH(c)?t.insertExportModifier(u,c):b0t(t,n,u,[a])}function _Re(t,n,a,c,u){te(c)&&(u?S0t(t,n,a,u,c):b0t(t,n,a,c))}function FSe(t,n){let a=c=>P_(c)&&(n&&c.isTypeOnly||!c.isTypeOnly);return Ut(t.statements,a)}function S0t(t,n,a,c,u){let _=c.exportClause&&k0(c.exportClause)?c.exportClause.elements:W.createNodeArray([]),f=!c.isTypeOnly&&!!(a1(n.getCompilerOptions())||wt(_,y=>y.isTypeOnly));t.replaceNode(a,c,W.updateExportDeclaration(c,c.modifiers,c.isTypeOnly,W.createNamedExports(W.createNodeArray([..._,...x0t(u,f)],_.hasTrailingComma)),c.moduleSpecifier,c.attributes))}function b0t(t,n,a,c){t.insertNodeAtEndOfScope(a,a,W.createExportDeclaration(void 0,!1,W.createNamedExports(x0t(c,a1(n.getCompilerOptions()))),void 0,void 0))}function x0t(t,n){return W.createNodeArray(Cr(t,a=>W.createExportSpecifier(n&&a.isTypeOnly,void 0,a.node)))}function vmr(t){if(t.valueDeclaration===void 0)return pi(t.declarations);let n=t.valueDeclaration,a=Oo(n)?Ci(n.parent.parent,h_):void 0;return a&&te(a.declarationList.declarations)===1?a:n}var dRe="fixIncorrectNamedTupleSyntax",Smr=[x.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,x.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];gc({errorCodes:Smr,getCodeActions:function(n){let{sourceFile:a,span:c}=n,u=bmr(a,c.start),_=ki.ChangeTracker.with(n,f=>xmr(f,a,u));return[Xs(dRe,_,x.Move_labeled_tuple_element_modifiers_to_labels,dRe,x.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[dRe]});function bmr(t,n){let a=la(t,n);return fn(a,c=>c.kind===203)}function xmr(t,n,a){if(!a)return;let c=a.type,u=!1,_=!1;for(;c.kind===191||c.kind===192||c.kind===197;)c.kind===191?u=!0:c.kind===192&&(_=!0),c=c.type;let f=W.updateNamedTupleMember(a,a.dotDotDotToken||(_?W.createToken(26):void 0),a.name,a.questionToken||(u?W.createToken(58):void 0),c);f!==a&&t.replaceNode(n,a,f)}var T0t="fixSpelling",E0t=[x.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,x.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,x.Cannot_find_name_0_Did_you_mean_1.code,x.Could_not_find_name_0_Did_you_mean_1.code,x.Cannot_find_namespace_0_Did_you_mean_1.code,x.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,x.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,x._0_has_no_exported_member_named_1_Did_you_mean_2.code,x.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,x.No_overload_matches_this_call.code,x.Type_0_is_not_assignable_to_type_1.code];gc({errorCodes:E0t,getCodeActions(t){let{sourceFile:n,errorCode:a}=t,c=k0t(n,t.span.start,t,a);if(!c)return;let{node:u,suggestedSymbol:_}=c,f=$c(t.host.getCompilationSettings()),y=ki.ChangeTracker.with(t,g=>C0t(g,n,u,_,f));return[Xs("spelling",y,[x.Change_spelling_to_0,vp(_)],T0t,x.Fix_all_detected_spelling_errors)]},fixIds:[T0t],getAllCodeActions:t=>Vl(t,E0t,(n,a)=>{let c=k0t(a.file,a.start,t,a.code),u=$c(t.host.getCompilationSettings());c&&C0t(n,t.sourceFile,c.node,c.suggestedSymbol,u)})});function k0t(t,n,a,c){let u=la(t,n),_=u.parent;if((c===x.No_overload_matches_this_call.code||c===x.Type_0_is_not_assignable_to_type_1.code)&&!NS(_))return;let f=a.program.getTypeChecker(),y;if(no(_)&&_.name===u){$.assert(Dx(u),"Expected an identifier for spelling (property access)");let g=f.getTypeAtLocation(_.expression);_.flags&64&&(g=f.getNonNullableType(g)),y=f.getSuggestedSymbolForNonexistentProperty(u,g)}else if(wi(_)&&_.operatorToken.kind===103&&_.left===u&&Aa(u)){let g=f.getTypeAtLocation(_.right);y=f.getSuggestedSymbolForNonexistentProperty(u,g)}else if(dh(_)&&_.right===u){let g=f.getSymbolAtLocation(_.left);g&&g.flags&1536&&(y=f.getSuggestedSymbolForNonexistentModule(_.right,g))}else if(Xm(_)&&_.name===u){$.assertNode(u,ct,"Expected an identifier for spelling (import)");let g=fn(u,fp),k=Emr(a,g,t);k&&k.symbol&&(y=f.getSuggestedSymbolForNonexistentModule(u,k.symbol))}else if(NS(_)&&_.name===u){$.assertNode(u,ct,"Expected an identifier for JSX attribute");let g=fn(u,Em),k=f.getContextualTypeForArgumentAtIndex(g,0);y=f.getSuggestedSymbolForNonexistentJSXAttribute(u,k)}else if(Wre(_)&&J_(_)&&_.name===u){let g=fn(u,Co),k=g?vv(g):void 0,T=k?f.getTypeAtLocation(k):void 0;T&&(y=f.getSuggestedSymbolForNonexistentClassMember(Sp(u),T))}else{let g=x3(u),k=Sp(u);$.assert(k!==void 0,"name should be defined"),y=f.getSuggestedSymbolForNonexistentSymbol(u,k,Tmr(g))}return y===void 0?void 0:{node:u,suggestedSymbol:y}}function C0t(t,n,a,c,u){let _=vp(c);if(!Jd(_,u)&&no(a.parent)){let f=c.valueDeclaration;f&&Vp(f)&&Aa(f.name)?t.replaceNode(n,a,W.createIdentifier(_)):t.replaceNode(n,a.parent,W.createElementAccessExpression(a.parent.expression,W.createStringLiteral(_)))}else t.replaceNode(n,a,W.createIdentifier(_))}function Tmr(t){let n=0;return t&4&&(n|=1920),t&2&&(n|=788968),t&1&&(n|=111551),n}function Emr(t,n,a){var c;if(!n||!Sl(n.moduleSpecifier))return;let u=(c=t.program.getResolvedModuleFromModuleSpecifier(n.moduleSpecifier,a))==null?void 0:c.resolvedModule;if(u)return t.program.getSourceFile(u.resolvedFileName)}var fRe="returnValueCorrect",mRe="fixAddReturnStatement",hRe="fixRemoveBracesFromArrowFunctionBody",gRe="fixWrapTheBlockWithParen",D0t=[x.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,x.Type_0_is_not_assignable_to_type_1.code,x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];gc({errorCodes:D0t,fixIds:[mRe,hRe,gRe],getCodeActions:function(n){let{program:a,sourceFile:c,span:{start:u},errorCode:_}=n,f=w0t(a.getTypeChecker(),c,u,_);if(f)return f.kind===0?jt([Cmr(n,f.expression,f.statement)],Iu(f.declaration)?Dmr(n,f.declaration,f.expression,f.commentSource):void 0):[Amr(n,f.declaration,f.expression)]},getAllCodeActions:t=>Vl(t,D0t,(n,a)=>{let c=w0t(t.program.getTypeChecker(),a.file,a.start,a.code);if(c)switch(t.fixId){case mRe:I0t(n,a.file,c.expression,c.statement);break;case hRe:if(!Iu(c.declaration))return;P0t(n,a.file,c.declaration,c.expression,c.commentSource,!1);break;case gRe:if(!Iu(c.declaration))return;N0t(n,a.file,c.declaration,c.expression);break;default:$.fail(JSON.stringify(t.fixId))}})});function A0t(t,n,a){let c=t.createSymbol(4,n.escapedText);c.links.type=t.getTypeAtLocation(a);let u=ic([c]);return t.createAnonymousType(void 0,u,[],[],[])}function yRe(t,n,a,c){if(!n.body||!Vs(n.body)||te(n.body.statements)!==1)return;let u=To(n.body.statements);if(af(u)&&vRe(t,n,t.getTypeAtLocation(u.expression),a,c))return{declaration:n,kind:0,expression:u.expression,statement:u,commentSource:u.expression};if(bC(u)&&af(u.statement)){let _=W.createObjectLiteralExpression([W.createPropertyAssignment(u.label,u.statement.expression)]),f=A0t(t,u.label,u.statement.expression);if(vRe(t,n,f,a,c))return Iu(n)?{declaration:n,kind:1,expression:_,statement:u,commentSource:u.statement.expression}:{declaration:n,kind:0,expression:_,statement:u,commentSource:u.statement.expression}}else if(Vs(u)&&te(u.statements)===1){let _=To(u.statements);if(bC(_)&&af(_.statement)){let f=W.createObjectLiteralExpression([W.createPropertyAssignment(_.label,_.statement.expression)]),y=A0t(t,_.label,_.statement.expression);if(vRe(t,n,y,a,c))return{declaration:n,kind:0,expression:f,statement:u,commentSource:_}}}}function vRe(t,n,a,c,u){if(u){let _=t.getSignatureFromDeclaration(n);if(_){ko(n,1024)&&(a=t.createPromiseType(a));let f=t.createSignature(n,_.typeParameters,_.thisParameter,_.parameters,a,void 0,_.minArgumentCount,_.flags);a=t.createAnonymousType(void 0,ic(),[f],[],[])}else a=t.getAnyType()}return t.isTypeAssignableTo(a,c)}function w0t(t,n,a,c){let u=la(n,a);if(!u.parent)return;let _=fn(u.parent,lu);switch(c){case x.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!_||!_.body||!_.type||!zh(_.type,u)?void 0:yRe(t,_,t.getTypeFromTypeNode(_.type),!1);case x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!_||!Js(_.parent)||!_.body)return;let f=_.parent.arguments.indexOf(_);if(f===-1)return;let y=t.getContextualTypeForArgumentAtIndex(_.parent,f);return y?yRe(t,_,y,!0):void 0;case x.Type_0_is_not_assignable_to_type_1.code:if(!Eb(u)||!_U(u.parent)&&!NS(u.parent))return;let g=kmr(u.parent);return!g||!lu(g)||!g.body?void 0:yRe(t,g,t.getTypeAtLocation(u.parent),!0)}}function kmr(t){switch(t.kind){case 261:case 170:case 209:case 173:case 304:return t.initializer;case 292:return t.initializer&&(SL(t.initializer)?t.initializer.expression:void 0);case 305:case 172:case 307:case 349:case 342:return}}function I0t(t,n,a,c){$g(a);let u=eQ(n);t.replaceNode(n,c,W.createReturnStatement(a),{leadingTriviaOption:ki.LeadingTriviaOption.Exclude,trailingTriviaOption:ki.TrailingTriviaOption.Exclude,suffix:u?";":void 0})}function P0t(t,n,a,c,u,_){let f=_||Zoe(c)?W.createParenthesizedExpression(c):c;$g(u),E3(u,f),t.replaceNode(n,a.body,f)}function N0t(t,n,a,c){t.replaceNode(n,a.body,W.createParenthesizedExpression(c))}function Cmr(t,n,a){let c=ki.ChangeTracker.with(t,u=>I0t(u,t.sourceFile,n,a));return Xs(fRe,c,x.Add_a_return_statement,mRe,x.Add_all_missing_return_statement)}function Dmr(t,n,a,c){let u=ki.ChangeTracker.with(t,_=>P0t(_,t.sourceFile,n,a,c,!1));return Xs(fRe,u,x.Remove_braces_from_arrow_function_body,hRe,x.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function Amr(t,n,a){let c=ki.ChangeTracker.with(t,u=>N0t(u,t.sourceFile,n,a));return Xs(fRe,c,x.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,gRe,x.Wrap_all_object_literal_with_parentheses)}var JA="fixMissingMember",RSe="fixMissingProperties",LSe="fixMissingAttributes",MSe="fixMissingFunctionDeclaration",O0t=[x.Property_0_does_not_exist_on_type_1.code,x.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,x.Property_0_is_missing_in_type_1_but_required_in_type_2.code,x.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,x.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,x.Cannot_find_name_0.code,x.Type_0_does_not_satisfy_the_expected_type_1.code];gc({errorCodes:O0t,getCodeActions(t){let n=t.program.getTypeChecker(),a=F0t(t.sourceFile,t.span.start,t.errorCode,n,t.program);if(a){if(a.kind===3){let c=ki.ChangeTracker.with(t,u=>J0t(u,t,a));return[Xs(RSe,c,x.Add_missing_properties,RSe,x.Add_all_missing_properties)]}if(a.kind===4){let c=ki.ChangeTracker.with(t,u=>q0t(u,t,a));return[Xs(LSe,c,x.Add_missing_attributes,LSe,x.Add_all_missing_attributes)]}if(a.kind===2||a.kind===5){let c=ki.ChangeTracker.with(t,u=>z0t(u,t,a));return[Xs(MSe,c,[x.Add_missing_function_declaration_0,a.token.text],MSe,x.Add_all_missing_function_declarations)]}if(a.kind===1){let c=ki.ChangeTracker.with(t,u=>U0t(u,t.program.getTypeChecker(),a));return[Xs(JA,c,[x.Add_missing_enum_member_0,a.token.text],JA,x.Add_all_missing_members)]}return go(Omr(t,a),wmr(t,a))}},fixIds:[JA,MSe,RSe,LSe],getAllCodeActions:t=>{let{program:n,fixId:a}=t,c=n.getTypeChecker(),u=new Set,_=new Map;return VF(ki.ChangeTracker.with(t,f=>{WF(t,O0t,y=>{let g=F0t(y.file,y.start,y.code,c,t.program);if(g===void 0)return;let k=hl(g.parentDeclaration)+"#"+(g.kind===3?g.identifier||hl(g.token):g.token.text);if(o1(u,k)){if(a===MSe&&(g.kind===2||g.kind===5))z0t(f,t,g);else if(a===RSe&&g.kind===3)J0t(f,t,g);else if(a===LSe&&g.kind===4)q0t(f,t,g);else if(g.kind===1&&U0t(f,c,g),g.kind===0){let{parentDeclaration:T,token:C}=g,O=hs(_,T,()=>[]);O.some(F=>F.token.text===C.text)||O.push(g)}}}),_.forEach((y,g)=>{let k=fh(g)?void 0:jmr(g,c);for(let T of y){if(k?.some(G=>{let Z=_.get(G);return!!Z&&Z.some(({token:Q})=>Q.text===T.token.text)}))continue;let{parentDeclaration:C,declSourceFile:O,modifierFlags:F,token:M,call:U,isJSFile:J}=T;if(U&&!Aa(M))$0t(t,f,U,M,F&256,C,O);else if(J&&!Af(C)&&!fh(C))R0t(f,O,C,M,!!(F&256));else{let G=M0t(c,C,M);j0t(f,O,C,M.text,G,F&256)}}})}))}});function F0t(t,n,a,c,u){var _,f;let y=la(t,n),g=y.parent;if(a===x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(y.kind===19&&Lc(g)&&Js(g.parent)))return;let M=hr(g.parent.arguments,Z=>Z===g);if(M<0)return;let U=c.getResolvedSignature(g.parent);if(!(U&&U.declaration&&U.parameters[M]))return;let J=U.parameters[M].valueDeclaration;if(!(J&&wa(J)&&ct(J.name)))return;let G=so(c.getUnmatchedProperties(c.getTypeAtLocation(g),c.getParameterType(U,M).getNonNullableType(),!1,!1));return te(G)?{kind:3,token:J.name,identifier:J.name.text,properties:G,parentDeclaration:g}:void 0}if(y.kind===19||yL(g)||gy(g)){let M=(yL(g)||gy(g))&&g.expression?g.expression:g;if(Lc(M)){let U=yL(g)?c.getTypeFromTypeNode(g.type):c.getContextualType(M)||c.getTypeAtLocation(M),J=so(c.getUnmatchedProperties(c.getTypeAtLocation(g),U.getNonNullableType(),!1,!1));return te(J)?{kind:3,token:g,identifier:void 0,properties:J,parentDeclaration:M,indentation:gy(M.parent)||BH(M.parent)?0:void 0}:void 0}}if(!Dx(y))return;if(ct(y)&&lE(g)&&g.initializer&&Lc(g.initializer)){let M=(_=c.getContextualType(y)||c.getTypeAtLocation(y))==null?void 0:_.getNonNullableType(),U=so(c.getUnmatchedProperties(c.getTypeAtLocation(g.initializer),M,!1,!1));return te(U)?{kind:3,token:y,identifier:y.text,properties:U,parentDeclaration:g.initializer}:void 0}if(ct(y)&&Em(y.parent)){let M=$c(u.getCompilerOptions()),U=Rmr(c,M,y.parent);return te(U)?{kind:4,token:y,attributes:U,parentDeclaration:y.parent}:void 0}if(ct(y)){let M=(f=c.getContextualType(y))==null?void 0:f.getNonNullableType();if(M&&ro(M)&16){let U=pi(c.getSignaturesOfType(M,0));return U===void 0?void 0:{kind:5,token:y,signature:U,sourceFile:t,parentDeclaration:V0t(y)}}if(Js(g)&&g.expression===y)return{kind:2,token:y,call:g,sourceFile:t,modifierFlags:0,parentDeclaration:V0t(y)}}if(!no(g))return;let k=nve(c.getTypeAtLocation(g.expression)),T=k.symbol;if(!T||!T.declarations)return;if(ct(y)&&Js(g.parent)){let M=wt(T.declarations,I_),U=M?.getSourceFile();if(M&&U&&!rM(u,U))return{kind:2,token:y,call:g.parent,sourceFile:U,modifierFlags:32,parentDeclaration:M};let J=wt(T.declarations,Ta);if(t.commonJsModuleIndicator)return;if(J&&!rM(u,J))return{kind:2,token:y,call:g.parent,sourceFile:J,modifierFlags:32,parentDeclaration:J}}let C=wt(T.declarations,Co);if(!C&&Aa(y))return;let O=C||wt(T.declarations,M=>Af(M)||fh(M));if(O&&!rM(u,O.getSourceFile())){let M=!fh(O)&&(k.target||k)!==c.getDeclaredTypeOfSymbol(T);if(M&&(Aa(y)||Af(O)))return;let U=O.getSourceFile(),J=fh(O)?0:(M?256:0)|(Ive(y.text)?2:0),G=ph(U),Z=Ci(g.parent,Js);return{kind:0,token:y,call:Z,modifierFlags:J,parentDeclaration:O,declSourceFile:U,isJSFile:G}}let F=wt(T.declarations,CA);if(F&&!(k.flags&1056)&&!Aa(y)&&!rM(u,F.getSourceFile()))return{kind:1,token:y,parentDeclaration:F}}function wmr(t,n){return n.isJSFile?Z2(Imr(t,n)):Pmr(t,n)}function Imr(t,{parentDeclaration:n,declSourceFile:a,modifierFlags:c,token:u}){if(Af(n)||fh(n))return;let _=ki.ChangeTracker.with(t,y=>R0t(y,a,n,u,!!(c&256)));if(_.length===0)return;let f=c&256?x.Initialize_static_property_0:Aa(u)?x.Declare_a_private_field_named_0:x.Initialize_property_0_in_the_constructor;return Xs(JA,_,[f,u.text],JA,x.Add_all_missing_members)}function R0t(t,n,a,c,u){let _=c.text;if(u){if(a.kind===232)return;let f=a.name.getText(),y=L0t(W.createIdentifier(f),_);t.insertNodeAfter(n,a,y)}else if(Aa(c)){let f=W.createPropertyDeclaration(void 0,_,void 0,void 0,void 0),y=B0t(a);y?t.insertNodeAfter(n,y,f):t.insertMemberAtStart(n,a,f)}else{let f=Rx(a);if(!f)return;let y=L0t(W.createThis(),_);t.insertNodeAtConstructorEnd(n,f,y)}}function L0t(t,n){return W.createExpressionStatement(W.createAssignment(W.createPropertyAccessExpression(t,n),HF()))}function Pmr(t,{parentDeclaration:n,declSourceFile:a,modifierFlags:c,token:u}){let _=u.text,f=c&256,y=M0t(t.program.getTypeChecker(),n,u),g=T=>ki.ChangeTracker.with(t,C=>j0t(C,a,n,_,y,T)),k=[Xs(JA,g(c&256),[f?x.Declare_static_property_0:x.Declare_property_0,_],JA,x.Add_all_missing_members)];return f||Aa(u)||(c&2&&k.unshift(wv(JA,g(2),[x.Declare_private_property_0,_])),k.push(Nmr(t,a,n,u.text,y))),k}function M0t(t,n,a){let c;if(a.parent.parent.kind===227){let u=a.parent.parent,_=a.parent===u.left?u.right:u.left,f=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(_)));c=t.typeToTypeNode(f,n,1,8)}else{let u=t.getContextualType(a.parent);c=u?t.typeToTypeNode(u,void 0,1,8):void 0}return c||W.createKeywordTypeNode(133)}function j0t(t,n,a,c,u,_){let f=_?W.createNodeArray(W.createModifiersFromModifierFlags(_)):void 0,y=Co(a)?W.createPropertyDeclaration(f,c,void 0,u,void 0):W.createPropertySignature(void 0,c,void 0,u),g=B0t(a);g?t.insertNodeAfter(n,g,y):t.insertMemberAtStart(n,a,y)}function B0t(t){let n;for(let a of t.members){if(!ps(a))break;n=a}return n}function Nmr(t,n,a,c,u){let _=W.createKeywordTypeNode(154),f=W.createParameterDeclaration(void 0,void 0,"x",void 0,_,void 0),y=W.createIndexSignature(void 0,[f],u),g=ki.ChangeTracker.with(t,k=>k.insertMemberAtStart(n,a,y));return wv(JA,g,[x.Add_index_signature_for_property_0,c])}function Omr(t,n){let{parentDeclaration:a,declSourceFile:c,modifierFlags:u,token:_,call:f}=n;if(f===void 0)return;let y=_.text,g=T=>ki.ChangeTracker.with(t,C=>$0t(t,C,f,_,T,a,c)),k=[Xs(JA,g(u&256),[u&256?x.Declare_static_method_0:x.Declare_method_0,y],JA,x.Add_all_missing_members)];return u&2&&k.unshift(wv(JA,g(2),[x.Declare_private_method_0,y])),k}function $0t(t,n,a,c,u,_,f){let y=BP(f,t.program,t.preferences,t.host),g=Co(_)?175:174,k=KRe(g,t,y,a,c,u,_),T=Lmr(_,a);T?n.insertNodeAfter(f,T,k):n.insertMemberAtStart(f,_,k),y.writeFixes(n)}function U0t(t,n,{token:a,parentDeclaration:c}){let u=Pt(c.members,g=>{let k=n.getTypeAtLocation(g);return!!(k&&k.flags&402653316)}),_=c.getSourceFile(),f=W.createEnumMember(a,u?W.createStringLiteral(a.text):void 0),y=Yr(c.members);y?t.insertNodeInListAfter(_,y,f,c.members):t.insertMemberAtStart(_,c,f)}function z0t(t,n,a){let c=Vg(n.sourceFile,n.preferences),u=BP(n.sourceFile,n.program,n.preferences,n.host),_=a.kind===2?KRe(263,n,u,a.call,Zi(a.token),a.modifierFlags,a.parentDeclaration):GSe(263,n,c,a.signature,Mae(x.Function_not_implemented.message,c),a.token,void 0,void 0,void 0,u);_===void 0&&$.fail("fixMissingFunctionDeclaration codefix got unexpected error."),gy(a.parentDeclaration)?t.insertNodeBefore(a.sourceFile,a.parentDeclaration,_,!0):t.insertNodeAtEndOfScope(a.sourceFile,a.parentDeclaration,_),u.writeFixes(t)}function q0t(t,n,a){let c=BP(n.sourceFile,n.program,n.preferences,n.host),u=Vg(n.sourceFile,n.preferences),_=n.program.getTypeChecker(),f=a.parentDeclaration.attributes,y=Pt(f.properties,TF),g=Cr(a.attributes,C=>{let O=jSe(n,_,c,u,_.getTypeOfSymbol(C),a.parentDeclaration),F=W.createIdentifier(C.name),M=W.createJsxAttribute(F,W.createJsxExpression(void 0,O));return xl(F,M),M}),k=W.createJsxAttributes(y?[...g,...f.properties]:[...f.properties,...g]),T={prefix:f.pos===f.end?" ":void 0};t.replaceNode(n.sourceFile,f,k,T),c.writeFixes(t)}function J0t(t,n,a){let c=BP(n.sourceFile,n.program,n.preferences,n.host),u=Vg(n.sourceFile,n.preferences),_=$c(n.program.getCompilerOptions()),f=n.program.getTypeChecker(),y=Cr(a.properties,k=>{let T=jSe(n,f,c,u,f.getTypeOfSymbol(k),a.parentDeclaration);return W.createPropertyAssignment(Mmr(k,_,u,f),T)}),g={leadingTriviaOption:ki.LeadingTriviaOption.Exclude,trailingTriviaOption:ki.TrailingTriviaOption.Exclude,indentation:a.indentation};t.replaceNode(n.sourceFile,a.parentDeclaration,W.createObjectLiteralExpression([...a.parentDeclaration.properties,...y],!0),g),c.writeFixes(t)}function jSe(t,n,a,c,u,_){if(u.flags&3)return HF();if(u.flags&134217732)return W.createStringLiteral("",c===0);if(u.flags&8)return W.createNumericLiteral(0);if(u.flags&64)return W.createBigIntLiteral("0n");if(u.flags&16)return W.createFalse();if(u.flags&1056){let f=u.symbol.exports?ia(u.symbol.exports.values()):u.symbol,y=u.symbol.parent&&u.symbol.parent.flags&256?u.symbol.parent:u.symbol,g=n.symbolToExpression(y,111551,void 0,64);return f===void 0||g===void 0?W.createNumericLiteral(0):W.createPropertyAccessExpression(g,n.symbolToString(f))}if(u.flags&256)return W.createNumericLiteral(u.value);if(u.flags&2048)return W.createBigIntLiteral(u.value);if(u.flags&128)return W.createStringLiteral(u.value,c===0);if(u.flags&512)return u===n.getFalseType()||u===n.getFalseType(!0)?W.createFalse():W.createTrue();if(u.flags&65536)return W.createNull();if(u.flags&1048576)return Je(u.types,y=>jSe(t,n,a,c,y,_))??HF();if(n.isArrayLikeType(u))return W.createArrayLiteralExpression();if(Fmr(u)){let f=Cr(n.getPropertiesOfType(u),y=>{let g=jSe(t,n,a,c,n.getTypeOfSymbol(y),_);return W.createPropertyAssignment(y.name,g)});return W.createObjectLiteralExpression(f,!0)}if(ro(u)&16){if(wt(u.symbol.declarations||j,jf(Cb,G1,Ep))===void 0)return HF();let y=n.getSignaturesOfType(u,0);return y===void 0?HF():GSe(219,t,c,y[0],Mae(x.Function_not_implemented.message,c),void 0,void 0,void 0,_,a)??HF()}if(ro(u)&1){let f=JT(u.symbol);if(f===void 0||pP(f))return HF();let y=Rx(f);return y&&te(y.parameters)?HF():W.createNewExpression(W.createIdentifier(u.symbol.name),void 0,void 0)}return HF()}function HF(){return W.createIdentifier("undefined")}function Fmr(t){return t.flags&524288&&(ro(t)&128||t.symbol&&Ci(to(t.symbol.declarations),fh))}function Rmr(t,n,a){let c=t.getContextualType(a.attributes);if(c===void 0)return j;let u=c.getProperties();if(!te(u))return j;let _=new Set;for(let f of a.attributes.properties)if(NS(f)&&_.add(YU(f.name)),TF(f)){let y=t.getTypeAtLocation(f.expression);for(let g of y.getProperties())_.add(g.escapedName)}return yr(u,f=>Jd(f.name,n,1)&&!(f.flags&16777216||Fp(f)&48||_.has(f.escapedName)))}function Lmr(t,n){if(fh(t))return;let a=fn(n,c=>Ep(c)||kp(c));return a&&a.parent===t?a:void 0}function Mmr(t,n,a,c){if(wx(t)){let u=c.symbolToNode(t,111551,void 0,void 0,1);if(u&&dc(u))return u}return EH(t.name,n,a===0,!1,!1)}function V0t(t){if(fn(t,SL)){let n=fn(t.parent,gy);if(n)return n}return Pn(t)}function jmr(t,n){let a=[];for(;t;){let c=aP(t),u=c&&n.getSymbolAtLocation(c.expression);if(!u)break;let _=u.flags&2097152?n.getAliasedSymbol(u):u,f=_.declarations&&wt(_.declarations,Co);if(!f)break;a.push(f),t=f}return a}var SRe="addMissingNewOperator",W0t=[x.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];gc({errorCodes:W0t,getCodeActions(t){let{sourceFile:n,span:a}=t,c=ki.ChangeTracker.with(t,u=>G0t(u,n,a));return[Xs(SRe,c,x.Add_missing_new_operator_to_call,SRe,x.Add_missing_new_operator_to_all_calls)]},fixIds:[SRe],getAllCodeActions:t=>Vl(t,W0t,(n,a)=>G0t(n,t.sourceFile,a))});function G0t(t,n,a){let c=Ba(Bmr(n,a),Js),u=W.createNewExpression(c.expression,c.typeArguments,c.arguments);t.replaceNode(n,c,u)}function Bmr(t,n){let a=la(t,n.start),c=Xn(n);for(;a.endUSe(y,t.program,t.preferences,t.host,c,u)),[te(u)>1?x.Add_missing_parameters_to_0:x.Add_missing_parameter_to_0,a],BSe,x.Add_all_missing_parameters)),te(_)&&jt(f,Xs($Se,ki.ChangeTracker.with(t,y=>USe(y,t.program,t.preferences,t.host,c,_)),[te(_)>1?x.Add_optional_parameters_to_0:x.Add_optional_parameter_to_0,a],$Se,x.Add_all_optional_parameters)),f},getAllCodeActions:t=>Vl(t,H0t,(n,a)=>{let c=K0t(t.sourceFile,t.program,a.start);if(c){let{declarations:u,newParameters:_,newOptionalParameters:f}=c;t.fixId===BSe&&USe(n,t.program,t.preferences,t.host,u,_),t.fixId===$Se&&USe(n,t.program,t.preferences,t.host,u,f)}})});function K0t(t,n,a){let c=la(t,a),u=fn(c,Js);if(u===void 0||te(u.arguments)===0)return;let _=n.getTypeChecker(),f=_.getTypeAtLocation(u.expression),y=yr(f.symbol.declarations,Q0t);if(y===void 0)return;let g=Yr(y);if(g===void 0||g.body===void 0||rM(n,g.getSourceFile()))return;let k=$mr(g);if(k===void 0)return;let T=[],C=[],O=te(g.parameters),F=te(u.arguments);if(O>F)return;let M=[g,...zmr(g,y)];for(let U=0,J=0,G=0;U{let g=Pn(y),k=BP(g,n,a,c);te(y.parameters)?t.replaceNodeRangeWithNodes(g,To(y.parameters),Sn(y.parameters),Z0t(k,f,y,_),{joiner:", ",indentation:0,leadingTriviaOption:ki.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ki.TrailingTriviaOption.Include}):X(Z0t(k,f,y,_),(T,C)=>{te(y.parameters)===0&&C===0?t.insertNodeAt(g,y.parameters.end,T):t.insertNodeAtEndOfList(g,y.parameters,T)}),k.writeFixes(t)})}function Q0t(t){switch(t.kind){case 263:case 219:case 175:case 220:return!0;default:return!1}}function Z0t(t,n,a,c){let u=Cr(a.parameters,_=>W.createParameterDeclaration(_.modifiers,_.dotDotDotToken,_.name,_.questionToken,_.type,_.initializer));for(let{pos:_,declaration:f}of c){let y=_>0?u[_-1]:void 0;u.splice(_,0,W.updateParameterDeclaration(f,f.modifiers,f.dotDotDotToken,f.name,y&&y.questionToken?W.createToken(58):f.questionToken,Vmr(t,f.type,n),f.initializer))}return u}function zmr(t,n){let a=[];for(let c of n)if(qmr(c)){if(te(c.parameters)===te(t.parameters)){a.push(c);continue}if(te(c.parameters)>te(t.parameters))return[]}return a}function qmr(t){return Q0t(t)&&t.body===void 0}function X0t(t,n,a){return W.createParameterDeclaration(void 0,void 0,t,a,n,void 0)}function Jmr(t,n){return te(t)&&Pt(t,a=>nVl(t,t1t,(n,a,c)=>{let u=n1t(a.file,a.start);if(u!==void 0)if(t.fixId===bRe){let _=i1t(u,t.host,a.code);_&&c.push(r1t(a.file.fileName,_))}else $.fail(`Bad fixId: ${t.fixId}`)})});function r1t(t,n){return{type:"install package",file:t,packageName:n}}function n1t(t,n){let a=Ci(la(t,n),Ic);if(!a)return;let c=a.text,{packageName:u}=wie(c);return vt(u)?void 0:u}function i1t(t,n,a){var c;return a===Y0t?pL.has(t)?"@types/node":void 0:(c=n.isKnownTypesPackageName)!=null&&c.call(n,t)?Pie(t):void 0}var o1t=[x.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,x.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,x.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,x.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,x.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,x.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],xRe="fixClassDoesntImplementInheritedAbstractMember";gc({errorCodes:o1t,getCodeActions:function(n){let{sourceFile:a,span:c}=n,u=ki.ChangeTracker.with(n,_=>s1t(a1t(a,c.start),a,n,_,n.preferences));return u.length===0?void 0:[Xs(xRe,u,x.Implement_inherited_abstract_class,xRe,x.Implement_all_inherited_abstract_classes)]},fixIds:[xRe],getAllCodeActions:function(n){let a=new Set;return Vl(n,o1t,(c,u)=>{let _=a1t(u.file,u.start);o1(a,hl(_))&&s1t(_,n.sourceFile,n,c,n.preferences)})}});function a1t(t,n){let a=la(t,n);return Ba(a.parent,Co)}function s1t(t,n,a,c,u){let _=vv(t),f=a.program.getTypeChecker(),y=f.getTypeAtLocation(_),g=f.getPropertiesOfType(y).filter(Gmr),k=BP(n,a.program,u,a.host);HRe(t,g,n,a,u,k,T=>c.insertMemberAtStart(n,t,T)),k.writeFixes(c)}function Gmr(t){let n=_E(To(t.getDeclarations()));return!(n&2)&&!!(n&64)}var TRe="classSuperMustPrecedeThisAccess",c1t=[x.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];gc({errorCodes:c1t,getCodeActions(t){let{sourceFile:n,span:a}=t,c=u1t(n,a.start);if(!c)return;let{constructor:u,superCall:_}=c,f=ki.ChangeTracker.with(t,y=>l1t(y,n,u,_));return[Xs(TRe,f,x.Make_super_call_the_first_statement_in_the_constructor,TRe,x.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[TRe],getAllCodeActions(t){let{sourceFile:n}=t,a=new Set;return Vl(t,c1t,(c,u)=>{let _=u1t(u.file,u.start);if(!_)return;let{constructor:f,superCall:y}=_;o1(a,hl(f.parent))&&l1t(c,n,f,y)})}});function l1t(t,n,a,c){t.insertNodeAtConstructorStart(n,a,c),t.delete(n,c)}function u1t(t,n){let a=la(t,n);if(a.kind!==110)return;let c=My(a),u=p1t(c.body);return u&&!u.expression.arguments.some(_=>no(_)&&_.expression===a)?{constructor:c,superCall:u}:void 0}function p1t(t){return af(t)&&U4(t.expression)?t:Rs(t)?void 0:Is(t,p1t)}var ERe="constructorForDerivedNeedSuperCall",_1t=[x.Constructors_for_derived_classes_must_contain_a_super_call.code];gc({errorCodes:_1t,getCodeActions(t){let{sourceFile:n,span:a}=t,c=d1t(n,a.start),u=ki.ChangeTracker.with(t,_=>f1t(_,n,c));return[Xs(ERe,u,x.Add_missing_super_call,ERe,x.Add_all_missing_super_calls)]},fixIds:[ERe],getAllCodeActions:t=>Vl(t,_1t,(n,a)=>f1t(n,t.sourceFile,d1t(a.file,a.start)))});function d1t(t,n){let a=la(t,n);return $.assert(kp(a.parent),"token should be at the constructor declaration"),a.parent}function f1t(t,n,a){let c=W.createExpressionStatement(W.createCallExpression(W.createSuper(),void 0,j));t.insertNodeAtConstructorStart(n,a,c)}var m1t="fixEnableJsxFlag",h1t=[x.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];gc({errorCodes:h1t,getCodeActions:function(n){let{configFile:a}=n.program.getCompilerOptions();if(a===void 0)return;let c=ki.ChangeTracker.with(n,u=>g1t(u,a));return[wv(m1t,c,x.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[m1t],getAllCodeActions:t=>Vl(t,h1t,n=>{let{configFile:a}=t.program.getCompilerOptions();a!==void 0&&g1t(n,a)})});function g1t(t,n){eLe(t,n,"jsx",W.createStringLiteral("react"))}var kRe="fixNaNEquality",y1t=[x.This_condition_will_always_return_0.code];gc({errorCodes:y1t,getCodeActions(t){let{sourceFile:n,span:a,program:c}=t,u=v1t(c,n,a);if(u===void 0)return;let{suggestion:_,expression:f,arg:y}=u,g=ki.ChangeTracker.with(t,k=>S1t(k,n,y,f));return[Xs(kRe,g,[x.Use_0,_],kRe,x.Use_Number_isNaN_in_all_conditions)]},fixIds:[kRe],getAllCodeActions:t=>Vl(t,y1t,(n,a)=>{let c=v1t(t.program,a.file,Jp(a.start,a.length));c&&S1t(n,a.file,c.arg,c.expression)})});function v1t(t,n,a){let c=wt(t.getSemanticDiagnostics(n),f=>f.start===a.start&&f.length===a.length);if(c===void 0||c.relatedInformation===void 0)return;let u=wt(c.relatedInformation,f=>f.code===x.Did_you_mean_0.code);if(u===void 0||u.file===void 0||u.start===void 0||u.length===void 0)return;let _=rLe(u.file,Jp(u.start,u.length));if(_!==void 0&&Vt(_)&&wi(_.parent))return{suggestion:Hmr(u.messageText),expression:_.parent,arg:_}}function S1t(t,n,a,c){let u=W.createCallExpression(W.createPropertyAccessExpression(W.createIdentifier("Number"),W.createIdentifier("isNaN")),void 0,[a]),_=c.operatorToken.kind;t.replaceNode(n,c,_===38||_===36?W.createPrefixUnaryExpression(54,u):u)}function Hmr(t){let[,n]=RS(t,` +`,0).match(/'(.*)'/)||[];return n}gc({errorCodes:[x.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,x.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,x.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(n){let a=n.program.getCompilerOptions(),{configFile:c}=a;if(c===void 0)return;let u=[],_=Km(a);if(_>=5&&_<99){let k=ki.ChangeTracker.with(n,T=>{eLe(T,c,"module",W.createStringLiteral("esnext"))});u.push(wv("fixModuleOption",k,[x.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}let y=$c(a);if(y<4||y>99){let k=ki.ChangeTracker.with(n,T=>{if(!fU(c))return;let O=[["target",W.createStringLiteral("es2017")]];_===1&&O.push(["module",W.createStringLiteral("commonjs")]),YRe(T,c,O)});u.push(wv("fixTargetOption",k,[x.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return u.length?u:void 0}});var CRe="fixPropertyAssignment",b1t=[x.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];gc({errorCodes:b1t,fixIds:[CRe],getCodeActions(t){let{sourceFile:n,span:a}=t,c=T1t(n,a.start),u=ki.ChangeTracker.with(t,_=>x1t(_,t.sourceFile,c));return[Xs(CRe,u,[x.Change_0_to_1,"=",":"],CRe,[x.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:t=>Vl(t,b1t,(n,a)=>x1t(n,a.file,T1t(a.file,a.start)))});function x1t(t,n,a){t.replaceNode(n,a,W.createPropertyAssignment(a.name,a.objectAssignmentInitializer))}function T1t(t,n){return Ba(la(t,n).parent,im)}var DRe="extendsInterfaceBecomesImplements",E1t=[x.Cannot_extend_an_interface_0_Did_you_mean_implements.code];gc({errorCodes:E1t,getCodeActions(t){let{sourceFile:n}=t,a=k1t(n,t.span.start);if(!a)return;let{extendsToken:c,heritageClauses:u}=a,_=ki.ChangeTracker.with(t,f=>C1t(f,n,c,u));return[Xs(DRe,_,x.Change_extends_to_implements,DRe,x.Change_all_extended_interfaces_to_implements)]},fixIds:[DRe],getAllCodeActions:t=>Vl(t,E1t,(n,a)=>{let c=k1t(a.file,a.start);c&&C1t(n,a.file,c.extendsToken,c.heritageClauses)})});function k1t(t,n){let a=la(t,n),c=Cf(a).heritageClauses,u=c[0].getFirstToken();return u.kind===96?{extendsToken:u,heritageClauses:c}:void 0}function C1t(t,n,a,c){if(t.replaceNode(n,a,W.createToken(119)),c.length===2&&c[0].token===96&&c[1].token===119){let u=c[1].getFirstToken(),_=u.getFullStart();t.replaceRange(n,{pos:_,end:_},W.createToken(28));let f=n.text,y=u.end;for(;yI1t(u,n,a));return[Xs(ARe,c,[x.Add_0_to_unresolved_variable,a.className||"this"],ARe,x.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[ARe],getAllCodeActions:t=>Vl(t,A1t,(n,a)=>{let c=w1t(a.file,a.start,a.code);c&&I1t(n,t.sourceFile,c)})});function w1t(t,n,a){let c=la(t,n);if(ct(c)||Aa(c))return{node:c,className:a===D1t?Cf(c).name.text:void 0}}function I1t(t,n,{node:a,className:c}){$g(a),t.replaceNode(n,a,W.createPropertyAccessExpression(c?W.createIdentifier(c):W.createThis(),a))}var wRe="fixInvalidJsxCharacters_expression",zSe="fixInvalidJsxCharacters_htmlEntity",P1t=[x.Unexpected_token_Did_you_mean_or_gt.code,x.Unexpected_token_Did_you_mean_or_rbrace.code];gc({errorCodes:P1t,fixIds:[wRe,zSe],getCodeActions(t){let{sourceFile:n,preferences:a,span:c}=t,u=ki.ChangeTracker.with(t,f=>IRe(f,a,n,c.start,!1)),_=ki.ChangeTracker.with(t,f=>IRe(f,a,n,c.start,!0));return[Xs(wRe,u,x.Wrap_invalid_character_in_an_expression_container,wRe,x.Wrap_all_invalid_characters_in_an_expression_container),Xs(zSe,_,x.Convert_invalid_character_to_its_html_entity_code,zSe,x.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(t){return Vl(t,P1t,(n,a)=>IRe(n,t.preferences,a.file,a.start,t.fixId===zSe))}});var N1t={">":">","}":"}"};function Kmr(t){return Ho(N1t,t)}function IRe(t,n,a,c,u){let _=a.getText()[c];if(!Kmr(_))return;let f=u?N1t[_]:`{${rq(a,n,_)}}`;t.replaceRangeWithText(a,{pos:c,end:c+1},f)}var qSe="deleteUnmatchedParameter",O1t="renameUnmatchedParameter",F1t=[x.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];gc({fixIds:[qSe,O1t],errorCodes:F1t,getCodeActions:function(n){let{sourceFile:a,span:c}=n,u=[],_=R1t(a,c.start);if(_)return jt(u,Qmr(n,_)),jt(u,Zmr(n,_)),u},getAllCodeActions:function(n){let a=new Map;return VF(ki.ChangeTracker.with(n,c=>{WF(n,F1t,({file:u,start:_})=>{let f=R1t(u,_);f&&a.set(f.signature,jt(a.get(f.signature),f.jsDocParameterTag))}),a.forEach((u,_)=>{if(n.fixId===qSe){let f=new Set(u);c.filterJSDocTags(_.getSourceFile(),_,y=>!f.has(y))}})}))}});function Qmr(t,{name:n,jsDocHost:a,jsDocParameterTag:c}){let u=ki.ChangeTracker.with(t,_=>_.filterJSDocTags(t.sourceFile,a,f=>f!==c));return Xs(qSe,u,[x.Delete_unused_param_tag_0,n.getText(t.sourceFile)],qSe,x.Delete_all_unused_param_tags)}function Zmr(t,{name:n,jsDocHost:a,signature:c,jsDocParameterTag:u}){if(!te(c.parameters))return;let _=t.sourceFile,f=sA(c),y=new Set;for(let C of f)Uy(C)&&ct(C.name)&&y.add(C.name.escapedText);let g=Je(c.parameters,C=>ct(C.name)&&!y.has(C.name.escapedText)?C.name.getText(_):void 0);if(g===void 0)return;let k=W.updateJSDocParameterTag(u,u.tagName,W.createIdentifier(g),u.isBracketed,u.typeExpression,u.isNameFirst,u.comment),T=ki.ChangeTracker.with(t,C=>C.replaceJSDocComment(_,a,Cr(f,O=>O===u?k:O)));return wv(O1t,T,[x.Rename_param_tag_name_0_to_1,n.getText(_),g])}function R1t(t,n){let a=la(t,n);if(a.parent&&Uy(a.parent)&&ct(a.parent.name)){let c=a.parent,u=iP(c),_=dA(c);if(u&&_)return{jsDocHost:u,signature:_,name:a.parent.name,jsDocParameterTag:c}}}var PRe="fixUnreferenceableDecoratorMetadata",Xmr=[x.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code];gc({errorCodes:Xmr,getCodeActions:t=>{let n=Ymr(t.sourceFile,t.program,t.span.start);if(!n)return;let a=ki.ChangeTracker.with(t,_=>n.kind===277&&thr(_,t.sourceFile,n,t.program)),c=ki.ChangeTracker.with(t,_=>ehr(_,t.sourceFile,n,t.program)),u;return a.length&&(u=jt(u,wv(PRe,a,x.Convert_named_imports_to_namespace_import))),c.length&&(u=jt(u,wv(PRe,c,x.Use_import_type))),u},fixIds:[PRe]});function Ymr(t,n,a){let c=Ci(la(t,a),ct);if(!c||c.parent.kind!==184)return;let _=n.getTypeChecker().getSymbolAtLocation(c);return wt(_?.declarations||j,jf(H1,Xm,gd))}function ehr(t,n,a,c){if(a.kind===272){t.insertModifierBefore(n,156,a.name);return}let u=a.kind===274?a:a.parent.parent;if(u.name&&u.namedBindings)return;let _=c.getTypeChecker();R6e(u,y=>{if($f(y.symbol,_).flags&111551)return!0})||t.insertModifierBefore(n,156,u)}function thr(t,n,a,c){qF.doChangeNamedToNamespaceOrDefault(n,c,t,a.parent)}var Lae="unusedIdentifier",NRe="unusedIdentifier_prefix",ORe="unusedIdentifier_delete",JSe="unusedIdentifier_deleteImports",FRe="unusedIdentifier_infer",L1t=[x._0_is_declared_but_its_value_is_never_read.code,x._0_is_declared_but_never_used.code,x.Property_0_is_declared_but_its_value_is_never_read.code,x.All_imports_in_import_declaration_are_unused.code,x.All_destructured_elements_are_unused.code,x.All_variables_are_unused.code,x.All_type_parameters_are_unused.code];gc({errorCodes:L1t,getCodeActions(t){let{errorCode:n,sourceFile:a,program:c,cancellationToken:u}=t,_=c.getTypeChecker(),f=c.getSourceFiles(),y=la(a,t.span.start);if(c1(y))return[_q(ki.ChangeTracker.with(t,C=>C.delete(a,y)),x.Remove_template_tag)];if(y.kind===30){let C=ki.ChangeTracker.with(t,O=>j1t(O,a,y));return[_q(C,x.Remove_type_parameters)]}let g=B1t(y);if(g){let C=ki.ChangeTracker.with(t,O=>O.delete(a,g));return[Xs(Lae,C,[x.Remove_import_from_0,S4e(g)],JSe,x.Delete_all_unused_imports)]}else if(RRe(y)){let C=ki.ChangeTracker.with(t,O=>VSe(a,y,O,_,f,c,u,!1));if(C.length)return[Xs(Lae,C,[x.Remove_unused_declaration_for_Colon_0,y.getText(a)],JSe,x.Delete_all_unused_imports)]}if($y(y.parent)||xE(y.parent)){if(wa(y.parent.parent)){let C=y.parent.elements,O=[C.length>1?x.Remove_unused_declarations_for_Colon_0:x.Remove_unused_declaration_for_Colon_0,Cr(C,F=>F.getText(a)).join(", ")];return[_q(ki.ChangeTracker.with(t,F=>rhr(F,a,y.parent)),O)]}return[_q(ki.ChangeTracker.with(t,C=>nhr(t,C,a,y.parent)),x.Remove_unused_destructuring_declaration)]}if($1t(a,y))return[_q(ki.ChangeTracker.with(t,C=>U1t(C,a,y.parent)),x.Remove_variable_statement)];if(ct(y)&&i_(y.parent))return[_q(ki.ChangeTracker.with(t,C=>V1t(C,a,y.parent)),[x.Remove_unused_declaration_for_Colon_0,y.getText(a)])];let k=[];if(y.kind===140){let C=ki.ChangeTracker.with(t,F=>M1t(F,a,y)),O=Ba(y.parent,n3).typeParameter.name.text;k.push(Xs(Lae,C,[x.Replace_infer_0_with_unknown,O],FRe,x.Replace_all_unused_infer_with_unknown))}else{let C=ki.ChangeTracker.with(t,O=>VSe(a,y,O,_,f,c,u,!1));if(C.length){let O=dc(y.parent)?y.parent:y;k.push(_q(C,[x.Remove_unused_declaration_for_Colon_0,O.getText(a)]))}}let T=ki.ChangeTracker.with(t,C=>z1t(C,n,a,y));return T.length&&k.push(Xs(Lae,T,[x.Prefix_0_with_an_underscore,y.getText(a)],NRe,x.Prefix_all_unused_declarations_with_where_possible)),k},fixIds:[NRe,ORe,JSe,FRe],getAllCodeActions:t=>{let{sourceFile:n,program:a,cancellationToken:c}=t,u=a.getTypeChecker(),_=a.getSourceFiles();return Vl(t,L1t,(f,y)=>{let g=la(n,y.start);switch(t.fixId){case NRe:z1t(f,y.code,n,g);break;case JSe:{let k=B1t(g);k?f.delete(n,k):RRe(g)&&VSe(n,g,f,u,_,a,c,!0);break}case ORe:{if(g.kind===140||RRe(g))break;if(c1(g))f.delete(n,g);else if(g.kind===30)j1t(f,n,g);else if($y(g.parent)){if(g.parent.parent.initializer)break;(!wa(g.parent.parent)||q1t(g.parent.parent,u,_))&&f.delete(n,g.parent.parent)}else{if(xE(g.parent.parent)&&g.parent.parent.parent.initializer)break;$1t(n,g)?U1t(f,n,g.parent):ct(g)&&i_(g.parent)?V1t(f,n,g.parent):VSe(n,g,f,u,_,a,c,!0)}break}case FRe:g.kind===140&&M1t(f,n,g);break;default:$.fail(JSON.stringify(t.fixId))}})}});function M1t(t,n,a){t.replaceNode(n,a.parent,W.createKeywordTypeNode(159))}function _q(t,n){return Xs(Lae,t,n,ORe,x.Delete_all_unused_declarations)}function j1t(t,n,a){t.delete(n,$.checkDefined(Ba(a.parent,Ome).typeParameters,"The type parameter to delete should exist"))}function RRe(t){return t.kind===102||t.kind===80&&(t.parent.kind===277||t.parent.kind===274)}function B1t(t){return t.kind===102?Ci(t.parent,fp):void 0}function $1t(t,n){return Df(n.parent)&&To(n.parent.getChildren(t))===n}function U1t(t,n,a){t.delete(n,a.parent.kind===244?a.parent:a)}function rhr(t,n,a){X(a.elements,c=>t.delete(n,c))}function nhr(t,n,a,{parent:c}){if(Oo(c)&&c.initializer&&QI(c.initializer))if(Df(c.parent)&&te(c.parent.declarations)>1){let u=c.parent.parent,_=u.getStart(a),f=u.end;n.delete(a,c),n.insertNodeAt(a,f,c.initializer,{prefix:ZT(t.host,t.formatContext.options)+a.text.slice(Qoe(a.text,_-1),_),suffix:eQ(a)?";":""})}else n.replaceNode(a,c.parent,c.initializer);else n.delete(a,c)}function z1t(t,n,a,c){n!==x.Property_0_is_declared_but_its_value_is_never_read.code&&(c.kind===140&&(c=Ba(c.parent,n3).typeParameter.name),ct(c)&&ihr(c)&&(t.replaceNode(a,c,W.createIdentifier(`_${c.text}`)),wa(c.parent)&&P4(c.parent).forEach(u=>{ct(u.name)&&t.replaceNode(a,u.name,W.createIdentifier(`_${u.name.text}`))})))}function ihr(t){switch(t.parent.kind){case 170:case 169:return!0;case 261:switch(t.parent.parent.parent.kind){case 251:case 250:return!0}}return!1}function VSe(t,n,a,c,u,_,f,y){ohr(n,a,t,c,u,_,f,y),ct(n)&&Pu.Core.eachSymbolReferenceInFile(n,c,t,g=>{no(g.parent)&&g.parent.name===g&&(g=g.parent),!y&&lhr(g)&&a.delete(t,g.parent.parent)})}function ohr(t,n,a,c,u,_,f,y){let{parent:g}=t;if(wa(g))ahr(n,a,g,c,u,_,f,y);else if(!(y&&ct(t)&&Pu.Core.isSymbolReferencedInFile(t,c,a))){let k=H1(g)?t:dc(g)?g.parent:g;$.assert(k!==a,"should not delete whole source file"),n.delete(a,k)}}function ahr(t,n,a,c,u,_,f,y=!1){if(shr(c,n,a,u,_,f,y))if(a.modifiers&&a.modifiers.length>0&&(!ct(a.name)||Pu.Core.isSymbolReferencedInFile(a.name,c,n)))for(let g of a.modifiers)bc(g)&&t.deleteModifier(n,g);else!a.initializer&&q1t(a,c,u)&&t.delete(n,a)}function q1t(t,n,a){let c=t.parent.parameters.indexOf(t);return!Pu.Core.someSignatureUsage(t.parent,a,n,(u,_)=>!_||_.arguments.length>c)}function shr(t,n,a,c,u,_,f){let{parent:y}=a;switch(y.kind){case 175:case 177:let g=y.parameters.indexOf(a),k=Ep(y)?y.name:y,T=Pu.Core.getReferencedSymbolsForNode(y.pos,k,u,c,_);if(T){for(let C of T)for(let O of C.references)if(O.kind===Pu.EntryKind.Node){let F=az(O.node)&&Js(O.node.parent)&&O.node.parent.arguments.length>g,M=no(O.node.parent)&&az(O.node.parent.expression)&&Js(O.node.parent.parent)&&O.node.parent.parent.arguments.length>g,U=(Ep(O.node.parent)||G1(O.node.parent))&&O.node.parent!==a.parent&&O.node.parent.parameters.length>g;if(F||M||U)return!1}}return!0;case 263:return y.name&&chr(t,n,y.name)?J1t(y,a,f):!0;case 219:case 220:return J1t(y,a,f);case 179:return!1;case 178:return!0;default:return $.failBadSyntaxKind(y)}}function chr(t,n,a){return!!Pu.Core.eachSymbolReferenceInFile(a,t,n,c=>ct(c)&&Js(c.parent)&&c.parent.arguments.includes(c))}function J1t(t,n,a){let c=t.parameters,u=c.indexOf(n);return $.assert(u!==-1,"The parameter should already be in the list"),a?c.slice(u+1).every(_=>ct(_.name)&&!_.symbol.isReferenced):u===c.length-1}function lhr(t){return(wi(t.parent)&&t.parent.left===t||(Nge(t.parent)||TA(t.parent))&&t.parent.operand===t)&&af(t.parent.parent)}function V1t(t,n,a){let c=a.symbol.declarations;if(c)for(let u of c)t.delete(n,u)}var LRe="fixUnreachableCode",W1t=[x.Unreachable_code_detected.code];gc({errorCodes:W1t,getCodeActions(t){if(t.program.getSyntacticDiagnostics(t.sourceFile,t.cancellationToken).length)return;let a=ki.ChangeTracker.with(t,c=>G1t(c,t.sourceFile,t.span.start,t.span.length,t.errorCode));return[Xs(LRe,a,x.Remove_unreachable_code,LRe,x.Remove_all_unreachable_code)]},fixIds:[LRe],getAllCodeActions:t=>Vl(t,W1t,(n,a)=>G1t(n,a.file,a.start,a.length,a.code))});function G1t(t,n,a,c,u){let _=la(n,a),f=fn(_,fa);if(f.getStart(n)!==_.getStart(n)){let g=JSON.stringify({statementKind:$.formatSyntaxKind(f.kind),tokenKind:$.formatSyntaxKind(_.kind),errorCode:u,start:a,length:c});$.fail("Token and statement should start at the same point. "+g)}let y=(Vs(f.parent)?f.parent:f).parent;if(!Vs(f.parent)||f===To(f.parent.statements))switch(y.kind){case 246:if(y.elseStatement){if(Vs(f.parent))break;t.replaceNode(n,f,W.createBlock(j));return}case 248:case 249:t.delete(n,y);return}if(Vs(f.parent)){let g=a+c,k=$.checkDefined(uhr(Xhe(f.parent.statements,f),T=>T.posK1t(a,t.sourceFile,t.span.start));return[Xs(MRe,n,x.Remove_unused_label,MRe,x.Remove_all_unused_labels)]},fixIds:[MRe],getAllCodeActions:t=>Vl(t,H1t,(n,a)=>K1t(n,a.file,a.start))});function K1t(t,n,a){let c=la(n,a),u=Ba(c.parent,bC),_=c.getStart(n),f=u.statement.getStart(n),y=v0(_,f,n)?f:_c(n.text,Kl(u,59,n).end,!0);t.deleteRange(n,{pos:_,end:y})}var Q1t="fixJSDocTypes_plain",jRe="fixJSDocTypes_nullable",Z1t=[x.JSDoc_types_can_only_be_used_inside_documentation_comments.code,x._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,x._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];gc({errorCodes:Z1t,getCodeActions(t){let{sourceFile:n}=t,a=t.program.getTypeChecker(),c=Y1t(n,t.span.start,a);if(!c)return;let{typeNode:u,type:_}=c,f=u.getText(n),y=[g(_,Q1t,x.Change_all_jsdoc_style_types_to_TypeScript)];return u.kind===315&&y.push(g(_,jRe,x.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),y;function g(k,T,C){let O=ki.ChangeTracker.with(t,F=>X1t(F,n,u,k,a));return Xs("jdocTypes",O,[x.Change_0_to_1,f,a.typeToString(k)],T,C)}},fixIds:[Q1t,jRe],getAllCodeActions(t){let{fixId:n,program:a,sourceFile:c}=t,u=a.getTypeChecker();return Vl(t,Z1t,(_,f)=>{let y=Y1t(f.file,f.start,u);if(!y)return;let{typeNode:g,type:k}=y,T=g.kind===315&&n===jRe?u.getNullableType(k,32768):k;X1t(_,c,g,T,u)})}});function X1t(t,n,a,c,u){t.replaceNode(n,a,u.typeToTypeNode(c,a,void 0))}function Y1t(t,n,a){let c=fn(la(t,n),phr),u=c&&c.type;return u&&{typeNode:u,type:_hr(a,u)}}function phr(t){switch(t.kind){case 235:case 180:case 181:case 263:case 178:case 182:case 201:case 175:case 174:case 170:case 173:case 172:case 179:case 266:case 217:case 261:return!0;default:return!1}}function _hr(t,n){if(xL(n)){let a=t.getTypeFromTypeNode(n.type);return a===t.getNeverType()||a===t.getVoidType()?a:t.getUnionType(jt([a,t.getUndefinedType()],n.postfix?void 0:t.getNullType()))}return t.getTypeFromTypeNode(n)}var BRe="fixMissingCallParentheses",evt=[x.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];gc({errorCodes:evt,fixIds:[BRe],getCodeActions(t){let{sourceFile:n,span:a}=t,c=rvt(n,a.start);if(!c)return;let u=ki.ChangeTracker.with(t,_=>tvt(_,t.sourceFile,c));return[Xs(BRe,u,x.Add_missing_call_parentheses,BRe,x.Add_all_missing_call_parentheses)]},getAllCodeActions:t=>Vl(t,evt,(n,a)=>{let c=rvt(a.file,a.start);c&&tvt(n,a.file,c)})});function tvt(t,n,a){t.replaceNodeWithText(n,a,`${a.text}()`)}function rvt(t,n){let a=la(t,n);if(no(a.parent)){let c=a.parent;for(;no(c.parent);)c=c.parent;return c.name}if(ct(a))return a}var nvt="fixMissingTypeAnnotationOnExports",$Re="add-annotation",URe="add-type-assertion",dhr="extract-expression",ivt=[x.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,x.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,x.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,x.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,x.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,x.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,x.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,x.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,x.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,x.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,x.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,x.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,x.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,x.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,x.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,x.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,x.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,x.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,x.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code,x.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,x.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],fhr=new Set([178,175,173,263,219,220,261,170,278,264,207,208]),ovt=531469,avt=1;gc({errorCodes:ivt,fixIds:[nvt],getCodeActions(t){let n=[];return dq($Re,n,t,0,a=>a.addTypeAnnotation(t.span)),dq($Re,n,t,1,a=>a.addTypeAnnotation(t.span)),dq($Re,n,t,2,a=>a.addTypeAnnotation(t.span)),dq(URe,n,t,0,a=>a.addInlineAssertion(t.span)),dq(URe,n,t,1,a=>a.addInlineAssertion(t.span)),dq(URe,n,t,2,a=>a.addInlineAssertion(t.span)),dq(dhr,n,t,0,a=>a.extractAsVariable(t.span)),n},getAllCodeActions:t=>{let n=svt(t,0,a=>{WF(t,ivt,c=>{a.addTypeAnnotation(c)})});return VF(n.textChanges)}});function dq(t,n,a,c,u){let _=svt(a,c,u);_.result&&_.textChanges.length&&n.push(Xs(t,_.textChanges,_.result,nvt,x.Add_all_missing_type_annotations))}function svt(t,n,a){let c={typeNode:void 0,mutatedTarget:!1},u=ki.ChangeTracker.fromContext(t),_=t.sourceFile,f=t.program,y=f.getTypeChecker(),g=$c(f.getCompilerOptions()),k=BP(t.sourceFile,t.program,t.preferences,t.host),T=new Set,C=new Set,O=DC({preserveSourceNewlines:!1}),F=a({addTypeAnnotation:M,addInlineAssertion:Q,extractAsVariable:re});return k.writeFixes(u),{result:F,textChanges:u.getChanges()};function M(Se){t.cancellationToken.throwIfCancellationRequested();let tt=la(_,Se.start),Qe=ae(tt);if(Qe)return i_(Qe)?U(Qe):_e(Qe);let We=ke(tt);if(We)return _e(We)}function U(Se){var tt;if(C?.has(Se))return;C?.add(Se);let Qe=y.getTypeAtLocation(Se),We=y.getPropertiesOfType(Qe);if(!Se.name||We.length===0)return;let St=[];for(let nn of We)Jd(nn.name,$c(f.getCompilerOptions()))&&(nn.valueDeclaration&&Oo(nn.valueDeclaration)||St.push(W.createVariableStatement([W.createModifier(95)],W.createVariableDeclarationList([W.createVariableDeclaration(nn.name,void 0,Le(y.getTypeOfSymbol(nn),Se),void 0)]))));if(St.length===0)return;let Kt=[];(tt=Se.modifiers)!=null&&tt.some(nn=>nn.kind===95)&&Kt.push(W.createModifier(95)),Kt.push(W.createModifier(138));let Sr=W.createModuleDeclaration(Kt,Se.name,W.createModuleBlock(St),101441696);return u.insertNodeAfter(_,Se,Sr),[x.Annotate_types_of_properties_expando_function_in_a_namespace]}function J(Se){return!ru(Se)&&!Js(Se)&&!Lc(Se)&&!qf(Se)}function G(Se,tt){return J(Se)&&(Se=W.createParenthesizedExpression(Se)),W.createAsExpression(Se,tt)}function Z(Se,tt){return J(Se)&&(Se=W.createParenthesizedExpression(Se)),W.createAsExpression(W.createSatisfiesExpression(Se,Il(tt)),tt)}function Q(Se){t.cancellationToken.throwIfCancellationRequested();let tt=la(_,Se.start);if(ae(tt))return;let We=_t(tt,Se);if(!We||G4(We)||G4(We.parent))return;let St=Vt(We),Kt=im(We);if(!Kt&&Vd(We)||fn(We,$s)||fn(We,GT)||St&&(fn(We,zg)||fn(We,Wo))||E0(We))return;let Sr=fn(We,Oo),nn=Sr&&y.getTypeAtLocation(Sr);if(nn&&nn.flags&8192||!(St||Kt))return;let{typeNode:Nn,mutatedTarget:$t}=Fe(We,nn);if(!(!Nn||$t))return Kt?u.insertNodeAt(_,We.end,G(Il(We.name),Nn),{prefix:": "}):St?u.replaceNode(_,We,Z(Il(We),Nn)):$.assertNever(We),[x.Add_satisfies_and_an_inline_type_assertion_with_0,It(Nn)]}function re(Se){t.cancellationToken.throwIfCancellationRequested();let tt=la(_,Se.start),Qe=_t(tt,Se);if(!Qe||G4(Qe)||G4(Qe.parent)||!Vt(Qe))return;if(qf(Qe))return u.replaceNode(_,Qe,G(Qe,W.createTypeReferenceNode("const"))),[x.Mark_array_literal_as_const];let St=fn(Qe,td);if(St){if(St===Qe.parent&&ru(Qe))return;let Kt=W.createUniqueName(z5e(Qe,_,y,_),16),Sr=Qe,nn=Qe;if(E0(Sr)&&(Sr=V1(Sr.parent),je(Sr.parent)?nn=Sr=Sr.parent:nn=G(Sr,W.createTypeReferenceNode("const"))),ru(Sr))return;let Nn=W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Kt,void 0,void 0,nn)],2)),$t=fn(Qe,fa);return u.insertNodeBefore(_,$t,Nn),u.replaceNode(_,Sr,W.createAsExpression(W.cloneNode(Kt),W.createTypeQueryNode(W.cloneNode(Kt)))),[x.Extract_to_variable_and_replace_with_0_as_typeof_0,It(Kt)]}}function ae(Se){let tt=fn(Se,Qe=>fa(Qe)?"quit":lF(Qe));if(tt&&lF(tt)){let Qe=tt;if(wi(Qe)&&(Qe=Qe.left,!lF(Qe)))return;let We=y.getTypeAtLocation(Qe.expression);if(!We)return;let St=y.getPropertiesOfType(We);if(Pt(St,Kt=>Kt.valueDeclaration===tt||Kt.valueDeclaration===tt.parent)){let Kt=We.symbol.valueDeclaration;if(Kt){if(mC(Kt)&&Oo(Kt.parent))return Kt.parent;if(i_(Kt))return Kt}}}}function _e(Se){if(!T?.has(Se))switch(T?.add(Se),Se.kind){case 170:case 173:case 261:return nt(Se);case 220:case 219:case 263:case 175:case 178:return me(Se,_);case 278:return le(Se);case 264:return Oe(Se);case 207:case 208:return ue(Se);default:throw new Error(`Cannot find a fix for the given node ${Se.kind}`)}}function me(Se,tt){if(Se.type)return;let{typeNode:Qe}=Fe(Se);if(Qe)return u.tryInsertTypeAnnotation(tt,Se,Qe),[x.Add_return_type_0,It(Qe)]}function le(Se){if(Se.isExportEquals)return;let{typeNode:tt}=Fe(Se.expression);if(!tt)return;let Qe=W.createUniqueName("_default");return u.replaceNodeWithNodes(_,Se,[W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Qe,void 0,tt,Se.expression)],2)),W.updateExportAssignment(Se,Se?.modifiers,Qe)]),[x.Extract_default_export_to_variable]}function Oe(Se){var tt,Qe;let We=(tt=Se.heritageClauses)==null?void 0:tt.find(Dr=>Dr.token===96),St=We?.types[0];if(!St)return;let{typeNode:Kt}=Fe(St.expression);if(!Kt)return;let Sr=W.createUniqueName(Se.name?Se.name.text+"Base":"Anonymous",16),nn=W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Sr,void 0,Kt,St.expression)],2));u.insertNodeBefore(_,Se,nn);let Nn=hb(_.text,St.end),$t=((Qe=Nn?.[Nn.length-1])==null?void 0:Qe.end)??St.end;return u.replaceRange(_,{pos:St.getFullStart(),end:$t},Sr,{prefix:" "}),[x.Extract_base_class_to_variable]}let be;(Se=>{Se[Se.Text=0]="Text",Se[Se.Computed=1]="Computed",Se[Se.ArrayAccess=2]="ArrayAccess",Se[Se.Identifier=3]="Identifier"})(be||(be={}));function ue(Se){var tt;let Qe=Se.parent,We=Se.parent.parent.parent;if(!Qe.initializer)return;let St,Kt=[];if(ct(Qe.initializer))St={expression:{kind:3,identifier:Qe.initializer}};else{let Nn=W.createUniqueName("dest",16);St={expression:{kind:3,identifier:Nn}},Kt.push(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Nn,void 0,void 0,Qe.initializer)],2)))}let Sr=[];xE(Se)?De(Se,Sr,St):Ce(Se,Sr,St);let nn=new Map;for(let Nn of Sr){if(Nn.element.propertyName&&dc(Nn.element.propertyName)){let Dr=Nn.element.propertyName.expression,Qn=W.getGeneratedNameForNode(Dr),Ko=W.createVariableDeclaration(Qn,void 0,void 0,Dr),is=W.createVariableDeclarationList([Ko],2),sr=W.createVariableStatement(void 0,is);Kt.push(sr),nn.set(Dr,Qn)}let $t=Nn.element.name;if(xE($t))De($t,Sr,Nn);else if($y($t))Ce($t,Sr,Nn);else{let{typeNode:Dr}=Fe($t),Qn=Ae(Nn,nn);if(Nn.element.initializer){let is=(tt=Nn.element)==null?void 0:tt.propertyName,sr=W.createUniqueName(is&&ct(is)?is.text:"temp",16);Kt.push(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(sr,void 0,void 0,Qn)],2))),Qn=W.createConditionalExpression(W.createBinaryExpression(sr,W.createToken(37),W.createIdentifier("undefined")),W.createToken(58),Nn.element.initializer,W.createToken(59),Qn)}let Ko=ko(We,32)?[W.createToken(95)]:void 0;Kt.push(W.createVariableStatement(Ko,W.createVariableDeclarationList([W.createVariableDeclaration($t,void 0,Dr,Qn)],2)))}}return We.declarationList.declarations.length>1&&Kt.push(W.updateVariableStatement(We,We.modifiers,W.updateVariableDeclarationList(We.declarationList,We.declarationList.declarations.filter(Nn=>Nn!==Se.parent)))),u.replaceNodeWithNodes(_,We,Kt),[x.Extract_binding_expressions_to_variable]}function De(Se,tt,Qe){for(let We=0;We=0;--St){let Kt=Qe[St].expression;Kt.kind===0?We=W.createPropertyAccessChain(We,void 0,W.createIdentifier(Kt.text)):Kt.kind===1?We=W.createElementAccessExpression(We,tt.get(Kt.computed)):Kt.kind===2&&(We=W.createElementAccessExpression(We,Kt.arrayIndex))}return We}function Fe(Se,tt){if(n===1)return ve(Se);let Qe;if(G4(Se)){let Kt=y.getSignatureFromDeclaration(Se);if(Kt){let Sr=y.getTypePredicateOfSignature(Kt);if(Sr)return Sr.type?{typeNode:Ve(Sr,fn(Se,Vd)??_,St(Sr.type)),mutatedTarget:!1}:c;Qe=y.getReturnTypeOfSignature(Kt)}}else Qe=y.getTypeAtLocation(Se);if(!Qe)return c;if(n===2){tt&&(Qe=tt);let Kt=y.getWidenedLiteralType(Qe);if(y.isTypeAssignableTo(Kt,Qe))return c;Qe=Kt}let We=fn(Se,Vd)??_;return wa(Se)&&y.requiresAddingImplicitUndefined(Se,We)&&(Qe=y.getUnionType([y.getUndefinedType(),Qe],0)),{typeNode:Le(Qe,We,St(Qe)),mutatedTarget:!1};function St(Kt){return(Oo(Se)||ps(Se)&&ko(Se,264))&&Kt.flags&8192?1048576:0}}function Be(Se){return W.createTypeQueryNode(Il(Se))}function de(Se,tt="temp"){let Qe=!!fn(Se,je);return Qe?ut(Se,tt,Qe,We=>We.elements,E0,W.createSpreadElement,We=>W.createArrayLiteralExpression(We,!0),We=>W.createTupleTypeNode(We.map(W.createRestTypeNode))):c}function ze(Se,tt="temp"){let Qe=!!fn(Se,je);return ut(Se,tt,Qe,We=>We.properties,qx,W.createSpreadAssignment,We=>W.createObjectLiteralExpression(We,!0),W.createIntersectionTypeNode)}function ut(Se,tt,Qe,We,St,Kt,Sr,nn){let Nn=[],$t=[],Dr,Qn=fn(Se,fa);for(let sr of We(Se))St(sr)?(is(),ru(sr.expression)?(Nn.push(Be(sr.expression)),$t.push(sr)):Ko(sr.expression)):(Dr??(Dr=[])).push(sr);if($t.length===0)return c;return is(),u.replaceNode(_,Se,Sr($t)),{typeNode:nn(Nn),mutatedTarget:!0};function Ko(sr){let uo=W.createUniqueName(tt+"_Part"+($t.length+1),16),Wa=Qe?W.createAsExpression(sr,W.createTypeReferenceNode("const")):sr,oo=W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(uo,void 0,void 0,Wa)],2));u.insertNodeBefore(_,Qn,oo),Nn.push(Be(uo)),$t.push(Kt(uo))}function is(){Dr&&(Ko(Sr(Dr)),Dr=void 0)}}function je(Se){return ZI(Se)&&z1(Se.type)}function ve(Se){if(wa(Se))return c;if(im(Se))return{typeNode:Be(Se.name),mutatedTarget:!1};if(ru(Se))return{typeNode:Be(Se),mutatedTarget:!1};if(je(Se))return ve(Se.expression);if(qf(Se)){let tt=fn(Se,Oo),Qe=tt&&ct(tt.name)?tt.name.text:void 0;return de(Se,Qe)}if(Lc(Se)){let tt=fn(Se,Oo),Qe=tt&&ct(tt.name)?tt.name.text:void 0;return ze(Se,Qe)}if(Oo(Se)&&Se.initializer)return ve(Se.initializer);if(a3(Se)){let{typeNode:tt,mutatedTarget:Qe}=ve(Se.whenTrue);if(!tt)return c;let{typeNode:We,mutatedTarget:St}=ve(Se.whenFalse);return We?{typeNode:W.createUnionTypeNode([tt,We]),mutatedTarget:Qe||St}:c}return c}function Le(Se,tt,Qe=0){let We=!1,St=wvt(y,Se,tt,ovt|Qe,avt,{moduleResolverHost:f,trackSymbol(){return!0},reportTruncationError(){We=!0}});if(!St)return;let Kt=QRe(St,k,g);return We?W.createKeywordTypeNode(133):Kt}function Ve(Se,tt,Qe=0){let We=!1,St=Ivt(y,k,Se,tt,g,ovt|Qe,avt,{moduleResolverHost:f,trackSymbol(){return!0},reportTruncationError(){We=!0}});return We?W.createKeywordTypeNode(133):St}function nt(Se){let{typeNode:tt}=Fe(Se);if(tt)return Se.type?u.replaceNode(Pn(Se),Se.type,tt):u.tryInsertTypeAnnotation(Pn(Se),Se,tt),[x.Add_annotation_of_type_0,It(tt)]}function It(Se){Ai(Se,1);let tt=O.printNode(4,Se,_);return tt.length>cU?tt.substring(0,cU-3)+"...":(Ai(Se,0),tt)}function ke(Se){return fn(Se,tt=>fhr.has(tt.kind)&&(!$y(tt)&&!xE(tt)||Oo(tt.parent)))}function _t(Se,tt){for(;Se&&Se.enduvt(_,n,c));return[Xs(zRe,u,x.Add_async_modifier_to_containing_function,zRe,x.Add_all_missing_async_modifiers)]},fixIds:[zRe],getAllCodeActions:function(n){let a=new Set;return Vl(n,cvt,(c,u)=>{let _=lvt(u.file,u.start);!_||!o1(a,hl(_.insertBefore))||uvt(c,n.sourceFile,_)})}});function mhr(t){if(t.type)return t.type;if(Oo(t.parent)&&t.parent.type&&Cb(t.parent.type))return t.parent.type.type}function lvt(t,n){let a=la(t,n),c=My(a);if(!c)return;let u;switch(c.kind){case 175:u=c.name;break;case 263:case 219:u=Kl(c,100,t);break;case 220:let _=c.typeParameters?30:21;u=Kl(c,_,t)||To(c.parameters);break;default:return}return u&&{insertBefore:u,returnType:mhr(c)}}function uvt(t,n,{insertBefore:a,returnType:c}){if(c){let u=NG(c);(!u||u.kind!==80||u.text!=="Promise")&&t.replaceNode(n,c,W.createTypeReferenceNode("Promise",W.createNodeArray([c])))}t.insertModifierBefore(n,134,a)}var pvt=[x._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,x._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],qRe="fixPropertyOverrideAccessor";gc({errorCodes:pvt,getCodeActions(t){let n=_vt(t.sourceFile,t.span.start,t.span.length,t.errorCode,t);if(n)return[Xs(qRe,n,x.Generate_get_and_set_accessors,qRe,x.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[qRe],getAllCodeActions:t=>Vl(t,pvt,(n,a)=>{let c=_vt(a.file,a.start,a.length,a.code,t);if(c)for(let u of c)n.pushRaw(t.sourceFile,u)})});function _vt(t,n,a,c,u){let _,f;if(c===x._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)_=n,f=n+a;else if(c===x._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){let y=u.program.getTypeChecker(),g=la(t,n).parent;if(dc(g))return;$.assert(tC(g),"error span of fixPropertyOverrideAccessor should only be on an accessor");let k=g.parent;$.assert(Co(k),"erroneous accessors should only be inside classes");let T=vv(k);if(!T)return;let C=bl(T.expression),O=w_(C)?C.symbol:y.getSymbolAtLocation(C);if(!O)return;let F=y.getDeclaredTypeOfSymbol(O),M=y.getPropertyOfType(F,oa(UO(g.name)));if(!M||!M.valueDeclaration)return;_=M.valueDeclaration.pos,f=M.valueDeclaration.end,t=Pn(M.valueDeclaration)}else $.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+c);return Rvt(t,u.program,_,f,u,x.Generate_get_and_set_accessors.message)}var JRe="inferFromUsage",dvt=[x.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,x.Variable_0_implicitly_has_an_1_type.code,x.Parameter_0_implicitly_has_an_1_type.code,x.Rest_parameter_0_implicitly_has_an_any_type.code,x.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,x._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,x.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,x.Member_0_implicitly_has_an_1_type.code,x.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,x.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,x.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,x.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,x.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,x._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,x.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,x.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,x.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];gc({errorCodes:dvt,getCodeActions(t){let{sourceFile:n,program:a,span:{start:c},errorCode:u,cancellationToken:_,host:f,preferences:y}=t,g=la(n,c),k,T=ki.ChangeTracker.with(t,O=>{k=fvt(O,n,g,u,a,_,AT,f,y)}),C=k&&cs(k);return!C||T.length===0?void 0:[Xs(JRe,T,[hhr(u,g),Sp(C)],JRe,x.Infer_all_types_from_usage)]},fixIds:[JRe],getAllCodeActions(t){let{sourceFile:n,program:a,cancellationToken:c,host:u,preferences:_}=t,f=QL();return Vl(t,dvt,(y,g)=>{fvt(y,n,la(g.file,g.start),g.code,a,c,f,u,_)})}});function hhr(t,n){switch(t){case x.Parameter_0_implicitly_has_an_1_type.code:case x.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return mg(My(n))?x.Infer_type_of_0_from_usage:x.Infer_parameter_types_from_usage;case x.Rest_parameter_0_implicitly_has_an_any_type.code:case x.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return x.Infer_parameter_types_from_usage;case x.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return x.Infer_this_type_of_0_from_usage;default:return x.Infer_type_of_0_from_usage}}function ghr(t){switch(t){case x.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return x.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case x.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return x.Variable_0_implicitly_has_an_1_type.code;case x.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return x.Parameter_0_implicitly_has_an_1_type.code;case x.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return x.Rest_parameter_0_implicitly_has_an_any_type.code;case x.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return x.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case x._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return x._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case x.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return x.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case x.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return x.Member_0_implicitly_has_an_1_type.code}return t}function fvt(t,n,a,c,u,_,f,y,g){if(!iU(a.kind)&&a.kind!==80&&a.kind!==26&&a.kind!==110)return;let{parent:k}=a,T=BP(n,u,g,y);switch(c=ghr(c),c){case x.Member_0_implicitly_has_an_1_type.code:case x.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Oo(k)&&f(k)||ps(k)||Zm(k))return mvt(t,T,n,k,u,y,_),T.writeFixes(t),k;if(no(k)){let F=SQ(k.name,u,_),M=nq(F,k,u,y);if(M){let U=W.createJSDocTypeTag(void 0,W.createJSDocTypeExpression(M),void 0);t.addJSDocTags(n,Ba(k.parent.parent,af),[U])}return T.writeFixes(t),k}return;case x.Variable_0_implicitly_has_an_1_type.code:{let F=u.getTypeChecker().getSymbolAtLocation(a);return F&&F.valueDeclaration&&Oo(F.valueDeclaration)&&f(F.valueDeclaration)?(mvt(t,T,Pn(F.valueDeclaration),F.valueDeclaration,u,y,_),T.writeFixes(t),F.valueDeclaration):void 0}}let C=My(a);if(C===void 0)return;let O;switch(c){case x.Parameter_0_implicitly_has_an_1_type.code:if(mg(C)){hvt(t,T,n,C,u,y,_),O=C;break}case x.Rest_parameter_0_implicitly_has_an_any_type.code:if(f(C)){let F=Ba(k,wa);yhr(t,T,n,F,C,u,y,_),O=F}break;case x.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case x._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:T0(C)&&ct(C.name)&&(WSe(t,T,n,C,SQ(C.name,u,_),u,y),O=C);break;case x.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:mg(C)&&(hvt(t,T,n,C,u,y,_),O=C);break;case x.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:ki.isThisTypeAnnotatable(C)&&f(C)&&(vhr(t,n,C,u,y,_),O=C);break;default:return $.fail(String(c))}return T.writeFixes(t),O}function mvt(t,n,a,c,u,_,f){ct(c.name)&&WSe(t,n,a,c,SQ(c.name,u,f),u,_)}function yhr(t,n,a,c,u,_,f,y){if(!ct(c.name))return;let g=xhr(u,a,_,y);if($.assert(u.parameters.length===g.length,"Parameter count and inference count should match"),Ei(u))gvt(t,a,g,_,f);else{let k=Iu(u)&&!Kl(u,21,a);k&&t.insertNodeBefore(a,To(u.parameters),W.createToken(21));for(let{declaration:T,type:C}of g)T&&!T.type&&!T.initializer&&WSe(t,n,a,T,C,_,f);k&&t.insertNodeAfter(a,Sn(u.parameters),W.createToken(22))}}function vhr(t,n,a,c,u,_){let f=yvt(a,n,c,_);if(!f||!f.length)return;let y=WRe(c,f,_).thisParameter(),g=nq(y,a,c,u);g&&(Ei(a)?Shr(t,n,a,g):t.tryInsertThisTypeAnnotation(n,a,g))}function Shr(t,n,a,c){t.addJSDocTags(n,a,[W.createJSDocThisTag(void 0,W.createJSDocTypeExpression(c))])}function hvt(t,n,a,c,u,_,f){let y=pi(c.parameters);if(y&&ct(c.name)&&ct(y.name)){let g=SQ(c.name,u,f);g===u.getTypeChecker().getAnyType()&&(g=SQ(y.name,u,f)),Ei(c)?gvt(t,a,[{declaration:y,type:g}],u,_):WSe(t,n,a,y,g,u,_)}}function WSe(t,n,a,c,u,_,f){let y=nq(u,c,_,f);if(y)if(Ei(a)&&c.kind!==172){let g=Oo(c)?Ci(c.parent.parent,h_):c;if(!g)return;let k=W.createJSDocTypeExpression(y),T=T0(c)?W.createJSDocReturnTag(void 0,k,void 0):W.createJSDocTypeTag(void 0,k,void 0);t.addJSDocTags(a,g,[T])}else bhr(y,c,a,t,n,$c(_.getCompilerOptions()))||t.tryInsertTypeAnnotation(a,c,y)}function bhr(t,n,a,c,u,_){let f=$P(t,_);return f&&c.tryInsertTypeAnnotation(a,n,f.typeNode)?(X(f.symbols,y=>u.addImportFromExportedSymbol(y,!0)),!0):!1}function gvt(t,n,a,c,u){let _=a.length&&a[0].declaration.parent;if(!_)return;let f=Wn(a,y=>{let g=y.declaration;if(g.initializer||hv(g)||!ct(g.name))return;let k=y.type&&nq(y.type,g,c,u);if(k){let T=W.cloneNode(g.name);return Ai(T,7168),{name:W.cloneNode(g.name),param:g,isOptional:!!y.isOptional,typeNode:k}}});if(f.length)if(Iu(_)||bu(_)){let y=Iu(_)&&!Kl(_,21,n);y&&t.insertNodeBefore(n,To(_.parameters),W.createToken(21)),X(f,({typeNode:g,param:k})=>{let T=W.createJSDocTypeTag(void 0,W.createJSDocTypeExpression(g)),C=W.createJSDocComment(void 0,[T]);t.insertNodeAt(n,k.getStart(n),C,{suffix:" "})}),y&&t.insertNodeAfter(n,Sn(_.parameters),W.createToken(22))}else{let y=Cr(f,({name:g,typeNode:k,isOptional:T})=>W.createJSDocParameterTag(void 0,g,!!T,W.createJSDocTypeExpression(k),!1,void 0));t.addJSDocTags(n,_,y)}}function VRe(t,n,a){return Wn(Pu.getReferenceEntriesForNode(-1,t,n,n.getSourceFiles(),a),c=>c.kind!==Pu.EntryKind.Span?Ci(c.node,ct):void 0)}function SQ(t,n,a){let c=VRe(t,n,a);return WRe(n,c,a).single()}function xhr(t,n,a,c){let u=yvt(t,n,a,c);return u&&WRe(a,u,c).parameters(t)||t.parameters.map(_=>({declaration:_,type:ct(_.name)?SQ(_.name,a,c):a.getTypeChecker().getAnyType()}))}function yvt(t,n,a,c){let u;switch(t.kind){case 177:u=Kl(t,137,n);break;case 220:case 219:let _=t.parent;u=(Oo(_)||ps(_))&&ct(_.name)?_.name:t.name;break;case 263:case 175:case 174:u=t.name;break}if(u)return VRe(u,a,c)}function WRe(t,n,a){let c=t.getTypeChecker(),u={string:()=>c.getStringType(),number:()=>c.getNumberType(),Array:Le=>c.createArrayType(Le),Promise:Le=>c.createPromiseType(Le)},_=[c.getStringType(),c.getNumberType(),c.createArrayType(c.getAnyType()),c.createPromiseType(c.getAnyType())];return{single:g,parameters:k,thisParameter:T};function f(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function y(Le){let Ve=new Map;for(let It of Le)It.properties&&It.properties.forEach((ke,_t)=>{Ve.has(_t)||Ve.set(_t,[]),Ve.get(_t).push(ke)});let nt=new Map;return Ve.forEach((It,ke)=>{nt.set(ke,y(It))}),{isNumber:Le.some(It=>It.isNumber),isString:Le.some(It=>It.isString),isNumberOrString:Le.some(It=>It.isNumberOrString),candidateTypes:an(Le,It=>It.candidateTypes),properties:nt,calls:an(Le,It=>It.calls),constructs:an(Le,It=>It.constructs),numberIndex:X(Le,It=>It.numberIndex),stringIndex:X(Le,It=>It.stringIndex),candidateThisTypes:an(Le,It=>It.candidateThisTypes),inferredTypes:void 0}}function g(){return Oe(C(n))}function k(Le){if(n.length===0||!Le.parameters)return;let Ve=f();for(let It of n)a.throwIfCancellationRequested(),O(It,Ve);let nt=[...Ve.constructs||[],...Ve.calls||[]];return Le.parameters.map((It,ke)=>{let _t=[],Se=Sb(It),tt=!1;for(let We of nt)if(We.argumentTypes.length<=ke)tt=Ei(Le),_t.push(c.getUndefinedType());else if(Se)for(let St=ke;Stnt.every(ke=>!ke(It)))}function le(Le){return Oe(ue(Le))}function Oe(Le){if(!Le.length)return c.getAnyType();let Ve=c.getUnionType([c.getStringType(),c.getNumberType()]),It=me(Le,[{high:_t=>_t===c.getStringType()||_t===c.getNumberType(),low:_t=>_t===Ve},{high:_t=>!(_t.flags&16385),low:_t=>!!(_t.flags&16385)},{high:_t=>!(_t.flags&114689)&&!(ro(_t)&16),low:_t=>!!(ro(_t)&16)}]),ke=It.filter(_t=>ro(_t)&16);return ke.length&&(It=It.filter(_t=>!(ro(_t)&16)),It.push(be(ke))),c.getWidenedType(c.getUnionType(It.map(c.getBaseTypeOfLiteralType),2))}function be(Le){if(Le.length===1)return Le[0];let Ve=[],nt=[],It=[],ke=[],_t=!1,Se=!1,tt=d_();for(let St of Le){for(let nn of c.getPropertiesOfType(St))tt.add(nn.escapedName,nn.valueDeclaration?c.getTypeOfSymbolAtLocation(nn,nn.valueDeclaration):c.getAnyType());Ve.push(...c.getSignaturesOfType(St,0)),nt.push(...c.getSignaturesOfType(St,1));let Kt=c.getIndexInfoOfType(St,0);Kt&&(It.push(Kt.type),_t=_t||Kt.isReadonly);let Sr=c.getIndexInfoOfType(St,1);Sr&&(ke.push(Sr.type),Se=Se||Sr.isReadonly)}let Qe=uc(tt,(St,Kt)=>{let Sr=Kt.lengthc.getBaseTypeOfLiteralType(tt)),Se=(It=Le.calls)!=null&&It.length?De(Le):void 0;return Se&&_t?ke.push(c.getUnionType([Se,..._t],2)):(Se&&ke.push(Se),te(_t)&&ke.push(..._t)),ke.push(...Ce(Le)),ke}function De(Le){let Ve=new Map;Le.properties&&Le.properties.forEach((_t,Se)=>{let tt=c.createSymbol(4,Se);tt.links.type=le(_t),Ve.set(Se,tt)});let nt=Le.calls?[ut(Le.calls)]:[],It=Le.constructs?[ut(Le.constructs)]:[],ke=Le.stringIndex?[c.createIndexInfo(c.getStringType(),le(Le.stringIndex),!1)]:[];return c.createAnonymousType(void 0,Ve,nt,It,ke)}function Ce(Le){if(!Le.properties||!Le.properties.size)return[];let Ve=_.filter(nt=>Ae(nt,Le));return 0Fe(nt,Le)):[]}function Ae(Le,Ve){return Ve.properties?!Ad(Ve.properties,(nt,It)=>{let ke=c.getTypeOfPropertyOfType(Le,It);return ke?nt.calls?!c.getSignaturesOfType(ke,0).length||!c.isTypeAssignableTo(ke,ze(nt.calls)):!c.isTypeAssignableTo(ke,le(nt)):!0}):!1}function Fe(Le,Ve){if(!(ro(Le)&4)||!Ve.properties)return Le;let nt=Le.target,It=to(nt.typeParameters);if(!It)return Le;let ke=[];return Ve.properties.forEach((_t,Se)=>{let tt=c.getTypeOfPropertyOfType(nt,Se);$.assert(!!tt,"generic should have all the properties of its reference."),ke.push(...Be(tt,le(_t),It))}),u[Le.symbol.escapedName](Oe(ke))}function Be(Le,Ve,nt){if(Le===nt)return[Ve];if(Le.flags&3145728)return an(Le.types,_t=>Be(_t,Ve,nt));if(ro(Le)&4&&ro(Ve)&4){let _t=c.getTypeArguments(Le),Se=c.getTypeArguments(Ve),tt=[];if(_t&&Se)for(let Qe=0;Qe<_t.length;Qe++)Se[Qe]&&tt.push(...Be(_t[Qe],Se[Qe],nt));return tt}let It=c.getSignaturesOfType(Le,0),ke=c.getSignaturesOfType(Ve,0);return It.length===1&&ke.length===1?de(It[0],ke[0],nt):[]}function de(Le,Ve,nt){var It;let ke=[];for(let tt=0;ttke.argumentTypes.length));for(let ke=0;keSe.argumentTypes[ke]||c.getUndefinedType())),Le.some(Se=>Se.argumentTypes[ke]===void 0)&&(_t.flags|=16777216),Ve.push(_t)}let It=le(y(Le.map(ke=>ke.return_)));return c.createSignature(void 0,void 0,void 0,Ve,It,void 0,nt,0)}function je(Le,Ve){Ve&&!(Ve.flags&1)&&!(Ve.flags&131072)&&(Le.candidateTypes||(Le.candidateTypes=[])).push(Ve)}function ve(Le,Ve){Ve&&!(Ve.flags&1)&&!(Ve.flags&131072)&&(Le.candidateThisTypes||(Le.candidateThisTypes=[])).push(Ve)}}var GRe="fixReturnTypeInAsyncFunction",vvt=[x.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];gc({errorCodes:vvt,fixIds:[GRe],getCodeActions:function(n){let{sourceFile:a,program:c,span:u}=n,_=c.getTypeChecker(),f=Svt(a,c.getTypeChecker(),u.start);if(!f)return;let{returnTypeNode:y,returnType:g,promisedTypeNode:k,promisedType:T}=f,C=ki.ChangeTracker.with(n,O=>bvt(O,a,y,k));return[Xs(GRe,C,[x.Replace_0_with_Promise_1,_.typeToString(g),_.typeToString(T)],GRe,x.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:t=>Vl(t,vvt,(n,a)=>{let c=Svt(a.file,t.program.getTypeChecker(),a.start);c&&bvt(n,a.file,c.returnTypeNode,c.promisedTypeNode)})});function Svt(t,n,a){if(Ei(t))return;let c=la(t,a),u=fn(c,lu),_=u?.type;if(!_)return;let f=n.getTypeFromTypeNode(_),y=n.getAwaitedType(f)||n.getVoidType(),g=n.typeToTypeNode(y,_,void 0);if(g)return{returnTypeNode:_,returnType:f,promisedTypeNode:g,promisedType:y}}function bvt(t,n,a,c){t.replaceNode(n,a,W.createTypeReferenceNode("Promise",[c]))}var xvt="disableJsDiagnostics",Tvt="disableJsDiagnostics",Evt=Wn(Object.keys(x),t=>{let n=x[t];return n.category===1?n.code:void 0});gc({errorCodes:Evt,getCodeActions:function(n){let{sourceFile:a,program:c,span:u,host:_,formatContext:f}=n;if(!Ei(a)||!WU(a,c.getCompilerOptions()))return;let y=a.checkJsDirective?"":ZT(_,f.options),g=[wv(xvt,[dgt(a.fileName,[WK(a.checkJsDirective?Hu(a.checkJsDirective.pos,a.checkJsDirective.end):Jp(0,0),`// @ts-nocheck${y}`)])],x.Disable_checking_for_this_file)];return ki.isValidLocationToAddComment(a,u.start)&&g.unshift(Xs(xvt,ki.ChangeTracker.with(n,k=>kvt(k,a,u.start)),x.Ignore_this_error_message,Tvt,x.Add_ts_ignore_to_all_error_messages)),g},fixIds:[Tvt],getAllCodeActions:t=>{let n=new Set;return Vl(t,Evt,(a,c)=>{ki.isValidLocationToAddComment(c.file,c.start)&&kvt(a,c.file,c.start,n)})}});function kvt(t,n,a,c){let{line:u}=qs(n,a);(!c||Us(c,u))&&t.insertCommentBeforeLine(n,u,a," @ts-ignore")}function HRe(t,n,a,c,u,_,f){let y=t.symbol.members;for(let g of n)y.has(g.escapedName)||Dvt(g,t,a,c,u,_,f,void 0)}function sM(t){return{trackSymbol:()=>!1,moduleResolverHost:ove(t.program,t.host)}}var Cvt=(t=>(t[t.Method=1]="Method",t[t.Property=2]="Property",t[t.All=3]="All",t))(Cvt||{});function Dvt(t,n,a,c,u,_,f,y,g=3,k=!1){let T=t.getDeclarations(),C=pi(T),O=c.program.getTypeChecker(),F=$c(c.program.getCompilerOptions()),M=C?.kind??172,U=Ae(t,C),J=C?tm(C):0,G=J&256;G|=J&1?1:J&4?4:0,C&&Mh(C)&&(G|=512);let Z=Oe(),Q=O.getWidenedType(O.getTypeOfSymbolAtLocation(t,n)),re=!!(t.flags&16777216),ae=!!(n.flags&33554432)||k,_e=Vg(a,u),me=1|(_e===0?268435456:0);switch(M){case 172:case 173:let Fe=O.typeToTypeNode(Q,n,me,8,sM(c));if(_){let de=$P(Fe,F);de&&(Fe=de.typeNode,C3(_,de.symbols))}f(W.createPropertyDeclaration(Z,C?ue(U):t.getName(),re&&g&2?W.createToken(58):void 0,Fe,void 0));break;case 178:case 179:{$.assertIsDefined(T);let de=O.typeToTypeNode(Q,n,me,void 0,sM(c)),ze=uP(T,C),ut=ze.secondAccessor?[ze.firstAccessor,ze.secondAccessor]:[ze.firstAccessor];if(_){let je=$P(de,F);je&&(de=je.typeNode,C3(_,je.symbols))}for(let je of ut)if(T0(je))f(W.createGetAccessorDeclaration(Z,ue(U),j,Ce(de),De(y,_e,ae)));else{$.assertNode(je,mg,"The counterpart to a getter should be a setter");let ve=NU(je),Le=ve&&ct(ve.name)?Zi(ve.name):void 0;f(W.createSetAccessorDeclaration(Z,ue(U),ZRe(1,[Le],[Ce(de)],1,!1),De(y,_e,ae)))}break}case 174:case 175:$.assertIsDefined(T);let Be=Q.isUnion()?an(Q.types,de=>de.getCallSignatures()):Q.getCallSignatures();if(!Pt(Be))break;if(T.length===1){$.assert(Be.length===1,"One declaration implies one signature");let de=Be[0];le(_e,de,Z,ue(U),De(y,_e,ae));break}for(let de of Be)de.declaration&&de.declaration.flags&33554432||le(_e,de,Z,ue(U));if(!ae)if(T.length>Be.length){let de=O.getSignatureFromDeclaration(T[T.length-1]);le(_e,de,Z,ue(U),De(y,_e))}else $.assert(T.length===Be.length,"Declarations and signatures should match count"),f(Dhr(O,c,n,Be,ue(U),re&&!!(g&1),Z,_e,y));break}function le(Fe,Be,de,ze,ut){let je=GSe(175,c,Fe,Be,ut,ze,de,re&&!!(g&1),n,_);je&&f(je)}function Oe(){let Fe;return G&&(Fe=ea(Fe,W.createModifiersFromModifierFlags(G))),be()&&(Fe=jt(Fe,W.createToken(164))),Fe&&W.createNodeArray(Fe)}function be(){return!!(c.program.getCompilerOptions().noImplicitOverride&&C&&pP(C))}function ue(Fe){return ct(Fe)&&Fe.escapedText==="constructor"?W.createComputedPropertyName(W.createStringLiteral(Zi(Fe),_e===0)):Il(Fe,!1)}function De(Fe,Be,de){return de?void 0:Il(Fe,!1)||XRe(Be)}function Ce(Fe){return Il(Fe,!1)}function Ae(Fe,Be){if(Fp(Fe)&262144){let de=Fe.links.nameType;if(de&&b0(de))return W.createIdentifier(oa(x0(de)))}return Il(cs(Be),!1)}}function GSe(t,n,a,c,u,_,f,y,g,k){let T=n.program,C=T.getTypeChecker(),O=$c(T.getCompilerOptions()),F=Ei(g),M=524545|(a===0?268435456:0),U=C.signatureToSignatureDeclaration(c,t,g,M,8,sM(n));if(!U)return;let J=F?void 0:U.typeParameters,G=U.parameters,Z=F?void 0:Il(U.type);if(k){if(J){let _e=Zo(J,me=>{let le=me.constraint,Oe=me.default;if(le){let be=$P(le,O);be&&(le=be.typeNode,C3(k,be.symbols))}if(Oe){let be=$P(Oe,O);be&&(Oe=be.typeNode,C3(k,be.symbols))}return W.updateTypeParameterDeclaration(me,me.modifiers,me.name,le,Oe)});J!==_e&&(J=qt(W.createNodeArray(_e,J.hasTrailingComma),J))}let ae=Zo(G,_e=>{let me=F?void 0:_e.type;if(me){let le=$P(me,O);le&&(me=le.typeNode,C3(k,le.symbols))}return W.updateParameterDeclaration(_e,_e.modifiers,_e.dotDotDotToken,_e.name,F?void 0:_e.questionToken,me,_e.initializer)});if(G!==ae&&(G=qt(W.createNodeArray(ae,G.hasTrailingComma),G)),Z){let _e=$P(Z,O);_e&&(Z=_e.typeNode,C3(k,_e.symbols))}}let Q=y?W.createToken(58):void 0,re=U.asteriskToken;if(bu(U))return W.updateFunctionExpression(U,f,U.asteriskToken,Ci(_,ct),J,G,Z,u??U.body);if(Iu(U))return W.updateArrowFunction(U,f,J,G,Z,U.equalsGreaterThanToken,u??U.body);if(Ep(U))return W.updateMethodDeclaration(U,f,re,_??W.createIdentifier(""),Q,J,G,Z,u);if(i_(U))return W.updateFunctionDeclaration(U,f,U.asteriskToken,Ci(_,ct),J,G,Z,u??U.body)}function KRe(t,n,a,c,u,_,f){let y=Vg(n.sourceFile,n.preferences),g=$c(n.program.getCompilerOptions()),k=sM(n),T=n.program.getTypeChecker(),C=Ei(f),{typeArguments:O,arguments:F,parent:M}=c,U=C?void 0:T.getContextualType(c),J=Cr(F,Oe=>ct(Oe)?Oe.text:no(Oe)&&ct(Oe.name)?Oe.name.text:void 0),G=C?[]:Cr(F,Oe=>T.getTypeAtLocation(Oe)),{argumentTypeNodes:Z,argumentTypeParameters:Q}=khr(T,a,G,f,g,1,8,k),re=_?W.createNodeArray(W.createModifiersFromModifierFlags(_)):void 0,ae=BH(M)?W.createToken(42):void 0,_e=C?void 0:Thr(T,Q,O),me=ZRe(F.length,J,Z,void 0,C),le=C||U===void 0?void 0:T.typeToTypeNode(U,f,void 0,void 0,k);switch(t){case 175:return W.createMethodDeclaration(re,ae,u,void 0,_e,me,le,XRe(y));case 174:return W.createMethodSignature(re,u,void 0,_e,me,le===void 0?W.createKeywordTypeNode(159):le);case 263:return $.assert(typeof u=="string"||ct(u),"Unexpected name"),W.createFunctionDeclaration(re,ae,u,_e,me,le,Mae(x.Function_not_implemented.message,y));default:$.fail("Unexpected kind")}}function Thr(t,n,a){let c=new Set(n.map(_=>_[0])),u=new Map(n);if(a){let _=a.filter(y=>!n.some(g=>{var k;return t.getTypeAtLocation(y)===((k=g[1])==null?void 0:k.argumentType)})),f=c.size+_.length;for(let y=0;c.size{var f;return W.createTypeParameterDeclaration(void 0,_,(f=u.get(_))==null?void 0:f.constraint)})}function Avt(t){return 84+t<=90?String.fromCharCode(84+t):`T${t}`}function HSe(t,n,a,c,u,_,f,y){let g=t.typeToTypeNode(a,c,_,f,y);if(g)return QRe(g,n,u)}function QRe(t,n,a){let c=$P(t,a);return c&&(C3(n,c.symbols),t=c.typeNode),Il(t)}function Ehr(t,n){var a;$.assert(n.typeArguments);let c=n.typeArguments,u=n.target;for(let _=0;_g===c[k]))return _}return c.length}function wvt(t,n,a,c,u,_){let f=t.typeToTypeNode(n,a,c,u,_);if(f){if(Ug(f)){let y=n;if(y.typeArguments&&f.typeArguments){let g=Ehr(t,y);if(g=c?W.createToken(58):void 0,u?void 0:a?.[y]||W.createKeywordTypeNode(159),void 0);_.push(T)}return _}function Dhr(t,n,a,c,u,_,f,y,g){let k=c[0],T=c[0].minArgumentCount,C=!1;for(let U of c)T=Math.min(U.minArgumentCount,T),Am(U)&&(C=!0),U.parameters.length>=k.parameters.length&&(!Am(U)||Am(k))&&(k=U);let O=k.parameters.length-(Am(k)?1:0),F=k.parameters.map(U=>U.name),M=ZRe(O,F,void 0,T,!1);if(C){let U=W.createParameterDeclaration(void 0,W.createToken(26),F[O]||"rest",O>=T?W.createToken(58):void 0,W.createArrayTypeNode(W.createKeywordTypeNode(159)),void 0);M.push(U)}return whr(f,u,_,void 0,M,Ahr(c,t,n,a),y,g)}function Ahr(t,n,a,c){if(te(t)){let u=n.getUnionType(Cr(t,n.getReturnTypeOfSignature));return n.typeToTypeNode(u,c,1,8,sM(a))}}function whr(t,n,a,c,u,_,f,y){return W.createMethodDeclaration(t,void 0,n,a?W.createToken(58):void 0,c,u,_,y||XRe(f))}function XRe(t){return Mae(x.Method_not_implemented.message,t)}function Mae(t,n){return W.createBlock([W.createThrowStatement(W.createNewExpression(W.createIdentifier("Error"),void 0,[W.createStringLiteral(t,n===0)]))],!0)}function YRe(t,n,a){let c=fU(n);if(!c)return;let u=Ovt(c,"compilerOptions");if(u===void 0){t.insertNodeAtObjectStart(n,c,tLe("compilerOptions",W.createObjectLiteralExpression(a.map(([f,y])=>tLe(f,y)),!0)));return}let _=u.initializer;if(Lc(_))for(let[f,y]of a){let g=Ovt(_,f);g===void 0?t.insertNodeAtObjectStart(n,_,tLe(f,y)):t.replaceNode(n,g.initializer,y)}}function eLe(t,n,a,c){YRe(t,n,[[a,c]])}function tLe(t,n){return W.createPropertyAssignment(W.createStringLiteral(t),n)}function Ovt(t,n){return wt(t.properties,a=>td(a)&&!!a.name&&Ic(a.name)&&a.name.text===n)}function $P(t,n){let a,c=At(t,u,Wo);if(a&&c)return{typeNode:c,symbols:a};function u(_){if(jT(_)&&_.qualifier){let f=_h(_.qualifier);if(!f.symbol)return Dn(_,u,void 0);let y=oae(f.symbol,n),g=y!==f.text?Fvt(_.qualifier,W.createIdentifier(y)):_.qualifier;a=jt(a,f.symbol);let k=Bn(_.typeArguments,u,Wo);return W.createTypeReferenceNode(g,k)}return Dn(_,u,void 0)}}function Fvt(t,n){return t.kind===80?n:W.createQualifiedName(Fvt(t.left,n),t.right)}function C3(t,n){n.forEach(a=>t.addImportFromExportedSymbol(a,!0))}function rLe(t,n){let a=Xn(n),c=la(t,n.start);for(;c.end_.replaceNode(n,a,c));return wv($vt,u,[x.Replace_import_with_0,u[0].textChanges[0].newText])}gc({errorCodes:[x.This_expression_is_not_callable.code,x.This_expression_is_not_constructable.code],getCodeActions:zhr});function zhr(t){let n=t.sourceFile,a=x.This_expression_is_not_callable.code===t.errorCode?214:215,c=fn(la(n,t.span.start),_=>_.kind===a);if(!c)return[];let u=c.expression;return zvt(t,u)}gc({errorCodes:[x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,x.Type_0_does_not_satisfy_the_constraint_1.code,x.Type_0_is_not_assignable_to_type_1.code,x.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,x.Type_predicate_0_is_not_assignable_to_1.code,x.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,x._0_index_type_1_is_not_assignable_to_2_index_type_3.code,x.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,x.Property_0_in_type_1_is_not_assignable_to_type_2.code,x.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,x.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:qhr});function qhr(t){let n=t.sourceFile,a=fn(la(n,t.span.start),c=>c.getStart()===t.span.start&&c.getEnd()===t.span.start+t.span.length);return a?zvt(t,a):[]}function zvt(t,n){let a=t.program.getTypeChecker().getTypeAtLocation(n);if(!(a.symbol&&wx(a.symbol)&&a.symbol.links.originatingImport))return[];let c=[],u=a.symbol.links.originatingImport;if(Bh(u)||En(c,Uhr(t,u)),Vt(n)&&!(Vp(n.parent)&&n.parent.name===n)){let _=t.sourceFile,f=ki.ChangeTracker.with(t,y=>y.replaceNode(_,n,W.createPropertyAccessExpression(n,"default"),{}));c.push(wv($vt,f,x.Use_synthetic_default_member))}return c}var nLe="strictClassInitialization",iLe="addMissingPropertyDefiniteAssignmentAssertions",oLe="addMissingPropertyUndefinedType",aLe="addMissingPropertyInitializer",qvt=[x.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];gc({errorCodes:qvt,getCodeActions:function(n){let a=Jvt(n.sourceFile,n.span.start);if(!a)return;let c=[];return jt(c,Vhr(n,a)),jt(c,Jhr(n,a)),jt(c,Whr(n,a)),c},fixIds:[iLe,oLe,aLe],getAllCodeActions:t=>Vl(t,qvt,(n,a)=>{let c=Jvt(a.file,a.start);if(c)switch(t.fixId){case iLe:Vvt(n,a.file,c.prop);break;case oLe:Wvt(n,a.file,c);break;case aLe:let u=t.program.getTypeChecker(),_=Hvt(u,c.prop);if(!_)return;Gvt(n,a.file,c.prop,_);break;default:$.fail(JSON.stringify(t.fixId))}})});function Jvt(t,n){let a=la(t,n);if(ct(a)&&ps(a.parent)){let c=X_(a.parent);if(c)return{type:c,prop:a.parent,isJs:Ei(a.parent)}}}function Jhr(t,n){if(n.isJs)return;let a=ki.ChangeTracker.with(t,c=>Vvt(c,t.sourceFile,n.prop));return Xs(nLe,a,[x.Add_definite_assignment_assertion_to_property_0,n.prop.getText()],iLe,x.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function Vvt(t,n,a){$g(a);let c=W.updatePropertyDeclaration(a,a.modifiers,a.name,W.createToken(54),a.type,a.initializer);t.replaceNode(n,a,c)}function Vhr(t,n){let a=ki.ChangeTracker.with(t,c=>Wvt(c,t.sourceFile,n));return Xs(nLe,a,[x.Add_undefined_type_to_property_0,n.prop.name.getText()],oLe,x.Add_undefined_type_to_all_uninitialized_properties)}function Wvt(t,n,a){let c=W.createKeywordTypeNode(157),u=SE(a.type)?a.type.types.concat(c):[a.type,c],_=W.createUnionTypeNode(u);a.isJs?t.addJSDocTags(n,a.prop,[W.createJSDocTypeTag(void 0,W.createJSDocTypeExpression(_))]):t.replaceNode(n,a.type,_)}function Whr(t,n){if(n.isJs)return;let a=t.program.getTypeChecker(),c=Hvt(a,n.prop);if(!c)return;let u=ki.ChangeTracker.with(t,_=>Gvt(_,t.sourceFile,n.prop,c));return Xs(nLe,u,[x.Add_initializer_to_property_0,n.prop.name.getText()],aLe,x.Add_initializers_to_all_uninitialized_properties)}function Gvt(t,n,a,c){$g(a);let u=W.updatePropertyDeclaration(a,a.modifiers,a.name,a.questionToken,a.type,c);t.replaceNode(n,a,u)}function Hvt(t,n){return Kvt(t,t.getTypeFromTypeNode(n.type))}function Kvt(t,n){if(n.flags&512)return n===t.getFalseType()||n===t.getFalseType(!0)?W.createFalse():W.createTrue();if(n.isStringLiteral())return W.createStringLiteral(n.value);if(n.isNumberLiteral())return W.createNumericLiteral(n.value);if(n.flags&2048)return W.createBigIntLiteral(n.value);if(n.isUnion())return Je(n.types,a=>Kvt(t,a));if(n.isClass()){let a=JT(n.symbol);if(!a||ko(a,64))return;let c=Rx(a);return c&&c.parameters.length?void 0:W.createNewExpression(W.createIdentifier(n.symbol.name),void 0,void 0)}else if(t.isArrayLikeType(n))return W.createArrayLiteralExpression()}var sLe="requireInTs",Qvt=[x.require_call_may_be_converted_to_an_import.code];gc({errorCodes:Qvt,getCodeActions(t){let n=Xvt(t.sourceFile,t.program,t.span.start,t.preferences);if(!n)return;let a=ki.ChangeTracker.with(t,c=>Zvt(c,t.sourceFile,n));return[Xs(sLe,a,x.Convert_require_to_import,sLe,x.Convert_all_require_to_import)]},fixIds:[sLe],getAllCodeActions:t=>Vl(t,Qvt,(n,a)=>{let c=Xvt(a.file,t.program,a.start,t.preferences);c&&Zvt(n,t.sourceFile,c)})});function Zvt(t,n,a){let{allowSyntheticDefaults:c,defaultImportName:u,namedImports:_,statement:f,moduleSpecifier:y}=a;t.replaceNode(n,f,u&&!c?W.createImportEqualsDeclaration(void 0,!1,u,W.createExternalModuleReference(y)):W.createImportDeclaration(void 0,W.createImportClause(void 0,u,_),y,void 0))}function Xvt(t,n,a,c){let{parent:u}=la(t,a);$h(u,!0)||$.failBadSyntaxKind(u);let _=Ba(u.parent,Oo),f=Vg(t,c),y=Ci(_.name,ct),g=$y(_.name)?Ghr(_.name):void 0;if(y||g){let k=To(u.arguments);return{allowSyntheticDefaults:iF(n.getCompilerOptions()),defaultImportName:y,namedImports:g,statement:Ba(_.parent.parent,h_),moduleSpecifier:r3(k)?W.createStringLiteral(k.text,f===0):k}}}function Ghr(t){let n=[];for(let a of t.elements){if(!ct(a.name)||a.initializer)return;n.push(W.createImportSpecifier(!1,Ci(a.propertyName,ct),a.name))}if(n.length)return W.createNamedImports(n)}var cLe="useDefaultImport",Yvt=[x.Import_may_be_converted_to_a_default_import.code];gc({errorCodes:Yvt,getCodeActions(t){let{sourceFile:n,span:{start:a}}=t,c=eSt(n,a);if(!c)return;let u=ki.ChangeTracker.with(t,_=>tSt(_,n,c,t.preferences));return[Xs(cLe,u,x.Convert_to_default_import,cLe,x.Convert_all_to_default_imports)]},fixIds:[cLe],getAllCodeActions:t=>Vl(t,Yvt,(n,a)=>{let c=eSt(a.file,a.start);c&&tSt(n,a.file,c,t.preferences)})});function eSt(t,n){let a=la(t,n);if(!ct(a))return;let{parent:c}=a;if(gd(c)&&WT(c.moduleReference))return{importNode:c,name:a,moduleSpecifier:c.moduleReference.expression};if(zx(c)&&fp(c.parent.parent)){let u=c.parent.parent;return{importNode:u,name:a,moduleSpecifier:u.moduleSpecifier}}}function tSt(t,n,a,c){t.replaceNode(n,a.importNode,IC(a.name,void 0,a.moduleSpecifier,Vg(n,c)))}var lLe="useBigintLiteral",rSt=[x.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];gc({errorCodes:rSt,getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>nSt(c,n.sourceFile,n.span));if(a.length>0)return[Xs(lLe,a,x.Convert_to_a_bigint_numeric_literal,lLe,x.Convert_all_to_bigint_numeric_literals)]},fixIds:[lLe],getAllCodeActions:t=>Vl(t,rSt,(n,a)=>nSt(n,a.file,a))});function nSt(t,n,a){let c=Ci(la(n,a.start),qh);if(!c)return;let u=c.getText(n)+"n";t.replaceNode(n,c,W.createBigIntLiteral(u))}var Hhr="fixAddModuleReferTypeMissingTypeof",uLe=Hhr,iSt=[x.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];gc({errorCodes:iSt,getCodeActions:function(n){let{sourceFile:a,span:c}=n,u=oSt(a,c.start),_=ki.ChangeTracker.with(n,f=>aSt(f,a,u));return[Xs(uLe,_,x.Add_missing_typeof,uLe,x.Add_missing_typeof)]},fixIds:[uLe],getAllCodeActions:t=>Vl(t,iSt,(n,a)=>aSt(n,t.sourceFile,oSt(a.file,a.start)))});function oSt(t,n){let a=la(t,n);return $.assert(a.kind===102,"This token should be an ImportKeyword"),$.assert(a.parent.kind===206,"Token parent should be an ImportType"),a.parent}function aSt(t,n,a){let c=W.updateImportTypeNode(a,a.argument,a.attributes,a.qualifier,a.typeArguments,!0);t.replaceNode(n,a,c)}var pLe="wrapJsxInFragment",sSt=[x.JSX_expressions_must_have_one_parent_element.code];gc({errorCodes:sSt,getCodeActions:function(n){let{sourceFile:a,span:c}=n,u=cSt(a,c.start);if(!u)return;let _=ki.ChangeTracker.with(n,f=>lSt(f,a,u));return[Xs(pLe,_,x.Wrap_in_JSX_fragment,pLe,x.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[pLe],getAllCodeActions:t=>Vl(t,sSt,(n,a)=>{let c=cSt(t.sourceFile,a.start);c&&lSt(n,t.sourceFile,c)})});function cSt(t,n){let u=la(t,n).parent.parent;if(!(!wi(u)&&(u=u.parent,!wi(u)))&&Op(u.operatorToken))return u}function lSt(t,n,a){let c=Khr(a);c&&t.replaceNode(n,a,W.createJsxFragment(W.createJsxOpeningFragment(),c,W.createJsxJsxClosingFragment()))}function Khr(t){let n=[],a=t;for(;;)if(wi(a)&&Op(a.operatorToken)&&a.operatorToken.kind===28){if(n.push(a.left),hG(a.right))return n.push(a.right),n;if(wi(a.right)){a=a.right;continue}else return}else return}var _Le="wrapDecoratorInParentheses",uSt=[x.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];gc({errorCodes:uSt,getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>pSt(c,n.sourceFile,n.span.start));return[Xs(_Le,a,x.Wrap_in_parentheses,_Le,x.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[_Le],getAllCodeActions:t=>Vl(t,uSt,(n,a)=>pSt(n,a.file,a.start))});function pSt(t,n,a){let c=la(n,a),u=fn(c,hd);$.assert(!!u,"Expected position to be owned by a decorator.");let _=W.createParenthesizedExpression(u.expression);t.replaceNode(n,u.expression,_)}var dLe="fixConvertToMappedObjectType",_St=[x.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];gc({errorCodes:_St,getCodeActions:function(n){let{sourceFile:a,span:c}=n,u=dSt(a,c.start);if(!u)return;let _=ki.ChangeTracker.with(n,y=>fSt(y,a,u)),f=Zi(u.container.name);return[Xs(dLe,_,[x.Convert_0_to_mapped_object_type,f],dLe,[x.Convert_0_to_mapped_object_type,f])]},fixIds:[dLe],getAllCodeActions:t=>Vl(t,_St,(n,a)=>{let c=dSt(a.file,a.start);c&&fSt(n,a.file,c)})});function dSt(t,n){let a=la(t,n),c=Ci(a.parent.parent,vC);if(!c)return;let u=Af(c.parent)?c.parent:Ci(c.parent.parent,s1);if(u)return{indexSignature:c,container:u}}function Qhr(t,n){return W.createTypeAliasDeclaration(t.modifiers,t.name,t.typeParameters,n)}function fSt(t,n,{indexSignature:a,container:c}){let _=(Af(c)?c.members:c.type.members).filter(T=>!vC(T)),f=To(a.parameters),y=W.createTypeParameterDeclaration(void 0,Ba(f.name,ct),f.type),g=W.createMappedTypeNode(Q4(a)?W.createModifier(148):void 0,y,void 0,a.questionToken,a.type,void 0),k=W.createIntersectionTypeNode([...EU(c),g,..._.length?[W.createTypeLiteralNode(_)]:j]);t.replaceNode(n,c,Qhr(c,k))}var mSt="removeAccidentalCallParentheses",Zhr=[x.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];gc({errorCodes:Zhr,getCodeActions(t){let n=fn(la(t.sourceFile,t.span.start),Js);if(!n)return;let a=ki.ChangeTracker.with(t,c=>{c.deleteRange(t.sourceFile,{pos:n.expression.end,end:n.end})});return[wv(mSt,a,x.Remove_parentheses)]},fixIds:[mSt]});var fLe="removeUnnecessaryAwait",hSt=[x.await_has_no_effect_on_the_type_of_this_expression.code];gc({errorCodes:hSt,getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>gSt(c,n.sourceFile,n.span));if(a.length>0)return[Xs(fLe,a,x.Remove_unnecessary_await,fLe,x.Remove_all_unnecessary_uses_of_await)]},fixIds:[fLe],getAllCodeActions:t=>Vl(t,hSt,(n,a)=>gSt(n,a.file,a))});function gSt(t,n,a){let c=Ci(la(n,a.start),y=>y.kind===135),u=c&&Ci(c.parent,SC);if(!u)return;let _=u;if(mh(u.parent)){let y=aL(u.expression,!1);if(ct(y)){let g=vd(u.parent.pos,n);g&&g.kind!==105&&(_=u.parent)}}t.replaceNode(n,_,u.expression)}var ySt=[x.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],mLe="splitTypeOnlyImport";gc({errorCodes:ySt,fixIds:[mLe],getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>SSt(c,vSt(n.sourceFile,n.span),n));if(a.length)return[Xs(mLe,a,x.Split_into_two_separate_import_declarations,mLe,x.Split_all_invalid_type_only_imports)]},getAllCodeActions:t=>Vl(t,ySt,(n,a)=>{SSt(n,vSt(t.sourceFile,a),t)})});function vSt(t,n){return fn(la(t,n.start),fp)}function SSt(t,n,a){if(!n)return;let c=$.checkDefined(n.importClause);t.replaceNode(a.sourceFile,n,W.updateImportDeclaration(n,n.modifiers,W.updateImportClause(c,c.phaseModifier,c.name,void 0),n.moduleSpecifier,n.attributes)),t.insertNodeAfter(a.sourceFile,n,W.createImportDeclaration(void 0,W.updateImportClause(c,c.phaseModifier,void 0,c.namedBindings),n.moduleSpecifier,n.attributes))}var hLe="fixConvertConstToLet",bSt=[x.Cannot_assign_to_0_because_it_is_a_constant.code];gc({errorCodes:bSt,getCodeActions:function(n){let{sourceFile:a,span:c,program:u}=n,_=xSt(a,c.start,u);if(_===void 0)return;let f=ki.ChangeTracker.with(n,y=>TSt(y,a,_.token));return[D9e(hLe,f,x.Convert_const_to_let,hLe,x.Convert_all_const_to_let)]},getAllCodeActions:t=>{let{program:n}=t,a=new Set;return VF(ki.ChangeTracker.with(t,c=>{WF(t,bSt,u=>{let _=xSt(u.file,u.start,n);if(_&&o1(a,hc(_.symbol)))return TSt(c,u.file,_.token)})}))},fixIds:[hLe]});function xSt(t,n,a){var c;let _=a.getTypeChecker().getSymbolAtLocation(la(t,n));if(_===void 0)return;let f=Ci((c=_?.valueDeclaration)==null?void 0:c.parent,Df);if(f===void 0)return;let y=Kl(f,87,t);if(y!==void 0)return{symbol:_,token:y}}function TSt(t,n,a){t.replaceNode(n,a,W.createToken(121))}var gLe="fixExpectedComma",Xhr=x._0_expected.code,ESt=[Xhr];gc({errorCodes:ESt,getCodeActions(t){let{sourceFile:n}=t,a=kSt(n,t.span.start,t.errorCode);if(!a)return;let c=ki.ChangeTracker.with(t,u=>CSt(u,n,a));return[Xs(gLe,c,[x.Change_0_to_1,";",","],gLe,[x.Change_0_to_1,";",","])]},fixIds:[gLe],getAllCodeActions:t=>Vl(t,ESt,(n,a)=>{let c=kSt(a.file,a.start,a.code);c&&CSt(n,t.sourceFile,c)})});function kSt(t,n,a){let c=la(t,n);return c.kind===27&&c.parent&&(Lc(c.parent)||qf(c.parent))?{node:c}:void 0}function CSt(t,n,{node:a}){let c=W.createToken(28);t.replaceNode(n,a,c)}var Yhr="addVoidToPromise",DSt="addVoidToPromise",ASt=[x.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,x.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];gc({errorCodes:ASt,fixIds:[DSt],getCodeActions(t){let n=ki.ChangeTracker.with(t,a=>wSt(a,t.sourceFile,t.span,t.program));if(n.length>0)return[Xs(Yhr,n,x.Add_void_to_Promise_resolved_without_a_value,DSt,x.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(t){return Vl(t,ASt,(n,a)=>wSt(n,a.file,a,t.program,new Set))}});function wSt(t,n,a,c,u){let _=la(n,a.start);if(!ct(_)||!Js(_.parent)||_.parent.expression!==_||_.parent.arguments.length!==0)return;let f=c.getTypeChecker(),y=f.getSymbolAtLocation(_),g=y?.valueDeclaration;if(!g||!wa(g)||!SP(g.parent.parent)||u?.has(g))return;u?.add(g);let k=egr(g.parent.parent);if(Pt(k)){let T=k[0],C=!SE(T)&&!i3(T)&&i3(W.createUnionTypeNode([T,W.createKeywordTypeNode(116)]).types[0]);C&&t.insertText(n,T.pos,"("),t.insertText(n,T.end,C?") | void":" | void")}else{let T=f.getResolvedSignature(_.parent),C=T?.parameters[0],O=C&&f.getTypeOfSymbolAtLocation(C,g.parent.parent);Ei(g)?(!O||O.flags&3)&&(t.insertText(n,g.parent.parent.end,")"),t.insertText(n,_c(n.text,g.parent.parent.pos),"/** @type {Promise} */(")):(!O||O.flags&2)&&t.insertText(n,g.parent.parent.expression.end,"")}}function egr(t){var n;if(Ei(t)){if(mh(t.parent)){let a=(n=mv(t.parent))==null?void 0:n.typeExpression.type;if(a&&Ug(a)&&ct(a.typeName)&&Zi(a.typeName)==="Promise")return a.typeArguments}}else return t.typeArguments}var KF={};d(KF,{CompletionKind:()=>WSt,CompletionSource:()=>PSt,SortText:()=>om,StringCompletions:()=>abe,SymbolOriginInfoKind:()=>NSt,createCompletionDetails:()=>$ae,createCompletionDetailsForSymbol:()=>CLe,getCompletionEntriesFromSymbols:()=>ELe,getCompletionEntryDetails:()=>Pgr,getCompletionEntrySymbol:()=>Ogr,getCompletionsAtPosition:()=>cgr,getDefaultCommitCharacters:()=>D3,getPropertiesForObjectExpression:()=>nbe,moduleSpecifierResolutionCacheAttemptLimit:()=>ISt,moduleSpecifierResolutionLimit:()=>yLe});var yLe=100,ISt=1e3,om={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated(t){return"z"+t},ObjectLiteralProperty(t,n){return`${t}\0${n}\0`},SortBelow(t){return t+"1"}},MS=[".",",",";"],KSe=[".",";"],PSt=(t=>(t.ThisProperty="ThisProperty/",t.ClassMemberSnippet="ClassMemberSnippet/",t.TypeOnlyAlias="TypeOnlyAlias/",t.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",t.SwitchCases="SwitchCases/",t.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",t))(PSt||{}),NSt=(t=>(t[t.ThisType=1]="ThisType",t[t.SymbolMember=2]="SymbolMember",t[t.Export=4]="Export",t[t.Promise=8]="Promise",t[t.Nullable=16]="Nullable",t[t.ResolvedExport=32]="ResolvedExport",t[t.TypeOnlyAlias=64]="TypeOnlyAlias",t[t.ObjectLiteralMethod=128]="ObjectLiteralMethod",t[t.Ignore=256]="Ignore",t[t.ComputedPropertyName=512]="ComputedPropertyName",t[t.SymbolMemberNoExport=2]="SymbolMemberNoExport",t[t.SymbolMemberExport=6]="SymbolMemberExport",t))(NSt||{});function tgr(t){return!!(t.kind&1)}function rgr(t){return!!(t.kind&2)}function jae(t){return!!(t&&t.kind&4)}function fq(t){return!!(t&&t.kind===32)}function ngr(t){return jae(t)||fq(t)||vLe(t)}function igr(t){return(jae(t)||fq(t))&&!!t.isFromPackageJson}function ogr(t){return!!(t.kind&8)}function agr(t){return!!(t.kind&16)}function OSt(t){return!!(t&&t.kind&64)}function FSt(t){return!!(t&&t.kind&128)}function sgr(t){return!!(t&&t.kind&256)}function vLe(t){return!!(t&&t.kind&512)}function RSt(t,n,a,c,u,_,f,y,g){var k,T,C,O;let F=Ml(),M=f||fH(c.getCompilerOptions())||((k=_.autoImportSpecifierExcludeRegexes)==null?void 0:k.length),U=!1,J=0,G=0,Z=0,Q=0,re=g({tryResolve:_e,skippedAny:()=>U,resolvedAny:()=>G>0,resolvedBeyondLimit:()=>G>yLe}),ae=Q?` (${(Z/Q*100).toFixed(1)}% hit rate)`:"";return(T=n.log)==null||T.call(n,`${t}: resolved ${G} module specifiers, plus ${J} ambient and ${Z} from cache${ae}`),(C=n.log)==null||C.call(n,`${t}: response is ${U?"incomplete":"complete"}`),(O=n.log)==null||O.call(n,`${t}: ${Ml()-F}`),re;function _e(me,le){if(le){let De=a.getModuleSpecifierForBestExportInfo(me,u,y);return De&&J++,De||"failed"}let Oe=M||_.allowIncompleteCompletions&&G{let M=Wn(g.entries,U=>{var J;if(!U.hasAction||!U.source||!U.data||LSt(U.data))return U;if(!cbt(U.name,T))return;let{origin:G}=$.checkDefined(HSt(U.name,U.data,c,u)),Z=C.get(n.path,U.data.exportMapKey),Q=Z&&F.tryResolve(Z,!vt(i1(G.moduleSymbol.name)));if(Q==="skipped")return U;if(!Q||Q==="failed"){(J=u.log)==null||J.call(u,`Unexpected failure resolving auto import for '${U.name}' from '${U.source}'`);return}let re={...G,kind:32,moduleSpecifier:Q.moduleSpecifier};return U.data=JSt(re),U.source=TLe(re),U.sourceDisplay=[Vy(re.moduleSpecifier)],U});return F.skippedAny()||(g.isIncomplete=void 0),M});return g.entries=O,g.flags=(g.flags||0)|4,g.optionalReplacementSpan=$St(k),g}function SLe(t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t,defaultCommitCharacters:D3(!1)}}function MSt(t,n,a,c,u,_){let f=la(t,n);if(!MR(f)&&!kv(f))return[];let y=kv(f)?f:f.parent;if(!kv(y))return[];let g=y.parent;if(!Rs(g))return[];let k=ph(t),T=u.includeCompletionsWithSnippetText||void 0,C=Lo(y.tags,O=>Uy(O)&&O.getEnd()<=n);return Wn(g.parameters,O=>{if(!P4(O).length){if(ct(O.name)){let F={tabstop:1},M=O.name.text,U=bQ(M,O.initializer,O.dotDotDotToken,k,!1,!1,a,c,u),J=T?bQ(M,O.initializer,O.dotDotDotToken,k,!1,!0,a,c,u,F):void 0;return _&&(U=U.slice(1),J&&(J=J.slice(1))),{name:U,kind:"parameter",sortText:om.LocationPriority,insertText:T?J:void 0,isSnippet:T}}else if(O.parent.parameters.indexOf(O)===C){let F=`param${C}`,M=jSt(F,O.name,O.initializer,O.dotDotDotToken,k,!1,a,c,u),U=T?jSt(F,O.name,O.initializer,O.dotDotDotToken,k,!0,a,c,u):void 0,J=M.join(fE(c)+"* "),G=U?.join(fE(c)+"* ");return _&&(J=J.slice(1),G&&(G=G.slice(1))),{name:J,kind:"parameter",sortText:om.LocationPriority,insertText:T?G:void 0,isSnippet:T}}}})}function jSt(t,n,a,c,u,_,f,y,g){if(!u)return[bQ(t,a,c,u,!1,_,f,y,g,{tabstop:1})];return k(t,n,a,c,{tabstop:1});function k(C,O,F,M,U){if($y(O)&&!M){let G={tabstop:U.tabstop},Z=bQ(C,F,M,u,!0,_,f,y,g,G),Q=[];for(let re of O.elements){let ae=T(C,re,G);if(ae)Q.push(...ae);else{Q=void 0;break}}if(Q)return U.tabstop=G.tabstop,[Z,...Q]}return[bQ(C,F,M,u,!1,_,f,y,g,U)]}function T(C,O,F){if(!O.propertyName&&ct(O.name)||ct(O.name)){let M=O.propertyName?pU(O.propertyName):O.name.text;if(!M)return;let U=`${C}.${M}`;return[bQ(U,O.initializer,O.dotDotDotToken,u,!1,_,f,y,g,F)]}else if(O.propertyName){let M=pU(O.propertyName);return M&&k(`${C}.${M}`,O.name,O.initializer,O.dotDotDotToken,F)}}}function bQ(t,n,a,c,u,_,f,y,g,k){if(_&&$.assertIsDefined(k),n&&(t=ugr(t,n)),_&&(t=mP(t)),c){let T="*";if(u)$.assert(!a,"Cannot annotate a rest parameter with type 'Object'."),T="Object";else{if(n){let F=f.getTypeAtLocation(n.parent);if(!(F.flags&16385)){let M=n.getSourceFile(),J=Vg(M,g)===0?268435456:0,G=f.typeToTypeNode(F,fn(n,Rs),J);if(G){let Z=_?XSe({removeComments:!0,module:y.module,moduleResolution:y.moduleResolution,target:y.target}):DC({removeComments:!0,module:y.module,moduleResolution:y.moduleResolution,target:y.target});Ai(G,1),T=Z.printNode(4,G,M)}}}_&&T==="*"&&(T=`\${${k.tabstop++}:${T}}`)}let C=!u&&a?"...":"",O=_?`\${${k.tabstop++}}`:"";return`@param {${C}${T}} ${t} ${O}`}else{let T=_?`\${${k.tabstop++}}`:"";return`@param ${t} ${T}`}}function ugr(t,n){let a=n.getText().trim();return a.includes(` +`)||a.length>80?`[${t}]`:`[${t}=${a}]`}function pgr(t){return{name:Zs(t),kind:"keyword",kindModifiers:"",sortText:om.GlobalsOrKeywords}}function _gr(t,n){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:n,entries:t.slice(),defaultCommitCharacters:D3(n)}}function BSt(t,n,a){return{kind:4,keywordCompletions:QSt(t,n),isNewIdentifierLocation:a}}function dgr(t){if(t===156)return 8;$.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}function $St(t){return t?.kind===80?yh(t):void 0}function fgr(t,n,a,c,u,_,f,y,g,k){let{symbols:T,contextToken:C,completionKind:O,isInSnippetScope:F,isNewIdentifierLocation:M,location:U,propertyAccessToConvert:J,keywordFilters:G,symbolToOriginInfoMap:Z,recommendedCompletion:Q,isJsxInitializer:re,isTypeOnlyLocation:ae,isJsxIdentifierExpected:_e,isRightOfOpenTag:me,isRightOfDotOrQuestionDot:le,importStatementCompletion:Oe,insideJsDocTagTypeExpression:be,symbolToSortTextMap:ue,hasUnresolvedAutoImports:De,defaultCommitCharacters:Ce}=_,Ae=_.literals,Fe=a.getTypeChecker();if(_H(t.scriptKind)===1){let ve=hgr(U,t);if(ve)return ve}let Be=fn(C,bL);if(Be&&(B3e(C)||oP(C,Be.expression))){let ve=lae(Fe,Be.parent.clauses);Ae=Ae.filter(Le=>!ve.hasValue(Le)),T.forEach((Le,Ve)=>{if(Le.valueDeclaration&>(Le.valueDeclaration)){let nt=Fe.getConstantValue(Le.valueDeclaration);nt!==void 0&&ve.hasValue(nt)&&(Z[Ve]={kind:256})}})}let de=dy(),ze=USt(t,c);if(ze&&!M&&(!T||T.length===0)&&G===0)return;let ut=ELe(T,de,void 0,C,U,g,t,n,a,$c(c),u,O,f,c,y,ae,J,_e,re,Oe,Q,Z,ue,_e,me,k);if(G!==0)for(let ve of QSt(G,!be&&ph(t)))(ae&&Qz(kx(ve.name))||!ae&&Ygr(ve.name)||!ut.has(ve.name))&&(ut.add(ve.name),vm(de,ve,Bae,void 0,!0));for(let ve of Bgr(C,g))ut.has(ve.name)||(ut.add(ve.name),vm(de,ve,Bae,void 0,!0));for(let ve of Ae){let Le=ygr(t,f,ve);ut.add(Le.name),vm(de,Le,Bae,void 0,!0)}ze||ggr(t,U.pos,ut,$c(c),de);let je;if(f.includeCompletionsWithInsertText&&C&&!me&&!le&&(je=fn(C,_z))){let ve=zSt(je,t,f,c,n,a,y);ve&&de.push(ve.entry)}return{flags:_.flags,isGlobalCompletion:F,isIncomplete:f.allowIncompleteCompletions&&De?!0:void 0,isMemberCompletion:mgr(O),isNewIdentifierLocation:M,optionalReplacementSpan:$St(U),entries:de,defaultCommitCharacters:Ce??D3(M)}}function USt(t,n){return!ph(t)||!!WU(t,n)}function zSt(t,n,a,c,u,_,f){let y=t.clauses,g=_.getTypeChecker(),k=g.getTypeAtLocation(t.parent.expression);if(k&&k.isUnion()&&ht(k.types,T=>T.isLiteral())){let T=lae(g,y),C=$c(c),O=Vg(n,a),F=Im.createImportAdder(n,_,a,u),M=[];for(let ae of k.types)if(ae.flags&1024){$.assert(ae.symbol,"An enum member type should have a symbol"),$.assert(ae.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");let _e=ae.symbol.valueDeclaration&&g.getConstantValue(ae.symbol.valueDeclaration);if(_e!==void 0){if(T.hasValue(_e))continue;T.addValue(_e)}let me=Im.typeToAutoImportableTypeNode(g,F,ae,t,C);if(!me)return;let le=QSe(me,C,O);if(!le)return;M.push(le)}else if(!T.hasValue(ae.value))switch(typeof ae.value){case"object":M.push(ae.value.negative?W.createPrefixUnaryExpression(41,W.createBigIntLiteral({negative:!1,base10Value:ae.value.base10Value})):W.createBigIntLiteral(ae.value));break;case"number":M.push(ae.value<0?W.createPrefixUnaryExpression(41,W.createNumericLiteral(-ae.value)):W.createNumericLiteral(ae.value));break;case"string":M.push(W.createStringLiteral(ae.value,O===0));break}if(M.length===0)return;let U=Cr(M,ae=>W.createCaseClause(ae,[])),J=ZT(u,f?.options),G=XSe({removeComments:!0,module:c.module,moduleResolution:c.moduleResolution,target:c.target,newLine:iQ(J)}),Z=f?ae=>G.printAndFormatNode(4,ae,n,f):ae=>G.printNode(4,ae,n),Q=Cr(U,(ae,_e)=>a.includeCompletionsWithSnippetText?`${Z(ae)}$${_e+1}`:`${Z(ae)}`).join(J);return{entry:{name:`${G.printNode(4,U[0],n)} ...`,kind:"",sortText:om.GlobalsOrKeywords,insertText:Q,hasAction:F.hasFixes()||void 0,source:"SwitchCases/",isSnippet:a.includeCompletionsWithSnippetText?!0:void 0},importAdder:F}}}function QSe(t,n,a){switch(t.kind){case 184:let c=t.typeName;return ZSe(c,n,a);case 200:let u=QSe(t.objectType,n,a),_=QSe(t.indexType,n,a);return u&&_&&W.createElementAccessExpression(u,_);case 202:let f=t.literal;switch(f.kind){case 11:return W.createStringLiteral(f.text,a===0);case 9:return W.createNumericLiteral(f.text,f.numericLiteralFlags)}return;case 197:let y=QSe(t.type,n,a);return y&&(ct(y)?y:W.createParenthesizedExpression(y));case 187:return ZSe(t.exprName,n,a);case 206:$.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function ZSe(t,n,a){if(ct(t))return t;let c=oa(t.right.escapedText);return ige(c,n)?W.createPropertyAccessExpression(ZSe(t.left,n,a),c):W.createElementAccessExpression(ZSe(t.left,n,a),W.createStringLiteral(c,a===0))}function mgr(t){switch(t){case 0:case 3:case 2:return!0;default:return!1}}function hgr(t,n){let a=fn(t,c=>{switch(c.kind){case 288:return!0;case 44:case 32:case 80:case 212:return!1;default:return"quit"}});if(a){let c=!!Kl(a,32,n),f=a.parent.openingElement.tagName.getText(n)+(c?"":">"),y=yh(a.tagName),g={name:f,kind:"class",kindModifiers:void 0,sortText:om.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:y,entries:[g],defaultCommitCharacters:D3(!1)}}}function ggr(t,n,a,c,u){vSe(t).forEach((_,f)=>{if(_===n)return;let y=oa(f);!a.has(y)&&Jd(y,c)&&(a.add(y),vm(u,{name:y,kind:"warning",kindModifiers:"",sortText:om.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},Bae))})}function bLe(t,n,a){return typeof a=="object"?fP(a)+"n":Ni(a)?rq(t,n,a):JSON.stringify(a)}function ygr(t,n,a){return{name:bLe(t,n,a),kind:"string",kindModifiers:"",sortText:om.LocationPriority,commitCharacters:[]}}function vgr(t,n,a,c,u,_,f,y,g,k,T,C,O,F,M,U,J,G,Z,Q,re,ae,_e,me){var le,Oe;let be,ue,De=Y1e(a,_),Ce,Ae,Fe=TLe(C),Be,de,ze,ut=g.getTypeChecker(),je=C&&agr(C),ve=C&&rgr(C)||T;if(C&&tgr(C))be=T?`this${je?"?.":""}[${xLe(f,Z,k)}]`:`this${je?"?.":"."}${k}`;else if((ve||je)&&F){be=ve?T?`[${xLe(f,Z,k)}]`:`[${k}]`:k,(je||F.questionDotToken)&&(be=`?.${be}`);let It=Kl(F,25,f)||Kl(F,29,f);if(!It)return;let ke=Ca(k,F.name.text)?F.name.end:It.end;De=Hu(It.getStart(f),ke)}if(M&&(be===void 0&&(be=k),be=`{${be}}`,typeof M!="boolean"&&(De=yh(M,f))),C&&ogr(C)&&F){be===void 0&&(be=k);let It=vd(F.pos,f),ke="";It&&eae(It.end,It.parent,f)&&(ke=";"),ke+=`(await ${F.expression.getText()})`,be=T?`${ke}${be}`:`${ke}${je?"?.":"."}${be}`;let Se=Ci(F.parent,SC)?F.parent:F.expression;De=Hu(Se.getStart(f),F.end)}if(fq(C)&&(Be=[Vy(C.moduleSpecifier)],U&&({insertText:be,replacementSpan:De}=Dgr(k,U,C,J,f,g,Z),Ae=Z.includeCompletionsWithSnippetText?!0:void 0)),C?.kind===64&&(de=!0),Q===0&&c&&((le=vd(c.pos,f,c))==null?void 0:le.kind)!==28&&(Ep(c.parent.parent)||T0(c.parent.parent)||mg(c.parent.parent)||qx(c.parent)||((Oe=fn(c.parent,td))==null?void 0:Oe.getLastToken(f))===c||im(c.parent)&&qs(f,c.getEnd()).line!==qs(f,_).line)&&(Fe="ObjectLiteralMemberWithComma/",de=!0),Z.includeCompletionsWithClassMemberSnippets&&Z.includeCompletionsWithInsertText&&Q===3&&bgr(t,u,f)){let It,ke=qSt(y,g,G,Z,k,t,u,_,c,re);if(ke)({insertText:be,filterText:ue,isSnippet:Ae,importAdder:It}=ke),(It?.hasFixes()||ke.eraseRange)&&(de=!0,Fe="ClassMemberSnippet/");else return}if(C&&FSt(C)&&({insertText:be,isSnippet:Ae,labelDetails:ze}=C,Z.useLabelDetailsInCompletionEntries||(k=k+ze.detail,ze=void 0),Fe="ObjectLiteralMethodSnippet/",n=om.SortBelow(n)),ae&&!_e&&Z.includeCompletionsWithSnippetText&&Z.jsxAttributeCompletionStyle&&Z.jsxAttributeCompletionStyle!=="none"&&!(NS(u.parent)&&u.parent.initializer)){let It=Z.jsxAttributeCompletionStyle==="braces",ke=ut.getTypeOfSymbolAtLocation(t,u);Z.jsxAttributeCompletionStyle==="auto"&&!(ke.flags&528)&&!(ke.flags&1048576&&wt(ke.types,_t=>!!(_t.flags&528)))&&(ke.flags&402653316||ke.flags&1048576&&ht(ke.types,_t=>!!(_t.flags&402686084||d7e(_t)))?(be=`${mP(k)}=${rq(f,Z,"$1")}`,Ae=!0):It=!0),It&&(be=`${mP(k)}={$1}`,Ae=!0)}if(be!==void 0&&!Z.includeCompletionsWithInsertText)return;(jae(C)||fq(C))&&(Ce=JSt(C),de=!U);let Le=fn(u,tne);if(Le){let It=$c(y.getCompilationSettings());if(!Jd(k,It))be=xLe(f,Z,k),Le.kind===276&&(wf.setText(f.text),wf.resetTokenState(_),wf.scan()===130&&wf.scan()===80||(be+=" as "+Sgr(k,It)));else if(Le.kind===276){let ke=kx(k);ke&&(ke===135||ehe(ke))&&(be=`${k} as ${k}_`)}}let Ve=wE.getSymbolKind(ut,t,u),nt=Ve==="warning"||Ve==="string"?[]:void 0;return{name:k,kind:Ve,kindModifiers:wE.getSymbolModifiers(ut,t),sortText:n,source:Fe,hasAction:de?!0:void 0,isRecommended:Agr(t,O,ut)||void 0,insertText:be,filterText:ue,replacementSpan:De,sourceDisplay:Be,labelDetails:ze,isSnippet:Ae,isPackageJsonImport:igr(C)||void 0,isImportStatementCompletion:!!U||void 0,data:Ce,commitCharacters:nt,...me?{symbol:t}:void 0}}function Sgr(t,n){let a=!1,c="",u;for(let _=0;_=65536?2:1)u=t.codePointAt(_),u!==void 0&&(_===0?pg(u,n):j1(u,n))?(a&&(c+="_"),c+=String.fromCodePoint(u),a=!1):a=!0;return a&&(c+="_"),c||"_"}function bgr(t,n,a){return Ei(n)?!1:!!(t.flags&106500)&&(Co(n)||n.parent&&n.parent.parent&&J_(n.parent)&&n===n.parent.name&&n.parent.getLastToken(a)===n.parent.name&&Co(n.parent.parent)||n.parent&&kL(n)&&Co(n.parent))}function qSt(t,n,a,c,u,_,f,y,g,k){let T=fn(f,Co);if(!T)return;let C,O=u,F=u,M=n.getTypeChecker(),U=f.getSourceFile(),J=XSe({removeComments:!0,module:a.module,moduleResolution:a.moduleResolution,target:a.target,omitTrailingSemicolon:!1,newLine:iQ(ZT(t,k?.options))}),G=Im.createImportAdder(U,n,c,t),Z;if(c.includeCompletionsWithSnippetText){C=!0;let Oe=W.createEmptyStatement();Z=W.createBlock([Oe],!0),Tge(Oe,{kind:0,order:0})}else Z=W.createBlock([],!0);let Q=0,{modifiers:re,range:ae,decorators:_e}=xgr(g,U,y),me=re&64&&T.modifierFlagsCache&64,le=[];if(Im.addNewNodeForMemberSymbol(_,T,U,{program:n,host:t},c,G,Oe=>{let be=0;me&&(be|=64),J_(Oe)&&M.getMemberOverrideModifierStatus(T,Oe,_)===1&&(be|=16),le.length||(Q=Oe.modifierFlagsCache|be),Oe=W.replaceModifiers(Oe,Q),le.push(Oe)},Z,Im.PreserveOptionalFlags.Property,!!me),le.length){let Oe=_.flags&8192,be=Q|16|1;Oe?be|=1024:be|=136;let ue=re&be;if(re&~be)return;if(Q&4&&ue&1&&(Q&=-5),ue!==0&&!(ue&1)&&(Q&=-2),Q|=ue,le=le.map(Ce=>W.replaceModifiers(Ce,Q)),_e?.length){let Ce=le[le.length-1];kP(Ce)&&(le[le.length-1]=W.replaceDecoratorsAndModifiers(Ce,_e.concat(Qk(Ce)||[])))}let De=131073;k?O=J.printAndFormatSnippetList(De,W.createNodeArray(le),U,k):O=J.printSnippetList(De,W.createNodeArray(le),U)}return{insertText:O,filterText:F,isSnippet:C,importAdder:G,eraseRange:ae}}function xgr(t,n,a){if(!t||qs(n,a).line>qs(n,t.getEnd()).line)return{modifiers:0};let c=0,u,_,f={pos:a,end:a};if(ps(t.parent)&&(_=Tgr(t))){t.parent.modifiers&&(c|=TS(t.parent.modifiers)&98303,u=t.parent.modifiers.filter(hd)||[],f.pos=Math.min(...t.parent.modifiers.map(g=>g.getStart(n))));let y=ZO(_);c&y||(c|=y,f.pos=Math.min(f.pos,t.getStart(n))),t.parent.name!==t&&(f.end=t.parent.name.getStart(n))}return{modifiers:c,decorators:u,range:f.posy.getSignaturesOfType(Q,0).length>0);if(Z.length===1)F=Z[0];else return}if(y.getSignaturesOfType(F,0).length!==1)return;let U=y.typeToTypeNode(F,n,O,void 0,Im.getNoopSymbolTrackerWithResolver({program:c,host:u}));if(!U||!Cb(U))return;let J;if(_.includeCompletionsWithSnippetText){let Z=W.createEmptyStatement();J=W.createBlock([Z],!0),Tge(Z,{kind:0,order:0})}else J=W.createBlock([],!0);let G=U.parameters.map(Z=>W.createParameterDeclaration(void 0,Z.dotDotDotToken,Z.name,void 0,void 0,Z.initializer));return W.createMethodDeclaration(void 0,void 0,k,void 0,void 0,G,void 0,J)}default:return}}function XSe(t){let n,a=ki.createWriter(fE(t)),c=DC(t,a),u={...a,write:O=>_(O,()=>a.write(O)),nonEscapingWrite:a.write,writeLiteral:O=>_(O,()=>a.writeLiteral(O)),writeStringLiteral:O=>_(O,()=>a.writeStringLiteral(O)),writeSymbol:(O,F)=>_(O,()=>a.writeSymbol(O,F)),writeParameter:O=>_(O,()=>a.writeParameter(O)),writeComment:O=>_(O,()=>a.writeComment(O)),writeProperty:O=>_(O,()=>a.writeProperty(O))};return{printSnippetList:f,printAndFormatSnippetList:g,printNode:k,printAndFormatNode:C};function _(O,F){let M=mP(O);if(M!==O){let U=a.getTextPos();F();let J=a.getTextPos();n=jt(n||(n=[]),{newText:M,span:{start:U,length:J-U}})}else F()}function f(O,F,M){let U=y(O,F,M);return n?ki.applyChanges(U,n):U}function y(O,F,M){return n=void 0,u.clear(),c.writeList(O,F,M,u),u.getText()}function g(O,F,M,U){let J={text:y(O,F,M),getLineAndCharacterOfPosition(re){return qs(this,re)}},G=cae(U,M),Z=an(F,re=>{let ae=ki.assignPositionsToNode(re);return rd.formatNodeGivenIndentation(ae,J,M.languageVariant,0,0,{...U,options:G})}),Q=n?pu(go(Z,n),(re,ae)=>fy(re.span,ae.span)):Z;return ki.applyChanges(J.text,Q)}function k(O,F,M){let U=T(O,F,M);return n?ki.applyChanges(U,n):U}function T(O,F,M){return n=void 0,u.clear(),c.writeNode(O,F,M,u),u.getText()}function C(O,F,M,U){let J={text:T(O,F,M),getLineAndCharacterOfPosition(ae){return qs(this,ae)}},G=cae(U,M),Z=ki.assignPositionsToNode(F),Q=rd.formatNodeGivenIndentation(Z,J,M.languageVariant,0,0,{...U,options:G}),re=n?pu(go(Q,n),(ae,_e)=>fy(ae.span,_e.span)):Q;return ki.applyChanges(J.text,re)}}function JSt(t){let n=t.fileName?void 0:i1(t.moduleSymbol.name),a=t.isFromPackageJson?!0:void 0;return fq(t)?{exportName:t.exportName,exportMapKey:t.exportMapKey,moduleSpecifier:t.moduleSpecifier,ambientModuleName:n,fileName:t.fileName,isPackageJsonImport:a}:{exportName:t.exportName,exportMapKey:t.exportMapKey,fileName:t.fileName,ambientModuleName:t.fileName?void 0:i1(t.moduleSymbol.name),isPackageJsonImport:t.isFromPackageJson?!0:void 0}}function Cgr(t,n,a){let c=t.exportName==="default",u=!!t.isPackageJsonImport;return LSt(t)?{kind:32,exportName:t.exportName,exportMapKey:t.exportMapKey,moduleSpecifier:t.moduleSpecifier,symbolName:n,fileName:t.fileName,moduleSymbol:a,isDefaultExport:c,isFromPackageJson:u}:{kind:4,exportName:t.exportName,exportMapKey:t.exportMapKey,symbolName:n,fileName:t.fileName,moduleSymbol:a,isDefaultExport:c,isFromPackageJson:u}}function Dgr(t,n,a,c,u,_,f){let y=n.replacementSpan,g=mP(rq(u,f,a.moduleSpecifier)),k=a.isDefaultExport?1:a.exportName==="export="?2:0,T=f.includeCompletionsWithSnippetText?"$1":"",C=Im.getImportKind(u,k,_,!0),O=n.couldBeTypeOnlyImportSpecifier,F=n.isTopLevelTypeOnly?` ${Zs(156)} `:" ",M=O?`${Zs(156)} `:"",U=c?";":"";switch(C){case 3:return{replacementSpan:y,insertText:`import${F}${mP(t)}${T} = require(${g})${U}`};case 1:return{replacementSpan:y,insertText:`import${F}${mP(t)}${T} from ${g}${U}`};case 2:return{replacementSpan:y,insertText:`import${F}* as ${mP(t)} from ${g}${U}`};case 0:return{replacementSpan:y,insertText:`import${F}{ ${M}${mP(t)}${T} } from ${g}${U}`}}}function xLe(t,n,a){return/^\d+$/.test(a)?a:rq(t,n,a)}function Agr(t,n,a){return t===n||!!(t.flags&1048576)&&a.getExportSymbolOfSymbol(t)===n}function TLe(t){if(jae(t))return i1(t.moduleSymbol.name);if(fq(t))return t.moduleSpecifier;if(t?.kind===1)return"ThisProperty/";if(t?.kind===64)return"TypeOnlyAlias/"}function ELe(t,n,a,c,u,_,f,y,g,k,T,C,O,F,M,U,J,G,Z,Q,re,ae,_e,me,le,Oe=!1){let be=Ml(),ue=Kgr(c,u),De=eQ(f),Ce=g.getTypeChecker(),Ae=new Map;for(let de=0;de_t.getSourceFile()===u.getSourceFile()));Ae.set(ve,ke),vm(n,It,Bae,void 0,!0)}return T("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Ml()-be)),{has:de=>Ae.has(de),add:de=>Ae.set(de,!0)};function Fe(de,ze){var ut;let je=de.flags;if(u.parent&&Xu(u.parent))return!0;if(ue&&Ci(ue,Oo)&&(de.valueDeclaration===ue||$s(ue.name)&&ue.name.elements.some(Ve=>Ve===de.valueDeclaration)))return!1;let ve=de.valueDeclaration??((ut=de.declarations)==null?void 0:ut[0]);if(ue&&ve){if(wa(ue)&&wa(ve)){let Ve=ue.parent.parameters;if(ve.pos>=ue.pos&&ve.pos=ue.pos&&ve.posbLe(a,f,Q)===u.name);return Z!==void 0?{type:"literal",literal:Z}:Je(k,(Q,re)=>{let ae=F[re],_e=ebe(Q,$c(y),ae,O,g.isJsxIdentifierExpected);return _e&&_e.name===u.name&&(u.source==="ClassMemberSnippet/"&&Q.flags&106500||u.source==="ObjectLiteralMethodSnippet/"&&Q.flags&8196||TLe(ae)===u.source||u.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:Q,location:C,origin:ae,contextToken:M,previousToken:U,isJsxInitializer:J,isTypeOnlyLocation:G}:void 0})||{type:"none"}}function Pgr(t,n,a,c,u,_,f,y,g){let k=t.getTypeChecker(),T=t.getCompilerOptions(),{name:C,source:O,data:F}=u,{previousToken:M,contextToken:U}=YSe(c,a);if(jF(a,c,M))return abe.getStringLiteralCompletionDetails(C,a,c,M,t,_,g,y);let J=VSt(t,n,a,c,u,_,y);switch(J.type){case"request":{let{request:G}=J;switch(G.kind){case 1:return VA.getJSDocTagNameCompletionDetails(C);case 2:return VA.getJSDocTagCompletionDetails(C);case 3:return VA.getJSDocParameterNameCompletionDetails(C);case 4:return Pt(G.keywordCompletions,Z=>Z.name===C)?kLe(C,"keyword",5):void 0;default:return $.assertNever(G)}}case"symbol":{let{symbol:G,location:Z,contextToken:Q,origin:re,previousToken:ae}=J,{codeActions:_e,sourceDisplay:me}=Ngr(C,Z,Q,re,G,t,_,T,a,c,ae,f,y,F,O,g),le=vLe(re)?re.symbolName:G.name;return CLe(G,le,k,a,Z,g,_e,me)}case"literal":{let{literal:G}=J;return kLe(bLe(a,y,G),"string",typeof G=="string"?8:7)}case"cases":{let G=zSt(U.parent,a,y,t.getCompilerOptions(),_,t,void 0);if(G?.importAdder.hasFixes()){let{entry:Z,importAdder:Q}=G,re=ki.ChangeTracker.with({host:_,formatContext:f,preferences:y},Q.writeFixes);return{name:Z.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:re,description:FP([x.Includes_imports_of_types_referenced_by_0,C])}]}}return{name:C,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return KSt().some(G=>G.name===C)?kLe(C,"keyword",5):void 0;default:$.assertNever(J)}}function kLe(t,n,a){return $ae(t,"",n,[hg(t,a)])}function CLe(t,n,a,c,u,_,f,y){let{displayParts:g,documentation:k,symbolKind:T,tags:C}=a.runWithCancellationToken(_,O=>wE.getSymbolDisplayPartsDocumentationAndSymbolKind(O,t,c,u,u,7));return $ae(n,wE.getSymbolModifiers(a,t),T,g,k,C,f,y)}function $ae(t,n,a,c,u,_,f,y){return{name:t,kindModifiers:n,kind:a,displayParts:c,documentation:u,tags:_,codeActions:f,source:y,sourceDisplay:y}}function Ngr(t,n,a,c,u,_,f,y,g,k,T,C,O,F,M,U){if(F?.moduleSpecifier&&T&&nbt(a||T,g).replacementSpan)return{codeActions:void 0,sourceDisplay:[Vy(F.moduleSpecifier)]};if(M==="ClassMemberSnippet/"){let{importAdder:_e,eraseRange:me}=qSt(f,_,y,O,t,u,n,k,a,C);if(_e?.hasFixes()||me)return{sourceDisplay:void 0,codeActions:[{changes:ki.ChangeTracker.with({host:f,formatContext:C,preferences:O},Oe=>{_e&&_e.writeFixes(Oe),me&&Oe.deleteRange(g,me)}),description:_e?.hasFixes()?FP([x.Includes_imports_of_types_referenced_by_0,t]):FP([x.Update_modifiers_of_0,t])}]}}if(OSt(c)){let _e=Im.getPromoteTypeOnlyCompletionAction(g,c.declaration.name,_,f,C,O);return $.assertIsDefined(_e,"Expected to have a code action for promoting type-only alias"),{codeActions:[_e],sourceDisplay:void 0}}if(M==="ObjectLiteralMemberWithComma/"&&a){let _e=ki.ChangeTracker.with({host:f,formatContext:C,preferences:O},me=>me.insertText(g,a.end,","));if(_e)return{sourceDisplay:void 0,codeActions:[{changes:_e,description:FP([x.Add_missing_comma_for_object_member_completion_0,t])}]}}if(!c||!(jae(c)||fq(c)))return{codeActions:void 0,sourceDisplay:void 0};let J=c.isFromPackageJson?f.getPackageJsonAutoImportProvider().getTypeChecker():_.getTypeChecker(),{moduleSymbol:G}=c,Z=J.getMergedSymbol($f(u.exportSymbol||u,J)),Q=a?.kind===30&&Em(a.parent),{moduleSpecifier:re,codeAction:ae}=Im.getImportCompletionAction(Z,G,F?.exportMapKey,g,t,Q,f,_,C,T&&ct(T)?T.getStart(g):k,O,U);return $.assert(!F?.moduleSpecifier||re===F.moduleSpecifier),{sourceDisplay:[Vy(re)],codeActions:[ae]}}function Ogr(t,n,a,c,u,_,f){let y=VSt(t,n,a,c,u,_,f);return y.type==="symbol"?y.symbol:void 0}var WSt=(t=>(t[t.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",t[t.Global=1]="Global",t[t.PropertyAccess=2]="PropertyAccess",t[t.MemberLike=3]="MemberLike",t[t.String=4]="String",t[t.None=5]="None",t))(WSt||{});function Fgr(t,n,a){return Je(n&&(n.isUnion()?n.types:[n]),c=>{let u=c&&c.symbol;return u&&u.flags&424&&!v4e(u)?DLe(u,t,a):void 0})}function Rgr(t,n,a,c){let{parent:u}=t;switch(t.kind){case 80:return Xoe(t,c);case 64:switch(u.kind){case 261:return c.getContextualType(u.initializer);case 227:return c.getTypeAtLocation(u.left);case 292:return c.getContextualTypeForJsxAttribute(u);default:return}case 105:return c.getContextualType(u);case 84:let _=Ci(u,bL);return _?bve(_,c):void 0;case 19:return SL(u)&&!PS(u.parent)&&!DA(u.parent)?c.getContextualTypeForJsxAttribute(u.parent):void 0;default:let f=AQ.getArgumentInfoForCompletions(t,n,a,c);return f?c.getContextualTypeForArgumentAtIndex(f.invocation,f.argumentIndex):Yoe(t.kind)&&wi(u)&&Yoe(u.operatorToken.kind)?c.getTypeAtLocation(u.left):c.getContextualType(t,4)||c.getContextualType(t)}}function DLe(t,n,a){let c=a.getAccessibleSymbolChain(t,n,-1,!1);return c?To(c):t.parent&&(Lgr(t.parent)?t:DLe(t.parent,n,a))}function Lgr(t){var n;return!!((n=t.declarations)!=null&&n.some(a=>a.kind===308))}function GSt(t,n,a,c,u,_,f,y,g,k){let T=t.getTypeChecker(),C=USt(a,c),O=Ml(),F=la(a,u);n("getCompletionData: Get current token: "+(Ml()-O)),O=Ml();let M=EE(a,u,F);n("getCompletionData: Is inside comment: "+(Ml()-O));let U=!1,J=!1,G=!1;if(M){if(u7e(a,u)){if(a.text.charCodeAt(u-1)===64)return{kind:1};{let Mt=p1(u,a);if(!/[^*|\s(/)]/.test(a.text.substring(Mt,u)))return{kind:2}}}let Ge=$gr(F,u);if(Ge){if(Ge.tagName.pos<=u&&u<=Ge.tagName.end)return{kind:1};if(OS(Ge))J=!0;else{let Mt=nn(Ge);if(Mt&&(F=la(a,u),(!F||!Eb(F)&&(F.parent.kind!==349||F.parent.name!==F))&&(U=mr(Mt))),!U&&Uy(Ge)&&(Op(Ge.name)||Ge.name.pos<=u&&u<=Ge.name.end))return{kind:3,tag:Ge}}}if(!U&&!J){n("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}O=Ml();let Z=!U&&!J&&ph(a),Q=YSe(u,a),re=Q.previousToken,ae=Q.contextToken;n("getCompletionData: Get previous token: "+(Ml()-O));let _e=F,me,le=!1,Oe=!1,be=!1,ue=!1,De=!1,Ce=!1,Ae,Fe=Vh(a,u),Be=0,de=!1,ze=0,ut;if(ae){let Ge=nbt(ae,a);if(Ge.keywordCompletion){if(Ge.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[pgr(Ge.keywordCompletion)],isNewIdentifierLocation:Ge.isNewIdentifierLocation};Be=dgr(Ge.keywordCompletion)}if(Ge.replacementSpan&&_.includeCompletionsForImportStatements&&_.includeCompletionsWithInsertText&&(ze|=2,Ae=Ge,de=Ge.isNewIdentifierLocation),!Ge.replacementSpan&&Ls(ae))return n("Returning an empty list because completion was requested in an invalid position."),Be?BSt(Be,Z,Cn().isNewIdentifierLocation):void 0;let Mt=ae.parent;if(ae.kind===25||ae.kind===29)switch(le=ae.kind===25,Oe=ae.kind===29,Mt.kind){case 212:me=Mt,_e=me.expression;let Ir=oL(me);if(Op(Ir)||(Js(_e)||Rs(_e))&&_e.end===ae.pos&&_e.getChildCount(a)&&Sn(_e.getChildren(a)).kind!==22)return;break;case 167:_e=Mt.left;break;case 268:_e=Mt.name;break;case 206:_e=Mt;break;case 237:_e=Mt.getFirstToken(a),$.assert(_e.kind===102||_e.kind===105);break;default:return}else if(!Ae){if(Mt&&Mt.kind===212&&(ae=Mt,Mt=Mt.parent),F.parent===Fe)switch(F.kind){case 32:(F.parent.kind===285||F.parent.kind===287)&&(Fe=F);break;case 44:F.parent.kind===286&&(Fe=F);break}switch(Mt.kind){case 288:ae.kind===44&&(ue=!0,Fe=ae);break;case 227:if(!rbt(Mt))break;case 286:case 285:case 287:Ce=!0,ae.kind===30&&(be=!0,Fe=ae);break;case 295:case 294:(re.kind===20||re.kind===80&&re.parent.kind===292)&&(Ce=!0);break;case 292:if(Mt.initializer===re&&re.endBA(Ge?y.getPackageJsonAutoImportProvider():t,y));if(le||Oe)Nn();else if(be)Ve=T.getJsxIntrinsicTagNamesAt(Fe),$.assertEachIsDefined(Ve,"getJsxIntrinsicTagNames() should all be defined"),Ko(),ve=1,Be=0;else if(ue){let Ge=ae.parent.parent.openingElement.tagName,Mt=T.getSymbolAtLocation(Ge);Mt&&(Ve=[Mt]),ve=1,Be=0}else if(!Ko())return Be?BSt(Be,Z,de):void 0;n("getCompletionData: Semantic work: "+(Ml()-je));let Qe=re&&Rgr(re,u,a,T),St=!Ci(re,Sl)&&!Ce?Wn(Qe&&(Qe.isUnion()?Qe.types:[Qe]),Ge=>Ge.isLiteral()&&!(Ge.flags&1024)?Ge.value:void 0):[],Kt=re&&Qe&&Fgr(re,Qe,T);return{kind:0,symbols:Ve,completionKind:ve,isInSnippetScope:G,propertyAccessToConvert:me,isNewIdentifierLocation:de,location:Fe,keywordFilters:Be,literals:St,symbolToOriginInfoMap:It,recommendedCompletion:Kt,previousToken:re,contextToken:ae,isJsxInitializer:De,insideJsDocTagTypeExpression:U,symbolToSortTextMap:ke,isTypeOnlyLocation:Se,isJsxIdentifierExpected:Ce,isRightOfOpenTag:be,isRightOfDotOrQuestionDot:le||Oe,importStatementCompletion:Ae,hasUnresolvedAutoImports:Le,flags:ze,defaultCommitCharacters:ut};function Sr(Ge){switch(Ge.kind){case 342:case 349:case 343:case 345:case 347:case 350:case 351:return!0;case 346:return!!Ge.constraint;default:return!1}}function nn(Ge){if(Sr(Ge)){let Mt=c1(Ge)?Ge.constraint:Ge.typeExpression;return Mt&&Mt.kind===310?Mt:void 0}if(EF(Ge)||Zne(Ge))return Ge.class}function Nn(){ve=2;let Ge=jT(_e),Mt=Ge&&!_e.isTypeOf||vS(_e.parent)||JK(ae,a,T),Ir=woe(_e);if(uh(_e)||Ge||no(_e)){let ii=I_(_e.parent);ii&&(de=!0,ut=[]);let Rn=T.getSymbolAtLocation(_e);if(Rn&&(Rn=$f(Rn,T),Rn.flags&1920)){let zn=T.getExportsOfModule(Rn);$.assertEachIsDefined(zn,"getExportsOfModule() should all be defined");let Rt=wr=>T.isValidPropertyAccess(Ge?_e:_e.parent,wr.name),rr=wr=>wLe(wr,T),_r=ii?wr=>{var pn;return!!(wr.flags&1920)&&!((pn=wr.declarations)!=null&&pn.every(tn=>tn.parent===_e.parent))}:Ir?(wr=>rr(wr)||Rt(wr)):Mt||U?rr:Rt;for(let wr of zn)_r(wr)&&Ve.push(wr);if(!Mt&&!U&&Rn.declarations&&Rn.declarations.some(wr=>wr.kind!==308&&wr.kind!==268&&wr.kind!==267)){let wr=T.getTypeOfSymbolAtLocation(Rn,_e).getNonOptionalType(),pn=!1;if(wr.isNullableType()){let tn=le&&!Oe&&_.includeAutomaticOptionalChainCompletions!==!1;(tn||Oe)&&(wr=wr.getNonNullableType(),tn&&(pn=!0))}$t(wr,!!(_e.flags&65536),pn)}return}}if(!Mt||KO(_e)){T.tryGetThisTypeAt(_e,!1);let ii=T.getTypeAtLocation(_e).getNonOptionalType();if(Mt)$t(ii.getNonNullableType(),!1,!1);else{let Rn=!1;if(ii.isNullableType()){let zn=le&&!Oe&&_.includeAutomaticOptionalChainCompletions!==!1;(zn||Oe)&&(ii=ii.getNonNullableType(),zn&&(Rn=!0))}$t(ii,!!(_e.flags&65536),Rn)}}}function $t(Ge,Mt,Ir){Ge.getStringIndexType()&&(de=!0,ut=[]),Oe&&Pt(Ge.getCallSignatures())&&(de=!0,ut??(ut=MS));let ii=_e.kind===206?_e:_e.parent;if(C)for(let Rn of Ge.getApparentProperties())T.isValidPropertyAccessForCompletions(ii,Ge,Rn)&&Dr(Rn,!1,Ir);else Ve.push(...yr(ibe(Ge,T),Rn=>T.isValidPropertyAccessForCompletions(ii,Ge,Rn)));if(Mt&&_.includeCompletionsWithInsertText){let Rn=T.getPromisedTypeOfPromise(Ge);if(Rn)for(let zn of Rn.getApparentProperties())T.isValidPropertyAccessForCompletions(ii,Rn,zn)&&Dr(zn,!0,Ir)}}function Dr(Ge,Mt,Ir){var ii;let Rn=Je(Ge.declarations,_r=>Ci(cs(_r),dc));if(Rn){let _r=Qn(Rn.expression),wr=_r&&T.getSymbolAtLocation(_r),pn=wr&&DLe(wr,ae,T),tn=pn&&hc(pn);if(tn&&o1(_t,tn)){let lr=Ve.length;Ve.push(pn),ke[hc(pn)]=om.GlobalsOrKeywords;let cn=pn.parent;if(!cn||!LO(cn)||T.tryGetMemberInModuleExportsAndProperties(pn.name,cn)!==pn)It[lr]={kind:rr(2)};else{let gn=vt(i1(cn.name))?(ii=yG(cn))==null?void 0:ii.fileName:void 0,{moduleSpecifier:bn}=(nt||(nt=Im.createImportSpecifierResolver(a,t,y,_))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:gn,isFromPackageJson:!1,moduleSymbol:cn,symbol:pn,targetFlags:$f(pn,T).flags}],u,yA(Fe))||{};if(bn){let $r={kind:rr(6),moduleSymbol:cn,isDefaultExport:!1,symbolName:pn.name,exportName:pn.name,fileName:gn,moduleSpecifier:bn};It[lr]=$r}}}else if(_.includeCompletionsWithInsertText){if(tn&&_t.has(tn))return;Rt(Ge),zn(Ge),Ve.push(Ge)}}else Rt(Ge),zn(Ge),Ve.push(Ge);function zn(_r){Wgr(_r)&&(ke[hc(_r)]=om.LocalDeclarationPriority)}function Rt(_r){_.includeCompletionsWithInsertText&&(Mt&&o1(_t,hc(_r))?It[Ve.length]={kind:rr(8)}:Ir&&(It[Ve.length]={kind:16}))}function rr(_r){return Ir?_r|16:_r}}function Qn(Ge){return ct(Ge)?Ge:no(Ge)?Qn(Ge.expression):void 0}function Ko(){return(Dt()||ur()||uo()||Ee()||Bt()||ye()||is()||et()||sr()||(Wa(),1))===1}function is(){return Ot(ae)?(ve=5,de=!0,Be=4,1):0}function sr(){let Ge=at(ae),Mt=Ge&&T.getContextualType(Ge.attributes);if(!Mt)return 0;let Ir=Ge&&T.getContextualType(Ge.attributes,4);return Ve=go(Ve,Gt(nbe(Mt,Ir,Ge.attributes,T),Ge.attributes.properties)),Ne(),ve=3,de=!1,1}function uo(){return Ae?(de=!0,Wr(),1):0}function Wa(){Be=ar(ae)?5:1,ve=1,{isNewIdentifierLocation:de,defaultCommitCharacters:ut}=Cn(),re!==ae&&$.assert(!!re,"Expected 'contextToken' to be defined when different from 'previousToken'.");let Ge=re!==ae?re.getStart():u,Mt=ya(ae,Ge,a)||a;G=Oi(Mt);let Ir=(Se?0:111551)|788968|1920|2097152,ii=re&&!yA(re);Ve=go(Ve,T.getSymbolsInScope(Mt,Ir)),$.assertEachIsDefined(Ve,"getSymbolsInScope() should all be defined");for(let Rn=0;RnRt.getSourceFile()===a)&&(ke[hc(zn)]=om.GlobalsOrKeywords),ii&&!(zn.flags&111551)){let Rt=zn.declarations&&wt(zn.declarations,OR);if(Rt){let rr={kind:64,declaration:Rt};It[Rn]=rr}}}if(_.includeCompletionsWithInsertText&&Mt.kind!==308){let Rn=T.tryGetThisTypeAt(Mt,!1,Co(Mt.parent)?Mt:void 0);if(Rn&&!Vgr(Rn,a,T))for(let zn of ibe(Rn,T))It[Ve.length]={kind:1},Ve.push(zn),ke[hc(zn)]=om.SuggestedClassMembers}Wr(),Se&&(Be=ae&&ZI(ae.parent)?6:7)}function oo(){var Ge;return Ae?!0:_.includeCompletionsForModuleExports?a.externalModuleIndicator||a.commonJsModuleIndicator||ive(t.getCompilerOptions())?!0:((Ge=t.getSymlinkCache)==null?void 0:Ge.call(t).hasAnySymlinks())||!!t.getCompilerOptions().paths||h7e(t):!1}function Oi(Ge){switch(Ge.kind){case 308:case 229:case 295:case 242:return!0;default:return fa(Ge)}}function $o(){return U||J||!!Ae&&cE(Fe.parent)||!ft(ae)&&(JK(ae,a,T)||vS(Fe)||Ht(ae))}function ft(Ge){return Ge&&(Ge.kind===114&&(Ge.parent.kind===187||hL(Ge.parent))||Ge.kind===131&&Ge.parent.kind===183)}function Ht(Ge){if(Ge){let Mt=Ge.parent.kind;switch(Ge.kind){case 59:return Mt===173||Mt===172||Mt===170||Mt===261||NO(Mt);case 64:return Mt===266||Mt===169;case 130:return Mt===235;case 30:return Mt===184||Mt===217;case 96:return Mt===169;case 152:return Mt===239}}return!1}function Wr(){var Ge,Mt;if(!oo()||($.assert(!f?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),f&&!f.source))return;ze|=1;let ii=re===ae&&Ae?"":re&&ct(re)?re.text.toLowerCase():"",Rn=(Ge=y.getModuleSpecifierCache)==null?void 0:Ge.call(y),zn=oQ(a,y,t,_,k),Rt=(Mt=y.getPackageJsonAutoImportProvider)==null?void 0:Mt.call(y),rr=f?void 0:tM(a,_,y);RSt("collectAutoImports",y,nt||(nt=Im.createImportSpecifierResolver(a,t,y,_)),t,u,_,!!Ae,yA(Fe),wr=>{zn.search(a.path,be,(pn,tn)=>{if(!Jd(pn,$c(y.getCompilationSettings()))||!f&&HO(pn)||!Se&&!Ae&&!(tn&111551)||Se&&!(tn&790504))return!1;let lr=pn.charCodeAt(0);return be&&(lr<65||lr>90)?!1:f?!0:cbt(pn,ii)},(pn,tn,lr,cn)=>{if(f&&!Pt(pn,ec=>f.source===i1(ec.moduleSymbol.name))||(pn=yr(pn,_r),!pn.length))return;let gn=wr.tryResolve(pn,lr)||{};if(gn==="failed")return;let bn=pn[0],$r;gn!=="skipped"&&({exportInfo:bn=pn[0],moduleSpecifier:$r}=gn);let Uo=bn.exportKind===1,Ys=Uo&&RU($.checkDefined(bn.symbol))||$.checkDefined(bn.symbol);ai(Ys,{kind:$r?32:4,moduleSpecifier:$r,symbolName:tn,exportMapKey:cn,exportName:bn.exportKind===2?"export=":$.checkDefined(bn.symbol).name,fileName:bn.moduleFileName,isDefaultExport:Uo,moduleSymbol:bn.moduleSymbol,isFromPackageJson:bn.isFromPackageJson})}),Le=wr.skippedAny(),ze|=wr.resolvedAny()?8:0,ze|=wr.resolvedBeyondLimit()?16:0});function _r(wr){return Fve(wr.isFromPackageJson?Rt:t,a,Ci(wr.moduleSymbol.valueDeclaration,Ta),wr.moduleSymbol,_,rr,tt(wr.isFromPackageJson),Rn)}}function ai(Ge,Mt){let Ir=hc(Ge);ke[Ir]!==om.GlobalsOrKeywords&&(It[Ve.length]=Mt,ke[Ir]=Ae?om.LocationPriority:om.AutoImportSuggestions,Ve.push(Ge))}function vo(Ge,Mt){Ei(Fe)||Ge.forEach(Ir=>{if(!Eo(Ir))return;let ii=ebe(Ir,$c(c),void 0,0,!1);if(!ii)return;let{name:Rn}=ii,zn=Egr(Ir,Rn,Mt,t,y,c,_,g);if(!zn)return;let Rt={kind:128,...zn};ze|=32,It[Ve.length]=Rt,Ve.push(Ir)})}function Eo(Ge){return!!(Ge.flags&8196)}function ya(Ge,Mt,Ir){let ii=Ge;for(;ii&&!q1e(ii,Mt,Ir);)ii=ii.parent;return ii}function Ls(Ge){let Mt=Ml(),Ir=Es(Ge)||Qt(Ge)||xr(Ge)||yc(Ge)||dL(Ge);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(Ml()-Mt)),Ir}function yc(Ge){if(Ge.kind===12)return!0;if(Ge.kind===32&&Ge.parent){if(Fe===Ge.parent&&(Fe.kind===287||Fe.kind===286))return!1;if(Ge.parent.kind===287)return Fe.parent.kind!==287;if(Ge.parent.kind===288||Ge.parent.kind===286)return!!Ge.parent.parent&&Ge.parent.parent.kind===285}return!1}function Cn(){if(ae){let Ge=ae.parent.kind,Mt=rbe(ae);switch(Mt){case 28:switch(Ge){case 214:case 215:{let Ir=ae.parent.expression;return qs(a,Ir.end).line!==qs(a,u).line?{defaultCommitCharacters:KSe,isNewIdentifierLocation:!0}:{defaultCommitCharacters:MS,isNewIdentifierLocation:!0}}case 227:return{defaultCommitCharacters:KSe,isNewIdentifierLocation:!0};case 177:case 185:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 210:return{defaultCommitCharacters:MS,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:MS,isNewIdentifierLocation:!1}}case 21:switch(Ge){case 214:case 215:{let Ir=ae.parent.expression;return qs(a,Ir.end).line!==qs(a,u).line?{defaultCommitCharacters:KSe,isNewIdentifierLocation:!0}:{defaultCommitCharacters:MS,isNewIdentifierLocation:!0}}case 218:return{defaultCommitCharacters:KSe,isNewIdentifierLocation:!0};case 177:case 197:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:MS,isNewIdentifierLocation:!1}}case 23:switch(Ge){case 210:case 182:case 190:case 168:return{defaultCommitCharacters:MS,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:MS,isNewIdentifierLocation:!1}}case 144:case 145:case 102:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 25:return Ge===268?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:MS,isNewIdentifierLocation:!1};case 19:switch(Ge){case 264:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:MS,isNewIdentifierLocation:!1}}case 64:switch(Ge){case 261:case 227:return{defaultCommitCharacters:MS,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:MS,isNewIdentifierLocation:!1}}case 16:return{defaultCommitCharacters:MS,isNewIdentifierLocation:Ge===229};case 17:return{defaultCommitCharacters:MS,isNewIdentifierLocation:Ge===240};case 134:return Ge===175||Ge===305?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:MS,isNewIdentifierLocation:!1};case 42:return Ge===175?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:MS,isNewIdentifierLocation:!1}}if(Uae(Mt))return{defaultCommitCharacters:[],isNewIdentifierLocation:!0}}return{defaultCommitCharacters:MS,isNewIdentifierLocation:!1}}function Es(Ge){return(kge(Ge)||ime(Ge))&&(zK(Ge,u)||u===Ge.end&&(!!Ge.isUnterminated||kge(Ge)))}function Dt(){let Ge=qgr(ae);if(!Ge)return 0;let Ir=(vF(Ge.parent)?Ge.parent:void 0)||Ge,ii=tbt(Ir,T);if(!ii)return 0;let Rn=T.getTypeFromTypeNode(Ir),zn=ibe(ii,T),Rt=ibe(Rn,T),rr=new Set;return Rt.forEach(_r=>rr.add(_r.escapedName)),Ve=go(Ve,yr(zn,_r=>!rr.has(_r.escapedName))),ve=0,de=!0,1}function ur(){if(ae?.kind===26)return 0;let Ge=Ve.length,Mt=Mgr(ae,u,a);if(!Mt)return 0;ve=0;let Ir,ii;if(Mt.kind===211){let Rn=Ggr(Mt,T);if(Rn===void 0)return Mt.flags&67108864?2:0;let zn=T.getContextualType(Mt,4),Rt=(zn||Rn).getStringIndexType(),rr=(zn||Rn).getNumberIndexType();if(de=!!Rt||!!rr,Ir=nbe(Rn,zn,Mt,T),ii=Mt.properties,Ir.length===0&&!rr)return 0}else{$.assert(Mt.kind===207),de=!1;let Rn=bS(Mt.parent);if(!_U(Rn))return $.fail("Root declaration is not variable-like.");let zn=lE(Rn)||!!X_(Rn)||Rn.parent.parent.kind===251;if(!zn&&Rn.kind===170&&(Vt(Rn.parent)?zn=!!T.getContextualType(Rn.parent):(Rn.parent.kind===175||Rn.parent.kind===179)&&(zn=Vt(Rn.parent.parent)&&!!T.getContextualType(Rn.parent.parent))),zn){let Rt=T.getTypeAtLocation(Mt);if(!Rt)return 2;Ir=T.getPropertiesOfType(Rt).filter(rr=>T.isPropertyAccessible(Mt,!1,!1,Rt,rr)),ii=Mt.elements}}if(Ir&&Ir.length>0){let Rn=Ye(Ir,$.checkDefined(ii));Ve=go(Ve,Rn),Ne(),Mt.kind===211&&_.includeCompletionsWithObjectLiteralMethodSnippets&&_.includeCompletionsWithInsertText&&(ot(Ge),vo(Rn,Mt))}return 1}function Ee(){if(!ae)return 0;let Ge=ae.kind===19||ae.kind===28?Ci(ae.parent,tne):Joe(ae)?Ci(ae.parent.parent,tne):void 0;if(!Ge)return 0;Joe(ae)||(Be=8);let{moduleSpecifier:Mt}=Ge.kind===276?Ge.parent.parent:Ge.parent;if(!Mt)return de=!0,Ge.kind===276?2:0;let Ir=T.getSymbolAtLocation(Mt);if(!Ir)return de=!0,2;ve=3,de=!1;let ii=T.getExportsAndPropertiesOfModule(Ir),Rn=new Set(Ge.elements.filter(Rt=>!mr(Rt)).map(Rt=>YI(Rt.propertyName||Rt.name))),zn=ii.filter(Rt=>Rt.escapedName!=="default"&&!Rn.has(Rt.escapedName));return Ve=go(Ve,zn),zn.length||(Be=0),1}function Bt(){if(ae===void 0)return 0;let Ge=ae.kind===19||ae.kind===28?Ci(ae.parent,l3):ae.kind===59?Ci(ae.parent.parent,l3):void 0;if(Ge===void 0)return 0;let Mt=new Set(Ge.elements.map(Cne));return Ve=yr(T.getTypeAtLocation(Ge).getApparentProperties(),Ir=>!Mt.has(Ir.escapedName)),1}function ye(){var Ge;let Mt=ae&&(ae.kind===19||ae.kind===28)?Ci(ae.parent,k0):void 0;if(!Mt)return 0;let Ir=fn(Mt,jf(Ta,I_));return ve=5,de=!1,(Ge=Ir.locals)==null||Ge.forEach((ii,Rn)=>{var zn,Rt;Ve.push(ii),(Rt=(zn=Ir.symbol)==null?void 0:zn.exports)!=null&&Rt.has(Rn)&&(ke[hc(ii)]=om.OptionalMember)}),1}function et(){let Ge=zgr(a,ae,Fe,u);if(!Ge)return 0;if(ve=3,de=!0,Be=ae.kind===42?0:Co(Ge)?2:3,!Co(Ge))return 1;let Mt=ae.kind===27?ae.parent.parent:ae.parent,Ir=J_(Mt)?tm(Mt):0;if(ae.kind===80&&!mr(ae))switch(ae.getText()){case"private":Ir=Ir|2;break;case"static":Ir=Ir|256;break;case"override":Ir=Ir|16;break}if(n_(Mt)&&(Ir|=256),!(Ir&2)){let ii=Co(Ge)&&Ir&16?Z2(vv(Ge)):EU(Ge),Rn=an(ii,zn=>{let Rt=T.getTypeAtLocation(zn);return Ir&256?Rt?.symbol&&T.getPropertiesOfType(T.getTypeOfSymbolAtLocation(Rt.symbol,Ge)):Rt&&T.getPropertiesOfType(Rt)});Ve=go(Ve,pe(Rn,Ge.members,Ir)),X(Ve,(zn,Rt)=>{let rr=zn?.valueDeclaration;if(rr&&J_(rr)&&rr.name&&dc(rr.name)){let _r={kind:512,symbolName:T.symbolToString(zn)};It[Rt]=_r}})}return 1}function Ct(Ge){return!!Ge.parent&&wa(Ge.parent)&&kp(Ge.parent.parent)&&(iU(Ge.kind)||Eb(Ge))}function Ot(Ge){if(Ge){let Mt=Ge.parent;switch(Ge.kind){case 21:case 28:return kp(Ge.parent)?Ge.parent:void 0;default:if(Ct(Ge))return Mt.parent}}}function ar(Ge){if(Ge){let Mt,Ir=fn(Ge.parent,ii=>Co(ii)?"quit":lu(ii)&&Mt===ii.body?!0:(Mt=ii,!1));return Ir&&Ir}}function at(Ge){if(Ge){let Mt=Ge.parent;switch(Ge.kind){case 32:case 31:case 44:case 80:case 212:case 293:case 292:case 294:if(Mt&&(Mt.kind===286||Mt.kind===287)){if(Ge.kind===32){let Ir=vd(Ge.pos,a,void 0);if(!Mt.typeArguments||Ir&&Ir.kind===44)break}return Mt}else if(Mt.kind===292)return Mt.parent.parent;break;case 11:if(Mt&&(Mt.kind===292||Mt.kind===294))return Mt.parent.parent;break;case 20:if(Mt&&Mt.kind===295&&Mt.parent&&Mt.parent.kind===292)return Mt.parent.parent.parent;if(Mt&&Mt.kind===294)return Mt.parent.parent;break}}}function Zt(Ge,Mt){return a.getLineEndOfPosition(Ge.getEnd())=Ge.pos;case 25:return Ir===208;case 59:return Ir===209;case 23:return Ir===208;case 21:return Ir===300||Et(Ir);case 19:return Ir===267;case 30:return Ir===264||Ir===232||Ir===265||Ir===266||NO(Ir);case 126:return Ir===173&&!Co(Mt.parent);case 26:return Ir===170||!!Mt.parent&&Mt.parent.kind===208;case 125:case 123:case 124:return Ir===170&&!kp(Mt.parent);case 130:return Ir===277||Ir===282||Ir===275;case 139:case 153:return!obe(Ge);case 80:{if((Ir===277||Ir===282)&&Ge===Mt.name&&Ge.text==="type"||fn(Ge.parent,Oo)&&Zt(Ge,u))return!1;break}case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return Ir!==277;case 42:return Rs(Ge.parent)&&!Ep(Ge.parent)}if(Uae(rbe(Ge))&&obe(Ge)||Ct(Ge)&&(!ct(Ge)||iU(rbe(Ge))||mr(Ge)))return!1;switch(rbe(Ge)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return ps(Ge.parent)}if(fn(Ge.parent,Co)&&Ge===re&&pr(Ge,u))return!1;let Rn=mA(Ge.parent,173);if(Rn&&Ge!==re&&Co(re.parent.parent)&&u<=re.end){if(pr(Ge,re.end))return!1;if(Ge.kind!==64&&(mK(Rn)||Qte(Rn)))return!0}return Eb(Ge)&&!im(Ge.parent)&&!NS(Ge.parent)&&!((Co(Ge.parent)||Af(Ge.parent)||Zu(Ge.parent))&&(Ge!==re||u>re.end))}function pr(Ge,Mt){return Ge.kind!==64&&(Ge.kind===27||!v0(Ge.end,Mt,a))}function Et(Ge){return NO(Ge)&&Ge!==177}function xr(Ge){if(Ge.kind===9){let Mt=Ge.getFullText();return Mt.charAt(Mt.length-1)==="."}return!1}function gi(Ge){return Ge.parent.kind===262&&!JK(Ge,a,T)}function Ye(Ge,Mt){if(Mt.length===0)return Ge;let Ir=new Set,ii=new Set;for(let zn of Mt){if(zn.kind!==304&&zn.kind!==305&&zn.kind!==209&&zn.kind!==175&&zn.kind!==178&&zn.kind!==179&&zn.kind!==306||mr(zn))continue;let Rt;if(qx(zn))er(zn,Ir);else if(Vc(zn)&&zn.propertyName)zn.propertyName.kind===80&&(Rt=zn.propertyName.escapedText);else{let rr=cs(zn);Rt=rr&&SS(rr)?DU(rr):void 0}Rt!==void 0&&ii.add(Rt)}let Rn=Ge.filter(zn=>!ii.has(zn.escapedName));return Y(Ir,Rn),Rn}function er(Ge,Mt){let Ir=Ge.expression,ii=T.getSymbolAtLocation(Ir),Rn=ii&&T.getTypeOfSymbolAtLocation(ii,Ir),zn=Rn&&Rn.properties;zn&&zn.forEach(Rt=>{Mt.add(Rt.name)})}function Ne(){Ve.forEach(Ge=>{if(Ge.flags&16777216){let Mt=hc(Ge);ke[Mt]=ke[Mt]??om.OptionalMember}})}function Y(Ge,Mt){if(Ge.size!==0)for(let Ir of Mt)Ge.has(Ir.name)&&(ke[hc(Ir)]=om.MemberDeclaredBySpreadAssignment)}function ot(Ge){for(let Mt=Ge;Mt!ii.has(Rn.escapedName)&&!!Rn.declarations&&!(S0(Rn)&2)&&!(Rn.valueDeclaration&&Tm(Rn.valueDeclaration)))}function Gt(Ge,Mt){let Ir=new Set,ii=new Set;for(let zn of Mt)mr(zn)||(zn.kind===292?Ir.add(YU(zn.name)):TF(zn)&&er(zn,ii));let Rn=Ge.filter(zn=>!Ir.has(zn.escapedName));return Y(ii,Rn),Rn}function mr(Ge){return Ge.getStart(a)<=u&&u<=Ge.getEnd()}}function Mgr(t,n,a){var c;if(t){let{parent:u}=t;switch(t.kind){case 19:case 28:if(Lc(u)||$y(u))return u;break;case 42:return Ep(u)?Ci(u.parent,Lc):void 0;case 134:return Ci(u.parent,Lc);case 80:if(t.text==="async"&&im(t.parent))return t.parent.parent;{if(Lc(t.parent.parent)&&(qx(t.parent)||im(t.parent)&&qs(a,t.getEnd()).line!==qs(a,n).line))return t.parent.parent;let f=fn(u,td);if(f?.getLastToken(a)===t&&Lc(f.parent))return f.parent}break;default:if((c=u.parent)!=null&&c.parent&&(Ep(u.parent)||T0(u.parent)||mg(u.parent))&&Lc(u.parent.parent))return u.parent.parent;if(qx(u)&&Lc(u.parent))return u.parent;let _=fn(u,td);if(t.kind!==59&&_?.getLastToken(a)===t&&Lc(_.parent))return _.parent}}}function YSe(t,n){let a=vd(t,n);return a&&t<=a.end&&(Dx(a)||Uh(a.kind))?{contextToken:vd(a.getFullStart(),n,void 0),previousToken:a}:{contextToken:a,previousToken:a}}function HSt(t,n,a,c){let u=n.isPackageJsonImport?c.getPackageJsonAutoImportProvider():a,_=u.getTypeChecker(),f=n.ambientModuleName?_.tryFindAmbientModule(n.ambientModuleName):n.fileName?_.getMergedSymbol($.checkDefined(u.getSourceFile(n.fileName)).symbol):void 0;if(!f)return;let y=n.exportName==="export="?_.resolveExternalModuleSymbol(f):_.tryGetMemberInModuleExportsAndProperties(n.exportName,f);return y?(y=n.exportName==="default"&&RU(y)||y,{symbol:y,origin:Cgr(n,t,f)}):void 0}function ebe(t,n,a,c,u){if(sgr(a))return;let _=ngr(a)?a.symbolName:t.name;if(_===void 0||t.flags&1536&&MG(_.charCodeAt(0))||AU(t))return;let f={name:_,needsConvertPropertyAccess:!1};if(Jd(_,n,u?1:0)||t.valueDeclaration&&Tm(t.valueDeclaration))return f;if(t.flags&2097152)return{name:_,needsConvertPropertyAccess:!0};switch(c){case 3:return vLe(a)?{name:a.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(_),needsConvertPropertyAccess:!1};case 2:case 1:return _.charCodeAt(0)===32?void 0:{name:_,needsConvertPropertyAccess:!0};case 5:case 4:return f;default:$.assertNever(c)}}var tbe=[],KSt=Ef(()=>{let t=[];for(let n=83;n<=166;n++)t.push({name:Zs(n),kind:"keyword",kindModifiers:"",sortText:om.GlobalsOrKeywords});return t});function QSt(t,n){if(!n)return ZSt(t);let a=t+8+1;return tbe[a]||(tbe[a]=ZSt(t).filter(c=>!jgr(kx(c.name))))}function ZSt(t){return tbe[t]||(tbe[t]=KSt().filter(n=>{let a=kx(n.name);switch(t){case 0:return!1;case 1:return YSt(a)||a===138||a===144||a===156||a===145||a===128||Qz(a)&&a!==157;case 5:return YSt(a);case 2:return Uae(a);case 3:return XSt(a);case 4:return iU(a);case 6:return Qz(a)||a===87;case 7:return Qz(a);case 8:return a===156;default:return $.assertNever(t)}}))}function jgr(t){switch(t){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function XSt(t){return t===148}function Uae(t){switch(t){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return ome(t)}}function YSt(t){return t===134||t===135||t===160||t===130||t===152||t===156||!Ore(t)&&!Uae(t)}function rbe(t){return ct(t)?aA(t)??0:t.kind}function Bgr(t,n){let a=[];if(t){let c=t.getSourceFile(),u=t.parent,_=c.getLineAndCharacterOfPosition(t.end).line,f=c.getLineAndCharacterOfPosition(n).line;(fp(u)||P_(u)&&u.moduleSpecifier)&&t===u.moduleSpecifier&&_===f&&a.push({name:Zs(132),kind:"keyword",kindModifiers:"",sortText:om.GlobalsOrKeywords})}return a}function $gr(t,n){return fn(t,a=>MR(a)&&HL(a,n)?!0:kv(a)?"quit":!1)}function nbe(t,n,a,c){let u=n&&n!==t,_=c.getUnionType(yr(t.flags&1048576?t.types:[t],k=>!c.getPromisedTypeOfPromise(k))),f=u&&!(n.flags&3)?c.getUnionType([_,n]):_,y=Ugr(f,a,c);return f.isClass()&&ebt(y)?[]:u?yr(y,g):y;function g(k){return te(k.declarations)?Pt(k.declarations,T=>T.parent!==a):!0}}function Ugr(t,n,a){return t.isUnion()?a.getAllPossiblePropertiesOfTypes(yr(t.types,c=>!(c.flags&402784252||a.isArrayLikeType(c)||a.isTypeInvalidDueToUnionDiscriminant(c,n)||a.typeHasCallOrConstructSignatures(c)||c.isClass()&&ebt(c.getApparentProperties())))):t.getApparentProperties()}function ebt(t){return Pt(t,n=>!!(S0(n)&6))}function ibe(t,n){return t.isUnion()?$.checkEachDefined(n.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):$.checkEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function zgr(t,n,a,c){switch(a.kind){case 353:return Ci(a.parent,eF);case 1:let u=Ci(Yr(Ba(a.parent,Ta).statements),eF);if(u&&!Kl(u,20,t))return u;break;case 81:if(Ci(a.parent,ps))return fn(a,Co);break;case 80:{if(aA(a)||ps(a.parent)&&a.parent.initializer===a)return;if(obe(a))return fn(a,eF)}}if(n){if(a.kind===137||ct(n)&&ps(n.parent)&&Co(a))return fn(n,Co);switch(n.kind){case 64:return;case 27:case 20:return obe(a)&&a.parent.name===a?a.parent.parent:Ci(a,eF);case 19:case 28:return Ci(n.parent,eF);default:if(eF(a)){if(qs(t,n.getEnd()).line!==qs(t,c).line)return a;let u=Co(n.parent.parent)?Uae:XSt;return u(n.kind)||n.kind===42||ct(n)&&u(aA(n)??0)?n.parent.parent:void 0}return}}}function qgr(t){if(!t)return;let n=t.parent;switch(t.kind){case 19:if(fh(n))return n;break;case 27:case 28:case 80:if(n.kind===172&&fh(n.parent))return n.parent;break}}function tbt(t,n){if(!t)return;if(Wo(t)&&Zte(t.parent))return n.getTypeArgumentConstraint(t);let a=tbt(t.parent,n);if(a)switch(t.kind){case 172:return n.getTypeOfPropertyOfContextualType(a,t.symbol.escapedName);case 194:case 188:case 193:return a}}function obe(t){return t.parent&&qte(t.parent)&&eF(t.parent.parent)}function Jgr(t,n,a,c){switch(n){case".":case"@":return!0;case'"':case"'":case"`":return!!a&&P7e(a)&&c===a.getStart(t)+1;case"#":return!!a&&Aa(a)&&!!Cf(a);case"<":return!!a&&a.kind===30&&(!wi(a.parent)||rbt(a.parent));case"/":return!!a&&(Sl(a)?!!qG(a):a.kind===44&&bP(a.parent));case" ":return!!a&&sz(a)&&a.parent.kind===308;default:return $.assertNever(n)}}function rbt({left:t}){return Op(t)}function Vgr(t,n,a){let c=a.resolveName("self",void 0,111551,!1);if(c&&a.getTypeOfSymbolAtLocation(c,n)===t)return!0;let u=a.resolveName("global",void 0,111551,!1);if(u&&a.getTypeOfSymbolAtLocation(u,n)===t)return!0;let _=a.resolveName("globalThis",void 0,111551,!1);return!!(_&&a.getTypeOfSymbolAtLocation(_,n)===t)}function Wgr(t){return!!(t.valueDeclaration&&tm(t.valueDeclaration)&256&&Co(t.valueDeclaration.parent))}function Ggr(t,n){let a=n.getContextualType(t);if(a)return a;let c=V1(t.parent);if(wi(c)&&c.operatorToken.kind===64&&t===c.left)return n.getTypeAtLocation(c);if(Vt(c))return n.getContextualType(c)}function nbt(t,n){var a,c,u;let _,f=!1,y=g();return{isKeywordOnlyCompletion:f,keywordCompletion:_,isNewIdentifierLocation:!!(y||_===156),isTopLevelTypeOnly:!!((c=(a=Ci(y,fp))==null?void 0:a.importClause)!=null&&c.isTypeOnly)||!!((u=Ci(y,gd))!=null&&u.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!y&&obt(y,t),replacementSpan:Hgr(y)};function g(){let k=t.parent;if(gd(k)){let T=k.getLastToken(n);if(ct(t)&&T!==t){_=161,f=!0;return}return _=t.kind===156?void 0:156,ALe(k.moduleReference)?k:void 0}if(obt(k,t)&&abt(k.parent))return k;if(IS(k)||zx(k)){if(!k.parent.isTypeOnly&&(t.kind===19||t.kind===102||t.kind===28)&&(_=156),abt(k))if(t.kind===20||t.kind===80)f=!0,_=161;else return k.parent.parent;return}if(P_(k)&&t.kind===42||k0(k)&&t.kind===20){f=!0,_=161;return}if(sz(t)&&Ta(k))return _=156,t;if(sz(t)&&fp(k))return _=156,ALe(k.moduleSpecifier)?k:void 0}}function Hgr(t){var n;if(!t)return;let a=fn(t,jf(fp,gd,OS))??t,c=a.getSourceFile();if(Z4(a,c))return yh(a,c);$.assert(a.kind!==102&&a.kind!==277);let u=a.kind===273||a.kind===352?ibt((n=a.importClause)==null?void 0:n.namedBindings)??a.moduleSpecifier:a.moduleReference,_={pos:a.getFirstToken().getStart(),end:u.pos};if(Z4(_,c))return CE(_)}function ibt(t){var n;return wt((n=Ci(t,IS))==null?void 0:n.elements,a=>{var c;return!a.propertyName&&HO(a.name.text)&&((c=vd(a.name.pos,t.getSourceFile(),t))==null?void 0:c.kind)!==28})}function obt(t,n){return Xm(t)&&(t.isTypeOnly||n===t.name&&Joe(n))}function abt(t){if(!ALe(t.parent.parent.moduleSpecifier)||t.parent.name)return!1;if(IS(t)){let n=ibt(t);return(n?t.elements.indexOf(n):t.elements.length)<2}return!0}function ALe(t){var n;return Op(t)?!0:!((n=Ci(WT(t)?t.expression:t,Sl))!=null&&n.text)}function Kgr(t,n){if(!t)return;let a=fn(t,c=>tP(c)||sbt(c)||$s(c)?"quit":(wa(c)||Zu(c))&&!vC(c.parent));return a||(a=fn(n,c=>tP(c)||sbt(c)||$s(c)?"quit":Oo(c))),a}function Qgr(t){if(!t)return!1;let n=t,a=t.parent;for(;a;){if(Zu(a))return a.default===n||n.kind===64;n=a,a=a.parent}return!1}function sbt(t){return t.parent&&Iu(t.parent)&&(t.parent.body===t||t.kind===39)}function wLe(t,n,a=new Set){return c(t)||c($f(t.exportSymbol||t,n));function c(u){return!!(u.flags&788968)||n.isUnknownSymbol(u)||!!(u.flags&1536)&&o1(a,u)&&n.getExportsOfModule(u).some(_=>wLe(_,n,a))}}function Zgr(t,n){let a=$f(t,n).declarations;return!!te(a)&&ht(a,aae)}function cbt(t,n){if(n.length===0)return!0;let a=!1,c,u=0,_=t.length;for(let f=0;f<_;f++){let y=t.charCodeAt(f),g=n.charCodeAt(u);if((y===g||y===Xgr(g))&&(a||(a=c===void 0||97<=c&&c<=122&&65<=y&&y<=90||c===95&&y!==95),a&&u++,u===n.length))return!0;c=y}return!1}function Xgr(t){return 97<=t&&t<=122?t-32:t}function Ygr(t){return t==="abstract"||t==="async"||t==="await"||t==="declare"||t==="module"||t==="namespace"||t==="type"||t==="satisfies"||t==="as"}var abe={};d(abe,{getStringLiteralCompletionDetails:()=>ryr,getStringLiteralCompletions:()=>eyr});var lbt={directory:0,script:1,"external module name":2};function ILe(){let t=new Map;function n(a){let c=t.get(a.name);(!c||lbt[c.kind]({name:kb(F.value,C),kindModifiers:"",kind:"string",sortText:om.LocationPriority,replacementSpan:Y1e(n,g),commitCharacters:[]}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,optionalReplacementSpan:T,entries:O,defaultCommitCharacters:D3(t.isNewIdentifier)}}default:return $.assertNever(t)}}function ryr(t,n,a,c,u,_,f,y){if(!c||!Sl(c))return;let g=_bt(n,c,a,u,_,y);return g&&nyr(t,c,g,n,u.getTypeChecker(),f)}function nyr(t,n,a,c,u,_){switch(a.kind){case 0:{let f=wt(a.paths,y=>y.name===t);return f&&$ae(t,pbt(f.extension),f.kind,[Vy(t)])}case 1:{let f=wt(a.symbols,y=>y.name===t);return f&&CLe(f,f.name,u,c,n,_)}case 2:return wt(a.types,f=>f.value===t)?$ae(t,"","string",[Vy(t)]):void 0;default:return $.assertNever(a)}}function ubt(t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:t.map(({name:u,kind:_,span:f,extension:y})=>({name:u,kind:_,kindModifiers:pbt(y),sortText:om.LocationPriority,replacementSpan:f})),defaultCommitCharacters:D3(!0)}}function pbt(t){switch(t){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return $.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return $.assertNever(t)}}function _bt(t,n,a,c,u,_){let f=c.getTypeChecker(),y=PLe(n.parent);switch(y.kind){case 202:{let re=PLe(y.parent);return re.kind===206?{kind:0,paths:mbt(t,n,c,u,_)}:g(re)}case 304:return Lc(y.parent)&&y.name===n?ayr(f,y.parent):k()||k(0);case 213:{let{expression:re,argumentExpression:ae}=y;return n===bl(ae)?dbt(f.getTypeAtLocation(re)):void 0}case 214:case 215:case 292:if(!xyr(n)&&!Bh(y)){let re=AQ.getArgumentInfoForCompletions(y.kind===292?y.parent:n,a,t,f);return re&&oyr(re.invocation,n,re,f)||k(0)}case 273:case 279:case 284:case 352:return{kind:0,paths:mbt(t,n,c,u,_)};case 297:let T=lae(f,y.parent.clauses),C=k();return C?{kind:2,types:C.types.filter(re=>!T.hasValue(re.value)),isNewIdentifier:!1}:void 0;case 277:case 282:let F=y;if(F.propertyName&&n!==F.propertyName)return;let M=F.parent,{moduleSpecifier:U}=M.kind===276?M.parent.parent:M.parent;if(!U)return;let J=f.getSymbolAtLocation(U);if(!J)return;let G=f.getExportsAndPropertiesOfModule(J),Z=new Set(M.elements.map(re=>YI(re.propertyName||re.name)));return{kind:1,symbols:G.filter(re=>re.escapedName!=="default"&&!Z.has(re.escapedName)),hasIndexSignature:!1};case 227:if(y.operatorToken.kind===103){let re=f.getTypeAtLocation(y.right);return{kind:1,symbols:(re.isUnion()?f.getAllPossiblePropertiesOfTypes(re.types):re.getApparentProperties()).filter(_e=>!_e.valueDeclaration||!Tm(_e.valueDeclaration)),hasIndexSignature:!1}}return k(0);default:return k()||k(0)}function g(T){switch(T.kind){case 234:case 184:{let F=fn(y,M=>M.parent===T);return F?{kind:2,types:sbe(f.getTypeArgumentConstraint(F)),isNewIdentifier:!1}:void 0}case 200:let{indexType:C,objectType:O}=T;return HL(C,a)?dbt(f.getTypeFromTypeNode(O)):void 0;case 193:{let F=g(PLe(T.parent));if(!F)return;let M=iyr(T,y);return F.kind===1?{kind:1,symbols:F.symbols.filter(U=>!un(M,U.name)),hasIndexSignature:F.hasIndexSignature}:{kind:2,types:F.types.filter(U=>!un(M,U.value)),isNewIdentifier:!1}}default:return}}function k(T=4){let C=sbe(Xoe(n,f,T));if(C.length)return{kind:2,types:C,isNewIdentifier:!1}}}function PLe(t){switch(t.kind){case 197:return HG(t);case 218:return V1(t);default:return t}}function iyr(t,n){return Wn(t.types,a=>a!==n&&bE(a)&&Ic(a.literal)?a.literal.text:void 0)}function oyr(t,n,a,c){let u=!1,_=new Set,f=Em(t)?$.checkDefined(fn(n.parent,NS)):n,y=c.getCandidateSignaturesForStringLiteralCompletions(t,f),g=an(y,k=>{if(!Am(k)&&a.argumentCount>k.parameters.length)return;let T=k.getTypeParameterAtPosition(a.argumentIndex);if(Em(t)){let C=c.getTypeOfPropertyOfType(T,DH(f.name));C&&(T=C)}return u=u||!!(T.flags&4),sbe(T,_)});return te(g)?{kind:2,types:g,isNewIdentifier:u}:void 0}function dbt(t){return t&&{kind:1,symbols:yr(t.getApparentProperties(),n=>!(n.valueDeclaration&&Tm(n.valueDeclaration))),hasIndexSignature:Sve(t)}}function ayr(t,n){let a=t.getContextualType(n);if(!a)return;let c=t.getContextualType(n,4);return{kind:1,symbols:nbe(a,c,n,t),hasIndexSignature:Sve(a)}}function sbe(t,n=new Set){return t?(t=nve(t),t.isUnion()?an(t.types,a=>sbe(a,n)):t.isStringLiteral()&&!(t.flags&1024)&&o1(n,t.value)?[t]:j):j}function mq(t,n,a){return{name:t,kind:n,extension:a}}function NLe(t){return mq(t,"directory",void 0)}function fbt(t,n,a){let c=yyr(t,n),u=t.length===0?void 0:Jp(n,t.length);return a.map(({name:_,kind:f,extension:y})=>_.includes(Gl)||_.includes(x4)?{name:_,kind:f,extension:y,span:u}:{name:_,kind:f,extension:y,span:c})}function mbt(t,n,a,c,u){return fbt(n.text,n.getStart(t)+1,syr(t,n,a,c,u))}function syr(t,n,a,c,u){let _=Z_(n.text),f=Sl(n)?a.getModeForUsageLocation(t,n):void 0,y=t.path,g=mo(y),k=a.getCompilerOptions(),T=a.getTypeChecker(),C=BA(a,c),O=OLe(k,1,t,T,u,f);return vyr(_)||!k.baseUrl&&!k.paths&&(qd(_)||TR(_))?cyr(_,g,a,c,C,y,O):_yr(_,g,f,a,c,C,O)}function OLe(t,n,a,c,u,_){return{extensionsToSearch:Rc(lyr(t,c)),referenceKind:n,importingSourceFile:a,endingPreference:u?.importModuleSpecifierEnding,resolutionMode:_}}function cyr(t,n,a,c,u,_,f){let y=a.getCompilerOptions();return y.rootDirs?pyr(y.rootDirs,t,n,f,a,c,u,_):so(xQ(t,n,f,a,c,u,!0,_).values())}function lyr(t,n){let a=n?Wn(n.getAmbientModules(),_=>{let f=_.name.slice(1,-1);if(!(!f.startsWith("*.")||f.includes("/")))return f.slice(1)}):[],c=[...qU(t),a],u=km(t);return Voe(u)?SH(t,c):c}function uyr(t,n,a,c){t=t.map(_=>r_(Qs(qd(_)?_:Xi(n,_))));let u=Je(t,_=>ug(_,a,n,c)?a.substr(_.length):void 0);return rf([...t.map(_=>Xi(_,u)),a].map(_=>dv(_)),qm,Su)}function pyr(t,n,a,c,u,_,f,y){let k=u.getCompilerOptions().project||_.getCurrentDirectory(),T=!(_.useCaseSensitiveFileNames&&_.useCaseSensitiveFileNames()),C=uyr(t,k,a,T);return rf(an(C,O=>so(xQ(n,O,c,u,_,f,!0,y).values())),(O,F)=>O.name===F.name&&O.kind===F.kind&&O.extension===F.extension)}function xQ(t,n,a,c,u,_,f,y,g=ILe()){var k;t===void 0&&(t=""),t=Z_(t),uS(t)||(t=mo(t)),t===""&&(t="."+Gl),t=r_(t);let T=mb(n,t),C=uS(T)?T:mo(T);if(!f){let U=R7e(C,u);if(U){let G=nL(U,u).typesVersions;if(typeof G=="object"){let Z=(k=Eie(G))==null?void 0:k.paths;if(Z){let Q=mo(U),re=T.slice(r_(Q).length);if(gbt(g,re,Q,a,c,u,_,Z))return g}}}}let O=!(u.useCaseSensitiveFileNames&&u.useCaseSensitiveFileNames());if(!rae(u,C))return g;let F=Tve(u,C,a.extensionsToSearch,void 0,["./*"]);if(F)for(let U of F){if(U=Qs(U),y&&M1(U,y,n,O)===0)continue;let{name:J,extension:G}=hbt(t_(U),c,a,!1);g.add(mq(J,"script",G))}let M=tae(u,C);if(M)for(let U of M){let J=t_(Qs(U));J!=="@types"&&g.add(NLe(J))}return g}function hbt(t,n,a,c){let u=QT.tryGetRealFileNameForNonJsDeclarationFileName(t);if(u)return{name:u,extension:Bx(u)};if(a.referenceKind===0)return{name:t,extension:Bx(t)};let _=QT.getModuleSpecifierPreferences({importModuleSpecifierEnding:a.endingPreference},n,n.getCompilerOptions(),a.importingSourceFile).getAllowedEndingsInPreferredOrder(a.resolutionMode);if(c&&(_=_.filter(y=>y!==0&&y!==1)),_[0]===3){if(_p(t,vH))return{name:t,extension:Bx(t)};let y=QT.tryGetJSExtensionForFile(t,n.getCompilerOptions());return y?{name:hE(t,y),extension:y}:{name:t,extension:Bx(t)}}if(!c&&(_[0]===0||_[0]===1)&&_p(t,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Qm(t),extension:Bx(t)};let f=QT.tryGetJSExtensionForFile(t,n.getCompilerOptions());return f?{name:hE(t,f),extension:f}:{name:t,extension:Bx(t)}}function gbt(t,n,a,c,u,_,f,y){let g=T=>y[T],k=(T,C)=>{let O=oF(T),F=oF(C),M=typeof O=="object"?O.prefix.length:T.length,U=typeof F=="object"?F.prefix.length:C.length;return Br(U,M)};return ybt(t,!1,!1,n,a,c,u,_,f,Lu(y),g,k)}function ybt(t,n,a,c,u,_,f,y,g,k,T,C){let O=[],F;for(let M of k){if(M===".")continue;let U=M.replace(/^\.\//,"")+((n||a)&&au(M,"/")?"*":""),J=T(M);if(J){let G=oF(U);if(!G)continue;let Z=typeof G=="object"&&L1(G,c);Z&&(F===void 0||C(U,F)===-1)&&(F=U,O=O.filter(re=>!re.matchedPattern)),(typeof G=="string"||F===void 0||C(U,F)!==1)&&O.push({matchedPattern:Z,results:dyr(U,J,c,u,_,n,a,f,y,g).map(({name:re,kind:ae,extension:_e})=>mq(re,ae,_e))})}}return O.forEach(M=>M.results.forEach(U=>t.add(U))),F!==void 0}function _yr(t,n,a,c,u,_,f){let y=c.getTypeChecker(),g=c.getCompilerOptions(),{baseUrl:k,paths:T}=g,C=ILe(),O=km(g);if(k){let U=Qs(Xi(u.getCurrentDirectory(),k));xQ(t,U,f,c,u,_,!1,void 0,C)}if(T){let U=Ure(g,u);gbt(C,t,U,f,c,u,_,T)}let F=Sbt(t);for(let U of myr(t,F,y))C.add(mq(U,"external module name",void 0));if(Tbt(c,u,_,n,F,f,C),Voe(O)){let U=!1;if(F===void 0)for(let J of gyr(u,n)){let G=mq(J,"external module name",void 0);C.has(G.name)||(U=!0,C.add(G))}if(!U){let J=fH(g),G=mH(g),Z=!1,Q=ae=>{if(G&&!Z){let _e=Xi(ae,"package.json");if(Z=iq(u,_e)){let me=nL(_e,u);M(me.imports,t,ae,!1,!0)}}},re=ae=>{let _e=Xi(ae,"node_modules");rae(u,_e)&&xQ(t,_e,f,c,u,_,!1,void 0,C),Q(ae)};if(F&&J){let ae=re;re=_e=>{let me=Cd(t);me.shift();let le=me.shift();if(!le)return ae(_e);if(Ca(le,"@")){let ue=me.shift();if(!ue)return ae(_e);le=Xi(le,ue)}if(G&&Ca(le,"#"))return Q(_e);let Oe=Xi(_e,"node_modules",le),be=Xi(Oe,"package.json");if(iq(u,be)){let ue=nL(be,u),De=me.join("/")+(me.length&&uS(t)?"/":"");M(ue.exports,De,Oe,!0,!1);return}return ae(_e)}}Ab(u,n,re)}}return so(C.values());function M(U,J,G,Z,Q){if(typeof U!="object"||U===null)return;let re=Lu(U),ae=EC(g,a);ybt(C,Z,Q,J,G,f,c,u,_,re,_e=>{let me=vbt(U[_e],ae);if(me!==void 0)return Z2(au(_e,"/")&&au(me,"/")?me+"*":me)},Mye)}}function vbt(t,n){if(typeof t=="string")return t;if(t&&typeof t=="object"&&!Zn(t)){for(let a in t)if(a==="default"||n.includes(a)||uK(n,a)){let c=t[a];return vbt(c,n)}}}function Sbt(t){return FLe(t)?uS(t)?t:mo(t):void 0}function dyr(t,n,a,c,u,_,f,y,g,k){let T=oF(t);if(!T)return j;if(typeof T=="string")return O(t,"script");let C=Y8(a,T.prefix);if(C===void 0)return au(t,"/*")?O(T.prefix,"directory"):an(n,M=>{var U;return(U=bbt("",c,M,u,_,f,y,g,k))==null?void 0:U.map(({name:J,...G})=>({name:T.prefix+J+T.suffix,...G}))});return an(n,F=>bbt(C,c,F,u,_,f,y,g,k));function O(F,M){return Ca(F,a)?[{name:dv(F),kind:M,extension:void 0}]:j}}function bbt(t,n,a,c,u,_,f,y,g){if(!y.readDirectory)return;let k=oF(a);if(k===void 0||Ni(k))return;let T=mb(k.prefix),C=uS(k.prefix)?T:mo(T),O=uS(k.prefix)?"":t_(T),F=FLe(t),M=F?uS(t)?t:mo(t):void 0,U=()=>g.getCommonSourceDirectory(),J=!K4(g),G=f.getCompilerOptions().outDir,Z=f.getCompilerOptions().declarationDir,Q=F?Xi(C,O+M):C,re=Qs(Xi(n,Q)),ae=_&&G&&fhe(re,J,G,U),_e=_&&Z&&fhe(re,J,Z,U),me=Qs(k.suffix),le=me&&$re("_"+me),Oe=me?dhe("_"+me):void 0,be=[le&&hE(me,le),...Oe?Oe.map(de=>hE(me,de)):[],me].filter(Ni),ue=me?be.map(de=>"**/*"+de):["./*"],De=(u||_)&&au(a,"/*"),Ce=Ae(re);return ae&&(Ce=go(Ce,Ae(ae))),_e&&(Ce=go(Ce,Ae(_e))),me||(Ce=go(Ce,Fe(re)),ae&&(Ce=go(Ce,Fe(ae))),_e&&(Ce=go(Ce,Fe(_e)))),Ce;function Ae(de){let ze=F?de:r_(de)+O;return Wn(Tve(y,de,c.extensionsToSearch,void 0,ue),ut=>{let je=Be(ut,ze);if(je){if(FLe(je))return NLe(Cd(xbt(je))[1]);let{name:ve,extension:Le}=hbt(je,f,c,De);return mq(ve,"script",Le)}})}function Fe(de){return Wn(tae(y,de),ze=>ze==="node_modules"?void 0:NLe(ze))}function Be(de,ze){return Je(be,ut=>{let je=fyr(Qs(de),ze,ut);return je===void 0?void 0:xbt(je)})}}function fyr(t,n,a){return Ca(t,n)&&au(t,a)?t.slice(n.length,t.length-a.length):void 0}function xbt(t){return t[0]===Gl?t.slice(1):t}function myr(t,n,a){let u=a.getAmbientModules().map(_=>i1(_.name)).filter(_=>Ca(_,t)&&!_.includes("*"));if(n!==void 0){let _=r_(n);return u.map(f=>Mk(f,_))}return u}function hyr(t,n,a,c,u){let _=a.getCompilerOptions(),f=la(t,n),y=my(t.text,f.pos),g=y&&wt(y,J=>n>=J.pos&&n<=J.end);if(!g)return;let k=t.text.slice(g.pos,n),T=Syr.exec(k);if(!T)return;let[,C,O,F]=T,M=mo(t.path),U=O==="path"?xQ(F,M,OLe(_,0,t),a,c,u,!0,t.path):O==="types"?Tbt(a,c,u,M,Sbt(F),OLe(_,1,t)):$.fail();return fbt(F,g.pos+C.length,so(U.values()))}function Tbt(t,n,a,c,u,_,f=ILe()){let y=t.getCompilerOptions(),g=new Map,k=nae(()=>Tz(y,n))||j;for(let C of k)T(C);for(let C of Eve(c,n)){let O=Xi(mo(C),"node_modules/@types");T(O)}return f;function T(C){if(rae(n,C))for(let O of tae(n,C)){let F=pK(O);if(!(y.types&&!un(y.types,F)))if(u===void 0)g.has(F)||(f.add(mq(F,"external module name",void 0)),g.set(F,!0));else{let M=Xi(C,O),U=qhe(u,F,UT(n));U!==void 0&&xQ(U,M,_,t,n,a,!1,void 0,f)}}}}function gyr(t,n){if(!t.readFile||!t.fileExists)return j;let a=[];for(let c of Eve(n,t)){let u=nL(c,t);for(let _ of byr){let f=u[_];if(f)for(let y in f)Ho(f,y)&&!Ca(y,"@types/")&&a.push(y)}}return a}function yyr(t,n){let a=Math.max(t.lastIndexOf(Gl),t.lastIndexOf(x4)),c=a!==-1?a+1:0,u=t.length-c;return u===0||Jd(t.substr(c,u),99)?void 0:Jp(n+c,u)}function vyr(t){if(t&&t.length>=2&&t.charCodeAt(0)===46){let n=t.length>=3&&t.charCodeAt(1)===46?2:1,a=t.charCodeAt(n);return a===47||a===92}return!1}var Syr=/^(\/\/\/\s*QF,DefinitionKind:()=>Ibt,EntryKind:()=>Pbt,ExportKind:()=>Ebt,FindReferencesUse:()=>Nbt,ImportExport:()=>kbt,createImportTracker:()=>RLe,findModuleReferences:()=>Cbt,findReferenceOrRenameEntries:()=>Lyr,findReferencedSymbols:()=>Oyr,getContextNode:()=>A3,getExportInfo:()=>LLe,getImplementationsAtPosition:()=>Ryr,getImportOrExportSymbol:()=>wbt,getReferenceEntriesForNode:()=>Fbt,isContextWithStartAndEndNode:()=>jLe,isDeclarationOfSymbol:()=>Bbt,isWriteAccessForReference:()=>$Le,toContextSpan:()=>BLe,toHighlightSpan:()=>qyr,toReferenceEntry:()=>Mbt,toRenameLocation:()=>jyr});function RLe(t,n,a,c){let u=Cyr(t,a,c);return(_,f,y)=>{let{directImports:g,indirectUsers:k}=Tyr(t,n,u,f,a,c);return{indirectUsers:k,...Eyr(g,_,f.exportKind,a,y)}}}var Ebt=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t))(Ebt||{}),kbt=(t=>(t[t.Import=0]="Import",t[t.Export=1]="Export",t))(kbt||{});function Tyr(t,n,a,{exportingModuleSymbol:c,exportKind:u},_,f){let y=QL(),g=QL(),k=[],T=!!c.globalExports,C=T?void 0:[];return F(c),{directImports:k,indirectUsers:O()};function O(){if(T)return t;if(c.declarations)for(let Q of c.declarations)eP(Q)&&n.has(Q.getSourceFile().fileName)&&G(Q);return C.map(Pn)}function F(Q){let re=Z(Q);if(re){for(let ae of re)if(y(ae))switch(f&&f.throwIfCancellationRequested(),ae.kind){case 214:if(Bh(ae)){M(ae);break}if(!T){let me=ae.parent;if(u===2&&me.kind===261){let{name:le}=me;if(le.kind===80){k.push(le);break}}}break;case 80:break;case 272:J(ae,ae.name,ko(ae,32),!1);break;case 273:case 352:k.push(ae);let _e=ae.importClause&&ae.importClause.namedBindings;_e&&_e.kind===275?J(ae,_e.name,!1,!0):!T&&W4(ae)&&G(zae(ae));break;case 279:ae.exportClause?ae.exportClause.kind===281?G(zae(ae),!0):k.push(ae):F(Pyr(ae,_));break;case 206:!T&&ae.isTypeOf&&!ae.qualifier&&U(ae)&&G(ae.getSourceFile(),!0),k.push(ae);break;default:$.failBadSyntaxKind(ae,"Unexpected import kind.")}}}function M(Q){let re=fn(Q,cbe)||Q.getSourceFile();G(re,!!U(Q,!0))}function U(Q,re=!1){return fn(Q,ae=>re&&cbe(ae)?"quit":l1(ae)&&Pt(ae.modifiers,fF))}function J(Q,re,ae,_e){if(u===2)_e||k.push(Q);else if(!T){let me=zae(Q);$.assert(me.kind===308||me.kind===268),ae||kyr(me,re,_)?G(me,!0):G(me)}}function G(Q,re=!1){if($.assert(!T),!g(Q)||(C.push(Q),!re))return;let _e=_.getMergedSymbol(Q.symbol);if(!_e)return;$.assert(!!(_e.flags&1536));let me=Z(_e);if(me)for(let le of me)AS(le)||G(zae(le),!0)}function Z(Q){return a.get(hc(Q).toString())}}function Eyr(t,n,a,c,u){let _=[],f=[];function y(O,F){_.push([O,F])}if(t)for(let O of t)g(O);return{importSearches:_,singleReferences:f};function g(O){if(O.kind===272){MLe(O)&&k(O.name);return}if(O.kind===80){k(O);return}if(O.kind===206){if(O.qualifier){let U=_h(O.qualifier);U.escapedText===vp(n)&&f.push(U)}else a===2&&f.push(O.argument.literal);return}if(O.moduleSpecifier.kind!==11)return;if(O.kind===279){O.exportClause&&k0(O.exportClause)&&T(O.exportClause);return}let{name:F,namedBindings:M}=O.importClause||{name:void 0,namedBindings:void 0};if(M)switch(M.kind){case 275:k(M.name);break;case 276:(a===0||a===1)&&T(M);break;default:$.assertNever(M)}if(F&&(a===1||a===2)&&(!u||F.escapedText===Woe(n))){let U=c.getSymbolAtLocation(F);y(F,U)}}function k(O){a===2&&(!u||C(O.escapedText))&&y(O,c.getSymbolAtLocation(O))}function T(O){if(O)for(let F of O.elements){let{name:M,propertyName:U}=F;if(C(YI(U||M)))if(U)f.push(U),(!u||YI(M)===n.escapedName)&&y(M,c.getSymbolAtLocation(M));else{let J=F.kind===282&&F.propertyName?c.getExportSpecifierLocalTargetSymbol(F):c.getSymbolAtLocation(M);y(M,J)}}}function C(O){return O===n.escapedName||a!==0&&O==="default"}}function kyr(t,n,a){let c=a.getSymbolAtLocation(n);return!!Dbt(t,u=>{if(!P_(u))return;let{exportClause:_,moduleSpecifier:f}=u;return!f&&_&&k0(_)&&_.elements.some(y=>a.getExportSpecifierLocalTargetSymbol(y)===c)})}function Cbt(t,n,a){var c;let u=[],_=t.getTypeChecker();for(let f of n){let y=a.valueDeclaration;if(y?.kind===308){for(let g of f.referencedFiles)t.getSourceFileFromReference(f,g)===y&&u.push({kind:"reference",referencingFile:f,ref:g});for(let g of f.typeReferenceDirectives){let k=(c=t.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(g,f))==null?void 0:c.resolvedTypeReferenceDirective;k!==void 0&&k.resolvedFileName===y.fileName&&u.push({kind:"reference",referencingFile:f,ref:g})}}Abt(f,(g,k)=>{_.getSymbolAtLocation(k)===a&&u.push(fu(g)?{kind:"implicit",literal:k,referencingFile:f}:{kind:"import",literal:k})})}return u}function Cyr(t,n,a){let c=new Map;for(let u of t)a&&a.throwIfCancellationRequested(),Abt(u,(_,f)=>{let y=n.getSymbolAtLocation(f);if(y){let g=hc(y).toString(),k=c.get(g);k||c.set(g,k=[]),k.push(_)}});return c}function Dbt(t,n){return X(t.kind===308?t.statements:t.body.statements,a=>n(a)||cbe(a)&&X(a.body&&a.body.statements,n))}function Abt(t,n){if(t.externalModuleIndicator||t.imports!==void 0)for(let a of t.imports)n(bU(a),a);else Dbt(t,a=>{switch(a.kind){case 279:case 273:{let c=a;c.moduleSpecifier&&Ic(c.moduleSpecifier)&&n(c,c.moduleSpecifier);break}case 272:{let c=a;MLe(c)&&n(c,c.moduleReference.expression);break}}})}function wbt(t,n,a,c){return c?u():u()||_();function u(){var g;let{parent:k}=t,T=k.parent;if(n.exportSymbol)return k.kind===212?(g=n.declarations)!=null&&g.some(F=>F===k)&&wi(T)?O(T,!1):void 0:f(n.exportSymbol,y(k));{let F=Ayr(k,t);if(F&&ko(F,32))return gd(F)&&F.moduleReference===t?c?void 0:{kind:0,symbol:a.getSymbolAtLocation(F.name)}:f(n,y(F));if(Db(k))return f(n,0);if(Xu(k))return C(k);if(Xu(T))return C(T);if(wi(k))return O(k,!0);if(wi(T))return O(T,!0);if(_3(k)||Mge(k))return f(n,0)}function C(F){if(!F.symbol.parent)return;let M=F.isExportEquals?2:1;return{kind:1,symbol:n,exportInfo:{exportingModuleSymbol:F.symbol.parent,exportKind:M}}}function O(F,M){let U;switch(m_(F)){case 1:U=0;break;case 2:U=2;break;default:return}let J=M?a.getSymbolAtLocation(Rhe(Ba(F.left,wu))):n;return J&&f(J,U)}}function _(){if(!wyr(t))return;let k=a.getImmediateAliasedSymbol(n);if(!k||(k=Iyr(k,a),k.escapedName==="export="&&(k=Dyr(k,a),k===void 0)))return;let T=Woe(k);if(T===void 0||T==="default"||T===n.escapedName)return{kind:0,symbol:k}}function f(g,k){let T=LLe(g,k,a);return T&&{kind:1,symbol:g,exportInfo:T}}function y(g){return ko(g,2048)?1:0}}function Dyr(t,n){var a,c;if(t.flags&2097152)return n.getImmediateAliasedSymbol(t);let u=$.checkDefined(t.valueDeclaration);if(Xu(u))return(a=Ci(u.expression,gv))==null?void 0:a.symbol;if(wi(u))return(c=Ci(u.right,gv))==null?void 0:c.symbol;if(Ta(u))return u.symbol}function Ayr(t,n){let a=Oo(t)?t:Vc(t)?Pr(t):void 0;return a?t.name!==n||TP(a.parent)?void 0:h_(a.parent.parent)?a.parent.parent:void 0:t}function wyr(t){let{parent:n}=t;switch(n.kind){case 272:return n.name===t&&MLe(n);case 277:return!n.propertyName;case 274:case 275:return $.assert(n.name===t),!0;case 209:return Ei(t)&&rP(n.parent.parent);default:return!1}}function LLe(t,n,a){let c=t.parent;if(!c)return;let u=a.getMergedSymbol(c);return LO(u)?{exportingModuleSymbol:u,exportKind:n}:void 0}function Iyr(t,n){if(t.declarations)for(let a of t.declarations){if(Cm(a)&&!a.propertyName&&!a.parent.parent.moduleSpecifier)return n.getExportSpecifierLocalTargetSymbol(a)||t;if(no(a)&&Fx(a.expression)&&!Aa(a.name))return n.getSymbolAtLocation(a);if(im(a)&&wi(a.parent.parent)&&m_(a.parent.parent)===2)return n.getExportSpecifierLocalTargetSymbol(a.name)}return t}function Pyr(t,n){return n.getMergedSymbol(zae(t).symbol)}function zae(t){if(t.kind===214||t.kind===352)return t.getSourceFile();let{parent:n}=t;return n.kind===308?n:($.assert(n.kind===269),Ba(n.parent,cbe))}function cbe(t){return t.kind===268&&t.name.kind===11}function MLe(t){return t.moduleReference.kind===284&&t.moduleReference.expression.kind===11}var Ibt=(t=>(t[t.Symbol=0]="Symbol",t[t.Label=1]="Label",t[t.Keyword=2]="Keyword",t[t.This=3]="This",t[t.String=4]="String",t[t.TripleSlashReference=5]="TripleSlashReference",t))(Ibt||{}),Pbt=(t=>(t[t.Span=0]="Span",t[t.Node=1]="Node",t[t.StringLiteral=2]="StringLiteral",t[t.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",t[t.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",t))(Pbt||{});function YT(t,n=1){return{kind:n,node:t.name||t,context:Nyr(t)}}function jLe(t){return t&&t.kind===void 0}function Nyr(t){if(Vd(t))return A3(t);if(t.parent){if(!Vd(t.parent)&&!Xu(t.parent)){if(Ei(t)){let a=wi(t.parent)?t.parent:wu(t.parent)&&wi(t.parent.parent)&&t.parent.parent.left===t.parent?t.parent.parent:void 0;if(a&&m_(a)!==0)return A3(a)}if(Tv(t.parent)||bP(t.parent))return t.parent.parent;if(u3(t.parent)||bC(t.parent)||tU(t.parent))return t.parent;if(Sl(t)){let a=qG(t);if(a){let c=fn(a,u=>Vd(u)||fa(u)||MR(u));return Vd(c)?A3(c):c}}let n=fn(t,dc);return n?A3(n.parent):void 0}if(t.parent.name===t||kp(t.parent)||Xu(t.parent)||(Yk(t.parent)||Vc(t.parent))&&t.parent.propertyName===t||t.kind===90&&ko(t.parent,2080))return A3(t.parent)}}function A3(t){if(t)switch(t.kind){case 261:return!Df(t.parent)||t.parent.declarations.length!==1?t:h_(t.parent.parent)?t.parent.parent:M4(t.parent.parent)?A3(t.parent.parent):t.parent;case 209:return A3(t.parent.parent);case 277:return t.parent.parent.parent;case 282:case 275:return t.parent.parent;case 274:case 281:return t.parent;case 227:return af(t.parent)?t.parent:t;case 251:case 250:return{start:t.initializer,end:t.expression};case 304:case 305:return kE(t.parent)?A3(fn(t.parent,n=>wi(n)||M4(n))):t;case 256:return{start:wt(t.getChildren(t.getSourceFile()),n=>n.kind===109),end:t.caseBlock};default:return t}}function BLe(t,n,a){if(!a)return;let c=jLe(a)?Jae(a.start,n,a.end):Jae(a,n);return c.start!==t.start||c.length!==t.length?{contextSpan:c}:void 0}var Nbt=(t=>(t[t.Other=0]="Other",t[t.References=1]="References",t[t.Rename=2]="Rename",t))(Nbt||{});function Oyr(t,n,a,c,u){let _=Vh(c,u),f={use:1},y=QF.getReferencedSymbolsForNode(u,_,t,a,n,f),g=t.getTypeChecker(),k=QF.getAdjustedNode(_,f),T=Fyr(k)?g.getSymbolAtLocation(k):void 0;return!y||!y.length?void 0:Wn(y,({definition:C,references:O})=>C&&{definition:g.runWithCancellationToken(n,F=>Myr(C,F,_)),references:O.map(F=>Byr(F,T))})}function Fyr(t){return t.kind===90||!!TU(t)||KG(t)||t.kind===137&&kp(t.parent)}function Ryr(t,n,a,c,u){let _=Vh(c,u),f,y=Obt(t,n,a,_,u);if(_.parent.kind===212||_.parent.kind===209||_.parent.kind===213||_.kind===108)f=y&&[...y];else if(y){let k=u0(y),T=new Set;for(;!k.isEmpty();){let C=k.dequeue();if(!o1(T,hl(C.node)))continue;f=jt(f,C);let O=Obt(t,n,a,C.node,C.node.pos);O&&k.enqueue(...O)}}let g=t.getTypeChecker();return Cr(f,k=>Uyr(k,g))}function Obt(t,n,a,c,u){if(c.kind===308)return;let _=t.getTypeChecker();if(c.parent.kind===305){let f=[];return QF.getReferenceEntriesForShorthandPropertyAssignment(c,_,y=>f.push(YT(y))),f}else if(c.kind===108||_g(c.parent)){let f=_.getSymbolAtLocation(c);return f.valueDeclaration&&[YT(f.valueDeclaration)]}else return Fbt(u,c,t,a,n,{implementations:!0,use:1})}function Lyr(t,n,a,c,u,_,f){return Cr(Rbt(QF.getReferencedSymbolsForNode(u,c,t,a,n,_)),y=>f(y,c,t.getTypeChecker()))}function Fbt(t,n,a,c,u,_={},f=new Set(c.map(y=>y.fileName))){return Rbt(QF.getReferencedSymbolsForNode(t,n,a,c,u,_,f))}function Rbt(t){return t&&an(t,n=>n.references)}function Myr(t,n,a){let c=(()=>{switch(t.type){case 0:{let{symbol:T}=t,{displayParts:C,kind:O}=Lbt(T,n,a),F=C.map(J=>J.text).join(""),M=T.declarations&&pi(T.declarations),U=M?cs(M)||M:a;return{...qae(U),name:F,kind:O,displayParts:C,context:A3(M)}}case 1:{let{node:T}=t;return{...qae(T),name:T.text,kind:"label",displayParts:[hg(T.text,17)]}}case 2:{let{node:T}=t,C=Zs(T.kind);return{...qae(T),name:C,kind:"keyword",displayParts:[{text:C,kind:"keyword"}]}}case 3:{let{node:T}=t,C=n.getSymbolAtLocation(T),O=C&&wE.getSymbolDisplayPartsDocumentationAndSymbolKind(n,C,T.getSourceFile(),T3(T),T).displayParts||[Vy("this")];return{...qae(T),name:"this",kind:"var",displayParts:O}}case 4:{let{node:T}=t;return{...qae(T),name:T.text,kind:"var",displayParts:[hg(Sp(T),8)]}}case 5:return{textSpan:CE(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[hg(`"${t.reference.fileName}"`,8)]};default:return $.assertNever(t)}})(),{sourceFile:u,textSpan:_,name:f,kind:y,displayParts:g,context:k}=c;return{containerKind:"",containerName:"",fileName:u.fileName,kind:y,name:f,textSpan:_,displayParts:g,...BLe(_,u,k)}}function qae(t){let n=t.getSourceFile();return{sourceFile:n,textSpan:Jae(dc(t)?t.expression:t,n)}}function Lbt(t,n,a){let c=QF.getIntersectingMeaningFromDeclarations(a,t),u=t.declarations&&pi(t.declarations)||a,{displayParts:_,symbolKind:f}=wE.getSymbolDisplayPartsDocumentationAndSymbolKind(n,t,u.getSourceFile(),u,u,c);return{displayParts:_,kind:f}}function jyr(t,n,a,c,u){return{...lbe(t),...c&&$yr(t,n,a,u)}}function Byr(t,n){let a=Mbt(t);return n?{...a,isDefinition:t.kind!==0&&Bbt(t.node,n)}:a}function Mbt(t){let n=lbe(t);if(t.kind===0)return{...n,isWriteAccess:!1};let{kind:a,node:c}=t;return{...n,isWriteAccess:$Le(c),isInString:a===2?!0:void 0}}function lbe(t){if(t.kind===0)return{textSpan:t.textSpan,fileName:t.fileName};{let n=t.node.getSourceFile(),a=Jae(t.node,n);return{textSpan:a,fileName:n.fileName,...BLe(a,n,t.context)}}}function $yr(t,n,a,c){if(t.kind!==0&&(ct(n)||Sl(n))){let{node:u,kind:_}=t,f=u.parent,y=n.text,g=im(f);if(g||KK(f)&&f.name===u&&f.dotDotDotToken===void 0){let k={prefixText:y+": "},T={suffixText:": "+y};if(_===3)return k;if(_===4)return T;if(g){let C=f.parent;return Lc(C)&&wi(C.parent)&&Fx(C.parent.left)?k:T}else return k}else if(Xm(f)&&!f.propertyName){let k=Cm(n.parent)?a.getExportSpecifierLocalTargetSymbol(n.parent):a.getSymbolAtLocation(n);return un(k.declarations,f)?{prefixText:y+" as "}:u1}else if(Cm(f)&&!f.propertyName)return n===t.node||a.getSymbolAtLocation(n)===a.getSymbolAtLocation(t.node)?{prefixText:y+" as "}:{suffixText:" as "+y}}if(t.kind!==0&&qh(t.node)&&wu(t.node.parent)){let u=sve(c);return{prefixText:u,suffixText:u}}return u1}function Uyr(t,n){let a=lbe(t);if(t.kind!==0){let{node:c}=t;return{...a,...zyr(c,n)}}else return{...a,kind:"",displayParts:[]}}function zyr(t,n){let a=n.getSymbolAtLocation(Vd(t)&&t.name?t.name:t);return a?Lbt(a,n,t):t.kind===211?{kind:"interface",displayParts:[wm(21),Vy("object literal"),wm(22)]}:t.kind===232?{kind:"local class",displayParts:[wm(21),Vy("anonymous local class"),wm(22)]}:{kind:NP(t),displayParts:[]}}function qyr(t){let n=lbe(t);if(t.kind===0)return{fileName:n.fileName,span:{textSpan:n.textSpan,kind:"reference"}};let a=$Le(t.node),c={textSpan:n.textSpan,kind:a?"writtenReference":"reference",isInString:t.kind===2?!0:void 0,...n.contextSpan&&{contextSpan:n.contextSpan}};return{fileName:n.fileName,span:c}}function Jae(t,n,a){let c=t.getStart(n),u=(a||t).getEnd();return Sl(t)&&u-c>2&&($.assert(a===void 0),c+=1,u-=1),a?.kind===270&&(u=a.getFullStart()),Hu(c,u)}function jbt(t){return t.kind===0?t.textSpan:Jae(t.node,t.node.getSourceFile())}function $Le(t){let n=TU(t);return!!n&&Jyr(n)||t.kind===90||YO(t)}function Bbt(t,n){var a;if(!n)return!1;let c=TU(t)||(t.kind===90?t.parent:KG(t)||t.kind===137&&kp(t.parent)?t.parent.parent:void 0),u=c&&wi(c)?c.left:void 0;return!!(c&&((a=n.declarations)!=null&&a.some(_=>_===c||_===u)))}function Jyr(t){if(t.flags&33554432)return!0;switch(t.kind){case 227:case 209:case 264:case 232:case 90:case 267:case 307:case 282:case 274:case 272:case 277:case 265:case 339:case 347:case 292:case 268:case 271:case 275:case 281:case 170:case 305:case 266:case 169:return!0;case 304:return!kE(t.parent);case 263:case 219:case 177:case 175:case 178:case 179:return!!t.body;case 261:case 173:return!!t.initializer||TP(t.parent);case 174:case 172:case 349:case 342:return!1;default:return $.failBadSyntaxKind(t)}}var QF;(t=>{function n(Dt,ur,Ee,Bt,ye,et={},Ct=new Set(Bt.map(Ot=>Ot.fileName))){var Ot,ar;if(ur=a(ur,et),Ta(ur)){let gi=cM.getReferenceAtPosition(ur,Dt,Ee);if(!gi?.file)return;let Ye=Ee.getTypeChecker().getMergedSymbol(gi.file.symbol);if(Ye)return k(Ee,Ye,!1,Bt,Ct);let er=Ee.getFileIncludeReasons();return er?[{definition:{type:5,reference:gi.reference,file:ur},references:u(gi.file,er,Ee)||j}]:void 0}if(!et.implementations){let gi=C(ur,Bt,ye);if(gi)return gi}let at=Ee.getTypeChecker(),Zt=at.getSymbolAtLocation(kp(ur)&&ur.parent.name||ur);if(!Zt){if(!et.implementations&&Sl(ur)){if(Goe(ur)){let gi=Ee.getFileIncludeReasons(),Ye=(ar=(Ot=Ee.getResolvedModuleFromModuleSpecifier(ur))==null?void 0:Ot.resolvedModule)==null?void 0:ar.resolvedFileName,er=Ye?Ee.getSourceFile(Ye):void 0;if(er)return[{definition:{type:4,node:ur},references:u(er,gi,Ee)||j}]}return oo(ur,Bt,at,ye)}return}if(Zt.escapedName==="export=")return k(Ee,Zt.parent,!1,Bt,Ct);let Qt=f(Zt,Ee,Bt,ye,et,Ct);if(Qt&&!(Zt.flags&33554432))return Qt;let pr=_(ur,Zt,at),Et=pr&&f(pr,Ee,Bt,ye,et,Ct),xr=O(Zt,ur,Bt,Ct,at,ye,et);return y(Ee,Qt,xr,Et)}t.getReferencedSymbolsForNode=n;function a(Dt,ur){return ur.use===1?Dt=W1e(Dt):ur.use===2&&(Dt=Moe(Dt)),Dt}t.getAdjustedNode=a;function c(Dt,ur,Ee,Bt=new Set(Ee.map(ye=>ye.fileName))){var ye,et;let Ct=(ye=ur.getSourceFile(Dt))==null?void 0:ye.symbol;if(Ct)return((et=k(ur,Ct,!1,Ee,Bt)[0])==null?void 0:et.references)||j;let Ot=ur.getFileIncludeReasons(),ar=ur.getSourceFile(Dt);return ar&&Ot&&u(ar,Ot,ur)||j}t.getReferencesForFileName=c;function u(Dt,ur,Ee){let Bt,ye=ur.get(Dt.path)||j;for(let et of ye)if(MA(et)){let Ct=Ee.getSourceFileByPath(et.file),Ot=Uz(Ee,et);UL(Ot)&&(Bt=jt(Bt,{kind:0,fileName:Ct.fileName,textSpan:CE(Ot)}))}return Bt}function _(Dt,ur,Ee){if(Dt.parent&&UH(Dt.parent)){let Bt=Ee.getAliasedSymbol(ur),ye=Ee.getMergedSymbol(Bt);if(Bt!==ye)return ye}}function f(Dt,ur,Ee,Bt,ye,et){let Ct=Dt.flags&1536&&Dt.declarations&&wt(Dt.declarations,Ta);if(!Ct)return;let Ot=Dt.exports.get("export="),ar=k(ur,Dt,!!Ot,Ee,et);if(!Ot||!et.has(Ct.fileName))return ar;let at=ur.getTypeChecker();return Dt=$f(Ot,at),y(ur,ar,O(Dt,void 0,Ee,et,at,Bt,ye))}function y(Dt,...ur){let Ee;for(let Bt of ur)if(!(!Bt||!Bt.length)){if(!Ee){Ee=Bt;continue}for(let ye of Bt){if(!ye.definition||ye.definition.type!==0){Ee.push(ye);continue}let et=ye.definition.symbol,Ct=hr(Ee,ar=>!!ar.definition&&ar.definition.type===0&&ar.definition.symbol===et);if(Ct===-1){Ee.push(ye);continue}let Ot=Ee[Ct];Ee[Ct]={definition:Ot.definition,references:Ot.references.concat(ye.references).sort((ar,at)=>{let Zt=g(Dt,ar),Qt=g(Dt,at);if(Zt!==Qt)return Br(Zt,Qt);let pr=jbt(ar),Et=jbt(at);return pr.start!==Et.start?Br(pr.start,Et.start):Br(pr.length,Et.length)})}}}return Ee}function g(Dt,ur){let Ee=ur.kind===0?Dt.getSourceFile(ur.fileName):ur.node.getSourceFile();return Dt.getSourceFiles().indexOf(Ee)}function k(Dt,ur,Ee,Bt,ye){$.assert(!!ur.valueDeclaration);let et=Wn(Cbt(Dt,Bt,ur),Ot=>{if(Ot.kind==="import"){let ar=Ot.literal.parent;if(bE(ar)){let at=Ba(ar.parent,AS);if(Ee&&!at.qualifier)return}return YT(Ot.literal)}else if(Ot.kind==="implicit"){let ar=Ot.literal.text!==nC&&CF(Ot.referencingFile,at=>at.transformFlags&2?PS(at)||u3(at)||DA(at)?at:void 0:"skip")||Ot.referencingFile.statements[0]||Ot.referencingFile;return YT(ar)}else return{kind:0,fileName:Ot.referencingFile.fileName,textSpan:CE(Ot.ref)}});if(ur.declarations)for(let Ot of ur.declarations)switch(Ot.kind){case 308:break;case 268:ye.has(Ot.getSourceFile().fileName)&&et.push(YT(Ot.name));break;default:$.assert(!!(ur.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}let Ct=ur.exports.get("export=");if(Ct?.declarations)for(let Ot of Ct.declarations){let ar=Ot.getSourceFile();if(ye.has(ar.fileName)){let at=wi(Ot)&&no(Ot.left)?Ot.left.expression:Xu(Ot)?$.checkDefined(Kl(Ot,95,ar)):cs(Ot)||Ot;et.push(YT(at))}}return et.length?[{definition:{type:0,symbol:ur},references:et}]:j}function T(Dt){return Dt.kind===148&&bA(Dt.parent)&&Dt.parent.operator===148}function C(Dt,ur,Ee){if(Qz(Dt.kind))return Dt.kind===116&&SF(Dt.parent)||Dt.kind===148&&!T(Dt)?void 0:ut(ur,Dt.kind,Ee,Dt.kind===148?T:void 0);if(qR(Dt.parent)&&Dt.parent.name===Dt)return ze(ur,Ee);if(mF(Dt)&&n_(Dt.parent))return[{definition:{type:2,node:Dt},references:[YT(Dt)]}];if(UK(Dt)){let Bt=Poe(Dt.parent,Dt.text);return Bt&&Be(Bt.parent,Bt)}else if(M1e(Dt))return Be(Dt.parent,Dt);if(GL(Dt))return Wa(Dt,ur,Ee);if(Dt.kind===108)return sr(Dt)}function O(Dt,ur,Ee,Bt,ye,et,Ct){let Ot=ur&&U(Dt,ur,ye,!Es(Ct))||Dt,ar=ur&&Ct.use!==2?vo(ur,Ot):7,at=[],Zt=new Z(Ee,Bt,ur?M(ur):0,ye,et,ar,Ct,at),Qt=!Es(Ct)||!Ot.declarations?void 0:wt(Ot.declarations,Cm);if(Qt)It(Qt.name,Ot,Qt,Zt.createSearch(ur,Dt,void 0),Zt,!0,!0);else if(ur&&ur.kind===90&&Ot.escapedName==="default"&&Ot.parent)Qe(ur,Ot,Zt),Q(ur,Ot,{exportingModuleSymbol:Ot.parent,exportKind:1},Zt);else{let pr=Zt.createSearch(ur,Ot,void 0,{allSearchSymbols:ur?$o(Ot,ur,ye,Ct.use===2,!!Ct.providePrefixAndSuffixTextForRename,!!Ct.implementations):[Ot]});F(Ot,Zt,pr)}return at}function F(Dt,ur,Ee){let Bt=Oe(Dt);if(Bt)ve(Bt,Bt.getSourceFile(),Ee,ur,!(Ta(Bt)&&!un(ur.sourceFiles,Bt)));else for(let ye of ur.sourceFiles)ur.cancellationToken.throwIfCancellationRequested(),me(ye,Ee,ur)}function M(Dt){switch(Dt.kind){case 177:case 137:return 1;case 80:if(Co(Dt.parent))return $.assert(Dt.parent.name===Dt),2;default:return 0}}function U(Dt,ur,Ee,Bt){let{parent:ye}=ur;return Cm(ye)&&Bt?ke(ur,Dt,ye,Ee):Je(Dt.declarations,et=>{if(!et.parent){if(Dt.flags&33554432)return;$.fail(`Unexpected symbol at ${$.formatSyntaxKind(ur.kind)}: ${$.formatSymbol(Dt)}`)}return fh(et.parent)&&SE(et.parent.parent)?Ee.getPropertyOfType(Ee.getTypeFromTypeNode(et.parent.parent),Dt.name):void 0})}let J;(Dt=>{Dt[Dt.None=0]="None",Dt[Dt.Constructor=1]="Constructor",Dt[Dt.Class=2]="Class"})(J||(J={}));function G(Dt){if(!(Dt.flags&33555968))return;let ur=Dt.declarations&&wt(Dt.declarations,Ee=>!Ta(Ee)&&!I_(Ee));return ur&&ur.symbol}class Z{constructor(ur,Ee,Bt,ye,et,Ct,Ot,ar){this.sourceFiles=ur,this.sourceFilesSet=Ee,this.specialSearchKind=Bt,this.checker=ye,this.cancellationToken=et,this.searchMeaning=Ct,this.options=Ot,this.result=ar,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=QL(),this.markSeenReExportRHS=QL(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(ur){return this.sourceFilesSet.has(ur.fileName)}getImportSearches(ur,Ee){return this.importTracker||(this.importTracker=RLe(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(ur,Ee,this.options.use===2)}createSearch(ur,Ee,Bt,ye={}){let{text:et=i1(vp(RU(Ee)||G(Ee)||Ee)),allSearchSymbols:Ct=[Ee]}=ye,Ot=dp(et),ar=this.options.implementations&&ur?Cn(ur,Ee,this.checker):void 0;return{symbol:Ee,comingFrom:Bt,text:et,escapedText:Ot,parents:ar,allSearchSymbols:Ct,includes:at=>un(Ct,at)}}referenceAdder(ur){let Ee=hc(ur),Bt=this.symbolIdToReferences[Ee];return Bt||(Bt=this.symbolIdToReferences[Ee]=[],this.result.push({definition:{type:0,symbol:ur},references:Bt})),(ye,et)=>Bt.push(YT(ye,et))}addStringOrCommentReference(ur,Ee){this.result.push({definition:void 0,references:[{kind:0,fileName:ur,textSpan:Ee}]})}markSearchedSymbols(ur,Ee){let Bt=hl(ur),ye=this.sourceFileToSeenSymbols[Bt]||(this.sourceFileToSeenSymbols[Bt]=new Set),et=!1;for(let Ct of Ee)et=Us(ye,hc(Ct))||et;return et}}function Q(Dt,ur,Ee,Bt){let{importSearches:ye,singleReferences:et,indirectUsers:Ct}=Bt.getImportSearches(ur,Ee);if(et.length){let Ot=Bt.referenceAdder(ur);for(let ar of et)ae(ar,Bt)&&Ot(ar)}for(let[Ot,ar]of ye)je(Ot.getSourceFile(),Bt.createSearch(Ot,ar,1),Bt);if(Ct.length){let Ot;switch(Ee.exportKind){case 0:Ot=Bt.createSearch(Dt,ur,1);break;case 1:Ot=Bt.options.use===2?void 0:Bt.createSearch(Dt,ur,1,{text:"default"});break;case 2:break}if(Ot)for(let ar of Ct)me(ar,Ot,Bt)}}function re(Dt,ur,Ee,Bt,ye,et,Ct,Ot){let ar=RLe(Dt,new Set(Dt.map(pr=>pr.fileName)),ur,Ee),{importSearches:at,indirectUsers:Zt,singleReferences:Qt}=ar(Bt,{exportKind:Ct?1:0,exportingModuleSymbol:ye},!1);for(let[pr]of at)Ot(pr);for(let pr of Qt)ct(pr)&&AS(pr.parent)&&Ot(pr);for(let pr of Zt)for(let Et of Ae(pr,Ct?"default":et)){let xr=ur.getSymbolAtLocation(Et),gi=Pt(xr?.declarations,Ye=>!!Ci(Ye,Xu));ct(Et)&&!Yk(Et.parent)&&(xr===Bt||gi)&&Ot(Et)}}t.eachExportReference=re;function ae(Dt,ur){return Le(Dt,ur)?ur.options.use!==2?!0:!ct(Dt)&&!Yk(Dt.parent)?!1:!(Yk(Dt.parent)&&bb(Dt)):!1}function _e(Dt,ur){if(Dt.declarations)for(let Ee of Dt.declarations){let Bt=Ee.getSourceFile();je(Bt,ur.createSearch(Ee,Dt,0),ur,ur.includesSourceFile(Bt))}}function me(Dt,ur,Ee){vSe(Dt).get(ur.escapedText)!==void 0&&je(Dt,ur,Ee)}function le(Dt,ur){return kE(Dt.parent.parent)?ur.getPropertySymbolOfDestructuringAssignment(Dt):void 0}function Oe(Dt){let{declarations:ur,flags:Ee,parent:Bt,valueDeclaration:ye}=Dt;if(ye&&(ye.kind===219||ye.kind===232))return ye;if(!ur)return;if(Ee&8196){let Ot=wt(ur,ar=>Bg(ar,2)||Tm(ar));return Ot?mA(Ot,264):void 0}if(ur.some(KK))return;let et=Bt&&!(Dt.flags&262144);if(et&&!(LO(Bt)&&!Bt.globalExports))return;let Ct;for(let Ot of ur){let ar=T3(Ot);if(Ct&&Ct!==ar||!ar||ar.kind===308&&!Lg(ar))return;if(Ct=ar,bu(Ct)){let at;for(;at=Gme(Ct);)Ct=at}}return et?Ct.getSourceFile():Ct}function be(Dt,ur,Ee,Bt=Ee){return ue(Dt,ur,Ee,()=>!0,Bt)||!1}t.isSymbolReferencedInFile=be;function ue(Dt,ur,Ee,Bt,ye=Ee){let et=ne(Dt.parent,Dt.parent.parent)?To(ur.getSymbolsOfParameterPropertyDeclaration(Dt.parent,Dt.text)):ur.getSymbolAtLocation(Dt);if(et)for(let Ct of Ae(Ee,et.name,ye)){if(!ct(Ct)||Ct===Dt||Ct.escapedText!==Dt.escapedText)continue;let Ot=ur.getSymbolAtLocation(Ct);if(Ot===et||ur.getShorthandAssignmentValueSymbol(Ct.parent)===et||Cm(Ct.parent)&&ke(Ct,Ot,Ct.parent,ur)===et){let ar=Bt(Ct);if(ar)return ar}}}t.eachSymbolReferenceInFile=ue;function De(Dt,ur){return yr(Ae(ur,Dt),ye=>!!TU(ye)).reduce((ye,et)=>{let Ct=Bt(et);return!Pt(ye.declarationNames)||Ct===ye.depth?(ye.declarationNames.push(et),ye.depth=Ct):CtZt===ye)&&Bt(Ct,ar))return!0}return!1}t.someSignatureUsage=Ce;function Ae(Dt,ur,Ee=Dt){return Wn(Fe(Dt,ur,Ee),Bt=>{let ye=Vh(Dt,Bt);return ye===Dt?void 0:ye})}function Fe(Dt,ur,Ee=Dt){let Bt=[];if(!ur||!ur.length)return Bt;let ye=Dt.text,et=ye.length,Ct=ur.length,Ot=ye.indexOf(ur,Ee.pos);for(;Ot>=0&&!(Ot>Ee.end);){let ar=Ot+Ct;(Ot===0||!j1(ye.charCodeAt(Ot-1),99))&&(ar===et||!j1(ye.charCodeAt(ar),99))&&Bt.push(Ot),Ot=ye.indexOf(ur,Ot+Ct+1)}return Bt}function Be(Dt,ur){let Ee=Dt.getSourceFile(),Bt=ur.text,ye=Wn(Ae(Ee,Bt,Dt),et=>et===ur||UK(et)&&Poe(et,Bt)===ur?YT(et):void 0);return[{definition:{type:1,node:ur},references:ye}]}function de(Dt,ur){switch(Dt.kind){case 81:if(wA(Dt.parent))return!0;case 80:return Dt.text.length===ur.length;case 15:case 11:{let Ee=Dt;return Ee.text.length===ur.length&&(Noe(Ee)||U1e(Dt)||r7e(Dt)||Js(Dt.parent)&&J4(Dt.parent)&&Dt.parent.arguments[1]===Dt||Yk(Dt.parent))}case 9:return Noe(Dt)&&Dt.text.length===ur.length;case 90:return ur.length===7;default:return!1}}function ze(Dt,ur){let Ee=an(Dt,Bt=>(ur.throwIfCancellationRequested(),Wn(Ae(Bt,"meta",Bt),ye=>{let et=ye.parent;if(qR(et))return YT(et)})));return Ee.length?[{definition:{type:2,node:Ee[0].node},references:Ee}]:void 0}function ut(Dt,ur,Ee,Bt){let ye=an(Dt,et=>(Ee.throwIfCancellationRequested(),Wn(Ae(et,Zs(ur),et),Ct=>{if(Ct.kind===ur&&(!Bt||Bt(Ct)))return YT(Ct)})));return ye.length?[{definition:{type:2,node:ye[0].node},references:ye}]:void 0}function je(Dt,ur,Ee,Bt=!0){return Ee.cancellationToken.throwIfCancellationRequested(),ve(Dt,Dt,ur,Ee,Bt)}function ve(Dt,ur,Ee,Bt,ye){if(Bt.markSearchedSymbols(ur,Ee.allSearchSymbols))for(let et of Fe(ur,Ee.text,Dt))Ve(ur,et,Ee,Bt,ye)}function Le(Dt,ur){return!!(x3(Dt)&ur.searchMeaning)}function Ve(Dt,ur,Ee,Bt,ye){let et=Vh(Dt,ur);if(!de(et,Ee.text)){!Bt.options.implementations&&(Bt.options.findInStrings&&jF(Dt,ur)||Bt.options.findInComments&&m7e(Dt,ur))&&Bt.addStringOrCommentReference(Dt.fileName,Jp(ur,Ee.text.length));return}if(!Le(et,Bt))return;let Ct=Bt.checker.getSymbolAtLocation(et);if(!Ct)return;let Ot=et.parent;if(Xm(Ot)&&Ot.propertyName===et)return;if(Cm(Ot)){$.assert(et.kind===80||et.kind===11),It(et,Ct,Ot,Ee,Bt,ye);return}if(rU(Ot)&&Ot.isNameFirst&&Ot.typeExpression&&p3(Ot.typeExpression.type)&&Ot.typeExpression.type.jsDocPropertyTags&&te(Ot.typeExpression.type.jsDocPropertyTags)){nt(Ot.typeExpression.type.jsDocPropertyTags,et,Ee,Bt);return}let ar=ai(Ee,Ct,et,Bt);if(!ar){tt(Ct,Ee,Bt);return}switch(Bt.specialSearchKind){case 0:ye&&Qe(et,ar,Bt);break;case 1:We(et,Dt,Ee,Bt);break;case 2:St(et,Ee,Bt);break;default:$.assertNever(Bt.specialSearchKind)}Ei(et)&&Vc(et.parent)&&rP(et.parent.parent.parent)&&(Ct=et.parent.symbol,!Ct)||Se(et,Ct,Ee,Bt)}function nt(Dt,ur,Ee,Bt){let ye=Bt.referenceAdder(Ee.symbol);Qe(ur,Ee.symbol,Bt),X(Dt,et=>{dh(et.name)&&ye(et.name.left)})}function It(Dt,ur,Ee,Bt,ye,et,Ct){$.assert(!Ct||!!ye.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:Ot,propertyName:ar,name:at}=Ee,Zt=Ot.parent,Qt=ke(Dt,ur,Ee,ye.checker);if(!Ct&&!Bt.includes(Qt))return;if(ar?Dt===ar?(Zt.moduleSpecifier||pr(),et&&ye.options.use!==2&&ye.markSeenReExportRHS(at)&&Qe(at,$.checkDefined(Ee.symbol),ye)):ye.markSeenReExportRHS(Dt)&&pr():ye.options.use===2&&bb(at)||pr(),!Es(ye.options)||Ct){let xr=bb(Dt)||bb(Ee.name)?1:0,gi=$.checkDefined(Ee.symbol),Ye=LLe(gi,xr,ye.checker);Ye&&Q(Dt,gi,Ye,ye)}if(Bt.comingFrom!==1&&Zt.moduleSpecifier&&!ar&&!Es(ye.options)){let Et=ye.checker.getExportSpecifierLocalTargetSymbol(Ee);Et&&_e(Et,ye)}function pr(){et&&Qe(Dt,Qt,ye)}}function ke(Dt,ur,Ee,Bt){return _t(Dt,Ee)&&Bt.getExportSpecifierLocalTargetSymbol(Ee)||ur}function _t(Dt,ur){let{parent:Ee,propertyName:Bt,name:ye}=ur;return $.assert(Bt===Dt||ye===Dt),Bt?Bt===Dt:!Ee.parent.moduleSpecifier}function Se(Dt,ur,Ee,Bt){let ye=wbt(Dt,ur,Bt.checker,Ee.comingFrom===1);if(!ye)return;let{symbol:et}=ye;ye.kind===0?Es(Bt.options)||_e(et,Bt):Q(Dt,et,ye.exportInfo,Bt)}function tt({flags:Dt,valueDeclaration:ur},Ee,Bt){let ye=Bt.checker.getShorthandAssignmentValueSymbol(ur),et=ur&&cs(ur);!(Dt&33554432)&&et&&Ee.includes(ye)&&Qe(et,ye,Bt)}function Qe(Dt,ur,Ee){let{kind:Bt,symbol:ye}="kind"in ur?ur:{kind:void 0,symbol:ur};if(Ee.options.use===2&&Dt.kind===90)return;let et=Ee.referenceAdder(ye);Ee.options.implementations?Dr(Dt,et,Ee):et(Dt,Bt)}function We(Dt,ur,Ee,Bt){Wz(Dt)&&Qe(Dt,Ee.symbol,Bt);let ye=()=>Bt.referenceAdder(Ee.symbol);if(Co(Dt.parent))$.assert(Dt.kind===90||Dt.parent.name===Dt),Kt(Ee.symbol,ur,ye());else{let et=yc(Dt);et&&(nn(et,ye()),$t(et,Bt))}}function St(Dt,ur,Ee){Qe(Dt,ur.symbol,Ee);let Bt=Dt.parent;if(Ee.options.use===2||!Co(Bt))return;$.assert(Bt.name===Dt);let ye=Ee.referenceAdder(ur.symbol);for(let et of Bt.members)OO(et)&&oc(et)&&et.body&&et.body.forEachChild(function Ct(Ot){Ot.kind===110?ye(Ot):!Rs(Ot)&&!Co(Ot)&&Ot.forEachChild(Ct)})}function Kt(Dt,ur,Ee){let Bt=Sr(Dt);if(Bt&&Bt.declarations)for(let ye of Bt.declarations){let et=Kl(ye,137,ur);$.assert(ye.kind===177&&!!et),Ee(et)}Dt.exports&&Dt.exports.forEach(ye=>{let et=ye.valueDeclaration;if(et&&et.kind===175){let Ct=et.body;Ct&&Ls(Ct,110,Ot=>{Wz(Ot)&&Ee(Ot)})}})}function Sr(Dt){return Dt.members&&Dt.members.get("__constructor")}function nn(Dt,ur){let Ee=Sr(Dt.symbol);if(Ee&&Ee.declarations)for(let Bt of Ee.declarations){$.assert(Bt.kind===177);let ye=Bt.body;ye&&Ls(ye,108,et=>{F1e(et)&&ur(et)})}}function Nn(Dt){return!!Sr(Dt.symbol)}function $t(Dt,ur){if(Nn(Dt))return;let Ee=Dt.symbol,Bt=ur.createSearch(void 0,Ee,void 0);F(Ee,ur,Bt)}function Dr(Dt,ur,Ee){if(Eb(Dt)&&Eo(Dt.parent)){ur(Dt);return}if(Dt.kind!==80)return;Dt.parent.kind===305&&ya(Dt,Ee.checker,ur);let Bt=Qn(Dt);if(Bt){ur(Bt);return}let ye=fn(Dt,Ot=>!dh(Ot.parent)&&!Wo(Ot.parent)&&!KI(Ot.parent)),et=ye.parent;if(Qte(et)&&et.type===ye&&Ee.markSeenContainingTypeReference(et))if(lE(et))Ct(et.initializer);else if(Rs(et)&&et.body){let Ot=et.body;Ot.kind===242?sC(Ot,ar=>{ar.expression&&Ct(ar.expression)}):Ct(Ot)}else(ZI(et)||yL(et))&&Ct(et.expression);function Ct(Ot){Ko(Ot)&&ur(Ot)}}function Qn(Dt){return ct(Dt)||no(Dt)?Qn(Dt.parent):VT(Dt)?Ci(Dt.parent.parent,jf(Co,Af)):void 0}function Ko(Dt){switch(Dt.kind){case 218:return Ko(Dt.expression);case 220:case 219:case 211:case 232:case 210:return!0;default:return!1}}function is(Dt,ur,Ee,Bt){if(Dt===ur)return!0;let ye=hc(Dt)+","+hc(ur),et=Ee.get(ye);if(et!==void 0)return et;Ee.set(ye,!1);let Ct=!!Dt.declarations&&Dt.declarations.some(Ot=>EU(Ot).some(ar=>{let at=Bt.getTypeAtLocation(ar);return!!at&&!!at.symbol&&is(at.symbol,ur,Ee,Bt)}));return Ee.set(ye,Ct),Ct}function sr(Dt){let ur=IG(Dt,!1);if(!ur)return;let Ee=256;switch(ur.kind){case 173:case 172:case 175:case 174:case 177:case 178:case 179:Ee&=_E(ur),ur=ur.parent;break;default:return}let Bt=ur.getSourceFile(),ye=Wn(Ae(Bt,"super",ur),et=>{if(et.kind!==108)return;let Ct=IG(et,!1);return Ct&&oc(Ct)===!!Ee&&Ct.parent.symbol===ur.symbol?YT(et):void 0});return[{definition:{type:0,symbol:ur.symbol},references:ye}]}function uo(Dt){return Dt.kind===80&&Dt.parent.kind===170&&Dt.parent.name===Dt}function Wa(Dt,ur,Ee){let Bt=Hm(Dt,!1,!1),ye=256;switch(Bt.kind){case 175:case 174:if(r1(Bt)){ye&=_E(Bt),Bt=Bt.parent;break}case 173:case 172:case 177:case 178:case 179:ye&=_E(Bt),Bt=Bt.parent;break;case 308:if(yd(Bt)||uo(Dt))return;case 263:case 219:break;default:return}let et=an(Bt.kind===308?ur:[Bt.getSourceFile()],Ot=>(Ee.throwIfCancellationRequested(),Ae(Ot,"this",Ta(Bt)?Ot:Bt).filter(ar=>{if(!GL(ar))return!1;let at=Hm(ar,!1,!1);if(!gv(at))return!1;switch(Bt.kind){case 219:case 263:return Bt.symbol===at.symbol;case 175:case 174:return r1(Bt)&&Bt.symbol===at.symbol;case 232:case 264:case 211:return at.parent&&gv(at.parent)&&Bt.symbol===at.parent.symbol&&oc(at)===!!ye;case 308:return at.kind===308&&!yd(at)&&!uo(ar)}}))).map(Ot=>YT(Ot));return[{definition:{type:3,node:Je(et,Ot=>wa(Ot.node.parent)?Ot.node:void 0)||Dt},references:et}]}function oo(Dt,ur,Ee,Bt){let ye=Loe(Dt,Ee),et=an(ur,Ct=>(Bt.throwIfCancellationRequested(),Wn(Ae(Ct,Dt.text),Ot=>{if(Sl(Ot)&&Ot.text===Dt.text)if(ye){let ar=Loe(Ot,Ee);if(ye!==Ee.getStringType()&&(ye===ar||Oi(Ot,Ee)))return YT(Ot,2)}else return r3(Ot)&&!Z4(Ot,Ct)?void 0:YT(Ot,2)})));return[{definition:{type:4,node:Dt},references:et}]}function Oi(Dt,ur){if(Zm(Dt.parent))return ur.getPropertyOfType(ur.getTypeAtLocation(Dt.parent.parent),Dt.text)}function $o(Dt,ur,Ee,Bt,ye,et){let Ct=[];return ft(Dt,ur,Ee,Bt,!(Bt&&ye),(Ot,ar,at)=>{at&&Wr(Dt)!==Wr(at)&&(at=void 0),Ct.push(at||ar||Ot)},()=>!et),Ct}function ft(Dt,ur,Ee,Bt,ye,et,Ct){let Ot=dQ(ur);if(Ot){let xr=Ee.getShorthandAssignmentValueSymbol(ur.parent);if(xr&&Bt)return et(xr,void 0,void 0,3);let gi=Ee.getContextualType(Ot.parent),Ye=gi&&Je(Iae(Ot,Ee,gi,!0),ot=>pr(ot,4));if(Ye)return Ye;let er=le(ur,Ee),Ne=er&&et(er,void 0,void 0,4);if(Ne)return Ne;let Y=xr&&et(xr,void 0,void 0,3);if(Y)return Y}let ar=_(ur,Dt,Ee);if(ar){let xr=et(ar,void 0,void 0,1);if(xr)return xr}let at=pr(Dt);if(at)return at;if(Dt.valueDeclaration&&ne(Dt.valueDeclaration,Dt.valueDeclaration.parent)){let xr=Ee.getSymbolsOfParameterPropertyDeclaration(Ba(Dt.valueDeclaration,wa),Dt.name);return $.assert(xr.length===2&&!!(xr[0].flags&1)&&!!(xr[1].flags&4)),pr(Dt.flags&1?xr[1]:xr[0])}let Zt=Qu(Dt,282);if(!Bt||Zt&&!Zt.propertyName){let xr=Zt&&Ee.getExportSpecifierLocalTargetSymbol(Zt);if(xr){let gi=et(xr,void 0,void 0,1);if(gi)return gi}}if(!Bt){let xr;return ye?xr=KK(ur.parent)?Hoe(Ee,ur.parent):void 0:xr=Et(Dt,Ee),xr&&pr(xr,4)}if($.assert(Bt),ye){let xr=Et(Dt,Ee);return xr&&pr(xr,4)}function pr(xr,gi){return Je(Ee.getRootSymbols(xr),Ye=>et(xr,Ye,void 0,gi)||(Ye.parent&&Ye.parent.flags&96&&Ct(Ye)?Ht(Ye.parent,Ye.name,Ee,er=>et(xr,Ye,er,gi)):void 0))}function Et(xr,gi){let Ye=Qu(xr,209);if(Ye&&KK(Ye))return Hoe(gi,Ye)}}function Ht(Dt,ur,Ee,Bt){let ye=new Set;return et(Dt);function et(Ct){if(!(!(Ct.flags&96)||!o1(ye,Ct)))return Je(Ct.declarations,Ot=>Je(EU(Ot),ar=>{let at=Ee.getTypeAtLocation(ar),Zt=at.symbol&&Ee.getPropertyOfType(at,ur);return Zt&&Je(Ee.getRootSymbols(Zt),Bt)||at.symbol&&et(at.symbol)}))}}function Wr(Dt){return Dt.valueDeclaration?!!(tm(Dt.valueDeclaration)&256):!1}function ai(Dt,ur,Ee,Bt){let{checker:ye}=Bt;return ft(ur,Ee,ye,!1,Bt.options.use!==2||!!Bt.options.providePrefixAndSuffixTextForRename,(et,Ct,Ot,ar)=>(Ot&&Wr(ur)!==Wr(Ot)&&(Ot=void 0),Dt.includes(Ot||Ct||et)?{symbol:Ct&&!(Fp(et)&6)?Ct:et,kind:ar}:void 0),et=>!(Dt.parents&&!Dt.parents.some(Ct=>is(et.parent,Ct,Bt.inheritsFromCache,ye))))}function vo(Dt,ur){let Ee=x3(Dt),{declarations:Bt}=ur;if(Bt){let ye;do{ye=Ee;for(let et of Bt){let Ct=Aoe(et);Ct&Ee&&(Ee|=Ct)}}while(Ee!==ye)}return Ee}t.getIntersectingMeaningFromDeclarations=vo;function Eo(Dt){return Dt.flags&33554432?!(Af(Dt)||s1(Dt)):_U(Dt)?lE(Dt):lu(Dt)?!!Dt.body:Co(Dt)||fG(Dt)}function ya(Dt,ur,Ee){let Bt=ur.getSymbolAtLocation(Dt),ye=ur.getShorthandAssignmentValueSymbol(Bt.valueDeclaration);if(ye)for(let et of ye.getDeclarations())Aoe(et)&1&&Ee(et)}t.getReferenceEntriesForShorthandPropertyAssignment=ya;function Ls(Dt,ur,Ee){Is(Dt,Bt=>{Bt.kind===ur&&Ee(Bt),Ls(Bt,ur,Ee)})}function yc(Dt){return xhe(Ioe(Dt).parent)}function Cn(Dt,ur,Ee){let Bt=WL(Dt)?Dt.parent:void 0,ye=Bt&&Ee.getTypeAtLocation(Bt.expression),et=Wn(ye&&(ye.isUnionOrIntersection()?ye.types:ye.symbol===ur.parent?void 0:[ye]),Ct=>Ct.symbol&&Ct.symbol.flags&96?Ct.symbol:void 0);return et.length===0?void 0:et}function Es(Dt){return Dt.use===2&&Dt.providePrefixAndSuffixTextForRename}})(QF||(QF={}));var cM={};d(cM,{createDefinitionInfo:()=>EQ,getDefinitionAndBoundSpan:()=>Zyr,getDefinitionAtPosition:()=>$bt,getReferenceAtPosition:()=>zbt,getTypeDefinitionAtPosition:()=>Kyr});function $bt(t,n,a,c,u){var _;let f=zbt(n,a,t),y=f&&[r0r(f.reference.fileName,f.fileName,f.unverified)]||j;if(f?.file)return y;let g=Vh(n,a);if(g===n)return;let{parent:k}=g,T=t.getTypeChecker();if(g.kind===164||ct(g)&&Kne(k)&&k.tagName===g){let G=Wyr(T,g);if(G!==void 0||g.kind!==164)return G||j}if(UK(g)){let G=Poe(g.parent,g.text);return G?[ULe(T,G,"label",g.text,void 0)]:void 0}switch(g.kind){case 90:if(!dz(g.parent))break;case 84:let G=fn(g.parent,pz);if(G)return[t0r(G,n)];break}let C;switch(g.kind){case 107:case 135:case 127:C=lu;let G=fn(g,C);return G?[qLe(T,G)]:void 0}if(mF(g)&&n_(g.parent)){let G=g.parent.parent,{symbol:Z,failedAliasResolution:Q}=ube(G,T,u),re=yr(G.members,n_),ae=Z?T.symbolToString(Z,G):"",_e=g.getSourceFile();return Cr(re,me=>{let{pos:le}=ES(me);return le=_c(_e.text,le),ULe(T,me,"constructor","static {}",ae,!1,Q,{start:le,length:6})})}let{symbol:O,failedAliasResolution:F}=ube(g,T,u),M=g;if(c&&F){let G=X([g,...O?.declarations||j],Q=>fn(Q,o6e)),Z=G&&qO(G);Z&&({symbol:O,failedAliasResolution:F}=ube(Z,T,u),M=Z)}if(!O&&Goe(M)){let G=(_=t.getResolvedModuleFromModuleSpecifier(M,n))==null?void 0:_.resolvedModule;if(G)return[{name:M.text,fileName:G.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Jp(0,0),failedAliasResolution:F,isAmbient:sf(G.resolvedFileName),unverified:M!==g}]}if(bc(g)&&(J_(k)||Vp(k))&&(O=k.symbol),!O)return go(y,Xyr(g,T));if(c&&ht(O.declarations,G=>G.getSourceFile().fileName===n.fileName))return;let U=i0r(T,g);if(U&&!(Em(g.parent)&&o0r(U))){let G=qLe(T,U,F),Z=re=>re!==U;if(T.getRootSymbols(O).some(re=>Vyr(re,U))){if(!kp(U))return[G];Z=re=>re!==U&&(ed(re)||w_(re))}let Q=hq(T,O,g,F,Z)||j;return g.kind===108?[G,...Q]:[...Q,G]}if(g.parent.kind===305){let G=T.getShorthandAssignmentValueSymbol(O.valueDeclaration),Z=G?.declarations?G.declarations.map(Q=>EQ(Q,T,G,g,!1,F)):j;return go(Z,Ubt(T,g))}if(q_(g)&&Vc(k)&&$y(k.parent)&&g===(k.propertyName||k.name)){let G=HK(g),Z=T.getTypeAtLocation(k.parent);return G===void 0?j:an(Z.isUnion()?Z.types:[Z],Q=>{let re=Q.getProperty(G);return re&&hq(T,re,g)})}let J=Ubt(T,g);return go(y,J.length?J:hq(T,O,g,F))}function Vyr(t,n){var a;return t===n.symbol||t===n.symbol.parent||of(n.parent)||!QI(n.parent)&&t===((a=Ci(n.parent,gv))==null?void 0:a.symbol)}function Ubt(t,n){let a=dQ(n);if(a){let c=a&&t.getContextualType(a.parent);if(c)return an(Iae(a,t,c,!1),u=>hq(t,u,n))}return j}function Wyr(t,n){let a=fn(n,J_);if(!(a&&a.name))return;let c=fn(a,Co);if(!c)return;let u=vv(c);if(!u)return;let _=bl(u.expression),f=w_(_)?_.symbol:t.getSymbolAtLocation(_);if(!f)return;let y=fd(a)?t.getTypeOfSymbol(f):t.getDeclaredTypeOfSymbol(f),g;if(dc(a.name)){let k=t.getSymbolAtLocation(a.name);if(!k)return;AU(k)?g=wt(t.getPropertiesOfType(y),T=>T.escapedName===k.escapedName):g=t.getPropertyOfType(y,oa(k.escapedName))}else g=t.getPropertyOfType(y,oa(UO(a.name)));if(g)return hq(t,g,n)}function zbt(t,n,a){var c,u;let _=kQ(t.referencedFiles,n);if(_){let g=a.getSourceFileFromReference(t,_);return g&&{reference:_,fileName:g.fileName,file:g,unverified:!1}}let f=kQ(t.typeReferenceDirectives,n);if(f){let g=(c=a.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(f,t))==null?void 0:c.resolvedTypeReferenceDirective,k=g&&a.getSourceFile(g.resolvedFileName);return k&&{reference:f,fileName:k.fileName,file:k,unverified:!1}}let y=kQ(t.libReferenceDirectives,n);if(y){let g=a.getLibFileFromReference(y);return g&&{reference:y,fileName:g.fileName,file:g,unverified:!1}}if(t.imports.length||t.moduleAugmentations.length){let g=KL(t,n),k;if(Goe(g)&&vt(g.text)&&(k=a.getResolvedModuleFromModuleSpecifier(g,t))){let T=(u=k.resolvedModule)==null?void 0:u.resolvedFileName,C=T||mb(mo(t.fileName),g.text);return{file:a.getSourceFile(C),fileName:C,reference:{pos:g.getStart(),end:g.getEnd(),fileName:g.text},unverified:!T}}}}var qbt=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function Gyr(t,n){let a=n.symbol.name;if(!qbt.has(a))return!1;let c=t.resolveName(a,void 0,788968,!1);return!!c&&c===n.target.symbol}function Jbt(t,n){if(!n.aliasSymbol)return!1;let a=n.aliasSymbol.name;if(!qbt.has(a))return!1;let c=t.resolveName(a,void 0,788968,!1);return!!c&&c===n.aliasSymbol}function Hyr(t,n,a,c){var u,_;if(ro(n)&4&&Gyr(t,n))return TQ(t.getTypeArguments(n)[0],t,a,c);if(Jbt(t,n)&&n.aliasTypeArguments)return TQ(n.aliasTypeArguments[0],t,a,c);if(ro(n)&32&&n.target&&Jbt(t,n.target)){let f=(_=(u=n.aliasSymbol)==null?void 0:u.declarations)==null?void 0:_[0];if(f&&s1(f)&&Ug(f.type)&&f.type.typeArguments)return TQ(t.getTypeAtLocation(f.type.typeArguments[0]),t,a,c)}return[]}function Kyr(t,n,a){let c=Vh(n,a);if(c===n)return;if(qR(c.parent)&&c.parent.name===c)return TQ(t.getTypeAtLocation(c.parent),t,c.parent,!1);let{symbol:u,failedAliasResolution:_}=ube(c,t,!1);if(bc(c)&&(J_(c.parent)||Vp(c.parent))&&(u=c.parent.symbol,_=!1),!u)return;let f=t.getTypeOfSymbolAtLocation(u,c),y=Qyr(u,f,t),g=y&&TQ(y,t,c,_),[k,T]=g&&g.length!==0?[y,g]:[f,TQ(f,t,c,_)];return T.length?[...Hyr(t,k,c,_),...T]:!(u.flags&111551)&&u.flags&788968?hq(t,$f(u,t),c,_):void 0}function TQ(t,n,a,c){return an(t.isUnion()&&!(t.flags&32)?t.types:[t],u=>u.symbol&&hq(n,u.symbol,a,c))}function Qyr(t,n,a){if(n.symbol===t||t.valueDeclaration&&n.symbol&&Oo(t.valueDeclaration)&&t.valueDeclaration.initializer===n.symbol.valueDeclaration){let c=n.getCallSignatures();if(c.length===1)return a.getReturnTypeOfSignature(To(c))}}function Zyr(t,n,a){let c=$bt(t,n,a);if(!c||c.length===0)return;let u=kQ(n.referencedFiles,a)||kQ(n.typeReferenceDirectives,a)||kQ(n.libReferenceDirectives,a);if(u)return{definitions:c,textSpan:CE(u)};let _=Vh(n,a),f=Jp(_.getStart(),_.getWidth());return{definitions:c,textSpan:f}}function Xyr(t,n){return Wn(n.getIndexInfosAtLocation(t),a=>a.declaration&&qLe(n,a.declaration))}function ube(t,n,a){let c=n.getSymbolAtLocation(t),u=!1;if(c?.declarations&&c.flags&2097152&&!a&&Yyr(t,c.declarations[0])){let _=n.getAliasedSymbol(c);if(_.declarations)return{symbol:_};u=!0}return{symbol:c,failedAliasResolution:u}}function Yyr(t,n){return t.kind!==80&&(t.kind!==11||!Yk(t.parent))?!1:t.parent===n?!0:n.kind!==275}function e0r(t){if(!yU(t))return!1;let n=fn(t,a=>of(a)?!0:yU(a)?!1:"quit");return!!n&&m_(n)===5}function hq(t,n,a,c,u){let _=u!==void 0?yr(n.declarations,u):n.declarations,f=!u&&(k()||T());if(f)return f;let y=yr(_,O=>!e0r(O)),g=Pt(y)?y:_;return Cr(g,O=>EQ(O,t,n,a,!1,c));function k(){if(n.flags&32&&!(n.flags&19)&&(Wz(a)||a.kind===137)){let O=wt(_,Co);return O&&C(O.members,!0)}}function T(){return R1e(a)||z1e(a)?C(_,!1):void 0}function C(O,F){if(!O)return;let M=O.filter(F?kp:Rs),U=M.filter(J=>!!J.body);return M.length?U.length!==0?U.map(J=>EQ(J,t,n,a)):[EQ(Sn(M),t,n,a,!1,c)]:void 0}}function EQ(t,n,a,c,u,_){let f=n.symbolToString(a),y=wE.getSymbolKind(n,a,c),g=a.parent?n.symbolToString(a.parent,c):"";return ULe(n,t,y,f,g,u,_)}function ULe(t,n,a,c,u,_,f,y){let g=n.getSourceFile();if(!y){let k=cs(n)||n;y=yh(k,g)}return{fileName:g.fileName,textSpan:y,kind:a,name:c,containerKind:void 0,containerName:u,...Pu.toContextSpan(y,g,Pu.getContextNode(n)),isLocal:!zLe(t,n),isAmbient:!!(n.flags&33554432),unverified:_,failedAliasResolution:f}}function t0r(t,n){let a=Pu.getContextNode(t),c=yh(jLe(a)?a.start:a,n);return{fileName:n.fileName,textSpan:c,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Pu.toContextSpan(c,n,a),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function zLe(t,n){if(t.isDeclarationVisible(n))return!0;if(!n.parent)return!1;if(lE(n.parent)&&n.parent.initializer===n)return zLe(t,n.parent);switch(n.kind){case 173:case 178:case 179:case 175:if(Bg(n,2))return!1;case 177:case 304:case 305:case 211:case 232:case 220:case 219:return zLe(t,n.parent);default:return!1}}function qLe(t,n,a){return EQ(n,t,n.symbol,n,!1,a)}function kQ(t,n){return wt(t,a=>Ao(a,n))}function r0r(t,n,a){return{fileName:n,textSpan:Hu(0,0),kind:"script",name:t,containerName:void 0,containerKind:void 0,unverified:a}}function n0r(t){let n=fn(t,c=>!WL(c)),a=n?.parent;return a&&QI(a)&&bre(a)===n?a:void 0}function i0r(t,n){let a=n0r(n),c=a&&t.getResolvedSignature(a);return Ci(c&&c.declaration,u=>Rs(u)&&!Cb(u))}function o0r(t){switch(t.kind){case 177:case 186:case 180:case 181:return!0;default:return!1}}var pbe={};d(pbe,{provideInlayHints:()=>l0r});var a0r=t=>new RegExp(`^\\s?/\\*\\*?\\s?${t}\\s?\\*\\/\\s?$`);function s0r(t){return t.includeInlayParameterNameHints==="literals"||t.includeInlayParameterNameHints==="all"}function c0r(t){return t.includeInlayParameterNameHints==="literals"}function JLe(t){return t.interactiveInlayHints===!0}function l0r(t){let{file:n,program:a,span:c,cancellationToken:u,preferences:_}=t,f=n.text,y=a.getCompilerOptions(),g=Vg(n,_),k=a.getTypeChecker(),T=[];return C(n),T;function C(je){if(!(!je||je.getFullWidth()===0)){switch(je.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 175:case 220:u.throwIfCancellationRequested()}if(_S(c,je.pos,je.getFullWidth())&&!(Wo(je)&&!VT(je)))return _.includeInlayVariableTypeHints&&Oo(je)||_.includeInlayPropertyDeclarationTypeHints&&ps(je)?Z(je):_.includeInlayEnumMemberValueHints&>(je)?J(je):s0r(_)&&(Js(je)||SP(je))?Q(je):(_.includeInlayFunctionParameterTypeHints&&lu(je)&&xne(je)&&Oe(je),_.includeInlayFunctionLikeReturnTypeHints&&O(je)&&me(je)),Is(je,C)}}function O(je){return Iu(je)||bu(je)||i_(je)||Ep(je)||T0(je)}function F(je,ve,Le,Ve){let nt=`${Ve?"...":""}${je}`,It;JLe(_)?(It=[ut(nt,ve),{text:":"}],nt=""):nt+=":",T.push({text:nt,position:Le,kind:"Parameter",whitespaceAfter:!0,displayParts:It})}function M(je,ve){T.push({text:typeof je=="string"?`: ${je}`:"",displayParts:typeof je=="string"?void 0:[{text:": "},...je],position:ve,kind:"Type",whitespaceBefore:!0})}function U(je,ve){T.push({text:`= ${je}`,position:ve,kind:"Enum",whitespaceBefore:!0})}function J(je){if(je.initializer)return;let ve=k.getConstantValue(je);ve!==void 0&&U(ve.toString(),je.end)}function G(je){return je.symbol&&je.symbol.flags&1536}function Z(je){if(je.initializer===void 0&&!(ps(je)&&!(k.getTypeAtLocation(je).flags&1))||$s(je.name)||Oo(je)&&!ze(je)||X_(je))return;let Le=k.getTypeAtLocation(je);if(G(Le))return;let Ve=Ae(Le);if(Ve){let nt=typeof Ve=="string"?Ve:Ve.map(ke=>ke.text).join("");if(_.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&F1(je.name.getText(),nt))return;M(Ve,je.name.end)}}function Q(je){let ve=je.arguments;if(!ve||!ve.length)return;let Le=k.getResolvedSignature(je);if(Le===void 0)return;let Ve=0;for(let nt of ve){let It=bl(nt);if(c0r(_)&&!_e(It)){Ve++;continue}let ke=0;if(E0(It)){let Se=k.getTypeAtLocation(It.expression);if(k.isTupleType(Se)){let{elementFlags:tt,fixedLength:Qe}=Se.target;if(Qe===0)continue;let We=hr(tt,Kt=>!(Kt&1));(We<0?Qe:We)>0&&(ke=We<0?Qe:We)}}let _t=k.getParameterIdentifierInfoAtPosition(Le,Ve);if(Ve=Ve+(ke||1),_t){let{parameter:Se,parameterName:tt,isRestParameter:Qe}=_t;if(!(_.includeInlayParameterNameHintsWhenArgumentMatchesName||!re(It,tt))&&!Qe)continue;let St=oa(tt);if(ae(It,St))continue;F(St,Se,nt.getStart(),Qe)}}}function re(je,ve){return ct(je)?je.text===ve:no(je)?je.name.text===ve:!1}function ae(je,ve){if(!Jd(ve,$c(y),_H(n.scriptKind)))return!1;let Le=my(f,je.pos);if(!Le?.length)return!1;let Ve=a0r(ve);return Pt(Le,nt=>Ve.test(f.substring(nt.pos,nt.end)))}function _e(je){switch(je.kind){case 225:{let ve=je.operand;return F4(ve)||ct(ve)&&ZU(ve.escapedText)}case 112:case 97:case 106:case 15:case 229:return!0;case 80:{let ve=je.escapedText;return de(ve)||ZU(ve)}}return F4(je)}function me(je){if(Iu(je)&&!Kl(je,21,n)||jg(je)||!je.body)return;let Le=k.getSignatureFromDeclaration(je);if(!Le)return;let Ve=k.getTypePredicateOfSignature(Le);if(Ve?.type){let ke=Fe(Ve);if(ke){M(ke,le(je));return}}let nt=k.getReturnTypeOfSignature(Le);if(G(nt))return;let It=Ae(nt);It&&M(It,le(je))}function le(je){let ve=Kl(je,22,n);return ve?ve.end:je.parameters.end}function Oe(je){let ve=k.getSignatureFromDeclaration(je);if(!ve)return;let Le=0;for(let Ve of je.parameters)ze(Ve)&&be(Ve,uC(Ve)?ve.thisParameter:ve.parameters[Le]),!uC(Ve)&&Le++}function be(je,ve){if(X_(je)||ve===void 0)return;let Ve=ue(ve);Ve!==void 0&&M(Ve,je.questionToken?je.questionToken.end:je.name.end)}function ue(je){let ve=je.valueDeclaration;if(!ve||!wa(ve))return;let Le=k.getTypeOfSymbolAtLocation(je,ve);if(!G(Le))return Ae(Le)}function De(je){let Le=wP();return jR(Ve=>{let nt=k.typeToTypeNode(je,void 0,71286784);$.assertIsDefined(nt,"should always get typenode"),Le.writeNode(4,nt,n,Ve)})}function Ce(je){let Le=wP();return jR(Ve=>{let nt=k.typePredicateToTypePredicateNode(je,void 0,71286784);$.assertIsDefined(nt,"should always get typePredicateNode"),Le.writeNode(4,nt,n,Ve)})}function Ae(je){if(!JLe(_))return De(je);let Le=k.typeToTypeNode(je,void 0,71286784);return $.assertIsDefined(Le,"should always get typeNode"),Be(Le)}function Fe(je){if(!JLe(_))return Ce(je);let Le=k.typePredicateToTypePredicateNode(je,void 0,71286784);return $.assertIsDefined(Le,"should always get typenode"),Be(Le)}function Be(je){let ve=[];return Le(je),ve;function Le(ke){var _t,Se;if(!ke)return;let tt=Zs(ke.kind);if(tt){ve.push({text:tt});return}if(F4(ke)){ve.push({text:It(ke)});return}switch(ke.kind){case 80:$.assertNode(ke,ct);let Qe=Zi(ke),We=ke.symbol&&ke.symbol.declarations&&ke.symbol.declarations.length&&cs(ke.symbol.declarations[0]);We?ve.push(ut(Qe,We)):ve.push({text:Qe});break;case 167:$.assertNode(ke,dh),Le(ke.left),ve.push({text:"."}),Le(ke.right);break;case 183:$.assertNode(ke,gF),ke.assertsModifier&&ve.push({text:"asserts "}),Le(ke.parameterName),ke.type&&(ve.push({text:" is "}),Le(ke.type));break;case 184:$.assertNode(ke,Ug),Le(ke.typeName),ke.typeArguments&&(ve.push({text:"<"}),nt(ke.typeArguments,", "),ve.push({text:">"}));break;case 169:$.assertNode(ke,Zu),ke.modifiers&&nt(ke.modifiers," "),Le(ke.name),ke.constraint&&(ve.push({text:" extends "}),Le(ke.constraint)),ke.default&&(ve.push({text:" = "}),Le(ke.default));break;case 170:$.assertNode(ke,wa),ke.modifiers&&nt(ke.modifiers," "),ke.dotDotDotToken&&ve.push({text:"..."}),Le(ke.name),ke.questionToken&&ve.push({text:"?"}),ke.type&&(ve.push({text:": "}),Le(ke.type));break;case 186:$.assertNode(ke,fL),ve.push({text:"new "}),Ve(ke),ve.push({text:" => "}),Le(ke.type);break;case 187:$.assertNode(ke,gP),ve.push({text:"typeof "}),Le(ke.exprName),ke.typeArguments&&(ve.push({text:"<"}),nt(ke.typeArguments,", "),ve.push({text:">"}));break;case 188:$.assertNode(ke,fh),ve.push({text:"{"}),ke.members.length&&(ve.push({text:" "}),nt(ke.members,"; "),ve.push({text:" "})),ve.push({text:"}"});break;case 189:$.assertNode(ke,jH),Le(ke.elementType),ve.push({text:"[]"});break;case 190:$.assertNode(ke,yF),ve.push({text:"["}),nt(ke.elements,", "),ve.push({text:"]"});break;case 203:$.assertNode(ke,mL),ke.dotDotDotToken&&ve.push({text:"..."}),Le(ke.name),ke.questionToken&&ve.push({text:"?"}),ve.push({text:": "}),Le(ke.type);break;case 191:$.assertNode(ke,Une),Le(ke.type),ve.push({text:"?"});break;case 192:$.assertNode(ke,zne),ve.push({text:"..."}),Le(ke.type);break;case 193:$.assertNode(ke,SE),nt(ke.types," | ");break;case 194:$.assertNode(ke,vF),nt(ke.types," & ");break;case 195:$.assertNode(ke,yP),Le(ke.checkType),ve.push({text:" extends "}),Le(ke.extendsType),ve.push({text:" ? "}),Le(ke.trueType),ve.push({text:" : "}),Le(ke.falseType);break;case 196:$.assertNode(ke,n3),ve.push({text:"infer "}),Le(ke.typeParameter);break;case 197:$.assertNode(ke,i3),ve.push({text:"("}),Le(ke.type),ve.push({text:")"});break;case 199:$.assertNode(ke,bA),ve.push({text:`${Zs(ke.operator)} `}),Le(ke.type);break;case 200:$.assertNode(ke,vP),Le(ke.objectType),ve.push({text:"["}),Le(ke.indexType),ve.push({text:"]"});break;case 201:$.assertNode(ke,o3),ve.push({text:"{ "}),ke.readonlyToken&&(ke.readonlyToken.kind===40?ve.push({text:"+"}):ke.readonlyToken.kind===41&&ve.push({text:"-"}),ve.push({text:"readonly "})),ve.push({text:"["}),Le(ke.typeParameter),ke.nameType&&(ve.push({text:" as "}),Le(ke.nameType)),ve.push({text:"]"}),ke.questionToken&&(ke.questionToken.kind===40?ve.push({text:"+"}):ke.questionToken.kind===41&&ve.push({text:"-"}),ve.push({text:"?"})),ve.push({text:": "}),ke.type&&Le(ke.type),ve.push({text:"; }"});break;case 202:$.assertNode(ke,bE),Le(ke.literal);break;case 185:$.assertNode(ke,Cb),Ve(ke),ve.push({text:" => "}),Le(ke.type);break;case 206:$.assertNode(ke,AS),ke.isTypeOf&&ve.push({text:"typeof "}),ve.push({text:"import("}),Le(ke.argument),ke.assertions&&(ve.push({text:", { assert: "}),nt(ke.assertions.assertClause.elements,", "),ve.push({text:" }"})),ve.push({text:")"}),ke.qualifier&&(ve.push({text:"."}),Le(ke.qualifier)),ke.typeArguments&&(ve.push({text:"<"}),nt(ke.typeArguments,", "),ve.push({text:">"}));break;case 172:$.assertNode(ke,Zm),(_t=ke.modifiers)!=null&&_t.length&&(nt(ke.modifiers," "),ve.push({text:" "})),Le(ke.name),ke.questionToken&&ve.push({text:"?"}),ke.type&&(ve.push({text:": "}),Le(ke.type));break;case 182:$.assertNode(ke,vC),ve.push({text:"["}),nt(ke.parameters,", "),ve.push({text:"]"}),ke.type&&(ve.push({text:": "}),Le(ke.type));break;case 174:$.assertNode(ke,G1),(Se=ke.modifiers)!=null&&Se.length&&(nt(ke.modifiers," "),ve.push({text:" "})),Le(ke.name),ke.questionToken&&ve.push({text:"?"}),Ve(ke),ke.type&&(ve.push({text:": "}),Le(ke.type));break;case 180:$.assertNode(ke,hF),Ve(ke),ke.type&&(ve.push({text:": "}),Le(ke.type));break;case 181:$.assertNode(ke,cz),ve.push({text:"new "}),Ve(ke),ke.type&&(ve.push({text:": "}),Le(ke.type));break;case 208:$.assertNode(ke,xE),ve.push({text:"["}),nt(ke.elements,", "),ve.push({text:"]"});break;case 207:$.assertNode(ke,$y),ve.push({text:"{"}),ke.elements.length&&(ve.push({text:" "}),nt(ke.elements,", "),ve.push({text:" "})),ve.push({text:"}"});break;case 209:$.assertNode(ke,Vc),Le(ke.name);break;case 225:$.assertNode(ke,TA),ve.push({text:Zs(ke.operator)}),Le(ke.operand);break;case 204:$.assertNode(ke,$3e),Le(ke.head),ke.templateSpans.forEach(Le);break;case 16:$.assertNode(ke,dF),ve.push({text:It(ke)});break;case 205:$.assertNode(ke,Pge),Le(ke.type),Le(ke.literal);break;case 17:$.assertNode(ke,Cge),ve.push({text:It(ke)});break;case 18:$.assertNode(ke,Mne),ve.push({text:It(ke)});break;case 198:$.assertNode(ke,lz),ve.push({text:"this"});break;case 168:$.assertNode(ke,dc),ve.push({text:"["}),Le(ke.expression),ve.push({text:"]"});break;default:$.failBadSyntaxKind(ke)}}function Ve(ke){ke.typeParameters&&(ve.push({text:"<"}),nt(ke.typeParameters,", "),ve.push({text:">"})),ve.push({text:"("}),nt(ke.parameters,", "),ve.push({text:")"})}function nt(ke,_t){ke.forEach((Se,tt)=>{tt>0&&ve.push({text:_t}),Le(Se)})}function It(ke){switch(ke.kind){case 11:return g===0?`'${kb(ke.text,39)}'`:`"${kb(ke.text,34)}"`;case 16:case 17:case 18:{let _t=ke.rawText??she(kb(ke.text,96));switch(ke.kind){case 16:return"`"+_t+"${";case 17:return"}"+_t+"${";case 18:return"}"+_t+"`"}}}return ke.text}}function de(je){return je==="undefined"}function ze(je){if((hA(je)||Oo(je)&&zR(je))&&je.initializer){let ve=bl(je.initializer);return!(_e(ve)||SP(ve)||Lc(ve)||ZI(ve))}return!0}function ut(je,ve){let Le=ve.getSourceFile();return{text:je,span:yh(ve,Le),file:Le.fileName}}}var VA={};d(VA,{getDocCommentTemplateAtPosition:()=>S0r,getJSDocParameterNameCompletionDetails:()=>v0r,getJSDocParameterNameCompletions:()=>y0r,getJSDocTagCompletionDetails:()=>Zbt,getJSDocTagCompletions:()=>g0r,getJSDocTagNameCompletionDetails:()=>h0r,getJSDocTagNameCompletions:()=>m0r,getJsDocCommentsFromDeclarations:()=>u0r,getJsDocTagsFromDeclarations:()=>d0r});var Vbt=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","import","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],Wbt,Gbt;function u0r(t,n){let a=[];return dve(t,c=>{for(let u of _0r(c)){let _=kv(u)&&u.tags&&wt(u.tags,y=>y.kind===328&&(y.tagName.escapedText==="inheritDoc"||y.tagName.escapedText==="inheritdoc"));if(u.comment===void 0&&!_||kv(u)&&c.kind!==347&&c.kind!==339&&u.tags&&u.tags.some(y=>y.kind===347||y.kind===339)&&!u.tags.some(y=>y.kind===342||y.kind===343))continue;let f=u.comment?lM(u.comment,n):[];_&&_.comment&&(f=f.concat(lM(_.comment,n))),un(a,f,p0r)||a.push(f)}}),Rc(tr(a,[YL()]))}function p0r(t,n){return __(t,n,(a,c)=>a.kind===c.kind&&a.text===c.text)}function _0r(t){switch(t.kind){case 342:case 349:return[t];case 339:case 347:return[t,t.parent];case 324:if(EL(t.parent))return[t.parent.parent];default:return Wme(t)}}function d0r(t,n){let a=[];return dve(t,c=>{let u=sA(c);if(!(u.some(_=>_.kind===347||_.kind===339)&&!u.some(_=>_.kind===342||_.kind===343)))for(let _ of u)a.push({name:_.tagName.text,text:Qbt(_,n)}),a.push(...Hbt(Kbt(_),n))}),a}function Hbt(t,n){return an(t,a=>go([{name:a.tagName.text,text:Qbt(a,n)}],Hbt(Kbt(a),n)))}function Kbt(t){return rU(t)&&t.isNameFirst&&t.typeExpression&&p3(t.typeExpression.type)?t.typeExpression.type.jsDocPropertyTags:void 0}function lM(t,n){return typeof t=="string"?[Vy(t)]:an(t,a=>a.kind===322?[Vy(a.text)]:C7e(a,n))}function Qbt(t,n){let{comment:a,kind:c}=t,u=f0r(c);switch(c){case 350:let y=t.typeExpression;return y?_(y):a===void 0?void 0:lM(a,n);case 330:return _(t.class);case 329:return _(t.class);case 346:let g=t,k=[];if(g.constraint&&k.push(Vy(g.constraint.getText())),te(g.typeParameters)){te(k)&&k.push(Lp());let C=g.typeParameters[g.typeParameters.length-1];X(g.typeParameters,O=>{k.push(u(O.getText())),C!==O&&k.push(wm(28),Lp())})}return a&&k.push(Lp(),...lM(a,n)),k;case 345:case 351:return _(t.typeExpression);case 347:case 339:case 349:case 342:case 348:let{name:T}=t;return T?_(T):a===void 0?void 0:lM(a,n);default:return a===void 0?void 0:lM(a,n)}function _(y){return f(y.getText())}function f(y){return a?y.match(/^https?$/)?[Vy(y),...lM(a,n)]:[u(y),Lp(),...lM(a,n)]:[Vy(y)]}}function f0r(t){switch(t){case 342:return b7e;case 349:return x7e;case 346:return E7e;case 347:case 339:return T7e;default:return Vy}}function m0r(){return Wbt||(Wbt=Cr(Vbt,t=>({name:t,kind:"keyword",kindModifiers:"",sortText:KF.SortText.LocationPriority})))}var h0r=Zbt;function g0r(){return Gbt||(Gbt=Cr(Vbt,t=>({name:`@${t}`,kind:"keyword",kindModifiers:"",sortText:KF.SortText.LocationPriority})))}function Zbt(t){return{name:t,kind:"",kindModifiers:"",displayParts:[Vy(t)],documentation:j,tags:void 0,codeActions:void 0}}function y0r(t){if(!ct(t.name))return j;let n=t.name.text,a=t.parent,c=a.parent;return Rs(c)?Wn(c.parameters,u=>{if(!ct(u.name))return;let _=u.name.text;if(!(a.tags.some(f=>f!==t&&Uy(f)&&ct(f.name)&&f.name.escapedText===_)||n!==void 0&&!Ca(_,n)))return{name:_,kind:"parameter",kindModifiers:"",sortText:KF.SortText.LocationPriority}}):[]}function v0r(t){return{name:t,kind:"parameter",kindModifiers:"",displayParts:[Vy(t)],documentation:j,tags:void 0,codeActions:void 0}}function S0r(t,n,a,c){let u=la(n,a),_=fn(u,kv);if(_&&(_.comment!==void 0||te(_.tags)))return;let f=u.getStart(n);if(!_&&f0;if(U&&!Z){let Q=J+t+F+" * ",re=f===a?t+F:"";return{newText:Q+t+U+F+G+re,caretOffset:Q.length}}return{newText:J+G,caretOffset:3}}function b0r(t,n){let{text:a}=t,c=p1(n,t),u=c;for(;u<=n&&_0(a.charCodeAt(u));u++);return a.slice(c,u)}function x0r(t,n,a,c){return t.map(({name:u,dotDotDotToken:_},f)=>{let y=u.kind===80?u.text:"param"+f;return`${a} * @param ${n?_?"{...any} ":"{any} ":""}${y}${c}`}).join("")}function T0r(t,n){return`${t} * @returns${n}`}function E0r(t,n){return GPe(t,a=>VLe(a,n))}function VLe(t,n){switch(t.kind){case 263:case 219:case 175:case 177:case 174:case 220:let a=t;return{commentOwner:t,parameters:a.parameters,hasReturn:Vae(a,n)};case 304:return VLe(t.initializer,n);case 264:case 265:case 267:case 307:case 266:return{commentOwner:t};case 172:{let u=t;return u.type&&Cb(u.type)?{commentOwner:t,parameters:u.type.parameters,hasReturn:Vae(u.type,n)}:{commentOwner:t}}case 244:{let _=t.declarationList.declarations,f=_.length===1&&_[0].initializer?k0r(_[0].initializer):void 0;return f?{commentOwner:t,parameters:f.parameters,hasReturn:Vae(f,n)}:{commentOwner:t}}case 308:return"quit";case 268:return t.parent.kind===268?void 0:{commentOwner:t};case 245:return VLe(t.expression,n);case 227:{let u=t;return m_(u)===0?"quit":Rs(u.right)?{commentOwner:t,parameters:u.right.parameters,hasReturn:Vae(u.right,n)}:{commentOwner:t}}case 173:let c=t.initializer;if(c&&(bu(c)||Iu(c)))return{commentOwner:t,parameters:c.parameters,hasReturn:Vae(c,n)}}}function Vae(t,n){return!!n?.generateReturnInDocTemplate&&(Cb(t)||Iu(t)&&Vt(t.body)||lu(t)&&t.body&&Vs(t.body)&&!!sC(t.body,a=>a))}function k0r(t){for(;t.kind===218;)t=t.expression;switch(t.kind){case 219:case 220:return t;case 232:return wt(t.members,kp)}}var _be={};d(_be,{mapCode:()=>C0r});function C0r(t,n,a,c,u,_){return ki.ChangeTracker.with({host:c,formatContext:u,preferences:_},f=>{let y=n.map(k=>D0r(t,k)),g=a&&Rc(a);for(let k of y)A0r(t,f,k,g)})}function D0r(t,n){let a=[{parse:()=>DF("__mapcode_content_nodes.ts",n,t.languageVersion,!0,t.scriptKind),body:_=>_.statements},{parse:()=>DF("__mapcode_class_content_nodes.ts",`class __class { +${n} +}`,t.languageVersion,!0,t.scriptKind),body:_=>_.statements[0].members}],c=[];for(let{parse:_,body:f}of a){let y=_(),g=f(y);if(g.length&&y.parseDiagnostics.length===0)return g;g.length&&c.push({sourceFile:y,body:g})}c.sort((_,f)=>_.sourceFile.parseDiagnostics.length-f.sourceFile.parseDiagnostics.length);let{body:u}=c[0];return u}function A0r(t,n,a,c){J_(a[0])||KI(a[0])?w0r(t,n,a,c):I0r(t,n,a,c)}function w0r(t,n,a,c){let u;if(!c||!c.length?u=wt(t.statements,jf(Co,Af)):u=X(c,f=>fn(la(t,f.start),jf(Co,Af))),!u)return;let _=u.members.find(f=>a.some(y=>Wae(y,f)));if(_){let f=Ut(u.members,y=>a.some(g=>Wae(g,y)));X(a,dbe),n.replaceNodeRangeWithNodes(t,_,f,a);return}X(a,dbe),n.insertNodesAfter(t,u.members[u.members.length-1],a)}function I0r(t,n,a,c){if(!c?.length){n.insertNodesAtEndOfFile(t,a,!1);return}for(let _ of c){let f=fn(la(t,_.start),y=>jf(Vs,Ta)(y)&&Pt(y.statements,g=>a.some(k=>Wae(k,g))));if(f){let y=f.statements.find(g=>a.some(k=>Wae(k,g)));if(y){let g=Ut(f.statements,k=>a.some(T=>Wae(T,k)));X(a,dbe),n.replaceNodeRangeWithNodes(t,y,g,a);return}}}let u=t.statements;for(let _ of c){let f=fn(la(t,_.start),Vs);if(f){u=f.statements;break}}X(a,dbe),n.insertNodesAfter(t,u[u.length-1],a)}function Wae(t,n){var a,c,u,_,f,y;return t.kind!==n.kind?!1:t.kind===177?t.kind===n.kind:Vp(t)&&Vp(n)?t.name.getText()===n.name.getText():EA(t)&&EA(n)||Fge(t)&&Fge(n)?t.expression.getText()===n.expression.getText():kA(t)&&kA(n)?((a=t.initializer)==null?void 0:a.getText())===((c=n.initializer)==null?void 0:c.getText())&&((u=t.incrementor)==null?void 0:u.getText())===((_=n.incrementor)==null?void 0:_.getText())&&((f=t.condition)==null?void 0:f.getText())===((y=n.condition)==null?void 0:y.getText()):M4(t)&&M4(n)?t.expression.getText()===n.expression.getText()&&t.initializer.getText()===n.initializer.getText():bC(t)&&bC(n)?t.label.getText()===n.label.getText():t.getText()===n.getText()}function dbe(t){Xbt(t),t.parent=void 0}function Xbt(t){t.pos=-1,t.end=-1,t.forEachChild(Xbt)}var WA={};d(WA,{compareImportsOrRequireStatements:()=>YLe,compareModuleSpecifiers:()=>K0r,getImportDeclarationInsertionIndex:()=>V0r,getImportSpecifierInsertionIndex:()=>W0r,getNamedImportSpecifierComparerWithDetection:()=>J0r,getOrganizeImportsStringComparerWithDetection:()=>q0r,organizeImports:()=>P0r,testCoalesceExports:()=>H0r,testCoalesceImports:()=>G0r});function P0r(t,n,a,c,u,_){let f=ki.ChangeTracker.fromContext({host:a,formatContext:n,preferences:u}),y=_==="SortAndCombine"||_==="All",g=y,k=_==="RemoveUnused"||_==="All",T=t.statements.filter(fp),C=GLe(t,T),{comparersToTest:O,typeOrdersToTest:F}=WLe(u),M=O[0],U={moduleSpecifierComparer:typeof u.organizeImportsIgnoreCase=="boolean"?M:void 0,namedImportComparer:typeof u.organizeImportsIgnoreCase=="boolean"?M:void 0,typeOrder:u.organizeImportsTypeOrder};if(typeof u.organizeImportsIgnoreCase!="boolean"&&({comparer:U.moduleSpecifierComparer}=txt(C,O)),!U.typeOrder||typeof u.organizeImportsIgnoreCase!="boolean"){let Q=ZLe(T,O,F);if(Q){let{namedImportComparer:re,typeOrder:ae}=Q;U.namedImportComparer=U.namedImportComparer??re,U.typeOrder=U.typeOrder??ae}}C.forEach(Q=>G(Q,U)),_!=="RemoveUnused"&&O0r(t).forEach(Q=>Z(Q,U.namedImportComparer));for(let Q of t.statements.filter(Gm)){if(!Q.body)continue;if(GLe(t,Q.body.statements.filter(fp)).forEach(ae=>G(ae,U)),_!=="RemoveUnused"){let ae=Q.body.statements.filter(P_);Z(ae,U.namedImportComparer)}}return f.getChanges();function J(Q,re){if(te(Q)===0)return;Ai(Q[0],1024);let ae=g?Pg(Q,le=>Gae(le.moduleSpecifier)):[Q],_e=y?pu(ae,(le,Oe)=>KLe(le[0].moduleSpecifier,Oe[0].moduleSpecifier,U.moduleSpecifierComparer??M)):ae,me=an(_e,le=>Gae(le[0].moduleSpecifier)||le[0].moduleSpecifier===void 0?re(le):le);if(me.length===0)f.deleteNodes(t,Q,{leadingTriviaOption:ki.LeadingTriviaOption.Exclude,trailingTriviaOption:ki.TrailingTriviaOption.Include},!0);else{let le={leadingTriviaOption:ki.LeadingTriviaOption.Exclude,trailingTriviaOption:ki.TrailingTriviaOption.Include,suffix:ZT(a,n.options)};f.replaceNodeWithNodes(t,Q[0],me,le);let Oe=f.nodeHasTrailingComment(t,Q[0],le);f.deleteNodes(t,Q.slice(1),{trailingTriviaOption:ki.TrailingTriviaOption.Include},Oe)}}function G(Q,re){let ae=re.moduleSpecifierComparer??M,_e=re.namedImportComparer??M,me=re.typeOrder??"last",le=DQ({organizeImportsTypeOrder:me},_e);J(Q,be=>(k&&(be=F0r(be,t,c)),g&&(be=Ybt(be,ae,le,t)),y&&(be=pu(be,(ue,De)=>YLe(ue,De,ae))),be))}function Z(Q,re){let ae=DQ(u,re);J(Q,_e=>ext(_e,ae))}}function WLe(t){return{comparersToTest:typeof t.organizeImportsIgnoreCase=="boolean"?[XLe(t,t.organizeImportsIgnoreCase)]:[XLe(t,!0),XLe(t,!1)],typeOrdersToTest:t.organizeImportsTypeOrder?[t.organizeImportsTypeOrder]:["last","inline","first"]}}function GLe(t,n){let a=B1(t.languageVersion,!1,t.languageVariant),c=[],u=0;for(let _ of n)c[u]&&N0r(t,_,a)&&u++,c[u]||(c[u]=[]),c[u].push(_);return c}function N0r(t,n,a){let c=n.getFullStart(),u=n.getStart();a.setText(t.text,c,u-c);let _=0;for(;a.getTokenStart()=2))return!0;return!1}function O0r(t){let n=[],a=t.statements,c=te(a),u=0,_=0;for(;uGLe(t,f))}function F0r(t,n,a){let c=a.getTypeChecker(),u=a.getCompilerOptions(),_=c.getJsxNamespace(n),f=c.getJsxFragmentFactory(n),y=!!(n.transformFlags&2),g=[];for(let T of t){let{importClause:C,moduleSpecifier:O}=T;if(!C){g.push(T);continue}let{name:F,namedBindings:M}=C;if(F&&!k(F)&&(F=void 0),M)if(zx(M))k(M.name)||(M=void 0);else{let U=M.elements.filter(J=>k(J.name));U.length{if(f.attributes){let y=f.attributes.token+" ";for(let g of pu(f.attributes.elements,(k,T)=>Su(k.name.text,T.name.text)))y+=g.name.text+":",y+=Sl(g.value)?`"${g.value.text}"`:g.value.getText()+" ";return y}return""}),_=[];for(let f in u){let y=u[f],{importWithoutClause:g,typeOnlyImports:k,regularImports:T}=R0r(y);g&&_.push(g);for(let C of[T,k]){let O=C===k,{defaultImports:F,namespaceImports:M,namedImports:U}=C;if(!O&&F.length===1&&M.length===1&&U.length===0){let le=F[0];_.push(CQ(le,le.importClause.name,M[0].importClause.namedBindings));continue}let J=pu(M,(le,Oe)=>n(le.importClause.namedBindings.name.text,Oe.importClause.namedBindings.name.text));for(let le of J)_.push(CQ(le,void 0,le.importClause.namedBindings));let G=pi(F),Z=pi(U),Q=G??Z;if(!Q)continue;let re,ae=[];if(F.length===1)re=F[0].importClause.name;else for(let le of F)ae.push(W.createImportSpecifier(!1,W.createIdentifier("default"),le.importClause.name));ae.push(...j0r(U));let _e=W.createNodeArray(pu(ae,a),Z?.importClause.namedBindings.elements.hasTrailingComma),me=_e.length===0?re?void 0:W.createNamedImports(j):Z?W.updateNamedImports(Z.importClause.namedBindings,_e):W.createNamedImports(_e);c&&me&&Z?.importClause.namedBindings&&!Z4(Z.importClause.namedBindings,c)&&Ai(me,2),O&&re&&me?(_.push(CQ(Q,re,void 0)),_.push(CQ(Z??Q,void 0,me))):_.push(CQ(Q,re,me))}}return _}function ext(t,n){if(t.length===0)return t;let{exportWithoutClause:a,namedExports:c,typeOnlyExports:u}=f(t),_=[];a&&_.push(a);for(let y of[c,u]){if(y.length===0)continue;let g=[];g.push(...an(y,C=>C.exportClause&&k0(C.exportClause)?C.exportClause.elements:j));let k=pu(g,n),T=y[0];_.push(W.updateExportDeclaration(T,T.modifiers,T.isTypeOnly,T.exportClause&&(k0(T.exportClause)?W.updateNamedExports(T.exportClause,k):W.updateNamespaceExport(T.exportClause,T.exportClause.name)),T.moduleSpecifier,T.attributes))}return _;function f(y){let g,k=[],T=[];for(let C of y)C.exportClause===void 0?g=g||C:C.isTypeOnly?T.push(C):k.push(C);return{exportWithoutClause:g,namedExports:k,typeOnlyExports:T}}}function CQ(t,n,a){return W.updateImportDeclaration(t,t.modifiers,W.updateImportClause(t.importClause,t.importClause.phaseModifier,n,a),t.moduleSpecifier,t.attributes)}function HLe(t,n,a,c){switch(c?.organizeImportsTypeOrder){case"first":return cS(n.isTypeOnly,t.isTypeOnly)||a(t.name.text,n.name.text);case"inline":return a(t.name.text,n.name.text);default:return cS(t.isTypeOnly,n.isTypeOnly)||a(t.name.text,n.name.text)}}function KLe(t,n,a){let c=t===void 0?void 0:Gae(t),u=n===void 0?void 0:Gae(n);return cS(c===void 0,u===void 0)||cS(vt(c),vt(u))||a(c,u)}function L0r(t){return t.map(n=>Gae(QLe(n))||"")}function QLe(t){var n;switch(t.kind){case 272:return(n=Ci(t.moduleReference,WT))==null?void 0:n.expression;case 273:return t.moduleSpecifier;case 244:return t.declarationList.declarations[0].initializer.arguments[0]}}function M0r(t,n){let a=Ic(n)&&n.text;return Ni(a)&&Pt(t.moduleAugmentations,c=>Ic(c)&&c.text===a)}function j0r(t){return an(t,n=>Cr(B0r(n),a=>a.name&&a.propertyName&&YI(a.name)===YI(a.propertyName)?W.updateImportSpecifier(a,a.isTypeOnly,void 0,a.name):a))}function B0r(t){var n;return(n=t.importClause)!=null&&n.namedBindings&&IS(t.importClause.namedBindings)?t.importClause.namedBindings.elements:void 0}function txt(t,n){let a=[];return t.forEach(c=>{a.push(L0r(c))}),nxt(a,n)}function ZLe(t,n,a){let c=!1,u=t.filter(g=>{var k,T;let C=(T=Ci((k=g.importClause)==null?void 0:k.namedBindings,IS))==null?void 0:T.elements;return C?.length?(!c&&C.some(O=>O.isTypeOnly)&&C.some(O=>!O.isTypeOnly)&&(c=!0),!0):!1});if(u.length===0)return;let _=u.map(g=>{var k,T;return(T=Ci((k=g.importClause)==null?void 0:k.namedBindings,IS))==null?void 0:T.elements}).filter(g=>g!==void 0);if(!c||a.length===0){let g=nxt(_.map(k=>k.map(T=>T.name.text)),n);return{namedImportComparer:g.comparer,typeOrder:a.length===1?a[0]:void 0,isSorted:g.isSorted}}let f={first:1/0,last:1/0,inline:1/0},y={first:n[0],last:n[0],inline:n[0]};for(let g of n){let k={first:0,last:0,inline:0};for(let T of _)for(let C of a)k[C]=(k[C]??0)+rxt(T,(O,F)=>HLe(O,F,g,{organizeImportsTypeOrder:C}));for(let T of a){let C=T;k[C]0&&a++;return a}function nxt(t,n){let a,c=1/0;for(let u of n){let _=0;for(let f of t){if(f.length<=1)continue;let y=rxt(f,u);_+=y}_HLe(c,u,a,t)}function J0r(t,n,a){let{comparersToTest:c,typeOrdersToTest:u}=WLe(n),_=ZLe([t],c,u),f=DQ(n,c[0]),y;if(typeof n.organizeImportsIgnoreCase!="boolean"||!n.organizeImportsTypeOrder){if(_){let{namedImportComparer:g,typeOrder:k,isSorted:T}=_;y=T,f=DQ({organizeImportsTypeOrder:k},g)}else if(a){let g=ZLe(a.statements.filter(fp),c,u);if(g){let{namedImportComparer:k,typeOrder:T,isSorted:C}=g;y=C,f=DQ({organizeImportsTypeOrder:T},k)}}}return{specifierComparer:f,isSorted:y}}function V0r(t,n,a){let c=rs(t,n,vl,(u,_)=>YLe(u,_,a));return c<0?~c:c}function W0r(t,n,a){let c=rs(t,n,vl,a);return c<0?~c:c}function YLe(t,n,a){return KLe(QLe(t),QLe(n),a)||$0r(t,n)}function G0r(t,n,a,c){let u=Hae(n),_=DQ({organizeImportsTypeOrder:c?.organizeImportsTypeOrder},u);return Ybt(t,u,_,a)}function H0r(t,n,a){return ext(t,(u,_)=>HLe(u,_,Hae(n),{organizeImportsTypeOrder:a?.organizeImportsTypeOrder??"last"}))}function K0r(t,n,a){let c=Hae(!!a);return KLe(t,n,c)}var fbe={};d(fbe,{collectElements:()=>Q0r});function Q0r(t,n){let a=[];return Z0r(t,n,a),X0r(t,a),a.sort((c,u)=>c.textSpan.start-u.textSpan.start),a}function Z0r(t,n,a){let c=40,u=0,_=t.statements,f=_.length;for(;u1&&c.push(Kae(_,f,"comment"))}}function axt(t,n,a,c){_F(t)||eMe(t.pos,n,a,c)}function Kae(t,n,a){return ZF(Hu(t,n),a)}function e1r(t,n){switch(t.kind){case 242:if(Rs(t.parent))return t1r(t.parent,t,n);switch(t.parent.kind){case 247:case 250:case 251:case 249:case 246:case 248:case 255:case 300:return T(t.parent);case 259:let F=t.parent;if(F.tryBlock===t)return T(t.parent);if(F.finallyBlock===t){let M=Kl(F,98,n);if(M)return T(M)}default:return ZF(yh(t,n),"code")}case 269:return T(t.parent);case 264:case 232:case 265:case 267:case 270:case 188:case 207:return T(t);case 190:return T(t,!1,!yF(t.parent),23);case 297:case 298:return C(t.statements);case 211:return k(t);case 210:return k(t,23);case 285:return _(t);case 289:return f(t);case 286:case 287:return y(t.attributes);case 229:case 15:return g(t);case 208:return T(t,!1,!Vc(t.parent),23);case 220:return u(t);case 214:return c(t);case 218:return O(t);case 276:case 280:case 301:return a(t)}function a(F){if(!F.elements.length)return;let M=Kl(F,19,n),U=Kl(F,20,n);if(!(!M||!U||v0(M.pos,U.pos,n)))return mbe(M,U,F,n,!1,!1)}function c(F){if(!F.arguments.length)return;let M=Kl(F,21,n),U=Kl(F,22,n);if(!(!M||!U||v0(M.pos,U.pos,n)))return mbe(M,U,F,n,!1,!0)}function u(F){if(Vs(F.body)||mh(F.body)||v0(F.body.getFullStart(),F.body.getEnd(),n))return;let M=Hu(F.body.getFullStart(),F.body.getEnd());return ZF(M,"code",yh(F))}function _(F){let M=Hu(F.openingElement.getStart(n),F.closingElement.getEnd()),U=F.openingElement.tagName.getText(n),J="<"+U+">...";return ZF(M,"code",M,!1,J)}function f(F){let M=Hu(F.openingFragment.getStart(n),F.closingFragment.getEnd());return ZF(M,"code",M,!1,"<>...")}function y(F){if(F.properties.length!==0)return Kae(F.getStart(n),F.getEnd(),"code")}function g(F){if(!(F.kind===15&&F.text.length===0))return Kae(F.getStart(n),F.getEnd(),"code")}function k(F,M=19){return T(F,!1,!qf(F.parent)&&!Js(F.parent),M)}function T(F,M=!1,U=!0,J=19,G=J===19?20:24){let Z=Kl(t,J,n),Q=Kl(t,G,n);return Z&&Q&&mbe(Z,Q,F,n,M,U)}function C(F){return F.length?ZF(CE(F),"code"):void 0}function O(F){if(v0(F.getStart(),F.getEnd(),n))return;let M=Hu(F.getStart(),F.getEnd());return ZF(M,"code",yh(F))}}function t1r(t,n,a){let c=r1r(t,n,a),u=Kl(n,20,a);return c&&u&&mbe(c,u,t,a,t.kind!==220)}function mbe(t,n,a,c,u=!1,_=!0){let f=Hu(_?t.getFullStart():t.getStart(c),n.getEnd());return ZF(f,"code",yh(a,c),u)}function ZF(t,n,a=t,c=!1,u="..."){return{textSpan:t,kind:n,hintSpan:a,bannerText:u,autoCollapse:c}}function r1r(t,n,a){if(h4e(t.parameters,a)){let c=Kl(t,21,a);if(c)return c}return Kl(n,19,a)}var Qae={};d(Qae,{getRenameInfo:()=>n1r,nodeIsEligibleForRename:()=>cxt});function n1r(t,n,a,c){let u=Moe(Vh(n,a));if(cxt(u)){let _=i1r(u,t.getTypeChecker(),n,t,c);if(_)return _}return hbe(x.You_cannot_rename_this_element)}function i1r(t,n,a,c,u){let _=n.getSymbolAtLocation(t);if(!_){if(Sl(t)){let O=Loe(t,n);if(O&&(O.flags&128||O.flags&1048576&&ht(O.types,F=>!!(F.flags&128))))return tMe(t.text,t.text,"string","",t,a)}else if(j1e(t)){let O=Sp(t);return tMe(O,O,"label","",t,a)}return}let{declarations:f}=_;if(!f||f.length===0)return;if(f.some(O=>o1r(c,O)))return hbe(x.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(ct(t)&&t.escapedText==="default"&&_.parent&&_.parent.flags&1536)return;if(Sl(t)&&qG(t))return u.allowRenameOfImportPath?s1r(t,a,_):void 0;let y=a1r(a,_,n,u);if(y)return hbe(y);let g=wE.getSymbolKind(n,_,t),k=D7e(t)||jy(t)&&t.parent.kind===168?i1(g0(t)):void 0,T=k||n.symbolToString(_),C=k||n.getFullyQualifiedName(_);return tMe(T,C,g,wE.getSymbolModifiers(n,_),t,a)}function o1r(t,n){let a=n.getSourceFile();return t.isSourceFileDefaultLibrary(a)&&Au(a.fileName,".d.ts")}function a1r(t,n,a,c){if(!c.providePrefixAndSuffixTextForRename&&n.flags&2097152){let f=n.declarations&&wt(n.declarations,y=>Xm(y));f&&!f.propertyName&&(n=a.getAliasedSymbol(n))}let{declarations:u}=n;if(!u)return;let _=sxt(t.path);if(_===void 0)return Pt(u,f=>tQ(f.getSourceFile().path))?x.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(let f of u){let y=sxt(f.getSourceFile().path);if(y){let g=Math.min(_.length,y.length);for(let k=0;k<=g;k++)if(Su(_[k],y[k])!==0)return x.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function sxt(t){let n=Cd(t),a=n.lastIndexOf("node_modules");if(a!==-1)return n.slice(0,a+2)}function s1r(t,n,a){if(!vt(t.text))return hbe(x.You_cannot_rename_a_module_via_a_global_import);let c=a.declarations&&wt(a.declarations,Ta);if(!c)return;let u=au(t.text,"/index")||au(t.text,"/index.js")?void 0:wT(Qm(c.fileName),"/index"),_=u===void 0?c.fileName:u,f=u===void 0?"module":"directory",y=t.text.lastIndexOf("/")+1,g=Jp(t.getStart(n)+1+y,t.text.length-y);return{canRename:!0,fileToRename:_,kind:f,displayName:_,fullDisplayName:t.text,kindModifiers:"",triggerSpan:g}}function tMe(t,n,a,c,u,_){return{canRename:!0,fileToRename:void 0,kind:a,displayName:t,fullDisplayName:n,kindModifiers:c,triggerSpan:c1r(u,_)}}function hbe(t){return{canRename:!1,localizedErrorMessage:As(t)}}function c1r(t,n){let a=t.getStart(n),c=t.getWidth(n);return Sl(t)&&(a+=1,c-=2),Jp(a,c)}function cxt(t){switch(t.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return Noe(t);default:return!1}}var AQ={};d(AQ,{getArgumentInfoForCompletions:()=>d1r,getSignatureHelpItems:()=>l1r});function l1r(t,n,a,c,u){let _=t.getTypeChecker(),f=Hz(n,a);if(!f)return;let y=!!c&&c.kind==="characterTyped";if(y&&(jF(n,a,f)||EE(n,a)))return;let g=!!c&&c.kind==="invoked",k=C1r(f,a,n,_,g);if(!k)return;u.throwIfCancellationRequested();let T=u1r(k,_,n,f,y);return u.throwIfCancellationRequested(),T?_.runWithCancellationToken(u,C=>T.kind===0?hxt(T.candidates,T.resolvedSignature,k,n,C):A1r(T.symbol,k,n,C)):ph(n)?_1r(k,t,u):void 0}function u1r({invocation:t,argumentCount:n},a,c,u,_){switch(t.kind){case 0:{if(_&&!p1r(u,t.node,c))return;let f=[],y=a.getResolvedSignatureForSignatureHelp(t.node,f,n);return f.length===0?void 0:{kind:0,candidates:f,resolvedSignature:y}}case 1:{let{called:f}=t;if(_&&!lxt(u,c,ct(f)?f.parent:f))return;let y=H1e(f,n,a);if(y.length!==0)return{kind:0,candidates:y,resolvedSignature:To(y)};let g=a.getSymbolAtLocation(f);return g&&{kind:1,symbol:g}}case 2:return{kind:0,candidates:[t.signature],resolvedSignature:t.signature};default:return $.assertNever(t)}}function p1r(t,n,a){if(!mS(n))return!1;let c=n.getChildren(a);switch(t.kind){case 21:return un(c,t);case 28:{let u=Roe(t);return!!u&&un(c,u)}case 30:return lxt(t,a,n.expression);default:return!1}}function _1r(t,n,a){if(t.invocation.kind===2)return;let c=fxt(t.invocation),u=no(c)?c.name.text:void 0,_=n.getTypeChecker();return u===void 0?void 0:Je(n.getSourceFiles(),f=>Je(f.getNamedDeclarations().get(u),y=>{let g=y.symbol&&_.getTypeOfSymbolAtLocation(y.symbol,y),k=g&&g.getCallSignatures();if(k&&k.length)return _.runWithCancellationToken(a,T=>hxt(k,k[0],t,f,T,!0))}))}function lxt(t,n,a){let c=t.getFullStart(),u=t.parent;for(;u;){let _=vd(c,n,u,!0);if(_)return zh(a,_);u=u.parent}return $.fail("Could not find preceding token")}function d1r(t,n,a,c){let u=pxt(t,n,a,c);return!u||u.isTypeParameterList||u.invocation.kind!==0?void 0:{invocation:u.invocation.node,argumentCount:u.argumentCount,argumentIndex:u.argumentIndex}}function uxt(t,n,a,c){let u=f1r(t,a,c);if(!u)return;let{list:_,argumentIndex:f}=u,y=x1r(c,_),g=E1r(_,a);return{list:_,argumentIndex:f,argumentCount:y,argumentsSpan:g}}function f1r(t,n,a){if(t.kind===30||t.kind===21)return{list:D1r(t.parent,t,n),argumentIndex:0};{let c=Roe(t);return c&&{list:c,argumentIndex:b1r(a,c,t)}}}function pxt(t,n,a,c){let{parent:u}=t;if(mS(u)){let _=u,f=uxt(t,n,a,c);if(!f)return;let{list:y,argumentIndex:g,argumentCount:k,argumentsSpan:T}=f;return{isTypeParameterList:!!u.typeArguments&&u.typeArguments.pos===y.pos,invocation:{kind:0,node:_},argumentsSpan:T,argumentIndex:g,argumentCount:k}}else{if(r3(t)&&xA(u))return VK(t,n,a)?nMe(u,0,a):void 0;if(dF(t)&&u.parent.kind===216){let _=u,f=_.parent;$.assert(_.kind===229);let y=VK(t,n,a)?0:1;return nMe(f,y,a)}else if(vL(u)&&xA(u.parent.parent)){let _=u,f=u.parent.parent;if(Mne(t)&&!VK(t,n,a))return;let y=_.parent.templateSpans.indexOf(_),g=T1r(y,t,n,a);return nMe(f,g,a)}else if(Em(u)){let _=u.attributes.pos,f=_c(a.text,u.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:u},argumentsSpan:Jp(_,f-_),argumentIndex:0,argumentCount:1}}else{let _=K1e(t,a);if(_){let{called:f,nTypeArguments:y}=_,g={kind:1,called:f},k=Hu(f.getStart(a),t.end);return{isTypeParameterList:!0,invocation:g,argumentsSpan:k,argumentIndex:y,argumentCount:y+1}}return}}}function m1r(t,n,a,c){return h1r(t,n,a,c)||pxt(t,n,a,c)}function _xt(t){return wi(t.parent)?_xt(t.parent):t}function rMe(t){return wi(t.left)?rMe(t.left)+1:2}function h1r(t,n,a,c){let u=g1r(t);if(u===void 0)return;let _=y1r(u,a,n,c);if(_===void 0)return;let{contextualType:f,argumentIndex:y,argumentCount:g,argumentsSpan:k}=_,T=f.getNonNullableType(),C=T.symbol;if(C===void 0)return;let O=Yr(T.getCallSignatures());return O===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:O,node:t,symbol:v1r(C)},argumentsSpan:k,argumentIndex:y,argumentCount:g}}function g1r(t){switch(t.kind){case 21:case 28:return t;default:return fn(t.parent,n=>wa(n)?!0:Vc(n)||$y(n)||xE(n)?!1:"quit")}}function y1r(t,n,a,c){let{parent:u}=t;switch(u.kind){case 218:case 175:case 219:case 220:let _=uxt(t,a,n,c);if(!_)return;let{argumentIndex:f,argumentCount:y,argumentsSpan:g}=_,k=Ep(u)?c.getContextualTypeForObjectLiteralElement(u):c.getContextualType(u);return k&&{contextualType:k,argumentIndex:f,argumentCount:y,argumentsSpan:g};case 227:{let T=_xt(u),C=c.getContextualType(T),O=t.kind===21?0:rMe(u)-1,F=rMe(T);return C&&{contextualType:C,argumentIndex:O,argumentCount:F,argumentsSpan:yh(u)}}default:return}}function v1r(t){return t.name==="__type"&&Je(t.declarations,n=>{var a;return Cb(n)?(a=Ci(n.parent,gv))==null?void 0:a.symbol:void 0})||t}function S1r(t,n){let a=n.getTypeAtLocation(t.expression);if(n.isTupleType(a)){let{elementFlags:c,fixedLength:u}=a.target;if(u===0)return 0;let _=hr(c,f=>!(f&1));return _<0?u:_}return 0}function b1r(t,n,a){return dxt(t,n,a)}function x1r(t,n){return dxt(t,n,void 0)}function dxt(t,n,a){let c=n.getChildren(),u=0,_=!1;for(let f of c){if(a&&f===a)return!_&&f.kind===28&&u++,u;if(E0(f)){u+=S1r(f,t),_=!0;continue}if(f.kind!==28){u++,_=!0;continue}if(_){_=!1;continue}u++}return a?u:c.length&&Sn(c).kind===28?u+1:u}function T1r(t,n,a,c){return $.assert(a>=n.getStart(),"Assumed 'position' could not occur before node."),TPe(n)?VK(n,a,c)?0:t+2:t+1}function nMe(t,n,a){let c=r3(t.template)?1:t.template.templateSpans.length+1;return n!==0&&$.assertLessThan(n,c),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:k1r(t,a),argumentIndex:n,argumentCount:c}}function E1r(t,n){let a=t.getFullStart(),c=_c(n.text,t.getEnd(),!1);return Jp(a,c-a)}function k1r(t,n){let a=t.template,c=a.getStart(),u=a.getEnd();return a.kind===229&&Sn(a.templateSpans).literal.getFullWidth()===0&&(u=_c(n.text,u,!1)),Jp(c,u-c)}function C1r(t,n,a,c,u){for(let _=t;!Ta(_)&&(u||!Vs(_));_=_.parent){$.assert(zh(_.parent,_),"Not a subspan",()=>`Child: ${$.formatSyntaxKind(_.kind)}, parent: ${$.formatSyntaxKind(_.parent.kind)}`);let f=m1r(_,n,a,c);if(f)return f}}function D1r(t,n,a){let c=t.getChildren(a),u=c.indexOf(n);return $.assert(u>=0&&c.length>u+1),c[u+1]}function fxt(t){return t.kind===0?bre(t.node):t.called}function mxt(t){return t.kind===0?t.node:t.kind===1?t.called:t.node}var Zae=70246400;function hxt(t,n,{isTypeParameterList:a,argumentCount:c,argumentsSpan:u,invocation:_,argumentIndex:f},y,g,k){var T;let C=mxt(_),O=_.kind===2?_.symbol:g.getSymbolAtLocation(fxt(_))||k&&((T=n.declaration)==null?void 0:T.symbol),F=O?eq(g,O,k?y:void 0,void 0):j,M=Cr(t,Q=>I1r(Q,F,a,g,C,y)),U=0,J=0;for(let Q=0;Q1)){let ae=0;for(let _e of re){if(_e.isVariadic||_e.parameters.length>=c){U=J+ae;break}ae++}}J+=re.length}$.assert(U!==-1);let G={items:Xr(M,vl),applicableSpan:u,selectedItemIndex:U,argumentIndex:f,argumentCount:c},Z=G.items[U];if(Z.isVariadic){let Q=hr(Z.parameters,re=>!!re.isRest);-1yxt(C,a,c,u,f)),g=t.getDocumentationComment(a),k=t.getJsDocTags(a);return{isVariadic:!1,prefixDisplayParts:[..._,wm(30)],suffixDisplayParts:[wm(32)],separatorDisplayParts:gxt,parameters:y,documentation:g,tags:k}}var gxt=[wm(28),Lp()];function I1r(t,n,a,c,u,_){let f=(a?N1r:O1r)(t,c,u,_);return Cr(f,({isVariadic:y,parameters:g,prefix:k,suffix:T})=>{let C=[...n,...k],O=[...T,...P1r(t,u,c)],F=t.getDocumentationComment(c),M=t.getJsDocTags();return{isVariadic:y,prefixDisplayParts:C,suffixDisplayParts:O,separatorDisplayParts:gxt,parameters:g,documentation:F,tags:M}})}function P1r(t,n,a){return PC(c=>{c.writePunctuation(":"),c.writeSpace(" ");let u=a.getTypePredicateOfSignature(t);u?a.writeTypePredicate(u,n,void 0,c):a.writeType(a.getReturnTypeOfSignature(t),n,void 0,c)})}function N1r(t,n,a,c){let u=(t.target||t).typeParameters,_=wP(),f=(u||j).map(g=>yxt(g,n,a,c,_)),y=t.thisParameter?[n.symbolToParameterDeclaration(t.thisParameter,a,Zae)]:[];return n.getExpandedParameters(t).map(g=>{let k=W.createNodeArray([...y,...Cr(g,C=>n.symbolToParameterDeclaration(C,a,Zae))]),T=PC(C=>{_.writeList(2576,k,c,C)});return{isVariadic:!1,parameters:f,prefix:[wm(30)],suffix:[wm(32),...T]}})}function O1r(t,n,a,c){let u=wP(),_=PC(g=>{if(t.typeParameters&&t.typeParameters.length){let k=W.createNodeArray(t.typeParameters.map(T=>n.typeParameterToDeclaration(T,a,Zae)));u.writeList(53776,k,c,g)}}),f=n.getExpandedParameters(t),y=n.hasEffectiveRestParameter(t)?f.length===1?g=>!0:g=>{var k;return!!(g.length&&((k=Ci(g[g.length-1],wx))==null?void 0:k.links.checkFlags)&32768)}:g=>!1;return f.map(g=>({isVariadic:y(g),parameters:g.map(k=>F1r(k,n,a,c,u)),prefix:[..._,wm(21)],suffix:[wm(22)]}))}function F1r(t,n,a,c,u){let _=PC(g=>{let k=n.symbolToParameterDeclaration(t,a,Zae);u.writeNode(4,k,c,g)}),f=n.isOptionalParameter(t.valueDeclaration),y=wx(t)&&!!(t.links.checkFlags&32768);return{name:t.name,documentation:t.getDocumentationComment(n),displayParts:_,isOptional:f,isRest:y}}function yxt(t,n,a,c,u){let _=PC(f=>{let y=n.typeParameterToDeclaration(t,a,Zae);u.writeNode(4,y,c,f)});return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(n),displayParts:_,isOptional:!1,isRest:!1}}var gbe={};d(gbe,{getSmartSelectionRange:()=>R1r});function R1r(t,n){var a,c;let u={textSpan:Hu(n.getFullStart(),n.getEnd())},_=n;e:for(;;){let g=j1r(_);if(!g.length)break;for(let k=0;kt)break e;let F=to(hb(n.text,C.end));if(F&&F.kind===2&&y(F.pos,F.end),L1r(n,t,C)){if(pme(C)&&lu(_)&&!v0(C.getStart(n),C.getEnd(),n)&&f(C.getStart(n),C.getEnd()),Vs(C)||vL(C)||dF(C)||Mne(C)||T&&dF(T)||Df(C)&&h_(_)||kL(C)&&Df(_)||Oo(C)&&kL(_)&&g.length===1||AA(C)||TE(C)||p3(C)){_=C;break}if(vL(_)&&O&&zte(O)){let G=C.getFullStart()-2,Z=O.getStart()+1;f(G,Z)}let M=kL(C)&&B1r(T)&&$1r(O)&&!v0(T.getStart(),O.getStart(),n),U=M?T.getEnd():C.getStart(),J=M?O.getStart():U1r(n,C);if(hy(C)&&((a=C.jsDoc)!=null&&a.length)&&f(To(C.jsDoc).getStart(),J),kL(C)){let G=C.getChildren()[0];G&&hy(G)&&((c=G.jsDoc)!=null&&c.length)&&G.getStart()!==C.pos&&(U=Math.min(U,To(G.jsDoc).getStart()))}f(U,J),(Ic(C)||FO(C))&&f(U+1,J-1),_=C;break}if(k===g.length-1)break e}}return u;function f(g,k){if(g!==k){let T=Hu(g,k);(!u||!XL(T,u.textSpan)&&gb(T,t))&&(u={textSpan:T,...u&&{parent:u}})}}function y(g,k){f(g,k);let T=g;for(;n.text.charCodeAt(T)===47;)T++;f(T,k)}}function L1r(t,n,a){return $.assert(a.pos<=n),ny===t.readonlyToken||y.kind===148||y===t.questionToken||y.kind===58),f=wQ(_,({kind:y})=>y===23||y===169||y===24);return[a,IQ(ybe(f,({kind:y})=>y===59)),u]}if(Zm(t)){let a=wQ(t.getChildren(),f=>f===t.name||un(t.modifiers,f)),c=((n=a[0])==null?void 0:n.kind)===321?a[0]:void 0,u=c?a.slice(1):a,_=ybe(u,({kind:f})=>f===59);return c?[c,IQ(_)]:_}if(wa(t)){let a=wQ(t.getChildren(),u=>u===t.dotDotDotToken||u===t.name),c=wQ(a,u=>u===a[0]||u===t.questionToken);return ybe(c,({kind:u})=>u===64)}return Vc(t)?ybe(t.getChildren(),({kind:a})=>a===64):t.getChildren()}function wQ(t,n){let a=[],c;for(let u of t)n(u)?(c=c||[],c.push(u)):(c&&(a.push(IQ(c)),c=void 0),a.push(u));return c&&a.push(IQ(c)),a}function ybe(t,n,a=!0){if(t.length<2)return t;let c=hr(t,n);if(c===-1)return t;let u=t.slice(0,c),_=t[c],f=Sn(t),y=a&&f.kind===27,g=t.slice(c+1,y?t.length-1:void 0),k=Bc([u.length?IQ(u):void 0,_,g.length?IQ(g):void 0]);return y?k.concat(f):k}function IQ(t){return $.assertGreaterThanOrEqual(t.length,1),xv(PA.createSyntaxList(t),t[0].pos,Sn(t).end)}function B1r(t){let n=t&&t.kind;return n===19||n===23||n===21||n===287}function $1r(t){let n=t&&t.kind;return n===20||n===24||n===22||n===288}function U1r(t,n){switch(n.kind){case 342:case 339:case 349:case 347:case 344:return t.getLineEndOfPosition(n.getStart());default:return n.getEnd()}}var wE={};d(wE,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>q1r,getSymbolKind:()=>Sxt,getSymbolModifiers:()=>z1r});var vxt=70246400;function Sxt(t,n,a){let c=bxt(t,n,a);if(c!=="")return c;let u=iL(n);return u&32?Qu(n,232)?"local class":"class":u&384?"enum":u&524288?"type":u&64?"interface":u&262144?"type parameter":u&8?"enum member":u&2097152?"alias":u&1536?"module":c}function bxt(t,n,a){let c=t.getRootSymbols(n);if(c.length===1&&To(c).flags&8192&&t.getTypeOfSymbolAtLocation(n,a).getNonNullableType().getCallSignatures().length!==0)return"method";if(t.isUndefinedSymbol(n))return"var";if(t.isArgumentsSymbol(n))return"local var";if(a.kind===110&&Vt(a)||lP(a))return"parameter";let u=iL(n);if(u&3)return mve(n)?"parameter":n.valueDeclaration&&zR(n.valueDeclaration)?"const":n.valueDeclaration&&DG(n.valueDeclaration)?"using":n.valueDeclaration&&CG(n.valueDeclaration)?"await using":X(n.declarations,pre)?"let":Ext(n)?"local var":"var";if(u&16)return Ext(n)?"local function":"function";if(u&32768)return"getter";if(u&65536)return"setter";if(u&8192)return"method";if(u&16384)return"constructor";if(u&131072)return"index";if(u&4){if(u&33554432&&n.links.checkFlags&6){let _=X(t.getRootSymbols(n),f=>{if(f.getFlags()&98311)return"property"});return _||(t.getTypeOfSymbolAtLocation(n,a).getCallSignatures().length?"method":"property")}return"property"}return""}function xxt(t){if(t.declarations&&t.declarations.length){let[n,...a]=t.declarations,c=te(a)&&aae(n)&&Pt(a,_=>!aae(_))?65536:0,u=Kz(n,c);if(u)return u.split(",")}return[]}function z1r(t,n){if(!n)return"";let a=new Set(xxt(n));if(n.flags&2097152){let c=t.getAliasedSymbol(n);c!==n&&X(xxt(c),u=>{a.add(u)})}return n.flags&16777216&&a.add("optional"),a.size>0?so(a.values()).join(","):""}function Txt(t,n,a,c,u,_,f,y,g,k){var T;let C=[],O=[],F=[],M=iL(n),U=f&1?bxt(t,n,u):"",J=!1,G=u.kind===110&&xre(u)||lP(u),Z,Q,re=!1,ae={canIncreaseExpansionDepth:!1,truncated:!1},_e=!1;if(u.kind===110&&!G)return{displayParts:[Wg(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(U!==""||M&32||M&2097152){if(U==="getter"||U==="setter"){let Le=wt(n.declarations,Ve=>Ve.name===u&&Ve.kind!==212);if(Le)switch(Le.kind){case 178:U="getter";break;case 179:U="setter";break;case 173:U="accessor";break;default:$.assertNever(Le)}else U="property"}let je;if(_??(_=G?t.getTypeAtLocation(u):t.getTypeOfSymbolAtLocation(n,u)),u.parent&&u.parent.kind===212){let Le=u.parent.name;(Le===u||Le&&Le.getFullWidth()===0)&&(u=u.parent)}let ve;if(mS(u)?ve=u:(F1e(u)||Wz(u)||u.parent&&(Em(u.parent)||xA(u.parent))&&Rs(n.valueDeclaration))&&(ve=u.parent),ve){je=t.getResolvedSignature(ve);let Le=ve.kind===215||Js(ve)&&ve.expression.kind===108,Ve=Le?_.getConstructSignatures():_.getCallSignatures();if(je&&!un(Ve,je.target)&&!un(Ve,je)&&(je=Ve.length?Ve[0]:void 0),je){switch(Le&&M&32?(U="constructor",Be(_.symbol,U)):M&2097152?(U="alias",de(U),C.push(Lp()),Le&&(je.flags&4&&(C.push(Wg(128)),C.push(Lp())),C.push(Wg(105)),C.push(Lp())),Fe(n)):Be(n,U),U){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":C.push(wm(59)),C.push(Lp()),!(ro(_)&16)&&_.symbol&&(En(C,eq(t,_.symbol,c,void 0,5)),C.push(YL())),Le&&(je.flags&4&&(C.push(Wg(128)),C.push(Lp())),C.push(Wg(105)),C.push(Lp())),ze(je,Ve,262144);break;default:ze(je,Ve)}J=!0,re=Ve.length>1}}else if(z1e(u)&&!(M&98304)||u.kind===137&&u.parent.kind===177){let Le=u.parent;if(n.declarations&&wt(n.declarations,nt=>nt===(u.kind===137?Le.parent:Le))){let nt=Le.kind===177?_.getNonNullableType().getConstructSignatures():_.getNonNullableType().getCallSignatures();t.isImplementationOfOverload(Le)?je=nt[0]:je=t.getSignatureFromDeclaration(Le),Le.kind===177?(U="constructor",Be(_.symbol,U)):Be(Le.kind===180&&!(_.symbol.flags&2048||_.symbol.flags&4096)?_.symbol:n,U),je&&ze(je,nt),J=!0,re=nt.length>1}}}if(M&32&&!J&&!G){be();let je=Qu(n,232);je&&(de("local class"),C.push(Lp())),Ae(n,f)||(je||(C.push(Wg(86)),C.push(Lp())),Fe(n),ut(n,a))}if(M&64&&f&2&&(Oe(),Ae(n,f)||(C.push(Wg(120)),C.push(Lp()),Fe(n),ut(n,a))),M&524288&&f&2&&(Oe(),C.push(Wg(156)),C.push(Lp()),Fe(n),ut(n,a),C.push(Lp()),C.push(Yz(64)),C.push(Lp()),En(C,ZK(t,u.parent&&z1(u.parent)?t.getTypeAtLocation(u.parent):t.getDeclaredTypeOfSymbol(n),c,8388608,g,k,ae))),M&384&&(Oe(),Ae(n,f)||(Pt(n.declarations,je=>CA(je)&&lA(je))&&(C.push(Wg(87)),C.push(Lp())),C.push(Wg(94)),C.push(Lp()),Fe(n,void 0))),M&1536&&!G&&(Oe(),!Ae(n,f))){let je=Qu(n,268),ve=je&&je.name&&je.name.kind===80;C.push(Wg(ve?145:144)),C.push(Lp()),Fe(n)}if(M&262144&&f&2)if(Oe(),C.push(wm(21)),C.push(Vy("type parameter")),C.push(wm(22)),C.push(Lp()),Fe(n),n.parent)ue(),Fe(n.parent,c),ut(n.parent,c);else{let je=Qu(n,169);if(je===void 0)return $.fail();let ve=je.parent;if(ve)if(Rs(ve)){ue();let Le=t.getSignatureFromDeclaration(ve);ve.kind===181?(C.push(Wg(105)),C.push(Lp())):ve.kind!==180&&ve.name&&Fe(ve.symbol),En(C,gve(t,Le,a,32))}else s1(ve)&&(ue(),C.push(Wg(156)),C.push(Lp()),Fe(ve.symbol),ut(ve.symbol,a))}if(M&8){U="enum member",Be(n,"enum member");let je=(T=n.declarations)==null?void 0:T[0];if(je?.kind===307){let ve=t.getConstantValue(je);ve!==void 0&&(C.push(Lp()),C.push(Yz(64)),C.push(Lp()),C.push(hg(r6e(ve),typeof ve=="number"?7:8)))}}if(n.flags&2097152){if(Oe(),!J||O.length===0&&F.length===0){let je=t.getAliasedSymbol(n);if(je!==n&&je.declarations&&je.declarations.length>0){let ve=je.declarations[0],Le=cs(ve);if(Le&&!J){let Ve=sre(ve)&&ko(ve,128),nt=n.name!=="default"&&!Ve,It=Txt(t,je,Pn(ve),c,Le,_,f,nt?n:je,g,k);C.push(...It.displayParts),C.push(YL()),Z=It.documentation,Q=It.tags,ae&&It.canIncreaseVerbosityLevel&&(ae.canIncreaseExpansionDepth=!0)}else Z=je.getContextualDocumentationComment(ve,t),Q=je.getJsDocTags(t)}}if(n.declarations)switch(n.declarations[0].kind){case 271:C.push(Wg(95)),C.push(Lp()),C.push(Wg(145));break;case 278:C.push(Wg(95)),C.push(Lp()),C.push(Wg(n.declarations[0].isExportEquals?64:90));break;case 282:C.push(Wg(95));break;default:C.push(Wg(102))}C.push(Lp()),Fe(n),X(n.declarations,je=>{if(je.kind===272){let ve=je;if(pA(ve))C.push(Lp()),C.push(Yz(64)),C.push(Lp()),C.push(Wg(149)),C.push(wm(21)),C.push(hg(Sp(hU(ve)),8)),C.push(wm(22));else{let Le=t.getSymbolAtLocation(ve.moduleReference);Le&&(C.push(Lp()),C.push(Yz(64)),C.push(Lp()),Fe(Le,c))}return!0}})}if(!J)if(U!==""){if(_){if(G?(Oe(),C.push(Wg(110))):Be(n,U),U==="property"||U==="accessor"||U==="getter"||U==="setter"||U==="JSX attribute"||M&3||U==="local var"||U==="index"||U==="using"||U==="await using"||G){if(C.push(wm(59)),C.push(Lp()),_.symbol&&_.symbol.flags&262144&&U!=="index"){let je=PC(ve=>{let Le=t.typeParameterToDeclaration(_,c,vxt,void 0,void 0,g,k,ae);le().writeNode(4,Le,Pn(vs(c)),ve)},g);En(C,je)}else En(C,ZK(t,_,c,void 0,g,k,ae));if(wx(n)&&n.links.target&&wx(n.links.target)&&n.links.target.links.tupleLabelDeclaration){let je=n.links.target.links.tupleLabelDeclaration;$.assertNode(je.name,ct),C.push(Lp()),C.push(wm(21)),C.push(Vy(Zi(je.name))),C.push(wm(22))}}else if(M&16||M&8192||M&16384||M&131072||M&98304||U==="method"){let je=_.getNonNullableType().getCallSignatures();je.length&&(ze(je[0],je),re=je.length>1)}}}else U=Sxt(t,n,u);if(O.length===0&&!re&&(O=n.getContextualDocumentationComment(c,t)),O.length===0&&M&4&&n.parent&&n.declarations&&X(n.parent.declarations,je=>je.kind===308))for(let je of n.declarations){if(!je.parent||je.parent.kind!==227)continue;let ve=t.getSymbolAtLocation(je.parent.right);if(ve&&(O=ve.getDocumentationComment(t),F=ve.getJsDocTags(t),O.length>0))break}if(O.length===0&&ct(u)&&n.valueDeclaration&&Vc(n.valueDeclaration)){let je=n.valueDeclaration,ve=je.parent,Le=je.propertyName||je.name;if(ct(Le)&&$y(ve)){let Ve=g0(Le),nt=t.getTypeAtLocation(ve);O=Je(nt.isUnion()?nt.types:[nt],It=>{let ke=It.getProperty(Ve);return ke?ke.getDocumentationComment(t):void 0})||j}}F.length===0&&!re&&!gU(u)&&(F=n.getContextualJsDocTags(c,t)),O.length===0&&Z&&(O=Z),F.length===0&&Q&&(F=Q);let me=!ae.truncated&&ae.canIncreaseExpansionDepth;return{displayParts:C,documentation:O,symbolKind:U,tags:F.length===0?void 0:F,canIncreaseVerbosityLevel:k!==void 0?me:void 0};function le(){return wP()}function Oe(){C.length&&C.push(YL()),be()}function be(){y&&(de("alias"),C.push(Lp()))}function ue(){C.push(Lp()),C.push(Wg(103)),C.push(Lp())}function De(je,ve){if(k===void 0)return!1;let Le=je.flags&96?t.getDeclaredTypeOfSymbol(je):t.getTypeOfSymbolAtLocation(je,u);return!Le||t.isLibType(Le)?!1:0{let It=t.getEmitResolver().symbolToDeclarations(je,Le,17408,g,k!==void 0?k-1:void 0,ae),ke=le(),_t=je.valueDeclaration&&Pn(je.valueDeclaration);It.forEach((Se,tt)=>{tt>0&&nt.writeLine(),ke.writeNode(4,Se,_t,nt)})},g);return En(C,Ve),_e=!0,!0}return!1}function Fe(je,ve){let Le;y&&je===n&&(je=y),U==="index"&&(Le=t.getIndexInfosOfIndexSymbol(je));let Ve=[];je.flags&131072&&Le?(je.parent&&(Ve=eq(t,je.parent)),Ve.push(wm(23)),Le.forEach((nt,It)=>{Ve.push(...ZK(t,nt.keyType)),It!==Le.length-1&&(Ve.push(Lp()),Ve.push(wm(52)),Ve.push(Lp()))}),Ve.push(wm(24))):Ve=eq(t,je,ve||a,void 0,7),En(C,Ve),n.flags&16777216&&C.push(wm(58))}function Be(je,ve){Oe(),ve&&(de(ve),je&&!Pt(je.declarations,Le=>Iu(Le)||(bu(Le)||w_(Le))&&!Le.name)&&(C.push(Lp()),Fe(je)))}function de(je){switch(je){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":C.push(hve(je));return;default:C.push(wm(21)),C.push(hve(je)),C.push(wm(22));return}}function ze(je,ve,Le=0){En(C,gve(t,je,c,Le|32,g,k,ae)),ve.length>1&&(C.push(Lp()),C.push(wm(21)),C.push(Yz(40)),C.push(hg((ve.length-1).toString(),7)),C.push(Lp()),C.push(Vy(ve.length===2?"overload":"overloads")),C.push(wm(22))),O=je.getDocumentationComment(t),F=je.getJsDocTags(),ve.length>1&&O.length===0&&F.length===0&&(O=ve[0].getDocumentationComment(t),F=ve[0].getJsDocTags().filter(Ve=>Ve.name!=="deprecated"))}function ut(je,ve){let Le=PC(Ve=>{let nt=t.symbolToTypeParameterDeclarations(je,ve,vxt);le().writeList(53776,nt,Pn(vs(ve)),Ve)});En(C,Le)}}function q1r(t,n,a,c,u,_=x3(u),f,y,g){return Txt(t,n,a,c,u,void 0,_,f,y,g)}function Ext(t){return t.parent?!1:X(t.declarations,n=>{if(n.kind===219)return!0;if(n.kind!==261&&n.kind!==263)return!1;for(let a=n.parent;!tP(a);a=a.parent)if(a.kind===308||a.kind===269)return!1;return!0})}var ki={};d(ki,{ChangeTracker:()=>W1r,LeadingTriviaOption:()=>Dxt,TrailingTriviaOption:()=>Axt,applyChanges:()=>cMe,assignPositionsToNode:()=>xbe,createWriter:()=>Ixt,deleteNode:()=>e2,getAdjustedEndPosition:()=>XF,isThisTypeAnnotatable:()=>V1r,isValidLocationToAddComment:()=>Pxt});function kxt(t){let n=t.__pos;return $.assert(typeof n=="number"),n}function iMe(t,n){$.assert(typeof n=="number"),t.__pos=n}function Cxt(t){let n=t.__end;return $.assert(typeof n=="number"),n}function oMe(t,n){$.assert(typeof n=="number"),t.__end=n}var Dxt=(t=>(t[t.Exclude=0]="Exclude",t[t.IncludeAll=1]="IncludeAll",t[t.JSDoc=2]="JSDoc",t[t.StartLine=3]="StartLine",t))(Dxt||{}),Axt=(t=>(t[t.Exclude=0]="Exclude",t[t.ExcludeWhitespace=1]="ExcludeWhitespace",t[t.Include=2]="Include",t))(Axt||{});function wxt(t,n){return _c(t,n,!1,!0)}function J1r(t,n){let a=n;for(;a0?1:0,O=iC(PU(t,k)+C,t);return O=wxt(t.text,O),iC(PU(t,O),t)}function aMe(t,n,a){let{end:c}=n,{trailingTriviaOption:u}=a;if(u===2){let _=hb(t.text,c);if(_){let f=PU(t,n.end);for(let y of _){if(y.kind===2||PU(t,y.pos)>f)break;if(PU(t,y.end)>f)return _c(t.text,y.end,!0,!0)}}}}function XF(t,n,a){var c;let{end:u}=n,{trailingTriviaOption:_}=a;if(_===0)return u;if(_===1){let g=go(hb(t.text,u),my(t.text,u)),k=(c=g?.[g.length-1])==null?void 0:c.end;return k||u}let f=aMe(t,n,a);if(f)return f;let y=_c(t.text,u,!0);return y!==u&&(_===2||Dd(t.text.charCodeAt(y-1)))?y:u}function vbe(t,n){return!!n&&!!t.parent&&(n.kind===28||n.kind===27&&t.parent.kind===211)}function V1r(t){return bu(t)||i_(t)}var W1r=class fct{constructor(n,a){this.newLineCharacter=n,this.formatContext=a,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(n){return new fct(ZT(n.host,n.formatContext.options),n.formatContext)}static with(n,a){let c=fct.fromContext(n);return a(c),c.getChanges()}pushRaw(n,a){$.assertEqual(n.fileName,a.fileName);for(let c of a.textChanges)this.changes.push({kind:3,sourceFile:n,text:c.newText,range:zoe(c.span)})}deleteRange(n,a){this.changes.push({kind:0,sourceFile:n,range:a})}delete(n,a){this.deletedNodes.push({sourceFile:n,node:a})}deleteNode(n,a,c={leadingTriviaOption:1}){this.deleteRange(n,NQ(n,a,a,c))}deleteNodes(n,a,c={leadingTriviaOption:1},u){for(let _ of a){let f=w3(n,_,c,u),y=XF(n,_,c);this.deleteRange(n,{pos:f,end:y}),u=!!aMe(n,_,c)}}deleteModifier(n,a){this.deleteRange(n,{pos:a.getStart(n),end:_c(n.text,a.end,!0)})}deleteNodeRange(n,a,c,u={leadingTriviaOption:1}){let _=w3(n,a,u),f=XF(n,c,u);this.deleteRange(n,{pos:_,end:f})}deleteNodeRangeExcludingEnd(n,a,c,u={leadingTriviaOption:1}){let _=w3(n,a,u),f=c===void 0?n.text.length:w3(n,c,u);this.deleteRange(n,{pos:_,end:f})}replaceRange(n,a,c,u={}){this.changes.push({kind:1,sourceFile:n,range:a,options:u,node:c})}replaceNode(n,a,c,u=PQ){this.replaceRange(n,NQ(n,a,a,u),c,u)}replaceNodeRange(n,a,c,u,_=PQ){this.replaceRange(n,NQ(n,a,c,_),u,_)}replaceRangeWithNodes(n,a,c,u={}){this.changes.push({kind:2,sourceFile:n,range:a,options:u,nodes:c})}replaceNodeWithNodes(n,a,c,u=PQ){this.replaceRangeWithNodes(n,NQ(n,a,a,u),c,u)}replaceNodeWithText(n,a,c){this.replaceRangeWithText(n,NQ(n,a,a,PQ),c)}replaceNodeRangeWithNodes(n,a,c,u,_=PQ){this.replaceRangeWithNodes(n,NQ(n,a,c,_),u,_)}nodeHasTrailingComment(n,a,c=PQ){return!!aMe(n,a,c)}nextCommaToken(n,a){let c=OP(a,a.parent,n);return c&&c.kind===28?c:void 0}replacePropertyAssignment(n,a,c){let u=this.nextCommaToken(n,a)?"":","+this.newLineCharacter;this.replaceNode(n,a,c,{suffix:u})}insertNodeAt(n,a,c,u={}){this.replaceRange(n,y0(a),c,u)}insertNodesAt(n,a,c,u={}){this.replaceRangeWithNodes(n,y0(a),c,u)}insertNodeAtTopOfFile(n,a,c){this.insertAtTopOfFile(n,a,c)}insertNodesAtTopOfFile(n,a,c){this.insertAtTopOfFile(n,a,c)}insertAtTopOfFile(n,a,c){let u=evr(n),_={prefix:u===0?void 0:this.newLineCharacter,suffix:(Dd(n.text.charCodeAt(u))?"":this.newLineCharacter)+(c?this.newLineCharacter:"")};Zn(a)?this.insertNodesAt(n,u,a,_):this.insertNodeAt(n,u,a,_)}insertNodesAtEndOfFile(n,a,c){this.insertAtEndOfFile(n,a,c)}insertAtEndOfFile(n,a,c){let u=n.end+1,_={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(c?this.newLineCharacter:"")};this.insertNodesAt(n,u,a,_)}insertStatementsInNewFile(n,a,c){this.newFileChanges||(this.newFileChanges=d_()),this.newFileChanges.add(n,{oldFile:c,statements:a})}insertFirstParameter(n,a,c){let u=pi(a);u?this.insertNodeBefore(n,u,c):this.insertNodeAt(n,a.pos,c)}insertNodeBefore(n,a,c,u=!1,_={}){this.insertNodeAt(n,w3(n,a,_),c,this.getOptionsForInsertNodeBefore(a,c,u))}insertNodesBefore(n,a,c,u=!1,_={}){this.insertNodesAt(n,w3(n,a,_),c,this.getOptionsForInsertNodeBefore(a,To(c),u))}insertModifierAt(n,a,c,u={}){this.insertNodeAt(n,a,W.createToken(c),u)}insertModifierBefore(n,a,c){return this.insertModifierAt(n,c.getStart(n),a,{suffix:" "})}insertCommentBeforeLine(n,a,c,u){let _=iC(a,n),f=w7e(n.text,_),y=Pxt(n,f),g=KL(n,y?f:c),k=n.text.slice(_,f),T=`${y?"":this.newLineCharacter}//${u}${this.newLineCharacter}${k}`;this.insertText(n,g.getStart(n),T)}insertJsdocCommentBefore(n,a,c){let u=a.getStart(n);if(a.jsDoc)for(let y of a.jsDoc)this.deleteRange(n,{pos:p1(y.getStart(n),n),end:XF(n,y,{})});let _=Qoe(n.text,u-1),f=n.text.slice(_,u);this.insertNodeAt(n,u,c,{suffix:this.newLineCharacter+f})}createJSDocText(n,a){let c=an(a.jsDoc,_=>Ni(_.comment)?W.createJSDocText(_.comment):_.comment),u=to(a.jsDoc);return u&&v0(u.pos,u.end,n)&&te(c)===0?void 0:W.createNodeArray(tr(c,W.createJSDocText(` +`)))}replaceJSDocComment(n,a,c){this.insertJsdocCommentBefore(n,G1r(a),W.createJSDocComment(this.createJSDocText(n,a),W.createNodeArray(c)))}addJSDocTags(n,a,c){let u=Xr(a.jsDoc,f=>f.tags),_=c.filter(f=>!u.some((y,g)=>{let k=H1r(y,f);return k&&(u[g]=k),!!k}));this.replaceJSDocComment(n,a,[...u,..._])}filterJSDocTags(n,a,c){this.replaceJSDocComment(n,a,yr(Xr(a.jsDoc,u=>u.tags),c))}replaceRangeWithText(n,a,c){this.changes.push({kind:3,sourceFile:n,range:a,text:c})}insertText(n,a,c){this.replaceRangeWithText(n,y0(a),c)}tryInsertTypeAnnotation(n,a,c){let u;if(Rs(a)){if(u=Kl(a,22,n),!u){if(!Iu(a))return!1;u=To(a.parameters)}}else u=(a.kind===261?a.exclamationToken:a.questionToken)??a.name;return this.insertNodeAt(n,u.end,c,{prefix:": "}),!0}tryInsertThisTypeAnnotation(n,a,c){let u=Kl(a,21,n).getStart(n)+1,_=a.parameters.length?", ":"";this.insertNodeAt(n,u,c,{prefix:"this: ",suffix:_})}insertTypeParameters(n,a,c){let u=(Kl(a,21,n)||To(a.parameters)).getStart(n);this.insertNodesAt(n,u,c,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(n,a,c){return fa(n)||J_(n)?{suffix:c?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Oo(n)?{suffix:", "}:wa(n)?wa(a)?{suffix:", "}:{}:Ic(n)&&fp(n.parent)||IS(n)?{suffix:", "}:Xm(n)?{suffix:","+(c?this.newLineCharacter:" ")}:$.failBadSyntaxKind(n)}insertNodeAtConstructorStart(n,a,c){let u=pi(a.body.statements);!u||!a.body.multiLine?this.replaceConstructorBody(n,a,[c,...a.body.statements]):this.insertNodeBefore(n,u,c)}insertNodeAtConstructorStartAfterSuperCall(n,a,c){let u=wt(a.body.statements,_=>af(_)&&U4(_.expression));!u||!a.body.multiLine?this.replaceConstructorBody(n,a,[...a.body.statements,c]):this.insertNodeAfter(n,u,c)}insertNodeAtConstructorEnd(n,a,c){let u=Yr(a.body.statements);!u||!a.body.multiLine?this.replaceConstructorBody(n,a,[...a.body.statements,c]):this.insertNodeAfter(n,u,c)}replaceConstructorBody(n,a,c){this.replaceNode(n,a.body,W.createBlock(c,!0))}insertNodeAtEndOfScope(n,a,c){let u=w3(n,a.getLastToken(),{});this.insertNodeAt(n,u,c,{prefix:Dd(n.text.charCodeAt(a.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(n,a,c){this.insertNodeAtStartWorker(n,a,c)}insertNodeAtObjectStart(n,a,c){this.insertNodeAtStartWorker(n,a,c)}insertNodeAtStartWorker(n,a,c){let u=this.guessIndentationFromExistingMembers(n,a)??this.computeIndentationForNewMember(n,a);this.insertNodeAt(n,Sbe(a).pos,c,this.getInsertNodeAtStartInsertOptions(n,a,u))}guessIndentationFromExistingMembers(n,a){let c,u=a;for(let _ of Sbe(a)){if(Xre(u,_,n))return;let f=_.getStart(n),y=rd.SmartIndenter.findFirstNonWhitespaceColumn(p1(f,n),f,n,this.formatContext.options);if(c===void 0)c=y;else if(y!==c)return;u=_}return c}computeIndentationForNewMember(n,a){let c=a.getStart(n);return rd.SmartIndenter.findFirstNonWhitespaceColumn(p1(c,n),c,n,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(n,a,c){let _=Sbe(a).length===0,f=!this.classesWithNodesInsertedAtStart.has(hl(a));f&&this.classesWithNodesInsertedAtStart.set(hl(a),{node:a,sourceFile:n});let y=Lc(a)&&(!h0(n)||!_),g=Lc(a)&&h0(n)&&_&&!f;return{indentation:c,prefix:(g?",":"")+this.newLineCharacter,suffix:y?",":Af(a)&&_?";":""}}insertNodeAfterComma(n,a,c){let u=this.insertNodeAfterWorker(n,this.nextCommaToken(n,a)||a,c);this.insertNodeAt(n,u,c,this.getInsertNodeAfterOptions(n,a))}insertNodeAfter(n,a,c){let u=this.insertNodeAfterWorker(n,a,c);this.insertNodeAt(n,u,c,this.getInsertNodeAfterOptions(n,a))}insertNodeAtEndOfList(n,a,c){this.insertNodeAt(n,a.end,c,{prefix:", "})}insertNodesAfter(n,a,c){let u=this.insertNodeAfterWorker(n,a,To(c));this.insertNodesAt(n,u,c,this.getInsertNodeAfterOptions(n,a))}insertNodeAfterWorker(n,a,c){return tvr(a,c)&&n.text.charCodeAt(a.end-1)!==59&&this.replaceRange(n,y0(a.end),W.createToken(27)),XF(n,a,{})}getInsertNodeAfterOptions(n,a){let c=this.getInsertNodeAfterOptionsWorker(a);return{...c,prefix:a.end===n.end&&fa(a)?c.prefix?` +${c.prefix}`:` +`:c.prefix}}getInsertNodeAfterOptionsWorker(n){switch(n.kind){case 264:case 268:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 261:case 11:case 80:return{prefix:", "};case 304:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 170:return{};default:return $.assert(fa(n)||qte(n)),{suffix:this.newLineCharacter}}}insertName(n,a,c){if($.assert(!a.name),a.kind===220){let u=Kl(a,39,n),_=Kl(a,21,n);_?(this.insertNodesAt(n,_.getStart(n),[W.createToken(100),W.createIdentifier(c)],{joiner:" "}),e2(this,n,u)):(this.insertText(n,To(a.parameters).getStart(n),`function ${c}(`),this.replaceRange(n,u,W.createToken(22))),a.body.kind!==242&&(this.insertNodesAt(n,a.body.getStart(n),[W.createToken(19),W.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(n,a.body.end,[W.createToken(27),W.createToken(20)],{joiner:" "}))}else{let u=Kl(a,a.kind===219?100:86,n).end;this.insertNodeAt(n,u,W.createIdentifier(c),{prefix:" "})}}insertExportModifier(n,a){this.insertText(n,a.getStart(n),"export ")}insertImportSpecifierAtIndex(n,a,c,u){let _=c.elements[u-1];_?this.insertNodeInListAfter(n,_,a):this.insertNodeBefore(n,c.elements[0],a,!v0(c.elements[0].getStart(),c.parent.parent.getStart(),n))}insertNodeInListAfter(n,a,c,u=rd.SmartIndenter.getContainingList(a,n)){if(!u){$.fail("node is not a list element");return}let _=BR(u,a);if(_<0)return;let f=a.getEnd();if(_!==u.length-1){let y=la(n,a.end);if(y&&vbe(a,y)){let g=u[_+1],k=wxt(n.text,g.getFullStart()),T=`${Zs(y.kind)}${n.text.substring(y.end,k)}`;this.insertNodesAt(n,k,[c],{suffix:T})}}else{let y=a.getStart(n),g=p1(y,n),k,T=!1;if(u.length===1)k=28;else{let C=vd(a.pos,n);k=vbe(a,C)?C.kind:28,T=p1(u[_-1].getStart(n),n)!==g}if((J1r(n.text,a.end)||!v0(u.pos,u.end,n))&&(T=!0),T){this.replaceRange(n,y0(f),W.createToken(k));let C=rd.SmartIndenter.findFirstNonWhitespaceColumn(g,y,n,this.formatContext.options),O=_c(n.text,f,!0,!1);for(;O!==f&&Dd(n.text.charCodeAt(O-1));)O--;this.replaceRange(n,y0(O),c,{indentation:C,prefix:this.newLineCharacter})}else this.replaceRange(n,y0(f),c,{prefix:`${Zs(k)} `})}}parenthesizeExpression(n,a){this.replaceRange(n,Yhe(a),W.createParenthesizedExpression(a))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:n,sourceFile:a})=>{let[c,u]=Q1r(n,a);if(c!==void 0&&u!==void 0){let _=Sbe(n).length===0,f=v0(c,u,a);_&&f&&c!==u-1&&this.deleteRange(a,y0(c,u-1)),f&&this.insertText(a,u-1,this.newLineCharacter)}})}finishDeleteDeclarations(){let n=new Set;for(let{sourceFile:a,node:c}of this.deletedNodes)this.deletedNodes.some(u=>u.sourceFile===a&&n7e(u.node,c))||(Zn(c)?this.deleteRange(a,ege(a,c)):lMe.deleteDeclaration(this,n,a,c));n.forEach(a=>{let c=a.getSourceFile(),u=rd.SmartIndenter.getContainingList(a,c);if(a!==Sn(u))return;let _=Hi(u,f=>!n.has(f),u.length-2);_!==-1&&this.deleteRange(c,{pos:u[_].end,end:sMe(c,u[_+1])})})}getChanges(n){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let a=bbe.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,n);return this.newFileChanges&&this.newFileChanges.forEach((c,u)=>{a.push(bbe.newFileChanges(u,c,this.newLineCharacter,this.formatContext))}),a}createNewFile(n,a,c){this.insertStatementsInNewFile(a,c,n)}};function G1r(t){if(t.kind!==220)return t;let n=t.parent.kind===173?t.parent:t.parent.parent;return n.jsDoc=t.jsDoc,n}function H1r(t,n){if(t.kind===n.kind)switch(t.kind){case 342:{let a=t,c=n;return ct(a.name)&&ct(c.name)&&a.name.escapedText===c.name.escapedText?W.createJSDocParameterTag(void 0,c.name,!1,c.typeExpression,c.isNameFirst,a.comment):void 0}case 343:return W.createJSDocReturnTag(void 0,n.typeExpression,t.comment);case 345:return W.createJSDocTypeTag(void 0,n.typeExpression,t.comment)}}function sMe(t,n){return _c(t.text,w3(t,n,{leadingTriviaOption:1}),!1,!0)}function K1r(t,n,a,c){let u=sMe(t,c);if(a===void 0||v0(XF(t,n,{}),u,t))return u;let _=vd(c.getStart(t),t);if(vbe(n,_)){let f=vd(n.getStart(t),t);if(vbe(a,f)){let y=_c(t.text,_.getEnd(),!0,!0);if(v0(f.getStart(t),_.getStart(t),t))return Dd(t.text.charCodeAt(y-1))?y-1:y;if(Dd(t.text.charCodeAt(y)))return y}}return u}function Q1r(t,n){let a=Kl(t,19,n),c=Kl(t,20,n);return[a?.end,c?.end]}function Sbe(t){return Lc(t)?t.properties:t.members}var bbe;(t=>{function n(y,g,k,T){return Wn(Pg(y,C=>C.sourceFile.path),C=>{let O=C[0].sourceFile,F=pu(C,(U,J)=>U.range.pos-J.range.pos||U.range.end-J.range.end);for(let U=0;U`${JSON.stringify(F[U].range)} and ${JSON.stringify(F[U+1].range)}`);let M=Wn(F,U=>{let J=CE(U.range),G=U.kind===1?Pn(Ku(U.node))??U.sourceFile:U.kind===2?Pn(Ku(U.nodes[0]))??U.sourceFile:U.sourceFile,Z=u(U,G,O,g,k,T);if(!(J.length===Z.length&&j7e(G.text,Z,J.start)))return WK(J,Z)});return M.length>0?{fileName:O.fileName,textChanges:M}:void 0})}t.getTextChangesFromChanges=n;function a(y,g,k,T){let C=c(mne(y),g,k,T);return{fileName:y,textChanges:[WK(Jp(0,0),C)],isNewFile:!0}}t.newFileChanges=a;function c(y,g,k,T){let C=an(g,M=>M.statements.map(U=>U===4?"":f(U,M.oldFile,k).text)).join(k),O=DF("any file name",C,{languageVersion:99,jsDocParsingMode:1},!0,y),F=rd.formatDocument(O,T);return cMe(C,F)+k}t.newFileChangesWorker=c;function u(y,g,k,T,C,O){var F;if(y.kind===0)return"";if(y.kind===3)return y.text;let{options:M={},range:{pos:U}}=y,J=Q=>_(Q,g,k,U,M,T,C,O),G=y.kind===2?y.nodes.map(Q=>Lk(J(Q),T)).join(((F=y.options)==null?void 0:F.joiner)||T):J(y.node),Z=M.indentation!==void 0||p1(U,g)===U?G:G.replace(/^\s+/,"");return(M.prefix||"")+Z+(!M.suffix||au(Z,M.suffix)?"":M.suffix)}function _(y,g,k,T,{indentation:C,prefix:O,delta:F},M,U,J){let{node:G,text:Z}=f(y,g,M);J&&J(G,Z);let Q=cae(U,g),re=C!==void 0?C:rd.SmartIndenter.getIndentation(T,k,Q,O===M||p1(T,g)===T);F===void 0&&(F=rd.SmartIndenter.shouldIndentChildNode(Q,y)&&Q.indentSize||0);let ae={text:Z,getLineAndCharacterOfPosition(me){return qs(this,me)}},_e=rd.formatNodeGivenIndentation(G,ae,g.languageVariant,re,F,{...U,options:Q});return cMe(Z,_e)}function f(y,g,k){let T=Ixt(k),C=iQ(k);return DC({newLine:C,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},T).writeNode(4,y,g,T),{text:T.getText(),node:xbe(y)}}t.getNonformattedText=f})(bbe||(bbe={}));function cMe(t,n){for(let a=n.length-1;a>=0;a--){let{span:c,newText:u}=n[a];t=`${t.substring(0,c.start)}${u}${t.substring(Xn(c))}`}return t}function Z1r(t){return _c(t,0)===t.length}var X1r={...xK,factory:IH(xK.factory.flags|1,xK.factory.baseFactory)};function xbe(t){let n=Dn(t,xbe,X1r,Y1r,xbe),a=fu(n)?n:Object.create(n);return xv(a,kxt(t),Cxt(t)),a}function Y1r(t,n,a,c,u){let _=Bn(t,n,a,c,u);if(!_)return _;$.assert(t);let f=_===t?W.createNodeArray(_.slice(0)):_;return xv(f,kxt(t),Cxt(t)),f}function Ixt(t){let n=0,a=nH(t),c=de=>{de&&iMe(de,n)},u=de=>{de&&oMe(de,n)},_=de=>{de&&iMe(de,n)},f=de=>{de&&oMe(de,n)},y=de=>{de&&iMe(de,n)},g=de=>{de&&oMe(de,n)};function k(de,ze){if(ze||!Z1r(de)){n=a.getTextPos();let ut=0;for(;p0(de.charCodeAt(de.length-ut-1));)ut++;n-=ut}}function T(de){a.write(de),k(de,!1)}function C(de){a.writeComment(de)}function O(de){a.writeKeyword(de),k(de,!1)}function F(de){a.writeOperator(de),k(de,!1)}function M(de){a.writePunctuation(de),k(de,!1)}function U(de){a.writeTrailingSemicolon(de),k(de,!1)}function J(de){a.writeParameter(de),k(de,!1)}function G(de){a.writeProperty(de),k(de,!1)}function Z(de){a.writeSpace(de),k(de,!1)}function Q(de){a.writeStringLiteral(de),k(de,!1)}function re(de,ze){a.writeSymbol(de,ze),k(de,!1)}function ae(de){a.writeLine(de)}function _e(){a.increaseIndent()}function me(){a.decreaseIndent()}function le(){return a.getText()}function Oe(de){a.rawWrite(de),k(de,!1)}function be(de){a.writeLiteral(de),k(de,!0)}function ue(){return a.getTextPos()}function De(){return a.getLine()}function Ce(){return a.getColumn()}function Ae(){return a.getIndent()}function Fe(){return a.isAtStartOfLine()}function Be(){a.clear(),n=0}return{onBeforeEmitNode:c,onAfterEmitNode:u,onBeforeEmitNodeArray:_,onAfterEmitNodeArray:f,onBeforeEmitToken:y,onAfterEmitToken:g,write:T,writeComment:C,writeKeyword:O,writeOperator:F,writePunctuation:M,writeTrailingSemicolon:U,writeParameter:J,writeProperty:G,writeSpace:Z,writeStringLiteral:Q,writeSymbol:re,writeLine:ae,increaseIndent:_e,decreaseIndent:me,getText:le,rawWrite:Oe,writeLiteral:be,getTextPos:ue,getLine:De,getColumn:Ce,getIndent:Ae,isAtStartOfLine:Fe,hasTrailingComment:()=>a.hasTrailingComment(),hasTrailingWhitespace:()=>a.hasTrailingWhitespace(),clear:Be}}function evr(t){let n;for(let k of t.statements)if(yS(k))n=k;else break;let a=0,c=t.text;if(n)return a=n.end,g(),a;let u=VI(c);u!==void 0&&(a=u.length,g());let _=my(c,a);if(!_)return a;let f,y;for(let k of _){if(k.kind===3){if(ore(c,k.pos)){f={range:k,pinnedOrTripleSlash:!0};continue}}else if(bme(c,k.pos,k.end)){f={range:k,pinnedOrTripleSlash:!0};continue}if(f){if(f.pinnedOrTripleSlash)break;let T=t.getLineAndCharacterOfPosition(k.pos).line,C=t.getLineAndCharacterOfPosition(f.range.end).line;if(T>=C+2)break}if(t.statements.length){y===void 0&&(y=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line);let T=t.getLineAndCharacterOfPosition(k.end).line;if(y{function n(_,f,y,g){switch(g.kind){case 170:{let F=g.parent;Iu(F)&&F.parameters.length===1&&!Kl(F,21,y)?_.replaceNodeWithText(y,g,"()"):OQ(_,f,y,g);break}case 273:case 272:let k=y.imports.length&&g===To(y.imports).parent||g===wt(y.statements,$O);e2(_,y,g,{leadingTriviaOption:k?0:hy(g)?2:3});break;case 209:let T=g.parent;T.kind===208&&g!==Sn(T.elements)?e2(_,y,g):OQ(_,f,y,g);break;case 261:u(_,f,y,g);break;case 169:OQ(_,f,y,g);break;case 277:let O=g.parent;O.elements.length===1?c(_,y,O):OQ(_,f,y,g);break;case 275:c(_,y,g);break;case 27:e2(_,y,g,{trailingTriviaOption:0});break;case 100:e2(_,y,g,{leadingTriviaOption:0});break;case 264:case 263:e2(_,y,g,{leadingTriviaOption:hy(g)?2:3});break;default:g.parent?H1(g.parent)&&g.parent.name===g?a(_,y,g.parent):Js(g.parent)&&un(g.parent.arguments,g)?OQ(_,f,y,g):e2(_,y,g):e2(_,y,g)}}t.deleteDeclaration=n;function a(_,f,y){if(!y.namedBindings)e2(_,f,y.parent);else{let g=y.name.getStart(f),k=la(f,y.name.end);if(k&&k.kind===28){let T=_c(f.text,k.end,!1,!0);_.deleteRange(f,{pos:g,end:T})}else e2(_,f,y.name)}}function c(_,f,y){if(y.parent.name){let g=$.checkDefined(la(f,y.pos-1));_.deleteRange(f,{pos:g.getStart(f),end:y.end})}else{let g=mA(y,273);e2(_,f,g)}}function u(_,f,y,g){let{parent:k}=g;if(k.kind===300){_.deleteNodeRange(y,Kl(k,21,y),Kl(k,22,y));return}if(k.declarations.length!==1){OQ(_,f,y,g);return}let T=k.parent;switch(T.kind){case 251:case 250:_.replaceNode(y,g,W.createObjectLiteralExpression());break;case 249:e2(_,y,k);break;case 244:e2(_,y,T,{leadingTriviaOption:hy(T)?2:3});break;default:$.assertNever(T)}}})(lMe||(lMe={}));function e2(t,n,a,c={leadingTriviaOption:1}){let u=w3(n,a,c),_=XF(n,a,c);t.deleteRange(n,{pos:u,end:_})}function OQ(t,n,a,c){let u=$.checkDefined(rd.SmartIndenter.getContainingList(c,a)),_=BR(u,c);if($.assert(_!==-1),u.length===1){e2(t,a,c);return}$.assert(!n.has(c),"Deleting a node twice"),n.add(c),t.deleteRange(a,{pos:sMe(a,c),end:_===u.length-1?XF(a,c,{}):K1r(a,c,u[_-1],u[_+1])})}var rd={};d(rd,{FormattingContext:()=>Oxt,FormattingRequestKind:()=>Nxt,RuleAction:()=>Fxt,RuleFlags:()=>Rxt,SmartIndenter:()=>BS,anyContext:()=>Tbe,createTextRangeWithKind:()=>Dbe,formatDocument:()=>Wvr,formatNodeGivenIndentation:()=>Yvr,formatOnClosingCurly:()=>Vvr,formatOnEnter:()=>zvr,formatOnOpeningCurly:()=>Jvr,formatOnSemicolon:()=>qvr,formatSelection:()=>Gvr,getAllRules:()=>Lxt,getFormatContext:()=>Fvr,getFormattingScanner:()=>uMe,getIndentationString:()=>EMe,getRangeOfEnclosingComment:()=>sTt});var Nxt=(t=>(t[t.FormatDocument=0]="FormatDocument",t[t.FormatSelection=1]="FormatSelection",t[t.FormatOnEnter=2]="FormatOnEnter",t[t.FormatOnSemicolon=3]="FormatOnSemicolon",t[t.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",t[t.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",t))(Nxt||{}),Oxt=class{constructor(t,n,a){this.sourceFile=t,this.formattingRequestKind=n,this.options=a}updateContext(t,n,a,c,u){this.currentTokenSpan=$.checkDefined(t),this.currentTokenParent=$.checkDefined(n),this.nextTokenSpan=$.checkDefined(a),this.nextTokenParent=$.checkDefined(c),this.contextNode=$.checkDefined(u),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){let t=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,n=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=t===n}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(t){let n=this.sourceFile.getLineAndCharacterOfPosition(t.getStart(this.sourceFile)).line,a=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line;return n===a}BlockIsOnOneLine(t){let n=Kl(t,19,this.sourceFile),a=Kl(t,20,this.sourceFile);if(n&&a){let c=this.sourceFile.getLineAndCharacterOfPosition(n.getEnd()).line,u=this.sourceFile.getLineAndCharacterOfPosition(a.getStart(this.sourceFile)).line;return c===u}return!1}},rvr=B1(99,!1,0),nvr=B1(99,!1,1);function uMe(t,n,a,c,u){let _=n===1?nvr:rvr;_.setText(t),_.resetTokenState(a);let f=!0,y,g,k,T,C,O=u({advance:F,readTokenInfo:ae,readEOFTokenRange:me,isOnToken:le,isOnEOF:Oe,getCurrentLeadingTrivia:()=>y,lastTrailingTriviaWasNewLine:()=>f,skipToEndOf:ue,skipToStartOf:De,getTokenFullStart:()=>C?.token.pos??_.getTokenStart(),getStartPos:()=>C?.token.pos??_.getTokenStart()});return C=void 0,_.setText(void 0),O;function F(){C=void 0,_.getTokenFullStart()!==a?f=!!g&&Sn(g).kind===4:_.scan(),y=void 0,g=void 0;let Ae=_.getTokenFullStart();for(;Ae(t[t.None=0]="None",t[t.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",t[t.StopProcessingTokenActions=2]="StopProcessingTokenActions",t[t.InsertSpace=4]="InsertSpace",t[t.InsertNewLine=8]="InsertNewLine",t[t.DeleteSpace=16]="DeleteSpace",t[t.DeleteToken=32]="DeleteToken",t[t.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",t[t.StopAction=3]="StopAction",t[t.ModifySpaceAction=28]="ModifySpaceAction",t[t.ModifyTokenAction=96]="ModifyTokenAction",t))(Fxt||{}),Rxt=(t=>(t[t.None=0]="None",t[t.CanDeleteNewLines=1]="CanDeleteNewLines",t))(Rxt||{});function Lxt(){let t=[];for(let _e=0;_e<=166;_e++)_e!==1&&t.push(_e);function n(..._e){return{tokens:t.filter(me=>!_e.some(le=>le===me)),isSpecific:!1}}let a={tokens:t,isSpecific:!1},c=gq([...t,3]),u=gq([...t,1]),_=jxt(83,166),f=jxt(30,79),y=[103,104,165,130,142,152],g=[46,47,55,54],k=[9,10,80,21,23,19,110,105],T=[80,21,110,105],C=[80,22,24,105],O=[80,21,110,105],F=[80,22,24,105],M=[2,3],U=[80,...rve],J=c,G=gq([80,32,3,86,95,102]),Z=gq([22,3,92,113,98,93,85]),Q=[yo("IgnoreBeforeComment",a,M,Tbe,1),yo("IgnoreAfterLineComment",2,a,Tbe,1),yo("NotSpaceBeforeColon",a,59,[Pa,Xae,Uxt],16),yo("SpaceAfterColon",59,a,[Pa,Xae,Svr],4),yo("NoSpaceBeforeQuestionMark",a,58,[Pa,Xae,Uxt],16),yo("SpaceAfterQuestionMarkInConditionalOperator",58,a,[Pa,svr],4),yo("NoSpaceAfterQuestionMark",58,a,[Pa,avr],16),yo("NoSpaceBeforeDot",a,[25,29],[Pa,Ovr],16),yo("NoSpaceAfterDot",[25,29],a,[Pa],16),yo("NoSpaceBetweenImportParenInImportType",102,21,[Pa,yvr],16),yo("NoSpaceAfterUnaryPrefixOperator",g,k,[Pa,Xae],16),yo("NoSpaceAfterUnaryPreincrementOperator",46,T,[Pa],16),yo("NoSpaceAfterUnaryPredecrementOperator",47,O,[Pa],16),yo("NoSpaceBeforeUnaryPostincrementOperator",C,46,[Pa,nTt],16),yo("NoSpaceBeforeUnaryPostdecrementOperator",F,47,[Pa,nTt],16),yo("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Pa,NC],4),yo("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Pa,NC],4),yo("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Pa,NC],4),yo("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Pa,NC],4),yo("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Pa,NC],4),yo("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Pa,NC],4),yo("NoSpaceAfterCloseBrace",20,[28,27],[Pa],16),yo("NewLineBeforeCloseBraceInBlockContext",c,20,[qxt],8),yo("SpaceAfterCloseBrace",20,n(22),[Pa,uvr],4),yo("SpaceBetweenCloseBraceAndElse",20,93,[Pa],4),yo("SpaceBetweenCloseBraceAndWhile",20,117,[Pa],4),yo("NoSpaceBetweenEmptyBraceBrackets",19,20,[Pa,Kxt],16),yo("SpaceAfterConditionalClosingParen",22,23,[Yae],4),yo("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Wxt],16),yo("SpaceAfterStarInGeneratorDeclaration",42,80,[Wxt],4),yo("SpaceAfterFunctionInFuncDecl",100,a,[I3],4),yo("NewLineAfterOpenBraceInBlockContext",19,a,[qxt],8),yo("SpaceAfterGetSetInMember",[139,153],80,[I3],4),yo("NoSpaceBetweenYieldKeywordAndStar",127,42,[Pa,rTt],16),yo("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],a,[Pa,rTt],4),yo("NoSpaceBetweenReturnAndSemicolon",107,27,[Pa],16),yo("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],a,[Pa],4),yo("SpaceAfterLetConstInVariableDeclaration",[121,87],a,[Pa,Tvr],4),yo("NoSpaceBeforeOpenParenInFuncCall",a,21,[Pa,dvr,fvr],16),yo("SpaceBeforeBinaryKeywordOperator",a,y,[Pa,NC],4),yo("SpaceAfterBinaryKeywordOperator",y,a,[Pa,NC],4),yo("SpaceAfterVoidOperator",116,a,[Pa,Avr],4),yo("SpaceBetweenAsyncAndOpenParen",134,21,[gvr,Pa],4),yo("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Pa],4),yo("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Pa],16),yo("SpaceBeforeJsxAttribute",a,80,[vvr,Pa],4),yo("SpaceBeforeSlashInJsxOpeningElement",a,44,[Yxt,Pa],4),yo("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[Yxt,Pa],16),yo("NoSpaceBeforeEqualInJsxAttribute",a,64,[Zxt,Pa],16),yo("NoSpaceAfterEqualInJsxAttribute",64,a,[Zxt,Pa],16),yo("NoSpaceBeforeJsxNamespaceColon",80,59,[Xxt],16),yo("NoSpaceAfterJsxNamespaceColon",59,80,[Xxt],16),yo("NoSpaceAfterModuleImport",[144,149],21,[Pa],16),yo("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],a,[Pa],4),yo("SpaceBeforeCertainTypeScriptKeywords",a,[96,119,161],[Pa],4),yo("SpaceAfterModuleName",11,19,[Evr],4),yo("SpaceBeforeArrow",a,39,[Pa],4),yo("SpaceAfterArrow",39,a,[Pa],4),yo("NoSpaceAfterEllipsis",26,80,[Pa],16),yo("NoSpaceAfterOptionalParameters",58,[22,28],[Pa,Xae],16),yo("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Pa,kvr],16),yo("NoSpaceBeforeOpenAngularBracket",U,30,[Pa,ese],16),yo("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Pa,ese],16),yo("NoSpaceAfterOpenAngularBracket",30,a,[Pa,ese],16),yo("NoSpaceBeforeCloseAngularBracket",a,32,[Pa,ese],16),yo("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Pa,ese,lvr,Dvr],16),yo("SpaceBeforeAt",[22,80],60,[Pa],4),yo("NoSpaceAfterAt",60,a,[Pa],16),yo("SpaceAfterDecorator",a,[128,80,95,90,86,126,125,123,124,139,153,23,42],[xvr],4),yo("NoSpaceBeforeNonNullAssertionOperator",a,54,[Pa,wvr],16),yo("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Pa,Cvr],16),yo("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Pa],4)],re=[yo("SpaceAfterConstructor",137,21,[Wy("insertSpaceAfterConstructor"),Pa],4),yo("NoSpaceAfterConstructor",137,21,[jS("insertSpaceAfterConstructor"),Pa],16),yo("SpaceAfterComma",28,a,[Wy("insertSpaceAfterCommaDelimiter"),Pa,gMe,mvr,hvr],4),yo("NoSpaceAfterComma",28,a,[jS("insertSpaceAfterCommaDelimiter"),Pa,gMe],16),yo("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Wy("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),I3],4),yo("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[jS("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),I3],16),yo("SpaceAfterKeywordInControl",_,21,[Wy("insertSpaceAfterKeywordsInControlFlowStatements"),Yae],4),yo("NoSpaceAfterKeywordInControl",_,21,[jS("insertSpaceAfterKeywordsInControlFlowStatements"),Yae],16),yo("SpaceAfterOpenParen",21,a,[Wy("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pa],4),yo("SpaceBeforeCloseParen",a,22,[Wy("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pa],4),yo("SpaceBetweenOpenParens",21,21,[Wy("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pa],4),yo("NoSpaceBetweenParens",21,22,[Pa],16),yo("NoSpaceAfterOpenParen",21,a,[jS("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pa],16),yo("NoSpaceBeforeCloseParen",a,22,[jS("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pa],16),yo("SpaceAfterOpenBracket",23,a,[Wy("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Pa],4),yo("SpaceBeforeCloseBracket",a,24,[Wy("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Pa],4),yo("NoSpaceBetweenBrackets",23,24,[Pa],16),yo("NoSpaceAfterOpenBracket",23,a,[jS("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Pa],16),yo("NoSpaceBeforeCloseBracket",a,24,[jS("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Pa],16),yo("SpaceAfterOpenBrace",19,a,[$xt("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),zxt],4),yo("SpaceBeforeCloseBrace",a,20,[$xt("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),zxt],4),yo("NoSpaceBetweenEmptyBraceBrackets",19,20,[Pa,Kxt],16),yo("NoSpaceAfterOpenBrace",19,a,[pMe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Pa],16),yo("NoSpaceBeforeCloseBrace",a,20,[pMe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Pa],16),yo("SpaceBetweenEmptyBraceBrackets",19,20,[Wy("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),yo("NoSpaceBetweenEmptyBraceBrackets",19,20,[pMe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Pa],16),yo("SpaceAfterTemplateHeadAndMiddle",[16,17],a,[Wy("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Qxt],4,1),yo("SpaceBeforeTemplateMiddleAndTail",a,[17,18],[Wy("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Pa],4),yo("NoSpaceAfterTemplateHeadAndMiddle",[16,17],a,[jS("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Qxt],16,1),yo("NoSpaceBeforeTemplateMiddleAndTail",a,[17,18],[jS("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Pa],16),yo("SpaceAfterOpenBraceInJsxExpression",19,a,[Wy("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Pa,kbe],4),yo("SpaceBeforeCloseBraceInJsxExpression",a,20,[Wy("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Pa,kbe],4),yo("NoSpaceAfterOpenBraceInJsxExpression",19,a,[jS("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Pa,kbe],16),yo("NoSpaceBeforeCloseBraceInJsxExpression",a,20,[jS("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Pa,kbe],16),yo("SpaceAfterSemicolonInFor",27,a,[Wy("insertSpaceAfterSemicolonInForStatements"),Pa,dMe],4),yo("NoSpaceAfterSemicolonInFor",27,a,[jS("insertSpaceAfterSemicolonInForStatements"),Pa,dMe],16),yo("SpaceBeforeBinaryOperator",a,f,[Wy("insertSpaceBeforeAndAfterBinaryOperators"),Pa,NC],4),yo("SpaceAfterBinaryOperator",f,a,[Wy("insertSpaceBeforeAndAfterBinaryOperators"),Pa,NC],4),yo("NoSpaceBeforeBinaryOperator",a,f,[jS("insertSpaceBeforeAndAfterBinaryOperators"),Pa,NC],16),yo("NoSpaceAfterBinaryOperator",f,a,[jS("insertSpaceBeforeAndAfterBinaryOperators"),Pa,NC],16),yo("SpaceBeforeOpenParenInFuncDecl",a,21,[Wy("insertSpaceBeforeFunctionParenthesis"),Pa,I3],4),yo("NoSpaceBeforeOpenParenInFuncDecl",a,21,[jS("insertSpaceBeforeFunctionParenthesis"),Pa,I3],16),yo("NewLineBeforeOpenBraceInControl",Z,19,[Wy("placeOpenBraceOnNewLineForControlBlocks"),Yae,hMe],8,1),yo("NewLineBeforeOpenBraceInFunction",J,19,[Wy("placeOpenBraceOnNewLineForFunctions"),I3,hMe],8,1),yo("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",G,19,[Wy("placeOpenBraceOnNewLineForFunctions"),Gxt,hMe],8,1),yo("SpaceAfterTypeAssertion",32,a,[Wy("insertSpaceAfterTypeAssertion"),Pa,vMe],4),yo("NoSpaceAfterTypeAssertion",32,a,[jS("insertSpaceAfterTypeAssertion"),Pa,vMe],16),yo("SpaceBeforeTypeAnnotation",a,[58,59],[Wy("insertSpaceBeforeTypeAnnotation"),Pa,fMe],4),yo("NoSpaceBeforeTypeAnnotation",a,[58,59],[jS("insertSpaceBeforeTypeAnnotation"),Pa,fMe],16),yo("NoOptionalSemicolon",27,u,[Bxt("semicolons","remove"),Pvr],32),yo("OptionalSemicolon",a,u,[Bxt("semicolons","insert"),Nvr],64)],ae=[yo("NoSpaceBeforeSemicolon",a,27,[Pa],16),yo("SpaceBeforeOpenBraceInControl",Z,19,[_Me("placeOpenBraceOnNewLineForControlBlocks"),Yae,yMe,mMe],4,1),yo("SpaceBeforeOpenBraceInFunction",J,19,[_Me("placeOpenBraceOnNewLineForFunctions"),I3,Ebe,yMe,mMe],4,1),yo("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",G,19,[_Me("placeOpenBraceOnNewLineForFunctions"),Gxt,yMe,mMe],4,1),yo("NoSpaceBeforeComma",a,28,[Pa],16),yo("NoSpaceBeforeOpenBracket",n(134,84),23,[Pa],16),yo("NoSpaceAfterCloseBracket",24,a,[Pa,bvr],16),yo("SpaceAfterSemicolon",27,a,[Pa],4),yo("SpaceBetweenForAndAwaitKeyword",99,135,[Pa],4),yo("SpaceBetweenDotDotDotAndTypeName",26,U,[Pa],16),yo("SpaceBetweenStatements",[22,92,93,84],a,[Pa,gMe,ivr],4),yo("SpaceAfterTryCatchFinally",[113,85,98],19,[Pa],4)];return[...Q,...re,...ae]}function yo(t,n,a,c,u,_=0){return{leftTokenRange:Mxt(n),rightTokenRange:Mxt(a),rule:{debugName:t,context:c,action:u,flags:_}}}function gq(t){return{tokens:t,isSpecific:!0}}function Mxt(t){return typeof t=="number"?gq([t]):Zn(t)?gq(t):t}function jxt(t,n,a=[]){let c=[];for(let u=t;u<=n;u++)un(a,u)||c.push(u);return gq(c)}function Bxt(t,n){return a=>a.options&&a.options[t]===n}function Wy(t){return n=>n.options&&Ho(n.options,t)&&!!n.options[t]}function pMe(t){return n=>n.options&&Ho(n.options,t)&&!n.options[t]}function jS(t){return n=>!n.options||!Ho(n.options,t)||!n.options[t]}function _Me(t){return n=>!n.options||!Ho(n.options,t)||!n.options[t]||n.TokensAreOnSameLine()}function $xt(t){return n=>!n.options||!Ho(n.options,t)||!!n.options[t]}function dMe(t){return t.contextNode.kind===249}function ivr(t){return!dMe(t)}function NC(t){switch(t.contextNode.kind){case 227:return t.contextNode.operatorToken.kind!==28;case 228:case 195:case 235:case 282:case 277:case 183:case 193:case 194:case 239:return!0;case 209:case 266:case 272:case 278:case 261:case 170:case 307:case 173:case 172:return t.currentTokenSpan.kind===64||t.nextTokenSpan.kind===64;case 250:case 169:return t.currentTokenSpan.kind===103||t.nextTokenSpan.kind===103||t.currentTokenSpan.kind===64||t.nextTokenSpan.kind===64;case 251:return t.currentTokenSpan.kind===165||t.nextTokenSpan.kind===165}return!1}function Xae(t){return!NC(t)}function Uxt(t){return!fMe(t)}function fMe(t){let n=t.contextNode.kind;return n===173||n===172||n===170||n===261||NO(n)}function ovr(t){return ps(t.contextNode)&&t.contextNode.questionToken}function avr(t){return!ovr(t)}function svr(t){return t.contextNode.kind===228||t.contextNode.kind===195}function mMe(t){return t.TokensAreOnSameLine()||Ebe(t)}function zxt(t){return t.contextNode.kind===207||t.contextNode.kind===201||cvr(t)}function hMe(t){return Ebe(t)&&!(t.NextNodeAllOnSameLine()||t.NextNodeBlockIsOnOneLine())}function qxt(t){return Jxt(t)&&!(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function cvr(t){return Jxt(t)&&(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function Jxt(t){return Vxt(t.contextNode)}function Ebe(t){return Vxt(t.nextTokenParent)}function Vxt(t){if(Hxt(t))return!0;switch(t.kind){case 242:case 270:case 211:case 269:return!0}return!1}function I3(t){switch(t.contextNode.kind){case 263:case 175:case 174:case 178:case 179:case 180:case 219:case 177:case 220:case 265:return!0}return!1}function lvr(t){return!I3(t)}function Wxt(t){return t.contextNode.kind===263||t.contextNode.kind===219}function Gxt(t){return Hxt(t.contextNode)}function Hxt(t){switch(t.kind){case 264:case 232:case 265:case 267:case 188:case 268:case 279:case 280:case 273:case 276:return!0}return!1}function uvr(t){switch(t.currentTokenParent.kind){case 264:case 268:case 267:case 300:case 269:case 256:return!0;case 242:{let n=t.currentTokenParent.parent;if(!n||n.kind!==220&&n.kind!==219)return!0}}return!1}function Yae(t){switch(t.contextNode.kind){case 246:case 256:case 249:case 250:case 251:case 248:case 259:case 247:case 255:case 300:return!0;default:return!1}}function Kxt(t){return t.contextNode.kind===211}function pvr(t){return t.contextNode.kind===214}function _vr(t){return t.contextNode.kind===215}function dvr(t){return pvr(t)||_vr(t)}function fvr(t){return t.currentTokenSpan.kind!==28}function mvr(t){return t.nextTokenSpan.kind!==24}function hvr(t){return t.nextTokenSpan.kind!==22}function gvr(t){return t.contextNode.kind===220}function yvr(t){return t.contextNode.kind===206}function Pa(t){return t.TokensAreOnSameLine()&&t.contextNode.kind!==12}function Qxt(t){return t.contextNode.kind!==12}function gMe(t){return t.contextNode.kind!==285&&t.contextNode.kind!==289}function kbe(t){return t.contextNode.kind===295||t.contextNode.kind===294}function vvr(t){return t.nextTokenParent.kind===292||t.nextTokenParent.kind===296&&t.nextTokenParent.parent.kind===292}function Zxt(t){return t.contextNode.kind===292}function Svr(t){return t.nextTokenParent.kind!==296}function Xxt(t){return t.nextTokenParent.kind===296}function Yxt(t){return t.contextNode.kind===286}function bvr(t){return!I3(t)&&!Ebe(t)}function xvr(t){return t.TokensAreOnSameLine()&&By(t.contextNode)&&eTt(t.currentTokenParent)&&!eTt(t.nextTokenParent)}function eTt(t){for(;t&&Vt(t);)t=t.parent;return t&&t.kind===171}function Tvr(t){return t.currentTokenParent.kind===262&&t.currentTokenParent.getStart(t.sourceFile)===t.currentTokenSpan.pos}function yMe(t){return t.formattingRequestKind!==2}function Evr(t){return t.contextNode.kind===268}function kvr(t){return t.contextNode.kind===188}function Cvr(t){return t.contextNode.kind===181}function tTt(t,n){if(t.kind!==30&&t.kind!==32)return!1;switch(n.kind){case 184:case 217:case 266:case 264:case 232:case 265:case 263:case 219:case 220:case 175:case 174:case 180:case 181:case 214:case 215:case 234:return!0;default:return!1}}function ese(t){return tTt(t.currentTokenSpan,t.currentTokenParent)||tTt(t.nextTokenSpan,t.nextTokenParent)}function vMe(t){return t.contextNode.kind===217}function Dvr(t){return!vMe(t)}function Avr(t){return t.currentTokenSpan.kind===116&&t.currentTokenParent.kind===223}function rTt(t){return t.contextNode.kind===230&&t.contextNode.expression!==void 0}function wvr(t){return t.contextNode.kind===236}function nTt(t){return!Ivr(t)}function Ivr(t){switch(t.contextNode.kind){case 246:case 249:case 250:case 251:case 247:case 248:return!0;default:return!1}}function Pvr(t){let n=t.nextTokenSpan.kind,a=t.nextTokenSpan.pos;if(XR(n)){let _=t.nextTokenParent===t.currentTokenParent?OP(t.currentTokenParent,fn(t.currentTokenParent,f=>!f.parent),t.sourceFile):t.nextTokenParent.getFirstToken(t.sourceFile);if(!_)return!0;n=_.kind,a=_.getStart(t.sourceFile)}let c=t.sourceFile.getLineAndCharacterOfPosition(t.currentTokenSpan.pos).line,u=t.sourceFile.getLineAndCharacterOfPosition(a).line;return c===u?n===20||n===1:n===27&&t.currentTokenSpan.kind===27?!0:n===241||n===27?!1:t.contextNode.kind===265||t.contextNode.kind===266?!Zm(t.currentTokenParent)||!!t.currentTokenParent.type||n!==21:ps(t.currentTokenParent)?!t.currentTokenParent.initializer:t.currentTokenParent.kind!==249&&t.currentTokenParent.kind!==243&&t.currentTokenParent.kind!==241&&n!==23&&n!==21&&n!==40&&n!==41&&n!==44&&n!==14&&n!==28&&n!==229&&n!==16&&n!==15&&n!==25}function Nvr(t){return eae(t.currentTokenSpan.end,t.currentTokenParent,t.sourceFile)}function Ovr(t){return!no(t.contextNode)||!qh(t.contextNode.expression)||t.contextNode.expression.getText().includes(".")}function Fvr(t,n){return{options:t,getRules:Rvr(),host:n}}var SMe;function Rvr(){return SMe===void 0&&(SMe=Mvr(Lxt())),SMe}function Lvr(t){let n=0;return t&1&&(n|=28),t&2&&(n|=96),t&28&&(n|=28),t&96&&(n|=96),n}function Mvr(t){let n=jvr(t);return a=>{let c=n[iTt(a.currentTokenSpan.kind,a.nextTokenSpan.kind)];if(c){let u=[],_=0;for(let f of c){let y=~Lvr(_);f.action&y&&ht(f.context,g=>g(a))&&(u.push(f),_|=f.action)}if(u.length)return u}}}function jvr(t){let n=new Array(bMe*bMe),a=new Array(n.length);for(let c of t){let u=c.leftTokenRange.isSpecific&&c.rightTokenRange.isSpecific;for(let _ of c.leftTokenRange.tokens)for(let f of c.rightTokenRange.tokens){let y=iTt(_,f),g=n[y];g===void 0&&(g=n[y]=[]),Bvr(g,c.rule,u,a,y)}}return n}function iTt(t,n){return $.assert(t<=166&&n<=166,"Must compute formatting context from tokens"),t*bMe+n}var yq=5,Cbe=31,bMe=167,FQ=(t=>(t[t.StopRulesSpecific=0]="StopRulesSpecific",t[t.StopRulesAny=yq*1]="StopRulesAny",t[t.ContextRulesSpecific=yq*2]="ContextRulesSpecific",t[t.ContextRulesAny=yq*3]="ContextRulesAny",t[t.NoContextRulesSpecific=yq*4]="NoContextRulesSpecific",t[t.NoContextRulesAny=yq*5]="NoContextRulesAny",t))(FQ||{});function Bvr(t,n,a,c,u){let _=n.action&3?a?0:FQ.StopRulesAny:n.context!==Tbe?a?FQ.ContextRulesSpecific:FQ.ContextRulesAny:a?FQ.NoContextRulesSpecific:FQ.NoContextRulesAny,f=c[u]||0;t.splice($vr(f,_),0,n),c[u]=Uvr(f,_)}function $vr(t,n){let a=0;for(let c=0;c<=n;c+=yq)a+=t&Cbe,t>>=yq;return a}function Uvr(t,n){let a=(t>>n&Cbe)+1;return $.assert((a&Cbe)===a,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),t&~(Cbe<$.formatSyntaxKind(a)}),c}function zvr(t,n,a){let c=n.getLineAndCharacterOfPosition(t).line;if(c===0)return[];let u=vG(c,n);for(;_0(n.text.charCodeAt(u));)u--;Dd(n.text.charCodeAt(u))&&u--;let _={pos:iC(c-1,n),end:u+1};return tse(_,n,a,2)}function qvr(t,n,a){let c=xMe(t,27,n);return oTt(TMe(c),n,a,3)}function Jvr(t,n,a){let c=xMe(t,19,n);if(!c)return[];let u=c.parent,_=TMe(u),f={pos:p1(_.getStart(n),n),end:t};return tse(f,n,a,4)}function Vvr(t,n,a){let c=xMe(t,20,n);return oTt(TMe(c),n,a,5)}function Wvr(t,n){let a={pos:0,end:t.text.length};return tse(a,t,n,0)}function Gvr(t,n,a,c){let u={pos:p1(t,a),end:n};return tse(u,a,c,1)}function xMe(t,n,a){let c=vd(t,a);return c&&c.kind===n&&t===c.getEnd()?c:void 0}function TMe(t){let n=t;for(;n&&n.parent&&n.parent.end===t.end&&!Hvr(n.parent,n);)n=n.parent;return n}function Hvr(t,n){switch(t.kind){case 264:case 265:return zh(t.members,n);case 268:let a=t.body;return!!a&&a.kind===269&&zh(a.statements,n);case 308:case 242:case 269:return zh(t.statements,n);case 300:return zh(t.block.statements,n)}return!1}function Kvr(t,n){return a(n);function a(c){let u=Is(c,_=>whe(_.getStart(n),_.end,t)&&_);if(u){let _=a(u);if(_)return _}return c}}function Qvr(t,n){if(!t.length)return u;let a=t.filter(_=>Gz(n,_.start,_.start+_.length)).sort((_,f)=>_.start-f.start);if(!a.length)return u;let c=0;return _=>{for(;;){if(c>=a.length)return!1;let f=a[c];if(_.end<=f.start)return!1;if(Foe(_.pos,_.end,f.start,f.start+f.length))return!0;c++}};function u(){return!1}}function Zvr(t,n,a){let c=t.getStart(a);if(c===n.pos&&t.end===n.end)return c;let u=vd(n.pos,a);return!u||u.end>=n.pos?t.pos:u.end}function Xvr(t,n,a){let c=-1,u;for(;t;){let _=a.getLineAndCharacterOfPosition(t.getStart(a)).line;if(c!==-1&&_!==c)break;if(BS.shouldIndentChildNode(n,t,u,a))return n.indentSize;c=_,u=t,t=t.parent}return 0}function Yvr(t,n,a,c,u,_){let f={pos:t.pos,end:t.end};return uMe(n.text,a,f.pos,f.end,y=>aTt(f,t,c,u,y,_,1,g=>!1,n))}function oTt(t,n,a,c){if(!t)return[];let u={pos:p1(t.getStart(n),n),end:t.end};return tse(u,n,a,c)}function tse(t,n,a,c){let u=Kvr(t,n);return uMe(n.text,n.languageVariant,Zvr(u,t,n),t.end,_=>aTt(t,u,BS.getIndentationForNode(u,t,n,a.options),Xvr(u,a.options,n),_,a,c,Qvr(n.parseDiagnostics,t),n))}function aTt(t,n,a,c,u,{options:_,getRules:f,host:y},g,k,T){var C;let O=new Oxt(T,g,_),F,M,U,J,G,Z=-1,Q=[];if(u.advance(),u.isOnToken()){let ke=T.getLineAndCharacterOfPosition(n.getStart(T)).line,_t=ke;By(n)&&(_t=T.getLineAndCharacterOfPosition(xme(n,T)).line),Oe(n,n,ke,_t,a,c)}let re=u.getCurrentLeadingTrivia();if(re){let ke=BS.nodeWillIndentChild(_,n,void 0,T,!1)?a+_.indentSize:a;be(re,ke,!0,_t=>{De(_t,T.getLineAndCharacterOfPosition(_t.pos),n,n,void 0),Ae(_t.pos,ke,!1)}),_.trimTrailingWhitespace!==!1&&je(re)}if(M&&u.getTokenFullStart()>=t.end){let ke=u.isOnEOF()?u.readEOFTokenRange():u.isOnToken()?u.readTokenInfo(n).token:void 0;if(ke&&ke.pos===F){let _t=((C=vd(ke.end,T,n))==null?void 0:C.parent)||U;Ce(ke,T.getLineAndCharacterOfPosition(ke.pos).line,_t,M,J,U,_t,void 0)}}return Q;function ae(ke,_t,Se,tt,Qe){if(Gz(tt,ke,_t)||qK(tt,ke,_t)){if(Qe!==-1)return Qe}else{let We=T.getLineAndCharacterOfPosition(ke).line,St=p1(ke,T),Kt=BS.findFirstNonWhitespaceColumn(St,ke,T,_);if(We!==Se||ke===Kt){let Sr=BS.getBaseIndentation(_);return Sr>Kt?Sr:Kt}}return-1}function _e(ke,_t,Se,tt,Qe,We){let St=BS.shouldIndentChildNode(_,ke)?_.indentSize:0;return We===_t?{indentation:_t===G?Z:Qe.getIndentation(),delta:Math.min(_.indentSize,Qe.getDelta(ke)+St)}:Se===-1?ke.kind===21&&_t===G?{indentation:Z,delta:Qe.getDelta(ke)}:BS.childStartsOnTheSameLineWithElseInIfStatement(tt,ke,_t,T)||BS.childIsUnindentedBranchOfConditionalExpression(tt,ke,_t,T)||BS.argumentStartsOnSameLineAsPreviousArgument(tt,ke,_t,T)?{indentation:Qe.getIndentation(),delta:St}:{indentation:Qe.getIndentation()+Qe.getDelta(ke),delta:St}:{indentation:Se,delta:St}}function me(ke){if(l1(ke)){let _t=wt(ke.modifiers,bc,hr(ke.modifiers,hd));if(_t)return _t.kind}switch(ke.kind){case 264:return 86;case 265:return 120;case 263:return 100;case 267:return 267;case 178:return 139;case 179:return 153;case 175:if(ke.asteriskToken)return 42;case 173:case 170:let _t=cs(ke);if(_t)return _t.kind}}function le(ke,_t,Se,tt){return{getIndentationForComment:(St,Kt,Sr)=>{switch(St){case 20:case 24:case 22:return Se+We(Sr)}return Kt!==-1?Kt:Se},getIndentationForToken:(St,Kt,Sr,nn)=>!nn&&Qe(St,Kt,Sr)?Se+We(Sr):Se,getIndentation:()=>Se,getDelta:We,recomputeIndentation:(St,Kt)=>{BS.shouldIndentChildNode(_,Kt,ke,T)&&(Se+=St?_.indentSize:-_.indentSize,tt=BS.shouldIndentChildNode(_,ke)?_.indentSize:0)}};function Qe(St,Kt,Sr){switch(Kt){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(Sr.kind){case 287:case 288:case 286:return!1}break;case 23:case 24:if(Sr.kind!==201)return!1;break}return _t!==St&&!(By(ke)&&Kt===me(ke))}function We(St){return BS.nodeWillIndentChild(_,ke,St,T,!0)?tt:0}}function Oe(ke,_t,Se,tt,Qe,We){if(!Gz(t,ke.getStart(T),ke.getEnd()))return;let St=le(ke,Se,Qe,We),Kt=_t;for(Is(ke,$t=>{Sr($t,-1,ke,St,Se,tt,!1)},$t=>{nn($t,ke,Se,St)});u.isOnToken()&&u.getTokenFullStart()Math.min(ke.end,t.end))break;Nn($t,ke,St,ke)}function Sr($t,Dr,Qn,Ko,is,sr,uo,Wa){if($.assert(!fu($t)),Op($t)||ZPe(Qn,$t))return Dr;let oo=$t.getStart(T),Oi=T.getLineAndCharacterOfPosition(oo).line,$o=Oi;By($t)&&($o=T.getLineAndCharacterOfPosition(xme($t,T)).line);let ft=-1;if(uo&&zh(t,Qn)&&(ft=ae(oo,$t.end,is,t,Dr),ft!==-1&&(Dr=ft)),!Gz(t,$t.pos,$t.end))return $t.endt.end)return Dr;if(ai.token.end>oo){ai.token.pos>oo&&u.skipToStartOf($t);break}Nn(ai,ke,Ko,ke)}if(!u.isOnToken()||u.getTokenFullStart()>=t.end)return Dr;if(PO($t)){let ai=u.readTokenInfo($t);if($t.kind!==12)return $.assert(ai.token.end===$t.end,"Token end is child end"),Nn(ai,ke,Ko,$t),Dr}let Ht=$t.kind===171?Oi:sr,Wr=_e($t,Oi,ft,ke,Ko,Ht);return Oe($t,Kt,Oi,$o,Wr.indentation,Wr.delta),Kt=ke,Wa&&Qn.kind===210&&Dr===-1&&(Dr=Wr.indentation),Dr}function nn($t,Dr,Qn,Ko){$.assert(HI($t)),$.assert(!fu($t));let is=eSr(Dr,$t),sr=Ko,uo=Qn;if(!Gz(t,$t.pos,$t.end)){$t.end$t.pos)break;if(Oi.token.kind===is){uo=T.getLineAndCharacterOfPosition(Oi.token.pos).line,Nn(Oi,Dr,Ko,Dr);let $o;if(Z!==-1)$o=Z;else{let ft=p1(Oi.token.pos,T);$o=BS.findFirstNonWhitespaceColumn(ft,Oi.token.pos,T,_)}sr=le(Dr,Qn,$o,_.indentSize)}else Nn(Oi,Dr,Ko,Dr)}let Wa=-1;for(let Oi=0;Oi<$t.length;Oi++){let $o=$t[Oi];Wa=Sr($o,Wa,ke,sr,uo,uo,!0,Oi===0)}let oo=tSr(is);if(oo!==0&&u.isOnToken()&&u.getTokenFullStart()Ae(Wr.pos,Ht,!1))}$o!==-1&&ft&&(Ae($t.token.pos,$o,Wa===1),G=Oi.line,Z=$o)}u.advance(),Kt=Dr}}function be(ke,_t,Se,tt){for(let Qe of ke){let We=zh(t,Qe);switch(Qe.kind){case 3:We&&de(Qe,_t,!Se),Se=!1;break;case 2:Se&&We&&tt(Qe),Se=!1;break;case 4:Se=!0;break}}return Se}function ue(ke,_t,Se,tt){for(let Qe of ke)if(Uoe(Qe.kind)&&zh(t,Qe)){let We=T.getLineAndCharacterOfPosition(Qe.pos);De(Qe,We,_t,Se,tt)}}function De(ke,_t,Se,tt,Qe){let We=k(ke),St=0;if(!We)if(M)St=Ce(ke,_t.line,Se,M,J,U,tt,Qe);else{let Kt=T.getLineAndCharacterOfPosition(t.pos);ze(Kt.line,_t.line)}return M=ke,F=ke.end,U=Se,J=_t.line,St}function Ce(ke,_t,Se,tt,Qe,We,St,Kt){O.updateContext(tt,We,ke,Se,St);let Sr=f(O),nn=O.options.trimTrailingWhitespace!==!1,Nn=0;return Sr?Re(Sr,$t=>{if(Nn=It($t,tt,Qe,ke,_t),Kt)switch(Nn){case 2:Se.getStart(T)===ke.pos&&Kt.recomputeIndentation(!1,St);break;case 1:Se.getStart(T)===ke.pos&&Kt.recomputeIndentation(!0,St);break;default:$.assert(Nn===0)}nn=nn&&!($t.action&16)&&$t.flags!==1}):nn=nn&&ke.kind!==1,_t!==Qe&&nn&&ze(Qe,_t,tt),Nn}function Ae(ke,_t,Se){let tt=EMe(_t,_);if(Se)Ve(ke,0,tt);else{let Qe=T.getLineAndCharacterOfPosition(ke),We=iC(Qe.line,T);(_t!==Fe(We,Qe.character)||Be(tt,We))&&Ve(We,Qe.character,tt)}}function Fe(ke,_t){let Se=0;for(let tt=0;tt<_t;tt++)T.text.charCodeAt(ke+tt)===9?Se+=_.tabSize-Se%_.tabSize:Se++;return Se}function Be(ke,_t){return ke!==T.text.substr(_t,ke.length)}function de(ke,_t,Se,tt=!0){let Qe=T.getLineAndCharacterOfPosition(ke.pos).line,We=T.getLineAndCharacterOfPosition(ke.end).line;if(Qe===We){Se||Ae(ke.pos,_t,!1);return}let St=[],Kt=ke.pos;for(let Dr=Qe;Dr0){let sr=EMe(is,_);Ve(Qn,Ko.character,sr)}else Le(Qn,Ko.character)}}function ze(ke,_t,Se){for(let tt=ke;tt<_t;tt++){let Qe=iC(tt,T),We=vG(tt,T);if(Se&&(Uoe(Se.kind)||Q1e(Se.kind))&&Se.pos<=We&&Se.end>We)continue;let St=ut(Qe,We);St!==-1&&($.assert(St===Qe||!_0(T.text.charCodeAt(St-1))),Le(St,We+1-St))}}function ut(ke,_t){let Se=_t;for(;Se>=ke&&_0(T.text.charCodeAt(Se));)Se--;return Se!==_t?Se+1:-1}function je(ke){let _t=M?M.end:t.pos;for(let Se of ke)Uoe(Se.kind)&&(_tzK(k,n)||n===k.end&&(k.kind===2||n===t.getFullWidth()))}function eSr(t,n){switch(t.kind){case 177:case 263:case 219:case 175:case 174:case 220:case 180:case 181:case 185:case 186:case 178:case 179:if(t.typeParameters===n)return 30;if(t.parameters===n)return 21;break;case 214:case 215:if(t.typeArguments===n)return 30;if(t.arguments===n)return 21;break;case 264:case 232:case 265:case 266:if(t.typeParameters===n)return 30;break;case 184:case 216:case 187:case 234:case 206:if(t.typeArguments===n)return 30;break;case 188:return 19}return 0}function tSr(t){switch(t){case 21:return 22;case 30:return 32;case 19:return 20}return 0}var Abe,RQ,LQ;function EMe(t,n){if((!Abe||Abe.tabSize!==n.tabSize||Abe.indentSize!==n.indentSize)&&(Abe={tabSize:n.tabSize,indentSize:n.indentSize},RQ=LQ=void 0),n.convertTabsToSpaces){let c,u=Math.floor(t/n.indentSize),_=t%n.indentSize;return LQ||(LQ=[]),LQ[u]===void 0?(c=GK(" ",n.indentSize*u),LQ[u]=c):c=LQ[u],_?c+GK(" ",_):c}else{let c=Math.floor(t/n.tabSize),u=t-c*n.tabSize,_;return RQ||(RQ=[]),RQ[c]===void 0?RQ[c]=_=GK(" ",c):_=RQ[c],u?_+GK(" ",u):_}}var BS;(t=>{let n;(de=>{de[de.Unknown=-1]="Unknown"})(n||(n={}));function a(de,ze,ut,je=!1){if(de>ze.text.length)return y(ut);if(ut.indentStyle===0)return 0;let ve=vd(de,ze,void 0,!0),Le=sTt(ze,de,ve||null);if(Le&&Le.kind===3)return c(ze,de,ut,Le);if(!ve)return y(ut);if(Q1e(ve.kind)&&ve.getStart(ze)<=de&&de=0),ve<=Le)return De(iC(Le,de),ze,de,ut);let Ve=iC(ve,de),{column:nt,character:It}=ue(Ve,ze,de,ut);return nt===0?nt:de.text.charCodeAt(Ve+It)===42?nt-1:nt}function u(de,ze,ut){let je=ze;for(;je>0;){let Le=de.text.charCodeAt(je);if(!p0(Le))break;je--}let ve=p1(je,de);return De(ve,je,de,ut)}function _(de,ze,ut,je,ve,Le){let Ve,nt=ut;for(;nt;){if(q1e(nt,ze,de)&&Fe(Le,nt,Ve,de,!0)){let ke=M(nt,de),_t=F(ut,nt,je,de),Se=_t!==0?ve&&_t===2?Le.indentSize:0:je!==ke.line?Le.indentSize:0;return g(nt,ke,void 0,Se,de,!0,Le)}let It=le(nt,de,Le,!0);if(It!==-1)return It;Ve=nt,nt=nt.parent}return y(Le)}function f(de,ze,ut,je){let ve=ut.getLineAndCharacterOfPosition(de.getStart(ut));return g(de,ve,ze,0,ut,!1,je)}t.getIndentationForNode=f;function y(de){return de.baseIndentSize||0}t.getBaseIndentation=y;function g(de,ze,ut,je,ve,Le,Ve){var nt;let It=de.parent;for(;It;){let ke=!0;if(ut){let Qe=de.getStart(ve);ke=Qeut.end}let _t=k(It,de,ve),Se=_t.line===ze.line||J(It,de,ze.line,ve);if(ke){let Qe=(nt=Q(de,ve))==null?void 0:nt[0],We=!!Qe&&M(Qe,ve).line>_t.line,St=le(de,ve,Ve,We);if(St!==-1||(St=C(de,It,ze,Se,ve,Ve),St!==-1))return St+je}Fe(Ve,It,de,ve,Le)&&!Se&&(je+=Ve.indentSize);let tt=U(It,de,ze.line,ve);de=It,It=de.parent,ze=tt?ve.getLineAndCharacterOfPosition(de.getStart(ve)):_t}return je+y(Ve)}function k(de,ze,ut){let je=Q(ze,ut),ve=je?je.pos:de.getStart(ut);return ut.getLineAndCharacterOfPosition(ve)}function T(de,ze,ut){let je=i7e(de);return je&&je.listItemIndex>0?Oe(je.list.getChildren(),je.listItemIndex-1,ze,ut):-1}function C(de,ze,ut,je,ve,Le){return(Vd(de)||mG(de))&&(ze.kind===308||!je)?be(ut,ve,Le):-1}let O;(de=>{de[de.Unknown=0]="Unknown",de[de.OpenBrace=1]="OpenBrace",de[de.CloseBrace=2]="CloseBrace"})(O||(O={}));function F(de,ze,ut,je){let ve=OP(de,ze,je);if(!ve)return 0;if(ve.kind===19)return 1;if(ve.kind===20){let Le=M(ve,je).line;return ut===Le?2:0}return 0}function M(de,ze){return ze.getLineAndCharacterOfPosition(de.getStart(ze))}function U(de,ze,ut,je){if(!(Js(de)&&un(de.arguments,ze)))return!1;let ve=de.expression.getEnd();return qs(je,ve).line===ut}t.isArgumentAndStartLineOverlapsExpressionBeingCalled=U;function J(de,ze,ut,je){if(de.kind===246&&de.elseStatement===ze){let ve=Kl(de,93,je);return $.assert(ve!==void 0),M(ve,je).line===ut}return!1}t.childStartsOnTheSameLineWithElseInIfStatement=J;function G(de,ze,ut,je){if(a3(de)&&(ze===de.whenTrue||ze===de.whenFalse)){let ve=qs(je,de.condition.end).line;if(ze===de.whenTrue)return ut===ve;{let Le=M(de.whenTrue,je).line,Ve=qs(je,de.whenTrue.end).line;return ve===Le&&Ve===ut}}return!1}t.childIsUnindentedBranchOfConditionalExpression=G;function Z(de,ze,ut,je){if(mS(de)){if(!de.arguments)return!1;let ve=wt(de.arguments,It=>It.pos===ze.pos);if(!ve)return!1;let Le=de.arguments.indexOf(ve);if(Le===0)return!1;let Ve=de.arguments[Le-1],nt=qs(je,Ve.getEnd()).line;if(ut===nt)return!0}return!1}t.argumentStartsOnSameLineAsPreviousArgument=Z;function Q(de,ze){return de.parent&&ae(de.getStart(ze),de.getEnd(),de.parent,ze)}t.getContainingList=Q;function re(de,ze,ut){return ze&&ae(de,de,ze,ut)}function ae(de,ze,ut,je){switch(ut.kind){case 184:return ve(ut.typeArguments);case 211:return ve(ut.properties);case 210:return ve(ut.elements);case 188:return ve(ut.members);case 263:case 219:case 220:case 175:case 174:case 180:case 177:case 186:case 181:return ve(ut.typeParameters)||ve(ut.parameters);case 178:return ve(ut.parameters);case 264:case 232:case 265:case 266:case 346:return ve(ut.typeParameters);case 215:case 214:return ve(ut.typeArguments)||ve(ut.arguments);case 262:return ve(ut.declarations);case 276:case 280:return ve(ut.elements);case 207:case 208:return ve(ut.elements)}function ve(Le){return Le&&qK(_e(ut,Le,je),de,ze)?Le:void 0}}function _e(de,ze,ut){let je=de.getChildren(ut);for(let ve=1;ve=0&&ze=0;Ve--){if(de[Ve].kind===28)continue;if(ut.getLineAndCharacterOfPosition(de[Ve].end).line!==Le.line)return be(Le,ut,je);Le=M(de[Ve],ut)}return-1}function be(de,ze,ut){let je=ze.getPositionOfLineAndCharacter(de.line,0);return De(je,je+de.character,ze,ut)}function ue(de,ze,ut,je){let ve=0,Le=0;for(let Ve=de;VerSr});function rSr(t,n,a){let c=!1;return n.forEach(u=>{let _=fn(la(t,u.pos),f=>zh(f,u));_&&Is(_,function f(y){var g;if(!c){if(ct(y)&&HL(u,y.getStart(t))){let k=a.resolveName(y.text,y,-1,!1);if(k&&k.declarations){for(let T of k.declarations)if(aSe(T)||y.text&&t.symbol&&((g=t.symbol.exports)!=null&&g.has(y.escapedText))){c=!0;return}}}y.forEachChild(f)}})}),c}var Ibe={};d(Ibe,{pasteEditsProvider:()=>iSr});var nSr="providePostPasteEdits";function iSr(t,n,a,c,u,_,f,y){return{edits:ki.ChangeTracker.with({host:u,formatContext:f,preferences:_},k=>oSr(t,n,a,c,u,_,f,y,k)),fixId:nSr}}function oSr(t,n,a,c,u,_,f,y,g){let k;n.length!==a.length&&(k=n.length===1?n[0]:n.join(ZT(f.host,f.options)));let T=[],C=t.text;for(let F=a.length-1;F>=0;F--){let{pos:M,end:U}=a[F];C=k?C.slice(0,M)+k+C.slice(U):C.slice(0,M)+n[F]+C.slice(U)}let O;$.checkDefined(u.runWithTemporaryFileUpdate).call(u,t.fileName,C,(F,M,U)=>{if(O=Im.createImportAdder(U,F,_,u),c?.range){$.assert(c.range.length===n.length),c.range.forEach(re=>{let ae=c.file.statements,_e=hr(ae,le=>le.end>re.pos);if(_e===-1)return;let me=hr(ae,le=>le.end>=re.end,_e);me!==-1&&re.end<=ae[me].getStart()&&me--,T.push(...ae.slice(_e,me===-1?ae.length:me+1))}),$.assertIsDefined(M,"no original program found");let J=M.getTypeChecker(),G=aSr(c),Z=yae(c.file,T,J,U5e(U,T,J),G),Q=!Nve(t.fileName,M,u,!!c.file.commonJsModuleIndicator);O5e(c.file,Z.targetFileImportsFromOldFile,g,Q),q5e(c.file,Z.oldImportsNeededByTargetFile,Z.targetFileImportsFromOldFile,J,F,O)}else{let J={sourceFile:U,program:M,cancellationToken:y,host:u,preferences:_,formatContext:f},G=0;a.forEach((Z,Q)=>{let re=Z.end-Z.pos,ae=k??n[Q],_e=Z.pos+G,me=_e+ae.length,le={pos:_e,end:me};G+=ae.length-re;let Oe=fn(la(J.sourceFile,le.pos),be=>zh(be,le));Oe&&Is(Oe,function be(ue){if(ct(ue)&&HL(le,ue.getStart(U))&&!F?.getTypeChecker().resolveName(ue.text,ue,-1,!1))return O.addImportForUnresolvedIdentifier(J,ue,!0);ue.forEachChild(be)})})}O.writeFixes(g,Vg(c?c.file:t,_))}),O.hasFixes()&&a.forEach((F,M)=>{g.replaceRangeWithText(t,{pos:F.pos,end:F.end},k??n[M])})}function aSr({file:t,range:n}){let a=n[0].pos,c=n[n.length-1].end,u=la(t,a),_=Hz(t,a)??la(t,c);return{pos:ct(u)&&a<=u.getStart(t)?u.getFullStart():a,end:ct(_)&&c===_.getEnd()?ki.getAdjustedEndPosition(t,_,{}):c}}var cTt={};d(cTt,{ANONYMOUS:()=>xve,AccessFlags:()=>X2,AssertionLevel:()=>d$,AssignmentDeclarationKind:()=>aR,AssignmentKind:()=>M6e,Associativity:()=>V6e,BreakpointResolver:()=>SSe,BuilderFileEmit:()=>$Oe,BuilderProgramKind:()=>HOe,BuilderState:()=>Dv,CallHierarchy:()=>JF,CharacterCodes:()=>fR,CheckFlags:()=>dO,CheckMode:()=>Vye,ClassificationType:()=>O1e,ClassificationTypeNames:()=>QFe,CommentDirectiveType:()=>G9,Comparison:()=>V,CompletionInfoFlags:()=>qFe,CompletionTriggerKind:()=>P1e,Completions:()=>KF,ContainerFlags:()=>S8e,ContextFlags:()=>k$,Debug:()=>$,DiagnosticCategory:()=>gO,Diagnostics:()=>x,DocumentHighlights:()=>dae,ElementFlags:()=>nf,EmitFlags:()=>SO,EmitHint:()=>rE,EmitOnly:()=>K9,EndOfLineState:()=>WFe,ExitStatus:()=>ZD,ExportKind:()=>$7e,Extension:()=>mR,ExternalEmitHelpers:()=>gR,FileIncludeKind:()=>H9,FilePreprocessingDiagnosticsKind:()=>uO,FileSystemEntryKind:()=>TO,FileWatcherEventKind:()=>v4,FindAllReferences:()=>Pu,FlattenLevel:()=>z8e,FlowFlags:()=>PI,ForegroundColorEscapeSequences:()=>IOe,FunctionFlags:()=>q6e,GeneratedIdentifierFlags:()=>V9,GetLiteralTextFlags:()=>e6e,GoToDefinition:()=>cM,HighlightSpanKind:()=>UFe,IdentifierNameMap:()=>jL,ImportKind:()=>B7e,ImportsNotUsedAsValues:()=>OI,IndentStyle:()=>zFe,IndexFlags:()=>hO,IndexKind:()=>eE,InferenceFlags:()=>w$,InferencePriority:()=>iR,InlayHintKind:()=>$Fe,InlayHints:()=>pbe,InternalEmitFlags:()=>P$,InternalNodeBuilderFlags:()=>C$,InternalSymbolName:()=>A$,IntersectionFlags:()=>X9,InvalidatedProjectKind:()=>gFe,JSDocParsingMode:()=>RI,JsDoc:()=>VA,JsTyping:()=>wC,JsxEmit:()=>I$,JsxFlags:()=>lO,JsxReferenceKind:()=>Y2,LanguageFeatureMinimumTarget:()=>C_,LanguageServiceMode:()=>jFe,LanguageVariant:()=>dR,LexicalEnvironmentFlags:()=>h4,ListFormat:()=>FI,LogLevel:()=>I9,MapCode:()=>_be,MemberOverrideStatus:()=>Q9,ModifierFlags:()=>cO,ModuleDetectionKind:()=>sR,ModuleInstanceState:()=>y8e,ModuleKind:()=>tE,ModuleResolutionKind:()=>zk,ModuleSpecifierEnding:()=>U4e,NavigateTo:()=>u5e,NavigationBar:()=>_5e,NewLineKind:()=>pR,NodeBuilderFlags:()=>Y9,NodeCheckFlags:()=>fO,NodeFactoryFlags:()=>y3e,NodeFlags:()=>sO,NodeResolutionFeatures:()=>c8e,ObjectFlags:()=>mO,OperationCanceledException:()=>Uk,OperatorPrecedence:()=>W6e,OrganizeImports:()=>WA,OrganizeImportsMode:()=>I1e,OuterExpressionKinds:()=>N$,OutliningElementsCollector:()=>fbe,OutliningSpanKind:()=>JFe,OutputFileType:()=>VFe,PackageJsonAutoImportPreference:()=>MFe,PackageJsonDependencyGroup:()=>LFe,PatternMatchKind:()=>Uve,PollingInterval:()=>yR,PollingWatchKind:()=>uR,PragmaKindFlags:()=>g4,PredicateSemantics:()=>J9,PreparePasteEdits:()=>wbe,PrivateIdentifierKind:()=>A3e,ProcessLevel:()=>W8e,ProgramUpdateLevel:()=>kOe,QuotePreference:()=>y7e,RegularExpressionFlags:()=>W9,RelationComparisonResult:()=>q9,Rename:()=>Qae,ScriptElementKind:()=>HFe,ScriptElementKindModifier:()=>KFe,ScriptKind:()=>m4,ScriptSnapshot:()=>koe,ScriptTarget:()=>_R,SemanticClassificationFormat:()=>BFe,SemanticMeaning:()=>ZFe,SemicolonPreference:()=>N1e,SignatureCheckMode:()=>Wye,SignatureFlags:()=>Vm,SignatureHelp:()=>AQ,SignatureInfo:()=>BOe,SignatureKind:()=>nR,SmartSelectionRange:()=>gbe,SnippetKind:()=>hR,StatisticType:()=>CFe,StructureIsReused:()=>d4,SymbolAccessibility:()=>tR,SymbolDisplay:()=>wE,SymbolDisplayPartKind:()=>Doe,SymbolFlags:()=>_O,SymbolFormatFlags:()=>f4,SyntaxKind:()=>z9,Ternary:()=>oR,ThrottledCancellationToken:()=>S9e,TokenClass:()=>GFe,TokenFlags:()=>E$,TransformFlags:()=>vO,TypeFacts:()=>Jye,TypeFlags:()=>NI,TypeFormatFlags:()=>eR,TypeMapKind:()=>Ny,TypePredicateKind:()=>pO,TypeReferenceSerializationKind:()=>D$,UnionReduction:()=>Z9,UpToDateStatusType:()=>uFe,VarianceFlags:()=>rR,Version:()=>Iy,VersionRange:()=>KD,WatchDirectoryFlags:()=>yO,WatchDirectoryKind:()=>lR,WatchFileKind:()=>cR,WatchLogLevel:()=>DOe,WatchType:()=>cf,accessPrivateIdentifier:()=>U8e,addEmitFlags:()=>CS,addEmitHelper:()=>pF,addEmitHelpers:()=>Ux,addInternalEmitFlags:()=>e3,addNodeFactoryPatcher:()=>klt,addObjectAllocatorPatcher:()=>llt,addRange:()=>En,addRelatedInfo:()=>ac,addSyntheticLeadingComment:()=>gC,addSyntheticTrailingComment:()=>nz,addToSeen:()=>o1,advancedAsyncSuperHelper:()=>Lne,affectsDeclarationPathOptionDeclarations:()=>ONe,affectsEmitOptionDeclarations:()=>NNe,allKeysStartWithDot:()=>Iie,altDirectorySeparator:()=>x4,and:()=>EI,append:()=>jt,appendIfUnique:()=>Jl,arrayFrom:()=>so,arrayIsEqualTo:()=>__,arrayIsHomogeneous:()=>K4e,arrayOf:()=>Jn,arrayReverseIterator:()=>Tf,arrayToMap:()=>_l,arrayToMultiMap:()=>tu,arrayToNumericMap:()=>bi,assertType:()=>h$,assign:()=>qe,asyncSuperHelper:()=>Rne,attachFileToDiagnostics:()=>rF,base64decode:()=>d4e,base64encode:()=>_4e,binarySearch:()=>rs,binarySearchKey:()=>Yl,bindSourceFile:()=>b8e,breakIntoCharacterSpans:()=>r5e,breakIntoWordSpans:()=>n5e,buildLinkParts:()=>C7e,buildOpts:()=>tK,buildOverload:()=>pTt,bundlerModuleNameResolver:()=>l8e,canBeConvertedToAsync:()=>Gve,canHaveDecorators:()=>kP,canHaveExportModifier:()=>kH,canHaveFlowNode:()=>KR,canHaveIllegalDecorators:()=>eye,canHaveIllegalModifiers:()=>dNe,canHaveIllegalType:()=>Zlt,canHaveIllegalTypeParameters:()=>_Ne,canHaveJSDoc:()=>WG,canHaveLocals:()=>vb,canHaveModifiers:()=>l1,canHaveModuleSpecifier:()=>F6e,canHaveSymbol:()=>gv,canIncludeBindAndCheckDiagnostics:()=>GU,canJsonReportNoInputFiles:()=>sK,canProduceDiagnostics:()=>gK,canUsePropertyAccess:()=>ige,canWatchAffectingLocation:()=>rFe,canWatchAtTypes:()=>tFe,canWatchDirectoryOrFile:()=>G0e,canWatchDirectoryOrFilePath:()=>NK,cartesianProduct:()=>A9,cast:()=>Ba,chainBundle:()=>Cv,chainDiagnosticMessages:()=>ws,changeAnyExtension:()=>Og,changeCompilerHostLikeToUseCache:()=>Bz,changeExtension:()=>hE,changeFullExtension:()=>T4,changesAffectModuleResolution:()=>Yte,changesAffectingProgramStructure:()=>WPe,characterCodeToRegularExpressionFlag:()=>DO,childIsDecorated:()=>mU,classElementOrClassElementParameterIsDecorated:()=>Bme,classHasClassThisAssignment:()=>s0e,classHasDeclaredOrExplicitlyAssignedName:()=>c0e,classHasExplicitlyAssignedName:()=>qie,classOrConstructorParameterIsDecorated:()=>pE,classicNameResolver:()=>h8e,classifier:()=>E9e,cleanExtendedConfigCache:()=>Kie,clear:()=>Cs,clearMap:()=>dg,clearSharedExtendedConfigFileWatcher:()=>x0e,climbPastPropertyAccess:()=>Ioe,clone:()=>qp,cloneCompilerOptions:()=>X1e,closeFileWatcher:()=>W1,closeFileWatcherOf:()=>C0,codefix:()=>Im,collapseTextChangeRangesAcrossMultipleVersions:()=>w,collectExternalModuleInfo:()=>n0e,combine:()=>ea,combinePaths:()=>Xi,commandLineOptionOfCustomType:()=>LNe,commentPragmas:()=>y4,commonOptionsWithBuild:()=>lie,compact:()=>Bc,compareBooleans:()=>cS,compareDataObjects:()=>Nhe,compareDiagnostics:()=>$U,compareEmitHelpers:()=>I3e,compareNumberOfDirectorySeparators:()=>bH,comparePaths:()=>M1,comparePathsCaseInsensitive:()=>$$,comparePathsCaseSensitive:()=>B$,comparePatternKeys:()=>Mye,compareProperties:()=>WD,compareStringsCaseInsensitive:()=>JD,compareStringsCaseInsensitiveEslintCompatible:()=>Sm,compareStringsCaseSensitive:()=>Su,compareStringsCaseSensitiveUI:()=>Rk,compareTextSpans:()=>fy,compareValues:()=>Br,compilerOptionsAffectDeclarationPath:()=>R4e,compilerOptionsAffectEmit:()=>F4e,compilerOptionsAffectSemanticDiagnostics:()=>O4e,compilerOptionsDidYouMeanDiagnostics:()=>die,compilerOptionsIndicateEsModules:()=>ive,computeCommonSourceDirectoryOfFilenames:()=>AOe,computeLineAndCharacterOfPosition:()=>aE,computeLineOfPosition:()=>nA,computeLineStarts:()=>oE,computePositionOfLineAndCharacter:()=>AO,computeSignatureWithDiagnostics:()=>U0e,computeSuggestionDiagnostics:()=>Jve,computedOptions:()=>UU,concatenate:()=>go,concatenateDiagnosticMessageChains:()=>C4e,consumesNodeCoreModules:()=>iae,contains:()=>un,containsIgnoredPath:()=>QU,containsObjectRestOrSpread:()=>ZH,containsParseError:()=>BO,containsPath:()=>ug,convertCompilerOptionsForTelemetry:()=>ZNe,convertCompilerOptionsFromJson:()=>apt,convertJsonOption:()=>m3,convertToBase64:()=>p4e,convertToJson:()=>iK,convertToObject:()=>VNe,convertToOptionsWithAbsolutePaths:()=>gie,convertToRelativePath:()=>BI,convertToTSConfig:()=>Sye,convertTypeAcquisitionFromJson:()=>spt,copyComments:()=>E3,copyEntries:()=>ere,copyLeadingComments:()=>eM,copyProperties:()=>zm,copyTrailingAsLeadingComments:()=>YK,copyTrailingComments:()=>tq,couldStartTrivia:()=>D4,countWhere:()=>Lo,createAbstractBuilder:()=>ddt,createAccessorPropertyBackingField:()=>nye,createAccessorPropertyGetRedirector:()=>bNe,createAccessorPropertySetRedirector:()=>xNe,createBaseNodeFactory:()=>d3e,createBinaryExpressionTrampoline:()=>iie,createBuilderProgram:()=>z0e,createBuilderProgramUsingIncrementalBuildInfo:()=>XOe,createBuilderStatusReporter:()=>goe,createCacheableExportInfoMap:()=>Ove,createCachedDirectoryStructureHost:()=>Gie,createClassifier:()=>qft,createCommentDirectivesMap:()=>XPe,createCompilerDiagnostic:()=>bp,createCompilerDiagnosticForInvalidCustomType:()=>MNe,createCompilerDiagnosticFromMessageChain:()=>nne,createCompilerHost:()=>wOe,createCompilerHostFromProgramHost:()=>c1e,createCompilerHostWorker:()=>Qie,createDetachedDiagnostic:()=>tF,createDiagnosticCollection:()=>IU,createDiagnosticForFileFromMessageChain:()=>Fme,createDiagnosticForNode:()=>xi,createDiagnosticForNodeArray:()=>UR,createDiagnosticForNodeArrayFromMessageChain:()=>EG,createDiagnosticForNodeFromMessageChain:()=>Nx,createDiagnosticForNodeInSourceFile:()=>m0,createDiagnosticForRange:()=>_6e,createDiagnosticMessageChainFromDiagnostic:()=>p6e,createDiagnosticReporter:()=>LF,createDocumentPositionMapper:()=>L8e,createDocumentRegistry:()=>V7e,createDocumentRegistryInternal:()=>jve,createEmitAndSemanticDiagnosticsBuilderProgram:()=>W0e,createEmitHelperFactory:()=>w3e,createEmptyExports:()=>qH,createEvaluator:()=>o3e,createExpressionForJsxElement:()=>aNe,createExpressionForJsxFragment:()=>sNe,createExpressionForObjectLiteralElementLike:()=>cNe,createExpressionForPropertyName:()=>Hge,createExpressionFromEntityName:()=>JH,createExternalHelpersImportDeclarationIfNeeded:()=>Zge,createFileDiagnostic:()=>md,createFileDiagnosticFromMessageChain:()=>ure,createFlowNode:()=>wb,createForOfBindingStatement:()=>Gge,createFutureSourceFile:()=>uae,createGetCanonicalFileName:()=>_d,createGetIsolatedDeclarationErrors:()=>mOe,createGetSourceFile:()=>D0e,createGetSymbolAccessibilityDiagnosticForNode:()=>RA,createGetSymbolAccessibilityDiagnosticForNodeName:()=>fOe,createGetSymbolWalker:()=>x8e,createIncrementalCompilerHost:()=>hoe,createIncrementalProgram:()=>lFe,createJsxFactoryExpression:()=>Wge,createLanguageService:()=>b9e,createLanguageServiceSourceFile:()=>wae,createMemberAccessForPropertyName:()=>d3,createModeAwareCache:()=>OL,createModeAwareCacheKey:()=>Ez,createModeMismatchDetails:()=>yme,createModuleNotFoundChain:()=>rre,createModuleResolutionCache:()=>FL,createModuleResolutionLoader:()=>O0e,createModuleResolutionLoaderUsingGlobalCache:()=>aFe,createModuleSpecifierResolutionHost:()=>BA,createMultiMap:()=>d_,createNameResolver:()=>lge,createNodeConverters:()=>h3e,createNodeFactory:()=>IH,createOptionNameMap:()=>pie,createOverload:()=>Pbe,createPackageJsonImportFilter:()=>tM,createPackageJsonInfo:()=>kve,createParenthesizerRules:()=>f3e,createPatternMatcher:()=>Q7e,createPrinter:()=>DC,createPrinterWithDefaults:()=>TOe,createPrinterWithRemoveComments:()=>wP,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>EOe,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>b0e,createProgram:()=>wK,createProgramDiagnostics:()=>MOe,createProgramHost:()=>l1e,createPropertyNameNodeForIdentifierOrLiteral:()=>EH,createQueue:()=>u0,createRange:()=>y0,createRedirectedBuilderProgram:()=>V0e,createResolutionCache:()=>K0e,createRuntimeTypeSerializer:()=>Z8e,createScanner:()=>B1,createSemanticDiagnosticsBuilderProgram:()=>_dt,createSet:()=>Qi,createSolutionBuilder:()=>fFe,createSolutionBuilderHost:()=>_Fe,createSolutionBuilderWithWatch:()=>mFe,createSolutionBuilderWithWatchHost:()=>dFe,createSortedArray:()=>dy,createSourceFile:()=>DF,createSourceMapGenerator:()=>P8e,createSourceMapSource:()=>wlt,createSuperAccessVariableStatement:()=>Vie,createSymbolTable:()=>ic,createSymlinkCache:()=>zhe,createSyntacticTypeNodeBuilder:()=>OFe,createSystemWatchFunctions:()=>F$,createTextChange:()=>WK,createTextChangeFromStartLength:()=>qoe,createTextChangeRange:()=>X0,createTextRangeFromNode:()=>tve,createTextRangeFromSpan:()=>zoe,createTextSpan:()=>Jp,createTextSpanFromBounds:()=>Hu,createTextSpanFromNode:()=>yh,createTextSpanFromRange:()=>CE,createTextSpanFromStringLiteralLikeContent:()=>eve,createTextWriter:()=>nH,createTokenRange:()=>Dhe,createTypeChecker:()=>w8e,createTypeReferenceDirectiveResolutionCache:()=>Die,createTypeReferenceResolutionLoader:()=>Yie,createWatchCompilerHost:()=>Tdt,createWatchCompilerHostOfConfigFile:()=>u1e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>p1e,createWatchFactory:()=>s1e,createWatchHost:()=>a1e,createWatchProgram:()=>_1e,createWatchStatusReporter:()=>Q0e,createWriteFileMeasuringIO:()=>A0e,declarationNameToString:()=>du,decodeMappings:()=>e0e,decodedTextSpanIntersectsWith:()=>dS,deduplicate:()=>rf,defaultHoverMaximumTruncationLength:()=>JPe,defaultInitCompilerOptions:()=>Cut,defaultMaximumTruncationLength:()=>cU,diagnosticCategoryName:()=>NT,diagnosticToString:()=>FP,diagnosticsEqualityComparer:()=>ine,directoryProbablyExists:()=>Sv,directorySeparator:()=>Gl,displayPart:()=>hg,displayPartsToString:()=>_Q,disposeEmitNodes:()=>Sge,documentSpansEqual:()=>pve,dumpTracingLegend:()=>U9,elementAt:()=>Gr,elideNodes:()=>SNe,emitDetachedComments:()=>t4e,emitFiles:()=>v0e,emitFilesAndReportErrors:()=>_oe,emitFilesAndReportErrorsAndGetExitStatus:()=>o1e,emitModuleKindIsNonNodeESM:()=>gH,emitNewLineBeforeLeadingCommentOfPosition:()=>e4e,emitResolverSkipsTypeChecking:()=>y0e,emitSkippedWithNoDiagnostics:()=>L0e,emptyArray:()=>j,emptyFileSystemEntries:()=>Qhe,emptyMap:()=>ie,emptyOptions:()=>u1,endsWith:()=>au,ensurePathIsNonModuleName:()=>Tx,ensureScriptKind:()=>fne,ensureTrailingDirectorySeparator:()=>r_,entityNameToString:()=>Rg,enumerateInsertsAndDeletes:()=>kI,equalOwnProperties:()=>yl,equateStringsCaseInsensitive:()=>F1,equateStringsCaseSensitive:()=>qm,equateValues:()=>Ng,escapeJsxAttributeString:()=>lhe,escapeLeadingUnderscores:()=>dp,escapeNonAsciiString:()=>Mre,escapeSnippetText:()=>mP,escapeString:()=>kb,escapeTemplateSubstitution:()=>she,evaluatorResult:()=>wd,every:()=>ht,exclusivelyPrefixedNodeCoreModules:()=>wne,executeCommandLine:()=>rft,expandPreOrPostfixIncrementOrDecrementExpression:()=>Yne,explainFiles:()=>e1e,explainIfFileIsRedirectAndImpliedFormat:()=>t1e,exportAssignmentIsAlias:()=>QG,expressionResultIsUnused:()=>Z4e,extend:()=>Lh,extensionFromPath:()=>VU,extensionIsTS:()=>vne,extensionsNotSupportingExtensionlessResolution:()=>yne,externalHelpersModuleNameText:()=>nC,factory:()=>W,fileExtensionIs:()=>Au,fileExtensionIsOneOf:()=>_p,fileIncludeReasonToDiagnostics:()=>i1e,fileShouldUseJavaScriptRequire:()=>Nve,filter:()=>yr,filterMutate:()=>co,filterSemanticDiagnostics:()=>noe,find:()=>wt,findAncestor:()=>fn,findBestPatternMatch:()=>GD,findChildOfKind:()=>Kl,findComputedPropertyNameCacheAssignment:()=>oie,findConfigFile:()=>k0e,findConstructorDeclaration:()=>AH,findContainingList:()=>Roe,findDiagnosticForNode:()=>L7e,findFirstNonJsxWhitespaceToken:()=>o7e,findIndex:()=>hr,findLast:()=>Ut,findLastIndex:()=>Hi,findListItemInfo:()=>i7e,findModifier:()=>ZL,findNextToken:()=>OP,findPackageJson:()=>R7e,findPackageJsons:()=>Eve,findPrecedingMatchingToken:()=>$oe,findPrecedingToken:()=>vd,findSuperStatementIndexPath:()=>Bie,findTokenOnLeftOfPosition:()=>Hz,findUseStrictPrologue:()=>Qge,first:()=>To,firstDefined:()=>Je,firstDefinedIterator:()=>pt,firstIterator:()=>Gu,firstOrOnly:()=>Ave,firstOrUndefined:()=>pi,firstOrUndefinedIterator:()=>ia,fixupCompilerOptions:()=>Hve,flatMap:()=>an,flatMapIterator:()=>li,flatMapToMutable:()=>Xr,flatten:()=>Rc,flattenCommaList:()=>TNe,flattenDestructuringAssignment:()=>v3,flattenDestructuringBinding:()=>AP,flattenDiagnosticMessageText:()=>RS,forEach:()=>X,forEachAncestor:()=>GPe,forEachAncestorDirectory:()=>Ex,forEachAncestorDirectoryStoppingAtGlobalCache:()=>Ab,forEachChild:()=>Is,forEachChildRecursively:()=>CF,forEachDynamicImportOrRequireCall:()=>Ine,forEachEmittedFile:()=>f0e,forEachEnclosingBlockScopeContainer:()=>c6e,forEachEntry:()=>Ad,forEachExternalModuleToImportFrom:()=>Rve,forEachImportClauseDeclaration:()=>R6e,forEachKey:()=>Ix,forEachLeadingCommentRange:()=>A4,forEachNameInAccessChainWalkingLeft:()=>b4e,forEachNameOfDefaultExport:()=>_ae,forEachOptionsSyntaxByName:()=>mge,forEachProjectReference:()=>tz,forEachPropertyAssignment:()=>JR,forEachResolvedProjectReference:()=>dge,forEachReturnStatement:()=>sC,forEachRight:()=>Re,forEachTrailingCommentRange:()=>w4,forEachTsConfigPropArray:()=>wG,forEachUnique:()=>dve,forEachYieldExpression:()=>h6e,formatColorAndReset:()=>IP,formatDiagnostic:()=>w0e,formatDiagnostics:()=>$_t,formatDiagnosticsWithColorAndContext:()=>OOe,formatGeneratedName:()=>IA,formatGeneratedNamePart:()=>wL,formatLocation:()=>I0e,formatMessage:()=>nF,formatStringFromArgs:()=>Mx,formatting:()=>rd,generateDjb2Hash:()=>qk,generateTSConfig:()=>WNe,getAdjustedReferenceLocation:()=>W1e,getAdjustedRenameLocation:()=>Moe,getAliasDeclarationFromName:()=>Zme,getAllAccessorDeclarations:()=>uP,getAllDecoratorsOfClass:()=>o0e,getAllDecoratorsOfClassElement:()=>Uie,getAllJSDocTags:()=>Mte,getAllJSDocTagsOfKind:()=>Nct,getAllKeys:()=>aS,getAllProjectOutputs:()=>Wie,getAllSuperTypeNodes:()=>EU,getAllowImportingTsExtensions:()=>A4e,getAllowJSCompilerOption:()=>fC,getAllowSyntheticDefaultImports:()=>iF,getAncestor:()=>mA,getAnyExtensionFromPath:()=>nE,getAreDeclarationMapsEnabled:()=>one,getAssignedExpandoInitializer:()=>zO,getAssignedName:()=>Q$,getAssignmentDeclarationKind:()=>m_,getAssignmentDeclarationPropertyAccessKind:()=>UG,getAssignmentTargetKind:()=>cC,getAutomaticTypeDirectiveNames:()=>kie,getBaseFileName:()=>t_,getBinaryOperatorPrecedence:()=>eH,getBuildInfo:()=>S0e,getBuildInfoFileVersionMap:()=>J0e,getBuildInfoText:()=>bOe,getBuildOrderFromAnyBuildOrder:()=>FK,getBuilderCreationParameters:()=>soe,getBuilderFileEmit:()=>AC,getCanonicalDiagnostic:()=>d6e,getCheckFlags:()=>Fp,getClassExtendsHeritageElement:()=>aP,getClassLikeDeclarationOfSymbol:()=>JT,getCombinedLocalAndExportSymbolFlags:()=>iL,getCombinedModifierFlags:()=>Ra,getCombinedNodeFlags:()=>dd,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>_u,getCommentRange:()=>DS,getCommonSourceDirectory:()=>jz,getCommonSourceDirectoryOfConfig:()=>S3,getCompilerOptionValue:()=>cne,getConditions:()=>EC,getConfigFileParsingDiagnostics:()=>PP,getConstantValue:()=>b3e,getContainerFlags:()=>Bye,getContainerNode:()=>T3,getContainingClass:()=>Cf,getContainingClassExcludingClassDecorators:()=>yre,getContainingClassStaticBlock:()=>E6e,getContainingFunction:()=>My,getContainingFunctionDeclaration:()=>T6e,getContainingFunctionOrClassStaticBlock:()=>gre,getContainingNodeArray:()=>X4e,getContainingObjectLiteralElement:()=>dQ,getContextualTypeFromParent:()=>Xoe,getContextualTypeFromParentOrAncestorTypeNode:()=>Loe,getDeclarationDiagnostics:()=>hOe,getDeclarationEmitExtensionForPath:()=>$re,getDeclarationEmitOutputFilePath:()=>Q6e,getDeclarationEmitOutputFilePathWorker:()=>Bre,getDeclarationFileExtension:()=>sie,getDeclarationFromName:()=>TU,getDeclarationModifierFlagsFromSymbol:()=>S0,getDeclarationOfKind:()=>Qu,getDeclarationsOfKind:()=>VPe,getDeclaredExpandoInitializer:()=>vU,getDecorators:()=>yb,getDefaultCompilerOptions:()=>Aae,getDefaultFormatCodeSettings:()=>Coe,getDefaultLibFileName:()=>kn,getDefaultLibFilePath:()=>x9e,getDefaultLikeExportInfo:()=>pae,getDefaultLikeExportNameFromDeclaration:()=>wve,getDefaultResolutionModeForFileWorker:()=>roe,getDiagnosticText:()=>Jh,getDiagnosticsWithinSpan:()=>M7e,getDirectoryPath:()=>mo,getDirectoryToWatchFailedLookupLocation:()=>H0e,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>iFe,getDocumentPositionMapper:()=>qve,getDocumentSpansEqualityComparer:()=>_ve,getESModuleInterop:()=>kS,getEditsForFileRename:()=>G7e,getEffectiveBaseTypeNode:()=>vv,getEffectiveConstraintOfTypeParameter:()=>NR,getEffectiveContainerForJSDocTemplateTag:()=>Ire,getEffectiveImplementsTypeNodes:()=>ZR,getEffectiveInitializer:()=>jG,getEffectiveJSDocHost:()=>fA,getEffectiveModifierFlags:()=>tm,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>o4e,getEffectiveModifierFlagsNoCache:()=>a4e,getEffectiveReturnTypeNode:()=>jg,getEffectiveSetAccessorTypeAnnotationNode:()=>ghe,getEffectiveTypeAnnotationNode:()=>X_,getEffectiveTypeParameterDeclarations:()=>Zk,getEffectiveTypeRoots:()=>Tz,getElementOrPropertyAccessArgumentExpressionOrName:()=>wre,getElementOrPropertyAccessName:()=>BT,getElementsOfBindingOrAssignmentPattern:()=>AL,getEmitDeclarations:()=>fg,getEmitFlags:()=>Xc,getEmitHelpers:()=>bge,getEmitModuleDetectionKind:()=>w4e,getEmitModuleFormatOfFileWorker:()=>zz,getEmitModuleKind:()=>Km,getEmitModuleResolutionKind:()=>km,getEmitScriptTarget:()=>$c,getEmitStandardClassFields:()=>$he,getEnclosingBlockScopeContainer:()=>yv,getEnclosingContainer:()=>lre,getEncodedSemanticClassifications:()=>Lve,getEncodedSyntacticClassifications:()=>Mve,getEndLinePosition:()=>vG,getEntityNameFromTypeNode:()=>NG,getEntrypointsFromPackageJsonInfo:()=>Fye,getErrorCountForSummary:()=>uoe,getErrorSpanForNode:()=>$4,getErrorSummaryText:()=>X0e,getEscapedTextOfIdentifierOrLiteral:()=>DU,getEscapedTextOfJsxAttributeName:()=>YU,getEscapedTextOfJsxNamespacedName:()=>cF,getExpandoInitializer:()=>_A,getExportAssignmentExpression:()=>Xme,getExportInfoMap:()=>oQ,getExportNeedsImportStarHelper:()=>M8e,getExpressionAssociativity:()=>ohe,getExpressionPrecedence:()=>wU,getExternalHelpersModuleName:()=>WH,getExternalModuleImportEqualsDeclarationExpression:()=>hU,getExternalModuleName:()=>JO,getExternalModuleNameFromDeclaration:()=>H6e,getExternalModuleNameFromPath:()=>_he,getExternalModuleNameLiteral:()=>kF,getExternalModuleRequireArgument:()=>Ume,getFallbackOptions:()=>CK,getFileEmitOutput:()=>jOe,getFileMatcherPatterns:()=>dne,getFileNamesFromConfigSpecs:()=>bz,getFileWatcherEventKind:()=>S4,getFilesInErrorForSummary:()=>poe,getFirstConstructorWithBody:()=>Rx,getFirstIdentifier:()=>_h,getFirstNonSpaceCharacterPosition:()=>w7e,getFirstProjectOutput:()=>g0e,getFixableErrorSpanExpression:()=>Cve,getFormatCodeSettingsForWriting:()=>cae,getFullWidth:()=>gG,getFunctionFlags:()=>A_,getHeritageClause:()=>ZG,getHostSignatureFromJSDoc:()=>dA,getIdentifierAutoGenerate:()=>Nlt,getIdentifierGeneratedImportReference:()=>D3e,getIdentifierTypeArguments:()=>t3,getImmediatelyInvokedFunctionExpression:()=>uA,getImpliedNodeFormatForEmitWorker:()=>b3,getImpliedNodeFormatForFile:()=>AK,getImpliedNodeFormatForFileWorker:()=>toe,getImportNeedsImportDefaultHelper:()=>r0e,getImportNeedsImportStarHelper:()=>Mie,getIndentString:()=>jre,getInferredLibraryNameResolveFrom:()=>eoe,getInitializedVariables:()=>MU,getInitializerOfBinaryExpression:()=>Vme,getInitializerOfBindingOrAssignmentElement:()=>HH,getInterfaceBaseTypeNodes:()=>kU,getInternalEmitFlags:()=>J1,getInvokedExpression:()=>bre,getIsFileExcluded:()=>z7e,getIsolatedModules:()=>a1,getJSDocAugmentsTag:()=>Ote,getJSDocClassTag:()=>X$,getJSDocCommentRanges:()=>Lme,getJSDocCommentsAndTags:()=>Wme,getJSDocDeprecatedTag:()=>cu,getJSDocDeprecatedTagNoCache:()=>kf,getJSDocEnumTag:()=>U1,getJSDocHost:()=>iP,getJSDocImplementsTags:()=>Fte,getJSDocOverloadTags:()=>Hme,getJSDocOverrideTagNoCache:()=>ml,getJSDocParameterTags:()=>P4,getJSDocParameterTagsNoCache:()=>Ite,getJSDocPrivateTag:()=>GI,getJSDocPrivateTagNoCache:()=>Ln,getJSDocProtectedTag:()=>ao,getJSDocProtectedTagNoCache:()=>lo,getJSDocPublicTag:()=>N4,getJSDocPublicTagNoCache:()=>Rte,getJSDocReadonlyTag:()=>aa,getJSDocReadonlyTagNoCache:()=>ta,getJSDocReturnTag:()=>Y0,getJSDocReturnType:()=>iG,getJSDocRoot:()=>QR,getJSDocSatisfiesExpressionType:()=>age,getJSDocSatisfiesTag:()=>IO,getJSDocTags:()=>sA,getJSDocTemplateTag:()=>LT,getJSDocThisTag:()=>d0,getJSDocType:()=>hv,getJSDocTypeAliasName:()=>Yge,getJSDocTypeAssertionType:()=>CL,getJSDocTypeParameterDeclarations:()=>Vre,getJSDocTypeParameterTags:()=>Pte,getJSDocTypeParameterTagsNoCache:()=>Z$,getJSDocTypeTag:()=>mv,getJSXImplicitImportBase:()=>yH,getJSXRuntimeImport:()=>une,getJSXTransformEnabled:()=>lne,getKeyForCompilerOptions:()=>wye,getLanguageVariant:()=>_H,getLastChild:()=>Ohe,getLeadingCommentRanges:()=>my,getLeadingCommentRangesOfNode:()=>Rme,getLeftmostAccessExpression:()=>oL,getLeftmostExpression:()=>aL,getLibFileNameFromLibReference:()=>_ge,getLibNameFromLibReference:()=>pge,getLibraryNameFromLibFileName:()=>F0e,getLineAndCharacterOfPosition:()=>qs,getLineInfo:()=>Yye,getLineOfLocalPosition:()=>PU,getLineStartPositionForPosition:()=>p1,getLineStarts:()=>Ry,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>y4e,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>g4e,getLinesBetweenPositions:()=>zI,getLinesBetweenRangeEndAndRangeStart:()=>Ahe,getLinesBetweenRangeEndPositions:()=>slt,getLiteralText:()=>t6e,getLocalNameForExternalImport:()=>DL,getLocalSymbolForExportDefault:()=>RU,getLocaleSpecificMessage:()=>As,getLocaleTimeString:()=>OK,getMappedContextSpan:()=>fve,getMappedDocumentSpan:()=>Koe,getMappedLocation:()=>Xz,getMatchedFileSpec:()=>r1e,getMatchedIncludeSpec:()=>n1e,getMeaningFromDeclaration:()=>Aoe,getMeaningFromLocation:()=>x3,getMembersOfDeclaration:()=>g6e,getModeForFileReference:()=>FOe,getModeForResolutionAtIndex:()=>W_t,getModeForUsageLocation:()=>N0e,getModifiedTime:()=>OT,getModifiers:()=>Qk,getModuleInstanceState:()=>KT,getModuleNameStringLiteralAt:()=>IK,getModuleSpecifierEndingPreference:()=>z4e,getModuleSpecifierResolverHost:()=>ove,getNameForExportedSymbol:()=>oae,getNameFromImportAttribute:()=>Cne,getNameFromIndexInfo:()=>l6e,getNameFromPropertyName:()=>HK,getNameOfAccessExpression:()=>Rhe,getNameOfCompilerOptionValue:()=>hie,getNameOfDeclaration:()=>cs,getNameOfExpando:()=>zme,getNameOfJSDocTypedef:()=>Ate,getNameOfScriptTarget:()=>sne,getNameOrArgument:()=>$G,getNameTable:()=>vSe,getNamespaceDeclarationNode:()=>HR,getNewLineCharacter:()=>fE,getNewLineKind:()=>iQ,getNewLineOrDefaultFromHost:()=>ZT,getNewTargetContainer:()=>C6e,getNextJSDocCommentLocation:()=>Gme,getNodeChildren:()=>Jge,getNodeForGeneratedName:()=>QH,getNodeId:()=>hl,getNodeKind:()=>NP,getNodeModifiers:()=>Kz,getNodeModulePathParts:()=>Tne,getNonAssignedNameOfDeclaration:()=>PR,getNonAssignmentOperatorForCompoundAssignment:()=>Pz,getNonAugmentationDeclaration:()=>Ame,getNonDecoratorTokenPosOfNode:()=>xme,getNonIncrementalBuildInfoRoots:()=>YOe,getNonModifierTokenPosOfNode:()=>YPe,getNormalizedAbsolutePath:()=>za,getNormalizedAbsolutePathWithoutRoot:()=>ER,getNormalizedPathComponents:()=>Jk,getObjectFlags:()=>ro,getOperatorAssociativity:()=>ahe,getOperatorPrecedence:()=>YG,getOptionFromName:()=>mye,getOptionsForLibraryResolution:()=>Iye,getOptionsNameMap:()=>PL,getOptionsSyntaxByArrayElementValue:()=>fge,getOptionsSyntaxByValue:()=>u3e,getOrCreateEmitNode:()=>nm,getOrUpdate:()=>hs,getOriginalNode:()=>Ku,getOriginalNodeId:()=>gh,getOutputDeclarationFileName:()=>Mz,getOutputDeclarationFileNameWorker:()=>m0e,getOutputExtension:()=>TK,getOutputFileNames:()=>j_t,getOutputJSFileNameWorker:()=>h0e,getOutputPathsFor:()=>Lz,getOwnEmitOutputFilePath:()=>K6e,getOwnKeys:()=>Lu,getOwnValues:()=>sS,getPackageJsonTypesVersionsPaths:()=>Eie,getPackageNameFromTypesPackageName:()=>Dz,getPackageScopeForPath:()=>Cz,getParameterSymbolFromJSDoc:()=>GG,getParentNodeInSpan:()=>QK,getParseTreeNode:()=>vs,getParsedCommandLineOfConfigFile:()=>rK,getPathComponents:()=>Cd,getPathFromPathComponents:()=>pS,getPathUpdater:()=>$ve,getPathsBasePath:()=>Ure,getPatternFromSpec:()=>Vhe,getPendingEmitKindWithSeen:()=>aoe,getPositionOfLineAndCharacter:()=>C4,getPossibleGenericSignatures:()=>H1e,getPossibleOriginalInputExtensionForExtension:()=>dhe,getPossibleOriginalInputPathWithoutChangingExt:()=>fhe,getPossibleTypeArgumentsInfo:()=>K1e,getPreEmitDiagnostics:()=>B_t,getPrecedingNonSpaceCharacterPosition:()=>Qoe,getPrivateIdentifier:()=>a0e,getProperties:()=>i0e,getProperty:()=>Q0,getPropertyAssignmentAliasLikeExpression:()=>z6e,getPropertyNameForPropertyNameNode:()=>H4,getPropertyNameFromType:()=>x0,getPropertyNameOfBindingOrAssignmentElement:()=>Xge,getPropertySymbolFromBindingElement:()=>Hoe,getPropertySymbolsFromContextualType:()=>Iae,getQuoteFromPreference:()=>sve,getQuotePreference:()=>Vg,getRangesWhere:()=>ou,getRefactorContextSpan:()=>$F,getReferencedFileLocation:()=>Uz,getRegexFromPattern:()=>mE,getRegularExpressionForWildcard:()=>zU,getRegularExpressionsForWildcards:()=>pne,getRelativePathFromDirectory:()=>lh,getRelativePathFromFile:()=>Vk,getRelativePathToDirectoryOrUrl:()=>FT,getRenameLocation:()=>XK,getReplacementSpanForContextToken:()=>Y1e,getResolutionDiagnostic:()=>j0e,getResolutionModeOverride:()=>$L,getResolveJsonModule:()=>_P,getResolvePackageJsonExports:()=>fH,getResolvePackageJsonImports:()=>mH,getResolvedExternalModuleName:()=>phe,getResolvedModuleFromResolution:()=>jO,getResolvedTypeReferenceDirectiveFromResolution:()=>tre,getRestIndicatorOfBindingOrAssignmentElement:()=>rie,getRestParameterElementType:()=>Mme,getRightMostAssignedExpression:()=>BG,getRootDeclaration:()=>bS,getRootDirectoryOfResolutionCache:()=>oFe,getRootLength:()=>Fy,getScriptKind:()=>yve,getScriptKindFromFileName:()=>mne,getScriptTargetFeatures:()=>Tme,getSelectedEffectiveModifierFlags:()=>QO,getSelectedSyntacticModifierFlags:()=>n4e,getSemanticClassifications:()=>q7e,getSemanticJsxChildren:()=>YR,getSetAccessorTypeAnnotationNode:()=>X6e,getSetAccessorValueParameter:()=>NU,getSetExternalModuleIndicator:()=>dH,getShebang:()=>VI,getSingleVariableOfVariableStatement:()=>GO,getSnapshotText:()=>BF,getSnippetElement:()=>xge,getSourceFileOfModule:()=>yG,getSourceFileOfNode:()=>Pn,getSourceFilePathInNewDir:()=>qre,getSourceFileVersionAsHashFromText:()=>doe,getSourceFilesToEmit:()=>zre,getSourceMapRange:()=>yE,getSourceMapper:()=>o5e,getSourceTextOfNodeFromSourceFile:()=>XI,getSpanOfTokenAtPosition:()=>gS,getSpellingSuggestion:()=>xx,getStartPositionOfLine:()=>iC,getStartPositionOfRange:()=>LU,getStartsOnNewLine:()=>rz,getStaticPropertiesAndClassStaticBlock:()=>$ie,getStrictOptionValue:()=>rm,getStringComparer:()=>ub,getSubPatternFromSpec:()=>_ne,getSuperCallFromStatement:()=>jie,getSuperContainer:()=>IG,getSupportedCodeFixes:()=>gSe,getSupportedExtensions:()=>qU,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>SH,getSwitchedType:()=>bve,getSymbolId:()=>hc,getSymbolNameForPrivateIdentifier:()=>XG,getSymbolTarget:()=>vve,getSyntacticClassifications:()=>J7e,getSyntacticModifierFlags:()=>_E,getSyntacticModifierFlagsNoCache:()=>She,getSynthesizedDeepClone:()=>Il,getSynthesizedDeepCloneWithReplacements:()=>wH,getSynthesizedDeepClones:()=>hP,getSynthesizedDeepClonesWithReplacements:()=>hge,getSyntheticLeadingComments:()=>_L,getSyntheticTrailingComments:()=>FH,getTargetLabel:()=>Poe,getTargetOfBindingOrAssignmentElement:()=>xC,getTemporaryModuleResolutionState:()=>kz,getTextOfConstantValue:()=>r6e,getTextOfIdentifierOrLiteral:()=>g0,getTextOfJSDocComment:()=>oG,getTextOfJsxAttributeName:()=>DH,getTextOfJsxNamespacedName:()=>ez,getTextOfNode:()=>Sp,getTextOfNodeFromSourceText:()=>uU,getTextOfPropertyName:()=>UO,getThisContainer:()=>Hm,getThisParameter:()=>cP,getTokenAtPosition:()=>la,getTokenPosOfNode:()=>oC,getTokenSourceMapRange:()=>Ilt,getTouchingPropertyName:()=>Vh,getTouchingToken:()=>KL,getTrailingCommentRanges:()=>hb,getTrailingSemicolonDeferringWriter:()=>uhe,getTransformers:()=>yOe,getTsBuildInfoEmitOutputFilePath:()=>LA,getTsConfigObjectLiteralExpression:()=>fU,getTsConfigPropArrayElementValue:()=>hre,getTypeAnnotationNode:()=>Y6e,getTypeArgumentOrTypeParameterList:()=>_7e,getTypeKeywordOfTypeOnlyImport:()=>uve,getTypeNode:()=>k3e,getTypeNodeIfAccessible:()=>nq,getTypeParameterFromJsDoc:()=>L6e,getTypeParameterOwner:()=>z,getTypesPackageName:()=>Pie,getUILocale:()=>Fk,getUniqueName:()=>k3,getUniqueSymbolId:()=>A7e,getUseDefineForClassFields:()=>hH,getWatchErrorSummaryDiagnosticMessage:()=>Z0e,getWatchFactory:()=>E0e,group:()=>Pg,groupBy:()=>Du,guessIndentation:()=>zPe,handleNoEmitOptions:()=>M0e,handleWatchOptionsConfigDirTemplateSubstitution:()=>yie,hasAbstractModifier:()=>pP,hasAccessorModifier:()=>xS,hasAmbientModifier:()=>vhe,hasChangesInResolutions:()=>vme,hasContextSensitiveParameters:()=>xne,hasDecorators:()=>By,hasDocComment:()=>u7e,hasDynamicName:()=>$T,hasEffectiveModifier:()=>Bg,hasEffectiveModifiers:()=>yhe,hasEffectiveReadonlyModifier:()=>Q4,hasExtension:()=>eA,hasImplementationTSFileExtension:()=>$4e,hasIndexSignature:()=>Sve,hasInferredType:()=>Ane,hasInitializer:()=>lE,hasInvalidEscape:()=>che,hasJSDocNodes:()=>hy,hasJSDocParameterTags:()=>Nte,hasJSFileExtension:()=>jx,hasJsonModuleEmitEnabled:()=>ane,hasOnlyExpressionInitializer:()=>j4,hasOverrideModifier:()=>Wre,hasPossibleExternalModuleReference:()=>s6e,hasProperty:()=>Ho,hasPropertyAccessExpressionWithName:()=>$K,hasQuestionToken:()=>VO,hasRecordedExternalHelpers:()=>pNe,hasResolutionModeOverride:()=>n3e,hasRestParameter:()=>fme,hasScopeMarker:()=>OPe,hasStaticModifier:()=>fd,hasSyntacticModifier:()=>ko,hasSyntacticModifiers:()=>r4e,hasTSFileExtension:()=>X4,hasTabstop:()=>e3e,hasTrailingDirectorySeparator:()=>uS,hasType:()=>Qte,hasTypeArguments:()=>Zct,hasZeroOrOneAsteriskCharacter:()=>Uhe,hostGetCanonicalFileName:()=>UT,hostUsesCaseSensitiveFileNames:()=>K4,idText:()=>Zi,identifierIsThisKeyword:()=>hhe,identifierToKeywordKind:()=>aA,identity:()=>vl,identitySourceMapConsumer:()=>t0e,ignoreSourceNewlines:()=>Ege,ignoredPaths:()=>b4,importFromModuleSpecifier:()=>bU,importSyntaxAffectsModuleResolution:()=>Bhe,indexOfAnyCharCode:()=>xo,indexOfNode:()=>BR,indicesOf:()=>zp,inferredTypesContainingFile:()=>$z,injectClassNamedEvaluationHelperBlockIfMissing:()=>Jie,injectClassThisAssignmentIfMissing:()=>V8e,insertImports:()=>lve,insertSorted:()=>vm,insertStatementAfterCustomPrologue:()=>B4,insertStatementAfterStandardPrologue:()=>Jct,insertStatementsAfterCustomPrologue:()=>Sme,insertStatementsAfterStandardPrologue:()=>Px,intersperse:()=>tr,intrinsicTagNameToString:()=>sge,introducesArgumentsExoticObject:()=>S6e,inverseJsxOptionMap:()=>eK,isAbstractConstructorSymbol:()=>v4e,isAbstractModifier:()=>M3e,isAccessExpression:()=>wu,isAccessibilityModifier:()=>Z1e,isAccessor:()=>tC,isAccessorModifier:()=>Ige,isAliasableExpression:()=>Pre,isAmbientModule:()=>Gm,isAmbientPropertyDeclaration:()=>Ime,isAnyDirectorySeparator:()=>XD,isAnyImportOrBareOrAccessedRequire:()=>o6e,isAnyImportOrReExport:()=>xG,isAnyImportOrRequireStatement:()=>a6e,isAnyImportSyntax:()=>$O,isAnySupportedFileExtension:()=>blt,isApplicableVersionedTypesKey:()=>uK,isArgumentExpressionOfElementAccess:()=>$1e,isArray:()=>Zn,isArrayBindingElement:()=>Jte,isArrayBindingOrAssignmentElement:()=>pG,isArrayBindingOrAssignmentPattern:()=>cme,isArrayBindingPattern:()=>xE,isArrayLiteralExpression:()=>qf,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>kE,isArrayTypeNode:()=>jH,isArrowFunction:()=>Iu,isAsExpression:()=>gL,isAssertClause:()=>V3e,isAssertEntry:()=>Ult,isAssertionExpression:()=>ZI,isAssertsKeyword:()=>R3e,isAssignmentDeclaration:()=>yU,isAssignmentExpression:()=>of,isAssignmentOperator:()=>zT,isAssignmentPattern:()=>aU,isAssignmentTarget:()=>lC,isAsteriskToken:()=>LH,isAsyncFunction:()=>CU,isAsyncModifier:()=>oz,isAutoAccessorPropertyDeclaration:()=>Mh,isAwaitExpression:()=>SC,isAwaitKeyword:()=>wge,isBigIntLiteral:()=>dL,isBinaryExpression:()=>wi,isBinaryLogicalOperator:()=>iH,isBinaryOperatorToken:()=>vNe,isBindableObjectDefinePropertyCall:()=>J4,isBindableStaticAccessExpression:()=>nP,isBindableStaticElementAccessExpression:()=>Are,isBindableStaticNameExpression:()=>V4,isBindingElement:()=>Vc,isBindingElementOfBareOrAccessedRequire:()=>w6e,isBindingName:()=>L4,isBindingOrAssignmentElement:()=>wPe,isBindingOrAssignmentPattern:()=>lG,isBindingPattern:()=>$s,isBlock:()=>Vs,isBlockLike:()=>UF,isBlockOrCatchScoped:()=>Eme,isBlockScope:()=>Pme,isBlockScopedContainerTopLevel:()=>i6e,isBooleanLiteral:()=>oU,isBreakOrContinueStatement:()=>tU,isBreakStatement:()=>jlt,isBuildCommand:()=>DFe,isBuildInfoFile:()=>vOe,isBuilderProgram:()=>Y0e,isBundle:()=>K3e,isCallChain:()=>O4,isCallExpression:()=>Js,isCallExpressionTarget:()=>F1e,isCallLikeExpression:()=>QI,isCallLikeOrFunctionLikeExpression:()=>lme,isCallOrNewExpression:()=>mS,isCallOrNewExpressionTarget:()=>R1e,isCallSignatureDeclaration:()=>hF,isCallToHelper:()=>iz,isCaseBlock:()=>_z,isCaseClause:()=>bL,isCaseKeyword:()=>B3e,isCaseOrDefaultClause:()=>Hte,isCatchClause:()=>TP,isCatchClauseVariableDeclaration:()=>Y4e,isCatchClauseVariableDeclarationOrBindingElement:()=>kme,isCheckJsEnabledForFile:()=>WU,isCircularBuildOrder:()=>MF,isClassDeclaration:()=>ed,isClassElement:()=>J_,isClassExpression:()=>w_,isClassInstanceProperty:()=>DPe,isClassLike:()=>Co,isClassMemberModifier:()=>ome,isClassNamedEvaluationHelperBlock:()=>FF,isClassOrTypeElement:()=>qte,isClassStaticBlockDeclaration:()=>n_,isClassThisAssignmentBlock:()=>Oz,isColonToken:()=>O3e,isCommaExpression:()=>VH,isCommaListExpression:()=>uz,isCommaSequence:()=>gz,isCommaToken:()=>N3e,isComment:()=>Uoe,isCommonJsExportPropertyAssignment:()=>fre,isCommonJsExportedExpression:()=>y6e,isCompoundAssignment:()=>Iz,isComputedNonLiteralName:()=>TG,isComputedPropertyName:()=>dc,isConciseBody:()=>Wte,isConditionalExpression:()=>a3,isConditionalTypeNode:()=>yP,isConstAssertion:()=>cge,isConstTypeReference:()=>z1,isConstructSignatureDeclaration:()=>cz,isConstructorDeclaration:()=>kp,isConstructorTypeNode:()=>fL,isContextualKeyword:()=>Ore,isContinueStatement:()=>Mlt,isCustomPrologue:()=>AG,isDebuggerStatement:()=>Blt,isDeclaration:()=>Vd,isDeclarationBindingElement:()=>cG,isDeclarationFileName:()=>sf,isDeclarationName:()=>Eb,isDeclarationNameOfEnumOrNamespace:()=>Ihe,isDeclarationReadonly:()=>kG,isDeclarationStatement:()=>MPe,isDeclarationWithTypeParameterChildren:()=>Ome,isDeclarationWithTypeParameters:()=>Nme,isDecorator:()=>hd,isDecoratorTarget:()=>YFe,isDefaultClause:()=>dz,isDefaultImport:()=>W4,isDefaultModifier:()=>$ne,isDefaultedExpandoInitializer:()=>I6e,isDeleteExpression:()=>U3e,isDeleteTarget:()=>Qme,isDeprecatedDeclaration:()=>aae,isDestructuringAssignment:()=>dE,isDiskPathRoot:()=>jI,isDoStatement:()=>Llt,isDocumentRegistryEntry:()=>aQ,isDotDotDotToken:()=>jne,isDottedName:()=>aH,isDynamicName:()=>Rre,isEffectiveExternalModule:()=>$R,isEffectiveStrictModeSourceFile:()=>wme,isElementAccessChain:()=>Yfe,isElementAccessExpression:()=>mu,isEmittedFileOfProgram:()=>COe,isEmptyArrayLiteral:()=>u4e,isEmptyBindingElement:()=>bt,isEmptyBindingPattern:()=>Ie,isEmptyObjectLiteral:()=>khe,isEmptyStatement:()=>Oge,isEmptyStringLiteral:()=>$me,isEntityName:()=>uh,isEntityNameExpression:()=>ru,isEnumConst:()=>lA,isEnumDeclaration:()=>CA,isEnumMember:()=>GT,isEqualityOperatorKind:()=>Yoe,isEqualsGreaterThanToken:()=>F3e,isExclamationToken:()=>MH,isExcludedFile:()=>HNe,isExclusivelyTypeOnlyImportOrExport:()=>P0e,isExpandoPropertyDeclaration:()=>lF,isExportAssignment:()=>Xu,isExportDeclaration:()=>P_,isExportModifier:()=>fF,isExportName:()=>eie,isExportNamespaceAsDefaultDeclaration:()=>are,isExportOrDefaultModifier:()=>KH,isExportSpecifier:()=>Cm,isExportsIdentifier:()=>q4,isExportsOrModuleExportsOrAlias:()=>CP,isExpression:()=>Vt,isExpressionNode:()=>Tb,isExpressionOfExternalModuleImportEqualsDeclaration:()=>r7e,isExpressionOfOptionalChainRoot:()=>Bte,isExpressionStatement:()=>af,isExpressionWithTypeArguments:()=>VT,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Hre,isExternalModule:()=>yd,isExternalModuleAugmentation:()=>eP,isExternalModuleImportEqualsDeclaration:()=>pA,isExternalModuleIndicator:()=>dG,isExternalModuleNameRelative:()=>vt,isExternalModuleReference:()=>WT,isExternalModuleSymbol:()=>LO,isExternalOrCommonJsModule:()=>Lg,isFileLevelReservedGeneratedIdentifier:()=>sG,isFileLevelUniqueName:()=>ire,isFileProbablyExternalModule:()=>XH,isFirstDeclarationOfSymbolParameter:()=>mve,isFixablePromiseHandler:()=>Wve,isForInOrOfStatement:()=>M4,isForInStatement:()=>Vne,isForInitializer:()=>f0,isForOfStatement:()=>$H,isForStatement:()=>kA,isFullSourceFile:()=>Ox,isFunctionBlock:()=>tP,isFunctionBody:()=>pme,isFunctionDeclaration:()=>i_,isFunctionExpression:()=>bu,isFunctionExpressionOrArrowFunction:()=>mC,isFunctionLike:()=>Rs,isFunctionLikeDeclaration:()=>lu,isFunctionLikeKind:()=>NO,isFunctionLikeOrClassStaticBlockDeclaration:()=>RR,isFunctionOrConstructorTypeNode:()=>APe,isFunctionOrModuleBlock:()=>ame,isFunctionSymbol:()=>O6e,isFunctionTypeNode:()=>Cb,isGeneratedIdentifier:()=>ap,isGeneratedPrivateIdentifier:()=>R4,isGetAccessor:()=>Ax,isGetAccessorDeclaration:()=>T0,isGetOrSetAccessorDeclaration:()=>aG,isGlobalScopeAugmentation:()=>xb,isGlobalSourceFile:()=>uE,isGrammarError:()=>ZPe,isHeritageClause:()=>zg,isHoistedFunction:()=>_re,isHoistedVariableStatement:()=>dre,isIdentifier:()=>ct,isIdentifierANonContextualKeyword:()=>the,isIdentifierName:()=>U6e,isIdentifierOrThisTypeNode:()=>mNe,isIdentifierPart:()=>j1,isIdentifierStart:()=>pg,isIdentifierText:()=>Jd,isIdentifierTypePredicate:()=>b6e,isIdentifierTypeReference:()=>H4e,isIfStatement:()=>EA,isIgnoredFileFromWildCardWatching:()=>kK,isImplicitGlob:()=>Jhe,isImportAttribute:()=>W3e,isImportAttributeName:()=>CPe,isImportAttributes:()=>l3,isImportCall:()=>Bh,isImportClause:()=>H1,isImportDeclaration:()=>fp,isImportEqualsDeclaration:()=>gd,isImportKeyword:()=>sz,isImportMeta:()=>qR,isImportOrExportSpecifier:()=>Yk,isImportOrExportSpecifierName:()=>D7e,isImportSpecifier:()=>Xm,isImportTypeAssertionContainer:()=>$lt,isImportTypeNode:()=>AS,isImportable:()=>Fve,isInComment:()=>EE,isInCompoundLikeAssignment:()=>Kme,isInExpressionContext:()=>xre,isInJSDoc:()=>gU,isInJSFile:()=>Ei,isInJSXText:()=>l7e,isInJsonFile:()=>Ere,isInNonReferenceComment:()=>m7e,isInReferenceComment:()=>f7e,isInRightSideOfInternalImportEqualsDeclaration:()=>woe,isInString:()=>jF,isInTemplateString:()=>G1e,isInTopLevelContext:()=>vre,isInTypeQuery:()=>KO,isIncrementalBuildInfo:()=>PK,isIncrementalBundleEmitBuildInfo:()=>GOe,isIncrementalCompilation:()=>dP,isIndexSignatureDeclaration:()=>vC,isIndexedAccessTypeNode:()=>vP,isInferTypeNode:()=>n3,isInfinityOrNaNString:()=>ZU,isInitializedProperty:()=>mK,isInitializedVariable:()=>pH,isInsideJsxElement:()=>Boe,isInsideJsxElementOrAttribute:()=>c7e,isInsideNodeModules:()=>tQ,isInsideTemplateLiteral:()=>VK,isInstanceOfExpression:()=>Kre,isInstantiatedModule:()=>Hye,isInterfaceDeclaration:()=>Af,isInternalDeclaration:()=>qPe,isInternalModuleImportEqualsDeclaration:()=>z4,isInternalName:()=>Kge,isIntersectionTypeNode:()=>vF,isIntrinsicJsxName:()=>eL,isIterationStatement:()=>rC,isJSDoc:()=>kv,isJSDocAllType:()=>X3e,isJSDocAugmentsTag:()=>EF,isJSDocAuthorTag:()=>Vlt,isJSDocCallbackTag:()=>Mge,isJSDocClassTag:()=>eNe,isJSDocCommentContainingNode:()=>Kte,isJSDocConstructSignature:()=>WO,isJSDocDeprecatedTag:()=>zge,isJSDocEnumTag:()=>zH,isJSDocFunctionType:()=>TL,isJSDocImplementsTag:()=>Zne,isJSDocImportTag:()=>OS,isJSDocIndexSignature:()=>Cre,isJSDocLikeText:()=>iye,isJSDocLink:()=>Q3e,isJSDocLinkCode:()=>Z3e,isJSDocLinkLike:()=>RO,isJSDocLinkPlain:()=>qlt,isJSDocMemberName:()=>wA,isJSDocNameReference:()=>fz,isJSDocNamepathType:()=>Jlt,isJSDocNamespaceBody:()=>Mct,isJSDocNode:()=>LR,isJSDocNonNullableType:()=>Gne,isJSDocNullableType:()=>xL,isJSDocOptionalParameter:()=>Ene,isJSDocOptionalType:()=>Lge,isJSDocOverloadTag:()=>EL,isJSDocOverrideTag:()=>Kne,isJSDocParameterTag:()=>Uy,isJSDocPrivateTag:()=>Bge,isJSDocPropertyLikeTag:()=>rU,isJSDocPropertyTag:()=>tNe,isJSDocProtectedTag:()=>$ge,isJSDocPublicTag:()=>jge,isJSDocReadonlyTag:()=>Uge,isJSDocReturnTag:()=>Qne,isJSDocSatisfiesExpression:()=>oge,isJSDocSatisfiesTag:()=>Xne,isJSDocSeeTag:()=>Wlt,isJSDocSignature:()=>TE,isJSDocTag:()=>MR,isJSDocTemplateTag:()=>c1,isJSDocThisTag:()=>qge,isJSDocThrowsTag:()=>Hlt,isJSDocTypeAlias:()=>n1,isJSDocTypeAssertion:()=>EP,isJSDocTypeExpression:()=>AA,isJSDocTypeLiteral:()=>p3,isJSDocTypeTag:()=>mz,isJSDocTypedefTag:()=>_3,isJSDocUnknownTag:()=>Glt,isJSDocUnknownType:()=>Y3e,isJSDocVariadicType:()=>Hne,isJSXTagName:()=>WR,isJsonEqual:()=>Sne,isJsonSourceFile:()=>h0,isJsxAttribute:()=>NS,isJsxAttributeLike:()=>Gte,isJsxAttributeName:()=>r3e,isJsxAttributes:()=>xP,isJsxCallLike:()=>UPe,isJsxChild:()=>hG,isJsxClosingElement:()=>bP,isJsxClosingFragment:()=>H3e,isJsxElement:()=>PS,isJsxExpression:()=>SL,isJsxFragment:()=>DA,isJsxNamespacedName:()=>Ev,isJsxOpeningElement:()=>Tv,isJsxOpeningFragment:()=>K1,isJsxOpeningLikeElement:()=>Em,isJsxOpeningLikeElementTagName:()=>e7e,isJsxSelfClosingElement:()=>u3,isJsxSpreadAttribute:()=>TF,isJsxTagNameExpression:()=>sU,isJsxText:()=>_F,isJumpStatementTarget:()=>UK,isKeyword:()=>Uh,isKeywordOrPunctuation:()=>Nre,isKnownSymbol:()=>AU,isLabelName:()=>j1e,isLabelOfLabeledStatement:()=>M1e,isLabeledStatement:()=>bC,isLateVisibilityPaintedStatement:()=>cre,isLeftHandSideExpression:()=>jh,isLet:()=>pre,isLineBreak:()=>Dd,isLiteralComputedPropertyDeclarationName:()=>KG,isLiteralExpression:()=>F4,isLiteralExpressionOfObject:()=>nme,isLiteralImportTypeNode:()=>jT,isLiteralKind:()=>nU,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>Noe,isLiteralTypeLiteral:()=>NPe,isLiteralTypeNode:()=>bE,isLocalName:()=>HT,isLogicalOperator:()=>s4e,isLogicalOrCoalescingAssignmentExpression:()=>bhe,isLogicalOrCoalescingAssignmentOperator:()=>OU,isLogicalOrCoalescingBinaryExpression:()=>oH,isLogicalOrCoalescingBinaryOperator:()=>Gre,isMappedTypeNode:()=>o3,isMemberName:()=>Dx,isMetaProperty:()=>s3,isMethodDeclaration:()=>Ep,isMethodOrAccessor:()=>OO,isMethodSignature:()=>G1,isMinusToken:()=>Age,isMissingDeclaration:()=>zlt,isMissingPackageJsonInfo:()=>o8e,isModifier:()=>bc,isModifierKind:()=>eC,isModifierLike:()=>sp,isModuleAugmentationExternal:()=>Dme,isModuleBlock:()=>wS,isModuleBody:()=>FPe,isModuleDeclaration:()=>I_,isModuleExportName:()=>Wne,isModuleExportsAccessExpression:()=>Fx,isModuleIdentifier:()=>qme,isModuleName:()=>yNe,isModuleOrEnumDeclaration:()=>fG,isModuleReference:()=>BPe,isModuleSpecifierLike:()=>Goe,isModuleWithStringLiteralName:()=>sre,isNameOfFunctionDeclaration:()=>z1e,isNameOfModuleDeclaration:()=>U1e,isNamedDeclaration:()=>Vp,isNamedEvaluation:()=>Mg,isNamedEvaluationSource:()=>rhe,isNamedExportBindings:()=>tme,isNamedExports:()=>k0,isNamedImportBindings:()=>_me,isNamedImports:()=>IS,isNamedImportsOrExports:()=>tne,isNamedTupleMember:()=>mL,isNamespaceBody:()=>Lct,isNamespaceExport:()=>Db,isNamespaceExportDeclaration:()=>UH,isNamespaceImport:()=>zx,isNamespaceReexportDeclaration:()=>A6e,isNewExpression:()=>SP,isNewExpressionTarget:()=>Wz,isNewScopeNode:()=>l3e,isNoSubstitutionTemplateLiteral:()=>r3,isNodeArray:()=>HI,isNodeArrayMultiLine:()=>h4e,isNodeDescendantOf:()=>oP,isNodeKind:()=>Ute,isNodeLikeSystem:()=>rO,isNodeModulesDirectory:()=>CO,isNodeWithPossibleHoistedDeclaration:()=>B6e,isNonContextualKeyword:()=>ehe,isNonGlobalAmbientModule:()=>Cme,isNonNullAccess:()=>t3e,isNonNullChain:()=>$te,isNonNullExpression:()=>bF,isNonStaticMethodOrAccessorWithPrivateName:()=>j8e,isNotEmittedStatement:()=>G3e,isNullishCoalesce:()=>eme,isNumber:()=>Kn,isNumericLiteral:()=>qh,isNumericLiteralName:()=>$x,isObjectBindingElementWithoutPropertyName:()=>KK,isObjectBindingOrAssignmentElement:()=>uG,isObjectBindingOrAssignmentPattern:()=>sme,isObjectBindingPattern:()=>$y,isObjectLiteralElement:()=>dme,isObjectLiteralElementLike:()=>MT,isObjectLiteralExpression:()=>Lc,isObjectLiteralMethod:()=>r1,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>mre,isObjectTypeDeclaration:()=>eF,isOmittedExpression:()=>Id,isOptionalChain:()=>xm,isOptionalChainRoot:()=>Y$,isOptionalDeclaration:()=>sF,isOptionalJSDocPropertyLikeTag:()=>CH,isOptionalTypeNode:()=>Une,isOuterExpression:()=>tie,isOutermostOptionalChain:()=>eU,isOverrideModifier:()=>j3e,isPackageJsonInfo:()=>Cie,isPackedArrayLiteral:()=>nge,isParameter:()=>wa,isParameterPropertyDeclaration:()=>ne,isParameterPropertyModifier:()=>iU,isParenthesizedExpression:()=>mh,isParenthesizedTypeNode:()=>i3,isParseTreeNode:()=>I4,isPartOfParameterDeclaration:()=>hA,isPartOfTypeNode:()=>vS,isPartOfTypeOnlyImportOrExportDeclaration:()=>kPe,isPartOfTypeQuery:()=>Tre,isPartiallyEmittedExpression:()=>z3e,isPatternMatch:()=>L1,isPinnedComment:()=>ore,isPlainJsFile:()=>lU,isPlusToken:()=>Dge,isPossiblyTypeArgumentPosition:()=>JK,isPostfixUnaryExpression:()=>Nge,isPrefixUnaryExpression:()=>TA,isPrimitiveLiteralValue:()=>Dne,isPrivateIdentifier:()=>Aa,isPrivateIdentifierClassElementDeclaration:()=>Tm,isPrivateIdentifierPropertyAccessExpression:()=>FR,isPrivateIdentifierSymbol:()=>J6e,isProgramUptoDate:()=>R0e,isPrologueDirective:()=>yS,isPropertyAccessChain:()=>jte,isPropertyAccessEntityNameExpression:()=>sH,isPropertyAccessExpression:()=>no,isPropertyAccessOrQualifiedName:()=>_G,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>IPe,isPropertyAssignment:()=>td,isPropertyDeclaration:()=>ps,isPropertyName:()=>q_,isPropertyNameLiteral:()=>SS,isPropertySignature:()=>Zm,isPrototypeAccess:()=>_C,isPrototypePropertyAssignment:()=>zG,isPunctuation:()=>Yme,isPushOrUnshiftIdentifier:()=>nhe,isQualifiedName:()=>dh,isQuestionDotToken:()=>Bne,isQuestionOrExclamationToken:()=>fNe,isQuestionOrPlusOrMinusToken:()=>gNe,isQuestionToken:()=>yC,isReadonlyKeyword:()=>L3e,isReadonlyKeywordOrPlusOrMinusToken:()=>hNe,isRecognizedTripleSlashComment:()=>bme,isReferenceFileLocation:()=>UL,isReferencedFile:()=>MA,isRegularExpressionLiteral:()=>kge,isRequireCall:()=>$h,isRequireVariableStatement:()=>LG,isRestParameter:()=>Sb,isRestTypeNode:()=>zne,isReturnStatement:()=>gy,isReturnStatementWithFixablePromiseHandler:()=>fae,isRightSideOfAccessExpression:()=>Ehe,isRightSideOfInstanceofExpression:()=>l4e,isRightSideOfPropertyAccess:()=>WL,isRightSideOfQualifiedName:()=>t7e,isRightSideOfQualifiedNameOrPropertyAccess:()=>FU,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>c4e,isRootedDiskPath:()=>qd,isSameEntityName:()=>GR,isSatisfiesExpression:()=>yL,isSemicolonClassElement:()=>q3e,isSetAccessor:()=>hS,isSetAccessorDeclaration:()=>mg,isShiftOperatorOrHigher:()=>tye,isShorthandAmbientModuleSymbol:()=>bG,isShorthandPropertyAssignment:()=>im,isSideEffectImport:()=>uge,isSignedNumericLiteral:()=>Fre,isSimpleCopiableExpression:()=>DP,isSimpleInlineableExpression:()=>FS,isSimpleParameterList:()=>hK,isSingleOrDoubleQuote:()=>MG,isSolutionConfig:()=>Eye,isSourceElement:()=>i3e,isSourceFile:()=>Ta,isSourceFileFromLibrary:()=>rM,isSourceFileJS:()=>ph,isSourceFileNotJson:()=>kre,isSourceMapping:()=>R8e,isSpecialPropertyDeclaration:()=>N6e,isSpreadAssignment:()=>qx,isSpreadElement:()=>E0,isStatement:()=>fa,isStatementButNotDeclaration:()=>mG,isStatementOrBlock:()=>jPe,isStatementWithLocals:()=>QPe,isStatic:()=>oc,isStaticModifier:()=>mF,isString:()=>Ni,isStringANonContextualKeyword:()=>HO,isStringAndEmptyAnonymousObjectIntersection:()=>d7e,isStringDoubleQuoted:()=>Dre,isStringLiteral:()=>Ic,isStringLiteralLike:()=>Sl,isStringLiteralOrJsxExpression:()=>$Pe,isStringLiteralOrTemplate:()=>P7e,isStringOrNumericLiteralLike:()=>jy,isStringOrRegularExpressionOrTemplateLiteral:()=>Q1e,isStringTextContainingNode:()=>ime,isSuperCall:()=>U4,isSuperKeyword:()=>az,isSuperProperty:()=>_g,isSupportedSourceFileName:()=>Khe,isSwitchStatement:()=>pz,isSyntaxList:()=>kL,isSyntheticExpression:()=>Rlt,isSyntheticReference:()=>xF,isTagName:()=>B1e,isTaggedTemplateExpression:()=>xA,isTaggedTemplateTag:()=>XFe,isTemplateExpression:()=>Jne,isTemplateHead:()=>dF,isTemplateLiteral:()=>FO,isTemplateLiteralKind:()=>Xk,isTemplateLiteralToken:()=>TPe,isTemplateLiteralTypeNode:()=>$3e,isTemplateLiteralTypeSpan:()=>Pge,isTemplateMiddle:()=>Cge,isTemplateMiddleOrTemplateTail:()=>zte,isTemplateSpan:()=>vL,isTemplateTail:()=>Mne,isTextWhiteSpaceLike:()=>v7e,isThis:()=>GL,isThisContainerOrFunctionBlock:()=>k6e,isThisIdentifier:()=>pC,isThisInTypeQuery:()=>lP,isThisInitializedDeclaration:()=>Sre,isThisInitializedObjectBindingExpression:()=>D6e,isThisProperty:()=>PG,isThisTypeNode:()=>lz,isThisTypeParameter:()=>XU,isThisTypePredicate:()=>x6e,isThrowStatement:()=>Rge,isToken:()=>PO,isTokenKind:()=>rme,isTraceEnabled:()=>TC,isTransientSymbol:()=>wx,isTrivia:()=>XR,isTryStatement:()=>c3,isTupleTypeNode:()=>yF,isTypeAlias:()=>VG,isTypeAliasDeclaration:()=>s1,isTypeAssertionExpression:()=>qne,isTypeDeclaration:()=>aF,isTypeElement:()=>KI,isTypeKeyword:()=>Qz,isTypeKeywordTokenOrIdentifier:()=>Joe,isTypeLiteralNode:()=>fh,isTypeNode:()=>Wo,isTypeNodeKind:()=>Fhe,isTypeOfExpression:()=>hL,isTypeOnlyExportDeclaration:()=>EPe,isTypeOnlyImportDeclaration:()=>OR,isTypeOnlyImportOrExportDeclaration:()=>cE,isTypeOperatorNode:()=>bA,isTypeParameterDeclaration:()=>Zu,isTypePredicateNode:()=>gF,isTypeQueryNode:()=>gP,isTypeReferenceNode:()=>Ug,isTypeReferenceType:()=>Zte,isTypeUsableAsPropertyName:()=>b0,isUMDExportSymbol:()=>ene,isUnaryExpression:()=>ume,isUnaryExpressionWithWrite:()=>PPe,isUnicodeIdentifierStart:()=>fv,isUnionTypeNode:()=>SE,isUrl:()=>TR,isValidBigIntString:()=>bne,isValidESSymbolDeclaration:()=>v6e,isValidTypeOnlyAliasUseSite:()=>yA,isValueSignatureDeclaration:()=>G4,isVarAwaitUsing:()=>CG,isVarConst:()=>zR,isVarConstLike:()=>m6e,isVarUsing:()=>DG,isVariableDeclaration:()=>Oo,isVariableDeclarationInVariableStatement:()=>dU,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>rP,isVariableDeclarationInitializedToRequire:()=>RG,isVariableDeclarationList:()=>Df,isVariableLike:()=>_U,isVariableStatement:()=>h_,isVoidExpression:()=>SF,isWatchSet:()=>Phe,isWhileStatement:()=>Fge,isWhiteSpaceLike:()=>p0,isWhiteSpaceSingleLine:()=>_0,isWithStatement:()=>J3e,isWriteAccess:()=>YO,isWriteOnlyAccess:()=>Yre,isYieldExpression:()=>BH,jsxModeNeedsExplicitImport:()=>Pve,keywordPart:()=>Wg,last:()=>Sn,lastOrUndefined:()=>Yr,length:()=>te,libMap:()=>lye,libs:()=>cie,lineBreakPart:()=>YL,loadModuleFromGlobalCache:()=>g8e,loadWithModeAwareCache:()=>DK,makeIdentifierFromModuleName:()=>n6e,makeImport:()=>IC,makeStringLiteral:()=>Zz,mangleScopedPackageName:()=>LL,map:()=>Cr,mapAllOrFail:()=>Bo,mapDefined:()=>Wn,mapDefinedIterator:()=>Na,mapEntries:()=>uc,mapIterator:()=>ol,mapOneOrMany:()=>Dve,mapToDisplayParts:()=>PC,matchFiles:()=>Whe,matchPatternOrExact:()=>Zhe,matchedText:()=>D9,matchesExclude:()=>bie,matchesExcludeWorker:()=>xie,maxBy:()=>Q2,maybeBind:()=>ja,maybeSetLocalizedDiagnosticMessages:()=>k4e,memoize:()=>Ef,memoizeOne:()=>pd,min:()=>bx,minAndMax:()=>V4e,missingFileModifiedTime:()=>Wm,modifierToFlag:()=>ZO,modifiersToFlags:()=>TS,moduleExportNameIsDefault:()=>bb,moduleExportNameTextEscaped:()=>YI,moduleExportNameTextUnescaped:()=>aC,moduleOptionDeclaration:()=>INe,moduleResolutionIsEqualTo:()=>HPe,moduleResolutionNameAndModeGetter:()=>Xie,moduleResolutionOptionDeclarations:()=>pye,moduleResolutionSupportsPackageJsonExportsAndImports:()=>sL,moduleResolutionUsesNodeModules:()=>Voe,moduleSpecifierToValidIdentifier:()=>nQ,moduleSpecifiers:()=>QT,moduleSupportsImportAttributes:()=>N4e,moduleSymbolToValidIdentifier:()=>rQ,moveEmitHelpers:()=>T3e,moveRangeEnd:()=>Zre,moveRangePastDecorators:()=>qT,moveRangePastModifiers:()=>ES,moveRangePos:()=>gA,moveSyntheticComments:()=>S3e,mutateMap:()=>BU,mutateMapSkippingNewValues:()=>Lx,needsParentheses:()=>Zoe,needsScopeMarker:()=>Vte,newCaseClauseTracker:()=>lae,newPrivateEnvironment:()=>$8e,noEmitNotification:()=>SK,noEmitSubstitution:()=>Rz,noTransformers:()=>gOe,noTruncationMaximumTruncationLength:()=>hme,nodeCanBeDecorated:()=>OG,nodeCoreModules:()=>pL,nodeHasName:()=>wO,nodeIsDecorated:()=>VR,nodeIsMissing:()=>Op,nodeIsPresent:()=>t1,nodeIsSynthesized:()=>fu,nodeModuleNameResolver:()=>u8e,nodeModulesPathPart:()=>Jx,nodeNextJsonConfigResolver:()=>p8e,nodeOrChildIsDecorated:()=>FG,nodeOverlapsWithStartEnd:()=>Ooe,nodePosToString:()=>$ct,nodeSeenTracker:()=>QL,nodeStartsNewLexicalEnvironment:()=>ihe,noop:()=>zs,noopFileWatcher:()=>JL,normalizePath:()=>Qs,normalizeSlashes:()=>Z_,normalizeSpans:()=>D_,not:()=>_4,notImplemented:()=>Ts,notImplementedResolver:()=>xOe,nullNodeConverters:()=>g3e,nullParenthesizerRules:()=>m3e,nullTransformationContext:()=>xK,objectAllocator:()=>Uf,operatorPart:()=>Yz,optionDeclarations:()=>Q1,optionMapToObject:()=>mie,optionsAffectingProgramStructure:()=>FNe,optionsForBuild:()=>dye,optionsForWatch:()=>wF,optionsHaveChanges:()=>MO,or:()=>jf,orderedRemoveItem:()=>IT,orderedRemoveItemAt:()=>R1,packageIdToPackageName:()=>nre,packageIdToString:()=>cA,parameterIsThisKeyword:()=>uC,parameterNamePart:()=>b7e,parseBaseNodeFactory:()=>ENe,parseBigInt:()=>G4e,parseBuildCommand:()=>zNe,parseCommandLine:()=>$Ne,parseCommandLineWorker:()=>fye,parseConfigFileTextToJson:()=>hye,parseConfigFileWithSystem:()=>sFe,parseConfigHostFromCompilerHostLike:()=>ioe,parseCustomTypeOption:()=>_ie,parseIsolatedEntityName:()=>AF,parseIsolatedJSDocComment:()=>CNe,parseJSDocTypeExpressionForTests:()=>yut,parseJsonConfigFileContent:()=>Hut,parseJsonSourceFileConfigFileContent:()=>oK,parseJsonText:()=>YH,parseListTypeOption:()=>jNe,parseNodeFactory:()=>PA,parseNodeModuleFromPath:()=>lK,parsePackageName:()=>wie,parsePseudoBigInt:()=>HU,parseValidBigInt:()=>tge,pasteEdits:()=>Ibe,patchWriteFileEnsuringDirectory:()=>bR,pathContainsNodeModules:()=>kC,pathIsAbsolute:()=>YD,pathIsBareSpecifier:()=>EO,pathIsRelative:()=>ch,patternText:()=>X8,performIncrementalCompilation:()=>cFe,performance:()=>R9,positionBelongsToNode:()=>q1e,positionIsASICandidate:()=>eae,positionIsSynthesized:()=>bv,positionsAreOnSameLine:()=>v0,preProcessFile:()=>nmt,probablyUsesSemicolons:()=>eQ,processCommentPragmas:()=>sye,processPragmasIntoFields:()=>cye,processTaggedTemplateExpression:()=>l0e,programContainsEsModules:()=>g7e,programContainsModules:()=>h7e,projectReferenceIsEqualTo:()=>gme,propertyNamePart:()=>x7e,pseudoBigIntToString:()=>fP,punctuationPart:()=>wm,pushIfUnique:()=>Zc,quote:()=>rq,quotePreferenceFromString:()=>ave,rangeContainsPosition:()=>HL,rangeContainsPositionExclusive:()=>zK,rangeContainsRange:()=>zh,rangeContainsRangeExclusive:()=>n7e,rangeContainsStartEnd:()=>qK,rangeEndIsOnSameLineAsRangeStart:()=>uH,rangeEndPositionsAreOnSameLine:()=>f4e,rangeEquals:()=>or,rangeIsOnSingleLine:()=>Z4,rangeOfNode:()=>Yhe,rangeOfTypeParameters:()=>ege,rangeOverlapsWithStartEnd:()=>Gz,rangeStartIsOnSameLineAsRangeEnd:()=>m4e,rangeStartPositionsAreOnSameLine:()=>Xre,readBuilderProgram:()=>moe,readConfigFile:()=>nK,readJson:()=>nL,readJsonConfigFile:()=>qNe,readJsonOrUndefined:()=>Che,reduceEachLeadingCommentRange:()=>G$,reduceEachTrailingCommentRange:()=>JI,reduceLeft:()=>nl,reduceLeftIterator:()=>$e,reducePathComponents:()=>iE,refactor:()=>qF,regExpEscape:()=>mlt,regularExpressionFlagToCharacterCode:()=>ZW,relativeComplement:()=>cb,removeAllComments:()=>NH,removeEmitHelper:()=>Plt,removeExtension:()=>xH,removeFileExtension:()=>Qm,removeIgnoredPath:()=>coe,removeMinAndVersionNumbers:()=>C9,removePrefix:()=>Mk,removeSuffix:()=>Lk,removeTrailingDirectorySeparator:()=>dv,repeatString:()=>GK,replaceElement:()=>pc,replaceFirstStar:()=>Y4,resolutionExtensionIsTSOrJson:()=>JU,resolveConfigFileProjectName:()=>d1e,resolveJSModule:()=>s8e,resolveLibrary:()=>Aie,resolveModuleName:()=>h3,resolveModuleNameFromCache:()=>Ept,resolvePackageNameToPackageJson:()=>Aye,resolvePath:()=>mb,resolveProjectReferencePath:()=>RF,resolveTripleslashReference:()=>C0e,resolveTypeReferenceDirective:()=>n8e,resolvingEmptyArray:()=>mme,returnFalse:()=>Yf,returnNoopFileWatcher:()=>qz,returnTrue:()=>AT,returnUndefined:()=>Sx,returnsPromise:()=>Vve,rewriteModuleSpecifier:()=>NF,sameFlatMap:()=>Wi,sameMap:()=>Zo,sameMapping:()=>f_t,scanTokenAtPosition:()=>f6e,scanner:()=>wf,semanticDiagnosticsOptionDeclarations:()=>PNe,serializeCompilerOptions:()=>bye,server:()=>_Tt,servicesVersion:()=>Wht,setCommentRange:()=>Y_,setConfigFileInOptions:()=>xye,setConstantValue:()=>x3e,setEmitFlags:()=>Ai,setGetSourceFileAsHashVersioned:()=>foe,setIdentifierAutoGenerate:()=>RH,setIdentifierGeneratedImportReference:()=>C3e,setIdentifierTypeArguments:()=>vE,setInternalEmitFlags:()=>OH,setLocalizedDiagnosticMessages:()=>E4e,setNodeChildren:()=>rNe,setNodeFlags:()=>Q4e,setObjectAllocator:()=>T4e,setOriginalNode:()=>Yi,setParent:()=>xl,setParentRecursive:()=>vA,setPrivateIdentifier:()=>y3,setSnippetElement:()=>Tge,setSourceMapRange:()=>Jc,setStackTraceLimit:()=>OW,setStartsOnNewLine:()=>One,setSyntheticLeadingComments:()=>SA,setSyntheticTrailingComments:()=>uF,setSys:()=>R$,setSysLog:()=>lS,setTextRange:()=>qt,setTextRangeEnd:()=>uL,setTextRangePos:()=>KU,setTextRangePosEnd:()=>xv,setTextRangePosWidth:()=>rge,setTokenSourceMapRange:()=>v3e,setTypeNode:()=>E3e,setUILocale:()=>f$,setValueDeclaration:()=>SU,shouldAllowImportingTsExtension:()=>ML,shouldPreserveConstEnums:()=>dC,shouldRewriteModuleSpecifier:()=>JG,shouldUseUriStyleNodeCoreModules:()=>sae,showModuleSpecifier:()=>S4e,signatureHasRestParameter:()=>Am,signatureToDisplayParts:()=>gve,single:()=>us,singleElementArray:()=>Z2,singleIterator:()=>Sc,singleOrMany:()=>Ja,singleOrUndefined:()=>to,skipAlias:()=>$f,skipConstraint:()=>nve,skipOuterExpressions:()=>Wp,skipParentheses:()=>bl,skipPartiallyEmittedExpressions:()=>q1,skipTrivia:()=>_c,skipTypeChecking:()=>lL,skipTypeCheckingIgnoringNoCheck:()=>W4e,skipTypeParentheses:()=>xU,skipWhile:()=>tO,sliceAfter:()=>Xhe,some:()=>Pt,sortAndDeduplicate:()=>O1,sortAndDeduplicateDiagnostics:()=>nr,sourceFileAffectingCompilerOptions:()=>_ye,sourceFileMayBeEmitted:()=>sP,sourceMapCommentRegExp:()=>Zye,sourceMapCommentRegExpDontCareLineStart:()=>N8e,spacePart:()=>Lp,spanMap:()=>Wu,startEndContainsRange:()=>whe,startEndOverlapsWithStartEnd:()=>Foe,startOnNewLine:()=>Dm,startTracing:()=>$9,startsWith:()=>Ca,startsWithDirectory:()=>rA,startsWithUnderscore:()=>Ive,startsWithUseStrict:()=>lNe,stringContainsAt:()=>j7e,stringToToken:()=>kx,stripQuotes:()=>i1,supportedDeclarationExtensions:()=>gne,supportedJSExtensionsFlat:()=>cL,supportedLocaleDirectories:()=>fS,supportedTSExtensionsFlat:()=>Ghe,supportedTSImplementationExtensions:()=>vH,suppressLeadingAndTrailingTrivia:()=>$g,suppressLeadingTrivia:()=>gge,suppressTrailingTrivia:()=>p3e,symbolEscapedNameNoDefault:()=>Woe,symbolName:()=>vp,symbolNameNoDefault:()=>cve,symbolToDisplayParts:()=>eq,sys:()=>f_,sysLog:()=>Oy,tagNamesAreEquivalent:()=>OA,takeWhile:()=>eO,targetOptionDeclaration:()=>uye,targetToLibMap:()=>Rr,testFormatSettings:()=>kft,textChangeRangeIsUnchanged:()=>Cx,textChangeRangeNewSpan:()=>WI,textChanges:()=>ki,textOrKeywordPart:()=>hve,textPart:()=>Vy,textRangeContainsPositionInclusive:()=>Ao,textRangeContainsTextSpan:()=>Hl,textRangeIntersectsWithTextSpan:()=>Hk,textSpanContainsPosition:()=>jo,textSpanContainsTextRange:()=>su,textSpanContainsTextSpan:()=>Ha,textSpanEnd:()=>Xn,textSpanIntersection:()=>fl,textSpanIntersectsWith:()=>_S,textSpanIntersectsWithPosition:()=>gb,textSpanIntersectsWithTextSpan:()=>Fg,textSpanIsEmpty:()=>Da,textSpanOverlap:()=>$1,textSpanOverlapsWith:()=>dl,textSpansEqual:()=>XL,textToKeywordObj:()=>UI,timestamp:()=>Ml,toArray:()=>Ll,toBuilderFileEmit:()=>QOe,toBuilderStateFileInfoForMultiEmit:()=>KOe,toEditorSettings:()=>pQ,toFileNameLowerCase:()=>lb,toPath:()=>wl,toProgramEmitPending:()=>ZOe,toSorted:()=>pu,tokenIsIdentifierOrKeyword:()=>Bf,tokenIsIdentifierOrKeywordOrGreaterThan:()=>$I,tokenToString:()=>Zs,trace:()=>ns,tracing:()=>hi,tracingEnabled:()=>II,transferSourceFileChildren:()=>nNe,transform:()=>rgt,transformClassFields:()=>Q8e,transformDeclarations:()=>d0e,transformECMAScriptModule:()=>_0e,transformES2015:()=>uOe,transformES2016:()=>lOe,transformES2017:()=>eOe,transformES2018:()=>tOe,transformES2019:()=>rOe,transformES2020:()=>nOe,transformES2021:()=>iOe,transformESDecorators:()=>Y8e,transformESNext:()=>oOe,transformGenerators:()=>pOe,transformImpliedNodeFormatDependentModule:()=>dOe,transformJsx:()=>cOe,transformLegacyDecorators:()=>X8e,transformModule:()=>p0e,transformNamedEvaluation:()=>qg,transformNodes:()=>bK,transformSystemModule:()=>_Oe,transformTypeScript:()=>K8e,transpile:()=>_mt,transpileDeclaration:()=>umt,transpileModule:()=>s5e,transpileOptionValueCompilerOptions:()=>RNe,tryAddToSet:()=>Us,tryAndIgnoreErrors:()=>nae,tryCast:()=>Ci,tryDirectoryExists:()=>rae,tryExtractTSExtension:()=>Qre,tryFileExists:()=>iq,tryGetClassExtendingExpressionWithTypeArguments:()=>xhe,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>The,tryGetDirectories:()=>tae,tryGetExtensionFromPath:()=>Bx,tryGetImportFromModuleSpecifier:()=>qG,tryGetJSDocSatisfiesTypeNode:()=>kne,tryGetModuleNameFromFile:()=>GH,tryGetModuleSpecifierFromDeclaration:()=>qO,tryGetNativePerformanceHooks:()=>nO,tryGetPropertyAccessOrIdentifierToString:()=>cH,tryGetPropertyNameOfBindingOrAssignmentElement:()=>nie,tryGetSourceMappingURL:()=>O8e,tryGetTextOfPropertyName:()=>pU,tryParseJson:()=>lH,tryParsePattern:()=>oF,tryParsePatterns:()=>TH,tryParseRawSourceMap:()=>F8e,tryReadDirectory:()=>Tve,tryReadFile:()=>Sz,tryRemoveDirectoryPrefix:()=>qhe,tryRemoveExtension:()=>J4e,tryRemovePrefix:()=>Y8,tryRemoveSuffix:()=>wT,tscBuildOption:()=>f3,typeAcquisitionDeclarations:()=>uie,typeAliasNamePart:()=>T7e,typeDirectiveIsEqualTo:()=>KPe,typeKeywords:()=>rve,typeParameterNamePart:()=>E7e,typeToDisplayParts:()=>ZK,unchangedPollThresholds:()=>LI,unchangedTextChangeRange:()=>_i,unescapeLeadingUnderscores:()=>oa,unmangleScopedPackageName:()=>pK,unorderedRemoveItem:()=>pb,unprefixedNodeCoreModules:()=>c3e,unreachableCodeIsError:()=>I4e,unsetNodeChildren:()=>Vge,unusedLabelIsError:()=>P4e,unwrapInnermostStatementOfLabel:()=>jme,unwrapParenthesizedExpression:()=>a3e,updateErrorForNoInputFiles:()=>Sie,updateLanguageServiceSourceFile:()=>ySe,updateMissingFilePathsWatch:()=>T0e,updateResolutionField:()=>NL,updateSharedExtendedConfigFileWatcher:()=>Hie,updateSourceFile:()=>oye,updateWatchingWildcardDirectories:()=>EK,usingSingleLineStringWriter:()=>jR,utf16EncodeAsString:()=>Gk,validateLocaleAndSetLanguage:()=>oA,version:()=>L,versionMajorMinor:()=>A,visitArray:()=>Az,visitCommaListElements:()=>fK,visitEachChild:()=>Dn,visitFunctionBody:()=>Jy,visitIterationBody:()=>hh,visitLexicalEnvironment:()=>Qye,visitNode:()=>At,visitNodes:()=>Bn,visitParameterList:()=>Rp,walkUpBindingElementsAndPatterns:()=>Pr,walkUpOuterExpressions:()=>uNe,walkUpParenthesizedExpressions:()=>V1,walkUpParenthesizedTypes:()=>HG,walkUpParenthesizedTypesAndGetParentAndChild:()=>$6e,whitespaceOrMapCommentRegExp:()=>Xye,writeCommentRange:()=>rL,writeFile:()=>Jre,writeFileEnsuringDirectories:()=>mhe,zipWith:()=>xt});var sSr=!0,lTt;function cSr(){return lTt??(lTt=new Iy(L))}function uTt(t,n,a,c,u){let _=n?"DeprecationError: ":"DeprecationWarning: ";return _+=`'${t}' `,_+=c?`has been deprecated since v${c}`:"is deprecated",_+=n?" and can no longer be used.":a?` and will no longer be usable after v${a}.`:".",_+=u?` ${Mx(u,[t])}`:"",_}function lSr(t,n,a,c){let u=uTt(t,!0,n,a,c);return()=>{throw new TypeError(u)}}function uSr(t,n,a,c){let u=!1;return()=>{sSr&&!u&&($.log.warn(uTt(t,!1,n,a,c)),u=!0)}}function pSr(t,n={}){let a=typeof n.typeScriptVersion=="string"?new Iy(n.typeScriptVersion):n.typeScriptVersion??cSr(),c=typeof n.errorAfter=="string"?new Iy(n.errorAfter):n.errorAfter,u=typeof n.warnAfter=="string"?new Iy(n.warnAfter):n.warnAfter,_=typeof n.since=="string"?new Iy(n.since):n.since??u,f=n.error||c&&a.compareTo(c)>=0,y=!u||a.compareTo(u)>=0;return f?lSr(t,c,_,n.message):y?uSr(t,c,_,n.message):zs}function _Sr(t,n){return function(){return t(),n.apply(this,arguments)}}function dSr(t,n){let a=pSr(n?.name??$.getFunctionName(t),n);return _Sr(a,t)}function Pbe(t,n,a,c){if(Object.defineProperty(_,"name",{...Object.getOwnPropertyDescriptor(_,"name"),value:t}),c)for(let f of Object.keys(c)){let y=+f;!isNaN(y)&&Ho(n,`${y}`)&&(n[y]=dSr(n[y],{...c[y],name:t}))}let u=fSr(n,a);return _;function _(...f){let y=u(f),g=y!==void 0?n[y]:void 0;if(typeof g=="function")return g(...f);throw new TypeError("Invalid arguments")}}function fSr(t,n){return a=>{for(let c=0;Ho(t,`${c}`)&&Ho(n,`${c}`);c++){let u=n[c];if(u(a))return c}}}function pTt(t){return{overload:n=>({bind:a=>({finish:()=>Pbe(t,n,a),deprecate:c=>({finish:()=>Pbe(t,n,a,c)})})})}}var _Tt={};d(_Tt,{ActionInvalidate:()=>Toe,ActionPackageInstalled:()=>Eoe,ActionSet:()=>xoe,ActionWatchTypingLocations:()=>jK,Arguments:()=>w1e,AutoImportProviderProject:()=>KMe,AuxiliaryProject:()=>GMe,CharRangeSection:()=>bje,CloseFileWatcherEvent:()=>Jbe,CommandNames:()=>JTt,ConfigFileDiagEvent:()=>Bbe,ConfiguredProject:()=>QMe,ConfiguredProjectLoadKind:()=>rje,CreateDirectoryWatcherEvent:()=>qbe,CreateFileWatcherEvent:()=>zbe,Errors:()=>t2,EventBeginInstallTypes:()=>D1e,EventEndInstallTypes:()=>A1e,EventInitializationFailed:()=>FFe,EventTypesRegistry:()=>C1e,ExternalProject:()=>Obe,GcTimer:()=>RMe,InferredProject:()=>WMe,LargeFileReferencedEvent:()=>jbe,LineIndex:()=>qQ,LineLeaf:()=>ose,LineNode:()=>mM,LogLevel:()=>CMe,Msg:()=>DMe,OpenFileInfoTelemetryEvent:()=>ZMe,Project:()=>YF,ProjectInfoTelemetryEvent:()=>Ube,ProjectKind:()=>Sq,ProjectLanguageServiceStateEvent:()=>$be,ProjectLoadingFinishEvent:()=>Mbe,ProjectLoadingStartEvent:()=>Lbe,ProjectService:()=>pje,ProjectsUpdatedInBackgroundEvent:()=>rse,ScriptInfo:()=>BMe,ScriptVersionCache:()=>rxe,Session:()=>XTt,TextStorage:()=>jMe,ThrottledOperations:()=>FMe,TypingsInstallerAdapter:()=>i2t,allFilesAreJsOrDts:()=>qMe,allRootFilesAreJsOrDts:()=>zMe,asNormalizedPath:()=>hTt,convertCompilerOptions:()=>nse,convertFormatOptions:()=>_M,convertScriptKindName:()=>Wbe,convertTypeAcquisition:()=>YMe,convertUserPreferences:()=>eje,convertWatchOptions:()=>UQ,countEachFileTypes:()=>MQ,createInstallTypingsRequest:()=>AMe,createModuleSpecifierCache:()=>fje,createNormalizedPathMap:()=>gTt,createPackageJsonCache:()=>mje,createSortedArray:()=>OMe,emptyArray:()=>Pd,findArgument:()=>gft,formatDiagnosticToProtocol:()=>zQ,formatMessage:()=>hje,getBaseConfigFileName:()=>Nbe,getDetailWatchInfo:()=>Qbe,getLocationInNewDocument:()=>Sje,hasArgument:()=>hft,hasNoTypeScriptSource:()=>JMe,indent:()=>Vz,isBackgroundProject:()=>BQ,isConfigFile:()=>_je,isConfiguredProject:()=>IE,isDynamicFileName:()=>vq,isExternalProject:()=>jQ,isInferredProject:()=>pM,isInferredProjectName:()=>wMe,isProjectDeferredClose:()=>$Q,makeAutoImportProviderProjectName:()=>PMe,makeAuxiliaryProjectName:()=>NMe,makeInferredProjectName:()=>IMe,maxFileSize:()=>Rbe,maxProgramSizeForNonTsFiles:()=>Fbe,normalizedPathToPath:()=>uM,nowString:()=>yft,nullCancellationToken:()=>UTt,nullTypingsInstaller:()=>ise,protocol:()=>LMe,scriptInfoIsContainedByBackgroundProject:()=>$Me,scriptInfoIsContainedByDeferredClosedProject:()=>UMe,stringifyIndented:()=>jA,toEvent:()=>gje,toNormalizedPath:()=>nu,tryConvertScriptKindName:()=>Vbe,typingsInstaller:()=>kMe,updateProjectIfDirty:()=>_1});var kMe={};d(kMe,{TypingsInstaller:()=>gSr,getNpmCommandForInstallation:()=>fTt,installNpmPackages:()=>hSr,typingsName:()=>mTt});var mSr={isEnabled:()=>!1,writeLine:zs};function dTt(t,n,a,c){try{let u=h3(n,Xi(t,"index.d.ts"),{moduleResolution:2},a);return u.resolvedModule&&u.resolvedModule.resolvedFileName}catch(u){c.isEnabled()&&c.writeLine(`Failed to resolve ${n} in folder '${t}': ${u.message}`);return}}function hSr(t,n,a,c){let u=!1;for(let _=a.length;_>0;){let f=fTt(t,n,a,_);_=f.remaining,u=c(f.command)||u}return u}function fTt(t,n,a,c){let u=a.length-c,_,f=c;for(;_=`${t} install --ignore-scripts ${(f===a.length?a:a.slice(u,u+f)).join(" ")} --save-dev --user-agent="typesInstaller/${n}"`,!(_.length<8e3);)f=f-Math.floor(f/2);return{command:_,remaining:c-f}}var gSr=class{constructor(t,n,a,c,u,_=mSr){this.installTypingHost=t,this.globalCachePath=n,this.safeListPath=a,this.typesMapLocation=c,this.throttleLimit=u,this.log=_,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${n}', safe file path '${a}', types map path ${c}`),this.processCacheLocation(this.globalCachePath)}handleRequest(t){switch(t.kind){case"discover":this.install(t);break;case"closeProject":this.closeProject(t);break;case"typesRegistry":{let n={};this.typesRegistry.forEach((c,u)=>{n[u]=c});let a={kind:C1e,typesRegistry:n};this.sendResponse(a);break}case"installPackage":{this.installPackage(t);break}default:$.assertNever(t)}}closeProject(t){this.closeWatchers(t.projectName)}closeWatchers(t){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${t}'`),!this.projectWatchers.get(t)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${t}'`);return}this.projectWatchers.delete(t),this.sendResponse({kind:jK,projectName:t,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${t}' - done.`)}install(t){this.log.isEnabled()&&this.log.writeLine(`Got install request${jA(t)}`),t.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${t.cachePath}', loading cached information...`),this.processCacheLocation(t.cachePath)),this.safeList===void 0&&this.initializeSafeList();let n=wC.discoverTypings(this.installTypingHost,this.log.isEnabled()?a=>this.log.writeLine(a):void 0,t.fileNames,t.projectRootPath,this.safeList,this.packageNameToTypingLocation,t.typeAcquisition,t.unresolvedImports,this.typesRegistry,t.compilerOptions);this.watchFiles(t.projectName,n.filesToWatch),n.newTypingNames.length?this.installTypings(t,t.cachePath||this.globalCachePath,n.cachedTypingPaths,n.newTypingNames):(this.sendResponse(this.createSetTypings(t,n.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(t){let{fileName:n,packageName:a,projectName:c,projectRootPath:u,id:_}=t,f=Ex(mo(n),y=>{if(this.installTypingHost.fileExists(Xi(y,"package.json")))return y})||u;if(f)this.installWorker(-1,[a],f,y=>{let g=y?`Package ${a} installed.`:`There was an error installing ${a}.`,k={kind:Eoe,projectName:c,id:_,success:y,message:g};this.sendResponse(k)});else{let y={kind:Eoe,projectName:c,id:_,success:!1,message:"Could not determine a project root path."};this.sendResponse(y)}}initializeSafeList(){if(this.typesMapLocation){let t=wC.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(t){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=t;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=wC.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(t){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${t}'`),this.knownCachesSet.has(t)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}let n=Xi(t,"package.json"),a=Xi(t,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${n}'...`),this.installTypingHost.fileExists(n)&&this.installTypingHost.fileExists(a)){let c=JSON.parse(this.installTypingHost.readFile(n)),u=JSON.parse(this.installTypingHost.readFile(a));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${n}':${jA(c)}`),this.log.writeLine(`Loaded content of '${a}':${jA(u)}`)),c.devDependencies&&(u.packages||u.dependencies))for(let _ in c.devDependencies){if(u.packages&&!Ho(u.packages,`node_modules/${_}`)||u.dependencies&&!Ho(u.dependencies,_))continue;let f=t_(_);if(!f)continue;let y=dTt(t,f,this.installTypingHost,this.log);if(!y){this.missingTypingsSet.add(f);continue}let g=this.packageNameToTypingLocation.get(f);if(g){if(g.typingLocation===y)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${f} from '${y}' conflicts with existing typing file '${g}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${f}' => '${y}'`);let k=u.packages&&Q0(u.packages,`node_modules/${_}`)||Q0(u.dependencies,_),T=k&&k.version;if(!T)continue;let C={typingLocation:y,version:new Iy(T)};this.packageNameToTypingLocation.set(f,C)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${t}'`),this.knownCachesSet.add(t)}filterTypings(t){return Wn(t,n=>{let a=LL(n);if(this.missingTypingsSet.has(a)){this.log.isEnabled()&&this.log.writeLine(`'${n}':: '${a}' is in missingTypingsSet - skipping...`);return}let c=wC.validatePackageName(n);if(c!==wC.NameValidationResult.Ok){this.missingTypingsSet.add(a),this.log.isEnabled()&&this.log.writeLine(wC.renderPackageNameValidationFailure(c,n));return}if(!this.typesRegistry.has(a)){this.log.isEnabled()&&this.log.writeLine(`'${n}':: Entry for package '${a}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(a)&&wC.isTypingUpToDate(this.packageNameToTypingLocation.get(a),this.typesRegistry.get(a))){this.log.isEnabled()&&this.log.writeLine(`'${n}':: '${a}' already has an up-to-date typing - skipping...`);return}return a})}ensurePackageDirectoryExists(t){let n=Xi(t,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${n}`),this.installTypingHost.fileExists(n)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${n}' is missing, creating new one...`),this.ensureDirectoryExists(t,this.installTypingHost),this.installTypingHost.writeFile(n,'{ "private": true }'))}installTypings(t,n,a,c){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(c)}`);let u=this.filterTypings(c);if(u.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(t,a));return}this.ensurePackageDirectoryExists(n);let _=this.installRunCount;this.installRunCount++,this.sendResponse({kind:D1e,eventId:_,typingsInstallerVersion:L,projectName:t.projectName});let f=u.map(mTt);this.installTypingsAsync(_,f,n,y=>{try{if(!y){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(u)}`);for(let k of u)this.missingTypingsSet.add(k);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(f)}`);let g=[];for(let k of u){let T=dTt(n,k,this.installTypingHost,this.log);if(!T){this.missingTypingsSet.add(k);continue}let C=this.typesRegistry.get(k),O=new Iy(C[`ts${A}`]||C[this.latestDistTag]),F={typingLocation:T,version:O};this.packageNameToTypingLocation.set(k,F),g.push(T)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(g)}`),this.sendResponse(this.createSetTypings(t,a.concat(g)))}finally{let g={kind:A1e,eventId:_,projectName:t.projectName,packagesToInstall:f,installSuccess:y,typingsInstallerVersion:L};this.sendResponse(g)}})}ensureDirectoryExists(t,n){let a=mo(t);n.directoryExists(a)||this.ensureDirectoryExists(a,n),n.directoryExists(t)||n.createDirectory(t)}watchFiles(t,n){if(!n.length){this.closeWatchers(t);return}let a=this.projectWatchers.get(t),c=new Set(n);!a||Ix(c,u=>!a.has(u))||Ix(a,u=>!c.has(u))?(this.projectWatchers.set(t,c),this.sendResponse({kind:jK,projectName:t,files:n})):this.sendResponse({kind:jK,projectName:t,files:void 0})}createSetTypings(t,n){return{projectName:t.projectName,typeAcquisition:t.typeAcquisition,compilerOptions:t.compilerOptions,typings:n,unresolvedImports:t.unresolvedImports,kind:xoe}}installTypingsAsync(t,n,a,c){this.pendingRunRequests.unshift({requestId:t,packageNames:n,cwd:a,onRequestCompleted:c}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,t.onRequestCompleted(n),this.executeWithThrottling()})}}};function mTt(t){return`@types/${t}@ts${A}`}var CMe=(t=>(t[t.terse=0]="terse",t[t.normal=1]="normal",t[t.requestTime=2]="requestTime",t[t.verbose=3]="verbose",t))(CMe||{}),Pd=OMe(),DMe=(t=>(t.Err="Err",t.Info="Info",t.Perf="Perf",t))(DMe||{});function AMe(t,n,a,c){return{projectName:t.getProjectName(),fileNames:t.getFileNames(!0,!0).concat(t.getExcludedFiles()),compilerOptions:t.getCompilationSettings(),typeAcquisition:n,unresolvedImports:a,projectRootPath:t.getCurrentDirectory(),cachePath:c,kind:"discover"}}var t2;(t=>{function n(){throw new Error("No Project.")}t.ThrowNoProject=n;function a(){throw new Error("The project's language service is disabled.")}t.ThrowProjectLanguageServiceDisabled=a;function c(u,_){throw new Error(`Project '${_.getProjectName()}' does not contain document '${u}'`)}t.ThrowProjectDoesNotContainDocument=c})(t2||(t2={}));function nu(t){return Qs(t)}function uM(t,n,a){let c=qd(t)?t:za(t,n);return a(c)}function hTt(t){return t}function gTt(){let t=new Map;return{get(n){return t.get(n)},set(n,a){t.set(n,a)},contains(n){return t.has(n)},remove(n){t.delete(n)}}}function wMe(t){return/dev\/null\/inferredProject\d+\*/.test(t)}function IMe(t){return`/dev/null/inferredProject${t}*`}function PMe(t){return`/dev/null/autoImportProviderProject${t}*`}function NMe(t){return`/dev/null/auxiliaryProject${t}*`}function OMe(){return[]}var FMe=class ntr{constructor(n,a){this.host=n,this.pendingTimeouts=new Map,this.logger=a.hasLevel(3)?a:void 0}schedule(n,a,c){let u=this.pendingTimeouts.get(n);u&&this.host.clearTimeout(u),this.pendingTimeouts.set(n,this.host.setTimeout(ntr.run,a,n,this,c)),this.logger&&this.logger.info(`Scheduled: ${n}${u?", Cancelled earlier one":""}`)}cancel(n){let a=this.pendingTimeouts.get(n);return a?(this.host.clearTimeout(a),this.pendingTimeouts.delete(n)):!1}static run(n,a,c){a.pendingTimeouts.delete(n),a.logger&&a.logger.info(`Running: ${n}`),c()}},RMe=class itr{constructor(n,a,c){this.host=n,this.delay=a,this.logger=c}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(itr.run,this.delay,this))}static run(n){n.timerId=void 0;let a=n.logger.hasLevel(2),c=a&&n.host.getMemoryUsage();if(n.host.gc(),a){let u=n.host.getMemoryUsage();n.logger.perftrc(`GC::before ${c}, after ${u}`)}}};function Nbe(t){let n=t_(t);return n==="tsconfig.json"||n==="jsconfig.json"?n:void 0}var LMe={};d(LMe,{ClassificationType:()=>O1e,CommandTypes:()=>MMe,CompletionTriggerKind:()=>P1e,IndentStyle:()=>bTt,JsxEmit:()=>xTt,ModuleKind:()=>TTt,ModuleResolutionKind:()=>ETt,NewLineKind:()=>kTt,OrganizeImportsMode:()=>I1e,PollingWatchKind:()=>STt,ScriptTarget:()=>CTt,SemicolonPreference:()=>N1e,WatchDirectoryKind:()=>vTt,WatchFileKind:()=>yTt});var MMe=(t=>(t.JsxClosingTag="jsxClosingTag",t.LinkedEditingRange="linkedEditingRange",t.Brace="brace",t.BraceFull="brace-full",t.BraceCompletion="braceCompletion",t.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",t.Change="change",t.Close="close",t.Completions="completions",t.CompletionInfo="completionInfo",t.CompletionsFull="completions-full",t.CompletionDetails="completionEntryDetails",t.CompletionDetailsFull="completionEntryDetails-full",t.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",t.CompileOnSaveEmitFile="compileOnSaveEmitFile",t.Configure="configure",t.Definition="definition",t.DefinitionFull="definition-full",t.DefinitionAndBoundSpan="definitionAndBoundSpan",t.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",t.Implementation="implementation",t.ImplementationFull="implementation-full",t.EmitOutput="emit-output",t.Exit="exit",t.FileReferences="fileReferences",t.FileReferencesFull="fileReferences-full",t.Format="format",t.Formatonkey="formatonkey",t.FormatFull="format-full",t.FormatonkeyFull="formatonkey-full",t.FormatRangeFull="formatRange-full",t.Geterr="geterr",t.GeterrForProject="geterrForProject",t.SemanticDiagnosticsSync="semanticDiagnosticsSync",t.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",t.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",t.NavBar="navbar",t.NavBarFull="navbar-full",t.Navto="navto",t.NavtoFull="navto-full",t.NavTree="navtree",t.NavTreeFull="navtree-full",t.DocumentHighlights="documentHighlights",t.DocumentHighlightsFull="documentHighlights-full",t.Open="open",t.Quickinfo="quickinfo",t.QuickinfoFull="quickinfo-full",t.References="references",t.ReferencesFull="references-full",t.Reload="reload",t.Rename="rename",t.RenameInfoFull="rename-full",t.RenameLocationsFull="renameLocations-full",t.Saveto="saveto",t.SignatureHelp="signatureHelp",t.SignatureHelpFull="signatureHelp-full",t.FindSourceDefinition="findSourceDefinition",t.Status="status",t.TypeDefinition="typeDefinition",t.ProjectInfo="projectInfo",t.ReloadProjects="reloadProjects",t.Unknown="unknown",t.OpenExternalProject="openExternalProject",t.OpenExternalProjects="openExternalProjects",t.CloseExternalProject="closeExternalProject",t.SynchronizeProjectList="synchronizeProjectList",t.ApplyChangedToOpenFiles="applyChangedToOpenFiles",t.UpdateOpen="updateOpen",t.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",t.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",t.Cleanup="cleanup",t.GetOutliningSpans="getOutliningSpans",t.GetOutliningSpansFull="outliningSpans",t.TodoComments="todoComments",t.Indentation="indentation",t.DocCommentTemplate="docCommentTemplate",t.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",t.NameOrDottedNameSpan="nameOrDottedNameSpan",t.BreakpointStatement="breakpointStatement",t.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",t.GetCodeFixes="getCodeFixes",t.GetCodeFixesFull="getCodeFixes-full",t.GetCombinedCodeFix="getCombinedCodeFix",t.GetCombinedCodeFixFull="getCombinedCodeFix-full",t.ApplyCodeActionCommand="applyCodeActionCommand",t.GetSupportedCodeFixes="getSupportedCodeFixes",t.GetApplicableRefactors="getApplicableRefactors",t.GetEditsForRefactor="getEditsForRefactor",t.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",t.PreparePasteEdits="preparePasteEdits",t.GetPasteEdits="getPasteEdits",t.GetEditsForRefactorFull="getEditsForRefactor-full",t.OrganizeImports="organizeImports",t.OrganizeImportsFull="organizeImports-full",t.GetEditsForFileRename="getEditsForFileRename",t.GetEditsForFileRenameFull="getEditsForFileRename-full",t.ConfigurePlugin="configurePlugin",t.SelectionRange="selectionRange",t.SelectionRangeFull="selectionRange-full",t.ToggleLineComment="toggleLineComment",t.ToggleLineCommentFull="toggleLineComment-full",t.ToggleMultilineComment="toggleMultilineComment",t.ToggleMultilineCommentFull="toggleMultilineComment-full",t.CommentSelection="commentSelection",t.CommentSelectionFull="commentSelection-full",t.UncommentSelection="uncommentSelection",t.UncommentSelectionFull="uncommentSelection-full",t.PrepareCallHierarchy="prepareCallHierarchy",t.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",t.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",t.ProvideInlayHints="provideInlayHints",t.WatchChange="watchChange",t.MapCode="mapCode",t.CopilotRelated="copilotRelated",t))(MMe||{}),yTt=(t=>(t.FixedPollingInterval="FixedPollingInterval",t.PriorityPollingInterval="PriorityPollingInterval",t.DynamicPriorityPolling="DynamicPriorityPolling",t.FixedChunkSizePolling="FixedChunkSizePolling",t.UseFsEvents="UseFsEvents",t.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",t))(yTt||{}),vTt=(t=>(t.UseFsEvents="UseFsEvents",t.FixedPollingInterval="FixedPollingInterval",t.DynamicPriorityPolling="DynamicPriorityPolling",t.FixedChunkSizePolling="FixedChunkSizePolling",t))(vTt||{}),STt=(t=>(t.FixedInterval="FixedInterval",t.PriorityInterval="PriorityInterval",t.DynamicPriority="DynamicPriority",t.FixedChunkSize="FixedChunkSize",t))(STt||{}),bTt=(t=>(t.None="None",t.Block="Block",t.Smart="Smart",t))(bTt||{}),xTt=(t=>(t.None="none",t.Preserve="preserve",t.ReactNative="react-native",t.React="react",t.ReactJSX="react-jsx",t.ReactJSXDev="react-jsxdev",t))(xTt||{}),TTt=(t=>(t.None="none",t.CommonJS="commonjs",t.AMD="amd",t.UMD="umd",t.System="system",t.ES6="es6",t.ES2015="es2015",t.ES2020="es2020",t.ES2022="es2022",t.ESNext="esnext",t.Node16="node16",t.Node18="node18",t.Node20="node20",t.NodeNext="nodenext",t.Preserve="preserve",t))(TTt||{}),ETt=(t=>(t.Classic="classic",t.Node="node",t.NodeJs="node",t.Node10="node10",t.Node16="node16",t.NodeNext="nodenext",t.Bundler="bundler",t))(ETt||{}),kTt=(t=>(t.Crlf="Crlf",t.Lf="Lf",t))(kTt||{}),CTt=(t=>(t.ES3="es3",t.ES5="es5",t.ES6="es6",t.ES2015="es2015",t.ES2016="es2016",t.ES2017="es2017",t.ES2018="es2018",t.ES2019="es2019",t.ES2020="es2020",t.ES2021="es2021",t.ES2022="es2022",t.ES2023="es2023",t.ES2024="es2024",t.ESNext="esnext",t.JSON="json",t.Latest="esnext",t))(CTt||{}),jMe=class{constructor(t,n,a){this.host=t,this.info=n,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=a||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(t){this.svc=void 0,this.text=t,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(t,n,a){this.switchToScriptVersionCache().edit(t,n-t,a),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(t){return $.assert(t!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=BF(this.svc.getSnapshot())),this.text!==t?(this.useText(t),this.ownFileText=!1,!0):!1}reloadWithFileText(t){let{text:n,fileSize:a}=t||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(t):{text:"",fileSize:void 0},c=this.reload(n);return this.fileSize=a,this.ownFileText=!t||t===this.info.fileName,this.ownFileText&&this.info.mTime===Wm.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||Wm).getTime()),c}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var t;return((t=this.tryUseScriptVersionCache())==null?void 0:t.getSnapshot())||(this.textSnapshot??(this.textSnapshot=koe.fromString($.checkDefined(this.text))))}getAbsolutePositionAndLineText(t){let n=this.tryUseScriptVersionCache();if(n)return n.getAbsolutePositionAndLineText(t);let a=this.getLineMap();return t<=a.length?{absolutePosition:a[t-1],lineText:this.text.substring(a[t-1],a[t])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(t){let n=this.tryUseScriptVersionCache();if(n)return n.lineToTextSpan(t);let a=this.getLineMap(),c=a[t],u=t+1n===void 0?n=this.host.readFile(a)||"":n;if(!X4(this.info.fileName)){let u=this.host.getFileSize?this.host.getFileSize(a):c().length;if(u>Rbe)return $.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${a} for info ${this.info.fileName}: fileSize: ${u}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(a,u),{text:"",fileSize:u}}return{text:c()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=rxe.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=rxe.fromString($.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&($.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return $.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=oE($.checkDefined(this.text)))}getLineInfo(){let t=this.tryUseScriptVersionCache();if(t)return{getLineCount:()=>t.getLineCount(),getLineText:a=>t.getAbsolutePositionAndLineText(a+1).lineText};let n=this.getLineMap();return Yye(this.text,n)}};function vq(t){return t[0]==="^"||(t.includes("walkThroughSnippet:/")||t.includes("untitled:/"))&&t_(t)[0]==="^"||t.includes(":^")&&!t.includes(Gl)}var BMe=class{constructor(t,n,a,c,u,_){this.host=t,this.fileName=n,this.scriptKind=a,this.hasMixedContent=c,this.path=u,this.containingProjects=[],this.isDynamic=vq(n),this.textStorage=new jMe(t,this,_),(c||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=a||mne(n)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(t){this.textStorage.isOpen=!0,t!==void 0&&this.textStorage.reload(t)&&this.markContainingProjectsAsDirty()}close(t=!0){this.textStorage.isOpen=!1,t&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){$.assert(!!this.containingProjects.length);let t=this.containingProjects[0],n=this.host.realpath(this.path);n&&(this.realpath=t.toPath(n),this.realpath!==this.path&&t.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(t){let n=!this.isAttached(t);return n&&(this.containingProjects.push(t),t.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),t.onFileAddedOrRemoved(this.isSymlink())),n}isAttached(t){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===t;case 2:return this.containingProjects[0]===t||this.containingProjects[1]===t;default:return un(this.containingProjects,t)}}detachFromProject(t){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===t&&(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===t?(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===t&&(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:IT(this.containingProjects,t)&&t.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let t of this.containingProjects){IE(t)&&t.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);let n=t.getRootFilesMap().get(this.path);t.removeFile(this,!1,!1),t.onFileAddedOrRemoved(this.isSymlink()),n&&!pM(t)&&t.addMissingFileRoot(n.fileName)}Cs(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return t2.ThrowNoProject();case 1:return $Q(this.containingProjects[0])||BQ(this.containingProjects[0])?t2.ThrowNoProject():this.containingProjects[0];default:let t,n,a,c;for(let u=0;u!t.isOrphan())}lineToTextSpan(t){return this.textStorage.lineToTextSpan(t)}lineOffsetToPosition(t,n,a){return this.textStorage.lineOffsetToPosition(t,n,a)}positionToLineOffset(t){ySr(t);let n=this.textStorage.positionToLineOffset(t);return vSr(n),n}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Ni(this.sourceMapFilePath)&&(C0(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function ySr(t){$.assert(typeof t=="number",`Expected position ${t} to be a number.`),$.assert(t>=0,"Expected position to be non-negative.")}function vSr(t){$.assert(typeof t.line=="number",`Expected line ${t.line} to be a number.`),$.assert(typeof t.offset=="number",`Expected offset ${t.offset} to be a number.`),$.assert(t.line>0,`Expected line to be non-${t.line===0?"zero":"negative"}`),$.assert(t.offset>0,`Expected offset to be non-${t.offset===0?"zero":"negative"}`)}function $Me(t){return Pt(t.containingProjects,BQ)}function UMe(t){return Pt(t.containingProjects,$Q)}var Sq=(t=>(t[t.Inferred=0]="Inferred",t[t.Configured=1]="Configured",t[t.External=2]="External",t[t.AutoImportProvider=3]="AutoImportProvider",t[t.Auxiliary=4]="Auxiliary",t))(Sq||{});function MQ(t,n=!1){let a={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(let c of t){let u=n?c.textStorage.getTelemetryFileSize():0;switch(c.scriptKind){case 1:a.js+=1,a.jsSize+=u;break;case 2:a.jsx+=1,a.jsxSize+=u;break;case 3:sf(c.fileName)?(a.dts+=1,a.dtsSize+=u):(a.ts+=1,a.tsSize+=u);break;case 4:a.tsx+=1,a.tsxSize+=u;break;case 7:a.deferred+=1,a.deferredSize+=u;break}}return a}function SSr(t){let n=MQ(t.getScriptInfos());return n.js>0&&n.ts===0&&n.tsx===0}function zMe(t){let n=MQ(t.getRootScriptInfos());return n.ts===0&&n.tsx===0}function qMe(t){let n=MQ(t.getScriptInfos());return n.ts===0&&n.tsx===0}function JMe(t){return!t.some(n=>Au(n,".ts")&&!sf(n)||Au(n,".tsx"))}function VMe(t){return t.generatedFilePath!==void 0}function DTt(t,n){if(t===n||(t||Pd).length===0&&(n||Pd).length===0)return!0;let a=new Map,c=0;for(let u of t)a.get(u)!==!0&&(a.set(u,!0),c++);for(let u of n){let _=a.get(u);if(_===void 0)return!1;_===!0&&(a.set(u,!1),c--)}return c===0}function bSr(t,n){return t.enable!==n.enable||!DTt(t.include,n.include)||!DTt(t.exclude,n.exclude)}function xSr(t,n){return fC(t)!==fC(n)}function TSr(t,n){return t===n?!1:!__(t,n)}var YF=class otr{constructor(n,a,c,u,_,f,y,g,k,T){switch(this.projectKind=a,this.projectService=c,this.compilerOptions=f,this.compileOnSaveEnabled=y,this.watchOptions=g,this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.initialLoadPending=!1,this.dirty=!1,this.typingFiles=Pd,this.moduleSpecifierCache=fje(this),this.createHash=ja(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=wC.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,c.logger.info(`Creating ${Sq[a]}Project: ${n}, currentDirectory: ${T}`),this.projectName=n,this.directoryStructureHost=k,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(T),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new S9e(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(u||fC(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=Aae(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),c.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:$.assertNever(c.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();let C=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=O=>this.writeLog(O):C.trace&&(this.trace=O=>C.trace(O)),this.realpath=ja(C,C.realpath),this.preferNonRecursiveWatch=this.projectService.canUseWatchEvents||C.preferNonRecursiveWatch,this.resolutionCache=K0e(this,this.currentDirectory,!0),this.languageService=b9e(this,this.projectService.documentRegistry,this.projectService.serverMode),_&&this.disableLanguageService(_),this.markAsDirty(),BQ(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getRedirectFromSourceFile(n){}isNonTsProject(){return _1(this),qMe(this)}isJsOnlyProject(){return _1(this),SSr(this)}static resolveModule(n,a,c,u){return otr.importServicePluginSync({name:n},[a],c,u).resolvedModule}static importServicePluginSync(n,a,c,u){$.assertIsDefined(c.require);let _,f;for(let y of a){let g=Z_(c.resolvePath(Xi(y,"node_modules")));u(`Loading ${n.name} from ${y} (resolved to ${g})`);let k=c.require(g,n.name);if(!k.error){f=k.module;break}let T=k.error.stack||k.error.message||JSON.stringify(k.error);(_??(_=[])).push(`Failed to load module '${n.name}' from ${g}: ${T}`)}return{pluginConfigEntry:n,resolvedModule:f,errorLogs:_}}static async importServicePluginAsync(n,a,c,u){$.assertIsDefined(c.importPlugin);let _,f;for(let y of a){let g=Xi(y,"node_modules");u(`Dynamically importing ${n.name} from ${y} (resolved to ${g})`);let k;try{k=await c.importPlugin(g,n.name)}catch(C){k={module:void 0,error:C}}if(!k.error){f=k.module;break}let T=k.error.stack||k.error.message||JSON.stringify(k.error);(_??(_=[])).push(`Failed to dynamically import module '${n.name}' from ${g}: ${T}`)}return{pluginConfigEntry:n,resolvedModule:f,errorLogs:_}}isKnownTypesPackageName(n){return this.projectService.typingsInstaller.isKnownTypesPackageName(n)}installPackage(n){return this.projectService.typingsInstaller.installPackage({...n,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}getSymlinkCache(){return this.symlinks||(this.symlinks=zhe(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFilesMap.size)return j;let n;return this.rootFilesMap.forEach(a=>{(this.languageServiceEnabled||a.info&&a.info.isScriptOpen())&&(n||(n=[])).push(a.fileName)}),En(n,this.typingFiles)||j}getOrCreateScriptInfoAndAttachToProject(n){let a=this.projectService.getOrCreateScriptInfoNotOpenedByClient(n,this.currentDirectory,this.directoryStructureHost,!1);if(a){let c=this.rootFilesMap.get(a.path);c&&c.info!==a&&(c.info=a),a.attachToProject(this)}return a}getScriptKind(n){let a=this.projectService.getScriptInfoForPath(this.toPath(n));return a&&a.scriptKind}getScriptVersion(n){let a=this.projectService.getOrCreateScriptInfoNotOpenedByClient(n,this.currentDirectory,this.directoryStructureHost,!1);return a&&a.getLatestVersion()}getScriptSnapshot(n){let a=this.getOrCreateScriptInfoAndAttachToProject(n);if(a)return a.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){let n=mo(Qs(this.projectService.getExecutingFilePath()));return Xi(n,kn(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(n,a,c,u,_){return this.directoryStructureHost.readDirectory(n,a,c,u,_)}readFile(n){return this.projectService.host.readFile(n)}writeFile(n,a){return this.projectService.host.writeFile(n,a)}fileExists(n){let a=this.toPath(n);return!!this.projectService.getScriptInfoForPath(a)||!this.isWatchedMissingFile(a)&&this.directoryStructureHost.fileExists(n)}resolveModuleNameLiterals(n,a,c,u,_,f){return this.resolutionCache.resolveModuleNameLiterals(n,a,c,u,_,f)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(n,a,c,u,_,f){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(n,a,c,u,_,f)}resolveLibrary(n,a,c,u){return this.resolutionCache.resolveLibrary(n,a,c,u)}directoryExists(n){return this.directoryStructureHost.directoryExists(n)}getDirectories(n){return this.directoryStructureHost.getDirectories(n)}getCachedDirectoryStructureHost(){}toPath(n){return wl(n,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(n,a,c){return this.projectService.watchFactory.watchDirectory(n,a,c,this.projectService.getWatchOptions(this),cf.FailedLookupLocations,this)}watchAffectingFileLocation(n,a){return this.projectService.watchFactory.watchFile(n,a,2e3,this.projectService.getWatchOptions(this),cf.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(n,a,c){return this.projectService.watchFactory.watchDirectory(n,a,c,this.projectService.getWatchOptions(this),cf.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}fileIsOpen(n){return this.projectService.openFiles.has(n)}writeLog(n){this.projectService.logger.info(n)}log(n){this.writeLog(n)}error(n){this.projectService.logger.msg(n,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return yr(this.projectErrors,n=>!n.file)||Pd}getAllProjectErrors(){return this.projectErrors||Pd}setProjectErrors(n){this.projectErrors=n}getLanguageService(n=!0){return n&&_1(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(n,a){return this.projectService.getDocumentPositionMapper(this,n,a)}getSourceFileLike(n){return this.projectService.getSourceFileLike(n,this)}shouldEmitFile(n){return n&&!n.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(n.path)}getCompileOnSaveAffectedFileList(n){return this.languageServiceEnabled?(_1(this),this.builderState=Dv.create(this.program,this.builderState,!0),Wn(Dv.getFilesAffectedBy(this.builderState,this.program,n.path,this.cancellationToken,this.projectService.host),a=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(a.path))?a.fileName:void 0)):[]}emitFile(n,a){if(!this.languageServiceEnabled||!this.shouldEmitFile(n))return{emitSkipped:!0,diagnostics:Pd};let{emitSkipped:c,diagnostics:u,outputFiles:_}=this.getLanguageService().getEmitOutput(n.fileName);if(!c){for(let f of _){let y=za(f.name,this.currentDirectory);a(y,f.text,f.writeByteOrderMark)}if(this.builderState&&fg(this.compilerOptions)){let f=_.filter(y=>sf(y.name));if(f.length===1){let y=this.program.getSourceFile(n.fileName),g=this.projectService.host.createHash?this.projectService.host.createHash(f[0].text):qk(f[0].text);Dv.updateSignatureOfFile(this.builderState,g,y.resolvedPath)}}}return{emitSkipped:c,diagnostics:u}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(let n of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(n.fileName);this.program.forEachResolvedProjectReference(n=>this.detachScriptInfoFromProject(n.sourceFile.fileName)),this.program=void 0}}disableLanguageService(n){this.languageServiceEnabled&&($.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=n,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(n){return!n.enable||!n.include?n:{...n,include:this.removeExistingTypings(n.include)}}getExternalFiles(n){return pu(an(this.plugins,a=>{if(typeof a.module.getExternalFiles=="function")try{return a.module.getExternalFiles(this,n||0)}catch(c){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${c}`),c.stack&&this.projectService.logger.info(c.stack)}}))}getSourceFile(n){if(this.program)return this.program.getSourceFileByPath(n)}getSourceFileOrConfigFile(n){let a=this.program.getCompilerOptions();return n===a.configFilePath?a.configFile:this.getSourceFile(n)}close(){var n;this.typingsCache&&this.projectService.typingsInstaller.onProjectClosed(this),this.typingsCache=void 0,this.closeWatchingTypingLocations(),this.cleanupProgram(),X(this.externalFiles,a=>this.detachScriptInfoIfNotRoot(a)),this.rootFilesMap.forEach(a=>{var c;return(c=a.info)==null?void 0:c.detachFromProject(this)}),this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(n=this.packageJsonWatches)==null||n.forEach(a=>{a.projects.delete(this),a.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(dg(this.missingFilesMap,W1),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(n){let a=this.projectService.getScriptInfo(n);a&&!this.isRoot(a)&&a.detachFromProject(this)}isClosed(){return this.rootFilesMap===void 0}hasRoots(){var n;return!!((n=this.rootFilesMap)!=null&&n.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&so(Na(this.rootFilesMap.values(),n=>{var a;return(a=n.info)==null?void 0:a.fileName}))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return so(Na(this.rootFilesMap.values(),n=>n.info))}getScriptInfos(){return this.languageServiceEnabled?Cr(this.program.getSourceFiles(),n=>{let a=this.projectService.getScriptInfoForPath(n.resolvedPath);return $.assert(!!a,"getScriptInfo",()=>`scriptInfo for a file '${n.fileName}' Path: '${n.path}' / '${n.resolvedPath}' is missing.`),a}):this.getRootScriptInfos()}getExcludedFiles(){return Pd}getFileNames(n,a){if(!this.program)return[];if(!this.languageServiceEnabled){let u=this.getRootFiles();if(this.compilerOptions){let _=x9e(this.compilerOptions);_&&(u||(u=[])).push(_)}return u}let c=[];for(let u of this.program.getSourceFiles())n&&this.program.isSourceFileFromExternalLibrary(u)||c.push(u.fileName);if(!a){let u=this.program.getCompilerOptions().configFile;if(u&&(c.push(u.fileName),u.extendedSourceFiles))for(let _ of u.extendedSourceFiles)c.push(_)}return c}getFileNamesWithRedirectInfo(n){return this.getFileNames().map(a=>({fileName:a,isSourceOfProjectReferenceRedirect:n&&this.isSourceOfProjectReferenceRedirect(a)}))}hasConfigFile(n){if(this.program&&this.languageServiceEnabled){let a=this.program.getCompilerOptions().configFile;if(a){if(n===a.fileName)return!0;if(a.extendedSourceFiles){for(let c of a.extendedSourceFiles)if(n===c)return!0}}}return!1}containsScriptInfo(n){if(this.isRoot(n))return!0;if(!this.program)return!1;let a=this.program.getSourceFileByPath(n.path);return!!a&&a.resolvedPath===n.path}containsFile(n,a){let c=this.projectService.getScriptInfoForNormalizedPath(n);return c&&(c.isScriptOpen()||!a)?this.containsScriptInfo(c):!1}isRoot(n){var a,c;return((c=(a=this.rootFilesMap)==null?void 0:a.get(n.path))==null?void 0:c.info)===n}addRoot(n,a){$.assert(!this.isRoot(n)),this.rootFilesMap.set(n.path,{fileName:a||n.fileName,info:n}),n.attachToProject(this),this.markAsDirty()}addMissingFileRoot(n){let a=this.projectService.toPath(n);this.rootFilesMap.set(a,{fileName:n}),this.markAsDirty()}removeFile(n,a,c){this.isRoot(n)&&this.removeRoot(n),a?this.resolutionCache.removeResolutionsOfFile(n.path):this.resolutionCache.invalidateResolutionOfFile(n.path),this.cachedUnresolvedImportsPerFile.delete(n.path),c&&n.detachFromProject(this),this.markAsDirty()}registerFileUpdate(n){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(n)}markFileAsDirty(n){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(n)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}markAutoImportProviderAsDirty(){var n;this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(n=this.autoImportProviderHost)==null||n.markAsDirty()}onAutoImportProviderSettingsChanged(){this.markAutoImportProviderAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.markAutoImportProviderAsDirty()}onFileAddedOrRemoved(n){this.hasAddedorRemovedFiles=!0,n&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}onReleaseOldSourceFile(n,a,c,u){(!u||n.resolvedPath===n.path&&u.resolvedPath!==n.path)&&this.detachScriptInfoFromProject(n.fileName,c)}updateFromProject(){_1(this)}updateGraph(){var n,a;(n=hi)==null||n.push(hi.Phase.Session,"updateGraph",{name:this.projectName,kind:Sq[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();let c=this.updateGraphWorker(),u=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;let _=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Pd;for(let y of _)this.cachedUnresolvedImportsPerFile.delete(y);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((c||_.length)&&(this.lastCachedUnresolvedImportsList=ESr(this.program,this.cachedUnresolvedImportsPerFile)),this.enqueueInstallTypingsForProject(u)):this.lastCachedUnresolvedImportsList=void 0;let f=this.projectProgramVersion===0&&c;return c&&this.projectProgramVersion++,u&&this.markAutoImportProviderAsDirty(),f&&this.getPackageJsonAutoImportProvider(),(a=hi)==null||a.pop(),!c}enqueueInstallTypingsForProject(n){let a=this.getTypeAcquisition();if(!a||!a.enable||this.projectService.typingsInstaller===ise)return;let c=this.typingsCache;(n||!c||bSr(a,c.typeAcquisition)||xSr(this.getCompilationSettings(),c.compilerOptions)||TSr(this.lastCachedUnresolvedImportsList,c.unresolvedImports))&&(this.typingsCache={compilerOptions:this.getCompilationSettings(),typeAcquisition:a,unresolvedImports:this.lastCachedUnresolvedImportsList},this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this,a,this.lastCachedUnresolvedImportsList))}updateTypingFiles(n,a,c,u){this.typingsCache={compilerOptions:n,typeAcquisition:a,unresolvedImports:c};let _=!a||!a.enable?Pd:pu(u);kI(_,this.typingFiles,ub(!this.useCaseSensitiveFileNames()),zs,f=>this.detachScriptInfoFromProject(f))&&(this.typingFiles=_,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&dg(this.typingWatchers,W1),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:Toe})}watchTypingLocations(n){if(!n){this.typingWatchers.isInvoked=!1;return}if(!n.length){this.closeWatchingTypingLocations();return}let a=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;let c=(u,_)=>{let f=this.toPath(u);if(a.delete(f),!this.typingWatchers.has(f)){let y=_==="FileWatcher"?cf.TypingInstallerLocationFile:cf.TypingInstallerLocationDirectory;this.typingWatchers.set(f,NK(f)?_==="FileWatcher"?this.projectService.watchFactory.watchFile(u,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),y,this):this.projectService.watchFactory.watchDirectory(u,g=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Au(g,".json"))return this.writeLog("Ignoring files that are not *.json");if(M1(g,Xi(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),y,this):(this.writeLog(`Skipping watcher creation at ${u}:: ${Qbe(y,this)}`),JL))}};for(let u of n){let _=t_(u);if(_==="package.json"||_==="bower.json"){c(u,"FileWatcher");continue}if(ug(this.currentDirectory,u,this.currentDirectory,!this.useCaseSensitiveFileNames())){let f=u.indexOf(Gl,this.currentDirectory.length+1);c(f!==-1?u.substr(0,f):u,"DirectoryWatcher");continue}if(ug(this.projectService.typingsInstaller.globalTypingsCacheLocation,u,this.currentDirectory,!this.useCaseSensitiveFileNames())){c(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}c(u,"DirectoryWatcher")}a.forEach((u,_)=>{u.close(),this.typingWatchers.delete(_)})}getCurrentProgram(){return this.program}removeExistingTypings(n){if(!n.length)return n;let a=kie(this.getCompilerOptions(),this);return yr(n,c=>!a.includes(c))}updateGraphWorker(){var n,a;let c=this.languageService.getCurrentProgram();$.assert(c===this.program),$.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);let u=Ml(),{hasInvalidatedResolutions:_,hasInvalidatedLibResolutions:f}=this.resolutionCache.createHasInvalidatedResolutions(Yf,Yf);this.hasInvalidatedResolutions=_,this.hasInvalidatedLibResolutions=f,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(n=hi)==null||n.push(hi.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,c),(a=hi)==null||a.pop(),$.assert(c===void 0||this.program!==void 0);let y=!1;if(this.program&&(!c||this.program!==c&&this.program.structureIsReused!==2)){if(y=!0,this.rootFilesMap.forEach((T,C)=>{var O;let F=this.program.getSourceFileByPath(C),M=T.info;!F||((O=T.info)==null?void 0:O.path)===F.resolvedPath||(T.info=this.projectService.getScriptInfo(F.fileName),$.assert(T.info.isAttached(this)),M?.detachFromProject(this))}),T0e(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(T,C)=>this.addMissingFileWatcher(T,C)),this.generatedFilesMap){let T=this.compilerOptions.outFile;VMe(this.generatedFilesMap)?(!T||!this.isValidGeneratedFileWatcher(Qm(T)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():T?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((C,O)=>{let F=this.program.getSourceFileByPath(O);(!F||F.resolvedPath!==O||!this.isValidGeneratedFileWatcher(Bre(F.fileName,this.compilerOptions,this.program),C))&&(C0(C),this.generatedFilesMap.delete(O))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||c&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&c&&this.program&&Ix(this.changedFilesForExportMapCache,T=>{let C=c.getSourceFileByPath(T),O=this.program.getSourceFileByPath(T);return!C||!O?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(C,O,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());let g=this.externalFiles||Pd;this.externalFiles=this.getExternalFiles(),kI(this.externalFiles,g,ub(!this.useCaseSensitiveFileNames()),T=>{let C=this.projectService.getOrCreateScriptInfoNotOpenedByClient(T,this.currentDirectory,this.directoryStructureHost,!1);C?.attachToProject(this)},T=>this.detachScriptInfoFromProject(T));let k=Ml()-u;return this.sendPerformanceEvent("UpdateGraph",k),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${y}${this.program?` structureIsReused:: ${d4[this.program.structureIsReused]}`:""} Elapsed: ${k}ms`),this.projectService.logger.isTestLogger?this.program!==c?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==c&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),y}sendPerformanceEvent(n,a){this.projectService.sendPerformanceEvent(n,a)}detachScriptInfoFromProject(n,a){let c=this.projectService.getScriptInfo(n);c&&(c.detachFromProject(this),a||this.resolutionCache.removeResolutionsOfFile(c.path))}addMissingFileWatcher(n,a){var c;if(IE(this)){let _=this.projectService.configFileExistenceInfoCache.get(n);if((c=_?.config)!=null&&c.projects.has(this.canonicalConfigFilePath))return JL}let u=this.projectService.watchFactory.watchFile(za(a,this.currentDirectory),(_,f)=>{IE(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(_,n,f),f===0&&this.missingFilesMap.has(n)&&(this.missingFilesMap.delete(n),u.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),cf.MissingFile,this);return u}isWatchedMissingFile(n){return!!this.missingFilesMap&&this.missingFilesMap.has(n)}addGeneratedFileWatch(n,a){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(n));else{let c=this.toPath(a);if(this.generatedFilesMap){if(VMe(this.generatedFilesMap)){$.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(c))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(c,this.createGeneratedFileWatcher(n))}}createGeneratedFileWatcher(n){return{generatedFilePath:this.toPath(n),watcher:this.projectService.watchFactory.watchFile(n,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),cf.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(n,a){return this.toPath(n)===a.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(VMe(this.generatedFilesMap)?C0(this.generatedFilesMap):dg(this.generatedFilesMap,C0),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(n){let a=this.projectService.getScriptInfoForPath(this.toPath(n));return a&&!a.isAttached(this)?t2.ThrowProjectDoesNotContainDocument(n,this):a}getScriptInfo(n){return this.projectService.getScriptInfo(n)}filesToString(n){return this.filesToStringWorker(n,!0,!1)}filesToStringWorker(n,a,c){if(this.initialLoadPending)return` Files (0) InitialLoadPending +`;if(!this.program)return` Files (0) NoProgram +`;let u=this.program.getSourceFiles(),_=` Files (${u.length}) +`;if(n){for(let f of u)_+=` ${f.fileName}${c?` ${f.version} ${JSON.stringify(f.text)}`:""} +`;a&&(_+=` + +`,e1e(this.program,f=>_+=` ${f} +`))}return _}print(n,a,c){var u;this.writeLog(`Project '${this.projectName}' (${Sq[this.projectKind]})`),this.writeLog(this.filesToStringWorker(n&&this.projectService.logger.hasLevel(3),a&&this.projectService.logger.hasLevel(3),c&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(u=this.noDtsResolutionProject)==null||u.print(!1,!1,!1)}setCompilerOptions(n){var a;if(n){n.allowNonTsExtensions=!0;let c=this.compilerOptions;this.compilerOptions=n,this.setInternalCompilerOptionsForEmittingJsFiles(),(a=this.noDtsResolutionProject)==null||a.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),Yte(c,n)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(n){this.watchOptions=n}getWatchOptions(){return this.watchOptions}setTypeAcquisition(n){n&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(n))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(n,a){var c,u;let _=a?g=>so(g.entries(),([k,T])=>({fileName:k,isSourceOfProjectReferenceRedirect:T})):g=>so(g.keys());this.initialLoadPending||_1(this);let f={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:pM(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},y=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&n===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!y)return{info:f,projectErrors:this.getGlobalProjectErrors()};let g=this.lastReportedFileNames,k=((c=this.externalFiles)==null?void 0:c.map(U=>({fileName:nu(U),isSourceOfProjectReferenceRedirect:!1})))||Pd,T=_l(this.getFileNamesWithRedirectInfo(!!a).concat(k),U=>U.fileName,U=>U.isSourceOfProjectReferenceRedirect),C=new Map,O=new Map,F=y?so(y.keys()):[],M=[];return Ad(T,(U,J)=>{g.has(J)?a&&U!==g.get(J)&&M.push({fileName:J,isSourceOfProjectReferenceRedirect:U}):C.set(J,U)}),Ad(g,(U,J)=>{T.has(J)||O.set(J,U)}),this.lastReportedFileNames=T,this.lastReportedVersion=this.projectProgramVersion,{info:f,changes:{added:_(C),removed:_(O),updated:a?F.map(U=>({fileName:U,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(U)})):F,updatedRedirects:a?M:void 0},projectErrors:this.getGlobalProjectErrors()}}else{let g=this.getFileNamesWithRedirectInfo(!!a),k=((u=this.externalFiles)==null?void 0:u.map(C=>({fileName:nu(C),isSourceOfProjectReferenceRedirect:!1})))||Pd,T=g.concat(k);return this.lastReportedFileNames=_l(T,C=>C.fileName,C=>C.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:f,files:a?T:T.map(C=>C.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(n){this.rootFilesMap.delete(n.path)}isSourceOfProjectReferenceRedirect(n){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(n)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Xi(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(n){if(!this.projectService.globalPlugins.length)return;let a=this.projectService.host;if(!a.require&&!a.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let c=this.getGlobalPluginSearchPaths();for(let u of this.projectService.globalPlugins)u&&(n.plugins&&n.plugins.some(_=>_.name===u)||(this.projectService.logger.info(`Loading global plugin ${u}`),this.enablePlugin({name:u,global:!0},c)))}enablePlugin(n,a){this.projectService.requestEnablePlugin(this,n,a)}enableProxy(n,a){try{if(typeof n!="function"){this.projectService.logger.info(`Skipped loading plugin ${a.name} because it did not expose a proper factory function`);return}let c={config:a,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},u=n({typescript:cTt}),_=u.create(c);for(let f of Object.keys(this.languageService))f in _||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${f} in created LS. Patching.`),_[f]=this.languageService[f]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=_,this.plugins.push({name:a.name,module:u})}catch(c){this.projectService.logger.info(`Plugin activation failed: ${c}`)}}onPluginConfigurationChanged(n,a){this.plugins.filter(c=>c.name===n).forEach(c=>{c.module.onConfigurationChanged&&c.module.onConfigurationChanged(a)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(n,a){return this.projectService.serverMode!==0?Pd:this.projectService.getPackageJsonsVisibleToFile(n,this,a)}getNearestAncestorDirectoryWithPackageJson(n){return this.projectService.getNearestAncestorDirectoryWithPackageJson(n,this)}getPackageJsonsForAutoImport(n){return this.getPackageJsonsVisibleToFile(Xi(this.currentDirectory,$z),n)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=Ove(this))}clearCachedExportInfoMap(){var n;(n=this.exportMapCache)==null||n.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||tQ(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var n,a;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((n=this.projectService.host.realpath)==null?void 0:n.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(a=this.projectService.host.trace)==null?void 0:a.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var n,a,c;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(_1(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}let u=this.includePackageJsonAutoImports();if(u){(n=hi)==null||n.push(hi.Phase.Session,"getPackageJsonAutoImportProvider");let _=Ml();if(this.autoImportProviderHost=KMe.create(u,this,this.getHostForAutoImportProvider())??!1,this.autoImportProviderHost)return _1(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Ml()-_),(a=hi)==null||a.pop(),this.autoImportProviderHost.getCurrentProgram();(c=hi)==null||c.pop()}}isDefaultProjectForOpenFiles(){return!!Ad(this.projectService.openFiles,(n,a)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(a))===this)}watchNodeModulesForPackageJsonChanges(n){return this.projectService.watchPackageJsonsInNodeModules(n,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(n){return $.assert(this.projectService.serverMode===0),this.noDtsResolutionProject??(this.noDtsResolutionProject=new GMe(this)),this.noDtsResolutionProject.rootFile!==n&&(this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[n]),this.noDtsResolutionProject.rootFile=n),this.noDtsResolutionProject}runWithTemporaryFileUpdate(n,a,c){var u,_,f,y;let g=this.program,k=$.checkDefined((u=this.program)==null?void 0:u.getSourceFile(n),"Expected file to be part of program"),T=$.checkDefined(k.getFullText());(_=this.getScriptInfo(n))==null||_.editContent(0,T.length,a),this.updateGraph();try{c(this.program,g,(f=this.program)==null?void 0:f.getSourceFile(n))}finally{(y=this.getScriptInfo(n))==null||y.editContent(0,a.length,T)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:j,lib:j,noLib:!0}}};function ESr(t,n){var a,c;let u=t.getSourceFiles();(a=hi)==null||a.push(hi.Phase.Session,"getUnresolvedImports",{count:u.length});let _=t.getTypeChecker().getAmbientModules().map(y=>i1(y.getName())),f=O1(an(u,y=>kSr(t,y,_,n)));return(c=hi)==null||c.pop(),f}function kSr(t,n,a,c){return hs(c,n.path,()=>{let u;return t.forEachResolvedModule(({resolvedModule:_},f)=>{(!_||!JU(_.extension))&&!vt(f)&&!a.some(y=>y===f)&&(u=jt(u,wie(f).packageName))},n),u||Pd})}var WMe=class extends YF{constructor(t,n,a,c,u,_){super(t.newInferredProjectName(),0,t,!1,void 0,n,!1,a,t.host,u),this._isJsInferredProject=!1,this.typeAcquisition=_,this.projectRootPath=c&&t.toCanonicalFileName(c),!c&&!t.useSingleInferredProject&&(this.canonicalCurrentDirectory=t.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(t){t!==this._isJsInferredProject&&(this._isJsInferredProject=t,this.setCompilerOptions())}setCompilerOptions(t){if(!t&&!this.getCompilationSettings())return;let n=X1e(t||this.getCompilationSettings());this._isJsInferredProject&&typeof n.maxNodeModuleJsDepth!="number"?n.maxNodeModuleJsDepth=2:this._isJsInferredProject||(n.maxNodeModuleJsDepth=void 0),n.allowJs=!0,super.setCompilerOptions(n)}addRoot(t){$.assert(t.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(t),!this._isJsInferredProject&&t.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!t.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(t)}removeRoot(t){this.projectService.stopWatchingConfigFilesForScriptInfo(t),super.removeRoot(t),!this.isOrphan()&&this._isJsInferredProject&&t.isJavaScript()&&ht(this.getRootScriptInfos(),n=>!n.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){X(this.getRootScriptInfos(),t=>this.projectService.stopWatchingConfigFilesForScriptInfo(t)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:zMe(this),include:j,exclude:j}}},GMe=class extends YF{constructor(t){super(t.projectService.newAuxiliaryProjectName(),4,t.projectService,!1,void 0,t.getCompilerOptionsForNoDtsResolutionProject(),!1,void 0,t.projectService.host,t.currentDirectory)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},HMe=class mct extends YF{constructor(n,a,c){super(n.projectService.newAutoImportProviderProjectName(),3,n.projectService,!1,void 0,c,!1,n.getWatchOptions(),n.projectService.host,n.currentDirectory),this.hostProject=n,this.rootFileNames=a,this.useSourceOfProjectReferenceRedirect=ja(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=ja(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(n,a,c,u){var _,f;if(!n)return j;let y=a.getCurrentProgram();if(!y)return j;let g=Ml(),k,T,C=Xi(a.currentDirectory,$z),O=a.getPackageJsonsForAutoImport(Xi(a.currentDirectory,C));for(let re of O)(_=re.dependencies)==null||_.forEach((ae,_e)=>G(_e)),(f=re.peerDependencies)==null||f.forEach((ae,_e)=>G(_e));let F=0;if(k){let re=a.getSymlinkCache();for(let ae of so(k.keys())){if(n===2&&F>=this.maxDependencies)return a.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),j;let _e=Aye(ae,a.currentDirectory,u,c,y.getModuleResolutionCache());if(_e){let le=Z(_e,y,re);if(le){F+=J(le);continue}}if(!X([a.currentDirectory,a.getGlobalTypingsCacheLocation()],le=>{if(le){let Oe=Aye(`@types/${ae}`,le,u,c,y.getModuleResolutionCache());if(Oe){let be=Z(Oe,y,re);return F+=J(be),!0}}})&&_e&&u.allowJs&&u.maxNodeModuleJsDepth){let le=Z(_e,y,re,!0);F+=J(le)}}}let M=y.getResolvedProjectReferences(),U=0;return M?.length&&a.projectService.getHostPreferences().includeCompletionsForModuleExports&&M.forEach(re=>{if(re?.commandLine.options.outFile)U+=J(Q([hE(re.commandLine.options.outFile,".d.ts")]));else if(re){let ae=Ef(()=>S3(re.commandLine,!a.useCaseSensitiveFileNames()));U+=J(Q(Wn(re.commandLine.fileNames,_e=>!sf(_e)&&!Au(_e,".json")&&!y.getSourceFile(_e)?Mz(_e,re.commandLine,!a.useCaseSensitiveFileNames(),ae):void 0)))}}),T?.size&&a.log(`AutoImportProviderProject: found ${T.size} root files in ${F} dependencies ${U} referenced projects in ${Ml()-g} ms`),T?so(T.values()):j;function J(re){return re?.length?(T??(T=new Set),re.forEach(ae=>T.add(ae)),1):0}function G(re){Ca(re,"@types/")||(k||(k=new Set)).add(re)}function Z(re,ae,_e,me){var le;let Oe=Fye(re,u,c,ae.getModuleResolutionCache(),me);if(Oe){let be=(le=c.realpath)==null?void 0:le.call(c,re.packageDirectory),ue=be?a.toPath(be):void 0,De=ue&&ue!==a.toPath(re.packageDirectory);return De&&_e.setSymlinkedDirectory(re.packageDirectory,{real:r_(be),realPath:r_(ue)}),Q(Oe,De?Ce=>Ce.replace(re.packageDirectory,be):void 0)}}function Q(re,ae){return Wn(re,_e=>{let me=ae?ae(_e):_e;if(!y.getSourceFile(me)&&!(ae&&y.getSourceFile(_e)))return me})}}static create(n,a,c){if(n===0)return;let u={...a.getCompilerOptions(),...this.compilerOptionsOverrides},_=this.getRootFileNames(n,a,c,u);if(_.length)return new mct(a,_,u)}isEmpty(){return!Pt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let n=this.rootFileNames;n||(n=mct.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this,n),this.rootFileNames=n;let a=this.getCurrentProgram(),c=super.updateGraph();return a&&a!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),c}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var n;return!!((n=this.rootFileNames)!=null&&n.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||j}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var n;return(n=this.hostProject.getCurrentProgram())==null?void 0:n.getModuleResolutionCache()}};HMe.maxDependencies=10,HMe.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:j,lib:j,noLib:!0};var KMe=HMe,QMe=class extends YF{constructor(t,n,a,c,u){super(t,1,a,!1,void 0,{},!1,void 0,c,mo(t)),this.canonicalConfigFilePath=n,this.openFileWatchTriggered=new Map,this.initialLoadPending=!0,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=u}setCompilerHost(t){this.compilerHost=t}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(t){let n=nu(t),a=this.projectService.toCanonicalFileName(n),c=this.projectService.configFileExistenceInfoCache.get(a);return c||this.projectService.configFileExistenceInfoCache.set(a,c={exists:this.projectService.host.fileExists(n)}),this.projectService.ensureParsedConfigUptoDate(n,a,c,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(n,c,this),c.exists?c.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(t){this.releaseParsedConfig(this.projectService.toCanonicalFileName(nu(t)))}releaseParsedConfig(t){this.projectService.stopWatchingWildCards(t,this),this.projectService.releaseParsedConfig(t,this)}updateGraph(){if(this.deferredClose)return!1;let t=this.dirty;this.initialLoadPending=!1;let n=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let a;switch(n){case 1:this.openFileWatchTriggered.clear(),a=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();let c=$.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,c),a=!0;break;default:a=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),n===2||a&&(!t||!this.triggerFileForConfigFileDiag||this.getCurrentProgram().structureIsReused===2)?this.triggerFileForConfigFileDiag=void 0:this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1),a}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(t){this.projectReferences=t,this.potentialProjectReferences=void 0}setPotentialProjectReference(t){$.assert(this.initialLoadPending),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(t)}getRedirectFromSourceFile(t){let n=this.getCurrentProgram();return n&&n.getRedirectFromSourceFile(t)}forEachResolvedProjectReference(t){var n;return(n=this.getCurrentProgram())==null?void 0:n.forEachResolvedProjectReference(t)}enablePluginsWithOptions(t){var n;if(this.plugins.length=0,!((n=t.plugins)!=null&&n.length)&&!this.projectService.globalPlugins.length)return;let a=this.projectService.host;if(!a.require&&!a.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let c=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){let u=mo(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${u} to search paths`),c.unshift(u)}if(t.plugins)for(let u of t.plugins)this.enablePlugin(u,c);return this.enableGlobalPlugins(t)}getGlobalProjectErrors(){return yr(this.projectErrors,t=>!t.file)||Pd}getAllProjectErrors(){return this.projectErrors||Pd}setProjectErrors(t){this.projectErrors=t}close(){this.projectService.configFileExistenceInfoCache.forEach((t,n)=>this.releaseParsedConfig(n)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}markAsDirty(){this.deferredClose||super.markAsDirty()}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return Tz(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(t){this.parsedCommandLine=t,Sie(t.fileNames,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,sK(t.raw))}},Obe=class extends YF{constructor(t,n,a,c,u,_,f){super(t,2,n,!0,c,a,u,f,n.host,mo(_||Z_(t))),this.externalProjectName=t,this.compileOnSaveEnabled=u,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){let t=super.updateGraph();return this.projectService.sendProjectTelemetry(this),t}getExcludedFiles(){return this.excludedFiles}};function pM(t){return t.projectKind===0}function IE(t){return t.projectKind===1}function jQ(t){return t.projectKind===2}function BQ(t){return t.projectKind===3||t.projectKind===4}function $Q(t){return IE(t)&&!!t.deferredClose}var Fbe=20*1024*1024,Rbe=4*1024*1024,rse="projectsUpdatedInBackground",Lbe="projectLoadingStart",Mbe="projectLoadingFinish",jbe="largeFileReferenced",Bbe="configFileDiag",$be="projectLanguageServiceState",Ube="projectInfo",ZMe="openFileInfo",zbe="createFileWatcher",qbe="createDirectoryWatcher",Jbe="closeFileWatcher",ATt="*ensureProjectForOpenFiles*";function wTt(t){let n=new Map;for(let a of t)if(typeof a.type=="object"){let c=a.type;c.forEach(u=>{$.assert(typeof u=="number")}),n.set(a.name,c)}return n}var CSr=wTt(Q1),DSr=wTt(wF),ASr=new Map(Object.entries({none:0,block:1,smart:2})),XMe={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}};function _M(t){return Ni(t.indentStyle)&&(t.indentStyle=ASr.get(t.indentStyle.toLowerCase()),$.assert(t.indentStyle!==void 0)),t}function nse(t){return CSr.forEach((n,a)=>{let c=t[a];Ni(c)&&(t[a]=n.get(c.toLowerCase()))}),t}function UQ(t,n){let a,c;return wF.forEach(u=>{let _=t[u.name];if(_===void 0)return;let f=DSr.get(u.name);(a||(a={}))[u.name]=f?Ni(_)?f.get(_.toLowerCase()):_:m3(u,_,n||"",c||(c=[]))}),a&&{watchOptions:a,errors:c}}function YMe(t){let n;return uie.forEach(a=>{let c=t[a.name];c!==void 0&&((n||(n={}))[a.name]=c)}),n}function Vbe(t){return Ni(t)?Wbe(t):t}function Wbe(t){switch(t){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function eje(t){let{lazyConfiguredProjectsFromExternalProject:n,...a}=t;return a}var Gbe={getFileName:t=>t,getScriptKind:(t,n)=>{let a;if(n){let c=nE(t);c&&Pt(n,u=>u.extension===c?(a=u.scriptKind,!0):!1)}return a},hasMixedContent:(t,n)=>Pt(n,a=>a.isMixedContent&&Au(t,a.extension))},Hbe={getFileName:t=>t.fileName,getScriptKind:t=>Vbe(t.scriptKind),hasMixedContent:t=>!!t.hasMixedContent};function ITt(t,n){for(let a of n)if(a.getProjectName()===t)return a}var ise={isKnownTypesPackageName:Yf,installPackage:Ts,enqueueInstallTypingsRequest:zs,attach:zs,onProjectClosed:zs,globalTypingsCacheLocation:void 0},tje={close:zs};function PTt(t,n){if(!n)return;let a=n.get(t.path);if(a!==void 0)return Kbe(t)?a&&!Ni(a)?a.get(t.fileName):void 0:Ni(a)||!a?a:a.get(!1)}function NTt(t){return!!t.containingProjects}function Kbe(t){return!!t.configFileInfo}var rje=(t=>(t[t.FindOptimized=0]="FindOptimized",t[t.Find=1]="Find",t[t.CreateReplayOptimized=2]="CreateReplayOptimized",t[t.CreateReplay=3]="CreateReplay",t[t.CreateOptimized=4]="CreateOptimized",t[t.Create=5]="Create",t[t.ReloadOptimized=6]="ReloadOptimized",t[t.Reload=7]="Reload",t))(rje||{});function OTt(t){return t-1}function FTt(t,n,a,c,u,_,f,y,g){for(var k;;){if(n.parsedCommandLine&&(y&&!n.parsedCommandLine.options.composite||n.parsedCommandLine.options.disableSolutionSearching))return;let T=n.projectService.getConfigFileNameForFile({fileName:n.getConfigFilePath(),path:t.path,configFileInfo:!0,isForDefaultProject:!y},c<=3);if(!T)return;let C=n.projectService.findCreateOrReloadConfiguredProject(T,c,u,_,y?void 0:t.fileName,f,y,g);if(!C)return;!C.project.parsedCommandLine&&((k=n.parsedCommandLine)!=null&&k.options.composite)&&C.project.setPotentialProjectReference(n.canonicalConfigFilePath);let O=a(C);if(O)return O;n=C.project}}function RTt(t,n,a,c,u,_,f,y){let g=n.options.disableReferencedProjectLoad?0:c,k;return X(n.projectReferences,T=>{var C;let O=nu(RF(T)),F=t.projectService.toCanonicalFileName(O),M=y?.get(F);if(M!==void 0&&M>=g)return;let U=t.projectService.configFileExistenceInfoCache.get(F),J=g===0?U?.exists||(C=t.resolvedChildConfigs)!=null&&C.has(F)?U.config.parsedCommandLine:void 0:t.getParsedCommandLine(O);if(J&&g!==c&&g>2&&(J=t.getParsedCommandLine(O)),!J)return;let G=t.projectService.findConfiguredProjectByProjectName(O,_);if(!(g===2&&!U&&!G)){switch(g){case 6:G&&G.projectService.reloadConfiguredProjectOptimized(G,u,f);case 4:(t.resolvedChildConfigs??(t.resolvedChildConfigs=new Set)).add(F);case 2:case 0:if(G||g!==0){let Z=a(U??t.projectService.configFileExistenceInfoCache.get(F),G,O,u,t,F);if(Z)return Z}break;default:$.assertNever(g)}(y??(y=new Map)).set(F,g),(k??(k=[])).push(J)}})||X(k,T=>T.projectReferences&&RTt(t,T,a,g,u,_,f,y))}function nje(t,n,a,c,u){let _=!1,f;switch(n){case 2:case 3:sje(t)&&(f=t.projectService.configFileExistenceInfoCache.get(t.canonicalConfigFilePath));break;case 4:if(f=aje(t),f)break;case 5:_=ISr(t,a);break;case 6:if(t.projectService.reloadConfiguredProjectOptimized(t,c,u),f=aje(t),f)break;case 7:_=t.projectService.reloadConfiguredProjectClearingSemanticCache(t,c,u);break;case 0:case 1:break;default:$.assertNever(n)}return{project:t,sentConfigFileDiag:_,configFileExistenceInfo:f,reason:c}}function LTt(t,n){return t.initialLoadPending?(t.potentialProjectReferences&&Ix(t.potentialProjectReferences,n))??(t.resolvedChildConfigs&&Ix(t.resolvedChildConfigs,n)):void 0}function wSr(t,n,a,c){return t.getCurrentProgram()?t.forEachResolvedProjectReference(n):t.initialLoadPending?LTt(t,c):X(t.getProjectReferences(),a)}function ije(t,n,a){let c=a&&t.projectService.configuredProjects.get(a);return c&&n(c)}function MTt(t,n){return wSr(t,a=>ije(t,n,a.sourceFile.path),a=>ije(t,n,t.toPath(RF(a))),a=>ije(t,n,a))}function Qbe(t,n){return`${Ni(n)?`Config: ${n} `:n?`Project: ${n.getProjectName()} `:""}WatchType: ${t}`}function oje(t){return!t.isScriptOpen()&&t.mTime!==void 0}function _1(t){return t.invalidateResolutionsOfFailedLookupLocations(),t.dirty&&!t.updateGraph()}function jTt(t,n,a){if(!a&&(t.invalidateResolutionsOfFailedLookupLocations(),!t.dirty))return!1;t.triggerFileForConfigFileDiag=n;let c=t.pendingUpdateLevel;if(t.updateGraph(),!t.triggerFileForConfigFileDiag&&!a)return c===2;let u=t.projectService.sendConfigFileDiagEvent(t,n,a);return t.triggerFileForConfigFileDiag=void 0,u}function ISr(t,n){if(n){if(jTt(t,n,!1))return!0}else _1(t);return!1}function aje(t){let n=nu(t.getConfigFilePath()),a=t.projectService.ensureParsedConfigUptoDate(n,t.canonicalConfigFilePath,t.projectService.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),c=a.config.parsedCommandLine;if(t.parsedCommandLine=c,t.resolvedChildConfigs=void 0,t.updateReferences(c.projectReferences),sje(t))return a}function sje(t){return!!t.parsedCommandLine&&(!!t.parsedCommandLine.options.composite||!!Eye(t.parsedCommandLine))}function PSr(t){return sje(t)?t.projectService.configFileExistenceInfoCache.get(t.canonicalConfigFilePath):void 0}function NSr(t){return`Creating possible configured project for ${t.fileName} to open`}function Zbe(t){return`User requested reload projects: ${t}`}function cje(t){IE(t)&&(t.projectOptions=!0)}function lje(t){let n=1;return()=>t(n++)}function uje(){return{idToCallbacks:new Map,pathToId:new Map}}function BTt(t,n){return!!n&&!!t.eventHandler&&!!t.session}function OSr(t,n){if(!BTt(t,n))return;let a=uje(),c=uje(),u=uje(),_=1;return t.session.addProtocolHandler("watchChange",F=>(k(F.arguments),{responseRequired:!1})),{watchFile:f,watchDirectory:y,getCurrentDirectory:()=>t.host.getCurrentDirectory(),useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames};function f(F,M){return g(a,F,M,U=>({eventName:zbe,data:{id:U,path:F}}))}function y(F,M,U){return g(U?u:c,F,M,J=>({eventName:qbe,data:{id:J,path:F,recursive:!!U,ignoreUpdate:F.endsWith("/node_modules")?void 0:!0}}))}function g({pathToId:F,idToCallbacks:M},U,J,G){let Z=t.toPath(U),Q=F.get(Z);Q||F.set(Z,Q=_++);let re=M.get(Q);return re||(M.set(Q,re=new Set),t.eventHandler(G(Q))),re.add(J),{close(){let ae=M.get(Q);ae?.delete(J)&&(ae.size||(M.delete(Q),F.delete(Z),t.eventHandler({eventName:Jbe,data:{id:Q}})))}}}function k(F){Zn(F)?F.forEach(T):T(F)}function T({id:F,created:M,deleted:U,updated:J}){C(F,M,0),C(F,U,2),C(F,J,1)}function C(F,M,U){M?.length&&(O(a,F,M,(J,G)=>J(G,U)),O(c,F,M,(J,G)=>J(G)),O(u,F,M,(J,G)=>J(G)))}function O(F,M,U,J){var G;(G=F.idToCallbacks.get(M))==null||G.forEach(Z=>{U.forEach(Q=>J(Z,Z_(Q)))})}}var $Tt=class hct{constructor(n){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Set,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=lje(IMe),this.newAutoImportProviderProjectName=lje(PMe),this.newAuxiliaryProjectName=lje(NMe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=XMe,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=zs,this.verifyDocumentRegistry=zs,this.verifyProgram=zs,this.onProjectCreation=zs;var a;this.host=n.host,this.logger=n.logger,this.cancellationToken=n.cancellationToken,this.useSingleInferredProject=n.useSingleInferredProject,this.useInferredProjectPerProjectRoot=n.useInferredProjectPerProjectRoot,this.typingsInstaller=n.typingsInstaller||ise,this.throttleWaitMilliseconds=n.throttleWaitMilliseconds,this.eventHandler=n.eventHandler,this.suppressDiagnosticEvents=n.suppressDiagnosticEvents,this.globalPlugins=n.globalPlugins||Pd,this.pluginProbeLocations=n.pluginProbeLocations||Pd,this.allowLocalPluginLoads=!!n.allowLocalPluginLoads,this.typesMapLocation=n.typesMapLocation===void 0?Xi(mo(this.getExecutingFilePath()),"typesMap.json"):n.typesMapLocation,this.session=n.session,this.jsDocParsingMode=n.jsDocParsingMode,n.serverMode!==void 0?this.serverMode=n.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=d_()),this.currentDirectory=nu(this.host.getCurrentDirectory()),this.toCanonicalFileName=_d(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?r_(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new FMe(this.host,this.logger),this.logger.info(`currentDirectory:: ${this.host.getCurrentDirectory()} useCaseSensitiveFileNames:: ${this.host.useCaseSensitiveFileNames}`),this.logger.info(`libs Location:: ${mo(this.host.getExecutingFilePath())}`),this.logger.info(`globalTypingsCacheLocation:: ${this.typingsInstaller.globalTypingsCacheLocation}`),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.hostConfiguration={formatCodeOptions:Coe(this.host.newLine),preferences:u1,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=jve(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);let c=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,u=c!==0?_=>this.logger.info(_):zs;this.packageJsonCache=mje(this),this.watchFactory=this.serverMode!==0?{watchFile:qz,watchDirectory:qz}:E0e(OSr(this,n.canUseWatchEvents)||this.host,c,u,Qbe),this.canUseWatchEvents=BTt(this,n.canUseWatchEvents),(a=n.incrementalVerifier)==null||a.call(n,this)}toPath(n){return wl(n,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(n){return za(n,this.host.getCurrentDirectory())}setDocument(n,a,c){let u=$.checkDefined(this.getScriptInfoForPath(a));u.cacheSourceFile={key:n,sourceFile:c}}getDocument(n,a){let c=this.getScriptInfoForPath(a);return c&&c.cacheSourceFile&&c.cacheSourceFile.key===n?c.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(n,a){if(!this.eventHandler)return;let c={eventName:$be,data:{project:n,languageServiceEnabled:a}};this.eventHandler(c)}loadTypesMap(){try{let n=this.host.readFile(this.typesMapLocation);if(n===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}let a=JSON.parse(n);for(let c of Object.keys(a.typesMap))a.typesMap[c].match=new RegExp(a.typesMap[c].match,"i");this.safelist=a.typesMap;for(let c in a.simpleMap)Ho(a.simpleMap,c)&&this.legacySafelist.set(c,a.simpleMap[c].toLowerCase())}catch(n){this.logger.info(`Error loading types map: ${n}`),this.safelist=XMe,this.legacySafelist.clear()}}updateTypingsForProject(n){let a=this.findProject(n.projectName);if(a)switch(n.kind){case xoe:a.updateTypingFiles(n.compilerOptions,n.typeAcquisition,n.unresolvedImports,n.typings);return;case Toe:a.enqueueInstallTypingsForProject(!0);return}}watchTypingLocations(n){var a;(a=this.findProject(n.projectName))==null||a.watchTypingLocations(n.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(ATt,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(n){if($Q(n)||(n.markAsDirty(),BQ(n)))return;let a=n.getProjectName();this.pendingProjectUpdates.set(a,n),this.throttledOperations.schedule(a,250,()=>{this.pendingProjectUpdates.delete(a)&&_1(n)})}hasPendingProjectUpdate(n){return this.pendingProjectUpdates.has(n.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;let n={eventName:rse,data:{openFiles:so(this.openFiles.keys(),a=>this.getScriptInfoForPath(a).fileName)}};this.eventHandler(n)}sendLargeFileReferencedEvent(n,a){if(!this.eventHandler)return;let c={eventName:jbe,data:{file:n,fileSize:a,maxFileSize:Rbe}};this.eventHandler(c)}sendProjectLoadingStartEvent(n,a){if(!this.eventHandler)return;n.sendLoadingProjectFinish=!0;let c={eventName:Lbe,data:{project:n,reason:a}};this.eventHandler(c)}sendProjectLoadingFinishEvent(n){if(!this.eventHandler||!n.sendLoadingProjectFinish)return;n.sendLoadingProjectFinish=!1;let a={eventName:Mbe,data:{project:n}};this.eventHandler(a)}sendPerformanceEvent(n,a){this.performanceEventHandler&&this.performanceEventHandler({kind:n,durationMs:a})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(n){this.delayUpdateProjectGraph(n),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(n,a){if(n.length){for(let c of n)a&&c.clearSourceMapperCache(),this.delayUpdateProjectGraph(c);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(n,a){$.assert(a===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");let c=nse(n),u=UQ(n,a),_=YMe(n);c.allowNonTsExtensions=!0;let f=a&&this.toCanonicalFileName(a);f?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(f,c),this.watchOptionsForInferredProjectsPerProjectRoot.set(f,u||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(f,_)):(this.compilerOptionsForInferredProjects=c,this.watchOptionsForInferredProjects=u,this.typeAcquisitionForInferredProjects=_);for(let y of this.inferredProjects)(f?y.projectRootPath===f:!y.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(y.projectRootPath))&&(y.setCompilerOptions(c),y.setTypeAcquisition(_),y.setWatchOptions(u?.watchOptions),y.setProjectErrors(u?.errors),y.compileOnSaveEnabled=c.compileOnSave,y.markAsDirty(),this.delayUpdateProjectGraph(y));this.delayEnsureProjectForOpenFiles()}findProject(n){if(n!==void 0)return wMe(n)?ITt(n,this.inferredProjects):this.findExternalProjectByProjectName(n)||this.findConfiguredProjectByProjectName(nu(n))}forEachProject(n){this.externalProjects.forEach(n),this.configuredProjects.forEach(n),this.inferredProjects.forEach(n)}forEachEnabledProject(n){this.forEachProject(a=>{!a.isOrphan()&&a.languageServiceEnabled&&n(a)})}getDefaultProjectForFile(n,a){return a?this.ensureDefaultProjectForFile(n):this.tryGetDefaultProjectForFile(n)}tryGetDefaultProjectForFile(n){let a=Ni(n)?this.getScriptInfoForNormalizedPath(n):n;return a&&!a.isOrphan()?a.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(n){var a;let c=Ni(n)?this.getScriptInfoForNormalizedPath(n):n;if(c)return(a=this.pendingOpenFileProjectUpdates)!=null&&a.delete(c.path)&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(c,5),c.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(c,this.openFiles.get(c.path))),this.tryGetDefaultProjectForFile(c)}ensureDefaultProjectForFile(n){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(n)||this.doEnsureDefaultProjectForFile(n)}doEnsureDefaultProjectForFile(n){this.ensureProjectStructuresUptoDate();let a=Ni(n)?this.getScriptInfoForNormalizedPath(n):n;return a?a.getDefaultProject():(this.logErrorForScriptInfoNotFound(Ni(n)?n:n.fileName),t2.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(n){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(n)}ensureProjectStructuresUptoDate(){let n=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();let a=c=>{n=_1(c)||n};this.externalProjects.forEach(a),this.configuredProjects.forEach(a),this.inferredProjects.forEach(a),n&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(n){let a=this.getScriptInfoForNormalizedPath(n);return a&&a.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(n){let a=this.getScriptInfoForNormalizedPath(n);return{...this.hostConfiguration.preferences,...a&&a.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(n,a){$.assert(!n.isScriptOpen()),a===2?this.handleDeletedFile(n,!0):(n.deferredDelete&&(n.deferredDelete=void 0),n.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(n.containingProjects,!1),this.handleSourceMapProjects(n))}handleSourceMapProjects(n){if(n.sourceMapFilePath)if(Ni(n.sourceMapFilePath)){let a=this.getScriptInfoForPath(n.sourceMapFilePath);this.delayUpdateSourceInfoProjects(a?.sourceInfos)}else this.delayUpdateSourceInfoProjects(n.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(n.sourceInfos),n.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(n.declarationInfoPath)}delayUpdateSourceInfoProjects(n){n&&n.forEach((a,c)=>this.delayUpdateProjectsOfScriptInfoPath(c))}delayUpdateProjectsOfScriptInfoPath(n){let a=this.getScriptInfoForPath(n);a&&this.delayUpdateProjectGraphs(a.containingProjects,!0)}handleDeletedFile(n,a){$.assert(!n.isScriptOpen()),this.delayUpdateProjectGraphs(n.containingProjects,!1),this.handleSourceMapProjects(n),n.detachAllProjects(),a?(n.delayReloadNonMixedContentFile(),n.deferredDelete=!0):this.deleteScriptInfo(n)}watchWildcardDirectory(n,a,c,u){let _=this.watchFactory.watchDirectory(n,y=>this.onWildCardDirectoryWatcherInvoke(n,c,u,f,y),a,this.getWatchOptionsFromProjectWatchOptions(u.parsedCommandLine.watchOptions,mo(c)),cf.WildcardDirectory,c),f={packageJsonWatches:void 0,close(){var y;_&&(_.close(),_=void 0,(y=f.packageJsonWatches)==null||y.forEach(g=>{g.projects.delete(f),g.close()}),f.packageJsonWatches=void 0)}};return f}onWildCardDirectoryWatcherInvoke(n,a,c,u,_){let f=this.toPath(_),y=c.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(_,f);if(t_(f)==="package.json"&&!tQ(f)&&(y&&y.fileExists||!y&&this.host.fileExists(_))){let k=this.getNormalizedAbsolutePath(_);this.logger.info(`Config: ${a} Detected new package.json: ${k}`),this.packageJsonCache.addOrUpdate(k,f),this.watchPackageJsonFile(k,f,u)}y?.fileExists||this.sendSourceFileChange(f);let g=this.findConfiguredProjectByProjectName(a);kK({watchedDirPath:this.toPath(n),fileOrDirectory:_,fileOrDirectoryPath:f,configFileName:a,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:c.parsedCommandLine.options,program:g?.getCurrentProgram()||c.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:k=>this.logger.info(k),toPath:k=>this.toPath(k),getScriptKind:g?k=>g.getScriptKind(k):void 0})||(c.updateLevel!==2&&(c.updateLevel=1),c.projects.forEach((k,T)=>{var C;if(!k)return;let O=this.getConfiguredProjectByCanonicalConfigFilePath(T);if(!O)return;if(g!==O&&this.getHostPreferences().includeCompletionsForModuleExports){let M=this.toPath(a);wt((C=O.getCurrentProgram())==null?void 0:C.getResolvedProjectReferences(),U=>U?.sourceFile.path===M)&&O.markAutoImportProviderAsDirty()}let F=g===O?1:0;if(!(O.pendingUpdateLevel>F))if(this.openFiles.has(f))if($.checkDefined(this.getScriptInfoForPath(f)).isAttached(O)){let U=Math.max(F,O.openFileWatchTriggered.get(f)||0);O.openFileWatchTriggered.set(f,U)}else O.pendingUpdateLevel=F,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(O);else O.pendingUpdateLevel=F,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(O)}))}delayUpdateProjectsFromParsedConfigOnConfigFileChange(n,a){let c=this.configFileExistenceInfoCache.get(n);if(!c?.config)return!1;let u=!1;return c.config.updateLevel=2,c.config.cachedDirectoryStructureHost.clearCache(),c.config.projects.forEach((_,f)=>{var y,g,k;let T=this.getConfiguredProjectByCanonicalConfigFilePath(f);if(T)if(u=!0,f===n){if(T.initialLoadPending)return;T.pendingUpdateLevel=2,T.pendingUpdateReason=a,this.delayUpdateProjectGraph(T),T.markAutoImportProviderAsDirty()}else{if(T.initialLoadPending){(g=(y=this.configFileExistenceInfoCache.get(f))==null?void 0:y.openFilesImpactedByConfigFile)==null||g.forEach(O=>{var F;(F=this.pendingOpenFileProjectUpdates)!=null&&F.has(O)||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(O,this.configFileForOpenFiles.get(O))});return}let C=this.toPath(n);T.resolutionCache.removeResolutionsFromProjectReferenceRedirects(C),this.delayUpdateProjectGraph(T),this.getHostPreferences().includeCompletionsForModuleExports&&wt((k=T.getCurrentProgram())==null?void 0:k.getResolvedProjectReferences(),O=>O?.sourceFile.path===C)&&T.markAutoImportProviderAsDirty()}}),u}onConfigFileChanged(n,a,c){let u=this.configFileExistenceInfoCache.get(a),_=this.getConfiguredProjectByCanonicalConfigFilePath(a),f=_?.deferredClose;c===2?(u.exists=!1,_&&(_.deferredClose=!0)):(u.exists=!0,f&&(_.deferredClose=void 0,_.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(a,"Change in config file detected"),this.openFiles.forEach((y,g)=>{var k,T;let C=this.configFileForOpenFiles.get(g);if(!((k=u.openFilesImpactedByConfigFile)!=null&&k.has(g)))return;this.configFileForOpenFiles.delete(g);let O=this.getScriptInfoForPath(g);this.getConfigFileNameForFile(O,!1)&&((T=this.pendingOpenFileProjectUpdates)!=null&&T.has(g)||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(g,C))}),this.delayEnsureProjectForOpenFiles()}removeProject(n){switch(this.logger.info("`remove Project::"),n.print(!0,!0,!1),n.close(),$.shouldAssert(1)&&this.filenameToScriptInfo.forEach(a=>$.assert(!a.isAttached(n),"Found script Info still attached to project",()=>`${n.projectName}: ScriptInfos still attached: ${JSON.stringify(so(Na(this.filenameToScriptInfo.values(),c=>c.isAttached(n)?{fileName:c.fileName,projects:c.containingProjects.map(u=>u.projectName),hasMixedContent:c.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(n.getProjectName()),n.projectKind){case 2:pb(this.externalProjects,n),this.projectToSizeMap.delete(n.getProjectName());break;case 1:this.configuredProjects.delete(n.canonicalConfigFilePath),this.projectToSizeMap.delete(n.canonicalConfigFilePath);break;case 0:pb(this.inferredProjects,n);break}}assignOrphanScriptInfoToInferredProject(n,a){$.assert(n.isOrphan());let c=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(n,a)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(n.isDynamic?a||this.currentDirectory:mo(qd(n.fileName)?n.fileName:za(n.fileName,a?this.getNormalizedAbsolutePath(a):this.currentDirectory)));if(c.addRoot(n),n.containingProjects[0]!==c&&(IT(n.containingProjects,c),n.containingProjects.unshift(c)),c.updateGraph(),!this.useSingleInferredProject&&!c.projectRootPath)for(let u of this.inferredProjects){if(u===c||u.isOrphan())continue;let _=u.getRootScriptInfos();$.assert(_.length===1||!!u.projectRootPath),_.length===1&&X(_[0].containingProjects,f=>f!==_[0].containingProjects[0]&&!f.isOrphan())&&u.removeFile(_[0],!0,!0)}return c}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((n,a)=>{let c=this.getScriptInfoForPath(a);c.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(c,n)})}closeOpenFile(n,a){var c;let u=n.isDynamic?!1:this.host.fileExists(n.fileName);n.close(u),this.stopWatchingConfigFilesForScriptInfo(n);let _=this.toCanonicalFileName(n.fileName);this.openFilesWithNonRootedDiskPath.get(_)===n&&this.openFilesWithNonRootedDiskPath.delete(_);let f=!1;for(let y of n.containingProjects){if(IE(y)){n.hasMixedContent&&n.registerFileUpdate();let g=y.openFileWatchTriggered.get(n.path);g!==void 0&&(y.openFileWatchTriggered.delete(n.path),y.pendingUpdateLevelthis.onConfigFileChanged(n,a,g),2e3,this.getWatchOptionsFromProjectWatchOptions((_=(u=f?.config)==null?void 0:u.parsedCommandLine)==null?void 0:_.watchOptions,mo(n)),cf.ConfigFile,c)),this.ensureConfigFileWatcherForProject(f,c)}ensureConfigFileWatcherForProject(n,a){let c=n.config.projects;c.set(a.canonicalConfigFilePath,c.get(a.canonicalConfigFilePath)||!1)}releaseParsedConfig(n,a){var c,u,_;let f=this.configFileExistenceInfoCache.get(n);(c=f.config)!=null&&c.projects.delete(a.canonicalConfigFilePath)&&((u=f.config)!=null&&u.projects.size||(f.config=void 0,x0e(n,this.sharedExtendedConfigFileWatchers),$.checkDefined(f.watcher),(_=f.openFilesImpactedByConfigFile)!=null&&_.size?f.inferredProjectRoots?NK(mo(n))||(f.watcher.close(),f.watcher=tje):(f.watcher.close(),f.watcher=void 0):(f.watcher.close(),this.configFileExistenceInfoCache.delete(n))))}stopWatchingConfigFilesForScriptInfo(n){if(this.serverMode!==0)return;let a=this.rootOfInferredProjects.delete(n),c=n.isScriptOpen();c&&!a||this.forEachConfigFileLocation(n,u=>{var _,f,y;let g=this.configFileExistenceInfoCache.get(u);if(g){if(c){if(!((_=g?.openFilesImpactedByConfigFile)!=null&&_.has(n.path)))return}else if(!((f=g.openFilesImpactedByConfigFile)!=null&&f.delete(n.path)))return;a&&(g.inferredProjectRoots--,g.watcher&&!g.config&&!g.inferredProjectRoots&&(g.watcher.close(),g.watcher=void 0)),!((y=g.openFilesImpactedByConfigFile)!=null&&y.size)&&!g.config&&($.assert(!g.watcher),this.configFileExistenceInfoCache.delete(u))}})}startWatchingConfigFilesForInferredProjectRoot(n){this.serverMode===0&&($.assert(n.isScriptOpen()),this.rootOfInferredProjects.add(n),this.forEachConfigFileLocation(n,(a,c)=>{let u=this.configFileExistenceInfoCache.get(a);u?u.inferredProjectRoots=(u.inferredProjectRoots??0)+1:(u={exists:this.host.fileExists(c),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(a,u)),(u.openFilesImpactedByConfigFile??(u.openFilesImpactedByConfigFile=new Set)).add(n.path),u.watcher||(u.watcher=NK(mo(a))?this.watchFactory.watchFile(c,(_,f)=>this.onConfigFileChanged(c,a,f),2e3,this.hostConfiguration.watchOptions,cf.ConfigFileForInferredRoot):tje)}))}forEachConfigFileLocation(n,a){if(this.serverMode!==0)return;$.assert(!NTt(n)||this.openFiles.has(n.path));let c=this.openFiles.get(n.path);if($.checkDefined(this.getScriptInfo(n.path)).isDynamic)return;let _=mo(n.fileName),f=()=>ug(c,_,this.currentDirectory,!this.host.useCaseSensitiveFileNames),y=!c||!f(),g=!0,k=!0;Kbe(n)&&(au(n.fileName,"tsconfig.json")?g=!1:g=k=!1);do{let T=uM(_,this.currentDirectory,this.toCanonicalFileName);if(g){let O=Xi(_,"tsconfig.json");if(a(Xi(T,"tsconfig.json"),O))return O}if(k){let O=Xi(_,"jsconfig.json");if(a(Xi(T,"jsconfig.json"),O))return O}if(CO(T))break;let C=mo(_);if(C===_)break;_=C,g=k=!0}while(y||f())}findDefaultConfiguredProject(n){var a;return(a=this.findDefaultConfiguredProjectWorker(n,1))==null?void 0:a.defaultProject}findDefaultConfiguredProjectWorker(n,a){return n.isScriptOpen()?this.tryFindDefaultConfiguredProjectForOpenScriptInfo(n,a):void 0}getConfigFileNameForFileFromCache(n,a){if(a){let c=PTt(n,this.pendingOpenFileProjectUpdates);if(c!==void 0)return c}return PTt(n,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(n,a){if(!this.openFiles.has(n.path))return;let c=a||!1;if(!Kbe(n))this.configFileForOpenFiles.set(n.path,c);else{let u=this.configFileForOpenFiles.get(n.path);(!u||Ni(u))&&this.configFileForOpenFiles.set(n.path,u=new Map().set(!1,u)),u.set(n.fileName,c)}}getConfigFileNameForFile(n,a){let c=this.getConfigFileNameForFileFromCache(n,a);if(c!==void 0)return c||void 0;if(a)return;let u=this.forEachConfigFileLocation(n,(_,f)=>this.configFileExists(f,_,n));return this.logger.info(`getConfigFileNameForFile:: File: ${n.fileName} ProjectRootPath: ${this.openFiles.get(n.path)}:: Result: ${u}`),this.setConfigFileNameForFileInCache(n,u),u}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(dje),this.configuredProjects.forEach(dje),this.inferredProjects.forEach(dje),this.logger.info("Open files: "),this.openFiles.forEach((n,a)=>{let c=this.getScriptInfoForPath(a);this.logger.info(` FileName: ${c.fileName} ProjectRootPath: ${n}`),this.logger.info(` Projects: ${c.containingProjects.map(u=>u.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(n,a){let c=this.toCanonicalFileName(n),u=this.getConfiguredProjectByCanonicalConfigFilePath(c);return a?u:u?.deferredClose?void 0:u}getConfiguredProjectByCanonicalConfigFilePath(n){return this.configuredProjects.get(n)}findExternalProjectByProjectName(n){return ITt(n,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(n,a,c,u){if(a&&a.disableSizeLimit||!this.host.getFileSize)return;let _=Fbe;this.projectToSizeMap.set(n,0),this.projectToSizeMap.forEach(y=>_-=y||0);let f=0;for(let y of c){let g=u.getFileName(y);if(!X4(g)&&(f+=this.host.getFileSize(g),f>Fbe||f>_)){let k=c.map(T=>u.getFileName(T)).filter(T=>!X4(T)).map(T=>({name:T,size:this.host.getFileSize(T)})).sort((T,C)=>C.size-T.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${f}). Largest files: ${k.map(T=>`${T.name}:${T.size}`).join(", ")}`),g}}this.projectToSizeMap.set(n,f)}createExternalProject(n,a,c,u,_){let f=nse(c),y=UQ(c,mo(Z_(n))),g=new Obe(n,this,f,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(n,f,a,Hbe),c.compileOnSave===void 0?!0:c.compileOnSave,void 0,y?.watchOptions);return g.setProjectErrors(y?.errors),g.excludedFiles=_,this.addFilesToNonInferredProject(g,a,Hbe,u),this.externalProjects.push(g),g}sendProjectTelemetry(n){if(this.seenProjects.has(n.projectName)){cje(n);return}if(this.seenProjects.set(n.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){cje(n);return}let a=IE(n)?n.projectOptions:void 0;cje(n);let c={projectId:this.host.createSHA256Hash(n.projectName),fileStats:MQ(n.getScriptInfos(),!0),compilerOptions:ZNe(n.getCompilationSettings()),typeAcquisition:_(n.getTypeAcquisition()),extends:a&&a.configHasExtendsProperty,files:a&&a.configHasFilesProperty,include:a&&a.configHasIncludeProperty,exclude:a&&a.configHasExcludeProperty,compileOnSave:n.compileOnSaveEnabled,configFileName:u(),projectType:n instanceof Obe?"external":"configured",languageServiceEnabled:n.languageServiceEnabled,version:L};this.eventHandler({eventName:Ube,data:c});function u(){return IE(n)&&Nbe(n.getConfigFilePath())||"other"}function _({enable:f,include:y,exclude:g}){return{enable:f,include:y!==void 0&&y.length!==0,exclude:g!==void 0&&g.length!==0}}}addFilesToNonInferredProject(n,a,c,u){this.updateNonInferredProjectFiles(n,a,c),n.setTypeAcquisition(u),n.markAsDirty()}createConfiguredProject(n,a){var c;(c=hi)==null||c.instant(hi.Phase.Session,"createConfiguredProject",{configFilePath:n});let u=this.toCanonicalFileName(n),_=this.configFileExistenceInfoCache.get(u);_?_.exists=!0:this.configFileExistenceInfoCache.set(u,_={exists:!0}),_.config||(_.config={cachedDirectoryStructureHost:Gie(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});let f=new QMe(n,u,this,_.config.cachedDirectoryStructureHost,a);return $.assert(!this.configuredProjects.has(u)),this.configuredProjects.set(u,f),this.createConfigFileWatcherForParsedConfig(n,u,f),f}loadConfiguredProject(n,a){var c,u;(c=hi)==null||c.push(hi.Phase.Session,"loadConfiguredProject",{configFilePath:n.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(n,a);let _=nu(n.getConfigFilePath()),f=this.ensureParsedConfigUptoDate(_,n.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(n.canonicalConfigFilePath),n),y=f.config.parsedCommandLine;$.assert(!!y.fileNames);let g=y.options;n.projectOptions||(n.projectOptions={configHasExtendsProperty:y.raw.extends!==void 0,configHasFilesProperty:y.raw.files!==void 0,configHasIncludeProperty:y.raw.include!==void 0,configHasExcludeProperty:y.raw.exclude!==void 0}),n.parsedCommandLine=y,n.setProjectErrors(y.options.configFile.parseDiagnostics),n.updateReferences(y.projectReferences);let k=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(n.canonicalConfigFilePath,g,y.fileNames,Gbe);k?(n.disableLanguageService(k),this.configFileExistenceInfoCache.forEach((C,O)=>this.stopWatchingWildCards(O,n))):(n.setCompilerOptions(g),n.setWatchOptions(y.watchOptions),n.enableLanguageService(),this.watchWildcards(_,f,n)),n.enablePluginsWithOptions(g);let T=y.fileNames.concat(n.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(n,T,Gbe,g,y.typeAcquisition,y.compileOnSave,y.watchOptions),(u=hi)==null||u.pop()}ensureParsedConfigUptoDate(n,a,c,u){var _,f,y;if(c.config&&(c.config.updateLevel===1&&this.reloadFileNamesOfParsedConfig(n,c.config),!c.config.updateLevel))return this.ensureConfigFileWatcherForProject(c,u),c;if(!c.exists&&c.config)return c.config.updateLevel=void 0,this.ensureConfigFileWatcherForProject(c,u),c;let g=((_=c.config)==null?void 0:_.cachedDirectoryStructureHost)||Gie(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),k=Sz(n,U=>this.host.readFile(U)),T=YH(n,Ni(k)?k:""),C=T.parseDiagnostics;Ni(k)||C.push(k);let O=mo(n),F=oK(T,g,O,void 0,n,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);F.errors.length&&C.push(...F.errors),this.logger.info(`Config: ${n} : ${JSON.stringify({rootNames:F.fileNames,options:F.options,watchOptions:F.watchOptions,projectReferences:F.projectReferences},void 0," ")}`);let M=(f=c.config)==null?void 0:f.parsedCommandLine;return c.config?(c.config.parsedCommandLine=F,c.config.watchedDirectoriesStale=!0,c.config.updateLevel=void 0):c.config={parsedCommandLine:F,cachedDirectoryStructureHost:g,projects:new Map},!M&&!Sne(this.getWatchOptionsFromProjectWatchOptions(void 0,O),this.getWatchOptionsFromProjectWatchOptions(F.watchOptions,O))&&((y=c.watcher)==null||y.close(),c.watcher=void 0),this.createConfigFileWatcherForParsedConfig(n,a,u),Hie(a,F.options,this.sharedExtendedConfigFileWatchers,(U,J)=>this.watchFactory.watchFile(U,()=>{var G;Kie(this.extendedConfigCache,J,Q=>this.toPath(Q));let Z=!1;(G=this.sharedExtendedConfigFileWatchers.get(J))==null||G.projects.forEach(Q=>{Z=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(Q,`Change in extended config file ${U} detected`)||Z}),Z&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,cf.ExtendedConfigFile,n),U=>this.toPath(U)),c}watchWildcards(n,{exists:a,config:c},u){if(c.projects.set(u.canonicalConfigFilePath,!0),a){if(c.watchedDirectories&&!c.watchedDirectoriesStale)return;c.watchedDirectoriesStale=!1,EK(c.watchedDirectories||(c.watchedDirectories=new Map),c.parsedCommandLine.wildcardDirectories,(_,f)=>this.watchWildcardDirectory(_,f,n,c))}else{if(c.watchedDirectoriesStale=!1,!c.watchedDirectories)return;dg(c.watchedDirectories,C0),c.watchedDirectories=void 0}}stopWatchingWildCards(n,a){let c=this.configFileExistenceInfoCache.get(n);!c.config||!c.config.projects.get(a.canonicalConfigFilePath)||(c.config.projects.set(a.canonicalConfigFilePath,!1),!Ad(c.config.projects,vl)&&(c.config.watchedDirectories&&(dg(c.config.watchedDirectories,C0),c.config.watchedDirectories=void 0),c.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(n,a,c){var u;let _=n.getRootFilesMap(),f=new Map;for(let y of a){let g=c.getFileName(y),k=nu(g),T=vq(k),C;if(!T&&!n.fileExists(g)){C=uM(k,this.currentDirectory,this.toCanonicalFileName);let O=_.get(C);O?(((u=O.info)==null?void 0:u.path)===C&&(n.removeFile(O.info,!1,!0),O.info=void 0),O.fileName=k):_.set(C,{fileName:k})}else{let O=c.getScriptKind(y,this.hostConfiguration.extraFileExtensions),F=c.hasMixedContent(y,this.hostConfiguration.extraFileExtensions),M=$.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(k,n.currentDirectory,O,F,n.directoryStructureHost,!1));C=M.path;let U=_.get(C);!U||U.info!==M?(n.addRoot(M,k),M.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(M)):U.fileName=k}f.set(C,!0)}_.size>f.size&&_.forEach((y,g)=>{f.has(g)||(y.info?n.removeFile(y.info,n.fileExists(y.info.fileName),!0):_.delete(g))})}updateRootAndOptionsOfNonInferredProject(n,a,c,u,_,f,y){n.setCompilerOptions(u),n.setWatchOptions(y),f!==void 0&&(n.compileOnSaveEnabled=f),this.addFilesToNonInferredProject(n,a,c,_)}reloadFileNamesOfConfiguredProject(n){let a=this.reloadFileNamesOfParsedConfig(n.getConfigFilePath(),this.configFileExistenceInfoCache.get(n.canonicalConfigFilePath).config);return n.updateErrorOnNoInputFiles(a),this.updateNonInferredProjectFiles(n,a.fileNames.concat(n.getExternalFiles(1)),Gbe),n.markAsDirty(),n.updateGraph()}reloadFileNamesOfParsedConfig(n,a){if(a.updateLevel===void 0)return a.parsedCommandLine;$.assert(a.updateLevel===1);let c=a.parsedCommandLine.options.configFile.configFileSpecs,u=bz(c,mo(n),a.parsedCommandLine.options,a.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return a.parsedCommandLine={...a.parsedCommandLine,fileNames:u},a.updateLevel=void 0,a.parsedCommandLine}setFileNamesOfAutoImportProviderOrAuxillaryProject(n,a){this.updateNonInferredProjectFiles(n,a,Gbe)}reloadConfiguredProjectOptimized(n,a,c){c.has(n)||(c.set(n,6),n.initialLoadPending||this.setProjectForReload(n,2,a))}reloadConfiguredProjectClearingSemanticCache(n,a,c){return c.get(n)===7?!1:(c.set(n,7),this.clearSemanticCache(n),this.reloadConfiguredProject(n,Zbe(a)),!0)}setProjectForReload(n,a,c){a===2&&this.clearSemanticCache(n),n.pendingUpdateReason=c&&Zbe(c),n.pendingUpdateLevel=a}reloadConfiguredProject(n,a){n.initialLoadPending=!1,this.setProjectForReload(n,0),this.loadConfiguredProject(n,a),jTt(n,n.triggerFileForConfigFileDiag??n.getConfigFilePath(),!0)}clearSemanticCache(n){n.originalConfiguredProjects=void 0,n.resolutionCache.clear(),n.getLanguageService(!1).cleanupSemanticCache(),n.cleanupProgram(),n.markAsDirty()}sendConfigFileDiagEvent(n,a,c){if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;let u=n.getLanguageService().getCompilerOptionsDiagnostics();return u.push(...n.getAllProjectErrors()),!c&&u.length===(n.configDiagDiagnosticsReported??0)?!1:(n.configDiagDiagnosticsReported=u.length,this.eventHandler({eventName:Bbe,data:{configFileName:n.getConfigFilePath(),diagnostics:u,triggerFile:a??n.getConfigFilePath()}}),!0)}getOrCreateInferredProjectForProjectRootPathIfEnabled(n,a){if(!this.useInferredProjectPerProjectRoot||n.isDynamic&&a===void 0)return;if(a){let u=this.toCanonicalFileName(a);for(let _ of this.inferredProjects)if(_.projectRootPath===u)return _;return this.createInferredProject(a,!1,a)}let c;for(let u of this.inferredProjects)u.projectRootPath&&ug(u.projectRootPath,n.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(c&&c.projectRootPath.length>u.projectRootPath.length||(c=u));return c}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject(this.currentDirectory,!0,void 0)}getOrCreateSingleInferredWithoutProjectRoot(n){$.assert(!this.useSingleInferredProject);let a=this.toCanonicalFileName(this.getNormalizedAbsolutePath(n));for(let c of this.inferredProjects)if(!c.projectRootPath&&c.isOrphan()&&c.canonicalCurrentDirectory===a)return c;return this.createInferredProject(n,!1,void 0)}createInferredProject(n,a,c){let u=c&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(c)||this.compilerOptionsForInferredProjects,_,f;c&&(_=this.watchOptionsForInferredProjectsPerProjectRoot.get(c),f=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(c)),_===void 0&&(_=this.watchOptionsForInferredProjects),f===void 0&&(f=this.typeAcquisitionForInferredProjects),_=_||void 0;let y=new WMe(this,u,_?.watchOptions,c,n,f);return y.setProjectErrors(_?.errors),a?this.inferredProjects.unshift(y):this.inferredProjects.push(y),y}getOrCreateScriptInfoNotOpenedByClient(n,a,c,u){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(nu(n),a,void 0,void 0,c,u)}getScriptInfo(n){return this.getScriptInfoForNormalizedPath(nu(n))}getScriptInfoOrConfig(n){let a=nu(n),c=this.getScriptInfoForNormalizedPath(a);if(c)return c;let u=this.configuredProjects.get(this.toPath(n));return u&&u.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(n){let a=so(Na(this.filenameToScriptInfo.entries(),c=>c[1].deferredDelete?void 0:c),([c,u])=>({path:c,fileName:u.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(n)}. +All files are: ${JSON.stringify(a)}`,"Err")}getSymlinkedProjects(n){let a;if(this.realpathToScriptInfos){let u=n.getRealpathIfDifferent();u&&X(this.realpathToScriptInfos.get(u),c),X(this.realpathToScriptInfos.get(n.path),c)}return a;function c(u){if(u!==n)for(let _ of u.containingProjects)_.languageServiceEnabled&&!_.isOrphan()&&!_.getCompilerOptions().preserveSymlinks&&!n.isAttached(_)&&(a?Ad(a,(f,y)=>y===u.path?!1:un(f,_))||a.add(u.path,_):(a=d_(),a.add(u.path,_)))}}watchClosedScriptInfo(n){if($.assert(!n.fileWatcher),!n.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!Ca(n.path,this.globalCacheLocationDirectoryPath))){let a=n.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||a===-1?n.fileWatcher=this.watchFactory.watchFile(n.fileName,(c,u)=>this.onSourceFileChanged(n,u),500,this.hostConfiguration.watchOptions,cf.ClosedScriptInfo):(n.mTime=this.getModifiedTime(n),n.fileWatcher=this.watchClosedScriptInfoInNodeModules(n.fileName.substring(0,a)))}}createNodeModulesWatcher(n,a){let c=this.watchFactory.watchDirectory(n,_=>{var f;let y=coe(this.toPath(_));if(!y)return;let g=t_(y);if((f=u.affectedModuleSpecifierCacheProjects)!=null&&f.size&&(g==="package.json"||g==="node_modules")&&u.affectedModuleSpecifierCacheProjects.forEach(k=>{var T;(T=k.getModuleSpecifierCache())==null||T.clear()}),u.refreshScriptInfoRefCount)if(a===y)this.refreshScriptInfosInDirectory(a);else{let k=this.filenameToScriptInfo.get(y);k?oje(k)&&this.refreshScriptInfo(k):eA(y)||this.refreshScriptInfosInDirectory(y)}},1,this.hostConfiguration.watchOptions,cf.NodeModules),u={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var _;c&&!u.refreshScriptInfoRefCount&&!((_=u.affectedModuleSpecifierCacheProjects)!=null&&_.size)&&(c.close(),c=void 0,this.nodeModulesWatchers.delete(a))}};return this.nodeModulesWatchers.set(a,u),u}watchPackageJsonsInNodeModules(n,a){var c;let u=this.toPath(n),_=this.nodeModulesWatchers.get(u)||this.createNodeModulesWatcher(n,u);return $.assert(!((c=_.affectedModuleSpecifierCacheProjects)!=null&&c.has(a))),(_.affectedModuleSpecifierCacheProjects||(_.affectedModuleSpecifierCacheProjects=new Set)).add(a),{close:()=>{var f;(f=_.affectedModuleSpecifierCacheProjects)==null||f.delete(a),_.close()}}}watchClosedScriptInfoInNodeModules(n){let a=n+"/node_modules",c=this.toPath(a),u=this.nodeModulesWatchers.get(c)||this.createNodeModulesWatcher(a,c);return u.refreshScriptInfoRefCount++,{close:()=>{u.refreshScriptInfoRefCount--,u.close()}}}getModifiedTime(n){return(this.host.getModifiedTime(n.fileName)||Wm).getTime()}refreshScriptInfo(n){let a=this.getModifiedTime(n);if(a!==n.mTime){let c=S4(n.mTime,a);n.mTime=a,this.onSourceFileChanged(n,c)}}refreshScriptInfosInDirectory(n){n=n+Gl,this.filenameToScriptInfo.forEach(a=>{oje(a)&&Ca(a.path,n)&&this.refreshScriptInfo(a)})}stopWatchingScriptInfo(n){n.fileWatcher&&(n.fileWatcher.close(),n.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(n,a,c,u,_,f){if(qd(n)||vq(n))return this.getOrCreateScriptInfoWorker(n,a,!1,void 0,c,!!u,_,f);let y=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(n));if(y)return y}getOrCreateScriptInfoForNormalizedPath(n,a,c,u,_,f){return this.getOrCreateScriptInfoWorker(n,this.currentDirectory,a,c,u,!!_,f,!1)}getOrCreateScriptInfoWorker(n,a,c,u,_,f,y,g){$.assert(u===void 0||c,"ScriptInfo needs to be opened by client to be able to set its user defined content");let k=uM(n,a,this.toCanonicalFileName),T=this.filenameToScriptInfo.get(k);if(T){if(T.deferredDelete){if($.assert(!T.isDynamic),!c&&!(y||this.host).fileExists(n))return g?T:void 0;T.deferredDelete=void 0}}else{let C=vq(n);if($.assert(qd(n)||C||c,"",()=>`${JSON.stringify({fileName:n,currentDirectory:a,hostCurrentDirectory:this.currentDirectory,openKeys:so(this.openFilesWithNonRootedDiskPath.keys())})} +Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),$.assert(!qd(n)||this.currentDirectory===a||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(n)),"",()=>`${JSON.stringify({fileName:n,currentDirectory:a,hostCurrentDirectory:this.currentDirectory,openKeys:so(this.openFilesWithNonRootedDiskPath.keys())})} +Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),$.assert(!C||this.currentDirectory===a||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:n,currentDirectory:a,hostCurrentDirectory:this.currentDirectory,openKeys:so(this.openFilesWithNonRootedDiskPath.keys())})} +Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!c&&!C&&!(y||this.host).fileExists(n))return;T=new BMe(this.host,n,_,f,k,this.filenameToScriptInfoVersion.get(k)),this.filenameToScriptInfo.set(T.path,T),this.filenameToScriptInfoVersion.delete(T.path),c?!qd(n)&&(!C||this.currentDirectory!==a)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(n),T):this.watchClosedScriptInfo(T)}return c&&(this.stopWatchingScriptInfo(T),T.open(u),f&&T.registerFileUpdate()),T}getScriptInfoForNormalizedPath(n){return!qd(n)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(n))||this.getScriptInfoForPath(uM(n,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(n){let a=this.filenameToScriptInfo.get(n);return!a||!a.deferredDelete?a:void 0}getDocumentPositionMapper(n,a,c){let u=this.getOrCreateScriptInfoNotOpenedByClient(a,n.currentDirectory,this.host,!1);if(!u){c&&n.addGeneratedFileWatch(a,c);return}if(u.getSnapshot(),Ni(u.sourceMapFilePath)){let k=this.getScriptInfoForPath(u.sourceMapFilePath);if(k&&(k.getSnapshot(),k.documentPositionMapper!==void 0))return k.sourceInfos=this.addSourceInfoToSourceMap(c,n,k.sourceInfos),k.documentPositionMapper?k.documentPositionMapper:void 0;u.sourceMapFilePath=void 0}else if(u.sourceMapFilePath){u.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(c,n,u.sourceMapFilePath.sourceInfos);return}else if(u.sourceMapFilePath!==void 0)return;let _,f=(k,T)=>{let C=this.getOrCreateScriptInfoNotOpenedByClient(k,n.currentDirectory,this.host,!0);if(_=C||T,!C||C.deferredDelete)return;let O=C.getSnapshot();return C.documentPositionMapper!==void 0?C.documentPositionMapper:BF(O)},y=n.projectName,g=qve({getCanonicalFileName:this.toCanonicalFileName,log:k=>this.logger.info(k),getSourceFileLike:k=>this.getSourceFileLike(k,y,u)},u.fileName,u.textStorage.getLineInfo(),f);return f=void 0,_?Ni(_)?u.sourceMapFilePath={watcher:this.addMissingSourceMapFile(n.currentDirectory===this.currentDirectory?_:za(_,n.currentDirectory),u.path),sourceInfos:this.addSourceInfoToSourceMap(c,n)}:(u.sourceMapFilePath=_.path,_.declarationInfoPath=u.path,_.deferredDelete||(_.documentPositionMapper=g||!1),_.sourceInfos=this.addSourceInfoToSourceMap(c,n,_.sourceInfos)):u.sourceMapFilePath=!1,g}addSourceInfoToSourceMap(n,a,c){if(n){let u=this.getOrCreateScriptInfoNotOpenedByClient(n,a.currentDirectory,a.directoryStructureHost,!1);(c||(c=new Set)).add(u.path)}return c}addMissingSourceMapFile(n,a){return this.watchFactory.watchFile(n,()=>{let u=this.getScriptInfoForPath(a);u&&u.sourceMapFilePath&&!Ni(u.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(u.containingProjects,!0),this.delayUpdateSourceInfoProjects(u.sourceMapFilePath.sourceInfos),u.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,cf.MissingSourceMapFile)}getSourceFileLike(n,a,c){let u=a.projectName?a:this.findProject(a);if(u){let f=u.toPath(n),y=u.getSourceFile(f);if(y&&y.resolvedPath===f)return y}let _=this.getOrCreateScriptInfoNotOpenedByClient(n,(u||this).currentDirectory,u?u.directoryStructureHost:this.host,!1);if(_){if(c&&Ni(c.sourceMapFilePath)&&_!==c){let f=this.getScriptInfoForPath(c.sourceMapFilePath);f&&(f.sourceInfos??(f.sourceInfos=new Set)).add(_.path)}return _.cacheSourceFile?_.cacheSourceFile.sourceFile:(_.sourceFileLike||(_.sourceFileLike={get text(){return $.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:f=>{let y=_.positionToLineOffset(f);return{line:y.line-1,character:y.offset-1}},getPositionOfLineAndCharacter:(f,y,g)=>_.lineOffsetToPosition(f+1,y+1,g)}),_.sourceFileLike)}}setPerformanceEventHandler(n){this.performanceEventHandler=n}setHostConfiguration(n){var a;if(n.file){let c=this.getScriptInfoForNormalizedPath(nu(n.file));c&&(c.setOptions(_M(n.formatOptions),n.preferences),this.logger.info(`Host configuration update for file ${n.file}`))}else{if(n.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=n.hostInfo,this.logger.info(`Host information ${n.hostInfo}`)),n.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,..._M(n.formatOptions)},this.logger.info("Format host information updated")),n.preferences){let{lazyConfiguredProjectsFromExternalProject:c,includePackageJsonAutoImports:u,includeCompletionsForModuleExports:_}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...n.preferences},c&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(f=>f.forEach(y=>{!y.deferredClose&&!y.isClosed()&&y.pendingUpdateLevel===2&&!this.hasPendingProjectUpdate(y)&&y.updateGraph()})),(u!==n.preferences.includePackageJsonAutoImports||!!_!=!!n.preferences.includeCompletionsForModuleExports)&&this.forEachProject(f=>{f.onAutoImportProviderSettingsChanged()})}if(n.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=n.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),n.watchOptions){let c=(a=UQ(n.watchOptions))==null?void 0:a.watchOptions,u=yie(c,this.currentDirectory);this.hostConfiguration.watchOptions=u,this.hostConfiguration.beforeSubstitution=u===c?void 0:c,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`)}}}getWatchOptions(n){return this.getWatchOptionsFromProjectWatchOptions(n.getWatchOptions(),n.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(n,a){let c=this.hostConfiguration.beforeSubstitution?yie(this.hostConfiguration.beforeSubstitution,a):this.hostConfiguration.watchOptions;return n&&c?{...c,...n}:n||c}closeLog(){this.logger.close()}sendSourceFileChange(n){this.filenameToScriptInfo.forEach(a=>{if(this.openFiles.has(a.path)||!a.fileWatcher)return;let c=Ef(()=>this.host.fileExists(a.fileName)?a.deferredDelete?0:1:2);if(n){if(oje(a)||!a.path.startsWith(n)||c()===2&&a.deferredDelete)return;this.logger.info(`Invoking sourceFileChange on ${a.fileName}:: ${c()}`)}this.onSourceFileChanged(a,c())})}reloadProjects(){this.logger.info("reload projects."),this.sendSourceFileChange(void 0),this.pendingProjectUpdates.forEach((c,u)=>{this.throttledOperations.cancel(u),this.pendingProjectUpdates.delete(u)}),this.throttledOperations.cancel(ATt),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(c=>{c.config&&(c.config.updateLevel=2,c.config.cachedDirectoryStructureHost.clearCache())}),this.configFileForOpenFiles.clear(),this.externalProjects.forEach(c=>{this.clearSemanticCache(c),c.updateGraph()});let n=new Map,a=new Set;this.externalProjectToConfiguredProjectMap.forEach((c,u)=>{let _=`Reloading configured project in external project: ${u}`;c.forEach(f=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.reloadConfiguredProjectOptimized(f,_,n):this.reloadConfiguredProjectClearingSemanticCache(f,_,n)})}),this.openFiles.forEach((c,u)=>{let _=this.getScriptInfoForPath(u);wt(_.containingProjects,jQ)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(_,7,n,a)}),a.forEach(c=>n.set(c,7)),this.inferredProjects.forEach(c=>this.clearSemanticCache(c)),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(n,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(n){$.assert(n.containingProjects.length>0);let a=n.containingProjects[0];!a.isOrphan()&&pM(a)&&a.isRoot(n)&&X(n.containingProjects,c=>c!==a&&!c.isOrphan())&&a.removeFile(n,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();let n=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,n?.forEach((a,c)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(c),5)),this.openFiles.forEach((a,c)=>{let u=this.getScriptInfoForPath(c);u.isOrphan()?this.assignOrphanScriptInfoToInferredProject(u,a):this.removeRootOfInferredProjectIfNowPartOfOtherProject(u)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(_1),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(n,a,c,u){return this.openClientFileWithNormalizedPath(nu(n),a,c,!1,u?nu(u):void 0)}getOriginalLocationEnsuringConfiguredProject(n,a){let c=n.isSourceOfProjectReferenceRedirect(a.fileName),u=c?a:n.getSourceMapper().tryGetSourcePosition(a);if(!u)return;let{fileName:_}=u,f=this.getScriptInfo(_);if(!f&&!this.host.fileExists(_))return;let y={fileName:nu(_),path:this.toPath(_)},g=this.getConfigFileNameForFile(y,!1);if(!g)return;let k=this.findConfiguredProjectByProjectName(g);if(!k){if(n.getCompilerOptions().disableReferencedProjectLoad)return c?a:f?.containingProjects.length?u:a;k=this.createConfiguredProject(g,`Creating project for original file: ${y.fileName}${a!==u?" for location: "+a.fileName:""}`)}let T=this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(y,5,nje(k,4),F=>`Creating project referenced in solution ${F.projectName} to find possible configured project for original file: ${y.fileName}${a!==u?" for location: "+a.fileName:""}`);if(!T.defaultProject)return;if(T.defaultProject===n)return u;O(T.defaultProject);let C=this.getScriptInfo(_);if(!C||!C.containingProjects.length)return;return C.containingProjects.forEach(F=>{IE(F)&&O(F)}),u;function O(F){(n.originalConfiguredProjects??(n.originalConfiguredProjects=new Set)).add(F.canonicalConfigFilePath)}}fileExists(n){return!!this.getScriptInfoForNormalizedPath(n)||this.host.fileExists(n)}findExternalProjectContainingOpenScriptInfo(n){return wt(this.externalProjects,a=>(_1(a),a.containsScriptInfo(n)))}getOrCreateOpenScriptInfo(n,a,c,u,_){let f=this.getOrCreateScriptInfoWorker(n,_?this.getNormalizedAbsolutePath(_):this.currentDirectory,!0,a,c,!!u,void 0,!0);return this.openFiles.set(f.path,_),f}assignProjectToOpenedScriptInfo(n){let a,c,u=this.findExternalProjectContainingOpenScriptInfo(n),_,f;if(!u&&this.serverMode===0){let y=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(n,5);y&&(_=y.seenProjects,f=y.sentConfigDiag,y.defaultProject&&(a=y.defaultProject.getConfigFilePath(),c=y.defaultProject.getAllProjectErrors()))}return n.containingProjects.forEach(_1),n.isOrphan()&&(_?.forEach((y,g)=>{y!==4&&!f.has(g)&&this.sendConfigFileDiagEvent(g,n.fileName,!0)}),$.assert(this.openFiles.has(n.path)),this.assignOrphanScriptInfoToInferredProject(n,this.openFiles.get(n.path))),$.assert(!n.isOrphan()),{configFileName:a,configFileErrors:c,retainProjects:_}}findCreateOrReloadConfiguredProject(n,a,c,u,_,f,y,g,k){let T=k??this.findConfiguredProjectByProjectName(n,u),C=!1,O;switch(a){case 0:case 1:case 3:if(!T)return;break;case 2:if(!T)return;O=PSr(T);break;case 4:case 5:T??(T=this.createConfiguredProject(n,c)),y||({sentConfigFileDiag:C,configFileExistenceInfo:O}=nje(T,a,_));break;case 6:if(T??(T=this.createConfiguredProject(n,Zbe(c))),T.projectService.reloadConfiguredProjectOptimized(T,c,f),O=aje(T),O)break;case 7:T??(T=this.createConfiguredProject(n,Zbe(c))),C=!g&&this.reloadConfiguredProjectClearingSemanticCache(T,c,f),g&&!g.has(T)&&!f.has(T)&&(this.setProjectForReload(T,2,c),g.add(T));break;default:$.assertNever(a)}return{project:T,sentConfigFileDiag:C,configFileExistenceInfo:O,reason:c}}tryFindDefaultConfiguredProjectForOpenScriptInfo(n,a,c,u){let _=this.getConfigFileNameForFile(n,a<=3);if(!_)return;let f=OTt(a),y=this.findCreateOrReloadConfiguredProject(_,f,NSr(n),c,n.fileName,u);return y&&this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(n,a,y,g=>`Creating project referenced in solution ${g.projectName} to find possible configured project for ${n.fileName} to open`,c,u)}isMatchedByConfig(n,a,c){if(a.fileNames.some(g=>this.toPath(g)===c.path))return!0;if(Khe(c.fileName,a.options,this.hostConfiguration.extraFileExtensions))return!1;let{validatedFilesSpec:u,validatedIncludeSpecs:_,validatedExcludeSpecs:f}=a.options.configFile.configFileSpecs,y=nu(za(mo(n),this.currentDirectory));return u?.some(g=>this.toPath(za(g,y))===c.path)?!0:!_?.length||xie(c.fileName,f,this.host.useCaseSensitiveFileNames,this.currentDirectory,y)?!1:_?.some(g=>{let k=Vhe(g,y,"files");return!!k&&mE(`(${k})$`,this.host.useCaseSensitiveFileNames).test(c.fileName)})}tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(n,a,c,u,_,f){let y=NTt(n),g=OTt(a),k=new Map,T,C=new Set,O,F,M,U;return J(c),{defaultProject:O??F,tsconfigProject:M??U,sentConfigDiag:C,seenProjects:k,seenConfigs:T};function J(_e){return Q(_e,_e.project)??re(_e.project)??ae(_e.project)}function G(_e,me,le,Oe,be,ue){if(me){if(k.has(me))return;k.set(me,g)}else{if(T?.has(ue))return;(T??(T=new Set)).add(ue)}if(!be.projectService.isMatchedByConfig(le,_e.config.parsedCommandLine,n)){be.languageServiceEnabled&&be.projectService.watchWildcards(le,_e,be);return}let De=me?nje(me,a,n.fileName,Oe,f):be.projectService.findCreateOrReloadConfiguredProject(le,a,Oe,_,n.fileName,f);if(!De){$.assert(a===3);return}return k.set(De.project,g),De.sentConfigFileDiag&&C.add(De.project),Z(De.project,be)}function Z(_e,me){if(k.get(_e)===a)return;k.set(_e,a);let le=y?n:_e.projectService.getScriptInfo(n.fileName),Oe=le&&_e.containsScriptInfo(le);if(Oe&&!_e.isSourceOfProjectReferenceRedirect(le.path))return M=me,O=_e;!F&&y&&Oe&&(U=me,F=_e)}function Q(_e,me){return _e.sentConfigFileDiag&&C.add(_e.project),_e.configFileExistenceInfo?G(_e.configFileExistenceInfo,_e.project,nu(_e.project.getConfigFilePath()),_e.reason,_e.project,_e.project.canonicalConfigFilePath):Z(_e.project,me)}function re(_e){return _e.parsedCommandLine&&RTt(_e,_e.parsedCommandLine,G,g,u(_e),_,f)}function ae(_e){return y?FTt(n,_e,J,g,`Creating possible configured project for ${n.fileName} to open`,_,f,!1):void 0}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(n,a,c,u){let _=a===1,f=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(n,a,_,c);if(!f)return;let{defaultProject:y,tsconfigProject:g,seenProjects:k}=f;return y&&FTt(n,g,T=>{k.set(T.project,a)},a,`Creating project possibly referencing default composite project ${y.getProjectName()} of open file ${n.fileName}`,_,c,!0,u),f}loadAncestorProjectTree(n){n??(n=new Set(Na(this.configuredProjects.entries(),([u,_])=>_.initialLoadPending?void 0:u)));let a=new Set,c=so(this.configuredProjects.values());for(let u of c)LTt(u,_=>n.has(_))&&_1(u),this.ensureProjectChildren(u,n,a)}ensureProjectChildren(n,a,c){var u;if(!Us(c,n.canonicalConfigFilePath)||n.getCompilerOptions().disableReferencedProjectLoad)return;let _=(u=n.getCurrentProgram())==null?void 0:u.getResolvedProjectReferences();if(_)for(let f of _){if(!f)continue;let y=dge(f.references,T=>a.has(T.sourceFile.path)?T:void 0);if(!y)continue;let g=nu(f.sourceFile.fileName),k=this.findConfiguredProjectByProjectName(g)??this.createConfiguredProject(g,`Creating project referenced by : ${n.projectName} as it references project ${y.sourceFile.fileName}`);_1(k),this.ensureProjectChildren(k,a,c)}}cleanupConfiguredProjects(n,a,c){this.getOrphanConfiguredProjects(n,c,a).forEach(u=>this.removeProject(u))}cleanupProjectsAndScriptInfos(n,a,c){this.cleanupConfiguredProjects(n,c,a);for(let u of this.inferredProjects.slice())u.isOrphan()&&this.removeProject(u);this.removeOrphanScriptInfos()}tryInvokeWildCardDirectories(n){this.configFileExistenceInfoCache.forEach((a,c)=>{var u,_;!((u=a.config)!=null&&u.parsedCommandLine)||un(a.config.parsedCommandLine.fileNames,n.fileName,this.host.useCaseSensitiveFileNames?qm:F1)||(_=a.config.watchedDirectories)==null||_.forEach((f,y)=>{ug(y,n.fileName,!this.host.useCaseSensitiveFileNames)&&(this.logger.info(`Invoking ${c}:: wildcard for open scriptInfo:: ${n.fileName}`),this.onWildCardDirectoryWatcherInvoke(y,c,a.config,f.watcher,n.fileName))})})}openClientFileWithNormalizedPath(n,a,c,u,_){let f=this.getScriptInfoForPath(uM(n,_?this.getNormalizedAbsolutePath(_):this.currentDirectory,this.toCanonicalFileName)),y=this.getOrCreateOpenScriptInfo(n,a,c,u,_);!f&&y&&!y.isDynamic&&this.tryInvokeWildCardDirectories(y);let{retainProjects:g,...k}=this.assignProjectToOpenedScriptInfo(y);return this.cleanupProjectsAndScriptInfos(g,new Set([y.path]),void 0),this.telemetryOnOpenFile(y),this.printProjects(),k}getOrphanConfiguredProjects(n,a,c){let u=new Set(this.configuredProjects.values()),_=k=>{k.originalConfiguredProjects&&(IE(k)||!k.isOrphan())&&k.originalConfiguredProjects.forEach((T,C)=>{let O=this.getConfiguredProjectByCanonicalConfigFilePath(C);return O&&g(O)})};if(n?.forEach((k,T)=>g(T)),!u.size||(this.inferredProjects.forEach(_),this.externalProjects.forEach(_),this.externalProjectToConfiguredProjectMap.forEach((k,T)=>{c?.has(T)||k.forEach(g)}),!u.size)||(Ad(this.openFiles,(k,T)=>{if(a?.has(T))return;let C=this.getScriptInfoForPath(T);if(wt(C.containingProjects,jQ))return;let O=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(C,1);if(O?.defaultProject&&(O?.seenProjects.forEach((F,M)=>g(M)),!u.size))return u}),!u.size))return u;return Ad(this.configuredProjects,k=>{if(u.has(k)&&(y(k)||MTt(k,f))&&(g(k),!u.size))return u}),u;function f(k){return!u.has(k)||y(k)}function y(k){var T,C;return(k.deferredClose||k.projectService.hasPendingProjectUpdate(k))&&!!((C=(T=k.projectService.configFileExistenceInfoCache.get(k.canonicalConfigFilePath))==null?void 0:T.openFilesImpactedByConfigFile)!=null&&C.size)}function g(k){u.delete(k)&&(_(k),MTt(k,g))}}removeOrphanScriptInfos(){let n=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(a=>{if(!a.deferredDelete){if(!a.isScriptOpen()&&a.isOrphan()&&!UMe(a)&&!$Me(a)){if(!a.sourceMapFilePath)return;let c;if(Ni(a.sourceMapFilePath)){let u=this.filenameToScriptInfo.get(a.sourceMapFilePath);c=u?.sourceInfos}else c=a.sourceMapFilePath.sourceInfos;if(!c||!Ix(c,u=>{let _=this.getScriptInfoForPath(u);return!!_&&(_.isScriptOpen()||!_.isOrphan())}))return}if(n.delete(a.path),a.sourceMapFilePath){let c;if(Ni(a.sourceMapFilePath)){let u=this.filenameToScriptInfo.get(a.sourceMapFilePath);u?.deferredDelete?a.sourceMapFilePath={watcher:this.addMissingSourceMapFile(u.fileName,a.path),sourceInfos:u.sourceInfos}:n.delete(a.sourceMapFilePath),c=u?.sourceInfos}else c=a.sourceMapFilePath.sourceInfos;c&&c.forEach((u,_)=>n.delete(_))}}}),n.forEach(a=>this.deleteScriptInfo(a))}telemetryOnOpenFile(n){if(this.serverMode!==0||!this.eventHandler||!n.isJavaScript()||!o1(this.allJsFilesForOpenFileTelemetry,n.path))return;let a=this.ensureDefaultProjectForFile(n);if(!a.languageServiceEnabled)return;let c=a.getSourceFile(n.path),u=!!c&&!!c.checkJsDirective;this.eventHandler({eventName:ZMe,data:{info:{checkJs:u}}})}closeClientFile(n,a){let c=this.getScriptInfoForNormalizedPath(nu(n)),u=c?this.closeOpenFile(c,a):!1;return a||this.printProjects(),u}collectChanges(n,a,c,u){for(let _ of a){let f=wt(n,y=>y.projectName===_.getProjectName());u.push(_.getChangesSinceVersion(f&&f.version,c))}}synchronizeProjectList(n,a){let c=[];return this.collectChanges(n,this.externalProjects,a,c),this.collectChanges(n,Na(this.configuredProjects.values(),u=>u.deferredClose?void 0:u),a,c),this.collectChanges(n,this.inferredProjects,a,c),c}applyChangesInOpenFiles(n,a,c){let u,_,f=!1;if(n)for(let g of n){(u??(u=[])).push(this.getScriptInfoForPath(uM(nu(g.fileName),g.projectRootPath?this.getNormalizedAbsolutePath(g.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));let k=this.getOrCreateOpenScriptInfo(nu(g.fileName),g.content,Vbe(g.scriptKind),g.hasMixedContent,g.projectRootPath?nu(g.projectRootPath):void 0);(_||(_=[])).push(k)}if(a)for(let g of a){let k=this.getScriptInfo(g.fileName);$.assert(!!k),this.applyChangesToFile(k,g.changes)}if(c)for(let g of c)f=this.closeClientFile(g,!0)||f;let y;X(u,(g,k)=>!g&&_[k]&&!_[k].isDynamic?this.tryInvokeWildCardDirectories(_[k]):void 0),_?.forEach(g=>{var k;return(k=this.assignProjectToOpenedScriptInfo(g).retainProjects)==null?void 0:k.forEach((T,C)=>(y??(y=new Map)).set(C,T))}),f&&this.assignOrphanScriptInfosToInferredProject(),_?(this.cleanupProjectsAndScriptInfos(y,new Set(_.map(g=>g.path)),void 0),_.forEach(g=>this.telemetryOnOpenFile(g)),this.printProjects()):te(c)&&this.printProjects()}applyChangesToFile(n,a){for(let c of a)n.editContent(c.span.start,c.span.start+c.span.length,c.newText)}closeExternalProject(n,a){let c=nu(n);if(this.externalProjectToConfiguredProjectMap.get(c))this.externalProjectToConfiguredProjectMap.delete(c);else{let _=this.findExternalProjectByProjectName(n);_&&this.removeProject(_)}a&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(n){let a=new Set(this.externalProjects.map(c=>c.getProjectName()));this.externalProjectToConfiguredProjectMap.forEach((c,u)=>a.add(u));for(let c of n)this.openExternalProject(c,!1),a.delete(c.projectFileName);a.forEach(c=>this.closeExternalProject(c,!1)),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(n){return n.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=XMe}applySafeList(n){let a=n.typeAcquisition;$.assert(!!a,"proj.typeAcquisition should be set by now");let c=this.applySafeListWorker(n,n.rootFiles,a);return c?.excludedFiles??[]}applySafeListWorker(n,a,c){if(c.enable===!1||c.disableFilenameBasedTypeAcquisition)return;let u=c.include||(c.include=[]),_=[],f=a.map(C=>Z_(C.fileName));for(let C of Object.keys(this.safelist)){let O=this.safelist[C];for(let F of f)if(O.match.test(F)){if(this.logger.info(`Excluding files based on rule ${C} matching file '${F}'`),O.types)for(let M of O.types)u.includes(M)||u.push(M);if(O.exclude)for(let M of O.exclude){let U=F.replace(O.match,(...J)=>M.map(G=>typeof G=="number"?Ni(J[G])?hct.escapeFilenameForRegex(J[G]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${C} - not enough groups`),"\\*"):G).join(""));_.includes(U)||_.push(U)}else{let M=hct.escapeFilenameForRegex(F);_.includes(M)||_.push(M)}}}let y=_.map(C=>new RegExp(C,"i")),g,k;for(let C=0;CO.test(f[C])))T(C);else{if(c.enable){let O=t_(lb(f[C]));if(Au(O,"js")){let F=Qm(O),M=C9(F),U=this.legacySafelist.get(M);if(U!==void 0){this.logger.info(`Excluded '${f[C]}' because it matched ${M} from the legacy safelist`),T(C),u.includes(U)||u.push(U);continue}}}/^.+[.-]min\.js$/.test(f[C])?T(C):g?.push(a[C])}return k?{rootFiles:g,excludedFiles:k}:void 0;function T(C){k||($.assert(!g),g=a.slice(0,C),k=[]),k.push(f[C])}}openExternalProject(n,a){let c=this.findExternalProjectByProjectName(n.projectFileName),u,_=[];for(let f of n.rootFiles){let y=nu(f.fileName);if(Nbe(y)){if(this.serverMode===0&&this.host.fileExists(y)){let g=this.findConfiguredProjectByProjectName(y);g||(g=this.createConfiguredProject(y,`Creating configured project in external project: ${n.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||g.updateGraph()),(u??(u=new Set)).add(g),$.assert(!g.isClosed())}}else _.push(f)}if(u)this.externalProjectToConfiguredProjectMap.set(n.projectFileName,u),c&&this.removeProject(c);else{this.externalProjectToConfiguredProjectMap.delete(n.projectFileName);let f=n.typeAcquisition||{};f.include=f.include||[],f.exclude=f.exclude||[],f.enable===void 0&&(f.enable=JMe(_.map(k=>k.fileName)));let y=this.applySafeListWorker(n,_,f),g=y?.excludedFiles??[];if(_=y?.rootFiles??_,c){c.excludedFiles=g;let k=nse(n.options),T=UQ(n.options,c.getCurrentDirectory()),C=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(n.projectFileName,k,_,Hbe);C?c.disableLanguageService(C):c.enableLanguageService(),c.setProjectErrors(T?.errors),this.updateRootAndOptionsOfNonInferredProject(c,_,Hbe,k,f,n.options.compileOnSave,T?.watchOptions),c.updateGraph()}else this.createExternalProject(n.projectFileName,_,n.options,f,g).updateGraph()}a&&(this.cleanupConfiguredProjects(u,new Set([n.projectFileName])),this.printProjects())}hasDeferredExtension(){for(let n of this.hostConfiguration.extraFileExtensions)if(n.scriptKind===7)return!0;return!1}requestEnablePlugin(n,a,c){if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info(`Enabling plugin ${a.name} from candidate paths: ${c.join(",")}`),!a.name||vt(a.name)||/[\\/]\.\.?(?:$|[\\/])/.test(a.name)){this.logger.info(`Skipped loading plugin ${a.name||JSON.stringify(a)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){let u=YF.importServicePluginAsync(a,c,this.host,f=>this.logger.info(f));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let _=this.pendingPluginEnablements.get(n);_||this.pendingPluginEnablements.set(n,_=[]),_.push(u);return}this.endEnablePlugin(n,YF.importServicePluginSync(a,c,this.host,u=>this.logger.info(u)))}endEnablePlugin(n,{pluginConfigEntry:a,resolvedModule:c,errorLogs:u}){var _;if(c){let f=(_=this.currentPluginConfigOverrides)==null?void 0:_.get(a.name);if(f){let y=a.name;a=f,a.name=y}n.enableProxy(c,a)}else X(u,f=>this.logger.info(f)),this.logger.info(`Couldn't find ${a.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;let n=so(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(n),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(n){$.assert(this.currentPluginEnablementPromise===void 0);let a=!1;await Promise.all(Cr(n,async([c,u])=>{let _=await Promise.all(u);if(c.isClosed()||$Q(c)){this.logger.info(`Cancelling plugin enabling for ${c.getProjectName()} as it is ${c.isClosed()?"closed":"deferred close"}`);return}a=!0;for(let f of _)this.endEnablePlugin(c,f);this.delayUpdateProjectGraph(c)})),this.currentPluginEnablementPromise=void 0,a&&this.sendProjectsUpdatedInBackgroundEvent()}configurePlugin(n){this.forEachEnabledProject(a=>a.onPluginConfigurationChanged(n.pluginName,n.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(n.pluginName,n.configuration)}getPackageJsonsVisibleToFile(n,a,c){let u=this.packageJsonCache,_=c&&this.toPath(c),f=[],y=g=>{switch(u.directoryHasPackageJson(g)){case 3:return u.searchDirectoryAndAncestors(g,a),y(g);case-1:let k=Xi(g,"package.json");this.watchPackageJsonFile(k,this.toPath(k),a);let T=u.getInDirectory(g);T&&f.push(T)}if(_&&_===g)return!0};return Ab(a,mo(n),y),f}getNearestAncestorDirectoryWithPackageJson(n,a){return Ab(a,n,c=>{switch(this.packageJsonCache.directoryHasPackageJson(c)){case-1:return c;case 0:return;case 3:return this.host.fileExists(Xi(c,"package.json"))?c:void 0}})}watchPackageJsonFile(n,a,c){$.assert(c!==void 0);let u=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(a);if(!u){let _=this.watchFactory.watchFile(n,(f,y)=>{switch(y){case 0:case 1:this.packageJsonCache.addOrUpdate(f,a),this.onPackageJsonChange(u);break;case 2:this.packageJsonCache.delete(a),this.onPackageJsonChange(u),u.projects.clear(),u.close()}},250,this.hostConfiguration.watchOptions,cf.PackageJson);u={projects:new Set,close:()=>{var f;u.projects.size||!_||(_.close(),_=void 0,(f=this.packageJsonFilesMap)==null||f.delete(a),this.packageJsonCache.invalidate(a))}},this.packageJsonFilesMap.set(a,u)}u.projects.add(c),(c.packageJsonWatches??(c.packageJsonWatches=new Set)).add(u)}onPackageJsonChange(n){n.projects.forEach(a=>{var c;return(c=a.onPackageJsonChange)==null?void 0:c.call(a)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=FSr())}};$Tt.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var pje=$Tt;function FSr(){let t;return{get(){return t},set(n){t=n},clear(){t=void 0}}}function _je(t){return t.kind!==void 0}function dje(t){t.print(!1,!1,!1)}function fje(t){let n,a,c,u={get(g,k,T,C){if(!(!a||c!==f(g,T,C)))return a.get(k)},set(g,k,T,C,O,F,M){if(_(g,T,C).set(k,y(O,F,M,void 0,!1)),M){for(let U of F)if(U.isInNodeModules){let J=U.path.substring(0,U.path.indexOf(Jx)+Jx.length-1),G=t.toPath(J);n?.has(G)||(n||(n=new Map)).set(G,t.watchNodeModulesForPackageJsonChanges(J))}}},setModulePaths(g,k,T,C,O){let F=_(g,T,C),M=F.get(k);M?M.modulePaths=O:F.set(k,y(void 0,O,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(g,k,T,C,O,F){let M=_(g,T,C),U=M.get(k);U?(U.isBlockedByPackageJsonDependencies=F,U.packageName=O):M.set(k,y(void 0,void 0,void 0,O,F))},clear(){n?.forEach(W1),a?.clear(),n?.clear(),c=void 0},count(){return a?a.size:0}};return $.isDebugging&&Object.defineProperty(u,"__cache",{get:()=>a}),u;function _(g,k,T){let C=f(g,k,T);return a&&c!==C&&u.clear(),c=C,a||(a=new Map)}function f(g,k,T){return`${g},${k.importModuleSpecifierEnding},${k.importModuleSpecifierPreference},${T.overrideImportMode}`}function y(g,k,T,C,O){return{kind:g,modulePaths:k,moduleSpecifiers:T,packageName:C,isBlockedByPackageJsonDependencies:O}}}function mje(t){let n=new Map,a=new Map;return{addOrUpdate:c,invalidate:u,delete:f=>{n.delete(f),a.set(mo(f),!0)},getInDirectory:f=>n.get(t.toPath(Xi(f,"package.json")))||void 0,directoryHasPackageJson:f=>_(t.toPath(f)),searchDirectoryAndAncestors:(f,y)=>{Ab(y,f,g=>{let k=t.toPath(g);if(_(k)!==3)return!0;let T=Xi(g,"package.json");iq(t,T)?c(T,Xi(k,"package.json")):a.set(k,!0)})}};function c(f,y){let g=$.checkDefined(kve(f,t.host));n.set(y,g),a.delete(mo(y))}function u(f){n.delete(f),a.delete(mo(f))}function _(f){return n.has(Xi(f,"package.json"))?-1:a.has(f)?0:3}}var UTt={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function RSr(t){let n=t[0],a=t[1];return(1e9*n+a)/1e6}function zTt(t,n){if((pM(t)||jQ(t))&&t.isJsOnlyProject()){let a=t.getScriptInfoForNormalizedPath(n);return a&&!a.isJavaScript()}return!1}function LSr(t){return fg(t)||!!t.emitDecoratorMetadata}function qTt(t,n,a){let c=n.getScriptInfoForNormalizedPath(t);return{start:c.positionToLineOffset(a.start),end:c.positionToLineOffset(a.start+a.length),text:RS(a.messageText,` +`),code:a.code,category:NT(a),reportsUnnecessary:a.reportsUnnecessary,reportsDeprecated:a.reportsDeprecated,source:a.source,relatedInformation:Cr(a.relatedInformation,Xbe)}}function Xbe(t){return t.file?{span:{start:dM(qs(t.file,t.start)),end:dM(qs(t.file,t.start+t.length)),file:t.file.fileName},message:RS(t.messageText,` +`),category:NT(t),code:t.code}:{message:RS(t.messageText,` +`),category:NT(t),code:t.code}}function dM(t){return{line:t.line+1,offset:t.character+1}}function zQ(t,n){let a=t.file&&dM(qs(t.file,t.start)),c=t.file&&dM(qs(t.file,t.start+t.length)),u=RS(t.messageText,` +`),{code:_,source:f}=t,y=NT(t),g={start:a,end:c,text:u,code:_,category:y,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated,source:f,relatedInformation:Cr(t.relatedInformation,Xbe)};return n?{...g,fileName:t.file&&t.file.fileName}:g}function MSr(t,n){return t.every(a=>Xn(a.span){this.immediateId=void 0,this.operationHost.executeWithRequestId(a,()=>this.executeAction(n),this.performanceData)},t))}delay(t,n,a){let c=this.requestId;$.assert(c===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(c,()=>this.executeAction(a),this.performanceData)},n,t))}executeAction(t){var n,a,c,u,_,f;let y=!1;try{this.operationHost.isCancellationRequested()?(y=!0,(n=hi)==null||n.instant(hi.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((a=hi)==null||a.push(hi.Phase.Session,"stepAction",{seq:this.requestId}),t(this),(c=hi)==null||c.pop())}catch(g){(u=hi)==null||u.popAll(),y=!0,g instanceof Uk?(_=hi)==null||_.instant(hi.Phase.Session,"stepCanceled",{seq:this.requestId}):((f=hi)==null||f.instant(hi.Phase.Session,"stepError",{seq:this.requestId,message:g.message}),this.operationHost.logError(g,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),(y||!this.hasPendingWork())&&this.complete()}setTimerHandle(t){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=t}setImmediateId(t){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=t}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}};function gje(t,n){return{seq:0,type:"event",event:t,body:n}}function BSr(t,n,a,c){let u=Xr(Zn(a)?a:a.projects,_=>c(_,t));return!Zn(a)&&a.symLinkedProjects&&a.symLinkedProjects.forEach((_,f)=>{let y=n(f);u.push(...an(_,g=>c(g,y)))}),rf(u,Ng)}function Ybe(t){return Qi(({textSpan:n})=>n.start+100003*n.length,_ve(t))}function $Sr(t,n,a,c,u,_,f){let y=yje(t,n,a,VTt(n,a,!0),HTt,(T,C)=>T.getLanguageService().findRenameLocations(C.fileName,C.pos,c,u,_),(T,C)=>C(bq(T)));if(Zn(y))return y;let g=[],k=Ybe(f);return y.forEach((T,C)=>{for(let O of T)!k.has(O)&&!exe(bq(O),C)&&(g.push(O),k.add(O))}),g}function VTt(t,n,a){let c=t.getLanguageService().getDefinitionAtPosition(n.fileName,n.pos,!1,a),u=c&&pi(c);return u&&!u.isLocal?{fileName:u.fileName,pos:u.textSpan.start}:void 0}function USr(t,n,a,c,u){var _,f;let y=yje(t,n,a,VTt(n,a,!1),HTt,(C,O)=>(u.info(`Finding references to ${O.fileName} position ${O.pos} in project ${C.getProjectName()}`),C.getLanguageService().findReferences(O.fileName,O.pos)),(C,O)=>{O(bq(C.definition));for(let F of C.references)O(bq(F))});if(Zn(y))return y;let g=y.get(n);if(((f=(_=g?.[0])==null?void 0:_.references[0])==null?void 0:f.isDefinition)===void 0)y.forEach(C=>{for(let O of C)for(let F of O.references)delete F.isDefinition});else{let C=Ybe(c);for(let F of g)for(let M of F.references)if(M.isDefinition){C.add(M);break}let O=new Set;for(;;){let F=!1;if(y.forEach((M,U)=>{if(O.has(U))return;U.getLanguageService().updateIsDefinitionOfReferencedSymbols(M,C)&&(O.add(U),F=!0)}),!F)break}y.forEach((F,M)=>{if(!O.has(M))for(let U of F)for(let J of U.references)J.isDefinition=!1})}let k=[],T=Ybe(c);return y.forEach((C,O)=>{for(let F of C){let M=exe(bq(F.definition),O),U=M===void 0?F.definition:{...F.definition,textSpan:Jp(M.pos,F.definition.textSpan.length),fileName:M.fileName,contextSpan:qSr(F.definition,O)},J=wt(k,G=>pve(G.definition,U,c));J||(J={definition:U,references:[]},k.push(J));for(let G of F.references)!T.has(G)&&!exe(bq(G),O)&&(T.add(G),J.references.push(G))}}),k.filter(C=>C.references.length!==0)}function WTt(t,n,a){for(let c of Zn(t)?t:t.projects)a(c,n);!Zn(t)&&t.symLinkedProjects&&t.symLinkedProjects.forEach((c,u)=>{for(let _ of c)a(_,u)})}function yje(t,n,a,c,u,_,f){let y=new Map,g=u0();g.enqueue({project:n,location:a}),WTt(t,a.fileName,(U,J)=>{let G={fileName:J,pos:a.pos};g.enqueue({project:U,location:G})});let k=n.projectService,T=n.getCancellationToken(),C=Ef(()=>n.isSourceOfProjectReferenceRedirect(c.fileName)?c:n.getLanguageService().getSourceMapper().tryGetGeneratedPosition(c)),O=Ef(()=>n.isSourceOfProjectReferenceRedirect(c.fileName)?c:n.getLanguageService().getSourceMapper().tryGetSourcePosition(c)),F=new Set;e:for(;!g.isEmpty();){for(;!g.isEmpty();){if(T.isCancellationRequested())break e;let{project:U,location:J}=g.dequeue();if(y.has(U)||KTt(U,J)||(_1(U),!U.containsFile(nu(J.fileName))))continue;let G=M(U,J);y.set(U,G??Pd),F.add(zSr(U))}c&&(k.loadAncestorProjectTree(F),k.forEachEnabledProject(U=>{if(T.isCancellationRequested()||y.has(U))return;let J=u(c,U,C,O);J&&g.enqueue({project:U,location:J})}))}if(y.size===1)return Gu(y.values());return y;function M(U,J){let G=_(U,J);if(!G||!f)return G;for(let Z of G)f(Z,Q=>{let re=k.getOriginalLocationEnsuringConfiguredProject(U,Q);if(!re)return;let ae=k.getScriptInfo(re.fileName);for(let me of ae.containingProjects)!me.isOrphan()&&!y.has(me)&&g.enqueue({project:me,location:re});let _e=k.getSymlinkedProjects(ae);_e&&_e.forEach((me,le)=>{for(let Oe of me)!Oe.isOrphan()&&!y.has(Oe)&&g.enqueue({project:Oe,location:{fileName:le,pos:re.pos}})})});return G}}function GTt(t,n){if(n.containsFile(nu(t.fileName))&&!KTt(n,t))return t}function HTt(t,n,a,c){let u=GTt(t,n);if(u)return u;let _=a();if(_&&n.containsFile(nu(_.fileName)))return _;let f=c();return f&&n.containsFile(nu(f.fileName))?f:void 0}function KTt(t,n){if(!n)return!1;let a=t.getLanguageService().getProgram();if(!a)return!1;let c=a.getSourceFile(n.fileName);return!!c&&c.resolvedPath!==c.path&&c.resolvedPath!==t.toPath(n.fileName)}function zSr(t){return IE(t)?t.canonicalConfigFilePath:t.getProjectName()}function bq({fileName:t,textSpan:n}){return{fileName:t,pos:n.start}}function exe(t,n){return Xz(t,n.getSourceMapper(),a=>n.projectService.fileExists(a))}function QTt(t,n){return Koe(t,n.getSourceMapper(),a=>n.projectService.fileExists(a))}function qSr(t,n){return fve(t,n.getSourceMapper(),a=>n.projectService.fileExists(a))}var ZTt=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","getPasteEdits","copilotRelated"],JSr=[...ZTt,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full","preparePasteEdits"],XTt=class yPe{constructor(n){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{let _={version:L};return this.requiredResponse(_)},openExternalProject:_=>(this.projectService.openExternalProject(_.arguments,!0),this.requiredResponse(!0)),openExternalProjects:_=>(this.projectService.openExternalProjects(_.arguments.projects),this.requiredResponse(!0)),closeExternalProject:_=>(this.projectService.closeExternalProject(_.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:_=>{let f=this.projectService.synchronizeProjectList(_.arguments.knownProjects,_.arguments.includeProjectReferenceRedirectInfo);if(!f.some(g=>g.projectErrors&&g.projectErrors.length!==0))return this.requiredResponse(f);let y=Cr(f,g=>!g.projectErrors||g.projectErrors.length===0?g:{info:g.info,changes:g.changes,files:g.files,projectErrors:this.convertToDiagnosticsWithLinePosition(g.projectErrors,void 0)});return this.requiredResponse(y)},updateOpen:_=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(_.arguments.openFiles&&ol(_.arguments.openFiles,f=>({fileName:f.file,content:f.fileContent,scriptKind:f.scriptKindName,projectRootPath:f.projectRootPath})),_.arguments.changedFiles&&ol(_.arguments.changedFiles,f=>({fileName:f.fileName,changes:Na(Tf(f.textChanges),y=>{let g=$.checkDefined(this.projectService.getScriptInfo(f.fileName)),k=g.lineOffsetToPosition(y.start.line,y.start.offset),T=g.lineOffsetToPosition(y.end.line,y.end.offset);return k>=0?{span:{start:k,length:T-k},newText:y.newText}:void 0})})),_.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:_=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(_.arguments.openFiles,_.arguments.changedFiles&&ol(_.arguments.changedFiles,f=>({fileName:f.fileName,changes:Tf(f.changes)})),_.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired(void 0)),definition:_=>this.requiredResponse(this.getDefinition(_.arguments,!0)),"definition-full":_=>this.requiredResponse(this.getDefinition(_.arguments,!1)),definitionAndBoundSpan:_=>this.requiredResponse(this.getDefinitionAndBoundSpan(_.arguments,!0)),"definitionAndBoundSpan-full":_=>this.requiredResponse(this.getDefinitionAndBoundSpan(_.arguments,!1)),findSourceDefinition:_=>this.requiredResponse(this.findSourceDefinition(_.arguments)),"emit-output":_=>this.requiredResponse(this.getEmitOutput(_.arguments)),typeDefinition:_=>this.requiredResponse(this.getTypeDefinition(_.arguments)),implementation:_=>this.requiredResponse(this.getImplementation(_.arguments,!0)),"implementation-full":_=>this.requiredResponse(this.getImplementation(_.arguments,!1)),references:_=>this.requiredResponse(this.getReferences(_.arguments,!0)),"references-full":_=>this.requiredResponse(this.getReferences(_.arguments,!1)),rename:_=>this.requiredResponse(this.getRenameLocations(_.arguments,!0)),"renameLocations-full":_=>this.requiredResponse(this.getRenameLocations(_.arguments,!1)),"rename-full":_=>this.requiredResponse(this.getRenameInfo(_.arguments)),open:_=>(this.openClientFile(nu(_.arguments.file),_.arguments.fileContent,Wbe(_.arguments.scriptKindName),_.arguments.projectRootPath?nu(_.arguments.projectRootPath):void 0),this.notRequired(_)),quickinfo:_=>this.requiredResponse(this.getQuickInfoWorker(_.arguments,!0)),"quickinfo-full":_=>this.requiredResponse(this.getQuickInfoWorker(_.arguments,!1)),getOutliningSpans:_=>this.requiredResponse(this.getOutliningSpans(_.arguments,!0)),outliningSpans:_=>this.requiredResponse(this.getOutliningSpans(_.arguments,!1)),todoComments:_=>this.requiredResponse(this.getTodoComments(_.arguments)),indentation:_=>this.requiredResponse(this.getIndentation(_.arguments)),nameOrDottedNameSpan:_=>this.requiredResponse(this.getNameOrDottedNameSpan(_.arguments)),breakpointStatement:_=>this.requiredResponse(this.getBreakpointStatement(_.arguments)),braceCompletion:_=>this.requiredResponse(this.isValidBraceCompletion(_.arguments)),docCommentTemplate:_=>this.requiredResponse(this.getDocCommentTemplate(_.arguments)),getSpanOfEnclosingComment:_=>this.requiredResponse(this.getSpanOfEnclosingComment(_.arguments)),fileReferences:_=>this.requiredResponse(this.getFileReferences(_.arguments,!0)),"fileReferences-full":_=>this.requiredResponse(this.getFileReferences(_.arguments,!1)),format:_=>this.requiredResponse(this.getFormattingEditsForRange(_.arguments)),formatonkey:_=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(_.arguments)),"format-full":_=>this.requiredResponse(this.getFormattingEditsForDocumentFull(_.arguments)),"formatonkey-full":_=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(_.arguments)),"formatRange-full":_=>this.requiredResponse(this.getFormattingEditsForRangeFull(_.arguments)),completionInfo:_=>this.requiredResponse(this.getCompletions(_.arguments,"completionInfo")),completions:_=>this.requiredResponse(this.getCompletions(_.arguments,"completions")),"completions-full":_=>this.requiredResponse(this.getCompletions(_.arguments,"completions-full")),completionEntryDetails:_=>this.requiredResponse(this.getCompletionEntryDetails(_.arguments,!1)),"completionEntryDetails-full":_=>this.requiredResponse(this.getCompletionEntryDetails(_.arguments,!0)),compileOnSaveAffectedFileList:_=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(_.arguments)),compileOnSaveEmitFile:_=>this.requiredResponse(this.emitFile(_.arguments)),signatureHelp:_=>this.requiredResponse(this.getSignatureHelpItems(_.arguments,!0)),"signatureHelp-full":_=>this.requiredResponse(this.getSignatureHelpItems(_.arguments,!1)),"compilerOptionsDiagnostics-full":_=>this.requiredResponse(this.getCompilerOptionsDiagnostics(_.arguments)),"encodedSyntacticClassifications-full":_=>this.requiredResponse(this.getEncodedSyntacticClassifications(_.arguments)),"encodedSemanticClassifications-full":_=>this.requiredResponse(this.getEncodedSemanticClassifications(_.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:_=>this.requiredResponse(this.getSemanticDiagnosticsSync(_.arguments)),syntacticDiagnosticsSync:_=>this.requiredResponse(this.getSyntacticDiagnosticsSync(_.arguments)),suggestionDiagnosticsSync:_=>this.requiredResponse(this.getSuggestionDiagnosticsSync(_.arguments)),geterr:_=>(this.errorCheck.startNew(f=>this.getDiagnostics(f,_.arguments.delay,_.arguments.files)),this.notRequired(void 0)),geterrForProject:_=>(this.errorCheck.startNew(f=>this.getDiagnosticsForProject(f,_.arguments.delay,_.arguments.file)),this.notRequired(void 0)),change:_=>(this.change(_.arguments),this.notRequired(_)),configure:_=>(this.projectService.setHostConfiguration(_.arguments),this.notRequired(_)),reload:_=>(this.reload(_.arguments),this.requiredResponse({reloadFinished:!0})),saveto:_=>{let f=_.arguments;return this.saveToTmp(f.file,f.tmpfile),this.notRequired(_)},close:_=>{let f=_.arguments;return this.closeClientFile(f.file),this.notRequired(_)},navto:_=>this.requiredResponse(this.getNavigateToItems(_.arguments,!0)),"navto-full":_=>this.requiredResponse(this.getNavigateToItems(_.arguments,!1)),brace:_=>this.requiredResponse(this.getBraceMatching(_.arguments,!0)),"brace-full":_=>this.requiredResponse(this.getBraceMatching(_.arguments,!1)),navbar:_=>this.requiredResponse(this.getNavigationBarItems(_.arguments,!0)),"navbar-full":_=>this.requiredResponse(this.getNavigationBarItems(_.arguments,!1)),navtree:_=>this.requiredResponse(this.getNavigationTree(_.arguments,!0)),"navtree-full":_=>this.requiredResponse(this.getNavigationTree(_.arguments,!1)),documentHighlights:_=>this.requiredResponse(this.getDocumentHighlights(_.arguments,!0)),"documentHighlights-full":_=>this.requiredResponse(this.getDocumentHighlights(_.arguments,!1)),compilerOptionsForInferredProjects:_=>(this.setCompilerOptionsForInferredProjects(_.arguments),this.requiredResponse(!0)),projectInfo:_=>this.requiredResponse(this.getProjectInfo(_.arguments)),reloadProjects:_=>(this.projectService.reloadProjects(),this.notRequired(_)),jsxClosingTag:_=>this.requiredResponse(this.getJsxClosingTag(_.arguments)),linkedEditingRange:_=>this.requiredResponse(this.getLinkedEditingRange(_.arguments)),getCodeFixes:_=>this.requiredResponse(this.getCodeFixes(_.arguments,!0)),"getCodeFixes-full":_=>this.requiredResponse(this.getCodeFixes(_.arguments,!1)),getCombinedCodeFix:_=>this.requiredResponse(this.getCombinedCodeFix(_.arguments,!0)),"getCombinedCodeFix-full":_=>this.requiredResponse(this.getCombinedCodeFix(_.arguments,!1)),applyCodeActionCommand:_=>this.requiredResponse(this.applyCodeActionCommand(_.arguments)),getSupportedCodeFixes:_=>this.requiredResponse(this.getSupportedCodeFixes(_.arguments)),getApplicableRefactors:_=>this.requiredResponse(this.getApplicableRefactors(_.arguments)),getEditsForRefactor:_=>this.requiredResponse(this.getEditsForRefactor(_.arguments,!0)),getMoveToRefactoringFileSuggestions:_=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(_.arguments)),preparePasteEdits:_=>this.requiredResponse(this.preparePasteEdits(_.arguments)),getPasteEdits:_=>this.requiredResponse(this.getPasteEdits(_.arguments)),"getEditsForRefactor-full":_=>this.requiredResponse(this.getEditsForRefactor(_.arguments,!1)),organizeImports:_=>this.requiredResponse(this.organizeImports(_.arguments,!0)),"organizeImports-full":_=>this.requiredResponse(this.organizeImports(_.arguments,!1)),getEditsForFileRename:_=>this.requiredResponse(this.getEditsForFileRename(_.arguments,!0)),"getEditsForFileRename-full":_=>this.requiredResponse(this.getEditsForFileRename(_.arguments,!1)),configurePlugin:_=>(this.configurePlugin(_.arguments),this.notRequired(_)),selectionRange:_=>this.requiredResponse(this.getSmartSelectionRange(_.arguments,!0)),"selectionRange-full":_=>this.requiredResponse(this.getSmartSelectionRange(_.arguments,!1)),prepareCallHierarchy:_=>this.requiredResponse(this.prepareCallHierarchy(_.arguments)),provideCallHierarchyIncomingCalls:_=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(_.arguments)),provideCallHierarchyOutgoingCalls:_=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(_.arguments)),toggleLineComment:_=>this.requiredResponse(this.toggleLineComment(_.arguments,!0)),"toggleLineComment-full":_=>this.requiredResponse(this.toggleLineComment(_.arguments,!1)),toggleMultilineComment:_=>this.requiredResponse(this.toggleMultilineComment(_.arguments,!0)),"toggleMultilineComment-full":_=>this.requiredResponse(this.toggleMultilineComment(_.arguments,!1)),commentSelection:_=>this.requiredResponse(this.commentSelection(_.arguments,!0)),"commentSelection-full":_=>this.requiredResponse(this.commentSelection(_.arguments,!1)),uncommentSelection:_=>this.requiredResponse(this.uncommentSelection(_.arguments,!0)),"uncommentSelection-full":_=>this.requiredResponse(this.uncommentSelection(_.arguments,!1)),provideInlayHints:_=>this.requiredResponse(this.provideInlayHints(_.arguments)),mapCode:_=>this.requiredResponse(this.mapCode(_.arguments)),copilotRelated:()=>this.requiredResponse(this.getCopilotRelatedInfo())})),this.host=n.host,this.cancellationToken=n.cancellationToken,this.typingsInstaller=n.typingsInstaller||ise,this.byteLength=n.byteLength,this.hrtime=n.hrtime,this.logger=n.logger,this.canUseEvents=n.canUseEvents,this.suppressDiagnosticEvents=n.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=n.noGetErrOnBackgroundUpdate;let{throttleWaitMilliseconds:a}=n;this.eventHandler=this.canUseEvents?n.eventHandler||(_=>this.defaultEventHandler(_)):void 0;let c={executeWithRequestId:(_,f,y)=>this.executeWithRequestId(_,f,y),getCurrentRequestId:()=>this.currentRequestId,getPerformanceData:()=>this.performanceData,getServerHost:()=>this.host,logError:(_,f)=>this.logError(_,f),sendRequestCompletedEvent:(_,f)=>this.sendRequestCompletedEvent(_,f),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new jSr(c);let u={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:n.useSingleInferredProject,useInferredProjectPerProjectRoot:n.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:a,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:n.globalPlugins,pluginProbeLocations:n.pluginProbeLocations,allowLocalPluginLoads:n.allowLocalPluginLoads,typesMapLocation:n.typesMapLocation,serverMode:n.serverMode,session:this,canUseWatchEvents:n.canUseWatchEvents,incrementalVerifier:n.incrementalVerifier};switch(this.projectService=new pje(u),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new RMe(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:ZTt.forEach(_=>this.handlers.set(_,f=>{throw new Error(`Request: ${f.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:JSr.forEach(_=>this.handlers.set(_,f=>{throw new Error(`Request: ${f.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:$.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(n,a){this.event({request_seq:n,performanceData:a&&YTt(a)},"requestCompleted")}addPerformanceData(n,a){this.performanceData||(this.performanceData={}),this.performanceData[n]=(this.performanceData[n]??0)+a}addDiagnosticsPerformanceData(n,a,c){var u,_;this.performanceData||(this.performanceData={});let f=(u=this.performanceData.diagnosticsDuration)==null?void 0:u.get(n);f||((_=this.performanceData).diagnosticsDuration??(_.diagnosticsDuration=new Map)).set(n,f={}),f[a]=c}performanceEventHandler(n){switch(n.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",n.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",n.durationMs);break}}defaultEventHandler(n){switch(n.eventName){case rse:this.projectsUpdatedInBackgroundEvent(n.data.openFiles);break;case Lbe:this.event({projectName:n.data.project.getProjectName(),reason:n.data.reason},n.eventName);break;case Mbe:this.event({projectName:n.data.project.getProjectName()},n.eventName);break;case jbe:case zbe:case qbe:case Jbe:this.event(n.data,n.eventName);break;case Bbe:this.event({triggerFile:n.data.triggerFile,configFile:n.data.configFileName,diagnostics:Cr(n.data.diagnostics,a=>zQ(a,!0))},n.eventName);break;case $be:{this.event({projectName:n.data.project.getProjectName(),languageServiceEnabled:n.data.languageServiceEnabled},n.eventName);break}case Ube:{this.event({telemetryEventName:n.eventName,payload:n.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(n){this.projectService.logger.info(`got projects updated in background ${n}`),n.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${n}`),this.errorCheck.startNew(a=>this.updateErrorCheck(a,n,100,!0))),this.event({openFiles:n},rse))}logError(n,a){this.logErrorWorker(n,a)}logErrorWorker(n,a,c){let u="Exception on executing command "+a;if(n.message&&(u+=`: +`+Vz(n.message),n.stack&&(u+=` +`+Vz(n.stack))),this.logger.hasLevel(3)){if(c)try{let{file:_,project:f}=this.getFileAndProject(c),y=f.getScriptInfoForNormalizedPath(_);if(y){let g=BF(y.getSnapshot());u+=` + +File text of ${c.file}:${Vz(g)} +`}}catch{}if(n.ProgramFiles){u+=` + +Program files: ${JSON.stringify(n.ProgramFiles)} +`,u+=` + +Projects:: +`;let _=0,f=y=>{u+=` +Project '${y.projectName}' (${Sq[y.projectKind]}) ${_} +`,u+=y.filesToString(!0),u+=` +----------------------------------------------- +`,_++};this.projectService.externalProjects.forEach(f),this.projectService.configuredProjects.forEach(f),this.projectService.inferredProjects.forEach(f)}}this.logger.msg(u,"Err")}send(n){if(n.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${jA(n)}`);return}this.writeMessage(n)}writeMessage(n){let a=hje(n,this.logger,this.byteLength,this.host.newLine);this.host.write(a)}event(n,a){this.send(gje(a,n))}doOutput(n,a,c,u,_,f){let y={seq:0,type:"response",command:a,request_seq:c,success:u,performanceData:_&&YTt(_)};if(u){let g;if(Zn(n))y.body=n,g=n.metadata,delete n.metadata;else if(typeof n=="object")if(n.metadata){let{metadata:k,...T}=n;y.body=T,g=k}else y.body=n;else y.body=n;g&&(y.metadata=g)}else $.assert(n===void 0);f&&(y.message=f),this.send(y)}semanticCheck(n,a){var c,u;let _=Ml();(c=hi)==null||c.push(hi.Phase.Session,"semanticCheck",{file:n,configFilePath:a.canonicalConfigFilePath});let f=zTt(a,n)?Pd:a.getLanguageService().getSemanticDiagnostics(n).filter(y=>!!y.file);this.sendDiagnosticsEvent(n,a,f,"semanticDiag",_),(u=hi)==null||u.pop()}syntacticCheck(n,a){var c,u;let _=Ml();(c=hi)==null||c.push(hi.Phase.Session,"syntacticCheck",{file:n,configFilePath:a.canonicalConfigFilePath}),this.sendDiagnosticsEvent(n,a,a.getLanguageService().getSyntacticDiagnostics(n),"syntaxDiag",_),(u=hi)==null||u.pop()}suggestionCheck(n,a){var c,u;let _=Ml();(c=hi)==null||c.push(hi.Phase.Session,"suggestionCheck",{file:n,configFilePath:a.canonicalConfigFilePath}),this.sendDiagnosticsEvent(n,a,a.getLanguageService().getSuggestionDiagnostics(n),"suggestionDiag",_),(u=hi)==null||u.pop()}regionSemanticCheck(n,a,c){var u,_,f;let y=Ml();(u=hi)==null||u.push(hi.Phase.Session,"regionSemanticCheck",{file:n,configFilePath:a.canonicalConfigFilePath});let g;if(!this.shouldDoRegionCheck(n)||!(g=a.getLanguageService().getRegionSemanticDiagnostics(n,c))){(_=hi)==null||_.pop();return}this.sendDiagnosticsEvent(n,a,g.diagnostics,"regionSemanticDiag",y,g.spans),(f=hi)==null||f.pop()}shouldDoRegionCheck(n){var a;let c=(a=this.projectService.getScriptInfoForNormalizedPath(n))==null?void 0:a.textStorage.getLineInfo().getLineCount();return!!(c&&c>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(n,a,c,u,_,f){try{let y=$.checkDefined(a.getScriptInfo(n)),g=Ml()-_,k={file:n,diagnostics:c.map(T=>qTt(n,a,T)),spans:f?.map(T=>$S(T,y))};this.event(k,u),this.addDiagnosticsPerformanceData(n,u,g)}catch(y){this.logError(y,u)}}updateErrorCheck(n,a,c,u=!0){if(a.length===0)return;$.assert(!this.suppressDiagnosticEvents);let _=this.changeSeq,f=Math.min(c,200),y=0,g=()=>{if(y++,a.length>y)return n.delay("checkOne",f,T)},k=(C,O)=>{if(this.semanticCheck(C,O),this.changeSeq===_){if(this.getPreferences(C).disableSuggestions)return g();n.immediate("suggestionCheck",()=>{this.suggestionCheck(C,O),g()})}},T=()=>{if(this.changeSeq!==_)return;let C,O=a[y];if(Ni(O)?O=this.toPendingErrorCheck(O):"ranges"in O&&(C=O.ranges,O=this.toPendingErrorCheck(O.file)),!O)return g();let{fileName:F,project:M}=O;if(_1(M),!!M.containsFile(F,u)&&(this.syntacticCheck(F,M),this.changeSeq===_)){if(M.projectService.serverMode!==0)return g();if(C)return n.immediate("regionSemanticCheck",()=>{let U=this.projectService.getScriptInfoForNormalizedPath(F);U&&this.regionSemanticCheck(F,M,C.map(J=>this.getRange({file:F,...J},U))),this.changeSeq===_&&n.immediate("semanticCheck",()=>k(F,M))});n.immediate("semanticCheck",()=>k(F,M))}};a.length>y&&this.changeSeq===_&&n.delay("checkOne",c,T)}cleanProjects(n,a){if(a){this.logger.info(`cleaning ${n}`);for(let c of a)c.getLanguageService(!1).cleanupSemanticCache(),c.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",so(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n);return c.getEncodedSyntacticClassifications(a,n)}getEncodedSemanticClassifications(n){let{file:a,project:c}=this.getFileAndProject(n),u=n.format==="2020"?"2020":"original";return c.getLanguageService().getEncodedSemanticClassifications(a,n,u)}getProject(n){return n===void 0?void 0:this.projectService.findProject(n)}getConfigFileAndProject(n){let a=this.getProject(n.projectFileName),c=nu(n.file);return{configFile:a&&a.hasConfigFile(c)?c:void 0,project:a}}getConfigFileDiagnostics(n,a,c){let u=a.getAllProjectErrors(),_=a.getLanguageService().getCompilerOptionsDiagnostics(),f=yr(go(u,_),y=>!!y.file&&y.file.fileName===n);return c?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(f):Cr(f,y=>zQ(y,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(n){return n.map(a=>({message:RS(a.messageText,this.host.newLine),start:a.start,length:a.length,category:NT(a),code:a.code,source:a.source,startLocation:a.file&&dM(qs(a.file,a.start)),endLocation:a.file&&dM(qs(a.file,a.start+a.length)),reportsUnnecessary:a.reportsUnnecessary,reportsDeprecated:a.reportsDeprecated,relatedInformation:Cr(a.relatedInformation,Xbe)}))}getCompilerOptionsDiagnostics(n){let a=this.getProject(n.projectFileName);return this.convertToDiagnosticsWithLinePosition(yr(a.getLanguageService().getCompilerOptionsDiagnostics(),c=>!c.file),void 0)}convertToDiagnosticsWithLinePosition(n,a){return n.map(c=>({message:RS(c.messageText,this.host.newLine),start:c.start,length:c.length,category:NT(c),code:c.code,source:c.source,startLocation:a&&a.positionToLineOffset(c.start),endLocation:a&&a.positionToLineOffset(c.start+c.length),reportsUnnecessary:c.reportsUnnecessary,reportsDeprecated:c.reportsDeprecated,relatedInformation:Cr(c.relatedInformation,Xbe)}))}getDiagnosticsWorker(n,a,c,u){let{project:_,file:f}=this.getFileAndProject(n);if(a&&zTt(_,f))return Pd;let y=_.getScriptInfoForNormalizedPath(f),g=c(_,f);return u?this.convertToDiagnosticsWithLinePosition(g,y):g.map(k=>qTt(f,_,k))}getDefinition(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=this.getPositionInFile(n,c),f=this.mapDefinitionInfoLocations(u.getLanguageService().getDefinitionAtPosition(c,_)||Pd,u);return a?this.mapDefinitionInfo(f,u):f.map(yPe.mapToOriginalLocation)}mapDefinitionInfoLocations(n,a){return n.map(c=>{let u=QTt(c,a);return u?{...u,containerKind:c.containerKind,containerName:c.containerName,kind:c.kind,name:c.name,failedAliasResolution:c.failedAliasResolution,...c.unverified&&{unverified:c.unverified}}:c})}getDefinitionAndBoundSpan(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=this.getPositionInFile(n,c),f=$.checkDefined(u.getScriptInfo(c)),y=u.getLanguageService().getDefinitionAndBoundSpan(c,_);if(!y||!y.definitions)return{definitions:Pd,textSpan:void 0};let g=this.mapDefinitionInfoLocations(y.definitions,u),{textSpan:k}=y;return a?{definitions:this.mapDefinitionInfo(g,u),textSpan:$S(k,f)}:{definitions:g.map(yPe.mapToOriginalLocation),textSpan:k}}findSourceDefinition(n){var a;let{file:c,project:u}=this.getFileAndProject(n),_=this.getPositionInFile(n,c),f=u.getLanguageService().getDefinitionAtPosition(c,_),y=this.mapDefinitionInfoLocations(f||Pd,u).slice();if(this.projectService.serverMode===0&&(!Pt(y,F=>nu(F.fileName)!==c&&!F.isAmbient)||Pt(y,F=>!!F.failedAliasResolution))){let F=Qi(G=>G.textSpan.start,_ve(this.host.useCaseSensitiveFileNames));y?.forEach(G=>F.add(G));let M=u.getNoDtsResolutionProject(c),U=M.getLanguageService(),J=(a=U.getDefinitionAtPosition(c,_,!0,!1))==null?void 0:a.filter(G=>nu(G.fileName)!==c);if(Pt(J))for(let G of J){if(G.unverified){let Z=C(G,u.getLanguageService().getProgram(),U.getProgram());if(Pt(Z)){for(let Q of Z)F.add(Q);continue}}F.add(G)}else{let G=y.filter(Z=>nu(Z.fileName)!==c&&Z.isAmbient);for(let Z of Pt(G)?G:T()){let Q=k(Z.fileName,c,M);if(!Q)continue;let re=this.projectService.getOrCreateScriptInfoNotOpenedByClient(Q,M.currentDirectory,M.directoryStructureHost,!1);if(!re)continue;M.containsScriptInfo(re)||(M.addRoot(re),M.updateGraph());let ae=U.getProgram(),_e=$.checkDefined(ae.getSourceFile(Q));for(let me of O(Z.name,_e,ae))F.add(me)}}y=so(F.values())}return y=y.filter(F=>!F.isAmbient&&!F.failedAliasResolution),this.mapDefinitionInfo(y,u);function k(F,M,U){var J,G,Z;let Q=Tne(F);if(Q&&F.lastIndexOf(Jx)===Q.topLevelNodeModulesIndex){let re=F.substring(0,Q.packageRootIndex),ae=(J=u.getModuleResolutionCache())==null?void 0:J.getPackageJsonInfoCache(),_e=u.getCompilationSettings(),me=Cz(za(re,u.getCurrentDirectory()),kz(ae,u,_e));if(!me)return;let le=Fye(me,{moduleResolution:2},u,u.getModuleResolutionCache()),Oe=F.substring(Q.topLevelPackageNameIndex+1,Q.packageRootIndex),be=Dz(pK(Oe)),ue=u.toPath(F);if(le&&Pt(le,De=>u.toPath(De)===ue))return(G=U.resolutionCache.resolveSingleModuleNameWithoutWatching(be,M).resolvedModule)==null?void 0:G.resolvedFileName;{let De=F.substring(Q.packageRootIndex+1),Ce=`${be}/${Qm(De)}`;return(Z=U.resolutionCache.resolveSingleModuleNameWithoutWatching(Ce,M).resolvedModule)==null?void 0:Z.resolvedFileName}}}function T(){let F=u.getLanguageService(),M=F.getProgram(),U=Vh(M.getSourceFile(c),_);return(Sl(U)||ct(U))&&wu(U.parent)&&b4e(U,J=>{var G;if(J===U)return;let Z=(G=F.getDefinitionAtPosition(c,J.getStart(),!0,!1))==null?void 0:G.filter(Q=>nu(Q.fileName)!==c&&Q.isAmbient).map(Q=>({fileName:Q.fileName,name:g0(U)}));if(Pt(Z))return Z})||Pd}function C(F,M,U){var J;let G=U.getSourceFile(F.fileName);if(!G)return;let Z=Vh(M.getSourceFile(c),_),Q=M.getTypeChecker().getSymbolAtLocation(Z),re=Q&&Qu(Q,277);if(!re)return;let ae=((J=re.propertyName)==null?void 0:J.text)||re.name.text;return O(ae,G,U)}function O(F,M,U){let J=Pu.Core.getTopMostDeclarationNamesInFile(F,M);return Wn(J,G=>{let Z=U.getTypeChecker().getSymbolAtLocation(G),Q=TU(G);if(Z&&Q)return cM.createDefinitionInfo(Q,U.getTypeChecker(),Z,Q,!0)})}}getEmitOutput(n){let{file:a,project:c}=this.getFileAndProject(n);if(!c.shouldEmitFile(c.getScriptInfo(a)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let u=c.getLanguageService().getEmitOutput(a);return n.richResponse?{...u,diagnostics:n.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(u.diagnostics):u.diagnostics.map(_=>zQ(_,!0))}:u}mapJSDocTagInfo(n,a,c){return n?n.map(u=>{var _;return{...u,text:c?this.mapDisplayParts(u.text,a):(_=u.text)==null?void 0:_.map(f=>f.text).join("")}}):[]}mapDisplayParts(n,a){return n?n.map(c=>c.kind!=="linkName"?c:{...c,target:this.toFileSpan(c.target.fileName,c.target.textSpan,a)}):[]}mapSignatureHelpItems(n,a,c){return n.map(u=>({...u,documentation:this.mapDisplayParts(u.documentation,a),parameters:u.parameters.map(_=>({..._,documentation:this.mapDisplayParts(_.documentation,a)})),tags:this.mapJSDocTagInfo(u.tags,a,c)}))}mapDefinitionInfo(n,a){return n.map(c=>({...this.toFileSpanWithContext(c.fileName,c.textSpan,c.contextSpan,a),...c.unverified&&{unverified:c.unverified}}))}static mapToOriginalLocation(n){return n.originalFileName?($.assert(n.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...n,fileName:n.originalFileName,textSpan:n.originalTextSpan,targetFileName:n.fileName,targetTextSpan:n.textSpan,contextSpan:n.originalContextSpan,targetContextSpan:n.contextSpan}):n}toFileSpan(n,a,c){let u=c.getLanguageService(),_=u.toLineColumnOffset(n,a.start),f=u.toLineColumnOffset(n,Xn(a));return{file:n,start:{line:_.line+1,offset:_.character+1},end:{line:f.line+1,offset:f.character+1}}}toFileSpanWithContext(n,a,c,u){let _=this.toFileSpan(n,a,u),f=c&&this.toFileSpan(n,c,u);return f?{..._,contextStart:f.start,contextEnd:f.end}:_}getTypeDefinition(n){let{file:a,project:c}=this.getFileAndProject(n),u=this.getPositionInFile(n,a),_=this.mapDefinitionInfoLocations(c.getLanguageService().getTypeDefinitionAtPosition(a,u)||Pd,c);return this.mapDefinitionInfo(_,c)}mapImplementationLocations(n,a){return n.map(c=>{let u=QTt(c,a);return u?{...u,kind:c.kind,displayParts:c.displayParts}:c})}getImplementation(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=this.getPositionInFile(n,c),f=this.mapImplementationLocations(u.getLanguageService().getImplementationAtPosition(c,_)||Pd,u);return a?f.map(({fileName:y,textSpan:g,contextSpan:k})=>this.toFileSpanWithContext(y,g,k,u)):f.map(yPe.mapToOriginalLocation)}getSyntacticDiagnosticsSync(n){let{configFile:a}=this.getConfigFileAndProject(n);return a?Pd:this.getDiagnosticsWorker(n,!1,(c,u)=>c.getLanguageService().getSyntacticDiagnostics(u),!!n.includeLinePosition)}getSemanticDiagnosticsSync(n){let{configFile:a,project:c}=this.getConfigFileAndProject(n);return a?this.getConfigFileDiagnostics(a,c,!!n.includeLinePosition):this.getDiagnosticsWorker(n,!0,(u,_)=>u.getLanguageService().getSemanticDiagnostics(_).filter(f=>!!f.file),!!n.includeLinePosition)}getSuggestionDiagnosticsSync(n){let{configFile:a}=this.getConfigFileAndProject(n);return a?Pd:this.getDiagnosticsWorker(n,!0,(c,u)=>c.getLanguageService().getSuggestionDiagnostics(u),!!n.includeLinePosition)}getJsxClosingTag(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,a),_=c.getJsxClosingTagAtPosition(a,u);return _===void 0?void 0:{newText:_.newText,caretOffset:0}}getLinkedEditingRange(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,a),_=c.getLinkedEditingRangeAtPosition(a,u),f=this.projectService.getScriptInfoForNormalizedPath(a);if(!(f===void 0||_===void 0))return WSr(_,f)}getDocumentHighlights(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=this.getPositionInFile(n,c),f=u.getLanguageService().getDocumentHighlights(c,_,n.filesToSearch);return f?a?f.map(({fileName:y,highlightSpans:g})=>{let k=u.getScriptInfo(y);return{file:y,highlightSpans:g.map(({textSpan:T,kind:C,contextSpan:O})=>({...vje(T,O,k),kind:C}))}}):f:Pd}provideInlayHints(n){let{file:a,project:c}=this.getFileAndProject(n),u=this.projectService.getScriptInfoForNormalizedPath(a);return c.getLanguageService().provideInlayHints(a,n,this.getPreferences(a)).map(f=>{let{position:y,displayParts:g}=f;return{...f,position:u.positionToLineOffset(y),displayParts:g?.map(({text:k,span:T,file:C})=>{if(T){$.assertIsDefined(C,"Target file should be defined together with its span.");let O=this.projectService.getScriptInfo(C);return{text:k,span:{start:O.positionToLineOffset(T.start),end:O.positionToLineOffset(T.start+T.length),file:C}}}else return{text:k}})}})}mapCode(n){var a;let c=this.getHostFormatOptions(),u=this.getHostPreferences(),{file:_,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(n),y=this.projectService.getScriptInfoForNormalizedPath(_),g=(a=n.mapping.focusLocations)==null?void 0:a.map(T=>T.map(C=>{let O=y.lineOffsetToPosition(C.start.line,C.start.offset),F=y.lineOffsetToPosition(C.end.line,C.end.offset);return{start:O,length:F-O}})),k=f.mapCode(_,n.mapping.contents,g,c,u);return this.mapTextChangesToCodeEdits(k)}getCopilotRelatedInfo(){return{relatedFiles:[]}}setCompilerOptionsForInferredProjects(n){this.projectService.setCompilerOptionsForInferredProjects(n.options,n.projectRootPath)}getProjectInfo(n){return this.getProjectInfoWorker(n.file,n.projectFileName,n.needFileNameList,n.needDefaultConfiguredProjectInfo,!1)}getProjectInfoWorker(n,a,c,u,_){let{project:f}=this.getFileAndProjectWorker(n,a);return _1(f),{configFileName:f.getProjectName(),languageServiceDisabled:!f.languageServiceEnabled,fileNames:c?f.getFileNames(!1,_):void 0,configuredProjectInfo:u?this.getDefaultConfiguredProjectInfo(n):void 0}}getDefaultConfiguredProjectInfo(n){var a;let c=this.projectService.getScriptInfo(n);if(!c)return;let u=this.projectService.findDefaultConfiguredProjectWorker(c,3);if(!u)return;let _,f;return u.seenProjects.forEach((y,g)=>{g!==u.defaultProject&&(y!==3?(_??(_=[])).push(nu(g.getConfigFilePath())):(f??(f=[])).push(nu(g.getConfigFilePath())))}),(a=u.seenConfigs)==null||a.forEach(y=>(_??(_=[])).push(y)),{notMatchedByConfig:_,notInProject:f,defaultProject:u.defaultProject&&nu(u.defaultProject.getConfigFilePath())}}getRenameInfo(n){let{file:a,project:c}=this.getFileAndProject(n),u=this.getPositionInFile(n,a),_=this.getPreferences(a);return c.getLanguageService().getRenameInfo(a,u,_)}getProjects(n,a,c){let u,_;if(n.projectFileName){let f=this.getProject(n.projectFileName);f&&(u=[f])}else{let f=a?this.projectService.getScriptInfoEnsuringProjectsUptoDate(n.file):this.projectService.getScriptInfo(n.file);if(f)a||this.projectService.ensureDefaultProjectForFile(f);else return c?Pd:(this.projectService.logErrorForScriptInfoNotFound(n.file),t2.ThrowNoProject());u=f.containingProjects,_=this.projectService.getSymlinkedProjects(f)}return u=yr(u,f=>f.languageServiceEnabled&&!f.isOrphan()),!c&&(!u||!u.length)&&!_?(this.projectService.logErrorForScriptInfoNotFound(n.file??n.projectFileName),t2.ThrowNoProject()):_?{projects:u,symLinkedProjects:_}:u}getDefaultProject(n){if(n.projectFileName){let c=this.getProject(n.projectFileName);if(c)return c;if(!n.file)return t2.ThrowNoProject()}return this.projectService.getScriptInfo(n.file).getDefaultProject()}getRenameLocations(n,a){let c=nu(n.file),u=this.getPositionInFile(n,c),_=this.getProjects(n),f=this.getDefaultProject(n),y=this.getPreferences(c),g=this.mapRenameInfo(f.getLanguageService().getRenameInfo(c,u,y),$.checkDefined(this.projectService.getScriptInfo(c)));if(!g.canRename)return a?{info:g,locs:[]}:[];let k=$Sr(_,f,{fileName:n.file,pos:u},!!n.findInStrings,!!n.findInComments,y,this.host.useCaseSensitiveFileNames);return a?{info:g,locs:this.toSpanGroups(k)}:k}mapRenameInfo(n,a){if(n.canRename){let{canRename:c,fileToRename:u,displayName:_,fullDisplayName:f,kind:y,kindModifiers:g,triggerSpan:k}=n;return{canRename:c,fileToRename:u,displayName:_,fullDisplayName:f,kind:y,kindModifiers:g,triggerSpan:$S(k,a)}}else return n}toSpanGroups(n){let a=new Map;for(let{fileName:c,textSpan:u,contextSpan:_,originalContextSpan:f,originalTextSpan:y,originalFileName:g,...k}of n){let T=a.get(c);T||a.set(c,T={file:c,locs:[]});let C=$.checkDefined(this.projectService.getScriptInfo(c));T.locs.push({...vje(u,_,C),...k})}return so(a.values())}getReferences(n,a){let c=nu(n.file),u=this.getProjects(n),_=this.getPositionInFile(n,c),f=USr(u,this.getDefaultProject(n),{fileName:n.file,pos:_},this.host.useCaseSensitiveFileNames,this.logger);if(!a)return f;let y=this.getPreferences(c),g=this.getDefaultProject(n),k=g.getScriptInfoForNormalizedPath(c),T=g.getLanguageService().getQuickInfoAtPosition(c,_),C=T?_Q(T.displayParts):"",O=T&&T.textSpan,F=O?k.positionToLineOffset(O.start).offset:0,M=O?k.getSnapshot().getText(O.start,Xn(O)):"";return{refs:an(f,J=>J.references.map(G=>t2t(this.projectService,G,y))),symbolName:M,symbolStartOffset:F,symbolDisplayString:C}}getFileReferences(n,a){let c=this.getProjects(n),u=nu(n.file),_=this.getPreferences(u),f={fileName:u,pos:0},y=yje(c,this.getDefaultProject(n),f,f,GTt,T=>(this.logger.info(`Finding references to file ${u} in project ${T.getProjectName()}`),T.getLanguageService().getFileReferences(u))),g;if(Zn(y))g=y;else{g=[];let T=Ybe(this.host.useCaseSensitiveFileNames);y.forEach(C=>{for(let O of C)T.has(O)||(g.push(O),T.add(O))})}return a?{refs:g.map(T=>t2t(this.projectService,T,_)),symbolName:`"${n.file}"`}:g}openClientFile(n,a,c,u){this.projectService.openClientFileWithNormalizedPath(n,a,c,!1,u)}getPosition(n,a){return n.position!==void 0?n.position:a.lineOffsetToPosition(n.line,n.offset)}getPositionInFile(n,a){let c=this.projectService.getScriptInfoForNormalizedPath(a);return this.getPosition(n,c)}getFileAndProject(n){return this.getFileAndProjectWorker(n.file,n.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(n){let{file:a,project:c}=this.getFileAndProject(n);return{file:a,languageService:c.getLanguageService(!1)}}getFileAndProjectWorker(n,a){let c=nu(n),u=this.getProject(a)||this.projectService.ensureDefaultProjectForFile(c);return{file:c,project:u}}getOutliningSpans(n,a){let{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),_=u.getOutliningSpans(c);if(a){let f=this.projectService.getScriptInfoForNormalizedPath(c);return _.map(y=>({textSpan:$S(y.textSpan,f),hintSpan:$S(y.hintSpan,f),bannerText:y.bannerText,autoCollapse:y.autoCollapse,kind:y.kind}))}else return _}getTodoComments(n){let{file:a,project:c}=this.getFileAndProject(n);return c.getLanguageService().getTodoComments(a,n.descriptors)}getDocCommentTemplate(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,a);return c.getDocCommentTemplateAtPosition(a,u,this.getPreferences(a),this.getFormatOptions(a))}getSpanOfEnclosingComment(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=n.onlyMultiLine,_=this.getPositionInFile(n,a);return c.getSpanOfEnclosingComment(a,_,u)}getIndentation(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,a),_=n.options?_M(n.options):this.getFormatOptions(a),f=c.getIndentationAtPosition(a,u,_);return{position:u,indentation:f}}getBreakpointStatement(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,a);return c.getBreakpointStatementAtPosition(a,u)}getNameOrDottedNameSpan(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,a);return c.getNameOrDottedNameSpan(a,u,u)}isValidBraceCompletion(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,a);return c.isValidBraceCompletionAtPosition(a,u,n.openingBrace.charCodeAt(0))}getQuickInfoWorker(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=this.projectService.getScriptInfoForNormalizedPath(c),f=this.getPreferences(c),y=u.getLanguageService().getQuickInfoAtPosition(c,this.getPosition(n,_),f.maximumHoverLength,n.verbosityLevel);if(!y)return;let g=!!f.displayPartsForJSDoc;if(a){let k=_Q(y.displayParts);return{kind:y.kind,kindModifiers:y.kindModifiers,start:_.positionToLineOffset(y.textSpan.start),end:_.positionToLineOffset(Xn(y.textSpan)),displayString:k,documentation:g?this.mapDisplayParts(y.documentation,u):_Q(y.documentation),tags:this.mapJSDocTagInfo(y.tags,u,g),canIncreaseVerbosityLevel:y.canIncreaseVerbosityLevel}}else return g?y:{...y,tags:this.mapJSDocTagInfo(y.tags,u,!1)}}getFormattingEditsForRange(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.projectService.getScriptInfoForNormalizedPath(a),_=u.lineOffsetToPosition(n.line,n.offset),f=u.lineOffsetToPosition(n.endLine,n.endOffset),y=c.getFormattingEditsForRange(a,_,f,this.getFormatOptions(a));if(y)return y.map(g=>this.convertTextChangeToCodeEdit(g,u))}getFormattingEditsForRangeFull(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=n.options?_M(n.options):this.getFormatOptions(a);return c.getFormattingEditsForRange(a,n.position,n.endPosition,u)}getFormattingEditsForDocumentFull(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=n.options?_M(n.options):this.getFormatOptions(a);return c.getFormattingEditsForDocument(a,u)}getFormattingEditsAfterKeystrokeFull(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=n.options?_M(n.options):this.getFormatOptions(a);return c.getFormattingEditsAfterKeystroke(a,n.position,n.key,u)}getFormattingEditsAfterKeystroke(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.projectService.getScriptInfoForNormalizedPath(a),_=u.lineOffsetToPosition(n.line,n.offset),f=this.getFormatOptions(a),y=c.getFormattingEditsAfterKeystroke(a,_,n.key,f);if(n.key===` +`&&(!y||y.length===0||MSr(y,_))){let{lineText:g,absolutePosition:k}=u.textStorage.getAbsolutePositionAndLineText(n.line);if(g&&g.search("\\S")<0){let T=c.getIndentationAtPosition(a,_,f),C=0,O,F;for(O=0,F=g.length;O({start:u.positionToLineOffset(g.span.start),end:u.positionToLineOffset(Xn(g.span)),newText:g.newText?g.newText:""}))}getCompletions(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=this.projectService.getScriptInfoForNormalizedPath(c),f=this.getPosition(n,_),y=u.getLanguageService().getCompletionsAtPosition(c,f,{...eje(this.getPreferences(c)),triggerCharacter:n.triggerCharacter,triggerKind:n.triggerKind,includeExternalModuleExports:n.includeExternalModuleExports,includeInsertTextCompletions:n.includeInsertTextCompletions},u.projectService.getFormatCodeOptions(c));if(y===void 0)return;if(a==="completions-full")return y;let g=n.prefix||"",k=Wn(y.entries,C=>{if(y.isMemberCompletion||Ca(C.name.toLowerCase(),g.toLowerCase())){let O=C.replacementSpan?$S(C.replacementSpan,_):void 0;return{...C,replacementSpan:O,hasAction:C.hasAction||void 0,symbol:void 0}}});return a==="completions"?(y.metadata&&(k.metadata=y.metadata),k):{...y,optionalReplacementSpan:y.optionalReplacementSpan&&$S(y.optionalReplacementSpan,_),entries:k}}getCompletionEntryDetails(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=this.projectService.getScriptInfoForNormalizedPath(c),f=this.getPosition(n,_),y=u.projectService.getFormatCodeOptions(c),g=!!this.getPreferences(c).displayPartsForJSDoc,k=Wn(n.entryNames,T=>{let{name:C,source:O,data:F}=typeof T=="string"?{name:T,source:void 0,data:void 0}:T;return u.getLanguageService().getCompletionEntryDetails(c,f,C,y,O,this.getPreferences(c),F?Ba(F,ZSr):void 0)});return a?g?k:k.map(T=>({...T,tags:this.mapJSDocTagInfo(T.tags,u,!1)})):k.map(T=>({...T,codeActions:Cr(T.codeActions,C=>this.mapCodeAction(C)),documentation:this.mapDisplayParts(T.documentation,u),tags:this.mapJSDocTagInfo(T.tags,u,g)}))}getCompileOnSaveAffectedFileList(n){let a=this.getProjects(n,!0,!0),c=this.projectService.getScriptInfo(n.file);return c?BSr(c,u=>this.projectService.getScriptInfoForPath(u),a,(u,_)=>{if(!u.compileOnSaveEnabled||!u.languageServiceEnabled||u.isOrphan())return;let f=u.getCompilationSettings();if(!(f.noEmit||sf(_.fileName)&&!LSr(f)))return{projectFileName:u.getProjectName(),fileNames:u.getCompileOnSaveAffectedFileList(_),projectUsesOutFile:!!f.outFile}}):Pd}emitFile(n){let{file:a,project:c}=this.getFileAndProject(n);if(c||t2.ThrowNoProject(),!c.languageServiceEnabled)return n.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let u=c.getScriptInfo(a),{emitSkipped:_,diagnostics:f}=c.emitFile(u,(y,g,k)=>this.host.writeFile(y,g,k));return n.richResponse?{emitSkipped:_,diagnostics:n.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(f):f.map(y=>zQ(y,!0))}:!_}getSignatureHelpItems(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=this.projectService.getScriptInfoForNormalizedPath(c),f=this.getPosition(n,_),y=u.getLanguageService().getSignatureHelpItems(c,f,n),g=!!this.getPreferences(c).displayPartsForJSDoc;if(y&&a){let k=y.applicableSpan;return{...y,applicableSpan:{start:_.positionToLineOffset(k.start),end:_.positionToLineOffset(k.start+k.length)},items:this.mapSignatureHelpItems(y.items,u,g)}}else return g||!y?y:{...y,items:y.items.map(k=>({...k,tags:this.mapJSDocTagInfo(k.tags,u,!1)}))}}toPendingErrorCheck(n){let a=nu(n),c=this.projectService.tryGetDefaultProjectForFile(a);return c&&{fileName:a,project:c}}getDiagnostics(n,a,c){this.suppressDiagnosticEvents||c.length>0&&this.updateErrorCheck(n,c,a)}change(n){let a=this.projectService.getScriptInfo(n.file);$.assert(!!a),a.textStorage.switchToScriptVersionCache();let c=a.lineOffsetToPosition(n.line,n.offset),u=a.lineOffsetToPosition(n.endLine,n.endOffset);c>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(a,Sc({span:{start:c,length:u-c},newText:n.insertString})))}reload(n){let a=nu(n.file),c=n.tmpfile===void 0?void 0:nu(n.tmpfile),u=this.projectService.getScriptInfoForNormalizedPath(a);u&&(this.changeSeq++,u.reloadFromFile(c))}saveToTmp(n,a){let c=this.projectService.getScriptInfo(n);c&&c.saveTo(a)}closeClientFile(n){if(!n)return;let a=Qs(n);this.projectService.closeClientFile(a)}mapLocationNavigationBarItems(n,a){return Cr(n,c=>({text:c.text,kind:c.kind,kindModifiers:c.kindModifiers,spans:c.spans.map(u=>$S(u,a)),childItems:this.mapLocationNavigationBarItems(c.childItems,a),indent:c.indent}))}getNavigationBarItems(n,a){let{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),_=u.getNavigationBarItems(c);return _?a?this.mapLocationNavigationBarItems(_,this.projectService.getScriptInfoForNormalizedPath(c)):_:void 0}toLocationNavigationTree(n,a){return{text:n.text,kind:n.kind,kindModifiers:n.kindModifiers,spans:n.spans.map(c=>$S(c,a)),nameSpan:n.nameSpan&&$S(n.nameSpan,a),childItems:Cr(n.childItems,c=>this.toLocationNavigationTree(c,a))}}getNavigationTree(n,a){let{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),_=u.getNavigationTree(c);return _?a?this.toLocationNavigationTree(_,this.projectService.getScriptInfoForNormalizedPath(c)):_:void 0}getNavigateToItems(n,a){let c=this.getFullNavigateToItems(n);return a?an(c,({project:u,navigateToItems:_})=>_.map(f=>{let y=u.getScriptInfo(f.fileName),g={name:f.name,kind:f.kind,kindModifiers:f.kindModifiers,isCaseSensitive:f.isCaseSensitive,matchKind:f.matchKind,file:f.fileName,start:y.positionToLineOffset(f.textSpan.start),end:y.positionToLineOffset(Xn(f.textSpan))};return f.kindModifiers&&f.kindModifiers!==""&&(g.kindModifiers=f.kindModifiers),f.containerName&&f.containerName.length>0&&(g.containerName=f.containerName),f.containerKind&&f.containerKind.length>0&&(g.containerKind=f.containerKind),g})):an(c,({navigateToItems:u})=>u)}getFullNavigateToItems(n){let{currentFileOnly:a,searchValue:c,maxResultCount:u,projectFileName:_}=n;if(a){$.assertIsDefined(n.file);let{file:O,project:F}=this.getFileAndProject(n);return[{project:F,navigateToItems:F.getLanguageService().getNavigateToItems(c,u,O)}]}let f=this.getHostPreferences(),y=[],g=new Map;if(!n.file&&!_)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(O=>k(O));else{let O=this.getProjects(n);WTt(O,void 0,F=>k(F))}return y;function k(O){let F=O.getLanguageService().getNavigateToItems(c,u,void 0,O.isNonTsProject(),f.excludeLibrarySymbolsInNavTo),M=yr(F,U=>T(U)&&!exe(bq(U),O));M.length&&y.push({project:O,navigateToItems:M})}function T(O){let F=O.name;if(!g.has(F))return g.set(F,[O]),!0;let M=g.get(F);for(let U of M)if(C(U,O))return!1;return M.push(O),!0}function C(O,F){return O===F?!0:!O||!F?!1:O.containerKind===F.containerKind&&O.containerName===F.containerName&&O.fileName===F.fileName&&O.isCaseSensitive===F.isCaseSensitive&&O.kind===F.kind&&O.kindModifiers===F.kindModifiers&&O.matchKind===F.matchKind&&O.name===F.name&&O.textSpan.start===F.textSpan.start&&O.textSpan.length===F.textSpan.length}}getSupportedCodeFixes(n){if(!n)return gSe();if(n.file){let{file:c,project:u}=this.getFileAndProject(n);return u.getLanguageService().getSupportedCodeFixes(c)}let a=this.getProject(n.projectFileName);return a||t2.ThrowNoProject(),a.getLanguageService().getSupportedCodeFixes()}isLocation(n){return n.line!==void 0}extractPositionOrRange(n,a){let c,u;return this.isLocation(n)?c=_(n):u=this.getRange(n,a),$.checkDefined(c===void 0?u:c);function _(f){return f.position!==void 0?f.position:a.lineOffsetToPosition(f.line,f.offset)}}getRange(n,a){let{startPosition:c,endPosition:u}=this.getStartAndEndPosition(n,a);return{pos:c,end:u}}getApplicableRefactors(n){let{file:a,project:c}=this.getFileAndProject(n),u=c.getScriptInfoForNormalizedPath(a);return c.getLanguageService().getApplicableRefactors(a,this.extractPositionOrRange(n,u),this.getPreferences(a),n.triggerReason,n.kind,n.includeInteractiveActions).map(f=>({...f,actions:f.actions.map(y=>({...y,range:y.range?{start:dM({line:y.range.start.line,character:y.range.start.offset}),end:dM({line:y.range.end.line,character:y.range.end.offset})}:void 0}))}))}getEditsForRefactor(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=u.getScriptInfoForNormalizedPath(c),f=u.getLanguageService().getEditsForRefactor(c,this.getFormatOptions(c),this.extractPositionOrRange(n,_),n.refactor,n.action,this.getPreferences(c),n.interactiveRefactorArguments);if(f===void 0)return{edits:[]};if(a){let{renameFilename:y,renameLocation:g,edits:k}=f,T;if(y!==void 0&&g!==void 0){let C=u.getScriptInfoForNormalizedPath(nu(y));T=Sje(BF(C.getSnapshot()),y,g,k)}return{renameLocation:T,renameFilename:y,edits:this.mapTextChangesToCodeEdits(k),notApplicableReason:f.notApplicableReason}}return f}getMoveToRefactoringFileSuggestions(n){let{file:a,project:c}=this.getFileAndProject(n),u=c.getScriptInfoForNormalizedPath(a);return c.getLanguageService().getMoveToRefactoringFileSuggestions(a,this.extractPositionOrRange(n,u),this.getPreferences(a))}preparePasteEdits(n){let{file:a,project:c}=this.getFileAndProject(n);return c.getLanguageService().preparePasteEditsForFile(a,n.copiedTextSpan.map(u=>this.getRange({file:a,startLine:u.start.line,startOffset:u.start.offset,endLine:u.end.line,endOffset:u.end.offset},this.projectService.getScriptInfoForNormalizedPath(a))))}getPasteEdits(n){let{file:a,project:c}=this.getFileAndProject(n);if(vq(a))return;let u=n.copiedFrom?{file:n.copiedFrom.file,range:n.copiedFrom.spans.map(f=>this.getRange({file:n.copiedFrom.file,startLine:f.start.line,startOffset:f.start.offset,endLine:f.end.line,endOffset:f.end.offset},c.getScriptInfoForNormalizedPath(nu(n.copiedFrom.file))))}:void 0,_=c.getLanguageService().getPasteEdits({targetFile:a,pastedText:n.pastedText,pasteLocations:n.pasteLocations.map(f=>this.getRange({file:a,startLine:f.start.line,startOffset:f.start.offset,endLine:f.end.line,endOffset:f.end.offset},c.getScriptInfoForNormalizedPath(a))),copiedFrom:u,preferences:this.getPreferences(a)},this.getFormatOptions(a));return _&&this.mapPasteEditsAction(_)}organizeImports(n,a){$.assert(n.scope.type==="file");let{file:c,project:u}=this.getFileAndProject(n.scope.args),_=u.getLanguageService().organizeImports({fileName:c,mode:n.mode??(n.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(c),this.getPreferences(c));return a?this.mapTextChangesToCodeEdits(_):_}getEditsForFileRename(n,a){let c=nu(n.oldFilePath),u=nu(n.newFilePath),_=this.getHostFormatOptions(),f=this.getHostPreferences(),y=new Set,g=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(k=>{let T=k.getLanguageService().getEditsForFileRename(c,u,_,f),C=[];for(let O of T)y.has(O.fileName)||(g.push(O),C.push(O.fileName));for(let O of C)y.add(O)}),a?g.map(k=>this.mapTextChangeToCodeEdit(k)):g}getCodeFixes(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=u.getScriptInfoForNormalizedPath(c),{startPosition:f,endPosition:y}=this.getStartAndEndPosition(n,_),g;try{g=u.getLanguageService().getCodeFixesAtPosition(c,f,y,n.errorCodes,this.getFormatOptions(c),this.getPreferences(c))}catch(k){let T=k instanceof Error?k:new Error(k),C=u.getLanguageService(),O=[...C.getSyntacticDiagnostics(c),...C.getSemanticDiagnostics(c),...C.getSuggestionDiagnostics(c)].filter(M=>dS(f,y-f,M.start,M.length)).map(M=>M.code),F=n.errorCodes.find(M=>!O.includes(M));throw F!==void 0&&(T.message+=` +Additional information: BADCLIENT: Bad error code, ${F} not found in range ${f}..${y} (found: ${O.join(", ")})`),T}return a?g.map(k=>this.mapCodeFixAction(k)):g}getCombinedCodeFix({scope:n,fixId:a},c){$.assert(n.type==="file");let{file:u,project:_}=this.getFileAndProject(n.args),f=_.getLanguageService().getCombinedCodeFix({type:"file",fileName:u},a,this.getFormatOptions(u),this.getPreferences(u));return c?{changes:this.mapTextChangesToCodeEdits(f.changes),commands:f.commands}:f}applyCodeActionCommand(n){let a=n.command;for(let c of Ll(a)){let{file:u,project:_}=this.getFileAndProject(c);_.getLanguageService().applyCodeActionCommand(c,this.getFormatOptions(u)).then(f=>{},f=>{})}return{}}getStartAndEndPosition(n,a){let c,u;return n.startPosition!==void 0?c=n.startPosition:(c=a.lineOffsetToPosition(n.startLine,n.startOffset),n.startPosition=c),n.endPosition!==void 0?u=n.endPosition:(u=a.lineOffsetToPosition(n.endLine,n.endOffset),n.endPosition=u),{startPosition:c,endPosition:u}}mapCodeAction({description:n,changes:a,commands:c}){return{description:n,changes:this.mapTextChangesToCodeEdits(a),commands:c}}mapCodeFixAction({fixName:n,description:a,changes:c,commands:u,fixId:_,fixAllDescription:f}){return{fixName:n,description:a,changes:this.mapTextChangesToCodeEdits(c),commands:u,fixId:_,fixAllDescription:f}}mapPasteEditsAction({edits:n,fixId:a}){return{edits:this.mapTextChangesToCodeEdits(n),fixId:a}}mapTextChangesToCodeEdits(n){return n.map(a=>this.mapTextChangeToCodeEdit(a))}mapTextChangeToCodeEdit(n){let a=this.projectService.getScriptInfoOrConfig(n.fileName);return!!n.isNewFile==!!a&&(a||this.projectService.logErrorForScriptInfoNotFound(n.fileName),$.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!n.isNewFile,hasScriptInfo:!!a}))),a?{fileName:n.fileName,textChanges:n.textChanges.map(c=>VSr(c,a))}:HSr(n)}convertTextChangeToCodeEdit(n,a){return{start:a.positionToLineOffset(n.span.start),end:a.positionToLineOffset(n.span.start+n.span.length),newText:n.newText?n.newText:""}}getBraceMatching(n,a){let{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),_=this.projectService.getScriptInfoForNormalizedPath(c),f=this.getPosition(n,_),y=u.getBraceMatchingAtPosition(c,f);return y?a?y.map(g=>$S(g,_)):y:void 0}getDiagnosticsForProject(n,a,c){if(this.suppressDiagnosticEvents)return;let{fileNames:u,languageServiceDisabled:_}=this.getProjectInfoWorker(c,void 0,!0,void 0,!0);if(_)return;let f=u.filter(U=>!U.includes("lib.d.ts"));if(f.length===0)return;let y=[],g=[],k=[],T=[],C=nu(c),O=this.projectService.ensureDefaultProjectForFile(C);for(let U of f)this.getCanonicalFileName(U)===this.getCanonicalFileName(c)?y.push(U):this.projectService.getScriptInfo(U).isScriptOpen()?g.push(U):sf(U)?T.push(U):k.push(U);let M=[...y,...g,...k,...T].map(U=>({fileName:U,project:O}));this.updateErrorCheck(n,M,a,!1)}configurePlugin(n){this.projectService.configurePlugin(n)}getSmartSelectionRange(n,a){let{locations:c}=n,{file:u,languageService:_}=this.getFileAndLanguageServiceForSyntacticOperation(n),f=$.checkDefined(this.projectService.getScriptInfo(u));return Cr(c,y=>{let g=this.getPosition(y,f),k=_.getSmartSelectionRange(u,g);return a?this.mapSelectionRange(k,f):k})}toggleLineComment(n,a){let{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),_=this.projectService.getScriptInfo(c),f=this.getRange(n,_),y=u.toggleLineComment(c,f);if(a){let g=this.projectService.getScriptInfoForNormalizedPath(c);return y.map(k=>this.convertTextChangeToCodeEdit(k,g))}return y}toggleMultilineComment(n,a){let{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),_=this.projectService.getScriptInfoForNormalizedPath(c),f=this.getRange(n,_),y=u.toggleMultilineComment(c,f);if(a){let g=this.projectService.getScriptInfoForNormalizedPath(c);return y.map(k=>this.convertTextChangeToCodeEdit(k,g))}return y}commentSelection(n,a){let{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),_=this.projectService.getScriptInfoForNormalizedPath(c),f=this.getRange(n,_),y=u.commentSelection(c,f);if(a){let g=this.projectService.getScriptInfoForNormalizedPath(c);return y.map(k=>this.convertTextChangeToCodeEdit(k,g))}return y}uncommentSelection(n,a){let{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),_=this.projectService.getScriptInfoForNormalizedPath(c),f=this.getRange(n,_),y=u.uncommentSelection(c,f);if(a){let g=this.projectService.getScriptInfoForNormalizedPath(c);return y.map(k=>this.convertTextChangeToCodeEdit(k,g))}return y}mapSelectionRange(n,a){let c={textSpan:$S(n.textSpan,a)};return n.parent&&(c.parent=this.mapSelectionRange(n.parent,a)),c}getScriptInfoFromProjectService(n){let a=nu(n),c=this.projectService.getScriptInfoForNormalizedPath(a);return c||(this.projectService.logErrorForScriptInfoNotFound(a),t2.ThrowNoProject())}toProtocolCallHierarchyItem(n){let a=this.getScriptInfoFromProjectService(n.file);return{name:n.name,kind:n.kind,kindModifiers:n.kindModifiers,file:n.file,containerName:n.containerName,span:$S(n.span,a),selectionSpan:$S(n.selectionSpan,a)}}toProtocolCallHierarchyIncomingCall(n){let a=this.getScriptInfoFromProjectService(n.from.file);return{from:this.toProtocolCallHierarchyItem(n.from),fromSpans:n.fromSpans.map(c=>$S(c,a))}}toProtocolCallHierarchyOutgoingCall(n,a){return{to:this.toProtocolCallHierarchyItem(n.to),fromSpans:n.fromSpans.map(c=>$S(c,a))}}prepareCallHierarchy(n){let{file:a,project:c}=this.getFileAndProject(n),u=this.projectService.getScriptInfoForNormalizedPath(a);if(u){let _=this.getPosition(n,u),f=c.getLanguageService().prepareCallHierarchy(a,_);return f&&Dve(f,y=>this.toProtocolCallHierarchyItem(y))}}provideCallHierarchyIncomingCalls(n){let{file:a,project:c}=this.getFileAndProject(n),u=this.getScriptInfoFromProjectService(a);return c.getLanguageService().provideCallHierarchyIncomingCalls(a,this.getPosition(n,u)).map(f=>this.toProtocolCallHierarchyIncomingCall(f))}provideCallHierarchyOutgoingCalls(n){let{file:a,project:c}=this.getFileAndProject(n),u=this.getScriptInfoFromProjectService(a);return c.getLanguageService().provideCallHierarchyOutgoingCalls(a,this.getPosition(n,u)).map(f=>this.toProtocolCallHierarchyOutgoingCall(f,u))}getCanonicalFileName(n){let a=this.host.useCaseSensitiveFileNames?n:lb(n);return Qs(a)}exit(){}notRequired(n){return n&&this.doOutput(void 0,n.command,n.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(n){return{response:n,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(n,a){if(this.handlers.has(n))throw new Error(`Protocol handler already exists for command "${n}"`);this.handlers.set(n,a)}setCurrentRequest(n){$.assert(this.currentRequestId===void 0),this.currentRequestId=n,this.cancellationToken.setRequest(n)}resetCurrentRequest(n){$.assert(this.currentRequestId===n),this.currentRequestId=void 0,this.cancellationToken.resetRequest(n)}executeWithRequestId(n,a,c){let u=this.performanceData;try{return this.performanceData=c,this.setCurrentRequest(n),a()}finally{this.resetCurrentRequest(n),this.performanceData=u}}executeCommand(n){let a=this.handlers.get(n.command);if(a){let c=this.executeWithRequestId(n.seq,()=>a(n),void 0);return this.projectService.enableRequestedPlugins(),c}else return this.logger.msg(`Unrecognized JSON command:${jA(n)}`,"Err"),this.doOutput(void 0,"unknown",n.seq,!1,void 0,`Unrecognized JSON command: ${n.command}`),{responseRequired:!1}}onMessage(n){var a,c,u,_,f,y,g;this.gcTimer.scheduleCollect();let k,T=this.performanceData;this.logger.hasLevel(2)&&(k=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${Vz(this.toStringMessage(n))}`));let C,O;try{C=this.parseMessage(n),O=C.arguments&&C.arguments.file?C.arguments:void 0,(a=hi)==null||a.instant(hi.Phase.Session,"request",{seq:C.seq,command:C.command}),(c=hi)==null||c.push(hi.Phase.Session,"executeCommand",{seq:C.seq,command:C.command},!0);let{response:F,responseRequired:M,performanceData:U}=this.executeCommand(C);if((u=hi)==null||u.pop(),this.logger.hasLevel(2)){let J=RSr(this.hrtime(k)).toFixed(4);M?this.logger.perftrc(`${C.seq}::${C.command}: elapsed time (in milliseconds) ${J}`):this.logger.perftrc(`${C.seq}::${C.command}: async elapsed time (in milliseconds) ${J}`)}(_=hi)==null||_.instant(hi.Phase.Session,"response",{seq:C.seq,command:C.command,success:!!F}),F?this.doOutput(F,C.command,C.seq,!0,U):M&&this.doOutput(void 0,C.command,C.seq,!1,U,"No content available.")}catch(F){if((f=hi)==null||f.popAll(),F instanceof Uk){(y=hi)==null||y.instant(hi.Phase.Session,"commandCanceled",{seq:C?.seq,command:C?.command}),this.doOutput({canceled:!0},C.command,C.seq,!0,this.performanceData);return}this.logErrorWorker(F,this.toStringMessage(n),O),(g=hi)==null||g.instant(hi.Phase.Session,"commandError",{seq:C?.seq,command:C?.command,message:F.message}),this.doOutput(void 0,C?C.command:"unknown",C?C.seq:0,!1,this.performanceData,"Error processing request. "+F.message+` +`+F.stack)}finally{this.performanceData=T}}parseMessage(n){return JSON.parse(n)}toStringMessage(n){return n}getFormatOptions(n){return this.projectService.getFormatCodeOptions(n)}getPreferences(n){return this.projectService.getPreferences(n)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function YTt(t){let n=t.diagnosticsDuration&&so(t.diagnosticsDuration,([a,c])=>({...c,file:a}));return{...t,diagnosticsDuration:n}}function $S(t,n){return{start:n.positionToLineOffset(t.start),end:n.positionToLineOffset(Xn(t))}}function vje(t,n,a){let c=$S(t,a),u=n&&$S(n,a);return u?{...c,contextStart:u.start,contextEnd:u.end}:c}function VSr(t,n){return{start:e2t(n,t.span.start),end:e2t(n,Xn(t.span)),newText:t.newText}}function e2t(t,n){return _je(t)?GSr(t.getLineAndCharacterOfPosition(n)):t.positionToLineOffset(n)}function WSr(t,n){let a=t.ranges.map(c=>({start:n.positionToLineOffset(c.start),end:n.positionToLineOffset(c.start+c.length)}));return t.wordPattern?{ranges:a,wordPattern:t.wordPattern}:{ranges:a}}function GSr(t){return{line:t.line+1,offset:t.character+1}}function HSr(t){$.assert(t.textChanges.length===1);let n=To(t.textChanges);return $.assert(n.span.start===0&&n.span.length===0),{fileName:t.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:n.newText}]}}function Sje(t,n,a,c){let u=KSr(t,n,c),{line:_,character:f}=aE(oE(u),a);return{line:_+1,offset:f+1}}function KSr(t,n,a){for(let{fileName:c,textChanges:u}of a)if(c===n)for(let _=u.length-1;_>=0;_--){let{newText:f,span:{start:y,length:g}}=u[_];t=t.slice(0,y)+f+t.slice(y+g)}return t}function t2t(t,{fileName:n,textSpan:a,contextSpan:c,isWriteAccess:u,isDefinition:_},{disableLineTextInReferences:f}){let y=$.checkDefined(t.getScriptInfo(n)),g=vje(a,c,y),k=f?void 0:QSr(y,g);return{file:n,...g,lineText:k,isWriteAccess:u,isDefinition:_}}function QSr(t,n){let a=t.lineToTextSpan(n.start.line-1);return t.getSnapshot().getText(a.start,Xn(a)).replace(/\r|\n/g,"")}function ZSr(t){return t===void 0||t&&typeof t=="object"&&typeof t.exportName=="string"&&(t.fileName===void 0||typeof t.fileName=="string")&&(t.ambientModuleName===void 0||typeof t.ambientModuleName=="string"&&(t.isPackageJsonImport===void 0||typeof t.isPackageJsonImport=="boolean"))}var fM=4,bje=(t=>(t[t.PreStart=0]="PreStart",t[t.Start=1]="Start",t[t.Entire=2]="Entire",t[t.Mid=3]="Mid",t[t.End=4]="End",t[t.PostEnd=5]="PostEnd",t))(bje||{}),XSr=class{constructor(){this.goSubtree=!0,this.lineIndex=new qQ,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new mM,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(t,n){n&&(this.trailingText=""),t?t=this.initialText+t+this.trailingText:t=this.initialText+this.trailingText;let c=qQ.linesFromText(t).lines;c.length>1&&c[c.length-1]===""&&c.pop();let u,_;for(let y=this.endBranch.length-1;y>=0;y--)this.endBranch[y].updateCounts(),this.endBranch[y].charCount()===0&&(_=this.endBranch[y],y>0?u=this.endBranch[y-1]:u=this.branchNode);_&&u.remove(_);let f=this.startPath[this.startPath.length-1];if(c.length>0)if(f.text=c[0],c.length>1){let y=new Array(c.length-1),g=f;for(let C=1;C=0;){let C=this.startPath[k];y=C.insertAt(g,y),k--,g=C}let T=y.length;for(;T>0;){let C=new mM;C.add(this.lineIndex.root),y=C.insertAt(this.lineIndex.root,y),T=y.length,this.lineIndex.root=C}this.lineIndex.root.updateCounts()}else for(let y=this.startPath.length-2;y>=0;y--)this.startPath[y].updateCounts();else{this.startPath[this.startPath.length-2].remove(f);for(let g=this.startPath.length-2;g>=0;g--)this.startPath[g].updateCounts()}return this.lineIndex}post(t,n,a){a===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(t,n,a,c,u){let _=this.stack[this.stack.length-1];this.state===2&&u===1&&(this.state=1,this.branchNode=_,this.lineCollectionAtBranch=a);let f;function y(g){return g.isLeaf()?new ose(""):new mM}switch(u){case 0:this.goSubtree=!1,this.state!==4&&_.add(a);break;case 1:this.state===4?this.goSubtree=!1:(f=y(a),_.add(f),this.startPath.push(f));break;case 2:this.state!==4?(f=y(a),_.add(f),this.startPath.push(f)):a.isLeaf()||(f=y(a),_.add(f),this.endBranch.push(f));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:a.isLeaf()||(f=y(a),_.add(f),this.endBranch.push(f));break;case 5:this.goSubtree=!1,this.state!==1&&_.add(a);break}this.goSubtree&&this.stack.push(f)}leaf(t,n,a){this.state===1?this.initialText=a.text.substring(0,t):this.state===2?(this.initialText=a.text.substring(0,t),this.trailingText=a.text.substring(t+n)):this.trailingText=a.text.substring(t+n)}},YSr=class{constructor(t,n,a){this.pos=t,this.deleteLen=n,this.insertedText=a}getTextChangeRange(){return X0(Jp(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},txe=class q8{constructor(){this.changes=[],this.versions=new Array(q8.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(n){if(!(nthis.currentVersion))return n%q8.maxVersions}currentVersionToIndex(){return this.currentVersion%q8.maxVersions}edit(n,a,c){this.changes.push(new YSr(n,a,c)),(this.changes.length>q8.changeNumberThreshold||a>q8.changeLengthThreshold||c&&c.length>q8.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let n=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let a=n.index;for(let c of this.changes)a=a.edit(c.pos,c.deleteLen,c.insertedText);n=new r2t(this.currentVersion+1,this,a,this.changes),this.currentVersion=n.version,this.versions[this.currentVersionToIndex()]=n,this.changes=[],this.currentVersion-this.minVersion>=q8.maxVersions&&(this.minVersion=this.currentVersion-q8.maxVersions+1)}return n}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(n){return this._getSnapshot().index.lineNumberToInfo(n)}lineOffsetToPosition(n,a){return this._getSnapshot().index.absolutePositionOfStartOfLine(n)+(a-1)}positionToLineOffset(n){return this._getSnapshot().index.positionToLineOffset(n)}lineToTextSpan(n){let a=this._getSnapshot().index,{lineText:c,absolutePosition:u}=a.lineNumberToInfo(n+1),_=c!==void 0?c.length:a.absolutePositionOfStartOfLine(n+2)-u;return Jp(u,_)}getTextChangesBetweenVersions(n,a){if(n=this.minVersion){let c=[];for(let u=n+1;u<=a;u++){let _=this.versions[this.versionToIndex(u)];for(let f of _.changesSincePreviousVersion)c.push(f.getTextChangeRange())}return w(c)}else return;else return _i}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(n){let a=new q8,c=new r2t(0,a,new qQ);a.versions[a.currentVersion]=c;let u=qQ.linesFromText(n);return c.index.load(u.lines),a}};txe.changeNumberThreshold=8,txe.changeLengthThreshold=256,txe.maxVersions=8;var rxe=txe,r2t=class atr{constructor(n,a,c,u=Pd){this.version=n,this.cache=a,this.index=c,this.changesSincePreviousVersion=u}getText(n,a){return this.index.getText(n,a-n)}getLength(){return this.index.getLength()}getChangeRange(n){if(n instanceof atr&&this.cache===n.cache)return this.version<=n.version?_i:this.cache.getTextChangesBetweenVersions(n.version,this.version)}},qQ=class gct{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(n){return this.lineNumberToInfo(n).absolutePosition}positionToLineOffset(n){let{oneBasedLine:a,zeroBasedColumn:c}=this.root.charOffsetToLineInfo(1,n);return{line:a,offset:c+1}}positionToColumnAndLineText(n){return this.root.charOffsetToLineInfo(1,n)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(n){let a=this.getLineCount();if(n<=a){let{position:c,leaf:u}=this.root.lineNumberToInfo(n,0);return{absolutePosition:c,lineText:u&&u.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(n){if(n.length>0){let a=[];for(let c=0;c0&&n{c=c.concat(f.text.substring(u,u+_))}}),c}getLength(){return this.root.charCount()}every(n,a,c){c||(c=this.root.charCount());let u={goSubtree:!0,done:!1,leaf(_,f,y){n(y,_,f)||(this.done=!0)}};return this.walk(a,c-a,u),!u.done}edit(n,a,c){if(this.root.charCount()===0)return $.assert(a===0),c!==void 0?(this.load(gct.linesFromText(c).lines),this):void 0;{let u;if(this.checkEdits){let y=this.getText(0,this.root.charCount());u=y.slice(0,n)+c+y.slice(n+a)}let _=new XSr,f=!1;if(n>=this.root.charCount()){n=this.root.charCount()-1;let y=this.getText(n,1);c?c=y+c:c=y,a=0,f=!0}else if(a>0){let y=n+a,{zeroBasedColumn:g,lineText:k}=this.positionToColumnAndLineText(y);g===0&&(a+=k.length,c=c?c+k:k)}if(this.root.walk(n,a,_),_.insertLines(c,f),this.checkEdits){let y=_.lineIndex.getText(0,_.lineIndex.getLength());$.assert(u===y,"buffer edit mismatch")}return _.lineIndex}}static buildTreeFromBottom(n){if(n.length0?c[u]=_:c.pop(),{lines:c,lineMap:a}}},mM=class yct{constructor(n=[]){this.children=n,this.totalChars=0,this.totalLines=0,n.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let n of this.children)this.totalChars+=n.charCount(),this.totalLines+=n.lineCount()}execWalk(n,a,c,u,_){return c.pre&&c.pre(n,a,this.children[u],this,_),c.goSubtree?(this.children[u].walk(n,a,c),c.post&&c.post(n,a,this.children[u],this,_)):c.goSubtree=!0,c.done}skipChild(n,a,c,u,_){u.pre&&!u.done&&(u.pre(n,a,this.children[c],this,_),u.goSubtree=!0)}walk(n,a,c){if(this.children.length===0)return;let u=0,_=this.children[u].charCount(),f=n;for(;f>=_;)this.skipChild(f,a,u,c,0),f-=_,u++,_=this.children[u].charCount();if(f+a<=_){if(this.execWalk(f,a,c,u,2))return}else{if(this.execWalk(f,_-f,c,u,1))return;let y=a-(_-f);for(u++,_=this.children[u].charCount();y>_;){if(this.execWalk(0,_,c,u,3))return;y-=_,u++,_=this.children[u].charCount()}if(y>0&&this.execWalk(0,y,c,u,4))return}if(c.pre){let y=this.children.length;if(ua)return _.isLeaf()?{oneBasedLine:n,zeroBasedColumn:a,lineText:_.text}:_.charOffsetToLineInfo(n,a);a-=_.charCount(),n+=_.lineCount()}let c=this.lineCount();if(c===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let u=$.checkDefined(this.lineNumberToInfo(c,0).leaf);return{oneBasedLine:c,zeroBasedColumn:u.charCount(),lineText:void 0}}lineNumberToInfo(n,a){for(let c of this.children){let u=c.lineCount();if(u>=n)return c.isLeaf()?{position:a,leaf:c}:c.lineNumberToInfo(n,a);n-=u,a+=c.charCount()}return{position:a,leaf:void 0}}splitAfter(n){let a,c=this.children.length;n++;let u=n;if(n=0;O--)g[O].children.length===0&&g.pop()}f&&g.push(f),this.updateCounts();for(let T=0;T{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:u,reject:_})});return this.installer.send(a),c}attach(n){this.projectService=n,this.installer=this.createInstallerProcess()}onProjectClosed(n){this.installer.send({projectName:n.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(n,a,c){let u=AMe(n,a,c);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${jA(u)}`),this.activeRequestCount0?this.activeRequestCount--:$.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let u=this.requestQueue.dequeue();if(this.requestMap.get(u.projectName)===u){this.requestMap.delete(u.projectName),this.scheduleRequest(u);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${u.projectName}`)}this.projectService.updateTypingsForProject(n),this.event(n,"setTypings");break}case jK:this.projectService.watchTypingLocations(n);break;default:}}scheduleRequest(n){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${n.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${jA(n)}`),this.installer.send(n)},str.requestDelayMillis,`${n.projectName}::${n.kind}`)}};n2t.requestDelayMillis=100;var i2t=n2t,o2t={};d(o2t,{ActionInvalidate:()=>Toe,ActionPackageInstalled:()=>Eoe,ActionSet:()=>xoe,ActionWatchTypingLocations:()=>jK,Arguments:()=>w1e,AutoImportProviderProject:()=>KMe,AuxiliaryProject:()=>GMe,CharRangeSection:()=>bje,CloseFileWatcherEvent:()=>Jbe,CommandNames:()=>JTt,ConfigFileDiagEvent:()=>Bbe,ConfiguredProject:()=>QMe,ConfiguredProjectLoadKind:()=>rje,CreateDirectoryWatcherEvent:()=>qbe,CreateFileWatcherEvent:()=>zbe,Errors:()=>t2,EventBeginInstallTypes:()=>D1e,EventEndInstallTypes:()=>A1e,EventInitializationFailed:()=>FFe,EventTypesRegistry:()=>C1e,ExternalProject:()=>Obe,GcTimer:()=>RMe,InferredProject:()=>WMe,LargeFileReferencedEvent:()=>jbe,LineIndex:()=>qQ,LineLeaf:()=>ose,LineNode:()=>mM,LogLevel:()=>CMe,Msg:()=>DMe,OpenFileInfoTelemetryEvent:()=>ZMe,Project:()=>YF,ProjectInfoTelemetryEvent:()=>Ube,ProjectKind:()=>Sq,ProjectLanguageServiceStateEvent:()=>$be,ProjectLoadingFinishEvent:()=>Mbe,ProjectLoadingStartEvent:()=>Lbe,ProjectService:()=>pje,ProjectsUpdatedInBackgroundEvent:()=>rse,ScriptInfo:()=>BMe,ScriptVersionCache:()=>rxe,Session:()=>XTt,TextStorage:()=>jMe,ThrottledOperations:()=>FMe,TypingsInstallerAdapter:()=>i2t,allFilesAreJsOrDts:()=>qMe,allRootFilesAreJsOrDts:()=>zMe,asNormalizedPath:()=>hTt,convertCompilerOptions:()=>nse,convertFormatOptions:()=>_M,convertScriptKindName:()=>Wbe,convertTypeAcquisition:()=>YMe,convertUserPreferences:()=>eje,convertWatchOptions:()=>UQ,countEachFileTypes:()=>MQ,createInstallTypingsRequest:()=>AMe,createModuleSpecifierCache:()=>fje,createNormalizedPathMap:()=>gTt,createPackageJsonCache:()=>mje,createSortedArray:()=>OMe,emptyArray:()=>Pd,findArgument:()=>gft,formatDiagnosticToProtocol:()=>zQ,formatMessage:()=>hje,getBaseConfigFileName:()=>Nbe,getDetailWatchInfo:()=>Qbe,getLocationInNewDocument:()=>Sje,hasArgument:()=>hft,hasNoTypeScriptSource:()=>JMe,indent:()=>Vz,isBackgroundProject:()=>BQ,isConfigFile:()=>_je,isConfiguredProject:()=>IE,isDynamicFileName:()=>vq,isExternalProject:()=>jQ,isInferredProject:()=>pM,isInferredProjectName:()=>wMe,isProjectDeferredClose:()=>$Q,makeAutoImportProviderProjectName:()=>PMe,makeAuxiliaryProjectName:()=>NMe,makeInferredProjectName:()=>IMe,maxFileSize:()=>Rbe,maxProgramSizeForNonTsFiles:()=>Fbe,normalizedPathToPath:()=>uM,nowString:()=>yft,nullCancellationToken:()=>UTt,nullTypingsInstaller:()=>ise,protocol:()=>LMe,scriptInfoIsContainedByBackgroundProject:()=>$Me,scriptInfoIsContainedByDeferredClosedProject:()=>UMe,stringifyIndented:()=>jA,toEvent:()=>gje,toNormalizedPath:()=>nu,tryConvertScriptKindName:()=>Vbe,typingsInstaller:()=>kMe,updateProjectIfDirty:()=>_1}),typeof console<"u"&&($.loggingHost={log(t,n){switch(t){case 1:return console.error(n);case 2:return console.warn(n);case 3:return console.log(n);case 4:return console.log(n)}}})})({get exports(){return etr},set exports(e){etr=e,typeof vPe<"u"&&vPe.exports&&(vPe.exports=e)}})});import*as l_ from"effect/Schema";var W6r=l_.Struct({inputTypePreview:l_.optional(l_.String),outputTypePreview:l_.optional(l_.String),inputSchema:l_.optional(l_.Unknown),outputSchema:l_.optional(l_.Unknown),exampleInput:l_.optional(l_.Unknown),exampleOutput:l_.optional(l_.Unknown)}),V7={"~standard":{version:1,vendor:"@executor/codemode-core",validate:e=>({value:e})}},u2e=l_.Struct({path:l_.String,sourceKey:l_.String,description:l_.optional(l_.String),interaction:l_.optional(l_.Union(l_.Literal("auto"),l_.Literal("required"))),elicitation:l_.optional(l_.Unknown),contract:l_.optional(W6r),providerKind:l_.optional(l_.String),providerData:l_.optional(l_.Unknown)}),Zwt=l_.Struct({namespace:l_.String,displayName:l_.optional(l_.String),toolCount:l_.optional(l_.Number)});var U6t=fJ($6t(),1);var y7r=new U6t.default({allErrors:!0,strict:!1,validateSchema:!1,allowUnionTypes:!0}),v7r=e=>{let r=e.replaceAll("~1","/").replaceAll("~0","~");return/^\d+$/.test(r)?Number(r):r},S7r=e=>{if(!(!e||e.length===0||e==="/"))return e.split("/").slice(1).filter(r=>r.length>0).map(v7r)},b7r=e=>{let r=e.keyword.trim(),i=(e.message??"Invalid value").trim();return r.length>0?`${r}: ${i}`:i},_le=(e,r)=>{try{let i=y7r.compile(e);return{"~standard":{version:1,vendor:r?.vendor??"json-schema",validate:s=>{if(i(s))return{value:s};let d=(i.errors??[]).map(h=>({message:b7r(h),path:S7r(h.instancePath)}));return{issues:d.length>0?d:[{message:"Invalid value"}]}}}}}catch{return r?.fallback??V7}};var uX=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},x7r=e=>Array.isArray(e)?e.filter(r=>typeof r=="string"):[],dle=(e,r)=>e.length<=r?e:`${e.slice(0,Math.max(0,r-4))} ...`,T7r=/^[A-Za-z_$][A-Za-z0-9_$]*$/,E7r=e=>T7r.test(e)?e:JSON.stringify(e),hJe=(e,r,i)=>{let s=Array.isArray(r[e])?r[e].map(uX):[];if(s.length===0)return null;let l=s.map(d=>i(d)).filter(d=>d.length>0);return l.length===0?null:l.join(e==="allOf"?" & ":" | ")},q6t=e=>e.startsWith("#/")?e.slice(2).split("/").map(r=>r.replace(/~1/g,"/").replace(/~0/g,"~")):null,k7r=(e,r)=>{let i=q6t(r);if(!i||i.length===0)return null;let s=e;for(let d of i){let h=uX(s);if(!(d in h))return null;s=h[d]}let l=uX(s);return Object.keys(l).length>0?l:null},z6t=e=>q6t(e)?.at(-1)??e,C7r=(e,r={})=>{let i=uX(e),s=r.maxLength??220,l=Number.isFinite(s),d=r.maxDepth??(l?4:Number.POSITIVE_INFINITY),h=r.maxProperties??(l?6:Number.POSITIVE_INFINITY),S=(b,A,L)=>{let V=uX(b);if(L<=0){if(typeof V.title=="string"&&V.title.length>0)return V.title;if(V.type==="array")return"unknown[]";if(V.type==="object"||V.properties)return V.additionalProperties?"Record":"object"}if(typeof V.$ref=="string"){let te=V.$ref.trim();if(te.length===0)return"unknown";if(A.has(te))return z6t(te);let X=k7r(i,te);return X?S(X,new Set([...A,te]),L-1):z6t(te)}if("const"in V)return JSON.stringify(V.const);let j=Array.isArray(V.enum)?V.enum:[];if(j.length>0)return dle(j.map(te=>JSON.stringify(te)).join(" | "),s);let ie=hJe("oneOf",V,te=>S(te,A,L-1))??hJe("anyOf",V,te=>S(te,A,L-1))??hJe("allOf",V,te=>S(te,A,L-1));if(ie)return dle(ie,s);if(V.type==="array"){let te=V.items?S(V.items,A,L-1):"unknown";return dle(`${te}[]`,s)}if(V.type==="object"||V.properties){let te=uX(V.properties),X=Object.keys(te);if(X.length===0)return V.additionalProperties?"Record":"object";let Re=new Set(x7r(V.required)),Je=X.slice(0,h),pt=Je.map($e=>`${E7r($e)}${Re.has($e)?"":"?"}: ${S(te[$e],A,L-1)}`);return Je.lengthC7r(e,{maxLength:r});var S6=(e,r,i=220)=>{if(e===void 0)return r;try{return D7r(e,i)}catch{return r}};import*as bJe from"effect/Data";import*as U0 from"effect/Effect";import*as W6t from"effect/JSONSchema";import*as J6t from"effect/Data";var gJe=class extends J6t.TaggedError("KernelCoreEffectError"){},fle=(e,r)=>new gJe({module:e,message:r});var A7r=e=>e,xJe=e=>e instanceof Error?e:new Error(String(e)),w7r=e=>{if(!e||typeof e!="object"&&typeof e!="function")return null;let r=e["~standard"];if(!r||typeof r!="object")return null;let i=r.validate;return typeof i=="function"?i:null},I7r=e=>!e||e.length===0?"$":e.map(r=>typeof r=="object"&&r!==null&&"key"in r?String(r.key):String(r)).join("."),P7r=e=>e.map(r=>`${I7r(r.path)}: ${r.message}`).join("; "),G6t=e=>{let r=w7r(e.schema);return r?U0.tryPromise({try:()=>Promise.resolve(r(e.value)),catch:xJe}).pipe(U0.flatMap(i=>"issues"in i&&i.issues?U0.fail(fle("tool-map",`Input validation failed for ${e.path}: ${P7r(i.issues)}`)):U0.succeed(i.value))):U0.fail(fle("tool-map",`Tool ${e.path} has no Standard Schema validator on inputSchema`))},N7r=e=>({mode:"form",message:`Approval required before invoking ${e}`,requestedSchema:{type:"object",properties:{},additionalProperties:!1}}),O7r={kind:"execute"},F7r=e=>e.metadata?.elicitation?{kind:"elicit",elicitation:e.metadata.elicitation}:e.metadata?.interaction==="required"?{kind:"elicit",elicitation:N7r(e.path)}:null,R7r=e=>F7r(e)??O7r,SJe=class extends bJe.TaggedError("ToolInteractionPendingError"){},J2e=class extends bJe.TaggedError("ToolInteractionDeniedError"){};var L7r=e=>{let r=R7r({metadata:e.metadata,path:e.path});if(!e.onToolInteraction)return U0.succeed(r);let i={path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.metadata,context:e.context,defaultElicitation:r.kind==="elicit"?r.elicitation:null};return e.onToolInteraction(i)},M7r=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),j7r=e=>{if(!e.response.content)return U0.succeed(e.args);if(!M7r(e.args))return U0.fail(fle("tool-map",`Tool ${e.path} cannot merge elicitation content into non-object arguments`));let r={...e.args,...e.response.content};return G6t({schema:e.inputSchema,value:r,path:e.path})},B7r=e=>{let r=e.response.content&&typeof e.response.content.reason=="string"&&e.response.content.reason.trim().length>0?e.response.content.reason.trim():null;return r||(e.response.action==="cancel"?`Interaction cancelled for ${e.path}`:`Interaction declined for ${e.path}`)},$7r=e=>{if(e.decision.kind==="execute")return U0.succeed(e.args);if(e.decision.kind==="decline")return U0.fail(new J2e({path:e.path,reason:e.decision.reason}));if(!e.onElicitation)return U0.fail(new SJe({path:e.path,elicitation:e.decision.elicitation,interactionId:e.interactionId}));let r={interactionId:e.interactionId,path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.metadata,context:e.context,elicitation:e.decision.elicitation};return e.onElicitation(r).pipe(U0.mapError(xJe),U0.flatMap(i=>i.action!=="accept"?U0.fail(new J2e({path:e.path,reason:B7r({path:e.path,response:i})})):j7r({path:e.path,args:e.args,response:i,inputSchema:e.inputSchema})))};function U7r(e){return{tool:e.tool,metadata:e.metadata}}var Bw=U7r;var z7r=e=>typeof e=="object"&&e!==null&&"tool"in e,yJe=e=>{if(e!=null)try{return(typeof e=="object"||typeof e=="function")&&e!==null&&"~standard"in e?W6t.make(e):e}catch{return}},V6t=(e,r,i=240)=>S6(e,r,i);var H6t=e=>{let r=e.sourceKey??"in_memory.tools";return Object.entries(e.tools).sort(([i],[s])=>i.localeCompare(s)).map(([i,s])=>{let l=z7r(s)?s:{tool:s},d=l.metadata?{sourceKey:r,...l.metadata}:{sourceKey:r};return{path:A7r(i),tool:l.tool,metadata:d}})};function K6t(e){return H6t({tools:e.tools,sourceKey:e.sourceKey}).map(i=>{let s=i.metadata,l=i.tool,d=s?.contract?.inputSchema??yJe(l.inputSchema)??yJe(l.parameters),h=s?.contract?.outputSchema??yJe(l.outputSchema),S={inputTypePreview:s?.contract?.inputTypePreview??V6t(d,"unknown"),outputTypePreview:s?.contract?.outputTypePreview??V6t(h,"unknown"),...d!==void 0?{inputSchema:d}:{},...h!==void 0?{outputSchema:h}:{},...s?.contract?.exampleInput!==void 0?{exampleInput:s.contract.exampleInput}:{},...s?.contract?.exampleOutput!==void 0?{exampleOutput:s.contract.exampleOutput}:{}};return{path:i.path,sourceKey:s?.sourceKey??"in_memory.tools",description:l.description,interaction:s?.interaction,elicitation:s?.elicitation,contract:S,...s?.providerKind?{providerKind:s.providerKind}:{},...s?.providerData!==void 0?{providerData:s.providerData}:{}}})}var vJe=e=>e.replace(/[^a-zA-Z0-9._-]/g,"_"),q7r=()=>{let e=0;return r=>{e+=1;let i=typeof r.context?.runId=="string"&&r.context.runId.length>0?r.context.runId:"run",s=typeof r.context?.callId=="string"&&r.context.callId.length>0?r.context.callId:`call_${String(e)}`;return`${vJe(i)}:${vJe(s)}:${vJe(String(r.path))}:${String(e)}`}},Q7=e=>{let r=H6t({tools:e.tools,sourceKey:e.sourceKey}),i=new Map(r.map(l=>[l.path,l])),s=q7r();return{invoke:({path:l,args:d,context:h})=>U0.gen(function*(){let S=i.get(l);if(!S)return yield*fle("tool-map",`Unknown tool path: ${l}`);let b=yield*G6t({schema:S.tool.inputSchema,value:d,path:l}),A=yield*L7r({path:S.path,args:b,metadata:S.metadata,sourceKey:S.metadata?.sourceKey??"in_memory.tools",context:h,onToolInteraction:e.onToolInteraction}),L=A.kind==="elicit"&&A.interactionId?A.interactionId:s({path:S.path,context:h}),V=yield*$7r({path:S.path,args:b,inputSchema:S.tool.inputSchema,metadata:S.metadata,sourceKey:S.metadata?.sourceKey??"in_memory.tools",context:h,decision:A,interactionId:L,onElicitation:e.onElicitation});return yield*U0.tryPromise({try:()=>Promise.resolve(S.tool.execute(V,{path:S.path,sourceKey:S.metadata?.sourceKey??"in_memory.tools",metadata:S.metadata,invocation:h,onElicitation:e.onElicitation})),catch:xJe})})}};import*as Wv from"effect/Effect";var Q6t=e=>e.toLowerCase().split(/\W+/).map(r=>r.trim()).filter(Boolean),J7r=e=>[e.path,e.sourceKey,e.description??"",e.contract?.inputTypePreview??"",e.contract?.outputTypePreview??""].join(" ").toLowerCase(),V2e=(e,r)=>{let i=e.contract;if(i)return r?i:{...i.inputTypePreview!==void 0?{inputTypePreview:i.inputTypePreview}:{},...i.outputTypePreview!==void 0?{outputTypePreview:i.outputTypePreview}:{},...i.exampleInput!==void 0?{exampleInput:i.exampleInput}:{},...i.exampleOutput!==void 0?{exampleOutput:i.exampleOutput}:{}}},Z6t=e=>{let{descriptor:r,includeSchemas:i}=e;return i?r:{...r,...V2e(r,!1)?{contract:V2e(r,!1)}:{}}};var V7r=e=>{let[r,i]=e.split(".");return i?`${r}.${i}`:r},TJe=e=>e.namespace??V7r(e.descriptor.path),X6t=e=>e.searchText?.trim().toLowerCase()||J7r(e.descriptor),W7r=(e,r)=>{if(r.score)return r.score(e);let i=X6t(r);return e.reduce((s,l)=>s+(i.includes(l)?1:0),0)},G7r=e=>{let r=new Map;for(let i of e)for(let s of i){let l=r.get(s.namespace);r.set(s.namespace,{namespace:s.namespace,displayName:l?.displayName??s.displayName,...l?.toolCount!==void 0||s.toolCount!==void 0?{toolCount:(l?.toolCount??0)+(s.toolCount??0)}:{}})}return[...r.values()].sort((i,s)=>i.namespace.localeCompare(s.namespace))},H7r=e=>{let r=new Map;for(let i of e)for(let s of i)r.has(s.path)||r.set(s.path,s);return[...r.values()].sort((i,s)=>i.path.localeCompare(s.path))},K7r=e=>{let r=new Map;for(let i of e)for(let s of i)r.has(s.path)||r.set(s.path,s);return[...r.values()].sort((i,s)=>s.score-i.score||i.path.localeCompare(s.path))};function Z7(e){return EJe({entries:K6t({tools:e.tools}).map(r=>({descriptor:r,...e.defaultNamespace!==void 0?{namespace:e.defaultNamespace}:{}}))})}function EJe(e){let r=[...e.entries],i=new Map(r.map(l=>[l.descriptor.path,l])),s=new Map;for(let l of r){let d=TJe(l);s.set(d,(s.get(d)??0)+1)}return{listNamespaces:({limit:l})=>Wv.succeed([...s.entries()].map(([d,h])=>({namespace:d,toolCount:h})).slice(0,l)),listTools:({namespace:l,query:d,limit:h,includeSchemas:S=!1})=>Wv.succeed(r.filter(b=>!l||TJe(b)===l).filter(b=>{if(!d)return!0;let A=X6t(b);return Q6t(d).every(L=>A.includes(L))}).slice(0,h).map(b=>Z6t({descriptor:b.descriptor,includeSchemas:S}))),getToolByPath:({path:l,includeSchemas:d})=>Wv.succeed(i.get(l)?Z6t({descriptor:i.get(l).descriptor,includeSchemas:d}):null),searchTools:({query:l,namespace:d,limit:h})=>{let S=Q6t(l);return Wv.succeed(r.filter(b=>!d||TJe(b)===d).map(b=>({path:b.descriptor.path,score:W7r(S,b)})).filter(b=>b.score>0).sort((b,A)=>A.score-b.score).slice(0,h))}}}function Y6t(e){let r=[...e.catalogs];return{listNamespaces:({limit:i})=>Wv.gen(function*(){let s=yield*Wv.forEach(r,l=>l.listNamespaces({limit:Math.max(i,i*r.length)}),{concurrency:"unbounded"});return G7r(s).slice(0,i)}),listTools:({namespace:i,query:s,limit:l,includeSchemas:d=!1})=>Wv.gen(function*(){let h=yield*Wv.forEach(r,S=>S.listTools({...i!==void 0?{namespace:i}:{},...s!==void 0?{query:s}:{},limit:Math.max(l,l*r.length),includeSchemas:d}),{concurrency:"unbounded"});return H7r(h).slice(0,l)}),getToolByPath:({path:i,includeSchemas:s})=>Wv.gen(function*(){for(let l of r){let d=yield*l.getToolByPath({path:i,includeSchemas:s});if(d)return d}return null}),searchTools:({query:i,namespace:s,limit:l})=>Wv.gen(function*(){let d=yield*Wv.forEach(r,h=>h.searchTools({query:i,...s!==void 0?{namespace:s}:{},limit:Math.max(l,l*r.length)}),{concurrency:"unbounded"});return K7r(d).slice(0,l)})}}function e4t(e){let{catalog:r}=e;return{catalog:{namespaces:({limit:d=200})=>r.listNamespaces({limit:d}).pipe(Wv.map(h=>({namespaces:h}))),tools:({namespace:d,query:h,limit:S=200,includeSchemas:b=!1})=>r.listTools({...d!==void 0?{namespace:d}:{},...h!==void 0?{query:h}:{},limit:S,includeSchemas:b}).pipe(Wv.map(A=>({results:A})))},describe:{tool:({path:d,includeSchemas:h=!1})=>r.getToolByPath({path:d,includeSchemas:h})},discover:({query:d,sourceKey:h,limit:S=12,includeSchemas:b=!1})=>Wv.gen(function*(){let A=yield*r.searchTools({query:d,limit:S});if(A.length===0)return{bestPath:null,results:[],total:0};let L=yield*Wv.forEach(A,j=>r.getToolByPath({path:j.path,includeSchemas:b}),{concurrency:"unbounded"}),V=A.map((j,ie)=>{let te=L[ie];return te?{path:te.path,score:j.score,description:te.description,interaction:te.interaction??"auto",...V2e(te,b)?{contract:V2e(te,b)}:{}}:null}).filter(Boolean);return{bestPath:V[0]?.path??null,results:V,total:V.length}})}}import*as mle from"effect/Effect";import*as Eu from"effect/Schema";var Q7r=e=>e,Z7r=Eu.standardSchemaV1(Eu.Struct({limit:Eu.optional(Eu.Number)})),X7r=Eu.standardSchemaV1(Eu.Struct({namespaces:Eu.Array(Zwt)})),Y7r=Eu.standardSchemaV1(Eu.Struct({namespace:Eu.optional(Eu.String),query:Eu.optional(Eu.String),limit:Eu.optional(Eu.Number),includeSchemas:Eu.optional(Eu.Boolean)})),e5r=Eu.standardSchemaV1(Eu.Struct({results:Eu.Array(u2e)})),t5r=Eu.standardSchemaV1(Eu.Struct({path:Eu.String,includeSchemas:Eu.optional(Eu.Boolean)})),r5r=Eu.standardSchemaV1(Eu.NullOr(u2e)),n5r=Eu.standardSchemaV1(Eu.Struct({query:Eu.String,limit:Eu.optional(Eu.Number),includeSchemas:Eu.optional(Eu.Boolean)})),i5r=Eu.extend(u2e,Eu.Struct({score:Eu.Number})),o5r=Eu.standardSchemaV1(Eu.Struct({bestPath:Eu.NullOr(Eu.String),results:Eu.Array(i5r),total:Eu.Number})),t4t=e=>{let r=e.sourceKey??"system",i=()=>{if(e.catalog)return e.catalog;if(e.getCatalog)return e.getCatalog();throw new Error("createSystemToolMap requires a catalog or getCatalog")},s=()=>e4t({catalog:i()}),l={};return l["catalog.namespaces"]=Bw({tool:{description:"List available namespaces with display names and tool counts",inputSchema:Z7r,outputSchema:X7r,execute:({limit:d})=>mle.runPromise(s().catalog.namespaces(d!==void 0?{limit:d}:{}))},metadata:{sourceKey:r,interaction:"auto"}}),l["catalog.tools"]=Bw({tool:{description:"List tools with optional namespace and query filters",inputSchema:Y7r,outputSchema:e5r,execute:d=>mle.runPromise(s().catalog.tools({...d.namespace!==void 0?{namespace:d.namespace}:{},...d.query!==void 0?{query:d.query}:{},...d.limit!==void 0?{limit:d.limit}:{},...d.includeSchemas!==void 0?{includeSchemas:d.includeSchemas}:{}}))},metadata:{sourceKey:r,interaction:"auto"}}),l["describe.tool"]=Bw({tool:{description:"Get metadata and optional schemas for a tool path",inputSchema:t5r,outputSchema:r5r,execute:({path:d,includeSchemas:h})=>mle.runPromise(s().describe.tool({path:Q7r(d),...h!==void 0?{includeSchemas:h}:{}}))},metadata:{sourceKey:r,interaction:"auto"}}),l.discover=Bw({tool:{description:"Search tools by intent and return ranked matches",inputSchema:n5r,outputSchema:o5r,execute:d=>mle.runPromise(s().discover({query:d.query,...d.limit!==void 0?{limit:d.limit}:{},...d.includeSchemas!==void 0?{includeSchemas:d.includeSchemas}:{}}))},metadata:{sourceKey:r,interaction:"auto"}}),l},r4t=(e,r={})=>{let i=r.conflictMode??"throw",s={};for(let l of e)for(let[d,h]of Object.entries(l)){if(i==="throw"&&d in s)throw new Error(`Tool path conflict: ${d}`);s[d]=h}return s};var n4t=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),a5r=e=>e.replaceAll("~1","/").replaceAll("~0","~"),s5r=e=>{let r=e.trim();return r.length===0?[]:r.startsWith("/")?r.split("/").slice(1).map(a5r).filter(i=>i.length>0):r.split(".").filter(i=>i.length>0)},c5r=(e,r)=>{let i=r.toLowerCase();for(let s of Object.keys(e))if(s.toLowerCase()===i)return s;return null},l5r=e=>{let r={};for(let i of e.split(";")){let s=i.trim();if(s.length===0)continue;let l=s.indexOf("=");if(l===-1){r[s]="";continue}let d=s.slice(0,l).trim(),h=s.slice(l+1).trim();d.length>0&&(r[d]=h)}return r},u5r=(e,r,i)=>{let s=e;for(let l=0;l{let r=e.url instanceof URL?new URL(e.url.toString()):new URL(e.url);for(let[i,s]of Object.entries(e.queryParams??{}))r.searchParams.set(i,s);return r},pD=e=>{let r=e.cookies??{};if(Object.keys(r).length===0)return{...e.headers};let i=c5r(e.headers,"cookie"),s=i?e.headers[i]:null,l={...s?l5r(s):{},...r},d={...e.headers};return d[i??"cookie"]=Object.entries(l).map(([h,S])=>`${h}=${encodeURIComponent(S)}`).join("; "),d},X7=e=>{let r=e.bodyValues??{};if(Object.keys(r).length===0)return e.body;let i=e.body==null?{}:n4t(e.body)?structuredClone(e.body):null;if(i===null)throw new Error(`${e.label??"HTTP request"} auth body placements require an object JSON body`);for(let[s,l]of Object.entries(r)){let d=s5r(s);if(d.length===0)throw new Error(`${e.label??"HTTP request"} auth body placement path cannot be empty`);u5r(i,d,l)}return i};var p5r=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),IN=(e,r)=>e>>>r|e<<32-r,_5r=(e,r)=>{let i=new Uint32Array(64);for(let V=0;V<16;V++)i[V]=r[V];for(let V=16;V<64;V++){let j=IN(i[V-15],7)^IN(i[V-15],18)^i[V-15]>>>3,ie=IN(i[V-2],17)^IN(i[V-2],19)^i[V-2]>>>10;i[V]=i[V-16]+j+i[V-7]+ie|0}let s=e[0],l=e[1],d=e[2],h=e[3],S=e[4],b=e[5],A=e[6],L=e[7];for(let V=0;V<64;V++){let j=IN(S,6)^IN(S,11)^IN(S,25),ie=S&b^~S&A,te=L+j+ie+p5r[V]+i[V]|0,X=IN(s,2)^IN(s,13)^IN(s,22),Re=s&l^s&d^l&d,Je=X+Re|0;L=A,A=b,b=S,S=h+te|0,h=d,d=l,l=s,s=te+Je|0}e[0]=e[0]+s|0,e[1]=e[1]+l|0,e[2]=e[2]+d|0,e[3]=e[3]+h|0,e[4]=e[4]+S|0,e[5]=e[5]+b|0,e[6]=e[6]+A|0,e[7]=e[7]+L|0},d5r=e=>{if(typeof TextEncoder<"u")return new TextEncoder().encode(e);let r=[];for(let i=0;i>6,128|s&63);else if(s>=55296&&s<56320&&i+1>18,128|s>>12&63,128|s>>6&63,128|s&63)}else r.push(224|s>>12,128|s>>6&63,128|s&63)}return new Uint8Array(r)},f5r=e=>{let r=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),i=e.length*8,s=new Uint8Array(Math.ceil((e.length+9)/64)*64);s.set(e),s[e.length]=128;let l=new DataView(s.buffer);l.setUint32(s.length-4,i,!1),i>4294967295&&l.setUint32(s.length-8,Math.floor(i/4294967296),!1);let d=new Uint32Array(16);for(let b=0;b{let r="";for(let i=0;im5r(f5r(d5r(e)));import*as UD from"effect/Effect";import*as tPe from"effect/Option";import*as i4t from"effect/Data";import*as tg from"effect/Effect";import*as o4t from"effect/Exit";import*as pX from"effect/Scope";var W2e=class extends i4t.TaggedError("McpConnectionPoolError"){},Y7=new Map,a4t=e=>new W2e(e),h5r=(e,r,i)=>{let s=Y7.get(e);!s||s.get(r)!==i||(s.delete(r),s.size===0&&Y7.delete(e))},g5r=e=>tg.tryPromise({try:()=>Promise.resolve(e.close?.()),catch:r=>a4t({operation:"close",message:"Failed closing pooled MCP connection",cause:r})}).pipe(tg.ignore),y5r=e=>{let r=tg.runSync(pX.make()),i=tg.runSync(tg.cached(tg.acquireRelease(e.pipe(tg.mapError(s=>a4t({operation:"connect",message:"Failed creating pooled MCP connection",cause:s}))),g5r).pipe(pX.extend(r))));return{scope:r,connection:i}},v5r=e=>{let r=Y7.get(e.runId)?.get(e.sourceKey);if(r)return r;let i=Y7.get(e.runId);i||(i=new Map,Y7.set(e.runId,i));let s=y5r(e.connect);return s.connection=s.connection.pipe(tg.tapError(()=>tg.sync(()=>{h5r(e.runId,e.sourceKey,s)}).pipe(tg.zipRight(kJe(s))))),i.set(e.sourceKey,s),s},kJe=e=>pX.close(e.scope,o4t.void).pipe(tg.ignore),CJe=e=>!e.runId||!e.sourceKey?e.connect:tg.gen(function*(){return{client:(yield*v5r({runId:e.runId,sourceKey:e.sourceKey,connect:e.connect}).connection).client,close:async()=>{}}}),G2e=e=>{let r=Y7.get(e);return r?(Y7.delete(e),tg.forEach([...r.values()],kJe,{discard:!0})):tg.void},DJe=()=>{let e=[...Y7.values()].flatMap(r=>[...r.values()]);return Y7.clear(),tg.forEach(e,kJe,{discard:!0})};var Ld;(function(e){e.assertEqual=l=>{};function r(l){}e.assertIs=r;function i(l){throw new Error}e.assertNever=i,e.arrayToEnum=l=>{let d={};for(let h of l)d[h]=h;return d},e.getValidEnumValues=l=>{let d=e.objectKeys(l).filter(S=>typeof l[l[S]]!="number"),h={};for(let S of d)h[S]=l[S];return e.objectValues(h)},e.objectValues=l=>e.objectKeys(l).map(function(d){return l[d]}),e.objectKeys=typeof Object.keys=="function"?l=>Object.keys(l):l=>{let d=[];for(let h in l)Object.prototype.hasOwnProperty.call(l,h)&&d.push(h);return d},e.find=(l,d)=>{for(let h of l)if(d(h))return h},e.isInteger=typeof Number.isInteger=="function"?l=>Number.isInteger(l):l=>typeof l=="number"&&Number.isFinite(l)&&Math.floor(l)===l;function s(l,d=" | "){return l.map(h=>typeof h=="string"?`'${h}'`:h).join(d)}e.joinValues=s,e.jsonStringifyReplacer=(l,d)=>typeof d=="bigint"?d.toString():d})(Ld||(Ld={}));var s4t;(function(e){e.mergeShapes=(r,i)=>({...r,...i})})(s4t||(s4t={}));var Oc=Ld.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),e5=e=>{switch(typeof e){case"undefined":return Oc.undefined;case"string":return Oc.string;case"number":return Number.isNaN(e)?Oc.nan:Oc.number;case"boolean":return Oc.boolean;case"function":return Oc.function;case"bigint":return Oc.bigint;case"symbol":return Oc.symbol;case"object":return Array.isArray(e)?Oc.array:e===null?Oc.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Oc.promise:typeof Map<"u"&&e instanceof Map?Oc.map:typeof Set<"u"&&e instanceof Set?Oc.set:typeof Date<"u"&&e instanceof Date?Oc.date:Oc.object;default:return Oc.unknown}};var Za=Ld.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var dD=class e extends Error{get errors(){return this.issues}constructor(r){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};let i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=r}format(r){let i=r||function(d){return d.message},s={_errors:[]},l=d=>{for(let h of d.issues)if(h.code==="invalid_union")h.unionErrors.map(l);else if(h.code==="invalid_return_type")l(h.returnTypeError);else if(h.code==="invalid_arguments")l(h.argumentsError);else if(h.path.length===0)s._errors.push(i(h));else{let S=s,b=0;for(;bi.message){let i=Object.create(null),s=[];for(let l of this.issues)if(l.path.length>0){let d=l.path[0];i[d]=i[d]||[],i[d].push(r(l))}else s.push(r(l));return{formErrors:s,fieldErrors:i}}get formErrors(){return this.flatten()}};dD.create=e=>new dD(e);var S5r=(e,r)=>{let i;switch(e.code){case Za.invalid_type:e.received===Oc.undefined?i="Required":i=`Expected ${e.expected}, received ${e.received}`;break;case Za.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(e.expected,Ld.jsonStringifyReplacer)}`;break;case Za.unrecognized_keys:i=`Unrecognized key(s) in object: ${Ld.joinValues(e.keys,", ")}`;break;case Za.invalid_union:i="Invalid input";break;case Za.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${Ld.joinValues(e.options)}`;break;case Za.invalid_enum_value:i=`Invalid enum value. Expected ${Ld.joinValues(e.options)}, received '${e.received}'`;break;case Za.invalid_arguments:i="Invalid function arguments";break;case Za.invalid_return_type:i="Invalid function return type";break;case Za.invalid_date:i="Invalid date";break;case Za.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(i=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?i=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?i=`Invalid input: must end with "${e.validation.endsWith}"`:Ld.assertNever(e.validation):e.validation!=="regex"?i=`Invalid ${e.validation}`:i="Invalid";break;case Za.too_small:e.type==="array"?i=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?i=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?i=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?i=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?i=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:i="Invalid input";break;case Za.too_big:e.type==="array"?i=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?i=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?i=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?i=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?i=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:i="Invalid input";break;case Za.custom:i="Invalid input";break;case Za.invalid_intersection_types:i="Intersection results could not be merged";break;case Za.not_multiple_of:i=`Number must be a multiple of ${e.multipleOf}`;break;case Za.not_finite:i="Number must be finite";break;default:i=r.defaultError,Ld.assertNever(e)}return{message:i}},sj=S5r;var b5r=sj;function hle(){return b5r}var H2e=e=>{let{data:r,path:i,errorMaps:s,issueData:l}=e,d=[...i,...l.path||[]],h={...l,path:d};if(l.message!==void 0)return{...l,path:d,message:l.message};let S="",b=s.filter(A=>!!A).slice().reverse();for(let A of b)S=A(h,{data:r,defaultError:S}).message;return{...l,path:d,message:S}};function cc(e,r){let i=hle(),s=H2e({issueData:r,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,i,i===sj?void 0:sj].filter(l=>!!l)});e.common.issues.push(s)}var hT=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(r,i){let s=[];for(let l of i){if(l.status==="aborted")return np;l.status==="dirty"&&r.dirty(),s.push(l.value)}return{status:r.value,value:s}}static async mergeObjectAsync(r,i){let s=[];for(let l of i){let d=await l.key,h=await l.value;s.push({key:d,value:h})}return e.mergeObjectSync(r,s)}static mergeObjectSync(r,i){let s={};for(let l of i){let{key:d,value:h}=l;if(d.status==="aborted"||h.status==="aborted")return np;d.status==="dirty"&&r.dirty(),h.status==="dirty"&&r.dirty(),d.value!=="__proto__"&&(typeof h.value<"u"||l.alwaysSet)&&(s[d.value]=h.value)}return{status:r.value,value:s}}},np=Object.freeze({status:"aborted"}),_X=e=>({status:"dirty",value:e}),w2=e=>({status:"valid",value:e}),AJe=e=>e.status==="aborted",wJe=e=>e.status==="dirty",CJ=e=>e.status==="valid",gle=e=>typeof Promise<"u"&&e instanceof Promise;var Cl;(function(e){e.errToObj=r=>typeof r=="string"?{message:r}:r||{},e.toString=r=>typeof r=="string"?r:r?.message})(Cl||(Cl={}));var $w=class{constructor(r,i,s,l){this._cachedPath=[],this.parent=r,this.data=i,this._path=s,this._key=l}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},c4t=(e,r)=>{if(CJ(r))return{success:!0,data:r.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let i=new dD(e.common.issues);return this._error=i,this._error}}};function u_(e){if(!e)return{};let{errorMap:r,invalid_type_error:i,required_error:s,description:l}=e;if(r&&(i||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return r?{errorMap:r,description:l}:{errorMap:(h,S)=>{let{message:b}=e;return h.code==="invalid_enum_value"?{message:b??S.defaultError}:typeof S.data>"u"?{message:b??s??S.defaultError}:h.code!=="invalid_type"?{message:S.defaultError}:{message:b??i??S.defaultError}},description:l}}var K_=class{get description(){return this._def.description}_getType(r){return e5(r.data)}_getOrReturnCtx(r,i){return i||{common:r.parent.common,data:r.data,parsedType:e5(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}_processInputParams(r){return{status:new hT,ctx:{common:r.parent.common,data:r.data,parsedType:e5(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}}_parseSync(r){let i=this._parse(r);if(gle(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(r){let i=this._parse(r);return Promise.resolve(i)}parse(r,i){let s=this.safeParse(r,i);if(s.success)return s.data;throw s.error}safeParse(r,i){let s={common:{issues:[],async:i?.async??!1,contextualErrorMap:i?.errorMap},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:e5(r)},l=this._parseSync({data:r,path:s.path,parent:s});return c4t(s,l)}"~validate"(r){let i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:e5(r)};if(!this["~standard"].async)try{let s=this._parseSync({data:r,path:[],parent:i});return CJ(s)?{value:s.value}:{issues:i.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:r,path:[],parent:i}).then(s=>CJ(s)?{value:s.value}:{issues:i.common.issues})}async parseAsync(r,i){let s=await this.safeParseAsync(r,i);if(s.success)return s.data;throw s.error}async safeParseAsync(r,i){let s={common:{issues:[],contextualErrorMap:i?.errorMap,async:!0},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:e5(r)},l=this._parse({data:r,path:s.path,parent:s}),d=await(gle(l)?l:Promise.resolve(l));return c4t(s,d)}refine(r,i){let s=l=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(l):i;return this._refinement((l,d)=>{let h=r(l),S=()=>d.addIssue({code:Za.custom,...s(l)});return typeof Promise<"u"&&h instanceof Promise?h.then(b=>b?!0:(S(),!1)):h?!0:(S(),!1)})}refinement(r,i){return this._refinement((s,l)=>r(s)?!0:(l.addIssue(typeof i=="function"?i(s,l):i),!1))}_refinement(r){return new T6({schema:this,typeName:Ou.ZodEffects,effect:{type:"refinement",refinement:r}})}superRefine(r){return this._refinement(r)}constructor(r){this.spa=this.safeParseAsync,this._def=r,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:i=>this["~validate"](i)}}optional(){return x6.create(this,this._def)}nullable(){return n5.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return lj.create(this)}promise(){return DJ.create(this,this._def)}or(r){return gX.create([this,r],this._def)}and(r){return yX.create(this,r,this._def)}transform(r){return new T6({...u_(this._def),schema:this,typeName:Ou.ZodEffects,effect:{type:"transform",transform:r}})}default(r){let i=typeof r=="function"?r:()=>r;return new TX({...u_(this._def),innerType:this,defaultValue:i,typeName:Ou.ZodDefault})}brand(){return new K2e({typeName:Ou.ZodBranded,type:this,...u_(this._def)})}catch(r){let i=typeof r=="function"?r:()=>r;return new EX({...u_(this._def),innerType:this,catchValue:i,typeName:Ou.ZodCatch})}describe(r){let i=this.constructor;return new i({...this._def,description:r})}pipe(r){return Q2e.create(this,r)}readonly(){return kX.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},x5r=/^c[^\s-]{8,}$/i,T5r=/^[0-9a-z]+$/,E5r=/^[0-9A-HJKMNP-TV-Z]{26}$/i,k5r=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,C5r=/^[a-z0-9_-]{21}$/i,D5r=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,A5r=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,w5r=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,I5r="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",IJe,P5r=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,N5r=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,O5r=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,F5r=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,R5r=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,L5r=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,l4t="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",M5r=new RegExp(`^${l4t}$`);function u4t(e){let r="[0-5]\\d";e.precision?r=`${r}\\.\\d{${e.precision}}`:e.precision==null&&(r=`${r}(\\.\\d+)?`);let i=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${r})${i}`}function j5r(e){return new RegExp(`^${u4t(e)}$`)}function B5r(e){let r=`${l4t}T${u4t(e)}`,i=[];return i.push(e.local?"Z?":"Z"),e.offset&&i.push("([+-]\\d{2}:?\\d{2})"),r=`${r}(${i.join("|")})`,new RegExp(`^${r}$`)}function $5r(e,r){return!!((r==="v4"||!r)&&P5r.test(e)||(r==="v6"||!r)&&O5r.test(e))}function U5r(e,r){if(!D5r.test(e))return!1;try{let[i]=e.split(".");if(!i)return!1;let s=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),l=JSON.parse(atob(s));return!(typeof l!="object"||l===null||"typ"in l&&l?.typ!=="JWT"||!l.alg||r&&l.alg!==r)}catch{return!1}}function z5r(e,r){return!!((r==="v4"||!r)&&N5r.test(e)||(r==="v6"||!r)&&F5r.test(e))}var fX=class e extends K_{_parse(r){if(this._def.coerce&&(r.data=String(r.data)),this._getType(r)!==Oc.string){let d=this._getOrReturnCtx(r);return cc(d,{code:Za.invalid_type,expected:Oc.string,received:d.parsedType}),np}let s=new hT,l;for(let d of this._def.checks)if(d.kind==="min")r.data.lengthd.value&&(l=this._getOrReturnCtx(r,l),cc(l,{code:Za.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),s.dirty());else if(d.kind==="length"){let h=r.data.length>d.value,S=r.data.lengthr.test(l),{validation:i,code:Za.invalid_string,...Cl.errToObj(s)})}_addCheck(r){return new e({...this._def,checks:[...this._def.checks,r]})}email(r){return this._addCheck({kind:"email",...Cl.errToObj(r)})}url(r){return this._addCheck({kind:"url",...Cl.errToObj(r)})}emoji(r){return this._addCheck({kind:"emoji",...Cl.errToObj(r)})}uuid(r){return this._addCheck({kind:"uuid",...Cl.errToObj(r)})}nanoid(r){return this._addCheck({kind:"nanoid",...Cl.errToObj(r)})}cuid(r){return this._addCheck({kind:"cuid",...Cl.errToObj(r)})}cuid2(r){return this._addCheck({kind:"cuid2",...Cl.errToObj(r)})}ulid(r){return this._addCheck({kind:"ulid",...Cl.errToObj(r)})}base64(r){return this._addCheck({kind:"base64",...Cl.errToObj(r)})}base64url(r){return this._addCheck({kind:"base64url",...Cl.errToObj(r)})}jwt(r){return this._addCheck({kind:"jwt",...Cl.errToObj(r)})}ip(r){return this._addCheck({kind:"ip",...Cl.errToObj(r)})}cidr(r){return this._addCheck({kind:"cidr",...Cl.errToObj(r)})}datetime(r){return typeof r=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:r}):this._addCheck({kind:"datetime",precision:typeof r?.precision>"u"?null:r?.precision,offset:r?.offset??!1,local:r?.local??!1,...Cl.errToObj(r?.message)})}date(r){return this._addCheck({kind:"date",message:r})}time(r){return typeof r=="string"?this._addCheck({kind:"time",precision:null,message:r}):this._addCheck({kind:"time",precision:typeof r?.precision>"u"?null:r?.precision,...Cl.errToObj(r?.message)})}duration(r){return this._addCheck({kind:"duration",...Cl.errToObj(r)})}regex(r,i){return this._addCheck({kind:"regex",regex:r,...Cl.errToObj(i)})}includes(r,i){return this._addCheck({kind:"includes",value:r,position:i?.position,...Cl.errToObj(i?.message)})}startsWith(r,i){return this._addCheck({kind:"startsWith",value:r,...Cl.errToObj(i)})}endsWith(r,i){return this._addCheck({kind:"endsWith",value:r,...Cl.errToObj(i)})}min(r,i){return this._addCheck({kind:"min",value:r,...Cl.errToObj(i)})}max(r,i){return this._addCheck({kind:"max",value:r,...Cl.errToObj(i)})}length(r,i){return this._addCheck({kind:"length",value:r,...Cl.errToObj(i)})}nonempty(r){return this.min(1,Cl.errToObj(r))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(r=>r.kind==="datetime")}get isDate(){return!!this._def.checks.find(r=>r.kind==="date")}get isTime(){return!!this._def.checks.find(r=>r.kind==="time")}get isDuration(){return!!this._def.checks.find(r=>r.kind==="duration")}get isEmail(){return!!this._def.checks.find(r=>r.kind==="email")}get isURL(){return!!this._def.checks.find(r=>r.kind==="url")}get isEmoji(){return!!this._def.checks.find(r=>r.kind==="emoji")}get isUUID(){return!!this._def.checks.find(r=>r.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(r=>r.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(r=>r.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(r=>r.kind==="cuid2")}get isULID(){return!!this._def.checks.find(r=>r.kind==="ulid")}get isIP(){return!!this._def.checks.find(r=>r.kind==="ip")}get isCIDR(){return!!this._def.checks.find(r=>r.kind==="cidr")}get isBase64(){return!!this._def.checks.find(r=>r.kind==="base64")}get isBase64url(){return!!this._def.checks.find(r=>r.kind==="base64url")}get minLength(){let r=null;for(let i of this._def.checks)i.kind==="min"&&(r===null||i.value>r)&&(r=i.value);return r}get maxLength(){let r=null;for(let i of this._def.checks)i.kind==="max"&&(r===null||i.valuenew fX({checks:[],typeName:Ou.ZodString,coerce:e?.coerce??!1,...u_(e)});function q5r(e,r){let i=(e.toString().split(".")[1]||"").length,s=(r.toString().split(".")[1]||"").length,l=i>s?i:s,d=Number.parseInt(e.toFixed(l).replace(".","")),h=Number.parseInt(r.toFixed(l).replace(".",""));return d%h/10**l}var yle=class e extends K_{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(r){if(this._def.coerce&&(r.data=Number(r.data)),this._getType(r)!==Oc.number){let d=this._getOrReturnCtx(r);return cc(d,{code:Za.invalid_type,expected:Oc.number,received:d.parsedType}),np}let s,l=new hT;for(let d of this._def.checks)d.kind==="int"?Ld.isInteger(r.data)||(s=this._getOrReturnCtx(r,s),cc(s,{code:Za.invalid_type,expected:"integer",received:"float",message:d.message}),l.dirty()):d.kind==="min"?(d.inclusive?r.datad.value:r.data>=d.value)&&(s=this._getOrReturnCtx(r,s),cc(s,{code:Za.too_big,maximum:d.value,type:"number",inclusive:d.inclusive,exact:!1,message:d.message}),l.dirty()):d.kind==="multipleOf"?q5r(r.data,d.value)!==0&&(s=this._getOrReturnCtx(r,s),cc(s,{code:Za.not_multiple_of,multipleOf:d.value,message:d.message}),l.dirty()):d.kind==="finite"?Number.isFinite(r.data)||(s=this._getOrReturnCtx(r,s),cc(s,{code:Za.not_finite,message:d.message}),l.dirty()):Ld.assertNever(d);return{status:l.value,value:r.data}}gte(r,i){return this.setLimit("min",r,!0,Cl.toString(i))}gt(r,i){return this.setLimit("min",r,!1,Cl.toString(i))}lte(r,i){return this.setLimit("max",r,!0,Cl.toString(i))}lt(r,i){return this.setLimit("max",r,!1,Cl.toString(i))}setLimit(r,i,s,l){return new e({...this._def,checks:[...this._def.checks,{kind:r,value:i,inclusive:s,message:Cl.toString(l)}]})}_addCheck(r){return new e({...this._def,checks:[...this._def.checks,r]})}int(r){return this._addCheck({kind:"int",message:Cl.toString(r)})}positive(r){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Cl.toString(r)})}negative(r){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Cl.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Cl.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Cl.toString(r)})}multipleOf(r,i){return this._addCheck({kind:"multipleOf",value:r,message:Cl.toString(i)})}finite(r){return this._addCheck({kind:"finite",message:Cl.toString(r)})}safe(r){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Cl.toString(r)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Cl.toString(r)})}get minValue(){let r=null;for(let i of this._def.checks)i.kind==="min"&&(r===null||i.value>r)&&(r=i.value);return r}get maxValue(){let r=null;for(let i of this._def.checks)i.kind==="max"&&(r===null||i.valuer.kind==="int"||r.kind==="multipleOf"&&Ld.isInteger(r.value))}get isFinite(){let r=null,i=null;for(let s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(i===null||s.value>i)&&(i=s.value):s.kind==="max"&&(r===null||s.valuenew yle({checks:[],typeName:Ou.ZodNumber,coerce:e?.coerce||!1,...u_(e)});var vle=class e extends K_{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(r){if(this._def.coerce)try{r.data=BigInt(r.data)}catch{return this._getInvalidInput(r)}if(this._getType(r)!==Oc.bigint)return this._getInvalidInput(r);let s,l=new hT;for(let d of this._def.checks)d.kind==="min"?(d.inclusive?r.datad.value:r.data>=d.value)&&(s=this._getOrReturnCtx(r,s),cc(s,{code:Za.too_big,type:"bigint",maximum:d.value,inclusive:d.inclusive,message:d.message}),l.dirty()):d.kind==="multipleOf"?r.data%d.value!==BigInt(0)&&(s=this._getOrReturnCtx(r,s),cc(s,{code:Za.not_multiple_of,multipleOf:d.value,message:d.message}),l.dirty()):Ld.assertNever(d);return{status:l.value,value:r.data}}_getInvalidInput(r){let i=this._getOrReturnCtx(r);return cc(i,{code:Za.invalid_type,expected:Oc.bigint,received:i.parsedType}),np}gte(r,i){return this.setLimit("min",r,!0,Cl.toString(i))}gt(r,i){return this.setLimit("min",r,!1,Cl.toString(i))}lte(r,i){return this.setLimit("max",r,!0,Cl.toString(i))}lt(r,i){return this.setLimit("max",r,!1,Cl.toString(i))}setLimit(r,i,s,l){return new e({...this._def,checks:[...this._def.checks,{kind:r,value:i,inclusive:s,message:Cl.toString(l)}]})}_addCheck(r){return new e({...this._def,checks:[...this._def.checks,r]})}positive(r){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Cl.toString(r)})}negative(r){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Cl.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Cl.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Cl.toString(r)})}multipleOf(r,i){return this._addCheck({kind:"multipleOf",value:r,message:Cl.toString(i)})}get minValue(){let r=null;for(let i of this._def.checks)i.kind==="min"&&(r===null||i.value>r)&&(r=i.value);return r}get maxValue(){let r=null;for(let i of this._def.checks)i.kind==="max"&&(r===null||i.valuenew vle({checks:[],typeName:Ou.ZodBigInt,coerce:e?.coerce??!1,...u_(e)});var Sle=class extends K_{_parse(r){if(this._def.coerce&&(r.data=!!r.data),this._getType(r)!==Oc.boolean){let s=this._getOrReturnCtx(r);return cc(s,{code:Za.invalid_type,expected:Oc.boolean,received:s.parsedType}),np}return w2(r.data)}};Sle.create=e=>new Sle({typeName:Ou.ZodBoolean,coerce:e?.coerce||!1,...u_(e)});var ble=class e extends K_{_parse(r){if(this._def.coerce&&(r.data=new Date(r.data)),this._getType(r)!==Oc.date){let d=this._getOrReturnCtx(r);return cc(d,{code:Za.invalid_type,expected:Oc.date,received:d.parsedType}),np}if(Number.isNaN(r.data.getTime())){let d=this._getOrReturnCtx(r);return cc(d,{code:Za.invalid_date}),np}let s=new hT,l;for(let d of this._def.checks)d.kind==="min"?r.data.getTime()d.value&&(l=this._getOrReturnCtx(r,l),cc(l,{code:Za.too_big,message:d.message,inclusive:!0,exact:!1,maximum:d.value,type:"date"}),s.dirty()):Ld.assertNever(d);return{status:s.value,value:new Date(r.data.getTime())}}_addCheck(r){return new e({...this._def,checks:[...this._def.checks,r]})}min(r,i){return this._addCheck({kind:"min",value:r.getTime(),message:Cl.toString(i)})}max(r,i){return this._addCheck({kind:"max",value:r.getTime(),message:Cl.toString(i)})}get minDate(){let r=null;for(let i of this._def.checks)i.kind==="min"&&(r===null||i.value>r)&&(r=i.value);return r!=null?new Date(r):null}get maxDate(){let r=null;for(let i of this._def.checks)i.kind==="max"&&(r===null||i.valuenew ble({checks:[],coerce:e?.coerce||!1,typeName:Ou.ZodDate,...u_(e)});var xle=class extends K_{_parse(r){if(this._getType(r)!==Oc.symbol){let s=this._getOrReturnCtx(r);return cc(s,{code:Za.invalid_type,expected:Oc.symbol,received:s.parsedType}),np}return w2(r.data)}};xle.create=e=>new xle({typeName:Ou.ZodSymbol,...u_(e)});var mX=class extends K_{_parse(r){if(this._getType(r)!==Oc.undefined){let s=this._getOrReturnCtx(r);return cc(s,{code:Za.invalid_type,expected:Oc.undefined,received:s.parsedType}),np}return w2(r.data)}};mX.create=e=>new mX({typeName:Ou.ZodUndefined,...u_(e)});var hX=class extends K_{_parse(r){if(this._getType(r)!==Oc.null){let s=this._getOrReturnCtx(r);return cc(s,{code:Za.invalid_type,expected:Oc.null,received:s.parsedType}),np}return w2(r.data)}};hX.create=e=>new hX({typeName:Ou.ZodNull,...u_(e)});var Tle=class extends K_{constructor(){super(...arguments),this._any=!0}_parse(r){return w2(r.data)}};Tle.create=e=>new Tle({typeName:Ou.ZodAny,...u_(e)});var cj=class extends K_{constructor(){super(...arguments),this._unknown=!0}_parse(r){return w2(r.data)}};cj.create=e=>new cj({typeName:Ou.ZodUnknown,...u_(e)});var PN=class extends K_{_parse(r){let i=this._getOrReturnCtx(r);return cc(i,{code:Za.invalid_type,expected:Oc.never,received:i.parsedType}),np}};PN.create=e=>new PN({typeName:Ou.ZodNever,...u_(e)});var Ele=class extends K_{_parse(r){if(this._getType(r)!==Oc.undefined){let s=this._getOrReturnCtx(r);return cc(s,{code:Za.invalid_type,expected:Oc.void,received:s.parsedType}),np}return w2(r.data)}};Ele.create=e=>new Ele({typeName:Ou.ZodVoid,...u_(e)});var lj=class e extends K_{_parse(r){let{ctx:i,status:s}=this._processInputParams(r),l=this._def;if(i.parsedType!==Oc.array)return cc(i,{code:Za.invalid_type,expected:Oc.array,received:i.parsedType}),np;if(l.exactLength!==null){let h=i.data.length>l.exactLength.value,S=i.data.lengthl.maxLength.value&&(cc(i,{code:Za.too_big,maximum:l.maxLength.value,type:"array",inclusive:!0,exact:!1,message:l.maxLength.message}),s.dirty()),i.common.async)return Promise.all([...i.data].map((h,S)=>l.type._parseAsync(new $w(i,h,i.path,S)))).then(h=>hT.mergeArray(s,h));let d=[...i.data].map((h,S)=>l.type._parseSync(new $w(i,h,i.path,S)));return hT.mergeArray(s,d)}get element(){return this._def.type}min(r,i){return new e({...this._def,minLength:{value:r,message:Cl.toString(i)}})}max(r,i){return new e({...this._def,maxLength:{value:r,message:Cl.toString(i)}})}length(r,i){return new e({...this._def,exactLength:{value:r,message:Cl.toString(i)}})}nonempty(r){return this.min(1,r)}};lj.create=(e,r)=>new lj({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ou.ZodArray,...u_(r)});function dX(e){if(e instanceof fD){let r={};for(let i in e.shape){let s=e.shape[i];r[i]=x6.create(dX(s))}return new fD({...e._def,shape:()=>r})}else return e instanceof lj?new lj({...e._def,type:dX(e.element)}):e instanceof x6?x6.create(dX(e.unwrap())):e instanceof n5?n5.create(dX(e.unwrap())):e instanceof r5?r5.create(e.items.map(r=>dX(r))):e}var fD=class e extends K_{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let r=this._def.shape(),i=Ld.objectKeys(r);return this._cached={shape:r,keys:i},this._cached}_parse(r){if(this._getType(r)!==Oc.object){let A=this._getOrReturnCtx(r);return cc(A,{code:Za.invalid_type,expected:Oc.object,received:A.parsedType}),np}let{status:s,ctx:l}=this._processInputParams(r),{shape:d,keys:h}=this._getCached(),S=[];if(!(this._def.catchall instanceof PN&&this._def.unknownKeys==="strip"))for(let A in l.data)h.includes(A)||S.push(A);let b=[];for(let A of h){let L=d[A],V=l.data[A];b.push({key:{status:"valid",value:A},value:L._parse(new $w(l,V,l.path,A)),alwaysSet:A in l.data})}if(this._def.catchall instanceof PN){let A=this._def.unknownKeys;if(A==="passthrough")for(let L of S)b.push({key:{status:"valid",value:L},value:{status:"valid",value:l.data[L]}});else if(A==="strict")S.length>0&&(cc(l,{code:Za.unrecognized_keys,keys:S}),s.dirty());else if(A!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let A=this._def.catchall;for(let L of S){let V=l.data[L];b.push({key:{status:"valid",value:L},value:A._parse(new $w(l,V,l.path,L)),alwaysSet:L in l.data})}}return l.common.async?Promise.resolve().then(async()=>{let A=[];for(let L of b){let V=await L.key,j=await L.value;A.push({key:V,value:j,alwaysSet:L.alwaysSet})}return A}).then(A=>hT.mergeObjectSync(s,A)):hT.mergeObjectSync(s,b)}get shape(){return this._def.shape()}strict(r){return Cl.errToObj,new e({...this._def,unknownKeys:"strict",...r!==void 0?{errorMap:(i,s)=>{let l=this._def.errorMap?.(i,s).message??s.defaultError;return i.code==="unrecognized_keys"?{message:Cl.errToObj(r).message??l}:{message:l}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(r){return new e({...this._def,shape:()=>({...this._def.shape(),...r})})}merge(r){return new e({unknownKeys:r._def.unknownKeys,catchall:r._def.catchall,shape:()=>({...this._def.shape(),...r._def.shape()}),typeName:Ou.ZodObject})}setKey(r,i){return this.augment({[r]:i})}catchall(r){return new e({...this._def,catchall:r})}pick(r){let i={};for(let s of Ld.objectKeys(r))r[s]&&this.shape[s]&&(i[s]=this.shape[s]);return new e({...this._def,shape:()=>i})}omit(r){let i={};for(let s of Ld.objectKeys(this.shape))r[s]||(i[s]=this.shape[s]);return new e({...this._def,shape:()=>i})}deepPartial(){return dX(this)}partial(r){let i={};for(let s of Ld.objectKeys(this.shape)){let l=this.shape[s];r&&!r[s]?i[s]=l:i[s]=l.optional()}return new e({...this._def,shape:()=>i})}required(r){let i={};for(let s of Ld.objectKeys(this.shape))if(r&&!r[s])i[s]=this.shape[s];else{let d=this.shape[s];for(;d instanceof x6;)d=d._def.innerType;i[s]=d}return new e({...this._def,shape:()=>i})}keyof(){return p4t(Ld.objectKeys(this.shape))}};fD.create=(e,r)=>new fD({shape:()=>e,unknownKeys:"strip",catchall:PN.create(),typeName:Ou.ZodObject,...u_(r)});fD.strictCreate=(e,r)=>new fD({shape:()=>e,unknownKeys:"strict",catchall:PN.create(),typeName:Ou.ZodObject,...u_(r)});fD.lazycreate=(e,r)=>new fD({shape:e,unknownKeys:"strip",catchall:PN.create(),typeName:Ou.ZodObject,...u_(r)});var gX=class extends K_{_parse(r){let{ctx:i}=this._processInputParams(r),s=this._def.options;function l(d){for(let S of d)if(S.result.status==="valid")return S.result;for(let S of d)if(S.result.status==="dirty")return i.common.issues.push(...S.ctx.common.issues),S.result;let h=d.map(S=>new dD(S.ctx.common.issues));return cc(i,{code:Za.invalid_union,unionErrors:h}),np}if(i.common.async)return Promise.all(s.map(async d=>{let h={...i,common:{...i.common,issues:[]},parent:null};return{result:await d._parseAsync({data:i.data,path:i.path,parent:h}),ctx:h}})).then(l);{let d,h=[];for(let b of s){let A={...i,common:{...i.common,issues:[]},parent:null},L=b._parseSync({data:i.data,path:i.path,parent:A});if(L.status==="valid")return L;L.status==="dirty"&&!d&&(d={result:L,ctx:A}),A.common.issues.length&&h.push(A.common.issues)}if(d)return i.common.issues.push(...d.ctx.common.issues),d.result;let S=h.map(b=>new dD(b));return cc(i,{code:Za.invalid_union,unionErrors:S}),np}}get options(){return this._def.options}};gX.create=(e,r)=>new gX({options:e,typeName:Ou.ZodUnion,...u_(r)});var t5=e=>e instanceof vX?t5(e.schema):e instanceof T6?t5(e.innerType()):e instanceof SX?[e.value]:e instanceof bX?e.options:e instanceof xX?Ld.objectValues(e.enum):e instanceof TX?t5(e._def.innerType):e instanceof mX?[void 0]:e instanceof hX?[null]:e instanceof x6?[void 0,...t5(e.unwrap())]:e instanceof n5?[null,...t5(e.unwrap())]:e instanceof K2e||e instanceof kX?t5(e.unwrap()):e instanceof EX?t5(e._def.innerType):[],PJe=class e extends K_{_parse(r){let{ctx:i}=this._processInputParams(r);if(i.parsedType!==Oc.object)return cc(i,{code:Za.invalid_type,expected:Oc.object,received:i.parsedType}),np;let s=this.discriminator,l=i.data[s],d=this.optionsMap.get(l);return d?i.common.async?d._parseAsync({data:i.data,path:i.path,parent:i}):d._parseSync({data:i.data,path:i.path,parent:i}):(cc(i,{code:Za.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),np)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(r,i,s){let l=new Map;for(let d of i){let h=t5(d.shape[r]);if(!h.length)throw new Error(`A discriminator value for key \`${r}\` could not be extracted from all schema options`);for(let S of h){if(l.has(S))throw new Error(`Discriminator property ${String(r)} has duplicate value ${String(S)}`);l.set(S,d)}}return new e({typeName:Ou.ZodDiscriminatedUnion,discriminator:r,options:i,optionsMap:l,...u_(s)})}};function NJe(e,r){let i=e5(e),s=e5(r);if(e===r)return{valid:!0,data:e};if(i===Oc.object&&s===Oc.object){let l=Ld.objectKeys(r),d=Ld.objectKeys(e).filter(S=>l.indexOf(S)!==-1),h={...e,...r};for(let S of d){let b=NJe(e[S],r[S]);if(!b.valid)return{valid:!1};h[S]=b.data}return{valid:!0,data:h}}else if(i===Oc.array&&s===Oc.array){if(e.length!==r.length)return{valid:!1};let l=[];for(let d=0;d{if(AJe(d)||AJe(h))return np;let S=NJe(d.value,h.value);return S.valid?((wJe(d)||wJe(h))&&i.dirty(),{status:i.value,value:S.data}):(cc(s,{code:Za.invalid_intersection_types}),np)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([d,h])=>l(d,h)):l(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}};yX.create=(e,r,i)=>new yX({left:e,right:r,typeName:Ou.ZodIntersection,...u_(i)});var r5=class e extends K_{_parse(r){let{status:i,ctx:s}=this._processInputParams(r);if(s.parsedType!==Oc.array)return cc(s,{code:Za.invalid_type,expected:Oc.array,received:s.parsedType}),np;if(s.data.lengththis._def.items.length&&(cc(s,{code:Za.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());let d=[...s.data].map((h,S)=>{let b=this._def.items[S]||this._def.rest;return b?b._parse(new $w(s,h,s.path,S)):null}).filter(h=>!!h);return s.common.async?Promise.all(d).then(h=>hT.mergeArray(i,h)):hT.mergeArray(i,d)}get items(){return this._def.items}rest(r){return new e({...this._def,rest:r})}};r5.create=(e,r)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new r5({items:e,typeName:Ou.ZodTuple,rest:null,...u_(r)})};var OJe=class e extends K_{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(r){let{status:i,ctx:s}=this._processInputParams(r);if(s.parsedType!==Oc.object)return cc(s,{code:Za.invalid_type,expected:Oc.object,received:s.parsedType}),np;let l=[],d=this._def.keyType,h=this._def.valueType;for(let S in s.data)l.push({key:d._parse(new $w(s,S,s.path,S)),value:h._parse(new $w(s,s.data[S],s.path,S)),alwaysSet:S in s.data});return s.common.async?hT.mergeObjectAsync(i,l):hT.mergeObjectSync(i,l)}get element(){return this._def.valueType}static create(r,i,s){return i instanceof K_?new e({keyType:r,valueType:i,typeName:Ou.ZodRecord,...u_(s)}):new e({keyType:fX.create(),valueType:r,typeName:Ou.ZodRecord,...u_(i)})}},kle=class extends K_{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(r){let{status:i,ctx:s}=this._processInputParams(r);if(s.parsedType!==Oc.map)return cc(s,{code:Za.invalid_type,expected:Oc.map,received:s.parsedType}),np;let l=this._def.keyType,d=this._def.valueType,h=[...s.data.entries()].map(([S,b],A)=>({key:l._parse(new $w(s,S,s.path,[A,"key"])),value:d._parse(new $w(s,b,s.path,[A,"value"]))}));if(s.common.async){let S=new Map;return Promise.resolve().then(async()=>{for(let b of h){let A=await b.key,L=await b.value;if(A.status==="aborted"||L.status==="aborted")return np;(A.status==="dirty"||L.status==="dirty")&&i.dirty(),S.set(A.value,L.value)}return{status:i.value,value:S}})}else{let S=new Map;for(let b of h){let A=b.key,L=b.value;if(A.status==="aborted"||L.status==="aborted")return np;(A.status==="dirty"||L.status==="dirty")&&i.dirty(),S.set(A.value,L.value)}return{status:i.value,value:S}}}};kle.create=(e,r,i)=>new kle({valueType:r,keyType:e,typeName:Ou.ZodMap,...u_(i)});var Cle=class e extends K_{_parse(r){let{status:i,ctx:s}=this._processInputParams(r);if(s.parsedType!==Oc.set)return cc(s,{code:Za.invalid_type,expected:Oc.set,received:s.parsedType}),np;let l=this._def;l.minSize!==null&&s.data.sizel.maxSize.value&&(cc(s,{code:Za.too_big,maximum:l.maxSize.value,type:"set",inclusive:!0,exact:!1,message:l.maxSize.message}),i.dirty());let d=this._def.valueType;function h(b){let A=new Set;for(let L of b){if(L.status==="aborted")return np;L.status==="dirty"&&i.dirty(),A.add(L.value)}return{status:i.value,value:A}}let S=[...s.data.values()].map((b,A)=>d._parse(new $w(s,b,s.path,A)));return s.common.async?Promise.all(S).then(b=>h(b)):h(S)}min(r,i){return new e({...this._def,minSize:{value:r,message:Cl.toString(i)}})}max(r,i){return new e({...this._def,maxSize:{value:r,message:Cl.toString(i)}})}size(r,i){return this.min(r,i).max(r,i)}nonempty(r){return this.min(1,r)}};Cle.create=(e,r)=>new Cle({valueType:e,minSize:null,maxSize:null,typeName:Ou.ZodSet,...u_(r)});var FJe=class e extends K_{constructor(){super(...arguments),this.validate=this.implement}_parse(r){let{ctx:i}=this._processInputParams(r);if(i.parsedType!==Oc.function)return cc(i,{code:Za.invalid_type,expected:Oc.function,received:i.parsedType}),np;function s(S,b){return H2e({data:S,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,hle(),sj].filter(A=>!!A),issueData:{code:Za.invalid_arguments,argumentsError:b}})}function l(S,b){return H2e({data:S,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,hle(),sj].filter(A=>!!A),issueData:{code:Za.invalid_return_type,returnTypeError:b}})}let d={errorMap:i.common.contextualErrorMap},h=i.data;if(this._def.returns instanceof DJ){let S=this;return w2(async function(...b){let A=new dD([]),L=await S._def.args.parseAsync(b,d).catch(ie=>{throw A.addIssue(s(b,ie)),A}),V=await Reflect.apply(h,this,L);return await S._def.returns._def.type.parseAsync(V,d).catch(ie=>{throw A.addIssue(l(V,ie)),A})})}else{let S=this;return w2(function(...b){let A=S._def.args.safeParse(b,d);if(!A.success)throw new dD([s(b,A.error)]);let L=Reflect.apply(h,this,A.data),V=S._def.returns.safeParse(L,d);if(!V.success)throw new dD([l(L,V.error)]);return V.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...r){return new e({...this._def,args:r5.create(r).rest(cj.create())})}returns(r){return new e({...this._def,returns:r})}implement(r){return this.parse(r)}strictImplement(r){return this.parse(r)}static create(r,i,s){return new e({args:r||r5.create([]).rest(cj.create()),returns:i||cj.create(),typeName:Ou.ZodFunction,...u_(s)})}},vX=class extends K_{get schema(){return this._def.getter()}_parse(r){let{ctx:i}=this._processInputParams(r);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}};vX.create=(e,r)=>new vX({getter:e,typeName:Ou.ZodLazy,...u_(r)});var SX=class extends K_{_parse(r){if(r.data!==this._def.value){let i=this._getOrReturnCtx(r);return cc(i,{received:i.data,code:Za.invalid_literal,expected:this._def.value}),np}return{status:"valid",value:r.data}}get value(){return this._def.value}};SX.create=(e,r)=>new SX({value:e,typeName:Ou.ZodLiteral,...u_(r)});function p4t(e,r){return new bX({values:e,typeName:Ou.ZodEnum,...u_(r)})}var bX=class e extends K_{_parse(r){if(typeof r.data!="string"){let i=this._getOrReturnCtx(r),s=this._def.values;return cc(i,{expected:Ld.joinValues(s),received:i.parsedType,code:Za.invalid_type}),np}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(r.data)){let i=this._getOrReturnCtx(r),s=this._def.values;return cc(i,{received:i.data,code:Za.invalid_enum_value,options:s}),np}return w2(r.data)}get options(){return this._def.values}get enum(){let r={};for(let i of this._def.values)r[i]=i;return r}get Values(){let r={};for(let i of this._def.values)r[i]=i;return r}get Enum(){let r={};for(let i of this._def.values)r[i]=i;return r}extract(r,i=this._def){return e.create(r,{...this._def,...i})}exclude(r,i=this._def){return e.create(this.options.filter(s=>!r.includes(s)),{...this._def,...i})}};bX.create=p4t;var xX=class extends K_{_parse(r){let i=Ld.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(r);if(s.parsedType!==Oc.string&&s.parsedType!==Oc.number){let l=Ld.objectValues(i);return cc(s,{expected:Ld.joinValues(l),received:s.parsedType,code:Za.invalid_type}),np}if(this._cache||(this._cache=new Set(Ld.getValidEnumValues(this._def.values))),!this._cache.has(r.data)){let l=Ld.objectValues(i);return cc(s,{received:s.data,code:Za.invalid_enum_value,options:l}),np}return w2(r.data)}get enum(){return this._def.values}};xX.create=(e,r)=>new xX({values:e,typeName:Ou.ZodNativeEnum,...u_(r)});var DJ=class extends K_{unwrap(){return this._def.type}_parse(r){let{ctx:i}=this._processInputParams(r);if(i.parsedType!==Oc.promise&&i.common.async===!1)return cc(i,{code:Za.invalid_type,expected:Oc.promise,received:i.parsedType}),np;let s=i.parsedType===Oc.promise?i.data:Promise.resolve(i.data);return w2(s.then(l=>this._def.type.parseAsync(l,{path:i.path,errorMap:i.common.contextualErrorMap})))}};DJ.create=(e,r)=>new DJ({type:e,typeName:Ou.ZodPromise,...u_(r)});var T6=class extends K_{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ou.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(r){let{status:i,ctx:s}=this._processInputParams(r),l=this._def.effect||null,d={addIssue:h=>{cc(s,h),h.fatal?i.abort():i.dirty()},get path(){return s.path}};if(d.addIssue=d.addIssue.bind(d),l.type==="preprocess"){let h=l.transform(s.data,d);if(s.common.async)return Promise.resolve(h).then(async S=>{if(i.value==="aborted")return np;let b=await this._def.schema._parseAsync({data:S,path:s.path,parent:s});return b.status==="aborted"?np:b.status==="dirty"?_X(b.value):i.value==="dirty"?_X(b.value):b});{if(i.value==="aborted")return np;let S=this._def.schema._parseSync({data:h,path:s.path,parent:s});return S.status==="aborted"?np:S.status==="dirty"?_X(S.value):i.value==="dirty"?_X(S.value):S}}if(l.type==="refinement"){let h=S=>{let b=l.refinement(S,d);if(s.common.async)return Promise.resolve(b);if(b instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return S};if(s.common.async===!1){let S=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return S.status==="aborted"?np:(S.status==="dirty"&&i.dirty(),h(S.value),{status:i.value,value:S.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(S=>S.status==="aborted"?np:(S.status==="dirty"&&i.dirty(),h(S.value).then(()=>({status:i.value,value:S.value}))))}if(l.type==="transform")if(s.common.async===!1){let h=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!CJ(h))return np;let S=l.transform(h.value,d);if(S instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:S}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(h=>CJ(h)?Promise.resolve(l.transform(h.value,d)).then(S=>({status:i.value,value:S})):np);Ld.assertNever(l)}};T6.create=(e,r,i)=>new T6({schema:e,typeName:Ou.ZodEffects,effect:r,...u_(i)});T6.createWithPreprocess=(e,r,i)=>new T6({schema:r,effect:{type:"preprocess",transform:e},typeName:Ou.ZodEffects,...u_(i)});var x6=class extends K_{_parse(r){return this._getType(r)===Oc.undefined?w2(void 0):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}};x6.create=(e,r)=>new x6({innerType:e,typeName:Ou.ZodOptional,...u_(r)});var n5=class extends K_{_parse(r){return this._getType(r)===Oc.null?w2(null):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}};n5.create=(e,r)=>new n5({innerType:e,typeName:Ou.ZodNullable,...u_(r)});var TX=class extends K_{_parse(r){let{ctx:i}=this._processInputParams(r),s=i.data;return i.parsedType===Oc.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:i.path,parent:i})}removeDefault(){return this._def.innerType}};TX.create=(e,r)=>new TX({innerType:e,typeName:Ou.ZodDefault,defaultValue:typeof r.default=="function"?r.default:()=>r.default,...u_(r)});var EX=class extends K_{_parse(r){let{ctx:i}=this._processInputParams(r),s={...i,common:{...i.common,issues:[]}},l=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return gle(l)?l.then(d=>({status:"valid",value:d.status==="valid"?d.value:this._def.catchValue({get error(){return new dD(s.common.issues)},input:s.data})})):{status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new dD(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}};EX.create=(e,r)=>new EX({innerType:e,typeName:Ou.ZodCatch,catchValue:typeof r.catch=="function"?r.catch:()=>r.catch,...u_(r)});var Dle=class extends K_{_parse(r){if(this._getType(r)!==Oc.nan){let s=this._getOrReturnCtx(r);return cc(s,{code:Za.invalid_type,expected:Oc.nan,received:s.parsedType}),np}return{status:"valid",value:r.data}}};Dle.create=e=>new Dle({typeName:Ou.ZodNaN,...u_(e)});var K2e=class extends K_{_parse(r){let{ctx:i}=this._processInputParams(r),s=i.data;return this._def.type._parse({data:s,path:i.path,parent:i})}unwrap(){return this._def.type}},Q2e=class e extends K_{_parse(r){let{status:i,ctx:s}=this._processInputParams(r);if(s.common.async)return(async()=>{let d=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return d.status==="aborted"?np:d.status==="dirty"?(i.dirty(),_X(d.value)):this._def.out._parseAsync({data:d.value,path:s.path,parent:s})})();{let l=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return l.status==="aborted"?np:l.status==="dirty"?(i.dirty(),{status:"dirty",value:l.value}):this._def.out._parseSync({data:l.value,path:s.path,parent:s})}}static create(r,i){return new e({in:r,out:i,typeName:Ou.ZodPipeline})}},kX=class extends K_{_parse(r){let i=this._def.innerType._parse(r),s=l=>(CJ(l)&&(l.value=Object.freeze(l.value)),l);return gle(i)?i.then(l=>s(l)):s(i)}unwrap(){return this._def.innerType}};kX.create=(e,r)=>new kX({innerType:e,typeName:Ou.ZodReadonly,...u_(r)});var PNn={object:fD.lazycreate},Ou;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ou||(Ou={}));var NNn=fX.create,ONn=yle.create,FNn=Dle.create,RNn=vle.create,LNn=Sle.create,MNn=ble.create,jNn=xle.create,BNn=mX.create,$Nn=hX.create,UNn=Tle.create,zNn=cj.create,qNn=PN.create,JNn=Ele.create,VNn=lj.create,J5r=fD.create,WNn=fD.strictCreate,GNn=gX.create,HNn=PJe.create,KNn=yX.create,QNn=r5.create,ZNn=OJe.create,XNn=kle.create,YNn=Cle.create,e8n=FJe.create,t8n=vX.create,r8n=SX.create,n8n=bX.create,i8n=xX.create,o8n=DJ.create,a8n=T6.create,s8n=x6.create,c8n=n5.create,l8n=T6.createWithPreprocess,u8n=Q2e.create;var X2e=Object.freeze({status:"aborted"});function ni(e,r,i){function s(S,b){if(S._zod||Object.defineProperty(S,"_zod",{value:{def:b,constr:h,traits:new Set},enumerable:!1}),S._zod.traits.has(e))return;S._zod.traits.add(e),r(S,b);let A=h.prototype,L=Object.keys(A);for(let V=0;Vi?.Parent&&S instanceof i.Parent?!0:S?._zod?.traits?.has(e)}),Object.defineProperty(h,"name",{value:e}),h}var NN=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},AJ=class extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}},Z2e={};function Gv(e){return e&&Object.assign(Z2e,e),Z2e}var es={};J7(es,{BIGINT_FORMAT_RANGES:()=>JJe,Class:()=>LJe,NUMBER_FORMAT_RANGES:()=>qJe,aborted:()=>dj,allowsEval:()=>BJe,assert:()=>Z5r,assertEqual:()=>G5r,assertIs:()=>K5r,assertNever:()=>Q5r,assertNotEqual:()=>H5r,assignProp:()=>pj,base64ToUint8Array:()=>v4t,base64urlToUint8Array:()=>c9r,cached:()=>DX,captureStackTrace:()=>eEe,cleanEnum:()=>s9r,cleanRegex:()=>Ile,clone:()=>I2,cloneDef:()=>Y5r,createTransparentProxy:()=>o9r,defineLazy:()=>S_,esc:()=>Y2e,escapeRegex:()=>Uw,extend:()=>m4t,finalizeIssue:()=>lk,floatSafeRemainder:()=>MJe,getElementAtPath:()=>e9r,getEnumValues:()=>wle,getLengthableOrigin:()=>Ole,getParsedType:()=>i9r,getSizableOrigin:()=>Nle,hexToUint8Array:()=>u9r,isObject:()=>wJ,isPlainObject:()=>_j,issue:()=>AX,joinValues:()=>zu,jsonStringifyReplacer:()=>CX,merge:()=>a9r,mergeDefs:()=>i5,normalizeParams:()=>Hs,nullish:()=>uj,numKeys:()=>n9r,objectClone:()=>X5r,omit:()=>f4t,optionalKeys:()=>zJe,parsedType:()=>ip,partial:()=>g4t,pick:()=>d4t,prefixIssues:()=>mD,primitiveTypes:()=>UJe,promiseAllObject:()=>t9r,propertyKeyTypes:()=>Ple,randomString:()=>r9r,required:()=>y4t,safeExtend:()=>h4t,shallowClone:()=>$Je,slugify:()=>jJe,stringifyPrimitive:()=>qu,uint8ArrayToBase64:()=>S4t,uint8ArrayToBase64url:()=>l9r,uint8ArrayToHex:()=>p9r,unwrapMessage:()=>Ale});function G5r(e){return e}function H5r(e){return e}function K5r(e){}function Q5r(e){throw new Error("Unexpected value in exhaustive check")}function Z5r(e){}function wle(e){let r=Object.values(e).filter(s=>typeof s=="number");return Object.entries(e).filter(([s,l])=>r.indexOf(+s)===-1).map(([s,l])=>l)}function zu(e,r="|"){return e.map(i=>qu(i)).join(r)}function CX(e,r){return typeof r=="bigint"?r.toString():r}function DX(e){return{get value(){{let i=e();return Object.defineProperty(this,"value",{value:i}),i}throw new Error("cached value already set")}}}function uj(e){return e==null}function Ile(e){let r=e.startsWith("^")?1:0,i=e.endsWith("$")?e.length-1:e.length;return e.slice(r,i)}function MJe(e,r){let i=(e.toString().split(".")[1]||"").length,s=r.toString(),l=(s.split(".")[1]||"").length;if(l===0&&/\d?e-\d?/.test(s)){let b=s.match(/\d?e-(\d?)/);b?.[1]&&(l=Number.parseInt(b[1]))}let d=i>l?i:l,h=Number.parseInt(e.toFixed(d).replace(".","")),S=Number.parseInt(r.toFixed(d).replace(".",""));return h%S/10**d}var _4t=Symbol("evaluating");function S_(e,r,i){let s;Object.defineProperty(e,r,{get(){if(s!==_4t)return s===void 0&&(s=_4t,s=i()),s},set(l){Object.defineProperty(e,r,{value:l})},configurable:!0})}function X5r(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function pj(e,r,i){Object.defineProperty(e,r,{value:i,writable:!0,enumerable:!0,configurable:!0})}function i5(...e){let r={};for(let i of e){let s=Object.getOwnPropertyDescriptors(i);Object.assign(r,s)}return Object.defineProperties({},r)}function Y5r(e){return i5(e._zod.def)}function e9r(e,r){return r?r.reduce((i,s)=>i?.[s],e):e}function t9r(e){let r=Object.keys(e),i=r.map(s=>e[s]);return Promise.all(i).then(s=>{let l={};for(let d=0;d{};function wJ(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var BJe=DX(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function _j(e){if(wJ(e)===!1)return!1;let r=e.constructor;if(r===void 0||typeof r!="function")return!0;let i=r.prototype;return!(wJ(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function $Je(e){return _j(e)?{...e}:Array.isArray(e)?[...e]:e}function n9r(e){let r=0;for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&r++;return r}var i9r=e=>{let r=typeof e;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},Ple=new Set(["string","number","symbol"]),UJe=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Uw(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I2(e,r,i){let s=new e._zod.constr(r??e._zod.def);return(!r||i?.parent)&&(s._zod.parent=e),s}function Hs(e){let r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function o9r(e){let r;return new Proxy({},{get(i,s,l){return r??(r=e()),Reflect.get(r,s,l)},set(i,s,l,d){return r??(r=e()),Reflect.set(r,s,l,d)},has(i,s){return r??(r=e()),Reflect.has(r,s)},deleteProperty(i,s){return r??(r=e()),Reflect.deleteProperty(r,s)},ownKeys(i){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(i,s){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,s)},defineProperty(i,s,l){return r??(r=e()),Reflect.defineProperty(r,s,l)}})}function qu(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function zJe(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var qJe={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},JJe={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function d4t(e,r){let i=e._zod.def,s=i.checks;if(s&&s.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let d=i5(e._zod.def,{get shape(){let h={};for(let S in r){if(!(S in i.shape))throw new Error(`Unrecognized key: "${S}"`);r[S]&&(h[S]=i.shape[S])}return pj(this,"shape",h),h},checks:[]});return I2(e,d)}function f4t(e,r){let i=e._zod.def,s=i.checks;if(s&&s.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let d=i5(e._zod.def,{get shape(){let h={...e._zod.def.shape};for(let S in r){if(!(S in i.shape))throw new Error(`Unrecognized key: "${S}"`);r[S]&&delete h[S]}return pj(this,"shape",h),h},checks:[]});return I2(e,d)}function m4t(e,r){if(!_j(r))throw new Error("Invalid input to extend: expected a plain object");let i=e._zod.def.checks;if(i&&i.length>0){let d=e._zod.def.shape;for(let h in r)if(Object.getOwnPropertyDescriptor(d,h)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let l=i5(e._zod.def,{get shape(){let d={...e._zod.def.shape,...r};return pj(this,"shape",d),d}});return I2(e,l)}function h4t(e,r){if(!_j(r))throw new Error("Invalid input to safeExtend: expected a plain object");let i=i5(e._zod.def,{get shape(){let s={...e._zod.def.shape,...r};return pj(this,"shape",s),s}});return I2(e,i)}function a9r(e,r){let i=i5(e._zod.def,{get shape(){let s={...e._zod.def.shape,...r._zod.def.shape};return pj(this,"shape",s),s},get catchall(){return r._zod.def.catchall},checks:[]});return I2(e,i)}function g4t(e,r,i){let l=r._zod.def.checks;if(l&&l.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let h=i5(r._zod.def,{get shape(){let S=r._zod.def.shape,b={...S};if(i)for(let A in i){if(!(A in S))throw new Error(`Unrecognized key: "${A}"`);i[A]&&(b[A]=e?new e({type:"optional",innerType:S[A]}):S[A])}else for(let A in S)b[A]=e?new e({type:"optional",innerType:S[A]}):S[A];return pj(this,"shape",b),b},checks:[]});return I2(r,h)}function y4t(e,r,i){let s=i5(r._zod.def,{get shape(){let l=r._zod.def.shape,d={...l};if(i)for(let h in i){if(!(h in d))throw new Error(`Unrecognized key: "${h}"`);i[h]&&(d[h]=new e({type:"nonoptional",innerType:l[h]}))}else for(let h in l)d[h]=new e({type:"nonoptional",innerType:l[h]});return pj(this,"shape",d),d}});return I2(r,s)}function dj(e,r=0){if(e.aborted===!0)return!0;for(let i=r;i{var s;return(s=i).path??(s.path=[]),i.path.unshift(e),i})}function Ale(e){return typeof e=="string"?e:e?.message}function lk(e,r,i){let s={...e,path:e.path??[]};if(!e.message){let l=Ale(e.inst?._zod.def?.error?.(e))??Ale(r?.error?.(e))??Ale(i.customError?.(e))??Ale(i.localeError?.(e))??"Invalid input";s.message=l}return delete s.inst,delete s.continue,r?.reportInput||delete s.input,s}function Nle(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Ole(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ip(e){let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let i=e;if(i&&Object.getPrototypeOf(i)!==Object.prototype&&"constructor"in i&&i.constructor)return i.constructor.name}}return r}function AX(...e){let[r,i,s]=e;return typeof r=="string"?{message:r,code:"custom",input:i,inst:s}:{...r}}function s9r(e){return Object.entries(e).filter(([r,i])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function v4t(e){let r=atob(e),i=new Uint8Array(r.length);for(let s=0;sr.toString(16).padStart(2,"0")).join("")}var LJe=class{constructor(...r){}};var b4t=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,CX,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},tEe=ni("$ZodError",b4t),Fle=ni("$ZodError",b4t,{Parent:Error});function rEe(e,r=i=>i.message){let i={},s=[];for(let l of e.issues)l.path.length>0?(i[l.path[0]]=i[l.path[0]]||[],i[l.path[0]].push(r(l))):s.push(r(l));return{formErrors:s,fieldErrors:i}}function nEe(e,r=i=>i.message){let i={_errors:[]},s=l=>{for(let d of l.issues)if(d.code==="invalid_union"&&d.errors.length)d.errors.map(h=>s({issues:h}));else if(d.code==="invalid_key")s({issues:d.issues});else if(d.code==="invalid_element")s({issues:d.issues});else if(d.path.length===0)i._errors.push(r(d));else{let h=i,S=0;for(;S(r,i,s,l)=>{let d=s?Object.assign(s,{async:!1}):{async:!1},h=r._zod.run({value:i,issues:[]},d);if(h instanceof Promise)throw new NN;if(h.issues.length){let S=new(l?.Err??e)(h.issues.map(b=>lk(b,d,Gv())));throw eEe(S,l?.callee),S}return h.value},Lle=Rle(Fle),Mle=e=>async(r,i,s,l)=>{let d=s?Object.assign(s,{async:!0}):{async:!0},h=r._zod.run({value:i,issues:[]},d);if(h instanceof Promise&&(h=await h),h.issues.length){let S=new(l?.Err??e)(h.issues.map(b=>lk(b,d,Gv())));throw eEe(S,l?.callee),S}return h.value},jle=Mle(Fle),Ble=e=>(r,i,s)=>{let l=s?{...s,async:!1}:{async:!1},d=r._zod.run({value:i,issues:[]},l);if(d instanceof Promise)throw new NN;return d.issues.length?{success:!1,error:new(e??tEe)(d.issues.map(h=>lk(h,l,Gv())))}:{success:!0,data:d.value}},wX=Ble(Fle),$le=e=>async(r,i,s)=>{let l=s?Object.assign(s,{async:!0}):{async:!0},d=r._zod.run({value:i,issues:[]},l);return d instanceof Promise&&(d=await d),d.issues.length?{success:!1,error:new e(d.issues.map(h=>lk(h,l,Gv())))}:{success:!0,data:d.value}},Ule=$le(Fle),x4t=e=>(r,i,s)=>{let l=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Rle(e)(r,i,l)};var T4t=e=>(r,i,s)=>Rle(e)(r,i,s);var E4t=e=>async(r,i,s)=>{let l=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Mle(e)(r,i,l)};var k4t=e=>async(r,i,s)=>Mle(e)(r,i,s);var C4t=e=>(r,i,s)=>{let l=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Ble(e)(r,i,l)};var D4t=e=>(r,i,s)=>Ble(e)(r,i,s);var A4t=e=>async(r,i,s)=>{let l=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return $le(e)(r,i,l)};var w4t=e=>async(r,i,s)=>$le(e)(r,i,s);var zw={};J7(zw,{base64:()=>aVe,base64url:()=>iEe,bigint:()=>_Ve,boolean:()=>fVe,browserEmail:()=>S9r,cidrv4:()=>iVe,cidrv6:()=>oVe,cuid:()=>VJe,cuid2:()=>WJe,date:()=>cVe,datetime:()=>uVe,domain:()=>T9r,duration:()=>ZJe,e164:()=>sVe,email:()=>YJe,emoji:()=>eVe,extendedDuration:()=>d9r,guid:()=>XJe,hex:()=>E9r,hostname:()=>x9r,html5Email:()=>g9r,idnEmail:()=>v9r,integer:()=>dVe,ipv4:()=>tVe,ipv6:()=>rVe,ksuid:()=>KJe,lowercase:()=>gVe,mac:()=>nVe,md5_base64:()=>C9r,md5_base64url:()=>D9r,md5_hex:()=>k9r,nanoid:()=>QJe,null:()=>mVe,number:()=>oEe,rfc5322Email:()=>y9r,sha1_base64:()=>w9r,sha1_base64url:()=>I9r,sha1_hex:()=>A9r,sha256_base64:()=>N9r,sha256_base64url:()=>O9r,sha256_hex:()=>P9r,sha384_base64:()=>R9r,sha384_base64url:()=>L9r,sha384_hex:()=>F9r,sha512_base64:()=>j9r,sha512_base64url:()=>B9r,sha512_hex:()=>M9r,string:()=>pVe,time:()=>lVe,ulid:()=>GJe,undefined:()=>hVe,unicodeEmail:()=>I4t,uppercase:()=>yVe,uuid:()=>IJ,uuid4:()=>f9r,uuid6:()=>m9r,uuid7:()=>h9r,xid:()=>HJe});var VJe=/^[cC][^\s-]{8,}$/,WJe=/^[0-9a-z]+$/,GJe=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,HJe=/^[0-9a-vA-V]{20}$/,KJe=/^[A-Za-z0-9]{27}$/,QJe=/^[a-zA-Z0-9_-]{21}$/,ZJe=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,d9r=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,XJe=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,IJ=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,f9r=IJ(4),m9r=IJ(6),h9r=IJ(7),YJe=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,g9r=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,y9r=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,I4t=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,v9r=I4t,S9r=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,b9r="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function eVe(){return new RegExp(b9r,"u")}var tVe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,rVe=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,nVe=e=>{let r=Uw(e??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},iVe=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,oVe=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,aVe=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,iEe=/^[A-Za-z0-9_-]*$/,x9r=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,T9r=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,sVe=/^\+[1-9]\d{6,14}$/,P4t="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",cVe=new RegExp(`^${P4t}$`);function N4t(e){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function lVe(e){return new RegExp(`^${N4t(e)}$`)}function uVe(e){let r=N4t({precision:e.precision}),i=["Z"];e.local&&i.push(""),e.offset&&i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let s=`${r}(?:${i.join("|")})`;return new RegExp(`^${P4t}T(?:${s})$`)}var pVe=e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},_Ve=/^-?\d+n?$/,dVe=/^-?\d+$/,oEe=/^-?\d+(?:\.\d+)?$/,fVe=/^(?:true|false)$/i,mVe=/^null$/i;var hVe=/^undefined$/i;var gVe=/^[^A-Z]*$/,yVe=/^[^a-z]*$/,E9r=/^[0-9a-fA-F]*$/;function zle(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}function qle(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var k9r=/^[0-9a-fA-F]{32}$/,C9r=zle(22,"=="),D9r=qle(22),A9r=/^[0-9a-fA-F]{40}$/,w9r=zle(27,"="),I9r=qle(27),P9r=/^[0-9a-fA-F]{64}$/,N9r=zle(43,"="),O9r=qle(43),F9r=/^[0-9a-fA-F]{96}$/,R9r=zle(64,""),L9r=qle(64),M9r=/^[0-9a-fA-F]{128}$/,j9r=zle(86,"=="),B9r=qle(86);var rg=ni("$ZodCheck",(e,r)=>{var i;e._zod??(e._zod={}),e._zod.def=r,(i=e._zod).onattach??(i.onattach=[])}),F4t={number:"number",bigint:"bigint",object:"date"},vVe=ni("$ZodCheckLessThan",(e,r)=>{rg.init(e,r);let i=F4t[typeof r.value];e._zod.onattach.push(s=>{let l=s._zod.bag,d=(r.inclusive?l.maximum:l.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value{(r.inclusive?s.value<=r.value:s.value{rg.init(e,r);let i=F4t[typeof r.value];e._zod.onattach.push(s=>{let l=s._zod.bag,d=(r.inclusive?l.minimum:l.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>d&&(r.inclusive?l.minimum=r.value:l.exclusiveMinimum=r.value)}),e._zod.check=s=>{(r.inclusive?s.value>=r.value:s.value>r.value)||s.issues.push({origin:i,code:"too_small",minimum:typeof r.value=="object"?r.value.getTime():r.value,input:s.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),R4t=ni("$ZodCheckMultipleOf",(e,r)=>{rg.init(e,r),e._zod.onattach.push(i=>{var s;(s=i._zod.bag).multipleOf??(s.multipleOf=r.value)}),e._zod.check=i=>{if(typeof i.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof i.value=="bigint"?i.value%r.value===BigInt(0):MJe(i.value,r.value)===0)||i.issues.push({origin:typeof i.value,code:"not_multiple_of",divisor:r.value,input:i.value,inst:e,continue:!r.abort})}}),L4t=ni("$ZodCheckNumberFormat",(e,r)=>{rg.init(e,r),r.format=r.format||"float64";let i=r.format?.includes("int"),s=i?"int":"number",[l,d]=qJe[r.format];e._zod.onattach.push(h=>{let S=h._zod.bag;S.format=r.format,S.minimum=l,S.maximum=d,i&&(S.pattern=dVe)}),e._zod.check=h=>{let S=h.value;if(i){if(!Number.isInteger(S)){h.issues.push({expected:s,format:r.format,code:"invalid_type",continue:!1,input:S,inst:e});return}if(!Number.isSafeInteger(S)){S>0?h.issues.push({input:S,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,inclusive:!0,continue:!r.abort}):h.issues.push({input:S,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,inclusive:!0,continue:!r.abort});return}}Sd&&h.issues.push({origin:"number",input:S,code:"too_big",maximum:d,inclusive:!0,inst:e,continue:!r.abort})}}),M4t=ni("$ZodCheckBigIntFormat",(e,r)=>{rg.init(e,r);let[i,s]=JJe[r.format];e._zod.onattach.push(l=>{let d=l._zod.bag;d.format=r.format,d.minimum=i,d.maximum=s}),e._zod.check=l=>{let d=l.value;ds&&l.issues.push({origin:"bigint",input:d,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!r.abort})}}),j4t=ni("$ZodCheckMaxSize",(e,r)=>{var i;rg.init(e,r),(i=e._zod.def).when??(i.when=s=>{let l=s.value;return!uj(l)&&l.size!==void 0}),e._zod.onattach.push(s=>{let l=s._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum{let l=s.value;l.size<=r.maximum||s.issues.push({origin:Nle(l),code:"too_big",maximum:r.maximum,inclusive:!0,input:l,inst:e,continue:!r.abort})}}),B4t=ni("$ZodCheckMinSize",(e,r)=>{var i;rg.init(e,r),(i=e._zod.def).when??(i.when=s=>{let l=s.value;return!uj(l)&&l.size!==void 0}),e._zod.onattach.push(s=>{let l=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>l&&(s._zod.bag.minimum=r.minimum)}),e._zod.check=s=>{let l=s.value;l.size>=r.minimum||s.issues.push({origin:Nle(l),code:"too_small",minimum:r.minimum,inclusive:!0,input:l,inst:e,continue:!r.abort})}}),$4t=ni("$ZodCheckSizeEquals",(e,r)=>{var i;rg.init(e,r),(i=e._zod.def).when??(i.when=s=>{let l=s.value;return!uj(l)&&l.size!==void 0}),e._zod.onattach.push(s=>{let l=s._zod.bag;l.minimum=r.size,l.maximum=r.size,l.size=r.size}),e._zod.check=s=>{let l=s.value,d=l.size;if(d===r.size)return;let h=d>r.size;s.issues.push({origin:Nle(l),...h?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!r.abort})}}),U4t=ni("$ZodCheckMaxLength",(e,r)=>{var i;rg.init(e,r),(i=e._zod.def).when??(i.when=s=>{let l=s.value;return!uj(l)&&l.length!==void 0}),e._zod.onattach.push(s=>{let l=s._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum{let l=s.value;if(l.length<=r.maximum)return;let h=Ole(l);s.issues.push({origin:h,code:"too_big",maximum:r.maximum,inclusive:!0,input:l,inst:e,continue:!r.abort})}}),z4t=ni("$ZodCheckMinLength",(e,r)=>{var i;rg.init(e,r),(i=e._zod.def).when??(i.when=s=>{let l=s.value;return!uj(l)&&l.length!==void 0}),e._zod.onattach.push(s=>{let l=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>l&&(s._zod.bag.minimum=r.minimum)}),e._zod.check=s=>{let l=s.value;if(l.length>=r.minimum)return;let h=Ole(l);s.issues.push({origin:h,code:"too_small",minimum:r.minimum,inclusive:!0,input:l,inst:e,continue:!r.abort})}}),q4t=ni("$ZodCheckLengthEquals",(e,r)=>{var i;rg.init(e,r),(i=e._zod.def).when??(i.when=s=>{let l=s.value;return!uj(l)&&l.length!==void 0}),e._zod.onattach.push(s=>{let l=s._zod.bag;l.minimum=r.length,l.maximum=r.length,l.length=r.length}),e._zod.check=s=>{let l=s.value,d=l.length;if(d===r.length)return;let h=Ole(l),S=d>r.length;s.issues.push({origin:h,...S?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!r.abort})}}),Jle=ni("$ZodCheckStringFormat",(e,r)=>{var i,s;rg.init(e,r),e._zod.onattach.push(l=>{let d=l._zod.bag;d.format=r.format,r.pattern&&(d.patterns??(d.patterns=new Set),d.patterns.add(r.pattern))}),r.pattern?(i=e._zod).check??(i.check=l=>{r.pattern.lastIndex=0,!r.pattern.test(l.value)&&l.issues.push({origin:"string",code:"invalid_format",format:r.format,input:l.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(s=e._zod).check??(s.check=()=>{})}),J4t=ni("$ZodCheckRegex",(e,r)=>{Jle.init(e,r),e._zod.check=i=>{r.pattern.lastIndex=0,!r.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),V4t=ni("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=gVe),Jle.init(e,r)}),W4t=ni("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=yVe),Jle.init(e,r)}),G4t=ni("$ZodCheckIncludes",(e,r)=>{rg.init(e,r);let i=Uw(r.includes),s=new RegExp(typeof r.position=="number"?`^.{${r.position}}${i}`:i);r.pattern=s,e._zod.onattach.push(l=>{let d=l._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(s)}),e._zod.check=l=>{l.value.includes(r.includes,r.position)||l.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:l.value,inst:e,continue:!r.abort})}}),H4t=ni("$ZodCheckStartsWith",(e,r)=>{rg.init(e,r);let i=new RegExp(`^${Uw(r.prefix)}.*`);r.pattern??(r.pattern=i),e._zod.onattach.push(s=>{let l=s._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(i)}),e._zod.check=s=>{s.value.startsWith(r.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:s.value,inst:e,continue:!r.abort})}}),K4t=ni("$ZodCheckEndsWith",(e,r)=>{rg.init(e,r);let i=new RegExp(`.*${Uw(r.suffix)}$`);r.pattern??(r.pattern=i),e._zod.onattach.push(s=>{let l=s._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(i)}),e._zod.check=s=>{s.value.endsWith(r.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:s.value,inst:e,continue:!r.abort})}});function O4t(e,r,i){e.issues.length&&r.issues.push(...mD(i,e.issues))}var Q4t=ni("$ZodCheckProperty",(e,r)=>{rg.init(e,r),e._zod.check=i=>{let s=r.schema._zod.run({value:i.value[r.property],issues:[]},{});if(s instanceof Promise)return s.then(l=>O4t(l,i,r.property));O4t(s,i,r.property)}}),Z4t=ni("$ZodCheckMimeType",(e,r)=>{rg.init(e,r);let i=new Set(r.mime);e._zod.onattach.push(s=>{s._zod.bag.mime=r.mime}),e._zod.check=s=>{i.has(s.value.type)||s.issues.push({code:"invalid_value",values:r.mime,input:s.value.type,inst:e,continue:!r.abort})}}),X4t=ni("$ZodCheckOverwrite",(e,r)=>{rg.init(e,r),e._zod.check=i=>{i.value=r.tx(i.value)}});var aEe=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let s=r.split(` +`).filter(h=>h),l=Math.min(...s.map(h=>h.length-h.trimStart().length)),d=s.map(h=>h.slice(l)).map(h=>" ".repeat(this.indent*2)+h);for(let h of d)this.content.push(h)}compile(){let r=Function,i=this?.args,l=[...(this?.content??[""]).map(d=>` ${d}`)];return new r(...i,l.join(` +`))}};var e3t={major:4,minor:3,patch:6};var Ip=ni("$ZodType",(e,r)=>{var i;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=e3t;let s=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&s.unshift(e);for(let l of s)for(let d of l._zod.onattach)d(e);if(s.length===0)(i=e._zod).deferred??(i.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let l=(h,S,b)=>{let A=dj(h),L;for(let V of S){if(V._zod.def.when){if(!V._zod.def.when(h))continue}else if(A)continue;let j=h.issues.length,ie=V._zod.check(h);if(ie instanceof Promise&&b?.async===!1)throw new NN;if(L||ie instanceof Promise)L=(L??Promise.resolve()).then(async()=>{await ie,h.issues.length!==j&&(A||(A=dj(h,j)))});else{if(h.issues.length===j)continue;A||(A=dj(h,j))}}return L?L.then(()=>h):h},d=(h,S,b)=>{if(dj(h))return h.aborted=!0,h;let A=l(S,s,b);if(A instanceof Promise){if(b.async===!1)throw new NN;return A.then(L=>e._zod.parse(L,b))}return e._zod.parse(A,b)};e._zod.run=(h,S)=>{if(S.skipChecks)return e._zod.parse(h,S);if(S.direction==="backward"){let A=e._zod.parse({value:h.value,issues:[]},{...S,skipChecks:!0});return A instanceof Promise?A.then(L=>d(L,h,S)):d(A,h,S)}let b=e._zod.parse(h,S);if(b instanceof Promise){if(S.async===!1)throw new NN;return b.then(A=>l(A,s,S))}return l(b,s,S)}}S_(e,"~standard",()=>({validate:l=>{try{let d=wX(e,l);return d.success?{value:d.data}:{issues:d.error?.issues}}catch{return Ule(e,l).then(h=>h.success?{value:h.data}:{issues:h.error?.issues})}},vendor:"zod",version:1}))}),PJ=ni("$ZodString",(e,r)=>{Ip.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??pVe(e._zod.bag),e._zod.parse=(i,s)=>{if(r.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),Ah=ni("$ZodStringFormat",(e,r)=>{Jle.init(e,r),PJ.init(e,r)}),xVe=ni("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=XJe),Ah.init(e,r)}),TVe=ni("$ZodUUID",(e,r)=>{if(r.version){let s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(s===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=IJ(s))}else r.pattern??(r.pattern=IJ());Ah.init(e,r)}),EVe=ni("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=YJe),Ah.init(e,r)}),kVe=ni("$ZodURL",(e,r)=>{Ah.init(e,r),e._zod.check=i=>{try{let s=i.value.trim(),l=new URL(s);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(l.hostname)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:i.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(l.protocol.endsWith(":")?l.protocol.slice(0,-1):l.protocol)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:i.value,inst:e,continue:!r.abort})),r.normalize?i.value=l.href:i.value=s;return}catch{i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:e,continue:!r.abort})}}}),CVe=ni("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=eVe()),Ah.init(e,r)}),DVe=ni("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=QJe),Ah.init(e,r)}),AVe=ni("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=VJe),Ah.init(e,r)}),wVe=ni("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=WJe),Ah.init(e,r)}),IVe=ni("$ZodULID",(e,r)=>{r.pattern??(r.pattern=GJe),Ah.init(e,r)}),PVe=ni("$ZodXID",(e,r)=>{r.pattern??(r.pattern=HJe),Ah.init(e,r)}),NVe=ni("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=KJe),Ah.init(e,r)}),OVe=ni("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=uVe(r)),Ah.init(e,r)}),FVe=ni("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=cVe),Ah.init(e,r)}),RVe=ni("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=lVe(r)),Ah.init(e,r)}),LVe=ni("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=ZJe),Ah.init(e,r)}),MVe=ni("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=tVe),Ah.init(e,r),e._zod.bag.format="ipv4"}),jVe=ni("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=rVe),Ah.init(e,r),e._zod.bag.format="ipv6",e._zod.check=i=>{try{new URL(`http://[${i.value}]`)}catch{i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:e,continue:!r.abort})}}}),BVe=ni("$ZodMAC",(e,r)=>{r.pattern??(r.pattern=nVe(r.delimiter)),Ah.init(e,r),e._zod.bag.format="mac"}),$Ve=ni("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=iVe),Ah.init(e,r)}),UVe=ni("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=oVe),Ah.init(e,r),e._zod.check=i=>{let s=i.value.split("/");try{if(s.length!==2)throw new Error;let[l,d]=s;if(!d)throw new Error;let h=Number(d);if(`${h}`!==d)throw new Error;if(h<0||h>128)throw new Error;new URL(`http://[${l}]`)}catch{i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:e,continue:!r.abort})}}});function _3t(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var zVe=ni("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=aVe),Ah.init(e,r),e._zod.bag.contentEncoding="base64",e._zod.check=i=>{_3t(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:e,continue:!r.abort})}});function $9r(e){if(!iEe.test(e))return!1;let r=e.replace(/[-_]/g,s=>s==="-"?"+":"/"),i=r.padEnd(Math.ceil(r.length/4)*4,"=");return _3t(i)}var qVe=ni("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=iEe),Ah.init(e,r),e._zod.bag.contentEncoding="base64url",e._zod.check=i=>{$9r(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:e,continue:!r.abort})}}),JVe=ni("$ZodE164",(e,r)=>{r.pattern??(r.pattern=sVe),Ah.init(e,r)});function U9r(e,r=null){try{let i=e.split(".");if(i.length!==3)return!1;let[s]=i;if(!s)return!1;let l=JSON.parse(atob(s));return!("typ"in l&&l?.typ!=="JWT"||!l.alg||r&&(!("alg"in l)||l.alg!==r))}catch{return!1}}var VVe=ni("$ZodJWT",(e,r)=>{Ah.init(e,r),e._zod.check=i=>{U9r(i.value,r.alg)||i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:e,continue:!r.abort})}}),WVe=ni("$ZodCustomStringFormat",(e,r)=>{Ah.init(e,r),e._zod.check=i=>{r.fn(i.value)||i.issues.push({code:"invalid_format",format:r.format,input:i.value,inst:e,continue:!r.abort})}}),_Ee=ni("$ZodNumber",(e,r)=>{Ip.init(e,r),e._zod.pattern=e._zod.bag.pattern??oEe,e._zod.parse=(i,s)=>{if(r.coerce)try{i.value=Number(i.value)}catch{}let l=i.value;if(typeof l=="number"&&!Number.isNaN(l)&&Number.isFinite(l))return i;let d=typeof l=="number"?Number.isNaN(l)?"NaN":Number.isFinite(l)?void 0:"Infinity":void 0;return i.issues.push({expected:"number",code:"invalid_type",input:l,inst:e,...d?{received:d}:{}}),i}}),GVe=ni("$ZodNumberFormat",(e,r)=>{L4t.init(e,r),_Ee.init(e,r)}),Vle=ni("$ZodBoolean",(e,r)=>{Ip.init(e,r),e._zod.pattern=fVe,e._zod.parse=(i,s)=>{if(r.coerce)try{i.value=!!i.value}catch{}let l=i.value;return typeof l=="boolean"||i.issues.push({expected:"boolean",code:"invalid_type",input:l,inst:e}),i}}),dEe=ni("$ZodBigInt",(e,r)=>{Ip.init(e,r),e._zod.pattern=_Ve,e._zod.parse=(i,s)=>{if(r.coerce)try{i.value=BigInt(i.value)}catch{}return typeof i.value=="bigint"||i.issues.push({expected:"bigint",code:"invalid_type",input:i.value,inst:e}),i}}),HVe=ni("$ZodBigIntFormat",(e,r)=>{M4t.init(e,r),dEe.init(e,r)}),KVe=ni("$ZodSymbol",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{let l=i.value;return typeof l=="symbol"||i.issues.push({expected:"symbol",code:"invalid_type",input:l,inst:e}),i}}),QVe=ni("$ZodUndefined",(e,r)=>{Ip.init(e,r),e._zod.pattern=hVe,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(i,s)=>{let l=i.value;return typeof l>"u"||i.issues.push({expected:"undefined",code:"invalid_type",input:l,inst:e}),i}}),ZVe=ni("$ZodNull",(e,r)=>{Ip.init(e,r),e._zod.pattern=mVe,e._zod.values=new Set([null]),e._zod.parse=(i,s)=>{let l=i.value;return l===null||i.issues.push({expected:"null",code:"invalid_type",input:l,inst:e}),i}}),XVe=ni("$ZodAny",(e,r)=>{Ip.init(e,r),e._zod.parse=i=>i}),YVe=ni("$ZodUnknown",(e,r)=>{Ip.init(e,r),e._zod.parse=i=>i}),eWe=ni("$ZodNever",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>(i.issues.push({expected:"never",code:"invalid_type",input:i.value,inst:e}),i)}),tWe=ni("$ZodVoid",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{let l=i.value;return typeof l>"u"||i.issues.push({expected:"void",code:"invalid_type",input:l,inst:e}),i}}),rWe=ni("$ZodDate",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{if(r.coerce)try{i.value=new Date(i.value)}catch{}let l=i.value,d=l instanceof Date;return d&&!Number.isNaN(l.getTime())||i.issues.push({expected:"date",code:"invalid_type",input:l,...d?{received:"Invalid Date"}:{},inst:e}),i}});function t3t(e,r,i){e.issues.length&&r.issues.push(...mD(i,e.issues)),r.value[i]=e.value}var nWe=ni("$ZodArray",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{let l=i.value;if(!Array.isArray(l))return i.issues.push({expected:"array",code:"invalid_type",input:l,inst:e}),i;i.value=Array(l.length);let d=[];for(let h=0;ht3t(A,i,h))):t3t(b,i,h)}return d.length?Promise.all(d).then(()=>i):i}});function pEe(e,r,i,s,l){if(e.issues.length){if(l&&!(i in s))return;r.issues.push(...mD(i,e.issues))}e.value===void 0?i in s&&(r.value[i]=void 0):r.value[i]=e.value}function d3t(e){let r=Object.keys(e.shape);for(let s of r)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);let i=zJe(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(i)}}function f3t(e,r,i,s,l,d){let h=[],S=l.keySet,b=l.catchall._zod,A=b.def.type,L=b.optout==="optional";for(let V in r){if(S.has(V))continue;if(A==="never"){h.push(V);continue}let j=b.run({value:r[V],issues:[]},s);j instanceof Promise?e.push(j.then(ie=>pEe(ie,i,V,r,L))):pEe(j,i,V,r,L)}return h.length&&i.issues.push({code:"unrecognized_keys",keys:h,input:r,inst:d}),e.length?Promise.all(e).then(()=>i):i}var m3t=ni("$ZodObject",(e,r)=>{if(Ip.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let S=r.shape;Object.defineProperty(r,"shape",{get:()=>{let b={...S};return Object.defineProperty(r,"shape",{value:b}),b}})}let s=DX(()=>d3t(r));S_(e._zod,"propValues",()=>{let S=r.shape,b={};for(let A in S){let L=S[A]._zod;if(L.values){b[A]??(b[A]=new Set);for(let V of L.values)b[A].add(V)}}return b});let l=wJ,d=r.catchall,h;e._zod.parse=(S,b)=>{h??(h=s.value);let A=S.value;if(!l(A))return S.issues.push({expected:"object",code:"invalid_type",input:A,inst:e}),S;S.value={};let L=[],V=h.shape;for(let j of h.keys){let ie=V[j],te=ie._zod.optout==="optional",X=ie._zod.run({value:A[j],issues:[]},b);X instanceof Promise?L.push(X.then(Re=>pEe(Re,S,j,A,te))):pEe(X,S,j,A,te)}return d?f3t(L,A,S,b,s.value,e):L.length?Promise.all(L).then(()=>S):S}}),h3t=ni("$ZodObjectJIT",(e,r)=>{m3t.init(e,r);let i=e._zod.parse,s=DX(()=>d3t(r)),l=j=>{let ie=new aEe(["shape","payload","ctx"]),te=s.value,X=$e=>{let xt=Y2e($e);return`shape[${xt}]._zod.run({ value: input[${xt}], issues: [] }, ctx)`};ie.write("const input = payload.value;");let Re=Object.create(null),Je=0;for(let $e of te.keys)Re[$e]=`key_${Je++}`;ie.write("const newResult = {};");for(let $e of te.keys){let xt=Re[$e],tr=Y2e($e),wt=j[$e]?._zod?.optout==="optional";ie.write(`const ${xt} = ${X($e)};`),wt?ie.write(` + if (${xt}.issues.length) { + if (${tr} in input) { + payload.issues = payload.issues.concat(${xt}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${tr}, ...iss.path] : [${tr}] + }))); + } + } + + if (${xt}.value === undefined) { + if (${tr} in input) { + newResult[${tr}] = undefined; + } + } else { + newResult[${tr}] = ${xt}.value; + } + + `):ie.write(` + if (${xt}.issues.length) { + payload.issues = payload.issues.concat(${xt}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${tr}, ...iss.path] : [${tr}] + }))); + } + + if (${xt}.value === undefined) { + if (${tr} in input) { + newResult[${tr}] = undefined; + } + } else { + newResult[${tr}] = ${xt}.value; + } + + `)}ie.write("payload.value = newResult;"),ie.write("return payload;");let pt=ie.compile();return($e,xt)=>pt(j,$e,xt)},d,h=wJ,S=!Z2e.jitless,A=S&&BJe.value,L=r.catchall,V;e._zod.parse=(j,ie)=>{V??(V=s.value);let te=j.value;return h(te)?S&&A&&ie?.async===!1&&ie.jitless!==!0?(d||(d=l(r.shape)),j=d(j,ie),L?f3t([],te,j,ie,V,e):j):i(j,ie):(j.issues.push({expected:"object",code:"invalid_type",input:te,inst:e}),j)}});function r3t(e,r,i,s){for(let d of e)if(d.issues.length===0)return r.value=d.value,r;let l=e.filter(d=>!dj(d));return l.length===1?(r.value=l[0].value,l[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:i,errors:e.map(d=>d.issues.map(h=>lk(h,s,Gv())))}),r)}var Wle=ni("$ZodUnion",(e,r)=>{Ip.init(e,r),S_(e._zod,"optin",()=>r.options.some(l=>l._zod.optin==="optional")?"optional":void 0),S_(e._zod,"optout",()=>r.options.some(l=>l._zod.optout==="optional")?"optional":void 0),S_(e._zod,"values",()=>{if(r.options.every(l=>l._zod.values))return new Set(r.options.flatMap(l=>Array.from(l._zod.values)))}),S_(e._zod,"pattern",()=>{if(r.options.every(l=>l._zod.pattern)){let l=r.options.map(d=>d._zod.pattern);return new RegExp(`^(${l.map(d=>Ile(d.source)).join("|")})$`)}});let i=r.options.length===1,s=r.options[0]._zod.run;e._zod.parse=(l,d)=>{if(i)return s(l,d);let h=!1,S=[];for(let b of r.options){let A=b._zod.run({value:l.value,issues:[]},d);if(A instanceof Promise)S.push(A),h=!0;else{if(A.issues.length===0)return A;S.push(A)}}return h?Promise.all(S).then(b=>r3t(b,l,e,d)):r3t(S,l,e,d)}});function n3t(e,r,i,s){let l=e.filter(d=>d.issues.length===0);return l.length===1?(r.value=l[0].value,r):(l.length===0?r.issues.push({code:"invalid_union",input:r.value,inst:i,errors:e.map(d=>d.issues.map(h=>lk(h,s,Gv())))}):r.issues.push({code:"invalid_union",input:r.value,inst:i,errors:[],inclusive:!1}),r)}var iWe=ni("$ZodXor",(e,r)=>{Wle.init(e,r),r.inclusive=!1;let i=r.options.length===1,s=r.options[0]._zod.run;e._zod.parse=(l,d)=>{if(i)return s(l,d);let h=!1,S=[];for(let b of r.options){let A=b._zod.run({value:l.value,issues:[]},d);A instanceof Promise?(S.push(A),h=!0):S.push(A)}return h?Promise.all(S).then(b=>n3t(b,l,e,d)):n3t(S,l,e,d)}}),oWe=ni("$ZodDiscriminatedUnion",(e,r)=>{r.inclusive=!1,Wle.init(e,r);let i=e._zod.parse;S_(e._zod,"propValues",()=>{let l={};for(let d of r.options){let h=d._zod.propValues;if(!h||Object.keys(h).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(d)}"`);for(let[S,b]of Object.entries(h)){l[S]||(l[S]=new Set);for(let A of b)l[S].add(A)}}return l});let s=DX(()=>{let l=r.options,d=new Map;for(let h of l){let S=h._zod.propValues?.[r.discriminator];if(!S||S.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(h)}"`);for(let b of S){if(d.has(b))throw new Error(`Duplicate discriminator value "${String(b)}"`);d.set(b,h)}}return d});e._zod.parse=(l,d)=>{let h=l.value;if(!wJ(h))return l.issues.push({code:"invalid_type",expected:"object",input:h,inst:e}),l;let S=s.value.get(h?.[r.discriminator]);return S?S._zod.run(l,d):r.unionFallback?i(l,d):(l.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,input:h,path:[r.discriminator],inst:e}),l)}}),aWe=ni("$ZodIntersection",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{let l=i.value,d=r.left._zod.run({value:l,issues:[]},s),h=r.right._zod.run({value:l,issues:[]},s);return d instanceof Promise||h instanceof Promise?Promise.all([d,h]).then(([b,A])=>i3t(i,b,A)):i3t(i,d,h)}});function bVe(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(_j(e)&&_j(r)){let i=Object.keys(r),s=Object.keys(e).filter(d=>i.indexOf(d)!==-1),l={...e,...r};for(let d of s){let h=bVe(e[d],r[d]);if(!h.valid)return{valid:!1,mergeErrorPath:[d,...h.mergeErrorPath]};l[d]=h.data}return{valid:!0,data:l}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let i=[];for(let s=0;sS.l&&S.r).map(([S])=>S);if(d.length&&l&&e.issues.push({...l,keys:d}),dj(e))return e;let h=bVe(r.value,i.value);if(!h.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(h.mergeErrorPath)}`);return e.value=h.data,e}var fEe=ni("$ZodTuple",(e,r)=>{Ip.init(e,r);let i=r.items;e._zod.parse=(s,l)=>{let d=s.value;if(!Array.isArray(d))return s.issues.push({input:d,inst:e,expected:"tuple",code:"invalid_type"}),s;s.value=[];let h=[],S=[...i].reverse().findIndex(L=>L._zod.optin!=="optional"),b=S===-1?0:i.length-S;if(!r.rest){let L=d.length>i.length,V=d.length=d.length&&A>=b)continue;let V=L._zod.run({value:d[A],issues:[]},l);V instanceof Promise?h.push(V.then(j=>sEe(j,s,A))):sEe(V,s,A)}if(r.rest){let L=d.slice(i.length);for(let V of L){A++;let j=r.rest._zod.run({value:V,issues:[]},l);j instanceof Promise?h.push(j.then(ie=>sEe(ie,s,A))):sEe(j,s,A)}}return h.length?Promise.all(h).then(()=>s):s}});function sEe(e,r,i){e.issues.length&&r.issues.push(...mD(i,e.issues)),r.value[i]=e.value}var sWe=ni("$ZodRecord",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{let l=i.value;if(!_j(l))return i.issues.push({expected:"record",code:"invalid_type",input:l,inst:e}),i;let d=[],h=r.keyType._zod.values;if(h){i.value={};let S=new Set;for(let A of h)if(typeof A=="string"||typeof A=="number"||typeof A=="symbol"){S.add(typeof A=="number"?A.toString():A);let L=r.valueType._zod.run({value:l[A],issues:[]},s);L instanceof Promise?d.push(L.then(V=>{V.issues.length&&i.issues.push(...mD(A,V.issues)),i.value[A]=V.value})):(L.issues.length&&i.issues.push(...mD(A,L.issues)),i.value[A]=L.value)}let b;for(let A in l)S.has(A)||(b=b??[],b.push(A));b&&b.length>0&&i.issues.push({code:"unrecognized_keys",input:l,inst:e,keys:b})}else{i.value={};for(let S of Reflect.ownKeys(l)){if(S==="__proto__")continue;let b=r.keyType._zod.run({value:S,issues:[]},s);if(b instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof S=="string"&&oEe.test(S)&&b.issues.length){let V=r.keyType._zod.run({value:Number(S),issues:[]},s);if(V instanceof Promise)throw new Error("Async schemas not supported in object keys currently");V.issues.length===0&&(b=V)}if(b.issues.length){r.mode==="loose"?i.value[S]=l[S]:i.issues.push({code:"invalid_key",origin:"record",issues:b.issues.map(V=>lk(V,s,Gv())),input:S,path:[S],inst:e});continue}let L=r.valueType._zod.run({value:l[S],issues:[]},s);L instanceof Promise?d.push(L.then(V=>{V.issues.length&&i.issues.push(...mD(S,V.issues)),i.value[b.value]=V.value})):(L.issues.length&&i.issues.push(...mD(S,L.issues)),i.value[b.value]=L.value)}}return d.length?Promise.all(d).then(()=>i):i}}),cWe=ni("$ZodMap",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{let l=i.value;if(!(l instanceof Map))return i.issues.push({expected:"map",code:"invalid_type",input:l,inst:e}),i;let d=[];i.value=new Map;for(let[h,S]of l){let b=r.keyType._zod.run({value:h,issues:[]},s),A=r.valueType._zod.run({value:S,issues:[]},s);b instanceof Promise||A instanceof Promise?d.push(Promise.all([b,A]).then(([L,V])=>{o3t(L,V,i,h,l,e,s)})):o3t(b,A,i,h,l,e,s)}return d.length?Promise.all(d).then(()=>i):i}});function o3t(e,r,i,s,l,d,h){e.issues.length&&(Ple.has(typeof s)?i.issues.push(...mD(s,e.issues)):i.issues.push({code:"invalid_key",origin:"map",input:l,inst:d,issues:e.issues.map(S=>lk(S,h,Gv()))})),r.issues.length&&(Ple.has(typeof s)?i.issues.push(...mD(s,r.issues)):i.issues.push({origin:"map",code:"invalid_element",input:l,inst:d,key:s,issues:r.issues.map(S=>lk(S,h,Gv()))})),i.value.set(e.value,r.value)}var lWe=ni("$ZodSet",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{let l=i.value;if(!(l instanceof Set))return i.issues.push({input:l,inst:e,expected:"set",code:"invalid_type"}),i;let d=[];i.value=new Set;for(let h of l){let S=r.valueType._zod.run({value:h,issues:[]},s);S instanceof Promise?d.push(S.then(b=>a3t(b,i))):a3t(S,i)}return d.length?Promise.all(d).then(()=>i):i}});function a3t(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}var uWe=ni("$ZodEnum",(e,r)=>{Ip.init(e,r);let i=wle(r.entries),s=new Set(i);e._zod.values=s,e._zod.pattern=new RegExp(`^(${i.filter(l=>Ple.has(typeof l)).map(l=>typeof l=="string"?Uw(l):l.toString()).join("|")})$`),e._zod.parse=(l,d)=>{let h=l.value;return s.has(h)||l.issues.push({code:"invalid_value",values:i,input:h,inst:e}),l}}),pWe=ni("$ZodLiteral",(e,r)=>{if(Ip.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");let i=new Set(r.values);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.values.map(s=>typeof s=="string"?Uw(s):s?Uw(s.toString()):String(s)).join("|")})$`),e._zod.parse=(s,l)=>{let d=s.value;return i.has(d)||s.issues.push({code:"invalid_value",values:r.values,input:d,inst:e}),s}}),_We=ni("$ZodFile",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{let l=i.value;return l instanceof File||i.issues.push({expected:"file",code:"invalid_type",input:l,inst:e}),i}}),dWe=ni("$ZodTransform",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{if(s.direction==="backward")throw new AJ(e.constructor.name);let l=r.transform(i.value,i);if(s.async)return(l instanceof Promise?l:Promise.resolve(l)).then(h=>(i.value=h,i));if(l instanceof Promise)throw new NN;return i.value=l,i}});function s3t(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}var mEe=ni("$ZodOptional",(e,r)=>{Ip.init(e,r),e._zod.optin="optional",e._zod.optout="optional",S_(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),S_(e._zod,"pattern",()=>{let i=r.innerType._zod.pattern;return i?new RegExp(`^(${Ile(i.source)})?$`):void 0}),e._zod.parse=(i,s)=>{if(r.innerType._zod.optin==="optional"){let l=r.innerType._zod.run(i,s);return l instanceof Promise?l.then(d=>s3t(d,i.value)):s3t(l,i.value)}return i.value===void 0?i:r.innerType._zod.run(i,s)}}),fWe=ni("$ZodExactOptional",(e,r)=>{mEe.init(e,r),S_(e._zod,"values",()=>r.innerType._zod.values),S_(e._zod,"pattern",()=>r.innerType._zod.pattern),e._zod.parse=(i,s)=>r.innerType._zod.run(i,s)}),mWe=ni("$ZodNullable",(e,r)=>{Ip.init(e,r),S_(e._zod,"optin",()=>r.innerType._zod.optin),S_(e._zod,"optout",()=>r.innerType._zod.optout),S_(e._zod,"pattern",()=>{let i=r.innerType._zod.pattern;return i?new RegExp(`^(${Ile(i.source)}|null)$`):void 0}),S_(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(i,s)=>i.value===null?i:r.innerType._zod.run(i,s)}),hWe=ni("$ZodDefault",(e,r)=>{Ip.init(e,r),e._zod.optin="optional",S_(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(i,s)=>{if(s.direction==="backward")return r.innerType._zod.run(i,s);if(i.value===void 0)return i.value=r.defaultValue,i;let l=r.innerType._zod.run(i,s);return l instanceof Promise?l.then(d=>c3t(d,r)):c3t(l,r)}});function c3t(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}var gWe=ni("$ZodPrefault",(e,r)=>{Ip.init(e,r),e._zod.optin="optional",S_(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(i,s)=>(s.direction==="backward"||i.value===void 0&&(i.value=r.defaultValue),r.innerType._zod.run(i,s))}),yWe=ni("$ZodNonOptional",(e,r)=>{Ip.init(e,r),S_(e._zod,"values",()=>{let i=r.innerType._zod.values;return i?new Set([...i].filter(s=>s!==void 0)):void 0}),e._zod.parse=(i,s)=>{let l=r.innerType._zod.run(i,s);return l instanceof Promise?l.then(d=>l3t(d,e)):l3t(l,e)}});function l3t(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}var vWe=ni("$ZodSuccess",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{if(s.direction==="backward")throw new AJ("ZodSuccess");let l=r.innerType._zod.run(i,s);return l instanceof Promise?l.then(d=>(i.value=d.issues.length===0,i)):(i.value=l.issues.length===0,i)}}),SWe=ni("$ZodCatch",(e,r)=>{Ip.init(e,r),S_(e._zod,"optin",()=>r.innerType._zod.optin),S_(e._zod,"optout",()=>r.innerType._zod.optout),S_(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(i,s)=>{if(s.direction==="backward")return r.innerType._zod.run(i,s);let l=r.innerType._zod.run(i,s);return l instanceof Promise?l.then(d=>(i.value=d.value,d.issues.length&&(i.value=r.catchValue({...i,error:{issues:d.issues.map(h=>lk(h,s,Gv()))},input:i.value}),i.issues=[]),i)):(i.value=l.value,l.issues.length&&(i.value=r.catchValue({...i,error:{issues:l.issues.map(d=>lk(d,s,Gv()))},input:i.value}),i.issues=[]),i)}}),bWe=ni("$ZodNaN",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>((typeof i.value!="number"||!Number.isNaN(i.value))&&i.issues.push({input:i.value,inst:e,expected:"nan",code:"invalid_type"}),i)}),xWe=ni("$ZodPipe",(e,r)=>{Ip.init(e,r),S_(e._zod,"values",()=>r.in._zod.values),S_(e._zod,"optin",()=>r.in._zod.optin),S_(e._zod,"optout",()=>r.out._zod.optout),S_(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(i,s)=>{if(s.direction==="backward"){let d=r.out._zod.run(i,s);return d instanceof Promise?d.then(h=>cEe(h,r.in,s)):cEe(d,r.in,s)}let l=r.in._zod.run(i,s);return l instanceof Promise?l.then(d=>cEe(d,r.out,s)):cEe(l,r.out,s)}});function cEe(e,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},i)}var Gle=ni("$ZodCodec",(e,r)=>{Ip.init(e,r),S_(e._zod,"values",()=>r.in._zod.values),S_(e._zod,"optin",()=>r.in._zod.optin),S_(e._zod,"optout",()=>r.out._zod.optout),S_(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(i,s)=>{if((s.direction||"forward")==="forward"){let d=r.in._zod.run(i,s);return d instanceof Promise?d.then(h=>lEe(h,r,s)):lEe(d,r,s)}else{let d=r.out._zod.run(i,s);return d instanceof Promise?d.then(h=>lEe(h,r,s)):lEe(d,r,s)}}});function lEe(e,r,i){if(e.issues.length)return e.aborted=!0,e;if((i.direction||"forward")==="forward"){let l=r.transform(e.value,e);return l instanceof Promise?l.then(d=>uEe(e,d,r.out,i)):uEe(e,l,r.out,i)}else{let l=r.reverseTransform(e.value,e);return l instanceof Promise?l.then(d=>uEe(e,d,r.in,i)):uEe(e,l,r.in,i)}}function uEe(e,r,i,s){return e.issues.length?(e.aborted=!0,e):i._zod.run({value:r,issues:e.issues},s)}var TWe=ni("$ZodReadonly",(e,r)=>{Ip.init(e,r),S_(e._zod,"propValues",()=>r.innerType._zod.propValues),S_(e._zod,"values",()=>r.innerType._zod.values),S_(e._zod,"optin",()=>r.innerType?._zod?.optin),S_(e._zod,"optout",()=>r.innerType?._zod?.optout),e._zod.parse=(i,s)=>{if(s.direction==="backward")return r.innerType._zod.run(i,s);let l=r.innerType._zod.run(i,s);return l instanceof Promise?l.then(u3t):u3t(l)}});function u3t(e){return e.value=Object.freeze(e.value),e}var EWe=ni("$ZodTemplateLiteral",(e,r)=>{Ip.init(e,r);let i=[];for(let s of r.parts)if(typeof s=="object"&&s!==null){if(!s._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...s._zod.traits].shift()}`);let l=s._zod.pattern instanceof RegExp?s._zod.pattern.source:s._zod.pattern;if(!l)throw new Error(`Invalid template literal part: ${s._zod.traits}`);let d=l.startsWith("^")?1:0,h=l.endsWith("$")?l.length-1:l.length;i.push(l.slice(d,h))}else if(s===null||UJe.has(typeof s))i.push(Uw(`${s}`));else throw new Error(`Invalid template literal part: ${s}`);e._zod.pattern=new RegExp(`^${i.join("")}$`),e._zod.parse=(s,l)=>typeof s.value!="string"?(s.issues.push({input:s.value,inst:e,expected:"string",code:"invalid_type"}),s):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(s.value)||s.issues.push({input:s.value,inst:e,code:"invalid_format",format:r.format??"template_literal",pattern:e._zod.pattern.source}),s)}),kWe=ni("$ZodFunction",(e,r)=>(Ip.init(e,r),e._def=r,e._zod.def=r,e.implement=i=>{if(typeof i!="function")throw new Error("implement() must be called with a function");return function(...s){let l=e._def.input?Lle(e._def.input,s):s,d=Reflect.apply(i,this,l);return e._def.output?Lle(e._def.output,d):d}},e.implementAsync=i=>{if(typeof i!="function")throw new Error("implementAsync() must be called with a function");return async function(...s){let l=e._def.input?await jle(e._def.input,s):s,d=await Reflect.apply(i,this,l);return e._def.output?await jle(e._def.output,d):d}},e._zod.parse=(i,s)=>typeof i.value!="function"?(i.issues.push({code:"invalid_type",expected:"function",input:i.value,inst:e}),i):(e._def.output&&e._def.output._zod.def.type==="promise"?i.value=e.implementAsync(i.value):i.value=e.implement(i.value),i),e.input=(...i)=>{let s=e.constructor;return Array.isArray(i[0])?new s({type:"function",input:new fEe({type:"tuple",items:i[0],rest:i[1]}),output:e._def.output}):new s({type:"function",input:i[0],output:e._def.output})},e.output=i=>{let s=e.constructor;return new s({type:"function",input:e._def.input,output:i})},e)),CWe=ni("$ZodPromise",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>Promise.resolve(i.value).then(l=>r.innerType._zod.run({value:l,issues:[]},s))}),DWe=ni("$ZodLazy",(e,r)=>{Ip.init(e,r),S_(e._zod,"innerType",()=>r.getter()),S_(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),S_(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),S_(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),S_(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(i,s)=>e._zod.innerType._zod.run(i,s)}),AWe=ni("$ZodCustom",(e,r)=>{rg.init(e,r),Ip.init(e,r),e._zod.parse=(i,s)=>i,e._zod.check=i=>{let s=i.value,l=r.fn(s);if(l instanceof Promise)return l.then(d=>p3t(d,i,s,e));p3t(l,i,s,e)}});function p3t(e,r,i,s){if(!e){let l={code:"custom",input:i,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(l.params=s._zod.def.params),r.issues.push(AX(l))}}var q9r=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function r(l){return e[l]??null}let i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},s={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let d=s[l.expected]??l.expected,h=ip(l.input),S=s[h]??h;return`Invalid input: expected ${d}, received ${S}`}case"invalid_value":return l.values.length===1?`Invalid input: expected ${qu(l.values[0])}`:`Invalid option: expected one of ${zu(l.values,"|")}`;case"too_big":{let d=l.inclusive?"<=":"<",h=r(l.origin);return h?`Too big: expected ${l.origin??"value"} to have ${d}${l.maximum.toString()} ${h.unit??"elements"}`:`Too big: expected ${l.origin??"value"} to be ${d}${l.maximum.toString()}`}case"too_small":{let d=l.inclusive?">=":">",h=r(l.origin);return h?`Too small: expected ${l.origin} to have ${d}${l.minimum.toString()} ${h.unit}`:`Too small: expected ${l.origin} to be ${d}${l.minimum.toString()}`}case"invalid_format":{let d=l;return d.format==="starts_with"?`Invalid string: must start with "${d.prefix}"`:d.format==="ends_with"?`Invalid string: must end with "${d.suffix}"`:d.format==="includes"?`Invalid string: must include "${d.includes}"`:d.format==="regex"?`Invalid string: must match pattern ${d.pattern}`:`Invalid ${i[d.format]??l.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${l.divisor}`;case"unrecognized_keys":return`Unrecognized key${l.keys.length>1?"s":""}: ${zu(l.keys,", ")}`;case"invalid_key":return`Invalid key in ${l.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${l.origin}`;default:return"Invalid input"}}};function wWe(){return{localeError:q9r()}}var g3t;var PWe=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...i){let s=i[0];return this._map.set(r,s),s&&typeof s=="object"&&"id"in s&&this._idmap.set(s.id,r),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let i=this._map.get(r);return i&&typeof i=="object"&&"id"in i&&this._idmap.delete(i.id),this._map.delete(r),this}get(r){let i=r._zod.parent;if(i){let s={...this.get(i)??{}};delete s.id;let l={...s,...this._map.get(r)};return Object.keys(l).length?l:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function NWe(){return new PWe}(g3t=globalThis).__zod_globalRegistry??(g3t.__zod_globalRegistry=NWe());var P2=globalThis.__zod_globalRegistry;function OWe(e,r){return new e({type:"string",...Hs(r)})}function FWe(e,r){return new e({type:"string",coerce:!0,...Hs(r)})}function hEe(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Hs(r)})}function Hle(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Hs(r)})}function gEe(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Hs(r)})}function yEe(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Hs(r)})}function vEe(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Hs(r)})}function SEe(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Hs(r)})}function Kle(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Hs(r)})}function bEe(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Hs(r)})}function xEe(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Hs(r)})}function TEe(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Hs(r)})}function EEe(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Hs(r)})}function kEe(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Hs(r)})}function CEe(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Hs(r)})}function DEe(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Hs(r)})}function AEe(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Hs(r)})}function wEe(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Hs(r)})}function RWe(e,r){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...Hs(r)})}function IEe(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Hs(r)})}function PEe(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Hs(r)})}function NEe(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Hs(r)})}function OEe(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Hs(r)})}function FEe(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Hs(r)})}function REe(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Hs(r)})}function LWe(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Hs(r)})}function MWe(e,r){return new e({type:"string",format:"date",check:"string_format",...Hs(r)})}function jWe(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...Hs(r)})}function BWe(e,r){return new e({type:"string",format:"duration",check:"string_format",...Hs(r)})}function $We(e,r){return new e({type:"number",checks:[],...Hs(r)})}function UWe(e,r){return new e({type:"number",coerce:!0,checks:[],...Hs(r)})}function zWe(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Hs(r)})}function qWe(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...Hs(r)})}function JWe(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...Hs(r)})}function VWe(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...Hs(r)})}function WWe(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...Hs(r)})}function GWe(e,r){return new e({type:"boolean",...Hs(r)})}function HWe(e,r){return new e({type:"boolean",coerce:!0,...Hs(r)})}function KWe(e,r){return new e({type:"bigint",...Hs(r)})}function QWe(e,r){return new e({type:"bigint",coerce:!0,...Hs(r)})}function ZWe(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...Hs(r)})}function XWe(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...Hs(r)})}function YWe(e,r){return new e({type:"symbol",...Hs(r)})}function eGe(e,r){return new e({type:"undefined",...Hs(r)})}function tGe(e,r){return new e({type:"null",...Hs(r)})}function rGe(e){return new e({type:"any"})}function nGe(e){return new e({type:"unknown"})}function iGe(e,r){return new e({type:"never",...Hs(r)})}function oGe(e,r){return new e({type:"void",...Hs(r)})}function aGe(e,r){return new e({type:"date",...Hs(r)})}function sGe(e,r){return new e({type:"date",coerce:!0,...Hs(r)})}function cGe(e,r){return new e({type:"nan",...Hs(r)})}function o5(e,r){return new vVe({check:"less_than",...Hs(r),value:e,inclusive:!1})}function hD(e,r){return new vVe({check:"less_than",...Hs(r),value:e,inclusive:!0})}function a5(e,r){return new SVe({check:"greater_than",...Hs(r),value:e,inclusive:!1})}function N2(e,r){return new SVe({check:"greater_than",...Hs(r),value:e,inclusive:!0})}function lGe(e){return a5(0,e)}function uGe(e){return o5(0,e)}function pGe(e){return hD(0,e)}function _Ge(e){return N2(0,e)}function NJ(e,r){return new R4t({check:"multiple_of",...Hs(r),value:e})}function OJ(e,r){return new j4t({check:"max_size",...Hs(r),maximum:e})}function s5(e,r){return new B4t({check:"min_size",...Hs(r),minimum:e})}function IX(e,r){return new $4t({check:"size_equals",...Hs(r),size:e})}function PX(e,r){return new U4t({check:"max_length",...Hs(r),maximum:e})}function fj(e,r){return new z4t({check:"min_length",...Hs(r),minimum:e})}function NX(e,r){return new q4t({check:"length_equals",...Hs(r),length:e})}function Qle(e,r){return new J4t({check:"string_format",format:"regex",...Hs(r),pattern:e})}function Zle(e){return new V4t({check:"string_format",format:"lowercase",...Hs(e)})}function Xle(e){return new W4t({check:"string_format",format:"uppercase",...Hs(e)})}function Yle(e,r){return new G4t({check:"string_format",format:"includes",...Hs(r),includes:e})}function eue(e,r){return new H4t({check:"string_format",format:"starts_with",...Hs(r),prefix:e})}function tue(e,r){return new K4t({check:"string_format",format:"ends_with",...Hs(r),suffix:e})}function dGe(e,r,i){return new Q4t({check:"property",property:e,schema:r,...Hs(i)})}function rue(e,r){return new Z4t({check:"mime_type",mime:e,...Hs(r)})}function ON(e){return new X4t({check:"overwrite",tx:e})}function nue(e){return ON(r=>r.normalize(e))}function iue(){return ON(e=>e.trim())}function oue(){return ON(e=>e.toLowerCase())}function aue(){return ON(e=>e.toUpperCase())}function LEe(){return ON(e=>jJe(e))}function y3t(e,r,i){return new e({type:"array",element:r,...Hs(i)})}function fGe(e,r){return new e({type:"file",...Hs(r)})}function mGe(e,r,i){let s=Hs(i);return s.abort??(s.abort=!0),new e({type:"custom",check:"custom",fn:r,...s})}function hGe(e,r,i){return new e({type:"custom",check:"custom",fn:r,...Hs(i)})}function gGe(e){let r=G9r(i=>(i.addIssue=s=>{if(typeof s=="string")i.issues.push(AX(s,i.value,r._zod.def));else{let l=s;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=i.value),l.inst??(l.inst=r),l.continue??(l.continue=!r._zod.def.abort),i.issues.push(AX(l))}},e(i.value,i)));return r}function G9r(e,r){let i=new rg({check:"custom",...Hs(r)});return i._zod.check=e,i}function yGe(e){let r=new rg({check:"describe"});return r._zod.onattach=[i=>{let s=P2.get(i)??{};P2.add(i,{...s,description:e})}],r._zod.check=()=>{},r}function vGe(e){let r=new rg({check:"meta"});return r._zod.onattach=[i=>{let s=P2.get(i)??{};P2.add(i,{...s,...e})}],r._zod.check=()=>{},r}function SGe(e,r){let i=Hs(r),s=i.truthy??["true","1","yes","on","y","enabled"],l=i.falsy??["false","0","no","off","n","disabled"];i.case!=="sensitive"&&(s=s.map(ie=>typeof ie=="string"?ie.toLowerCase():ie),l=l.map(ie=>typeof ie=="string"?ie.toLowerCase():ie));let d=new Set(s),h=new Set(l),S=e.Codec??Gle,b=e.Boolean??Vle,A=e.String??PJ,L=new A({type:"string",error:i.error}),V=new b({type:"boolean",error:i.error}),j=new S({type:"pipe",in:L,out:V,transform:((ie,te)=>{let X=ie;return i.case!=="sensitive"&&(X=X.toLowerCase()),d.has(X)?!0:h.has(X)?!1:(te.issues.push({code:"invalid_value",expected:"stringbool",values:[...d,...h],input:te.value,inst:j,continue:!1}),{})}),reverseTransform:((ie,te)=>ie===!0?s[0]||"true":l[0]||"false"),error:i.error});return j}function OX(e,r,i,s={}){let l=Hs(s),d={...Hs(s),check:"string_format",type:"string",format:r,fn:typeof i=="function"?i:S=>i.test(S),...l};return i instanceof RegExp&&(d.pattern=i),new e(d)}function MEe(e){let r=e?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??P2,target:r,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Tg(e,r,i={path:[],schemaPath:[]}){var s;let l=e._zod.def,d=r.seen.get(e);if(d)return d.count++,i.schemaPath.includes(e)&&(d.cycle=i.path),d.schema;let h={schema:{},count:1,cycle:void 0,path:i.path};r.seen.set(e,h);let S=e._zod.toJSONSchema?.();if(S)h.schema=S;else{let L={...i,schemaPath:[...i.schemaPath,e],path:i.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,h.schema,L);else{let j=h.schema,ie=r.processors[l.type];if(!ie)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${l.type}`);ie(e,r,j,L)}let V=e._zod.parent;V&&(h.ref||(h.ref=V),Tg(V,r,L),r.seen.get(V).isParent=!0)}let b=r.metadataRegistry.get(e);return b&&Object.assign(h.schema,b),r.io==="input"&&O2(e)&&(delete h.schema.examples,delete h.schema.default),r.io==="input"&&h.schema._prefault&&((s=h.schema).default??(s.default=h.schema._prefault)),delete h.schema._prefault,r.seen.get(e).schema}function jEe(e,r){let i=e.seen.get(r);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");let s=new Map;for(let h of e.seen.entries()){let S=e.metadataRegistry.get(h[0])?.id;if(S){let b=s.get(S);if(b&&b!==h[0])throw new Error(`Duplicate schema id "${S}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);s.set(S,h[0])}}let l=h=>{let S=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let V=e.external.registry.get(h[0])?.id,j=e.external.uri??(te=>te);if(V)return{ref:j(V)};let ie=h[1].defId??h[1].schema.id??`schema${e.counter++}`;return h[1].defId=ie,{defId:ie,ref:`${j("__shared")}#/${S}/${ie}`}}if(h[1]===i)return{ref:"#"};let A=`#/${S}/`,L=h[1].schema.id??`__schema${e.counter++}`;return{defId:L,ref:A+L}},d=h=>{if(h[1].schema.$ref)return;let S=h[1],{ref:b,defId:A}=l(h);S.def={...S.schema},A&&(S.defId=A);let L=S.schema;for(let V in L)delete L[V];L.$ref=b};if(e.cycles==="throw")for(let h of e.seen.entries()){let S=h[1];if(S.cycle)throw new Error(`Cycle detected: #/${S.cycle?.join("/")}/ + +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let h of e.seen.entries()){let S=h[1];if(r===h[0]){d(h);continue}if(e.external){let A=e.external.registry.get(h[0])?.id;if(r!==h[0]&&A){d(h);continue}}if(e.metadataRegistry.get(h[0])?.id){d(h);continue}if(S.cycle){d(h);continue}if(S.count>1&&e.reused==="ref"){d(h);continue}}}function BEe(e,r){let i=e.seen.get(r);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");let s=h=>{let S=e.seen.get(h);if(S.ref===null)return;let b=S.def??S.schema,A={...b},L=S.ref;if(S.ref=null,L){s(L);let j=e.seen.get(L),ie=j.schema;if(ie.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(b.allOf=b.allOf??[],b.allOf.push(ie)):Object.assign(b,ie),Object.assign(b,A),h._zod.parent===L)for(let X in b)X==="$ref"||X==="allOf"||X in A||delete b[X];if(ie.$ref&&j.def)for(let X in b)X==="$ref"||X==="allOf"||X in j.def&&JSON.stringify(b[X])===JSON.stringify(j.def[X])&&delete b[X]}let V=h._zod.parent;if(V&&V!==L){s(V);let j=e.seen.get(V);if(j?.schema.$ref&&(b.$ref=j.schema.$ref,j.def))for(let ie in b)ie==="$ref"||ie==="allOf"||ie in j.def&&JSON.stringify(b[ie])===JSON.stringify(j.def[ie])&&delete b[ie]}e.override({zodSchema:h,jsonSchema:b,path:S.path??[]})};for(let h of[...e.seen.entries()].reverse())s(h[0]);let l={};if(e.target==="draft-2020-12"?l.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?l.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?l.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let h=e.external.registry.get(r)?.id;if(!h)throw new Error("Schema is missing an `id` property");l.$id=e.external.uri(h)}Object.assign(l,i.def??i.schema);let d=e.external?.defs??{};for(let h of e.seen.entries()){let S=h[1];S.def&&S.defId&&(d[S.defId]=S.def)}e.external||Object.keys(d).length>0&&(e.target==="draft-2020-12"?l.$defs=d:l.definitions=d);try{let h=JSON.parse(JSON.stringify(l));return Object.defineProperty(h,"~standard",{value:{...r["~standard"],jsonSchema:{input:sue(r,"input",e.processors),output:sue(r,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function O2(e,r){let i=r??{seen:new Set};if(i.seen.has(e))return!1;i.seen.add(e);let s=e._zod.def;if(s.type==="transform")return!0;if(s.type==="array")return O2(s.element,i);if(s.type==="set")return O2(s.valueType,i);if(s.type==="lazy")return O2(s.getter(),i);if(s.type==="promise"||s.type==="optional"||s.type==="nonoptional"||s.type==="nullable"||s.type==="readonly"||s.type==="default"||s.type==="prefault")return O2(s.innerType,i);if(s.type==="intersection")return O2(s.left,i)||O2(s.right,i);if(s.type==="record"||s.type==="map")return O2(s.keyType,i)||O2(s.valueType,i);if(s.type==="pipe")return O2(s.in,i)||O2(s.out,i);if(s.type==="object"){for(let l in s.shape)if(O2(s.shape[l],i))return!0;return!1}if(s.type==="union"){for(let l of s.options)if(O2(l,i))return!0;return!1}if(s.type==="tuple"){for(let l of s.items)if(O2(l,i))return!0;return!!(s.rest&&O2(s.rest,i))}return!1}var v3t=(e,r={})=>i=>{let s=MEe({...i,processors:r});return Tg(e,s),jEe(s,e),BEe(s,e)},sue=(e,r,i={})=>s=>{let{libraryOptions:l,target:d}=s??{},h=MEe({...l??{},target:d,io:r,processors:i});return Tg(e,h),jEe(h,e),BEe(h,e)};var H9r={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},S3t=(e,r,i,s)=>{let l=i;l.type="string";let{minimum:d,maximum:h,format:S,patterns:b,contentEncoding:A}=e._zod.bag;if(typeof d=="number"&&(l.minLength=d),typeof h=="number"&&(l.maxLength=h),S&&(l.format=H9r[S]??S,l.format===""&&delete l.format,S==="time"&&delete l.format),A&&(l.contentEncoding=A),b&&b.size>0){let L=[...b];L.length===1?l.pattern=L[0].source:L.length>1&&(l.allOf=[...L.map(V=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:V.source}))])}},b3t=(e,r,i,s)=>{let l=i,{minimum:d,maximum:h,format:S,multipleOf:b,exclusiveMaximum:A,exclusiveMinimum:L}=e._zod.bag;typeof S=="string"&&S.includes("int")?l.type="integer":l.type="number",typeof L=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(l.minimum=L,l.exclusiveMinimum=!0):l.exclusiveMinimum=L),typeof d=="number"&&(l.minimum=d,typeof L=="number"&&r.target!=="draft-04"&&(L>=d?delete l.minimum:delete l.exclusiveMinimum)),typeof A=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(l.maximum=A,l.exclusiveMaximum=!0):l.exclusiveMaximum=A),typeof h=="number"&&(l.maximum=h,typeof A=="number"&&r.target!=="draft-04"&&(A<=h?delete l.maximum:delete l.exclusiveMaximum)),typeof b=="number"&&(l.multipleOf=b)},x3t=(e,r,i,s)=>{i.type="boolean"},T3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},E3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},k3t=(e,r,i,s)=>{r.target==="openapi-3.0"?(i.type="string",i.nullable=!0,i.enum=[null]):i.type="null"},C3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},D3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},A3t=(e,r,i,s)=>{i.not={}},w3t=(e,r,i,s)=>{},I3t=(e,r,i,s)=>{},P3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},N3t=(e,r,i,s)=>{let l=e._zod.def,d=wle(l.entries);d.every(h=>typeof h=="number")&&(i.type="number"),d.every(h=>typeof h=="string")&&(i.type="string"),i.enum=d},O3t=(e,r,i,s)=>{let l=e._zod.def,d=[];for(let h of l.values)if(h===void 0){if(r.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof h=="bigint"){if(r.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");d.push(Number(h))}else d.push(h);if(d.length!==0)if(d.length===1){let h=d[0];i.type=h===null?"null":typeof h,r.target==="draft-04"||r.target==="openapi-3.0"?i.enum=[h]:i.const=h}else d.every(h=>typeof h=="number")&&(i.type="number"),d.every(h=>typeof h=="string")&&(i.type="string"),d.every(h=>typeof h=="boolean")&&(i.type="boolean"),d.every(h=>h===null)&&(i.type="null"),i.enum=d},F3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},R3t=(e,r,i,s)=>{let l=i,d=e._zod.pattern;if(!d)throw new Error("Pattern not found in template literal");l.type="string",l.pattern=d.source},L3t=(e,r,i,s)=>{let l=i,d={type:"string",format:"binary",contentEncoding:"binary"},{minimum:h,maximum:S,mime:b}=e._zod.bag;h!==void 0&&(d.minLength=h),S!==void 0&&(d.maxLength=S),b?b.length===1?(d.contentMediaType=b[0],Object.assign(l,d)):(Object.assign(l,d),l.anyOf=b.map(A=>({contentMediaType:A}))):Object.assign(l,d)},M3t=(e,r,i,s)=>{i.type="boolean"},j3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},B3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},$3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},U3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},z3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},q3t=(e,r,i,s)=>{let l=i,d=e._zod.def,{minimum:h,maximum:S}=e._zod.bag;typeof h=="number"&&(l.minItems=h),typeof S=="number"&&(l.maxItems=S),l.type="array",l.items=Tg(d.element,r,{...s,path:[...s.path,"items"]})},J3t=(e,r,i,s)=>{let l=i,d=e._zod.def;l.type="object",l.properties={};let h=d.shape;for(let A in h)l.properties[A]=Tg(h[A],r,{...s,path:[...s.path,"properties",A]});let S=new Set(Object.keys(h)),b=new Set([...S].filter(A=>{let L=d.shape[A]._zod;return r.io==="input"?L.optin===void 0:L.optout===void 0}));b.size>0&&(l.required=Array.from(b)),d.catchall?._zod.def.type==="never"?l.additionalProperties=!1:d.catchall?d.catchall&&(l.additionalProperties=Tg(d.catchall,r,{...s,path:[...s.path,"additionalProperties"]})):r.io==="output"&&(l.additionalProperties=!1)},bGe=(e,r,i,s)=>{let l=e._zod.def,d=l.inclusive===!1,h=l.options.map((S,b)=>Tg(S,r,{...s,path:[...s.path,d?"oneOf":"anyOf",b]}));d?i.oneOf=h:i.anyOf=h},V3t=(e,r,i,s)=>{let l=e._zod.def,d=Tg(l.left,r,{...s,path:[...s.path,"allOf",0]}),h=Tg(l.right,r,{...s,path:[...s.path,"allOf",1]}),S=A=>"allOf"in A&&Object.keys(A).length===1,b=[...S(d)?d.allOf:[d],...S(h)?h.allOf:[h]];i.allOf=b},W3t=(e,r,i,s)=>{let l=i,d=e._zod.def;l.type="array";let h=r.target==="draft-2020-12"?"prefixItems":"items",S=r.target==="draft-2020-12"||r.target==="openapi-3.0"?"items":"additionalItems",b=d.items.map((j,ie)=>Tg(j,r,{...s,path:[...s.path,h,ie]})),A=d.rest?Tg(d.rest,r,{...s,path:[...s.path,S,...r.target==="openapi-3.0"?[d.items.length]:[]]}):null;r.target==="draft-2020-12"?(l.prefixItems=b,A&&(l.items=A)):r.target==="openapi-3.0"?(l.items={anyOf:b},A&&l.items.anyOf.push(A),l.minItems=b.length,A||(l.maxItems=b.length)):(l.items=b,A&&(l.additionalItems=A));let{minimum:L,maximum:V}=e._zod.bag;typeof L=="number"&&(l.minItems=L),typeof V=="number"&&(l.maxItems=V)},G3t=(e,r,i,s)=>{let l=i,d=e._zod.def;l.type="object";let h=d.keyType,b=h._zod.bag?.patterns;if(d.mode==="loose"&&b&&b.size>0){let L=Tg(d.valueType,r,{...s,path:[...s.path,"patternProperties","*"]});l.patternProperties={};for(let V of b)l.patternProperties[V.source]=L}else(r.target==="draft-07"||r.target==="draft-2020-12")&&(l.propertyNames=Tg(d.keyType,r,{...s,path:[...s.path,"propertyNames"]})),l.additionalProperties=Tg(d.valueType,r,{...s,path:[...s.path,"additionalProperties"]});let A=h._zod.values;if(A){let L=[...A].filter(V=>typeof V=="string"||typeof V=="number");L.length>0&&(l.required=L)}},H3t=(e,r,i,s)=>{let l=e._zod.def,d=Tg(l.innerType,r,s),h=r.seen.get(e);r.target==="openapi-3.0"?(h.ref=l.innerType,i.nullable=!0):i.anyOf=[d,{type:"null"}]},K3t=(e,r,i,s)=>{let l=e._zod.def;Tg(l.innerType,r,s);let d=r.seen.get(e);d.ref=l.innerType},Q3t=(e,r,i,s)=>{let l=e._zod.def;Tg(l.innerType,r,s);let d=r.seen.get(e);d.ref=l.innerType,i.default=JSON.parse(JSON.stringify(l.defaultValue))},Z3t=(e,r,i,s)=>{let l=e._zod.def;Tg(l.innerType,r,s);let d=r.seen.get(e);d.ref=l.innerType,r.io==="input"&&(i._prefault=JSON.parse(JSON.stringify(l.defaultValue)))},X3t=(e,r,i,s)=>{let l=e._zod.def;Tg(l.innerType,r,s);let d=r.seen.get(e);d.ref=l.innerType;let h;try{h=l.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}i.default=h},Y3t=(e,r,i,s)=>{let l=e._zod.def,d=r.io==="input"?l.in._zod.def.type==="transform"?l.out:l.in:l.out;Tg(d,r,s);let h=r.seen.get(e);h.ref=d},eNt=(e,r,i,s)=>{let l=e._zod.def;Tg(l.innerType,r,s);let d=r.seen.get(e);d.ref=l.innerType,i.readOnly=!0},tNt=(e,r,i,s)=>{let l=e._zod.def;Tg(l.innerType,r,s);let d=r.seen.get(e);d.ref=l.innerType},xGe=(e,r,i,s)=>{let l=e._zod.def;Tg(l.innerType,r,s);let d=r.seen.get(e);d.ref=l.innerType},rNt=(e,r,i,s)=>{let l=e._zod.innerType;Tg(l,r,s);let d=r.seen.get(e);d.ref=l};function FX(e){return!!e._zod}function k6(e,r){return FX(e)?wX(e,r):e.safeParse(r)}function $Ee(e){if(!e)return;let r;if(FX(e)?r=e._zod?.def?.shape:r=e.shape,!!r){if(typeof r=="function")try{return r()}catch{return}return r}}function aNt(e){if(FX(e)){let d=e._zod?.def;if(d){if(d.value!==void 0)return d.value;if(Array.isArray(d.values)&&d.values.length>0)return d.values[0]}}let i=e._def;if(i){if(i.value!==void 0)return i.value;if(Array.isArray(i.values)&&i.values.length>0)return i.values[0]}let s=e.value;if(s!==void 0)return s}var cue={};J7(cue,{ZodAny:()=>ENt,ZodArray:()=>ANt,ZodBase64:()=>GGe,ZodBase64URL:()=>HGe,ZodBigInt:()=>fue,ZodBigIntFormat:()=>ZGe,ZodBoolean:()=>due,ZodCIDRv4:()=>VGe,ZodCIDRv6:()=>WGe,ZodCUID:()=>jGe,ZodCUID2:()=>BGe,ZodCatch:()=>HNt,ZodCodec:()=>iHe,ZodCustom:()=>ZEe,ZodCustomStringFormat:()=>pue,ZodDate:()=>WEe,ZodDefault:()=>zNt,ZodDiscriminatedUnion:()=>INt,ZodE164:()=>KGe,ZodEmail:()=>FGe,ZodEmoji:()=>LGe,ZodEnum:()=>lue,ZodExactOptional:()=>BNt,ZodFile:()=>MNt,ZodFunction:()=>n8t,ZodGUID:()=>zEe,ZodIPv4:()=>qGe,ZodIPv6:()=>JGe,ZodIntersection:()=>PNt,ZodJWT:()=>QGe,ZodKSUID:()=>zGe,ZodLazy:()=>e8t,ZodLiteral:()=>LNt,ZodMAC:()=>SNt,ZodMap:()=>FNt,ZodNaN:()=>QNt,ZodNanoID:()=>MGe,ZodNever:()=>CNt,ZodNonOptional:()=>rHe,ZodNull:()=>TNt,ZodNullable:()=>UNt,ZodNumber:()=>_ue,ZodNumberFormat:()=>RX,ZodObject:()=>GEe,ZodOptional:()=>tHe,ZodPipe:()=>nHe,ZodPrefault:()=>JNt,ZodPromise:()=>r8t,ZodReadonly:()=>ZNt,ZodRecord:()=>QEe,ZodSet:()=>RNt,ZodString:()=>uue,ZodStringFormat:()=>ng,ZodSuccess:()=>GNt,ZodSymbol:()=>bNt,ZodTemplateLiteral:()=>YNt,ZodTransform:()=>jNt,ZodTuple:()=>NNt,ZodType:()=>b_,ZodULID:()=>$Ge,ZodURL:()=>VEe,ZodUUID:()=>c5,ZodUndefined:()=>xNt,ZodUnion:()=>HEe,ZodUnknown:()=>kNt,ZodVoid:()=>DNt,ZodXID:()=>UGe,ZodXor:()=>wNt,_ZodString:()=>OGe,_default:()=>qNt,_function:()=>oLr,any:()=>XGe,array:()=>Ms,base64:()=>kRr,base64url:()=>CRr,bigint:()=>MRr,boolean:()=>oh,catch:()=>KNt,check:()=>aLr,cidrv4:()=>TRr,cidrv6:()=>ERr,codec:()=>rLr,cuid:()=>mRr,cuid2:()=>hRr,custom:()=>oHe,date:()=>qRr,describe:()=>sLr,discriminatedUnion:()=>KEe,e164:()=>DRr,email:()=>aRr,emoji:()=>dRr,enum:()=>gT,exactOptional:()=>$Nt,file:()=>XRr,float32:()=>ORr,float64:()=>FRr,function:()=>oLr,guid:()=>sRr,hash:()=>NRr,hex:()=>PRr,hostname:()=>IRr,httpUrl:()=>_Rr,instanceof:()=>lLr,int:()=>NGe,int32:()=>RRr,int64:()=>jRr,intersection:()=>hue,ipv4:()=>SRr,ipv6:()=>xRr,json:()=>pLr,jwt:()=>ARr,keyof:()=>JRr,ksuid:()=>vRr,lazy:()=>t8t,literal:()=>Dl,looseObject:()=>cv,looseRecord:()=>HRr,mac:()=>bRr,map:()=>KRr,meta:()=>cLr,nan:()=>tLr,nanoid:()=>fRr,nativeEnum:()=>ZRr,never:()=>YGe,nonoptional:()=>WNt,null:()=>mue,nullable:()=>qEe,nullish:()=>YRr,number:()=>yf,object:()=>rc,optional:()=>oy,partialRecord:()=>GRr,pipe:()=>JEe,prefault:()=>VNt,preprocess:()=>XEe,promise:()=>iLr,readonly:()=>XNt,record:()=>Eg,refine:()=>i8t,set:()=>QRr,strictObject:()=>VRr,string:()=>An,stringFormat:()=>wRr,stringbool:()=>uLr,success:()=>eLr,superRefine:()=>o8t,symbol:()=>$Rr,templateLiteral:()=>nLr,transform:()=>eHe,tuple:()=>ONt,uint32:()=>LRr,uint64:()=>BRr,ulid:()=>gRr,undefined:()=>URr,union:()=>wh,unknown:()=>ig,url:()=>RGe,uuid:()=>cRr,uuidv4:()=>lRr,uuidv6:()=>uRr,uuidv7:()=>pRr,void:()=>zRr,xid:()=>yRr,xor:()=>WRr});var UEe={};J7(UEe,{endsWith:()=>tue,gt:()=>a5,gte:()=>N2,includes:()=>Yle,length:()=>NX,lowercase:()=>Zle,lt:()=>o5,lte:()=>hD,maxLength:()=>PX,maxSize:()=>OJ,mime:()=>rue,minLength:()=>fj,minSize:()=>s5,multipleOf:()=>NJ,negative:()=>uGe,nonnegative:()=>_Ge,nonpositive:()=>pGe,normalize:()=>nue,overwrite:()=>ON,positive:()=>lGe,property:()=>dGe,regex:()=>Qle,size:()=>IX,slugify:()=>LEe,startsWith:()=>eue,toLowerCase:()=>oue,toUpperCase:()=>aue,trim:()=>iue,uppercase:()=>Xle});var FJ={};J7(FJ,{ZodISODate:()=>CGe,ZodISODateTime:()=>EGe,ZodISODuration:()=>IGe,ZodISOTime:()=>AGe,date:()=>DGe,datetime:()=>kGe,duration:()=>PGe,time:()=>wGe});var EGe=ni("ZodISODateTime",(e,r)=>{OVe.init(e,r),ng.init(e,r)});function kGe(e){return LWe(EGe,e)}var CGe=ni("ZodISODate",(e,r)=>{FVe.init(e,r),ng.init(e,r)});function DGe(e){return MWe(CGe,e)}var AGe=ni("ZodISOTime",(e,r)=>{RVe.init(e,r),ng.init(e,r)});function wGe(e){return jWe(AGe,e)}var IGe=ni("ZodISODuration",(e,r)=>{LVe.init(e,r),ng.init(e,r)});function PGe(e){return BWe(IGe,e)}var sNt=(e,r)=>{tEe.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:i=>nEe(e,i)},flatten:{value:i=>rEe(e,i)},addIssue:{value:i=>{e.issues.push(i),e.message=JSON.stringify(e.issues,CX,2)}},addIssues:{value:i=>{e.issues.push(...i),e.message=JSON.stringify(e.issues,CX,2)}},isEmpty:{get(){return e.issues.length===0}}})},_5n=ni("ZodError",sNt),gD=ni("ZodError",sNt,{Parent:Error});var cNt=Rle(gD),lNt=Mle(gD),uNt=Ble(gD),pNt=$le(gD),_Nt=x4t(gD),dNt=T4t(gD),fNt=E4t(gD),mNt=k4t(gD),hNt=C4t(gD),gNt=D4t(gD),yNt=A4t(gD),vNt=w4t(gD);var b_=ni("ZodType",(e,r)=>(Ip.init(e,r),Object.assign(e["~standard"],{jsonSchema:{input:sue(e,"input"),output:sue(e,"output")}}),e.toJSONSchema=v3t(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...i)=>e.clone(es.mergeDefs(r,{checks:[...r.checks??[],...i.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),{parent:!0}),e.with=e.check,e.clone=(i,s)=>I2(e,i,s),e.brand=()=>e,e.register=((i,s)=>(i.add(e,s),e)),e.parse=(i,s)=>cNt(e,i,s,{callee:e.parse}),e.safeParse=(i,s)=>uNt(e,i,s),e.parseAsync=async(i,s)=>lNt(e,i,s,{callee:e.parseAsync}),e.safeParseAsync=async(i,s)=>pNt(e,i,s),e.spa=e.safeParseAsync,e.encode=(i,s)=>_Nt(e,i,s),e.decode=(i,s)=>dNt(e,i,s),e.encodeAsync=async(i,s)=>fNt(e,i,s),e.decodeAsync=async(i,s)=>mNt(e,i,s),e.safeEncode=(i,s)=>hNt(e,i,s),e.safeDecode=(i,s)=>gNt(e,i,s),e.safeEncodeAsync=async(i,s)=>yNt(e,i,s),e.safeDecodeAsync=async(i,s)=>vNt(e,i,s),e.refine=(i,s)=>e.check(i8t(i,s)),e.superRefine=i=>e.check(o8t(i)),e.overwrite=i=>e.check(ON(i)),e.optional=()=>oy(e),e.exactOptional=()=>$Nt(e),e.nullable=()=>qEe(e),e.nullish=()=>oy(qEe(e)),e.nonoptional=i=>WNt(e,i),e.array=()=>Ms(e),e.or=i=>wh([e,i]),e.and=i=>hue(e,i),e.transform=i=>JEe(e,eHe(i)),e.default=i=>qNt(e,i),e.prefault=i=>VNt(e,i),e.catch=i=>KNt(e,i),e.pipe=i=>JEe(e,i),e.readonly=()=>XNt(e),e.describe=i=>{let s=e.clone();return P2.add(s,{description:i}),s},Object.defineProperty(e,"description",{get(){return P2.get(e)?.description},configurable:!0}),e.meta=(...i)=>{if(i.length===0)return P2.get(e);let s=e.clone();return P2.add(s,i[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=i=>i(e),e)),OGe=ni("_ZodString",(e,r)=>{PJ.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(s,l,d)=>S3t(e,s,l,d);let i=e._zod.bag;e.format=i.format??null,e.minLength=i.minimum??null,e.maxLength=i.maximum??null,e.regex=(...s)=>e.check(Qle(...s)),e.includes=(...s)=>e.check(Yle(...s)),e.startsWith=(...s)=>e.check(eue(...s)),e.endsWith=(...s)=>e.check(tue(...s)),e.min=(...s)=>e.check(fj(...s)),e.max=(...s)=>e.check(PX(...s)),e.length=(...s)=>e.check(NX(...s)),e.nonempty=(...s)=>e.check(fj(1,...s)),e.lowercase=s=>e.check(Zle(s)),e.uppercase=s=>e.check(Xle(s)),e.trim=()=>e.check(iue()),e.normalize=(...s)=>e.check(nue(...s)),e.toLowerCase=()=>e.check(oue()),e.toUpperCase=()=>e.check(aue()),e.slugify=()=>e.check(LEe())}),uue=ni("ZodString",(e,r)=>{PJ.init(e,r),OGe.init(e,r),e.email=i=>e.check(hEe(FGe,i)),e.url=i=>e.check(Kle(VEe,i)),e.jwt=i=>e.check(REe(QGe,i)),e.emoji=i=>e.check(bEe(LGe,i)),e.guid=i=>e.check(Hle(zEe,i)),e.uuid=i=>e.check(gEe(c5,i)),e.uuidv4=i=>e.check(yEe(c5,i)),e.uuidv6=i=>e.check(vEe(c5,i)),e.uuidv7=i=>e.check(SEe(c5,i)),e.nanoid=i=>e.check(xEe(MGe,i)),e.guid=i=>e.check(Hle(zEe,i)),e.cuid=i=>e.check(TEe(jGe,i)),e.cuid2=i=>e.check(EEe(BGe,i)),e.ulid=i=>e.check(kEe($Ge,i)),e.base64=i=>e.check(NEe(GGe,i)),e.base64url=i=>e.check(OEe(HGe,i)),e.xid=i=>e.check(CEe(UGe,i)),e.ksuid=i=>e.check(DEe(zGe,i)),e.ipv4=i=>e.check(AEe(qGe,i)),e.ipv6=i=>e.check(wEe(JGe,i)),e.cidrv4=i=>e.check(IEe(VGe,i)),e.cidrv6=i=>e.check(PEe(WGe,i)),e.e164=i=>e.check(FEe(KGe,i)),e.datetime=i=>e.check(kGe(i)),e.date=i=>e.check(DGe(i)),e.time=i=>e.check(wGe(i)),e.duration=i=>e.check(PGe(i))});function An(e){return OWe(uue,e)}var ng=ni("ZodStringFormat",(e,r)=>{Ah.init(e,r),OGe.init(e,r)}),FGe=ni("ZodEmail",(e,r)=>{EVe.init(e,r),ng.init(e,r)});function aRr(e){return hEe(FGe,e)}var zEe=ni("ZodGUID",(e,r)=>{xVe.init(e,r),ng.init(e,r)});function sRr(e){return Hle(zEe,e)}var c5=ni("ZodUUID",(e,r)=>{TVe.init(e,r),ng.init(e,r)});function cRr(e){return gEe(c5,e)}function lRr(e){return yEe(c5,e)}function uRr(e){return vEe(c5,e)}function pRr(e){return SEe(c5,e)}var VEe=ni("ZodURL",(e,r)=>{kVe.init(e,r),ng.init(e,r)});function RGe(e){return Kle(VEe,e)}function _Rr(e){return Kle(VEe,{protocol:/^https?$/,hostname:zw.domain,...es.normalizeParams(e)})}var LGe=ni("ZodEmoji",(e,r)=>{CVe.init(e,r),ng.init(e,r)});function dRr(e){return bEe(LGe,e)}var MGe=ni("ZodNanoID",(e,r)=>{DVe.init(e,r),ng.init(e,r)});function fRr(e){return xEe(MGe,e)}var jGe=ni("ZodCUID",(e,r)=>{AVe.init(e,r),ng.init(e,r)});function mRr(e){return TEe(jGe,e)}var BGe=ni("ZodCUID2",(e,r)=>{wVe.init(e,r),ng.init(e,r)});function hRr(e){return EEe(BGe,e)}var $Ge=ni("ZodULID",(e,r)=>{IVe.init(e,r),ng.init(e,r)});function gRr(e){return kEe($Ge,e)}var UGe=ni("ZodXID",(e,r)=>{PVe.init(e,r),ng.init(e,r)});function yRr(e){return CEe(UGe,e)}var zGe=ni("ZodKSUID",(e,r)=>{NVe.init(e,r),ng.init(e,r)});function vRr(e){return DEe(zGe,e)}var qGe=ni("ZodIPv4",(e,r)=>{MVe.init(e,r),ng.init(e,r)});function SRr(e){return AEe(qGe,e)}var SNt=ni("ZodMAC",(e,r)=>{BVe.init(e,r),ng.init(e,r)});function bRr(e){return RWe(SNt,e)}var JGe=ni("ZodIPv6",(e,r)=>{jVe.init(e,r),ng.init(e,r)});function xRr(e){return wEe(JGe,e)}var VGe=ni("ZodCIDRv4",(e,r)=>{$Ve.init(e,r),ng.init(e,r)});function TRr(e){return IEe(VGe,e)}var WGe=ni("ZodCIDRv6",(e,r)=>{UVe.init(e,r),ng.init(e,r)});function ERr(e){return PEe(WGe,e)}var GGe=ni("ZodBase64",(e,r)=>{zVe.init(e,r),ng.init(e,r)});function kRr(e){return NEe(GGe,e)}var HGe=ni("ZodBase64URL",(e,r)=>{qVe.init(e,r),ng.init(e,r)});function CRr(e){return OEe(HGe,e)}var KGe=ni("ZodE164",(e,r)=>{JVe.init(e,r),ng.init(e,r)});function DRr(e){return FEe(KGe,e)}var QGe=ni("ZodJWT",(e,r)=>{VVe.init(e,r),ng.init(e,r)});function ARr(e){return REe(QGe,e)}var pue=ni("ZodCustomStringFormat",(e,r)=>{WVe.init(e,r),ng.init(e,r)});function wRr(e,r,i={}){return OX(pue,e,r,i)}function IRr(e){return OX(pue,"hostname",zw.hostname,e)}function PRr(e){return OX(pue,"hex",zw.hex,e)}function NRr(e,r){let i=r?.enc??"hex",s=`${e}_${i}`,l=zw[s];if(!l)throw new Error(`Unrecognized hash format: ${s}`);return OX(pue,s,l,r)}var _ue=ni("ZodNumber",(e,r)=>{_Ee.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(s,l,d)=>b3t(e,s,l,d),e.gt=(s,l)=>e.check(a5(s,l)),e.gte=(s,l)=>e.check(N2(s,l)),e.min=(s,l)=>e.check(N2(s,l)),e.lt=(s,l)=>e.check(o5(s,l)),e.lte=(s,l)=>e.check(hD(s,l)),e.max=(s,l)=>e.check(hD(s,l)),e.int=s=>e.check(NGe(s)),e.safe=s=>e.check(NGe(s)),e.positive=s=>e.check(a5(0,s)),e.nonnegative=s=>e.check(N2(0,s)),e.negative=s=>e.check(o5(0,s)),e.nonpositive=s=>e.check(hD(0,s)),e.multipleOf=(s,l)=>e.check(NJ(s,l)),e.step=(s,l)=>e.check(NJ(s,l)),e.finite=()=>e;let i=e._zod.bag;e.minValue=Math.max(i.minimum??Number.NEGATIVE_INFINITY,i.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(i.maximum??Number.POSITIVE_INFINITY,i.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(i.format??"").includes("int")||Number.isSafeInteger(i.multipleOf??.5),e.isFinite=!0,e.format=i.format??null});function yf(e){return $We(_ue,e)}var RX=ni("ZodNumberFormat",(e,r)=>{GVe.init(e,r),_ue.init(e,r)});function NGe(e){return zWe(RX,e)}function ORr(e){return qWe(RX,e)}function FRr(e){return JWe(RX,e)}function RRr(e){return VWe(RX,e)}function LRr(e){return WWe(RX,e)}var due=ni("ZodBoolean",(e,r)=>{Vle.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>x3t(e,i,s,l)});function oh(e){return GWe(due,e)}var fue=ni("ZodBigInt",(e,r)=>{dEe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(s,l,d)=>T3t(e,s,l,d),e.gte=(s,l)=>e.check(N2(s,l)),e.min=(s,l)=>e.check(N2(s,l)),e.gt=(s,l)=>e.check(a5(s,l)),e.gte=(s,l)=>e.check(N2(s,l)),e.min=(s,l)=>e.check(N2(s,l)),e.lt=(s,l)=>e.check(o5(s,l)),e.lte=(s,l)=>e.check(hD(s,l)),e.max=(s,l)=>e.check(hD(s,l)),e.positive=s=>e.check(a5(BigInt(0),s)),e.negative=s=>e.check(o5(BigInt(0),s)),e.nonpositive=s=>e.check(hD(BigInt(0),s)),e.nonnegative=s=>e.check(N2(BigInt(0),s)),e.multipleOf=(s,l)=>e.check(NJ(s,l));let i=e._zod.bag;e.minValue=i.minimum??null,e.maxValue=i.maximum??null,e.format=i.format??null});function MRr(e){return KWe(fue,e)}var ZGe=ni("ZodBigIntFormat",(e,r)=>{HVe.init(e,r),fue.init(e,r)});function jRr(e){return ZWe(ZGe,e)}function BRr(e){return XWe(ZGe,e)}var bNt=ni("ZodSymbol",(e,r)=>{KVe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>E3t(e,i,s,l)});function $Rr(e){return YWe(bNt,e)}var xNt=ni("ZodUndefined",(e,r)=>{QVe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>C3t(e,i,s,l)});function URr(e){return eGe(xNt,e)}var TNt=ni("ZodNull",(e,r)=>{ZVe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>k3t(e,i,s,l)});function mue(e){return tGe(TNt,e)}var ENt=ni("ZodAny",(e,r)=>{XVe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>w3t(e,i,s,l)});function XGe(){return rGe(ENt)}var kNt=ni("ZodUnknown",(e,r)=>{YVe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>I3t(e,i,s,l)});function ig(){return nGe(kNt)}var CNt=ni("ZodNever",(e,r)=>{eWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>A3t(e,i,s,l)});function YGe(e){return iGe(CNt,e)}var DNt=ni("ZodVoid",(e,r)=>{tWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>D3t(e,i,s,l)});function zRr(e){return oGe(DNt,e)}var WEe=ni("ZodDate",(e,r)=>{rWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(s,l,d)=>P3t(e,s,l,d),e.min=(s,l)=>e.check(N2(s,l)),e.max=(s,l)=>e.check(hD(s,l));let i=e._zod.bag;e.minDate=i.minimum?new Date(i.minimum):null,e.maxDate=i.maximum?new Date(i.maximum):null});function qRr(e){return aGe(WEe,e)}var ANt=ni("ZodArray",(e,r)=>{nWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>q3t(e,i,s,l),e.element=r.element,e.min=(i,s)=>e.check(fj(i,s)),e.nonempty=i=>e.check(fj(1,i)),e.max=(i,s)=>e.check(PX(i,s)),e.length=(i,s)=>e.check(NX(i,s)),e.unwrap=()=>e.element});function Ms(e,r){return y3t(ANt,e,r)}function JRr(e){let r=e._zod.def.shape;return gT(Object.keys(r))}var GEe=ni("ZodObject",(e,r)=>{h3t.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>J3t(e,i,s,l),es.defineLazy(e,"shape",()=>r.shape),e.keyof=()=>gT(Object.keys(e._zod.def.shape)),e.catchall=i=>e.clone({...e._zod.def,catchall:i}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ig()}),e.loose=()=>e.clone({...e._zod.def,catchall:ig()}),e.strict=()=>e.clone({...e._zod.def,catchall:YGe()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=i=>es.extend(e,i),e.safeExtend=i=>es.safeExtend(e,i),e.merge=i=>es.merge(e,i),e.pick=i=>es.pick(e,i),e.omit=i=>es.omit(e,i),e.partial=(...i)=>es.partial(tHe,e,i[0]),e.required=(...i)=>es.required(rHe,e,i[0])});function rc(e,r){let i={type:"object",shape:e??{},...es.normalizeParams(r)};return new GEe(i)}function VRr(e,r){return new GEe({type:"object",shape:e,catchall:YGe(),...es.normalizeParams(r)})}function cv(e,r){return new GEe({type:"object",shape:e,catchall:ig(),...es.normalizeParams(r)})}var HEe=ni("ZodUnion",(e,r)=>{Wle.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>bGe(e,i,s,l),e.options=r.options});function wh(e,r){return new HEe({type:"union",options:e,...es.normalizeParams(r)})}var wNt=ni("ZodXor",(e,r)=>{HEe.init(e,r),iWe.init(e,r),e._zod.processJSONSchema=(i,s,l)=>bGe(e,i,s,l),e.options=r.options});function WRr(e,r){return new wNt({type:"union",options:e,inclusive:!1,...es.normalizeParams(r)})}var INt=ni("ZodDiscriminatedUnion",(e,r)=>{HEe.init(e,r),oWe.init(e,r)});function KEe(e,r,i){return new INt({type:"union",options:r,discriminator:e,...es.normalizeParams(i)})}var PNt=ni("ZodIntersection",(e,r)=>{aWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>V3t(e,i,s,l)});function hue(e,r){return new PNt({type:"intersection",left:e,right:r})}var NNt=ni("ZodTuple",(e,r)=>{fEe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>W3t(e,i,s,l),e.rest=i=>e.clone({...e._zod.def,rest:i})});function ONt(e,r,i){let s=r instanceof Ip,l=s?i:r,d=s?r:null;return new NNt({type:"tuple",items:e,rest:d,...es.normalizeParams(l)})}var QEe=ni("ZodRecord",(e,r)=>{sWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>G3t(e,i,s,l),e.keyType=r.keyType,e.valueType=r.valueType});function Eg(e,r,i){return new QEe({type:"record",keyType:e,valueType:r,...es.normalizeParams(i)})}function GRr(e,r,i){let s=I2(e);return s._zod.values=void 0,new QEe({type:"record",keyType:s,valueType:r,...es.normalizeParams(i)})}function HRr(e,r,i){return new QEe({type:"record",keyType:e,valueType:r,mode:"loose",...es.normalizeParams(i)})}var FNt=ni("ZodMap",(e,r)=>{cWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>U3t(e,i,s,l),e.keyType=r.keyType,e.valueType=r.valueType,e.min=(...i)=>e.check(s5(...i)),e.nonempty=i=>e.check(s5(1,i)),e.max=(...i)=>e.check(OJ(...i)),e.size=(...i)=>e.check(IX(...i))});function KRr(e,r,i){return new FNt({type:"map",keyType:e,valueType:r,...es.normalizeParams(i)})}var RNt=ni("ZodSet",(e,r)=>{lWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>z3t(e,i,s,l),e.min=(...i)=>e.check(s5(...i)),e.nonempty=i=>e.check(s5(1,i)),e.max=(...i)=>e.check(OJ(...i)),e.size=(...i)=>e.check(IX(...i))});function QRr(e,r){return new RNt({type:"set",valueType:e,...es.normalizeParams(r)})}var lue=ni("ZodEnum",(e,r)=>{uWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(s,l,d)=>N3t(e,s,l,d),e.enum=r.entries,e.options=Object.values(r.entries);let i=new Set(Object.keys(r.entries));e.extract=(s,l)=>{let d={};for(let h of s)if(i.has(h))d[h]=r.entries[h];else throw new Error(`Key ${h} not found in enum`);return new lue({...r,checks:[],...es.normalizeParams(l),entries:d})},e.exclude=(s,l)=>{let d={...r.entries};for(let h of s)if(i.has(h))delete d[h];else throw new Error(`Key ${h} not found in enum`);return new lue({...r,checks:[],...es.normalizeParams(l),entries:d})}});function gT(e,r){let i=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new lue({type:"enum",entries:i,...es.normalizeParams(r)})}function ZRr(e,r){return new lue({type:"enum",entries:e,...es.normalizeParams(r)})}var LNt=ni("ZodLiteral",(e,r)=>{pWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>O3t(e,i,s,l),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function Dl(e,r){return new LNt({type:"literal",values:Array.isArray(e)?e:[e],...es.normalizeParams(r)})}var MNt=ni("ZodFile",(e,r)=>{_We.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>L3t(e,i,s,l),e.min=(i,s)=>e.check(s5(i,s)),e.max=(i,s)=>e.check(OJ(i,s)),e.mime=(i,s)=>e.check(rue(Array.isArray(i)?i:[i],s))});function XRr(e){return fGe(MNt,e)}var jNt=ni("ZodTransform",(e,r)=>{dWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>$3t(e,i,s,l),e._zod.parse=(i,s)=>{if(s.direction==="backward")throw new AJ(e.constructor.name);i.addIssue=d=>{if(typeof d=="string")i.issues.push(es.issue(d,i.value,r));else{let h=d;h.fatal&&(h.continue=!1),h.code??(h.code="custom"),h.input??(h.input=i.value),h.inst??(h.inst=e),i.issues.push(es.issue(h))}};let l=r.transform(i.value,i);return l instanceof Promise?l.then(d=>(i.value=d,i)):(i.value=l,i)}});function eHe(e){return new jNt({type:"transform",transform:e})}var tHe=ni("ZodOptional",(e,r)=>{mEe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>xGe(e,i,s,l),e.unwrap=()=>e._zod.def.innerType});function oy(e){return new tHe({type:"optional",innerType:e})}var BNt=ni("ZodExactOptional",(e,r)=>{fWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>xGe(e,i,s,l),e.unwrap=()=>e._zod.def.innerType});function $Nt(e){return new BNt({type:"optional",innerType:e})}var UNt=ni("ZodNullable",(e,r)=>{mWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>H3t(e,i,s,l),e.unwrap=()=>e._zod.def.innerType});function qEe(e){return new UNt({type:"nullable",innerType:e})}function YRr(e){return oy(qEe(e))}var zNt=ni("ZodDefault",(e,r)=>{hWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>Q3t(e,i,s,l),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function qNt(e,r){return new zNt({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():es.shallowClone(r)}})}var JNt=ni("ZodPrefault",(e,r)=>{gWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>Z3t(e,i,s,l),e.unwrap=()=>e._zod.def.innerType});function VNt(e,r){return new JNt({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():es.shallowClone(r)}})}var rHe=ni("ZodNonOptional",(e,r)=>{yWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>K3t(e,i,s,l),e.unwrap=()=>e._zod.def.innerType});function WNt(e,r){return new rHe({type:"nonoptional",innerType:e,...es.normalizeParams(r)})}var GNt=ni("ZodSuccess",(e,r)=>{vWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>M3t(e,i,s,l),e.unwrap=()=>e._zod.def.innerType});function eLr(e){return new GNt({type:"success",innerType:e})}var HNt=ni("ZodCatch",(e,r)=>{SWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>X3t(e,i,s,l),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function KNt(e,r){return new HNt({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}var QNt=ni("ZodNaN",(e,r)=>{bWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>F3t(e,i,s,l)});function tLr(e){return cGe(QNt,e)}var nHe=ni("ZodPipe",(e,r)=>{xWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>Y3t(e,i,s,l),e.in=r.in,e.out=r.out});function JEe(e,r){return new nHe({type:"pipe",in:e,out:r})}var iHe=ni("ZodCodec",(e,r)=>{nHe.init(e,r),Gle.init(e,r)});function rLr(e,r,i){return new iHe({type:"pipe",in:e,out:r,transform:i.decode,reverseTransform:i.encode})}var ZNt=ni("ZodReadonly",(e,r)=>{TWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>eNt(e,i,s,l),e.unwrap=()=>e._zod.def.innerType});function XNt(e){return new ZNt({type:"readonly",innerType:e})}var YNt=ni("ZodTemplateLiteral",(e,r)=>{EWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>R3t(e,i,s,l)});function nLr(e,r){return new YNt({type:"template_literal",parts:e,...es.normalizeParams(r)})}var e8t=ni("ZodLazy",(e,r)=>{DWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>rNt(e,i,s,l),e.unwrap=()=>e._zod.def.getter()});function t8t(e){return new e8t({type:"lazy",getter:e})}var r8t=ni("ZodPromise",(e,r)=>{CWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>tNt(e,i,s,l),e.unwrap=()=>e._zod.def.innerType});function iLr(e){return new r8t({type:"promise",innerType:e})}var n8t=ni("ZodFunction",(e,r)=>{kWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>B3t(e,i,s,l)});function oLr(e){return new n8t({type:"function",input:Array.isArray(e?.input)?ONt(e?.input):e?.input??Ms(ig()),output:e?.output??ig()})}var ZEe=ni("ZodCustom",(e,r)=>{AWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>j3t(e,i,s,l)});function aLr(e){let r=new rg({check:"custom"});return r._zod.check=e,r}function oHe(e,r){return mGe(ZEe,e??(()=>!0),r)}function i8t(e,r={}){return hGe(ZEe,e,r)}function o8t(e){return gGe(e)}var sLr=yGe,cLr=vGe;function lLr(e,r={}){let i=new ZEe({type:"custom",check:"custom",fn:s=>s instanceof e,abort:!0,...es.normalizeParams(r)});return i._zod.bag.Class=e,i._zod.check=s=>{s.value instanceof e||s.issues.push({code:"invalid_type",expected:e.name,input:s.value,inst:i,path:[...i._zod.def.path??[]]})},i}var uLr=(...e)=>SGe({Codec:iHe,Boolean:due,String:uue},...e);function pLr(e){let r=t8t(()=>wh([An(e),yf(),oh(),mue(),Ms(r),Eg(An(),r)]));return r}function XEe(e,r){return JEe(eHe(e),r)}var s8t={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};var a8t;a8t||(a8t={});var S5n={...cue,...UEe,iso:FJ};var YEe={};J7(YEe,{bigint:()=>mLr,boolean:()=>fLr,date:()=>hLr,number:()=>dLr,string:()=>_Lr});function _Lr(e){return FWe(uue,e)}function dLr(e){return UWe(_ue,e)}function fLr(e){return HWe(due,e)}function mLr(e){return QWe(fue,e)}function hLr(e){return sGe(WEe,e)}Gv(wWe());var MX="2025-11-25";var l8t=[MX,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],mj="io.modelcontextprotocol/related-task",tke="2.0",Zb=oHe(e=>e!==null&&(typeof e=="object"||typeof e=="function")),u8t=wh([An(),yf().int()]),p8t=An(),B5n=cv({ttl:wh([yf(),mue()]).optional(),pollInterval:yf().optional()}),yLr=rc({ttl:yf().optional()}),vLr=rc({taskId:An()}),aHe=cv({progressToken:u8t.optional(),[mj]:vLr.optional()}),yD=rc({_meta:aHe.optional()}),yue=yD.extend({task:yLr.optional()}),_8t=e=>yue.safeParse(e).success,Xb=rc({method:An(),params:yD.loose().optional()}),qw=rc({_meta:aHe.optional()}),Jw=rc({method:An(),params:qw.loose().optional()}),Yb=cv({_meta:aHe.optional()}),rke=wh([An(),yf().int()]),d8t=rc({jsonrpc:Dl(tke),id:rke,...Xb.shape}).strict(),vue=e=>d8t.safeParse(e).success,f8t=rc({jsonrpc:Dl(tke),...Jw.shape}).strict(),m8t=e=>f8t.safeParse(e).success,sHe=rc({jsonrpc:Dl(tke),id:rke,result:Yb}).strict(),RJ=e=>sHe.safeParse(e).success;var yp;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(yp||(yp={}));var cHe=rc({jsonrpc:Dl(tke),id:rke.optional(),error:rc({code:yf().int(),message:An(),data:ig().optional()})}).strict();var h8t=e=>cHe.safeParse(e).success;var hj=wh([d8t,f8t,sHe,cHe]),$5n=wh([sHe,cHe]),LJ=Yb.strict(),SLr=qw.extend({requestId:rke.optional(),reason:An().optional()}),nke=Jw.extend({method:Dl("notifications/cancelled"),params:SLr}),bLr=rc({src:An(),mimeType:An().optional(),sizes:Ms(An()).optional(),theme:gT(["light","dark"]).optional()}),Sue=rc({icons:Ms(bLr).optional()}),LX=rc({name:An(),title:An().optional()}),g8t=LX.extend({...LX.shape,...Sue.shape,version:An(),websiteUrl:An().optional(),description:An().optional()}),xLr=hue(rc({applyDefaults:oh().optional()}),Eg(An(),ig())),TLr=XEe(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,hue(rc({form:xLr.optional(),url:Zb.optional()}),Eg(An(),ig()).optional())),ELr=cv({list:Zb.optional(),cancel:Zb.optional(),requests:cv({sampling:cv({createMessage:Zb.optional()}).optional(),elicitation:cv({create:Zb.optional()}).optional()}).optional()}),kLr=cv({list:Zb.optional(),cancel:Zb.optional(),requests:cv({tools:cv({call:Zb.optional()}).optional()}).optional()}),CLr=rc({experimental:Eg(An(),Zb).optional(),sampling:rc({context:Zb.optional(),tools:Zb.optional()}).optional(),elicitation:TLr.optional(),roots:rc({listChanged:oh().optional()}).optional(),tasks:ELr.optional()}),DLr=yD.extend({protocolVersion:An(),capabilities:CLr,clientInfo:g8t}),ALr=Xb.extend({method:Dl("initialize"),params:DLr});var wLr=rc({experimental:Eg(An(),Zb).optional(),logging:Zb.optional(),completions:Zb.optional(),prompts:rc({listChanged:oh().optional()}).optional(),resources:rc({subscribe:oh().optional(),listChanged:oh().optional()}).optional(),tools:rc({listChanged:oh().optional()}).optional(),tasks:kLr.optional()}),lHe=Yb.extend({protocolVersion:An(),capabilities:wLr,serverInfo:g8t,instructions:An().optional()}),y8t=Jw.extend({method:Dl("notifications/initialized"),params:qw.optional()}),v8t=e=>y8t.safeParse(e).success,ike=Xb.extend({method:Dl("ping"),params:yD.optional()}),ILr=rc({progress:yf(),total:oy(yf()),message:oy(An())}),PLr=rc({...qw.shape,...ILr.shape,progressToken:u8t}),oke=Jw.extend({method:Dl("notifications/progress"),params:PLr}),NLr=yD.extend({cursor:p8t.optional()}),bue=Xb.extend({params:NLr.optional()}),xue=Yb.extend({nextCursor:p8t.optional()}),OLr=gT(["working","input_required","completed","failed","cancelled"]),Tue=rc({taskId:An(),status:OLr,ttl:wh([yf(),mue()]),createdAt:An(),lastUpdatedAt:An(),pollInterval:oy(yf()),statusMessage:oy(An())}),MJ=Yb.extend({task:Tue}),FLr=qw.merge(Tue),Eue=Jw.extend({method:Dl("notifications/tasks/status"),params:FLr}),ake=Xb.extend({method:Dl("tasks/get"),params:yD.extend({taskId:An()})}),ske=Yb.merge(Tue),cke=Xb.extend({method:Dl("tasks/result"),params:yD.extend({taskId:An()})}),U5n=Yb.loose(),lke=bue.extend({method:Dl("tasks/list")}),uke=xue.extend({tasks:Ms(Tue)}),pke=Xb.extend({method:Dl("tasks/cancel"),params:yD.extend({taskId:An()})}),S8t=Yb.merge(Tue),b8t=rc({uri:An(),mimeType:oy(An()),_meta:Eg(An(),ig()).optional()}),x8t=b8t.extend({text:An()}),uHe=An().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),T8t=b8t.extend({blob:uHe}),kue=gT(["user","assistant"]),jX=rc({audience:Ms(kue).optional(),priority:yf().min(0).max(1).optional(),lastModified:FJ.datetime({offset:!0}).optional()}),E8t=rc({...LX.shape,...Sue.shape,uri:An(),description:oy(An()),mimeType:oy(An()),annotations:jX.optional(),_meta:oy(cv({}))}),RLr=rc({...LX.shape,...Sue.shape,uriTemplate:An(),description:oy(An()),mimeType:oy(An()),annotations:jX.optional(),_meta:oy(cv({}))}),LLr=bue.extend({method:Dl("resources/list")}),pHe=xue.extend({resources:Ms(E8t)}),MLr=bue.extend({method:Dl("resources/templates/list")}),_He=xue.extend({resourceTemplates:Ms(RLr)}),dHe=yD.extend({uri:An()}),jLr=dHe,BLr=Xb.extend({method:Dl("resources/read"),params:jLr}),fHe=Yb.extend({contents:Ms(wh([x8t,T8t]))}),mHe=Jw.extend({method:Dl("notifications/resources/list_changed"),params:qw.optional()}),$Lr=dHe,ULr=Xb.extend({method:Dl("resources/subscribe"),params:$Lr}),zLr=dHe,qLr=Xb.extend({method:Dl("resources/unsubscribe"),params:zLr}),JLr=qw.extend({uri:An()}),VLr=Jw.extend({method:Dl("notifications/resources/updated"),params:JLr}),WLr=rc({name:An(),description:oy(An()),required:oy(oh())}),GLr=rc({...LX.shape,...Sue.shape,description:oy(An()),arguments:oy(Ms(WLr)),_meta:oy(cv({}))}),HLr=bue.extend({method:Dl("prompts/list")}),hHe=xue.extend({prompts:Ms(GLr)}),KLr=yD.extend({name:An(),arguments:Eg(An(),An()).optional()}),QLr=Xb.extend({method:Dl("prompts/get"),params:KLr}),gHe=rc({type:Dl("text"),text:An(),annotations:jX.optional(),_meta:Eg(An(),ig()).optional()}),yHe=rc({type:Dl("image"),data:uHe,mimeType:An(),annotations:jX.optional(),_meta:Eg(An(),ig()).optional()}),vHe=rc({type:Dl("audio"),data:uHe,mimeType:An(),annotations:jX.optional(),_meta:Eg(An(),ig()).optional()}),ZLr=rc({type:Dl("tool_use"),name:An(),id:An(),input:Eg(An(),ig()),_meta:Eg(An(),ig()).optional()}),XLr=rc({type:Dl("resource"),resource:wh([x8t,T8t]),annotations:jX.optional(),_meta:Eg(An(),ig()).optional()}),YLr=E8t.extend({type:Dl("resource_link")}),SHe=wh([gHe,yHe,vHe,YLr,XLr]),eMr=rc({role:kue,content:SHe}),bHe=Yb.extend({description:An().optional(),messages:Ms(eMr)}),xHe=Jw.extend({method:Dl("notifications/prompts/list_changed"),params:qw.optional()}),tMr=rc({title:An().optional(),readOnlyHint:oh().optional(),destructiveHint:oh().optional(),idempotentHint:oh().optional(),openWorldHint:oh().optional()}),rMr=rc({taskSupport:gT(["required","optional","forbidden"]).optional()}),k8t=rc({...LX.shape,...Sue.shape,description:An().optional(),inputSchema:rc({type:Dl("object"),properties:Eg(An(),Zb).optional(),required:Ms(An()).optional()}).catchall(ig()),outputSchema:rc({type:Dl("object"),properties:Eg(An(),Zb).optional(),required:Ms(An()).optional()}).catchall(ig()).optional(),annotations:tMr.optional(),execution:rMr.optional(),_meta:Eg(An(),ig()).optional()}),nMr=bue.extend({method:Dl("tools/list")}),THe=xue.extend({tools:Ms(k8t)}),BX=Yb.extend({content:Ms(SHe).default([]),structuredContent:Eg(An(),ig()).optional(),isError:oh().optional()}),z5n=BX.or(Yb.extend({toolResult:ig()})),iMr=yue.extend({name:An(),arguments:Eg(An(),ig()).optional()}),oMr=Xb.extend({method:Dl("tools/call"),params:iMr}),EHe=Jw.extend({method:Dl("notifications/tools/list_changed"),params:qw.optional()}),C8t=rc({autoRefresh:oh().default(!0),debounceMs:yf().int().nonnegative().default(300)}),D8t=gT(["debug","info","notice","warning","error","critical","alert","emergency"]),aMr=yD.extend({level:D8t}),sMr=Xb.extend({method:Dl("logging/setLevel"),params:aMr}),cMr=qw.extend({level:D8t,logger:An().optional(),data:ig()}),lMr=Jw.extend({method:Dl("notifications/message"),params:cMr}),uMr=rc({name:An().optional()}),pMr=rc({hints:Ms(uMr).optional(),costPriority:yf().min(0).max(1).optional(),speedPriority:yf().min(0).max(1).optional(),intelligencePriority:yf().min(0).max(1).optional()}),_Mr=rc({mode:gT(["auto","required","none"]).optional()}),dMr=rc({type:Dl("tool_result"),toolUseId:An().describe("The unique identifier for the corresponding tool call."),content:Ms(SHe).default([]),structuredContent:rc({}).loose().optional(),isError:oh().optional(),_meta:Eg(An(),ig()).optional()}),fMr=KEe("type",[gHe,yHe,vHe]),eke=KEe("type",[gHe,yHe,vHe,ZLr,dMr]),mMr=rc({role:kue,content:wh([eke,Ms(eke)]),_meta:Eg(An(),ig()).optional()}),hMr=yue.extend({messages:Ms(mMr),modelPreferences:pMr.optional(),systemPrompt:An().optional(),includeContext:gT(["none","thisServer","allServers"]).optional(),temperature:yf().optional(),maxTokens:yf().int(),stopSequences:Ms(An()).optional(),metadata:Zb.optional(),tools:Ms(k8t).optional(),toolChoice:_Mr.optional()}),kHe=Xb.extend({method:Dl("sampling/createMessage"),params:hMr}),CHe=Yb.extend({model:An(),stopReason:oy(gT(["endTurn","stopSequence","maxTokens"]).or(An())),role:kue,content:fMr}),DHe=Yb.extend({model:An(),stopReason:oy(gT(["endTurn","stopSequence","maxTokens","toolUse"]).or(An())),role:kue,content:wh([eke,Ms(eke)])}),gMr=rc({type:Dl("boolean"),title:An().optional(),description:An().optional(),default:oh().optional()}),yMr=rc({type:Dl("string"),title:An().optional(),description:An().optional(),minLength:yf().optional(),maxLength:yf().optional(),format:gT(["email","uri","date","date-time"]).optional(),default:An().optional()}),vMr=rc({type:gT(["number","integer"]),title:An().optional(),description:An().optional(),minimum:yf().optional(),maximum:yf().optional(),default:yf().optional()}),SMr=rc({type:Dl("string"),title:An().optional(),description:An().optional(),enum:Ms(An()),default:An().optional()}),bMr=rc({type:Dl("string"),title:An().optional(),description:An().optional(),oneOf:Ms(rc({const:An(),title:An()})),default:An().optional()}),xMr=rc({type:Dl("string"),title:An().optional(),description:An().optional(),enum:Ms(An()),enumNames:Ms(An()).optional(),default:An().optional()}),TMr=wh([SMr,bMr]),EMr=rc({type:Dl("array"),title:An().optional(),description:An().optional(),minItems:yf().optional(),maxItems:yf().optional(),items:rc({type:Dl("string"),enum:Ms(An())}),default:Ms(An()).optional()}),kMr=rc({type:Dl("array"),title:An().optional(),description:An().optional(),minItems:yf().optional(),maxItems:yf().optional(),items:rc({anyOf:Ms(rc({const:An(),title:An()}))}),default:Ms(An()).optional()}),CMr=wh([EMr,kMr]),DMr=wh([xMr,TMr,CMr]),AMr=wh([DMr,gMr,yMr,vMr]),wMr=yue.extend({mode:Dl("form").optional(),message:An(),requestedSchema:rc({type:Dl("object"),properties:Eg(An(),AMr),required:Ms(An()).optional()})}),IMr=yue.extend({mode:Dl("url"),message:An(),elicitationId:An(),url:An().url()}),PMr=wh([wMr,IMr]),Cue=Xb.extend({method:Dl("elicitation/create"),params:PMr}),NMr=qw.extend({elicitationId:An()}),OMr=Jw.extend({method:Dl("notifications/elicitation/complete"),params:NMr}),AHe=Yb.extend({action:gT(["accept","decline","cancel"]),content:XEe(e=>e===null?void 0:e,Eg(An(),wh([An(),yf(),oh(),Ms(An())])).optional())}),FMr=rc({type:Dl("ref/resource"),uri:An()});var RMr=rc({type:Dl("ref/prompt"),name:An()}),LMr=yD.extend({ref:wh([RMr,FMr]),argument:rc({name:An(),value:An()}),context:rc({arguments:Eg(An(),An()).optional()}).optional()}),MMr=Xb.extend({method:Dl("completion/complete"),params:LMr});var wHe=Yb.extend({completion:cv({values:Ms(An()).max(100),total:oy(yf().int()),hasMore:oy(oh())})}),jMr=rc({uri:An().startsWith("file://"),name:An().optional(),_meta:Eg(An(),ig()).optional()}),BMr=Xb.extend({method:Dl("roots/list"),params:yD.optional()}),$Mr=Yb.extend({roots:Ms(jMr)}),UMr=Jw.extend({method:Dl("notifications/roots/list_changed"),params:qw.optional()}),q5n=wh([ike,ALr,MMr,sMr,QLr,HLr,LLr,MLr,BLr,ULr,qLr,oMr,nMr,ake,cke,lke,pke]),J5n=wh([nke,oke,y8t,UMr,Eue]),V5n=wh([LJ,CHe,DHe,AHe,$Mr,ske,uke,MJ]),W5n=wh([ike,kHe,Cue,BMr,ake,cke,lke,pke]),G5n=wh([nke,oke,lMr,VLr,mHe,EHe,xHe,Eue,OMr]),H5n=wh([LJ,lHe,wHe,bHe,hHe,pHe,_He,fHe,BX,THe,ske,uke,MJ]),vu=class e extends Error{constructor(r,i,s){super(`MCP error ${r}: ${i}`),this.code=r,this.data=s,this.name="McpError"}static fromError(r,i,s){if(r===yp.UrlElicitationRequired&&s){let l=s;if(l.elicitations)return new gue(l.elicitations,i)}return new e(r,i,s)}},gue=class extends vu{constructor(r,i=`URL elicitation${r.length>1?"s":""} required`){super(yp.UrlElicitationRequired,i,{elicitations:r})}get elicitations(){return this.data?.elicitations??[]}};function gj(e){return e==="completed"||e==="failed"||e==="cancelled"}var A9n=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function IHe(e){let i=$Ee(e)?.method;if(!i)throw new Error("Schema is missing a method literal");let s=aNt(i);if(typeof s!="string")throw new Error("Schema method literal must be a string");return s}function PHe(e,r){let i=k6(e,r);if(!i.success)throw i.error;return i.data}var GMr=6e4,_ke=class{constructor(r){this._options=r,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(nke,i=>{this._oncancel(i)}),this.setNotificationHandler(oke,i=>{this._onprogress(i)}),this.setRequestHandler(ike,i=>({})),this._taskStore=r?.taskStore,this._taskMessageQueue=r?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(ake,async(i,s)=>{let l=await this._taskStore.getTask(i.params.taskId,s.sessionId);if(!l)throw new vu(yp.InvalidParams,"Failed to retrieve task: Task not found");return{...l}}),this.setRequestHandler(cke,async(i,s)=>{let l=async()=>{let d=i.params.taskId;if(this._taskMessageQueue){let S;for(;S=await this._taskMessageQueue.dequeue(d,s.sessionId);){if(S.type==="response"||S.type==="error"){let b=S.message,A=b.id,L=this._requestResolvers.get(A);if(L)if(this._requestResolvers.delete(A),S.type==="response")L(b);else{let V=b,j=new vu(V.error.code,V.error.message,V.error.data);L(j)}else{let V=S.type==="response"?"Response":"Error";this._onerror(new Error(`${V} handler missing for request ${A}`))}continue}await this._transport?.send(S.message,{relatedRequestId:s.requestId})}}let h=await this._taskStore.getTask(d,s.sessionId);if(!h)throw new vu(yp.InvalidParams,`Task not found: ${d}`);if(!gj(h.status))return await this._waitForTaskUpdate(d,s.signal),await l();if(gj(h.status)){let S=await this._taskStore.getTaskResult(d,s.sessionId);return this._clearTaskQueue(d),{...S,_meta:{...S._meta,[mj]:{taskId:d}}}}return await l()};return await l()}),this.setRequestHandler(lke,async(i,s)=>{try{let{tasks:l,nextCursor:d}=await this._taskStore.listTasks(i.params?.cursor,s.sessionId);return{tasks:l,nextCursor:d,_meta:{}}}catch(l){throw new vu(yp.InvalidParams,`Failed to list tasks: ${l instanceof Error?l.message:String(l)}`)}}),this.setRequestHandler(pke,async(i,s)=>{try{let l=await this._taskStore.getTask(i.params.taskId,s.sessionId);if(!l)throw new vu(yp.InvalidParams,`Task not found: ${i.params.taskId}`);if(gj(l.status))throw new vu(yp.InvalidParams,`Cannot cancel task in terminal status: ${l.status}`);await this._taskStore.updateTaskStatus(i.params.taskId,"cancelled","Client cancelled task execution.",s.sessionId),this._clearTaskQueue(i.params.taskId);let d=await this._taskStore.getTask(i.params.taskId,s.sessionId);if(!d)throw new vu(yp.InvalidParams,`Task not found after cancellation: ${i.params.taskId}`);return{_meta:{},...d}}catch(l){throw l instanceof vu?l:new vu(yp.InvalidRequest,`Failed to cancel task: ${l instanceof Error?l.message:String(l)}`)}}))}async _oncancel(r){if(!r.params.requestId)return;this._requestHandlerAbortControllers.get(r.params.requestId)?.abort(r.params.reason)}_setupTimeout(r,i,s,l,d=!1){this._timeoutInfo.set(r,{timeoutId:setTimeout(l,i),startTime:Date.now(),timeout:i,maxTotalTimeout:s,resetTimeoutOnProgress:d,onTimeout:l})}_resetTimeout(r){let i=this._timeoutInfo.get(r);if(!i)return!1;let s=Date.now()-i.startTime;if(i.maxTotalTimeout&&s>=i.maxTotalTimeout)throw this._timeoutInfo.delete(r),vu.fromError(yp.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:i.maxTotalTimeout,totalElapsed:s});return clearTimeout(i.timeoutId),i.timeoutId=setTimeout(i.onTimeout,i.timeout),!0}_cleanupTimeout(r){let i=this._timeoutInfo.get(r);i&&(clearTimeout(i.timeoutId),this._timeoutInfo.delete(r))}async connect(r){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=r;let i=this.transport?.onclose;this._transport.onclose=()=>{i?.(),this._onclose()};let s=this.transport?.onerror;this._transport.onerror=d=>{s?.(d),this._onerror(d)};let l=this._transport?.onmessage;this._transport.onmessage=(d,h)=>{l?.(d,h),RJ(d)||h8t(d)?this._onresponse(d):vue(d)?this._onrequest(d,h):m8t(d)?this._onnotification(d):this._onerror(new Error(`Unknown message type: ${JSON.stringify(d)}`))},await this._transport.start()}_onclose(){let r=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let s of this._requestHandlerAbortControllers.values())s.abort();this._requestHandlerAbortControllers.clear();let i=vu.fromError(yp.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let s of r.values())s(i)}_onerror(r){this.onerror?.(r)}_onnotification(r){let i=this._notificationHandlers.get(r.method)??this.fallbackNotificationHandler;i!==void 0&&Promise.resolve().then(()=>i(r)).catch(s=>this._onerror(new Error(`Uncaught error in notification handler: ${s}`)))}_onrequest(r,i){let s=this._requestHandlers.get(r.method)??this.fallbackRequestHandler,l=this._transport,d=r.params?._meta?.[mj]?.taskId;if(s===void 0){let L={jsonrpc:"2.0",id:r.id,error:{code:yp.MethodNotFound,message:"Method not found"}};d&&this._taskMessageQueue?this._enqueueTaskMessage(d,{type:"error",message:L,timestamp:Date.now()},l?.sessionId).catch(V=>this._onerror(new Error(`Failed to enqueue error response: ${V}`))):l?.send(L).catch(V=>this._onerror(new Error(`Failed to send an error response: ${V}`)));return}let h=new AbortController;this._requestHandlerAbortControllers.set(r.id,h);let S=_8t(r.params)?r.params.task:void 0,b=this._taskStore?this.requestTaskStore(r,l?.sessionId):void 0,A={signal:h.signal,sessionId:l?.sessionId,_meta:r.params?._meta,sendNotification:async L=>{if(h.signal.aborted)return;let V={relatedRequestId:r.id};d&&(V.relatedTask={taskId:d}),await this.notification(L,V)},sendRequest:async(L,V,j)=>{if(h.signal.aborted)throw new vu(yp.ConnectionClosed,"Request was cancelled");let ie={...j,relatedRequestId:r.id};d&&!ie.relatedTask&&(ie.relatedTask={taskId:d});let te=ie.relatedTask?.taskId??d;return te&&b&&await b.updateTaskStatus(te,"input_required"),await this.request(L,V,ie)},authInfo:i?.authInfo,requestId:r.id,requestInfo:i?.requestInfo,taskId:d,taskStore:b,taskRequestedTtl:S?.ttl,closeSSEStream:i?.closeSSEStream,closeStandaloneSSEStream:i?.closeStandaloneSSEStream};Promise.resolve().then(()=>{S&&this.assertTaskHandlerCapability(r.method)}).then(()=>s(r,A)).then(async L=>{if(h.signal.aborted)return;let V={result:L,jsonrpc:"2.0",id:r.id};d&&this._taskMessageQueue?await this._enqueueTaskMessage(d,{type:"response",message:V,timestamp:Date.now()},l?.sessionId):await l?.send(V)},async L=>{if(h.signal.aborted)return;let V={jsonrpc:"2.0",id:r.id,error:{code:Number.isSafeInteger(L.code)?L.code:yp.InternalError,message:L.message??"Internal error",...L.data!==void 0&&{data:L.data}}};d&&this._taskMessageQueue?await this._enqueueTaskMessage(d,{type:"error",message:V,timestamp:Date.now()},l?.sessionId):await l?.send(V)}).catch(L=>this._onerror(new Error(`Failed to send response: ${L}`))).finally(()=>{this._requestHandlerAbortControllers.delete(r.id)})}_onprogress(r){let{progressToken:i,...s}=r.params,l=Number(i),d=this._progressHandlers.get(l);if(!d){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(r)}`));return}let h=this._responseHandlers.get(l),S=this._timeoutInfo.get(l);if(S&&h&&S.resetTimeoutOnProgress)try{this._resetTimeout(l)}catch(b){this._responseHandlers.delete(l),this._progressHandlers.delete(l),this._cleanupTimeout(l),h(b);return}d(s)}_onresponse(r){let i=Number(r.id),s=this._requestResolvers.get(i);if(s){if(this._requestResolvers.delete(i),RJ(r))s(r);else{let h=new vu(r.error.code,r.error.message,r.error.data);s(h)}return}let l=this._responseHandlers.get(i);if(l===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(r)}`));return}this._responseHandlers.delete(i),this._cleanupTimeout(i);let d=!1;if(RJ(r)&&r.result&&typeof r.result=="object"){let h=r.result;if(h.task&&typeof h.task=="object"){let S=h.task;typeof S.taskId=="string"&&(d=!0,this._taskProgressTokens.set(S.taskId,i))}}if(d||this._progressHandlers.delete(i),RJ(r))l(r);else{let h=vu.fromError(r.error.code,r.error.message,r.error.data);l(h)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(r,i,s){let{task:l}=s??{};if(!l){try{yield{type:"result",result:await this.request(r,i,s)}}catch(h){yield{type:"error",error:h instanceof vu?h:new vu(yp.InternalError,String(h))}}return}let d;try{let h=await this.request(r,MJ,s);if(h.task)d=h.task.taskId,yield{type:"taskCreated",task:h.task};else throw new vu(yp.InternalError,"Task creation did not return a task");for(;;){let S=await this.getTask({taskId:d},s);if(yield{type:"taskStatus",task:S},gj(S.status)){S.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:d},i,s)}:S.status==="failed"?yield{type:"error",error:new vu(yp.InternalError,`Task ${d} failed`)}:S.status==="cancelled"&&(yield{type:"error",error:new vu(yp.InternalError,`Task ${d} was cancelled`)});return}if(S.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:d},i,s)};return}let b=S.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(A=>setTimeout(A,b)),s?.signal?.throwIfAborted()}}catch(h){yield{type:"error",error:h instanceof vu?h:new vu(yp.InternalError,String(h))}}}request(r,i,s){let{relatedRequestId:l,resumptionToken:d,onresumptiontoken:h,task:S,relatedTask:b}=s??{};return new Promise((A,L)=>{let V=pt=>{L(pt)};if(!this._transport){V(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(r.method),S&&this.assertTaskCapability(r.method)}catch(pt){V(pt);return}s?.signal?.throwIfAborted();let j=this._requestMessageId++,ie={...r,jsonrpc:"2.0",id:j};s?.onprogress&&(this._progressHandlers.set(j,s.onprogress),ie.params={...r.params,_meta:{...r.params?._meta||{},progressToken:j}}),S&&(ie.params={...ie.params,task:S}),b&&(ie.params={...ie.params,_meta:{...ie.params?._meta||{},[mj]:b}});let te=pt=>{this._responseHandlers.delete(j),this._progressHandlers.delete(j),this._cleanupTimeout(j),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:j,reason:String(pt)}},{relatedRequestId:l,resumptionToken:d,onresumptiontoken:h}).catch(xt=>this._onerror(new Error(`Failed to send cancellation: ${xt}`)));let $e=pt instanceof vu?pt:new vu(yp.RequestTimeout,String(pt));L($e)};this._responseHandlers.set(j,pt=>{if(!s?.signal?.aborted){if(pt instanceof Error)return L(pt);try{let $e=k6(i,pt.result);$e.success?A($e.data):L($e.error)}catch($e){L($e)}}}),s?.signal?.addEventListener("abort",()=>{te(s?.signal?.reason)});let X=s?.timeout??GMr,Re=()=>te(vu.fromError(yp.RequestTimeout,"Request timed out",{timeout:X}));this._setupTimeout(j,X,s?.maxTotalTimeout,Re,s?.resetTimeoutOnProgress??!1);let Je=b?.taskId;if(Je){let pt=$e=>{let xt=this._responseHandlers.get(j);xt?xt($e):this._onerror(new Error(`Response handler missing for side-channeled request ${j}`))};this._requestResolvers.set(j,pt),this._enqueueTaskMessage(Je,{type:"request",message:ie,timestamp:Date.now()}).catch($e=>{this._cleanupTimeout(j),L($e)})}else this._transport.send(ie,{relatedRequestId:l,resumptionToken:d,onresumptiontoken:h}).catch(pt=>{this._cleanupTimeout(j),L(pt)})})}async getTask(r,i){return this.request({method:"tasks/get",params:r},ske,i)}async getTaskResult(r,i,s){return this.request({method:"tasks/result",params:r},i,s)}async listTasks(r,i){return this.request({method:"tasks/list",params:r},uke,i)}async cancelTask(r,i){return this.request({method:"tasks/cancel",params:r},S8t,i)}async notification(r,i){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(r.method);let s=i?.relatedTask?.taskId;if(s){let S={...r,jsonrpc:"2.0",params:{...r.params,_meta:{...r.params?._meta||{},[mj]:i.relatedTask}}};await this._enqueueTaskMessage(s,{type:"notification",message:S,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(r.method)&&!r.params&&!i?.relatedRequestId&&!i?.relatedTask){if(this._pendingDebouncedNotifications.has(r.method))return;this._pendingDebouncedNotifications.add(r.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(r.method),!this._transport)return;let S={...r,jsonrpc:"2.0"};i?.relatedTask&&(S={...S,params:{...S.params,_meta:{...S.params?._meta||{},[mj]:i.relatedTask}}}),this._transport?.send(S,i).catch(b=>this._onerror(b))});return}let h={...r,jsonrpc:"2.0"};i?.relatedTask&&(h={...h,params:{...h.params,_meta:{...h.params?._meta||{},[mj]:i.relatedTask}}}),await this._transport.send(h,i)}setRequestHandler(r,i){let s=IHe(r);this.assertRequestHandlerCapability(s),this._requestHandlers.set(s,(l,d)=>{let h=PHe(r,l);return Promise.resolve(i(h,d))})}removeRequestHandler(r){this._requestHandlers.delete(r)}assertCanSetRequestHandler(r){if(this._requestHandlers.has(r))throw new Error(`A request handler for ${r} already exists, which would be overridden`)}setNotificationHandler(r,i){let s=IHe(r);this._notificationHandlers.set(s,l=>{let d=PHe(r,l);return Promise.resolve(i(d))})}removeNotificationHandler(r){this._notificationHandlers.delete(r)}_cleanupTaskProgressHandler(r){let i=this._taskProgressTokens.get(r);i!==void 0&&(this._progressHandlers.delete(i),this._taskProgressTokens.delete(r))}async _enqueueTaskMessage(r,i,s){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let l=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(r,i,s,l)}async _clearTaskQueue(r,i){if(this._taskMessageQueue){let s=await this._taskMessageQueue.dequeueAll(r,i);for(let l of s)if(l.type==="request"&&vue(l.message)){let d=l.message.id,h=this._requestResolvers.get(d);h?(h(new vu(yp.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(d)):this._onerror(new Error(`Resolver missing for request ${d} during task ${r} cleanup`))}}}async _waitForTaskUpdate(r,i){let s=this._options?.defaultTaskPollInterval??1e3;try{let l=await this._taskStore?.getTask(r);l?.pollInterval&&(s=l.pollInterval)}catch{}return new Promise((l,d)=>{if(i.aborted){d(new vu(yp.InvalidRequest,"Request cancelled"));return}let h=setTimeout(l,s);i.addEventListener("abort",()=>{clearTimeout(h),d(new vu(yp.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(r,i){let s=this._taskStore;if(!s)throw new Error("No task store configured");return{createTask:async l=>{if(!r)throw new Error("No request provided");return await s.createTask(l,r.id,{method:r.method,params:r.params},i)},getTask:async l=>{let d=await s.getTask(l,i);if(!d)throw new vu(yp.InvalidParams,"Failed to retrieve task: Task not found");return d},storeTaskResult:async(l,d,h)=>{await s.storeTaskResult(l,d,h,i);let S=await s.getTask(l,i);if(S){let b=Eue.parse({method:"notifications/tasks/status",params:S});await this.notification(b),gj(S.status)&&this._cleanupTaskProgressHandler(l)}},getTaskResult:l=>s.getTaskResult(l,i),updateTaskStatus:async(l,d,h)=>{let S=await s.getTask(l,i);if(!S)throw new vu(yp.InvalidParams,`Task "${l}" not found - it may have been cleaned up`);if(gj(S.status))throw new vu(yp.InvalidParams,`Cannot update task "${l}" from terminal status "${S.status}" to "${d}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await s.updateTaskStatus(l,d,h,i);let b=await s.getTask(l,i);if(b){let A=Eue.parse({method:"notifications/tasks/status",params:b});await this.notification(A),gj(b.status)&&this._cleanupTaskProgressHandler(l)}},listTasks:l=>s.listTasks(l,i)}}};function A8t(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function w8t(e,r){let i={...e};for(let s in r){let l=s,d=r[l];if(d===void 0)continue;let h=i[l];A8t(h)&&A8t(d)?i[l]={...h,...d}:i[l]=d}return i}var G8t=fJ(FHe(),1),H8t=fJ(W8t(),1);function kjr(){let e=new G8t.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,H8t.default)(e),e}var mke=class{constructor(r){this._ajv=r??kjr()}getValidator(r){let i="$id"in r&&typeof r.$id=="string"?this._ajv.getSchema(r.$id)??this._ajv.compile(r):this._ajv.compile(r);return s=>i(s)?{valid:!0,data:s,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(i.errors)}}};var hke=class{constructor(r){this._client=r}async*callToolStream(r,i=BX,s){let l=this._client,d={...s,task:s?.task??(l.isToolTask(r.name)?{}:void 0)},h=l.requestStream({method:"tools/call",params:r},i,d),S=l.getToolOutputValidator(r.name);for await(let b of h){if(b.type==="result"&&S){let A=b.result;if(!A.structuredContent&&!A.isError){yield{type:"error",error:new vu(yp.InvalidRequest,`Tool ${r.name} has an output schema but did not return structured content`)};return}if(A.structuredContent)try{let L=S(A.structuredContent);if(!L.valid){yield{type:"error",error:new vu(yp.InvalidParams,`Structured content does not match the tool's output schema: ${L.errorMessage}`)};return}}catch(L){if(L instanceof vu){yield{type:"error",error:L};return}yield{type:"error",error:new vu(yp.InvalidParams,`Failed to validate structured content: ${L instanceof Error?L.message:String(L)}`)};return}}yield b}}async getTask(r,i){return this._client.getTask({taskId:r},i)}async getTaskResult(r,i,s){return this._client.getTaskResult({taskId:r},i,s)}async listTasks(r,i){return this._client.listTasks(r?{cursor:r}:void 0,i)}async cancelTask(r,i){return this._client.cancelTask({taskId:r},i)}requestStream(r,i,s){return this._client.requestStream(r,i,s)}};function K8t(e,r,i){if(!e)throw new Error(`${i} does not support task creation (required for ${r})`);switch(r){case"tools/call":if(!e.tools?.call)throw new Error(`${i} does not support task creation for tools/call (required for ${r})`);break;default:break}}function Q8t(e,r,i){if(!e)throw new Error(`${i} does not support task creation (required for ${r})`);switch(r){case"sampling/createMessage":if(!e.sampling?.createMessage)throw new Error(`${i} does not support task creation for sampling/createMessage (required for ${r})`);break;case"elicitation/create":if(!e.elicitation?.create)throw new Error(`${i} does not support task creation for elicitation/create (required for ${r})`);break;default:break}}function gke(e,r){if(!(!e||r===null||typeof r!="object")){if(e.type==="object"&&e.properties&&typeof e.properties=="object"){let i=r,s=e.properties;for(let l of Object.keys(s)){let d=s[l];i[l]===void 0&&Object.prototype.hasOwnProperty.call(d,"default")&&(i[l]=d.default),i[l]!==void 0&&gke(d,i[l])}}if(Array.isArray(e.anyOf))for(let i of e.anyOf)typeof i!="boolean"&&gke(i,r);if(Array.isArray(e.oneOf))for(let i of e.oneOf)typeof i!="boolean"&&gke(i,r)}}function Cjr(e){if(!e)return{supportsFormMode:!1,supportsUrlMode:!1};let r=e.form!==void 0,i=e.url!==void 0;return{supportsFormMode:r||!r&&!i,supportsUrlMode:i}}var yke=class extends _ke{constructor(r,i){super(i),this._clientInfo=r,this._cachedToolOutputValidators=new Map,this._cachedKnownTaskTools=new Set,this._cachedRequiredTaskTools=new Set,this._listChangedDebounceTimers=new Map,this._capabilities=i?.capabilities??{},this._jsonSchemaValidator=i?.jsonSchemaValidator??new mke,i?.listChanged&&(this._pendingListChangedConfig=i.listChanged)}_setupListChangedHandlers(r){r.tools&&this._serverCapabilities?.tools?.listChanged&&this._setupListChangedHandler("tools",EHe,r.tools,async()=>(await this.listTools()).tools),r.prompts&&this._serverCapabilities?.prompts?.listChanged&&this._setupListChangedHandler("prompts",xHe,r.prompts,async()=>(await this.listPrompts()).prompts),r.resources&&this._serverCapabilities?.resources?.listChanged&&this._setupListChangedHandler("resources",mHe,r.resources,async()=>(await this.listResources()).resources)}get experimental(){return this._experimental||(this._experimental={tasks:new hke(this)}),this._experimental}registerCapabilities(r){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=w8t(this._capabilities,r)}setRequestHandler(r,i){let l=$Ee(r)?.method;if(!l)throw new Error("Schema is missing a method literal");let d;if(FX(l)){let S=l;d=S._zod?.def?.value??S.value}else{let S=l;d=S._def?.value??S.value}if(typeof d!="string")throw new Error("Schema method literal must be a string");let h=d;if(h==="elicitation/create"){let S=async(b,A)=>{let L=k6(Cue,b);if(!L.success){let pt=L.error instanceof Error?L.error.message:String(L.error);throw new vu(yp.InvalidParams,`Invalid elicitation request: ${pt}`)}let{params:V}=L.data;V.mode=V.mode??"form";let{supportsFormMode:j,supportsUrlMode:ie}=Cjr(this._capabilities.elicitation);if(V.mode==="form"&&!j)throw new vu(yp.InvalidParams,"Client does not support form-mode elicitation requests");if(V.mode==="url"&&!ie)throw new vu(yp.InvalidParams,"Client does not support URL-mode elicitation requests");let te=await Promise.resolve(i(b,A));if(V.task){let pt=k6(MJ,te);if(!pt.success){let $e=pt.error instanceof Error?pt.error.message:String(pt.error);throw new vu(yp.InvalidParams,`Invalid task creation result: ${$e}`)}return pt.data}let X=k6(AHe,te);if(!X.success){let pt=X.error instanceof Error?X.error.message:String(X.error);throw new vu(yp.InvalidParams,`Invalid elicitation result: ${pt}`)}let Re=X.data,Je=V.mode==="form"?V.requestedSchema:void 0;if(V.mode==="form"&&Re.action==="accept"&&Re.content&&Je&&this._capabilities.elicitation?.form?.applyDefaults)try{gke(Je,Re.content)}catch{}return Re};return super.setRequestHandler(r,S)}if(h==="sampling/createMessage"){let S=async(b,A)=>{let L=k6(kHe,b);if(!L.success){let Re=L.error instanceof Error?L.error.message:String(L.error);throw new vu(yp.InvalidParams,`Invalid sampling request: ${Re}`)}let{params:V}=L.data,j=await Promise.resolve(i(b,A));if(V.task){let Re=k6(MJ,j);if(!Re.success){let Je=Re.error instanceof Error?Re.error.message:String(Re.error);throw new vu(yp.InvalidParams,`Invalid task creation result: ${Je}`)}return Re.data}let te=V.tools||V.toolChoice?DHe:CHe,X=k6(te,j);if(!X.success){let Re=X.error instanceof Error?X.error.message:String(X.error);throw new vu(yp.InvalidParams,`Invalid sampling result: ${Re}`)}return X.data};return super.setRequestHandler(r,S)}return super.setRequestHandler(r,i)}assertCapability(r,i){if(!this._serverCapabilities?.[r])throw new Error(`Server does not support ${r} (required for ${i})`)}async connect(r,i){if(await super.connect(r),r.sessionId===void 0)try{let s=await this.request({method:"initialize",params:{protocolVersion:MX,capabilities:this._capabilities,clientInfo:this._clientInfo}},lHe,i);if(s===void 0)throw new Error(`Server sent invalid initialize result: ${s}`);if(!l8t.includes(s.protocolVersion))throw new Error(`Server's protocol version is not supported: ${s.protocolVersion}`);this._serverCapabilities=s.capabilities,this._serverVersion=s.serverInfo,r.setProtocolVersion&&r.setProtocolVersion(s.protocolVersion),this._instructions=s.instructions,await this.notification({method:"notifications/initialized"}),this._pendingListChangedConfig&&(this._setupListChangedHandlers(this._pendingListChangedConfig),this._pendingListChangedConfig=void 0)}catch(s){throw this.close(),s}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(r){switch(r){case"logging/setLevel":if(!this._serverCapabilities?.logging)throw new Error(`Server does not support logging (required for ${r})`);break;case"prompts/get":case"prompts/list":if(!this._serverCapabilities?.prompts)throw new Error(`Server does not support prompts (required for ${r})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!this._serverCapabilities?.resources)throw new Error(`Server does not support resources (required for ${r})`);if(r==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${r})`);break;case"tools/call":case"tools/list":if(!this._serverCapabilities?.tools)throw new Error(`Server does not support tools (required for ${r})`);break;case"completion/complete":if(!this._serverCapabilities?.completions)throw new Error(`Server does not support completions (required for ${r})`);break;case"initialize":break;case"ping":break}}assertNotificationCapability(r){switch(r){case"notifications/roots/list_changed":if(!this._capabilities.roots?.listChanged)throw new Error(`Client does not support roots list changed notifications (required for ${r})`);break;case"notifications/initialized":break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(r){if(this._capabilities)switch(r){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${r})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw new Error(`Client does not support elicitation capability (required for ${r})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${r})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Client does not support tasks capability (required for ${r})`);break;case"ping":break}}assertTaskCapability(r){K8t(this._serverCapabilities?.tasks?.requests,r,"Server")}assertTaskHandlerCapability(r){this._capabilities&&Q8t(this._capabilities.tasks?.requests,r,"Client")}async ping(r){return this.request({method:"ping"},LJ,r)}async complete(r,i){return this.request({method:"completion/complete",params:r},wHe,i)}async setLoggingLevel(r,i){return this.request({method:"logging/setLevel",params:{level:r}},LJ,i)}async getPrompt(r,i){return this.request({method:"prompts/get",params:r},bHe,i)}async listPrompts(r,i){return this.request({method:"prompts/list",params:r},hHe,i)}async listResources(r,i){return this.request({method:"resources/list",params:r},pHe,i)}async listResourceTemplates(r,i){return this.request({method:"resources/templates/list",params:r},_He,i)}async readResource(r,i){return this.request({method:"resources/read",params:r},fHe,i)}async subscribeResource(r,i){return this.request({method:"resources/subscribe",params:r},LJ,i)}async unsubscribeResource(r,i){return this.request({method:"resources/unsubscribe",params:r},LJ,i)}async callTool(r,i=BX,s){if(this.isToolTaskRequired(r.name))throw new vu(yp.InvalidRequest,`Tool "${r.name}" requires task-based execution. Use client.experimental.tasks.callToolStream() instead.`);let l=await this.request({method:"tools/call",params:r},i,s),d=this.getToolOutputValidator(r.name);if(d){if(!l.structuredContent&&!l.isError)throw new vu(yp.InvalidRequest,`Tool ${r.name} has an output schema but did not return structured content`);if(l.structuredContent)try{let h=d(l.structuredContent);if(!h.valid)throw new vu(yp.InvalidParams,`Structured content does not match the tool's output schema: ${h.errorMessage}`)}catch(h){throw h instanceof vu?h:new vu(yp.InvalidParams,`Failed to validate structured content: ${h instanceof Error?h.message:String(h)}`)}}return l}isToolTask(r){return this._serverCapabilities?.tasks?.requests?.tools?.call?this._cachedKnownTaskTools.has(r):!1}isToolTaskRequired(r){return this._cachedRequiredTaskTools.has(r)}cacheToolMetadata(r){this._cachedToolOutputValidators.clear(),this._cachedKnownTaskTools.clear(),this._cachedRequiredTaskTools.clear();for(let i of r){if(i.outputSchema){let l=this._jsonSchemaValidator.getValidator(i.outputSchema);this._cachedToolOutputValidators.set(i.name,l)}let s=i.execution?.taskSupport;(s==="required"||s==="optional")&&this._cachedKnownTaskTools.add(i.name),s==="required"&&this._cachedRequiredTaskTools.add(i.name)}}getToolOutputValidator(r){return this._cachedToolOutputValidators.get(r)}async listTools(r,i){let s=await this.request({method:"tools/list",params:r},THe,i);return this.cacheToolMetadata(s.tools),s}_setupListChangedHandler(r,i,s,l){let d=C8t.safeParse(s);if(!d.success)throw new Error(`Invalid ${r} listChanged options: ${d.error.message}`);if(typeof s.onChanged!="function")throw new Error(`Invalid ${r} listChanged options: onChanged must be a function`);let{autoRefresh:h,debounceMs:S}=d.data,{onChanged:b}=s,A=async()=>{if(!h){b(null,null);return}try{let V=await l();b(null,V)}catch(V){let j=V instanceof Error?V:new Error(String(V));b(j,null)}},L=()=>{if(S){let V=this._listChangedDebounceTimers.get(r);V&&clearTimeout(V);let j=setTimeout(A,S);this._listChangedDebounceTimers.set(r,j)}else A()};this.setNotificationHandler(i,L)}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}};var vke=class extends Error{constructor(r,i){super(r),this.name="ParseError",this.type=i.type,this.field=i.field,this.value=i.value,this.line=i.line}};function zHe(e){}function Ske(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:r=zHe,onError:i=zHe,onRetry:s=zHe,onComment:l}=e,d="",h=!0,S,b="",A="";function L(X){let Re=h?X.replace(/^\xEF\xBB\xBF/,""):X,[Je,pt]=Djr(`${d}${Re}`);for(let $e of Je)V($e);d=pt,h=!1}function V(X){if(X===""){ie();return}if(X.startsWith(":")){l&&l(X.slice(X.startsWith(": ")?2:1));return}let Re=X.indexOf(":");if(Re!==-1){let Je=X.slice(0,Re),pt=X[Re+1]===" "?2:1,$e=X.slice(Re+pt);j(Je,$e,X);return}j(X,"",X)}function j(X,Re,Je){switch(X){case"event":A=Re;break;case"data":b=`${b}${Re} +`;break;case"id":S=Re.includes("\0")?void 0:Re;break;case"retry":/^\d+$/.test(Re)?s(parseInt(Re,10)):i(new vke(`Invalid \`retry\` value: "${Re}"`,{type:"invalid-retry",value:Re,line:Je}));break;default:i(new vke(`Unknown field "${X.length>20?`${X.slice(0,20)}\u2026`:X}"`,{type:"unknown-field",field:X,value:Re,line:Je}));break}}function ie(){b.length>0&&r({id:S,event:A||void 0,data:b.endsWith(` +`)?b.slice(0,-1):b}),S=void 0,b="",A=""}function te(X={}){d&&X.consume&&V(d),h=!0,S=void 0,b="",A="",d=""}return{feed:L,reset:te}}function Djr(e){let r=[],i="",s=0;for(;s{throw TypeError(e)},ZHe=(e,r,i)=>r.has(e)||Y8t("Cannot "+i),bd=(e,r,i)=>(ZHe(e,r,"read from private field"),i?i.call(e):r.get(e)),Hv=(e,r,i)=>r.has(e)?Y8t("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,i),xy=(e,r,i,s)=>(ZHe(e,r,"write to private field"),r.set(e,i),i),u5=(e,r,i)=>(ZHe(e,r,"access private method"),i),uk,jJ,JX,bke,Tke,Pue,GX,Nue,vj,VX,HX,WX,wue,D6,JHe,VHe,WHe,X8t,GHe,HHe,Iue,KHe,QHe,BJ=class extends EventTarget{constructor(r,i){var s,l;super(),Hv(this,D6),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,Hv(this,uk),Hv(this,jJ),Hv(this,JX),Hv(this,bke),Hv(this,Tke),Hv(this,Pue),Hv(this,GX),Hv(this,Nue,null),Hv(this,vj),Hv(this,VX),Hv(this,HX,null),Hv(this,WX,null),Hv(this,wue,null),Hv(this,VHe,async d=>{var h;bd(this,VX).reset();let{body:S,redirected:b,status:A,headers:L}=d;if(A===204){u5(this,D6,Iue).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(b?xy(this,JX,new URL(d.url)):xy(this,JX,void 0),A!==200){u5(this,D6,Iue).call(this,`Non-200 status code (${A})`,A);return}if(!(L.get("content-type")||"").startsWith("text/event-stream")){u5(this,D6,Iue).call(this,'Invalid content type, expected "text/event-stream"',A);return}if(bd(this,uk)===this.CLOSED)return;xy(this,uk,this.OPEN);let V=new Event("open");if((h=bd(this,wue))==null||h.call(this,V),this.dispatchEvent(V),typeof S!="object"||!S||!("getReader"in S)){u5(this,D6,Iue).call(this,"Invalid response body, expected a web ReadableStream",A),this.close();return}let j=new TextDecoder,ie=S.getReader(),te=!0;do{let{done:X,value:Re}=await ie.read();Re&&bd(this,VX).feed(j.decode(Re,{stream:!X})),X&&(te=!1,bd(this,VX).reset(),u5(this,D6,KHe).call(this))}while(te)}),Hv(this,WHe,d=>{xy(this,vj,void 0),!(d.name==="AbortError"||d.type==="aborted")&&u5(this,D6,KHe).call(this,qHe(d))}),Hv(this,GHe,d=>{typeof d.id=="string"&&xy(this,Nue,d.id);let h=new MessageEvent(d.event||"message",{data:d.data,origin:bd(this,JX)?bd(this,JX).origin:bd(this,jJ).origin,lastEventId:d.id||""});bd(this,WX)&&(!d.event||d.event==="message")&&bd(this,WX).call(this,h),this.dispatchEvent(h)}),Hv(this,HHe,d=>{xy(this,Pue,d)}),Hv(this,QHe,()=>{xy(this,GX,void 0),bd(this,uk)===this.CONNECTING&&u5(this,D6,JHe).call(this)});try{if(r instanceof URL)xy(this,jJ,r);else if(typeof r=="string")xy(this,jJ,new URL(r,wjr()));else throw new Error("Invalid URL")}catch{throw Ajr("An invalid or illegal string was specified")}xy(this,VX,Ske({onEvent:bd(this,GHe),onRetry:bd(this,HHe)})),xy(this,uk,this.CONNECTING),xy(this,Pue,3e3),xy(this,Tke,(s=i?.fetch)!=null?s:globalThis.fetch),xy(this,bke,(l=i?.withCredentials)!=null?l:!1),u5(this,D6,JHe).call(this)}get readyState(){return bd(this,uk)}get url(){return bd(this,jJ).href}get withCredentials(){return bd(this,bke)}get onerror(){return bd(this,HX)}set onerror(r){xy(this,HX,r)}get onmessage(){return bd(this,WX)}set onmessage(r){xy(this,WX,r)}get onopen(){return bd(this,wue)}set onopen(r){xy(this,wue,r)}addEventListener(r,i,s){let l=i;super.addEventListener(r,l,s)}removeEventListener(r,i,s){let l=i;super.removeEventListener(r,l,s)}close(){bd(this,GX)&&clearTimeout(bd(this,GX)),bd(this,uk)!==this.CLOSED&&(bd(this,vj)&&bd(this,vj).abort(),xy(this,uk,this.CLOSED),xy(this,vj,void 0))}};uk=new WeakMap,jJ=new WeakMap,JX=new WeakMap,bke=new WeakMap,Tke=new WeakMap,Pue=new WeakMap,GX=new WeakMap,Nue=new WeakMap,vj=new WeakMap,VX=new WeakMap,HX=new WeakMap,WX=new WeakMap,wue=new WeakMap,D6=new WeakSet,JHe=function(){xy(this,uk,this.CONNECTING),xy(this,vj,new AbortController),bd(this,Tke)(bd(this,jJ),u5(this,D6,X8t).call(this)).then(bd(this,VHe)).catch(bd(this,WHe))},VHe=new WeakMap,WHe=new WeakMap,X8t=function(){var e;let r={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...bd(this,Nue)?{"Last-Event-ID":bd(this,Nue)}:void 0},cache:"no-store",signal:(e=bd(this,vj))==null?void 0:e.signal};return"window"in globalThis&&(r.credentials=this.withCredentials?"include":"same-origin"),r},GHe=new WeakMap,HHe=new WeakMap,Iue=function(e,r){var i;bd(this,uk)!==this.CLOSED&&xy(this,uk,this.CLOSED);let s=new xke("error",{code:r,message:e});(i=bd(this,HX))==null||i.call(this,s),this.dispatchEvent(s)},KHe=function(e,r){var i;if(bd(this,uk)===this.CLOSED)return;xy(this,uk,this.CONNECTING);let s=new xke("error",{code:r,message:e});(i=bd(this,HX))==null||i.call(this,s),this.dispatchEvent(s),xy(this,GX,setTimeout(bd(this,QHe),bd(this,Pue)))},QHe=new WeakMap,BJ.CONNECTING=0,BJ.OPEN=1,BJ.CLOSED=2;function wjr(){let e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}function KX(e){return e?e instanceof Headers?Object.fromEntries(e.entries()):Array.isArray(e)?Object.fromEntries(e):{...e}:{}}function Eke(e=fetch,r){return r?async(i,s)=>{let l={...r,...s,headers:s?.headers?{...KX(r.headers),...KX(s.headers)}:r.headers};return e(i,l)}:e}var XHe;XHe=globalThis.crypto?.webcrypto??globalThis.crypto??import("node:crypto").then(e=>e.webcrypto);async function Ijr(e){return(await XHe).getRandomValues(new Uint8Array(e))}async function Pjr(e){let r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",i=Math.pow(2,8)-Math.pow(2,8)%r.length,s="";for(;s.length128)throw`Expected a length between 43 and 128. Received ${e}.`;let r=await Njr(e),i=await Ojr(r);return{code_verifier:r,code_challenge:i}}var tx=RGe().superRefine((e,r)=>{if(!URL.canParse(e))return r.addIssue({code:s8t.custom,message:"URL must be parseable",fatal:!0}),X2e}).refine(e=>{let r=new URL(e);return r.protocol!=="javascript:"&&r.protocol!=="data:"&&r.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),tOt=cv({resource:An().url(),authorization_servers:Ms(tx).optional(),jwks_uri:An().url().optional(),scopes_supported:Ms(An()).optional(),bearer_methods_supported:Ms(An()).optional(),resource_signing_alg_values_supported:Ms(An()).optional(),resource_name:An().optional(),resource_documentation:An().optional(),resource_policy_uri:An().url().optional(),resource_tos_uri:An().url().optional(),tls_client_certificate_bound_access_tokens:oh().optional(),authorization_details_types_supported:Ms(An()).optional(),dpop_signing_alg_values_supported:Ms(An()).optional(),dpop_bound_access_tokens_required:oh().optional()}),eKe=cv({issuer:An(),authorization_endpoint:tx,token_endpoint:tx,registration_endpoint:tx.optional(),scopes_supported:Ms(An()).optional(),response_types_supported:Ms(An()),response_modes_supported:Ms(An()).optional(),grant_types_supported:Ms(An()).optional(),token_endpoint_auth_methods_supported:Ms(An()).optional(),token_endpoint_auth_signing_alg_values_supported:Ms(An()).optional(),service_documentation:tx.optional(),revocation_endpoint:tx.optional(),revocation_endpoint_auth_methods_supported:Ms(An()).optional(),revocation_endpoint_auth_signing_alg_values_supported:Ms(An()).optional(),introspection_endpoint:An().optional(),introspection_endpoint_auth_methods_supported:Ms(An()).optional(),introspection_endpoint_auth_signing_alg_values_supported:Ms(An()).optional(),code_challenge_methods_supported:Ms(An()).optional(),client_id_metadata_document_supported:oh().optional()}),Fjr=cv({issuer:An(),authorization_endpoint:tx,token_endpoint:tx,userinfo_endpoint:tx.optional(),jwks_uri:tx,registration_endpoint:tx.optional(),scopes_supported:Ms(An()).optional(),response_types_supported:Ms(An()),response_modes_supported:Ms(An()).optional(),grant_types_supported:Ms(An()).optional(),acr_values_supported:Ms(An()).optional(),subject_types_supported:Ms(An()),id_token_signing_alg_values_supported:Ms(An()),id_token_encryption_alg_values_supported:Ms(An()).optional(),id_token_encryption_enc_values_supported:Ms(An()).optional(),userinfo_signing_alg_values_supported:Ms(An()).optional(),userinfo_encryption_alg_values_supported:Ms(An()).optional(),userinfo_encryption_enc_values_supported:Ms(An()).optional(),request_object_signing_alg_values_supported:Ms(An()).optional(),request_object_encryption_alg_values_supported:Ms(An()).optional(),request_object_encryption_enc_values_supported:Ms(An()).optional(),token_endpoint_auth_methods_supported:Ms(An()).optional(),token_endpoint_auth_signing_alg_values_supported:Ms(An()).optional(),display_values_supported:Ms(An()).optional(),claim_types_supported:Ms(An()).optional(),claims_supported:Ms(An()).optional(),service_documentation:An().optional(),claims_locales_supported:Ms(An()).optional(),ui_locales_supported:Ms(An()).optional(),claims_parameter_supported:oh().optional(),request_parameter_supported:oh().optional(),request_uri_parameter_supported:oh().optional(),require_request_uri_registration:oh().optional(),op_policy_uri:tx.optional(),op_tos_uri:tx.optional(),client_id_metadata_document_supported:oh().optional()}),rOt=rc({...Fjr.shape,...eKe.pick({code_challenge_methods_supported:!0}).shape}),nOt=rc({access_token:An(),id_token:An().optional(),token_type:An(),expires_in:YEe.number().optional(),scope:An().optional(),refresh_token:An().optional()}).strip(),iOt=rc({error:An(),error_description:An().optional(),error_uri:An().optional()}),eOt=tx.optional().or(Dl("").transform(()=>{})),Rjr=rc({redirect_uris:Ms(tx),token_endpoint_auth_method:An().optional(),grant_types:Ms(An()).optional(),response_types:Ms(An()).optional(),client_name:An().optional(),client_uri:tx.optional(),logo_uri:eOt,scope:An().optional(),contacts:Ms(An()).optional(),tos_uri:eOt,policy_uri:An().optional(),jwks_uri:tx.optional(),jwks:XGe().optional(),software_id:An().optional(),software_version:An().optional(),software_statement:An().optional()}).strip(),Ljr=rc({client_id:An(),client_secret:An().optional(),client_id_issued_at:yf().optional(),client_secret_expires_at:yf().optional()}).strip(),oOt=Rjr.merge(Ljr),KMn=rc({error:An(),error_description:An().optional()}).strip(),QMn=rc({token:An(),token_type_hint:An().optional()}).strip();function aOt(e){let r=typeof e=="string"?new URL(e):new URL(e.href);return r.hash="",r}function sOt({requestedResource:e,configuredResource:r}){let i=typeof e=="string"?new URL(e):new URL(e.href),s=typeof r=="string"?new URL(r):new URL(r.href);if(i.origin!==s.origin||i.pathname.length=400&&e.status<500&&r!=="/"}async function Gjr(e,r,i,s){let l=new URL(e),d=s?.protocolVersion??MX,h;if(s?.metadataUrl)h=new URL(s.metadataUrl);else{let b=Vjr(r,l.pathname);h=new URL(b,s?.metadataServerUrl??l),h.search=l.search}let S=await lOt(h,d,i);if(!s?.metadataUrl&&Wjr(S,l.pathname)){let b=new URL(`/.well-known/${r}`,l);S=await lOt(b,d,i)}return S}function Hjr(e){let r=typeof e=="string"?new URL(e):e,i=r.pathname!=="/",s=[];if(!i)return s.push({url:new URL("/.well-known/oauth-authorization-server",r.origin),type:"oauth"}),s.push({url:new URL("/.well-known/openid-configuration",r.origin),type:"oidc"}),s;let l=r.pathname;return l.endsWith("/")&&(l=l.slice(0,-1)),s.push({url:new URL(`/.well-known/oauth-authorization-server${l}`,r.origin),type:"oauth"}),s.push({url:new URL(`/.well-known/openid-configuration${l}`,r.origin),type:"oidc"}),s.push({url:new URL(`${l}/.well-known/openid-configuration`,r.origin),type:"oidc"}),s}async function _Ot(e,{fetchFn:r=fetch,protocolVersion:i=MX}={}){let s={"MCP-Protocol-Version":i,Accept:"application/json"},l=Hjr(e);for(let{url:d,type:h}of l){let S=await oKe(d,s,r);if(S){if(!S.ok){if(await S.body?.cancel(),S.status>=400&&S.status<500)continue;throw new Error(`HTTP ${S.status} trying to load ${h==="oauth"?"OAuth":"OpenID provider"} metadata from ${d}`)}return h==="oauth"?eKe.parse(await S.json()):rOt.parse(await S.json())}}}async function Kjr(e,r){let i,s;try{i=await pOt(e,{resourceMetadataUrl:r?.resourceMetadataUrl},r?.fetchFn),i.authorization_servers&&i.authorization_servers.length>0&&(s=i.authorization_servers[0])}catch{}s||(s=String(new URL("/",e)));let l=await _Ot(s,{fetchFn:r?.fetchFn});return{authorizationServerUrl:s,authorizationServerMetadata:l,resourceMetadata:i}}async function Qjr(e,{metadata:r,clientInformation:i,redirectUrl:s,scope:l,state:d,resource:h}){let S;if(r){if(S=new URL(r.authorization_endpoint),!r.response_types_supported.includes(tKe))throw new Error(`Incompatible auth server: does not support response type ${tKe}`);if(r.code_challenge_methods_supported&&!r.code_challenge_methods_supported.includes(rKe))throw new Error(`Incompatible auth server: does not support code challenge method ${rKe}`)}else S=new URL("/authorize",e);let b=await YHe(),A=b.code_verifier,L=b.code_challenge;return S.searchParams.set("response_type",tKe),S.searchParams.set("client_id",i.client_id),S.searchParams.set("code_challenge",L),S.searchParams.set("code_challenge_method",rKe),S.searchParams.set("redirect_uri",String(s)),d&&S.searchParams.set("state",d),l&&S.searchParams.set("scope",l),l?.includes("offline_access")&&S.searchParams.append("prompt","consent"),h&&S.searchParams.set("resource",h.href),{authorizationUrl:S,codeVerifier:A}}function Zjr(e,r,i){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:r,redirect_uri:String(i)})}async function dOt(e,{metadata:r,tokenRequestParams:i,clientInformation:s,addClientAuthentication:l,resource:d,fetchFn:h}){let S=r?.token_endpoint?new URL(r.token_endpoint):new URL("/token",e),b=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(d&&i.set("resource",d.href),l)await l(b,i,S,r);else if(s){let L=r?.token_endpoint_auth_methods_supported??[],V=jjr(s,L);Bjr(V,s,b,i)}let A=await(h??fetch)(S,{method:"POST",headers:b,body:i});if(!A.ok)throw await uOt(A);return nOt.parse(await A.json())}async function Xjr(e,{metadata:r,clientInformation:i,refreshToken:s,resource:l,addClientAuthentication:d,fetchFn:h}){let S=new URLSearchParams({grant_type:"refresh_token",refresh_token:s}),b=await dOt(e,{metadata:r,tokenRequestParams:S,clientInformation:i,addClientAuthentication:d,resource:l,fetchFn:h});return{refresh_token:s,...b}}async function Yjr(e,r,{metadata:i,resource:s,authorizationCode:l,fetchFn:d}={}){let h=e.clientMetadata.scope,S;if(e.prepareTokenRequest&&(S=await e.prepareTokenRequest(h)),!S){if(!l)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");let A=await e.codeVerifier();S=Zjr(l,A,e.redirectUrl)}let b=await e.clientInformation();return dOt(r,{metadata:i,tokenRequestParams:S,clientInformation:b??void 0,addClientAuthentication:e.addClientAuthentication,resource:s,fetchFn:d})}async function eBr(e,{metadata:r,clientMetadata:i,fetchFn:s}){let l;if(r){if(!r.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");l=new URL(r.registration_endpoint)}else l=new URL("/register",e);let d=await(s??fetch)(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!d.ok)throw await uOt(d);return oOt.parse(await d.json())}var aKe=class extends Error{constructor(r,i,s){super(`SSE error: ${i}`),this.code=r,this.event=s}},kke=class{constructor(r,i){this._url=r,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=i?.eventSourceInit,this._requestInit=i?.requestInit,this._authProvider=i?.authProvider,this._fetch=i?.fetch,this._fetchWithInit=Eke(i?.fetch,i?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new F2("No auth provider");let r;try{r=await Vw(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(i){throw this.onerror?.(i),i}if(r!=="AUTHORIZED")throw new F2;return await this._startOrAuth()}async _commonHeaders(){let r={};if(this._authProvider){let s=await this._authProvider.tokens();s&&(r.Authorization=`Bearer ${s.access_token}`)}this._protocolVersion&&(r["mcp-protocol-version"]=this._protocolVersion);let i=KX(this._requestInit?.headers);return new Headers({...r,...i})}_startOrAuth(){let r=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((i,s)=>{this._eventSource=new BJ(this._url.href,{...this._eventSourceInit,fetch:async(l,d)=>{let h=await this._commonHeaders();h.set("Accept","text/event-stream");let S=await r(l,{...d,headers:h});if(S.status===401&&S.headers.has("www-authenticate")){let{resourceMetadataUrl:b,scope:A}=QX(S);this._resourceMetadataUrl=b,this._scope=A}return S}}),this._abortController=new AbortController,this._eventSource.onerror=l=>{if(l.code===401&&this._authProvider){this._authThenStart().then(i,s);return}let d=new aKe(l.code,l.message,l);s(d),this.onerror?.(d)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",l=>{let d=l;try{if(this._endpoint=new URL(d.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(h){s(h),this.onerror?.(h),this.close();return}i()}),this._eventSource.onmessage=l=>{let d=l,h;try{h=hj.parse(JSON.parse(d.data))}catch(S){this.onerror?.(S);return}this.onmessage?.(h)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(r){if(!this._authProvider)throw new F2("No auth provider");if(await Vw(this._authProvider,{serverUrl:this._url,authorizationCode:r,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new F2("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(r){if(!this._endpoint)throw new Error("Not connected");try{let i=await this._commonHeaders();i.set("content-type","application/json");let s={...this._requestInit,method:"POST",headers:i,body:JSON.stringify(r),signal:this._abortController?.signal},l=await(this._fetch??fetch)(this._endpoint,s);if(!l.ok){let d=await l.text().catch(()=>null);if(l.status===401&&this._authProvider){let{resourceMetadataUrl:h,scope:S}=QX(l);if(this._resourceMetadataUrl=h,this._scope=S,await Vw(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new F2;return this.send(r)}throw new Error(`Error POSTing to endpoint (HTTP ${l.status}): ${d}`)}await l.body?.cancel()}catch(i){throw this.onerror?.(i),i}}setProtocolVersion(r){this._protocolVersion=r}};var nFt=fJ(tFt(),1);import wke from"node:process";import{PassThrough as ABr}from"node:stream";var Dke=class{append(r){this._buffer=this._buffer?Buffer.concat([this._buffer,r]):r}readMessage(){if(!this._buffer)return null;let r=this._buffer.indexOf(` +`);if(r===-1)return null;let i=this._buffer.toString("utf8",0,r).replace(/\r$/,"");return this._buffer=this._buffer.subarray(r+1),DBr(i)}clear(){this._buffer=void 0}};function DBr(e){return hj.parse(JSON.parse(e))}function rFt(e){return JSON.stringify(e)+` +`}var wBr=wke.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"];function IBr(){let e={};for(let r of wBr){let i=wke.env[r];i!==void 0&&(i.startsWith("()")||(e[r]=i))}return e}var Ake=class{constructor(r){this._readBuffer=new Dke,this._stderrStream=null,this._serverParams=r,(r.stderr==="pipe"||r.stderr==="overlapped")&&(this._stderrStream=new ABr)}async start(){if(this._process)throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((r,i)=>{this._process=(0,nFt.default)(this._serverParams.command,this._serverParams.args??[],{env:{...IBr(),...this._serverParams.env},stdio:["pipe","pipe",this._serverParams.stderr??"inherit"],shell:!1,windowsHide:wke.platform==="win32"&&PBr(),cwd:this._serverParams.cwd}),this._process.on("error",s=>{i(s),this.onerror?.(s)}),this._process.on("spawn",()=>{r()}),this._process.on("close",s=>{this._process=void 0,this.onclose?.()}),this._process.stdin?.on("error",s=>{this.onerror?.(s)}),this._process.stdout?.on("data",s=>{this._readBuffer.append(s),this.processReadBuffer()}),this._process.stdout?.on("error",s=>{this.onerror?.(s)}),this._stderrStream&&this._process.stderr&&this._process.stderr.pipe(this._stderrStream)})}get stderr(){return this._stderrStream?this._stderrStream:this._process?.stderr??null}get pid(){return this._process?.pid??null}processReadBuffer(){for(;;)try{let r=this._readBuffer.readMessage();if(r===null)break;this.onmessage?.(r)}catch(r){this.onerror?.(r)}}async close(){if(this._process){let r=this._process;this._process=void 0;let i=new Promise(s=>{r.once("close",()=>{s()})});try{r.stdin?.end()}catch{}if(await Promise.race([i,new Promise(s=>setTimeout(s,2e3).unref())]),r.exitCode===null){try{r.kill("SIGTERM")}catch{}await Promise.race([i,new Promise(s=>setTimeout(s,2e3).unref())])}if(r.exitCode===null)try{r.kill("SIGKILL")}catch{}}this._readBuffer.clear()}send(r){return new Promise(i=>{if(!this._process?.stdin)throw new Error("Not connected");let s=rFt(r);this._process.stdin.write(s)?i():this._process.stdin.once("drain",i)})}};function PBr(){return"type"in wke}var Ike=class extends TransformStream{constructor({onError:r,onRetry:i,onComment:s}={}){let l;super({start(d){l=Ske({onEvent:h=>{d.enqueue(h)},onError(h){r==="terminate"?d.error(h):typeof r=="function"&&r(h)},onRetry:i,onComment:s})},transform(d){l.feed(d)}})}};var NBr={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2},Sj=class extends Error{constructor(r,i){super(`Streamable HTTP error: ${i}`),this.code=r}},Pke=class{constructor(r,i){this._hasCompletedAuthFlow=!1,this._url=r,this._resourceMetadataUrl=void 0,this._scope=void 0,this._requestInit=i?.requestInit,this._authProvider=i?.authProvider,this._fetch=i?.fetch,this._fetchWithInit=Eke(i?.fetch,i?.requestInit),this._sessionId=i?.sessionId,this._reconnectionOptions=i?.reconnectionOptions??NBr}async _authThenStart(){if(!this._authProvider)throw new F2("No auth provider");let r;try{r=await Vw(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(i){throw this.onerror?.(i),i}if(r!=="AUTHORIZED")throw new F2;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){let r={};if(this._authProvider){let s=await this._authProvider.tokens();s&&(r.Authorization=`Bearer ${s.access_token}`)}this._sessionId&&(r["mcp-session-id"]=this._sessionId),this._protocolVersion&&(r["mcp-protocol-version"]=this._protocolVersion);let i=KX(this._requestInit?.headers);return new Headers({...r,...i})}async _startOrAuthSse(r){let{resumptionToken:i}=r;try{let s=await this._commonHeaders();s.set("Accept","text/event-stream"),i&&s.set("last-event-id",i);let l=await(this._fetch??fetch)(this._url,{method:"GET",headers:s,signal:this._abortController?.signal});if(!l.ok){if(await l.body?.cancel(),l.status===401&&this._authProvider)return await this._authThenStart();if(l.status===405)return;throw new Sj(l.status,`Failed to open SSE stream: ${l.statusText}`)}this._handleSseStream(l.body,r,!0)}catch(s){throw this.onerror?.(s),s}}_getNextReconnectionDelay(r){if(this._serverRetryMs!==void 0)return this._serverRetryMs;let i=this._reconnectionOptions.initialReconnectionDelay,s=this._reconnectionOptions.reconnectionDelayGrowFactor,l=this._reconnectionOptions.maxReconnectionDelay;return Math.min(i*Math.pow(s,r),l)}_scheduleReconnection(r,i=0){let s=this._reconnectionOptions.maxRetries;if(i>=s){this.onerror?.(new Error(`Maximum reconnection attempts (${s}) exceeded.`));return}let l=this._getNextReconnectionDelay(i);this._reconnectionTimeout=setTimeout(()=>{this._startOrAuthSse(r).catch(d=>{this.onerror?.(new Error(`Failed to reconnect SSE stream: ${d instanceof Error?d.message:String(d)}`)),this._scheduleReconnection(r,i+1)})},l)}_handleSseStream(r,i,s){if(!r)return;let{onresumptiontoken:l,replayMessageId:d}=i,h,S=!1,b=!1;(async()=>{try{let L=r.pipeThrough(new TextDecoderStream).pipeThrough(new Ike({onRetry:ie=>{this._serverRetryMs=ie}})).getReader();for(;;){let{value:ie,done:te}=await L.read();if(te)break;if(ie.id&&(h=ie.id,S=!0,l?.(ie.id)),!!ie.data&&(!ie.event||ie.event==="message"))try{let X=hj.parse(JSON.parse(ie.data));RJ(X)&&(b=!0,d!==void 0&&(X.id=d)),this.onmessage?.(X)}catch(X){this.onerror?.(X)}}(s||S)&&!b&&this._abortController&&!this._abortController.signal.aborted&&this._scheduleReconnection({resumptionToken:h,onresumptiontoken:l,replayMessageId:d},0)}catch(L){if(this.onerror?.(new Error(`SSE stream disconnected: ${L}`)),(s||S)&&!b&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:h,onresumptiontoken:l,replayMessageId:d},0)}catch(ie){this.onerror?.(new Error(`Failed to reconnect: ${ie instanceof Error?ie.message:String(ie)}`))}}})()}async start(){if(this._abortController)throw new Error("StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.");this._abortController=new AbortController}async finishAuth(r){if(!this._authProvider)throw new F2("No auth provider");if(await Vw(this._authProvider,{serverUrl:this._url,authorizationCode:r,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new F2("Failed to authorize")}async close(){this._reconnectionTimeout&&(clearTimeout(this._reconnectionTimeout),this._reconnectionTimeout=void 0),this._abortController?.abort(),this.onclose?.()}async send(r,i){try{let{resumptionToken:s,onresumptiontoken:l}=i||{};if(s){this._startOrAuthSse({resumptionToken:s,replayMessageId:vue(r)?r.id:void 0}).catch(j=>this.onerror?.(j));return}let d=await this._commonHeaders();d.set("content-type","application/json"),d.set("accept","application/json, text/event-stream");let h={...this._requestInit,method:"POST",headers:d,body:JSON.stringify(r),signal:this._abortController?.signal},S=await(this._fetch??fetch)(this._url,h),b=S.headers.get("mcp-session-id");if(b&&(this._sessionId=b),!S.ok){let j=await S.text().catch(()=>null);if(S.status===401&&this._authProvider){if(this._hasCompletedAuthFlow)throw new Sj(401,"Server returned 401 after successful authentication");let{resourceMetadataUrl:ie,scope:te}=QX(S);if(this._resourceMetadataUrl=ie,this._scope=te,await Vw(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new F2;return this._hasCompletedAuthFlow=!0,this.send(r)}if(S.status===403&&this._authProvider){let{resourceMetadataUrl:ie,scope:te,error:X}=QX(S);if(X==="insufficient_scope"){let Re=S.headers.get("WWW-Authenticate");if(this._lastUpscopingHeader===Re)throw new Sj(403,"Server returned 403 after trying upscoping");if(te&&(this._scope=te),ie&&(this._resourceMetadataUrl=ie),this._lastUpscopingHeader=Re??void 0,await Vw(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetch})!=="AUTHORIZED")throw new F2;return this.send(r)}}throw new Sj(S.status,`Error POSTing to endpoint: ${j}`)}if(this._hasCompletedAuthFlow=!1,this._lastUpscopingHeader=void 0,S.status===202){await S.body?.cancel(),v8t(r)&&this._startOrAuthSse({resumptionToken:void 0}).catch(j=>this.onerror?.(j));return}let L=(Array.isArray(r)?r:[r]).filter(j=>"method"in j&&"id"in j&&j.id!==void 0).length>0,V=S.headers.get("content-type");if(L)if(V?.includes("text/event-stream"))this._handleSseStream(S.body,{onresumptiontoken:l},!1);else if(V?.includes("application/json")){let j=await S.json(),ie=Array.isArray(j)?j.map(te=>hj.parse(te)):[hj.parse(j)];for(let te of ie)this.onmessage?.(te)}else throw await S.body?.cancel(),new Sj(-1,`Unexpected content type: ${V}`);else await S.body?.cancel()}catch(s){throw this.onerror?.(s),s}}get sessionId(){return this._sessionId}async terminateSession(){if(this._sessionId)try{let r=await this._commonHeaders(),i={...this._requestInit,method:"DELETE",headers:r,signal:this._abortController?.signal},s=await(this._fetch??fetch)(this._url,i);if(await s.body?.cancel(),!s.ok&&s.status!==405)throw new Sj(s.status,`Failed to terminate session: ${s.statusText}`);this._sessionId=void 0}catch(r){throw this.onerror?.(r),r}}setProtocolVersion(r){this._protocolVersion=r}get protocolVersion(){return this._protocolVersion}async resumeStream(r,i){await this._startOrAuthSse({resumptionToken:r,onresumptiontoken:i?.onresumptiontoken})}};import*as iFt from"effect/Data";import*as yT from"effect/Effect";var Nke=class extends iFt.TaggedError("McpConnectionError"){},JJ=e=>e.transport==="stdio"||typeof e.command=="string"&&e.command.trim().length>0,Oke=e=>new Nke(e),OBr=e=>yT.try({try:()=>{if(!e.endpoint)throw new Error("MCP endpoint is required for HTTP/SSE transports");let r=new URL(e.endpoint);for(let[i,s]of Object.entries(e.queryParams))r.searchParams.set(i,s);return r},catch:r=>Oke({transport:e.transport,message:"Failed building MCP endpoint URL",cause:r})}),FBr=(e,r,i)=>{let s=new Headers(r?.headers??{});for(let[l,d]of Object.entries(i))s.set(l,d);return fetch(e,{...r,headers:s})},RBr=e=>({client:e,close:()=>e.close()}),LBr=e=>yT.tryPromise({try:()=>e.close(),catch:r=>Oke({transport:"auto",message:"Failed closing MCP client",cause:r})}).pipe(yT.ignore),hKe=e=>yT.gen(function*(){let r=e.createClient(),i=e.createTransport();return yield*yT.tryPromise({try:()=>r.connect(i),catch:s=>Oke({transport:e.transport,message:`Failed connecting to MCP server via ${e.transport}: ${s instanceof Error?s.message:String(s)}`,cause:s})}).pipe(yT.as(RBr(r)),yT.onError(()=>LBr(r)))}),bj=e=>{let r=e.headers??{},i=JJ(e)?"stdio":e.transport??"auto",s=Object.keys(r).length>0?{headers:r}:void 0,l=()=>new yke({name:e.clientName??"executor-codemode-mcp",version:e.clientVersion??"0.1.0"},{capabilities:{elicitation:{form:{},url:{}}}});return yT.gen(function*(){if(i==="stdio"){let b=e.command?.trim();return b?yield*hKe({createClient:l,transport:"stdio",createTransport:()=>new Ake({command:b,args:e.args?[...e.args]:void 0,env:e.env,cwd:e.cwd?.trim().length?e.cwd.trim():void 0})}):yield*Oke({transport:"stdio",message:"MCP stdio transport requires a command",cause:new Error("Missing MCP stdio command")})}let d=yield*OBr({endpoint:e.endpoint,queryParams:e.queryParams??{},transport:i}),h=hKe({createClient:l,transport:"streamable-http",createTransport:()=>new Pke(d,{requestInit:s,authProvider:e.authProvider})});if(i==="streamable-http")return yield*h;let S=hKe({createClient:l,transport:"sse",createTransport:()=>new kke(d,{authProvider:e.authProvider,requestInit:s,eventSourceInit:s?{fetch:(b,A)=>FBr(b,A,r)}:void 0})});return i==="sse"?yield*S:yield*h.pipe(yT.catchAll(()=>S))})};var rx=1;import{Schema as ah}from"effect";var LN=ah.String.pipe(ah.brand("DocumentId")),MN=ah.String.pipe(ah.brand("ResourceId")),A6=ah.String.pipe(ah.brand("ScopeId")),vD=ah.String.pipe(ah.brand("CapabilityId")),pk=ah.String.pipe(ah.brand("ExecutableId")),xj=ah.String.pipe(ah.brand("ResponseSetId")),_5=ah.String.pipe(ah.brand("DiagnosticId")),xd=ah.String.pipe(ah.brand("ShapeSymbolId")),Tj=ah.String.pipe(ah.brand("ParameterSymbolId")),VJ=ah.String.pipe(ah.brand("RequestBodySymbolId")),SD=ah.String.pipe(ah.brand("ResponseSymbolId")),Ej=ah.String.pipe(ah.brand("HeaderSymbolId")),jN=ah.String.pipe(ah.brand("ExampleSymbolId")),kj=ah.String.pipe(ah.brand("SecuritySchemeSymbolId")),oFt=ah.Union(xd,Tj,VJ,SD,Ej,jN,kj);import*as sFt from"effect/Effect";var aFt=5e3,E1=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),w6=e=>typeof e=="string"&&e.length>0?e:null,BN=e=>{if(e==null)return null;let r=e.trim();return r.length>0?r:null},$N=e=>new URL(e).hostname,vT=e=>{let r=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"");return r.length>0?r:"source"},cFt=e=>{let r=e.trim();if(r.length===0)throw new Error("Source URL is required");let i=new URL(r);if(i.protocol!=="http:"&&i.protocol!=="https:")throw new Error("Source URL must use http or https");return i.toString()},YX=(e,r)=>({...r,suggestedKind:e,supported:!1}),I6=(e,r)=>({...r,suggestedKind:e,supported:!0}),WJ=e=>({suggestedKind:"unknown",confidence:"low",supported:!1,reason:e,headerName:null,prefix:null,parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}),UN=(e,r="high")=>I6("none",{confidence:r,reason:e,headerName:null,prefix:null,parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}),lFt=(e,r)=>{let i=e["www-authenticate"]??e["WWW-Authenticate"];if(!i)return WJ(r);let s=i.toLowerCase();return s.includes("bearer")?I6("bearer",{confidence:s.includes("realm=")?"medium":"low",reason:`Derived from HTTP challenge: ${i}`,headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}):s.includes("basic")?YX("basic",{confidence:"medium",reason:`Derived from HTTP challenge: ${i}`,headerName:"Authorization",prefix:"Basic ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}):WJ(r)},uFt=e=>e==null||e.kind==="none"?{}:e.kind==="headers"?{...e.headers}:e.kind==="basic"?{Authorization:`Basic ${Buffer.from(`${e.username}:${e.password}`).toString("base64")}`}:{[BN(e.headerName)??"Authorization"]:`${e.prefix??"Bearer "}${e.token}`},MBr=e=>{let r={};return e.headers.forEach((i,s)=>{r[s]=i}),r},eY=e=>sFt.tryPromise({try:async()=>{let r;try{r=await fetch(e.url,{method:e.method,headers:e.headers,body:e.body,signal:AbortSignal.timeout(aFt)})}catch(i){throw i instanceof Error&&(i.name==="AbortError"||i.name==="TimeoutError")?new Error(`Source discovery timed out after ${aFt}ms`):i}return{status:r.status,headers:MBr(r),text:await r.text()}},catch:r=>r instanceof Error?r:new Error(String(r))}),Cj=e=>/graphql/i.test(new URL(e).pathname),pFt=e=>{try{return JSON.parse(e)}catch{return null}},_Ft=e=>{let r=e,i=$N(r);return{detectedKind:"unknown",confidence:"low",endpoint:r,specUrl:null,name:i,namespace:vT(i),transport:null,authInference:WJ("Could not infer source kind or auth requirements from the provided URL"),toolCount:null,warnings:["Could not confirm whether the URL is Google Discovery, OpenAPI, GraphQL, or MCP."]}};var Wue=e=>e===null||typeof e!="object"?JSON.stringify(e):Array.isArray(e)?`[${e.map(i=>Wue(i)).join(",")}]`:`{${Object.entries(e).sort(([i],[s])=>i.localeCompare(s)).map(([i,s])=>`${JSON.stringify(i)}:${Wue(s)}`).join(",")}}`,Td=e=>_D(Wue(e)).slice(0,16),x_=e=>e,_k=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},jBr=(...e)=>{let r={};for(let i of e){let s=_k(_k(i).$defs);for(let[l,d]of Object.entries(s))r[l]=d}return Object.keys(r).length>0?r:void 0},tY=(e,...r)=>{let i=jBr(e,...r);return i?{...e,$defs:i}:e},gKe=e=>{let r=_k(e);return r.type==="object"||r.properties!==void 0},rY=e=>{switch(e.kind){case"openapi":return"openapi";case"graphql":return"graphql-schema";case"google_discovery":return"google-discovery";case"mcp":return"mcp";default:return"custom"}},d5=(e,r)=>{let i=e.namespace??vT(e.name);return(i?`${i}.${r}`:r).split(".").filter(l=>l.length>0)},ld=(e,r)=>[{relation:"declared",documentId:e,pointer:r}],f5=e=>({approval:{mayRequire:e!=="read",reasons:e==="delete"?["delete"]:e==="write"||e==="action"?["write"]:[]},elicitation:{mayRequest:!1},resume:{supported:!1}}),R2=e=>({sourceKind:rY(e.source),adapterKey:e.adapterKey,importerVersion:"ir.v1.snapshot_builder",importedAt:new Date().toISOString(),sourceConfigHash:e.source.sourceHash??Td({endpoint:e.source.endpoint,binding:e.source.binding,auth:e.source.auth?.kind??null})}),Gd=e=>{let r=e.summary??void 0,i=e.description??void 0,s=e.externalDocsUrl??void 0;if(!(!r&&!i&&!s))return{...r?{summary:r}:{},...i?{description:i}:{},...s?{externalDocsUrl:s}:{}}},Dj=e=>{let r=jN.make(`example_${Td({pointer:e.pointer,value:e.value})}`);return x_(e.catalog.symbols)[r]={id:r,kind:"example",exampleKind:"value",...e.name?{name:e.name}:{},...Gd({summary:e.summary??null,description:e.description??null})?{docs:Gd({summary:e.summary??null,description:e.description??null})}:{},value:e.value,synthetic:!1,provenance:ld(e.documentId,e.pointer)},r},Vue=(e,r)=>{let i=_k(e),s=_k(i.properties);if(s[r]!==void 0)return s[r]},Gue=(e,r,i)=>{let s=Vue(e,i);if(s!==void 0)return s;let d=Vue(e,r==="header"?"headers":r==="cookie"?"cookies":r);return d===void 0?void 0:Vue(d,i)},nY=e=>Vue(e,"body")??Vue(e,"input"),Hue=e=>{let r=e&&e.length>0?[...e]:["application/json"],i=[...r.filter(s=>s==="application/json"),...r.filter(s=>s!=="application/json"&&s.toLowerCase().includes("+json")),...r.filter(s=>s!=="application/json"&&!s.toLowerCase().includes("+json")&&s.toLowerCase().includes("json")),...r];return[...new Set(i)]},m5=e=>{let r=xj.make(`response_set_${Td({responseId:e.responseId,traits:e.traits})}`);return x_(e.catalog.responseSets)[r]={id:r,variants:[{match:{kind:"range",value:"2XX"},responseId:e.responseId,...e.traits&&e.traits.length>0?{traits:e.traits}:{}}],synthetic:!1,provenance:e.provenance},r},yKe=e=>{let r=xj.make(`response_set_${Td({variants:e.variants.map(i=>({match:i.match,responseId:i.responseId,traits:i.traits}))})}`);return x_(e.catalog.responseSets)[r]={id:r,variants:e.variants,synthetic:!1,provenance:e.provenance},r},vKe=e=>{let r=e.trim().toUpperCase();return/^\d{3}$/.test(r)?{kind:"exact",status:Number(r)}:/^[1-5]XX$/.test(r)?{kind:"range",value:r}:{kind:"default"}};var iY=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{},P6=e=>typeof e=="string"&&e.trim().length>0?e:null,dFt=e=>typeof e=="boolean"?e:null,Fke=e=>typeof e=="number"&&Number.isFinite(e)?e:null,Kue=e=>Array.isArray(e)?e:[],fFt=e=>Kue(e).flatMap(r=>{let i=P6(r);return i===null?[]:[i]}),BBr=e=>e.replace(/~1/g,"/").replace(/~0/g,"~"),$Br=e=>{if(!e.startsWith("#/"))return!1;let r=e.slice(2).split("/").map(BBr);for(let i=0;i{let i=_5.make(`diag_${Td(r)}`);return x_(e.diagnostics)[i]={id:i,...r},i},zBr=e=>({sourceKind:rY(e.source),kind:e.kind,pointer:e.pointer,encoding:"json",...e.summary?{summary:e.summary}:{},value:e.value}),mFt=e=>{let r=new Map,i=new Map,s=new Map,l=[],d=new Set,h=(b,A)=>{if(A==="#"||A.length===0)return b;let L=A.replace(/^#\//,"").split("/").map(j=>j.replace(/~1/g,"/").replace(/~0/g,"~")),V=b;for(let j of L){if(Array.isArray(V)){let ie=Number(j);V=Number.isInteger(ie)?V[ie]:void 0;continue}V=iY(V)[j]}return V},S=(b,A,L)=>{let V=`${e.resourceId}:${A}`,j=r.get(V);if(j){let te=l.indexOf(j);if(te!==-1)for(let X of l.slice(te))d.add(X);return j}let ie=xd.make(`shape_${Td({resourceId:e.resourceId,key:A})}`);r.set(V,ie),l.push(ie);try{let te=iY(b),X=P6(te.title)??void 0,Re=Gd({description:P6(te.description)}),Je=dFt(te.deprecated)??void 0,pt=X!==void 0||$Br(A),$e=(co,Cs={})=>{let Cr=Wue(co),ol=d.has(ie),Zo=ol||pt?void 0:i.get(Cr);if(Zo){let Rc=e.catalog.symbols[Zo];return Rc?.kind==="shape"&&(Rc.title===void 0&&X&&(x_(e.catalog.symbols)[Zo]={...Rc,title:X}),Rc.docs===void 0&&Re&&(x_(e.catalog.symbols)[Zo]={...x_(e.catalog.symbols)[Zo],docs:Re}),Rc.deprecated===void 0&&Je!==void 0&&(x_(e.catalog.symbols)[Zo]={...x_(e.catalog.symbols)[Zo],deprecated:Je})),s.set(ie,Zo),r.set(V,Zo),Zo}return x_(e.catalog.symbols)[ie]={id:ie,kind:"shape",resourceId:e.resourceId,...X?{title:X}:{},...Re?{docs:Re}:{},...Je!==void 0?{deprecated:Je}:{},node:co,synthetic:!1,provenance:ld(e.documentId,A),...Cs.diagnosticIds&&Cs.diagnosticIds.length>0?{diagnosticIds:Cs.diagnosticIds}:{},...Cs.native&&Cs.native.length>0?{native:Cs.native}:{}},!ol&&!pt&&i.set(Cr,ie),ie};if(typeof b=="boolean")return $e({type:"unknown",reason:b?"schema_true":"schema_false"});let xt=P6(te.$ref);if(xt!==null){let co=xt.startsWith("#")?h(L??b,xt):void 0;if(co===void 0){let Cr=UBr(e.catalog,{level:"warning",code:"unresolved_ref",message:`Unresolved JSON schema ref ${xt}`,provenance:ld(e.documentId,A),relatedSymbolIds:[ie]});return $e({type:"unknown",reason:`unresolved_ref:${xt}`},{diagnosticIds:[Cr]}),r.get(V)}let Cs=S(co,xt,L??b);return $e({type:"ref",target:Cs})}let tr=Kue(te.enum);if(tr.length===1)return $e({type:"const",value:tr[0]});if(tr.length>1)return $e({type:"enum",values:tr});if("const"in te)return $e({type:"const",value:te.const});let ht=Kue(te.anyOf);if(ht.length>0)return $e({type:"anyOf",items:ht.map((co,Cs)=>S(co,`${A}/anyOf/${Cs}`,L??b))});let wt=Kue(te.allOf);if(wt.length>0)return $e({type:"allOf",items:wt.map((co,Cs)=>S(co,`${A}/allOf/${Cs}`,L??b))});let Ut=Kue(te.oneOf);if(Ut.length>0)return $e({type:"oneOf",items:Ut.map((co,Cs)=>S(co,`${A}/oneOf/${Cs}`,L??b))});if("if"in te||"then"in te||"else"in te)return $e({type:"conditional",ifShapeId:S(te.if??{},`${A}/if`,L??b),thenShapeId:S(te.then??{},`${A}/then`,L??b),...te.else!==void 0?{elseShapeId:S(te.else,`${A}/else`,L??b)}:{}});if("not"in te)return $e({type:"not",itemShapeId:S(te.not,`${A}/not`,L??b)});let hr=te.type,Hi=Array.isArray(hr)?hr.flatMap(co=>{let Cs=P6(co);return Cs===null?[]:[Cs]}):[],un=dFt(te.nullable)===!0||Hi.includes("null"),xo=Array.isArray(hr)?Hi.find(co=>co!=="null")??null:P6(hr),Lo=co=>($e({type:"nullable",itemShapeId:co}),ie),yr={};for(let co of["format","minLength","maxLength","pattern","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","default","examples"])te[co]!==void 0&&(yr[co]=te[co]);if(xo==="object"||"properties"in te||"additionalProperties"in te||"patternProperties"in te){let co=Object.fromEntries(Object.entries(iY(te.properties)).map(([Rc,an])=>[Rc,{shapeId:S(an,`${A}/properties/${Rc}`,L??b),...Gd({description:P6(iY(an).description)})?{docs:Gd({description:P6(iY(an).description)})}:{}}])),Cs=Object.fromEntries(Object.entries(iY(te.patternProperties)).map(([Rc,an])=>[Rc,S(an,`${A}/patternProperties/${Rc}`,L??b)])),Cr=te.additionalProperties,ol=typeof Cr=="boolean"?Cr:Cr!==void 0?S(Cr,`${A}/additionalProperties`,L??b):void 0,Zo={type:"object",fields:co,...fFt(te.required).length>0?{required:fFt(te.required)}:{},...ol!==void 0?{additionalProperties:ol}:{},...Object.keys(Cs).length>0?{patternProperties:Cs}:{}};if(un){let Rc=S({...te,nullable:!1,type:"object"},`${A}:nonnull`,L??b);return Lo(Rc)}return $e(Zo)}if(xo==="array"||"items"in te||"prefixItems"in te){if(Array.isArray(te.prefixItems)&&te.prefixItems.length>0){let Cr={type:"tuple",itemShapeIds:te.prefixItems.map((ol,Zo)=>S(ol,`${A}/prefixItems/${Zo}`,L??b)),...te.items!==void 0?{additionalItems:typeof te.items=="boolean"?te.items:S(te.items,`${A}/items`,L??b)}:{}};if(un){let ol=S({...te,nullable:!1,type:"array"},`${A}:nonnull`,L??b);return Lo(ol)}return $e(Cr)}let co=te.items??{},Cs={type:"array",itemShapeId:S(co,`${A}/items`,L??b),...Fke(te.minItems)!==null?{minItems:Fke(te.minItems)}:{},...Fke(te.maxItems)!==null?{maxItems:Fke(te.maxItems)}:{}};if(un){let Cr=S({...te,nullable:!1,type:"array"},`${A}:nonnull`,L??b);return Lo(Cr)}return $e(Cs)}if(xo==="string"||xo==="number"||xo==="integer"||xo==="boolean"||xo==="null"){let co=xo==="null"?"null":xo==="integer"?"integer":xo==="number"?"number":xo==="boolean"?"boolean":P6(te.format)==="binary"?"bytes":"string",Cs={type:"scalar",scalar:co,...P6(te.format)?{format:P6(te.format)}:{},...Object.keys(yr).length>0?{constraints:yr}:{}};if(un&&co!=="null"){let Cr=S({...te,nullable:!1,type:xo},`${A}:nonnull`,L??b);return Lo(Cr)}return $e(Cs)}return $e({type:"unknown",reason:`unsupported_schema:${A}`},{native:[zBr({source:e.source,kind:"json_schema",pointer:A,value:b,summary:"Unsupported JSON schema preserved natively"})]})}finally{if(l.pop()!==ie)throw new Error(`JSON schema importer stack mismatch for ${ie}`)}};return{importSchema:(b,A,L)=>S(b,A,L??b),finalize:()=>{let b=A=>{if(typeof A!="string"&&!(!A||typeof A!="object")){if(Array.isArray(A)){for(let L=0;LA6.make(`scope_service_${Td({sourceId:e.id})}`),hFt=(e,r)=>LN.make(`doc_${Td({sourceId:e.id,key:r})}`),JBr=e=>MN.make(`res_${Td({sourceId:e.id})}`),VBr=e=>({sourceKind:rY(e.source),kind:e.kind,pointer:e.pointer,encoding:"json",...e.summary?{summary:e.summary}:{},value:e.value}),WBr=()=>({version:"ir.v1.fragment",documents:{},resources:{},scopes:{},symbols:{},capabilities:{},executables:{},responseSets:{},diagnostics:{}}),GBr=e=>({version:"ir.v1.fragment",...Object.keys(e.documents).length>0?{documents:e.documents}:{},...Object.keys(e.resources).length>0?{resources:e.resources}:{},...Object.keys(e.scopes).length>0?{scopes:e.scopes}:{},...Object.keys(e.symbols).length>0?{symbols:e.symbols}:{},...Object.keys(e.capabilities).length>0?{capabilities:e.capabilities}:{},...Object.keys(e.executables).length>0?{executables:e.executables}:{},...Object.keys(e.responseSets).length>0?{responseSets:e.responseSets}:{},...Object.keys(e.diagnostics).length>0?{diagnostics:e.diagnostics}:{}}),HBr=e=>{let r=qBr(e.source);return x_(e.catalog.scopes)[r]={id:r,kind:"service",name:e.source.name,namespace:e.source.namespace??vT(e.source.name),docs:Gd({summary:e.source.name}),...e.defaults?{defaults:e.defaults}:{},synthetic:!1,provenance:ld(e.documentId,"#/service")},r},h5=e=>{let r=WBr(),i=e.documents.length>0?e.documents:[{documentKind:"synthetic",documentKey:e.source.endpoint,fetchedAt:Date.now(),contentText:"{}"}],s=i[0],l=s.documentKey??e.source.endpoint??e.source.id,d=hFt(e.source,`${s.documentKind}:${s.documentKey}`),h=JBr(e.source);for(let A of i){let L=hFt(e.source,`${A.documentKind}:${A.documentKey}`);x_(r.documents)[L]={id:L,kind:rY(e.source),title:e.source.name,fetchedAt:new Date(A.fetchedAt??Date.now()).toISOString(),rawRef:A.documentKey,entryUri:A.documentKey.startsWith("http")?A.documentKey:void 0,native:[VBr({source:e.source,kind:"source_document",pointer:`#/${A.documentKind}`,value:A.contentText,summary:A.documentKind})]}}x_(r.resources)[h]={id:h,documentId:d,canonicalUri:l,baseUri:l,...e.resourceDialectUri?{dialectUri:e.resourceDialectUri}:{},anchors:{},dynamicAnchors:{},synthetic:!1,provenance:ld(d,"#")};let S=HBr({catalog:r,source:e.source,documentId:d,defaults:e.serviceScopeDefaults}),b=mFt({catalog:r,source:e.source,resourceId:h,documentId:d});return e.registerOperations({catalog:r,documentId:d,serviceScopeId:S,importer:b}),b.finalize(),GBr(r)};import*as TKe from"effect/ParseResult";import{Schema as EKe}from"effect";import{Schema as mt}from"effect";var SKe=mt.Literal("openapi","graphql-schema","google-discovery","mcp","custom"),KBr=mt.Literal("service","document","resource","pathItem","operation","folder"),QBr=mt.Literal("read","write","delete","action","subscribe"),ZBr=mt.Literal("path","query","header","cookie"),XBr=mt.Literal("success","redirect","stream","download","upload","longRunning"),YBr=mt.Literal("oauth2","http","apiKey","basic","bearer","custom"),e$r=mt.Literal("1XX","2XX","3XX","4XX","5XX"),t$r=mt.Literal("cursor","offset","token","unknown"),r$r=mt.Literal("info","warning","error"),n$r=mt.Literal("external_ref_bundled","relative_ref_rebased","schema_hoisted","selection_shape_synthesized","opaque_hook_imported","discriminator_lost","multi_response_union_synthesized","unsupported_link_preserved_native","unsupported_callback_preserved_native","unresolved_ref","merge_conflict_preserved_first","projection_call_shape_synthesized","projection_result_shape_synthesized","projection_collision_grouped_fields","synthetic_resource_context_created","selection_shape_missing"),i$r=mt.Literal("json","yaml","graphql","text","unknown"),o$r=mt.Literal("declared","hoisted","derived","merged","projected"),zN=mt.Struct({summary:mt.optional(mt.String),description:mt.optional(mt.String),externalDocsUrl:mt.optional(mt.String)}),yFt=mt.Struct({relation:o$r,documentId:LN,resourceId:mt.optional(MN),pointer:mt.optional(mt.String),line:mt.optional(mt.Number),column:mt.optional(mt.Number)}),vFt=mt.Struct({sourceKind:SKe,kind:mt.String,pointer:mt.optional(mt.String),encoding:mt.optional(i$r),summary:mt.optional(mt.String),value:mt.optional(mt.Unknown)}),Ww=mt.Struct({synthetic:mt.Boolean,provenance:mt.Array(yFt),diagnosticIds:mt.optional(mt.Array(_5)),native:mt.optional(mt.Array(vFt))}),a$r=mt.Struct({sourceKind:SKe,adapterKey:mt.String,importerVersion:mt.String,importedAt:mt.String,sourceConfigHash:mt.String}),SFt=mt.Struct({id:LN,kind:SKe,title:mt.optional(mt.String),versionHint:mt.optional(mt.String),fetchedAt:mt.String,rawRef:mt.String,entryUri:mt.optional(mt.String),native:mt.optional(mt.Array(vFt))}),bFt=mt.Struct({shapeId:xd,docs:mt.optional(zN),deprecated:mt.optional(mt.Boolean),exampleIds:mt.optional(mt.Array(jN))}),s$r=mt.Struct({propertyName:mt.String,mapping:mt.optional(mt.Record({key:mt.String,value:xd}))}),c$r=mt.Struct({type:mt.Literal("scalar"),scalar:mt.Literal("string","number","integer","boolean","null","bytes"),format:mt.optional(mt.String),constraints:mt.optional(mt.Record({key:mt.String,value:mt.Unknown}))}),l$r=mt.Struct({type:mt.Literal("unknown"),reason:mt.optional(mt.String)}),u$r=mt.Struct({type:mt.Literal("const"),value:mt.Unknown}),p$r=mt.Struct({type:mt.Literal("enum"),values:mt.Array(mt.Unknown)}),_$r=mt.Struct({type:mt.Literal("object"),fields:mt.Record({key:mt.String,value:bFt}),required:mt.optional(mt.Array(mt.String)),additionalProperties:mt.optional(mt.Union(mt.Boolean,xd)),patternProperties:mt.optional(mt.Record({key:mt.String,value:xd}))}),d$r=mt.Struct({type:mt.Literal("array"),itemShapeId:xd,minItems:mt.optional(mt.Number),maxItems:mt.optional(mt.Number)}),f$r=mt.Struct({type:mt.Literal("tuple"),itemShapeIds:mt.Array(xd),additionalItems:mt.optional(mt.Union(mt.Boolean,xd))}),m$r=mt.Struct({type:mt.Literal("map"),valueShapeId:xd}),h$r=mt.Struct({type:mt.Literal("allOf"),items:mt.Array(xd)}),g$r=mt.Struct({type:mt.Literal("anyOf"),items:mt.Array(xd)}),y$r=mt.Struct({type:mt.Literal("oneOf"),items:mt.Array(xd),discriminator:mt.optional(s$r)}),v$r=mt.Struct({type:mt.Literal("nullable"),itemShapeId:xd}),S$r=mt.Struct({type:mt.Literal("ref"),target:xd}),b$r=mt.Struct({type:mt.Literal("not"),itemShapeId:xd}),x$r=mt.Struct({type:mt.Literal("conditional"),ifShapeId:xd,thenShapeId:mt.optional(xd),elseShapeId:mt.optional(xd)}),T$r=mt.Struct({type:mt.Literal("graphqlInterface"),fields:mt.Record({key:mt.String,value:bFt}),possibleTypeIds:mt.Array(xd)}),E$r=mt.Struct({type:mt.Literal("graphqlUnion"),memberTypeIds:mt.Array(xd)}),k$r=mt.Union(l$r,c$r,u$r,p$r,_$r,d$r,f$r,m$r,h$r,g$r,y$r,v$r,S$r,b$r,x$r,T$r,E$r),gFt=mt.Struct({shapeId:xd,pointer:mt.optional(mt.String)}),xFt=mt.extend(mt.Struct({id:MN,documentId:LN,canonicalUri:mt.String,baseUri:mt.String,dialectUri:mt.optional(mt.String),rootShapeId:mt.optional(xd),anchors:mt.Record({key:mt.String,value:gFt}),dynamicAnchors:mt.Record({key:mt.String,value:gFt})}),Ww),C$r=mt.Union(mt.Struct({location:mt.Literal("header","query","cookie"),name:mt.String}),mt.Struct({location:mt.Literal("body"),path:mt.String})),D$r=mt.Struct({authorizationUrl:mt.optional(mt.String),tokenUrl:mt.optional(mt.String),refreshUrl:mt.optional(mt.String),scopes:mt.optional(mt.Record({key:mt.String,value:mt.String}))}),A$r=mt.Struct({in:mt.optional(mt.Literal("header","query","cookie")),name:mt.optional(mt.String)}),w$r=mt.extend(mt.Struct({id:kj,kind:mt.Literal("securityScheme"),schemeType:YBr,docs:mt.optional(zN),placement:mt.optional(A$r),http:mt.optional(mt.Struct({scheme:mt.String,bearerFormat:mt.optional(mt.String)})),apiKey:mt.optional(mt.Struct({in:mt.Literal("header","query","cookie"),name:mt.String})),oauth:mt.optional(mt.Struct({flows:mt.optional(mt.Record({key:mt.String,value:D$r})),scopes:mt.optional(mt.Record({key:mt.String,value:mt.String}))})),custom:mt.optional(mt.Struct({placementHints:mt.optional(mt.Array(C$r))}))}),Ww),I$r=mt.Struct({contentType:mt.optional(mt.String),style:mt.optional(mt.String),explode:mt.optional(mt.Boolean),allowReserved:mt.optional(mt.Boolean),headers:mt.optional(mt.Array(Ej))}),Lke=mt.Struct({mediaType:mt.String,shapeId:mt.optional(xd),exampleIds:mt.optional(mt.Array(jN)),encoding:mt.optional(mt.Record({key:mt.String,value:I$r}))}),P$r=mt.extend(mt.Struct({id:xd,kind:mt.Literal("shape"),resourceId:mt.optional(MN),title:mt.optional(mt.String),docs:mt.optional(zN),deprecated:mt.optional(mt.Boolean),node:k$r}),Ww),N$r=mt.extend(mt.Struct({id:Tj,kind:mt.Literal("parameter"),name:mt.String,location:ZBr,required:mt.optional(mt.Boolean),docs:mt.optional(zN),deprecated:mt.optional(mt.Boolean),exampleIds:mt.optional(mt.Array(jN)),schemaShapeId:mt.optional(xd),content:mt.optional(mt.Array(Lke)),style:mt.optional(mt.String),explode:mt.optional(mt.Boolean),allowReserved:mt.optional(mt.Boolean)}),Ww),O$r=mt.extend(mt.Struct({id:Ej,kind:mt.Literal("header"),name:mt.String,docs:mt.optional(zN),deprecated:mt.optional(mt.Boolean),exampleIds:mt.optional(mt.Array(jN)),schemaShapeId:mt.optional(xd),content:mt.optional(mt.Array(Lke)),style:mt.optional(mt.String),explode:mt.optional(mt.Boolean)}),Ww),F$r=mt.extend(mt.Struct({id:VJ,kind:mt.Literal("requestBody"),docs:mt.optional(zN),required:mt.optional(mt.Boolean),contents:mt.Array(Lke)}),Ww),R$r=mt.extend(mt.Struct({id:SD,kind:mt.Literal("response"),docs:mt.optional(zN),headerIds:mt.optional(mt.Array(Ej)),contents:mt.optional(mt.Array(Lke))}),Ww),L$r=mt.extend(mt.Struct({id:jN,kind:mt.Literal("example"),name:mt.optional(mt.String),docs:mt.optional(zN),exampleKind:mt.Literal("value","call"),value:mt.optional(mt.Unknown),externalValue:mt.optional(mt.String),call:mt.optional(mt.Struct({args:mt.Record({key:mt.String,value:mt.Unknown}),result:mt.optional(mt.Unknown)}))}),Ww),TFt=mt.Union(P$r,N$r,F$r,R$r,O$r,L$r,w$r),Rke=mt.suspend(()=>mt.Union(mt.Struct({kind:mt.Literal("none")}),mt.Struct({kind:mt.Literal("scheme"),schemeId:kj,scopes:mt.optional(mt.Array(mt.String))}),mt.Struct({kind:mt.Literal("allOf"),items:mt.Array(Rke)}),mt.Struct({kind:mt.Literal("anyOf"),items:mt.Array(Rke)}))),M$r=mt.Struct({url:mt.String,description:mt.optional(mt.String),variables:mt.optional(mt.Record({key:mt.String,value:mt.String}))}),j$r=mt.Struct({servers:mt.optional(mt.Array(M$r)),auth:mt.optional(Rke),parameterIds:mt.optional(mt.Array(Tj)),headerIds:mt.optional(mt.Array(Ej)),variables:mt.optional(mt.Record({key:mt.String,value:mt.String}))}),EFt=mt.extend(mt.Struct({id:A6,kind:KBr,parentId:mt.optional(A6),name:mt.optional(mt.String),namespace:mt.optional(mt.String),docs:mt.optional(zN),defaults:mt.optional(j$r)}),Ww),B$r=mt.Struct({approval:mt.Struct({mayRequire:mt.Boolean,reasons:mt.optional(mt.Array(mt.Literal("write","delete","sensitive","externalSideEffect")))}),elicitation:mt.Struct({mayRequest:mt.Boolean,shapeId:mt.optional(xd)}),resume:mt.Struct({supported:mt.Boolean})}),kFt=mt.extend(mt.Struct({id:vD,serviceScopeId:A6,surface:mt.Struct({toolPath:mt.Array(mt.String),title:mt.optional(mt.String),summary:mt.optional(mt.String),description:mt.optional(mt.String),aliases:mt.optional(mt.Array(mt.String)),tags:mt.optional(mt.Array(mt.String))}),semantics:mt.Struct({effect:QBr,safe:mt.optional(mt.Boolean),idempotent:mt.optional(mt.Boolean),destructive:mt.optional(mt.Boolean)}),docs:mt.optional(zN),auth:Rke,interaction:B$r,executableIds:mt.Array(pk),preferredExecutableId:mt.optional(pk),exampleIds:mt.optional(mt.Array(jN))}),Ww),$$r=mt.Struct({protocol:mt.optional(mt.String),method:mt.optional(mt.NullOr(mt.String)),pathTemplate:mt.optional(mt.NullOr(mt.String)),operationId:mt.optional(mt.NullOr(mt.String)),group:mt.optional(mt.NullOr(mt.String)),leaf:mt.optional(mt.NullOr(mt.String)),rawToolId:mt.optional(mt.NullOr(mt.String)),title:mt.optional(mt.NullOr(mt.String)),summary:mt.optional(mt.NullOr(mt.String))}),U$r=mt.Struct({responseSetId:xj,callShapeId:xd,resultDataShapeId:mt.optional(xd),resultErrorShapeId:mt.optional(xd),resultHeadersShapeId:mt.optional(xd),resultStatusShapeId:mt.optional(xd)}),CFt=mt.extend(mt.Struct({id:pk,capabilityId:vD,scopeId:A6,adapterKey:mt.String,bindingVersion:mt.Number,binding:mt.Unknown,projection:U$r,display:mt.optional($$r)}),Ww),z$r=mt.Struct({kind:t$r,tokenParamName:mt.optional(mt.String),nextFieldPath:mt.optional(mt.String)}),q$r=mt.Union(mt.Struct({kind:mt.Literal("exact"),status:mt.Number}),mt.Struct({kind:mt.Literal("range"),value:e$r}),mt.Struct({kind:mt.Literal("default")})),J$r=mt.Struct({match:q$r,responseId:SD,traits:mt.optional(mt.Array(XBr)),pagination:mt.optional(z$r)}),DFt=mt.extend(mt.Struct({id:xj,variants:mt.Array(J$r)}),Ww),AFt=mt.Struct({id:_5,level:r$r,code:n$r,message:mt.String,relatedSymbolIds:mt.optional(mt.Array(oFt)),provenance:mt.Array(yFt)}),bKe=mt.Struct({version:mt.Literal("ir.v1"),documents:mt.Record({key:LN,value:SFt}),resources:mt.Record({key:MN,value:xFt}),scopes:mt.Record({key:A6,value:EFt}),symbols:mt.Record({key:mt.String,value:TFt}),capabilities:mt.Record({key:vD,value:kFt}),executables:mt.Record({key:pk,value:CFt}),responseSets:mt.Record({key:xj,value:DFt}),diagnostics:mt.Record({key:_5,value:AFt})}),wFt=mt.Struct({version:mt.Literal("ir.v1.fragment"),documents:mt.optional(mt.Record({key:LN,value:SFt})),resources:mt.optional(mt.Record({key:MN,value:xFt})),scopes:mt.optional(mt.Record({key:A6,value:EFt})),symbols:mt.optional(mt.Record({key:mt.String,value:TFt})),capabilities:mt.optional(mt.Record({key:vD,value:kFt})),executables:mt.optional(mt.Record({key:pk,value:CFt})),responseSets:mt.optional(mt.Record({key:xj,value:DFt})),diagnostics:mt.optional(mt.Record({key:_5,value:AFt}))}),Que=mt.Struct({version:mt.Literal("ir.v1.snapshot"),import:a$r,catalog:bKe});var V$r=EKe.decodeUnknownSync(bKe),W$r=EKe.decodeUnknownSync(Que),bBn=EKe.decodeUnknownSync(wFt),oY=e=>e===null||typeof e!="object"?JSON.stringify(e):Array.isArray(e)?`[${e.map(i=>oY(i)).join(",")}]`:`{${Object.entries(e).sort(([i],[s])=>i.localeCompare(s)).map(([i,s])=>`${JSON.stringify(i)}:${oY(s)}`).join(",")}}`,NFt=e=>_D(oY(e)).slice(0,16),GJ=e=>[...new Set(e)],G$r=e=>({version:e.version,documents:{...e.documents},resources:{...e.resources},scopes:{...e.scopes},symbols:{...e.symbols},capabilities:{...e.capabilities},executables:{...e.executables},responseSets:{...e.responseSets},diagnostics:{...e.diagnostics}}),Mke=e=>e,kKe=(e,r,i)=>e(`${r}_${NFt(i)}`),H$r=()=>({version:"ir.v1",documents:{},resources:{},scopes:{},symbols:{},capabilities:{},executables:{},responseSets:{},diagnostics:{}}),OFt=(e,r)=>{switch(r.kind){case"none":return["none"];case"scheme":{let i=e.symbols[r.schemeId];return!i||i.kind!=="securityScheme"?["unknown"]:[i.schemeType,...(r.scopes??[]).map(s=>`scope:${s}`)]}case"allOf":case"anyOf":return GJ(r.items.flatMap(i=>OFt(e,i)))}};var K$r=(e,r)=>{let i=e.symbols[r];return i&&i.kind==="response"?i:void 0},Q$r=e=>{let r=e.trim().toLowerCase();return r==="application/json"||r.endsWith("+json")||r==="text/json"},CKe=(e,r)=>{let i=kKe(_5.make,"diag",r.idSeed);return Mke(e.diagnostics)[i]={id:i,level:r.level,code:r.code,message:r.message,...r.relatedSymbolIds?{relatedSymbolIds:r.relatedSymbolIds}:{},provenance:r.provenance},i},Z$r=(e,r)=>{let i=kKe(MN.make,"res",{kind:"projection",capabilityId:r.id});if(!e.resources[i]){let l=e.scopes[r.serviceScopeId]?.provenance[0]?.documentId??LN.make(`doc_projection_${NFt(r.id)}`);e.documents[l]||(Mke(e.documents)[l]={id:l,kind:"custom",title:`Projection resource for ${r.id}`,fetchedAt:new Date(0).toISOString(),rawRef:`synthetic://projection/${r.id}`}),Mke(e.resources)[i]={id:i,documentId:l,canonicalUri:`synthetic://projection/${r.id}`,baseUri:`synthetic://projection/${r.id}`,anchors:{},dynamicAnchors:{},synthetic:!0,provenance:r.provenance},CKe(e,{idSeed:{code:"synthetic_resource_context_created",capabilityId:r.id},level:"info",code:"synthetic_resource_context_created",message:`Created synthetic projection resource for ${r.id}`,provenance:r.provenance})}return i},Aj=(e,r)=>{let i=Z$r(e,r.capability),s=kKe(xd.make,"shape",{capabilityId:r.capability.id,label:r.label,node:r.node});if(!e.symbols[s]){let l=r.diagnostic?[CKe(e,{idSeed:{code:r.diagnostic.code,shapeId:s},level:r.diagnostic.level,code:r.diagnostic.code,message:r.diagnostic.message,...r.diagnostic.relatedSymbolIds?{relatedSymbolIds:r.diagnostic.relatedSymbolIds}:{},provenance:r.capability.provenance})]:void 0;Mke(e.symbols)[s]={id:s,kind:"shape",resourceId:i,...r.title?{title:r.title}:{},...r.docs?{docs:r.docs}:{},node:r.node,synthetic:!0,provenance:r.capability.provenance,...l?{diagnosticIds:l}:{}}}return s},X$r=(e,r,i,s)=>{let l=GJ((i??[]).map(d=>d.shapeId).filter(d=>d!==void 0));if(l.length!==0)return l.length===1?l[0]:Aj(e,{capability:r,label:s,title:`${r.surface.title??r.id} content union`,node:{type:"anyOf",items:l},diagnostic:{level:"warning",code:"projection_result_shape_synthesized",message:`Synthesized content union for ${r.id}`,relatedSymbolIds:l}})},Y$r=(e,r)=>{let i=r.preferredExecutableId;if(i){let l=e.executables[i];if(l)return l}let s=r.executableIds.map(l=>e.executables[l]).filter(l=>l!==void 0);if(s.length===0)throw new Error(`Capability ${r.id} has no executables`);return s[0]},eUr=e=>{switch(e.kind){case"exact":return e.status===200?100:e.status>=200&&e.status<300?80:10;case"range":return e.value==="2XX"?60:5;case"default":return 40}},IFt=e=>(e.contents??[]).flatMap(r=>r.shapeId?[{mediaType:r.mediaType,shapeId:r.shapeId}]:[]),FFt=(e,r)=>[...r.variants].map(i=>{let s=K$r(e,i.responseId);return s?{variant:i,response:s,score:eUr(i.match)}:null}).filter(i=>i!==null),RFt=e=>{switch(e.kind){case"exact":return e.status>=200&&e.status<300;case"range":return e.value==="2XX";case"default":return!1}},LFt=(e,r,i,s,l)=>{let d=l.flatMap(({response:S})=>IFt(S).filter(b=>Q$r(b.mediaType)));if(d.length>0)return X$r(e,r,d.map(S=>({mediaType:S.mediaType,shapeId:S.shapeId})),`${i}:json`);let h=GJ(l.flatMap(({response:S})=>IFt(S).map(b=>b.shapeId)));if(h.length!==0)return h.length===1?h[0]:Aj(e,{capability:r,label:`${i}:union`,title:s,node:{type:"anyOf",items:h},diagnostic:{level:"warning",code:"multi_response_union_synthesized",message:`Synthesized response union for ${r.id}`,relatedSymbolIds:h}})},tUr=(e,r,i)=>LFt(e,r,`responseSet:${i.id}`,`${r.surface.title??r.id} result`,FFt(e,i).filter(({variant:s})=>RFt(s.match))),rUr=(e,r,i)=>LFt(e,r,`responseSet:${i.id}:error`,`${r.surface.title??r.id} error`,FFt(e,i).filter(({variant:s})=>!RFt(s.match))),MFt=(e,r,i)=>Aj(e,{capability:r,label:i.label,title:i.title,node:{type:"scalar",scalar:i.scalar}}),nUr=(e,r,i)=>Aj(e,{capability:r,label:i,title:"null",node:{type:"const",value:null}}),PFt=(e,r,i)=>Aj(e,{capability:r,label:i.label,title:i.title,node:{type:"unknown",reason:i.reason}}),xKe=(e,r,i)=>{let s=nUr(e,r,`${i.label}:null`);return i.baseShapeId===s?s:Aj(e,{capability:r,label:`${i.label}:nullable`,title:i.title,node:{type:"anyOf",items:GJ([i.baseShapeId,s])}})},iUr=(e,r,i)=>{let s=MFt(e,r,{label:`${i}:value`,title:"Header value",scalar:"string"});return Aj(e,{capability:r,label:i,title:"Response headers",node:{type:"object",fields:{},additionalProperties:s}})},oUr=(e,r,i,s)=>{let l=PFt(e,r,{label:`executionResult:${r.id}:data:unknown`,title:"Response data",reason:`Execution result data for ${r.id} is not statically known`}),d=PFt(e,r,{label:`executionResult:${r.id}:error:unknown`,title:"Response error",reason:`Execution result error for ${r.id} is not statically known`}),h=iUr(e,r,`executionResult:${r.id}:headers`),S=MFt(e,r,{label:`executionResult:${r.id}:status`,title:"Response status",scalar:"integer"}),b,A,L=h,V=S;b=i.projection.resultDataShapeId??tUr(e,r,s),A=i.projection.resultErrorShapeId??rUr(e,r,s),L=i.projection.resultHeadersShapeId??h,V=i.projection.resultStatusShapeId??S;let j=xKe(e,r,{label:`executionResult:${r.id}:data`,title:"Result data",baseShapeId:b??l}),ie=xKe(e,r,{label:`executionResult:${r.id}:error`,title:"Result error",baseShapeId:A??d}),te=xKe(e,r,{label:`executionResult:${r.id}:status`,title:"Result status",baseShapeId:V});return Aj(e,{capability:r,label:`executionResult:${r.id}`,title:`${r.surface.title??r.id} result`,node:{type:"object",fields:{data:{shapeId:j,docs:{description:"Successful result payload when available."}},error:{shapeId:ie,docs:{description:"Error payload when the remote execution completed but failed."}},headers:{shapeId:L,docs:{description:"Response headers when available."}},status:{shapeId:te,docs:{description:"Transport status code when available."}}},required:["data","error","headers","status"],additionalProperties:!1},diagnostic:{level:"info",code:"projection_result_shape_synthesized",message:`Synthesized execution result envelope for ${r.id}`,relatedSymbolIds:GJ([j,ie,L,te])}})},aUr=(e,r)=>{let i=Y$r(e,r),s=e.responseSets[i.projection.responseSetId];if(!s)throw new Error(`Missing response set ${i.projection.responseSetId} for ${r.id}`);let l=i.projection.callShapeId,d=oUr(e,r,i,s),S=GJ([...r.diagnosticIds??[],...i.diagnosticIds??[],...s.diagnosticIds??[],...l?e.symbols[l]?.diagnosticIds??[]:[],...d?e.symbols[d]?.diagnosticIds??[]:[]]).map(b=>e.diagnostics[b]).filter(b=>b!==void 0);return{toolPath:[...r.surface.toolPath],capabilityId:r.id,...r.surface.title?{title:r.surface.title}:{},...r.surface.summary?{summary:r.surface.summary}:{},effect:r.semantics.effect,interaction:{mayRequireApproval:r.interaction.approval.mayRequire,mayElicit:r.interaction.elicitation.mayRequest},callShapeId:l,...d?{resultShapeId:d}:{},responseSetId:i.projection.responseSetId,diagnosticCounts:{warning:S.filter(b=>b.level==="warning").length,error:S.filter(b=>b.level==="error").length}}},sUr=(e,r,i)=>({capabilityId:r.id,toolPath:[...r.surface.toolPath],...r.surface.summary?{summary:r.surface.summary}:{},executableIds:[...r.executableIds],auth:r.auth,interaction:r.interaction,callShapeId:i.callShapeId,...i.resultShapeId?{resultShapeId:i.resultShapeId}:{},responseSetId:i.responseSetId,...r.diagnosticIds?{diagnosticIds:[...r.diagnosticIds]}:{}}),cUr=(e,r)=>({capabilityId:r.id,toolPath:[...r.surface.toolPath],...r.surface.title?{title:r.surface.title}:{},...r.surface.summary?{summary:r.surface.summary}:{},...r.surface.tags?{tags:[...r.surface.tags]}:{},protocolHints:GJ(r.executableIds.map(i=>e.executables[i]?.display?.protocol??e.executables[i]?.adapterKey).filter(i=>i!==void 0)),authHints:OFt(e,r.auth),effect:r.semantics.effect});var jFt=e=>{try{return V$r(e)}catch(r){throw new Error(TKe.TreeFormatter.formatErrorSync(r))}};var jke=e=>{try{let r=W$r(e);return DKe(r.catalog),r}catch(r){throw r instanceof Error?r:new Error(TKe.TreeFormatter.formatErrorSync(r))}};var lUr=e=>{let r=DKe(jFt(e.catalog));return{version:"ir.v1.snapshot",import:e.import,catalog:r}},aY=e=>lUr({import:e.import,catalog:uUr(e.fragments)}),uUr=e=>{let r=H$r(),i=new Map,s=(l,d)=>{if(!d)return;let h=r[l];for(let[S,b]of Object.entries(d)){let A=h[S];if(!A){h[S]=b,i.set(`${String(l)}:${S}`,oY(b));continue}let L=i.get(`${String(l)}:${S}`)??oY(A),V=oY(b);L!==V&&l!=="diagnostics"&&CKe(r,{idSeed:{collectionName:l,id:S,existingHash:L,nextHash:V},level:"error",code:"merge_conflict_preserved_first",message:`Conflicting ${String(l)} entry for ${S}; preserved first value`,provenance:"provenance"in A?A.provenance:[]})}};for(let l of e)s("documents",l.documents),s("resources",l.resources),s("scopes",l.scopes),s("symbols",l.symbols),s("capabilities",l.capabilities),s("executables",l.executables),s("responseSets",l.responseSets),s("diagnostics",l.diagnostics);return DKe(jFt(r))},pUr=e=>{let r=[],i=s=>{for(let l of s.provenance)e.documents[l.documentId]||r.push({code:"missing_provenance_document",entityId:s.entityId,message:`Entity ${s.entityId} references missing provenance document ${l.documentId}`})};for(let s of Object.values(e.symbols))s.provenance.length===0&&r.push({code:"missing_symbol_provenance",entityId:s.id,message:`Symbol ${s.id} is missing provenance`}),s.kind==="shape"&&(!s.resourceId&&!s.synthetic&&r.push({code:"missing_resource_context",entityId:s.id,message:`Shape ${s.id} must belong to a resource or be synthetic`}),s.node.type==="ref"&&!e.symbols[s.node.target]&&r.push({code:"missing_reference_target",entityId:s.id,message:`Shape ${s.id} references missing shape ${s.node.target}`}),s.node.type==="unknown"&&s.node.reason?.includes("unresolved")&&((s.diagnosticIds??[]).map(d=>e.diagnostics[d]).some(d=>d?.code==="unresolved_ref")||r.push({code:"missing_unresolved_ref_diagnostic",entityId:s.id,message:`Shape ${s.id} is unresolved but has no unresolved_ref diagnostic`})),s.synthetic&&s.resourceId&&!e.resources[s.resourceId]&&r.push({code:"missing_resource_context",entityId:s.id,message:`Synthetic shape ${s.id} references missing resource ${s.resourceId}`})),i({entityId:s.id,provenance:s.provenance});for(let s of[...Object.values(e.resources),...Object.values(e.scopes),...Object.values(e.capabilities),...Object.values(e.executables),...Object.values(e.responseSets)])"provenance"in s&&s.provenance.length===0&&r.push({code:"missing_entity_provenance",entityId:"id"in s?s.id:void 0,message:`Entity ${"id"in s?s.id:"unknown"} is missing provenance`}),"id"in s&&i({entityId:s.id,provenance:s.provenance});for(let s of Object.values(e.resources))e.documents[s.documentId]||r.push({code:"missing_document",entityId:s.id,message:`Resource ${s.id} references missing document ${s.documentId}`});for(let s of Object.values(e.capabilities)){e.scopes[s.serviceScopeId]||r.push({code:"missing_service_scope",entityId:s.id,message:`Capability ${s.id} references missing scope ${s.serviceScopeId}`}),s.preferredExecutableId&&!s.executableIds.includes(s.preferredExecutableId)&&r.push({code:"invalid_preferred_executable",entityId:s.id,message:`Capability ${s.id} preferred executable is not in executableIds`});for(let l of s.executableIds)e.executables[l]||r.push({code:"missing_executable",entityId:s.id,message:`Capability ${s.id} references missing executable ${l}`})}for(let s of Object.values(e.executables)){e.capabilities[s.capabilityId]||r.push({code:"missing_executable",entityId:s.id,message:`Executable ${s.id} references missing capability ${s.capabilityId}`}),e.scopes[s.scopeId]||r.push({code:"missing_scope",entityId:s.id,message:`Executable ${s.id} references missing scope ${s.scopeId}`}),e.responseSets[s.projection.responseSetId]||r.push({code:"missing_response_set",entityId:s.id,message:`Executable ${s.id} references missing response set ${s.projection.responseSetId}`});let l=[{kind:"call",shapeId:s.projection.callShapeId},{kind:"result data",shapeId:s.projection.resultDataShapeId},{kind:"result error",shapeId:s.projection.resultErrorShapeId},{kind:"result headers",shapeId:s.projection.resultHeadersShapeId},{kind:"result status",shapeId:s.projection.resultStatusShapeId}];for(let d of l)!d.shapeId||e.symbols[d.shapeId]?.kind==="shape"||r.push({code:"missing_projection_shape",entityId:s.id,message:`Executable ${s.id} references missing ${d.kind} shape ${d.shapeId}`})}return r},DKe=e=>{let r=pUr(e);if(r.length===0)return e;let i=r.slice(0,5).map(s=>`${s.code}: ${s.message}`).join(` +`);throw new Error([`Invalid IR catalog (${r.length} invariant violation${r.length===1?"":"s"}).`,i,...r.length>5?[`...and ${String(r.length-5)} more`]:[]].join(` +`))},Zue=e=>{let r=G$r(e.catalog),i={},s={},l={},d=Object.values(r.capabilities).sort((h,S)=>h.id.localeCompare(S.id));for(let h of d){let S=aUr(r,h);i[h.id]=S,s[h.id]=cUr(r,h),l[h.id]=sUr(r,h,S)}return{catalog:r,toolDescriptors:i,searchDocs:s,capabilityViews:l}};var Xue=e=>_D(e),qN=e=>e,Yue=e=>aY({import:e.importMetadata,fragments:[e.fragment]});import*as UFt from"effect/Schema";var BFt=e=>{let r=new Map(e.map(d=>[d.key,d])),i=d=>{let h=r.get(d);if(!h)throw new Error(`Unsupported source adapter: ${d}`);return h},s=d=>i(d.kind);return{adapters:e,getSourceAdapter:i,getSourceAdapterForSource:s,findSourceAdapterByProviderKey:d=>e.find(h=>h.providerKey===d)??null,sourceBindingStateFromSource:d=>s(d).bindingStateFromSource(d),sourceAdapterCatalogKind:d=>i(d).catalogKind,sourceAdapterRequiresInteractiveConnect:d=>i(d).connectStrategy==="interactive",sourceAdapterUsesCredentialManagedAuth:d=>i(d).credentialStrategy==="credential_managed",isInternalSourceAdapter:d=>i(d).catalogKind==="internal"}};var _Ur=e=>e.connectPayloadSchema!==null,dUr=e=>e.executorAddInputSchema!==null,fUr=e=>e.localConfigBindingSchema!==null,mUr=e=>e,$Ft=(e,r)=>e.length===0?(()=>{throw new Error(`Cannot create ${r} without any schemas`)})():e.length===1?e[0]:UFt.Union(...mUr(e)),zFt=e=>{let r=e.filter(_Ur),i=e.filter(dUr),s=e.filter(fUr),l=BFt(e);return{connectableSourceAdapters:r,connectPayloadSchema:$Ft(r.map(d=>d.connectPayloadSchema),"connect payload schema"),executorAddableSourceAdapters:i,executorAddInputSchema:$Ft(i.map(d=>d.executorAddInputSchema),"executor add input schema"),localConfigurableSourceAdapters:s,...l}};import*as Pl from"effect/Schema";import*as Go from"effect/Schema";var N6=Go.Struct({providerId:Go.String,handle:Go.String}),wBn=Go.Literal("runtime","import"),IBn=Go.Literal("imported","internal"),hUr=Go.String,gUr=Go.Literal("draft","probing","auth_required","connected","error"),bD=Go.Literal("auto","streamable-http","sse","stdio"),wj=Go.Literal("none","reuse_runtime","separate"),M_=Go.Record({key:Go.String,value:Go.String}),g5=Go.Array(Go.String),AKe=Go.suspend(()=>Go.Union(Go.String,Go.Number,Go.Boolean,Go.Null,Go.Array(AKe),Go.Record({key:Go.String,value:AKe}))).annotations({identifier:"JsonValue"}),JFt=Go.Record({key:Go.String,value:AKe}).annotations({identifier:"JsonObject"}),qFt=Go.Union(Go.Struct({kind:Go.Literal("none")}),Go.Struct({kind:Go.Literal("bearer"),headerName:Go.String,prefix:Go.String,token:N6}),Go.Struct({kind:Go.Literal("oauth2"),headerName:Go.String,prefix:Go.String,accessToken:N6,refreshToken:Go.NullOr(N6)}),Go.Struct({kind:Go.Literal("oauth2_authorized_user"),headerName:Go.String,prefix:Go.String,tokenEndpoint:Go.String,clientId:Go.String,clientAuthentication:Go.Literal("none","client_secret_post"),clientSecret:Go.NullOr(N6),refreshToken:N6,grantSet:Go.NullOr(Go.Array(Go.String))}),Go.Struct({kind:Go.Literal("provider_grant_ref"),grantId:Go.String,providerKey:Go.String,requiredScopes:Go.Array(Go.String),headerName:Go.String,prefix:Go.String}),Go.Struct({kind:Go.Literal("mcp_oauth"),redirectUri:Go.String,accessToken:N6,refreshToken:Go.NullOr(N6),tokenType:Go.String,expiresIn:Go.NullOr(Go.Number),scope:Go.NullOr(Go.String),resourceMetadataUrl:Go.NullOr(Go.String),authorizationServerUrl:Go.NullOr(Go.String),resourceMetadataJson:Go.NullOr(Go.String),authorizationServerMetadataJson:Go.NullOr(Go.String),clientInformationJson:Go.NullOr(Go.String)})),Bke=Go.Number,PBn=Go.Struct({version:Bke,payload:JFt}),NBn=Go.Struct({id:Go.String,scopeId:Go.String,name:Go.String,kind:hUr,endpoint:Go.String,status:gUr,enabled:Go.Boolean,namespace:Go.NullOr(Go.String),bindingVersion:Bke,binding:JFt,importAuthPolicy:wj,importAuth:qFt,auth:qFt,sourceHash:Go.NullOr(Go.String),lastError:Go.NullOr(Go.String),createdAt:Go.Number,updatedAt:Go.Number}),OBn=Go.Struct({id:Go.String,bindingConfigJson:Go.NullOr(Go.String)}),$ke=Go.Literal("app_callback","loopback"),VFt=Go.String,wKe=Go.Struct({clientId:Go.Trim.pipe(Go.nonEmptyString()),clientSecret:Go.optional(Go.NullOr(Go.Trim.pipe(Go.nonEmptyString()))),redirectMode:Go.optional($ke)});var IKe=Pl.Literal("mcp","openapi","google_discovery","graphql","unknown"),Uke=Pl.Literal("low","medium","high"),PKe=Pl.Literal("none","bearer","oauth2","apiKey","basic","unknown"),NKe=Pl.Literal("header","query","cookie"),WFt=Pl.Union(Pl.Struct({kind:Pl.Literal("none")}),Pl.Struct({kind:Pl.Literal("bearer"),headerName:Pl.optional(Pl.NullOr(Pl.String)),prefix:Pl.optional(Pl.NullOr(Pl.String)),token:Pl.String}),Pl.Struct({kind:Pl.Literal("basic"),username:Pl.String,password:Pl.String}),Pl.Struct({kind:Pl.Literal("headers"),headers:M_})),OKe=Pl.Struct({suggestedKind:PKe,confidence:Uke,supported:Pl.Boolean,reason:Pl.String,headerName:Pl.NullOr(Pl.String),prefix:Pl.NullOr(Pl.String),parameterName:Pl.NullOr(Pl.String),parameterLocation:Pl.NullOr(NKe),oauthAuthorizationUrl:Pl.NullOr(Pl.String),oauthTokenUrl:Pl.NullOr(Pl.String),oauthScopes:Pl.Array(Pl.String)}),GFt=Pl.Struct({detectedKind:IKe,confidence:Uke,endpoint:Pl.String,specUrl:Pl.NullOr(Pl.String),name:Pl.NullOr(Pl.String),namespace:Pl.NullOr(Pl.String),transport:Pl.NullOr(bD),authInference:OKe,toolCount:Pl.NullOr(Pl.Number),warnings:Pl.Array(Pl.String)});import*as HFt from"effect/Data";var FKe=class extends HFt.TaggedError("SourceCoreEffectError"){},og=(e,r)=>new FKe({module:e,message:r});import*as KFt from"effect/Data";import*as O6 from"effect/Effect";import*as Nl from"effect/Schema";var yUr=Nl.Trim.pipe(Nl.nonEmptyString()),sy=Nl.optional(Nl.NullOr(Nl.String)),vUr=Nl.Struct({kind:Nl.Literal("bearer"),headerName:sy,prefix:sy,token:sy,tokenRef:Nl.optional(Nl.NullOr(N6))}),SUr=Nl.Struct({kind:Nl.Literal("oauth2"),headerName:sy,prefix:sy,accessToken:sy,accessTokenRef:Nl.optional(Nl.NullOr(N6)),refreshToken:sy,refreshTokenRef:Nl.optional(Nl.NullOr(N6))}),v5=Nl.Union(Nl.Struct({kind:Nl.Literal("none")}),vUr,SUr),Ij=Nl.Struct({importAuthPolicy:Nl.optional(wj),importAuth:Nl.optional(v5)}),QFt=Nl.optional(Nl.NullOr(wKe)),zke=Nl.Struct({endpoint:yUr,name:sy,namespace:sy}),RKe=Nl.Struct({transport:Nl.optional(Nl.NullOr(bD)),queryParams:Nl.optional(Nl.NullOr(M_)),headers:Nl.optional(Nl.NullOr(M_)),command:Nl.optional(Nl.NullOr(Nl.String)),args:Nl.optional(Nl.NullOr(g5)),env:Nl.optional(Nl.NullOr(M_)),cwd:Nl.optional(Nl.NullOr(Nl.String))});var y5=class extends KFt.TaggedError("SourceCredentialRequiredError"){constructor(r,i){super({slot:r,message:i})}},S5=e=>e instanceof y5,JN={transport:null,queryParams:null,headers:null,command:null,args:null,env:null,cwd:null,specUrl:null,defaultHeaders:null},ZFt=(e,r)=>Nl.Struct({adapterKey:Nl.Literal(e),version:Bke,payload:r}),VN=e=>Nl.encodeSync(Nl.parseJson(ZFt(e.adapterKey,e.payloadSchema)))({adapterKey:e.adapterKey,version:e.version,payload:e.payload}),WN=e=>e.value===null?O6.fail(og("core/shared",`Missing ${e.label} binding config for ${e.sourceId}`)):O6.try({try:()=>Nl.decodeUnknownSync(Nl.parseJson(ZFt(e.adapterKey,e.payloadSchema)))(e.value),catch:r=>{let i=r instanceof Error?r.message:String(r);return new Error(`Invalid ${e.label} binding config for ${e.sourceId}: ${i}`)}}).pipe(O6.flatMap(r=>r.version===e.version?O6.succeed({version:r.version,payload:r.payload}):O6.fail(og("core/shared",`Unsupported ${e.label} binding config version ${r.version} for ${e.sourceId}; expected ${e.version}`)))),GN=e=>e.version!==e.expectedVersion?O6.fail(og("core/shared",`Unsupported ${e.label} binding version ${e.version} for ${e.sourceId}; expected ${e.expectedVersion}`)):O6.try({try:()=>{if(e.allowedKeys&&e.value!==null&&typeof e.value=="object"&&!Array.isArray(e.value)){let r=Object.keys(e.value).filter(i=>!e.allowedKeys.includes(i));if(r.length>0)throw new Error(`Unsupported fields: ${r.join(", ")}`)}return Nl.decodeUnknownSync(e.schema)(e.value)},catch:r=>{let i=r instanceof Error?r.message:String(r);return new Error(`Invalid ${e.label} binding payload for ${e.sourceId}: ${i}`)}}),Pj=e=>{if(e.version!==e.expectedVersion)throw new Error(`Unsupported ${e.label} executable binding version ${e.version} for ${e.executableId}; expected ${e.expectedVersion}`);try{return Nl.decodeUnknownSync(e.schema)(e.value)}catch(r){let i=r instanceof Error?r.message:String(r);throw new Error(`Invalid ${e.label} executable binding for ${e.executableId}: ${i}`)}};import*as cY from"effect/Effect";import*as XFt from"effect/Data";var LKe=class extends XFt.TaggedError("McpOAuthEffectError"){},MKe=(e,r)=>new LKe({module:e,message:r});var YFt=e=>e instanceof Error?e:new Error(String(e)),sY=e=>e!=null&&typeof e=="object"&&!Array.isArray(e)?e:null,e7t=e=>({redirect_uris:[e],grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none",client_name:"Executor Local"}),epe=e=>cY.gen(function*(){let r={},i={get redirectUrl(){return e.redirectUrl},get clientMetadata(){return e7t(e.redirectUrl)},state:()=>e.state,clientInformation:()=>r.clientInformation,saveClientInformation:l=>{r.clientInformation=l},tokens:()=>{},saveTokens:()=>{},redirectToAuthorization:l=>{r.authorizationUrl=l},saveCodeVerifier:l=>{r.codeVerifier=l},codeVerifier:()=>{if(!r.codeVerifier)throw new Error("OAuth code verifier was not captured");return r.codeVerifier},saveDiscoveryState:l=>{r.discoveryState=l},discoveryState:()=>r.discoveryState};return(yield*cY.tryPromise({try:()=>Vw(i,{serverUrl:e.endpoint}),catch:YFt}))!=="REDIRECT"||!r.authorizationUrl||!r.codeVerifier?yield*MKe("index","OAuth flow did not produce an authorization redirect"):{authorizationUrl:r.authorizationUrl.toString(),codeVerifier:r.codeVerifier,resourceMetadataUrl:r.discoveryState?.resourceMetadataUrl??null,authorizationServerUrl:r.discoveryState?.authorizationServerUrl??null,resourceMetadata:sY(r.discoveryState?.resourceMetadata),authorizationServerMetadata:sY(r.discoveryState?.authorizationServerMetadata),clientInformation:sY(r.clientInformation)}}),jKe=e=>cY.gen(function*(){let r={discoveryState:{authorizationServerUrl:e.session.authorizationServerUrl??new URL("/",e.session.endpoint).toString(),resourceMetadataUrl:e.session.resourceMetadataUrl??void 0,resourceMetadata:e.session.resourceMetadata,authorizationServerMetadata:e.session.authorizationServerMetadata},clientInformation:e.session.clientInformation},i={get redirectUrl(){return e.session.redirectUrl},get clientMetadata(){return e7t(e.session.redirectUrl)},clientInformation:()=>r.clientInformation,saveClientInformation:l=>{r.clientInformation=l},tokens:()=>{},saveTokens:l=>{r.tokens=l},redirectToAuthorization:()=>{throw new Error("Unexpected redirect while completing MCP OAuth")},saveCodeVerifier:()=>{},codeVerifier:()=>e.session.codeVerifier,saveDiscoveryState:l=>{r.discoveryState=l},discoveryState:()=>r.discoveryState};return(yield*cY.tryPromise({try:()=>Vw(i,{serverUrl:e.session.endpoint,authorizationCode:e.code}),catch:YFt}))!=="AUTHORIZED"||!r.tokens?yield*MKe("index","OAuth redirect did not complete MCP OAuth setup"):{tokens:r.tokens,resourceMetadataUrl:r.discoveryState?.resourceMetadataUrl??null,authorizationServerUrl:r.discoveryState?.authorizationServerUrl??null,resourceMetadata:sY(r.discoveryState?.resourceMetadata),authorizationServerMetadata:sY(r.discoveryState?.authorizationServerMetadata),clientInformation:sY(r.clientInformation)}});import*as Wke from"effect/Either";import*as T5 from"effect/Effect";import*as _7t from"effect/Data";import*as zKe from"effect/Either";import*as Pp from"effect/Effect";import*as d7t from"effect/Cause";import*as f7t from"effect/Exit";import*as m7t from"effect/PartitionedSemaphore";import*as t7t from"effect/Either";import*as r7t from"effect/Option";import*as n7t from"effect/ParseResult";import*as Ih from"effect/Schema";var i7t=Ih.Record({key:Ih.String,value:Ih.Unknown}),bUr=Ih.decodeUnknownOption(i7t),o7t=e=>{let r=bUr(e);return r7t.isSome(r)?r.value:{}},xUr=Ih.Struct({mode:Ih.optional(Ih.Union(Ih.Literal("form"),Ih.Literal("url"))),message:Ih.optional(Ih.String),requestedSchema:Ih.optional(i7t),url:Ih.optional(Ih.String),elicitationId:Ih.optional(Ih.String),id:Ih.optional(Ih.String)}),TUr=Ih.decodeUnknownEither(xUr),a7t=e=>{let r=TUr(e);if(t7t.isLeft(r))throw new Error(`Invalid MCP elicitation request params: ${n7t.TreeFormatter.formatErrorSync(r.left)}`);let i=r.right,s=i.message??"";return i.mode==="url"?{mode:"url",message:s,url:i.url??"",elicitationId:i.elicitationId??i.id??""}:{mode:"form",message:s,requestedSchema:i.requestedSchema??{}}},s7t=e=>e.action==="accept"?{action:"accept",...e.content?{content:e.content}:{}}:{action:e.action},c7t=e=>typeof e.setRequestHandler=="function",BKe=e=>e.elicitation.mode==="url"&&e.elicitation.elicitationId.length>0?e.elicitation.elicitationId:[e.invocation?.runId,e.invocation?.callId,e.path,"mcp",typeof e.sequence=="number"?String(e.sequence):void 0].filter(i=>typeof i=="string"&&i.length>0).join(":"),$Ke=e=>e instanceof gue&&Array.isArray(e.elicitations)&&e.elicitations.length>0;import*as l7t from"effect/Option";import*as ku from"effect/Schema";var EUr=e=>{let r=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"");return r.length>0?r:"tool"},kUr=(e,r)=>{let i=EUr(e),s=(r.get(i)??0)+1;return r.set(i,s),s===1?i:`${i}_${s}`},b5=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{},qke=e=>{let r=b5(e);return Object.keys(r).length>0?r:null},HN=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),x5=e=>typeof e=="string"&&e.trim().length>0?e.trim():null,Nj=e=>typeof e=="boolean"?e:null,u7t=e=>Array.isArray(e)?e:null,CUr=ku.Struct({title:ku.optional(ku.NullOr(ku.String)),readOnlyHint:ku.optional(ku.Boolean),destructiveHint:ku.optional(ku.Boolean),idempotentHint:ku.optional(ku.Boolean),openWorldHint:ku.optional(ku.Boolean)}),DUr=ku.Struct({taskSupport:ku.optional(ku.Literal("forbidden","optional","required"))}),AUr=ku.Struct({name:ku.String,title:ku.optional(ku.NullOr(ku.String)),description:ku.optional(ku.NullOr(ku.String)),inputSchema:ku.optional(ku.Unknown),parameters:ku.optional(ku.Unknown),outputSchema:ku.optional(ku.Unknown),annotations:ku.optional(CUr),execution:ku.optional(DUr),icons:ku.optional(ku.Unknown),_meta:ku.optional(ku.Unknown)}),wUr=ku.Struct({tools:ku.Array(AUr),nextCursor:ku.optional(ku.NullOr(ku.String)),_meta:ku.optional(ku.Unknown)}),IUr=ku.decodeUnknownOption(wUr),PUr=e=>{let r=IUr(e);return l7t.isNone(r)?[]:r.value.tools},NUr=e=>{let r=qke(e);if(r===null)return null;let i={title:x5(r.title),readOnlyHint:Nj(r.readOnlyHint),destructiveHint:Nj(r.destructiveHint),idempotentHint:Nj(r.idempotentHint),openWorldHint:Nj(r.openWorldHint)};return Object.values(i).some(s=>s!==null)?i:null},OUr=e=>{let r=qke(e);if(r===null)return null;let i=r.taskSupport;return i!=="forbidden"&&i!=="optional"&&i!=="required"?null:{taskSupport:i}},FUr=e=>{let r=qke(e),i=r?x5(r.name):null,s=r?x5(r.version):null;return i===null||s===null?null:{name:i,version:s,title:x5(r?.title),description:x5(r?.description),websiteUrl:x5(r?.websiteUrl),icons:u7t(r?.icons)}},RUr=e=>{let r=qke(e);if(r===null)return null;let i=b5(r.prompts),s=b5(r.resources),l=b5(r.tools),d=b5(r.tasks),h=b5(d.requests),S=b5(h.tools);return{experimental:HN(r,"experimental")?b5(r.experimental):null,logging:HN(r,"logging"),completions:HN(r,"completions"),prompts:HN(r,"prompts")?{listChanged:Nj(i.listChanged)??!1}:null,resources:HN(r,"resources")?{subscribe:Nj(s.subscribe)??!1,listChanged:Nj(s.listChanged)??!1}:null,tools:HN(r,"tools")?{listChanged:Nj(l.listChanged)??!1}:null,tasks:HN(r,"tasks")?{list:HN(d,"list"),cancel:HN(d,"cancel"),toolCall:HN(S,"call")}:null}},LUr=e=>{let r=FUr(e?.serverInfo),i=RUr(e?.serverCapabilities),s=x5(e?.instructions),l=e?.serverInfo??null,d=e?.serverCapabilities??null;return r===null&&i===null&&s===null&&l===null&&d===null?null:{info:r,capabilities:i,instructions:s,rawInfo:l,rawCapabilities:d}},UKe=(e,r)=>{let i=new Map,s=b5(e),l=Array.isArray(s.tools)?s.tools:[],d=PUr(e).map((h,S)=>{let b=h.name.trim();if(b.length===0)return null;let A=x5(h.title),L=NUr(h.annotations),V=A??L?.title??b;return{toolId:kUr(b,i),toolName:b,title:A,displayTitle:V,description:h.description??null,annotations:L,execution:OUr(h.execution),icons:u7t(h.icons),meta:h._meta??null,rawTool:l[S]??null,inputSchema:h.inputSchema??h.parameters,outputSchema:h.outputSchema}}).filter(h=>h!==null);return{version:2,server:LUr(r),listTools:{nextCursor:x5(s.nextCursor),meta:s._meta??null,rawResult:e},tools:d}},p7t=(e,r)=>!e||e.trim().length===0?r:`${e}.${r}`;var Gw=class extends _7t.TaggedError("McpToolsError"){},MUr="__EXECUTION_SUSPENDED__",jUr=e=>{if(e instanceof Error)return`${e.message} +${e.stack??""}`;if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}},Jke=e=>jUr(e).includes(MUr),HJ=e=>e instanceof Error?e.message:String(e),BUr=e=>{if(e==null)return V7;try{return _le(e,{vendor:"mcp",fallback:V7})}catch{return V7}},$Ur=e=>Pp.tryPromise({try:()=>e.close?.()??Promise.resolve(),catch:r=>r instanceof Error?r:new Error(String(r??"mcp connection close failed"))}).pipe(Pp.asVoid,Pp.catchAll(()=>Pp.void)),h7t=e=>Pp.acquireUseRelease(e.connect.pipe(Pp.mapError(e.onConnectError)),e.run,$Ur),UUr=m7t.makeUnsafe({permits:1}),g7t=(e,r)=>UUr.withPermits(e,1)(r),y7t=e=>e.onElicitation({interactionId:e.interactionId,path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.executionContext?.metadata,context:e.executionContext?.invocation,elicitation:e.elicitation}).pipe(Pp.mapError(r=>Jke(r)?r:new Gw({stage:"call_tool",message:`Failed resolving elicitation for ${e.toolName}`,details:HJ(r)}))),v7t=e=>{let r=e.client;return c7t(r)?Pp.try({try:()=>{let i=0;r.setRequestHandler(Cue,s=>(i+=1,Pp.runPromise(Pp.try({try:()=>a7t(s.params),catch:l=>new Gw({stage:"call_tool",message:`Failed parsing MCP elicitation for ${e.toolName}`,details:HJ(l)})}).pipe(Pp.flatMap(l=>y7t({toolName:e.toolName,onElicitation:e.onElicitation,interactionId:BKe({path:e.path,invocation:e.executionContext?.invocation,elicitation:l,sequence:i}),path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext,elicitation:l})),Pp.map(s7t),Pp.catchAll(l=>Jke(l)?Pp.fail(l):(console.error(`[mcp-tools] elicitation failed for ${e.toolName}, treating as cancel:`,l instanceof Error?l.message:String(l)),Pp.succeed({action:"cancel"})))))))},catch:i=>i instanceof Gw?i:new Gw({stage:"call_tool",message:`Failed installing elicitation handler for ${e.toolName}`,details:HJ(i)})}):Pp.succeed(void 0)},S7t=e=>Pp.forEach(e.cause.elicitations,r=>y7t({toolName:e.toolName,onElicitation:e.onElicitation,interactionId:BKe({path:e.path,invocation:e.executionContext?.invocation,elicitation:r}),path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext,elicitation:r}).pipe(Pp.flatMap(i=>i.action==="accept"?Pp.succeed(void 0):Pp.fail(new Gw({stage:"call_tool",message:`URL elicitation was not accepted for ${e.toolName}`,details:i.action})))),{discard:!0}),zUr=e=>Pp.tryPromise({try:()=>e.client.callTool({name:e.toolName,arguments:e.args}),catch:r=>r}),qUr=e=>e?{path:e.path,sourceKey:e.sourceKey,metadata:e.metadata,invocation:e.invocation,onElicitation:e.onElicitation}:void 0,JUr=e=>Pp.gen(function*(){let r=qUr(e.mcpDiscoveryElicitation);e.mcpDiscoveryElicitation&&(yield*v7t({client:e.connection.client,toolName:"tools/list",onElicitation:e.mcpDiscoveryElicitation.onElicitation,path:e.mcpDiscoveryElicitation.path,sourceKey:e.mcpDiscoveryElicitation.sourceKey,args:e.mcpDiscoveryElicitation.args,executionContext:r}));let i=0;for(;;){let s=yield*Pp.either(Pp.tryPromise({try:()=>e.connection.client.listTools(),catch:l=>l}));if(zKe.isRight(s))return s.right;if(Jke(s.left))return yield*s.left;if(e.mcpDiscoveryElicitation&&$Ke(s.left)&&i<2){yield*S7t({cause:s.left,toolName:"tools/list",onElicitation:e.mcpDiscoveryElicitation.onElicitation,path:e.mcpDiscoveryElicitation.path,sourceKey:e.mcpDiscoveryElicitation.sourceKey,args:e.mcpDiscoveryElicitation.args,executionContext:r}),i+=1;continue}return yield*new Gw({stage:"list_tools",message:"Failed listing MCP tools",details:HJ(s.left)})}}),VUr=e=>Pp.gen(function*(){let r=e.executionContext?.onElicitation;r&&(yield*v7t({client:e.connection.client,toolName:e.toolName,onElicitation:r,path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext}));let i=0;for(;;){let s=yield*Pp.either(zUr({client:e.connection.client,toolName:e.toolName,args:e.args}));if(zKe.isRight(s))return s.right;if(Jke(s.left))return yield*s.left;if(r&&$Ke(s.left)&&i<2){yield*S7t({cause:s.left,toolName:e.toolName,onElicitation:r,path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext}),i+=1;continue}return yield*new Gw({stage:"call_tool",message:`Failed invoking MCP tool: ${e.toolName}`,details:HJ(s.left)})}});var Vke=e=>{let r=e.sourceKey??"mcp.generated";return Object.fromEntries(e.manifest.tools.map(i=>{let s=p7t(e.namespace,i.toolId);return[s,Bw({tool:{description:i.description??`MCP tool: ${i.toolName}`,inputSchema:BUr(i.inputSchema),execute:async(l,d)=>{let h=await Pp.runPromiseExit(h7t({connect:e.connect,onConnectError:S=>new Gw({stage:"connect",message:`Failed connecting to MCP server for ${i.toolName}`,details:HJ(S)}),run:S=>{let b=o7t(l),A=VUr({connection:S,toolName:i.toolName,path:s,sourceKey:r,args:b,executionContext:d});return d?.onElicitation?g7t(S.client,A):A}}));if(f7t.isSuccess(h))return h.value;throw d7t.squash(h.cause)}},metadata:{sourceKey:r,contract:{...i.inputSchema!==void 0?{inputSchema:i.inputSchema}:{},...i.outputSchema!==void 0?{outputSchema:i.outputSchema}:{}}}})]}))},KJ=e=>Pp.gen(function*(){let r=yield*h7t({connect:e.connect,onConnectError:s=>new Gw({stage:"connect",message:"Failed connecting to MCP server",details:HJ(s)}),run:s=>{let l=JUr({connection:s,mcpDiscoveryElicitation:e.mcpDiscoveryElicitation}),d=e.mcpDiscoveryElicitation?g7t(s.client,l):l;return Pp.map(d,h=>({listed:h,serverInfo:s.client.getServerVersion?.(),serverCapabilities:s.client.getServerCapabilities?.(),instructions:s.client.getInstructions?.()}))}}),i=UKe(r.listed,{serverInfo:r.serverInfo,serverCapabilities:r.serverCapabilities,instructions:r.instructions});return{manifest:i,tools:Vke({manifest:i,connect:e.connect,namespace:e.namespace,sourceKey:e.sourceKey})}});var qKe=e=>T5.gen(function*(){let r=bj({endpoint:e.normalizedUrl,headers:e.headers,transport:"auto"}),i=yield*T5.either(KJ({connect:r,sourceKey:"discovery",namespace:vT($N(e.normalizedUrl))}));if(Wke.isRight(i)){let d=$N(e.normalizedUrl);return{detectedKind:"mcp",confidence:"high",endpoint:e.normalizedUrl,specUrl:null,name:d,namespace:vT(d),transport:"auto",authInference:UN("MCP tool discovery succeeded without an advertised auth requirement","medium"),toolCount:i.right.manifest.tools.length,warnings:[]}}let s=yield*T5.either(epe({endpoint:e.normalizedUrl,redirectUrl:"http://127.0.0.1/executor/discovery/oauth/callback",state:"source-discovery"}));if(Wke.isLeft(s))return null;let l=$N(e.normalizedUrl);return{detectedKind:"mcp",confidence:"high",endpoint:e.normalizedUrl,specUrl:null,name:l,namespace:vT(l),transport:"auto",authInference:I6("oauth2",{confidence:"high",reason:"MCP endpoint advertised OAuth during discovery",headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:s.right.authorizationUrl,oauthTokenUrl:s.right.authorizationServerUrl,oauthScopes:[]}),toolCount:null,warnings:["OAuth is required before MCP tools can be listed."]}}).pipe(T5.catchAll(()=>T5.succeed(null)));import*as k1 from"effect/Schema";var JKe=k1.Struct({transport:k1.optional(k1.NullOr(bD)),queryParams:k1.optional(k1.NullOr(M_)),headers:k1.optional(k1.NullOr(M_)),command:k1.optional(k1.NullOr(k1.String)),args:k1.optional(k1.NullOr(g5)),env:k1.optional(k1.NullOr(M_)),cwd:k1.optional(k1.NullOr(k1.String))});var WUr=e=>e?.taskSupport==="optional"||e?.taskSupport==="required",GUr=e=>{let r=e.effect==="read";return{effect:e.effect,safe:r,idempotent:r||e.annotations?.idempotentHint===!0,destructive:r?!1:e.annotations?.destructiveHint!==!1}},HUr=e=>{let r=d5(e.source,e.operation.providerData.toolId),i=vD.make(`cap_${Td({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),s=pk.make(`exec_${Td({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"mcp"})}`),l=e.operation.outputSchema!==void 0?e.importer.importSchema(e.operation.outputSchema,`#/mcp/${e.operation.providerData.toolId}/output`):void 0,d=e.operation.inputSchema===void 0?e.importer.importSchema({type:"object",properties:{},additionalProperties:!1},`#/mcp/${e.operation.providerData.toolId}/call`):gKe(e.operation.inputSchema)?e.importer.importSchema(e.operation.inputSchema,`#/mcp/${e.operation.providerData.toolId}/call`,e.operation.inputSchema):e.importer.importSchema(tY({type:"object",properties:{input:e.operation.inputSchema},required:["input"],additionalProperties:!1},e.operation.inputSchema),`#/mcp/${e.operation.providerData.toolId}/call`),h=e.importer.importSchema({type:"null"},`#/mcp/${e.operation.providerData.toolId}/status`),S=SD.make(`response_${Td({capabilityId:i})}`);x_(e.catalog.symbols)[S]={id:S,kind:"response",...Gd({description:e.operation.providerData.description??e.operation.description})?{docs:Gd({description:e.operation.providerData.description??e.operation.description})}:{},...l?{contents:[{mediaType:"application/json",shapeId:l}]}:{},synthetic:!1,provenance:ld(e.documentId,`#/mcp/${e.operation.providerData.toolId}/response`)};let b=m5({catalog:e.catalog,responseId:S,provenance:ld(e.documentId,`#/mcp/${e.operation.providerData.toolId}/responseSet`)});x_(e.catalog.executables)[s]={id:s,capabilityId:i,scopeId:e.serviceScopeId,adapterKey:"mcp",bindingVersion:rx,binding:e.operation.providerData,projection:{responseSetId:b,callShapeId:d,...l?{resultDataShapeId:l}:{},resultStatusShapeId:h},display:{protocol:"mcp",method:null,pathTemplate:null,operationId:e.operation.providerData.toolName,group:null,leaf:e.operation.providerData.toolName,rawToolId:e.operation.providerData.toolId,title:e.operation.providerData.displayTitle,summary:e.operation.providerData.description??e.operation.description??null},synthetic:!1,provenance:ld(e.documentId,`#/mcp/${e.operation.providerData.toolId}/executable`)};let A=f5(e.operation.effect);x_(e.catalog.capabilities)[i]={id:i,serviceScopeId:e.serviceScopeId,surface:{toolPath:r,title:e.operation.providerData.displayTitle,...e.operation.providerData.description?{summary:e.operation.providerData.description}:{}},semantics:GUr({effect:e.operation.effect,annotations:e.operation.providerData.annotations}),auth:{kind:"none"},interaction:{...A,resume:{supported:WUr(e.operation.providerData.execution)}},executableIds:[s],synthetic:!1,provenance:ld(e.documentId,`#/mcp/${e.operation.providerData.toolId}/capability`)}},b7t=e=>h5({source:e.source,documents:e.documents,registerOperations:({catalog:r,documentId:i,serviceScopeId:s,importer:l})=>{for(let d of e.operations)HUr({catalog:r,source:e.source,documentId:i,serviceScopeId:s,operation:d,importer:l})}});import*as C1 from"effect/Effect";import*as Al from"effect/Schema";var x7t=e=>pD({headers:{...e.headers,...e.authHeaders},cookies:e.authCookies}),VKe=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},KUr=e=>e,QUr=e=>{let r=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"");return r.length>0?r:"source"},T7t=(e,r)=>og("mcp/adapter",r===void 0?e:`${e}: ${r instanceof Error?r.message:String(r)}`),ZUr=Al.optional(Al.NullOr(g5)),XUr=Al.extend(RKe,Al.Struct({kind:Al.Literal("mcp"),endpoint:sy,name:sy,namespace:sy})),YUr=Al.extend(RKe,Al.Struct({kind:Al.optional(Al.Literal("mcp")),endpoint:sy,name:sy,namespace:sy})),E7t=Al.Struct({transport:Al.NullOr(bD),queryParams:Al.NullOr(M_),headers:Al.NullOr(M_),command:Al.NullOr(Al.String),args:Al.NullOr(g5),env:Al.NullOr(M_),cwd:Al.NullOr(Al.String)}),ezr=Al.Struct({transport:Al.optional(Al.NullOr(bD)),queryParams:Al.optional(Al.NullOr(M_)),headers:Al.optional(Al.NullOr(M_)),command:Al.optional(Al.NullOr(Al.String)),args:ZUr,env:Al.optional(Al.NullOr(M_)),cwd:Al.optional(Al.NullOr(Al.String))}),tzr=Al.Struct({toolId:Al.String,toolName:Al.String,displayTitle:Al.String,title:Al.NullOr(Al.String),description:Al.NullOr(Al.String),annotations:Al.NullOr(Al.Unknown),execution:Al.NullOr(Al.Unknown),icons:Al.NullOr(Al.Unknown),meta:Al.NullOr(Al.Unknown),rawTool:Al.NullOr(Al.Unknown),server:Al.NullOr(Al.Unknown)}),tpe=1,k7t=(e,r)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&r.some(i=>Object.prototype.hasOwnProperty.call(e,i)),WKe=e=>{if(e==null)return null;let r=e.trim();return r.length>0?r:null},rzr=e=>{if(!e||e.length===0)return null;let r=e.map(i=>i.trim()).filter(i=>i.length>0);return r.length>0?r:null},nzr=e=>C1.gen(function*(){let r=WKe(e.command);return JJ({transport:e.transport??void 0,command:r??void 0})?r===null?yield*og("mcp/adapter","MCP stdio transport requires a command"):e.queryParams&&Object.keys(e.queryParams).length>0?yield*og("mcp/adapter","MCP stdio transport does not support query params"):e.headers&&Object.keys(e.headers).length>0?yield*og("mcp/adapter","MCP stdio transport does not support request headers"):{transport:"stdio",queryParams:null,headers:null,command:r,args:rzr(e.args),env:e.env??null,cwd:WKe(e.cwd)}:r!==null||e.args||e.env||WKe(e.cwd)!==null?yield*og("mcp/adapter",'MCP process settings require transport: "stdio"'):{transport:e.transport??null,queryParams:e.queryParams??null,headers:e.headers??null,command:null,args:null,env:null,cwd:null}}),QJ=e=>C1.gen(function*(){if(k7t(e.binding,["specUrl"]))return yield*og("mcp/adapter","MCP sources cannot define specUrl");if(k7t(e.binding,["defaultHeaders"]))return yield*og("mcp/adapter","MCP sources cannot define HTTP source settings");let r=yield*GN({sourceId:e.id,label:"MCP",version:e.bindingVersion,expectedVersion:tpe,schema:ezr,value:e.binding,allowedKeys:["transport","queryParams","headers","command","args","env","cwd"]});return yield*nzr(r)}),izr=e=>e.annotations?.readOnlyHint===!0?"read":"write",ozr=e=>({toolId:e.entry.toolId,title:e.entry.displayTitle??e.entry.title??e.entry.toolName,description:e.entry.description??null,effect:izr(e.entry),inputSchema:e.entry.inputSchema,outputSchema:e.entry.outputSchema,providerData:{toolId:e.entry.toolId,toolName:e.entry.toolName,displayTitle:e.entry.displayTitle??e.entry.title??e.entry.toolName,title:e.entry.title??null,description:e.entry.description??null,annotations:e.entry.annotations??null,execution:e.entry.execution??null,icons:e.entry.icons??null,meta:e.entry.meta??null,rawTool:e.entry.rawTool??null,server:e.server??null}}),GKe=e=>{let r=Date.now(),i=JSON.stringify(e.manifest),s=Xue(i);return qN({fragment:b7t({source:e.source,documents:[{documentKind:"mcp_manifest",documentKey:e.endpoint,contentText:i,fetchedAt:r}],operations:e.manifest.tools.map(l=>ozr({entry:l,server:e.manifest.server}))}),importMetadata:R2({source:e.source,adapterKey:"mcp"}),sourceHash:s})},C7t={key:"mcp",displayName:"MCP",catalogKind:"imported",connectStrategy:"interactive",credentialStrategy:"adapter_defined",bindingConfigVersion:tpe,providerKey:"generic_mcp",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:XUr,executorAddInputSchema:YUr,executorAddHelpText:['Omit kind or set kind: "mcp". For remote servers, provide endpoint plus optional transport/queryParams/headers.','For local servers, set transport: "stdio" and provide command plus optional args/env/cwd.'],executorAddInputSignatureWidth:240,localConfigBindingSchema:JKe,localConfigBindingFromSource:e=>C1.runSync(C1.map(QJ(e),r=>({transport:r.transport,queryParams:r.queryParams,headers:r.headers,command:r.command,args:r.args,env:r.env,cwd:r.cwd}))),serializeBindingConfig:e=>VN({adapterKey:"mcp",version:tpe,payloadSchema:E7t,payload:C1.runSync(QJ(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:r})=>C1.map(WN({sourceId:e,label:"MCP",adapterKey:"mcp",version:tpe,payloadSchema:E7t,value:r}),({version:i,payload:s})=>({version:i,payload:s})),bindingStateFromSource:e=>C1.map(QJ(e),r=>({...JN,transport:r.transport,queryParams:r.queryParams,headers:r.headers,command:r.command,args:r.args,env:r.env,cwd:r.cwd})),sourceConfigFromSource:e=>C1.runSync(C1.map(QJ(e),r=>({kind:"mcp",endpoint:e.endpoint,transport:r.transport,queryParams:r.queryParams,headers:r.headers,command:r.command,args:r.args,env:r.env,cwd:r.cwd}))),validateSource:e=>C1.gen(function*(){let r=yield*QJ(e);return{...e,bindingVersion:tpe,binding:{transport:r.transport,queryParams:r.queryParams,headers:r.headers,command:r.command,args:r.args,env:r.env,cwd:r.cwd}}}),shouldAutoProbe:()=>!1,discoveryPriority:({normalizedUrl:e})=>Cj(e)?350:125,detectSource:({normalizedUrl:e,headers:r})=>qKe({normalizedUrl:e,headers:r}),syncCatalog:({source:e,resolveAuthMaterialForSlot:r})=>C1.gen(function*(){let i=yield*QJ(e),s=yield*r("import"),l=bj({endpoint:e.endpoint,transport:i.transport??void 0,queryParams:{...i.queryParams,...s.queryParams},headers:x7t({headers:i.headers??{},authHeaders:s.headers,authCookies:s.cookies}),authProvider:s.authProvider,command:i.command??void 0,args:i.args??void 0,env:i.env??void 0,cwd:i.cwd??void 0}),d=yield*KJ({connect:l,namespace:e.namespace??QUr(e.name),sourceKey:e.id}).pipe(C1.mapError(h=>new Error(`Failed discovering MCP tools for ${e.id}: ${h.message}${h.details?` (${h.details})`:""}`)));return GKe({source:e,endpoint:e.endpoint,manifest:d.manifest})}),invoke:e=>C1.gen(function*(){if(e.executable.adapterKey!=="mcp")return yield*og("mcp/adapter",`Expected MCP executable binding, got ${e.executable.adapterKey}`);let r=yield*C1.try({try:()=>Pj({executableId:e.executable.id,label:"MCP",version:e.executable.bindingVersion,expectedVersion:rx,schema:tzr,value:e.executable.binding}),catch:ie=>T7t("Failed decoding MCP executable binding",ie)}),i=yield*QJ(e.source),s=CJe({connect:bj({endpoint:e.source.endpoint,transport:i.transport??void 0,queryParams:{...i.queryParams,...e.auth.queryParams},headers:x7t({headers:i.headers??{},authHeaders:e.auth.headers,authCookies:e.auth.cookies}),authProvider:e.auth.authProvider,command:i.command??void 0,args:i.args??void 0,env:i.env??void 0,cwd:i.cwd??void 0}),runId:typeof e.context?.runId=="string"&&e.context.runId.length>0?e.context.runId:void 0,sourceKey:e.source.id}),d=Vke({manifest:{version:2,tools:[{toolId:r.toolName,toolName:r.toolName,displayTitle:e.capability.surface.title??e.executable.display?.title??r.toolName,title:e.capability.surface.title??e.executable.display?.title??null,description:e.capability.surface.summary??e.capability.surface.description??e.executable.display?.summary??`MCP tool: ${r.toolName}`,annotations:null,execution:null,icons:null,meta:null,rawTool:null,inputSchema:e.descriptor.contract?.inputSchema,outputSchema:e.descriptor.contract?.outputSchema}]},connect:s,sourceKey:e.source.id})[r.toolName],h=d&&typeof d=="object"&&d!==null&&"tool"in d?d.tool:d;if(!h)return yield*og("mcp/adapter",`Missing MCP tool definition for ${r.toolName}`);let S=e.executable.projection.callShapeId?e.catalog.symbols[e.executable.projection.callShapeId]:void 0,b=S?.kind==="shape"&&S.node.type!=="object"?VKe(e.args).input:e.args,A=e.onElicitation?{path:KUr(e.descriptor.path),sourceKey:e.source.id,metadata:{sourceKey:e.source.id,interaction:e.descriptor.interaction,contract:{...e.descriptor.contract?.inputSchema!==void 0?{inputSchema:e.descriptor.contract.inputSchema}:{},...e.descriptor.contract?.outputSchema!==void 0?{outputSchema:e.descriptor.contract.outputSchema}:{}},providerKind:e.descriptor.providerKind,providerData:e.descriptor.providerData},invocation:e.context,onElicitation:e.onElicitation}:void 0,L=yield*C1.tryPromise({try:async()=>await h.execute(VKe(b),A),catch:ie=>T7t(`Failed invoking MCP tool ${r.toolName}`,ie)}),j=VKe(L).isError===!0;return{data:j?null:L??null,error:j?L:null,headers:{},status:null}})};import*as wy from"effect/Effect";import*as Fh from"effect/Layer";import*as BYt from"effect/ManagedRuntime";import*as d5t from"effect/Context";import*as k5 from"effect/Effect";import*as f5t from"effect/Layer";import*as m5t from"effect/Option";import*as D7t from"effect/Context";var dm=class extends D7t.Tag("#runtime/ExecutorStateStore")(){};import{Schema as azr}from"effect";var Qc=azr.Number;import{Schema as Ds}from"effect";import{Schema as jm}from"effect";var Ed=jm.String.pipe(jm.brand("ScopeId")),vf=jm.String.pipe(jm.brand("SourceId")),xD=jm.String.pipe(jm.brand("SourceCatalogId")),Oj=jm.String.pipe(jm.brand("SourceCatalogRevisionId")),Fj=jm.String.pipe(jm.brand("SourceAuthSessionId")),ZJ=jm.String.pipe(jm.brand("AuthArtifactId")),lY=jm.String.pipe(jm.brand("AuthLeaseId"));var Gke=jm.String.pipe(jm.brand("ScopedSourceOauthClientId")),Rj=jm.String.pipe(jm.brand("ScopeOauthClientId")),KN=jm.String.pipe(jm.brand("ProviderAuthGrantId")),QN=jm.String.pipe(jm.brand("SecretMaterialId")),uY=jm.String.pipe(jm.brand("PolicyId")),Hw=jm.String.pipe(jm.brand("ExecutionId")),L2=jm.String.pipe(jm.brand("ExecutionInteractionId")),Hke=jm.String.pipe(jm.brand("ExecutionStepId"));import{Schema as ma}from"effect";import*as Lj from"effect/Option";var s0=ma.Struct({providerId:ma.String,handle:ma.String}),rpe=ma.Literal("runtime","import"),A7t=rpe,w7t=ma.String,szr=ma.Array(ma.String),Kke=ma.Union(ma.Struct({kind:ma.Literal("literal"),value:ma.String}),ma.Struct({kind:ma.Literal("secret_ref"),ref:s0})),I7t=ma.Union(ma.Struct({location:ma.Literal("header"),name:ma.String,parts:ma.Array(Kke)}),ma.Struct({location:ma.Literal("query"),name:ma.String,parts:ma.Array(Kke)}),ma.Struct({location:ma.Literal("cookie"),name:ma.String,parts:ma.Array(Kke)}),ma.Struct({location:ma.Literal("body"),path:ma.String,parts:ma.Array(Kke)})),czr=ma.Union(ma.Struct({location:ma.Literal("header"),name:ma.String,value:ma.String}),ma.Struct({location:ma.Literal("query"),name:ma.String,value:ma.String}),ma.Struct({location:ma.Literal("cookie"),name:ma.String,value:ma.String}),ma.Struct({location:ma.Literal("body"),path:ma.String,value:ma.String})),Qke=ma.parseJson(ma.Array(I7t)),Mj="static_bearer",jj="static_oauth2",XJ="static_placements",Kw="oauth2_authorized_user",HKe="provider_grant_ref",KKe="mcp_oauth",pY=ma.Literal("none","client_secret_post"),lzr=ma.Literal(Mj,jj,XJ,Kw),uzr=ma.Struct({headerName:ma.String,prefix:ma.String,token:s0}),pzr=ma.Struct({headerName:ma.String,prefix:ma.String,accessToken:s0,refreshToken:ma.NullOr(s0)}),_zr=ma.Struct({placements:ma.Array(I7t)}),dzr=ma.Struct({headerName:ma.String,prefix:ma.String,tokenEndpoint:ma.String,clientId:ma.String,clientAuthentication:pY,clientSecret:ma.NullOr(s0),refreshToken:s0}),fzr=ma.Struct({grantId:KN,providerKey:ma.String,requiredScopes:ma.Array(ma.String),headerName:ma.String,prefix:ma.String}),mzr=ma.Struct({redirectUri:ma.String,accessToken:s0,refreshToken:ma.NullOr(s0),tokenType:ma.String,expiresIn:ma.NullOr(ma.Number),scope:ma.NullOr(ma.String),resourceMetadataUrl:ma.NullOr(ma.String),authorizationServerUrl:ma.NullOr(ma.String),resourceMetadataJson:ma.NullOr(ma.String),authorizationServerMetadataJson:ma.NullOr(ma.String),clientInformationJson:ma.NullOr(ma.String)}),QKe=ma.parseJson(uzr),ZKe=ma.parseJson(pzr),XKe=ma.parseJson(_zr),YKe=ma.parseJson(dzr),eQe=ma.parseJson(fzr),npe=ma.parseJson(mzr),Z$n=ma.parseJson(ma.Array(czr)),tQe=ma.parseJson(szr),hzr=ma.decodeUnknownOption(QKe),gzr=ma.decodeUnknownOption(ZKe),yzr=ma.decodeUnknownOption(XKe),vzr=ma.decodeUnknownOption(YKe),Szr=ma.decodeUnknownOption(eQe),bzr=ma.decodeUnknownOption(npe),xzr=ma.decodeUnknownOption(tQe),P7t=ma.Struct({id:ZJ,scopeId:Ed,sourceId:vf,actorScopeId:ma.NullOr(Ed),slot:rpe,artifactKind:w7t,configJson:ma.String,grantSetJson:ma.NullOr(ma.String),createdAt:Qc,updatedAt:Qc}),ZN=e=>{if(e.artifactKind!==HKe)return null;let r=Szr(e.configJson);return Lj.isSome(r)?r.value:null},_Y=e=>{if(e.artifactKind!==KKe)return null;let r=bzr(e.configJson);return Lj.isSome(r)?r.value:null},Bj=e=>{switch(e.artifactKind){case Mj:{let r=hzr(e.configJson);return Lj.isSome(r)?{artifactKind:Mj,config:r.value}:null}case jj:{let r=gzr(e.configJson);return Lj.isSome(r)?{artifactKind:jj,config:r.value}:null}case XJ:{let r=yzr(e.configJson);return Lj.isSome(r)?{artifactKind:XJ,config:r.value}:null}case Kw:{let r=vzr(e.configJson);return Lj.isSome(r)?{artifactKind:Kw,config:r.value}:null}default:return null}},Tzr=e=>{let r=e!==null&&typeof e=="object"?e.grantSetJson:e;if(r===null)return null;let i=xzr(r);return Lj.isSome(i)?i.value:null},N7t=Tzr,O7t=e=>{let r=Bj(e);if(r!==null)switch(r.artifactKind){case Mj:return[r.config.token];case jj:return r.config.refreshToken?[r.config.accessToken,r.config.refreshToken]:[r.config.accessToken];case XJ:return r.config.placements.flatMap(s=>s.parts.flatMap(l=>l.kind==="secret_ref"?[l.ref]:[]));case Kw:return r.config.clientSecret?[r.config.refreshToken,r.config.clientSecret]:[r.config.refreshToken]}let i=_Y(e);return i!==null?i.refreshToken?[i.accessToken,i.refreshToken]:[i.accessToken]:[]};import{Schema as js}from"effect";var F7t=js.String,R7t=js.Literal("pending","completed","failed","cancelled"),rQe=js.suspend(()=>js.Union(js.String,js.Number,js.Boolean,js.Null,js.Array(rQe),js.Record({key:js.String,value:rQe}))).annotations({identifier:"JsonValue"}),dY=js.Record({key:js.String,value:rQe}).annotations({identifier:"JsonObject"}),Ezr=js.Struct({kind:js.Literal("mcp_oauth"),endpoint:js.String,redirectUri:js.String,scope:js.NullOr(js.String),resourceMetadataUrl:js.NullOr(js.String),authorizationServerUrl:js.NullOr(js.String),resourceMetadata:js.NullOr(dY),authorizationServerMetadata:js.NullOr(dY),clientInformation:js.NullOr(dY),codeVerifier:js.NullOr(js.String),authorizationUrl:js.NullOr(js.String)}),nQe=js.parseJson(Ezr),kzr=js.Struct({kind:js.Literal("oauth2_pkce"),providerKey:js.String,authorizationEndpoint:js.String,tokenEndpoint:js.String,redirectUri:js.String,clientId:js.String,clientAuthentication:pY,clientSecret:js.NullOr(s0),scopes:js.Array(js.String),headerName:js.String,prefix:js.String,authorizationParams:js.Record({key:js.String,value:js.String}),codeVerifier:js.NullOr(js.String),authorizationUrl:js.NullOr(js.String)}),iQe=js.parseJson(kzr),Czr=js.Struct({sourceId:vf,requiredScopes:js.Array(js.String)}),Dzr=js.Struct({kind:js.Literal("provider_oauth_batch"),providerKey:js.String,authorizationEndpoint:js.String,tokenEndpoint:js.String,redirectUri:js.String,oauthClientId:Rj,clientAuthentication:pY,scopes:js.Array(js.String),headerName:js.String,prefix:js.String,authorizationParams:js.Record({key:js.String,value:js.String}),targetSources:js.Array(Czr),codeVerifier:js.NullOr(js.String),authorizationUrl:js.NullOr(js.String)}),oQe=js.parseJson(Dzr),L7t=js.Struct({id:Fj,scopeId:Ed,sourceId:vf,actorScopeId:js.NullOr(Ed),credentialSlot:A7t,executionId:js.NullOr(Hw),interactionId:js.NullOr(L2),providerKind:F7t,status:R7t,state:js.String,sessionDataJson:js.String,errorText:js.NullOr(js.String),completedAt:js.NullOr(Qc),createdAt:Qc,updatedAt:Qc});var Zke=Ds.String,fY=Ds.Literal("draft","probing","auth_required","connected","error"),aQe=Ds.Union(Ds.Struct({kind:Ds.Literal("none")}),Ds.Struct({kind:Ds.Literal("bearer"),headerName:Ds.String,prefix:Ds.String,token:s0}),Ds.Struct({kind:Ds.Literal("oauth2"),headerName:Ds.String,prefix:Ds.String,accessToken:s0,refreshToken:Ds.NullOr(s0)}),Ds.Struct({kind:Ds.Literal("oauth2_authorized_user"),headerName:Ds.String,prefix:Ds.String,tokenEndpoint:Ds.String,clientId:Ds.String,clientAuthentication:Ds.Literal("none","client_secret_post"),clientSecret:Ds.NullOr(s0),refreshToken:s0,grantSet:Ds.NullOr(Ds.Array(Ds.String))}),Ds.Struct({kind:Ds.Literal("provider_grant_ref"),grantId:KN,providerKey:Ds.String,requiredScopes:Ds.Array(Ds.String),headerName:Ds.String,prefix:Ds.String}),Ds.Struct({kind:Ds.Literal("mcp_oauth"),redirectUri:Ds.String,accessToken:s0,refreshToken:Ds.NullOr(s0),tokenType:Ds.String,expiresIn:Ds.NullOr(Ds.Number),scope:Ds.NullOr(Ds.String),resourceMetadataUrl:Ds.NullOr(Ds.String),authorizationServerUrl:Ds.NullOr(Ds.String),resourceMetadataJson:Ds.NullOr(Ds.String),authorizationServerMetadataJson:Ds.NullOr(Ds.String),clientInformationJson:Ds.NullOr(Ds.String)})),sQe=Ds.Number,Azr=Ds.Struct({version:sQe,payload:dY}),wzr=Ds.Struct({scopeId:Ed,sourceId:vf,catalogId:xD,catalogRevisionId:Oj,name:Ds.String,kind:Zke,endpoint:Ds.String,status:fY,enabled:Ds.Boolean,namespace:Ds.NullOr(Ds.String),importAuthPolicy:wj,bindingConfigJson:Ds.String,sourceHash:Ds.NullOr(Ds.String),lastError:Ds.NullOr(Ds.String),createdAt:Qc,updatedAt:Qc}),_Un=Ds.transform(wzr,Ds.Struct({id:vf,scopeId:Ed,catalogId:xD,catalogRevisionId:Oj,name:Ds.String,kind:Zke,endpoint:Ds.String,status:fY,enabled:Ds.Boolean,namespace:Ds.NullOr(Ds.String),importAuthPolicy:wj,bindingConfigJson:Ds.String,sourceHash:Ds.NullOr(Ds.String),lastError:Ds.NullOr(Ds.String),createdAt:Qc,updatedAt:Qc}),{strict:!1,decode:e=>({id:e.sourceId,scopeId:e.scopeId,catalogId:e.catalogId,catalogRevisionId:e.catalogRevisionId,name:e.name,kind:e.kind,endpoint:e.endpoint,status:e.status,enabled:e.enabled,namespace:e.namespace,importAuthPolicy:e.importAuthPolicy,bindingConfigJson:e.bindingConfigJson,sourceHash:e.sourceHash,lastError:e.lastError,createdAt:e.createdAt,updatedAt:e.updatedAt}),encode:e=>({scopeId:e.scopeId,sourceId:e.id,catalogId:e.catalogId,catalogRevisionId:e.catalogRevisionId,name:e.name,kind:e.kind,endpoint:e.endpoint,status:e.status,enabled:e.enabled,namespace:e.namespace,importAuthPolicy:e.importAuthPolicy,bindingConfigJson:e.bindingConfigJson,sourceHash:e.sourceHash,lastError:e.lastError,createdAt:e.createdAt,updatedAt:e.updatedAt})}),XN=Ds.Struct({id:vf,scopeId:Ed,name:Ds.String,kind:Zke,endpoint:Ds.String,status:fY,enabled:Ds.Boolean,namespace:Ds.NullOr(Ds.String),bindingVersion:sQe,binding:dY,importAuthPolicy:wj,importAuth:aQe,auth:aQe,sourceHash:Ds.NullOr(Ds.String),lastError:Ds.NullOr(Ds.String),createdAt:Qc,updatedAt:Qc});import{Schema as nx}from"effect";var M7t=nx.Literal("imported","internal"),j7t=nx.String,B7t=nx.Literal("private","scope","organization","public"),yUn=nx.Struct({id:xD,kind:M7t,adapterKey:j7t,providerKey:nx.String,name:nx.String,summary:nx.NullOr(nx.String),visibility:B7t,latestRevisionId:Oj,createdAt:Qc,updatedAt:Qc}),ipe=nx.Struct({id:Oj,catalogId:xD,revisionNumber:nx.Number,sourceConfigJson:nx.String,importMetadataJson:nx.NullOr(nx.String),importMetadataHash:nx.NullOr(nx.String),snapshotHash:nx.NullOr(nx.String),createdAt:Qc,updatedAt:Qc});import{Schema as $j}from"effect";var $7t=$j.Literal("allow","deny"),U7t=$j.Literal("auto","required"),Izr=$j.Struct({id:uY,key:$j.String,scopeId:Ed,resourcePattern:$j.String,effect:$7t,approvalMode:U7t,priority:$j.Number,enabled:$j.Boolean,createdAt:Qc,updatedAt:Qc});var kUn=$j.partial(Izr);import{Schema as mY}from"effect";import*as z7t from"effect/Option";var q7t=mY.Struct({id:lY,authArtifactId:ZJ,scopeId:Ed,sourceId:vf,actorScopeId:mY.NullOr(Ed),slot:rpe,placementsTemplateJson:mY.String,expiresAt:mY.NullOr(Qc),refreshAfter:mY.NullOr(Qc),createdAt:Qc,updatedAt:Qc}),Pzr=mY.decodeUnknownOption(Qke),Nzr=e=>{let r=Pzr(e.placementsTemplateJson);return z7t.isSome(r)?r.value:null},cQe=e=>(Nzr(e)??[]).flatMap(r=>r.parts.flatMap(i=>i.kind==="secret_ref"?[i.ref]:[]));import{Schema as Qw}from"effect";var Ozr=Qw.Struct({redirectMode:Qw.optional($ke)}),lQe=Qw.parseJson(Ozr),J7t=Qw.Struct({id:Gke,scopeId:Ed,sourceId:vf,providerKey:Qw.String,clientId:Qw.String,clientSecretProviderId:Qw.NullOr(Qw.String),clientSecretHandle:Qw.NullOr(Qw.String),clientMetadataJson:Qw.NullOr(Qw.String),createdAt:Qc,updatedAt:Qc});import{Schema as F6}from"effect";var V7t=F6.Struct({id:Rj,scopeId:Ed,providerKey:F6.String,label:F6.NullOr(F6.String),clientId:F6.String,clientSecretProviderId:F6.NullOr(F6.String),clientSecretHandle:F6.NullOr(F6.String),clientMetadataJson:F6.NullOr(F6.String),createdAt:Qc,updatedAt:Qc});import{Schema as YN}from"effect";var W7t=YN.Struct({id:KN,scopeId:Ed,actorScopeId:YN.NullOr(Ed),providerKey:YN.String,oauthClientId:Rj,tokenEndpoint:YN.String,clientAuthentication:pY,headerName:YN.String,prefix:YN.String,refreshToken:s0,grantedScopes:YN.Array(YN.String),lastRefreshedAt:YN.NullOr(Qc),orphanedAt:YN.NullOr(Qc),createdAt:Qc,updatedAt:Qc});import{Schema as Uj}from"effect";var Fzr=Uj.Literal("auth_material","oauth_access_token","oauth_refresh_token","oauth_client_info"),G7t=Uj.Struct({id:QN,name:Uj.NullOr(Uj.String),purpose:Fzr,providerId:Uj.String,handle:Uj.String,value:Uj.NullOr(Uj.String),createdAt:Qc,updatedAt:Qc});import*as hY from"effect/Schema";var Rzr=hY.Struct({scopeId:Ed,actorScopeId:Ed,resolutionScopeIds:hY.Array(Ed)});var szn=hY.partial(Rzr);import{Schema as Vo}from"effect";var Lzr=Vo.Literal("quickjs","ses","deno"),Mzr=Vo.Literal("env","file","exec","params"),jzr=Vo.Struct({source:Vo.Literal("env")}),Bzr=Vo.Literal("singleValue","json"),$zr=Vo.Struct({source:Vo.Literal("file"),path:Vo.String,mode:Vo.optional(Bzr)}),Uzr=Vo.Struct({source:Vo.Literal("exec"),command:Vo.String,args:Vo.optional(Vo.Array(Vo.String)),env:Vo.optional(Vo.Record({key:Vo.String,value:Vo.String})),allowSymlinkCommand:Vo.optional(Vo.Boolean),trustedDirs:Vo.optional(Vo.Array(Vo.String))}),zzr=Vo.Union(jzr,$zr,Uzr),qzr=Vo.Struct({source:Mzr,provider:Vo.String,id:Vo.String}),Jzr=Vo.Union(Vo.String,qzr),Vzr=Vo.Struct({endpoint:Vo.String,auth:Vo.optional(Jzr)}),Xke=Vo.Struct({name:Vo.optional(Vo.String),namespace:Vo.optional(Vo.String),enabled:Vo.optional(Vo.Boolean),connection:Vzr}),Wzr=Vo.Struct({specUrl:Vo.String,defaultHeaders:Vo.optional(Vo.NullOr(M_))}),Gzr=Vo.Struct({defaultHeaders:Vo.optional(Vo.NullOr(M_))}),Hzr=Vo.Struct({service:Vo.String,version:Vo.String,discoveryUrl:Vo.optional(Vo.NullOr(Vo.String)),defaultHeaders:Vo.optional(Vo.NullOr(M_)),scopes:Vo.optional(Vo.Array(Vo.String))}),Kzr=Vo.Struct({transport:Vo.optional(Vo.NullOr(bD)),queryParams:Vo.optional(Vo.NullOr(M_)),headers:Vo.optional(Vo.NullOr(M_)),command:Vo.optional(Vo.NullOr(Vo.String)),args:Vo.optional(Vo.NullOr(g5)),env:Vo.optional(Vo.NullOr(M_)),cwd:Vo.optional(Vo.NullOr(Vo.String))}),Qzr=Vo.extend(Xke,Vo.Struct({kind:Vo.Literal("openapi"),binding:Wzr})),Zzr=Vo.extend(Xke,Vo.Struct({kind:Vo.Literal("graphql"),binding:Gzr})),Xzr=Vo.extend(Xke,Vo.Struct({kind:Vo.Literal("google_discovery"),binding:Hzr})),Yzr=Vo.extend(Xke,Vo.Struct({kind:Vo.Literal("mcp"),binding:Kzr})),eqr=Vo.Union(Qzr,Zzr,Xzr,Yzr),tqr=Vo.Literal("allow","deny"),rqr=Vo.Literal("auto","manual"),nqr=Vo.Struct({match:Vo.String,action:tqr,approval:rqr,enabled:Vo.optional(Vo.Boolean),priority:Vo.optional(Vo.Number)}),iqr=Vo.Struct({providers:Vo.optional(Vo.Record({key:Vo.String,value:zzr})),defaults:Vo.optional(Vo.Struct({env:Vo.optional(Vo.String),file:Vo.optional(Vo.String),exec:Vo.optional(Vo.String)}))}),oqr=Vo.Struct({name:Vo.optional(Vo.String)}),H7t=Vo.Struct({runtime:Vo.optional(Lzr),workspace:Vo.optional(oqr),sources:Vo.optional(Vo.Record({key:Vo.String,value:eqr})),policies:Vo.optional(Vo.Record({key:Vo.String,value:nqr})),secrets:Vo.optional(iqr)});import{Schema as Ol}from"effect";var K7t=Ol.Literal("pending","running","waiting_for_interaction","completed","failed","cancelled"),uQe=Ol.Struct({id:Hw,scopeId:Ed,createdByScopeId:Ed,status:K7t,code:Ol.String,resultJson:Ol.NullOr(Ol.String),errorText:Ol.NullOr(Ol.String),logsJson:Ol.NullOr(Ol.String),startedAt:Ol.NullOr(Qc),completedAt:Ol.NullOr(Qc),createdAt:Qc,updatedAt:Qc});var mzn=Ol.partial(Ol.Struct({status:K7t,code:Ol.String,resultJson:Ol.NullOr(Ol.String),errorText:Ol.NullOr(Ol.String),logsJson:Ol.NullOr(Ol.String),startedAt:Ol.NullOr(Qc),completedAt:Ol.NullOr(Qc),updatedAt:Qc})),Q7t=Ol.Literal("pending","resolved","cancelled"),pQe=Ol.Struct({id:L2,executionId:Hw,status:Q7t,kind:Ol.String,purpose:Ol.String,payloadJson:Ol.String,responseJson:Ol.NullOr(Ol.String),responsePrivateJson:Ol.NullOr(Ol.String),createdAt:Qc,updatedAt:Qc});var hzn=Ol.partial(Ol.Struct({status:Q7t,kind:Ol.String,purpose:Ol.String,payloadJson:Ol.String,responseJson:Ol.NullOr(Ol.String),responsePrivateJson:Ol.NullOr(Ol.String),updatedAt:Qc})),gzn=Ol.Struct({execution:uQe,pendingInteraction:Ol.NullOr(pQe)}),aqr=Ol.Literal("tool_call"),Z7t=Ol.Literal("pending","waiting","completed","failed"),X7t=Ol.Struct({id:Hke,executionId:Hw,sequence:Ol.Number,kind:aqr,status:Z7t,path:Ol.String,argsJson:Ol.String,resultJson:Ol.NullOr(Ol.String),errorText:Ol.NullOr(Ol.String),interactionId:Ol.NullOr(L2),createdAt:Qc,updatedAt:Qc});var yzn=Ol.partial(Ol.Struct({status:Z7t,resultJson:Ol.NullOr(Ol.String),errorText:Ol.NullOr(Ol.String),interactionId:Ol.NullOr(L2),updatedAt:Qc}));import{Schema as Ma}from"effect";var sqr=Ma.Literal("ir"),cqr=Ma.Struct({path:Ma.String,sourceKey:Ma.String,title:Ma.optional(Ma.String),description:Ma.optional(Ma.String),protocol:Ma.String,toolId:Ma.String,rawToolId:Ma.NullOr(Ma.String),operationId:Ma.NullOr(Ma.String),group:Ma.NullOr(Ma.String),leaf:Ma.NullOr(Ma.String),tags:Ma.Array(Ma.String),method:Ma.NullOr(Ma.String),pathTemplate:Ma.NullOr(Ma.String),inputTypePreview:Ma.optional(Ma.String),outputTypePreview:Ma.optional(Ma.String)}),lqr=Ma.Struct({label:Ma.String,value:Ma.String,mono:Ma.optional(Ma.Boolean)}),uqr=Ma.Struct({kind:Ma.Literal("facts"),title:Ma.String,items:Ma.Array(lqr)}),pqr=Ma.Struct({kind:Ma.Literal("markdown"),title:Ma.String,body:Ma.String}),_qr=Ma.Struct({kind:Ma.Literal("code"),title:Ma.String,language:Ma.String,body:Ma.String}),dqr=Ma.Union(uqr,pqr,_qr),fqr=Ma.Struct({path:Ma.String,method:Ma.NullOr(Ma.String),inputTypePreview:Ma.optional(Ma.String),outputTypePreview:Ma.optional(Ma.String)}),Y7t=Ma.Struct({shapeId:Ma.NullOr(Ma.String),typePreview:Ma.NullOr(Ma.String),typeDeclaration:Ma.NullOr(Ma.String),schemaJson:Ma.NullOr(Ma.String),exampleJson:Ma.NullOr(Ma.String)}),mqr=Ma.Struct({callSignature:Ma.String,callDeclaration:Ma.String,callShapeId:Ma.String,resultShapeId:Ma.NullOr(Ma.String),responseSetId:Ma.String,input:Y7t,output:Y7t}),xzn=Ma.Struct({source:XN,namespace:Ma.String,pipelineKind:sqr,toolCount:Ma.Number,tools:Ma.Array(fqr)}),Tzn=Ma.Struct({summary:cqr,contract:mqr,sections:Ma.Array(dqr)}),Ezn=Ma.Struct({query:Ma.String,limit:Ma.optional(Ma.Number)}),hqr=Ma.Struct({path:Ma.String,score:Ma.Number,description:Ma.optional(Ma.String),inputTypePreview:Ma.optional(Ma.String),outputTypePreview:Ma.optional(Ma.String),reasons:Ma.Array(Ma.String)}),kzn=Ma.Struct({query:Ma.String,queryTokens:Ma.Array(Ma.String),bestPath:Ma.NullOr(Ma.String),total:Ma.Number,results:Ma.Array(hqr)});import{Schema as e5t}from"effect";var wzn=e5t.Struct({id:e5t.String,appliedAt:Qc});import*as i5t from"effect/Either";import*as Zw from"effect/Effect";import*as e8 from"effect/Schema";import*as t5t from"effect/Data";var _Qe=class extends t5t.TaggedError("RuntimeEffectError"){},_a=(e,r)=>new _Qe({module:e,message:r});var r5t={placements:[],headers:{},queryParams:{},cookies:{},bodyValues:{},expiresAt:null,refreshAfter:null,authProvider:void 0},gqr=e8.encodeSync(QKe),yqr=e8.encodeSync(ZKe),eqn=e8.encodeSync(XKe),vqr=e8.encodeSync(YKe),Sqr=e8.encodeSync(eQe),bqr=e8.encodeSync(npe),xqr=e8.decodeUnknownEither(Qke),Tqr=e8.encodeSync(tQe),Eqr=(e,r)=>{switch(r.location){case"header":e.headers[r.name]=r.value;break;case"query":e.queryParams[r.name]=r.value;break;case"cookie":e.cookies[r.name]=r.value;break;case"body":e.bodyValues[r.path]=r.value;break}},Yke=(e,r={})=>{let i={headers:{},queryParams:{},cookies:{},bodyValues:{}};for(let s of e)Eqr(i,s);return{placements:e,headers:i.headers,queryParams:i.queryParams,cookies:i.cookies,bodyValues:i.bodyValues,expiresAt:r.expiresAt??null,refreshAfter:r.refreshAfter??null}},n5t=e=>Zw.map(Zw.forEach(e.parts,r=>r.kind==="literal"?Zw.succeed(r.value):e.resolveSecretMaterial({ref:r.ref,context:e.context}),{discard:!1}),r=>r.join("")),ope=e=>{if(e.auth.kind==="none")return null;let r=e.existingAuthArtifactId??`auth_art_${crypto.randomUUID()}`,i=e.auth.kind==="oauth2_authorized_user"?kqr(e.auth.grantSet):null;return e.auth.kind==="bearer"?{id:r,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:Mj,configJson:gqr({headerName:e.auth.headerName,prefix:e.auth.prefix,token:e.auth.token}),grantSetJson:i,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:e.auth.kind==="oauth2_authorized_user"?{id:r,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:Kw,configJson:vqr({headerName:e.auth.headerName,prefix:e.auth.prefix,tokenEndpoint:e.auth.tokenEndpoint,clientId:e.auth.clientId,clientAuthentication:e.auth.clientAuthentication,clientSecret:e.auth.clientSecret,refreshToken:e.auth.refreshToken}),grantSetJson:i,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:e.auth.kind==="provider_grant_ref"?{id:r,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:HKe,configJson:Sqr({grantId:e.auth.grantId,providerKey:e.auth.providerKey,requiredScopes:[...e.auth.requiredScopes],headerName:e.auth.headerName,prefix:e.auth.prefix}),grantSetJson:i,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:e.auth.kind==="mcp_oauth"?{id:r,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:KKe,configJson:bqr({redirectUri:e.auth.redirectUri,accessToken:e.auth.accessToken,refreshToken:e.auth.refreshToken,tokenType:e.auth.tokenType,expiresIn:e.auth.expiresIn,scope:e.auth.scope,resourceMetadataUrl:e.auth.resourceMetadataUrl,authorizationServerUrl:e.auth.authorizationServerUrl,resourceMetadataJson:e.auth.resourceMetadataJson,authorizationServerMetadataJson:e.auth.authorizationServerMetadataJson,clientInformationJson:e.auth.clientInformationJson}),grantSetJson:i,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:{id:r,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:jj,configJson:yqr({headerName:e.auth.headerName,prefix:e.auth.prefix,accessToken:e.auth.accessToken,refreshToken:e.auth.refreshToken}),grantSetJson:i,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}},eCe=e=>{if(e===null)return{kind:"none"};let r=ZN(e);if(r!==null)return{kind:"provider_grant_ref",grantId:r.grantId,providerKey:r.providerKey,requiredScopes:[...r.requiredScopes],headerName:r.headerName,prefix:r.prefix};let i=_Y(e);if(i!==null)return{kind:"mcp_oauth",redirectUri:i.redirectUri,accessToken:i.accessToken,refreshToken:i.refreshToken,tokenType:i.tokenType,expiresIn:i.expiresIn,scope:i.scope,resourceMetadataUrl:i.resourceMetadataUrl,authorizationServerUrl:i.authorizationServerUrl,resourceMetadataJson:i.resourceMetadataJson,authorizationServerMetadataJson:i.authorizationServerMetadataJson,clientInformationJson:i.clientInformationJson};let s=Bj(e);if(s===null)return{kind:"none"};switch(s.artifactKind){case Mj:return{kind:"bearer",headerName:s.config.headerName,prefix:s.config.prefix,token:s.config.token};case jj:return{kind:"oauth2",headerName:s.config.headerName,prefix:s.config.prefix,accessToken:s.config.accessToken,refreshToken:s.config.refreshToken};case XJ:return{kind:"none"};case Kw:return{kind:"oauth2_authorized_user",headerName:s.config.headerName,prefix:s.config.prefix,tokenEndpoint:s.config.tokenEndpoint,clientId:s.config.clientId,clientAuthentication:s.config.clientAuthentication,clientSecret:s.config.clientSecret,refreshToken:s.config.refreshToken,grantSet:N7t(e.grantSetJson)}}};var ape=e=>O7t(e);var kqr=e=>e===null?null:Tqr([...e]),zj=e=>Zw.gen(function*(){if(e.artifact===null)return r5t;let r=Bj(e.artifact);if(r!==null)switch(r.artifactKind){case Mj:{let h=yield*e.resolveSecretMaterial({ref:r.config.token,context:e.context});return Yke([{location:"header",name:r.config.headerName,value:`${r.config.prefix}${h}`}])}case jj:{let h=yield*e.resolveSecretMaterial({ref:r.config.accessToken,context:e.context});return Yke([{location:"header",name:r.config.headerName,value:`${r.config.prefix}${h}`}])}case XJ:{let h=yield*Zw.forEach(r.config.placements,S=>Zw.map(n5t({parts:S.parts,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context}),b=>S.location==="body"?{location:"body",path:S.path,value:b}:{location:S.location,name:S.name,value:b}),{discard:!1});return Yke(h)}case Kw:break}if(ZN(e.artifact)!==null&&(e.lease===null||e.lease===void 0))return yield*_a("auth/auth-artifacts",`Provider grant auth artifact ${e.artifact.id} requires a lease`);if(_Y(e.artifact)!==null)return{...r5t};if(e.lease===null||e.lease===void 0)return yield*_a("auth/auth-artifacts",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let l=xqr(e.lease.placementsTemplateJson);if(i5t.isLeft(l))return yield*_a("auth/auth-artifacts",`Invalid auth lease placements for artifact ${e.artifact.id}`);let d=yield*Zw.forEach(l.right,h=>Zw.map(n5t({parts:h.parts,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context}),S=>h.location==="body"?{location:"body",path:h.path,value:S}:{location:h.location,name:h.name,value:S}),{discard:!1});return Yke(d,{expiresAt:e.lease.expiresAt,refreshAfter:e.lease.refreshAfter})});import*as ST from"effect/Effect";import*as YJ from"effect/Option";import{createHash as Cqr,randomBytes as Dqr}from"node:crypto";import*as spe from"effect/Effect";var o5t=e=>e.toString("base64").replaceAll("+","-").replaceAll("/","_").replaceAll("=",""),dQe=()=>o5t(Dqr(48)),Aqr=e=>o5t(Cqr("sha256").update(e).digest()),fQe=e=>{let r=new URL(e.authorizationEndpoint);r.searchParams.set("client_id",e.clientId),r.searchParams.set("redirect_uri",e.redirectUri),r.searchParams.set("response_type","code"),r.searchParams.set("scope",e.scopes.join(" ")),r.searchParams.set("state",e.state),r.searchParams.set("code_challenge_method","S256"),r.searchParams.set("code_challenge",Aqr(e.codeVerifier));for(let[i,s]of Object.entries(e.extraParams??{}))r.searchParams.set(i,s);return r.toString()},wqr=async e=>{let r=await e.text(),i;try{i=JSON.parse(r)}catch{throw new Error(`OAuth token endpoint returned non-JSON response (${e.status})`)}if(i===null||typeof i!="object"||Array.isArray(i))throw new Error(`OAuth token endpoint returned invalid JSON payload (${e.status})`);let s=i,l=typeof s.access_token=="string"&&s.access_token.length>0?s.access_token:null;if(!e.ok){let d=typeof s.error_description=="string"&&s.error_description.length>0?s.error_description:typeof s.error=="string"&&s.error.length>0?s.error:`status ${e.status}`;throw new Error(`OAuth token exchange failed: ${d}`)}if(l===null)throw new Error("OAuth token endpoint did not return an access_token");return{access_token:l,token_type:typeof s.token_type=="string"?s.token_type:void 0,refresh_token:typeof s.refresh_token=="string"?s.refresh_token:void 0,expires_in:typeof s.expires_in=="number"?s.expires_in:typeof s.expires_in=="string"?Number(s.expires_in):void 0,scope:typeof s.scope=="string"?s.scope:void 0}},a5t=e=>spe.tryPromise({try:async()=>{let r=await fetch(e.tokenEndpoint,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded",accept:"application/json"},body:e.body,signal:AbortSignal.timeout(2e4)});return wqr(r)},catch:r=>r instanceof Error?r:new Error(String(r))}),mQe=e=>spe.gen(function*(){let r=new URLSearchParams({grant_type:"authorization_code",client_id:e.clientId,redirect_uri:e.redirectUri,code_verifier:e.codeVerifier,code:e.code});return e.clientAuthentication==="client_secret_post"&&e.clientSecret&&r.set("client_secret",e.clientSecret),yield*a5t({tokenEndpoint:e.tokenEndpoint,body:r})}),hQe=e=>spe.gen(function*(){let r=new URLSearchParams({grant_type:"refresh_token",client_id:e.clientId,refresh_token:e.refreshToken});return e.clientAuthentication==="client_secret_post"&&e.clientSecret&&r.set("client_secret",e.clientSecret),e.scopes&&e.scopes.length>0&&r.set("scope",e.scopes.join(" ")),yield*a5t({tokenEndpoint:e.tokenEndpoint,body:r})});import*as TD from"effect/Effect";import*as c5t from"effect/Schema";var Iqr=c5t.encodeSync(npe),gQe=e=>{if(e!==null)try{let r=JSON.parse(e);return r!==null&&typeof r=="object"&&!Array.isArray(r)?r:void 0}catch{return}},gY=e=>e==null?null:JSON.stringify(e),Pqr=e=>({redirect_uris:[e],grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none",client_name:"Executor Local"}),s5t=(e,r)=>(e?.providerId??null)===(r?.providerId??null)&&(e?.handle??null)===(r?.handle??null),Nqr=e=>TD.gen(function*(){s5t(e.previousAccessToken,e.nextAccessToken)||(yield*TD.either(e.deleteSecretMaterial(e.previousAccessToken))),e.previousRefreshToken!==null&&!s5t(e.previousRefreshToken,e.nextRefreshToken)&&(yield*TD.either(e.deleteSecretMaterial(e.previousRefreshToken)))}),l5t=e=>({kind:"mcp_oauth",redirectUri:e.redirectUri,accessToken:e.accessToken,refreshToken:e.refreshToken,tokenType:e.tokenType,expiresIn:e.expiresIn,scope:e.scope,resourceMetadataUrl:e.resourceMetadataUrl,authorizationServerUrl:e.authorizationServerUrl,resourceMetadataJson:gY(e.resourceMetadata),authorizationServerMetadataJson:gY(e.authorizationServerMetadata),clientInformationJson:gY(e.clientInformation)}),u5t=e=>{let r=e.artifact,i=e.config,s=l=>TD.gen(function*(){let d={...r,configJson:Iqr(l),updatedAt:Date.now()};yield*e.executorState.authArtifacts.upsert(d),r=d,i=l});return{get redirectUrl(){return i.redirectUri},get clientMetadata(){return Pqr(i.redirectUri)},clientInformation:()=>gQe(i.clientInformationJson),saveClientInformation:l=>TD.runPromise(s({...i,clientInformationJson:gY(l)})).then(()=>{}),tokens:async()=>{let l=await TD.runPromise(e.resolveSecretMaterial({ref:i.accessToken,context:e.context})),d=i.refreshToken?await TD.runPromise(e.resolveSecretMaterial({ref:i.refreshToken,context:e.context})):void 0;return{access_token:l,token_type:i.tokenType,...typeof i.expiresIn=="number"?{expires_in:i.expiresIn}:{},...i.scope?{scope:i.scope}:{},...d?{refresh_token:d}:{}}},saveTokens:l=>TD.runPromise(TD.gen(function*(){let d=i,h=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:l.access_token,name:`${r.sourceId} MCP Access Token`}),S=l.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:l.refresh_token,name:`${r.sourceId} MCP Refresh Token`}):i.refreshToken,b={...i,accessToken:h,refreshToken:S,tokenType:l.token_type??i.tokenType,expiresIn:typeof l.expires_in=="number"&&Number.isFinite(l.expires_in)?l.expires_in:i.expiresIn,scope:l.scope??i.scope};yield*s(b),yield*Nqr({deleteSecretMaterial:e.deleteSecretMaterial,previousAccessToken:d.accessToken,nextAccessToken:h,previousRefreshToken:d.refreshToken,nextRefreshToken:S})})).then(()=>{}),redirectToAuthorization:async l=>{throw new Error(`MCP OAuth re-authorization is required for ${r.sourceId}: ${l.toString()}`)},saveCodeVerifier:()=>{},codeVerifier:()=>{throw new Error("Persisted MCP OAuth sessions do not retain an active PKCE verifier")},saveDiscoveryState:l=>TD.runPromise(s({...i,resourceMetadataUrl:l.resourceMetadataUrl??null,authorizationServerUrl:l.authorizationServerUrl??null,resourceMetadataJson:gY(l.resourceMetadata),authorizationServerMetadataJson:gY(l.authorizationServerMetadata)})).then(()=>{}),discoveryState:()=>i.authorizationServerUrl===null?void 0:{resourceMetadataUrl:i.resourceMetadataUrl??void 0,authorizationServerUrl:i.authorizationServerUrl,resourceMetadata:gQe(i.resourceMetadataJson),authorizationServerMetadata:gQe(i.authorizationServerMetadataJson)}}};var rCe=6e4,yQe=e=>JSON.stringify(e),tCe=e=>`${e.providerId}:${e.handle}`,nCe=(e,r,i)=>ST.gen(function*(){if(r.previous===null)return;let s=new Set((r.next===null?[]:cQe(r.next)).map(tCe)),l=cQe(r.previous).filter(d=>!s.has(tCe(d)));yield*ST.forEach(l,d=>ST.either(i(d)),{discard:!0})}),p5t=(e,r)=>!(e===null||e.refreshAfter!==null&&r>=e.refreshAfter||e.expiresAt!==null&&r>=e.expiresAt-rCe),Oqr=e=>ST.gen(function*(){let r=Bj(e.artifact);if(r===null||r.artifactKind!==Kw)return yield*_a("auth/auth-leases",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let i=yield*e.resolveSecretMaterial({ref:r.config.refreshToken,context:e.context}),s=null;r.config.clientSecret&&(s=yield*e.resolveSecretMaterial({ref:r.config.clientSecret,context:e.context}));let l=yield*hQe({tokenEndpoint:r.config.tokenEndpoint,clientId:r.config.clientId,clientAuthentication:r.config.clientAuthentication,clientSecret:s,refreshToken:i}),d=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:l.access_token,name:`${r.config.clientId} Access Token`}),h=Date.now(),S=typeof l.expires_in=="number"&&Number.isFinite(l.expires_in)?Math.max(0,l.expires_in*1e3):null,b=S===null?null:h+S,A=b===null?null:Math.max(h,b-rCe),L={id:e.lease?.id??lY.make(`auth_lease_${crypto.randomUUID()}`),authArtifactId:e.artifact.id,scopeId:e.artifact.scopeId,sourceId:e.artifact.sourceId,actorScopeId:e.artifact.actorScopeId,slot:e.artifact.slot,placementsTemplateJson:yQe([{location:"header",name:r.config.headerName,parts:[{kind:"literal",value:r.config.prefix},{kind:"secret_ref",ref:d}]}]),expiresAt:b,refreshAfter:A,createdAt:e.lease?.createdAt??h,updatedAt:h};return yield*e.executorState.authLeases.upsert(L),yield*nCe(e.executorState,{previous:e.lease,next:L},e.deleteSecretMaterial),L}),Fqr=e=>e.clientSecretProviderId&&e.clientSecretHandle?{providerId:e.clientSecretProviderId,handle:e.clientSecretHandle}:null,Rqr=(e,r,i)=>tCe(r.previous)===tCe(r.next)?ST.void:i(r.previous).pipe(ST.either,ST.ignore),Lqr=e=>ST.gen(function*(){let r=ZN(e.artifact);if(r===null)return yield*_a("auth/auth-leases",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let i=yield*e.executorState.providerAuthGrants.getById(r.grantId);if(YJ.isNone(i))return yield*_a("auth/auth-leases",`Provider auth grant not found: ${r.grantId}`);let s=i.value,l=yield*e.executorState.scopeOauthClients.getById(s.oauthClientId);if(YJ.isNone(l))return yield*_a("auth/auth-leases",`Scope OAuth client not found: ${s.oauthClientId}`);let d=l.value,h=yield*e.resolveSecretMaterial({ref:s.refreshToken,context:e.context}),S=Fqr(d),b=S?yield*e.resolveSecretMaterial({ref:S,context:e.context}):null,A=yield*hQe({tokenEndpoint:s.tokenEndpoint,clientId:d.clientId,clientAuthentication:s.clientAuthentication,clientSecret:b,refreshToken:h,scopes:r.requiredScopes.length>0?r.requiredScopes:null}),L=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:A.access_token,name:`${s.providerKey} Access Token`}),V=A.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:A.refresh_token,name:`${s.providerKey} Refresh Token`}):s.refreshToken,j=Date.now(),ie={...s,refreshToken:V,lastRefreshedAt:j,updatedAt:j};yield*e.executorState.providerAuthGrants.upsert(ie),yield*Rqr(e.executorState,{previous:s.refreshToken,next:V},e.deleteSecretMaterial);let te=typeof A.expires_in=="number"&&Number.isFinite(A.expires_in)?Math.max(0,A.expires_in*1e3):null,X=te===null?null:j+te,Re=X===null?null:Math.max(j,X-rCe),Je={id:e.lease?.id??lY.make(`auth_lease_${crypto.randomUUID()}`),authArtifactId:e.artifact.id,scopeId:e.artifact.scopeId,sourceId:e.artifact.sourceId,actorScopeId:e.artifact.actorScopeId,slot:e.artifact.slot,placementsTemplateJson:yQe([{location:"header",name:r.headerName,parts:[{kind:"literal",value:r.prefix},{kind:"secret_ref",ref:L}]}]),expiresAt:X,refreshAfter:Re,createdAt:e.lease?.createdAt??j,updatedAt:j};return yield*e.executorState.authLeases.upsert(Je),yield*nCe(e.executorState,{previous:e.lease,next:Je},e.deleteSecretMaterial),Je}),E5=(e,r,i)=>ST.gen(function*(){let s=yield*e.authLeases.getByAuthArtifactId(r.authArtifactId);YJ.isNone(s)||(yield*e.authLeases.removeByAuthArtifactId(r.authArtifactId),yield*nCe(e,{previous:s.value,next:null},i))}),_5t=e=>ST.gen(function*(){let r=Bj(e.artifact);if(r===null||r.artifactKind!==Kw)return yield*_a("auth/auth-leases",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let i=yield*e.executorState.authLeases.getByAuthArtifactId(e.artifact.id),s=YJ.isSome(i)?i.value:null,l=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:e.tokenResponse.access_token,name:`${r.config.clientId} Access Token`}),d=Date.now(),h=typeof e.tokenResponse.expires_in=="number"&&Number.isFinite(e.tokenResponse.expires_in)?Math.max(0,e.tokenResponse.expires_in*1e3):null,S=h===null?null:d+h,b=S===null?null:Math.max(d,S-rCe),A={id:s?.id??lY.make(`auth_lease_${crypto.randomUUID()}`),authArtifactId:e.artifact.id,scopeId:e.artifact.scopeId,sourceId:e.artifact.sourceId,actorScopeId:e.artifact.actorScopeId,slot:e.artifact.slot,placementsTemplateJson:yQe([{location:"header",name:r.config.headerName,parts:[{kind:"literal",value:r.config.prefix},{kind:"secret_ref",ref:l}]}]),expiresAt:S,refreshAfter:b,createdAt:s?.createdAt??d,updatedAt:d};yield*e.executorState.authLeases.upsert(A),yield*nCe(e.executorState,{previous:s,next:A},e.deleteSecretMaterial)}),vQe=e=>ST.gen(function*(){if(e.artifact===null)return yield*zj({artifact:null,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context});let r=yield*e.executorState.authLeases.getByAuthArtifactId(e.artifact.id),i=YJ.isSome(r)?r.value:null,s=Bj(e.artifact),l=ZN(e.artifact),d=_Y(e.artifact);if(s!==null&&s.artifactKind===Kw){let h=p5t(i,Date.now())?i:yield*Oqr({executorState:e.executorState,artifact:e.artifact,lease:i,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,context:e.context});return yield*zj({artifact:e.artifact,lease:h,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})}if(l!==null){let h=p5t(i,Date.now())?i:yield*Lqr({executorState:e.executorState,artifact:e.artifact,lease:i,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,context:e.context});return yield*zj({artifact:e.artifact,lease:h,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})}return d!==null?{...yield*zj({artifact:e.artifact,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context}),authProvider:u5t({executorState:e.executorState,artifact:e.artifact,config:d,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,context:e.context})}:yield*zj({artifact:e.artifact,lease:i,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})});import*as yY from"effect/Context";var Xw=class extends yY.Tag("#runtime/SecretMaterialResolverService")(){},dk=class extends yY.Tag("#runtime/SecretMaterialStorerService")(){},bT=class extends yY.Tag("#runtime/SecretMaterialDeleterService")(){},t8=class extends yY.Tag("#runtime/SecretMaterialUpdaterService")(){},r8=class extends yY.Tag("#runtime/LocalInstanceConfigService")(){};var Mqr=e=>e.slot==="runtime"||e.source.importAuthPolicy==="reuse_runtime"?e.source.auth:e.source.importAuthPolicy==="none"?{kind:"none"}:e.source.importAuth,qj=class extends d5t.Tag("#runtime/RuntimeSourceAuthMaterialService")(){},jqr=e=>k5.gen(function*(){let r=e.slot??"runtime";if(e.executorState!==void 0){let s=r==="import"&&e.source.importAuthPolicy==="reuse_runtime"?["import","runtime"]:[r];for(let l of s){let d=yield*e.executorState.authArtifacts.getByScopeSourceAndActor({scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:l});if(m5t.isSome(d))return yield*vQe({executorState:e.executorState,artifact:d.value,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial??(()=>k5.dieMessage("storeSecretMaterial unavailable")),deleteSecretMaterial:e.deleteSecretMaterial??(()=>k5.dieMessage("deleteSecretMaterial unavailable")),context:e.context})}}let i=ope({source:e.source,auth:Mqr({source:e.source,slot:r}),slot:r,actorScopeId:e.actorScopeId??null});return e.executorState!==void 0?yield*vQe({executorState:e.executorState,artifact:i,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial??(()=>k5.dieMessage("storeSecretMaterial unavailable")),deleteSecretMaterial:e.deleteSecretMaterial??(()=>k5.dieMessage("deleteSecretMaterial unavailable")),context:e.context}):i?.artifactKind==="oauth2_authorized_user"||i?.artifactKind==="provider_grant_ref"||i?.artifactKind==="mcp_oauth"?yield*_a("auth/source-auth-material","Dynamic auth artifacts require persistence-backed lease resolution"):yield*zj({artifact:i,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})});var h5t=f5t.effect(qj,k5.gen(function*(){let e=yield*dm,r=yield*Xw,i=yield*dk,s=yield*bT;return qj.of({resolve:l=>jqr({...l,executorState:e,resolveSecretMaterial:r,storeSecretMaterial:i,deleteSecretMaterial:s})})}));import*as Rat from"effect/Cache";import*as uZt from"effect/Context";import*as p_ from"effect/Effect";import*as pZt from"effect/Layer";import*as $d from"effect/Match";import*as SY from"effect/Data";var iCe=class extends SY.TaggedError("RuntimeLocalScopeUnavailableError"){},vY=class extends SY.TaggedError("RuntimeLocalScopeMismatchError"){},cpe=class extends SY.TaggedError("LocalConfiguredSourceNotFoundError"){},oCe=class extends SY.TaggedError("LocalSourceArtifactMissingError"){},aCe=class extends SY.TaggedError("LocalUnsupportedSourceKindError"){};import{createHash as Bqr}from"node:crypto";var $qr=/^[A-Za-z_$][A-Za-z0-9_$]*$/,Uqr=e=>Bqr("sha256").update(e).digest("hex").slice(0,24),EQe=e=>$qr.test(e)?e:JSON.stringify(e),v5t=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2").split(/[^A-Za-z0-9]+/).filter(r=>r.length>0),zqr=e=>/^\d+$/.test(e)?e:`${e.slice(0,1).toUpperCase()}${e.slice(1).toLowerCase()}`,eV=e=>{let r=v5t(e).map(i=>zqr(i)).join("");return r.length===0?"Type":/^[A-Za-z_$]/.test(r)?r:`T${r}`},c0=(...e)=>e.map(r=>eV(r)).filter(r=>r.length>0).join(""),S5t=e=>{switch(e){case"string":case"boolean":return e;case"bytes":return"string";case"integer":case"number":return"number";case"null":return"null";case"object":return"Record";case"array":return"Array";default:throw new Error(`Unsupported JSON Schema primitive type: ${e}`)}},xY=e=>{let r=JSON.stringify(e);if(r===void 0)throw new Error(`Unsupported literal value in declaration schema: ${String(e)}`);return r},Jj=e=>e.includes(" | ")||e.includes(" & ")?`(${e})`:e,qqr=(e,r)=>e.length===0?"{}":["{",...e.flatMap(i=>i.split(` +`).map(s=>`${r}${s}`)),`${r.slice(0,-2)}}`].join(` +`),M2=(e,r)=>{let i=e.symbols[r];if(!i||i.kind!=="shape")throw new Error(`Missing shape symbol for ${r}`);return i},SQe=e=>e.type==="unknown"||e.type==="scalar"||e.type==="const"||e.type==="enum",Jqr=e=>/^shape_[a-f0-9_]+$/i.test(e),Vqr=e=>/\s/.test(e.trim()),Wqr=e=>{let r=e.title?.trim();return r&&!Jqr(r)?eV(r):void 0},Gqr=e=>e.replace(/~1/g,"/").replace(/~0/g,"~"),g5t=e=>{let r=e.trim();if(!(r.length===0||/^\d+$/.test(r)||["$defs","definitions","components","schemas","schema","properties","items","additionalProperties","patternProperties","allOf","anyOf","oneOf","not","if","then","else","input","output","graphql","scalars","responses","headers","parameters","requestBody"].includes(r)))return eV(r)},Hqr=e=>{for(let r of e){let i=r.pointer;if(!i?.startsWith("#/"))continue;let s=i.slice(2).split("/").map(Gqr),l=s.flatMap((d,h)=>["$defs","definitions","schemas","input","output"].includes(d)?[h]:[]);for(let d of l){let h=g5t(s[d+1]??"");if(h)return h}for(let d=s.length-1;d>=0;d-=1){let h=g5t(s[d]??"");if(h)return h}}},sCe=e=>{let r=e?.trim();return r&&r.length>0?r:null},b5t=e=>e.replace(/\*\//g,"*\\/"),bQe=(e,r)=>{if(r){e.length>0&&e.push("");for(let i of r.split(/\r?\n/))e.push(b5t(i.trimEnd()))}},lpe=e=>{let r=[],i=e.includeTitle&&e.title&&Vqr(e.title)?sCe(e.title):null,s=sCe(e.docs?.summary),l=sCe(e.docs?.description),d=sCe(e.docs?.externalDocsUrl);return bQe(r,i&&i!==s?i:null),bQe(r,s),bQe(r,l&&l!==s?l:null),d&&(r.length>0&&r.push(""),r.push(`@see ${b5t(d)}`)),e.deprecated&&(r.length>0&&r.push(""),r.push("@deprecated")),r.length===0?null:["/**",...r.map(h=>h.length>0?` * ${h}`:" *")," */"].join(` +`)},Kqr=e=>{let r=v5t(e);if(r.length<=5)return c0(...r);let i=r.filter((s,l)=>l>=r.length-2||!["item","member","value"].includes(s.toLowerCase()));return c0(...i.slice(-5))},y5t=e=>{switch(e.type){case"unknown":case"scalar":case"const":case"enum":return[];case"object":return[...Object.values(e.fields).map(r=>r.shapeId),...typeof e.additionalProperties=="string"?[e.additionalProperties]:[],...Object.values(e.patternProperties??{})];case"array":return[e.itemShapeId];case"tuple":return[...e.itemShapeIds,...typeof e.additionalItems=="string"?[e.additionalItems]:[]];case"map":return[e.valueShapeId];case"allOf":case"anyOf":case"oneOf":return[...e.items];case"nullable":return[e.itemShapeId];case"ref":return[e.target];case"not":return[e.itemShapeId];case"conditional":return[e.ifShapeId,...e.thenShapeId?[e.thenShapeId]:[],...e.elseShapeId?[e.elseShapeId]:[]];case"graphqlInterface":return[...Object.values(e.fields).map(r=>r.shapeId),...e.possibleTypeIds];case"graphqlUnion":return[...e.memberTypeIds]}},xQe=e=>{switch(e.type){case"unknown":return"unknown";case"scalar":return S5t(e.scalar);case"const":return xY(e.value);case"enum":return e.values.map(r=>xY(r)).join(" | ");default:throw new Error(`Cannot inline non-primitive shape node: ${e.type}`)}},Qqr=(e,r,i,s,l)=>{let d=new Set;r&&d.add("unknown");for(let h of e)d.add(l(h,{stack:s,aliasHint:i}));return[...d].sort((h,S)=>h.localeCompare(S)).join(" | ")},TQe=(e,r,i,s,l)=>{let d=new Set(e.required),h=Object.keys(e.fields).sort((L,V)=>L.localeCompare(V)).map(L=>{let V=e.fields[L],j=`${EQe(L)}${d.has(L)?"":"?"}: ${s(V.shapeId,{stack:r,aliasHint:i?c0(i,L):L})};`,ie=l?lpe({docs:V.docs,deprecated:V.deprecated}):null;return ie?`${ie} +${j}`:j}),S=Object.values(e.patternProperties??{}),b=e.additionalProperties===!0,A=typeof e.additionalProperties=="string"?[e.additionalProperties]:[];return(b||S.length>0||A.length>0)&&h.push(`[key: string]: ${Qqr([...S,...A],b,i?c0(i,"value"):"value",r,s)};`),qqr(h," ")},Zqr=(e,r,i,s,l)=>TQe({fields:e.fields,required:e.type==="object"?e.required??[]:[],additionalProperties:e.type==="object"?e.additionalProperties:!1,patternProperties:e.type==="object"?e.patternProperties??{}:{}},r,i,s,l),bY=(e,r,i,s,l,d)=>{let S=M2(e,r).node;switch(S.type){case"unknown":case"scalar":case"const":case"enum":return xQe(S);case"object":case"graphqlInterface":return Zqr(S,i,s,l,d);case"array":return`Array<${Jj(l(S.itemShapeId,{stack:i,aliasHint:s?c0(s,"item"):"item"}))}>`;case"tuple":{let b=S.itemShapeIds.map((L,V)=>l(L,{stack:i,aliasHint:s?c0(s,`item_${String(V+1)}`):`item_${String(V+1)}`})),A=S.additionalItems===!0?", ...unknown[]":typeof S.additionalItems=="string"?`, ...Array<${Jj(l(S.additionalItems,{stack:i,aliasHint:s?c0(s,"rest"):"rest"}))}>`:"";return`[${b.join(", ")}${A}]`}case"map":return`Record`;case"allOf":return S.items.map((b,A)=>Jj(l(b,{stack:i,aliasHint:s?c0(s,`member_${String(A+1)}`):`member_${String(A+1)}`}))).join(" & ");case"anyOf":case"oneOf":return S.items.map((b,A)=>Jj(l(b,{stack:i,aliasHint:s?c0(s,`member_${String(A+1)}`):`member_${String(A+1)}`}))).join(" | ");case"nullable":return`${Jj(l(S.itemShapeId,{stack:i,aliasHint:s}))} | null`;case"ref":return l(S.target,{stack:i,aliasHint:s});case"not":case"conditional":return"unknown";case"graphqlUnion":return S.memberTypeIds.map((b,A)=>Jj(l(b,{stack:i,aliasHint:s?c0(s,`member_${String(A+1)}`):`member_${String(A+1)}`}))).join(" | ")}},upe=e=>{let{catalog:r,roots:i}=e,s=new Map,l=new Set(i.map(an=>an.shapeId)),d=new Set,h=new Set,S=new Set,b=new Map,A=new Map,L=new Map,V=new Map,j=new Map,ie=new Set,te=new Set,X=(an,Xr=[])=>{let li=s.get(an);if(li)return li;if(Xr.includes(an))return{key:`cycle:${an}`,recursive:!0};let Wi=M2(r,an),Bo=[...Xr,an],Wn=(uc,Pt)=>{let ou=uc.map(go=>X(go,Bo));return Pt?ou.sort((go,mc)=>go.key.localeCompare(mc.key)):ou},Na=!1,hs=uc=>{let Pt=X(uc,Bo);return Na=Na||Pt.recursive,Pt.key},Us=(uc,Pt)=>{let ou=Wn(uc,Pt);return Na=Na||ou.some(go=>go.recursive),ou.map(go=>go.key)},Sc=(()=>{switch(Wi.node.type){case"unknown":return"unknown";case"scalar":return`scalar:${S5t(Wi.node.scalar)}`;case"const":return`const:${xY(Wi.node.value)}`;case"enum":return`enum:${Wi.node.values.map(uc=>xY(uc)).sort().join("|")}`;case"object":{let uc=Wi.node.required??[],Pt=Object.entries(Wi.node.fields).sort(([mc],[zp])=>mc.localeCompare(zp)).map(([mc,zp])=>`${mc}${uc.includes(mc)?"!":"?"}:${hs(zp.shapeId)}`).join(","),ou=Wi.node.additionalProperties===!0?"unknown":typeof Wi.node.additionalProperties=="string"?hs(Wi.node.additionalProperties):"none",go=Object.entries(Wi.node.patternProperties??{}).map(([,mc])=>X(mc,Bo)).sort((mc,zp)=>mc.key.localeCompare(zp.key)).map(mc=>(Na=Na||mc.recursive,mc.key)).join("|");return`object:${Pt}:index=${ou}:patterns=${go}`}case"array":return`array:${hs(Wi.node.itemShapeId)}`;case"tuple":return`tuple:${Us(Wi.node.itemShapeIds,!1).join(",")}:rest=${Wi.node.additionalItems===!0?"unknown":typeof Wi.node.additionalItems=="string"?hs(Wi.node.additionalItems):"none"}`;case"map":return`map:${hs(Wi.node.valueShapeId)}`;case"allOf":return`allOf:${Us(Wi.node.items,!0).join("&")}`;case"anyOf":return`anyOf:${Us(Wi.node.items,!0).join("|")}`;case"oneOf":return`oneOf:${Us(Wi.node.items,!0).join("|")}`;case"nullable":return`nullable:${hs(Wi.node.itemShapeId)}`;case"ref":return hs(Wi.node.target);case"not":case"conditional":return"unknown";case"graphqlInterface":{let uc=Object.entries(Wi.node.fields).sort(([ou],[go])=>ou.localeCompare(go)).map(([ou,go])=>`${ou}:${hs(go.shapeId)}`).join(","),Pt=Us(Wi.node.possibleTypeIds,!0).join("|");return`graphqlInterface:${uc}:possible=${Pt}`}case"graphqlUnion":return`graphqlUnion:${Us(Wi.node.memberTypeIds,!0).join("|")}`}})(),Wu={key:`sig:${Uqr(Sc)}`,recursive:Na};return s.set(an,Wu),Wu},Re=(an,Xr=[])=>X(an,Xr).key,Je=an=>{if(!d.has(an)){d.add(an);for(let Xr of y5t(M2(r,an).node))Je(Xr)}};for(let an of i)Je(an.shapeId);for(let an of d){let Xr=M2(r,an);if(Xr.synthetic)continue;let li=Wqr(Xr);li&&(V.set(an,li),j.set(li,(j.get(li)??0)+1))}let pt=an=>{let Xr=V.get(an);return Xr&&j.get(Xr)===1?Xr:void 0},$e=[],xt=new Set,tr=an=>{let Xr=$e.indexOf(an);if(Xr===-1){h.add(an);return}for(let li of $e.slice(Xr))h.add(li);h.add(an)},ht=an=>{if(!xt.has(an)){if($e.includes(an)){tr(an);return}$e.push(an);for(let Xr of y5t(M2(r,an).node)){if($e.includes(Xr)){tr(Xr);continue}ht(Xr)}$e.pop(),xt.add(an)}};for(let an of i){ht(an.shapeId);let Xr=A.get(an.shapeId);(!Xr||an.aliasHint.length{if(Xr.includes(an))return null;let li=M2(r,an);switch(li.node.type){case"ref":return wt(li.node.target,[...Xr,an]);case"object":return{shapeId:an,node:li.node};default:return null}},Ut=(an,Xr=[])=>{if(Xr.includes(an))return null;let li=M2(r,an);switch(li.node.type){case"ref":return Ut(li.node.target,[...Xr,an]);case"const":return[xY(li.node.value)];case"enum":return li.node.values.map(Wi=>xY(Wi));default:return null}},hr=an=>{let[Xr,...li]=an;return Xr?li.every(Wi=>{let Bo=Xr.node.additionalProperties,Wn=Wi.node.additionalProperties;return Bo===Wn?!0:typeof Bo=="string"&&typeof Wn=="string"&&Re(Bo)===Re(Wn)}):!1},Hi=an=>{let[Xr,...li]=an;if(!Xr)return!1;let Wi=Xr.node.patternProperties??{},Bo=Object.keys(Wi).sort();return li.every(Wn=>{let Na=Wn.node.patternProperties??{},hs=Object.keys(Na).sort();return hs.length!==Bo.length||hs.some((Us,Sc)=>Us!==Bo[Sc])?!1:hs.every(Us=>Re(Wi[Us])===Re(Na[Us]))})},un=an=>{let[Xr]=an;if(!Xr)return null;let li=["type","kind","action","status","event"];return Object.keys(Xr.node.fields).filter(Na=>an.every(hs=>(hs.node.required??[]).includes(Na))).flatMap(Na=>{let hs=an.map(Sc=>{let Wu=Sc.node.fields[Na];return Wu?Ut(Wu.shapeId):null});if(hs.some(Sc=>Sc===null||Sc.length===0))return[];let Us=new Set;for(let Sc of hs)for(let Wu of Sc){if(Us.has(Wu))return[];Us.add(Wu)}return[{key:Na,serializedValuesByVariant:hs}]}).sort((Na,hs)=>{let Us=li.indexOf(Na.key),Sc=li.indexOf(hs.key),Wu=Us===-1?Number.MAX_SAFE_INTEGER:Us,uc=Sc===-1?Number.MAX_SAFE_INTEGER:Sc;return Wu-uc||Na.key.localeCompare(hs.key)})[0]??null},xo=(an,Xr)=>{let li=an?.serializedValuesByVariant[Xr]?.[0];return li?li.startsWith('"')&&li.endsWith('"')?eV(li.slice(1,-1)):eV(li):`Variant${String(Xr+1)}`},Lo=(an,Xr,li,Wi,Bo)=>{let Wn=an.map(mc=>wt(mc));if(Wn.some(mc=>mc===null))return null;let Na=Wn;if(Na.length===0||!hr(Na)||!Hi(Na))return null;let hs=un(Na),[Us]=Na;if(!Us)return null;let Sc=Object.keys(Us.node.fields).filter(mc=>mc!==hs?.key).filter(mc=>{let zp=Us.node.fields[mc];if(!zp)return!1;let Rh=(Us.node.required??[]).includes(mc);return Na.every(K0=>{let rf=K0.node.fields[mc];return rf?(K0.node.required??[]).includes(mc)===Rh&&Re(rf.shapeId)===Re(zp.shapeId):!1})}),Wu={fields:Object.fromEntries(Sc.map(mc=>[mc,Us.node.fields[mc]])),required:Sc.filter(mc=>(Us.node.required??[]).includes(mc)),additionalProperties:Us.node.additionalProperties,patternProperties:Us.node.patternProperties??{}},uc=Sc.length>0||Wu.additionalProperties===!0||typeof Wu.additionalProperties=="string"||Object.keys(Wu.patternProperties).length>0;if(!uc&&hs===null)return null;let Pt=uc?TQe(Wu,Xr,li,Wi,Bo):null,go=Na.map((mc,zp)=>{let Rh=Object.keys(mc.node.fields).filter(rf=>!Sc.includes(rf)),K0={fields:Object.fromEntries(Rh.map(rf=>[rf,mc.node.fields[rf]])),required:Rh.filter(rf=>(mc.node.required??[]).includes(rf)),additionalProperties:!1,patternProperties:{}};return TQe(K0,Xr,li?c0(li,xo(hs,zp)):xo(hs,zp),Wi,Bo)}).map(mc=>Jj(mc)).join(" | ");return Pt?`${Jj(Pt)} & (${go})`:go},yr=(an,Xr)=>{let li=b.get(an);if(li)return li;let Wi=M2(r,an),Bo=A.get(an),Wn=Xr?Kqr(Xr):void 0,Na=pt(an),hs=[Bo,Na,Hqr(Wi.provenance),V.get(an),Wn,eV(Wi.id)].filter(uc=>uc!==void 0),[Us=eV(Wi.id)]=hs,Sc=hs.find(uc=>!ie.has(uc))??Us,Wu=2;for(;ie.has(Sc);)Sc=`${Us}_${String(Wu)}`,Wu+=1;return b.set(an,Sc),ie.add(Sc),Sc},co=an=>{let Xr=M2(r,an);return SQe(Xr.node)?!1:l.has(an)?!0:Xr.node.type==="ref"?!1:pt(an)!==void 0||S.has(an)},Cs=(an,Xr,li)=>{let Wi=M2(r,an);switch(Wi.node.type){case"anyOf":case"oneOf":return Lo(Wi.node.items,Xr,li,ol,!0)??bY(r,an,Xr,li,ol,!0);case"graphqlUnion":return Lo(Wi.node.memberTypeIds,Xr,li,ol,!0)??bY(r,an,Xr,li,ol,!0);default:return bY(r,an,Xr,li,ol,!0)}},Cr=an=>{let Xr=L.get(an);if(Xr)return Xr;let li=Cs(an,[an],yr(an));return L.set(an,li),li},ol=(an,Xr={})=>{let li=M2(r,an);if(SQe(li.node))return xQe(li.node);let Wi=Xr.stack??[];return li.node.type==="ref"&&!l.has(an)?Wi.includes(an)?ol(li.node.target,{stack:Wi,aliasHint:Xr.aliasHint}):Cs(an,[...Wi,an],Xr.aliasHint):Wi.includes(an)||co(an)?(te.add(an),yr(an,Xr.aliasHint)):Cs(an,[...Wi,an],Xr.aliasHint)},Zo=(an,Xr={})=>{let li=M2(r,an);if(SQe(li.node))return xQe(li.node);let Wi=Xr.stack??[];if(Wi.includes(an))return"unknown";switch(li.node.type){case"anyOf":case"oneOf":return Lo(li.node.items,[...Wi,an],Xr.aliasHint,Zo,!1)??bY(r,an,[...Wi,an],Xr.aliasHint,Zo,!1);case"graphqlUnion":return Lo(li.node.memberTypeIds,[...Wi,an],Xr.aliasHint,Zo,!1)??bY(r,an,[...Wi,an],Xr.aliasHint,Zo,!1)}return bY(r,an,[...Wi,an],Xr.aliasHint,Zo,!1)};return{renderSelfContainedShape:Zo,renderDeclarationShape:ol,supportingDeclarations:()=>{let an=[...te],Xr=new Set,li=0;for(;liyr(Bo).localeCompare(yr(Wn))).map(Bo=>{let Wn=yr(Bo),Na=M2(r,Bo),hs=lpe({title:Na.title,docs:Na.docs,deprecated:Na.deprecated,includeTitle:!0}),Us=Cr(Bo),Sc=`type ${Wn} = ${Us};`;return hs?`${hs} +${Sc}`:Sc})}}},cCe=e=>Object.values(e.toolDescriptors).sort((r,i)=>r.toolPath.join(".").localeCompare(i.toolPath.join("."))).flatMap(r=>[{shapeId:r.callShapeId,aliasHint:c0(...r.toolPath,"call")},...r.resultShapeId?[{shapeId:r.resultShapeId,aliasHint:c0(...r.toolPath,"result")}]:[]]),ppe=(e,r)=>{let i=M2(e,r);switch(i.node.type){case"ref":return ppe(e,i.node.target);case"object":return(i.node.required??[]).length===0;default:return!1}};var Xqr=Object.create,LQe=Object.defineProperty,Yqr=Object.getOwnPropertyDescriptor,eJr=Object.getOwnPropertyNames,tJr=Object.getPrototypeOf,rJr=Object.prototype.hasOwnProperty,nJr=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),MQe=(e,r)=>{for(var i in r)LQe(e,i,{get:r[i],enumerable:!0})},iJr=(e,r,i,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of eJr(r))!rJr.call(e,l)&&l!==i&&LQe(e,l,{get:()=>r[l],enumerable:!(s=Yqr(r,l))||s.enumerable});return e},oJr=(e,r,i)=>(i=e!=null?Xqr(tJr(e)):{},iJr(r||!e||!e.__esModule?LQe(i,"default",{value:e,enumerable:!0}):i,e)),aJr=nJr((e,r)=>{var i,s,l,d,h,S,b,A,L,V,j,ie,te,X,Re,Je,pt,$e,xt,tr;te=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,ie=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,i=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,Re=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,j=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,Je=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,xt=/[\t\v\f\ufeff\p{Zs}]+/yu,A=/\r?\n|[\r\u2028\u2029]/y,L=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,X=/\/\/.*/y,l=/[<>.:={}]|\/(?![\/*])/y,s=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,d=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,h=/[^<>{}]+/y,$e=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,pt=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,S=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,b=/^(?:return|throw|yield)$/,V=RegExp(A.source),r.exports=tr=function*(ht,{jsx:wt=!1}={}){var Ut,hr,Hi,un,xo,Lo,yr,co,Cs,Cr,ol,Zo,Rc,an;for({length:Lo}=ht,un=0,xo="",an=[{tag:"JS"}],Ut=[],ol=0,Zo=!1;un":an.pop(),xo==="/"||co.tag==="JSXTagEnd"?(Cr="?JSX",Zo=!0):an.push({tag:"JSXChildren"});break;case"{":an.push({tag:"InterpolationInJSX",nesting:Ut.length}),Cr="?InterpolationInJSX",Zo=!1;break;case"/":xo==="<"&&(an.pop(),an[an.length-1].tag==="JSXChildren"&&an.pop(),an.push({tag:"JSXTagEnd"}))}xo=Cr,yield{type:"JSXPunctuator",value:yr[0]};continue}if(s.lastIndex=un,yr=s.exec(ht)){un=s.lastIndex,xo=yr[0],yield{type:"JSXIdentifier",value:yr[0]};continue}if(d.lastIndex=un,yr=d.exec(ht)){un=d.lastIndex,xo=yr[0],yield{type:"JSXString",value:yr[0],closed:yr[2]!==void 0};continue}break;case"JSXChildren":if(h.lastIndex=un,yr=h.exec(ht)){un=h.lastIndex,xo=yr[0],yield{type:"JSXText",value:yr[0]};continue}switch(ht[un]){case"<":an.push({tag:"JSXTag"}),un++,xo="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":an.push({tag:"InterpolationInJSX",nesting:Ut.length}),un++,xo="?InterpolationInJSX",Zo=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(xt.lastIndex=un,yr=xt.exec(ht)){un=xt.lastIndex,yield{type:"WhiteSpace",value:yr[0]};continue}if(A.lastIndex=un,yr=A.exec(ht)){un=A.lastIndex,Zo=!1,b.test(xo)&&(xo="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:yr[0]};continue}if(L.lastIndex=un,yr=L.exec(ht)){un=L.lastIndex,V.test(yr[0])&&(Zo=!1,b.test(xo)&&(xo="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:yr[0],closed:yr[1]!==void 0};continue}if(X.lastIndex=un,yr=X.exec(ht)){un=X.lastIndex,Zo=!1,yield{type:"SingleLineComment",value:yr[0]};continue}hr=String.fromCodePoint(ht.codePointAt(un)),un+=hr.length,xo=hr,Zo=!1,yield{type:co.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:hr}}}}),sJr={};MQe(sJr,{__debug:()=>ZGr,check:()=>KGr,doc:()=>J9t,format:()=>bCe,formatWithCursor:()=>H9t,getSupportInfo:()=>QGr,util:()=>V9t,version:()=>xGr});var mpe=(e,r)=>(i,s,...l)=>i|1&&s==null?void 0:(r.call(s)??s[e]).apply(s,l),cJr=String.prototype.replaceAll??function(e,r){return e.global?this.replace(e,r):this.split(e).join(r)},lJr=mpe("replaceAll",function(){if(typeof this=="string")return cJr}),fCe=lJr,uJr=class{diff(e,r,i={}){let s;typeof i=="function"?(s=i,i={}):"callback"in i&&(s=i.callback);let l=this.castInput(e,i),d=this.castInput(r,i),h=this.removeEmpty(this.tokenize(l,i)),S=this.removeEmpty(this.tokenize(d,i));return this.diffWithOptionsObj(h,S,i,s)}diffWithOptionsObj(e,r,i,s){var l;let d=Je=>{if(Je=this.postProcess(Je,i),s){setTimeout(function(){s(Je)},0);return}else return Je},h=r.length,S=e.length,b=1,A=h+S;i.maxEditLength!=null&&(A=Math.min(A,i.maxEditLength));let L=(l=i.timeout)!==null&&l!==void 0?l:1/0,V=Date.now()+L,j=[{oldPos:-1,lastComponent:void 0}],ie=this.extractCommon(j[0],r,e,0,i);if(j[0].oldPos+1>=S&&ie+1>=h)return d(this.buildValues(j[0].lastComponent,r,e));let te=-1/0,X=1/0,Re=()=>{for(let Je=Math.max(te,-b);Je<=Math.min(X,b);Je+=2){let pt,$e=j[Je-1],xt=j[Je+1];$e&&(j[Je-1]=void 0);let tr=!1;if(xt){let wt=xt.oldPos-Je;tr=xt&&0<=wt&&wt=S&&ie+1>=h)return d(this.buildValues(pt.lastComponent,r,e))||!0;j[Je]=pt,pt.oldPos+1>=S&&(X=Math.min(X,Je-1)),ie+1>=h&&(te=Math.max(te,Je+1))}b++};if(s)(function Je(){setTimeout(function(){if(b>A||Date.now()>V)return s(void 0);Re()||Je()},0)})();else for(;b<=A&&Date.now()<=V;){let Je=Re();if(Je)return Je}}addToPath(e,r,i,s,l){let d=e.lastComponent;return d&&!l.oneChangePerToken&&d.added===r&&d.removed===i?{oldPos:e.oldPos+s,lastComponent:{count:d.count+1,added:r,removed:i,previousComponent:d.previousComponent}}:{oldPos:e.oldPos+s,lastComponent:{count:1,added:r,removed:i,previousComponent:d}}}extractCommon(e,r,i,s,l){let d=r.length,h=i.length,S=e.oldPos,b=S-s,A=0;for(;b+1V.length?ie:V}),A.value=this.join(L)}else A.value=this.join(r.slice(S,S+A.count));S+=A.count,A.added||(b+=A.count)}}return s}},pJr=class extends uJr{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},_Jr=new pJr;function dJr(e,r,i){return _Jr.diff(e,r,i)}var fJr=()=>{},Wj=fJr,H5t="cr",K5t="crlf",mJr="lf",hJr=mJr,jQe="\r",Q5t=`\r +`,mCe=` +`,gJr=mCe;function yJr(e){let r=e.indexOf(jQe);return r!==-1?e.charAt(r+1)===mCe?K5t:H5t:hJr}function BQe(e){return e===H5t?jQe:e===K5t?Q5t:gJr}var vJr=new Map([[mCe,/\n/gu],[jQe,/\r/gu],[Q5t,/\r\n/gu]]);function Z5t(e,r){let i=vJr.get(r);return e.match(i)?.length??0}var SJr=/\r\n?/gu;function bJr(e){return fCe(0,e,SJr,mCe)}function xJr(e){return this[e<0?this.length+e:e]}var TJr=mpe("at",function(){if(Array.isArray(this)||typeof this=="string")return xJr}),Kv=TJr,oV="string",A5="array",Hj="cursor",w5="indent",I5="align",P5="trim",mk="group",a8="fill",ED="if-break",N5="indent-if-break",O5="line-suffix",F5="line-suffix-boundary",ix="line",s8="label",Yw="break-parent",X5t=new Set([Hj,w5,I5,P5,mk,a8,ED,N5,O5,F5,ix,s8,Yw]);function EJr(e){let r=e.length;for(;r>0&&(e[r-1]==="\r"||e[r-1]===` +`);)r--;return rnew Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function DJr(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}', +Expected it to be 'string' or 'object'.`;if(aV(e))throw new Error("doc is valid.");let i=Object.prototype.toString.call(e);if(i!=="[object Object]")return`Unexpected doc '${i}'.`;let s=CJr([...X5t].map(l=>`'${l}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${s}.`}var AJr=class extends Error{name="InvalidDocError";constructor(e){super(DJr(e)),this.doc=e}},kY=AJr,x5t={};function wJr(e,r,i,s){let l=[e];for(;l.length>0;){let d=l.pop();if(d===x5t){i(l.pop());continue}i&&l.push(d,x5t);let h=aV(d);if(!h)throw new kY(d);if(r?.(d)!==!1)switch(h){case A5:case a8:{let S=h===A5?d:d.parts;for(let b=S.length,A=b-1;A>=0;--A)l.push(S[A]);break}case ED:l.push(d.flatContents,d.breakContents);break;case mk:if(s&&d.expandedStates)for(let S=d.expandedStates.length,b=S-1;b>=0;--b)l.push(d.expandedStates[b]);else l.push(d.contents);break;case I5:case w5:case N5:case s8:case O5:l.push(d.contents);break;case oV:case Hj:case P5:case F5:case ix:case Yw:break;default:throw new kY(d)}}}var $Qe=wJr;function hCe(e,r){if(typeof e=="string")return r(e);let i=new Map;return s(e);function s(d){if(i.has(d))return i.get(d);let h=l(d);return i.set(d,h),h}function l(d){switch(aV(d)){case A5:return r(d.map(s));case a8:return r({...d,parts:d.parts.map(s)});case ED:return r({...d,breakContents:s(d.breakContents),flatContents:s(d.flatContents)});case mk:{let{expandedStates:h,contents:S}=d;return h?(h=h.map(s),S=h[0]):S=s(S),r({...d,contents:S,expandedStates:h})}case I5:case w5:case N5:case s8:case O5:return r({...d,contents:s(d.contents)});case oV:case Hj:case P5:case F5:case ix:case Yw:return r(d);default:throw new kY(d)}}}function UQe(e,r,i){let s=i,l=!1;function d(h){if(l)return!1;let S=r(h);S!==void 0&&(l=!0,s=S)}return $Qe(e,d),s}function IJr(e){if(e.type===mk&&e.break||e.type===ix&&e.hard||e.type===Yw)return!0}function PJr(e){return UQe(e,IJr,!1)}function T5t(e){if(e.length>0){let r=Kv(0,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function NJr(e){let r=new Set,i=[];function s(d){if(d.type===Yw&&T5t(i),d.type===mk){if(i.push(d),r.has(d))return!1;r.add(d)}}function l(d){d.type===mk&&i.pop().break&&T5t(i)}$Qe(e,s,l,!0)}function OJr(e){return e.type===ix&&!e.hard?e.soft?"":" ":e.type===ED?e.flatContents:e}function FJr(e){return hCe(e,OJr)}function E5t(e){for(e=[...e];e.length>=2&&Kv(0,e,-2).type===ix&&Kv(0,e,-1).type===Yw;)e.length-=2;if(e.length>0){let r=_pe(Kv(0,e,-1));e[e.length-1]=r}return e}function _pe(e){switch(aV(e)){case w5:case N5:case mk:case O5:case s8:{let r=_pe(e.contents);return{...e,contents:r}}case ED:return{...e,breakContents:_pe(e.breakContents),flatContents:_pe(e.flatContents)};case a8:return{...e,parts:E5t(e.parts)};case A5:return E5t(e);case oV:return EJr(e);case I5:case Hj:case P5:case F5:case ix:case Yw:break;default:throw new kY(e)}return e}function Y5t(e){return _pe(LJr(e))}function RJr(e){switch(aV(e)){case a8:if(e.parts.every(r=>r===""))return"";break;case mk:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===mk&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case I5:case w5:case N5:case O5:if(!e.contents)return"";break;case ED:if(!e.flatContents&&!e.breakContents)return"";break;case A5:{let r=[];for(let i of e){if(!i)continue;let[s,...l]=Array.isArray(i)?i:[i];typeof s=="string"&&typeof Kv(0,r,-1)=="string"?r[r.length-1]+=s:r.push(s),r.push(...l)}return r.length===0?"":r.length===1?r[0]:r}case oV:case Hj:case P5:case F5:case ix:case s8:case Yw:break;default:throw new kY(e)}return e}function LJr(e){return hCe(e,r=>RJr(r))}function MJr(e,r=s9t){return hCe(e,i=>typeof i=="string"?i9t(r,i.split(` +`)):i)}function jJr(e){if(e.type===ix)return!0}function BJr(e){return UQe(e,jJr,!1)}function pCe(e,r){return e.type===s8?{...e,contents:r(e.contents)}:r(e)}var o8=Wj,e9t=Wj,$Jr=Wj,UJr=Wj;function dCe(e){return o8(e),{type:w5,contents:e}}function CY(e,r){return UJr(e),o8(r),{type:I5,contents:r,n:e}}function zJr(e){return CY(Number.NEGATIVE_INFINITY,e)}function t9t(e){return CY({type:"root"},e)}function qJr(e){return CY(-1,e)}function r9t(e,r,i){o8(e);let s=e;if(r>0){for(let l=0;l0?`, { ${b.join(", ")} }`:"";return`indentIfBreak(${s(d.contents)}${A})`}if(d.type===mk){let b=[];d.break&&d.break!=="propagated"&&b.push("shouldBreak: true"),d.id&&b.push(`id: ${l(d.id)}`);let A=b.length>0?`, { ${b.join(", ")} }`:"";return d.expandedStates?`conditionalGroup([${d.expandedStates.map(L=>s(L)).join(",")}]${A})`:`group(${s(d.contents)}${A})`}if(d.type===a8)return`fill([${d.parts.map(b=>s(b)).join(", ")}])`;if(d.type===O5)return"lineSuffix("+s(d.contents)+")";if(d.type===F5)return"lineSuffixBoundary";if(d.type===s8)return`label(${JSON.stringify(d.label)}, ${s(d.contents)})`;if(d.type===Hj)return"cursor";throw new Error("Unknown doc type "+d.type)}function l(d){if(typeof d!="symbol")return JSON.stringify(String(d));if(d in r)return r[d];let h=d.description||"symbol";for(let S=0;;S++){let b=h+(S>0?` #${S}`:"");if(!i.has(b))return i.add(b),r[d]=`Symbol.for(${JSON.stringify(b)})`}}}var YJr=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function eVr(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function tVr(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var rVr="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07",nVr=/[^\x20-\x7F]/u,iVr=new Set(rVr);function oVr(e){if(!e)return 0;if(!nVr.test(e))return e.length;e=e.replace(YJr(),i=>iVr.has(i)?" ":" ");let r=0;for(let i of e){let s=i.codePointAt(0);s<=31||s>=127&&s<=159||s>=768&&s<=879||s>=65024&&s<=65039||(r+=eVr(s)||tVr(s)?2:1)}return r}var qQe=oVr,aVr={type:0},sVr={type:1},c9t={value:"",length:0,queue:[],get root(){return c9t}};function l9t(e,r,i){let s=r.type===1?e.queue.slice(0,-1):[...e.queue,r],l="",d=0,h=0,S=0;for(let te of s)switch(te.type){case 0:L(),i.useTabs?b(1):A(i.tabWidth);break;case 3:{let{string:X}=te;L(),l+=X,d+=X.length;break}case 2:{let{width:X}=te;h+=1,S+=X;break}default:throw new Error(`Unexpected indent comment '${te.type}'.`)}return j(),{...e,value:l,length:d,queue:s};function b(te){l+=" ".repeat(te),d+=i.tabWidth*te}function A(te){l+=" ".repeat(te),d+=te}function L(){i.useTabs?V():j()}function V(){h>0&&b(h),ie()}function j(){S>0&&A(S),ie()}function ie(){h=0,S=0}}function cVr(e,r,i){if(!r)return e;if(r.type==="root")return{...e,root:e};if(r===Number.NEGATIVE_INFINITY)return e.root;let s;return typeof r=="number"?r<0?s=sVr:s={type:2,width:r}:s={type:3,string:r},l9t(e,s,i)}function lVr(e,r){return l9t(e,aVr,r)}function uVr(e){let r=0;for(let i=e.length-1;i>=0;i--){let s=e[i];if(s===" "||s===" ")r++;else break}return r}function u9t(e){let r=uVr(e);return{text:r===0?e:e.slice(0,e.length-r),count:r}}var fk=Symbol("MODE_BREAK"),n8=Symbol("MODE_FLAT"),OQe=Symbol("DOC_FILL_PRINTED_LENGTH");function lCe(e,r,i,s,l,d){if(i===Number.POSITIVE_INFINITY)return!0;let h=r.length,S=!1,b=[e],A="";for(;i>=0;){if(b.length===0){if(h===0)return!0;b.push(r[--h]);continue}let{mode:L,doc:V}=b.pop(),j=aV(V);switch(j){case oV:V&&(S&&(A+=" ",i-=1,S=!1),A+=V,i-=qQe(V));break;case A5:case a8:{let ie=j===A5?V:V.parts,te=V[OQe]??0;for(let X=ie.length-1;X>=te;X--)b.push({mode:L,doc:ie[X]});break}case w5:case I5:case N5:case s8:b.push({mode:L,doc:V.contents});break;case P5:{let{text:ie,count:te}=u9t(A);A=ie,i+=te;break}case mk:{if(d&&V.break)return!1;let ie=V.break?fk:L,te=V.expandedStates&&ie===fk?Kv(0,V.expandedStates,-1):V.contents;b.push({mode:ie,doc:te});break}case ED:{let ie=(V.groupId?l[V.groupId]||n8:L)===fk?V.breakContents:V.flatContents;ie&&b.push({mode:L,doc:ie});break}case ix:if(L===fk||V.hard)return!0;V.soft||(S=!0);break;case O5:s=!0;break;case F5:if(s)return!1;break}}return!1}function yCe(e,r){let i=Object.create(null),s=r.printWidth,l=BQe(r.endOfLine),d=0,h=[{indent:c9t,mode:fk,doc:e}],S="",b=!1,A=[],L=[],V=[],j=[],ie=0;for(NJr(e);h.length>0;){let{indent:pt,mode:$e,doc:xt}=h.pop();switch(aV(xt)){case oV:{let tr=l!==` +`?fCe(0,xt,` +`,l):xt;tr&&(S+=tr,h.length>0&&(d+=qQe(tr)));break}case A5:for(let tr=xt.length-1;tr>=0;tr--)h.push({indent:pt,mode:$e,doc:xt[tr]});break;case Hj:if(L.length>=2)throw new Error("There are too many 'cursor' in doc.");L.push(ie+S.length);break;case w5:h.push({indent:lVr(pt,r),mode:$e,doc:xt.contents});break;case I5:h.push({indent:cVr(pt,xt.n,r),mode:$e,doc:xt.contents});break;case P5:Je();break;case mk:switch($e){case n8:if(!b){h.push({indent:pt,mode:xt.break?fk:n8,doc:xt.contents});break}case fk:{b=!1;let tr={indent:pt,mode:n8,doc:xt.contents},ht=s-d,wt=A.length>0;if(!xt.break&&lCe(tr,h,ht,wt,i))h.push(tr);else if(xt.expandedStates){let Ut=Kv(0,xt.expandedStates,-1);if(xt.break){h.push({indent:pt,mode:fk,doc:Ut});break}else for(let hr=1;hr=xt.expandedStates.length){h.push({indent:pt,mode:fk,doc:Ut});break}else{let Hi=xt.expandedStates[hr],un={indent:pt,mode:n8,doc:Hi};if(lCe(un,h,ht,wt,i)){h.push(un);break}}}else h.push({indent:pt,mode:fk,doc:xt.contents});break}}xt.id&&(i[xt.id]=Kv(0,h,-1).mode);break;case a8:{let tr=s-d,ht=xt[OQe]??0,{parts:wt}=xt,Ut=wt.length-ht;if(Ut===0)break;let hr=wt[ht+0],Hi=wt[ht+1],un={indent:pt,mode:n8,doc:hr},xo={indent:pt,mode:fk,doc:hr},Lo=lCe(un,[],tr,A.length>0,i,!0);if(Ut===1){Lo?h.push(un):h.push(xo);break}let yr={indent:pt,mode:n8,doc:Hi},co={indent:pt,mode:fk,doc:Hi};if(Ut===2){Lo?h.push(yr,un):h.push(co,xo);break}let Cs=wt[ht+2],Cr={indent:pt,mode:$e,doc:{...xt,[OQe]:ht+2}},ol=lCe({indent:pt,mode:n8,doc:[hr,Hi,Cs]},[],tr,A.length>0,i,!0);h.push(Cr),ol?h.push(yr,un):Lo?h.push(co,un):h.push(co,xo);break}case ED:case N5:{let tr=xt.groupId?i[xt.groupId]:$e;if(tr===fk){let ht=xt.type===ED?xt.breakContents:xt.negate?xt.contents:dCe(xt.contents);ht&&h.push({indent:pt,mode:$e,doc:ht})}if(tr===n8){let ht=xt.type===ED?xt.flatContents:xt.negate?dCe(xt.contents):xt.contents;ht&&h.push({indent:pt,mode:$e,doc:ht})}break}case O5:A.push({indent:pt,mode:$e,doc:xt.contents});break;case F5:A.length>0&&h.push({indent:pt,mode:$e,doc:zQe});break;case ix:switch($e){case n8:if(xt.hard)b=!0;else{xt.soft||(S+=" ",d+=1);break}case fk:if(A.length>0){h.push({indent:pt,mode:$e,doc:xt},...A.reverse()),A.length=0;break}xt.literal?(S+=l,d=0,pt.root&&(pt.root.value&&(S+=pt.root.value),d=pt.root.length)):(Je(),S+=l+pt.value,d=pt.length);break}break;case s8:h.push({indent:pt,mode:$e,doc:xt.contents});break;case Yw:break;default:throw new kY(xt)}h.length===0&&A.length>0&&(h.push(...A.reverse()),A.length=0)}let te=V.join("")+S,X=[...j,...L];if(X.length!==2)return{formatted:te};let Re=X[0];return{formatted:te,cursorNodeStart:Re,cursorNodeText:te.slice(Re,Kv(0,X,-1))};function Je(){let{text:pt,count:$e}=u9t(S);pt&&(V.push(pt),ie+=pt.length),S="",d-=$e,L.length>0&&(j.push(...L.map(xt=>Math.min(xt,ie))),L.length=0)}}function pVr(e,r,i=0){let s=0;for(let l=i;l1?Kv(0,e,-2):null}getValue(){return Kv(0,this.stack,-1)}getNode(e=0){let r=this.#t(e);return r===-1?null:this.stack[r]}getParentNode(e=0){return this.getNode(e+1)}#t(e){let{stack:r}=this;for(let i=r.length-1;i>=0;i-=2)if(!Array.isArray(r[i])&&--e<0)return i;return-1}call(e,...r){let{stack:i}=this,{length:s}=i,l=Kv(0,i,-1);for(let d of r)l=l?.[d],i.push(d,l);try{return e(this)}finally{i.length=s}}callParent(e,r=0){let i=this.#t(r+1),s=this.stack.splice(i+1);try{return e(this)}finally{this.stack.push(...s)}}each(e,...r){let{stack:i}=this,{length:s}=i,l=Kv(0,i,-1);for(let d of r)l=l[d],i.push(d,l);try{for(let d=0;d{i[l]=e(s,l,d)},...r),i}match(...e){let r=this.stack.length-1,i=null,s=this.stack[r--];for(let l of e){if(s===void 0)return!1;let d=null;if(typeof i=="number"&&(d=i,i=this.stack[r--],s=this.stack[r--]),l&&!l(s,i,d))return!1;i=this.stack[r--],s=this.stack[r--]}return!0}findAncestor(e){for(let r of this.#r())if(e(r))return r}hasAncestor(e){for(let r of this.#r())if(e(r))return!0;return!1}*#r(){let{stack:e}=this;for(let r=e.length-3;r>=0;r-=2){let i=e[r];Array.isArray(i)||(yield i)}}},dVr=_Vr;function fVr(e){return e!==null&&typeof e=="object"}var VQe=fVr;function hpe(e){return(r,i,s)=>{let l=!!s?.backwards;if(i===!1)return!1;let{length:d}=r,h=i;for(;h>=0&&he===` +`||e==="\r"||e==="\u2028"||e==="\u2029";function hVr(e,r,i){let s=!!i?.backwards;if(r===!1)return!1;let l=e.charAt(r);if(s){if(e.charAt(r-1)==="\r"&&l===` +`)return r-2;if(k5t(l))return r-1}else{if(l==="\r"&&e.charAt(r+1)===` +`)return r+2;if(k5t(l))return r+1}return r}var iV=hVr;function gVr(e,r,i={}){let s=Gj(e,i.backwards?r-1:r,i),l=iV(e,s,i);return s!==l}var Vj=gVr;function yVr(e){return Array.isArray(e)&&e.length>0}var vVr=yVr;function*vCe(e,r){let{getVisitorKeys:i,filter:s=()=>!0}=r,l=d=>VQe(d)&&s(d);for(let d of i(e)){let h=e[d];if(Array.isArray(h))for(let S of h)l(S)&&(yield S);else l(h)&&(yield h)}}function*SVr(e,r){let i=[e];for(let s=0;s(d??(d=[e,...r]),l(A,d)?[A]:d9t(A,d,i))),{locStart:S,locEnd:b}=i;return h.sort((A,L)=>S(A)-S(L)||b(A)-b(L)),s.set(e,h),h}var f9t=d9t;function xVr(e){let r=e.type||e.kind||"(unknown type)",i=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return i.length>20&&(i=i.slice(0,19)+"\u2026"),r+(i?" "+i:"")}function WQe(e,r){(e.comments??(e.comments=[])).push(r),r.printed=!1,r.nodeDescription=xVr(e)}function dpe(e,r){r.leading=!0,r.trailing=!1,WQe(e,r)}function tV(e,r,i){r.leading=!1,r.trailing=!1,i&&(r.marker=i),WQe(e,r)}function fpe(e,r){r.leading=!1,r.trailing=!0,WQe(e,r)}var m9t=new WeakMap;function h9t(e,r,i,s,l=[]){let{locStart:d,locEnd:h}=i,S=d(r),b=h(r),A=f9t(e,l,{cache:m9t,locStart:d,locEnd:h,getVisitorKeys:i.getVisitorKeys,filter:i.printer.canAttachComment,getChildren:i.printer.getCommentChildNodes}),L,V,j=0,ie=A.length;for(;j>1,X=A[te],Re=d(X),Je=h(X);if(Re<=S&&b<=Je)return h9t(X,r,i,X,[X,...l]);if(Je<=S){L=X,j=te+1;continue}if(b<=Re){V=X,ie=te;continue}throw new Error("Comment location overlaps with node location")}if(s?.type==="TemplateLiteral"){let{quasis:te}=s,X=CQe(te,r,i);L&&CQe(te,L,i)!==X&&(L=null),V&&CQe(te,V,i)!==X&&(V=null)}return{enclosingNode:s,precedingNode:L,followingNode:V}}var kQe=()=>!1;function TVr(e,r){let{comments:i}=e;if(delete e.comments,!vVr(i)||!r.printer.canAttachComment)return;let s=[],{printer:{features:{experimental_avoidAstMutation:l},handleComments:d={}},originalText:h}=r,{ownLine:S=kQe,endOfLine:b=kQe,remaining:A=kQe}=d,L=i.map((V,j)=>({...h9t(e,V,r),comment:V,text:h,options:r,ast:e,isLastComment:i.length-1===j}));for(let[V,j]of L.entries()){let{comment:ie,precedingNode:te,enclosingNode:X,followingNode:Re,text:Je,options:pt,ast:$e,isLastComment:xt}=j,tr;if(l?tr=[j]:(ie.enclosingNode=X,ie.precedingNode=te,ie.followingNode=Re,tr=[ie,Je,pt,$e,xt]),EVr(Je,pt,L,V))ie.placement="ownLine",S(...tr)||(Re?dpe(Re,ie):te?fpe(te,ie):tV(X||$e,ie));else if(kVr(Je,pt,L,V))ie.placement="endOfLine",b(...tr)||(te?fpe(te,ie):Re?dpe(Re,ie):tV(X||$e,ie));else if(ie.placement="remaining",!A(...tr))if(te&&Re){let ht=s.length;ht>0&&s[ht-1].followingNode!==Re&&C5t(s,pt),s.push(j)}else te?fpe(te,ie):Re?dpe(Re,ie):tV(X||$e,ie)}if(C5t(s,r),!l)for(let V of i)delete V.precedingNode,delete V.enclosingNode,delete V.followingNode}var g9t=e=>!/[\S\n\u2028\u2029]/u.test(e);function EVr(e,r,i,s){let{comment:l,precedingNode:d}=i[s],{locStart:h,locEnd:S}=r,b=h(l);if(d)for(let A=s-1;A>=0;A--){let{comment:L,precedingNode:V}=i[A];if(V!==d||!g9t(e.slice(S(L),b)))break;b=h(L)}return Vj(e,b,{backwards:!0})}function kVr(e,r,i,s){let{comment:l,followingNode:d}=i[s],{locStart:h,locEnd:S}=r,b=S(l);if(d)for(let A=s+1;A0;--h){let{comment:S,precedingNode:b,followingNode:A}=e[h-1];Wj(b,s),Wj(A,l);let L=r.originalText.slice(r.locEnd(S),d);if(r.printer.isGap?.(L,r)??/^[\s(]*$/u.test(L))d=r.locStart(S);else break}for(let[S,{comment:b}]of e.entries())S1&&S.comments.sort((b,A)=>r.locStart(b)-r.locStart(A));e.length=0}function CQe(e,r,i){let s=i.locStart(r)-1;for(let l=1;l!s.has(S)).length===0)return{leading:"",trailing:""};let l=[],d=[],h;return e.each(()=>{let S=e.node;if(s?.has(S))return;let{leading:b,trailing:A}=S;b?l.push(DVr(e,r)):A&&(h=AVr(e,r,h),d.push(h.doc))},"comments"),{leading:l,trailing:d}}function IVr(e,r,i){let{leading:s,trailing:l}=wVr(e,i);return!s&&!l?r:pCe(r,d=>[s,d,l])}function PVr(e){let{[Symbol.for("comments")]:r,[Symbol.for("printedComments")]:i}=e;for(let s of r){if(!s.printed&&!i.has(s))throw new Error('Comment "'+s.value.trim()+'" was not printed. Please report this error!');delete s.printed}}var NVr=()=>Wj,v9t=class extends Error{name="ConfigError"},D5t=class extends Error{name="UndefinedParserError"},OVr={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing +(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). +The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. +The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function S9t({plugins:e=[],showDeprecated:r=!1}={}){let i=e.flatMap(l=>l.languages??[]),s=[];for(let l of RVr(Object.assign({},...e.map(({options:d})=>d),OVr)))!r&&l.deprecated||(Array.isArray(l.choices)&&(r||(l.choices=l.choices.filter(d=>!d.deprecated)),l.name==="parser"&&(l.choices=[...l.choices,...FVr(l.choices,i,e)])),l.pluginDefaults=Object.fromEntries(e.filter(d=>d.defaultOptions?.[l.name]!==void 0).map(d=>[d.name,d.defaultOptions[l.name]])),s.push(l));return{languages:i,options:s}}function*FVr(e,r,i){let s=new Set(e.map(l=>l.value));for(let l of r)if(l.parsers){for(let d of l.parsers)if(!s.has(d)){s.add(d);let h=i.find(b=>b.parsers&&Object.prototype.hasOwnProperty.call(b.parsers,d)),S=l.name;h?.name&&(S+=` (plugin: ${h.name})`),yield{value:d,description:S}}}}function RVr(e){let r=[];for(let[i,s]of Object.entries(e)){let l={name:i,...s};Array.isArray(l.default)&&(l.default=Kv(0,l.default,-1).value),r.push(l)}return r}var LVr=Array.prototype.toReversed??function(){return[...this].reverse()},MVr=mpe("toReversed",function(){if(Array.isArray(this))return LVr}),jVr=MVr;function BVr(){let e=globalThis,r=e.Deno?.build?.os;return typeof r=="string"?r==="windows":e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}var $Vr=BVr();function b9t(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function UVr(e){return e=b9t(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function zVr(e){e=b9t(e);let r=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(r=`\\\\${e.hostname}${r}`),r}function qVr(e){return $Vr?zVr(e):UVr(e)}var JVr=e=>String(e).split(/[/\\]/u).pop(),VVr=e=>String(e).startsWith("file:");function A5t(e,r){if(!r)return;let i=JVr(r).toLowerCase();return e.find(({filenames:s})=>s?.some(l=>l.toLowerCase()===i))??e.find(({extensions:s})=>s?.some(l=>i.endsWith(l)))}function WVr(e,r){if(r)return e.find(({name:i})=>i.toLowerCase()===r)??e.find(({aliases:i})=>i?.includes(r))??e.find(({extensions:i})=>i?.includes(`.${r}`))}var GVr=void 0;function w5t(e,r){if(r){if(VVr(r))try{r=qVr(r)}catch{return}if(typeof r=="string")return e.find(({isSupported:i})=>i?.({filepath:r}))}}function HVr(e,r){let i=jVr(0,e.plugins).flatMap(s=>s.languages??[]);return(WVr(i,r.language)??A5t(i,r.physicalFile)??A5t(i,r.file)??w5t(i,r.physicalFile)??w5t(i,r.file)??GVr?.(i,r.physicalFile))?.parsers[0]}var x9t=HVr,EY={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(i=>EY.value(i)).join(", ")}]`;let r=Object.keys(e);return r.length===0?"{}":`{ ${r.map(i=>`${EY.key(i)}: ${EY.value(e[i])}`).join(", ")} }`},pair:({key:e,value:r})=>EY.value({[e]:r})},HQe=new Proxy(String,{get:()=>HQe}),i8=HQe,T9t=()=>HQe,KVr=(e,r,{descriptor:i})=>{let s=[`${i8.yellow(typeof e=="string"?i.key(e):i.pair(e))} is deprecated`];return r&&s.push(`we now treat it as ${i8.blue(typeof r=="string"?i.key(r):i.pair(r))}`),s.join("; ")+"."},E9t=Symbol.for("vnopts.VALUE_NOT_EXIST"),_Ce=Symbol.for("vnopts.VALUE_UNCHANGED"),I5t=" ".repeat(2),QVr=(e,r,i)=>{let{text:s,list:l}=i.normalizeExpectedResult(i.schemas[e].expected(i)),d=[];return s&&d.push(P5t(e,r,s,i.descriptor)),l&&d.push([P5t(e,r,l.title,i.descriptor)].concat(l.values.map(h=>k9t(h,i.loggerPrintWidth))).join(` +`)),C9t(d,i.loggerPrintWidth)};function P5t(e,r,i,s){return[`Invalid ${i8.red(s.key(e))} value.`,`Expected ${i8.blue(i)},`,`but received ${r===E9t?i8.gray("nothing"):i8.red(s.value(r))}.`].join(" ")}function k9t({text:e,list:r},i){let s=[];return e&&s.push(`- ${i8.blue(e)}`),r&&s.push([`- ${i8.blue(r.title)}:`].concat(r.values.map(l=>k9t(l,i-I5t.length).replace(/^|\n/g,`$&${I5t}`))).join(` +`)),C9t(s,i)}function C9t(e,r){if(e.length===1)return e[0];let[i,s]=e,[l,d]=e.map(h=>h.split(` +`,1)[0].length);return l>r&&l>d?s:i}var TY=[],DQe=[];function AQe(e,r,i){if(e===r)return 0;let s=i?.maxDistance,l=e;e.length>r.length&&(e=r,r=l);let d=e.length,h=r.length;for(;d>0&&e.charCodeAt(~-d)===r.charCodeAt(~-h);)d--,h--;let S=0;for(;Ss)return s;if(d===0)return s!==void 0&&h>s?s:h;let b,A,L,V,j=0,ie=0;for(;jA?V>A?A+1:V:V>L?L+1:V;if(s!==void 0){let te=A;for(j=0;js)return s}}return TY.length=d,DQe.length=d,s!==void 0&&A>s?s:A}function ZVr(e,r,i){if(!Array.isArray(r)||r.length===0)return;let s=i?.maxDistance,l=e.length;for(let b of r)if(b===e)return b;if(s===0)return;let d,h=Number.POSITIVE_INFINITY,S=new Set;for(let b of r){if(S.has(b))continue;S.add(b);let A=Math.abs(b.length-l);if(A>=h||s!==void 0&&A>s)continue;let L=Number.isFinite(h)?s===void 0?h:Math.min(h,s):s,V=L===void 0?AQe(e,b):AQe(e,b,{maxDistance:L});if(s!==void 0&&V>s)continue;let j=V;if(L!==void 0&&V===L&&L===s&&(j=AQe(e,b)),js))return d}var D9t=(e,r,{descriptor:i,logger:s,schemas:l})=>{let d=[`Ignored unknown option ${i8.yellow(i.pair({key:e,value:r}))}.`],h=ZVr(e,Object.keys(l),{maxDistance:3});h&&d.push(`Did you mean ${i8.blue(i.key(h))}?`),s.warn(d.join(" "))},XVr=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function YVr(e,r){let i=new e(r),s=Object.create(i);for(let l of XVr)l in r&&(s[l]=eWr(r[l],i,Kj.prototype[l].length));return s}var Kj=class{static create(e){return YVr(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,r){return!1}deprecated(e,r){return!1}forward(e,r){}redirect(e,r){}overlap(e,r,i){return e}preprocess(e,r){return e}postprocess(e,r){return _Ce}};function eWr(e,r,i){return typeof e=="function"?(...s)=>e(...s.slice(0,i-1),r,...s.slice(i-1)):()=>e}var tWr=class extends Kj{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,r){return r.schemas[this._sourceName].validate(e,r)}redirect(e,r){return this._sourceName}},rWr=class extends Kj{expected(){return"anything"}validate(){return!0}},nWr=class extends Kj{constructor({valueSchema:e,name:r=e.name,...i}){super({...i,name:r}),this._valueSchema=e}expected(e){let{text:r,list:i}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:r&&`an array of ${r}`,list:i&&{title:"an array of the following values",values:[{list:i}]}}}validate(e,r){if(!Array.isArray(e))return!1;let i=[];for(let s of e){let l=r.normalizeValidateResult(this._valueSchema.validate(s,r),s);l!==!0&&i.push(l.value)}return i.length===0?!0:{value:i}}deprecated(e,r){let i=[];for(let s of e){let l=r.normalizeDeprecatedResult(this._valueSchema.deprecated(s,r),s);l!==!1&&i.push(...l.map(({value:d})=>({value:[d]})))}return i}forward(e,r){let i=[];for(let s of e){let l=r.normalizeForwardResult(this._valueSchema.forward(s,r),s);i.push(...l.map(N5t))}return i}redirect(e,r){let i=[],s=[];for(let l of e){let d=r.normalizeRedirectResult(this._valueSchema.redirect(l,r),l);"remain"in d&&i.push(d.remain),s.push(...d.redirect.map(N5t))}return i.length===0?{redirect:s}:{redirect:s,remain:i}}overlap(e,r){return e.concat(r)}};function N5t({from:e,to:r}){return{from:[e],to:r}}var iWr=class extends Kj{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function oWr(e,r){let i=Object.create(null);for(let s of e){let l=s[r];if(i[l])throw new Error(`Duplicate ${r} ${JSON.stringify(l)}`);i[l]=s}return i}function aWr(e,r){let i=new Map;for(let s of e){let l=s[r];if(i.has(l))throw new Error(`Duplicate ${r} ${JSON.stringify(l)}`);i.set(l,s)}return i}function sWr(){let e=Object.create(null);return r=>{let i=JSON.stringify(r);return e[i]?!0:(e[i]=!0,!1)}}function cWr(e,r){let i=[],s=[];for(let l of e)r(l)?i.push(l):s.push(l);return[i,s]}function lWr(e){return e===Math.floor(e)}function uWr(e,r){if(e===r)return 0;let i=typeof e,s=typeof r,l=["undefined","object","boolean","number","string"];return i!==s?l.indexOf(i)-l.indexOf(s):i!=="string"?Number(e)-Number(r):e.localeCompare(r)}function pWr(e){return(...r)=>{let i=e(...r);return typeof i=="string"?new Error(i):i}}function O5t(e){return e===void 0?{}:e}function A9t(e){if(typeof e=="string")return{text:e};let{text:r,list:i}=e;return _Wr((r||i)!==void 0,"Unexpected `expected` result, there should be at least one field."),i?{text:r,list:{title:i.title,values:i.values.map(A9t)}}:{text:r}}function F5t(e,r){return e===!0?!0:e===!1?{value:r}:e}function R5t(e,r,i=!1){return e===!1?!1:e===!0?i?!0:[{value:r}]:"value"in e?[e]:e.length===0?!1:e}function L5t(e,r){return typeof e=="string"||"key"in e?{from:r,to:e}:"from"in e?{from:e.from,to:e.to}:{from:r,to:e.to}}function FQe(e,r){return e===void 0?[]:Array.isArray(e)?e.map(i=>L5t(i,r)):[L5t(e,r)]}function M5t(e,r){let i=FQe(typeof e=="object"&&"redirect"in e?e.redirect:e,r);return i.length===0?{remain:r,redirect:i}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:i}:{redirect:i}}function _Wr(e,r){if(!e)throw new Error(r)}var dWr=class extends Kj{constructor(e){super(e),this._choices=aWr(e.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:e}){let r=Array.from(this._choices.keys()).map(l=>this._choices.get(l)).filter(({hidden:l})=>!l).map(l=>l.value).sort(uWr).map(e.value),i=r.slice(0,-2),s=r.slice(-2);return{text:i.concat(s.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(e){return this._choices.has(e)}deprecated(e){let r=this._choices.get(e);return r&&r.deprecated?{value:e}:!1}forward(e){let r=this._choices.get(e);return r?r.forward:void 0}redirect(e){let r=this._choices.get(e);return r?r.redirect:void 0}},fWr=class extends Kj{expected(){return"a number"}validate(e,r){return typeof e=="number"}},mWr=class extends fWr{expected(){return"an integer"}validate(e,r){return r.normalizeValidateResult(super.validate(e,r),e)===!0&&lWr(e)}},j5t=class extends Kj{expected(){return"a string"}validate(e){return typeof e=="string"}},hWr=EY,gWr=D9t,yWr=QVr,vWr=KVr,SWr=class{constructor(e,r){let{logger:i=console,loggerPrintWidth:s=80,descriptor:l=hWr,unknown:d=gWr,invalid:h=yWr,deprecated:S=vWr,missing:b=()=>!1,required:A=()=>!1,preprocess:L=j=>j,postprocess:V=()=>_Ce}=r||{};this._utils={descriptor:l,logger:i||{warn:()=>{}},loggerPrintWidth:s,schemas:oWr(e,"name"),normalizeDefaultResult:O5t,normalizeExpectedResult:A9t,normalizeDeprecatedResult:R5t,normalizeForwardResult:FQe,normalizeRedirectResult:M5t,normalizeValidateResult:F5t},this._unknownHandler=d,this._invalidHandler=pWr(h),this._deprecatedHandler=S,this._identifyMissing=(j,ie)=>!(j in ie)||b(j,ie),this._identifyRequired=A,this._preprocess=L,this._postprocess=V,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=sWr()}normalize(e){let r={},i=[this._preprocess(e,this._utils)],s=()=>{for(;i.length!==0;){let l=i.shift(),d=this._applyNormalization(l,r);i.push(...d)}};s();for(let l of Object.keys(this._utils.schemas)){let d=this._utils.schemas[l];if(!(l in r)){let h=O5t(d.default(this._utils));"value"in h&&i.push({[l]:h.value})}}s();for(let l of Object.keys(this._utils.schemas)){if(!(l in r))continue;let d=this._utils.schemas[l],h=r[l],S=d.postprocess(h,this._utils);S!==_Ce&&(this._applyValidation(S,l,d),r[l]=S)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(e,r){let i=[],{knownKeys:s,unknownKeys:l}=this._partitionOptionKeys(e);for(let d of s){let h=this._utils.schemas[d],S=h.preprocess(e[d],this._utils);this._applyValidation(S,d,h);let b=({from:V,to:j})=>{i.push(typeof j=="string"?{[j]:V}:{[j.key]:j.value})},A=({value:V,redirectTo:j})=>{let ie=R5t(h.deprecated(V,this._utils),S,!0);if(ie!==!1)if(ie===!0)this._hasDeprecationWarned(d)||this._utils.logger.warn(this._deprecatedHandler(d,j,this._utils));else for(let{value:te}of ie){let X={key:d,value:te};if(!this._hasDeprecationWarned(X)){let Re=typeof j=="string"?{key:j,value:te}:j;this._utils.logger.warn(this._deprecatedHandler(X,Re,this._utils))}}};FQe(h.forward(S,this._utils),S).forEach(b);let L=M5t(h.redirect(S,this._utils),S);if(L.redirect.forEach(b),"remain"in L){let V=L.remain;r[d]=d in r?h.overlap(r[d],V,this._utils):V,A({value:V})}for(let{from:V,to:j}of L.redirect)A({value:V,redirectTo:j})}for(let d of l){let h=e[d];this._applyUnknownHandler(d,h,r,(S,b)=>{i.push({[S]:b})})}return i}_applyRequiredCheck(e){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,e)&&this._identifyRequired(r))throw this._invalidHandler(r,E9t,this._utils)}_partitionOptionKeys(e){let[r,i]=cWr(Object.keys(e).filter(s=>!this._identifyMissing(s,e)),s=>s in this._utils.schemas);return{knownKeys:r,unknownKeys:i}}_applyValidation(e,r,i){let s=F5t(i.validate(e,this._utils),e);if(s!==!0)throw this._invalidHandler(r,s.value,this._utils)}_applyUnknownHandler(e,r,i,s){let l=this._unknownHandler(e,r,this._utils);if(l)for(let d of Object.keys(l)){if(this._identifyMissing(d,l))continue;let h=l[d];d in this._utils.schemas?s(d,h):i[d]=h}}_applyPostprocess(e){let r=this._postprocess(e,this._utils);if(r!==_Ce){if(r.delete)for(let i of r.delete)delete e[i];if(r.override){let{knownKeys:i,unknownKeys:s}=this._partitionOptionKeys(r.override);for(let l of i){let d=r.override[l];this._applyValidation(d,l,this._utils.schemas[l]),e[l]=d}for(let l of s){let d=r.override[l];this._applyUnknownHandler(l,d,e,(h,S)=>{let b=this._utils.schemas[h];this._applyValidation(S,h,b),e[h]=S})}}}}},wQe;function bWr(e,r,{logger:i=!1,isCLI:s=!1,passThrough:l=!1,FlagSchema:d,descriptor:h}={}){if(s){if(!d)throw new Error("'FlagSchema' option is required.");if(!h)throw new Error("'descriptor' option is required.")}else h=EY;let S=l?Array.isArray(l)?(j,ie)=>l.includes(j)?{[j]:ie}:void 0:(j,ie)=>({[j]:ie}):(j,ie,te)=>{let{_:X,...Re}=te.schemas;return D9t(j,ie,{...te,schemas:Re})},b=xWr(r,{isCLI:s,FlagSchema:d}),A=new SWr(b,{logger:i,unknown:S,descriptor:h}),L=i!==!1;L&&wQe&&(A._hasDeprecationWarned=wQe);let V=A.normalize(e);return L&&(wQe=A._hasDeprecationWarned),V}function xWr(e,{isCLI:r,FlagSchema:i}){let s=[];r&&s.push(rWr.create({name:"_"}));for(let l of e)s.push(TWr(l,{isCLI:r,optionInfos:e,FlagSchema:i})),l.alias&&r&&s.push(tWr.create({name:l.alias,sourceName:l.name}));return s}function TWr(e,{isCLI:r,optionInfos:i,FlagSchema:s}){let{name:l}=e,d={name:l},h,S={};switch(e.type){case"int":h=mWr,r&&(d.preprocess=Number);break;case"string":h=j5t;break;case"choice":h=dWr,d.choices=e.choices.map(b=>b?.redirect?{...b,redirect:{to:{key:e.name,value:b.redirect}}}:b);break;case"boolean":h=iWr;break;case"flag":h=s,d.flags=i.flatMap(b=>[b.alias,b.description&&b.name,b.oppositeDescription&&`no-${b.name}`].filter(Boolean));break;case"path":h=j5t;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?d.validate=(b,A,L)=>e.exception(b)||A.validate(b,L):d.validate=(b,A,L)=>b===void 0||A.validate(b,L),e.redirect&&(S.redirect=b=>b?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(S.deprecated=!0),r&&!e.array){let b=d.preprocess||(A=>A);d.preprocess=(A,L,V)=>L.preprocess(b(Array.isArray(A)?Kv(0,A,-1):A),V)}return e.array?nWr.create({...r?{preprocess:b=>Array.isArray(b)?b:[b]}:{},...S,valueSchema:h.create(d)}):h.create({...d,...S})}var EWr=bWr,kWr=Array.prototype.findLast??function(e){for(let r=this.length-1;r>=0;r--){let i=this[r];if(e(i,r,this))return i}},CWr=mpe("findLast",function(){if(Array.isArray(this))return kWr}),w9t=CWr,DWr=Symbol.for("PRETTIER_IS_FRONT_MATTER"),AWr=[];function wWr(e){return!!e?.[DWr]}var KQe=wWr,I9t=new Set(["yaml","toml"]),P9t=({node:e})=>KQe(e)&&I9t.has(e.language);async function IWr(e,r,i,s){let{node:l}=i,{language:d}=l;if(!I9t.has(d))return;let h=l.value.trim(),S;if(h){let b=d==="yaml"?d:x9t(s,{language:d});if(!b)return;S=h?await e(h,{parser:b}):""}else S=h;return t9t([l.startDelimiter,l.explicitLanguage??"",D5,S,S?D5:"",l.endDelimiter])}function PWr(e,r){return P9t({node:e})&&(delete r.end,delete r.raw,delete r.value),r}var NWr=PWr;function OWr({node:e}){return e.raw}var FWr=OWr,N9t=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),RWr=e=>Object.keys(e).filter(r=>!N9t.has(r));function LWr(e,r){let i=e?s=>e(s,N9t):RWr;return r?new Proxy(i,{apply:(s,l,d)=>KQe(d[0])?AWr:Reflect.apply(s,l,d)}):i}var B5t=LWr;function O9t(e,r){if(!r)throw new Error("parserName is required.");let i=w9t(0,e,l=>l.parsers&&Object.prototype.hasOwnProperty.call(l.parsers,r));if(i)return i;let s=`Couldn't resolve parser "${r}".`;throw s+=" Plugins must be explicitly added to the standalone bundle.",new v9t(s)}function MWr(e,r){if(!r)throw new Error("astFormat is required.");let i=w9t(0,e,l=>l.printers&&Object.prototype.hasOwnProperty.call(l.printers,r));if(i)return i;let s=`Couldn't find plugin for AST format "${r}".`;throw s+=" Plugins must be explicitly added to the standalone bundle.",new v9t(s)}function QQe({plugins:e,parser:r}){let i=O9t(e,r);return F9t(i,r)}function F9t(e,r){let i=e.parsers[r];return typeof i=="function"?i():i}async function jWr(e,r){let i=e.printers[r],s=typeof i=="function"?await i():i;return BWr(s)}var IQe=new WeakMap;function BWr(e){if(IQe.has(e))return IQe.get(e);let{features:r,getVisitorKeys:i,embed:s,massageAstNode:l,print:d,...h}=e;r=qWr(r);let S=r.experimental_frontMatterSupport;i=B5t(i,S.massageAstNode||S.embed||S.print);let b=l;l&&S.massageAstNode&&(b=new Proxy(l,{apply(j,ie,te){return NWr(...te),Reflect.apply(j,ie,te)}}));let A=s;if(s){let j;A=new Proxy(s,{get(ie,te,X){return te==="getVisitorKeys"?(j??(j=s.getVisitorKeys?B5t(s.getVisitorKeys,S.massageAstNode||S.embed):i),j):Reflect.get(ie,te,X)},apply:(ie,te,X)=>S.embed&&P9t(...X)?IWr:Reflect.apply(ie,te,X)})}let L=d;S.print&&(L=new Proxy(d,{apply(j,ie,te){let[X]=te;return KQe(X.node)?FWr(X):Reflect.apply(j,ie,te)}}));let V={features:r,getVisitorKeys:i,embed:A,massageAstNode:b,print:L,...h};return IQe.set(e,V),V}var $Wr=["clean","embed","print"],UWr=Object.fromEntries($Wr.map(e=>[e,!1]));function zWr(e){return{...UWr,...e}}function qWr(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:zWr(e?.experimental_frontMatterSupport)}}var $5t={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function JWr(e,r={}){let i={...e};if(!i.parser)if(i.filepath){if(i.parser=x9t(i,{physicalFile:i.filepath}),!i.parser)throw new D5t(`No parser could be inferred for file "${i.filepath}".`)}else throw new D5t("No parser and no file path given, couldn't infer a parser.");let s=S9t({plugins:e.plugins,showDeprecated:!0}).options,l={...$5t,...Object.fromEntries(s.filter(V=>V.default!==void 0).map(V=>[V.name,V.default]))},d=O9t(i.plugins,i.parser),h=await F9t(d,i.parser);i.astFormat=h.astFormat,i.locEnd=h.locEnd,i.locStart=h.locStart;let S=d.printers?.[h.astFormat]?d:MWr(i.plugins,h.astFormat),b=await jWr(S,h.astFormat);i.printer=b,i.getVisitorKeys=b.getVisitorKeys;let A=S.defaultOptions?Object.fromEntries(Object.entries(S.defaultOptions).filter(([,V])=>V!==void 0)):{},L={...l,...A};for(let[V,j]of Object.entries(L))(i[V]===null||i[V]===void 0)&&(i[V]=j);return i.parser==="json"&&(i.trailingComma="none"),EWr(i,s,{passThrough:Object.keys($5t),...r})}var DY=JWr,Eqn=oJr(aJr(),1),ZQe="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\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\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",R9t="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",kqn=new RegExp("["+ZQe+"]"),Cqn=new RegExp("["+ZQe+R9t+"]");ZQe=R9t=null;var XQe={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Dqn=new Set(XQe.keyword),Aqn=new Set(XQe.strict),wqn=new Set(XQe.strictBind),uCe=(e,r)=>i=>e(r(i));function L9t(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:uCe(uCe(e.white,e.bgRed),e.bold),gutter:e.gray,marker:uCe(e.red,e.bold),message:uCe(e.red,e.bold),reset:e.reset}}var Iqn=L9t(T9t(!0)),Pqn=L9t(T9t(!1));function VWr(){return new Proxy({},{get:()=>e=>e})}var U5t=/\r\n|[\n\r\u2028\u2029]/;function WWr(e,r,i){let s=Object.assign({column:0,line:-1},e.start),l=Object.assign({},s,e.end),{linesAbove:d=2,linesBelow:h=3}=i||{},S=s.line,b=s.column,A=l.line,L=l.column,V=Math.max(S-(d+1),0),j=Math.min(r.length,A+h);S===-1&&(V=0),A===-1&&(j=r.length);let ie=A-S,te={};if(ie)for(let X=0;X<=ie;X++){let Re=X+S;if(!b)te[Re]=!0;else if(X===0){let Je=r[Re-1].length;te[Re]=[b,Je-b+1]}else if(X===ie)te[Re]=[0,L];else{let Je=r[Re-X].length;te[Re]=[0,Je]}}else b===L?b?te[S]=[b,0]:te[S]=!0:te[S]=[b,L-b];return{start:V,end:j,markerLines:te}}function GWr(e,r,i={}){let s=VWr(!1),l=e.split(U5t),{start:d,end:h,markerLines:S}=WWr(r,l,i),b=r.start&&typeof r.start.column=="number",A=String(h).length,L=e.split(U5t,h).slice(d,h).map((V,j)=>{let ie=d+1+j,te=` ${` ${ie}`.slice(-A)} |`,X=S[ie],Re=!S[ie+1];if(X){let Je="";if(Array.isArray(X)){let pt=V.slice(0,Math.max(X[0]-1,0)).replace(/[^\t]/g," "),$e=X[1]||1;Je=[` + `,s.gutter(te.replace(/\d/g," "))," ",pt,s.marker("^").repeat($e)].join(""),Re&&i.message&&(Je+=" "+s.message(i.message))}return[s.marker(">"),s.gutter(te),V.length>0?` ${V}`:"",Je].join("")}else return` ${s.gutter(te)}${V.length>0?` ${V}`:""}`}).join(` +`);return i.message&&!b&&(L=`${" ".repeat(A+1)}${i.message} +${L}`),L}async function HWr(e,r){let i=await QQe(r),s=i.preprocess?await i.preprocess(e,r):e;r.originalText=s;let l;try{l=await i.parse(s,r,r)}catch(d){KWr(d,e)}return{text:s,ast:l}}function KWr(e,r){let{loc:i}=e;if(i){let s=GWr(r,i,{highlightCode:!0});throw e.message+=` +`+s,e.codeFrame=s,e}throw e}var gpe=HWr;async function QWr(e,r,i,s,l){if(i.embeddedLanguageFormatting!=="auto")return;let{printer:d}=i,{embed:h}=d;if(!h)return;if(h.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:S}=d,{getVisitorKeys:b}=h,A=[];j();let L=e.stack;for(let{print:ie,node:te,pathStack:X}of A)try{e.stack=X;let Re=await ie(V,r,e,i);Re&&l.set(te,Re)}catch(Re){if(globalThis.PRETTIER_DEBUG)throw Re}e.stack=L;function V(ie,te){return ZWr(ie,te,i,s)}function j(){let{node:ie}=e;if(ie===null||typeof ie!="object"||S?.(e))return;for(let X of b(ie))Array.isArray(ie[X])?e.each(j,X):e.call(j,X);let te=h(e,i);if(te){if(typeof te=="function"){A.push({print:te,node:ie,pathStack:[...e.stack]});return}l.set(ie,te)}}}async function ZWr(e,r,i,s){let l=await DY({...i,...r,parentParser:i.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:d}=await gpe(e,l),h=await s(d,l);return Y5t(h)}function XWr(e,r,i,s){let{originalText:l,[Symbol.for("comments")]:d,locStart:h,locEnd:S,[Symbol.for("printedComments")]:b}=r,{node:A}=e,L=h(A),V=S(A);for(let ie of d)h(ie)>=L&&S(ie)<=V&&b.add(ie);let{printPrettierIgnored:j}=r.printer;return j?j(e,r,i,s):l.slice(L,V)}var YWr=XWr;async function SCe(e,r){({ast:e}=await M9t(e,r));let i=new Map,s=new dVr(e),l=NVr(r),d=new Map;await QWr(s,S,r,SCe,d);let h=await z5t(s,r,S,void 0,d);if(PVr(r),r.cursorOffset>=0){if(r.nodeAfterCursor&&!r.nodeBeforeCursor)return[nV,h];if(r.nodeBeforeCursor&&!r.nodeAfterCursor)return[h,nV]}return h;function S(A,L){return A===void 0||A===s?b(L):Array.isArray(A)?s.call(()=>b(L),...A):s.call(()=>b(L),A)}function b(A){l(s);let L=s.node;if(L==null)return"";let V=VQe(L)&&A===void 0;if(V&&i.has(L))return i.get(L);let j=z5t(s,r,S,A,d);return V&&i.set(L,j),j}}function z5t(e,r,i,s,l){let{node:d}=e,{printer:h}=r,S;switch(h.hasPrettierIgnore?.(e)?S=YWr(e,r,i,s):l.has(d)?S=l.get(d):S=h.print(e,r,i,s),d){case r.cursorNode:S=pCe(S,b=>[nV,b,nV]);break;case r.nodeBeforeCursor:S=pCe(S,b=>[b,nV]);break;case r.nodeAfterCursor:S=pCe(S,b=>[nV,b]);break}return h.printComment&&!h.willPrintOwnComments?.(e,r)&&(S=IVr(e,S,r)),S}async function M9t(e,r){let i=e.comments??[];r[Symbol.for("comments")]=i,r[Symbol.for("printedComments")]=new Set,TVr(e,r);let{printer:{preprocess:s}}=r;return e=s?await s(e,r):e,{ast:e,comments:i}}function eGr(e,r){let{cursorOffset:i,locStart:s,locEnd:l,getVisitorKeys:d}=r,h=ie=>s(ie)<=i&&l(ie)>=i,S=e,b=[e];for(let ie of SVr(e,{getVisitorKeys:d,filter:h}))b.push(ie),S=ie;if(bVr(S,{getVisitorKeys:d}))return{cursorNode:S};let A,L,V=-1,j=Number.POSITIVE_INFINITY;for(;b.length>0&&(A===void 0||L===void 0);){S=b.pop();let ie=A!==void 0,te=L!==void 0;for(let X of vCe(S,{getVisitorKeys:d})){if(!ie){let Re=l(X);Re<=i&&Re>V&&(A=X,V=Re)}if(!te){let Re=s(X);Re>=i&&Reh(j,b)).filter(Boolean);let A={},L=new Set(l(S));for(let j in S)!Object.prototype.hasOwnProperty.call(S,j)||d?.has(j)||(L.has(j)?A[j]=h(S[j],S):A[j]=S[j]);let V=s(S,A,b);if(V!==null)return V??A}}var rGr=tGr,nGr=Array.prototype.findLastIndex??function(e){for(let r=this.length-1;r>=0;r--){let i=this[r];if(e(i,r,this))return r}return-1},iGr=mpe("findLastIndex",function(){if(Array.isArray(this))return nGr}),oGr=iGr,aGr=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function sGr(e,r){return r=new Set(r),e.find(i=>B9t.has(i.type)&&r.has(i))}function q5t(e){let r=oGr(0,e,i=>i.type!=="Program"&&i.type!=="File");return r===-1?e:e.slice(0,r+1)}function cGr(e,r,{locStart:i,locEnd:s}){let[l,...d]=e,[h,...S]=r;if(l===h)return[l,h];let b=i(l);for(let L of q5t(S))if(i(L)>=b)h=L;else break;let A=s(h);for(let L of q5t(d)){if(s(L)<=A)l=L;else break;if(l===h)break}return[l,h]}function RQe(e,r,i,s,l=[],d){let{locStart:h,locEnd:S}=i,b=h(e),A=S(e);if(r>A||rs);let S=e.slice(s,l).search(/\S/u),b=S===-1;if(!b)for(s+=S;l>s&&!/\S/u.test(e[l-1]);--l);let A=RQe(i,s,r,(ie,te)=>J5t(r,ie,te),[],"rangeStart");if(!A)return;let L=b?A:RQe(i,l,r,ie=>J5t(r,ie),[],"rangeEnd");if(!L)return;let V,j;if(aGr(r)){let ie=sGr(A,L);V=ie,j=ie}else[V,j]=cGr(A,L,r);return[Math.min(d(V),d(j)),Math.max(h(V),h(j))]}var $9t="\uFEFF",V5t=Symbol("cursor");async function U9t(e,r,i=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:s,text:l}=await gpe(e,r);r.cursorOffset>=0&&(r={...r,...j9t(s,r)});let d=await SCe(s,r,i);i>0&&(d=r9t([D5,d],i,r.tabWidth));let h=yCe(d,r);if(i>0){let b=h.formatted.trim();h.cursorNodeStart!==void 0&&(h.cursorNodeStart-=h.formatted.indexOf(b),h.cursorNodeStart<0&&(h.cursorNodeStart=0,h.cursorNodeText=h.cursorNodeText.trimStart()),h.cursorNodeStart+h.cursorNodeText.length>b.length&&(h.cursorNodeText=h.cursorNodeText.trimEnd())),h.formatted=b+BQe(r.endOfLine)}let S=r[Symbol.for("comments")];if(r.cursorOffset>=0){let b,A,L,V;if((r.cursorNode||r.nodeBeforeCursor||r.nodeAfterCursor)&&h.cursorNodeText)if(L=h.cursorNodeStart,V=h.cursorNodeText,r.cursorNode)b=r.locStart(r.cursorNode),A=l.slice(b,r.locEnd(r.cursorNode));else{if(!r.nodeBeforeCursor&&!r.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");b=r.nodeBeforeCursor?r.locEnd(r.nodeBeforeCursor):0;let Je=r.nodeAfterCursor?r.locStart(r.nodeAfterCursor):l.length;A=l.slice(b,Je)}else b=0,A=l,L=0,V=h.formatted;let j=r.cursorOffset-b;if(A===V)return{formatted:h.formatted,cursorOffset:L+j,comments:S};let ie=A.split("");ie.splice(j,0,V5t);let te=V.split(""),X=dJr(ie,te),Re=L;for(let Je of X)if(Je.removed){if(Je.value.includes(V5t))break}else Re+=Je.count;return{formatted:h.formatted,cursorOffset:Re,comments:S}}return{formatted:h.formatted,cursorOffset:-1,comments:S}}async function _Gr(e,r){let{ast:i,text:s}=await gpe(e,r),[l,d]=pGr(s,r,i)??[0,0],h=s.slice(l,d),S=Math.min(l,s.lastIndexOf(` +`,l)+1),b=s.slice(S,l).match(/^\s*/u)[0],A=JQe(b,r.tabWidth),L=await U9t(h,{...r,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:r.cursorOffset>l&&r.cursorOffset<=d?r.cursorOffset-l:-1,endOfLine:"lf"},A),V=L.formatted.trimEnd(),{cursorOffset:j}=r;j>d?j+=V.length-h.length:L.cursorOffset>=0&&(j=L.cursorOffset+l);let ie=s.slice(0,l)+V+s.slice(d);if(r.endOfLine!=="lf"){let te=BQe(r.endOfLine);j>=0&&te===`\r +`&&(j+=Z5t(ie.slice(0,j),` +`)),ie=fCe(0,ie,` +`,te)}return{formatted:ie,cursorOffset:j,comments:L.comments}}function PQe(e,r,i){return typeof r!="number"||Number.isNaN(r)||r<0||r>e.length?i:r}function W5t(e,r){let{cursorOffset:i,rangeStart:s,rangeEnd:l}=r;return i=PQe(e,i,-1),s=PQe(e,s,0),l=PQe(e,l,e.length),{...r,cursorOffset:i,rangeStart:s,rangeEnd:l}}function z9t(e,r){let{cursorOffset:i,rangeStart:s,rangeEnd:l,endOfLine:d}=W5t(e,r),h=e.charAt(0)===$9t;if(h&&(e=e.slice(1),i--,s--,l--),d==="auto"&&(d=yJr(e)),e.includes("\r")){let S=b=>Z5t(e.slice(0,Math.max(b,0)),`\r +`);i-=S(i),s-=S(s),l-=S(l),e=bJr(e)}return{hasBOM:h,text:e,options:W5t(e,{...r,cursorOffset:i,rangeStart:s,rangeEnd:l,endOfLine:d})}}async function G5t(e,r){let i=await QQe(r);return!i.hasPragma||i.hasPragma(e)}async function dGr(e,r){return(await QQe(r)).hasIgnorePragma?.(e)}async function q9t(e,r){let{hasBOM:i,text:s,options:l}=z9t(e,await DY(r));if(l.rangeStart>=l.rangeEnd&&s!==""||l.requirePragma&&!await G5t(s,l)||l.checkIgnorePragma&&await dGr(s,l))return{formatted:e,cursorOffset:r.cursorOffset,comments:[]};let d;return l.rangeStart>0||l.rangeEnd=0&&d.cursorOffset++),d}async function fGr(e,r,i){let{text:s,options:l}=z9t(e,await DY(r)),d=await gpe(s,l);return i&&(i.preprocessForPrint&&(d.ast=await M9t(d.ast,l)),i.massage&&(d.ast=rGr(d.ast,l))),d}async function mGr(e,r){r=await DY(r);let i=await SCe(e,r);return yCe(i,r)}async function hGr(e,r){let i=XJr(e),{formatted:s}=await q9t(i,{...r,parser:"__js_expression"});return s}async function gGr(e,r){r=await DY(r);let{ast:i}=await gpe(e,r);return r.cursorOffset>=0&&(r={...r,...j9t(i,r)}),SCe(i,r)}async function yGr(e,r){return yCe(e,await DY(r))}var J9t={};MQe(J9t,{builders:()=>vGr,printer:()=>SGr,utils:()=>bGr});var vGr={join:i9t,line:o9t,softline:KJr,hardline:D5,literalline:s9t,group:n9t,conditionalGroup:VJr,fill:JJr,lineSuffix:NQe,lineSuffixBoundary:QJr,cursor:nV,breakParent:gCe,ifBreak:WJr,trim:ZJr,indent:dCe,indentIfBreak:GJr,align:CY,addAlignmentToDoc:r9t,markAsRoot:t9t,dedentToRoot:zJr,dedent:qJr,hardlineWithoutBreakParent:zQe,literallineWithoutBreakParent:a9t,label:HJr,concat:e=>e},SGr={printDocToString:yCe},bGr={willBreak:PJr,traverseDoc:$Qe,findInDoc:UQe,mapDoc:hCe,removeLines:FJr,stripTrailingHardline:Y5t,replaceEndOfLine:MJr,canBreak:BJr},xGr="3.8.1",V9t={};MQe(V9t,{addDanglingComment:()=>tV,addLeadingComment:()=>dpe,addTrailingComment:()=>fpe,getAlignmentSize:()=>JQe,getIndentSize:()=>AGr,getMaxContinuousCount:()=>PGr,getNextNonSpaceNonCommentCharacter:()=>OGr,getNextNonSpaceNonCommentCharacterIndex:()=>qGr,getPreferredQuote:()=>MGr,getStringWidth:()=>qQe,hasNewline:()=>Vj,hasNewlineInRange:()=>BGr,hasSpaces:()=>UGr,isNextLineEmpty:()=>HGr,isNextLineEmptyAfterIndex:()=>rZe,isPreviousLineEmpty:()=>VGr,makeString:()=>GGr,skip:()=>hpe,skipEverythingButNewLine:()=>_9t,skipInlineComment:()=>YQe,skipNewline:()=>iV,skipSpaces:()=>Gj,skipToLineEnd:()=>p9t,skipTrailingComment:()=>eZe,skipWhitespace:()=>mVr});function TGr(e,r){if(r===!1)return!1;if(e.charAt(r)==="/"&&e.charAt(r+1)==="*"){for(let i=r+2;iMath.max(s,l.length),0)/r.length}var PGr=IGr;function NGr(e,r){let i=tZe(e,r);return i===!1?"":e.charAt(i)}var OGr=NGr,W9t=Object.freeze({character:"'",codePoint:39}),G9t=Object.freeze({character:'"',codePoint:34}),FGr=Object.freeze({preferred:W9t,alternate:G9t}),RGr=Object.freeze({preferred:G9t,alternate:W9t});function LGr(e,r){let{preferred:i,alternate:s}=r===!0||r==="'"?FGr:RGr,{length:l}=e,d=0,h=0;for(let S=0;Sh?s:i).character}var MGr=LGr;function jGr(e,r,i){for(let s=r;sh===s?h:S===r?"\\"+S:S||(i&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(h)?h:"\\"+h));return r+l+r}function HGr(e,r){return arguments.length===2||typeof r=="number"?rZe(e,r):WGr(...arguments)}function rV(e,r=1){return async(...i)=>{let s=i[r]??{},l=s.plugins??[];return i[r]={...s,plugins:Array.isArray(l)?l:Object.values(l)},e(...i)}}var H9t=rV(q9t);async function bCe(e,r){let{formatted:i}=await H9t(e,{...r,cursorOffset:-1});return i}async function KGr(e,r){return await bCe(e,r)===e}var QGr=rV(S9t,0),ZGr={parse:rV(fGr),formatAST:rV(mGr),formatDoc:rV(hGr),printToDoc:rV(gGr),printDocToString:rV(yGr)};var XGr=Object.defineProperty,yZe=(e,r)=>{for(var i in r)XGr(e,i,{get:r[i],enumerable:!0})},vZe={};yZe(vZe,{parsers:()=>QQr});var xRt={};yZe(xRt,{__babel_estree:()=>qQr,__js_expression:()=>SRt,__ts_expression:()=>bRt,__vue_event_binding:()=>yRt,__vue_expression:()=>SRt,__vue_ts_event_binding:()=>vRt,__vue_ts_expression:()=>bRt,babel:()=>yRt,"babel-flow":()=>XRt,"babel-ts":()=>vRt});function YGr(e,r){if(e==null)return{};var i={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(r.indexOf(s)!==-1)continue;i[s]=e[s]}return i}var Yj=class{line;column;index;constructor(e,r,i){this.line=e,this.column=r,this.index=i}},PCe=class{start;end;filename;identifierName;constructor(e,r){this.start=e,this.end=r}};function eI(e,r){let{line:i,column:s,index:l}=e;return new Yj(i,s+r,l+r)}var K9t="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",eHr={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:K9t},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:K9t}},Q9t={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"},CCe=e=>e.type==="UpdateExpression"?Q9t.UpdateExpression[`${e.prefix}`]:Q9t[e.type],tHr={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:r})=>`A string literal cannot be used as an exported binding without \`from\`. +- Did you mean \`export { '${e}' as '${r}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"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 ${e==="BreakStatement"?"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. +- 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 ${CCe(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${CCe(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${CCe(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(r=>JSON.stringify(r)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(r=>JSON.stringify(r)).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:r})=>`Unexpected token${r?` '${r}'.`:""}${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:r})=>`The only valid meta property for ${e} is ${e}.${r}.`,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."},rHr={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."},nHr={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)}\`.`},iHr=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),oHr=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 references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',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 ${CCe({type:e})}; please wrap it in parentheses.`},{}),aHr=["message"];function Z9t(e,r,i){Object.defineProperty(e,r,{enumerable:!1,configurable:!0,value:i})}function sHr({toMessage:e,code:r,reasonCode:i,syntaxPlugin:s}){let l=i==="MissingPlugin"||i==="MissingOneOfPlugins";return function d(h,S){let b=new SyntaxError;return b.code=r,b.reasonCode=i,b.loc=h,b.pos=h.index,b.syntaxPlugin=s,l&&(b.missingPlugin=S.missingPlugin),Z9t(b,"clone",function(A={}){let{line:L,column:V,index:j}=A.loc??h;return d(new Yj(L,V,j),Object.assign({},S,A.details))}),Z9t(b,"details",S),Object.defineProperty(b,"message",{configurable:!0,get(){let A=`${e(S)} (${h.line}:${h.column})`;return this.message=A,A},set(A){Object.defineProperty(this,"message",{value:A,writable:!0})}}),b}}function c8(e,r){if(Array.isArray(e))return s=>c8(s,e[0]);let i={};for(let s of Object.keys(e)){let l=e[s],d=typeof l=="string"?{message:()=>l}:typeof l=="function"?{message:l}:l,{message:h}=d,S=YGr(d,aHr),b=typeof h=="string"?()=>h:h;i[s]=sHr(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:s,toMessage:b},r?{syntaxPlugin:r}:{},S))}return i}var xn=Object.assign({},c8(eHr),c8(tHr),c8(rHr),c8(nHr),c8`pipelineOperator`(oHr));function cHr(){return{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:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function lHr(e){let r=cHr();if(e==null)return r;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let i of Object.keys(r))e[i]!=null&&(r[i]=e[i]);if(r.startLine===1)e.startIndex==null&&r.startColumn>0?r.startIndex=r.startColumn:e.startColumn==null&&r.startIndex>0&&(r.startColumn=r.startIndex);else if(e.startColumn==null||e.startIndex==null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(r.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return r}var{defineProperty:uHr}=Object,X9t=(e,r)=>{e&&uHr(e,r,{enumerable:!1,value:e[r]})};function ype(e){return X9t(e.loc.start,"index"),X9t(e.loc.end,"index"),e}var pHr=e=>class extends e{parse(){let r=ype(super.parse());return this.optionFlags&256&&(r.tokens=r.tokens.map(ype)),r}parseRegExpLiteral({pattern:r,flags:i}){let s=null;try{s=new RegExp(r,i)}catch{}let l=this.estreeParseLiteral(s);return l.regex={pattern:r,flags:i},l}parseBigIntLiteral(r){let i;try{i=BigInt(r)}catch{i=null}let s=this.estreeParseLiteral(i);return s.bigint=String(s.value||r),s}parseDecimalLiteral(r){let i=this.estreeParseLiteral(null);return i.decimal=String(i.value||r),i}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}estreeParseChainExpression(r,i){let s=this.startNodeAtNode(r);return s.expression=r,this.finishNodeAt(s,"ChainExpression",i)}directiveToStmt(r){let i=r.value;delete r.value,this.castNodeTo(i,"Literal"),i.raw=i.extra.raw,i.value=i.extra.expressionValue;let s=this.castNodeTo(r,"ExpressionStatement");return s.expression=i,s.directive=i.extra.rawValue,delete i.extra,s}fillOptionalPropertiesForTSESLint(r){}cloneEstreeStringLiteral(r){let{start:i,end:s,loc:l,range:d,raw:h,value:S}=r,b=Object.create(r.constructor.prototype);return b.type="Literal",b.start=i,b.end=s,b.loc=l,b.range=d,b.raw=h,b.value=S,b}initFunction(r,i){super.initFunction(r,i),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!r.expression.extra?.parenthesized}parseBlockBody(r,i,s,l,d){super.parseBlockBody(r,i,s,l,d);let h=r.directives.map(S=>this.directiveToStmt(S));r.body=h.concat(r.body),delete r.directives}parsePrivateName(){let r=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(r)}convertPrivateNameToPrivateIdentifier(r){let i=super.getPrivateNameSV(r);return delete r.id,r.name=i,this.castNodeTo(r,"PrivateIdentifier")}isPrivateName(r){return r.type==="PrivateIdentifier"}getPrivateNameSV(r){return r.name}parseLiteral(r,i){let s=super.parseLiteral(r,i);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(r,i,s=!1){super.parseFunctionBody(r,i,s),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,i,s,l,d,h,S=!1){let b=this.startNode();b.kind=r.kind,b=super.parseMethod(b,i,s,l,d,h,S),delete b.kind;let{typeParameters:A}=r;A&&(delete r.typeParameters,b.typeParameters=A,this.resetStartLocationFromNode(b,A));let L=this.castNodeTo(b,this.hasPlugin("typescript")&&!b.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return r.value=L,h==="ClassPrivateMethod"&&(r.computed=!1),this.hasPlugin("typescript")&&r.abstract?(delete r.abstract,this.finishNode(r,"TSAbstractMethodDefinition")):h==="ObjectMethod"?(r.kind==="method"&&(r.kind="init"),r.shorthand=!1,this.finishNode(r,"Property")):this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let i=super.parseClassProperty(...r);return i.abstract&&this.hasPlugin("typescript")?(delete i.abstract,this.castNodeTo(i,"TSAbstractPropertyDefinition")):this.castNodeTo(i,"PropertyDefinition"),i}parseClassPrivateProperty(...r){let i=super.parseClassPrivateProperty(...r);return i.abstract&&this.hasPlugin("typescript")?this.castNodeTo(i,"TSAbstractPropertyDefinition"):this.castNodeTo(i,"PropertyDefinition"),i.computed=!1,i}parseClassAccessorProperty(r){let i=super.parseClassAccessorProperty(r);return i.abstract&&this.hasPlugin("typescript")?(delete i.abstract,this.castNodeTo(i,"TSAbstractAccessorProperty")):this.castNodeTo(i,"AccessorProperty"),i}parseObjectProperty(r,i,s,l){let d=super.parseObjectProperty(r,i,s,l);return d&&(d.kind="init",this.castNodeTo(d,"Property")),d}finishObjectProperty(r){return r.kind="init",this.finishNode(r,"Property")}isValidLVal(r,i,s,l){return r==="Property"?"value":super.isValidLVal(r,i,s,l)}isAssignable(r,i){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,i):super.isAssignable(r,i)}toAssignable(r,i=!1){if(r!=null&&this.isObjectProperty(r)){let{key:s,value:l}=r;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(l,i)}else super.toAssignable(r,i)}toAssignableObjectExpressionProp(r,i,s){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(xn.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(xn.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,i,s)}finishCallExpression(r,i){let s=super.finishCallExpression(r,i);return s.callee.type==="Import"?(this.castNodeTo(s,"ImportExpression"),s.source=s.arguments[0],s.options=s.arguments[1]??null,delete s.arguments,delete s.callee):s.type==="OptionalCallExpression"?this.castNodeTo(s,"CallExpression"):s.optional=!1,s}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,i){let s=this.state.lastTokStartLoc,l=super.parseExport(r,i);switch(l.type){case"ExportAllDeclaration":l.exported=null;break;case"ExportNamedDeclaration":l.specifiers.length===1&&l.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(l,"ExportAllDeclaration"),l.exported=l.specifiers[0].exported,delete l.specifiers);case"ExportDefaultDeclaration":{let{declaration:d}=l;d?.type==="ClassDeclaration"&&d.decorators?.length>0&&d.start===l.start&&this.resetStartLocation(l,s)}break}return l}stopParseSubscript(r,i){let s=super.stopParseSubscript(r,i);return i.optionalChainMember?this.estreeParseChainExpression(s,r.loc.end):s}parseMember(r,i,s,l,d){let h=super.parseMember(r,i,s,l,d);return h.type==="OptionalMemberExpression"?this.castNodeTo(h,"MemberExpression"):h.optional=!1,h}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}castNodeTo(r,i){let s=super.castNodeTo(r,i);return this.fillOptionalPropertiesForTSESLint(s),s}cloneIdentifier(r){let i=super.cloneIdentifier(r);return this.fillOptionalPropertiesForTSESLint(i),i}cloneStringLiteral(r){return r.type==="Literal"?this.cloneEstreeStringLiteral(r):super.cloneStringLiteral(r)}finishNodeAt(r,i,s){return ype(super.finishNodeAt(r,i,s))}finishNode(r,i){let s=super.finishNode(r,i);return this.fillOptionalPropertiesForTSESLint(s),s}resetStartLocation(r,i){super.resetStartLocation(r,i),ype(r)}resetEndLocation(r,i=this.state.lastTokEndLoc){super.resetEndLocation(r,i),ype(r)}},xCe=class{constructor(e,r){this.token=e,this.preserveSpace=!!r}token;preserveSpace},kg={brace:new xCe("{"),j_oTag:new xCe("...",!0)},j_=!0,Ks=!0,nZe=!0,vpe=!0,Qj=!0,_Hr=!0,TRt=class{label;keyword;beforeExpr;startsExpr;rightAssociative;isLoop;isAssign;prefix;postfix;binop;constructor(e,r={}){this.label=e,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null}},SZe=new Map;function Hd(e,r={}){r.keyword=e;let i=ql(e,r);return SZe.set(e,i),i}function j2(e,r){return ql(e,{beforeExpr:j_,binop:r})}var Epe=-1,bZe=[],xZe=[],TZe=[],EZe=[],kZe=[],CZe=[];function ql(e,r={}){return++Epe,xZe.push(e),TZe.push(r.binop??-1),EZe.push(r.beforeExpr??!1),kZe.push(r.startsExpr??!1),CZe.push(r.prefix??!1),bZe.push(new TRt(e,r)),Epe}function Q_(e,r={}){return++Epe,SZe.set(e,Epe),xZe.push(e),TZe.push(r.binop??-1),EZe.push(r.beforeExpr??!1),kZe.push(r.startsExpr??!1),CZe.push(r.prefix??!1),bZe.push(new TRt("name",r)),Epe}var dHr={bracketL:ql("[",{beforeExpr:j_,startsExpr:Ks}),bracketHashL:ql("#[",{beforeExpr:j_,startsExpr:Ks}),bracketBarL:ql("[|",{beforeExpr:j_,startsExpr:Ks}),bracketR:ql("]"),bracketBarR:ql("|]"),braceL:ql("{",{beforeExpr:j_,startsExpr:Ks}),braceBarL:ql("{|",{beforeExpr:j_,startsExpr:Ks}),braceHashL:ql("#{",{beforeExpr:j_,startsExpr:Ks}),braceR:ql("}"),braceBarR:ql("|}"),parenL:ql("(",{beforeExpr:j_,startsExpr:Ks}),parenR:ql(")"),comma:ql(",",{beforeExpr:j_}),semi:ql(";",{beforeExpr:j_}),colon:ql(":",{beforeExpr:j_}),doubleColon:ql("::",{beforeExpr:j_}),dot:ql("."),question:ql("?",{beforeExpr:j_}),questionDot:ql("?."),arrow:ql("=>",{beforeExpr:j_}),template:ql("template"),ellipsis:ql("...",{beforeExpr:j_}),backQuote:ql("`",{startsExpr:Ks}),dollarBraceL:ql("${",{beforeExpr:j_,startsExpr:Ks}),templateTail:ql("...`",{startsExpr:Ks}),templateNonTail:ql("...${",{beforeExpr:j_,startsExpr:Ks}),at:ql("@"),hash:ql("#",{startsExpr:Ks}),interpreterDirective:ql("#!..."),eq:ql("=",{beforeExpr:j_,isAssign:vpe}),assign:ql("_=",{beforeExpr:j_,isAssign:vpe}),slashAssign:ql("_=",{beforeExpr:j_,isAssign:vpe}),xorAssign:ql("_=",{beforeExpr:j_,isAssign:vpe}),moduloAssign:ql("_=",{beforeExpr:j_,isAssign:vpe}),incDec:ql("++/--",{prefix:Qj,postfix:_Hr,startsExpr:Ks}),bang:ql("!",{beforeExpr:j_,prefix:Qj,startsExpr:Ks}),tilde:ql("~",{beforeExpr:j_,prefix:Qj,startsExpr:Ks}),doubleCaret:ql("^^",{startsExpr:Ks}),doubleAt:ql("@@",{startsExpr:Ks}),pipeline:j2("|>",0),nullishCoalescing:j2("??",1),logicalOR:j2("||",1),logicalAND:j2("&&",2),bitwiseOR:j2("|",3),bitwiseXOR:j2("^",4),bitwiseAND:j2("&",5),equality:j2("==/!=/===/!==",6),lt:j2("/<=/>=",7),gt:j2("/<=/>=",7),relational:j2("/<=/>=",7),bitShift:j2("<>/>>>",8),bitShiftL:j2("<>/>>>",8),bitShiftR:j2("<>/>>>",8),plusMin:ql("+/-",{beforeExpr:j_,binop:9,prefix:Qj,startsExpr:Ks}),modulo:ql("%",{binop:10,startsExpr:Ks}),star:ql("*",{binop:10}),slash:j2("/",10),exponent:ql("**",{beforeExpr:j_,binop:11,rightAssociative:!0}),_in:Hd("in",{beforeExpr:j_,binop:7}),_instanceof:Hd("instanceof",{beforeExpr:j_,binop:7}),_break:Hd("break"),_case:Hd("case",{beforeExpr:j_}),_catch:Hd("catch"),_continue:Hd("continue"),_debugger:Hd("debugger"),_default:Hd("default",{beforeExpr:j_}),_else:Hd("else",{beforeExpr:j_}),_finally:Hd("finally"),_function:Hd("function",{startsExpr:Ks}),_if:Hd("if"),_return:Hd("return",{beforeExpr:j_}),_switch:Hd("switch"),_throw:Hd("throw",{beforeExpr:j_,prefix:Qj,startsExpr:Ks}),_try:Hd("try"),_var:Hd("var"),_const:Hd("const"),_with:Hd("with"),_new:Hd("new",{beforeExpr:j_,startsExpr:Ks}),_this:Hd("this",{startsExpr:Ks}),_super:Hd("super",{startsExpr:Ks}),_class:Hd("class",{startsExpr:Ks}),_extends:Hd("extends",{beforeExpr:j_}),_export:Hd("export"),_import:Hd("import",{startsExpr:Ks}),_null:Hd("null",{startsExpr:Ks}),_true:Hd("true",{startsExpr:Ks}),_false:Hd("false",{startsExpr:Ks}),_typeof:Hd("typeof",{beforeExpr:j_,prefix:Qj,startsExpr:Ks}),_void:Hd("void",{beforeExpr:j_,prefix:Qj,startsExpr:Ks}),_delete:Hd("delete",{beforeExpr:j_,prefix:Qj,startsExpr:Ks}),_do:Hd("do",{isLoop:nZe,beforeExpr:j_}),_for:Hd("for",{isLoop:nZe}),_while:Hd("while",{isLoop:nZe}),_as:Q_("as",{startsExpr:Ks}),_assert:Q_("assert",{startsExpr:Ks}),_async:Q_("async",{startsExpr:Ks}),_await:Q_("await",{startsExpr:Ks}),_defer:Q_("defer",{startsExpr:Ks}),_from:Q_("from",{startsExpr:Ks}),_get:Q_("get",{startsExpr:Ks}),_let:Q_("let",{startsExpr:Ks}),_meta:Q_("meta",{startsExpr:Ks}),_of:Q_("of",{startsExpr:Ks}),_sent:Q_("sent",{startsExpr:Ks}),_set:Q_("set",{startsExpr:Ks}),_source:Q_("source",{startsExpr:Ks}),_static:Q_("static",{startsExpr:Ks}),_using:Q_("using",{startsExpr:Ks}),_yield:Q_("yield",{startsExpr:Ks}),_asserts:Q_("asserts",{startsExpr:Ks}),_checks:Q_("checks",{startsExpr:Ks}),_exports:Q_("exports",{startsExpr:Ks}),_global:Q_("global",{startsExpr:Ks}),_implements:Q_("implements",{startsExpr:Ks}),_intrinsic:Q_("intrinsic",{startsExpr:Ks}),_infer:Q_("infer",{startsExpr:Ks}),_is:Q_("is",{startsExpr:Ks}),_mixins:Q_("mixins",{startsExpr:Ks}),_proto:Q_("proto",{startsExpr:Ks}),_require:Q_("require",{startsExpr:Ks}),_satisfies:Q_("satisfies",{startsExpr:Ks}),_keyof:Q_("keyof",{startsExpr:Ks}),_readonly:Q_("readonly",{startsExpr:Ks}),_unique:Q_("unique",{startsExpr:Ks}),_abstract:Q_("abstract",{startsExpr:Ks}),_declare:Q_("declare",{startsExpr:Ks}),_enum:Q_("enum",{startsExpr:Ks}),_module:Q_("module",{startsExpr:Ks}),_namespace:Q_("namespace",{startsExpr:Ks}),_interface:Q_("interface",{startsExpr:Ks}),_type:Q_("type",{startsExpr:Ks}),_opaque:Q_("opaque",{startsExpr:Ks}),name:ql("name",{startsExpr:Ks}),placeholder:ql("%%",{startsExpr:Ks}),string:ql("string",{startsExpr:Ks}),num:ql("num",{startsExpr:Ks}),bigint:ql("bigint",{startsExpr:Ks}),decimal:ql("decimal",{startsExpr:Ks}),regexp:ql("regexp",{startsExpr:Ks}),privateName:ql("#name",{startsExpr:Ks}),eof:ql("eof"),jsxName:ql("jsxName"),jsxText:ql("jsxText",{beforeExpr:j_}),jsxTagStart:ql("jsxTagStart",{startsExpr:Ks}),jsxTagEnd:ql("jsxTagEnd")};function fm(e){return e>=93&&e<=133}function fHr(e){return e<=92}function R6(e){return e>=58&&e<=133}function ERt(e){return e>=58&&e<=137}function mHr(e){return EZe[e]}function xpe(e){return kZe[e]}function hHr(e){return e>=29&&e<=33}function Y9t(e){return e>=129&&e<=131}function gHr(e){return e>=90&&e<=92}function DZe(e){return e>=58&&e<=92}function yHr(e){return e>=39&&e<=59}function vHr(e){return e===34}function SHr(e){return CZe[e]}function bHr(e){return e>=121&&e<=123}function xHr(e){return e>=124&&e<=130}function eB(e){return xZe[e]}function DCe(e){return TZe[e]}function THr(e){return e===57}function pZe(e){return e>=24&&e<=25}function kRt(e){return bZe[e]}var AZe="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\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\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",CRt="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",EHr=new RegExp("["+AZe+"]"),kHr=new RegExp("["+AZe+CRt+"]");AZe=CRt=null;var DRt=[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],CHr=[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 _Ze(e,r){let i=65536;for(let s=0,l=r.length;se)return!1;if(i+=r[s+1],i>=e)return!0}return!1}function l8(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&EHr.test(String.fromCharCode(e)):_Ze(e,DRt)}function cV(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&kHr.test(String.fromCharCode(e)):_Ze(e,DRt)||_Ze(e,CHr)}var wZe={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},DHr=new Set(wZe.keyword),AHr=new Set(wZe.strict),wHr=new Set(wZe.strictBind);function ARt(e,r){return r&&e==="await"||e==="enum"}function wRt(e,r){return ARt(e,r)||AHr.has(e)}function IRt(e){return wHr.has(e)}function PRt(e,r){return wRt(e,r)||IRt(e)}function IHr(e){return DHr.has(e)}function PHr(e,r,i){return e===64&&r===64&&l8(i)}var NHr=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"]);function OHr(e){return NHr.has(e)}var IZe=class{flags=0;names=new Map;firstLexicalName="";constructor(e){this.flags=e}},PZe=class{parser;scopeStack=[];inModule;undefinedExports=new Map;constructor(e,r){this.parser=e,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&128)return!0;if(r&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new IZe(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,r,i){let s=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(s,e,r,i);let l=s.names.get(e)||0;r&16?l=l|4:(s.firstLexicalName||(s.firstLexicalName=e),l=l|2),s.names.set(e,l),r&8&&this.maybeExportDefined(s,e)}else if(r&4)for(let l=this.scopeStack.length-1;l>=0&&(s=this.scopeStack[l],this.checkRedeclarationInScope(s,e,r,i),s.names.set(e,(s.names.get(e)||0)|1),this.maybeExportDefined(s,e),!(s.flags&1667));--l);this.parser.inModule&&s.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,r){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(e,r,i,s){this.isRedeclaredInScope(e,r,i)&&this.parser.raise(xn.VarRedeclaration,s,{identifierName:r})}isRedeclaredInScope(e,r,i){if(!(i&1))return!1;if(i&8)return e.names.has(r);let s=e.names.get(r)||0;return i&16?(s&2)>0||!this.treatFunctionsAsVarInScope(e)&&(s&1)>0:(s&2)>0&&!(e.flags&8&&e.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(e)&&(s&4)>0}checkLocalExport(e){let{name:r}=e;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&1667)return r}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&1731&&!(r&4))return r}}},FHr=class extends IZe{declareFunctions=new Set},RHr=class extends PZe{createScope(e){return new FHr(e)}declareName(e,r,i){let s=this.currentScope();if(r&2048){this.checkRedeclarationInScope(s,e,r,i),this.maybeExportDefined(s,e),s.declareFunctions.add(e);return}super.declareName(e,r,i)}isRedeclaredInScope(e,r,i){if(super.isRedeclaredInScope(e,r,i))return!0;if(i&2048&&!e.declareFunctions.has(r)){let s=e.names.get(r);return(s&4)>0||(s&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},LHr=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),iu=c8`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:r})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${r}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:r})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${r}\`.`,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:r})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${r}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:r,explicitType:i})=>`Enum \`${e}\` has type \`${i}\`, so the initializer of \`${r}\` needs to be a ${i} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:r})=>`Symbol enum members cannot be initialized. Use \`${r},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:r})=>`The enum member initializer for \`${r}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:r,suggestion:i})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${r}\`, consider using \`${i}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:r})=>`Number enum members need to be initialized, e.g. \`${r} = 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."},{}),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 ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:r})=>`\`declare export ${e}\` is not supported. Use \`${r}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function MHr(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function eRt(e){return e.importKind==="type"||e.importKind==="typeof"}var jHr={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function BHr(e,r){let i=[],s=[];for(let l=0;lclass extends e{flowPragma=void 0;getScopeHandler(){return RHr}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,i){r!==134&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,i)}addComment(r){if(this.flowPragma===void 0){let i=$Hr.exec(r.value);if(i)if(i[1]==="flow")this.flowPragma="flow";else if(i[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let i=this.state.inType;this.state.inType=!0,this.expect(r||14);let s=this.flowParseType();return this.state.inType=i,s}flowParsePredicate(){let r=this.startNode(),i=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>i.index+1&&this.raise(iu.UnexpectedSpaceBetweenModuloChecks,i),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let i=null,s=null;return this.match(54)?(this.state.inType=r,s=this.flowParsePredicate()):(i=this.flowParseType(),this.state.inType=r,this.match(54)&&(s=this.flowParsePredicate())),[i,s]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let i=r.id=this.parseIdentifier(),s=this.startNode(),l=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);let d=this.flowParseFunctionTypeParams();return s.params=d.params,s.rest=d.rest,s.this=d._this,this.expect(11),[s.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),l.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),i.typeAnnotation=this.finishNode(l,"TypeAnnotation"),this.resetEndLocation(i),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,i){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(i&&this.raise(iu.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,i);throw this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(134)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let i=r.body=this.startNode(),s=i.body=[];for(this.expect(5);!this.match(8);){let h=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(iu.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),s.push(super.parseImport(h))):(this.expectContextual(125,iu.UnsupportedStatementInDeclareModule),s.push(this.flowParseDeclare(h,!0)))}this.scope.exit(),this.expect(8),this.finishNode(i,"BlockStatement");let l=null,d=!1;return s.forEach(h=>{MHr(h)?(l==="CommonJS"&&this.raise(iu.AmbiguousDeclareModuleKind,h),l="ES"):h.type==="DeclareModuleExports"&&(d&&this.raise(iu.DuplicateDeclareModuleExports,h),l==="ES"&&this.raise(iu.AmbiguousDeclareModuleKind,h),l="CommonJS",d=!0)}),r.kind=l||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,i){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!i){let s=this.state.value;throw this.raise(iu.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:s,suggestion:jHr[s]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"?(r.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration")):this.castNodeTo(r,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let i=this.flowParseTypeAlias(r);return this.castNodeTo(i,"DeclareTypeAlias"),i}flowParseDeclareOpaqueType(r){this.next();let i=this.flowParseOpaqueType(r,!0);return this.castNodeTo(i,"DeclareOpaqueType"),i}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,i){if(r.id=this.flowParseRestrictedIdentifier(!i,!0),this.scope.declareName(r.id.name,i?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!i&&this.eat(12));if(i){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:i,allowExact:!1,allowSpread:!1,allowProto:i,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(iu.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,i,s){LHr.has(r)&&this.raise(s?iu.AssignReservedType:iu.UnexpectedReservedType,i,{reservedType:r})}flowParseRestrictedIdentifier(r,i){return this.checkReservedType(this.state.value,this.state.startLoc,i),this.parseIdentifier(r)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,i){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,i||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=!1){let i=this.state.startLoc,s=this.startNode(),l=this.flowParseVariance(),d=this.flowParseTypeAnnotatableIdentifier();return s.name=d.name,s.variance=l,s.bound=d.typeAnnotation,this.match(29)?(this.eat(29),s.default=this.flowParseType()):r&&this.raise(iu.MissingTypeParamDefault,i),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,i=this.startNode();i.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let s=!1;do{let l=this.flowParseTypeParameter(s);i.params.push(l),l.default&&(s=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(i,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==kg.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),i=this.state.inType;return this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=s}),this.state.inType=i,!this.state.inType&&this.curContext()===kg.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let r=this.startNode(),i=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,i,s){return r.static=i,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=s,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,i){return r.static=i,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,i){let s=this.startNode();return r.static=i,r.value=this.flowParseObjectTypeMethodish(s),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:i,allowSpread:s,allowProto:l,allowInexact:d}){let h=this.state.inType;this.state.inType=!0;let S=this.startNode();S.callProperties=[],S.properties=[],S.indexers=[],S.internalSlots=[];let b,A,L=!1;for(i&&this.match(6)?(this.expect(6),b=9,A=!0):(this.expect(5),b=8,A=!1),S.exact=A;!this.match(b);){let j=!1,ie=null,te=null,X=this.startNode();if(l&&this.isContextual(118)){let Je=this.lookahead();Je.type!==14&&Je.type!==17&&(this.next(),ie=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let Je=this.lookahead();Je.type!==14&&Je.type!==17&&(this.next(),j=!0)}let Re=this.flowParseVariance();if(this.eat(0))ie!=null&&this.unexpected(ie),this.eat(0)?(Re&&this.unexpected(Re.loc.start),S.internalSlots.push(this.flowParseObjectTypeInternalSlot(X,j))):S.indexers.push(this.flowParseObjectTypeIndexer(X,j,Re));else if(this.match(10)||this.match(47))ie!=null&&this.unexpected(ie),Re&&this.unexpected(Re.loc.start),S.callProperties.push(this.flowParseObjectTypeCallProperty(X,j));else{let Je="init";if(this.isContextual(99)||this.isContextual(104)){let $e=this.lookahead();ERt($e.type)&&(Je=this.state.value,this.next())}let pt=this.flowParseObjectTypeProperty(X,j,ie,Re,Je,s,d??!A);pt===null?(L=!0,te=this.state.lastTokStartLoc):S.properties.push(pt)}this.flowObjectTypeSemicolon(),te&&!this.match(8)&&!this.match(9)&&this.raise(iu.UnexpectedExplicitInexactInObject,te)}this.expect(b),s&&(S.inexact=L);let V=this.finishNode(S,"ObjectTypeAnnotation");return this.state.inType=h,V}flowParseObjectTypeProperty(r,i,s,l,d,h,S){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(h?S||this.raise(iu.InexactInsideExact,this.state.lastTokStartLoc):this.raise(iu.InexactInsideNonObject,this.state.lastTokStartLoc),l&&this.raise(iu.InexactVariance,l),null):(h||this.raise(iu.UnexpectedSpreadType,this.state.lastTokStartLoc),s!=null&&this.unexpected(s),l&&this.raise(iu.SpreadVariance,l),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=i,r.proto=s!=null,r.kind=d;let b=!1;return this.match(47)||this.match(10)?(r.method=!0,s!=null&&this.unexpected(s),l&&this.unexpected(l.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(d==="get"||d==="set")&&this.flowCheckGetterSetterParams(r),!h&&r.key.name==="constructor"&&r.value.this&&this.raise(iu.ThisParamBannedInConstructor,r.value.this)):(d!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(b=!0),r.value=this.flowParseTypeInitialiser(),r.variance=l),r.optional=b,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let i=r.kind==="get"?0:1,s=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?iu.GetterMayNotHaveThisParam:iu.SetterMayNotHaveThisParam,r.value.this),s!==i&&this.raise(r.kind==="get"?xn.BadGetterArity:xn.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(xn.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,i){r??(r=this.state.startLoc);let s=i||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let l=this.startNodeAt(r);l.qualification=s,l.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(l,"QualifiedTypeIdentifier")}return s}flowParseGenericType(r,i){let s=this.startNodeAt(r);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(r,i),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.possuper.parseFunctionBody(r,!0,s));return}super.parseFunctionBody(r,!1,s)}parseFunctionBodyAndFinish(r,i,s=!1){if(this.match(14)){let l=this.startNode();[l.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=l.typeAnnotation?this.finishNode(l,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,i,s)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let s=this.lookahead();if(R6(s.type)){let l=this.startNode();return this.next(),this.flowParseInterface(l)}}else if(this.isContextual(126)){let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}let i=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(i)&&(this.flowPragma=null),i}parseExpressionStatement(r,i,s){if(i.type==="Identifier"){if(i.name==="declare"){if(this.match(80)||fm(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(fm(this.state.type)){if(i.name==="interface")return this.flowParseInterface(r);if(i.name==="type")return this.flowParseTypeAlias(r);if(i.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){let{type:r}=this.state;return r===126||Y9t(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||Y9t(r)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let V=this.lookaheadCharCode();if(V===44||V===61||V===58||V===41)return this.setOptionalParametersError(s),r}this.expect(17);let l=this.state.clone(),d=this.state.noArrowAt,h=this.startNodeAt(i),{consequent:S,failed:b}=this.tryParseConditionalConsequent(),[A,L]=this.getArrowLikeExpressions(S);if(b||L.length>0){let V=[...d];if(L.length>0){this.state=l,this.state.noArrowAt=V;for(let j=0;j1&&this.raise(iu.AmbiguousConditionalArrow,l.startLoc),b&&A.length===1&&(this.state=l,V.push(A[0].start),this.state.noArrowAt=V,{consequent:S,failed:b}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(S,!0),this.state.noArrowAt=d,this.expect(14),h.test=r,h.consequent=S,h.alternate=this.forwardNoArrowParamsConversionAt(h,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(h,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),i=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:i}}getArrowLikeExpressions(r,i){let s=[r],l=[];for(;s.length!==0;){let d=s.pop();d.type==="ArrowFunctionExpression"&&d.body.type!=="BlockStatement"?(d.typeParameters||!d.returnType?this.finishArrowValidation(d):l.push(d),s.push(d.body)):d.type==="ConditionalExpression"&&(s.push(d.consequent),s.push(d.alternate))}return i?(l.forEach(d=>this.finishArrowValidation(d)),[l,[]]):BHr(l,d=>d.params.every(h=>this.isAssignable(h,!0)))}finishArrowValidation(r){this.toAssignableList(r.params,r.extra?.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,i){let s;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),s=i(),this.state.noArrowParamsConversionAt.pop()):s=i(),s}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let l=this.startNodeAt(i);return l.expression=s,l.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(l,"TypeCastExpression")}return s}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let i=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(i)}else if(this.isContextual(131)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseOpaqueType(i,!1)}else if(this.isContextual(129)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseInterface(i)}else if(this.isContextual(126)){r.exportKind="value";let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:i}=this.state,s=super.maybeParseExportNamespaceSpecifier(r);return s&&r.exportKind==="type"&&this.unexpected(i),s}parseClassId(r,i,s){super.parseClassId(r,i,s),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,i,s){let{startLoc:l}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,i))return;i.declare=!0}super.parseClassMember(r,i,s),i.declare&&(i.type!=="ClassProperty"&&i.type!=="ClassPrivateProperty"&&i.type!=="PropertyDefinition"?this.raise(iu.DeclareClassElement,l):i.value&&this.raise(iu.DeclareClassFieldInitializer,i.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),i="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(xn.InvalidIdentifier,this.state.curPosition(),{identifierName:i}),this.finishToken(132,i)}getTokenFromCode(r){let i=this.input.charCodeAt(this.state.pos+1);r===123&&i===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?i===46?this.finishOp(18,2):this.finishOp(17,1):PHr(r,i,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,i){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,i):super.isAssignable(r,i)}toAssignable(r,i=!1){!i&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,i)}toAssignableList(r,i,s){for(let l=0;l1||!i)&&this.raise(iu.TypeCastInPattern,l.typeAnnotation)}return r}parseArrayLike(r,i,s){let l=super.parseArrayLike(r,i,s);return s!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(l.elements),l}isValidLVal(r,i,s,l){return r==="TypeCastExpression"||super.isValidLVal(r,i,s,l)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,i,s,l,d,h){if(i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,i,s,l,d,h),i.params&&d){let S=i.params;S.length>0&&this.isThisParam(S[0])&&this.raise(iu.ThisParamBannedInConstructor,i)}else if(i.type==="MethodDefinition"&&d&&i.value.params){let S=i.value.params;S.length>0&&this.isThisParam(S[0])&&this.raise(iu.ThisParamBannedInConstructor,i)}}pushClassPrivateMethod(r,i,s,l){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,i,s,l)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let i=r.implements=[];do{let s=this.startNode();s.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?s.typeParameters=this.flowParseTypeParameterInstantiation():s.typeParameters=null,i.push(this.finishNode(s,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let i=this.getObjectOrClassMethodParams(r);if(i.length>0){let s=i[0];this.isThisParam(s)&&r.kind==="get"?this.raise(iu.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(iu.SetterMayNotHaveThisParam,s)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,i,s,l,d,h,S){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let b;this.match(47)&&!h&&(b=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let A=super.parseObjPropValue(r,i,s,l,d,h,S);return b&&((A.value||A).typeParameters=b),A}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(iu.PatternIsOptional,r),this.isThisParam(r)&&this.raise(iu.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(iu.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(iu.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.startsuper.parseMaybeAssign(r,i),s),!l.error)return l.node;let{context:d}=this.state,h=d[d.length-1];(h===kg.j_oTag||h===kg.j_expr)&&d.pop()}if(l?.error||this.match(47)){s=s||this.state.clone();let d,h=this.tryParse(b=>{d=this.flowParseTypeParameterDeclaration();let A=this.forwardNoArrowParamsConversionAt(d,()=>{let V=super.parseMaybeAssign(r,i);return this.resetStartLocationFromNode(V,d),V});A.extra?.parenthesized&&b();let L=this.maybeUnwrapTypeCastExpression(A);return L.type!=="ArrowFunctionExpression"&&b(),L.typeParameters=d,this.resetStartLocationFromNode(L,d),A},s),S=null;if(h.node&&this.maybeUnwrapTypeCastExpression(h.node).type==="ArrowFunctionExpression"){if(!h.error&&!h.aborted)return h.node.async&&this.raise(iu.UnexpectedTypeParameterBeforeAsyncArrowFunction,d),h.node;S=h.node}if(l?.node)return this.state=l.failState,l.node;if(S)return this.state=h.failState,S;throw l?.thrown?l.error:h.thrown?h.error:this.raise(iu.UnexpectedTokenAfterTypeParameter,d)}return super.parseMaybeAssign(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(()=>{let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let l=this.startNode();return[l.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=s,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),l});if(i.thrown)return null;i.error&&(this.state=i.failState),r.returnType=i.node.typeAnnotation?this.finishNode(i.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,i){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?r.params=i:super.setArrowFunctionParameters(r,i)}checkParams(r,i,s,l=!0){if(!(s&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))){for(let d=0;d0&&this.raise(iu.ThisParamMustBeFirst,r.params[d]);super.checkParams(r,i,s,l)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,i,s){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(i.index)){this.next();let l=this.startNodeAt(i);l.callee=r,l.arguments=super.parseCallExpressionArguments(),r=this.finishNode(l,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let l=this.state.clone(),d=this.tryParse(S=>this.parseAsyncArrowWithTypeParameters(i)||S(),l);if(!d.error&&!d.aborted)return d.node;let h=this.tryParse(()=>super.parseSubscripts(r,i,s),l);if(h.node&&!h.error)return h.node;if(d.node)return this.state=d.failState,d.node;if(h.node)return this.state=h.failState,h.node;throw d.error||h.error}return super.parseSubscripts(r,i,s)}parseSubscript(r,i,s,l){if(this.match(18)&&this.isLookaheadToken_lt()){if(l.optionalChainMember=!0,s)return l.stop=!0,r;this.next();let d=this.startNodeAt(i);return d.callee=r,d.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),d.arguments=this.parseCallExpressionArguments(),d.optional=!0,this.finishCallExpression(d,!0)}else if(!s&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let d=this.startNodeAt(i);d.callee=r;let h=this.tryParse(()=>(d.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),d.arguments=super.parseCallExpressionArguments(),l.optionalChainMember&&(d.optional=!1),this.finishCallExpression(d,l.optionalChainMember)));if(h.node)return h.error&&(this.state=h.failState),h.node}return super.parseSubscript(r,i,s,l)}parseNewCallee(r){super.parseNewCallee(r);let i=null;this.shouldParseTypes()&&this.match(47)&&(i=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=i}parseAsyncArrowWithTypeParameters(r){let i=this.startNodeAt(r);if(this.parseFunctionParams(i,!1),!!this.parseArrow(i))return super.parseArrowExpression(i,void 0,!0)}readToken_mult_modulo(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===42&&i===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===124&&i===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,i){let s=super.parseTopLevel(r,i);return this.state.hasFlowComment&&this.raise(iu.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(iu.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,i=2;for(;[32,9].includes(this.input.charCodeAt(r+i));)i++;let s=this.input.charCodeAt(i+r),l=this.input.charCodeAt(i+r+1);return s===58&&l===58?i+2:this.input.slice(i+r,i+r+12)==="flow-include"?i+12:s===58&&l!==58?i:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(xn.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:i,memberName:s}){this.raise(iu.EnumBooleanMemberNotInitialized,r,{memberName:s,enumName:i})}flowEnumErrorInvalidMemberInitializer(r,i){return this.raise(i.explicitType?i.explicitType==="symbol"?iu.EnumInvalidMemberInitializerSymbolType:iu.EnumInvalidMemberInitializerPrimaryType:iu.EnumInvalidMemberInitializerUnknownType,r,i)}flowEnumErrorNumberMemberNotInitialized(r,i){this.raise(iu.EnumNumberMemberNotInitialized,r,i)}flowEnumErrorStringMemberInconsistentlyInitialized(r,i){this.raise(iu.EnumStringMemberInconsistentlyInitialized,r,i)}flowEnumMemberInit(){let r=this.state.startLoc,i=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let s=this.parseNumericLiteral(this.state.value);return i()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 134:{let s=this.parseStringLiteral(this.state.value);return i()?{type:"string",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 85:case 86:{let s=this.parseBooleanLiteral(this.match(85));return i()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,i=this.parseIdentifier(!0),s=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:i,init:s}}flowEnumCheckExplicitTypeMismatch(r,i,s){let{explicitType:l}=i;l!==null&&l!==s&&this.flowEnumErrorInvalidMemberInitializer(r,i)}flowEnumMembers({enumName:r,explicitType:i}){let s=new Set,l={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},d=!1;for(;!this.match(8);){if(this.eat(21)){d=!0;break}let h=this.startNode(),{id:S,init:b}=this.flowEnumMemberRaw(),A=S.name;if(A==="")continue;/^[a-z]/.test(A)&&this.raise(iu.EnumInvalidMemberName,S,{memberName:A,suggestion:A[0].toUpperCase()+A.slice(1),enumName:r}),s.has(A)&&this.raise(iu.EnumDuplicateMemberName,S,{memberName:A,enumName:r}),s.add(A);let L={enumName:r,explicitType:i,memberName:A};switch(h.id=S,b.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(b.loc,L,"boolean"),h.init=b.value,l.booleanMembers.push(this.finishNode(h,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(b.loc,L,"number"),h.init=b.value,l.numberMembers.push(this.finishNode(h,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(b.loc,L,"string"),h.init=b.value,l.stringMembers.push(this.finishNode(h,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(b.loc,L);case"none":switch(i){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(b.loc,L);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(b.loc,L);break;default:l.defaultedMembers.push(this.finishNode(h,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:l,hasUnknownMembers:d}}flowEnumStringMembers(r,i,{enumName:s}){if(r.length===0)return i;if(i.length===0)return r;if(i.length>r.length){for(let l of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(l,{enumName:s});return i}else{for(let l of i)this.flowEnumErrorStringMemberInconsistentlyInitialized(l,{enumName:s});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!fm(this.state.type))throw this.raise(iu.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:i}=this.state;return this.next(),i!=="boolean"&&i!=="number"&&i!=="string"&&i!=="symbol"&&this.raise(iu.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:i}),i}flowEnumBody(r,i){let s=i.name,l=i.loc.start,d=this.flowEnumParseExplicitType({enumName:s});this.expect(5);let{members:h,hasUnknownMembers:S}=this.flowEnumMembers({enumName:s,explicitType:d});switch(r.hasUnknownMembers=S,d){case"boolean":return r.explicitType=!0,r.members=h.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=h.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(h.stringMembers,h.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=h.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let b=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let A=h.booleanMembers.length,L=h.numberMembers.length,V=h.stringMembers.length,j=h.defaultedMembers.length;if(!A&&!L&&!V&&!j)return b();if(!A&&!L)return r.members=this.flowEnumStringMembers(h.stringMembers,h.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!L&&!V&&A>=j){for(let ie of h.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(ie.loc.start,{enumName:s,memberName:ie.id.name});return r.members=h.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!A&&!V&&L>=j){for(let ie of h.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(ie.loc.start,{enumName:s,memberName:ie.id.name});return r.members=h.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(iu.EnumInconsistentMemberValues,l,{enumName:s}),b()}}}flowParseEnumDeclaration(r){let i=this.parseIdentifier();return r.id=i,r.body=this.flowEnumBody(this.startNode(),i),this.finishNode(r,"EnumDeclaration")}jsxParseOpeningElementAfterName(r){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(r.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(r)}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let i=this.input.charCodeAt(r+1);return i!==60&&i!==61}return!1}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},zHr=/\r\n|[\r\n\u2028\u2029]/,TCe=new RegExp(zHr.source,"g");function IY(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function tRt(e,r,i){for(let s=r;s`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:r})=>`Unexpected token \`${e}\`. Did you mean \`${r}\` 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 Zj(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function wY(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return wY(e.object)+"."+wY(e.property);throw new Error("Node had unexpected type: "+e.type)}var JHr=e=>class extends e{jsxReadToken(){let r="",i=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(R5.UnterminatedJsxContent,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:if(this.state.pos===this.state.start){s===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(s);return}r+=this.input.slice(i,this.state.pos),this.finishToken(142,r);return;case 38:r+=this.input.slice(i,this.state.pos),r+=this.jsxReadEntity(),i=this.state.pos;break;case 62:case 125:this.raise(R5.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:s===125?"}":">"});default:IY(s)?(r+=this.input.slice(i,this.state.pos),r+=this.jsxReadNewLine(!0),i=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){let i=this.input.charCodeAt(this.state.pos),s;return++this.state.pos,i===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,s=r?` +`:`\r +`):s=String.fromCharCode(i),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(r){let i="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(xn.UnterminatedString,this.state.startLoc);let l=this.input.charCodeAt(this.state.pos);if(l===r)break;l===38?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadEntity(),s=this.state.pos):IY(l)?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}i+=this.input.slice(s,this.state.pos++),this.finishToken(134,i)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let i=10;this.codePointAtPos(this.state.pos)===120&&(i=16,++this.state.pos);let s=this.readInt(i,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let i=0,s=!1;for(;i++<10&&this.state.pos1){for(let s=0;s0){if(i&256){let l=!!(i&512),d=(s&4)>0;return l!==d}return!0}return i&128&&(s&8)>0?e.names.get(r)&2?!!(i&1):!1:i&2&&(s&1)>0?!0:super.isRedeclaredInScope(e,r,i)}checkLocalExport(e){let{name:r}=e;if(this.hasImport(r))return;let i=this.scopeStack.length;for(let s=i-1;s>=0;s--){let l=this.scopeStack[s].tsNames.get(r);if((l&1)>0||(l&16)>0)return}super.checkLocalExport(e)}},GHr=class{stacks=[];enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function ACe(e,r){return(e?2:0)|(r?1:0)}var HHr=class{sawUnambiguousESM=!1;ambiguousScriptDifferentAst=!1;sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[r,i]=e;if(!this.hasPlugin(r))return!1;let s=this.plugins.get(r);for(let l of Object.keys(i))if(s?.[l]!==i[l])return!1;return!0}}getPluginOption(e,r){return this.plugins.get(e)?.[r]}};function NRt(e,r){e.trailingComments===void 0?e.trailingComments=r:e.trailingComments.unshift(...r)}function KHr(e,r){e.leadingComments===void 0?e.leadingComments=r:e.leadingComments.unshift(...r)}function PY(e,r){e.innerComments===void 0?e.innerComments=r:e.innerComments.unshift(...r)}function sV(e,r,i){let s=null,l=r.length;for(;s===null&&l>0;)s=r[--l];s===null||s.start>i.start?PY(e,i.comments):NRt(s,i.comments)}var QHr=class extends HHr{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let s=i-1,l=r[s];l.start===e.end&&(l.leadingNode=e,s--);let{start:d}=e;for(;s>=0;s--){let h=r[s],S=h.end;if(S>d)h.containingNode=e,this.finalizeComment(h),r.splice(s,1);else{S===d&&(h.trailingNode=e);break}}}finalizeComment(e){let{comments:r}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&NRt(e.leadingNode,r),e.trailingNode!==null&&KHr(e.trailingNode,r);else{let i=e.containingNode,s=e.start;if(this.input.charCodeAt(this.offsetToSourcePos(s)-1)===44)switch(i.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":sV(i,i.properties,e);break;case"CallExpression":case"OptionalCallExpression":sV(i,i.arguments,e);break;case"ImportExpression":sV(i,[i.source,i.options??null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":sV(i,i.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":sV(i,i.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":sV(i,i.specifiers,e);break;case"TSEnumDeclaration":PY(i,r);break;case"TSEnumBody":sV(i,i.members,e);break;default:PY(i,r)}else PY(i,r)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let r=e.length-1;r>=0;r--)this.finalizeComment(e[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:r}=this.state,{length:i}=r;if(i===0)return;let s=r[i-1];s.leadingNode===e&&(s.leadingNode=null)}takeSurroundingComments(e,r,i){let{commentStack:s}=this.state,l=s.length;if(l===0)return;let d=l-1;for(;d>=0;d--){let h=s[d],S=h.end;if(h.start===i)h.leadingNode=e;else if(S===r)h.trailingNode=e;else if(S0}set strict(r){r?this.flags|=1:this.flags&=-2}startIndex;curLine;lineStart;startLoc;endLoc;init({strictMode:r,sourceType:i,startIndex:s,startLine:l,startColumn:d}){this.strict=r===!1?!1:r===!0?!0:i==="module",this.startIndex=s,this.curLine=l,this.lineStart=-d,this.startLoc=this.endLoc=new Yj(l,d,s)}errors=[];potentialArrowAt=-1;noArrowAt=[];noArrowParamsConversionAt=[];get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(r){r?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(r){r?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(r){r?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(r){r?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(r){r?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(r){r?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(r){r?this.flags|=128:this.flags&=-129}topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};get soloAwait(){return(this.flags&256)>0}set soloAwait(r){r?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(r){r?this.flags|=512:this.flags&=-513}labels=[];commentsLen=0;commentStack=[];pos=0;type=140;value=null;start=0;end=0;lastTokEndLoc=null;lastTokStartLoc=null;context=[kg.brace];get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(r){r?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(r){r?this.flags|=2048:this.flags&=-2049}firstInvalidTemplateEscapePos=null;get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(r){r?this.flags|=4096:this.flags&=-4097}strictErrors=new Map;tokensLength=0;curPosition(){return new Yj(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let r=new ORt;return r.flags=this.flags,r.startIndex=this.startIndex,r.curLine=this.curLine,r.lineStart=this.lineStart,r.startLoc=this.startLoc,r.endLoc=this.endLoc,r.errors=this.errors.slice(),r.potentialArrowAt=this.potentialArrowAt,r.noArrowAt=this.noArrowAt.slice(),r.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),r.topicContext=this.topicContext,r.labels=this.labels.slice(),r.commentsLen=this.commentsLen,r.commentStack=this.commentStack.slice(),r.pos=this.pos,r.type=this.type,r.value=this.value,r.start=this.start,r.end=this.end,r.lastTokEndLoc=this.lastTokEndLoc,r.lastTokStartLoc=this.lastTokStartLoc,r.context=this.context.slice(),r.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,r.strictErrors=this.strictErrors,r.tokensLength=this.tokensLength,r}},XHr=function(e){return e>=48&&e<=57},rRt={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},ECe={bin:e=>e===48||e===49,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 nRt(e,r,i,s,l,d){let h=i,S=s,b=l,A="",L=null,V=i,{length:j}=r;for(;;){if(i>=j){d.unterminated(h,S,b),A+=r.slice(V,i);break}let ie=r.charCodeAt(i);if(YHr(e,ie,r,i)){A+=r.slice(V,i);break}if(ie===92){A+=r.slice(V,i);let te=eKr(r,i,s,l,e==="template",d);te.ch===null&&!L?L={pos:i,lineStart:s,curLine:l}:A+=te.ch,{pos:i,lineStart:s,curLine:l}=te,V=i}else ie===8232||ie===8233?(++i,++l,s=i):ie===10||ie===13?e==="template"?(A+=r.slice(V,i)+` +`,++i,ie===13&&r.charCodeAt(i)===10&&++i,++l,V=s=i):d.unterminated(h,S,b):++i}return{pos:i,str:A,firstInvalidLoc:L,lineStart:s,curLine:l}}function YHr(e,r,i,s){return e==="template"?r===96||r===36&&i.charCodeAt(s+1)===123:r===(e==="double"?34:39)}function eKr(e,r,i,s,l,d){let h=!l;r++;let S=A=>({pos:r,ch:A,lineStart:i,curLine:s}),b=e.charCodeAt(r++);switch(b){case 110:return S(` +`);case 114:return S("\r");case 120:{let A;return{code:A,pos:r}=dZe(e,r,i,s,2,!1,h,d),S(A===null?null:String.fromCharCode(A))}case 117:{let A;return{code:A,pos:r}=RRt(e,r,i,s,h,d),S(A===null?null:String.fromCodePoint(A))}case 116:return S(" ");case 98:return S("\b");case 118:return S("\v");case 102:return S("\f");case 13:e.charCodeAt(r)===10&&++r;case 10:i=r,++s;case 8232:case 8233:return S("");case 56:case 57:if(l)return S(null);d.strictNumericEscape(r-1,i,s);default:if(b>=48&&b<=55){let A=r-1,L=/^[0-7]+/.exec(e.slice(A,r+2))[0],V=parseInt(L,8);V>255&&(L=L.slice(0,-1),V=parseInt(L,8)),r+=L.length-1;let j=e.charCodeAt(r);if(L!=="0"||j===56||j===57){if(l)return S(null);d.strictNumericEscape(A,i,s)}return S(String.fromCharCode(V))}return S(String.fromCharCode(b))}}function dZe(e,r,i,s,l,d,h,S){let b=r,A;return{n:A,pos:r}=FRt(e,r,i,s,16,l,d,!1,S,!h),A===null&&(h?S.invalidEscapeSequence(b,i,s):r=b-1),{code:A,pos:r}}function FRt(e,r,i,s,l,d,h,S,b,A){let L=r,V=l===16?rRt.hex:rRt.decBinOct,j=l===16?ECe.hex:l===10?ECe.dec:l===8?ECe.oct:ECe.bin,ie=!1,te=0;for(let X=0,Re=d??1/0;X=97?pt=Je-97+10:Je>=65?pt=Je-65+10:XHr(Je)?pt=Je-48:pt=1/0,pt>=l){if(pt<=9&&A)return{n:null,pos:r};if(pt<=9&&b.invalidDigit(r,i,s,l))pt=0;else if(h)pt=0,ie=!0;else break}++r,te=te*l+pt}return r===L||d!=null&&r-L!==d||ie?{n:null,pos:r}:{n:te,pos:r}}function RRt(e,r,i,s,l,d){let h=e.charCodeAt(r),S;if(h===123){if(++r,{code:S,pos:r}=dZe(e,r,i,s,e.indexOf("}",r)-r,!0,l,d),++r,S!==null&&S>1114111)if(l)d.invalidCodePoint(r,i,s);else return{code:null,pos:r}}else({code:S,pos:r}=dZe(e,r,i,s,4,!1,l,d));return{code:S,pos:r}}function Spe(e,r,i){return new Yj(i,e-r,e)}var tKr=new Set([103,109,115,105,121,117,100,118]),rKr=class{constructor(e){let r=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=r+e.start,this.end=r+e.end,this.loc=new PCe(e.startLoc,e.endLoc)}},nKr=class extends QHr{isLookahead;tokens=[];constructor(e,r){super(),this.state=new ZHr,this.state.init(e),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new rKr(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):!1}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(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=e,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return iZe.lastIndex=e,iZe.test(this.input)?iZe.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 oZe.lastIndex=e,oZe.test(this.input)?oZe.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let r=this.input.charCodeAt(e);if((r&64512)===55296&&++ethis.raise(r,i)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let r;this.isLookahead||(r=this.state.curPosition());let i=this.state.pos,s=this.input.indexOf(e,i+2);if(s===-1)throw this.raise(xn.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+e.length,TCe.lastIndex=i+2;TCe.test(this.input)&&TCe.lastIndex<=s;)++this.state.curLine,this.state.lineStart=TCe.lastIndex;if(this.isLookahead)return;let l={type:"CommentBlock",value:this.input.slice(i+2,s),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(s+e.length),loc:new PCe(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(l),l}skipLineComment(e){let r=this.state.pos,i;this.isLookahead||(i=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=e);if(this.state.pose)){let l=this.skipLineComment(3);l!==void 0&&(this.addComment(l),r?.push(l))}else break e}else if(i===60&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===33&&this.input.charCodeAt(s+2)===45&&this.input.charCodeAt(s+3)===45){let l=this.skipLineComment(4);l!==void 0&&(this.addComment(l),r?.push(l))}else break e}else break e}}if(r?.length>0){let i=this.state.pos,s={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(i),comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(e,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let i=this.state.type;this.state.type=e,this.state.value=r,this.isLookahead||this.updateContext(i)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,r=this.codePointAtPos(e);if(r>=48&&r<=57)throw this.raise(xn.UnexpectedDigitAfterHash,this.state.curPosition());l8(r)?(++this.state.pos,this.finishToken(139,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!IY(e)&&++this.state.pos=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(l8(e)){this.readWord(e);return}}throw this.raise(xn.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,r){let i=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(e,i)}readRegexp(){let e=this.state.startLoc,r=this.state.start+1,i,s,{pos:l}=this.state;for(;;++l){if(l>=this.length)throw this.raise(xn.UnterminatedRegExp,eI(e,1));let b=this.input.charCodeAt(l);if(IY(b))throw this.raise(xn.UnterminatedRegExp,eI(e,1));if(i)i=!1;else{if(b===91)s=!0;else if(b===93&&s)s=!1;else if(b===47&&!s)break;i=b===92}}let d=this.input.slice(r,l);++l;let h="",S=()=>eI(e,l+2-r);for(;l=2&&this.input.charCodeAt(r)===48;if(h){let L=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(xn.StrictOctalLiteral,i),!this.state.strict){let V=L.indexOf("_");V>0&&this.raise(xn.ZeroDigitNumericSeparator,eI(i,V))}d=h&&!/[89]/.test(L)}let S=this.input.charCodeAt(this.state.pos);if(S===46&&!d&&(++this.state.pos,this.readInt(10),s=!0,S=this.input.charCodeAt(this.state.pos)),(S===69||S===101)&&!d&&(S=this.input.charCodeAt(++this.state.pos),(S===43||S===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(xn.InvalidOrMissingExponent,i),s=!0,S=this.input.charCodeAt(this.state.pos)),S===110&&((s||h)&&this.raise(xn.InvalidBigIntLiteral,i),++this.state.pos,l=!0),l8(this.codePointAtPos(this.state.pos)))throw this.raise(xn.NumberIdentifier,this.state.curPosition());let b=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(l){this.finishToken(136,b);return}let A=d?parseInt(b,8):parseFloat(b);this.finishToken(135,A)}readCodePoint(e){let{code:r,pos:i}=RRt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=i,r}readString(e){let{str:r,pos:i,curLine:s,lineStart:l}=nRt(e===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=i+1,this.state.lineStart=l,this.state.curLine=s,this.finishToken(134,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:r,firstInvalidLoc:i,pos:s,curLine:l,lineStart:d}=nRt("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1,this.state.lineStart=d,this.state.curLine=l,i&&(this.state.firstInvalidTemplateEscapePos=new Yj(i.curLine,i.pos-i.lineStart,this.sourceToOffsetPos(i.pos))),this.input.codePointAt(s)===96?this.finishToken(24,i?null:e+r+"`"):(this.state.pos++,this.finishToken(25,i?null:e+r+"${"))}recordStrictModeErrors(e,r){let i=r.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(e,r):this.state.strictErrors.set(i,[e,r])}readWord1(e){this.state.containsEsc=!1;let r="",i=this.state.pos,s=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos=0;h--){let S=d[h];if(S.loc.index===l)return d[h]=e(s,i);if(S.loc.indexthis.hasPlugin(r)))throw this.raise(xn.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(r,i,s)=>{this.raise(e,Spe(r,i,s))}}errorHandlers_readInt={invalidDigit:(e,r,i,s)=>this.optionFlags&2048?(this.raise(xn.InvalidDigit,Spe(e,r,i),{radix:s}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(xn.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(xn.UnexpectedNumericSeparator)};errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(xn.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(xn.InvalidCodePoint)});errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,r,i)=>{this.recordStrictModeErrors(xn.StrictNumericEscape,Spe(e,r,i))},unterminated:(e,r,i)=>{throw this.raise(xn.UnterminatedString,Spe(e-1,r,i))}});errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(xn.StrictNumericEscape),unterminated:(e,r,i)=>{throw this.raise(xn.UnterminatedTemplate,Spe(e,r,i))}})},iKr=class{privateNames=new Set;loneAccessors=new Map;undefinedPrivateNames=new Map},oKr=class{parser;stack=[];undefinedPrivateNames=new Map;constructor(e){this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new iKr)}exit(){let e=this.stack.pop(),r=this.current();for(let[i,s]of Array.from(e.undefinedPrivateNames))r?r.undefinedPrivateNames.has(i)||r.undefinedPrivateNames.set(i,s):this.parser.raise(xn.InvalidPrivateFieldResolution,s,{identifierName:i})}declarePrivateName(e,r,i){let{privateNames:s,loneAccessors:l,undefinedPrivateNames:d}=this.current(),h=s.has(e);if(r&3){let S=h&&l.get(e);if(S){let b=S&4,A=r&4,L=S&3,V=r&3;h=L===V||b!==A,h||l.delete(e)}else h||l.set(e,r)}h&&this.parser.raise(xn.PrivateNameRedeclaration,i,{identifierName:e}),s.add(e),d.delete(e)}usePrivateName(e,r){let i;for(i of this.stack)if(i.privateNames.has(e))return;i?i.undefinedPrivateNames.set(e,r):this.parser.raise(xn.InvalidPrivateFieldResolution,r,{identifierName:e})}},NCe=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},LRt=class extends NCe{declarationErrors=new Map;constructor(e){super(e)}recordDeclarationError(e,r){let i=r.index;this.declarationErrors.set(i,[e,r])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},aKr=class{parser;stack=[new NCe];constructor(e){this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,r){let i=r.loc.start,{stack:s}=this,l=s.length-1,d=s[l];for(;!d.isCertainlyParameterDeclaration();){if(d.canBeArrowParameterDeclaration())d.recordDeclarationError(e,i);else return;d=s[--l]}this.parser.raise(e,i)}recordArrowParameterBindingError(e,r){let{stack:i}=this,s=i[i.length-1],l=r.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(e,l);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(e,l);else return}recordAsyncArrowParametersError(e){let{stack:r}=this,i=r.length-1,s=r[i];for(;s.canBeArrowParameterDeclaration();)s.type===2&&s.recordDeclarationError(xn.AwaitBindingIdentifier,e),s=r[--i]}validateAsPattern(){let{stack:e}=this,r=e[e.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([i,s])=>{this.parser.raise(i,s);let l=e.length-2,d=e[l];for(;d.canBeArrowParameterDeclaration();)d.clearDeclarationError(s.index),d=e[--l]})}};function sKr(){return new NCe(3)}function cKr(){return new LRt(1)}function lKr(){return new LRt(2)}function MRt(){return new NCe}var uKr=class extends nKr{addExtra(e,r,i,s=!0){if(!e)return;let{extra:l}=e;l==null&&(l={},e.extra=l),s?l[r]=i:Object.defineProperty(l,r,{enumerable:s,value:i})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,r){if(this.input.startsWith(r,e)){let i=this.input.charCodeAt(e+r.length);return!(cV(i)||(i&64512)===55296)}return!1}isLookaheadContextual(e){let r=this.nextTokenStart();return this.isUnparsedContextual(r,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,r){if(!this.eatContextual(e)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return tRt(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return tRt(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(xn.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,r){this.eat(e)||this.unexpected(r,e)}tryParse(e,r=this.state.clone()){let i={node:null};try{let s=e((l=null)=>{throw i.node=l,i});if(this.state.errors.length>r.errors.length){let l=this.state;return this.state=r,this.state.tokensLength=l.tokensLength,{node:s,error:l.errors[r.errors.length],thrown:!1,aborted:!1,failState:l}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let l=this.state;if(this.state=r,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:l};if(s===i)return{node:i.node,error:null,thrown:!1,aborted:!0,failState:l};throw s}}checkExpressionErrors(e,r){if(!e)return!1;let{shorthandAssignLoc:i,doubleProtoLoc:s,privateKeyLoc:l,optionalParametersLoc:d,voidPatternLoc:h}=e,S=!!i||!!s||!!d||!!l||!!h;if(!r)return S;i!=null&&this.raise(xn.InvalidCoverInitializedName,i),s!=null&&this.raise(xn.DuplicateProto,s),l!=null&&this.raise(xn.UnexpectedPrivateField,l),d!=null&&this.unexpected(d),h!=null&&this.raise(xn.InvalidCoverDiscardElement,h)}isLiteralPropertyName(){return ERt(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let i=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let s=this.inModule;this.inModule=e;let l=this.scope,d=this.getScopeHandler();this.scope=new d(this,e);let h=this.prodParam;this.prodParam=new GHr;let S=this.classScope;this.classScope=new oKr(this);let b=this.expressionScope;return this.expressionScope=new aKr(this),()=>{this.state.labels=r,this.exportedIdentifiers=i,this.inModule=s,this.scope=l,this.prodParam=h,this.classScope=S,this.expressionScope=b}}enterInitialScopes(){let e=0;(this.inModule||this.optionFlags&1)&&(e|=2),this.optionFlags&32&&(e|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(e|=4),this.prodParam.enter(e);let i=r?514:1;this.optionFlags&4&&(i|=512),this.optionFlags&16&&(i|=48),this.scope.enter(i)}checkDestructuringPrivate(e){let{privateKeyLoc:r}=e;r!==null&&this.expectPlugin("destructuringPrivate",r)}},wCe=class{shorthandAssignLoc=null;doubleProtoLoc=null;privateKeyLoc=null;optionalParametersLoc=null;voidPatternLoc=null},fZe=class{constructor(e,r,i){this.start=r,this.end=0,this.loc=new PCe(i),e?.optionFlags&128&&(this.range=[r,0]),e?.filename&&(this.loc.filename=e.filename)}type=""},iRt=fZe.prototype,pKr=class extends uKr{startNode(){let e=this.state.startLoc;return new fZe(this,e.index,e)}startNodeAt(e){return new fZe(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,r){return this.finishNodeAt(e,r,this.state.lastTokEndLoc)}finishNodeAt(e,r,i){return e.type=r,e.end=i.index,e.loc.end=i,this.optionFlags&128&&(e.range[1]=i.index),this.optionFlags&4096&&this.processComment(e),e}resetStartLocation(e,r){e.start=r.index,e.loc.start=r,this.optionFlags&128&&(e.range[0]=r.index)}resetEndLocation(e,r=this.state.lastTokEndLoc){e.end=r.index,e.loc.end=r,this.optionFlags&128&&(e.range[1]=r.index)}resetStartLocationFromNode(e,r){this.resetStartLocation(e,r.loc.start)}castNodeTo(e,r){return e.type=r,e}cloneIdentifier(e){let{type:r,start:i,end:s,loc:l,range:d,name:h}=e,S=Object.create(iRt);return S.type=r,S.start=i,S.end=s,S.loc=l,S.range=d,S.name=h,e.extra&&(S.extra=e.extra),S}cloneStringLiteral(e){let{type:r,start:i,end:s,loc:l,range:d,extra:h}=e,S=Object.create(iRt);return S.type=r,S.start=i,S.end=s,S.loc=l,S.range=d,S.extra=h,S.value=e.value,S}},mZe=e=>e.type==="ParenthesizedExpression"?mZe(e.expression):e,_Kr=class extends pKr{toAssignable(e,r=!1){let i;switch((e.type==="ParenthesizedExpression"||e.extra?.parenthesized)&&(i=mZe(e),r?i.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(xn.InvalidParenthesizedAssignment,e):i.type!=="CallExpression"&&i.type!=="MemberExpression"&&!this.isOptionalMemberExpression(i)&&this.raise(xn.InvalidParenthesizedAssignment,e):this.raise(xn.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 s=0,l=e.properties.length,d=l-1;ss.type!=="ObjectMethod"&&(l===i||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(i=>i===null||this.isAssignable(i));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(e,r){return e}toReferencedListDeep(e,r){this.toReferencedList(e,r);for(let i of e)i?.type==="ArrayExpression"&&this.toReferencedListDeep(i.elements)}parseSpread(e){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let e=this.startNode();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(xn.UnexpectedVoidPattern,r),e.argument=r,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let 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,r,i){let s=i&1,l=[],d=!0;for(;!this.eat(e);)if(d?d=!1:this.expect(12),s&&this.match(12))l.push(null);else{if(this.eat(e))break;if(this.match(21)){let h=this.parseRestBinding();if(i&2&&(h=this.parseFunctionParamType(h)),l.push(h),!this.checkCommaAfterRest(r)){this.expect(e);break}}else{let h=[];if(i&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(xn.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)h.push(this.parseDecorator());l.push(this.parseBindingElement(i,h))}}return l}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(xn.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:r}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let i=this.startNode();return e===139?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),i.key=this.parsePrivateName()):this.parsePropertyName(i),i.method=!1,this.parseObjPropValue(i,r,!1,!1,!0,!1)}parseBindingElement(e,r){let i=this.parseMaybeDefault();return e&2&&this.parseFunctionParamType(i),r.length&&(i.decorators=r,this.resetStartLocationFromNode(i,r[0])),this.parseMaybeDefault(i.loc.start,i)}parseFunctionParamType(e){return e}parseMaybeDefault(e,r){if(e??(e=this.state.startLoc),r=r??this.parseBindingAtom(),!this.eat(29))return r;let i=this.startNodeAt(e);return r.type==="VoidPattern"&&this.raise(xn.VoidPatternInitializer,r),i.left=r,i.right=this.parseMaybeAssignAllowIn(),this.finishNode(i,"AssignmentPattern")}isValidLVal(e,r,i,s){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(!r&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,r,i=64,s=!1,l=!1,d=!1,h=!1){let S=e.type;if(this.isObjectMethod(e))return;let b=this.isOptionalMemberExpression(e);if(b||S==="MemberExpression"){b&&(this.expectPlugin("optionalChainingAssign",e.loc.start),r.type!=="AssignmentExpression"&&this.raise(xn.InvalidLhsOptionalChaining,e,{ancestor:r})),i!==64&&this.raise(xn.InvalidPropertyBindingPattern,e);return}if(S==="Identifier"){this.checkIdentifier(e,i,l);let{name:X}=e;s&&(s.has(X)?this.raise(xn.ParamDupe,e):s.add(X));return}else S==="VoidPattern"&&r.type==="CatchClause"&&this.raise(xn.VoidPatternCatchClauseParam,e);let A=mZe(e);h||(h=A.type==="CallExpression"&&(A.callee.type==="Import"||A.callee.type==="Super"));let L=this.isValidLVal(S,h,!(d||e.extra?.parenthesized)&&r.type==="AssignmentExpression",i);if(L===!0)return;if(L===!1){let X=i===64?xn.InvalidLhs:xn.InvalidLhsBinding;this.raise(X,e,{ancestor:r});return}let V,j;typeof L=="string"?(V=L,j=S==="ParenthesizedExpression"):[V,j]=L;let ie=S==="ArrayPattern"||S==="ObjectPattern"?{type:S}:r,te=e[V];if(Array.isArray(te))for(let X of te)X&&this.checkLVal(X,ie,i,s,l,j,!0);else te&&this.checkLVal(te,ie,i,s,l,j,h)}checkIdentifier(e,r,i=!1){this.state.strict&&(i?PRt(e.name,this.inModule):IRt(e.name))&&(r===64?this.raise(xn.StrictEvalArguments,e,{referenceName:e.name}):this.raise(xn.StrictEvalArgumentsBinding,e,{bindingName:e.name})),r&8192&&e.name==="let"&&this.raise(xn.LetInLexicalBinding,e),r&64||this.declareNameFromIdentifier(e,r)}declareNameFromIdentifier(e,r){this.scope.declareName(e.name,r,e.loc.start)}checkToRestConversion(e,r){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(xn.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?xn.RestTrailingComma:xn.ElementAfterRest,this.state.startLoc),!0):!1}},aZe=/in(?:stanceof)?|as|satisfies/y;function dKr(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function oRt(e){if(!e)throw new Error("Assert fail")}var jc=c8`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 `() => ...`.",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 fKr(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}}function aRt(e){return e==="private"||e==="public"||e==="protected"}function mKr(e){return e==="in"||e==="out"}function hZe(e){if(e.extra?.parenthesized)return!1;switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&hZe(e.object);case"TSInstantiationExpression":return hZe(e.expression);default:return!1}}var hKr=e=>class extends e{getScopeHandler(){return WHr}tsIsIdentifier(){return fm(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()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,i,s){if(!fm(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let l=this.state.value;if(r.includes(l)){if(s&&this.match(106)||i&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return l}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:i,stopOnStartOfClassStaticBlock:s,errorTemplate:l=jc.InvalidModifierOnTypeMember},d){let h=(b,A,L,V)=>{A===L&&d[V]&&this.raise(jc.InvalidModifiersOrder,b,{orderedModifiers:[L,V]})},S=(b,A,L,V)=>{(d[L]&&A===V||d[V]&&A===L)&&this.raise(jc.IncompatibleModifiers,b,{modifiers:[L,V]})};for(;;){let{startLoc:b}=this.state,A=this.tsParseModifier(r.concat(i??[]),s,d.static);if(!A)break;aRt(A)?d.accessibility?this.raise(jc.DuplicateAccessibilityModifier,b,{modifier:A}):(h(b,A,A,"override"),h(b,A,A,"static"),h(b,A,A,"readonly"),d.accessibility=A):mKr(A)?(d[A]&&this.raise(jc.DuplicateModifier,b,{modifier:A}),d[A]=!0,h(b,A,"in","out")):(Object.prototype.hasOwnProperty.call(d,A)?this.raise(jc.DuplicateModifier,b,{modifier:A}):(h(b,A,"static","readonly"),h(b,A,"static","override"),h(b,A,"override","readonly"),h(b,A,"abstract","override"),S(b,A,"declare","override"),S(b,A,"static","abstract")),d[A]=!0),i?.includes(A)&&this.raise(l,b,{modifier:A})}}tsIsListTerminator(r){switch(r){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(r,i){let s=[];for(;!this.tsIsListTerminator(r);)s.push(i());return s}tsParseDelimitedList(r,i,s){return dKr(this.tsParseDelimitedListWorker(r,i,!0,s))}tsParseDelimitedListWorker(r,i,s,l){let d=[],h=-1;for(;!this.tsIsListTerminator(r);){h=-1;let S=i();if(S==null)return;if(d.push(S),this.eat(12)){h=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;s&&this.expect(12);return}return l&&(l.value=h),d}tsParseBracketedList(r,i,s,l,d){l||(s?this.expect(0):this.expect(47));let h=this.tsParseDelimitedList(r,i,d);return s?this.expect(3):this.expect(48),h}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(134)?r.argument=this.tsParseLiteralTypeNode():(this.raise(jc.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=this.tsParseNonConditionalType()),this.eat(12)?r.options=this.tsParseImportTypeOptions():r.options=null,this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName(3)),this.match(47)&&(r.typeArguments=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){let r=this.startNode();this.expect(5);let i=this.startNode();return this.isContextual(76)?(i.method=!1,i.key=this.parseIdentifier(!0),i.computed=!1,i.shorthand=!1):this.unexpected(null,76),this.expect(14),i.value=this.tsParseImportTypeWithPropertyValue(),r.properties=[this.finishObjectProperty(i)],this.eat(12),this.expect(8),this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let r=this.startNode(),i=[];for(this.expect(5);!this.match(8);){let s=this.state.type;fm(s)||s===134?i.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return r.properties=i,this.next(),this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let i;if(r&1&&this.match(78))if(r&2)i=this.parseIdentifier(!0);else{let s=this.startNode();this.next(),i=this.finishNode(s,"ThisExpression")}else i=this.parseIdentifier(!!(r&1));for(;this.eat(16);){let s=this.startNodeAtNode(i);s.left=i,s.right=this.parseIdentifier(!!(r&1)),i=this.finishNode(s,"TSQualifiedName")}return i}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeArguments=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let i=this.startNodeAtNode(r);return i.parameterName=r,i.typeAnnotation=this.tsParseTypeAnnotation(!1),i.asserts=!1,this.finishNode(i,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeArguments=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:jc.InvalidModifierOnTypeParameter});tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:jc.InvalidModifierOnTypeParameterPositions});tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:jc.InvalidModifierOnTypeParameter});tsParseTypeParameter(r){let i=this.startNode();return r(i),i.name=this.tsParseTypeParameterName(),i.constraint=this.tsEatThenParseType(81),i.default=this.tsEatThenParseType(29),this.finishNode(i,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let i=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let s={value:-1};return i.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,s),i.params.length===0&&this.raise(jc.EmptyTypeParameters,i),s.value!==-1&&this.addExtra(i,"trailingComma",s.value),this.finishNode(i,"TSTypeParameterDeclaration")}tsFillSignature(r,i){let s=r===19,l="params",d="returnType";i.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),i[l]=this.tsParseBindingListForSignature(),s?i[d]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(i[d]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let i of r){let{type:s}=i;(s==="AssignmentPattern"||s==="TSParameterProperty")&&this.raise(jc.UnsupportedSignatureParameterKind,i,{type:s})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,i){return this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon(),this.finishNode(i,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),fm(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let i=this.parseIdentifier();i.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(i),this.expect(3),r.parameters=[i];let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,i){if(this.eat(17)&&(r.optional=!0),this.match(10)||this.match(47)){i&&this.raise(jc.ReadonlyForMethodSignature,r);let s=r;s.kind&&this.match(47)&&this.raise(jc.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon();let l="params",d="returnType";if(s.kind==="get")s[l].length>0&&(this.raise(xn.BadGetterArity,this.state.curPosition()),this.isThisParam(s[l][0])&&this.raise(jc.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s[l].length!==1)this.raise(xn.BadSetterArity,this.state.curPosition());else{let h=s[l][0];this.isThisParam(h)&&this.raise(jc.AccessorCannotDeclareThisParameter,this.state.curPosition()),h.type==="Identifier"&&h.optional&&this.raise(jc.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),h.type==="RestElement"&&this.raise(jc.SetAccessorCannotHaveRestParameter,this.state.curPosition())}s[d]&&this.raise(jc.SetAccessorCannotHaveReturnType,s[d])}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else{let s=r;i&&(s.readonly=!0);let l=this.tsTryParseTypeAnnotation();return l&&(s.typeAnnotation=l),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let s=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(s,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r),this.tsTryParseIndexSignature(r)||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let r=this.startNode();return this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0),r.key=this.tsParseTypeParameterName(),r.constraint=this.tsExpectThenParseType(58),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let i=!1;return r.elementTypes.forEach(s=>{let{type:l}=s;i&&l!=="TSRestType"&&l!=="TSOptionalType"&&!(l==="TSNamedTupleMember"&&s.optional)&&this.raise(jc.OptionalTypeBeforeRequired,s),i||(i=l==="TSNamedTupleMember"&&s.optional||l==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let r=this.state.startLoc,i=this.eat(21),{startLoc:s}=this.state,l,d,h,S,b=R6(this.state.type)?this.lookaheadCharCode():null;if(b===58)l=!0,h=!1,d=this.parseIdentifier(!0),this.expect(14),S=this.tsParseType();else if(b===63){h=!0;let A=this.state.value,L=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(l=!0,d=this.createIdentifier(this.startNodeAt(s),A),this.expect(17),this.expect(14),S=this.tsParseType()):(l=!1,S=L,this.expect(17))}else S=this.tsParseType(),h=this.eat(17),l=this.eat(14);if(l){let A;d?(A=this.startNodeAt(s),A.optional=h,A.label=d,A.elementType=S,this.eat(17)&&(A.optional=!0,this.raise(jc.TupleOptionalAfterType,this.state.lastTokStartLoc))):(A=this.startNodeAt(s),A.optional=h,this.raise(jc.InvalidTupleMemberLabel,S),A.label=S,A.elementType=this.tsParseType()),S=this.finishNode(A,"TSNamedTupleMember")}else if(h){let A=this.startNodeAt(s);A.typeAnnotation=S,S=this.finishNode(A,"TSOptionalType")}if(i){let A=this.startNodeAt(r);A.typeAnnotation=S,S=this.finishNode(A,"TSRestType")}return S}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,i){let s=this.startNode();return r==="TSConstructorType"&&(s.abstract=!!i,i&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,s)),this.finishNode(s,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){{let r=this.state.startLoc,i=this.parseTemplateElement(!1),s=[i];if(i.tail){let l=this.startNodeAt(r),d=this.startNodeAt(r);return d.expressions=[],d.quasis=s,l.literal=this.finishNode(d,"TemplateLiteral"),this.finishNode(l,"TSLiteralType")}else{let l=[];for(;!i.tail;)l.push(this.tsParseType()),this.readTemplateContinuation(),s.push(i=this.parseTemplateElement(!1));let d=this.startNodeAt(r);return d.types=l,d.quasis=s,this.finishNode(d,"TSTemplateLiteralType")}}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),i=this.lookahead();return i.type!==135&&i.type!==136&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"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:if(!(this.optionFlags&1024)){let r=this.state.startLoc;this.next();let i=this.tsParseType();return this.expect(11),this.addExtra(i,"parenthesized",!0),this.addExtra(i,"parenStart",r.index),i}return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(fm(r)||r===88||r===84){let i=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":fKr(this.state.value);if(i!==void 0&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,i)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:r}=this.state,i=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAt(r);s.elementType=i,this.expect(3),i=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAt(r);s.objectType=i,s.indexType=this.tsParseType(),this.expect(3),i=this.finishNode(s,"TSIndexedAccessType")}return i}tsParseTypeOperator(){let r=this.startNode(),i=this.state.value;return this.next(),r.operator=i,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),i==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(jc.UnexpectedReadonly,r)}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(i,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return bHr(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,i,s){let l=this.startNode(),d=this.eat(s),h=[];do h.push(i());while(this.eat(s));return h.length===1&&!d?h[0]:(l.types=h,this.finishNode(l,r))}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)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(fm(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,i=r.length;try{return this.parseObjectLike(8,!0),r.length===i}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,i=r.length;try{return super.parseBindingList(3,93,1),r.length===i}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let i=this.startNode();this.expect(r);let s=this.startNode(),l=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(l&&this.match(78)){let S=this.tsParseThisTypeOrThisTypePredicate();return S.type==="TSThisType"?(s.parameterName=S,s.asserts=!0,s.typeAnnotation=null,S=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(S,s),S.asserts=!0),i.typeAnnotation=S,this.finishNode(i,"TSTypeAnnotation")}let d=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!d)return l?(s.parameterName=this.parseIdentifier(),s.asserts=l,s.typeAnnotation=null,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,i);let h=this.tsParseTypeAnnotation(!1);return s.parameterName=d,s.typeAnnotation=h,s.asserts=l,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;return this.next(),!fm(this.state.type)&&!this.match(78)?!1:(r&&this.raise(xn.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,i=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),i.typeAnnotation=this.tsParseType()}),this.finishNode(i,"TSTypeAnnotation")}tsParseType(){oRt(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let i=this.startNodeAtNode(r);return i.checkType=r,i.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),i.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),i.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(i,"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(jc.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let i=this.state.startLoc,s=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let l=super.parseExprSubscripts();hZe(l)||this.raise(jc.InvalidHeritageClauseType,l.loc.start,{token:r});let d=r==="extends"?"TSInterfaceHeritage":"TSClassImplements";if(l.type==="TSInstantiationExpression")return l.type=d,l;let h=this.startNodeAtNode(l);return h.expression=l,(this.match(47)||this.match(51))&&(h.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(h,d)}});return s.length||this.raise(jc.EmptyHeritageClauseType,i,{token:r}),s}tsParseInterfaceDeclaration(r,i={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),i.declare&&(r.declare=!0),fm(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(jc.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let s=this.startNode();return s.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(s,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInTopLevelContext(r){if(this.curContext()!==kg.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}tsInType(r){let i=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=i}}tsInDisallowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsInAllowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,i={}){return i.const&&(r.const=!0),i.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),r.body=this.tsParseEnumBody(),this.finishNode(r,"TSEnumDeclaration")}tsParseEnumBody(){let r=this.startNode();return this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,i=!1){return r.id=this.tsParseEntityName(1),r.id.type==="Identifier"&&this.checkIdentifier(r.id,1024),this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit(),this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.kind="global",r.id=this.parseIdentifier()):this.match(134)?(r.kind="module",r.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,i,s){r.id=i||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let l=this.tsParseModuleReference();return r.importKind==="type"&&l.type!=="TSExternalModuleReference"&&this.raise(jc.ImportAliasHasImportType,l),r.moduleReference=l,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let i=this.state.clone(),s=r();return this.state=i,s}tsTryParseAndCatch(r){let i=this.tryParse(s=>r()||s());if(!(i.aborted||!i.node))return i.error&&(this.state=i.failState),i.node}tsTryParse(r){let i=this.state.clone(),s=r();if(s!==void 0&&s!==!1)return s;this.state=i}tsTryParseDeclare(r){if(this.isLineTerminator())return;let i=this.state.type;return this.tsInAmbientContext(()=>{switch(i){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(jc.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(jc.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.next(),this.parseVarStatement(r,"await using",!0);break;case 129:{let s=this.tsParseInterfaceDeclaration(r,{declare:!0});if(s)return s}default:if(fm(i))return this.tsParseDeclaration(r,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(r,i,s,l){switch(i){case 124:if(this.tsCheckLineTerminator(s)&&(this.match(80)||fm(this.state.type)))return this.tsParseAbstractDeclaration(r,l);break;case 127:if(this.tsCheckLineTerminator(s)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(fm(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case 128:if(this.tsCheckLineTerminator(s)&&fm(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case 130:if(this.tsCheckLineTerminator(s)&&fm(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let s=this.tsTryParseAndCatch(()=>{let l=this.startNodeAt(r);return l.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(l),l.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),l});if(this.state.maybeInArrowParameters=i,!!s)return super.parseArrowExpression(s,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(jc.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===kg.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return xHr(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(r,i){let s=i.length?i[0].loc.start:this.state.startLoc,l={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},l);let d=l.accessibility,h=l.override,S=l.readonly;!(r&4)&&(d||S||h)&&this.raise(jc.UnexpectedParameterModifier,s);let b=this.parseMaybeDefault();r&2&&this.parseFunctionParamType(b);let A=this.parseMaybeDefault(b.loc.start,b);if(d||S||h){let L=this.startNodeAt(s);return i.length&&(L.decorators=i),d&&(L.accessibility=d),S&&(L.readonly=S),h&&(L.override=h),A.type!=="Identifier"&&A.type!=="AssignmentPattern"&&this.raise(jc.UnsupportedParameterPropertyKind,L),L.parameter=A,this.finishNode(L,"TSParameterProperty")}return i.length&&(b.decorators=i),A}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let i of r.params)i.type!=="Identifier"&&i.optional&&!this.state.isAmbientContext&&this.raise(jc.PatternIsOptional,i)}setArrowFunctionParameters(r,i,s){super.setArrowFunctionParameters(r,i,s),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,i,s=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let l=i==="FunctionDeclaration"?"TSDeclareFunction":i==="ClassMethod"||i==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return l&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,l):l==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(jc.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,l,s):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,i,s))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(i=>{i?.type==="TSTypeCastExpression"&&this.raise(jc.UnexpectedTypeAnnotation,i.typeAnnotation)})}toReferencedList(r,i){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,i,s){let l=super.parseArrayLike(r,i,s);return l.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(l.elements),l}parseSubscript(r,i,s,l){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let h=this.startNodeAt(i);return h.expression=r,this.finishNode(h,"TSNonNullExpression")}let d=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return l.stop=!0,r;l.optionalChainMember=d=!0,this.next()}if(this.match(47)||this.match(51)){let h,S=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(r)){let V=this.tsTryParseGenericAsyncArrowFunction(i);if(V)return l.stop=!0,V}let b=this.tsParseTypeArgumentsInExpression();if(!b)return;if(d&&!this.match(10)){h=this.state.curPosition();return}if(pZe(this.state.type)){let V=super.parseTaggedTemplateExpression(r,i,l);return V.typeArguments=b,V}if(!s&&this.eat(10)){let V=this.startNodeAt(i);return V.callee=r,V.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(V.arguments),V.typeArguments=b,l.optionalChainMember&&(V.optional=d),this.finishCallExpression(V,l.optionalChainMember)}let A=this.state.type;if(A===48||A===52||A!==10&&xpe(A)&&!this.hasPrecedingLineBreak())return;let L=this.startNodeAt(i);return L.expression=r,L.typeArguments=b,this.finishNode(L,"TSInstantiationExpression")});if(h&&this.unexpected(h,10),S)return S.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(jc.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(S.expression=super.stopParseSubscript(r,l))),S}return super.parseSubscript(r,i,s,l)}parseNewCallee(r){super.parseNewCallee(r);let{callee:i}=r;i.type==="TSInstantiationExpression"&&!i.extra?.parenthesized&&(r.typeArguments=i.typeArguments,r.callee=i.expression)}parseExprOp(r,i,s){let l;if(DCe(58)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(l=this.isContextual(120)))){let d=this.startNodeAt(i);return d.expression=r,d.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(l&&this.raise(xn.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(d,l?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(d,i,s)}return super.parseExprOp(r,i,s)}checkReservedWord(r,i,s,l){this.state.isAmbientContext||super.checkReservedWord(r,i,s,l)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(jc.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let i=this.lookaheadCharCode();return r?i===123||i===42:i!==61}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,l){super.applyImportPhase(r,i,s,l),i?r.exportKind=s==="type"?"type":"value":r.importKind=s==="type"||s==="typeof"?s:"value"}parseImport(r){if(this.match(134))return r.importKind="value",super.parseImport(r);let i;if(fm(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let s=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,s);i=super.parseImportSpecifiersAndAfter(r,s)}else i=super.parseImport(r);return i.importKind==="type"&&i.specifiers.length>1&&i.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(jc.TypeImportCannotSpecifyDefaultAndNamed,i),i}parseExport(r,i){if(this.match(83)){let s=this.startNode();this.next();let l=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?l=this.parseMaybeImportPhase(s,!1):s.importKind="value";let d=this.tsParseImportEqualsDeclaration(s,l,!0);return r.attributes=[],r.declaration=d,r.exportKind="value",r.source=null,r.specifiers=[],this.finishNode(r,"ExportNamedDeclaration")}else if(this.eat(29)){let s=r;return s.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}else if(this.eatContextual(93)){let s=r;return this.expectContextual(128),s.id=this.parseIdentifier(),this.semicolon(),this.finishNode(s,"TSNamespaceExportDeclaration")}else return super.parseExport(r,i)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,i,s=!1){let{isAmbientContext:l}=this.state,d=super.parseVarStatement(r,i,s||l);if(!l)return d;if(!r.declare&&(i==="using"||i==="await using"))return this.raiseOverwrite(jc.UsingDeclarationInAmbientContext,r,i),d;for(let{id:h,init:S}of d.declarations)S&&(i==="var"||i==="let"||h.typeAnnotation?this.raise(jc.InitializerNotAllowedInAmbientContext,S):yKr(S,this.hasPlugin("estree"))||this.raise(jc.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,S));return d}parseStatementContent(r,i){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let s=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(s,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let s=this.state.type,l=this.startNode();this.next();let d=s===125?this.tsTryParseDeclare(l):this.tsParseAbstractDeclaration(l,i);return d?(s===125&&(d.declare=!0),d):(l.expression=this.createIdentifier(this.startNodeAt(l.loc.start),s===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(l,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let s=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(s)}break}case 129:{let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let s=this.startNode();return this.next(),this.tsParseDeclaration(s,127,!1,i)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let s=this.startNode();return this.next(),this.tsParseDeclaration(s,128,!1,i)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let s=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(s)}break}}return super.parseStatementContent(r,i)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,i){return i.some(s=>aRt(s)?r.accessibility===s:!!r[s])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,i,s){let l=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:l,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:jc.InvalidModifierOnTypeParameterPositions},i);let d=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(i,l)&&this.raise(jc.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,i)):this.parseClassMemberWithIsStatic(r,i,s,!!i.static)};i.declare?this.tsInAmbientContext(d):d()}parseClassMemberWithIsStatic(r,i,s,l){let d=this.tsTryParseIndexSignature(i);if(d){r.body.push(d),i.abstract&&this.raise(jc.IndexSignatureHasAbstract,i),i.accessibility&&this.raise(jc.IndexSignatureHasAccessibility,i,{modifier:i.accessibility}),i.declare&&this.raise(jc.IndexSignatureHasDeclare,i),i.override&&this.raise(jc.IndexSignatureHasOverride,i);return}!this.state.inAbstractClass&&i.abstract&&this.raise(jc.NonAbstractClassHasAbstractMethod,i),i.override&&(s.hadSuperClass||this.raise(jc.OverrideNotInSubClass,i)),super.parseClassMemberWithIsStatic(r,i,s,l)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(jc.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(jc.ClassMethodHasDeclare,r)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let l=this.lookaheadCharCode();if(l===44||l===61||l===58||l===41)return this.setOptionalParametersError(s),r}return super.parseConditional(r,i,s)}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let l=this.startNodeAt(i);return l.expression=r,l.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(l,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let i=this.state.startLoc,s=this.eatContextual(125);if(s&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(jc.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let l=fm(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return l?((l.type==="TSInterfaceDeclaration"||l.type==="TSTypeAliasDeclaration"||s)&&(r.exportKind="type"),s&&l.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(l,i),l.declare=!0),l):null}parseClassId(r,i,s,l){if((!i||s)&&this.isContextual(113))return;super.parseClassId(r,i,s,r.declare?1024:8331);let d=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);d&&(r.typeParameters=d)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let i=this.tsTryParseTypeAnnotation();i&&(r.typeAnnotation=i)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(jc.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:i}=r;this.raise(jc.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:i.type==="Identifier"&&!r.computed?i.name:`[${this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end))}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(jc.PrivateElementHasAbstract,r),r.accessibility&&this.raise(jc.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(jc.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,i,s,l,d,h){let S=this.tsTryParseTypeParameters(this.tsParseConstModifier);S&&d&&this.raise(jc.ConstructorHasTypeParameters,S);let{declare:b=!1,kind:A}=i;b&&(A==="get"||A==="set")&&this.raise(jc.DeclareAccessor,i,{kind:A}),S&&(i.typeParameters=S),super.pushClassMethod(r,i,s,l,d,h)}pushClassPrivateMethod(r,i,s,l){let d=this.tsTryParseTypeParameters(this.tsParseConstModifier);d&&(i.typeParameters=d),super.pushClassPrivateMethod(r,i,s,l)}declareClassPrivateMethodInScope(r,i){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&r.value.body==null||super.declareClassPrivateMethodInScope(r,i))}parseClassSuper(r){super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeArguments=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,i,s,l,d,h,S){let b=this.tsTryParseTypeParameters(this.tsParseConstModifier);return b&&(r.typeParameters=b),super.parseObjPropValue(r,i,s,l,d,h,S)}parseFunctionParams(r,i){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(r.typeParameters=s),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let s=this.tsTryParseTypeAnnotation();s&&(r.id.typeAnnotation=s,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,i)}parseMaybeAssign(r,i){let s,l,d;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(s=this.state.clone(),l=this.tryParse(()=>super.parseMaybeAssign(r,i),s),!l.error)return l.node;let{context:b}=this.state,A=b[b.length-1];(A===kg.j_oTag||A===kg.j_expr)&&b.pop()}if(!l?.error&&!this.match(47))return super.parseMaybeAssign(r,i);(!s||s===this.state)&&(s=this.state.clone());let h,S=this.tryParse(b=>{h=this.tsParseTypeParameters(this.tsParseConstModifier);let A=super.parseMaybeAssign(r,i);if((A.type!=="ArrowFunctionExpression"||A.extra?.parenthesized)&&b(),h?.params.length!==0&&this.resetStartLocationFromNode(A,h),A.typeParameters=h,this.hasPlugin("jsx")&&A.typeParameters.params.length===1&&!A.typeParameters.extra?.trailingComma){let L=A.typeParameters.params[0];L.constraint||this.raise(jc.SingleTypeParameterWithoutTrailingComma,eI(L.loc.end,1),{typeParameterName:L.name.name})}return A},s);if(!S.error&&!S.aborted)return h&&this.reportReservedArrowTypeParam(h),S.node;if(!l&&(oRt(!this.hasPlugin("jsx")),d=this.tryParse(()=>super.parseMaybeAssign(r,i),s),!d.error))return d.node;if(l?.node)return this.state=l.failState,l.node;if(S.node)return this.state=S.failState,h&&this.reportReservedArrowTypeParam(h),S.node;if(d?.node)return this.state=d.failState,d.node;throw l?.error||S.error||d?.error}reportReservedArrowTypeParam(r){r.params.length===1&&!r.params[0].constraint&&!r.extra?.trailingComma&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(jc.ReservedArrowTypeParam,r)}parseMaybeUnary(r,i){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(s=>{let l=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&s(),l});if(i.aborted)return;i.thrown||(i.error&&(this.state=i.failState),r.returnType=i.node)}return super.parseArrow(r)}parseFunctionParamType(r){this.eat(17)&&(r.optional=!0);let i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.resetEndLocation(r),r}isAssignable(r,i){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,i);case"TSParameterProperty":return!0;default:return super.isAssignable(r,i)}}toAssignable(r,i=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,i);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":i?this.expressionScope.recordArrowParameterBindingError(jc.UnexpectedTypeCastInParameter,r):this.raise(jc.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,i);break;case"AssignmentExpression":!i&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,i)}}toAssignableParenthesizedExpression(r,i){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,i);break;default:super.toAssignable(r,i)}}checkToRestConversion(r,i){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,i)}}isValidLVal(r,i,s,l){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(l!==64||!s)&&["expression",!0];default:return super.isValidLVal(r,i,s,l)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r,i){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let l=super.parseMaybeDecoratorArguments(r,i);return l.typeArguments=s,l}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,i)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.startthis.isAssignable(i,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let i=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());i&&(r.typeArguments=i)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let i=super.getGetterSetterExpectedParamCount(r),s=this.getObjectOrClassMethodParams(r)[0];return s&&this.isThisParam(s)?i+1:i}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i,this.resetEndLocation(r)),r}tsInAmbientContext(r){let{isAmbientContext:i,strict:s}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=i,this.state.strict=s}}parseClass(r,i,s){let l=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,i,s)}finally{this.state.inAbstractClass=l}}tsParseAbstractDeclaration(r,i){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(i,this.parseClass(r,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(r.abstract=!0,this.raise(jc.NonClassMethodPropertyHasAbstractModifier,r),this.tsParseInterfaceDeclaration(r));throw this.unexpected(null,80)}parseMethod(r,i,s,l,d,h,S){let b=super.parseMethod(r,i,s,l,d,h,S);if((b.abstract||b.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?b.value:b).body){let{key:A}=b;this.raise(jc.AbstractMethodHasImplementation,b,{methodName:A.type==="Identifier"&&!b.computed?A.name:`[${this.input.slice(this.offsetToSourcePos(A.start),this.offsetToSourcePos(A.end))}]`})}return b}tsParseTypeParameterName(){return this.parseIdentifier()}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(r,i,s,l){return!i&&l?(this.parseTypeOnlyImportExportSpecifier(r,!1,s),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,i,s,l))}parseImportSpecifier(r,i,s,l,d){return!i&&l?(this.parseTypeOnlyImportExportSpecifier(r,!0,s),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,i,s,l,s?4098:4096))}parseTypeOnlyImportExportSpecifier(r,i,s){let l=i?"imported":"local",d=i?"local":"exported",h=r[l],S,b=!1,A=!0,L=h.loc.start;if(this.isContextual(93)){let j=this.parseIdentifier();if(this.isContextual(93)){let ie=this.parseIdentifier();R6(this.state.type)?(b=!0,h=j,S=i?this.parseIdentifier():this.parseModuleExportName(),A=!1):(S=ie,A=!1)}else R6(this.state.type)?(A=!1,S=i?this.parseIdentifier():this.parseModuleExportName()):(b=!0,h=j)}else R6(this.state.type)&&(b=!0,i?(h=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(h.name,h.loc.start,!0,!0)):h=this.parseModuleExportName());b&&s&&this.raise(i?jc.TypeModifierIsUsedInTypeImports:jc.TypeModifierIsUsedInTypeExports,L),r[l]=h,r[d]=S;let V=i?"importKind":"exportKind";r[V]=b?"type":"value",A&&this.eatContextual(93)&&(r[d]=i?this.parseIdentifier():this.parseModuleExportName()),r[d]||(r[d]=this.cloneIdentifier(r[l])),i&&this.checkIdentifier(r[d],b?4098:4096)}fillOptionalPropertiesForTSESLint(r){switch(r.type){case"ExpressionStatement":r.directive??(r.directive=void 0);return;case"RestElement":r.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":r.decorators??(r.decorators=[]),r.optional??(r.optional=!1),r.typeAnnotation??(r.typeAnnotation=void 0);return;case"TSParameterProperty":r.accessibility??(r.accessibility=void 0),r.decorators??(r.decorators=[]),r.override??(r.override=!1),r.readonly??(r.readonly=!1),r.static??(r.static=!1);return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":r.declare??(r.declare=!1),r.returnType??(r.returnType=void 0),r.typeParameters??(r.typeParameters=void 0);return;case"Property":r.optional??(r.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":r.optional??(r.optional=!1);case"TSIndexSignature":r.accessibility??(r.accessibility=void 0),r.readonly??(r.readonly=!1),r.static??(r.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":r.declare??(r.declare=!1),r.definite??(r.definite=!1),r.readonly??(r.readonly=!1),r.typeAnnotation??(r.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":r.accessibility??(r.accessibility=void 0),r.decorators??(r.decorators=[]),r.override??(r.override=!1),r.optional??(r.optional=!1);return;case"ClassExpression":r.id??(r.id=null);case"ClassDeclaration":r.abstract??(r.abstract=!1),r.declare??(r.declare=!1),r.decorators??(r.decorators=[]),r.implements??(r.implements=[]),r.superTypeArguments??(r.superTypeArguments=void 0),r.typeParameters??(r.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":r.declare??(r.declare=!1);return;case"VariableDeclarator":r.definite??(r.definite=!1);return;case"TSEnumDeclaration":r.const??(r.const=!1),r.declare??(r.declare=!1);return;case"TSEnumMember":r.computed??(r.computed=!1);return;case"TSImportType":r.qualifier??(r.qualifier=null),r.options??(r.options=null),r.typeArguments??(r.typeArguments=null);return;case"TSInterfaceDeclaration":r.declare??(r.declare=!1),r.extends??(r.extends=[]);return;case"TSMappedType":r.optional??(r.optional=!1),r.readonly??(r.readonly=void 0);return;case"TSModuleDeclaration":r.declare??(r.declare=!1),r.global??(r.global=r.kind==="global");return;case"TSTypeParameter":r.const??(r.const=!1),r.in??(r.in=!1),r.out??(r.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(r,i){if(l8(r)){if(aZe.lastIndex=i,aZe.test(this.input)){let s=this.codePointAtPos(aZe.lastIndex);if(!cV(s)&&s!==92)return!1}return!0}else return r===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let r=this.nextTokenInLineStart(),i=this.codePointAtPos(r);return this.chStartsBindingIdentifierAndNotRelationalOperator(i,r)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let r=this.nextTokenInLineStart(),i=this.codePointAtPos(r);return this.chStartsBindingIdentifier(i,r)||i===34||i===39}};function gKr(e){if(e.type!=="MemberExpression")return!1;let{computed:r,property:i}=e;return r&&i.type!=="StringLiteral"&&(i.type!=="TemplateLiteral"||i.expressions.length>0)?!1:BRt(e.object)}function yKr(e,r){let{type:i}=e;if(e.extra?.parenthesized)return!1;if(r){if(i==="Literal"){let{value:s}=e;if(typeof s=="string"||typeof s=="boolean")return!0}}else if(i==="StringLiteral"||i==="BooleanLiteral")return!0;return!!(jRt(e,r)||vKr(e,r)||i==="TemplateLiteral"&&e.expressions.length===0||gKr(e))}function jRt(e,r){return r?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function vKr(e,r){if(e.type==="UnaryExpression"){let{operator:i,argument:s}=e;if(i==="-"&&jRt(s,r))return!0}return!1}function BRt(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:BRt(e.object)}var sRt=c8`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),SKr=e=>class extends e{parsePlaceholder(r){if(this.match(133)){let i=this.startNode();return this.next(),this.assertNoSpace(),i.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(i,r)}}finishPlaceholder(r,i){let s=r;return(!s.expectedNode||!s.type)&&(s=this.finishNode(s,"Placeholder")),s.expectedNode=i,s}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,i,s,l){r!==void 0&&super.checkReservedWord(r,i,s,l)}cloneIdentifier(r){let i=super.cloneIdentifier(r);return i.type==="Placeholder"&&(i.expectedNode=r.expectedNode),i}cloneStringLiteral(r){return r.type==="Placeholder"?this.cloneIdentifier(r):super.cloneStringLiteral(r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,i,s,l){return r==="Placeholder"||super.isValidLVal(r,i,s,l)}toAssignable(r,i){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,i)}chStartsBindingIdentifier(r,i){if(super.chStartsBindingIdentifier(r,i))return!0;let s=this.nextTokenStart();return this.input.charCodeAt(s)===37&&this.input.charCodeAt(s+1)===37}verifyBreakContinue(r,i){r.label&&r.label.type==="Placeholder"||super.verifyBreakContinue(r,i)}parseExpressionStatement(r,i){if(i.type!=="Placeholder"||i.extra?.parenthesized)return super.parseExpressionStatement(r,i);if(this.match(14)){let l=r;return l.label=this.finishPlaceholder(i,"Identifier"),this.next(),l.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(l,"LabeledStatement")}this.semicolon();let s=r;return s.name=i.name,this.finishPlaceholder(s,"Statement")}parseBlock(r,i,s){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,i,s)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,i,s){let l=i?"ClassDeclaration":"ClassExpression";this.next();let d=this.state.strict,h=this.parsePlaceholder("Identifier");if(h)if(this.match(81)||this.match(133)||this.match(5))r.id=h;else{if(s||!i)return r.id=null,r.body=this.finishPlaceholder(h,"ClassBody"),this.finishNode(r,l);throw this.raise(sRt.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(r,i,s);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,d),this.finishNode(r,l)}parseExport(r,i){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(r,i);let l=r;if(!this.isContextual(98)&&!this.match(12))return l.specifiers=[],l.source=null,l.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(l,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let d=this.startNode();return d.exported=s,l.specifiers=[this.finishNode(d,"ExportDefaultSpecifier")],super.parseExport(l,i)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(eB(133),this.nextTokenStartSince(r+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,i){return r.specifiers?.length?!0:super.maybeParseExportDefaultSpecifier(r,i)}checkExport(r){let{specifiers:i}=r;i?.length&&(r.specifiers=i.filter(s=>s.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=i}parseImport(r){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(i,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let s=this.startNodeAtNode(i);return s.local=i,r.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(sRt.UnexpectedSpace,this.state.lastTokEndLoc)}},bKr=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,i=this.startNode();if(this.next(),fm(this.state.type)){let s=this.parseIdentifierName(),l=this.createIdentifier(i,s);if(this.castNodeTo(l,"V8IntrinsicIdentifier"),this.match(10))return l}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}},cRt=["fsharp","hack"],lRt=["^^","@@","^","%","#"];function xKr(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let r=e.get("decorators").decoratorsBeforeExport;if(r!=null&&typeof r!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let i=e.get("decorators").allowCallParenthesized;if(i!=null&&typeof i!="boolean")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")){let r=e.get("pipelineOperator").proposal;if(!cRt.includes(r)){let i=cRt.map(s=>`"${s}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${i}.`)}if(r==="hack"){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.");let i=e.get("pipelineOperator").topicToken;if(!lRt.includes(i)){let s=lRt.map(l=>`"${l}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${s}.`)}}}if(e.has("moduleAttributes"))throw new Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(e.has("importAssertions"))throw new Error("`importAssertions` has been removed in Babel 8, please use import attributes instead. To use the non-standard `assert` syntax you can enable the `deprecatedImportAssert` parser plugin.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax)throw new Error("The 'importAttributes' plugin has been removed in Babel 8. If you need to enable support for the deprecated `assert` syntax, you can enable the `deprecatedImportAssert` parser plugin.");if(e.has("recordAndTuple"))throw new Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let r=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw r.missingPlugins="doExpressions",r}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")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")&&e.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");{if(e.has("decimal"))throw new Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("importReflection"))throw new Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}}var $Rt={estree:pHr,jsx:JHr,flow:UHr,typescript:hKr,v8intrinsic:bKr,placeholders:SKr},TKr=Object.keys($Rt),EKr=class extends _Kr{checkProto(e,r,i,s){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return i;let l=e.key;return(l.type==="Identifier"?l.name:l.value)==="__proto__"?r?(this.raise(xn.RecordNoProto,l),!0):(i&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=l.loc.start):this.raise(xn.DuplicateProto,l)),!0):i}shouldExitDescending(e,r){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===r}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(xn.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(xn.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&256&&(e.tokens=this.tokens),e}parseExpression(e,r){return e?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(e){let r=this.state.startLoc,i=this.parseMaybeAssign(e);if(this.match(12)){let s=this.startNodeAt(r);for(s.expressions=[i];this.eat(12);)s.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(e,r){return this.disallowInAnd(()=>this.parseMaybeAssign(e,r))}parseMaybeAssignAllowIn(e,r){return this.allowInAnd(()=>this.parseMaybeAssign(e,r))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,r){let i=this.state.startLoc,s=this.isContextual(108);if(s&&this.prodParam.hasYield){this.next();let S=this.parseYield(i);return r&&(S=r.call(this,S,i)),S}let l;e?l=!1:(e=new wCe,l=!0);let{type:d}=this.state;(d===10||fm(d))&&(this.state.potentialArrowAt=this.state.start);let h=this.parseMaybeConditional(e);if(r&&(h=r.call(this,h,i)),hHr(this.state.type)){let S=this.startNodeAt(i),b=this.state.value;if(S.operator=b,this.match(29)){this.toAssignable(h,!0),S.left=h;let A=i.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=A&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=A&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=A&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),e.voidPatternLoc!=null&&e.voidPatternLoc.index>=A&&(e.voidPatternLoc=null)}else S.left=h;return this.next(),S.right=this.parseMaybeAssign(),this.checkLVal(h,this.finishNode(S,"AssignmentExpression"),void 0,void 0,void 0,void 0,b==="||="||b==="&&="||b==="??="),S}else l&&this.checkExpressionErrors(e,!0);if(s){let{type:S}=this.state;if((this.hasPlugin("v8intrinsic")?xpe(S):xpe(S)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(xn.YieldNotInGeneratorFunction,i),this.parseYield(i)}return h}parseMaybeConditional(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprOps(e);return this.shouldExitDescending(s,i)?s:this.parseConditional(s,r,e)}parseConditional(e,r,i){if(this.eat(17)){let s=this.startNodeAt(r);return s.test=e,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(s,i)?s:this.parseExprOp(s,r,-1)}parseExprOp(e,r,i){if(this.isPrivateName(e)){let l=this.getPrivateNameSV(e);(i>=DCe(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(xn.PrivateInExpectedIn,e,{identifierName:l}),this.classScope.usePrivateName(l,e.loc.start)}let s=this.state.type;if(yHr(s)&&(this.prodParam.hasIn||!this.match(58))){let l=DCe(s);if(l>i){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,r)}let d=this.startNodeAt(r);d.left=e,d.operator=this.state.value;let h=s===41||s===42,S=s===40;S&&(l=DCe(42)),this.next(),d.right=this.parseExprOpRightExpr(s,l);let b=this.finishNode(d,h||S?"LogicalExpression":"BinaryExpression"),A=this.state.type;if(S&&(A===41||A===42)||h&&A===40)throw this.raise(xn.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(b,r,i)}}return e}parseExprOpRightExpr(e,r){switch(this.state.startLoc,e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}default:return this.parseExprOpBaseRightExpr(e,r)}}parseExprOpBaseRightExpr(e,r){let i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,THr(e)?r-1:r)}parseHackPipeBody(){let{startLoc:e}=this.state,r=this.parseMaybeAssign();return iHr.has(r.type)&&!r.extra?.parenthesized&&this.raise(xn.PipeUnparenthesizedBody,e,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(xn.PipeTopicUnused,e),r}checkExponentialAfterUnary(e){this.match(57)&&this.raise(xn.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,r){let i=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();let S=this.parseAwait(i);return r||this.checkExponentialAfterUnary(S),S}let l=this.match(34),d=this.startNode();if(SHr(this.state.type)){d.operator=this.state.value,d.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let S=this.match(89);if(this.next(),d.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&S){let b=d.argument;b.type==="Identifier"?this.raise(xn.StrictDelete,d):this.hasPropertyAsPrivateName(b)&&this.raise(xn.DeletePrivateField,d)}if(!l)return r||this.checkExponentialAfterUnary(d),this.finishNode(d,"UnaryExpression")}let h=this.parseUpdate(d,l,e);if(s){let{type:S}=this.state;if((this.hasPlugin("v8intrinsic")?xpe(S):xpe(S)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(xn.AwaitNotInAsyncContext,i),this.parseAwait(i)}return h}parseUpdate(e,r,i){if(r){let d=e;return this.checkLVal(d.argument,this.finishNode(d,"UpdateExpression")),e}let s=this.state.startLoc,l=this.parseExprSubscripts(i);if(this.checkExpressionErrors(i,!1))return l;for(;vHr(this.state.type)&&!this.canInsertSemicolon();){let d=this.startNodeAt(s);d.operator=this.state.value,d.prefix=!1,d.argument=l,this.next(),this.checkLVal(l,l=this.finishNode(d,"UpdateExpression"))}return l}parseExprSubscripts(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprAtom(e);return this.shouldExitDescending(s,i)?s:this.parseSubscripts(s,r)}parseSubscripts(e,r,i){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,r,i,s),s.maybeAsyncArrow=!1;while(!s.stop);return e}parseSubscript(e,r,i,s){let{type:l}=this.state;if(!i&&l===15)return this.parseBind(e,r,i,s);if(pZe(l))return this.parseTaggedTemplateExpression(e,r,s);let d=!1;if(l===18){if(i&&(this.raise(xn.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(e,s);s.optionalChainMember=d=!0,this.next()}if(!i&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,r,s,d);{let h=this.eat(0);return h||d||this.eat(16)?this.parseMember(e,r,s,h,d):this.stopParseSubscript(e,s)}}stopParseSubscript(e,r){return r.stop=!0,e}parseMember(e,r,i,s,l){let d=this.startNodeAt(r);return d.object=e,d.computed=s,s?(d.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type==="Super"&&this.raise(xn.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),d.property=this.parsePrivateName()):d.property=this.parseIdentifier(!0),i.optionalChainMember?(d.optional=l,this.finishNode(d,"OptionalMemberExpression")):this.finishNode(d,"MemberExpression")}parseBind(e,r,i,s){let l=this.startNodeAt(r);return l.object=e,this.next(),l.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(l,"BindExpression"),r,i)}parseCoverCallAndAsyncArrowHead(e,r,i,s){let l=this.state.maybeInArrowParameters,d=null;this.state.maybeInArrowParameters=!0,this.next();let h=this.startNodeAt(r);h.callee=e;let{maybeAsyncArrow:S,optionalChainMember:b}=i;S&&(this.expressionScope.enter(lKr()),d=new wCe),b&&(h.optional=s),s?h.arguments=this.parseCallExpressionArguments():h.arguments=this.parseCallExpressionArguments(e.type!=="Super",h,d);let A=this.finishCallExpression(h,b);return S&&this.shouldParseAsyncArrow()&&!s?(i.stop=!0,this.checkDestructuringPrivate(d),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),A=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),A)):(S&&(this.checkExpressionErrors(d,!0),this.expressionScope.exit()),this.toReferencedArguments(A)),this.state.maybeInArrowParameters=l,A}toReferencedArguments(e,r){this.toReferencedListDeep(e.arguments,r)}parseTaggedTemplateExpression(e,r,i){let s=this.startNodeAt(r);return s.tag=e,s.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(xn.OptionalChainingNoTemplate,r),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,r){if(e.callee.type==="Import")if(e.arguments.length===0||e.arguments.length>2)this.raise(xn.ImportCallArity,e);else for(let i of e.arguments)i.type==="SpreadElement"&&this.raise(xn.ImportCallSpreadArgument,i);return this.finishNode(e,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,r,i){let s=[],l=!0,d=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(l)l=!1;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}s.push(this.parseExprListItem(11,!1,i,e))}return this.state.inFSharpPipelineDirectBody=d,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,r){return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(e,r.arguments,!0,r.extra?.trailingCommaLoc),r.innerComments&&PY(e,r.innerComments),r.callee.trailingComments&&PY(e,r.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let r,i=null,{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(r):this.match(10)?this.optionFlags&512?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(xn.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"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:{let l=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(l)}case 0:return this.parseArrayLike(3,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:i=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(i,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let l=r.callee=this.parseNoCallExpr();if(l.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(xn.UnsupportedBind,l)}case 139:return this.raise(xn.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:{let l=this.getPluginOption("pipelineOperator","proposal");if(l)return this.parseTopicReference(l);throw this.unexpected()}case 47:{let l=this.input.codePointAt(this.nextTokenStart());throw l8(l)||l===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(fm(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let l=this.state.potentialArrowAt===this.state.start,d=this.state.containsEsc,h=this.parseIdentifier();if(!d&&h.name==="async"&&!this.canInsertSemicolon()){let{type:S}=this.state;if(S===68)return this.resetPreviousNodeTrailingComments(h),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(h));if(fm(S))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(h)):h;if(S===90)return this.resetPreviousNodeTrailingComments(h),this.parseDo(this.startNodeAtNode(h),!0)}return l&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(h),[h],!1)):h}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,r){let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.state.type=e,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=eI(this.state.endLoc,-1),this.parseTopicReference(i);throw this.unexpected()}parseTopicReference(e){let r=this.startNode(),i=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(r,i,e,s)}finishTopicReference(e,r,i,s){if(this.testTopicReferenceConfiguration(i,r,s))return this.topicReferenceIsAllowedInCurrentContext()||this.raise(xn.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(e,"TopicReference");throw this.raise(xn.PipeTopicUnconfiguredToken,r,{token:eB(s)})}testTopicReferenceConfiguration(e,r,i){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:eB(i)}]);case"smart":return i===27;default:throw this.raise(xn.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(ACe(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(xn.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,r,!0)}parseDo(e,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),e.async=r,this.next();let i=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=i,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.raise(xn.SuperNotAllowed,e):this.scope.allowSuper||this.raise(xn.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(xn.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),r=this.startNodeAt(eI(this.state.startLoc,1)),i=this.state.value;return this.next(),e.id=this.createIdentifier(r,i),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,r,"sent")}return this.parseFunction(e)}parseMetaProperty(e,r,i){e.meta=r;let s=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==i||s)&&this.raise(xn.UnsupportedMetaProperty,e.property,{target:r.name,onlyValidPropertyName:i}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let r=this.isContextual(105);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=r?"source":"defer",this.parseImportCall(e)}else{let r=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(xn.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,r,"meta")}}parseLiteralAtNode(e,r,i){return this.addExtra(i,"rawValue",e),this.addExtra(i,"raw",this.input.slice(this.offsetToSourcePos(i.start),this.state.end)),i.value=e,this.next(),this.finishNode(i,r)}parseLiteral(e,r){let i=this.startNode();return this.parseLiteralAtNode(e,r,i)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){{let r;try{r=BigInt(e)}catch{r=null}return this.parseLiteral(r,"BigIntLiteral")}}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=e.pattern,r.flags=e.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(e){let r=this.startNode();return r.value=e,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let r=this.state.startLoc,i;this.next(),this.expressionScope.enter(cKr());let s=this.state.maybeInArrowParameters,l=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let d=this.state.startLoc,h=[],S=new wCe,b=!0,A,L;for(;!this.match(11);){if(b)b=!1;else if(this.expect(12,S.optionalParametersLoc===null?null:S.optionalParametersLoc),this.match(11)){L=this.state.startLoc;break}if(this.match(21)){let ie=this.state.startLoc;if(A=this.state.startLoc,h.push(this.parseParenItem(this.parseRestBinding(),ie)),!this.checkCommaAfterRest(41))break}else h.push(this.parseMaybeAssignAllowInOrVoidPattern(11,S,this.parseParenItem))}let V=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=l;let j=this.startNodeAt(r);return e&&this.shouldParseArrow(h)&&(j=this.parseArrow(j))?(this.checkDestructuringPrivate(S),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(j,h,!1),j):(this.expressionScope.exit(),h.length||this.unexpected(this.state.lastTokStartLoc),L&&this.unexpected(L),A&&this.unexpected(A),this.checkExpressionErrors(S,!0),this.toReferencedListDeep(h,!0),h.length>1?(i=this.startNodeAt(d),i.expressions=h,this.finishNode(i,"SequenceExpression"),this.resetEndLocation(i,V)):i=h[0],this.wrapParenthesis(r,i))}wrapParenthesis(e,r){if(!(this.optionFlags&1024))return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",e.index),this.takeSurroundingComments(r,e.index,this.state.lastTokEndLoc.index),r;let i=this.startNodeAt(e);return i.expression=r,this.finishNode(i,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,r){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let i=this.parseMetaProperty(e,r,"target");return this.scope.allowNewTarget||this.raise(xn.UnexpectedNewTarget,i),i}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),e.arguments=r}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let r=this.match(83),i=this.parseNoCallExpr();e.callee=i,r&&(i.type==="Import"||i.type==="ImportExpression")&&this.raise(xn.ImportCallNotNewExpression,i)}parseTemplateElement(e){let{start:r,startLoc:i,end:s,value:l}=this.state,d=r+1,h=this.startNodeAt(eI(i,1));l===null&&(e||this.raise(xn.InvalidEscapeSequenceTemplate,eI(this.state.firstInvalidTemplateEscapePos,1)));let S=this.match(24),b=S?-1:-2,A=s+b;h.value={raw:this.input.slice(d,A).replace(/\r\n?/g,` +`),cooked:l===null?null:l.slice(1,b)},h.tail=S,this.next();let L=this.finishNode(h,"TemplateElement");return this.resetEndLocation(L,eI(this.state.lastTokEndLoc,b)),L}parseTemplate(e){let r=this.startNode(),i=this.parseTemplateElement(e),s=[i],l=[];for(;!i.tail;)l.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(i=this.parseTemplateElement(e));return r.expressions=l,r.quasis=s,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,r,i,s){i&&this.expectPlugin("recordAndTuple");let l=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let d=!1,h=!0,S=this.startNode();for(S.properties=[],this.next();!this.match(e);){if(h)h=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(S);break}let A;r?A=this.parseBindingProperty():(A=this.parsePropertyDefinition(s),d=this.checkProto(A,i,d,s)),i&&!this.isObjectProperty(A)&&A.type!=="SpreadElement"&&this.raise(xn.InvalidRecordProperty,A),S.properties.push(A)}this.next(),this.state.inFSharpPipelineDirectBody=l;let b="ObjectExpression";return r?b="ObjectPattern":i&&(b="RecordExpression"),this.finishNode(S,b)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(xn.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let i=this.startNode(),s=!1,l=!1,d;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,e&&(d=this.state.startLoc);let h=this.eat(55);this.parsePropertyNamePrefixOperator(i);let S=this.state.containsEsc;if(this.parsePropertyName(i,e),!h&&!S&&this.maybeAsyncOrAccessorProp(i)){let{key:b}=i,A=b.name;A==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(b),h=this.eat(55),this.parsePropertyName(i)),(A==="get"||A==="set")&&(l=!0,this.resetPreviousNodeTrailingComments(b),i.kind=A,this.match(55)&&(h=!0,this.raise(xn.AccessorIsGenerator,this.state.curPosition(),{kind:A}),this.next()),this.parsePropertyName(i))}return this.parseObjPropValue(i,d,h,s,!1,l,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){let r=this.getGetterSetterExpectedParamCount(e),i=this.getObjectOrClassMethodParams(e);i.length!==r&&this.raise(e.kind==="get"?xn.BadGetterArity:xn.BadSetterArity,e),e.kind==="set"&&i[i.length-1]?.type==="RestElement"&&this.raise(xn.BadSetterRestParameter,e)}parseObjectMethod(e,r,i,s,l){if(l){let d=this.parseMethod(e,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(d),d}if(i||r||this.match(10))return s&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,r,i,!1,!1,"ObjectMethod")}parseObjectProperty(e,r,i,s){if(e.shorthand=!1,this.eat(14))return e.value=i?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(e);if(!e.computed&&e.key.type==="Identifier"){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),i)e.value=this.parseMaybeDefault(r,this.cloneIdentifier(e.key));else if(this.match(29)){let l=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=l):this.raise(xn.InvalidCoverInitializedName,l),e.value=this.parseMaybeDefault(r,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,r,i,s,l,d,h){let S=this.parseObjectMethod(e,i,s,l,d)||this.parseObjectProperty(e,r,l,h);return S||this.unexpected(),S}parsePropertyName(e,r){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:i,value:s}=this.state,l;if(R6(i))l=this.parseIdentifier(!0);else switch(i){case 135:l=this.parseNumericLiteral(s);break;case 134:l=this.parseStringLiteral(s);break;case 136:l=this.parseBigIntLiteral(s);break;case 139:{let d=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=d):this.raise(xn.UnexpectedPrivateField,d),l=this.parsePrivateName();break}default:this.unexpected()}e.key=l,i!==139&&(e.computed=!1)}}initFunction(e,r){e.id=null,e.generator=!1,e.async=r}parseMethod(e,r,i,s,l,d,h=!1){this.initFunction(e,i),e.generator=r,this.scope.enter(530|(h?576:0)|(l?32:0)),this.prodParam.enter(ACe(i,e.generator)),this.parseFunctionParams(e,s);let S=this.parseFunctionBodyAndFinish(e,d,!0);return this.prodParam.exit(),this.scope.exit(),S}parseArrayLike(e,r,i){r&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let l=this.startNode();return this.next(),l.elements=this.parseExprList(e,!r,i,l),this.state.inFSharpPipelineDirectBody=s,this.finishNode(l,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,r,i,s){this.scope.enter(518);let l=ACe(i,!1);!this.match(5)&&this.prodParam.hasIn&&(l|=8),this.prodParam.enter(l),this.initFunction(e,i);let d=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,r,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=d,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,r,i){this.toAssignableList(r,i,!1),e.params=r}parseFunctionBodyAndFinish(e,r,i=!1){return this.parseFunctionBody(e,!1,i),this.finishNode(e,r)}parseFunctionBody(e,r,i=!1){let s=r&&!this.match(5);if(this.expressionScope.enter(MRt()),s)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,r,!1);else{let l=this.state.strict,d=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,h=>{let S=!this.isSimpleParamList(e.params);h&&S&&this.raise(xn.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&e.key?e.key.loc.end:e);let b=!l&&this.state.strict;this.checkParams(e,!this.state.strict&&!r&&!i&&!S,r,b),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,b)}),this.prodParam.exit(),this.state.labels=d}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let r=0,i=e.length;r10||!OHr(e))){if(i&&IHr(e)){this.raise(xn.UnexpectedKeyword,r,{keyword:e});return}if((this.state.strict?s?PRt:wRt:ARt)(e,this.inModule)){this.raise(xn.UnexpectedReservedWord,r,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(xn.YieldBindingIdentifier,r);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(xn.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(xn.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(e==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(xn.ArgumentsInClass,r);return}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let r=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(xn.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(xn.ObsoleteAwaitStar,r),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||pZe(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(e){let r=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(xn.YieldInParameter,r);let i=!1,s=null;if(!this.hasPrecedingLineBreak())switch(i=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!i)break;default:s=this.parseMaybeAssign()}return r.delegate=i,r.argument=s,this.finishNode(r,"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(xn.ImportCallArity,e)}}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&e.type==="SequenceExpression"&&this.raise(xn.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(e,r){if(this.isSimpleReference(e)){let i=this.startNodeAt(r);return i.callee=e,this.finishNode(i,"PipelineBareFunction")}else{let i=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),i.expression=e,this.finishNode(i,"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(xn.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(xn.PipelineTopicUnused,e)}withTopicBindingContext(e){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(e){return e()}withSoloAwaitPermittingContext(e){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=r}}allowInAnd(e){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,e);return this.state.inFSharpPipelineDirectBody=i,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let i=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(r,8,"module")}finally{i()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");let r=this.startNode();return e!=null&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,r,i){if(r!=null&&this.match(88)){let s=this.lookaheadCharCode();if(s===44||s===(e===3?93:e===8?125:41)||s===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,i)}parsePropertyNamePrefixOperator(e){}},sZe={kind:1},kKr={kind:2},CKr=/[\uD800-\uDFFF]/u,cZe=/in(?:stanceof)?/y;function DKr(e,r,i){for(let s=0;s0)for(let[l,d]of Array.from(this.scope.undefinedExports))this.raise(xn.ModuleExportUndefined,d,{localName:l});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let s;return r===140?s=this.finishNode(e,"Program"):s=this.finishNodeAt(e,"Program",eI(this.state.startLoc,-1)),s}stmtToDirective(e){let r=this.castNodeTo(e,"Directive"),i=this.castNodeTo(e.expression,"DirectiveLiteral"),s=i.value,l=this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end)),d=i.value=l.slice(1,-1);return this.addExtra(i,"raw",l),this.addExtra(i,"rawValue",d),this.addExtra(i,"expressionValue",s),r.value=i,delete e.expression,r}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){let i=this.lookaheadCharCodeSince(e+2);if(i!==61&&i!==58&&i!==59)return!1}return!!(this.chStartsBindingIdentifier(r,e)||this.isUnparsedContextual(e,"void"))}nextTokenIsIdentifierOnSameLine(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return this.chStartsBindingIdentifier(r,e)}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let r=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(r,e))return!0}return!1}chStartsBindingIdentifier(e,r){if(l8(e)){if(cZe.lastIndex=r,cZe.test(this.input)){let i=this.codePointAtPos(cZe.lastIndex);if(!cV(i)&&i!==92)return!1}return!0}else return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),r=this.codePointAtPos(e);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return r===123||this.chStartsBindingIdentifier(r,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 r=0;return this.options.annexB&&!this.state.strict&&(r|=4,e&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(e,r)}parseStatementContent(e,r){let i=this.state.type,s=this.startNode(),l=!!(e&2),d=!!(e&4),h=e&1;switch(i){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;return d||this.raise(this.state.strict?xn.StrictFunction:this.options.annexB?xn.SloppyFunctionAnnexB:xn.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!l&&d);case 80:return l||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(this.isAwaitUsing())return this.allowsUsing()?l?this.recordAwaitIfAllowed()||this.raise(xn.AwaitUsingNotInAsyncContext,s):this.raise(xn.UnexpectedLexicalDeclaration,s):this.raise(xn.UnexpectedUsingDeclaration,s),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?l||this.raise(xn.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(xn.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let A=this.nextTokenStart(),L=this.codePointAtPos(A);if(L!==91&&(!l&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(L,A)&&L!==123))break}case 75:l||this.raise(xn.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let A=this.state.value;return this.parseVarStatement(s,A)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{let A=this.lookaheadCharCode();if(A===40||A===46)break}case 82:{!(this.optionFlags&8)&&!h&&this.raise(xn.UnexpectedImportExport,this.state.startLoc),this.next();let A;return i===83?A=this.parseImport(s):A=this.parseExport(s,r),this.assertModuleNodeAllowed(A),A}default:if(this.isAsyncFunction())return l||this.raise(xn.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!l&&d)}let S=this.state.value,b=this.parseExpression();return fm(i)&&b.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,S,b,e):this.parseExpressionStatement(s,b,r)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(xn.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(e,r,i){return e&&(r.decorators?.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(xn.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...e)):r.decorators=e,this.resetStartLocationFromNode(r,e[0]),i&&this.resetStartLocationFromNode(i,r)),r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(xn.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(xn.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,i;if(this.match(10)){let s=this.state.startLoc;this.next(),i=this.parseExpression(),this.expect(11),i=this.wrapParenthesis(s,i);let l=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(i,s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&e.expression!==i&&this.raise(xn.DecoratorArgumentsOutsideParentheses,l)}else{for(i=this.parseIdentifier(!1);this.eat(16);){let s=this.startNodeAt(r);s.object=i,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,i=this.finishNode(s,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(i,r)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,r){if(this.eat(10)){let i=this.startNodeAt(r);return i.callee=e,i.arguments=this.parseCallExpressionArguments(),this.toReferencedList(i.arguments),this.finishNode(i,"CallExpression")}return e}parseBreakContinueStatement(e,r){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,r),this.finishNode(e,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,r){let i;for(i=0;ithis.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(sZe);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(e,null);let i=this.isContextual(100);{let S=this.isAwaitUsing(),b=S||this.isForUsing(),A=i&&this.hasFollowingBindingAtom()||b;if(this.match(74)||this.match(75)||A){let L=this.startNode(),V;S?(V="await using",this.recordAwaitIfAllowed()||this.raise(xn.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):V=this.state.value,this.next(),this.parseVar(L,!0,V);let j=this.finishNode(L,"VariableDeclaration"),ie=this.match(58);return ie&&b&&this.raise(xn.ForInUsing,j),(ie||this.isContextual(102))&&j.declarations.length===1?this.parseForIn(e,j,r):(r!==null&&this.unexpected(r),this.parseFor(e,j))}}let s=this.isContextual(95),l=new wCe,d=this.parseExpression(!0,l),h=this.isContextual(102);if(h&&(i&&this.raise(xn.ForOfLet,d),r===null&&s&&d.type==="Identifier"&&this.raise(xn.ForOfAsync,d)),h||this.match(58)){this.checkDestructuringPrivate(l),this.toAssignable(d,!0);let S=h?"ForOfStatement":"ForInStatement";return this.checkLVal(d,{type:S}),this.parseForIn(e,d,r)}else this.checkExpressionErrors(l,!0);return r!==null&&this.unexpected(r),this.parseFor(e,d)}parseFunctionStatement(e,r,i){return this.next(),this.parseFunction(e,1|(i?2:0)|(r?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(xn.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();let r=e.cases=[];this.expect(5),this.state.labels.push(kKr),this.scope.enter(256);let i;for(let s;!this.match(8);)if(this.match(61)||this.match(65)){let l=this.match(61);i&&this.finishNode(i,"SwitchCase"),r.push(i=this.startNode()),i.consequent=[],this.next(),l?i.test=this.parseExpression():(s&&this.raise(xn.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),s=!0,i.test=null),this.expect(14)}else i?i.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),i&&this.finishNode(i,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(xn.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(r,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(xn.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,r,i=!1){return this.next(),this.parseVar(e,!1,r,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(sZe),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(xn.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,r,i,s){for(let d of this.state.labels)d.name===r&&this.raise(xn.LabelRedeclaration,i,{labelName:r});let l=gHr(this.state.type)?1:this.match(71)?2:null;for(let d=this.state.labels.length-1;d>=0;d--){let h=this.state.labels[d];if(h.statementStart===e.start)h.statementStart=this.sourceToOffsetPos(this.state.start),h.kind=l;else break}return this.state.labels.push({name:r,kind:l,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,r,i){return e.expression=r,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,r=!0,i){let s=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(s,e,!1,8,i),r&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,r,i,s,l){let d=e.body=[],h=e.directives=[];this.parseBlockOrModuleBlockBody(d,r?h:void 0,i,s,l)}parseBlockOrModuleBlockBody(e,r,i,s,l){let d=this.state.strict,h=!1,S=!1;for(;!this.match(s);){let b=i?this.parseModuleItem():this.parseStatementListItem();if(r&&!S){if(this.isValidDirective(b)){let A=this.stmtToDirective(b);r.push(A),!h&&A.value.value==="use strict"&&(h=!0,this.setStrict(!0));continue}S=!0,this.state.strictErrors.clear()}e.push(b)}l?.call(this,h),d||this.setStrict(!1),this.next()}parseFor(e,r){return e.init=r,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,r,i){let s=this.match(58);return this.next(),s?i!==null&&this.unexpected(i):e.await=i!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(xn.ForInOfLoopInitializer,r,{type:s?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(xn.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),e.left=r,e.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")}parseVar(e,r,i,s=!1){let l=e.declarations=[];for(e.kind=i;;){let d=this.startNode();if(this.parseVarId(d,i),d.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,d.init===null&&!s&&(d.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(xn.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(i==="const"||i==="using"||i==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(xn.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:i})),l.push(this.finishNode(d,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,r){let i=this.parseBindingAtom();r==="using"||r==="await using"?(i.type==="ArrayPattern"||i.type==="ObjectPattern")&&this.raise(xn.UsingDeclarationHasBindingPattern,i.loc.start):i.type==="VoidPattern"&&this.raise(xn.UnexpectedVoidPattern,i.loc.start),this.checkLVal(i,{type:"VariableDeclarator"},r==="var"?5:8201),e.id=i}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,r=0){let i=r&2,s=!!(r&1),l=s&&!(r&4),d=!!(r&8);this.initFunction(e,d),this.match(55)&&(i&&this.raise(xn.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),s&&(e.id=this.parseFunctionId(l));let h=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(ACe(d,e.generator)),s||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!i&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=h,e}parseFunctionId(e){return e||fm(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,r){this.expect(10),this.expressionScope.enter(sKr()),e.params=this.parseBindingList(11,41,2|(r?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,r,i){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(e,r,i),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,s),this.finishNode(e,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,r){this.classScope.enter();let i={hadConstructor:!1,hadSuperClass:e},s=[],l=this.startNode();if(l.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(xn.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}let d=this.startNode();s.length&&(d.decorators=s,this.resetStartLocationFromNode(d,s[0]),s=[]),this.parseClassMember(l,d,i),d.kind==="constructor"&&d.decorators&&d.decorators.length>0&&this.raise(xn.DecoratorConstructor,d)}}),this.state.strict=r,this.next(),s.length)throw this.raise(xn.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(l,"ClassBody")}parseClassMemberFromModifier(e,r){let i=this.parseIdentifier(!0);if(this.isClassMethod()){let s=r;return s.kind="method",s.computed=!1,s.key=i,s.static=!1,this.pushClassMethod(e,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=r;return s.computed=!1,s.key=i,s.static=!1,e.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(i),!1}parseClassMember(e,r,i){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(e,r))return;if(this.eat(5)){this.parseClassStaticBlock(e,r);return}}this.parseClassMemberWithIsStatic(e,r,i,s)}parseClassMemberWithIsStatic(e,r,i,s){let l=r,d=r,h=r,S=r,b=r,A=l,L=l;if(r.static=s,this.parsePropertyNamePrefixOperator(r),this.eat(55)){A.kind="method";let Re=this.match(139);if(this.parseClassElementName(A),this.parsePostMemberNameModifiers(A),Re){this.pushClassPrivateMethod(e,d,!0,!1);return}this.isNonstaticConstructor(l)&&this.raise(xn.ConstructorIsGenerator,l.key),this.pushClassMethod(e,l,!0,!1,!1,!1);return}let V=!this.state.containsEsc&&fm(this.state.type),j=this.parseClassElementName(r),ie=V?j.name:null,te=this.isPrivateName(j),X=this.state.startLoc;if(this.parsePostMemberNameModifiers(L),this.isClassMethod()){if(A.kind="method",te){this.pushClassPrivateMethod(e,d,!1,!1);return}let Re=this.isNonstaticConstructor(l),Je=!1;Re&&(l.kind="constructor",i.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(xn.DuplicateConstructor,j),Re&&this.hasPlugin("typescript")&&r.override&&this.raise(xn.OverrideOnConstructor,j),i.hadConstructor=!0,Je=i.hadSuperClass),this.pushClassMethod(e,l,!1,!1,Re,Je)}else if(this.isClassProperty())te?this.pushClassPrivateProperty(e,S):this.pushClassProperty(e,h);else if(ie==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(j);let Re=this.eat(55);L.optional&&this.unexpected(X),A.kind="method";let Je=this.match(139);this.parseClassElementName(A),this.parsePostMemberNameModifiers(L),Je?this.pushClassPrivateMethod(e,d,Re,!0):(this.isNonstaticConstructor(l)&&this.raise(xn.ConstructorIsAsync,l.key),this.pushClassMethod(e,l,Re,!0,!1,!1))}else if((ie==="get"||ie==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(j),A.kind=ie;let Re=this.match(139);this.parseClassElementName(l),Re?this.pushClassPrivateMethod(e,d,!1,!1):(this.isNonstaticConstructor(l)&&this.raise(xn.ConstructorIsAccessor,l.key),this.pushClassMethod(e,l,!1,!1,!1,!1)),this.checkGetterSetterParams(l)}else if(ie==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(j);let Re=this.match(139);this.parseClassElementName(h),this.pushClassAccessorProperty(e,b,Re)}else this.isLineTerminator()?te?this.pushClassPrivateProperty(e,S):this.pushClassProperty(e,h):this.unexpected()}parseClassElementName(e){let{type:r,value:i}=this.state;if((r===132||r===134)&&e.static&&i==="prototype"&&this.raise(xn.StaticPrototype,this.state.startLoc),r===139){i==="constructor"&&this.raise(xn.ConstructorClassPrivateField,this.state.startLoc);let s=this.parsePrivateName();return e.key=s,s}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,r){this.scope.enter(720);let i=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let s=r.body=[];this.parseBlockOrModuleBlockBody(s,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,e.body.push(this.finishNode(r,"StaticBlock")),r.decorators?.length&&this.raise(xn.DecoratorStaticBlock,r)}pushClassProperty(e,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(xn.ConstructorClassField,r.key),e.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(e,r){let i=this.parseClassPrivateProperty(r);e.body.push(i),this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassAccessorProperty(e,r,i){!i&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(xn.ConstructorClassField,r.key);let s=this.parseClassAccessorProperty(r);e.body.push(s),i&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(e,r,i,s,l,d){e.body.push(this.parseMethod(r,i,s,l,d,"ClassMethod",!0))}pushClassPrivateMethod(e,r,i,s){let l=this.parseMethod(r,i,s,!1,!1,"ClassPrivateMethod",!0);e.body.push(l);let d=l.kind==="get"?l.static?6:2:l.kind==="set"?l.static?5:1:0;this.declareClassPrivateMethodInScope(l,d)}declareClassPrivateMethodInScope(e,r){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),r,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(MRt()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,r,i,s=8331){if(fm(this.state.type))e.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(e.id,s);else if(i||!r)e.id=null;else throw this.raise(xn.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,r){let i=this.parseMaybeImportPhase(e,!0),s=this.maybeParseExportDefaultSpecifier(e,i),l=!s||this.eat(12),d=l&&this.eatExportStar(e),h=d&&this.maybeParseExportNamespaceSpecifier(e),S=l&&(!h||this.eat(12)),b=s||d;if(d&&!h){if(s&&this.unexpected(),r)throw this.raise(xn.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let A=this.maybeParseExportNamedSpecifiers(e);s&&l&&!d&&!A&&this.unexpected(null,5),h&&S&&this.unexpected(null,98);let L;if(b||A){if(L=!1,r)throw this.raise(xn.UnsupportedDecoratorExport,e);this.parseExportFrom(e,b)}else L=this.maybeParseExportDeclaration(e);if(b||A||L){let V=e;if(this.checkExport(V,!0,!1,!!V.source),V.declaration?.type==="ClassDeclaration")this.maybeTakeDecorators(r,V.declaration,V);else if(r)throw this.raise(xn.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(V,"ExportNamedDeclaration")}if(this.eat(65)){let V=e,j=this.parseExportDefaultExpression();if(V.declaration=j,j.type==="ClassDeclaration")this.maybeTakeDecorators(r,j,V);else if(r)throw this.raise(xn.UnsupportedDecoratorExport,e);return this.checkExport(V,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(V,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r?.loc.start);let i=r||this.parseIdentifier(!0),s=this.startNodeAtNode(i);return s.exported=i,e.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){e.specifiers??(e.specifiers=[]);let 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)){let r=e;r.specifiers||(r.specifiers=[]);let i=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(i)),r.source=null,r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let 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")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(xn.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(xn.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(fm(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let s=this.nextTokenStart(),l=this.input.charCodeAt(s);if(l===123||this.chStartsBindingIdentifier(l,s)&&!this.input.startsWith("from",s))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),i=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||fm(this.state.type)&&i)return!0;if(this.match(65)&&i){let s=this.input.charCodeAt(this.nextTokenStartSince(r+4));return s===34||s===39}return!1}parseExportFrom(e,r){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(xn.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(xn.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(xn.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,r,i,s){if(r){if(i){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){let l=e.declaration;l.type==="Identifier"&&l.name==="from"&&l.end-l.start===4&&!l.extra?.parenthesized&&this.raise(xn.ExportDefaultFromAsIdentifier,l)}}else if(e.specifiers?.length)for(let l of e.specifiers){let{exported:d}=l,h=d.type==="Identifier"?d.name:d.value;if(this.checkDuplicateExports(l,h),!s&&l.local){let{local:S}=l;S.type!=="Identifier"?this.raise(xn.ExportBindingIsString,l,{localName:S.value,exportName:h}):(this.checkReservedWord(S.name,S.loc.start,!0,!1),this.scope.checkLocalExport(S))}}else if(e.declaration){let l=e.declaration;if(l.type==="FunctionDeclaration"||l.type==="ClassDeclaration"){let{id:d}=l;if(!d)throw new Error("Assertion failure");this.checkDuplicateExports(e,d.name)}else if(l.type==="VariableDeclaration")for(let d of l.declarations)this.checkDeclaration(d.id)}}}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let r of e.properties)this.checkDeclaration(r);else if(e.type==="ArrayPattern")for(let r of e.elements)r&&this.checkDeclaration(r);else e.type==="ObjectProperty"?this.checkDeclaration(e.value):e.type==="RestElement"?this.checkDeclaration(e.argument):e.type==="AssignmentPattern"&&this.checkDeclaration(e.left)}checkDuplicateExports(e,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(xn.DuplicateDefaultExport,e):this.raise(xn.DuplicateExport,e,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(e){let r=[],i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else if(this.expect(12),this.eat(8))break;let s=this.isContextual(130),l=this.match(134),d=this.startNode();d.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(d,l,e,s))}return r}parseExportSpecifier(e,r,i,s){return this.eatContextual(93)?e.exported=this.parseModuleExportName():r?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),r=CKr.exec(e.value);return r&&this.raise(xn.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:r[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions!=null?e.assertions.some(({key:r,value:i})=>i.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(e){let{specifiers:r}=e,i=r.length===1?r[0].type:null;e.phase==="source"?i!=="ImportDefaultSpecifier"&&this.raise(xn.SourcePhaseImportRequiresDefault,r[0].loc.start):e.phase==="defer"?i!=="ImportNamespaceSpecifier"&&this.raise(xn.DeferImportRequiresNamespace,r[0].loc.start):e.module&&(i!=="ImportDefaultSpecifier"&&this.raise(xn.ImportReflectionNotBinding,r[0].loc.start),e.assertions?.length>0&&this.raise(xn.ImportReflectionHasAssertion,r[0].loc.start))}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){let{specifiers:r}=e;if(r!=null){let i=r.find(s=>{let l;if(s.type==="ExportSpecifier"?l=s.local:s.type==="ImportSpecifier"&&(l=s.imported),l!==void 0)return l.type==="Identifier"?l.name!=="default":l.value!=="default"});i!==void 0&&this.raise(xn.ImportJSONBindingNotDefault,i.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)}applyImportPhase(e,r,i,s){r||(this.hasPlugin("importReflection")&&(e.module=!1),i==="source"?(this.expectPlugin("sourcePhaseImports",s),e.phase="source"):i==="defer"?(this.expectPlugin("deferredImportEvaluation",s),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(e,r,null),null;let i=this.startNode(),s=this.parseIdentifierName(!0),{type:l}=this.state;return(R6(l)?l!==98||this.lookaheadCharCode()===102:l!==12)?(this.applyImportPhase(e,r,s,i.loc.start),null):(this.applyImportPhase(e,r,null),this.createIdentifier(i,s))}isPrecedingIdImportPhase(e){let{type:r}=this.state;return fm(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,r){e.specifiers=[];let i=!this.maybeParseDefaultImportSpecifier(e,r)||this.eat(12),s=i&&this.maybeParseStarImportSpecifier(e);return i&&!s&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return 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,r,i){r.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(r,i))}finishImportSpecifier(e,r,i=8201){return this.checkLVal(e.local,{type:r},i),this.finishNode(e,r)}parseImportAttributes(){this.expect(5);let e=[],r=new Set;do{if(this.match(8))break;let i=this.startNode(),s=this.state.value;if(r.has(s)&&this.raise(xn.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),r.add(s),this.match(134)?i.key=this.parseStringLiteral(s):i.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(xn.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],r=new Set;do{let i=this.startNode();if(i.key=this.parseIdentifier(!0),i.key.name!=="type"&&this.raise(xn.ModuleAttributeDifferentFromType,i.key),r.has(i.key.name)&&this.raise(xn.ModuleAttributesWithDuplicateKeys,i.key,{key:i.key.name}),r.add(i.key.name),this.expect(14),!this.match(134))throw this.raise(xn.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let r;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),r=this.parseImportAttributes()}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.raise(xn.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),r=this.parseImportAttributes()):r=[];e.attributes=r}maybeParseDefaultImportSpecifier(e,r){if(r){let i=this.startNodeAtNode(r);return i.local=r,e.specifiers.push(this.finishImportSpecifier(i,"ImportDefaultSpecifier")),!0}else if(R6(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(xn.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let i=this.startNode(),s=this.match(134),l=this.isContextual(130);i.imported=this.parseModuleExportName();let d=this.parseImportSpecifier(i,s,e.importKind==="type"||e.importKind==="typeof",l,void 0);e.specifiers.push(d)}}parseImportSpecifier(e,r,i,s,l){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:d}=e;if(r)throw this.raise(xn.ImportBindingIsString,e,{importName:d.value});this.checkReservedWord(d.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(d))}return this.finishImportSpecifier(e,"ImportSpecifier",l)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}},URt=class extends AKr{constructor(e,r,i){let s=lHr(e);super(s,r),this.options=s,this.initializeScopes(),this.plugins=i,this.filename=s.sourceFilename,this.startIndex=s.startIndex;let l=0;s.allowAwaitOutsideFunction&&(l|=1),s.allowReturnOutsideFunction&&(l|=2),s.allowImportExportEverywhere&&(l|=8),s.allowSuperOutsideMethod&&(l|=16),s.allowUndeclaredExports&&(l|=64),s.allowNewTargetOutsideFunction&&(l|=4),s.allowYieldOutsideFunction&&(l|=32),s.ranges&&(l|=128),s.tokens&&(l|=256),s.createImportExpressions&&(l|=512),s.createParenthesizedExpressions&&(l|=1024),s.errorRecovery&&(l|=2048),s.attachComment&&(l|=4096),s.annexB&&(l|=8192),this.optionFlags=l}getScopeHandler(){return PZe}parse(){this.enterInitialScopes();let e=this.startNode(),r=this.startNode();this.nextToken(),e.errors=null;let i=this.parseTopLevel(e,r);return i.errors=this.state.errors,i.comments.length=this.state.commentsLen,i}};function zRt(e,r){if(r?.sourceType==="unambiguous"){r=Object.assign({},r);try{r.sourceType="module";let i=Tpe(r,e),s=i.parse();if(i.sawUnambiguousESM)return s;if(i.ambiguousScriptDifferentAst)try{return r.sourceType="script",Tpe(r,e).parse()}catch{}else s.program.sourceType="script";return s}catch(i){try{return r.sourceType="script",Tpe(r,e).parse()}catch{}throw i}}else return Tpe(r,e).parse()}function qRt(e,r){let i=Tpe(r,e);return i.options.strictMode&&(i.state.strict=!0),i.getExpression()}function wKr(e){let r={};for(let i of Object.keys(e))r[i]=kRt(e[i]);return r}var Kqn=wKr(dHr);function Tpe(e,r){let i=URt,s=new Map;if(e?.plugins){for(let l of e.plugins){let d,h;typeof l=="string"?d=l:[d,h]=l,s.has(d)||s.set(d,h||{})}xKr(s),i=IKr(s)}return new i(e,r,s)}var uRt=new Map;function IKr(e){let r=[];for(let l of TKr)e.has(l)&&r.push(l);let i=r.join("|"),s=uRt.get(i);if(!s){s=URt;for(let l of r)s=$Rt[l](s);uRt.set(i,s)}return s}function OCe(e){return(r,i,s)=>{let l=!!s?.backwards;if(i===!1)return!1;let{length:d}=r,h=i;for(;h>=0&&he===` +`||e==="\r"||e==="\u2028"||e==="\u2029";function RKr(e,r,i){let s=!!i?.backwards;if(r===!1)return!1;let l=e.charAt(r);if(s){if(e.charAt(r-1)==="\r"&&l===` +`)return r-2;if(pRt(l))return r-1}else{if(l==="\r"&&e.charAt(r+1)===` +`)return r+2;if(pRt(l))return r+1}return r}var LKr=RKr;function MKr(e,r){return r===!1?!1:e.charAt(r)==="/"&&e.charAt(r+1)==="/"?NKr(e,r):r}var jKr=MKr;function BKr(e,r){let i=null,s=r;for(;s!==i;)i=s,s=PKr(e,s),s=FKr(e,s),s=jKr(e,s),s=LKr(e,s);return s}var $Kr=BKr;function UKr(e){let r=[];for(let i of e)try{return i()}catch(s){r.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:r})}function zKr(e){if(!e.startsWith("#!"))return"";let r=e.indexOf(` +`);return r===-1?e:e.slice(0,r)}var JRt=zKr,NZe=(e,r)=>(i,s,...l)=>i|1&&s==null?void 0:(r.call(s)??s[e]).apply(s,l),qKr=Array.prototype.findLast??function(e){for(let r=this.length-1;r>=0;r--){let i=this[r];if(e(i,r,this))return i}},JKr=NZe("findLast",function(){if(Array.isArray(this))return qKr}),VKr=JKr;function WKr(e){return this[e<0?this.length+e:e]}var GKr=NZe("at",function(){if(Array.isArray(this)||typeof this=="string")return WKr}),HKr=GKr;function L5(e){let r=e.range?.[0]??e.start,i=(e.declaration?.decorators??e.decorators)?.[0];return i?Math.min(L5(i),r):r}function u8(e){return e.range?.[1]??e.end}function KKr(e){let r=new Set(e);return i=>r.has(i?.type)}var OZe=KKr,QKr=OZe(["Block","CommentBlock","MultiLine"]),FZe=QKr,ZKr=OZe(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),XKr=ZKr,lZe=new WeakMap;function YKr(e){return lZe.has(e)||lZe.set(e,FZe(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),lZe.get(e)}var eQr=YKr;function tQr(e){if(!FZe(e))return!1;let r=`*${e.value}*`.split(` +`);return r.length>1&&r.every(i=>i.trimStart()[0]==="*")}var uZe=new WeakMap;function rQr(e){return uZe.has(e)||uZe.set(e,tQr(e)),uZe.get(e)}var _Rt=rQr;function nQr(e){if(e.length<2)return;let r;for(let i=e.length-1;i>=0;i--){let s=e[i];if(r&&u8(s)===L5(r)&&_Rt(s)&&_Rt(r)&&(e.splice(i+1,1),s.value+="*//*"+r.value,s.range=[L5(s),u8(r)]),!XKr(s)&&!FZe(s))throw new TypeError(`Unknown comment type: "${s.type}".`);r=s}}var iQr=nQr;function oQr(e){return e!==null&&typeof e=="object"}var aQr=oQr,bpe=null;function kpe(e){if(bpe!==null&&typeof bpe.property){let r=bpe;return bpe=kpe.prototype=null,r}return bpe=kpe.prototype=e??Object.create(null),new kpe}var sQr=10;for(let e=0;e<=sQr;e++)kpe();function cQr(e){return kpe(e)}function lQr(e,r="type"){cQr(e);function i(s){let l=s[r],d=e[l];if(!Array.isArray(d))throw Object.assign(new Error(`Missing visitor keys for '${l}'.`),{node:s});return d}return i}var uQr=lQr,Hr=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],pQr={AccessorProperty:Hr[0],AnyTypeAnnotation:Hr[1],ArgumentPlaceholder:Hr[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:Hr[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:Hr[3],AsExpression:Hr[4],AssignmentExpression:Hr[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:Hr[6],BigIntLiteral:Hr[1],BigIntLiteralTypeAnnotation:Hr[1],BigIntTypeAnnotation:Hr[1],BinaryExpression:Hr[5],BindExpression:["object","callee"],BlockStatement:Hr[7],BooleanLiteral:Hr[1],BooleanLiteralTypeAnnotation:Hr[1],BooleanTypeAnnotation:Hr[1],BreakStatement:Hr[8],CallExpression:Hr[9],CatchClause:["param","body"],ChainExpression:Hr[3],ClassAccessorProperty:Hr[0],ClassBody:Hr[10],ClassDeclaration:Hr[11],ClassExpression:Hr[11],ClassImplements:Hr[12],ClassMethod:Hr[13],ClassPrivateMethod:Hr[13],ClassPrivateProperty:Hr[14],ClassProperty:Hr[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:Hr[15],ConditionalExpression:Hr[16],ConditionalTypeAnnotation:Hr[17],ContinueStatement:Hr[8],DebuggerStatement:Hr[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:Hr[18],DeclareEnum:Hr[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:Hr[20],DeclareFunction:["id","predicate"],DeclareHook:Hr[21],DeclareInterface:Hr[22],DeclareModule:Hr[19],DeclareModuleExports:Hr[23],DeclareNamespace:Hr[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:Hr[24],DeclareVariable:Hr[21],Decorator:Hr[3],Directive:Hr[18],DirectiveLiteral:Hr[1],DoExpression:Hr[10],DoWhileStatement:Hr[25],EmptyStatement:Hr[1],EmptyTypeAnnotation:Hr[1],EnumBigIntBody:Hr[26],EnumBigIntMember:Hr[27],EnumBooleanBody:Hr[26],EnumBooleanMember:Hr[27],EnumDeclaration:Hr[19],EnumDefaultedMember:Hr[21],EnumNumberBody:Hr[26],EnumNumberMember:Hr[27],EnumStringBody:Hr[26],EnumStringMember:Hr[27],EnumSymbolBody:Hr[26],ExistsTypeAnnotation:Hr[1],ExperimentalRestProperty:Hr[6],ExperimentalSpreadProperty:Hr[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:Hr[28],ExportNamedDeclaration:Hr[20],ExportNamespaceSpecifier:Hr[28],ExportSpecifier:["local","exported"],ExpressionStatement:Hr[3],File:["program"],ForInStatement:Hr[29],ForOfStatement:Hr[29],ForStatement:["init","test","update","body"],FunctionDeclaration:Hr[30],FunctionExpression:Hr[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:Hr[15],GenericTypeAnnotation:Hr[12],HookDeclaration:Hr[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:Hr[16],ImportAttribute:Hr[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:Hr[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:Hr[33],ImportSpecifier:["imported","local"],IndexedAccessType:Hr[34],InferredPredicate:Hr[1],InferTypeAnnotation:Hr[35],InterfaceDeclaration:Hr[22],InterfaceExtends:Hr[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:Hr[1],IntersectionTypeAnnotation:Hr[36],JsExpressionRoot:Hr[37],JsonRoot:Hr[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:Hr[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:Hr[1],JSXExpressionContainer:Hr[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:Hr[1],JSXMemberExpression:Hr[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:Hr[1],JSXSpreadAttribute:Hr[6],JSXSpreadChild:Hr[3],JSXText:Hr[1],KeyofTypeAnnotation:Hr[6],LabeledStatement:["label","body"],Literal:Hr[1],LogicalExpression:Hr[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:Hr[21],MatchExpression:Hr[39],MatchExpressionCase:Hr[40],MatchIdentifierPattern:Hr[21],MatchLiteralPattern:Hr[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:Hr[6],MatchStatement:Hr[39],MatchStatementCase:Hr[40],MatchUnaryPattern:Hr[6],MatchWildcardPattern:Hr[1],MemberExpression:Hr[38],MetaProperty:["meta","property"],MethodDefinition:Hr[42],MixedTypeAnnotation:Hr[1],ModuleExpression:Hr[10],NeverTypeAnnotation:Hr[1],NewExpression:Hr[9],NGChainedExpression:Hr[43],NGEmptyExpression:Hr[1],NGMicrosyntax:Hr[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:Hr[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:Hr[32],NGPipeExpression:["left","right","arguments"],NGRoot:Hr[37],NullableTypeAnnotation:Hr[23],NullLiteral:Hr[1],NullLiteralTypeAnnotation:Hr[1],NumberLiteralTypeAnnotation:Hr[1],NumberTypeAnnotation:Hr[1],NumericLiteral:Hr[1],ObjectExpression:["properties"],ObjectMethod:Hr[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:Hr[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:Hr[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:Hr[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:Hr[9],OptionalIndexedAccessType:Hr[34],OptionalMemberExpression:Hr[38],ParenthesizedExpression:Hr[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:Hr[1],PipelineTopicExpression:Hr[3],Placeholder:Hr[1],PrivateIdentifier:Hr[1],PrivateName:Hr[21],Program:Hr[7],Property:Hr[32],PropertyDefinition:Hr[14],QualifiedTypeIdentifier:Hr[44],QualifiedTypeofIdentifier:Hr[44],RegExpLiteral:Hr[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:Hr[6],SatisfiesExpression:Hr[4],SequenceExpression:Hr[43],SpreadElement:Hr[6],StaticBlock:Hr[10],StringLiteral:Hr[1],StringLiteralTypeAnnotation:Hr[1],StringTypeAnnotation:Hr[1],Super:Hr[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:Hr[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:Hr[1],TemplateLiteral:["quasis","expressions"],ThisExpression:Hr[1],ThisTypeAnnotation:Hr[1],ThrowStatement:Hr[6],TopicReference:Hr[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:Hr[45],TSAbstractKeyword:Hr[1],TSAbstractMethodDefinition:Hr[32],TSAbstractPropertyDefinition:Hr[45],TSAnyKeyword:Hr[1],TSArrayType:Hr[2],TSAsExpression:Hr[4],TSAsyncKeyword:Hr[1],TSBigIntKeyword:Hr[1],TSBooleanKeyword:Hr[1],TSCallSignatureDeclaration:Hr[46],TSClassImplements:Hr[47],TSConditionalType:Hr[17],TSConstructorType:Hr[46],TSConstructSignatureDeclaration:Hr[46],TSDeclareFunction:Hr[31],TSDeclareKeyword:Hr[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:Hr[26],TSEnumDeclaration:Hr[19],TSEnumMember:["id","initializer"],TSExportAssignment:Hr[3],TSExportKeyword:Hr[1],TSExternalModuleReference:Hr[3],TSFunctionType:Hr[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:Hr[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:Hr[35],TSInstantiationExpression:Hr[47],TSInterfaceBody:Hr[10],TSInterfaceDeclaration:Hr[22],TSInterfaceHeritage:Hr[47],TSIntersectionType:Hr[36],TSIntrinsicKeyword:Hr[1],TSJSDocAllType:Hr[1],TSJSDocNonNullableType:Hr[23],TSJSDocNullableType:Hr[23],TSJSDocUnknownType:Hr[1],TSLiteralType:Hr[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:Hr[10],TSModuleDeclaration:Hr[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:Hr[21],TSNeverKeyword:Hr[1],TSNonNullExpression:Hr[3],TSNullKeyword:Hr[1],TSNumberKeyword:Hr[1],TSObjectKeyword:Hr[1],TSOptionalType:Hr[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:Hr[23],TSPrivateKeyword:Hr[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:Hr[1],TSPublicKeyword:Hr[1],TSQualifiedName:Hr[5],TSReadonlyKeyword:Hr[1],TSRestType:Hr[23],TSSatisfiesExpression:Hr[4],TSStaticKeyword:Hr[1],TSStringKeyword:Hr[1],TSSymbolKeyword:Hr[1],TSTemplateLiteralType:["quasis","types"],TSThisType:Hr[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:Hr[23],TSTypeAssertion:Hr[4],TSTypeLiteral:Hr[26],TSTypeOperator:Hr[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:Hr[48],TSTypeParameterInstantiation:Hr[48],TSTypePredicate:Hr[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:Hr[1],TSUnionType:Hr[36],TSUnknownKeyword:Hr[1],TSVoidKeyword:Hr[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:Hr[24],TypeAnnotation:Hr[23],TypeCastExpression:Hr[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:Hr[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:Hr[48],TypeParameterInstantiation:Hr[48],TypePredicate:Hr[49],UnaryExpression:Hr[6],UndefinedTypeAnnotation:Hr[1],UnionTypeAnnotation:Hr[36],UnknownTypeAnnotation:Hr[1],UpdateExpression:Hr[6],V8IntrinsicIdentifier:Hr[1],VariableDeclaration:["declarations"],VariableDeclarator:Hr[27],Variance:Hr[1],VoidPattern:Hr[1],VoidTypeAnnotation:Hr[1],WhileStatement:Hr[25],WithStatement:["object","body"],YieldExpression:Hr[6]},_Qr=uQr(pQr),dQr=_Qr;function ICe(e,r){if(!aQr(e))return e;if(Array.isArray(e)){for(let s=0;sie<=L);V=j&&s.slice(j,L).trim().length===0}return V?void 0:(A.extra={...A.extra,parenthesized:!0},A)}case"TemplateLiteral":if(b.expressions.length!==b.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(i==="flow"||i==="hermes"||i==="espree"||i==="typescript"||d){let A=L5(b)+1,L=u8(b)-(b.tail?1:2);b.range=[A,L]}break;case"VariableDeclaration":{let A=HKr(0,b.declarations,-1);A?.init&&s[u8(A)]!==";"&&(b.range=[L5(b),u8(A)]);break}case"TSParenthesizedType":return b.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(b.types.length===1)return b.types[0];break;case"ImportExpression":i==="hermes"&&b.attributes&&!b.options&&(b.options=b.attributes);break}},onLeave(b){switch(b.type){case"LogicalExpression":if(VRt(b))return gZe(b);break;case"TSImportType":!b.source&&b.argument.type==="TSLiteralType"&&(b.source=b.argument.literal,delete b.argument);break}}}),e}function VRt(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function gZe(e){return VRt(e)?gZe({type:"LogicalExpression",operator:e.operator,left:gZe({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[L5(e.left),u8(e.right.left)]}),right:e.right.right,range:[L5(e),u8(e)]}):e}var hQr=mQr;function gQr(e,r){let i=new SyntaxError(e+" ("+r.loc.start.line+":"+r.loc.start.column+")");return Object.assign(i,r)}var WRt=gQr,dRt="Unexpected parseExpression() input: ";function yQr(e){let{message:r,loc:i,reasonCode:s}=e;if(!i)return e;let{line:l,column:d}=i,h=e;(s==="MissingPlugin"||s==="MissingOneOfPlugins")&&(r="Unexpected token.",h=void 0);let S=` (${l}:${d})`;return r.endsWith(S)&&(r=r.slice(0,-S.length)),r.startsWith(dRt)&&(r=r.slice(dRt.length)),WRt(r,{loc:{start:{line:l,column:d+1}},cause:h})}var GRt=yQr,vQr=String.prototype.replaceAll??function(e,r){return e.global?this.replace(e,r):this.split(e).join(r)},SQr=NZe("replaceAll",function(){if(typeof this=="string")return vQr}),kCe=SQr,bQr=/\*\/$/,xQr=/^\/\*\*?/,TQr=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,EQr=/(^|\s+)\/\/([^\n\r]*)/g,fRt=/^(\r?\n)+/,kQr=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,mRt=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,CQr=/(\r?\n|^) *\* ?/g,DQr=[];function AQr(e){let r=e.match(TQr);return r?r[0].trimStart():""}function wQr(e){e=kCe(0,e.replace(xQr,"").replace(bQr,""),CQr,"$1");let r="";for(;r!==e;)r=e,e=kCe(0,e,kQr,` +$1 $2 +`);e=e.replace(fRt,"").trimEnd();let i=Object.create(null),s=kCe(0,e,mRt,"").replace(fRt,"").trimEnd(),l;for(;l=mRt.exec(e);){let d=kCe(0,l[2],EQr,"");if(typeof i[l[1]]=="string"||Array.isArray(i[l[1]])){let h=i[l[1]];i[l[1]]=[...DQr,...Array.isArray(h)?h:[h],d]}else i[l[1]]=d}return{comments:s,pragmas:i}}var IQr=["noformat","noprettier"],PQr=["format","prettier"];function HRt(e){let r=JRt(e);r&&(e=e.slice(r.length+1));let i=AQr(e),{pragmas:s,comments:l}=wQr(i);return{shebang:r,text:e,pragmas:s,comments:l}}function NQr(e){let{pragmas:r}=HRt(e);return PQr.some(i=>Object.prototype.hasOwnProperty.call(r,i))}function OQr(e){let{pragmas:r}=HRt(e);return IQr.some(i=>Object.prototype.hasOwnProperty.call(r,i))}function FQr(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:NQr,hasIgnorePragma:OQr,locStart:L5,locEnd:u8,...e}}var Cpe=FQr,RZe="module",KRt="commonjs";function RQr(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return RZe;if(/\.(?:cjs|cts)$/iu.test(e))return KRt}}function LQr(e,r){let{type:i="JsExpressionRoot",rootMarker:s,text:l}=r,{tokens:d,comments:h}=e;return delete e.tokens,delete e.comments,{tokens:d,comments:h,type:i,node:e,range:[0,l.length],rootMarker:s}}var QRt=LQr,NY=e=>Cpe(UQr(e)),MQr={sourceType:RZe,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],["discardBinding",{syntaxType:"void"}]],tokens:!1,ranges:!1},hRt="v8intrinsic",gRt=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],M5=(e,r=MQr)=>({...r,plugins:[...r.plugins,...e]}),jQr=/@(?:no)?flow\b/u;function BQr(e,r){if(r?.endsWith(".js.flow"))return!0;let i=JRt(e);i&&(e=e.slice(i.length));let s=$Kr(e,0);return s!==!1&&(e=e.slice(0,s)),jQr.test(e)}function $Qr(e,r,i){let s=e(r,i),l=s.errors.find(d=>!zQr.has(d.reasonCode));if(l)throw l;return s}function UQr({isExpression:e=!1,optionsCombinations:r}){return(i,s={})=>{let{filepath:l}=s;if(typeof l!="string"&&(l=void 0),(s.parser==="babel"||s.parser==="__babel_estree")&&BQr(i,l))return s.parser="babel-flow",XRt.parse(i,s);let d=r,h=s.__babelSourceType??RQr(l);h&&h!==RZe&&(d=d.map(L=>({...L,sourceType:h,...h===KRt?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let S=/%[A-Z]/u.test(i);i.includes("|>")?d=(S?[...gRt,hRt]:gRt).flatMap(L=>d.map(V=>M5([L],V))):S&&(d=d.map(L=>M5([hRt],L)));let b=e?qRt:zRt,A;try{A=UKr(d.map(L=>()=>$Qr(b,i,L)))}catch({errors:[L]}){throw GRt(L)}return e&&(A=QRt(A,{text:i,rootMarker:s.rootMarker})),hQr(A,{text:i})}}var zQr=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert","DeclarationMissingInitializer"]),ZRt=[M5(["jsx"])],yRt=NY({optionsCombinations:ZRt}),vRt=NY({optionsCombinations:[M5(["jsx","typescript"]),M5(["typescript"])]}),SRt=NY({isExpression:!0,optionsCombinations:[M5(["jsx"])]}),bRt=NY({isExpression:!0,optionsCombinations:[M5(["typescript"])]}),XRt=NY({optionsCombinations:[M5(["jsx",["flow",{all:!0}],"flowComments"])]}),qQr=NY({optionsCombinations:ZRt.map(e=>M5(["estree"],e))}),YRt={};yZe(YRt,{json:()=>WQr,"json-stringify":()=>KQr,json5:()=>GQr,jsonc:()=>HQr});function JQr(e){return Array.isArray(e)&&e.length>0}var eLt=JQr,tLt={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function VQr(e){let r=zRt(e,tLt),{program:i}=r;if(i.body.length===0&&i.directives.length===0&&!i.interpreter)return r}function FCe(e,r={}){let{allowComments:i=!0,allowEmpty:s=!1}=r,l;try{l=qRt(e,tLt)}catch(d){if(s&&d.code==="BABEL_PARSER_SYNTAX_ERROR"&&d.reasonCode==="ParseExpressionEmptyInput")try{l=VQr(e)}catch{}if(!l)throw GRt(d)}if(!i&&eLt(l.comments))throw Xj(l.comments[0],"Comment");return l=QRt(l,{type:"JsonRoot",text:e}),l.node.type==="File"?delete l.node:AY(l.node),l}function Xj(e,r){let[i,s]=[e.loc.start,e.loc.end].map(({line:l,column:d})=>({line:l,column:d+1}));return WRt(`${r} is not allowed in JSON.`,{loc:{start:i,end:s}})}function AY(e){switch(e.type){case"ArrayExpression":for(let r of e.elements)r!==null&&AY(r);return;case"ObjectExpression":for(let r of e.properties)AY(r);return;case"ObjectProperty":if(e.computed)throw Xj(e.key,"Computed key");if(e.shorthand)throw Xj(e.key,"Shorthand property");e.key.type!=="Identifier"&&AY(e.key),AY(e.value);return;case"UnaryExpression":{let{operator:r,argument:i}=e;if(r!=="+"&&r!=="-")throw Xj(e,`Operator '${e.operator}'`);if(i.type==="NumericLiteral"||i.type==="Identifier"&&(i.name==="Infinity"||i.name==="NaN"))return;throw Xj(i,`Operator '${r}' before '${i.type}'`)}case"Identifier":if(e.name!=="Infinity"&&e.name!=="NaN"&&e.name!=="undefined")throw Xj(e,`Identifier '${e.name}'`);return;case"TemplateLiteral":if(eLt(e.expressions))throw Xj(e.expressions[0],"'TemplateLiteral' with expression");for(let r of e.quasis)AY(r);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw Xj(e,`'${e.type}'`)}}var WQr=Cpe({parse:e=>FCe(e),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),GQr=Cpe(e=>FCe(e)),HQr=Cpe(e=>FCe(e,{allowEmpty:!0})),KQr=Cpe({parse:e=>FCe(e,{allowComments:!1}),astFormat:"estree-json"}),QQr={...xRt,...YRt};var ZQr=Object.defineProperty,uXe=(e,r)=>{for(var i in r)ZQr(e,i,{get:r[i],enumerable:!0})},pXe={};uXe(pXe,{languages:()=>ein,options:()=>Xnn,printers:()=>Ynn});var XQr=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],NLt={};uXe(NLt,{canAttachComment:()=>yXr,embed:()=>uen,features:()=>Jnn,getVisitorKeys:()=>BLt,handleComments:()=>YXr,hasPrettierIgnore:()=>MXe,insertPragma:()=>Een,isBlockComment:()=>z6,isGap:()=>tYr,massageAstNode:()=>_Xr,print:()=>ILt,printComment:()=>Aen,printPrettierIgnored:()=>ILt,willPrintOwnComments:()=>iYr});var _Xe=(e,r)=>(i,s,...l)=>i|1&&s==null?void 0:(r.call(s)??s[e]).apply(s,l),YQr=String.prototype.replaceAll??function(e,r){return e.global?this.replace(e,r):this.split(e).join(r)},eZr=_Xe("replaceAll",function(){if(typeof this=="string")return YQr}),YS=eZr;function tZr(e){return this[e<0?this.length+e:e]}var rZr=_Xe("at",function(){if(Array.isArray(this)||typeof this=="string")return tZr}),Zf=rZr;function nZr(e){return e!==null&&typeof e=="object"}var OLt=nZr;function*iZr(e,r){let{getVisitorKeys:i,filter:s=()=>!0}=r,l=d=>OLt(d)&&s(d);for(let d of i(e)){let h=e[d];if(Array.isArray(h))for(let S of h)l(S)&&(yield S);else l(h)&&(yield h)}}function*oZr(e,r){let i=[e];for(let s=0;s/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function cZr(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function lZr(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var uZr="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07",pZr=/[^\x20-\x7F]/u,_Zr=new Set(uZr);function dZr(e){if(!e)return 0;if(!pZr.test(e))return e.length;e=e.replace(sZr(),i=>_Zr.has(i)?" ":" ");let r=0;for(let i of e){let s=i.codePointAt(0);s<=31||s>=127&&s<=159||s>=768&&s<=879||s>=65024&&s<=65039||(r+=cZr(s)||lZr(s)?2:1)}return r}var LY=dZr;function GCe(e){return(r,i,s)=>{let l=!!s?.backwards;if(i===!1)return!1;let{length:d}=r,h=i;for(;h>=0&&he===` +`||e==="\r"||e==="\u2028"||e==="\u2029";function hZr(e,r,i){let s=!!i?.backwards;if(r===!1)return!1;let l=e.charAt(r);if(s){if(e.charAt(r-1)==="\r"&&l===` +`)return r-2;if(rLt(l))return r-1}else{if(l==="\r"&&e.charAt(r+1)===` +`)return r+2;if(rLt(l))return r+1}return r}var jY=hZr;function gZr(e,r,i={}){let s=MY(e,i.backwards?r-1:r,i),l=jY(e,s,i);return s!==l}var gk=gZr;function yZr(e,r){if(r===!1)return!1;if(e.charAt(r)==="/"&&e.charAt(r+1)==="*"){for(let i=r+2;i0}var Ag=bZr,xZr=()=>{},_V=xZr,FLt=Object.freeze({character:"'",codePoint:39}),RLt=Object.freeze({character:'"',codePoint:34}),TZr=Object.freeze({preferred:FLt,alternate:RLt}),EZr=Object.freeze({preferred:RLt,alternate:FLt});function kZr(e,r){let{preferred:i,alternate:s}=r===!0||r==="'"?TZr:EZr,{length:l}=e,d=0,h=0;for(let S=0;Sh?s:i).character}var LLt=kZr,CZr=/\\(["'\\])|(["'])/gu;function DZr(e,r){let i=r==='"'?"'":'"',s=YS(0,e,CZr,(l,d,h)=>d?d===i?i:l:h===r?"\\"+h:h);return r+s+r}var AZr=DZr;function wZr(e,r){_V(/^(?["']).*\k$/su.test(e));let i=e.slice(1,-1),s=r.parser==="json"||r.parser==="jsonc"||r.parser==="json5"&&r.quoteProps==="preserve"&&!r.singleQuote?'"':r.__isInHtmlAttribute?"'":LLt(i,r.singleQuote);return e.charAt(0)===s?e:AZr(i,s)}var BY=wZr,MLt=e=>Number.isInteger(e)&&e>=0;function B_(e){let r=e.range?.[0]??e.start,i=(e.declaration?.decorators??e.decorators)?.[0];return i?Math.min(B_(i),r):r}function T_(e){return e.range?.[1]??e.end}function HCe(e,r){let i=B_(e);return MLt(i)&&i===B_(r)}function IZr(e,r){let i=T_(e);return MLt(i)&&i===T_(r)}function PZr(e,r){return HCe(e,r)&&IZr(e,r)}var Dpe=null;function Ipe(e){if(Dpe!==null&&typeof Dpe.property){let r=Dpe;return Dpe=Ipe.prototype=null,r}return Dpe=Ipe.prototype=e??Object.create(null),new Ipe}var NZr=10;for(let e=0;e<=NZr;e++)Ipe();function OZr(e){return Ipe(e)}function FZr(e,r="type"){OZr(e);function i(s){let l=s[r],d=e[l];if(!Array.isArray(d))throw Object.assign(new Error(`Missing visitor keys for '${l}'.`),{node:s});return d}return i}var jLt=FZr,Kr=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],RZr={AccessorProperty:Kr[0],AnyTypeAnnotation:Kr[1],ArgumentPlaceholder:Kr[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:Kr[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:Kr[3],AsExpression:Kr[4],AssignmentExpression:Kr[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:Kr[6],BigIntLiteral:Kr[1],BigIntLiteralTypeAnnotation:Kr[1],BigIntTypeAnnotation:Kr[1],BinaryExpression:Kr[5],BindExpression:["object","callee"],BlockStatement:Kr[7],BooleanLiteral:Kr[1],BooleanLiteralTypeAnnotation:Kr[1],BooleanTypeAnnotation:Kr[1],BreakStatement:Kr[8],CallExpression:Kr[9],CatchClause:["param","body"],ChainExpression:Kr[3],ClassAccessorProperty:Kr[0],ClassBody:Kr[10],ClassDeclaration:Kr[11],ClassExpression:Kr[11],ClassImplements:Kr[12],ClassMethod:Kr[13],ClassPrivateMethod:Kr[13],ClassPrivateProperty:Kr[14],ClassProperty:Kr[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:Kr[15],ConditionalExpression:Kr[16],ConditionalTypeAnnotation:Kr[17],ContinueStatement:Kr[8],DebuggerStatement:Kr[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:Kr[18],DeclareEnum:Kr[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:Kr[20],DeclareFunction:["id","predicate"],DeclareHook:Kr[21],DeclareInterface:Kr[22],DeclareModule:Kr[19],DeclareModuleExports:Kr[23],DeclareNamespace:Kr[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:Kr[24],DeclareVariable:Kr[21],Decorator:Kr[3],Directive:Kr[18],DirectiveLiteral:Kr[1],DoExpression:Kr[10],DoWhileStatement:Kr[25],EmptyStatement:Kr[1],EmptyTypeAnnotation:Kr[1],EnumBigIntBody:Kr[26],EnumBigIntMember:Kr[27],EnumBooleanBody:Kr[26],EnumBooleanMember:Kr[27],EnumDeclaration:Kr[19],EnumDefaultedMember:Kr[21],EnumNumberBody:Kr[26],EnumNumberMember:Kr[27],EnumStringBody:Kr[26],EnumStringMember:Kr[27],EnumSymbolBody:Kr[26],ExistsTypeAnnotation:Kr[1],ExperimentalRestProperty:Kr[6],ExperimentalSpreadProperty:Kr[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:Kr[28],ExportNamedDeclaration:Kr[20],ExportNamespaceSpecifier:Kr[28],ExportSpecifier:["local","exported"],ExpressionStatement:Kr[3],File:["program"],ForInStatement:Kr[29],ForOfStatement:Kr[29],ForStatement:["init","test","update","body"],FunctionDeclaration:Kr[30],FunctionExpression:Kr[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:Kr[15],GenericTypeAnnotation:Kr[12],HookDeclaration:Kr[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:Kr[16],ImportAttribute:Kr[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:Kr[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:Kr[33],ImportSpecifier:["imported","local"],IndexedAccessType:Kr[34],InferredPredicate:Kr[1],InferTypeAnnotation:Kr[35],InterfaceDeclaration:Kr[22],InterfaceExtends:Kr[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:Kr[1],IntersectionTypeAnnotation:Kr[36],JsExpressionRoot:Kr[37],JsonRoot:Kr[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:Kr[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:Kr[1],JSXExpressionContainer:Kr[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:Kr[1],JSXMemberExpression:Kr[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:Kr[1],JSXSpreadAttribute:Kr[6],JSXSpreadChild:Kr[3],JSXText:Kr[1],KeyofTypeAnnotation:Kr[6],LabeledStatement:["label","body"],Literal:Kr[1],LogicalExpression:Kr[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:Kr[21],MatchExpression:Kr[39],MatchExpressionCase:Kr[40],MatchIdentifierPattern:Kr[21],MatchLiteralPattern:Kr[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:Kr[6],MatchStatement:Kr[39],MatchStatementCase:Kr[40],MatchUnaryPattern:Kr[6],MatchWildcardPattern:Kr[1],MemberExpression:Kr[38],MetaProperty:["meta","property"],MethodDefinition:Kr[42],MixedTypeAnnotation:Kr[1],ModuleExpression:Kr[10],NeverTypeAnnotation:Kr[1],NewExpression:Kr[9],NGChainedExpression:Kr[43],NGEmptyExpression:Kr[1],NGMicrosyntax:Kr[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:Kr[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:Kr[32],NGPipeExpression:["left","right","arguments"],NGRoot:Kr[37],NullableTypeAnnotation:Kr[23],NullLiteral:Kr[1],NullLiteralTypeAnnotation:Kr[1],NumberLiteralTypeAnnotation:Kr[1],NumberTypeAnnotation:Kr[1],NumericLiteral:Kr[1],ObjectExpression:["properties"],ObjectMethod:Kr[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:Kr[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:Kr[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:Kr[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:Kr[9],OptionalIndexedAccessType:Kr[34],OptionalMemberExpression:Kr[38],ParenthesizedExpression:Kr[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:Kr[1],PipelineTopicExpression:Kr[3],Placeholder:Kr[1],PrivateIdentifier:Kr[1],PrivateName:Kr[21],Program:Kr[7],Property:Kr[32],PropertyDefinition:Kr[14],QualifiedTypeIdentifier:Kr[44],QualifiedTypeofIdentifier:Kr[44],RegExpLiteral:Kr[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:Kr[6],SatisfiesExpression:Kr[4],SequenceExpression:Kr[43],SpreadElement:Kr[6],StaticBlock:Kr[10],StringLiteral:Kr[1],StringLiteralTypeAnnotation:Kr[1],StringTypeAnnotation:Kr[1],Super:Kr[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:Kr[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:Kr[1],TemplateLiteral:["quasis","expressions"],ThisExpression:Kr[1],ThisTypeAnnotation:Kr[1],ThrowStatement:Kr[6],TopicReference:Kr[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:Kr[45],TSAbstractKeyword:Kr[1],TSAbstractMethodDefinition:Kr[32],TSAbstractPropertyDefinition:Kr[45],TSAnyKeyword:Kr[1],TSArrayType:Kr[2],TSAsExpression:Kr[4],TSAsyncKeyword:Kr[1],TSBigIntKeyword:Kr[1],TSBooleanKeyword:Kr[1],TSCallSignatureDeclaration:Kr[46],TSClassImplements:Kr[47],TSConditionalType:Kr[17],TSConstructorType:Kr[46],TSConstructSignatureDeclaration:Kr[46],TSDeclareFunction:Kr[31],TSDeclareKeyword:Kr[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:Kr[26],TSEnumDeclaration:Kr[19],TSEnumMember:["id","initializer"],TSExportAssignment:Kr[3],TSExportKeyword:Kr[1],TSExternalModuleReference:Kr[3],TSFunctionType:Kr[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:Kr[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:Kr[35],TSInstantiationExpression:Kr[47],TSInterfaceBody:Kr[10],TSInterfaceDeclaration:Kr[22],TSInterfaceHeritage:Kr[47],TSIntersectionType:Kr[36],TSIntrinsicKeyword:Kr[1],TSJSDocAllType:Kr[1],TSJSDocNonNullableType:Kr[23],TSJSDocNullableType:Kr[23],TSJSDocUnknownType:Kr[1],TSLiteralType:Kr[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:Kr[10],TSModuleDeclaration:Kr[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:Kr[21],TSNeverKeyword:Kr[1],TSNonNullExpression:Kr[3],TSNullKeyword:Kr[1],TSNumberKeyword:Kr[1],TSObjectKeyword:Kr[1],TSOptionalType:Kr[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:Kr[23],TSPrivateKeyword:Kr[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:Kr[1],TSPublicKeyword:Kr[1],TSQualifiedName:Kr[5],TSReadonlyKeyword:Kr[1],TSRestType:Kr[23],TSSatisfiesExpression:Kr[4],TSStaticKeyword:Kr[1],TSStringKeyword:Kr[1],TSSymbolKeyword:Kr[1],TSTemplateLiteralType:["quasis","types"],TSThisType:Kr[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:Kr[23],TSTypeAssertion:Kr[4],TSTypeLiteral:Kr[26],TSTypeOperator:Kr[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:Kr[48],TSTypeParameterInstantiation:Kr[48],TSTypePredicate:Kr[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:Kr[1],TSUnionType:Kr[36],TSUnknownKeyword:Kr[1],TSVoidKeyword:Kr[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:Kr[24],TypeAnnotation:Kr[23],TypeCastExpression:Kr[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:Kr[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:Kr[48],TypeParameterInstantiation:Kr[48],TypePredicate:Kr[49],UnaryExpression:Kr[6],UndefinedTypeAnnotation:Kr[1],UnionTypeAnnotation:Kr[36],UnknownTypeAnnotation:Kr[1],UpdateExpression:Kr[6],V8IntrinsicIdentifier:Kr[1],VariableDeclaration:["declarations"],VariableDeclarator:Kr[27],Variance:Kr[1],VoidPattern:Kr[1],VoidTypeAnnotation:Kr[1],WhileStatement:Kr[25],WithStatement:["object","body"],YieldExpression:Kr[6]},LZr=jLt(RZr),BLt=LZr;function MZr(e){let r=new Set(e);return i=>r.has(i?.type)}var Tp=MZr;function jZr(e){return e.extra?.raw??e.raw}var yk=jZr,BZr=Tp(["Block","CommentBlock","MultiLine"]),z6=BZr,$Zr=Tp(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),$Lt=$Zr,UZr=Tp(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),Bpe=UZr;function zZr(e,r){let i=r.split(".");for(let s=i.length-1;s>=0;s--){let l=i[s];if(s===0)return e.type==="Identifier"&&e.name===l;if(s===1&&e.type==="MetaProperty"&&e.property.type==="Identifier"&&e.property.name===l){e=e.meta;continue}if(e.type==="MemberExpression"&&!e.optional&&!e.computed&&e.property.type==="Identifier"&&e.property.name===l){e=e.object;continue}return!1}}function qZr(e,r){return r.some(i=>zZr(e,i))}var hXe=qZr;function JZr({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var ULt=JZr;function VZr({node:e,parent:r}){return e?.type!=="EmptyStatement"?!1:r.type==="IfStatement"?r.consequent===e||r.alternate===e:r.type==="DoWhileStatement"||r.type==="ForInStatement"||r.type==="ForOfStatement"||r.type==="ForStatement"||r.type==="LabeledStatement"||r.type==="WithStatement"||r.type==="WhileStatement"?r.body===e:!1}var gXe=VZr;function KZe(e,r){return r(e)||aZr(e,{getVisitorKeys:BLt,predicate:r})}function yXe(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||Sf(e)||Dg(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||M6(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function WZr(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function zLt(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var GZr=Tp(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),ax=Tp(["ArrayExpression"]),B6=Tp(["ObjectExpression"]);function HZr(e){return e.type==="LogicalExpression"&&e.operator==="??"}function d8(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function KZr(e){return e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean"}function qLt(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&d8(e.argument)}function tb(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function JLt(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var vXe=Tp(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),QZr=Tp(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),nB=Tp(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),Fpe=Tp(["FunctionExpression","ArrowFunctionExpression"]);function ZZr(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function LZe(e){return Sf(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var eb=Tp(["JSXElement","JSXFragment"]);function $pe(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function VLt(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function XZr(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!HCe(e,e.typeAnnotation)}var B5=Tp(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function RY(e){return Dg(e)||e.type==="BindExpression"&&!!e.object}var YZr=Tp(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function SXe(e){return ULt(e)||$Lt(e)||YZr(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function eXr(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var tXr=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function rXr(e){return hXe(e,tXr)}function KCe(e,r){if(e?.type!=="CallExpression"||e.optional)return!1;let i=AD(e);if(i.length===1){if(LZe(e)&&KCe(r))return Fpe(i[0]);if(eXr(e.callee))return LZe(i[0])}else if((i.length===2||i.length===3)&&(i[0].type==="TemplateLiteral"||tb(i[0]))&&rXr(e.callee))return i[2]&&!d8(i[2])?!1:(i.length===2?Fpe(i[1]):ZZr(i[1])&&xT(i[1]).length<=1)||LZe(i[1]);return!1}var WLt=e=>r=>(r?.type==="ChainExpression"&&(r=r.expression),e(r)),Sf=WLt(Tp(["CallExpression","OptionalCallExpression"])),Dg=WLt(Tp(["MemberExpression","OptionalMemberExpression"]));function nLt(e,r=5){return GLt(e,r)<=r}function GLt(e,r){let i=0;for(let s in e){let l=e[s];if(OLt(l)&&typeof l.type=="string"&&(i++,i+=GLt(l,r-i)),i>r)return i}return i}var nXr=.25;function bXe(e,r){let{printWidth:i}=r;if(Os(e))return!1;let s=i*nXr;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=s||qLt(e)&&!Os(e.argument))return!0;let l=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return l?l.length<=s:tb(e)?BY(yk(e),r).length<=s:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=s&&!e.quasis[0].value.raw.includes(` +`):e.type==="UnaryExpression"?bXe(e.argument,{printWidth:i}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=s-2:vXe(e)}function j6(e,r){return eb(r)?QCe(r):Os(r,Fc.Leading,i=>gk(e,T_(i)))}function iLt(e){return e.quasis.some(r=>r.value.raw.includes(` +`))}function HLt(e,r){return(e.type==="TemplateLiteral"&&iLt(e)||e.type==="TaggedTemplateExpression"&&iLt(e.quasi))&&!gk(r,B_(e),{backwards:!0})}function KLt(e){if(!Os(e))return!1;let r=Zf(0,uV(e,Fc.Dangling),-1);return r&&!z6(r)}function iXr(e){if(e.length<=1)return!1;let r=0;for(let i of e)if(Fpe(i)){if(r+=1,r>1)return!0}else if(Sf(i)){for(let s of AD(i))if(Fpe(s))return!0}return!1}function QLt(e){let{node:r,parent:i,key:s}=e;return s==="callee"&&Sf(r)&&Sf(i)&&i.arguments.length>0&&r.arguments.length>i.arguments.length}var oXr=new Set(["!","-","+","~"]);function L6(e,r=2){if(r<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return L6(e.expression,r);let i=s=>L6(s,r-1);if(JLt(e))return LY(e.pattern??e.regex.pattern)<=5;if(vXe(e)||QZr(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(s=>!s.value.raw.includes(` +`))&&e.expressions.every(i);if(B6(e))return e.properties.every(s=>!s.computed&&(s.shorthand||s.value&&i(s.value)));if(ax(e))return e.elements.every(s=>s===null||i(s));if(UY(e)){if(e.type==="ImportExpression"||L6(e.callee,r)){let s=AD(e);return s.length<=r&&s.every(i)}return!1}return Dg(e)?L6(e.object,r)&&L6(e.property,r):e.type==="UnaryExpression"&&oXr.has(e.operator)||e.type==="UpdateExpression"?L6(e.argument,r):!1}function g8(e,r="es5"){return e.trailingComma==="es5"&&r==="es5"||e.trailingComma==="all"&&(r==="all"||r==="es5")}function B2(e,r){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return B2(e.left,r);case"MemberExpression":case"OptionalMemberExpression":return B2(e.object,r);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:B2(e.tag,r);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:B2(e.callee,r);case"ConditionalExpression":return B2(e.test,r);case"UpdateExpression":return!e.prefix&&B2(e.argument,r);case"BindExpression":return e.object&&B2(e.object,r);case"SequenceExpression":return B2(e.expressions[0],r);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return B2(e.expression,r);default:return r(e)}}var oLt={"==":!0,"!=":!0,"===":!0,"!==":!0},RCe={"*":!0,"/":!0,"%":!0},QZe={">>":!0,">>>":!0,"<<":!0};function xXe(e,r){return!(zCe(r)!==zCe(e)||e==="**"||oLt[e]&&oLt[r]||r==="%"&&RCe[e]||e==="%"&&RCe[r]||r!==e&&RCe[r]&&RCe[e]||QZe[e]&&QZe[r])}var aXr=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,r)=>e.map(i=>[i,r])));function zCe(e){return aXr.get(e)}function sXr(e){return!!QZe[e]||e==="|"||e==="^"||e==="&"}function cXr(e){if(e.rest)return!0;let r=xT(e);return Zf(0,r,-1)?.type==="RestElement"}var MZe=new WeakMap;function xT(e){if(MZe.has(e))return MZe.get(e);let r=[];return e.this&&r.push(e.this),r.push(...e.params),e.rest&&r.push(e.rest),MZe.set(e,r),r}function lXr(e,r){let{node:i}=e,s=0,l=()=>r(e,s++);i.this&&e.call(l,"this"),e.each(l,"params"),i.rest&&e.call(l,"rest")}var jZe=new WeakMap;function AD(e){if(jZe.has(e))return jZe.get(e);if(e.type==="ChainExpression")return AD(e.expression);let r;return e.type==="ImportExpression"||e.type==="TSImportType"?(r=[e.source],e.options&&r.push(e.options)):e.type==="TSExternalModuleReference"?r=[e.expression]:r=e.arguments,jZe.set(e,r),r}function qCe(e,r){let{node:i}=e;if(i.type==="ChainExpression")return e.call(()=>qCe(e,r),"expression");i.type==="ImportExpression"||i.type==="TSImportType"?(e.call(()=>r(e,0),"source"),i.options&&e.call(()=>r(e,1),"options")):i.type==="TSExternalModuleReference"?e.call(()=>r(e,0),"expression"):e.each(r,"arguments")}function aLt(e,r){let i=[];if(e.type==="ChainExpression"&&(e=e.expression,i.push("expression")),e.type==="ImportExpression"||e.type==="TSImportType"){if(r===0||r===(e.options?-2:-1))return[...i,"source"];if(e.options&&(r===1||r===-1))return[...i,"options"];throw new RangeError("Invalid argument index")}else if(e.type==="TSExternalModuleReference"){if(r===0||r===-1)return[...i,"expression"]}else if(r<0&&(r=e.arguments.length+r),r>=0&&r{if(typeof e=="function"&&(r=e,e=0),e||r)return(i,s,l)=>!(e&Fc.Leading&&!i.leading||e&Fc.Trailing&&!i.trailing||e&Fc.Dangling&&(i.leading||i.trailing)||e&Fc.Block&&!z6(i)||e&Fc.Line&&!Bpe(i)||e&Fc.First&&s!==0||e&Fc.Last&&s!==l.length-1||e&Fc.PrettierIgnore&&!$Y(i)||r&&!r(i))};function Os(e,r,i){if(!Ag(e?.comments))return!1;let s=ZLt(r,i);return s?e.comments.some(s):!0}function uV(e,r,i){if(!Array.isArray(e?.comments))return[];let s=ZLt(r,i);return s?e.comments.filter(s):e.comments}var y8=(e,{originalText:r})=>mXe(r,T_(e));function UY(e){return Sf(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function oB(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!$pe(e))}var M6=Tp(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),f8=Tp(["TSUnionType","UnionTypeAnnotation"]),Upe=Tp(["TSIntersectionType","IntersectionTypeAnnotation"]),iB=Tp(["TSConditionalType","ConditionalTypeAnnotation"]),uXr=e=>e?.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const",ZZe=Tp(["TSTypeAliasDeclaration","TypeAlias"]);function XLt({key:e,parent:r}){return!(e==="types"&&f8(r)||e==="types"&&Upe(r))}var pXr=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),OY=e=>{for(let r of e.quasis)delete r.value};function YLt(e,r,i){if(e.type==="Program"&&delete r.sourceType,(e.type==="BigIntLiteral"||e.type==="Literal")&&e.bigint&&(r.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"&&!gXe({node:e,parent:i})||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute")&&e.key&&!e.computed){let{key:l}=e;tb(l)||d8(l)?r.key=String(l.value):l.type==="Identifier"&&(r.key=l.name)}if(e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(l=>l.type==="JSXAttribute"&&l.name.name==="jsx"))for(let{type:l,expression:d}of r.children)l==="JSXExpressionContainer"&&d.type==="TemplateLiteral"&&OY(d);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&OY(r.value.expression),e.type==="JSXAttribute"&&e.value?.type==="Literal"&&/["']|"|'/u.test(e.value.value)&&(r.value.value=YS(0,e.value.value,/["']|"|'/gu,'"'));let s=e.expression||e.callee;if(e.type==="Decorator"&&s.type==="CallExpression"&&s.callee.name==="Component"&&s.arguments.length===1){let l=e.expression.arguments[0].properties;for(let[d,h]of r.expression.arguments[0].properties.entries())switch(l[d].key.name){case"styles":ax(h.value)&&OY(h.value.elements[0]);break;case"template":h.value.type==="TemplateLiteral"&&OY(h.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&OY(r.quasi),e.type==="TemplateLiteral"&&OY(r),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(r.type="TSNonNullExpression",r.expression.type="ChainExpression")}YLt.ignoredProperties=pXr;var _Xr=YLt,dXr=Tp(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),fXr=(e,[r])=>r?.type==="ComponentParameter"&&r.shorthand&&r.name===e&&r.local!==r.name||r?.type==="MatchObjectPatternProperty"&&r.shorthand&&r.key===e&&r.value!==r.key||r?.type==="ObjectProperty"&&r.shorthand&&r.key===e&&r.value!==r.key||r?.type==="Property"&&r.shorthand&&r.key===e&&!$pe(r)&&r.value!==r.key,mXr=(e,[r])=>!!(e.type==="FunctionExpression"&&r.type==="MethodDefinition"&&r.value===e&&xT(e).length===0&&!e.returnType&&!Ag(e.typeParameters)&&e.body),sLt=(e,[r])=>r?.typeAnnotation===e&&uXr(r),hXr=(e,[r,...i])=>sLt(e,[r])||r?.typeName===e&&sLt(r,i);function gXr(e,r){return dXr(e)||fXr(e,r)||mXr(e,r)?!1:e.type==="EmptyStatement"?gXe({node:e,parent:r[0]}):!(hXr(e,r)||e.type==="TSTypeAnnotation"&&r[0].type==="TSPropertySignature")}var yXr=gXr;function vXr(e){let r=e.type||e.kind||"(unknown type)",i=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return i.length>20&&(i=i.slice(0,19)+"\u2026"),r+(i?" "+i:"")}function TXe(e,r){(e.comments??(e.comments=[])).push(r),r.printed=!1,r.nodeDescription=vXr(e)}function D1(e,r){r.leading=!0,r.trailing=!1,TXe(e,r)}function kD(e,r,i){r.leading=!1,r.trailing=!1,i&&(r.marker=i),TXe(e,r)}function Ty(e,r){r.leading=!1,r.trailing=!0,TXe(e,r)}function SXr(e,r){let i=null,s=r;for(;s!==i;)i=s,s=MY(e,s),s=dXe(e,s),s=fXe(e,s),s=jY(e,s);return s}var qY=SXr;function bXr(e,r){let i=qY(e,r);return i===!1?"":e.charAt(i)}var $6=bXr;function xXr(e,r,i){for(let s=r;sBpe(e)||!CD(r,B_(e),T_(e));function EXr(e){return[lMt,rMt,aMt,RXr,AXr,kXe,CXe,tMt,nMt,$Xr,MXr,jXr,AXe,cMt,UXr,iMt,sMt,DXe,wXr,HXr,uMt,wXe].some(r=>r(e))}function kXr(e){return[DXr,aMt,rMt,cMt,kXe,CXe,tMt,nMt,sMt,LXr,BXr,AXe,JXr,DXe,WXr,GXr,KXr,uMt,ZXr,QXr,wXe].some(r=>r(e))}function CXr(e){return[lMt,kXe,CXe,FXr,iMt,AXe,OXr,NXr,DXe,VXr,wXe].some(r=>r(e))}function dV(e,r){let i=(e.body||e.properties).find(({type:s})=>s!=="EmptyStatement");i?D1(i,r):kD(e,r)}function XZe(e,r){e.type==="BlockStatement"?dV(e,r):D1(e,r)}function DXr({comment:e,followingNode:r}){return r&&eMt(e)?(D1(r,e),!0):!1}function kXe({comment:e,precedingNode:r,enclosingNode:i,followingNode:s,text:l}){if(i?.type!=="IfStatement"||!s)return!1;if($6(l,T_(e))===")")return Ty(r,e),!0;if(s.type==="BlockStatement"&&s===i.consequent&&B_(e)>=T_(r)&&T_(e)<=B_(s))return D1(s,e),!0;if(r===i.consequent&&s===i.alternate){let d=qY(l,T_(i.consequent));if(s.type==="BlockStatement"&&B_(e)>=d&&T_(e)<=B_(s))return D1(s,e),!0;if(B_(e)"?(kD(r,e),!0):!1}function FXr({comment:e,enclosingNode:r,text:i}){return $6(i,T_(e))!==")"?!1:r&&(pMt(r)&&xT(r).length===0||UY(r)&&AD(r).length===0)?(kD(r,e),!0):(r?.type==="MethodDefinition"||r?.type==="TSAbstractMethodDefinition")&&xT(r.value).length===0?(kD(r.value,e),!0):!1}function RXr({comment:e,precedingNode:r,enclosingNode:i,followingNode:s,text:l}){return r?.type==="ComponentTypeParameter"&&(i?.type==="DeclareComponent"||i?.type==="ComponentTypeAnnotation")&&s?.type!=="ComponentTypeParameter"||(r?.type==="ComponentParameter"||r?.type==="RestElement")&&i?.type==="ComponentDeclaration"&&$6(l,T_(e))===")"?(Ty(r,e),!0):!1}function aMt({comment:e,precedingNode:r,enclosingNode:i,followingNode:s,text:l}){return r?.type==="FunctionTypeParam"&&i?.type==="FunctionTypeAnnotation"&&s?.type!=="FunctionTypeParam"||(r?.type==="Identifier"||r?.type==="AssignmentPattern"||r?.type==="ObjectPattern"||r?.type==="ArrayPattern"||r?.type==="RestElement"||r?.type==="TSParameterProperty")&&pMt(i)&&$6(l,T_(e))===")"?(Ty(r,e),!0):!z6(e)&&s?.type==="BlockStatement"&&oMt(i)&&(i.type==="MethodDefinition"?i.value.body:i.body)===s&&qY(l,T_(e))===B_(s)?(dV(s,e),!0):!1}function sMt({comment:e,enclosingNode:r}){return r?.type==="LabeledStatement"?(D1(r,e),!0):!1}function DXe({comment:e,enclosingNode:r}){return(r?.type==="ContinueStatement"||r?.type==="BreakStatement")&&!r.label?(Ty(r,e),!0):!1}function LXr({comment:e,precedingNode:r,enclosingNode:i}){return Sf(i)&&r&&i.callee===r&&i.arguments.length>0?(D1(i.arguments[0],e),!0):!1}function MXr({comment:e,precedingNode:r,enclosingNode:i,followingNode:s}){return f8(i)?($Y(e)&&(s.prettierIgnore=!0,e.unignore=!0),r?(Ty(r,e),!0):!1):(f8(s)&&$Y(e)&&(s.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function jXr({comment:e,precedingNode:r,enclosingNode:i,followingNode:s}){return i&&i.type==="MatchOrPattern"?($Y(e)&&(s.prettierIgnore=!0,e.unignore=!0),r?(Ty(r,e),!0):!1):(s&&s.type==="MatchOrPattern"&&$Y(e)&&(s.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function BXr({comment:e,enclosingNode:r}){return oB(r)?(D1(r,e),!0):!1}function AXe({comment:e,enclosingNode:r,ast:i,isLastComment:s}){return i?.body?.length===0?(s?kD(i,e):D1(i,e),!0):r?.type==="Program"&&r.body.length===0&&!Ag(r.directives)?(s?kD(r,e):D1(r,e),!0):!1}function $Xr({comment:e,enclosingNode:r,followingNode:i}){return(r?.type==="ForInStatement"||r?.type==="ForOfStatement")&&i!==r.body?(D1(r,e),!0):!1}function cMt({comment:e,precedingNode:r,enclosingNode:i,text:s}){if(i?.type==="ImportSpecifier"||i?.type==="ExportSpecifier")return D1(i,e),!0;let l=r?.type==="ImportSpecifier"&&i?.type==="ImportDeclaration",d=r?.type==="ExportSpecifier"&&i?.type==="ExportNamedDeclaration";return(l||d)&&gk(s,T_(e))?(Ty(r,e),!0):!1}function UXr({comment:e,enclosingNode:r}){return r?.type==="AssignmentPattern"?(D1(r,e),!0):!1}var zXr=Tp(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),qXr=Tp(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function JXr({comment:e,enclosingNode:r,followingNode:i}){return zXr(r)&&i&&(qXr(i)||z6(e))?(D1(i,e),!0):!1}function VXr({comment:e,enclosingNode:r,precedingNode:i,followingNode:s,text:l}){return!s&&(r?.type==="TSMethodSignature"||r?.type==="TSDeclareFunction"||r?.type==="TSAbstractMethodDefinition")&&(!i||i!==r.returnType)&&$6(l,T_(e))===";"?(Ty(r,e),!0):!1}function lMt({comment:e,enclosingNode:r,followingNode:i}){if($Y(e)&&r?.type==="TSMappedType"&&i===r.key)return r.prettierIgnore=!0,e.unignore=!0,!0}function uMt({comment:e,precedingNode:r,enclosingNode:i}){if(i?.type==="TSMappedType"&&!r)return kD(i,e),!0}function WXr({comment:e,enclosingNode:r,followingNode:i}){return!r||r.type!=="SwitchCase"||r.test||!i||i!==r.consequent[0]?!1:(i.type==="BlockStatement"&&Bpe(e)?dV(i,e):kD(r,e),!0)}function GXr({comment:e,precedingNode:r,enclosingNode:i,followingNode:s}){return f8(r)&&((i.type==="TSArrayType"||i.type==="ArrayTypeAnnotation")&&!s||Upe(i))?(Ty(Zf(0,r.types,-1),e),!0):!1}function HXr({comment:e,enclosingNode:r,precedingNode:i,followingNode:s}){if((r?.type==="ObjectPattern"||r?.type==="ArrayPattern")&&s?.type==="TSTypeAnnotation")return i?Ty(i,e):kD(r,e),!0}function KXr({comment:e,precedingNode:r,enclosingNode:i,followingNode:s,text:l}){return!s&&i?.type==="UnaryExpression"&&(r?.type==="LogicalExpression"||r?.type==="BinaryExpression")&&CD(l,B_(i.argument),B_(r.right))&&EXe(e,l)&&!CD(l,B_(r.right),B_(e))?(Ty(r.right,e),!0):!1}function QXr({enclosingNode:e,followingNode:r,comment:i}){if(e&&(e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&(f8(r)||Upe(r)))return D1(r,i),!0}function wXe({enclosingNode:e,precedingNode:r,followingNode:i,comment:s,text:l}){if(M6(e)&&r===e.expression&&!EXe(s,l))return i?D1(i,s):Ty(e,s),!0}function ZXr({comment:e,enclosingNode:r,followingNode:i,precedingNode:s}){return r&&i&&s&&r.type==="ArrowFunctionExpression"&&r.returnType===s&&(s.type==="TSTypeAnnotation"||s.type==="TypeAnnotation")?(D1(i,e),!0):!1}var pMt=Tp(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),XXr={endOfLine:kXr,ownLine:EXr,remaining:CXr},YXr=XXr;function eYr(e,{parser:r}){if(r==="flow"||r==="hermes"||r==="babel-flow")return e=YS(0,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}var tYr=eYr,rYr=Tp(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function nYr(e){let{key:r,parent:i}=e;if(r==="types"&&f8(i)||r==="argument"&&i.type==="JSXSpreadAttribute"||r==="expression"&&i.type==="JSXSpreadChild"||r==="superClass"&&(i.type==="ClassDeclaration"||i.type==="ClassExpression")||(r==="id"||r==="typeParameters")&&rYr(i)||r==="patterns"&&i.type==="MatchOrPattern")return!0;let{node:s}=e;return QCe(s)?!1:f8(s)?XLt(e):!!eb(s)}var iYr=nYr,fV="string",$5="array",JY="cursor",mV="indent",hV="align",gV="trim",rI="group",aB="fill",_8="if-break",yV="indent-if-break",vV="line-suffix",sB="line-suffix-boundary",vk="line",z5="label",q5="break-parent",_Mt=new Set([JY,mV,hV,gV,rI,aB,_8,yV,vV,sB,vk,z5,q5]);function oYr(e){if(typeof e=="string")return fV;if(Array.isArray(e))return $5;if(!e)return;let{type:r}=e;if(_Mt.has(r))return r}var cB=oYr,aYr=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function sYr(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}', +Expected it to be 'string' or 'object'.`;if(cB(e))throw new Error("doc is valid.");let i=Object.prototype.toString.call(e);if(i!=="[object Object]")return`Unexpected doc '${i}'.`;let s=aYr([..._Mt].map(l=>`'${l}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${s}.`}var cYr=class extends Error{name="InvalidDocError";constructor(e){super(sYr(e)),this.doc=e}},Rpe=cYr,cLt={};function lYr(e,r,i,s){let l=[e];for(;l.length>0;){let d=l.pop();if(d===cLt){i(l.pop());continue}i&&l.push(d,cLt);let h=cB(d);if(!h)throw new Rpe(d);if(r?.(d)!==!1)switch(h){case $5:case aB:{let S=h===$5?d:d.parts;for(let b=S.length,A=b-1;A>=0;--A)l.push(S[A]);break}case _8:l.push(d.flatContents,d.breakContents);break;case rI:if(s&&d.expandedStates)for(let S=d.expandedStates.length,b=S-1;b>=0;--b)l.push(d.expandedStates[b]);else l.push(d.contents);break;case hV:case mV:case yV:case z5:case vV:l.push(d.contents);break;case fV:case JY:case gV:case sB:case vk:case q5:break;default:throw new Rpe(d)}}}var IXe=lYr;function VY(e,r){if(typeof e=="string")return r(e);let i=new Map;return s(e);function s(d){if(i.has(d))return i.get(d);let h=l(d);return i.set(d,h),h}function l(d){switch(cB(d)){case $5:return r(d.map(s));case aB:return r({...d,parts:d.parts.map(s)});case _8:return r({...d,breakContents:s(d.breakContents),flatContents:s(d.flatContents)});case rI:{let{expandedStates:h,contents:S}=d;return h?(h=h.map(s),S=h[0]):S=s(S),r({...d,contents:S,expandedStates:h})}case hV:case mV:case yV:case z5:case vV:return r({...d,contents:s(d.contents)});case fV:case JY:case gV:case sB:case vk:case q5:return r(d);default:throw new Rpe(d)}}}function dMt(e,r,i){let s=i,l=!1;function d(h){if(l)return!1;let S=r(h);S!==void 0&&(l=!0,s=S)}return IXe(e,d),s}function uYr(e){if(e.type===rI&&e.break||e.type===vk&&e.hard||e.type===q5)return!0}function $2(e){return dMt(e,uYr,!1)}function lLt(e){if(e.length>0){let r=Zf(0,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function pYr(e){let r=new Set,i=[];function s(d){if(d.type===q5&&lLt(i),d.type===rI){if(i.push(d),r.has(d))return!1;r.add(d)}}function l(d){d.type===rI&&i.pop().break&&lLt(i)}IXe(e,s,l,!0)}function _Yr(e){return e.type===vk&&!e.hard?e.soft?"":" ":e.type===_8?e.flatContents:e}function JCe(e){return VY(e,_Yr)}function dYr(e){switch(cB(e)){case aB:if(e.parts.every(r=>r===""))return"";break;case rI:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===rI&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case hV:case mV:case yV:case vV:if(!e.contents)return"";break;case _8:if(!e.flatContents&&!e.breakContents)return"";break;case $5:{let r=[];for(let i of e){if(!i)continue;let[s,...l]=Array.isArray(i)?i:[i];typeof s=="string"&&typeof Zf(0,r,-1)=="string"?r[r.length-1]+=s:r.push(s),r.push(...l)}return r.length===0?"":r.length===1?r[0]:r}case fV:case JY:case gV:case sB:case vk:case z5:case q5:break;default:throw new Rpe(e)}return e}function PXe(e){return VY(e,r=>dYr(r))}function pV(e,r=yMt){return VY(e,i=>typeof i=="string"?ud(r,i.split(` +`)):i)}function fYr(e){if(e.type===vk)return!0}function mYr(e){return dMt(e,fYr,!1)}function YZe(e,r){return e.type===z5?{...e,contents:r(e.contents)}:r(e)}function hYr(e){let r=!0;return IXe(e,i=>{switch(cB(i)){case fV:if(i==="")break;case gV:case sB:case vk:case q5:return r=!1,!1}}),r}var m8=_V,fMt=_V,gYr=_V,yYr=_V;function da(e){return m8(e),{type:mV,contents:e}}function U6(e,r){return yYr(e),m8(r),{type:hV,contents:r,n:e}}function vYr(e){return U6(Number.NEGATIVE_INFINITY,e)}function mMt(e){return U6(-1,e)}function SYr(e,r,i){m8(e);let s=e;if(r>0){for(let l=0;l0&&b(h),ie()}function j(){S>0&&A(S),ie()}function ie(){h=0,S=0}}function PYr(e,r,i){if(!r)return e;if(r.type==="root")return{...e,root:e};if(r===Number.NEGATIVE_INFINITY)return e.root;let s;return typeof r=="number"?r<0?s=IYr:s={type:2,width:r}:s={type:3,string:r},SMt(e,s,i)}function NYr(e,r){return SMt(e,wYr,r)}function OYr(e){let r=0;for(let i=e.length-1;i>=0;i--){let s=e[i];if(s===" "||s===" ")r++;else break}return r}function bMt(e){let r=OYr(e);return{text:r===0?e:e.slice(0,e.length-r),count:r}}var hk=Symbol("MODE_BREAK"),p8=Symbol("MODE_FLAT"),eXe=Symbol("DOC_FILL_PRINTED_LENGTH");function MCe(e,r,i,s,l,d){if(i===Number.POSITIVE_INFINITY)return!0;let h=r.length,S=!1,b=[e],A="";for(;i>=0;){if(b.length===0){if(h===0)return!0;b.push(r[--h]);continue}let{mode:L,doc:V}=b.pop(),j=cB(V);switch(j){case fV:V&&(S&&(A+=" ",i-=1,S=!1),A+=V,i-=LY(V));break;case $5:case aB:{let ie=j===$5?V:V.parts,te=V[eXe]??0;for(let X=ie.length-1;X>=te;X--)b.push({mode:L,doc:ie[X]});break}case mV:case hV:case yV:case z5:b.push({mode:L,doc:V.contents});break;case gV:{let{text:ie,count:te}=bMt(A);A=ie,i+=te;break}case rI:{if(d&&V.break)return!1;let ie=V.break?hk:L,te=V.expandedStates&&ie===hk?Zf(0,V.expandedStates,-1):V.contents;b.push({mode:ie,doc:te});break}case _8:{let ie=(V.groupId?l[V.groupId]||p8:L)===hk?V.breakContents:V.flatContents;ie&&b.push({mode:L,doc:ie});break}case vk:if(L===hk||V.hard)return!0;V.soft||(S=!0);break;case vV:s=!0;break;case sB:if(s)return!1;break}}return!1}function xMt(e,r){let i=Object.create(null),s=r.printWidth,l=AYr(r.endOfLine),d=0,h=[{indent:vMt,mode:hk,doc:e}],S="",b=!1,A=[],L=[],V=[],j=[],ie=0;for(pYr(e);h.length>0;){let{indent:pt,mode:$e,doc:xt}=h.pop();switch(cB(xt)){case fV:{let tr=l!==` +`?YS(0,xt,` +`,l):xt;tr&&(S+=tr,h.length>0&&(d+=LY(tr)));break}case $5:for(let tr=xt.length-1;tr>=0;tr--)h.push({indent:pt,mode:$e,doc:xt[tr]});break;case JY:if(L.length>=2)throw new Error("There are too many 'cursor' in doc.");L.push(ie+S.length);break;case mV:h.push({indent:NYr(pt,r),mode:$e,doc:xt.contents});break;case hV:h.push({indent:PYr(pt,xt.n,r),mode:$e,doc:xt.contents});break;case gV:Je();break;case rI:switch($e){case p8:if(!b){h.push({indent:pt,mode:xt.break?hk:p8,doc:xt.contents});break}case hk:{b=!1;let tr={indent:pt,mode:p8,doc:xt.contents},ht=s-d,wt=A.length>0;if(!xt.break&&MCe(tr,h,ht,wt,i))h.push(tr);else if(xt.expandedStates){let Ut=Zf(0,xt.expandedStates,-1);if(xt.break){h.push({indent:pt,mode:hk,doc:Ut});break}else for(let hr=1;hr=xt.expandedStates.length){h.push({indent:pt,mode:hk,doc:Ut});break}else{let Hi=xt.expandedStates[hr],un={indent:pt,mode:p8,doc:Hi};if(MCe(un,h,ht,wt,i)){h.push(un);break}}}else h.push({indent:pt,mode:hk,doc:xt.contents});break}}xt.id&&(i[xt.id]=Zf(0,h,-1).mode);break;case aB:{let tr=s-d,ht=xt[eXe]??0,{parts:wt}=xt,Ut=wt.length-ht;if(Ut===0)break;let hr=wt[ht+0],Hi=wt[ht+1],un={indent:pt,mode:p8,doc:hr},xo={indent:pt,mode:hk,doc:hr},Lo=MCe(un,[],tr,A.length>0,i,!0);if(Ut===1){Lo?h.push(un):h.push(xo);break}let yr={indent:pt,mode:p8,doc:Hi},co={indent:pt,mode:hk,doc:Hi};if(Ut===2){Lo?h.push(yr,un):h.push(co,xo);break}let Cs=wt[ht+2],Cr={indent:pt,mode:$e,doc:{...xt,[eXe]:ht+2}},ol=MCe({indent:pt,mode:p8,doc:[hr,Hi,Cs]},[],tr,A.length>0,i,!0);h.push(Cr),ol?h.push(yr,un):Lo?h.push(co,un):h.push(co,xo);break}case _8:case yV:{let tr=xt.groupId?i[xt.groupId]:$e;if(tr===hk){let ht=xt.type===_8?xt.breakContents:xt.negate?xt.contents:da(xt.contents);ht&&h.push({indent:pt,mode:$e,doc:ht})}if(tr===p8){let ht=xt.type===_8?xt.flatContents:xt.negate?da(xt.contents):xt.contents;ht&&h.push({indent:pt,mode:$e,doc:ht})}break}case vV:A.push({indent:pt,mode:$e,doc:xt.contents});break;case sB:A.length>0&&h.push({indent:pt,mode:$e,doc:gMt});break;case vk:switch($e){case p8:if(xt.hard)b=!0;else{xt.soft||(S+=" ",d+=1);break}case hk:if(A.length>0){h.push({indent:pt,mode:$e,doc:xt},...A.reverse()),A.length=0;break}xt.literal?(S+=l,d=0,pt.root&&(pt.root.value&&(S+=pt.root.value),d=pt.root.length)):(Je(),S+=l+pt.value,d=pt.length);break}break;case z5:h.push({indent:pt,mode:$e,doc:xt.contents});break;case q5:break;default:throw new Rpe(xt)}h.length===0&&A.length>0&&(h.push(...A.reverse()),A.length=0)}let te=V.join("")+S,X=[...j,...L];if(X.length!==2)return{formatted:te};let Re=X[0];return{formatted:te,cursorNodeStart:Re,cursorNodeText:te.slice(Re,Zf(0,X,-1))};function Je(){let{text:pt,count:$e}=bMt(S);pt&&(V.push(pt),ie+=pt.length),S="",d-=$e,L.length>0&&(j.push(...L.map(xt=>Math.min(xt,ie))),L.length=0)}}function FYr(e,r,i=0){let s=0;for(let l=i;l{if(d.push(i()),A.tail)return;let{tabWidth:L}=r,V=A.value.raw,j=V.includes(` +`)?MYr(V,L):S;S=j;let ie=h[b],te=s[l][b],X=CD(r.originalText,T_(A),B_(s.quasis[b+1]));if(!X){let Je=xMt(ie,{...r,printWidth:Number.POSITIVE_INFINITY}).formatted;Je.includes(` +`)?X=!0:ie=Je}X&&(Os(te)||te.type==="Identifier"||Dg(te)||te.type==="ConditionalExpression"||te.type==="SequenceExpression"||M6(te)||B5(te))&&(ie=[da([Qo,ie]),Qo]);let Re=j===0&&V.endsWith(` +`)?U6(Number.NEGATIVE_INFINITY,ie):SYr(ie,j,L);d.push(Bi(["${",Re,h8,"}"]))},"quasis"),d.push("`"),d}function jYr(e,r,i){let s=i("quasi"),{node:l}=e,d="",h=uV(l.quasi,Fc.Leading)[0];return h&&(CD(r.originalText,T_(l.typeArguments??l.tag),B_(h))?d=Qo:d=" "),zpe(s.label&&{tagged:!0,...s.label},[i("tag"),i("typeArguments"),d,h8,s])}function BYr(e,r,i){let{node:s}=e,l=s.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(l.length>1||l.some(d=>d.length>0)){r.__inJestEach=!0;let d=e.map(i,"expressions");r.__inJestEach=!1;let h=d.map(V=>"${"+xMt(V,{...r,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),S=[{hasLineBreak:!1,cells:[]}];for(let V=1;VV.cells.length)),A=Array.from({length:b}).fill(0),L=[{cells:l},...S.filter(V=>V.cells.length>0)];for(let{cells:V}of L.filter(j=>!j.hasLineBreak))for(let[j,ie]of V.entries())A[j]=Math.max(A[j],LY(ie));return[h8,"`",da([Ia,ud(Ia,L.map(V=>ud(" | ",V.cells.map((j,ie)=>V.hasLineBreak?j:j+" ".repeat(A[ie]-LY(j))))))]),Ia,"`"]}}function $Yr(e,r){let{node:i}=e,s=r();return Os(i)&&(s=Bi([da([Qo,s]),Qo])),["${",s,h8,"}"]}function NXe(e,r){return e.map(()=>$Yr(e,r),"expressions")}function EMt(e,r){return VY(e,i=>typeof i=="string"?r?YS(0,i,/(\\*)`/gu,"$1$1\\`"):kMt(i):i)}function kMt(e){return YS(0,e,/([\\`]|\$\{)/gu,"\\$1")}function UYr({node:e,parent:r}){let i=/^[fx]?(?:describe|it|test)$/u;return r.type==="TaggedTemplateExpression"&&r.quasi===e&&r.tag.type==="MemberExpression"&&r.tag.property.type==="Identifier"&&r.tag.property.name==="each"&&(r.tag.object.type==="Identifier"&&i.test(r.tag.object.name)||r.tag.object.type==="MemberExpression"&&r.tag.object.property.type==="Identifier"&&(r.tag.object.property.name==="only"||r.tag.object.property.name==="skip")&&r.tag.object.object.type==="Identifier"&&i.test(r.tag.object.object.name))}var tXe=[(e,r)=>e.type==="ObjectExpression"&&r==="properties",(e,r)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&r==="arguments",(e,r)=>e.type==="Decorator"&&r==="expression"];function zYr(e){let r=s=>s.type==="TemplateLiteral",i=(s,l)=>oB(s)&&!s.computed&&s.key.type==="Identifier"&&s.key.name==="styles"&&l==="value";return e.match(r,(s,l)=>ax(s)&&l==="elements",i,...tXe)||e.match(r,i,...tXe)}function qYr(e){return e.match(r=>r.type==="TemplateLiteral",(r,i)=>oB(r)&&!r.computed&&r.key.type==="Identifier"&&r.key.name==="template"&&i==="value",...tXe)}function $Ze(e,r){return Os(e,Fc.Block|Fc.Leading,({value:i})=>i===` ${r} `)}function CMt({node:e,parent:r},i){return $Ze(e,i)||JYr(r)&&$Ze(r,i)||r.type==="ExpressionStatement"&&$Ze(r,i)}function JYr(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function VYr(e,r,i){let{node:s}=i,l="";for(let[b,A]of s.quasis.entries()){let{raw:L}=A.value;b>0&&(l+="@prettier-placeholder-"+(b-1)+"-id"),l+=L}let d=await e(l,{parser:"scss"}),h=NXe(i,r),S=WYr(d,h);if(!S)throw new Error("Couldn't insert all the expressions");return["`",da([Ia,S]),Qo,"`"]}function WYr(e,r){if(!Ag(r))return e;let i=0,s=VY(PXe(e),l=>typeof l!="string"||!l.includes("@prettier-placeholder")?l:l.split(/@prettier-placeholder-(\d+)-id/u).map((d,h)=>h%2===0?pV(d):(i++,r[d])));return r.length===i?s:null}function GYr(e){return e.match(void 0,(r,i)=>i==="quasi"&&r.type==="TaggedTemplateExpression"&&hXe(r.tag,["css","css.global","css.resolve"]))||e.match(void 0,(r,i)=>i==="expression"&&r.type==="JSXExpressionContainer",(r,i)=>i==="children"&&r.type==="JSXElement"&&r.openingElement.name.type==="JSXIdentifier"&&r.openingElement.name.name==="style"&&r.openingElement.attributes.some(s=>s.type==="JSXAttribute"&&s.name.type==="JSXIdentifier"&&s.name.name==="jsx"))}function jCe(e){return e.type==="Identifier"&&e.name==="styled"}function pLt(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function HYr({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let r=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(r.type){case"MemberExpression":return jCe(r.object)||pLt(r);case"CallExpression":return jCe(r.callee)||r.callee.type==="MemberExpression"&&(r.callee.object.type==="MemberExpression"&&(jCe(r.callee.object.object)||pLt(r.callee.object))||r.callee.object.type==="CallExpression"&&jCe(r.callee.object.callee));case"Identifier":return r.name==="css";default:return!1}}function KYr({parent:e,grandparent:r}){return r?.type==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&r.name.type==="JSXIdentifier"&&r.name.name==="css"}var QYr=e=>GYr(e)||HYr(e)||KYr(e)||zYr(e);async function ZYr(e,r,i){let{node:s}=i,l=s.quasis.length,d=NXe(i,r),h=[];for(let S=0;S2&&j[0].trim()===""&&j[1].trim()==="",Re=ie>2&&j[ie-1].trim()===""&&j[ie-2].trim()==="",Je=j.every($e=>/^\s*(?:#[^\n\r]*)?$/u.test($e));if(!L&&/#[^\n\r]*$/u.test(j[ie-1]))return null;let pt=null;Je?pt=XYr(j):pt=await e(V,{parser:"graphql"}),pt?(pt=EMt(pt,!1),!A&&X&&h.push(""),h.push(pt),!L&&Re&&h.push("")):!A&&!L&&X&&h.push(""),te&&h.push(te)}return["`",da([Ia,ud(Ia,h)]),Ia,"`"]}function XYr(e){let r=[],i=!1,s=e.map(l=>l.trim());for(let[l,d]of s.entries())d!==""&&(s[l-1]===""&&i?r.push([Ia,d]):r.push(d),i=!0);return r.length===0?null:ud(Ia,r)}function YYr({node:e,parent:r}){return CMt({node:e,parent:r},"GraphQL")||r&&(r.type==="TaggedTemplateExpression"&&(r.tag.type==="MemberExpression"&&r.tag.object.name==="graphql"&&r.tag.property.name==="experimental"||r.tag.type==="Identifier"&&(r.tag.name==="gql"||r.tag.name==="graphql"))||r.type==="CallExpression"&&r.callee.type==="Identifier"&&r.callee.name==="graphql")}var UZe=0;async function DMt(e,r,i,s,l){let{node:d}=s,h=UZe;UZe=UZe+1>>>0;let S=Je=>`PRETTIER_HTML_PLACEHOLDER_${Je}_${h}_IN_JS`,b=d.quasis.map((Je,pt,$e)=>pt===$e.length-1?Je.value.cooked:Je.value.cooked+S(pt)).join(""),A=NXe(s,i),L=new RegExp(S("(\\d+)"),"gu"),V=0,j=await r(b,{parser:e,__onHtmlRoot(Je){V=Je.children.length}}),ie=VY(j,Je=>{if(typeof Je!="string")return Je;let pt=[],$e=Je.split(L);for(let xt=0;xt<$e.length;xt++){let tr=$e[xt];if(xt%2===0){tr&&(tr=kMt(tr),l.__embeddedInHtml&&(tr=YS(0,tr,/<\/(?=script\b)/giu,"<\\/")),pt.push(tr));continue}let ht=Number(tr);pt.push(A[ht])}return pt}),te=/^\s/u.test(b)?" ":"",X=/\s$/u.test(b)?" ":"",Re=l.htmlWhitespaceSensitivity==="ignore"?Ia:te&&X?Bs:null;return Re?Bi(["`",da([Re,Bi(ie)]),Re,"`"]):zpe({hug:!1},Bi(["`",te,V>1?da(Bi(ie)):Bi(ie),X,"`"]))}function een(e){return CMt(e,"HTML")||e.match(r=>r.type==="TemplateLiteral",(r,i)=>r.type==="TaggedTemplateExpression"&&r.tag.type==="Identifier"&&r.tag.name==="html"&&i==="quasi")}var ten=DMt.bind(void 0,"html"),ren=DMt.bind(void 0,"angular");async function nen(e,r,i){let{node:s}=i,l=YS(0,s.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(b,A)=>"\\".repeat(A.length/2)+"`"),d=ien(l),h=d!=="";h&&(l=YS(0,l,new RegExp(`^${d}`,"gmu"),""));let S=EMt(await e(l,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",h?da([Qo,S]):[yMt,vYr(S)],Qo,"`"]}function ien(e){let r=e.match(/^([^\S\n]*)\S/mu);return r===null?"":r[1]}function oen({node:e,parent:r}){return r?.type==="TaggedTemplateExpression"&&e.quasis.length===1&&r.tag.type==="Identifier"&&(r.tag.name==="md"||r.tag.name==="markdown")}var aen=[{test:QYr,print:VYr},{test:YYr,print:ZYr},{test:een,print:ten},{test:qYr,print:ren},{test:oen,print:nen}].map(({test:e,print:r})=>({test:e,print:cen(r)}));function sen(e){let{node:r}=e;if(r.type!=="TemplateLiteral"||len(r))return;let i=aen.find(({test:s})=>s(e));if(i)return r.quasis.length===1&&r.quasis[0].value.raw.trim()===""?"``":i.print}function cen(e){return async(...r)=>{let i=await e(...r);return i&&zpe({embed:!0,...i.label},i)}}function len({quasis:e}){return e.some(({value:{cooked:r}})=>r===null)}var uen=sen,pen=/\*\/$/,_en=/^\/\*\*?/,AMt=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,den=/(^|\s+)\/\/([^\n\r]*)/g,_Lt=/^(\r?\n)+/,fen=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,dLt=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,men=/(\r?\n|^) *\* ?/g,wMt=[];function hen(e){let r=e.match(AMt);return r?r[0].trimStart():""}function gen(e){let r=e.match(AMt)?.[0];return r==null?e:e.slice(r.length)}function yen(e){e=YS(0,e.replace(_en,"").replace(pen,""),men,"$1");let r="";for(;r!==e;)r=e,e=YS(0,e,fen,` +$1 $2 +`);e=e.replace(_Lt,"").trimEnd();let i=Object.create(null),s=YS(0,e,dLt,"").replace(_Lt,"").trimEnd(),l;for(;l=dLt.exec(e);){let d=YS(0,l[2],den,"");if(typeof i[l[1]]=="string"||Array.isArray(i[l[1]])){let h=i[l[1]];i[l[1]]=[...wMt,...Array.isArray(h)?h:[h],d]}else i[l[1]]=d}return{comments:s,pragmas:i}}function ven({comments:e="",pragmas:r={}}){let i=Object.keys(r),s=i.flatMap(d=>fLt(d,r[d])).map(d=>` * ${d} +`).join("");if(!e){if(i.length===0)return"";if(i.length===1&&!Array.isArray(r[i[0]])){let d=r[i[0]];return`/** ${fLt(i[0],d)[0]} */`}}let l=e.split(` +`).map(d=>` * ${d}`).join(` +`)+` +`;return`/** +`+(e?l:"")+(e&&i.length>0?` * +`:"")+s+" */"}function fLt(e,r){return[...wMt,...Array.isArray(r)?r:[r]].map(i=>`@${e} ${i}`.trim())}var Sen="format";function ben(e){if(!e.startsWith("#!"))return"";let r=e.indexOf(` +`);return r===-1?e:e.slice(0,r)}var xen=ben;function Ten(e){let r=xen(e);r&&(e=e.slice(r.length+1));let i=hen(e),{pragmas:s,comments:l}=yen(i);return{shebang:r,text:e,pragmas:s,comments:l}}function Een(e){let{shebang:r,text:i,pragmas:s,comments:l}=Ten(e),d=gen(i),h=ven({pragmas:{[Sen]:"",...s},comments:l.trimStart()});return(r?`${r} +`:"")+h+(d.startsWith(` +`)?` +`:` + +`)+d}function ken(e){if(!z6(e))return!1;let r=`*${e.value}*`.split(` +`);return r.length>1&&r.every(i=>i.trimStart()[0]==="*")}var zZe=new WeakMap;function Cen(e){return zZe.has(e)||zZe.set(e,ken(e)),zZe.get(e)}var Den=Cen;function Aen(e,r){let i=e.node;if(Bpe(i))return r.originalText.slice(B_(i),T_(i)).trimEnd();if(Den(i))return wen(i);if(z6(i))return["/*",pV(i.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(i))}function wen(e){let r=e.value.split(` +`);return["/*",ud(Ia,r.map((i,s)=>s===0?i.trimEnd():" "+(sh.type==="ForOfStatement")?.left;if(d&&B2(d,h=>h===i))return!0}if(s==="object"&&i.name==="let"&&l.type==="MemberExpression"&&l.computed&&!l.optional){let d=e.findAncestor(S=>S.type==="ExpressionStatement"||S.type==="ForStatement"||S.type==="ForInStatement"),h=d?d.type==="ExpressionStatement"?d.expression:d.type==="ForStatement"?d.init:d.left:void 0;if(h&&B2(h,S=>S===i))return!0}if(s==="expression")switch(i.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let d=e.findAncestor(h=>!M6(h));if(d!==l&&d.type==="ExpressionStatement")return!0}}return!1}if(i.type==="ObjectExpression"||i.type==="FunctionExpression"||i.type==="ClassExpression"||i.type==="DoExpression"){let d=e.findAncestor(h=>h.type==="ExpressionStatement")?.expression;if(d&&B2(d,h=>h===i))return!0}if(i.type==="ObjectExpression"){let d=e.findAncestor(h=>h.type==="ArrowFunctionExpression")?.body;if(d&&d.type!=="SequenceExpression"&&d.type!=="AssignmentExpression"&&B2(d,h=>h===i))return!0}switch(l.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(s==="superClass"&&(i.type==="ArrowFunctionExpression"||i.type==="AssignmentExpression"||i.type==="AwaitExpression"||i.type==="BinaryExpression"||i.type==="ConditionalExpression"||i.type==="LogicalExpression"||i.type==="NewExpression"||i.type==="ObjectExpression"||i.type==="SequenceExpression"||i.type==="TaggedTemplateExpression"||i.type==="UnaryExpression"||i.type==="UpdateExpression"||i.type==="YieldExpression"||i.type==="TSNonNullExpression"||i.type==="ClassExpression"&&Ag(i.decorators)))return!0;break;case"ExportDefaultDeclaration":return IMt(e,r)||i.type==="SequenceExpression";case"Decorator":if(s==="expression"&&!Ren(i))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(d,h)=>h==="returnType"&&d.type==="ArrowFunctionExpression")&&Nen(i))return!0;break;case"BinaryExpression":if(s==="left"&&(l.operator==="in"||l.operator==="instanceof")&&i.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(s==="init"&&e.match(void 0,void 0,(d,h)=>h==="declarations"&&d.type==="VariableDeclaration",(d,h)=>h==="left"&&d.type==="ForInStatement"))return!0;break}switch(i.type){case"UpdateExpression":if(l.type==="UnaryExpression")return i.prefix&&(i.operator==="++"&&l.operator==="+"||i.operator==="--"&&l.operator==="-");case"UnaryExpression":switch(l.type){case"UnaryExpression":return i.operator===l.operator&&(i.operator==="+"||i.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return s==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"BinaryExpression":return s==="left"&&l.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(l.type==="UpdateExpression"||i.operator==="in"&&Pen(e))return!0;if(i.operator==="|>"&&i.extra?.parenthesized){let d=e.grandparent;if(d.type==="BinaryExpression"&&d.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(l.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!M6(i);case"ConditionalExpression":return M6(i)||HZr(i);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return s==="callee";case"ClassExpression":case"ClassDeclaration":return s==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return s==="object";case"AssignmentExpression":case"AssignmentPattern":return s==="left"&&(i.type==="TSTypeAssertion"||M6(i));case"LogicalExpression":if(i.type==="LogicalExpression")return l.operator!==i.operator;case"BinaryExpression":{let{operator:d,type:h}=i;if(!d&&h!=="TSTypeAssertion")return!0;let S=zCe(d),b=l.operator,A=zCe(b);return!!(A>S||s==="right"&&A===S||A===S&&!xXe(b,d)||A");default:return!1}case"TSFunctionType":if(e.match(d=>d.type==="TSFunctionType",(d,h)=>h==="typeAnnotation"&&d.type==="TSTypeAnnotation",(d,h)=>h==="returnType"&&d.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(s==="extendsType"&&iB(i)&&l.type===i.type||s==="checkType"&&iB(l))return!0;if(s==="extendsType"&&l.type==="TSConditionalType"){let{typeAnnotation:d}=i.returnType||i.typeAnnotation;if(d.type==="TSTypePredicate"&&d.typeAnnotation&&(d=d.typeAnnotation.typeAnnotation),d.type==="TSInferType"&&d.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(f8(l)||Upe(l))return!0;case"TSInferType":if(i.type==="TSInferType"){if(l.type==="TSRestType")return!1;if(s==="types"&&(l.type==="TSUnionType"||l.type==="TSIntersectionType")&&i.typeParameter.type==="TSTypeParameter"&&i.typeParameter.constraint)return!0}case"TSTypeOperator":return l.type==="TSArrayType"||l.type==="TSOptionalType"||l.type==="TSRestType"||s==="objectType"&&l.type==="TSIndexedAccessType"||l.type==="TSTypeOperator"||l.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return s==="objectType"&&l.type==="TSIndexedAccessType"||s==="elementType"&&l.type==="TSArrayType";case"TypeOperator":return l.type==="ArrayTypeAnnotation"||l.type==="NullableTypeAnnotation"||s==="objectType"&&(l.type==="IndexedAccessType"||l.type==="OptionalIndexedAccessType")||l.type==="TypeOperator";case"TypeofTypeAnnotation":return s==="objectType"&&(l.type==="IndexedAccessType"||l.type==="OptionalIndexedAccessType")||s==="elementType"&&l.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return l.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return l.type==="TypeOperator"||l.type==="KeyofTypeAnnotation"||l.type==="ArrayTypeAnnotation"||l.type==="NullableTypeAnnotation"||l.type==="IntersectionTypeAnnotation"||l.type==="UnionTypeAnnotation"||s==="objectType"&&(l.type==="IndexedAccessType"||l.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return l.type==="ArrayTypeAnnotation"||s==="objectType"&&(l.type==="IndexedAccessType"||l.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(i.type==="ComponentTypeAnnotation"&&(i.rendersType===null||i.rendersType===void 0))return!1;if(e.match(void 0,(h,S)=>S==="typeAnnotation"&&h.type==="TypeAnnotation",(h,S)=>S==="returnType"&&h.type==="ArrowFunctionExpression")||e.match(void 0,(h,S)=>S==="typeAnnotation"&&h.type==="TypePredicate",(h,S)=>S==="typeAnnotation"&&h.type==="TypeAnnotation",(h,S)=>S==="returnType"&&h.type==="ArrowFunctionExpression"))return!0;let d=l.type==="NullableTypeAnnotation"?e.grandparent:l;return d.type==="UnionTypeAnnotation"||d.type==="IntersectionTypeAnnotation"||d.type==="ArrayTypeAnnotation"||s==="objectType"&&(d.type==="IndexedAccessType"||d.type==="OptionalIndexedAccessType")||s==="checkType"&&l.type==="ConditionalTypeAnnotation"||s==="extendsType"&&l.type==="ConditionalTypeAnnotation"&&i.returnType?.type==="InferTypeAnnotation"&&i.returnType?.typeParameter.bound||d.type==="NullableTypeAnnotation"||l.type==="FunctionTypeParam"&&l.name===null&&xT(i).some(h=>h.typeAnnotation?.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return s==="objectType"&&l.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof i.value=="string"&&l.type==="ExpressionStatement"&&typeof l.directive!="string"){let d=e.grandparent;return d.type==="Program"||d.type==="BlockStatement"}return s==="object"&&Dg(l)&&d8(i);case"AssignmentExpression":return!((s==="init"||s==="update")&&l.type==="ForStatement"||s==="expression"&&i.left.type!=="ObjectPattern"&&l.type==="ExpressionStatement"||s==="key"&&l.type==="TSPropertySignature"||l.type==="AssignmentExpression"||s==="expressions"&&l.type==="SequenceExpression"&&e.match(void 0,void 0,(d,h)=>(h==="init"||h==="update")&&d.type==="ForStatement")||s==="value"&&l.type==="Property"&&e.match(void 0,void 0,(d,h)=>h==="properties"&&d.type==="ObjectPattern")||l.type==="NGChainedExpression"||s==="node"&&l.type==="JsExpressionRoot");case"ConditionalExpression":switch(l.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"ConditionalExpression":return r.experimentalTernaries?!1:s==="test";case"MemberExpression":case"OptionalMemberExpression":return s==="object";default:return!1}case"FunctionExpression":switch(l.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(l.type){case"BinaryExpression":return l.operator!=="|>"||i.extra?.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"MemberExpression":case"OptionalMemberExpression":return s==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":case"MatchExpressionCase":return!0;case"TSInstantiationExpression":return s==="expression";case"ConditionalExpression":return s==="test";default:return!1}case"ClassExpression":return l.type==="NewExpression"?s==="callee":!1;case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(Fen(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(s==="callee"&&(l.type==="BindExpression"||l.type==="NewExpression")){let d=i;for(;d;)switch(d.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":d=d.object;break;case"TaggedTemplateExpression":d=d.tag;break;case"TSNonNullExpression":d=d.expression;break;default:return!1}}return!1;case"BindExpression":return s==="callee"&&(l.type==="BindExpression"||l.type==="NewExpression")||s==="object"&&Dg(l);case"NGPipeExpression":return!(l.type==="NGRoot"||l.type==="NGMicrosyntaxExpression"||l.type==="ObjectProperty"&&!i.extra?.parenthesized||ax(l)||s==="arguments"&&Sf(l)||s==="right"&&l.type==="NGPipeExpression"||s==="property"&&l.type==="MemberExpression"||l.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return s==="callee"||s==="left"&&l.type==="BinaryExpression"&&l.operator==="<"||!ax(l)&&l.type!=="ArrowFunctionExpression"&&l.type!=="AssignmentExpression"&&l.type!=="AssignmentPattern"&&l.type!=="BinaryExpression"&&l.type!=="NewExpression"&&l.type!=="ConditionalExpression"&&l.type!=="ExpressionStatement"&&l.type!=="JsExpressionRoot"&&l.type!=="JSXAttribute"&&l.type!=="JSXElement"&&l.type!=="JSXExpressionContainer"&&l.type!=="JSXFragment"&&l.type!=="LogicalExpression"&&!Sf(l)&&!oB(l)&&l.type!=="ReturnStatement"&&l.type!=="ThrowStatement"&&l.type!=="TypeCastExpression"&&l.type!=="VariableDeclarator"&&l.type!=="YieldExpression"&&l.type!=="MatchExpressionCase";case"TSInstantiationExpression":return s==="object"&&Dg(l);case"MatchOrPattern":return l.type==="MatchAsPattern"}return!1}var Ien=Tp(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function Pen(e){let r=0,{node:i}=e;for(;i;){let s=e.getParentNode(r++);if(s?.type==="ForStatement"&&s.init===i)return!0;i=s}return!1}function Nen(e){return KZe(e,r=>r.type==="ObjectTypeAnnotation"&&KZe(r,i=>i.type==="FunctionTypeAnnotation"))}function Oen(e){return B6(e)}function wpe(e){let{parent:r,key:i}=e;switch(r.type){case"NGPipeExpression":if(i==="arguments"&&e.isLast)return e.callParent(wpe);break;case"ObjectProperty":if(i==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(i==="right")return e.callParent(wpe);break;case"ConditionalExpression":if(i==="alternate")return e.callParent(wpe);break;case"UnaryExpression":if(r.prefix)return e.callParent(wpe);break}return!1}function IMt(e,r){let{node:i,parent:s}=e;return i.type==="FunctionExpression"||i.type==="ClassExpression"?s.type==="ExportDefaultDeclaration"||!rXe(e,r):!yXe(i)||s.type!=="ExportDefaultDeclaration"&&rXe(e,r)?!1:e.call(()=>IMt(e,r),...zLt(i))}function Fen(e){return!!(e.match(void 0,(r,i)=>i==="expression"&&r.type==="ChainExpression",(r,i)=>i==="tag"&&r.type==="TaggedTemplateExpression")||e.match(r=>r.type==="OptionalCallExpression"||r.type==="OptionalMemberExpression",(r,i)=>i==="tag"&&r.type==="TaggedTemplateExpression")||e.match(r=>r.type==="OptionalCallExpression"||r.type==="OptionalMemberExpression",(r,i)=>i==="expression"&&r.type==="TSNonNullExpression",(r,i)=>i==="tag"&&r.type==="TaggedTemplateExpression")||e.match(void 0,(r,i)=>i==="expression"&&r.type==="ChainExpression",(r,i)=>i==="expression"&&r.type==="TSNonNullExpression",(r,i)=>i==="tag"&&r.type==="TaggedTemplateExpression")||e.match(void 0,(r,i)=>i==="expression"&&r.type==="TSNonNullExpression",(r,i)=>i==="expression"&&r.type==="ChainExpression",(r,i)=>i==="tag"&&r.type==="TaggedTemplateExpression")||e.match(r=>r.type==="OptionalMemberExpression"||r.type==="OptionalCallExpression",(r,i)=>i==="object"&&r.type==="MemberExpression"||i==="callee"&&(r.type==="CallExpression"||r.type==="NewExpression"))||e.match(r=>r.type==="OptionalMemberExpression"||r.type==="OptionalCallExpression",(r,i)=>i==="expression"&&r.type==="TSNonNullExpression",(r,i)=>i==="object"&&r.type==="MemberExpression"||i==="callee"&&r.type==="CallExpression")||e.match(r=>r.type==="CallExpression"||r.type==="MemberExpression",(r,i)=>i==="expression"&&r.type==="ChainExpression")&&(e.match(void 0,void 0,(r,i)=>i==="callee"&&(r.type==="CallExpression"&&!r.optional||r.type==="NewExpression")||i==="object"&&r.type==="MemberExpression"&&!r.optional)||e.match(void 0,void 0,(r,i)=>i==="expression"&&r.type==="TSNonNullExpression",(r,i)=>i==="object"&&r.type==="MemberExpression"||i==="callee"&&r.type==="CallExpression"))||e.match(r=>r.type==="CallExpression"||r.type==="MemberExpression",(r,i)=>i==="expression"&&r.type==="TSNonNullExpression",(r,i)=>i==="expression"&&r.type==="ChainExpression",(r,i)=>i==="object"&&r.type==="MemberExpression"||i==="callee"&&r.type==="CallExpression"))}function nXe(e){return e.type==="Identifier"?!0:Dg(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&nXe(e.object):!1}function Ren(e){return e.type==="ChainExpression"&&(e=e.expression),nXe(e)||Sf(e)&&!e.optional&&nXe(e.callee)}var lB=rXe;function Len(e,r){let i=r-1;i=MY(e,i,{backwards:!0}),i=jY(e,i,{backwards:!0}),i=MY(e,i,{backwards:!0});let s=jY(e,i,{backwards:!0});return i!==s}var Men=Len,jen=()=>!0;function OXe(e,r){let i=e.node;return i.printed=!0,r.printer.printComment(e,r)}function Ben(e,r){let i=e.node,s=[OXe(e,r)],{printer:l,originalText:d,locStart:h,locEnd:S}=r;if(l.isBlockComment?.(i)){let A=gk(d,S(i))?gk(d,h(i),{backwards:!0})?Ia:Bs:" ";s.push(A)}else s.push(Ia);let b=jY(d,MY(d,S(i)));return b!==!1&&gk(d,b)&&s.push(Ia),s}function $en(e,r,i){let s=e.node,l=OXe(e,r),{printer:d,originalText:h,locStart:S}=r,b=d.isBlockComment?.(s);if(i?.hasLineSuffix&&!i?.isBlock||gk(h,S(s),{backwards:!0})){let A=Men(h,S(s));return{doc:uLt([Ia,A?Ia:"",l]),isBlock:b,hasLineSuffix:!0}}return!b||i?.hasLineSuffix?{doc:[uLt([" ",l]),U5],isBlock:b,hasLineSuffix:!0}:{doc:[" ",l],isBlock:b,hasLineSuffix:!1}}function Cg(e,r,i={}){let{node:s}=e;if(!Ag(s?.comments))return"";let{indent:l=!1,marker:d,filter:h=jen}=i,S=[];if(e.each(({node:A})=>{A.leading||A.trailing||A.marker!==d||!h(A)||S.push(OXe(e,r))},"comments"),S.length===0)return"";let b=ud(Ia,S);return l?da([Ia,b]):b}function ZCe(e,r){let i=e.node;if(!i)return{};let s=r[Symbol.for("printedComments")];if((i.comments||[]).filter(S=>!s.has(S)).length===0)return{leading:"",trailing:""};let l=[],d=[],h;return e.each(()=>{let S=e.node;if(s?.has(S))return;let{leading:b,trailing:A}=S;b?l.push(Ben(e,r)):A&&(h=$en(e,r,h),d.push(h.doc))},"comments"),{leading:l,trailing:d}}function tI(e,r,i){let{leading:s,trailing:l}=ZCe(e,i);return!s&&!l?r:YZe(r,d=>[s,d,l])}var VCe=class extends Error{name="ArgExpansionBailout"};function SV(e,r,i,s,l){let d=e.node,h=xT(d),S=l&&d.typeParameters?i("typeParameters"):"";if(h.length===0)return[S,"(",Cg(e,r,{filter:ie=>$6(r.originalText,T_(ie))===")"}),")"];let{parent:b}=e,A=KCe(b),L=PMt(d),V=[];if(lXr(e,(ie,te)=>{let X=te===h.length-1;X&&d.rest&&V.push("..."),V.push(i()),!X&&(V.push(","),A||L?V.push(" "):y8(h[te],r)?V.push(Ia,Ia):V.push(Bs))}),s&&!zen(e)){if($2(S)||$2(V))throw new VCe;return Bi([JCe(S),"(",JCe(V),")"])}let j=h.every(ie=>!Ag(ie.decorators));return L&&j?[S,"(",...V,")"]:A?[S,"(",...V,")"]:(VLt(b)||XZr(b)||b.type==="TypeAlias"||b.type==="UnionTypeAnnotation"||b.type==="IntersectionTypeAnnotation"||b.type==="FunctionTypeAnnotation"&&b.returnType===d)&&h.length===1&&h[0].name===null&&d.this!==h[0]&&h[0].typeAnnotation&&d.typeParameters===null&&SXe(h[0].typeAnnotation)&&!d.rest?r.arrowParens==="always"||d.type==="HookTypeAnnotation"?["(",...V,")"]:V:[S,"(",da([Qo,...V]),op(!cXr(d)&&g8(r,"all")?",":""),Qo,")"]}function PMt(e){if(!e)return!1;let r=xT(e);if(r.length!==1)return!1;let[i]=r;return!Os(i)&&(i.type==="ObjectPattern"||i.type==="ArrayPattern"||i.type==="Identifier"&&i.typeAnnotation&&(i.typeAnnotation.type==="TypeAnnotation"||i.typeAnnotation.type==="TSTypeAnnotation")&&nB(i.typeAnnotation.typeAnnotation)||i.type==="FunctionTypeParam"&&nB(i.typeAnnotation)&&i!==e.rest||i.type==="AssignmentPattern"&&(i.left.type==="ObjectPattern"||i.left.type==="ArrayPattern")&&(i.right.type==="Identifier"||B6(i.right)&&i.right.properties.length===0||ax(i.right)&&i.right.elements.length===0))}function Uen(e){let r;return e.returnType?(r=e.returnType,r.typeAnnotation&&(r=r.typeAnnotation)):e.typeAnnotation&&(r=e.typeAnnotation),r}function WY(e,r){let i=Uen(e);if(!i)return!1;let s=e.typeParameters?.params;if(s){if(s.length>1)return!1;if(s.length===1){let l=s[0];if(l.constraint||l.default)return!1}}return xT(e).length===1&&(nB(i)||$2(r))}function zen(e){return e.match(r=>r.type==="ArrowFunctionExpression"&&r.body.type==="BlockStatement",(r,i)=>{if(r.type==="CallExpression"&&i==="arguments"&&r.arguments.length===1&&r.callee.type==="CallExpression"){let s=r.callee.callee;return s.type==="Identifier"||s.type==="MemberExpression"&&!s.computed&&s.object.type==="Identifier"&&s.property.type==="Identifier"}return!1},(r,i)=>r.type==="VariableDeclarator"&&i==="init"||r.type==="ExportDefaultDeclaration"&&i==="declaration"||r.type==="TSExportAssignment"&&i==="expression"||r.type==="AssignmentExpression"&&i==="right"&&r.left.type==="MemberExpression"&&r.left.object.type==="Identifier"&&r.left.object.name==="module"&&r.left.property.type==="Identifier"&&r.left.property.name==="exports",r=>r.type!=="VariableDeclaration"||r.kind==="const"&&r.declarations.length===1)}function qen(e){let r=xT(e);return r.length>1&&r.some(i=>i.type==="TSParameterProperty")}function Ppe(e,r){return(r==="params"||r==="this"||r==="rest")&&PMt(e)}function U2(e){let{node:r}=e;return!r.optional||r.type==="Identifier"&&r===e.parent.key?"":Sf(r)||Dg(r)&&r.computed||r.type==="OptionalIndexedAccessType"?"?.":"?"}function NMt(e){return e.node.definite||e.match(void 0,(r,i)=>i==="id"&&r.type==="VariableDeclarator"&&r.definite)?"!":""}var Jen=Tp(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function DD(e){let{node:r}=e;return r.declare||Jen(r)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var Ven=Tp(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function XCe({node:e}){return e.abstract||Ven(e)?"abstract ":""}function tB(e,r,i){return e.type==="EmptyStatement"?Os(e,Fc.Leading)?[" ",r]:r:e.type==="BlockStatement"||i?[" ",r]:da([Bs,r])}function YCe(e){return e.accessibility?e.accessibility+" ":""}var Wen=/^[\$A-Z_a-z\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\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\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\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][\$0-9A-Z_a-z\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\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\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\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\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\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-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\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\u200C\u200D\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\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]*$/,Gen=e=>Wen.test(e),Hen=Gen;function Ken(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var zY=Ken,Qen=0;function OMt(e,r,i){let{node:s,parent:l,grandparent:d,key:h}=e,S=h!=="body"&&(l.type==="IfStatement"||l.type==="WhileStatement"||l.type==="SwitchStatement"||l.type==="DoWhileStatement"),b=s.operator==="|>"&&e.root.extra?.__isUsingHackPipeline,A=iXe(e,r,i,!1,S);if(S)return A;if(b)return Bi(A);if(h==="callee"&&(Sf(l)||l.type==="NewExpression")||l.type==="UnaryExpression"||Dg(l)&&!l.computed)return Bi([da([Qo,...A]),Qo]);let L=l.type==="ReturnStatement"||l.type==="ThrowStatement"||l.type==="JSXExpressionContainer"&&d.type==="JSXAttribute"||s.operator!=="|"&&l.type==="JsExpressionRoot"||s.type!=="NGPipeExpression"&&(l.type==="NGRoot"&&r.parser==="__ng_binding"||l.type==="NGMicrosyntaxExpression"&&d.type==="NGMicrosyntax"&&d.body.length===1)||s===l.body&&l.type==="ArrowFunctionExpression"||s!==l.body&&l.type==="ForStatement"||l.type==="ConditionalExpression"&&d.type!=="ReturnStatement"&&d.type!=="ThrowStatement"&&!Sf(d)&&d.type!=="NewExpression"||l.type==="TemplateLiteral"||Xen(e),V=l.type==="AssignmentExpression"||l.type==="VariableDeclarator"||l.type==="ClassProperty"||l.type==="PropertyDefinition"||l.type==="TSAbstractPropertyDefinition"||l.type==="ClassPrivateProperty"||oB(l),j=B5(s.left)&&xXe(s.operator,s.left.operator);if(L||Mpe(s)&&!j||!Mpe(s)&&V)return Bi(A);if(A.length===0)return"";let ie=eb(s.right),te=A.findIndex(xt=>typeof xt!="string"&&!Array.isArray(xt)&&xt.type===rI),X=A.slice(0,te===-1?1:te+1),Re=A.slice(X.length,ie?-1:void 0),Je=Symbol("logicalChain-"+ ++Qen),pt=Bi([...X,da(Re)],{id:Je});if(!ie)return pt;let $e=Zf(0,A,-1);return Bi([pt,Lpe($e,{groupId:Je})])}function iXe(e,r,i,s,l){let{node:d}=e;if(!B5(d))return[Bi(i())];let h=[];xXe(d.operator,d.left.operator)?h=e.call(()=>iXe(e,r,i,!0,l),"left"):h.push(Bi(i("left")));let S=Mpe(d),b=d.right.type==="ChainExpression"?d.right.expression:d.right,A=(d.operator==="|>"||d.type==="NGPipeExpression"||Zen(e,r))&&!j6(r.originalText,b),L=!Os(b,Fc.Leading,eMt)&&j6(r.originalText,b),V=d.type==="NGPipeExpression"?"|":d.operator,j=d.type==="NGPipeExpression"&&d.arguments.length>0?Bi(da([Qo,": ",ud([Bs,": "],e.map(()=>U6(2,Bi(i())),"arguments"))])):"",ie;if(S)ie=[V,j6(r.originalText,b)?da([Bs,i("right"),j]):[" ",i("right"),j]];else{let Re=V==="|>"&&e.root.extra?.__isUsingHackPipeline?e.call(()=>iXe(e,r,i,!0,l),"right"):i("right");if(r.experimentalOperatorPosition==="start"){let Je="";if(L)switch(cB(Re)){case $5:Je=Re.splice(0,1)[0];break;case z5:Je=Re.contents.splice(0,1)[0];break}ie=[Bs,Je,V," ",Re,j]}else ie=[A?Bs:"",V,A?" ":Bs,Re,j]}let{parent:te}=e,X=Os(d.left,Fc.Trailing|Fc.Line);if((X||!(l&&d.type==="LogicalExpression")&&te.type!==d.type&&d.left.type!==d.type&&d.right.type!==d.type)&&(ie=Bi(ie,{shouldBreak:X})),r.experimentalOperatorPosition==="start"?h.push(S||L?" ":"",ie):h.push(A?"":" ",ie),s&&Os(d)){let Re=PXe(tI(e,h,r));return Re.type===aB?Re.parts:Array.isArray(Re)?Re:[Re]}return h}function Mpe(e){return e.type!=="LogicalExpression"?!1:!!(B6(e.right)&&e.right.properties.length>0||ax(e.right)&&e.right.elements.length>0||eb(e.right))}var mLt=e=>e.type==="BinaryExpression"&&e.operator==="|";function Zen(e,r){return(r.parser==="__vue_expression"||r.parser==="__vue_ts_expression")&&mLt(e.node)&&!e.hasAncestor(i=>!mLt(i)&&i.type!=="JsExpressionRoot")}function Xen(e){if(e.key!=="arguments")return!1;let{parent:r}=e;if(!(Sf(r)&&!r.optional&&r.arguments.length===1))return!1;let{callee:i}=r;return i.type==="Identifier"&&i.name==="Boolean"}function FMt(e,r,i){let{node:s}=e,{parent:l}=e,d=l.type!=="TypeParameterInstantiation"&&(!iB(l)||!r.experimentalTernaries)&&l.type!=="TSTypeParameterInstantiation"&&l.type!=="GenericTypeAnnotation"&&l.type!=="TSTypeReference"&&l.type!=="TSTypeAssertion"&&l.type!=="TupleTypeAnnotation"&&l.type!=="TSTupleType"&&!(l.type==="FunctionTypeParam"&&!l.name&&e.grandparent.this!==l)&&!((ZZe(l)||l.type==="VariableDeclarator")&&j6(r.originalText,s))&&!(ZZe(l)&&Os(l.id,Fc.Trailing|Fc.Line)),h=RMt(s),S=e.map(()=>{let ie=i();return h||(ie=U6(2,ie)),tI(e,ie,r)},"types"),b="",A="";if(XLt(e)&&({leading:b,trailing:A}=ZCe(e,r)),h)return[b,ud(" | ",S),A];let L=d&&!j6(r.originalText,s),V=[op([L?Bs:"","| "]),ud([Bs,"| "],S)];if(lB(e,r))return[b,Bi([da(V),Qo]),A];let j=[b,Bi(V)];return(l.type==="TupleTypeAnnotation"||l.type==="TSTupleType")&&l[l.type==="TupleTypeAnnotation"&&l.types?"types":"elementTypes"].length>1?[Bi([da([op(["(",Qo]),j]),Qo,op(")")]),A]:[Bi(d?da(j):j),A]}var Yen=Tp(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),etn=Tp(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function RMt(e){let{types:r}=e;if(r.some(s=>Os(s)))return!1;let i=r.find(s=>etn(s));return i?r.every(s=>s===i||Yen(s)):!1}function ttn(e){return SXe(e)||nB(e)?!0:f8(e)?RMt(e):!1}var rtn=new WeakSet;function ox(e,r,i="typeAnnotation"){let{node:{[i]:s}}=e;if(!s)return"";let l=!1;if(s.type==="TSTypeAnnotation"||s.type==="TypeAnnotation"){let d=e.call(LMt,i);(d==="=>"||d===":"&&Os(s,Fc.Leading))&&(l=!0),rtn.add(s)}return l?[" ",r(i)]:r(i)}var LMt=e=>e.match(r=>r.type==="TSTypeAnnotation",(r,i)=>(i==="returnType"||i==="typeAnnotation")&&(r.type==="TSFunctionType"||r.type==="TSConstructorType"))?"=>":e.match(r=>r.type==="TSTypeAnnotation",(r,i)=>i==="typeAnnotation"&&(r.type==="TSJSDocNullableType"||r.type==="TSJSDocNonNullableType"||r.type==="TSTypePredicate"))||e.match(r=>r.type==="TypeAnnotation",(r,i)=>i==="typeAnnotation"&&r.type==="Identifier",(r,i)=>i==="id"&&r.type==="DeclareFunction")||e.match(r=>r.type==="TypeAnnotation",(r,i)=>i==="typeAnnotation"&&r.type==="Identifier",(r,i)=>i==="id"&&r.type==="DeclareHook")||e.match(r=>r.type==="TypeAnnotation",(r,i)=>i==="bound"&&r.type==="TypeParameter"&&r.usesExtendsBound)?"":":";function MMt(e,r,i){let s=LMt(e);return s?[s," ",i("typeAnnotation")]:i("typeAnnotation")}function ntn(e,r,i,s){let{node:l}=e,d=l.inexact?"...":"";return Os(l,Fc.Dangling)?Bi([i,d,Cg(e,r,{indent:!0}),Qo,s]):[i,d,s]}function FXe(e,r,i){let{node:s}=e,l=[],d="[",h="]",S=s.type==="TupleTypeAnnotation"&&s.types?"types":s.type==="TSTupleType"||s.type==="TupleTypeAnnotation"?"elementTypes":"elements",b=s[S];if(b.length===0)l.push(ntn(e,r,d,h));else{let A=Zf(0,b,-1),L=A?.type!=="RestElement"&&!s.inexact,V=A===null,j=Symbol("array"),ie=!r.__inJestEach&&b.length>1&&b.every((Re,Je,pt)=>{let $e=Re?.type;if(!ax(Re)&&!B6(Re))return!1;let xt=pt[Je+1];if(xt&&$e!==xt.type)return!1;let tr=ax(Re)?"elements":"properties";return Re[tr]&&Re[tr].length>1}),te=jMt(s,r),X=L?V?",":g8(r)?te?op(",","",{groupId:j}):op(","):"":"";l.push(Bi([d,da([Qo,te?otn(e,r,i,X):[itn(e,r,i,S,s.inexact),X],Cg(e,r)]),Qo,h],{shouldBreak:ie,id:j}))}return l.push(U2(e),ox(e,i)),l}function jMt(e,r){return ax(e)&&e.elements.length>0&&e.elements.every(i=>i&&(d8(i)||qLt(i)&&!Os(i.argument))&&!Os(i,Fc.Trailing|Fc.Line,s=>!gk(r.originalText,B_(s),{backwards:!0})))}function BMt({node:e},{originalText:r}){let i=T_(e);if(i===B_(e))return!1;let{length:s}=r;for(;i{d.push(h?Bi(i()):""),(!S||l)&&d.push([",",Bs,h&&BMt(e,r)?Qo:""])},s),l&&d.push("..."),d}function otn(e,r,i,s){let l=[];return e.each(({isLast:d,next:h})=>{l.push([i(),d?s:","]),d||l.push(BMt(e,r)?[Ia,Ia]:Os(h,Fc.Leading|Fc.Line)?Ia:Bs)},"elements"),hMt(l)}function atn(e,r,i){let{node:s}=e,l=AD(s);if(l.length===0)return["(",Cg(e,r),")"];let d=l.length-1;if(ltn(l)){let V=["("];return qCe(e,(j,ie)=>{V.push(i()),ie!==d&&V.push(", ")}),V.push(")"),V}let h=!1,S=[];qCe(e,({node:V},j)=>{let ie=i();j===d||(y8(V,r)?(h=!0,ie=[ie,",",Ia,Ia]):ie=[ie,",",Bs]),S.push(ie)});let b=!r.parser.startsWith("__ng_")&&s.type!=="ImportExpression"&&s.type!=="TSImportType"&&s.type!=="TSExternalModuleReference"&&g8(r,"all")?",":"";function A(){return Bi(["(",da([Bs,...S]),b,Bs,")"],{shouldBreak:!0})}if(h||e.parent.type!=="Decorator"&&iXr(l))return A();if(ctn(l)){let V=S.slice(1);if(V.some($2))return A();let j;try{j=i(aLt(s,0),{expandFirstArg:!0})}catch(ie){if(ie instanceof VCe)return A();throw ie}return $2(j)?[U5,lV([["(",Bi(j,{shouldBreak:!0}),", ",...V,")"],A()])]:lV([["(",j,", ",...V,")"],["(",Bi(j,{shouldBreak:!0}),", ",...V,")"],A()])}if(stn(l,S,r)){let V=S.slice(0,-1);if(V.some($2))return A();let j;try{j=i(aLt(s,-1),{expandLastArg:!0})}catch(ie){if(ie instanceof VCe)return A();throw ie}return $2(j)?[U5,lV([["(",...V,Bi(j,{shouldBreak:!0}),")"],A()])]:lV([["(",...V,j,")"],["(",...V,Bi(j,{shouldBreak:!0}),")"],A()])}let L=["(",da([Qo,...S]),op(b),Qo,")"];return QLt(e)?L:Bi(L,{shouldBreak:S.some($2)||h})}function Npe(e,r=!1){return B6(e)&&(e.properties.length>0||Os(e))||ax(e)&&(e.elements.length>0||Os(e))||e.type==="TSTypeAssertion"&&Npe(e.expression)||M6(e)&&Npe(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||utn(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&Npe(e.body,!0)||B6(e.body)||ax(e.body)||!r&&(Sf(e.body)||e.body.type==="ConditionalExpression")||eb(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function stn(e,r,i){let s=Zf(0,e,-1);if(e.length===1){let d=Zf(0,r,-1);if(d.label?.embed&&d.label?.hug!==!1)return!0}let l=Zf(0,e,-2);return!Os(s,Fc.Leading)&&!Os(s,Fc.Trailing)&&Npe(s)&&(!l||l.type!==s.type)&&(e.length!==2||l.type!=="ArrowFunctionExpression"||!ax(s))&&!(e.length>1&&jMt(s,i))}function ctn(e){if(e.length!==2)return!1;let[r,i]=e;return r.type==="ModuleExpression"&&ptn(i)?!0:!Os(r)&&(r.type==="FunctionExpression"||r.type==="ArrowFunctionExpression"&&r.body.type==="BlockStatement")&&i.type!=="FunctionExpression"&&i.type!=="ArrowFunctionExpression"&&i.type!=="ConditionalExpression"&&$Mt(i)&&!Npe(i)}function $Mt(e){if(e.type==="ParenthesizedExpression")return $Mt(e.expression);if(M6(e)||e.type==="TypeCastExpression"){let{typeAnnotation:r}=e;if(r.type==="TypeAnnotation"&&(r=r.typeAnnotation),r.type==="TSArrayType"&&(r=r.elementType,r.type==="TSArrayType"&&(r=r.elementType)),r.type==="GenericTypeAnnotation"||r.type==="TSTypeReference"){let i=r.type==="GenericTypeAnnotation"?r.typeParameters:r.typeArguments;i?.params.length===1&&(r=i.params[0])}return SXe(r)&&L6(e.expression,1)}return UY(e)&&AD(e).length>1?!1:B5(e)?L6(e.left,1)&&L6(e.right,1):JLt(e)||L6(e)}function ltn(e){return e.length===2?hLt(e,0):e.length===3?e[0].type==="Identifier"&&hLt(e,1):!1}function hLt(e,r){let i=e[r],s=e[r+1];return i.type==="ArrowFunctionExpression"&&xT(i).length===0&&i.body.type==="BlockStatement"&&s.type==="ArrayExpression"&&!e.some(l=>Os(l))}function utn(e){return e.type==="BlockStatement"&&(e.body.some(r=>r.type!=="EmptyStatement")||Os(e,Fc.Dangling))}function ptn(e){if(!(e.type==="ObjectExpression"&&e.properties.length===1))return!1;let[r]=e.properties;return oB(r)?!r.computed&&(r.key.type==="Identifier"&&r.key.name==="type"||tb(r.key)&&r.key.value==="type")&&tb(r.value)&&r.value.value==="module":!1}var oXe=atn;function _tn(e,r,i){return[i("object"),Bi(da([Qo,UMt(e,r,i)]))]}function UMt(e,r,i){return["::",i("callee")]}var dtn=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),Sf(e)&&AD(e).length>0);function ftn(e){let{node:r,ancestors:i}=e;for(let s of i){if(!(Dg(s)&&s.object===r||s.type==="TSNonNullExpression"&&s.expression===r))return s.type==="NewExpression"&&s.callee===r;r=s}return!1}function mtn(e,r,i){let s=i("object"),l=zMt(e,r,i),{node:d}=e,h=e.findAncestor(A=>!(Dg(A)||A.type==="TSNonNullExpression")),S=e.findAncestor(A=>!(A.type==="ChainExpression"||A.type==="TSNonNullExpression")),b=h.type==="BindExpression"||h.type==="AssignmentExpression"&&h.left.type!=="Identifier"||ftn(e)||d.computed||d.object.type==="Identifier"&&d.property.type==="Identifier"&&!Dg(S)||(S.type==="AssignmentExpression"||S.type==="VariableDeclarator")&&(dtn(d.object)||s.label?.memberChain);return zpe(s.label,[s,b?l:Bi(da([Qo,l]))])}function zMt(e,r,i){let s=i("property"),{node:l}=e,d=U2(e);return l.computed?!l.property||d8(l.property)?[d,"[",s,"]"]:Bi([d,"[",da([Qo,s]),Qo,"]"]):[d,".",s]}function qMt(e,r,i){if(e.node.type==="ChainExpression")return e.call(()=>qMt(e,r,i),"expression");let s=(e.parent.type==="ChainExpression"?e.grandparent:e.parent).type==="ExpressionStatement",l=[];function d(Lo){let{originalText:yr}=r,co=qY(yr,T_(Lo));return yr.charAt(co)===")"?co!==!1&&mXe(yr,co+1):y8(Lo,r)}function h(){let{node:Lo}=e;if(Lo.type==="ChainExpression")return e.call(h,"expression");if(Sf(Lo)&&(RY(Lo.callee)||Sf(Lo.callee))){let yr=d(Lo);l.unshift({node:Lo,hasTrailingEmptyLine:yr,printed:[tI(e,[U2(e),i("typeArguments"),oXe(e,r,i)],r),yr?Ia:""]}),e.call(h,"callee")}else RY(Lo)?(l.unshift({node:Lo,needsParens:lB(e,r),printed:tI(e,Dg(Lo)?zMt(e,r,i):UMt(e,r,i),r)}),e.call(h,"object")):Lo.type==="TSNonNullExpression"?(l.unshift({node:Lo,printed:tI(e,"!",r)}),e.call(h,"expression")):l.unshift({node:Lo,printed:i()})}let{node:S}=e;l.unshift({node:S,printed:[U2(e),i("typeArguments"),oXe(e,r,i)]}),S.callee&&e.call(h,"callee");let b=[],A=[l[0]],L=1;for(;L0&&b.push(A);function j(Lo){return/^[A-Z]|^[$_]+$/u.test(Lo)}function ie(Lo){return Lo.length<=r.tabWidth}function te(Lo){let yr=Lo[1][0]?.node.computed;if(Lo[0].length===1){let Cs=Lo[0][0].node;return Cs.type==="ThisExpression"||Cs.type==="Identifier"&&(j(Cs.name)||s&&ie(Cs.name)||yr)}let co=Zf(0,Lo[0],-1).node;return Dg(co)&&co.property.type==="Identifier"&&(j(co.property.name)||yr)}let X=b.length>=2&&!Os(b[1][0].node)&&te(b);function Re(Lo){let yr=Lo.map(co=>co.printed);return Lo.length>0&&Zf(0,Lo,-1).needsParens?["(",...yr,")"]:yr}function Je(Lo){return Lo.length===0?"":da([Ia,ud(Ia,Lo.map(Re))])}let pt=b.map(Re),$e=pt,xt=X?3:2,tr=b.flat(),ht=tr.slice(1,-1).some(Lo=>Os(Lo.node,Fc.Leading))||tr.slice(0,-1).some(Lo=>Os(Lo.node,Fc.Trailing))||b[xt]&&Os(b[xt][0].node,Fc.Leading);if(b.length<=xt&&!ht&&!b.some(Lo=>Zf(0,Lo,-1).hasTrailingEmptyLine))return QLt(e)?$e:Bi($e);let wt=Zf(0,b[X?1:0],-1).node,Ut=!Sf(wt)&&d(wt),hr=[Re(b[0]),X?b.slice(1,2).map(Re):"",Ut?Ia:"",Je(b.slice(X?2:1))],Hi=l.map(({node:Lo})=>Lo).filter(Sf);function un(){let Lo=Zf(0,Zf(0,b,-1),-1).node,yr=Zf(0,pt,-1);return Sf(Lo)&&$2(yr)&&Hi.slice(0,-1).some(co=>co.arguments.some(Fpe))}let xo;return ht||Hi.length>2&&Hi.some(Lo=>!Lo.arguments.every(yr=>L6(yr)))||pt.slice(0,-1).some($2)||un()?xo=Bi(hr):xo=[$2($e)||Ut?U5:"",lV([$e,hr])],zpe({memberChain:!0},xo)}var htn=qMt;function WCe(e,r,i){let{node:s}=e,l=s.type==="NewExpression",d=U2(e),h=AD(s),S=s.type!=="TSImportType"&&s.typeArguments?i("typeArguments"):"",b=h.length===1&&HLt(h[0],r.originalText);if(b||ytn(e)||vtn(e)||KCe(s,e.parent)){let V=[];if(qCe(e,()=>{V.push(i())}),!(b&&V[0].label?.embed))return[l?"new ":"",gLt(e,i),d,S,"(",ud(", ",V),")"]}let A=s.type==="ImportExpression"||s.type==="TSImportType"||s.type==="TSExternalModuleReference";if(!A&&!l&&RY(s.callee)&&!e.call(()=>lB(e,r),"callee",...s.callee.type==="ChainExpression"?["expression"]:[]))return htn(e,r,i);let L=[l?"new ":"",gLt(e,i),d,S,oXe(e,r,i)];return A||Sf(s.callee)?Bi(L):L}function gLt(e,r){let{node:i}=e;return i.type==="ImportExpression"?`import${i.phase?`.${i.phase}`:""}`:i.type==="TSImportType"?"import":i.type==="TSExternalModuleReference"?"require":r("callee")}var gtn=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function ytn(e){let{node:r}=e;if(!(r.type==="ImportExpression"||r.type==="TSImportType"||r.type==="TSExternalModuleReference"||r.type==="CallExpression"&&!r.optional&&hXe(r.callee,gtn)))return!1;let i=AD(r);return i.length===1&&tb(i[0])&&!Os(i[0])}function vtn(e){let{node:r}=e;if(r.type!=="CallExpression"||r.optional||r.callee.type!=="Identifier")return!1;let i=AD(r);return r.callee.name==="require"?(i.length===1&&tb(i[0])||i.length>1)&&!Os(i[0]):r.callee.name==="define"&&e.parent.type==="ExpressionStatement"?i.length===1||i.length===2&&i[0].type==="ArrayExpression"||i.length===3&&tb(i[0])&&i[1].type==="ArrayExpression":!1}function qpe(e,r,i,s,l,d){let h=xtn(e,r,i,s,d),S=d?i(d,{assignmentLayout:h}):"";switch(h){case"break-after-operator":return Bi([Bi(s),l,Bi(da([Bs,S]))]);case"never-break-after-operator":return Bi([Bi(s),l," ",S]);case"fluid":{let b=Symbol("assignment");return Bi([Bi(s),l,Bi(da(Bs),{id:b}),h8,Lpe(S,{groupId:b})])}case"break-lhs":return Bi([s,l," ",Bi(S)]);case"chain":return[Bi(s),l,Bs,S];case"chain-tail":return[Bi(s),l,da([Bs,S])];case"chain-tail-arrow-chain":return[Bi(s),l,S];case"only-left":return s}}function Stn(e,r,i){let{node:s}=e;return qpe(e,r,i,i("left"),[" ",s.operator],"right")}function btn(e,r,i){return qpe(e,r,i,i("id")," =","init")}function xtn(e,r,i,s,l){let{node:d}=e,h=d[l];if(!h)return"only-left";let S=!BCe(h);if(e.match(BCe,JMt,L=>!S||L.type!=="ExpressionStatement"&&L.type!=="VariableDeclaration"))return S?h.type==="ArrowFunctionExpression"&&h.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!S&&BCe(h.right)||j6(r.originalText,h))return"break-after-operator";if(d.type==="ImportAttribute"||h.type==="CallExpression"&&h.callee.name==="require"||r.parser==="json5"||r.parser==="jsonc"||r.parser==="json")return"never-break-after-operator";let b=mYr(s);if(Etn(d)||Dtn(d)||VMt(d)&&b)return"break-lhs";let A=Atn(d,s,r);return e.call(()=>Ttn(e,r,i,A),l)?"break-after-operator":ktn(d)?"break-lhs":!b&&(A||h.type==="TemplateLiteral"||h.type==="TaggedTemplateExpression"||KZr(h)||d8(h)||h.type==="ClassExpression")?"never-break-after-operator":"fluid"}function Ttn(e,r,i,s){let l=e.node;if(B5(l)&&!Mpe(l))return!0;switch(l.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!r.experimentalTernaries&&!Ptn(l))break;return!0;case"ConditionalExpression":{if(!r.experimentalTernaries){let{test:A}=l;return B5(A)&&!Mpe(A)}let{consequent:S,alternate:b}=l;return S.type==="ConditionalExpression"||b.type==="ConditionalExpression"}case"ClassExpression":return Ag(l.decorators)}if(s)return!1;let d=l,h=[];for(;;)if(d.type==="UnaryExpression"||d.type==="AwaitExpression"||d.type==="YieldExpression"&&d.argument!==null)d=d.argument,h.push("argument");else if(d.type==="TSNonNullExpression")d=d.expression,h.push("expression");else break;return!!(tb(d)||e.call(()=>WMt(e,r,i),...h))}function Etn(e){if(JMt(e)){let r=e.left||e.id;return r.type==="ObjectPattern"&&r.properties.length>2&&r.properties.some(i=>oB(i)&&(!i.shorthand||i.value?.type==="AssignmentPattern"))}return!1}function BCe(e){return e.type==="AssignmentExpression"}function JMt(e){return BCe(e)||e.type==="VariableDeclarator"}function ktn(e){let r=Ctn(e);if(Ag(r)){let i=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(r.length>1&&r.some(s=>s[i]||s.default))return!0}return!1}function Ctn(e){if(ZZe(e))return e.typeParameters?.params}function Dtn(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:r}=e.id;if(!r||!r.typeAnnotation)return!1;let i=yLt(r.typeAnnotation);return Ag(i)&&i.length>1&&i.some(s=>Ag(yLt(s))||s.type==="TSConditionalType")}function VMt(e){return e.type==="VariableDeclarator"&&e.init?.type==="ArrowFunctionExpression"}function yLt(e){let r;switch(e.type){case"GenericTypeAnnotation":r=e.typeParameters;break;case"TSTypeReference":r=e.typeArguments;break}return r?.params}function WMt(e,r,i,s=!1){let{node:l}=e,d=()=>WMt(e,r,i,!0);if(l.type==="ChainExpression"||l.type==="TSNonNullExpression")return e.call(d,"expression");if(Sf(l)){if(WCe(e,r,i).label?.memberChain)return!1;let h=AD(l);return!(h.length===0||h.length===1&&bXe(h[0],r))||wtn(l,i)?!1:e.call(d,"callee")}return Dg(l)?e.call(d,"object"):s&&(l.type==="Identifier"||l.type==="ThisExpression")}function Atn(e,r,i){return oB(e)?(r=PXe(r),typeof r=="string"&&LY(r)1)return!0;if(i.length===1){let l=i[0];if(f8(l)||Upe(l)||l.type==="TSTypeLiteral"||l.type==="ObjectTypeAnnotation")return!0}let s=e.typeParameters?"typeParameters":"typeArguments";if($2(r(s)))return!0}return!1}function Itn(e){return(e.typeParameters??e.typeArguments)?.params}function vLt(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!e.typeArguments;default:return!1}}function Ptn(e){return vLt(e.checkType)||vLt(e.extendsType)}var $Ce=new WeakMap;function GMt(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function SLt(e,r){return r.parser==="json"||r.parser==="jsonc"||!tb(e.key)||BY(yk(e.key),r).slice(1,-1)!==e.key.value?!1:!!(Hen(e.key.value)&&!(r.parser==="babel-ts"&&e.type==="ClassProperty"||(r.parser==="typescript"||r.parser==="oxc-ts")&&e.type==="PropertyDefinition")||GMt(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!=="ImportAttribute"&&(r.parser==="babel"||r.parser==="acorn"||r.parser==="oxc"||r.parser==="espree"||r.parser==="meriyah"||r.parser==="__babel_estree"))}function Ntn(e,r){let{key:i}=e.node;return(i.type==="Identifier"||d8(i)&&GMt(zY(yk(i)))&&String(i.value)===zY(yk(i))&&!(r.parser==="typescript"||r.parser==="babel-ts"||r.parser==="oxc-ts"))&&(r.parser==="json"||r.parser==="jsonc"||r.quoteProps==="consistent"&&$Ce.get(e.parent))}function Jpe(e,r,i){let{node:s}=e;if(s.computed)return["[",i("key"),"]"];let{parent:l}=e,{key:d}=s;if(r.quoteProps==="consistent"&&!$Ce.has(l)){let h=e.siblings.some(S=>!S.computed&&tb(S.key)&&!SLt(S,r));$Ce.set(l,h)}if(Ntn(e,r)){let h=BY(JSON.stringify(d.type==="Identifier"?d.name:d.value.toString()),r);return e.call(()=>tI(e,h,r),"key")}return SLt(s,r)&&(r.quoteProps==="as-needed"||r.quoteProps==="consistent"&&!$Ce.get(l))?e.call(()=>tI(e,/^\d/u.test(d.value)?zY(d.value):d.value,r),"key"):i("key")}function qZe(e,r,i){let{node:s}=e;return s.shorthand?i("value"):qpe(e,r,i,Jpe(e,r,i),":","value")}var Otn=({node:e,key:r,parent:i})=>r==="value"&&e.type==="FunctionExpression"&&(i.type==="ObjectMethod"||i.type==="ClassMethod"||i.type==="ClassPrivateMethod"||i.type==="MethodDefinition"||i.type==="TSAbstractMethodDefinition"||i.type==="TSDeclareMethod"||i.type==="Property"&&$pe(i));function HMt(e,r,i,s){if(Otn(e))return RXe(e,r,i);let{node:l}=e,d=!1;if((l.type==="FunctionDeclaration"||l.type==="FunctionExpression")&&s?.expandLastArg){let{parent:L}=e;Sf(L)&&(AD(L).length>1||xT(l).every(V=>V.type==="Identifier"&&!V.typeAnnotation))&&(d=!0)}let h=[DD(e),l.async?"async ":"",`function${l.generator?"*":""} `,l.id?i("id"):""],S=SV(e,r,i,d),b=eDe(e,i),A=WY(l,b);return h.push(i("typeParameters"),Bi([A?Bi(S):S,b]),l.body?" ":"",i("body")),r.semi&&(l.declare||!l.body)&&h.push(";"),h}function aXe(e,r,i){let{node:s}=e,{kind:l}=s,d=s.value||s,h=[];return!l||l==="init"||l==="method"||l==="constructor"?d.async&&h.push("async "):(_V(l==="get"||l==="set"),h.push(l," ")),d.generator&&h.push("*"),h.push(Jpe(e,r,i),s.optional?"?":"",s===d?RXe(e,r,i):i("value")),h}function RXe(e,r,i){let{node:s}=e,l=SV(e,r,i),d=eDe(e,i),h=qen(s),S=WY(s,d),b=[i("typeParameters"),Bi([h?Bi(l,{shouldBreak:!0}):S?Bi(l):l,d])];return s.body?b.push(" ",i("body")):b.push(r.semi?";":""),b}function Ftn(e){let r=xT(e);return r.length===1&&!e.typeParameters&&!Os(e,Fc.Dangling)&&r[0].type==="Identifier"&&!r[0].typeAnnotation&&!Os(r[0])&&!r[0].optional&&!e.predicate&&!e.returnType}function KMt(e,r){if(r.arrowParens==="always")return!1;if(r.arrowParens==="avoid"){let{node:i}=e;return Ftn(i)}return!1}function eDe(e,r){let{node:i}=e,s=[ox(e,r,"returnType")];return i.predicate&&s.push(r("predicate")),s}function QMt(e,r,i){let{node:s}=e,l=[];if(s.argument){let S=i("argument");Mtn(r,s.argument)?S=["(",da([Ia,S]),Ia,")"]:(B5(s.argument)||r.experimentalTernaries&&s.argument.type==="ConditionalExpression"&&(s.argument.consequent.type==="ConditionalExpression"||s.argument.alternate.type==="ConditionalExpression"))&&(S=Bi([op("("),da([Qo,S]),Qo,op(")")])),l.push(" ",S)}let d=Os(s,Fc.Dangling),h=r.semi&&d&&Os(s,Fc.Last|Fc.Line);return h&&l.push(";"),d&&l.push(" ",Cg(e,r)),!h&&r.semi&&l.push(";"),l}function Rtn(e,r,i){return["return",QMt(e,r,i)]}function Ltn(e,r,i){return["throw",QMt(e,r,i)]}function Mtn(e,r){if(j6(e.originalText,r)||Os(r,Fc.Leading,i=>CD(e.originalText,B_(i),T_(i)))&&!eb(r))return!0;if(yXe(r)){let i=r,s;for(;s=WZr(i);)if(i=s,j6(e.originalText,i))return!0}return!1}function jtn(e,r){if(r.semi||XMt(e,r)||ejt(e,r)||YMt(e,r))return!1;let{node:i,key:s,parent:l}=e;return!!(i.type==="ExpressionStatement"&&(s==="body"&&(l.type==="Program"||l.type==="BlockStatement"||l.type==="StaticBlock"||l.type==="TSModuleBlock")||s==="consequent"&&l.type==="SwitchCase")&&e.call(()=>ZMt(e,r),"expression"))}function ZMt(e,r){let{node:i}=e;switch(i.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!KMt(e,r))return!0;break;case"UnaryExpression":{let{prefix:s,operator:l}=i;if(s&&(l==="+"||l==="-"))return!0;break}case"BindExpression":if(!i.object)return!0;break;case"Literal":if(i.regex)return!0;break;default:if(eb(i))return!0}return lB(e,r)?!0:yXe(i)?e.call(()=>ZMt(e,r),...zLt(i)):!1}var LXe=({node:e,parent:r})=>e.type==="ExpressionStatement"&&r.type==="Program"&&r.body.length===1&&(Array.isArray(r.directives)&&r.directives.length===0||!r.directives);function XMt(e,r){return(r.parentParser==="markdown"||r.parentParser==="mdx")&&LXe(e)&&eb(e.node.expression)}function YMt(e,r){return r.__isHtmlInlineEventHandler&&LXe(e)}function ejt(e,r){return(r.parser==="__vue_event_binding"||r.parser==="__vue_ts_event_binding")&&LXe(e)}var Btn=class extends Error{name="UnexpectedNodeError";constructor(e,r,i="type"){super(`Unexpected ${r} node ${i}: ${JSON.stringify(e[i])}.`),this.node=e}},GY=Btn;function $tn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Utn=class{#t;constructor(e){this.#t=new Set(e)}getLeadingWhitespaceCount(e){let r=this.#t,i=0;for(let s=0;s=0&&r.has(e.charAt(s));s--)i++;return i}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return this.#t.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#t.has(Zf(0,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let i=`[${$tn([...this.#t].join(""))}]+`,s=new RegExp(r?`(${i})`:i,"u");return e.split(s)}hasWhitespaceCharacter(e){let r=this.#t;return Array.prototype.some.call(e,i=>r.has(i))}hasNonWhitespaceCharacter(e){let r=this.#t;return Array.prototype.some.call(e,i=>!r.has(i))}isWhitespaceOnly(e){let r=this.#t;return Array.prototype.every.call(e,i=>r.has(i))}#r(e){let r=Number.POSITIVE_INFINITY;for(let i of e.split(` +`)){if(i.length===0)continue;let s=this.getLeadingWhitespaceCount(i);if(s===0)return 0;i.length!==s&&si.slice(r)).join(` +`)}},ztn=Utn,UCe=new ztn(` +\r `),JZe=e=>e===""||e===Bs||e===Ia||e===Qo;function qtn(e,r,i){let{node:s}=e;if(s.type==="JSXElement"&&orn(s))return[i("openingElement"),i("closingElement")];let l=s.type==="JSXElement"?i("openingElement"):i("openingFragment"),d=s.type==="JSXElement"?i("closingElement"):i("closingFragment");if(s.children.length===1&&s.children[0].type==="JSXExpressionContainer"&&(s.children[0].expression.type==="TemplateLiteral"||s.children[0].expression.type==="TaggedTemplateExpression"))return[l,...e.map(i,"children"),d];s.children=s.children.map($e=>arn($e)?{type:"JSXText",value:" ",raw:" "}:$e);let h=s.children.some(eb),S=s.children.filter($e=>$e.type==="JSXExpressionContainer").length>1,b=s.type==="JSXElement"&&s.openingElement.attributes.length>1,A=$2(l)||h||b||S,L=e.parent.rootMarker==="mdx",V=r.singleQuote?"{' '}":'{" "}',j=L?Bs:op([V,Qo]," "),ie=s.openingElement?.name?.name==="fbt",te=Jtn(e,r,i,j,ie),X=s.children.some($e=>jpe($e));for(let $e=te.length-2;$e>=0;$e--){let xt=te[$e]===""&&te[$e+1]==="",tr=te[$e]===Ia&&te[$e+1]===""&&te[$e+2]===Ia,ht=(te[$e]===Qo||te[$e]===Ia)&&te[$e+1]===""&&te[$e+2]===j,wt=te[$e]===j&&te[$e+1]===""&&(te[$e+2]===Qo||te[$e+2]===Ia),Ut=te[$e]===j&&te[$e+1]===""&&te[$e+2]===j,hr=te[$e]===Qo&&te[$e+1]===""&&te[$e+2]===Ia||te[$e]===Ia&&te[$e+1]===""&&te[$e+2]===Qo;tr&&X||xt||ht||Ut||hr?te.splice($e,2):wt&&te.splice($e+1,2)}for(;te.length>0&&JZe(Zf(0,te,-1));)te.pop();for(;te.length>1&&JZe(te[0])&&JZe(te[1]);)te.shift(),te.shift();let Re=[""];for(let[$e,xt]of te.entries()){if(xt===j){if($e===1&&hYr(te[$e-1])){if(te.length===2){Re.push([Re.pop(),V]);continue}Re.push([V,Ia],"");continue}else if($e===te.length-1){Re.push([Re.pop(),V]);continue}else if(te[$e-1]===""&&te[$e-2]===Ia){Re.push([Re.pop(),V]);continue}}$e%2===0?Re.push([Re.pop(),xt]):Re.push(xt,""),$2(xt)&&(A=!0)}let Je=X?hMt(Re):Bi(Re,{shouldBreak:!0});if(r.cursorNode?.type==="JSXText"&&s.children.includes(r.cursorNode)?Je=[LCe,Je,LCe]:r.nodeBeforeCursor?.type==="JSXText"&&s.children.includes(r.nodeBeforeCursor)?Je=[LCe,Je]:r.nodeAfterCursor?.type==="JSXText"&&s.children.includes(r.nodeAfterCursor)&&(Je=[Je,LCe]),L)return Je;let pt=Bi([l,da([Ia,Je]),Ia,d]);return A?pt:lV([Bi([l,...te,d]),pt])}function Jtn(e,r,i,s,l){let d="",h=[d];function S(A){d=A,h.push([h.pop(),A])}function b(A){A!==""&&(d=A,h.push(A,""))}return e.each(({node:A,next:L})=>{if(A.type==="JSXText"){let V=yk(A);if(jpe(A)){let j=UCe.split(V,!0);j[0]===""&&(j.shift(),/\n/u.test(j[0])?b(xLt(l,j[1],A,L)):b(s),j.shift());let ie;if(Zf(0,j,-1)===""&&(j.pop(),ie=j.pop()),j.length===0)return;for(let[te,X]of j.entries())te%2===1?b(Bs):S(X);ie!==void 0?/\n/u.test(ie)?b(xLt(l,d,A,L)):b(s):b(bLt(l,d,A,L))}else/\n/u.test(V)?V.match(/\n/gu).length>1&&b(Ia):b(s)}else{let V=i();if(S(V),L&&jpe(L)){let j=UCe.trim(yk(L)),[ie]=UCe.split(j);b(bLt(l,ie,A,L))}else b(Ia)}},"children"),h}function bLt(e,r,i,s){return e?"":i.type==="JSXElement"&&!i.closingElement||s?.type==="JSXElement"&&!s.closingElement?r.length===1?Qo:Ia:Qo}function xLt(e,r,i,s){return e?Ia:r.length===1?i.type==="JSXElement"&&!i.closingElement||s?.type==="JSXElement"&&!s.closingElement?Ia:Qo:Ia}var Vtn=Tp(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function Wtn(e,r,i){let{parent:s}=e;if(Vtn(s))return r;let l=Gtn(e),d=lB(e,i);return Bi([d?"":op("("),da([Qo,r]),Qo,d?"":op(")")],{shouldBreak:l})}function Gtn(e){return e.match(void 0,(r,i)=>i==="body"&&r.type==="ArrowFunctionExpression",(r,i)=>i==="arguments"&&Sf(r))&&(e.match(void 0,void 0,void 0,(r,i)=>i==="expression"&&r.type==="JSXExpressionContainer")||e.match(void 0,void 0,void 0,(r,i)=>i==="expression"&&r.type==="ChainExpression",(r,i)=>i==="expression"&&r.type==="JSXExpressionContainer"))}function Htn(e,r,i){let{node:s}=e,l=[i("name")];if(s.value){let d;if(tb(s.value)){let h=yk(s.value),S=YS(0,YS(0,h.slice(1,-1),"'","'"),""",'"'),b=LLt(S,r.jsxSingleQuote);S=b==='"'?YS(0,S,'"',"""):YS(0,S,"'","'"),d=e.call(()=>tI(e,pV(b+S+b),r),"value")}else d=i("value");l.push("=",d)}return l}function Ktn(e,r,i){let{node:s}=e,l=(d,h)=>d.type==="JSXEmptyExpression"||!Os(d)&&(ax(d)||B6(d)||d.type==="ArrowFunctionExpression"||d.type==="AwaitExpression"&&(l(d.argument,d)||d.argument.type==="JSXElement")||Sf(d)||d.type==="ChainExpression"&&Sf(d.expression)||d.type==="FunctionExpression"||d.type==="TemplateLiteral"||d.type==="TaggedTemplateExpression"||d.type==="DoExpression"||eb(h)&&(d.type==="ConditionalExpression"||B5(d)));return l(s.expression,e.parent)?Bi(["{",i("expression"),h8,"}"]):Bi(["{",da([Qo,i("expression")]),Qo,h8,"}"])}function Qtn(e,r,i){let{node:s}=e,l=Os(s.name)||Os(s.typeArguments);if(s.selfClosing&&s.attributes.length===0&&!l)return["<",i("name"),i("typeArguments")," />"];if(s.attributes?.length===1&&tb(s.attributes[0].value)&&!s.attributes[0].value.value.includes(` +`)&&!l&&!Os(s.attributes[0]))return Bi(["<",i("name"),i("typeArguments")," ",...e.map(i,"attributes"),s.selfClosing?" />":">"]);let d=s.attributes?.some(S=>tb(S.value)&&S.value.value.includes(` +`)),h=r.singleAttributePerLine&&s.attributes.length>1?Ia:Bs;return Bi(["<",i("name"),i("typeArguments"),da(e.map(()=>[h,i()],"attributes")),...Ztn(s,r,l)],{shouldBreak:d})}function Ztn(e,r,i){return e.selfClosing?[Bs,"/>"]:Xtn(e,r,i)?[">"]:[Qo,">"]}function Xtn(e,r,i){let s=e.attributes.length>0&&Os(Zf(0,e.attributes,-1),Fc.Trailing);return e.attributes.length===0&&!i||(r.bracketSameLine||r.jsxBracketSameLine)&&(!i||e.attributes.length>0)&&!s}function Ytn(e,r,i){let{node:s}=e,l=[""),l}function ern(e,r){let{node:i}=e,s=Os(i),l=Os(i,Fc.Line),d=i.type==="JSXOpeningFragment";return[d?"<":""]}function trn(e,r,i){let s=tI(e,qtn(e,r,i),r);return Wtn(e,s,r)}function rrn(e,r){let{node:i}=e,s=Os(i,Fc.Line);return[Cg(e,r,{indent:s}),s?Ia:""]}function nrn(e,r,i){let{node:s}=e;return["{",e.call(({node:l})=>{let d=["...",i()];return Os(l)?[da([Qo,tI(e,d,r)]),Qo]:d},s.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function irn(e,r,i){let{node:s}=e;if(s.type.startsWith("JSX"))switch(s.type){case"JSXAttribute":return Htn(e,r,i);case"JSXIdentifier":return s.name;case"JSXNamespacedName":return ud(":",[i("namespace"),i("name")]);case"JSXMemberExpression":return ud(".",[i("object"),i("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return nrn(e,r,i);case"JSXExpressionContainer":return Ktn(e,r,i);case"JSXFragment":case"JSXElement":return trn(e,r,i);case"JSXOpeningElement":return Qtn(e,r,i);case"JSXClosingElement":return Ytn(e,r,i);case"JSXOpeningFragment":case"JSXClosingFragment":return ern(e,r);case"JSXEmptyExpression":return rrn(e,r);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new GY(s,"JSX")}}function orn(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let r=e.children[0];return r.type==="JSXText"&&!jpe(r)}function jpe(e){return e.type==="JSXText"&&(UCe.hasNonWhitespaceCharacter(yk(e))||!/\n/u.test(yk(e)))}function arn(e){return e.type==="JSXExpressionContainer"&&tb(e.expression)&&e.expression.value===" "&&!Os(e.expression)}function srn(e){let{node:r,parent:i}=e;if(!eb(r)||!eb(i))return!1;let{index:s,siblings:l}=e,d;for(let h=s;h>0;h--){let S=l[h-1];if(!(S.type==="JSXText"&&!jpe(S))){d=S;break}}return d?.type==="JSXExpressionContainer"&&d.expression.type==="JSXEmptyExpression"&&QCe(d.expression)}function crn(e){return QCe(e.node)||srn(e)}var MXe=crn;function lrn(e,r,i){let{node:s}=e;if(s.type.startsWith("NG"))switch(s.type){case"NGRoot":return i("node");case"NGPipeExpression":return OMt(e,r,i);case"NGChainedExpression":return Bi(ud([";",Bs],e.map(()=>_rn(e)?i():["(",i(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":TLt(e)?" ":[";",Bs],i()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(s.name)?s.name:JSON.stringify(s.name);case"NGMicrosyntaxExpression":return[i("expression"),s.alias===null?"":[" as ",i("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:l,parent:d}=e,h=TLt(e)||urn(e)||(l===1&&(s.key.name==="then"||s.key.name==="else"||s.key.name==="as")||l===2&&(s.key.name==="else"&&d.body[l-1].type==="NGMicrosyntaxKeyedExpression"&&d.body[l-1].key.name==="then"||s.key.name==="track"))&&d.body[0].type==="NGMicrosyntaxExpression";return[i("key"),h?" ":": ",i("expression")]}case"NGMicrosyntaxLet":return["let ",i("key"),s.value===null?"":[" = ",i("value")]];case"NGMicrosyntaxAs":return[i("key")," as ",i("alias")];default:throw new GY(s,"Angular")}}function TLt({node:e,index:r}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&r===1}function urn(e){let{node:r}=e;return e.parent.body[1].key.name==="of"&&r.type==="NGMicrosyntaxKeyedExpression"&&r.key.name==="track"&&r.key.type==="NGMicrosyntaxKey"}var prn=Tp(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function _rn({node:e}){return KZe(e,prn)}function tjt(e,r,i){let{node:s}=e;return Bi([ud(Bs,e.map(i,"decorators")),rjt(s,r)?Ia:Bs])}function drn(e,r,i){return njt(e.node)?[ud(Ia,e.map(i,"declaration","decorators")),Ia]:""}function frn(e,r,i){let{node:s,parent:l}=e,{decorators:d}=s;if(!Ag(d)||njt(l)||MXe(e))return"";let h=s.type==="ClassExpression"||s.type==="ClassDeclaration"||rjt(s,r);return[e.key==="declaration"&&GZr(l)?Ia:h?U5:"",ud(Bs,e.map(i,"decorators")),Bs]}function rjt(e,r){return e.decorators.some(i=>gk(r.originalText,T_(i)))}function njt(e){if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let r=e.declaration?.decorators;return Ag(r)&&HCe(e,r[0])}var VZe=new WeakMap;function ijt(e){return VZe.has(e)||VZe.set(e,e.type==="ConditionalExpression"&&!B2(e,r=>r.type==="ObjectExpression")),VZe.get(e)}var mrn=e=>e.type==="SequenceExpression";function hrn(e,r,i,s={}){let l=[],d,h=[],S=!1,b=!s.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",A;(function Je(){let{node:pt}=e,$e=grn(e,r,i,s);if(l.length===0)l.push($e);else{let{leading:xt,trailing:tr}=ZCe(e,r);l.push([xt,$e]),h.unshift(tr)}b&&(S||(S=pt.returnType&&xT(pt).length>0||pt.typeParameters||xT(pt).some(xt=>xt.type!=="Identifier"))),!b||pt.body.type!=="ArrowFunctionExpression"?(d=i("body",s),A=pt.body):e.call(Je,"body")})();let L=!j6(r.originalText,A)&&(mrn(A)||yrn(A,d,r)||!S&&ijt(A)),V=e.key==="callee"&&UY(e.parent),j=Symbol("arrow-chain"),ie=vrn(e,s,{signatureDocs:l,shouldBreak:S}),te=!1,X=!1,Re=!1;return b&&(V||s.assignmentLayout)&&(X=!0,Re=!Os(e.node,Fc.Leading&Fc.Line),te=s.assignmentLayout==="chain-tail-arrow-chain"||V&&!L),d=Srn(e,r,s,{bodyDoc:d,bodyComments:h,functionBody:A,shouldPutBodyOnSameLine:L}),Bi([Bi(X?da([Re?Qo:"",ie]):ie,{shouldBreak:te,id:j})," =>",b?Lpe(d,{groupId:j}):Bi(d),b&&V?op(Qo,"",{groupId:j}):""])}function grn(e,r,i,s){let{node:l}=e,d=[];if(l.async&&d.push("async "),KMt(e,r))d.push(i(["params",0]));else{let S=s.expandLastArg||s.expandFirstArg,b=eDe(e,i);if(S){if($2(b))throw new VCe;b=Bi(JCe(b))}d.push(Bi([SV(e,r,i,S,!0),b]))}let h=Cg(e,r,{filter(S){let b=qY(r.originalText,T_(S));return b!==!1&&r.originalText.slice(b,b+2)==="=>"}});return h&&d.push(" ",h),d}function yrn(e,r,i){return ax(e)||B6(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||eb(e)||r.label?.hug!==!1&&(r.label?.embed||HLt(e,i.originalText))}function vrn(e,r,{signatureDocs:i,shouldBreak:s}){if(i.length===1)return i[0];let{parent:l,key:d}=e;return d!=="callee"&&UY(l)||B5(l)?Bi([i[0]," =>",da([Bs,ud([" =>",Bs],i.slice(1))])],{shouldBreak:s}):d==="callee"&&UY(l)||r.assignmentLayout?Bi(ud([" =>",Bs],i),{shouldBreak:s}):Bi(da(ud([" =>",Bs],i)),{shouldBreak:s})}function Srn(e,r,i,{bodyDoc:s,bodyComments:l,functionBody:d,shouldPutBodyOnSameLine:h}){let{node:S,parent:b}=e,A=i.expandLastArg&&g8(r,"all")?op(","):"",L=(i.expandLastArg||b.type==="JSXExpressionContainer")&&!Os(S)?Qo:"";return h&&ijt(d)?[" ",Bi([op("","("),da([Qo,s]),op("",")"),A,L]),l]:h?[" ",s,l]:[da([Bs,s,l]),A,L]}var brn=Array.prototype.findLast??function(e){for(let r=this.length-1;r>=0;r--){let i=this[r];if(e(i,r,this))return i}},xrn=_Xe("findLast",function(){if(Array.isArray(this))return brn}),Trn=xrn;function sXe(e,r,i,s){let{node:l}=e,d=[],h=Trn(0,l[s],S=>S.type!=="EmptyStatement");return e.each(({node:S})=>{S.type!=="EmptyStatement"&&(d.push(i()),S!==h&&(d.push(Ia),y8(S,r)&&d.push(Ia)))},s),d}function ojt(e,r,i){let s=Ern(e,r,i),{node:l,parent:d}=e;if(l.type==="Program"&&d?.type!=="ModuleExpression")return s?[s,Ia]:"";let h=[];if(l.type==="StaticBlock"&&h.push("static "),h.push("{"),s)h.push(da([Ia,s]),Ia);else{let S=e.grandparent;d.type==="ArrowFunctionExpression"||d.type==="FunctionExpression"||d.type==="FunctionDeclaration"||d.type==="ComponentDeclaration"||d.type==="HookDeclaration"||d.type==="ObjectMethod"||d.type==="ClassMethod"||d.type==="ClassPrivateMethod"||d.type==="ForStatement"||d.type==="WhileStatement"||d.type==="DoWhileStatement"||d.type==="DoExpression"||d.type==="ModuleExpression"||d.type==="CatchClause"&&!S.finalizer||d.type==="TSModuleDeclaration"||d.type==="MatchStatementCase"||l.type==="StaticBlock"||h.push(Ia)}return h.push("}"),h}function Ern(e,r,i){let{node:s}=e,l=Ag(s.directives),d=s.body.some(b=>b.type!=="EmptyStatement"),h=Os(s,Fc.Dangling);if(!l&&!d&&!h)return"";let S=[];return l&&(S.push(sXe(e,r,i,"directives")),(d||h)&&(S.push(Ia),y8(Zf(0,s.directives,-1),r)&&S.push(Ia))),d&&S.push(sXe(e,r,i,"body")),h&&S.push(Cg(e,r)),S}function krn(e){let r=new WeakMap;return function(i){return r.has(i)||r.set(i,Symbol(e)),r.get(i)}}var Crn=krn;function jXe(e,r,i){let{node:s}=e,l=[],d=s.type==="ObjectTypeAnnotation",h=!ajt(e),S=h?Bs:Ia,b=Os(s,Fc.Dangling),[A,L]=d&&s.exact?["{|","|}"]:"{}",V;if(Drn(e,({node:j,next:ie,isLast:te})=>{if(V??(V=j),l.push(i()),h&&d){let{parent:X}=e;X.inexact||!te?l.push(","):g8(r)&&l.push(op(","))}!h&&(Arn({node:j,next:ie},r)||cjt({node:j,next:ie},r))&&l.push(";"),te||(l.push(S),y8(j,r)&&l.push(Ia))}),b&&l.push(Cg(e,r)),s.type==="ObjectTypeAnnotation"&&s.inexact){let j;Os(s,Fc.Dangling)?j=[Os(s,Fc.Line)||gk(r.originalText,T_(Zf(0,uV(s),-1)))?Ia:Bs,"..."]:j=[V?Bs:"","..."],l.push(j)}if(h){let j=b||r.objectWrap==="preserve"&&V&&CD(r.originalText,B_(s),B_(V)),ie;if(l.length===0)ie=A+L;else{let te=r.bracketSpacing?Bs:Qo;ie=[A,da([te,...l]),te,L]}return e.match(void 0,(te,X)=>X==="typeAnnotation",(te,X)=>X==="typeAnnotation",Ppe)||e.match(void 0,(te,X)=>te.type==="FunctionTypeParam"&&X==="typeAnnotation",Ppe)?ie:Bi(ie,{shouldBreak:j})}return[A,l.length>0?[da([Ia,l]),Ia]:"",L]}function ajt(e){let{node:r}=e;if(r.type==="ObjectTypeAnnotation"){let{key:i,parent:s}=e;return i==="body"&&(s.type==="InterfaceDeclaration"||s.type==="DeclareInterface"||s.type==="DeclareClass")}return r.type==="ClassBody"||r.type==="TSInterfaceBody"}function Drn(e,r){let{node:i}=e;if(i.type==="ClassBody"||i.type==="TSInterfaceBody"){e.each(r,"body");return}if(i.type==="TSTypeLiteral"){e.each(r,"members");return}if(i.type==="ObjectTypeAnnotation"){let s=["properties","indexers","callProperties","internalSlots"].flatMap(l=>e.map(({node:d,index:h})=>({node:d,loc:B_(d),selector:[l,h]}),l)).sort((l,d)=>l.loc-d.loc);for(let[l,{node:d,selector:h}]of s.entries())e.call(()=>r({node:d,next:s[l+1]?.node,isLast:l===s.length-1}),...h)}}function j5(e,r){let{parent:i}=e;return e.callParent(ajt)?r.semi||i.type==="ObjectTypeAnnotation"?";":"":i.type==="TSTypeLiteral"?e.isLast?r.semi?op(";"):"":r.semi||cjt({node:e.node,next:e.next},r)?";":op("",";"):""}var ELt=Tp(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),sjt=e=>{if(e.computed||e.typeAnnotation)return!1;let{type:r,name:i}=e.key;return r==="Identifier"&&(i==="static"||i==="get"||i==="set")};function Arn({node:e,next:r},i){if(i.semi||!ELt(e))return!1;if(!e.value&&sjt(e))return!0;if(!r||r.static||r.accessibility||r.readonly)return!1;if(!r.computed){let s=r.key?.name;if(s==="in"||s==="instanceof")return!0}if(ELt(r)&&r.variance&&!r.static&&!r.declare)return!0;switch(r.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return r.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((r.value?r.value.async:r.async)||r.kind==="get"||r.kind==="set")return!1;let s=r.value?r.value.generator:r.generator;return!!(r.computed||s)}case"TSIndexSignature":return!0}return!1}var wrn=Tp(["TSPropertySignature"]);function cjt({node:e,next:r},i){return i.semi||!wrn(e)?!1:sjt(e)?!0:r?r.type==="TSCallSignatureDeclaration":!1}var Irn=Crn("heritageGroup"),Prn=Tp(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function BXe(e,r,i){let{node:s}=e,l=Prn(s),d=[DD(e),XCe(e),l?"interface":"class"],h=ujt(e),S=[],b=[];if(s.type!=="InterfaceTypeAnnotation"){s.id&&S.push(" ");for(let L of["id","typeParameters"])if(s[L]){let{leading:V,trailing:j}=e.call(()=>ZCe(e,r),L);S.push(V,i(L),da(j))}}if(s.superClass){let L=[Frn(e,r,i),i(s.superTypeArguments?"superTypeArguments":"superTypeParameters")],V=e.call(()=>["extends ",tI(e,L,r)],"superClass");h?b.push(Bs,Bi(V)):b.push(" ",V)}else b.push(GZe(e,r,i,"extends"));b.push(GZe(e,r,i,"mixins"),GZe(e,r,i,"implements"));let A;return h?(A=Irn(s),d.push(Bi([...S,da(b)],{id:A}))):d.push(...S,...b),!l&&h&&Nrn(s.body)?d.push(op(Ia," ",{groupId:A})):d.push(" "),d.push(i("body")),d}function Nrn(e){return e.type==="ObjectTypeAnnotation"?["properties","indexers","callProperties","internalSlots"].some(r=>Ag(e[r])):Ag(e.body)}function ljt(e){let r=e.superClass?1:0;for(let i of["extends","mixins","implements"])if(Array.isArray(e[i])&&(r+=e[i].length),r>1)return!0;return r>1}function Orn(e){let{node:r}=e;if(Os(r.id,Fc.Trailing)||Os(r.typeParameters,Fc.Trailing)||Os(r.superClass)||ljt(r))return!0;if(r.superClass)return e.parent.type==="AssignmentExpression"?!1:!(r.superTypeArguments??r.superTypeParameters)&&Dg(r.superClass);let i=r.extends?.[0]??r.mixins?.[0]??r.implements?.[0];return i?i.type==="InterfaceExtends"&&i.id.type==="QualifiedTypeIdentifier"&&!i.typeParameters||(i.type==="TSClassImplements"||i.type==="TSInterfaceHeritage")&&Dg(i.expression)&&!i.typeArguments:!1}var WZe=new WeakMap;function ujt(e){let{node:r}=e;return WZe.has(r)||WZe.set(r,Orn(e)),WZe.get(r)}function GZe(e,r,i,s){let{node:l}=e;if(!Ag(l[s]))return"";let d=Cg(e,r,{marker:s}),h=ud([",",Bs],e.map(i,s));if(!ljt(l)){let S=[`${s} `,d,h];return ujt(e)?[Bs,Bi(S)]:[" ",S]}return[Bs,d,d&&Ia,s,Bi(da([Bs,h]))]}function Frn(e,r,i){let s=i("superClass"),{parent:l}=e;return l.type==="AssignmentExpression"?Bi(op(["(",da([Qo,s]),Qo,")"],s)):s}function pjt(e,r,i){let{node:s}=e,l=[];return Ag(s.decorators)&&l.push(tjt(e,r,i)),l.push(YCe(s)),s.static&&l.push("static "),l.push(XCe(e)),s.override&&l.push("override "),l.push(aXe(e,r,i)),l}function _jt(e,r,i){let{node:s}=e,l=[];Ag(s.decorators)&&l.push(tjt(e,r,i)),l.push(DD(e),YCe(s)),s.static&&l.push("static "),l.push(XCe(e)),s.override&&l.push("override "),s.readonly&&l.push("readonly "),s.variance&&l.push(i("variance")),(s.type==="ClassAccessorProperty"||s.type==="AccessorProperty"||s.type==="TSAbstractAccessorProperty")&&l.push("accessor "),l.push(Jpe(e,r,i),U2(e),NMt(e),ox(e,i));let d=s.type==="TSAbstractPropertyDefinition"||s.type==="TSAbstractAccessorProperty";return[qpe(e,r,i,l," =",d?void 0:"value"),r.semi?";":""]}var Rrn=Tp(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function djt(e){return Rrn(e)?djt(e.expression):e}var Lrn=Tp(["FunctionExpression","ArrowFunctionExpression"]);function Mrn(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function jrn(e,r){if(ejt(e,r)){let i=djt(e.node.expression);return Lrn(i)||Mrn(i)}return!(!r.semi||XMt(e,r)||YMt(e,r))}function Brn(e,r,i){return[i("expression"),jrn(e,r)?";":""]}function $rn(e,r,i){if(r.__isVueBindings||r.__isVueForBindingLeft){let s=e.map(i,"program","body",0,"params");if(s.length===1)return s[0];let l=ud([",",Bs],s);return r.__isVueForBindingLeft?["(",da([Qo,Bi(l)]),Qo,")"]:l}if(r.__isEmbeddedTypescriptGenericParameters){let s=e.map(i,"program","body",0,"typeParameters","params");return ud([",",Bs],s)}}function Urn(e,r){let{node:i}=e;switch(i.type){case"RegExpLiteral":return kLt(i);case"BigIntLiteral":return cXe(i.extra.raw);case"NumericLiteral":return zY(i.extra.raw);case"StringLiteral":return pV(BY(i.extra.raw,r));case"NullLiteral":return"null";case"BooleanLiteral":return String(i.value);case"DirectiveLiteral":return CLt(i.extra.raw,r);case"Literal":{if(i.regex)return kLt(i.regex);if(i.bigint)return cXe(i.raw);let{value:s}=i;return typeof s=="number"?zY(i.raw):typeof s=="string"?zrn(e)?CLt(i.raw,r):pV(BY(i.raw,r)):String(s)}}}function zrn(e){if(e.key!=="expression")return;let{parent:r}=e;return r.type==="ExpressionStatement"&&typeof r.directive=="string"}function cXe(e){return e.toLowerCase()}function kLt({pattern:e,flags:r}){return r=[...r].sort().join(""),`/${e}/${r}`}var qrn="use strict";function CLt(e,r){let i=e.slice(1,-1);if(i===qrn||!(i.includes('"')||i.includes("'"))){let s=r.singleQuote?"'":'"';return s+i+s}return e}function Jrn(e,r,i){let s=e.originalText.slice(r,i);for(let l of e[Symbol.for("comments")]){let d=B_(l);if(d>i)break;let h=T_(l);if(hRe.value&&(Re.value.type==="ObjectPattern"||Re.value.type==="ArrayPattern"))||s.type!=="ObjectPattern"&&r.objectWrap==="preserve"&&L.length>0&&Wrn(s,L[0],r),j=[],ie=e.map(({node:Re})=>{let Je=[...j,Bi(i())];return j=[",",Bs],y8(Re,r)&&j.push(Ia),Je},A);if(b){let Re;if(Os(s,Fc.Dangling)){let Je=Os(s,Fc.Line);Re=[Cg(e,r),Je||gk(r.originalText,T_(Zf(0,uV(s),-1)))?Ia:Bs,"..."]}else Re=["..."];ie.push([...j,...Re])}let te=!(b||Zf(0,L,-1)?.type==="RestElement"),X;if(ie.length===0){if(!Os(s,Fc.Dangling))return["{}",ox(e,i)];X=Bi(["{",Cg(e,r,{indent:!0}),Qo,"}",U2(e),ox(e,i)])}else{let Re=r.bracketSpacing?Bs:Qo;X=["{",da([Re,...ie]),op(te&&g8(r)?",":""),Re,"}",U2(e),ox(e,i)]}return e.match(Re=>Re.type==="ObjectPattern"&&!Ag(Re.decorators),Ppe)||nB(s)&&(e.match(void 0,(Re,Je)=>Je==="typeAnnotation",(Re,Je)=>Je==="typeAnnotation",Ppe)||e.match(void 0,(Re,Je)=>Re.type==="FunctionTypeParam"&&Je==="typeAnnotation",Ppe))||!V&&e.match(Re=>Re.type==="ObjectPattern",Re=>Re.type==="AssignmentExpression"||Re.type==="VariableDeclarator")?X:Bi(X,{shouldBreak:V})}function Wrn(e,r,i){let s=i.originalText,l=B_(e),d=B_(r);if(fjt(e)){let h=B_(e),S=tDe(i,h,d);l=h+S.lastIndexOf("{")}return CD(s,l,d)}function Grn(e,r,i){let{node:s}=e;return["import",s.phase?` ${s.phase}`:"",gjt(s),vjt(e,r,i),yjt(e,r,i),bjt(e,r,i),r.semi?";":""]}var mjt=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function hjt(e,r,i){let{node:s}=e,l=[drn(e,r,i),DD(e),"export",mjt(s)?" default":""],{declaration:d,exported:h}=s;return Os(s,Fc.Dangling)&&(l.push(" ",Cg(e,r)),KLt(s)&&l.push(Ia)),d?l.push(" ",i("declaration")):(l.push(Qrn(s)),s.type==="ExportAllDeclaration"||s.type==="DeclareExportAllDeclaration"?(l.push(" *"),h&&l.push(" as ",i("exported"))):l.push(vjt(e,r,i)),l.push(yjt(e,r,i),bjt(e,r,i))),l.push(Krn(s,r)),l}var Hrn=Tp(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function Krn(e,r){return r.semi&&(!e.declaration||mjt(e)&&!Hrn(e.declaration))?";":""}function UXe(e,r=!0){return e&&e!=="value"?`${r?" ":""}${e}${r?"":" "}`:""}function gjt(e,r){return UXe(e.importKind,r)}function Qrn(e){return UXe(e.exportKind)}function yjt(e,r,i){let{node:s}=e;return s.source?[Sjt(s,r)?" from":""," ",i("source")]:""}function vjt(e,r,i){let{node:s}=e;if(!Sjt(s,r))return"";let l=[" "];if(Ag(s.specifiers)){let d=[],h=[];e.each(()=>{let S=e.node.type;if(S==="ExportNamespaceSpecifier"||S==="ExportDefaultSpecifier"||S==="ImportNamespaceSpecifier"||S==="ImportDefaultSpecifier")d.push(i());else if(S==="ExportSpecifier"||S==="ImportSpecifier")h.push(i());else throw new GY(s,"specifier")},"specifiers"),l.push(ud(", ",d)),h.length>0&&(d.length>0&&l.push(", "),h.length>1||d.length>0||s.specifiers.some(S=>Os(S))?l.push(Bi(["{",da([r.bracketSpacing?Bs:Qo,ud([",",Bs],h)]),op(g8(r)?",":""),r.bracketSpacing?Bs:Qo,"}"])):l.push(["{",r.bracketSpacing?" ":"",...h,r.bracketSpacing?" ":"","}"]))}else l.push("{}");return l}function Sjt(e,r){return e.type!=="ImportDeclaration"||Ag(e.specifiers)||e.importKind==="type"?!0:tDe(r,B_(e),B_(e.source)).trimEnd().endsWith("from")}function Zrn(e,r){if(e.extra?.deprecatedAssertSyntax)return"assert";let i=tDe(r,T_(e.source),e.attributes?.[0]?B_(e.attributes[0]):T_(e)).trimStart();return i.startsWith("assert")?"assert":i.startsWith("with")||Ag(e.attributes)?"with":void 0}var Xrn=e=>{let{attributes:r}=e;if(r.length!==1)return!1;let[i]=r,{type:s,key:l,value:d}=i;return s==="ImportAttribute"&&(l.type==="Identifier"&&l.name==="type"||tb(l)&&l.value==="type")&&tb(d)&&!Os(i)&&!Os(l)&&!Os(d)};function bjt(e,r,i){let{node:s}=e;if(!s.source)return"";let l=Zrn(s,r);if(!l)return"";let d=$Xe(e,r,i);return Xrn(s)&&(d=JCe(d)),[` ${l} `,d]}function Yrn(e,r,i){let{node:s}=e,{type:l}=s,d=l.startsWith("Import"),h=d?"imported":"local",S=d?"local":"exported",b=s[h],A=s[S],L="",V="";return l==="ExportNamespaceSpecifier"||l==="ImportNamespaceSpecifier"?L="*":b&&(L=i(h)),A&&!enn(s)&&(V=i(S)),[UXe(l==="ImportSpecifier"?s.importKind:s.exportKind,!1),L,L&&V?" as ":"",V]}function enn(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:r,[e.type==="ImportSpecifier"?"imported":"exported"]:i}=e;return r.type!==i.type||!PZr(r,i)?!1:tb(r)?r.value===i.value&&yk(r)===yk(i):r.type==="Identifier"?r.name===i.name:!1}function lXe(e,r){return["...",r("argument"),ox(e,r)]}function tnn(e){let r=[e];for(let i=0;ij[Ut]===s),te=j.type===s.type&&!ie,X,Re,Je=0;do Re=X||s,X=e.getParentNode(Je),Je++;while(X&&X.type===s.type&&S.every(Ut=>X[Ut]!==Re));let pt=X||j,$e=Re;if(l&&(eb(s[S[0]])||eb(b)||eb(A)||tnn($e))){V=!0,te=!0;let Ut=Hi=>[op("("),da([Qo,Hi]),Qo,op(")")],hr=Hi=>Hi.type==="NullLiteral"||Hi.type==="Literal"&&Hi.value===null||Hi.type==="Identifier"&&Hi.name==="undefined";L.push(" ? ",hr(b)?i(d):Ut(i(d))," : ",A.type===s.type||hr(A)?i(h):Ut(i(h)))}else{let Ut=Hi=>r.useTabs?da(i(Hi)):U6(2,i(Hi)),hr=[Bs,"? ",b.type===s.type?op("","("):"",Ut(d),b.type===s.type?op("",")"):"",Bs,": ",Ut(h)];L.push(j.type!==s.type||j[h]===s||ie?hr:r.useTabs?mMt(da(hr)):U6(Math.max(0,r.tabWidth-2),hr))}let xt=Ut=>j===pt?Bi(Ut):Ut,tr=!V&&(Dg(j)||j.type==="NGPipeExpression"&&j.left===s)&&!j.computed,ht=inn(e),wt=xt([rnn(e,r,i),te?L:da(L),l&&tr&&!ht?Qo:""]);return ie||ht?Bi([da([Qo,wt]),Qo]):wt}function ann(e,r){return(Dg(r)||r.type==="NGPipeExpression"&&r.left===e)&&!r.computed}function snn(e,r,i,s){return[...e.map(l=>uV(l)),uV(r),uV(i)].flat().some(l=>z6(l)&&CD(s.originalText,B_(l),T_(l)))}var cnn=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function lnn(e){let{node:r}=e;if(r.type!=="ConditionalExpression")return!1;let i,s=r;for(let l=0;!i;l++){let d=e.getParentNode(l);if(d.type==="ChainExpression"&&d.expression===s||Sf(d)&&d.callee===s||Dg(d)&&d.object===s||d.type==="TSNonNullExpression"&&d.expression===s){s=d;continue}d.type==="NewExpression"&&d.callee===s||M6(d)&&d.expression===s?(i=e.getParentNode(l+1),s=d):i=d}return s===r?!1:i[cnn.get(i.type)]===s}var HZe=e=>[op("("),da([Qo,e]),Qo,op(")")];function zXe(e,r,i,s){if(!r.experimentalTernaries)return onn(e,r,i);let{node:l}=e,d=l.type==="ConditionalExpression",h=iB(l),S=d?"consequent":"trueType",b=d?"alternate":"falseType",A=d?["test"]:["checkType","extendsType"],L=l[S],V=l[b],j=A.map(uc=>l[uc]),{parent:ie}=e,te=ie.type===l.type,X=te&&A.some(uc=>ie[uc]===l),Re=te&&ie[b]===l,Je=L.type===l.type,pt=V.type===l.type,$e=pt||Re,xt=r.tabWidth>2||r.useTabs,tr,ht,wt=0;do ht=tr||l,tr=e.getParentNode(wt),wt++;while(tr&&tr.type===l.type&&A.every(uc=>tr[uc]!==ht));let Ut=tr||ie,hr=s&&s.assignmentLayout&&s.assignmentLayout!=="break-after-operator"&&(ie.type==="AssignmentExpression"||ie.type==="VariableDeclarator"||ie.type==="ClassProperty"||ie.type==="PropertyDefinition"||ie.type==="ClassPrivateProperty"||ie.type==="ObjectProperty"||ie.type==="Property"),Hi=(ie.type==="ReturnStatement"||ie.type==="ThrowStatement")&&!(Je||pt),un=d&&Ut.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",xo=lnn(e),Lo=ann(l,ie),yr=h&&lB(e,r),co=xt?r.useTabs?" ":" ".repeat(r.tabWidth-1):"",Cs=snn(j,L,V,r)||Je||pt,Cr=!$e&&!te&&!h&&(un?L.type==="NullLiteral"||L.type==="Literal"&&L.value===null:bXe(L,r)&&nLt(l.test,3)),ol=$e||Re||h&&!te||te&&d&&nLt(l.test,1)||Cr,Zo=[];!Je&&Os(L,Fc.Dangling)&&e.call(()=>{Zo.push(Cg(e,r),Ia)},"consequent");let Rc=[];Os(l.test,Fc.Dangling)&&e.call(()=>{Rc.push(Cg(e,r))},"test"),!pt&&Os(V,Fc.Dangling)&&e.call(()=>{Rc.push(Cg(e,r))},"alternate"),Os(l,Fc.Dangling)&&Rc.push(Cg(e,r));let an=Symbol("test"),Xr=Symbol("consequent"),li=Symbol("test-and-consequent"),Wi=d?[HZe(i("test")),l.test.type==="ConditionalExpression"?U5:""]:[i("checkType")," ","extends"," ",iB(l.extendsType)||l.extendsType.type==="TSMappedType"?i("extendsType"):Bi(HZe(i("extendsType")))],Bo=Bi([Wi," ?"],{id:an}),Wn=i(S),Na=da([Je||un&&(eb(L)||te||$e)?Ia:Bs,Zo,Wn]),hs=ol?Bi([Bo,$e?Na:op(Na,Bi(Na,{id:Xr}),{groupId:an})],{id:li}):[Bo,Na],Us=i(b),Sc=Cr?op(Us,mMt(HZe(Us)),{groupId:li}):Us,Wu=[hs,Rc.length>0?[da([Ia,Rc]),Ia]:pt?Ia:Cr?op(Bs," ",{groupId:li}):Bs,":",pt?" ":xt?ol?op(co,op($e||Cr?" ":co," "),{groupId:li}):op(co," "):" ",pt?Sc:Bi([da(Sc),un&&!Cr?Qo:""]),Lo&&!xo?Qo:"",Cs?U5:""];return hr&&!Cs?Bi(da([Qo,Bi(Wu)])):hr||Hi?Bi(da(Wu)):xo||h&&X?Bi([da([Qo,Wu]),yr?Qo:""]):ie===Ut?Bi(Wu):Wu}function unn(e,r,i,s){let{node:l}=e;if(vXe(l))return Urn(e,r);switch(l.type){case"JsExpressionRoot":return i("node");case"JsonRoot":return[Cg(e,r),i("node"),Ia];case"File":return $rn(e,r,i)??i("program");case"ExpressionStatement":return Brn(e,r,i);case"ChainExpression":return i("expression");case"ParenthesizedExpression":return!Os(l.expression)&&(B6(l.expression)||ax(l.expression))?["(",i("expression"),")"]:Bi(["(",da([Qo,i("expression")]),Qo,")"]);case"AssignmentExpression":return Stn(e,r,i);case"VariableDeclarator":return btn(e,r,i);case"BinaryExpression":case"LogicalExpression":return OMt(e,r,i);case"AssignmentPattern":return[i("left")," = ",i("right")];case"OptionalMemberExpression":case"MemberExpression":return mtn(e,r,i);case"MetaProperty":return[i("meta"),".",i("property")];case"BindExpression":return _tn(e,r,i);case"Identifier":return[l.name,U2(e),NMt(e),ox(e,i)];case"V8IntrinsicIdentifier":return["%",l.name];case"SpreadElement":return lXe(e,i);case"RestElement":return lXe(e,i);case"FunctionDeclaration":case"FunctionExpression":return HMt(e,r,i,s);case"ArrowFunctionExpression":return hrn(e,r,i,s);case"YieldExpression":return[`yield${l.delegate?"*":""}`,l.argument?[" ",i("argument")]:""];case"AwaitExpression":{let d=["await"];if(l.argument){d.push(" ",i("argument"));let{parent:h}=e;if(Sf(h)&&h.callee===l||Dg(h)&&h.object===l){d=[da([Qo,...d]),Qo];let S=e.findAncestor(b=>b.type==="AwaitExpression"||b.type==="BlockStatement");if(S?.type!=="AwaitExpression"||!B2(S.argument,b=>b===l))return Bi(d)}}return d}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return hjt(e,r,i);case"ImportDeclaration":return Grn(e,r,i);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Yrn(e,r,i);case"ImportAttribute":return qZe(e,r,i);case"Program":case"BlockStatement":case"StaticBlock":return ojt(e,r,i);case"ClassBody":return jXe(e,r,i);case"ThrowStatement":return Ltn(e,r,i);case"ReturnStatement":return Rtn(e,r,i);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return WCe(e,r,i);case"ObjectExpression":case"ObjectPattern":return $Xe(e,r,i);case"Property":return $pe(l)?aXe(e,r,i):qZe(e,r,i);case"ObjectProperty":return qZe(e,r,i);case"ObjectMethod":return aXe(e,r,i);case"Decorator":return["@",i("expression")];case"ArrayExpression":case"ArrayPattern":return FXe(e,r,i);case"SequenceExpression":{let{parent:d}=e;if(d.type==="ExpressionStatement"||d.type==="ForStatement"){let S=[];return e.each(({isFirst:b})=>{b?S.push(i()):S.push(",",da([Bs,i()]))},"expressions"),Bi(S)}let h=ud([",",Bs],e.map(i,"expressions"));return(d.type==="ReturnStatement"||d.type==="ThrowStatement")&&e.key==="argument"||d.type==="ArrowFunctionExpression"&&e.key==="body"?Bi(op([da([Qo,h]),Qo],h)):Bi(h)}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[i("value"),r.semi?";":""];case"UnaryExpression":{let d=[l.operator];return/[a-z]$/u.test(l.operator)&&d.push(" "),Os(l.argument)?d.push(Bi(["(",da([Qo,i("argument")]),Qo,")"])):d.push(i("argument")),d}case"UpdateExpression":return[l.prefix?l.operator:"",i("argument"),l.prefix?"":l.operator];case"ConditionalExpression":return zXe(e,r,i,s);case"VariableDeclaration":{let d=e.map(i,"declarations"),h=e.parent,S=h.type==="ForStatement"||h.type==="ForInStatement"||h.type==="ForOfStatement",b=l.declarations.some(L=>L.init),A;return d.length===1&&!Os(l.declarations[0])?A=d[0]:d.length>0&&(A=da(d[0])),Bi([DD(e),l.kind,A?[" ",A]:"",da(d.slice(1).map(L=>[",",b&&!S?Ia:Bs,L])),r.semi&&!(S&&h.body!==l)?";":""])}case"WithStatement":return Bi(["with (",i("object"),")",tB(l.body,i("body"))]);case"IfStatement":{let d=tB(l.consequent,i("consequent")),h=[Bi(["if (",Bi([da([Qo,i("test")]),Qo]),")",d])];if(l.alternate){let S=Os(l.consequent,Fc.Trailing|Fc.Line)||KLt(l),b=l.consequent.type==="BlockStatement"&&!S;h.push(b?" ":Ia),Os(l,Fc.Dangling)&&h.push(Cg(e,r),S?Ia:" "),h.push("else",Bi(tB(l.alternate,i("alternate"),l.alternate.type==="IfStatement")))}return h}case"ForStatement":{let d=tB(l.body,i("body")),h=Cg(e,r),S=h?[h,Qo]:"";return!l.init&&!l.test&&!l.update?[S,Bi(["for (;;)",d])]:[S,Bi(["for (",Bi([da([Qo,i("init"),";",Bs,i("test"),";",l.update?[Bs,i("update")]:op("",Bs)]),Qo]),")",d])]}case"WhileStatement":return Bi(["while (",Bi([da([Qo,i("test")]),Qo]),")",tB(l.body,i("body"))]);case"ForInStatement":return Bi(["for (",i("left")," in ",i("right"),")",tB(l.body,i("body"))]);case"ForOfStatement":return Bi(["for",l.await?" await":""," (",i("left")," of ",i("right"),")",tB(l.body,i("body"))]);case"DoWhileStatement":{let d=tB(l.body,i("body"));return[Bi(["do",d]),l.body.type==="BlockStatement"?" ":Ia,"while (",Bi([da([Qo,i("test")]),Qo]),")",r.semi?";":""]}case"DoExpression":return[l.async?"async ":"","do ",i("body")];case"BreakStatement":case"ContinueStatement":return[l.type==="BreakStatement"?"break":"continue",l.label?[" ",i("label")]:"",r.semi?";":""];case"LabeledStatement":return[i("label"),`:${l.body.type==="EmptyStatement"&&!Os(l.body,Fc.Leading)?"":" "}`,i("body")];case"TryStatement":return["try ",i("block"),l.handler?[" ",i("handler")]:"",l.finalizer?[" finally ",i("finalizer")]:""];case"CatchClause":if(l.param){let d=Os(l.param,S=>!z6(S)||S.leading&&gk(r.originalText,T_(S))||S.trailing&&gk(r.originalText,B_(S),{backwards:!0})),h=i("param");return["catch ",d?["(",da([Qo,h]),Qo,") "]:["(",h,") "],i("body")]}return["catch ",i("body")];case"SwitchStatement":return[Bi(["switch (",da([Qo,i("discriminant")]),Qo,")"])," {",l.cases.length>0?da([Ia,ud(Ia,e.map(({node:d,isLast:h})=>[i(),!h&&y8(d,r)?Ia:""],"cases"))]):"",Ia,"}"];case"SwitchCase":{let d=[];l.test?d.push("case ",i("test"),":"):d.push("default:"),Os(l,Fc.Dangling)&&d.push(" ",Cg(e,r));let h=l.consequent.filter(S=>S.type!=="EmptyStatement");if(h.length>0){let S=sXe(e,r,i,"consequent");d.push(h.length===1&&h[0].type==="BlockStatement"?[" ",S]:da([Ia,S]))}return d}case"DebuggerStatement":return["debugger",r.semi?";":""];case"ClassDeclaration":case"ClassExpression":return BXe(e,r,i);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return pjt(e,r,i);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return _jt(e,r,i);case"TemplateElement":return pV(l.value.raw);case"TemplateLiteral":return TMt(e,r,i);case"TaggedTemplateExpression":return jYr(e,r,i);case"PrivateIdentifier":return["#",l.name];case"PrivateName":return["#",i("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",i("body")];case"VoidPattern":return"void";case"EmptyStatement":if(gXe(e))return";";default:throw new GY(l,"ESTree")}}function xjt(e){return[e("elementType"),"[]"]}var pnn=Tp(["SatisfiesExpression","TSSatisfiesExpression"]);function Tjt(e,r,i){let{parent:s,node:l,key:d}=e,h=l.type==="AsConstExpression"?"const":i("typeAnnotation"),S=[i("expression")," ",pnn(l)?"satisfies":"as"," ",h];return d==="callee"&&Sf(s)||d==="object"&&Dg(s)?Bi([da([Qo,...S]),Qo]):S}function _nn(e,r,i){let{node:s}=e,l=[DD(e),"component"];s.id&&l.push(" ",i("id")),l.push(i("typeParameters"));let d=dnn(e,r,i);return s.rendersType?l.push(Bi([d," ",i("rendersType")])):l.push(Bi([d])),s.body&&l.push(" ",i("body")),r.semi&&s.type==="DeclareComponent"&&l.push(";"),l}function dnn(e,r,i){let{node:s}=e,l=s.params;if(s.rest&&(l=[...l,s.rest]),l.length===0)return["(",Cg(e,r,{filter:h=>$6(r.originalText,T_(h))===")"}),")"];let d=[];return mnn(e,(h,S)=>{let b=S===l.length-1;b&&s.rest&&d.push("..."),d.push(i()),!b&&(d.push(","),y8(l[S],r)?d.push(Ia,Ia):d.push(Bs))}),["(",da([Qo,...d]),op(g8(r,"all")&&!fnn(s,l)?",":""),Qo,")"]}function fnn(e,r){return e.rest||Zf(0,r,-1)?.type==="RestElement"}function mnn(e,r){let{node:i}=e,s=0,l=d=>r(d,s++);e.each(l,"params"),i.rest&&e.call(l,"rest")}function hnn(e,r,i){let{node:s}=e;return s.shorthand?i("local"):[i("name")," as ",i("local")]}function gnn(e,r,i){let{node:s}=e,l=[];return s.name&&l.push(i("name"),s.optional?"?: ":": "),l.push(i("typeAnnotation")),l}function Ejt(e,r,i){return $Xe(e,r,i)}function ynn(e,r,i){let{node:s}=e;return[s.type==="EnumSymbolBody"||s.explicitType?`of ${s.type.slice(4,-4).toLowerCase()} `:"",Ejt(e,r,i)]}function kjt(e,r){let{node:i}=e,s=r("id");i.computed&&(s=["[",s,"]"]);let l="";return i.initializer&&(l=r("initializer")),i.init&&(l=r("init")),l?[s," = ",l]:s}function Cjt(e,r){let{node:i}=e;return[DD(e),i.const?"const ":"","enum ",r("id")," ",r("body")]}function Djt(e,r,i){let{node:s}=e,l=[XCe(e)];(s.type==="TSConstructorType"||s.type==="TSConstructSignatureDeclaration")&&l.push("new ");let d=SV(e,r,i,!1,!0),h=[];return s.type==="FunctionTypeAnnotation"?h.push(vnn(e)?" => ":": ",i("returnType")):h.push(ox(e,i,"returnType")),WY(s,h)&&(d=Bi(d)),l.push(d,h),[Bi(l),s.type==="TSConstructSignatureDeclaration"||s.type==="TSCallSignatureDeclaration"?j5(e,r):""]}function vnn(e){let{node:r,parent:i}=e;return r.type==="FunctionTypeAnnotation"&&(VLt(i)||!((i.type==="ObjectTypeProperty"||i.type==="ObjectTypeInternalSlot")&&!i.variance&&!i.optional&&HCe(i,r)||i.type==="ObjectTypeCallProperty"||e.getParentNode(2)?.type==="DeclareFunction"))}function Snn(e,r,i){let{node:s}=e,l=["hook"];s.id&&l.push(" ",i("id"));let d=SV(e,r,i,!1,!0),h=eDe(e,i),S=WY(s,h);return l.push(Bi([S?Bi(d):d,h]),s.body?" ":"",i("body")),l}function bnn(e,r,i){let{node:s}=e,l=[DD(e),"hook"];return s.id&&l.push(" ",i("id")),r.semi&&l.push(";"),l}function DLt(e){let{node:r}=e;return r.type==="HookTypeAnnotation"&&e.getParentNode(2)?.type==="DeclareHook"}function xnn(e,r,i){let{node:s}=e,l=SV(e,r,i,!1,!0),d=[DLt(e)?": ":" => ",i("returnType")];return Bi([DLt(e)?"":"hook ",WY(s,d)?Bi(l):l,d])}function Ajt(e,r,i){return[i("objectType"),U2(e),"[",i("indexType"),"]"]}function wjt(e,r,i){return["infer ",i("typeParameter")]}function Ijt(e,r,i){let s=!1;return Bi(e.map(({isFirst:l,previous:d,node:h,index:S})=>{let b=i();if(l)return b;let A=nB(h),L=nB(d);return L&&A?[" & ",s?da(b):b]:!L&&!A||j6(r.originalText,h)?r.experimentalOperatorPosition==="start"?da([Bs,"& ",b]):da([" &",Bs,b]):(S>1&&(s=!0),[" & ",S>1?da(b):b])},"types"))}function Tnn(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function Enn(e,r,i){let{node:s}=e;return[Bi([s.variance?i("variance"):"","[",da([i("keyTparam")," in ",i("sourceType")]),"]",Tnn(s.optional),": ",i("propType")]),j5(e,r)]}function ALt(e,r){return e==="+"||e==="-"?e+r:r}function knn(e,r,i){let{node:s}=e,l=!1;if(r.objectWrap==="preserve"){let d=B_(s),h=tDe(r,d+1,B_(s.key)),S=d+1+h.search(/\S/u);CD(r.originalText,d,S)&&(l=!0)}return Bi(["{",da([r.bracketSpacing?Bs:Qo,Os(s,Fc.Dangling)?Bi([Cg(e,r),Ia]):"",Bi([s.readonly?[ALt(s.readonly,"readonly")," "]:"","[",i("key")," in ",i("constraint"),s.nameType?[" as ",i("nameType")]:"","]",s.optional?ALt(s.optional,"?"):"",s.typeAnnotation?": ":"",i("typeAnnotation")]),r.semi?op(";"):""]),r.bracketSpacing?Bs:Qo,"}"],{shouldBreak:l})}function Cnn(e,r,i){let{node:s}=e;return[Bi(["match (",da([Qo,i("argument")]),Qo,")"])," {",s.cases.length>0?da([Ia,ud(Ia,e.map(({node:l,isLast:d})=>[i(),!d&&y8(l,r)?Ia:""],"cases"))]):"",Ia,"}"]}function Dnn(e,r,i){let{node:s}=e,l=Os(s,Fc.Dangling)?[" ",Cg(e,r)]:[],d=s.type==="MatchStatementCase"?[" ",i("body")]:da([Bs,i("body"),","]);return[i("pattern"),s.guard?Bi([da([Bs,"if (",i("guard"),")"])]):"",Bi([" =>",l,d])]}function Ann(e,r,i){let{node:s}=e;switch(s.type){case"MatchOrPattern":return Pnn(e,r,i);case"MatchAsPattern":return[i("pattern")," as ",i("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return i("literal");case"MatchUnaryPattern":return[s.operator,i("argument")];case"MatchIdentifierPattern":return i("id");case"MatchMemberPattern":{let l=s.property.type==="Identifier"?[".",i("property")]:["[",da([Qo,i("property")]),Qo,"]"];return Bi([i("base"),l])}case"MatchBindingPattern":return[s.kind," ",i("id")];case"MatchObjectPattern":{let l=e.map(i,"properties");return s.rest&&l.push(i("rest")),Bi(["{",da([Qo,ud([",",Bs],l)]),s.rest?"":op(","),Qo,"}"])}case"MatchArrayPattern":{let l=e.map(i,"elements");return s.rest&&l.push(i("rest")),Bi(["[",da([Qo,ud([",",Bs],l)]),s.rest?"":op(","),Qo,"]"])}case"MatchObjectPatternProperty":return s.shorthand?i("pattern"):Bi([i("key"),":",da([Bs,i("pattern")])]);case"MatchRestPattern":{let l=["..."];return s.argument&&l.push(i("argument")),l}}}var Pjt=Tp(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function wnn(e){let{patterns:r}=e;if(r.some(s=>Os(s)))return!1;let i=r.find(s=>s.type==="MatchObjectPattern");return i?r.every(s=>s===i||Pjt(s)):!1}function Inn(e){return Pjt(e)||e.type==="MatchObjectPattern"?!0:e.type==="MatchOrPattern"?wnn(e):!1}function Pnn(e,r,i){let{node:s}=e,{parent:l}=e,d=l.type!=="MatchStatementCase"&&l.type!=="MatchExpressionCase"&&l.type!=="MatchArrayPattern"&&l.type!=="MatchObjectPatternProperty"&&!j6(r.originalText,s),h=Inn(s),S=e.map(()=>{let A=i();return h||(A=U6(2,A)),tI(e,A,r)},"patterns");if(h)return ud(" | ",S);let b=[op(["| "]),ud([Bs,"| "],S)];return lB(e,r)?Bi([da([op([Qo]),b]),Qo]):l.type==="MatchArrayPattern"&&l.elements.length>1?Bi([da([op(["(",Qo]),b]),Qo,op(")")]):Bi(d?da(b):b)}function Nnn(e,r,i){let{node:s}=e,l=[DD(e),"opaque type ",i("id"),i("typeParameters")];if(s.supertype&&l.push(": ",i("supertype")),s.lowerBound||s.upperBound){let d=[];s.lowerBound&&d.push(da([Bs,"super ",i("lowerBound")])),s.upperBound&&d.push(da([Bs,"extends ",i("upperBound")])),l.push(Bi(d))}return s.impltype&&l.push(" = ",i("impltype")),l.push(r.semi?";":""),l}function Njt(e,r,i){let{node:s}=e;return["...",...s.type==="TupleTypeSpreadElement"&&s.label?[i("label"),": "]:[],i("typeAnnotation")]}function Ojt(e,r,i){let{node:s}=e;return[s.variance?i("variance"):"",i("label"),s.optional?"?":"",": ",i("elementType")]}function Fjt(e,r,i){let{node:s}=e,l=[DD(e),"type ",i("id"),i("typeParameters")],d=s.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[qpe(e,r,i,l," =",d),r.semi?";":""]}function Onn(e,r,i){let{node:s}=e;return xT(s).length===1&&s.type.startsWith("TS")&&!s[i][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(r.filepath&&/\.ts$/u.test(r.filepath))}function Ope(e,r,i,s){let{node:l}=e;if(!l[s])return"";if(!Array.isArray(l[s]))return i(s);let d=KCe(e.grandparent),h=e.match(b=>!(b[s].length===1&&nB(b[s][0])),void 0,(b,A)=>A==="typeAnnotation",b=>b.type==="Identifier",VMt);if(l[s].length===0||!h&&(d||l[s].length===1&&(l[s][0].type==="NullableTypeAnnotation"||ttn(l[s][0]))))return["<",ud(", ",e.map(i,s)),Fnn(e,r),">"];let S=l.type==="TSTypeParameterInstantiation"?"":Onn(e,r,s)?",":g8(r)?op(","):"";return Bi(["<",da([Qo,ud([",",Bs],e.map(i,s))]),S,Qo,">"])}function Fnn(e,r){let{node:i}=e;if(!Os(i,Fc.Dangling))return"";let s=!Os(i,Fc.Line),l=Cg(e,r,{indent:!s});return s?l:[l,Ia]}function Rjt(e,r,i){let{node:s}=e,l=[s.const?"const ":""],d=s.type==="TSTypeParameter"?i("name"):s.name;if(s.variance&&l.push(i("variance")),s.in&&l.push("in "),s.out&&l.push("out "),l.push(d),s.bound&&(s.usesExtendsBound&&l.push(" extends "),l.push(ox(e,i,"bound"))),s.constraint){let h=Symbol("constraint");l.push(" extends",Bi(da(Bs),{id:h}),h8,Lpe(i("constraint"),{groupId:h}))}if(s.default){let h=Symbol("default");l.push(" =",Bi(da(Bs),{id:h}),h8,Lpe(i("default"),{groupId:h}))}return Bi(l)}function Ljt(e,r){let{node:i}=e;return[i.type==="TSTypePredicate"&&i.asserts?"asserts ":i.type==="TypePredicate"&&i.kind?`${i.kind} `:"",r("parameterName"),i.typeAnnotation?[" is ",ox(e,r)]:""]}function Mjt({node:e},r){let i=e.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",r(i),r("typeArguments")]}function Rnn(e,r,i){let{node:s}=e;if($Lt(s))return s.type.slice(0,-14).toLowerCase();switch(s.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return _nn(e,r,i);case"ComponentParameter":return hnn(e,r,i);case"ComponentTypeParameter":return gnn(e,r,i);case"HookDeclaration":return Snn(e,r,i);case"DeclareHook":return bnn(e,r,i);case"HookTypeAnnotation":return xnn(e,r,i);case"DeclareFunction":return[DD(e),"function ",i("id"),i("predicate"),r.semi?";":""];case"DeclareModule":return["declare module ",i("id")," ",i("body")];case"DeclareModuleExports":return["declare module.exports",ox(e,i),r.semi?";":""];case"DeclareNamespace":return["declare namespace ",i("id")," ",i("body")];case"DeclareVariable":return[DD(e),s.kind??"var"," ",i("id"),r.semi?";":""];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return hjt(e,r,i);case"DeclareOpaqueType":case"OpaqueType":return Nnn(e,r,i);case"DeclareTypeAlias":case"TypeAlias":return Fjt(e,r,i);case"IntersectionTypeAnnotation":return Ijt(e,r,i);case"UnionTypeAnnotation":return FMt(e,r,i);case"ConditionalTypeAnnotation":return zXe(e,r,i);case"InferTypeAnnotation":return wjt(e,r,i);case"FunctionTypeAnnotation":return Djt(e,r,i);case"TupleTypeAnnotation":return FXe(e,r,i);case"TupleTypeLabeledElement":return Ojt(e,r,i);case"TupleTypeSpreadElement":return Njt(e,r,i);case"GenericTypeAnnotation":return[i("id"),Ope(e,r,i,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return Ajt(e,r,i);case"TypeAnnotation":return MMt(e,r,i);case"TypeParameter":return Rjt(e,r,i);case"TypeofTypeAnnotation":return Mjt(e,i);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return xjt(i);case"DeclareEnum":case"EnumDeclaration":return Cjt(e,i);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return ynn(e,r,i);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return kjt(e,i);case"FunctionTypeParam":{let l=s.name?i("name"):e.parent.this===s?"this":"";return[l,U2(e),l?": ":"",i("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return BXe(e,r,i);case"ObjectTypeAnnotation":return jXe(e,r,i);case"ClassImplements":case"InterfaceExtends":return[i("id"),i("typeParameters")];case"NullableTypeAnnotation":return["?",i("typeAnnotation")];case"Variance":{let{kind:l}=s;return _V(l==="plus"||l==="minus"),l==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",i("argument")];case"ObjectTypeCallProperty":return[s.static?"static ":"",i("value"),j5(e,r)];case"ObjectTypeMappedTypeProperty":return Enn(e,r,i);case"ObjectTypeIndexer":return[s.static?"static ":"",s.variance?i("variance"):"","[",i("id"),s.id?": ":"",i("key"),"]: ",i("value"),j5(e,r)];case"ObjectTypeProperty":{let l="";return s.proto?l="proto ":s.static&&(l="static "),[l,s.kind!=="init"?s.kind+" ":"",s.variance?i("variance"):"",Jpe(e,r,i),U2(e),$pe(s)?"":": ",i("value"),j5(e,r)]}case"ObjectTypeInternalSlot":return[s.static?"static ":"","[[",i("id"),"]]",U2(e),s.method?"":": ",i("value"),j5(e,r)];case"ObjectTypeSpreadProperty":return lXe(e,i);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[i("qualification"),".",i("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(s.value);case"StringLiteralTypeAnnotation":return pV(BY(yk(s),r));case"NumberLiteralTypeAnnotation":return zY(yk(s));case"BigIntLiteralTypeAnnotation":return cXe(yk(s));case"TypeCastExpression":return["(",i("expression"),ox(e,i),")"];case"TypePredicate":return Ljt(e,i);case"TypeOperator":return[s.operator," ",i("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return Ope(e,r,i,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...s.type==="DeclaredPredicate"?["(",i("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Tjt(e,r,i);case"MatchExpression":case"MatchStatement":return Cnn(e,r,i);case"MatchExpressionCase":case"MatchStatementCase":return Dnn(e,r,i);case"MatchOrPattern":case"MatchAsPattern":case"MatchWildcardPattern":case"MatchLiteralPattern":case"MatchUnaryPattern":case"MatchIdentifierPattern":case"MatchMemberPattern":case"MatchBindingPattern":case"MatchObjectPattern":case"MatchObjectPatternProperty":case"MatchRestPattern":case"MatchArrayPattern":return Ann(e,r,i)}}function Lnn(e,r,i){let{node:s}=e,l=s.parameters.length>1?op(g8(r)?",":""):"",d=Bi([da([Qo,ud([", ",Qo],e.map(i,"parameters"))]),l,Qo]);return[e.key==="body"&&e.parent.type==="ClassBody"&&s.static?"static ":"",s.readonly?"readonly ":"","[",s.parameters?d:"","]",ox(e,i),j5(e,r)]}function wLt(e,r,i){let{node:s}=e;return[s.postfix?"":i,ox(e,r),s.postfix?i:""]}function Mnn(e,r,i){let{node:s}=e,l=[],d=s.kind&&s.kind!=="method"?`${s.kind} `:"";l.push(YCe(s),d,s.computed?"[":"",i("key"),s.computed?"]":"",U2(e));let h=SV(e,r,i,!1,!0),S=ox(e,i,"returnType"),b=WY(s,S);return l.push(b?Bi(h):h),s.returnType&&l.push(Bi(S)),[Bi(l),j5(e,r)]}function jnn(e,r,i){let{node:s}=e;return[DD(e),s.kind==="global"?"":`${s.kind} `,i("id"),s.body?[" ",Bi(i("body"))]:r.semi?";":""]}function Bnn(e,r,i){let{node:s}=e,l=!(ax(s.expression)||B6(s.expression)),d=Bi(["<",da([Qo,i("typeAnnotation")]),Qo,">"]),h=[op("("),da([Qo,i("expression")]),Qo,op(")")];return l?lV([[d,i("expression")],[d,Bi(h,{shouldBreak:!0})],[d,i("expression")]]):Bi([d,i("expression")])}function $nn(e,r,i){let{node:s}=e;if(s.type.startsWith("TS")){if(ULt(s))return s.type.slice(2,-7).toLowerCase();switch(s.type){case"TSThisType":return"this";case"TSTypeAssertion":return Bnn(e,r,i);case"TSDeclareFunction":return HMt(e,r,i);case"TSExportAssignment":return["export = ",i("expression"),r.semi?";":""];case"TSModuleBlock":return ojt(e,r,i);case"TSInterfaceBody":case"TSTypeLiteral":return jXe(e,r,i);case"TSTypeAliasDeclaration":return Fjt(e,r,i);case"TSQualifiedName":return[i("left"),".",i("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return pjt(e,r,i);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return _jt(e,r,i);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[i("expression"),i("typeArguments")];case"TSTemplateLiteralType":return TMt(e,r,i);case"TSNamedTupleMember":return Ojt(e,r,i);case"TSRestType":return Njt(e,r,i);case"TSOptionalType":return[i("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return BXe(e,r,i);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Ope(e,r,i,"params");case"TSTypeParameter":return Rjt(e,r,i);case"TSAsExpression":case"TSSatisfiesExpression":return Tjt(e,r,i);case"TSArrayType":return xjt(i);case"TSPropertySignature":return[s.readonly?"readonly ":"",Jpe(e,r,i),U2(e),ox(e,i),j5(e,r)];case"TSParameterProperty":return[YCe(s),s.static?"static ":"",s.override?"override ":"",s.readonly?"readonly ":"",i("parameter")];case"TSTypeQuery":return Mjt(e,i);case"TSIndexSignature":return Lnn(e,r,i);case"TSTypePredicate":return Ljt(e,i);case"TSNonNullExpression":return[i("expression"),"!"];case"TSImportType":return[WCe(e,r,i),s.qualifier?[".",i("qualifier")]:"",Ope(e,r,i,"typeArguments")];case"TSLiteralType":return i("literal");case"TSIndexedAccessType":return Ajt(e,r,i);case"TSTypeOperator":return[s.operator," ",i("typeAnnotation")];case"TSMappedType":return knn(e,r,i);case"TSMethodSignature":return Mnn(e,r,i);case"TSNamespaceExportDeclaration":return["export as namespace ",i("id"),r.semi?";":""];case"TSEnumDeclaration":return Cjt(e,i);case"TSEnumBody":return Ejt(e,r,i);case"TSEnumMember":return kjt(e,i);case"TSImportEqualsDeclaration":return["import ",gjt(s,!1),i("id")," = ",i("moduleReference"),r.semi?";":""];case"TSExternalModuleReference":return WCe(e,r,i);case"TSModuleDeclaration":return jnn(e,r,i);case"TSConditionalType":return zXe(e,r,i);case"TSInferType":return wjt(e,r,i);case"TSIntersectionType":return Ijt(e,r,i);case"TSUnionType":return FMt(e,r,i);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return Djt(e,r,i);case"TSTupleType":return FXe(e,r,i);case"TSTypeReference":return[i("typeName"),Ope(e,r,i,"typeArguments")];case"TSTypeAnnotation":return MMt(e,r,i);case"TSEmptyBodyFunctionExpression":return RXe(e,r,i);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return wLt(e,i,"?");case"TSJSDocNonNullableType":return wLt(e,i,"!");default:throw new GY(s,"TypeScript")}}}function Unn(e,r,i,s){for(let l of[lrn,irn,Rnn,$nn,unn]){let d=l(e,r,i,s);if(d!==void 0)return d}}var znn=Tp(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function qnn(e,r,i,s){e.isRoot&&r.__onHtmlBindingRoot?.(e.node,r);let{node:l}=e,d=MXe(e)?r.originalText.slice(B_(l),T_(l)):Unn(e,r,i,s);if(!d)return"";if(znn(l))return d;let h=Ag(l.decorators),S=frn(e,r,i),b=l.type==="ClassExpression";if(h&&!b)return YZe(d,V=>Bi([S,V]));let A=lB(e,r),L=jtn(e,r);return!S&&!A&&!L?d:YZe(d,V=>[L?";":"",A?"(":"",A&&b&&h?[da([Bs,S,V]),Bs]:[S,V],A?")":""])}var ILt=qnn,Jnn={experimental_avoidAstMutation:!0},Vnn=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],jjt={};uXe(jjt,{getVisitorKeys:()=>Hnn,massageAstNode:()=>Bjt,print:()=>Knn});var FY=[[]],Wnn={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:FY[0],BooleanLiteral:FY[0],StringLiteral:FY[0],NumericLiteral:FY[0],Identifier:FY[0],TemplateLiteral:["quasis"],TemplateElement:FY[0]},Gnn=jLt(Wnn),Hnn=Gnn;function Knn(e,r,i){let{node:s}=e;switch(s.type){case"JsonRoot":return[i("node"),Ia];case"ArrayExpression":{if(s.elements.length===0)return"[]";let l=e.map(()=>e.node===null?"null":i(),"elements");return["[",da([Ia,ud([",",Ia],l)]),Ia,"]"]}case"ObjectExpression":return s.properties.length===0?"{}":["{",da([Ia,ud([",",Ia],e.map(i,"properties"))]),Ia,"}"];case"ObjectProperty":return[i("key"),": ",i("value")];case"UnaryExpression":return[s.operator==="+"?"":s.operator,i("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return s.value?"true":"false";case"StringLiteral":return JSON.stringify(s.value);case"NumericLiteral":return PLt(e)?JSON.stringify(String(s.value)):JSON.stringify(s.value);case"Identifier":return PLt(e)?JSON.stringify(s.name):s.name;case"TemplateLiteral":return i(["quasis",0]);case"TemplateElement":return JSON.stringify(s.value.cooked);default:throw new GY(s,"JSON")}}function PLt(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var Qnn=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function Bjt(e,r){let{type:i}=e;if(i==="ObjectProperty"){let{key:s}=e;s.type==="Identifier"?r.key={type:"StringLiteral",value:s.name}:s.type==="NumericLiteral"&&(r.key={type:"StringLiteral",value:String(s.value)});return}if(i==="UnaryExpression"&&e.operator==="+")return r.argument;if(i==="ArrayExpression"){for(let[s,l]of e.elements.entries())l===null&&r.elements.splice(s,0,{type:"NullLiteral"});return}if(i==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}Bjt.ignoredProperties=Qnn;var Ape={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},rB="JavaScript",Znn={arrowParens:{category:rB,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:Ape.bracketSameLine,objectWrap:Ape.objectWrap,bracketSpacing:Ape.bracketSpacing,jsxBracketSameLine:{category:rB,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:rB,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:rB,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:rB,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:Ape.singleQuote,jsxSingleQuote:{category:rB,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:rB,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:rB,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:Ape.singleAttributePerLine},Xnn=Znn,Ynn={estree:NLt,"estree-json":jjt},ein=[...XQr,...Vnn];var tin=Object.defineProperty,QBt=(e,r)=>{for(var i in r)tin(e,i,{get:r[i],enumerable:!0})},CYe={};QBt(CYe,{parsers:()=>ZBt});var ZBt={};QBt(ZBt,{typescript:()=>f_n});var rin=()=>()=>{},DYe=rin,AYe=(e,r)=>(i,s,...l)=>i|1&&s==null?void 0:(r.call(s)??s[e]).apply(s,l),nin=String.prototype.replaceAll??function(e,r){return e.global?this.replace(e,r):this.split(e).join(r)},iin=AYe("replaceAll",function(){if(typeof this=="string")return nin}),ree=iin,oin="5.9",ky=[],ain=new Map;function Zpe(e){return e!==void 0?e.length:0}function ND(e,r){if(e!==void 0)for(let i=0;i0;return!1}function IYe(e,r){return r===void 0||r.length===0?e:e===void 0||e.length===0?r:[...e,...r]}function pin(e,r,i=NYe){if(e===void 0||r===void 0)return e===r;if(e.length!==r.length)return!1;for(let s=0;se?.at(r):(e,r)=>{if(e!==void 0&&(r=aYe(e,r),r>1),b=i(e[S],S);switch(s(b,r)){case-1:d=S+1;break;case 0:return S;case 1:h=S-1;break}}return~d}function vin(e,r,i,s,l){if(e&&e.length>0){let d=e.length;if(d>0){let h=s===void 0||s<0?0:s,S=l===void 0||h+l>d-1?d-1:h+l,b;for(arguments.length<=2?(b=e[h],h++):b=i;h<=S;)b=r(b,e[h],h),h++;return b}}return i}var t$t=Object.prototype.hasOwnProperty;function T8(e,r){return t$t.call(e,r)}function Sin(e){let r=[];for(let i in e)t$t.call(e,i)&&r.push(i);return r}function bin(){let e=new Map;return e.add=xin,e.remove=Tin,e}function xin(e,r){let i=this.get(e);return i!==void 0?i.push(r):this.set(e,i=[r]),i}function Tin(e,r){let i=this.get(e);i!==void 0&&(Nin(i,r),i.length||this.delete(e))}function Z5(e){return Array.isArray(e)}function JXe(e){return Z5(e)?e:[e]}function Ein(e,r){return e!==void 0&&r(e)?e:void 0}function S8(e,r){return e!==void 0&&r(e)?e:Pi.fail(`Invalid cast. The supplied value ${e} did not pass the test '${Pi.getFunctionName(r)}'.`)}function pee(e){}function kin(){return!0}function wg(e){return e}function Ujt(e){let r;return()=>(e&&(r=e(),e=void 0),r)}function nI(e){let r=new Map;return i=>{let s=`${typeof i}:${i}`,l=r.get(s);return l===void 0&&!r.has(s)&&(l=e(i),r.set(s,l)),l}}function NYe(e,r){return e===r}function OYe(e,r){return e===r||e!==void 0&&r!==void 0&&e.toUpperCase()===r.toUpperCase()}function Cin(e,r){return NYe(e,r)}function Din(e,r){return e===r?0:e===void 0?-1:r===void 0?1:ei?S-i:1),L=Math.floor(r.length>i+S?i+S:r.length);l[0]=S;let V=S;for(let ie=1;iei)return;let j=s;s=l,l=j}let h=s[r.length];return h>i?void 0:h}function Iin(e,r,i){let s=e.length-r.length;return s>=0&&(i?OYe(e.slice(s),r):e.indexOf(r,s)===s)}function Pin(e,r){e[r]=e[e.length-1],e.pop()}function Nin(e,r){return Oin(e,i=>i===r)}function Oin(e,r){for(let i=0;i{let r=0;e.currentLogLevel=2,e.isDebugging=!1;function i(jt){return e.currentLogLevel<=jt}e.shouldLog=i;function s(jt,ea){e.loggingHost&&i(jt)&&e.loggingHost.log(jt,ea)}function l(jt){s(3,jt)}e.log=l,(jt=>{function ea(Jl){s(1,Jl)}jt.error=ea;function Ti(Jl){s(2,Jl)}jt.warn=Ti;function En(Jl){s(3,Jl)}jt.log=En;function Zc(Jl){s(4,Jl)}jt.trace=Zc})(l=e.log||(e.log={}));let d={};function h(){return r}e.getAssertionLevel=h;function S(jt){let ea=r;if(r=jt,jt>ea)for(let Ti of Sin(d)){let En=d[Ti];En!==void 0&&e[Ti]!==En.assertion&&jt>=En.level&&(e[Ti]=En,d[Ti]=void 0)}}e.setAssertionLevel=S;function b(jt){return r>=jt}e.shouldAssert=b;function A(jt,ea){return b(jt)?!0:(d[ea]={level:jt,assertion:e[ea]},e[ea]=pee,!1)}function L(jt,ea){debugger;let Ti=new Error(jt?`Debug Failure. ${jt}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Ti,ea||L),Ti}e.fail=L;function V(jt,ea,Ti){return L(`${ea||"Unexpected node."}\r +Node ${ol(jt.kind)} was unexpected.`,Ti||V)}e.failBadSyntaxKind=V;function j(jt,ea,Ti,En){jt||(ea=ea?`False expression: ${ea}`:"False expression.",Ti&&(ea+=`\r +Verbose Debug Information: `+(typeof Ti=="string"?Ti:Ti())),L(ea,En||j))}e.assert=j;function ie(jt,ea,Ti,En,Zc){if(jt!==ea){let Jl=Ti?En?`${Ti} ${En}`:Ti:"";L(`Expected ${jt} === ${ea}. ${Jl}`,Zc||ie)}}e.assertEqual=ie;function te(jt,ea,Ti,En){jt>=ea&&L(`Expected ${jt} < ${ea}. ${Ti||""}`,En||te)}e.assertLessThan=te;function X(jt,ea,Ti){jt>ea&&L(`Expected ${jt} <= ${ea}`,Ti||X)}e.assertLessThanOrEqual=X;function Re(jt,ea,Ti){jt= ${ea}`,Ti||Re)}e.assertGreaterThanOrEqual=Re;function Je(jt,ea,Ti){jt==null&&L(ea,Ti||Je)}e.assertIsDefined=Je;function pt(jt,ea,Ti){return Je(jt,ea,Ti||pt),jt}e.checkDefined=pt;function $e(jt,ea,Ti){for(let En of jt)Je(En,ea,Ti||$e)}e.assertEachIsDefined=$e;function xt(jt,ea,Ti){return $e(jt,ea,Ti||xt),jt}e.checkEachDefined=xt;function tr(jt,ea="Illegal value:",Ti){let En=typeof jt=="object"&&T8(jt,"kind")&&T8(jt,"pos")?"SyntaxKind: "+ol(jt.kind):JSON.stringify(jt);return L(`${ea} ${En}`,Ti||tr)}e.assertNever=tr;function ht(jt,ea,Ti,En){A(1,"assertEachNode")&&j(ea===void 0||wYe(jt,ea),Ti||"Unexpected node.",()=>`Node array did not pass test '${Lo(ea)}'.`,En||ht)}e.assertEachNode=ht;function wt(jt,ea,Ti,En){A(1,"assertNode")&&j(jt!==void 0&&(ea===void 0||ea(jt)),Ti||"Unexpected node.",()=>`Node ${ol(jt?.kind)} did not pass test '${Lo(ea)}'.`,En||wt)}e.assertNode=wt;function Ut(jt,ea,Ti,En){A(1,"assertNotNode")&&j(jt===void 0||ea===void 0||!ea(jt),Ti||"Unexpected node.",()=>`Node ${ol(jt.kind)} should not have passed test '${Lo(ea)}'.`,En||Ut)}e.assertNotNode=Ut;function hr(jt,ea,Ti,En){A(1,"assertOptionalNode")&&j(ea===void 0||jt===void 0||ea(jt),Ti||"Unexpected node.",()=>`Node ${ol(jt?.kind)} did not pass test '${Lo(ea)}'.`,En||hr)}e.assertOptionalNode=hr;function Hi(jt,ea,Ti,En){A(1,"assertOptionalToken")&&j(ea===void 0||jt===void 0||jt.kind===ea,Ti||"Unexpected node.",()=>`Node ${ol(jt?.kind)} was not a '${ol(ea)}' token.`,En||Hi)}e.assertOptionalToken=Hi;function un(jt,ea,Ti){A(1,"assertMissingNode")&&j(jt===void 0,ea||"Unexpected node.",()=>`Node ${ol(jt.kind)} was unexpected'.`,Ti||un)}e.assertMissingNode=un;function xo(jt){}e.type=xo;function Lo(jt){if(typeof jt!="function")return"";if(T8(jt,"name"))return jt.name;{let ea=Function.prototype.toString.call(jt),Ti=/^function\s+([\w$]+)\s*\(/.exec(ea);return Ti?Ti[1]:""}}e.getFunctionName=Lo;function yr(jt){return`{ name: ${l_e(jt.escapedName)}; flags: ${Wn(jt.flags)}; declarations: ${oYe(jt.declarations,ea=>ol(ea.kind))} }`}e.formatSymbol=yr;function co(jt=0,ea,Ti){let En=Cr(ea);if(jt===0)return En.length>0&&En[0][0]===0?En[0][1]:"0";if(Ti){let Zc=[],Jl=jt;for(let[zd,pu]of En){if(zd>jt)break;zd!==0&&zd&jt&&(Zc.push(pu),Jl&=~zd)}if(Jl===0)return Zc.join("|")}else for(let[Zc,Jl]of En)if(Zc===jt)return Jl;return jt.toString()}e.formatEnum=co;let Cs=new Map;function Cr(jt){let ea=Cs.get(jt);if(ea)return ea;let Ti=[];for(let Zc in jt){let Jl=jt[Zc];typeof Jl=="number"&&Ti.push([Jl,Zc])}let En=fin(Ti,(Zc,Jl)=>r$t(Zc[0],Jl[0]));return Cs.set(jt,En),En}function ol(jt){return co(jt,Xl,!1)}e.formatSyntaxKind=ol;function Zo(jt){return co(jt,p$t,!1)}e.formatSnippetKind=Zo;function Rc(jt){return co(jt,G5,!1)}e.formatScriptKind=Rc;function an(jt){return co(jt,PD,!0)}e.formatNodeFlags=an;function Xr(jt){return co(jt,a$t,!0)}e.formatNodeCheckFlags=Xr;function li(jt){return co(jt,n$t,!0)}e.formatModifierFlags=li;function Wi(jt){return co(jt,u$t,!0)}e.formatTransformFlags=Wi;function Bo(jt){return co(jt,_$t,!0)}e.formatEmitFlags=Bo;function Wn(jt){return co(jt,o$t,!0)}e.formatSymbolFlags=Wn;function Na(jt){return co(jt,TT,!0)}e.formatTypeFlags=Na;function hs(jt){return co(jt,c$t,!0)}e.formatSignatureFlags=hs;function Us(jt){return co(jt,s$t,!0)}e.formatObjectFlags=Us;function Sc(jt){return co(jt,cYe,!0)}e.formatFlowFlags=Sc;function Wu(jt){return co(jt,i$t,!0)}e.formatRelationComparisonResult=Wu;function uc(jt){return co(jt,CheckMode,!0)}e.formatCheckMode=uc;function Pt(jt){return co(jt,SignatureCheckMode,!0)}e.formatSignatureCheckMode=Pt;function ou(jt){return co(jt,TypeFacts,!0)}e.formatTypeFacts=ou;let go=!1,mc;function zp(jt){"__debugFlowFlags"in jt||Object.defineProperties(jt,{__tsDebuggerDisplay:{value(){let ea=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",Ti=this.flags&-2048;return`${ea}${Ti?` (${Sc(Ti)})`:""}`}},__debugFlowFlags:{get(){return co(this.flags,cYe,!0)}},__debugToString:{value(){return cb(this)}}})}function Rh(jt){return go&&(typeof Object.setPrototypeOf=="function"?(mc||(mc=Object.create(Object.prototype),zp(mc)),Object.setPrototypeOf(jt,mc)):zp(jt)),jt}e.attachFlowNodeDebugInfo=Rh;let K0;function rf(jt){"__tsDebuggerDisplay"in jt||Object.defineProperties(jt,{__tsDebuggerDisplay:{value(ea){return ea=String(ea).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${ea}`}}})}function vx(jt){go&&(typeof Object.setPrototypeOf=="function"?(K0||(K0=Object.create(Array.prototype),rf(K0)),Object.setPrototypeOf(jt,K0)):rf(jt))}e.attachNodeArrayDebugInfo=vx;function dy(){if(go)return;let jt=new WeakMap,ea=new WeakMap;Object.defineProperties(Ey.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let En=this.flags&33554432?"TransientSymbol":"Symbol",Zc=this.flags&-33554433;return`${En} '${pYe(this)}'${Zc?` (${Wn(Zc)})`:""}`}},__debugFlags:{get(){return Wn(this.flags)}}}),Object.defineProperties(Ey.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let En=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Zc=this.flags&524288?this.objectFlags&-1344:0;return`${En}${this.symbol?` '${pYe(this.symbol)}'`:""}${Zc?` (${Us(Zc)})`:""}`}},__debugFlags:{get(){return Na(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Us(this.objectFlags):""}},__debugTypeToString:{value(){let En=jt.get(this);return En===void 0&&(En=this.checker.typeToString(this),jt.set(this,En)),En}}}),Object.defineProperties(Ey.getSignatureConstructor().prototype,{__debugFlags:{get(){return hs(this.flags)}},__debugSignatureToString:{value(){var En;return(En=this.checker)==null?void 0:En.signatureToString(this)}}});let Ti=[Ey.getNodeConstructor(),Ey.getIdentifierConstructor(),Ey.getTokenConstructor(),Ey.getSourceFileConstructor()];for(let En of Ti)T8(En.prototype,"__debugKind")||Object.defineProperties(En.prototype,{__tsDebuggerDisplay:{value(){return`${iee(this)?"GeneratedIdentifier":Kd(this)?`Identifier '${Ek(this)}'`:NV(this)?`PrivateIdentifier '${Ek(this)}'`:uee(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:dee(this)?`NumericLiteral ${this.text}`:Hsn(this)?`BigIntLiteral ${this.text}n`:aUt(this)?"TypeParameterDeclaration":xDe(this)?"ParameterDeclaration":sUt(this)?"ConstructorDeclaration":yYe(this)?"GetAccessorDeclaration":EDe(this)?"SetAccessorDeclaration":rcn(this)?"CallSignatureDeclaration":ncn(this)?"ConstructSignatureDeclaration":cUt(this)?"IndexSignatureDeclaration":icn(this)?"TypePredicateNode":lUt(this)?"TypeReferenceNode":uUt(this)?"FunctionTypeNode":pUt(this)?"ConstructorTypeNode":ocn(this)?"TypeQueryNode":acn(this)?"TypeLiteralNode":scn(this)?"ArrayTypeNode":ccn(this)?"TupleTypeNode":ucn(this)?"OptionalTypeNode":pcn(this)?"RestTypeNode":_cn(this)?"UnionTypeNode":dcn(this)?"IntersectionTypeNode":fcn(this)?"ConditionalTypeNode":mcn(this)?"InferTypeNode":hcn(this)?"ParenthesizedTypeNode":gcn(this)?"ThisTypeNode":ycn(this)?"TypeOperatorNode":vcn(this)?"IndexedAccessTypeNode":Scn(this)?"MappedTypeNode":bcn(this)?"LiteralTypeNode":lcn(this)?"NamedTupleMember":xcn(this)?"ImportTypeNode":ol(this.kind)}${this.flags?` (${an(this.flags)})`:""}`}},__debugKind:{get(){return ol(this.kind)}},__debugNodeFlags:{get(){return an(this.flags)}},__debugModifierFlags:{get(){return li(isn(this))}},__debugTransformFlags:{get(){return Wi(this.transformFlags)}},__debugIsParseTreeNode:{get(){return vDe(this)}},__debugEmitFlags:{get(){return Bo(lee(this))}},__debugGetText:{value(Zc){if(YY(this))return"";let Jl=ea.get(this);if(Jl===void 0){let zd=yon(this),pu=zd&&hB(zd);Jl=pu?rBt(pu,zd,Zc):"",ea.set(this,Jl)}return Jl}}});go=!0}e.enableDebugInfo=dy;function vm(jt){let ea=jt&7,Ti=ea===0?"in out":ea===3?"[bivariant]":ea===2?"in":ea===1?"out":ea===4?"[independent]":"";return jt&8?Ti+=" (unmeasurable)":jt&16&&(Ti+=" (unreliable)"),Ti}e.formatVariance=vm;class O1{__debugToString(){var ea;switch(this.kind){case 3:return((ea=this.debugInfo)==null?void 0:ea.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return $jt(this.sources,this.targets||oYe(this.sources,()=>"any"),(Ti,En)=>`${Ti.__debugTypeToString()} -> ${typeof En=="string"?En:En.__debugTypeToString()}`).join(", ");case 2:return $jt(this.sources,this.targets,(Ti,En)=>`${Ti.__debugTypeToString()} -> ${En().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +`).join(` + `)} +m2: ${this.mapper2.__debugToString().split(` +`).join(` + `)}`;default:return tr(this)}}}e.DebugTypeMapper=O1;function __(jt){return e.isDebugging?Object.setPrototypeOf(jt,O1.prototype):jt}e.attachDebugPrototypeIfDebug=__;function Bc(jt){return console.log(cb(jt))}e.printControlFlowGraph=Bc;function cb(jt){let ea=-1;function Ti(qe){return qe.id||(qe.id=ea,ea--),qe.id}let En;(qe=>{qe.lr="\u2500",qe.ud="\u2502",qe.dr="\u256D",qe.dl="\u256E",qe.ul="\u256F",qe.ur="\u2570",qe.udr="\u251C",qe.udl="\u2524",qe.dlr="\u252C",qe.ulr="\u2534",qe.udlr="\u256B"})(En||(En={}));let Zc;(qe=>{qe[qe.None=0]="None",qe[qe.Up=1]="Up",qe[qe.Down=2]="Down",qe[qe.Left=4]="Left",qe[qe.Right=8]="Right",qe[qe.UpDown=3]="UpDown",qe[qe.LeftRight=12]="LeftRight",qe[qe.UpLeft=5]="UpLeft",qe[qe.UpRight=9]="UpRight",qe[qe.DownLeft=6]="DownLeft",qe[qe.DownRight=10]="DownRight",qe[qe.UpDownLeft=7]="UpDownLeft",qe[qe.UpDownRight=11]="UpDownRight",qe[qe.UpLeftRight=13]="UpLeftRight",qe[qe.DownLeftRight=14]="DownLeftRight",qe[qe.UpDownLeftRight=15]="UpDownLeftRight",qe[qe.NoChildren=16]="NoChildren"})(Zc||(Zc={}));let Jl=2032,zd=882,pu=Object.create(null),Tf=[],or=[],Gr=Ja(jt,new Set);for(let qe of Tf)qe.text=Lu(qe.flowNode,qe.circular),rs(qe);let pi=Yl(Gr),ia=nl(pi);return eu(Gr,0),aS();function To(qe){return!!(qe.flags&128)}function Gu(qe){return!!(qe.flags&12)&&!!qe.antecedent}function Yr(qe){return!!(qe.flags&Jl)}function Sn(qe){return!!(qe.flags&zd)}function to(qe){let yl=[];for(let _l of qe.edges)_l.source===qe&&yl.push(_l.target);return yl}function us(qe){let yl=[];for(let _l of qe.edges)_l.target===qe&&yl.push(_l.source);return yl}function Ja(qe,yl){let _l=Ti(qe),bi=pu[_l];if(bi&&yl.has(qe))return bi.circular=!0,bi={id:-1,flowNode:qe,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Tf.push(bi),bi;if(yl.add(qe),!bi)if(pu[_l]=bi={id:_l,flowNode:qe,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Tf.push(bi),Gu(qe))for(let tu of qe.antecedent)pc(bi,tu,yl);else Yr(qe)&&pc(bi,qe.antecedent,yl);return yl.delete(qe),bi}function pc(qe,yl,_l){let bi=Ja(yl,_l),tu={source:qe,target:bi};or.push(tu),qe.edges.push(tu),bi.edges.push(tu)}function rs(qe){if(qe.level!==-1)return qe.level;let yl=0;for(let _l of us(qe))yl=Math.max(yl,rs(_l)+1);return qe.level=yl}function Yl(qe){let yl=0;for(let _l of to(qe))yl=Math.max(yl,Yl(_l));return yl+1}function nl(qe){let yl=Jn(Array(qe),0);for(let _l of Tf)yl[_l.level]=Math.max(yl[_l.level],_l.text.length);return yl}function eu(qe,yl){if(qe.lane===-1){qe.lane=yl,qe.endLane=yl;let _l=to(qe);for(let bi=0;bi<_l.length;bi++){bi>0&&yl++;let tu=_l[bi];eu(tu,yl),tu.endLane>qe.endLane&&(yl=tu.endLane)}qe.endLane=yl}}function Ho(qe){if(qe&2)return"Start";if(qe&4)return"Branch";if(qe&8)return"Loop";if(qe&16)return"Assignment";if(qe&32)return"True";if(qe&64)return"False";if(qe&128)return"SwitchClause";if(qe&256)return"ArrayMutation";if(qe&512)return"Call";if(qe&1024)return"ReduceLabel";if(qe&1)return"Unreachable";throw new Error}function Q0(qe){let yl=hB(qe);return rBt(yl,qe,!1)}function Lu(qe,yl){let _l=Ho(qe.flags);if(yl&&(_l=`${_l}#${Ti(qe)}`),To(qe)){let bi=[],{switchStatement:tu,clauseStart:Pg,clauseEnd:Du}=qe.node;for(let qp=Pg;qpDu.lane)+1,_l=Jn(Array(yl),""),bi=ia.map(()=>Array(yl)),tu=ia.map(()=>Jn(Array(yl),0));for(let Du of Tf){bi[Du.level][Du.lane]=Du;let qp=to(Du);for(let zm=0;zm0&&(d_|=1),zm0&&(d_|=1),zm0?tu[Du-1][qp]:0,zm=qp>0?tu[Du][qp-1]:0,ja=tu[Du][qp];ja||(Lh&8&&(ja|=12),zm&2&&(ja|=3),tu[Du][qp]=ja)}for(let Du=0;Du0?qe.repeat(yl):"";let _l="";for(;_l.length{},Fin=()=>{},lDe,Xl=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.AssertClause=301]="AssertClause",e[e.AssertEntry=302]="AssertEntry",e[e.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",e[e.PropertyAssignment=304]="PropertyAssignment",e[e.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",e[e.SpreadAssignment=306]="SpreadAssignment",e[e.EnumMember=307]="EnumMember",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.JSDocTypeExpression=310]="JSDocTypeExpression",e[e.JSDocNameReference=311]="JSDocNameReference",e[e.JSDocMemberName=312]="JSDocMemberName",e[e.JSDocAllType=313]="JSDocAllType",e[e.JSDocUnknownType=314]="JSDocUnknownType",e[e.JSDocNullableType=315]="JSDocNullableType",e[e.JSDocNonNullableType=316]="JSDocNonNullableType",e[e.JSDocOptionalType=317]="JSDocOptionalType",e[e.JSDocFunctionType=318]="JSDocFunctionType",e[e.JSDocVariadicType=319]="JSDocVariadicType",e[e.JSDocNamepathType=320]="JSDocNamepathType",e[e.JSDoc=321]="JSDoc",e[e.JSDocComment=321]="JSDocComment",e[e.JSDocText=322]="JSDocText",e[e.JSDocTypeLiteral=323]="JSDocTypeLiteral",e[e.JSDocSignature=324]="JSDocSignature",e[e.JSDocLink=325]="JSDocLink",e[e.JSDocLinkCode=326]="JSDocLinkCode",e[e.JSDocLinkPlain=327]="JSDocLinkPlain",e[e.JSDocTag=328]="JSDocTag",e[e.JSDocAugmentsTag=329]="JSDocAugmentsTag",e[e.JSDocImplementsTag=330]="JSDocImplementsTag",e[e.JSDocAuthorTag=331]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",e[e.JSDocClassTag=333]="JSDocClassTag",e[e.JSDocPublicTag=334]="JSDocPublicTag",e[e.JSDocPrivateTag=335]="JSDocPrivateTag",e[e.JSDocProtectedTag=336]="JSDocProtectedTag",e[e.JSDocReadonlyTag=337]="JSDocReadonlyTag",e[e.JSDocOverrideTag=338]="JSDocOverrideTag",e[e.JSDocCallbackTag=339]="JSDocCallbackTag",e[e.JSDocOverloadTag=340]="JSDocOverloadTag",e[e.JSDocEnumTag=341]="JSDocEnumTag",e[e.JSDocParameterTag=342]="JSDocParameterTag",e[e.JSDocReturnTag=343]="JSDocReturnTag",e[e.JSDocThisTag=344]="JSDocThisTag",e[e.JSDocTypeTag=345]="JSDocTypeTag",e[e.JSDocTemplateTag=346]="JSDocTemplateTag",e[e.JSDocTypedefTag=347]="JSDocTypedefTag",e[e.JSDocSeeTag=348]="JSDocSeeTag",e[e.JSDocPropertyTag=349]="JSDocPropertyTag",e[e.JSDocThrowsTag=350]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",e[e.JSDocImportTag=352]="JSDocImportTag",e[e.SyntaxList=353]="SyntaxList",e[e.NotEmittedStatement=354]="NotEmittedStatement",e[e.NotEmittedTypeElement=355]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",e[e.Count=359]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=166]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=310]="FirstJSDocNode",e[e.LastJSDocNode=352]="LastJSDocNode",e[e.FirstJSDocTagNode=328]="FirstJSDocTagNode",e[e.LastJSDocTagNode=352]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e))(Xl||{}),PD=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(PD||{}),n$t=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(n$t||{}),i$t=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(i$t||{}),cYe=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(cYe||{}),o$t=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(o$t||{}),a$t=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(a$t||{}),TT=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(TT||{}),s$t=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(s$t||{}),c$t=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(c$t||{}),G5=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(G5||{}),FYe=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(FYe||{}),l$t=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(l$t||{}),iI=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(iI||{}),u$t=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(u$t||{}),p$t=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(p$t||{}),_$t=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(_$t||{}),Vpe={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},d$t={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},Ype=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(Ype||{}),K5="/",Rin="\\",qjt="://",Lin=/\\/g;function Min(e){return e===47||e===92}function jin(e,r){return e.length>r.length&&Iin(e,r)}function RYe(e){return e.length>0&&Min(e.charCodeAt(e.length-1))}function Jjt(e){return e>=97&&e<=122||e>=65&&e<=90}function Bin(e,r){let i=e.charCodeAt(r);if(i===58)return r+1;if(i===37&&e.charCodeAt(r+1)===51){let s=e.charCodeAt(r+2);if(s===97||s===65)return r+3}return-1}function $in(e){if(!e)return 0;let r=e.charCodeAt(0);if(r===47||r===92){if(e.charCodeAt(1)!==r)return 1;let s=e.indexOf(r===47?K5:Rin,2);return s<0?e.length:s+1}if(Jjt(r)&&e.charCodeAt(1)===58){let s=e.charCodeAt(2);if(s===47||s===92)return 3;if(e.length===2)return 2}let i=e.indexOf(qjt);if(i!==-1){let s=i+qjt.length,l=e.indexOf(K5,s);if(l!==-1){let d=e.slice(0,i),h=e.slice(s,l);if(d==="file"&&(h===""||h==="localhost")&&Jjt(e.charCodeAt(l+1))){let S=Bin(e,l+2);if(S!==-1){if(e.charCodeAt(S)===47)return~(S+1);if(S===e.length)return~S}}return~(l+1)}return~e.length}return 0}function s_e(e){let r=$in(e);return r<0?~r:r}function f$t(e,r,i){if(e=c_e(e),s_e(e)===e.length)return"";e=gDe(e);let s=e.slice(Math.max(s_e(e),e.lastIndexOf(K5)+1)),l=r!==void 0&&i!==void 0?m$t(s,r,i):void 0;return l?s.slice(0,s.length-l.length):s}function Vjt(e,r,i){if(hDe(r,".")||(r="."+r),e.length>=r.length&&e.charCodeAt(e.length-r.length)===46){let s=e.slice(e.length-r.length);if(i(s,r))return s}}function Uin(e,r,i){if(typeof r=="string")return Vjt(e,r,i)||"";for(let s of r){let l=Vjt(e,s,i);if(l)return l}return""}function m$t(e,r,i){if(r)return Uin(gDe(e),r,i?OYe:Cin);let s=f$t(e),l=s.lastIndexOf(".");return l>=0?s.substring(l):""}function c_e(e){return e.includes("\\")?e.replace(Lin,K5):e}function zin(e,...r){e&&(e=c_e(e));for(let i of r)i&&(i=c_e(i),!e||s_e(i)!==0?e=i:e=g$t(e)+i);return e}function qin(e,r){let i=s_e(e);i===0&&r?(e=zin(r,e),i=s_e(e)):e=c_e(e);let s=h$t(e);if(s!==void 0)return s.length>i?gDe(s):s;let l=e.length,d=e.substring(0,i),h,S=i,b=S,A=S,L=i!==0;for(;Sb&&(h??(h=e.substring(0,b-1)),b=S);let j=e.indexOf(K5,S+1);j===-1&&(j=l);let ie=j-b;if(ie===1&&e.charCodeAt(S)===46)h??(h=e.substring(0,A));else if(ie===2&&e.charCodeAt(S)===46&&e.charCodeAt(S+1)===46)if(!L)h!==void 0?h+=h.length===i?"..":"/..":A=S+2;else if(h===void 0)A-2>=0?h=e.substring(0,Math.max(i,e.lastIndexOf(K5,A-2))):h=e.substring(0,A);else{let te=h.lastIndexOf(K5);te!==-1?h=h.substring(0,Math.max(i,te)):h=d,h.length===i&&(L=i!==0)}else h!==void 0?(h.length!==i&&(h+=K5),L=!0,h+=e.substring(b,j)):(L=!0,A=j);S=j+1}return h??(l>i?gDe(e):e)}function Jin(e){e=c_e(e);let r=h$t(e);return r!==void 0?r:(r=qin(e,""),r&&RYe(e)?g$t(r):r)}function h$t(e){if(!Wjt.test(e))return e;let r=e.replace(/\/\.\//g,"/");if(r.startsWith("./")&&(r=r.slice(2)),r!==e&&(e=r,!Wjt.test(e)))return e}function gDe(e){return RYe(e)?e.substr(0,e.length-1):e}function g$t(e){return RYe(e)?e:e+K5}var Wjt=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function N(e,r,i,s,l,d,h){return{code:e,category:r,key:i,message:s,reportsUnnecessary:l,elidedInCompatabilityPyramid:d,reportsDeprecated:h}}var _n={Unterminated_string_literal:N(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:N(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:N(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:N(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:N(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:N(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:N(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:N(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:N(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:N(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:N(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:N(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:N(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:N(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:N(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:N(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:N(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:N(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:N(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:N(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:N(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:N(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:N(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:N(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:N(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:N(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:N(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:N(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:N(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:N(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:N(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:N(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:N(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:N(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:N(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:N(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:N(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:N(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:N(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:N(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:N(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:N(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:N(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:N(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:N(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:N(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:N(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:N(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:N(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:N(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:N(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:N(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:N(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:N(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:N(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:N(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:N(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:N(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:N(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:N(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:N(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:N(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:N(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:N(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:N(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:N(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:N(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:N(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:N(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:N(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:N(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:N(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:N(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:N(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:N(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:N(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:N(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:N(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:N(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:N(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:N(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:N(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:N(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:N(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:N(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:N(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:N(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:N(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:N(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:N(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:N(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:N(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:N(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:N(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:N(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:N(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:N(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:N(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:N(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:N(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:N(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:N(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:N(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:N(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:N(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:N(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:N(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:N(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:N(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:N(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:N(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:N(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:N(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:N(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:N(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:N(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:N(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:N(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:N(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:N(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:N(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:N(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:N(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:N(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:N(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:N(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:N(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:N(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:N(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:N(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:N(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:N(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:N(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:N(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:N(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:N(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:N(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:N(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:N(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:N(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:N(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:N(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:N(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:N(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:N(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:N(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:N(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:N(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:N(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:N(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:N(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:N(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:N(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:N(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:N(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:N(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:N(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:N(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:N(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:N(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:N(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:N(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:N(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:N(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:N(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:N(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:N(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:N(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:N(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:N(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:N(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:N(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:N(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:N(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:N(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:N(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:N(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:N(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:N(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:N(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:N(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:N(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:N(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:N(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:N(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:N(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:N(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:N(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:N(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:N(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:N(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:N(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:N(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:N(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:N(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:N(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:N(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:N(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:N(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:N(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:N(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:N(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:N(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:N(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:N(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:N(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:N(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:N(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:N(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:N(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:N(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:N(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:N(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:N(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:N(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:N(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:N(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:N(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:N(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:N(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:N(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:N(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:N(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:N(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:N(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:N(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:N(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:N(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:N(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:N(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:N(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:N(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:N(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:N(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:N(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:N(1286,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:N(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:N(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:N(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:N(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:N(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:N(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:N(1293,1,"ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:N(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:N(1295,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript."),with_statements_are_not_allowed_in_an_async_function_block:N(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:N(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:N(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:N(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:N(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:N(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:N(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:N(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:N(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:N(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:N(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:N(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:N(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:N(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext:N(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:N(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:N(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:N(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:N(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:N(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:N(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:N(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:N(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:N(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:N(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:N(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:N(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:N(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:N(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:N(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:N(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:N(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext:N(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'."),A_label_is_not_allowed_here:N(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:N(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:N(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:N(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:N(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:N(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:N(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:N(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:N(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:N(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:N(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:N(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:N(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:N(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:N(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:N(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:N(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:N(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:N(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:N(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:N(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:N(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:N(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:N(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:N(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:N(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:N(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:N(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:N(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:N(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:N(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:N(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:N(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:N(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:N(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:N(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:N(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:N(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:N(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:N(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:N(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:N(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:N(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:N(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:N(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:N(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:N(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:N(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:N(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:N(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:N(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:N(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:N(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:N(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:N(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:N(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:N(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:N(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:N(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:N(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:N(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:N(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:N(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:N(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:N(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:N(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:N(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:N(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:N(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:N(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:N(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:N(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:N(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:N(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:N(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:N(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:N(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:N(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:N(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:N(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:N(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:N(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:N(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:N(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:N(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:N(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:N(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:N(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:N(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:N(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:N(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:N(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:N(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:N(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:N(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:N(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:N(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:N(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:N(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:N(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:N(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:N(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:N(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:N(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:N(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:N(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:N(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:N(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:N(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:N(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:N(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:N(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:N(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:N(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:N(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:N(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:N(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:N(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:N(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:N(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:N(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:N(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:N(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:N(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:N(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:N(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:N(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:N(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:N(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:N(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:N(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:N(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:N(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:N(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:N(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:N(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:N(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:N(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:N(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:N(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:N(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:N(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:N(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:N(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:N(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:N(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:N(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:N(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:N(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:N(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:N(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:N(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:N(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:N(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:N(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:N(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:N(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:N(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:N(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:N(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:N(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:N(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:N(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:N(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:N(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:N(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:N(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:N(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:N(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:N(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:N(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:N(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:N(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:N(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:N(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:N(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:N(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:N(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:N(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:N(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:N(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:N(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),using_declarations_are_not_allowed_in_ambient_contexts:N(1545,1,"using_declarations_are_not_allowed_in_ambient_contexts_1545","'using' declarations are not allowed in ambient contexts."),await_using_declarations_are_not_allowed_in_ambient_contexts:N(1546,1,"await_using_declarations_are_not_allowed_in_ambient_contexts_1546","'await using' declarations are not allowed in ambient contexts."),The_types_of_0_are_incompatible_between_these_types:N(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:N(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:N(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:N(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:N(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:N(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:N(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:N(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:N(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:N(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:N(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:N(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:N(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:N(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:N(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:N(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:N(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:N(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:N(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:N(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:N(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:N(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:N(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:N(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:N(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:N(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:N(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:N(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:N(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:N(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:N(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:N(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:N(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:N(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:N(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:N(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:N(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:N(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:N(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:N(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:N(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:N(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:N(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:N(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:N(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:N(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:N(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:N(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:N(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:N(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:N(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:N(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:N(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:N(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:N(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:N(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:N(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:N(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:N(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:N(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:N(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:N(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:N(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:N(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:N(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:N(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:N(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:N(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:N(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:N(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:N(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:N(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:N(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:N(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:N(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:N(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:N(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:N(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:N(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:N(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:N(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:N(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:N(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:N(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:N(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:N(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:N(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:N(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:N(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:N(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:N(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:N(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:N(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:N(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:N(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:N(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:N(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:N(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:N(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:N(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:N(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:N(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:N(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:N(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:N(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:N(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:N(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:N(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:N(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:N(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:N(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:N(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:N(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:N(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:N(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:N(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:N(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:N(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:N(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:N(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:N(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:N(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:N(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:N(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:N(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:N(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:N(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:N(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:N(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:N(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:N(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:N(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:N(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:N(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:N(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:N(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:N(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:N(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:N(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:N(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:N(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:N(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:N(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:N(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:N(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:N(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:N(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:N(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:N(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:N(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:N(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:N(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:N(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:N(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:N(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:N(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:N(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:N(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:N(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:N(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:N(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:N(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:N(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:N(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:N(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:N(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:N(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:N(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:N(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:N(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:N(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:N(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:N(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:N(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:N(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:N(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:N(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:N(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:N(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:N(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:N(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:N(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:N(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:N(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:N(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:N(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:N(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:N(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:N(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:N(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:N(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:N(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:N(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:N(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:N(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:N(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:N(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:N(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:N(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:N(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:N(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:N(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:N(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:N(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:N(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:N(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:N(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:N(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:N(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:N(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:N(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:N(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:N(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:N(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:N(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:N(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:N(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:N(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:N(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:N(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:N(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:N(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:N(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:N(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:N(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:N(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:N(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:N(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:N(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:N(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:N(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:N(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:N(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:N(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:N(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:N(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:N(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:N(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:N(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:N(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:N(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:N(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:N(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:N(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:N(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:N(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:N(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:N(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:N(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:N(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:N(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:N(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:N(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:N(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:N(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:N(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:N(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:N(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:N(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:N(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:N(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:N(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:N(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:N(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:N(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:N(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:N(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:N(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:N(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:N(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:N(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:N(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:N(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:N(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:N(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:N(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:N(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:N(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:N(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:N(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:N(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:N(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:N(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:N(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:N(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:N(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:N(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:N(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:N(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:N(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:N(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:N(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:N(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:N(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:N(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:N(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:N(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:N(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:N(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:N(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:N(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:N(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:N(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:N(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:N(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:N(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:N(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:N(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:N(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:N(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:N(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:N(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:N(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:N(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:N(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:N(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:N(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:N(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:N(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:N(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:N(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:N(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:N(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:N(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:N(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:N(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:N(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:N(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:N(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:N(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:N(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:N(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:N(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:N(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:N(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:N(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:N(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:N(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:N(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:N(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:N(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:N(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:N(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:N(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:N(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:N(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:N(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:N(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:N(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:N(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:N(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:N(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:N(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:N(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:N(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:N(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:N(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:N(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:N(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:N(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:N(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:N(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:N(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:N(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:N(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:N(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:N(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:N(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:N(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:N(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:N(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:N(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:N(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:N(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:N(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:N(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:N(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:N(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:N(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:N(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:N(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:N(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:N(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:N(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:N(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:N(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:N(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:N(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:N(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:N(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:N(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:N(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0:N(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 and above with module {0}."),Cannot_find_lib_definition_for_0:N(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:N(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:N(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:N(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:N(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:N(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:N(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:N(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:N(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:N(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:N(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:N(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:N(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:N(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:N(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:N(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:N(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:N(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:N(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:N(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:N(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:N(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:N(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:N(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:N(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:N(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:N(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:N(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:N(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:N(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:N(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:N(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:N(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:N(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:N(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:N(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:N(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:N(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:N(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:N(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:N(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:N(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:N(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:N(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:N(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:N(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:N(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:N(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:N(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:N(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:N(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:N(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:N(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:N(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:N(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:N(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:N(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:N(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:N(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:N(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:N(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:N(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:N(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:N(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:N(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:N(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:N(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:N(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:N(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:N(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:N(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:N(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:N(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:N(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:N(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:N(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:N(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:N(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:N(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:N(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:N(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:N(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:N(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:N(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:N(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:N(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:N(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:N(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks:N(2815,1,"arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815","'arguments' cannot be referenced in property initializers or class static initialization blocks."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:N(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:N(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:N(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:N(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:N(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:N(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:N(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:N(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:N(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:N(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:N(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:N(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:N(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:N(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:N(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:N(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:N(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:N(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:N(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:N(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:N(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:N(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:N(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:N(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:N(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:N(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:N(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:N(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:N(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:N(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:N(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:N(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:N(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:N(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:N(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:N(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:N(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:N(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:N(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:N(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:N(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:N(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:N(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:N(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:N(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:N(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:N(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:N(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:N(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:N(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:N(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:N(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:N(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:N(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),This_expression_is_never_nullish:N(2881,1,"This_expression_is_never_nullish_2881","This expression is never nullish."),Import_declaration_0_is_using_private_name_1:N(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:N(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:N(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:N(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:N(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:N(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:N(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:N(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:N(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:N(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:N(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:N(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:N(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:N(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:N(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:N(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:N(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:N(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:N(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:N(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:N(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:N(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:N(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:N(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:N(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:N(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:N(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:N(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:N(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:N(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:N(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:N(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:N(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:N(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:N(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:N(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:N(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:N(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:N(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:N(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:N(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:N(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:N(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:N(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:N(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:N(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:N(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:N(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:N(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:N(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:N(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:N(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:N(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:N(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:N(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:N(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:N(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:N(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:N(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:N(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:N(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:N(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:N(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:N(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:N(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:N(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:N(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:N(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:N(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:N(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:N(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:N(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:N(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:N(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:N(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:N(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:N(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:N(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:N(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:N(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),The_current_host_does_not_support_the_0_option:N(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:N(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:N(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:N(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:N(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:N(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:N(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:N(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:N(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:N(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:N(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:N(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:N(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:N(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:N(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:N(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:N(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:N(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:N(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:N(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:N(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:N(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:N(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:N(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:N(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:N(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:N(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:N(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:N(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:N(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:N(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:N(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:N(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:N(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:N(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:N(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:N(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:N(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:N(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:N(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:N(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:N(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:N(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:N(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:N(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:N(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:N(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:N(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:N(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:N(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:N(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:N(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:N(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:N(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:N(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:N(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:N(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:N(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:N(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:N(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:N(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:N(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:N(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:N(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:N(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:N(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:N(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:N(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:N(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:N(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:N(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:N(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:N(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:N(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:N(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:N(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:N(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:N(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:N(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:N(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:N(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:N(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:N(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:N(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:N(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:N(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:N(6024,3,"options_6024","options"),file:N(6025,3,"file_6025","file"),Examples_Colon_0:N(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:N(6027,3,"Options_Colon_6027","Options:"),Version_0:N(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:N(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:N(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:N(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:N(6034,3,"KIND_6034","KIND"),FILE:N(6035,3,"FILE_6035","FILE"),VERSION:N(6036,3,"VERSION_6036","VERSION"),LOCATION:N(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:N(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:N(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:N(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:N(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:N(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:N(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:N(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:N(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:N(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:N(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:N(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:N(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:N(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:N(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:N(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:N(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:N(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:N(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:N(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:N(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:N(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:N(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:N(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:N(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:N(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:N(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:N(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:N(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:N(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:N(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:N(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:N(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:N(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:N(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:N(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:N(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:N(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:N(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:N(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:N(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:N(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:N(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:N(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:N(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:N(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:N(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:N(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:N(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:N(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:N(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:N(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:N(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:N(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:N(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:N(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:N(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:N(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:N(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:N(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:N(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:N(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:N(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:N(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:N(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:N(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:N(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:N(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:N(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:N(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:N(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:N(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:N(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:N(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:N(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:N(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:N(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:N(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:N(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:N(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:N(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:N(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:N(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:N(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:N(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:N(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:N(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:N(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:N(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:N(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:N(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:N(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:N(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:N(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:N(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:N(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:N(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:N(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:N(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:N(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:N(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:N(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:N(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:N(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:N(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:N(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:N(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:N(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:N(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:N(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:N(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:N(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:N(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:N(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:N(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:N(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:N(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:N(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:N(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:N(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:N(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:N(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:N(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:N(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:N(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:N(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:N(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:N(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:N(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:N(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:N(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:N(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:N(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:N(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:N(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:N(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:N(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:N(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:N(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:N(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:N(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:N(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:N(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:N(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:N(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:N(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:N(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:N(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:N(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:N(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:N(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:N(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:N(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:N(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:N(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:N(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:N(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:N(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:N(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:N(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:N(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:N(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:N(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:N(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:N(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:N(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:N(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:N(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:N(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:N(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:N(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:N(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:N(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:N(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:N(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:N(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:N(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:N(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:N(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:N(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:N(6244,3,"Modules_6244","Modules"),File_Management:N(6245,3,"File_Management_6245","File Management"),Emit:N(6246,3,"Emit_6246","Emit"),JavaScript_Support:N(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:N(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:N(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:N(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:N(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:N(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:N(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:N(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:N(6255,3,"Projects_6255","Projects"),Output_Formatting:N(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:N(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:N(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:N(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:N(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:N(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:N(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:N(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:N(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:N(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:N(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:N(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:N(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:N(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:N(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:N(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:N(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:N(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:N(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:N(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:N(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:N(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:N(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:N(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:N(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),File_Layout:N(6284,3,"File_Layout_6284","File Layout"),Environment_Settings:N(6285,3,"Environment_Settings_6285","Environment Settings"),See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule:N(6286,3,"See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286","See also https://aka.ms/tsconfig/module"),For_nodejs_Colon:N(6287,3,"For_nodejs_Colon_6287","For nodejs:"),and_npm_install_D_types_Slashnode:N(6290,3,"and_npm_install_D_types_Slashnode_6290","and npm install -D @types/node"),Other_Outputs:N(6291,3,"Other_Outputs_6291","Other Outputs"),Stricter_Typechecking_Options:N(6292,3,"Stricter_Typechecking_Options_6292","Stricter Typechecking Options"),Style_Options:N(6293,3,"Style_Options_6293","Style Options"),Recommended_Options:N(6294,3,"Recommended_Options_6294","Recommended Options"),Enable_project_compilation:N(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:N(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:N(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:N(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:N(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:N(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:N(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:N(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:N(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:N(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:N(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:N(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:N(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:N(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:N(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:N(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:N(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:N(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:N(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:N(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:N(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:N(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:N(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:N(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:N(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:N(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:N(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:N(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:N(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:N(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:N(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:N(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:N(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:N(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:N(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:N(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:N(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:N(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:N(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:N(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:N(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:N(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:N(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:N(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:N(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:N(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:N(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:N(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:N(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:N(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:N(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:N(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:N(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:N(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:N(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:N(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:N(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:N(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:N(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:N(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:N(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:N(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:N(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:N(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:N(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:N(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:N(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:N(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:N(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:N(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:N(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:N(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:N(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:N(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:N(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:N(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:N(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files:N(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:N(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:N(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:N(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:N(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:N(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:N(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:N(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:N(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:N(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:N(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:N(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:N(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:N(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:N(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:N(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:N(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:N(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:N(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:N(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:N(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:N(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:N(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:N(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:N(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:N(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:N(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:N(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:N(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:N(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:N(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:N(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:N(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:N(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:N(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:N(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:N(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:N(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:N(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:N(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:N(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:N(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:N(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:N(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:N(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:N(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:N(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:N(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:N(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:N(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:N(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:N(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:N(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:N(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:N(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:N(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:N(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:N(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:N(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:N(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:N(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:N(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:N(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:N(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:N(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:N(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:N(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:N(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:N(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:N(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:N(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:N(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:N(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:N(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:N(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:N(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:N(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:N(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:N(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:N(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:N(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:N(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:N(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:N(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:N(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:N(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:N(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:N(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:N(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:N(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:N(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:N(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:N(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:N(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:N(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:N(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:N(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:N(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:N(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:N(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:N(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:N(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:N(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:N(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:N(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:N(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:N(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:N(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:N(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:N(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:N(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:N(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:N(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:N(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:N(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:N(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:N(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:N(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),Default_catch_clause_variables_as_unknown_instead_of_any:N(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:N(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:N(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:N(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:N(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:N(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),one_of_Colon:N(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:N(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:N(6902,3,"type_Colon_6902","type:"),default_Colon:N(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:N(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:N(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:N(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:N(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:N(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:N(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:N(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:N(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:N(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:N(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:N(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:N(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:N(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:N(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:N(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:N(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:N(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:N(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:N(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:N(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:N(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:N(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:N(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:N(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:N(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:N(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:N(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:N(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:N(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:N(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:N(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:N(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:N(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:N(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:N(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:N(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:N(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:N(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:N(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:N(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:N(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:N(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:N(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:N(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:N(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:N(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:N(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:N(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:N(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:N(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:N(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:N(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:N(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:N(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:N(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:N(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:N(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:N(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:N(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:N(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:N(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:N(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:N(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:N(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:N(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:N(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:N(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:N(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:N(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:N(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:N(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:N(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:N(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:N(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:N(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:N(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:N(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:N(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:N(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:N(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:N(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:N(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:N(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:N(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:N(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:N(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:N(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:N(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:N(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:N(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:N(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:N(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:N(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:N(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:N(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:N(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:N(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:N(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:N(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:N(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:N(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:N(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:N(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:N(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:N(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:N(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:N(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:N(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:N(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:N(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:N(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:N(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:N(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:N(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:N(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:N(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:N(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:N(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:N(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:N(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:N(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:N(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:N(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:N(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:N(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:N(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:N(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:N(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:N(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:N(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:N(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:N(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:N(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:N(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:N(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:N(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:N(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:N(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:N(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:N(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:N(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:N(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:N(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:N(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:N(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:N(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:N(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:N(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:N(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:N(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:N(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:N(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:N(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:N(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:N(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:N(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:N(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:N(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:N(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:N(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:N(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:N(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:N(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:N(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:N(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:N(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:N(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:N(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:N(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:N(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:N(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:N(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:N(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:N(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:N(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:N(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:N(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:N(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:N(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:N(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:N(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:N(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:N(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:N(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:N(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:N(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:N(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:N(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:N(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:N(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:N(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:N(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:N(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:N(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:N(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:N(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:N(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:N(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:N(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:N(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:N(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:N(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:N(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:N(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:N(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:N(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:N(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:N(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:N(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:N(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:N(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:N(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:N(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:N(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:N(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:N(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:N(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:N(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:N(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:N(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:N(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:N(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:N(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:N(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:N(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:N(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:N(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:N(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:N(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:N(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:N(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:N(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:N(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:N(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:N(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:N(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:N(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:N(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:N(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:N(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:N(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:N(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:N(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:N(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:N(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:N(95005,3,"Extract_function_95005","Extract function"),Extract_constant:N(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:N(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:N(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:N(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:N(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:N(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:N(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:N(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:N(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:N(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:N(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:N(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:N(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:N(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:N(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:N(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:N(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:N(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:N(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:N(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:N(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:N(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:N(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:N(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:N(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:N(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:N(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:N(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:N(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:N(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:N(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:N(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:N(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:N(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:N(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:N(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:N(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:N(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:N(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:N(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:N(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:N(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:N(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:N(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:N(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:N(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:N(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:N(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:N(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:N(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:N(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:N(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:N(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:N(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:N(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:N(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:N(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:N(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:N(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:N(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:N(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:N(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:N(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:N(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:N(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:N(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:N(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:N(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:N(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:N(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:N(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:N(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:N(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:N(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:N(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:N(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:N(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:N(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:N(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:N(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:N(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:N(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:N(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:N(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:N(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:N(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:N(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:N(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:N(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:N(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:N(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:N(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:N(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:N(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:N(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:N(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:N(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:N(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:N(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:N(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:N(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:N(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:N(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:N(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:N(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:N(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:N(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:N(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:N(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:N(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:N(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:N(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:N(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:N(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:N(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:N(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:N(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:N(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:N(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:N(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:N(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:N(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:N(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:N(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:N(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:N(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:N(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:N(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:N(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:N(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:N(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:N(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:N(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:N(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:N(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:N(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:N(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:N(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:N(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:N(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:N(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:N(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:N(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:N(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:N(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:N(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:N(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:N(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:N(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:N(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:N(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:N(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:N(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:N(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:N(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:N(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:N(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:N(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:N(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:N(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:N(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:N(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:N(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:N(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:N(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:N(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:N(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:N(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:N(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:N(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:N(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:N(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:N(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:N(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:N(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:N(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:N(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:N(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:N(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:N(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:N(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:N(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:N(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:N(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:N(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:N(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:N(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:N(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:N(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:N(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:N(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:N(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:N(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:N(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:N(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:N(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:N(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:N(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:N(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:N(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:N(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:N(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:N(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:N(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:N(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:N(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:N(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:N(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:N(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:N(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:N(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:N(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:N(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:N(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:N(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:N(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:N(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:N(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:N(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:N(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:N(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:N(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:N(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:N(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:N(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:N(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:N(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:N(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:N(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:N(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:N(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:N(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:N(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'."),Default_imports_are_not_allowed_in_a_deferred_import:N(18058,1,"Default_imports_are_not_allowed_in_a_deferred_import_18058","Default imports are not allowed in a deferred import."),Named_imports_are_not_allowed_in_a_deferred_import:N(18059,1,"Named_imports_are_not_allowed_in_a_deferred_import_18059","Named imports are not allowed in a deferred import."),Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:N(18060,1,"Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060","Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'."),_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:N(18061,1,"_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061","'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?")};function cy(e){return e>=80}function Vin(e){return e===32||cy(e)}var LYe={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,defer:166,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},Win=new Map(Object.entries(LYe)),y$t=new Map(Object.entries({...LYe,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),v$t=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),Gin=new Map([[1,Vpe.RegularExpressionFlagsHasIndices],[16,Vpe.RegularExpressionFlagsDotAll],[32,Vpe.RegularExpressionFlagsUnicode],[64,Vpe.RegularExpressionFlagsUnicodeSets],[128,Vpe.RegularExpressionFlagsSticky]]),Hin=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Kin=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Qin=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],Zin=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],Xin=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Yin=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,eon=/@(?:see|link)/i;function yDe(e,r){if(e=2?yDe(e,Qin):yDe(e,Hin)}function ron(e,r){return r>=2?yDe(e,Zin):yDe(e,Kin)}function S$t(e){let r=[];return e.forEach((i,s)=>{r[i]=s}),r}var non=S$t(y$t);function Bm(e){return non[e]}function b$t(e){return y$t.get(e)}var zJn=S$t(v$t);function Gjt(e){return v$t.get(e)}function x$t(e){let r=[],i=0,s=0;for(;i127&&xk(l)&&(r.push(s),s=i);break}}return r.push(s),r}function ion(e,r,i,s,l){(r<0||r>=e.length)&&(l?r=r<0?0:r>=e.length?e.length-1:r:Pi.fail(`Bad line number. Line: ${r}, lineStarts.length: ${e.length} , line map is correct? ${s!==void 0?pin(e,x$t(s)):"unknown"}`));let d=e[r]+i;return l?d>e[r+1]?e[r+1]:typeof s=="string"&&d>s.length?s.length:d:(r=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function xk(e){return e===10||e===13||e===8232||e===8233}function _B(e){return e>=48&&e<=57}function VXe(e){return _B(e)||e>=65&&e<=70||e>=97&&e<=102}function MYe(e){return e>=65&&e<=90||e>=97&&e<=122}function E$t(e){return MYe(e)||_B(e)||e===95}function WXe(e){return e>=48&&e<=55}function b8(e,r,i,s,l){if(d_e(r))return r;let d=!1;for(;;){let h=e.charCodeAt(r);switch(h){case 13:e.charCodeAt(r+1)===10&&r++;case 10:if(r++,i)return r;d=!!l;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(s)break;if(e.charCodeAt(r+1)===47){for(r+=2;r127&&aee(h)){r++;continue}break}return r}}var uDe=7;function kV(e,r){if(Pi.assert(r>=0),r===0||xk(e.charCodeAt(r-1))){let i=e.charCodeAt(r);if(r+uDe=0&&i127&&aee(te)){V&&xk(te)&&(L=!0),i++;continue}break e}}return V&&(ie=l(S,b,A,L,d,ie)),ie}function son(e,r,i,s){return DDe(!1,e,r,!1,i,s)}function con(e,r,i,s){return DDe(!1,e,r,!0,i,s)}function lon(e,r,i,s,l){return DDe(!0,e,r,!1,i,s,l)}function uon(e,r,i,s,l){return DDe(!0,e,r,!0,i,s,l)}function D$t(e,r,i,s,l,d=[]){return d.push({kind:i,pos:e,end:r,hasTrailingNewLine:s}),d}function uYe(e,r){return lon(e,r,D$t,void 0,void 0)}function pon(e,r){return uon(e,r,D$t,void 0,void 0)}function A$t(e){let r=jYe.exec(e);if(r)return r[0]}function J6(e,r){return MYe(e)||e===36||e===95||e>127&&ton(e,r)}function V5(e,r,i){return E$t(e)||e===36||(i===1?e===45||e===58:!1)||e>127&&ron(e,r)}function _on(e,r,i){let s=CV(e,0);if(!J6(s,r))return!1;for(let l=Qv(s);lL,getStartPos:()=>L,getTokenEnd:()=>b,getTextPos:()=>b,getToken:()=>j,getTokenStart:()=>V,getTokenPos:()=>V,getTokenText:()=>S.substring(V,b),getTokenValue:()=>ie,hasUnicodeEscape:()=>(te&1024)!==0,hasExtendedUnicodeEscape:()=>(te&8)!==0,hasPrecedingLineBreak:()=>(te&1)!==0,hasPrecedingJSDocComment:()=>(te&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(te&32768)!==0,isIdentifier:()=>j===80||j>118,isReservedWord:()=>j>=83&&j<=118,isUnterminated:()=>(te&4)!==0,getCommentDirectives:()=>X,getNumericLiteralFlags:()=>te&25584,getTokenFlags:()=>te,reScanGreaterToken:Sc,reScanAsteriskEqualsToken:Wu,reScanSlashToken:uc,reScanTemplateToken:zp,reScanTemplateHeadOrNoSubstitutionTemplate:Rh,scanJsxIdentifier:O1,scanJsxAttributeValue:__,reScanJsxAttributeValue:Bc,reScanJsxToken:K0,reScanLessThanToken:rf,reScanHashToken:vx,reScanQuestionToken:dy,reScanInvalidIdentifier:hs,scanJsxToken:vm,scanJsDocToken:jt,scanJSDocCommentTextToken:cb,scan:Wn,getText:Jl,clearCommentDirectives:zd,setText:pu,setScriptTarget:or,setLanguageVariant:Gr,setScriptKind:pi,setJSDocParsingMode:ia,setOnError:Tf,resetTokenState:To,setTextPos:To,setSkipJsDocLeadingAsterisks:Gu,tryScan:Zc,lookAhead:En,scanRange:Ti};return Pi.isDebugging&&Object.defineProperty($e,"__debugShowCurrentPositionInText",{get:()=>{let Yr=$e.getText();return Yr.slice(0,$e.getTokenFullStart())+"\u2551"+Yr.slice($e.getTokenFullStart())}}),$e;function xt(Yr){return CV(S,Yr)}function tr(Yr){return Yr>=0&&Yr=0&&Yr=65&&rs<=70)rs+=32;else if(!(rs>=48&&rs<=57||rs>=97&&rs<=102))break;us.push(rs),b++,pc=!1}return us.length=A){to+=S.substring(us,b),te|=4,Ut(_n.Unterminated_string_literal);break}let Ja=ht(b);if(Ja===Sn){to+=S.substring(us,b),b++;break}if(Ja===92&&!Yr){to+=S.substring(us,b),to+=ol(3),us=b;continue}if((Ja===10||Ja===13)&&!Yr){to+=S.substring(us,b),te|=4,Ut(_n.Unterminated_string_literal);break}b++}return to}function Cr(Yr){let Sn=ht(b)===96;b++;let to=b,us="",Ja;for(;;){if(b>=A){us+=S.substring(to,b),te|=4,Ut(_n.Unterminated_template_literal),Ja=Sn?15:18;break}let pc=ht(b);if(pc===96){us+=S.substring(to,b),b++,Ja=Sn?15:18;break}if(pc===36&&b+1=A)return Ut(_n.Unexpected_end_of_text),"";let to=ht(b);switch(b++,to){case 48:if(b>=A||!_B(ht(b)))return"\0";case 49:case 50:case 51:b=55296&&us<=56319&&b+6=56320&&Yl<=57343)return b=rs,Ja+String.fromCharCode(Yl)}return Ja;case 120:for(;b1114111&&(Yr&&Ut(_n.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,to,b-to),pc=!0),b>=A?(Yr&&Ut(_n.Unexpected_end_of_text),pc=!0):ht(b)===125?b++:(Yr&&Ut(_n.Unterminated_Unicode_escape_sequence),pc=!0),pc?(te|=2048,S.substring(Sn,b)):(te|=8,Hjt(Ja))}function Rc(){if(b+5=0&&V5(to,e)){Yr+=Zo(!0),Sn=b;continue}if(to=Rc(),!(to>=0&&V5(to,e)))break;te|=1024,Yr+=S.substring(Sn,b),Yr+=Hjt(to),b+=6,Sn=b}else break}return Yr+=S.substring(Sn,b),Yr}function li(){let Yr=ie.length;if(Yr>=2&&Yr<=12){let Sn=ie.charCodeAt(0);if(Sn>=97&&Sn<=122){let to=Win.get(ie);if(to!==void 0)return j=to}}return j=80}function Wi(Yr){let Sn="",to=!1,us=!1;for(;;){let Ja=ht(b);if(Ja===95){te|=512,to?(to=!1,us=!0):Ut(us?_n.Multiple_consecutive_numeric_separators_are_not_permitted:_n.Numeric_separators_are_not_allowed_here,b,1),b++;continue}if(to=!0,!_B(Ja)||Ja-48>=Yr)break;Sn+=S[b],b++,us=!1}return ht(b-1)===95&&Ut(_n.Numeric_separators_are_not_allowed_here,b-1,1),Sn}function Bo(){return ht(b)===110?(ie+="n",te&384&&(ie=Isn(ie)+"n"),b++,10):(ie=""+(te&128?parseInt(ie.slice(2),2):te&256?parseInt(ie.slice(2),8):+ie),9)}function Wn(){for(L=b,te=0;;){if(V=b,b>=A)return j=1;let Yr=xt(b);if(b===0&&Yr===35&&k$t(S,b)){if(b=C$t(S,b),r)continue;return j=6}switch(Yr){case 10:case 13:if(te|=1,r){b++;continue}else return Yr===13&&b+1=0&&J6(Sn,e))return ie=Zo(!0)+Xr(),j=li();let to=Rc();return to>=0&&J6(to,e)?(b+=6,te|=1024,ie=String.fromCharCode(to)+Xr(),j=li()):(Ut(_n.Invalid_character),b++,j=0);case 35:if(b!==0&&S[b+1]==="!")return Ut(_n.can_only_be_used_at_the_start_of_a_file,b,2),b++,j=0;let us=xt(b+1);if(us===92){b++;let rs=an();if(rs>=0&&J6(rs,e))return ie="#"+Zo(!0)+Xr(),j=81;let Yl=Rc();if(Yl>=0&&J6(Yl,e))return b+=6,te|=1024,ie="#"+String.fromCharCode(Yl)+Xr(),j=81;b--}return J6(us,e)?(b++,Us(us,e)):(ie="#",Ut(_n.Invalid_character,b++,Qv(Yr))),j=81;case 65533:return Ut(_n.File_appears_to_be_binary,0,0),b=A,j=8;default:let Ja=Us(Yr,e);if(Ja)return j=Ja;if(e_e(Yr)){b+=Qv(Yr);continue}else if(xk(Yr)){te|=1,b+=Qv(Yr);continue}let pc=Qv(Yr);return Ut(_n.Invalid_character,b,pc),b+=pc,j=0}}}function Na(){switch(pt){case 0:return!0;case 1:return!1}return Je!==3&&Je!==4?!0:pt===3?!1:eon.test(S.slice(L,b))}function hs(){Pi.assert(j===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),b=V=L,te=0;let Yr=xt(b),Sn=Us(Yr,99);return Sn?j=Sn:(b+=Qv(Yr),j)}function Us(Yr,Sn){let to=Yr;if(J6(to,Sn)){for(b+=Qv(to);b=A)return j=1;let Sn=ht(b);if(Sn===60)return ht(b+1)===47?(b+=2,j=31):(b++,j=30);if(Sn===123)return b++,j=19;let to=0;for(;b0)break;aee(Sn)||(to=b)}b++}return ie=S.substring(L,b),to===-1?13:12}function O1(){if(cy(j)){for(;b=A)return j=1;for(let Sn=ht(b);b=0&&e_e(ht(b-1))&&!(b+1=A)return j=1;let Yr=xt(b);switch(b+=Qv(Yr),Yr){case 9:case 11:case 12:case 32:for(;b=0&&J6(Sn,e))return ie=Zo(!0)+Xr(),j=li();let to=Rc();return to>=0&&J6(to,e)?(b+=6,te|=1024,ie=String.fromCharCode(to)+Xr(),j=li()):(b++,j=0)}if(J6(Yr,e)){let Sn=Yr;for(;b=0),b=Yr,L=Yr,V=Yr,j=0,ie=void 0,te=0}function Gu(Yr){Re+=Yr?1:-1}}function CV(e,r){return e.codePointAt(r)}function Qv(e){return e>=65536?2:e===-1?0:1}function don(e){if(Pi.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let r=Math.floor((e-65536)/1024)+55296,i=(e-65536)%1024+56320;return String.fromCharCode(r,i)}var fon=String.fromCodePoint?e=>String.fromCodePoint(e):don;function Hjt(e){return fon(e)}var Kjt=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),Qjt=new Set(["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","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","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"]),Zjt=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),nee={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};nee.Script_Extensions=nee.Script;function v8(e){return e.start+e.length}function mon(e){return e.length===0}function $Ye(e,r){if(e<0)throw new Error("start < 0");if(r<0)throw new Error("length < 0");return{start:e,length:r}}function hon(e,r){return $Ye(e,r-e)}function Wpe(e){return $Ye(e.span.start,e.newLength)}function gon(e){return mon(e.span)&&e.newLength===0}function w$t(e,r){if(r<0)throw new Error("newLength < 0");return{span:e,newLength:r}}var qJn=w$t($Ye(0,0),0);function I$t(e,r){for(;e;){let i=r(e);if(i==="quit")return;if(i)return e;e=e.parent}}function vDe(e){return(e.flags&16)===0}function yon(e,r){if(e===void 0||vDe(e))return e;for(e=e.original;e;){if(vDe(e))return!r||r(e)?e:void 0;e=e.original}}function XY(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function l_e(e){let r=e;return r.length>=3&&r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===95?r.substr(1):r}function Ek(e){return l_e(e.escapedText)}function von(e){let r=b$t(e.escapedText);return r?Ein(r,dB):void 0}function pYe(e){return e.valueDeclaration&&Von(e.valueDeclaration)?Ek(e.valueDeclaration.name):l_e(e.escapedName)}function P$t(e){let r=e.parent.parent;if(r){if(eBt(r))return rDe(r);switch(r.kind){case 244:if(r.declarationList&&r.declarationList.declarations[0])return rDe(r.declarationList.declarations[0]);break;case 245:let i=r.expression;switch(i.kind===227&&i.operatorToken.kind===64&&(i=i.left),i.kind){case 212:return i.name;case 213:let s=i.argumentExpression;if(Kd(s))return s}break;case 218:return rDe(r.expression);case 257:{if(eBt(r.statement)||ian(r.statement))return rDe(r.statement);break}}}}function rDe(e){let r=N$t(e);return r&&Kd(r)?r:void 0}function Son(e){return e.name||P$t(e)}function bon(e){return!!e.name}function UYe(e){switch(e.kind){case 80:return e;case 349:case 342:{let{name:i}=e;if(i.kind===167)return i.right;break}case 214:case 227:{let i=e;switch(WYe(i)){case 1:case 4:case 5:case 3:return GYe(i.left);case 7:case 8:case 9:return i.arguments[1];default:return}}case 347:return Son(e);case 341:return P$t(e);case 278:{let{expression:i}=e;return Kd(i)?i:void 0}case 213:let r=e;if(H$t(r))return r.argumentExpression}return e.name}function N$t(e){if(e!==void 0)return UYe(e)||(fUt(e)||mUt(e)||vYe(e)?xon(e):void 0)}function xon(e){if(e.parent){if($cn(e.parent)||Tcn(e.parent))return e.parent.name;if(_ee(e.parent)&&e===e.parent.right){if(Kd(e.parent.left))return e.parent.left;if(eUt(e.parent.left))return GYe(e.parent.left)}else if(gUt(e.parent)&&Kd(e.parent.name))return e.parent.name}else return}function Ton(e){if(Xan(e))return H5(e.modifiers,eet)}function Eon(e){if(h_e(e,98303))return H5(e.modifiers,Hon)}function O$t(e,r){if(e.name)if(Kd(e.name)){let i=e.name.escapedText;return u_e(e.parent,r).filter(s=>hBt(s)&&Kd(s.name)&&s.name.escapedText===i)}else{let i=e.parent.parameters.indexOf(e);Pi.assert(i>-1,"Parameters should always be in their parents' parameter list");let s=u_e(e.parent,r).filter(hBt);if(itln(s)&&s.typeParameters.some(l=>l.name.escapedText===i))}function Don(e){return F$t(e,!1)}function Aon(e){return F$t(e,!0)}function won(e){return yB(e,Wcn)}function Ion(e){return jon(e,rln)}function Pon(e){return yB(e,Gcn,!0)}function Non(e){return yB(e,Hcn,!0)}function Oon(e){return yB(e,Kcn,!0)}function Fon(e){return yB(e,Qcn,!0)}function Ron(e){return yB(e,Zcn,!0)}function Lon(e){return yB(e,Ycn,!0)}function Mon(e){let r=yB(e,net);if(r&&r.typeExpression&&r.typeExpression.type)return r}function u_e(e,r){var i;if(!HYe(e))return ky;let s=(i=e.jsDoc)==null?void 0:i.jsDocCache;if(s===void 0||r){let l=Lan(e,r);Pi.assert(l.length<2||l[0]!==l[1]),s=e$t(l,d=>CUt(d)?d.tags:d),r||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=s)}return s}function R$t(e){return u_e(e,!1)}function yB(e,r,i){return XBt(u_e(e,i),r)}function jon(e,r){return R$t(e).filter(r)}function _Ye(e){return e.kind===80||e.kind===81}function Bon(e){return X5(e)&&!!(e.flags&64)}function $on(e){return g_e(e)&&!!(e.flags&64)}function Xjt(e){return dUt(e)&&!!(e.flags&64)}function Uon(e){let r=e.kind;return!!(e.flags&64)&&(r===212||r===213||r===214||r===236)}function zYe(e){return iet(e,8)}function zon(e){return _De(e)&&!!(e.flags&64)}function qYe(e){return e>=167}function L$t(e){return e>=0&&e<=166}function qon(e){return L$t(e.kind)}function fB(e){return T8(e,"pos")&&T8(e,"end")}function Jon(e){return 9<=e&&e<=15}function Yjt(e){return 15<=e&&e<=18}function iee(e){var r;return Kd(e)&&((r=e.emitNode)==null?void 0:r.autoGenerate)!==void 0}function M$t(e){var r;return NV(e)&&((r=e.emitNode)==null?void 0:r.autoGenerate)!==void 0}function Von(e){return(TDe(e)||Zon(e))&&NV(e.name)}function W5(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function Won(e){return!!(X$t(e)&31)}function Gon(e){return Won(e)||e===126||e===164||e===129}function Hon(e){return W5(e.kind)}function j$t(e){let r=e.kind;return r===80||r===81||r===11||r===9||r===168}function B$t(e){return!!e&&Qon(e.kind)}function Kon(e){switch(e){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function Qon(e){switch(e){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return Kon(e)}}function see(e){return e&&(e.kind===264||e.kind===232)}function Zon(e){switch(e.kind){case 175:case 178:case 179:return!0;default:return!1}}function Xon(e){let r=e.kind;return r===304||r===305||r===306||r===175||r===178||r===179}function Yon(e){return lsn(e.kind)}function ean(e){if(e){let r=e.kind;return r===208||r===207}return!1}function tan(e){let r=e.kind;return r===210||r===211}function ran(e){switch(e.kind){case 261:case 170:case 209:return!0}return!1}function cee(e){return $$t(zYe(e).kind)}function $$t(e){switch(e){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function nan(e){return U$t(zYe(e).kind)}function U$t(e){switch(e){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return $$t(e)}}function ian(e){return oan(zYe(e).kind)}function oan(e){switch(e){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return U$t(e)}}function aan(e){return e===220||e===209||e===264||e===232||e===176||e===177||e===267||e===307||e===282||e===263||e===219||e===178||e===274||e===272||e===277||e===265||e===292||e===175||e===174||e===268||e===271||e===275||e===281||e===170||e===304||e===173||e===172||e===179||e===305||e===266||e===169||e===261||e===347||e===339||e===349||e===203}function z$t(e){return e===263||e===283||e===264||e===265||e===266||e===267||e===268||e===273||e===272||e===279||e===278||e===271}function q$t(e){return e===253||e===252||e===260||e===247||e===245||e===243||e===250||e===251||e===249||e===246||e===257||e===254||e===256||e===258||e===259||e===244||e===248||e===255||e===354}function eBt(e){return e.kind===169?e.parent&&e.parent.kind!==346||OV(e):aan(e.kind)}function san(e){let r=e.kind;return q$t(r)||z$t(r)||can(e)}function can(e){return e.kind!==242||e.parent!==void 0&&(e.parent.kind===259||e.parent.kind===300)?!1:!Tan(e)}function lan(e){let r=e.kind;return q$t(r)||z$t(r)||r===242}function J$t(e){return e.kind>=310&&e.kind<=352}function uan(e){return e.kind===321||e.kind===320||e.kind===322||dan(e)||pan(e)||Vcn(e)||DUt(e)}function pan(e){return e.kind>=328&&e.kind<=352}function nDe(e){return e.kind===179}function iDe(e){return e.kind===178}function AV(e){if(!HYe(e))return!1;let{jsDoc:r}=e;return!!r&&r.length>0}function _an(e){return!!e.initializer}function JYe(e){return e.kind===11||e.kind===15}function dan(e){return e.kind===325||e.kind===326||e.kind===327}function tBt(e){return(e.flags&33554432)!==0}var JJn=fan();function fan(){var e="";let r=i=>e+=i;return{getText:()=>e,write:r,rawWrite:r,writeKeyword:r,writeOperator:r,writePunctuation:r,writeSpace:r,writeStringLiteral:r,writeLiteral:r,writeParameter:r,writeProperty:r,writeSymbol:(i,s)=>r(i),writeTrailingSemicolon:r,writeComment:r,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&aee(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:pee,decreaseIndent:pee,clear:()=>e=""}}function man(e,r){let i=e.entries();for(let[s,l]of i){let d=r(l,s);if(d)return d}}function han(e){return e.end-e.pos}function V$t(e){return gan(e),(e.flags&1048576)!==0}function gan(e){e.flags&2097152||(((e.flags&262144)!==0||cx(e,V$t))&&(e.flags|=1048576),e.flags|=2097152)}function hB(e){for(;e&&e.kind!==308;)e=e.parent;return e}function wV(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function dYe(e){return!wV(e)}function SDe(e,r,i){if(wV(e))return e.pos;if(J$t(e)||e.kind===12)return b8((r??hB(e)).text,e.pos,!1,!0);if(i&&AV(e))return SDe(e.jsDoc[0],r);if(e.kind===353){r??(r=hB(e));let s=PYe(AUt(e,r));if(s)return SDe(s,r,i)}return b8((r??hB(e)).text,e.pos,!1,!1,Ean(e))}function rBt(e,r,i=!1){return t_e(e.text,r,i)}function yan(e){return!!I$t(e,zcn)}function t_e(e,r,i=!1){if(wV(r))return"";let s=e.substring(i?r.pos:b8(e,r.pos),r.end);return yan(r)&&(s=s.split(/\r\n|\n|\r/).map(l=>l.replace(/^\s*\*/,"").trimStart()).join(` +`)),s}function lee(e){let r=e.emitNode;return r&&r.flags||0}function van(e,r,i){Pi.assertGreaterThanOrEqual(r,0),Pi.assertGreaterThanOrEqual(i,0),Pi.assertLessThanOrEqual(r,e.length),Pi.assertLessThanOrEqual(r+i,e.length)}function pDe(e){return e.kind===245&&e.expression.kind===11}function VYe(e){return!!(lee(e)&2097152)}function nBt(e){return VYe(e)&&yUt(e)}function San(e){return Kd(e.name)&&!e.initializer}function iBt(e){return VYe(e)&&wDe(e)&&wYe(e.declarationList.declarations,San)}function ban(e,r){let i=e.kind===170||e.kind===169||e.kind===219||e.kind===220||e.kind===218||e.kind===261||e.kind===282?IYe(pon(r,e.pos),uYe(r,e.pos)):uYe(r,e.pos);return H5(i,s=>s.end<=e.end&&r.charCodeAt(s.pos+1)===42&&r.charCodeAt(s.pos+2)===42&&r.charCodeAt(s.pos+3)!==47)}function xan(e){if(e)switch(e.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function Tan(e){return e&&e.kind===242&&B$t(e.parent)}function oBt(e){let r=e.kind;return(r===212||r===213)&&e.expression.kind===108}function OV(e){return!!e&&!!(e.flags&524288)}function Ean(e){return!!e&&!!(e.flags&16777216)}function kan(e){for(;bDe(e,!0);)e=e.right;return e}function Can(e){return Kd(e)&&e.escapedText==="exports"}function Dan(e){return Kd(e)&&e.escapedText==="module"}function W$t(e){return(X5(e)||G$t(e))&&Dan(e.expression)&&__e(e)==="exports"}function WYe(e){let r=wan(e);return r===5||OV(e)?r:0}function Aan(e){return Zpe(e.arguments)===3&&X5(e.expression)&&Kd(e.expression.expression)&&Ek(e.expression.expression)==="Object"&&Ek(e.expression.name)==="defineProperty"&&ADe(e.arguments[1])&&p_e(e.arguments[0],!0)}function G$t(e){return g_e(e)&&ADe(e.argumentExpression)}function m_e(e,r){return X5(e)&&(!r&&e.expression.kind===110||Kd(e.name)&&p_e(e.expression,!0))||H$t(e,r)}function H$t(e,r){return G$t(e)&&(!r&&e.expression.kind===110||ZYe(e.expression)||m_e(e.expression,!0))}function p_e(e,r){return ZYe(e)||m_e(e,r)}function wan(e){if(dUt(e)){if(!Aan(e))return 0;let r=e.arguments[0];return Can(r)||W$t(r)?8:m_e(r)&&__e(r)==="prototype"?9:7}return e.operatorToken.kind!==64||!eUt(e.left)||Ian(kan(e))?0:p_e(e.left.expression,!0)&&__e(e.left)==="prototype"&&_Ut(Nan(e))?6:Pan(e.left)}function Ian(e){return Ccn(e)&&dee(e.expression)&&e.expression.text==="0"}function GYe(e){if(X5(e))return e.name;let r=KYe(e.argumentExpression);return dee(r)||JYe(r)?r:e}function __e(e){let r=GYe(e);if(r){if(Kd(r))return r.escapedText;if(JYe(r)||dee(r))return XY(r.text)}}function Pan(e){if(e.expression.kind===110)return 4;if(W$t(e))return 2;if(p_e(e.expression,!0)){if(ssn(e.expression))return 3;let r=e;for(;!Kd(r.expression);)r=r.expression;let i=r.expression;if((i.escapedText==="exports"||i.escapedText==="module"&&__e(r)==="exports")&&m_e(e))return 1;if(p_e(e,!0)||g_e(e)&&Wan(e))return 5}return 0}function Nan(e){for(;_ee(e.right);)e=e.right;return e.right}function Oan(e){return hUt(e)&&_ee(e.expression)&&WYe(e.expression)!==0&&_ee(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function Fan(e){switch(e.kind){case 244:let r=fYe(e);return r&&r.initializer;case 173:return e.initializer;case 304:return e.initializer}}function fYe(e){return wDe(e)?PYe(e.declarationList.declarations):void 0}function Ran(e){return f_e(e)&&e.body&&e.body.kind===268?e.body:void 0}function HYe(e){switch(e.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function Lan(e,r){let i;xan(e)&&_an(e)&&AV(e.initializer)&&(i=Tk(i,aBt(e,e.initializer.jsDoc)));let s=e;for(;s&&s.parent;){if(AV(s)&&(i=Tk(i,aBt(e,s.jsDoc))),s.kind===170){i=Tk(i,(r?Con:kon)(s));break}if(s.kind===169){i=Tk(i,(r?Aon:Don)(s));break}s=jan(s)}return i||ky}function aBt(e,r){let i=min(r);return e$t(r,s=>{if(s===i){let l=H5(s.tags,d=>Man(e,d));return s.tags===l?[s]:l}else return H5(s.tags,Xcn)})}function Man(e,r){return!(net(r)||nln(r))||!r.parent||!CUt(r.parent)||!tet(r.parent.parent)||r.parent.parent===e}function jan(e){let r=e.parent;if(r.kind===304||r.kind===278||r.kind===173||r.kind===245&&e.kind===212||r.kind===254||Ran(r)||bDe(e))return r;if(r.parent&&(fYe(r.parent)===e||bDe(r)))return r.parent;if(r.parent&&r.parent.parent&&(fYe(r.parent.parent)||Fan(r.parent.parent)===e||Oan(r.parent.parent)))return r.parent.parent}function KYe(e,r){return iet(e,r?-2147483647:1)}function Ban(e){let r=$an(e);if(r&&OV(e)){let i=won(e);if(i)return i.class}return r}function $an(e){let r=QYe(e.heritageClauses,96);return r&&r.types.length>0?r.types[0]:void 0}function Uan(e){return OV(e)?Ion(e).map(r=>r.class):QYe(e.heritageClauses,119)?.types}function zan(e){return ret(e)?qan(e)||ky:see(e)&&IYe(sYe(Ban(e)),Uan(e))||ky}function qan(e){let r=QYe(e.heritageClauses,96);return r?r.types:void 0}function QYe(e,r){if(e){for(let i of e)if(i.token===r)return i}}function dB(e){return 83<=e&&e<=166}function Jan(e){return 19<=e&&e<=79}function GXe(e){return dB(e)||Jan(e)}function ADe(e){return JYe(e)||dee(e)}function Van(e){return Dcn(e)&&(e.operator===40||e.operator===41)&&dee(e.operand)}function Wan(e){if(!(e.kind===168||e.kind===213))return!1;let r=g_e(e)?KYe(e.argumentExpression):e.expression;return!ADe(r)&&!Van(r)}function Gan(e){return _Ye(e)?Ek(e):kUt(e)?Lsn(e):e.text}function YY(e){return d_e(e.pos)||d_e(e.end)}function HXe(e){switch(e){case 61:return 5;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function KXe(e){return!!((e.templateFlags||0)&2048)}function Han(e){return e&&!!(Ksn(e)?KXe(e):KXe(e.head)||sx(e.templateSpans,r=>KXe(r.literal)))}var VJn=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),WJn=new Map(Object.entries({'"':""","'":"'"}));function Kan(e){return!!e&&e.kind===80&&Qan(e)}function Qan(e){return e.escapedText==="this"}function h_e(e,r){return!!Yan(e,r)}function Zan(e){return h_e(e,256)}function Xan(e){return h_e(e,32768)}function Yan(e,r){return tsn(e)&r}function esn(e,r,i){return e.kind>=0&&e.kind<=166?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=Z$t(e)|536870912),i||r&&OV(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=K$t(e)|268435456),Q$t(e.modifierFlagsCache)):rsn(e.modifierFlagsCache))}function tsn(e){return esn(e,!1)}function K$t(e){let r=0;return e.parent&&!xDe(e)&&(OV(e)&&(Pon(e)&&(r|=8388608),Non(e)&&(r|=16777216),Oon(e)&&(r|=33554432),Fon(e)&&(r|=67108864),Ron(e)&&(r|=134217728)),Lon(e)&&(r|=65536)),r}function rsn(e){return e&65535}function Q$t(e){return e&131071|(e&260046848)>>>23}function nsn(e){return Q$t(K$t(e))}function isn(e){return Z$t(e)|nsn(e)}function Z$t(e){let r=oet(e)?ID(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(r|=32),r}function ID(e){let r=0;if(e)for(let i of e)r|=X$t(i.kind);return r}function X$t(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 171:return 32768}return 0}function osn(e){return e===76||e===77||e===78}function Y$t(e){return e>=64&&e<=79}function bDe(e,r){return _ee(e)&&(r?e.operatorToken.kind===64:Y$t(e.operatorToken.kind))&&cee(e.left)}function ZYe(e){return e.kind===80||asn(e)}function asn(e){return X5(e)&&Kd(e.name)&&ZYe(e.expression)}function ssn(e){return m_e(e)&&__e(e)==="prototype"}function QXe(e){return e.flags&3899393?e.objectFlags:0}function csn(e){let r;return cx(e,i=>{dYe(i)&&(r=i)},i=>{for(let s=i.length-1;s>=0;s--)if(dYe(i[s])){r=i[s];break}}),r}function lsn(e){return e>=183&&e<=206||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===234||e===313||e===314||e===315||e===316||e===317||e===318||e===319}function eUt(e){return e.kind===212||e.kind===213}function usn(e,r){this.flags=e,this.escapedName=r,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function psn(e,r){this.flags=r,(Pi.isDebugging||lDe)&&(this.checker=e)}function _sn(e,r){this.flags=r,Pi.isDebugging&&(this.checker=e)}function ZXe(e,r,i){this.pos=r,this.end=i,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function dsn(e,r,i){this.pos=r,this.end=i,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function fsn(e,r,i){this.pos=r,this.end=i,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function msn(e,r,i){this.fileName=e,this.text=r,this.skipTrivia=i||(s=>s)}var Ey={getNodeConstructor:()=>ZXe,getTokenConstructor:()=>dsn,getIdentifierConstructor:()=>fsn,getPrivateIdentifierConstructor:()=>ZXe,getSourceFileConstructor:()=>ZXe,getSymbolConstructor:()=>usn,getTypeConstructor:()=>psn,getSignatureConstructor:()=>_sn,getSourceMapSourceConstructor:()=>msn},hsn=[];function gsn(e){Object.assign(Ey,e),ND(hsn,r=>r(Ey))}function ysn(e,r){return e.replace(/\{(\d+)\}/g,(i,s)=>""+Pi.checkDefined(r[+s]))}var sBt;function vsn(e){return sBt&&sBt[e.key]||e.message}function HY(e,r,i,s,l,...d){i+s>r.length&&(s=r.length-i),van(r,i,s);let h=vsn(l);return sx(d)&&(h=ysn(h,d)),{file:void 0,start:i,length:s,messageText:h,category:l.category,code:l.code,reportsUnnecessary:l.reportsUnnecessary,fileName:e}}function Ssn(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function tUt(e,r){let i=r.fileName||"",s=r.text.length;Pi.assertEqual(e.fileName,i),Pi.assertLessThanOrEqual(e.start,s),Pi.assertLessThanOrEqual(e.start+e.length,s);let l={file:r,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){l.relatedInformation=[];for(let d of e.relatedInformation)Ssn(d)&&d.fileName===i?(Pi.assertLessThanOrEqual(d.start,s),Pi.assertLessThanOrEqual(d.start+d.length,s),l.relatedInformation.push(tUt(d,r))):l.relatedInformation.push(d)}return l}function bV(e,r){let i=[];for(let s of e)i.push(tUt(s,r));return i}function cBt(e){return e===4||e===2||e===1||e===6?1:0}var mm={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!!(e.allowImportingTsExtensions||e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===101&&9||e.module===102&&10||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:mm.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let r=e.moduleResolution;if(r===void 0)switch(mm.module.computeValue(e)){case 1:r=2;break;case 100:case 101:case 102:r=3;break;case 199:r=99;break;case 200:r=100;break;default:r=1;break}return r}},moduleDetection:{dependencies:["module","target"],computeValue:e=>{if(e.moduleDetection!==void 0)return e.moduleDetection;let r=mm.module.computeValue(e);return 100<=r&&r<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(mm.module.computeValue(e)){case 100:case 101:case 102:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:mm.esModuleInterop.computeValue(e)||mm.module.computeValue(e)===4||mm.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let r=mm.moduleResolution.computeValue(e);if(!lBt(r))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(r){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let r=mm.moduleResolution.computeValue(e);if(!lBt(r))return!1;if(e.resolvePackageJsonImports!==void 0)return e.resolvePackageJsonImports;switch(r){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>{if(e.resolveJsonModule!==void 0)return e.resolveJsonModule;switch(mm.module.computeValue(e)){case 102:case 199:return!0}return mm.moduleResolution.computeValue(e)===100}},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||mm.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&mm.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?mm.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>J5(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>J5(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>J5(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>J5(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>J5(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>J5(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>J5(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>J5(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>J5(e,"useUnknownInCatchVariables")}},GJn=mm.allowImportingTsExtensions.computeValue,HJn=mm.target.computeValue,KJn=mm.module.computeValue,QJn=mm.moduleResolution.computeValue,ZJn=mm.moduleDetection.computeValue,XJn=mm.isolatedModules.computeValue,YJn=mm.esModuleInterop.computeValue,eVn=mm.allowSyntheticDefaultImports.computeValue,tVn=mm.resolvePackageJsonExports.computeValue,rVn=mm.resolvePackageJsonImports.computeValue,nVn=mm.resolveJsonModule.computeValue,iVn=mm.declaration.computeValue,oVn=mm.preserveConstEnums.computeValue,aVn=mm.incremental.computeValue,sVn=mm.declarationMap.computeValue,cVn=mm.allowJs.computeValue,lVn=mm.useDefineForClassFields.computeValue;function lBt(e){return e>=3&&e<=99||e===100}function J5(e,r){return e[r]===void 0?!!e.strict:!!e[r]}function bsn(e){return man(targetOptionDeclaration.type,(r,i)=>r===e?i:void 0)}var xsn=["node_modules","bower_components","jspm_packages"],rUt=`(?!(?:${xsn.join("|")})(?:/|$))`,Tsn={singleAsteriskRegexFragment:"(?:[^./]|(?:\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(?:/${rUt}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>nUt(e,Tsn.singleAsteriskRegexFragment)},Esn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(?:/${rUt}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>nUt(e,Esn.singleAsteriskRegexFragment)};function nUt(e,r){return e==="*"?r:e==="?"?"[^/]":"\\"+e}function ksn(e,r){return r||Csn(e)||3}function Csn(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var iUt=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],uVn=YBt(iUt),pVn=[...iUt,[".json"]],Dsn=[[".js",".jsx"],[".mjs"],[".cjs"]],_Vn=YBt(Dsn),Asn=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],dVn=[...Asn,[".json"]],wsn=[".d.ts",".d.cts",".d.mts"];function d_e(e){return!(e>=0)}function oDe(e,...r){return r.length&&(e.relatedInformation||(e.relatedInformation=[]),Pi.assert(e.relatedInformation!==ky,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...r)),e}function Isn(e){let r;switch(e.charCodeAt(1)){case 98:case 66:r=1;break;case 111:case 79:r=3;break;case 120:case 88:r=4;break;default:let A=e.length-1,L=0;for(;e.charCodeAt(L)===48;)L++;return e.slice(L,A)||"0"}let i=2,s=e.length-1,l=(s-i)*r,d=new Uint16Array((l>>>4)+(l&15?1:0));for(let A=s-1,L=0;A>=i;A--,L+=r){let V=L>>>4,j=e.charCodeAt(A),ie=(j<=57?j-48:10+j-(j<=70?65:97))<<(L&15);d[V]|=ie;let te=ie>>>16;te&&(d[V+1]|=te)}let h="",S=d.length-1,b=!0;for(;b;){let A=0;b=!1;for(let L=S;L>=0;L--){let V=A<<16|d[L],j=V/10|0;d[L]=j,A=V-j*10,j&&!b&&(S=L,b=!0)}h=A+h}return h}function Psn({negative:e,base10Value:r}){return(e&&r!=="0"?"-":"")+r}function mYe(e,r){return e.pos=r,e}function Nsn(e,r){return e.end=r,e}function gB(e,r,i){return Nsn(mYe(e,r),i)}function uBt(e,r,i){return gB(e,r,r+i)}function XYe(e,r){return e&&r&&(e.parent=r),e}function Osn(e,r){if(!e)return e;return BBt(e,J$t(e)?i:l),e;function i(d,h){if(r&&d.parent===h)return"skip";XYe(d,h)}function s(d){if(AV(d))for(let h of d.jsDoc)i(h,d),BBt(h,i)}function l(d,h){return i(d,h)||s(d)}}function Fsn(e){return!!(e.flags&262144&&e.isThisType)}function Rsn(e){var r;return((r=getSnippetElement(e))==null?void 0:r.kind)===0}function Lsn(e){return`${Ek(e.namespace)}:${Ek(e.name)}`}var fVn=String.prototype.replace,hYe=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],mVn=new Set(hYe),Msn=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),hVn=new Set([...hYe,...hYe.map(e=>`node:${e}`),...Msn]);function jsn(){let e,r,i,s,l;return{createBaseSourceFileNode:d,createBaseIdentifierNode:h,createBasePrivateIdentifierNode:S,createBaseTokenNode:b,createBaseNode:A};function d(L){return new(l||(l=Ey.getSourceFileConstructor()))(L,-1,-1)}function h(L){return new(i||(i=Ey.getIdentifierConstructor()))(L,-1,-1)}function S(L){return new(s||(s=Ey.getPrivateIdentifierConstructor()))(L,-1,-1)}function b(L){return new(r||(r=Ey.getTokenConstructor()))(L,-1,-1)}function A(L){return new(e||(e=Ey.getNodeConstructor()))(L,-1,-1)}}var Bsn={getParenthesizeLeftSideOfBinaryForOperator:e=>wg,getParenthesizeRightSideOfBinaryForOperator:e=>wg,parenthesizeLeftSideOfBinary:(e,r)=>r,parenthesizeRightSideOfBinary:(e,r,i)=>i,parenthesizeExpressionOfComputedPropertyName:wg,parenthesizeConditionOfConditionalExpression:wg,parenthesizeBranchOfConditionalExpression:wg,parenthesizeExpressionOfExportDefault:wg,parenthesizeExpressionOfNew:e=>S8(e,cee),parenthesizeLeftSideOfAccess:e=>S8(e,cee),parenthesizeOperandOfPostfixUnary:e=>S8(e,cee),parenthesizeOperandOfPrefixUnary:e=>S8(e,nan),parenthesizeExpressionsOfCommaDelimitedList:e=>S8(e,fB),parenthesizeExpressionForDisallowedComma:wg,parenthesizeExpressionOfExpressionStatement:wg,parenthesizeConciseBodyOfArrowFunction:wg,parenthesizeCheckTypeOfConditionalType:wg,parenthesizeExtendsTypeOfConditionalType:wg,parenthesizeConstituentTypesOfUnionType:e=>S8(e,fB),parenthesizeConstituentTypeOfUnionType:wg,parenthesizeConstituentTypesOfIntersectionType:e=>S8(e,fB),parenthesizeConstituentTypeOfIntersectionType:wg,parenthesizeOperandOfTypeOperator:wg,parenthesizeOperandOfReadonlyTypeOperator:wg,parenthesizeNonArrayTypeOfPostfixType:wg,parenthesizeElementTypesOfTupleType:e=>S8(e,fB),parenthesizeElementTypeOfTupleType:wg,parenthesizeTypeOfOptionalType:wg,parenthesizeTypeArguments:e=>e&&S8(e,fB),parenthesizeLeadingTypeArgument:wg},aDe=0,$sn=[];function YYe(e,r){let i=e&8?wg:Vsn,s=Ujt(()=>e&1?Bsn:createParenthesizerRules(Je)),l=Ujt(()=>e&2?nullNodeConverters:createNodeConverters(Je)),d=nI(w=>(z,ne)=>KD(z,w,ne)),h=nI(w=>z=>Bk(w,z)),S=nI(w=>z=>CI(z,w)),b=nI(w=>()=>bO(w)),A=nI(w=>z=>LI(w,z)),L=nI(w=>(z,ne)=>FW(w,z,ne)),V=nI(w=>(z,ne)=>xO(w,z,ne)),j=nI(w=>(z,ne)=>Ste(w,z,ne)),ie=nI(w=>(z,ne)=>mo(w,z,ne)),te=nI(w=>(z,ne,Ie)=>t_(w,z,ne,Ie)),X=nI(w=>(z,ne,Ie)=>M$(w,z,ne,Ie)),Re=nI(w=>(z,ne,Ie,bt)=>xte(w,z,ne,Ie,bt)),Je={get parenthesizer(){return s()},get converters(){return l()},baseFactory:r,flags:e,createNodeArray:pt,createNumericLiteral:ht,createBigIntLiteral:wt,createStringLiteral:hr,createStringLiteralFromNode:Hi,createRegularExpressionLiteral:un,createLiteralLikeNode:xo,createIdentifier:co,createTempVariable:Cs,createLoopVariable:Cr,createUniqueName:ol,getGeneratedNameForNode:Zo,createPrivateIdentifier:an,createUniquePrivateName:li,getGeneratedPrivateNameForNode:Wi,createToken:Wn,createSuper:Na,createThis:hs,createNull:Us,createTrue:Sc,createFalse:Wu,createModifier:uc,createModifiersFromModifierFlags:Pt,createQualifiedName:ou,updateQualifiedName:go,createComputedPropertyName:mc,updateComputedPropertyName:zp,createTypeParameterDeclaration:Rh,updateTypeParameterDeclaration:K0,createParameterDeclaration:rf,updateParameterDeclaration:vx,createDecorator:dy,updateDecorator:vm,createPropertySignature:O1,updatePropertySignature:__,createPropertyDeclaration:cb,updatePropertyDeclaration:jt,createMethodSignature:ea,updateMethodSignature:Ti,createMethodDeclaration:En,updateMethodDeclaration:Zc,createConstructorDeclaration:or,updateConstructorDeclaration:Gr,createGetAccessorDeclaration:ia,updateGetAccessorDeclaration:To,createSetAccessorDeclaration:Yr,updateSetAccessorDeclaration:Sn,createCallSignature:us,updateCallSignature:Ja,createConstructSignature:pc,updateConstructSignature:rs,createIndexSignature:Yl,updateIndexSignature:nl,createClassStaticBlockDeclaration:zd,updateClassStaticBlockDeclaration:pu,createTemplateLiteralTypeSpan:eu,updateTemplateLiteralTypeSpan:Ho,createKeywordTypeNode:Q0,createTypePredicateNode:Lu,updateTypePredicateNode:aS,createTypeReferenceNode:sS,updateTypeReferenceNode:Jn,createFunctionTypeNode:so,updateFunctionTypeNode:qe,createConstructorTypeNode:_l,updateConstructorTypeNode:Pg,createTypeQueryNode:Lh,updateTypeQueryNode:zm,createTypeLiteralNode:ja,updateTypeLiteralNode:d_,createArrayTypeNode:K2,updateArrayTypeNode:K8,createTupleTypeNode:u0,updateTupleTypeNode:Qi,createNamedTupleMember:Zn,updateNamedTupleMember:Ll,createOptionalTypeNode:Ni,updateOptionalTypeNode:Kn,createRestTypeNode:Ci,updateRestTypeNode:Ba,createUnionTypeNode:AT,updateUnionTypeNode:Sx,createIntersectionTypeNode:vl,updateIntersectionTypeNode:Wl,createConditionalTypeNode:em,updateConditionalTypeNode:lb,createInferTypeNode:Ts,updateInferTypeNode:Ef,createImportTypeNode:Ng,updateImportTypeNode:F1,createParenthesizedType:qm,updateParenthesizedType:cg,createThisTypeNode:Br,createTypeOperatorNode:fy,updateTypeOperatorNode:Q2,createIndexedAccessTypeNode:bx,updateIndexedAccessTypeNode:JD,createMappedTypeNode:Sm,updateMappedTypeNode:Su,createLiteralTypeNode:ub,updateLiteralTypeNode:VD,createTemplateLiteralType:pd,updateTemplateLiteralType:d$,createObjectBindingPattern:Q8,updateObjectBindingPattern:k9,createArrayBindingPattern:Fk,updateArrayBindingPattern:f$,createBindingElement:Rk,updateBindingElement:WD,createArrayLiteralExpression:cS,updateArrayLiteralExpression:xx,createObjectLiteralExpression:Z8,updateObjectLiteralExpression:au,createPropertyAccessExpression:e&4?(w,z)=>setEmitFlags(wT(w,z),262144):wT,updatePropertyAccessExpression:C9,createPropertyAccessChain:e&4?(w,z,ne)=>setEmitFlags(IT(w,z,ne),262144):IT,updatePropertyAccessChain:R1,createElementAccessExpression:pb,updateElementAccessExpression:dte,createElementAccessChain:_d,updateElementAccessChain:X8,createCallExpression:GD,updateCallExpression:Ca,createCallChain:Mk,updateCallChain:Y8,createNewExpression:L1,updateNewExpression:EI,createTaggedTemplateExpression:jf,updateTaggedTemplateExpression:_4,createTypeAssertion:h$,updateTypeAssertion:Z2,createParenthesizedExpression:kI,updateParenthesizedExpression:A9,createFunctionExpression:w9,updateFunctionExpression:eO,createArrowFunction:tO,updateArrowFunction:rO,createDeleteExpression:I9,updateDeleteExpression:$,createTypeOfExpression:P9,updateTypeOfExpression:_b,createVoidExpression:g$,updateVoidExpression:jk,createAwaitExpression:kW,updateAwaitExpression:HD,createPrefixUnaryExpression:Bk,updatePrefixUnaryExpression:Iy,createPostfixUnaryExpression:CI,updatePostfixUnaryExpression:fte,createBinaryExpression:KD,updateBinaryExpression:mte,createConditionalExpression:DW,updateConditionalExpression:AW,createTemplateExpression:wW,updateTemplateExpression:PT,createTemplateHead:PW,createTemplateMiddle:N9,createTemplateTail:y$,createNoSubstitutionTemplateLiteral:gte,createTemplateLiteralLikeNode:lg,createYieldExpression:v$,updateYieldExpression:yte,createSpreadElement:NW,updateSpreadElement:vte,createClassExpression:O9,updateClassExpression:F9,createOmittedExpression:nO,createExpressionWithTypeArguments:Ml,updateExpressionWithTypeArguments:R9,createAsExpression:Py,updateAsExpression:db,createNonNullExpression:S$,updateNonNullExpression:iO,createSatisfiesExpression:oO,updateSatisfiesExpression:QD,createNonNullChain:L9,updateNonNullChain:Z0,createMetaProperty:AI,updateMetaProperty:$k,createTemplateSpan:jl,updateTemplateSpan:Jm,createSemicolonClassElement:b$,createBlock:fb,updateBlock:M9,createVariableStatement:j9,updateVariableStatement:x$,createEmptyStatement:T$,createExpressionStatement:wI,updateExpressionStatement:aO,createIfStatement:B9,updateIfStatement:hi,createDoStatement:II,updateDoStatement:$9,createWhileStatement:U9,updateWhileStatement:z9,createForStatement:sO,updateForStatement:cO,createForInStatement:lO,updateForInStatement:q9,createForOfStatement:J9,updateForOfStatement:V9,createContinueStatement:W9,updateContinueStatement:E$,createBreakStatement:PI,updateBreakStatement:G9,createReturnStatement:Uk,updateReturnStatement:H9,createWithStatement:uO,updateWithStatement:K9,createSwitchStatement:d4,updateSwitchStatement:ZD,createLabeledStatement:Q9,updateLabeledStatement:Z9,createThrowStatement:X9,updateThrowStatement:k$,createTryStatement:Y9,updateTryStatement:C$,createDebuggerStatement:eR,createVariableDeclaration:f4,updateVariableDeclaration:tR,createVariableDeclarationList:pO,updateVariableDeclarationList:D$,createFunctionDeclaration:_O,updateFunctionDeclaration:dO,createClassDeclaration:fO,updateClassDeclaration:NI,createInterfaceDeclaration:mO,updateInterfaceDeclaration:rR,createTypeAliasDeclaration:nf,updateTypeAliasDeclaration:X2,createEnumDeclaration:hO,updateEnumDeclaration:Y2,createModuleDeclaration:nR,updateModuleDeclaration:Vm,createModuleBlock:eE,updateModuleBlock:Ny,createCaseBlock:iR,updateCaseBlock:w$,createNamespaceExportDeclaration:oR,updateNamespaceExportDeclaration:aR,createImportEqualsDeclaration:NT,updateImportEqualsDeclaration:zk,createImportDeclaration:sR,updateImportDeclaration:cR,createImportClause:lR,updateImportClause:uR,createAssertClause:tE,updateAssertClause:I$,createAssertEntry:OI,updateAssertEntry:pR,createImportTypeAssertionContainer:m4,updateImportTypeAssertionContainer:_R,createImportAttributes:dR,updateImportAttributes:yO,createImportAttribute:fR,updateImportAttribute:mR,createNamespaceImport:vO,updateNamespaceImport:hR,createNamespaceExport:SO,updateNamespaceExport:P$,createNamedImports:C_,updateNamedImports:gR,createImportSpecifier:rE,updateImportSpecifier:N$,createExportAssignment:h4,updateExportAssignment:FI,createExportDeclaration:g4,updateExportDeclaration:y4,createNamedExports:qk,updateNamedExports:OW,createExportSpecifier:v4,updateExportSpecifier:yR,createMissingDeclaration:Wm,createExternalModuleReference:OT,updateExternalModuleReference:O$,get createJSDocAllType(){return b(313)},get createJSDocUnknownType(){return b(314)},get createJSDocNonNullableType(){return V(316)},get updateJSDocNonNullableType(){return j(316)},get createJSDocNullableType(){return V(315)},get updateJSDocNullableType(){return j(315)},get createJSDocOptionalType(){return A(317)},get updateJSDocOptionalType(){return L(317)},get createJSDocVariadicType(){return A(319)},get updateJSDocVariadicType(){return L(319)},get createJSDocNamepathType(){return A(320)},get updateJSDocNamepathType(){return L(320)},createJSDocFunctionType:RW,updateJSDocFunctionType:bte,createJSDocTypeLiteral:LW,updateJSDocTypeLiteral:MW,createJSDocTypeExpression:jW,updateJSDocTypeExpression:S4,createJSDocSignature:b4,updateJSDocSignature:BW,createJSDocTemplateTag:TO,updateJSDocTemplateTag:$W,createJSDocTypedefTag:vR,updateJSDocTypedefTag:UW,createJSDocParameterTag:SR,updateJSDocParameterTag:F$,createJSDocPropertyTag:bR,updateJSDocPropertyTag:f_,createJSDocCallbackTag:R$,updateJSDocCallbackTag:Gl,createJSDocOverloadTag:x4,updateJSDocOverloadTag:xR,createJSDocAugmentsTag:L$,updateJSDocAugmentsTag:XD,createJSDocImplementsTag:TR,updateJSDocImplementsTag:Fy,createJSDocSeeTag:qd,updateJSDocSeeTag:jI,createJSDocImportTag:Z_,updateJSDocImportTag:iE,createJSDocNameReference:YD,updateJSDocNameReference:ch,createJSDocMemberName:EO,updateJSDocMemberName:eA,createJSDocLink:Au,updateJSDocLink:_p,createJSDocLinkCode:uS,updateJSDocLinkCode:zW,createJSDocLinkPlain:qW,updateJSDocLinkPlain:kO,get createJSDocTypeTag(){return X(345)},get updateJSDocTypeTag(){return Re(345)},get createJSDocReturnTag(){return X(343)},get updateJSDocReturnTag(){return Re(343)},get createJSDocThisTag(){return X(344)},get updateJSDocThisTag(){return Re(344)},get createJSDocAuthorTag(){return ie(331)},get updateJSDocAuthorTag(){return te(331)},get createJSDocClassTag(){return ie(333)},get updateJSDocClassTag(){return te(333)},get createJSDocPublicTag(){return ie(334)},get updateJSDocPublicTag(){return te(334)},get createJSDocPrivateTag(){return ie(335)},get updateJSDocPrivateTag(){return te(335)},get createJSDocProtectedTag(){return ie(336)},get updateJSDocProtectedTag(){return te(336)},get createJSDocReadonlyTag(){return ie(337)},get updateJSDocReadonlyTag(){return te(337)},get createJSDocOverrideTag(){return ie(338)},get updateJSDocOverrideTag(){return te(338)},get createJSDocDeprecatedTag(){return ie(332)},get updateJSDocDeprecatedTag(){return te(332)},get createJSDocThrowsTag(){return X(350)},get updateJSDocThrowsTag(){return Re(350)},get createJSDocSatisfiesTag(){return X(351)},get updateJSDocSatisfiesTag(){return Re(351)},createJSDocEnumTag:Cd,updateJSDocEnumTag:pS,createJSDocUnknownTag:nE,updateJSDocUnknownTag:Tte,createJSDocText:Xi,updateJSDocText:mb,createJSDocComment:Jk,updateJSDocComment:za,createJsxElement:Qs,updateJsxElement:JW,createJsxSelfClosingElement:VW,updateJsxSelfClosingElement:ER,createJsxOpeningElement:wl,updateJsxOpeningElement:dv,createJsxClosingElement:r_,updateJsxClosingElement:Tx,createJsxFragment:Og,createJsxText:tA,updateJsxText:j$,createJsxOpeningFragment:B$,createJsxJsxClosingFragment:$$,updateJsxFragment:T4,createJsxAttribute:M1,updateJsxAttribute:ug,createJsxAttributes:rA,updateJsxAttributes:WW,createJsxSpreadAttribute:lh,updateJsxSpreadAttribute:BI,createJsxExpression:Vk,updateJsxExpression:FT,createJsxNamespacedName:Ex,updateJsxNamespacedName:CO,createCaseClause:I,updateCaseClause:x,createDefaultClause:Bf,updateDefaultClause:$I,createHeritageClause:UI,updateHeritageClause:Ete,createCatchClause:U$,updateCatchClause:z$,createPropertyAssignment:kR,updatePropertyAssignment:q$,createShorthandPropertyAssignment:GW,updateShorthandPropertyAssignment:kte,createSpreadAssignment:HW,updateSpreadAssignment:KW,createEnumMember:k4,updateEnumMember:fv,createSourceFile:QW,updateSourceFile:ZW,createRedirectedSourceFile:J$,createBundle:DO,updateBundle:oE,createSyntheticExpression:C4,createSyntaxList:AO,createNotEmittedStatement:Ry,createNotEmittedTypeElement:zI,createPartiallyEmittedExpression:aE,updatePartiallyEmittedExpression:nA,createCommaListExpression:p0,updateCommaListExpression:_0,createSyntheticReferenceExpression:Dd,updateSyntheticReferenceExpression:Wk,cloneNode:D4,get createComma(){return d(28)},get createAssignment(){return d(64)},get createLogicalOr(){return d(57)},get createLogicalAnd(){return d(56)},get createBitwiseOr(){return d(52)},get createBitwiseXor(){return d(53)},get createBitwiseAnd(){return d(51)},get createStrictEquality(){return d(37)},get createStrictInequality(){return d(38)},get createEquality(){return d(35)},get createInequality(){return d(36)},get createLessThan(){return d(30)},get createLessThanEquals(){return d(33)},get createGreaterThan(){return d(32)},get createGreaterThanEquals(){return d(34)},get createLeftShift(){return d(48)},get createRightShift(){return d(49)},get createUnsignedRightShift(){return d(50)},get createAdd(){return d(40)},get createSubtract(){return d(41)},get createMultiply(){return d(42)},get createDivide(){return d(44)},get createModulo(){return d(45)},get createExponent(){return d(43)},get createPrefixPlus(){return h(40)},get createPrefixMinus(){return h(41)},get createPrefixIncrement(){return h(46)},get createPrefixDecrement(){return h(47)},get createBitwiseNot(){return h(55)},get createLogicalNot(){return h(54)},get createPostfixIncrement(){return S(46)},get createPostfixDecrement(){return S(47)},createImmediatelyInvokedFunctionExpression:_c,createImmediatelyInvokedArrowFunction:AR,createVoidZero:RT,createExportDefault:qI,createExternalModuleExport:wR,createTypeCheck:YW,createIsNotTypeCheck:IR,createMethodCall:sE,createGlobalMethodCall:JI,createFunctionBindCall:A4,createFunctionCallCall:w4,createFunctionApplyCall:G$,createArraySliceCall:eG,createArrayConcatCall:my,createObjectDefinePropertyCall:hb,createObjectGetOwnPropertyDescriptorCall:VI,createReflectGetCall:pg,createReflectSetCall:j1,createPropertyDescriptor:B1,createCallBinding:H$,createAssignmentTargetWrapper:K$,inlineExpressions:ge,getInternalName:vt,getLocalName:nr,getExportName:Rr,getDeclarationName:kn,getNamespaceMemberName:Xn,getExternalModuleOrNamespaceExportName:Da,restoreOuterExpressions:tG,restoreEnclosingLabel:rG,createUseStrictPrologue:Ha,copyPrologue:jo,copyStandardPrologue:su,copyCustomPrologue:Hl,ensureUseStrict:dl,liftToBlock:$1,mergeLexicalEnvironment:_S,replaceModifiers:dS,replaceDecoratorsAndModifiers:gb,replacePropertyName:Hk};return ND($sn,w=>w(Je)),Je;function pt(w,z){if(w===void 0||w===ky)w=[];else if(fB(w)){if(z===void 0||w.hasTrailingComma===z)return w.transformFlags===void 0&&_Bt(w),Pi.attachNodeArrayDebugInfo(w),w;let bt=w.slice();return bt.pos=w.pos,bt.end=w.end,bt.hasTrailingComma=z,bt.transformFlags=w.transformFlags,Pi.attachNodeArrayDebugInfo(bt),bt}let ne=w.length,Ie=ne>=1&&ne<=4?w.slice():w;return Ie.pos=-1,Ie.end=-1,Ie.hasTrailingComma=!!z,Ie.transformFlags=0,_Bt(Ie),Pi.attachNodeArrayDebugInfo(Ie),Ie}function $e(w){return r.createBaseNode(w)}function xt(w){let z=$e(w);return z.symbol=void 0,z.localSymbol=void 0,z}function tr(w,z){return w!==z&&(w.typeArguments=z.typeArguments),_i(w,z)}function ht(w,z=0){let ne=typeof w=="number"?w+"":w;Pi.assert(ne.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let Ie=xt(9);return Ie.text=ne,Ie.numericLiteralFlags=z,z&384&&(Ie.transformFlags|=1024),Ie}function wt(w){let z=Bo(10);return z.text=typeof w=="string"?w:Psn(w)+"n",z.transformFlags|=32,z}function Ut(w,z){let ne=xt(11);return ne.text=w,ne.singleQuote=z,ne}function hr(w,z,ne){let Ie=Ut(w,z);return Ie.hasExtendedUnicodeEscape=ne,ne&&(Ie.transformFlags|=1024),Ie}function Hi(w){let z=Ut(Gan(w),void 0);return z.textSourceNode=w,z}function un(w){let z=Bo(14);return z.text=w,z}function xo(w,z){switch(w){case 9:return ht(z,0);case 10:return wt(z);case 11:return hr(z,void 0);case 12:return tA(z,!1);case 13:return tA(z,!0);case 14:return un(z);case 15:return lg(w,z,void 0,0)}}function Lo(w){let z=r.createBaseIdentifierNode(80);return z.escapedText=w,z.jsDoc=void 0,z.flowNode=void 0,z.symbol=void 0,z}function yr(w,z,ne,Ie){let bt=Lo(XY(w));return setIdentifierAutoGenerate(bt,{flags:z,id:aDe,prefix:ne,suffix:Ie}),aDe++,bt}function co(w,z,ne){z===void 0&&w&&(z=b$t(w)),z===80&&(z=void 0);let Ie=Lo(XY(w));return ne&&(Ie.flags|=256),Ie.escapedText==="await"&&(Ie.transformFlags|=67108864),Ie.flags&256&&(Ie.transformFlags|=1024),Ie}function Cs(w,z,ne,Ie){let bt=1;z&&(bt|=8);let Pr=yr("",bt,ne,Ie);return w&&w(Pr),Pr}function Cr(w){let z=2;return w&&(z|=8),yr("",z,void 0,void 0)}function ol(w,z=0,ne,Ie){return Pi.assert(!(z&7),"Argument out of range: flags"),Pi.assert((z&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),yr(w,3|z,ne,Ie)}function Zo(w,z=0,ne,Ie){Pi.assert(!(z&7),"Argument out of range: flags");let bt=w?_Ye(w)?SYe(!1,ne,w,Ie,Ek):`generated@${getNodeId(w)}`:"";(ne||Ie)&&(z|=16);let Pr=yr(bt,4|z,ne,Ie);return Pr.original=w,Pr}function Rc(w){let z=r.createBasePrivateIdentifierNode(81);return z.escapedText=w,z.transformFlags|=16777216,z}function an(w){return hDe(w,"#")||Pi.fail("First character of private identifier must be #: "+w),Rc(XY(w))}function Xr(w,z,ne,Ie){let bt=Rc(XY(w));return setIdentifierAutoGenerate(bt,{flags:z,id:aDe,prefix:ne,suffix:Ie}),aDe++,bt}function li(w,z,ne){w&&!hDe(w,"#")&&Pi.fail("First character of private identifier must be #: "+w);let Ie=8|(w?3:1);return Xr(w??"",Ie,z,ne)}function Wi(w,z,ne){let Ie=_Ye(w)?SYe(!0,z,w,ne,Ek):`#generated@${getNodeId(w)}`,bt=Xr(Ie,4|(z||ne?16:0),z,ne);return bt.original=w,bt}function Bo(w){return r.createBaseTokenNode(w)}function Wn(w){Pi.assert(w>=0&&w<=166,"Invalid token"),Pi.assert(w<=15||w>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),Pi.assert(w<=9||w>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),Pi.assert(w!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let z=Bo(w),ne=0;switch(w){case 134:ne=384;break;case 160:ne=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:ne=1;break;case 108:ne=134218752,z.flowNode=void 0;break;case 126:ne=1024;break;case 129:ne=16777216;break;case 110:ne=16384,z.flowNode=void 0;break}return ne&&(z.transformFlags|=ne),z}function Na(){return Wn(108)}function hs(){return Wn(110)}function Us(){return Wn(106)}function Sc(){return Wn(112)}function Wu(){return Wn(97)}function uc(w){return Wn(w)}function Pt(w){let z=[];return w&32&&z.push(uc(95)),w&128&&z.push(uc(138)),w&2048&&z.push(uc(90)),w&4096&&z.push(uc(87)),w&1&&z.push(uc(125)),w&2&&z.push(uc(123)),w&4&&z.push(uc(124)),w&64&&z.push(uc(128)),w&256&&z.push(uc(126)),w&16&&z.push(uc(164)),w&8&&z.push(uc(148)),w&512&&z.push(uc(129)),w&1024&&z.push(uc(134)),w&8192&&z.push(uc(103)),w&16384&&z.push(uc(147)),z.length?z:void 0}function ou(w,z){let ne=$e(167);return ne.left=w,ne.right=D_(z),ne.transformFlags|=Ji(ne.left)|eee(ne.right),ne.flowNode=void 0,ne}function go(w,z,ne){return w.left!==z||w.right!==ne?_i(ou(z,ne),w):w}function mc(w){let z=$e(168);return z.expression=s().parenthesizeExpressionOfComputedPropertyName(w),z.transformFlags|=Ji(z.expression)|1024|131072,z}function zp(w,z){return w.expression!==z?_i(mc(z),w):w}function Rh(w,z,ne,Ie){let bt=xt(169);return bt.modifiers=fl(w),bt.name=D_(z),bt.constraint=ne,bt.default=Ie,bt.transformFlags=1,bt.expression=void 0,bt.jsDoc=void 0,bt}function K0(w,z,ne,Ie,bt){return w.modifiers!==z||w.name!==ne||w.constraint!==Ie||w.default!==bt?_i(Rh(z,ne,Ie,bt),w):w}function rf(w,z,ne,Ie,bt,Pr){let Ri=xt(170);return Ri.modifiers=fl(w),Ri.dotDotDotToken=z,Ri.name=D_(ne),Ri.questionToken=Ie,Ri.type=bt,Ri.initializer=Hu(Pr),Kan(Ri.name)?Ri.transformFlags=1:Ri.transformFlags=ul(Ri.modifiers)|Ji(Ri.dotDotDotToken)|wD(Ri.name)|Ji(Ri.questionToken)|Ji(Ri.initializer)|(Ri.questionToken??Ri.type?1:0)|(Ri.dotDotDotToken??Ri.initializer?1024:0)|(ID(Ri.modifiers)&31?8192:0),Ri.jsDoc=void 0,Ri}function vx(w,z,ne,Ie,bt,Pr,Ri){return w.modifiers!==z||w.dotDotDotToken!==ne||w.name!==Ie||w.questionToken!==bt||w.type!==Pr||w.initializer!==Ri?_i(rf(z,ne,Ie,bt,Pr,Ri),w):w}function dy(w){let z=$e(171);return z.expression=s().parenthesizeLeftSideOfAccess(w,!1),z.transformFlags|=Ji(z.expression)|1|8192|33554432,z}function vm(w,z){return w.expression!==z?_i(dy(z),w):w}function O1(w,z,ne,Ie){let bt=xt(172);return bt.modifiers=fl(w),bt.name=D_(z),bt.type=Ie,bt.questionToken=ne,bt.transformFlags=1,bt.initializer=void 0,bt.jsDoc=void 0,bt}function __(w,z,ne,Ie,bt){return w.modifiers!==z||w.name!==ne||w.questionToken!==Ie||w.type!==bt?Bc(O1(z,ne,Ie,bt),w):w}function Bc(w,z){return w!==z&&(w.initializer=z.initializer),_i(w,z)}function cb(w,z,ne,Ie,bt){let Pr=xt(173);Pr.modifiers=fl(w),Pr.name=D_(z),Pr.questionToken=ne&&fBt(ne)?ne:void 0,Pr.exclamationToken=ne&&dBt(ne)?ne:void 0,Pr.type=Ie,Pr.initializer=Hu(bt);let Ri=Pr.flags&33554432||ID(Pr.modifiers)&128;return Pr.transformFlags=ul(Pr.modifiers)|wD(Pr.name)|Ji(Pr.initializer)|(Ri||Pr.questionToken||Pr.exclamationToken||Pr.type?1:0)|(oUt(Pr.name)||ID(Pr.modifiers)&256&&Pr.initializer?8192:0)|16777216,Pr.jsDoc=void 0,Pr}function jt(w,z,ne,Ie,bt,Pr){return w.modifiers!==z||w.name!==ne||w.questionToken!==(Ie!==void 0&&fBt(Ie)?Ie:void 0)||w.exclamationToken!==(Ie!==void 0&&dBt(Ie)?Ie:void 0)||w.type!==bt||w.initializer!==Pr?_i(cb(z,ne,Ie,bt,Pr),w):w}function ea(w,z,ne,Ie,bt,Pr){let Ri=xt(174);return Ri.modifiers=fl(w),Ri.name=D_(z),Ri.questionToken=ne,Ri.typeParameters=fl(Ie),Ri.parameters=fl(bt),Ri.type=Pr,Ri.transformFlags=1,Ri.jsDoc=void 0,Ri.locals=void 0,Ri.nextContainer=void 0,Ri.typeArguments=void 0,Ri}function Ti(w,z,ne,Ie,bt,Pr,Ri){return w.modifiers!==z||w.name!==ne||w.questionToken!==Ie||w.typeParameters!==bt||w.parameters!==Pr||w.type!==Ri?tr(ea(z,ne,Ie,bt,Pr,Ri),w):w}function En(w,z,ne,Ie,bt,Pr,Ri,Ra){let _u=xt(175);if(_u.modifiers=fl(w),_u.asteriskToken=z,_u.name=D_(ne),_u.questionToken=Ie,_u.exclamationToken=void 0,_u.typeParameters=fl(bt),_u.parameters=pt(Pr),_u.type=Ri,_u.body=Ra,!_u.body)_u.transformFlags=1;else{let dd=ID(_u.modifiers)&1024,Kk=!!_u.asteriskToken,fS=dd&&Kk;_u.transformFlags=ul(_u.modifiers)|Ji(_u.asteriskToken)|wD(_u.name)|Ji(_u.questionToken)|ul(_u.typeParameters)|ul(_u.parameters)|Ji(_u.type)|Ji(_u.body)&-67108865|(fS?128:dd?256:Kk?2048:0)|(_u.questionToken||_u.typeParameters||_u.type?1:0)|1024}return _u.typeArguments=void 0,_u.jsDoc=void 0,_u.locals=void 0,_u.nextContainer=void 0,_u.flowNode=void 0,_u.endFlowNode=void 0,_u.returnFlowNode=void 0,_u}function Zc(w,z,ne,Ie,bt,Pr,Ri,Ra,_u){return w.modifiers!==z||w.asteriskToken!==ne||w.name!==Ie||w.questionToken!==bt||w.typeParameters!==Pr||w.parameters!==Ri||w.type!==Ra||w.body!==_u?Jl(En(z,ne,Ie,bt,Pr,Ri,Ra,_u),w):w}function Jl(w,z){return w!==z&&(w.exclamationToken=z.exclamationToken),_i(w,z)}function zd(w){let z=xt(176);return z.body=w,z.transformFlags=Ji(w)|16777216,z.modifiers=void 0,z.jsDoc=void 0,z.locals=void 0,z.nextContainer=void 0,z.endFlowNode=void 0,z.returnFlowNode=void 0,z}function pu(w,z){return w.body!==z?Tf(zd(z),w):w}function Tf(w,z){return w!==z&&(w.modifiers=z.modifiers),_i(w,z)}function or(w,z,ne){let Ie=xt(177);return Ie.modifiers=fl(w),Ie.parameters=pt(z),Ie.body=ne,Ie.body?Ie.transformFlags=ul(Ie.modifiers)|ul(Ie.parameters)|Ji(Ie.body)&-67108865|1024:Ie.transformFlags=1,Ie.typeParameters=void 0,Ie.type=void 0,Ie.typeArguments=void 0,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.endFlowNode=void 0,Ie.returnFlowNode=void 0,Ie}function Gr(w,z,ne,Ie){return w.modifiers!==z||w.parameters!==ne||w.body!==Ie?pi(or(z,ne,Ie),w):w}function pi(w,z){return w!==z&&(w.typeParameters=z.typeParameters,w.type=z.type),tr(w,z)}function ia(w,z,ne,Ie,bt){let Pr=xt(178);return Pr.modifiers=fl(w),Pr.name=D_(z),Pr.parameters=pt(ne),Pr.type=Ie,Pr.body=bt,Pr.body?Pr.transformFlags=ul(Pr.modifiers)|wD(Pr.name)|ul(Pr.parameters)|Ji(Pr.type)|Ji(Pr.body)&-67108865|(Pr.type?1:0):Pr.transformFlags=1,Pr.typeArguments=void 0,Pr.typeParameters=void 0,Pr.jsDoc=void 0,Pr.locals=void 0,Pr.nextContainer=void 0,Pr.flowNode=void 0,Pr.endFlowNode=void 0,Pr.returnFlowNode=void 0,Pr}function To(w,z,ne,Ie,bt,Pr){return w.modifiers!==z||w.name!==ne||w.parameters!==Ie||w.type!==bt||w.body!==Pr?Gu(ia(z,ne,Ie,bt,Pr),w):w}function Gu(w,z){return w!==z&&(w.typeParameters=z.typeParameters),tr(w,z)}function Yr(w,z,ne,Ie){let bt=xt(179);return bt.modifiers=fl(w),bt.name=D_(z),bt.parameters=pt(ne),bt.body=Ie,bt.body?bt.transformFlags=ul(bt.modifiers)|wD(bt.name)|ul(bt.parameters)|Ji(bt.body)&-67108865|(bt.type?1:0):bt.transformFlags=1,bt.typeArguments=void 0,bt.typeParameters=void 0,bt.type=void 0,bt.jsDoc=void 0,bt.locals=void 0,bt.nextContainer=void 0,bt.flowNode=void 0,bt.endFlowNode=void 0,bt.returnFlowNode=void 0,bt}function Sn(w,z,ne,Ie,bt){return w.modifiers!==z||w.name!==ne||w.parameters!==Ie||w.body!==bt?to(Yr(z,ne,Ie,bt),w):w}function to(w,z){return w!==z&&(w.typeParameters=z.typeParameters,w.type=z.type),tr(w,z)}function us(w,z,ne){let Ie=xt(180);return Ie.typeParameters=fl(w),Ie.parameters=fl(z),Ie.type=ne,Ie.transformFlags=1,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.typeArguments=void 0,Ie}function Ja(w,z,ne,Ie){return w.typeParameters!==z||w.parameters!==ne||w.type!==Ie?tr(us(z,ne,Ie),w):w}function pc(w,z,ne){let Ie=xt(181);return Ie.typeParameters=fl(w),Ie.parameters=fl(z),Ie.type=ne,Ie.transformFlags=1,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.typeArguments=void 0,Ie}function rs(w,z,ne,Ie){return w.typeParameters!==z||w.parameters!==ne||w.type!==Ie?tr(pc(z,ne,Ie),w):w}function Yl(w,z,ne){let Ie=xt(182);return Ie.modifiers=fl(w),Ie.parameters=fl(z),Ie.type=ne,Ie.transformFlags=1,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.typeArguments=void 0,Ie}function nl(w,z,ne,Ie){return w.parameters!==ne||w.type!==Ie||w.modifiers!==z?tr(Yl(z,ne,Ie),w):w}function eu(w,z){let ne=$e(205);return ne.type=w,ne.literal=z,ne.transformFlags=1,ne}function Ho(w,z,ne){return w.type!==z||w.literal!==ne?_i(eu(z,ne),w):w}function Q0(w){return Wn(w)}function Lu(w,z,ne){let Ie=$e(183);return Ie.assertsModifier=w,Ie.parameterName=D_(z),Ie.type=ne,Ie.transformFlags=1,Ie}function aS(w,z,ne,Ie){return w.assertsModifier!==z||w.parameterName!==ne||w.type!==Ie?_i(Lu(z,ne,Ie),w):w}function sS(w,z){let ne=$e(184);return ne.typeName=D_(w),ne.typeArguments=z&&s().parenthesizeTypeArguments(pt(z)),ne.transformFlags=1,ne}function Jn(w,z,ne){return w.typeName!==z||w.typeArguments!==ne?_i(sS(z,ne),w):w}function so(w,z,ne){let Ie=xt(185);return Ie.typeParameters=fl(w),Ie.parameters=fl(z),Ie.type=ne,Ie.transformFlags=1,Ie.modifiers=void 0,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.typeArguments=void 0,Ie}function qe(w,z,ne,Ie){return w.typeParameters!==z||w.parameters!==ne||w.type!==Ie?yl(so(z,ne,Ie),w):w}function yl(w,z){return w!==z&&(w.modifiers=z.modifiers),tr(w,z)}function _l(...w){return w.length===4?bi(...w):w.length===3?tu(...w):Pi.fail("Incorrect number of arguments specified.")}function bi(w,z,ne,Ie){let bt=xt(186);return bt.modifiers=fl(w),bt.typeParameters=fl(z),bt.parameters=fl(ne),bt.type=Ie,bt.transformFlags=1,bt.jsDoc=void 0,bt.locals=void 0,bt.nextContainer=void 0,bt.typeArguments=void 0,bt}function tu(w,z,ne){return bi(void 0,w,z,ne)}function Pg(...w){return w.length===5?Du(...w):w.length===4?qp(...w):Pi.fail("Incorrect number of arguments specified.")}function Du(w,z,ne,Ie,bt){return w.modifiers!==z||w.typeParameters!==ne||w.parameters!==Ie||w.type!==bt?tr(_l(z,ne,Ie,bt),w):w}function qp(w,z,ne,Ie){return Du(w,w.modifiers,z,ne,Ie)}function Lh(w,z){let ne=$e(187);return ne.exprName=w,ne.typeArguments=z&&s().parenthesizeTypeArguments(z),ne.transformFlags=1,ne}function zm(w,z,ne){return w.exprName!==z||w.typeArguments!==ne?_i(Lh(z,ne),w):w}function ja(w){let z=xt(188);return z.members=pt(w),z.transformFlags=1,z}function d_(w,z){return w.members!==z?_i(ja(z),w):w}function K2(w){let z=$e(189);return z.elementType=s().parenthesizeNonArrayTypeOfPostfixType(w),z.transformFlags=1,z}function K8(w,z){return w.elementType!==z?_i(K2(z),w):w}function u0(w){let z=$e(190);return z.elements=pt(s().parenthesizeElementTypesOfTupleType(w)),z.transformFlags=1,z}function Qi(w,z){return w.elements!==z?_i(u0(z),w):w}function Zn(w,z,ne,Ie){let bt=xt(203);return bt.dotDotDotToken=w,bt.name=z,bt.questionToken=ne,bt.type=Ie,bt.transformFlags=1,bt.jsDoc=void 0,bt}function Ll(w,z,ne,Ie,bt){return w.dotDotDotToken!==z||w.name!==ne||w.questionToken!==Ie||w.type!==bt?_i(Zn(z,ne,Ie,bt),w):w}function Ni(w){let z=$e(191);return z.type=s().parenthesizeTypeOfOptionalType(w),z.transformFlags=1,z}function Kn(w,z){return w.type!==z?_i(Ni(z),w):w}function Ci(w){let z=$e(192);return z.type=w,z.transformFlags=1,z}function Ba(w,z){return w.type!==z?_i(Ci(z),w):w}function zs(w,z,ne){let Ie=$e(w);return Ie.types=Je.createNodeArray(ne(z)),Ie.transformFlags=1,Ie}function Yf(w,z,ne){return w.types!==z?_i(zs(w.kind,z,ne),w):w}function AT(w){return zs(193,w,s().parenthesizeConstituentTypesOfUnionType)}function Sx(w,z){return Yf(w,z,s().parenthesizeConstituentTypesOfUnionType)}function vl(w){return zs(194,w,s().parenthesizeConstituentTypesOfIntersectionType)}function Wl(w,z){return Yf(w,z,s().parenthesizeConstituentTypesOfIntersectionType)}function em(w,z,ne,Ie){let bt=$e(195);return bt.checkType=s().parenthesizeCheckTypeOfConditionalType(w),bt.extendsType=s().parenthesizeExtendsTypeOfConditionalType(z),bt.trueType=ne,bt.falseType=Ie,bt.transformFlags=1,bt.locals=void 0,bt.nextContainer=void 0,bt}function lb(w,z,ne,Ie,bt){return w.checkType!==z||w.extendsType!==ne||w.trueType!==Ie||w.falseType!==bt?_i(em(z,ne,Ie,bt),w):w}function Ts(w){let z=$e(196);return z.typeParameter=w,z.transformFlags=1,z}function Ef(w,z){return w.typeParameter!==z?_i(Ts(z),w):w}function pd(w,z){let ne=$e(204);return ne.head=w,ne.templateSpans=pt(z),ne.transformFlags=1,ne}function d$(w,z,ne){return w.head!==z||w.templateSpans!==ne?_i(pd(z,ne),w):w}function Ng(w,z,ne,Ie,bt=!1){let Pr=$e(206);return Pr.argument=w,Pr.attributes=z,Pr.assertions&&Pr.assertions.assertClause&&Pr.attributes&&(Pr.assertions.assertClause=Pr.attributes),Pr.qualifier=ne,Pr.typeArguments=Ie&&s().parenthesizeTypeArguments(Ie),Pr.isTypeOf=bt,Pr.transformFlags=1,Pr}function F1(w,z,ne,Ie,bt,Pr=w.isTypeOf){return w.argument!==z||w.attributes!==ne||w.qualifier!==Ie||w.typeArguments!==bt||w.isTypeOf!==Pr?_i(Ng(z,ne,Ie,bt,Pr),w):w}function qm(w){let z=$e(197);return z.type=w,z.transformFlags=1,z}function cg(w,z){return w.type!==z?_i(qm(z),w):w}function Br(){let w=$e(198);return w.transformFlags=1,w}function fy(w,z){let ne=$e(199);return ne.operator=w,ne.type=w===148?s().parenthesizeOperandOfReadonlyTypeOperator(z):s().parenthesizeOperandOfTypeOperator(z),ne.transformFlags=1,ne}function Q2(w,z){return w.type!==z?_i(fy(w.operator,z),w):w}function bx(w,z){let ne=$e(200);return ne.objectType=s().parenthesizeNonArrayTypeOfPostfixType(w),ne.indexType=z,ne.transformFlags=1,ne}function JD(w,z,ne){return w.objectType!==z||w.indexType!==ne?_i(bx(z,ne),w):w}function Sm(w,z,ne,Ie,bt,Pr){let Ri=xt(201);return Ri.readonlyToken=w,Ri.typeParameter=z,Ri.nameType=ne,Ri.questionToken=Ie,Ri.type=bt,Ri.members=Pr&&pt(Pr),Ri.transformFlags=1,Ri.locals=void 0,Ri.nextContainer=void 0,Ri}function Su(w,z,ne,Ie,bt,Pr,Ri){return w.readonlyToken!==z||w.typeParameter!==ne||w.nameType!==Ie||w.questionToken!==bt||w.type!==Pr||w.members!==Ri?_i(Sm(z,ne,Ie,bt,Pr,Ri),w):w}function ub(w){let z=$e(202);return z.literal=w,z.transformFlags=1,z}function VD(w,z){return w.literal!==z?_i(ub(z),w):w}function Q8(w){let z=$e(207);return z.elements=pt(w),z.transformFlags|=ul(z.elements)|1024|524288,z.transformFlags&32768&&(z.transformFlags|=65664),z}function k9(w,z){return w.elements!==z?_i(Q8(z),w):w}function Fk(w){let z=$e(208);return z.elements=pt(w),z.transformFlags|=ul(z.elements)|1024|524288,z}function f$(w,z){return w.elements!==z?_i(Fk(z),w):w}function Rk(w,z,ne,Ie){let bt=xt(209);return bt.dotDotDotToken=w,bt.propertyName=D_(z),bt.name=D_(ne),bt.initializer=Hu(Ie),bt.transformFlags|=Ji(bt.dotDotDotToken)|wD(bt.propertyName)|wD(bt.name)|Ji(bt.initializer)|(bt.dotDotDotToken?32768:0)|1024,bt.flowNode=void 0,bt}function WD(w,z,ne,Ie,bt){return w.propertyName!==ne||w.dotDotDotToken!==z||w.name!==Ie||w.initializer!==bt?_i(Rk(z,ne,Ie,bt),w):w}function cS(w,z){let ne=$e(210),Ie=w&&oee(w),bt=pt(w,Ie&&wcn(Ie)?!0:void 0);return ne.elements=s().parenthesizeExpressionsOfCommaDelimitedList(bt),ne.multiLine=z,ne.transformFlags|=ul(ne.elements),ne}function xx(w,z){return w.elements!==z?_i(cS(z,w.multiLine),w):w}function Z8(w,z){let ne=xt(211);return ne.properties=pt(w),ne.multiLine=z,ne.transformFlags|=ul(ne.properties),ne.jsDoc=void 0,ne}function au(w,z){return w.properties!==z?_i(Z8(z,w.multiLine),w):w}function Lk(w,z,ne){let Ie=xt(212);return Ie.expression=w,Ie.questionDotToken=z,Ie.name=ne,Ie.transformFlags=Ji(Ie.expression)|Ji(Ie.questionDotToken)|(Kd(Ie.name)?eee(Ie.name):Ji(Ie.name)|536870912),Ie.jsDoc=void 0,Ie.flowNode=void 0,Ie}function wT(w,z){let ne=Lk(s().parenthesizeLeftSideOfAccess(w,!1),void 0,D_(z));return XXe(w)&&(ne.transformFlags|=384),ne}function C9(w,z,ne){return Bon(w)?R1(w,z,w.questionDotToken,S8(ne,Kd)):w.expression!==z||w.name!==ne?_i(wT(z,ne),w):w}function IT(w,z,ne){let Ie=Lk(s().parenthesizeLeftSideOfAccess(w,!0),z,D_(ne));return Ie.flags|=64,Ie.transformFlags|=32,Ie}function R1(w,z,ne,Ie){return Pi.assert(!!(w.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),w.expression!==z||w.questionDotToken!==ne||w.name!==Ie?_i(IT(z,ne,Ie),w):w}function m$(w,z,ne){let Ie=xt(213);return Ie.expression=w,Ie.questionDotToken=z,Ie.argumentExpression=ne,Ie.transformFlags|=Ji(Ie.expression)|Ji(Ie.questionDotToken)|Ji(Ie.argumentExpression),Ie.jsDoc=void 0,Ie.flowNode=void 0,Ie}function pb(w,z){let ne=m$(s().parenthesizeLeftSideOfAccess(w,!1),void 0,Jp(z));return XXe(w)&&(ne.transformFlags|=384),ne}function dte(w,z,ne){return $on(w)?X8(w,z,w.questionDotToken,ne):w.expression!==z||w.argumentExpression!==ne?_i(pb(z,ne),w):w}function _d(w,z,ne){let Ie=m$(s().parenthesizeLeftSideOfAccess(w,!0),z,Jp(ne));return Ie.flags|=64,Ie.transformFlags|=32,Ie}function X8(w,z,ne,Ie){return Pi.assert(!!(w.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),w.expression!==z||w.questionDotToken!==ne||w.argumentExpression!==Ie?_i(_d(z,ne,Ie),w):w}function D9(w,z,ne,Ie){let bt=xt(214);return bt.expression=w,bt.questionDotToken=z,bt.typeArguments=ne,bt.arguments=Ie,bt.transformFlags|=Ji(bt.expression)|Ji(bt.questionDotToken)|ul(bt.typeArguments)|ul(bt.arguments),bt.typeArguments&&(bt.transformFlags|=1),oBt(bt.expression)&&(bt.transformFlags|=16384),bt}function GD(w,z,ne){let Ie=D9(s().parenthesizeLeftSideOfAccess(w,!1),void 0,fl(z),s().parenthesizeExpressionsOfCommaDelimitedList(pt(ne)));return Xsn(Ie.expression)&&(Ie.transformFlags|=8388608),Ie}function Ca(w,z,ne,Ie){return Xjt(w)?Y8(w,z,w.questionDotToken,ne,Ie):w.expression!==z||w.typeArguments!==ne||w.arguments!==Ie?_i(GD(z,ne,Ie),w):w}function Mk(w,z,ne,Ie){let bt=D9(s().parenthesizeLeftSideOfAccess(w,!0),z,fl(ne),s().parenthesizeExpressionsOfCommaDelimitedList(pt(Ie)));return bt.flags|=64,bt.transformFlags|=32,bt}function Y8(w,z,ne,Ie,bt){return Pi.assert(!!(w.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),w.expression!==z||w.questionDotToken!==ne||w.typeArguments!==Ie||w.arguments!==bt?_i(Mk(z,ne,Ie,bt),w):w}function L1(w,z,ne){let Ie=xt(215);return Ie.expression=s().parenthesizeExpressionOfNew(w),Ie.typeArguments=fl(z),Ie.arguments=ne?s().parenthesizeExpressionsOfCommaDelimitedList(ne):void 0,Ie.transformFlags|=Ji(Ie.expression)|ul(Ie.typeArguments)|ul(Ie.arguments)|32,Ie.typeArguments&&(Ie.transformFlags|=1),Ie}function EI(w,z,ne,Ie){return w.expression!==z||w.typeArguments!==ne||w.arguments!==Ie?_i(L1(z,ne,Ie),w):w}function jf(w,z,ne){let Ie=$e(216);return Ie.tag=s().parenthesizeLeftSideOfAccess(w,!1),Ie.typeArguments=fl(z),Ie.template=ne,Ie.transformFlags|=Ji(Ie.tag)|ul(Ie.typeArguments)|Ji(Ie.template)|1024,Ie.typeArguments&&(Ie.transformFlags|=1),Han(Ie.template)&&(Ie.transformFlags|=128),Ie}function _4(w,z,ne,Ie){return w.tag!==z||w.typeArguments!==ne||w.template!==Ie?_i(jf(z,ne,Ie),w):w}function h$(w,z){let ne=$e(217);return ne.expression=s().parenthesizeOperandOfPrefixUnary(z),ne.type=w,ne.transformFlags|=Ji(ne.expression)|Ji(ne.type)|1,ne}function Z2(w,z,ne){return w.type!==z||w.expression!==ne?_i(h$(z,ne),w):w}function kI(w){let z=$e(218);return z.expression=w,z.transformFlags=Ji(z.expression),z.jsDoc=void 0,z}function A9(w,z){return w.expression!==z?_i(kI(z),w):w}function w9(w,z,ne,Ie,bt,Pr,Ri){let Ra=xt(219);Ra.modifiers=fl(w),Ra.asteriskToken=z,Ra.name=D_(ne),Ra.typeParameters=fl(Ie),Ra.parameters=pt(bt),Ra.type=Pr,Ra.body=Ri;let _u=ID(Ra.modifiers)&1024,dd=!!Ra.asteriskToken,Kk=_u&ⅆreturn Ra.transformFlags=ul(Ra.modifiers)|Ji(Ra.asteriskToken)|wD(Ra.name)|ul(Ra.typeParameters)|ul(Ra.parameters)|Ji(Ra.type)|Ji(Ra.body)&-67108865|(Kk?128:_u?256:dd?2048:0)|(Ra.typeParameters||Ra.type?1:0)|4194304,Ra.typeArguments=void 0,Ra.jsDoc=void 0,Ra.locals=void 0,Ra.nextContainer=void 0,Ra.flowNode=void 0,Ra.endFlowNode=void 0,Ra.returnFlowNode=void 0,Ra}function eO(w,z,ne,Ie,bt,Pr,Ri,Ra){return w.name!==Ie||w.modifiers!==z||w.asteriskToken!==ne||w.typeParameters!==bt||w.parameters!==Pr||w.type!==Ri||w.body!==Ra?tr(w9(z,ne,Ie,bt,Pr,Ri,Ra),w):w}function tO(w,z,ne,Ie,bt,Pr){let Ri=xt(220);Ri.modifiers=fl(w),Ri.typeParameters=fl(z),Ri.parameters=pt(ne),Ri.type=Ie,Ri.equalsGreaterThanToken=bt??Wn(39),Ri.body=s().parenthesizeConciseBodyOfArrowFunction(Pr);let Ra=ID(Ri.modifiers)&1024;return Ri.transformFlags=ul(Ri.modifiers)|ul(Ri.typeParameters)|ul(Ri.parameters)|Ji(Ri.type)|Ji(Ri.equalsGreaterThanToken)|Ji(Ri.body)&-67108865|(Ri.typeParameters||Ri.type?1:0)|(Ra?16640:0)|1024,Ri.typeArguments=void 0,Ri.jsDoc=void 0,Ri.locals=void 0,Ri.nextContainer=void 0,Ri.flowNode=void 0,Ri.endFlowNode=void 0,Ri.returnFlowNode=void 0,Ri}function rO(w,z,ne,Ie,bt,Pr,Ri){return w.modifiers!==z||w.typeParameters!==ne||w.parameters!==Ie||w.type!==bt||w.equalsGreaterThanToken!==Pr||w.body!==Ri?tr(tO(z,ne,Ie,bt,Pr,Ri),w):w}function I9(w){let z=$e(221);return z.expression=s().parenthesizeOperandOfPrefixUnary(w),z.transformFlags|=Ji(z.expression),z}function $(w,z){return w.expression!==z?_i(I9(z),w):w}function P9(w){let z=$e(222);return z.expression=s().parenthesizeOperandOfPrefixUnary(w),z.transformFlags|=Ji(z.expression),z}function _b(w,z){return w.expression!==z?_i(P9(z),w):w}function g$(w){let z=$e(223);return z.expression=s().parenthesizeOperandOfPrefixUnary(w),z.transformFlags|=Ji(z.expression),z}function jk(w,z){return w.expression!==z?_i(g$(z),w):w}function kW(w){let z=$e(224);return z.expression=s().parenthesizeOperandOfPrefixUnary(w),z.transformFlags|=Ji(z.expression)|256|128|2097152,z}function HD(w,z){return w.expression!==z?_i(kW(z),w):w}function Bk(w,z){let ne=$e(225);return ne.operator=w,ne.operand=s().parenthesizeOperandOfPrefixUnary(z),ne.transformFlags|=Ji(ne.operand),(w===46||w===47)&&Kd(ne.operand)&&!iee(ne.operand)&&!yBt(ne.operand)&&(ne.transformFlags|=268435456),ne}function Iy(w,z){return w.operand!==z?_i(Bk(w.operator,z),w):w}function CI(w,z){let ne=$e(226);return ne.operator=z,ne.operand=s().parenthesizeOperandOfPostfixUnary(w),ne.transformFlags|=Ji(ne.operand),Kd(ne.operand)&&!iee(ne.operand)&&!yBt(ne.operand)&&(ne.transformFlags|=268435456),ne}function fte(w,z){return w.operand!==z?_i(CI(z,w.operator),w):w}function KD(w,z,ne){let Ie=xt(227),bt=WI(z),Pr=bt.kind;return Ie.left=s().parenthesizeLeftSideOfBinary(Pr,w),Ie.operatorToken=bt,Ie.right=s().parenthesizeRightSideOfBinary(Pr,Ie.left,ne),Ie.transformFlags|=Ji(Ie.left)|Ji(Ie.operatorToken)|Ji(Ie.right),Pr===61?Ie.transformFlags|=32:Pr===64?_Ut(Ie.left)?Ie.transformFlags|=5248|CW(Ie.left):Ecn(Ie.left)&&(Ie.transformFlags|=5120|CW(Ie.left)):Pr===43||Pr===68?Ie.transformFlags|=512:osn(Pr)&&(Ie.transformFlags|=16),Pr===103&&NV(Ie.left)&&(Ie.transformFlags|=536870912),Ie.jsDoc=void 0,Ie}function CW(w){return IUt(w)?65536:0}function mte(w,z,ne,Ie){return w.left!==z||w.operatorToken!==ne||w.right!==Ie?_i(KD(z,ne,Ie),w):w}function DW(w,z,ne,Ie,bt){let Pr=$e(228);return Pr.condition=s().parenthesizeConditionOfConditionalExpression(w),Pr.questionToken=z??Wn(58),Pr.whenTrue=s().parenthesizeBranchOfConditionalExpression(ne),Pr.colonToken=Ie??Wn(59),Pr.whenFalse=s().parenthesizeBranchOfConditionalExpression(bt),Pr.transformFlags|=Ji(Pr.condition)|Ji(Pr.questionToken)|Ji(Pr.whenTrue)|Ji(Pr.colonToken)|Ji(Pr.whenFalse),Pr.flowNodeWhenFalse=void 0,Pr.flowNodeWhenTrue=void 0,Pr}function AW(w,z,ne,Ie,bt,Pr){return w.condition!==z||w.questionToken!==ne||w.whenTrue!==Ie||w.colonToken!==bt||w.whenFalse!==Pr?_i(DW(z,ne,Ie,bt,Pr),w):w}function wW(w,z){let ne=$e(229);return ne.head=w,ne.templateSpans=pt(z),ne.transformFlags|=Ji(ne.head)|ul(ne.templateSpans)|1024,ne}function PT(w,z,ne){return w.head!==z||w.templateSpans!==ne?_i(wW(z,ne),w):w}function DI(w,z,ne,Ie=0){Pi.assert(!(Ie&-7177),"Unsupported template flags.");let bt;if(ne!==void 0&&ne!==z&&(bt=Usn(w,ne),typeof bt=="object"))return Pi.fail("Invalid raw text");if(z===void 0){if(bt===void 0)return Pi.fail("Arguments 'text' and 'rawText' may not both be undefined.");z=bt}else bt!==void 0&&Pi.assert(z===bt,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return z}function IW(w){let z=1024;return w&&(z|=128),z}function hte(w,z,ne,Ie){let bt=Bo(w);return bt.text=z,bt.rawText=ne,bt.templateFlags=Ie&7176,bt.transformFlags=IW(bt.templateFlags),bt}function bm(w,z,ne,Ie){let bt=xt(w);return bt.text=z,bt.rawText=ne,bt.templateFlags=Ie&7176,bt.transformFlags=IW(bt.templateFlags),bt}function lg(w,z,ne,Ie){return w===15?bm(w,z,ne,Ie):hte(w,z,ne,Ie)}function PW(w,z,ne){return w=DI(16,w,z,ne),lg(16,w,z,ne)}function N9(w,z,ne){return w=DI(16,w,z,ne),lg(17,w,z,ne)}function y$(w,z,ne){return w=DI(16,w,z,ne),lg(18,w,z,ne)}function gte(w,z,ne){return w=DI(16,w,z,ne),bm(15,w,z,ne)}function v$(w,z){Pi.assert(!w||!!z,"A `YieldExpression` with an asteriskToken must have an expression.");let ne=$e(230);return ne.expression=z&&s().parenthesizeExpressionForDisallowedComma(z),ne.asteriskToken=w,ne.transformFlags|=Ji(ne.expression)|Ji(ne.asteriskToken)|1024|128|1048576,ne}function yte(w,z,ne){return w.expression!==ne||w.asteriskToken!==z?_i(v$(z,ne),w):w}function NW(w){let z=$e(231);return z.expression=s().parenthesizeExpressionForDisallowedComma(w),z.transformFlags|=Ji(z.expression)|1024|32768,z}function vte(w,z){return w.expression!==z?_i(NW(z),w):w}function O9(w,z,ne,Ie,bt){let Pr=xt(232);return Pr.modifiers=fl(w),Pr.name=D_(z),Pr.typeParameters=fl(ne),Pr.heritageClauses=fl(Ie),Pr.members=pt(bt),Pr.transformFlags|=ul(Pr.modifiers)|wD(Pr.name)|ul(Pr.typeParameters)|ul(Pr.heritageClauses)|ul(Pr.members)|(Pr.typeParameters?1:0)|1024,Pr.jsDoc=void 0,Pr}function F9(w,z,ne,Ie,bt,Pr){return w.modifiers!==z||w.name!==ne||w.typeParameters!==Ie||w.heritageClauses!==bt||w.members!==Pr?_i(O9(z,ne,Ie,bt,Pr),w):w}function nO(){return $e(233)}function Ml(w,z){let ne=$e(234);return ne.expression=s().parenthesizeLeftSideOfAccess(w,!1),ne.typeArguments=z&&s().parenthesizeTypeArguments(z),ne.transformFlags|=Ji(ne.expression)|ul(ne.typeArguments)|1024,ne}function R9(w,z,ne){return w.expression!==z||w.typeArguments!==ne?_i(Ml(z,ne),w):w}function Py(w,z){let ne=$e(235);return ne.expression=w,ne.type=z,ne.transformFlags|=Ji(ne.expression)|Ji(ne.type)|1,ne}function db(w,z,ne){return w.expression!==z||w.type!==ne?_i(Py(z,ne),w):w}function S$(w){let z=$e(236);return z.expression=s().parenthesizeLeftSideOfAccess(w,!1),z.transformFlags|=Ji(z.expression)|1,z}function iO(w,z){return zon(w)?Z0(w,z):w.expression!==z?_i(S$(z),w):w}function oO(w,z){let ne=$e(239);return ne.expression=w,ne.type=z,ne.transformFlags|=Ji(ne.expression)|Ji(ne.type)|1,ne}function QD(w,z,ne){return w.expression!==z||w.type!==ne?_i(oO(z,ne),w):w}function L9(w){let z=$e(236);return z.flags|=64,z.expression=s().parenthesizeLeftSideOfAccess(w,!0),z.transformFlags|=Ji(z.expression)|1,z}function Z0(w,z){return Pi.assert(!!(w.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),w.expression!==z?_i(L9(z),w):w}function AI(w,z){let ne=$e(237);switch(ne.keywordToken=w,ne.name=z,ne.transformFlags|=Ji(ne.name),w){case 105:ne.transformFlags|=1024;break;case 102:ne.transformFlags|=32;break;default:return Pi.assertNever(w)}return ne.flowNode=void 0,ne}function $k(w,z){return w.name!==z?_i(AI(w.keywordToken,z),w):w}function jl(w,z){let ne=$e(240);return ne.expression=w,ne.literal=z,ne.transformFlags|=Ji(ne.expression)|Ji(ne.literal)|1024,ne}function Jm(w,z,ne){return w.expression!==z||w.literal!==ne?_i(jl(z,ne),w):w}function b$(){let w=$e(241);return w.transformFlags|=1024,w}function fb(w,z){let ne=$e(242);return ne.statements=pt(w),ne.multiLine=z,ne.transformFlags|=ul(ne.statements),ne.jsDoc=void 0,ne.locals=void 0,ne.nextContainer=void 0,ne}function M9(w,z){return w.statements!==z?_i(fb(z,w.multiLine),w):w}function j9(w,z){let ne=$e(244);return ne.modifiers=fl(w),ne.declarationList=Z5(z)?pO(z):z,ne.transformFlags|=ul(ne.modifiers)|Ji(ne.declarationList),ID(ne.modifiers)&128&&(ne.transformFlags=1),ne.jsDoc=void 0,ne.flowNode=void 0,ne}function x$(w,z,ne){return w.modifiers!==z||w.declarationList!==ne?_i(j9(z,ne),w):w}function T$(){let w=$e(243);return w.jsDoc=void 0,w}function wI(w){let z=$e(245);return z.expression=s().parenthesizeExpressionOfExpressionStatement(w),z.transformFlags|=Ji(z.expression),z.jsDoc=void 0,z.flowNode=void 0,z}function aO(w,z){return w.expression!==z?_i(wI(z),w):w}function B9(w,z,ne){let Ie=$e(246);return Ie.expression=w,Ie.thenStatement=Cx(z),Ie.elseStatement=Cx(ne),Ie.transformFlags|=Ji(Ie.expression)|Ji(Ie.thenStatement)|Ji(Ie.elseStatement),Ie.jsDoc=void 0,Ie.flowNode=void 0,Ie}function hi(w,z,ne,Ie){return w.expression!==z||w.thenStatement!==ne||w.elseStatement!==Ie?_i(B9(z,ne,Ie),w):w}function II(w,z){let ne=$e(247);return ne.statement=Cx(w),ne.expression=z,ne.transformFlags|=Ji(ne.statement)|Ji(ne.expression),ne.jsDoc=void 0,ne.flowNode=void 0,ne}function $9(w,z,ne){return w.statement!==z||w.expression!==ne?_i(II(z,ne),w):w}function U9(w,z){let ne=$e(248);return ne.expression=w,ne.statement=Cx(z),ne.transformFlags|=Ji(ne.expression)|Ji(ne.statement),ne.jsDoc=void 0,ne.flowNode=void 0,ne}function z9(w,z,ne){return w.expression!==z||w.statement!==ne?_i(U9(z,ne),w):w}function sO(w,z,ne,Ie){let bt=$e(249);return bt.initializer=w,bt.condition=z,bt.incrementor=ne,bt.statement=Cx(Ie),bt.transformFlags|=Ji(bt.initializer)|Ji(bt.condition)|Ji(bt.incrementor)|Ji(bt.statement),bt.jsDoc=void 0,bt.locals=void 0,bt.nextContainer=void 0,bt.flowNode=void 0,bt}function cO(w,z,ne,Ie,bt){return w.initializer!==z||w.condition!==ne||w.incrementor!==Ie||w.statement!==bt?_i(sO(z,ne,Ie,bt),w):w}function lO(w,z,ne){let Ie=$e(250);return Ie.initializer=w,Ie.expression=z,Ie.statement=Cx(ne),Ie.transformFlags|=Ji(Ie.initializer)|Ji(Ie.expression)|Ji(Ie.statement),Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.flowNode=void 0,Ie}function q9(w,z,ne,Ie){return w.initializer!==z||w.expression!==ne||w.statement!==Ie?_i(lO(z,ne,Ie),w):w}function J9(w,z,ne,Ie){let bt=$e(251);return bt.awaitModifier=w,bt.initializer=z,bt.expression=s().parenthesizeExpressionForDisallowedComma(ne),bt.statement=Cx(Ie),bt.transformFlags|=Ji(bt.awaitModifier)|Ji(bt.initializer)|Ji(bt.expression)|Ji(bt.statement)|1024,w&&(bt.transformFlags|=128),bt.jsDoc=void 0,bt.locals=void 0,bt.nextContainer=void 0,bt.flowNode=void 0,bt}function V9(w,z,ne,Ie,bt){return w.awaitModifier!==z||w.initializer!==ne||w.expression!==Ie||w.statement!==bt?_i(J9(z,ne,Ie,bt),w):w}function W9(w){let z=$e(252);return z.label=D_(w),z.transformFlags|=Ji(z.label)|4194304,z.jsDoc=void 0,z.flowNode=void 0,z}function E$(w,z){return w.label!==z?_i(W9(z),w):w}function PI(w){let z=$e(253);return z.label=D_(w),z.transformFlags|=Ji(z.label)|4194304,z.jsDoc=void 0,z.flowNode=void 0,z}function G9(w,z){return w.label!==z?_i(PI(z),w):w}function Uk(w){let z=$e(254);return z.expression=w,z.transformFlags|=Ji(z.expression)|128|4194304,z.jsDoc=void 0,z.flowNode=void 0,z}function H9(w,z){return w.expression!==z?_i(Uk(z),w):w}function uO(w,z){let ne=$e(255);return ne.expression=w,ne.statement=Cx(z),ne.transformFlags|=Ji(ne.expression)|Ji(ne.statement),ne.jsDoc=void 0,ne.flowNode=void 0,ne}function K9(w,z,ne){return w.expression!==z||w.statement!==ne?_i(uO(z,ne),w):w}function d4(w,z){let ne=$e(256);return ne.expression=s().parenthesizeExpressionForDisallowedComma(w),ne.caseBlock=z,ne.transformFlags|=Ji(ne.expression)|Ji(ne.caseBlock),ne.jsDoc=void 0,ne.flowNode=void 0,ne.possiblyExhaustive=!1,ne}function ZD(w,z,ne){return w.expression!==z||w.caseBlock!==ne?_i(d4(z,ne),w):w}function Q9(w,z){let ne=$e(257);return ne.label=D_(w),ne.statement=Cx(z),ne.transformFlags|=Ji(ne.label)|Ji(ne.statement),ne.jsDoc=void 0,ne.flowNode=void 0,ne}function Z9(w,z,ne){return w.label!==z||w.statement!==ne?_i(Q9(z,ne),w):w}function X9(w){let z=$e(258);return z.expression=w,z.transformFlags|=Ji(z.expression),z.jsDoc=void 0,z.flowNode=void 0,z}function k$(w,z){return w.expression!==z?_i(X9(z),w):w}function Y9(w,z,ne){let Ie=$e(259);return Ie.tryBlock=w,Ie.catchClause=z,Ie.finallyBlock=ne,Ie.transformFlags|=Ji(Ie.tryBlock)|Ji(Ie.catchClause)|Ji(Ie.finallyBlock),Ie.jsDoc=void 0,Ie.flowNode=void 0,Ie}function C$(w,z,ne,Ie){return w.tryBlock!==z||w.catchClause!==ne||w.finallyBlock!==Ie?_i(Y9(z,ne,Ie),w):w}function eR(){let w=$e(260);return w.jsDoc=void 0,w.flowNode=void 0,w}function f4(w,z,ne,Ie){let bt=xt(261);return bt.name=D_(w),bt.exclamationToken=z,bt.type=ne,bt.initializer=Hu(Ie),bt.transformFlags|=wD(bt.name)|Ji(bt.initializer)|(bt.exclamationToken??bt.type?1:0),bt.jsDoc=void 0,bt}function tR(w,z,ne,Ie,bt){return w.name!==z||w.type!==Ie||w.exclamationToken!==ne||w.initializer!==bt?_i(f4(z,ne,Ie,bt),w):w}function pO(w,z=0){let ne=$e(262);return ne.flags|=z&7,ne.declarations=pt(w),ne.transformFlags|=ul(ne.declarations)|4194304,z&7&&(ne.transformFlags|=263168),z&4&&(ne.transformFlags|=4),ne}function D$(w,z){return w.declarations!==z?_i(pO(z,w.flags),w):w}function _O(w,z,ne,Ie,bt,Pr,Ri){let Ra=xt(263);if(Ra.modifiers=fl(w),Ra.asteriskToken=z,Ra.name=D_(ne),Ra.typeParameters=fl(Ie),Ra.parameters=pt(bt),Ra.type=Pr,Ra.body=Ri,!Ra.body||ID(Ra.modifiers)&128)Ra.transformFlags=1;else{let _u=ID(Ra.modifiers)&1024,dd=!!Ra.asteriskToken,Kk=_u&ⅆRa.transformFlags=ul(Ra.modifiers)|Ji(Ra.asteriskToken)|wD(Ra.name)|ul(Ra.typeParameters)|ul(Ra.parameters)|Ji(Ra.type)|Ji(Ra.body)&-67108865|(Kk?128:_u?256:dd?2048:0)|(Ra.typeParameters||Ra.type?1:0)|4194304}return Ra.typeArguments=void 0,Ra.jsDoc=void 0,Ra.locals=void 0,Ra.nextContainer=void 0,Ra.endFlowNode=void 0,Ra.returnFlowNode=void 0,Ra}function dO(w,z,ne,Ie,bt,Pr,Ri,Ra){return w.modifiers!==z||w.asteriskToken!==ne||w.name!==Ie||w.typeParameters!==bt||w.parameters!==Pr||w.type!==Ri||w.body!==Ra?A$(_O(z,ne,Ie,bt,Pr,Ri,Ra),w):w}function A$(w,z){return w!==z&&w.modifiers===z.modifiers&&(w.modifiers=z.modifiers),tr(w,z)}function fO(w,z,ne,Ie,bt){let Pr=xt(264);return Pr.modifiers=fl(w),Pr.name=D_(z),Pr.typeParameters=fl(ne),Pr.heritageClauses=fl(Ie),Pr.members=pt(bt),ID(Pr.modifiers)&128?Pr.transformFlags=1:(Pr.transformFlags|=ul(Pr.modifiers)|wD(Pr.name)|ul(Pr.typeParameters)|ul(Pr.heritageClauses)|ul(Pr.members)|(Pr.typeParameters?1:0)|1024,Pr.transformFlags&8192&&(Pr.transformFlags|=1)),Pr.jsDoc=void 0,Pr}function NI(w,z,ne,Ie,bt,Pr){return w.modifiers!==z||w.name!==ne||w.typeParameters!==Ie||w.heritageClauses!==bt||w.members!==Pr?_i(fO(z,ne,Ie,bt,Pr),w):w}function mO(w,z,ne,Ie,bt){let Pr=xt(265);return Pr.modifiers=fl(w),Pr.name=D_(z),Pr.typeParameters=fl(ne),Pr.heritageClauses=fl(Ie),Pr.members=pt(bt),Pr.transformFlags=1,Pr.jsDoc=void 0,Pr}function rR(w,z,ne,Ie,bt,Pr){return w.modifiers!==z||w.name!==ne||w.typeParameters!==Ie||w.heritageClauses!==bt||w.members!==Pr?_i(mO(z,ne,Ie,bt,Pr),w):w}function nf(w,z,ne,Ie){let bt=xt(266);return bt.modifiers=fl(w),bt.name=D_(z),bt.typeParameters=fl(ne),bt.type=Ie,bt.transformFlags=1,bt.jsDoc=void 0,bt.locals=void 0,bt.nextContainer=void 0,bt}function X2(w,z,ne,Ie,bt){return w.modifiers!==z||w.name!==ne||w.typeParameters!==Ie||w.type!==bt?_i(nf(z,ne,Ie,bt),w):w}function hO(w,z,ne){let Ie=xt(267);return Ie.modifiers=fl(w),Ie.name=D_(z),Ie.members=pt(ne),Ie.transformFlags|=ul(Ie.modifiers)|Ji(Ie.name)|ul(Ie.members)|1,Ie.transformFlags&=-67108865,Ie.jsDoc=void 0,Ie}function Y2(w,z,ne,Ie){return w.modifiers!==z||w.name!==ne||w.members!==Ie?_i(hO(z,ne,Ie),w):w}function nR(w,z,ne,Ie=0){let bt=xt(268);return bt.modifiers=fl(w),bt.flags|=Ie&2088,bt.name=z,bt.body=ne,ID(bt.modifiers)&128?bt.transformFlags=1:bt.transformFlags|=ul(bt.modifiers)|Ji(bt.name)|Ji(bt.body)|1,bt.transformFlags&=-67108865,bt.jsDoc=void 0,bt.locals=void 0,bt.nextContainer=void 0,bt}function Vm(w,z,ne,Ie){return w.modifiers!==z||w.name!==ne||w.body!==Ie?_i(nR(z,ne,Ie,w.flags),w):w}function eE(w){let z=$e(269);return z.statements=pt(w),z.transformFlags|=ul(z.statements),z.jsDoc=void 0,z}function Ny(w,z){return w.statements!==z?_i(eE(z),w):w}function iR(w){let z=$e(270);return z.clauses=pt(w),z.transformFlags|=ul(z.clauses),z.locals=void 0,z.nextContainer=void 0,z}function w$(w,z){return w.clauses!==z?_i(iR(z),w):w}function oR(w){let z=xt(271);return z.name=D_(w),z.transformFlags|=eee(z.name)|1,z.modifiers=void 0,z.jsDoc=void 0,z}function aR(w,z){return w.name!==z?gO(oR(z),w):w}function gO(w,z){return w!==z&&(w.modifiers=z.modifiers),_i(w,z)}function NT(w,z,ne,Ie){let bt=xt(272);return bt.modifiers=fl(w),bt.name=D_(ne),bt.isTypeOnly=z,bt.moduleReference=Ie,bt.transformFlags|=ul(bt.modifiers)|eee(bt.name)|Ji(bt.moduleReference),EUt(bt.moduleReference)||(bt.transformFlags|=1),bt.transformFlags&=-67108865,bt.jsDoc=void 0,bt}function zk(w,z,ne,Ie,bt){return w.modifiers!==z||w.isTypeOnly!==ne||w.name!==Ie||w.moduleReference!==bt?_i(NT(z,ne,Ie,bt),w):w}function sR(w,z,ne,Ie){let bt=$e(273);return bt.modifiers=fl(w),bt.importClause=z,bt.moduleSpecifier=ne,bt.attributes=bt.assertClause=Ie,bt.transformFlags|=Ji(bt.importClause)|Ji(bt.moduleSpecifier),bt.transformFlags&=-67108865,bt.jsDoc=void 0,bt}function cR(w,z,ne,Ie,bt){return w.modifiers!==z||w.importClause!==ne||w.moduleSpecifier!==Ie||w.attributes!==bt?_i(sR(z,ne,Ie,bt),w):w}function lR(w,z,ne){let Ie=xt(274);return typeof w=="boolean"&&(w=w?156:void 0),Ie.isTypeOnly=w===156,Ie.phaseModifier=w,Ie.name=z,Ie.namedBindings=ne,Ie.transformFlags|=Ji(Ie.name)|Ji(Ie.namedBindings),w===156&&(Ie.transformFlags|=1),Ie.transformFlags&=-67108865,Ie}function uR(w,z,ne,Ie){return typeof z=="boolean"&&(z=z?156:void 0),w.phaseModifier!==z||w.name!==ne||w.namedBindings!==Ie?_i(lR(z,ne,Ie),w):w}function tE(w,z){let ne=$e(301);return ne.elements=pt(w),ne.multiLine=z,ne.token=132,ne.transformFlags|=4,ne}function I$(w,z,ne){return w.elements!==z||w.multiLine!==ne?_i(tE(z,ne),w):w}function OI(w,z){let ne=$e(302);return ne.name=w,ne.value=z,ne.transformFlags|=4,ne}function pR(w,z,ne){return w.name!==z||w.value!==ne?_i(OI(z,ne),w):w}function m4(w,z){let ne=$e(303);return ne.assertClause=w,ne.multiLine=z,ne}function _R(w,z,ne){return w.assertClause!==z||w.multiLine!==ne?_i(m4(z,ne),w):w}function dR(w,z,ne){let Ie=$e(301);return Ie.token=ne??118,Ie.elements=pt(w),Ie.multiLine=z,Ie.transformFlags|=4,Ie}function yO(w,z,ne){return w.elements!==z||w.multiLine!==ne?_i(dR(z,ne,w.token),w):w}function fR(w,z){let ne=$e(302);return ne.name=w,ne.value=z,ne.transformFlags|=4,ne}function mR(w,z,ne){return w.name!==z||w.value!==ne?_i(fR(z,ne),w):w}function vO(w){let z=xt(275);return z.name=w,z.transformFlags|=Ji(z.name),z.transformFlags&=-67108865,z}function hR(w,z){return w.name!==z?_i(vO(z),w):w}function SO(w){let z=xt(281);return z.name=w,z.transformFlags|=Ji(z.name)|32,z.transformFlags&=-67108865,z}function P$(w,z){return w.name!==z?_i(SO(z),w):w}function C_(w){let z=$e(276);return z.elements=pt(w),z.transformFlags|=ul(z.elements),z.transformFlags&=-67108865,z}function gR(w,z){return w.elements!==z?_i(C_(z),w):w}function rE(w,z,ne){let Ie=xt(277);return Ie.isTypeOnly=w,Ie.propertyName=z,Ie.name=ne,Ie.transformFlags|=Ji(Ie.propertyName)|Ji(Ie.name),Ie.transformFlags&=-67108865,Ie}function N$(w,z,ne,Ie){return w.isTypeOnly!==z||w.propertyName!==ne||w.name!==Ie?_i(rE(z,ne,Ie),w):w}function h4(w,z,ne){let Ie=xt(278);return Ie.modifiers=fl(w),Ie.isExportEquals=z,Ie.expression=z?s().parenthesizeRightSideOfBinary(64,void 0,ne):s().parenthesizeExpressionOfExportDefault(ne),Ie.transformFlags|=ul(Ie.modifiers)|Ji(Ie.expression),Ie.transformFlags&=-67108865,Ie.jsDoc=void 0,Ie}function FI(w,z,ne){return w.modifiers!==z||w.expression!==ne?_i(h4(z,w.isExportEquals,ne),w):w}function g4(w,z,ne,Ie,bt){let Pr=xt(279);return Pr.modifiers=fl(w),Pr.isTypeOnly=z,Pr.exportClause=ne,Pr.moduleSpecifier=Ie,Pr.attributes=Pr.assertClause=bt,Pr.transformFlags|=ul(Pr.modifiers)|Ji(Pr.exportClause)|Ji(Pr.moduleSpecifier),Pr.transformFlags&=-67108865,Pr.jsDoc=void 0,Pr}function y4(w,z,ne,Ie,bt,Pr){return w.modifiers!==z||w.isTypeOnly!==ne||w.exportClause!==Ie||w.moduleSpecifier!==bt||w.attributes!==Pr?RI(g4(z,ne,Ie,bt,Pr),w):w}function RI(w,z){return w!==z&&w.modifiers===z.modifiers&&(w.modifiers=z.modifiers),_i(w,z)}function qk(w){let z=$e(280);return z.elements=pt(w),z.transformFlags|=ul(z.elements),z.transformFlags&=-67108865,z}function OW(w,z){return w.elements!==z?_i(qk(z),w):w}function v4(w,z,ne){let Ie=$e(282);return Ie.isTypeOnly=w,Ie.propertyName=D_(z),Ie.name=D_(ne),Ie.transformFlags|=Ji(Ie.propertyName)|Ji(Ie.name),Ie.transformFlags&=-67108865,Ie.jsDoc=void 0,Ie}function yR(w,z,ne,Ie){return w.isTypeOnly!==z||w.propertyName!==ne||w.name!==Ie?_i(v4(z,ne,Ie),w):w}function Wm(){let w=xt(283);return w.jsDoc=void 0,w}function OT(w){let z=$e(284);return z.expression=w,z.transformFlags|=Ji(z.expression),z.transformFlags&=-67108865,z}function O$(w,z){return w.expression!==z?_i(OT(z),w):w}function bO(w){return $e(w)}function xO(w,z,ne=!1){let Ie=LI(w,ne?z&&s().parenthesizeNonArrayTypeOfPostfixType(z):z);return Ie.postfix=ne,Ie}function LI(w,z){let ne=$e(w);return ne.type=z,ne}function Ste(w,z,ne){return z.type!==ne?_i(xO(w,ne,z.postfix),z):z}function FW(w,z,ne){return z.type!==ne?_i(LI(w,ne),z):z}function RW(w,z){let ne=xt(318);return ne.parameters=fl(w),ne.type=z,ne.transformFlags=ul(ne.parameters)|(ne.type?1:0),ne.jsDoc=void 0,ne.locals=void 0,ne.nextContainer=void 0,ne.typeArguments=void 0,ne}function bte(w,z,ne){return w.parameters!==z||w.type!==ne?_i(RW(z,ne),w):w}function LW(w,z=!1){let ne=xt(323);return ne.jsDocPropertyTags=fl(w),ne.isArrayType=z,ne}function MW(w,z,ne){return w.jsDocPropertyTags!==z||w.isArrayType!==ne?_i(LW(z,ne),w):w}function jW(w){let z=$e(310);return z.type=w,z}function S4(w,z){return w.type!==z?_i(jW(z),w):w}function b4(w,z,ne){let Ie=xt(324);return Ie.typeParameters=fl(w),Ie.parameters=pt(z),Ie.type=ne,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie}function BW(w,z,ne,Ie){return w.typeParameters!==z||w.parameters!==ne||w.type!==Ie?_i(b4(z,ne,Ie),w):w}function Oy(w){let z=sDe(w.kind);return w.tagName.escapedText===XY(z)?w.tagName:co(z)}function lS(w,z,ne){let Ie=$e(w);return Ie.tagName=z,Ie.comment=ne,Ie}function MI(w,z,ne){let Ie=xt(w);return Ie.tagName=z,Ie.comment=ne,Ie}function TO(w,z,ne,Ie){let bt=lS(346,w??co("template"),Ie);return bt.constraint=z,bt.typeParameters=pt(ne),bt}function $W(w,z=Oy(w),ne,Ie,bt){return w.tagName!==z||w.constraint!==ne||w.typeParameters!==Ie||w.comment!==bt?_i(TO(z,ne,Ie,bt),w):w}function vR(w,z,ne,Ie){let bt=MI(347,w??co("typedef"),Ie);return bt.typeExpression=z,bt.fullName=ne,bt.name=vBt(ne),bt.locals=void 0,bt.nextContainer=void 0,bt}function UW(w,z=Oy(w),ne,Ie,bt){return w.tagName!==z||w.typeExpression!==ne||w.fullName!==Ie||w.comment!==bt?_i(vR(z,ne,Ie,bt),w):w}function SR(w,z,ne,Ie,bt,Pr){let Ri=MI(342,w??co("param"),Pr);return Ri.typeExpression=Ie,Ri.name=z,Ri.isNameFirst=!!bt,Ri.isBracketed=ne,Ri}function F$(w,z=Oy(w),ne,Ie,bt,Pr,Ri){return w.tagName!==z||w.name!==ne||w.isBracketed!==Ie||w.typeExpression!==bt||w.isNameFirst!==Pr||w.comment!==Ri?_i(SR(z,ne,Ie,bt,Pr,Ri),w):w}function bR(w,z,ne,Ie,bt,Pr){let Ri=MI(349,w??co("prop"),Pr);return Ri.typeExpression=Ie,Ri.name=z,Ri.isNameFirst=!!bt,Ri.isBracketed=ne,Ri}function f_(w,z=Oy(w),ne,Ie,bt,Pr,Ri){return w.tagName!==z||w.name!==ne||w.isBracketed!==Ie||w.typeExpression!==bt||w.isNameFirst!==Pr||w.comment!==Ri?_i(bR(z,ne,Ie,bt,Pr,Ri),w):w}function R$(w,z,ne,Ie){let bt=MI(339,w??co("callback"),Ie);return bt.typeExpression=z,bt.fullName=ne,bt.name=vBt(ne),bt.locals=void 0,bt.nextContainer=void 0,bt}function Gl(w,z=Oy(w),ne,Ie,bt){return w.tagName!==z||w.typeExpression!==ne||w.fullName!==Ie||w.comment!==bt?_i(R$(z,ne,Ie,bt),w):w}function x4(w,z,ne){let Ie=lS(340,w??co("overload"),ne);return Ie.typeExpression=z,Ie}function xR(w,z=Oy(w),ne,Ie){return w.tagName!==z||w.typeExpression!==ne||w.comment!==Ie?_i(x4(z,ne,Ie),w):w}function L$(w,z,ne){let Ie=lS(329,w??co("augments"),ne);return Ie.class=z,Ie}function XD(w,z=Oy(w),ne,Ie){return w.tagName!==z||w.class!==ne||w.comment!==Ie?_i(L$(z,ne,Ie),w):w}function TR(w,z,ne){let Ie=lS(330,w??co("implements"),ne);return Ie.class=z,Ie}function qd(w,z,ne){let Ie=lS(348,w??co("see"),ne);return Ie.name=z,Ie}function jI(w,z,ne,Ie){return w.tagName!==z||w.name!==ne||w.comment!==Ie?_i(qd(z,ne,Ie),w):w}function YD(w){let z=$e(311);return z.name=w,z}function ch(w,z){return w.name!==z?_i(YD(z),w):w}function EO(w,z){let ne=$e(312);return ne.left=w,ne.right=z,ne.transformFlags|=Ji(ne.left)|Ji(ne.right),ne}function eA(w,z,ne){return w.left!==z||w.right!==ne?_i(EO(z,ne),w):w}function Au(w,z){let ne=$e(325);return ne.name=w,ne.text=z,ne}function _p(w,z,ne){return w.name!==z?_i(Au(z,ne),w):w}function uS(w,z){let ne=$e(326);return ne.name=w,ne.text=z,ne}function zW(w,z,ne){return w.name!==z?_i(uS(z,ne),w):w}function qW(w,z){let ne=$e(327);return ne.name=w,ne.text=z,ne}function kO(w,z,ne){return w.name!==z?_i(qW(z,ne),w):w}function Fy(w,z=Oy(w),ne,Ie){return w.tagName!==z||w.class!==ne||w.comment!==Ie?_i(TR(z,ne,Ie),w):w}function mo(w,z,ne){return lS(w,z??co(sDe(w)),ne)}function t_(w,z,ne=Oy(z),Ie){return z.tagName!==ne||z.comment!==Ie?_i(mo(w,ne,Ie),z):z}function M$(w,z,ne,Ie){let bt=lS(w,z??co(sDe(w)),Ie);return bt.typeExpression=ne,bt}function xte(w,z,ne=Oy(z),Ie,bt){return z.tagName!==ne||z.typeExpression!==Ie||z.comment!==bt?_i(M$(w,ne,Ie,bt),z):z}function nE(w,z){return lS(328,w,z)}function Tte(w,z,ne){return w.tagName!==z||w.comment!==ne?_i(nE(z,ne),w):w}function Cd(w,z,ne){let Ie=MI(341,w??co(sDe(341)),ne);return Ie.typeExpression=z,Ie.locals=void 0,Ie.nextContainer=void 0,Ie}function pS(w,z=Oy(w),ne,Ie){return w.tagName!==z||w.typeExpression!==ne||w.comment!==Ie?_i(Cd(z,ne,Ie),w):w}function Z_(w,z,ne,Ie,bt){let Pr=lS(352,w??co("import"),bt);return Pr.importClause=z,Pr.moduleSpecifier=ne,Pr.attributes=Ie,Pr.comment=bt,Pr}function iE(w,z,ne,Ie,bt,Pr){return w.tagName!==z||w.comment!==Pr||w.importClause!==ne||w.moduleSpecifier!==Ie||w.attributes!==bt?_i(Z_(z,ne,Ie,bt,Pr),w):w}function Xi(w){let z=$e(322);return z.text=w,z}function mb(w,z){return w.text!==z?_i(Xi(z),w):w}function Jk(w,z){let ne=$e(321);return ne.comment=w,ne.tags=fl(z),ne}function za(w,z,ne){return w.comment!==z||w.tags!==ne?_i(Jk(z,ne),w):w}function Qs(w,z,ne){let Ie=$e(285);return Ie.openingElement=w,Ie.children=pt(z),Ie.closingElement=ne,Ie.transformFlags|=Ji(Ie.openingElement)|ul(Ie.children)|Ji(Ie.closingElement)|2,Ie}function JW(w,z,ne,Ie){return w.openingElement!==z||w.children!==ne||w.closingElement!==Ie?_i(Qs(z,ne,Ie),w):w}function VW(w,z,ne){let Ie=$e(286);return Ie.tagName=w,Ie.typeArguments=fl(z),Ie.attributes=ne,Ie.transformFlags|=Ji(Ie.tagName)|ul(Ie.typeArguments)|Ji(Ie.attributes)|2,Ie.typeArguments&&(Ie.transformFlags|=1),Ie}function ER(w,z,ne,Ie){return w.tagName!==z||w.typeArguments!==ne||w.attributes!==Ie?_i(VW(z,ne,Ie),w):w}function wl(w,z,ne){let Ie=$e(287);return Ie.tagName=w,Ie.typeArguments=fl(z),Ie.attributes=ne,Ie.transformFlags|=Ji(Ie.tagName)|ul(Ie.typeArguments)|Ji(Ie.attributes)|2,z&&(Ie.transformFlags|=1),Ie}function dv(w,z,ne,Ie){return w.tagName!==z||w.typeArguments!==ne||w.attributes!==Ie?_i(wl(z,ne,Ie),w):w}function r_(w){let z=$e(288);return z.tagName=w,z.transformFlags|=Ji(z.tagName)|2,z}function Tx(w,z){return w.tagName!==z?_i(r_(z),w):w}function Og(w,z,ne){let Ie=$e(289);return Ie.openingFragment=w,Ie.children=pt(z),Ie.closingFragment=ne,Ie.transformFlags|=Ji(Ie.openingFragment)|ul(Ie.children)|Ji(Ie.closingFragment)|2,Ie}function T4(w,z,ne,Ie){return w.openingFragment!==z||w.children!==ne||w.closingFragment!==Ie?_i(Og(z,ne,Ie),w):w}function tA(w,z){let ne=$e(12);return ne.text=w,ne.containsOnlyTriviaWhiteSpaces=!!z,ne.transformFlags|=2,ne}function j$(w,z,ne){return w.text!==z||w.containsOnlyTriviaWhiteSpaces!==ne?_i(tA(z,ne),w):w}function B$(){let w=$e(290);return w.transformFlags|=2,w}function $$(){let w=$e(291);return w.transformFlags|=2,w}function M1(w,z){let ne=xt(292);return ne.name=w,ne.initializer=z,ne.transformFlags|=Ji(ne.name)|Ji(ne.initializer)|2,ne}function ug(w,z,ne){return w.name!==z||w.initializer!==ne?_i(M1(z,ne),w):w}function rA(w){let z=xt(293);return z.properties=pt(w),z.transformFlags|=ul(z.properties)|2,z}function WW(w,z){return w.properties!==z?_i(rA(z),w):w}function lh(w){let z=$e(294);return z.expression=w,z.transformFlags|=Ji(z.expression)|2,z}function BI(w,z){return w.expression!==z?_i(lh(z),w):w}function Vk(w,z){let ne=$e(295);return ne.dotDotDotToken=w,ne.expression=z,ne.transformFlags|=Ji(ne.dotDotDotToken)|Ji(ne.expression)|2,ne}function FT(w,z){return w.expression!==z?_i(Vk(w.dotDotDotToken,z),w):w}function Ex(w,z){let ne=$e(296);return ne.namespace=w,ne.name=z,ne.transformFlags|=Ji(ne.namespace)|Ji(ne.name)|2,ne}function CO(w,z,ne){return w.namespace!==z||w.name!==ne?_i(Ex(z,ne),w):w}function I(w,z){let ne=$e(297);return ne.expression=s().parenthesizeExpressionForDisallowedComma(w),ne.statements=pt(z),ne.transformFlags|=Ji(ne.expression)|ul(ne.statements),ne.jsDoc=void 0,ne}function x(w,z,ne){return w.expression!==z||w.statements!==ne?_i(I(z,ne),w):w}function Bf(w){let z=$e(298);return z.statements=pt(w),z.transformFlags=ul(z.statements),z}function $I(w,z){return w.statements!==z?_i(Bf(z),w):w}function UI(w,z){let ne=$e(299);switch(ne.token=w,ne.types=pt(z),ne.transformFlags|=ul(ne.types),w){case 96:ne.transformFlags|=1024;break;case 119:ne.transformFlags|=1;break;default:return Pi.assertNever(w)}return ne}function Ete(w,z){return w.types!==z?_i(UI(w.token,z),w):w}function U$(w,z){let ne=$e(300);return ne.variableDeclaration=X0(w),ne.block=z,ne.transformFlags|=Ji(ne.variableDeclaration)|Ji(ne.block)|(w?0:64),ne.locals=void 0,ne.nextContainer=void 0,ne}function z$(w,z,ne){return w.variableDeclaration!==z||w.block!==ne?_i(U$(z,ne),w):w}function kR(w,z){let ne=xt(304);return ne.name=D_(w),ne.initializer=s().parenthesizeExpressionForDisallowedComma(z),ne.transformFlags|=wD(ne.name)|Ji(ne.initializer),ne.modifiers=void 0,ne.questionToken=void 0,ne.exclamationToken=void 0,ne.jsDoc=void 0,ne}function q$(w,z,ne){return w.name!==z||w.initializer!==ne?E4(kR(z,ne),w):w}function E4(w,z){return w!==z&&(w.modifiers=z.modifiers,w.questionToken=z.questionToken,w.exclamationToken=z.exclamationToken),_i(w,z)}function GW(w,z){let ne=xt(305);return ne.name=D_(w),ne.objectAssignmentInitializer=z&&s().parenthesizeExpressionForDisallowedComma(z),ne.transformFlags|=eee(ne.name)|Ji(ne.objectAssignmentInitializer)|1024,ne.equalsToken=void 0,ne.modifiers=void 0,ne.questionToken=void 0,ne.exclamationToken=void 0,ne.jsDoc=void 0,ne}function kte(w,z,ne){return w.name!==z||w.objectAssignmentInitializer!==ne?Cte(GW(z,ne),w):w}function Cte(w,z){return w!==z&&(w.modifiers=z.modifiers,w.questionToken=z.questionToken,w.exclamationToken=z.exclamationToken,w.equalsToken=z.equalsToken),_i(w,z)}function HW(w){let z=xt(306);return z.expression=s().parenthesizeExpressionForDisallowedComma(w),z.transformFlags|=Ji(z.expression)|128|65536,z.jsDoc=void 0,z}function KW(w,z){return w.expression!==z?_i(HW(z),w):w}function k4(w,z){let ne=xt(307);return ne.name=D_(w),ne.initializer=z&&s().parenthesizeExpressionForDisallowedComma(z),ne.transformFlags|=Ji(ne.name)|Ji(ne.initializer)|1,ne.jsDoc=void 0,ne}function fv(w,z,ne){return w.name!==z||w.initializer!==ne?_i(k4(z,ne),w):w}function QW(w,z,ne){let Ie=r.createBaseSourceFileNode(308);return Ie.statements=pt(w),Ie.endOfFileToken=z,Ie.flags|=ne,Ie.text="",Ie.fileName="",Ie.path="",Ie.resolvedPath="",Ie.originalFileName="",Ie.languageVersion=1,Ie.languageVariant=0,Ie.scriptKind=0,Ie.isDeclarationFile=!1,Ie.hasNoDefaultLib=!1,Ie.transformFlags|=ul(Ie.statements)|Ji(Ie.endOfFileToken),Ie.locals=void 0,Ie.nextContainer=void 0,Ie.endFlowNode=void 0,Ie.nodeCount=0,Ie.identifierCount=0,Ie.symbolCount=0,Ie.parseDiagnostics=void 0,Ie.bindDiagnostics=void 0,Ie.bindSuggestionDiagnostics=void 0,Ie.lineMap=void 0,Ie.externalModuleIndicator=void 0,Ie.setExternalModuleIndicator=void 0,Ie.pragmas=void 0,Ie.checkJsDirective=void 0,Ie.referencedFiles=void 0,Ie.typeReferenceDirectives=void 0,Ie.libReferenceDirectives=void 0,Ie.amdDependencies=void 0,Ie.commentDirectives=void 0,Ie.identifiers=void 0,Ie.packageJsonLocations=void 0,Ie.packageJsonScope=void 0,Ie.imports=void 0,Ie.moduleAugmentations=void 0,Ie.ambientModuleNames=void 0,Ie.classifiableNames=void 0,Ie.impliedNodeFormat=void 0,Ie}function J$(w){let z=Object.create(w.redirectTarget);return Object.defineProperties(z,{id:{get(){return this.redirectInfo.redirectTarget.id},set(ne){this.redirectInfo.redirectTarget.id=ne}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(ne){this.redirectInfo.redirectTarget.symbol=ne}}}),z.redirectInfo=w,z}function Dte(w){let z=J$(w.redirectInfo);return z.flags|=w.flags&-17,z.fileName=w.fileName,z.path=w.path,z.resolvedPath=w.resolvedPath,z.originalFileName=w.originalFileName,z.packageJsonLocations=w.packageJsonLocations,z.packageJsonScope=w.packageJsonScope,z.emitNode=void 0,z}function Zs(w){let z=r.createBaseSourceFileNode(308);z.flags|=w.flags&-17;for(let ne in w)if(!(T8(z,ne)||!T8(w,ne))){if(ne==="emitNode"){z.emitNode=void 0;continue}z[ne]=w[ne]}return z}function kx(w){let z=w.redirectInfo?Dte(w):Zs(w);return i(z,w),z}function V$(w,z,ne,Ie,bt,Pr,Ri){let Ra=kx(w);return Ra.statements=pt(z),Ra.isDeclarationFile=ne,Ra.referencedFiles=Ie,Ra.typeReferenceDirectives=bt,Ra.hasNoDefaultLib=Pr,Ra.libReferenceDirectives=Ri,Ra.transformFlags=ul(Ra.statements)|Ji(Ra.endOfFileToken),Ra}function ZW(w,z,ne=w.isDeclarationFile,Ie=w.referencedFiles,bt=w.typeReferenceDirectives,Pr=w.hasNoDefaultLib,Ri=w.libReferenceDirectives){return w.statements!==z||w.isDeclarationFile!==ne||w.referencedFiles!==Ie||w.typeReferenceDirectives!==bt||w.hasNoDefaultLib!==Pr||w.libReferenceDirectives!==Ri?_i(V$(w,z,ne,Ie,bt,Pr,Ri),w):w}function DO(w){let z=$e(309);return z.sourceFiles=w,z.syntheticFileReferences=void 0,z.syntheticTypeReferences=void 0,z.syntheticLibReferences=void 0,z.hasNoDefaultLib=void 0,z}function oE(w,z){return w.sourceFiles!==z?_i(DO(z),w):w}function C4(w,z=!1,ne){let Ie=$e(238);return Ie.type=w,Ie.isSpread=z,Ie.tupleNameSource=ne,Ie}function AO(w){let z=$e(353);return z._children=w,z}function Ry(w){let z=$e(354);return z.original=w,z2(z,w),z}function aE(w,z){let ne=$e(356);return ne.expression=w,ne.original=z,ne.transformFlags|=Ji(ne.expression)|1,z2(ne,z),ne}function nA(w,z){return w.expression!==z?_i(aE(z,w.original),w):w}function zI(){return $e(355)}function qs(w){if(YY(w)&&!vDe(w)&&!w.original&&!w.emitNode&&!w.id){if(Ncn(w))return w.elements;if(_ee(w)&&Qsn(w.operatorToken))return[w.left,w.right]}return w}function p0(w){let z=$e(357);return z.elements=pt(lin(w,qs)),z.transformFlags|=ul(z.elements),z}function _0(w,z){return w.elements!==z?_i(p0(z),w):w}function Dd(w,z){let ne=$e(358);return ne.expression=w,ne.thisArg=z,ne.transformFlags|=Ji(ne.expression)|Ji(ne.thisArg),ne}function Wk(w,z,ne){return w.expression!==z||w.thisArg!==ne?_i(Dd(z,ne),w):w}function CR(w){let z=Lo(w.escapedText);return z.flags|=w.flags&-17,z.transformFlags=w.transformFlags,i(z,w),setIdentifierAutoGenerate(z,{...w.emitNode.autoGenerate}),z}function W$(w){let z=Lo(w.escapedText);z.flags|=w.flags&-17,z.jsDoc=w.jsDoc,z.flowNode=w.flowNode,z.symbol=w.symbol,z.transformFlags=w.transformFlags,i(z,w);let ne=getIdentifierTypeArguments(w);return ne&&setIdentifierTypeArguments(z,ne),z}function XW(w){let z=Rc(w.escapedText);return z.flags|=w.flags&-17,z.transformFlags=w.transformFlags,i(z,w),setIdentifierAutoGenerate(z,{...w.emitNode.autoGenerate}),z}function DR(w){let z=Rc(w.escapedText);return z.flags|=w.flags&-17,z.transformFlags=w.transformFlags,i(z,w),z}function D4(w){if(w===void 0)return w;if(Ucn(w))return kx(w);if(iee(w))return CR(w);if(Kd(w))return W$(w);if(M$t(w))return XW(w);if(NV(w))return DR(w);let z=qYe(w.kind)?r.createBaseNode(w.kind):r.createBaseTokenNode(w.kind);z.flags|=w.flags&-17,z.transformFlags=w.transformFlags,i(z,w);for(let ne in w)T8(z,ne)||!T8(w,ne)||(z[ne]=w[ne]);return z}function _c(w,z,ne){return GD(w9(void 0,void 0,void 0,void 0,z?[z]:[],void 0,fb(w,!0)),void 0,ne?[ne]:[])}function AR(w,z,ne){return GD(tO(void 0,void 0,z?[z]:[],void 0,void 0,fb(w,!0)),void 0,ne?[ne]:[])}function RT(){return g$(ht("0"))}function qI(w){return h4(void 0,!1,w)}function wR(w){return g4(void 0,!1,qk([v4(!1,void 0,w)]))}function YW(w,z){return z==="null"?Je.createStrictEquality(w,Us()):z==="undefined"?Je.createStrictEquality(w,RT()):Je.createStrictEquality(P9(w),hr(z))}function IR(w,z){return z==="null"?Je.createStrictInequality(w,Us()):z==="undefined"?Je.createStrictInequality(w,RT()):Je.createStrictInequality(P9(w),hr(z))}function sE(w,z,ne){return Xjt(w)?Mk(IT(w,void 0,z),void 0,void 0,ne):GD(wT(w,z),void 0,ne)}function A4(w,z,ne){return sE(w,"bind",[z,...ne])}function w4(w,z,ne){return sE(w,"call",[z,...ne])}function G$(w,z,ne){return sE(w,"apply",[z,ne])}function JI(w,z,ne){return sE(co(w),z,ne)}function eG(w,z){return sE(w,"slice",z===void 0?[]:[Jp(z)])}function my(w,z){return sE(w,"concat",z)}function hb(w,z,ne){return JI("Object","defineProperty",[w,Jp(z),ne])}function VI(w,z){return JI("Object","getOwnPropertyDescriptor",[w,Jp(z)])}function pg(w,z,ne){return JI("Reflect","get",ne?[w,z,ne]:[w,z])}function j1(w,z,ne,Ie){return JI("Reflect","set",Ie?[w,z,ne,Ie]:[w,z,ne])}function Jd(w,z,ne){return ne?(w.push(kR(z,ne)),!0):!1}function B1(w,z){let ne=[];Jd(ne,"enumerable",Jp(w.enumerable)),Jd(ne,"configurable",Jp(w.configurable));let Ie=Jd(ne,"writable",Jp(w.writable));Ie=Jd(ne,"value",w.value)||Ie;let bt=Jd(ne,"get",w.get);return bt=Jd(ne,"set",w.set)||bt,Pi.assert(!(Ie&&bt),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Z8(ne,!z)}function iA(w,z){switch(w.kind){case 218:return A9(w,z);case 217:return Z2(w,w.type,z);case 235:return db(w,z,w.type);case 239:return QD(w,z,w.type);case 236:return iO(w,z);case 234:return R9(w,z,w.typeArguments);case 356:return nA(w,z)}}function Ly(w){return tet(w)&&YY(w)&&YY(getSourceMapRange(w))&&YY(getCommentRange(w))&&!sx(getSyntheticLeadingComments(w))&&!sx(getSyntheticTrailingComments(w))}function tG(w,z,ne=63){return w&&wUt(w,ne)&&!Ly(w)?iA(w,tG(w.expression,z)):z}function rG(w,z,ne){if(!z)return w;let Ie=Z9(z,z.label,Ocn(z.statement)?rG(w,z.statement):w);return ne&&ne(z),Ie}function Gk(w,z){let ne=KYe(w);switch(ne.kind){case 80:return z;case 110:case 9:case 10:case 11:return!1;case 210:return ne.elements.length!==0;case 211:return ne.properties.length>0;default:return!0}}function H$(w,z,ne,Ie=!1){let bt=iet(w,63),Pr,Ri;return oBt(bt)?(Pr=hs(),Ri=bt):XXe(bt)?(Pr=hs(),Ri=ne!==void 0&&ne<2?z2(co("_super"),bt):bt):lee(bt)&8192?(Pr=RT(),Ri=s().parenthesizeLeftSideOfAccess(bt,!1)):X5(bt)?Gk(bt.expression,Ie)?(Pr=Cs(z),Ri=wT(z2(Je.createAssignment(Pr,bt.expression),bt.expression),bt.name),z2(Ri,bt)):(Pr=bt.expression,Ri=bt):g_e(bt)?Gk(bt.expression,Ie)?(Pr=Cs(z),Ri=pb(z2(Je.createAssignment(Pr,bt.expression),bt.expression),bt.argumentExpression),z2(Ri,bt)):(Pr=bt.expression,Ri=bt):(Pr=RT(),Ri=s().parenthesizeLeftSideOfAccess(w,!1)),{target:Ri,thisArg:Pr}}function K$(w,z){return wT(kI(Z8([Yr(void 0,"value",[rf(void 0,void 0,w,void 0,void 0,void 0)],fb([wI(z)]))])),"value")}function ge(w){return w.length>10?p0(w):vin(w,Je.createComma)}function Ke(w,z,ne,Ie=0,bt){let Pr=bt?w&&UYe(w):N$t(w);if(Pr&&Kd(Pr)&&!iee(Pr)){let Ri=XYe(z2(D4(Pr),Pr),Pr.parent);return Ie|=lee(Pr),ne||(Ie|=96),z||(Ie|=3072),Ie&&setEmitFlags(Ri,Ie),Ri}return Zo(w)}function vt(w,z,ne){return Ke(w,z,ne,98304)}function nr(w,z,ne,Ie){return Ke(w,z,ne,32768,Ie)}function Rr(w,z,ne){return Ke(w,z,ne,16384)}function kn(w,z,ne){return Ke(w,z,ne)}function Xn(w,z,ne,Ie){let bt=wT(w,YY(z)?z:D4(z));z2(bt,z);let Pr=0;return Ie||(Pr|=96),ne||(Pr|=3072),Pr&&setEmitFlags(bt,Pr),bt}function Da(w,z,ne,Ie){return w&&h_e(z,32)?Xn(w,Ke(z),ne,Ie):Rr(z,ne,Ie)}function jo(w,z,ne,Ie){let bt=su(w,z,0,ne);return Hl(w,z,bt,Ie)}function Ao(w){return uee(w.expression)&&w.expression.text==="use strict"}function Ha(){return lln(wI(hr("use strict")))}function su(w,z,ne=0,Ie){Pi.assert(z.length===0,"Prologue directives should be at the first statement in the target statements array");let bt=!1,Pr=w.length;for(;neRa&&dd.splice(bt,0,...z.slice(Ra,_u)),Ra>Ri&&dd.splice(Ie,0,...z.slice(Ri,Ra)),Ri>Pr&&dd.splice(ne,0,...z.slice(Pr,Ri)),Pr>0)if(ne===0)dd.splice(0,0,...z.slice(0,Pr));else{let Kk=new Map;for(let fS=0;fS=0;fS--){let oA=z[fS];Kk.has(oA.expression.text)||dd.unshift(oA)}}return fB(w)?z2(pt(dd,w.hasTrailingComma),w):w}function dS(w,z){let ne;return typeof z=="number"?ne=Pt(z):ne=z,aUt(w)?K0(w,ne,w.name,w.constraint,w.default):xDe(w)?vx(w,ne,w.dotDotDotToken,w.name,w.questionToken,w.type,w.initializer):pUt(w)?Du(w,ne,w.typeParameters,w.parameters,w.type):ecn(w)?__(w,ne,w.name,w.questionToken,w.type):TDe(w)?jt(w,ne,w.name,w.questionToken??w.exclamationToken,w.type,w.initializer):tcn(w)?Ti(w,ne,w.name,w.questionToken,w.typeParameters,w.parameters,w.type):gYe(w)?Zc(w,ne,w.asteriskToken,w.name,w.questionToken,w.typeParameters,w.parameters,w.type,w.body):sUt(w)?Gr(w,ne,w.parameters,w.body):yYe(w)?To(w,ne,w.name,w.parameters,w.type,w.body):EDe(w)?Sn(w,ne,w.name,w.parameters,w.body):cUt(w)?nl(w,ne,w.parameters,w.type):fUt(w)?eO(w,ne,w.asteriskToken,w.name,w.typeParameters,w.parameters,w.type,w.body):mUt(w)?rO(w,ne,w.typeParameters,w.parameters,w.type,w.equalsGreaterThanToken,w.body):vYe(w)?F9(w,ne,w.name,w.typeParameters,w.heritageClauses,w.members):wDe(w)?x$(w,ne,w.declarationList):yUt(w)?dO(w,ne,w.asteriskToken,w.name,w.typeParameters,w.parameters,w.type,w.body):kDe(w)?NI(w,ne,w.name,w.typeParameters,w.heritageClauses,w.members):ret(w)?rR(w,ne,w.name,w.typeParameters,w.heritageClauses,w.members):vUt(w)?X2(w,ne,w.name,w.typeParameters,w.type):Rcn(w)?Y2(w,ne,w.name,w.members):f_e(w)?Vm(w,ne,w.name,w.body):SUt(w)?zk(w,ne,w.isTypeOnly,w.name,w.moduleReference):bUt(w)?cR(w,ne,w.importClause,w.moduleSpecifier,w.attributes):xUt(w)?FI(w,ne,w.expression):TUt(w)?y4(w,ne,w.isTypeOnly,w.exportClause,w.moduleSpecifier,w.attributes):Pi.assertNever(w)}function gb(w,z){return xDe(w)?vx(w,z,w.dotDotDotToken,w.name,w.questionToken,w.type,w.initializer):TDe(w)?jt(w,z,w.name,w.questionToken??w.exclamationToken,w.type,w.initializer):gYe(w)?Zc(w,z,w.asteriskToken,w.name,w.questionToken,w.typeParameters,w.parameters,w.type,w.body):yYe(w)?To(w,z,w.name,w.parameters,w.type,w.body):EDe(w)?Sn(w,z,w.name,w.parameters,w.body):vYe(w)?F9(w,z,w.name,w.typeParameters,w.heritageClauses,w.members):kDe(w)?NI(w,z,w.name,w.typeParameters,w.heritageClauses,w.members):Pi.assertNever(w)}function Hk(w,z){switch(w.kind){case 178:return To(w,w.modifiers,z,w.parameters,w.type,w.body);case 179:return Sn(w,w.modifiers,z,w.parameters,w.body);case 175:return Zc(w,w.modifiers,w.asteriskToken,z,w.questionToken,w.typeParameters,w.parameters,w.type,w.body);case 174:return Ti(w,w.modifiers,z,w.questionToken,w.typeParameters,w.parameters,w.type);case 173:return jt(w,w.modifiers,z,w.questionToken??w.exclamationToken,w.type,w.initializer);case 172:return __(w,w.modifiers,z,w.questionToken,w.type);case 304:return q$(w,z,w.initializer)}}function fl(w){return w?pt(w):void 0}function D_(w){return typeof w=="string"?co(w):w}function Jp(w){return typeof w=="string"?hr(w):typeof w=="number"?ht(w):typeof w=="boolean"?w?Sc():Wu():w}function Hu(w){return w&&s().parenthesizeExpressionForDisallowedComma(w)}function WI(w){return typeof w=="number"?Wn(w):w}function Cx(w){return w&&Mcn(w)?z2(i(T$(),w),w):w}function X0(w){return typeof w=="string"||w&&!gUt(w)?f4(w,void 0,void 0,void 0):w}function _i(w,z){return w!==z&&(i(w,z),z2(w,z)),w}}function sDe(e){switch(e){case 345:return"type";case 343:return"returns";case 344:return"this";case 341:return"enum";case 331:return"author";case 333:return"class";case 334:return"public";case 335:return"private";case 336:return"protected";case 337:return"readonly";case 338:return"override";case 346:return"template";case 347:return"typedef";case 342:return"param";case 349:return"prop";case 339:return"callback";case 340:return"overload";case 329:return"augments";case 330:return"implements";case 352:return"import";default:return Pi.fail(`Unsupported kind: ${Pi.formatSyntaxKind(e)}`)}}var Sk,pBt={};function Usn(e,r){switch(Sk||(Sk=BYe(99,!1,0)),e){case 15:Sk.setText("`"+r+"`");break;case 16:Sk.setText("`"+r+"${");break;case 17:Sk.setText("}"+r+"${");break;case 18:Sk.setText("}"+r+"`");break}let i=Sk.scan();if(i===20&&(i=Sk.reScanTemplateToken(!1)),Sk.isUnterminated())return Sk.setText(void 0),pBt;let s;switch(i){case 15:case 16:case 17:case 18:s=Sk.getTokenValue();break}return s===void 0||Sk.scan()!==1?(Sk.setText(void 0),pBt):(Sk.setText(void 0),s)}function wD(e){return e&&Kd(e)?eee(e):Ji(e)}function eee(e){return Ji(e)&-67108865}function zsn(e,r){return r|e.transformFlags&134234112}function Ji(e){if(!e)return 0;let r=e.transformFlags&~qsn(e.kind);return bon(e)&&j$t(e.name)?zsn(e.name,r):r}function ul(e){return e?e.transformFlags:0}function _Bt(e){let r=0;for(let i of e)r|=Ji(i);e.transformFlags=r}function qsn(e){if(e>=183&&e<=206)return-2;switch(e){case 214:case 215:case 210:return-2147450880;case 268:return-1941676032;case 170:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112;case 207:case 208:return-2147450880;case 217:case 239:case 235:case 356:case 218:case 108:return-2147483648;case 212:case 213:return-2147483648;default:return-2147483648}}var Gpe=jsn();function Hpe(e){return e.flags|=16,e}var Jsn={createBaseSourceFileNode:e=>Hpe(Gpe.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>Hpe(Gpe.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>Hpe(Gpe.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>Hpe(Gpe.createBaseTokenNode(e)),createBaseNode:e=>Hpe(Gpe.createBaseNode(e))},gVn=YYe(4,Jsn);function Vsn(e,r){if(e.original!==r&&(e.original=r,r)){let i=r.emitNode;i&&(e.emitNode=Wsn(i,e.emitNode))}return e}function Wsn(e,r){let{flags:i,internalFlags:s,leadingComments:l,trailingComments:d,commentRange:h,sourceMapRange:S,tokenSourceMapRanges:b,constantValue:A,helpers:L,startsOnNewLine:V,snippetElement:j,classThis:ie,assignedName:te}=e;if(r||(r={}),i&&(r.flags=i),s&&(r.internalFlags=s&-9),l&&(r.leadingComments=Tk(l.slice(),r.leadingComments)),d&&(r.trailingComments=Tk(d.slice(),r.trailingComments)),h&&(r.commentRange=h),S&&(r.sourceMapRange=S),b&&(r.tokenSourceMapRanges=Gsn(b,r.tokenSourceMapRanges)),A!==void 0&&(r.constantValue=A),L)for(let X of L)r.helpers=din(r.helpers,X);return V!==void 0&&(r.startsOnNewLine=V),j!==void 0&&(r.snippetElement=j),ie&&(r.classThis=ie),te&&(r.assignedName=te),r}function Gsn(e,r){r||(r=[]);for(let i in e)r[i]=e[i];return r}function dee(e){return e.kind===9}function Hsn(e){return e.kind===10}function uee(e){return e.kind===11}function Ksn(e){return e.kind===15}function Qsn(e){return e.kind===28}function dBt(e){return e.kind===54}function fBt(e){return e.kind===58}function Kd(e){return e.kind===80}function NV(e){return e.kind===81}function Zsn(e){return e.kind===95}function cDe(e){return e.kind===134}function XXe(e){return e.kind===108}function Xsn(e){return e.kind===102}function Ysn(e){return e.kind===167}function oUt(e){return e.kind===168}function aUt(e){return e.kind===169}function xDe(e){return e.kind===170}function eet(e){return e.kind===171}function ecn(e){return e.kind===172}function TDe(e){return e.kind===173}function tcn(e){return e.kind===174}function gYe(e){return e.kind===175}function sUt(e){return e.kind===177}function yYe(e){return e.kind===178}function EDe(e){return e.kind===179}function rcn(e){return e.kind===180}function ncn(e){return e.kind===181}function cUt(e){return e.kind===182}function icn(e){return e.kind===183}function lUt(e){return e.kind===184}function uUt(e){return e.kind===185}function pUt(e){return e.kind===186}function ocn(e){return e.kind===187}function acn(e){return e.kind===188}function scn(e){return e.kind===189}function ccn(e){return e.kind===190}function lcn(e){return e.kind===203}function ucn(e){return e.kind===191}function pcn(e){return e.kind===192}function _cn(e){return e.kind===193}function dcn(e){return e.kind===194}function fcn(e){return e.kind===195}function mcn(e){return e.kind===196}function hcn(e){return e.kind===197}function gcn(e){return e.kind===198}function ycn(e){return e.kind===199}function vcn(e){return e.kind===200}function Scn(e){return e.kind===201}function bcn(e){return e.kind===202}function xcn(e){return e.kind===206}function Tcn(e){return e.kind===209}function Ecn(e){return e.kind===210}function _Ut(e){return e.kind===211}function X5(e){return e.kind===212}function g_e(e){return e.kind===213}function dUt(e){return e.kind===214}function kcn(e){return e.kind===216}function tet(e){return e.kind===218}function fUt(e){return e.kind===219}function mUt(e){return e.kind===220}function Ccn(e){return e.kind===223}function Dcn(e){return e.kind===225}function _ee(e){return e.kind===227}function Acn(e){return e.kind===231}function vYe(e){return e.kind===232}function wcn(e){return e.kind===233}function Icn(e){return e.kind===234}function _De(e){return e.kind===236}function Pcn(e){return e.kind===237}function Ncn(e){return e.kind===357}function wDe(e){return e.kind===244}function hUt(e){return e.kind===245}function Ocn(e){return e.kind===257}function gUt(e){return e.kind===261}function Fcn(e){return e.kind===262}function yUt(e){return e.kind===263}function kDe(e){return e.kind===264}function ret(e){return e.kind===265}function vUt(e){return e.kind===266}function Rcn(e){return e.kind===267}function f_e(e){return e.kind===268}function SUt(e){return e.kind===272}function bUt(e){return e.kind===273}function xUt(e){return e.kind===278}function TUt(e){return e.kind===279}function Lcn(e){return e.kind===280}function Mcn(e){return e.kind===354}function EUt(e){return e.kind===284}function mBt(e){return e.kind===287}function jcn(e){return e.kind===290}function kUt(e){return e.kind===296}function Bcn(e){return e.kind===298}function $cn(e){return e.kind===304}function Ucn(e){return e.kind===308}function zcn(e){return e.kind===310}function qcn(e){return e.kind===315}function Jcn(e){return e.kind===318}function CUt(e){return e.kind===321}function Vcn(e){return e.kind===323}function DUt(e){return e.kind===324}function Wcn(e){return e.kind===329}function Gcn(e){return e.kind===334}function Hcn(e){return e.kind===335}function Kcn(e){return e.kind===336}function Qcn(e){return e.kind===337}function Zcn(e){return e.kind===338}function Xcn(e){return e.kind===340}function Ycn(e){return e.kind===332}function hBt(e){return e.kind===342}function eln(e){return e.kind===343}function net(e){return e.kind===345}function tln(e){return e.kind===346}function rln(e){return e.kind===330}function nln(e){return e.kind===351}var IV=new WeakMap;function AUt(e,r){var i;let s=e.kind;return qYe(s)?s===353?e._children:(i=IV.get(r))==null?void 0:i.get(e):ky}function iln(e,r,i){e.kind===353&&Pi.fail("Should not need to re-set the children of a SyntaxList.");let s=IV.get(r);return s===void 0&&(s=new WeakMap,IV.set(r,s)),s.set(e,i),i}function gBt(e,r){var i;e.kind===353&&Pi.fail("Did not expect to unset the children of a SyntaxList."),(i=IV.get(r))==null||i.delete(e)}function oln(e,r){let i=IV.get(e);i!==void 0&&(IV.delete(e),IV.set(r,i))}function yBt(e){return(lee(e)&32768)!==0}function aln(e){return uee(e.expression)&&e.expression.text==="use strict"}function sln(e){for(let r of e)if(pDe(r)){if(aln(r))return r}else break}function cln(e){return tet(e)&&OV(e)&&!!Mon(e)}function wUt(e,r=63){switch(e.kind){case 218:return r&-2147483648&&cln(e)?!1:(r&1)!==0;case 217:case 235:return(r&2)!==0;case 239:return(r&34)!==0;case 234:return(r&16)!==0;case 236:return(r&4)!==0;case 356:return(r&8)!==0}return!1}function iet(e,r=63){for(;wUt(e,r);)e=e.expression;return e}function lln(e){return setStartsOnNewLine(e,!0)}function r_e(e){if(ran(e))return e.name;if(Xon(e)){switch(e.kind){case 304:return r_e(e.initializer);case 305:return e.name;case 306:return r_e(e.expression)}return}return bDe(e,!0)?r_e(e.left):Acn(e)?r_e(e.expression):e}function uln(e){switch(e.kind){case 207:case 208:case 210:return e.elements;case 211:return e.properties}}function vBt(e){if(e){let r=e;for(;;){if(Kd(r)||!r.body)return Kd(r)?r:r.name;r=r.body}}}var SBt;(e=>{function r(L,V,j,ie,te,X,Re){let Je=V>0?te[V-1]:void 0;return Pi.assertEqual(j[V],r),te[V]=L.onEnter(ie[V],Je,Re),j[V]=S(L,r),V}e.enter=r;function i(L,V,j,ie,te,X,Re){Pi.assertEqual(j[V],i),Pi.assertIsDefined(L.onLeft),j[V]=S(L,i);let Je=L.onLeft(ie[V].left,te[V],ie[V]);return Je?(A(V,ie,Je),b(V,j,ie,te,Je)):V}e.left=i;function s(L,V,j,ie,te,X,Re){return Pi.assertEqual(j[V],s),Pi.assertIsDefined(L.onOperator),j[V]=S(L,s),L.onOperator(ie[V].operatorToken,te[V],ie[V]),V}e.operator=s;function l(L,V,j,ie,te,X,Re){Pi.assertEqual(j[V],l),Pi.assertIsDefined(L.onRight),j[V]=S(L,l);let Je=L.onRight(ie[V].right,te[V],ie[V]);return Je?(A(V,ie,Je),b(V,j,ie,te,Je)):V}e.right=l;function d(L,V,j,ie,te,X,Re){Pi.assertEqual(j[V],d),j[V]=S(L,d);let Je=L.onExit(ie[V],te[V]);if(V>0){if(V--,L.foldState){let pt=j[V]===d?"right":"left";te[V]=L.foldState(te[V],Je,pt)}}else X.value=Je;return V}e.exit=d;function h(L,V,j,ie,te,X,Re){return Pi.assertEqual(j[V],h),V}e.done=h;function S(L,V){switch(V){case r:if(L.onLeft)return i;case i:if(L.onOperator)return s;case s:if(L.onRight)return l;case l:return d;case d:return h;case h:return h;default:Pi.fail("Invalid state")}}e.nextState=S;function b(L,V,j,ie,te){return L++,V[L]=r,j[L]=te,ie[L]=void 0,L}function A(L,V,j){if(Pi.shouldAssert(2))for(;L>=0;)Pi.assert(V[L]!==j,"Circular traversal detected."),L--}})(SBt||(SBt={}));function bBt(e,r){return typeof e=="object"?SYe(!1,e.prefix,e.node,e.suffix,r):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function pln(e,r){return typeof e=="string"?e:_ln(e,Pi.checkDefined(r))}function _ln(e,r){return M$t(e)?r(e).slice(1):iee(e)?r(e):NV(e)?e.escapedText.slice(1):Ek(e)}function SYe(e,r,i,s,l){return r=bBt(r,l),s=bBt(s,l),i=pln(i,l),`${e?"#":""}${r}${i}${s}`}function IUt(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let r of uln(e)){let i=r_e(r);if(i&&tan(i)&&(i.transformFlags&65536||i.transformFlags&128&&IUt(i)))return!0}return!1}function z2(e,r){return r?gB(e,r.pos,r.end):e}function oet(e){let r=e.kind;return r===169||r===170||r===172||r===173||r===174||r===175||r===177||r===178||r===179||r===182||r===186||r===219||r===220||r===232||r===244||r===263||r===264||r===265||r===266||r===267||r===268||r===272||r===273||r===278||r===279}function dln(e){let r=e.kind;return r===170||r===173||r===175||r===178||r===179||r===232||r===264}var xBt,TBt,EBt,kBt,CBt,fln={createBaseSourceFileNode:e=>new(CBt||(CBt=Ey.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(EBt||(EBt=Ey.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(kBt||(kBt=Ey.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(TBt||(TBt=Ey.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(xBt||(xBt=Ey.getNodeConstructor()))(e,-1,-1)},yVn=YYe(1,fln);function qr(e,r){return r&&e(r)}function xa(e,r,i){if(i){if(r)return r(i);for(let s of i){let l=e(s);if(l)return l}}}function mln(e,r){return e.charCodeAt(r+1)===42&&e.charCodeAt(r+2)===42&&e.charCodeAt(r+3)!==47}function hln(e){return ND(e.statements,gln)||yln(e)}function gln(e){return oet(e)&&vln(e,95)||SUt(e)&&EUt(e.moduleReference)||bUt(e)||xUt(e)||TUt(e)?e:void 0}function yln(e){return e.flags&8388608?PUt(e):void 0}function PUt(e){return Sln(e)?e:cx(e,PUt)}function vln(e,r){return sx(e.modifiers,i=>i.kind===r)}function Sln(e){return Pcn(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var bln={167:function(e,r,i){return qr(r,e.left)||qr(r,e.right)},169:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||qr(r,e.constraint)||qr(r,e.default)||qr(r,e.expression)},305:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||qr(r,e.questionToken)||qr(r,e.exclamationToken)||qr(r,e.equalsToken)||qr(r,e.objectAssignmentInitializer)},306:function(e,r,i){return qr(r,e.expression)},170:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.dotDotDotToken)||qr(r,e.name)||qr(r,e.questionToken)||qr(r,e.type)||qr(r,e.initializer)},173:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||qr(r,e.questionToken)||qr(r,e.exclamationToken)||qr(r,e.type)||qr(r,e.initializer)},172:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||qr(r,e.questionToken)||qr(r,e.type)||qr(r,e.initializer)},304:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||qr(r,e.questionToken)||qr(r,e.exclamationToken)||qr(r,e.initializer)},261:function(e,r,i){return qr(r,e.name)||qr(r,e.exclamationToken)||qr(r,e.type)||qr(r,e.initializer)},209:function(e,r,i){return qr(r,e.dotDotDotToken)||qr(r,e.propertyName)||qr(r,e.name)||qr(r,e.initializer)},182:function(e,r,i){return xa(r,i,e.modifiers)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)},186:function(e,r,i){return xa(r,i,e.modifiers)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)},185:function(e,r,i){return xa(r,i,e.modifiers)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)},180:DBt,181:DBt,175:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.asteriskToken)||qr(r,e.name)||qr(r,e.questionToken)||qr(r,e.exclamationToken)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)||qr(r,e.body)},174:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||qr(r,e.questionToken)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)},177:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)||qr(r,e.body)},178:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)||qr(r,e.body)},179:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)||qr(r,e.body)},263:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.asteriskToken)||qr(r,e.name)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)||qr(r,e.body)},219:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.asteriskToken)||qr(r,e.name)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)||qr(r,e.body)},220:function(e,r,i){return xa(r,i,e.modifiers)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)||qr(r,e.equalsGreaterThanToken)||qr(r,e.body)},176:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.body)},184:function(e,r,i){return qr(r,e.typeName)||xa(r,i,e.typeArguments)},183:function(e,r,i){return qr(r,e.assertsModifier)||qr(r,e.parameterName)||qr(r,e.type)},187:function(e,r,i){return qr(r,e.exprName)||xa(r,i,e.typeArguments)},188:function(e,r,i){return xa(r,i,e.members)},189:function(e,r,i){return qr(r,e.elementType)},190:function(e,r,i){return xa(r,i,e.elements)},193:ABt,194:ABt,195:function(e,r,i){return qr(r,e.checkType)||qr(r,e.extendsType)||qr(r,e.trueType)||qr(r,e.falseType)},196:function(e,r,i){return qr(r,e.typeParameter)},206:function(e,r,i){return qr(r,e.argument)||qr(r,e.attributes)||qr(r,e.qualifier)||xa(r,i,e.typeArguments)},303:function(e,r,i){return qr(r,e.assertClause)},197:wBt,199:wBt,200:function(e,r,i){return qr(r,e.objectType)||qr(r,e.indexType)},201:function(e,r,i){return qr(r,e.readonlyToken)||qr(r,e.typeParameter)||qr(r,e.nameType)||qr(r,e.questionToken)||qr(r,e.type)||xa(r,i,e.members)},202:function(e,r,i){return qr(r,e.literal)},203:function(e,r,i){return qr(r,e.dotDotDotToken)||qr(r,e.name)||qr(r,e.questionToken)||qr(r,e.type)},207:IBt,208:IBt,210:function(e,r,i){return xa(r,i,e.elements)},211:function(e,r,i){return xa(r,i,e.properties)},212:function(e,r,i){return qr(r,e.expression)||qr(r,e.questionDotToken)||qr(r,e.name)},213:function(e,r,i){return qr(r,e.expression)||qr(r,e.questionDotToken)||qr(r,e.argumentExpression)},214:PBt,215:PBt,216:function(e,r,i){return qr(r,e.tag)||qr(r,e.questionDotToken)||xa(r,i,e.typeArguments)||qr(r,e.template)},217:function(e,r,i){return qr(r,e.type)||qr(r,e.expression)},218:function(e,r,i){return qr(r,e.expression)},221:function(e,r,i){return qr(r,e.expression)},222:function(e,r,i){return qr(r,e.expression)},223:function(e,r,i){return qr(r,e.expression)},225:function(e,r,i){return qr(r,e.operand)},230:function(e,r,i){return qr(r,e.asteriskToken)||qr(r,e.expression)},224:function(e,r,i){return qr(r,e.expression)},226:function(e,r,i){return qr(r,e.operand)},227:function(e,r,i){return qr(r,e.left)||qr(r,e.operatorToken)||qr(r,e.right)},235:function(e,r,i){return qr(r,e.expression)||qr(r,e.type)},236:function(e,r,i){return qr(r,e.expression)},239:function(e,r,i){return qr(r,e.expression)||qr(r,e.type)},237:function(e,r,i){return qr(r,e.name)},228:function(e,r,i){return qr(r,e.condition)||qr(r,e.questionToken)||qr(r,e.whenTrue)||qr(r,e.colonToken)||qr(r,e.whenFalse)},231:function(e,r,i){return qr(r,e.expression)},242:NBt,269:NBt,308:function(e,r,i){return xa(r,i,e.statements)||qr(r,e.endOfFileToken)},244:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.declarationList)},262:function(e,r,i){return xa(r,i,e.declarations)},245:function(e,r,i){return qr(r,e.expression)},246:function(e,r,i){return qr(r,e.expression)||qr(r,e.thenStatement)||qr(r,e.elseStatement)},247:function(e,r,i){return qr(r,e.statement)||qr(r,e.expression)},248:function(e,r,i){return qr(r,e.expression)||qr(r,e.statement)},249:function(e,r,i){return qr(r,e.initializer)||qr(r,e.condition)||qr(r,e.incrementor)||qr(r,e.statement)},250:function(e,r,i){return qr(r,e.initializer)||qr(r,e.expression)||qr(r,e.statement)},251:function(e,r,i){return qr(r,e.awaitModifier)||qr(r,e.initializer)||qr(r,e.expression)||qr(r,e.statement)},252:OBt,253:OBt,254:function(e,r,i){return qr(r,e.expression)},255:function(e,r,i){return qr(r,e.expression)||qr(r,e.statement)},256:function(e,r,i){return qr(r,e.expression)||qr(r,e.caseBlock)},270:function(e,r,i){return xa(r,i,e.clauses)},297:function(e,r,i){return qr(r,e.expression)||xa(r,i,e.statements)},298:function(e,r,i){return xa(r,i,e.statements)},257:function(e,r,i){return qr(r,e.label)||qr(r,e.statement)},258:function(e,r,i){return qr(r,e.expression)},259:function(e,r,i){return qr(r,e.tryBlock)||qr(r,e.catchClause)||qr(r,e.finallyBlock)},300:function(e,r,i){return qr(r,e.variableDeclaration)||qr(r,e.block)},171:function(e,r,i){return qr(r,e.expression)},264:FBt,232:FBt,265:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||xa(r,i,e.typeParameters)||xa(r,i,e.heritageClauses)||xa(r,i,e.members)},266:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||xa(r,i,e.typeParameters)||qr(r,e.type)},267:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||xa(r,i,e.members)},307:function(e,r,i){return qr(r,e.name)||qr(r,e.initializer)},268:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||qr(r,e.body)},272:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||qr(r,e.moduleReference)},273:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.importClause)||qr(r,e.moduleSpecifier)||qr(r,e.attributes)},274:function(e,r,i){return qr(r,e.name)||qr(r,e.namedBindings)},301:function(e,r,i){return xa(r,i,e.elements)},302:function(e,r,i){return qr(r,e.name)||qr(r,e.value)},271:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)},275:function(e,r,i){return qr(r,e.name)},281:function(e,r,i){return qr(r,e.name)},276:RBt,280:RBt,279:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.exportClause)||qr(r,e.moduleSpecifier)||qr(r,e.attributes)},277:LBt,282:LBt,278:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.expression)},229:function(e,r,i){return qr(r,e.head)||xa(r,i,e.templateSpans)},240:function(e,r,i){return qr(r,e.expression)||qr(r,e.literal)},204:function(e,r,i){return qr(r,e.head)||xa(r,i,e.templateSpans)},205:function(e,r,i){return qr(r,e.type)||qr(r,e.literal)},168:function(e,r,i){return qr(r,e.expression)},299:function(e,r,i){return xa(r,i,e.types)},234:function(e,r,i){return qr(r,e.expression)||xa(r,i,e.typeArguments)},284:function(e,r,i){return qr(r,e.expression)},283:function(e,r,i){return xa(r,i,e.modifiers)},357:function(e,r,i){return xa(r,i,e.elements)},285:function(e,r,i){return qr(r,e.openingElement)||xa(r,i,e.children)||qr(r,e.closingElement)},289:function(e,r,i){return qr(r,e.openingFragment)||xa(r,i,e.children)||qr(r,e.closingFragment)},286:MBt,287:MBt,293:function(e,r,i){return xa(r,i,e.properties)},292:function(e,r,i){return qr(r,e.name)||qr(r,e.initializer)},294:function(e,r,i){return qr(r,e.expression)},295:function(e,r,i){return qr(r,e.dotDotDotToken)||qr(r,e.expression)},288:function(e,r,i){return qr(r,e.tagName)},296:function(e,r,i){return qr(r,e.namespace)||qr(r,e.name)},191:xV,192:xV,310:xV,316:xV,315:xV,317:xV,319:xV,318:function(e,r,i){return xa(r,i,e.parameters)||qr(r,e.type)},321:function(e,r,i){return(typeof e.comment=="string"?void 0:xa(r,i,e.comment))||xa(r,i,e.tags)},348:function(e,r,i){return qr(r,e.tagName)||qr(r,e.name)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))},311:function(e,r,i){return qr(r,e.name)},312:function(e,r,i){return qr(r,e.left)||qr(r,e.right)},342:jBt,349:jBt,331:function(e,r,i){return qr(r,e.tagName)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))},330:function(e,r,i){return qr(r,e.tagName)||qr(r,e.class)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))},329:function(e,r,i){return qr(r,e.tagName)||qr(r,e.class)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))},346:function(e,r,i){return qr(r,e.tagName)||qr(r,e.constraint)||xa(r,i,e.typeParameters)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))},347:function(e,r,i){return qr(r,e.tagName)||(e.typeExpression&&e.typeExpression.kind===310?qr(r,e.typeExpression)||qr(r,e.fullName)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment)):qr(r,e.fullName)||qr(r,e.typeExpression)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment)))},339:function(e,r,i){return qr(r,e.tagName)||qr(r,e.fullName)||qr(r,e.typeExpression)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))},343:TV,345:TV,344:TV,341:TV,351:TV,350:TV,340:TV,324:function(e,r,i){return ND(e.typeParameters,r)||ND(e.parameters,r)||qr(r,e.type)},325:YXe,326:YXe,327:YXe,323:function(e,r,i){return ND(e.jsDocPropertyTags,r)},328:uB,333:uB,334:uB,335:uB,336:uB,337:uB,332:uB,338:uB,352:xln,356:Tln};function DBt(e,r,i){return xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)}function ABt(e,r,i){return xa(r,i,e.types)}function wBt(e,r,i){return qr(r,e.type)}function IBt(e,r,i){return xa(r,i,e.elements)}function PBt(e,r,i){return qr(r,e.expression)||qr(r,e.questionDotToken)||xa(r,i,e.typeArguments)||xa(r,i,e.arguments)}function NBt(e,r,i){return xa(r,i,e.statements)}function OBt(e,r,i){return qr(r,e.label)}function FBt(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||xa(r,i,e.typeParameters)||xa(r,i,e.heritageClauses)||xa(r,i,e.members)}function RBt(e,r,i){return xa(r,i,e.elements)}function LBt(e,r,i){return qr(r,e.propertyName)||qr(r,e.name)}function MBt(e,r,i){return qr(r,e.tagName)||xa(r,i,e.typeArguments)||qr(r,e.attributes)}function xV(e,r,i){return qr(r,e.type)}function jBt(e,r,i){return qr(r,e.tagName)||(e.isNameFirst?qr(r,e.name)||qr(r,e.typeExpression):qr(r,e.typeExpression)||qr(r,e.name))||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))}function TV(e,r,i){return qr(r,e.tagName)||qr(r,e.typeExpression)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))}function YXe(e,r,i){return qr(r,e.name)}function uB(e,r,i){return qr(r,e.tagName)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))}function xln(e,r,i){return qr(r,e.tagName)||qr(r,e.importClause)||qr(r,e.moduleSpecifier)||qr(r,e.attributes)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))}function Tln(e,r,i){return qr(r,e.expression)}function cx(e,r,i){if(e===void 0||e.kind<=166)return;let s=bln[e.kind];return s===void 0?void 0:s(e,r,i)}function BBt(e,r,i){let s=$Bt(e),l=[];for(;l.length=0;--S)s.push(d[S]),l.push(h)}else{let S=r(d,h);if(S){if(S==="skip")continue;return S}if(d.kind>=167)for(let b of $Bt(d))s.push(b),l.push(d)}}}function $Bt(e){let r=[];return cx(e,i,i),r;function i(s){r.unshift(s)}}function NUt(e){e.externalModuleIndicator=hln(e)}function Eln(e,r,i,s=!1,l){var d,h;(d=lDe)==null||d.push(lDe.Phase.Parse,"createSourceFile",{path:e},!0),zjt("beforeParse");let S,{languageVersion:b,setExternalModuleIndicator:A,impliedNodeFormat:L,jsDocParsingMode:V}=typeof i=="object"?i:{languageVersion:i};if(b===100)S=PV.parseSourceFile(e,r,b,void 0,s,6,pee,V);else{let j=L===void 0?A:ie=>(ie.impliedNodeFormat=L,(A||NUt)(ie));S=PV.parseSourceFile(e,r,b,void 0,s,l,j,V)}return zjt("afterParse"),Fin("Parse","beforeParse","afterParse"),(h=lDe)==null||h.pop(),S}function kln(e){return e.externalModuleIndicator!==void 0}function Cln(e,r,i,s=!1){let l=CDe.updateSourceFile(e,r,i,s);return l.flags|=e.flags&12582912,l}var PV;(e=>{var r=BYe(99,!0),i=40960,s,l,d,h,S;function b(ge){return Wu++,ge}var A={createBaseSourceFileNode:ge=>b(new S(ge,0,0)),createBaseIdentifierNode:ge=>b(new d(ge,0,0)),createBasePrivateIdentifierNode:ge=>b(new h(ge,0,0)),createBaseTokenNode:ge=>b(new l(ge,0,0)),createBaseNode:ge=>b(new s(ge,0,0))},L=YYe(11,A),{createNodeArray:V,createNumericLiteral:j,createStringLiteral:ie,createLiteralLikeNode:te,createIdentifier:X,createPrivateIdentifier:Re,createToken:Je,createArrayLiteralExpression:pt,createObjectLiteralExpression:$e,createPropertyAccessExpression:xt,createPropertyAccessChain:tr,createElementAccessExpression:ht,createElementAccessChain:wt,createCallExpression:Ut,createCallChain:hr,createNewExpression:Hi,createParenthesizedExpression:un,createBlock:xo,createVariableStatement:Lo,createExpressionStatement:yr,createIfStatement:co,createWhileStatement:Cs,createForStatement:Cr,createForOfStatement:ol,createVariableDeclaration:Zo,createVariableDeclarationList:Rc}=L,an,Xr,li,Wi,Bo,Wn,Na,hs,Us,Sc,Wu,uc,Pt,ou,go,mc,zp=!0,Rh=!1;function K0(ge,Ke,vt,nr,Rr=!1,kn,Xn,Da=0){var jo;if(kn=ksn(ge,kn),kn===6){let Ha=vx(ge,Ke,vt,nr,Rr);return convertToJson(Ha,(jo=Ha.statements[0])==null?void 0:jo.expression,Ha.parseDiagnostics,!1,void 0),Ha.referencedFiles=ky,Ha.typeReferenceDirectives=ky,Ha.libReferenceDirectives=ky,Ha.amdDependencies=ky,Ha.hasNoDefaultLib=!1,Ha.pragmas=ain,Ha}dy(ge,Ke,vt,nr,kn,Da);let Ao=O1(vt,Rr,kn,Xn||NUt,Da);return vm(),Ao}e.parseSourceFile=K0;function rf(ge,Ke){dy("",ge,Ke,void 0,1,0),bi();let vt=Bk(!0),nr=qe()===1&&!Na.length;return vm(),nr?vt:void 0}e.parseIsolatedEntityName=rf;function vx(ge,Ke,vt=2,nr,Rr=!1){dy(ge,Ke,vt,nr,6,0),Xr=mc,bi();let kn=Jn(),Xn,Da;if(qe()===1)Xn=cg([],kn,kn),Da=pd();else{let Ha;for(;qe()!==1;){let dl;switch(qe()){case 23:dl=Gl();break;case 112:case 97:case 106:dl=pd();break;case 41:Qi(()=>bi()===9&&bi()!==59)?dl=mR():dl=xR();break;case 9:case 11:if(Qi(()=>bi()!==59)){dl=PT();break}default:dl=xR();break}Ha&&Z5(Ha)?Ha.push(dl):Ha?Ha=[Ha,dl]:(Ha=dl,qe()!==1&&Ho(_n.Unexpected_token))}let su=Z5(Ha)?Br(pt(Ha),kn):Pi.checkDefined(Ha),Hl=yr(su);Br(Hl,kn),Xn=cg([Hl],kn),Da=Ts(1,_n.Unexpected_token)}let jo=ea(ge,2,6,!1,Xn,Da,Xr,pee);Rr&&jt(jo),jo.nodeCount=Wu,jo.identifierCount=Pt,jo.identifiers=uc,jo.parseDiagnostics=bV(Na,jo),hs&&(jo.jsDocDiagnostics=bV(hs,jo));let Ao=jo;return vm(),Ao}e.parseJsonText=vx;function dy(ge,Ke,vt,nr,Rr,kn){switch(s=Ey.getNodeConstructor(),l=Ey.getTokenConstructor(),d=Ey.getIdentifierConstructor(),h=Ey.getPrivateIdentifierConstructor(),S=Ey.getSourceFileConstructor(),an=Jin(ge),li=Ke,Wi=vt,Us=nr,Bo=Rr,Wn=cBt(Rr),Na=[],ou=0,uc=new Map,Pt=0,Wu=0,Xr=0,zp=!0,Bo){case 1:case 2:mc=524288;break;case 6:mc=134742016;break;default:mc=0;break}Rh=!1,r.setText(li),r.setOnError(sS),r.setScriptTarget(Wi),r.setLanguageVariant(Wn),r.setScriptKind(Bo),r.setJSDocParsingMode(kn)}function vm(){r.clearCommentDirectives(),r.setText(""),r.setOnError(void 0),r.setScriptKind(0),r.setJSDocParsingMode(0),li=void 0,Wi=void 0,Us=void 0,Bo=void 0,Wn=void 0,Xr=0,Na=void 0,hs=void 0,ou=0,uc=void 0,go=void 0,zp=!0}function O1(ge,Ke,vt,nr,Rr){let kn=wln(an);kn&&(mc|=33554432),Xr=mc,bi();let Xn=L1(0,Og);Pi.assert(qe()===1);let Da=so(),jo=Bc(pd(),Da),Ao=ea(an,ge,vt,kn,Xn,jo,Xr,nr);return Nln(Ao,li),Oln(Ao,Ha),Ao.commentDirectives=r.getCommentDirectives(),Ao.nodeCount=Wu,Ao.identifierCount=Pt,Ao.identifiers=uc,Ao.parseDiagnostics=bV(Na,Ao),Ao.jsDocParsingMode=Rr,hs&&(Ao.jsDocDiagnostics=bV(hs,Ao)),Ke&&jt(Ao),Ao;function Ha(su,Hl,dl){Na.push(HY(an,li,su,Hl,dl))}}let __=!1;function Bc(ge,Ke){if(!Ke)return ge;Pi.assert(!ge.jsDoc);let vt=uin(ban(ge,li),nr=>K$.parseJSDocComment(ge,nr.pos,nr.end-nr.pos));return vt.length&&(ge.jsDoc=vt),__&&(__=!1,ge.flags|=536870912),ge}function cb(ge){let Ke=Us,vt=CDe.createSyntaxCursor(ge);Us={currentNode:Ha};let nr=[],Rr=Na;Na=[];let kn=0,Xn=jo(ge.statements,0);for(;Xn!==-1;){let su=ge.statements[kn],Hl=ge.statements[Xn];Tk(nr,ge.statements,kn,Xn),kn=Ao(ge.statements,Xn);let dl=qXe(Rr,Fg=>Fg.start>=su.pos),$1=dl>=0?qXe(Rr,Fg=>Fg.start>=Hl.pos,dl):-1;dl>=0&&Tk(Na,Rr,dl,$1>=0?$1:void 0),u0(()=>{let Fg=mc;for(mc|=65536,r.resetTokenState(Hl.pos),bi();qe()!==1;){let _S=r.getTokenFullStart(),dS=EI(0,Og);if(nr.push(dS),_S===r.getTokenFullStart()&&bi(),kn>=0){let gb=ge.statements[kn];if(dS.end===gb.pos)break;dS.end>gb.pos&&(kn=Ao(ge.statements,kn+1))}}mc=Fg},2),Xn=kn>=0?jo(ge.statements,kn):-1}if(kn>=0){let su=ge.statements[kn];Tk(nr,ge.statements,kn);let Hl=qXe(Rr,dl=>dl.start>=su.pos);Hl>=0&&Tk(Na,Rr,Hl)}return Us=Ke,L.updateSourceFile(ge,z2(V(nr),ge.statements));function Da(su){return!(su.flags&65536)&&!!(su.transformFlags&67108864)}function jo(su,Hl){for(let dl=Hl;dl118}function Ni(){return qe()===80?!0:qe()===127&&pc()||qe()===135&&eu()?!1:qe()>118}function Kn(ge,Ke,vt=!0){return qe()===ge?(vt&&bi(),!0):(Ke?Ho(Ke):Ho(_n._0_expected,Bm(ge)),!1)}let Ci=Object.keys(LYe).filter(ge=>ge.length>2);function Ba(ge){if(kcn(ge)){Lu(b8(li,ge.template.pos),ge.template.end,_n.Module_declaration_names_may_only_use_or_quoted_strings);return}let Ke=Kd(ge)?Ek(ge):void 0;if(!Ke||!_on(Ke,Wi)){Ho(_n._0_expected,Bm(27));return}let vt=b8(li,ge.pos);switch(Ke){case"const":case"let":case"var":Lu(vt,ge.end,_n.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":zs(_n.Interface_name_cannot_be_0,_n.Interface_must_be_given_a_name,19);return;case"is":Lu(vt,r.getTokenStart(),_n.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":zs(_n.Namespace_name_cannot_be_0,_n.Namespace_must_be_given_a_name,19);return;case"type":zs(_n.Type_alias_name_cannot_be_0,_n.Type_alias_must_be_given_a_name,64);return}let nr=Xpe(Ke,Ci,wg)??Yf(Ke);if(nr){Lu(vt,ge.end,_n.Unknown_keyword_or_identifier_Did_you_mean_0,nr);return}qe()!==0&&Lu(vt,ge.end,_n.Unexpected_keyword_or_identifier)}function zs(ge,Ke,vt){qe()===vt?Ho(Ke):Ho(ge,r.getTokenValue())}function Yf(ge){for(let Ke of Ci)if(ge.length>Ke.length+2&&hDe(ge,Ke))return`${Ke} ${ge.slice(Ke.length)}`}function AT(ge,Ke,vt){if(qe()===60&&!r.hasPrecedingLineBreak()){Ho(_n.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(qe()===21){Ho(_n.Cannot_start_a_function_call_in_a_type_annotation),bi();return}if(Ke&&!Ng()){vt?Ho(_n._0_expected,Bm(27)):Ho(_n.Expected_for_property_initializer);return}if(!F1()){if(vt){Ho(_n._0_expected,Bm(27));return}Ba(ge)}}function Sx(ge){return qe()===ge?(tu(),!0):(Pi.assert(GXe(ge)),Ho(_n._0_expected,Bm(ge)),!1)}function vl(ge,Ke,vt,nr){if(qe()===Ke){bi();return}let Rr=Ho(_n._0_expected,Bm(Ke));vt&&Rr&&oDe(Rr,HY(an,li,nr,1,_n.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Bm(ge),Bm(Ke)))}function Wl(ge){return qe()===ge?(bi(),!0):!1}function em(ge){if(qe()===ge)return pd()}function lb(ge){if(qe()===ge)return d$()}function Ts(ge,Ke,vt){return em(ge)||fy(ge,!1,Ke||_n._0_expected,vt||Bm(ge))}function Ef(ge){return lb(ge)||(Pi.assert(GXe(ge)),fy(ge,!1,_n._0_expected,Bm(ge)))}function pd(){let ge=Jn(),Ke=qe();return bi(),Br(Je(Ke),ge)}function d$(){let ge=Jn(),Ke=qe();return tu(),Br(Je(Ke),ge)}function Ng(){return qe()===27?!0:qe()===20||qe()===1||r.hasPrecedingLineBreak()}function F1(){return Ng()?(qe()===27&&bi(),!0):!1}function qm(){return F1()||Kn(27)}function cg(ge,Ke,vt,nr){let Rr=V(ge,nr);return gB(Rr,Ke,vt??r.getTokenFullStart()),Rr}function Br(ge,Ke,vt){return gB(ge,Ke,vt??r.getTokenFullStart()),mc&&(ge.flags|=mc),Rh&&(Rh=!1,ge.flags|=262144),ge}function fy(ge,Ke,vt,...nr){Ke?Q0(r.getTokenFullStart(),0,vt,...nr):vt&&Ho(vt,...nr);let Rr=Jn(),kn=ge===80?X("",void 0):Yjt(ge)?L.createTemplateLiteralLikeNode(ge,"","",void 0):ge===9?j("",void 0):ge===11?ie("",void 0):ge===283?L.createMissingDeclaration():Je(ge);return Br(kn,Rr)}function Q2(ge){let Ke=uc.get(ge);return Ke===void 0&&uc.set(ge,Ke=ge),Ke}function bx(ge,Ke,vt){if(ge){Pt++;let Da=r.hasPrecedingJSDocLeadingAsterisks()?r.getTokenStart():Jn(),jo=qe(),Ao=Q2(r.getTokenValue()),Ha=r.hasExtendedUnicodeEscape();return yl(),Br(X(Ao,jo,Ha),Da)}if(qe()===81)return Ho(vt||_n.Private_identifiers_are_not_allowed_outside_class_bodies),bx(!0);if(qe()===0&&r.tryScan(()=>r.reScanInvalidIdentifier()===80))return bx(!0);Pt++;let nr=qe()===1,Rr=r.isReservedWord(),kn=r.getTokenText(),Xn=Rr?_n.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:_n.Identifier_expected;return fy(80,nr,Ke||Xn,kn)}function JD(ge){return bx(Ll(),void 0,ge)}function Sm(ge,Ke){return bx(Ni(),ge,Ke)}function Su(ge){return bx(cy(qe()),ge)}function ub(){return(r.hasUnicodeEscape()||r.hasExtendedUnicodeEscape())&&Ho(_n.Unicode_escape_sequence_cannot_appear_here),bx(cy(qe()))}function VD(){return cy(qe())||qe()===11||qe()===9||qe()===10}function Q8(){return cy(qe())||qe()===11}function k9(ge){if(qe()===11||qe()===9||qe()===10){let Ke=PT();return Ke.text=Q2(Ke.text),Ke}return ge&&qe()===23?f$():qe()===81?Rk():Su()}function Fk(){return k9(!0)}function f$(){let ge=Jn();Kn(23);let Ke=or(Vm);return Kn(24),Br(L.createComputedPropertyName(Ke),ge)}function Rk(){let ge=Jn(),Ke=Re(Q2(r.getTokenValue()));return bi(),Br(Ke,ge)}function WD(ge){return qe()===ge&&Zn(xx)}function cS(){return bi(),r.hasPrecedingLineBreak()?!1:wT()}function xx(){switch(qe()){case 87:return bi()===94;case 95:return bi(),qe()===90?Qi(IT):qe()===156?Qi(au):Z8();case 90:return IT();case 126:return bi(),wT();case 139:case 153:return bi(),C9();default:return cS()}}function Z8(){return qe()===60||qe()!==42&&qe()!==130&&qe()!==19&&wT()}function au(){return bi(),Z8()}function Lk(){return W5(qe())&&Zn(xx)}function wT(){return qe()===23||qe()===19||qe()===42||qe()===26||VD()}function C9(){return qe()===23||VD()}function IT(){return bi(),qe()===86||qe()===100||qe()===120||qe()===60||qe()===128&&Qi(Z_)||qe()===134&&Qi(iE)}function R1(ge,Ke){if(jf(ge))return!0;switch(ge){case 0:case 1:case 3:return!(qe()===27&&Ke)&&za();case 2:return qe()===84||qe()===90;case 4:return Qi(T$);case 5:return Qi(GW)||qe()===27&&!Ke;case 6:return qe()===23||VD();case 12:switch(qe()){case 23:case 42:case 26:case 25:return!0;default:return VD()}case 18:return VD();case 9:return qe()===23||qe()===26||VD();case 24:return Q8();case 7:return qe()===19?Qi(m$):Ke?Ni()&&!X8():hO()&&!X8();case 8:return FT();case 10:return qe()===28||qe()===26||FT();case 19:return qe()===103||qe()===87||Ni();case 15:switch(qe()){case 28:case 25:return!0}case 11:return qe()===26||Y2();case 16:return db(!1);case 17:return db(!0);case 20:case 21:return qe()===28||ZD();case 22:return aE();case 23:return qe()===161&&Qi($$)?!1:qe()===11?!0:cy(qe());case 13:return cy(qe())||qe()===19;case 14:return!0;case 25:return!0;case 26:return Pi.fail("ParsingContext.Count used as a context");default:Pi.assertNever(ge,"Non-exhaustive case in 'isListElement'.")}}function m$(){if(Pi.assert(qe()===19),bi()===20){let ge=bi();return ge===28||ge===19||ge===96||ge===119}return!0}function pb(){return bi(),Ni()}function dte(){return bi(),cy(qe())}function _d(){return bi(),Vin(qe())}function X8(){return qe()===119||qe()===96?Qi(D9):!1}function D9(){return bi(),Y2()}function GD(){return bi(),ZD()}function Ca(ge){if(qe()===1)return!0;switch(ge){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return qe()===20;case 3:return qe()===20||qe()===84||qe()===90;case 7:return qe()===19||qe()===96||qe()===119;case 8:return Mk();case 19:return qe()===32||qe()===21||qe()===19||qe()===96||qe()===119;case 11:return qe()===22||qe()===27;case 15:case 21:case 10:return qe()===24;case 17:case 16:case 18:return qe()===22||qe()===24;case 20:return qe()!==28;case 22:return qe()===19||qe()===20;case 13:return qe()===32||qe()===44;case 14:return qe()===30&&Qi(_c);default:return!1}}function Mk(){return!!(Ng()||pR(qe())||qe()===39)}function Y8(){Pi.assert(ou,"Missing parsing context");for(let ge=0;ge<26;ge++)if(ou&1<=0)}function g$(ge){return ge===6?_n.An_enum_member_name_must_be_followed_by_a_or:void 0}function jk(){let ge=cg([],Jn());return ge.isMissingList=!0,ge}function kW(ge){return!!ge.isMissingList}function HD(ge,Ke,vt,nr){if(Kn(vt)){let Rr=_b(ge,Ke);return Kn(nr),Rr}return jk()}function Bk(ge,Ke){let vt=Jn(),nr=ge?Su(Ke):Sm(Ke);for(;Wl(25)&&qe()!==30;)nr=Br(L.createQualifiedName(nr,CI(ge,!1,!0)),vt);return nr}function Iy(ge,Ke){return Br(L.createQualifiedName(ge,Ke),ge.pos)}function CI(ge,Ke,vt){if(r.hasPrecedingLineBreak()&&cy(qe())&&Qi(pS))return fy(80,!0,_n.Identifier_expected);if(qe()===81){let nr=Rk();return Ke?nr:fy(80,!0,_n.Identifier_expected)}return ge?vt?Su():ub():Sm()}function fte(ge){let Ke=Jn(),vt=[],nr;do nr=wW(ge),vt.push(nr);while(nr.literal.kind===17);return cg(vt,Ke)}function KD(ge){let Ke=Jn();return Br(L.createTemplateExpression(DI(ge),fte(ge)),Ke)}function CW(){let ge=Jn();return Br(L.createTemplateLiteralType(DI(!1),mte()),ge)}function mte(){let ge=Jn(),Ke=[],vt;do vt=DW(),Ke.push(vt);while(vt.literal.kind===17);return cg(Ke,ge)}function DW(){let ge=Jn();return Br(L.createTemplateLiteralTypeSpan(nf(),AW(!1)),ge)}function AW(ge){return qe()===20?(Lh(ge),IW()):Ts(18,_n._0_expected,Bm(20))}function wW(ge){let Ke=Jn();return Br(L.createTemplateSpan(or(Vm),AW(ge)),Ke)}function PT(){return bm(qe())}function DI(ge){!ge&&r.getTokenFlags()&26656&&Lh(!1);let Ke=bm(qe());return Pi.assert(Ke.kind===16,"Template head has wrong token kind"),Ke}function IW(){let ge=bm(qe());return Pi.assert(ge.kind===17||ge.kind===18,"Template fragment has wrong token kind"),ge}function hte(ge){let Ke=ge===15||ge===18,vt=r.getTokenText();return vt.substring(1,vt.length-(r.isUnterminated()?0:Ke?1:2))}function bm(ge){let Ke=Jn(),vt=Yjt(ge)?L.createTemplateLiteralLikeNode(ge,r.getTokenValue(),hte(ge),r.getTokenFlags()&7176):ge===9?j(r.getTokenValue(),r.getNumericLiteralFlags()):ge===11?ie(r.getTokenValue(),void 0,r.hasExtendedUnicodeEscape()):Jon(ge)?te(ge,r.getTokenValue()):Pi.fail();return r.hasExtendedUnicodeEscape()&&(vt.hasExtendedUnicodeEscape=!0),r.isUnterminated()&&(vt.isUnterminated=!0),bi(),Br(vt,Ke)}function lg(){return Bk(!0,_n.Type_expected)}function PW(){if(!r.hasPrecedingLineBreak()&&zm()===30)return HD(20,nf,30,32)}function N9(){let ge=Jn();return Br(L.createTypeReferenceNode(lg(),PW()),ge)}function y$(ge){switch(ge.kind){case 184:return wV(ge.typeName);case 185:case 186:{let{parameters:Ke,type:vt}=ge;return kW(Ke)||y$(vt)}case 197:return y$(ge.type);default:return!1}}function gte(ge){return bi(),Br(L.createTypePredicateNode(void 0,ge,nf()),ge.pos)}function v$(){let ge=Jn();return bi(),Br(L.createThisTypeNode(),ge)}function yte(){let ge=Jn();return bi(),Br(L.createJSDocAllType(),ge)}function NW(){let ge=Jn();return bi(),Br(L.createJSDocNonNullableType(d4(),!1),ge)}function vte(){let ge=Jn();return bi(),qe()===28||qe()===20||qe()===22||qe()===32||qe()===64||qe()===52?Br(L.createJSDocUnknownType(),ge):Br(L.createJSDocNullableType(nf(),!1),ge)}function O9(){let ge=Jn(),Ke=so();if(Zn(DR)){let vt=jl(36),nr=Z0(59,!1);return Bc(Br(L.createJSDocFunctionType(vt,nr),ge),Ke)}return Br(L.createTypeReferenceNode(Su(),void 0),ge)}function F9(){let ge=Jn(),Ke;return(qe()===110||qe()===105)&&(Ke=Su(),Kn(59)),Br(L.createParameterDeclaration(void 0,void 0,Ke,void 0,nO(),void 0),ge)}function nO(){r.setSkipJsDocLeadingAsterisks(!0);let ge=Jn();if(Wl(144)){let nr=L.createJSDocNamepathType(void 0);e:for(;;)switch(qe()){case 20:case 1:case 28:case 5:break e;default:tu()}return r.setSkipJsDocLeadingAsterisks(!1),Br(nr,ge)}let Ke=Wl(26),vt=NI();return r.setSkipJsDocLeadingAsterisks(!1),Ke&&(vt=Br(L.createJSDocVariadicType(vt),ge)),qe()===64?(bi(),Br(L.createJSDocOptionalType(vt),ge)):vt}function Ml(){let ge=Jn();Kn(114);let Ke=Bk(!0),vt=r.hasPrecedingLineBreak()?void 0:Ry();return Br(L.createTypeQueryNode(Ke,vt),ge)}function R9(){let ge=Jn(),Ke=fv(!1,!0),vt=Sm(),nr,Rr;Wl(96)&&(ZD()||!Y2()?nr=nf():Rr=gR());let kn=Wl(64)?nf():void 0,Xn=L.createTypeParameterDeclaration(Ke,vt,nr,kn);return Xn.expression=Rr,Br(Xn,ge)}function Py(){if(qe()===30)return HD(19,R9,30,32)}function db(ge){return qe()===26||FT()||W5(qe())||qe()===60||ZD(!ge)}function S$(ge){let Ke=Ex(_n.Private_identifiers_cannot_be_used_as_parameters);return han(Ke)===0&&!sx(ge)&&W5(qe())&&bi(),Ke}function iO(){return Ll()||qe()===23||qe()===19}function oO(ge){return L9(ge)}function QD(ge){return L9(ge,!1)}function L9(ge,Ke=!0){let vt=Jn(),nr=so(),Rr=ge?Yr(()=>fv(!0)):Sn(()=>fv(!0));if(qe()===110){let jo=L.createParameterDeclaration(Rr,void 0,bx(!0),void 0,X2(),void 0),Ao=PYe(Rr);return Ao&&aS(Ao,_n.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Bc(Br(jo,vt),nr)}let kn=zp;zp=!1;let Xn=em(26);if(!Ke&&!iO())return;let Da=Bc(Br(L.createParameterDeclaration(Rr,Xn,S$(Rr),em(58),X2(),eE()),vt),nr);return zp=kn,Da}function Z0(ge,Ke){if(AI(ge,Ke))return pi(NI)}function AI(ge,Ke){return ge===39?(Kn(ge),!0):Wl(59)?!0:Ke&&qe()===39?(Ho(_n._0_expected,Bm(59)),bi(),!0):!1}function $k(ge,Ke){let vt=pc(),nr=eu();Zc(!!(ge&1)),zd(!!(ge&2));let Rr=ge&32?_b(17,F9):_b(16,()=>Ke?oO(nr):QD(nr));return Zc(vt),zd(nr),Rr}function jl(ge){if(!Kn(21))return jk();let Ke=$k(ge,!0);return Kn(22),Ke}function Jm(){Wl(28)||qm()}function b$(ge){let Ke=Jn(),vt=so();ge===181&&Kn(105);let nr=Py(),Rr=jl(4),kn=Z0(59,!0);Jm();let Xn=ge===180?L.createCallSignature(nr,Rr,kn):L.createConstructSignature(nr,Rr,kn);return Bc(Br(Xn,Ke),vt)}function fb(){return qe()===23&&Qi(M9)}function M9(){if(bi(),qe()===26||qe()===24)return!0;if(W5(qe())){if(bi(),Ni())return!0}else if(Ni())bi();else return!1;return qe()===59||qe()===28?!0:qe()!==58?!1:(bi(),qe()===59||qe()===28||qe()===24)}function j9(ge,Ke,vt){let nr=HD(16,()=>oO(!1),23,24),Rr=X2();Jm();let kn=L.createIndexSignature(vt,nr,Rr);return Bc(Br(kn,ge),Ke)}function x$(ge,Ke,vt){let nr=Fk(),Rr=em(58),kn;if(qe()===21||qe()===30){let Xn=Py(),Da=jl(4),jo=Z0(59,!0);kn=L.createMethodSignature(vt,nr,Rr,Xn,Da,jo)}else{let Xn=X2();kn=L.createPropertySignature(vt,nr,Rr,Xn),qe()===64&&(kn.initializer=eE())}return Jm(),Bc(Br(kn,ge),Ke)}function T$(){if(qe()===21||qe()===30||qe()===139||qe()===153)return!0;let ge=!1;for(;W5(qe());)ge=!0,bi();return qe()===23?!0:(VD()&&(ge=!0,bi()),ge?qe()===21||qe()===30||qe()===58||qe()===59||qe()===28||Ng():!1)}function wI(){if(qe()===21||qe()===30)return b$(180);if(qe()===105&&Qi(aO))return b$(181);let ge=Jn(),Ke=so(),vt=fv(!1);return WD(139)?E4(ge,Ke,vt,178,4):WD(153)?E4(ge,Ke,vt,179,4):fb()?j9(ge,Ke,vt):x$(ge,Ke,vt)}function aO(){return bi(),qe()===21||qe()===30}function B9(){return bi()===25}function hi(){switch(bi()){case 21:case 30:case 25:return!0}return!1}function II(){let ge=Jn();return Br(L.createTypeLiteralNode($9()),ge)}function $9(){let ge;return Kn(19)?(ge=L1(4,wI),Kn(20)):ge=jk(),ge}function U9(){return bi(),qe()===40||qe()===41?bi()===148:(qe()===148&&bi(),qe()===23&&pb()&&bi()===103)}function z9(){let ge=Jn(),Ke=Su();Kn(103);let vt=nf();return Br(L.createTypeParameterDeclaration(void 0,Ke,vt,void 0),ge)}function sO(){let ge=Jn();Kn(19);let Ke;(qe()===148||qe()===40||qe()===41)&&(Ke=pd(),Ke.kind!==148&&Kn(148)),Kn(23);let vt=z9(),nr=Wl(130)?nf():void 0;Kn(24);let Rr;(qe()===58||qe()===40||qe()===41)&&(Rr=pd(),Rr.kind!==58&&Kn(58));let kn=X2();qm();let Xn=L1(4,wI);return Kn(20),Br(L.createMappedTypeNode(Ke,vt,nr,Rr,kn,Xn),ge)}function cO(){let ge=Jn();if(Wl(26))return Br(L.createRestTypeNode(nf()),ge);let Ke=nf();if(qcn(Ke)&&Ke.pos===Ke.type.pos){let vt=L.createOptionalTypeNode(Ke.type);return z2(vt,Ke),vt.flags=Ke.flags,vt}return Ke}function lO(){return bi()===59||qe()===58&&bi()===59}function q9(){return qe()===26?cy(bi())&&lO():cy(qe())&&lO()}function J9(){if(Qi(q9)){let ge=Jn(),Ke=so(),vt=em(26),nr=Su(),Rr=em(58);Kn(59);let kn=cO(),Xn=L.createNamedTupleMember(vt,nr,Rr,kn);return Bc(Br(Xn,ge),Ke)}return cO()}function V9(){let ge=Jn();return Br(L.createTupleTypeNode(HD(21,J9,23,24)),ge)}function W9(){let ge=Jn();Kn(21);let Ke=nf();return Kn(22),Br(L.createParenthesizedType(Ke),ge)}function E$(){let ge;if(qe()===128){let Ke=Jn();bi();let vt=Br(Je(128),Ke);ge=cg([vt],Ke)}return ge}function PI(){let ge=Jn(),Ke=so(),vt=E$(),nr=Wl(105);Pi.assert(!vt||nr,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let Rr=Py(),kn=jl(4),Xn=Z0(39,!1),Da=nr?L.createConstructorTypeNode(vt,Rr,kn,Xn):L.createFunctionTypeNode(Rr,kn,Xn);return Bc(Br(Da,ge),Ke)}function G9(){let ge=pd();return qe()===25?void 0:ge}function Uk(ge){let Ke=Jn();ge&&bi();let vt=qe()===112||qe()===97||qe()===106?pd():bm(qe());return ge&&(vt=Br(L.createPrefixUnaryExpression(41,vt),Ke)),Br(L.createLiteralTypeNode(vt),Ke)}function H9(){return bi(),qe()===102}function uO(){Xr|=4194304;let ge=Jn(),Ke=Wl(114);Kn(102),Kn(21);let vt=nf(),nr;if(Wl(28)){let Xn=r.getTokenStart();Kn(19);let Da=qe();if(Da===118||Da===132?bi():Ho(_n._0_expected,Bm(118)),Kn(59),nr=IR(Da,!0),Wl(28),!Kn(20)){let jo=oee(Na);jo&&jo.code===_n._0_expected.code&&oDe(jo,HY(an,li,Xn,1,_n.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}Kn(22);let Rr=Wl(25)?lg():void 0,kn=PW();return Br(L.createImportTypeNode(vt,nr,Rr,kn,Ke),ge)}function K9(){return bi(),qe()===9||qe()===10}function d4(){switch(qe()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Zn(G9)||N9();case 67:r.reScanAsteriskEqualsToken();case 42:return yte();case 61:r.reScanQuestionToken();case 58:return vte();case 100:return O9();case 54:return NW();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return Uk();case 41:return Qi(K9)?Uk(!0):N9();case 116:return pd();case 110:{let ge=v$();return qe()===142&&!r.hasPrecedingLineBreak()?gte(ge):ge}case 114:return Qi(H9)?uO():Ml();case 19:return Qi(U9)?sO():II();case 23:return V9();case 21:return W9();case 102:return uO();case 131:return Qi(pS)?rR():N9();case 16:return CW();default:return N9()}}function ZD(ge){switch(qe()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!ge;case 41:return!ge&&Qi(K9);case 21:return!ge&&Qi(Q9);default:return Ni()}}function Q9(){return bi(),qe()===22||db(!1)||ZD()}function Z9(){let ge=Jn(),Ke=d4();for(;!r.hasPrecedingLineBreak();)switch(qe()){case 54:bi(),Ke=Br(L.createJSDocNonNullableType(Ke,!0),ge);break;case 58:if(Qi(GD))return Ke;bi(),Ke=Br(L.createJSDocNullableType(Ke,!0),ge);break;case 23:if(Kn(23),ZD()){let vt=nf();Kn(24),Ke=Br(L.createIndexedAccessTypeNode(Ke,vt),ge)}else Kn(24),Ke=Br(L.createArrayTypeNode(Ke),ge);break;default:return Ke}return Ke}function X9(ge){let Ke=Jn();return Kn(ge),Br(L.createTypeOperatorNode(ge,eR()),Ke)}function k$(){if(Wl(96)){let ge=ia(nf);if(Yl()||qe()!==58)return ge}}function Y9(){let ge=Jn(),Ke=Sm(),vt=Zn(k$),nr=L.createTypeParameterDeclaration(void 0,Ke,vt);return Br(nr,ge)}function C$(){let ge=Jn();return Kn(140),Br(L.createInferTypeNode(Y9()),ge)}function eR(){let ge=qe();switch(ge){case 143:case 158:case 148:return X9(ge);case 140:return C$()}return pi(Z9)}function f4(ge){if(dO()){let Ke=PI(),vt;return uUt(Ke)?vt=ge?_n.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:_n.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:vt=ge?_n.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:_n.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,aS(Ke,vt),Ke}}function tR(ge,Ke,vt){let nr=Jn(),Rr=ge===52,kn=Wl(ge),Xn=kn&&f4(Rr)||Ke();if(qe()===ge||kn){let Da=[Xn];for(;Wl(ge);)Da.push(f4(Rr)||Ke());Xn=Br(vt(cg(Da,nr)),nr)}return Xn}function pO(){return tR(51,eR,L.createIntersectionTypeNode)}function D$(){return tR(52,pO,L.createUnionTypeNode)}function _O(){return bi(),qe()===105}function dO(){return qe()===30||qe()===21&&Qi(fO)?!0:qe()===105||qe()===128&&Qi(_O)}function A$(){if(W5(qe())&&fv(!1),Ni()||qe()===110)return bi(),!0;if(qe()===23||qe()===19){let ge=Na.length;return Ex(),ge===Na.length}return!1}function fO(){return bi(),!!(qe()===22||qe()===26||A$()&&(qe()===59||qe()===28||qe()===58||qe()===64||qe()===22&&(bi(),qe()===39)))}function NI(){let ge=Jn(),Ke=Ni()&&Zn(mO),vt=nf();return Ke?Br(L.createTypePredicateNode(void 0,Ke,vt),ge):vt}function mO(){let ge=Sm();if(qe()===142&&!r.hasPrecedingLineBreak())return bi(),ge}function rR(){let ge=Jn(),Ke=Ts(131),vt=qe()===110?v$():Sm(),nr=Wl(142)?nf():void 0;return Br(L.createTypePredicateNode(Ke,vt,nr),ge)}function nf(){if(mc&81920)return pu(81920,nf);if(dO())return PI();let ge=Jn(),Ke=D$();if(!Yl()&&!r.hasPrecedingLineBreak()&&Wl(96)){let vt=ia(nf);Kn(58);let nr=pi(nf);Kn(59);let Rr=pi(nf);return Br(L.createConditionalTypeNode(Ke,vt,nr,Rr),ge)}return Ke}function X2(){return Wl(59)?nf():void 0}function hO(){switch(qe()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Qi(hi);default:return Ni()}}function Y2(){if(hO())return!0;switch(qe()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return _R()?!0:Ni()}}function nR(){return qe()!==19&&qe()!==100&&qe()!==86&&qe()!==60&&Y2()}function Vm(){let ge=nl();ge&&Jl(!1);let Ke=Jn(),vt=Ny(!0),nr;for(;nr=em(28);)vt=yO(vt,nr,Ny(!0),Ke);return ge&&Jl(!0),vt}function eE(){return Wl(64)?Ny(!0):void 0}function Ny(ge){if(iR())return oR();let Ke=gO(ge)||cR(ge);if(Ke)return Ke;let vt=Jn(),nr=so(),Rr=OI(0);return Rr.kind===80&&qe()===39?aR(vt,Rr,ge,nr,void 0):cee(Rr)&&Y$t(Du())?yO(Rr,pd(),Ny(ge),vt):I$(Rr,vt,ge)}function iR(){return qe()===127?pc()?!0:Qi(Xi):!1}function w$(){return bi(),!r.hasPrecedingLineBreak()&&Ni()}function oR(){let ge=Jn();return bi(),!r.hasPrecedingLineBreak()&&(qe()===42||Y2())?Br(L.createYieldExpression(em(42),Ny(!0)),ge):Br(L.createYieldExpression(void 0,void 0),ge)}function aR(ge,Ke,vt,nr,Rr){Pi.assert(qe()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let kn=L.createParameterDeclaration(void 0,void 0,Ke,void 0,void 0,void 0);Br(kn,Ke.pos);let Xn=cg([kn],kn.pos,kn.end),Da=Ts(39),jo=tE(!!Rr,vt),Ao=L.createArrowFunction(Rr,void 0,Xn,void 0,Da,jo);return Bc(Br(Ao,ge),nr)}function gO(ge){let Ke=NT();if(Ke!==0)return Ke===1?uR(!0,!0):Zn(()=>sR(ge))}function NT(){return qe()===21||qe()===30||qe()===134?Qi(zk):qe()===39?1:0}function zk(){if(qe()===134&&(bi(),r.hasPrecedingLineBreak()||qe()!==21&&qe()!==30))return 0;let ge=qe(),Ke=bi();if(ge===21){if(Ke===22)switch(bi()){case 39:case 59:case 19:return 1;default:return 0}if(Ke===23||Ke===19)return 2;if(Ke===26)return 1;if(W5(Ke)&&Ke!==134&&Qi(pb))return bi()===130?0:1;if(!Ni()&&Ke!==110)return 0;switch(bi()){case 59:return 1;case 58:return bi(),qe()===59||qe()===28||qe()===64||qe()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return Pi.assert(ge===30),!Ni()&&qe()!==87?0:Wn===1?Qi(()=>{Wl(87);let vt=bi();if(vt===96)switch(bi()){case 64:case 32:case 44:return!1;default:return!0}else if(vt===28||vt===64)return!0;return!1})?1:0:2}function sR(ge){let Ke=r.getTokenStart();if(go?.has(Ke))return;let vt=uR(!1,ge);return vt||(go||(go=new Set)).add(Ke),vt}function cR(ge){if(qe()===134&&Qi(lR)===1){let Ke=Jn(),vt=so(),nr=QW(),Rr=OI(0);return aR(Ke,Rr,ge,vt,nr)}}function lR(){if(qe()===134){if(bi(),r.hasPrecedingLineBreak()||qe()===39)return 0;let ge=OI(0);if(!r.hasPrecedingLineBreak()&&ge.kind===80&&qe()===39)return 1}return 0}function uR(ge,Ke){let vt=Jn(),nr=so(),Rr=QW(),kn=sx(Rr,cDe)?2:0,Xn=Py(),Da;if(Kn(21)){if(ge)Da=$k(kn,ge);else{let _S=$k(kn,ge);if(!_S)return;Da=_S}if(!Kn(22)&&!ge)return}else{if(!ge)return;Da=jk()}let jo=qe()===59,Ao=Z0(59,!1);if(Ao&&!ge&&y$(Ao))return;let Ha=Ao;for(;Ha?.kind===197;)Ha=Ha.type;let su=Ha&&Jcn(Ha);if(!ge&&qe()!==39&&(su||qe()!==19))return;let Hl=qe(),dl=Ts(39),$1=Hl===39||Hl===19?tE(sx(Rr,cDe),Ke):Sm();if(!Ke&&jo&&qe()!==59)return;let Fg=L.createArrowFunction(Rr,Xn,Da,Ao,dl,$1);return Bc(Br(Fg,vt),nr)}function tE(ge,Ke){if(qe()===19)return jI(ge?2:0);if(qe()!==27&&qe()!==100&&qe()!==86&&za()&&!nR())return jI(16|(ge?2:0));let vt=pc();Zc(!1);let nr=zp;zp=!1;let Rr=ge?Yr(()=>Ny(Ke)):Sn(()=>Ny(Ke));return zp=nr,Zc(vt),Rr}function I$(ge,Ke,vt){let nr=em(58);if(!nr)return ge;let Rr;return Br(L.createConditionalExpression(ge,nr,pu(i,()=>Ny(!1)),Rr=Ts(59),dYe(Rr)?Ny(vt):fy(80,!1,_n._0_expected,Bm(59))),Ke)}function OI(ge){let Ke=Jn(),vt=gR();return m4(ge,vt,Ke)}function pR(ge){return ge===103||ge===165}function m4(ge,Ke,vt){for(;;){Du();let nr=HXe(qe());if(!(qe()===43?nr>=ge:nr>ge)||qe()===103&&rs())break;if(qe()===130||qe()===152){if(r.hasPrecedingLineBreak())break;{let Rr=qe();bi(),Ke=Rr===152?dR(Ke,nf()):fR(Ke,nf())}}else Ke=yO(Ke,pd(),OI(nr),vt)}return Ke}function _R(){return rs()&&qe()===103?!1:HXe(qe())>0}function dR(ge,Ke){return Br(L.createSatisfiesExpression(ge,Ke),ge.pos)}function yO(ge,Ke,vt,nr){return Br(L.createBinaryExpression(ge,Ke,vt),nr)}function fR(ge,Ke){return Br(L.createAsExpression(ge,Ke),ge.pos)}function mR(){let ge=Jn();return Br(L.createPrefixUnaryExpression(qe(),_l(rE)),ge)}function vO(){let ge=Jn();return Br(L.createDeleteExpression(_l(rE)),ge)}function hR(){let ge=Jn();return Br(L.createTypeOfExpression(_l(rE)),ge)}function SO(){let ge=Jn();return Br(L.createVoidExpression(_l(rE)),ge)}function P$(){return qe()===135?eu()?!0:Qi(Xi):!1}function C_(){let ge=Jn();return Br(L.createAwaitExpression(_l(rE)),ge)}function gR(){if(N$()){let vt=Jn(),nr=h4();return qe()===43?m4(HXe(qe()),nr,vt):nr}let ge=qe(),Ke=rE();if(qe()===43){let vt=b8(li,Ke.pos),{end:nr}=Ke;Ke.kind===217?Lu(vt,nr,_n.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(Pi.assert(GXe(ge)),Lu(vt,nr,_n.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,Bm(ge)))}return Ke}function rE(){switch(qe()){case 40:case 41:case 55:case 54:return mR();case 91:return vO();case 114:return hR();case 116:return SO();case 30:return Wn===1?RI(!0,void 0,void 0,!0):LW();case 135:if(P$())return C_();default:return h4()}}function N$(){switch(qe()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(Wn!==1)return!1;default:return!0}}function h4(){if(qe()===46||qe()===47){let Ke=Jn();return Br(L.createPrefixUnaryExpression(qe(),_l(FI)),Ke)}else if(Wn===1&&qe()===30&&Qi(_d))return RI(!0);let ge=FI();if(Pi.assert(cee(ge)),(qe()===46||qe()===47)&&!r.hasPrecedingLineBreak()){let Ke=qe();return bi(),Br(L.createPostfixUnaryExpression(ge,Ke),ge.pos)}return ge}function FI(){let ge=Jn(),Ke;return qe()===102?Qi(aO)?(Xr|=4194304,Ke=pd()):Qi(B9)?(bi(),bi(),Ke=Br(L.createMetaProperty(102,Su()),ge),Ke.name.escapedText==="defer"?(qe()===21||qe()===30)&&(Xr|=4194304):Xr|=8388608):Ke=g4():Ke=qe()===108?y4():g4(),TO(ge,Ke)}function g4(){let ge=Jn(),Ke=SR();return Oy(ge,Ke,!0)}function y4(){let ge=Jn(),Ke=pd();if(qe()===30){let vt=Jn(),nr=Zn(vR);nr!==void 0&&(Lu(vt,Jn(),_n.super_may_not_use_type_arguments),lS()||(Ke=L.createExpressionWithTypeArguments(Ke,nr)))}return qe()===21||qe()===25||qe()===23?Ke:(Ts(25,_n.super_must_be_followed_by_an_argument_list_or_member_access),Br(xt(Ke,CI(!0,!0,!0)),ge))}function RI(ge,Ke,vt,nr=!1){let Rr=Jn(),kn=Wm(ge),Xn;if(kn.kind===287){let Da=v4(kn),jo,Ao=Da[Da.length-1];if(Ao?.kind===285&&!pB(Ao.openingElement.tagName,Ao.closingElement.tagName)&&pB(kn.tagName,Ao.closingElement.tagName)){let Ha=Ao.children.end,su=Br(L.createJsxElement(Ao.openingElement,Ao.children,Br(L.createJsxClosingElement(Br(X(""),Ha,Ha)),Ha,Ha)),Ao.openingElement.pos,Ha);Da=cg([...Da.slice(0,Da.length-1),su],Da.pos,Ha),jo=Ao.closingElement}else jo=RW(kn,ge),pB(kn.tagName,jo.tagName)||(vt&&mBt(vt)&&pB(jo.tagName,vt.tagName)?aS(kn.tagName,_n.JSX_element_0_has_no_corresponding_closing_tag,t_e(li,kn.tagName)):aS(jo.tagName,_n.Expected_corresponding_JSX_closing_tag_for_0,t_e(li,kn.tagName)));Xn=Br(L.createJsxElement(kn,Da,jo),Rr)}else kn.kind===290?Xn=Br(L.createJsxFragment(kn,v4(kn),bte(ge)),Rr):(Pi.assert(kn.kind===286),Xn=kn);if(!nr&&ge&&qe()===30){let Da=typeof Ke>"u"?Xn.pos:Ke,jo=Zn(()=>RI(!0,Da));if(jo){let Ao=fy(28,!1);return uBt(Ao,jo.pos,0),Lu(b8(li,Da),jo.end,_n.JSX_expressions_must_have_one_parent_element),Br(L.createBinaryExpression(Xn,Ao,jo),Rr)}}return Xn}function qk(){let ge=Jn(),Ke=L.createJsxText(r.getTokenValue(),Sc===13);return Sc=r.scanJsxToken(),Br(Ke,ge)}function OW(ge,Ke){switch(Ke){case 1:if(jcn(ge))aS(ge,_n.JSX_fragment_has_no_corresponding_closing_tag);else{let vt=ge.tagName,nr=Math.min(b8(li,vt.pos),vt.end);Lu(nr,vt.end,_n.JSX_element_0_has_no_corresponding_closing_tag,t_e(li,ge.tagName))}return;case 31:case 7:return;case 12:case 13:return qk();case 19:return bO(!1);case 30:return RI(!1,void 0,ge);default:return Pi.assertNever(Ke)}}function v4(ge){let Ke=[],vt=Jn(),nr=ou;for(ou|=16384;;){let Rr=OW(ge,Sc=r.reScanJsxToken());if(!Rr||(Ke.push(Rr),mBt(ge)&&Rr?.kind===285&&!pB(Rr.openingElement.tagName,Rr.closingElement.tagName)&&pB(ge.tagName,Rr.closingElement.tagName)))break}return ou=nr,cg(Ke,vt)}function yR(){let ge=Jn();return Br(L.createJsxAttributes(L1(13,xO)),ge)}function Wm(ge){let Ke=Jn();if(Kn(30),qe()===32)return K2(),Br(L.createJsxOpeningFragment(),Ke);let vt=OT(),nr=(mc&524288)===0?Ry():void 0,Rr=yR(),kn;return qe()===32?(K2(),kn=L.createJsxOpeningElement(vt,nr,Rr)):(Kn(44),Kn(32,void 0,!1)&&(ge?bi():K2()),kn=L.createJsxSelfClosingElement(vt,nr,Rr)),Br(kn,Ke)}function OT(){let ge=Jn(),Ke=O$();if(kUt(Ke))return Ke;let vt=Ke;for(;Wl(25);)vt=Br(xt(vt,CI(!0,!1,!1)),ge);return vt}function O$(){let ge=Jn();d_();let Ke=qe()===110,vt=ub();return Wl(59)?(d_(),Br(L.createJsxNamespacedName(vt,ub()),ge)):Ke?Br(L.createToken(110),ge):vt}function bO(ge){let Ke=Jn();if(!Kn(19))return;let vt,nr;return qe()!==20&&(ge||(vt=em(26)),nr=Vm()),ge?Kn(20):Kn(20,void 0,!1)&&K2(),Br(L.createJsxExpression(vt,nr),Ke)}function xO(){if(qe()===19)return FW();let ge=Jn();return Br(L.createJsxAttribute(Ste(),LI()),ge)}function LI(){if(qe()===64){if(K8()===11)return PT();if(qe()===19)return bO(!0);if(qe()===30)return RI(!0);Ho(_n.or_JSX_element_expected)}}function Ste(){let ge=Jn();d_();let Ke=ub();return Wl(59)?(d_(),Br(L.createJsxNamespacedName(Ke,ub()),ge)):Ke}function FW(){let ge=Jn();Kn(19),Kn(26);let Ke=Vm();return Kn(20),Br(L.createJsxSpreadAttribute(Ke),ge)}function RW(ge,Ke){let vt=Jn();Kn(31);let nr=OT();return Kn(32,void 0,!1)&&(Ke||!pB(ge.tagName,nr)?bi():K2()),Br(L.createJsxClosingElement(nr),vt)}function bte(ge){let Ke=Jn();return Kn(31),Kn(32,_n.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(ge?bi():K2()),Br(L.createJsxJsxClosingFragment(),Ke)}function LW(){Pi.assert(Wn!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let ge=Jn();Kn(30);let Ke=nf();Kn(32);let vt=rE();return Br(L.createTypeAssertion(Ke,vt),ge)}function MW(){return bi(),cy(qe())||qe()===23||lS()}function jW(){return qe()===29&&Qi(MW)}function S4(ge){if(ge.flags&64)return!0;if(_De(ge)){let Ke=ge.expression;for(;_De(Ke)&&!(Ke.flags&64);)Ke=Ke.expression;if(Ke.flags&64){for(;_De(ge);)ge.flags|=64,ge=ge.expression;return!0}}return!1}function b4(ge,Ke,vt){let nr=CI(!0,!0,!0),Rr=vt||S4(Ke),kn=Rr?tr(Ke,vt,nr):xt(Ke,nr);if(Rr&&NV(kn.name)&&aS(kn.name,_n.An_optional_chain_cannot_contain_private_identifiers),Icn(Ke)&&Ke.typeArguments){let Xn=Ke.typeArguments.pos-1,Da=b8(li,Ke.typeArguments.end)+1;Lu(Xn,Da,_n.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Br(kn,ge)}function BW(ge,Ke,vt){let nr;if(qe()===24)nr=fy(80,!0,_n.An_element_access_expression_should_take_an_argument);else{let kn=or(Vm);ADe(kn)&&(kn.text=Q2(kn.text)),nr=kn}Kn(24);let Rr=vt||S4(Ke)?wt(Ke,vt,nr):ht(Ke,nr);return Br(Rr,ge)}function Oy(ge,Ke,vt){for(;;){let nr,Rr=!1;if(vt&&jW()?(nr=Ts(29),Rr=cy(qe())):Rr=Wl(25),Rr){Ke=b4(ge,Ke,nr);continue}if((nr||!nl())&&Wl(23)){Ke=BW(ge,Ke,nr);continue}if(lS()){Ke=!nr&&Ke.kind===234?MI(ge,Ke.expression,nr,Ke.typeArguments):MI(ge,Ke,nr,void 0);continue}if(!nr){if(qe()===54&&!r.hasPrecedingLineBreak()){bi(),Ke=Br(L.createNonNullExpression(Ke),ge);continue}let kn=Zn(vR);if(kn){Ke=Br(L.createExpressionWithTypeArguments(Ke,kn),ge);continue}}return Ke}}function lS(){return qe()===15||qe()===16}function MI(ge,Ke,vt,nr){let Rr=L.createTaggedTemplateExpression(Ke,nr,qe()===15?(Lh(!0),PT()):KD(!0));return(vt||Ke.flags&64)&&(Rr.flags|=64),Rr.questionDotToken=vt,Br(Rr,ge)}function TO(ge,Ke){for(;;){Ke=Oy(ge,Ke,!0);let vt,nr=em(29);if(nr&&(vt=Zn(vR),lS())){Ke=MI(ge,Ke,nr,vt);continue}if(vt||qe()===21){!nr&&Ke.kind===234&&(vt=Ke.typeArguments,Ke=Ke.expression);let Rr=$W(),kn=nr||S4(Ke)?hr(Ke,nr,vt,Rr):Ut(Ke,vt,Rr);Ke=Br(kn,ge);continue}if(nr){let Rr=fy(80,!1,_n.Identifier_expected);Ke=Br(tr(Ke,nr,Rr),ge)}break}return Ke}function $W(){Kn(21);let ge=_b(11,R$);return Kn(22),ge}function vR(){if((mc&524288)!==0||zm()!==30)return;bi();let ge=_b(20,nf);if(Du()===32)return bi(),ge&&UW()?ge:void 0}function UW(){switch(qe()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return r.hasPrecedingLineBreak()||_R()||!Y2()}function SR(){switch(qe()){case 15:r.getTokenFlags()&26656&&Lh(!1);case 9:case 10:case 11:return PT();case 110:case 108:case 106:case 112:case 97:return pd();case 21:return F$();case 23:return Gl();case 19:return xR();case 134:if(!Qi(iE))break;return L$();case 60:return Dte();case 86:return Zs();case 100:return L$();case 105:return TR();case 44:case 69:if(qp()===14)return PT();break;case 16:return KD(!1);case 81:return Rk()}return Sm(_n.Expression_expected)}function F$(){let ge=Jn(),Ke=so();Kn(21);let vt=or(Vm);return Kn(22),Bc(Br(un(vt),ge),Ke)}function bR(){let ge=Jn();Kn(26);let Ke=Ny(!0);return Br(L.createSpreadElement(Ke),ge)}function f_(){return qe()===26?bR():qe()===28?Br(L.createOmittedExpression(),Jn()):Ny(!0)}function R$(){return pu(i,f_)}function Gl(){let ge=Jn(),Ke=r.getTokenStart(),vt=Kn(23),nr=r.hasPrecedingLineBreak(),Rr=_b(15,f_);return vl(23,24,vt,Ke),Br(pt(Rr,nr),ge)}function x4(){let ge=Jn(),Ke=so();if(em(26)){let Ao=Ny(!0);return Bc(Br(L.createSpreadAssignment(Ao),ge),Ke)}let vt=fv(!0);if(WD(139))return E4(ge,Ke,vt,178,0);if(WD(153))return E4(ge,Ke,vt,179,0);let nr=em(42),Rr=Ni(),kn=Fk(),Xn=em(58),Da=em(54);if(nr||qe()===21||qe()===30)return z$(ge,Ke,vt,nr,kn,Xn,Da);let jo;if(Rr&&qe()!==59){let Ao=em(64),Ha=Ao?or(()=>Ny(!0)):void 0;jo=L.createShorthandPropertyAssignment(kn,Ha),jo.equalsToken=Ao}else{Kn(59);let Ao=or(()=>Ny(!0));jo=L.createPropertyAssignment(kn,Ao)}return jo.modifiers=vt,jo.questionToken=Xn,jo.exclamationToken=Da,Bc(Br(jo,ge),Ke)}function xR(){let ge=Jn(),Ke=r.getTokenStart(),vt=Kn(19),nr=r.hasPrecedingLineBreak(),Rr=_b(12,x4,!0);return vl(19,20,vt,Ke),Br($e(Rr,nr),ge)}function L$(){let ge=nl();Jl(!1);let Ke=Jn(),vt=so(),nr=fv(!1);Kn(100);let Rr=em(42),kn=Rr?1:0,Xn=sx(nr,cDe)?2:0,Da=kn&&Xn?to(XD):kn?To(XD):Xn?Yr(XD):XD(),jo=Py(),Ao=jl(kn|Xn),Ha=Z0(59,!1),su=jI(kn|Xn);Jl(ge);let Hl=L.createFunctionExpression(nr,Rr,Da,jo,Ao,Ha,su);return Bc(Br(Hl,Ke),vt)}function XD(){return Ll()?JD():void 0}function TR(){let ge=Jn();if(Kn(105),Wl(25)){let kn=Su();return Br(L.createMetaProperty(105,kn),ge)}let Ke=Jn(),vt=Oy(Ke,SR(),!1),nr;vt.kind===234&&(nr=vt.typeArguments,vt=vt.expression),qe()===29&&Ho(_n.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,t_e(li,vt));let Rr=qe()===21?$W():void 0;return Br(Hi(vt,nr,Rr),ge)}function qd(ge,Ke){let vt=Jn(),nr=so(),Rr=r.getTokenStart(),kn=Kn(19,Ke);if(kn||ge){let Xn=r.hasPrecedingLineBreak(),Da=L1(1,Og);vl(19,20,kn,Rr);let jo=Bc(Br(xo(Da,Xn),vt),nr);return qe()===64&&(Ho(_n.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),bi()),jo}else{let Xn=jk();return Bc(Br(xo(Xn,void 0),vt),nr)}}function jI(ge,Ke){let vt=pc();Zc(!!(ge&1));let nr=eu();zd(!!(ge&2));let Rr=zp;zp=!1;let kn=nl();kn&&Jl(!1);let Xn=qd(!!(ge&16),Ke);return kn&&Jl(!0),zp=Rr,Zc(vt),zd(nr),Xn}function YD(){let ge=Jn(),Ke=so();return Kn(27),Bc(Br(L.createEmptyStatement(),ge),Ke)}function ch(){let ge=Jn(),Ke=so();Kn(101);let vt=r.getTokenStart(),nr=Kn(21),Rr=or(Vm);vl(21,22,nr,vt);let kn=Og(),Xn=Wl(93)?Og():void 0;return Bc(Br(co(Rr,kn,Xn),ge),Ke)}function EO(){let ge=Jn(),Ke=so();Kn(92);let vt=Og();Kn(117);let nr=r.getTokenStart(),Rr=Kn(21),kn=or(Vm);return vl(21,22,Rr,nr),Wl(27),Bc(Br(L.createDoStatement(vt,kn),ge),Ke)}function eA(){let ge=Jn(),Ke=so();Kn(117);let vt=r.getTokenStart(),nr=Kn(21),Rr=or(Vm);vl(21,22,nr,vt);let kn=Og();return Bc(Br(Cs(Rr,kn),ge),Ke)}function Au(){let ge=Jn(),Ke=so();Kn(99);let vt=em(135);Kn(21);let nr;qe()!==27&&(qe()===115||qe()===121||qe()===87||qe()===160&&Qi(VW)||qe()===135&&Qi(r_)?nr=x(!0):nr=Gr(Vm));let Rr;if(vt?Kn(165):Wl(165)){let kn=or(()=>Ny(!0));Kn(22),Rr=ol(vt,nr,kn,Og())}else if(Wl(103)){let kn=or(Vm);Kn(22),Rr=L.createForInStatement(nr,kn,Og())}else{Kn(27);let kn=qe()!==27&&qe()!==22?or(Vm):void 0;Kn(27);let Xn=qe()!==22?or(Vm):void 0;Kn(22),Rr=Cr(nr,kn,Xn,Og())}return Bc(Br(Rr,ge),Ke)}function _p(ge){let Ke=Jn(),vt=so();Kn(ge===253?83:88);let nr=Ng()?void 0:Sm();qm();let Rr=ge===253?L.createBreakStatement(nr):L.createContinueStatement(nr);return Bc(Br(Rr,Ke),vt)}function uS(){let ge=Jn(),Ke=so();Kn(107);let vt=Ng()?void 0:or(Vm);return qm(),Bc(Br(L.createReturnStatement(vt),ge),Ke)}function zW(){let ge=Jn(),Ke=so();Kn(118);let vt=r.getTokenStart(),nr=Kn(21),Rr=or(Vm);vl(21,22,nr,vt);let kn=Tf(67108864,Og);return Bc(Br(L.createWithStatement(Rr,kn),ge),Ke)}function qW(){let ge=Jn(),Ke=so();Kn(84);let vt=or(Vm);Kn(59);let nr=L1(3,Og);return Bc(Br(L.createCaseClause(vt,nr),ge),Ke)}function kO(){let ge=Jn();Kn(90),Kn(59);let Ke=L1(3,Og);return Br(L.createDefaultClause(Ke),ge)}function Fy(){return qe()===84?qW():kO()}function mo(){let ge=Jn();Kn(19);let Ke=L1(2,Fy);return Kn(20),Br(L.createCaseBlock(Ke),ge)}function t_(){let ge=Jn(),Ke=so();Kn(109),Kn(21);let vt=or(Vm);Kn(22);let nr=mo();return Bc(Br(L.createSwitchStatement(vt,nr),ge),Ke)}function M$(){let ge=Jn(),Ke=so();Kn(111);let vt=r.hasPrecedingLineBreak()?void 0:or(Vm);return vt===void 0&&(Pt++,vt=Br(X(""),Jn())),F1()||Ba(vt),Bc(Br(L.createThrowStatement(vt),ge),Ke)}function xte(){let ge=Jn(),Ke=so();Kn(113);let vt=qd(!1),nr=qe()===85?nE():void 0,Rr;return(!nr||qe()===98)&&(Kn(98,_n.catch_or_finally_expected),Rr=qd(!1)),Bc(Br(L.createTryStatement(vt,nr,Rr),ge),Ke)}function nE(){let ge=Jn();Kn(85);let Ke;Wl(21)?(Ke=I(),Kn(22)):Ke=void 0;let vt=qd(!1);return Br(L.createCatchClause(Ke,vt),ge)}function Tte(){let ge=Jn(),Ke=so();return Kn(89),qm(),Bc(Br(L.createDebuggerStatement(),ge),Ke)}function Cd(){let ge=Jn(),Ke=so(),vt,nr=qe()===21,Rr=or(Vm);return Kd(Rr)&&Wl(59)?vt=L.createLabeledStatement(Rr,Og()):(F1()||Ba(Rr),vt=yr(Rr),nr&&(Ke=!1)),Bc(Br(vt,ge),Ke)}function pS(){return bi(),cy(qe())&&!r.hasPrecedingLineBreak()}function Z_(){return bi(),qe()===86&&!r.hasPrecedingLineBreak()}function iE(){return bi(),qe()===100&&!r.hasPrecedingLineBreak()}function Xi(){return bi(),(cy(qe())||qe()===9||qe()===10||qe()===11)&&!r.hasPrecedingLineBreak()}function mb(){for(;;)switch(qe()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return dv();case 135:return Tx();case 120:case 156:case 166:return w$();case 144:case 145:return ug();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let ge=qe();if(bi(),r.hasPrecedingLineBreak())return!1;if(ge===138&&qe()===156)return!0;continue;case 162:return bi(),qe()===19||qe()===80||qe()===95;case 102:return bi(),qe()===166||qe()===11||qe()===42||qe()===19||cy(qe());case 95:let Ke=bi();if(Ke===156&&(Ke=Qi(bi)),Ke===64||Ke===42||Ke===19||Ke===90||Ke===130||Ke===60)return!0;continue;case 126:bi();continue;default:return!1}}function Jk(){return Qi(mb)}function za(){switch(qe()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return Jk()||Qi(hi);case 87:case 95:return Jk();case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return Jk()||!Qi(pS);default:return Y2()}}function Qs(){return bi(),Ll()||qe()===19||qe()===23}function JW(){return Qi(Qs)}function VW(){return wl(!0)}function ER(){return bi(),qe()===64||qe()===27||qe()===59}function wl(ge){return bi(),ge&&qe()===165?Qi(ER):(Ll()||qe()===19)&&!r.hasPrecedingLineBreak()}function dv(){return Qi(wl)}function r_(ge){return bi()===160?wl(ge):!1}function Tx(){return Qi(r_)}function Og(){switch(qe()){case 27:return YD();case 19:return qd(!1);case 115:return $I(Jn(),so(),void 0);case 121:if(JW())return $I(Jn(),so(),void 0);break;case 135:if(Tx())return $I(Jn(),so(),void 0);break;case 160:if(dv())return $I(Jn(),so(),void 0);break;case 100:return UI(Jn(),so(),void 0);case 86:return kx(Jn(),so(),void 0);case 101:return ch();case 92:return EO();case 117:return eA();case 99:return Au();case 88:return _p(252);case 83:return _p(253);case 107:return uS();case 118:return zW();case 109:return t_();case 111:return M$();case 113:case 85:case 98:return xte();case 89:return Tte();case 60:return tA();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(Jk())return tA();break}return Cd()}function T4(ge){return ge.kind===138}function tA(){let ge=Jn(),Ke=so(),vt=fv(!0);if(sx(vt,T4)){let nr=j$(ge);if(nr)return nr;for(let Rr of vt)Rr.flags|=33554432;return Tf(33554432,()=>B$(ge,Ke,vt))}else return B$(ge,Ke,vt)}function j$(ge){return Tf(33554432,()=>{let Ke=jf(ou,ge);if(Ke)return _4(Ke)})}function B$(ge,Ke,vt){switch(qe()){case 115:case 121:case 87:case 160:case 135:return $I(ge,Ke,vt);case 100:return UI(ge,Ke,vt);case 86:return kx(ge,Ke,vt);case 120:return zI(ge,Ke,vt);case 156:return qs(ge,Ke,vt);case 94:return _0(ge,Ke,vt);case 162:case 144:case 145:return W$(ge,Ke,vt);case 102:return RT(ge,Ke,vt);case 95:switch(bi(),qe()){case 90:case 64:return rG(ge,Ke,vt);case 130:return AR(ge,Ke,vt);default:return tG(ge,Ke,vt)}default:if(vt){let nr=fy(283,!0,_n.Declaration_expected);return mYe(nr,ge),nr.modifiers=vt,nr}return}}function $$(){return bi()===11}function M1(){return bi(),qe()===161||qe()===64}function ug(){return bi(),!r.hasPrecedingLineBreak()&&(Ni()||qe()===11)}function rA(ge,Ke){if(qe()!==19){if(ge&4){Jm();return}if(Ng()){qm();return}}return jI(ge,Ke)}function WW(){let ge=Jn();if(qe()===28)return Br(L.createOmittedExpression(),ge);let Ke=em(26),vt=Ex(),nr=eE();return Br(L.createBindingElement(Ke,void 0,vt,nr),ge)}function lh(){let ge=Jn(),Ke=em(26),vt=Ll(),nr=Fk(),Rr;vt&&qe()!==59?(Rr=nr,nr=void 0):(Kn(59),Rr=Ex());let kn=eE();return Br(L.createBindingElement(Ke,nr,Rr,kn),ge)}function BI(){let ge=Jn();Kn(19);let Ke=or(()=>_b(9,lh));return Kn(20),Br(L.createObjectBindingPattern(Ke),ge)}function Vk(){let ge=Jn();Kn(23);let Ke=or(()=>_b(10,WW));return Kn(24),Br(L.createArrayBindingPattern(Ke),ge)}function FT(){return qe()===19||qe()===23||qe()===81||Ll()}function Ex(ge){return qe()===23?Vk():qe()===19?BI():JD(ge)}function CO(){return I(!0)}function I(ge){let Ke=Jn(),vt=so(),nr=Ex(_n.Private_identifiers_are_not_allowed_in_variable_declarations),Rr;ge&&nr.kind===80&&qe()===54&&!r.hasPrecedingLineBreak()&&(Rr=pd());let kn=X2(),Xn=pR(qe())?void 0:eE(),Da=Zo(nr,Rr,kn,Xn);return Bc(Br(Da,Ke),vt)}function x(ge){let Ke=Jn(),vt=0;switch(qe()){case 115:break;case 121:vt|=1;break;case 87:vt|=2;break;case 160:vt|=4;break;case 135:Pi.assert(Tx()),vt|=6,bi();break;default:Pi.fail()}bi();let nr;if(qe()===165&&Qi(Bf))nr=jk();else{let Rr=rs();En(ge),nr=_b(8,ge?I:CO),En(Rr)}return Br(Rc(nr,vt),Ke)}function Bf(){return pb()&&bi()===22}function $I(ge,Ke,vt){let nr=x(!1);qm();let Rr=Lo(vt,nr);return Bc(Br(Rr,ge),Ke)}function UI(ge,Ke,vt){let nr=eu(),Rr=ID(vt);Kn(100);let kn=em(42),Xn=Rr&2048?XD():JD(),Da=kn?1:0,jo=Rr&1024?2:0,Ao=Py();Rr&32&&zd(!0);let Ha=jl(Da|jo),su=Z0(59,!1),Hl=rA(Da|jo,_n.or_expected);zd(nr);let dl=L.createFunctionDeclaration(vt,kn,Xn,Ao,Ha,su,Hl);return Bc(Br(dl,ge),Ke)}function Ete(){if(qe()===137)return Kn(137);if(qe()===11&&Qi(bi)===21)return Zn(()=>{let ge=PT();return ge.text==="constructor"?ge:void 0})}function U$(ge,Ke,vt){return Zn(()=>{if(Ete()){let nr=Py(),Rr=jl(0),kn=Z0(59,!1),Xn=rA(0,_n.or_expected),Da=L.createConstructorDeclaration(vt,Rr,Xn);return Da.typeParameters=nr,Da.type=kn,Bc(Br(Da,ge),Ke)}})}function z$(ge,Ke,vt,nr,Rr,kn,Xn,Da){let jo=nr?1:0,Ao=sx(vt,cDe)?2:0,Ha=Py(),su=jl(jo|Ao),Hl=Z0(59,!1),dl=rA(jo|Ao,Da),$1=L.createMethodDeclaration(vt,nr,Rr,kn,Ha,su,Hl,dl);return $1.exclamationToken=Xn,Bc(Br($1,ge),Ke)}function kR(ge,Ke,vt,nr,Rr){let kn=!Rr&&!r.hasPrecedingLineBreak()?em(54):void 0,Xn=X2(),Da=pu(90112,eE);AT(nr,Xn,Da);let jo=L.createPropertyDeclaration(vt,nr,Rr||kn,Xn,Da);return Bc(Br(jo,ge),Ke)}function q$(ge,Ke,vt){let nr=em(42),Rr=Fk(),kn=em(58);return nr||qe()===21||qe()===30?z$(ge,Ke,vt,nr,Rr,kn,void 0,_n.or_expected):kR(ge,Ke,vt,Rr,kn)}function E4(ge,Ke,vt,nr,Rr){let kn=Fk(),Xn=Py(),Da=jl(0),jo=Z0(59,!1),Ao=rA(Rr),Ha=nr===178?L.createGetAccessorDeclaration(vt,kn,Da,jo,Ao):L.createSetAccessorDeclaration(vt,kn,Da,Ao);return Ha.typeParameters=Xn,EDe(Ha)&&(Ha.type=jo),Bc(Br(Ha,ge),Ke)}function GW(){let ge;if(qe()===60)return!0;for(;W5(qe());){if(ge=qe(),Gon(ge))return!0;bi()}if(qe()===42||(VD()&&(ge=qe(),bi()),qe()===23))return!0;if(ge!==void 0){if(!dB(ge)||ge===153||ge===139)return!0;switch(qe()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return Ng()}}return!1}function kte(ge,Ke,vt){Ts(126);let nr=Cte(),Rr=Bc(Br(L.createClassStaticBlockDeclaration(nr),ge),Ke);return Rr.modifiers=vt,Rr}function Cte(){let ge=pc(),Ke=eu();Zc(!1),zd(!0);let vt=qd(!1);return Zc(ge),zd(Ke),vt}function HW(){if(eu()&&qe()===135){let ge=Jn(),Ke=Sm(_n.Expression_expected);bi();let vt=Oy(ge,Ke,!0);return TO(ge,vt)}return FI()}function KW(){let ge=Jn();if(!Wl(60))return;let Ke=Gu(HW);return Br(L.createDecorator(Ke),ge)}function k4(ge,Ke,vt){let nr=Jn(),Rr=qe();if(qe()===87&&Ke){if(!Zn(cS))return}else if(vt&&qe()===126&&Qi(D4)||ge&&qe()===126||!Lk())return;return Br(Je(Rr),nr)}function fv(ge,Ke,vt){let nr=Jn(),Rr,kn,Xn,Da=!1,jo=!1,Ao=!1;if(ge&&qe()===60)for(;kn=KW();)Rr=bk(Rr,kn);for(;Xn=k4(Da,Ke,vt);)Xn.kind===126&&(Da=!0),Rr=bk(Rr,Xn),jo=!0;if(jo&&ge&&qe()===60)for(;kn=KW();)Rr=bk(Rr,kn),Ao=!0;if(Ao)for(;Xn=k4(Da,Ke,vt);)Xn.kind===126&&(Da=!0),Rr=bk(Rr,Xn);return Rr&&cg(Rr,nr)}function QW(){let ge;if(qe()===134){let Ke=Jn();bi();let vt=Br(Je(134),Ke);ge=cg([vt],Ke)}return ge}function J$(){let ge=Jn(),Ke=so();if(qe()===27)return bi(),Bc(Br(L.createSemicolonClassElement(),ge),Ke);let vt=fv(!0,!0,!0);if(qe()===126&&Qi(D4))return kte(ge,Ke,vt);if(WD(139))return E4(ge,Ke,vt,178,0);if(WD(153))return E4(ge,Ke,vt,179,0);if(qe()===137||qe()===11){let nr=U$(ge,Ke,vt);if(nr)return nr}if(fb())return j9(ge,Ke,vt);if(cy(qe())||qe()===11||qe()===9||qe()===10||qe()===42||qe()===23)if(sx(vt,T4)){for(let nr of vt)nr.flags|=33554432;return Tf(33554432,()=>q$(ge,Ke,vt))}else return q$(ge,Ke,vt);if(vt){let nr=fy(80,!0,_n.Declaration_expected);return kR(ge,Ke,vt,nr,void 0)}return Pi.fail("Should not have attempted to parse class member declaration.")}function Dte(){let ge=Jn(),Ke=so(),vt=fv(!0);if(qe()===86)return V$(ge,Ke,vt,232);let nr=fy(283,!0,_n.Expression_expected);return mYe(nr,ge),nr.modifiers=vt,nr}function Zs(){return V$(Jn(),so(),void 0,232)}function kx(ge,Ke,vt){return V$(ge,Ke,vt,264)}function V$(ge,Ke,vt,nr){let Rr=eu();Kn(86);let kn=ZW(),Xn=Py();sx(vt,Zsn)&&zd(!0);let Da=oE(),jo;Kn(19)?(jo=nA(),Kn(20)):jo=jk(),zd(Rr);let Ao=nr===264?L.createClassDeclaration(vt,kn,Xn,Da,jo):L.createClassExpression(vt,kn,Xn,Da,jo);return Bc(Br(Ao,ge),Ke)}function ZW(){return Ll()&&!DO()?bx(Ll()):void 0}function DO(){return qe()===119&&Qi(dte)}function oE(){if(aE())return L1(22,C4)}function C4(){let ge=Jn(),Ke=qe();Pi.assert(Ke===96||Ke===119),bi();let vt=_b(7,AO);return Br(L.createHeritageClause(Ke,vt),ge)}function AO(){let ge=Jn(),Ke=FI();if(Ke.kind===234)return Ke;let vt=Ry();return Br(L.createExpressionWithTypeArguments(Ke,vt),ge)}function Ry(){return qe()===30?HD(20,nf,30,32):void 0}function aE(){return qe()===96||qe()===119}function nA(){return L1(5,J$)}function zI(ge,Ke,vt){Kn(120);let nr=Sm(),Rr=Py(),kn=oE(),Xn=$9(),Da=L.createInterfaceDeclaration(vt,nr,Rr,kn,Xn);return Bc(Br(Da,ge),Ke)}function qs(ge,Ke,vt){Kn(156),r.hasPrecedingLineBreak()&&Ho(_n.Line_break_not_permitted_here);let nr=Sm(),Rr=Py();Kn(64);let kn=qe()===141&&Zn(G9)||nf();qm();let Xn=L.createTypeAliasDeclaration(vt,nr,Rr,kn);return Bc(Br(Xn,ge),Ke)}function p0(){let ge=Jn(),Ke=so(),vt=Fk(),nr=or(eE);return Bc(Br(L.createEnumMember(vt,nr),ge),Ke)}function _0(ge,Ke,vt){Kn(94);let nr=Sm(),Rr;Kn(19)?(Rr=us(()=>_b(6,p0)),Kn(20)):Rr=jk();let kn=L.createEnumDeclaration(vt,nr,Rr);return Bc(Br(kn,ge),Ke)}function Dd(){let ge=Jn(),Ke;return Kn(19)?(Ke=L1(1,Og),Kn(20)):Ke=jk(),Br(L.createModuleBlock(Ke),ge)}function Wk(ge,Ke,vt,nr){let Rr=nr&32,kn=nr&8?Su():Sm(),Xn=Wl(25)?Wk(Jn(),!1,void 0,8|Rr):Dd(),Da=L.createModuleDeclaration(vt,kn,Xn,nr);return Bc(Br(Da,ge),Ke)}function CR(ge,Ke,vt){let nr=0,Rr;qe()===162?(Rr=Sm(),nr|=2048):(Rr=PT(),Rr.text=Q2(Rr.text));let kn;qe()===19?kn=Dd():qm();let Xn=L.createModuleDeclaration(vt,Rr,kn,nr);return Bc(Br(Xn,ge),Ke)}function W$(ge,Ke,vt){let nr=0;if(qe()===162)return CR(ge,Ke,vt);if(Wl(145))nr|=32;else if(Kn(144),qe()===11)return CR(ge,Ke,vt);return Wk(ge,Ke,vt,nr)}function XW(){return qe()===149&&Qi(DR)}function DR(){return bi()===21}function D4(){return bi()===19}function _c(){return bi()===44}function AR(ge,Ke,vt){Kn(130),Kn(145);let nr=Sm();qm();let Rr=L.createNamespaceExportDeclaration(nr);return Rr.modifiers=vt,Bc(Br(Rr,ge),Ke)}function RT(ge,Ke,vt){Kn(102);let nr=r.getTokenFullStart(),Rr;Ni()&&(Rr=Sm());let kn;if(Rr?.escapedText==="type"&&(qe()!==161||Ni()&&Qi(M1))&&(Ni()||sE())?(kn=156,Rr=Ni()?Sm():void 0):Rr?.escapedText==="defer"&&(qe()===161?!Qi($$):qe()!==28&&qe()!==64)&&(kn=166,Rr=Ni()?Sm():void 0),Rr&&!A4()&&kn!==166)return w4(ge,Ke,vt,Rr,kn===156);let Xn=qI(Rr,nr,kn,void 0),Da=my(),jo=wR();qm();let Ao=L.createImportDeclaration(vt,Xn,Da,jo);return Bc(Br(Ao,ge),Ke)}function qI(ge,Ke,vt,nr=!1){let Rr;return(ge||qe()===42||qe()===19)&&(Rr=G$(ge,Ke,vt,nr),Kn(161)),Rr}function wR(){let ge=qe();if((ge===118||ge===132)&&!r.hasPrecedingLineBreak())return IR(ge)}function YW(){let ge=Jn(),Ke=cy(qe())?Su():bm(11);Kn(59);let vt=Ny(!0);return Br(L.createImportAttribute(Ke,vt),ge)}function IR(ge,Ke){let vt=Jn();Ke||Kn(ge);let nr=r.getTokenStart();if(Kn(19)){let Rr=r.hasPrecedingLineBreak(),kn=_b(24,YW,!0);if(!Kn(20)){let Xn=oee(Na);Xn&&Xn.code===_n._0_expected.code&&oDe(Xn,HY(an,li,nr,1,_n.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Br(L.createImportAttributes(kn,Rr,ge),vt)}else{let Rr=cg([],Jn(),void 0,!1);return Br(L.createImportAttributes(Rr,!1,ge),vt)}}function sE(){return qe()===42||qe()===19}function A4(){return qe()===28||qe()===161}function w4(ge,Ke,vt,nr,Rr){Kn(64);let kn=JI();qm();let Xn=L.createImportEqualsDeclaration(vt,Rr,nr,kn);return Bc(Br(Xn,ge),Ke)}function G$(ge,Ke,vt,nr){let Rr;return(!ge||Wl(28))&&(nr&&r.setSkipJsDocLeadingAsterisks(!0),qe()===42?Rr=hb():Rr=j1(276),nr&&r.setSkipJsDocLeadingAsterisks(!1)),Br(L.createImportClause(vt,ge,Rr),Ke)}function JI(){return XW()?eG():Bk(!1)}function eG(){let ge=Jn();Kn(149),Kn(21);let Ke=my();return Kn(22),Br(L.createExternalModuleReference(Ke),ge)}function my(){if(qe()===11){let ge=PT();return ge.text=Q2(ge.text),ge}else return Vm()}function hb(){let ge=Jn();Kn(42),Kn(130);let Ke=Sm();return Br(L.createNamespaceImport(Ke),ge)}function VI(){return cy(qe())||qe()===11}function pg(ge){return qe()===11?PT():ge()}function j1(ge){let Ke=Jn(),vt=ge===276?L.createNamedImports(HD(23,B1,19,20)):L.createNamedExports(HD(23,Jd,19,20));return Br(vt,Ke)}function Jd(){let ge=so();return Bc(iA(282),ge)}function B1(){return iA(277)}function iA(ge){let Ke=Jn(),vt=dB(qe())&&!Ni(),nr=r.getTokenStart(),Rr=r.getTokenEnd(),kn=!1,Xn,Da=!0,jo=pg(Su);if(jo.kind===80&&jo.escapedText==="type")if(qe()===130){let su=Su();if(qe()===130){let Hl=Su();VI()?(kn=!0,Xn=su,jo=pg(Ha),Da=!1):(Xn=jo,jo=Hl,Da=!1)}else VI()?(Xn=jo,Da=!1,jo=pg(Ha)):(kn=!0,jo=su)}else VI()&&(kn=!0,jo=pg(Ha));Da&&qe()===130&&(Xn=jo,Kn(130),jo=pg(Ha)),ge===277&&(jo.kind!==80?(Lu(b8(li,jo.pos),jo.end,_n.Identifier_expected),jo=gB(fy(80,!1),jo.pos,jo.pos)):vt&&Lu(nr,Rr,_n.Identifier_expected));let Ao=ge===277?L.createImportSpecifier(kn,Xn,jo):L.createExportSpecifier(kn,Xn,jo);return Br(Ao,Ke);function Ha(){return vt=dB(qe())&&!Ni(),nr=r.getTokenStart(),Rr=r.getTokenEnd(),Su()}}function Ly(ge){return Br(L.createNamespaceExport(pg(Su)),ge)}function tG(ge,Ke,vt){let nr=eu();zd(!0);let Rr,kn,Xn,Da=Wl(156),jo=Jn();Wl(42)?(Wl(130)&&(Rr=Ly(jo)),Kn(161),kn=my()):(Rr=j1(280),(qe()===161||qe()===11&&!r.hasPrecedingLineBreak())&&(Kn(161),kn=my()));let Ao=qe();kn&&(Ao===118||Ao===132)&&!r.hasPrecedingLineBreak()&&(Xn=IR(Ao)),qm(),zd(nr);let Ha=L.createExportDeclaration(vt,Da,Rr,kn,Xn);return Bc(Br(Ha,ge),Ke)}function rG(ge,Ke,vt){let nr=eu();zd(!0);let Rr;Wl(64)?Rr=!0:Kn(90);let kn=Ny(!0);qm(),zd(nr);let Xn=L.createExportAssignment(vt,Rr,kn);return Bc(Br(Xn,ge),Ke)}let Gk;(ge=>{ge[ge.SourceElements=0]="SourceElements",ge[ge.BlockStatements=1]="BlockStatements",ge[ge.SwitchClauses=2]="SwitchClauses",ge[ge.SwitchClauseStatements=3]="SwitchClauseStatements",ge[ge.TypeMembers=4]="TypeMembers",ge[ge.ClassMembers=5]="ClassMembers",ge[ge.EnumMembers=6]="EnumMembers",ge[ge.HeritageClauseElement=7]="HeritageClauseElement",ge[ge.VariableDeclarations=8]="VariableDeclarations",ge[ge.ObjectBindingElements=9]="ObjectBindingElements",ge[ge.ArrayBindingElements=10]="ArrayBindingElements",ge[ge.ArgumentExpressions=11]="ArgumentExpressions",ge[ge.ObjectLiteralMembers=12]="ObjectLiteralMembers",ge[ge.JsxAttributes=13]="JsxAttributes",ge[ge.JsxChildren=14]="JsxChildren",ge[ge.ArrayLiteralMembers=15]="ArrayLiteralMembers",ge[ge.Parameters=16]="Parameters",ge[ge.JSDocParameters=17]="JSDocParameters",ge[ge.RestProperties=18]="RestProperties",ge[ge.TypeParameters=19]="TypeParameters",ge[ge.TypeArguments=20]="TypeArguments",ge[ge.TupleElementTypes=21]="TupleElementTypes",ge[ge.HeritageClauses=22]="HeritageClauses",ge[ge.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",ge[ge.ImportAttributes=24]="ImportAttributes",ge[ge.JSDocComment=25]="JSDocComment",ge[ge.Count=26]="Count"})(Gk||(Gk={}));let H$;(ge=>{ge[ge.False=0]="False",ge[ge.True=1]="True",ge[ge.Unknown=2]="Unknown"})(H$||(H$={}));let K$;(ge=>{function Ke(Ao,Ha,su){dy("file.js",Ao,99,void 0,1,0),r.setText(Ao,Ha,su),Sc=r.scan();let Hl=vt(),dl=ea("file.js",99,1,!1,[],Je(1),0,pee),$1=bV(Na,dl);return hs&&(dl.jsDocDiagnostics=bV(hs,dl)),vm(),Hl?{jsDocTypeExpression:Hl,diagnostics:$1}:void 0}ge.parseJSDocTypeExpressionForTests=Ke;function vt(Ao){let Ha=Jn(),su=(Ao?Wl:Kn)(19),Hl=Tf(16777216,nO);(!Ao||su)&&Sx(20);let dl=L.createJSDocTypeExpression(Hl);return jt(dl),Br(dl,Ha)}ge.parseJSDocTypeExpression=vt;function nr(){let Ao=Jn(),Ha=Wl(19),su=Jn(),Hl=Bk(!1);for(;qe()===81;)ja(),tu(),Hl=Br(L.createJSDocMemberName(Hl,Sm()),su);Ha&&Sx(20);let dl=L.createJSDocNameReference(Hl);return jt(dl),Br(dl,Ao)}ge.parseJSDocNameReference=nr;function Rr(Ao,Ha,su){dy("",Ao,99,void 0,1,0);let Hl=Tf(16777216,()=>jo(Ha,su)),dl=bV(Na,{languageVariant:0,text:Ao});return vm(),Hl?{jsDoc:Hl,diagnostics:dl}:void 0}ge.parseIsolatedJSDocComment=Rr;function kn(Ao,Ha,su){let Hl=Sc,dl=Na.length,$1=Rh,Fg=Tf(16777216,()=>jo(Ha,su));return XYe(Fg,Ao),mc&524288&&(hs||(hs=[]),Tk(hs,Na,dl)),Sc=Hl,Na.length=dl,Rh=$1,Fg}ge.parseJSDocComment=kn;let Xn;(Ao=>{Ao[Ao.BeginningOfLine=0]="BeginningOfLine",Ao[Ao.SawAsterisk=1]="SawAsterisk",Ao[Ao.SavingComments=2]="SavingComments",Ao[Ao.SavingBackticks=3]="SavingBackticks"})(Xn||(Xn={}));let Da;(Ao=>{Ao[Ao.Property=1]="Property",Ao[Ao.Parameter=2]="Parameter",Ao[Ao.CallbackParameter=4]="CallbackParameter"})(Da||(Da={}));function jo(Ao=0,Ha){let su=li,Hl=Ha===void 0?su.length:Ao+Ha;if(Ha=Hl-Ao,Pi.assert(Ao>=0),Pi.assert(Ao<=Hl),Pi.assert(Hl<=su.length),!mln(su,Ao))return;let dl,$1,Fg,_S,dS,gb=[],Hk=[],fl=ou;ou|=1<<25;let D_=r.scanRange(Ao+3,Ha-5,Jp);return ou=fl,D_;function Jp(){let Ln=1,ao,lo=Ao-(su.lastIndexOf(` +`,Ao)+1)+4;function aa(cu){ao||(ao=lo),gb.push(cu),lo+=cu.length}for(tu();N4(5););N4(4)&&(Ln=0,lo=0);e:for(;;){switch(qe()){case 60:WI(gb),dS||(dS=Jn()),_u(w(lo)),Ln=0,ao=void 0;break;case 4:gb.push(r.getTokenText()),Ln=0,lo=0;break;case 42:let cu=r.getTokenText();Ln===1?(Ln=2,aa(cu)):(Pi.assert(Ln===0),Ln=1,lo+=cu.length);break;case 5:Pi.assert(Ln!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let kf=r.getTokenText();ao!==void 0&&lo+kf.length>ao&&gb.push(kf.slice(ao-lo)),lo+=kf.length;break;case 1:break e;case 82:Ln=2,aa(r.getTokenValue());break;case 19:Ln=2;let U1=r.getTokenFullStart(),d0=r.getTokenEnd()-1,Y0=Ie(d0);if(Y0){_S||Hu(gb),Hk.push(Br(L.createJSDocText(gb.join("")),_S??Ao,U1)),Hk.push(Y0),gb=[],_S=r.getTokenEnd();break}default:Ln=2,aa(r.getTokenText());break}Ln===2?Pg(!1):tu()}let ta=gb.join("").trimEnd();Hk.length&&ta.length&&Hk.push(Br(L.createJSDocText(ta),_S??Ao,dS)),Hk.length&&dl&&Pi.assertIsDefined(dS,"having parsed tags implies that the end of the comment span should be set");let ml=dl&&cg(dl,$1,Fg);return Br(L.createJSDocComment(Hk.length?cg(Hk,Ao,dS):ta.length?ta:void 0,ml),Ao,Hl)}function Hu(Ln){for(;Ln.length&&(Ln[0]===` +`||Ln[0]==="\r");)Ln.shift()}function WI(Ln){for(;Ln.length;){let ao=Ln[Ln.length-1].trimEnd();if(ao==="")Ln.pop();else if(ao.lengthkf&&(aa.push(LT.slice(kf-Ln)),cu=2),Ln+=LT.length;break;case 19:cu=2;let IO=r.getTokenFullStart(),mv=r.getTokenEnd()-1,hv=Ie(mv);hv?(ta.push(Br(L.createJSDocText(aa.join("")),ml??lo,IO)),ta.push(hv),aa=[],ml=r.getTokenEnd()):U1(r.getTokenText());break;case 62:cu===3?cu=2:cu=3,U1(r.getTokenText());break;case 82:cu!==3&&(cu=2),U1(r.getTokenValue());break;case 42:if(cu===0){cu=1,Ln+=1;break}default:cu!==3&&(cu=2),U1(r.getTokenText());break}cu===2||cu===3?d0=Pg(cu===3):d0=tu()}Hu(aa);let Y0=aa.join("").trimEnd();if(ta.length)return Y0.length&&ta.push(Br(L.createJSDocText(Y0),ml??lo)),cg(ta,lo,r.getTokenEnd());if(Y0.length)return Y0}function Ie(Ln){let ao=Zn(Pr);if(!ao)return;tu(),X0();let lo=bt(),aa=[];for(;qe()!==20&&qe()!==4&&qe()!==1;)aa.push(r.getTokenText()),tu();let ta=ao==="link"?L.createJSDocLink:ao==="linkcode"?L.createJSDocLinkCode:L.createJSDocLinkPlain;return Br(ta(lo,aa.join("")),Ln,r.getTokenEnd())}function bt(){if(cy(qe())){let Ln=Jn(),ao=Su();for(;Wl(25);)ao=Br(L.createQualifiedName(ao,qe()===81?fy(80,!1):Su()),Ln);for(;qe()===81;)ja(),tu(),ao=Br(L.createJSDocMemberName(ao,Sm()),Ln);return ao}}function Pr(){if(_i(),qe()===19&&tu()===60&&cy(tu())){let Ln=r.getTokenValue();if(Ri(Ln))return Ln}}function Ri(Ln){return Ln==="link"||Ln==="linkcode"||Ln==="linkplain"}function Ra(Ln,ao,lo,aa){return Br(L.createJSDocUnknownTag(ao,z(Ln,Jn(),lo,aa)),Ln)}function _u(Ln){Ln&&(dl?dl.push(Ln):(dl=[Ln],$1=Ln.pos),Fg=Ln.end)}function dd(){return _i(),qe()===19?vt():void 0}function Kk(){let Ln=N4(23);Ln&&X0();let ao=N4(62),lo=Rte();return ao&&Ef(62),Ln&&(X0(),em(64)&&Vm(),Kn(24)),{name:lo,isBracketed:Ln}}function fS(Ln){switch(Ln.kind){case 151:return!0;case 189:return fS(Ln.elementType);default:return lUt(Ln)&&Kd(Ln.typeName)&&Ln.typeName.escapedText==="Object"&&!Ln.typeArguments}}function oA(Ln,ao,lo,aa){let ta=dd(),ml=!ta;_i();let{name:cu,isBracketed:kf}=Kk(),U1=_i();ml&&!Qi(Pr)&&(ta=dd());let d0=z(Ln,Jn(),aa,U1),Y0=Ku(ta,cu,lo,aa);Y0&&(ta=Y0,ml=!0);let LT=lo===1?L.createJSDocPropertyTag(ao,cu,kf,ta,ml,d0):L.createJSDocParameterTag(ao,cu,kf,ta,ml,d0);return Br(LT,Ln)}function Ku(Ln,ao,lo,aa){if(Ln&&fS(Ln.type)){let ta=Jn(),ml,cu;for(;ml=Zn(()=>Z$(lo,aa,ao));)ml.kind===342||ml.kind===349?cu=bk(cu,ml):ml.kind===346&&aS(ml.tagName,_n.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(cu){let kf=Br(L.createJSDocTypeLiteral(cu,Ln.type.kind===189),ta);return Br(L.createJSDocTypeExpression(kf),ta)}}}function fn(Ln,ao,lo,aa){sx(dl,eln)&&Lu(ao.pos,r.getTokenStart(),_n._0_tag_already_specified,l_e(ao.escapedText));let ta=dd();return Br(L.createJSDocReturnTag(ao,ta,z(Ln,Jn(),lo,aa)),Ln)}function I4(Ln,ao,lo,aa){sx(dl,net)&&Lu(ao.pos,r.getTokenStart(),_n._0_tag_already_specified,l_e(ao.escapedText));let ta=vt(!0),ml=lo!==void 0&&aa!==void 0?z(Ln,Jn(),lo,aa):void 0;return Br(L.createJSDocTypeTag(ao,ta,ml),Ln)}function vs(Ln,ao,lo,aa){let ta=qe()===23||Qi(()=>tu()===60&&cy(tu())&&Ri(r.getTokenValue()))?void 0:nr(),ml=lo!==void 0&&aa!==void 0?z(Ln,Jn(),lo,aa):void 0;return Br(L.createJSDocSeeTag(ao,ta,ml),Ln)}function dp(Ln,ao,lo,aa){let ta=dd(),ml=z(Ln,Jn(),lo,aa);return Br(L.createJSDocThrowsTag(ao,ta,ml),Ln)}function oa(Ln,ao,lo,aa){let ta=Jn(),ml=Zi(),cu=r.getTokenFullStart(),kf=z(Ln,cu,lo,aa);kf||(cu=r.getTokenFullStart());let U1=typeof kf!="string"?cg(IYe([Br(ml,ta,cu)],kf),ta):ml.text+kf;return Br(L.createJSDocAuthorTag(ao,U1),Ln)}function Zi(){let Ln=[],ao=!1,lo=r.getToken();for(;lo!==1&&lo!==4;){if(lo===30)ao=!0;else{if(lo===60&&!ao)break;if(lo===32&&ao){Ln.push(r.getTokenText()),r.resetTokenState(r.getTokenEnd());break}}Ln.push(r.getTokenText()),lo=tu()}return L.createJSDocText(Ln.join(""))}function aA(Ln,ao,lo,aa){let ta=wO();return Br(L.createJSDocImplementsTag(ao,ta,z(Ln,Jn(),lo,aa)),Ln)}function vp(Ln,ao,lo,aa){let ta=wO();return Br(L.createJSDocAugmentsTag(ao,ta,z(Ln,Jn(),lo,aa)),Ln)}function Zfe(Ln,ao,lo,aa){let ta=vt(!1),ml=lo!==void 0&&aa!==void 0?z(Ln,Jn(),lo,aa):void 0;return Br(L.createJSDocSatisfiesTag(ao,ta,ml),Ln)}function nG(Ln,ao,lo,aa){let ta=r.getTokenFullStart(),ml;Ni()&&(ml=Sm());let cu=qI(ml,ta,156,!0),kf=my(),U1=wR(),d0=lo!==void 0&&aa!==void 0?z(Ln,Jn(),lo,aa):void 0;return Br(L.createJSDocImportTag(ao,cu,kf,U1,d0),Ln)}function wO(){let Ln=Wl(19),ao=Jn(),lo=Ate();r.setSkipJsDocLeadingAsterisks(!0);let aa=Ry();r.setSkipJsDocLeadingAsterisks(!1);let ta=L.createExpressionWithTypeArguments(lo,aa),ml=Br(ta,ao);return Ln&&(X0(),Kn(20)),ml}function Ate(){let Ln=Jn(),ao=GI();for(;Wl(25);){let lo=GI();ao=Br(xt(ao,lo),Ln)}return ao}function Vp(Ln,ao,lo,aa,ta){return Br(ao(lo,z(Ln,Jn(),aa,ta)),Ln)}function PR(Ln,ao,lo,aa){let ta=vt(!0);return X0(),Br(L.createJSDocThisTag(ao,ta,z(Ln,Jn(),lo,aa)),Ln)}function cs(Ln,ao,lo,aa){let ta=vt(!0);return X0(),Br(L.createJSDocEnumTag(ao,ta,z(Ln,Jn(),lo,aa)),Ln)}function Q$(Ln,ao,lo,aa){let ta=dd();_i();let ml=yb();X0();let cu=ne(lo),kf;if(!ta||fS(ta.type)){let d0,Y0,LT,IO=!1;for(;(d0=Zn(()=>Pte(lo)))&&d0.kind!==346;)if(IO=!0,d0.kind===345)if(Y0){let mv=Ho(_n.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);mv&&oDe(mv,HY(an,li,0,0,_n.The_tag_was_first_specified_here));break}else Y0=d0;else LT=bk(LT,d0);if(IO){let mv=ta&&ta.type.kind===189,hv=L.createJSDocTypeLiteral(LT,mv);ta=Y0&&Y0.typeExpression&&!fS(Y0.typeExpression.type)?Y0.typeExpression:Br(hv,Ln),kf=ta.end}}kf=kf||cu!==void 0?Jn():(ml??ta??ao).end,cu||(cu=z(Ln,kf,lo,aa));let U1=L.createJSDocTypedefTag(ao,ta,ml,cu);return Br(U1,Ln,kf)}function yb(Ln){let ao=r.getTokenStart();if(!cy(qe()))return;let lo=GI();if(Wl(25)){let aa=yb(!0),ta=L.createModuleDeclaration(void 0,lo,aa,Ln?8:void 0);return Br(ta,ao)}return Ln&&(lo.flags|=4096),lo}function Qk(Ln){let ao=Jn(),lo,aa;for(;lo=Zn(()=>Z$(4,Ln));){if(lo.kind===346){aS(lo.tagName,_n.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}aa=bk(aa,lo)}return cg(aa||[],ao)}function wte(Ln,ao){let lo=Qk(ao),aa=Zn(()=>{if(N4(60)){let ta=w(ao);if(ta&&ta.kind===343)return ta}});return Br(L.createJSDocSignature(void 0,lo,aa),Ln)}function P4(Ln,ao,lo,aa){let ta=yb();X0();let ml=ne(lo),cu=wte(Ln,lo);ml||(ml=z(Ln,Jn(),lo,aa));let kf=ml!==void 0?Jn():cu.end;return Br(L.createJSDocCallbackTag(ao,cu,ta,ml),Ln,kf)}function Ite(Ln,ao,lo,aa){X0();let ta=ne(lo),ml=wte(Ln,lo);ta||(ta=z(Ln,Jn(),lo,aa));let cu=ta!==void 0?Jn():ml.end;return Br(L.createJSDocOverloadTag(ao,ml,ta),Ln,cu)}function Xfe(Ln,ao){for(;!Kd(Ln)||!Kd(ao);)if(!Kd(Ln)&&!Kd(ao)&&Ln.right.escapedText===ao.right.escapedText)Ln=Ln.left,ao=ao.left;else return!1;return Ln.escapedText===ao.escapedText}function Pte(Ln){return Z$(1,Ln)}function Z$(Ln,ao,lo){let aa=!0,ta=!1;for(;;)switch(tu()){case 60:if(aa){let ml=Nte(Ln,ao);return ml&&(ml.kind===342||ml.kind===349)&&lo&&(Kd(ml.name)||!Xfe(lo,ml.name.left))?!1:ml}ta=!1;break;case 4:aa=!0,ta=!1;break;case 42:ta&&(aa=!1),ta=!0;break;case 80:aa=!1;break;case 1:return!1}}function Nte(Ln,ao){Pi.assert(qe()===60);let lo=r.getTokenFullStart();tu();let aa=GI(),ta=_i(),ml;switch(aa.escapedText){case"type":return Ln===1&&I4(lo,aa);case"prop":case"property":ml=1;break;case"arg":case"argument":case"param":ml=6;break;case"template":return X$(lo,aa,ao,ta);case"this":return PR(lo,aa,ao,ta);default:return!1}return Ln&ml?oA(lo,aa,Ln,ao):!1}function Ote(){let Ln=Jn(),ao=N4(23);ao&&X0();let lo=fv(!1,!0),aa=GI(_n.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),ta;if(ao&&(X0(),Kn(64),ta=Tf(16777216,nO),Kn(24)),!wV(aa))return Br(L.createTypeParameterDeclaration(lo,aa,void 0,ta),Ln)}function Fte(){let Ln=Jn(),ao=[];do{X0();let lo=Ote();lo!==void 0&&ao.push(lo),_i()}while(N4(28));return cg(ao,Ln)}function X$(Ln,ao,lo,aa){let ta=qe()===19?vt():void 0,ml=Fte();return Br(L.createJSDocTemplateTag(ao,ta,ml,z(Ln,Jn(),lo,aa)),Ln)}function N4(Ln){return qe()===Ln?(tu(),!0):!1}function Rte(){let Ln=GI();for(Wl(23)&&Kn(24);Wl(25);){let ao=GI();Wl(23)&&Kn(24),Ln=Iy(Ln,ao)}return Ln}function GI(Ln){if(!cy(qe()))return fy(80,!Ln,Ln||_n.Identifier_expected);Pt++;let ao=r.getTokenStart(),lo=r.getTokenEnd(),aa=qe(),ta=Q2(r.getTokenValue()),ml=Br(X(ta,aa),ao,lo);return tu(),ml}}})(K$=e.JSDocParser||(e.JSDocParser={}))})(PV||(PV={}));var UBt=new WeakSet;function Dln(e){UBt.has(e)&&Pi.fail("Source file has already been incrementally parsed"),UBt.add(e)}var OUt=new WeakSet;function Aln(e){return OUt.has(e)}function bYe(e){OUt.add(e)}var CDe;(e=>{function r(ie,te,X,Re){if(Re=Re||Pi.shouldAssert(2),L(ie,te,X,Re),gon(X))return ie;if(ie.statements.length===0)return PV.parseSourceFile(ie.fileName,te,ie.languageVersion,void 0,!0,ie.scriptKind,ie.setExternalModuleIndicator,ie.jsDocParsingMode);Dln(ie),PV.fixupParentReferences(ie);let Je=ie.text,pt=V(ie),$e=b(ie,X);L(ie,te,$e,Re),Pi.assert($e.span.start<=X.span.start),Pi.assert(v8($e.span)===v8(X.span)),Pi.assert(v8(Wpe($e))===v8(Wpe(X)));let xt=Wpe($e).length-$e.span.length;S(ie,$e.span.start,v8($e.span),v8(Wpe($e)),xt,Je,te,Re);let tr=PV.parseSourceFile(ie.fileName,te,ie.languageVersion,pt,!0,ie.scriptKind,ie.setExternalModuleIndicator,ie.jsDocParsingMode);return tr.commentDirectives=i(ie.commentDirectives,tr.commentDirectives,$e.span.start,v8($e.span),xt,Je,te,Re),tr.impliedNodeFormat=ie.impliedNodeFormat,oln(ie,tr),tr}e.updateSourceFile=r;function i(ie,te,X,Re,Je,pt,$e,xt){if(!ie)return te;let tr,ht=!1;for(let Ut of ie){let{range:hr,type:Hi}=Ut;if(hr.endRe){wt();let un={range:{pos:hr.pos+Je,end:hr.end+Je},type:Hi};tr=bk(tr,un),xt&&Pi.assert(pt.substring(hr.pos,hr.end)===$e.substring(un.range.pos,un.range.end))}}return wt(),tr;function wt(){ht||(ht=!0,tr?te&&tr.push(...te):tr=te)}}function s(ie,te,X,Re,Je,pt,$e){X?tr(ie):xt(ie);return;function xt(ht){let wt="";if($e&&l(ht)&&(wt=Je.substring(ht.pos,ht.end)),gBt(ht,te),gB(ht,ht.pos+Re,ht.end+Re),$e&&l(ht)&&Pi.assert(wt===pt.substring(ht.pos,ht.end)),cx(ht,xt,tr),AV(ht))for(let Ut of ht.jsDoc)xt(Ut);h(ht,$e)}function tr(ht){gB(ht,ht.pos+Re,ht.end+Re);for(let wt of ht)xt(wt)}}function l(ie){switch(ie.kind){case 11:case 9:case 80:return!0}return!1}function d(ie,te,X,Re,Je){Pi.assert(ie.end>=te,"Adjusting an element that was entirely before the change range"),Pi.assert(ie.pos<=X,"Adjusting an element that was entirely after the change range"),Pi.assert(ie.pos<=ie.end);let pt=Math.min(ie.pos,Re),$e=ie.end>=X?ie.end+Je:Math.min(ie.end,Re);if(Pi.assert(pt<=$e),ie.parent){let xt=ie.parent;Pi.assertGreaterThanOrEqual(pt,xt.pos),Pi.assertLessThanOrEqual($e,xt.end)}gB(ie,pt,$e)}function h(ie,te){if(te){let X=ie.pos,Re=Je=>{Pi.assert(Je.pos>=X),X=Je.end};if(AV(ie))for(let Je of ie.jsDoc)Re(Je);cx(ie,Re),Pi.assert(X<=ie.end)}}function S(ie,te,X,Re,Je,pt,$e,xt){tr(ie);return;function tr(wt){if(Pi.assert(wt.pos<=wt.end),wt.pos>X){s(wt,ie,!1,Je,pt,$e,xt);return}let Ut=wt.end;if(Ut>=te){if(bYe(wt),gBt(wt,ie),d(wt,te,X,Re,Je),cx(wt,tr,ht),AV(wt))for(let hr of wt.jsDoc)tr(hr);h(wt,xt);return}Pi.assert(UtX){s(wt,ie,!0,Je,pt,$e,xt);return}let Ut=wt.end;if(Ut>=te){bYe(wt),d(wt,te,X,Re,Je);for(let hr of wt)tr(hr);return}Pi.assert(Ut0&&pt<=1;pt++){let $e=A(ie,X);Pi.assert($e.pos<=X);let xt=$e.pos;X=Math.max(0,xt-1)}let Re=hon(X,v8(te.span)),Je=te.newLength+(te.span.start-X);return w$t(Re,Je)}function A(ie,te){let X=ie,Re;if(cx(ie,pt),Re){let $e=Je(Re);$e.pos>X.pos&&(X=$e)}return X;function Je($e){for(;;){let xt=csn($e);if(xt)$e=xt;else return $e}}function pt($e){if(!wV($e))if($e.pos<=te){if($e.pos>=X.pos&&(X=$e),te<$e.end)return cx($e,pt),!0;Pi.assert($e.end<=te),Re=$e}else return Pi.assert($e.pos>te),!0}}function L(ie,te,X,Re){let Je=ie.text;if(X&&(Pi.assert(Je.length-X.span.length+X.newLength===te.length),Re||Pi.shouldAssert(3))){let pt=Je.substr(0,X.span.start),$e=te.substr(0,X.span.start);Pi.assert(pt===$e);let xt=Je.substring(v8(X.span),Je.length),tr=te.substring(v8(Wpe(X)),te.length);Pi.assert(xt===tr)}}function V(ie){let te=ie.statements,X=0;Pi.assert(X=ht.pos&&$e=ht.pos&&$e{ie[ie.Value=-1]="Value"})(j||(j={}))})(CDe||(CDe={}));function wln(e){return Iln(e)!==void 0}function Iln(e){let r=m$t(e,wsn,!1);if(r)return r;if(jin(e,".ts")){let i=f$t(e),s=i.lastIndexOf(".d.");if(s>=0)return i.substring(s)}}function Pln(e,r,i,s){if(e){if(e==="import")return 99;if(e==="require")return 1;s(r,i-r,_n.resolution_mode_should_be_either_require_or_import)}}function Nln(e,r){let i=[];for(let s of uYe(r,0)||ky){let l=r.substring(s.pos,s.end);Mln(i,s,l)}e.pragmas=new Map;for(let s of i){if(e.pragmas.has(s.name)){let l=e.pragmas.get(s.name);l instanceof Array?l.push(s.args):e.pragmas.set(s.name,[l,s.args]);continue}e.pragmas.set(s.name,s.args)}}function Oln(e,r){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((i,s)=>{switch(s){case"reference":{let l=e.referencedFiles,d=e.typeReferenceDirectives,h=e.libReferenceDirectives;ND(JXe(i),S=>{let{types:b,lib:A,path:L,["resolution-mode"]:V,preserve:j}=S.arguments,ie=j==="true"?!0:void 0;if(S.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(b){let te=Pln(V,b.pos,b.end,r);d.push({pos:b.pos,end:b.end,fileName:b.value,...te?{resolutionMode:te}:{},...ie?{preserve:ie}:{}})}else A?h.push({pos:A.pos,end:A.end,fileName:A.value,...ie?{preserve:ie}:{}}):L?l.push({pos:L.pos,end:L.end,fileName:L.value,...ie?{preserve:ie}:{}}):r(S.range.pos,S.range.end-S.range.pos,_n.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=oYe(JXe(i),l=>({name:l.arguments.name,path:l.arguments.path}));break}case"amd-module":{if(i instanceof Array)for(let l of i)e.moduleName&&r(l.range.pos,l.range.end-l.range.pos,_n.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=l.arguments.name;else e.moduleName=i.arguments.name;break}case"ts-nocheck":case"ts-check":{ND(JXe(i),l=>{(!e.checkJsDirective||l.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:s==="ts-check",end:l.range.end,pos:l.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:Pi.fail("Unhandled pragma kind")}})}var eYe=new Map;function Fln(e){if(eYe.has(e))return eYe.get(e);let r=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return eYe.set(e,r),r}var Rln=/^\/\/\/\s*<(\S+)\s.*?\/>/m,Lln=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function Mln(e,r,i){let s=r.kind===2&&Rln.exec(i);if(s){let d=s[1].toLowerCase(),h=d$t[d];if(!h||!(h.kind&1))return;if(h.args){let S={};for(let b of h.args){let A=Fln(b.name).exec(i);if(!A&&!b.optional)return;if(A){let L=A[2]||A[3];if(b.captureSpan){let V=r.pos+A.index+A[1].length+1;S[b.name]={value:L,pos:V,end:V+L.length}}else S[b.name]=L}}e.push({name:d,args:{arguments:S,range:r}})}else e.push({name:d,args:{arguments:{},range:r}});return}let l=r.kind===2&&Lln.exec(i);if(l)return zBt(e,r,2,l);if(r.kind===3){let d=/@(\S+)(\s+(?:\S.*)?)?$/gm,h;for(;h=d.exec(i);)zBt(e,r,4,h)}}function zBt(e,r,i,s){if(!s)return;let l=s[1].toLowerCase(),d=d$t[l];if(!d||!(d.kind&i))return;let h=s[2],S=jln(d,h);S!=="fail"&&e.push({name:l,args:{arguments:S,range:r}})}function jln(e,r){if(!r)return{};if(!e.args)return{};let i=r.trim().split(/\s+/),s={};for(let l=0;ls.kind<310||s.kind>352);return i.kind<167?i:i.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let r=this.getChildren(e),i=oee(r);if(i)return i.kind<167?i:i.getLastToken(e)}forEachChild(e,r){return cx(this,e,r)}};function Bln(e,r){let i=[];if(uan(e))return e.forEachChild(h=>{i.push(h)}),i;i_e.setText((r||e.getSourceFile()).text);let s=e.pos,l=h=>{o_e(i,s,h.pos,e),i.push(h),s=h.end},d=h=>{o_e(i,s,h.pos,e),i.push($ln(h,e)),s=h.end};return ND(e.jsDoc,l),s=e.pos,e.forEachChild(l,d),o_e(i,s,e.end,e),i_e.setText(void 0),i}function o_e(e,r,i,s){for(i_e.resetTokenState(r);rr.tagName.text==="inheritDoc"||r.tagName.text==="inheritdoc")}function dDe(e,r){if(!e)return ky;let i=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,r);if(r&&(i.length===0||e.some(jUt))){let s=new Set;for(let l of e){let d=BUt(r,l,h=>{var S;if(!s.has(h))return s.add(h),l.kind===178||l.kind===179?h.getContextualJsDocTags(l,r):((S=h.declarations)==null?void 0:S.length)===1?h.getJsDocTags(r):void 0});d&&(i=[...d,...i])}}return i}function n_e(e,r){if(!e)return ky;let i=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,r);if(r&&(i.length===0||e.some(jUt))){let s=new Set;for(let l of e){let d=BUt(r,l,h=>{if(!s.has(h))return s.add(h),l.kind===178||l.kind===179?h.getContextualDocumentationComment(l,r):h.getDocumentationComment(r)});d&&(i=i.length===0?d.slice():d.concat(lineBreakPart(),i))}}return i}function BUt(e,r,i){var s;let l=((s=r.parent)==null?void 0:s.kind)===177?r.parent.parent:r.parent;if(!l)return;let d=Zan(r);return sin(zan(l),h=>{let S=e.getTypeAtLocation(h),b=d&&S.symbol?e.getTypeOfSymbol(S.symbol):S,A=e.getPropertyOfType(b,r.symbol.name);return A?i(A):void 0})}var Jln=class extends aet{constructor(e,r,i){super(e,r,i)}update(e,r){return Cln(this,e,r)}getLineAndCharacterOfPosition(e){return T$t(this,e)}getLineStarts(){return lYe(this)}getPositionOfLineAndCharacter(e,r,i){return ion(lYe(this),e,r,this.text,i)}getLineEndOfPosition(e){let{line:r}=this.getLineAndCharacterOfPosition(e),i=this.getLineStarts(),s;r+1>=i.length&&(s=this.getEnd()),s||(s=i[r+1]-1);let l=this.getFullText();return l[s]===` +`&&l[s-1]==="\r"?s-1:s}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=bin();return this.forEachChild(l),e;function r(d){let h=s(d);h&&e.add(h,d)}function i(d){let h=e.get(d);return h||e.set(d,h=[]),h}function s(d){let h=UYe(d);return h&&(oUt(h)&&X5(h.expression)?h.expression.name.text:j$t(h)?getNameFromPropertyName(h):void 0)}function l(d){switch(d.kind){case 263:case 219:case 175:case 174:let h=d,S=s(h);if(S){let L=i(S),V=oee(L);V&&h.parent===V.parent&&h.symbol===V.symbol?h.body&&!V.body&&(L[L.length-1]=h):L.push(h)}cx(d,l);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:r(d),cx(d,l);break;case 170:if(!h_e(d,31))break;case 261:case 209:{let L=d;if(ean(L.name)){cx(L.name,l);break}L.initializer&&l(L.initializer)}case 307:case 173:case 172:r(d);break;case 279:let b=d;b.exportClause&&(Lcn(b.exportClause)?ND(b.exportClause.elements,l):l(b.exportClause.name));break;case 273:let A=d.importClause;A&&(A.name&&r(A.name),A.namedBindings&&(A.namedBindings.kind===275?r(A.namedBindings):ND(A.namedBindings.elements,l)));break;case 227:WYe(d)!==0&&r(d);default:cx(d,l)}}}},Vln=class{constructor(e,r,i){this.fileName=e,this.text=r,this.skipTrivia=i||(s=>s)}getLineAndCharacterOfPosition(e){return T$t(this,e)}};function Wln(){return{getNodeConstructor:()=>aet,getTokenConstructor:()=>RUt,getIdentifierConstructor:()=>LUt,getPrivateIdentifierConstructor:()=>MUt,getSourceFileConstructor:()=>Jln,getSymbolConstructor:()=>Uln,getTypeConstructor:()=>zln,getSignatureConstructor:()=>qln,getSourceMapSourceConstructor:()=>Vln}}var Gln=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],vVn=[...Gln,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];gsn(Wln());var $Ut=new Proxy({},{get:()=>!0}),UUt=$Ut["4.8"];function E8(e,r=!1){if(e!=null){if(UUt){if(r||oet(e)){let i=Eon(e);return i?[...i]:void 0}return}return e.modifiers?.filter(i=>!eet(i))}}function tee(e,r=!1){if(e!=null){if(UUt){if(r||dln(e)){let i=Ton(e);return i?[...i]:void 0}return}return e.decorators?.filter(eet)}}var Hln={},zUt=new Proxy({},{get:(e,r)=>r}),Kln=zUt,Qln=zUt,yn=Kln,rb=Qln,Zln=$Ut["5.0"],nc=Xl,Xln=new Set([nc.AmpersandAmpersandToken,nc.BarBarToken,nc.QuestionQuestionToken]),Yln=new Set([Xl.AmpersandAmpersandEqualsToken,Xl.AmpersandEqualsToken,Xl.AsteriskAsteriskEqualsToken,Xl.AsteriskEqualsToken,Xl.BarBarEqualsToken,Xl.BarEqualsToken,Xl.CaretEqualsToken,Xl.EqualsToken,Xl.GreaterThanGreaterThanEqualsToken,Xl.GreaterThanGreaterThanGreaterThanEqualsToken,Xl.LessThanLessThanEqualsToken,Xl.MinusEqualsToken,Xl.PercentEqualsToken,Xl.PlusEqualsToken,Xl.QuestionQuestionEqualsToken,Xl.SlashEqualsToken]),eun=new Set([nc.AmpersandAmpersandToken,nc.AmpersandToken,nc.AsteriskAsteriskToken,nc.AsteriskToken,nc.BarBarToken,nc.BarToken,nc.CaretToken,nc.EqualsEqualsEqualsToken,nc.EqualsEqualsToken,nc.ExclamationEqualsEqualsToken,nc.ExclamationEqualsToken,nc.GreaterThanEqualsToken,nc.GreaterThanGreaterThanGreaterThanToken,nc.GreaterThanGreaterThanToken,nc.GreaterThanToken,nc.InKeyword,nc.InstanceOfKeyword,nc.LessThanEqualsToken,nc.LessThanLessThanToken,nc.LessThanToken,nc.MinusToken,nc.PercentToken,nc.PlusToken,nc.SlashToken]);function tun(e){return Yln.has(e.kind)}function run(e){return Xln.has(e.kind)}function nun(e){return eun.has(e.kind)}function mB(e){return Bm(e)}function iun(e){return e.kind!==nc.SemicolonClassElement}function E_(e,r){return E8(r)?.some(i=>i.kind===e)===!0}function oun(e){let r=E8(e);return r==null?null:r[r.length-1]??null}function aun(e){return e.kind===nc.CommaToken}function sun(e){return e.kind===nc.SingleLineCommentTrivia||e.kind===nc.MultiLineCommentTrivia}function cun(e){return e.kind===nc.JSDocComment}function lun(e){if(tun(e))return{type:yn.AssignmentExpression,operator:mB(e.kind)};if(run(e))return{type:yn.LogicalExpression,operator:mB(e.kind)};if(nun(e))return{type:yn.BinaryExpression,operator:mB(e.kind)};throw new Error(`Unexpected binary operator ${Bm(e.kind)}`)}function fDe(e,r){let i=r.getLineAndCharacterOfPosition(e);return{column:i.character,line:i.line+1}}function DV(e,r){let[i,s]=e.map(l=>fDe(l,r));return{end:s,start:i}}function uun(e){if(e.kind===Xl.Block)switch(e.parent.kind){case Xl.Constructor:case Xl.GetAccessor:case Xl.SetAccessor:case Xl.ArrowFunction:case Xl.FunctionExpression:case Xl.FunctionDeclaration:case Xl.MethodDeclaration:return!0;default:return!1}return!0}function KY(e,r){return[e.getStart(r),e.getEnd()]}function pun(e){return e.kind>=nc.FirstToken&&e.kind<=nc.LastToken}function qUt(e){return e.kind>=nc.JsxElement&&e.kind<=nc.JsxAttribute}function xYe(e){return e.flags&PD.Let?"let":(e.flags&PD.AwaitUsing)===PD.AwaitUsing?"await using":e.flags&PD.Const?"const":e.flags&PD.Using?"using":"var"}function EV(e){let r=E8(e);if(r!=null)for(let i of r)switch(i.kind){case nc.PublicKeyword:return"public";case nc.ProtectedKeyword:return"protected";case nc.PrivateKeyword:return"private";default:break}}function q6(e,r,i){return s(r);function s(l){return qon(l)&&l.pos===e.end?l:Sun(l.getChildren(i),d=>(d.pos<=e.pos&&d.end>e.end||d.pos===e.end)&&vun(d,i)?s(d):void 0)}}function _un(e,r){let i=e;for(;i;){if(r(i))return i;i=i.parent}}function dun(e){return!!_un(e,qUt)}function qBt(e){return ree(0,e,/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,r=>{let i=r.slice(1,-1);if(i[0]==="#"){let s=i[1]==="x"?parseInt(i.slice(2),16):parseInt(i.slice(1),10);return s>1114111?r:String.fromCodePoint(s)}return Hln[i]||r})}function QY(e){return e.kind===nc.ComputedPropertyName}function JBt(e){return!!e.questionToken}function JUt(e){return e.type===yn.ChainExpression}function fun(e,r){return JUt(r)&&e.expression.kind!==Xl.ParenthesizedExpression}function mun(e){if(e.kind===nc.NullKeyword)return rb.Null;if(e.kind>=nc.FirstKeyword&&e.kind<=nc.LastFutureReservedWord)return e.kind===nc.FalseKeyword||e.kind===nc.TrueKeyword?rb.Boolean:rb.Keyword;if(e.kind>=nc.FirstPunctuation&&e.kind<=nc.LastPunctuation)return rb.Punctuator;if(e.kind>=nc.NoSubstitutionTemplateLiteral&&e.kind<=nc.TemplateTail)return rb.Template;switch(e.kind){case nc.NumericLiteral:case nc.BigIntLiteral:return rb.Numeric;case nc.PrivateIdentifier:return rb.PrivateIdentifier;case nc.JsxText:return rb.JSXText;case nc.StringLiteral:return e.parent.kind===nc.JsxAttribute||e.parent.kind===nc.JsxElement?rb.JSXText:rb.String;case nc.RegularExpressionLiteral:return rb.RegularExpression;case nc.Identifier:case nc.ConstructorKeyword:case nc.GetKeyword:case nc.SetKeyword:default:}return e.kind===nc.Identifier&&(qUt(e.parent)||e.parent.kind===nc.PropertyAccessExpression&&dun(e))?rb.JSXIdentifier:rb.Identifier}function hun(e,r){let i=e.kind===nc.JsxText?e.getFullStart():e.getStart(r),s=e.getEnd(),l=r.text.slice(i,s),d=mun(e),h=[i,s],S=DV(h,r);return d===rb.RegularExpression?{type:d,loc:S,range:h,regex:{flags:l.slice(l.lastIndexOf("/")+1),pattern:l.slice(1,l.lastIndexOf("/"))},value:l}:d===rb.PrivateIdentifier?{type:d,loc:S,range:h,value:l.slice(1)}:{type:d,loc:S,range:h,value:l}}function gun(e){let r=[];function i(s){sun(s)||cun(s)||(pun(s)&&s.kind!==nc.EndOfFileToken?r.push(hun(s,e)):s.getChildren(e).forEach(i))}return i(e),r}var yun=class extends Error{fileName;location;constructor(e,r,i){super(e),this.fileName=r,this.location=i,Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:new.target.name})}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};function cet(e,r,i,s=i){let[l,d]=[i,s].map(h=>{let{character:S,line:b}=r.getLineAndCharacterOfPosition(h);return{column:S,line:b+1,offset:h}});return new yun(e,r.fileName,{end:d,start:l})}function vun(e,r){return e.kind===nc.EndOfFileToken?!!e.jsDoc:e.getWidth(r)!==0}function Sun(e,r){if(e!==void 0)for(let i=0;i=0&&e.kind!==lc.EndOfFileToken}function VBt(e){return!kun(e)}function Cun(e){return E_(lc.AbstractKeyword,e)}function Dun(e){if(e.parameters.length&&!DUt(e)){let r=e.parameters[0];if(Aun(r))return r}return null}function Aun(e){return VUt(e.name)}function wun(e){return I$t(e.parent,B$t)}function Iun(e){switch(e.kind){case lc.ClassDeclaration:return!0;case lc.ClassExpression:return!0;case lc.PropertyDeclaration:{let{parent:r}=e;return!!(kDe(r)||see(r)&&!Cun(e))}case lc.GetAccessor:case lc.SetAccessor:case lc.MethodDeclaration:{let{parent:r}=e;return!!e.body&&(kDe(r)||see(r))}case lc.Parameter:{let{parent:r}=e,i=r.parent;return!!r&&"body"in r&&!!r.body&&(r.kind===lc.Constructor||r.kind===lc.MethodDeclaration||r.kind===lc.SetAccessor)&&Dun(r)!==e&&!!i&&i.kind===lc.ClassDeclaration}}return!1}function Pun(e){return!!("illegalDecorators"in e&&e.illegalDecorators?.length)}function lv(e,r){let i=e.getSourceFile(),s=e.getStart(i),l=e.getEnd();throw cet(r,i,s,l)}function Nun(e){Pun(e)&&lv(e.illegalDecorators[0],"Decorators are not valid here.");for(let r of tee(e,!0)??[])Iun(e)||(gYe(e)&&!VBt(e.body)?lv(r,"A decorator can only decorate a method implementation, not an overload."):lv(r,"Decorators are not valid here."));for(let r of E8(e,!0)??[]){if(r.kind!==lc.ReadonlyKeyword&&((e.kind===lc.PropertySignature||e.kind===lc.MethodSignature)&&lv(r,`'${Bm(r.kind)}' modifier cannot appear on a type member`),e.kind===lc.IndexSignature&&(r.kind!==lc.StaticKeyword||!see(e.parent))&&lv(r,`'${Bm(r.kind)}' modifier cannot appear on an index signature`)),r.kind!==lc.InKeyword&&r.kind!==lc.OutKeyword&&r.kind!==lc.ConstKeyword&&e.kind===lc.TypeParameter&&lv(r,`'${Bm(r.kind)}' modifier cannot appear on a type parameter`),(r.kind===lc.InKeyword||r.kind===lc.OutKeyword)&&(e.kind!==lc.TypeParameter||!(ret(e.parent)||see(e.parent)||vUt(e.parent)))&&lv(r,`'${Bm(r.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),r.kind===lc.ReadonlyKeyword&&e.kind!==lc.PropertyDeclaration&&e.kind!==lc.PropertySignature&&e.kind!==lc.IndexSignature&&e.kind!==lc.Parameter&&lv(r,"'readonly' modifier can only appear on a property declaration or index signature."),r.kind===lc.DeclareKeyword&&see(e.parent)&&!TDe(e)&&lv(r,`'${Bm(r.kind)}' modifier cannot appear on class elements of this kind.`),r.kind===lc.DeclareKeyword&&wDe(e)){let i=xYe(e.declarationList);(i==="using"||i==="await using")&&lv(r,`'declare' modifier cannot appear on a '${i}' declaration.`)}if(r.kind===lc.AbstractKeyword&&e.kind!==lc.ClassDeclaration&&e.kind!==lc.ConstructorType&&e.kind!==lc.MethodDeclaration&&e.kind!==lc.PropertyDeclaration&&e.kind!==lc.GetAccessor&&e.kind!==lc.SetAccessor&&lv(r,`'${Bm(r.kind)}' modifier can only appear on a class, method, or property declaration.`),(r.kind===lc.StaticKeyword||r.kind===lc.PublicKeyword||r.kind===lc.ProtectedKeyword||r.kind===lc.PrivateKeyword)&&(e.parent.kind===lc.ModuleBlock||e.parent.kind===lc.SourceFile)&&lv(r,`'${Bm(r.kind)}' modifier cannot appear on a module or namespace element.`),r.kind===lc.AccessorKeyword&&e.kind!==lc.PropertyDeclaration&&lv(r,"'accessor' modifier can only appear on a property declaration."),r.kind===lc.AsyncKeyword&&e.kind!==lc.MethodDeclaration&&e.kind!==lc.FunctionDeclaration&&e.kind!==lc.FunctionExpression&&e.kind!==lc.ArrowFunction&&lv(r,"'async' modifier cannot be used here."),e.kind===lc.Parameter&&(r.kind===lc.StaticKeyword||r.kind===lc.ExportKeyword||r.kind===lc.DeclareKeyword||r.kind===lc.AsyncKeyword)&&lv(r,`'${Bm(r.kind)}' modifier cannot appear on a parameter.`),r.kind===lc.PublicKeyword||r.kind===lc.ProtectedKeyword||r.kind===lc.PrivateKeyword)for(let i of E8(e)??[])i!==r&&(i.kind===lc.PublicKeyword||i.kind===lc.ProtectedKeyword||i.kind===lc.PrivateKeyword)&&lv(i,"Accessibility modifier already seen.");if(e.kind===lc.Parameter&&(r.kind===lc.PublicKeyword||r.kind===lc.PrivateKeyword||r.kind===lc.ProtectedKeyword||r.kind===lc.ReadonlyKeyword||r.kind===lc.OverrideKeyword)){let i=wun(e);i?.kind===lc.Constructor&&VBt(i.body)||lv(r,"A parameter property is only allowed in a constructor implementation.");let s=e;s.dotDotDotToken&&lv(r,"A parameter property cannot be a rest parameter."),(s.name.kind===lc.ArrayBindingPattern||s.name.kind===lc.ObjectBindingPattern)&&lv(r,"A parameter property may not be declared using a binding pattern.")}r.kind!==lc.AsyncKeyword&&e.kind===lc.MethodDeclaration&&e.parent.kind===lc.ObjectLiteralExpression&&lv(r,`'${Bm(r.kind)}' modifier cannot be used here.`)}}var Ur=Xl;function Oun(e){return cet("message"in e&&e.message||e.messageText,e.file,e.start)}function Fun(e){return X5(e)&&Kd(e.name)&&WUt(e.expression)}function WUt(e){return e.kind===Ur.Identifier||Fun(e)}var Run=class{allowPattern=!1;ast;esTreeNodeToTSNodeMap=new WeakMap;options;tsNodeToESTreeNodeMap=new WeakMap;constructor(e,r){this.ast=e,this.options={...r}}#t(e,r){let i=r===Xl.ForInStatement?"for...in":"for...of";if(Fcn(e)){e.declarations.length!==1&&this.#e(e,`Only a single variable declaration is allowed in a '${i}' statement.`);let s=e.declarations[0];s.initializer?this.#e(s,`The variable declaration of a '${i}' statement cannot have an initializer.`):s.type&&this.#e(s,`The variable declaration of a '${i}' statement cannot have a type annotation.`),r===Xl.ForInStatement&&e.flags&PD.Using&&this.#e(e,"The left-hand side of a 'for...in' statement cannot be a 'using' declaration.")}else!TYe(e)&&e.kind!==Xl.ObjectLiteralExpression&&e.kind!==Xl.ArrayLiteralExpression&&this.#e(e,`The left-hand side of a '${i}' statement must be a variable or a property access.`)}#r(e){this.options.allowInvalidAST||Nun(e)}#e(e,r){if(this.options.allowInvalidAST)return;let i,s;throw Array.isArray(e)?[i,s]=e:typeof e=="number"?i=s=e:(i=e.getStart(this.ast),s=e.getEnd()),cet(r,this.ast,i,s)}#n(e,r,i,s=!1){let l=s;return Object.defineProperty(e,r,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>e[i]:()=>(l||((void 0)(`The '${r}' property is deprecated on ${e.type} nodes. Use '${i}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),l=!0),e[i]),set(d){Object.defineProperty(e,r,{enumerable:!0,value:d,writable:!0})}}),e}#i(e,r,i,s){let l=!1;return Object.defineProperty(e,r,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>s:()=>{if(!l){let d=`The '${r}' property is deprecated on ${e.type} nodes.`;i&&(d+=` Use ${i} instead.`),d+=" See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.",(void 0)(d,"DeprecationWarning"),l=!0}return s},set(d){Object.defineProperty(e,r,{enumerable:!0,value:d,writable:!0})}}),e}assertModuleSpecifier(e,r){!r&&e.moduleSpecifier==null&&this.#e(e,"Module specifier must be a string literal."),e.moduleSpecifier&&e.moduleSpecifier?.kind!==Ur.StringLiteral&&this.#e(e.moduleSpecifier,"Module specifier must be a string literal.")}convertBindingNameWithTypeAnnotation(e,r,i){let s=this.convertPattern(e);return r&&(s.typeAnnotation=this.convertTypeAnnotation(r,i),this.fixParentLocation(s,s.typeAnnotation.range)),s}convertBodyExpressions(e,r){let i=uun(r);return e.map(s=>{let l=this.convertChild(s);if(i){if(l?.expression&&hUt(s)&&uee(s.expression)){let d=l.expression.raw;return l.directive=d.slice(1,-1),l}i=!1}return l}).filter(s=>s)}convertChainExpression(e,r){let{child:i,isOptional:s}=e.type===yn.MemberExpression?{child:e.object,isOptional:e.optional}:e.type===yn.CallExpression?{child:e.callee,isOptional:e.optional}:{child:e.expression,isOptional:!1},l=fun(r,i);if(!l&&!s)return e;if(l&&JUt(i)){let d=i.expression;e.type===yn.MemberExpression?e.object=d:e.type===yn.CallExpression?e.callee=d:e.expression=d}return this.createNode(r,{type:yn.ChainExpression,expression:e})}convertChild(e,r){return this.converter(e,r,!1)}convertChildren(e,r){return e.map(i=>this.converter(i,r,!1))}convertPattern(e,r){return this.converter(e,r,!0)}convertTypeAnnotation(e,r){let i=r?.kind===Ur.FunctionType||r?.kind===Ur.ConstructorType?2:1,s=[e.getFullStart()-i,e.end],l=DV(s,this.ast);return{type:yn.TSTypeAnnotation,loc:l,range:s,typeAnnotation:this.convertChild(e)}}convertTypeArgumentsToTypeParameterInstantiation(e,r){let i=q6(e,this.ast,this.ast),s=[e.pos-1,i.end];return e.length===0&&this.#e(s,"Type argument list cannot be empty."),this.createNode(r,{type:yn.TSTypeParameterInstantiation,range:s,params:this.convertChildren(e)})}convertTSTypeParametersToTypeParametersDeclaration(e){let r=q6(e,this.ast,this.ast),i=[e.pos-1,r.end];return e.length===0&&this.#e(i,"Type parameter list cannot be empty."),{type:yn.TSTypeParameterDeclaration,loc:DV(i,this.ast),range:i,params:this.convertChildren(e)}}convertParameters(e){return e?.length?e.map(r=>{let i=this.convertChild(r);return i.decorators=this.convertChildren(tee(r)??[]),i}):[]}converter(e,r,i){if(!e)return null;this.#r(e);let s=this.allowPattern;i!=null&&(this.allowPattern=i);let l=this.convertNode(e,r??e.parent);return this.registerTSNodeInNodeMap(e,l),this.allowPattern=s,l}convertImportAttributes(e){let r=e.attributes??e.assertClause;return this.convertChildren(r?.elements??[])}convertJSXIdentifier(e){let r=this.createNode(e,{type:yn.JSXIdentifier,name:e.getText()});return this.registerTSNodeInNodeMap(e,r),r}convertJSXNamespaceOrIdentifier(e){if(e.kind===Xl.JsxNamespacedName){let s=this.createNode(e,{type:yn.JSXNamespacedName,name:this.createNode(e.name,{type:yn.JSXIdentifier,name:e.name.text}),namespace:this.createNode(e.namespace,{type:yn.JSXIdentifier,name:e.namespace.text})});return this.registerTSNodeInNodeMap(e,s),s}let r=e.getText(),i=r.indexOf(":");if(i>0){let s=KY(e,this.ast),l=this.createNode(e,{type:yn.JSXNamespacedName,range:s,name:this.createNode(e,{type:yn.JSXIdentifier,range:[s[0]+i+1,s[1]],name:r.slice(i+1)}),namespace:this.createNode(e,{type:yn.JSXIdentifier,range:[s[0],s[0]+i],name:r.slice(0,i)})});return this.registerTSNodeInNodeMap(e,l),l}return this.convertJSXIdentifier(e)}convertJSXTagName(e,r){let i;switch(e.kind){case Ur.PropertyAccessExpression:e.name.kind===Ur.PrivateIdentifier&&this.#e(e.name,"Non-private identifier expected."),i=this.createNode(e,{type:yn.JSXMemberExpression,object:this.convertJSXTagName(e.expression,r),property:this.convertJSXIdentifier(e.name)});break;case Ur.ThisKeyword:case Ur.Identifier:default:return this.convertJSXNamespaceOrIdentifier(e)}return this.registerTSNodeInNodeMap(e,i),i}convertMethodSignature(e){return this.createNode(e,{type:yn.TSMethodSignature,accessibility:EV(e),computed:QY(e.name),key:this.convertChild(e.name),kind:(()=>{switch(e.kind){case Ur.GetAccessor:return"get";case Ur.SetAccessor:return"set";case Ur.MethodSignature:return"method"}})(),optional:JBt(e),params:this.convertParameters(e.parameters),readonly:E_(Ur.ReadonlyKeyword,e),returnType:e.type&&this.convertTypeAnnotation(e.type,e),static:E_(Ur.StaticKeyword,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)})}fixParentLocation(e,r){r[0]e.range[1]&&(e.range[1]=r[1],e.loc.end=fDe(e.range[1],this.ast))}convertNode(e,r){switch(e.kind){case Ur.SourceFile:return this.createNode(e,{type:yn.Program,range:[e.getStart(this.ast),e.endOfFileToken.end],body:this.convertBodyExpressions(e.statements,e),comments:void 0,sourceType:e.externalModuleIndicator?"module":"script",tokens:void 0});case Ur.Block:return this.createNode(e,{type:yn.BlockStatement,body:this.convertBodyExpressions(e.statements,e)});case Ur.Identifier:return xun(e)?this.createNode(e,{type:yn.ThisExpression}):this.createNode(e,{type:yn.Identifier,decorators:[],name:e.text,optional:!1,typeAnnotation:void 0});case Ur.PrivateIdentifier:return this.createNode(e,{type:yn.PrivateIdentifier,name:e.text.slice(1)});case Ur.WithStatement:return this.createNode(e,{type:yn.WithStatement,body:this.convertChild(e.statement),object:this.convertChild(e.expression)});case Ur.ReturnStatement:return this.createNode(e,{type:yn.ReturnStatement,argument:this.convertChild(e.expression)});case Ur.LabeledStatement:return this.createNode(e,{type:yn.LabeledStatement,body:this.convertChild(e.statement),label:this.convertChild(e.label)});case Ur.ContinueStatement:return this.createNode(e,{type:yn.ContinueStatement,label:this.convertChild(e.label)});case Ur.BreakStatement:return this.createNode(e,{type:yn.BreakStatement,label:this.convertChild(e.label)});case Ur.IfStatement:return this.createNode(e,{type:yn.IfStatement,alternate:this.convertChild(e.elseStatement),consequent:this.convertChild(e.thenStatement),test:this.convertChild(e.expression)});case Ur.SwitchStatement:return e.caseBlock.clauses.filter(i=>i.kind===Ur.DefaultClause).length>1&&this.#e(e,"A 'default' clause cannot appear more than once in a 'switch' statement."),this.createNode(e,{type:yn.SwitchStatement,cases:this.convertChildren(e.caseBlock.clauses),discriminant:this.convertChild(e.expression)});case Ur.CaseClause:case Ur.DefaultClause:return this.createNode(e,{type:yn.SwitchCase,consequent:this.convertChildren(e.statements),test:e.kind===Ur.CaseClause?this.convertChild(e.expression):null});case Ur.ThrowStatement:return e.expression.end===e.expression.pos&&this.#e(e,"A throw statement must throw an expression."),this.createNode(e,{type:yn.ThrowStatement,argument:this.convertChild(e.expression)});case Ur.TryStatement:return this.createNode(e,{type:yn.TryStatement,block:this.convertChild(e.tryBlock),finalizer:this.convertChild(e.finallyBlock),handler:this.convertChild(e.catchClause)});case Ur.CatchClause:return e.variableDeclaration?.initializer&&this.#e(e.variableDeclaration.initializer,"Catch clause variable cannot have an initializer."),this.createNode(e,{type:yn.CatchClause,body:this.convertChild(e.block),param:e.variableDeclaration?this.convertBindingNameWithTypeAnnotation(e.variableDeclaration.name,e.variableDeclaration.type):null});case Ur.WhileStatement:return this.createNode(e,{type:yn.WhileStatement,body:this.convertChild(e.statement),test:this.convertChild(e.expression)});case Ur.DoStatement:return this.createNode(e,{type:yn.DoWhileStatement,body:this.convertChild(e.statement),test:this.convertChild(e.expression)});case Ur.ForStatement:return this.createNode(e,{type:yn.ForStatement,body:this.convertChild(e.statement),init:this.convertChild(e.initializer),test:this.convertChild(e.condition),update:this.convertChild(e.incrementor)});case Ur.ForInStatement:return this.#t(e.initializer,e.kind),this.createNode(e,{type:yn.ForInStatement,body:this.convertChild(e.statement),left:this.convertPattern(e.initializer),right:this.convertChild(e.expression)});case Ur.ForOfStatement:return this.#t(e.initializer,e.kind),this.createNode(e,{type:yn.ForOfStatement,await:!!(e.awaitModifier&&e.awaitModifier.kind===Ur.AwaitKeyword),body:this.convertChild(e.statement),left:this.convertPattern(e.initializer),right:this.convertChild(e.expression)});case Ur.FunctionDeclaration:{let i=E_(Ur.DeclareKeyword,e),s=E_(Ur.AsyncKeyword,e),l=!!e.asteriskToken;i?e.body?this.#e(e,"An implementation cannot be declared in ambient contexts."):s?this.#e(e,"'async' modifier cannot be used in an ambient context."):l&&this.#e(e,"Generators are not allowed in an ambient context."):!e.body&&l&&this.#e(e,"A function signature cannot be declared as a generator.");let d=this.createNode(e,{type:e.body?yn.FunctionDeclaration:yn.TSDeclareFunction,async:s,body:this.convertChild(e.body)||void 0,declare:i,expression:!1,generator:l,id:this.convertChild(e.name),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,d)}case Ur.VariableDeclaration:{let i=!!e.exclamationToken,s=this.convertChild(e.initializer),l=this.convertBindingNameWithTypeAnnotation(e.name,e.type,e);return i&&(s?this.#e(e,"Declarations with initializers cannot also have definite assignment assertions."):(l.type!==yn.Identifier||!l.typeAnnotation)&&this.#e(e,"Declarations with definite assignment assertions must also have type annotations.")),this.createNode(e,{type:yn.VariableDeclarator,definite:i,id:l,init:s})}case Ur.VariableStatement:{let i=this.createNode(e,{type:yn.VariableDeclaration,declarations:this.convertChildren(e.declarationList.declarations),declare:E_(Ur.DeclareKeyword,e),kind:xYe(e.declarationList)});return i.declarations.length||this.#e(e,"A variable declaration list must have at least one variable declarator."),(i.kind==="using"||i.kind==="await using")&&e.declarationList.declarations.forEach((s,l)=>{i.declarations[l].init==null&&this.#e(s,`'${i.kind}' declarations must be initialized.`),i.declarations[l].id.type!==yn.Identifier&&this.#e(s.name,`'${i.kind}' declarations may not have binding patterns.`)}),(i.declare||["await using","const","using"].includes(i.kind))&&e.declarationList.declarations.forEach((s,l)=>{i.declarations[l].definite&&this.#e(s,"A definite assignment assertion '!' is not permitted in this context.")}),i.declare&&e.declarationList.declarations.forEach((s,l)=>{i.declarations[l].init&&(["let","var"].includes(i.kind)||i.declarations[l].id.typeAnnotation)&&this.#e(s,"Initializers are not permitted in ambient contexts.")}),this.fixExports(e,i)}case Ur.VariableDeclarationList:{let i=this.createNode(e,{type:yn.VariableDeclaration,declarations:this.convertChildren(e.declarations),declare:!1,kind:xYe(e)});return(i.kind==="using"||i.kind==="await using")&&e.declarations.forEach((s,l)=>{i.declarations[l].init!=null&&this.#e(s,`'${i.kind}' declarations may not be initialized in for statement.`),i.declarations[l].id.type!==yn.Identifier&&this.#e(s.name,`'${i.kind}' declarations may not have binding patterns.`)}),i}case Ur.ExpressionStatement:return this.createNode(e,{type:yn.ExpressionStatement,directive:void 0,expression:this.convertChild(e.expression)});case Ur.ThisKeyword:return this.createNode(e,{type:yn.ThisExpression});case Ur.ArrayLiteralExpression:return this.allowPattern?this.createNode(e,{type:yn.ArrayPattern,decorators:[],elements:e.elements.map(i=>this.convertPattern(i)),optional:!1,typeAnnotation:void 0}):this.createNode(e,{type:yn.ArrayExpression,elements:this.convertChildren(e.elements)});case Ur.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(e,{type:yn.ObjectPattern,decorators:[],optional:!1,properties:e.properties.map(s=>this.convertPattern(s)),typeAnnotation:void 0});let i=[];for(let s of e.properties)(s.kind===Ur.GetAccessor||s.kind===Ur.SetAccessor||s.kind===Ur.MethodDeclaration)&&!s.body&&this.#e(s.end-1,"'{' expected."),i.push(this.convertChild(s));return this.createNode(e,{type:yn.ObjectExpression,properties:i})}case Ur.PropertyAssignment:{let{exclamationToken:i,questionToken:s}=e;return s&&this.#e(s,"A property assignment cannot have a question token."),i&&this.#e(i,"A property assignment cannot have an exclamation token."),this.createNode(e,{type:yn.Property,computed:QY(e.name),key:this.convertChild(e.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.converter(e.initializer,e,this.allowPattern)})}case Ur.ShorthandPropertyAssignment:{let{exclamationToken:i,modifiers:s,questionToken:l}=e;return s&&this.#e(s[0],"A shorthand property assignment cannot have modifiers."),l&&this.#e(l,"A shorthand property assignment cannot have a question token."),i&&this.#e(i,"A shorthand property assignment cannot have an exclamation token."),e.objectAssignmentInitializer?this.createNode(e,{type:yn.Property,computed:!1,key:this.convertChild(e.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.createNode(e,{type:yn.AssignmentPattern,decorators:[],left:this.convertPattern(e.name),optional:!1,right:this.convertChild(e.objectAssignmentInitializer),typeAnnotation:void 0})}):this.createNode(e,{type:yn.Property,computed:!1,key:this.convertChild(e.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.convertChild(e.name)})}case Ur.ComputedPropertyName:return this.convertChild(e.expression);case Ur.PropertyDeclaration:{let i=E_(Ur.AbstractKeyword,e);i&&e.initializer&&this.#e(e.initializer,"Abstract property cannot have an initializer."),e.name.kind===Ur.StringLiteral&&e.name.text==="constructor"&&this.#e(e.name,"Classes may not have a field named 'constructor'.");let s=E_(Ur.AccessorKeyword,e),l=s?i?yn.TSAbstractAccessorProperty:yn.AccessorProperty:i?yn.TSAbstractPropertyDefinition:yn.PropertyDefinition,d=this.convertChild(e.name);return this.createNode(e,{type:l,accessibility:EV(e),computed:QY(e.name),declare:E_(Ur.DeclareKeyword,e),decorators:this.convertChildren(tee(e)??[]),definite:!!e.exclamationToken,key:d,optional:(d.type===yn.Literal||e.name.kind===Ur.Identifier||e.name.kind===Ur.ComputedPropertyName||e.name.kind===Ur.PrivateIdentifier)&&!!e.questionToken,override:E_(Ur.OverrideKeyword,e),readonly:E_(Ur.ReadonlyKeyword,e),static:E_(Ur.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e),value:i?null:this.convertChild(e.initializer)})}case Ur.GetAccessor:case Ur.SetAccessor:if(e.parent.kind===Ur.InterfaceDeclaration||e.parent.kind===Ur.TypeLiteral)return this.convertMethodSignature(e);case Ur.MethodDeclaration:{let i=E_(Ur.AbstractKeyword,e);i&&e.body&&this.#e(e.name,e.kind===Ur.GetAccessor||e.kind===Ur.SetAccessor?"An abstract accessor cannot have an implementation.":`Method '${Eun(e.name,this.ast)}' cannot have an implementation because it is marked abstract.`);let s=this.createNode(e,{type:e.body?yn.FunctionExpression:yn.TSEmptyBodyFunctionExpression,range:[e.parameters.pos-1,e.end],async:E_(Ur.AsyncKeyword,e),body:this.convertChild(e.body),declare:!1,expression:!1,generator:!!e.asteriskToken,id:null,params:[],returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});s.typeParameters&&this.fixParentLocation(s,s.typeParameters.range);let l;if(r.kind===Ur.ObjectLiteralExpression)s.params=this.convertChildren(e.parameters),l=this.createNode(e,{type:yn.Property,computed:QY(e.name),key:this.convertChild(e.name),kind:"init",method:e.kind===Ur.MethodDeclaration,optional:!!e.questionToken,shorthand:!1,value:s});else{s.params=this.convertParameters(e.parameters);let d=i?yn.TSAbstractMethodDefinition:yn.MethodDefinition;l=this.createNode(e,{type:d,accessibility:EV(e),computed:QY(e.name),decorators:this.convertChildren(tee(e)??[]),key:this.convertChild(e.name),kind:"method",optional:!!e.questionToken,override:E_(Ur.OverrideKeyword,e),static:E_(Ur.StaticKeyword,e),value:s})}return e.kind===Ur.GetAccessor?l.kind="get":e.kind===Ur.SetAccessor?l.kind="set":!l.static&&e.name.kind===Ur.StringLiteral&&e.name.text==="constructor"&&l.type!==yn.Property&&(l.kind="constructor"),l}case Ur.Constructor:{let i=oun(e),s=(i&&q6(i,e,this.ast))??e.getFirstToken(),l=this.createNode(e,{type:e.body?yn.FunctionExpression:yn.TSEmptyBodyFunctionExpression,range:[e.parameters.pos-1,e.end],async:!1,body:this.convertChild(e.body),declare:!1,expression:!1,generator:!1,id:null,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});l.typeParameters&&this.fixParentLocation(l,l.typeParameters.range);let d=s.kind===Ur.StringLiteral?this.createNode(s,{type:yn.Literal,raw:s.getText(),value:"constructor"}):this.createNode(e,{type:yn.Identifier,range:[s.getStart(this.ast),s.end],decorators:[],name:"constructor",optional:!1,typeAnnotation:void 0}),h=E_(Ur.StaticKeyword,e);return this.createNode(e,{type:E_(Ur.AbstractKeyword,e)?yn.TSAbstractMethodDefinition:yn.MethodDefinition,accessibility:EV(e),computed:!1,decorators:[],key:d,kind:h?"method":"constructor",optional:!1,override:!1,static:h,value:l})}case Ur.FunctionExpression:return this.createNode(e,{type:yn.FunctionExpression,async:E_(Ur.AsyncKeyword,e),body:this.convertChild(e.body),declare:!1,expression:!1,generator:!!e.asteriskToken,id:this.convertChild(e.name),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case Ur.SuperKeyword:return this.createNode(e,{type:yn.Super});case Ur.ArrayBindingPattern:return this.createNode(e,{type:yn.ArrayPattern,decorators:[],elements:e.elements.map(i=>this.convertPattern(i)),optional:!1,typeAnnotation:void 0});case Ur.OmittedExpression:return null;case Ur.ObjectBindingPattern:return this.createNode(e,{type:yn.ObjectPattern,decorators:[],optional:!1,properties:e.elements.map(i=>this.convertPattern(i)),typeAnnotation:void 0});case Ur.BindingElement:{if(r.kind===Ur.ArrayBindingPattern){let s=this.convertChild(e.name,r);return e.initializer?this.createNode(e,{type:yn.AssignmentPattern,decorators:[],left:s,optional:!1,right:this.convertChild(e.initializer),typeAnnotation:void 0}):e.dotDotDotToken?this.createNode(e,{type:yn.RestElement,argument:s,decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):s}let i;return e.dotDotDotToken?i=this.createNode(e,{type:yn.RestElement,argument:this.convertChild(e.propertyName??e.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):i=this.createNode(e,{type:yn.Property,computed:!!(e.propertyName&&e.propertyName.kind===Ur.ComputedPropertyName),key:this.convertChild(e.propertyName??e.name),kind:"init",method:!1,optional:!1,shorthand:!e.propertyName,value:this.convertChild(e.name)}),e.initializer&&(i.value=this.createNode(e,{type:yn.AssignmentPattern,range:[e.name.getStart(this.ast),e.initializer.end],decorators:[],left:this.convertChild(e.name),optional:!1,right:this.convertChild(e.initializer),typeAnnotation:void 0})),i}case Ur.ArrowFunction:return this.createNode(e,{type:yn.ArrowFunctionExpression,async:E_(Ur.AsyncKeyword,e),body:this.convertChild(e.body),expression:e.body.kind!==Ur.Block,generator:!1,id:null,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case Ur.YieldExpression:return this.createNode(e,{type:yn.YieldExpression,argument:this.convertChild(e.expression),delegate:!!e.asteriskToken});case Ur.AwaitExpression:return this.createNode(e,{type:yn.AwaitExpression,argument:this.convertChild(e.expression)});case Ur.NoSubstitutionTemplateLiteral:return this.createNode(e,{type:yn.TemplateLiteral,expressions:[],quasis:[this.createNode(e,{type:yn.TemplateElement,tail:!0,value:{cooked:e.text,raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-1)}})]});case Ur.TemplateExpression:{let i=this.createNode(e,{type:yn.TemplateLiteral,expressions:[],quasis:[this.convertChild(e.head)]});return e.templateSpans.forEach(s=>{i.expressions.push(this.convertChild(s.expression)),i.quasis.push(this.convertChild(s.literal))}),i}case Ur.TaggedTemplateExpression:return e.tag.flags&PD.OptionalChain&&this.#e(e,"Tagged template expressions are not permitted in an optional chain."),this.createNode(e,{type:yn.TaggedTemplateExpression,quasi:this.convertChild(e.template),tag:this.convertChild(e.tag),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case Ur.TemplateHead:case Ur.TemplateMiddle:case Ur.TemplateTail:{let i=e.kind===Ur.TemplateTail;return this.createNode(e,{type:yn.TemplateElement,tail:i,value:{cooked:e.text,raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-(i?1:2))}})}case Ur.SpreadAssignment:case Ur.SpreadElement:return this.allowPattern?this.createNode(e,{type:yn.RestElement,argument:this.convertPattern(e.expression),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):this.createNode(e,{type:yn.SpreadElement,argument:this.convertChild(e.expression)});case Ur.Parameter:{let i,s;return e.dotDotDotToken?i=s=this.createNode(e,{type:yn.RestElement,argument:this.convertChild(e.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):e.initializer?(i=this.convertChild(e.name),s=this.createNode(e,{type:yn.AssignmentPattern,range:[e.name.getStart(this.ast),e.initializer.end],decorators:[],left:i,optional:!1,right:this.convertChild(e.initializer),typeAnnotation:void 0}),E8(e)&&(s.range[0]=i.range[0],s.loc=DV(s.range,this.ast))):i=s=this.convertChild(e.name,r),e.type&&(i.typeAnnotation=this.convertTypeAnnotation(e.type,e),this.fixParentLocation(i,i.typeAnnotation.range)),e.questionToken&&(e.questionToken.end>i.range[1]&&(i.range[1]=e.questionToken.end,i.loc.end=fDe(i.range[1],this.ast)),i.optional=!0),E8(e)?this.createNode(e,{type:yn.TSParameterProperty,accessibility:EV(e),decorators:[],override:E_(Ur.OverrideKeyword,e),parameter:s,readonly:E_(Ur.ReadonlyKeyword,e),static:E_(Ur.StaticKeyword,e)}):s}case Ur.ClassDeclaration:!e.name&&(!E_(Xl.ExportKeyword,e)||!E_(Xl.DefaultKeyword,e))&&this.#e(e,"A class declaration without the 'default' modifier must have a name.");case Ur.ClassExpression:{let i=e.heritageClauses??[],s=e.kind===Ur.ClassDeclaration?yn.ClassDeclaration:yn.ClassExpression,l,d;for(let S of i){let{token:b,types:A}=S;A.length===0&&this.#e(S,`'${Bm(b)}' list cannot be empty.`),b===Ur.ExtendsKeyword?(l&&this.#e(S,"'extends' clause already seen."),d&&this.#e(S,"'extends' clause must precede 'implements' clause."),A.length>1&&this.#e(A[1],"Classes can only extend a single class."),l??(l=S)):b===Ur.ImplementsKeyword&&(d&&this.#e(S,"'implements' clause already seen."),d??(d=S))}let h=this.createNode(e,{type:s,abstract:E_(Ur.AbstractKeyword,e),body:this.createNode(e,{type:yn.ClassBody,range:[e.members.pos-1,e.end],body:this.convertChildren(e.members.filter(iun))}),declare:E_(Ur.DeclareKeyword,e),decorators:this.convertChildren(tee(e)??[]),id:this.convertChild(e.name),implements:this.convertChildren(d?.types??[]),superClass:l?.types[0]?this.convertChild(l.types[0].expression):null,superTypeArguments:void 0,typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return l?.types[0]?.typeArguments&&(h.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(l.types[0].typeArguments,l.types[0])),this.fixExports(e,h)}case Ur.ModuleBlock:return this.createNode(e,{type:yn.TSModuleBlock,body:this.convertBodyExpressions(e.statements,e)});case Ur.ImportDeclaration:{this.assertModuleSpecifier(e,!1);let i=this.createNode(e,this.#n({type:yn.ImportDeclaration,attributes:this.convertImportAttributes(e),importKind:"value",source:this.convertChild(e.moduleSpecifier),specifiers:[]},"assertions","attributes",!0));if(e.importClause&&(e.importClause.isTypeOnly&&(i.importKind="type"),e.importClause.name&&i.specifiers.push(this.convertChild(e.importClause)),e.importClause.namedBindings))switch(e.importClause.namedBindings.kind){case Ur.NamespaceImport:i.specifiers.push(this.convertChild(e.importClause.namedBindings));break;case Ur.NamedImports:i.specifiers.push(...this.convertChildren(e.importClause.namedBindings.elements));break}return i}case Ur.NamespaceImport:return this.createNode(e,{type:yn.ImportNamespaceSpecifier,local:this.convertChild(e.name)});case Ur.ImportSpecifier:return this.createNode(e,{type:yn.ImportSpecifier,imported:this.convertChild(e.propertyName??e.name),importKind:e.isTypeOnly?"type":"value",local:this.convertChild(e.name)});case Ur.ImportClause:{let i=this.convertChild(e.name);return this.createNode(e,{type:yn.ImportDefaultSpecifier,range:i.range,local:i})}case Ur.ExportDeclaration:return e.exportClause?.kind===Ur.NamedExports?(this.assertModuleSpecifier(e,!0),this.createNode(e,this.#n({type:yn.ExportNamedDeclaration,attributes:this.convertImportAttributes(e),declaration:null,exportKind:e.isTypeOnly?"type":"value",source:this.convertChild(e.moduleSpecifier),specifiers:this.convertChildren(e.exportClause.elements,e)},"assertions","attributes",!0))):(this.assertModuleSpecifier(e,!1),this.createNode(e,this.#n({type:yn.ExportAllDeclaration,attributes:this.convertImportAttributes(e),exported:e.exportClause?.kind===Ur.NamespaceExport?this.convertChild(e.exportClause.name):null,exportKind:e.isTypeOnly?"type":"value",source:this.convertChild(e.moduleSpecifier)},"assertions","attributes",!0)));case Ur.ExportSpecifier:{let i=e.propertyName??e.name;return i.kind===Ur.StringLiteral&&r.kind===Ur.ExportDeclaration&&r.moduleSpecifier?.kind!==Ur.StringLiteral&&this.#e(i,"A string literal cannot be used as a local exported binding without `from`."),this.createNode(e,{type:yn.ExportSpecifier,exported:this.convertChild(e.name),exportKind:e.isTypeOnly?"type":"value",local:this.convertChild(i)})}case Ur.ExportAssignment:return e.isExportEquals?this.createNode(e,{type:yn.TSExportAssignment,expression:this.convertChild(e.expression)}):this.createNode(e,{type:yn.ExportDefaultDeclaration,declaration:this.convertChild(e.expression),exportKind:"value"});case Ur.PrefixUnaryExpression:case Ur.PostfixUnaryExpression:{let i=mB(e.operator);return i==="++"||i==="--"?(TYe(e.operand)||this.#e(e.operand,"Invalid left-hand side expression in unary operation"),this.createNode(e,{type:yn.UpdateExpression,argument:this.convertChild(e.operand),operator:i,prefix:e.kind===Ur.PrefixUnaryExpression})):this.createNode(e,{type:yn.UnaryExpression,argument:this.convertChild(e.operand),operator:i,prefix:e.kind===Ur.PrefixUnaryExpression})}case Ur.DeleteExpression:return this.createNode(e,{type:yn.UnaryExpression,argument:this.convertChild(e.expression),operator:"delete",prefix:!0});case Ur.VoidExpression:return this.createNode(e,{type:yn.UnaryExpression,argument:this.convertChild(e.expression),operator:"void",prefix:!0});case Ur.TypeOfExpression:return this.createNode(e,{type:yn.UnaryExpression,argument:this.convertChild(e.expression),operator:"typeof",prefix:!0});case Ur.TypeOperator:return this.createNode(e,{type:yn.TSTypeOperator,operator:mB(e.operator),typeAnnotation:this.convertChild(e.type)});case Ur.BinaryExpression:{if(e.operatorToken.kind!==Ur.InKeyword&&e.left.kind===Ur.PrivateIdentifier?this.#e(e.left,"Private identifiers cannot appear on the right-hand-side of an 'in' expression."):e.right.kind===Ur.PrivateIdentifier&&this.#e(e.right,"Private identifiers are only allowed on the left-hand-side of an 'in' expression."),aun(e.operatorToken)){let s=this.createNode(e,{type:yn.SequenceExpression,expressions:[]}),l=this.convertChild(e.left);return l.type===yn.SequenceExpression&&e.left.kind!==Ur.ParenthesizedExpression?s.expressions.push(...l.expressions):s.expressions.push(l),s.expressions.push(this.convertChild(e.right)),s}let i=lun(e.operatorToken);return this.allowPattern&&i.type===yn.AssignmentExpression?this.createNode(e,{type:yn.AssignmentPattern,decorators:[],left:this.convertPattern(e.left,e),optional:!1,right:this.convertChild(e.right),typeAnnotation:void 0}):this.createNode(e,{...i,left:this.converter(e.left,e,i.type===yn.AssignmentExpression),right:this.convertChild(e.right)})}case Ur.PropertyAccessExpression:{let i=this.convertChild(e.expression),s=this.convertChild(e.name),l=this.createNode(e,{type:yn.MemberExpression,computed:!1,object:i,optional:e.questionDotToken!=null,property:s});return this.convertChainExpression(l,e)}case Ur.ElementAccessExpression:{let i=this.convertChild(e.expression),s=this.convertChild(e.argumentExpression),l=this.createNode(e,{type:yn.MemberExpression,computed:!0,object:i,optional:e.questionDotToken!=null,property:s});return this.convertChainExpression(l,e)}case Ur.CallExpression:{if(e.expression.kind===Ur.ImportKeyword)return e.arguments.length!==1&&e.arguments.length!==2&&this.#e(e.arguments[2]??e,"Dynamic import requires exactly one or two arguments."),this.createNode(e,this.#n({type:yn.ImportExpression,options:e.arguments[1]?this.convertChild(e.arguments[1]):null,source:this.convertChild(e.arguments[0])},"attributes","options",!0));let i=this.convertChild(e.expression),s=this.convertChildren(e.arguments),l=e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e),d=this.createNode(e,{type:yn.CallExpression,arguments:s,callee:i,optional:e.questionDotToken!=null,typeArguments:l});return this.convertChainExpression(d,e)}case Ur.NewExpression:{let i=e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e);return this.createNode(e,{type:yn.NewExpression,arguments:this.convertChildren(e.arguments??[]),callee:this.convertChild(e.expression),typeArguments:i})}case Ur.ConditionalExpression:return this.createNode(e,{type:yn.ConditionalExpression,alternate:this.convertChild(e.whenFalse),consequent:this.convertChild(e.whenTrue),test:this.convertChild(e.condition)});case Ur.MetaProperty:return this.createNode(e,{type:yn.MetaProperty,meta:this.createNode(e.getFirstToken(),{type:yn.Identifier,decorators:[],name:mB(e.keywordToken),optional:!1,typeAnnotation:void 0}),property:this.convertChild(e.name)});case Ur.Decorator:return this.createNode(e,{type:yn.Decorator,expression:this.convertChild(e.expression)});case Ur.StringLiteral:return this.createNode(e,{type:yn.Literal,raw:e.getText(),value:r.kind===Ur.JsxAttribute?qBt(e.text):e.text});case Ur.NumericLiteral:return this.createNode(e,{type:yn.Literal,raw:e.getText(),value:Number(e.text)});case Ur.BigIntLiteral:{let i=KY(e,this.ast),s=this.ast.text.slice(i[0],i[1]),l=ree(0,s.slice(0,-1),"_",""),d=typeof BigInt<"u"?BigInt(l):null;return this.createNode(e,{type:yn.Literal,range:i,bigint:d==null?l:String(d),raw:s,value:d})}case Ur.RegularExpressionLiteral:{let i=e.text.slice(1,e.text.lastIndexOf("/")),s=e.text.slice(e.text.lastIndexOf("/")+1),l=null;try{l=new RegExp(i,s)}catch{}return this.createNode(e,{type:yn.Literal,raw:e.text,regex:{flags:s,pattern:i},value:l})}case Ur.TrueKeyword:return this.createNode(e,{type:yn.Literal,raw:"true",value:!0});case Ur.FalseKeyword:return this.createNode(e,{type:yn.Literal,raw:"false",value:!1});case Ur.NullKeyword:return this.createNode(e,{type:yn.Literal,raw:"null",value:null});case Ur.EmptyStatement:return this.createNode(e,{type:yn.EmptyStatement});case Ur.DebuggerStatement:return this.createNode(e,{type:yn.DebuggerStatement});case Ur.JsxElement:return this.createNode(e,{type:yn.JSXElement,children:this.convertChildren(e.children),closingElement:this.convertChild(e.closingElement),openingElement:this.convertChild(e.openingElement)});case Ur.JsxFragment:return this.createNode(e,{type:yn.JSXFragment,children:this.convertChildren(e.children),closingFragment:this.convertChild(e.closingFragment),openingFragment:this.convertChild(e.openingFragment)});case Ur.JsxSelfClosingElement:return this.createNode(e,{type:yn.JSXElement,children:[],closingElement:null,openingElement:this.createNode(e,{type:yn.JSXOpeningElement,range:KY(e,this.ast),attributes:this.convertChildren(e.attributes.properties),name:this.convertJSXTagName(e.tagName,e),selfClosing:!0,typeArguments:e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):void 0})});case Ur.JsxOpeningElement:return this.createNode(e,{type:yn.JSXOpeningElement,attributes:this.convertChildren(e.attributes.properties),name:this.convertJSXTagName(e.tagName,e),selfClosing:!1,typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case Ur.JsxClosingElement:return this.createNode(e,{type:yn.JSXClosingElement,name:this.convertJSXTagName(e.tagName,e)});case Ur.JsxOpeningFragment:return this.createNode(e,{type:yn.JSXOpeningFragment});case Ur.JsxClosingFragment:return this.createNode(e,{type:yn.JSXClosingFragment});case Ur.JsxExpression:{let i=e.expression?this.convertChild(e.expression):this.createNode(e,{type:yn.JSXEmptyExpression,range:[e.getStart(this.ast)+1,e.getEnd()-1]});return e.dotDotDotToken?this.createNode(e,{type:yn.JSXSpreadChild,expression:i}):this.createNode(e,{type:yn.JSXExpressionContainer,expression:i})}case Ur.JsxAttribute:return this.createNode(e,{type:yn.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(e.name),value:this.convertChild(e.initializer)});case Ur.JsxText:{let i=e.getFullStart(),s=e.getEnd(),l=this.ast.text.slice(i,s);return this.createNode(e,{type:yn.JSXText,range:[i,s],raw:l,value:qBt(l)})}case Ur.JsxSpreadAttribute:return this.createNode(e,{type:yn.JSXSpreadAttribute,argument:this.convertChild(e.expression)});case Ur.QualifiedName:return this.createNode(e,{type:yn.TSQualifiedName,left:this.convertChild(e.left),right:this.convertChild(e.right)});case Ur.TypeReference:return this.createNode(e,{type:yn.TSTypeReference,typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e),typeName:this.convertChild(e.typeName)});case Ur.TypeParameter:return this.createNode(e,{type:yn.TSTypeParameter,const:E_(Ur.ConstKeyword,e),constraint:e.constraint&&this.convertChild(e.constraint),default:e.default?this.convertChild(e.default):void 0,in:E_(Ur.InKeyword,e),name:this.convertChild(e.name),out:E_(Ur.OutKeyword,e)});case Ur.ThisType:return this.createNode(e,{type:yn.TSThisType});case Ur.AnyKeyword:case Ur.BigIntKeyword:case Ur.BooleanKeyword:case Ur.NeverKeyword:case Ur.NumberKeyword:case Ur.ObjectKeyword:case Ur.StringKeyword:case Ur.SymbolKeyword:case Ur.UnknownKeyword:case Ur.VoidKeyword:case Ur.UndefinedKeyword:case Ur.IntrinsicKeyword:return this.createNode(e,{type:yn[`TS${Ur[e.kind]}`]});case Ur.NonNullExpression:{let i=this.createNode(e,{type:yn.TSNonNullExpression,expression:this.convertChild(e.expression)});return this.convertChainExpression(i,e)}case Ur.TypeLiteral:return this.createNode(e,{type:yn.TSTypeLiteral,members:this.convertChildren(e.members)});case Ur.ArrayType:return this.createNode(e,{type:yn.TSArrayType,elementType:this.convertChild(e.elementType)});case Ur.IndexedAccessType:return this.createNode(e,{type:yn.TSIndexedAccessType,indexType:this.convertChild(e.indexType),objectType:this.convertChild(e.objectType)});case Ur.ConditionalType:return this.createNode(e,{type:yn.TSConditionalType,checkType:this.convertChild(e.checkType),extendsType:this.convertChild(e.extendsType),falseType:this.convertChild(e.falseType),trueType:this.convertChild(e.trueType)});case Ur.TypeQuery:return this.createNode(e,{type:yn.TSTypeQuery,exprName:this.convertChild(e.exprName),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case Ur.MappedType:return e.members&&e.members.length>0&&this.#e(e.members[0],"A mapped type may not declare properties or methods."),this.createNode(e,this.#i({type:yn.TSMappedType,constraint:this.convertChild(e.typeParameter.constraint),key:this.convertChild(e.typeParameter.name),nameType:this.convertChild(e.nameType)??null,optional:e.questionToken?e.questionToken.kind===Ur.QuestionToken||mB(e.questionToken.kind):!1,readonly:e.readonlyToken?e.readonlyToken.kind===Ur.ReadonlyKeyword||mB(e.readonlyToken.kind):void 0,typeAnnotation:e.type&&this.convertChild(e.type)},"typeParameter","'constraint' and 'key'",this.convertChild(e.typeParameter)));case Ur.ParenthesizedExpression:return this.convertChild(e.expression,r);case Ur.TypeAliasDeclaration:{let i=this.createNode(e,{type:yn.TSTypeAliasDeclaration,declare:E_(Ur.DeclareKeyword,e),id:this.convertChild(e.name),typeAnnotation:this.convertChild(e.type),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,i)}case Ur.MethodSignature:return this.convertMethodSignature(e);case Ur.PropertySignature:{let{initializer:i}=e;return i&&this.#e(i,"A property signature cannot have an initializer."),this.createNode(e,{type:yn.TSPropertySignature,accessibility:EV(e),computed:QY(e.name),key:this.convertChild(e.name),optional:JBt(e),readonly:E_(Ur.ReadonlyKeyword,e),static:E_(Ur.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e)})}case Ur.IndexSignature:return this.createNode(e,{type:yn.TSIndexSignature,accessibility:EV(e),parameters:this.convertChildren(e.parameters),readonly:E_(Ur.ReadonlyKeyword,e),static:E_(Ur.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e)});case Ur.ConstructorType:return this.createNode(e,{type:yn.TSConstructorType,abstract:E_(Ur.AbstractKeyword,e),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case Ur.FunctionType:{let{modifiers:i}=e;i&&this.#e(i[0],"A function type cannot have modifiers.")}case Ur.ConstructSignature:case Ur.CallSignature:{let i=e.kind===Ur.ConstructSignature?yn.TSConstructSignatureDeclaration:e.kind===Ur.CallSignature?yn.TSCallSignatureDeclaration:yn.TSFunctionType;return this.createNode(e,{type:i,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)})}case Ur.ExpressionWithTypeArguments:{let i=r.kind,s=i===Ur.InterfaceDeclaration?yn.TSInterfaceHeritage:i===Ur.HeritageClause?yn.TSClassImplements:yn.TSInstantiationExpression;return this.createNode(e,{type:s,expression:this.convertChild(e.expression),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)})}case Ur.InterfaceDeclaration:{let i=e.heritageClauses??[],s=[],l=!1;for(let h of i){h.token!==Ur.ExtendsKeyword&&this.#e(h,h.token===Ur.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token."),l&&this.#e(h,"'extends' clause already seen."),l=!0;for(let S of h.types)(!WUt(S.expression)||Uon(S.expression))&&this.#e(S,"Interface declaration can only extend an identifier/qualified name with optional type arguments."),s.push(this.convertChild(S,e))}let d=this.createNode(e,{type:yn.TSInterfaceDeclaration,body:this.createNode(e,{type:yn.TSInterfaceBody,range:[e.members.pos-1,e.end],body:this.convertChildren(e.members)}),declare:E_(Ur.DeclareKeyword,e),extends:s,id:this.convertChild(e.name),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,d)}case Ur.TypePredicate:{let i=this.createNode(e,{type:yn.TSTypePredicate,asserts:e.assertsModifier!=null,parameterName:this.convertChild(e.parameterName),typeAnnotation:null});return e.type&&(i.typeAnnotation=this.convertTypeAnnotation(e.type,e),i.typeAnnotation.loc=i.typeAnnotation.typeAnnotation.loc,i.typeAnnotation.range=i.typeAnnotation.typeAnnotation.range),i}case Ur.ImportType:{let i=KY(e,this.ast);if(e.isTypeOf){let S=q6(e.getFirstToken(),e,this.ast);i[0]=S.getStart(this.ast)}let s=null;if(e.attributes){let S=this.createNode(e.attributes,{type:yn.ObjectExpression,properties:e.attributes.elements.map(X=>this.createNode(X,{type:yn.Property,computed:!1,key:this.convertChild(X.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.convertChild(X.value)}))}),b=q6(e.argument,e,this.ast),A=q6(b,e,this.ast),L=q6(e.attributes,e,this.ast),V=L.kind===Xl.CommaToken?q6(L,e,this.ast):L,j=q6(A,e,this.ast),ie=KY(j,this.ast),te=j.kind===Xl.AssertKeyword?"assert":"with";s=this.createNode(e,{type:yn.ObjectExpression,range:[A.getStart(this.ast),V.end],properties:[this.createNode(e,{type:yn.Property,range:[ie[0],e.attributes.end],computed:!1,key:this.createNode(e,{type:yn.Identifier,range:ie,decorators:[],name:te,optional:!1,typeAnnotation:void 0}),kind:"init",method:!1,optional:!1,shorthand:!1,value:S})]})}let l=this.convertChild(e.argument),d=l.literal,h=this.createNode(e,this.#i({type:yn.TSImportType,range:i,options:s,qualifier:this.convertChild(e.qualifier),source:d,typeArguments:e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):null},"argument","source",l));return e.isTypeOf?this.createNode(e,{type:yn.TSTypeQuery,exprName:h,typeArguments:void 0}):h}case Ur.EnumDeclaration:{let i=this.convertChildren(e.members),s=this.createNode(e,this.#i({type:yn.TSEnumDeclaration,body:this.createNode(e,{type:yn.TSEnumBody,range:[e.members.pos-1,e.end],members:i}),const:E_(Ur.ConstKeyword,e),declare:E_(Ur.DeclareKeyword,e),id:this.convertChild(e.name)},"members","'body.members'",this.convertChildren(e.members)));return this.fixExports(e,s)}case Ur.EnumMember:{let i=e.name.kind===Xl.ComputedPropertyName;return i&&this.#e(e.name,"Computed property names are not allowed in enums."),(e.name.kind===Ur.NumericLiteral||e.name.kind===Ur.BigIntLiteral)&&this.#e(e.name,"An enum member cannot have a numeric name."),this.createNode(e,this.#i({type:yn.TSEnumMember,id:this.convertChild(e.name),initializer:e.initializer&&this.convertChild(e.initializer)},"computed",void 0,i))}case Ur.ModuleDeclaration:{let i=E_(Ur.DeclareKeyword,e),s=this.createNode(e,{type:yn.TSModuleDeclaration,...(()=>{if(e.flags&PD.GlobalAugmentation){let d=this.convertChild(e.name),h=this.convertChild(e.body);return(h==null||h.type===yn.TSModuleDeclaration)&&this.#e(e.body??e,"Expected a valid module body"),d.type!==yn.Identifier&&this.#e(e.name,"global module augmentation must have an Identifier id"),{body:h,declare:!1,global:!1,id:d,kind:"global"}}if(uee(e.name)){let d=this.convertChild(e.body);return{kind:"module",...d!=null?{body:d}:{},declare:!1,global:!1,id:this.convertChild(e.name)}}e.body==null&&this.#e(e,"Expected a module body"),e.name.kind!==Xl.Identifier&&this.#e(e.name,"`namespace`s must have an Identifier id");let l=this.createNode(e.name,{type:yn.Identifier,range:[e.name.getStart(this.ast),e.name.getEnd()],decorators:[],name:e.name.text,optional:!1,typeAnnotation:void 0});for(;e.body&&f_e(e.body)&&e.body.name;){e=e.body,i||(i=E_(Ur.DeclareKeyword,e));let d=e.name,h=this.createNode(d,{type:yn.Identifier,range:[d.getStart(this.ast),d.getEnd()],decorators:[],name:d.text,optional:!1,typeAnnotation:void 0});l=this.createNode(d,{type:yn.TSQualifiedName,range:[l.range[0],h.range[1]],left:l,right:h})}return{body:this.convertChild(e.body),declare:!1,global:!1,id:l,kind:e.flags&PD.Namespace?"namespace":"module"}})()});return s.declare=i,e.flags&PD.GlobalAugmentation&&(s.global=!0),this.fixExports(e,s)}case Ur.ParenthesizedType:return this.convertChild(e.type);case Ur.UnionType:return this.createNode(e,{type:yn.TSUnionType,types:this.convertChildren(e.types)});case Ur.IntersectionType:return this.createNode(e,{type:yn.TSIntersectionType,types:this.convertChildren(e.types)});case Ur.AsExpression:return this.createNode(e,{type:yn.TSAsExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});case Ur.InferType:return this.createNode(e,{type:yn.TSInferType,typeParameter:this.convertChild(e.typeParameter)});case Ur.LiteralType:return e.literal.kind===Ur.NullKeyword?this.createNode(e.literal,{type:yn.TSNullKeyword}):this.createNode(e,{type:yn.TSLiteralType,literal:this.convertChild(e.literal)});case Ur.TypeAssertionExpression:return this.createNode(e,{type:yn.TSTypeAssertion,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});case Ur.ImportEqualsDeclaration:return this.fixExports(e,this.createNode(e,{type:yn.TSImportEqualsDeclaration,id:this.convertChild(e.name),importKind:e.isTypeOnly?"type":"value",moduleReference:this.convertChild(e.moduleReference)}));case Ur.ExternalModuleReference:return e.expression.kind!==Ur.StringLiteral&&this.#e(e.expression,"String literal expected."),this.createNode(e,{type:yn.TSExternalModuleReference,expression:this.convertChild(e.expression)});case Ur.NamespaceExportDeclaration:return this.createNode(e,{type:yn.TSNamespaceExportDeclaration,id:this.convertChild(e.name)});case Ur.AbstractKeyword:return this.createNode(e,{type:yn.TSAbstractKeyword});case Ur.TupleType:{let i=this.convertChildren(e.elements);return this.createNode(e,{type:yn.TSTupleType,elementTypes:i})}case Ur.NamedTupleMember:{let i=this.createNode(e,{type:yn.TSNamedTupleMember,elementType:this.convertChild(e.type,e),label:this.convertChild(e.name,e),optional:e.questionToken!=null});return e.dotDotDotToken?(i.range[0]=i.label.range[0],i.loc.start=i.label.loc.start,this.createNode(e,{type:yn.TSRestType,typeAnnotation:i})):i}case Ur.OptionalType:return this.createNode(e,{type:yn.TSOptionalType,typeAnnotation:this.convertChild(e.type)});case Ur.RestType:return this.createNode(e,{type:yn.TSRestType,typeAnnotation:this.convertChild(e.type)});case Ur.TemplateLiteralType:{let i=this.createNode(e,{type:yn.TSTemplateLiteralType,quasis:[this.convertChild(e.head)],types:[]});return e.templateSpans.forEach(s=>{i.types.push(this.convertChild(s.type)),i.quasis.push(this.convertChild(s.literal))}),i}case Ur.ClassStaticBlockDeclaration:return this.createNode(e,{type:yn.StaticBlock,body:this.convertBodyExpressions(e.body.statements,e)});case Ur.AssertEntry:case Ur.ImportAttribute:return this.createNode(e,{type:yn.ImportAttribute,key:this.convertChild(e.name),value:this.convertChild(e.value)});case Ur.SatisfiesExpression:return this.createNode(e,{type:yn.TSSatisfiesExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});default:return this.deeplyCopy(e)}}createNode(e,r){let i=r;return i.range??(i.range=KY(e,this.ast)),i.loc??(i.loc=DV(i.range,this.ast)),i&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(i,e),i}convertProgram(){return this.converter(this.ast)}deeplyCopy(e){e.kind===Xl.JSDocFunctionType&&this.#e(e,"JSDoc types can only be used inside documentation comments.");let r=`TS${Ur[e.kind]}`;if(this.options.errorOnUnknownASTType&&!yn[r])throw new Error(`Unknown AST_NODE_TYPE: "${r}"`);let i=this.createNode(e,{type:r});"type"in e&&(i.typeAnnotation=e.type&&"kind"in e.type&&Yon(e.type)?this.convertTypeAnnotation(e.type,e):null),"typeArguments"in e&&(i.typeArguments=e.typeArguments&&"pos"in e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):null),"typeParameters"in e&&(i.typeParameters=e.typeParameters&&"pos"in e.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters):null);let s=tee(e);s?.length&&(i.decorators=this.convertChildren(s));let l=new Set(["_children","decorators","end","flags","heritageClauses","illegalDecorators","jsDoc","kind","locals","localSymbol","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(e).filter(([d])=>!l.has(d)).forEach(([d,h])=>{Array.isArray(h)?i[d]=this.convertChildren(h):h&&typeof h=="object"&&h.kind?i[d]=this.convertChild(h):i[d]=h}),i}fixExports(e,r){let i=f_e(e)&&!uee(e.name)?Tun(e):E8(e);if(i?.[0].kind===Ur.ExportKeyword){this.registerTSNodeInNodeMap(e,r);let s=i[0],l=i[1],d=l?.kind===Ur.DefaultKeyword,h=d?q6(l,this.ast,this.ast):q6(s,this.ast,this.ast);if(r.range[0]=h.getStart(this.ast),r.loc=DV(r.range,this.ast),d)return this.createNode(e,{type:yn.ExportDefaultDeclaration,range:[s.getStart(this.ast),r.range[1]],declaration:r,exportKind:"value"});let S=r.type===yn.TSInterfaceDeclaration||r.type===yn.TSTypeAliasDeclaration,b="declare"in r&&r.declare;return this.createNode(e,this.#n({type:yn.ExportNamedDeclaration,range:[s.getStart(this.ast),r.range[1]],attributes:[],declaration:r,exportKind:S||b?"type":"value",source:null,specifiers:[]},"assertions","attributes",!0))}return r}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}registerTSNodeInNodeMap(e,r){r&&this.options.shouldPreserveNodeMaps&&!this.tsNodeToESTreeNodeMap.has(e)&&this.tsNodeToESTreeNodeMap.set(e,r)}};function Lun(e,r,i=e.getSourceFile()){let s=[];for(;;){if(L$t(e.kind))r(e);else{let l=e.getChildren(i);if(l.length===1){e=l[0];continue}for(let d=l.length-1;d>=0;--d)s.push(l[d])}if(s.length===0)break;e=s.pop()}}function Mun(e,r,i=e.getSourceFile()){let s=i.text,l=i.languageVariant!==l$t.JSX;return Lun(e,h=>{if(h.pos!==h.end&&(h.kind!==Xl.JsxText&&son(s,h.pos===0?(A$t(s)??"").length:h.pos,d),l||jun(h)))return con(s,h.end,d)},i);function d(h,S,b){r(s,{end:S,kind:b,pos:h})}}function jun(e){switch(e.kind){case Xl.CloseBraceToken:return e.parent.kind!==Xl.JsxExpression||!tYe(e.parent.parent);case Xl.GreaterThanToken:switch(e.parent.kind){case Xl.JsxClosingElement:case Xl.JsxClosingFragment:return!tYe(e.parent.parent.parent);case Xl.JsxOpeningElement:return e.end!==e.parent.end;case Xl.JsxOpeningFragment:return!1;case Xl.JsxSelfClosingElement:return e.end!==e.parent.end||!tYe(e.parent.parent)}}return!0}function tYe(e){return e.kind===Xl.JsxElement||e.kind===Xl.JsxFragment}var[SVn,bVn]=oin.split(".").map(e=>Number.parseInt(e,10)),xVn=TT.Intrinsic??TT.Any|TT.Unknown|TT.String|TT.Number|TT.BigInt|TT.Boolean|TT.BooleanLiteral|TT.ESSymbol|TT.Void|TT.Undefined|TT.Null|TT.Never|TT.NonPrimitive;function Bun(e,r){let i=[];return Mun(e,(s,l)=>{let d=l.kind===Xl.SingleLineCommentTrivia?rb.Line:rb.Block,h=[l.pos,l.end],S=DV(h,e),b=h[0]+2,A=l.kind===Xl.SingleLineCommentTrivia?h[1]:h[1]-2;i.push({type:d,loc:S,range:h,value:r.slice(b,A)})},e),i}var $un=()=>{};function Uun(e,r,i){let{parseDiagnostics:s}=e;if(s.length)throw Oun(s[0]);let l=new Run(e,{allowInvalidAST:r.allowInvalidAST,errorOnUnknownASTType:r.errorOnUnknownASTType,shouldPreserveNodeMaps:i,suppressDeprecatedPropertyWarnings:r.suppressDeprecatedPropertyWarnings}),d=l.convertProgram();return(!r.range||!r.loc)&&$un(d,{enter:h=>{r.range||delete h.range,r.loc||delete h.loc}}),r.tokens&&(d.tokens=gun(e)),r.comment&&(d.comments=Bun(e,r.codeFullText)),{astMaps:l.getASTMaps(),estree:d}}function GUt(e){if(typeof e!="object"||e==null)return!1;let r=e;return r.kind===Xl.SourceFile&&typeof r.getFullText=="function"}var zun=function(e){return e&&e.__esModule?e:{default:e}},qun=zun({extname:e=>"."+e.split(".").pop()});function Jun(e,r){switch(qun.default.extname(e).toLowerCase()){case iI.Cjs:case iI.Js:case iI.Mjs:return G5.JS;case iI.Cts:case iI.Mts:case iI.Ts:return G5.TS;case iI.Json:return G5.JSON;case iI.Jsx:return G5.JSX;case iI.Tsx:return G5.TSX;default:return r?G5.TSX:G5.TS}}var Vun={default:DYe},Wun=(0,Vun.default)("typescript-eslint:typescript-estree:create-program:createSourceFile");function Gun(e){return Wun("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),GUt(e.code)?e.code:Eln(e.filePath,e.codeFullText,{jsDocParsingMode:e.jsDocParsingMode,languageVersion:FYe.Latest,setExternalModuleIndicator:e.setExternalModuleIndicator},!0,Jun(e.filePath,e.jsx))}var Hun=e=>e,Kun=()=>{},Qun=class{},Zun=()=>!1,Xun=()=>{},Yun=function(e){return e&&e.__esModule?e:{default:e}},epn={},EYe={default:DYe},tpn=Yun({extname:e=>"."+e.split(".").pop()}),rpn=(0,EYe.default)("typescript-eslint:typescript-estree:parseSettings:createParseSettings"),WBt,rYe=null,Kpe={ParseAll:Ype?.ParseAll,ParseForTypeErrors:Ype?.ParseForTypeErrors,ParseForTypeInfo:Ype?.ParseForTypeInfo,ParseNone:Ype?.ParseNone};function npn(e,r={}){let i=ipn(e),s=Zun(r),l,d=typeof r.loggerFn=="function",h=Hun(typeof r.filePath=="string"&&r.filePath!==""?r.filePath:opn(r.jsx),l),S=tpn.default.extname(h).toLowerCase(),b=(()=>{switch(r.jsDocParsingMode){case"all":return Kpe.ParseAll;case"none":return Kpe.ParseNone;case"type-info":return Kpe.ParseForTypeInfo;default:return Kpe.ParseAll}})(),A={loc:r.loc===!0,range:r.range===!0,allowInvalidAST:r.allowInvalidAST===!0,code:e,codeFullText:i,comment:r.comment===!0,comments:[],debugLevel:r.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(r.debugLevel)?new Set(r.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:r.errorOnUnknownASTType===!0,extraFileExtensions:Array.isArray(r.extraFileExtensions)&&r.extraFileExtensions.every(L=>typeof L=="string")?r.extraFileExtensions:[],filePath:h,jsDocParsingMode:b,jsx:r.jsx===!0,log:typeof r.loggerFn=="function"?r.loggerFn:r.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:r.preserveNodeMaps!==!1,programs:Array.isArray(r.programs)?r.programs:null,projects:new Map,projectService:r.projectService||r.project&&r.projectService!==!1&&(void 0).env.TYPESCRIPT_ESLINT_PROJECT_SERVICE==="true"?apn(r.projectService,{jsDocParsingMode:b,tsconfigRootDir:l}):void 0,setExternalModuleIndicator:r.sourceType==="module"||r.sourceType==null&&S===iI.Mjs||r.sourceType==null&&S===iI.Mts?L=>{L.externalModuleIndicator=!0}:void 0,singleRun:s,suppressDeprecatedPropertyWarnings:r.suppressDeprecatedPropertyWarnings??!0,tokens:r.tokens===!0?[]:null,tsconfigMatchCache:WBt??(WBt=new Qun(s?"Infinity":r.cacheLifetime?.glob??void 0)),tsconfigRootDir:l};if(A.projectService&&r.project&&(void 0).env.TYPESCRIPT_ESLINT_IGNORE_PROJECT_AND_PROJECT_SERVICE_ERROR!=="true")throw new Error('Enabling "project" does nothing when "projectService" is enabled. You can remove the "project" setting.');if(A.debugLevel.size>0){let L=[];A.debugLevel.has("typescript-eslint")&&L.push("typescript-eslint:*"),(A.debugLevel.has("eslint")||EYe.default.enabled("eslint:*,-eslint:code-path"))&&L.push("eslint:*,-eslint:code-path"),EYe.default.enable(L.join(","))}if(Array.isArray(r.programs)){if(!r.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");rpn("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!A.programs&&!A.projectService&&(A.projects=new Map),r.jsDocParsingMode==null&&A.projects.size===0&&A.programs==null&&A.projectService==null&&(A.jsDocParsingMode=Kpe.ParseNone),Xun(A,d),A}function ipn(e){return GUt(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function opn(e){return e?"estree.tsx":"estree.ts"}function apn(e,r){let i=typeof e=="object"?e:{};return Kun(i.allowDefaultProject),rYe??(rYe=(0,epn.createProjectService)({options:i,...r})),rYe}var spn={default:DYe},TVn=(0,spn.default)("typescript-eslint:typescript-estree:parser");function cpn(e,r){let{ast:i}=lpn(e,r,!1);return i}function lpn(e,r,i){let s=npn(e,r);if(r?.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let l=Gun(s),{astMaps:d,estree:h}=Uun(l,s,i);return{ast:h,esTreeNodeToTSNodeMap:d.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:d.tsNodeToESTreeNodeMap}}function upn(e,r){let i=new SyntaxError(e+" ("+r.loc.start.line+":"+r.loc.start.column+")");return Object.assign(i,r)}var ppn=upn;function _pn(e){let r=[];for(let i of e)try{return i()}catch(s){r.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:r})}var dpn=Array.prototype.findLast??function(e){for(let r=this.length-1;r>=0;r--){let i=this[r];if(e(i,r,this))return i}},fpn=AYe("findLast",function(){if(Array.isArray(this))return dpn}),mpn=fpn;function hpn(e){return this[e<0?this.length+e:e]}var gpn=AYe("at",function(){if(Array.isArray(this)||typeof this=="string")return hpn}),ypn=gpn;function Q5(e){let r=e.range?.[0]??e.start,i=(e.declaration?.decorators??e.decorators)?.[0];return i?Math.min(Q5(i),r):r}function x8(e){return e.range?.[1]??e.end}function vpn(e){let r=new Set(e);return i=>r.has(i?.type)}var uet=vpn,Spn=uet(["Block","CommentBlock","MultiLine"]),pet=Spn,bpn=uet(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),xpn=bpn,nYe=new WeakMap;function Tpn(e){return nYe.has(e)||nYe.set(e,pet(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),nYe.get(e)}var Epn=Tpn;function kpn(e){if(!pet(e))return!1;let r=`*${e.value}*`.split(` +`);return r.length>1&&r.every(i=>i.trimStart()[0]==="*")}var iYe=new WeakMap;function Cpn(e){return iYe.has(e)||iYe.set(e,kpn(e)),iYe.get(e)}var GBt=Cpn;function Dpn(e){if(e.length<2)return;let r;for(let i=e.length-1;i>=0;i--){let s=e[i];if(r&&x8(s)===Q5(r)&&GBt(s)&&GBt(r)&&(e.splice(i+1,1),s.value+="*//*"+r.value,s.range=[Q5(s),x8(r)]),!xpn(s)&&!pet(s))throw new TypeError(`Unknown comment type: "${s.type}".`);r=s}}var Apn=Dpn;function wpn(e){return e!==null&&typeof e=="object"}var Ipn=wpn,Qpe=null;function a_e(e){if(Qpe!==null&&typeof Qpe.property){let r=Qpe;return Qpe=a_e.prototype=null,r}return Qpe=a_e.prototype=e??Object.create(null),new a_e}var Ppn=10;for(let e=0;e<=Ppn;e++)a_e();function Npn(e){return a_e(e)}function Opn(e,r="type"){Npn(e);function i(s){let l=s[r],d=e[l];if(!Array.isArray(d))throw Object.assign(new Error(`Missing visitor keys for '${l}'.`),{node:s});return d}return i}var Fpn=Opn,Qr=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],Rpn={AccessorProperty:Qr[0],AnyTypeAnnotation:Qr[1],ArgumentPlaceholder:Qr[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:Qr[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:Qr[3],AsExpression:Qr[4],AssignmentExpression:Qr[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:Qr[6],BigIntLiteral:Qr[1],BigIntLiteralTypeAnnotation:Qr[1],BigIntTypeAnnotation:Qr[1],BinaryExpression:Qr[5],BindExpression:["object","callee"],BlockStatement:Qr[7],BooleanLiteral:Qr[1],BooleanLiteralTypeAnnotation:Qr[1],BooleanTypeAnnotation:Qr[1],BreakStatement:Qr[8],CallExpression:Qr[9],CatchClause:["param","body"],ChainExpression:Qr[3],ClassAccessorProperty:Qr[0],ClassBody:Qr[10],ClassDeclaration:Qr[11],ClassExpression:Qr[11],ClassImplements:Qr[12],ClassMethod:Qr[13],ClassPrivateMethod:Qr[13],ClassPrivateProperty:Qr[14],ClassProperty:Qr[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:Qr[15],ConditionalExpression:Qr[16],ConditionalTypeAnnotation:Qr[17],ContinueStatement:Qr[8],DebuggerStatement:Qr[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:Qr[18],DeclareEnum:Qr[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:Qr[20],DeclareFunction:["id","predicate"],DeclareHook:Qr[21],DeclareInterface:Qr[22],DeclareModule:Qr[19],DeclareModuleExports:Qr[23],DeclareNamespace:Qr[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:Qr[24],DeclareVariable:Qr[21],Decorator:Qr[3],Directive:Qr[18],DirectiveLiteral:Qr[1],DoExpression:Qr[10],DoWhileStatement:Qr[25],EmptyStatement:Qr[1],EmptyTypeAnnotation:Qr[1],EnumBigIntBody:Qr[26],EnumBigIntMember:Qr[27],EnumBooleanBody:Qr[26],EnumBooleanMember:Qr[27],EnumDeclaration:Qr[19],EnumDefaultedMember:Qr[21],EnumNumberBody:Qr[26],EnumNumberMember:Qr[27],EnumStringBody:Qr[26],EnumStringMember:Qr[27],EnumSymbolBody:Qr[26],ExistsTypeAnnotation:Qr[1],ExperimentalRestProperty:Qr[6],ExperimentalSpreadProperty:Qr[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:Qr[28],ExportNamedDeclaration:Qr[20],ExportNamespaceSpecifier:Qr[28],ExportSpecifier:["local","exported"],ExpressionStatement:Qr[3],File:["program"],ForInStatement:Qr[29],ForOfStatement:Qr[29],ForStatement:["init","test","update","body"],FunctionDeclaration:Qr[30],FunctionExpression:Qr[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:Qr[15],GenericTypeAnnotation:Qr[12],HookDeclaration:Qr[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:Qr[16],ImportAttribute:Qr[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:Qr[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:Qr[33],ImportSpecifier:["imported","local"],IndexedAccessType:Qr[34],InferredPredicate:Qr[1],InferTypeAnnotation:Qr[35],InterfaceDeclaration:Qr[22],InterfaceExtends:Qr[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:Qr[1],IntersectionTypeAnnotation:Qr[36],JsExpressionRoot:Qr[37],JsonRoot:Qr[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:Qr[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:Qr[1],JSXExpressionContainer:Qr[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:Qr[1],JSXMemberExpression:Qr[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:Qr[1],JSXSpreadAttribute:Qr[6],JSXSpreadChild:Qr[3],JSXText:Qr[1],KeyofTypeAnnotation:Qr[6],LabeledStatement:["label","body"],Literal:Qr[1],LogicalExpression:Qr[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:Qr[21],MatchExpression:Qr[39],MatchExpressionCase:Qr[40],MatchIdentifierPattern:Qr[21],MatchLiteralPattern:Qr[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:Qr[6],MatchStatement:Qr[39],MatchStatementCase:Qr[40],MatchUnaryPattern:Qr[6],MatchWildcardPattern:Qr[1],MemberExpression:Qr[38],MetaProperty:["meta","property"],MethodDefinition:Qr[42],MixedTypeAnnotation:Qr[1],ModuleExpression:Qr[10],NeverTypeAnnotation:Qr[1],NewExpression:Qr[9],NGChainedExpression:Qr[43],NGEmptyExpression:Qr[1],NGMicrosyntax:Qr[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:Qr[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:Qr[32],NGPipeExpression:["left","right","arguments"],NGRoot:Qr[37],NullableTypeAnnotation:Qr[23],NullLiteral:Qr[1],NullLiteralTypeAnnotation:Qr[1],NumberLiteralTypeAnnotation:Qr[1],NumberTypeAnnotation:Qr[1],NumericLiteral:Qr[1],ObjectExpression:["properties"],ObjectMethod:Qr[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:Qr[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:Qr[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:Qr[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:Qr[9],OptionalIndexedAccessType:Qr[34],OptionalMemberExpression:Qr[38],ParenthesizedExpression:Qr[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:Qr[1],PipelineTopicExpression:Qr[3],Placeholder:Qr[1],PrivateIdentifier:Qr[1],PrivateName:Qr[21],Program:Qr[7],Property:Qr[32],PropertyDefinition:Qr[14],QualifiedTypeIdentifier:Qr[44],QualifiedTypeofIdentifier:Qr[44],RegExpLiteral:Qr[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:Qr[6],SatisfiesExpression:Qr[4],SequenceExpression:Qr[43],SpreadElement:Qr[6],StaticBlock:Qr[10],StringLiteral:Qr[1],StringLiteralTypeAnnotation:Qr[1],StringTypeAnnotation:Qr[1],Super:Qr[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:Qr[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:Qr[1],TemplateLiteral:["quasis","expressions"],ThisExpression:Qr[1],ThisTypeAnnotation:Qr[1],ThrowStatement:Qr[6],TopicReference:Qr[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:Qr[45],TSAbstractKeyword:Qr[1],TSAbstractMethodDefinition:Qr[32],TSAbstractPropertyDefinition:Qr[45],TSAnyKeyword:Qr[1],TSArrayType:Qr[2],TSAsExpression:Qr[4],TSAsyncKeyword:Qr[1],TSBigIntKeyword:Qr[1],TSBooleanKeyword:Qr[1],TSCallSignatureDeclaration:Qr[46],TSClassImplements:Qr[47],TSConditionalType:Qr[17],TSConstructorType:Qr[46],TSConstructSignatureDeclaration:Qr[46],TSDeclareFunction:Qr[31],TSDeclareKeyword:Qr[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:Qr[26],TSEnumDeclaration:Qr[19],TSEnumMember:["id","initializer"],TSExportAssignment:Qr[3],TSExportKeyword:Qr[1],TSExternalModuleReference:Qr[3],TSFunctionType:Qr[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:Qr[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:Qr[35],TSInstantiationExpression:Qr[47],TSInterfaceBody:Qr[10],TSInterfaceDeclaration:Qr[22],TSInterfaceHeritage:Qr[47],TSIntersectionType:Qr[36],TSIntrinsicKeyword:Qr[1],TSJSDocAllType:Qr[1],TSJSDocNonNullableType:Qr[23],TSJSDocNullableType:Qr[23],TSJSDocUnknownType:Qr[1],TSLiteralType:Qr[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:Qr[10],TSModuleDeclaration:Qr[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:Qr[21],TSNeverKeyword:Qr[1],TSNonNullExpression:Qr[3],TSNullKeyword:Qr[1],TSNumberKeyword:Qr[1],TSObjectKeyword:Qr[1],TSOptionalType:Qr[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:Qr[23],TSPrivateKeyword:Qr[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:Qr[1],TSPublicKeyword:Qr[1],TSQualifiedName:Qr[5],TSReadonlyKeyword:Qr[1],TSRestType:Qr[23],TSSatisfiesExpression:Qr[4],TSStaticKeyword:Qr[1],TSStringKeyword:Qr[1],TSSymbolKeyword:Qr[1],TSTemplateLiteralType:["quasis","types"],TSThisType:Qr[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:Qr[23],TSTypeAssertion:Qr[4],TSTypeLiteral:Qr[26],TSTypeOperator:Qr[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:Qr[48],TSTypeParameterInstantiation:Qr[48],TSTypePredicate:Qr[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:Qr[1],TSUnionType:Qr[36],TSUnknownKeyword:Qr[1],TSVoidKeyword:Qr[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:Qr[24],TypeAnnotation:Qr[23],TypeCastExpression:Qr[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:Qr[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:Qr[48],TypeParameterInstantiation:Qr[48],TypePredicate:Qr[49],UnaryExpression:Qr[6],UndefinedTypeAnnotation:Qr[1],UnionTypeAnnotation:Qr[36],UnknownTypeAnnotation:Qr[1],UpdateExpression:Qr[6],V8IntrinsicIdentifier:Qr[1],VariableDeclaration:["declarations"],VariableDeclarator:Qr[27],Variance:Qr[1],VoidPattern:Qr[1],VoidTypeAnnotation:Qr[1],WhileStatement:Qr[25],WithStatement:["object","body"],YieldExpression:Qr[6]},Lpn=Fpn(Rpn),Mpn=Lpn;function mDe(e,r){if(!Ipn(e))return e;if(Array.isArray(e)){for(let s=0;sie<=L);V=j&&s.slice(j,L).trim().length===0}return V?void 0:(A.extra={...A.extra,parenthesized:!0},A)}case"TemplateLiteral":if(b.expressions.length!==b.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(i==="flow"||i==="hermes"||i==="espree"||i==="typescript"||d){let A=Q5(b)+1,L=x8(b)-(b.tail?1:2);b.range=[A,L]}break;case"VariableDeclaration":{let A=ypn(0,b.declarations,-1);A?.init&&s[x8(A)]!==";"&&(b.range=[Q5(b),x8(A)]);break}case"TSParenthesizedType":return b.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(b.types.length===1)return b.types[0];break;case"ImportExpression":i==="hermes"&&b.attributes&&!b.options&&(b.options=b.attributes);break}},onLeave(b){switch(b.type){case"LogicalExpression":if(HUt(b))return kYe(b);break;case"TSImportType":!b.source&&b.argument.type==="TSLiteralType"&&(b.source=b.argument.literal,delete b.argument);break}}}),e}function HUt(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function kYe(e){return HUt(e)?kYe({type:"LogicalExpression",operator:e.operator,left:kYe({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[Q5(e.left),x8(e.right.left)]}),right:e.right.right,range:[Q5(e),x8(e)]}):e}var $pn=Bpn,Upn=/\*\/$/,zpn=/^\/\*\*?/,qpn=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Jpn=/(^|\s+)\/\/([^\n\r]*)/g,HBt=/^(\r?\n)+/,Vpn=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,KBt=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Wpn=/(\r?\n|^) *\* ?/g,Gpn=[];function Hpn(e){let r=e.match(qpn);return r?r[0].trimStart():""}function Kpn(e){e=ree(0,e.replace(zpn,"").replace(Upn,""),Wpn,"$1");let r="";for(;r!==e;)r=e,e=ree(0,e,Vpn,` +$1 $2 +`);e=e.replace(HBt,"").trimEnd();let i=Object.create(null),s=ree(0,e,KBt,"").replace(HBt,"").trimEnd(),l;for(;l=KBt.exec(e);){let d=ree(0,l[2],Jpn,"");if(typeof i[l[1]]=="string"||Array.isArray(i[l[1]])){let h=i[l[1]];i[l[1]]=[...Gpn,...Array.isArray(h)?h:[h],d]}else i[l[1]]=d}return{comments:s,pragmas:i}}var Qpn=["noformat","noprettier"],Zpn=["format","prettier"];function Xpn(e){if(!e.startsWith("#!"))return"";let r=e.indexOf(` +`);return r===-1?e:e.slice(0,r)}var Ypn=Xpn;function KUt(e){let r=Ypn(e);r&&(e=e.slice(r.length+1));let i=Hpn(e),{pragmas:s,comments:l}=Kpn(i);return{shebang:r,text:e,pragmas:s,comments:l}}function e_n(e){let{pragmas:r}=KUt(e);return Zpn.some(i=>Object.prototype.hasOwnProperty.call(r,i))}function t_n(e){let{pragmas:r}=KUt(e);return Qpn.some(i=>Object.prototype.hasOwnProperty.call(r,i))}function r_n(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:e_n,hasIgnorePragma:t_n,locStart:Q5,locEnd:x8,...e}}var n_n=r_n,i_n=/^[^"'`]*<\/|^[^/]{2}.*\/>/mu;function o_n(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var a_n=o_n,QUt="module",ZUt="commonjs",s_n=[QUt,ZUt];function c_n(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return QUt;if(/\.(?:cjs|cts)$/iu.test(e))return ZUt}}var l_n={loc:!0,range:!0,comment:!0,tokens:!1,loggerFn:!1,project:!1,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:!0};function u_n(e){let{message:r,location:i}=e;if(!i)return e;let{start:s,end:l}=i;return ppn(r,{loc:{start:{line:s.line,column:s.column+1},end:{line:l.line,column:l.column+1}},cause:e})}var p_n=e=>e&&/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function __n(e,r){let i=[{...l_n,filePath:r}],s=c_n(r);if(s?i=i.map(d=>({...d,sourceType:s})):i=s_n.flatMap(d=>i.map(h=>({...h,sourceType:d}))),p_n(r))return i;let l=i_n.test(e);return[l,!l].flatMap(d=>i.map(h=>({...h,jsx:d})))}function d_n(e,r){let i=r?.filepath;typeof i!="string"&&(i=void 0);let s=a_n(e),l=__n(e,i),d;try{d=_pn(l.map(h=>()=>cpn(s,h)))}catch({errors:[h]}){throw u_n(h)}return $pn(d,{parser:"typescript",text:e})}var f_n=n_n(d_n);var m_n=[vZe,pXe,CYe],XUt=new Map;function h_n(e,r){return`${r}::${e.length}::${e}`}async function y_e(e,r){let i=h_n(e,r),s=XUt.get(i);if(s)return s;try{let l=e,d=!1;r==="typescript"&&(l=`type __T = ${e}`,d=!0);let S=(await bCe(l,{parser:r==="typescript-module"?"typescript":r,plugins:m_n,printWidth:60,tabWidth:2,semi:!0,singleQuote:!1,trailingComma:"all"})).trimEnd();return d&&(S=S.replace(/^type __T =\s*/,"").replace(/;$/,"").trimEnd()),XUt.set(i,S),S}catch{return e}}import*as IDe from"effect/Context";import*as vB from"effect/Effect";import*as YUt from"effect/Layer";import*as ezt from"effect/Option";var q2=class extends IDe.Tag("#runtime/RuntimeLocalScopeService")(){},_et=e=>YUt.succeed(q2,e),SB=(e,r)=>r==null?e:e.pipe(vB.provide(_et(r))),bB=()=>vB.contextWith(e=>IDe.getOption(e,q2)).pipe(vB.map(e=>ezt.isSome(e)?e.value:null)),fee=e=>vB.gen(function*(){let r=yield*bB();return r===null?yield*new iCe({message:"Runtime local scope is unavailable"}):e!==void 0&&r.installation.scopeId!==e?yield*new vY({message:`Scope ${e} is not the active local scope ${r.installation.scopeId}`,requestedScopeId:e,activeScopeId:r.installation.scopeId}):r});import*as v_e from"effect/Context";import*as xB from"effect/Layer";var FV=class extends v_e.Tag("#runtime/InstallationStore")(){},OD=class extends v_e.Tag("#runtime/ScopeConfigStore")(){},lx=class extends v_e.Tag("#runtime/ScopeStateStore")(){},ux=class extends v_e.Tag("#runtime/SourceArtifactStore")(){},S_e=e=>xB.mergeAll(xB.succeed(OD,e.scopeConfigStore),xB.succeed(lx,e.scopeStateStore),xB.succeed(ux,e.sourceArtifactStore)),b_e=e=>xB.mergeAll(xB.succeed(FV,e.installationStore),S_e(e));import*as nZt from"effect/Context";import*as Fat from"effect/Effect";import*as iZt from"effect/Layer";import*as tzt from"effect/Context";var k8=class extends tzt.Tag("#runtime/SourceTypeDeclarationsRefresherService")(){};import*as rzt from"effect/Effect";var RV=(e,r)=>rzt.gen(function*(){if(e.runtimeLocalScope.installation.scopeId!==r)return yield*new vY({message:`Runtime local scope mismatch: expected ${r}, got ${e.runtimeLocalScope.installation.scopeId}`,requestedScopeId:r,activeScopeId:e.runtimeLocalScope.installation.scopeId});let i=yield*e.scopeConfigStore.load(),s=yield*e.scopeStateStore.load();return{installation:e.runtimeLocalScope.installation,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,loadedConfig:i,scopeState:s}});import*as N1 from"effect/Effect";import*as szt from"effect/Effect";var sh=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},Ph=e=>typeof e=="string"&&e.trim().length>0?e.trim():null,czt=e=>typeof e=="boolean"?e:null,PDe=e=>Array.isArray(e)?e.flatMap(r=>{let i=Ph(r);return i?[i]:[]}):[],nzt=e=>{if(e)try{return JSON.parse(e)}catch{return}},g_n=e=>_D(e),y_n=e=>e.replaceAll("~","~0").replaceAll("/","~1"),NDe=e=>`#/$defs/google/${y_n(e)}`,v_n=e=>{let r=Ph(e)?.toLowerCase();switch(r){case"get":case"put":case"post":case"delete":case"patch":case"head":case"options":return r;default:throw new Error(`Unsupported Google Discovery HTTP method: ${String(e)}`)}},LV=e=>{let r=sh(e.schema),i=Ph(r.$ref);if(i)return{$ref:NDe(i)};let s=Ph(r.description),l=Ph(r.format),d=Ph(r.type),h=PDe(r.enum),S=typeof r.default=="string"||typeof r.default=="number"||typeof r.default=="boolean"?r.default:void 0,b=czt(r.readOnly),A={...s?{description:s}:{},...l?{format:l}:{},...h.length>0?{enum:[...h]}:{},...S!==void 0?{default:S}:{},...b===!0?{readOnly:!0}:{}};if(d==="any")return A;if(d==="array"){let j=LV({schema:r.items,topLevelSchemas:e.topLevelSchemas});return{...A,type:"array",items:j??{}}}let L=sh(r.properties),V=r.additionalProperties;if(d==="object"||Object.keys(L).length>0||V!==void 0){let j=Object.fromEntries(Object.entries(L).map(([te,X])=>[te,LV({schema:X,topLevelSchemas:e.topLevelSchemas})])),ie=V===void 0?void 0:V===!0?!0:LV({schema:V,topLevelSchemas:e.topLevelSchemas});return{...A,type:"object",...Object.keys(j).length>0?{properties:j}:{},...ie!==void 0?{additionalProperties:ie}:{}}}return d==="boolean"||d==="number"||d==="integer"||d==="string"?{...A,type:d}:Object.keys(A).length>0?A:{}},S_n=e=>{let r=LV({schema:e.parameter,topLevelSchemas:e.topLevelSchemas});return e.parameter.repeated===!0?{type:"array",items:r}:r},izt=e=>{let r=sh(e.method),i=sh(r.parameters),s={},l=[];for(let[h,S]of Object.entries(i)){let b=sh(S);s[h]=S_n({parameter:b,topLevelSchemas:e.topLevelSchemas}),b.required===!0&&l.push(h)}let d=Ph(sh(r.request).$ref);if(d){let h=e.topLevelSchemas[d];h?s.body=LV({schema:h,topLevelSchemas:e.topLevelSchemas}):s.body={$ref:NDe(d)}}if(Object.keys(s).length!==0)return JSON.stringify({type:"object",properties:s,...l.length>0?{required:l}:{},additionalProperties:!1})},ozt=e=>{let r=Ph(sh(sh(e.method).response).$ref);if(!r)return;let i=e.topLevelSchemas[r],s=i?LV({schema:i,topLevelSchemas:e.topLevelSchemas}):{$ref:NDe(r)};return JSON.stringify(s)},b_n=e=>Object.entries(sh(sh(e).parameters)).flatMap(([r,i])=>{let s=sh(i),l=Ph(s.location);return l!=="path"&&l!=="query"&&l!=="header"?[]:[{name:r,location:l,required:s.required===!0,repeated:s.repeated===!0,description:Ph(s.description),type:Ph(s.type)??Ph(s.$ref),...PDe(s.enum).length>0?{enum:[...PDe(s.enum)]}:{},...Ph(s.default)?{default:Ph(s.default)}:{}}]}),azt=e=>{let r=sh(sh(sh(e.auth).oauth2).scopes),i=Object.fromEntries(Object.entries(r).flatMap(([s,l])=>{let d=Ph(sh(l).description)??"";return[[s,d]]}));return Object.keys(i).length>0?i:void 0},lzt=e=>{let r=Ph(e.method.id),i=Ph(e.method.path);if(!r||!i)return null;let s=v_n(e.method.httpMethod),l=r,d=l.startsWith(`${e.service}.`)?l.slice(e.service.length+1):l,h=d.split(".").filter(j=>j.length>0),S=h.at(-1)??d,b=h.length>1?h.slice(0,-1).join("."):null,A=Ph(sh(sh(e.method).response).$ref),L=Ph(sh(sh(e.method).request).$ref),V=sh(e.method.mediaUpload);return{toolId:d,rawToolId:l,methodId:r,name:d,description:Ph(e.method.description),group:b,leaf:S,method:s,path:i,flatPath:Ph(e.method.flatPath),parameters:b_n(e.method),requestSchemaId:L,responseSchemaId:A,scopes:[...PDe(e.method.scopes)],supportsMediaUpload:Object.keys(V).length>0,supportsMediaDownload:czt(e.method.supportsMediaDownload)===!0,...izt({method:e.method,topLevelSchemas:e.topLevelSchemas})?{inputSchema:nzt(izt({method:e.method,topLevelSchemas:e.topLevelSchemas}))}:{},...ozt({method:e.method,topLevelSchemas:e.topLevelSchemas})?{outputSchema:nzt(ozt({method:e.method,topLevelSchemas:e.topLevelSchemas}))}:{}}},uzt=e=>{let r=sh(e.resource),i=Object.values(sh(r.methods)).flatMap(l=>{try{let d=lzt({service:e.service,version:e.version,rootUrl:e.rootUrl,servicePath:e.servicePath,topLevelSchemas:e.topLevelSchemas,method:sh(l)});return d?[d]:[]}catch{return[]}}),s=Object.values(sh(r.resources)).flatMap(l=>uzt({...e,resource:l}));return[...i,...s]},mee=(e,r)=>szt.try({try:()=>{let i=typeof r=="string"?JSON.parse(r):r,s=Ph(i.name),l=Ph(i.version),d=Ph(i.rootUrl),h=typeof i.servicePath=="string"?i.servicePath:"";if(!s||!l||!d)throw new Error(`Invalid Google Discovery document for ${e}`);let S=Object.fromEntries(Object.entries(sh(i.schemas)).map(([V,j])=>[V,sh(j)])),b=Object.fromEntries(Object.entries(S).map(([V,j])=>[NDe(V),JSON.stringify(LV({schema:j,topLevelSchemas:S}))])),A=[...Object.values(sh(i.methods)).flatMap(V=>{let j=lzt({service:s,version:l,rootUrl:d,servicePath:h,topLevelSchemas:S,method:sh(V)});return j?[j]:[]}),...Object.values(sh(i.resources)).flatMap(V=>uzt({service:s,version:l,rootUrl:d,servicePath:h,topLevelSchemas:S,resource:V}))].sort((V,j)=>V.toolId.localeCompare(j.toolId));return{version:1,sourceHash:g_n(typeof r=="string"?r:JSON.stringify(r)),service:s,versionName:l,title:Ph(i.title),description:Ph(i.description),rootUrl:d,servicePath:h,batchPath:Ph(i.batchPath),documentationLink:Ph(i.documentationLink),...Object.keys(b).length>0?{schemaRefTable:b}:{},...azt(i)?{oauthScopes:azt(i)}:{},methods:A}},catch:i=>i instanceof Error?i:new Error(`Failed to extract Google Discovery manifest: ${String(i)}`)}),det=e=>[...e.methods];import*as fet from"effect/Either";import*as Y5 from"effect/Effect";var x_n=e=>{try{return new URL(e.servicePath||"",e.rootUrl).toString()}catch{return e.rootUrl}},T_n=e=>e.scopes.length>0?I6("oauth2",{confidence:"high",reason:"Google Discovery document declares OAuth scopes",headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:"https://accounts.google.com/o/oauth2/v2/auth",oauthTokenUrl:"https://oauth2.googleapis.com/token",oauthScopes:[...e.scopes]}):UN("Google Discovery document does not declare OAuth scopes","medium"),met=e=>Y5.gen(function*(){let r=yield*Y5.either(eY({method:"GET",url:e.normalizedUrl,headers:e.headers}));if(fet.isLeft(r)||r.right.status<200||r.right.status>=300)return null;let i=yield*Y5.either(mee(e.normalizedUrl,r.right.text));if(fet.isLeft(i))return null;let s=x_n({rootUrl:i.right.rootUrl,servicePath:i.right.servicePath}),l=BN(i.right.title)??`${i.right.service}.${i.right.versionName}.googleapis.com`,d=Object.keys(i.right.oauthScopes??{});return{detectedKind:"google_discovery",confidence:"high",endpoint:s,specUrl:e.normalizedUrl,name:l,namespace:vT(i.right.service),transport:null,authInference:T_n({scopes:d}),toolCount:i.right.methods.length,warnings:[]}}).pipe(Y5.catchAll(()=>Y5.succeed(null)));import*as ET from"effect/Schema";var het=ET.Struct({service:ET.String,version:ET.String,discoveryUrl:ET.optional(ET.NullOr(ET.String)),defaultHeaders:ET.optional(ET.NullOr(M_)),scopes:ET.optional(ET.Array(ET.String))});var E_n=e=>{let r=e?.providerData.invocation.rootUrl;if(!r)return;let i=e?.providerData.invocation.servicePath??"";return[{url:new URL(i||"",r).toString()}]},k_n=e=>{let r=d5(e.source,e.operation.providerData.toolId),i=vD.make(`cap_${Td({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),s=pk.make(`exec_${Td({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"http"})}`),l=e.operation.inputSchema??{},d=e.operation.outputSchema??{},h=e.operation.providerData.invocation.scopes.length>0?kj.make(`security_${Td({sourceId:e.source.id,scopes:e.operation.providerData.invocation.scopes})}`):void 0;if(h&&!e.catalog.symbols[h]){let te=Object.fromEntries(e.operation.providerData.invocation.scopes.map(X=>[X,e.operation.providerData.invocation.scopeDescriptions?.[X]??X]));x_(e.catalog.symbols)[h]={id:h,kind:"securityScheme",schemeType:"oauth2",docs:Gd({summary:"OAuth 2.0",description:"Imported from Google Discovery scopes."}),oauth:{flows:{},scopes:te},synthetic:!1,provenance:ld(e.documentId,"#/googleDiscovery/security")}}e.operation.providerData.invocation.parameters.forEach(te=>{let X=Tj.make(`param_${Td({capabilityId:i,location:te.location,name:te.name})}`),Re=Gue(l,te.location,te.name)??(te.repeated?{type:"array",items:{type:te.type==="integer"?"integer":"string",...te.enum?{enum:te.enum}:{}}}:{type:te.type==="integer"?"integer":"string",...te.enum?{enum:te.enum}:{}});x_(e.catalog.symbols)[X]={id:X,kind:"parameter",name:te.name,location:te.location,required:te.required,...Gd({description:te.description})?{docs:Gd({description:te.description})}:{},schemaShapeId:e.importer.importSchema(Re,`#/googleDiscovery/${e.operation.providerData.toolId}/parameter/${te.location}/${te.name}`,l),synthetic:!1,provenance:ld(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/parameter/${te.location}/${te.name}`)}});let S=e.operation.providerData.invocation.requestSchemaId||nY(l)!==void 0?VJ.make(`request_body_${Td({capabilityId:i})}`):void 0;if(S){let te=nY(l)??l;x_(e.catalog.symbols)[S]={id:S,kind:"requestBody",contents:[{mediaType:"application/json",shapeId:e.importer.importSchema(te,`#/googleDiscovery/${e.operation.providerData.toolId}/requestBody`,l)}],synthetic:!1,provenance:ld(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/requestBody`)}}let b=SD.make(`response_${Td({capabilityId:i})}`);x_(e.catalog.symbols)[b]={id:b,kind:"response",...Gd({description:e.operation.description})?{docs:Gd({description:e.operation.description})}:{},...e.operation.outputSchema!==void 0?{contents:[{mediaType:"application/json",shapeId:e.importer.importSchema(d,`#/googleDiscovery/${e.operation.providerData.toolId}/response`,d)}]}:{},synthetic:!1,provenance:ld(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/response`)};let A=[];e.operation.providerData.invocation.supportsMediaUpload&&A.push("upload"),e.operation.providerData.invocation.supportsMediaDownload&&A.push("download");let L=m5({catalog:e.catalog,responseId:b,provenance:ld(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/responseSet`),traits:A}),V=e.operation.inputSchema!==void 0?e.importer.importSchema(e.operation.inputSchema,`#/googleDiscovery/${e.operation.providerData.toolId}/call`,e.operation.inputSchema):e.importer.importSchema({type:"object",additionalProperties:!1},`#/googleDiscovery/${e.operation.providerData.toolId}/call`);x_(e.catalog.executables)[s]={id:s,capabilityId:i,scopeId:e.serviceScopeId,adapterKey:"google_discovery",bindingVersion:rx,binding:e.operation.providerData,projection:{responseSetId:L,callShapeId:V},display:{protocol:"http",method:e.operation.providerData.invocation.method.toUpperCase(),pathTemplate:e.operation.providerData.invocation.path,operationId:e.operation.providerData.methodId,group:e.operation.providerData.group,leaf:e.operation.providerData.leaf,rawToolId:e.operation.providerData.rawToolId,title:e.operation.title??null,summary:e.operation.description??null},synthetic:!1,provenance:ld(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/executable`)};let j=e.operation.effect,ie=h?{kind:"scheme",schemeId:h,scopes:e.operation.providerData.invocation.scopes}:{kind:"none"};x_(e.catalog.capabilities)[i]={id:i,serviceScopeId:e.serviceScopeId,surface:{toolPath:r,...e.operation.title?{title:e.operation.title}:{},...e.operation.description?{summary:e.operation.description}:{},tags:["google",e.operation.providerData.service,e.operation.providerData.version]},semantics:{effect:j,safe:j==="read",idempotent:j==="read"||j==="delete",destructive:j==="delete"},auth:ie,interaction:f5(j),executableIds:[s],synthetic:!1,provenance:ld(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/capability`)}},pzt=e=>h5({source:e.source,documents:e.documents,serviceScopeDefaults:(()=>{let r=E_n(e.operations[0]);return r?{servers:r}:void 0})(),registerOperations:({catalog:r,documentId:i,serviceScopeId:s,importer:l})=>{for(let d of e.operations)k_n({catalog:r,source:e.source,documentId:i,serviceScopeId:s,operation:d,importer:l})}});import{FetchHttpClient as hWn,HttpClient as gWn,HttpClientRequest as yWn}from"@effect/platform";import*as ODe from"effect/Effect";import*as V6 from"effect/Schema";import{Schema as ts}from"effect";var C_n=["get","put","post","delete","patch","head","options"],get=ts.Literal(...C_n),_zt=ts.Literal("path","query","header"),yet=ts.Struct({name:ts.String,location:_zt,required:ts.Boolean,repeated:ts.Boolean,description:ts.NullOr(ts.String),type:ts.NullOr(ts.String),enum:ts.optional(ts.Array(ts.String)),default:ts.optional(ts.String)}),dzt=ts.Struct({method:get,path:ts.String,flatPath:ts.NullOr(ts.String),rootUrl:ts.String,servicePath:ts.String,parameters:ts.Array(yet),requestSchemaId:ts.NullOr(ts.String),responseSchemaId:ts.NullOr(ts.String),scopes:ts.Array(ts.String),scopeDescriptions:ts.optional(ts.Record({key:ts.String,value:ts.String})),supportsMediaUpload:ts.Boolean,supportsMediaDownload:ts.Boolean}),x_e=ts.Struct({kind:ts.Literal("google_discovery"),service:ts.String,version:ts.String,toolId:ts.String,rawToolId:ts.String,methodId:ts.String,group:ts.NullOr(ts.String),leaf:ts.String,invocation:dzt}),fzt=ts.Struct({toolId:ts.String,rawToolId:ts.String,methodId:ts.String,name:ts.String,description:ts.NullOr(ts.String),group:ts.NullOr(ts.String),leaf:ts.String,method:get,path:ts.String,flatPath:ts.NullOr(ts.String),parameters:ts.Array(yet),requestSchemaId:ts.NullOr(ts.String),responseSchemaId:ts.NullOr(ts.String),scopes:ts.Array(ts.String),supportsMediaUpload:ts.Boolean,supportsMediaDownload:ts.Boolean,inputSchema:ts.optional(ts.Unknown),outputSchema:ts.optional(ts.Unknown)}),mzt=ts.Record({key:ts.String,value:ts.String}),D_n=ts.Struct({version:ts.Literal(1),sourceHash:ts.String,service:ts.String,versionName:ts.String,title:ts.NullOr(ts.String),description:ts.NullOr(ts.String),rootUrl:ts.String,servicePath:ts.String,batchPath:ts.NullOr(ts.String),documentationLink:ts.NullOr(ts.String),oauthScopes:ts.optional(ts.Record({key:ts.String,value:ts.String})),schemaRefTable:ts.optional(mzt),methods:ts.Array(fzt)});import*as A_n from"effect/Either";var xWn=V6.decodeUnknownEither(x_e),gzt=e=>({kind:"google_discovery",service:e.service,version:e.version,toolId:e.definition.toolId,rawToolId:e.definition.rawToolId,methodId:e.definition.methodId,group:e.definition.group,leaf:e.definition.leaf,invocation:{method:e.definition.method,path:e.definition.path,flatPath:e.definition.flatPath,rootUrl:e.rootUrl,servicePath:e.servicePath,parameters:e.definition.parameters,requestSchemaId:e.definition.requestSchemaId,responseSchemaId:e.definition.responseSchemaId,scopes:e.definition.scopes,...e.oauthScopes?{scopeDescriptions:Object.fromEntries(e.definition.scopes.flatMap(r=>e.oauthScopes?.[r]!==void 0?[[r,e.oauthScopes[r]]]:[]))}:{},supportsMediaUpload:e.definition.supportsMediaUpload,supportsMediaDownload:e.definition.supportsMediaDownload}}),w_n=V6.decodeUnknownEither(V6.parseJson(V6.Record({key:V6.String,value:V6.Unknown}))),vet=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{};var yzt=(e,r,i)=>{if(r.length===0)return;let[s,...l]=r;if(!s)return;if(l.length===0){e[s]=i;return}let d=vet(e[s]);e[s]=d,yzt(d,l,i)},hzt=e=>{if(e.schema===void 0||e.schema===null)return{};let r=vet(e.schema);if(!e.refTable||Object.keys(e.refTable).length===0)return r;let i=vet(r.$defs);for(let[s,l]of Object.entries(e.refTable)){if(!s.startsWith("#/$defs/"))continue;let d=typeof l=="string"?(()=>{try{return JSON.parse(l)}catch{return l}})():l,h=s.slice(8).split("/").filter(S=>S.length>0);yzt(i,h,d)}return Object.keys(i).length>0?{...r,$defs:i}:r};var bet=e=>{let r=Object.fromEntries(Object.entries(e.manifest.schemaRefTable??{}).map(([l,d])=>{try{return[l,JSON.parse(d)]}catch{return[l,d]}})),i=e.definition.inputSchema===void 0?void 0:hzt({schema:e.definition.inputSchema,refTable:r}),s=e.definition.outputSchema===void 0?void 0:hzt({schema:e.definition.outputSchema,refTable:r});return{inputTypePreview:S6(i,"unknown",1/0),outputTypePreview:S6(s,"unknown",1/0),...i!==void 0?{inputSchema:i}:{},...s!==void 0?{outputSchema:s}:{},providerData:gzt({service:e.manifest.service,version:e.manifest.versionName,rootUrl:e.manifest.rootUrl,servicePath:e.manifest.servicePath,oauthScopes:e.manifest.oauthScopes,definition:e.definition})}};import{FetchHttpClient as I_n,HttpClient as P_n,HttpClientRequest as vzt}from"@effect/platform";import*as hm from"effect/Effect";import*as Ju from"effect/Schema";var bzt=Ju.extend(Ij,Ju.Struct({kind:Ju.Literal("google_discovery"),service:Ju.Trim.pipe(Ju.nonEmptyString()),version:Ju.Trim.pipe(Ju.nonEmptyString()),discoveryUrl:Ju.optional(Ju.NullOr(Ju.Trim.pipe(Ju.nonEmptyString()))),scopes:Ju.optional(Ju.Array(Ju.Trim.pipe(Ju.nonEmptyString()))),scopeOauthClientId:Ju.optional(Ju.NullOr(VFt)),oauthClient:QFt,name:sy,namespace:sy,auth:Ju.optional(v5)})),N_n=bzt,Szt=Ju.Struct({service:Ju.Trim.pipe(Ju.nonEmptyString()),version:Ju.Trim.pipe(Ju.nonEmptyString()),discoveryUrl:Ju.Trim.pipe(Ju.nonEmptyString()),defaultHeaders:Ju.optional(Ju.NullOr(M_)),scopes:Ju.optional(Ju.Array(Ju.Trim.pipe(Ju.nonEmptyString())))}),O_n=Ju.Struct({service:Ju.String,version:Ju.String,discoveryUrl:Ju.optional(Ju.String),defaultHeaders:Ju.optional(Ju.NullOr(M_)),scopes:Ju.optional(Ju.Array(Ju.String))}),T_e=1,F_n=(e,r)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&r.some(i=>Object.prototype.hasOwnProperty.call(e,i)),R_n=(e,r)=>`https://www.googleapis.com/discovery/v1/apis/${encodeURIComponent(e)}/${encodeURIComponent(r)}/rest`,TB=e=>hm.gen(function*(){if(F_n(e.binding,["transport","queryParams","headers","specUrl"]))return yield*og("google-discovery/adapter","Google Discovery sources cannot define MCP or OpenAPI binding fields");let r=yield*GN({sourceId:e.id,label:"Google Discovery",version:e.bindingVersion,expectedVersion:T_e,schema:O_n,value:e.binding,allowedKeys:["service","version","discoveryUrl","defaultHeaders","scopes"]}),i=r.service.trim(),s=r.version.trim();if(i.length===0||s.length===0)return yield*og("google-discovery/adapter","Google Discovery sources require service and version");let l=typeof r.discoveryUrl=="string"&&r.discoveryUrl.trim().length>0?r.discoveryUrl.trim():null;return{service:i,version:s,discoveryUrl:l??R_n(i,s),defaultHeaders:r.defaultHeaders??null,scopes:(r.scopes??[]).map(d=>d.trim()).filter(d=>d.length>0)}}),xzt=e=>hm.gen(function*(){let r=yield*P_n.HttpClient,i=vzt.get(e.url).pipe(vzt.setHeaders({...e.headers,...e.cookies?{cookie:Object.entries(e.cookies).map(([l,d])=>`${l}=${encodeURIComponent(d)}`).join("; ")}:{}})),s=yield*r.execute(i).pipe(hm.mapError(l=>l instanceof Error?l:new Error(String(l))));return s.status===401||s.status===403?yield*new y5("import",`Google Discovery fetch requires credentials (status ${s.status})`):s.status<200||s.status>=300?yield*og("google-discovery/adapter",`Google Discovery fetch failed with status ${s.status}`):yield*s.text.pipe(hm.mapError(l=>l instanceof Error?l:new Error(String(l))))}).pipe(hm.provide(I_n.layer)),L_n=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},Tzt=(e,r)=>{if(e==null)return[];if(Array.isArray(e)){let i=e.flatMap(s=>s==null?[]:[String(s)]);return r?i:[i.join(",")]}return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?[String(e)]:[JSON.stringify(e)]},M_n=e=>e.pathTemplate.replaceAll(/\{([^}]+)\}/g,(r,i)=>{let s=e.parameters.find(h=>h.location==="path"&&h.name===i),l=e.args[i];if(l==null&&s?.required)throw new Error(`Missing required path parameter: ${i}`);let d=Tzt(l,!1);return d.length===0?"":encodeURIComponent(d[0])}),j_n=e=>new URL(e.providerData.invocation.servicePath||"",e.providerData.invocation.rootUrl).toString(),B_n=e=>{let r={};return e.headers.forEach((i,s)=>{r[s]=i}),r},$_n=async e=>{let r=e.headers.get("content-type")?.toLowerCase()??"",i=await e.text();if(i.trim().length===0)return null;if(r.includes("application/json")||r.includes("+json"))try{return JSON.parse(i)}catch{return i}return i},U_n=e=>{let r=bet({manifest:e.manifest,definition:e.definition});return{toolId:e.definition.toolId,title:e.definition.name,description:e.definition.description,effect:e.definition.method==="get"||e.definition.method==="head"?"read":e.definition.method==="delete"?"delete":"write",inputSchema:r.inputSchema,outputSchema:r.outputSchema,providerData:r.providerData}},z_n=e=>{let r=Object.keys(e.oauthScopes??{});if(r.length===0)return[];let i=new Map;for(let l of r)i.set(l,new Set);for(let l of e.methods)for(let d of l.scopes)i.get(d)?.add(l.methodId);return r.filter(l=>{let d=i.get(l);return!d||d.size===0?!0:!r.some(h=>{if(h===l)return!1;let S=i.get(h);if(!S||S.size<=d.size)return!1;for(let b of d)if(!S.has(b))return!1;return!0})})},q_n=e=>hm.gen(function*(){let r=yield*TB(e),i=r.scopes??[],s=yield*xzt({url:r.discoveryUrl,headers:r.defaultHeaders??void 0}).pipe(hm.flatMap(h=>mee(e.name,h)),hm.catchAll(()=>hm.succeed(null))),l=s?z_n(s):[],d=l.length>0?[...new Set([...l,...i])]:i;return d.length===0?null:{providerKey:"google_workspace",authorizationEndpoint:"https://accounts.google.com/o/oauth2/v2/auth",tokenEndpoint:"https://oauth2.googleapis.com/token",scopes:d,headerName:"Authorization",prefix:"Bearer ",clientAuthentication:"client_secret_post",authorizationParams:{access_type:"offline",prompt:"consent",include_granted_scopes:"true"}}}),Ezt={key:"google_discovery",displayName:"Google Discovery",catalogKind:"imported",connectStrategy:"direct",credentialStrategy:"credential_managed",bindingConfigVersion:T_e,providerKey:"google_workspace",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:bzt,executorAddInputSchema:N_n,executorAddHelpText:["service is the Discovery service name, e.g. sheets or drive. version is the API version, e.g. v4 or v3."],executorAddInputSignatureWidth:420,localConfigBindingSchema:het,localConfigBindingFromSource:e=>hm.runSync(hm.map(TB(e),r=>({service:r.service,version:r.version,discoveryUrl:r.discoveryUrl,defaultHeaders:r.defaultHeaders??null,scopes:r.scopes}))),serializeBindingConfig:e=>VN({adapterKey:"google_discovery",version:T_e,payloadSchema:Szt,payload:hm.runSync(TB(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:r})=>hm.map(WN({sourceId:e,label:"Google Discovery",adapterKey:"google_discovery",version:T_e,payloadSchema:Szt,value:r}),({version:i,payload:s})=>({version:i,payload:{service:s.service,version:s.version,discoveryUrl:s.discoveryUrl,defaultHeaders:s.defaultHeaders??null,scopes:s.scopes??[]}})),bindingStateFromSource:e=>hm.map(TB(e),r=>({...JN,defaultHeaders:r.defaultHeaders??null})),sourceConfigFromSource:e=>hm.runSync(hm.map(TB(e),r=>({kind:"google_discovery",service:r.service,version:r.version,discoveryUrl:r.discoveryUrl,defaultHeaders:r.defaultHeaders,scopes:r.scopes}))),validateSource:e=>hm.gen(function*(){let r=yield*TB(e);return{...e,bindingVersion:T_e,binding:{service:r.service,version:r.version,discoveryUrl:r.discoveryUrl,defaultHeaders:r.defaultHeaders??null,scopes:[...r.scopes??[]]}}}),shouldAutoProbe:e=>e.enabled&&(e.status==="draft"||e.status==="probing"),discoveryPriority:({normalizedUrl:e})=>e.includes("$discovery/rest")||e.includes("/discovery/v1/apis/")?500:300,detectSource:({normalizedUrl:e,headers:r})=>met({normalizedUrl:e,headers:r}),syncCatalog:({source:e,resolveAuthMaterialForSlot:r})=>hm.gen(function*(){let i=yield*TB(e),s=yield*r("import"),l=yield*xzt({url:i.discoveryUrl,headers:{...i.defaultHeaders,...s.headers},cookies:s.cookies,queryParams:s.queryParams}).pipe(hm.mapError(b=>S5(b)?b:new Error(`Failed fetching Google Discovery document for ${e.id}: ${b.message}`))),d=yield*mee(e.name,l),h=det(d),S=Date.now();return qN({fragment:pzt({source:e,documents:[{documentKind:"google_discovery",documentKey:i.discoveryUrl,contentText:l,fetchedAt:S}],operations:h.map(b=>U_n({manifest:d,definition:b}))}),importMetadata:R2({source:e,adapterKey:"google_discovery"}),sourceHash:d.sourceHash})}),getOauth2SetupConfig:({source:e})=>q_n(e),normalizeOauthClientInput:e=>hm.succeed({...e,redirectMode:e.redirectMode??"loopback"}),invoke:e=>hm.tryPromise({try:async()=>{let r=hm.runSync(TB(e.source)),i=Pj({executableId:e.executable.id,label:"Google Discovery",version:e.executable.bindingVersion,expectedVersion:rx,schema:x_e,value:e.executable.binding}),s=L_n(e.args),l=M_n({pathTemplate:i.invocation.path,args:s,parameters:i.invocation.parameters}),d=new URL(l.replace(/^\//,""),j_n({providerData:i})),h={...r.defaultHeaders};for(let ie of i.invocation.parameters){if(ie.location==="path")continue;let te=s[ie.name];if(te==null&&ie.required)throw new Error(`Missing required ${ie.location} parameter: ${ie.name}`);let X=Tzt(te,ie.repeated);if(X.length!==0){if(ie.location==="query"){for(let Re of X)d.searchParams.append(ie.name,Re);continue}ie.location==="header"&&(h[ie.name]=ie.repeated?X.join(","):X[0])}}let S=b6({url:d,queryParams:e.auth.queryParams}),b=pD({headers:{...h,...e.auth.headers},cookies:e.auth.cookies}),A,L=Object.keys(e.auth.bodyValues).length>0;i.invocation.requestSchemaId!==null&&(s.body!==void 0||L)&&(A=JSON.stringify(X7({body:s.body!==void 0?s.body:{},bodyValues:e.auth.bodyValues,label:`${i.invocation.method.toUpperCase()} ${i.invocation.path}`})),"content-type"in b||(b["content-type"]="application/json"));let V=await fetch(S.toString(),{method:i.invocation.method.toUpperCase(),headers:b,...A!==void 0?{body:A}:{}}),j=await $_n(V);return{data:V.ok?j:null,error:V.ok?null:j,headers:B_n(V),status:V.status}},catch:r=>r instanceof Error?r:new Error(String(r))})};import*as Nh from"effect/Schema";var kzt=Nh.Literal("request","field"),Czt=Nh.Literal("query","mutation"),E_e=Nh.Struct({kind:Nh.Literal("graphql"),toolKind:kzt,toolId:Nh.String,rawToolId:Nh.NullOr(Nh.String),group:Nh.NullOr(Nh.String),leaf:Nh.NullOr(Nh.String),fieldName:Nh.NullOr(Nh.String),operationType:Nh.NullOr(Czt),operationName:Nh.NullOr(Nh.String),operationDocument:Nh.NullOr(Nh.String),queryTypeName:Nh.NullOr(Nh.String),mutationTypeName:Nh.NullOr(Nh.String),subscriptionTypeName:Nh.NullOr(Nh.String)});import*as KWt from"effect/Either";import*as $B from"effect/Effect";var Np=fJ(RWt(),1);import*as JSn from"effect/Either";import*as Cde from"effect/Effect";import*as r4 from"effect/Schema";import*as nwe from"effect/HashMap";import*as UWt from"effect/Option";var LWt=320;var VSn=["id","identifier","key","slug","name","title","number","url","state","status","success"],WSn=["node","nodes","edge","edges","pageInfo","viewer","user","users","team","teams","project","projects","organization","issue","issues","creator","assignee","items"];var pit=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},GSn=e=>typeof e=="string"&&e.trim().length>0?e:null;var zWt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1 $2").replace(/[^a-zA-Z0-9]+/g," ").trim().split(/\s+/).filter(r=>r.length>0),qWt=e=>{let r=zWt(e).map(l=>l.toLowerCase());if(r.length===0)return"tool";let[i,...s]=r;return`${i}${s.map(l=>`${l[0]?.toUpperCase()??""}${l.slice(1)}`).join("")}`},twe=e=>{let r=qWt(e);return`${r[0]?.toUpperCase()??""}${r.slice(1)}`},HSn=e=>zWt(e).map(r=>`${r[0]?.toUpperCase()??""}${r.slice(1)}`).join(" "),rwe=(e,r)=>{let i=r?.trim();return i?{...e,description:i}:e},JWt=(e,r)=>r!==void 0?{...e,default:r}:e,_it=(e,r)=>{let i=r?.trim();return i?{...e,deprecated:!0,"x-deprecationReason":i}:e},KSn=e=>{let r;try{r=JSON.parse(e)}catch(l){throw new Error(`GraphQL document is not valid JSON: ${l instanceof Error?l.message:String(l)}`)}let i=pit(r);if(Array.isArray(i.errors)&&i.errors.length>0){let l=i.errors.map(d=>GSn(pit(d).message)).filter(d=>d!==null);throw new Error(l.length>0?`GraphQL introspection returned errors: ${l.join("; ")}`:"GraphQL introspection returned errors")}let s=i.data;if(!s||typeof s!="object"||!("__schema"in s))throw new Error("GraphQL introspection document is missing data.__schema");return s},QSn={type:"object",properties:{query:{type:"string",description:"GraphQL query or mutation document."},variables:{type:"object",description:"Optional GraphQL variables.",additionalProperties:!0},operationName:{type:"string",description:"Optional GraphQL operation name."},headers:{type:"object",description:"Optional per-request headers.",additionalProperties:{type:"string"}}},required:["query"],additionalProperties:!1},ZSn={type:"object",properties:{status:{type:"number"},headers:{type:"object",additionalProperties:{type:"string"}},body:{}},required:["status","headers","body"],additionalProperties:!1},iwe=(0,Np.getIntrospectionQuery)({descriptions:!0,inputValueDeprecation:!0,schemaDescription:!0}),XSn=e=>{switch(e){case"String":case"ID":case"Date":case"DateTime":case"DateTimeOrDuration":case"Duration":case"UUID":case"TimelessDate":case"TimelessDateOrDuration":case"URI":return{type:"string"};case"Int":case"Float":return{type:"number"};case"Boolean":return{type:"boolean"};case"JSONObject":return{type:"object",additionalProperties:!0};case"JSONString":return{type:"string"};case"JSON":return{};default:return{}}},YSn=e=>{switch(e){case"String":return"value";case"ID":return"id";case"Date":return"2026-03-08";case"DateTime":case"DateTimeOrDuration":return"2026-03-08T00:00:00.000Z";case"UUID":return"00000000-0000-0000-0000-000000000000";case"TimelessDate":case"TimelessDateOrDuration":return"2026-03-08";case"Duration":return"P1D";case"URI":return"https://example.com";case"Int":return 1;case"Float":return 1.5;case"Boolean":return!0;case"JSONObject":return{};case"JSONString":return"{}";default:return{}}},Dde="#/$defs/graphql",ebn=e=>`${Dde}/scalars/${e}`,tbn=e=>`${Dde}/enums/${e}`,rbn=e=>`${Dde}/input/${e}`,nbn=(e,r)=>`${Dde}/output/${r===0?e:`${e}__depth${r}`}`,ibn=()=>`${Dde}/output/GraphqlTypenameOnly`,kde=e=>({$ref:e}),obn=()=>({type:"object",properties:{__typename:{type:"string"}},required:["__typename"],additionalProperties:!1}),abn=()=>{let e={},r=new Map,i=(L,V)=>{e[L]=JSON.stringify(V)},s=()=>{let L=ibn();return L in e||i(L,obn()),kde(L)},l=L=>{let V=ebn(L);return V in e||i(V,XSn(L)),kde(V)},d=(L,V)=>{let j=tbn(L);return j in e||i(j,{type:"string",enum:[...V]}),kde(j)},h=L=>{let V=rbn(L.name);if(!(V in e)){i(V,{});let j=Object.values(L.getFields()),ie=Object.fromEntries(j.map(X=>{let Re=S(X.type),Je=_it(JWt(rwe(Re,X.description),X.defaultValue),X.deprecationReason);return[X.name,Je]})),te=j.filter(X=>(0,Np.isNonNullType)(X.type)&&X.defaultValue===void 0).map(X=>X.name);i(V,{type:"object",properties:ie,...te.length>0?{required:te}:{},additionalProperties:!1})}return kde(V)},S=L=>{if((0,Np.isNonNullType)(L))return S(L.ofType);if((0,Np.isListType)(L))return{type:"array",items:S(L.ofType)};let V=(0,Np.getNamedType)(L);return(0,Np.isScalarType)(V)?l(V.name):(0,Np.isEnumType)(V)?d(V.name,V.getValues().map(j=>j.name)):(0,Np.isInputObjectType)(V)?h(V):{}},b=(L,V)=>{if((0,Np.isScalarType)(L))return{selectionSet:"",schema:l(L.name)};if((0,Np.isEnumType)(L))return{selectionSet:"",schema:d(L.name,L.getValues().map(hr=>hr.name))};let j=nbn(L.name,V),ie=r.get(j);if(ie)return ie;if((0,Np.isUnionType)(L)){let hr={selectionSet:"{ __typename }",schema:s()};return r.set(j,hr),hr}if(!(0,Np.isObjectType)(L)&&!(0,Np.isInterfaceType)(L))return{selectionSet:"{ __typename }",schema:s()};let te={selectionSet:"{ __typename }",schema:s()};if(r.set(j,te),V>=2)return te;let X=Object.values(L.getFields()).filter(hr=>!hr.name.startsWith("__")),Re=X.filter(hr=>(0,Np.isLeafType)((0,Np.getNamedType)(hr.type))),Je=X.filter(hr=>!(0,Np.isLeafType)((0,Np.getNamedType)(hr.type))),pt=MWt({fields:Re,preferredNames:VSn,limit:3}),$e=MWt({fields:Je,preferredNames:WSn,limit:2}),xt=dit([...pt,...$e]);if(xt.length===0)return te;let tr=[],ht={},wt=[];for(let hr of xt){let Hi=A(hr.type,V+1),un=_it(rwe(Hi.schema,hr.description),hr.deprecationReason);ht[hr.name]=un,wt.push(hr.name),tr.push(Hi.selectionSet.length>0?`${hr.name} ${Hi.selectionSet}`:hr.name)}ht.__typename={type:"string"},wt.push("__typename"),tr.push("__typename"),i(j,{type:"object",properties:ht,required:wt,additionalProperties:!1});let Ut={selectionSet:`{ ${tr.join(" ")} }`,schema:kde(j)};return r.set(j,Ut),Ut},A=(L,V=0)=>{if((0,Np.isNonNullType)(L))return A(L.ofType,V);if((0,Np.isListType)(L)){let j=A(L.ofType,V);return{selectionSet:j.selectionSet,schema:{type:"array",items:j.schema}}}return b((0,Np.getNamedType)(L),V)};return{refTable:e,inputSchemaForType:S,selectedOutputForType:A}},ewe=(e,r=0)=>{if((0,Np.isNonNullType)(e))return ewe(e.ofType,r);if((0,Np.isListType)(e))return[ewe(e.ofType,r+1)];let i=(0,Np.getNamedType)(e);if((0,Np.isScalarType)(i))return YSn(i.name);if((0,Np.isEnumType)(i))return i.getValues()[0]?.name??"VALUE";if((0,Np.isInputObjectType)(i)){if(r>=2)return{};let s=Object.values(i.getFields()),l=s.filter(h=>(0,Np.isNonNullType)(h.type)&&h.defaultValue===void 0),d=l.length>0?l:s.slice(0,1);return Object.fromEntries(d.map(h=>[h.name,h.defaultValue??ewe(h.type,r+1)]))}return{}},dit=e=>{let r=new Set,i=[];for(let s of e)r.has(s.name)||(r.add(s.name),i.push(s));return i},MWt=e=>{let r=e.preferredNames.map(i=>e.fields.find(s=>s.name===i)).filter(i=>i!==void 0);return r.length>=e.limit?dit(r).slice(0,e.limit):dit([...r,...e.fields]).slice(0,e.limit)},fit=e=>(0,Np.isNonNullType)(e)?`${fit(e.ofType)}!`:(0,Np.isListType)(e)?`[${fit(e.ofType)}]`:e.name,sbn=(e,r)=>{let i=Object.fromEntries(e.map(l=>{let d=r.inputSchemaForType(l.type),h=_it(JWt(rwe(d,l.description),l.defaultValue),l.deprecationReason);return[l.name,h]})),s=e.filter(l=>(0,Np.isNonNullType)(l.type)&&l.defaultValue===void 0).map(l=>l.name);return{type:"object",properties:{...i,headers:{type:"object",description:"Optional per-request headers.",additionalProperties:{type:"string"}}},...s.length>0?{required:s}:{},additionalProperties:!1}},cbn=(e,r)=>{let i=r.selectedOutputForType(e);return{type:"object",properties:{data:rwe(i.schema,"Value returned for the selected GraphQL field."),errors:{type:"array",items:{type:"object",properties:{message:{type:"string",description:"GraphQL error message."},path:{type:"array",description:"Path to the field that produced the error.",items:{anyOf:[{type:"string"},{type:"number"}]}},locations:{type:"array",description:"Source locations for the error in the GraphQL document.",items:{type:"object",properties:{line:{type:"number"},column:{type:"number"}},required:["line","column"],additionalProperties:!1}},extensions:{type:"object",description:"Additional provider-specific GraphQL error metadata.",additionalProperties:!0}},required:["message"],additionalProperties:!0}}},required:["data","errors"],additionalProperties:!1}},lbn=e=>{if(e.length===0)return{};let r=e.filter(l=>(0,Np.isNonNullType)(l.type)&&l.defaultValue===void 0),i=r.length>0?r:e.slice(0,1);return Object.fromEntries(i.map(l=>[l.name,l.defaultValue??ewe(l.type)]))},ubn=e=>{let r=e.bundleBuilder.selectedOutputForType(e.fieldType),i=`${twe(e.operationType)}${twe(e.fieldName)}`,s=e.args.map(S=>`$${S.name}: ${fit(S.type)}`).join(", "),l=e.args.map(S=>`${S.name}: $${S.name}`).join(", "),d=l.length>0?`${e.fieldName}(${l})`:e.fieldName,h=r.selectionSet.length>0?` ${r.selectionSet}`:"";return{operationName:i,operationDocument:`${e.operationType} ${i}${s.length>0?`(${s})`:""} { ${d}${h} }`}},pbn=e=>{let r=e.description?.trim();return r||`Execute the GraphQL ${e.operationType} field '${e.fieldName}'.`},_bn=e=>({kind:"request",toolId:"request",rawToolId:"request",toolName:"GraphQL request",description:`Execute a raw GraphQL request against ${e}.`,inputSchema:QSn,outputSchema:ZSn,exampleInput:{query:"query { __typename }"}}),dbn=e=>{let r=e.map(l=>({...l})),i="request",s=l=>{let d=new Map;for(let h of r){let S=d.get(h.toolId)??[];S.push(h),d.set(h.toolId,S)}for(let[h,S]of d.entries())if(!(S.length<2&&h!==i))for(let b of S)b.toolId=l(b)};return s(l=>`${l.leaf}${twe(l.operationType)}`),s(l=>`${l.leaf}${twe(l.operationType)}${_D(`${l.group}:${l.fieldName}`).slice(0,6)}`),r.sort((l,d)=>l.toolId.localeCompare(d.toolId)||l.fieldName.localeCompare(d.fieldName)||l.operationType.localeCompare(d.operationType)).map(l=>({...l}))},jWt=e=>e.rootType?Object.values(e.rootType.getFields()).filter(r=>!r.name.startsWith("__")).map(r=>{let i=qWt(r.name),s=cbn(r.type,e.bundleBuilder),l=sbn(r.args,e.bundleBuilder),{operationName:d,operationDocument:h}=ubn({operationType:e.operationType,fieldName:r.name,args:r.args,fieldType:r.type,bundleBuilder:e.bundleBuilder});return{kind:"field",toolId:i,rawToolId:r.name,toolName:HSn(r.name),description:pbn({operationType:e.operationType,fieldName:r.name,description:r.description}),group:e.operationType,leaf:i,fieldName:r.name,operationType:e.operationType,operationName:d,operationDocument:h,inputSchema:l,outputSchema:s,exampleInput:lbn(r.args),searchTerms:[e.operationType,r.name,...r.args.map(S=>S.name),(0,Np.getNamedType)(r.type).name]}}):[],fbn=e=>_D(e),VWt=(e,r)=>Cde.try({try:()=>{let i=KSn(r),s=(0,Np.buildClientSchema)(i),l=fbn(r),d=abn(),h=dbn([...jWt({rootType:s.getQueryType(),operationType:"query",bundleBuilder:d}),...jWt({rootType:s.getMutationType(),operationType:"mutation",bundleBuilder:d})]);return{version:2,sourceHash:l,queryTypeName:s.getQueryType()?.name??null,mutationTypeName:s.getMutationType()?.name??null,subscriptionTypeName:s.getSubscriptionType()?.name??null,...Object.keys(d.refTable).length>0?{schemaRefTable:d.refTable}:{},tools:[...h,_bn(e)]}},catch:i=>i instanceof Error?i:new Error(String(i))}),WWt=e=>e.tools.map(r=>({toolId:r.toolId,rawToolId:r.rawToolId,name:r.toolName,description:r.description??`Execute ${r.toolName}.`,group:r.kind==="field"?r.group:null,leaf:r.kind==="field"?r.leaf:null,fieldName:r.kind==="field"?r.fieldName:null,operationType:r.kind==="field"?r.operationType:null,operationName:r.kind==="field"?r.operationName:null,operationDocument:r.kind==="field"?r.operationDocument:null,searchTerms:r.kind==="field"?r.searchTerms:["request","graphql","query","mutation"]})),mbn=e=>{if(!e||Object.keys(e).length===0)return;let r={};for(let[i,s]of Object.entries(e)){if(!i.startsWith("#/$defs/"))continue;let l=typeof s=="string"?(()=>{try{return JSON.parse(s)}catch{return s}})():s,d=i.slice(8).split("/").filter(h=>h.length>0);HWt(r,d,l)}return Object.keys(r).length>0?r:void 0},BWt=e=>{if(e.schema===void 0)return;if(e.defsRoot===void 0)return e.schema;let r=e.cache.get(e.schema);if(r)return r;let i=e.schema.$defs,s=i&&typeof i=="object"&&!Array.isArray(i)?{...e.schema,$defs:{...e.defsRoot,...i}}:{...e.schema,$defs:e.defsRoot};return e.cache.set(e.schema,s),s},$Wt=new WeakMap,hbn=e=>{let r=$Wt.get(e);if(r)return r;let i=nwe.fromIterable(e.tools.map(S=>[S.toolId,S])),s=mbn(e.schemaRefTable),l=new WeakMap,d=new Map,h={resolve(S){let b=d.get(S.toolId);if(b)return b;let A=UWt.getOrUndefined(nwe.get(i,S.toolId)),L=BWt({schema:A?.inputSchema,defsRoot:s,cache:l}),V=BWt({schema:A?.outputSchema,defsRoot:s,cache:l}),j={inputTypePreview:S6(L,"unknown",LWt),outputTypePreview:S6(V,"unknown",LWt),...L!==void 0?{inputSchema:L}:{},...V!==void 0?{outputSchema:V}:{},...A?.exampleInput!==void 0?{exampleInput:A.exampleInput}:{},providerData:{kind:"graphql",toolKind:A?.kind??"request",toolId:S.toolId,rawToolId:S.rawToolId,group:S.group,leaf:S.leaf,fieldName:S.fieldName,operationType:S.operationType,operationName:S.operationName,operationDocument:S.operationDocument,queryTypeName:e.queryTypeName,mutationTypeName:e.mutationTypeName,subscriptionTypeName:e.subscriptionTypeName}};return d.set(S.toolId,j),j}};return $Wt.set(e,h),h},GWt=e=>hbn(e.manifest).resolve(e.definition),pKn=r4.decodeUnknownEither(E_e),_Kn=r4.decodeUnknownEither(r4.parseJson(r4.Record({key:r4.String,value:r4.Unknown}))),HWt=(e,r,i)=>{if(r.length===0)return;let[s,...l]=r;if(!s)return;if(l.length===0){e[s]=i;return}let d=pit(e[s]);e[s]=d,HWt(d,l,i)};var mit=e=>$B.gen(function*(){let r=yield*$B.either(eY({method:"POST",url:e.normalizedUrl,headers:{accept:"application/graphql-response+json, application/json","content-type":"application/json",...e.headers},body:JSON.stringify({query:iwe})}));if(KWt.isLeft(r))return null;let i=pFt(r.right.text),s=(r.right.headers["content-type"]??"").toLowerCase(),l=E1(i)&&E1(i.data)?i.data:null;if(l&&E1(l.__schema)){let A=$N(e.normalizedUrl);return{detectedKind:"graphql",confidence:"high",endpoint:e.normalizedUrl,specUrl:null,name:A,namespace:vT(A),transport:null,authInference:UN("GraphQL introspection succeeded without an advertised auth requirement","medium"),toolCount:null,warnings:[]}}let h=(E1(i)&&Array.isArray(i.errors)?i.errors:[]).map(A=>E1(A)&&typeof A.message=="string"?A.message:null).filter(A=>A!==null);if(!(s.includes("application/graphql-response+json")||Cj(e.normalizedUrl)&&r.right.status>=400&&r.right.status<500||h.some(A=>/introspection|graphql|query/i.test(A))))return null;let b=$N(e.normalizedUrl);return{detectedKind:"graphql",confidence:l?"high":"medium",endpoint:e.normalizedUrl,specUrl:null,name:b,namespace:vT(b),transport:null,authInference:r.right.status===401||r.right.status===403?lFt(r.right.headers,"GraphQL endpoint rejected introspection and did not advertise a concrete auth scheme"):UN(h.length>0?`GraphQL endpoint responded with errors during introspection: ${h[0]}`:"GraphQL endpoint shape detected","medium"),toolCount:null,warnings:h.length>0?[h[0]]:[]}}).pipe($B.catchAll(()=>$B.succeed(null)));import*as Fee from"effect/Schema";var hit=Fee.Struct({defaultHeaders:Fee.optional(Fee.NullOr(M_))});var QWt=()=>({type:"array",items:{type:"object",properties:{message:{type:"string",description:"GraphQL error message."},path:{type:"array",description:"Path to the field that produced the error.",items:{anyOf:[{type:"string"},{type:"number"}]}},locations:{type:"array",description:"Source locations for the error in the GraphQL document.",items:{type:"object",properties:{line:{type:"number"},column:{type:"number"}},required:["line","column"],additionalProperties:!1}},extensions:{type:"object",description:"Additional provider-specific GraphQL error metadata.",additionalProperties:!0}},required:["message"],additionalProperties:!0}}),gbn=e=>{if(e.toolKind!=="field")return _k(e.outputSchema);let r=_k(e.outputSchema),i=_k(_k(r.properties).data);return Object.keys(i).length>0?tY(i,e.outputSchema):r},ybn=e=>{if(e.toolKind!=="field")return QWt();let r=_k(e.outputSchema),i=_k(_k(r.properties).errors);return Object.keys(i).length>0?tY(i,e.outputSchema):QWt()},vbn=e=>{let r=d5(e.source,e.operation.providerData.toolId),i=vD.make(`cap_${Td({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),s=pk.make(`exec_${Td({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"graphql"})}`),l=e.operation.inputSchema!==void 0?e.importer.importSchema(e.operation.inputSchema,`#/graphql/${e.operation.providerData.toolId}/call`):e.importer.importSchema({type:"object",additionalProperties:!0},`#/graphql/${e.operation.providerData.toolId}/call`),d=e.operation.outputSchema!==void 0?e.importer.importSchema(gbn({toolKind:e.operation.providerData.toolKind,outputSchema:e.operation.outputSchema}),`#/graphql/${e.operation.providerData.toolId}/data`):e.importer.importSchema({type:"object",additionalProperties:!0},`#/graphql/${e.operation.providerData.toolId}/data`),h=e.importer.importSchema(ybn({toolKind:e.operation.providerData.toolKind,outputSchema:e.operation.outputSchema}),`#/graphql/${e.operation.providerData.toolId}/errors`),S=SD.make(`response_${Td({capabilityId:i})}`);x_(e.catalog.symbols)[S]={id:S,kind:"response",...Gd({description:e.operation.description})?{docs:Gd({description:e.operation.description})}:{},contents:[{mediaType:"application/json",shapeId:d}],synthetic:!1,provenance:ld(e.documentId,`#/graphql/${e.operation.providerData.toolId}/response`)};let b=m5({catalog:e.catalog,responseId:S,provenance:ld(e.documentId,`#/graphql/${e.operation.providerData.toolId}/responseSet`)});x_(e.catalog.executables)[s]={id:s,capabilityId:i,scopeId:e.serviceScopeId,adapterKey:"graphql",bindingVersion:rx,binding:e.operation.providerData,projection:{responseSetId:b,callShapeId:l,resultDataShapeId:d,resultErrorShapeId:h},display:{protocol:"graphql",method:e.operation.providerData.operationType??"query",pathTemplate:e.operation.providerData.fieldName??e.operation.providerData.leaf??e.operation.providerData.toolId,operationId:e.operation.providerData.fieldName??e.operation.providerData.leaf??e.operation.providerData.toolId,group:e.operation.providerData.group,leaf:e.operation.providerData.leaf,rawToolId:e.operation.providerData.toolId,title:e.operation.title??null,summary:e.operation.description??null},synthetic:!1,provenance:ld(e.documentId,`#/graphql/${e.operation.providerData.toolId}/executable`)};let A=e.operation.effect;x_(e.catalog.capabilities)[i]={id:i,serviceScopeId:e.serviceScopeId,surface:{toolPath:r,...e.operation.title?{title:e.operation.title}:{},...e.operation.description?{summary:e.operation.description}:{},...e.operation.providerData.group?{tags:[e.operation.providerData.group]}:{}},semantics:{effect:A,safe:A==="read",idempotent:A==="read",destructive:!1},auth:{kind:"none"},interaction:f5(A),executableIds:[s],synthetic:!1,provenance:ld(e.documentId,`#/graphql/${e.operation.providerData.toolId}/capability`)}},ZWt=e=>h5({source:e.source,documents:e.documents,resourceDialectUri:"https://spec.graphql.org/",registerOperations:({catalog:r,documentId:i,serviceScopeId:s,importer:l})=>{for(let d of e.operations)vbn({catalog:r,source:e.source,documentId:i,serviceScopeId:s,operation:d,importer:l})}});import*as bf from"effect/Effect";import*as I1 from"effect/Schema";var Sbn=I1.extend(zke,I1.extend(Ij,I1.Struct({kind:I1.Literal("graphql"),auth:I1.optional(v5)}))),bbn=I1.extend(Ij,I1.Struct({kind:I1.Literal("graphql"),endpoint:I1.String,name:sy,namespace:sy,auth:I1.optional(v5)})),XWt=I1.Struct({defaultHeaders:I1.NullOr(M_)}),xbn=I1.Struct({defaultHeaders:I1.optional(I1.NullOr(M_))}),Ade=1,YWt=15e3,eGt=(e,r)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&r.some(i=>Object.prototype.hasOwnProperty.call(e,i)),tW=e=>bf.gen(function*(){return eGt(e.binding,["transport","queryParams","headers"])?yield*og("graphql/adapter","GraphQL sources cannot define MCP transport settings"):eGt(e.binding,["specUrl"])?yield*og("graphql/adapter","GraphQL sources cannot define specUrl"):{defaultHeaders:(yield*GN({sourceId:e.id,label:"GraphQL",version:e.bindingVersion,expectedVersion:Ade,schema:xbn,value:e.binding,allowedKeys:["defaultHeaders"]})).defaultHeaders??null}}),Tbn=e=>bf.tryPromise({try:async()=>{let r;try{r=await fetch(b6({url:e.url,queryParams:e.queryParams}).toString(),{method:"POST",headers:pD({headers:{"content-type":"application/json",...e.headers},cookies:e.cookies}),body:JSON.stringify(X7({body:{query:iwe,operationName:"IntrospectionQuery"},bodyValues:e.bodyValues,label:`GraphQL introspection ${e.url}`})),signal:AbortSignal.timeout(YWt)})}catch(l){throw l instanceof Error&&(l.name==="AbortError"||l.name==="TimeoutError")?new Error(`GraphQL introspection timed out after ${YWt}ms`):l}let i=await r.text(),s;try{s=JSON.parse(i)}catch(l){throw new Error(`GraphQL introspection endpoint did not return JSON: ${l instanceof Error?l.message:String(l)}`)}if(!r.ok)throw r.status===401||r.status===403?new y5("import",`GraphQL introspection requires credentials (status ${r.status})`):new Error(`GraphQL introspection failed with status ${r.status}`);return JSON.stringify(s,null,2)},catch:r=>r instanceof Error?r:new Error(String(r))}),Ebn=e=>{let r=GWt({manifest:e.manifest,definition:e.definition});return{toolId:e.definition.toolId,title:e.definition.name,description:e.definition.description,effect:e.definition.operationType==="query"?"read":"write",inputSchema:r.inputSchema,outputSchema:r.outputSchema,providerData:r.providerData}},wde=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},tGt=e=>typeof e=="string"&&e.trim().length>0?e:null,kbn=e=>Object.fromEntries(Object.entries(wde(e)).flatMap(([r,i])=>typeof i=="string"?[[r,i]]:[])),Cbn=e=>{let r={};return e.headers.forEach((i,s)=>{r[s]=i}),r},Dbn=async e=>(e.headers.get("content-type")?.toLowerCase()??"").includes("application/json")?e.json():e.text(),Abn=e=>Object.fromEntries(Object.entries(e).filter(([,r])=>r!==void 0)),rGt={key:"graphql",displayName:"GraphQL",catalogKind:"imported",connectStrategy:"direct",credentialStrategy:"credential_managed",bindingConfigVersion:Ade,providerKey:"generic_graphql",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:Sbn,executorAddInputSchema:bbn,executorAddHelpText:["endpoint is the GraphQL HTTP endpoint."],executorAddInputSignatureWidth:320,localConfigBindingSchema:hit,localConfigBindingFromSource:e=>bf.runSync(bf.map(tW(e),r=>({defaultHeaders:r.defaultHeaders}))),serializeBindingConfig:e=>VN({adapterKey:"graphql",version:Ade,payloadSchema:XWt,payload:bf.runSync(tW(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:r})=>bf.map(WN({sourceId:e,label:"GraphQL",adapterKey:"graphql",version:Ade,payloadSchema:XWt,value:r}),({version:i,payload:s})=>({version:i,payload:s})),bindingStateFromSource:e=>bf.map(tW(e),r=>({...JN,defaultHeaders:r.defaultHeaders})),sourceConfigFromSource:e=>bf.runSync(bf.map(tW(e),r=>({kind:"graphql",endpoint:e.endpoint,defaultHeaders:r.defaultHeaders}))),validateSource:e=>bf.gen(function*(){let r=yield*tW(e);return{...e,bindingVersion:Ade,binding:{defaultHeaders:r.defaultHeaders}}}),shouldAutoProbe:e=>e.enabled&&(e.status==="draft"||e.status==="probing"),discoveryPriority:({normalizedUrl:e})=>Cj(e)?400:150,detectSource:({normalizedUrl:e,headers:r})=>mit({normalizedUrl:e,headers:r}),syncCatalog:({source:e,resolveAuthMaterialForSlot:r})=>bf.gen(function*(){let i=yield*tW(e),s=yield*r("import"),l=yield*Tbn({url:e.endpoint,headers:{...i.defaultHeaders,...s.headers},queryParams:s.queryParams,cookies:s.cookies,bodyValues:s.bodyValues}).pipe(bf.withSpan("graphql.introspection.fetch",{kind:"client",attributes:{"executor.source.id":e.id,"executor.source.endpoint":e.endpoint}}),bf.mapError(L=>S5(L)?L:new Error(`Failed fetching GraphQL introspection for ${e.id}: ${L.message}`))),d=yield*VWt(e.name,l).pipe(bf.withSpan("graphql.manifest.extract",{attributes:{"executor.source.id":e.id}}),bf.mapError(L=>L instanceof Error?L:new Error(String(L))));yield*bf.annotateCurrentSpan("graphql.tool.count",d.tools.length);let h=yield*bf.sync(()=>WWt(d)).pipe(bf.withSpan("graphql.definitions.compile",{attributes:{"executor.source.id":e.id,"graphql.tool.count":d.tools.length}}));yield*bf.annotateCurrentSpan("graphql.definition.count",h.length);let S=yield*bf.sync(()=>h.map(L=>Ebn({definition:L,manifest:d}))).pipe(bf.withSpan("graphql.operations.build",{attributes:{"executor.source.id":e.id,"graphql.definition.count":h.length}})),b=Date.now(),A=yield*bf.sync(()=>ZWt({source:e,documents:[{documentKind:"graphql_introspection",documentKey:e.endpoint,contentText:l,fetchedAt:b}],operations:S})).pipe(bf.withSpan("graphql.snapshot.build",{attributes:{"executor.source.id":e.id,"graphql.operation.count":S.length}}));return qN({fragment:A,importMetadata:R2({source:e,adapterKey:"graphql"}),sourceHash:d.sourceHash})}).pipe(bf.withSpan("graphql.syncCatalog",{attributes:{"executor.source.id":e.id,"executor.source.endpoint":e.endpoint}})),invoke:e=>bf.tryPromise({try:async()=>{let r=bf.runSync(tW(e.source)),i=Pj({executableId:e.executable.id,label:"GraphQL",version:e.executable.bindingVersion,expectedVersion:rx,schema:E_e,value:e.executable.binding}),s=wde(e.args),l=pD({headers:{"content-type":"application/json",...r.defaultHeaders,...e.auth.headers,...kbn(s.headers)},cookies:e.auth.cookies}),d=b6({url:e.source.endpoint,queryParams:e.auth.queryParams}).toString(),h=i.toolKind==="request"||typeof i.operationDocument!="string"||i.operationDocument.trim().length===0,S=h?(()=>{let Re=tGt(s.query);if(Re===null)throw new Error("GraphQL request tools require args.query");return Re})():i.operationDocument,b=h?s.variables!==void 0?wde(s.variables):void 0:Abn(Object.fromEntries(Object.entries(s).filter(([Re])=>Re!=="headers"))),A=h?tGt(s.operationName)??void 0:i.operationName??void 0,L=await fetch(d,{method:"POST",headers:l,body:JSON.stringify({query:S,...b?{variables:b}:{},...A?{operationName:A}:{}})}),V=await Dbn(L),j=wde(V),ie=Array.isArray(j.errors)?j.errors:[],te=i.fieldName??i.leaf??i.toolId,X=wde(j.data);return{data:h?V:X[te]??null,error:ie.length>0?ie:L.status>=400?V:null,headers:Cbn(L),status:L.status}},catch:r=>r instanceof Error?r:new Error(String(r))})};var VKt=fJ(JKt(),1),rkn=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),nkn=e=>JSON.parse(e),ikn=e=>(0,VKt.parse)(e),okn=e=>{try{return nkn(e)}catch{return ikn(e)}},sfe=e=>{let r=e.trim();if(r.length===0)throw new Error("OpenAPI document is empty");try{let i=okn(r);if(!rkn(i))throw new Error("OpenAPI document must parse to an object");return i}catch(i){throw new Error(`Unable to parse OpenAPI document as JSON or YAML: ${i instanceof Error?i.message:String(i)}`)}};import*as dQt from"effect/Data";import*as a4 from"effect/Effect";import{pipe as gkn}from"effect/Function";import*as sIe from"effect/ParseResult";import*as cIe from"effect/Schema";function GKt(e,r){let i,s;try{let h=WKt(e,W2.__wbindgen_malloc,W2.__wbindgen_realloc),S=nIe,b=WKt(r,W2.__wbindgen_malloc,W2.__wbindgen_realloc),A=nIe,L=W2.extract_manifest_json_wasm(h,S,b,A);var l=L[0],d=L[1];if(L[3])throw l=0,d=0,skn(L[2]);return i=l,s=d,HKt(l,d)}finally{W2.__wbindgen_free(i,s,1)}}function akn(){return{__proto__:null,"./openapi_extractor_bg.js":{__proto__:null,__wbindgen_cast_0000000000000001:function(r,i){return HKt(r,i)},__wbindgen_init_externref_table:function(){let r=W2.__wbindgen_externrefs,i=r.grow(4);r.set(0,void 0),r.set(i+0,void 0),r.set(i+1,null),r.set(i+2,!0),r.set(i+3,!1)}}}}function HKt(e,r){return e=e>>>0,lkn(e,r)}var cfe=null;function tIe(){return(cfe===null||cfe.byteLength===0)&&(cfe=new Uint8Array(W2.memory.buffer)),cfe}function WKt(e,r,i){if(i===void 0){let S=lfe.encode(e),b=r(S.length,1)>>>0;return tIe().subarray(b,b+S.length).set(S),nIe=S.length,b}let s=e.length,l=r(s,1)>>>0,d=tIe(),h=0;for(;h127)break;d[l+h]=S}if(h!==s){h!==0&&(e=e.slice(h)),l=i(l,s,s=h+e.length*3,1)>>>0;let S=tIe().subarray(l+h,l+s),b=lfe.encodeInto(e,S);h+=b.written,l=i(l,s,h,1)>>>0}return nIe=h,l}function skn(e){let r=W2.__wbindgen_externrefs.get(e);return W2.__externref_table_dealloc(e),r}var rIe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});rIe.decode();var ckn=2146435072,Zot=0;function lkn(e,r){return Zot+=r,Zot>=ckn&&(rIe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),rIe.decode(),Zot=r),rIe.decode(tIe().subarray(e,e+r))}var lfe=new TextEncoder;"encodeInto"in lfe||(lfe.encodeInto=function(e,r){let i=lfe.encode(e);return r.set(i),{read:e.length,written:i.length}});var nIe=0,ukn,W2;function pkn(e,r){return W2=e.exports,ukn=r,cfe=null,W2.__wbindgen_start(),W2}async function _kn(e,r){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,r)}catch(l){if(e.ok&&i(e.type)&&e.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",l);else throw l}let s=await e.arrayBuffer();return await WebAssembly.instantiate(s,r)}else{let s=await WebAssembly.instantiate(e,r);return s instanceof WebAssembly.Instance?{instance:s,module:e}:s}function i(s){switch(s){case"basic":case"cors":case"default":return!0}return!1}}async function Xot(e){if(W2!==void 0)return W2;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),e===void 0&&(e=new URL("openapi_extractor_bg.wasm",import.meta.url));let r=akn();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:i,module:s}=await _kn(await e,r);return pkn(i,s)}var iIe,QKt=new URL("./openapi-extractor-wasm/openapi_extractor_bg.wasm",import.meta.url),KKt=e=>e instanceof Error?e.message:String(e),dkn=async()=>{await Xot({module_or_path:QKt})},fkn=async()=>{let[{readFile:e},{fileURLToPath:r}]=await Promise.all([import("node:fs/promises"),import("node:url")]),i=r(QKt),s=await e(i);await Xot({module_or_path:s})},mkn=()=>(iIe||(iIe=(async()=>{let e;try{await dkn();return}catch(r){e=r}try{await fkn();return}catch(r){throw new Error(["Unable to initialize OpenAPI extractor wasm.",`runtime-url failed: ${KKt(e)}`,`node-fs fallback failed: ${KKt(r)}`].join(" "))}})().catch(e=>{throw iIe=void 0,e})),iIe),ZKt=(e,r)=>mkn().then(()=>GKt(e,r));import{Schema as vn}from"effect";var XKt=["get","put","post","delete","patch","head","options","trace"],YKt=["path","query","header","cookie"],Wee=vn.Literal(...XKt),Yot=vn.Literal(...YKt),eQt=vn.Struct({name:vn.String,location:Yot,required:vn.Boolean,style:vn.optional(vn.String),explode:vn.optional(vn.Boolean),allowReserved:vn.optional(vn.Boolean),content:vn.optional(vn.Array(vn.suspend(()=>ufe)))}),ufe=vn.Struct({mediaType:vn.String,schema:vn.optional(vn.Unknown),examples:vn.optional(vn.Array(vn.suspend(()=>lW)))}),tQt=vn.Struct({name:vn.String,description:vn.optional(vn.String),required:vn.optional(vn.Boolean),deprecated:vn.optional(vn.Boolean),schema:vn.optional(vn.Unknown),content:vn.optional(vn.Array(ufe)),style:vn.optional(vn.String),explode:vn.optional(vn.Boolean),examples:vn.optional(vn.Array(vn.suspend(()=>lW)))}),rQt=vn.Struct({required:vn.Boolean,contentTypes:vn.Array(vn.String),contents:vn.optional(vn.Array(ufe))}),ZB=vn.Struct({url:vn.String,description:vn.optional(vn.String),variables:vn.optional(vn.Record({key:vn.String,value:vn.String}))}),pfe=vn.Struct({method:Wee,pathTemplate:vn.String,parameters:vn.Array(eQt),requestBody:vn.NullOr(rQt)}),oIe=vn.Struct({inputSchema:vn.optional(vn.Unknown),outputSchema:vn.optional(vn.Unknown),refHintKeys:vn.optional(vn.Array(vn.String))}),nQt=vn.Union(vn.String,vn.Record({key:vn.String,value:vn.Unknown})),hkn=vn.Record({key:vn.String,value:nQt}),lW=vn.Struct({valueJson:vn.String,mediaType:vn.optional(vn.String),label:vn.optional(vn.String)}),iQt=vn.Struct({name:vn.String,location:Yot,required:vn.Boolean,description:vn.optional(vn.String),examples:vn.optional(vn.Array(lW))}),oQt=vn.Struct({description:vn.optional(vn.String),examples:vn.optional(vn.Array(lW))}),aQt=vn.Struct({statusCode:vn.String,description:vn.optional(vn.String),contentTypes:vn.Array(vn.String),examples:vn.optional(vn.Array(lW))}),_fe=vn.Struct({statusCode:vn.String,description:vn.optional(vn.String),contentTypes:vn.Array(vn.String),schema:vn.optional(vn.Unknown),examples:vn.optional(vn.Array(lW)),contents:vn.optional(vn.Array(ufe)),headers:vn.optional(vn.Array(tQt))}),dfe=vn.Struct({summary:vn.optional(vn.String),deprecated:vn.optional(vn.Boolean),parameters:vn.Array(iQt),requestBody:vn.optional(oQt),response:vn.optional(aQt)}),cW=vn.suspend(()=>vn.Union(vn.Struct({kind:vn.Literal("none")}),vn.Struct({kind:vn.Literal("scheme"),schemeName:vn.String,scopes:vn.optional(vn.Array(vn.String))}),vn.Struct({kind:vn.Literal("allOf"),items:vn.Array(cW)}),vn.Struct({kind:vn.Literal("anyOf"),items:vn.Array(cW)}))),sQt=vn.Literal("apiKey","http","oauth2","openIdConnect"),cQt=vn.Struct({authorizationUrl:vn.optional(vn.String),tokenUrl:vn.optional(vn.String),refreshUrl:vn.optional(vn.String),scopes:vn.optional(vn.Record({key:vn.String,value:vn.String}))}),ffe=vn.Struct({schemeName:vn.String,schemeType:sQt,description:vn.optional(vn.String),placementIn:vn.optional(vn.Literal("header","query","cookie")),placementName:vn.optional(vn.String),scheme:vn.optional(vn.String),bearerFormat:vn.optional(vn.String),openIdConnectUrl:vn.optional(vn.String),flows:vn.optional(vn.Record({key:vn.String,value:cQt}))}),eat=vn.Struct({kind:vn.Literal("openapi"),toolId:vn.String,rawToolId:vn.String,operationId:vn.optional(vn.String),group:vn.String,leaf:vn.String,tags:vn.Array(vn.String),versionSegment:vn.optional(vn.String),method:Wee,path:vn.String,operationHash:vn.String,invocation:pfe,documentation:vn.optional(dfe),responses:vn.optional(vn.Array(_fe)),authRequirement:vn.optional(cW),securitySchemes:vn.optional(vn.Array(ffe)),documentServers:vn.optional(vn.Array(ZB)),servers:vn.optional(vn.Array(ZB))}),lQt=vn.Struct({toolId:vn.String,operationId:vn.optional(vn.String),tags:vn.Array(vn.String),name:vn.String,description:vn.NullOr(vn.String),method:Wee,path:vn.String,invocation:pfe,operationHash:vn.String,typing:vn.optional(oIe),documentation:vn.optional(dfe),responses:vn.optional(vn.Array(_fe)),authRequirement:vn.optional(cW),securitySchemes:vn.optional(vn.Array(ffe)),documentServers:vn.optional(vn.Array(ZB)),servers:vn.optional(vn.Array(ZB))}),tat=vn.Struct({version:vn.Literal(2),sourceHash:vn.String,tools:vn.Array(lQt),refHintTable:vn.optional(vn.Record({key:vn.String,value:vn.String}))});var Gee=class extends dQt.TaggedError("OpenApiExtractionError"){},ykn=cIe.parseJson(tat),vkn=cIe.decodeUnknown(ykn),rat=(e,r,i)=>i instanceof Gee?i:new Gee({sourceName:e,stage:r,message:"OpenAPI extraction failed",details:sIe.isParseError(i)?sIe.TreeFormatter.formatErrorSync(i):String(i)}),Skn=(e,r)=>typeof r=="string"?a4.succeed(r):a4.try({try:()=>JSON.stringify(r),catch:i=>new Gee({sourceName:e,stage:"validate",message:"Unable to serialize OpenAPI input",details:String(i)})}),Yd=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{},mfe=e=>Array.isArray(e)?e:[],Xd=e=>typeof e=="string"&&e.trim().length>0?e.trim():void 0,nat=e=>Array.isArray(e)?e.map(r=>nat(r)):e!==null&&typeof e=="object"?Object.fromEntries(Object.entries(e).sort(([r],[i])=>r.localeCompare(i)).map(([r,i])=>[r,nat(i)])):e,iat=e=>JSON.stringify(nat(e)),p9=(e,r)=>{if(Array.isArray(e)){for(let s of e)p9(s,r);return}if(e===null||typeof e!="object")return;let i=e;typeof i.$ref=="string"&&i.$ref.startsWith("#/")&&r.add(i.$ref);for(let s of Object.values(i))p9(s,r)},bkn=e=>e.replaceAll("~1","/").replaceAll("~0","~"),o4=(e,r,i=new Set)=>{let s=Yd(r),l=typeof s.$ref=="string"?s.$ref:null;if(!l||!l.startsWith("#/")||i.has(l))return r;let d=l.slice(2).split("/").reduce((L,V)=>{if(L!=null)return Yd(L)[bkn(V)]},e);if(d===void 0)return r;let h=new Set(i);h.add(l);let S=Yd(o4(e,d,h)),{$ref:b,...A}=s;return Object.keys(A).length>0?{...S,...A}:S},uQt=e=>/^2\d\d$/.test(e)?0:e==="default"?1:2,fQt=e=>{let r=Object.entries(Yd(e)).sort(([i],[s])=>i.localeCompare(s)).map(([i,s])=>[i,Yd(s)]);return r.find(([i])=>i==="application/json")??r.find(([i])=>i.toLowerCase().includes("+json"))??r.find(([i])=>i.toLowerCase().includes("json"))??r[0]},aIe=e=>fQt(e)?.[1].schema,lIe=(e,r)=>Object.entries(Yd(r)).sort(([s],[l])=>s.localeCompare(l)).map(([s,l])=>{let d=Yd(o4(e,l)),h=mQt(s,d);return{mediaType:s,...d.schema!==void 0?{schema:d.schema}:{},...h.length>0?{examples:h}:{}}}),sat=(e,r={})=>{let i=Yd(e),s=[];i.example!==void 0&&s.push({valueJson:iat(i.example),...r.mediaType?{mediaType:r.mediaType}:{},...r.label?{label:r.label}:{}});let l=Object.entries(Yd(i.examples)).sort(([d],[h])=>d.localeCompare(h));for(let[d,h]of l){let S=Yd(h);s.push({valueJson:iat(S.value!==void 0?S.value:h),...r.mediaType?{mediaType:r.mediaType}:{},label:d})}return s},xkn=e=>sat(e),mQt=(e,r)=>{let i=sat(r,{mediaType:e});return i.length>0?i:xkn(r.schema).map(s=>({...s,mediaType:e}))},Tkn=(e,r,i)=>{let s=Yd(o4(e,i));if(Object.keys(s).length===0)return;let l=lIe(e,s.content),d=l.length>0?[]:sat(s);return{name:r,...Xd(s.description)?{description:Xd(s.description)}:{},...typeof s.required=="boolean"?{required:s.required}:{},...typeof s.deprecated=="boolean"?{deprecated:s.deprecated}:{},...s.schema!==void 0?{schema:s.schema}:{},...l.length>0?{content:l}:{},...Xd(s.style)?{style:Xd(s.style)}:{},...typeof s.explode=="boolean"?{explode:s.explode}:{},...d.length>0?{examples:d}:{}}},Ekn=(e,r)=>Object.entries(Yd(r)).sort(([i],[s])=>i.localeCompare(s)).flatMap(([i,s])=>{let l=Tkn(e,i,s);return l?[l]:[]}),oat=e=>mfe(e).map(r=>Yd(r)).flatMap(r=>{let i=Xd(r.url);if(!i)return[];let s=Object.fromEntries(Object.entries(Yd(r.variables)).sort(([l],[d])=>l.localeCompare(d)).flatMap(([l,d])=>{let h=Yd(d),S=Xd(h.default);return S?[[l,S]]:[]}));return[{url:i,...Xd(r.description)?{description:Xd(r.description)}:{},...Object.keys(s).length>0?{variables:s}:{}}]}),hQt=(e,r)=>Yd(Yd(e.paths)[r.path]),aat=e=>`${e.location}:${e.name}`,kkn=(e,r)=>{let i=new Map,s=hQt(e,r),l=uW(e,r);for(let d of mfe(s.parameters)){let h=Yd(o4(e,d)),S=Xd(h.name),b=Xd(h.in);!S||!b||i.set(aat({location:b,name:S}),h)}for(let d of mfe(l.parameters)){let h=Yd(o4(e,d)),S=Xd(h.name),b=Xd(h.in);!S||!b||i.set(aat({location:b,name:S}),h)}return i},uW=(e,r)=>Yd(Yd(Yd(e.paths)[r.path])[r.method]),Ckn=(e,r)=>{let i=uW(e,r);if(Object.keys(i).length===0)return;let s=o4(e,i.requestBody);return aIe(Yd(s).content)},Dkn=(e,r)=>{let i=uW(e,r);if(Object.keys(i).length===0)return r.invocation.requestBody;let s=Yd(o4(e,i.requestBody));if(Object.keys(s).length===0)return r.invocation.requestBody;let l=lIe(e,s.content),d=l.map(h=>h.mediaType);return{required:typeof s.required=="boolean"?s.required:r.invocation.requestBody?.required??!1,contentTypes:d,...l.length>0?{contents:l}:{}}},Akn=(e,r)=>{let i=uW(e,r);if(Object.keys(i).length===0)return;let s=Object.entries(Yd(i.responses)),l=s.filter(([h])=>/^2\d\d$/.test(h)).sort(([h],[S])=>h.localeCompare(S)),d=s.filter(([h])=>h==="default");for(let[,h]of[...l,...d]){let S=o4(e,h),b=aIe(Yd(S).content);if(b!==void 0)return b}},wkn=(e,r)=>{let i=uW(e,r);if(Object.keys(i).length===0)return;let l=Object.entries(Yd(i.responses)).sort(([d],[h])=>uQt(d)-uQt(h)||d.localeCompare(h)).map(([d,h])=>{let S=Yd(o4(e,h)),b=lIe(e,S.content),A=b.map(ie=>ie.mediaType),L=fQt(S.content),V=L?mQt(L[0],L[1]):[],j=Ekn(e,S.headers);return{statusCode:d,...Xd(S.description)?{description:Xd(S.description)}:{},contentTypes:A,...aIe(S.content)!==void 0?{schema:aIe(S.content)}:{},...V.length>0?{examples:V}:{},...b.length>0?{contents:b}:{},...j.length>0?{headers:j}:{}}});return l.length>0?l:void 0},Ikn=e=>{let r=oat(e.servers);return r.length>0?r:void 0},Pkn=(e,r)=>{let i=uW(e,r);if(Object.keys(i).length===0)return;let s=oat(i.servers);if(s.length>0)return s;let l=oat(hQt(e,r).servers);return l.length>0?l:void 0},pQt=e=>{let r=mfe(e);if(r.length===0)return{kind:"none"};let i=r.flatMap(s=>{let l=Object.entries(Yd(s)).sort(([d],[h])=>d.localeCompare(h)).map(([d,h])=>{let S=mfe(h).flatMap(b=>typeof b=="string"&&b.trim().length>0?[b.trim()]:[]);return{kind:"scheme",schemeName:d,...S.length>0?{scopes:S}:{}}});return l.length===0?[]:[l.length===1?l[0]:{kind:"allOf",items:l}]});if(i.length!==0)return i.length===1?i[0]:{kind:"anyOf",items:i}},Nkn=(e,r)=>{let i=uW(e,r);if(Object.keys(i).length!==0)return Object.prototype.hasOwnProperty.call(i,"security")?pQt(i.security):pQt(e.security)},gQt=(e,r)=>{if(e)switch(e.kind){case"none":return;case"scheme":r.add(e.schemeName);return;case"allOf":case"anyOf":for(let i of e.items)gQt(i,r)}},_Qt=e=>{let r=Object.fromEntries(Object.entries(Yd(e)).sort(([i],[s])=>i.localeCompare(s)).map(([i,s])=>{let l=Yd(s),d=Object.fromEntries(Object.entries(Yd(l.scopes)).sort(([h],[S])=>h.localeCompare(S)).map(([h,S])=>[h,Xd(S)??""]));return[i,{...Xd(l.authorizationUrl)?{authorizationUrl:Xd(l.authorizationUrl)}:{},...Xd(l.tokenUrl)?{tokenUrl:Xd(l.tokenUrl)}:{},...Xd(l.refreshUrl)?{refreshUrl:Xd(l.refreshUrl)}:{},...Object.keys(d).length>0?{scopes:d}:{}}]}));return Object.keys(r).length>0?r:void 0},Okn=(e,r)=>{if(!r||r.kind==="none")return;let i=new Set;gQt(r,i);let s=Yd(Yd(e.components).securitySchemes),l=[...i].sort((d,h)=>d.localeCompare(h)).flatMap(d=>{let h=s[d];if(h===void 0)return[];let S=Yd(o4(e,h)),b=Xd(S.type);if(!b)return[];let A=b==="apiKey"||b==="http"||b==="oauth2"||b==="openIdConnect"?b:"http",L=Xd(S.in),V=L==="header"||L==="query"||L==="cookie"?L:void 0;return[{schemeName:d,schemeType:A,...Xd(S.description)?{description:Xd(S.description)}:{},...V?{placementIn:V}:{},...Xd(S.name)?{placementName:Xd(S.name)}:{},...Xd(S.scheme)?{scheme:Xd(S.scheme)}:{},...Xd(S.bearerFormat)?{bearerFormat:Xd(S.bearerFormat)}:{},...Xd(S.openIdConnectUrl)?{openIdConnectUrl:Xd(S.openIdConnectUrl)}:{},..._Qt(S.flows)?{flows:_Qt(S.flows)}:{}}]});return l.length>0?l:void 0},Fkn=(e,r,i)=>{let s={...r.refHintTable},l=[...i].sort((h,S)=>h.localeCompare(S)),d=new Set(Object.keys(s));for(;l.length>0;){let h=l.shift();if(d.has(h))continue;d.add(h);let S=o4(e,{$ref:h});s[h]=iat(S);let b=new Set;p9(S,b);for(let A of[...b].sort((L,V)=>L.localeCompare(V)))d.has(A)||l.push(A)}return Object.keys(s).length>0?s:void 0},Rkn=(e,r)=>{let i=new Set,s=Ikn(e),l=r.tools.map(d=>{let h=kkn(e,d),S=d.invocation.parameters.map(X=>{let Re=h.get(aat({location:X.location,name:X.name})),Je=lIe(e,Re?.content);return{...X,...Xd(Re?.style)?{style:Xd(Re?.style)}:{},...typeof Re?.explode=="boolean"?{explode:Re.explode}:{},...typeof Re?.allowReserved=="boolean"?{allowReserved:Re.allowReserved}:{},...Je.length>0?{content:Je}:{}}}),b=Dkn(e,d),A=d.typing?.inputSchema??Ckn(e,d),L=d.typing?.outputSchema??Akn(e,d),V=wkn(e,d),j=Nkn(e,d),ie=Okn(e,j),te=Pkn(e,d);for(let X of S)for(let Re of X.content??[])p9(Re.schema,i);for(let X of b?.contents??[])p9(X.schema,i);for(let X of V??[]){p9(X.schema,i);for(let Re of X.contents??[])p9(Re.schema,i);for(let Re of X.headers??[]){p9(Re.schema,i);for(let Je of Re.content??[])p9(Je.schema,i)}}return{...d,invocation:{...d.invocation,parameters:S,requestBody:b},...A!==void 0||L!==void 0?{typing:{...d.typing,...A!==void 0?{inputSchema:A}:{},...L!==void 0?{outputSchema:L}:{}}}:{},...V?{responses:V}:{},...j?{authRequirement:j}:{},...ie?{securitySchemes:ie}:{},...s?{documentServers:s}:{},...te?{servers:te}:{}}});return{...r,tools:l,refHintTable:Fkn(e,r,i)}},Hee=(e,r)=>a4.gen(function*(){let i=yield*Skn(e,r),s=yield*a4.tryPromise({try:()=>ZKt(e,i),catch:h=>rat(e,"extract",h)}),l=yield*gkn(vkn(s),a4.mapError(h=>rat(e,"extract",h))),d=yield*a4.try({try:()=>sfe(i),catch:h=>rat(e,"validate",h)});return Rkn(d,l)});import*as hfe from"effect/Either";import*as gI from"effect/Effect";var Lkn=(e,r)=>{if(!r.startsWith("#/"))return;let i=e;for(let s of r.slice(2).split("/")){let l=s.replaceAll("~1","/").replaceAll("~0","~");if(!E1(i))return;i=i[l]}return i},cat=(e,r,i=0)=>{if(!E1(r))return null;let s=w6(r.$ref);return s&&i<5?cat(e,Lkn(e,s),i+1):r},Mkn=e=>{let r=new Set,i=[],s=d=>{if(Array.isArray(d)){for(let h of d)if(E1(h))for(let[S,b]of Object.entries(h))S.length===0||r.has(S)||(r.add(S),i.push({name:S,scopes:Array.isArray(b)?b.filter(A=>typeof A=="string"):[]}))}};s(e.security);let l=e.paths;if(!E1(l))return i;for(let d of Object.values(l))if(E1(d)){s(d.security);for(let h of Object.values(d))E1(h)&&s(h.security)}return i},yQt=e=>{let r=w6(e.scheme.type)?.toLowerCase()??"";if(r==="oauth2"){let i=E1(e.scheme.flows)?e.scheme.flows:{},s=Object.values(i).find(E1)??null,l=s&&E1(s.scopes)?Object.keys(s.scopes).filter(h=>h.length>0):[],d=[...new Set([...e.scopes,...l])].sort();return{name:e.name,kind:"oauth2",supported:!0,headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:s?BN(w6(s.authorizationUrl)):null,oauthTokenUrl:s?BN(w6(s.tokenUrl)):null,oauthScopes:d,reason:`OpenAPI security scheme "${e.name}" declares OAuth2`}}if(r==="http"){let i=w6(e.scheme.scheme)?.toLowerCase()??"";if(i==="bearer")return{name:e.name,kind:"bearer",supported:!0,headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" declares HTTP bearer auth`};if(i==="basic")return{name:e.name,kind:"basic",supported:!1,headerName:"Authorization",prefix:"Basic ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" declares HTTP basic auth`}}if(r==="apiKey"){let i=w6(e.scheme.in),s=i==="header"||i==="query"||i==="cookie"?i:null;return{name:e.name,kind:"apiKey",supported:!1,headerName:s==="header"?BN(w6(e.scheme.name)):null,prefix:null,parameterName:BN(w6(e.scheme.name)),parameterLocation:s,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" declares API key auth`}}return{name:e.name,kind:"unknown",supported:!1,headerName:null,prefix:null,parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" uses unsupported type ${r||"unknown"}`}},jkn=e=>{let r=E1(e.components)?e.components:{},i=E1(r.securitySchemes)?r.securitySchemes:{},s=Mkn(e);if(s.length===0){if(Object.keys(i).length===0)return UN("OpenAPI document does not declare security requirements");let h=Object.entries(i).map(([b,A])=>yQt({name:b,scopes:[],scheme:cat(e,A)??{}})).sort((b,A)=>{let L={oauth2:0,bearer:1,apiKey:2,basic:3,unknown:4};return L[b.kind]-L[A.kind]||b.name.localeCompare(A.name)})[0];if(!h)return UN("OpenAPI document does not declare security requirements");let S=h.kind==="unknown"?"low":"medium";return h.kind==="oauth2"?I6("oauth2",{confidence:S,reason:`${h.reason}; scheme is defined but not explicitly applied to operations`,headerName:h.headerName,prefix:h.prefix,parameterName:h.parameterName,parameterLocation:h.parameterLocation,oauthAuthorizationUrl:h.oauthAuthorizationUrl,oauthTokenUrl:h.oauthTokenUrl,oauthScopes:h.oauthScopes}):h.kind==="bearer"?I6("bearer",{confidence:S,reason:`${h.reason}; scheme is defined but not explicitly applied to operations`,headerName:h.headerName,prefix:h.prefix,parameterName:h.parameterName,parameterLocation:h.parameterLocation,oauthAuthorizationUrl:h.oauthAuthorizationUrl,oauthTokenUrl:h.oauthTokenUrl,oauthScopes:h.oauthScopes}):h.kind==="apiKey"?YX("apiKey",{confidence:S,reason:`${h.reason}; scheme is defined but not explicitly applied to operations`,headerName:h.headerName,prefix:h.prefix,parameterName:h.parameterName,parameterLocation:h.parameterLocation,oauthAuthorizationUrl:h.oauthAuthorizationUrl,oauthTokenUrl:h.oauthTokenUrl,oauthScopes:h.oauthScopes}):h.kind==="basic"?YX("basic",{confidence:S,reason:`${h.reason}; scheme is defined but not explicitly applied to operations`,headerName:h.headerName,prefix:h.prefix,parameterName:h.parameterName,parameterLocation:h.parameterLocation,oauthAuthorizationUrl:h.oauthAuthorizationUrl,oauthTokenUrl:h.oauthTokenUrl,oauthScopes:h.oauthScopes}):WJ(`${h.reason}; scheme is defined but not explicitly applied to operations`)}let d=s.map(({name:h,scopes:S})=>{let b=cat(e,i[h]);return b==null?null:yQt({name:h,scopes:S,scheme:b})}).filter(h=>h!==null).sort((h,S)=>{let b={oauth2:0,bearer:1,apiKey:2,basic:3,unknown:4};return b[h.kind]-b[S.kind]||h.name.localeCompare(S.name)})[0];return d?d.kind==="oauth2"?I6("oauth2",{confidence:"high",reason:d.reason,headerName:d.headerName,prefix:d.prefix,parameterName:d.parameterName,parameterLocation:d.parameterLocation,oauthAuthorizationUrl:d.oauthAuthorizationUrl,oauthTokenUrl:d.oauthTokenUrl,oauthScopes:d.oauthScopes}):d.kind==="bearer"?I6("bearer",{confidence:"high",reason:d.reason,headerName:d.headerName,prefix:d.prefix,parameterName:d.parameterName,parameterLocation:d.parameterLocation,oauthAuthorizationUrl:d.oauthAuthorizationUrl,oauthTokenUrl:d.oauthTokenUrl,oauthScopes:d.oauthScopes}):d.kind==="apiKey"?YX("apiKey",{confidence:"high",reason:d.reason,headerName:d.headerName,prefix:d.prefix,parameterName:d.parameterName,parameterLocation:d.parameterLocation,oauthAuthorizationUrl:d.oauthAuthorizationUrl,oauthTokenUrl:d.oauthTokenUrl,oauthScopes:d.oauthScopes}):d.kind==="basic"?YX("basic",{confidence:"high",reason:d.reason,headerName:d.headerName,prefix:d.prefix,parameterName:d.parameterName,parameterLocation:d.parameterLocation,oauthAuthorizationUrl:d.oauthAuthorizationUrl,oauthTokenUrl:d.oauthTokenUrl,oauthScopes:d.oauthScopes}):WJ(d.reason):WJ("OpenAPI security requirements reference schemes that could not be resolved")},Bkn=e=>{let r=e.document.servers;if(Array.isArray(r)){let i=r.find(E1),s=i?BN(w6(i.url)):null;if(s)try{return new URL(s,e.normalizedUrl).toString()}catch{return e.normalizedUrl}}return new URL(e.normalizedUrl).origin},lat=e=>gI.gen(function*(){let r=yield*gI.either(eY({method:"GET",url:e.normalizedUrl,headers:e.headers}));if(hfe.isLeft(r))return console.warn(`[discovery] OpenAPI probe HTTP fetch failed for ${e.normalizedUrl}:`,r.left.message),null;if(r.right.status<200||r.right.status>=300)return console.warn(`[discovery] OpenAPI probe got status ${r.right.status} for ${e.normalizedUrl}`),null;let i=yield*gI.either(Hee(e.normalizedUrl,r.right.text));if(hfe.isLeft(i))return console.warn(`[discovery] OpenAPI manifest extraction failed for ${e.normalizedUrl}:`,i.left instanceof Error?i.left.message:String(i.left)),null;let s=yield*gI.either(gI.try({try:()=>sfe(r.right.text),catch:S=>S instanceof Error?S:new Error(String(S))})),l=hfe.isRight(s)&&E1(s.right)?s.right:{},d=Bkn({normalizedUrl:e.normalizedUrl,document:l}),h=BN(w6(l.info&&E1(l.info)?l.info.title:null))??$N(d);return{detectedKind:"openapi",confidence:"high",endpoint:d,specUrl:e.normalizedUrl,name:h,namespace:vT(h),transport:null,authInference:jkn(l),toolCount:i.right.tools.length,warnings:[]}}).pipe(gI.catchAll(r=>(console.warn(`[discovery] OpenAPI detection unexpected error for ${e.normalizedUrl}:`,r instanceof Error?r.message:String(r)),gI.succeed(null))));import*as XB from"effect/Schema";var uat=XB.Struct({specUrl:XB.String,defaultHeaders:XB.optional(XB.NullOr(M_))});import{Schema as Ig}from"effect";var _at=/^v\d+(?:[._-]\d+)?$/i,vQt=new Set(["api"]),$kn=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1 $2").replace(/[^a-zA-Z0-9]+/g," ").trim().split(/\s+/).filter(r=>r.length>0),Ukn=e=>e.toLowerCase(),uIe=e=>{let r=$kn(e).map(Ukn);if(r.length===0)return"tool";let[i,...s]=r;return`${i}${s.map(l=>`${l[0]?.toUpperCase()??""}${l.slice(1)}`).join("")}`},pat=e=>{let r=uIe(e);return`${r[0]?.toUpperCase()??""}${r.slice(1)}`},pIe=e=>{let r=e?.trim();return r?uIe(r):null},dat=e=>e.split("/").map(r=>r.trim()).filter(r=>r.length>0),SQt=e=>e.startsWith("{")&&e.endsWith("}"),zkn=e=>dat(e).map(r=>r.toLowerCase()).find(r=>_at.test(r)),qkn=e=>{for(let r of dat(e)){let i=r.toLowerCase();if(!_at.test(i)&&!vQt.has(i)&&!SQt(r))return pIe(r)??"root"}return"root"},Jkn=e=>e.split(/[/.]+/).map(r=>r.trim()).filter(r=>r.length>0),Vkn=(e,r)=>{let i=e.operationId??e.toolId,s=Jkn(i);if(s.length>1){let[l,...d]=s;if((pIe(l)??l)===r&&d.length>0)return d.join(" ")}return i},Wkn=(e,r)=>{let s=dat(e.path).filter(l=>!_at.test(l.toLowerCase())).filter(l=>!vQt.has(l.toLowerCase())).filter(l=>!SQt(l)).map(l=>pIe(l)??l).filter(l=>l!==r).map(l=>pat(l)).join("");return`${e.method}${s||"Operation"}`},Gkn=(e,r)=>{let i=uIe(Vkn(e,r));return i.length>0&&i!==r?i:uIe(Wkn(e,r))},Hkn=e=>e.description??`${e.method.toUpperCase()} ${e.path}`,Kkn=Ig.Struct({toolId:Ig.String,rawToolId:Ig.String,operationId:Ig.optional(Ig.String),name:Ig.String,description:Ig.String,group:Ig.String,leaf:Ig.String,tags:Ig.Array(Ig.String),versionSegment:Ig.optional(Ig.String),method:Wee,path:Ig.String,invocation:pfe,operationHash:Ig.String,typing:Ig.optional(oIe),documentation:Ig.optional(dfe),responses:Ig.optional(Ig.Array(_fe)),authRequirement:Ig.optional(cW),securitySchemes:Ig.optional(Ig.Array(ffe)),documentServers:Ig.optional(Ig.Array(ZB)),servers:Ig.optional(Ig.Array(ZB))}),Qkn=e=>{let r=e.map(s=>({...s,toolId:`${s.group}.${s.leaf}`})),i=(s,l)=>{let d=new Map;for(let h of s){let S=d.get(h.toolId)??[];S.push(h),d.set(h.toolId,S)}for(let h of d.values())if(!(h.length<2))for(let S of h)S.toolId=l(S)};return i(r,s=>s.versionSegment?`${s.group}.${s.versionSegment}.${s.leaf}`:s.toolId),i(r,s=>`${s.versionSegment?`${s.group}.${s.versionSegment}`:s.group}.${s.leaf}${pat(s.method)}`),i(r,s=>`${s.versionSegment?`${s.group}.${s.versionSegment}`:s.group}.${s.leaf}${pat(s.method)}${s.operationHash.slice(0,8)}`),r},_Ie=e=>{let r=e.tools.map(i=>{let s=pIe(i.tags[0])??qkn(i.path),l=Gkn(i,s);return{rawToolId:i.toolId,operationId:i.operationId,name:i.name,description:Hkn(i),group:s,leaf:l,tags:[...i.tags],versionSegment:zkn(i.path),method:i.method,path:i.path,invocation:i.invocation,operationHash:i.operationHash,typing:i.typing,documentation:i.documentation,responses:i.responses,authRequirement:i.authRequirement,securitySchemes:i.securitySchemes,documentServers:i.documentServers,servers:i.servers}});return Qkn(r).sort((i,s)=>i.toolId.localeCompare(s.toolId)||i.rawToolId.localeCompare(s.rawToolId)||i.operationHash.localeCompare(s.operationHash))},fat=e=>({kind:"openapi",toolId:e.toolId,rawToolId:e.rawToolId,operationId:e.operationId,group:e.group,leaf:e.leaf,tags:e.tags,versionSegment:e.versionSegment,method:e.method,path:e.path,operationHash:e.operationHash,invocation:e.invocation,documentation:e.documentation,responses:e.responses,authRequirement:e.authRequirement,securitySchemes:e.securitySchemes,documentServers:e.documentServers,servers:e.servers});import*as Kee from"effect/Match";var dIe=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Zkn=e=>{try{return JSON.parse(e)}catch{return null}},gfe=(e,r,i,s)=>{if(Array.isArray(e))return e.map(h=>gfe(h,r,i,s));if(!dIe(e))return e;let l=typeof e.$ref=="string"?e.$ref:null;if(l&&l.startsWith("#/")&&!s.has(l)){let h=i.get(l);if(h===void 0){let S=r[l];h=typeof S=="string"?Zkn(S):dIe(S)?S:null,i.set(l,h)}if(h!=null){let S=new Set(s);S.add(l);let{$ref:b,...A}=e,L=gfe(h,r,i,S);if(Object.keys(A).length===0)return L;let V=gfe(A,r,i,s);return dIe(L)&&dIe(V)?{...L,...V}:L}}let d={};for(let[h,S]of Object.entries(e))d[h]=gfe(S,r,i,s);return d},YB=(e,r)=>e==null?null:!r||Object.keys(r).length===0?e:gfe(e,r,new Map,new Set),mat=(e,r)=>({inputSchema:YB(e?.inputSchema,r),outputSchema:YB(e?.outputSchema,r)});var vfe=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},Xkn=e=>{let r=vfe(e);if(r.type!=="object"&&r.properties===void 0)return!1;let i=vfe(r.properties);return Object.keys(i).length===0&&r.additionalProperties===!1},TQt=(e,r=320)=>e==null?"void":Xkn(e)?"{}":S6(e,"unknown",r),gat=e=>e?.[0],yfe=(e,r)=>{let i=vfe(e);return vfe(i.properties)[r]},Ykn=(e,r,i)=>{let s=yfe(e,i);if(s!==void 0)return s;let d=yfe(e,r==="header"?"headers":r==="cookie"?"cookies":r);return d===void 0?void 0:yfe(d,i)},bQt=e=>!e||e.length===0?void 0:([...e].sort((i,s)=>i.mediaType.localeCompare(s.mediaType)).find(i=>i.mediaType==="application/json")??[...e].find(i=>i.mediaType.toLowerCase().includes("+json"))??[...e].find(i=>i.mediaType.toLowerCase().includes("json"))??e[0])?.schema,xQt=(e,r)=>{if(!r)return e;let i=vfe(e);return Object.keys(i).length===0?e:{...i,description:r}},eCn=e=>{let r=e.invocation,i={},s=[];for(let l of r.parameters){let d=e.documentation?.parameters.find(S=>S.name===l.name&&S.location===l.location),h=Ykn(e.parameterSourceSchema,l.location,l.name)??bQt(l.content)??{type:"string"};i[l.name]=xQt(h,d?.description),l.required&&s.push(l.name)}return r.requestBody&&(i.body=xQt(e.requestBodySchema??bQt(r.requestBody.contents)??{type:"object"},e.documentation?.requestBody?.description),r.requestBody.required&&s.push("body")),Object.keys(i).length>0?{type:"object",properties:i,...s.length>0?{required:s}:{},additionalProperties:!1}:void 0},hat=e=>typeof e=="string"&&e.length>0?{$ref:e}:void 0,tCn=e=>{let r=e.typing?.refHintKeys??[];return Kee.value(e.invocation.requestBody).pipe(Kee.when(null,()=>({outputSchema:hat(r[0])})),Kee.orElse(()=>({requestBodySchema:hat(r[0]),outputSchema:hat(r[1])})))},rCn=e=>{let r=mat(e.definition.typing,e.refHintTable),i=tCn(e.definition),s=YB(i.requestBodySchema,e.refHintTable),l=yfe(r.inputSchema,"body")??yfe(r.inputSchema,"input")??s??void 0,d=eCn({invocation:e.definition.invocation,documentation:e.definition.documentation,parameterSourceSchema:r.inputSchema,...l!==void 0?{requestBodySchema:l}:{}})??r.inputSchema??void 0,h=r.outputSchema??YB(i.outputSchema,e.refHintTable);return{...d!=null?{inputSchema:d}:{},...h!=null?{outputSchema:h}:{}}},nCn=e=>{if(!(!e.variants||e.variants.length===0))return e.variants.map(r=>{let i=YB(r.schema,e.refHintTable);return{...r,...i!==void 0?{schema:i}:{}}})},iCn=e=>{if(!e)return;let r={};for(let s of e.parameters){let l=gat(s.examples);l&&(r[s.name]=JSON.parse(l.valueJson))}let i=gat(e.requestBody?.examples);return i&&(r.body=JSON.parse(i.valueJson)),Object.keys(r).length>0?r:void 0},oCn=e=>{let r=gat(e?.response?.examples)?.valueJson;return r?JSON.parse(r):void 0},fIe=e=>{let{inputSchema:r,outputSchema:i}=rCn(e),s=nCn({variants:e.definition.responses,refHintTable:e.refHintTable}),l=iCn(e.definition.documentation),d=oCn(e.definition.documentation);return{inputTypePreview:S6(r,"unknown",1/0),outputTypePreview:TQt(i,1/0),...r!==void 0?{inputSchema:r}:{},...i!==void 0?{outputSchema:i}:{},...l!==void 0?{exampleInput:l}:{},...d!==void 0?{exampleOutput:d}:{},providerData:{...fat(e.definition),...s?{responses:s}:{}}}};var Sfe=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),aCn=new TextEncoder,yat=e=>(e??"").split(";",1)[0]?.trim().toLowerCase()??"",P1=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean"||typeof e=="bigint")return String(e);if(e==null)return"";try{return JSON.stringify(e)}catch{return String(e)}},EQt=e=>{let r=yat(e);return r==="application/json"||r.endsWith("+json")||r.includes("json")},kQt=e=>{let r=yat(e);return r.length===0?!1:r.startsWith("text/")||r==="application/xml"||r.endsWith("+xml")||r.endsWith("/xml")||r==="application/x-www-form-urlencoded"||r==="application/javascript"||r==="application/ecmascript"||r==="application/graphql"||r==="application/sql"||r==="application/x-yaml"||r==="application/yaml"||r==="application/toml"||r==="application/csv"||r==="image/svg+xml"||r.endsWith("+yaml")||r.endsWith("+toml")},bfe=e=>EQt(e)?"json":kQt(e)||yat(e).length===0?"text":"bytes",xfe=e=>Object.entries(Sfe(e)?e:{}).sort(([r],[i])=>r.localeCompare(i)),sCn=e=>{switch(e){case"path":case"header":return"simple";case"cookie":case"query":return"form"}},cCn=(e,r)=>e==="query"||e==="cookie"?r==="form":!1,vat=e=>e.style??sCn(e.location),mIe=e=>e.explode??cCn(e.location,vat(e)),rS=e=>encodeURIComponent(P1(e)),lCn=(e,r)=>{let i=encodeURIComponent(e);return r?i.replace(/%3A/gi,":").replace(/%2F/gi,"/").replace(/%3F/gi,"?").replace(/%23/gi,"#").replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%40/gi,"@").replace(/%21/gi,"!").replace(/%24/gi,"$").replace(/%26/gi,"&").replace(/%27/gi,"'").replace(/%28/gi,"(").replace(/%29/gi,")").replace(/%2A/gi,"*").replace(/%2B/gi,"+").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%3D/gi,"="):i},Tfe=e=>{let r=[...(e.contents??[]).map(i=>i.mediaType),...e.contentTypes??[]];if(r.length!==0)return r.find(i=>i==="application/json")??r.find(i=>i.toLowerCase().includes("+json"))??r.find(i=>i.toLowerCase().includes("json"))??r[0]},uCn=e=>{if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);if(typeof e=="string")return aCn.encode(e);if(Array.isArray(e)&&e.every(r=>typeof r=="number"&&Number.isInteger(r)&&r>=0&&r<=255))return Uint8Array.from(e);throw new Error("Binary OpenAPI request bodies must be bytes, a string, or an array of byte values")},Efe=(e,r)=>{let i=r.toLowerCase();if(i==="application/json"||i.includes("+json")||i.includes("json"))return JSON.stringify(e);if(i==="application/x-www-form-urlencoded"){let s=new URLSearchParams;for(let[l,d]of xfe(e)){if(Array.isArray(d)){for(let h of d)s.append(l,P1(h));continue}s.append(l,P1(d))}return s.toString()}return P1(e)},pCn=(e,r)=>{let i=vat(e),s=mIe(e),l=e.allowReserved===!0,d=Tfe({contents:e.content});if(d)return{kind:"query",entries:[{name:e.name,value:Efe(r,d),allowReserved:l}]};if(Array.isArray(r))return i==="spaceDelimited"?{kind:"query",entries:[{name:e.name,value:r.map(h=>P1(h)).join(" "),allowReserved:l}]}:i==="pipeDelimited"?{kind:"query",entries:[{name:e.name,value:r.map(h=>P1(h)).join("|"),allowReserved:l}]}:{kind:"query",entries:s?r.map(h=>({name:e.name,value:P1(h),allowReserved:l})):[{name:e.name,value:r.map(h=>P1(h)).join(","),allowReserved:l}]};if(Sfe(r)){let h=xfe(r);return i==="deepObject"?{kind:"query",entries:h.map(([S,b])=>({name:`${e.name}[${S}]`,value:P1(b),allowReserved:l}))}:{kind:"query",entries:s?h.map(([S,b])=>({name:S,value:P1(b),allowReserved:l})):[{name:e.name,value:h.flatMap(([S,b])=>[S,P1(b)]).join(","),allowReserved:l}]}}return{kind:"query",entries:[{name:e.name,value:P1(r),allowReserved:l}]}},_Cn=(e,r)=>{let i=mIe(e),s=Tfe({contents:e.content});if(s)return{kind:"header",value:Efe(r,s)};if(Array.isArray(r))return{kind:"header",value:r.map(l=>P1(l)).join(",")};if(Sfe(r)){let l=xfe(r);return{kind:"header",value:i?l.map(([d,h])=>`${d}=${P1(h)}`).join(","):l.flatMap(([d,h])=>[d,P1(h)]).join(",")}}return{kind:"header",value:P1(r)}},dCn=(e,r)=>{let i=mIe(e),s=Tfe({contents:e.content});if(s)return{kind:"cookie",pairs:[{name:e.name,value:Efe(r,s)}]};if(Array.isArray(r))return{kind:"cookie",pairs:i?r.map(l=>({name:e.name,value:P1(l)})):[{name:e.name,value:r.map(l=>P1(l)).join(",")}]};if(Sfe(r)){let l=xfe(r);return{kind:"cookie",pairs:i?l.map(([d,h])=>({name:d,value:P1(h)})):[{name:e.name,value:l.flatMap(([d,h])=>[d,P1(h)]).join(",")}]}}return{kind:"cookie",pairs:[{name:e.name,value:P1(r)}]}},fCn=(e,r)=>{let i=vat(e),s=mIe(e),l=Tfe({contents:e.content});if(l)return{kind:"path",value:rS(Efe(r,l))};if(Array.isArray(r))return i==="label"?{kind:"path",value:`.${r.map(d=>rS(d)).join(s?".":",")}`}:i==="matrix"?{kind:"path",value:s?r.map(d=>`;${encodeURIComponent(e.name)}=${rS(d)}`).join(""):`;${encodeURIComponent(e.name)}=${r.map(d=>rS(d)).join(",")}`}:{kind:"path",value:r.map(d=>rS(d)).join(",")};if(Sfe(r)){let d=xfe(r);return i==="label"?{kind:"path",value:s?`.${d.map(([h,S])=>`${rS(h)}=${rS(S)}`).join(".")}`:`.${d.flatMap(([h,S])=>[rS(h),rS(S)]).join(",")}`}:i==="matrix"?{kind:"path",value:s?d.map(([h,S])=>`;${encodeURIComponent(h)}=${rS(S)}`).join(""):`;${encodeURIComponent(e.name)}=${d.flatMap(([h,S])=>[rS(h),rS(S)]).join(",")}`}:{kind:"path",value:s?d.map(([h,S])=>`${rS(h)}=${rS(S)}`).join(","):d.flatMap(([h,S])=>[rS(h),rS(S)]).join(",")}}return i==="label"?{kind:"path",value:`.${rS(r)}`}:i==="matrix"?{kind:"path",value:`;${encodeURIComponent(e.name)}=${rS(r)}`}:{kind:"path",value:rS(r)}},kfe=(e,r)=>{switch(e.location){case"path":return fCn(e,r);case"query":return pCn(e,r);case"header":return _Cn(e,r);case"cookie":return dCn(e,r)}},hIe=(e,r)=>{if(r.length===0)return e.toString();let i=r.map(S=>`${encodeURIComponent(S.name)}=${lCn(S.value,S.allowReserved===!0)}`).join("&"),s=e.toString(),[l,d]=s.split("#",2),h=l.includes("?")?l.endsWith("?")||l.endsWith("&")?"":"&":"?";return`${l}${h}${i}${d?`#${d}`:""}`},gIe=e=>{let r=Tfe(e.requestBody)??"application/json";return bfe(r)==="bytes"?{contentType:r,body:uCn(e.body)}:{contentType:r,body:Efe(e.body,r)}};import{FetchHttpClient as NZn,HttpClient as OZn,HttpClientRequest as FZn}from"@effect/platform";import*as CQt from"effect/Data";import*as Qee from"effect/Effect";var Sat=class extends CQt.TaggedError("OpenApiToolInvocationError"){};var DQt=e=>{if(!(!e||e.length===0))return e.map(r=>({url:r.url,...r.description?{description:r.description}:{},...r.variables?{variables:r.variables}:{}}))},mCn=e=>{let r=A6.make(`scope_${Td({sourceId:e.source.id,toolId:e.operation.providerData.toolId,kind:"operation"})}`);return x_(e.catalog.scopes)[r]={id:r,kind:"operation",parentId:e.parentScopeId,name:e.operation.title??e.operation.providerData.toolId,docs:Gd({summary:e.operation.title??e.operation.providerData.toolId,description:e.operation.description??void 0}),defaults:e.defaults,synthetic:!1,provenance:ld(e.documentId,`#/openapi/${e.operation.providerData.toolId}/scope`)},r},hCn=e=>{let r=kj.make(`security_${Td({sourceId:e.source.id,provider:"openapi",schemeName:e.schemeName})}`);if(e.catalog.symbols[r])return r;let i=e.scheme,s=i?.scheme?.toLowerCase(),l=i?.schemeType==="apiKey"?"apiKey":i?.schemeType==="oauth2"?"oauth2":i?.schemeType==="http"&&s==="basic"?"basic":i?.schemeType==="http"&&s==="bearer"?"bearer":i?.schemeType==="openIdConnect"?"custom":i?.schemeType==="http"?"http":"custom",d=Object.fromEntries(Object.entries(i?.flows??{}).map(([b,A])=>[b,A])),h=Object.fromEntries(Object.entries(i?.flows??{}).flatMap(([,b])=>Object.entries(b.scopes??{}))),S=i?.description??(i?.openIdConnectUrl?`OpenID Connect: ${i.openIdConnectUrl}`:null);return x_(e.catalog.symbols)[r]={id:r,kind:"securityScheme",schemeType:l,...Gd({summary:e.schemeName,description:S})?{docs:Gd({summary:e.schemeName,description:S})}:{},...i?.placementIn||i?.placementName?{placement:{...i?.placementIn?{in:i.placementIn}:{},...i?.placementName?{name:i.placementName}:{}}}:{},...l==="apiKey"&&i?.placementIn&&i?.placementName?{apiKey:{in:i.placementIn,name:i.placementName}}:{},...(l==="basic"||l==="bearer"||l==="http")&&i?.scheme?{http:{scheme:i.scheme,...i.bearerFormat?{bearerFormat:i.bearerFormat}:{}}}:{},...l==="oauth2"?{oauth:{...Object.keys(d).length>0?{flows:d}:{},...Object.keys(h).length>0?{scopes:h}:{}}}:{},...l==="custom"?{custom:{}}:{},synthetic:!1,provenance:ld(e.documentId,`#/openapi/securitySchemes/${e.schemeName}`)},r},AQt=e=>{let r=e.authRequirement;if(!r)return{kind:"none"};switch(r.kind){case"none":return{kind:"none"};case"scheme":return{kind:"scheme",schemeId:hCn({catalog:e.catalog,source:e.source,documentId:e.documentId,schemeName:r.schemeName,scheme:e.schemesByName.get(r.schemeName)}),...r.scopes&&r.scopes.length>0?{scopes:[...r.scopes]}:{}};case"allOf":case"anyOf":return{kind:r.kind,items:r.items.map(i=>AQt({catalog:e.catalog,source:e.source,documentId:e.documentId,authRequirement:i,schemesByName:e.schemesByName}))}}},yIe=e=>e.contents.map((r,i)=>{let s=(r.examples??[]).map((l,d)=>Dj({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`${e.pointerBase}/content/${i}/example/${d}`,name:l.label,summary:l.label,value:JSON.parse(l.valueJson)}));return{mediaType:r.mediaType,...r.schema!==void 0?{shapeId:e.importer.importSchema(r.schema,`${e.pointerBase}/content/${i}`,e.rootSchema)}:{},...s.length>0?{exampleIds:s}:{}}}),gCn=e=>{let r=Ej.make(`header_${Td(e.idSeed)}`),i=(e.header.examples??[]).map((l,d)=>Dj({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`${e.pointer}/example/${d}`,name:l.label,summary:l.label,value:JSON.parse(l.valueJson)})),s=e.header.content?yIe({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:e.header.content,pointerBase:e.pointer}):void 0;return x_(e.catalog.symbols)[r]={id:r,kind:"header",name:e.header.name,...Gd({description:e.header.description})?{docs:Gd({description:e.header.description})}:{},...typeof e.header.deprecated=="boolean"?{deprecated:e.header.deprecated}:{},...e.header.schema!==void 0?{schemaShapeId:e.importer.importSchema(e.header.schema,e.pointer,e.rootSchema)}:{},...s&&s.length>0?{content:s}:{},...i.length>0?{exampleIds:i}:{},...e.header.style?{style:e.header.style}:{},...typeof e.header.explode=="boolean"?{explode:e.header.explode}:{},synthetic:!1,provenance:ld(e.documentId,e.pointer)},r},yCn=e=>{let r=d5(e.source,e.operation.providerData.toolId),i=vD.make(`cap_${Td({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),s=pk.make(`exec_${Td({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"http"})}`),l=e.operation.inputSchema??{},d=e.operation.outputSchema??{},h=[],S=new Map((e.operation.providerData.securitySchemes??[]).map(X=>[X.schemeName,X]));e.operation.providerData.invocation.parameters.forEach(X=>{let Re=Tj.make(`param_${Td({capabilityId:i,location:X.location,name:X.name})}`),Je=Gue(l,X.location,X.name),pt=e.operation.providerData.documentation?.parameters.find(tr=>tr.name===X.name&&tr.location===X.location),$e=(pt?.examples??[]).map((tr,ht)=>{let wt=JSON.parse(tr.valueJson);return Dj({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/parameter/${X.location}/${X.name}/example/${ht}`,name:tr.label,summary:tr.label,value:wt})});h.push(...$e);let xt=X.content?yIe({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:X.content,pointerBase:`#/openapi/${e.operation.providerData.toolId}/parameter/${X.location}/${X.name}`}):void 0;x_(e.catalog.symbols)[Re]={id:Re,kind:"parameter",name:X.name,location:X.location,required:X.required,...Gd({description:pt?.description??null})?{docs:Gd({description:pt?.description??null})}:{},...Je!==void 0&&(!xt||xt.length===0)?{schemaShapeId:e.importer.importSchema(Je,`#/openapi/${e.operation.providerData.toolId}/parameter/${X.location}/${X.name}`,e.rootSchema)}:{},...xt&&xt.length>0?{content:xt}:{},...$e.length>0?{exampleIds:$e}:{},...X.style?{style:X.style}:{},...typeof X.explode=="boolean"?{explode:X.explode}:{},...typeof X.allowReserved=="boolean"?{allowReserved:X.allowReserved}:{},synthetic:!1,provenance:ld(e.documentId,`#/openapi/${e.operation.providerData.toolId}/parameter/${X.location}/${X.name}`)}});let b=e.operation.providerData.invocation.requestBody?VJ.make(`request_body_${Td({capabilityId:i})}`):void 0;if(b){let X=nY(l),Re=e.operation.providerData.invocation.requestBody?.contents?yIe({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:e.operation.providerData.invocation.requestBody.contents,pointerBase:`#/openapi/${e.operation.providerData.toolId}/requestBody`}):void 0,Je=Re?.flatMap($e=>$e.exampleIds??[])??(e.operation.providerData.documentation?.requestBody?.examples??[]).map(($e,xt)=>Dj({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/requestBody/example/${xt}`,name:$e.label,summary:$e.label,value:JSON.parse($e.valueJson)}));h.push(...Je);let pt=Re&&Re.length>0?Re:Hue(e.operation.providerData.invocation.requestBody?.contentTypes).map($e=>({mediaType:$e,...X!==void 0?{shapeId:e.importer.importSchema(X,`#/openapi/${e.operation.providerData.toolId}/requestBody`,e.rootSchema)}:{},...Je.length>0?{exampleIds:Je}:{}}));x_(e.catalog.symbols)[b]={id:b,kind:"requestBody",...Gd({description:e.operation.providerData.documentation?.requestBody?.description??null})?{docs:Gd({description:e.operation.providerData.documentation?.requestBody?.description??null})}:{},required:e.operation.providerData.invocation.requestBody?.required??!1,contents:pt,synthetic:!1,provenance:ld(e.documentId,`#/openapi/${e.operation.providerData.toolId}/requestBody`)}}let A=e.operation.providerData.responses??[],L=A.length>0?yKe({catalog:e.catalog,variants:A.map((X,Re)=>{let Je=SD.make(`response_${Td({capabilityId:i,statusCode:X.statusCode,responseIndex:Re})}`),pt=(X.examples??[]).map((tr,ht)=>Dj({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/responses/${X.statusCode}/example/${ht}`,name:tr.label,summary:tr.label,value:JSON.parse(tr.valueJson)}));h.push(...pt);let $e=X.contents&&X.contents.length>0?yIe({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:X.contents,pointerBase:`#/openapi/${e.operation.providerData.toolId}/responses/${X.statusCode}`}):(()=>{let tr=X.schema!==void 0?e.importer.importSchema(X.schema,`#/openapi/${e.operation.providerData.toolId}/responses/${X.statusCode}`,e.rootSchema):void 0,ht=Hue(X.contentTypes);return ht.length>0?ht.map((wt,Ut)=>({mediaType:wt,...tr!==void 0&&Ut===0?{shapeId:tr}:{},...pt.length>0&&Ut===0?{exampleIds:pt}:{}})):void 0})(),xt=(X.headers??[]).map((tr,ht)=>gCn({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,pointer:`#/openapi/${e.operation.providerData.toolId}/responses/${X.statusCode}/headers/${tr.name}`,idSeed:{capabilityId:i,responseId:Je,headerIndex:ht,headerName:tr.name},header:tr}));return x_(e.catalog.symbols)[Je]={id:Je,kind:"response",...Gd({description:X.description??(Re===0?e.operation.description:null)})?{docs:Gd({description:X.description??(Re===0?e.operation.description:null)})}:{},...xt.length>0?{headerIds:xt}:{},...$e&&$e.length>0?{contents:$e}:{},synthetic:!1,provenance:ld(e.documentId,`#/openapi/${e.operation.providerData.toolId}/responses/${X.statusCode}`)},{match:vKe(X.statusCode),responseId:Je}}),provenance:ld(e.documentId,`#/openapi/${e.operation.providerData.toolId}/responseSet`)}):(()=>{let X=SD.make(`response_${Td({capabilityId:i})}`),Re=(e.operation.providerData.documentation?.response?.examples??[]).map((Je,pt)=>Dj({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/response/example/${pt}`,name:Je.label,summary:Je.label,value:JSON.parse(Je.valueJson)}));return h.push(...Re),x_(e.catalog.symbols)[X]={id:X,kind:"response",...Gd({description:e.operation.providerData.documentation?.response?.description??e.operation.description})?{docs:Gd({description:e.operation.providerData.documentation?.response?.description??e.operation.description})}:{},contents:[{mediaType:Hue(e.operation.providerData.documentation?.response?.contentTypes)[0]??"application/json",...e.operation.outputSchema!==void 0?{shapeId:e.importer.importSchema(d,`#/openapi/${e.operation.providerData.toolId}/response`)}:{},...Re.length>0?{exampleIds:Re}:{}}],synthetic:!1,provenance:ld(e.documentId,`#/openapi/${e.operation.providerData.toolId}/response`)},m5({catalog:e.catalog,responseId:X,provenance:ld(e.documentId,`#/openapi/${e.operation.providerData.toolId}/responseSet`)})})(),V=e.operation.inputSchema!==void 0?e.importer.importSchema(e.operation.inputSchema,`#/openapi/${e.operation.providerData.toolId}/call`,e.operation.inputSchema):e.importer.importSchema({type:"object",additionalProperties:!1},`#/openapi/${e.operation.providerData.toolId}/call`),j={id:s,capabilityId:i,scopeId:(()=>{let X=DQt(e.operation.providerData.servers);return!X||X.length===0?e.serviceScopeId:mCn({catalog:e.catalog,source:e.source,documentId:e.documentId,parentScopeId:e.serviceScopeId,operation:e.operation,defaults:{servers:X}})})(),adapterKey:"openapi",bindingVersion:rx,binding:e.operation.providerData,projection:{responseSetId:L,callShapeId:V},display:{protocol:"http",method:e.operation.providerData.invocation.method.toUpperCase(),pathTemplate:e.operation.providerData.invocation.pathTemplate,operationId:e.operation.providerData.operationId??null,group:e.operation.providerData.group,leaf:e.operation.providerData.leaf,rawToolId:e.operation.providerData.rawToolId,title:e.operation.title??null,summary:e.operation.description??null},synthetic:!1,provenance:ld(e.documentId,`#/openapi/${e.operation.providerData.toolId}/executable`)};x_(e.catalog.executables)[s]=j;let ie=e.operation.effect,te=AQt({catalog:e.catalog,source:e.source,documentId:e.documentId,authRequirement:e.operation.providerData.authRequirement,schemesByName:S});x_(e.catalog.capabilities)[i]={id:i,serviceScopeId:e.serviceScopeId,surface:{toolPath:r,...e.operation.title?{title:e.operation.title}:{},...e.operation.description?{summary:e.operation.description}:{},...e.operation.providerData.tags.length>0?{tags:e.operation.providerData.tags}:{}},semantics:{effect:ie,safe:ie==="read",idempotent:ie==="read"||ie==="delete",destructive:ie==="delete"},auth:te,interaction:f5(ie),executableIds:[s],...h.length>0?{exampleIds:h}:{},synthetic:!1,provenance:ld(e.documentId,`#/openapi/${e.operation.providerData.toolId}/capability`)}},wQt=e=>{let r=(()=>{let i=e.documents[0]?.contentText;if(i)try{return JSON.parse(i)}catch{return}})();return h5({source:e.source,documents:e.documents,resourceDialectUri:"https://json-schema.org/draft/2020-12/schema",serviceScopeDefaults:(()=>{let i=DQt(e.operations.find(s=>(s.providerData.documentServers??[]).length>0)?.providerData.documentServers);return i?{servers:i}:void 0})(),registerOperations:({catalog:i,documentId:s,serviceScopeId:l,importer:d})=>{for(let h of e.operations)yCn({catalog:i,source:e.source,documentId:s,serviceScopeId:l,operation:h,importer:d,rootSchema:r})}})};import{FetchHttpClient as vCn,HttpClient as SCn,HttpClientRequest as IQt}from"@effect/platform";import*as Ay from"effect/Effect";import*as ym from"effect/Schema";var bCn=ym.extend(zke,ym.extend(Ij,ym.Struct({kind:ym.Literal("openapi"),specUrl:ym.Trim.pipe(ym.nonEmptyString()),auth:ym.optional(v5)}))),xCn=ym.extend(Ij,ym.Struct({kind:ym.Literal("openapi"),endpoint:ym.String,specUrl:ym.String,name:sy,namespace:sy,auth:ym.optional(v5)})),PQt=ym.Struct({specUrl:ym.Trim.pipe(ym.nonEmptyString()),defaultHeaders:ym.optional(ym.NullOr(M_))}),TCn=ym.Struct({specUrl:ym.optional(ym.String),defaultHeaders:ym.optional(ym.NullOr(M_))}),Cfe=1,ECn=(e,r)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&r.some(i=>Object.prototype.hasOwnProperty.call(e,i)),pW=e=>Ay.gen(function*(){if(ECn(e.binding,["transport","queryParams","headers"]))return yield*og("openapi/adapter","OpenAPI sources cannot define MCP transport settings");let r=yield*GN({sourceId:e.id,label:"OpenAPI",version:e.bindingVersion,expectedVersion:Cfe,schema:TCn,value:e.binding,allowedKeys:["specUrl","defaultHeaders"]}),i=typeof r.specUrl=="string"?r.specUrl.trim():"";return i.length===0?yield*og("openapi/adapter","OpenAPI sources require specUrl"):{specUrl:i,defaultHeaders:r.defaultHeaders??null}}),kCn=e=>Ay.gen(function*(){let r=yield*SCn.HttpClient,i=IQt.get(b6({url:e.url,queryParams:e.queryParams}).toString()).pipe(IQt.setHeaders(pD({headers:e.headers??{},cookies:e.cookies}))),s=yield*r.execute(i).pipe(Ay.mapError(l=>l instanceof Error?l:new Error(String(l))));return s.status===401||s.status===403?yield*new y5("import",`OpenAPI spec fetch requires credentials (status ${s.status})`):s.status<200||s.status>=300?yield*og("openapi/adapter",`OpenAPI spec fetch failed with status ${s.status}`):yield*s.text.pipe(Ay.mapError(l=>l instanceof Error?l:new Error(String(l))))}).pipe(Ay.provide(vCn.layer)),CCn=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},DCn={path:["path","pathParams","params"],query:["query","queryParams","params"],header:["headers","header"],cookie:["cookies","cookie"]},NQt=(e,r)=>{let i=e[r.name];if(i!==void 0)return i;for(let s of DCn[r.location]){let l=e[s];if(typeof l!="object"||l===null||Array.isArray(l))continue;let d=l[r.name];if(d!==void 0)return d}},ACn=(e,r,i)=>{let s=e;for(let h of i.parameters){if(h.location!=="path")continue;let S=NQt(r,h);if(S==null){if(h.required)throw new Error(`Missing required path parameter: ${h.name}`);continue}let b=kfe(h,S);s=s.replaceAll(`{${h.name}}`,b.kind==="path"?b.value:encodeURIComponent(String(S)))}let l=[...s.matchAll(/\{([^{}]+)\}/g)].map(h=>h[1]).filter(h=>typeof h=="string"&&h.length>0);for(let h of l){let S=r[h]??(typeof r.path=="object"&&r.path!==null&&!Array.isArray(r.path)?r.path[h]:void 0)??(typeof r.pathParams=="object"&&r.pathParams!==null&&!Array.isArray(r.pathParams)?r.pathParams[h]:void 0)??(typeof r.params=="object"&&r.params!==null&&!Array.isArray(r.params)?r.params[h]:void 0);S!=null&&(s=s.replaceAll(`{${h}}`,encodeURIComponent(String(S))))}let d=[...s.matchAll(/\{([^{}]+)\}/g)].map(h=>h[1]).filter(h=>typeof h=="string"&&h.length>0);if(d.length>0){let h=[...new Set(d)].sort().join(", ");throw new Error(`Unresolved path parameters after substitution: ${h}`)}return s},wCn=e=>{let r={};return e.headers.forEach((i,s)=>{r[s]=i}),r},ICn=async e=>{if(e.status===204)return null;let r=bfe(e.headers.get("content-type"));return r==="json"?e.json():r==="bytes"?new Uint8Array(await e.arrayBuffer()):e.text()},PCn=e=>{let r=e.providerData.servers?.[0]??e.providerData.documentServers?.[0];if(!r)return new URL(e.endpoint).toString();let i=Object.entries(r.variables??{}).reduce((s,[l,d])=>s.replaceAll(`{${l}}`,d),r.url);return new URL(i,e.endpoint).toString()},NCn=(e,r)=>{try{return new URL(r)}catch{let i=new URL(e),s=i.pathname==="/"?"":i.pathname.endsWith("/")?i.pathname.slice(0,-1):i.pathname,l=r.startsWith("/")?r:`/${r}`;return i.pathname=`${s}${l}`.replace(/\/{2,}/g,"/"),i.search="",i.hash="",i}},OCn=e=>{let r=fIe({definition:e.definition,refHintTable:e.refHintTable}),i=e.definition.method.toUpperCase();return{toolId:e.definition.toolId,title:e.definition.name,description:e.definition.description,effect:i==="GET"||i==="HEAD"?"read":i==="DELETE"?"delete":"write",inputSchema:r.inputSchema,outputSchema:r.outputSchema,providerData:r.providerData}},OQt={key:"openapi",displayName:"OpenAPI",catalogKind:"imported",connectStrategy:"direct",credentialStrategy:"credential_managed",bindingConfigVersion:Cfe,providerKey:"generic_http",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:bCn,executorAddInputSchema:xCn,executorAddHelpText:["endpoint is the base API URL. specUrl is the OpenAPI document URL."],executorAddInputSignatureWidth:420,localConfigBindingSchema:uat,localConfigBindingFromSource:e=>Ay.runSync(Ay.map(pW(e),r=>({specUrl:r.specUrl,defaultHeaders:r.defaultHeaders}))),serializeBindingConfig:e=>VN({adapterKey:"openapi",version:Cfe,payloadSchema:PQt,payload:Ay.runSync(pW(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:r})=>Ay.map(WN({sourceId:e,label:"OpenAPI",adapterKey:"openapi",version:Cfe,payloadSchema:PQt,value:r}),({version:i,payload:s})=>({version:i,payload:{specUrl:s.specUrl,defaultHeaders:s.defaultHeaders??null}})),bindingStateFromSource:e=>Ay.map(pW(e),r=>({...JN,specUrl:r.specUrl,defaultHeaders:r.defaultHeaders})),sourceConfigFromSource:e=>Ay.runSync(Ay.map(pW(e),r=>({kind:"openapi",endpoint:e.endpoint,specUrl:r.specUrl,defaultHeaders:r.defaultHeaders}))),validateSource:e=>Ay.gen(function*(){let r=yield*pW(e);return{...e,bindingVersion:Cfe,binding:{specUrl:r.specUrl,defaultHeaders:r.defaultHeaders}}}),shouldAutoProbe:e=>e.enabled&&(e.status==="draft"||e.status==="probing"),discoveryPriority:({normalizedUrl:e})=>Cj(e)?50:250,detectSource:({normalizedUrl:e,headers:r})=>lat({normalizedUrl:e,headers:r}),syncCatalog:({source:e,resolveAuthMaterialForSlot:r})=>Ay.gen(function*(){let i=yield*pW(e),s=yield*r("import"),l=yield*kCn({url:i.specUrl,headers:{...i.defaultHeaders,...s.headers},queryParams:s.queryParams,cookies:s.cookies}).pipe(Ay.mapError(b=>S5(b)?b:new Error(`Failed fetching OpenAPI spec for ${e.id}: ${b.message}`))),d=yield*Hee(e.name,l).pipe(Ay.mapError(b=>b instanceof Error?b:new Error(String(b)))),h=_Ie(d),S=Date.now();return qN({fragment:wQt({source:e,documents:[{documentKind:"openapi",documentKey:i.specUrl,contentText:l,fetchedAt:S}],operations:h.map(b=>OCn({definition:b,refHintTable:d.refHintTable}))}),importMetadata:R2({source:e,adapterKey:"openapi"}),sourceHash:d.sourceHash})}),invoke:e=>Ay.tryPromise({try:async()=>{let r=Ay.runSync(pW(e.source)),i=Pj({executableId:e.executable.id,label:"OpenAPI",version:e.executable.bindingVersion,expectedVersion:rx,schema:eat,value:e.executable.binding}),s=CCn(e.args),l=ACn(i.invocation.pathTemplate,s,i.invocation),d={...r.defaultHeaders},h=[],S=[];for(let X of i.invocation.parameters){if(X.location==="path")continue;let Re=NQt(s,X);if(Re==null){if(X.required)throw new Error(`Missing required ${X.location} parameter ${X.name}`);continue}let Je=kfe(X,Re);if(Je.kind==="query"){h.push(...Je.entries);continue}if(Je.kind==="header"){d[X.name]=Je.value;continue}Je.kind==="cookie"&&S.push(...Je.pairs.map(pt=>`${pt.name}=${encodeURIComponent(pt.value)}`))}let b;if(i.invocation.requestBody){let X=s.body??s.input;if(X!==void 0){let Re=gIe({requestBody:i.invocation.requestBody,body:X7({body:X,bodyValues:e.auth.bodyValues,label:`${i.method.toUpperCase()} ${i.path}`})});d["content-type"]=Re.contentType,b=Re.body}}let A=NCn(PCn({endpoint:e.source.endpoint,providerData:i}),l),L=b6({url:A,queryParams:e.auth.queryParams}),V=hIe(L,h),j=pD({headers:{...d,...e.auth.headers},cookies:{...e.auth.cookies}});if(S.length>0){let X=j.cookie;j.cookie=X?`${X}; ${S.join("; ")}`:S.join("; ")}let ie=await fetch(V.toString(),{method:i.method.toUpperCase(),headers:j,...b!==void 0?{body:typeof b=="string"?b:new Uint8Array(b).buffer}:{}}),te=await ICn(ie);return{data:ie.ok?te:null,error:ie.ok?null:te,headers:wCn(ie),status:ie.status}},catch:r=>r instanceof Error?r:new Error(String(r))})};var FQt=[OQt,rGt,Ezt,C7t];import*as yI from"effect/Effect";import*as LQt from"effect/Schema";var bat=LQt.Struct({}),Dfe=1,FCn=(e,r)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&r.some(i=>Object.prototype.hasOwnProperty.call(e,i)),RQt=e=>yI.gen(function*(){return FCn(e.binding,["specUrl","defaultHeaders","transport","queryParams","headers"])?yield*_a("sources/source-adapters/internal","internal sources cannot define HTTP source settings"):yield*GN({sourceId:e.id,label:"internal",version:e.bindingVersion,expectedVersion:Dfe,schema:bat,value:e.binding,allowedKeys:[]})}),MQt={key:"internal",displayName:"Internal",catalogKind:"internal",connectStrategy:"none",credentialStrategy:"none",bindingConfigVersion:Dfe,providerKey:"generic_internal",defaultImportAuthPolicy:"none",connectPayloadSchema:null,executorAddInputSchema:null,executorAddHelpText:null,executorAddInputSignatureWidth:null,localConfigBindingSchema:null,localConfigBindingFromSource:()=>null,serializeBindingConfig:e=>VN({adapterKey:e.kind,version:Dfe,payloadSchema:bat,payload:yI.runSync(RQt(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:r})=>yI.map(WN({sourceId:e,label:"internal",adapterKey:"internal",version:Dfe,payloadSchema:bat,value:r}),({version:i,payload:s})=>({version:i,payload:s})),bindingStateFromSource:()=>yI.succeed(JN),sourceConfigFromSource:e=>({kind:"internal",endpoint:e.endpoint}),validateSource:e=>yI.gen(function*(){return yield*RQt(e),{...e,bindingVersion:Dfe,binding:{}}}),shouldAutoProbe:()=>!1,syncCatalog:({source:e})=>yI.succeed(qN({fragment:{version:"ir.v1.fragment"},importMetadata:{...R2({source:e,adapterKey:"internal"}),importerVersion:"ir.v1.internal",sourceConfigHash:"internal"},sourceHash:null})),invoke:()=>yI.fail(_a("sources/source-adapters/internal","Internal sources do not support persisted adapter invocation"))};var vIe=[...FQt,MQt],jD=zFt(vIe),RCn=jD.connectableSourceAdapters,FXn=jD.connectPayloadSchema,xat=jD.executorAddableSourceAdapters,SIe=jD.executorAddInputSchema,LCn=jD.localConfigurableSourceAdapters,_9=jD.getSourceAdapter,l0=jD.getSourceAdapterForSource,Tat=jD.findSourceAdapterByProviderKey,e$=jD.sourceBindingStateFromSource,MCn=jD.sourceAdapterCatalogKind,t$=jD.sourceAdapterRequiresInteractiveConnect,_W=jD.sourceAdapterUsesCredentialManagedAuth,jCn=jD.isInternalSourceAdapter;import*as d9 from"effect/Effect";var jQt=e=>`${e.providerId}:${e.handle}`,bIe=(e,r,i)=>d9.gen(function*(){if(r.previous===null)return;let s=new Set((r.next===null?[]:ape(r.next)).map(jQt)),l=ape(r.previous).filter(d=>!s.has(jQt(d)));yield*d9.forEach(l,d=>d9.either(i(d)),{discard:!0})}),xIe=e=>new Set(e.flatMap(r=>r?[ZN(r)]:[]).flatMap(r=>r?[r.grantId]:[])),Eat=e=>{let r=e.authArtifacts.filter(i=>i.slot===e.slot);if(e.actorScopeId!==void 0){let i=r.find(s=>s.actorScopeId===e.actorScopeId);if(i)return i}return r.find(i=>i.actorScopeId===null)??null},kat=e=>e.authArtifacts.find(r=>r.slot===e.slot&&r.actorScopeId===(e.actorScopeId??null))??null,BQt=(e,r,i)=>d9.gen(function*(){let s=yield*e.authArtifacts.listByScopeAndSourceId({scopeId:r.scopeId,sourceId:r.sourceId});return yield*e.authArtifacts.removeByScopeAndSourceId({scopeId:r.scopeId,sourceId:r.sourceId}),yield*d9.forEach(s,l=>E5(e,{authArtifactId:l.id},i),{discard:!0}),yield*d9.forEach(s,l=>bIe(e,{previous:l,next:null},i),{discard:!0}),s.length});var Cat="config:",Dat=e=>`${Cat}${e}`,Afe=e=>e.startsWith(Cat)?e.slice(Cat.length):null;var BCn=/[^a-z0-9]+/g,$Qt=e=>e.trim().toLowerCase().replace(BCn,"-").replace(/^-+/,"").replace(/-+$/,"");var vI=e=>{if(e==null)return null;let r=e.trim();return r.length>0?r:null},TIe=e=>JSON.parse(JSON.stringify(e)),UQt=(e,r)=>{let i=vI(e.namespace)??vI(e.name)??"source",s=$Qt(i)||"source",l=s,d=2;for(;r.has(l);)l=`${s}-${d}`,d+=1;return vf.make(l)},$Cn=e=>{let r=vI(e?.secrets?.defaults?.env);return r!==null&&e?.secrets?.providers?.[r]?r:e?.secrets?.providers?.default?"default":null},zQt=e=>{if(e.auth===void 0)return e.existing??{kind:"none"};if(typeof e.auth=="string"){let r=$Cn(e.config);return{kind:"bearer",headerName:"Authorization",prefix:"Bearer ",token:{providerId:r?Dat(r):"env",handle:e.auth}}}if(typeof e.auth=="object"&&e.auth!==null){let r=e.auth,i=vI(r.provider),s=i?i==="params"?"params":Dat(i):r.source==="env"?"env":r.source==="params"?"params":null,l=vI(r.id);if(s&&l)return{kind:"bearer",headerName:"Authorization",prefix:"Bearer ",token:{providerId:s,handle:l}}}return e.existing??{kind:"none"}},UCn=e=>{if(e.source.auth.kind!=="bearer")return e.existingConfigAuth;if(e.source.auth.token.providerId==="env")return e.source.auth.token.handle;if(e.source.auth.token.providerId==="params")return{source:"params",provider:"params",id:e.source.auth.token.handle};let r=Afe(e.source.auth.token.providerId);if(r!==null){let i=e.config?.secrets?.providers?.[r];if(i)return{source:i.source,provider:r,id:e.source.auth.token.handle}}return e.existingConfigAuth},qQt=e=>{let r=UCn({source:e.source,existingConfigAuth:e.existingConfigAuth,config:e.config}),i={...vI(e.source.name)!==vI(e.source.id)?{name:e.source.name}:{},...vI(e.source.namespace)!==vI(e.source.id)?{namespace:e.source.namespace??void 0}:{},...e.source.enabled===!1?{enabled:!1}:{},connection:{endpoint:e.source.endpoint,...r!==void 0?{auth:r}:{}}},s=l0(e.source);if(s.localConfigBindingSchema===null)throw new aCe({message:`Unsupported source kind for local config: ${e.source.kind}`,kind:e.source.kind});return{kind:e.source.kind,...i,binding:TIe(s.localConfigBindingFromSource(e.source))}};var Aat=e=>N1.gen(function*(){let r=e.loadedConfig.config?.sources?.[e.sourceId];if(!r)return yield*new cpe({message:`Configured source not found for id ${e.sourceId}`,sourceId:e.sourceId});let i=e.scopeState.sources[e.sourceId],s=_9(r.kind),l=yield*s.validateSource({id:vf.make(e.sourceId),scopeId:e.scopeId,name:vI(r.name)??e.sourceId,kind:r.kind,endpoint:r.connection.endpoint.trim(),status:i?.status??(r.enabled??!0?"connected":"draft"),enabled:r.enabled??!0,namespace:vI(r.namespace)??e.sourceId,bindingVersion:s.bindingConfigVersion,binding:r.binding,importAuthPolicy:s.defaultImportAuthPolicy,importAuth:{kind:"none"},auth:zQt({auth:r.connection.auth,config:e.loadedConfig.config,existing:null}),sourceHash:i?.sourceHash??null,lastError:i?.lastError??null,createdAt:i?.createdAt??Date.now(),updatedAt:i?.updatedAt??Date.now()}),d=Eat({authArtifacts:e.authArtifacts.filter(b=>b.sourceId===l.id),actorScopeId:e.actorScopeId,slot:"runtime"}),h=Eat({authArtifacts:e.authArtifacts.filter(b=>b.sourceId===l.id),actorScopeId:e.actorScopeId,slot:"import"});return{source:{...l,auth:d===null?l.auth:eCe(d),importAuth:l.importAuthPolicy==="separate"?h===null?l.importAuth:eCe(h):{kind:"none"}},sourceId:e.sourceId}}),EIe=(e,r,i={})=>N1.gen(function*(){let s=yield*RV(e,r),l=yield*e.executorState.authArtifacts.listByScopeId(r),d=yield*N1.forEach(Object.keys(s.loadedConfig.config?.sources??{}),h=>N1.map(Aat({scopeId:r,loadedConfig:s.loadedConfig,scopeState:s.scopeState,sourceId:vf.make(h),actorScopeId:i.actorScopeId,authArtifacts:l}),({source:S})=>S));return yield*N1.annotateCurrentSpan("executor.source.count",d.length),d}).pipe(N1.withSpan("source.store.load_scope",{attributes:{"executor.scope.id":r}})),wat=(e,r,i={})=>N1.gen(function*(){let s=yield*RV(e,r),l=yield*EIe(e,r,i),d=yield*N1.forEach(l,h=>N1.map(e.sourceArtifactStore.read({sourceId:h.id}),S=>S===null?null:{source:h,snapshot:S.snapshot}));yield*e.sourceTypeDeclarationsRefresher.refreshWorkspaceInBackground({entries:d.filter(h=>h!==null)})}).pipe(N1.withSpan("source.types.refresh_scope.schedule",{attributes:{"executor.scope.id":r}})),JQt=e=>e.enabled===!1||e.status==="auth_required"||e.status==="error"||e.status==="draft",VQt=(e,r,i={})=>N1.gen(function*(){let[s,l,d]=yield*N1.all([EIe(e,r,{actorScopeId:i.actorScopeId}),e.executorState.authArtifacts.listByScopeId(r),e.executorState.secretMaterials.listAll().pipe(N1.map(b=>new Set(b.map(A=>String(A.id)))))]),h=new Map(s.map(b=>[b.id,b.name])),S=new Map;for(let b of l)for(let A of ape(b)){if(!d.has(A.handle))continue;let L=S.get(A.handle)??[];L.some(V=>V.sourceId===b.sourceId)||(L.push({sourceId:b.sourceId,sourceName:h.get(b.sourceId)??b.sourceId}),S.set(A.handle,L))}return S}),kIe=(e,r)=>N1.gen(function*(){let i=yield*RV(e,r.scopeId),s=yield*e.executorState.authArtifacts.listByScopeId(r.scopeId);return i.loadedConfig.config?.sources?.[r.sourceId]?(yield*Aat({scopeId:r.scopeId,loadedConfig:i.loadedConfig,scopeState:i.scopeState,sourceId:r.sourceId,actorScopeId:r.actorScopeId,authArtifacts:s})).source:yield*new cpe({message:`Source not found: scopeId=${r.scopeId} sourceId=${r.sourceId}`,sourceId:r.sourceId})}).pipe(N1.withSpan("source.store.load_by_id",{attributes:{"executor.scope.id":r.scopeId,"executor.source.id":r.sourceId}}));import*as m9 from"effect/Effect";import*as M8 from"effect/Effect";import*as Iat from"effect/Option";var zCn=e=>ZN(e),qCn=e=>zCn(e)?.grantId??null,Pat=(e,r)=>M8.map(e.authArtifacts.listByScopeId(r.scopeId),i=>i.filter(s=>{let l=qCn(s);return l!==null&&(r.grantId==null||l===r.grantId)})),WQt=(e,r)=>M8.gen(function*(){let i=yield*e.providerAuthGrants.getById(r.grantId);return Iat.isNone(i)||i.value.orphanedAt===null?!1:(yield*e.providerAuthGrants.upsert({...i.value,orphanedAt:null,updatedAt:Date.now()}),!0)}),Nat=(e,r)=>M8.gen(function*(){if((yield*Pat(e,r)).length>0)return!1;let s=yield*e.providerAuthGrants.getById(r.grantId);if(Iat.isNone(s)||s.value.scopeId!==r.scopeId)return!1;let l=s.value;return l.orphanedAt!==null?!1:(yield*e.providerAuthGrants.upsert({...l,orphanedAt:Date.now(),updatedAt:Date.now()}),!0)}),GQt=(e,r,i)=>M8.gen(function*(){yield*i(r.grant.refreshToken).pipe(M8.either,M8.ignore)});import*as s4 from"effect/Effect";var Bd=e=>{if(e==null)return null;let r=e.trim();return r.length>0?r:null},HQt=e=>l0(e).sourceConfigFromSource(e),JCn=e=>l0(e).catalogKind,VCn=e=>l0(e).key,WCn=e=>l0(e).providerKey,KQt=e=>_D(e).slice(0,24),GCn=e=>JSON.stringify({catalogKind:JCn(e),adapterKey:VCn(e),providerKey:WCn(e),sourceConfig:HQt(e)}),QQt=e=>JSON.stringify(HQt(e)),DIe=e=>xD.make(`src_catalog_${KQt(GCn(e))}`),Oat=e=>Oj.make(`src_catalog_rev_${KQt(QQt(e))}`),CIe=e=>s4.gen(function*(){if(e===void 0||e.kind==="none")return{kind:"none"};if(e.kind==="bearer"){let h=Bd(e.headerName)??"Authorization",S=e.prefix??"Bearer ",b=Bd(e.token.providerId),A=Bd(e.token.handle);return b===null||A===null?yield*_a("sources/source-definitions","Bearer auth requires a token secret ref"):{kind:"bearer",headerName:h,prefix:S,token:{providerId:b,handle:A}}}if(e.kind==="oauth2_authorized_user"){let h=Bd(e.headerName)??"Authorization",S=e.prefix??"Bearer ",b=Bd(e.refreshToken.providerId),A=Bd(e.refreshToken.handle);if(b===null||A===null)return yield*_a("sources/source-definitions","OAuth2 authorized-user auth requires a refresh token secret ref");let L=null;if(e.clientSecret!==null){let ie=Bd(e.clientSecret.providerId),te=Bd(e.clientSecret.handle);if(ie===null||te===null)return yield*_a("sources/source-definitions","OAuth2 authorized-user client secret ref must include providerId and handle");L={providerId:ie,handle:te}}let V=Bd(e.tokenEndpoint),j=Bd(e.clientId);return V===null||j===null?yield*_a("sources/source-definitions","OAuth2 authorized-user auth requires tokenEndpoint and clientId"):{kind:"oauth2_authorized_user",headerName:h,prefix:S,tokenEndpoint:V,clientId:j,clientAuthentication:e.clientAuthentication,clientSecret:L,refreshToken:{providerId:b,handle:A},grantSet:e.grantSet??null}}if(e.kind==="provider_grant_ref"){let h=Bd(e.headerName)??"Authorization",S=e.prefix??"Bearer ",b=Bd(e.grantId);return b===null?yield*_a("sources/source-definitions","Provider grant auth requires a grantId"):{kind:"provider_grant_ref",grantId:KN.make(b),providerKey:Bd(e.providerKey)??"",requiredScopes:e.requiredScopes.map(A=>A.trim()).filter(A=>A.length>0),headerName:h,prefix:S}}if(e.kind==="mcp_oauth"){let h=Bd(e.redirectUri),S=Bd(e.accessToken.providerId),b=Bd(e.accessToken.handle);if(h===null||S===null||b===null)return yield*_a("sources/source-definitions","MCP OAuth auth requires redirectUri and access token secret ref");let A=null;if(e.refreshToken!==null){let V=Bd(e.refreshToken.providerId),j=Bd(e.refreshToken.handle);if(V===null||j===null)return yield*_a("sources/source-definitions","MCP OAuth refresh token ref must include providerId and handle");A={providerId:V,handle:j}}let L=Bd(e.tokenType)??"Bearer";return{kind:"mcp_oauth",redirectUri:h,accessToken:{providerId:S,handle:b},refreshToken:A,tokenType:L,expiresIn:e.expiresIn??null,scope:Bd(e.scope),resourceMetadataUrl:Bd(e.resourceMetadataUrl),authorizationServerUrl:Bd(e.authorizationServerUrl),resourceMetadataJson:Bd(e.resourceMetadataJson),authorizationServerMetadataJson:Bd(e.authorizationServerMetadataJson),clientInformationJson:Bd(e.clientInformationJson)}}let r=Bd(e.headerName)??"Authorization",i=e.prefix??"Bearer ",s=Bd(e.accessToken.providerId),l=Bd(e.accessToken.handle);if(s===null||l===null)return yield*_a("sources/source-definitions","OAuth2 auth requires an access token secret ref");let d=null;if(e.refreshToken!==null){let h=Bd(e.refreshToken.providerId),S=Bd(e.refreshToken.handle);if(h===null||S===null)return yield*_a("sources/source-definitions","OAuth2 refresh token ref must include providerId and handle");d={providerId:h,handle:S}}return{kind:"oauth2",headerName:r,prefix:i,accessToken:{providerId:s,handle:l},refreshToken:d}}),ZQt=(e,r)=>r??_9(e).defaultImportAuthPolicy,HCn=e=>s4.gen(function*(){return e.importAuthPolicy!=="separate"&&e.importAuth.kind!=="none"?yield*_a("sources/source-definitions","importAuth must be none unless importAuthPolicy is separate"):e}),XQt=e=>s4.flatMap(HCn(e),r=>s4.map(l0(r).validateSource(r),i=>i)),dW=e=>s4.gen(function*(){let r=yield*CIe(e.payload.auth),i=yield*CIe(e.payload.importAuth),s=ZQt(e.payload.kind,e.payload.importAuthPolicy);return yield*XQt({id:e.sourceId,scopeId:e.scopeId,name:e.payload.name.trim(),kind:e.payload.kind,endpoint:e.payload.endpoint.trim(),status:e.payload.status??"draft",enabled:e.payload.enabled??!0,namespace:Bd(e.payload.namespace),bindingVersion:_9(e.payload.kind).bindingConfigVersion,binding:e.payload.binding??{},importAuthPolicy:s,importAuth:i,auth:r,sourceHash:Bd(e.payload.sourceHash),lastError:Bd(e.payload.lastError),createdAt:e.now,updatedAt:e.now})}),f9=e=>s4.gen(function*(){let r=e.payload.auth===void 0?e.source.auth:yield*CIe(e.payload.auth),i=e.payload.importAuth===void 0?e.source.importAuth:yield*CIe(e.payload.importAuth),s=ZQt(e.source.kind,e.payload.importAuthPolicy??e.source.importAuthPolicy);return yield*XQt({...e.source,name:e.payload.name!==void 0?e.payload.name.trim():e.source.name,endpoint:e.payload.endpoint!==void 0?e.payload.endpoint.trim():e.source.endpoint,status:e.payload.status??e.source.status,enabled:e.payload.enabled??e.source.enabled,namespace:e.payload.namespace!==void 0?Bd(e.payload.namespace):e.source.namespace,bindingVersion:e.payload.binding!==void 0?_9(e.source.kind).bindingConfigVersion:e.source.bindingVersion,binding:e.payload.binding!==void 0?e.payload.binding:e.source.binding,importAuthPolicy:s,importAuth:i,auth:r,sourceHash:e.payload.sourceHash!==void 0?Bd(e.payload.sourceHash):e.source.sourceHash,lastError:e.payload.lastError!==void 0?Bd(e.payload.lastError):e.source.lastError,updatedAt:e.now})});var YQt=e=>({id:e.catalogRevisionId??Oat(e.source),catalogId:e.catalogId,revisionNumber:e.revisionNumber,sourceConfigJson:QQt(e.source),importMetadataJson:e.importMetadataJson??null,importMetadataHash:e.importMetadataHash??null,snapshotHash:e.snapshotHash??null,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}),eZt=e=>({sourceRecord:{id:e.source.id,scopeId:e.source.scopeId,catalogId:e.catalogId,catalogRevisionId:e.catalogRevisionId,name:e.source.name,kind:e.source.kind,endpoint:e.source.endpoint,status:e.source.status,enabled:e.source.enabled,namespace:e.source.namespace,importAuthPolicy:e.source.importAuthPolicy,bindingConfigJson:l0(e.source).serializeBindingConfig(e.source),sourceHash:e.source.sourceHash,lastError:e.source.lastError,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt},runtimeAuthArtifact:ope({source:e.source,auth:e.source.auth,slot:"runtime",actorScopeId:e.actorScopeId,existingAuthArtifactId:e.existingRuntimeAuthArtifactId??ZJ.make(`auth_art_${crypto.randomUUID()}`)}),importAuthArtifact:e.source.importAuthPolicy==="separate"?ope({source:e.source,auth:e.source.importAuth,slot:"import",actorScopeId:e.actorScopeId,existingAuthArtifactId:e.existingImportAuthArtifactId??ZJ.make(`auth_art_${crypto.randomUUID()}`)}):null});var tZt=(e,r,i)=>m9.gen(function*(){let s=yield*RV(e,r.scopeId);if(!s.loadedConfig.config?.sources?.[r.sourceId])return!1;let l=TIe(s.loadedConfig.projectConfig??{}),d={...l.sources};delete d[r.sourceId],yield*s.scopeConfigStore.writeProject({config:{...l,sources:d}});let{[r.sourceId]:h,...S}=s.scopeState.sources,b={...s.scopeState,sources:S};yield*s.scopeStateStore.write({state:b}),yield*s.sourceArtifactStore.remove({sourceId:r.sourceId});let A=yield*e.executorState.authArtifacts.listByScopeAndSourceId({scopeId:r.scopeId,sourceId:r.sourceId}),L=xIe(A);return yield*e.executorState.sourceAuthSessions.removeByScopeAndSourceId(r.scopeId,r.sourceId),yield*e.executorState.sourceOauthClients.removeByScopeAndSourceId({scopeId:r.scopeId,sourceId:r.sourceId}),yield*BQt(e.executorState,r,i),yield*m9.forEach([...L],V=>Nat(e.executorState,{scopeId:r.scopeId,grantId:V}),{discard:!0}),yield*wat(e,r.scopeId),!0}),rZt=(e,r,i={},s)=>m9.gen(function*(){let l=yield*RV(e,r.scopeId),d={...r,id:l.loadedConfig.config?.sources?.[r.id]||l.scopeState.sources[r.id]?r.id:UQt(r,new Set(Object.keys(l.loadedConfig.config?.sources??{})))},h=yield*e.executorState.authArtifacts.listByScopeAndSourceId({scopeId:d.scopeId,sourceId:d.id}),S=kat({authArtifacts:h,actorScopeId:i.actorScopeId,slot:"runtime"}),b=kat({authArtifacts:h,actorScopeId:i.actorScopeId,slot:"import"}),A=TIe(l.loadedConfig.projectConfig??{}),L={...A.sources},V=L[d.id];L[d.id]=qQt({source:d,existingConfigAuth:V?.connection.auth,config:l.loadedConfig.config}),yield*l.scopeConfigStore.writeProject({config:{...A,sources:L}});let{runtimeAuthArtifact:j,importAuthArtifact:ie}=eZt({source:d,catalogId:DIe(d),catalogRevisionId:Oat(d),actorScopeId:i.actorScopeId,existingRuntimeAuthArtifactId:S?.id??null,existingImportAuthArtifactId:b?.id??null});j===null?(S!==null&&(yield*E5(e.executorState,{authArtifactId:S.id},s)),yield*e.executorState.authArtifacts.removeByScopeSourceAndActor({scopeId:d.scopeId,sourceId:d.id,actorScopeId:i.actorScopeId??null,slot:"runtime"})):(yield*e.executorState.authArtifacts.upsert(j),S!==null&&S.id!==j.id&&(yield*E5(e.executorState,{authArtifactId:S.id},s))),yield*bIe(e.executorState,{previous:S??null,next:j},s),ie===null?(b!==null&&(yield*E5(e.executorState,{authArtifactId:b.id},s)),yield*e.executorState.authArtifacts.removeByScopeSourceAndActor({scopeId:d.scopeId,sourceId:d.id,actorScopeId:i.actorScopeId??null,slot:"import"})):(yield*e.executorState.authArtifacts.upsert(ie),b!==null&&b.id!==ie.id&&(yield*E5(e.executorState,{authArtifactId:b.id},s))),yield*bIe(e.executorState,{previous:b??null,next:ie},s);let te=xIe([S,b]),X=xIe([j,ie]);yield*m9.forEach([...X],pt=>WQt(e.executorState,{grantId:pt}),{discard:!0}),yield*m9.forEach([...te].filter(pt=>!X.has(pt)),pt=>Nat(e.executorState,{scopeId:d.scopeId,grantId:pt}),{discard:!0});let Re=l.scopeState.sources[d.id],Je={...l.scopeState,sources:{...l.scopeState.sources,[d.id]:{status:d.status,lastError:d.lastError,sourceHash:d.sourceHash,createdAt:Re?.createdAt??d.createdAt,updatedAt:d.updatedAt}}};return yield*l.scopeStateStore.write({state:Je}),JQt(d)&&(yield*wat(e,d.scopeId,i)),yield*kIe(e,{scopeId:d.scopeId,sourceId:d.id,actorScopeId:i.actorScopeId})}).pipe(m9.withSpan("source.store.persist",{attributes:{"executor.scope.id":r.scopeId,"executor.source.id":r.id,"executor.source.kind":r.kind,"executor.source.status":r.status}}));var uy=class extends nZt.Tag("#runtime/RuntimeSourceStoreService")(){},oZt=iZt.effect(uy,Fat.gen(function*(){let e=yield*dm,r=yield*q2,i=yield*OD,s=yield*lx,l=yield*ux,d=yield*k8,h=yield*bT,S={executorState:e,runtimeLocalScope:r,scopeConfigStore:i,scopeStateStore:s,sourceArtifactStore:l,sourceTypeDeclarationsRefresher:d};return uy.of({loadSourcesInScope:(b,A={})=>EIe(S,b,A),listLinkedSecretSourcesInScope:(b,A={})=>VQt(S,b,A),loadSourceById:b=>kIe(S,b),removeSourceById:b=>tZt(S,b,h),persistSource:(b,A={})=>rZt(S,b,A,h)})}));var _Zt=e=>({descriptor:e.tool.descriptor,namespace:e.tool.searchNamespace,searchText:e.tool.searchText,score:e.score}),KCn=e=>{let[r,i]=e.split(".");return i?`${r}.${i}`:r},QCn=e=>e.path,ZCn=e=>({path:e.path,searchNamespace:e.searchNamespace,searchText:e.searchText,source:e.source,sourceRecord:e.sourceRecord,capabilityId:e.capabilityId,executableId:e.executableId,capability:e.capability,executable:e.executable,descriptor:e.descriptor,projectedCatalog:e.projectedCatalog}),XCn=e=>e==null?null:JSON.stringify(e,null,2),YCn=(e,r)=>e.toolDescriptors[r.id]?.toolPath.join(".")??"",eDn=(e,r)=>{let i=r.preferredExecutableId!==void 0?e.executables[r.preferredExecutableId]:void 0;if(i)return i;let s=r.executableIds.map(l=>e.executables[l]).find(l=>l!==void 0);if(!s)throw new Error(`Capability ${r.id} has no executable`);return s},Zee=(e,r)=>{if(!r)return;let i=e.symbols[r];return i?.kind==="shape"?i:void 0},AIe=(e,r)=>{let i={},s=new Set,l=new Set,d=new Set,h=new Map,S=new Set,b=$e=>{let xt=$e.trim();if(xt.length===0)return null;let tr=xt.replace(/[^A-Za-z0-9_]+/g,"_").replace(/_+/g,"_").replace(/^_+|_+$/g,"");return tr.length===0?null:/^[A-Za-z_]/.test(tr)?tr:`shape_${tr}`},A=($e,xt)=>{let tr=Zee(e,$e);return[...xt,tr?.title,$e].flatMap(ht=>typeof ht=="string"&&ht.trim().length>0?[ht]:[])},L=($e,xt)=>{let tr=h.get($e);if(tr)return tr;let ht=A($e,xt);for(let Hi of ht){let un=b(Hi);if(un&&!S.has(un))return h.set($e,un),S.add(un),un}let wt=b($e)??"shape",Ut=wt,hr=2;for(;S.has(Ut);)Ut=`${wt}_${String(hr)}`,hr+=1;return h.set($e,Ut),S.add(Ut),Ut},V=($e,xt,tr)=>A($e,xt)[0]??tr,j=($e,xt,tr)=>{let ht=Zee(e,$e);if(!ht)return!0;if(xt<0||tr.has($e))return!1;let wt=new Set(tr);return wt.add($e),$d.value(ht.node).pipe($d.when({type:"unknown"},()=>!0),$d.when({type:"const"},()=>!0),$d.when({type:"enum"},()=>!0),$d.when({type:"scalar"},()=>!0),$d.when({type:"ref"},Ut=>j(Ut.target,xt,wt)),$d.when({type:"nullable"},Ut=>j(Ut.itemShapeId,xt-1,wt)),$d.when({type:"array"},Ut=>j(Ut.itemShapeId,xt-1,wt)),$d.when({type:"object"},Ut=>{let hr=Object.values(Ut.fields);return hr.length<=8&&hr.every(Hi=>j(Hi.shapeId,xt-1,wt))}),$d.orElse(()=>!1))},ie=$e=>j($e,2,new Set),te=($e,xt=[])=>{if(s.has($e))return X($e,xt);if(!Zee(e,$e))return{};s.add($e);try{return Re($e,xt)}finally{s.delete($e)}},X=($e,xt=[])=>{let tr=L($e,xt);if(d.has($e)||l.has($e))return{$ref:`#/$defs/${tr}`};let ht=Zee(e,$e);l.add($e);let wt=s.has($e);wt||s.add($e);try{i[tr]=ht?Re($e,xt):{},d.add($e)}finally{l.delete($e),wt||s.delete($e)}return{$ref:`#/$defs/${tr}`}},Re=($e,xt=[])=>{let tr=Zee(e,$e);if(!tr)return{};let ht=V($e,xt,"shape"),wt=Ut=>({...tr.title?{title:tr.title}:{},...tr.docs?.description?{description:tr.docs.description}:{},...Ut});return $d.value(tr.node).pipe($d.when({type:"unknown"},()=>wt({})),$d.when({type:"const"},Ut=>wt({const:Ut.value})),$d.when({type:"enum"},Ut=>wt({enum:Ut.values})),$d.when({type:"scalar"},Ut=>wt({type:Ut.scalar==="bytes"?"string":Ut.scalar,...Ut.scalar==="bytes"?{format:"binary"}:{},...Ut.format?{format:Ut.format}:{},...Ut.constraints})),$d.when({type:"ref"},Ut=>ie(Ut.target)?te(Ut.target,xt):X(Ut.target,xt)),$d.when({type:"nullable"},Ut=>wt({anyOf:[te(Ut.itemShapeId,xt),{type:"null"}]})),$d.when({type:"allOf"},Ut=>wt({allOf:Ut.items.map((hr,Hi)=>te(hr,[`${ht}_allOf_${String(Hi+1)}`]))})),$d.when({type:"anyOf"},Ut=>wt({anyOf:Ut.items.map((hr,Hi)=>te(hr,[`${ht}_anyOf_${String(Hi+1)}`]))})),$d.when({type:"oneOf"},Ut=>wt({oneOf:Ut.items.map((hr,Hi)=>te(hr,[`${ht}_option_${String(Hi+1)}`])),...Ut.discriminator?{discriminator:{propertyName:Ut.discriminator.propertyName,...Ut.discriminator.mapping?{mapping:Object.fromEntries(Object.entries(Ut.discriminator.mapping).map(([hr,Hi])=>[hr,X(Hi,[hr,`${ht}_${hr}`]).$ref]))}:{}}}:{}})),$d.when({type:"not"},Ut=>wt({not:te(Ut.itemShapeId,[`${ht}_not`])})),$d.when({type:"conditional"},Ut=>wt({if:te(Ut.ifShapeId,[`${ht}_if`]),...Ut.thenShapeId?{then:te(Ut.thenShapeId,[`${ht}_then`])}:{},...Ut.elseShapeId?{else:te(Ut.elseShapeId,[`${ht}_else`])}:{}})),$d.when({type:"array"},Ut=>wt({type:"array",items:te(Ut.itemShapeId,[`${ht}_item`]),...Ut.minItems!==void 0?{minItems:Ut.minItems}:{},...Ut.maxItems!==void 0?{maxItems:Ut.maxItems}:{}})),$d.when({type:"tuple"},Ut=>wt({type:"array",prefixItems:Ut.itemShapeIds.map((hr,Hi)=>te(hr,[`${ht}_item_${String(Hi+1)}`])),...Ut.additionalItems!==void 0?{items:typeof Ut.additionalItems=="boolean"?Ut.additionalItems:te(Ut.additionalItems,[`${ht}_item_rest`])}:{}})),$d.when({type:"map"},Ut=>wt({type:"object",additionalProperties:te(Ut.valueShapeId,[`${ht}_value`])})),$d.when({type:"object"},Ut=>wt({type:"object",properties:Object.fromEntries(Object.entries(Ut.fields).map(([hr,Hi])=>[hr,{...te(Hi.shapeId,[hr]),...Hi.docs?.description?{description:Hi.docs.description}:{}}])),...Ut.required&&Ut.required.length>0?{required:Ut.required}:{},...Ut.additionalProperties!==void 0?{additionalProperties:typeof Ut.additionalProperties=="boolean"?Ut.additionalProperties:te(Ut.additionalProperties,[`${ht}_additionalProperty`])}:{},...Ut.patternProperties?{patternProperties:Object.fromEntries(Object.entries(Ut.patternProperties).map(([hr,Hi])=>[hr,te(Hi,[`${ht}_patternProperty`])]))}:{}})),$d.when({type:"graphqlInterface"},Ut=>wt({type:"object",properties:Object.fromEntries(Object.entries(Ut.fields).map(([hr,Hi])=>[hr,te(Hi.shapeId,[hr])]))})),$d.when({type:"graphqlUnion"},Ut=>wt({oneOf:Ut.memberTypeIds.map((hr,Hi)=>te(hr,[`${ht}_member_${String(Hi+1)}`]))})),$d.exhaustive)},Je=($e,xt=[])=>{let tr=Zee(e,$e);return tr?$d.value(tr.node).pipe($d.when({type:"ref"},ht=>Je(ht.target,xt)),$d.orElse(()=>te($e,xt))):{}},pt=Je(r,["input"]);return Object.keys(i).length>0?{...pt,$defs:i}:pt},dZt=e=>upe({catalog:e.catalog,roots:cCe(e)}),tDn=e=>{let r=e.projected.toolDescriptors[e.capability.id],i=r.toolPath.join("."),s=r.interaction.mayRequireApproval||r.interaction.mayElicit?"required":"auto",l=e.includeSchemas?AIe(e.projected.catalog,r.callShapeId):void 0,h=e.includeSchemas&&r.resultShapeId?AIe(e.projected.catalog,r.resultShapeId):void 0,S=e.includeTypePreviews?e.typeProjector.renderSelfContainedShape(r.callShapeId,{aliasHint:c0(...r.toolPath,"call")}):void 0,b=e.includeTypePreviews&&r.resultShapeId?e.typeProjector.renderSelfContainedShape(r.resultShapeId,{aliasHint:c0(...r.toolPath,"result")}):void 0;return{path:i,sourceKey:e.source.id,description:e.capability.surface.summary??e.capability.surface.description,interaction:s,contract:{inputTypePreview:S,...b!==void 0?{outputTypePreview:b}:{},...l!==void 0?{inputSchema:l}:{},...h!==void 0?{outputSchema:h}:{}},providerKind:e.executable.adapterKey,providerData:{capabilityId:e.capability.id,executableId:e.executable.id,adapterKey:e.executable.adapterKey,display:e.executable.display}}},fZt=e=>{let r=eDn(e.catalogEntry.projected.catalog,e.capability),i=e.catalogEntry.projected.toolDescriptors[e.capability.id],s=tDn({source:e.catalogEntry.source,projected:e.catalogEntry.projected,capability:e.capability,executable:r,typeProjector:e.catalogEntry.typeProjector,includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews}),l=QCn(s),d=e.catalogEntry.projected.searchDocs[e.capability.id],h=KCn(l),S=[l,h,e.catalogEntry.source.name,e.capability.surface.title,e.capability.surface.summary,e.capability.surface.description,s.contract?.inputTypePreview,s.contract?.outputTypePreview,...d?.tags??[],...d?.protocolHints??[],...d?.authHints??[]].filter(b=>typeof b=="string"&&b.length>0).join(" ").toLowerCase();return{path:l,searchNamespace:h,searchText:S,source:e.catalogEntry.source,sourceRecord:e.catalogEntry.sourceRecord,revision:e.catalogEntry.revision,capabilityId:e.capability.id,executableId:r.id,capability:e.capability,executable:r,projectedDescriptor:i,descriptor:s,projectedCatalog:e.catalogEntry.projected.catalog,typeProjector:e.catalogEntry.typeProjector}},mZt=e=>({id:e.source.id,scopeId:e.source.scopeId,catalogId:e.artifact.catalogId,catalogRevisionId:e.artifact.revision.id,name:e.source.name,kind:e.source.kind,endpoint:e.source.endpoint,status:e.source.status,enabled:e.source.enabled,namespace:e.source.namespace,importAuthPolicy:e.source.importAuthPolicy,bindingConfigJson:JSON.stringify(e.source.binding),sourceHash:e.source.sourceHash,lastError:e.source.lastError,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}),r$=class extends uZt.Tag("#runtime/RuntimeSourceCatalogStoreService")(){},rDn=e=>e??null,nDn=e=>JSON.stringify([...e].sort((r,i)=>String(r.id).localeCompare(String(i.id)))),hZt=(e,r)=>p_.gen(function*(){if(e.runtimeLocalScope.installation.scopeId!==r)return yield*p_.fail(_a("catalog/source/runtime",`Runtime local scope mismatch: expected ${r}, got ${e.runtimeLocalScope.installation.scopeId}`))}),gZt=e=>jke(e.artifact.snapshot),yZt=(e,r)=>p_.gen(function*(){return yield*hZt(e,r.scopeId),yield*e.sourceStore.loadSourcesInScope(r.scopeId,{actorScopeId:r.actorScopeId})}),aZt=(e,r)=>p_.map(yZt(e,r),i=>({scopeId:r.scopeId,actorScopeId:rDn(r.actorScopeId),sourceFingerprint:nDn(i)})),iDn=(e,r)=>p_.gen(function*(){return(yield*p_.forEach(r,s=>p_.gen(function*(){let l=yield*e.sourceArtifactStore.read({sourceId:s.id});if(l===null)return null;let d=gZt({source:s,artifact:l}),h=Zue({catalog:d.catalog}),S=dZt(h);return{source:s,sourceRecord:mZt({source:s,artifact:l}),revision:l.revision,snapshot:d,catalog:d.catalog,projected:h,typeProjector:S,importMetadata:d.import}}))).filter(s=>s!==null)}),vZt=(e,r)=>p_.gen(function*(){let i=yield*yZt(e,r);return yield*iDn(e,i)}),SZt=(e,r)=>p_.gen(function*(){yield*hZt(e,r.scopeId);let i=yield*e.sourceStore.loadSourceById({scopeId:r.scopeId,sourceId:r.sourceId,actorScopeId:r.actorScopeId}),s=yield*e.sourceArtifactStore.read({sourceId:i.id});if(s===null)return yield*new oCe({message:`Catalog artifact missing for source ${r.sourceId}`,sourceId:r.sourceId});let l=gZt({source:i,artifact:s}),d=Zue({catalog:l.catalog}),h=dZt(d);return{source:i,sourceRecord:mZt({source:i,artifact:s}),revision:s.revision,snapshot:l,catalog:l.catalog,projected:d,typeProjector:h,importMetadata:l.import}}),oDn=e=>p_.gen(function*(){let r=yield*q2,i=yield*uy,s=yield*ux;return yield*vZt({runtimeLocalScope:r,sourceStore:i,sourceArtifactStore:s},e)}),bZt=e=>p_.gen(function*(){let r=yield*q2,i=yield*uy,s=yield*ux;return yield*SZt({runtimeLocalScope:r,sourceStore:i,sourceArtifactStore:s},e)}),Lat=e=>p_.succeed(e.catalogs.flatMap(r=>Object.values(r.catalog.capabilities).map(i=>fZt({catalogEntry:r,capability:i,includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews??!0})))),sZt=e=>p_.tryPromise({try:async()=>{let r=upe({catalog:e.catalog,roots:[{shapeId:e.shapeId,aliasHint:e.aliasHint}]}),i=r.renderDeclarationShape(e.shapeId,{aliasHint:e.aliasHint}),s=r.supportingDeclarations(),l=`type ${e.aliasHint} =`;return s.some(h=>h.includes(l))?s.join(` + +`):[...s,sDn({catalog:e.catalog,shapeId:e.shapeId,aliasHint:e.aliasHint,body:i})].join(` + +`)},catch:r=>r instanceof Error?r:new Error(String(r))}),cZt=e=>e===void 0?p_.succeed(null):p_.tryPromise({try:()=>y_e(e,"typescript"),catch:r=>r instanceof Error?r:new Error(String(r))}),lZt=e=>{let r=XCn(e);return r===null?p_.succeed(null):p_.tryPromise({try:()=>y_e(r,"json"),catch:i=>i instanceof Error?i:new Error(String(i))})},aDn=e=>e.length===0?"tool":`${e.slice(0,1).toLowerCase()}${e.slice(1)}`,sDn=e=>{let r=e.catalog.symbols[e.shapeId],i=r?.kind==="shape"?lpe({title:r.title,docs:r.docs,deprecated:r.deprecated,includeTitle:!0}):null,s=`type ${e.aliasHint} = ${e.body};`;return i?`${i} +${s}`:s},xZt=e=>{let r=c0(...e.projectedDescriptor.toolPath,"call"),i=c0(...e.projectedDescriptor.toolPath,"result"),s=e.projectedDescriptor.callShapeId,l=e.projectedDescriptor.resultShapeId??null,d=ppe(e.projectedCatalog,s),h=l?i:"unknown",S=aDn(c0(...e.projectedDescriptor.toolPath)),b=lpe({title:e.capability.surface.title,docs:{...e.capability.surface.summary?{summary:e.capability.surface.summary}:{},...e.capability.surface.description?{description:e.capability.surface.description}:{}},includeTitle:!0});return p_.gen(function*(){let[A,L,V,j,ie,te,X,Re]=yield*p_.all([cZt(e.descriptor.contract?.inputTypePreview),cZt(e.descriptor.contract?.outputTypePreview),sZt({catalog:e.projectedCatalog,shapeId:s,aliasHint:r}),l?sZt({catalog:e.projectedCatalog,shapeId:l,aliasHint:i}):p_.succeed(null),lZt(e.descriptor.contract?.inputSchema??AIe(e.projectedCatalog,s)),l?lZt(e.descriptor.contract?.outputSchema??AIe(e.projectedCatalog,l)):p_.succeed(null),p_.tryPromise({try:()=>y_e(`(${d?"args?":"args"}: ${r}) => Promise<${h}>`,"typescript"),catch:Je=>Je instanceof Error?Je:new Error(String(Je))}),p_.tryPromise({try:()=>y_e([...b?[b]:[],`declare function ${S}(${d?"args?":"args"}: ${r}): Promise<${h}>;`].join(` +`),"typescript-module"),catch:Je=>Je instanceof Error?Je:new Error(String(Je))})]);return{callSignature:X,callDeclaration:Re,callShapeId:s,resultShapeId:l,responseSetId:e.projectedDescriptor.responseSetId,input:{shapeId:s,typePreview:A,typeDeclaration:V,schemaJson:ie,exampleJson:null},output:{shapeId:l,typePreview:L,typeDeclaration:j,schemaJson:te,exampleJson:null}}})},Mat=e=>p_.succeed(e.catalogs.flatMap(r=>Object.values(r.catalog.capabilities).flatMap(i=>YCn(r.projected,i)===e.path?[fZt({catalogEntry:r,capability:i,includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews??!0})]:[])).at(0)??null);var cDn=e=>p_.gen(function*(){let r=yield*oDn({scopeId:e.scopeId,actorScopeId:e.actorScopeId}),i=yield*Mat({catalogs:r,path:e.path,includeSchemas:e.includeSchemas});return i?{path:i.path,searchNamespace:i.searchNamespace,searchText:i.searchText,source:i.source,sourceRecord:i.sourceRecord,capabilityId:i.capabilityId,executableId:i.executableId,capability:i.capability,executable:i.executable,descriptor:i.descriptor,projectedCatalog:i.projectedCatalog}:null}),TZt=pZt.effect(r$,p_.gen(function*(){let e=yield*q2,r=yield*uy,i=yield*ux,s={runtimeLocalScope:e,sourceStore:r,sourceArtifactStore:i},l=yield*Rat.make({capacity:32,timeToLive:"10 minutes",lookup:b=>vZt(s,{scopeId:b.scopeId,actorScopeId:b.actorScopeId})}),d=yield*Rat.make({capacity:32,timeToLive:"10 minutes",lookup:b=>p_.gen(function*(){let A=yield*l.get(b);return(yield*Lat({catalogs:A,includeSchemas:!1,includeTypePreviews:!1})).map(ZCn)})}),h=b=>p_.flatMap(aZt(s,b),A=>l.get(A)),S=b=>p_.flatMap(aZt(s,b),A=>d.get(A));return r$.of({loadWorkspaceSourceCatalogs:b=>h(b),loadSourceWithCatalog:b=>SZt(s,b),loadWorkspaceSourceCatalogToolIndex:b=>S({scopeId:b.scopeId,actorScopeId:b.actorScopeId}),loadWorkspaceSourceCatalogToolByPath:b=>b.includeSchemas?cDn(b).pipe(p_.provideService(q2,e),p_.provideService(uy,r),p_.provideService(ux,i)):p_.map(S({scopeId:b.scopeId,actorScopeId:b.actorScopeId}),A=>A.find(L=>L.path===b.path)??null)})}));import*as n$ from"effect/Effect";import*as EZt from"effect/Context";import*as h9 from"effect/Effect";import*as kZt from"effect/Layer";var lDn=e=>e.enabled&&e.status==="connected"&&l0(e).catalogKind!=="internal",SI=class extends EZt.Tag("#runtime/RuntimeSourceCatalogSyncService")(){},CZt=(e,r)=>h9.gen(function*(){if(e.runtimeLocalScope.installation.scopeId!==r)return yield*h9.fail(_a("catalog/source/sync",`Runtime local scope mismatch: expected ${r}, got ${e.runtimeLocalScope.installation.scopeId}`))}),uDn=(e,r)=>h9.gen(function*(){if(yield*CZt(e,r.source.scopeId),!lDn(r.source)){let b=yield*e.scopeStateStore.load(),A=b.sources[r.source.id],L={...b,sources:{...b.sources,[r.source.id]:{status:r.source.enabled?r.source.status:"draft",lastError:null,sourceHash:r.source.sourceHash,createdAt:A?.createdAt??r.source.createdAt,updatedAt:Date.now()}}};yield*e.scopeStateStore.write({state:L}),yield*e.sourceTypeDeclarationsRefresher.refreshSourceInBackground({source:r.source,snapshot:null});return}let s=yield*l0(r.source).syncCatalog({source:r.source,resolveSecretMaterial:e.resolveSecretMaterial,resolveAuthMaterialForSlot:b=>e.sourceAuthMaterialService.resolve({source:r.source,slot:b,actorScopeId:r.actorScopeId})}),l=Yue(s);yield*e.sourceArtifactStore.write({sourceId:r.source.id,artifact:e.sourceArtifactStore.build({source:r.source,syncResult:s})});let d=yield*e.scopeStateStore.load(),h=d.sources[r.source.id],S={...d,sources:{...d.sources,[r.source.id]:{status:"connected",lastError:null,sourceHash:s.sourceHash,createdAt:h?.createdAt??r.source.createdAt,updatedAt:Date.now()}}};yield*e.scopeStateStore.write({state:S}),yield*e.sourceTypeDeclarationsRefresher.refreshSourceInBackground({source:r.source,snapshot:l})}).pipe(h9.withSpan("source.catalog.sync",{attributes:{"executor.source.id":r.source.id,"executor.source.kind":r.source.kind,"executor.source.namespace":r.source.namespace,"executor.source.endpoint":r.source.endpoint}})),pDn=(e,r)=>h9.gen(function*(){yield*CZt(e,r.source.scopeId);let i=GKe({source:r.source,endpoint:r.source.endpoint,manifest:r.manifest}),s=Yue(i);yield*e.sourceArtifactStore.write({sourceId:r.source.id,artifact:e.sourceArtifactStore.build({source:r.source,syncResult:i})}),yield*e.sourceTypeDeclarationsRefresher.refreshSourceInBackground({source:r.source,snapshot:s})});var DZt=kZt.effect(SI,h9.gen(function*(){let e=yield*q2,r=yield*lx,i=yield*ux,s=yield*k8,l=yield*Xw,d=yield*qj,h={runtimeLocalScope:e,scopeStateStore:r,sourceArtifactStore:i,sourceTypeDeclarationsRefresher:s,resolveSecretMaterial:l,sourceAuthMaterialService:d};return SI.of({sync:S=>uDn(h,S),persistMcpCatalogSnapshotFromManifest:S=>pDn(h,S)})}));var _Dn=e=>e.enabled&&e.status==="connected"&&l0(e).catalogKind!=="internal",AZt=e=>n$.gen(function*(){let r=yield*q2,i=yield*uy,s=yield*ux,l=yield*SI,d=yield*i.loadSourcesInScope(e.scopeId,{actorScopeId:e.actorScopeId});for(let h of d)!_Dn(h)||(yield*s.read({sourceId:h.id}))!==null||(yield*l.sync({source:h,actorScopeId:e.actorScopeId}).pipe(n$.catchAll(()=>n$.void)))}).pipe(n$.withSpan("source.catalog.reconcile_missing",{attributes:{"executor.scope.id":e.scopeId}}));import*as wZt from"effect/Context";import*as i$ from"effect/Deferred";import*as ob from"effect/Effect";import*as IZt from"effect/Layer";var dDn=()=>({stateWaiters:[],currentInteraction:null}),jat=e=>e===void 0?null:JSON.stringify(e),fDn=new Set(["tokenRef","tokenSecretMaterialId"]),Bat=e=>{if(Array.isArray(e))return e.map(Bat);if(!e||typeof e!="object")return e;let r=Object.entries(e).filter(([i])=>!fDn.has(i)).map(([i,s])=>[i,Bat(s)]);return Object.fromEntries(r)},wfe=e=>{if(e.content===void 0)return e;let r=Bat(e.content);return{...e,content:r}},mDn=e=>{let r=e.context?.interactionPurpose;return typeof r=="string"&&r.length>0?r:e.path==="executor.sources.add"?e.elicitation.mode==="url"?"source_connect_oauth2":"source_connect_secret":"elicitation"},$at=()=>{let e=new Map,r=l=>{let d=e.get(l);if(d)return d;let h=dDn();return e.set(l,h),h},i=l=>ob.gen(function*(){let d=r(l.executionId),h=[...d.stateWaiters];d.stateWaiters=[],yield*ob.forEach(h,S=>i$.succeed(S,l.state),{discard:!0})});return{publishState:i,registerStateWaiter:l=>ob.gen(function*(){let d=yield*i$.make();return r(l).stateWaiters.push(d),d}),createOnElicitation:({executorState:l,executionId:d})=>h=>ob.gen(function*(){let S=r(d),b=yield*i$.make(),A=Date.now(),L={id:L2.make(`${d}:${h.interactionId}`),executionId:d,status:"pending",kind:h.elicitation.mode==="url"?"url":"form",purpose:mDn(h),payloadJson:jat({path:h.path,sourceKey:h.sourceKey,args:h.args,context:h.context,elicitation:h.elicitation})??"{}",responseJson:null,responsePrivateJson:null,createdAt:A,updatedAt:A};return yield*l.executionInteractions.insert(L),yield*l.executions.update(d,{status:"waiting_for_interaction",updatedAt:A}),S.currentInteraction={interactionId:L.id,response:b},yield*ob.gen(function*(){yield*i({executionId:d,state:"waiting_for_interaction"});let V=yield*i$.await(b),j=Date.now();return yield*l.executionInteractions.update(L.id,{status:V.action==="cancel"?"cancelled":"resolved",responseJson:jat(wfe(V)),responsePrivateJson:jat(V),updatedAt:j}),yield*l.executions.update(d,{status:"running",updatedAt:j}),yield*i({executionId:d,state:"running"}),V}).pipe(ob.ensuring(ob.sync(()=>{S.currentInteraction?.interactionId===L.id&&(S.currentInteraction=null)})))}),resolveInteraction:({executionId:l,response:d})=>ob.gen(function*(){let S=e.get(l)?.currentInteraction;return S?(yield*i$.succeed(S.response,d),!0):!1}),finishRun:({executionId:l,state:d})=>i({executionId:l,state:d}).pipe(ob.zipRight(G2e(l)),ob.ensuring(ob.sync(()=>{e.delete(l)}))),clearRun:l=>G2e(l).pipe(ob.ensuring(ob.sync(()=>{e.delete(l)})))}},BD=class extends wZt.Tag("#runtime/LiveExecutionManagerService")(){},aei=IZt.sync(BD,$at);import*as dYt from"effect/Context";import*as Nst from"effect/Effect";import*as KIe from"effect/Layer";import{spawnSync as vDn}from"node:child_process";import{fileURLToPath as SDn}from"node:url";import*as $D from"effect/Effect";import{spawn as hDn}from"node:child_process";var gDn=e=>e instanceof Error?e:new Error(String(e)),yDn=e=>{if(!e)return["--deny-net","--deny-read","--deny-write","--deny-env","--deny-run","--deny-ffi"];let r=[],i=(s,l)=>{l===!0?r.push(`--allow-${s}`):Array.isArray(l)&&l.length>0?r.push(`--allow-${s}=${l.join(",")}`):r.push(`--deny-${s}`)};return i("net",e.allowNet),i("read",e.allowRead),i("write",e.allowWrite),i("env",e.allowEnv),i("run",e.allowRun),i("ffi",e.allowFfi),r},PZt=(e,r)=>{let i=yDn(e.permissions),s=hDn(e.executable,["run","--quiet","--no-prompt","--no-check",...i,e.scriptPath],{stdio:["pipe","pipe","pipe"]});if(!s.stdin||!s.stdout||!s.stderr)throw new Error("Failed to create piped stdio for Deno worker subprocess");s.stdout.setEncoding("utf8"),s.stderr.setEncoding("utf8");let l="",d=V=>{for(l+=V;;){let j=l.indexOf(` +`);if(j===-1)break;let ie=l.slice(0,j);l=l.slice(j+1),r.onStdoutLine(ie)}},h=V=>{r.onStderr(V)},S=V=>{r.onError(gDn(V))},b=(V,j)=>{r.onExit(V,j)};s.stdout.on("data",d),s.stderr.on("data",h),s.on("error",S),s.on("exit",b);let A=!1,L=()=>{A||(A=!0,s.stdout.removeListener("data",d),s.stderr.removeListener("data",h),s.removeListener("error",S),s.removeListener("exit",b),s.killed||s.kill("SIGKILL"))};return{stdin:s.stdin,dispose:L}};var NZt="@@executor-ipc@@",bDn=5*6e4,xDn=()=>{let e=process.env.DENO_BIN?.trim();if(e)return e;let r=process.env.HOME?.trim();if(r){let i=`${r}/.deno/bin/deno`,s=vDn(i,["--version"],{stdio:"ignore",timeout:5e3});if(s.error===void 0&&s.status===0)return i}return"deno"},OZt=(e,r)=>(typeof e=="object"&&e!==null&&"code"in e?String(e.code):null)==="ENOENT"?`Failed to spawn Deno subprocess: Deno executable "${r}" was not found. Install Deno or set DENO_BIN.`:`Failed to spawn Deno subprocess: ${e instanceof Error?e.message:String(e)}`,TDn=()=>{let e=String(import.meta.url);if(e.startsWith("/"))return e;try{let r=new URL("./deno-subprocess-worker.mjs",e);return r.protocol==="file:"?SDn(r):r.pathname.length>0?r.pathname:r.toString()}catch{return e}},Uat,EDn=()=>(Uat||(Uat=TDn()),Uat),zat=(e,r)=>{e.write(`${JSON.stringify(r)} +`)},kDn=e=>typeof e=="object"&&e!==null&&"type"in e&&typeof e.type=="string",CDn=(e,r,i)=>$D.gen(function*(){let s=i.denoExecutable??xDn(),l=Math.max(100,i.timeoutMs??bDn);return yield*$D.async(h=>{let S=!1,b="",A=null,L=te=>{S||(S=!0,clearTimeout(j),A?.dispose(),h($D.succeed(te)))},V=(te,X)=>{L({result:null,error:te,logs:X})},j=setTimeout(()=>{V(`Deno subprocess execution timed out after ${l}ms`)},l),ie=te=>{let X=te.trim();if(X.length===0||!X.startsWith(NZt))return;let Re=X.slice(NZt.length),Je;try{let pt=JSON.parse(Re);if(!kDn(pt)){V(`Invalid worker message: ${Re}`);return}Je=pt}catch(pt){V(`Failed to decode worker message: ${Re} +${String(pt)}`);return}if(Je.type==="tool_call"){if(!A){V("Deno subprocess unavailable while handling worker tool_call");return}let pt=A;$D.runPromise($D.match($D.tryPromise({try:()=>$D.runPromise(r.invoke({path:Je.toolPath,args:Je.args})),catch:$e=>$e instanceof Error?$e:new Error(String($e))}),{onSuccess:$e=>{zat(pt.stdin,{type:"tool_result",requestId:Je.requestId,ok:!0,value:$e})},onFailure:$e=>{zat(pt.stdin,{type:"tool_result",requestId:Je.requestId,ok:!1,error:$e.message})}})).catch($e=>{V(`Failed handling worker tool_call: ${String($e)}`)});return}if(Je.type==="completed"){L({result:Je.result,logs:Je.logs});return}V(Je.error,Je.logs)};try{A=PZt({executable:s,scriptPath:EDn(),permissions:i.permissions},{onStdoutLine:ie,onStderr:te=>{b+=te},onError:te=>{V(OZt(te,s))},onExit:(te,X)=>{S||V(`Deno subprocess exited before returning terminal message (code=${String(te)} signal=${String(X)} stderr=${b})`)}})}catch(te){V(OZt(te,s));return}zat(A.stdin,{type:"start",code:e})})});var FZt=(e={})=>({execute:(r,i)=>CDn(r,i,e)});import*as FIe from"effect/Effect";IIe();async function YZt(e){let r=tst(await e),[i,s,{QuickJSWASMModule:l}]=await Promise.all([r.importModuleLoader().then(tst),r.importFFI(),Promise.resolve().then(()=>(XZt(),ZZt)).then(tst)]),d=await i();d.type="sync";let h=new s(d);return new l(d,h)}function tst(e){return e&&"default"in e&&e.default?e.default&&"default"in e.default&&e.default.default?e.default.default:e.default:e}function eXt(e){let r=typeof e=="number"?e:e.getTime();return function(){return Date.now()>r}}var QDn={type:"sync",importFFI:()=>Promise.resolve().then(()=>(rXt(),tXt)).then(e=>e.QuickJSFFI),importModuleLoader:()=>Promise.resolve().then(()=>(iXt(),nXt)).then(e=>e.default)},rst=QDn;async function oXt(e=rst){return YZt(e)}var ZDn,nst;async function aXt(){return nst??(nst=oXt().then(e=>(ZDn=e,e))),await nst}var XDn=5*6e4,YDn="executor-quickjs-runtime.js",RIe=e=>e instanceof Error?e:new Error(String(e)),sXt=e=>{if(typeof e=="object"&&e!==null){let i="stack"in e&&typeof e.stack=="string"?e.stack:void 0,s="message"in e&&typeof e.message=="string"?e.message:void 0;if(i)return i;if(s)return s}let r=RIe(e);return r.stack??r.message},eAn=(e,r)=>{if(!(typeof e>"u"))try{return JSON.stringify(e)}catch(i){throw new Error(`${r} is not JSON serializable: ${RIe(i).message}`)}},tAn=e=>/\binterrupted\b/i.test(e),Nfe=e=>`QuickJS execution timed out after ${e}ms`,OIe=(e,r,i)=>{let s=sXt(e);return Date.now()>=r&&tAn(s)?Nfe(i):s},rAn=e=>{let r=e.trim();return['"use strict";',"const __formatLogArg = (value) => {"," if (typeof value === 'string') return value;"," try {"," return JSON.stringify(value);"," } catch {"," return String(value);"," }","};","const __formatLogLine = (args) => args.map(__formatLogArg).join(' ');","const __makeToolsProxy = (path = []) => new Proxy(() => undefined, {"," get(_target, prop) {"," if (prop === 'then' || typeof prop === 'symbol') {"," return undefined;"," }"," return __makeToolsProxy([...path, String(prop)]);"," },"," apply(_target, _thisArg, args) {"," const toolPath = path.join('.');"," if (!toolPath) {"," throw new Error('Tool path missing in invocation');"," }"," return Promise.resolve(__executor_invokeTool(toolPath, args[0])).then((raw) => raw === undefined ? undefined : JSON.parse(raw));"," },","});","const tools = __makeToolsProxy();","const console = {"," log: (...args) => __executor_log('log', __formatLogLine(args)),"," warn: (...args) => __executor_log('warn', __formatLogLine(args)),"," error: (...args) => __executor_log('error', __formatLogLine(args)),"," info: (...args) => __executor_log('info', __formatLogLine(args)),"," debug: (...args) => __executor_log('debug', __formatLogLine(args)),","};","const fetch = (..._args) => {"," throw new Error('fetch is disabled in QuickJS executor');","};","(async () => {",(r.startsWith("async")||r.startsWith("("))&&r.includes("=>")?[`const __fn = (${r});`,"if (typeof __fn !== 'function') throw new Error('Code must evaluate to a function');","return await __fn();"].join(` +`):e,"})()"].join(` +`)},ist=(e,r,i)=>{let s=e.getProp(r,i);try{return e.dump(s)}finally{s.dispose()}},nAn=(e,r)=>({settled:ist(e,r,"settled")===!0,value:ist(e,r,"v"),error:ist(e,r,"e")}),iAn=(e,r)=>e.newFunction("__executor_log",(i,s)=>{let l=e.getString(i),d=e.getString(s);return r.push(`[${l}] ${d}`),e.undefined}),oAn=(e,r,i)=>e.newFunction("__executor_invokeTool",(s,l)=>{let d=e.getString(s),h=l===void 0||e.typeof(l)==="undefined"?void 0:e.dump(l),S=e.newPromise();return i.add(S),S.settled.finally(()=>{i.delete(S)}),FIe.runPromise(r.invoke({path:d,args:h})).then(b=>{if(!S.alive)return;let A=eAn(b,`Tool result for ${d}`);if(typeof A>"u"){S.resolve();return}let L=e.newString(A);S.resolve(L),L.dispose()},b=>{if(!S.alive)return;let A=e.newError(sXt(b));S.reject(A),A.dispose()}),S.handle}),ost=(e,r,i,s)=>{for(;r.hasPendingJob();){if(Date.now()>=i)throw new Error(Nfe(s));let l=r.executePendingJobs();if(l.error){let d=e.dump(l.error);throw l.error.dispose(),RIe(d)}}},aAn=async(e,r,i)=>{let s=r-Date.now();if(s<=0)throw new Error(Nfe(i));let l;try{await Promise.race([Promise.race([...e].map(d=>d.settled)),new Promise((d,h)=>{l=setTimeout(()=>h(new Error(Nfe(i))),s)})])}finally{l!==void 0&&clearTimeout(l)}},sAn=async(e,r,i,s,l)=>{for(ost(e,r,s,l);i.size>0;)await aAn(i,s,l),ost(e,r,s,l);ost(e,r,s,l)},cAn=async(e,r,i)=>{let s=Math.max(100,e.timeoutMs??XDn),l=Date.now()+s,d=[],h=new Set,b=(await aXt()).newRuntime();try{e.memoryLimitBytes!==void 0&&b.setMemoryLimit(e.memoryLimitBytes),e.maxStackSizeBytes!==void 0&&b.setMaxStackSize(e.maxStackSizeBytes),b.setInterruptHandler(eXt(l));let A=b.newContext();try{let L=iAn(A,d);A.setProp(A.global,"__executor_log",L),L.dispose();let V=oAn(A,i,h);A.setProp(A.global,"__executor_invokeTool",V),V.dispose();let j=A.evalCode(rAn(r),YDn);if(j.error){let X=A.dump(j.error);return j.error.dispose(),{result:null,error:OIe(X,l,s),logs:d}}A.setProp(A.global,"__executor_result",j.value),j.value.dispose();let ie=A.evalCode("(function(p){ var s = { v: void 0, e: void 0, settled: false }; var formatError = function(e){ if (e && typeof e === 'object') { var message = typeof e.message === 'string' ? e.message : ''; var stack = typeof e.stack === 'string' ? e.stack : ''; if (message && stack) { return stack.indexOf(message) === -1 ? message + '\\n' + stack : stack; } if (message) return message; if (stack) return stack; } return String(e); }; p.then(function(v){ s.v = v; s.settled = true; }, function(e){ s.e = formatError(e); s.settled = true; }); return s; })(__executor_result)");if(ie.error){let X=A.dump(ie.error);return ie.error.dispose(),{result:null,error:OIe(X,l,s),logs:d}}let te=ie.value;try{await sAn(A,b,h,l,s);let X=nAn(A,te);return X.settled?typeof X.error<"u"?{result:null,error:OIe(X.error,l,s),logs:d}:{result:X.value,logs:d}:{result:null,error:Nfe(s),logs:d}}finally{te.dispose()}}finally{for(let L of h)L.alive&&L.dispose();h.clear(),A.dispose()}}catch(A){return{result:null,error:OIe(A,l,s),logs:d}}finally{b.dispose()}},lAn=(e,r,i)=>FIe.tryPromise({try:()=>cAn(e,r,i),catch:RIe}),cXt=(e={})=>({execute:(r,i)=>lAn(e,r,i)});import{fork as uAn}from"node:child_process";import{fileURLToPath as pAn}from"node:url";import*as LIe from"effect/Effect";var _An=5*6e4,dAn="evaluation",fAn=pAn(new URL("./sandbox-worker.mjs",import.meta.url)),lXt=e=>e instanceof Error?e:new Error(String(e)),mAn=()=>uAn(fAn,[],{silent:!0}),hAn=(e,r,i)=>{let s=i.trim().length>0?` +${i.trim()}`:"";return r?new Error(`SES worker exited from signal ${r}${s}`):typeof e=="number"?new Error(`SES worker exited with code ${e}${s}`):new Error(`SES worker exited before returning a result${s}`)},ast=(e,r)=>{if(typeof e.send!="function")throw new Error("SES worker IPC channel is unavailable");e.send(r)},gAn=async(e,r,i)=>{let s=mAn(),l=e.timeoutMs??_An,d=[];return s.stderr&&s.stderr.on("data",h=>{d.push(h.toString())}),new Promise((h,S)=>{let b=!1,A,L=()=>{A&&(clearTimeout(A),A=void 0),s.off("error",ie),s.off("exit",te),s.off("message",X),s.killed||s.kill()},V=Re=>{b||(b=!0,L(),Re())},j=()=>{A&&clearTimeout(A),A=setTimeout(()=>{V(()=>{S(new Error(`Execution timed out after ${l}ms`))})},l)},ie=Re=>{V(()=>{S(Re)})},te=(Re,Je)=>{V(()=>{S(hAn(Re,Je,d.join("")))})},X=Re=>{if(Re.type==="ready"){j(),ast(s,{type:"evaluate",id:dAn,code:r,allowFetch:e.allowFetch===!0});return}if(Re.type==="tool-call"){j(),LIe.runPromise(i.invoke({path:Re.path,args:Re.args})).then(Je=>{b||(j(),ast(s,{type:"tool-response",callId:Re.callId,value:Je}))}).catch(Je=>{if(b)return;j();let pt=lXt(Je);ast(s,{type:"tool-response",callId:Re.callId,error:pt.stack??pt.message})});return}Re.type==="result"&&V(()=>{if(Re.error){h({result:null,error:Re.error,logs:Re.logs??[]});return}h({result:Re.value,logs:Re.logs??[]})})};s.on("error",ie),s.on("exit",te),s.on("message",X),j()})},yAn=(e,r,i)=>LIe.tryPromise({try:()=>gAn(e,r,i),catch:lXt}),uXt=(e={})=>({execute:(r,i)=>yAn(e,r,i)});var vAn="quickjs",sst=e=>e?.runtime??vAn,cst=e=>{switch(e){case"deno":return FZt();case"ses":return uXt();default:return cXt()}};import*as JIe from"effect/Effect";import*as $8 from"effect/Effect";import*as dXt from"effect/Cause";import*as fXt from"effect/Exit";import*as dst from"effect/Schema";import*as pXt from"effect/JSONSchema";var Ffe=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},SAn=e=>Array.isArray(e)?e.filter(r=>typeof r=="string"):[],Ofe=(e,r)=>e.length<=r?e:`${e.slice(0,Math.max(0,r-4))} ...`,bAn=(e,r,i)=>`${e}${i?"?":""}: ${MIe(r)}`,lst=(e,r)=>{let i=Array.isArray(r[e])?r[e].map(Ffe):[];if(i.length===0)return null;let s=i.map(l=>MIe(l)).filter(l=>l.length>0);return s.length===0?null:s.join(e==="allOf"?" & ":" | ")},MIe=(e,r=220)=>{let i=Ffe(e);if(typeof i.$ref=="string"){let d=i.$ref.trim();return d.length>0?d.split("/").at(-1)??d:"unknown"}if("const"in i)return JSON.stringify(i.const);let s=Array.isArray(i.enum)?i.enum:[];if(s.length>0)return Ofe(s.map(d=>JSON.stringify(d)).join(" | "),r);let l=lst("oneOf",i)??lst("anyOf",i)??lst("allOf",i);if(l)return Ofe(l,r);if(i.type==="array"){let d=i.items?MIe(i.items,r):"unknown";return Ofe(`${d}[]`,r)}if(i.type==="object"||i.properties){let d=Ffe(i.properties),h=Object.keys(d);if(h.length===0)return i.additionalProperties?"Record":"object";let S=new Set(SAn(i.required)),b=h.map(A=>bAn(A,Ffe(d[A]),!S.has(A)));return Ofe(`{ ${b.join(", ")} }`,r)}return Array.isArray(i.type)?Ofe(i.type.join(" | "),r):typeof i.type=="string"?i.type:"unknown"},jIe=(e,r)=>{let i=BIe(e);return i?MIe(i,r):"unknown"},BIe=e=>{try{return Ffe(pXt.make(e))}catch{return null}};import*as B8 from"effect/Schema";var xAn=B8.Union(B8.Struct({authKind:B8.Literal("none")}),B8.Struct({authKind:B8.Literal("bearer"),tokenRef:s0})),_Xt=B8.decodeUnknownSync(xAn),ust=()=>({authKind:"none"}),pst=e=>({authKind:"bearer",tokenRef:e});var Rfe=async(e,r,i=null)=>{let s=b_e(r),l=await $8.runPromiseExit(SB(e.pipe($8.provide(s)),i));if(fXt.isSuccess(l))return l.value;throw dXt.squash(l.cause)},TAn=dst.standardSchemaV1(SIe),EAn=dst.standardSchemaV1(XN),kAn=jIe(SIe,320),CAn=jIe(XN,260),DAn=BIe(SIe)??{},AAn=BIe(XN)??{},wAn=["Source add input shapes:",...xat.flatMap(e=>e.executorAddInputSchema&&e.executorAddInputSignatureWidth!==null&&e.executorAddHelpText?[`- ${e.displayName}: ${jIe(e.executorAddInputSchema,e.executorAddInputSignatureWidth)}`,...e.executorAddHelpText.map(r=>` ${r}`)]:[])," executor handles the credential setup for you."],IAn=()=>["Add an MCP, OpenAPI, or GraphQL source to the current scope.",...wAn].join(` +`),PAn=e=>{if(typeof e!="string"||e.trim().length===0)throw new Error("Missing execution run id for executor.sources.add");return Hw.make(e)},$Ie=e=>e,_st=e=>JSON.parse(JSON.stringify(e)),NAn=e=>e.kind===void 0||t$(e.kind),OAn=e=>typeof e.kind=="string",FAn=e=>NAn(e.args)?{kind:e.args.kind,endpoint:e.args.endpoint,name:e.args.name??null,namespace:e.args.namespace??null,transport:e.args.transport??null,queryParams:e.args.queryParams??null,headers:e.args.headers??null,command:e.args.command??null,args:e.args.args??null,env:e.args.env??null,cwd:e.args.cwd??null,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId}:"service"in e.args?{...e.args,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId}:"specUrl"in e.args?{...e.args,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId}:{...e.args,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId},RAn=e=>new URL(`/v1/workspaces/${encodeURIComponent(e.scopeId)}/sources/${encodeURIComponent(e.sourceId)}/credentials?interactionId=${encodeURIComponent(`${e.executionId}:${e.interactionId}`)}`,e.baseUrl).toString(),LAn=e=>$8.gen(function*(){if(!e.onElicitation)return yield*_a("sources/executor-tools","executor.sources.add requires an elicitation-capable host");if(e.localServerBaseUrl===null)return yield*_a("sources/executor-tools","executor.sources.add requires a local server base URL for credential capture");let r=yield*e.onElicitation({interactionId:e.interactionId,path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.metadata,context:e.invocation,elicitation:{mode:"url",message:e.credentialSlot==="import"?`Open the secure credential page to configure import access for ${e.source.name}`:`Open the secure credential page to connect ${e.source.name}`,url:RAn({baseUrl:e.localServerBaseUrl,scopeId:e.args.scopeId,sourceId:e.args.sourceId,executionId:e.executionId,interactionId:e.interactionId}),elicitationId:e.interactionId}}).pipe($8.mapError(s=>s instanceof Error?s:new Error(String(s))));if(r.action!=="accept")return yield*_a("sources/executor-tools",`Source credential setup was not completed for ${e.source.name}`);let i=yield*$8.try({try:()=>_Xt(r.content),catch:()=>new Error("Credential capture did not return a valid source auth choice for executor.sources.add")});return i.authKind==="none"?{kind:"none"}:{kind:"bearer",tokenRef:i.tokenRef}}),mXt=e=>({"executor.sources.add":Bw({tool:{description:IAn(),inputSchema:TAn,outputSchema:EAn,execute:async(r,i)=>{let s=PAn(i?.invocation?.runId),l=L2.make(`executor.sources.add:${crypto.randomUUID()}`),d=FAn({args:r,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:s,interactionId:l}),h=await Rfe(e.sourceAuthService.addExecutorSource(d,i?.onElicitation?{mcpDiscoveryElicitation:{onElicitation:i.onElicitation,path:i.path??$Ie("executor.sources.add"),sourceKey:i.sourceKey,args:r,metadata:i.metadata,invocation:i.invocation}}:void 0),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);if(h.kind==="connected")return _st(h.source);if(h.kind==="credential_required"){let A=h;if(!OAn(d))throw new Error("Credential-managed source setup expected a named adapter kind");let L=d;for(;A.kind==="credential_required";){let V=await Rfe(LAn({args:{...L,scopeId:e.scopeId,sourceId:A.source.id},credentialSlot:A.credentialSlot,source:A.source,executionId:s,interactionId:l,path:i?.path??$Ie("executor.sources.add"),sourceKey:i?.sourceKey??"executor",localServerBaseUrl:e.sourceAuthService.getLocalServerBaseUrl(),metadata:i?.metadata,invocation:i?.invocation,onElicitation:i?.onElicitation}),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);L=A.credentialSlot==="import"&&L.importAuthPolicy==="separate"?{...L,importAuth:V}:{...L,auth:V};let j=await Rfe(e.sourceAuthService.addExecutorSource(L,i?.onElicitation?{mcpDiscoveryElicitation:{onElicitation:i.onElicitation,path:i.path??$Ie("executor.sources.add"),sourceKey:i.sourceKey,args:r,metadata:i.metadata,invocation:i.invocation}}:void 0),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);if(j.kind==="connected")return _st(j.source);if(j.kind==="credential_required"){A=j;continue}h=j;break}A.kind==="credential_required"&&(h=A)}if(!i?.onElicitation)throw new Error("executor.sources.add requires an elicitation-capable host");if(h.kind!=="oauth_required")throw new Error(`Source add did not reach OAuth continuation for ${h.source.id}`);if((await Rfe(i.onElicitation({interactionId:l,path:i.path??$Ie("executor.sources.add"),sourceKey:i.sourceKey,args:d,metadata:i.metadata,context:i.invocation,elicitation:{mode:"url",message:`Open the provider sign-in page to connect ${h.source.name}`,url:h.authorizationUrl,elicitationId:h.sessionId}}),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope)).action!=="accept")throw new Error(`Source add was not completed for ${h.source.id}`);let b=await Rfe(e.sourceAuthService.getSourceById({scopeId:e.scopeId,sourceId:h.source.id,actorScopeId:e.actorScopeId}),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);return _st(b)}},metadata:{contract:{inputTypePreview:kAn,outputTypePreview:CAn,inputSchema:DAn,outputSchema:AAn},sourceKey:"executor",interaction:"auto"}})});import*as hXt from"effect/Effect";var gXt=e=>({toolPath:e.tool.path,sourceId:e.tool.source.id,sourceName:e.tool.source.name,sourceKind:e.tool.source.kind,sourceNamespace:e.tool.source.namespace??null,operationKind:e.tool.capability.semantics.effect==="read"?"read":e.tool.capability.semantics.effect==="write"?"write":e.tool.capability.semantics.effect==="delete"?"delete":e.tool.capability.semantics.effect==="action"?"execute":"unknown",interaction:e.tool.descriptor.interaction??"auto",approvalLabel:e.tool.capability.surface.title??e.tool.executable.display?.title??null}),yXt=e=>{let r=_9(e.tool.executable.adapterKey);return r.key!==e.tool.source.kind?hXt.fail(_a("execution/ir-execution",`Executable ${e.tool.executable.id} expects adapter ${r.key}, but source ${e.tool.source.id} is ${e.tool.source.kind}`)):r.invoke({source:e.tool.source,capability:e.tool.capability,executable:e.tool.executable,descriptor:e.tool.descriptor,catalog:e.tool.projectedCatalog,args:e.args,auth:e.auth,onElicitation:e.onElicitation,context:e.context})};import*as NXt from"effect/Either";import*as yW from"effect/Effect";import*as c4 from"effect/Schema";var MAn=(e,r)=>{let i=e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*");return new RegExp(`^${i}$`).test(r)},vXt=e=>e.priority+Math.max(1,e.resourcePattern.replace(/\*/g,"").length),jAn=e=>e.interaction==="auto"?{kind:"allow",reason:`${e.approvalLabel??e.toolPath} defaults to allow`,matchedPolicyId:null}:{kind:"require_interaction",reason:`${e.approvalLabel??e.toolPath} defaults to approval`,matchedPolicyId:null},BAn=e=>e.effect==="deny"?{kind:"deny",reason:`Denied by policy ${e.id}`,matchedPolicyId:e.id}:e.approvalMode==="required"?{kind:"require_interaction",reason:`Approval required by policy ${e.id}`,matchedPolicyId:e.id}:{kind:"allow",reason:`Allowed by policy ${e.id}`,matchedPolicyId:e.id},SXt=e=>{let i=e.policies.filter(s=>s.enabled&&s.scopeId===e.context.scopeId&&MAn(s.resourcePattern,e.descriptor.toolPath)).sort((s,l)=>vXt(l)-vXt(s)||s.updatedAt-l.updatedAt)[0];return i?BAn(i):jAn(e.descriptor)};import{createHash as zAn}from"node:crypto";import*as _x from"effect/Effect";import*as fst from"effect/Effect";var $An=e=>{if(e==null)return null;let r=e.trim();return r.length>0?r:null},bXt=(e,r)=>{let i=$An(e.resourcePattern)??`${e.effect}-${e.approvalMode}`,s=i,l=2;for(;r.has(s);)s=`${i}-${l}`,l+=1;return r.add(s),s},UAn=e=>fst.gen(function*(){let r=yield*lx,i=yield*r.load(),s=new Set(Object.keys(e.loadedConfig.config?.sources??{})),l=new Set(Object.keys(e.loadedConfig.config?.policies??{})),d={...i,sources:Object.fromEntries(Object.entries(i.sources).filter(([h])=>s.has(h))),policies:Object.fromEntries(Object.entries(i.policies).filter(([h])=>l.has(h)))};return JSON.stringify(d)===JSON.stringify(i)?i:(yield*r.write({state:d}),d)}),xXt=e=>fst.gen(function*(){return yield*UAn({loadedConfig:e.loadedConfig}),e.loadedConfig.config});import{HttpApiSchema as Lfe}from"@effect/platform";import*as W0 from"effect/Schema";var Yee=class extends W0.TaggedError()("ControlPlaneBadRequestError",{operation:W0.String,message:W0.String,details:W0.String},Lfe.annotations({status:400})){},TXt=class extends W0.TaggedError()("ControlPlaneUnauthorizedError",{operation:W0.String,message:W0.String,details:W0.String},Lfe.annotations({status:401})){},EXt=class extends W0.TaggedError()("ControlPlaneForbiddenError",{operation:W0.String,message:W0.String,details:W0.String},Lfe.annotations({status:403})){},g9=class extends W0.TaggedError()("ControlPlaneNotFoundError",{operation:W0.String,message:W0.String,details:W0.String},Lfe.annotations({status:404})){},a$=class extends W0.TaggedError()("ControlPlaneStorageError",{operation:W0.String,message:W0.String,details:W0.String},Lfe.annotations({status:500})){};import*as kXt from"effect/Effect";var sg=e=>{let r={operation:e,child:i=>sg(`${e}.${i}`),badRequest:(i,s)=>new Yee({operation:e,message:i,details:s}),notFound:(i,s)=>new g9({operation:e,message:i,details:s}),storage:i=>new a$({operation:e,message:i.message,details:i.message}),unknownStorage:(i,s)=>r.storage(i instanceof Error?new Error(`${i.message}: ${s}`):new Error(s)),mapStorage:i=>i.pipe(kXt.mapError(s=>r.storage(s)))};return r},Mfe=e=>typeof e=="string"?sg(e):e;var H2={list:sg("policies.list"),create:sg("policies.create"),get:sg("policies.get"),update:sg("policies.update"),remove:sg("policies.remove")},mst=e=>JSON.parse(JSON.stringify(e)),UIe=e=>e.scopeRoot?.trim()||e.scopeId,CXt=e=>uY.make(`pol_local_${zAn("sha256").update(`${e.scopeStableKey}:${e.key}`).digest("hex").slice(0,16)}`),hst=e=>({id:e.state?.id??CXt({scopeStableKey:e.scopeStableKey,key:e.key}),key:e.key,scopeId:e.scopeId,resourcePattern:e.policyConfig.match.trim(),effect:e.policyConfig.action,approvalMode:e.policyConfig.approval==="manual"?"required":"auto",priority:e.policyConfig.priority??0,enabled:e.policyConfig.enabled??!0,createdAt:e.state?.createdAt??Date.now(),updatedAt:e.state?.updatedAt??Date.now()}),gW=e=>_x.gen(function*(){let r=yield*fee(e),i=yield*OD,s=yield*lx,l=yield*i.load(),d=yield*s.load(),h=Object.entries(l.config?.policies??{}).map(([S,b])=>hst({scopeId:e,scopeStableKey:UIe({scopeId:e,scopeRoot:r.scope.scopeRoot}),key:S,policyConfig:b,state:d.policies[S]}));return{runtimeLocalScope:r,loadedConfig:l,scopeState:d,policies:h}}),gst=e=>_x.all([e.scopeConfigStore.writeProject({config:e.projectConfig}),e.scopeStateStore.write({state:e.scopeState})],{discard:!0}).pipe(_x.mapError(r=>e.operation.unknownStorage(r,"Failed writing local scope policy files"))),jfe=(e,r)=>fee(r).pipe(_x.mapError(i=>e.notFound("Workspace not found",i instanceof Error?i.message:String(i)))),DXt=e=>_x.gen(function*(){return yield*jfe(H2.list,e),(yield*gW(e).pipe(_x.mapError(i=>H2.list.unknownStorage(i,"Failed loading local scope policies")))).policies}),AXt=e=>_x.gen(function*(){let r=yield*jfe(H2.create,e.scopeId),i=yield*OD,s=yield*lx,l=yield*gW(e.scopeId).pipe(_x.mapError(V=>H2.create.unknownStorage(V,"Failed loading local scope policies"))),d=Date.now(),h=mst(l.loadedConfig.projectConfig??{}),S={...h.policies},b=bXt({resourcePattern:e.payload.resourcePattern??"*",effect:e.payload.effect??"allow",approvalMode:e.payload.approvalMode??"auto"},new Set(Object.keys(S)));S[b]={match:e.payload.resourcePattern??"*",action:e.payload.effect??"allow",approval:(e.payload.approvalMode??"auto")==="required"?"manual":"auto",...e.payload.enabled===!1?{enabled:!1}:{},...(e.payload.priority??0)!==0?{priority:e.payload.priority??0}:{}};let A=l.scopeState.policies[b],L={...l.scopeState,policies:{...l.scopeState.policies,[b]:{id:A?.id??CXt({scopeStableKey:UIe({scopeId:e.scopeId,scopeRoot:r.scope.scopeRoot}),key:b}),createdAt:A?.createdAt??d,updatedAt:d}}};return yield*gst({operation:H2.create,scopeConfigStore:i,scopeStateStore:s,projectConfig:{...h,policies:S},scopeState:L}),hst({scopeId:e.scopeId,scopeStableKey:UIe({scopeId:e.scopeId,scopeRoot:r.scope.scopeRoot}),key:b,policyConfig:S[b],state:L.policies[b]})}),wXt=e=>_x.gen(function*(){yield*jfe(H2.get,e.scopeId);let i=(yield*gW(e.scopeId).pipe(_x.mapError(s=>H2.get.unknownStorage(s,"Failed loading local scope policies")))).policies.find(s=>s.id===e.policyId)??null;return i===null?yield*H2.get.notFound("Policy not found",`scopeId=${e.scopeId} policyId=${e.policyId}`):i}),IXt=e=>_x.gen(function*(){let r=yield*jfe(H2.update,e.scopeId),i=yield*OD,s=yield*lx,l=yield*gW(e.scopeId).pipe(_x.mapError(j=>H2.update.unknownStorage(j,"Failed loading local scope policies"))),d=l.policies.find(j=>j.id===e.policyId)??null;if(d===null)return yield*H2.update.notFound("Policy not found",`scopeId=${e.scopeId} policyId=${e.policyId}`);let h=mst(l.loadedConfig.projectConfig??{}),S={...h.policies},b=S[d.key];S[d.key]={...b,...e.payload.resourcePattern!==void 0?{match:e.payload.resourcePattern}:{},...e.payload.effect!==void 0?{action:e.payload.effect}:{},...e.payload.approvalMode!==void 0?{approval:e.payload.approvalMode==="required"?"manual":"auto"}:{},...e.payload.enabled!==void 0?{enabled:e.payload.enabled}:{},...e.payload.priority!==void 0?{priority:e.payload.priority}:{}};let A=Date.now(),L=l.scopeState.policies[d.key],V={...l.scopeState,policies:{...l.scopeState.policies,[d.key]:{id:d.id,createdAt:L?.createdAt??d.createdAt,updatedAt:A}}};return yield*gst({operation:H2.update,scopeConfigStore:i,scopeStateStore:s,projectConfig:{...h,policies:S},scopeState:V}),hst({scopeId:e.scopeId,scopeStableKey:UIe({scopeId:e.scopeId,scopeRoot:r.scope.scopeRoot}),key:d.key,policyConfig:S[d.key],state:V.policies[d.key]})}),PXt=e=>_x.gen(function*(){let r=yield*jfe(H2.remove,e.scopeId),i=yield*OD,s=yield*lx,l=yield*gW(e.scopeId).pipe(_x.mapError(L=>H2.remove.unknownStorage(L,"Failed loading local scope policies"))),d=l.policies.find(L=>L.id===e.policyId)??null;if(d===null)return{removed:!1};let h=mst(l.loadedConfig.projectConfig??{}),S={...h.policies};delete S[d.key];let{[d.key]:b,...A}=l.scopeState.policies;return yield*gst({operation:H2.remove,scopeConfigStore:i,scopeStateStore:s,projectConfig:{...h,policies:S},scopeState:{...l.scopeState,policies:A}}),{removed:!0}});var qAn=e=>e,JAn={type:"object",properties:{approve:{type:"boolean",description:"Whether to approve this tool execution"}},required:["approve"],additionalProperties:!1},VAn=e=>e.approvalLabel?`Allow ${e.approvalLabel}?`:`Allow tool call: ${e.toolPath}?`,WAn=c4.Struct({params:c4.optional(c4.Record({key:c4.String,value:c4.String}))}),GAn=c4.decodeUnknownEither(WAn),OXt=e=>{let r=GAn(e);if(!(NXt.isLeft(r)||r.right.params===void 0))return{params:r.right.params}},yst=e=>yW.fail(new Error(e)),FXt=e=>yW.gen(function*(){let r=gXt({tool:e.tool}),i=yield*gW(e.scopeId).pipe(yW.mapError(h=>h instanceof Error?h:new Error(String(h)))),s=SXt({descriptor:r,args:e.args,policies:i.policies,context:{scopeId:e.scopeId}});if(s.kind==="allow")return;if(s.kind==="deny")return yield*yst(s.reason);if(!e.onElicitation)return yield*yst(`Approval required for ${r.toolPath}, but no elicitation-capable host is available`);let l=typeof e.context?.callId=="string"&&e.context.callId.length>0?`tool_execution_gate:${e.context.callId}`:`tool_execution_gate:${crypto.randomUUID()}`;if((yield*e.onElicitation({interactionId:l,path:qAn(r.toolPath),sourceKey:e.tool.source.id,args:e.args,context:{...e.context,interactionPurpose:"tool_execution_gate",interactionReason:s.reason,invocationDescriptor:{operationKind:r.operationKind,interaction:r.interaction,approvalLabel:r.approvalLabel,sourceId:e.tool.source.id,sourceName:e.tool.source.name}},elicitation:{mode:"form",message:VAn(r),requestedSchema:JAn}}).pipe(yW.mapError(h=>h instanceof Error?h:new Error(String(h))))).action!=="accept")return yield*yst(`Tool invocation not approved for ${r.toolPath}`)});var s$=(e,r)=>SB(e,r);import*as ab from"effect/Effect";var zIe=e=>e.trim().toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),HAn=new Set(["a","an","the","am","as","for","from","get","i","in","is","list","me","my","of","on","or","signed","to","who"]),vst=e=>e.length>3&&e.endsWith("s")?e.slice(0,-1):e,KAn=(e,r)=>e===r||vst(e)===vst(r),qIe=(e,r)=>e.some(i=>KAn(i,r)),ete=(e,r)=>{if(e.includes(r))return!0;let i=vst(r);return i!==r&&e.includes(i)},RXt=e=>HAn.has(e)?.25:1,QAn=e=>{let[r,i]=e.split(".");return i?`${r}.${i}`:r},ZAn=e=>[...e].sort((r,i)=>r.namespace.localeCompare(i.namespace)),XAn=e=>ab.gen(function*(){let r=yield*e.sourceCatalogStore.loadWorkspaceSourceCatalogs({scopeId:e.scopeId,actorScopeId:e.actorScopeId}),i=new Map;for(let s of r)if(!(!s.source.enabled||s.source.status!=="connected"))for(let l of Object.values(s.projected.toolDescriptors)){let d=QAn(l.toolPath.join(".")),h=i.get(d);i.set(d,{namespace:d,toolCount:(h?.toolCount??0)+1})}return ZAn(i.values())}),YAn=e=>ab.map(e.sourceCatalogStore.loadWorkspaceSourceCatalogToolIndex({scopeId:e.scopeId,actorScopeId:e.actorScopeId}),r=>r.filter(i=>i.source.enabled&&i.source.status==="connected")),Sst=e=>e.sourceCatalogStore.loadWorkspaceSourceCatalogToolByPath({scopeId:e.scopeId,path:e.path,actorScopeId:e.actorScopeId,includeSchemas:e.includeSchemas}).pipe(ab.map(r=>r&&r.source.enabled&&r.source.status==="connected"?r:null)),ewn=(e,r)=>{let i=r.path.toLowerCase(),s=r.searchNamespace.toLowerCase(),l=r.path.split(".").at(-1)?.toLowerCase()??"",d=r.capability.surface.title?.toLowerCase()??"",h=r.capability.surface.summary?.toLowerCase()??r.capability.surface.description?.toLowerCase()??"",S=[r.executable.display?.pathTemplate,r.executable.display?.operationId,r.executable.display?.leaf].filter(Je=>typeof Je=="string"&&Je.length>0).join(" ").toLowerCase(),b=zIe(`${r.path} ${l}`),A=zIe(r.searchNamespace),L=zIe(r.capability.surface.title??""),V=zIe(S),j=0,ie=0,te=0,X=0;for(let Je of e){let pt=RXt(Je);if(qIe(b,Je)){j+=12*pt,ie+=1,X+=1;continue}if(qIe(A,Je)){j+=11*pt,ie+=1,te+=1;continue}if(qIe(L,Je)){j+=9*pt,ie+=1;continue}if(qIe(V,Je)){j+=8*pt,ie+=1;continue}if(ete(i,Je)||ete(l,Je)){j+=6*pt,ie+=1,X+=1;continue}if(ete(s,Je)){j+=5*pt,ie+=1,te+=1;continue}if(ete(d,Je)||ete(S,Je)){j+=4*pt,ie+=1;continue}ete(h,Je)&&(j+=.5*pt)}let Re=e.filter(Je=>RXt(Je)>=1);if(Re.length>=2)for(let Je=0;Jei.includes(tr)||S.includes(tr))&&(j+=10)}return te>0&&X>0&&(j+=8),ie===0&&j>0&&(j*=.25),j},LXt=e=>{let r=S_e({scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore}),i=d=>d.pipe(ab.provide(r)),l=ab.runSync(ab.cached(i(ab.gen(function*(){let d=yield*YAn({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore});return EJe({entries:d.map(h=>_Zt({tool:h,score:S=>ewn(S,h)}))})}))));return{listNamespaces:({limit:d})=>s$(i(ab.map(XAn({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore}),h=>h.slice(0,d))),e.runtimeLocalScope),listTools:({namespace:d,query:h,limit:S})=>s$(ab.flatMap(l,b=>b.listTools({...d!==void 0?{namespace:d}:{},...h!==void 0?{query:h}:{},limit:S,includeSchemas:!1})),e.runtimeLocalScope),getToolByPath:({path:d,includeSchemas:h})=>s$(h?ab.map(i(Sst({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore,path:d,includeSchemas:!0})),S=>S?.descriptor??null):ab.flatMap(l,S=>S.getToolByPath({path:d,includeSchemas:!1})),e.runtimeLocalScope),searchTools:({query:d,namespace:h,limit:S})=>s$(ab.flatMap(l,b=>b.searchTools({query:d,...h!==void 0?{namespace:h}:{},limit:S})),e.runtimeLocalScope)}};var MXt=e=>{let r=S_e({scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore}),i=ie=>ie.pipe(JIe.provide(r)),s=mXt({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceAuthService:e.sourceAuthService,installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,runtimeLocalScope:e.runtimeLocalScope}),l=e.createInternalToolMap?.({scopeId:e.scopeId,actorScopeId:e.actorScopeId,executorStateStore:e.executorStateStore,sourceStore:e.sourceStore,sourceCatalogSyncService:e.sourceCatalogSyncService,sourceAuthService:e.sourceAuthService,installationStore:e.installationStore,instanceConfigResolver:e.instanceConfigResolver,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,updateSecretMaterial:e.updateSecretMaterial,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,runtimeLocalScope:e.runtimeLocalScope})??{},d=LXt({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,runtimeLocalScope:e.runtimeLocalScope}),h=null,S=t4t({getCatalog:()=>{if(h===null)throw new Error("Workspace tool catalog has not been initialized");return h}}),b=r4t([S,s,l,e.localToolRuntime.tools]),A=Z7({tools:b});h=Y6t({catalogs:[A,d]});let L=new Set(Object.keys(b)),V=Q7({tools:b,onElicitation:e.onElicitation}),j=ie=>s$(i(JIe.gen(function*(){let te=yield*Sst({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore,path:ie.path,includeSchemas:!1});if(!te)return yield*_a("execution/scope/tool-invoker",`Unknown tool path: ${ie.path}`);yield*FXt({scopeId:e.scopeId,tool:te,args:ie.args,context:ie.context,onElicitation:e.onElicitation});let X=yield*e.sourceAuthMaterialService.resolve({source:te.source,actorScopeId:e.actorScopeId,context:OXt(ie.context)});return yield*yXt({scopeId:e.scopeId,actorScopeId:e.actorScopeId,tool:te,auth:X,args:ie.args,onElicitation:e.onElicitation,context:ie.context})})),e.runtimeLocalScope);return{catalog:h,toolInvoker:{invoke:({path:ie,args:te,context:X})=>s$(L.has(ie)?V.invoke({path:ie,args:te,context:X}):j({path:ie,args:te,context:X}),e.runtimeLocalScope)}}};import*as VXt from"effect/Context";import*as U8 from"effect/Either";import*as ga from"effect/Effect";import*as WXt from"effect/Layer";import*as G0 from"effect/Option";import*as WIe from"effect/ParseResult";import*as ef from"effect/Schema";import{createServer as twn}from"node:http";import*as bst from"effect/Effect";var rwn=10*6e4,jXt=e=>new Promise((r,i)=>{e.close(s=>{if(s){i(s);return}r()})}),xst=e=>bst.tryPromise({try:()=>new Promise((r,i)=>{let s=e.publicHost??"127.0.0.1",l=e.listenHost??"127.0.0.1",d=new URL(e.completionUrl),h=twn((A,L)=>{try{let V=new URL(A.url??"/",`http://${s}`),j=new URL(d.toString());for(let[ie,te]of V.searchParams.entries())j.searchParams.set(ie,te);L.statusCode=302,L.setHeader("cache-control","no-store"),L.setHeader("location",j.toString()),L.end()}catch(V){let j=V instanceof Error?V:new Error(String(V));L.statusCode=500,L.setHeader("content-type","text/plain; charset=utf-8"),L.end(`OAuth redirect failed: ${j.message}`)}finally{jXt(h).catch(()=>{})}}),S=null,b=()=>(S!==null&&(clearTimeout(S),S=null),jXt(h).catch(()=>{}));h.once("error",A=>{i(A instanceof Error?A:new Error(String(A)))}),h.listen(0,l,()=>{let A=h.address();if(!A||typeof A=="string"){i(new Error("Failed to resolve OAuth loopback port"));return}S=setTimeout(()=>{b()},e.timeoutMs??rwn),typeof S.unref=="function"&&S.unref(),r({redirectUri:`http://${s}:${A.port}`,close:bst.tryPromise({try:b,catch:L=>L instanceof Error?L:new Error(String(L))})})})}),catch:r=>r instanceof Error?r:new Error(String(r))});var Ru=e=>{if(e==null)return null;let r=e.trim();return r.length>0?r:null},Cst=e=>new URL(e).hostname,Dst=e=>{let r=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"");return r.length>0?r:"source"},nwn=e=>{let r=e.split(/[\\/]+/).map(i=>i.trim()).filter(i=>i.length>0);return r[r.length-1]??e},iwn=e=>{if(!e||e.length===0)return null;let r=e.map(i=>i.trim()).filter(i=>i.length>0);return r.length>0?r:null},own=e=>{let r=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");return r.length>0?r:"mcp"},awn=e=>{let r=Ru(e.name)??Ru(e.endpoint)??Ru(e.command)??"mcp";return`stdio://local/${own(r)}`},BXt=e=>{if(JJ({transport:e.transport??void 0,command:e.command??void 0}))return y9(Ru(e.endpoint)??awn(e));let r=Ru(e.endpoint);if(r===null)throw new Error("Endpoint is required.");return y9(r)},GXt=e=>new URL(`/v1/workspaces/${encodeURIComponent(e.scopeId)}/sources/${encodeURIComponent(e.sourceId)}/credentials/oauth/complete`,e.baseUrl).toString(),swn=e=>new URL("/v1/oauth/source-auth/callback",e.baseUrl).toString(),cwn=e=>new URL(`/v1/workspaces/${encodeURIComponent(e.scopeId)}/oauth/provider/callback`,e.baseUrl).toString();function y9(e){return new URL(e.trim()).toString()}var HXt=(e,r)=>`https://www.googleapis.com/discovery/v1/apis/${encodeURIComponent(e)}/${encodeURIComponent(r)}/rest`,KXt=(e,r)=>`Google ${e.split(/[^a-zA-Z0-9]+/).filter(Boolean).map(s=>s[0]?.toUpperCase()+s.slice(1)).join(" ")||e} ${r}`,QXt=e=>`google.${e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"")}`,ZXt=ef.Struct({kind:ef.Literal("source_oauth"),nonce:ef.String,displayName:ef.NullOr(ef.String)}),lwn=ef.encodeSync(ef.parseJson(ZXt)),uwn=ef.decodeUnknownOption(ef.parseJson(ZXt)),pwn=e=>lwn({kind:"source_oauth",nonce:crypto.randomUUID(),displayName:Ru(e.displayName)}),_wn=e=>{let r=uwn(e);return G0.isSome(r)?Ru(r.value.displayName):null},$Xt=e=>{let r=Ru(e.displayName)??Cst(e.endpoint);return/\boauth\b/i.test(r)?r:`${r} OAuth`},dwn=(e,r)=>ga.gen(function*(){if(!t$(e.kind))return yield*_a("sources/source-auth-service",`Expected MCP source, received ${e.kind}`);let i=yield*e$(e),s=bj({endpoint:e.endpoint,transport:i.transport??void 0,queryParams:i.queryParams??void 0,headers:i.headers??void 0,command:i.command??void 0,args:i.args??void 0,env:i.env??void 0,cwd:i.cwd??void 0});return yield*KJ({connect:s,namespace:e.namespace??Dst(e.name),sourceKey:e.id,mcpDiscoveryElicitation:r})}),vW=e=>({status:e.status,errorText:e.errorText,completedAt:e.now,updatedAt:e.now,sessionDataJson:e.sessionDataJson}),Ast=e=>ef.encodeSync(nQe)(e),fwn=ef.decodeUnknownEither(nQe),VIe=e=>{if(e.providerKind!=="mcp_oauth")throw new Error(`Unsupported source auth provider for session ${e.id}`);let r=fwn(e.sessionDataJson);if(U8.isLeft(r))throw new Error(`Invalid source auth session data for ${e.id}: ${WIe.TreeFormatter.formatErrorSync(r.left)}`);return r.right},UXt=e=>{let r=VIe(e.session);return Ast({...r,...e.patch})},XXt=e=>ef.encodeSync(iQe)(e),mwn=ef.decodeUnknownEither(iQe),Est=e=>{if(e.providerKind!=="oauth2_pkce")throw new Error(`Unsupported source auth provider for session ${e.id}`);let r=mwn(e.sessionDataJson);if(U8.isLeft(r))throw new Error(`Invalid source auth session data for ${e.id}: ${WIe.TreeFormatter.formatErrorSync(r.left)}`);return r.right},hwn=e=>{let r=Est(e.session);return XXt({...r,...e.patch})},YXt=e=>ef.encodeSync(oQe)(e),gwn=ef.decodeUnknownEither(oQe),kst=e=>{if(e.providerKind!=="oauth2_provider_batch")throw new Error(`Unsupported source auth provider for session ${e.id}`);let r=gwn(e.sessionDataJson);if(U8.isLeft(r))throw new Error(`Invalid source auth session data for ${e.id}: ${WIe.TreeFormatter.formatErrorSync(r.left)}`);return r.right},ywn=e=>{let r=kst(e.session);return YXt({...r,...e.patch})},zXt=e=>ga.gen(function*(){if(e.session.executionId===null)return;let r=e.response.action==="accept"?{action:"accept"}:{action:"cancel",...e.response.reason?{content:{reason:e.response.reason}}:{}};if(!(yield*e.liveExecutionManager.resolveInteraction({executionId:e.session.executionId,response:r}))){let s=yield*e.executorState.executionInteractions.getPendingByExecutionId(e.session.executionId);G0.isSome(s)&&(yield*e.executorState.executionInteractions.update(s.value.id,{status:r.action==="cancel"?"cancelled":"resolved",responseJson:qXt(wfe(r)),responsePrivateJson:qXt(r),updatedAt:Date.now()}))}}),qXt=e=>e===void 0?null:JSON.stringify(e),nS=ga.fn("source.status.update")((e,r,i)=>ga.gen(function*(){let s=yield*e.loadSourceById({scopeId:r.scopeId,sourceId:r.id,actorScopeId:i.actorScopeId});return yield*e.persistSource({...s,status:i.status,lastError:i.lastError??null,auth:i.auth??s.auth,importAuth:i.importAuth??s.importAuth,updatedAt:Date.now()},{actorScopeId:i.actorScopeId})}).pipe(ga.withSpan("source.status.update",{attributes:{"executor.source.id":r.id,"executor.source.status":i.status}}))),eYt=e=>typeof e.kind=="string",vwn=e=>eYt(e)&&e.kind==="google_discovery",Swn=e=>eYt(e)&&"endpoint"in e&&_W(e.kind),bwn=e=>e.kind===void 0||t$(e.kind),Tst=e=>ga.gen(function*(){let r=Ru(e.rawValue);if(r!==null)return yield*e.storeSecretMaterial({purpose:"auth_material",value:r});let i=Ru(e.ref?.providerId),s=Ru(e.ref?.handle);return i===null||s===null?null:{providerId:i,handle:s}}),wst=e=>ga.gen(function*(){let r=e.existing;if(e.auth===void 0&&r&&_W(r.kind))return r.auth;let i=e.auth??{kind:"none"};if(i.kind==="none")return{kind:"none"};let s=Ru(i.headerName)??"Authorization",l=i.prefix??"Bearer ";if(i.kind==="bearer"){let S=Ru(i.token),b=i.tokenRef??null;if(S===null&&b===null&&r&&_W(r.kind)&&r.auth.kind==="bearer")return r.auth;let A=yield*Tst({rawValue:S,ref:b,storeSecretMaterial:e.storeSecretMaterial});return A===null?yield*_a("sources/source-auth-service","Bearer auth requires token or tokenRef"):{kind:"bearer",headerName:s,prefix:l,token:A}}if(Ru(i.accessToken)===null&&i.accessTokenRef==null&&Ru(i.refreshToken)===null&&i.refreshTokenRef==null&&r&&_W(r.kind)&&r.auth.kind==="oauth2")return r.auth;let d=yield*Tst({rawValue:i.accessToken,ref:i.accessTokenRef??null,storeSecretMaterial:e.storeSecretMaterial});if(d===null)return yield*_a("sources/source-auth-service","OAuth2 auth requires accessToken or accessTokenRef");let h=yield*Tst({rawValue:i.refreshToken,ref:i.refreshTokenRef??null,storeSecretMaterial:e.storeSecretMaterial});return{kind:"oauth2",headerName:s,prefix:l,accessToken:d,refreshToken:h}}),tYt=e=>ga.gen(function*(){let r=_W(e.sourceKind)?"reuse_runtime":"none",i=e.importAuthPolicy??e.existing?.importAuthPolicy??r;if(i==="none"||i==="reuse_runtime")return{importAuthPolicy:i,importAuth:{kind:"none"}};if(e.importAuth===void 0&&e.existing&&e.existing.importAuthPolicy==="separate")return{importAuthPolicy:i,importAuth:e.existing.importAuth};let s=yield*wst({existing:void 0,auth:e.importAuth??{kind:"none"},storeSecretMaterial:e.storeSecretMaterial});return{importAuthPolicy:i,importAuth:s}}),rYt=e=>!e.explicitAuthProvided&&e.auth.kind==="none"&&(e.existing?.auth.kind??"none")==="none",xwn=ef.decodeUnknownOption(lQe),nYt=ef.encodeSync(lQe),iYt=e=>{if(e.clientMetadataJson===null)return"app_callback";let r=xwn(e.clientMetadataJson);return G0.isNone(r)?"app_callback":r.value.redirectMode??"app_callback"},GIe=e=>e.clientSecretProviderId&&e.clientSecretHandle?{providerId:e.clientSecretProviderId,handle:e.clientSecretHandle}:null,Twn=e=>ga.gen(function*(){let r=l0(e.source),i=r.getOauth2SetupConfig?yield*r.getOauth2SetupConfig({source:e.source,slot:"runtime"}):null;if(i===null)return yield*_a("sources/source-auth-service",`Source ${e.source.id} does not support OAuth client configuration`);let s=yield*e.executorState.sourceOauthClients.getByScopeSourceAndProvider({scopeId:e.source.scopeId,sourceId:e.source.id,providerKey:i.providerKey}),l=r.normalizeOauthClientInput?yield*r.normalizeOauthClientInput(e.oauthClient):e.oauthClient,d=G0.isSome(s)?GIe(s.value):null,h=l.clientSecret?yield*e.storeSecretMaterial({purpose:"oauth_client_info",value:l.clientSecret}):null,S=Date.now(),b=G0.isSome(s)?s.value.id:Gke.make(`src_oauth_client_${crypto.randomUUID()}`);return yield*e.executorState.sourceOauthClients.upsert({id:b,scopeId:e.source.scopeId,sourceId:e.source.id,providerKey:i.providerKey,clientId:l.clientId,clientSecretProviderId:h?.providerId??null,clientSecretHandle:h?.handle??null,clientMetadataJson:nYt({redirectMode:l.redirectMode??"app_callback"}),createdAt:G0.isSome(s)?s.value.createdAt:S,updatedAt:S}),d&&(h===null||d.providerId!==h.providerId||d.handle!==h.handle)&&(yield*e.deleteSecretMaterial(d).pipe(ga.either,ga.ignore)),{providerKey:i.providerKey,clientId:l.clientId,clientSecret:h,redirectMode:l.redirectMode??"app_callback"}}),Ewn=e=>ga.gen(function*(){let r=l0(e.source),i=r.getOauth2SetupConfig?yield*r.getOauth2SetupConfig({source:e.source,slot:"runtime"}):null;if(i===null)return null;let s=yield*e.executorState.sourceOauthClients.getByScopeSourceAndProvider({scopeId:e.source.scopeId,sourceId:e.source.id,providerKey:i.providerKey});return G0.isNone(s)?null:{providerKey:s.value.providerKey,clientId:s.value.clientId,clientSecret:GIe(s.value),redirectMode:iYt(s.value)}}),oYt=e=>ga.gen(function*(){let r=e.normalizeOauthClient?yield*e.normalizeOauthClient(e.oauthClient):e.oauthClient,i=r.clientSecret?yield*e.storeSecretMaterial({purpose:"oauth_client_info",value:r.clientSecret}):null,s=Date.now(),l=Rj.make(`ws_oauth_client_${crypto.randomUUID()}`);return yield*e.executorState.scopeOauthClients.upsert({id:l,scopeId:e.scopeId,providerKey:e.providerKey,label:Ru(e.label)??null,clientId:r.clientId,clientSecretProviderId:i?.providerId??null,clientSecretHandle:i?.handle??null,clientMetadataJson:nYt({redirectMode:r.redirectMode??"app_callback"}),createdAt:s,updatedAt:s}),{id:l,providerKey:e.providerKey,label:Ru(e.label)??null,clientId:r.clientId,clientSecret:i,redirectMode:r.redirectMode??"app_callback"}}),Ist=e=>ga.gen(function*(){let r=yield*e.executorState.scopeOauthClients.getById(e.oauthClientId);return G0.isNone(r)?null:!Pst({scopeId:e.scopeId,localScopeState:e.localScopeState}).includes(r.value.scopeId)||r.value.providerKey!==e.providerKey?yield*_a("sources/source-auth-service",`Scope OAuth client ${e.oauthClientId} is not valid for ${e.providerKey}`):{id:r.value.id,providerKey:r.value.providerKey,label:r.value.label,clientId:r.value.clientId,clientSecret:GIe(r.value),redirectMode:iYt(r.value)}}),kwn=(e,r)=>{let i=new Set(e);return r.every(s=>i.has(s))},v9=e=>[...new Set(e.map(r=>r.trim()).filter(r=>r.length>0))],Pst=e=>{let r=e.localScopeState;return r?r.installation.scopeId!==e.scopeId?[e.scopeId]:[...new Set([e.scopeId,...r.installation.resolutionScopeIds])]:[e.scopeId]},Cwn=(e,r)=>{let i=Object.entries(e??{}).sort(([l],[d])=>l.localeCompare(d)),s=Object.entries(r??{}).sort(([l],[d])=>l.localeCompare(d));return i.length===s.length&&i.every(([l,d],h)=>{let S=s[h];return S!==void 0&&S[0]===l&&S[1]===d})},Dwn=(e,r)=>e.providerKey===r.providerKey&&e.authorizationEndpoint===r.authorizationEndpoint&&e.tokenEndpoint===r.tokenEndpoint&&e.headerName===r.headerName&&e.prefix===r.prefix&&e.clientAuthentication===r.clientAuthentication&&Cwn(e.authorizationParams,r.authorizationParams),aYt=e=>ga.gen(function*(){let r=l0(e),i=r.getOauth2SetupConfig?yield*r.getOauth2SetupConfig({source:e,slot:"runtime"}):null;return i===null?null:{source:e,requiredScopes:v9(i.scopes),setupConfig:i}}),Awn=e=>ga.gen(function*(){if(e.length===0)return yield*_a("sources/source-auth-service","Provider auth setup requires at least one target source");let r=e[0].setupConfig;for(let i of e.slice(1))if(!Dwn(r,i.setupConfig))return yield*_a("sources/source-auth-service",`Provider auth setup for ${r.providerKey} requires compatible source OAuth configuration`);return{...r,scopes:v9(e.flatMap(i=>[...i.requiredScopes]))}}),wwn=e=>ga.gen(function*(){let r=Pst({scopeId:e.scopeId,localScopeState:e.localScopeState});for(let i of r){let l=(yield*e.executorState.providerAuthGrants.listByScopeActorAndProvider({scopeId:i,actorScopeId:e.actorScopeId??null,providerKey:e.providerKey})).find(d=>d.oauthClientId===e.oauthClientId&&kwn(d.grantedScopes,e.requiredScopes));if(l)return G0.some(l)}return G0.none()}),Iwn=e=>ga.gen(function*(){let r=e.existingGrant??null,i=r?.refreshToken??null;if(e.refreshToken!==null&&(i=yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:e.refreshToken,name:`${e.providerKey} Refresh`})),i===null)return yield*_a("sources/source-auth-service",`Provider auth grant for ${e.providerKey} is missing a refresh token`);let s=Date.now(),l={id:r?.id??KN.make(`provider_grant_${crypto.randomUUID()}`),scopeId:e.scopeId,actorScopeId:e.actorScopeId??null,providerKey:e.providerKey,oauthClientId:e.oauthClientId,tokenEndpoint:e.tokenEndpoint,clientAuthentication:e.clientAuthentication,headerName:e.headerName,prefix:e.prefix,refreshToken:i,grantedScopes:[...v9([...r?.grantedScopes??[],...e.grantedScopes])],lastRefreshedAt:r?.lastRefreshedAt??null,orphanedAt:null,createdAt:r?.createdAt??s,updatedAt:s};return yield*e.executorState.providerAuthGrants.upsert(l),r?.refreshToken&&(r.refreshToken.providerId!==i.providerId||r.refreshToken.handle!==i.handle)&&(yield*e.deleteSecretMaterial(r.refreshToken).pipe(ga.either,ga.ignore)),l}),sYt=e=>ga.gen(function*(){let r=l0(e.source),i=r.getOauth2SetupConfig?yield*r.getOauth2SetupConfig({source:e.source,slot:"runtime"}):null;if(i===null)return null;let s=yield*Ewn({executorState:e.executorState,source:e.source});if(s===null)return null;let l=Fj.make(`src_auth_${crypto.randomUUID()}`),d=crypto.randomUUID(),h=GXt({baseUrl:e.baseUrl,scopeId:e.source.scopeId,sourceId:e.source.id}),b=(e.redirectModeOverride??s.redirectMode)==="loopback"?yield*xst({completionUrl:h}):null,A=b?.redirectUri??h,L=dQe();return yield*ga.gen(function*(){let V=fQe({authorizationEndpoint:i.authorizationEndpoint,clientId:s.clientId,redirectUri:A,scopes:[...i.scopes],state:d,codeVerifier:L,extraParams:i.authorizationParams}),j=Date.now();return yield*e.executorState.sourceAuthSessions.upsert({id:l,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,credentialSlot:"runtime",executionId:e.executionId??null,interactionId:e.interactionId??null,providerKind:"oauth2_pkce",status:"pending",state:d,sessionDataJson:XXt({kind:"oauth2_pkce",providerKey:i.providerKey,authorizationEndpoint:i.authorizationEndpoint,tokenEndpoint:i.tokenEndpoint,redirectUri:A,clientId:s.clientId,clientAuthentication:i.clientAuthentication,clientSecret:s.clientSecret,scopes:[...i.scopes],headerName:i.headerName,prefix:i.prefix,authorizationParams:{...i.authorizationParams},codeVerifier:L,authorizationUrl:V}),errorText:null,completedAt:null,createdAt:j,updatedAt:j}),{kind:"oauth_required",source:yield*nS(e.sourceStore,e.source,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null}),sessionId:l,authorizationUrl:V}}).pipe(ga.onError(()=>b?b.close.pipe(ga.orDie):ga.void))}),Pwn=e=>ga.gen(function*(){if(e.targetSources.length===0)return yield*_a("sources/source-auth-service","Provider OAuth setup requires at least one target source");let r=Fj.make(`src_auth_${crypto.randomUUID()}`),i=crypto.randomUUID(),s=cwn({baseUrl:e.baseUrl,scopeId:e.scopeId}),d=(e.redirectModeOverride??e.scopeOauthClient.redirectMode)==="loopback"?yield*xst({completionUrl:s}):null,h=d?.redirectUri??s,S=dQe();return yield*ga.gen(function*(){let b=fQe({authorizationEndpoint:e.setupConfig.authorizationEndpoint,clientId:e.scopeOauthClient.clientId,redirectUri:h,scopes:[...v9(e.setupConfig.scopes)],state:i,codeVerifier:S,extraParams:e.setupConfig.authorizationParams}),A=Date.now();yield*e.executorState.sourceAuthSessions.upsert({id:r,scopeId:e.scopeId,sourceId:vf.make(`oauth_provider_${crypto.randomUUID()}`),actorScopeId:e.actorScopeId??null,credentialSlot:"runtime",executionId:e.executionId??null,interactionId:e.interactionId??null,providerKind:"oauth2_provider_batch",status:"pending",state:i,sessionDataJson:YXt({kind:"provider_oauth_batch",providerKey:e.setupConfig.providerKey,authorizationEndpoint:e.setupConfig.authorizationEndpoint,tokenEndpoint:e.setupConfig.tokenEndpoint,redirectUri:h,oauthClientId:e.scopeOauthClient.id,clientAuthentication:e.setupConfig.clientAuthentication,scopes:[...v9(e.setupConfig.scopes)],headerName:e.setupConfig.headerName,prefix:e.setupConfig.prefix,authorizationParams:{...e.setupConfig.authorizationParams},targetSources:e.targetSources.map(V=>({sourceId:V.source.id,requiredScopes:[...v9(V.requiredScopes)]})),codeVerifier:S,authorizationUrl:b}),errorText:null,completedAt:null,createdAt:A,updatedAt:A});let L=yield*nS(e.sourceStore,e.targetSources[0].source,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null});return yield*ga.forEach(e.targetSources.slice(1),V=>nS(e.sourceStore,V.source,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null}).pipe(ga.asVoid),{discard:!0}),{sessionId:r,authorizationUrl:b,source:L}}).pipe(ga.onError(()=>d?d.close.pipe(ga.orDie):ga.void))}),cYt=e=>ga.gen(function*(){let r=yield*Awn(e.targets),i=yield*wwn({executorState:e.executorState,scopeId:e.scopeId,actorScopeId:e.actorScopeId,providerKey:r.providerKey,oauthClientId:e.scopeOauthClient.id,requiredScopes:r.scopes,localScopeState:e.localScopeState});if(G0.isSome(i))return{kind:"connected",sources:yield*lYt({sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,actorScopeId:e.actorScopeId,grantId:i.value.id,providerKey:i.value.providerKey,headerName:i.value.headerName,prefix:i.value.prefix,targets:e.targets.map(b=>({source:b.source,requiredScopes:b.requiredScopes}))})};let s=Ru(e.baseUrl),l=s??e.getLocalServerBaseUrl?.()??null;if(l===null)return yield*_a("sources/source-auth-service",`Local executor server base URL is unavailable for ${r.providerKey} OAuth setup`);let d=yield*Pwn({executorState:e.executorState,sourceStore:e.sourceStore,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId,baseUrl:l,redirectModeOverride:s?"app_callback":void 0,scopeOauthClient:e.scopeOauthClient,setupConfig:r,targetSources:e.targets.map(S=>({source:S.source,requiredScopes:S.requiredScopes}))});return{kind:"oauth_required",sources:yield*ga.forEach(e.targets,S=>e.sourceStore.loadSourceById({scopeId:S.source.scopeId,sourceId:S.source.id,actorScopeId:e.actorScopeId}),{discard:!1}),sessionId:d.sessionId,authorizationUrl:d.authorizationUrl}}),lYt=e=>ga.forEach(e.targets,r=>ga.gen(function*(){let i=yield*nS(e.sourceStore,r.source,{actorScopeId:e.actorScopeId,status:"connected",lastError:null,auth:{kind:"provider_grant_ref",grantId:e.grantId,providerKey:e.providerKey,requiredScopes:[...v9(r.requiredScopes)],headerName:e.headerName,prefix:e.prefix}});return yield*e.sourceCatalogSync.sync({source:i,actorScopeId:e.actorScopeId}),i}),{discard:!1}),Nwn=e=>ga.gen(function*(){let r=yield*e.executorState.providerAuthGrants.getById(e.grantId);if(G0.isNone(r)||r.value.scopeId!==e.scopeId)return!1;let i=yield*Pat(e.executorState,{scopeId:e.scopeId,grantId:e.grantId});return yield*ga.forEach(i,s=>ga.gen(function*(){let l=yield*e.sourceStore.loadSourceById({scopeId:s.scopeId,sourceId:s.sourceId,actorScopeId:s.actorScopeId}).pipe(ga.catchAll(()=>ga.succeed(null)));if(l===null){yield*E5(e.executorState,{authArtifactId:s.id},e.deleteSecretMaterial),yield*e.executorState.authArtifacts.removeByScopeSourceAndActor({scopeId:s.scopeId,sourceId:s.sourceId,actorScopeId:s.actorScopeId,slot:s.slot});return}yield*e.sourceStore.persistSource({...l,status:"auth_required",lastError:null,auth:s.slot==="runtime"?{kind:"none"}:l.auth,importAuth:s.slot==="import"?{kind:"none"}:l.importAuth,updatedAt:Date.now()},{actorScopeId:s.actorScopeId}).pipe(ga.asVoid)}),{discard:!0}),yield*GQt(e.executorState,{grant:r.value},e.deleteSecretMaterial),yield*e.executorState.providerAuthGrants.removeById(e.grantId),!0}),JXt=e=>ga.gen(function*(){let r=e.sourceId?null:BXt({endpoint:e.endpoint??null,transport:e.transport??null,command:e.command??null,name:e.name??null}),i=yield*e.sourceId?e.sourceStore.loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId,actorScopeId:e.actorScopeId}).pipe(ga.flatMap(un=>t$(un.kind)?ga.succeed(un):ga.fail(_a("sources/source-auth-service",`Expected MCP source, received ${un.kind}`)))):e.sourceStore.loadSourcesInScope(e.scopeId,{actorScopeId:e.actorScopeId}).pipe(ga.map(un=>un.find(xo=>t$(xo.kind)&&r!==null&&y9(xo.endpoint)===r))),s=i?yield*e$(i):null,l=e.command!==void 0?Ru(e.command):s?.command??null,d=e.transport!==void 0&&e.transport!==null?e.transport:JJ({transport:s?.transport??void 0,command:l??void 0})?"stdio":s?.transport??"auto";if(d==="stdio"&&l===null)return yield*_a("sources/source-auth-service","MCP stdio transport requires a command");let h=BXt({endpoint:e.endpoint??i?.endpoint??null,transport:d,command:l,name:e.name??i?.name??null}),S=Ru(e.name)??i?.name??(d==="stdio"&&l!==null?nwn(l):Cst(h)),b=Ru(e.namespace)??i?.namespace??Dst(S),A=e.enabled??i?.enabled??!0,L=d==="stdio"?null:e.queryParams!==void 0?e.queryParams:s?.queryParams??null,V=d==="stdio"?null:e.headers!==void 0?e.headers:s?.headers??null,j=e.args!==void 0?iwn(e.args):s?.args??null,ie=e.env!==void 0?e.env:s?.env??null,te=e.cwd!==void 0?Ru(e.cwd):s?.cwd??null,X=Date.now(),Re=i?yield*f9({source:i,payload:{name:S,endpoint:h,namespace:b,status:"probing",enabled:A,binding:{transport:d,queryParams:L,headers:V,command:l,args:j,env:ie,cwd:te},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:{kind:"none"},lastError:null},now:X}):yield*dW({scopeId:e.scopeId,sourceId:vf.make(`src_${crypto.randomUUID()}`),payload:{name:S,kind:"mcp",endpoint:h,namespace:b,status:"probing",enabled:A,binding:{transport:d,queryParams:L,headers:V,command:l,args:j,env:ie,cwd:te},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:{kind:"none"}},now:X}),Je=yield*e.sourceStore.persistSource(Re,{actorScopeId:e.actorScopeId});yield*e.sourceCatalogSync.sync({source:Je,actorScopeId:e.actorScopeId});let pt=yield*ga.either(dwn(Je,e.mcpDiscoveryElicitation)),$e=yield*U8.match(pt,{onLeft:()=>ga.succeed(null),onRight:un=>ga.gen(function*(){let xo=yield*nS(e.sourceStore,Je,{actorScopeId:e.actorScopeId,status:"connected",lastError:null,auth:{kind:"none"}}),Lo=yield*ga.either(e.sourceCatalogSync.persistMcpCatalogSnapshotFromManifest({source:xo,manifest:un.manifest}));return yield*U8.match(Lo,{onLeft:yr=>nS(e.sourceStore,xo,{actorScopeId:e.actorScopeId,status:"error",lastError:yr.message}).pipe(ga.zipRight(ga.fail(yr))),onRight:()=>ga.succeed({kind:"connected",source:xo})})})});if($e)return $e;let xt=Ru(e.baseUrl)??e.getLocalServerBaseUrl?.()??null;if(!xt)return yield*_a("sources/source-auth-service","Local executor server base URL is unavailable for source credential setup");let tr=Fj.make(`src_auth_${crypto.randomUUID()}`),ht=crypto.randomUUID(),wt=GXt({baseUrl:xt,scopeId:e.scopeId,sourceId:Je.id}),Ut=yield*epe({endpoint:h,redirectUrl:wt,state:ht}),hr=yield*nS(e.sourceStore,Je,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null}),Hi=Date.now();return yield*e.executorState.sourceAuthSessions.upsert({id:tr,scopeId:e.scopeId,sourceId:hr.id,actorScopeId:e.actorScopeId??null,credentialSlot:"runtime",executionId:e.executionId??null,interactionId:e.interactionId??null,providerKind:"mcp_oauth",status:"pending",state:ht,sessionDataJson:Ast({kind:"mcp_oauth",endpoint:h,redirectUri:wt,scope:null,resourceMetadataUrl:Ut.resourceMetadataUrl,authorizationServerUrl:Ut.authorizationServerUrl,resourceMetadata:Ut.resourceMetadata,authorizationServerMetadata:Ut.authorizationServerMetadata,clientInformation:Ut.clientInformation,codeVerifier:Ut.codeVerifier,authorizationUrl:Ut.authorizationUrl}),errorText:null,completedAt:null,createdAt:Hi,updatedAt:Hi}),{kind:"oauth_required",source:hr,sessionId:tr,authorizationUrl:Ut.authorizationUrl}}),Own=e=>ga.gen(function*(){let r=y9(e.sourceInput.endpoint),i=e.sourceInput.kind==="openapi"?y9(e.sourceInput.specUrl):null,l=(yield*e.sourceStore.loadSourcesInScope(e.sourceInput.scopeId,{actorScopeId:e.sourceInput.actorScopeId})).find(te=>{if(te.kind!==e.sourceInput.kind||y9(te.endpoint)!==r)return!1;if(e.sourceInput.kind==="openapi"){let X=ga.runSync(e$(te));return Ru(X.specUrl)===i}return!0}),d=Ru(e.sourceInput.name)??l?.name??Cst(r),h=Ru(e.sourceInput.namespace)??l?.namespace??Dst(d),S=l?yield*e$(l):null,b=Date.now(),A=yield*wst({existing:l,auth:e.sourceInput.auth,storeSecretMaterial:e.storeSecretMaterial}),L=yield*tYt({sourceKind:e.sourceInput.kind,existing:l,importAuthPolicy:e.sourceInput.importAuthPolicy??null,importAuth:e.sourceInput.importAuth??null,storeSecretMaterial:e.storeSecretMaterial}),V=l?yield*f9({source:l,payload:{name:d,endpoint:r,namespace:h,status:"probing",enabled:!0,binding:e.sourceInput.kind==="openapi"?{specUrl:i,defaultHeaders:S?.defaultHeaders??null}:{defaultHeaders:S?.defaultHeaders??null},importAuthPolicy:L.importAuthPolicy,importAuth:L.importAuth,auth:A,lastError:null},now:b}):yield*dW({scopeId:e.sourceInput.scopeId,sourceId:vf.make(`src_${crypto.randomUUID()}`),payload:{name:d,kind:e.sourceInput.kind,endpoint:r,namespace:h,status:"probing",enabled:!0,binding:e.sourceInput.kind==="openapi"?{specUrl:i,defaultHeaders:S?.defaultHeaders??null}:{defaultHeaders:S?.defaultHeaders??null},importAuthPolicy:L.importAuthPolicy,importAuth:L.importAuth,auth:A},now:b}),j=yield*e.sourceStore.persistSource(V,{actorScopeId:e.sourceInput.actorScopeId});if(rYt({existing:l,explicitAuthProvided:e.sourceInput.auth!==void 0,auth:j.auth})){let te=Ru(e.baseUrl),X=te??e.getLocalServerBaseUrl?.()??null;if(X){let Je=yield*sYt({executorState:e.executorState,sourceStore:e.sourceStore,source:j,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:X,redirectModeOverride:te?"app_callback":void 0,storeSecretMaterial:e.storeSecretMaterial});if(Je)return Je}return{kind:"credential_required",source:yield*nS(e.sourceStore,j,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}),credentialSlot:"runtime"}}let ie=yield*ga.either(e.sourceCatalogSync.sync({source:{...j,status:"connected"},actorScopeId:e.sourceInput.actorScopeId}));return yield*U8.match(ie,{onLeft:te=>S5(te)?nS(e.sourceStore,j,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}).pipe(ga.map(X=>({kind:"credential_required",source:X,credentialSlot:te.slot}))):nS(e.sourceStore,j,{actorScopeId:e.sourceInput.actorScopeId,status:"error",lastError:te.message}).pipe(ga.zipRight(ga.fail(te))),onRight:()=>nS(e.sourceStore,j,{actorScopeId:e.sourceInput.actorScopeId,status:"connected",lastError:null}).pipe(ga.map(te=>({kind:"connected",source:te})))})}).pipe(ga.withSpan("source.connect.http",{attributes:{"executor.source.kind":e.sourceInput.kind,"executor.source.endpoint":e.sourceInput.endpoint,...e.sourceInput.namespace?{"executor.source.namespace":e.sourceInput.namespace}:{},...e.sourceInput.name?{"executor.source.name":e.sourceInput.name}:{}}})),Fwn=e=>ga.gen(function*(){let r=e.sourceInput.service.trim(),i=e.sourceInput.version.trim(),s=y9(Ru(e.sourceInput.discoveryUrl)??HXt(r,i)),d=(yield*e.sourceStore.loadSourcesInScope(e.sourceInput.scopeId,{actorScopeId:e.sourceInput.actorScopeId})).find($e=>{if($e.kind!=="google_discovery")return!1;let xt=$e.binding;return typeof xt.service!="string"||typeof xt.version!="string"?!1:xt.service.trim()===r&&xt.version.trim()===i}),h=Ru(e.sourceInput.name)??d?.name??KXt(r,i),S=Ru(e.sourceInput.namespace)??d?.namespace??QXt(r),b=Array.isArray(d?.binding?.scopes)?d.binding.scopes:[],A=(e.sourceInput.scopes??b).map($e=>$e.trim()).filter($e=>$e.length>0),L=d?yield*e$(d):null,V=Date.now(),j=yield*wst({existing:d,auth:e.sourceInput.auth,storeSecretMaterial:e.storeSecretMaterial}),ie=yield*tYt({sourceKind:e.sourceInput.kind,existing:d,importAuthPolicy:e.sourceInput.importAuthPolicy??null,importAuth:e.sourceInput.importAuth??null,storeSecretMaterial:e.storeSecretMaterial}),te=d?yield*f9({source:d,payload:{name:h,endpoint:s,namespace:S,status:"probing",enabled:!0,binding:{service:r,version:i,discoveryUrl:s,defaultHeaders:L?.defaultHeaders??null,scopes:[...A]},importAuthPolicy:ie.importAuthPolicy,importAuth:ie.importAuth,auth:j,lastError:null},now:V}):yield*dW({scopeId:e.sourceInput.scopeId,sourceId:vf.make(`src_${crypto.randomUUID()}`),payload:{name:h,kind:"google_discovery",endpoint:s,namespace:S,status:"probing",enabled:!0,binding:{service:r,version:i,discoveryUrl:s,defaultHeaders:L?.defaultHeaders??null,scopes:[...A]},importAuthPolicy:ie.importAuthPolicy,importAuth:ie.importAuth,auth:j},now:V}),X=yield*e.sourceStore.persistSource(te,{actorScopeId:e.sourceInput.actorScopeId}),Re=l0(X),Je=yield*aYt(X);if(Je!==null&&e.sourceInput.auth===void 0&&X.auth.kind==="none"){let $e=null;if(e.sourceInput.scopeOauthClientId?$e=yield*Ist({executorState:e.executorState,scopeId:X.scopeId,oauthClientId:e.sourceInput.scopeOauthClientId,providerKey:Je.setupConfig.providerKey,localScopeState:e.localScopeState}):e.sourceInput.oauthClient&&($e=yield*oYt({executorState:e.executorState,scopeId:X.scopeId,providerKey:Je.setupConfig.providerKey,oauthClient:e.sourceInput.oauthClient,label:`${h} OAuth Client`,normalizeOauthClient:Re.normalizeOauthClientInput,storeSecretMaterial:e.storeSecretMaterial})),$e===null)return yield*_a("sources/source-auth-service",`${Je.setupConfig.providerKey} shared auth requires a workspace OAuth client`);let xt=yield*cYt({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,scopeId:X.scopeId,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:e.baseUrl,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeOauthClient:$e,targets:[Je],localScopeState:e.localScopeState});return xt.kind==="connected"?{kind:"connected",source:xt.sources[0]}:{kind:"oauth_required",source:xt.sources[0],sessionId:xt.sessionId,authorizationUrl:xt.authorizationUrl}}if(e.sourceInput.oauthClient&&(yield*Twn({executorState:e.executorState,source:X,oauthClient:e.sourceInput.oauthClient,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial})),rYt({existing:d,explicitAuthProvided:e.sourceInput.auth!==void 0,auth:X.auth})){let $e=Ru(e.baseUrl),xt=$e??e.getLocalServerBaseUrl?.()??null;if(xt){let ht=yield*sYt({executorState:e.executorState,sourceStore:e.sourceStore,source:X,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:xt,redirectModeOverride:$e?"app_callback":void 0,storeSecretMaterial:e.storeSecretMaterial});if(ht)return ht}return{kind:"credential_required",source:yield*nS(e.sourceStore,X,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}),credentialSlot:"runtime"}}let pt=yield*ga.either(e.sourceCatalogSync.sync({source:{...X,status:"connected"},actorScopeId:e.sourceInput.actorScopeId}));return yield*U8.match(pt,{onLeft:$e=>S5($e)?nS(e.sourceStore,X,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}).pipe(ga.map(xt=>({kind:"credential_required",source:xt,credentialSlot:$e.slot}))):nS(e.sourceStore,X,{actorScopeId:e.sourceInput.actorScopeId,status:"error",lastError:$e.message}).pipe(ga.zipRight(ga.fail($e))),onRight:()=>nS(e.sourceStore,X,{actorScopeId:e.sourceInput.actorScopeId,status:"connected",lastError:null}).pipe(ga.map($e=>({kind:"connected",source:$e})))})}),Rwn=e=>ga.gen(function*(){if(e.sourceInput.sources.length===0)return yield*_a("sources/source-auth-service","Google batch connect requires at least one source");let r=yield*e.sourceStore.loadSourcesInScope(e.sourceInput.scopeId,{actorScopeId:e.sourceInput.actorScopeId}),i=yield*ga.forEach(e.sourceInput.sources,d=>ga.gen(function*(){let h=d.service.trim(),S=d.version.trim(),b=y9(Ru(d.discoveryUrl)??HXt(h,S)),A=r.find(pt=>{if(pt.kind!=="google_discovery")return!1;let $e=pt.binding;return typeof $e.service=="string"&&typeof $e.version=="string"&&$e.service.trim()===h&&$e.version.trim()===S}),L=Ru(d.name)??A?.name??KXt(h,S),V=Ru(d.namespace)??A?.namespace??QXt(h),j=v9(d.scopes??(Array.isArray(A?.binding.scopes)?A?.binding.scopes:[])),ie=A?yield*e$(A):null,te=Date.now(),X=A?yield*f9({source:A,payload:{name:L,endpoint:b,namespace:V,status:"probing",enabled:!0,binding:{service:h,version:S,discoveryUrl:b,defaultHeaders:ie?.defaultHeaders??null,scopes:[...j]},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:A.auth.kind==="provider_grant_ref"?A.auth:{kind:"none"},lastError:null},now:te}):yield*dW({scopeId:e.sourceInput.scopeId,sourceId:vf.make(`src_${crypto.randomUUID()}`),payload:{name:L,kind:"google_discovery",endpoint:b,namespace:V,status:"probing",enabled:!0,binding:{service:h,version:S,discoveryUrl:b,defaultHeaders:ie?.defaultHeaders??null,scopes:[...j]},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:{kind:"none"}},now:te}),Re=yield*e.sourceStore.persistSource(X,{actorScopeId:e.sourceInput.actorScopeId}),Je=yield*aYt(Re);return Je===null?yield*_a("sources/source-auth-service",`Source ${Re.id} does not support Google shared auth`):Je}),{discard:!1}),s=yield*Ist({executorState:e.executorState,scopeId:e.sourceInput.scopeId,oauthClientId:e.sourceInput.scopeOauthClientId,providerKey:i[0].setupConfig.providerKey,localScopeState:e.localScopeState});if(s===null)return yield*_a("sources/source-auth-service",`Scope OAuth client not found: ${e.sourceInput.scopeOauthClientId}`);let l=yield*cYt({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,scopeId:e.sourceInput.scopeId,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:e.sourceInput.baseUrl,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeOauthClient:s,targets:i,localScopeState:e.localScopeState});return l.kind==="connected"?{results:l.sources.map(d=>({source:d,status:"connected"})),providerOauthSession:null}:{results:l.sources.map(d=>({source:d,status:"pending_oauth"})),providerOauthSession:{sessionId:l.sessionId,authorizationUrl:l.authorizationUrl,sourceIds:l.sources.map(d=>d.id)}}}),Lwn=(e,r)=>{let i=l=>ga.succeed(l),s=l=>ga.succeed(l);return{getSourceById:({scopeId:l,sourceId:d,actorScopeId:h})=>r(e.sourceStore.loadSourceById({scopeId:l,sourceId:d,actorScopeId:h})),addExecutorSource:(l,d=void 0)=>r((vwn(l)?Fwn({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,sourceInput:l,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,resolveSecretMaterial:e.resolveSecretMaterial,getLocalServerBaseUrl:e.getLocalServerBaseUrl,baseUrl:d?.baseUrl,localScopeState:e.localScopeState}):Swn(l)?Own({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,sourceInput:l,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,resolveSecretMaterial:e.resolveSecretMaterial,getLocalServerBaseUrl:e.getLocalServerBaseUrl,baseUrl:d?.baseUrl,localScopeState:e.localScopeState}):bwn(l)?JXt({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeId:l.scopeId,actorScopeId:l.actorScopeId,executionId:l.executionId,interactionId:l.interactionId,endpoint:l.endpoint,name:l.name,namespace:l.namespace,transport:l.transport,queryParams:l.queryParams,headers:l.headers,command:l.command,args:l.args,env:l.env,cwd:l.cwd,mcpDiscoveryElicitation:d?.mcpDiscoveryElicitation,baseUrl:d?.baseUrl,resolveSecretMaterial:e.resolveSecretMaterial}):ga.fail(_a("sources/source-auth-service",`Unsupported executor source input: ${JSON.stringify(l)}`))).pipe(ga.flatMap(i))),connectGoogleDiscoveryBatch:l=>r(Rwn({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,sourceInput:l,getLocalServerBaseUrl:e.getLocalServerBaseUrl,localScopeState:e.localScopeState})),connectMcpSource:l=>r(JXt({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeId:l.scopeId,actorScopeId:l.actorScopeId,sourceId:l.sourceId,executionId:null,interactionId:null,endpoint:l.endpoint,name:l.name,namespace:l.namespace,enabled:l.enabled,transport:l.transport,queryParams:l.queryParams,headers:l.headers,command:l.command,args:l.args,env:l.env,cwd:l.cwd,baseUrl:l.baseUrl,resolveSecretMaterial:e.resolveSecretMaterial}).pipe(ga.flatMap(s))),listScopeOauthClients:({scopeId:l,providerKey:d})=>r(ga.gen(function*(){let h=Pst({scopeId:l,localScopeState:e.localScopeState}),S=new Map;for(let b of h){let A=yield*e.executorState.scopeOauthClients.listByScopeAndProvider({scopeId:b,providerKey:d});for(let L of A)S.has(L.id)||S.set(L.id,L)}return[...S.values()]})),createScopeOauthClient:({scopeId:l,providerKey:d,label:h,oauthClient:S})=>r(ga.gen(function*(){let b=Tat(d),A=yield*oYt({executorState:e.executorState,scopeId:l,providerKey:d,oauthClient:S,label:h,normalizeOauthClient:b?.normalizeOauthClientInput,storeSecretMaterial:e.storeSecretMaterial}),L=yield*e.executorState.scopeOauthClients.getById(A.id);return G0.isNone(L)?yield*_a("sources/source-auth-service",`Scope OAuth client ${A.id} was not persisted`):L.value})),removeScopeOauthClient:({scopeId:l,oauthClientId:d})=>r(ga.gen(function*(){let h=yield*e.executorState.scopeOauthClients.getById(d);if(G0.isNone(h)||h.value.scopeId!==l)return!1;let b=(yield*e.executorState.providerAuthGrants.listByScopeId(l)).find(V=>V.oauthClientId===d);if(b)return yield*_a("sources/source-auth-service",`Scope OAuth client ${d} is still referenced by provider grant ${b.id}`);let A=GIe(h.value),L=yield*e.executorState.scopeOauthClients.removeById(d);return L&&A&&(yield*e.deleteSecretMaterial(A).pipe(ga.either,ga.ignore)),L})),removeProviderAuthGrant:({scopeId:l,grantId:d})=>r(Nwn({executorState:e.executorState,sourceStore:e.sourceStore,scopeId:l,grantId:d,deleteSecretMaterial:e.deleteSecretMaterial}))}},Mwn=(e,r)=>({startSourceOAuthSession:i=>ga.gen(function*(){let s=Ru(i.baseUrl)??e.getLocalServerBaseUrl?.()??null;if(!s)return yield*_a("sources/source-auth-service","Local executor server base URL is unavailable for OAuth setup");let l=Fj.make(`src_auth_${crypto.randomUUID()}`),d=pwn({displayName:i.displayName}),h=swn({baseUrl:s}),S=y9(i.provider.endpoint),b=yield*epe({endpoint:S,redirectUrl:h,state:d}),A=Date.now();return yield*e.executorState.sourceAuthSessions.upsert({id:l,scopeId:i.scopeId,sourceId:vf.make(`oauth_draft_${crypto.randomUUID()}`),actorScopeId:i.actorScopeId??null,credentialSlot:"runtime",executionId:null,interactionId:null,providerKind:"mcp_oauth",status:"pending",state:d,sessionDataJson:Ast({kind:"mcp_oauth",endpoint:S,redirectUri:h,scope:i.provider.kind,resourceMetadataUrl:b.resourceMetadataUrl,authorizationServerUrl:b.authorizationServerUrl,resourceMetadata:b.resourceMetadata,authorizationServerMetadata:b.authorizationServerMetadata,clientInformation:b.clientInformation,codeVerifier:b.codeVerifier,authorizationUrl:b.authorizationUrl}),errorText:null,completedAt:null,createdAt:A,updatedAt:A}),{sessionId:l,authorizationUrl:b.authorizationUrl}}),completeSourceOAuthSession:({state:i,code:s,error:l,errorDescription:d})=>r(ga.gen(function*(){let h=yield*e.executorState.sourceAuthSessions.getByState(i);if(G0.isNone(h))return yield*_a("sources/source-auth-service",`Source auth session not found for state ${i}`);let S=h.value,b=VIe(S);if(S.status==="completed")return yield*_a("sources/source-auth-service",`Source auth session ${S.id} is already completed`);if(S.status!=="pending")return yield*_a("sources/source-auth-service",`Source auth session ${S.id} is not pending`);if(Ru(l)!==null){let X=Ru(d)??Ru(l)??"OAuth authorization failed",Re=Date.now();return yield*e.executorState.sourceAuthSessions.update(S.id,vW({sessionDataJson:S.sessionDataJson,status:"failed",now:Re,errorText:X})),yield*_a("sources/source-auth-service",X)}let A=Ru(s);if(A===null)return yield*_a("sources/source-auth-service","Missing OAuth authorization code");if(b.codeVerifier===null)return yield*_a("sources/source-auth-service","OAuth session is missing the PKCE code verifier");if(b.scope!==null&&b.scope!=="mcp")return yield*_a("sources/source-auth-service",`Unsupported OAuth provider: ${b.scope}`);let L=yield*jKe({session:{endpoint:b.endpoint,redirectUrl:b.redirectUri,codeVerifier:b.codeVerifier,resourceMetadataUrl:b.resourceMetadataUrl,authorizationServerUrl:b.authorizationServerUrl,resourceMetadata:b.resourceMetadata,authorizationServerMetadata:b.authorizationServerMetadata,clientInformation:b.clientInformation},code:A}),V=$Xt({displayName:_wn(S.state),endpoint:b.endpoint}),j=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:L.tokens.access_token,name:V}),ie=L.tokens.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:L.tokens.refresh_token,name:`${V} Refresh`}):null,te={kind:"oauth2",headerName:"Authorization",prefix:"Bearer ",accessToken:j,refreshToken:ie};return yield*e.executorState.sourceAuthSessions.update(S.id,vW({sessionDataJson:UXt({session:S,patch:{codeVerifier:null,authorizationUrl:null,resourceMetadataUrl:L.resourceMetadataUrl,authorizationServerUrl:L.authorizationServerUrl,resourceMetadata:L.resourceMetadata,authorizationServerMetadata:L.authorizationServerMetadata}}),status:"completed",now:Date.now(),errorText:null})),{sessionId:S.id,auth:te}})),completeProviderOauthCallback:({scopeId:i,actorScopeId:s,state:l,code:d,error:h,errorDescription:S})=>r(ga.gen(function*(){let b=yield*e.executorState.sourceAuthSessions.getByState(l);if(G0.isNone(b))return yield*_a("sources/source-auth-service",`Source auth session not found for state ${l}`);let A=b.value;if(A.scopeId!==i)return yield*_a("sources/source-auth-service",`Source auth session ${A.id} does not match scopeId=${i}`);if((A.actorScopeId??null)!==(s??null))return yield*_a("sources/source-auth-service",`Source auth session ${A.id} does not match the active account`);if(A.providerKind!=="oauth2_provider_batch")return yield*_a("sources/source-auth-service",`Source auth session ${A.id} is not a provider batch OAuth session`);if(A.status==="completed"){let tr=kst(A),ht=yield*ga.forEach(tr.targetSources,wt=>e.sourceStore.loadSourceById({scopeId:i,sourceId:wt.sourceId,actorScopeId:s}),{discard:!1});return{sessionId:A.id,sources:ht}}if(A.status!=="pending")return yield*_a("sources/source-auth-service",`Source auth session ${A.id} is not pending`);let L=kst(A);if(Ru(h)!==null){let tr=Ru(S)??Ru(h)??"OAuth authorization failed";return yield*e.executorState.sourceAuthSessions.update(A.id,vW({sessionDataJson:A.sessionDataJson,status:"failed",now:Date.now(),errorText:tr})),yield*_a("sources/source-auth-service",tr)}let V=Ru(d);if(V===null)return yield*_a("sources/source-auth-service","Missing OAuth authorization code");if(L.codeVerifier===null)return yield*_a("sources/source-auth-service","OAuth session is missing the PKCE code verifier");let j=yield*Ist({executorState:e.executorState,scopeId:i,oauthClientId:L.oauthClientId,providerKey:L.providerKey,localScopeState:e.localScopeState});if(j===null)return yield*_a("sources/source-auth-service",`Scope OAuth client not found: ${L.oauthClientId}`);let ie=null;j.clientSecret&&(ie=yield*e.resolveSecretMaterial({ref:j.clientSecret}));let te=yield*mQe({tokenEndpoint:L.tokenEndpoint,clientId:j.clientId,clientAuthentication:L.clientAuthentication,clientSecret:ie,redirectUri:L.redirectUri,codeVerifier:L.codeVerifier??"",code:V}),Re=(yield*e.executorState.providerAuthGrants.listByScopeActorAndProvider({scopeId:i,actorScopeId:s??null,providerKey:L.providerKey})).find(tr=>tr.oauthClientId===L.oauthClientId)??null,Je=v9(Ru(te.scope)?te.scope.split(/\s+/):L.scopes),pt=yield*Iwn({executorState:e.executorState,scopeId:i,actorScopeId:s,providerKey:L.providerKey,oauthClientId:L.oauthClientId,tokenEndpoint:L.tokenEndpoint,clientAuthentication:L.clientAuthentication,headerName:L.headerName,prefix:L.prefix,grantedScopes:Je,refreshToken:Ru(te.refresh_token),existingGrant:Re,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial}),$e=yield*ga.forEach(L.targetSources,tr=>ga.map(e.sourceStore.loadSourceById({scopeId:i,sourceId:tr.sourceId,actorScopeId:s}),ht=>({source:ht,requiredScopes:tr.requiredScopes})),{discard:!1}),xt=yield*lYt({sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,actorScopeId:s,grantId:pt.id,providerKey:pt.providerKey,headerName:pt.headerName,prefix:pt.prefix,targets:$e});return yield*e.executorState.sourceAuthSessions.update(A.id,vW({sessionDataJson:ywn({session:A,patch:{codeVerifier:null,authorizationUrl:null}}),status:"completed",now:Date.now(),errorText:null})),{sessionId:A.id,sources:xt}})),completeSourceCredentialSetup:({scopeId:i,sourceId:s,actorScopeId:l,state:d,code:h,error:S,errorDescription:b})=>r(ga.gen(function*(){let A=yield*e.executorState.sourceAuthSessions.getByState(d);if(G0.isNone(A))return yield*_a("sources/source-auth-service",`Source auth session not found for state ${d}`);let L=A.value;if(L.scopeId!==i||L.sourceId!==s)return yield*_a("sources/source-auth-service",`Source auth session ${L.id} does not match scopeId=${i} sourceId=${s}`);if(l!==void 0&&(L.actorScopeId??null)!==(l??null))return yield*_a("sources/source-auth-service",`Source auth session ${L.id} does not match the active account`);let V=yield*e.sourceStore.loadSourceById({scopeId:L.scopeId,sourceId:L.sourceId,actorScopeId:L.actorScopeId});if(L.status==="completed")return{sessionId:L.id,source:V};if(L.status!=="pending")return yield*_a("sources/source-auth-service",`Source auth session ${L.id} is not pending`);let j=L.providerKind==="oauth2_pkce"?Est(L):VIe(L);if(Ru(S)!==null){let Je=Ru(b)??Ru(S)??"OAuth authorization failed",pt=Date.now();yield*e.executorState.sourceAuthSessions.update(L.id,vW({sessionDataJson:L.sessionDataJson,status:"failed",now:pt,errorText:Je}));let $e=yield*nS(e.sourceStore,V,{actorScopeId:L.actorScopeId,status:"error",lastError:Je});return yield*e.sourceCatalogSync.sync({source:$e,actorScopeId:L.actorScopeId}),yield*zXt({executorState:e.executorState,liveExecutionManager:e.liveExecutionManager,session:L,response:{action:"cancel",reason:Je}}),yield*_a("sources/source-auth-service",Je)}let ie=Ru(h);if(ie===null)return yield*_a("sources/source-auth-service","Missing OAuth authorization code");if(j.codeVerifier===null)return yield*_a("sources/source-auth-service","OAuth session is missing the PKCE code verifier");let te=Date.now(),X;if(L.providerKind==="oauth2_pkce"){let Je=Est(L),pt=null;Je.clientSecret&&(pt=yield*e.resolveSecretMaterial({ref:Je.clientSecret}));let $e=yield*mQe({tokenEndpoint:Je.tokenEndpoint,clientId:Je.clientId,clientAuthentication:Je.clientAuthentication,clientSecret:pt,redirectUri:Je.redirectUri,codeVerifier:Je.codeVerifier??"",code:ie}),xt=Ru($e.refresh_token);if(xt===null)return yield*_a("sources/source-auth-service","OAuth authorization did not return a refresh token");let tr=yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:xt,name:`${V.name} Refresh`}),ht=Ru($e.scope)?$e.scope.split(/\s+/).filter(Ut=>Ut.length>0):[...Je.scopes];X=yield*nS(e.sourceStore,V,{actorScopeId:L.actorScopeId,status:"connected",lastError:null,auth:{kind:"oauth2_authorized_user",headerName:Je.headerName,prefix:Je.prefix,tokenEndpoint:Je.tokenEndpoint,clientId:Je.clientId,clientAuthentication:Je.clientAuthentication,clientSecret:Je.clientSecret,refreshToken:tr,grantSet:ht}});let wt=yield*e.executorState.authArtifacts.getByScopeSourceAndActor({scopeId:X.scopeId,sourceId:X.id,actorScopeId:L.actorScopeId??null,slot:"runtime"});G0.isSome(wt)&&(yield*_5t({executorState:e.executorState,artifact:wt.value,tokenResponse:$e,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial})),yield*e.executorState.sourceAuthSessions.update(L.id,vW({sessionDataJson:hwn({session:L,patch:{codeVerifier:null,authorizationUrl:null}}),status:"completed",now:te,errorText:null}))}else{let Je=VIe(L),pt=yield*jKe({session:{endpoint:Je.endpoint,redirectUrl:Je.redirectUri,codeVerifier:Je.codeVerifier??"",resourceMetadataUrl:Je.resourceMetadataUrl,authorizationServerUrl:Je.authorizationServerUrl,resourceMetadata:Je.resourceMetadata,authorizationServerMetadata:Je.authorizationServerMetadata,clientInformation:Je.clientInformation},code:ie}),$e=$Xt({displayName:V.name,endpoint:V.endpoint}),xt=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:pt.tokens.access_token,name:$e}),tr=pt.tokens.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:pt.tokens.refresh_token,name:`${$e} Refresh`}):null;X=yield*nS(e.sourceStore,V,{actorScopeId:L.actorScopeId,status:"connected",lastError:null,auth:l5t({redirectUri:Je.redirectUri,accessToken:xt,refreshToken:tr,tokenType:pt.tokens.token_type,expiresIn:typeof pt.tokens.expires_in=="number"&&Number.isFinite(pt.tokens.expires_in)?pt.tokens.expires_in:null,scope:pt.tokens.scope??null,resourceMetadataUrl:pt.resourceMetadataUrl,authorizationServerUrl:pt.authorizationServerUrl,resourceMetadata:pt.resourceMetadata,authorizationServerMetadata:pt.authorizationServerMetadata,clientInformation:pt.clientInformation})}),yield*e.executorState.sourceAuthSessions.update(L.id,vW({sessionDataJson:UXt({session:L,patch:{codeVerifier:null,authorizationUrl:null,resourceMetadataUrl:pt.resourceMetadataUrl,authorizationServerUrl:pt.authorizationServerUrl,resourceMetadata:pt.resourceMetadata,authorizationServerMetadata:pt.authorizationServerMetadata}}),status:"completed",now:te,errorText:null}))}let Re=yield*ga.either(e.sourceCatalogSync.sync({source:X,actorScopeId:L.actorScopeId}));return yield*U8.match(Re,{onLeft:Je=>nS(e.sourceStore,X,{actorScopeId:L.actorScopeId,status:"error",lastError:Je.message}).pipe(ga.zipRight(ga.fail(Je))),onRight:()=>ga.succeed(void 0)}),yield*zXt({executorState:e.executorState,liveExecutionManager:e.liveExecutionManager,session:L,response:{action:"accept"}}),{sessionId:L.id,source:X}}))}),jwn=e=>{let r=l=>SB(l,e.localScopeState),i=Lwn(e,r),s=Mwn(e,r);return{getLocalServerBaseUrl:()=>e.getLocalServerBaseUrl?.()??null,storeSecretMaterial:({purpose:l,value:d})=>e.storeSecretMaterial({purpose:l,value:d}),...i,...s}},l4=class extends VXt.Tag("#runtime/RuntimeSourceAuthServiceTag")(){},uYt=(e={})=>WXt.effect(l4,ga.gen(function*(){let r=yield*dm,i=yield*BD,s=yield*uy,l=yield*SI,d=yield*Xw,h=yield*dk,S=yield*bT,b=yield*bB();return jwn({executorState:r,liveExecutionManager:i,sourceStore:s,sourceCatalogSync:l,resolveSecretMaterial:d,storeSecretMaterial:h,deleteSecretMaterial:S,getLocalServerBaseUrl:e.getLocalServerBaseUrl,localScopeState:b??void 0})})),Lri=ef.Union(ef.Struct({kind:ef.Literal("connected"),source:XN}),ef.Struct({kind:ef.Literal("credential_required"),source:XN,credentialSlot:ef.Literal("runtime","import")}),ef.Struct({kind:ef.Literal("oauth_required"),source:XN,sessionId:Fj,authorizationUrl:ef.String}));import*as pYt from"effect/Context";import*as HIe from"effect/Effect";import*as _Yt from"effect/Layer";var S9=class extends pYt.Tag("#runtime/LocalToolRuntimeLoaderService")(){},jri=_Yt.effect(S9,HIe.succeed(S9.of({load:()=>HIe.die(new Error("LocalToolRuntimeLoaderLive is unsupported; provide a bound local tool runtime loader from the host adapter."))})));var Bwn=()=>({tools:{},catalog:Z7({tools:{}}),toolInvoker:Q7({tools:{}}),toolPaths:new Set}),$wn=e=>({scopeId:r,actorScopeId:i,onElicitation:s})=>Nst.gen(function*(){let l=yield*bB(),d=l===null?null:yield*e.scopeConfigStore.load(),h=l===null?Bwn():yield*e.localToolRuntimeLoader.load(),{catalog:S,toolInvoker:b}=MXt({scopeId:r,actorScopeId:i,executorStateStore:e.executorStateStore,sourceStore:e.sourceStore,sourceCatalogSyncService:e.sourceCatalogSyncService,sourceCatalogStore:e.sourceCatalogStore,installationStore:e.installationStore,instanceConfigResolver:e.instanceConfigResolver,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,updateSecretMaterial:e.updateSecretMaterial,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,sourceAuthMaterialService:e.sourceAuthMaterialService,sourceAuthService:e.sourceAuthService,runtimeLocalScope:l,localToolRuntime:h,createInternalToolMap:e.createInternalToolMap,onElicitation:s});return{executor:cst(sst(d?.config)),toolInvoker:b,catalog:S}}),c$=class extends dYt.Tag("#runtime/RuntimeExecutionResolverService")(){},fYt=(e={})=>e.executionResolver?KIe.succeed(c$,e.executionResolver):KIe.effect(c$,Nst.gen(function*(){let r=yield*dm,i=yield*uy,s=yield*SI,l=yield*qj,d=yield*l4,h=yield*r$,S=yield*S9,b=yield*FV,A=yield*r8,L=yield*dk,V=yield*bT,j=yield*t8,ie=yield*OD,te=yield*lx,X=yield*ux;return $wn({executorStateStore:r,sourceStore:i,sourceCatalogSyncService:s,sourceAuthService:d,sourceAuthMaterialService:l,sourceCatalogStore:h,localToolRuntimeLoader:S,installationStore:b,instanceConfigResolver:A,storeSecretMaterial:L,deleteSecretMaterial:V,updateSecretMaterial:j,scopeConfigStore:ie,scopeStateStore:te,sourceArtifactStore:X,createInternalToolMap:e.createInternalToolMap})}));import*as hYt from"effect/Data";var mYt=class extends hYt.TaggedError("ResumeUnsupportedError"){};import*as dx from"effect/Effect";var QIe={bundle:sg("sources.inspect.bundle"),tool:sg("sources.inspect.tool"),discover:sg("sources.inspect.discover")},tte=e=>e.trim().toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),Uwn=e=>e.status==="draft"||e.status==="probing"||e.status==="auth_required",zwn=e=>dx.gen(function*(){let i=yield*(yield*uy).loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId});return Uwn(i)?i:yield*e.cause}),yYt=e=>bZt({scopeId:e.scopeId,sourceId:e.sourceId}).pipe(dx.map(r=>({kind:"catalog",catalogEntry:r})),dx.catchTag("LocalSourceArtifactMissingError",r=>dx.gen(function*(){return{kind:"empty",source:yield*zwn({scopeId:e.scopeId,sourceId:e.sourceId,cause:r})}}))),Fst=e=>{let r=e.executable.display??{};return{protocol:r.protocol??e.executable.adapterKey,method:r.method??null,pathTemplate:r.pathTemplate??null,rawToolId:r.rawToolId??e.path.split(".").at(-1)??null,operationId:r.operationId??null,group:r.group??null,leaf:r.leaf??e.path.split(".").at(-1)??null,tags:e.capability.surface.tags??[]}},qwn=e=>({path:e.path,method:Fst(e).method,...e.descriptor.contract?.inputTypePreview?{inputTypePreview:e.descriptor.contract.inputTypePreview}:{},...e.descriptor.contract?.outputTypePreview?{outputTypePreview:e.descriptor.contract.outputTypePreview}:{}}),vYt=e=>{let r=Fst(e);return{path:e.path,sourceKey:e.source.id,...e.capability.surface.title?{title:e.capability.surface.title}:{},...e.capability.surface.summary||e.capability.surface.description?{description:e.capability.surface.summary??e.capability.surface.description}:{},protocol:r.protocol,toolId:e.path.split(".").at(-1)??e.path,rawToolId:r.rawToolId,operationId:r.operationId,group:r.group,leaf:r.leaf,tags:[...r.tags],method:r.method,pathTemplate:r.pathTemplate,...e.descriptor.contract?.inputTypePreview?{inputTypePreview:e.descriptor.contract.inputTypePreview}:{},...e.descriptor.contract?.outputTypePreview?{outputTypePreview:e.descriptor.contract.outputTypePreview}:{}}},gYt=e=>e==="graphql"||e==="yaml"||e==="json"||e==="text"?e:"json",Ost=(e,r)=>r==null?null:{kind:"code",title:e,language:"json",body:JSON.stringify(r,null,2)},Jwn=e=>dx.gen(function*(){let r=vYt(e),i=Fst(e),s=yield*xZt(e),l=[{label:"Protocol",value:i.protocol},...i.method?[{label:"Method",value:i.method,mono:!0}]:[],...i.pathTemplate?[{label:"Target",value:i.pathTemplate,mono:!0}]:[],...i.operationId?[{label:"Operation",value:i.operationId,mono:!0}]:[],...i.group?[{label:"Group",value:i.group,mono:!0}]:[],...i.leaf?[{label:"Leaf",value:i.leaf,mono:!0}]:[],...i.rawToolId?[{label:"Raw tool",value:i.rawToolId,mono:!0}]:[],{label:"Signature",value:s.callSignature,mono:!0},{label:"Call shape",value:s.callShapeId,mono:!0},...s.resultShapeId?[{label:"Result shape",value:s.resultShapeId,mono:!0}]:[],{label:"Response set",value:s.responseSetId,mono:!0}],d=[...(e.capability.native??[]).map((S,b)=>({kind:"code",title:`Capability native ${String(b+1)}: ${S.kind}`,language:gYt(S.encoding),body:typeof S.value=="string"?S.value:JSON.stringify(S.value??null,null,2)})),...(e.executable.native??[]).map((S,b)=>({kind:"code",title:`Executable native ${String(b+1)}: ${S.kind}`,language:gYt(S.encoding),body:typeof S.value=="string"?S.value:JSON.stringify(S.value??null,null,2)}))],h=[{kind:"facts",title:"Overview",items:l},...r.description?[{kind:"markdown",title:"Description",body:r.description}]:[],...[Ost("Capability",e.capability),Ost("Executable",{id:e.executable.id,adapterKey:e.executable.adapterKey,bindingVersion:e.executable.bindingVersion,binding:e.executable.binding,projection:e.executable.projection,display:e.executable.display??null}),Ost("Documentation",{summary:e.capability.surface.summary,description:e.capability.surface.description})].filter(S=>S!==null),...d];return{summary:r,contract:s,sections:h}}),SYt=e=>dx.gen(function*(){let r=yield*yYt({scopeId:e.scopeId,sourceId:e.sourceId});if(r.kind==="empty")return{source:r.source,namespace:r.source.namespace??"",pipelineKind:"ir",tools:[]};let i=yield*Lat({catalogs:[r.catalogEntry],includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews});return{source:r.catalogEntry.source,namespace:r.catalogEntry.source.namespace??"",pipelineKind:"ir",tools:i}}),Vwn=e=>dx.gen(function*(){let r=yield*yYt({scopeId:e.scopeId,sourceId:e.sourceId});if(r.kind==="empty")return{source:r.source,namespace:r.source.namespace??"",pipelineKind:"ir",tool:null};let i=yield*Mat({catalogs:[r.catalogEntry],path:e.toolPath,includeSchemas:!0,includeTypePreviews:!1});return{source:r.catalogEntry.source,namespace:r.catalogEntry.source.namespace??"",pipelineKind:"ir",tool:i}}),Wwn=e=>{let r=0,i=[],s=vYt(e.tool),l=tte(s.path),d=tte(s.title??""),h=tte(s.description??""),S=s.tags.flatMap(tte),b=tte(`${s.method??""} ${s.pathTemplate??""}`);for(let A of e.queryTokens){if(l.includes(A)){r+=12,i.push(`path matches ${A} (+12)`);continue}if(S.includes(A)){r+=10,i.push(`tag matches ${A} (+10)`);continue}if(d.includes(A)){r+=8,i.push(`title matches ${A} (+8)`);continue}if(b.includes(A)){r+=6,i.push(`method/path matches ${A} (+6)`);continue}(h.includes(A)||e.tool.searchText.includes(A))&&(r+=2,i.push(`description/text matches ${A} (+2)`))}return r<=0?null:{path:e.tool.path,score:r,...s.description?{description:s.description}:{},...s.inputTypePreview?{inputTypePreview:s.inputTypePreview}:{},...s.outputTypePreview?{outputTypePreview:s.outputTypePreview}:{},reasons:i}},Rst=(e,r,i)=>r instanceof g9||r instanceof a$?r:e.unknownStorage(r,i),bYt=e=>dx.gen(function*(){let r=yield*SYt({...e,includeSchemas:!1,includeTypePreviews:!1});return{source:r.source,namespace:r.namespace,pipelineKind:r.pipelineKind,toolCount:r.tools.length,tools:r.tools.map(i=>qwn(i))}}).pipe(dx.mapError(r=>Rst(QIe.bundle,r,"Failed building source inspection bundle"))),xYt=e=>dx.gen(function*(){let i=(yield*Vwn({scopeId:e.scopeId,sourceId:e.sourceId,toolPath:e.toolPath})).tool;return i?yield*Jwn(i):yield*QIe.tool.notFound("Tool not found",`scopeId=${e.scopeId} sourceId=${e.sourceId} path=${e.toolPath}`)}).pipe(dx.mapError(r=>Rst(QIe.tool,r,"Failed building source inspection tool detail"))),TYt=e=>dx.gen(function*(){let r=yield*SYt({scopeId:e.scopeId,sourceId:e.sourceId,includeSchemas:!1,includeTypePreviews:!1}),i=tte(e.payload.query),s=r.tools.map(l=>Wwn({queryTokens:i,tool:l})).filter(l=>l!==null).sort((l,d)=>d.score-l.score||l.path.localeCompare(d.path)).slice(0,e.payload.limit??12);return{query:e.payload.query,queryTokens:i,bestPath:s[0]?.path??null,total:s.length,results:s}}).pipe(dx.mapError(r=>Rst(QIe.discover,r,"Failed building source inspection discovery")));import*as ZIe from"effect/Effect";var Gwn=vIe,Hwn=Gwn.filter(e=>e.detectSource!==void 0),EYt=e=>ZIe.gen(function*(){let r=yield*ZIe.try({try:()=>cFt(e.url),catch:l=>l instanceof Error?l:new Error(String(l))}),i=uFt(e.probeAuth),s=[...Hwn].sort((l,d)=>(d.discoveryPriority?.({normalizedUrl:r})??0)-(l.discoveryPriority?.({normalizedUrl:r})??0));for(let l of s){let d=yield*l.detectSource({normalizedUrl:r,headers:i});if(d)return d}return _Ft(r)});import*as kYt from"effect/Data";import*as CYt from"effect/Deferred";import*as e_ from"effect/Effect";import*as fx from"effect/Option";import*as Ik from"effect/Schema";var u4={create:sg("executions.create"),get:sg("executions.get"),resume:sg("executions.resume")},Lst="__EXECUTION_SUSPENDED__",DYt="detach",rte=e=>e===void 0?null:JSON.stringify(e),Kwn=e=>JSON.stringify(e===void 0?null:e),Qwn=e=>{if(e!==null)return JSON.parse(e)},Zwn=Ik.Literal("accept","decline","cancel"),Xwn=Ik.Struct({action:Zwn,content:Ik.optional(Ik.Record({key:Ik.String,value:Ik.Unknown}))}),AYt=Ik.decodeUnknown(Xwn),Ywn=e=>{let r=0;return{invoke:({path:i,args:s,context:l})=>(r+=1,e.toolInvoker.invoke({path:i,args:s,context:{...l,runId:e.executionId,callId:typeof l?.callId=="string"&&l.callId.length>0?l.callId:`call_${String(r)}`,executionStepSequence:r}}))}},Mst=e=>{let r=e?.executionStepSequence;return typeof r=="number"&&Number.isSafeInteger(r)&&r>0?r:null},eIn=(e,r)=>Hke.make(`${e}:step:${String(r)}`),wYt=e=>{let r=typeof e.context?.callId=="string"&&e.context.callId.length>0?e.context.callId:null;return r===null?e.interactionId:`${r}:${e.path}`},tIn=e=>L2.make(`${e.executionId}:${wYt(e)}`),IYt=e=>e==="live"||e==="live_form"?e:DYt,XIe=class extends kYt.TaggedError("ExecutionSuspendedError"){},rIn=e=>new XIe({executionId:e.executionId,interactionId:e.interactionId,message:`${Lst}:${e.executionId}:${e.interactionId}`}),PYt=e=>e instanceof XIe?!0:e instanceof Error?e.message.includes(Lst):typeof e=="string"&&e.includes(Lst),NYt=e=>e_.try({try:()=>{if(e.responseJson===null)throw new Error(`Interaction ${e.interactionId} has no stored response`);return JSON.parse(e.responseJson)},catch:r=>r instanceof Error?r:new Error(String(r))}).pipe(e_.flatMap(r=>AYt(r).pipe(e_.mapError(i=>new Error(String(i)))))),nIn=e=>{if(!(e.expectedPath===e.actualPath&&e.expectedArgsJson===e.actualArgsJson))throw new Error([`Durable execution mismatch for ${e.executionId} at tool step ${String(e.sequence)}.`,`Expected ${e.expectedPath}(${e.expectedArgsJson}) but replay reached ${e.actualPath}(${e.actualArgsJson}).`].join(" "))},iIn=(e,r)=>e_.gen(function*(){let i=Mfe(r.operation),s=yield*i.mapStorage(e.executions.getByScopeAndId(r.scopeId,r.executionId));return fx.isNone(s)?yield*i.notFound("Execution not found",`scopeId=${r.scopeId} executionId=${r.executionId}`):s.value}),YIe=(e,r)=>e_.gen(function*(){let i=Mfe(r.operation),s=yield*iIn(e,r),l=yield*i.child("pending_interaction").mapStorage(e.executionInteractions.getPendingByExecutionId(r.executionId));return{execution:s,pendingInteraction:fx.isSome(l)?l.value:null}}),OYt=(e,r)=>e_.gen(function*(){let i=yield*YIe(e,r);return i.execution.status!=="running"&&!(i.execution.status==="waiting_for_interaction"&&(i.pendingInteraction===null||i.pendingInteraction.id===r.previousPendingInteractionId))||r.attemptsRemaining<=0?i:(yield*e_.promise(()=>new Promise(s=>setTimeout(s,25))),yield*OYt(e,{...r,attemptsRemaining:r.attemptsRemaining-1}))}),oIn=e=>e_.gen(function*(){let r=Date.now(),i=yield*e.executorState.executionInteractions.getById(e.interactionId),s=Mst(e.request.context);return fx.isSome(i)&&i.value.status!=="pending"?yield*NYt({interactionId:e.interactionId,responseJson:i.value.responsePrivateJson??i.value.responseJson}):(fx.isNone(i)&&(yield*e.executorState.executionInteractions.insert({id:L2.make(e.interactionId),executionId:e.executionId,status:"pending",kind:e.request.elicitation.mode==="url"?"url":"form",purpose:"elicitation",payloadJson:rte({path:e.request.path,sourceKey:e.request.sourceKey,args:e.request.args,context:e.request.context,elicitation:e.request.elicitation})??"{}",responseJson:null,responsePrivateJson:null,createdAt:r,updatedAt:r})),s!==null&&(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,s,{status:"waiting",interactionId:L2.make(e.interactionId),updatedAt:r})),yield*e.executorState.executions.update(e.executionId,{status:"waiting_for_interaction",updatedAt:r}),yield*e.liveExecutionManager.publishState({executionId:e.executionId,state:"waiting_for_interaction"}),yield*rIn({executionId:e.executionId,interactionId:e.interactionId}))}),aIn=e=>{let r=e.liveExecutionManager.createOnElicitation({executorState:e.executorState,executionId:e.executionId});return i=>e_.gen(function*(){let s=wYt({interactionId:i.interactionId,path:i.path,context:i.context}),l=tIn({executionId:e.executionId,interactionId:i.interactionId,path:i.path,context:i.context}),d=yield*e.executorState.executionInteractions.getById(l);if(fx.isSome(d)&&d.value.status!=="pending")return yield*NYt({interactionId:l,responseJson:d.value.responsePrivateJson??d.value.responseJson});let h=e.interactionMode==="live"||e.interactionMode==="live_form"&&i.elicitation.mode!=="url";if(fx.isNone(d)&&h){let S=Mst(i.context);return S!==null&&(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,S,{status:"waiting",interactionId:L2.make(l),updatedAt:Date.now()})),yield*r({...i,interactionId:s})}return yield*oIn({executorState:e.executorState,executionId:e.executionId,liveExecutionManager:e.liveExecutionManager,request:i,interactionId:l})})},sIn=e=>({invoke:({path:r,args:i,context:s})=>e_.gen(function*(){let l=Mst(s);if(l===null)return yield*e.toolInvoker.invoke({path:r,args:i,context:s});let d=Kwn(i),h=yield*e.executorState.executionSteps.getByExecutionAndSequence(e.executionId,l);if(fx.isSome(h)){if(nIn({executionId:e.executionId,sequence:l,expectedPath:h.value.path,expectedArgsJson:h.value.argsJson,actualPath:r,actualArgsJson:d}),h.value.status==="completed")return Qwn(h.value.resultJson);if(h.value.status==="failed")return yield*_a("execution/service",h.value.errorText??`Stored tool step ${String(l)} failed`)}else{let S=Date.now();yield*e.executorState.executionSteps.insert({id:eIn(e.executionId,l),executionId:e.executionId,sequence:l,kind:"tool_call",status:"pending",path:r,argsJson:d,resultJson:null,errorText:null,interactionId:null,createdAt:S,updatedAt:S})}try{let S=yield*e.toolInvoker.invoke({path:r,args:i,context:s}),b=Date.now();return yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,l,{status:"completed",resultJson:rte(S),errorText:null,updatedAt:b}),S}catch(S){let b=Date.now();return PYt(S)?(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,l,{status:"waiting",updatedAt:b}),yield*e_.fail(S)):(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,l,{status:"failed",errorText:S instanceof Error?S.message:String(S),updatedAt:b}),yield*e_.fail(S))}})}),cIn=e=>e_.gen(function*(){if(PYt(e.outcome.error))return;if(e.outcome.error){let[s,l]=yield*e_.all([e.executorState.executions.getById(e.executionId),e.executorState.executionInteractions.getPendingByExecutionId(e.executionId)]);if(fx.isSome(s)&&s.value.status==="waiting_for_interaction"&&fx.isSome(l))return}let r=Date.now(),i=yield*e.executorState.executions.update(e.executionId,{status:e.outcome.error?"failed":"completed",resultJson:rte(e.outcome.result),errorText:e.outcome.error??null,logsJson:rte(e.outcome.logs??null),completedAt:r,updatedAt:r});if(fx.isNone(i)){yield*e.liveExecutionManager.clearRun(e.executionId);return}yield*e.liveExecutionManager.finishRun({executionId:e.executionId,state:i.value.status==="completed"?"completed":"failed"}),yield*e.executorState.executionSteps.deleteByExecutionId(e.executionId)}),lIn=e=>e_.gen(function*(){let r=Date.now(),i=yield*e.executorState.executions.update(e.executionId,{status:"failed",errorText:e.error,completedAt:r,updatedAt:r});if(fx.isNone(i)){yield*e.liveExecutionManager.clearRun(e.executionId);return}yield*e.liveExecutionManager.finishRun({executionId:e.executionId,state:"failed"}),yield*e.executorState.executionSteps.deleteByExecutionId(e.executionId)}),uIn=(e,r,i,s,l)=>r({scopeId:s.scopeId,actorScopeId:s.createdByScopeId,executionId:s.id,onElicitation:aIn({executorState:e,executionId:s.id,liveExecutionManager:i,interactionMode:l})}).pipe(e_.map(d=>({executor:d.executor,toolInvoker:Ywn({executionId:s.id,toolInvoker:sIn({executorState:e,executionId:s.id,toolInvoker:d.toolInvoker})})})),e_.flatMap(({executor:d,toolInvoker:h})=>d.execute(s.code,h)),e_.flatMap(d=>cIn({executorState:e,liveExecutionManager:i,executionId:s.id,outcome:d})),e_.catchAll(d=>lIn({executorState:e,liveExecutionManager:i,executionId:s.id,error:d instanceof Error?d.message:String(d)}).pipe(e_.catchAll(()=>i.clearRun(s.id))))),FYt=(e,r,i,s,l)=>e_.gen(function*(){let d=yield*bB();yield*e_.sync(()=>{let h=uIn(e,r,i,s,l);e_.runFork(SB(h,d))})}),RYt=(e,r,i,s)=>e_.gen(function*(){let l=yield*e.executions.getById(s.executionId);if(fx.isNone(l))return!1;let d=yield*e.executionInteractions.getPendingByExecutionId(s.executionId);if(fx.isNone(d)||l.value.status!=="waiting_for_interaction"&&l.value.status!=="failed")return!1;let h=Date.now(),b=[...yield*e.executionSteps.listByExecutionId(s.executionId)].reverse().find(L=>L.interactionId===d.value.id);b&&(yield*e.executionSteps.updateByExecutionAndSequence(s.executionId,b.sequence,{status:"waiting",errorText:null,updatedAt:h})),yield*e.executionInteractions.update(d.value.id,{status:s.response.action==="cancel"?"cancelled":"resolved",responseJson:rte(wfe(s.response)),responsePrivateJson:rte(s.response),updatedAt:h});let A=yield*e.executions.update(s.executionId,{status:"running",updatedAt:h});return fx.isNone(A)?!1:(yield*FYt(e,r,i,A.value,s.interactionMode),!0)}),pIn=(e,r,i,s)=>e_.gen(function*(){let l=s.payload.code,d=Date.now(),h={id:Hw.make(`exec_${crypto.randomUUID()}`),scopeId:s.scopeId,createdByScopeId:s.createdByScopeId,status:"pending",code:l,resultJson:null,errorText:null,logsJson:null,startedAt:null,completedAt:null,createdAt:d,updatedAt:d};yield*u4.create.child("insert").mapStorage(e.executions.insert(h));let S=yield*u4.create.child("mark_running").mapStorage(e.executions.update(h.id,{status:"running",startedAt:d,updatedAt:d}));if(fx.isNone(S))return yield*u4.create.notFound("Execution not found after insert",`executionId=${h.id}`);let b=yield*i.registerStateWaiter(h.id);return yield*FYt(e,r,i,S.value,IYt(s.payload.interactionMode)),yield*CYt.await(b),yield*YIe(e,{scopeId:s.scopeId,executionId:h.id,operation:u4.create})}),LYt=e=>e_.gen(function*(){let r=yield*dm,i=yield*c$,s=yield*BD;return yield*pIn(r,i,s,e)}),MYt=e=>e_.flatMap(dm,r=>YIe(r,{scopeId:e.scopeId,executionId:e.executionId,operation:u4.get})),ePe=e=>e_.gen(function*(){let r=yield*dm,i=yield*c$,s=yield*BD;return yield*RYt(r,i,s,{...e,interactionMode:e.interactionMode??DYt})}),jYt=e=>e_.gen(function*(){let r=yield*dm,i=yield*c$,s=yield*BD,l=yield*YIe(r,{scopeId:e.scopeId,executionId:e.executionId,operation:"executions.resume"});if(l.execution.status!=="waiting_for_interaction"&&!(l.execution.status==="failed"&&l.pendingInteraction!==null))return yield*u4.resume.badRequest("Execution is not waiting for interaction",`executionId=${e.executionId} status=${l.execution.status}`);let d=e.payload.responseJson,h=d===void 0?{action:"accept"}:yield*e_.try({try:()=>JSON.parse(d),catch:b=>u4.resume.badRequest("Invalid responseJson",b instanceof Error?b.message:String(b))}).pipe(e_.flatMap(b=>AYt(b).pipe(e_.mapError(A=>u4.resume.badRequest("Invalid responseJson",String(A))))));return!(yield*s.resolveInteraction({executionId:e.executionId,response:h}))&&!(yield*u4.resume.child("submit_interaction").mapStorage(RYt(r,i,s,{executionId:e.executionId,response:h,interactionMode:IYt(e.payload.interactionMode)})))?yield*u4.resume.badRequest("Resume is unavailable for this execution",`executionId=${e.executionId}`):yield*OYt(r,{scopeId:e.scopeId,executionId:e.executionId,operation:u4.resume,previousPendingInteractionId:l.pendingInteraction?.id??null,attemptsRemaining:400})});var _In=e=>e instanceof Error?e.message:String(e),jst=e=>{let r=_In(e);return new Error(`Failed initializing runtime: ${r}`)},dIn=e=>wy.gen(function*(){yield*(yield*r$).loadWorkspaceSourceCatalogToolIndex({scopeId:e.scopeId,actorScopeId:e.actorScopeId})}),fIn=()=>{let e={};return{tools:e,catalog:Z7({tools:e}),toolInvoker:Q7({tools:e}),toolPaths:new Set}},mIn={refreshWorkspaceInBackground:()=>wy.void,refreshSourceInBackground:()=>wy.void},$Yt=e=>({load:e.load,getOrProvision:e.getOrProvision}),UYt=e=>({load:e.load,writeProject:({config:r})=>e.writeProject(r),resolveRelativePath:e.resolveRelativePath}),zYt=e=>({load:e.load,write:({state:r})=>e.write(r)}),qYt=e=>({build:e.build,read:({sourceId:r})=>e.read(r),write:({sourceId:r,artifact:i})=>e.write({sourceId:r,artifact:i}),remove:({sourceId:r})=>e.remove(r)}),hIn=e=>Fh.mergeAll(Fh.succeed(Xw,e.resolve),Fh.succeed(dk,e.store),Fh.succeed(bT,e.delete),Fh.succeed(t8,e.update)),gIn=e=>Fh.succeed(r8,e.resolve),yIn=e=>({authArtifacts:e.auth.artifacts,authLeases:e.auth.leases,sourceOauthClients:e.auth.sourceOauthClients,scopeOauthClients:e.auth.scopeOauthClients,providerAuthGrants:e.auth.providerGrants,sourceAuthSessions:e.auth.sourceSessions,secretMaterials:e.secrets,executions:e.executions.runs,executionInteractions:e.executions.interactions,executionSteps:e.executions.steps}),vIn=e=>{let r=b_e({installationStore:$Yt(e.storage.installation),scopeConfigStore:UYt(e.storage.scopeConfig),scopeStateStore:zYt(e.storage.scopeState),sourceArtifactStore:qYt(e.storage.sourceArtifacts)}),i=Fh.succeed(S9,S9.of({load:()=>e.localToolRuntimeLoader?.load()??wy.succeed(fIn())})),s=Fh.succeed(k8,k8.of(e.sourceTypeDeclarationsRefresher??mIn)),l=Fh.mergeAll(Fh.succeed(dm,yIn(e.storage)),_et(e.localScopeState),r,Fh.succeed(BD,e.liveExecutionManager),s),d=hIn(e.storage.secrets).pipe(Fh.provide(l)),h=gIn(e.instanceConfig),S=oZt.pipe(Fh.provide(Fh.mergeAll(l,d))),b=TZt.pipe(Fh.provide(Fh.mergeAll(l,S))),A=h5t.pipe(Fh.provide(Fh.mergeAll(l,d))),L=DZt.pipe(Fh.provide(Fh.mergeAll(l,d,A))),V=uYt({getLocalServerBaseUrl:e.getLocalServerBaseUrl}).pipe(Fh.provide(Fh.mergeAll(l,h,d,S,L))),j=fYt({executionResolver:e.executionResolver,createInternalToolMap:e.createInternalToolMap}).pipe(Fh.provide(Fh.mergeAll(l,h,d,S,A,L,V,b,i)));return Fh.mergeAll(l,h,d,S,A,L,b,i,V,j)},JYt=(e,r)=>e.pipe(wy.provide(r.managedRuntime)),VYt=e=>wy.gen(function*(){let r=yield*e.services.storage.installation.getOrProvision().pipe(wy.mapError(jst)),i=yield*e.services.storage.scopeConfig.load().pipe(wy.mapError(jst)),s={...e.services.scope,scopeId:r.scopeId,actorScopeId:e.services.scope.actorScopeId??r.actorScopeId,resolutionScopeIds:e.services.scope.resolutionScopeIds??r.resolutionScopeIds},l=yield*xXt({loadedConfig:i}).pipe(wy.provide(b_e({installationStore:$Yt(e.services.storage.installation),scopeConfigStore:UYt(e.services.storage.scopeConfig),scopeStateStore:zYt(e.services.storage.scopeState),sourceArtifactStore:qYt(e.services.storage.sourceArtifacts)}))).pipe(wy.mapError(jst)),d={scope:s,installation:r,loadedConfig:{...i,config:l}},h=$at(),S=vIn({...e,...e.services,localScopeState:d,liveExecutionManager:h}),b=BYt.make(S);return yield*b.runtimeEffect,yield*AZt({scopeId:r.scopeId,actorScopeId:r.actorScopeId}).pipe(wy.provide(b),wy.catchAll(()=>wy.void)),yield*dIn({scopeId:r.scopeId,actorScopeId:r.actorScopeId}).pipe(wy.provide(b),wy.catchAll(()=>wy.void)),{storage:e.services.storage,localInstallation:r,managedRuntime:b,runtimeLayer:S,close:async()=>{await wy.runPromise(DJe()).catch(()=>{}),await b.dispose().catch(()=>{}),await e.services.storage.close?.().catch(()=>{})}}});var SIn=e=>e instanceof Error?e:new Error(String(e)),Vu=e=>UD.isEffect(e)?e:e instanceof Promise?UD.tryPromise({try:()=>e,catch:SIn}):UD.succeed(e),iS=e=>Vu(e).pipe(UD.map(r=>tPe.isOption(r)?r:tPe.fromNullable(r))),bIn=e=>({load:()=>Vu(e.load()),getOrProvision:()=>Vu(e.getOrProvision())}),xIn=e=>({load:()=>Vu(e.load()),writeProject:r=>Vu(e.writeProject(r)),resolveRelativePath:e.resolveRelativePath}),TIn=e=>({load:()=>Vu(e.load()),write:r=>Vu(e.write(r))}),EIn=e=>({build:e.build,read:r=>Vu(e.read(r)),write:r=>Vu(e.write(r)),remove:r=>Vu(e.remove(r))}),kIn=e=>({resolve:()=>Vu(e.resolve())}),CIn=e=>({load:()=>Vu(e.load())}),DIn=e=>({refreshWorkspaceInBackground:r=>Vu(e.refreshWorkspaceInBackground(r)).pipe(UD.orDie),refreshSourceInBackground:r=>Vu(e.refreshSourceInBackground(r)).pipe(UD.orDie)}),AIn=e=>({artifacts:{listByScopeId:r=>Vu(e.artifacts.listByScopeId(r)),listByScopeAndSourceId:r=>Vu(e.artifacts.listByScopeAndSourceId(r)),getByScopeSourceAndActor:r=>iS(e.artifacts.getByScopeSourceAndActor(r)),upsert:r=>Vu(e.artifacts.upsert(r)),removeByScopeSourceAndActor:r=>Vu(e.artifacts.removeByScopeSourceAndActor(r)),removeByScopeAndSourceId:r=>Vu(e.artifacts.removeByScopeAndSourceId(r))},leases:{listAll:()=>Vu(e.leases.listAll()),getByAuthArtifactId:r=>iS(e.leases.getByAuthArtifactId(r)),upsert:r=>Vu(e.leases.upsert(r)),removeByAuthArtifactId:r=>Vu(e.leases.removeByAuthArtifactId(r))},sourceOauthClients:{getByScopeSourceAndProvider:r=>iS(e.sourceOauthClients.getByScopeSourceAndProvider(r)),upsert:r=>Vu(e.sourceOauthClients.upsert(r)),removeByScopeAndSourceId:r=>Vu(e.sourceOauthClients.removeByScopeAndSourceId(r))},scopeOauthClients:{listByScopeAndProvider:r=>Vu(e.scopeOauthClients.listByScopeAndProvider(r)),getById:r=>iS(e.scopeOauthClients.getById(r)),upsert:r=>Vu(e.scopeOauthClients.upsert(r)),removeById:r=>Vu(e.scopeOauthClients.removeById(r))},providerGrants:{listByScopeId:r=>Vu(e.providerGrants.listByScopeId(r)),listByScopeActorAndProvider:r=>Vu(e.providerGrants.listByScopeActorAndProvider(r)),getById:r=>iS(e.providerGrants.getById(r)),upsert:r=>Vu(e.providerGrants.upsert(r)),removeById:r=>Vu(e.providerGrants.removeById(r))},sourceSessions:{listAll:()=>Vu(e.sourceSessions.listAll()),listByScopeId:r=>Vu(e.sourceSessions.listByScopeId(r)),getById:r=>iS(e.sourceSessions.getById(r)),getByState:r=>iS(e.sourceSessions.getByState(r)),getPendingByScopeSourceAndActor:r=>iS(e.sourceSessions.getPendingByScopeSourceAndActor(r)),insert:r=>Vu(e.sourceSessions.insert(r)),update:(r,i)=>iS(e.sourceSessions.update(r,i)),upsert:r=>Vu(e.sourceSessions.upsert(r)),removeByScopeAndSourceId:(r,i)=>Vu(e.sourceSessions.removeByScopeAndSourceId(r,i))}}),wIn=e=>({getById:r=>iS(e.getById(r)),listAll:()=>Vu(e.listAll()),upsert:r=>Vu(e.upsert(r)),updateById:(r,i)=>iS(e.updateById(r,i)),removeById:r=>Vu(e.removeById(r)),resolve:r=>Vu(e.resolve(r)),store:r=>Vu(e.store(r)),delete:r=>Vu(e.delete(r)),update:r=>Vu(e.update(r))}),IIn=e=>({runs:{getById:r=>iS(e.runs.getById(r)),getByScopeAndId:(r,i)=>iS(e.runs.getByScopeAndId(r,i)),insert:r=>Vu(e.runs.insert(r)),update:(r,i)=>iS(e.runs.update(r,i))},interactions:{getById:r=>iS(e.interactions.getById(r)),listByExecutionId:r=>Vu(e.interactions.listByExecutionId(r)),getPendingByExecutionId:r=>iS(e.interactions.getPendingByExecutionId(r)),insert:r=>Vu(e.interactions.insert(r)),update:(r,i)=>iS(e.interactions.update(r,i))},steps:{getByExecutionAndSequence:(r,i)=>iS(e.steps.getByExecutionAndSequence(r,i)),listByExecutionId:r=>Vu(e.steps.listByExecutionId(r)),insert:r=>Vu(e.steps.insert(r)),deleteByExecutionId:r=>Vu(e.steps.deleteByExecutionId(r)),updateByExecutionAndSequence:(r,i,s)=>iS(e.steps.updateByExecutionAndSequence(r,i,s))}}),nte=e=>({createRuntime:r=>UD.flatMap(Vu(e.loadRepositories(r)),i=>VYt({...r,services:{scope:i.scope,storage:{installation:bIn(i.installation),scopeConfig:xIn(i.workspace.config),scopeState:TIn(i.workspace.state),sourceArtifacts:EIn(i.workspace.sourceArtifacts),auth:AIn(i.workspace.sourceAuth),secrets:wIn(i.secrets),executions:IIn(i.executions),close:i.close},localToolRuntimeLoader:i.workspace.localTools?CIn(i.workspace.localTools):void 0,sourceTypeDeclarationsRefresher:i.workspace.sourceTypeDeclarations?DIn(i.workspace.sourceTypeDeclarations):void 0,instanceConfig:kIn(i.instanceConfig)}}))});import*as qst from"effect/Effect";import*as ote from"effect/Effect";import*as Pk from"effect/Effect";import*as WYt from"effect/Option";var zD={installation:sg("local.installation.get"),sourceCredentialComplete:sg("sources.credentials.complete"),sourceCredentialPage:sg("sources.credentials.page"),sourceCredentialSubmit:sg("sources.credentials.submit")},Bst=e=>typeof e=="object"&&e!==null,$st=e=>typeof e=="string"?e:null,rPe=e=>{if(e==null)return null;let r=e.trim();return r.length>0?r:null},PIn=e=>{try{if(e.purpose!=="source_connect_oauth2"&&e.purpose!=="source_connect_secret"&&e.purpose!=="elicitation")return null;let r=JSON.parse(e.payloadJson);if(!Bst(r))return null;let i=r.args,s=r.elicitation;if(!Bst(i)||!Bst(s)||r.path!=="executor.sources.add")return null;let l=e.purpose==="elicitation"?s.mode==="url"?"source_connect_oauth2":"source_connect_secret":e.purpose;if(l==="source_connect_oauth2"&&s.mode!=="url"||l==="source_connect_secret"&&s.mode!=="form")return null;let d=rPe($st(i.scopeId)),h=rPe($st(i.sourceId)),S=rPe($st(s.message));return d===null||h===null||S===null?null:{interactionId:e.id,executionId:e.executionId,status:e.status,message:S,scopeId:Ed.make(d),sourceId:vf.make(h)}}catch{return null}},GYt=e=>Pk.gen(function*(){let r=yield*dm,i=yield*l4,s=yield*r.executionInteractions.getById(e.interactionId).pipe(Pk.mapError(h=>e.operation.unknownStorage(h,`Failed loading execution interaction ${e.interactionId}`)));if(WYt.isNone(s))return yield*e.operation.notFound("Source credential request not found",`interactionId=${e.interactionId}`);let l=PIn(s.value);if(l===null||l.scopeId!==e.scopeId||l.sourceId!==e.sourceId)return yield*e.operation.notFound("Source credential request not found",`scopeId=${e.scopeId} sourceId=${e.sourceId} interactionId=${e.interactionId}`);let d=yield*i.getSourceById({scopeId:e.scopeId,sourceId:e.sourceId}).pipe(Pk.mapError(h=>e.operation.unknownStorage(h,`Failed loading source ${e.sourceId}`)));return{...l,sourceLabel:d.name,endpoint:d.endpoint}}),HYt=()=>Pk.gen(function*(){return yield*(yield*FV).load().pipe(Pk.mapError(r=>zD.installation.unknownStorage(r,"Failed loading local installation")))}),KYt=e=>GYt({...e,operation:zD.sourceCredentialPage}),QYt=e=>Pk.gen(function*(){let r=yield*GYt({scopeId:e.scopeId,sourceId:e.sourceId,interactionId:e.interactionId,operation:zD.sourceCredentialSubmit});if(r.status!=="pending")return yield*zD.sourceCredentialSubmit.badRequest("Source credential request is no longer active",`interactionId=${r.interactionId} status=${r.status}`);let i=yield*BD;if(e.action==="cancel")return!(yield*i.resolveInteraction({executionId:r.executionId,response:{action:"cancel"}}))&&!(yield*ePe({executionId:r.executionId,response:{action:"cancel"}}).pipe(Pk.mapError(A=>zD.sourceCredentialSubmit.unknownStorage(A,`Failed resuming execution for interaction ${r.interactionId}`))))?yield*zD.sourceCredentialSubmit.badRequest("Source credential request is no longer resumable",`interactionId=${r.interactionId}`):{kind:"cancelled",sourceLabel:r.sourceLabel,endpoint:r.endpoint};if(e.action==="continue")return!(yield*i.resolveInteraction({executionId:r.executionId,response:{action:"accept",content:ust()}}))&&!(yield*ePe({executionId:r.executionId,response:{action:"accept",content:ust()}}).pipe(Pk.mapError(A=>zD.sourceCredentialSubmit.unknownStorage(A,`Failed resuming execution for interaction ${r.interactionId}`))))?yield*zD.sourceCredentialSubmit.badRequest("Source credential request is no longer resumable",`interactionId=${r.interactionId}`):{kind:"continued",sourceLabel:r.sourceLabel,endpoint:r.endpoint};let s=rPe(e.token);if(s===null)return yield*zD.sourceCredentialSubmit.badRequest("Missing token",`interactionId=${r.interactionId}`);let d=yield*(yield*l4).storeSecretMaterial({purpose:"auth_material",value:s}).pipe(Pk.mapError(S=>zD.sourceCredentialSubmit.unknownStorage(S,`Failed storing credential material for interaction ${r.interactionId}`)));return!(yield*i.resolveInteraction({executionId:r.executionId,response:{action:"accept",content:pst(d)}}))&&!(yield*ePe({executionId:r.executionId,response:{action:"accept",content:pst(d)}}).pipe(Pk.mapError(b=>zD.sourceCredentialSubmit.unknownStorage(b,`Failed resuming execution for interaction ${r.interactionId}`))))?yield*zD.sourceCredentialSubmit.badRequest("Source credential request is no longer resumable",`interactionId=${r.interactionId}`):{kind:"stored",sourceLabel:r.sourceLabel,endpoint:r.endpoint}}),ZYt=e=>Pk.gen(function*(){return yield*(yield*l4).completeSourceCredentialSetup(e).pipe(Pk.mapError(i=>zD.sourceCredentialComplete.unknownStorage(i,"Failed completing source credential setup")))});import*as mx from"effect/Effect";import*as nPe from"effect/Option";var p4=(e,r)=>new a$({operation:e,message:r,details:r}),XYt=()=>mx.flatMap(r8,e=>e()),YYt=()=>mx.gen(function*(){let e=yield*dm,r=yield*uy,i=yield*fee().pipe(mx.mapError(()=>p4("secrets.list","Failed resolving local scope."))),s=yield*e.secretMaterials.listAll().pipe(mx.mapError(()=>p4("secrets.list","Failed listing secrets."))),l=yield*r.listLinkedSecretSourcesInScope(i.installation.scopeId,{actorScopeId:i.installation.actorScopeId}).pipe(mx.mapError(()=>p4("secrets.list","Failed loading linked sources.")));return s.map(d=>({...d,linkedSources:l.get(d.id)??[]}))}),eer=e=>mx.gen(function*(){let r=e.name.trim(),i=e.value,s=e.purpose??"auth_material";if(r.length===0)return yield*new Yee({operation:"secrets.create",message:"Secret name is required.",details:"Secret name is required."});let l=yield*dm,h=yield*(yield*dk)({name:r,purpose:s,value:i,providerId:e.providerId}).pipe(mx.mapError(A=>p4("secrets.create",A instanceof Error?A.message:"Failed creating secret."))),S=QN.make(h.handle),b=yield*l.secretMaterials.getById(S).pipe(mx.mapError(()=>p4("secrets.create","Failed loading created secret.")));return nPe.isNone(b)?yield*p4("secrets.create",`Created secret not found: ${h.handle}`):{id:b.value.id,name:b.value.name,providerId:b.value.providerId,purpose:b.value.purpose,createdAt:b.value.createdAt,updatedAt:b.value.updatedAt}}),ter=e=>mx.gen(function*(){let r=QN.make(e.secretId),s=yield*(yield*dm).secretMaterials.getById(r).pipe(mx.mapError(()=>p4("secrets.update","Failed looking up secret.")));if(nPe.isNone(s))return yield*new g9({operation:"secrets.update",message:`Secret not found: ${e.secretId}`,details:`Secret not found: ${e.secretId}`});let l={};e.payload.name!==void 0&&(l.name=e.payload.name.trim()||null),e.payload.value!==void 0&&(l.value=e.payload.value);let h=yield*(yield*t8)({ref:{providerId:s.value.providerId,handle:s.value.id},...l}).pipe(mx.mapError(()=>p4("secrets.update","Failed updating secret.")));return{id:h.id,providerId:h.providerId,name:h.name,purpose:h.purpose,createdAt:h.createdAt,updatedAt:h.updatedAt}}),rer=e=>mx.gen(function*(){let r=QN.make(e),s=yield*(yield*dm).secretMaterials.getById(r).pipe(mx.mapError(()=>p4("secrets.delete","Failed looking up secret.")));return nPe.isNone(s)?yield*new g9({operation:"secrets.delete",message:`Secret not found: ${e}`,details:`Secret not found: ${e}`}):(yield*(yield*bT)({providerId:s.value.providerId,handle:s.value.id}).pipe(mx.mapError(()=>p4("secrets.delete","Failed removing secret."))))?{removed:!0}:yield*p4("secrets.delete",`Failed removing secret: ${e}`)});import*as ner from"effect/Either";import*as py from"effect/Effect";import*as Ust from"effect/Effect";var ite=(e,r)=>r.pipe(Ust.mapError(i=>Mfe(e).storage(i)));var bI={list:sg("sources.list"),create:sg("sources.create"),get:sg("sources.get"),update:sg("sources.update"),remove:sg("sources.remove")},NIn=e=>l0(e).shouldAutoProbe(e),ier=e=>py.gen(function*(){let r=yield*SI,i=NIn(e.source),s=i?{...e.source,status:"connected"}:e.source,l=yield*py.either(r.sync({source:s,actorScopeId:e.actorScopeId}));return yield*ner.match(l,{onRight:()=>py.gen(function*(){if(i){let d=yield*f9({source:e.source,payload:{status:"connected",lastError:null},now:Date.now()}).pipe(py.mapError(h=>e.operation.badRequest("Failed updating source status",h instanceof Error?h.message:String(h))));return yield*ite(e.operation.child("source_connected"),e.sourceStore.persistSource(d,{actorScopeId:e.actorScopeId})),d}return e.source}),onLeft:d=>py.gen(function*(){if(i||e.source.enabled&&e.source.status==="connected"){let h=yield*f9({source:e.source,payload:{status:"error",lastError:d.message},now:Date.now()}).pipe(py.mapError(S=>e.operation.badRequest("Failed indexing source tools",S instanceof Error?S.message:String(S))));yield*ite(e.operation.child("source_error"),e.sourceStore.persistSource(h,{actorScopeId:e.actorScopeId}))}return yield*e.operation.unknownStorage(d,"Failed syncing source tools")})})}),oer=e=>py.flatMap(dm,()=>py.gen(function*(){return yield*(yield*uy).loadSourcesInScope(e.scopeId,{actorScopeId:e.actorScopeId}).pipe(py.mapError(i=>bI.list.unknownStorage(i,"Failed projecting stored sources")))})),aer=e=>py.flatMap(dm,r=>py.gen(function*(){let i=yield*uy,s=Date.now(),l=yield*dW({scopeId:e.scopeId,sourceId:vf.make(`src_${crypto.randomUUID()}`),payload:e.payload,now:s}).pipe(py.mapError(S=>bI.create.badRequest("Invalid source definition",S instanceof Error?S.message:String(S)))),d=yield*ite(bI.create.child("persist"),i.persistSource(l,{actorScopeId:e.actorScopeId}));return yield*ier({store:r,sourceStore:i,source:d,actorScopeId:e.actorScopeId,operation:bI.create})})),ser=e=>py.flatMap(dm,()=>py.gen(function*(){return yield*(yield*uy).loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId,actorScopeId:e.actorScopeId}).pipe(py.mapError(i=>i instanceof Error&&i.message.startsWith("Source not found:")?bI.get.notFound("Source not found",`scopeId=${e.scopeId} sourceId=${e.sourceId}`):bI.get.unknownStorage(i,"Failed projecting stored source")))})),cer=e=>py.flatMap(dm,r=>py.gen(function*(){let i=yield*uy,s=yield*i.loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId,actorScopeId:e.actorScopeId}).pipe(py.mapError(S=>S instanceof Error&&S.message.startsWith("Source not found:")?bI.update.notFound("Source not found",`scopeId=${e.scopeId} sourceId=${e.sourceId}`):bI.update.unknownStorage(S,"Failed projecting stored source"))),l=yield*f9({source:s,payload:e.payload,now:Date.now()}).pipe(py.mapError(S=>bI.update.badRequest("Invalid source definition",S instanceof Error?S.message:String(S)))),d=yield*ite(bI.update.child("persist"),i.persistSource(l,{actorScopeId:e.actorScopeId}));return yield*ier({store:r,sourceStore:i,source:d,actorScopeId:e.actorScopeId,operation:bI.update})})),ler=e=>py.flatMap(dm,()=>py.gen(function*(){let r=yield*uy;return{removed:yield*ite(bI.remove.child("remove"),r.removeSourceById({scopeId:e.scopeId,sourceId:e.sourceId}))}}));var OIn=e=>{let r=e.localInstallation,i=r.scopeId,s=r.actorScopeId,l=S=>JYt(S,e),d=S=>l(ote.flatMap(l4,S)),h=()=>{let S=crypto.randomUUID();return{executionId:Hw.make(`exec_sdk_${S}`),interactionId:`executor.sdk.${S}`}};return{runtime:e,installation:r,scopeId:i,actorScopeId:s,resolutionScopeIds:r.resolutionScopeIds,close:()=>e.close(),local:{installation:()=>l(HYt()),config:()=>l(XYt()),credentials:{get:({sourceId:S,interactionId:b})=>l(KYt({scopeId:i,sourceId:S,interactionId:b})),submit:({sourceId:S,interactionId:b,action:A,token:L})=>l(QYt({scopeId:i,sourceId:S,interactionId:b,action:A,token:L})),complete:({sourceId:S,state:b,code:A,error:L,errorDescription:V})=>l(ZYt({scopeId:i,sourceId:S,state:b,code:A,error:L,errorDescription:V}))}},secrets:{list:()=>l(YYt()),create:S=>l(eer(S)),update:S=>l(ter(S)),remove:S=>l(rer(S))},policies:{list:()=>l(DXt(i)),create:S=>l(AXt({scopeId:i,payload:S})),get:S=>l(wXt({scopeId:i,policyId:S})),update:(S,b)=>l(IXt({scopeId:i,policyId:S,payload:b})),remove:S=>l(PXt({scopeId:i,policyId:S})).pipe(ote.map(b=>b.removed))},sources:{add:(S,b)=>d(A=>{let L=h();return A.addExecutorSource({...S,scopeId:i,actorScopeId:s,executionId:L.executionId,interactionId:L.interactionId},b)}),connect:S=>d(b=>b.connectMcpSource({...S,scopeId:i,actorScopeId:s})),connectBatch:S=>d(b=>{let A=h();return b.connectGoogleDiscoveryBatch({...S,scopeId:i,actorScopeId:s,executionId:A.executionId,interactionId:A.interactionId})}),discover:S=>l(EYt(S)),list:()=>l(oer({scopeId:i,actorScopeId:s})),create:S=>l(aer({scopeId:i,actorScopeId:s,payload:S})),get:S=>l(ser({scopeId:i,sourceId:S,actorScopeId:s})),update:(S,b)=>l(cer({scopeId:i,sourceId:S,actorScopeId:s,payload:b})),remove:S=>l(ler({scopeId:i,sourceId:S})).pipe(ote.map(b=>b.removed)),inspection:{get:S=>l(bYt({scopeId:i,sourceId:S})),tool:({sourceId:S,toolPath:b})=>l(xYt({scopeId:i,sourceId:S,toolPath:b})),discover:({sourceId:S,payload:b})=>l(TYt({scopeId:i,sourceId:S,payload:b}))},oauthClients:{list:S=>d(b=>b.listScopeOauthClients({scopeId:i,providerKey:S})),create:S=>d(b=>b.createScopeOauthClient({scopeId:i,providerKey:S.providerKey,label:S.label,oauthClient:S.oauthClient})),remove:S=>d(b=>b.removeScopeOauthClient({scopeId:i,oauthClientId:S}))},providerGrants:{remove:S=>d(b=>b.removeProviderAuthGrant({scopeId:i,grantId:S}))}},oauth:{startSourceAuth:S=>d(b=>b.startSourceOAuthSession({...S,scopeId:i,actorScopeId:s})),completeSourceAuth:({state:S,code:b,error:A,errorDescription:L})=>d(V=>V.completeSourceOAuthSession({state:S,code:b,error:A,errorDescription:L})),completeProviderCallback:S=>d(b=>b.completeProviderOauthCallback({...S,scopeId:S.scopeId??i,actorScopeId:S.actorScopeId??s}))},executions:{create:S=>l(LYt({scopeId:i,payload:S,createdByScopeId:s})),get:S=>l(MYt({scopeId:i,executionId:S})),resume:(S,b)=>l(jYt({scopeId:i,executionId:S,payload:b,resumedByScopeId:s}))}}},zst=e=>ote.map(e.backend.createRuntime({executionResolver:e.executionResolver,createInternalToolMap:e.createInternalToolMap,resolveSecretMaterial:e.resolveSecretMaterial,getLocalServerBaseUrl:e.getLocalServerBaseUrl}),OIn);var FIn=e=>{let r=i=>qst.runPromise(i);return{installation:e.installation,scopeId:e.scopeId,actorScopeId:e.actorScopeId,resolutionScopeIds:e.resolutionScopeIds,close:()=>e.close(),local:{installation:()=>r(e.local.installation()),config:()=>r(e.local.config()),credentials:{get:i=>r(e.local.credentials.get(i)),submit:i=>r(e.local.credentials.submit(i)),complete:i=>r(e.local.credentials.complete(i))}},secrets:{list:()=>r(e.secrets.list()),create:i=>r(e.secrets.create(i)),update:i=>r(e.secrets.update(i)),remove:i=>r(e.secrets.remove(i))},policies:{list:()=>r(e.policies.list()),create:i=>r(e.policies.create(i)),get:i=>r(e.policies.get(i)),update:(i,s)=>r(e.policies.update(i,s)),remove:i=>r(e.policies.remove(i))},sources:{add:(i,s)=>r(e.sources.add(i,s)),connect:i=>r(e.sources.connect(i)),connectBatch:i=>r(e.sources.connectBatch(i)),discover:i=>r(e.sources.discover(i)),list:()=>r(e.sources.list()),create:i=>r(e.sources.create(i)),get:i=>r(e.sources.get(i)),update:(i,s)=>r(e.sources.update(i,s)),remove:i=>r(e.sources.remove(i)),inspection:{get:i=>r(e.sources.inspection.get(i)),tool:i=>r(e.sources.inspection.tool(i)),discover:i=>r(e.sources.inspection.discover(i))},oauthClients:{list:i=>r(e.sources.oauthClients.list(i)),create:i=>r(e.sources.oauthClients.create(i)),remove:i=>r(e.sources.oauthClients.remove(i))},providerGrants:{remove:i=>r(e.sources.providerGrants.remove(i))}},oauth:{startSourceAuth:i=>r(e.oauth.startSourceAuth(i)),completeSourceAuth:i=>r(e.oauth.completeSourceAuth(i)),completeProviderCallback:i=>r(e.oauth.completeProviderCallback(i))},executions:{create:i=>r(e.executions.create(i)),get:i=>r(e.executions.get(i)),resume:(i,s)=>r(e.executions.resume(i,s))}}},Jst=async e=>FIn(await qst.runPromise(zst(e)));import{FileSystem as Ntr}from"@effect/platform";import{NodeFileSystem as M6n}from"@effect/platform-node";import*as _v from"effect/Effect";import{homedir as zfe}from"node:os";import{basename as JIn,dirname as VIn,isAbsolute as WIn,join as sb,resolve as SW}from"node:path";import{FileSystem as lte}from"@effect/platform";function iPe(e,r=!1){let i=e.length,s=0,l="",d=0,h=16,S=0,b=0,A=0,L=0,V=0;function j($e,xt){let tr=0,ht=0;for(;tr<$e||!xt;){let wt=e.charCodeAt(s);if(wt>=48&&wt<=57)ht=ht*16+wt-48;else if(wt>=65&&wt<=70)ht=ht*16+wt-65+10;else if(wt>=97&&wt<=102)ht=ht*16+wt-97+10;else break;s++,tr++}return tr<$e&&(ht=-1),ht}function ie($e){s=$e,l="",d=0,h=16,V=0}function te(){let $e=s;if(e.charCodeAt(s)===48)s++;else for(s++;s=i){$e+=e.substring(xt,s),V=2;break}let tr=e.charCodeAt(s);if(tr===34){$e+=e.substring(xt,s),s++;break}if(tr===92){if($e+=e.substring(xt,s),s++,s>=i){V=2;break}switch(e.charCodeAt(s++)){case 34:$e+='"';break;case 92:$e+="\\";break;case 47:$e+="/";break;case 98:$e+="\b";break;case 102:$e+="\f";break;case 110:$e+=` +`;break;case 114:$e+="\r";break;case 116:$e+=" ";break;case 117:let wt=j(4,!0);wt>=0?$e+=String.fromCharCode(wt):V=4;break;default:V=5}xt=s;continue}if(tr>=0&&tr<=31)if(Bfe(tr)){$e+=e.substring(xt,s),V=2;break}else V=6;s++}return $e}function Re(){if(l="",V=0,d=s,b=S,L=A,s>=i)return d=i,h=17;let $e=e.charCodeAt(s);if(Vst($e)){do s++,l+=String.fromCharCode($e),$e=e.charCodeAt(s);while(Vst($e));return h=15}if(Bfe($e))return s++,l+=String.fromCharCode($e),$e===13&&e.charCodeAt(s)===10&&(s++,l+=` +`),S++,A=s,h=14;switch($e){case 123:return s++,h=1;case 125:return s++,h=2;case 91:return s++,h=3;case 93:return s++,h=4;case 58:return s++,h=6;case 44:return s++,h=5;case 34:return s++,l=X(),h=10;case 47:let xt=s-1;if(e.charCodeAt(s+1)===47){for(s+=2;s=12&&$e<=15);return $e}return{setPosition:ie,getPosition:()=>s,scan:r?pt:Re,getToken:()=>h,getTokenValue:()=>l,getTokenOffset:()=>d,getTokenLength:()=>s-d,getTokenStartLine:()=>b,getTokenStartCharacter:()=>d-L,getTokenError:()=>V}}function Vst(e){return e===32||e===9}function Bfe(e){return e===10||e===13}function ate(e){return e>=48&&e<=57}var uer;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(uer||(uer={}));var LIn=new Array(20).fill(0).map((e,r)=>" ".repeat(r)),ste=200,MIn={" ":{"\n":new Array(ste).fill(0).map((e,r)=>` +`+" ".repeat(r)),"\r":new Array(ste).fill(0).map((e,r)=>"\r"+" ".repeat(r)),"\r\n":new Array(ste).fill(0).map((e,r)=>`\r +`+" ".repeat(r))}," ":{"\n":new Array(ste).fill(0).map((e,r)=>` +`+" ".repeat(r)),"\r":new Array(ste).fill(0).map((e,r)=>"\r"+" ".repeat(r)),"\r\n":new Array(ste).fill(0).map((e,r)=>`\r +`+" ".repeat(r))}};var oPe;(function(e){e.DEFAULT={allowTrailingComma:!1}})(oPe||(oPe={}));function per(e,r=[],i=oPe.DEFAULT){let s=null,l=[],d=[];function h(b){Array.isArray(l)?l.push(b):s!==null&&(l[s]=b)}return _er(e,{onObjectBegin:()=>{let b={};h(b),d.push(l),l=b,s=null},onObjectProperty:b=>{s=b},onObjectEnd:()=>{l=d.pop()},onArrayBegin:()=>{let b=[];h(b),d.push(l),l=b,s=null},onArrayEnd:()=>{l=d.pop()},onLiteralValue:h,onError:(b,A,L)=>{r.push({error:b,offset:A,length:L})}},i),l[0]}function _er(e,r,i=oPe.DEFAULT){let s=iPe(e,!1),l=[],d=0;function h(yr){return yr?()=>d===0&&yr(s.getTokenOffset(),s.getTokenLength(),s.getTokenStartLine(),s.getTokenStartCharacter()):()=>!0}function S(yr){return yr?co=>d===0&&yr(co,s.getTokenOffset(),s.getTokenLength(),s.getTokenStartLine(),s.getTokenStartCharacter()):()=>!0}function b(yr){return yr?co=>d===0&&yr(co,s.getTokenOffset(),s.getTokenLength(),s.getTokenStartLine(),s.getTokenStartCharacter(),()=>l.slice()):()=>!0}function A(yr){return yr?()=>{d>0?d++:yr(s.getTokenOffset(),s.getTokenLength(),s.getTokenStartLine(),s.getTokenStartCharacter(),()=>l.slice())===!1&&(d=1)}:()=>!0}function L(yr){return yr?()=>{d>0&&d--,d===0&&yr(s.getTokenOffset(),s.getTokenLength(),s.getTokenStartLine(),s.getTokenStartCharacter())}:()=>!0}let V=A(r.onObjectBegin),j=b(r.onObjectProperty),ie=L(r.onObjectEnd),te=A(r.onArrayBegin),X=L(r.onArrayEnd),Re=b(r.onLiteralValue),Je=S(r.onSeparator),pt=h(r.onComment),$e=S(r.onError),xt=i&&i.disallowComments,tr=i&&i.allowTrailingComma;function ht(){for(;;){let yr=s.scan();switch(s.getTokenError()){case 4:wt(14);break;case 5:wt(15);break;case 3:wt(13);break;case 1:xt||wt(11);break;case 2:wt(12);break;case 6:wt(16);break}switch(yr){case 12:case 13:xt?wt(10):pt();break;case 16:wt(1);break;case 15:case 14:break;default:return yr}}}function wt(yr,co=[],Cs=[]){if($e(yr),co.length+Cs.length>0){let Cr=s.getToken();for(;Cr!==17;){if(co.indexOf(Cr)!==-1){ht();break}else if(Cs.indexOf(Cr)!==-1)break;Cr=ht()}}}function Ut(yr){let co=s.getTokenValue();return yr?Re(co):(j(co),l.push(co)),ht(),!0}function hr(){switch(s.getToken()){case 11:let yr=s.getTokenValue(),co=Number(yr);isNaN(co)&&(wt(2),co=0),Re(co);break;case 7:Re(null);break;case 8:Re(!0);break;case 9:Re(!1);break;default:return!1}return ht(),!0}function Hi(){return s.getToken()!==10?(wt(3,[],[2,5]),!1):(Ut(!1),s.getToken()===6?(Je(":"),ht(),Lo()||wt(4,[],[2,5])):wt(5,[],[2,5]),l.pop(),!0)}function un(){V(),ht();let yr=!1;for(;s.getToken()!==2&&s.getToken()!==17;){if(s.getToken()===5){if(yr||wt(4,[],[]),Je(","),ht(),s.getToken()===2&&tr)break}else yr&&wt(6,[],[]);Hi()||wt(4,[],[2,5]),yr=!0}return ie(),s.getToken()!==2?wt(7,[2],[]):ht(),!0}function xo(){te(),ht();let yr=!0,co=!1;for(;s.getToken()!==4&&s.getToken()!==17;){if(s.getToken()===5){if(co||wt(4,[],[]),Je(","),ht(),s.getToken()===4&&tr)break}else co&&wt(6,[],[]);yr?(l.push(0),yr=!1):l[l.length-1]++,Lo()||wt(4,[],[4,5]),co=!0}return X(),yr||l.pop(),s.getToken()!==4?wt(8,[4],[]):ht(),!0}function Lo(){switch(s.getToken()){case 3:return xo();case 1:return un();case 10:return Ut(!0);default:return hr()}}return ht(),s.getToken()===17?i.allowEmptyContent?!0:(wt(4,[],[]),!1):Lo()?(s.getToken()!==17&&wt(9,[],[]),!0):(wt(4,[],[]),!1)}var der;(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"})(der||(der={}));var fer;(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"})(fer||(fer={}));var her=per;var mer;(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"})(mer||(mer={}));function ger(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return""}import*as H0 from"effect/Effect";import*as Cer from"effect/Schema";import*as Ok from"effect/Data";var _y=e=>e instanceof Error?e.message:String(e),Nk=class extends Ok.TaggedError("LocalFileSystemError"){},l$=class extends Ok.TaggedError("LocalExecutorConfigDecodeError"){},aPe=class extends Ok.TaggedError("LocalWorkspaceStateDecodeError"){},yer=class extends Ok.TaggedError("LocalSourceArtifactDecodeError"){},sPe=class extends Ok.TaggedError("LocalToolTranspileError"){},$fe=class extends Ok.TaggedError("LocalToolImportError"){},u$=class extends Ok.TaggedError("LocalToolDefinitionError"){},cPe=class extends Ok.TaggedError("LocalToolPathConflictError"){},ver=class extends Ok.TaggedError("RuntimeLocalWorkspaceUnavailableError"){},Ser=class extends Ok.TaggedError("RuntimeLocalWorkspaceMismatchError"){},ber=class extends Ok.TaggedError("LocalConfiguredSourceNotFoundError"){},xer=class extends Ok.TaggedError("LocalSourceArtifactMissingError"){},Ter=class extends Ok.TaggedError("LocalUnsupportedSourceKindError"){};var Der=Cer.decodeUnknownSync(H7t),GIn=e=>`${JSON.stringify(e,null,2)} +`,qfe=e=>{let r=e.path.trim();return r.startsWith("~/")?sb(zfe(),r.slice(2)):r==="~"?zfe():WIn(r)?r:SW(e.scopeRoot,r)},Wst="executor.jsonc",Ufe=".executor",HIn="EXECUTOR_CONFIG_DIR",KIn="EXECUTOR_STATE_DIR",p$=(e,r)=>i=>new Nk({message:`Failed to ${r} ${e}: ${_y(i)}`,action:r,path:e,details:_y(i)}),cte=e=>{let r=e?.trim();return r&&r.length>0?r:void 0},QIn=(e={})=>{let r=e.env??process.env,i=e.platform??process.platform,s=e.homeDirectory??zfe(),l=cte(r[HIn]);return l||(i==="win32"?sb(cte(r.LOCALAPPDATA)??sb(s,"AppData","Local"),"Executor"):i==="darwin"?sb(s,"Library","Application Support","Executor"):sb(cte(r.XDG_CONFIG_HOME)??sb(s,".config"),"executor"))},ZIn=(e={})=>{let r=e.env??process.env,i=e.platform??process.platform,s=e.homeDirectory??zfe(),l=cte(r[KIn]);return l||(i==="win32"?sb(cte(r.LOCALAPPDATA)??sb(s,"AppData","Local"),"Executor","State"):i==="darwin"?sb(s,"Library","Application Support","Executor","State"):sb(cte(r.XDG_STATE_HOME)??sb(s,".local","state"),"executor"))},XIn=(e={})=>{let r=QIn({env:e.env,platform:e.platform,homeDirectory:e.homeDirectory??zfe()});return[sb(r,Wst)]},YIn=(e={})=>H0.gen(function*(){let r=yield*lte.FileSystem,i=XIn(e);for(let s of i)if(yield*r.exists(s).pipe(H0.mapError(p$(s,"check config path"))))return s;return i[0]}),ePn=(e={})=>ZIn(e),Eer=(e,r)=>{let i=e.split(` +`);return r.map(s=>{let l=e.slice(0,s.offset).split(` +`),d=l.length,h=l[l.length-1]?.length??0,S=i[d-1],b=`line ${d}, column ${h+1}`,A=ger(s.error);return S?`${A} at ${b} +${S}`:`${A} at ${b}`}).join(` +`)},tPn=e=>{let r=[];try{let i=her(e.content,r,{allowTrailingComma:!0});if(r.length>0)throw new l$({message:`Invalid executor config at ${e.path}: ${Eer(e.content,r)}`,path:e.path,details:Eer(e.content,r)});return Der(i)}catch(i){throw i instanceof l$?i:new l$({message:`Invalid executor config at ${e.path}: ${_y(i)}`,path:e.path,details:_y(i)})}},rPn=(e,r)=>{if(!(!e&&!r))return{...e,...r}},nPn=(e,r)=>{if(!(!e&&!r))return{...e,...r}},iPn=(e,r)=>{if(!(!e&&!r))return{...e,...r}},oPn=(e,r)=>!e&&!r?null:Der({runtime:r?.runtime??e?.runtime,workspace:{...e?.workspace,...r?.workspace},sources:rPn(e?.sources,r?.sources),policies:nPn(e?.policies,r?.policies),secrets:{providers:iPn(e?.secrets?.providers,r?.secrets?.providers),defaults:{...e?.secrets?.defaults,...r?.secrets?.defaults}}}),aPn=e=>H0.gen(function*(){let r=yield*lte.FileSystem,i=sb(e,Ufe,Wst);return yield*r.exists(i).pipe(H0.mapError(p$(i,"check project config path"))),i}),sPn=e=>H0.gen(function*(){let r=yield*lte.FileSystem,i=sb(e,Ufe,Wst);return yield*r.exists(i).pipe(H0.mapError(p$(i,"check project config path")))}),cPn=e=>H0.gen(function*(){let r=yield*lte.FileSystem,i=SW(e),s=null,l=null;for(;;){if(s===null&&(yield*sPn(i))&&(s=i),l===null){let h=sb(i,".git");(yield*r.exists(h).pipe(H0.mapError(p$(h,"check git root"))))&&(l=i)}let d=VIn(i);if(d===i)break;i=d}return s??l??SW(e)}),Gst=(e={})=>H0.gen(function*(){let r=SW(e.cwd??process.cwd()),i=SW(e.workspaceRoot??(yield*cPn(r))),s=JIn(i)||"workspace",l=yield*aPn(i),d=SW(e.homeConfigPath??(yield*YIn())),h=SW(e.homeStateDirectory??ePn());return{cwd:r,workspaceRoot:i,workspaceName:s,configDirectory:sb(i,Ufe),projectConfigPath:l,homeConfigPath:d,homeStateDirectory:h,artifactsDirectory:sb(i,Ufe,"artifacts"),stateDirectory:sb(i,Ufe,"state")}}),ker=e=>H0.gen(function*(){let r=yield*lte.FileSystem;if(!(yield*r.exists(e).pipe(H0.mapError(p$(e,"check config path")))))return null;let s=yield*r.readFileString(e,"utf8").pipe(H0.mapError(p$(e,"read config")));return yield*H0.try({try:()=>tPn({path:e,content:s}),catch:l=>l instanceof l$?l:new l$({message:`Invalid executor config at ${e}: ${_y(l)}`,path:e,details:_y(l)})})}),Hst=e=>H0.gen(function*(){let[r,i]=yield*H0.all([ker(e.homeConfigPath),ker(e.projectConfigPath)]);return{config:oPn(r,i),homeConfig:r,projectConfig:i,homeConfigPath:e.homeConfigPath,projectConfigPath:e.projectConfigPath}}),Kst=e=>H0.gen(function*(){let r=yield*lte.FileSystem;yield*r.makeDirectory(e.context.configDirectory,{recursive:!0}).pipe(H0.mapError(p$(e.context.configDirectory,"create config directory"))),yield*r.writeFileString(e.context.projectConfigPath,GIn(e.config)).pipe(H0.mapError(p$(e.context.projectConfigPath,"write config")))});import{randomUUID as _Pn}from"node:crypto";import{dirname as Per,join as dPn}from"node:path";import{FileSystem as Yst}from"@effect/platform";import{NodeFileSystem as koi}from"@effect/platform-node";import*as pv from"effect/Effect";import*as z_ from"effect/Option";import*as hx from"effect/Schema";import{createHash as lPn}from"node:crypto";import*as Ier from"effect/Effect";var Aer=Ed.make("acc_local_default"),uPn=e=>lPn("sha256").update(e).digest("hex").slice(0,16),pPn=e=>e.replaceAll("\\","/"),wer=e=>Ed.make(`ws_local_${uPn(pPn(e.workspaceRoot))}`),lPe=e=>({actorScopeId:Aer,scopeId:wer(e),resolutionScopeIds:[wer(e),Aer]}),uPe=e=>Ier.succeed(lPe(e)),Qst=e=>uPe(e.context);var Ner=1,fPn="executor-state.json",mPn=hx.Struct({version:hx.Literal(Ner),authArtifacts:hx.Array(P7t),authLeases:hx.Array(q7t),sourceOauthClients:hx.Array(J7t),scopeOauthClients:hx.Array(V7t),providerAuthGrants:hx.Array(W7t),sourceAuthSessions:hx.Array(L7t),secretMaterials:hx.Array(G7t),executions:hx.Array(uQe),executionInteractions:hx.Array(pQe),executionSteps:hx.Array(X7t)}),hPn=hx.decodeUnknown(mPn),gPn=()=>({version:Ner,authArtifacts:[],authLeases:[],sourceOauthClients:[],scopeOauthClients:[],providerAuthGrants:[],sourceAuthSessions:[],secretMaterials:[],executions:[],executionInteractions:[],executionSteps:[]}),Ud=e=>JSON.parse(JSON.stringify(e)),yPn=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null,Xst=e=>{if(Array.isArray(e)){let l=!1;return{value:e.map(h=>{let S=Xst(h);return l=l||S.migrated,S.value}),migrated:l}}let r=yPn(e);if(r===null)return{value:e,migrated:!1};let i=!1,s={};for(let[l,d]of Object.entries(r)){let h=l;l==="workspaceId"?(h="scopeId",i=!0):l==="actorAccountId"?(h="actorScopeId",i=!0):l==="createdByAccountId"?(h="createdByScopeId",i=!0):l==="workspaceOauthClients"&&(h="scopeOauthClients",i=!0);let S=Xst(d);i=i||S.migrated,s[h]=S.value}return{value:s,migrated:i}},x9=(e,r)=>i=>new Nk({message:`Failed to ${r} ${e}: ${_y(i)}`,action:r,path:e,details:_y(i)}),Jfe=(e,r)=>(e??null)===(r??null),b9=e=>[...e].sort((r,i)=>r.updatedAt-i.updatedAt||r.id.localeCompare(i.id)),Zst=e=>[...e].sort((r,i)=>i.updatedAt-r.updatedAt||i.id.localeCompare(r.id)),pPe=e=>dPn(e.homeStateDirectory,"workspaces",lPe(e).scopeId,fPn),vPn=(e,r)=>r.pipe(pv.provideService(Yst.FileSystem,e));var SPn=e=>pv.gen(function*(){let r=yield*Yst.FileSystem,i=pPe(e);if(!(yield*r.exists(i).pipe(pv.mapError(x9(i,"check executor state path")))))return gPn();let l=yield*r.readFileString(i,"utf8").pipe(pv.mapError(x9(i,"read executor state"))),d=yield*pv.try({try:()=>JSON.parse(l),catch:x9(i,"parse executor state")}),h=Xst(d),S=yield*hPn(h.value).pipe(pv.mapError(x9(i,"decode executor state")));return h.migrated&&(yield*Oer(e,S)),S}),Oer=(e,r)=>pv.gen(function*(){let i=yield*Yst.FileSystem,s=pPe(e),l=`${s}.${_Pn()}.tmp`;yield*i.makeDirectory(Per(s),{recursive:!0}).pipe(pv.mapError(x9(Per(s),"create executor state directory"))),yield*i.writeFileString(l,`${JSON.stringify(r,null,2)} +`,{mode:384}).pipe(pv.mapError(x9(l,"write executor state"))),yield*i.rename(l,s).pipe(pv.mapError(x9(s,"replace executor state")))});var bPn=(e,r)=>{let i=null,s=Promise.resolve(),l=b=>pv.runPromise(vPn(r,b)),d=async()=>(i!==null||(i=await l(SPn(e))),i);return{read:b=>pv.tryPromise({try:async()=>(await s,b(Ud(await d()))),catch:x9(pPe(e),"read executor state")}),mutate:b=>pv.tryPromise({try:async()=>{let A,L=null;if(s=s.then(async()=>{try{let V=Ud(await d()),j=await b(V);i=j.state,A=j.value,await l(Oer(e,i))}catch(V){L=V}}),await s,L!==null)throw L;return A},catch:x9(pPe(e),"write executor state")})}},xPn=(e,r)=>{let i=bPn(e,r);return{authArtifacts:{listByScopeId:s=>i.read(l=>b9(l.authArtifacts.filter(d=>d.scopeId===s))),listByScopeAndSourceId:s=>i.read(l=>b9(l.authArtifacts.filter(d=>d.scopeId===s.scopeId&&d.sourceId===s.sourceId))),getByScopeSourceAndActor:s=>i.read(l=>{let d=l.authArtifacts.find(h=>h.scopeId===s.scopeId&&h.sourceId===s.sourceId&&h.slot===s.slot&&Jfe(h.actorScopeId,s.actorScopeId));return d?z_.some(Ud(d)):z_.none()}),upsert:s=>i.mutate(l=>{let d=l.authArtifacts.filter(h=>!(h.scopeId===s.scopeId&&h.sourceId===s.sourceId&&h.slot===s.slot&&Jfe(h.actorScopeId,s.actorScopeId)));return d.push(Ud(s)),{state:{...l,authArtifacts:d},value:void 0}}),removeByScopeSourceAndActor:s=>i.mutate(l=>{let d=l.authArtifacts.filter(h=>h.scopeId!==s.scopeId||h.sourceId!==s.sourceId||!Jfe(h.actorScopeId,s.actorScopeId)||s.slot!==void 0&&h.slot!==s.slot);return{state:{...l,authArtifacts:d},value:d.length!==l.authArtifacts.length}}),removeByScopeAndSourceId:s=>i.mutate(l=>{let d=l.authArtifacts.filter(h=>h.scopeId!==s.scopeId||h.sourceId!==s.sourceId);return{state:{...l,authArtifacts:d},value:l.authArtifacts.length-d.length}})},authLeases:{listAll:()=>i.read(s=>b9(s.authLeases)),getByAuthArtifactId:s=>i.read(l=>{let d=l.authLeases.find(h=>h.authArtifactId===s);return d?z_.some(Ud(d)):z_.none()}),upsert:s=>i.mutate(l=>{let d=l.authLeases.filter(h=>h.authArtifactId!==s.authArtifactId);return d.push(Ud(s)),{state:{...l,authLeases:d},value:void 0}}),removeByAuthArtifactId:s=>i.mutate(l=>{let d=l.authLeases.filter(h=>h.authArtifactId!==s);return{state:{...l,authLeases:d},value:d.length!==l.authLeases.length}})},sourceOauthClients:{getByScopeSourceAndProvider:s=>i.read(l=>{let d=l.sourceOauthClients.find(h=>h.scopeId===s.scopeId&&h.sourceId===s.sourceId&&h.providerKey===s.providerKey);return d?z_.some(Ud(d)):z_.none()}),upsert:s=>i.mutate(l=>{let d=l.sourceOauthClients.filter(h=>!(h.scopeId===s.scopeId&&h.sourceId===s.sourceId&&h.providerKey===s.providerKey));return d.push(Ud(s)),{state:{...l,sourceOauthClients:d},value:void 0}}),removeByScopeAndSourceId:s=>i.mutate(l=>{let d=l.sourceOauthClients.filter(h=>h.scopeId!==s.scopeId||h.sourceId!==s.sourceId);return{state:{...l,sourceOauthClients:d},value:l.sourceOauthClients.length-d.length}})},scopeOauthClients:{listByScopeAndProvider:s=>i.read(l=>b9(l.scopeOauthClients.filter(d=>d.scopeId===s.scopeId&&d.providerKey===s.providerKey))),getById:s=>i.read(l=>{let d=l.scopeOauthClients.find(h=>h.id===s);return d?z_.some(Ud(d)):z_.none()}),upsert:s=>i.mutate(l=>{let d=l.scopeOauthClients.filter(h=>h.id!==s.id);return d.push(Ud(s)),{state:{...l,scopeOauthClients:d},value:void 0}}),removeById:s=>i.mutate(l=>{let d=l.scopeOauthClients.filter(h=>h.id!==s);return{state:{...l,scopeOauthClients:d},value:d.length!==l.scopeOauthClients.length}})},providerAuthGrants:{listByScopeId:s=>i.read(l=>b9(l.providerAuthGrants.filter(d=>d.scopeId===s))),listByScopeActorAndProvider:s=>i.read(l=>b9(l.providerAuthGrants.filter(d=>d.scopeId===s.scopeId&&d.providerKey===s.providerKey&&Jfe(d.actorScopeId,s.actorScopeId)))),getById:s=>i.read(l=>{let d=l.providerAuthGrants.find(h=>h.id===s);return d?z_.some(Ud(d)):z_.none()}),upsert:s=>i.mutate(l=>{let d=l.providerAuthGrants.filter(h=>h.id!==s.id);return d.push(Ud(s)),{state:{...l,providerAuthGrants:d},value:void 0}}),removeById:s=>i.mutate(l=>{let d=l.providerAuthGrants.filter(h=>h.id!==s);return{state:{...l,providerAuthGrants:d},value:d.length!==l.providerAuthGrants.length}})},sourceAuthSessions:{listAll:()=>i.read(s=>b9(s.sourceAuthSessions)),listByScopeId:s=>i.read(l=>b9(l.sourceAuthSessions.filter(d=>d.scopeId===s))),getById:s=>i.read(l=>{let d=l.sourceAuthSessions.find(h=>h.id===s);return d?z_.some(Ud(d)):z_.none()}),getByState:s=>i.read(l=>{let d=l.sourceAuthSessions.find(h=>h.state===s);return d?z_.some(Ud(d)):z_.none()}),getPendingByScopeSourceAndActor:s=>i.read(l=>{let d=b9(l.sourceAuthSessions.filter(h=>h.scopeId===s.scopeId&&h.sourceId===s.sourceId&&h.status==="pending"&&Jfe(h.actorScopeId,s.actorScopeId)&&(s.credentialSlot===void 0||h.credentialSlot===s.credentialSlot)))[0]??null;return d?z_.some(Ud(d)):z_.none()}),insert:s=>i.mutate(l=>({state:{...l,sourceAuthSessions:[...l.sourceAuthSessions,Ud(s)]},value:void 0})),update:(s,l)=>i.mutate(d=>{let h=null,S=d.sourceAuthSessions.map(b=>b.id!==s?b:(h={...b,...Ud(l)},h));return{state:{...d,sourceAuthSessions:S},value:h?z_.some(Ud(h)):z_.none()}}),upsert:s=>i.mutate(l=>{let d=l.sourceAuthSessions.filter(h=>h.id!==s.id);return d.push(Ud(s)),{state:{...l,sourceAuthSessions:d},value:void 0}}),removeByScopeAndSourceId:(s,l)=>i.mutate(d=>{let h=d.sourceAuthSessions.filter(S=>S.scopeId!==s||S.sourceId!==l);return{state:{...d,sourceAuthSessions:h},value:h.length!==d.sourceAuthSessions.length}})},secretMaterials:{getById:s=>i.read(l=>{let d=l.secretMaterials.find(h=>h.id===s);return d?z_.some(Ud(d)):z_.none()}),listAll:()=>i.read(s=>Zst(s.secretMaterials)),upsert:s=>i.mutate(l=>{let d=l.secretMaterials.filter(h=>h.id!==s.id);return d.push(Ud(s)),{state:{...l,secretMaterials:d},value:void 0}}),updateById:(s,l)=>i.mutate(d=>{let h=null,S=d.secretMaterials.map(b=>b.id!==s?b:(h={...b,...l.name!==void 0?{name:l.name}:{},...l.value!==void 0?{value:l.value}:{},updatedAt:Date.now()},h));return{state:{...d,secretMaterials:S},value:h?z_.some(Ud(h)):z_.none()}}),removeById:s=>i.mutate(l=>{let d=l.secretMaterials.filter(h=>h.id!==s);return{state:{...l,secretMaterials:d},value:d.length!==l.secretMaterials.length}})},executions:{getById:s=>i.read(l=>{let d=l.executions.find(h=>h.id===s);return d?z_.some(Ud(d)):z_.none()}),getByScopeAndId:(s,l)=>i.read(d=>{let h=d.executions.find(S=>S.scopeId===s&&S.id===l);return h?z_.some(Ud(h)):z_.none()}),insert:s=>i.mutate(l=>({state:{...l,executions:[...l.executions,Ud(s)]},value:void 0})),update:(s,l)=>i.mutate(d=>{let h=null,S=d.executions.map(b=>b.id!==s?b:(h={...b,...Ud(l)},h));return{state:{...d,executions:S},value:h?z_.some(Ud(h)):z_.none()}})},executionInteractions:{getById:s=>i.read(l=>{let d=l.executionInteractions.find(h=>h.id===s);return d?z_.some(Ud(d)):z_.none()}),listByExecutionId:s=>i.read(l=>Zst(l.executionInteractions.filter(d=>d.executionId===s))),getPendingByExecutionId:s=>i.read(l=>{let d=Zst(l.executionInteractions.filter(h=>h.executionId===s&&h.status==="pending"))[0]??null;return d?z_.some(Ud(d)):z_.none()}),insert:s=>i.mutate(l=>({state:{...l,executionInteractions:[...l.executionInteractions,Ud(s)]},value:void 0})),update:(s,l)=>i.mutate(d=>{let h=null,S=d.executionInteractions.map(b=>b.id!==s?b:(h={...b,...Ud(l)},h));return{state:{...d,executionInteractions:S},value:h?z_.some(Ud(h)):z_.none()}})},executionSteps:{getByExecutionAndSequence:(s,l)=>i.read(d=>{let h=d.executionSteps.find(S=>S.executionId===s&&S.sequence===l);return h?z_.some(Ud(h)):z_.none()}),listByExecutionId:s=>i.read(l=>[...l.executionSteps].filter(d=>d.executionId===s).sort((d,h)=>d.sequence-h.sequence||h.updatedAt-d.updatedAt)),insert:s=>i.mutate(l=>({state:{...l,executionSteps:[...l.executionSteps,Ud(s)]},value:void 0})),deleteByExecutionId:s=>i.mutate(l=>({state:{...l,executionSteps:l.executionSteps.filter(d=>d.executionId!==s)},value:void 0})),updateByExecutionAndSequence:(s,l,d)=>i.mutate(h=>{let S=null,b=h.executionSteps.map(A=>A.executionId!==s||A.sequence!==l?A:(S={...A,...Ud(d)},S));return{state:{...h,executionSteps:b},value:S?z_.some(Ud(S)):z_.none()}})}}},Fer=(e,r)=>({executorState:xPn(e,r),close:async()=>{}});import{randomUUID as nct}from"node:crypto";import{spawn as Mer}from"node:child_process";import{isAbsolute as TPn}from"node:path";import{FileSystem as ict}from"@effect/platform";import{NodeFileSystem as EPn}from"@effect/platform-node";import*as Ec from"effect/Effect";import*as oct from"effect/Layer";import*as _Pe from"effect/Option";var act="env",kPn="params",T9="keychain",z8="local",bW=e=>e instanceof Error?e:new Error(String(e)),CPn="executor",ute=5e3,jer="DANGEROUSLY_ALLOW_ENV_SECRETS",Ber="EXECUTOR_SECRET_STORE_PROVIDER",DPn="EXECUTOR_KEYCHAIN_SERVICE_NAME",pte=e=>{if(e==null)return null;let r=e.trim();return r.length>0?r:null},APn=e=>{let r=pte(e)?.toLowerCase();return r==="1"||r==="true"||r==="yes"},sct=e=>{let r=pte(e)?.toLowerCase();return r===T9?T9:r===z8?z8:null},wPn=e=>e??APn(process.env[jer]),IPn=e=>pte(e)??pte(process.env[DPn])??CPn,Vfe=e=>{let r=e?.trim();return r&&r.length>0?r:null},$er=e=>({id:e.id,providerId:e.providerId,name:e.name,purpose:e.purpose,createdAt:e.createdAt,updatedAt:e.updatedAt}),PPn=(e=process.platform)=>e==="darwin"?"security":e==="linux"?"secret-tool":null,xW=e=>Ec.tryPromise({try:()=>new Promise((r,i)=>{let s=Mer(e.command,[...e.args],{stdio:"pipe",env:e.env}),l="",d="",h=!1,S=e.timeoutMs===void 0?null:setTimeout(()=>{h||(h=!0,s.kill("SIGKILL"),i(new Error(`${e.operation}: '${e.command}' timed out after ${e.timeoutMs}ms`)))},e.timeoutMs);s.stdout.on("data",b=>{l+=b.toString("utf8")}),s.stderr.on("data",b=>{d+=b.toString("utf8")}),s.on("error",b=>{h||(h=!0,S&&clearTimeout(S),i(new Error(`${e.operation}: failed spawning '${e.command}': ${b.message}`)))}),s.on("close",b=>{h||(h=!0,S&&clearTimeout(S),r({exitCode:b??0,stdout:l,stderr:d}))}),e.stdin!==void 0&&s.stdin.write(e.stdin),s.stdin.end()}),catch:r=>r instanceof Error?r:new Error(`${e.operation}: command execution failed: ${String(r)}`)}),Wfe=e=>{if(e.result.exitCode===0)return Ec.succeed(e.result);let r=Vfe(e.result.stderr)??Vfe(e.result.stdout)??"command returned non-zero exit code";return Ec.fail(_a("local/secret-material-providers",`${e.operation}: ${e.message}: ${r}`))},ect=new Map,NPn=e=>Ec.tryPromise({try:async()=>{let r=ect.get(e);if(r)return r;let i=new Promise(l=>{let d=Mer(e,["--help"],{stdio:"ignore"}),h=setTimeout(()=>{d.kill("SIGKILL"),l(!1)},2e3);d.on("error",()=>{clearTimeout(h),l(!1)}),d.on("close",()=>{clearTimeout(h),l(!0)})});ect.set(e,i);let s=await i;return s||ect.delete(e),s},catch:r=>r instanceof Error?r:new Error(`command.exists: failed checking '${e}': ${String(r)}`)}),OPn=(e=process.platform)=>{let r=PPn(e);return r===null?Ec.succeed(!1):NPn(r)},Uer=(e={})=>{let r=z8,i=e.storeProviderId??sct((e.env??process.env)[Ber]);return i?Ec.succeed(i):(e.platform??process.platform)!=="darwin"?Ec.succeed(r):OPn(e.platform).pipe(Ec.map(s=>s?T9:r),Ec.catchAll(()=>Ec.succeed(r)))},rct=e=>Ec.gen(function*(){let r=QN.make(e.id),i=yield*e.runtime.executorState.secretMaterials.getById(r);return _Pe.isNone(i)?yield*_a("local/secret-material-providers",`${e.operation}: secret material not found: ${e.id}`):i.value}),zer=e=>Ec.gen(function*(){let r=Date.now(),i=QN.make(`sec_${nct()}`);return yield*e.runtime.executorState.secretMaterials.upsert({id:i,providerId:e.providerId,handle:e.providerHandle,name:pte(e.name),purpose:e.purpose,value:e.value,createdAt:r,updatedAt:r}),{providerId:e.providerId,handle:i}}),tct=e=>Ec.gen(function*(){let r=yield*rct({id:e.ref.handle,runtime:e.runtime,operation:e.operation});return r.providerId!==T9?yield*_a("local/secret-material-providers",`${e.operation}: secret ${r.id} is stored in provider '${r.providerId}', not '${T9}'`):{providerHandle:r.handle,material:r}}),Rer=e=>{switch(process.platform){case"darwin":return xW({command:"security",args:["find-generic-password","-a",e.providerHandle,"-s",e.runtime.keychainServiceName,"-w"],operation:"keychain.get",timeoutMs:ute}).pipe(Ec.flatMap(r=>Wfe({result:r,operation:"keychain.get",message:"Failed loading secret from macOS keychain"})),Ec.map(r=>r.stdout.trimEnd()));case"linux":return xW({command:"secret-tool",args:["lookup","service",e.runtime.keychainServiceName,"account",e.providerHandle],operation:"keychain.get",timeoutMs:ute}).pipe(Ec.flatMap(r=>Wfe({result:r,operation:"keychain.get",message:"Failed loading secret from desktop keyring"})),Ec.map(r=>r.stdout.trimEnd()));default:return Ec.fail(_a("local/secret-material-providers",`keychain.get: keychain provider is unsupported on platform '${process.platform}'`))}},Ler=e=>{let r=pte(e.name);switch(process.platform){case"darwin":return xW({command:"security",args:["add-generic-password","-a",e.providerHandle,"-s",e.runtime.keychainServiceName,"-w",e.value,...r?["-l",r]:[],"-U"],operation:"keychain.put",timeoutMs:ute}).pipe(Ec.flatMap(i=>Wfe({result:i,operation:"keychain.put",message:"Failed storing secret in macOS keychain"})));case"linux":return xW({command:"secret-tool",args:["store","--label",r??e.runtime.keychainServiceName,"service",e.runtime.keychainServiceName,"account",e.providerHandle],stdin:e.value,operation:"keychain.put",timeoutMs:ute}).pipe(Ec.flatMap(i=>Wfe({result:i,operation:"keychain.put",message:"Failed storing secret in desktop keyring"})));default:return Ec.fail(_a("local/secret-material-providers",`keychain.put: keychain provider is unsupported on platform '${process.platform}'`))}},FPn=e=>{switch(process.platform){case"darwin":return xW({command:"security",args:["delete-generic-password","-a",e.providerHandle,"-s",e.runtime.keychainServiceName],operation:"keychain.delete",timeoutMs:ute}).pipe(Ec.map(r=>r.exitCode===0));case"linux":return xW({command:"secret-tool",args:["clear","service",e.runtime.keychainServiceName,"account",e.providerHandle],operation:"keychain.delete",timeoutMs:ute}).pipe(Ec.map(r=>r.exitCode===0));default:return Ec.fail(_a("local/secret-material-providers",`keychain.delete: keychain provider is unsupported on platform '${process.platform}'`))}},RPn=()=>({resolve:({ref:e,context:r})=>{let i=Vfe(r.params?.[e.handle]);return i===null?Ec.fail(_a("local/secret-material-providers",`Secret parameter ${e.handle} is not set`)):Ec.succeed(i)},remove:()=>Ec.succeed(!1)}),LPn=()=>({resolve:({ref:e,runtime:r})=>{if(!r.dangerouslyAllowEnvSecrets)return Ec.fail(_a("local/secret-material-providers",`Env-backed secrets are disabled. Set ${jer}=true to allow provider '${act}'.`));let i=Vfe(r.env[e.handle]);return i===null?Ec.fail(_a("local/secret-material-providers",`Environment variable ${e.handle} is not set`)):Ec.succeed(i)},remove:()=>Ec.succeed(!1)}),MPn=()=>({resolve:({ref:e,runtime:r})=>Ec.gen(function*(){let i=yield*rct({id:e.handle,runtime:r,operation:"local.get"});return i.providerId!==z8?yield*_a("local/secret-material-providers",`local.get: secret ${i.id} is stored in provider '${i.providerId}', not '${z8}'`):i.value===null?yield*_a("local/secret-material-providers",`local.get: secret ${i.id} does not have a local value`):i.value}),store:({purpose:e,value:r,name:i,runtime:s})=>zer({providerId:z8,providerHandle:`local:${nct()}`,purpose:e,value:r,name:i,runtime:s}),update:({ref:e,name:r,value:i,runtime:s})=>Ec.gen(function*(){let l=yield*rct({id:e.handle,runtime:s,operation:"local.update"});if(l.providerId!==z8)return yield*_a("local/secret-material-providers",`local.update: secret ${l.id} is stored in provider '${l.providerId}', not '${z8}'`);if(r===void 0&&i===void 0)return $er(l);let d=yield*s.executorState.secretMaterials.updateById(l.id,{...r!==void 0?{name:r}:{},...i!==void 0?{value:i}:{}});return _Pe.isNone(d)?yield*_a("local/secret-material-providers",`local.update: secret material not found: ${l.id}`):{id:d.value.id,providerId:d.value.providerId,name:d.value.name,purpose:d.value.purpose,createdAt:d.value.createdAt,updatedAt:d.value.updatedAt}}),remove:({ref:e,runtime:r})=>Ec.gen(function*(){let i=QN.make(e.handle);return yield*r.executorState.secretMaterials.removeById(i)})}),jPn=()=>({resolve:({ref:e,runtime:r})=>Ec.gen(function*(){let i=yield*tct({ref:e,runtime:r,operation:"keychain.get"});return yield*Rer({providerHandle:i.providerHandle,runtime:r})}),store:({purpose:e,value:r,name:i,runtime:s})=>Ec.gen(function*(){let l=nct();return yield*Ler({providerHandle:l,name:i,value:r,runtime:s}),yield*zer({providerId:T9,providerHandle:l,purpose:e,value:null,name:i,runtime:s})}),update:({ref:e,name:r,value:i,runtime:s})=>Ec.gen(function*(){let l=yield*tct({ref:e,runtime:s,operation:"keychain.update"});if(r===void 0&&i===void 0)return $er(l.material);let d=r??l.material.name,h=i??(yield*Rer({providerHandle:l.providerHandle,runtime:s}));yield*Ler({providerHandle:l.providerHandle,name:d,value:h,runtime:s});let S=yield*s.executorState.secretMaterials.updateById(l.material.id,{name:d});return _Pe.isNone(S)?yield*_a("local/secret-material-providers",`keychain.update: secret material not found: ${l.material.id}`):{id:S.value.id,providerId:S.value.providerId,name:S.value.name,purpose:S.value.purpose,createdAt:S.value.createdAt,updatedAt:S.value.updatedAt}}),remove:({ref:e,runtime:r})=>Ec.gen(function*(){let i=yield*tct({ref:e,runtime:r,operation:"keychain.delete"});return(yield*FPn({providerHandle:i.providerHandle,runtime:r}))?yield*r.executorState.secretMaterials.removeById(i.material.id):!1})}),dPe=()=>new Map([[kPn,RPn()],[act,LPn()],[T9,jPn()],[z8,MPn()]]),fPe=e=>{let r=e.providers.get(e.providerId);return r?Ec.succeed(r):Ec.fail(_a("local/secret-material-providers",`Unsupported secret provider: ${e.providerId}`))},mPe=e=>({executorState:e.executorState,env:process.env,dangerouslyAllowEnvSecrets:wPn(e.dangerouslyAllowEnvSecrets),keychainServiceName:IPn(e.keychainServiceName),localConfig:e.localConfig??null,workspaceRoot:e.workspaceRoot??null}),BPn=(e,r)=>Ec.gen(function*(){let i=yield*ict.FileSystem,s=yield*i.stat(e).pipe(Ec.mapError(bW));if(s.type==="SymbolicLink"){if(!r)return!1;let l=yield*i.realPath(e).pipe(Ec.mapError(bW));return(yield*i.stat(l).pipe(Ec.mapError(bW))).type==="File"}return s.type==="File"}),$Pn=(e,r)=>Ec.gen(function*(){if(!r||r.length===0)return!0;let i=yield*ict.FileSystem,s=yield*i.realPath(e).pipe(Ec.mapError(bW));for(let l of r){let d=yield*i.realPath(l).pipe(Ec.mapError(bW));if(s===d||s.startsWith(`${d}/`))return!0}return!1}),UPn=e=>Ec.gen(function*(){let r=yield*ict.FileSystem,i=qfe({path:e.provider.path,scopeRoot:e.workspaceRoot}),s=yield*r.readFileString(i,"utf8").pipe(Ec.mapError(bW));return(e.provider.mode??"singleValue")==="singleValue"?s.trim():yield*Ec.try({try:()=>{let d=JSON.parse(s);if(e.ref.handle.startsWith("/")){let S=e.ref.handle.split("/").slice(1).map(A=>A.replaceAll("~1","/").replaceAll("~0","~")),b=d;for(let A of S){if(typeof b!="object"||b===null||!(A in b))throw new Error(`Secret path not found in ${i}: ${e.ref.handle}`);b=b[A]}if(typeof b!="string"||b.trim().length===0)throw new Error(`Secret path did not resolve to a string: ${e.ref.handle}`);return b}if(typeof d!="object"||d===null)throw new Error(`JSON secret provider must resolve to an object: ${i}`);let h=d[e.ref.handle];if(typeof h!="string"||h.trim().length===0)throw new Error(`Secret key not found in ${i}: ${e.ref.handle}`);return h},catch:bW})}),zPn=e=>Ec.gen(function*(){let r=Afe(e.ref.providerId);if(r===null)return yield*_a("local/secret-material-providers",`Unsupported secret provider: ${e.ref.providerId}`);let i=e.runtime.localConfig?.secrets?.providers?.[r];if(!i)return yield*_a("local/secret-material-providers",`Config secret provider "${r}" is not configured`);if(e.runtime.workspaceRoot===null)return yield*_a("local/secret-material-providers",`Config secret provider "${r}" requires a workspace root`);if(i.source==="env"){let h=Vfe(e.runtime.env[e.ref.handle]);return h===null?yield*_a("local/secret-material-providers",`Environment variable ${e.ref.handle} is not set`):h}if(i.source==="file")return yield*UPn({provider:i,ref:e.ref,workspaceRoot:e.runtime.workspaceRoot});let s=i.command.trim();return TPn(s)?(yield*BPn(s,i.allowSymlinkCommand??!1))?(yield*$Pn(s,i.trustedDirs))?yield*xW({command:s,args:[...i.args??[],e.ref.handle],env:{...e.runtime.env,...i.env},operation:`config-secret.get:${r}`}).pipe(Ec.flatMap(h=>Wfe({result:h,operation:`config-secret.get:${r}`,message:"Failed resolving configured exec secret"})),Ec.map(h=>h.stdout.trimEnd())):yield*_a("local/secret-material-providers",`Exec secret provider command is outside trustedDirs: ${s}`):yield*_a("local/secret-material-providers",`Exec secret provider command is not an allowed regular file: ${s}`):yield*_a("local/secret-material-providers",`Exec secret provider command must be absolute: ${s}`)}),qer=e=>{let r=dPe(),i=mPe(e);return({ref:s,context:l})=>Ec.gen(function*(){let d=yield*fPe({providers:r,providerId:s.providerId}).pipe(Ec.catchAll(()=>Afe(s.providerId)!==null?Ec.succeed(null):Ec.fail(_a("local/secret-material-providers",`Unsupported secret provider: ${s.providerId}`))));return d===null?yield*zPn({ref:s,runtime:i}):yield*d.resolve({ref:s,context:l??{},runtime:i})}).pipe(Ec.provide(EPn.layer))},Jer=e=>{let r=dPe(),i=mPe(e);return({purpose:s,value:l,name:d,providerId:h})=>Ec.gen(function*(){let S=yield*Uer({storeProviderId:sct(h)??void 0,env:i.env}),b=yield*fPe({providers:r,providerId:S});return b.store?yield*b.store({purpose:s,value:l,name:d,runtime:i}):yield*_a("local/secret-material-providers",`Secret provider ${S} does not support storing secret material`)})},Ver=e=>{let r=dPe(),i=mPe(e);return({ref:s,name:l,value:d})=>Ec.gen(function*(){let h=yield*fPe({providers:r,providerId:s.providerId});return h.update?yield*h.update({ref:s,name:l,value:d,runtime:i}):yield*_a("local/secret-material-providers",`Secret provider ${s.providerId} does not support updating secret material`)})},Wer=e=>{let r=dPe(),i=mPe(e);return s=>Ec.gen(function*(){let l=yield*fPe({providers:r,providerId:s.providerId});return l.remove?yield*l.remove({ref:s,runtime:i}):!1})};var Ger=()=>()=>{let e=sct(process.env[Ber]),r=[{id:z8,name:"Local store",canStore:!0}];return(process.platform==="darwin"||process.platform==="linux")&&r.push({id:T9,name:process.platform==="darwin"?"macOS Keychain":"Desktop Keyring",canStore:process.platform==="darwin"||e===T9}),r.push({id:act,name:"Environment variable",canStore:!1}),Uer({storeProviderId:e??void 0}).pipe(Ec.map(i=>({platform:process.platform,secretProviders:r,defaultSecretStoreProvider:i})))};import{join as gPe}from"node:path";import{FileSystem as cct}from"@effect/platform";import*as gx from"effect/Effect";import*as Her from"effect/Option";import*as oS from"effect/Schema";var Ker=3,Gfe=4,Hoi=oS.Struct({version:oS.Literal(Ker),sourceId:vf,catalogId:xD,generatedAt:Qc,revision:ipe,snapshot:Que}),Koi=oS.Struct({version:oS.Literal(Gfe),sourceId:vf,catalogId:xD,generatedAt:Qc,revision:ipe,snapshot:Que}),qPn=oS.Struct({version:oS.Literal(Ker),sourceId:vf,catalogId:xD,generatedAt:Qc,revision:ipe,snapshot:oS.Unknown}),JPn=oS.Struct({version:oS.Literal(Gfe),sourceId:vf,catalogId:xD,generatedAt:Qc,revision:ipe,snapshot:oS.Unknown}),VPn=oS.decodeUnknownOption(oS.parseJson(oS.Union(JPn,qPn))),WPn=e=>e.version===Gfe?e:{...e,version:Gfe},GPn=e=>e,Qer=e=>{let r=structuredClone(e),i=[];for(let[s,l]of Object.entries(r.snapshot.catalog.documents)){let d=l,h=l.native?.find(b=>b.kind==="source_document"&&typeof b.value=="string");if(!h||typeof h.value!="string")continue;i.push({documentId:s,blob:h,content:h.value});let S=(l.native??[]).filter(b=>b!==h);S.length>0?d.native=S:delete d.native}return{artifact:r,rawDocuments:i}},Zer=e=>{let r=structuredClone(e.artifact),i=GPn(r.snapshot.catalog.documents);for(let[s,l]of Object.entries(e.rawDocuments)){let d=i[s];if(!d)continue;let h=(d.native??[]).filter(S=>S.kind!=="source_document");d.native=[l,...h]}return r},HPn=e=>Xue(JSON.stringify(e)),KPn=e=>Xue(JSON.stringify(e.import)),QPn=e=>{try{return jke(e)}catch{return null}},Xer=e=>{let r=VPn(e);if(Her.isNone(r))return null;let i=WPn(r.value),s=QPn(i.snapshot);return s===null?null:{...i,snapshot:s}},hPe=e=>{let r=DIe(e.source),i=Date.now(),s=Yue(e.syncResult),l=KPn(s),d=HPn(s),h=YQt({source:e.source,catalogId:r,revisionNumber:1,importMetadataJson:JSON.stringify(s.import),importMetadataHash:l,snapshotHash:d});return{version:Gfe,sourceId:e.source.id,catalogId:r,generatedAt:i,revision:h,snapshot:s}};var xI=(e,r)=>i=>new Nk({message:`Failed to ${r} ${e}: ${_y(i)}`,action:r,path:e,details:_y(i)}),lct=e=>gPe(e.context.artifactsDirectory,"sources",`${e.sourceId}.json`),uct=e=>gPe(e.context.artifactsDirectory,"sources",e.sourceId,"documents"),Yer=e=>gPe(uct(e),`${e.documentId}.txt`);var pct=e=>gx.gen(function*(){let r=yield*cct.FileSystem,i=lct(e);if(!(yield*r.exists(i).pipe(gx.mapError(xI(i,"check source artifact path")))))return null;let l=yield*r.readFileString(i,"utf8").pipe(gx.mapError(xI(i,"read source artifact"))),d=Xer(l);if(d===null)return null;let h={};for(let S of Object.keys(d.snapshot.catalog.documents)){let b=Yer({context:e.context,sourceId:e.sourceId,documentId:S});if(!(yield*r.exists(b).pipe(gx.mapError(xI(b,"check source document path")))))continue;let L=yield*r.readFileString(b,"utf8").pipe(gx.mapError(xI(b,"read source document")));h[S]={sourceKind:d.snapshot.import.sourceKind,kind:"source_document",value:L}}return Object.keys(h).length>0?Zer({artifact:d,rawDocuments:h}):d}),_ct=e=>gx.gen(function*(){let r=yield*cct.FileSystem,i=gPe(e.context.artifactsDirectory,"sources"),s=lct(e),l=uct(e),d=Qer(e.artifact);if(yield*r.makeDirectory(i,{recursive:!0}).pipe(gx.mapError(xI(i,"create source artifact directory"))),yield*r.remove(l,{recursive:!0,force:!0}).pipe(gx.mapError(xI(l,"remove source document directory"))),d.rawDocuments.length>0){yield*r.makeDirectory(l,{recursive:!0}).pipe(gx.mapError(xI(l,"create source document directory")));for(let h of d.rawDocuments){let S=Yer({context:e.context,sourceId:e.sourceId,documentId:h.documentId});yield*r.writeFileString(S,h.content).pipe(gx.mapError(xI(S,"write source document")))}}yield*r.writeFileString(s,`${JSON.stringify(d.artifact)} +`).pipe(gx.mapError(xI(s,"write source artifact")))}),dct=e=>gx.gen(function*(){let r=yield*cct.FileSystem,i=lct(e);(yield*r.exists(i).pipe(gx.mapError(xI(i,"check source artifact path"))))&&(yield*r.remove(i).pipe(gx.mapError(xI(i,"remove source artifact"))));let l=uct(e);yield*r.remove(l,{recursive:!0,force:!0}).pipe(gx.mapError(xI(l,"remove source document directory")))});import{createHash as ltr}from"node:crypto";import{dirname as Sct,extname as Hfe,join as TW,relative as bct,resolve as ZPn,sep as ptr}from"node:path";import{fileURLToPath as XPn,pathToFileURL as YPn}from"node:url";import{FileSystem as Kfe}from"@effect/platform";var TI=fJ(ctr(),1);import*as tf from"effect/Effect";var e6n=new Set([".ts",".js",".mjs"]),t6n="tools",r6n="local-tools",n6n="local.tool",i6n=/^[A-Za-z0-9_-]+$/;var o6n=()=>{let e={};return{tools:e,catalog:Z7({tools:e}),toolInvoker:Q7({tools:e}),toolPaths:new Set}},J8=(e,r)=>i=>new Nk({message:`Failed to ${r} ${e}: ${_y(i)}`,action:r,path:e,details:_y(i)}),a6n=e=>TW(e.configDirectory,t6n),s6n=e=>TW(e.artifactsDirectory,r6n),c6n=e=>e6n.has(Hfe(e)),l6n=e=>e.startsWith(".")||e.startsWith("_"),u6n=e=>{let r=Hfe(e);return`${e.slice(0,-r.length)}.js`},p6n=e=>tf.gen(function*(){let i=e.slice(0,-Hfe(e).length).split(ptr).filter(Boolean),s=i.at(-1)==="index"?i.slice(0,-1):i;if(s.length===0)return yield*new u$({message:`Invalid local tool path ${e}: root index files are not supported`,path:e,details:"Root index files are not supported. Use a named file such as hello.ts or a nested index.ts."});for(let l of s)if(!i6n.test(l))return yield*new u$({message:`Invalid local tool path ${e}: segment ${l} contains unsupported characters`,path:e,details:`Tool path segments may only contain letters, numbers, underscores, and hyphens. Invalid segment: ${l}`});return s.join(".")}),_6n=e=>tf.gen(function*(){return(yield*(yield*Kfe.FileSystem).readDirectory(e).pipe(tf.mapError(J8(e,"read local tools directory")))).sort((s,l)=>s.localeCompare(l))}),d6n=e=>tf.gen(function*(){let r=yield*Kfe.FileSystem;if(!(yield*r.exists(e).pipe(tf.mapError(J8(e,"check local tools directory")))))return[];let s=l=>tf.gen(function*(){let d=yield*_6n(l),h=[];for(let S of d){let b=TW(l,S),A=yield*r.stat(b).pipe(tf.mapError(J8(b,"stat local tool path")));if(A.type==="Directory"){h.push(...yield*s(b));continue}A.type==="File"&&c6n(b)&&h.push(b)}return h});return yield*s(e)}),f6n=(e,r)=>r.filter(i=>bct(e,i).split(ptr).every(s=>!l6n(s))),m6n=(e,r)=>{let i=(r??[]).filter(s=>s.category===TI.DiagnosticCategory.Error).map(s=>{let l=TI.flattenDiagnosticMessageText(s.messageText,` +`);if(!s.file||s.start===void 0)return l;let d=s.file.getLineAndCharacterOfPosition(s.start);return`${d.line+1}:${d.character+1} ${l}`});return i.length===0?null:new sPe({message:`Failed to transpile local tool ${e}`,path:e,details:i.join(` +`)})},vct=e=>{if(!e.startsWith("./")&&!e.startsWith("../"))return e;let r=e.match(/^(.*?)(\?.*|#.*)?$/),i=r?.[1]??e,s=r?.[2]??"",l=Hfe(i);return l===".js"?e:[".ts",".mjs"].includes(l)?`${i.slice(0,-l.length)}.js${s}`:l.length>0?e:`${i}.js${s}`},utr=e=>e.replace(/(from\s+["'])(\.{1,2}\/[^"']+)(["'])/g,(r,i,s,l)=>`${i}${vct(s)}${l}`).replace(/(import\s+["'])(\.{1,2}\/[^"']+)(["'])/g,(r,i,s,l)=>`${i}${vct(s)}${l}`).replace(/(import\(\s*["'])(\.{1,2}\/[^"']+)(["']\s*\))/g,(r,i,s,l)=>`${i}${vct(s)}${l}`),h6n=e=>tf.gen(function*(){if(Hfe(e.sourcePath)!==".ts")return utr(e.content);let r=TI.transpileModule(e.content,{fileName:e.sourcePath,compilerOptions:{module:TI.ModuleKind.ESNext,moduleResolution:TI.ModuleResolutionKind.Bundler,target:TI.ScriptTarget.ES2022,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1},reportDiagnostics:!0}),i=m6n(e.sourcePath,r.diagnostics);return i?yield*i:utr(r.outputText)}),g6n=()=>tf.gen(function*(){let e=yield*Kfe.FileSystem,r=Sct(XPn(import.meta.url));for(;;){let i=TW(r,"node_modules");if(yield*e.exists(i).pipe(tf.mapError(J8(i,"check executor node_modules directory"))))return i;let l=Sct(r);if(l===r)return null;r=l}}),y6n=e=>tf.gen(function*(){let r=yield*Kfe.FileSystem,i=TW(e,"node_modules"),s=yield*g6n();(yield*r.exists(i).pipe(tf.mapError(J8(i,"check local tool node_modules link"))))||s!==null&&(yield*r.symlink(s,i).pipe(tf.mapError(J8(i,"create local tool node_modules link"))))}),v6n=e=>tf.gen(function*(){let r=yield*Kfe.FileSystem,i=yield*tf.forEach(e.sourceFiles,h=>tf.gen(function*(){let S=yield*r.readFileString(h,"utf8").pipe(tf.mapError(J8(h,"read local tool source"))),b=bct(e.sourceDirectory,h),A=ltr("sha256").update(b).update("\0").update(S).digest("hex").slice(0,12);return{sourcePath:h,relativePath:b,content:S,contentHash:A}})),s=ltr("sha256").update(JSON.stringify(i.map(h=>[h.relativePath,h.contentHash]))).digest("hex").slice(0,16),l=TW(s6n(e.context),s);yield*r.makeDirectory(l,{recursive:!0}).pipe(tf.mapError(J8(l,"create local tool artifact directory"))),yield*y6n(l);let d=new Map;for(let h of i){let S=u6n(h.relativePath),b=TW(l,S),A=Sct(b),L=yield*h6n({sourcePath:h.sourcePath,content:h.content});yield*r.makeDirectory(A,{recursive:!0}).pipe(tf.mapError(J8(A,"create local tool artifact parent directory"))),yield*r.writeFileString(b,L).pipe(tf.mapError(J8(b,"write local tool artifact"))),d.set(h.sourcePath,b)}return d}),_tr=e=>typeof e=="object"&&e!==null&&"inputSchema"in e&&typeof e.execute=="function",S6n=e=>typeof e=="object"&&e!==null&&"tool"in e&&_tr(e.tool),b6n=e=>{let r=`${n6n}.${e.toolPath}`;if(S6n(e.exported)){let i=e.exported;return tf.succeed({...i,metadata:{...i.metadata,sourceKey:r}})}if(_tr(e.exported)){let i=e.exported;return tf.succeed({tool:i,metadata:{sourceKey:r}})}return tf.fail(new u$({message:`Invalid local tool export in ${e.sourcePath}`,path:e.sourcePath,details:"Local tool files must export a default value or named `tool` export containing either an executable tool or a `{ tool, metadata? }` definition."}))},x6n=e=>tf.tryPromise({try:()=>import(YPn(ZPn(e.artifactPath)).href),catch:r=>new $fe({message:`Failed to import local tool ${e.sourcePath}`,path:e.sourcePath,details:_y(r)})}).pipe(tf.flatMap(r=>{let i=r.default!==void 0,s=r.tool!==void 0;return i&&s?tf.fail(new u$({message:`Invalid local tool export in ${e.sourcePath}`,path:e.sourcePath,details:"Export either a default tool or a named `tool` export, but not both."})):!i&&!s?tf.fail(new u$({message:`Missing local tool export in ${e.sourcePath}`,path:e.sourcePath,details:"Expected a default export or named `tool` export."})):b6n({toolPath:e.toolPath,sourcePath:e.sourcePath,exported:i?r.default:r.tool})})),dtr=e=>tf.gen(function*(){let r=a6n(e),i=yield*d6n(r);if(i.length===0)return o6n();let s=yield*v6n({context:e,sourceDirectory:r,sourceFiles:i}),l=f6n(r,i),d={},h=new Map;for(let S of l){let b=bct(r,S),A=yield*p6n(b),L=h.get(A);if(L)return yield*new cPe({message:`Local tool path conflict for ${A}`,path:S,otherPath:L,toolPath:A});let V=s.get(S);if(!V)return yield*new $fe({message:`Missing compiled artifact for local tool ${S}`,path:S,details:"Expected a compiled local tool artifact, but none was produced."});d[A]=yield*x6n({sourcePath:S,artifactPath:V,toolPath:A}),h.set(A,S)}return{tools:d,catalog:Z7({tools:d}),toolInvoker:Q7({tools:d}),toolPaths:new Set(Object.keys(d))}});import{join as k6n}from"node:path";import{FileSystem as htr}from"@effect/platform";import*as V8 from"effect/Effect";import*as gtr from"effect/Schema";import*as yx from"effect/Schema";var T6n=yx.Struct({status:fY,lastError:yx.NullOr(yx.String),sourceHash:yx.NullOr(yx.String),createdAt:Qc,updatedAt:Qc}),E6n=yx.Struct({id:uY,createdAt:Qc,updatedAt:Qc}),ftr=yx.Struct({version:yx.Literal(1),sources:yx.Record({key:yx.String,value:T6n}),policies:yx.Record({key:yx.String,value:E6n})}),mtr=()=>({version:1,sources:{},policies:{}});var C6n="workspace-state.json",D6n=gtr.decodeUnknownSync(ftr),SPe=(e,r)=>i=>new Nk({message:`Failed to ${r} ${e}: ${_y(i)}`,action:r,path:e,details:_y(i)}),ytr=e=>k6n(e.stateDirectory,C6n),xct=e=>V8.gen(function*(){let r=yield*htr.FileSystem,i=ytr(e);if(!(yield*r.exists(i).pipe(V8.mapError(SPe(i,"check workspace state path")))))return mtr();let l=yield*r.readFileString(i,"utf8").pipe(V8.mapError(SPe(i,"read workspace state")));return yield*V8.try({try:()=>D6n(JSON.parse(l)),catch:d=>new aPe({message:`Invalid local scope state at ${i}: ${_y(d)}`,path:i,details:_y(d)})})}),Tct=e=>V8.gen(function*(){let r=yield*htr.FileSystem;yield*r.makeDirectory(e.context.stateDirectory,{recursive:!0}).pipe(V8.mapError(SPe(e.context.stateDirectory,"create state directory")));let i=ytr(e.context);yield*r.writeFileString(i,`${JSON.stringify(e.state,null,2)} +`).pipe(V8.mapError(SPe(i,"write workspace state")))});import{join as Qfe}from"node:path";import{FileSystem as Str}from"@effect/platform";import{NodeFileSystem as btr}from"@effect/platform-node";import*as bPe from"effect/Cause";import*as kd from"effect/Effect";import*as Dct from"effect/Fiber";var A6n="types",w6n="sources",qD=(e,r)=>i=>new Nk({message:`Failed to ${r} ${e}: ${_y(i)}`,action:r,path:e,details:_y(i)}),xPe=e=>Qfe(e.configDirectory,A6n),Act=e=>Qfe(xPe(e),w6n),xtr=e=>`${e}.d.ts`,Ttr=(e,r)=>Qfe(Act(e),xtr(r)),Etr=e=>Qfe(xPe(e),"index.d.ts"),Cct=e=>`SourceTools_${e.replace(/[^A-Za-z0-9_$]+/g,"_")}`,I6n=e=>`(${e.argsOptional?"args?:":"args:"} ${e.inputType}) => Promise<${e.outputType}>`,vtr=()=>({method:null,children:new Map}),P6n=(e,r)=>e.length===0?"{}":["{",...e.map(i=>`${r}${i}`),`${r.slice(0,-2)}}`].join(` +`),ktr=(e,r)=>{let i=" ".repeat(r+1),s=[...e.children.entries()].sort(([h],[S])=>h.localeCompare(S)).map(([h,S])=>`${EQe(h)}: ${ktr(S,r+1)};`),l=P6n(s,i);if(e.method===null)return l;let d=I6n(e.method);return e.children.size===0?d:`(${d}) & ${l}`},N6n=e=>{let r=vtr();for(let i of e){let s=r;for(let l of i.segments){let d=s.children.get(l);if(d){s=d;continue}let h=vtr();s.children.set(l,h),s=h}s.method=i}return r},O6n=e=>{let r=Zue({catalog:e.catalog}),i=Object.values(r.toolDescriptors).sort((d,h)=>d.toolPath.join(".").localeCompare(h.toolPath.join("."))),s=upe({catalog:r.catalog,roots:cCe(r)});return{methods:i.map(d=>({segments:d.toolPath,inputType:s.renderDeclarationShape(d.callShapeId,{aliasHint:c0(...d.toolPath,"call")}),outputType:d.resultShapeId?s.renderDeclarationShape(d.resultShapeId,{aliasHint:c0(...d.toolPath,"result")}):"unknown",argsOptional:ppe(r.catalog,d.callShapeId)})),supportingTypes:s.supportingDeclarations()}},Ctr=e=>{let r=Cct(e.source.id),i=O6n(e.snapshot),s=N6n(i.methods),l=ktr(s,0);return["// Generated by executor. Do not edit by hand.",`// Source: ${e.source.name} (${e.source.id})`,"",...i.supportingTypes,...i.supportingTypes.length>0?[""]:[],`export interface ${r} ${l}`,"",`export declare const tools: ${r};`,`export type ${r}Tools = ${r};`,"export default tools;",""].join(` +`)},F6n=e=>Dtr(e.map(r=>({sourceId:r.source.id}))),Dtr=e=>{let r=[...e].sort((d,h)=>d.sourceId.localeCompare(h.sourceId)),i=r.map(d=>`import type { ${Cct(d.sourceId)} } from "../sources/${d.sourceId}";`),s=r.map(d=>Cct(d.sourceId)),l=s.length>0?s.join(" & "):"{}";return["// Generated by executor. Do not edit by hand.",...i,...i.length>0?[""]:[],`export type ExecutorSourceTools = ${l};`,"","declare global {"," const tools: ExecutorSourceTools;","}","","export declare const tools: ExecutorSourceTools;","export default tools;",""].join(` +`)},R6n=e=>kd.gen(function*(){let r=yield*Str.FileSystem,i=xPe(e.context),s=Act(e.context),l=e.entries.filter(b=>b.source.enabled&&b.source.status==="connected").sort((b,A)=>b.source.id.localeCompare(A.source.id));yield*r.makeDirectory(i,{recursive:!0}).pipe(kd.mapError(qD(i,"create declaration directory"))),yield*r.makeDirectory(s,{recursive:!0}).pipe(kd.mapError(qD(s,"create source declaration directory")));let d=new Set(l.map(b=>xtr(b.source.id))),h=yield*r.readDirectory(s).pipe(kd.mapError(qD(s,"read source declaration directory")));for(let b of h){if(d.has(b))continue;let A=Qfe(s,b);yield*r.remove(A).pipe(kd.mapError(qD(A,"remove stale source declaration")))}for(let b of l){let A=Ttr(e.context,b.source.id);yield*r.writeFileString(A,Ctr(b)).pipe(kd.mapError(qD(A,"write source declaration")))}let S=Etr(e.context);yield*r.writeFileString(S,F6n(l)).pipe(kd.mapError(qD(S,"write aggregate declaration")))}),L6n=e=>kd.gen(function*(){let r=yield*Str.FileSystem,i=xPe(e.context),s=Act(e.context);yield*r.makeDirectory(i,{recursive:!0}).pipe(kd.mapError(qD(i,"create declaration directory"))),yield*r.makeDirectory(s,{recursive:!0}).pipe(kd.mapError(qD(s,"create source declaration directory")));let l=Ttr(e.context,e.source.id);if(e.source.enabled&&e.source.status==="connected"&&e.snapshot!==null){let b=e.snapshot;if(b===null)return;yield*r.writeFileString(l,Ctr({source:e.source,snapshot:b})).pipe(kd.mapError(qD(l,"write source declaration")))}else(yield*r.exists(l).pipe(kd.mapError(qD(l,"check source declaration path"))))&&(yield*r.remove(l).pipe(kd.mapError(qD(l,"remove source declaration"))));let h=(yield*r.readDirectory(s).pipe(kd.mapError(qD(s,"read source declaration directory")))).filter(b=>b.endsWith(".d.ts")).map(b=>({sourceId:b.slice(0,-5)})),S=Etr(e.context);yield*r.writeFileString(S,Dtr(h)).pipe(kd.mapError(qD(S,"write aggregate declaration")))}),Atr=e=>R6n(e).pipe(kd.provide(btr.layer)),wtr=e=>L6n(e).pipe(kd.provide(btr.layer)),Itr=(e,r)=>{let i=bPe.isCause(r)?bPe.pretty(r):r instanceof Error?r.message:String(r);console.warn(`[source-types] ${e} failed: ${i}`)},Ptr="1500 millis",Ect=new Map,kct=new Map,wct=e=>{let r=e.context.configDirectory,i=Ect.get(r);i&&kd.runFork(Dct.interruptFork(i));let s=kd.runFork(kd.sleep(Ptr).pipe(kd.zipRight(Atr(e).pipe(kd.catchAllCause(l=>kd.sync(()=>{Itr("workspace declaration refresh",l)}))))));Ect.set(r,s),s.addObserver(()=>{Ect.delete(r)})},Ict=e=>{let r=`${e.context.configDirectory}:${e.source.id}`,i=kct.get(r);i&&kd.runFork(Dct.interruptFork(i));let s=kd.runFork(kd.sleep(Ptr).pipe(kd.zipRight(wtr(e).pipe(kd.catchAllCause(l=>kd.sync(()=>{Itr(`source ${e.source.id} declaration refresh`,l)}))))));kct.set(r,s),s.addObserver(()=>{kct.delete(r)})};var W8=e=>e instanceof Error?e:new Error(String(e)),E9=(e,r)=>r.pipe(_v.provideService(Ntr.FileSystem,e)),j6n=e=>({load:()=>uPe(e).pipe(_v.mapError(W8)),getOrProvision:()=>Qst({context:e}).pipe(_v.mapError(W8))}),B6n=(e,r)=>({load:()=>E9(r,Hst(e)).pipe(_v.mapError(W8)),writeProject:i=>E9(r,Kst({context:e,config:i})).pipe(_v.mapError(W8)),resolveRelativePath:qfe}),$6n=(e,r)=>({load:()=>E9(r,xct(e)).pipe(_v.mapError(W8)),write:i=>E9(r,Tct({context:e,state:i})).pipe(_v.mapError(W8))}),U6n=(e,r)=>({build:hPe,read:i=>E9(r,pct({context:e,sourceId:i})).pipe(_v.mapError(W8)),write:({sourceId:i,artifact:s})=>E9(r,_ct({context:e,sourceId:i,artifact:s})).pipe(_v.mapError(W8)),remove:i=>E9(r,dct({context:e,sourceId:i})).pipe(_v.mapError(W8))}),z6n=(e,r)=>({load:()=>E9(r,dtr(e))}),q6n=e=>({refreshWorkspaceInBackground:({entries:r})=>_v.sync(()=>{wct({context:e,entries:r})}),refreshSourceInBackground:({source:r,snapshot:i})=>_v.sync(()=>{Ict({context:e,source:r,snapshot:i})})}),J6n=e=>({scopeName:e.workspaceName,scopeRoot:e.workspaceRoot,metadata:{kind:"file",configDirectory:e.configDirectory,projectConfigPath:e.projectConfigPath,homeConfigPath:e.homeConfigPath,homeStateDirectory:e.homeStateDirectory,artifactsDirectory:e.artifactsDirectory,stateDirectory:e.stateDirectory}}),V6n=(e={},r={})=>_v.gen(function*(){let i=yield*Ntr.FileSystem,s=yield*E9(i,Gst({cwd:e.cwd,workspaceRoot:e.workspaceRoot,homeConfigPath:e.homeConfigPath,homeStateDirectory:e.homeStateDirectory})).pipe(_v.mapError(W8)),l=Fer(s,i),d=B6n(s,i),h=yield*d.load(),S=r.resolveSecretMaterial??qer({executorState:l.executorState,localConfig:h.config,workspaceRoot:s.workspaceRoot});return{scope:J6n(s),installation:j6n(s),workspace:{config:d,state:$6n(s,i),sourceArtifacts:U6n(s,i),sourceAuth:{artifacts:l.executorState.authArtifacts,leases:l.executorState.authLeases,sourceOauthClients:l.executorState.sourceOauthClients,scopeOauthClients:l.executorState.scopeOauthClients,providerGrants:l.executorState.providerAuthGrants,sourceSessions:l.executorState.sourceAuthSessions},localTools:z6n(s,i),sourceTypeDeclarations:q6n(s)},secrets:{...l.executorState.secretMaterials,resolve:S,store:Jer({executorState:l.executorState}),delete:Wer({executorState:l.executorState}),update:Ver({executorState:l.executorState})},executions:{runs:l.executorState.executions,interactions:l.executorState.executionInteractions,steps:l.executorState.executionSteps},instanceConfig:{resolve:Ger()},close:l.close}}).pipe(_v.provide(M6n.layer)),Pct=(e={})=>nte({loadRepositories:r=>V6n(e,r)});import*as Mtr from"effect/Effect";import*as EW from"effect/Effect";var Otr={action:"accept"},W6n={action:"decline"},G6n=e=>{let r=e.context??{},i=r.invocationDescriptor??{};return{toolPath:String(e.path),sourceId:String(i.sourceId??e.sourceKey??""),sourceName:String(i.sourceName??""),operationKind:i.operationKind??"unknown",args:e.args,reason:String(r.interactionReason??"Approval required"),approvalLabel:typeof i.approvalLabel=="string"?i.approvalLabel:null,context:r}},H6n=e=>{let r=e.context??{};return e.elicitation.mode==="url"?{kind:"url",url:e.elicitation.url,message:e.elicitation.message,sourceId:e.sourceKey||void 0,context:r}:{kind:"form",message:e.elicitation.message,requestedSchema:e.elicitation.requestedSchema,toolPath:String(e.path)||void 0,sourceId:e.sourceKey||void 0,context:r}},K6n=e=>e.context?.interactionPurpose==="tool_execution_gate",Ftr=e=>{let{onToolApproval:r,onInteraction:i}=e;return s=>EW.gen(function*(){if(K6n(s)){if(r==="allow-all"||r===void 0)return Otr;if(r==="deny-all")return W6n;let h=G6n(s);return(yield*EW.tryPromise({try:()=>Promise.resolve(r(h)),catch:b=>b instanceof Error?b:new Error(String(b))})).approved?Otr:{action:"decline"}}if(!i){let h=s.elicitation.mode??"form";return yield*EW.fail(new Error(`An ${h} interaction was requested (${s.elicitation.message}), but no onInteraction callback was provided`))}let l=H6n(s),d=yield*EW.tryPromise({try:()=>Promise.resolve(i(l)),catch:h=>h instanceof Error?h:new Error(String(h))});return{action:d.action,content:"content"in d?d.content:void 0}})};var H8=e=>JSON.parse(JSON.stringify(e)),Q6n=(e,r)=>{let i=e.find(r);return i!=null?H8(i):null},Z6n=()=>{let e=Ed.make(`ws_mem_${crypto.randomUUID().slice(0,16)}`),r=Ed.make(`acc_mem_${crypto.randomUUID().slice(0,16)}`);return{scopeId:e,actorScopeId:r,resolutionScopeIds:[e,r]}},G8=()=>{let e=[];return{items:e,findBy:r=>Q6n(e,r),filterBy:r=>H8(e.filter(r)),insert:r=>{e.push(H8(r))},upsertBy:(r,i)=>{let s=r(i),l=e.findIndex(d=>r(d)===s);l>=0?e[l]=H8(i):e.push(H8(i))},removeBy:r=>{let i=e.findIndex(r);return i>=0?(e.splice(i,1),!0):!1},removeAllBy:r=>{let i=e.length,s=e.filter(l=>!r(l));return e.length=0,e.push(...s),i-s.length},updateBy:(r,i)=>{let s=e.find(r);return s?(Object.assign(s,i),H8(s)):null}}},Rtr=e=>nte({loadRepositories:r=>{let i=Z6n(),s=e?.resolveSecret,l=G8(),d=G8(),h=G8(),S=G8(),b=G8(),A=G8(),L=G8(),V=G8(),j=G8(),ie=G8(),te=new Map;return{scope:{scopeName:"memory",scopeRoot:process.cwd()},installation:{load:()=>H8(i),getOrProvision:()=>H8(i)},workspace:{config:{load:()=>({config:null,homeConfig:null,projectConfig:null}),writeProject:()=>{},resolveRelativePath:({path:X})=>X},state:{load:()=>({version:1,sources:{},policies:{}}),write:()=>{}},sourceArtifacts:{build:(({source:X,syncResult:Re})=>({version:4,sourceId:X.id,catalogId:`catalog_${X.id}`,generatedAt:Date.now(),revision:{revisionId:`rev_${crypto.randomUUID().slice(0,8)}`,revisionNumber:1},snapshot:Re})),read:X=>te.get(X)??null,write:({sourceId:X,artifact:Re})=>{te.set(X,Re)},remove:X=>{te.delete(X)}},sourceAuth:{artifacts:{listByScopeId:X=>l.filterBy(Re=>Re.scopeId===X),listByScopeAndSourceId:({scopeId:X,sourceId:Re})=>l.filterBy(Je=>Je.scopeId===X&&Je.sourceId===Re),getByScopeSourceAndActor:({scopeId:X,sourceId:Re,actorScopeId:Je,slot:pt})=>l.findBy($e=>$e.scopeId===X&&$e.sourceId===Re&&$e.actorScopeId===Je&&$e.slot===pt),upsert:X=>l.upsertBy(Re=>`${Re.scopeId}:${Re.sourceId}:${Re.actorScopeId}:${Re.slot}`,X),removeByScopeSourceAndActor:({scopeId:X,sourceId:Re,actorScopeId:Je,slot:pt})=>l.removeBy($e=>$e.scopeId===X&&$e.sourceId===Re&&$e.actorScopeId===Je&&(pt===void 0||$e.slot===pt)),removeByScopeAndSourceId:({scopeId:X,sourceId:Re})=>l.removeAllBy(Je=>Je.scopeId===X&&Je.sourceId===Re)},leases:{listAll:()=>H8(d.items),getByAuthArtifactId:X=>d.findBy(Re=>Re.authArtifactId===X),upsert:X=>d.upsertBy(Re=>Re.authArtifactId,X),removeByAuthArtifactId:X=>d.removeBy(Re=>Re.authArtifactId===X)},sourceOauthClients:{getByScopeSourceAndProvider:({scopeId:X,sourceId:Re,providerKey:Je})=>h.findBy(pt=>pt.scopeId===X&&pt.sourceId===Re&&pt.providerKey===Je),upsert:X=>h.upsertBy(Re=>`${Re.scopeId}:${Re.sourceId}:${Re.providerKey}`,X),removeByScopeAndSourceId:({scopeId:X,sourceId:Re})=>h.removeAllBy(Je=>Je.scopeId===X&&Je.sourceId===Re)},scopeOauthClients:{listByScopeAndProvider:({scopeId:X,providerKey:Re})=>S.filterBy(Je=>Je.scopeId===X&&Je.providerKey===Re),getById:X=>S.findBy(Re=>Re.id===X),upsert:X=>S.upsertBy(Re=>Re.id,X),removeById:X=>S.removeBy(Re=>Re.id===X)},providerGrants:{listByScopeId:X=>b.filterBy(Re=>Re.scopeId===X),listByScopeActorAndProvider:({scopeId:X,actorScopeId:Re,providerKey:Je})=>b.filterBy(pt=>pt.scopeId===X&&pt.actorScopeId===Re&&pt.providerKey===Je),getById:X=>b.findBy(Re=>Re.id===X),upsert:X=>b.upsertBy(Re=>Re.id,X),removeById:X=>b.removeBy(Re=>Re.id===X)},sourceSessions:{listAll:()=>H8(A.items),listByScopeId:X=>A.filterBy(Re=>Re.scopeId===X),getById:X=>A.findBy(Re=>Re.id===X),getByState:X=>A.findBy(Re=>Re.state===X),getPendingByScopeSourceAndActor:({scopeId:X,sourceId:Re,actorScopeId:Je,credentialSlot:pt})=>A.findBy($e=>$e.scopeId===X&&$e.sourceId===Re&&$e.actorScopeId===Je&&$e.status==="pending"&&(pt===void 0||$e.credentialSlot===pt)),insert:X=>A.insert(X),update:(X,Re)=>A.updateBy(Je=>Je.id===X,Re),upsert:X=>A.upsertBy(Re=>Re.id,X),removeByScopeAndSourceId:(X,Re)=>A.removeAllBy(Je=>Je.scopeId===X&&Je.sourceId===Re)>0}}},secrets:{getById:X=>L.findBy(Re=>Re.id===X),listAll:()=>L.items.map(X=>({id:X.id,providerId:X.providerId,name:X.name,purpose:X.purpose,createdAt:X.createdAt,updatedAt:X.updatedAt})),upsert:X=>L.upsertBy(Re=>Re.id,X),updateById:(X,Re)=>L.updateBy(Je=>Je.id===X,{...Re,updatedAt:Date.now()}),removeById:X=>L.removeBy(Re=>Re.id===X),resolve:s?({secretId:X,context:Re})=>Promise.resolve(s({secretId:X,context:Re})):({secretId:X})=>L.items.find(Je=>Je.id===X)?.value??null,store:X=>{let Re=Date.now(),Je={...X,createdAt:Re,updatedAt:Re};L.upsertBy(xt=>xt.id,Je);let{value:pt,...$e}=Je;return $e},delete:X=>L.removeBy(Re=>Re.id===X.id),update:X=>L.updateBy(Re=>Re.id===X.id,{...X,updatedAt:Date.now()})},executions:{runs:{getById:X=>V.findBy(Re=>Re.id===X),getByScopeAndId:(X,Re)=>V.findBy(Je=>Je.scopeId===X&&Je.id===Re),insert:X=>V.insert(X),update:(X,Re)=>V.updateBy(Je=>Je.id===X,Re)},interactions:{getById:X=>j.findBy(Re=>Re.id===X),listByExecutionId:X=>j.filterBy(Re=>Re.executionId===X),getPendingByExecutionId:X=>j.findBy(Re=>Re.executionId===X&&Re.status==="pending"),insert:X=>j.insert(X),update:(X,Re)=>j.updateBy(Je=>Je.id===X,Re)},steps:{getByExecutionAndSequence:(X,Re)=>ie.findBy(Je=>Je.executionId===X&&Je.sequence===Re),listByExecutionId:X=>ie.filterBy(Re=>Re.executionId===X),insert:X=>ie.insert(X),deleteByExecutionId:X=>{ie.removeAllBy(Re=>Re.executionId===X)},updateByExecutionAndSequence:(X,Re,Je)=>ie.updateBy(pt=>pt.executionId===X&&pt.sequence===Re,Je)}},instanceConfig:{resolve:()=>({platform:"memory",secretProviders:[],defaultSecretStoreProvider:"memory"})}}}});var X6n=e=>{let r={};for(let[i,s]of Object.entries(e))r[i]={description:s.description,inputSchema:s.inputSchema??V7,execute:s.execute};return r},Y6n=e=>typeof e=="object"&&e!==null&&"loadRepositories"in e&&typeof e.loadRepositories=="function",e4n=e=>typeof e=="object"&&e!==null&&"createRuntime"in e&&typeof e.createRuntime=="function",t4n=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind==="file",r4n=e=>{let r=e.storage??"memory";if(r==="memory")return Rtr(e);if(t4n(r))return r.fs&&console.warn("@executor/sdk: Custom `fs` in file storage is not yet supported. Using default Node.js filesystem."),Pct({cwd:r.cwd,workspaceRoot:r.workspaceRoot});if(Y6n(r))return nte({loadRepositories:r.loadRepositories});if(e4n(r))return r;throw new Error("Invalid storage option")},Ltr=e=>{if(e!==null)try{return JSON.parse(e)}catch{return e}},n4n=e=>{try{return JSON.parse(e)}catch{return{}}},i4n=50,o4n=(e,r)=>{let i=Ftr({onToolApproval:r.onToolApproval,onInteraction:r.onInteraction});return async s=>{let l=await e.executions.create({code:s}),d=0;for(;l.execution.status==="waiting_for_interaction"&&l.pendingInteraction!==null&&d{let r=r4n(e),i=e.tools?()=>X6n(e.tools):void 0,s=await Jst({backend:r,createInternalToolMap:i});return{execute:o4n(s,e),sources:s.sources,policies:s.policies,secrets:s.secrets,oauth:s.oauth,local:s.local,close:s.close}};export{a4n as createExecutor}; +/*! Bundled license information: + +typescript/lib/typescript.js: + (*! ***************************************************************************** + Copyright (c) Microsoft Corporation. All rights reserved. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of the + License at http://www.apache.org/licenses/LICENSE-2.0 + + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED + WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, + MERCHANTABLITY OR NON-INFRINGEMENT. + + See the Apache Version 2.0 License for specific language governing permissions + and limitations under the License. + ***************************************************************************** *) +*/ From b358e12fcb5acfbea5bddda44fd135a8f2de207c Mon Sep 17 00:00:00 2001 From: Malte Ubl Date: Fri, 27 Mar 2026 13:48:20 -0700 Subject: [PATCH 2/4] version --- package.json | 8 ++-- src/Bash.ts | 83 ++++++------------------------------------ src/executor-init.ts | 87 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 103 insertions(+), 75 deletions(-) create mode 100644 src/executor-init.ts diff --git a/package.json b/package.json index 3ae0b19a..855c96fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "just-bash", - "version": "2.14.0", + "version": "2.15.0-executor.0", "description": "A simulated bash environment with virtual filesystem", "repository": { "type": "git", @@ -59,10 +59,10 @@ "build": "rm -rf dist && tsc && pnpm build:lib && pnpm build:lib:cjs && pnpm build:browser && pnpm build:cli && pnpm build:shell && pnpm build:worker && pnpm build:clean && cp dist/index.d.ts dist/index.d.cts && sed '1,/^-->/d' AGENTS.npm.md > dist/AGENTS.md", "build:clean": "find dist -name '*.test.js' -delete && find dist -name '*.test.d.ts' -delete", "build:worker": "esbuild src/commands/python3/worker.ts --bundle --platform=node --format=esm --outfile=src/commands/python3/worker.js --external:../../../vendor/cpython-emscripten/* && cp src/commands/python3/worker.js dist/commands/python3/worker.js && mkdir -p dist/bin/chunks && cp src/commands/python3/worker.js dist/bin/chunks/worker.js && mkdir -p dist/bundle/chunks && cp src/commands/python3/worker.js dist/bundle/chunks/worker.js && esbuild src/commands/js-exec/worker.ts --bundle --platform=node --format=esm --outfile=src/commands/js-exec/worker.js --external:quickjs-emscripten && cp src/commands/js-exec/worker.js dist/commands/js-exec/worker.js && cp src/commands/js-exec/worker.js dist/bin/chunks/js-exec-worker.js && cp src/commands/js-exec/worker.js dist/bundle/chunks/js-exec-worker.js", - "build:lib": "esbuild dist/index.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bundle --chunk-names=chunks/[name]-[hash] --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:compressjs", - "build:lib:cjs": "esbuild dist/index.js --bundle --platform=node --format=cjs --minify --outfile=dist/bundle/index.cjs --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:compressjs", + "build:lib": "esbuild dist/index.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bundle --chunk-names=chunks/[name]-[hash] --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:compressjs --external:effect --external:@effect/platform --external:@effect/platform-node --external:../vendor/executor/*", + "build:lib:cjs": "esbuild dist/index.js --bundle --platform=node --format=cjs --minify --outfile=dist/bundle/index.cjs --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:compressjs --external:effect --external:@effect/platform --external:@effect/platform-node --external:../vendor/executor/*", "build:browser": "esbuild dist/browser.js --bundle --platform=browser --format=esm --minify --outfile=dist/bundle/browser.js --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:node:zlib --external:@mongodb-js/zstd --external:node-liblzma --external:compressjs --define:__BROWSER__=true --alias:node:dns=./src/shims/browser-unsupported.js", - "build:cli": "esbuild dist/cli/just-bash.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bin --entry-names=[name] --chunk-names=chunks/[name]-[hash] --banner:js='#!/usr/bin/env node' --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:compressjs", + "build:cli": "esbuild dist/cli/just-bash.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bin --entry-names=[name] --chunk-names=chunks/[name]-[hash] --banner:js='#!/usr/bin/env node' --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:compressjs --external:effect --external:@effect/platform --external:@effect/platform-node --external:../vendor/executor/*", "build:shell": "esbuild dist/cli/shell.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bin/shell --entry-names=[name] --chunk-names=chunks/[name]-[hash] --banner:js='#!/usr/bin/env node' --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:compressjs", "prepublishOnly": "pnpm validate", "validate": "pnpm lint && pnpm knip && pnpm typecheck && pnpm build && pnpm check:worker-sync && pnpm test:run && pnpm test:wasm && pnpm test:dist && pnpm test:examples", diff --git a/src/Bash.ts b/src/Bash.ts index 5b4cc2a9..b22a8680 100644 --- a/src/Bash.ts +++ b/src/Bash.ts @@ -648,84 +648,25 @@ export class Bash { private async ensureExecutorReady(): Promise { if (!this.executorSetup || this.executorSDK) return; - // Deduplicate concurrent init calls if (this.executorInitPromise) { await this.executorInitPromise; return; } this.executorInitPromise = (async () => { - // Dynamic import — vendored SDK bundle + effect only loaded when setup is used - const { createExecutor } = await import( - "../vendor/executor/executor-sdk-bundle.mjs" + const { initExecutorSDK } = await import("./executor-init.js"); + const setup = this.executorSetup; + if (!setup) return; + const { sdk, invokeTool } = await initExecutorSDK( + setup, + this.executorApproval, + this.fs, + () => this.state.cwd, + () => this.state.env, + () => this.limits, ); - const { executeForExecutor } = await import( - "./commands/js-exec/js-exec.js" - ); - const EffectMod = await import("effect/Effect"); - - const self = this; - // biome-ignore lint/suspicious/noExplicitAny: CodeExecutor + ToolInvoker types cross package boundaries; validated at runtime by the SDK - const runtime: any = { - // biome-ignore lint/suspicious/noExplicitAny: ToolInvoker type from @executor/sdk - execute(code: string, toolInvoker: any) { - return EffectMod.tryPromise(() => { - const ctx = { - fs: self.fs, - cwd: self.state.cwd, - env: self.state.env, - stdin: "", - limits: self.limits, - }; - const invokeTool = async ( - path: string, - argsJson: string, - ): Promise => { - let args: unknown; - try { - args = argsJson ? JSON.parse(argsJson) : undefined; - } catch { - args = undefined; - } - const result = await EffectMod.runPromise( - toolInvoker.invoke({ path, args }), - ); - return result !== undefined ? JSON.stringify(result) : ""; - }; - return executeForExecutor(code, ctx, invokeTool); - }); - }, - }; - - const sdk = await createExecutor({ - runtime, - storage: "memory", - onToolApproval: this.executorApproval ?? "allow-all", - }); - - // Run user setup (add sources, configure policies, etc.) - if (this.executorSetup) { - await this.executorSetup(sdk as unknown as ExecutorSDKHandle); - } - this.executorSDK = sdk as unknown as ExecutorSDKHandle; - - // Wire SDK execution as the tool invoker for js-exec - this.executorInvokeTool = async ( - path: string, - argsJson: string, - ): Promise => { - // Route through the SDK's execute to get the tool invoker pipeline. - // The SDK creates the tool invoker per-execution, so we run a small - // code snippet that invokes the tool and returns the result. - const escapedPath = path.replace(/\\/g, "\\\\").replace(/'/g, "\\'"); - const sdkHandle = this.executorSDK; - if (!sdkHandle) throw new Error("Executor SDK not initialized"); - const result = await sdkHandle.execute( - `return await tools.${escapedPath}(${argsJson || "{}"})`, - ); - if (result.error) throw new Error(result.error); - return result.result !== undefined ? JSON.stringify(result.result) : ""; - }; + this.executorSDK = sdk; + this.executorInvokeTool = invokeTool; })(); await this.executorInitPromise; diff --git a/src/executor-init.ts b/src/executor-init.ts new file mode 100644 index 00000000..a0de008b --- /dev/null +++ b/src/executor-init.ts @@ -0,0 +1,87 @@ +/** + * Executor SDK lazy initialization. + * Separated from Bash.ts so the browser bundle never sees these imports. + * Only loaded at runtime behind a __BROWSER__ guard. + */ + +import type { ExecutorConfig, ExecutorSDKHandle } from "./Bash.js"; +import { resolveLimits } from "./limits.js"; + +export async function initExecutorSDK( + setup: (sdk: ExecutorSDKHandle) => Promise, + approval: ExecutorConfig["onToolApproval"] | undefined, + fs: import("./fs/interface.js").IFileSystem, + getCwd: () => string, + getEnv: () => Map, + getLimits: () => import("./limits.js").ExecutionLimits | undefined, +): Promise<{ + sdk: ExecutorSDKHandle; + invokeTool: (path: string, argsJson: string) => Promise; +}> { + // @banned-pattern-ignore: static literal path to vendored SDK bundle + const { createExecutor } = await import( + "../vendor/executor/executor-sdk-bundle.mjs" + ); + const { executeForExecutor } = await import("./commands/js-exec/js-exec.js"); + const EffectMod = await import("effect/Effect"); + + // biome-ignore lint/suspicious/noExplicitAny: CodeExecutor + ToolInvoker types cross package boundaries; validated at runtime by the SDK + const runtime: any = { + // biome-ignore lint/suspicious/noExplicitAny: ToolInvoker type from @executor/sdk + execute(code: string, toolInvoker: any) { + return EffectMod.tryPromise(() => { + const ctx = { + fs, + cwd: getCwd(), + env: getEnv(), + stdin: "", + limits: resolveLimits(getLimits()), + }; + const invokeTool = async ( + path: string, + argsJson: string, + ): Promise => { + let args: unknown; + try { + args = argsJson ? JSON.parse(argsJson) : undefined; + } catch { + args = undefined; + } + const result = await EffectMod.runPromise( + toolInvoker.invoke({ path, args }), + ); + return result !== undefined ? JSON.stringify(result) : ""; + }; + return executeForExecutor(code, ctx, invokeTool); + }); + }, + }; + + const sdk = await createExecutor({ + runtime, + storage: "memory", + onToolApproval: approval ?? "allow-all", + }); + + if (setup) { + await setup(sdk as unknown as ExecutorSDKHandle); + } + + const sdkRef = sdk as unknown as ExecutorSDKHandle; + + const invokeTool = async ( + path: string, + argsJson: string, + ): Promise => { + const escapedPath = path.replace(/\\/g, "\\\\").replace(/'/g, "\\'"); + const sdkHandle = sdkRef; + if (!sdkHandle) throw new Error("Executor SDK not initialized"); + const result = await sdkHandle.execute( + `return await tools.${escapedPath}(${argsJson || "{}"})`, + ); + if (result.error) throw new Error(result.error); + return result.result !== undefined ? JSON.stringify(result.result) : ""; + }; + + return { sdk: sdkRef, invokeTool }; +} From 55233c13f007ced3ba6a00d9bed4e7dc7e769105 Mon Sep 17 00:00:00 2001 From: Malte Ubl Date: Fri, 27 Mar 2026 14:24:55 -0700 Subject: [PATCH 3/4] clean --- examples/cjs-consumer/pnpm-lock.yaml | 23 + examples/executor-tools/README.md | 24 + examples/executor-tools/main.ts | 183 +++ examples/executor-tools/package.json | 12 + examples/executor-tools/pnpm-lock.yaml | 10 + examples/executor-tools/tsconfig.json | 12 + knip.json | 6 +- src/Bash.ts | 16 +- src/commands/js-exec/js-exec.ts | 59 +- src/executor-init.ts | 38 +- src/interpreter/builtin-dispatch.ts | 1 + src/interpreter/interpreter.ts | 4 + src/interpreter/types.ts | 3 + src/types.ts | 9 + vendor/executor/executor-sdk-bundle.mjs | 1150 +++++------------ .../openapi_extractor_bg.wasm | Bin 0 -> 514486 bytes 16 files changed, 712 insertions(+), 838 deletions(-) create mode 100644 examples/executor-tools/README.md create mode 100644 examples/executor-tools/main.ts create mode 100644 examples/executor-tools/package.json create mode 100644 examples/executor-tools/pnpm-lock.yaml create mode 100644 examples/executor-tools/tsconfig.json create mode 100644 vendor/executor/openapi-extractor-wasm/openapi_extractor_bg.wasm diff --git a/examples/cjs-consumer/pnpm-lock.yaml b/examples/cjs-consumer/pnpm-lock.yaml index 306bab0f..3da5bdb3 100644 --- a/examples/cjs-consumer/pnpm-lock.yaml +++ b/examples/cjs-consumer/pnpm-lock.yaml @@ -57,6 +57,10 @@ packages: dev: false optional: true + /@standard-schema/spec@1.1.0: + resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} + dev: false + /@tokenizer/inflate@0.4.1: resolution: {integrity: sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA==} engines: {node: '>=18'} @@ -174,6 +178,13 @@ packages: engines: {node: '>=0.3.1'} dev: false + /effect@3.21.0: + resolution: {integrity: sha512-PPN80qRokCd1f015IANNhrwOnLO7GrrMQfk4/lnZRE/8j7UPWrNNjPV0uBrZutI/nHzernbW+J0hdqQysHiSnQ==} + dependencies: + '@standard-schema/spec': 1.1.0 + fast-check: 3.23.2 + dev: false + /end-of-stream@1.4.5: resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==} requiresBuild: true @@ -189,6 +200,13 @@ packages: dev: false optional: true + /fast-check@3.23.2: + resolution: {integrity: sha512-h5+1OzzfCC3Ef7VbtKdcv7zsstUQwUDlYpUTvjeUsJAssPgLn7QzbboPtL5ro04Mq0rPOsMzl7q5hIbRs2wD1A==} + engines: {node: '>=8.0.0'} + dependencies: + pure-rand: 6.1.0 + dev: false + /fast-xml-builder@1.0.0: resolution: {integrity: sha512-fpZuDogrAgnyt9oDDz+5DBz0zgPdPZz6D4IR7iESxRXElrlGTRkHJ9eEt+SACRJwT0FNFrt71DFQIUFBJfX/uQ==} dev: false @@ -368,6 +386,10 @@ packages: dev: false optional: true + /pure-rand@6.1.0: + resolution: {integrity: sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==} + dev: false + /pyodide@0.27.7: resolution: {integrity: sha512-RUSVJlhQdfWfgO9hVHCiXoG+nVZQRS5D9FzgpLJ/VcgGBLSAKoPL8kTiOikxbHQm1kRISeWUBdulEgO26qpSRA==} engines: {node: '>=18.0.0'} @@ -581,6 +603,7 @@ packages: dependencies: compressjs: 1.0.3 diff: 8.0.3 + effect: 3.21.0 fast-xml-parser: 5.4.2 file-type: 21.3.0 ini: 6.0.0 diff --git a/examples/executor-tools/README.md b/examples/executor-tools/README.md new file mode 100644 index 00000000..a8231d78 --- /dev/null +++ b/examples/executor-tools/README.md @@ -0,0 +1,24 @@ +# Executor Tools Example + +Demonstrates executor tool invocation in just-bash. Sandboxed JavaScript code running in `js-exec` calls tools that fetch from real public APIs — no API keys needed. + +## Run + +```bash +cd examples/executor-tools +pnpm install +pnpm start +``` + +## What it shows + +**Part 1 — Inline tools** (no `@executor/sdk` required): +1. **GraphQL tools** — Countries API queries exposed as `tools.countries.*` +2. **Utility tools** — `tools.util.timestamp()`, `tools.util.random()` +3. **Cross-tool scripts** — one js-exec script calling tools from multiple namespaces +4. **Tools + filesystem** — fetch data via tools, write to virtual fs, read with bash commands +5. **Error handling** — tool errors propagate as catchable exceptions + +**Part 2 — Native SDK source discovery** (requires `@executor/sdk`): +- Shows the `executor.setup` callback pattern for auto-discovering tools from OpenAPI specs, GraphQL schemas, and MCP servers +- Includes `onToolApproval` for controlling which operations are allowed diff --git a/examples/executor-tools/main.ts b/examples/executor-tools/main.ts new file mode 100644 index 00000000..0601fcf6 --- /dev/null +++ b/examples/executor-tools/main.ts @@ -0,0 +1,183 @@ +/** + * Executor Tools Example + * + * Demonstrates executor tool invocation in just-bash: + * 1. Inline tools — defined in the Bash constructor + * 2. Native SDK source discovery — OpenAPI and GraphQL auto-discovered tools + * + * No API keys required. Uses: + * - httpbin.org (OpenAPI) — echo/utility API + * - countries.trevorblades.com (GraphQL) — country data + * + * Run with: npx tsx main.ts + */ + +import { Bash } from "just-bash"; + +// ── Part 1: Inline tools (no SDK) ───────────────────────────────── + +console.log("=== Part 1: Inline Tools ===\n"); + +const bash = new Bash({ + executionLimits: { maxJsTimeoutMs: 60000 }, + executor: { + tools: { + // GraphQL tool — queries countries.trevorblades.com + "countries.list": { + description: "List countries, optionally filtered by continent code", + execute: async (args?: { continent?: string }) => { + const filter = args?.continent + ? `(filter: { continent: { eq: "${args.continent}" } })` + : ""; + const query = `{ countries${filter} { code name capital emoji } }`; + const res = await fetch( + "https://countries.trevorblades.com/graphql", + { + method: "POST", + headers: { "Content-Type": "application/json" }, + body: JSON.stringify({ query }), + }, + ); + const json = (await res.json()) as { data: { countries: unknown[] } }; + return json.data.countries; + }, + }, + + "countries.get": { + description: "Get a single country by ISO code", + execute: async (args: { code: string }) => { + const query = `{ country(code: "${args.code}") { name capital currency emoji languages { name } continent { name } } }`; + const res = await fetch( + "https://countries.trevorblades.com/graphql", + { + method: "POST", + headers: { "Content-Type": "application/json" }, + body: JSON.stringify({ query }), + }, + ); + const json = (await res.json()) as { data: { country: unknown } }; + return json.data.country; + }, + }, + + // Simple sync tools + "util.timestamp": { + description: "Current Unix timestamp", + execute: () => ({ ts: Math.floor(Date.now() / 1000) }), + }, + "util.random": { + description: "Random number between min and max", + execute: (args: { min?: number; max?: number }) => ({ + value: Math.floor( + Math.random() * ((args.max ?? 100) - (args.min ?? 0)) + + (args.min ?? 0), + ), + }), + }, + }, + }, +}); + +// 1. List European countries +console.log("1. European countries:"); +let r = await bash.exec(`js-exec -c ' + const countries = await tools.countries.list({ continent: "EU" }); + console.log(countries.length + " countries in Europe"); + for (const c of countries.slice(0, 5)) { + console.log(" " + c.emoji + " " + c.name + " — " + c.capital); + } + console.log(" ..."); +'`); +console.log(r.stdout); + +// 2. Country detail +console.log("2. Country detail:"); +r = await bash.exec(`js-exec -c ' + const c = await tools.countries.get({ code: "JP" }); + console.log(c.emoji + " " + c.name); + console.log(" Capital: " + c.capital); + console.log(" Currency: " + c.currency); + console.log(" Continent: " + c.continent.name); + console.log(" Languages: " + c.languages.map(l => l.name).join(", ")); +'`); +console.log(r.stdout); + +// 3. Mix tools from different sources +console.log("3. Cross-tool script:"); +r = await bash.exec(`js-exec -c ' + const ts = await tools.util.timestamp(); + const rand = await tools.util.random({ min: 0, max: 249 }); + const all = await tools.countries.list(); + const pick = all[rand.value]; + + console.log("Report at " + ts.ts); + console.log("Random country #" + rand.value + ": " + pick.emoji + " " + pick.name); +'`); +console.log(r.stdout); + +// 4. Tools + virtual filesystem +console.log("4. Fetch → write to fs → read with bash:"); +r = await bash.exec(`js-exec -c ' + const fs = require("fs"); + const countries = await tools.countries.list({ continent: "SA" }); + const csv = "code,name,capital\\n" + + countries.map(c => c.code + "," + c.name + "," + c.capital).join("\\n"); + fs.writeFileSync("/tmp/south-america.csv", csv); + console.log("Wrote " + countries.length + " rows to /tmp/south-america.csv"); +'`); +console.log(r.stdout); + +r = await bash.exec("cat /tmp/south-america.csv | head -5"); +console.log(" " + r.stdout.split("\n").join("\n ")); + +// 5. Error handling +console.log("5. Error handling:"); +r = await bash.exec(`js-exec -c ' + try { + await tools.countries.get({ code: "NOPE" }); + } catch (e) { + console.error("Caught: " + e.message); + } + console.log("Script continued after error"); +'`); +console.log(r.stdout); +if (r.stderr) console.log(" stderr: " + r.stderr); + +// ── Part 2: Native SDK source discovery ─────────────────────────── + +console.log("=== Part 2: Native SDK Source Discovery ===\n"); +console.log( + "When @executor/sdk is configured via executor.setup, tools are\n" + + "auto-discovered from OpenAPI specs, GraphQL schemas, and MCP servers.\n", +); +console.log("Example Bash constructor:\n"); +console.log(` const bash = new Bash({ + executor: { + setup: async (sdk) => { + await sdk.sources.add({ + kind: "openapi", + endpoint: "https://petstore3.swagger.io/api/v3", + specUrl: "https://petstore3.swagger.io/api/v3/openapi.json", + name: "petstore", + }); + await sdk.sources.add({ + kind: "graphql", + endpoint: "https://countries.trevorblades.com/graphql", + name: "countries", + }); + }, + onToolApproval: async (req) => { + if (req.operationKind === "read") return { approved: true }; + return { approved: false, reason: "writes not allowed" }; + }, + }, + }); + + // Tools are auto-discovered from the specs: + await bash.exec(\`js-exec -c ' + const pets = await tools.petstore.findPetsByStatus({ status: "available" }); + const country = await tools.countries.country({ code: "US" }); + '\`); +`); + +console.log("Done!"); diff --git a/examples/executor-tools/package.json b/examples/executor-tools/package.json new file mode 100644 index 00000000..105c44d0 --- /dev/null +++ b/examples/executor-tools/package.json @@ -0,0 +1,12 @@ +{ + "name": "executor-tools-example", + "version": "1.0.0", + "description": "Example of executor tools in just-bash — inline tools + OpenAPI via fetch", + "type": "module", + "scripts": { + "start": "npx tsx main.ts" + }, + "dependencies": { + "just-bash": "link:../.." + } +} diff --git a/examples/executor-tools/pnpm-lock.yaml b/examples/executor-tools/pnpm-lock.yaml new file mode 100644 index 00000000..84e21c82 --- /dev/null +++ b/examples/executor-tools/pnpm-lock.yaml @@ -0,0 +1,10 @@ +lockfileVersion: '6.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +dependencies: + just-bash: + specifier: link:../.. + version: link:../.. diff --git a/examples/executor-tools/tsconfig.json b/examples/executor-tools/tsconfig.json new file mode 100644 index 00000000..b564cd8d --- /dev/null +++ b/examples/executor-tools/tsconfig.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "Node16", + "moduleResolution": "Node16", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "noEmit": true + }, + "include": ["*.ts"] +} diff --git a/knip.json b/knip.json index 545e49f5..0f7811c2 100644 --- a/knip.json +++ b/knip.json @@ -1,6 +1,10 @@ { "$schema": "https://unpkg.com/knip@5/schema.json", - "entry": ["src/cli/just-bash.ts", "src/commands/js-exec/executor-adapter.ts"], + "entry": [ + "src/cli/just-bash.ts", + "src/commands/js-exec/executor-adapter.ts", + "src/executor-init.ts" + ], "project": ["src/**/*.ts"], "ignore": [ "src/**/*.test.ts", diff --git a/src/Bash.ts b/src/Bash.ts index b22a8680..0538b2ae 100644 --- a/src/Bash.ts +++ b/src/Bash.ts @@ -363,6 +363,10 @@ export class Bash { private executorApproval?: ExecutorConfig["onToolApproval"]; private executorSDK?: ExecutorSDKHandle; private executorInitPromise?: Promise; + /** When SDK setup is configured, js-exec routes execution through this */ + private executorExecFn?: ( + code: string, + ) => Promise<{ result: unknown; error?: string; logs?: string[] }>; // biome-ignore lint/suspicious/noExplicitAny: type-erased plugin storage for untyped API private transformPlugins: TransformPlugin[] = []; @@ -654,10 +658,15 @@ export class Bash { } this.executorInitPromise = (async () => { - const { initExecutorSDK } = await import("./executor-init.js"); + // String concat prevents esbuild from statically resolving and + // inlining executor-init (and its effect/SDK deps) into the + // non-splitting browser bundle. + // @banned-pattern-ignore: path is a static concat to prevent esbuild inlining in browser bundle + const mod = "./executor-" + "init.js"; + const { initExecutorSDK } = await import(mod); const setup = this.executorSetup; if (!setup) return; - const { sdk, invokeTool } = await initExecutorSDK( + const { sdk, executeViaSdk } = await initExecutorSDK( setup, this.executorApproval, this.fs, @@ -666,7 +675,7 @@ export class Bash { () => this.limits, ); this.executorSDK = sdk; - this.executorInvokeTool = invokeTool; + this.executorExecFn = executeViaSdk; })(); await this.executorInitPromise; @@ -819,6 +828,7 @@ export class Bash { requireDefenseContext: defenseBox?.isEnabled() === true, jsBootstrapCode: this.jsBootstrapCode, executorInvokeTool: this.executorInvokeTool, + executorExecFn: this.executorExecFn, }; const interpreter = new Interpreter(interpreterOptions, execState); diff --git a/src/commands/js-exec/js-exec.ts b/src/commands/js-exec/js-exec.ts index 241cf657..803d7383 100644 --- a/src/commands/js-exec/js-exec.ts +++ b/src/commands/js-exec/js-exec.ts @@ -280,7 +280,15 @@ function normalizeJsWorkerMessage( } if (raw.success) { - return { success: true }; + const result: JsExecWorkerOutput = { success: true }; + const full = msg as Record; + if (typeof full.executorResult === "string") { + result.executorResult = full.executorResult; + } + if (Array.isArray(full.executorLogs)) { + result.executorLogs = full.executorLogs as string[]; + } + return result; } return { @@ -636,19 +644,25 @@ export async function executeForExecutor( })), ]); - // Narrow: the catch path has no executor fields - if ( - "executorResult" in workerResult && - workerResult.executorResult !== undefined - ) { + // Executor mode: check for executor fields (executorResult or executorLogs) + if ("executorLogs" in workerResult || "executorResult" in workerResult) { + if (workerResult.error) { + return { + result: null, + error: workerResult.error, + logs: workerResult.executorLogs, + }; + } let parsed: unknown; - try { - parsed = JSON.parse(workerResult.executorResult); - } catch { - parsed = workerResult.executorResult; + if (workerResult.executorResult !== undefined) { + try { + parsed = JSON.parse(workerResult.executorResult); + } catch { + parsed = workerResult.executorResult; + } } return { - result: parsed, + result: parsed ?? null, logs: workerResult.executorLogs, }; } @@ -656,8 +670,6 @@ export async function executeForExecutor( return { result: null, error: workerResult.error || "Unknown execution error", - logs: - "executorLogs" in workerResult ? workerResult.executorLogs : undefined, }; } @@ -742,6 +754,27 @@ export const jsExecCommand: Command = { isModule = true; } + // When the SDK execution function is present, route through it. + // The SDK creates the toolInvoker (with all discovered sources) and + // calls our CodeExecutor which runs the code in QuickJS. + if (ctx.executorExecFn) { + const execResult = await ctx.executorExecFn(jsCode); + const logs = execResult.logs ?? []; + return { + stdout: logs + .filter((l) => !l.startsWith("[error]") && !l.startsWith("[warn]")) + .map((l) => `${l.replace(/^\[(log|info|debug)\] /, "")}\n`) + .join(""), + stderr: execResult.error + ? `${execResult.error}\n` + : logs + .filter((l) => l.startsWith("[error]") || l.startsWith("[warn]")) + .map((l) => `${l.replace(/^\[(error|warn)\] /, "")}\n`) + .join(""), + exitCode: execResult.error ? 1 : 0, + }; + } + // Get bootstrap code from context (threaded via CommandContext, not env) const bootstrapCode = ctx.jsBootstrapCode; diff --git a/src/executor-init.ts b/src/executor-init.ts index a0de008b..9c9dd322 100644 --- a/src/executor-init.ts +++ b/src/executor-init.ts @@ -1,7 +1,7 @@ /** * Executor SDK lazy initialization. * Separated from Bash.ts so the browser bundle never sees these imports. - * Only loaded at runtime behind a __BROWSER__ guard. + * Only loaded at runtime behind a dynamic import. */ import type { ExecutorConfig, ExecutorSDKHandle } from "./Bash.js"; @@ -16,7 +16,16 @@ export async function initExecutorSDK( getLimits: () => import("./limits.js").ExecutionLimits | undefined, ): Promise<{ sdk: ExecutorSDKHandle; - invokeTool: (path: string, argsJson: string) => Promise; + /** + * Execute code through the SDK pipeline. + * The SDK creates the toolInvoker per-execution and passes it to our + * CodeExecutor, which runs the code in QuickJS with the tools proxy. + */ + executeViaSdk: (code: string) => Promise<{ + result: unknown; + error?: string; + logs?: string[]; + }>; }> { // @banned-pattern-ignore: static literal path to vendored SDK bundle const { createExecutor } = await import( @@ -29,7 +38,7 @@ export async function initExecutorSDK( const runtime: any = { // biome-ignore lint/suspicious/noExplicitAny: ToolInvoker type from @executor/sdk execute(code: string, toolInvoker: any) { - return EffectMod.tryPromise(() => { + return EffectMod.tryPromise(async () => { const ctx = { fs, cwd: getCwd(), @@ -37,6 +46,8 @@ export async function initExecutorSDK( stdin: "", limits: resolveLimits(getLimits()), }; + // Bridge: convert the SDK's Effect-based toolInvoker to the + // JSON string protocol used by the SharedArrayBuffer bridge. const invokeTool = async ( path: string, argsJson: string, @@ -69,19 +80,14 @@ export async function initExecutorSDK( const sdkRef = sdk as unknown as ExecutorSDKHandle; - const invokeTool = async ( - path: string, - argsJson: string, - ): Promise => { - const escapedPath = path.replace(/\\/g, "\\\\").replace(/'/g, "\\'"); - const sdkHandle = sdkRef; - if (!sdkHandle) throw new Error("Executor SDK not initialized"); - const result = await sdkHandle.execute( - `return await tools.${escapedPath}(${argsJson || "{}"})`, - ); - if (result.error) throw new Error(result.error); - return result.result !== undefined ? JSON.stringify(result.result) : ""; + // executeViaSdk routes code through the SDK's execute() which creates + // the toolInvoker (with all discovered sources) and calls our CodeExecutor. + // Our CodeExecutor runs the code in QuickJS with tools bridged via SAB. + const executeViaSdk = async ( + code: string, + ): Promise<{ result: unknown; error?: string; logs?: string[] }> => { + return sdkRef.execute(code); }; - return { sdk: sdkRef, invokeTool }; + return { sdk: sdkRef, executeViaSdk }; } diff --git a/src/interpreter/builtin-dispatch.ts b/src/interpreter/builtin-dispatch.ts index 9990edea..9ec157d5 100644 --- a/src/interpreter/builtin-dispatch.ts +++ b/src/interpreter/builtin-dispatch.ts @@ -438,6 +438,7 @@ export async function executeExternalCommand( requireDefenseContext: ctx.requireDefenseContext, jsBootstrapCode: ctx.jsBootstrapCode, executorInvokeTool: ctx.executorInvokeTool, + executorExecFn: ctx.executorExecFn, }; const guardedCmdCtx = createDefenseAwareCommandContext(cmdCtx, commandName); diff --git a/src/interpreter/interpreter.ts b/src/interpreter/interpreter.ts index cd651d3f..4552b721 100644 --- a/src/interpreter/interpreter.ts +++ b/src/interpreter/interpreter.ts @@ -136,6 +136,9 @@ export interface InterpreterOptions { jsBootstrapCode?: string; /** Tool invoker for executor mode (js-exec) */ executorInvokeTool?: (path: string, argsJson: string) => Promise; + executorExecFn?: ( + code: string, + ) => Promise<{ result: unknown; error?: string; logs?: string[] }>; } export class Interpreter { @@ -158,6 +161,7 @@ export class Interpreter { requireDefenseContext: options.requireDefenseContext ?? false, jsBootstrapCode: options.jsBootstrapCode, executorInvokeTool: options.executorInvokeTool, + executorExecFn: options.executorExecFn, }; } diff --git a/src/interpreter/types.ts b/src/interpreter/types.ts index 32233df4..692fae91 100644 --- a/src/interpreter/types.ts +++ b/src/interpreter/types.ts @@ -449,4 +449,7 @@ export interface InterpreterContext { * When present, js-exec sets up a `tools` proxy. */ executorInvokeTool?: (path: string, argsJson: string) => Promise; + executorExecFn?: ( + code: string, + ) => Promise<{ result: unknown; error?: string; logs?: string[] }>; } diff --git a/src/types.ts b/src/types.ts index 6e64bf24..0172e126 100644 --- a/src/types.ts +++ b/src/types.ts @@ -195,6 +195,15 @@ export interface CommandContext { * The function receives (path, argsJson) and returns a JSON result string. */ executorInvokeTool?: (path: string, argsJson: string) => Promise; + /** + * When set, js-exec routes execution through this function instead of + * running code directly. Used by the @executor/sdk integration — the + * SDK creates the toolInvoker (with all discovered sources) and calls + * our CodeExecutor which runs the code in QuickJS. + */ + executorExecFn?: ( + code: string, + ) => Promise<{ result: unknown; error?: string; logs?: string[] }>; } export interface Command { diff --git a/vendor/executor/executor-sdk-bundle.mjs b/vendor/executor/executor-sdk-bundle.mjs index 96428c3b..f0e632aa 100644 --- a/vendor/executor/executor-sdk-bundle.mjs +++ b/vendor/executor/executor-sdk-bundle.mjs @@ -1,21 +1,22 @@ -var $6r=Object.create;var lze=Object.defineProperty;var U6r=Object.getOwnPropertyDescriptor;var z6r=Object.getOwnPropertyNames;var q6r=Object.getPrototypeOf,J6r=Object.prototype.hasOwnProperty;var a0=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,i)=>(typeof require<"u"?require:r)[i]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Rce=(e,r)=>()=>(e&&(r=e(e=0)),r);var dr=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),J7=(e,r)=>{for(var i in r)lze(e,i,{get:r[i],enumerable:!0})},V6r=(e,r,i,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of z6r(r))!J6r.call(e,l)&&l!==i&&lze(e,l,{get:()=>r[l],enumerable:!(s=U6r(r,l))||s.enumerable});return e};var fJ=(e,r,i)=>(i=e!=null?$6r(q6r(e)):{},V6r(r||!e||!e.__esModule?lze(i,"default",{value:e,enumerable:!0}):i,e));var jce=dr(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.regexpCode=Rf.getEsmExportName=Rf.getProperty=Rf.safeStringify=Rf.stringify=Rf.strConcat=Rf.addCodeArg=Rf.str=Rf._=Rf.nil=Rf._Code=Rf.Name=Rf.IDENTIFIER=Rf._CodeOrName=void 0;var Lce=class{};Rf._CodeOrName=Lce;Rf.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var mJ=class extends Lce{constructor(r){if(super(),!Rf.IDENTIFIER.test(r))throw new Error("CodeGen: name must be a valid identifier");this.str=r}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Rf.Name=mJ;var Fw=class extends Lce{constructor(r){super(),this._items=typeof r=="string"?[r]:r}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let r=this._items[0];return r===""||r==='""'}get str(){var r;return(r=this._str)!==null&&r!==void 0?r:this._str=this._items.reduce((i,s)=>`${i}${s}`,"")}get names(){var r;return(r=this._names)!==null&&r!==void 0?r:this._names=this._items.reduce((i,s)=>(s instanceof mJ&&(i[s.str]=(i[s.str]||0)+1),i),{})}};Rf._Code=Fw;Rf.nil=new Fw("");function Xwt(e,...r){let i=[e[0]],s=0;for(;s{"use strict";Object.defineProperty(ak,"__esModule",{value:!0});ak.ValueScope=ak.ValueScopeName=ak.Scope=ak.varKinds=ak.UsedValueState=void 0;var ok=jce(),_ze=class extends Error{constructor(r){super(`CodeGen: "code" for ${r} not defined`),this.value=r.value}},p2e;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(p2e||(ak.UsedValueState=p2e={}));ak.varKinds={const:new ok.Name("const"),let:new ok.Name("let"),var:new ok.Name("var")};var _2e=class{constructor({prefixes:r,parent:i}={}){this._names={},this._prefixes=r,this._parent=i}toName(r){return r instanceof ok.Name?r:this.name(r)}name(r){return new ok.Name(this._newName(r))}_newName(r){let i=this._names[r]||this._nameGroup(r);return`${r}${i.index++}`}_nameGroup(r){var i,s;if(!((s=(i=this._parent)===null||i===void 0?void 0:i._prefixes)===null||s===void 0)&&s.has(r)||this._prefixes&&!this._prefixes.has(r))throw new Error(`CodeGen: prefix "${r}" is not allowed in this scope`);return this._names[r]={prefix:r,index:0}}};ak.Scope=_2e;var d2e=class extends ok.Name{constructor(r,i){super(i),this.prefix=r}setValue(r,{property:i,itemIndex:s}){this.value=r,this.scopePath=(0,ok._)`.${new ok.Name(i)}[${s}]`}};ak.ValueScopeName=d2e;var t4r=(0,ok._)`\n`,dze=class extends _2e{constructor(r){super(r),this._values={},this._scope=r.scope,this.opts={...r,_n:r.lines?t4r:ok.nil}}get(){return this._scope}name(r){return new d2e(r,this._newName(r))}value(r,i){var s;if(i.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let l=this.toName(r),{prefix:d}=l,h=(s=i.key)!==null&&s!==void 0?s:i.ref,S=this._values[d];if(S){let L=S.get(h);if(L)return L}else S=this._values[d]=new Map;S.set(h,l);let b=this._scope[d]||(this._scope[d]=[]),A=b.length;return b[A]=i.ref,l.setValue(i,{property:d,itemIndex:A}),l}getValue(r,i){let s=this._values[r];if(s)return s.get(i)}scopeRefs(r,i=this._values){return this._reduceValues(i,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,ok._)`${r}${s.scopePath}`})}scopeCode(r=this._values,i,s){return this._reduceValues(r,l=>{if(l.value===void 0)throw new Error(`CodeGen: name "${l}" has no value`);return l.value.code},i,s)}_reduceValues(r,i,s={},l){let d=ok.nil;for(let h in r){let S=r[h];if(!S)continue;let b=s[h]=s[h]||new Map;S.forEach(A=>{if(b.has(A))return;b.set(A,p2e.Started);let L=i(A);if(L){let V=this.opts.es5?ak.varKinds.var:ak.varKinds.const;d=(0,ok._)`${d}${V} ${A} = ${L};${this.opts._n}`}else if(L=l?.(A))d=(0,ok._)`${d}${L}${this.opts._n}`;else throw new _ze(A);b.set(A,p2e.Completed)})}return d}};ak.ValueScope=dze});var wp=dr(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0});H_.or=H_.and=H_.not=H_.CodeGen=H_.operators=H_.varKinds=H_.ValueScopeName=H_.ValueScope=H_.Scope=H_.Name=H_.regexpCode=H_.stringify=H_.getProperty=H_.nil=H_.strConcat=H_.str=H_._=void 0;var Wd=jce(),h6=fze(),YM=jce();Object.defineProperty(H_,"_",{enumerable:!0,get:function(){return YM._}});Object.defineProperty(H_,"str",{enumerable:!0,get:function(){return YM.str}});Object.defineProperty(H_,"strConcat",{enumerable:!0,get:function(){return YM.strConcat}});Object.defineProperty(H_,"nil",{enumerable:!0,get:function(){return YM.nil}});Object.defineProperty(H_,"getProperty",{enumerable:!0,get:function(){return YM.getProperty}});Object.defineProperty(H_,"stringify",{enumerable:!0,get:function(){return YM.stringify}});Object.defineProperty(H_,"regexpCode",{enumerable:!0,get:function(){return YM.regexpCode}});Object.defineProperty(H_,"Name",{enumerable:!0,get:function(){return YM.Name}});var g2e=fze();Object.defineProperty(H_,"Scope",{enumerable:!0,get:function(){return g2e.Scope}});Object.defineProperty(H_,"ValueScope",{enumerable:!0,get:function(){return g2e.ValueScope}});Object.defineProperty(H_,"ValueScopeName",{enumerable:!0,get:function(){return g2e.ValueScopeName}});Object.defineProperty(H_,"varKinds",{enumerable:!0,get:function(){return g2e.varKinds}});H_.operators={GT:new Wd._Code(">"),GTE:new Wd._Code(">="),LT:new Wd._Code("<"),LTE:new Wd._Code("<="),EQ:new Wd._Code("==="),NEQ:new Wd._Code("!=="),NOT:new Wd._Code("!"),OR:new Wd._Code("||"),AND:new Wd._Code("&&"),ADD:new Wd._Code("+")};var W7=class{optimizeNodes(){return this}optimizeNames(r,i){return this}},mze=class extends W7{constructor(r,i,s){super(),this.varKind=r,this.name=i,this.rhs=s}render({es5:r,_n:i}){let s=r?h6.varKinds.var:this.varKind,l=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${l};`+i}optimizeNames(r,i){if(r[this.name.str])return this.rhs&&(this.rhs=HZ(this.rhs,r,i)),this}get names(){return this.rhs instanceof Wd._CodeOrName?this.rhs.names:{}}},f2e=class extends W7{constructor(r,i,s){super(),this.lhs=r,this.rhs=i,this.sideEffects=s}render({_n:r}){return`${this.lhs} = ${this.rhs};`+r}optimizeNames(r,i){if(!(this.lhs instanceof Wd.Name&&!r[this.lhs.str]&&!this.sideEffects))return this.rhs=HZ(this.rhs,r,i),this}get names(){let r=this.lhs instanceof Wd.Name?{}:{...this.lhs.names};return h2e(r,this.rhs)}},hze=class extends f2e{constructor(r,i,s,l){super(r,s,l),this.op=i}render({_n:r}){return`${this.lhs} ${this.op}= ${this.rhs};`+r}},gze=class extends W7{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`${this.label}:`+r}},yze=class extends W7{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`break${this.label?` ${this.label}`:""};`+r}},vze=class extends W7{constructor(r){super(),this.error=r}render({_n:r}){return`throw ${this.error};`+r}get names(){return this.error.names}},Sze=class extends W7{constructor(r){super(),this.code=r}render({_n:r}){return`${this.code};`+r}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(r,i){return this.code=HZ(this.code,r,i),this}get names(){return this.code instanceof Wd._CodeOrName?this.code.names:{}}},Bce=class extends W7{constructor(r=[]){super(),this.nodes=r}render(r){return this.nodes.reduce((i,s)=>i+s.render(r),"")}optimizeNodes(){let{nodes:r}=this,i=r.length;for(;i--;){let s=r[i].optimizeNodes();Array.isArray(s)?r.splice(i,1,...s):s?r[i]=s:r.splice(i,1)}return r.length>0?this:void 0}optimizeNames(r,i){let{nodes:s}=this,l=s.length;for(;l--;){let d=s[l];d.optimizeNames(r,i)||(r4r(r,d.names),s.splice(l,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((r,i)=>yJ(r,i.names),{})}},G7=class extends Bce{render(r){return"{"+r._n+super.render(r)+"}"+r._n}},bze=class extends Bce{},GZ=class extends G7{};GZ.kind="else";var hJ=class e extends G7{constructor(r,i){super(i),this.condition=r}render(r){let i=`if(${this.condition})`+super.render(r);return this.else&&(i+="else "+this.else.render(r)),i}optimizeNodes(){super.optimizeNodes();let r=this.condition;if(r===!0)return this.nodes;let i=this.else;if(i){let s=i.optimizeNodes();i=this.else=Array.isArray(s)?new GZ(s):s}if(i)return r===!1?i instanceof e?i:i.nodes:this.nodes.length?this:new e(eIt(r),i instanceof e?[i]:i.nodes);if(!(r===!1||!this.nodes.length))return this}optimizeNames(r,i){var s;if(this.else=(s=this.else)===null||s===void 0?void 0:s.optimizeNames(r,i),!!(super.optimizeNames(r,i)||this.else))return this.condition=HZ(this.condition,r,i),this}get names(){let r=super.names;return h2e(r,this.condition),this.else&&yJ(r,this.else.names),r}};hJ.kind="if";var gJ=class extends G7{};gJ.kind="for";var xze=class extends gJ{constructor(r){super(),this.iteration=r}render(r){return`for(${this.iteration})`+super.render(r)}optimizeNames(r,i){if(super.optimizeNames(r,i))return this.iteration=HZ(this.iteration,r,i),this}get names(){return yJ(super.names,this.iteration.names)}},Tze=class extends gJ{constructor(r,i,s,l){super(),this.varKind=r,this.name=i,this.from=s,this.to=l}render(r){let i=r.es5?h6.varKinds.var:this.varKind,{name:s,from:l,to:d}=this;return`for(${i} ${s}=${l}; ${s}<${d}; ${s}++)`+super.render(r)}get names(){let r=h2e(super.names,this.from);return h2e(r,this.to)}},m2e=class extends gJ{constructor(r,i,s,l){super(),this.loop=r,this.varKind=i,this.name=s,this.iterable=l}render(r){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(r)}optimizeNames(r,i){if(super.optimizeNames(r,i))return this.iterable=HZ(this.iterable,r,i),this}get names(){return yJ(super.names,this.iterable.names)}},$ce=class extends G7{constructor(r,i,s){super(),this.name=r,this.args=i,this.async=s}render(r){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(r)}};$ce.kind="func";var Uce=class extends Bce{render(r){return"return "+super.render(r)}};Uce.kind="return";var Eze=class extends G7{render(r){let i="try"+super.render(r);return this.catch&&(i+=this.catch.render(r)),this.finally&&(i+=this.finally.render(r)),i}optimizeNodes(){var r,i;return super.optimizeNodes(),(r=this.catch)===null||r===void 0||r.optimizeNodes(),(i=this.finally)===null||i===void 0||i.optimizeNodes(),this}optimizeNames(r,i){var s,l;return super.optimizeNames(r,i),(s=this.catch)===null||s===void 0||s.optimizeNames(r,i),(l=this.finally)===null||l===void 0||l.optimizeNames(r,i),this}get names(){let r=super.names;return this.catch&&yJ(r,this.catch.names),this.finally&&yJ(r,this.finally.names),r}},zce=class extends G7{constructor(r){super(),this.error=r}render(r){return`catch(${this.error})`+super.render(r)}};zce.kind="catch";var qce=class extends G7{render(r){return"finally"+super.render(r)}};qce.kind="finally";var kze=class{constructor(r,i={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...i,_n:i.lines?` -`:""},this._extScope=r,this._scope=new h6.Scope({parent:r}),this._nodes=[new bze]}toString(){return this._root.render(this.opts)}name(r){return this._scope.name(r)}scopeName(r){return this._extScope.name(r)}scopeValue(r,i){let s=this._extScope.value(r,i);return(this._values[s.prefix]||(this._values[s.prefix]=new Set)).add(s),s}getScopeValue(r,i){return this._extScope.getValue(r,i)}scopeRefs(r){return this._extScope.scopeRefs(r,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(r,i,s,l){let d=this._scope.toName(i);return s!==void 0&&l&&(this._constants[d.str]=s),this._leafNode(new mze(r,d,s)),d}const(r,i,s){return this._def(h6.varKinds.const,r,i,s)}let(r,i,s){return this._def(h6.varKinds.let,r,i,s)}var(r,i,s){return this._def(h6.varKinds.var,r,i,s)}assign(r,i,s){return this._leafNode(new f2e(r,i,s))}add(r,i){return this._leafNode(new hze(r,H_.operators.ADD,i))}code(r){return typeof r=="function"?r():r!==Wd.nil&&this._leafNode(new Sze(r)),this}object(...r){let i=["{"];for(let[s,l]of r)i.length>1&&i.push(","),i.push(s),(s!==l||this.opts.es5)&&(i.push(":"),(0,Wd.addCodeArg)(i,l));return i.push("}"),new Wd._Code(i)}if(r,i,s){if(this._blockNode(new hJ(r)),i&&s)this.code(i).else().code(s).endIf();else if(i)this.code(i).endIf();else if(s)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(r){return this._elseNode(new hJ(r))}else(){return this._elseNode(new GZ)}endIf(){return this._endBlockNode(hJ,GZ)}_for(r,i){return this._blockNode(r),i&&this.code(i).endFor(),this}for(r,i){return this._for(new xze(r),i)}forRange(r,i,s,l,d=this.opts.es5?h6.varKinds.var:h6.varKinds.let){let h=this._scope.toName(r);return this._for(new Tze(d,h,i,s),()=>l(h))}forOf(r,i,s,l=h6.varKinds.const){let d=this._scope.toName(r);if(this.opts.es5){let h=i instanceof Wd.Name?i:this.var("_arr",i);return this.forRange("_i",0,(0,Wd._)`${h}.length`,S=>{this.var(d,(0,Wd._)`${h}[${S}]`),s(d)})}return this._for(new m2e("of",l,d,i),()=>s(d))}forIn(r,i,s,l=this.opts.es5?h6.varKinds.var:h6.varKinds.const){if(this.opts.ownProperties)return this.forOf(r,(0,Wd._)`Object.keys(${i})`,s);let d=this._scope.toName(r);return this._for(new m2e("in",l,d,i),()=>s(d))}endFor(){return this._endBlockNode(gJ)}label(r){return this._leafNode(new gze(r))}break(r){return this._leafNode(new yze(r))}return(r){let i=new Uce;if(this._blockNode(i),this.code(r),i.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Uce)}try(r,i,s){if(!i&&!s)throw new Error('CodeGen: "try" without "catch" and "finally"');let l=new Eze;if(this._blockNode(l),this.code(r),i){let d=this.name("e");this._currNode=l.catch=new zce(d),i(d)}return s&&(this._currNode=l.finally=new qce,this.code(s)),this._endBlockNode(zce,qce)}throw(r){return this._leafNode(new vze(r))}block(r,i){return this._blockStarts.push(this._nodes.length),r&&this.code(r).endBlock(i),this}endBlock(r){let i=this._blockStarts.pop();if(i===void 0)throw new Error("CodeGen: not in self-balancing block");let s=this._nodes.length-i;if(s<0||r!==void 0&&s!==r)throw new Error(`CodeGen: wrong number of nodes: ${s} vs ${r} expected`);return this._nodes.length=i,this}func(r,i=Wd.nil,s,l){return this._blockNode(new $ce(r,i,s)),l&&this.code(l).endFunc(),this}endFunc(){return this._endBlockNode($ce)}optimize(r=1){for(;r-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(r){return this._currNode.nodes.push(r),this}_blockNode(r){this._currNode.nodes.push(r),this._nodes.push(r)}_endBlockNode(r,i){let s=this._currNode;if(s instanceof r||i&&s instanceof i)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${i?`${r.kind}/${i.kind}`:r.kind}"`)}_elseNode(r){let i=this._currNode;if(!(i instanceof hJ))throw new Error('CodeGen: "else" without "if"');return this._currNode=i.else=r,this}get _root(){return this._nodes[0]}get _currNode(){let r=this._nodes;return r[r.length-1]}set _currNode(r){let i=this._nodes;i[i.length-1]=r}};H_.CodeGen=kze;function yJ(e,r){for(let i in r)e[i]=(e[i]||0)+(r[i]||0);return e}function h2e(e,r){return r instanceof Wd._CodeOrName?yJ(e,r.names):e}function HZ(e,r,i){if(e instanceof Wd.Name)return s(e);if(!l(e))return e;return new Wd._Code(e._items.reduce((d,h)=>(h instanceof Wd.Name&&(h=s(h)),h instanceof Wd._Code?d.push(...h._items):d.push(h),d),[]));function s(d){let h=i[d.str];return h===void 0||r[d.str]!==1?d:(delete r[d.str],h)}function l(d){return d instanceof Wd._Code&&d._items.some(h=>h instanceof Wd.Name&&r[h.str]===1&&i[h.str]!==void 0)}}function r4r(e,r){for(let i in r)e[i]=(e[i]||0)-(r[i]||0)}function eIt(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Wd._)`!${Cze(e)}`}H_.not=eIt;var n4r=tIt(H_.operators.AND);function i4r(...e){return e.reduce(n4r)}H_.and=i4r;var o4r=tIt(H_.operators.OR);function a4r(...e){return e.reduce(o4r)}H_.or=a4r;function tIt(e){return(r,i)=>r===Wd.nil?i:i===Wd.nil?r:(0,Wd._)`${Cze(r)} ${e} ${Cze(i)}`}function Cze(e){return e instanceof Wd.Name?e:(0,Wd._)`(${e})`}});var cd=dr(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.checkStrictMode=sd.getErrorPath=sd.Type=sd.useFunc=sd.setEvaluated=sd.evaluatedPropsToName=sd.mergeEvaluated=sd.eachItem=sd.unescapeJsonPointer=sd.escapeJsonPointer=sd.escapeFragment=sd.unescapeFragment=sd.schemaRefOrVal=sd.schemaHasRulesButRef=sd.schemaHasRules=sd.checkUnknownRules=sd.alwaysValidSchema=sd.toHash=void 0;var eg=wp(),s4r=jce();function c4r(e){let r={};for(let i of e)r[i]=!0;return r}sd.toHash=c4r;function l4r(e,r){return typeof r=="boolean"?r:Object.keys(r).length===0?!0:(iIt(e,r),!oIt(r,e.self.RULES.all))}sd.alwaysValidSchema=l4r;function iIt(e,r=e.schema){let{opts:i,self:s}=e;if(!i.strictSchema||typeof r=="boolean")return;let l=s.RULES.keywords;for(let d in r)l[d]||cIt(e,`unknown keyword: "${d}"`)}sd.checkUnknownRules=iIt;function oIt(e,r){if(typeof e=="boolean")return!e;for(let i in e)if(r[i])return!0;return!1}sd.schemaHasRules=oIt;function u4r(e,r){if(typeof e=="boolean")return!e;for(let i in e)if(i!=="$ref"&&r.all[i])return!0;return!1}sd.schemaHasRulesButRef=u4r;function p4r({topSchemaRef:e,schemaPath:r},i,s,l){if(!l){if(typeof i=="number"||typeof i=="boolean")return i;if(typeof i=="string")return(0,eg._)`${i}`}return(0,eg._)`${e}${r}${(0,eg.getProperty)(s)}`}sd.schemaRefOrVal=p4r;function _4r(e){return aIt(decodeURIComponent(e))}sd.unescapeFragment=_4r;function d4r(e){return encodeURIComponent(Aze(e))}sd.escapeFragment=d4r;function Aze(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}sd.escapeJsonPointer=Aze;function aIt(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}sd.unescapeJsonPointer=aIt;function f4r(e,r){if(Array.isArray(e))for(let i of e)r(i);else r(e)}sd.eachItem=f4r;function rIt({mergeNames:e,mergeToName:r,mergeValues:i,resultToName:s}){return(l,d,h,S)=>{let b=h===void 0?d:h instanceof eg.Name?(d instanceof eg.Name?e(l,d,h):r(l,d,h),h):d instanceof eg.Name?(r(l,h,d),d):i(d,h);return S===eg.Name&&!(b instanceof eg.Name)?s(l,b):b}}sd.mergeEvaluated={props:rIt({mergeNames:(e,r,i)=>e.if((0,eg._)`${i} !== true && ${r} !== undefined`,()=>{e.if((0,eg._)`${r} === true`,()=>e.assign(i,!0),()=>e.assign(i,(0,eg._)`${i} || {}`).code((0,eg._)`Object.assign(${i}, ${r})`))}),mergeToName:(e,r,i)=>e.if((0,eg._)`${i} !== true`,()=>{r===!0?e.assign(i,!0):(e.assign(i,(0,eg._)`${i} || {}`),wze(e,i,r))}),mergeValues:(e,r)=>e===!0?!0:{...e,...r},resultToName:sIt}),items:rIt({mergeNames:(e,r,i)=>e.if((0,eg._)`${i} !== true && ${r} !== undefined`,()=>e.assign(i,(0,eg._)`${r} === true ? true : ${i} > ${r} ? ${i} : ${r}`)),mergeToName:(e,r,i)=>e.if((0,eg._)`${i} !== true`,()=>e.assign(i,r===!0?!0:(0,eg._)`${i} > ${r} ? ${i} : ${r}`)),mergeValues:(e,r)=>e===!0?!0:Math.max(e,r),resultToName:(e,r)=>e.var("items",r)})};function sIt(e,r){if(r===!0)return e.var("props",!0);let i=e.var("props",(0,eg._)`{}`);return r!==void 0&&wze(e,i,r),i}sd.evaluatedPropsToName=sIt;function wze(e,r,i){Object.keys(i).forEach(s=>e.assign((0,eg._)`${r}${(0,eg.getProperty)(s)}`,!0))}sd.setEvaluated=wze;var nIt={};function m4r(e,r){return e.scopeValue("func",{ref:r,code:nIt[r.code]||(nIt[r.code]=new s4r._Code(r.code))})}sd.useFunc=m4r;var Dze;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Dze||(sd.Type=Dze={}));function h4r(e,r,i){if(e instanceof eg.Name){let s=r===Dze.Num;return i?s?(0,eg._)`"[" + ${e} + "]"`:(0,eg._)`"['" + ${e} + "']"`:s?(0,eg._)`"/" + ${e}`:(0,eg._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return i?(0,eg.getProperty)(e).toString():"/"+Aze(e)}sd.getErrorPath=h4r;function cIt(e,r,i=e.opts.strictSchema){if(i){if(r=`strict mode: ${r}`,i===!0)throw new Error(r);e.self.logger.warn(r)}}sd.checkStrictMode=cIt});var Rw=dr(Ize=>{"use strict";Object.defineProperty(Ize,"__esModule",{value:!0});var dT=wp(),g4r={data:new dT.Name("data"),valCxt:new dT.Name("valCxt"),instancePath:new dT.Name("instancePath"),parentData:new dT.Name("parentData"),parentDataProperty:new dT.Name("parentDataProperty"),rootData:new dT.Name("rootData"),dynamicAnchors:new dT.Name("dynamicAnchors"),vErrors:new dT.Name("vErrors"),errors:new dT.Name("errors"),this:new dT.Name("this"),self:new dT.Name("self"),scope:new dT.Name("scope"),json:new dT.Name("json"),jsonPos:new dT.Name("jsonPos"),jsonLen:new dT.Name("jsonLen"),jsonPart:new dT.Name("jsonPart")};Ize.default=g4r});var Jce=dr(fT=>{"use strict";Object.defineProperty(fT,"__esModule",{value:!0});fT.extendErrors=fT.resetErrorsCount=fT.reportExtraError=fT.reportError=fT.keyword$DataError=fT.keywordError=void 0;var gf=wp(),y2e=cd(),D2=Rw();fT.keywordError={message:({keyword:e})=>(0,gf.str)`must pass "${e}" keyword validation`};fT.keyword$DataError={message:({keyword:e,schemaType:r})=>r?(0,gf.str)`"${e}" keyword must be ${r} ($data)`:(0,gf.str)`"${e}" keyword is invalid ($data)`};function y4r(e,r=fT.keywordError,i,s){let{it:l}=e,{gen:d,compositeRule:h,allErrors:S}=l,b=pIt(e,r,i);s??(h||S)?lIt(d,b):uIt(l,(0,gf._)`[${b}]`)}fT.reportError=y4r;function v4r(e,r=fT.keywordError,i){let{it:s}=e,{gen:l,compositeRule:d,allErrors:h}=s,S=pIt(e,r,i);lIt(l,S),d||h||uIt(s,D2.default.vErrors)}fT.reportExtraError=v4r;function S4r(e,r){e.assign(D2.default.errors,r),e.if((0,gf._)`${D2.default.vErrors} !== null`,()=>e.if(r,()=>e.assign((0,gf._)`${D2.default.vErrors}.length`,r),()=>e.assign(D2.default.vErrors,null)))}fT.resetErrorsCount=S4r;function b4r({gen:e,keyword:r,schemaValue:i,data:s,errsCount:l,it:d}){if(l===void 0)throw new Error("ajv implementation error");let h=e.name("err");e.forRange("i",l,D2.default.errors,S=>{e.const(h,(0,gf._)`${D2.default.vErrors}[${S}]`),e.if((0,gf._)`${h}.instancePath === undefined`,()=>e.assign((0,gf._)`${h}.instancePath`,(0,gf.strConcat)(D2.default.instancePath,d.errorPath))),e.assign((0,gf._)`${h}.schemaPath`,(0,gf.str)`${d.errSchemaPath}/${r}`),d.opts.verbose&&(e.assign((0,gf._)`${h}.schema`,i),e.assign((0,gf._)`${h}.data`,s))})}fT.extendErrors=b4r;function lIt(e,r){let i=e.const("err",r);e.if((0,gf._)`${D2.default.vErrors} === null`,()=>e.assign(D2.default.vErrors,(0,gf._)`[${i}]`),(0,gf._)`${D2.default.vErrors}.push(${i})`),e.code((0,gf._)`${D2.default.errors}++`)}function uIt(e,r){let{gen:i,validateName:s,schemaEnv:l}=e;l.$async?i.throw((0,gf._)`new ${e.ValidationError}(${r})`):(i.assign((0,gf._)`${s}.errors`,r),i.return(!1))}var vJ={keyword:new gf.Name("keyword"),schemaPath:new gf.Name("schemaPath"),params:new gf.Name("params"),propertyName:new gf.Name("propertyName"),message:new gf.Name("message"),schema:new gf.Name("schema"),parentSchema:new gf.Name("parentSchema")};function pIt(e,r,i){let{createErrors:s}=e.it;return s===!1?(0,gf._)`{}`:x4r(e,r,i)}function x4r(e,r,i={}){let{gen:s,it:l}=e,d=[T4r(l,i),E4r(e,i)];return k4r(e,r,d),s.object(...d)}function T4r({errorPath:e},{instancePath:r}){let i=r?(0,gf.str)`${e}${(0,y2e.getErrorPath)(r,y2e.Type.Str)}`:e;return[D2.default.instancePath,(0,gf.strConcat)(D2.default.instancePath,i)]}function E4r({keyword:e,it:{errSchemaPath:r}},{schemaPath:i,parentSchema:s}){let l=s?r:(0,gf.str)`${r}/${e}`;return i&&(l=(0,gf.str)`${l}${(0,y2e.getErrorPath)(i,y2e.Type.Str)}`),[vJ.schemaPath,l]}function k4r(e,{params:r,message:i},s){let{keyword:l,data:d,schemaValue:h,it:S}=e,{opts:b,propertyName:A,topSchemaRef:L,schemaPath:V}=S;s.push([vJ.keyword,l],[vJ.params,typeof r=="function"?r(e):r||(0,gf._)`{}`]),b.messages&&s.push([vJ.message,typeof i=="function"?i(e):i]),b.verbose&&s.push([vJ.schema,h],[vJ.parentSchema,(0,gf._)`${L}${V}`],[D2.default.data,d]),A&&s.push([vJ.propertyName,A])}});var dIt=dr(KZ=>{"use strict";Object.defineProperty(KZ,"__esModule",{value:!0});KZ.boolOrEmptySchema=KZ.topBoolOrEmptySchema=void 0;var C4r=Jce(),D4r=wp(),A4r=Rw(),w4r={message:"boolean schema is false"};function I4r(e){let{gen:r,schema:i,validateName:s}=e;i===!1?_It(e,!1):typeof i=="object"&&i.$async===!0?r.return(A4r.default.data):(r.assign((0,D4r._)`${s}.errors`,null),r.return(!0))}KZ.topBoolOrEmptySchema=I4r;function P4r(e,r){let{gen:i,schema:s}=e;s===!1?(i.var(r,!1),_It(e)):i.var(r,!0)}KZ.boolOrEmptySchema=P4r;function _It(e,r){let{gen:i,data:s}=e,l={gen:i,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,C4r.reportError)(l,w4r,void 0,r)}});var Pze=dr(QZ=>{"use strict";Object.defineProperty(QZ,"__esModule",{value:!0});QZ.getRules=QZ.isJSONType=void 0;var N4r=["string","number","integer","boolean","null","object","array"],O4r=new Set(N4r);function F4r(e){return typeof e=="string"&&O4r.has(e)}QZ.isJSONType=F4r;function R4r(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}QZ.getRules=R4r});var Nze=dr(ej=>{"use strict";Object.defineProperty(ej,"__esModule",{value:!0});ej.shouldUseRule=ej.shouldUseGroup=ej.schemaHasRulesForType=void 0;function L4r({schema:e,self:r},i){let s=r.RULES.types[i];return s&&s!==!0&&fIt(e,s)}ej.schemaHasRulesForType=L4r;function fIt(e,r){return r.rules.some(i=>mIt(e,i))}ej.shouldUseGroup=fIt;function mIt(e,r){var i;return e[r.keyword]!==void 0||((i=r.definition.implements)===null||i===void 0?void 0:i.some(s=>e[s]!==void 0))}ej.shouldUseRule=mIt});var Vce=dr(mT=>{"use strict";Object.defineProperty(mT,"__esModule",{value:!0});mT.reportTypeError=mT.checkDataTypes=mT.checkDataType=mT.coerceAndCheckDataType=mT.getJSONTypes=mT.getSchemaTypes=mT.DataType=void 0;var M4r=Pze(),j4r=Nze(),B4r=Jce(),v_=wp(),hIt=cd(),ZZ;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(ZZ||(mT.DataType=ZZ={}));function $4r(e){let r=gIt(e.type);if(r.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!r.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&r.push("null")}return r}mT.getSchemaTypes=$4r;function gIt(e){let r=Array.isArray(e)?e:e?[e]:[];if(r.every(M4r.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}mT.getJSONTypes=gIt;function U4r(e,r){let{gen:i,data:s,opts:l}=e,d=z4r(r,l.coerceTypes),h=r.length>0&&!(d.length===0&&r.length===1&&(0,j4r.schemaHasRulesForType)(e,r[0]));if(h){let S=Fze(r,s,l.strictNumbers,ZZ.Wrong);i.if(S,()=>{d.length?q4r(e,r,d):Rze(e)})}return h}mT.coerceAndCheckDataType=U4r;var yIt=new Set(["string","number","integer","boolean","null"]);function z4r(e,r){return r?e.filter(i=>yIt.has(i)||r==="array"&&i==="array"):[]}function q4r(e,r,i){let{gen:s,data:l,opts:d}=e,h=s.let("dataType",(0,v_._)`typeof ${l}`),S=s.let("coerced",(0,v_._)`undefined`);d.coerceTypes==="array"&&s.if((0,v_._)`${h} == 'object' && Array.isArray(${l}) && ${l}.length == 1`,()=>s.assign(l,(0,v_._)`${l}[0]`).assign(h,(0,v_._)`typeof ${l}`).if(Fze(r,l,d.strictNumbers),()=>s.assign(S,l))),s.if((0,v_._)`${S} !== undefined`);for(let A of i)(yIt.has(A)||A==="array"&&d.coerceTypes==="array")&&b(A);s.else(),Rze(e),s.endIf(),s.if((0,v_._)`${S} !== undefined`,()=>{s.assign(l,S),J4r(e,S)});function b(A){switch(A){case"string":s.elseIf((0,v_._)`${h} == "number" || ${h} == "boolean"`).assign(S,(0,v_._)`"" + ${l}`).elseIf((0,v_._)`${l} === null`).assign(S,(0,v_._)`""`);return;case"number":s.elseIf((0,v_._)`${h} == "boolean" || ${l} === null - || (${h} == "string" && ${l} && ${l} == +${l})`).assign(S,(0,v_._)`+${l}`);return;case"integer":s.elseIf((0,v_._)`${h} === "boolean" || ${l} === null - || (${h} === "string" && ${l} && ${l} == +${l} && !(${l} % 1))`).assign(S,(0,v_._)`+${l}`);return;case"boolean":s.elseIf((0,v_._)`${l} === "false" || ${l} === 0 || ${l} === null`).assign(S,!1).elseIf((0,v_._)`${l} === "true" || ${l} === 1`).assign(S,!0);return;case"null":s.elseIf((0,v_._)`${l} === "" || ${l} === 0 || ${l} === false`),s.assign(S,null);return;case"array":s.elseIf((0,v_._)`${h} === "string" || ${h} === "number" - || ${h} === "boolean" || ${l} === null`).assign(S,(0,v_._)`[${l}]`)}}}function J4r({gen:e,parentData:r,parentDataProperty:i},s){e.if((0,v_._)`${r} !== undefined`,()=>e.assign((0,v_._)`${r}[${i}]`,s))}function Oze(e,r,i,s=ZZ.Correct){let l=s===ZZ.Correct?v_.operators.EQ:v_.operators.NEQ,d;switch(e){case"null":return(0,v_._)`${r} ${l} null`;case"array":d=(0,v_._)`Array.isArray(${r})`;break;case"object":d=(0,v_._)`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":d=h((0,v_._)`!(${r} % 1) && !isNaN(${r})`);break;case"number":d=h();break;default:return(0,v_._)`typeof ${r} ${l} ${e}`}return s===ZZ.Correct?d:(0,v_.not)(d);function h(S=v_.nil){return(0,v_.and)((0,v_._)`typeof ${r} == "number"`,S,i?(0,v_._)`isFinite(${r})`:v_.nil)}}mT.checkDataType=Oze;function Fze(e,r,i,s){if(e.length===1)return Oze(e[0],r,i,s);let l,d=(0,hIt.toHash)(e);if(d.array&&d.object){let h=(0,v_._)`typeof ${r} != "object"`;l=d.null?h:(0,v_._)`!${r} || ${h}`,delete d.null,delete d.array,delete d.object}else l=v_.nil;d.number&&delete d.integer;for(let h in d)l=(0,v_.and)(l,Oze(h,r,i,s));return l}mT.checkDataTypes=Fze;var V4r={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:r})=>typeof e=="string"?(0,v_._)`{type: ${e}}`:(0,v_._)`{type: ${r}}`};function Rze(e){let r=W4r(e);(0,B4r.reportError)(r,V4r)}mT.reportTypeError=Rze;function W4r(e){let{gen:r,data:i,schema:s}=e,l=(0,hIt.schemaRefOrVal)(e,s,"type");return{gen:r,keyword:"type",data:i,schema:s.type,schemaCode:l,schemaValue:l,parentSchema:s,params:{},it:e}}});var SIt=dr(v2e=>{"use strict";Object.defineProperty(v2e,"__esModule",{value:!0});v2e.assignDefaults=void 0;var XZ=wp(),G4r=cd();function H4r(e,r){let{properties:i,items:s}=e.schema;if(r==="object"&&i)for(let l in i)vIt(e,l,i[l].default);else r==="array"&&Array.isArray(s)&&s.forEach((l,d)=>vIt(e,d,l.default))}v2e.assignDefaults=H4r;function vIt(e,r,i){let{gen:s,compositeRule:l,data:d,opts:h}=e;if(i===void 0)return;let S=(0,XZ._)`${d}${(0,XZ.getProperty)(r)}`;if(l){(0,G4r.checkStrictMode)(e,`default is ignored for: ${S}`);return}let b=(0,XZ._)`${S} === undefined`;h.useDefaults==="empty"&&(b=(0,XZ._)`${b} || ${S} === null || ${S} === ""`),s.if(b,(0,XZ._)`${S} = ${(0,XZ.stringify)(i)}`)}});var Lw=dr(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});Dh.validateUnion=Dh.validateArray=Dh.usePattern=Dh.callValidateCode=Dh.schemaProperties=Dh.allSchemaProperties=Dh.noPropertyInData=Dh.propertyInData=Dh.isOwnProperty=Dh.hasPropFunc=Dh.reportMissingProp=Dh.checkMissingProp=Dh.checkReportMissingProp=void 0;var ny=wp(),Lze=cd(),tj=Rw(),K4r=cd();function Q4r(e,r){let{gen:i,data:s,it:l}=e;i.if(jze(i,s,r,l.opts.ownProperties),()=>{e.setParams({missingProperty:(0,ny._)`${r}`},!0),e.error()})}Dh.checkReportMissingProp=Q4r;function Z4r({gen:e,data:r,it:{opts:i}},s,l){return(0,ny.or)(...s.map(d=>(0,ny.and)(jze(e,r,d,i.ownProperties),(0,ny._)`${l} = ${d}`)))}Dh.checkMissingProp=Z4r;function X4r(e,r){e.setParams({missingProperty:r},!0),e.error()}Dh.reportMissingProp=X4r;function bIt(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ny._)`Object.prototype.hasOwnProperty`})}Dh.hasPropFunc=bIt;function Mze(e,r,i){return(0,ny._)`${bIt(e)}.call(${r}, ${i})`}Dh.isOwnProperty=Mze;function Y4r(e,r,i,s){let l=(0,ny._)`${r}${(0,ny.getProperty)(i)} !== undefined`;return s?(0,ny._)`${l} && ${Mze(e,r,i)}`:l}Dh.propertyInData=Y4r;function jze(e,r,i,s){let l=(0,ny._)`${r}${(0,ny.getProperty)(i)} === undefined`;return s?(0,ny.or)(l,(0,ny.not)(Mze(e,r,i))):l}Dh.noPropertyInData=jze;function xIt(e){return e?Object.keys(e).filter(r=>r!=="__proto__"):[]}Dh.allSchemaProperties=xIt;function e3r(e,r){return xIt(r).filter(i=>!(0,Lze.alwaysValidSchema)(e,r[i]))}Dh.schemaProperties=e3r;function t3r({schemaCode:e,data:r,it:{gen:i,topSchemaRef:s,schemaPath:l,errorPath:d},it:h},S,b,A){let L=A?(0,ny._)`${e}, ${r}, ${s}${l}`:r,V=[[tj.default.instancePath,(0,ny.strConcat)(tj.default.instancePath,d)],[tj.default.parentData,h.parentData],[tj.default.parentDataProperty,h.parentDataProperty],[tj.default.rootData,tj.default.rootData]];h.opts.dynamicRef&&V.push([tj.default.dynamicAnchors,tj.default.dynamicAnchors]);let j=(0,ny._)`${L}, ${i.object(...V)}`;return b!==ny.nil?(0,ny._)`${S}.call(${b}, ${j})`:(0,ny._)`${S}(${j})`}Dh.callValidateCode=t3r;var r3r=(0,ny._)`new RegExp`;function n3r({gen:e,it:{opts:r}},i){let s=r.unicodeRegExp?"u":"",{regExp:l}=r.code,d=l(i,s);return e.scopeValue("pattern",{key:d.toString(),ref:d,code:(0,ny._)`${l.code==="new RegExp"?r3r:(0,K4r.useFunc)(e,l)}(${i}, ${s})`})}Dh.usePattern=n3r;function i3r(e){let{gen:r,data:i,keyword:s,it:l}=e,d=r.name("valid");if(l.allErrors){let S=r.let("valid",!0);return h(()=>r.assign(S,!1)),S}return r.var(d,!0),h(()=>r.break()),d;function h(S){let b=r.const("len",(0,ny._)`${i}.length`);r.forRange("i",0,b,A=>{e.subschema({keyword:s,dataProp:A,dataPropType:Lze.Type.Num},d),r.if((0,ny.not)(d),S)})}}Dh.validateArray=i3r;function o3r(e){let{gen:r,schema:i,keyword:s,it:l}=e;if(!Array.isArray(i))throw new Error("ajv implementation error");if(i.some(b=>(0,Lze.alwaysValidSchema)(l,b))&&!l.opts.unevaluated)return;let h=r.let("valid",!1),S=r.name("_valid");r.block(()=>i.forEach((b,A)=>{let L=e.subschema({keyword:s,schemaProp:A,compositeRule:!0},S);r.assign(h,(0,ny._)`${h} || ${S}`),e.mergeValidEvaluated(L,S)||r.if((0,ny.not)(h))})),e.result(h,()=>e.reset(),()=>e.error(!0))}Dh.validateUnion=o3r});var kIt=dr(CN=>{"use strict";Object.defineProperty(CN,"__esModule",{value:!0});CN.validateKeywordUsage=CN.validSchemaType=CN.funcKeywordCode=CN.macroKeywordCode=void 0;var A2=wp(),SJ=Rw(),a3r=Lw(),s3r=Jce();function c3r(e,r){let{gen:i,keyword:s,schema:l,parentSchema:d,it:h}=e,S=r.macro.call(h.self,l,d,h),b=EIt(i,s,S);h.opts.validateSchema!==!1&&h.self.validateSchema(S,!0);let A=i.name("valid");e.subschema({schema:S,schemaPath:A2.nil,errSchemaPath:`${h.errSchemaPath}/${s}`,topSchemaRef:b,compositeRule:!0},A),e.pass(A,()=>e.error(!0))}CN.macroKeywordCode=c3r;function l3r(e,r){var i;let{gen:s,keyword:l,schema:d,parentSchema:h,$data:S,it:b}=e;p3r(b,r);let A=!S&&r.compile?r.compile.call(b.self,d,h,b):r.validate,L=EIt(s,l,A),V=s.let("valid");e.block$data(V,j),e.ok((i=r.valid)!==null&&i!==void 0?i:V);function j(){if(r.errors===!1)X(),r.modifying&&TIt(e),Re(()=>e.error());else{let Je=r.async?ie():te();r.modifying&&TIt(e),Re(()=>u3r(e,Je))}}function ie(){let Je=s.let("ruleErrs",null);return s.try(()=>X((0,A2._)`await `),pt=>s.assign(V,!1).if((0,A2._)`${pt} instanceof ${b.ValidationError}`,()=>s.assign(Je,(0,A2._)`${pt}.errors`),()=>s.throw(pt))),Je}function te(){let Je=(0,A2._)`${L}.errors`;return s.assign(Je,null),X(A2.nil),Je}function X(Je=r.async?(0,A2._)`await `:A2.nil){let pt=b.opts.passContext?SJ.default.this:SJ.default.self,$e=!("compile"in r&&!S||r.schema===!1);s.assign(V,(0,A2._)`${Je}${(0,a3r.callValidateCode)(e,L,pt,$e)}`,r.modifying)}function Re(Je){var pt;s.if((0,A2.not)((pt=r.valid)!==null&&pt!==void 0?pt:V),Je)}}CN.funcKeywordCode=l3r;function TIt(e){let{gen:r,data:i,it:s}=e;r.if(s.parentData,()=>r.assign(i,(0,A2._)`${s.parentData}[${s.parentDataProperty}]`))}function u3r(e,r){let{gen:i}=e;i.if((0,A2._)`Array.isArray(${r})`,()=>{i.assign(SJ.default.vErrors,(0,A2._)`${SJ.default.vErrors} === null ? ${r} : ${SJ.default.vErrors}.concat(${r})`).assign(SJ.default.errors,(0,A2._)`${SJ.default.vErrors}.length`),(0,s3r.extendErrors)(e)},()=>e.error())}function p3r({schemaEnv:e},r){if(r.async&&!e.$async)throw new Error("async keyword in sync schema")}function EIt(e,r,i){if(i===void 0)throw new Error(`keyword "${r}" failed to compile`);return e.scopeValue("keyword",typeof i=="function"?{ref:i}:{ref:i,code:(0,A2.stringify)(i)})}function _3r(e,r,i=!1){return!r.length||r.some(s=>s==="array"?Array.isArray(e):s==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==s||i&&typeof e>"u")}CN.validSchemaType=_3r;function d3r({schema:e,opts:r,self:i,errSchemaPath:s},l,d){if(Array.isArray(l.keyword)?!l.keyword.includes(d):l.keyword!==d)throw new Error("ajv implementation error");let h=l.dependencies;if(h?.some(S=>!Object.prototype.hasOwnProperty.call(e,S)))throw new Error(`parent schema must have dependencies of ${d}: ${h.join(",")}`);if(l.validateSchema&&!l.validateSchema(e[d])){let b=`keyword "${d}" value is invalid at path "${s}": `+i.errorsText(l.validateSchema.errors);if(r.validateSchema==="log")i.logger.error(b);else throw new Error(b)}}CN.validateKeywordUsage=d3r});var DIt=dr(rj=>{"use strict";Object.defineProperty(rj,"__esModule",{value:!0});rj.extendSubschemaMode=rj.extendSubschemaData=rj.getSubschema=void 0;var DN=wp(),CIt=cd();function f3r(e,{keyword:r,schemaProp:i,schema:s,schemaPath:l,errSchemaPath:d,topSchemaRef:h}){if(r!==void 0&&s!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(r!==void 0){let S=e.schema[r];return i===void 0?{schema:S,schemaPath:(0,DN._)`${e.schemaPath}${(0,DN.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${r}`}:{schema:S[i],schemaPath:(0,DN._)`${e.schemaPath}${(0,DN.getProperty)(r)}${(0,DN.getProperty)(i)}`,errSchemaPath:`${e.errSchemaPath}/${r}/${(0,CIt.escapeFragment)(i)}`}}if(s!==void 0){if(l===void 0||d===void 0||h===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:l,topSchemaRef:h,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}rj.getSubschema=f3r;function m3r(e,r,{dataProp:i,dataPropType:s,data:l,dataTypes:d,propertyName:h}){if(l!==void 0&&i!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:S}=r;if(i!==void 0){let{errorPath:A,dataPathArr:L,opts:V}=r,j=S.let("data",(0,DN._)`${r.data}${(0,DN.getProperty)(i)}`,!0);b(j),e.errorPath=(0,DN.str)`${A}${(0,CIt.getErrorPath)(i,s,V.jsPropertySyntax)}`,e.parentDataProperty=(0,DN._)`${i}`,e.dataPathArr=[...L,e.parentDataProperty]}if(l!==void 0){let A=l instanceof DN.Name?l:S.let("data",l,!0);b(A),h!==void 0&&(e.propertyName=h)}d&&(e.dataTypes=d);function b(A){e.data=A,e.dataLevel=r.dataLevel+1,e.dataTypes=[],r.definedProperties=new Set,e.parentData=r.data,e.dataNames=[...r.dataNames,A]}}rj.extendSubschemaData=m3r;function h3r(e,{jtdDiscriminator:r,jtdMetadata:i,compositeRule:s,createErrors:l,allErrors:d}){s!==void 0&&(e.compositeRule=s),l!==void 0&&(e.createErrors=l),d!==void 0&&(e.allErrors=d),e.jtdDiscriminator=r,e.jtdMetadata=i}rj.extendSubschemaMode=h3r});var Bze=dr((E4n,AIt)=>{"use strict";AIt.exports=function e(r,i){if(r===i)return!0;if(r&&i&&typeof r=="object"&&typeof i=="object"){if(r.constructor!==i.constructor)return!1;var s,l,d;if(Array.isArray(r)){if(s=r.length,s!=i.length)return!1;for(l=s;l--!==0;)if(!e(r[l],i[l]))return!1;return!0}if(r.constructor===RegExp)return r.source===i.source&&r.flags===i.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===i.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===i.toString();if(d=Object.keys(r),s=d.length,s!==Object.keys(i).length)return!1;for(l=s;l--!==0;)if(!Object.prototype.hasOwnProperty.call(i,d[l]))return!1;for(l=s;l--!==0;){var h=d[l];if(!e(r[h],i[h]))return!1}return!0}return r!==r&&i!==i}});var IIt=dr((k4n,wIt)=>{"use strict";var nj=wIt.exports=function(e,r,i){typeof r=="function"&&(i=r,r={}),i=r.cb||i;var s=typeof i=="function"?i:i.pre||function(){},l=i.post||function(){};S2e(r,s,l,e,"",e)};nj.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};nj.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};nj.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};nj.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function S2e(e,r,i,s,l,d,h,S,b,A){if(s&&typeof s=="object"&&!Array.isArray(s)){r(s,l,d,h,S,b,A);for(var L in s){var V=s[L];if(Array.isArray(V)){if(L in nj.arrayKeywords)for(var j=0;j{"use strict";Object.defineProperty(sk,"__esModule",{value:!0});sk.getSchemaRefs=sk.resolveUrl=sk.normalizeId=sk._getFullPath=sk.getFullPath=sk.inlineRef=void 0;var y3r=cd(),v3r=Bze(),S3r=IIt(),b3r=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function x3r(e,r=!0){return typeof e=="boolean"?!0:r===!0?!$ze(e):r?PIt(e)<=r:!1}sk.inlineRef=x3r;var T3r=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function $ze(e){for(let r in e){if(T3r.has(r))return!0;let i=e[r];if(Array.isArray(i)&&i.some($ze)||typeof i=="object"&&$ze(i))return!0}return!1}function PIt(e){let r=0;for(let i in e){if(i==="$ref")return 1/0;if(r++,!b3r.has(i)&&(typeof e[i]=="object"&&(0,y3r.eachItem)(e[i],s=>r+=PIt(s)),r===1/0))return 1/0}return r}function NIt(e,r="",i){i!==!1&&(r=YZ(r));let s=e.parse(r);return OIt(e,s)}sk.getFullPath=NIt;function OIt(e,r){return e.serialize(r).split("#")[0]+"#"}sk._getFullPath=OIt;var E3r=/#\/?$/;function YZ(e){return e?e.replace(E3r,""):""}sk.normalizeId=YZ;function k3r(e,r,i){return i=YZ(i),e.resolve(r,i)}sk.resolveUrl=k3r;var C3r=/^[a-z_][-a-z0-9._]*$/i;function D3r(e,r){if(typeof e=="boolean")return{};let{schemaId:i,uriResolver:s}=this.opts,l=YZ(e[i]||r),d={"":l},h=NIt(s,l,!1),S={},b=new Set;return S3r(e,{allKeys:!0},(V,j,ie,te)=>{if(te===void 0)return;let X=h+j,Re=d[te];typeof V[i]=="string"&&(Re=Je.call(this,V[i])),pt.call(this,V.$anchor),pt.call(this,V.$dynamicAnchor),d[j]=Re;function Je($e){let xt=this.opts.uriResolver.resolve;if($e=YZ(Re?xt(Re,$e):$e),b.has($e))throw L($e);b.add($e);let tr=this.refs[$e];return typeof tr=="string"&&(tr=this.refs[tr]),typeof tr=="object"?A(V,tr.schema,$e):$e!==YZ(X)&&($e[0]==="#"?(A(V,S[$e],$e),S[$e]=V):this.refs[$e]=X),$e}function pt($e){if(typeof $e=="string"){if(!C3r.test($e))throw new Error(`invalid anchor "${$e}"`);Je.call(this,`#${$e}`)}}}),S;function A(V,j,ie){if(j!==void 0&&!v3r(V,j))throw L(ie)}function L(V){return new Error(`reference "${V}" resolves to more than one schema`)}}sk.getSchemaRefs=D3r});var eX=dr(ij=>{"use strict";Object.defineProperty(ij,"__esModule",{value:!0});ij.getData=ij.KeywordCxt=ij.validateFunctionCode=void 0;var jIt=dIt(),FIt=Vce(),zze=Nze(),b2e=Vce(),A3r=SIt(),Hce=kIt(),Uze=DIt(),zl=wp(),xp=Rw(),w3r=Wce(),H7=cd(),Gce=Jce();function I3r(e){if(UIt(e)&&(zIt(e),$It(e))){O3r(e);return}BIt(e,()=>(0,jIt.topBoolOrEmptySchema)(e))}ij.validateFunctionCode=I3r;function BIt({gen:e,validateName:r,schema:i,schemaEnv:s,opts:l},d){l.code.es5?e.func(r,(0,zl._)`${xp.default.data}, ${xp.default.valCxt}`,s.$async,()=>{e.code((0,zl._)`"use strict"; ${RIt(i,l)}`),N3r(e,l),e.code(d)}):e.func(r,(0,zl._)`${xp.default.data}, ${P3r(l)}`,s.$async,()=>e.code(RIt(i,l)).code(d))}function P3r(e){return(0,zl._)`{${xp.default.instancePath}="", ${xp.default.parentData}, ${xp.default.parentDataProperty}, ${xp.default.rootData}=${xp.default.data}${e.dynamicRef?(0,zl._)`, ${xp.default.dynamicAnchors}={}`:zl.nil}}={}`}function N3r(e,r){e.if(xp.default.valCxt,()=>{e.var(xp.default.instancePath,(0,zl._)`${xp.default.valCxt}.${xp.default.instancePath}`),e.var(xp.default.parentData,(0,zl._)`${xp.default.valCxt}.${xp.default.parentData}`),e.var(xp.default.parentDataProperty,(0,zl._)`${xp.default.valCxt}.${xp.default.parentDataProperty}`),e.var(xp.default.rootData,(0,zl._)`${xp.default.valCxt}.${xp.default.rootData}`),r.dynamicRef&&e.var(xp.default.dynamicAnchors,(0,zl._)`${xp.default.valCxt}.${xp.default.dynamicAnchors}`)},()=>{e.var(xp.default.instancePath,(0,zl._)`""`),e.var(xp.default.parentData,(0,zl._)`undefined`),e.var(xp.default.parentDataProperty,(0,zl._)`undefined`),e.var(xp.default.rootData,xp.default.data),r.dynamicRef&&e.var(xp.default.dynamicAnchors,(0,zl._)`{}`)})}function O3r(e){let{schema:r,opts:i,gen:s}=e;BIt(e,()=>{i.$comment&&r.$comment&&JIt(e),j3r(e),s.let(xp.default.vErrors,null),s.let(xp.default.errors,0),i.unevaluated&&F3r(e),qIt(e),U3r(e)})}function F3r(e){let{gen:r,validateName:i}=e;e.evaluated=r.const("evaluated",(0,zl._)`${i}.evaluated`),r.if((0,zl._)`${e.evaluated}.dynamicProps`,()=>r.assign((0,zl._)`${e.evaluated}.props`,(0,zl._)`undefined`)),r.if((0,zl._)`${e.evaluated}.dynamicItems`,()=>r.assign((0,zl._)`${e.evaluated}.items`,(0,zl._)`undefined`))}function RIt(e,r){let i=typeof e=="object"&&e[r.schemaId];return i&&(r.code.source||r.code.process)?(0,zl._)`/*# sourceURL=${i} */`:zl.nil}function R3r(e,r){if(UIt(e)&&(zIt(e),$It(e))){L3r(e,r);return}(0,jIt.boolOrEmptySchema)(e,r)}function $It({schema:e,self:r}){if(typeof e=="boolean")return!e;for(let i in e)if(r.RULES.all[i])return!0;return!1}function UIt(e){return typeof e.schema!="boolean"}function L3r(e,r){let{schema:i,gen:s,opts:l}=e;l.$comment&&i.$comment&&JIt(e),B3r(e),$3r(e);let d=s.const("_errs",xp.default.errors);qIt(e,d),s.var(r,(0,zl._)`${d} === ${xp.default.errors}`)}function zIt(e){(0,H7.checkUnknownRules)(e),M3r(e)}function qIt(e,r){if(e.opts.jtd)return LIt(e,[],!1,r);let i=(0,FIt.getSchemaTypes)(e.schema),s=(0,FIt.coerceAndCheckDataType)(e,i);LIt(e,i,!s,r)}function M3r(e){let{schema:r,errSchemaPath:i,opts:s,self:l}=e;r.$ref&&s.ignoreKeywordsWithRef&&(0,H7.schemaHasRulesButRef)(r,l.RULES)&&l.logger.warn(`$ref: keywords ignored in schema at path "${i}"`)}function j3r(e){let{schema:r,opts:i}=e;r.default!==void 0&&i.useDefaults&&i.strictSchema&&(0,H7.checkStrictMode)(e,"default is ignored in the schema root")}function B3r(e){let r=e.schema[e.opts.schemaId];r&&(e.baseId=(0,w3r.resolveUrl)(e.opts.uriResolver,e.baseId,r))}function $3r(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function JIt({gen:e,schemaEnv:r,schema:i,errSchemaPath:s,opts:l}){let d=i.$comment;if(l.$comment===!0)e.code((0,zl._)`${xp.default.self}.logger.log(${d})`);else if(typeof l.$comment=="function"){let h=(0,zl.str)`${s}/$comment`,S=e.scopeValue("root",{ref:r.root});e.code((0,zl._)`${xp.default.self}.opts.$comment(${d}, ${h}, ${S}.schema)`)}}function U3r(e){let{gen:r,schemaEnv:i,validateName:s,ValidationError:l,opts:d}=e;i.$async?r.if((0,zl._)`${xp.default.errors} === 0`,()=>r.return(xp.default.data),()=>r.throw((0,zl._)`new ${l}(${xp.default.vErrors})`)):(r.assign((0,zl._)`${s}.errors`,xp.default.vErrors),d.unevaluated&&z3r(e),r.return((0,zl._)`${xp.default.errors} === 0`))}function z3r({gen:e,evaluated:r,props:i,items:s}){i instanceof zl.Name&&e.assign((0,zl._)`${r}.props`,i),s instanceof zl.Name&&e.assign((0,zl._)`${r}.items`,s)}function LIt(e,r,i,s){let{gen:l,schema:d,data:h,allErrors:S,opts:b,self:A}=e,{RULES:L}=A;if(d.$ref&&(b.ignoreKeywordsWithRef||!(0,H7.schemaHasRulesButRef)(d,L))){l.block(()=>WIt(e,"$ref",L.all.$ref.definition));return}b.jtd||q3r(e,r),l.block(()=>{for(let j of L.rules)V(j);V(L.post)});function V(j){(0,zze.shouldUseGroup)(d,j)&&(j.type?(l.if((0,b2e.checkDataType)(j.type,h,b.strictNumbers)),MIt(e,j),r.length===1&&r[0]===j.type&&i&&(l.else(),(0,b2e.reportTypeError)(e)),l.endIf()):MIt(e,j),S||l.if((0,zl._)`${xp.default.errors} === ${s||0}`))}}function MIt(e,r){let{gen:i,schema:s,opts:{useDefaults:l}}=e;l&&(0,A3r.assignDefaults)(e,r.type),i.block(()=>{for(let d of r.rules)(0,zze.shouldUseRule)(s,d)&&WIt(e,d.keyword,d.definition,r.type)})}function q3r(e,r){e.schemaEnv.meta||!e.opts.strictTypes||(J3r(e,r),e.opts.allowUnionTypes||V3r(e,r),W3r(e,e.dataTypes))}function J3r(e,r){if(r.length){if(!e.dataTypes.length){e.dataTypes=r;return}r.forEach(i=>{VIt(e.dataTypes,i)||qze(e,`type "${i}" not allowed by context "${e.dataTypes.join(",")}"`)}),H3r(e,r)}}function V3r(e,r){r.length>1&&!(r.length===2&&r.includes("null"))&&qze(e,"use allowUnionTypes to allow union type keyword")}function W3r(e,r){let i=e.self.RULES.all;for(let s in i){let l=i[s];if(typeof l=="object"&&(0,zze.shouldUseRule)(e.schema,l)){let{type:d}=l.definition;d.length&&!d.some(h=>G3r(r,h))&&qze(e,`missing type "${d.join(",")}" for keyword "${s}"`)}}}function G3r(e,r){return e.includes(r)||r==="number"&&e.includes("integer")}function VIt(e,r){return e.includes(r)||r==="integer"&&e.includes("number")}function H3r(e,r){let i=[];for(let s of e.dataTypes)VIt(r,s)?i.push(s):r.includes("integer")&&s==="number"&&i.push("integer");e.dataTypes=i}function qze(e,r){let i=e.schemaEnv.baseId+e.errSchemaPath;r+=` at "${i}" (strictTypes)`,(0,H7.checkStrictMode)(e,r,e.opts.strictTypes)}var x2e=class{constructor(r,i,s){if((0,Hce.validateKeywordUsage)(r,i,s),this.gen=r.gen,this.allErrors=r.allErrors,this.keyword=s,this.data=r.data,this.schema=r.schema[s],this.$data=i.$data&&r.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,H7.schemaRefOrVal)(r,this.schema,s,this.$data),this.schemaType=i.schemaType,this.parentSchema=r.schema,this.params={},this.it=r,this.def=i,this.$data)this.schemaCode=r.gen.const("vSchema",GIt(this.$data,r));else if(this.schemaCode=this.schemaValue,!(0,Hce.validSchemaType)(this.schema,i.schemaType,i.allowUndefined))throw new Error(`${s} value must be ${JSON.stringify(i.schemaType)}`);("code"in i?i.trackErrors:i.errors!==!1)&&(this.errsCount=r.gen.const("_errs",xp.default.errors))}result(r,i,s){this.failResult((0,zl.not)(r),i,s)}failResult(r,i,s){this.gen.if(r),s?s():this.error(),i?(this.gen.else(),i(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(r,i){this.failResult((0,zl.not)(r),void 0,i)}fail(r){if(r===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(r),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(r){if(!this.$data)return this.fail(r);let{schemaCode:i}=this;this.fail((0,zl._)`${i} !== undefined && (${(0,zl.or)(this.invalid$data(),r)})`)}error(r,i,s){if(i){this.setParams(i),this._error(r,s),this.setParams({});return}this._error(r,s)}_error(r,i){(r?Gce.reportExtraError:Gce.reportError)(this,this.def.error,i)}$dataError(){(0,Gce.reportError)(this,this.def.$dataError||Gce.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Gce.resetErrorsCount)(this.gen,this.errsCount)}ok(r){this.allErrors||this.gen.if(r)}setParams(r,i){i?Object.assign(this.params,r):this.params=r}block$data(r,i,s=zl.nil){this.gen.block(()=>{this.check$data(r,s),i()})}check$data(r=zl.nil,i=zl.nil){if(!this.$data)return;let{gen:s,schemaCode:l,schemaType:d,def:h}=this;s.if((0,zl.or)((0,zl._)`${l} === undefined`,i)),r!==zl.nil&&s.assign(r,!0),(d.length||h.validateSchema)&&(s.elseIf(this.invalid$data()),this.$dataError(),r!==zl.nil&&s.assign(r,!1)),s.else()}invalid$data(){let{gen:r,schemaCode:i,schemaType:s,def:l,it:d}=this;return(0,zl.or)(h(),S());function h(){if(s.length){if(!(i instanceof zl.Name))throw new Error("ajv implementation error");let b=Array.isArray(s)?s:[s];return(0,zl._)`${(0,b2e.checkDataTypes)(b,i,d.opts.strictNumbers,b2e.DataType.Wrong)}`}return zl.nil}function S(){if(l.validateSchema){let b=r.scopeValue("validate$data",{ref:l.validateSchema});return(0,zl._)`!${b}(${i})`}return zl.nil}}subschema(r,i){let s=(0,Uze.getSubschema)(this.it,r);(0,Uze.extendSubschemaData)(s,this.it,r),(0,Uze.extendSubschemaMode)(s,r);let l={...this.it,...s,items:void 0,props:void 0};return R3r(l,i),l}mergeEvaluated(r,i){let{it:s,gen:l}=this;s.opts.unevaluated&&(s.props!==!0&&r.props!==void 0&&(s.props=H7.mergeEvaluated.props(l,r.props,s.props,i)),s.items!==!0&&r.items!==void 0&&(s.items=H7.mergeEvaluated.items(l,r.items,s.items,i)))}mergeValidEvaluated(r,i){let{it:s,gen:l}=this;if(s.opts.unevaluated&&(s.props!==!0||s.items!==!0))return l.if(i,()=>this.mergeEvaluated(r,zl.Name)),!0}};ij.KeywordCxt=x2e;function WIt(e,r,i,s){let l=new x2e(e,i,r);"code"in i?i.code(l,s):l.$data&&i.validate?(0,Hce.funcKeywordCode)(l,i):"macro"in i?(0,Hce.macroKeywordCode)(l,i):(i.compile||i.validate)&&(0,Hce.funcKeywordCode)(l,i)}var K3r=/^\/(?:[^~]|~0|~1)*$/,Q3r=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function GIt(e,{dataLevel:r,dataNames:i,dataPathArr:s}){let l,d;if(e==="")return xp.default.rootData;if(e[0]==="/"){if(!K3r.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);l=e,d=xp.default.rootData}else{let A=Q3r.exec(e);if(!A)throw new Error(`Invalid JSON-pointer: ${e}`);let L=+A[1];if(l=A[2],l==="#"){if(L>=r)throw new Error(b("property/index",L));return s[r-L]}if(L>r)throw new Error(b("data",L));if(d=i[r-L],!l)return d}let h=d,S=l.split("/");for(let A of S)A&&(d=(0,zl._)`${d}${(0,zl.getProperty)((0,H7.unescapeJsonPointer)(A))}`,h=(0,zl._)`${h} && ${d}`);return h;function b(A,L){return`Cannot access ${A} ${L} levels up, current level is ${r}`}}ij.getData=GIt});var Kce=dr(Vze=>{"use strict";Object.defineProperty(Vze,"__esModule",{value:!0});var Jze=class extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}};Vze.default=Jze});var tX=dr(Hze=>{"use strict";Object.defineProperty(Hze,"__esModule",{value:!0});var Wze=Wce(),Gze=class extends Error{constructor(r,i,s,l){super(l||`can't resolve reference ${s} from id ${i}`),this.missingRef=(0,Wze.resolveUrl)(r,i,s),this.missingSchema=(0,Wze.normalizeId)((0,Wze.getFullPath)(r,this.missingRef))}};Hze.default=Gze});var Qce=dr(Mw=>{"use strict";Object.defineProperty(Mw,"__esModule",{value:!0});Mw.resolveSchema=Mw.getCompilingSchema=Mw.resolveRef=Mw.compileSchema=Mw.SchemaEnv=void 0;var g6=wp(),Z3r=Kce(),bJ=Rw(),y6=Wce(),HIt=cd(),X3r=eX(),rX=class{constructor(r){var i;this.refs={},this.dynamicAnchors={};let s;typeof r.schema=="object"&&(s=r.schema),this.schema=r.schema,this.schemaId=r.schemaId,this.root=r.root||this,this.baseId=(i=r.baseId)!==null&&i!==void 0?i:(0,y6.normalizeId)(s?.[r.schemaId||"$id"]),this.schemaPath=r.schemaPath,this.localRefs=r.localRefs,this.meta=r.meta,this.$async=s?.$async,this.refs={}}};Mw.SchemaEnv=rX;function Qze(e){let r=KIt.call(this,e);if(r)return r;let i=(0,y6.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:s,lines:l}=this.opts.code,{ownProperties:d}=this.opts,h=new g6.CodeGen(this.scope,{es5:s,lines:l,ownProperties:d}),S;e.$async&&(S=h.scopeValue("Error",{ref:Z3r.default,code:(0,g6._)`require("ajv/dist/runtime/validation_error").default`}));let b=h.scopeName("validate");e.validateName=b;let A={gen:h,allErrors:this.opts.allErrors,data:bJ.default.data,parentData:bJ.default.parentData,parentDataProperty:bJ.default.parentDataProperty,dataNames:[bJ.default.data],dataPathArr:[g6.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:h.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,g6.stringify)(e.schema)}:{ref:e.schema}),validateName:b,ValidationError:S,schema:e.schema,schemaEnv:e,rootId:i,baseId:e.baseId||i,schemaPath:g6.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,g6._)`""`,opts:this.opts,self:this},L;try{this._compilations.add(e),(0,X3r.validateFunctionCode)(A),h.optimize(this.opts.code.optimize);let V=h.toString();L=`${h.scopeRefs(bJ.default.scope)}return ${V}`,this.opts.code.process&&(L=this.opts.code.process(L,e));let ie=new Function(`${bJ.default.self}`,`${bJ.default.scope}`,L)(this,this.scope.get());if(this.scope.value(b,{ref:ie}),ie.errors=null,ie.schema=e.schema,ie.schemaEnv=e,e.$async&&(ie.$async=!0),this.opts.code.source===!0&&(ie.source={validateName:b,validateCode:V,scopeValues:h._values}),this.opts.unevaluated){let{props:te,items:X}=A;ie.evaluated={props:te instanceof g6.Name?void 0:te,items:X instanceof g6.Name?void 0:X,dynamicProps:te instanceof g6.Name,dynamicItems:X instanceof g6.Name},ie.source&&(ie.source.evaluated=(0,g6.stringify)(ie.evaluated))}return e.validate=ie,e}catch(V){throw delete e.validate,delete e.validateName,L&&this.logger.error("Error compiling schema, function code:",L),V}finally{this._compilations.delete(e)}}Mw.compileSchema=Qze;function Y3r(e,r,i){var s;i=(0,y6.resolveUrl)(this.opts.uriResolver,r,i);let l=e.refs[i];if(l)return l;let d=rNr.call(this,e,i);if(d===void 0){let h=(s=e.localRefs)===null||s===void 0?void 0:s[i],{schemaId:S}=this.opts;h&&(d=new rX({schema:h,schemaId:S,root:e,baseId:r}))}if(d!==void 0)return e.refs[i]=eNr.call(this,d)}Mw.resolveRef=Y3r;function eNr(e){return(0,y6.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Qze.call(this,e)}function KIt(e){for(let r of this._compilations)if(tNr(r,e))return r}Mw.getCompilingSchema=KIt;function tNr(e,r){return e.schema===r.schema&&e.root===r.root&&e.baseId===r.baseId}function rNr(e,r){let i;for(;typeof(i=this.refs[r])=="string";)r=i;return i||this.schemas[r]||T2e.call(this,e,r)}function T2e(e,r){let i=this.opts.uriResolver.parse(r),s=(0,y6._getFullPath)(this.opts.uriResolver,i),l=(0,y6.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&s===l)return Kze.call(this,i,e);let d=(0,y6.normalizeId)(s),h=this.refs[d]||this.schemas[d];if(typeof h=="string"){let S=T2e.call(this,e,h);return typeof S?.schema!="object"?void 0:Kze.call(this,i,S)}if(typeof h?.schema=="object"){if(h.validate||Qze.call(this,h),d===(0,y6.normalizeId)(r)){let{schema:S}=h,{schemaId:b}=this.opts,A=S[b];return A&&(l=(0,y6.resolveUrl)(this.opts.uriResolver,l,A)),new rX({schema:S,schemaId:b,root:e,baseId:l})}return Kze.call(this,i,h)}}Mw.resolveSchema=T2e;var nNr=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Kze(e,{baseId:r,schema:i,root:s}){var l;if(((l=e.fragment)===null||l===void 0?void 0:l[0])!=="/")return;for(let S of e.fragment.slice(1).split("/")){if(typeof i=="boolean")return;let b=i[(0,HIt.unescapeFragment)(S)];if(b===void 0)return;i=b;let A=typeof i=="object"&&i[this.opts.schemaId];!nNr.has(S)&&A&&(r=(0,y6.resolveUrl)(this.opts.uriResolver,r,A))}let d;if(typeof i!="boolean"&&i.$ref&&!(0,HIt.schemaHasRulesButRef)(i,this.RULES)){let S=(0,y6.resolveUrl)(this.opts.uriResolver,r,i.$ref);d=T2e.call(this,s,S)}let{schemaId:h}=this.opts;if(d=d||new rX({schema:i,schemaId:h,root:s,baseId:r}),d.schema!==d.root.schema)return d}});var QIt=dr((P4n,iNr)=>{iNr.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Xze=dr((N4n,ePt)=>{"use strict";var oNr=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),XIt=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function Zze(e){let r="",i=0,s=0;for(s=0;s=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))return"";r+=e[s];break}for(s+=1;s=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))return"";r+=e[s]}return r}var aNr=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function ZIt(e){return e.length=0,!0}function sNr(e,r,i){if(e.length){let s=Zze(e);if(s!=="")r.push(s);else return i.error=!0,!1;e.length=0}return!0}function cNr(e){let r=0,i={error:!1,address:"",zone:""},s=[],l=[],d=!1,h=!1,S=sNr;for(let b=0;b7){i.error=!0;break}b>0&&e[b-1]===":"&&(d=!0),s.push(":");continue}else if(A==="%"){if(!S(l,s,i))break;S=ZIt}else{l.push(A);continue}}return l.length&&(S===ZIt?i.zone=l.join(""):h?s.push(l.join("")):s.push(Zze(l))),i.address=s.join(""),i}function YIt(e){if(lNr(e,":")<2)return{host:e,isIPV6:!1};let r=cNr(e);if(r.error)return{host:e,isIPV6:!1};{let i=r.address,s=r.address;return r.zone&&(i+="%"+r.zone,s+="%25"+r.zone),{host:i,isIPV6:!0,escapedHost:s}}}function lNr(e,r){let i=0;for(let s=0;s{"use strict";var{isUUID:dNr}=Xze(),fNr=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,mNr=["http","https","ws","wss","urn","urn:uuid"];function hNr(e){return mNr.indexOf(e)!==-1}function Yze(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function tPt(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function rPt(e){let r=String(e.scheme).toLowerCase()==="https";return(e.port===(r?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function gNr(e){return e.secure=Yze(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function yNr(e){if((e.port===(Yze(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[r,i]=e.resourceName.split("?");e.path=r&&r!=="/"?r:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}function vNr(e,r){if(!e.path)return e.error="URN can not be parsed",e;let i=e.path.match(fNr);if(i){let s=r.scheme||e.scheme||"urn";e.nid=i[1].toLowerCase(),e.nss=i[2];let l=`${s}:${r.nid||e.nid}`,d=eqe(l);e.path=void 0,d&&(e=d.parse(e,r))}else e.error=e.error||"URN can not be parsed.";return e}function SNr(e,r){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let i=r.scheme||e.scheme||"urn",s=e.nid.toLowerCase(),l=`${i}:${r.nid||s}`,d=eqe(l);d&&(e=d.serialize(e,r));let h=e,S=e.nss;return h.path=`${s||r.nid}:${S}`,r.skipEscape=!0,h}function bNr(e,r){let i=e;return i.uuid=i.nss,i.nss=void 0,!r.tolerant&&(!i.uuid||!dNr(i.uuid))&&(i.error=i.error||"UUID is not valid."),i}function xNr(e){let r=e;return r.nss=(e.uuid||"").toLowerCase(),r}var nPt={scheme:"http",domainHost:!0,parse:tPt,serialize:rPt},TNr={scheme:"https",domainHost:nPt.domainHost,parse:tPt,serialize:rPt},E2e={scheme:"ws",domainHost:!0,parse:gNr,serialize:yNr},ENr={scheme:"wss",domainHost:E2e.domainHost,parse:E2e.parse,serialize:E2e.serialize},kNr={scheme:"urn",parse:vNr,serialize:SNr,skipNormalize:!0},CNr={scheme:"urn:uuid",parse:bNr,serialize:xNr,skipNormalize:!0},k2e={http:nPt,https:TNr,ws:E2e,wss:ENr,urn:kNr,"urn:uuid":CNr};Object.setPrototypeOf(k2e,null);function eqe(e){return e&&(k2e[e]||k2e[e.toLowerCase()])||void 0}iPt.exports={wsIsSecure:Yze,SCHEMES:k2e,isValidSchemeName:hNr,getSchemeHandler:eqe}});var cPt=dr((F4n,D2e)=>{"use strict";var{normalizeIPv6:DNr,removeDotSegments:Zce,recomposeAuthority:ANr,normalizeComponentEncoding:C2e,isIPv4:wNr,nonSimpleDomain:INr}=Xze(),{SCHEMES:PNr,getSchemeHandler:aPt}=oPt();function NNr(e,r){return typeof e=="string"?e=AN(K7(e,r),r):typeof e=="object"&&(e=K7(AN(e,r),r)),e}function ONr(e,r,i){let s=i?Object.assign({scheme:"null"},i):{scheme:"null"},l=sPt(K7(e,s),K7(r,s),s,!0);return s.skipEscape=!0,AN(l,s)}function sPt(e,r,i,s){let l={};return s||(e=K7(AN(e,i),i),r=K7(AN(r,i),i)),i=i||{},!i.tolerant&&r.scheme?(l.scheme=r.scheme,l.userinfo=r.userinfo,l.host=r.host,l.port=r.port,l.path=Zce(r.path||""),l.query=r.query):(r.userinfo!==void 0||r.host!==void 0||r.port!==void 0?(l.userinfo=r.userinfo,l.host=r.host,l.port=r.port,l.path=Zce(r.path||""),l.query=r.query):(r.path?(r.path[0]==="/"?l.path=Zce(r.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?l.path="/"+r.path:e.path?l.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path:l.path=r.path,l.path=Zce(l.path)),l.query=r.query):(l.path=e.path,r.query!==void 0?l.query=r.query:l.query=e.query),l.userinfo=e.userinfo,l.host=e.host,l.port=e.port),l.scheme=e.scheme),l.fragment=r.fragment,l}function FNr(e,r,i){return typeof e=="string"?(e=unescape(e),e=AN(C2e(K7(e,i),!0),{...i,skipEscape:!0})):typeof e=="object"&&(e=AN(C2e(e,!0),{...i,skipEscape:!0})),typeof r=="string"?(r=unescape(r),r=AN(C2e(K7(r,i),!0),{...i,skipEscape:!0})):typeof r=="object"&&(r=AN(C2e(r,!0),{...i,skipEscape:!0})),e.toLowerCase()===r.toLowerCase()}function AN(e,r){let i={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},s=Object.assign({},r),l=[],d=aPt(s.scheme||i.scheme);d&&d.serialize&&d.serialize(i,s),i.path!==void 0&&(s.skipEscape?i.path=unescape(i.path):(i.path=escape(i.path),i.scheme!==void 0&&(i.path=i.path.split("%3A").join(":")))),s.reference!=="suffix"&&i.scheme&&l.push(i.scheme,":");let h=ANr(i);if(h!==void 0&&(s.reference!=="suffix"&&l.push("//"),l.push(h),i.path&&i.path[0]!=="/"&&l.push("/")),i.path!==void 0){let S=i.path;!s.absolutePath&&(!d||!d.absolutePath)&&(S=Zce(S)),h===void 0&&S[0]==="/"&&S[1]==="/"&&(S="/%2F"+S.slice(2)),l.push(S)}return i.query!==void 0&&l.push("?",i.query),i.fragment!==void 0&&l.push("#",i.fragment),l.join("")}var RNr=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function K7(e,r){let i=Object.assign({},r),s={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},l=!1;i.reference==="suffix"&&(i.scheme?e=i.scheme+":"+e:e="//"+e);let d=e.match(RNr);if(d){if(s.scheme=d[1],s.userinfo=d[3],s.host=d[4],s.port=parseInt(d[5],10),s.path=d[6]||"",s.query=d[7],s.fragment=d[8],isNaN(s.port)&&(s.port=d[5]),s.host)if(wNr(s.host)===!1){let b=DNr(s.host);s.host=b.host.toLowerCase(),l=b.isIPV6}else l=!0;s.scheme===void 0&&s.userinfo===void 0&&s.host===void 0&&s.port===void 0&&s.query===void 0&&!s.path?s.reference="same-document":s.scheme===void 0?s.reference="relative":s.fragment===void 0?s.reference="absolute":s.reference="uri",i.reference&&i.reference!=="suffix"&&i.reference!==s.reference&&(s.error=s.error||"URI is not a "+i.reference+" reference.");let h=aPt(i.scheme||s.scheme);if(!i.unicodeSupport&&(!h||!h.unicodeSupport)&&s.host&&(i.domainHost||h&&h.domainHost)&&l===!1&&INr(s.host))try{s.host=URL.domainToASCII(s.host.toLowerCase())}catch(S){s.error=s.error||"Host's domain name can not be converted to ASCII: "+S}(!h||h&&!h.skipNormalize)&&(e.indexOf("%")!==-1&&(s.scheme!==void 0&&(s.scheme=unescape(s.scheme)),s.host!==void 0&&(s.host=unescape(s.host))),s.path&&(s.path=escape(unescape(s.path))),s.fragment&&(s.fragment=encodeURI(decodeURIComponent(s.fragment)))),h&&h.parse&&h.parse(s,i)}else s.error=s.error||"URI can not be parsed.";return s}var tqe={SCHEMES:PNr,normalize:NNr,resolve:ONr,resolveComponent:sPt,equal:FNr,serialize:AN,parse:K7};D2e.exports=tqe;D2e.exports.default=tqe;D2e.exports.fastUri=tqe});var uPt=dr(rqe=>{"use strict";Object.defineProperty(rqe,"__esModule",{value:!0});var lPt=cPt();lPt.code='require("ajv/dist/runtime/uri").default';rqe.default=lPt});var oqe=dr(Kb=>{"use strict";Object.defineProperty(Kb,"__esModule",{value:!0});Kb.CodeGen=Kb.Name=Kb.nil=Kb.stringify=Kb.str=Kb._=Kb.KeywordCxt=void 0;var LNr=eX();Object.defineProperty(Kb,"KeywordCxt",{enumerable:!0,get:function(){return LNr.KeywordCxt}});var nX=wp();Object.defineProperty(Kb,"_",{enumerable:!0,get:function(){return nX._}});Object.defineProperty(Kb,"str",{enumerable:!0,get:function(){return nX.str}});Object.defineProperty(Kb,"stringify",{enumerable:!0,get:function(){return nX.stringify}});Object.defineProperty(Kb,"nil",{enumerable:!0,get:function(){return nX.nil}});Object.defineProperty(Kb,"Name",{enumerable:!0,get:function(){return nX.Name}});Object.defineProperty(Kb,"CodeGen",{enumerable:!0,get:function(){return nX.CodeGen}});var MNr=Kce(),mPt=tX(),jNr=Pze(),Xce=Qce(),BNr=wp(),Yce=Wce(),A2e=Vce(),iqe=cd(),pPt=QIt(),$Nr=uPt(),hPt=(e,r)=>new RegExp(e,r);hPt.code="new RegExp";var UNr=["removeAdditional","useDefaults","coerceTypes"],zNr=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),qNr={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},JNr={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},_Pt=200;function VNr(e){var r,i,s,l,d,h,S,b,A,L,V,j,ie,te,X,Re,Je,pt,$e,xt,tr,ht,wt,Ut,hr;let Hi=e.strict,un=(r=e.code)===null||r===void 0?void 0:r.optimize,xo=un===!0||un===void 0?1:un||0,Lo=(s=(i=e.code)===null||i===void 0?void 0:i.regExp)!==null&&s!==void 0?s:hPt,yr=(l=e.uriResolver)!==null&&l!==void 0?l:$Nr.default;return{strictSchema:(h=(d=e.strictSchema)!==null&&d!==void 0?d:Hi)!==null&&h!==void 0?h:!0,strictNumbers:(b=(S=e.strictNumbers)!==null&&S!==void 0?S:Hi)!==null&&b!==void 0?b:!0,strictTypes:(L=(A=e.strictTypes)!==null&&A!==void 0?A:Hi)!==null&&L!==void 0?L:"log",strictTuples:(j=(V=e.strictTuples)!==null&&V!==void 0?V:Hi)!==null&&j!==void 0?j:"log",strictRequired:(te=(ie=e.strictRequired)!==null&&ie!==void 0?ie:Hi)!==null&&te!==void 0?te:!1,code:e.code?{...e.code,optimize:xo,regExp:Lo}:{optimize:xo,regExp:Lo},loopRequired:(X=e.loopRequired)!==null&&X!==void 0?X:_Pt,loopEnum:(Re=e.loopEnum)!==null&&Re!==void 0?Re:_Pt,meta:(Je=e.meta)!==null&&Je!==void 0?Je:!0,messages:(pt=e.messages)!==null&&pt!==void 0?pt:!0,inlineRefs:($e=e.inlineRefs)!==null&&$e!==void 0?$e:!0,schemaId:(xt=e.schemaId)!==null&&xt!==void 0?xt:"$id",addUsedSchema:(tr=e.addUsedSchema)!==null&&tr!==void 0?tr:!0,validateSchema:(ht=e.validateSchema)!==null&&ht!==void 0?ht:!0,validateFormats:(wt=e.validateFormats)!==null&&wt!==void 0?wt:!0,unicodeRegExp:(Ut=e.unicodeRegExp)!==null&&Ut!==void 0?Ut:!0,int32range:(hr=e.int32range)!==null&&hr!==void 0?hr:!0,uriResolver:yr}}var ele=class{constructor(r={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,r=this.opts={...r,...VNr(r)};let{es5:i,lines:s}=this.opts.code;this.scope=new BNr.ValueScope({scope:{},prefixes:zNr,es5:i,lines:s}),this.logger=ZNr(r.logger);let l=r.validateFormats;r.validateFormats=!1,this.RULES=(0,jNr.getRules)(),dPt.call(this,qNr,r,"NOT SUPPORTED"),dPt.call(this,JNr,r,"DEPRECATED","warn"),this._metaOpts=KNr.call(this),r.formats&&GNr.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),r.keywords&&HNr.call(this,r.keywords),typeof r.meta=="object"&&this.addMetaSchema(r.meta),WNr.call(this),r.validateFormats=l}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:r,meta:i,schemaId:s}=this.opts,l=pPt;s==="id"&&(l={...pPt},l.id=l.$id,delete l.$id),i&&r&&this.addMetaSchema(l,l[s],!1)}defaultMeta(){let{meta:r,schemaId:i}=this.opts;return this.opts.defaultMeta=typeof r=="object"?r[i]||r:void 0}validate(r,i){let s;if(typeof r=="string"){if(s=this.getSchema(r),!s)throw new Error(`no schema with key or ref "${r}"`)}else s=this.compile(r);let l=s(i);return"$async"in s||(this.errors=s.errors),l}compile(r,i){let s=this._addSchema(r,i);return s.validate||this._compileSchemaEnv(s)}compileAsync(r,i){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:s}=this.opts;return l.call(this,r,i);async function l(L,V){await d.call(this,L.$schema);let j=this._addSchema(L,V);return j.validate||h.call(this,j)}async function d(L){L&&!this.getSchema(L)&&await l.call(this,{$ref:L},!0)}async function h(L){try{return this._compileSchemaEnv(L)}catch(V){if(!(V instanceof mPt.default))throw V;return S.call(this,V),await b.call(this,V.missingSchema),h.call(this,L)}}function S({missingSchema:L,missingRef:V}){if(this.refs[L])throw new Error(`AnySchema ${L} is loaded but ${V} cannot be resolved`)}async function b(L){let V=await A.call(this,L);this.refs[L]||await d.call(this,V.$schema),this.refs[L]||this.addSchema(V,L,i)}async function A(L){let V=this._loading[L];if(V)return V;try{return await(this._loading[L]=s(L))}finally{delete this._loading[L]}}}addSchema(r,i,s,l=this.opts.validateSchema){if(Array.isArray(r)){for(let h of r)this.addSchema(h,void 0,s,l);return this}let d;if(typeof r=="object"){let{schemaId:h}=this.opts;if(d=r[h],d!==void 0&&typeof d!="string")throw new Error(`schema ${h} must be string`)}return i=(0,Yce.normalizeId)(i||d),this._checkUnique(i),this.schemas[i]=this._addSchema(r,s,i,l,!0),this}addMetaSchema(r,i,s=this.opts.validateSchema){return this.addSchema(r,i,!0,s),this}validateSchema(r,i){if(typeof r=="boolean")return!0;let s;if(s=r.$schema,s!==void 0&&typeof s!="string")throw new Error("$schema must be a string");if(s=s||this.opts.defaultMeta||this.defaultMeta(),!s)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let l=this.validate(s,r);if(!l&&i){let d="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(d);else throw new Error(d)}return l}getSchema(r){let i;for(;typeof(i=fPt.call(this,r))=="string";)r=i;if(i===void 0){let{schemaId:s}=this.opts,l=new Xce.SchemaEnv({schema:{},schemaId:s});if(i=Xce.resolveSchema.call(this,l,r),!i)return;this.refs[r]=i}return i.validate||this._compileSchemaEnv(i)}removeSchema(r){if(r instanceof RegExp)return this._removeAllSchemas(this.schemas,r),this._removeAllSchemas(this.refs,r),this;switch(typeof r){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let i=fPt.call(this,r);return typeof i=="object"&&this._cache.delete(i.schema),delete this.schemas[r],delete this.refs[r],this}case"object":{let i=r;this._cache.delete(i);let s=r[this.opts.schemaId];return s&&(s=(0,Yce.normalizeId)(s),delete this.schemas[s],delete this.refs[s]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(r){for(let i of r)this.addKeyword(i);return this}addKeyword(r,i){let s;if(typeof r=="string")s=r,typeof i=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),i.keyword=s);else if(typeof r=="object"&&i===void 0){if(i=r,s=i.keyword,Array.isArray(s)&&!s.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(YNr.call(this,s,i),!i)return(0,iqe.eachItem)(s,d=>nqe.call(this,d)),this;t8r.call(this,i);let l={...i,type:(0,A2e.getJSONTypes)(i.type),schemaType:(0,A2e.getJSONTypes)(i.schemaType)};return(0,iqe.eachItem)(s,l.type.length===0?d=>nqe.call(this,d,l):d=>l.type.forEach(h=>nqe.call(this,d,l,h))),this}getKeyword(r){let i=this.RULES.all[r];return typeof i=="object"?i.definition:!!i}removeKeyword(r){let{RULES:i}=this;delete i.keywords[r],delete i.all[r];for(let s of i.rules){let l=s.rules.findIndex(d=>d.keyword===r);l>=0&&s.rules.splice(l,1)}return this}addFormat(r,i){return typeof i=="string"&&(i=new RegExp(i)),this.formats[r]=i,this}errorsText(r=this.errors,{separator:i=", ",dataVar:s="data"}={}){return!r||r.length===0?"No errors":r.map(l=>`${s}${l.instancePath} ${l.message}`).reduce((l,d)=>l+i+d)}$dataMetaSchema(r,i){let s=this.RULES.all;r=JSON.parse(JSON.stringify(r));for(let l of i){let d=l.split("/").slice(1),h=r;for(let S of d)h=h[S];for(let S in s){let b=s[S];if(typeof b!="object")continue;let{$data:A}=b.definition,L=h[S];A&&L&&(h[S]=gPt(L))}}return r}_removeAllSchemas(r,i){for(let s in r){let l=r[s];(!i||i.test(s))&&(typeof l=="string"?delete r[s]:l&&!l.meta&&(this._cache.delete(l.schema),delete r[s]))}}_addSchema(r,i,s,l=this.opts.validateSchema,d=this.opts.addUsedSchema){let h,{schemaId:S}=this.opts;if(typeof r=="object")h=r[S];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof r!="boolean")throw new Error("schema must be object or boolean")}let b=this._cache.get(r);if(b!==void 0)return b;s=(0,Yce.normalizeId)(h||s);let A=Yce.getSchemaRefs.call(this,r,s);return b=new Xce.SchemaEnv({schema:r,schemaId:S,meta:i,baseId:s,localRefs:A}),this._cache.set(b.schema,b),d&&!s.startsWith("#")&&(s&&this._checkUnique(s),this.refs[s]=b),l&&this.validateSchema(r,!0),b}_checkUnique(r){if(this.schemas[r]||this.refs[r])throw new Error(`schema with key or id "${r}" already exists`)}_compileSchemaEnv(r){if(r.meta?this._compileMetaSchema(r):Xce.compileSchema.call(this,r),!r.validate)throw new Error("ajv implementation error");return r.validate}_compileMetaSchema(r){let i=this.opts;this.opts=this._metaOpts;try{Xce.compileSchema.call(this,r)}finally{this.opts=i}}};ele.ValidationError=MNr.default;ele.MissingRefError=mPt.default;Kb.default=ele;function dPt(e,r,i,s="error"){for(let l in e){let d=l;d in r&&this.logger[s](`${i}: option ${l}. ${e[d]}`)}}function fPt(e){return e=(0,Yce.normalizeId)(e),this.schemas[e]||this.refs[e]}function WNr(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let r in e)this.addSchema(e[r],r)}function GNr(){for(let e in this.opts.formats){let r=this.opts.formats[e];r&&this.addFormat(e,r)}}function HNr(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let r in e){let i=e[r];i.keyword||(i.keyword=r),this.addKeyword(i)}}function KNr(){let e={...this.opts};for(let r of UNr)delete e[r];return e}var QNr={log(){},warn(){},error(){}};function ZNr(e){if(e===!1)return QNr;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var XNr=/^[a-z_$][a-z0-9_$:-]*$/i;function YNr(e,r){let{RULES:i}=this;if((0,iqe.eachItem)(e,s=>{if(i.keywords[s])throw new Error(`Keyword ${s} is already defined`);if(!XNr.test(s))throw new Error(`Keyword ${s} has invalid name`)}),!!r&&r.$data&&!("code"in r||"validate"in r))throw new Error('$data keyword must have "code" or "validate" function')}function nqe(e,r,i){var s;let l=r?.post;if(i&&l)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:d}=this,h=l?d.post:d.rules.find(({type:b})=>b===i);if(h||(h={type:i,rules:[]},d.rules.push(h)),d.keywords[e]=!0,!r)return;let S={keyword:e,definition:{...r,type:(0,A2e.getJSONTypes)(r.type),schemaType:(0,A2e.getJSONTypes)(r.schemaType)}};r.before?e8r.call(this,h,S,r.before):h.rules.push(S),d.all[e]=S,(s=r.implements)===null||s===void 0||s.forEach(b=>this.addKeyword(b))}function e8r(e,r,i){let s=e.rules.findIndex(l=>l.keyword===i);s>=0?e.rules.splice(s,0,r):(e.rules.push(r),this.logger.warn(`rule ${i} is not defined`))}function t8r(e){let{metaSchema:r}=e;r!==void 0&&(e.$data&&this.opts.$data&&(r=gPt(r)),e.validateSchema=this.compile(r,!0))}var r8r={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function gPt(e){return{anyOf:[e,r8r]}}});var yPt=dr(aqe=>{"use strict";Object.defineProperty(aqe,"__esModule",{value:!0});var n8r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};aqe.default=n8r});var P2e=dr(xJ=>{"use strict";Object.defineProperty(xJ,"__esModule",{value:!0});xJ.callRef=xJ.getValidate=void 0;var i8r=tX(),vPt=Lw(),ck=wp(),iX=Rw(),SPt=Qce(),w2e=cd(),o8r={keyword:"$ref",schemaType:"string",code(e){let{gen:r,schema:i,it:s}=e,{baseId:l,schemaEnv:d,validateName:h,opts:S,self:b}=s,{root:A}=d;if((i==="#"||i==="#/")&&l===A.baseId)return V();let L=SPt.resolveRef.call(b,A,l,i);if(L===void 0)throw new i8r.default(s.opts.uriResolver,l,i);if(L instanceof SPt.SchemaEnv)return j(L);return ie(L);function V(){if(d===A)return I2e(e,h,d,d.$async);let te=r.scopeValue("root",{ref:A});return I2e(e,(0,ck._)`${te}.validate`,A,A.$async)}function j(te){let X=bPt(e,te);I2e(e,X,te,te.$async)}function ie(te){let X=r.scopeValue("schema",S.code.source===!0?{ref:te,code:(0,ck.stringify)(te)}:{ref:te}),Re=r.name("valid"),Je=e.subschema({schema:te,dataTypes:[],schemaPath:ck.nil,topSchemaRef:X,errSchemaPath:i},Re);e.mergeEvaluated(Je),e.ok(Re)}}};function bPt(e,r){let{gen:i}=e;return r.validate?i.scopeValue("validate",{ref:r.validate}):(0,ck._)`${i.scopeValue("wrapper",{ref:r})}.validate`}xJ.getValidate=bPt;function I2e(e,r,i,s){let{gen:l,it:d}=e,{allErrors:h,schemaEnv:S,opts:b}=d,A=b.passContext?iX.default.this:ck.nil;s?L():V();function L(){if(!S.$async)throw new Error("async schema referenced by sync schema");let te=l.let("valid");l.try(()=>{l.code((0,ck._)`await ${(0,vPt.callValidateCode)(e,r,A)}`),ie(r),h||l.assign(te,!0)},X=>{l.if((0,ck._)`!(${X} instanceof ${d.ValidationError})`,()=>l.throw(X)),j(X),h||l.assign(te,!1)}),e.ok(te)}function V(){e.result((0,vPt.callValidateCode)(e,r,A),()=>ie(r),()=>j(r))}function j(te){let X=(0,ck._)`${te}.errors`;l.assign(iX.default.vErrors,(0,ck._)`${iX.default.vErrors} === null ? ${X} : ${iX.default.vErrors}.concat(${X})`),l.assign(iX.default.errors,(0,ck._)`${iX.default.vErrors}.length`)}function ie(te){var X;if(!d.opts.unevaluated)return;let Re=(X=i?.validate)===null||X===void 0?void 0:X.evaluated;if(d.props!==!0)if(Re&&!Re.dynamicProps)Re.props!==void 0&&(d.props=w2e.mergeEvaluated.props(l,Re.props,d.props));else{let Je=l.var("props",(0,ck._)`${te}.evaluated.props`);d.props=w2e.mergeEvaluated.props(l,Je,d.props,ck.Name)}if(d.items!==!0)if(Re&&!Re.dynamicItems)Re.items!==void 0&&(d.items=w2e.mergeEvaluated.items(l,Re.items,d.items));else{let Je=l.var("items",(0,ck._)`${te}.evaluated.items`);d.items=w2e.mergeEvaluated.items(l,Je,d.items,ck.Name)}}}xJ.callRef=I2e;xJ.default=o8r});var cqe=dr(sqe=>{"use strict";Object.defineProperty(sqe,"__esModule",{value:!0});var a8r=yPt(),s8r=P2e(),c8r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",a8r.default,s8r.default];sqe.default=c8r});var xPt=dr(lqe=>{"use strict";Object.defineProperty(lqe,"__esModule",{value:!0});var N2e=wp(),oj=N2e.operators,O2e={maximum:{okStr:"<=",ok:oj.LTE,fail:oj.GT},minimum:{okStr:">=",ok:oj.GTE,fail:oj.LT},exclusiveMaximum:{okStr:"<",ok:oj.LT,fail:oj.GTE},exclusiveMinimum:{okStr:">",ok:oj.GT,fail:oj.LTE}},l8r={message:({keyword:e,schemaCode:r})=>(0,N2e.str)`must be ${O2e[e].okStr} ${r}`,params:({keyword:e,schemaCode:r})=>(0,N2e._)`{comparison: ${O2e[e].okStr}, limit: ${r}}`},u8r={keyword:Object.keys(O2e),type:"number",schemaType:"number",$data:!0,error:l8r,code(e){let{keyword:r,data:i,schemaCode:s}=e;e.fail$data((0,N2e._)`${i} ${O2e[r].fail} ${s} || isNaN(${i})`)}};lqe.default=u8r});var TPt=dr(uqe=>{"use strict";Object.defineProperty(uqe,"__esModule",{value:!0});var tle=wp(),p8r={message:({schemaCode:e})=>(0,tle.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,tle._)`{multipleOf: ${e}}`},_8r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:p8r,code(e){let{gen:r,data:i,schemaCode:s,it:l}=e,d=l.opts.multipleOfPrecision,h=r.let("res"),S=d?(0,tle._)`Math.abs(Math.round(${h}) - ${h}) > 1e-${d}`:(0,tle._)`${h} !== parseInt(${h})`;e.fail$data((0,tle._)`(${s} === 0 || (${h} = ${i}/${s}, ${S}))`)}};uqe.default=_8r});var kPt=dr(pqe=>{"use strict";Object.defineProperty(pqe,"__esModule",{value:!0});function EPt(e){let r=e.length,i=0,s=0,l;for(;s=55296&&l<=56319&&s{"use strict";Object.defineProperty(_qe,"__esModule",{value:!0});var TJ=wp(),d8r=cd(),f8r=kPt(),m8r={message({keyword:e,schemaCode:r}){let i=e==="maxLength"?"more":"fewer";return(0,TJ.str)`must NOT have ${i} than ${r} characters`},params:({schemaCode:e})=>(0,TJ._)`{limit: ${e}}`},h8r={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:m8r,code(e){let{keyword:r,data:i,schemaCode:s,it:l}=e,d=r==="maxLength"?TJ.operators.GT:TJ.operators.LT,h=l.opts.unicode===!1?(0,TJ._)`${i}.length`:(0,TJ._)`${(0,d8r.useFunc)(e.gen,f8r.default)}(${i})`;e.fail$data((0,TJ._)`${h} ${d} ${s}`)}};_qe.default=h8r});var DPt=dr(dqe=>{"use strict";Object.defineProperty(dqe,"__esModule",{value:!0});var g8r=Lw(),y8r=cd(),oX=wp(),v8r={message:({schemaCode:e})=>(0,oX.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,oX._)`{pattern: ${e}}`},S8r={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:v8r,code(e){let{gen:r,data:i,$data:s,schema:l,schemaCode:d,it:h}=e,S=h.opts.unicodeRegExp?"u":"";if(s){let{regExp:b}=h.opts.code,A=b.code==="new RegExp"?(0,oX._)`new RegExp`:(0,y8r.useFunc)(r,b),L=r.let("valid");r.try(()=>r.assign(L,(0,oX._)`${A}(${d}, ${S}).test(${i})`),()=>r.assign(L,!1)),e.fail$data((0,oX._)`!${L}`)}else{let b=(0,g8r.usePattern)(e,l);e.fail$data((0,oX._)`!${b}.test(${i})`)}}};dqe.default=S8r});var APt=dr(fqe=>{"use strict";Object.defineProperty(fqe,"__esModule",{value:!0});var rle=wp(),b8r={message({keyword:e,schemaCode:r}){let i=e==="maxProperties"?"more":"fewer";return(0,rle.str)`must NOT have ${i} than ${r} properties`},params:({schemaCode:e})=>(0,rle._)`{limit: ${e}}`},x8r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:b8r,code(e){let{keyword:r,data:i,schemaCode:s}=e,l=r==="maxProperties"?rle.operators.GT:rle.operators.LT;e.fail$data((0,rle._)`Object.keys(${i}).length ${l} ${s}`)}};fqe.default=x8r});var wPt=dr(mqe=>{"use strict";Object.defineProperty(mqe,"__esModule",{value:!0});var nle=Lw(),ile=wp(),T8r=cd(),E8r={message:({params:{missingProperty:e}})=>(0,ile.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,ile._)`{missingProperty: ${e}}`},k8r={keyword:"required",type:"object",schemaType:"array",$data:!0,error:E8r,code(e){let{gen:r,schema:i,schemaCode:s,data:l,$data:d,it:h}=e,{opts:S}=h;if(!d&&i.length===0)return;let b=i.length>=S.loopRequired;if(h.allErrors?A():L(),S.strictRequired){let ie=e.parentSchema.properties,{definedProperties:te}=e.it;for(let X of i)if(ie?.[X]===void 0&&!te.has(X)){let Re=h.schemaEnv.baseId+h.errSchemaPath,Je=`required property "${X}" is not defined at "${Re}" (strictRequired)`;(0,T8r.checkStrictMode)(h,Je,h.opts.strictRequired)}}function A(){if(b||d)e.block$data(ile.nil,V);else for(let ie of i)(0,nle.checkReportMissingProp)(e,ie)}function L(){let ie=r.let("missing");if(b||d){let te=r.let("valid",!0);e.block$data(te,()=>j(ie,te)),e.ok(te)}else r.if((0,nle.checkMissingProp)(e,i,ie)),(0,nle.reportMissingProp)(e,ie),r.else()}function V(){r.forOf("prop",s,ie=>{e.setParams({missingProperty:ie}),r.if((0,nle.noPropertyInData)(r,l,ie,S.ownProperties),()=>e.error())})}function j(ie,te){e.setParams({missingProperty:ie}),r.forOf(ie,s,()=>{r.assign(te,(0,nle.propertyInData)(r,l,ie,S.ownProperties)),r.if((0,ile.not)(te),()=>{e.error(),r.break()})},ile.nil)}}};mqe.default=k8r});var IPt=dr(hqe=>{"use strict";Object.defineProperty(hqe,"__esModule",{value:!0});var ole=wp(),C8r={message({keyword:e,schemaCode:r}){let i=e==="maxItems"?"more":"fewer";return(0,ole.str)`must NOT have ${i} than ${r} items`},params:({schemaCode:e})=>(0,ole._)`{limit: ${e}}`},D8r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:C8r,code(e){let{keyword:r,data:i,schemaCode:s}=e,l=r==="maxItems"?ole.operators.GT:ole.operators.LT;e.fail$data((0,ole._)`${i}.length ${l} ${s}`)}};hqe.default=D8r});var F2e=dr(gqe=>{"use strict";Object.defineProperty(gqe,"__esModule",{value:!0});var PPt=Bze();PPt.code='require("ajv/dist/runtime/equal").default';gqe.default=PPt});var NPt=dr(vqe=>{"use strict";Object.defineProperty(vqe,"__esModule",{value:!0});var yqe=Vce(),Qb=wp(),A8r=cd(),w8r=F2e(),I8r={message:({params:{i:e,j:r}})=>(0,Qb.str)`must NOT have duplicate items (items ## ${r} and ${e} are identical)`,params:({params:{i:e,j:r}})=>(0,Qb._)`{i: ${e}, j: ${r}}`},P8r={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:I8r,code(e){let{gen:r,data:i,$data:s,schema:l,parentSchema:d,schemaCode:h,it:S}=e;if(!s&&!l)return;let b=r.let("valid"),A=d.items?(0,yqe.getSchemaTypes)(d.items):[];e.block$data(b,L,(0,Qb._)`${h} === false`),e.ok(b);function L(){let te=r.let("i",(0,Qb._)`${i}.length`),X=r.let("j");e.setParams({i:te,j:X}),r.assign(b,!0),r.if((0,Qb._)`${te} > 1`,()=>(V()?j:ie)(te,X))}function V(){return A.length>0&&!A.some(te=>te==="object"||te==="array")}function j(te,X){let Re=r.name("item"),Je=(0,yqe.checkDataTypes)(A,Re,S.opts.strictNumbers,yqe.DataType.Wrong),pt=r.const("indices",(0,Qb._)`{}`);r.for((0,Qb._)`;${te}--;`,()=>{r.let(Re,(0,Qb._)`${i}[${te}]`),r.if(Je,(0,Qb._)`continue`),A.length>1&&r.if((0,Qb._)`typeof ${Re} == "string"`,(0,Qb._)`${Re} += "_"`),r.if((0,Qb._)`typeof ${pt}[${Re}] == "number"`,()=>{r.assign(X,(0,Qb._)`${pt}[${Re}]`),e.error(),r.assign(b,!1).break()}).code((0,Qb._)`${pt}[${Re}] = ${te}`)})}function ie(te,X){let Re=(0,A8r.useFunc)(r,w8r.default),Je=r.name("outer");r.label(Je).for((0,Qb._)`;${te}--;`,()=>r.for((0,Qb._)`${X} = ${te}; ${X}--;`,()=>r.if((0,Qb._)`${Re}(${i}[${te}], ${i}[${X}])`,()=>{e.error(),r.assign(b,!1).break(Je)})))}}};vqe.default=P8r});var OPt=dr(bqe=>{"use strict";Object.defineProperty(bqe,"__esModule",{value:!0});var Sqe=wp(),N8r=cd(),O8r=F2e(),F8r={message:"must be equal to constant",params:({schemaCode:e})=>(0,Sqe._)`{allowedValue: ${e}}`},R8r={keyword:"const",$data:!0,error:F8r,code(e){let{gen:r,data:i,$data:s,schemaCode:l,schema:d}=e;s||d&&typeof d=="object"?e.fail$data((0,Sqe._)`!${(0,N8r.useFunc)(r,O8r.default)}(${i}, ${l})`):e.fail((0,Sqe._)`${d} !== ${i}`)}};bqe.default=R8r});var FPt=dr(xqe=>{"use strict";Object.defineProperty(xqe,"__esModule",{value:!0});var ale=wp(),L8r=cd(),M8r=F2e(),j8r={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,ale._)`{allowedValues: ${e}}`},B8r={keyword:"enum",schemaType:"array",$data:!0,error:j8r,code(e){let{gen:r,data:i,$data:s,schema:l,schemaCode:d,it:h}=e;if(!s&&l.length===0)throw new Error("enum must have non-empty array");let S=l.length>=h.opts.loopEnum,b,A=()=>b??(b=(0,L8r.useFunc)(r,M8r.default)),L;if(S||s)L=r.let("valid"),e.block$data(L,V);else{if(!Array.isArray(l))throw new Error("ajv implementation error");let ie=r.const("vSchema",d);L=(0,ale.or)(...l.map((te,X)=>j(ie,X)))}e.pass(L);function V(){r.assign(L,!1),r.forOf("v",d,ie=>r.if((0,ale._)`${A()}(${i}, ${ie})`,()=>r.assign(L,!0).break()))}function j(ie,te){let X=l[te];return typeof X=="object"&&X!==null?(0,ale._)`${A()}(${i}, ${ie}[${te}])`:(0,ale._)`${i} === ${X}`}}};xqe.default=B8r});var Eqe=dr(Tqe=>{"use strict";Object.defineProperty(Tqe,"__esModule",{value:!0});var $8r=xPt(),U8r=TPt(),z8r=CPt(),q8r=DPt(),J8r=APt(),V8r=wPt(),W8r=IPt(),G8r=NPt(),H8r=OPt(),K8r=FPt(),Q8r=[$8r.default,U8r.default,z8r.default,q8r.default,J8r.default,V8r.default,W8r.default,G8r.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},H8r.default,K8r.default];Tqe.default=Q8r});var Cqe=dr(sle=>{"use strict";Object.defineProperty(sle,"__esModule",{value:!0});sle.validateAdditionalItems=void 0;var EJ=wp(),kqe=cd(),Z8r={message:({params:{len:e}})=>(0,EJ.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,EJ._)`{limit: ${e}}`},X8r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Z8r,code(e){let{parentSchema:r,it:i}=e,{items:s}=r;if(!Array.isArray(s)){(0,kqe.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}RPt(e,s)}};function RPt(e,r){let{gen:i,schema:s,data:l,keyword:d,it:h}=e;h.items=!0;let S=i.const("len",(0,EJ._)`${l}.length`);if(s===!1)e.setParams({len:r.length}),e.pass((0,EJ._)`${S} <= ${r.length}`);else if(typeof s=="object"&&!(0,kqe.alwaysValidSchema)(h,s)){let A=i.var("valid",(0,EJ._)`${S} <= ${r.length}`);i.if((0,EJ.not)(A),()=>b(A)),e.ok(A)}function b(A){i.forRange("i",r.length,S,L=>{e.subschema({keyword:d,dataProp:L,dataPropType:kqe.Type.Num},A),h.allErrors||i.if((0,EJ.not)(A),()=>i.break())})}}sle.validateAdditionalItems=RPt;sle.default=X8r});var Dqe=dr(cle=>{"use strict";Object.defineProperty(cle,"__esModule",{value:!0});cle.validateTuple=void 0;var LPt=wp(),R2e=cd(),Y8r=Lw(),eOr={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:r,it:i}=e;if(Array.isArray(r))return MPt(e,"additionalItems",r);i.items=!0,!(0,R2e.alwaysValidSchema)(i,r)&&e.ok((0,Y8r.validateArray)(e))}};function MPt(e,r,i=e.schema){let{gen:s,parentSchema:l,data:d,keyword:h,it:S}=e;L(l),S.opts.unevaluated&&i.length&&S.items!==!0&&(S.items=R2e.mergeEvaluated.items(s,i.length,S.items));let b=s.name("valid"),A=s.const("len",(0,LPt._)`${d}.length`);i.forEach((V,j)=>{(0,R2e.alwaysValidSchema)(S,V)||(s.if((0,LPt._)`${A} > ${j}`,()=>e.subschema({keyword:h,schemaProp:j,dataProp:j},b)),e.ok(b))});function L(V){let{opts:j,errSchemaPath:ie}=S,te=i.length,X=te===V.minItems&&(te===V.maxItems||V[r]===!1);if(j.strictTuples&&!X){let Re=`"${h}" is ${te}-tuple, but minItems or maxItems/${r} are not specified or different at path "${ie}"`;(0,R2e.checkStrictMode)(S,Re,j.strictTuples)}}}cle.validateTuple=MPt;cle.default=eOr});var jPt=dr(Aqe=>{"use strict";Object.defineProperty(Aqe,"__esModule",{value:!0});var tOr=Dqe(),rOr={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,tOr.validateTuple)(e,"items")};Aqe.default=rOr});var $Pt=dr(wqe=>{"use strict";Object.defineProperty(wqe,"__esModule",{value:!0});var BPt=wp(),nOr=cd(),iOr=Lw(),oOr=Cqe(),aOr={message:({params:{len:e}})=>(0,BPt.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,BPt._)`{limit: ${e}}`},sOr={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:aOr,code(e){let{schema:r,parentSchema:i,it:s}=e,{prefixItems:l}=i;s.items=!0,!(0,nOr.alwaysValidSchema)(s,r)&&(l?(0,oOr.validateAdditionalItems)(e,l):e.ok((0,iOr.validateArray)(e)))}};wqe.default=sOr});var UPt=dr(Iqe=>{"use strict";Object.defineProperty(Iqe,"__esModule",{value:!0});var jw=wp(),L2e=cd(),cOr={message:({params:{min:e,max:r}})=>r===void 0?(0,jw.str)`must contain at least ${e} valid item(s)`:(0,jw.str)`must contain at least ${e} and no more than ${r} valid item(s)`,params:({params:{min:e,max:r}})=>r===void 0?(0,jw._)`{minContains: ${e}}`:(0,jw._)`{minContains: ${e}, maxContains: ${r}}`},lOr={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:cOr,code(e){let{gen:r,schema:i,parentSchema:s,data:l,it:d}=e,h,S,{minContains:b,maxContains:A}=s;d.opts.next?(h=b===void 0?1:b,S=A):h=1;let L=r.const("len",(0,jw._)`${l}.length`);if(e.setParams({min:h,max:S}),S===void 0&&h===0){(0,L2e.checkStrictMode)(d,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(S!==void 0&&h>S){(0,L2e.checkStrictMode)(d,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,L2e.alwaysValidSchema)(d,i)){let X=(0,jw._)`${L} >= ${h}`;S!==void 0&&(X=(0,jw._)`${X} && ${L} <= ${S}`),e.pass(X);return}d.items=!0;let V=r.name("valid");S===void 0&&h===1?ie(V,()=>r.if(V,()=>r.break())):h===0?(r.let(V,!0),S!==void 0&&r.if((0,jw._)`${l}.length > 0`,j)):(r.let(V,!1),j()),e.result(V,()=>e.reset());function j(){let X=r.name("_valid"),Re=r.let("count",0);ie(X,()=>r.if(X,()=>te(Re)))}function ie(X,Re){r.forRange("i",0,L,Je=>{e.subschema({keyword:"contains",dataProp:Je,dataPropType:L2e.Type.Num,compositeRule:!0},X),Re()})}function te(X){r.code((0,jw._)`${X}++`),S===void 0?r.if((0,jw._)`${X} >= ${h}`,()=>r.assign(V,!0).break()):(r.if((0,jw._)`${X} > ${S}`,()=>r.assign(V,!1).break()),h===1?r.assign(V,!0):r.if((0,jw._)`${X} >= ${h}`,()=>r.assign(V,!0)))}}};Iqe.default=lOr});var M2e=dr(wN=>{"use strict";Object.defineProperty(wN,"__esModule",{value:!0});wN.validateSchemaDeps=wN.validatePropertyDeps=wN.error=void 0;var Pqe=wp(),uOr=cd(),lle=Lw();wN.error={message:({params:{property:e,depsCount:r,deps:i}})=>{let s=r===1?"property":"properties";return(0,Pqe.str)`must have ${s} ${i} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:i,missingProperty:s}})=>(0,Pqe._)`{property: ${e}, - missingProperty: ${s}, - depsCount: ${r}, - deps: ${i}}`};var pOr={keyword:"dependencies",type:"object",schemaType:"object",error:wN.error,code(e){let[r,i]=_Or(e);zPt(e,r),qPt(e,i)}};function _Or({schema:e}){let r={},i={};for(let s in e){if(s==="__proto__")continue;let l=Array.isArray(e[s])?r:i;l[s]=e[s]}return[r,i]}function zPt(e,r=e.schema){let{gen:i,data:s,it:l}=e;if(Object.keys(r).length===0)return;let d=i.let("missing");for(let h in r){let S=r[h];if(S.length===0)continue;let b=(0,lle.propertyInData)(i,s,h,l.opts.ownProperties);e.setParams({property:h,depsCount:S.length,deps:S.join(", ")}),l.allErrors?i.if(b,()=>{for(let A of S)(0,lle.checkReportMissingProp)(e,A)}):(i.if((0,Pqe._)`${b} && (${(0,lle.checkMissingProp)(e,S,d)})`),(0,lle.reportMissingProp)(e,d),i.else())}}wN.validatePropertyDeps=zPt;function qPt(e,r=e.schema){let{gen:i,data:s,keyword:l,it:d}=e,h=i.name("valid");for(let S in r)(0,uOr.alwaysValidSchema)(d,r[S])||(i.if((0,lle.propertyInData)(i,s,S,d.opts.ownProperties),()=>{let b=e.subschema({keyword:l,schemaProp:S},h);e.mergeValidEvaluated(b,h)},()=>i.var(h,!0)),e.ok(h))}wN.validateSchemaDeps=qPt;wN.default=pOr});var VPt=dr(Nqe=>{"use strict";Object.defineProperty(Nqe,"__esModule",{value:!0});var JPt=wp(),dOr=cd(),fOr={message:"property name must be valid",params:({params:e})=>(0,JPt._)`{propertyName: ${e.propertyName}}`},mOr={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:fOr,code(e){let{gen:r,schema:i,data:s,it:l}=e;if((0,dOr.alwaysValidSchema)(l,i))return;let d=r.name("valid");r.forIn("key",s,h=>{e.setParams({propertyName:h}),e.subschema({keyword:"propertyNames",data:h,dataTypes:["string"],propertyName:h,compositeRule:!0},d),r.if((0,JPt.not)(d),()=>{e.error(!0),l.allErrors||r.break()})}),e.ok(d)}};Nqe.default=mOr});var Fqe=dr(Oqe=>{"use strict";Object.defineProperty(Oqe,"__esModule",{value:!0});var j2e=Lw(),v6=wp(),hOr=Rw(),B2e=cd(),gOr={message:"must NOT have additional properties",params:({params:e})=>(0,v6._)`{additionalProperty: ${e.additionalProperty}}`},yOr={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:gOr,code(e){let{gen:r,schema:i,parentSchema:s,data:l,errsCount:d,it:h}=e;if(!d)throw new Error("ajv implementation error");let{allErrors:S,opts:b}=h;if(h.props=!0,b.removeAdditional!=="all"&&(0,B2e.alwaysValidSchema)(h,i))return;let A=(0,j2e.allSchemaProperties)(s.properties),L=(0,j2e.allSchemaProperties)(s.patternProperties);V(),e.ok((0,v6._)`${d} === ${hOr.default.errors}`);function V(){r.forIn("key",l,Re=>{!A.length&&!L.length?te(Re):r.if(j(Re),()=>te(Re))})}function j(Re){let Je;if(A.length>8){let pt=(0,B2e.schemaRefOrVal)(h,s.properties,"properties");Je=(0,j2e.isOwnProperty)(r,pt,Re)}else A.length?Je=(0,v6.or)(...A.map(pt=>(0,v6._)`${Re} === ${pt}`)):Je=v6.nil;return L.length&&(Je=(0,v6.or)(Je,...L.map(pt=>(0,v6._)`${(0,j2e.usePattern)(e,pt)}.test(${Re})`))),(0,v6.not)(Je)}function ie(Re){r.code((0,v6._)`delete ${l}[${Re}]`)}function te(Re){if(b.removeAdditional==="all"||b.removeAdditional&&i===!1){ie(Re);return}if(i===!1){e.setParams({additionalProperty:Re}),e.error(),S||r.break();return}if(typeof i=="object"&&!(0,B2e.alwaysValidSchema)(h,i)){let Je=r.name("valid");b.removeAdditional==="failing"?(X(Re,Je,!1),r.if((0,v6.not)(Je),()=>{e.reset(),ie(Re)})):(X(Re,Je),S||r.if((0,v6.not)(Je),()=>r.break()))}}function X(Re,Je,pt){let $e={keyword:"additionalProperties",dataProp:Re,dataPropType:B2e.Type.Str};pt===!1&&Object.assign($e,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema($e,Je)}}};Oqe.default=yOr});var HPt=dr(Lqe=>{"use strict";Object.defineProperty(Lqe,"__esModule",{value:!0});var vOr=eX(),WPt=Lw(),Rqe=cd(),GPt=Fqe(),SOr={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:r,schema:i,parentSchema:s,data:l,it:d}=e;d.opts.removeAdditional==="all"&&s.additionalProperties===void 0&&GPt.default.code(new vOr.KeywordCxt(d,GPt.default,"additionalProperties"));let h=(0,WPt.allSchemaProperties)(i);for(let V of h)d.definedProperties.add(V);d.opts.unevaluated&&h.length&&d.props!==!0&&(d.props=Rqe.mergeEvaluated.props(r,(0,Rqe.toHash)(h),d.props));let S=h.filter(V=>!(0,Rqe.alwaysValidSchema)(d,i[V]));if(S.length===0)return;let b=r.name("valid");for(let V of S)A(V)?L(V):(r.if((0,WPt.propertyInData)(r,l,V,d.opts.ownProperties)),L(V),d.allErrors||r.else().var(b,!0),r.endIf()),e.it.definedProperties.add(V),e.ok(b);function A(V){return d.opts.useDefaults&&!d.compositeRule&&i[V].default!==void 0}function L(V){e.subschema({keyword:"properties",schemaProp:V,dataProp:V},b)}}};Lqe.default=SOr});var XPt=dr(Mqe=>{"use strict";Object.defineProperty(Mqe,"__esModule",{value:!0});var KPt=Lw(),$2e=wp(),QPt=cd(),ZPt=cd(),bOr={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:r,schema:i,data:s,parentSchema:l,it:d}=e,{opts:h}=d,S=(0,KPt.allSchemaProperties)(i),b=S.filter(X=>(0,QPt.alwaysValidSchema)(d,i[X]));if(S.length===0||b.length===S.length&&(!d.opts.unevaluated||d.props===!0))return;let A=h.strictSchema&&!h.allowMatchingProperties&&l.properties,L=r.name("valid");d.props!==!0&&!(d.props instanceof $2e.Name)&&(d.props=(0,ZPt.evaluatedPropsToName)(r,d.props));let{props:V}=d;j();function j(){for(let X of S)A&&ie(X),d.allErrors?te(X):(r.var(L,!0),te(X),r.if(L))}function ie(X){for(let Re in A)new RegExp(X).test(Re)&&(0,QPt.checkStrictMode)(d,`property ${Re} matches pattern ${X} (use allowMatchingProperties)`)}function te(X){r.forIn("key",s,Re=>{r.if((0,$2e._)`${(0,KPt.usePattern)(e,X)}.test(${Re})`,()=>{let Je=b.includes(X);Je||e.subschema({keyword:"patternProperties",schemaProp:X,dataProp:Re,dataPropType:ZPt.Type.Str},L),d.opts.unevaluated&&V!==!0?r.assign((0,$2e._)`${V}[${Re}]`,!0):!Je&&!d.allErrors&&r.if((0,$2e.not)(L),()=>r.break())})})}}};Mqe.default=bOr});var YPt=dr(jqe=>{"use strict";Object.defineProperty(jqe,"__esModule",{value:!0});var xOr=cd(),TOr={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:r,schema:i,it:s}=e;if((0,xOr.alwaysValidSchema)(s,i)){e.fail();return}let l=r.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},l),e.failResult(l,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};jqe.default=TOr});var e6t=dr(Bqe=>{"use strict";Object.defineProperty(Bqe,"__esModule",{value:!0});var EOr=Lw(),kOr={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:EOr.validateUnion,error:{message:"must match a schema in anyOf"}};Bqe.default=kOr});var t6t=dr($qe=>{"use strict";Object.defineProperty($qe,"__esModule",{value:!0});var U2e=wp(),COr=cd(),DOr={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,U2e._)`{passingSchemas: ${e.passing}}`},AOr={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:DOr,code(e){let{gen:r,schema:i,parentSchema:s,it:l}=e;if(!Array.isArray(i))throw new Error("ajv implementation error");if(l.opts.discriminator&&s.discriminator)return;let d=i,h=r.let("valid",!1),S=r.let("passing",null),b=r.name("_valid");e.setParams({passing:S}),r.block(A),e.result(h,()=>e.reset(),()=>e.error(!0));function A(){d.forEach((L,V)=>{let j;(0,COr.alwaysValidSchema)(l,L)?r.var(b,!0):j=e.subschema({keyword:"oneOf",schemaProp:V,compositeRule:!0},b),V>0&&r.if((0,U2e._)`${b} && ${h}`).assign(h,!1).assign(S,(0,U2e._)`[${S}, ${V}]`).else(),r.if(b,()=>{r.assign(h,!0),r.assign(S,V),j&&e.mergeEvaluated(j,U2e.Name)})})}}};$qe.default=AOr});var r6t=dr(Uqe=>{"use strict";Object.defineProperty(Uqe,"__esModule",{value:!0});var wOr=cd(),IOr={keyword:"allOf",schemaType:"array",code(e){let{gen:r,schema:i,it:s}=e;if(!Array.isArray(i))throw new Error("ajv implementation error");let l=r.name("valid");i.forEach((d,h)=>{if((0,wOr.alwaysValidSchema)(s,d))return;let S=e.subschema({keyword:"allOf",schemaProp:h},l);e.ok(l),e.mergeEvaluated(S)})}};Uqe.default=IOr});var o6t=dr(zqe=>{"use strict";Object.defineProperty(zqe,"__esModule",{value:!0});var z2e=wp(),i6t=cd(),POr={message:({params:e})=>(0,z2e.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,z2e._)`{failingKeyword: ${e.ifClause}}`},NOr={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:POr,code(e){let{gen:r,parentSchema:i,it:s}=e;i.then===void 0&&i.else===void 0&&(0,i6t.checkStrictMode)(s,'"if" without "then" and "else" is ignored');let l=n6t(s,"then"),d=n6t(s,"else");if(!l&&!d)return;let h=r.let("valid",!0),S=r.name("_valid");if(b(),e.reset(),l&&d){let L=r.let("ifClause");e.setParams({ifClause:L}),r.if(S,A("then",L),A("else",L))}else l?r.if(S,A("then")):r.if((0,z2e.not)(S),A("else"));e.pass(h,()=>e.error(!0));function b(){let L=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},S);e.mergeEvaluated(L)}function A(L,V){return()=>{let j=e.subschema({keyword:L},S);r.assign(h,S),e.mergeValidEvaluated(j,h),V?r.assign(V,(0,z2e._)`${L}`):e.setParams({ifClause:L})}}}};function n6t(e,r){let i=e.schema[r];return i!==void 0&&!(0,i6t.alwaysValidSchema)(e,i)}zqe.default=NOr});var a6t=dr(qqe=>{"use strict";Object.defineProperty(qqe,"__esModule",{value:!0});var OOr=cd(),FOr={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:r,it:i}){r.if===void 0&&(0,OOr.checkStrictMode)(i,`"${e}" without "if" is ignored`)}};qqe.default=FOr});var Vqe=dr(Jqe=>{"use strict";Object.defineProperty(Jqe,"__esModule",{value:!0});var ROr=Cqe(),LOr=jPt(),MOr=Dqe(),jOr=$Pt(),BOr=UPt(),$Or=M2e(),UOr=VPt(),zOr=Fqe(),qOr=HPt(),JOr=XPt(),VOr=YPt(),WOr=e6t(),GOr=t6t(),HOr=r6t(),KOr=o6t(),QOr=a6t();function ZOr(e=!1){let r=[VOr.default,WOr.default,GOr.default,HOr.default,KOr.default,QOr.default,UOr.default,zOr.default,$Or.default,qOr.default,JOr.default];return e?r.push(LOr.default,jOr.default):r.push(ROr.default,MOr.default),r.push(BOr.default),r}Jqe.default=ZOr});var Gqe=dr(ule=>{"use strict";Object.defineProperty(ule,"__esModule",{value:!0});ule.dynamicAnchor=void 0;var Wqe=wp(),XOr=Rw(),s6t=Qce(),YOr=P2e(),eFr={keyword:"$dynamicAnchor",schemaType:"string",code:e=>c6t(e,e.schema)};function c6t(e,r){let{gen:i,it:s}=e;s.schemaEnv.root.dynamicAnchors[r]=!0;let l=(0,Wqe._)`${XOr.default.dynamicAnchors}${(0,Wqe.getProperty)(r)}`,d=s.errSchemaPath==="#"?s.validateName:tFr(e);i.if((0,Wqe._)`!${l}`,()=>i.assign(l,d))}ule.dynamicAnchor=c6t;function tFr(e){let{schemaEnv:r,schema:i,self:s}=e.it,{root:l,baseId:d,localRefs:h,meta:S}=r.root,{schemaId:b}=s.opts,A=new s6t.SchemaEnv({schema:i,schemaId:b,root:l,baseId:d,localRefs:h,meta:S});return s6t.compileSchema.call(s,A),(0,YOr.getValidate)(e,A)}ule.default=eFr});var Hqe=dr(ple=>{"use strict";Object.defineProperty(ple,"__esModule",{value:!0});ple.dynamicRef=void 0;var l6t=wp(),rFr=Rw(),u6t=P2e(),nFr={keyword:"$dynamicRef",schemaType:"string",code:e=>p6t(e,e.schema)};function p6t(e,r){let{gen:i,keyword:s,it:l}=e;if(r[0]!=="#")throw new Error(`"${s}" only supports hash fragment reference`);let d=r.slice(1);if(l.allErrors)h();else{let b=i.let("valid",!1);h(b),e.ok(b)}function h(b){if(l.schemaEnv.root.dynamicAnchors[d]){let A=i.let("_v",(0,l6t._)`${rFr.default.dynamicAnchors}${(0,l6t.getProperty)(d)}`);i.if(A,S(A,b),S(l.validateName,b))}else S(l.validateName,b)()}function S(b,A){return A?()=>i.block(()=>{(0,u6t.callRef)(e,b),i.let(A,!0)}):()=>(0,u6t.callRef)(e,b)}}ple.dynamicRef=p6t;ple.default=nFr});var _6t=dr(Kqe=>{"use strict";Object.defineProperty(Kqe,"__esModule",{value:!0});var iFr=Gqe(),oFr=cd(),aFr={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,iFr.dynamicAnchor)(e,""):(0,oFr.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Kqe.default=aFr});var d6t=dr(Qqe=>{"use strict";Object.defineProperty(Qqe,"__esModule",{value:!0});var sFr=Hqe(),cFr={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,sFr.dynamicRef)(e,e.schema)};Qqe.default=cFr});var f6t=dr(Zqe=>{"use strict";Object.defineProperty(Zqe,"__esModule",{value:!0});var lFr=Gqe(),uFr=Hqe(),pFr=_6t(),_Fr=d6t(),dFr=[lFr.default,uFr.default,pFr.default,_Fr.default];Zqe.default=dFr});var h6t=dr(Xqe=>{"use strict";Object.defineProperty(Xqe,"__esModule",{value:!0});var m6t=M2e(),fFr={keyword:"dependentRequired",type:"object",schemaType:"object",error:m6t.error,code:e=>(0,m6t.validatePropertyDeps)(e)};Xqe.default=fFr});var g6t=dr(Yqe=>{"use strict";Object.defineProperty(Yqe,"__esModule",{value:!0});var mFr=M2e(),hFr={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,mFr.validateSchemaDeps)(e)};Yqe.default=hFr});var y6t=dr(eJe=>{"use strict";Object.defineProperty(eJe,"__esModule",{value:!0});var gFr=cd(),yFr={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:r,it:i}){r.contains===void 0&&(0,gFr.checkStrictMode)(i,`"${e}" without "contains" is ignored`)}};eJe.default=yFr});var v6t=dr(tJe=>{"use strict";Object.defineProperty(tJe,"__esModule",{value:!0});var vFr=h6t(),SFr=g6t(),bFr=y6t(),xFr=[vFr.default,SFr.default,bFr.default];tJe.default=xFr});var b6t=dr(rJe=>{"use strict";Object.defineProperty(rJe,"__esModule",{value:!0});var aj=wp(),S6t=cd(),TFr=Rw(),EFr={message:"must NOT have unevaluated properties",params:({params:e})=>(0,aj._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},kFr={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:EFr,code(e){let{gen:r,schema:i,data:s,errsCount:l,it:d}=e;if(!l)throw new Error("ajv implementation error");let{allErrors:h,props:S}=d;S instanceof aj.Name?r.if((0,aj._)`${S} !== true`,()=>r.forIn("key",s,V=>r.if(A(S,V),()=>b(V)))):S!==!0&&r.forIn("key",s,V=>S===void 0?b(V):r.if(L(S,V),()=>b(V))),d.props=!0,e.ok((0,aj._)`${l} === ${TFr.default.errors}`);function b(V){if(i===!1){e.setParams({unevaluatedProperty:V}),e.error(),h||r.break();return}if(!(0,S6t.alwaysValidSchema)(d,i)){let j=r.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:V,dataPropType:S6t.Type.Str},j),h||r.if((0,aj.not)(j),()=>r.break())}}function A(V,j){return(0,aj._)`!${V} || !${V}[${j}]`}function L(V,j){let ie=[];for(let te in V)V[te]===!0&&ie.push((0,aj._)`${j} !== ${te}`);return(0,aj.and)(...ie)}}};rJe.default=kFr});var T6t=dr(nJe=>{"use strict";Object.defineProperty(nJe,"__esModule",{value:!0});var kJ=wp(),x6t=cd(),CFr={message:({params:{len:e}})=>(0,kJ.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,kJ._)`{limit: ${e}}`},DFr={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:CFr,code(e){let{gen:r,schema:i,data:s,it:l}=e,d=l.items||0;if(d===!0)return;let h=r.const("len",(0,kJ._)`${s}.length`);if(i===!1)e.setParams({len:d}),e.fail((0,kJ._)`${h} > ${d}`);else if(typeof i=="object"&&!(0,x6t.alwaysValidSchema)(l,i)){let b=r.var("valid",(0,kJ._)`${h} <= ${d}`);r.if((0,kJ.not)(b),()=>S(b,d)),e.ok(b)}l.items=!0;function S(b,A){r.forRange("i",A,h,L=>{e.subschema({keyword:"unevaluatedItems",dataProp:L,dataPropType:x6t.Type.Num},b),l.allErrors||r.if((0,kJ.not)(b),()=>r.break())})}}};nJe.default=DFr});var E6t=dr(iJe=>{"use strict";Object.defineProperty(iJe,"__esModule",{value:!0});var AFr=b6t(),wFr=T6t(),IFr=[AFr.default,wFr.default];iJe.default=IFr});var k6t=dr(oJe=>{"use strict";Object.defineProperty(oJe,"__esModule",{value:!0});var x1=wp(),PFr={message:({schemaCode:e})=>(0,x1.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,x1._)`{format: ${e}}`},NFr={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:PFr,code(e,r){let{gen:i,data:s,$data:l,schema:d,schemaCode:h,it:S}=e,{opts:b,errSchemaPath:A,schemaEnv:L,self:V}=S;if(!b.validateFormats)return;l?j():ie();function j(){let te=i.scopeValue("formats",{ref:V.formats,code:b.code.formats}),X=i.const("fDef",(0,x1._)`${te}[${h}]`),Re=i.let("fType"),Je=i.let("format");i.if((0,x1._)`typeof ${X} == "object" && !(${X} instanceof RegExp)`,()=>i.assign(Re,(0,x1._)`${X}.type || "string"`).assign(Je,(0,x1._)`${X}.validate`),()=>i.assign(Re,(0,x1._)`"string"`).assign(Je,X)),e.fail$data((0,x1.or)(pt(),$e()));function pt(){return b.strictSchema===!1?x1.nil:(0,x1._)`${h} && !${Je}`}function $e(){let xt=L.$async?(0,x1._)`(${X}.async ? await ${Je}(${s}) : ${Je}(${s}))`:(0,x1._)`${Je}(${s})`,tr=(0,x1._)`(typeof ${Je} == "function" ? ${xt} : ${Je}.test(${s}))`;return(0,x1._)`${Je} && ${Je} !== true && ${Re} === ${r} && !${tr}`}}function ie(){let te=V.formats[d];if(!te){pt();return}if(te===!0)return;let[X,Re,Je]=$e(te);X===r&&e.pass(xt());function pt(){if(b.strictSchema===!1){V.logger.warn(tr());return}throw new Error(tr());function tr(){return`unknown format "${d}" ignored in schema at path "${A}"`}}function $e(tr){let ht=tr instanceof RegExp?(0,x1.regexpCode)(tr):b.code.formats?(0,x1._)`${b.code.formats}${(0,x1.getProperty)(d)}`:void 0,wt=i.scopeValue("formats",{key:d,ref:tr,code:ht});return typeof tr=="object"&&!(tr instanceof RegExp)?[tr.type||"string",tr.validate,(0,x1._)`${wt}.validate`]:["string",tr,wt]}function xt(){if(typeof te=="object"&&!(te instanceof RegExp)&&te.async){if(!L.$async)throw new Error("async format in sync schema");return(0,x1._)`await ${Je}(${s})`}return typeof Re=="function"?(0,x1._)`${Je}(${s})`:(0,x1._)`${Je}.test(${s})`}}}};oJe.default=NFr});var sJe=dr(aJe=>{"use strict";Object.defineProperty(aJe,"__esModule",{value:!0});var OFr=k6t(),FFr=[OFr.default];aJe.default=FFr});var cJe=dr(aX=>{"use strict";Object.defineProperty(aX,"__esModule",{value:!0});aX.contentVocabulary=aX.metadataVocabulary=void 0;aX.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];aX.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var D6t=dr(lJe=>{"use strict";Object.defineProperty(lJe,"__esModule",{value:!0});var RFr=cqe(),LFr=Eqe(),MFr=Vqe(),jFr=f6t(),BFr=v6t(),$Fr=E6t(),UFr=sJe(),C6t=cJe(),zFr=[jFr.default,RFr.default,LFr.default,(0,MFr.default)(!0),UFr.default,C6t.metadataVocabulary,C6t.contentVocabulary,BFr.default,$Fr.default];lJe.default=zFr});var w6t=dr(q2e=>{"use strict";Object.defineProperty(q2e,"__esModule",{value:!0});q2e.DiscrError=void 0;var A6t;(function(e){e.Tag="tag",e.Mapping="mapping"})(A6t||(q2e.DiscrError=A6t={}))});var _Je=dr(pJe=>{"use strict";Object.defineProperty(pJe,"__esModule",{value:!0});var sX=wp(),uJe=w6t(),I6t=Qce(),qFr=tX(),JFr=cd(),VFr={message:({params:{discrError:e,tagName:r}})=>e===uJe.DiscrError.Tag?`tag "${r}" must be string`:`value of tag "${r}" must be in oneOf`,params:({params:{discrError:e,tag:r,tagName:i}})=>(0,sX._)`{error: ${e}, tag: ${i}, tagValue: ${r}}`},WFr={keyword:"discriminator",type:"object",schemaType:"object",error:VFr,code(e){let{gen:r,data:i,schema:s,parentSchema:l,it:d}=e,{oneOf:h}=l;if(!d.opts.discriminator)throw new Error("discriminator: requires discriminator option");let S=s.propertyName;if(typeof S!="string")throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!h)throw new Error("discriminator: requires oneOf keyword");let b=r.let("valid",!1),A=r.const("tag",(0,sX._)`${i}${(0,sX.getProperty)(S)}`);r.if((0,sX._)`typeof ${A} == "string"`,()=>L(),()=>e.error(!1,{discrError:uJe.DiscrError.Tag,tag:A,tagName:S})),e.ok(b);function L(){let ie=j();r.if(!1);for(let te in ie)r.elseIf((0,sX._)`${A} === ${te}`),r.assign(b,V(ie[te]));r.else(),e.error(!1,{discrError:uJe.DiscrError.Mapping,tag:A,tagName:S}),r.endIf()}function V(ie){let te=r.name("valid"),X=e.subschema({keyword:"oneOf",schemaProp:ie},te);return e.mergeEvaluated(X,sX.Name),te}function j(){var ie;let te={},X=Je(l),Re=!0;for(let xt=0;xt{GFr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var N6t=dr((R3n,HFr)=>{HFr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var O6t=dr((L3n,KFr)=>{KFr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var F6t=dr((M3n,QFr)=>{QFr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var R6t=dr((j3n,ZFr)=>{ZFr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var L6t=dr((B3n,XFr)=>{XFr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var M6t=dr(($3n,YFr)=>{YFr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var j6t=dr((U3n,e7r)=>{e7r.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var B6t=dr(dJe=>{"use strict";Object.defineProperty(dJe,"__esModule",{value:!0});var t7r=P6t(),r7r=N6t(),n7r=O6t(),i7r=F6t(),o7r=R6t(),a7r=L6t(),s7r=M6t(),c7r=j6t(),l7r=["/properties"];function u7r(e){return[t7r,r7r,n7r,i7r,o7r,r(this,a7r),s7r,r(this,c7r)].forEach(i=>this.addMetaSchema(i,void 0,!1)),this;function r(i,s){return e?i.$dataMetaSchema(s,l7r):s}}dJe.default=u7r});var $6t=dr((iy,mJe)=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});iy.MissingRefError=iy.ValidationError=iy.CodeGen=iy.Name=iy.nil=iy.stringify=iy.str=iy._=iy.KeywordCxt=iy.Ajv2020=void 0;var p7r=oqe(),_7r=D6t(),d7r=_Je(),f7r=B6t(),fJe="https://json-schema.org/draft/2020-12/schema",cX=class extends p7r.default{constructor(r={}){super({...r,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),_7r.default.forEach(r=>this.addVocabulary(r)),this.opts.discriminator&&this.addKeyword(d7r.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:r,meta:i}=this.opts;i&&(f7r.default.call(this,r),this.refs["http://json-schema.org/schema"]=fJe)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(fJe)?fJe:void 0)}};iy.Ajv2020=cX;mJe.exports=iy=cX;mJe.exports.Ajv2020=cX;Object.defineProperty(iy,"__esModule",{value:!0});iy.default=cX;var m7r=eX();Object.defineProperty(iy,"KeywordCxt",{enumerable:!0,get:function(){return m7r.KeywordCxt}});var lX=wp();Object.defineProperty(iy,"_",{enumerable:!0,get:function(){return lX._}});Object.defineProperty(iy,"str",{enumerable:!0,get:function(){return lX.str}});Object.defineProperty(iy,"stringify",{enumerable:!0,get:function(){return lX.stringify}});Object.defineProperty(iy,"nil",{enumerable:!0,get:function(){return lX.nil}});Object.defineProperty(iy,"Name",{enumerable:!0,get:function(){return lX.Name}});Object.defineProperty(iy,"CodeGen",{enumerable:!0,get:function(){return lX.CodeGen}});var h7r=Kce();Object.defineProperty(iy,"ValidationError",{enumerable:!0,get:function(){return h7r.default}});var g7r=tX();Object.defineProperty(iy,"MissingRefError",{enumerable:!0,get:function(){return g7r.default}})});var P8t=dr(NHe=>{"use strict";Object.defineProperty(NHe,"__esModule",{value:!0});var HMr=cqe(),KMr=Eqe(),QMr=Vqe(),ZMr=sJe(),I8t=cJe(),XMr=[HMr.default,KMr.default,(0,QMr.default)(),ZMr.default,I8t.metadataVocabulary,I8t.contentVocabulary];NHe.default=XMr});var N8t=dr((IMn,YMr)=>{YMr.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var FHe=dr((ay,OHe)=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});ay.MissingRefError=ay.ValidationError=ay.CodeGen=ay.Name=ay.nil=ay.stringify=ay.str=ay._=ay.KeywordCxt=ay.Ajv=void 0;var ejr=oqe(),tjr=P8t(),rjr=_Je(),O8t=N8t(),njr=["/properties"],dke="http://json-schema.org/draft-07/schema",$X=class extends ejr.default{_addVocabularies(){super._addVocabularies(),tjr.default.forEach(r=>this.addVocabulary(r)),this.opts.discriminator&&this.addKeyword(rjr.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let r=this.opts.$data?this.$dataMetaSchema(O8t,njr):O8t;this.addMetaSchema(r,dke,!1),this.refs["http://json-schema.org/schema"]=dke}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(dke)?dke:void 0)}};ay.Ajv=$X;OHe.exports=ay=$X;OHe.exports.Ajv=$X;Object.defineProperty(ay,"__esModule",{value:!0});ay.default=$X;var ijr=eX();Object.defineProperty(ay,"KeywordCxt",{enumerable:!0,get:function(){return ijr.KeywordCxt}});var UX=wp();Object.defineProperty(ay,"_",{enumerable:!0,get:function(){return UX._}});Object.defineProperty(ay,"str",{enumerable:!0,get:function(){return UX.str}});Object.defineProperty(ay,"stringify",{enumerable:!0,get:function(){return UX.stringify}});Object.defineProperty(ay,"nil",{enumerable:!0,get:function(){return UX.nil}});Object.defineProperty(ay,"Name",{enumerable:!0,get:function(){return UX.Name}});Object.defineProperty(ay,"CodeGen",{enumerable:!0,get:function(){return UX.CodeGen}});var ojr=Kce();Object.defineProperty(ay,"ValidationError",{enumerable:!0,get:function(){return ojr.default}});var ajr=tX();Object.defineProperty(ay,"MissingRefError",{enumerable:!0,get:function(){return ajr.default}})});var U8t=dr(RN=>{"use strict";Object.defineProperty(RN,"__esModule",{value:!0});RN.formatNames=RN.fastFormats=RN.fullFormats=void 0;function FN(e,r){return{validate:e,compare:r}}RN.fullFormats={date:FN(M8t,jHe),time:FN(LHe(!0),BHe),"date-time":FN(F8t(!0),B8t),"iso-time":FN(LHe(),j8t),"iso-date-time":FN(F8t(),$8t),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:_jr,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:vjr,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:djr,int32:{type:"number",validate:hjr},int64:{type:"number",validate:gjr},float:{type:"number",validate:L8t},double:{type:"number",validate:L8t},password:!0,binary:!0};RN.fastFormats={...RN.fullFormats,date:FN(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,jHe),time:FN(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,BHe),"date-time":FN(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,B8t),"iso-time":FN(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,j8t),"iso-date-time":FN(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,$8t),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};RN.formatNames=Object.keys(RN.fullFormats);function sjr(e){return e%4===0&&(e%100!==0||e%400===0)}var cjr=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ljr=[0,31,28,31,30,31,30,31,31,30,31,30,31];function M8t(e){let r=cjr.exec(e);if(!r)return!1;let i=+r[1],s=+r[2],l=+r[3];return s>=1&&s<=12&&l>=1&&l<=(s===2&&sjr(i)?29:ljr[s])}function jHe(e,r){if(e&&r)return e>r?1:e23||L>59||e&&!S)return!1;if(l<=23&&d<=59&&h<60)return!0;let V=d-L*b,j=l-A*b-(V<0?1:0);return(j===23||j===-1)&&(V===59||V===-1)&&h<61}}function BHe(e,r){if(!(e&&r))return;let i=new Date("2020-01-01T"+e).valueOf(),s=new Date("2020-01-01T"+r).valueOf();if(i&&s)return i-s}function j8t(e,r){if(!(e&&r))return;let i=RHe.exec(e),s=RHe.exec(r);if(i&&s)return e=i[1]+i[2]+i[3],r=s[1]+s[2]+s[3],e>r?1:e=fjr}function gjr(e){return Number.isInteger(e)}function L8t(){return!0}var yjr=/[^\\]\\Z/;function vjr(e){if(yjr.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var z8t=dr(zX=>{"use strict";Object.defineProperty(zX,"__esModule",{value:!0});zX.formatLimitDefinition=void 0;var Sjr=FHe(),C6=wp(),yj=C6.operators,fke={formatMaximum:{okStr:"<=",ok:yj.LTE,fail:yj.GT},formatMinimum:{okStr:">=",ok:yj.GTE,fail:yj.LT},formatExclusiveMaximum:{okStr:"<",ok:yj.LT,fail:yj.GTE},formatExclusiveMinimum:{okStr:">",ok:yj.GT,fail:yj.LTE}},bjr={message:({keyword:e,schemaCode:r})=>(0,C6.str)`should be ${fke[e].okStr} ${r}`,params:({keyword:e,schemaCode:r})=>(0,C6._)`{comparison: ${fke[e].okStr}, limit: ${r}}`};zX.formatLimitDefinition={keyword:Object.keys(fke),type:"string",schemaType:"string",$data:!0,error:bjr,code(e){let{gen:r,data:i,schemaCode:s,keyword:l,it:d}=e,{opts:h,self:S}=d;if(!h.validateFormats)return;let b=new Sjr.KeywordCxt(d,S.RULES.all.format.definition,"format");b.$data?A():L();function A(){let j=r.scopeValue("formats",{ref:S.formats,code:h.code.formats}),ie=r.const("fmt",(0,C6._)`${j}[${b.schemaCode}]`);e.fail$data((0,C6.or)((0,C6._)`typeof ${ie} != "object"`,(0,C6._)`${ie} instanceof RegExp`,(0,C6._)`typeof ${ie}.compare != "function"`,V(ie)))}function L(){let j=b.schema,ie=S.formats[j];if(!ie||ie===!0)return;if(typeof ie!="object"||ie instanceof RegExp||typeof ie.compare!="function")throw new Error(`"${l}": format "${j}" does not define "compare" function`);let te=r.scopeValue("formats",{key:j,ref:ie,code:h.code.formats?(0,C6._)`${h.code.formats}${(0,C6.getProperty)(j)}`:void 0});e.fail$data(V(te))}function V(j){return(0,C6._)`${j}.compare(${i}, ${s}) ${fke[l].fail} 0`}},dependencies:["format"]};var xjr=e=>(e.addKeyword(zX.formatLimitDefinition),e);zX.default=xjr});var W8t=dr((Aue,V8t)=>{"use strict";Object.defineProperty(Aue,"__esModule",{value:!0});var qX=U8t(),Tjr=z8t(),$He=wp(),q8t=new $He.Name("fullFormats"),Ejr=new $He.Name("fastFormats"),UHe=(e,r={keywords:!0})=>{if(Array.isArray(r))return J8t(e,r,qX.fullFormats,q8t),e;let[i,s]=r.mode==="fast"?[qX.fastFormats,Ejr]:[qX.fullFormats,q8t],l=r.formats||qX.formatNames;return J8t(e,l,i,s),r.keywords&&(0,Tjr.default)(e),e};UHe.get=(e,r="full")=>{let s=(r==="fast"?qX.fastFormats:qX.fullFormats)[e];if(!s)throw new Error(`Unknown format "${e}"`);return s};function J8t(e,r,i,s){var l,d;(l=(d=e.opts.code).formats)!==null&&l!==void 0||(d.formats=(0,$He._)`require("ajv-formats/dist/formats").${s}`);for(let h of r)e.addFormat(h,i[h])}V8t.exports=Aue=UHe;Object.defineProperty(Aue,"__esModule",{value:!0});Aue.default=UHe});var yOt=dr((_jn,gOt)=>{gOt.exports=hOt;hOt.sync=rBr;var fOt=a0("fs");function tBr(e,r){var i=r.pathExt!==void 0?r.pathExt:process.env.PATHEXT;if(!i||(i=i.split(";"),i.indexOf("")!==-1))return!0;for(var s=0;s{xOt.exports=SOt;SOt.sync=nBr;var vOt=a0("fs");function SOt(e,r,i){vOt.stat(e,function(s,l){i(s,s?!1:bOt(l,r))})}function nBr(e,r){return bOt(vOt.statSync(e),r)}function bOt(e,r){return e.isFile()&&iBr(e,r)}function iBr(e,r){var i=e.mode,s=e.uid,l=e.gid,d=r.uid!==void 0?r.uid:process.getuid&&process.getuid(),h=r.gid!==void 0?r.gid:process.getgid&&process.getgid(),S=parseInt("100",8),b=parseInt("010",8),A=parseInt("001",8),L=S|b,V=i&A||i&b&&l===h||i&S&&s===d||i&L&&d===0;return V}});var kOt=dr((mjn,EOt)=>{var fjn=a0("fs"),Cke;process.platform==="win32"||global.TESTING_WINDOWS?Cke=yOt():Cke=TOt();EOt.exports=sKe;sKe.sync=oBr;function sKe(e,r,i){if(typeof r=="function"&&(i=r,r={}),!i){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(s,l){sKe(e,r||{},function(d,h){d?l(d):s(h)})})}Cke(e,r||{},function(s,l){s&&(s.code==="EACCES"||r&&r.ignoreErrors)&&(s=null,l=!1),i(s,l)})}function oBr(e,r){try{return Cke.sync(e,r||{})}catch(i){if(r&&r.ignoreErrors||i.code==="EACCES")return!1;throw i}}});var NOt=dr((hjn,POt)=>{var ZX=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",COt=a0("path"),aBr=ZX?";":":",DOt=kOt(),AOt=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),wOt=(e,r)=>{let i=r.colon||aBr,s=e.match(/\//)||ZX&&e.match(/\\/)?[""]:[...ZX?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(i)],l=ZX?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",d=ZX?l.split(i):[""];return ZX&&e.indexOf(".")!==-1&&d[0]!==""&&d.unshift(""),{pathEnv:s,pathExt:d,pathExtExe:l}},IOt=(e,r,i)=>{typeof r=="function"&&(i=r,r={}),r||(r={});let{pathEnv:s,pathExt:l,pathExtExe:d}=wOt(e,r),h=[],S=A=>new Promise((L,V)=>{if(A===s.length)return r.all&&h.length?L(h):V(AOt(e));let j=s[A],ie=/^".*"$/.test(j)?j.slice(1,-1):j,te=COt.join(ie,e),X=!ie&&/^\.[\\\/]/.test(e)?e.slice(0,2)+te:te;L(b(X,A,0))}),b=(A,L,V)=>new Promise((j,ie)=>{if(V===l.length)return j(S(L+1));let te=l[V];DOt(A+te,{pathExt:d},(X,Re)=>{if(!X&&Re)if(r.all)h.push(A+te);else return j(A+te);return j(b(A,L,V+1))})});return i?S(0).then(A=>i(null,A),i):S(0)},sBr=(e,r)=>{r=r||{};let{pathEnv:i,pathExt:s,pathExtExe:l}=wOt(e,r),d=[];for(let h=0;h{"use strict";var OOt=(e={})=>{let r=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(r).reverse().find(s=>s.toUpperCase()==="PATH")||"Path"};cKe.exports=OOt;cKe.exports.default=OOt});var jOt=dr((yjn,MOt)=>{"use strict";var ROt=a0("path"),cBr=NOt(),lBr=FOt();function LOt(e,r){let i=e.options.env||process.env,s=process.cwd(),l=e.options.cwd!=null,d=l&&process.chdir!==void 0&&!process.chdir.disabled;if(d)try{process.chdir(e.options.cwd)}catch{}let h;try{h=cBr.sync(e.command,{path:i[lBr({env:i})],pathExt:r?ROt.delimiter:void 0})}catch{}finally{d&&process.chdir(s)}return h&&(h=ROt.resolve(l?e.options.cwd:"",h)),h}function uBr(e){return LOt(e)||LOt(e,!0)}MOt.exports=uBr});var BOt=dr((vjn,uKe)=>{"use strict";var lKe=/([()\][%!^"`<>&|;, *?])/g;function pBr(e){return e=e.replace(lKe,"^$1"),e}function _Br(e,r){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(lKe,"^$1"),r&&(e=e.replace(lKe,"^$1")),e}uKe.exports.command=pBr;uKe.exports.argument=_Br});var UOt=dr((Sjn,$Ot)=>{"use strict";$Ot.exports=/^#!(.*)/});var qOt=dr((bjn,zOt)=>{"use strict";var dBr=UOt();zOt.exports=(e="")=>{let r=e.match(dBr);if(!r)return null;let[i,s]=r[0].replace(/#! ?/,"").split(" "),l=i.split("/").pop();return l==="env"?s:s?`${l} ${s}`:l}});var VOt=dr((xjn,JOt)=>{"use strict";var pKe=a0("fs"),fBr=qOt();function mBr(e){let i=Buffer.alloc(150),s;try{s=pKe.openSync(e,"r"),pKe.readSync(s,i,0,150,0),pKe.closeSync(s)}catch{}return fBr(i.toString())}JOt.exports=mBr});var KOt=dr((Tjn,HOt)=>{"use strict";var hBr=a0("path"),WOt=jOt(),GOt=BOt(),gBr=VOt(),yBr=process.platform==="win32",vBr=/\.(?:com|exe)$/i,SBr=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function bBr(e){e.file=WOt(e);let r=e.file&&gBr(e.file);return r?(e.args.unshift(e.file),e.command=r,WOt(e)):e.file}function xBr(e){if(!yBr)return e;let r=bBr(e),i=!vBr.test(r);if(e.options.forceShell||i){let s=SBr.test(r);e.command=hBr.normalize(e.command),e.command=GOt.command(e.command),e.args=e.args.map(d=>GOt.argument(d,s));let l=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${l}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function TBr(e,r,i){r&&!Array.isArray(r)&&(i=r,r=null),r=r?r.slice(0):[],i=Object.assign({},i);let s={command:e,args:r,options:i,file:void 0,original:{command:e,args:r}};return i.shell?s:xBr(s)}HOt.exports=TBr});var XOt=dr((Ejn,ZOt)=>{"use strict";var _Ke=process.platform==="win32";function dKe(e,r){return Object.assign(new Error(`${r} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${e.command}`,path:e.command,spawnargs:e.args})}function EBr(e,r){if(!_Ke)return;let i=e.emit;e.emit=function(s,l){if(s==="exit"){let d=QOt(l,r);if(d)return i.call(e,"error",d)}return i.apply(e,arguments)}}function QOt(e,r){return _Ke&&e===1&&!r.file?dKe(r.original,"spawn"):null}function kBr(e,r){return _Ke&&e===1&&!r.file?dKe(r.original,"spawnSync"):null}ZOt.exports={hookChildProcess:EBr,verifyENOENT:QOt,verifyENOENTSync:kBr,notFoundError:dKe}});var tFt=dr((kjn,XX)=>{"use strict";var YOt=a0("child_process"),fKe=KOt(),mKe=XOt();function eFt(e,r,i){let s=fKe(e,r,i),l=YOt.spawn(s.command,s.args,s.options);return mKe.hookChildProcess(l,s),l}function CBr(e,r,i){let s=fKe(e,r,i),l=YOt.spawnSync(s.command,s.args,s.options);return l.error=l.error||mKe.verifyENOENTSync(l.status,s),l}XX.exports=eFt;XX.exports.spawn=eFt;XX.exports.sync=CBr;XX.exports._parse=fKe;XX.exports._enoent=mKe});var Dzt=dr(hee=>{"use strict";Object.defineProperty(hee,"__esModule",{value:!0});hee.versionInfo=hee.version=void 0;var J_n="16.13.1";hee.version=J_n;var V_n=Object.freeze({major:16,minor:13,patch:1,preReleaseTag:null});hee.versionInfo=V_n});var J2=dr(xet=>{"use strict";Object.defineProperty(xet,"__esModule",{value:!0});xet.devAssert=W_n;function W_n(e,r){if(!!!e)throw new Error(r)}});var FDe=dr(Tet=>{"use strict";Object.defineProperty(Tet,"__esModule",{value:!0});Tet.isPromise=G_n;function G_n(e){return typeof e?.then=="function"}});var C8=dr(Eet=>{"use strict";Object.defineProperty(Eet,"__esModule",{value:!0});Eet.isObjectLike=H_n;function H_n(e){return typeof e=="object"&&e!==null}});var kT=dr(ket=>{"use strict";Object.defineProperty(ket,"__esModule",{value:!0});ket.invariant=K_n;function K_n(e,r){if(!!!e)throw new Error(r??"Unexpected invariant triggered.")}});var RDe=dr(Cet=>{"use strict";Object.defineProperty(Cet,"__esModule",{value:!0});Cet.getLocation=X_n;var Q_n=kT(),Z_n=/\r\n|[\n\r]/g;function X_n(e,r){let i=0,s=1;for(let l of e.body.matchAll(Z_n)){if(typeof l.index=="number"||(0,Q_n.invariant)(!1),l.index>=r)break;i=l.index+l[0].length,s+=1}return{line:s,column:r+1-i}}});var Det=dr(LDe=>{"use strict";Object.defineProperty(LDe,"__esModule",{value:!0});LDe.printLocation=edn;LDe.printSourceLocation=wzt;var Y_n=RDe();function edn(e){return wzt(e.source,(0,Y_n.getLocation)(e.source,e.start))}function wzt(e,r){let i=e.locationOffset.column-1,s="".padStart(i)+e.body,l=r.line-1,d=e.locationOffset.line-1,h=r.line+d,S=r.line===1?i:0,b=r.column+S,A=`${e.name}:${h}:${b} -`,L=s.split(/\r\n|[\n\r]/g),V=L[l];if(V.length>120){let j=Math.floor(b/80),ie=b%80,te=[];for(let X=0;X["|",X]),["|","^".padStart(ie)],["|",te[j+1]]])}return A+Azt([[`${h-1} |`,L[l-1]],[`${h} |`,V],["|","^".padStart(b)],[`${h+1} |`,L[l+1]]])}function Azt(e){let r=e.filter(([s,l])=>l!==void 0),i=Math.max(...r.map(([s])=>s.length));return r.map(([s,l])=>s.padStart(i)+(l?" "+l:"")).join(` -`)}});var Cu=dr(gee=>{"use strict";Object.defineProperty(gee,"__esModule",{value:!0});gee.GraphQLError=void 0;gee.formatError=idn;gee.printError=ndn;var tdn=C8(),Izt=RDe(),Pzt=Det();function rdn(e){let r=e[0];return r==null||"kind"in r||"length"in r?{nodes:r,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:r}var Aet=class e extends Error{constructor(r,...i){var s,l,d;let{nodes:h,source:S,positions:b,path:A,originalError:L,extensions:V}=rdn(i);super(r),this.name="GraphQLError",this.path=A??void 0,this.originalError=L??void 0,this.nodes=Nzt(Array.isArray(h)?h:h?[h]:void 0);let j=Nzt((s=this.nodes)===null||s===void 0?void 0:s.map(te=>te.loc).filter(te=>te!=null));this.source=S??(j==null||(l=j[0])===null||l===void 0?void 0:l.source),this.positions=b??j?.map(te=>te.start),this.locations=b&&S?b.map(te=>(0,Izt.getLocation)(S,te)):j?.map(te=>(0,Izt.getLocation)(te.source,te.start));let ie=(0,tdn.isObjectLike)(L?.extensions)?L?.extensions:void 0;this.extensions=(d=V??ie)!==null&&d!==void 0?d:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),L!=null&&L.stack?Object.defineProperty(this,"stack",{value:L.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let r=this.message;if(this.nodes)for(let i of this.nodes)i.loc&&(r+=` +import{createRequire as __cr}from"module";const require=__cr(import.meta.url); +var oIe=Object.create;var H8=Object.defineProperty;var iIe=Object.getOwnPropertyDescriptor;var aIe=Object.getOwnPropertyNames;var sIe=Object.getPrototypeOf,cIe=Object.prototype.hasOwnProperty;var _l=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var L=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),YS=(e,t)=>{for(var r in t)H8(e,r,{get:t[r],enumerable:!0})},lIe=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of aIe(t))!cIe.call(e,o)&&o!==r&&H8(e,o,{get:()=>t[o],enumerable:!(n=iIe(t,o))||n.enumerable});return e};var e0=(e,t,r)=>(r=e!=null?oIe(sIe(e)):{},lIe(t||!e||!e.__esModule?H8(r,"default",{value:e,enumerable:!0}):r,e));var vx=L(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.regexpCode=Un.getEsmExportName=Un.getProperty=Un.safeStringify=Un.stringify=Un.strConcat=Un.addCodeArg=Un.str=Un._=Un.nil=Un._Code=Un.Name=Un.IDENTIFIER=Un._CodeOrName=void 0;var gx=class{};Un._CodeOrName=gx;Un.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var xy=class extends gx{constructor(t){if(super(),!Un.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Un.Name=xy;var fl=class extends gx{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof xy&&(r[n.str]=(r[n.str]||0)+1),r),{})}};Un._Code=fl;Un.nil=new fl("");function BX(e,...t){let r=[e[0]],n=0;for(;n{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.ValueScope=Ks.ValueScopeName=Ks.Scope=Ks.varKinds=Ks.UsedValueState=void 0;var Js=vx(),Q8=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},sC;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(sC||(Ks.UsedValueState=sC={}));Ks.varKinds={const:new Js.Name("const"),let:new Js.Name("let"),var:new Js.Name("var")};var cC=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Js.Name?t:this.name(t)}name(t){return new Js.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};Ks.Scope=cC;var lC=class extends Js.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Js._)`.${new Js.Name(r)}[${n}]`}};Ks.ValueScopeName=lC;var SIe=(0,Js._)`\n`,X8=class extends cC{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?SIe:Js.nil}}get(){return this._scope}name(t){return new lC(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(t),{prefix:i}=o,a=(n=r.key)!==null&&n!==void 0?n:r.ref,s=this._values[i];if(s){let d=s.get(a);if(d)return d}else s=this._values[i]=new Map;s.set(a,o);let c=this._scope[i]||(this._scope[i]=[]),p=c.length;return c[p]=r.ref,o.setValue(r,{property:i,itemIndex:p}),o}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Js._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(t,r,n={},o){let i=Js.nil;for(let a in t){let s=t[a];if(!s)continue;let c=n[a]=n[a]||new Map;s.forEach(p=>{if(c.has(p))return;c.set(p,sC.Started);let d=r(p);if(d){let f=this.opts.es5?Ks.varKinds.var:Ks.varKinds.const;i=(0,Js._)`${i}${f} ${p} = ${d};${this.opts._n}`}else if(d=o?.(p))i=(0,Js._)`${i}${d}${this.opts._n}`;else throw new Q8(p);c.set(p,sC.Completed)})}return i}};Ks.ValueScope=X8});var kr=L(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.or=on.and=on.not=on.CodeGen=on.operators=on.varKinds=on.ValueScopeName=on.ValueScope=on.Scope=on.Name=on.regexpCode=on.stringify=on.getProperty=on.nil=on.strConcat=on.str=on._=void 0;var An=vx(),du=Y8(),qf=vx();Object.defineProperty(on,"_",{enumerable:!0,get:function(){return qf._}});Object.defineProperty(on,"str",{enumerable:!0,get:function(){return qf.str}});Object.defineProperty(on,"strConcat",{enumerable:!0,get:function(){return qf.strConcat}});Object.defineProperty(on,"nil",{enumerable:!0,get:function(){return qf.nil}});Object.defineProperty(on,"getProperty",{enumerable:!0,get:function(){return qf.getProperty}});Object.defineProperty(on,"stringify",{enumerable:!0,get:function(){return qf.stringify}});Object.defineProperty(on,"regexpCode",{enumerable:!0,get:function(){return qf.regexpCode}});Object.defineProperty(on,"Name",{enumerable:!0,get:function(){return qf.Name}});var _C=Y8();Object.defineProperty(on,"Scope",{enumerable:!0,get:function(){return _C.Scope}});Object.defineProperty(on,"ValueScope",{enumerable:!0,get:function(){return _C.ValueScope}});Object.defineProperty(on,"ValueScopeName",{enumerable:!0,get:function(){return _C.ValueScopeName}});Object.defineProperty(on,"varKinds",{enumerable:!0,get:function(){return _C.varKinds}});on.operators={GT:new An._Code(">"),GTE:new An._Code(">="),LT:new An._Code("<"),LTE:new An._Code("<="),EQ:new An._Code("==="),NEQ:new An._Code("!=="),NOT:new An._Code("!"),OR:new An._Code("||"),AND:new An._Code("&&"),ADD:new An._Code("+")};var Zd=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},e9=class extends Zd{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?du.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=r0(this.rhs,t,r)),this}get names(){return this.rhs instanceof An._CodeOrName?this.rhs.names:{}}},uC=class extends Zd{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof An.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=r0(this.rhs,t,r),this}get names(){let t=this.lhs instanceof An.Name?{}:{...this.lhs.names};return dC(t,this.rhs)}},t9=class extends uC{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},r9=class extends Zd{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},n9=class extends Zd{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},o9=class extends Zd{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},i9=class extends Zd{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=r0(this.code,t,r),this}get names(){return this.code instanceof An._CodeOrName?this.code.names:{}}},bx=class extends Zd{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,o=n.length;for(;o--;){let i=n[o];i.optimizeNames(t,r)||(vIe(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Dy(t,r.names),{})}},Wd=class extends bx{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},a9=class extends bx{},t0=class extends Wd{};t0.kind="else";var Ey=class e extends Wd{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new t0(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(UX(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=r0(this.condition,t,r),this}get names(){let t=super.names;return dC(t,this.condition),this.else&&Dy(t,this.else.names),t}};Ey.kind="if";var Ty=class extends Wd{};Ty.kind="for";var s9=class extends Ty{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=r0(this.iteration,t,r),this}get names(){return Dy(super.names,this.iteration.names)}},c9=class extends Ty{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?du.varKinds.var:this.varKind,{name:n,from:o,to:i}=this;return`for(${r} ${n}=${o}; ${n}<${i}; ${n}++)`+super.render(t)}get names(){let t=dC(super.names,this.from);return dC(t,this.to)}},pC=class extends Ty{constructor(t,r,n,o){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=o}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=r0(this.iterable,t,r),this}get names(){return Dy(super.names,this.iterable.names)}},xx=class extends Wd{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};xx.kind="func";var Ex=class extends bx{render(t){return"return "+super.render(t)}};Ex.kind="return";var l9=class extends Wd{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,o;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(o=this.finally)===null||o===void 0||o.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Dy(t,this.catch.names),this.finally&&Dy(t,this.finally.names),t}},Tx=class extends Wd{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Tx.kind="catch";var Dx=class extends Wd{render(t){return"finally"+super.render(t)}};Dx.kind="finally";var u9=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?` +`:""},this._extScope=t,this._scope=new du.Scope({parent:t}),this._nodes=[new a9]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,o){let i=this._scope.toName(r);return n!==void 0&&o&&(this._constants[i.str]=n),this._leafNode(new e9(t,i,n)),i}const(t,r,n){return this._def(du.varKinds.const,t,r,n)}let(t,r,n){return this._def(du.varKinds.let,t,r,n)}var(t,r,n){return this._def(du.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new uC(t,r,n))}add(t,r){return this._leafNode(new t9(t,on.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==An.nil&&this._leafNode(new i9(t)),this}object(...t){let r=["{"];for(let[n,o]of t)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,An.addCodeArg)(r,o));return r.push("}"),new An._Code(r)}if(t,r,n){if(this._blockNode(new Ey(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Ey(t))}else(){return this._elseNode(new t0)}endIf(){return this._endBlockNode(Ey,t0)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new s9(t),r)}forRange(t,r,n,o,i=this.opts.es5?du.varKinds.var:du.varKinds.let){let a=this._scope.toName(t);return this._for(new c9(i,a,r,n),()=>o(a))}forOf(t,r,n,o=du.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let a=r instanceof An.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,An._)`${a}.length`,s=>{this.var(i,(0,An._)`${a}[${s}]`),n(i)})}return this._for(new pC("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?du.varKinds.var:du.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,An._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new pC("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(Ty)}label(t){return this._leafNode(new r9(t))}break(t){return this._leafNode(new n9(t))}return(t){let r=new Ex;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ex)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new l9;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new Tx(i),r(i)}return n&&(this._currNode=o.finally=new Dx,this.code(n)),this._endBlockNode(Tx,Dx)}throw(t){return this._leafNode(new o9(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=An.nil,n,o){return this._blockNode(new xx(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(xx)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Ey))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};on.CodeGen=u9;function Dy(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function dC(e,t){return t instanceof An._CodeOrName?Dy(e,t.names):e}function r0(e,t,r){if(e instanceof An.Name)return n(e);if(!o(e))return e;return new An._Code(e._items.reduce((i,a)=>(a instanceof An.Name&&(a=n(a)),a instanceof An._Code?i.push(...a._items):i.push(a),i),[]));function n(i){let a=r[i.str];return a===void 0||t[i.str]!==1?i:(delete t[i.str],a)}function o(i){return i instanceof An._Code&&i._items.some(a=>a instanceof An.Name&&t[a.str]===1&&r[a.str]!==void 0)}}function vIe(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function UX(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,An._)`!${p9(e)}`}on.not=UX;var bIe=zX(on.operators.AND);function xIe(...e){return e.reduce(bIe)}on.and=xIe;var EIe=zX(on.operators.OR);function TIe(...e){return e.reduce(EIe)}on.or=TIe;function zX(e){return(t,r)=>t===An.nil?r:r===An.nil?t:(0,An._)`${p9(t)} ${e} ${p9(r)}`}function p9(e){return e instanceof An.Name?e:(0,An._)`(${e})`}});var ln=L(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.checkStrictMode=cn.getErrorPath=cn.Type=cn.useFunc=cn.setEvaluated=cn.evaluatedPropsToName=cn.mergeEvaluated=cn.eachItem=cn.unescapeJsonPointer=cn.escapeJsonPointer=cn.escapeFragment=cn.unescapeFragment=cn.schemaRefOrVal=cn.schemaHasRulesButRef=cn.schemaHasRules=cn.checkUnknownRules=cn.alwaysValidSchema=cn.toHash=void 0;var Do=kr(),DIe=vx();function AIe(e){let t={};for(let r of e)t[r]=!0;return t}cn.toHash=AIe;function wIe(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(KX(e,t),!GX(t,e.self.RULES.all))}cn.alwaysValidSchema=wIe;function KX(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let o=n.RULES.keywords;for(let i in t)o[i]||WX(e,`unknown keyword: "${i}"`)}cn.checkUnknownRules=KX;function GX(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}cn.schemaHasRules=GX;function IIe(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}cn.schemaHasRulesButRef=IIe;function kIe({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Do._)`${r}`}return(0,Do._)`${e}${t}${(0,Do.getProperty)(n)}`}cn.schemaRefOrVal=kIe;function CIe(e){return HX(decodeURIComponent(e))}cn.unescapeFragment=CIe;function PIe(e){return encodeURIComponent(_9(e))}cn.escapeFragment=PIe;function _9(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}cn.escapeJsonPointer=_9;function HX(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}cn.unescapeJsonPointer=HX;function OIe(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}cn.eachItem=OIe;function VX({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,a,s)=>{let c=a===void 0?i:a instanceof Do.Name?(i instanceof Do.Name?e(o,i,a):t(o,i,a),a):i instanceof Do.Name?(t(o,a,i),i):r(i,a);return s===Do.Name&&!(c instanceof Do.Name)?n(o,c):c}}cn.mergeEvaluated={props:VX({mergeNames:(e,t,r)=>e.if((0,Do._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Do._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Do._)`${r} || {}`).code((0,Do._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Do._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Do._)`${r} || {}`),f9(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:ZX}),items:VX({mergeNames:(e,t,r)=>e.if((0,Do._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Do._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Do._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Do._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function ZX(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Do._)`{}`);return t!==void 0&&f9(e,r,t),r}cn.evaluatedPropsToName=ZX;function f9(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Do._)`${t}${(0,Do.getProperty)(n)}`,!0))}cn.setEvaluated=f9;var JX={};function NIe(e,t){return e.scopeValue("func",{ref:t,code:JX[t.code]||(JX[t.code]=new DIe._Code(t.code))})}cn.useFunc=NIe;var d9;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(d9||(cn.Type=d9={}));function FIe(e,t,r){if(e instanceof Do.Name){let n=t===d9.Num;return r?n?(0,Do._)`"[" + ${e} + "]"`:(0,Do._)`"['" + ${e} + "']"`:n?(0,Do._)`"/" + ${e}`:(0,Do._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Do.getProperty)(e).toString():"/"+_9(e)}cn.getErrorPath=FIe;function WX(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}cn.checkStrictMode=WX});var ml=L(m9=>{"use strict";Object.defineProperty(m9,"__esModule",{value:!0});var Xa=kr(),RIe={data:new Xa.Name("data"),valCxt:new Xa.Name("valCxt"),instancePath:new Xa.Name("instancePath"),parentData:new Xa.Name("parentData"),parentDataProperty:new Xa.Name("parentDataProperty"),rootData:new Xa.Name("rootData"),dynamicAnchors:new Xa.Name("dynamicAnchors"),vErrors:new Xa.Name("vErrors"),errors:new Xa.Name("errors"),this:new Xa.Name("this"),self:new Xa.Name("self"),scope:new Xa.Name("scope"),json:new Xa.Name("json"),jsonPos:new Xa.Name("jsonPos"),jsonLen:new Xa.Name("jsonLen"),jsonPart:new Xa.Name("jsonPart")};m9.default=RIe});var Ax=L(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.extendErrors=Ya.resetErrorsCount=Ya.reportExtraError=Ya.reportError=Ya.keyword$DataError=Ya.keywordError=void 0;var Ln=kr(),fC=ln(),Ss=ml();Ya.keywordError={message:({keyword:e})=>(0,Ln.str)`must pass "${e}" keyword validation`};Ya.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,Ln.str)`"${e}" keyword must be ${t} ($data)`:(0,Ln.str)`"${e}" keyword is invalid ($data)`};function LIe(e,t=Ya.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:a,allErrors:s}=o,c=YX(e,t,r);n??(a||s)?QX(i,c):XX(o,(0,Ln._)`[${c}]`)}Ya.reportError=LIe;function $Ie(e,t=Ya.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:a}=n,s=YX(e,t,r);QX(o,s),i||a||XX(n,Ss.default.vErrors)}Ya.reportExtraError=$Ie;function MIe(e,t){e.assign(Ss.default.errors,t),e.if((0,Ln._)`${Ss.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,Ln._)`${Ss.default.vErrors}.length`,t),()=>e.assign(Ss.default.vErrors,null)))}Ya.resetErrorsCount=MIe;function jIe({gen:e,keyword:t,schemaValue:r,data:n,errsCount:o,it:i}){if(o===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",o,Ss.default.errors,s=>{e.const(a,(0,Ln._)`${Ss.default.vErrors}[${s}]`),e.if((0,Ln._)`${a}.instancePath === undefined`,()=>e.assign((0,Ln._)`${a}.instancePath`,(0,Ln.strConcat)(Ss.default.instancePath,i.errorPath))),e.assign((0,Ln._)`${a}.schemaPath`,(0,Ln.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,Ln._)`${a}.schema`,r),e.assign((0,Ln._)`${a}.data`,n))})}Ya.extendErrors=jIe;function QX(e,t){let r=e.const("err",t);e.if((0,Ln._)`${Ss.default.vErrors} === null`,()=>e.assign(Ss.default.vErrors,(0,Ln._)`[${r}]`),(0,Ln._)`${Ss.default.vErrors}.push(${r})`),e.code((0,Ln._)`${Ss.default.errors}++`)}function XX(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,Ln._)`new ${e.ValidationError}(${t})`):(r.assign((0,Ln._)`${n}.errors`,t),r.return(!1))}var Ay={keyword:new Ln.Name("keyword"),schemaPath:new Ln.Name("schemaPath"),params:new Ln.Name("params"),propertyName:new Ln.Name("propertyName"),message:new Ln.Name("message"),schema:new Ln.Name("schema"),parentSchema:new Ln.Name("parentSchema")};function YX(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,Ln._)`{}`:BIe(e,t,r)}function BIe(e,t,r={}){let{gen:n,it:o}=e,i=[qIe(o,r),UIe(e,r)];return zIe(e,t,i),n.object(...i)}function qIe({errorPath:e},{instancePath:t}){let r=t?(0,Ln.str)`${e}${(0,fC.getErrorPath)(t,fC.Type.Str)}`:e;return[Ss.default.instancePath,(0,Ln.strConcat)(Ss.default.instancePath,r)]}function UIe({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,Ln.str)`${t}/${e}`;return r&&(o=(0,Ln.str)`${o}${(0,fC.getErrorPath)(r,fC.Type.Str)}`),[Ay.schemaPath,o]}function zIe(e,{params:t,message:r},n){let{keyword:o,data:i,schemaValue:a,it:s}=e,{opts:c,propertyName:p,topSchemaRef:d,schemaPath:f}=s;n.push([Ay.keyword,o],[Ay.params,typeof t=="function"?t(e):t||(0,Ln._)`{}`]),c.messages&&n.push([Ay.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([Ay.schema,a],[Ay.parentSchema,(0,Ln._)`${d}${f}`],[Ss.default.data,i]),p&&n.push([Ay.propertyName,p])}});var tY=L(n0=>{"use strict";Object.defineProperty(n0,"__esModule",{value:!0});n0.boolOrEmptySchema=n0.topBoolOrEmptySchema=void 0;var VIe=Ax(),JIe=kr(),KIe=ml(),GIe={message:"boolean schema is false"};function HIe(e){let{gen:t,schema:r,validateName:n}=e;r===!1?eY(e,!1):typeof r=="object"&&r.$async===!0?t.return(KIe.default.data):(t.assign((0,JIe._)`${n}.errors`,null),t.return(!0))}n0.topBoolOrEmptySchema=HIe;function ZIe(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),eY(e)):r.var(t,!0)}n0.boolOrEmptySchema=ZIe;function eY(e,t){let{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,VIe.reportError)(o,GIe,void 0,t)}});var h9=L(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});o0.getRules=o0.isJSONType=void 0;var WIe=["string","number","integer","boolean","null","object","array"],QIe=new Set(WIe);function XIe(e){return typeof e=="string"&&QIe.has(e)}o0.isJSONType=XIe;function YIe(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}o0.getRules=YIe});var y9=L(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.shouldUseRule=Uf.shouldUseGroup=Uf.schemaHasRulesForType=void 0;function eke({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&rY(e,n)}Uf.schemaHasRulesForType=eke;function rY(e,t){return t.rules.some(r=>nY(e,r))}Uf.shouldUseGroup=rY;function nY(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}Uf.shouldUseRule=nY});var wx=L(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.reportTypeError=es.checkDataTypes=es.checkDataType=es.coerceAndCheckDataType=es.getJSONTypes=es.getSchemaTypes=es.DataType=void 0;var tke=h9(),rke=y9(),nke=Ax(),qr=kr(),oY=ln(),i0;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(i0||(es.DataType=i0={}));function oke(e){let t=iY(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}es.getSchemaTypes=oke;function iY(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(tke.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}es.getJSONTypes=iY;function ike(e,t){let{gen:r,data:n,opts:o}=e,i=ake(t,o.coerceTypes),a=t.length>0&&!(i.length===0&&t.length===1&&(0,rke.schemaHasRulesForType)(e,t[0]));if(a){let s=S9(t,n,o.strictNumbers,i0.Wrong);r.if(s,()=>{i.length?ske(e,t,i):v9(e)})}return a}es.coerceAndCheckDataType=ike;var aY=new Set(["string","number","integer","boolean","null"]);function ake(e,t){return t?e.filter(r=>aY.has(r)||t==="array"&&r==="array"):[]}function ske(e,t,r){let{gen:n,data:o,opts:i}=e,a=n.let("dataType",(0,qr._)`typeof ${o}`),s=n.let("coerced",(0,qr._)`undefined`);i.coerceTypes==="array"&&n.if((0,qr._)`${a} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,qr._)`${o}[0]`).assign(a,(0,qr._)`typeof ${o}`).if(S9(t,o,i.strictNumbers),()=>n.assign(s,o))),n.if((0,qr._)`${s} !== undefined`);for(let p of r)(aY.has(p)||p==="array"&&i.coerceTypes==="array")&&c(p);n.else(),v9(e),n.endIf(),n.if((0,qr._)`${s} !== undefined`,()=>{n.assign(o,s),cke(e,s)});function c(p){switch(p){case"string":n.elseIf((0,qr._)`${a} == "number" || ${a} == "boolean"`).assign(s,(0,qr._)`"" + ${o}`).elseIf((0,qr._)`${o} === null`).assign(s,(0,qr._)`""`);return;case"number":n.elseIf((0,qr._)`${a} == "boolean" || ${o} === null + || (${a} == "string" && ${o} && ${o} == +${o})`).assign(s,(0,qr._)`+${o}`);return;case"integer":n.elseIf((0,qr._)`${a} === "boolean" || ${o} === null + || (${a} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(s,(0,qr._)`+${o}`);return;case"boolean":n.elseIf((0,qr._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(s,!1).elseIf((0,qr._)`${o} === "true" || ${o} === 1`).assign(s,!0);return;case"null":n.elseIf((0,qr._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(s,null);return;case"array":n.elseIf((0,qr._)`${a} === "string" || ${a} === "number" + || ${a} === "boolean" || ${o} === null`).assign(s,(0,qr._)`[${o}]`)}}}function cke({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,qr._)`${t} !== undefined`,()=>e.assign((0,qr._)`${t}[${r}]`,n))}function g9(e,t,r,n=i0.Correct){let o=n===i0.Correct?qr.operators.EQ:qr.operators.NEQ,i;switch(e){case"null":return(0,qr._)`${t} ${o} null`;case"array":i=(0,qr._)`Array.isArray(${t})`;break;case"object":i=(0,qr._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=a((0,qr._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=a();break;default:return(0,qr._)`typeof ${t} ${o} ${e}`}return n===i0.Correct?i:(0,qr.not)(i);function a(s=qr.nil){return(0,qr.and)((0,qr._)`typeof ${t} == "number"`,s,r?(0,qr._)`isFinite(${t})`:qr.nil)}}es.checkDataType=g9;function S9(e,t,r,n){if(e.length===1)return g9(e[0],t,r,n);let o,i=(0,oY.toHash)(e);if(i.array&&i.object){let a=(0,qr._)`typeof ${t} != "object"`;o=i.null?a:(0,qr._)`!${t} || ${a}`,delete i.null,delete i.array,delete i.object}else o=qr.nil;i.number&&delete i.integer;for(let a in i)o=(0,qr.and)(o,g9(a,t,r,n));return o}es.checkDataTypes=S9;var lke={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,qr._)`{type: ${e}}`:(0,qr._)`{type: ${t}}`};function v9(e){let t=uke(e);(0,nke.reportError)(t,lke)}es.reportTypeError=v9;function uke(e){let{gen:t,data:r,schema:n}=e,o=(0,oY.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var cY=L(mC=>{"use strict";Object.defineProperty(mC,"__esModule",{value:!0});mC.assignDefaults=void 0;var a0=kr(),pke=ln();function dke(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)sY(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>sY(e,i,o.default))}mC.assignDefaults=dke;function sY(e,t,r){let{gen:n,compositeRule:o,data:i,opts:a}=e;if(r===void 0)return;let s=(0,a0._)`${i}${(0,a0.getProperty)(t)}`;if(o){(0,pke.checkStrictMode)(e,`default is ignored for: ${s}`);return}let c=(0,a0._)`${s} === undefined`;a.useDefaults==="empty"&&(c=(0,a0._)`${c} || ${s} === null || ${s} === ""`),n.if(c,(0,a0._)`${s} = ${(0,a0.stringify)(r)}`)}});var hl=L(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.validateUnion=ho.validateArray=ho.usePattern=ho.callValidateCode=ho.schemaProperties=ho.allSchemaProperties=ho.noPropertyInData=ho.propertyInData=ho.isOwnProperty=ho.hasPropFunc=ho.reportMissingProp=ho.checkMissingProp=ho.checkReportMissingProp=void 0;var Vo=kr(),b9=ln(),zf=ml(),_ke=ln();function fke(e,t){let{gen:r,data:n,it:o}=e;r.if(E9(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Vo._)`${t}`},!0),e.error()})}ho.checkReportMissingProp=fke;function mke({gen:e,data:t,it:{opts:r}},n,o){return(0,Vo.or)(...n.map(i=>(0,Vo.and)(E9(e,t,i,r.ownProperties),(0,Vo._)`${o} = ${i}`)))}ho.checkMissingProp=mke;function hke(e,t){e.setParams({missingProperty:t},!0),e.error()}ho.reportMissingProp=hke;function lY(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Vo._)`Object.prototype.hasOwnProperty`})}ho.hasPropFunc=lY;function x9(e,t,r){return(0,Vo._)`${lY(e)}.call(${t}, ${r})`}ho.isOwnProperty=x9;function yke(e,t,r,n){let o=(0,Vo._)`${t}${(0,Vo.getProperty)(r)} !== undefined`;return n?(0,Vo._)`${o} && ${x9(e,t,r)}`:o}ho.propertyInData=yke;function E9(e,t,r,n){let o=(0,Vo._)`${t}${(0,Vo.getProperty)(r)} === undefined`;return n?(0,Vo.or)(o,(0,Vo.not)(x9(e,t,r))):o}ho.noPropertyInData=E9;function uY(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}ho.allSchemaProperties=uY;function gke(e,t){return uY(t).filter(r=>!(0,b9.alwaysValidSchema)(e,t[r]))}ho.schemaProperties=gke;function Ske({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:a},s,c,p){let d=p?(0,Vo._)`${e}, ${t}, ${n}${o}`:t,f=[[zf.default.instancePath,(0,Vo.strConcat)(zf.default.instancePath,i)],[zf.default.parentData,a.parentData],[zf.default.parentDataProperty,a.parentDataProperty],[zf.default.rootData,zf.default.rootData]];a.opts.dynamicRef&&f.push([zf.default.dynamicAnchors,zf.default.dynamicAnchors]);let m=(0,Vo._)`${d}, ${r.object(...f)}`;return c!==Vo.nil?(0,Vo._)`${s}.call(${c}, ${m})`:(0,Vo._)`${s}(${m})`}ho.callValidateCode=Ske;var vke=(0,Vo._)`new RegExp`;function bke({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,i=o(r,n);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,Vo._)`${o.code==="new RegExp"?vke:(0,_ke.useFunc)(e,o)}(${r}, ${n})`})}ho.usePattern=bke;function xke(e){let{gen:t,data:r,keyword:n,it:o}=e,i=t.name("valid");if(o.allErrors){let s=t.let("valid",!0);return a(()=>t.assign(s,!1)),s}return t.var(i,!0),a(()=>t.break()),i;function a(s){let c=t.const("len",(0,Vo._)`${r}.length`);t.forRange("i",0,c,p=>{e.subschema({keyword:n,dataProp:p,dataPropType:b9.Type.Num},i),t.if((0,Vo.not)(i),s)})}}ho.validateArray=xke;function Eke(e){let{gen:t,schema:r,keyword:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,b9.alwaysValidSchema)(o,c))&&!o.opts.unevaluated)return;let a=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((c,p)=>{let d=e.subschema({keyword:n,schemaProp:p,compositeRule:!0},s);t.assign(a,(0,Vo._)`${a} || ${s}`),e.mergeValidEvaluated(d,s)||t.if((0,Vo.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}ho.validateUnion=Eke});var _Y=L(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.validateKeywordUsage=hp.validSchemaType=hp.funcKeywordCode=hp.macroKeywordCode=void 0;var vs=kr(),wy=ml(),Tke=hl(),Dke=Ax();function Ake(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:a}=e,s=t.macro.call(a.self,o,i,a),c=dY(r,n,s);a.opts.validateSchema!==!1&&a.self.validateSchema(s,!0);let p=r.name("valid");e.subschema({schema:s,schemaPath:vs.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},p),e.pass(p,()=>e.error(!0))}hp.macroKeywordCode=Ake;function wke(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:a,$data:s,it:c}=e;kke(c,t);let p=!s&&t.compile?t.compile.call(c.self,i,a,c):t.validate,d=dY(n,o,p),f=n.let("valid");e.block$data(f,m),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function m(){if(t.errors===!1)S(),t.modifying&&pY(e),x(()=>e.error());else{let A=t.async?y():g();t.modifying&&pY(e),x(()=>Ike(e,A))}}function y(){let A=n.let("ruleErrs",null);return n.try(()=>S((0,vs._)`await `),I=>n.assign(f,!1).if((0,vs._)`${I} instanceof ${c.ValidationError}`,()=>n.assign(A,(0,vs._)`${I}.errors`),()=>n.throw(I))),A}function g(){let A=(0,vs._)`${d}.errors`;return n.assign(A,null),S(vs.nil),A}function S(A=t.async?(0,vs._)`await `:vs.nil){let I=c.opts.passContext?wy.default.this:wy.default.self,E=!("compile"in t&&!s||t.schema===!1);n.assign(f,(0,vs._)`${A}${(0,Tke.callValidateCode)(e,d,I,E)}`,t.modifying)}function x(A){var I;n.if((0,vs.not)((I=t.valid)!==null&&I!==void 0?I:f),A)}}hp.funcKeywordCode=wke;function pY(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,vs._)`${n.parentData}[${n.parentDataProperty}]`))}function Ike(e,t){let{gen:r}=e;r.if((0,vs._)`Array.isArray(${t})`,()=>{r.assign(wy.default.vErrors,(0,vs._)`${wy.default.vErrors} === null ? ${t} : ${wy.default.vErrors}.concat(${t})`).assign(wy.default.errors,(0,vs._)`${wy.default.vErrors}.length`),(0,Dke.extendErrors)(e)},()=>e.error())}function kke({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function dY(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,vs.stringify)(r)})}function Cke(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}hp.validSchemaType=Cke;function Pke({schema:e,opts:t,self:r,errSchemaPath:n},o,i){if(Array.isArray(o.keyword)?!o.keyword.includes(i):o.keyword!==i)throw new Error("ajv implementation error");let a=o.dependencies;if(a?.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${i}: ${a.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[i])){let c=`keyword "${i}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}hp.validateKeywordUsage=Pke});var mY=L(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.extendSubschemaMode=Vf.extendSubschemaData=Vf.getSubschema=void 0;var yp=kr(),fY=ln();function Oke(e,{keyword:t,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:i,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let s=e.schema[t];return r===void 0?{schema:s,schemaPath:(0,yp._)`${e.schemaPath}${(0,yp.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:(0,yp._)`${e.schemaPath}${(0,yp.getProperty)(t)}${(0,yp.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,fY.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||i===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:a,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}Vf.getSubschema=Oke;function Nke(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:i,propertyName:a}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:s}=t;if(r!==void 0){let{errorPath:p,dataPathArr:d,opts:f}=t,m=s.let("data",(0,yp._)`${t.data}${(0,yp.getProperty)(r)}`,!0);c(m),e.errorPath=(0,yp.str)`${p}${(0,fY.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,yp._)`${r}`,e.dataPathArr=[...d,e.parentDataProperty]}if(o!==void 0){let p=o instanceof yp.Name?o:s.let("data",o,!0);c(p),a!==void 0&&(e.propertyName=a)}i&&(e.dataTypes=i);function c(p){e.data=p,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,p]}}Vf.extendSubschemaData=Nke;function Fke(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:i}){n!==void 0&&(e.compositeRule=n),o!==void 0&&(e.createErrors=o),i!==void 0&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=r}Vf.extendSubschemaMode=Fke});var T9=L((qwt,hY)=>{"use strict";hY.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;o--!==0;){var a=i[o];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r}});var gY=L((Uwt,yY)=>{"use strict";var Jf=yY.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},o=r.post||function(){};hC(t,n,o,e,"",e)};Jf.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Jf.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Jf.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Jf.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function hC(e,t,r,n,o,i,a,s,c,p){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,o,i,a,s,c,p);for(var d in n){var f=n[d];if(Array.isArray(f)){if(d in Jf.arrayKeywords)for(var m=0;m{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.getSchemaRefs=Gs.resolveUrl=Gs.normalizeId=Gs._getFullPath=Gs.getFullPath=Gs.inlineRef=void 0;var Lke=ln(),$ke=T9(),Mke=gY(),jke=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Bke(e,t=!0){return typeof e=="boolean"?!0:t===!0?!D9(e):t?SY(e)<=t:!1}Gs.inlineRef=Bke;var qke=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function D9(e){for(let t in e){if(qke.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(D9)||typeof r=="object"&&D9(r))return!0}return!1}function SY(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!jke.has(r)&&(typeof e[r]=="object"&&(0,Lke.eachItem)(e[r],n=>t+=SY(n)),t===1/0))return 1/0}return t}function vY(e,t="",r){r!==!1&&(t=s0(t));let n=e.parse(t);return bY(e,n)}Gs.getFullPath=vY;function bY(e,t){return e.serialize(t).split("#")[0]+"#"}Gs._getFullPath=bY;var Uke=/#\/?$/;function s0(e){return e?e.replace(Uke,""):""}Gs.normalizeId=s0;function zke(e,t,r){return r=s0(r),e.resolve(t,r)}Gs.resolveUrl=zke;var Vke=/^[a-z_][-a-z0-9._]*$/i;function Jke(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=s0(e[r]||t),i={"":o},a=vY(n,o,!1),s={},c=new Set;return Mke(e,{allKeys:!0},(f,m,y,g)=>{if(g===void 0)return;let S=a+m,x=i[g];typeof f[r]=="string"&&(x=A.call(this,f[r])),I.call(this,f.$anchor),I.call(this,f.$dynamicAnchor),i[m]=x;function A(E){let C=this.opts.uriResolver.resolve;if(E=s0(x?C(x,E):E),c.has(E))throw d(E);c.add(E);let F=this.refs[E];return typeof F=="string"&&(F=this.refs[F]),typeof F=="object"?p(f,F.schema,E):E!==s0(S)&&(E[0]==="#"?(p(f,s[E],E),s[E]=f):this.refs[E]=S),E}function I(E){if(typeof E=="string"){if(!Vke.test(E))throw new Error(`invalid anchor "${E}"`);A.call(this,`#${E}`)}}}),s;function p(f,m,y){if(m!==void 0&&!$ke(f,m))throw d(y)}function d(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Gs.getSchemaRefs=Jke});var c0=L(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});Kf.getData=Kf.KeywordCxt=Kf.validateFunctionCode=void 0;var AY=tY(),xY=wx(),w9=y9(),yC=wx(),Kke=cY(),Cx=_Y(),A9=mY(),Zt=kr(),Ar=ml(),Gke=Ix(),Qd=ln(),kx=Ax();function Hke(e){if(kY(e)&&(CY(e),IY(e))){Qke(e);return}wY(e,()=>(0,AY.topBoolOrEmptySchema)(e))}Kf.validateFunctionCode=Hke;function wY({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,Zt._)`${Ar.default.data}, ${Ar.default.valCxt}`,n.$async,()=>{e.code((0,Zt._)`"use strict"; ${EY(r,o)}`),Wke(e,o),e.code(i)}):e.func(t,(0,Zt._)`${Ar.default.data}, ${Zke(o)}`,n.$async,()=>e.code(EY(r,o)).code(i))}function Zke(e){return(0,Zt._)`{${Ar.default.instancePath}="", ${Ar.default.parentData}, ${Ar.default.parentDataProperty}, ${Ar.default.rootData}=${Ar.default.data}${e.dynamicRef?(0,Zt._)`, ${Ar.default.dynamicAnchors}={}`:Zt.nil}}={}`}function Wke(e,t){e.if(Ar.default.valCxt,()=>{e.var(Ar.default.instancePath,(0,Zt._)`${Ar.default.valCxt}.${Ar.default.instancePath}`),e.var(Ar.default.parentData,(0,Zt._)`${Ar.default.valCxt}.${Ar.default.parentData}`),e.var(Ar.default.parentDataProperty,(0,Zt._)`${Ar.default.valCxt}.${Ar.default.parentDataProperty}`),e.var(Ar.default.rootData,(0,Zt._)`${Ar.default.valCxt}.${Ar.default.rootData}`),t.dynamicRef&&e.var(Ar.default.dynamicAnchors,(0,Zt._)`${Ar.default.valCxt}.${Ar.default.dynamicAnchors}`)},()=>{e.var(Ar.default.instancePath,(0,Zt._)`""`),e.var(Ar.default.parentData,(0,Zt._)`undefined`),e.var(Ar.default.parentDataProperty,(0,Zt._)`undefined`),e.var(Ar.default.rootData,Ar.default.data),t.dynamicRef&&e.var(Ar.default.dynamicAnchors,(0,Zt._)`{}`)})}function Qke(e){let{schema:t,opts:r,gen:n}=e;wY(e,()=>{r.$comment&&t.$comment&&OY(e),rCe(e),n.let(Ar.default.vErrors,null),n.let(Ar.default.errors,0),r.unevaluated&&Xke(e),PY(e),iCe(e)})}function Xke(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Zt._)`${r}.evaluated`),t.if((0,Zt._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Zt._)`${e.evaluated}.props`,(0,Zt._)`undefined`)),t.if((0,Zt._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Zt._)`${e.evaluated}.items`,(0,Zt._)`undefined`))}function EY(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Zt._)`/*# sourceURL=${r} */`:Zt.nil}function Yke(e,t){if(kY(e)&&(CY(e),IY(e))){eCe(e,t);return}(0,AY.boolOrEmptySchema)(e,t)}function IY({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function kY(e){return typeof e.schema!="boolean"}function eCe(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&OY(e),nCe(e),oCe(e);let i=n.const("_errs",Ar.default.errors);PY(e,i),n.var(t,(0,Zt._)`${i} === ${Ar.default.errors}`)}function CY(e){(0,Qd.checkUnknownRules)(e),tCe(e)}function PY(e,t){if(e.opts.jtd)return TY(e,[],!1,t);let r=(0,xY.getSchemaTypes)(e.schema),n=(0,xY.coerceAndCheckDataType)(e,r);TY(e,r,!n,t)}function tCe(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Qd.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function rCe(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Qd.checkStrictMode)(e,"default is ignored in the schema root")}function nCe(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Gke.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function oCe(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function OY({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,Zt._)`${Ar.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let a=(0,Zt.str)`${n}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,Zt._)`${Ar.default.self}.opts.$comment(${i}, ${a}, ${s}.schema)`)}}function iCe(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,Zt._)`${Ar.default.errors} === 0`,()=>t.return(Ar.default.data),()=>t.throw((0,Zt._)`new ${o}(${Ar.default.vErrors})`)):(t.assign((0,Zt._)`${n}.errors`,Ar.default.vErrors),i.unevaluated&&aCe(e),t.return((0,Zt._)`${Ar.default.errors} === 0`))}function aCe({gen:e,evaluated:t,props:r,items:n}){r instanceof Zt.Name&&e.assign((0,Zt._)`${t}.props`,r),n instanceof Zt.Name&&e.assign((0,Zt._)`${t}.items`,n)}function TY(e,t,r,n){let{gen:o,schema:i,data:a,allErrors:s,opts:c,self:p}=e,{RULES:d}=p;if(i.$ref&&(c.ignoreKeywordsWithRef||!(0,Qd.schemaHasRulesButRef)(i,d))){o.block(()=>FY(e,"$ref",d.all.$ref.definition));return}c.jtd||sCe(e,t),o.block(()=>{for(let m of d.rules)f(m);f(d.post)});function f(m){(0,w9.shouldUseGroup)(i,m)&&(m.type?(o.if((0,yC.checkDataType)(m.type,a,c.strictNumbers)),DY(e,m),t.length===1&&t[0]===m.type&&r&&(o.else(),(0,yC.reportTypeError)(e)),o.endIf()):DY(e,m),s||o.if((0,Zt._)`${Ar.default.errors} === ${n||0}`))}}function DY(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,Kke.assignDefaults)(e,t.type),r.block(()=>{for(let i of t.rules)(0,w9.shouldUseRule)(n,i)&&FY(e,i.keyword,i.definition,t.type)})}function sCe(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(cCe(e,t),e.opts.allowUnionTypes||lCe(e,t),uCe(e,e.dataTypes))}function cCe(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{NY(e.dataTypes,r)||I9(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),dCe(e,t)}}function lCe(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&I9(e,"use allowUnionTypes to allow union type keyword")}function uCe(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,w9.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(a=>pCe(t,a))&&I9(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function pCe(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function NY(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function dCe(e,t){let r=[];for(let n of e.dataTypes)NY(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function I9(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Qd.checkStrictMode)(e,t,e.opts.strictTypes)}var gC=class{constructor(t,r,n){if((0,Cx.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Qd.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",RY(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Cx.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Ar.default.errors))}result(t,r,n){this.failResult((0,Zt.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,Zt.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,Zt._)`${r} !== undefined && (${(0,Zt.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?kx.reportExtraError:kx.reportError)(this,this.def.error,r)}$dataError(){(0,kx.reportError)(this,this.def.$dataError||kx.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,kx.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=Zt.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=Zt.nil,r=Zt.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:a}=this;n.if((0,Zt.or)((0,Zt._)`${o} === undefined`,r)),t!==Zt.nil&&n.assign(t,!0),(i.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==Zt.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,Zt.or)(a(),s());function a(){if(n.length){if(!(r instanceof Zt.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,Zt._)`${(0,yC.checkDataTypes)(c,r,i.opts.strictNumbers,yC.DataType.Wrong)}`}return Zt.nil}function s(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,Zt._)`!${c}(${r})`}return Zt.nil}}subschema(t,r){let n=(0,A9.getSubschema)(this.it,t);(0,A9.extendSubschemaData)(n,this.it,t),(0,A9.extendSubschemaMode)(n,t);let o={...this.it,...n,items:void 0,props:void 0};return Yke(o,r),o}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Qd.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Qd.mergeEvaluated.items(o,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(t,Zt.Name)),!0}};Kf.KeywordCxt=gC;function FY(e,t,r,n){let o=new gC(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Cx.funcKeywordCode)(o,r):"macro"in r?(0,Cx.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Cx.funcKeywordCode)(o,r)}var _Ce=/^\/(?:[^~]|~0|~1)*$/,fCe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function RY(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return Ar.default.rootData;if(e[0]==="/"){if(!_Ce.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=Ar.default.rootData}else{let p=fCe.exec(e);if(!p)throw new Error(`Invalid JSON-pointer: ${e}`);let d=+p[1];if(o=p[2],o==="#"){if(d>=t)throw new Error(c("property/index",d));return n[t-d]}if(d>t)throw new Error(c("data",d));if(i=r[t-d],!o)return i}let a=i,s=o.split("/");for(let p of s)p&&(i=(0,Zt._)`${i}${(0,Zt.getProperty)((0,Qd.unescapeJsonPointer)(p))}`,a=(0,Zt._)`${a} && ${i}`);return a;function c(p,d){return`Cannot access ${p} ${d} levels up, current level is ${t}`}}Kf.getData=RY});var Px=L(C9=>{"use strict";Object.defineProperty(C9,"__esModule",{value:!0});var k9=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};C9.default=k9});var l0=L(N9=>{"use strict";Object.defineProperty(N9,"__esModule",{value:!0});var P9=Ix(),O9=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,P9.resolveUrl)(t,r,n),this.missingSchema=(0,P9.normalizeId)((0,P9.getFullPath)(t,this.missingRef))}};N9.default=O9});var Ox=L(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.resolveSchema=yl.getCompilingSchema=yl.resolveRef=yl.compileSchema=yl.SchemaEnv=void 0;var _u=kr(),mCe=Px(),Iy=ml(),fu=Ix(),LY=ln(),hCe=c0(),u0=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,fu.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};yl.SchemaEnv=u0;function R9(e){let t=$Y.call(this,e);if(t)return t;let r=(0,fu.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,a=new _u.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),s;e.$async&&(s=a.scopeValue("Error",{ref:mCe.default,code:(0,_u._)`require("ajv/dist/runtime/validation_error").default`}));let c=a.scopeName("validate");e.validateName=c;let p={gen:a,allErrors:this.opts.allErrors,data:Iy.default.data,parentData:Iy.default.parentData,parentDataProperty:Iy.default.parentDataProperty,dataNames:[Iy.default.data],dataPathArr:[_u.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,_u.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:_u.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,_u._)`""`,opts:this.opts,self:this},d;try{this._compilations.add(e),(0,hCe.validateFunctionCode)(p),a.optimize(this.opts.code.optimize);let f=a.toString();d=`${a.scopeRefs(Iy.default.scope)}return ${f}`,this.opts.code.process&&(d=this.opts.code.process(d,e));let y=new Function(`${Iy.default.self}`,`${Iy.default.scope}`,d)(this,this.scope.get());if(this.scope.value(c,{ref:y}),y.errors=null,y.schema=e.schema,y.schemaEnv=e,e.$async&&(y.$async=!0),this.opts.code.source===!0&&(y.source={validateName:c,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:g,items:S}=p;y.evaluated={props:g instanceof _u.Name?void 0:g,items:S instanceof _u.Name?void 0:S,dynamicProps:g instanceof _u.Name,dynamicItems:S instanceof _u.Name},y.source&&(y.source.evaluated=(0,_u.stringify)(y.evaluated))}return e.validate=y,e}catch(f){throw delete e.validate,delete e.validateName,d&&this.logger.error("Error compiling schema, function code:",d),f}finally{this._compilations.delete(e)}}yl.compileSchema=R9;function yCe(e,t,r){var n;r=(0,fu.resolveUrl)(this.opts.uriResolver,t,r);let o=e.refs[r];if(o)return o;let i=vCe.call(this,e,r);if(i===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:s}=this.opts;a&&(i=new u0({schema:a,schemaId:s,root:e,baseId:t}))}if(i!==void 0)return e.refs[r]=gCe.call(this,i)}yl.resolveRef=yCe;function gCe(e){return(0,fu.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:R9.call(this,e)}function $Y(e){for(let t of this._compilations)if(SCe(t,e))return t}yl.getCompilingSchema=$Y;function SCe(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function vCe(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||SC.call(this,e,t)}function SC(e,t){let r=this.opts.uriResolver.parse(t),n=(0,fu._getFullPath)(this.opts.uriResolver,r),o=(0,fu.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return F9.call(this,r,e);let i=(0,fu.normalizeId)(n),a=this.refs[i]||this.schemas[i];if(typeof a=="string"){let s=SC.call(this,e,a);return typeof s?.schema!="object"?void 0:F9.call(this,r,s)}if(typeof a?.schema=="object"){if(a.validate||R9.call(this,a),i===(0,fu.normalizeId)(t)){let{schema:s}=a,{schemaId:c}=this.opts,p=s[c];return p&&(o=(0,fu.resolveUrl)(this.opts.uriResolver,o,p)),new u0({schema:s,schemaId:c,root:e,baseId:o})}return F9.call(this,r,a)}}yl.resolveSchema=SC;var bCe=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function F9(e,{baseId:t,schema:r,root:n}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(let s of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,LY.unescapeFragment)(s)];if(c===void 0)return;r=c;let p=typeof r=="object"&&r[this.opts.schemaId];!bCe.has(s)&&p&&(t=(0,fu.resolveUrl)(this.opts.uriResolver,t,p))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,LY.schemaHasRulesButRef)(r,this.RULES)){let s=(0,fu.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=SC.call(this,n,s)}let{schemaId:a}=this.opts;if(i=i||new u0({schema:r,schemaId:a,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var MY=L((Hwt,xCe)=>{xCe.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var $9=L((Zwt,UY)=>{"use strict";var ECe=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),BY=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function L9(e){let t="",r=0,n=0;for(n=0;n=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}var TCe=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function jY(e){return e.length=0,!0}function DCe(e,t,r){if(e.length){let n=L9(e);if(n!=="")t.push(n);else return r.error=!0,!1;e.length=0}return!0}function ACe(e){let t=0,r={error:!1,address:"",zone:""},n=[],o=[],i=!1,a=!1,s=DCe;for(let c=0;c7){r.error=!0;break}c>0&&e[c-1]===":"&&(i=!0),n.push(":");continue}else if(p==="%"){if(!s(o,n,r))break;s=jY}else{o.push(p);continue}}return o.length&&(s===jY?r.zone=o.join(""):a?n.push(o.join("")):n.push(L9(o))),r.address=n.join(""),r}function qY(e){if(wCe(e,":")<2)return{host:e,isIPV6:!1};let t=ACe(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:n}}}function wCe(e,t){let r=0;for(let n=0;n{"use strict";var{isUUID:PCe}=$9(),OCe=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,NCe=["http","https","ws","wss","urn","urn:uuid"];function FCe(e){return NCe.indexOf(e)!==-1}function M9(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function zY(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function VY(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function RCe(e){return e.secure=M9(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function LCe(e){if((e.port===(M9(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function $Ce(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(OCe);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let o=`${n}:${t.nid||e.nid}`,i=j9(o);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function MCe(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),o=`${r}:${t.nid||n}`,i=j9(o);i&&(e=i.serialize(e,t));let a=e,s=e.nss;return a.path=`${n||t.nid}:${s}`,t.skipEscape=!0,a}function jCe(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!PCe(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function BCe(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var JY={scheme:"http",domainHost:!0,parse:zY,serialize:VY},qCe={scheme:"https",domainHost:JY.domainHost,parse:zY,serialize:VY},vC={scheme:"ws",domainHost:!0,parse:RCe,serialize:LCe},UCe={scheme:"wss",domainHost:vC.domainHost,parse:vC.parse,serialize:vC.serialize},zCe={scheme:"urn",parse:$Ce,serialize:MCe,skipNormalize:!0},VCe={scheme:"urn:uuid",parse:jCe,serialize:BCe,skipNormalize:!0},bC={http:JY,https:qCe,ws:vC,wss:UCe,urn:zCe,"urn:uuid":VCe};Object.setPrototypeOf(bC,null);function j9(e){return e&&(bC[e]||bC[e.toLowerCase()])||void 0}KY.exports={wsIsSecure:M9,SCHEMES:bC,isValidSchemeName:FCe,getSchemeHandler:j9}});var WY=L((Qwt,EC)=>{"use strict";var{normalizeIPv6:JCe,removeDotSegments:Nx,recomposeAuthority:KCe,normalizeComponentEncoding:xC,isIPv4:GCe,nonSimpleDomain:HCe}=$9(),{SCHEMES:ZCe,getSchemeHandler:HY}=GY();function WCe(e,t){return typeof e=="string"?e=gp(Xd(e,t),t):typeof e=="object"&&(e=Xd(gp(e,t),t)),e}function QCe(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},o=ZY(Xd(e,n),Xd(t,n),n,!0);return n.skipEscape=!0,gp(o,n)}function ZY(e,t,r,n){let o={};return n||(e=Xd(gp(e,r),r),t=Xd(gp(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=Nx(t.path||""),o.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=Nx(t.path||""),o.query=t.query):(t.path?(t.path[0]==="/"?o.path=Nx(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?o.path="/"+t.path:e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path,o.path=Nx(o.path)),o.query=t.query):(o.path=e.path,t.query!==void 0?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function XCe(e,t,r){return typeof e=="string"?(e=unescape(e),e=gp(xC(Xd(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=gp(xC(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=gp(xC(Xd(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=gp(xC(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function gp(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),o=[],i=HY(n.scheme||r.scheme);i&&i.serialize&&i.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&o.push(r.scheme,":");let a=KCe(r);if(a!==void 0&&(n.reference!=="suffix"&&o.push("//"),o.push(a),r.path&&r.path[0]!=="/"&&o.push("/")),r.path!==void 0){let s=r.path;!n.absolutePath&&(!i||!i.absolutePath)&&(s=Nx(s)),a===void 0&&s[0]==="/"&&s[1]==="/"&&(s="/%2F"+s.slice(2)),o.push(s)}return r.query!==void 0&&o.push("?",r.query),r.fragment!==void 0&&o.push("#",r.fragment),o.join("")}var YCe=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Xd(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},o=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let i=e.match(YCe);if(i){if(n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5]),n.host)if(GCe(n.host)===!1){let c=JCe(n.host);n.host=c.host.toLowerCase(),o=c.isIPV6}else o=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let a=HY(r.scheme||n.scheme);if(!r.unicodeSupport&&(!a||!a.unicodeSupport)&&n.host&&(r.domainHost||a&&a.domainHost)&&o===!1&&HCe(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(s){n.error=n.error||"Host's domain name can not be converted to ASCII: "+s}(!a||a&&!a.skipNormalize)&&(e.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=unescape(n.host))),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),a&&a.parse&&a.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var B9={SCHEMES:ZCe,normalize:WCe,resolve:QCe,resolveComponent:ZY,equal:XCe,serialize:gp,parse:Xd};EC.exports=B9;EC.exports.default=B9;EC.exports.fastUri=B9});var XY=L(q9=>{"use strict";Object.defineProperty(q9,"__esModule",{value:!0});var QY=WY();QY.code='require("ajv/dist/runtime/uri").default';q9.default=QY});var V9=L(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.CodeGen=Ea.Name=Ea.nil=Ea.stringify=Ea.str=Ea._=Ea.KeywordCxt=void 0;var ePe=c0();Object.defineProperty(Ea,"KeywordCxt",{enumerable:!0,get:function(){return ePe.KeywordCxt}});var p0=kr();Object.defineProperty(Ea,"_",{enumerable:!0,get:function(){return p0._}});Object.defineProperty(Ea,"str",{enumerable:!0,get:function(){return p0.str}});Object.defineProperty(Ea,"stringify",{enumerable:!0,get:function(){return p0.stringify}});Object.defineProperty(Ea,"nil",{enumerable:!0,get:function(){return p0.nil}});Object.defineProperty(Ea,"Name",{enumerable:!0,get:function(){return p0.Name}});Object.defineProperty(Ea,"CodeGen",{enumerable:!0,get:function(){return p0.CodeGen}});var tPe=Px(),nee=l0(),rPe=h9(),Fx=Ox(),nPe=kr(),Rx=Ix(),TC=wx(),z9=ln(),YY=MY(),oPe=XY(),oee=(e,t)=>new RegExp(e,t);oee.code="new RegExp";var iPe=["removeAdditional","useDefaults","coerceTypes"],aPe=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),sPe={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},cPe={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},eee=200;function lPe(e){var t,r,n,o,i,a,s,c,p,d,f,m,y,g,S,x,A,I,E,C,F,O,$,N,U;let ge=e.strict,Te=(t=e.code)===null||t===void 0?void 0:t.optimize,ke=Te===!0||Te===void 0?1:Te||0,Ve=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:oee,me=(o=e.uriResolver)!==null&&o!==void 0?o:oPe.default;return{strictSchema:(a=(i=e.strictSchema)!==null&&i!==void 0?i:ge)!==null&&a!==void 0?a:!0,strictNumbers:(c=(s=e.strictNumbers)!==null&&s!==void 0?s:ge)!==null&&c!==void 0?c:!0,strictTypes:(d=(p=e.strictTypes)!==null&&p!==void 0?p:ge)!==null&&d!==void 0?d:"log",strictTuples:(m=(f=e.strictTuples)!==null&&f!==void 0?f:ge)!==null&&m!==void 0?m:"log",strictRequired:(g=(y=e.strictRequired)!==null&&y!==void 0?y:ge)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:ke,regExp:Ve}:{optimize:ke,regExp:Ve},loopRequired:(S=e.loopRequired)!==null&&S!==void 0?S:eee,loopEnum:(x=e.loopEnum)!==null&&x!==void 0?x:eee,meta:(A=e.meta)!==null&&A!==void 0?A:!0,messages:(I=e.messages)!==null&&I!==void 0?I:!0,inlineRefs:(E=e.inlineRefs)!==null&&E!==void 0?E:!0,schemaId:(C=e.schemaId)!==null&&C!==void 0?C:"$id",addUsedSchema:(F=e.addUsedSchema)!==null&&F!==void 0?F:!0,validateSchema:(O=e.validateSchema)!==null&&O!==void 0?O:!0,validateFormats:($=e.validateFormats)!==null&&$!==void 0?$:!0,unicodeRegExp:(N=e.unicodeRegExp)!==null&&N!==void 0?N:!0,int32range:(U=e.int32range)!==null&&U!==void 0?U:!0,uriResolver:me}}var Lx=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...lPe(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new nPe.ValueScope({scope:{},prefixes:aPe,es5:r,lines:n}),this.logger=mPe(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,rPe.getRules)(),tee.call(this,sPe,t,"NOT SUPPORTED"),tee.call(this,cPe,t,"DEPRECATED","warn"),this._metaOpts=_Pe.call(this),t.formats&&pPe.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&dPe.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),uPe.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=YY;n==="id"&&(o={...YY},o.id=o.$id,delete o.$id),r&&t&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let o=n(r);return"$async"in n||(this.errors=n.errors),o}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return o.call(this,t,r);async function o(d,f){await i.call(this,d.$schema);let m=this._addSchema(d,f);return m.validate||a.call(this,m)}async function i(d){d&&!this.getSchema(d)&&await o.call(this,{$ref:d},!0)}async function a(d){try{return this._compileSchemaEnv(d)}catch(f){if(!(f instanceof nee.default))throw f;return s.call(this,f),await c.call(this,f.missingSchema),a.call(this,d)}}function s({missingSchema:d,missingRef:f}){if(this.refs[d])throw new Error(`AnySchema ${d} is loaded but ${f} cannot be resolved`)}async function c(d){let f=await p.call(this,d);this.refs[d]||await i.call(this,f.$schema),this.refs[d]||this.addSchema(f,d,r)}async function p(d){let f=this._loading[d];if(f)return f;try{return await(this._loading[d]=n(d))}finally{delete this._loading[d]}}}addSchema(t,r,n,o=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,o);return this}let i;if(typeof t=="object"){let{schemaId:a}=this.opts;if(i=t[a],i!==void 0&&typeof i!="string")throw new Error(`schema ${a} must be string`)}return r=(0,Rx.normalizeId)(r||i),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,o,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let o=this.validate(n,t);if(!o&&r){let i="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(i);else throw new Error(i)}return o}getSchema(t){let r;for(;typeof(r=ree.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new Fx.SchemaEnv({schema:{},schemaId:n});if(r=Fx.resolveSchema.call(this,o,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=ree.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,Rx.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(yPe.call(this,n,r),!r)return(0,z9.eachItem)(n,i=>U9.call(this,i)),this;SPe.call(this,r);let o={...r,type:(0,TC.getJSONTypes)(r.type),schemaType:(0,TC.getJSONTypes)(r.schemaType)};return(0,z9.eachItem)(n,o.type.length===0?i=>U9.call(this,i,o):i=>o.type.forEach(a=>U9.call(this,i,o,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let o=n.rules.findIndex(i=>i.keyword===t);o>=0&&n.rules.splice(o,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(o=>`${n}${o.instancePath} ${o.message}`).reduce((o,i)=>o+r+i)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let o of r){let i=o.split("/").slice(1),a=t;for(let s of i)a=a[s];for(let s in n){let c=n[s];if(typeof c!="object")continue;let{$data:p}=c.definition,d=a[s];p&&d&&(a[s]=iee(d))}}return t}_removeAllSchemas(t,r){for(let n in t){let o=t[n];(!r||r.test(n))&&(typeof o=="string"?delete t[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete t[n]))}}_addSchema(t,r,n,o=this.opts.validateSchema,i=this.opts.addUsedSchema){let a,{schemaId:s}=this.opts;if(typeof t=="object")a=t[s];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,Rx.normalizeId)(a||n);let p=Rx.getSchemaRefs.call(this,t,n);return c=new Fx.SchemaEnv({schema:t,schemaId:s,meta:r,baseId:n,localRefs:p}),this._cache.set(c.schema,c),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Fx.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{Fx.compileSchema.call(this,t)}finally{this.opts=r}}};Lx.ValidationError=tPe.default;Lx.MissingRefError=nee.default;Ea.default=Lx;function tee(e,t,r,n="error"){for(let o in e){let i=o;i in t&&this.logger[n](`${r}: option ${o}. ${e[i]}`)}}function ree(e){return e=(0,Rx.normalizeId)(e),this.schemas[e]||this.refs[e]}function uPe(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function pPe(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function dPe(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function _Pe(){let e={...this.opts};for(let t of iPe)delete e[t];return e}var fPe={log(){},warn(){},error(){}};function mPe(e){if(e===!1)return fPe;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var hPe=/^[a-z_$][a-z0-9_$:-]*$/i;function yPe(e,t){let{RULES:r}=this;if((0,z9.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!hPe.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function U9(e,t,r){var n;let o=t?.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:i}=this,a=o?i.post:i.rules.find(({type:c})=>c===r);if(a||(a={type:r,rules:[]},i.rules.push(a)),i.keywords[e]=!0,!t)return;let s={keyword:e,definition:{...t,type:(0,TC.getJSONTypes)(t.type),schemaType:(0,TC.getJSONTypes)(t.schemaType)}};t.before?gPe.call(this,a,s,t.before):a.rules.push(s),i.all[e]=s,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function gPe(e,t,r){let n=e.rules.findIndex(o=>o.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function SPe(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=iee(t)),e.validateSchema=this.compile(t,!0))}var vPe={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function iee(e){return{anyOf:[e,vPe]}}});var aee=L(J9=>{"use strict";Object.defineProperty(J9,"__esModule",{value:!0});var bPe={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};J9.default=bPe});var wC=L(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});ky.callRef=ky.getValidate=void 0;var xPe=l0(),see=hl(),Hs=kr(),d0=ml(),cee=Ox(),DC=ln(),EPe={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:i,validateName:a,opts:s,self:c}=n,{root:p}=i;if((r==="#"||r==="#/")&&o===p.baseId)return f();let d=cee.resolveRef.call(c,p,o,r);if(d===void 0)throw new xPe.default(n.opts.uriResolver,o,r);if(d instanceof cee.SchemaEnv)return m(d);return y(d);function f(){if(i===p)return AC(e,a,i,i.$async);let g=t.scopeValue("root",{ref:p});return AC(e,(0,Hs._)`${g}.validate`,p,p.$async)}function m(g){let S=lee(e,g);AC(e,S,g,g.$async)}function y(g){let S=t.scopeValue("schema",s.code.source===!0?{ref:g,code:(0,Hs.stringify)(g)}:{ref:g}),x=t.name("valid"),A=e.subschema({schema:g,dataTypes:[],schemaPath:Hs.nil,topSchemaRef:S,errSchemaPath:r},x);e.mergeEvaluated(A),e.ok(x)}}};function lee(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Hs._)`${r.scopeValue("wrapper",{ref:t})}.validate`}ky.getValidate=lee;function AC(e,t,r,n){let{gen:o,it:i}=e,{allErrors:a,schemaEnv:s,opts:c}=i,p=c.passContext?d0.default.this:Hs.nil;n?d():f();function d(){if(!s.$async)throw new Error("async schema referenced by sync schema");let g=o.let("valid");o.try(()=>{o.code((0,Hs._)`await ${(0,see.callValidateCode)(e,t,p)}`),y(t),a||o.assign(g,!0)},S=>{o.if((0,Hs._)`!(${S} instanceof ${i.ValidationError})`,()=>o.throw(S)),m(S),a||o.assign(g,!1)}),e.ok(g)}function f(){e.result((0,see.callValidateCode)(e,t,p),()=>y(t),()=>m(t))}function m(g){let S=(0,Hs._)`${g}.errors`;o.assign(d0.default.vErrors,(0,Hs._)`${d0.default.vErrors} === null ? ${S} : ${d0.default.vErrors}.concat(${S})`),o.assign(d0.default.errors,(0,Hs._)`${d0.default.vErrors}.length`)}function y(g){var S;if(!i.opts.unevaluated)return;let x=(S=r?.validate)===null||S===void 0?void 0:S.evaluated;if(i.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(i.props=DC.mergeEvaluated.props(o,x.props,i.props));else{let A=o.var("props",(0,Hs._)`${g}.evaluated.props`);i.props=DC.mergeEvaluated.props(o,A,i.props,Hs.Name)}if(i.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(i.items=DC.mergeEvaluated.items(o,x.items,i.items));else{let A=o.var("items",(0,Hs._)`${g}.evaluated.items`);i.items=DC.mergeEvaluated.items(o,A,i.items,Hs.Name)}}}ky.callRef=AC;ky.default=EPe});var G9=L(K9=>{"use strict";Object.defineProperty(K9,"__esModule",{value:!0});var TPe=aee(),DPe=wC(),APe=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",TPe.default,DPe.default];K9.default=APe});var uee=L(H9=>{"use strict";Object.defineProperty(H9,"__esModule",{value:!0});var IC=kr(),Gf=IC.operators,kC={maximum:{okStr:"<=",ok:Gf.LTE,fail:Gf.GT},minimum:{okStr:">=",ok:Gf.GTE,fail:Gf.LT},exclusiveMaximum:{okStr:"<",ok:Gf.LT,fail:Gf.GTE},exclusiveMinimum:{okStr:">",ok:Gf.GT,fail:Gf.LTE}},wPe={message:({keyword:e,schemaCode:t})=>(0,IC.str)`must be ${kC[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,IC._)`{comparison: ${kC[e].okStr}, limit: ${t}}`},IPe={keyword:Object.keys(kC),type:"number",schemaType:"number",$data:!0,error:wPe,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,IC._)`${r} ${kC[t].fail} ${n} || isNaN(${r})`)}};H9.default=IPe});var pee=L(Z9=>{"use strict";Object.defineProperty(Z9,"__esModule",{value:!0});var $x=kr(),kPe={message:({schemaCode:e})=>(0,$x.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,$x._)`{multipleOf: ${e}}`},CPe={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:kPe,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,a=t.let("res"),s=i?(0,$x._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${i}`:(0,$x._)`${a} !== parseInt(${a})`;e.fail$data((0,$x._)`(${n} === 0 || (${a} = ${r}/${n}, ${s}))`)}};Z9.default=CPe});var _ee=L(W9=>{"use strict";Object.defineProperty(W9,"__esModule",{value:!0});function dee(e){let t=e.length,r=0,n=0,o;for(;n=55296&&o<=56319&&n{"use strict";Object.defineProperty(Q9,"__esModule",{value:!0});var Cy=kr(),PPe=ln(),OPe=_ee(),NPe={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Cy.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Cy._)`{limit: ${e}}`},FPe={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:NPe,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?Cy.operators.GT:Cy.operators.LT,a=o.opts.unicode===!1?(0,Cy._)`${r}.length`:(0,Cy._)`${(0,PPe.useFunc)(e.gen,OPe.default)}(${r})`;e.fail$data((0,Cy._)`${a} ${i} ${n}`)}};Q9.default=FPe});var mee=L(X9=>{"use strict";Object.defineProperty(X9,"__esModule",{value:!0});var RPe=hl(),LPe=ln(),_0=kr(),$Pe={message:({schemaCode:e})=>(0,_0.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,_0._)`{pattern: ${e}}`},MPe={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:$Pe,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:a}=e,s=a.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=a.opts.code,p=c.code==="new RegExp"?(0,_0._)`new RegExp`:(0,LPe.useFunc)(t,c),d=t.let("valid");t.try(()=>t.assign(d,(0,_0._)`${p}(${i}, ${s}).test(${r})`),()=>t.assign(d,!1)),e.fail$data((0,_0._)`!${d}`)}else{let c=(0,RPe.usePattern)(e,o);e.fail$data((0,_0._)`!${c}.test(${r})`)}}};X9.default=MPe});var hee=L(Y9=>{"use strict";Object.defineProperty(Y9,"__esModule",{value:!0});var Mx=kr(),jPe={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Mx.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Mx._)`{limit: ${e}}`},BPe={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:jPe,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?Mx.operators.GT:Mx.operators.LT;e.fail$data((0,Mx._)`Object.keys(${r}).length ${o} ${n}`)}};Y9.default=BPe});var yee=L(e5=>{"use strict";Object.defineProperty(e5,"__esModule",{value:!0});var jx=hl(),Bx=kr(),qPe=ln(),UPe={message:({params:{missingProperty:e}})=>(0,Bx.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Bx._)`{missingProperty: ${e}}`},zPe={keyword:"required",type:"object",schemaType:"array",$data:!0,error:UPe,code(e){let{gen:t,schema:r,schemaCode:n,data:o,$data:i,it:a}=e,{opts:s}=a;if(!i&&r.length===0)return;let c=r.length>=s.loopRequired;if(a.allErrors?p():d(),s.strictRequired){let y=e.parentSchema.properties,{definedProperties:g}=e.it;for(let S of r)if(y?.[S]===void 0&&!g.has(S)){let x=a.schemaEnv.baseId+a.errSchemaPath,A=`required property "${S}" is not defined at "${x}" (strictRequired)`;(0,qPe.checkStrictMode)(a,A,a.opts.strictRequired)}}function p(){if(c||i)e.block$data(Bx.nil,f);else for(let y of r)(0,jx.checkReportMissingProp)(e,y)}function d(){let y=t.let("missing");if(c||i){let g=t.let("valid",!0);e.block$data(g,()=>m(y,g)),e.ok(g)}else t.if((0,jx.checkMissingProp)(e,r,y)),(0,jx.reportMissingProp)(e,y),t.else()}function f(){t.forOf("prop",n,y=>{e.setParams({missingProperty:y}),t.if((0,jx.noPropertyInData)(t,o,y,s.ownProperties),()=>e.error())})}function m(y,g){e.setParams({missingProperty:y}),t.forOf(y,n,()=>{t.assign(g,(0,jx.propertyInData)(t,o,y,s.ownProperties)),t.if((0,Bx.not)(g),()=>{e.error(),t.break()})},Bx.nil)}}};e5.default=zPe});var gee=L(t5=>{"use strict";Object.defineProperty(t5,"__esModule",{value:!0});var qx=kr(),VPe={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,qx.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,qx._)`{limit: ${e}}`},JPe={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:VPe,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?qx.operators.GT:qx.operators.LT;e.fail$data((0,qx._)`${r}.length ${o} ${n}`)}};t5.default=JPe});var CC=L(r5=>{"use strict";Object.defineProperty(r5,"__esModule",{value:!0});var See=T9();See.code='require("ajv/dist/runtime/equal").default';r5.default=See});var vee=L(o5=>{"use strict";Object.defineProperty(o5,"__esModule",{value:!0});var n5=wx(),Ta=kr(),KPe=ln(),GPe=CC(),HPe={message:({params:{i:e,j:t}})=>(0,Ta.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Ta._)`{i: ${e}, j: ${t}}`},ZPe={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:HPe,code(e){let{gen:t,data:r,$data:n,schema:o,parentSchema:i,schemaCode:a,it:s}=e;if(!n&&!o)return;let c=t.let("valid"),p=i.items?(0,n5.getSchemaTypes)(i.items):[];e.block$data(c,d,(0,Ta._)`${a} === false`),e.ok(c);function d(){let g=t.let("i",(0,Ta._)`${r}.length`),S=t.let("j");e.setParams({i:g,j:S}),t.assign(c,!0),t.if((0,Ta._)`${g} > 1`,()=>(f()?m:y)(g,S))}function f(){return p.length>0&&!p.some(g=>g==="object"||g==="array")}function m(g,S){let x=t.name("item"),A=(0,n5.checkDataTypes)(p,x,s.opts.strictNumbers,n5.DataType.Wrong),I=t.const("indices",(0,Ta._)`{}`);t.for((0,Ta._)`;${g}--;`,()=>{t.let(x,(0,Ta._)`${r}[${g}]`),t.if(A,(0,Ta._)`continue`),p.length>1&&t.if((0,Ta._)`typeof ${x} == "string"`,(0,Ta._)`${x} += "_"`),t.if((0,Ta._)`typeof ${I}[${x}] == "number"`,()=>{t.assign(S,(0,Ta._)`${I}[${x}]`),e.error(),t.assign(c,!1).break()}).code((0,Ta._)`${I}[${x}] = ${g}`)})}function y(g,S){let x=(0,KPe.useFunc)(t,GPe.default),A=t.name("outer");t.label(A).for((0,Ta._)`;${g}--;`,()=>t.for((0,Ta._)`${S} = ${g}; ${S}--;`,()=>t.if((0,Ta._)`${x}(${r}[${g}], ${r}[${S}])`,()=>{e.error(),t.assign(c,!1).break(A)})))}}};o5.default=ZPe});var bee=L(a5=>{"use strict";Object.defineProperty(a5,"__esModule",{value:!0});var i5=kr(),WPe=ln(),QPe=CC(),XPe={message:"must be equal to constant",params:({schemaCode:e})=>(0,i5._)`{allowedValue: ${e}}`},YPe={keyword:"const",$data:!0,error:XPe,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,i5._)`!${(0,WPe.useFunc)(t,QPe.default)}(${r}, ${o})`):e.fail((0,i5._)`${i} !== ${r}`)}};a5.default=YPe});var xee=L(s5=>{"use strict";Object.defineProperty(s5,"__esModule",{value:!0});var Ux=kr(),e6e=ln(),t6e=CC(),r6e={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Ux._)`{allowedValues: ${e}}`},n6e={keyword:"enum",schemaType:"array",$data:!0,error:r6e,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:a}=e;if(!n&&o.length===0)throw new Error("enum must have non-empty array");let s=o.length>=a.opts.loopEnum,c,p=()=>c??(c=(0,e6e.useFunc)(t,t6e.default)),d;if(s||n)d=t.let("valid"),e.block$data(d,f);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let y=t.const("vSchema",i);d=(0,Ux.or)(...o.map((g,S)=>m(y,S)))}e.pass(d);function f(){t.assign(d,!1),t.forOf("v",i,y=>t.if((0,Ux._)`${p()}(${r}, ${y})`,()=>t.assign(d,!0).break()))}function m(y,g){let S=o[g];return typeof S=="object"&&S!==null?(0,Ux._)`${p()}(${r}, ${y}[${g}])`:(0,Ux._)`${r} === ${S}`}}};s5.default=n6e});var l5=L(c5=>{"use strict";Object.defineProperty(c5,"__esModule",{value:!0});var o6e=uee(),i6e=pee(),a6e=fee(),s6e=mee(),c6e=hee(),l6e=yee(),u6e=gee(),p6e=vee(),d6e=bee(),_6e=xee(),f6e=[o6e.default,i6e.default,a6e.default,s6e.default,c6e.default,l6e.default,u6e.default,p6e.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d6e.default,_6e.default];c5.default=f6e});var p5=L(zx=>{"use strict";Object.defineProperty(zx,"__esModule",{value:!0});zx.validateAdditionalItems=void 0;var Py=kr(),u5=ln(),m6e={message:({params:{len:e}})=>(0,Py.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Py._)`{limit: ${e}}`},h6e={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:m6e,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,u5.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Eee(e,n)}};function Eee(e,t){let{gen:r,schema:n,data:o,keyword:i,it:a}=e;a.items=!0;let s=r.const("len",(0,Py._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Py._)`${s} <= ${t.length}`);else if(typeof n=="object"&&!(0,u5.alwaysValidSchema)(a,n)){let p=r.var("valid",(0,Py._)`${s} <= ${t.length}`);r.if((0,Py.not)(p),()=>c(p)),e.ok(p)}function c(p){r.forRange("i",t.length,s,d=>{e.subschema({keyword:i,dataProp:d,dataPropType:u5.Type.Num},p),a.allErrors||r.if((0,Py.not)(p),()=>r.break())})}}zx.validateAdditionalItems=Eee;zx.default=h6e});var d5=L(Vx=>{"use strict";Object.defineProperty(Vx,"__esModule",{value:!0});Vx.validateTuple=void 0;var Tee=kr(),PC=ln(),y6e=hl(),g6e={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Dee(e,"additionalItems",t);r.items=!0,!(0,PC.alwaysValidSchema)(r,t)&&e.ok((0,y6e.validateArray)(e))}};function Dee(e,t,r=e.schema){let{gen:n,parentSchema:o,data:i,keyword:a,it:s}=e;d(o),s.opts.unevaluated&&r.length&&s.items!==!0&&(s.items=PC.mergeEvaluated.items(n,r.length,s.items));let c=n.name("valid"),p=n.const("len",(0,Tee._)`${i}.length`);r.forEach((f,m)=>{(0,PC.alwaysValidSchema)(s,f)||(n.if((0,Tee._)`${p} > ${m}`,()=>e.subschema({keyword:a,schemaProp:m,dataProp:m},c)),e.ok(c))});function d(f){let{opts:m,errSchemaPath:y}=s,g=r.length,S=g===f.minItems&&(g===f.maxItems||f[t]===!1);if(m.strictTuples&&!S){let x=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${y}"`;(0,PC.checkStrictMode)(s,x,m.strictTuples)}}}Vx.validateTuple=Dee;Vx.default=g6e});var Aee=L(_5=>{"use strict";Object.defineProperty(_5,"__esModule",{value:!0});var S6e=d5(),v6e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,S6e.validateTuple)(e,"items")};_5.default=v6e});var Iee=L(f5=>{"use strict";Object.defineProperty(f5,"__esModule",{value:!0});var wee=kr(),b6e=ln(),x6e=hl(),E6e=p5(),T6e={message:({params:{len:e}})=>(0,wee.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,wee._)`{limit: ${e}}`},D6e={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:T6e,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,b6e.alwaysValidSchema)(n,t)&&(o?(0,E6e.validateAdditionalItems)(e,o):e.ok((0,x6e.validateArray)(e)))}};f5.default=D6e});var kee=L(m5=>{"use strict";Object.defineProperty(m5,"__esModule",{value:!0});var gl=kr(),OC=ln(),A6e={message:({params:{min:e,max:t}})=>t===void 0?(0,gl.str)`must contain at least ${e} valid item(s)`:(0,gl.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,gl._)`{minContains: ${e}}`:(0,gl._)`{minContains: ${e}, maxContains: ${t}}`},w6e={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:A6e,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e,a,s,{minContains:c,maxContains:p}=n;i.opts.next?(a=c===void 0?1:c,s=p):a=1;let d=t.const("len",(0,gl._)`${o}.length`);if(e.setParams({min:a,max:s}),s===void 0&&a===0){(0,OC.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&a>s){(0,OC.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,OC.alwaysValidSchema)(i,r)){let S=(0,gl._)`${d} >= ${a}`;s!==void 0&&(S=(0,gl._)`${S} && ${d} <= ${s}`),e.pass(S);return}i.items=!0;let f=t.name("valid");s===void 0&&a===1?y(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),s!==void 0&&t.if((0,gl._)`${o}.length > 0`,m)):(t.let(f,!1),m()),e.result(f,()=>e.reset());function m(){let S=t.name("_valid"),x=t.let("count",0);y(S,()=>t.if(S,()=>g(x)))}function y(S,x){t.forRange("i",0,d,A=>{e.subschema({keyword:"contains",dataProp:A,dataPropType:OC.Type.Num,compositeRule:!0},S),x()})}function g(S){t.code((0,gl._)`${S}++`),s===void 0?t.if((0,gl._)`${S} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,gl._)`${S} > ${s}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,gl._)`${S} >= ${a}`,()=>t.assign(f,!0)))}}};m5.default=w6e});var NC=L(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.validateSchemaDeps=Sp.validatePropertyDeps=Sp.error=void 0;var h5=kr(),I6e=ln(),Jx=hl();Sp.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,h5.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,h5._)`{property: ${e}, + missingProperty: ${n}, + depsCount: ${t}, + deps: ${r}}`};var k6e={keyword:"dependencies",type:"object",schemaType:"object",error:Sp.error,code(e){let[t,r]=C6e(e);Cee(e,t),Pee(e,r)}};function C6e({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let o=Array.isArray(e[n])?t:r;o[n]=e[n]}return[t,r]}function Cee(e,t=e.schema){let{gen:r,data:n,it:o}=e;if(Object.keys(t).length===0)return;let i=r.let("missing");for(let a in t){let s=t[a];if(s.length===0)continue;let c=(0,Jx.propertyInData)(r,n,a,o.opts.ownProperties);e.setParams({property:a,depsCount:s.length,deps:s.join(", ")}),o.allErrors?r.if(c,()=>{for(let p of s)(0,Jx.checkReportMissingProp)(e,p)}):(r.if((0,h5._)`${c} && (${(0,Jx.checkMissingProp)(e,s,i)})`),(0,Jx.reportMissingProp)(e,i),r.else())}}Sp.validatePropertyDeps=Cee;function Pee(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,a=r.name("valid");for(let s in t)(0,I6e.alwaysValidSchema)(i,t[s])||(r.if((0,Jx.propertyInData)(r,n,s,i.opts.ownProperties),()=>{let c=e.subschema({keyword:o,schemaProp:s},a);e.mergeValidEvaluated(c,a)},()=>r.var(a,!0)),e.ok(a))}Sp.validateSchemaDeps=Pee;Sp.default=k6e});var Nee=L(y5=>{"use strict";Object.defineProperty(y5,"__esModule",{value:!0});var Oee=kr(),P6e=ln(),O6e={message:"property name must be valid",params:({params:e})=>(0,Oee._)`{propertyName: ${e.propertyName}}`},N6e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:O6e,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,P6e.alwaysValidSchema)(o,r))return;let i=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},i),t.if((0,Oee.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};y5.default=N6e});var S5=L(g5=>{"use strict";Object.defineProperty(g5,"__esModule",{value:!0});var FC=hl(),mu=kr(),F6e=ml(),RC=ln(),R6e={message:"must NOT have additional properties",params:({params:e})=>(0,mu._)`{additionalProperty: ${e.additionalProperty}}`},L6e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:R6e,code(e){let{gen:t,schema:r,parentSchema:n,data:o,errsCount:i,it:a}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:s,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&(0,RC.alwaysValidSchema)(a,r))return;let p=(0,FC.allSchemaProperties)(n.properties),d=(0,FC.allSchemaProperties)(n.patternProperties);f(),e.ok((0,mu._)`${i} === ${F6e.default.errors}`);function f(){t.forIn("key",o,x=>{!p.length&&!d.length?g(x):t.if(m(x),()=>g(x))})}function m(x){let A;if(p.length>8){let I=(0,RC.schemaRefOrVal)(a,n.properties,"properties");A=(0,FC.isOwnProperty)(t,I,x)}else p.length?A=(0,mu.or)(...p.map(I=>(0,mu._)`${x} === ${I}`)):A=mu.nil;return d.length&&(A=(0,mu.or)(A,...d.map(I=>(0,mu._)`${(0,FC.usePattern)(e,I)}.test(${x})`))),(0,mu.not)(A)}function y(x){t.code((0,mu._)`delete ${o}[${x}]`)}function g(x){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){y(x);return}if(r===!1){e.setParams({additionalProperty:x}),e.error(),s||t.break();return}if(typeof r=="object"&&!(0,RC.alwaysValidSchema)(a,r)){let A=t.name("valid");c.removeAdditional==="failing"?(S(x,A,!1),t.if((0,mu.not)(A),()=>{e.reset(),y(x)})):(S(x,A),s||t.if((0,mu.not)(A),()=>t.break()))}}function S(x,A,I){let E={keyword:"additionalProperties",dataProp:x,dataPropType:RC.Type.Str};I===!1&&Object.assign(E,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(E,A)}}};g5.default=L6e});var Lee=L(b5=>{"use strict";Object.defineProperty(b5,"__esModule",{value:!0});var $6e=c0(),Fee=hl(),v5=ln(),Ree=S5(),M6e={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e;i.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Ree.default.code(new $6e.KeywordCxt(i,Ree.default,"additionalProperties"));let a=(0,Fee.allSchemaProperties)(r);for(let f of a)i.definedProperties.add(f);i.opts.unevaluated&&a.length&&i.props!==!0&&(i.props=v5.mergeEvaluated.props(t,(0,v5.toHash)(a),i.props));let s=a.filter(f=>!(0,v5.alwaysValidSchema)(i,r[f]));if(s.length===0)return;let c=t.name("valid");for(let f of s)p(f)?d(f):(t.if((0,Fee.propertyInData)(t,o,f,i.opts.ownProperties)),d(f),i.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(c);function p(f){return i.opts.useDefaults&&!i.compositeRule&&r[f].default!==void 0}function d(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}}};b5.default=M6e});var Bee=L(x5=>{"use strict";Object.defineProperty(x5,"__esModule",{value:!0});var $ee=hl(),LC=kr(),Mee=ln(),jee=ln(),j6e={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:o,it:i}=e,{opts:a}=i,s=(0,$ee.allSchemaProperties)(r),c=s.filter(S=>(0,Mee.alwaysValidSchema)(i,r[S]));if(s.length===0||c.length===s.length&&(!i.opts.unevaluated||i.props===!0))return;let p=a.strictSchema&&!a.allowMatchingProperties&&o.properties,d=t.name("valid");i.props!==!0&&!(i.props instanceof LC.Name)&&(i.props=(0,jee.evaluatedPropsToName)(t,i.props));let{props:f}=i;m();function m(){for(let S of s)p&&y(S),i.allErrors?g(S):(t.var(d,!0),g(S),t.if(d))}function y(S){for(let x in p)new RegExp(S).test(x)&&(0,Mee.checkStrictMode)(i,`property ${x} matches pattern ${S} (use allowMatchingProperties)`)}function g(S){t.forIn("key",n,x=>{t.if((0,LC._)`${(0,$ee.usePattern)(e,S)}.test(${x})`,()=>{let A=c.includes(S);A||e.subschema({keyword:"patternProperties",schemaProp:S,dataProp:x,dataPropType:jee.Type.Str},d),i.opts.unevaluated&&f!==!0?t.assign((0,LC._)`${f}[${x}]`,!0):!A&&!i.allErrors&&t.if((0,LC.not)(d),()=>t.break())})})}}};x5.default=j6e});var qee=L(E5=>{"use strict";Object.defineProperty(E5,"__esModule",{value:!0});var B6e=ln(),q6e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,B6e.alwaysValidSchema)(n,r)){e.fail();return}let o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};E5.default=q6e});var Uee=L(T5=>{"use strict";Object.defineProperty(T5,"__esModule",{value:!0});var U6e=hl(),z6e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:U6e.validateUnion,error:{message:"must match a schema in anyOf"}};T5.default=z6e});var zee=L(D5=>{"use strict";Object.defineProperty(D5,"__esModule",{value:!0});var $C=kr(),V6e=ln(),J6e={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,$C._)`{passingSchemas: ${e.passing}}`},K6e={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:J6e,code(e){let{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let i=r,a=t.let("valid",!1),s=t.let("passing",null),c=t.name("_valid");e.setParams({passing:s}),t.block(p),e.result(a,()=>e.reset(),()=>e.error(!0));function p(){i.forEach((d,f)=>{let m;(0,V6e.alwaysValidSchema)(o,d)?t.var(c,!0):m=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&t.if((0,$C._)`${c} && ${a}`).assign(a,!1).assign(s,(0,$C._)`[${s}, ${f}]`).else(),t.if(c,()=>{t.assign(a,!0),t.assign(s,f),m&&e.mergeEvaluated(m,$C.Name)})})}}};D5.default=K6e});var Vee=L(A5=>{"use strict";Object.defineProperty(A5,"__esModule",{value:!0});var G6e=ln(),H6e={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let o=t.name("valid");r.forEach((i,a)=>{if((0,G6e.alwaysValidSchema)(n,i))return;let s=e.subschema({keyword:"allOf",schemaProp:a},o);e.ok(o),e.mergeEvaluated(s)})}};A5.default=H6e});var Gee=L(w5=>{"use strict";Object.defineProperty(w5,"__esModule",{value:!0});var MC=kr(),Kee=ln(),Z6e={message:({params:e})=>(0,MC.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,MC._)`{failingKeyword: ${e.ifClause}}`},W6e={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Z6e,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Kee.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=Jee(n,"then"),i=Jee(n,"else");if(!o&&!i)return;let a=t.let("valid",!0),s=t.name("_valid");if(c(),e.reset(),o&&i){let d=t.let("ifClause");e.setParams({ifClause:d}),t.if(s,p("then",d),p("else",d))}else o?t.if(s,p("then")):t.if((0,MC.not)(s),p("else"));e.pass(a,()=>e.error(!0));function c(){let d=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(d)}function p(d,f){return()=>{let m=e.subschema({keyword:d},s);t.assign(a,s),e.mergeValidEvaluated(m,a),f?t.assign(f,(0,MC._)`${d}`):e.setParams({ifClause:d})}}}};function Jee(e,t){let r=e.schema[t];return r!==void 0&&!(0,Kee.alwaysValidSchema)(e,r)}w5.default=W6e});var Hee=L(I5=>{"use strict";Object.defineProperty(I5,"__esModule",{value:!0});var Q6e=ln(),X6e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,Q6e.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};I5.default=X6e});var C5=L(k5=>{"use strict";Object.defineProperty(k5,"__esModule",{value:!0});var Y6e=p5(),e3e=Aee(),t3e=d5(),r3e=Iee(),n3e=kee(),o3e=NC(),i3e=Nee(),a3e=S5(),s3e=Lee(),c3e=Bee(),l3e=qee(),u3e=Uee(),p3e=zee(),d3e=Vee(),_3e=Gee(),f3e=Hee();function m3e(e=!1){let t=[l3e.default,u3e.default,p3e.default,d3e.default,_3e.default,f3e.default,i3e.default,a3e.default,o3e.default,s3e.default,c3e.default];return e?t.push(e3e.default,r3e.default):t.push(Y6e.default,t3e.default),t.push(n3e.default),t}k5.default=m3e});var O5=L(Kx=>{"use strict";Object.defineProperty(Kx,"__esModule",{value:!0});Kx.dynamicAnchor=void 0;var P5=kr(),h3e=ml(),Zee=Ox(),y3e=wC(),g3e={keyword:"$dynamicAnchor",schemaType:"string",code:e=>Wee(e,e.schema)};function Wee(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let o=(0,P5._)`${h3e.default.dynamicAnchors}${(0,P5.getProperty)(t)}`,i=n.errSchemaPath==="#"?n.validateName:S3e(e);r.if((0,P5._)`!${o}`,()=>r.assign(o,i))}Kx.dynamicAnchor=Wee;function S3e(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:o,baseId:i,localRefs:a,meta:s}=t.root,{schemaId:c}=n.opts,p=new Zee.SchemaEnv({schema:r,schemaId:c,root:o,baseId:i,localRefs:a,meta:s});return Zee.compileSchema.call(n,p),(0,y3e.getValidate)(e,p)}Kx.default=g3e});var N5=L(Gx=>{"use strict";Object.defineProperty(Gx,"__esModule",{value:!0});Gx.dynamicRef=void 0;var Qee=kr(),v3e=ml(),Xee=wC(),b3e={keyword:"$dynamicRef",schemaType:"string",code:e=>Yee(e,e.schema)};function Yee(e,t){let{gen:r,keyword:n,it:o}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let i=t.slice(1);if(o.allErrors)a();else{let c=r.let("valid",!1);a(c),e.ok(c)}function a(c){if(o.schemaEnv.root.dynamicAnchors[i]){let p=r.let("_v",(0,Qee._)`${v3e.default.dynamicAnchors}${(0,Qee.getProperty)(i)}`);r.if(p,s(p,c),s(o.validateName,c))}else s(o.validateName,c)()}function s(c,p){return p?()=>r.block(()=>{(0,Xee.callRef)(e,c),r.let(p,!0)}):()=>(0,Xee.callRef)(e,c)}}Gx.dynamicRef=Yee;Gx.default=b3e});var ete=L(F5=>{"use strict";Object.defineProperty(F5,"__esModule",{value:!0});var x3e=O5(),E3e=ln(),T3e={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,x3e.dynamicAnchor)(e,""):(0,E3e.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};F5.default=T3e});var tte=L(R5=>{"use strict";Object.defineProperty(R5,"__esModule",{value:!0});var D3e=N5(),A3e={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,D3e.dynamicRef)(e,e.schema)};R5.default=A3e});var rte=L(L5=>{"use strict";Object.defineProperty(L5,"__esModule",{value:!0});var w3e=O5(),I3e=N5(),k3e=ete(),C3e=tte(),P3e=[w3e.default,I3e.default,k3e.default,C3e.default];L5.default=P3e});var ote=L($5=>{"use strict";Object.defineProperty($5,"__esModule",{value:!0});var nte=NC(),O3e={keyword:"dependentRequired",type:"object",schemaType:"object",error:nte.error,code:e=>(0,nte.validatePropertyDeps)(e)};$5.default=O3e});var ite=L(M5=>{"use strict";Object.defineProperty(M5,"__esModule",{value:!0});var N3e=NC(),F3e={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,N3e.validateSchemaDeps)(e)};M5.default=F3e});var ate=L(j5=>{"use strict";Object.defineProperty(j5,"__esModule",{value:!0});var R3e=ln(),L3e={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,R3e.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};j5.default=L3e});var ste=L(B5=>{"use strict";Object.defineProperty(B5,"__esModule",{value:!0});var $3e=ote(),M3e=ite(),j3e=ate(),B3e=[$3e.default,M3e.default,j3e.default];B5.default=B3e});var lte=L(q5=>{"use strict";Object.defineProperty(q5,"__esModule",{value:!0});var Hf=kr(),cte=ln(),q3e=ml(),U3e={message:"must NOT have unevaluated properties",params:({params:e})=>(0,Hf._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},z3e={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:U3e,code(e){let{gen:t,schema:r,data:n,errsCount:o,it:i}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:a,props:s}=i;s instanceof Hf.Name?t.if((0,Hf._)`${s} !== true`,()=>t.forIn("key",n,f=>t.if(p(s,f),()=>c(f)))):s!==!0&&t.forIn("key",n,f=>s===void 0?c(f):t.if(d(s,f),()=>c(f))),i.props=!0,e.ok((0,Hf._)`${o} === ${q3e.default.errors}`);function c(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,cte.alwaysValidSchema)(i,r)){let m=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:cte.Type.Str},m),a||t.if((0,Hf.not)(m),()=>t.break())}}function p(f,m){return(0,Hf._)`!${f} || !${f}[${m}]`}function d(f,m){let y=[];for(let g in f)f[g]===!0&&y.push((0,Hf._)`${m} !== ${g}`);return(0,Hf.and)(...y)}}};q5.default=z3e});var pte=L(U5=>{"use strict";Object.defineProperty(U5,"__esModule",{value:!0});var Oy=kr(),ute=ln(),V3e={message:({params:{len:e}})=>(0,Oy.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Oy._)`{limit: ${e}}`},J3e={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:V3e,code(e){let{gen:t,schema:r,data:n,it:o}=e,i=o.items||0;if(i===!0)return;let a=t.const("len",(0,Oy._)`${n}.length`);if(r===!1)e.setParams({len:i}),e.fail((0,Oy._)`${a} > ${i}`);else if(typeof r=="object"&&!(0,ute.alwaysValidSchema)(o,r)){let c=t.var("valid",(0,Oy._)`${a} <= ${i}`);t.if((0,Oy.not)(c),()=>s(c,i)),e.ok(c)}o.items=!0;function s(c,p){t.forRange("i",p,a,d=>{e.subschema({keyword:"unevaluatedItems",dataProp:d,dataPropType:ute.Type.Num},c),o.allErrors||t.if((0,Oy.not)(c),()=>t.break())})}}};U5.default=J3e});var dte=L(z5=>{"use strict";Object.defineProperty(z5,"__esModule",{value:!0});var K3e=lte(),G3e=pte(),H3e=[K3e.default,G3e.default];z5.default=H3e});var _te=L(V5=>{"use strict";Object.defineProperty(V5,"__esModule",{value:!0});var Ii=kr(),Z3e={message:({schemaCode:e})=>(0,Ii.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ii._)`{format: ${e}}`},W3e={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Z3e,code(e,t){let{gen:r,data:n,$data:o,schema:i,schemaCode:a,it:s}=e,{opts:c,errSchemaPath:p,schemaEnv:d,self:f}=s;if(!c.validateFormats)return;o?m():y();function m(){let g=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),S=r.const("fDef",(0,Ii._)`${g}[${a}]`),x=r.let("fType"),A=r.let("format");r.if((0,Ii._)`typeof ${S} == "object" && !(${S} instanceof RegExp)`,()=>r.assign(x,(0,Ii._)`${S}.type || "string"`).assign(A,(0,Ii._)`${S}.validate`),()=>r.assign(x,(0,Ii._)`"string"`).assign(A,S)),e.fail$data((0,Ii.or)(I(),E()));function I(){return c.strictSchema===!1?Ii.nil:(0,Ii._)`${a} && !${A}`}function E(){let C=d.$async?(0,Ii._)`(${S}.async ? await ${A}(${n}) : ${A}(${n}))`:(0,Ii._)`${A}(${n})`,F=(0,Ii._)`(typeof ${A} == "function" ? ${C} : ${A}.test(${n}))`;return(0,Ii._)`${A} && ${A} !== true && ${x} === ${t} && !${F}`}}function y(){let g=f.formats[i];if(!g){I();return}if(g===!0)return;let[S,x,A]=E(g);S===t&&e.pass(C());function I(){if(c.strictSchema===!1){f.logger.warn(F());return}throw new Error(F());function F(){return`unknown format "${i}" ignored in schema at path "${p}"`}}function E(F){let O=F instanceof RegExp?(0,Ii.regexpCode)(F):c.code.formats?(0,Ii._)`${c.code.formats}${(0,Ii.getProperty)(i)}`:void 0,$=r.scopeValue("formats",{key:i,ref:F,code:O});return typeof F=="object"&&!(F instanceof RegExp)?[F.type||"string",F.validate,(0,Ii._)`${$}.validate`]:["string",F,$]}function C(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!d.$async)throw new Error("async format in sync schema");return(0,Ii._)`await ${A}(${n})`}return typeof x=="function"?(0,Ii._)`${A}(${n})`:(0,Ii._)`${A}.test(${n})`}}}};V5.default=W3e});var K5=L(J5=>{"use strict";Object.defineProperty(J5,"__esModule",{value:!0});var Q3e=_te(),X3e=[Q3e.default];J5.default=X3e});var G5=L(f0=>{"use strict";Object.defineProperty(f0,"__esModule",{value:!0});f0.contentVocabulary=f0.metadataVocabulary=void 0;f0.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];f0.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var mte=L(H5=>{"use strict";Object.defineProperty(H5,"__esModule",{value:!0});var Y3e=G9(),eOe=l5(),tOe=C5(),rOe=rte(),nOe=ste(),oOe=dte(),iOe=K5(),fte=G5(),aOe=[rOe.default,Y3e.default,eOe.default,(0,tOe.default)(!0),iOe.default,fte.metadataVocabulary,fte.contentVocabulary,nOe.default,oOe.default];H5.default=aOe});var yte=L(jC=>{"use strict";Object.defineProperty(jC,"__esModule",{value:!0});jC.DiscrError=void 0;var hte;(function(e){e.Tag="tag",e.Mapping="mapping"})(hte||(jC.DiscrError=hte={}))});var Q5=L(W5=>{"use strict";Object.defineProperty(W5,"__esModule",{value:!0});var m0=kr(),Z5=yte(),gte=Ox(),sOe=l0(),cOe=ln(),lOe={message:({params:{discrError:e,tagName:t}})=>e===Z5.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,m0._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},uOe={keyword:"discriminator",type:"object",schemaType:"object",error:lOe,code(e){let{gen:t,data:r,schema:n,parentSchema:o,it:i}=e,{oneOf:a}=o;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");let s=n.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),p=t.const("tag",(0,m0._)`${r}${(0,m0.getProperty)(s)}`);t.if((0,m0._)`typeof ${p} == "string"`,()=>d(),()=>e.error(!1,{discrError:Z5.DiscrError.Tag,tag:p,tagName:s})),e.ok(c);function d(){let y=m();t.if(!1);for(let g in y)t.elseIf((0,m0._)`${p} === ${g}`),t.assign(c,f(y[g]));t.else(),e.error(!1,{discrError:Z5.DiscrError.Mapping,tag:p,tagName:s}),t.endIf()}function f(y){let g=t.name("valid"),S=e.subschema({keyword:"oneOf",schemaProp:y},g);return e.mergeEvaluated(S,m0.Name),g}function m(){var y;let g={},S=A(o),x=!0;for(let C=0;C{pOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var vte=L((XIt,dOe)=>{dOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var bte=L((YIt,_Oe)=>{_Oe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var xte=L((ekt,fOe)=>{fOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var Ete=L((tkt,mOe)=>{mOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var Tte=L((rkt,hOe)=>{hOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var Dte=L((nkt,yOe)=>{yOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var Ate=L((okt,gOe)=>{gOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var wte=L(X5=>{"use strict";Object.defineProperty(X5,"__esModule",{value:!0});var SOe=Ste(),vOe=vte(),bOe=bte(),xOe=xte(),EOe=Ete(),TOe=Tte(),DOe=Dte(),AOe=Ate(),wOe=["/properties"];function IOe(e){return[SOe,vOe,bOe,xOe,EOe,t(this,TOe),DOe,t(this,AOe)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,wOe):n}}X5.default=IOe});var Ite=L((Jo,eL)=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.MissingRefError=Jo.ValidationError=Jo.CodeGen=Jo.Name=Jo.nil=Jo.stringify=Jo.str=Jo._=Jo.KeywordCxt=Jo.Ajv2020=void 0;var kOe=V9(),COe=mte(),POe=Q5(),OOe=wte(),Y5="https://json-schema.org/draft/2020-12/schema",h0=class extends kOe.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),COe.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(POe.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(OOe.default.call(this,t),this.refs["http://json-schema.org/schema"]=Y5)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Y5)?Y5:void 0)}};Jo.Ajv2020=h0;eL.exports=Jo=h0;eL.exports.Ajv2020=h0;Object.defineProperty(Jo,"__esModule",{value:!0});Jo.default=h0;var NOe=c0();Object.defineProperty(Jo,"KeywordCxt",{enumerable:!0,get:function(){return NOe.KeywordCxt}});var y0=kr();Object.defineProperty(Jo,"_",{enumerable:!0,get:function(){return y0._}});Object.defineProperty(Jo,"str",{enumerable:!0,get:function(){return y0.str}});Object.defineProperty(Jo,"stringify",{enumerable:!0,get:function(){return y0.stringify}});Object.defineProperty(Jo,"nil",{enumerable:!0,get:function(){return y0.nil}});Object.defineProperty(Jo,"Name",{enumerable:!0,get:function(){return y0.Name}});Object.defineProperty(Jo,"CodeGen",{enumerable:!0,get:function(){return y0.CodeGen}});var FOe=Px();Object.defineProperty(Jo,"ValidationError",{enumerable:!0,get:function(){return FOe.default}});var ROe=l0();Object.defineProperty(Jo,"MissingRefError",{enumerable:!0,get:function(){return ROe.default}})});var Sie=L(yj=>{"use strict";Object.defineProperty(yj,"__esModule",{value:!0});var d9e=G9(),_9e=l5(),f9e=C5(),m9e=K5(),gie=G5(),h9e=[d9e.default,_9e.default,(0,f9e.default)(),m9e.default,gie.metadataVocabulary,gie.contentVocabulary];yj.default=h9e});var vie=L((GRt,y9e)=>{y9e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Sj=L((Go,gj)=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.MissingRefError=Go.ValidationError=Go.CodeGen=Go.Name=Go.nil=Go.stringify=Go.str=Go._=Go.KeywordCxt=Go.Ajv=void 0;var g9e=V9(),S9e=Sie(),v9e=Q5(),bie=vie(),b9e=["/properties"],l6="http://json-schema.org/draft-07/schema",H0=class extends g9e.default{_addVocabularies(){super._addVocabularies(),S9e.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(v9e.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(bie,b9e):bie;this.addMetaSchema(t,l6,!1),this.refs["http://json-schema.org/schema"]=l6}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l6)?l6:void 0)}};Go.Ajv=H0;gj.exports=Go=H0;gj.exports.Ajv=H0;Object.defineProperty(Go,"__esModule",{value:!0});Go.default=H0;var x9e=c0();Object.defineProperty(Go,"KeywordCxt",{enumerable:!0,get:function(){return x9e.KeywordCxt}});var Z0=kr();Object.defineProperty(Go,"_",{enumerable:!0,get:function(){return Z0._}});Object.defineProperty(Go,"str",{enumerable:!0,get:function(){return Z0.str}});Object.defineProperty(Go,"stringify",{enumerable:!0,get:function(){return Z0.stringify}});Object.defineProperty(Go,"nil",{enumerable:!0,get:function(){return Z0.nil}});Object.defineProperty(Go,"Name",{enumerable:!0,get:function(){return Z0.Name}});Object.defineProperty(Go,"CodeGen",{enumerable:!0,get:function(){return Z0.CodeGen}});var E9e=Px();Object.defineProperty(Go,"ValidationError",{enumerable:!0,get:function(){return E9e.default}});var T9e=l0();Object.defineProperty(Go,"MissingRefError",{enumerable:!0,get:function(){return T9e.default}})});var kie=L(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.formatNames=Dp.fastFormats=Dp.fullFormats=void 0;function Tp(e,t){return{validate:e,compare:t}}Dp.fullFormats={date:Tp(Die,Ej),time:Tp(bj(!0),Tj),"date-time":Tp(xie(!0),wie),"iso-time":Tp(bj(),Aie),"iso-date-time":Tp(xie(),Iie),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:C9e,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:$9e,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:P9e,int32:{type:"number",validate:F9e},int64:{type:"number",validate:R9e},float:{type:"number",validate:Tie},double:{type:"number",validate:Tie},password:!0,binary:!0};Dp.fastFormats={...Dp.fullFormats,date:Tp(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,Ej),time:Tp(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Tj),"date-time":Tp(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,wie),"iso-time":Tp(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Aie),"iso-date-time":Tp(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Iie),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Dp.formatNames=Object.keys(Dp.fullFormats);function D9e(e){return e%4===0&&(e%100!==0||e%400===0)}var A9e=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,w9e=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Die(e){let t=A9e.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],o=+t[3];return n>=1&&n<=12&&o>=1&&o<=(n===2&&D9e(r)?29:w9e[n])}function Ej(e,t){if(e&&t)return e>t?1:e23||d>59||e&&!s)return!1;if(o<=23&&i<=59&&a<60)return!0;let f=i-d*c,m=o-p*c-(f<0?1:0);return(m===23||m===-1)&&(f===59||f===-1)&&a<61}}function Tj(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),n=new Date("2020-01-01T"+t).valueOf();if(r&&n)return r-n}function Aie(e,t){if(!(e&&t))return;let r=vj.exec(e),n=vj.exec(t);if(r&&n)return e=r[1]+r[2]+r[3],t=n[1]+n[2]+n[3],e>t?1:e=O9e}function R9e(e){return Number.isInteger(e)}function Tie(){return!0}var L9e=/[^\\]\\Z/;function $9e(e){if(L9e.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var Cie=L(W0=>{"use strict";Object.defineProperty(W0,"__esModule",{value:!0});W0.formatLimitDefinition=void 0;var M9e=Sj(),xu=kr(),am=xu.operators,u6={formatMaximum:{okStr:"<=",ok:am.LTE,fail:am.GT},formatMinimum:{okStr:">=",ok:am.GTE,fail:am.LT},formatExclusiveMaximum:{okStr:"<",ok:am.LT,fail:am.GTE},formatExclusiveMinimum:{okStr:">",ok:am.GT,fail:am.LTE}},j9e={message:({keyword:e,schemaCode:t})=>(0,xu.str)`should be ${u6[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,xu._)`{comparison: ${u6[e].okStr}, limit: ${t}}`};W0.formatLimitDefinition={keyword:Object.keys(u6),type:"string",schemaType:"string",$data:!0,error:j9e,code(e){let{gen:t,data:r,schemaCode:n,keyword:o,it:i}=e,{opts:a,self:s}=i;if(!a.validateFormats)return;let c=new M9e.KeywordCxt(i,s.RULES.all.format.definition,"format");c.$data?p():d();function p(){let m=t.scopeValue("formats",{ref:s.formats,code:a.code.formats}),y=t.const("fmt",(0,xu._)`${m}[${c.schemaCode}]`);e.fail$data((0,xu.or)((0,xu._)`typeof ${y} != "object"`,(0,xu._)`${y} instanceof RegExp`,(0,xu._)`typeof ${y}.compare != "function"`,f(y)))}function d(){let m=c.schema,y=s.formats[m];if(!y||y===!0)return;if(typeof y!="object"||y instanceof RegExp||typeof y.compare!="function")throw new Error(`"${o}": format "${m}" does not define "compare" function`);let g=t.scopeValue("formats",{key:m,ref:y,code:a.code.formats?(0,xu._)`${a.code.formats}${(0,xu.getProperty)(m)}`:void 0});e.fail$data(f(g))}function f(m){return(0,xu._)`${m}.compare(${r}, ${n}) ${u6[o].fail} 0`}},dependencies:["format"]};var B9e=e=>(e.addKeyword(W0.formatLimitDefinition),e);W0.default=B9e});var Fie=L((uT,Nie)=>{"use strict";Object.defineProperty(uT,"__esModule",{value:!0});var Q0=kie(),q9e=Cie(),Dj=kr(),Pie=new Dj.Name("fullFormats"),U9e=new Dj.Name("fastFormats"),Aj=(e,t={keywords:!0})=>{if(Array.isArray(t))return Oie(e,t,Q0.fullFormats,Pie),e;let[r,n]=t.mode==="fast"?[Q0.fastFormats,U9e]:[Q0.fullFormats,Pie],o=t.formats||Q0.formatNames;return Oie(e,o,r,n),t.keywords&&(0,q9e.default)(e),e};Aj.get=(e,t="full")=>{let n=(t==="fast"?Q0.fastFormats:Q0.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function Oie(e,t,r,n){var o,i;(o=(i=e.opts.code).formats)!==null&&o!==void 0||(i.formats=(0,Dj._)`require("ajv-formats/dist/formats").${n}`);for(let a of t)e.addFormat(a,r[a])}Nie.exports=uT=Aj;Object.defineProperty(uT,"__esModule",{value:!0});uT.default=Aj});var aae=L((k8t,iae)=>{iae.exports=oae;oae.sync=v5e;var rae=_l("fs");function S5e(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n{uae.exports=cae;cae.sync=b5e;var sae=_l("fs");function cae(e,t,r){sae.stat(e,function(n,o){r(n,n?!1:lae(o,t))})}function b5e(e,t){return lae(sae.statSync(e),t)}function lae(e,t){return e.isFile()&&x5e(e,t)}function x5e(e,t){var r=e.mode,n=e.uid,o=e.gid,i=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),a=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),s=parseInt("100",8),c=parseInt("010",8),p=parseInt("001",8),d=s|c,f=r&p||r&c&&o===a||r&s&&n===i||r&d&&i===0;return f}});var _ae=L((O8t,dae)=>{var P8t=_l("fs"),x6;process.platform==="win32"||global.TESTING_WINDOWS?x6=aae():x6=pae();dae.exports=Kj;Kj.sync=E5e;function Kj(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,o){Kj(e,t||{},function(i,a){i?o(i):n(a)})})}x6(e,t||{},function(n,o){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,o=!1),r(n,o)})}function E5e(e,t){try{return x6.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var vae=L((N8t,Sae)=>{var iv=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",fae=_l("path"),T5e=iv?";":":",mae=_ae(),hae=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),yae=(e,t)=>{let r=t.colon||T5e,n=e.match(/\//)||iv&&e.match(/\\/)?[""]:[...iv?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=iv?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=iv?o.split(r):[""];return iv&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o}},gae=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:o,pathExtExe:i}=yae(e,t),a=[],s=p=>new Promise((d,f)=>{if(p===n.length)return t.all&&a.length?d(a):f(hae(e));let m=n[p],y=/^".*"$/.test(m)?m.slice(1,-1):m,g=fae.join(y,e),S=!y&&/^\.[\\\/]/.test(e)?e.slice(0,2)+g:g;d(c(S,p,0))}),c=(p,d,f)=>new Promise((m,y)=>{if(f===o.length)return m(s(d+1));let g=o[f];mae(p+g,{pathExt:i},(S,x)=>{if(!S&&x)if(t.all)a.push(p+g);else return m(p+g);return m(c(p,d,f+1))})});return r?s(0).then(p=>r(null,p),r):s(0)},D5e=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:o}=yae(e,t),i=[];for(let a=0;a{"use strict";var bae=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};Gj.exports=bae;Gj.exports.default=bae});var Aae=L((R8t,Dae)=>{"use strict";var Eae=_l("path"),A5e=vae(),w5e=xae();function Tae(e,t){let r=e.options.env||process.env,n=process.cwd(),o=e.options.cwd!=null,i=o&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let a;try{a=A5e.sync(e.command,{path:r[w5e({env:r})],pathExt:t?Eae.delimiter:void 0})}catch{}finally{i&&process.chdir(n)}return a&&(a=Eae.resolve(o?e.options.cwd:"",a)),a}function I5e(e){return Tae(e)||Tae(e,!0)}Dae.exports=I5e});var wae=L((L8t,Zj)=>{"use strict";var Hj=/([()\][%!^"`<>&|;, *?])/g;function k5e(e){return e=e.replace(Hj,"^$1"),e}function C5e(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(Hj,"^$1"),t&&(e=e.replace(Hj,"^$1")),e}Zj.exports.command=k5e;Zj.exports.argument=C5e});var kae=L(($8t,Iae)=>{"use strict";Iae.exports=/^#!(.*)/});var Pae=L((M8t,Cae)=>{"use strict";var P5e=kae();Cae.exports=(e="")=>{let t=e.match(P5e);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return o==="env"?n:n?`${o} ${n}`:o}});var Nae=L((j8t,Oae)=>{"use strict";var Wj=_l("fs"),O5e=Pae();function N5e(e){let r=Buffer.alloc(150),n;try{n=Wj.openSync(e,"r"),Wj.readSync(n,r,0,150,0),Wj.closeSync(n)}catch{}return O5e(r.toString())}Oae.exports=N5e});var $ae=L((B8t,Lae)=>{"use strict";var F5e=_l("path"),Fae=Aae(),Rae=wae(),R5e=Nae(),L5e=process.platform==="win32",$5e=/\.(?:com|exe)$/i,M5e=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function j5e(e){e.file=Fae(e);let t=e.file&&R5e(e.file);return t?(e.args.unshift(e.file),e.command=t,Fae(e)):e.file}function B5e(e){if(!L5e)return e;let t=j5e(e),r=!$5e.test(t);if(e.options.forceShell||r){let n=M5e.test(t);e.command=F5e.normalize(e.command),e.command=Rae.command(e.command),e.args=e.args.map(i=>Rae.argument(i,n));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function q5e(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:B5e(n)}Lae.exports=q5e});var Bae=L((q8t,jae)=>{"use strict";var Qj=process.platform==="win32";function Xj(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function U5e(e,t){if(!Qj)return;let r=e.emit;e.emit=function(n,o){if(n==="exit"){let i=Mae(o,t);if(i)return r.call(e,"error",i)}return r.apply(e,arguments)}}function Mae(e,t){return Qj&&e===1&&!t.file?Xj(t.original,"spawn"):null}function z5e(e,t){return Qj&&e===1&&!t.file?Xj(t.original,"spawnSync"):null}jae.exports={hookChildProcess:U5e,verifyENOENT:Mae,verifyENOENTSync:z5e,notFoundError:Xj}});var zae=L((U8t,av)=>{"use strict";var qae=_l("child_process"),Yj=$ae(),eB=Bae();function Uae(e,t,r){let n=Yj(e,t,r),o=qae.spawn(n.command,n.args,n.options);return eB.hookChildProcess(o,n),o}function V5e(e,t,r){let n=Yj(e,t,r),o=qae.spawnSync(n.command,n.args,n.options);return o.error=o.error||eB.verifyENOENTSync(o.status,n),o}av.exports=Uae;av.exports.spawn=Uae;av.exports.sync=V5e;av.exports._parse=Yj;av.exports._enoent=eB});var mge=L(T1=>{"use strict";Object.defineProperty(T1,"__esModule",{value:!0});T1.versionInfo=T1.version=void 0;var uct="16.13.1";T1.version=uct;var pct=Object.freeze({major:16,minor:13,patch:1,preReleaseTag:null});T1.versionInfo=pct});var Ls=L(iJ=>{"use strict";Object.defineProperty(iJ,"__esModule",{value:!0});iJ.devAssert=dct;function dct(e,t){if(!!!e)throw new Error(t)}});var CO=L(aJ=>{"use strict";Object.defineProperty(aJ,"__esModule",{value:!0});aJ.isPromise=_ct;function _ct(e){return typeof e?.then=="function"}});var hd=L(sJ=>{"use strict";Object.defineProperty(sJ,"__esModule",{value:!0});sJ.isObjectLike=fct;function fct(e){return typeof e=="object"&&e!==null}});var us=L(cJ=>{"use strict";Object.defineProperty(cJ,"__esModule",{value:!0});cJ.invariant=mct;function mct(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}});var PO=L(lJ=>{"use strict";Object.defineProperty(lJ,"__esModule",{value:!0});lJ.getLocation=gct;var hct=us(),yct=/\r\n|[\n\r]/g;function gct(e,t){let r=0,n=1;for(let o of e.body.matchAll(yct)){if(typeof o.index=="number"||(0,hct.invariant)(!1),o.index>=t)break;r=o.index+o[0].length,n+=1}return{line:n,column:t+1-r}}});var uJ=L(OO=>{"use strict";Object.defineProperty(OO,"__esModule",{value:!0});OO.printLocation=vct;OO.printSourceLocation=yge;var Sct=PO();function vct(e){return yge(e.source,(0,Sct.getLocation)(e.source,e.start))}function yge(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,o=t.line-1,i=e.locationOffset.line-1,a=t.line+i,s=t.line===1?r:0,c=t.column+s,p=`${e.name}:${a}:${c} +`,d=n.split(/\r\n|[\n\r]/g),f=d[o];if(f.length>120){let m=Math.floor(c/80),y=c%80,g=[];for(let S=0;S["|",S]),["|","^".padStart(y)],["|",g[m+1]]])}return p+hge([[`${a-1} |`,d[o-1]],[`${a} |`,f],["|","^".padStart(c)],[`${a+1} |`,d[o+1]]])}function hge(e){let t=e.filter(([n,o])=>o!==void 0),r=Math.max(...t.map(([n])=>n.length));return t.map(([n,o])=>n.padStart(r)+(o?" "+o:"")).join(` +`)}});var ar=L(D1=>{"use strict";Object.defineProperty(D1,"__esModule",{value:!0});D1.GraphQLError=void 0;D1.formatError=Tct;D1.printError=Ect;var bct=hd(),gge=PO(),Sge=uJ();function xct(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var pJ=class e extends Error{constructor(t,...r){var n,o,i;let{nodes:a,source:s,positions:c,path:p,originalError:d,extensions:f}=xct(r);super(t),this.name="GraphQLError",this.path=p??void 0,this.originalError=d??void 0,this.nodes=vge(Array.isArray(a)?a:a?[a]:void 0);let m=vge((n=this.nodes)===null||n===void 0?void 0:n.map(g=>g.loc).filter(g=>g!=null));this.source=s??(m==null||(o=m[0])===null||o===void 0?void 0:o.source),this.positions=c??m?.map(g=>g.start),this.locations=c&&s?c.map(g=>(0,gge.getLocation)(s,g)):m?.map(g=>(0,gge.getLocation)(g.source,g.start));let y=(0,bct.isObjectLike)(d?.extensions)?d?.extensions:void 0;this.extensions=(i=f??y)!==null&&i!==void 0?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),d!=null&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let r of this.nodes)r.loc&&(t+=` -`+(0,Pzt.printLocation)(i.loc));else if(this.source&&this.locations)for(let i of this.locations)r+=` +`+(0,Sge.printLocation)(r.loc));else if(this.source&&this.locations)for(let r of this.locations)t+=` -`+(0,Pzt.printSourceLocation)(this.source,i);return r}toJSON(){let r={message:this.message};return this.locations!=null&&(r.locations=this.locations),this.path!=null&&(r.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(r.extensions=this.extensions),r}};gee.GraphQLError=Aet;function Nzt(e){return e===void 0||e.length===0?void 0:e}function ndn(e){return e.toString()}function idn(e){return e.toJSON()}});var k_e=dr(wet=>{"use strict";Object.defineProperty(wet,"__esModule",{value:!0});wet.syntaxError=adn;var odn=Cu();function adn(e,r,i){return new odn.GraphQLError(`Syntax Error: ${i}`,{source:e,positions:[r]})}});var aI=dr(oI=>{"use strict";Object.defineProperty(oI,"__esModule",{value:!0});oI.Token=oI.QueryDocumentKeys=oI.OperationTypeNode=oI.Location=void 0;oI.isNode=cdn;var Iet=class{constructor(r,i,s){this.start=r.start,this.end=i.end,this.startToken=r,this.endToken=i,this.source=s}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};oI.Location=Iet;var Pet=class{constructor(r,i,s,l,d,h){this.kind=r,this.start=i,this.end=s,this.line=l,this.column=d,this.value=h,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};oI.Token=Pet;var Ozt={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]};oI.QueryDocumentKeys=Ozt;var sdn=new Set(Object.keys(Ozt));function cdn(e){let r=e?.kind;return typeof r=="string"&&sdn.has(r)}var Net;oI.OperationTypeNode=Net;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Net||(oI.OperationTypeNode=Net={}))});var yee=dr(C_e=>{"use strict";Object.defineProperty(C_e,"__esModule",{value:!0});C_e.DirectiveLocation=void 0;var Oet;C_e.DirectiveLocation=Oet;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Oet||(C_e.DirectiveLocation=Oet={}))});var Md=dr(D_e=>{"use strict";Object.defineProperty(D_e,"__esModule",{value:!0});D_e.Kind=void 0;var Fet;D_e.Kind=Fet;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(Fet||(D_e.Kind=Fet={}))});var A_e=dr(MV=>{"use strict";Object.defineProperty(MV,"__esModule",{value:!0});MV.isDigit=Fzt;MV.isLetter=Ret;MV.isNameContinue=pdn;MV.isNameStart=udn;MV.isWhiteSpace=ldn;function ldn(e){return e===9||e===32}function Fzt(e){return e>=48&&e<=57}function Ret(e){return e>=97&&e<=122||e>=65&&e<=90}function udn(e){return Ret(e)||e===95}function pdn(e){return Ret(e)||Fzt(e)||e===95}});var I_e=dr(w_e=>{"use strict";Object.defineProperty(w_e,"__esModule",{value:!0});w_e.dedentBlockStringLines=_dn;w_e.isPrintableAsBlockString=fdn;w_e.printBlockString=mdn;var Let=A_e();function _dn(e){var r;let i=Number.MAX_SAFE_INTEGER,s=null,l=-1;for(let h=0;hS===0?h:h.slice(i)).slice((r=s)!==null&&r!==void 0?r:0,l+1)}function ddn(e){let r=0;for(;r1&&s.slice(1).every(ie=>ie.length===0||(0,Let.isWhiteSpace)(ie.charCodeAt(0))),h=i.endsWith('\\"""'),S=e.endsWith('"')&&!h,b=e.endsWith("\\"),A=S||b,L=!(r!=null&&r.minimize)&&(!l||e.length>70||A||d||h),V="",j=l&&(0,Let.isWhiteSpace)(e.charCodeAt(0));return(L&&!j||d)&&(V+=` -`),V+=i,(L||A)&&(V+=` -`),'"""'+V+'"""'}});var vee=dr(P_e=>{"use strict";Object.defineProperty(P_e,"__esModule",{value:!0});P_e.TokenKind=void 0;var Met;P_e.TokenKind=Met;(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(Met||(P_e.TokenKind=Met={}))});var O_e=dr(kB=>{"use strict";Object.defineProperty(kB,"__esModule",{value:!0});kB.Lexer=void 0;kB.createToken=A1;kB.isPunctuatorTokenKind=gdn;kB.printCodePointAt=EB;kB.readName=Bzt;var W6=k_e(),Lzt=aI(),hdn=I_e(),jV=A_e(),$_=vee(),Bet=class{constructor(r){let i=new Lzt.Token($_.TokenKind.SOF,0,0,0,0);this.source=r,this.lastToken=i,this.token=i,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let r=this.token;if(r.kind!==$_.TokenKind.EOF)do if(r.next)r=r.next;else{let i=ydn(this,r.end);r.next=i,i.prev=r,r=i}while(r.kind===$_.TokenKind.COMMENT);return r}};kB.Lexer=Bet;function gdn(e){return e===$_.TokenKind.BANG||e===$_.TokenKind.DOLLAR||e===$_.TokenKind.AMP||e===$_.TokenKind.PAREN_L||e===$_.TokenKind.PAREN_R||e===$_.TokenKind.DOT||e===$_.TokenKind.SPREAD||e===$_.TokenKind.COLON||e===$_.TokenKind.EQUALS||e===$_.TokenKind.AT||e===$_.TokenKind.BRACKET_L||e===$_.TokenKind.BRACKET_R||e===$_.TokenKind.BRACE_L||e===$_.TokenKind.PIPE||e===$_.TokenKind.BRACE_R}function See(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function MDe(e,r){return Mzt(e.charCodeAt(r))&&jzt(e.charCodeAt(r+1))}function Mzt(e){return e>=55296&&e<=56319}function jzt(e){return e>=56320&&e<=57343}function EB(e,r){let i=e.source.body.codePointAt(r);if(i===void 0)return $_.TokenKind.EOF;if(i>=32&&i<=126){let s=String.fromCodePoint(i);return s==='"'?`'"'`:`"${s}"`}return"U+"+i.toString(16).toUpperCase().padStart(4,"0")}function A1(e,r,i,s,l){let d=e.line,h=1+i-e.lineStart;return new Lzt.Token(r,i,s,d,h,l)}function ydn(e,r){let i=e.source.body,s=i.length,l=r;for(;l=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Edn(e,r){let i=e.source.body;switch(i.charCodeAt(r+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` -`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,W6.syntaxError)(e.source,r,`Invalid character escape sequence: "${i.slice(r,r+2)}".`)}function kdn(e,r){let i=e.source.body,s=i.length,l=e.lineStart,d=r+3,h=d,S="",b=[];for(;d{"use strict";Object.defineProperty(jDe,"__esModule",{value:!0});jDe.SchemaCoordinateLexer=void 0;var Cdn=k_e(),Ddn=aI(),Adn=A_e(),CB=O_e(),DB=vee(),$et=class{line=1;lineStart=0;constructor(r){let i=new Ddn.Token(DB.TokenKind.SOF,0,0,0,0);this.source=r,this.lastToken=i,this.token=i}get[Symbol.toStringTag](){return"SchemaCoordinateLexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let r=this.token;if(r.kind!==DB.TokenKind.EOF){let i=wdn(this,r.end);r.next=i,i.prev=r,r=i}return r}};jDe.SchemaCoordinateLexer=$et;function wdn(e,r){let i=e.source.body,s=i.length,l=r;if(l{"use strict";Object.defineProperty(Uet,"__esModule",{value:!0});Uet.inspect=Pdn;var Idn=10,Uzt=2;function Pdn(e){return BDe(e,[])}function BDe(e,r){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Ndn(e,r);default:return String(e)}}function Ndn(e,r){if(e===null)return"null";if(r.includes(e))return"[Circular]";let i=[...r,e];if(Odn(e)){let s=e.toJSON();if(s!==e)return typeof s=="string"?s:BDe(s,i)}else if(Array.isArray(e))return Rdn(e,i);return Fdn(e,i)}function Odn(e){return typeof e.toJSON=="function"}function Fdn(e,r){let i=Object.entries(e);return i.length===0?"{}":r.length>Uzt?"["+Ldn(e)+"]":"{ "+i.map(([l,d])=>l+": "+BDe(d,r)).join(", ")+" }"}function Rdn(e,r){if(e.length===0)return"[]";if(r.length>Uzt)return"[Array]";let i=Math.min(Idn,e.length),s=e.length-i,l=[];for(let d=0;d1&&l.push(`... ${s} more items`),"["+l.join(", ")+"]"}function Ldn(e){let r=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(r==="Object"&&typeof e.constructor=="function"){let i=e.constructor.name;if(typeof i=="string"&&i!=="")return i}return r}});var F_e=dr($De=>{"use strict";Object.defineProperty($De,"__esModule",{value:!0});$De.instanceOf=void 0;var Mdn=gm(),jdn=globalThis.process&&process.env.NODE_ENV==="production",Bdn=jdn?function(r,i){return r instanceof i}:function(r,i){if(r instanceof i)return!0;if(typeof r=="object"&&r!==null){var s;let l=i.prototype[Symbol.toStringTag],d=Symbol.toStringTag in r?r[Symbol.toStringTag]:(s=r.constructor)===null||s===void 0?void 0:s.name;if(l===d){let h=(0,Mdn.inspect)(r);throw new Error(`Cannot use ${l} "${h}" from another module or realm. +`+(0,Sge.printSourceLocation)(this.source,r);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};D1.GraphQLError=pJ;function vge(e){return e===void 0||e.length===0?void 0:e}function Ect(e){return e.toString()}function Tct(e){return e.toJSON()}});var s2=L(dJ=>{"use strict";Object.defineProperty(dJ,"__esModule",{value:!0});dJ.syntaxError=Act;var Dct=ar();function Act(e,t,r){return new Dct.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})}});var Bl=L(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.Token=jl.QueryDocumentKeys=jl.OperationTypeNode=jl.Location=void 0;jl.isNode=Ict;var _J=class{constructor(t,r,n){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};jl.Location=_J;var fJ=class{constructor(t,r,n,o,i,a){this.kind=t,this.start=r,this.end=n,this.line=o,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};jl.Token=fJ;var bge={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]};jl.QueryDocumentKeys=bge;var wct=new Set(Object.keys(bge));function Ict(e){let t=e?.kind;return typeof t=="string"&&wct.has(t)}var mJ;jl.OperationTypeNode=mJ;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(mJ||(jl.OperationTypeNode=mJ={}))});var A1=L(c2=>{"use strict";Object.defineProperty(c2,"__esModule",{value:!0});c2.DirectiveLocation=void 0;var hJ;c2.DirectiveLocation=hJ;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(hJ||(c2.DirectiveLocation=hJ={}))});var Sn=L(l2=>{"use strict";Object.defineProperty(l2,"__esModule",{value:!0});l2.Kind=void 0;var yJ;l2.Kind=yJ;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(yJ||(l2.Kind=yJ={}))});var u2=L(Vg=>{"use strict";Object.defineProperty(Vg,"__esModule",{value:!0});Vg.isDigit=xge;Vg.isLetter=gJ;Vg.isNameContinue=Pct;Vg.isNameStart=Cct;Vg.isWhiteSpace=kct;function kct(e){return e===9||e===32}function xge(e){return e>=48&&e<=57}function gJ(e){return e>=97&&e<=122||e>=65&&e<=90}function Cct(e){return gJ(e)||e===95}function Pct(e){return gJ(e)||xge(e)||e===95}});var d2=L(p2=>{"use strict";Object.defineProperty(p2,"__esModule",{value:!0});p2.dedentBlockStringLines=Oct;p2.isPrintableAsBlockString=Fct;p2.printBlockString=Rct;var SJ=u2();function Oct(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,o=-1;for(let a=0;as===0?a:a.slice(r)).slice((t=n)!==null&&t!==void 0?t:0,o+1)}function Nct(e){let t=0;for(;t1&&n.slice(1).every(y=>y.length===0||(0,SJ.isWhiteSpace)(y.charCodeAt(0))),a=r.endsWith('\\"""'),s=e.endsWith('"')&&!a,c=e.endsWith("\\"),p=s||c,d=!(t!=null&&t.minimize)&&(!o||e.length>70||p||i||a),f="",m=o&&(0,SJ.isWhiteSpace)(e.charCodeAt(0));return(d&&!m||i)&&(f+=` +`),f+=r,(d||p)&&(f+=` +`),'"""'+f+'"""'}});var w1=L(_2=>{"use strict";Object.defineProperty(_2,"__esModule",{value:!0});_2.TokenKind=void 0;var vJ;_2.TokenKind=vJ;(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(vJ||(_2.TokenKind=vJ={}))});var m2=L(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.Lexer=void 0;_h.createToken=Fi;_h.isPunctuatorTokenKind=$ct;_h.printCodePointAt=dh;_h.readName=wge;var Uu=s2(),Tge=Bl(),Lct=d2(),Jg=u2(),Yr=w1(),xJ=class{constructor(t){let r=new Tge.Token(Yr.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==Yr.TokenKind.EOF)do if(t.next)t=t.next;else{let r=Mct(this,t.end);t.next=r,r.prev=t,t=r}while(t.kind===Yr.TokenKind.COMMENT);return t}};_h.Lexer=xJ;function $ct(e){return e===Yr.TokenKind.BANG||e===Yr.TokenKind.DOLLAR||e===Yr.TokenKind.AMP||e===Yr.TokenKind.PAREN_L||e===Yr.TokenKind.PAREN_R||e===Yr.TokenKind.DOT||e===Yr.TokenKind.SPREAD||e===Yr.TokenKind.COLON||e===Yr.TokenKind.EQUALS||e===Yr.TokenKind.AT||e===Yr.TokenKind.BRACKET_L||e===Yr.TokenKind.BRACKET_R||e===Yr.TokenKind.BRACE_L||e===Yr.TokenKind.PIPE||e===Yr.TokenKind.BRACE_R}function I1(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function NO(e,t){return Dge(e.charCodeAt(t))&&Age(e.charCodeAt(t+1))}function Dge(e){return e>=55296&&e<=56319}function Age(e){return e>=56320&&e<=57343}function dh(e,t){let r=e.source.body.codePointAt(t);if(r===void 0)return Yr.TokenKind.EOF;if(r>=32&&r<=126){let n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function Fi(e,t,r,n,o){let i=e.line,a=1+r-e.lineStart;return new Tge.Token(t,r,n,i,a,o)}function Mct(e,t){let r=e.source.body,n=r.length,o=t;for(;o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Vct(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` +`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,Uu.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function Jct(e,t){let r=e.source.body,n=r.length,o=e.lineStart,i=t+3,a=i,s="",c=[];for(;i{"use strict";Object.defineProperty(FO,"__esModule",{value:!0});FO.SchemaCoordinateLexer=void 0;var Kct=s2(),Gct=Bl(),Hct=u2(),fh=m2(),mh=w1(),EJ=class{line=1;lineStart=0;constructor(t){let r=new Gct.Token(mh.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=r,this.token=r}get[Symbol.toStringTag](){return"SchemaCoordinateLexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==mh.TokenKind.EOF){let r=Zct(this,t.end);t.next=r,r.prev=t,t=r}return t}};FO.SchemaCoordinateLexer=EJ;function Zct(e,t){let r=e.source.body,n=r.length,o=t;if(o{"use strict";Object.defineProperty(TJ,"__esModule",{value:!0});TJ.inspect=Qct;var Wct=10,kge=2;function Qct(e){return RO(e,[])}function RO(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Xct(e,t);default:return String(e)}}function Xct(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let r=[...t,e];if(Yct(e)){let n=e.toJSON();if(n!==e)return typeof n=="string"?n:RO(n,r)}else if(Array.isArray(e))return tlt(e,r);return elt(e,r)}function Yct(e){return typeof e.toJSON=="function"}function elt(e,t){let r=Object.entries(e);return r.length===0?"{}":t.length>kge?"["+rlt(e)+"]":"{ "+r.map(([o,i])=>o+": "+RO(i,t)).join(", ")+" }"}function tlt(e,t){if(e.length===0)return"[]";if(t.length>kge)return"[Array]";let r=Math.min(Wct,e.length),n=e.length-r,o=[];for(let i=0;i1&&o.push(`... ${n} more items`),"["+o.join(", ")+"]"}function rlt(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}});var h2=L(LO=>{"use strict";Object.defineProperty(LO,"__esModule",{value:!0});LO.instanceOf=void 0;var nlt=eo(),olt=globalThis.process&&process.env.NODE_ENV==="production",ilt=olt?function(t,r){return t instanceof r}:function(t,r){if(t instanceof r)return!0;if(typeof t=="object"&&t!==null){var n;let o=r.prototype[Symbol.toStringTag],i=Symbol.toStringTag in t?t[Symbol.toStringTag]:(n=t.constructor)===null||n===void 0?void 0:n.name;if(o===i){let a=(0,nlt.inspect)(t);throw new Error(`Cannot use ${o} "${a}" from another module or realm. Ensure that there is only one instance of "graphql" in the node_modules directory. If different versions of "graphql" are the dependencies of other @@ -26,51 +27,51 @@ https://yarnpkg.com/en/docs/selective-version-resolutions Duplicate "graphql" modules cannot be used at the same time since different versions may have different capabilities and behavior. The data from one version used in the function from another could produce confusing and -spurious results.`)}}return!1};$De.instanceOf=Bdn});var zDe=dr(R_e=>{"use strict";Object.defineProperty(R_e,"__esModule",{value:!0});R_e.Source=void 0;R_e.isSource=zdn;var zet=J2(),$dn=gm(),Udn=F_e(),UDe=class{constructor(r,i="GraphQL request",s={line:1,column:1}){typeof r=="string"||(0,zet.devAssert)(!1,`Body must be a string. Received: ${(0,$dn.inspect)(r)}.`),this.body=r,this.name=i,this.locationOffset=s,this.locationOffset.line>0||(0,zet.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,zet.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};R_e.Source=UDe;function zdn(e){return(0,Udn.instanceOf)(e,UDe)}});var BV=dr(e9=>{"use strict";Object.defineProperty(e9,"__esModule",{value:!0});e9.Parser=void 0;e9.parse=Vdn;e9.parseConstValue=Gdn;e9.parseSchemaCoordinate=Kdn;e9.parseType=Hdn;e9.parseValue=Wdn;var AB=k_e(),L_e=aI(),qdn=yee(),Fu=Md(),zzt=O_e(),Jdn=$zt(),JDe=zDe(),Fs=vee();function Vdn(e,r){let i=new wB(e,r),s=i.parseDocument();return Object.defineProperty(s,"tokenCount",{enumerable:!1,value:i.tokenCount}),s}function Wdn(e,r){let i=new wB(e,r);i.expectToken(Fs.TokenKind.SOF);let s=i.parseValueLiteral(!1);return i.expectToken(Fs.TokenKind.EOF),s}function Gdn(e,r){let i=new wB(e,r);i.expectToken(Fs.TokenKind.SOF);let s=i.parseConstValueLiteral();return i.expectToken(Fs.TokenKind.EOF),s}function Hdn(e,r){let i=new wB(e,r);i.expectToken(Fs.TokenKind.SOF);let s=i.parseTypeReference();return i.expectToken(Fs.TokenKind.EOF),s}function Kdn(e){let r=(0,JDe.isSource)(e)?e:new JDe.Source(e),i=new Jdn.SchemaCoordinateLexer(r),s=new wB(e,{lexer:i});s.expectToken(Fs.TokenKind.SOF);let l=s.parseSchemaCoordinate();return s.expectToken(Fs.TokenKind.EOF),l}var wB=class{constructor(r,i={}){let{lexer:s,...l}=i;if(s)this._lexer=s;else{let d=(0,JDe.isSource)(r)?r:new JDe.Source(r);this._lexer=new zzt.Lexer(d)}this._options=l,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let r=this.expectToken(Fs.TokenKind.NAME);return this.node(r,{kind:Fu.Kind.NAME,value:r.value})}parseDocument(){return this.node(this._lexer.token,{kind:Fu.Kind.DOCUMENT,definitions:this.many(Fs.TokenKind.SOF,this.parseDefinition,Fs.TokenKind.EOF)})}parseDefinition(){if(this.peek(Fs.TokenKind.BRACE_L))return this.parseOperationDefinition();let r=this.peekDescription(),i=r?this._lexer.lookahead():this._lexer.token;if(r&&i.kind===Fs.TokenKind.BRACE_L)throw(0,AB.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(i.kind===Fs.TokenKind.NAME){switch(i.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(i.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(r)throw(0,AB.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(i.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(i)}parseOperationDefinition(){let r=this._lexer.token;if(this.peek(Fs.TokenKind.BRACE_L))return this.node(r,{kind:Fu.Kind.OPERATION_DEFINITION,operation:L_e.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let i=this.parseDescription(),s=this.parseOperationType(),l;return this.peek(Fs.TokenKind.NAME)&&(l=this.parseName()),this.node(r,{kind:Fu.Kind.OPERATION_DEFINITION,operation:s,description:i,name:l,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let r=this.expectToken(Fs.TokenKind.NAME);switch(r.value){case"query":return L_e.OperationTypeNode.QUERY;case"mutation":return L_e.OperationTypeNode.MUTATION;case"subscription":return L_e.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(r)}parseVariableDefinitions(){return this.optionalMany(Fs.TokenKind.PAREN_L,this.parseVariableDefinition,Fs.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Fu.Kind.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(Fs.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Fs.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let r=this._lexer.token;return this.expectToken(Fs.TokenKind.DOLLAR),this.node(r,{kind:Fu.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Fu.Kind.SELECTION_SET,selections:this.many(Fs.TokenKind.BRACE_L,this.parseSelection,Fs.TokenKind.BRACE_R)})}parseSelection(){return this.peek(Fs.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let r=this._lexer.token,i=this.parseName(),s,l;return this.expectOptionalToken(Fs.TokenKind.COLON)?(s=i,l=this.parseName()):l=i,this.node(r,{kind:Fu.Kind.FIELD,alias:s,name:l,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Fs.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(r){let i=r?this.parseConstArgument:this.parseArgument;return this.optionalMany(Fs.TokenKind.PAREN_L,i,Fs.TokenKind.PAREN_R)}parseArgument(r=!1){let i=this._lexer.token,s=this.parseName();return this.expectToken(Fs.TokenKind.COLON),this.node(i,{kind:Fu.Kind.ARGUMENT,name:s,value:this.parseValueLiteral(r)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let r=this._lexer.token;this.expectToken(Fs.TokenKind.SPREAD);let i=this.expectOptionalKeyword("on");return!i&&this.peek(Fs.TokenKind.NAME)?this.node(r,{kind:Fu.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(r,{kind:Fu.Kind.INLINE_FRAGMENT,typeCondition:i?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let r=this._lexer.token,i=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(r,{kind:Fu.Kind.FRAGMENT_DEFINITION,description:i,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(r,{kind:Fu.Kind.FRAGMENT_DEFINITION,description:i,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(r){let i=this._lexer.token;switch(i.kind){case Fs.TokenKind.BRACKET_L:return this.parseList(r);case Fs.TokenKind.BRACE_L:return this.parseObject(r);case Fs.TokenKind.INT:return this.advanceLexer(),this.node(i,{kind:Fu.Kind.INT,value:i.value});case Fs.TokenKind.FLOAT:return this.advanceLexer(),this.node(i,{kind:Fu.Kind.FLOAT,value:i.value});case Fs.TokenKind.STRING:case Fs.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case Fs.TokenKind.NAME:switch(this.advanceLexer(),i.value){case"true":return this.node(i,{kind:Fu.Kind.BOOLEAN,value:!0});case"false":return this.node(i,{kind:Fu.Kind.BOOLEAN,value:!1});case"null":return this.node(i,{kind:Fu.Kind.NULL});default:return this.node(i,{kind:Fu.Kind.ENUM,value:i.value})}case Fs.TokenKind.DOLLAR:if(r)if(this.expectToken(Fs.TokenKind.DOLLAR),this._lexer.token.kind===Fs.TokenKind.NAME){let s=this._lexer.token.value;throw(0,AB.syntaxError)(this._lexer.source,i.start,`Unexpected variable "$${s}" in constant value.`)}else throw this.unexpected(i);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let r=this._lexer.token;return this.advanceLexer(),this.node(r,{kind:Fu.Kind.STRING,value:r.value,block:r.kind===Fs.TokenKind.BLOCK_STRING})}parseList(r){let i=()=>this.parseValueLiteral(r);return this.node(this._lexer.token,{kind:Fu.Kind.LIST,values:this.any(Fs.TokenKind.BRACKET_L,i,Fs.TokenKind.BRACKET_R)})}parseObject(r){let i=()=>this.parseObjectField(r);return this.node(this._lexer.token,{kind:Fu.Kind.OBJECT,fields:this.any(Fs.TokenKind.BRACE_L,i,Fs.TokenKind.BRACE_R)})}parseObjectField(r){let i=this._lexer.token,s=this.parseName();return this.expectToken(Fs.TokenKind.COLON),this.node(i,{kind:Fu.Kind.OBJECT_FIELD,name:s,value:this.parseValueLiteral(r)})}parseDirectives(r){let i=[];for(;this.peek(Fs.TokenKind.AT);)i.push(this.parseDirective(r));return i}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(r){let i=this._lexer.token;return this.expectToken(Fs.TokenKind.AT),this.node(i,{kind:Fu.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(r)})}parseTypeReference(){let r=this._lexer.token,i;if(this.expectOptionalToken(Fs.TokenKind.BRACKET_L)){let s=this.parseTypeReference();this.expectToken(Fs.TokenKind.BRACKET_R),i=this.node(r,{kind:Fu.Kind.LIST_TYPE,type:s})}else i=this.parseNamedType();return this.expectOptionalToken(Fs.TokenKind.BANG)?this.node(r,{kind:Fu.Kind.NON_NULL_TYPE,type:i}):i}parseNamedType(){return this.node(this._lexer.token,{kind:Fu.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Fs.TokenKind.STRING)||this.peek(Fs.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let r=this._lexer.token,i=this.parseDescription();this.expectKeyword("schema");let s=this.parseConstDirectives(),l=this.many(Fs.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Fs.TokenKind.BRACE_R);return this.node(r,{kind:Fu.Kind.SCHEMA_DEFINITION,description:i,directives:s,operationTypes:l})}parseOperationTypeDefinition(){let r=this._lexer.token,i=this.parseOperationType();this.expectToken(Fs.TokenKind.COLON);let s=this.parseNamedType();return this.node(r,{kind:Fu.Kind.OPERATION_TYPE_DEFINITION,operation:i,type:s})}parseScalarTypeDefinition(){let r=this._lexer.token,i=this.parseDescription();this.expectKeyword("scalar");let s=this.parseName(),l=this.parseConstDirectives();return this.node(r,{kind:Fu.Kind.SCALAR_TYPE_DEFINITION,description:i,name:s,directives:l})}parseObjectTypeDefinition(){let r=this._lexer.token,i=this.parseDescription();this.expectKeyword("type");let s=this.parseName(),l=this.parseImplementsInterfaces(),d=this.parseConstDirectives(),h=this.parseFieldsDefinition();return this.node(r,{kind:Fu.Kind.OBJECT_TYPE_DEFINITION,description:i,name:s,interfaces:l,directives:d,fields:h})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Fs.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Fs.TokenKind.BRACE_L,this.parseFieldDefinition,Fs.TokenKind.BRACE_R)}parseFieldDefinition(){let r=this._lexer.token,i=this.parseDescription(),s=this.parseName(),l=this.parseArgumentDefs();this.expectToken(Fs.TokenKind.COLON);let d=this.parseTypeReference(),h=this.parseConstDirectives();return this.node(r,{kind:Fu.Kind.FIELD_DEFINITION,description:i,name:s,arguments:l,type:d,directives:h})}parseArgumentDefs(){return this.optionalMany(Fs.TokenKind.PAREN_L,this.parseInputValueDef,Fs.TokenKind.PAREN_R)}parseInputValueDef(){let r=this._lexer.token,i=this.parseDescription(),s=this.parseName();this.expectToken(Fs.TokenKind.COLON);let l=this.parseTypeReference(),d;this.expectOptionalToken(Fs.TokenKind.EQUALS)&&(d=this.parseConstValueLiteral());let h=this.parseConstDirectives();return this.node(r,{kind:Fu.Kind.INPUT_VALUE_DEFINITION,description:i,name:s,type:l,defaultValue:d,directives:h})}parseInterfaceTypeDefinition(){let r=this._lexer.token,i=this.parseDescription();this.expectKeyword("interface");let s=this.parseName(),l=this.parseImplementsInterfaces(),d=this.parseConstDirectives(),h=this.parseFieldsDefinition();return this.node(r,{kind:Fu.Kind.INTERFACE_TYPE_DEFINITION,description:i,name:s,interfaces:l,directives:d,fields:h})}parseUnionTypeDefinition(){let r=this._lexer.token,i=this.parseDescription();this.expectKeyword("union");let s=this.parseName(),l=this.parseConstDirectives(),d=this.parseUnionMemberTypes();return this.node(r,{kind:Fu.Kind.UNION_TYPE_DEFINITION,description:i,name:s,directives:l,types:d})}parseUnionMemberTypes(){return this.expectOptionalToken(Fs.TokenKind.EQUALS)?this.delimitedMany(Fs.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let r=this._lexer.token,i=this.parseDescription();this.expectKeyword("enum");let s=this.parseName(),l=this.parseConstDirectives(),d=this.parseEnumValuesDefinition();return this.node(r,{kind:Fu.Kind.ENUM_TYPE_DEFINITION,description:i,name:s,directives:l,values:d})}parseEnumValuesDefinition(){return this.optionalMany(Fs.TokenKind.BRACE_L,this.parseEnumValueDefinition,Fs.TokenKind.BRACE_R)}parseEnumValueDefinition(){let r=this._lexer.token,i=this.parseDescription(),s=this.parseEnumValueName(),l=this.parseConstDirectives();return this.node(r,{kind:Fu.Kind.ENUM_VALUE_DEFINITION,description:i,name:s,directives:l})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,AB.syntaxError)(this._lexer.source,this._lexer.token.start,`${qDe(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let r=this._lexer.token,i=this.parseDescription();this.expectKeyword("input");let s=this.parseName(),l=this.parseConstDirectives(),d=this.parseInputFieldsDefinition();return this.node(r,{kind:Fu.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:s,directives:l,fields:d})}parseInputFieldsDefinition(){return this.optionalMany(Fs.TokenKind.BRACE_L,this.parseInputValueDef,Fs.TokenKind.BRACE_R)}parseTypeSystemExtension(){let r=this._lexer.lookahead();if(r.kind===Fs.TokenKind.NAME)switch(r.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(r)}parseSchemaExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let i=this.parseConstDirectives(),s=this.optionalMany(Fs.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Fs.TokenKind.BRACE_R);if(i.length===0&&s.length===0)throw this.unexpected();return this.node(r,{kind:Fu.Kind.SCHEMA_EXTENSION,directives:i,operationTypes:s})}parseScalarTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let i=this.parseName(),s=this.parseConstDirectives();if(s.length===0)throw this.unexpected();return this.node(r,{kind:Fu.Kind.SCALAR_TYPE_EXTENSION,name:i,directives:s})}parseObjectTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let i=this.parseName(),s=this.parseImplementsInterfaces(),l=this.parseConstDirectives(),d=this.parseFieldsDefinition();if(s.length===0&&l.length===0&&d.length===0)throw this.unexpected();return this.node(r,{kind:Fu.Kind.OBJECT_TYPE_EXTENSION,name:i,interfaces:s,directives:l,fields:d})}parseInterfaceTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let i=this.parseName(),s=this.parseImplementsInterfaces(),l=this.parseConstDirectives(),d=this.parseFieldsDefinition();if(s.length===0&&l.length===0&&d.length===0)throw this.unexpected();return this.node(r,{kind:Fu.Kind.INTERFACE_TYPE_EXTENSION,name:i,interfaces:s,directives:l,fields:d})}parseUnionTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let i=this.parseName(),s=this.parseConstDirectives(),l=this.parseUnionMemberTypes();if(s.length===0&&l.length===0)throw this.unexpected();return this.node(r,{kind:Fu.Kind.UNION_TYPE_EXTENSION,name:i,directives:s,types:l})}parseEnumTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let i=this.parseName(),s=this.parseConstDirectives(),l=this.parseEnumValuesDefinition();if(s.length===0&&l.length===0)throw this.unexpected();return this.node(r,{kind:Fu.Kind.ENUM_TYPE_EXTENSION,name:i,directives:s,values:l})}parseInputObjectTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let i=this.parseName(),s=this.parseConstDirectives(),l=this.parseInputFieldsDefinition();if(s.length===0&&l.length===0)throw this.unexpected();return this.node(r,{kind:Fu.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:s,fields:l})}parseDirectiveDefinition(){let r=this._lexer.token,i=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Fs.TokenKind.AT);let s=this.parseName(),l=this.parseArgumentDefs(),d=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let h=this.parseDirectiveLocations();return this.node(r,{kind:Fu.Kind.DIRECTIVE_DEFINITION,description:i,name:s,arguments:l,repeatable:d,locations:h})}parseDirectiveLocations(){return this.delimitedMany(Fs.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let r=this._lexer.token,i=this.parseName();if(Object.prototype.hasOwnProperty.call(qdn.DirectiveLocation,i.value))return i;throw this.unexpected(r)}parseSchemaCoordinate(){let r=this._lexer.token,i=this.expectOptionalToken(Fs.TokenKind.AT),s=this.parseName(),l;!i&&this.expectOptionalToken(Fs.TokenKind.DOT)&&(l=this.parseName());let d;return(i||l)&&this.expectOptionalToken(Fs.TokenKind.PAREN_L)&&(d=this.parseName(),this.expectToken(Fs.TokenKind.COLON),this.expectToken(Fs.TokenKind.PAREN_R)),i?d?this.node(r,{kind:Fu.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:s,argumentName:d}):this.node(r,{kind:Fu.Kind.DIRECTIVE_COORDINATE,name:s}):l?d?this.node(r,{kind:Fu.Kind.ARGUMENT_COORDINATE,name:s,fieldName:l,argumentName:d}):this.node(r,{kind:Fu.Kind.MEMBER_COORDINATE,name:s,memberName:l}):this.node(r,{kind:Fu.Kind.TYPE_COORDINATE,name:s})}node(r,i){return this._options.noLocation!==!0&&(i.loc=new L_e.Location(r,this._lexer.lastToken,this._lexer.source)),i}peek(r){return this._lexer.token.kind===r}expectToken(r){let i=this._lexer.token;if(i.kind===r)return this.advanceLexer(),i;throw(0,AB.syntaxError)(this._lexer.source,i.start,`Expected ${qzt(r)}, found ${qDe(i)}.`)}expectOptionalToken(r){return this._lexer.token.kind===r?(this.advanceLexer(),!0):!1}expectKeyword(r){let i=this._lexer.token;if(i.kind===Fs.TokenKind.NAME&&i.value===r)this.advanceLexer();else throw(0,AB.syntaxError)(this._lexer.source,i.start,`Expected "${r}", found ${qDe(i)}.`)}expectOptionalKeyword(r){let i=this._lexer.token;return i.kind===Fs.TokenKind.NAME&&i.value===r?(this.advanceLexer(),!0):!1}unexpected(r){let i=r??this._lexer.token;return(0,AB.syntaxError)(this._lexer.source,i.start,`Unexpected ${qDe(i)}.`)}any(r,i,s){this.expectToken(r);let l=[];for(;!this.expectOptionalToken(s);)l.push(i.call(this));return l}optionalMany(r,i,s){if(this.expectOptionalToken(r)){let l=[];do l.push(i.call(this));while(!this.expectOptionalToken(s));return l}return[]}many(r,i,s){this.expectToken(r);let l=[];do l.push(i.call(this));while(!this.expectOptionalToken(s));return l}delimitedMany(r,i){this.expectOptionalToken(r);let s=[];do s.push(i.call(this));while(this.expectOptionalToken(r));return s}advanceLexer(){let{maxTokens:r}=this._options,i=this._lexer.advance();if(i.kind!==Fs.TokenKind.EOF&&(++this._tokenCounter,r!==void 0&&this._tokenCounter>r))throw(0,AB.syntaxError)(this._lexer.source,i.start,`Document contains more that ${r} tokens. Parsing aborted.`)}};e9.Parser=wB;function qDe(e){let r=e.value;return qzt(e.kind)+(r!=null?` "${r}"`:"")}function qzt(e){return(0,zzt.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var IB=dr(qet=>{"use strict";Object.defineProperty(qet,"__esModule",{value:!0});qet.didYouMean=Zdn;var Qdn=5;function Zdn(e,r){let[i,s]=r?[e,r]:[void 0,e],l=" Did you mean ";i&&(l+=i+" ");let d=s.map(b=>`"${b}"`);switch(d.length){case 0:return"";case 1:return l+d[0]+"?";case 2:return l+d[0]+" or "+d[1]+"?"}let h=d.slice(0,Qdn),S=h.pop();return l+h.join(", ")+", or "+S+"?"}});var Jzt=dr(Jet=>{"use strict";Object.defineProperty(Jet,"__esModule",{value:!0});Jet.identityFunc=Xdn;function Xdn(e){return e}});var PB=dr(Vet=>{"use strict";Object.defineProperty(Vet,"__esModule",{value:!0});Vet.keyMap=Ydn;function Ydn(e,r){let i=Object.create(null);for(let s of e)i[r(s)]=s;return i}});var M_e=dr(Wet=>{"use strict";Object.defineProperty(Wet,"__esModule",{value:!0});Wet.keyValMap=efn;function efn(e,r,i){let s=Object.create(null);for(let l of e)s[r(l)]=i(l);return s}});var VDe=dr(Get=>{"use strict";Object.defineProperty(Get,"__esModule",{value:!0});Get.mapValue=tfn;function tfn(e,r){let i=Object.create(null);for(let s of Object.keys(e))i[s]=r(e[s],s);return i}});var j_e=dr(Ket=>{"use strict";Object.defineProperty(Ket,"__esModule",{value:!0});Ket.naturalCompare=rfn;function rfn(e,r){let i=0,s=0;for(;i0);let S=0;do++s,S=S*10+d-Het,d=r.charCodeAt(s);while(WDe(d)&&S>0);if(hS)return 1}else{if(ld)return 1;++i,++s}}return e.length-r.length}var Het=48,nfn=57;function WDe(e){return!isNaN(e)&&Het<=e&&e<=nfn}});var NB=dr(Zet=>{"use strict";Object.defineProperty(Zet,"__esModule",{value:!0});Zet.suggestionList=ofn;var ifn=j_e();function ofn(e,r){let i=Object.create(null),s=new Qet(e),l=Math.floor(e.length*.4)+1;for(let d of r){let h=s.measure(d,l);h!==void 0&&(i[d]=h)}return Object.keys(i).sort((d,h)=>{let S=i[d]-i[h];return S!==0?S:(0,ifn.naturalCompare)(d,h)})}var Qet=class{constructor(r){this._input=r,this._inputLowerCase=r.toLowerCase(),this._inputArray=Vzt(this._inputLowerCase),this._rows=[new Array(r.length+1).fill(0),new Array(r.length+1).fill(0),new Array(r.length+1).fill(0)]}measure(r,i){if(this._input===r)return 0;let s=r.toLowerCase();if(this._inputLowerCase===s)return 1;let l=Vzt(s),d=this._inputArray;if(l.lengthi)return;let b=this._rows;for(let L=0;L<=S;L++)b[0][L]=L;for(let L=1;L<=h;L++){let V=b[(L-1)%3],j=b[L%3],ie=j[0]=L;for(let te=1;te<=S;te++){let X=l[L-1]===d[te-1]?0:1,Re=Math.min(V[te]+1,j[te-1]+1,V[te-1]+X);if(L>1&&te>1&&l[L-1]===d[te-2]&&l[L-2]===d[te-1]){let Je=b[(L-2)%3][te-2];Re=Math.min(Re,Je+1)}Rei)return}let A=b[h%3][S];return A<=i?A:void 0}};function Vzt(e){let r=e.length,i=new Array(r);for(let s=0;s{"use strict";Object.defineProperty(Xet,"__esModule",{value:!0});Xet.toObjMap=afn;function afn(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let r=Object.create(null);for(let[i,s]of Object.entries(e))r[i]=s;return r}});var Wzt=dr(Yet=>{"use strict";Object.defineProperty(Yet,"__esModule",{value:!0});Yet.printString=sfn;function sfn(e){return`"${e.replace(cfn,lfn)}"`}var cfn=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function lfn(e){return ufn[e.charCodeAt(0)]}var ufn=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});var $V=dr(OB=>{"use strict";Object.defineProperty(OB,"__esModule",{value:!0});OB.BREAK=void 0;OB.getEnterLeaveForKind=HDe;OB.getVisitFn=mfn;OB.visit=dfn;OB.visitInParallel=ffn;var pfn=J2(),_fn=gm(),ett=aI(),Gzt=Md(),bee=Object.freeze({});OB.BREAK=bee;function dfn(e,r,i=ett.QueryDocumentKeys){let s=new Map;for(let Je of Object.values(Gzt.Kind))s.set(Je,HDe(r,Je));let l,d=Array.isArray(e),h=[e],S=-1,b=[],A=e,L,V,j=[],ie=[];do{S++;let Je=S===h.length,pt=Je&&b.length!==0;if(Je){if(L=ie.length===0?void 0:j[j.length-1],A=V,V=ie.pop(),pt)if(d){A=A.slice();let xt=0;for(let[tr,ht]of b){let wt=tr-xt;ht===null?(A.splice(wt,1),xt++):A[wt]=ht}}else{A={...A};for(let[xt,tr]of b)A[xt]=tr}S=l.index,h=l.keys,b=l.edits,d=l.inArray,l=l.prev}else if(V){if(L=d?S:h[S],A=V[L],A==null)continue;j.push(L)}let $e;if(!Array.isArray(A)){var te,X;(0,ett.isNode)(A)||(0,pfn.devAssert)(!1,`Invalid AST Node: ${(0,_fn.inspect)(A)}.`);let xt=Je?(te=s.get(A.kind))===null||te===void 0?void 0:te.leave:(X=s.get(A.kind))===null||X===void 0?void 0:X.enter;if($e=xt?.call(r,A,L,V,j,ie),$e===bee)break;if($e===!1){if(!Je){j.pop();continue}}else if($e!==void 0&&(b.push([L,$e]),!Je))if((0,ett.isNode)($e))A=$e;else{j.pop();continue}}if($e===void 0&&pt&&b.push([L,A]),Je)j.pop();else{var Re;l={inArray:d,index:S,keys:h,edits:b,prev:l},d=Array.isArray(A),h=d?A:(Re=i[A.kind])!==null&&Re!==void 0?Re:[],S=-1,b=[],V&&ie.push(V),V=A}}while(l!==void 0);return b.length!==0?b[b.length-1][1]:e}function ffn(e){let r=new Array(e.length).fill(null),i=Object.create(null);for(let s of Object.values(Gzt.Kind)){let l=!1,d=new Array(e.length).fill(void 0),h=new Array(e.length).fill(void 0);for(let b=0;b{"use strict";Object.defineProperty(rtt,"__esModule",{value:!0});rtt.print=vfn;var hfn=I_e(),gfn=Wzt(),yfn=$V();function vfn(e){return(0,yfn.visit)(e,bfn)}var Sfn=80,bfn={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>qc(e.definitions,` +spurious results.`)}}return!1};LO.instanceOf=ilt});var MO=L(y2=>{"use strict";Object.defineProperty(y2,"__esModule",{value:!0});y2.Source=void 0;y2.isSource=clt;var DJ=Ls(),alt=eo(),slt=h2(),$O=class{constructor(t,r="GraphQL request",n={line:1,column:1}){typeof t=="string"||(0,DJ.devAssert)(!1,`Body must be a string. Received: ${(0,alt.inspect)(t)}.`),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||(0,DJ.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,DJ.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};y2.Source=$O;function clt(e){return(0,slt.instanceOf)(e,$O)}});var Kg=L(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.Parser=void 0;nf.parse=plt;nf.parseConstValue=_lt;nf.parseSchemaCoordinate=mlt;nf.parseType=flt;nf.parseValue=dlt;var hh=s2(),g2=Bl(),llt=A1(),cr=Sn(),Cge=m2(),ult=Ige(),BO=MO(),nt=w1();function plt(e,t){let r=new yh(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}function dlt(e,t){let r=new yh(e,t);r.expectToken(nt.TokenKind.SOF);let n=r.parseValueLiteral(!1);return r.expectToken(nt.TokenKind.EOF),n}function _lt(e,t){let r=new yh(e,t);r.expectToken(nt.TokenKind.SOF);let n=r.parseConstValueLiteral();return r.expectToken(nt.TokenKind.EOF),n}function flt(e,t){let r=new yh(e,t);r.expectToken(nt.TokenKind.SOF);let n=r.parseTypeReference();return r.expectToken(nt.TokenKind.EOF),n}function mlt(e){let t=(0,BO.isSource)(e)?e:new BO.Source(e),r=new ult.SchemaCoordinateLexer(t),n=new yh(e,{lexer:r});n.expectToken(nt.TokenKind.SOF);let o=n.parseSchemaCoordinate();return n.expectToken(nt.TokenKind.EOF),o}var yh=class{constructor(t,r={}){let{lexer:n,...o}=r;if(n)this._lexer=n;else{let i=(0,BO.isSource)(t)?t:new BO.Source(t);this._lexer=new Cge.Lexer(i)}this._options=o,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(nt.TokenKind.NAME);return this.node(t,{kind:cr.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:cr.Kind.DOCUMENT,definitions:this.many(nt.TokenKind.SOF,this.parseDefinition,nt.TokenKind.EOF)})}parseDefinition(){if(this.peek(nt.TokenKind.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),r=t?this._lexer.lookahead():this._lexer.token;if(t&&r.kind===nt.TokenKind.BRACE_L)throw(0,hh.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(r.kind===nt.TokenKind.NAME){switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw(0,hh.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(r.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(r)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(nt.TokenKind.BRACE_L))return this.node(t,{kind:cr.Kind.OPERATION_DEFINITION,operation:g2.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseDescription(),n=this.parseOperationType(),o;return this.peek(nt.TokenKind.NAME)&&(o=this.parseName()),this.node(t,{kind:cr.Kind.OPERATION_DEFINITION,operation:n,description:r,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(nt.TokenKind.NAME);switch(t.value){case"query":return g2.OperationTypeNode.QUERY;case"mutation":return g2.OperationTypeNode.MUTATION;case"subscription":return g2.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(nt.TokenKind.PAREN_L,this.parseVariableDefinition,nt.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:cr.Kind.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(nt.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(nt.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(nt.TokenKind.DOLLAR),this.node(t,{kind:cr.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:cr.Kind.SELECTION_SET,selections:this.many(nt.TokenKind.BRACE_L,this.parseSelection,nt.TokenKind.BRACE_R)})}parseSelection(){return this.peek(nt.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,r=this.parseName(),n,o;return this.expectOptionalToken(nt.TokenKind.COLON)?(n=r,o=this.parseName()):o=r,this.node(t,{kind:cr.Kind.FIELD,alias:n,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(nt.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let r=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(nt.TokenKind.PAREN_L,r,nt.TokenKind.PAREN_R)}parseArgument(t=!1){let r=this._lexer.token,n=this.parseName();return this.expectToken(nt.TokenKind.COLON),this.node(r,{kind:cr.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(nt.TokenKind.SPREAD);let r=this.expectOptionalKeyword("on");return!r&&this.peek(nt.TokenKind.NAME)?this.node(t,{kind:cr.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:cr.Kind.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token,r=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:cr.Kind.FRAGMENT_DEFINITION,description:r,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:cr.Kind.FRAGMENT_DEFINITION,description:r,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let r=this._lexer.token;switch(r.kind){case nt.TokenKind.BRACKET_L:return this.parseList(t);case nt.TokenKind.BRACE_L:return this.parseObject(t);case nt.TokenKind.INT:return this.advanceLexer(),this.node(r,{kind:cr.Kind.INT,value:r.value});case nt.TokenKind.FLOAT:return this.advanceLexer(),this.node(r,{kind:cr.Kind.FLOAT,value:r.value});case nt.TokenKind.STRING:case nt.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case nt.TokenKind.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:cr.Kind.BOOLEAN,value:!0});case"false":return this.node(r,{kind:cr.Kind.BOOLEAN,value:!1});case"null":return this.node(r,{kind:cr.Kind.NULL});default:return this.node(r,{kind:cr.Kind.ENUM,value:r.value})}case nt.TokenKind.DOLLAR:if(t)if(this.expectToken(nt.TokenKind.DOLLAR),this._lexer.token.kind===nt.TokenKind.NAME){let n=this._lexer.token.value;throw(0,hh.syntaxError)(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:cr.Kind.STRING,value:t.value,block:t.kind===nt.TokenKind.BLOCK_STRING})}parseList(t){let r=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:cr.Kind.LIST,values:this.any(nt.TokenKind.BRACKET_L,r,nt.TokenKind.BRACKET_R)})}parseObject(t){let r=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:cr.Kind.OBJECT,fields:this.any(nt.TokenKind.BRACE_L,r,nt.TokenKind.BRACE_R)})}parseObjectField(t){let r=this._lexer.token,n=this.parseName();return this.expectToken(nt.TokenKind.COLON),this.node(r,{kind:cr.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t)})}parseDirectives(t){let r=[];for(;this.peek(nt.TokenKind.AT);)r.push(this.parseDirective(t));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let r=this._lexer.token;return this.expectToken(nt.TokenKind.AT),this.node(r,{kind:cr.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,r;if(this.expectOptionalToken(nt.TokenKind.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(nt.TokenKind.BRACKET_R),r=this.node(t,{kind:cr.Kind.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(nt.TokenKind.BANG)?this.node(t,{kind:cr.Kind.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:cr.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(nt.TokenKind.STRING)||this.peek(nt.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),o=this.many(nt.TokenKind.BRACE_L,this.parseOperationTypeDefinition,nt.TokenKind.BRACE_R);return this.node(t,{kind:cr.Kind.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:o})}parseOperationTypeDefinition(){let t=this._lexer.token,r=this.parseOperationType();this.expectToken(nt.TokenKind.COLON);let n=this.parseNamedType();return this.node(t,{kind:cr.Kind.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:cr.Kind.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:o})}parseObjectTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:cr.Kind.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(nt.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(nt.TokenKind.BRACE_L,this.parseFieldDefinition,nt.TokenKind.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,r=this.parseDescription(),n=this.parseName(),o=this.parseArgumentDefs();this.expectToken(nt.TokenKind.COLON);let i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:cr.Kind.FIELD_DEFINITION,description:r,name:n,arguments:o,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(nt.TokenKind.PAREN_L,this.parseInputValueDef,nt.TokenKind.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(nt.TokenKind.COLON);let o=this.parseTypeReference(),i;this.expectOptionalToken(nt.TokenKind.EQUALS)&&(i=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:cr.Kind.INPUT_VALUE_DEFINITION,description:r,name:n,type:o,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:cr.Kind.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:i,fields:a})}parseUnionTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),o=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(t,{kind:cr.Kind.UNION_TYPE_DEFINITION,description:r,name:n,directives:o,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(nt.TokenKind.EQUALS)?this.delimitedMany(nt.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),o=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(t,{kind:cr.Kind.ENUM_TYPE_DEFINITION,description:r,name:n,directives:o,values:i})}parseEnumValuesDefinition(){return this.optionalMany(nt.TokenKind.BRACE_L,this.parseEnumValueDefinition,nt.TokenKind.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:cr.Kind.ENUM_VALUE_DEFINITION,description:r,name:n,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,hh.syntaxError)(this._lexer.source,this._lexer.token.start,`${jO(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),o=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(t,{kind:cr.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:o,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(nt.TokenKind.BRACE_L,this.parseInputValueDef,nt.TokenKind.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===nt.TokenKind.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let r=this.parseConstDirectives(),n=this.optionalMany(nt.TokenKind.BRACE_L,this.parseOperationTypeDefinition,nt.TokenKind.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:i})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:i})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.UNION_TYPE_EXTENSION,name:r,directives:n,types:o})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.ENUM_TYPE_EXTENSION,name:r,directives:n,values:o})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:o})}parseDirectiveDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(nt.TokenKind.AT);let n=this.parseName(),o=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(t,{kind:cr.Kind.DIRECTIVE_DEFINITION,description:r,name:n,arguments:o,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany(nt.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(llt.DirectiveLocation,r.value))return r;throw this.unexpected(t)}parseSchemaCoordinate(){let t=this._lexer.token,r=this.expectOptionalToken(nt.TokenKind.AT),n=this.parseName(),o;!r&&this.expectOptionalToken(nt.TokenKind.DOT)&&(o=this.parseName());let i;return(r||o)&&this.expectOptionalToken(nt.TokenKind.PAREN_L)&&(i=this.parseName(),this.expectToken(nt.TokenKind.COLON),this.expectToken(nt.TokenKind.PAREN_R)),r?i?this.node(t,{kind:cr.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:i}):this.node(t,{kind:cr.Kind.DIRECTIVE_COORDINATE,name:n}):o?i?this.node(t,{kind:cr.Kind.ARGUMENT_COORDINATE,name:n,fieldName:o,argumentName:i}):this.node(t,{kind:cr.Kind.MEMBER_COORDINATE,name:n,memberName:o}):this.node(t,{kind:cr.Kind.TYPE_COORDINATE,name:n})}node(t,r){return this._options.noLocation!==!0&&(r.loc=new g2.Location(t,this._lexer.lastToken,this._lexer.source)),r}peek(t){return this._lexer.token.kind===t}expectToken(t){let r=this._lexer.token;if(r.kind===t)return this.advanceLexer(),r;throw(0,hh.syntaxError)(this._lexer.source,r.start,`Expected ${Pge(t)}, found ${jO(r)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let r=this._lexer.token;if(r.kind===nt.TokenKind.NAME&&r.value===t)this.advanceLexer();else throw(0,hh.syntaxError)(this._lexer.source,r.start,`Expected "${t}", found ${jO(r)}.`)}expectOptionalKeyword(t){let r=this._lexer.token;return r.kind===nt.TokenKind.NAME&&r.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let r=t??this._lexer.token;return(0,hh.syntaxError)(this._lexer.source,r.start,`Unexpected ${jO(r)}.`)}any(t,r,n){this.expectToken(t);let o=[];for(;!this.expectOptionalToken(n);)o.push(r.call(this));return o}optionalMany(t,r,n){if(this.expectOptionalToken(t)){let o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}return[]}many(t,r,n){this.expectToken(t);let o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}delimitedMany(t,r){this.expectOptionalToken(t);let n=[];do n.push(r.call(this));while(this.expectOptionalToken(t));return n}advanceLexer(){let{maxTokens:t}=this._options,r=this._lexer.advance();if(r.kind!==nt.TokenKind.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw(0,hh.syntaxError)(this._lexer.source,r.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};nf.Parser=yh;function jO(e){let t=e.value;return Pge(e.kind)+(t!=null?` "${t}"`:"")}function Pge(e){return(0,Cge.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var gh=L(AJ=>{"use strict";Object.defineProperty(AJ,"__esModule",{value:!0});AJ.didYouMean=ylt;var hlt=5;function ylt(e,t){let[r,n]=t?[e,t]:[void 0,e],o=" Did you mean ";r&&(o+=r+" ");let i=n.map(c=>`"${c}"`);switch(i.length){case 0:return"";case 1:return o+i[0]+"?";case 2:return o+i[0]+" or "+i[1]+"?"}let a=i.slice(0,hlt),s=a.pop();return o+a.join(", ")+", or "+s+"?"}});var Oge=L(wJ=>{"use strict";Object.defineProperty(wJ,"__esModule",{value:!0});wJ.identityFunc=glt;function glt(e){return e}});var Sh=L(IJ=>{"use strict";Object.defineProperty(IJ,"__esModule",{value:!0});IJ.keyMap=Slt;function Slt(e,t){let r=Object.create(null);for(let n of e)r[t(n)]=n;return r}});var S2=L(kJ=>{"use strict";Object.defineProperty(kJ,"__esModule",{value:!0});kJ.keyValMap=vlt;function vlt(e,t,r){let n=Object.create(null);for(let o of e)n[t(o)]=r(o);return n}});var qO=L(CJ=>{"use strict";Object.defineProperty(CJ,"__esModule",{value:!0});CJ.mapValue=blt;function blt(e,t){let r=Object.create(null);for(let n of Object.keys(e))r[n]=t(e[n],n);return r}});var v2=L(OJ=>{"use strict";Object.defineProperty(OJ,"__esModule",{value:!0});OJ.naturalCompare=xlt;function xlt(e,t){let r=0,n=0;for(;r0);let s=0;do++n,s=s*10+i-PJ,i=t.charCodeAt(n);while(UO(i)&&s>0);if(as)return 1}else{if(oi)return 1;++r,++n}}return e.length-t.length}var PJ=48,Elt=57;function UO(e){return!isNaN(e)&&PJ<=e&&e<=Elt}});var vh=L(FJ=>{"use strict";Object.defineProperty(FJ,"__esModule",{value:!0});FJ.suggestionList=Dlt;var Tlt=v2();function Dlt(e,t){let r=Object.create(null),n=new NJ(e),o=Math.floor(e.length*.4)+1;for(let i of t){let a=n.measure(i,o);a!==void 0&&(r[i]=a)}return Object.keys(r).sort((i,a)=>{let s=r[i]-r[a];return s!==0?s:(0,Tlt.naturalCompare)(i,a)})}var NJ=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Nge(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,r){if(this._input===t)return 0;let n=t.toLowerCase();if(this._inputLowerCase===n)return 1;let o=Nge(n),i=this._inputArray;if(o.lengthr)return;let c=this._rows;for(let d=0;d<=s;d++)c[0][d]=d;for(let d=1;d<=a;d++){let f=c[(d-1)%3],m=c[d%3],y=m[0]=d;for(let g=1;g<=s;g++){let S=o[d-1]===i[g-1]?0:1,x=Math.min(f[g]+1,m[g-1]+1,f[g-1]+S);if(d>1&&g>1&&o[d-1]===i[g-2]&&o[d-2]===i[g-1]){let A=c[(d-2)%3][g-2];x=Math.min(x,A+1)}xr)return}let p=c[a%3][s];return p<=r?p:void 0}};function Nge(e){let t=e.length,r=new Array(t);for(let n=0;n{"use strict";Object.defineProperty(RJ,"__esModule",{value:!0});RJ.toObjMap=Alt;function Alt(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[r,n]of Object.entries(e))t[r]=n;return t}});var Fge=L(LJ=>{"use strict";Object.defineProperty(LJ,"__esModule",{value:!0});LJ.printString=wlt;function wlt(e){return`"${e.replace(Ilt,klt)}"`}var Ilt=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function klt(e){return Clt[e.charCodeAt(0)]}var Clt=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});var Gg=L(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});bh.BREAK=void 0;bh.getEnterLeaveForKind=VO;bh.getVisitFn=Rlt;bh.visit=Nlt;bh.visitInParallel=Flt;var Plt=Ls(),Olt=eo(),$J=Bl(),Rge=Sn(),k1=Object.freeze({});bh.BREAK=k1;function Nlt(e,t,r=$J.QueryDocumentKeys){let n=new Map;for(let A of Object.values(Rge.Kind))n.set(A,VO(t,A));let o,i=Array.isArray(e),a=[e],s=-1,c=[],p=e,d,f,m=[],y=[];do{s++;let A=s===a.length,I=A&&c.length!==0;if(A){if(d=y.length===0?void 0:m[m.length-1],p=f,f=y.pop(),I)if(i){p=p.slice();let C=0;for(let[F,O]of c){let $=F-C;O===null?(p.splice($,1),C++):p[$]=O}}else{p={...p};for(let[C,F]of c)p[C]=F}s=o.index,a=o.keys,c=o.edits,i=o.inArray,o=o.prev}else if(f){if(d=i?s:a[s],p=f[d],p==null)continue;m.push(d)}let E;if(!Array.isArray(p)){var g,S;(0,$J.isNode)(p)||(0,Plt.devAssert)(!1,`Invalid AST Node: ${(0,Olt.inspect)(p)}.`);let C=A?(g=n.get(p.kind))===null||g===void 0?void 0:g.leave:(S=n.get(p.kind))===null||S===void 0?void 0:S.enter;if(E=C?.call(t,p,d,f,m,y),E===k1)break;if(E===!1){if(!A){m.pop();continue}}else if(E!==void 0&&(c.push([d,E]),!A))if((0,$J.isNode)(E))p=E;else{m.pop();continue}}if(E===void 0&&I&&c.push([d,p]),A)m.pop();else{var x;o={inArray:i,index:s,keys:a,edits:c,prev:o},i=Array.isArray(p),a=i?p:(x=r[p.kind])!==null&&x!==void 0?x:[],s=-1,c=[],f&&y.push(f),f=p}}while(o!==void 0);return c.length!==0?c[c.length-1][1]:e}function Flt(e){let t=new Array(e.length).fill(null),r=Object.create(null);for(let n of Object.values(Rge.Kind)){let o=!1,i=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let c=0;c{"use strict";Object.defineProperty(jJ,"__esModule",{value:!0});jJ.print=jlt;var Llt=d2(),$lt=Fge(),Mlt=Gg();function jlt(e){return(0,Mlt.visit)(e,qlt)}var Blt=80,qlt={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Dt(e.definitions,` -`)},OperationDefinition:{leave(e){let r=ttt(e.variableDefinitions)?Up(`( -`,qc(e.variableDefinitions,` +`)},OperationDefinition:{leave(e){let t=MJ(e.variableDefinitions)?Nr(`( +`,Dt(e.variableDefinitions,` `),` -)`):Up("(",qc(e.variableDefinitions,", "),")"),i=Up("",e.description,` -`)+qc([e.operation,qc([e.name,r]),qc(e.directives," ")]," ");return(i==="query"?"":i+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:r,defaultValue:i,directives:s,description:l})=>Up("",l,` -`)+e+": "+r+Up(" = ",i)+Up(" ",qc(s," "))},SelectionSet:{leave:({selections:e})=>G6(e)},Field:{leave({alias:e,name:r,arguments:i,directives:s,selectionSet:l}){let d=Up("",e,": ")+r,h=d+Up("(",qc(i,", "),")");return h.length>Sfn&&(h=d+Up(`( -`,KDe(qc(i,` +)`):Nr("(",Dt(e.variableDefinitions,", "),")"),r=Nr("",e.description,` +`)+Dt([e.operation,Dt([e.name,t]),Dt(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:o})=>Nr("",o,` +`)+e+": "+t+Nr(" = ",r)+Nr(" ",Dt(n," "))},SelectionSet:{leave:({selections:e})=>zu(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:o}){let i=Nr("",e,": ")+t,a=i+Nr("(",Dt(r,", "),")");return a.length>Blt&&(a=i+Nr(`( +`,JO(Dt(r,` `)),` -)`)),qc([h,qc(s," "),l]," ")}},Argument:{leave:({name:e,value:r})=>e+": "+r},FragmentSpread:{leave:({name:e,directives:r})=>"..."+e+Up(" ",qc(r," "))},InlineFragment:{leave:({typeCondition:e,directives:r,selectionSet:i})=>qc(["...",Up("on ",e),qc(r," "),i]," ")},FragmentDefinition:{leave:({name:e,typeCondition:r,variableDefinitions:i,directives:s,selectionSet:l,description:d})=>Up("",d,` -`)+`fragment ${e}${Up("(",qc(i,", "),")")} on ${r} ${Up("",qc(s," ")," ")}`+l},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:r})=>r?(0,hfn.printBlockString)(e):(0,gfn.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+qc(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+qc(e,", ")+"}"},ObjectField:{leave:({name:e,value:r})=>e+": "+r},Directive:{leave:({name:e,arguments:r})=>"@"+e+Up("(",qc(r,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:r,operationTypes:i})=>Up("",e,` -`)+qc(["schema",qc(r," "),G6(i)]," ")},OperationTypeDefinition:{leave:({operation:e,type:r})=>e+": "+r},ScalarTypeDefinition:{leave:({description:e,name:r,directives:i})=>Up("",e,` -`)+qc(["scalar",r,qc(i," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:r,interfaces:i,directives:s,fields:l})=>Up("",e,` -`)+qc(["type",r,Up("implements ",qc(i," & ")),qc(s," "),G6(l)]," ")},FieldDefinition:{leave:({description:e,name:r,arguments:i,type:s,directives:l})=>Up("",e,` -`)+r+(ttt(i)?Up(`( -`,KDe(qc(i,` +)`)),Dt([a,Dt(n," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Nr(" ",Dt(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>Dt(["...",Nr("on ",e),Dt(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:o,description:i})=>Nr("",i,` +`)+`fragment ${e}${Nr("(",Dt(r,", "),")")} on ${t} ${Nr("",Dt(n," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,Llt.printBlockString)(e):(0,$lt.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Dt(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Dt(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Nr("(",Dt(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>Nr("",e,` +`)+Dt(["schema",Dt(t," "),zu(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>Nr("",e,` +`)+Dt(["scalar",t,Dt(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:o})=>Nr("",e,` +`)+Dt(["type",t,Nr("implements ",Dt(r," & ")),Dt(n," "),zu(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:o})=>Nr("",e,` +`)+t+(MJ(r)?Nr(`( +`,JO(Dt(r,` `)),` -)`):Up("(",qc(i,", "),")"))+": "+s+Up(" ",qc(l," "))},InputValueDefinition:{leave:({description:e,name:r,type:i,defaultValue:s,directives:l})=>Up("",e,` -`)+qc([r+": "+i,Up("= ",s),qc(l," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:r,interfaces:i,directives:s,fields:l})=>Up("",e,` -`)+qc(["interface",r,Up("implements ",qc(i," & ")),qc(s," "),G6(l)]," ")},UnionTypeDefinition:{leave:({description:e,name:r,directives:i,types:s})=>Up("",e,` -`)+qc(["union",r,qc(i," "),Up("= ",qc(s," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:r,directives:i,values:s})=>Up("",e,` -`)+qc(["enum",r,qc(i," "),G6(s)]," ")},EnumValueDefinition:{leave:({description:e,name:r,directives:i})=>Up("",e,` -`)+qc([r,qc(i," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:r,directives:i,fields:s})=>Up("",e,` -`)+qc(["input",r,qc(i," "),G6(s)]," ")},DirectiveDefinition:{leave:({description:e,name:r,arguments:i,repeatable:s,locations:l})=>Up("",e,` -`)+"directive @"+r+(ttt(i)?Up(`( -`,KDe(qc(i,` +)`):Nr("(",Dt(r,", "),")"))+": "+n+Nr(" ",Dt(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:o})=>Nr("",e,` +`)+Dt([t+": "+r,Nr("= ",n),Dt(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:o})=>Nr("",e,` +`)+Dt(["interface",t,Nr("implements ",Dt(r," & ")),Dt(n," "),zu(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>Nr("",e,` +`)+Dt(["union",t,Dt(r," "),Nr("= ",Dt(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>Nr("",e,` +`)+Dt(["enum",t,Dt(r," "),zu(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>Nr("",e,` +`)+Dt([t,Dt(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>Nr("",e,` +`)+Dt(["input",t,Dt(r," "),zu(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:o})=>Nr("",e,` +`)+"directive @"+t+(MJ(r)?Nr(`( +`,JO(Dt(r,` `)),` -)`):Up("(",qc(i,", "),")"))+(s?" repeatable":"")+" on "+qc(l," | ")},SchemaExtension:{leave:({directives:e,operationTypes:r})=>qc(["extend schema",qc(e," "),G6(r)]," ")},ScalarTypeExtension:{leave:({name:e,directives:r})=>qc(["extend scalar",e,qc(r," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:r,directives:i,fields:s})=>qc(["extend type",e,Up("implements ",qc(r," & ")),qc(i," "),G6(s)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:r,directives:i,fields:s})=>qc(["extend interface",e,Up("implements ",qc(r," & ")),qc(i," "),G6(s)]," ")},UnionTypeExtension:{leave:({name:e,directives:r,types:i})=>qc(["extend union",e,qc(r," "),Up("= ",qc(i," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:r,values:i})=>qc(["extend enum",e,qc(r," "),G6(i)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:r,fields:i})=>qc(["extend input",e,qc(r," "),G6(i)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:r})=>qc([e,Up(".",r)])},ArgumentCoordinate:{leave:({name:e,fieldName:r,argumentName:i})=>qc([e,Up(".",r),Up("(",i,":)")])},DirectiveCoordinate:{leave:({name:e})=>qc(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:r})=>qc(["@",e,Up("(",r,":)")])}};function qc(e,r=""){var i;return(i=e?.filter(s=>s).join(r))!==null&&i!==void 0?i:""}function G6(e){return Up(`{ -`,KDe(qc(e,` +)`):Nr("(",Dt(r,", "),")"))+(n?" repeatable":"")+" on "+Dt(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Dt(["extend schema",Dt(e," "),zu(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Dt(["extend scalar",e,Dt(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>Dt(["extend type",e,Nr("implements ",Dt(t," & ")),Dt(r," "),zu(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>Dt(["extend interface",e,Nr("implements ",Dt(t," & ")),Dt(r," "),zu(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>Dt(["extend union",e,Dt(t," "),Nr("= ",Dt(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>Dt(["extend enum",e,Dt(t," "),zu(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>Dt(["extend input",e,Dt(t," "),zu(r)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>Dt([e,Nr(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>Dt([e,Nr(".",t),Nr("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>Dt(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>Dt(["@",e,Nr("(",t,":)")])}};function Dt(e,t=""){var r;return(r=e?.filter(n=>n).join(t))!==null&&r!==void 0?r:""}function zu(e){return Nr(`{ +`,JO(Dt(e,` `)),` -}`)}function Up(e,r,i=""){return r!=null&&r!==""?e+r+i:""}function KDe(e){return Up(" ",e.replace(/\n/g,` - `))}function ttt(e){var r;return(r=e?.some(i=>i.includes(` -`)))!==null&&r!==void 0?r:!1}});var ott=dr(itt=>{"use strict";Object.defineProperty(itt,"__esModule",{value:!0});itt.valueFromASTUntyped=ntt;var xfn=M_e(),t9=Md();function ntt(e,r){switch(e.kind){case t9.Kind.NULL:return null;case t9.Kind.INT:return parseInt(e.value,10);case t9.Kind.FLOAT:return parseFloat(e.value);case t9.Kind.STRING:case t9.Kind.ENUM:case t9.Kind.BOOLEAN:return e.value;case t9.Kind.LIST:return e.values.map(i=>ntt(i,r));case t9.Kind.OBJECT:return(0,xfn.keyValMap)(e.fields,i=>i.name.value,i=>ntt(i.value,r));case t9.Kind.VARIABLE:return r?.[e.name.value]}}});var B_e=dr(ZDe=>{"use strict";Object.defineProperty(ZDe,"__esModule",{value:!0});ZDe.assertEnumValueName=Tfn;ZDe.assertName=Qzt;var Hzt=J2(),QDe=Cu(),Kzt=A_e();function Qzt(e){if(e!=null||(0,Hzt.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,Hzt.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new QDe.GraphQLError("Expected name to be a non-empty string.");for(let r=1;r{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.GraphQLUnionType=Fl.GraphQLScalarType=Fl.GraphQLObjectType=Fl.GraphQLNonNull=Fl.GraphQLList=Fl.GraphQLInterfaceType=Fl.GraphQLInputObjectType=Fl.GraphQLEnumType=void 0;Fl.argsToArgsConfig=lqt;Fl.assertAbstractType=qfn;Fl.assertCompositeType=zfn;Fl.assertEnumType=Rfn;Fl.assertInputObjectType=Lfn;Fl.assertInputType=Bfn;Fl.assertInterfaceType=Ofn;Fl.assertLeafType=Ufn;Fl.assertListType=Mfn;Fl.assertNamedType=Gfn;Fl.assertNonNullType=jfn;Fl.assertNullableType=Vfn;Fl.assertObjectType=Nfn;Fl.assertOutputType=$fn;Fl.assertScalarType=Pfn;Fl.assertType=Ifn;Fl.assertUnionType=Ffn;Fl.assertWrappingType=Jfn;Fl.defineArguments=sqt;Fl.getNamedType=Hfn;Fl.getNullableType=Wfn;Fl.isAbstractType=nqt;Fl.isCompositeType=rqt;Fl.isEnumType=JV;Fl.isInputObjectType=U_e;Fl.isInputType=att;Fl.isInterfaceType=zV;Fl.isLeafType=tqt;Fl.isListType=lAe;Fl.isNamedType=iqt;Fl.isNonNullType=RB;Fl.isNullableType=ctt;Fl.isObjectType=Tee;Fl.isOutputType=stt;Fl.isRequiredArgument=Kfn;Fl.isRequiredInputField=Xfn;Fl.isScalarType=UV;Fl.isType=cAe;Fl.isUnionType=qV;Fl.isWrappingType=z_e;Fl.resolveObjMapThunk=utt;Fl.resolveReadonlyArrayThunk=ltt;var nb=J2(),Efn=IB(),Zzt=Jzt(),ag=gm(),FB=F_e(),kfn=C8(),Cfn=PB(),eqt=M_e(),sAe=VDe(),Dfn=NB(),D8=GDe(),$_e=Cu(),Afn=Md(),Xzt=FD(),wfn=ott(),A8=B_e();function cAe(e){return UV(e)||Tee(e)||zV(e)||qV(e)||JV(e)||U_e(e)||lAe(e)||RB(e)}function Ifn(e){if(!cAe(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL type.`);return e}function UV(e){return(0,FB.instanceOf)(e,tAe)}function Pfn(e){if(!UV(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL Scalar type.`);return e}function Tee(e){return(0,FB.instanceOf)(e,rAe)}function Nfn(e){if(!Tee(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL Object type.`);return e}function zV(e){return(0,FB.instanceOf)(e,nAe)}function Ofn(e){if(!zV(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL Interface type.`);return e}function qV(e){return(0,FB.instanceOf)(e,iAe)}function Ffn(e){if(!qV(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL Union type.`);return e}function JV(e){return(0,FB.instanceOf)(e,oAe)}function Rfn(e){if(!JV(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL Enum type.`);return e}function U_e(e){return(0,FB.instanceOf)(e,aAe)}function Lfn(e){if(!U_e(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL Input Object type.`);return e}function lAe(e){return(0,FB.instanceOf)(e,YDe)}function Mfn(e){if(!lAe(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL List type.`);return e}function RB(e){return(0,FB.instanceOf)(e,eAe)}function jfn(e){if(!RB(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function att(e){return UV(e)||JV(e)||U_e(e)||z_e(e)&&att(e.ofType)}function Bfn(e){if(!att(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL input type.`);return e}function stt(e){return UV(e)||Tee(e)||zV(e)||qV(e)||JV(e)||z_e(e)&&stt(e.ofType)}function $fn(e){if(!stt(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL output type.`);return e}function tqt(e){return UV(e)||JV(e)}function Ufn(e){if(!tqt(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL leaf type.`);return e}function rqt(e){return Tee(e)||zV(e)||qV(e)}function zfn(e){if(!rqt(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL composite type.`);return e}function nqt(e){return zV(e)||qV(e)}function qfn(e){if(!nqt(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL abstract type.`);return e}var YDe=class{constructor(r){cAe(r)||(0,nb.devAssert)(!1,`Expected ${(0,ag.inspect)(r)} to be a GraphQL type.`),this.ofType=r}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};Fl.GraphQLList=YDe;var eAe=class{constructor(r){ctt(r)||(0,nb.devAssert)(!1,`Expected ${(0,ag.inspect)(r)} to be a GraphQL nullable type.`),this.ofType=r}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};Fl.GraphQLNonNull=eAe;function z_e(e){return lAe(e)||RB(e)}function Jfn(e){if(!z_e(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL wrapping type.`);return e}function ctt(e){return cAe(e)&&!RB(e)}function Vfn(e){if(!ctt(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL nullable type.`);return e}function Wfn(e){if(e)return RB(e)?e.ofType:e}function iqt(e){return UV(e)||Tee(e)||zV(e)||qV(e)||JV(e)||U_e(e)}function Gfn(e){if(!iqt(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL named type.`);return e}function Hfn(e){if(e){let r=e;for(;z_e(r);)r=r.ofType;return r}}function ltt(e){return typeof e=="function"?e():e}function utt(e){return typeof e=="function"?e():e}var tAe=class{constructor(r){var i,s,l,d;let h=(i=r.parseValue)!==null&&i!==void 0?i:Zzt.identityFunc;this.name=(0,A8.assertName)(r.name),this.description=r.description,this.specifiedByURL=r.specifiedByURL,this.serialize=(s=r.serialize)!==null&&s!==void 0?s:Zzt.identityFunc,this.parseValue=h,this.parseLiteral=(l=r.parseLiteral)!==null&&l!==void 0?l:(S,b)=>h((0,wfn.valueFromASTUntyped)(S,b)),this.extensions=(0,D8.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(d=r.extensionASTNodes)!==null&&d!==void 0?d:[],r.specifiedByURL==null||typeof r.specifiedByURL=="string"||(0,nb.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,ag.inspect)(r.specifiedByURL)}.`),r.serialize==null||typeof r.serialize=="function"||(0,nb.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),r.parseLiteral&&(typeof r.parseValue=="function"&&typeof r.parseLiteral=="function"||(0,nb.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Fl.GraphQLScalarType=tAe;var rAe=class{constructor(r){var i;this.name=(0,A8.assertName)(r.name),this.description=r.description,this.isTypeOf=r.isTypeOf,this.extensions=(0,D8.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(i=r.extensionASTNodes)!==null&&i!==void 0?i:[],this._fields=()=>aqt(r),this._interfaces=()=>oqt(r),r.isTypeOf==null||typeof r.isTypeOf=="function"||(0,nb.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,ag.inspect)(r.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:cqt(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Fl.GraphQLObjectType=rAe;function oqt(e){var r;let i=ltt((r=e.interfaces)!==null&&r!==void 0?r:[]);return Array.isArray(i)||(0,nb.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),i}function aqt(e){let r=utt(e.fields);return xee(r)||(0,nb.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,sAe.mapValue)(r,(i,s)=>{var l;xee(i)||(0,nb.devAssert)(!1,`${e.name}.${s} field config must be an object.`),i.resolve==null||typeof i.resolve=="function"||(0,nb.devAssert)(!1,`${e.name}.${s} field resolver must be a function if provided, but got: ${(0,ag.inspect)(i.resolve)}.`);let d=(l=i.args)!==null&&l!==void 0?l:{};return xee(d)||(0,nb.devAssert)(!1,`${e.name}.${s} args must be an object with argument names as keys.`),{name:(0,A8.assertName)(s),description:i.description,type:i.type,args:sqt(d),resolve:i.resolve,subscribe:i.subscribe,deprecationReason:i.deprecationReason,extensions:(0,D8.toObjMap)(i.extensions),astNode:i.astNode}})}function sqt(e){return Object.entries(e).map(([r,i])=>({name:(0,A8.assertName)(r),description:i.description,type:i.type,defaultValue:i.defaultValue,deprecationReason:i.deprecationReason,extensions:(0,D8.toObjMap)(i.extensions),astNode:i.astNode}))}function xee(e){return(0,kfn.isObjectLike)(e)&&!Array.isArray(e)}function cqt(e){return(0,sAe.mapValue)(e,r=>({description:r.description,type:r.type,args:lqt(r.args),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}))}function lqt(e){return(0,eqt.keyValMap)(e,r=>r.name,r=>({description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}))}function Kfn(e){return RB(e.type)&&e.defaultValue===void 0}var nAe=class{constructor(r){var i;this.name=(0,A8.assertName)(r.name),this.description=r.description,this.resolveType=r.resolveType,this.extensions=(0,D8.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(i=r.extensionASTNodes)!==null&&i!==void 0?i:[],this._fields=aqt.bind(void 0,r),this._interfaces=oqt.bind(void 0,r),r.resolveType==null||typeof r.resolveType=="function"||(0,nb.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,ag.inspect)(r.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:cqt(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Fl.GraphQLInterfaceType=nAe;var iAe=class{constructor(r){var i;this.name=(0,A8.assertName)(r.name),this.description=r.description,this.resolveType=r.resolveType,this.extensions=(0,D8.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(i=r.extensionASTNodes)!==null&&i!==void 0?i:[],this._types=Qfn.bind(void 0,r),r.resolveType==null||typeof r.resolveType=="function"||(0,nb.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,ag.inspect)(r.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Fl.GraphQLUnionType=iAe;function Qfn(e){let r=ltt(e.types);return Array.isArray(r)||(0,nb.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),r}var oAe=class{constructor(r){var i;this.name=(0,A8.assertName)(r.name),this.description=r.description,this.extensions=(0,D8.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(i=r.extensionASTNodes)!==null&&i!==void 0?i:[],this._values=typeof r.values=="function"?r.values:Yzt(this.name,r.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=Yzt(this.name,this._values())),this._values}getValue(r){return this._nameLookup===null&&(this._nameLookup=(0,Cfn.keyMap)(this.getValues(),i=>i.name)),this._nameLookup[r]}serialize(r){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(s=>[s.value,s])));let i=this._valueLookup.get(r);if(i===void 0)throw new $_e.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,ag.inspect)(r)}`);return i.name}parseValue(r){if(typeof r!="string"){let s=(0,ag.inspect)(r);throw new $_e.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${s}.`+XDe(this,s))}let i=this.getValue(r);if(i==null)throw new $_e.GraphQLError(`Value "${r}" does not exist in "${this.name}" enum.`+XDe(this,r));return i.value}parseLiteral(r,i){if(r.kind!==Afn.Kind.ENUM){let l=(0,Xzt.print)(r);throw new $_e.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${l}.`+XDe(this,l),{nodes:r})}let s=this.getValue(r.value);if(s==null){let l=(0,Xzt.print)(r);throw new $_e.GraphQLError(`Value "${l}" does not exist in "${this.name}" enum.`+XDe(this,l),{nodes:r})}return s.value}toConfig(){let r=(0,eqt.keyValMap)(this.getValues(),i=>i.name,i=>({description:i.description,value:i.value,deprecationReason:i.deprecationReason,extensions:i.extensions,astNode:i.astNode}));return{name:this.name,description:this.description,values:r,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Fl.GraphQLEnumType=oAe;function XDe(e,r){let i=e.getValues().map(l=>l.name),s=(0,Dfn.suggestionList)(r,i);return(0,Efn.didYouMean)("the enum value",s)}function Yzt(e,r){return xee(r)||(0,nb.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(r).map(([i,s])=>(xee(s)||(0,nb.devAssert)(!1,`${e}.${i} must refer to an object with a "value" key representing an internal value but got: ${(0,ag.inspect)(s)}.`),{name:(0,A8.assertEnumValueName)(i),description:s.description,value:s.value!==void 0?s.value:i,deprecationReason:s.deprecationReason,extensions:(0,D8.toObjMap)(s.extensions),astNode:s.astNode}))}var aAe=class{constructor(r){var i,s;this.name=(0,A8.assertName)(r.name),this.description=r.description,this.extensions=(0,D8.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(i=r.extensionASTNodes)!==null&&i!==void 0?i:[],this.isOneOf=(s=r.isOneOf)!==null&&s!==void 0?s:!1,this._fields=Zfn.bind(void 0,r)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let r=(0,sAe.mapValue)(this.getFields(),i=>({description:i.description,type:i.type,defaultValue:i.defaultValue,deprecationReason:i.deprecationReason,extensions:i.extensions,astNode:i.astNode}));return{name:this.name,description:this.description,fields:r,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};Fl.GraphQLInputObjectType=aAe;function Zfn(e){let r=utt(e.fields);return xee(r)||(0,nb.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,sAe.mapValue)(r,(i,s)=>(!("resolve"in i)||(0,nb.devAssert)(!1,`${e.name}.${s} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,A8.assertName)(s),description:i.description,type:i.type,defaultValue:i.defaultValue,deprecationReason:i.deprecationReason,extensions:(0,D8.toObjMap)(i.extensions),astNode:i.astNode}))}function Xfn(e){return RB(e.type)&&e.defaultValue===void 0}});var J_e=dr(q_e=>{"use strict";Object.defineProperty(q_e,"__esModule",{value:!0});q_e.doTypesOverlap=Yfn;q_e.isEqualType=ptt;q_e.isTypeSubTypeOf=uAe;var CT=jd();function ptt(e,r){return e===r?!0:(0,CT.isNonNullType)(e)&&(0,CT.isNonNullType)(r)||(0,CT.isListType)(e)&&(0,CT.isListType)(r)?ptt(e.ofType,r.ofType):!1}function uAe(e,r,i){return r===i?!0:(0,CT.isNonNullType)(i)?(0,CT.isNonNullType)(r)?uAe(e,r.ofType,i.ofType):!1:(0,CT.isNonNullType)(r)?uAe(e,r.ofType,i):(0,CT.isListType)(i)?(0,CT.isListType)(r)?uAe(e,r.ofType,i.ofType):!1:(0,CT.isListType)(r)?!1:(0,CT.isAbstractType)(i)&&((0,CT.isInterfaceType)(r)||(0,CT.isObjectType)(r))&&e.isSubType(i,r)}function Yfn(e,r,i){return r===i?!0:(0,CT.isAbstractType)(r)?(0,CT.isAbstractType)(i)?e.getPossibleTypes(r).some(s=>e.isSubType(i,s)):e.isSubType(r,i):(0,CT.isAbstractType)(i)?e.isSubType(i,r):!1}});var w8=dr(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0});Zv.GraphQLString=Zv.GraphQLInt=Zv.GraphQLID=Zv.GraphQLFloat=Zv.GraphQLBoolean=Zv.GRAPHQL_MIN_INT=Zv.GRAPHQL_MAX_INT=void 0;Zv.isSpecifiedScalarType=emn;Zv.specifiedScalarTypes=void 0;var H6=gm(),uqt=C8(),ib=Cu(),VV=Md(),V_e=FD(),W_e=jd(),pAe=2147483647;Zv.GRAPHQL_MAX_INT=pAe;var _Ae=-2147483648;Zv.GRAPHQL_MIN_INT=_Ae;var pqt=new W_e.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let r=G_e(e);if(typeof r=="boolean")return r?1:0;let i=r;if(typeof r=="string"&&r!==""&&(i=Number(r)),typeof i!="number"||!Number.isInteger(i))throw new ib.GraphQLError(`Int cannot represent non-integer value: ${(0,H6.inspect)(r)}`);if(i>pAe||i<_Ae)throw new ib.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,H6.inspect)(r));return i},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new ib.GraphQLError(`Int cannot represent non-integer value: ${(0,H6.inspect)(e)}`);if(e>pAe||e<_Ae)throw new ib.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==VV.Kind.INT)throw new ib.GraphQLError(`Int cannot represent non-integer value: ${(0,V_e.print)(e)}`,{nodes:e});let r=parseInt(e.value,10);if(r>pAe||r<_Ae)throw new ib.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return r}});Zv.GraphQLInt=pqt;var _qt=new W_e.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){let r=G_e(e);if(typeof r=="boolean")return r?1:0;let i=r;if(typeof r=="string"&&r!==""&&(i=Number(r)),typeof i!="number"||!Number.isFinite(i))throw new ib.GraphQLError(`Float cannot represent non numeric value: ${(0,H6.inspect)(r)}`);return i},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new ib.GraphQLError(`Float cannot represent non numeric value: ${(0,H6.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==VV.Kind.FLOAT&&e.kind!==VV.Kind.INT)throw new ib.GraphQLError(`Float cannot represent non numeric value: ${(0,V_e.print)(e)}`,e);return parseFloat(e.value)}});Zv.GraphQLFloat=_qt;var dqt=new W_e.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){let r=G_e(e);if(typeof r=="string")return r;if(typeof r=="boolean")return r?"true":"false";if(typeof r=="number"&&Number.isFinite(r))return r.toString();throw new ib.GraphQLError(`String cannot represent value: ${(0,H6.inspect)(e)}`)},parseValue(e){if(typeof e!="string")throw new ib.GraphQLError(`String cannot represent a non string value: ${(0,H6.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==VV.Kind.STRING)throw new ib.GraphQLError(`String cannot represent a non string value: ${(0,V_e.print)(e)}`,{nodes:e});return e.value}});Zv.GraphQLString=dqt;var fqt=new W_e.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let r=G_e(e);if(typeof r=="boolean")return r;if(Number.isFinite(r))return r!==0;throw new ib.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,H6.inspect)(r)}`)},parseValue(e){if(typeof e!="boolean")throw new ib.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,H6.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==VV.Kind.BOOLEAN)throw new ib.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,V_e.print)(e)}`,{nodes:e});return e.value}});Zv.GraphQLBoolean=fqt;var mqt=new W_e.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){let r=G_e(e);if(typeof r=="string")return r;if(Number.isInteger(r))return String(r);throw new ib.GraphQLError(`ID cannot represent value: ${(0,H6.inspect)(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new ib.GraphQLError(`ID cannot represent value: ${(0,H6.inspect)(e)}`)},parseLiteral(e){if(e.kind!==VV.Kind.STRING&&e.kind!==VV.Kind.INT)throw new ib.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,V_e.print)(e),{nodes:e});return e.value}});Zv.GraphQLID=mqt;var hqt=Object.freeze([dqt,pqt,_qt,fqt,mqt]);Zv.specifiedScalarTypes=hqt;function emn(e){return hqt.some(({name:r})=>e.name===r)}function G_e(e){if((0,uqt.isObjectLike)(e)){if(typeof e.valueOf=="function"){let r=e.valueOf();if(!(0,uqt.isObjectLike)(r))return r}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var kk=dr(w1=>{"use strict";Object.defineProperty(w1,"__esModule",{value:!0});w1.GraphQLSpecifiedByDirective=w1.GraphQLSkipDirective=w1.GraphQLOneOfDirective=w1.GraphQLIncludeDirective=w1.GraphQLDirective=w1.GraphQLDeprecatedDirective=w1.DEFAULT_DEPRECATION_REASON=void 0;w1.assertDirective=amn;w1.isDirective=yqt;w1.isSpecifiedDirective=smn;w1.specifiedDirectives=void 0;var gqt=J2(),tmn=gm(),rmn=F_e(),nmn=C8(),imn=GDe(),sI=yee(),omn=B_e(),H_e=jd(),dAe=w8();function yqt(e){return(0,rmn.instanceOf)(e,r9)}function amn(e){if(!yqt(e))throw new Error(`Expected ${(0,tmn.inspect)(e)} to be a GraphQL directive.`);return e}var r9=class{constructor(r){var i,s;this.name=(0,omn.assertName)(r.name),this.description=r.description,this.locations=r.locations,this.isRepeatable=(i=r.isRepeatable)!==null&&i!==void 0?i:!1,this.extensions=(0,imn.toObjMap)(r.extensions),this.astNode=r.astNode,Array.isArray(r.locations)||(0,gqt.devAssert)(!1,`@${r.name} locations must be an Array.`);let l=(s=r.args)!==null&&s!==void 0?s:{};(0,nmn.isObjectLike)(l)&&!Array.isArray(l)||(0,gqt.devAssert)(!1,`@${r.name} args must be an object with argument names as keys.`),this.args=(0,H_e.defineArguments)(l)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,H_e.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};w1.GraphQLDirective=r9;var vqt=new r9({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[sI.DirectiveLocation.FIELD,sI.DirectiveLocation.FRAGMENT_SPREAD,sI.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new H_e.GraphQLNonNull(dAe.GraphQLBoolean),description:"Included when true."}}});w1.GraphQLIncludeDirective=vqt;var Sqt=new r9({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[sI.DirectiveLocation.FIELD,sI.DirectiveLocation.FRAGMENT_SPREAD,sI.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new H_e.GraphQLNonNull(dAe.GraphQLBoolean),description:"Skipped when true."}}});w1.GraphQLSkipDirective=Sqt;var bqt="No longer supported";w1.DEFAULT_DEPRECATION_REASON=bqt;var xqt=new r9({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[sI.DirectiveLocation.FIELD_DEFINITION,sI.DirectiveLocation.ARGUMENT_DEFINITION,sI.DirectiveLocation.INPUT_FIELD_DEFINITION,sI.DirectiveLocation.ENUM_VALUE],args:{reason:{type:dAe.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:bqt}}});w1.GraphQLDeprecatedDirective=xqt;var Tqt=new r9({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[sI.DirectiveLocation.SCALAR],args:{url:{type:new H_e.GraphQLNonNull(dAe.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});w1.GraphQLSpecifiedByDirective=Tqt;var Eqt=new r9({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[sI.DirectiveLocation.INPUT_OBJECT],args:{}});w1.GraphQLOneOfDirective=Eqt;var kqt=Object.freeze([vqt,Sqt,xqt,Tqt,Eqt]);w1.specifiedDirectives=kqt;function smn(e){return kqt.some(({name:r})=>r===e.name)}});var fAe=dr(_tt=>{"use strict";Object.defineProperty(_tt,"__esModule",{value:!0});_tt.isIterableObject=cmn;function cmn(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}});var Z_e=dr(dtt=>{"use strict";Object.defineProperty(dtt,"__esModule",{value:!0});dtt.astFromValue=Q_e;var Cqt=gm(),lmn=kT(),umn=fAe(),pmn=C8(),cI=Md(),K_e=jd(),_mn=w8();function Q_e(e,r){if((0,K_e.isNonNullType)(r)){let i=Q_e(e,r.ofType);return i?.kind===cI.Kind.NULL?null:i}if(e===null)return{kind:cI.Kind.NULL};if(e===void 0)return null;if((0,K_e.isListType)(r)){let i=r.ofType;if((0,umn.isIterableObject)(e)){let s=[];for(let l of e){let d=Q_e(l,i);d!=null&&s.push(d)}return{kind:cI.Kind.LIST,values:s}}return Q_e(e,i)}if((0,K_e.isInputObjectType)(r)){if(!(0,pmn.isObjectLike)(e))return null;let i=[];for(let s of Object.values(r.getFields())){let l=Q_e(e[s.name],s.type);l&&i.push({kind:cI.Kind.OBJECT_FIELD,name:{kind:cI.Kind.NAME,value:s.name},value:l})}return{kind:cI.Kind.OBJECT,fields:i}}if((0,K_e.isLeafType)(r)){let i=r.serialize(e);if(i==null)return null;if(typeof i=="boolean")return{kind:cI.Kind.BOOLEAN,value:i};if(typeof i=="number"&&Number.isFinite(i)){let s=String(i);return Dqt.test(s)?{kind:cI.Kind.INT,value:s}:{kind:cI.Kind.FLOAT,value:s}}if(typeof i=="string")return(0,K_e.isEnumType)(r)?{kind:cI.Kind.ENUM,value:i}:r===_mn.GraphQLID&&Dqt.test(i)?{kind:cI.Kind.INT,value:i}:{kind:cI.Kind.STRING,value:i};throw new TypeError(`Cannot convert value to AST: ${(0,Cqt.inspect)(i)}.`)}(0,lmn.invariant)(!1,"Unexpected input type: "+(0,Cqt.inspect)(r))}var Dqt=/^-?(?:0|[1-9][0-9]*)$/});var uI=dr($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.introspectionTypes=$m.__TypeKind=$m.__Type=$m.__Schema=$m.__InputValue=$m.__Field=$m.__EnumValue=$m.__DirectiveLocation=$m.__Directive=$m.TypeNameMetaFieldDef=$m.TypeMetaFieldDef=$m.TypeKind=$m.SchemaMetaFieldDef=void 0;$m.isIntrospectionType=Smn;var dmn=gm(),fmn=kT(),Xv=yee(),mmn=FD(),hmn=Z_e(),pl=jd(),Oh=w8(),ftt=new pl.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Oh.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new pl.GraphQLNonNull(new pl.GraphQLList(new pl.GraphQLNonNull(lI))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new pl.GraphQLNonNull(lI),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:lI,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:lI,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new pl.GraphQLNonNull(new pl.GraphQLList(new pl.GraphQLNonNull(mtt))),resolve:e=>e.getDirectives()}})});$m.__Schema=ftt;var mtt=new pl.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. +}`)}function Nr(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function JO(e){return Nr(" ",e.replace(/\n/g,` + `))}function MJ(e){var t;return(t=e?.some(r=>r.includes(` +`)))!==null&&t!==void 0?t:!1}});var UJ=L(qJ=>{"use strict";Object.defineProperty(qJ,"__esModule",{value:!0});qJ.valueFromASTUntyped=BJ;var Ult=S2(),of=Sn();function BJ(e,t){switch(e.kind){case of.Kind.NULL:return null;case of.Kind.INT:return parseInt(e.value,10);case of.Kind.FLOAT:return parseFloat(e.value);case of.Kind.STRING:case of.Kind.ENUM:case of.Kind.BOOLEAN:return e.value;case of.Kind.LIST:return e.values.map(r=>BJ(r,t));case of.Kind.OBJECT:return(0,Ult.keyValMap)(e.fields,r=>r.name.value,r=>BJ(r.value,t));case of.Kind.VARIABLE:return t?.[e.name.value]}}});var b2=L(GO=>{"use strict";Object.defineProperty(GO,"__esModule",{value:!0});GO.assertEnumValueName=zlt;GO.assertName=Mge;var Lge=Ls(),KO=ar(),$ge=u2();function Mge(e){if(e!=null||(0,Lge.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,Lge.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new KO.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.GraphQLUnionType=zt.GraphQLScalarType=zt.GraphQLObjectType=zt.GraphQLNonNull=zt.GraphQLList=zt.GraphQLInterfaceType=zt.GraphQLInputObjectType=zt.GraphQLEnumType=void 0;zt.argsToArgsConfig=Qge;zt.assertAbstractType=lut;zt.assertCompositeType=cut;zt.assertEnumType=tut;zt.assertInputObjectType=rut;zt.assertInputType=iut;zt.assertInterfaceType=Ylt;zt.assertLeafType=sut;zt.assertListType=nut;zt.assertNamedType=_ut;zt.assertNonNullType=out;zt.assertNullableType=put;zt.assertObjectType=Xlt;zt.assertOutputType=aut;zt.assertScalarType=Qlt;zt.assertType=Wlt;zt.assertUnionType=eut;zt.assertWrappingType=uut;zt.defineArguments=Zge;zt.getNamedType=fut;zt.getNullableType=dut;zt.isAbstractType=Jge;zt.isCompositeType=Vge;zt.isEnumType=Qg;zt.isInputObjectType=E2;zt.isInputType=zJ;zt.isInterfaceType=Zg;zt.isLeafType=zge;zt.isListType=i4;zt.isNamedType=Kge;zt.isNonNullType=Eh;zt.isNullableType=JJ;zt.isObjectType=P1;zt.isOutputType=VJ;zt.isRequiredArgument=mut;zt.isRequiredInputField=gut;zt.isScalarType=Hg;zt.isType=o4;zt.isUnionType=Wg;zt.isWrappingType=T2;zt.resolveObjMapThunk=GJ;zt.resolveReadonlyArrayThunk=KJ;var ha=Ls(),Vlt=gh(),jge=Oge(),Po=eo(),xh=h2(),Jlt=hd(),Klt=Sh(),Uge=S2(),n4=qO(),Glt=vh(),yd=zO(),x2=ar(),Hlt=Sn(),Bge=Gc(),Zlt=UJ(),gd=b2();function o4(e){return Hg(e)||P1(e)||Zg(e)||Wg(e)||Qg(e)||E2(e)||i4(e)||Eh(e)}function Wlt(e){if(!o4(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL type.`);return e}function Hg(e){return(0,xh.instanceOf)(e,QO)}function Qlt(e){if(!Hg(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Scalar type.`);return e}function P1(e){return(0,xh.instanceOf)(e,XO)}function Xlt(e){if(!P1(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Object type.`);return e}function Zg(e){return(0,xh.instanceOf)(e,YO)}function Ylt(e){if(!Zg(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Interface type.`);return e}function Wg(e){return(0,xh.instanceOf)(e,e4)}function eut(e){if(!Wg(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Union type.`);return e}function Qg(e){return(0,xh.instanceOf)(e,t4)}function tut(e){if(!Qg(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Enum type.`);return e}function E2(e){return(0,xh.instanceOf)(e,r4)}function rut(e){if(!E2(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Input Object type.`);return e}function i4(e){return(0,xh.instanceOf)(e,ZO)}function nut(e){if(!i4(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL List type.`);return e}function Eh(e){return(0,xh.instanceOf)(e,WO)}function out(e){if(!Eh(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function zJ(e){return Hg(e)||Qg(e)||E2(e)||T2(e)&&zJ(e.ofType)}function iut(e){if(!zJ(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL input type.`);return e}function VJ(e){return Hg(e)||P1(e)||Zg(e)||Wg(e)||Qg(e)||T2(e)&&VJ(e.ofType)}function aut(e){if(!VJ(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL output type.`);return e}function zge(e){return Hg(e)||Qg(e)}function sut(e){if(!zge(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL leaf type.`);return e}function Vge(e){return P1(e)||Zg(e)||Wg(e)}function cut(e){if(!Vge(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL composite type.`);return e}function Jge(e){return Zg(e)||Wg(e)}function lut(e){if(!Jge(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL abstract type.`);return e}var ZO=class{constructor(t){o4(t)||(0,ha.devAssert)(!1,`Expected ${(0,Po.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};zt.GraphQLList=ZO;var WO=class{constructor(t){JJ(t)||(0,ha.devAssert)(!1,`Expected ${(0,Po.inspect)(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};zt.GraphQLNonNull=WO;function T2(e){return i4(e)||Eh(e)}function uut(e){if(!T2(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL wrapping type.`);return e}function JJ(e){return o4(e)&&!Eh(e)}function put(e){if(!JJ(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL nullable type.`);return e}function dut(e){if(e)return Eh(e)?e.ofType:e}function Kge(e){return Hg(e)||P1(e)||Zg(e)||Wg(e)||Qg(e)||E2(e)}function _ut(e){if(!Kge(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL named type.`);return e}function fut(e){if(e){let t=e;for(;T2(t);)t=t.ofType;return t}}function KJ(e){return typeof e=="function"?e():e}function GJ(e){return typeof e=="function"?e():e}var QO=class{constructor(t){var r,n,o,i;let a=(r=t.parseValue)!==null&&r!==void 0?r:jge.identityFunc;this.name=(0,gd.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(n=t.serialize)!==null&&n!==void 0?n:jge.identityFunc,this.parseValue=a,this.parseLiteral=(o=t.parseLiteral)!==null&&o!==void 0?o:(s,c)=>a((0,Zlt.valueFromASTUntyped)(s,c)),this.extensions=(0,yd.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(i=t.extensionASTNodes)!==null&&i!==void 0?i:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,ha.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,Po.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,ha.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||(0,ha.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};zt.GraphQLScalarType=QO;var XO=class{constructor(t){var r;this.name=(0,gd.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,yd.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=()=>Hge(t),this._interfaces=()=>Gge(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,ha.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,Po.inspect)(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Wge(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};zt.GraphQLObjectType=XO;function Gge(e){var t;let r=KJ((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(r)||(0,ha.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),r}function Hge(e){let t=GJ(e.fields);return C1(t)||(0,ha.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,n4.mapValue)(t,(r,n)=>{var o;C1(r)||(0,ha.devAssert)(!1,`${e.name}.${n} field config must be an object.`),r.resolve==null||typeof r.resolve=="function"||(0,ha.devAssert)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,Po.inspect)(r.resolve)}.`);let i=(o=r.args)!==null&&o!==void 0?o:{};return C1(i)||(0,ha.devAssert)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,gd.assertName)(n),description:r.description,type:r.type,args:Zge(i),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:(0,yd.toObjMap)(r.extensions),astNode:r.astNode}})}function Zge(e){return Object.entries(e).map(([t,r])=>({name:(0,gd.assertName)(t),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:(0,yd.toObjMap)(r.extensions),astNode:r.astNode}))}function C1(e){return(0,Jlt.isObjectLike)(e)&&!Array.isArray(e)}function Wge(e){return(0,n4.mapValue)(e,t=>({description:t.description,type:t.type,args:Qge(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function Qge(e){return(0,Uge.keyValMap)(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function mut(e){return Eh(e.type)&&e.defaultValue===void 0}var YO=class{constructor(t){var r;this.name=(0,gd.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,yd.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=Hge.bind(void 0,t),this._interfaces=Gge.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,ha.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Po.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Wge(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};zt.GraphQLInterfaceType=YO;var e4=class{constructor(t){var r;this.name=(0,gd.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,yd.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._types=hut.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,ha.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Po.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};zt.GraphQLUnionType=e4;function hut(e){let t=KJ(e.types);return Array.isArray(t)||(0,ha.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var t4=class{constructor(t){var r;this.name=(0,gd.assertName)(t.name),this.description=t.description,this.extensions=(0,yd.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._values=typeof t.values=="function"?t.values:qge(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=qge(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,Klt.keyMap)(this.getValues(),r=>r.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(n=>[n.value,n])));let r=this._valueLookup.get(t);if(r===void 0)throw new x2.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,Po.inspect)(t)}`);return r.name}parseValue(t){if(typeof t!="string"){let n=(0,Po.inspect)(t);throw new x2.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${n}.`+HO(this,n))}let r=this.getValue(t);if(r==null)throw new x2.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+HO(this,t));return r.value}parseLiteral(t,r){if(t.kind!==Hlt.Kind.ENUM){let o=(0,Bge.print)(t);throw new x2.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${o}.`+HO(this,o),{nodes:t})}let n=this.getValue(t.value);if(n==null){let o=(0,Bge.print)(t);throw new x2.GraphQLError(`Value "${o}" does not exist in "${this.name}" enum.`+HO(this,o),{nodes:t})}return n.value}toConfig(){let t=(0,Uge.keyValMap)(this.getValues(),r=>r.name,r=>({description:r.description,value:r.value,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};zt.GraphQLEnumType=t4;function HO(e,t){let r=e.getValues().map(o=>o.name),n=(0,Glt.suggestionList)(t,r);return(0,Vlt.didYouMean)("the enum value",n)}function qge(e,t){return C1(t)||(0,ha.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([r,n])=>(C1(n)||(0,ha.devAssert)(!1,`${e}.${r} must refer to an object with a "value" key representing an internal value but got: ${(0,Po.inspect)(n)}.`),{name:(0,gd.assertEnumValueName)(r),description:n.description,value:n.value!==void 0?n.value:r,deprecationReason:n.deprecationReason,extensions:(0,yd.toObjMap)(n.extensions),astNode:n.astNode}))}var r4=class{constructor(t){var r,n;this.name=(0,gd.assertName)(t.name),this.description=t.description,this.extensions=(0,yd.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this.isOneOf=(n=t.isOneOf)!==null&&n!==void 0?n:!1,this._fields=yut.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=(0,n4.mapValue)(this.getFields(),r=>({description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};zt.GraphQLInputObjectType=r4;function yut(e){let t=GJ(e.fields);return C1(t)||(0,ha.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,n4.mapValue)(t,(r,n)=>(!("resolve"in r)||(0,ha.devAssert)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,gd.assertName)(n),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:(0,yd.toObjMap)(r.extensions),astNode:r.astNode}))}function gut(e){return Eh(e.type)&&e.defaultValue===void 0}});var A2=L(D2=>{"use strict";Object.defineProperty(D2,"__esModule",{value:!0});D2.doTypesOverlap=Sut;D2.isEqualType=HJ;D2.isTypeSubTypeOf=a4;var ps=vn();function HJ(e,t){return e===t?!0:(0,ps.isNonNullType)(e)&&(0,ps.isNonNullType)(t)||(0,ps.isListType)(e)&&(0,ps.isListType)(t)?HJ(e.ofType,t.ofType):!1}function a4(e,t,r){return t===r?!0:(0,ps.isNonNullType)(r)?(0,ps.isNonNullType)(t)?a4(e,t.ofType,r.ofType):!1:(0,ps.isNonNullType)(t)?a4(e,t.ofType,r):(0,ps.isListType)(r)?(0,ps.isListType)(t)?a4(e,t.ofType,r.ofType):!1:(0,ps.isListType)(t)?!1:(0,ps.isAbstractType)(r)&&((0,ps.isInterfaceType)(t)||(0,ps.isObjectType)(t))&&e.isSubType(r,t)}function Sut(e,t,r){return t===r?!0:(0,ps.isAbstractType)(t)?(0,ps.isAbstractType)(r)?e.getPossibleTypes(t).some(n=>e.isSubType(r,n)):e.isSubType(t,r):(0,ps.isAbstractType)(r)?e.isSubType(r,t):!1}});var Sd=L(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.GraphQLString=ea.GraphQLInt=ea.GraphQLID=ea.GraphQLFloat=ea.GraphQLBoolean=ea.GRAPHQL_MIN_INT=ea.GRAPHQL_MAX_INT=void 0;ea.isSpecifiedScalarType=vut;ea.specifiedScalarTypes=void 0;var Vu=eo(),Xge=hd(),ya=ar(),Xg=Sn(),w2=Gc(),I2=vn(),s4=2147483647;ea.GRAPHQL_MAX_INT=s4;var c4=-2147483648;ea.GRAPHQL_MIN_INT=c4;var Yge=new I2.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=k2(e);if(typeof t=="boolean")return t?1:0;let r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),typeof r!="number"||!Number.isInteger(r))throw new ya.GraphQLError(`Int cannot represent non-integer value: ${(0,Vu.inspect)(t)}`);if(r>s4||rs4||es4||te.name===t)}function k2(e){if((0,Xge.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,Xge.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var pc=L(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.GraphQLSpecifiedByDirective=Ri.GraphQLSkipDirective=Ri.GraphQLOneOfDirective=Ri.GraphQLIncludeDirective=Ri.GraphQLDirective=Ri.GraphQLDeprecatedDirective=Ri.DEFAULT_DEPRECATION_REASON=void 0;Ri.assertDirective=Aut;Ri.isDirective=aSe;Ri.isSpecifiedDirective=wut;Ri.specifiedDirectives=void 0;var iSe=Ls(),but=eo(),xut=h2(),Eut=hd(),Tut=zO(),ql=A1(),Dut=b2(),C2=vn(),l4=Sd();function aSe(e){return(0,xut.instanceOf)(e,af)}function Aut(e){if(!aSe(e))throw new Error(`Expected ${(0,but.inspect)(e)} to be a GraphQL directive.`);return e}var af=class{constructor(t){var r,n;this.name=(0,Dut.assertName)(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(r=t.isRepeatable)!==null&&r!==void 0?r:!1,this.extensions=(0,Tut.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,iSe.devAssert)(!1,`@${t.name} locations must be an Array.`);let o=(n=t.args)!==null&&n!==void 0?n:{};(0,Eut.isObjectLike)(o)&&!Array.isArray(o)||(0,iSe.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,C2.defineArguments)(o)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,C2.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};Ri.GraphQLDirective=af;var sSe=new af({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[ql.DirectiveLocation.FIELD,ql.DirectiveLocation.FRAGMENT_SPREAD,ql.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new C2.GraphQLNonNull(l4.GraphQLBoolean),description:"Included when true."}}});Ri.GraphQLIncludeDirective=sSe;var cSe=new af({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[ql.DirectiveLocation.FIELD,ql.DirectiveLocation.FRAGMENT_SPREAD,ql.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new C2.GraphQLNonNull(l4.GraphQLBoolean),description:"Skipped when true."}}});Ri.GraphQLSkipDirective=cSe;var lSe="No longer supported";Ri.DEFAULT_DEPRECATION_REASON=lSe;var uSe=new af({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[ql.DirectiveLocation.FIELD_DEFINITION,ql.DirectiveLocation.ARGUMENT_DEFINITION,ql.DirectiveLocation.INPUT_FIELD_DEFINITION,ql.DirectiveLocation.ENUM_VALUE],args:{reason:{type:l4.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:lSe}}});Ri.GraphQLDeprecatedDirective=uSe;var pSe=new af({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[ql.DirectiveLocation.SCALAR],args:{url:{type:new C2.GraphQLNonNull(l4.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});Ri.GraphQLSpecifiedByDirective=pSe;var dSe=new af({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[ql.DirectiveLocation.INPUT_OBJECT],args:{}});Ri.GraphQLOneOfDirective=dSe;var _Se=Object.freeze([sSe,cSe,uSe,pSe,dSe]);Ri.specifiedDirectives=_Se;function wut(e){return _Se.some(({name:t})=>t===e.name)}});var u4=L(ZJ=>{"use strict";Object.defineProperty(ZJ,"__esModule",{value:!0});ZJ.isIterableObject=Iut;function Iut(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}});var N2=L(WJ=>{"use strict";Object.defineProperty(WJ,"__esModule",{value:!0});WJ.astFromValue=O2;var fSe=eo(),kut=us(),Cut=u4(),Put=hd(),Ul=Sn(),P2=vn(),Out=Sd();function O2(e,t){if((0,P2.isNonNullType)(t)){let r=O2(e,t.ofType);return r?.kind===Ul.Kind.NULL?null:r}if(e===null)return{kind:Ul.Kind.NULL};if(e===void 0)return null;if((0,P2.isListType)(t)){let r=t.ofType;if((0,Cut.isIterableObject)(e)){let n=[];for(let o of e){let i=O2(o,r);i!=null&&n.push(i)}return{kind:Ul.Kind.LIST,values:n}}return O2(e,r)}if((0,P2.isInputObjectType)(t)){if(!(0,Put.isObjectLike)(e))return null;let r=[];for(let n of Object.values(t.getFields())){let o=O2(e[n.name],n.type);o&&r.push({kind:Ul.Kind.OBJECT_FIELD,name:{kind:Ul.Kind.NAME,value:n.name},value:o})}return{kind:Ul.Kind.OBJECT,fields:r}}if((0,P2.isLeafType)(t)){let r=t.serialize(e);if(r==null)return null;if(typeof r=="boolean")return{kind:Ul.Kind.BOOLEAN,value:r};if(typeof r=="number"&&Number.isFinite(r)){let n=String(r);return mSe.test(n)?{kind:Ul.Kind.INT,value:n}:{kind:Ul.Kind.FLOAT,value:n}}if(typeof r=="string")return(0,P2.isEnumType)(t)?{kind:Ul.Kind.ENUM,value:r}:t===Out.GraphQLID&&mSe.test(r)?{kind:Ul.Kind.INT,value:r}:{kind:Ul.Kind.STRING,value:r};throw new TypeError(`Cannot convert value to AST: ${(0,fSe.inspect)(r)}.`)}(0,kut.invariant)(!1,"Unexpected input type: "+(0,fSe.inspect)(t))}var mSe=/^-?(?:0|[1-9][0-9]*)$/});var Vl=L(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.introspectionTypes=ao.__TypeKind=ao.__Type=ao.__Schema=ao.__InputValue=ao.__Field=ao.__EnumValue=ao.__DirectiveLocation=ao.__Directive=ao.TypeNameMetaFieldDef=ao.TypeMetaFieldDef=ao.TypeKind=ao.SchemaMetaFieldDef=void 0;ao.isIntrospectionType=But;var Nut=eo(),Fut=us(),ta=A1(),Rut=Gc(),Lut=N2(),Ot=vn(),xo=Sd(),QJ=new Ot.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:xo.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Ot.GraphQLNonNull(new Ot.GraphQLList(new Ot.GraphQLNonNull(zl))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Ot.GraphQLNonNull(zl),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:zl,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:zl,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Ot.GraphQLNonNull(new Ot.GraphQLList(new Ot.GraphQLNonNull(XJ))),resolve:e=>e.getDirectives()}})});ao.__Schema=QJ;var XJ=new Ot.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. -In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new pl.GraphQLNonNull(Oh.GraphQLString),resolve:e=>e.name},description:{type:Oh.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new pl.GraphQLNonNull(Oh.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new pl.GraphQLNonNull(new pl.GraphQLList(new pl.GraphQLNonNull(htt))),resolve:e=>e.locations},args:{type:new pl.GraphQLNonNull(new pl.GraphQLList(new pl.GraphQLNonNull(X_e))),args:{includeDeprecated:{type:Oh.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){return r?e.args:e.args.filter(i=>i.deprecationReason==null)}}})});$m.__Directive=mtt;var htt=new pl.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:Xv.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Xv.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Xv.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Xv.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Xv.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Xv.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Xv.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Xv.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Xv.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Xv.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Xv.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Xv.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Xv.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Xv.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Xv.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Xv.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Xv.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Xv.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Xv.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});$m.__DirectiveLocation=htt;var lI=new pl.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new pl.GraphQLNonNull(vtt),resolve(e){if((0,pl.isScalarType)(e))return Yv.SCALAR;if((0,pl.isObjectType)(e))return Yv.OBJECT;if((0,pl.isInterfaceType)(e))return Yv.INTERFACE;if((0,pl.isUnionType)(e))return Yv.UNION;if((0,pl.isEnumType)(e))return Yv.ENUM;if((0,pl.isInputObjectType)(e))return Yv.INPUT_OBJECT;if((0,pl.isListType)(e))return Yv.LIST;if((0,pl.isNonNullType)(e))return Yv.NON_NULL;(0,fmn.invariant)(!1,`Unexpected type: "${(0,dmn.inspect)(e)}".`)}},name:{type:Oh.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:Oh.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Oh.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new pl.GraphQLList(new pl.GraphQLNonNull(gtt)),args:{includeDeprecated:{type:Oh.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){if((0,pl.isObjectType)(e)||(0,pl.isInterfaceType)(e)){let i=Object.values(e.getFields());return r?i:i.filter(s=>s.deprecationReason==null)}}},interfaces:{type:new pl.GraphQLList(new pl.GraphQLNonNull(lI)),resolve(e){if((0,pl.isObjectType)(e)||(0,pl.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new pl.GraphQLList(new pl.GraphQLNonNull(lI)),resolve(e,r,i,{schema:s}){if((0,pl.isAbstractType)(e))return s.getPossibleTypes(e)}},enumValues:{type:new pl.GraphQLList(new pl.GraphQLNonNull(ytt)),args:{includeDeprecated:{type:Oh.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){if((0,pl.isEnumType)(e)){let i=e.getValues();return r?i:i.filter(s=>s.deprecationReason==null)}}},inputFields:{type:new pl.GraphQLList(new pl.GraphQLNonNull(X_e)),args:{includeDeprecated:{type:Oh.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){if((0,pl.isInputObjectType)(e)){let i=Object.values(e.getFields());return r?i:i.filter(s=>s.deprecationReason==null)}}},ofType:{type:lI,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:Oh.GraphQLBoolean,resolve:e=>{if((0,pl.isInputObjectType)(e))return e.isOneOf}}})});$m.__Type=lI;var gtt=new pl.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new pl.GraphQLNonNull(Oh.GraphQLString),resolve:e=>e.name},description:{type:Oh.GraphQLString,resolve:e=>e.description},args:{type:new pl.GraphQLNonNull(new pl.GraphQLList(new pl.GraphQLNonNull(X_e))),args:{includeDeprecated:{type:Oh.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){return r?e.args:e.args.filter(i=>i.deprecationReason==null)}},type:{type:new pl.GraphQLNonNull(lI),resolve:e=>e.type},isDeprecated:{type:new pl.GraphQLNonNull(Oh.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Oh.GraphQLString,resolve:e=>e.deprecationReason}})});$m.__Field=gtt;var X_e=new pl.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new pl.GraphQLNonNull(Oh.GraphQLString),resolve:e=>e.name},description:{type:Oh.GraphQLString,resolve:e=>e.description},type:{type:new pl.GraphQLNonNull(lI),resolve:e=>e.type},defaultValue:{type:Oh.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:r,defaultValue:i}=e,s=(0,hmn.astFromValue)(i,r);return s?(0,mmn.print)(s):null}},isDeprecated:{type:new pl.GraphQLNonNull(Oh.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Oh.GraphQLString,resolve:e=>e.deprecationReason}})});$m.__InputValue=X_e;var ytt=new pl.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new pl.GraphQLNonNull(Oh.GraphQLString),resolve:e=>e.name},description:{type:Oh.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new pl.GraphQLNonNull(Oh.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Oh.GraphQLString,resolve:e=>e.deprecationReason}})});$m.__EnumValue=ytt;var Yv;$m.TypeKind=Yv;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(Yv||($m.TypeKind=Yv={}));var vtt=new pl.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Yv.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Yv.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Yv.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Yv.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Yv.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Yv.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Yv.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Yv.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});$m.__TypeKind=vtt;var gmn={name:"__schema",type:new pl.GraphQLNonNull(ftt),description:"Access the current type schema of this server.",args:[],resolve:(e,r,i,{schema:s})=>s,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};$m.SchemaMetaFieldDef=gmn;var ymn={name:"__type",type:lI,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new pl.GraphQLNonNull(Oh.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:r},i,{schema:s})=>s.getType(r),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};$m.TypeMetaFieldDef=ymn;var vmn={name:"__typename",type:new pl.GraphQLNonNull(Oh.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,r,i,{parentType:s})=>s.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};$m.TypeNameMetaFieldDef=vmn;var Aqt=Object.freeze([ftt,mtt,htt,lI,gtt,X_e,ytt,vtt]);$m.introspectionTypes=Aqt;function Smn(e){return Aqt.some(({name:r})=>e.name===r)}});var WV=dr(Eee=>{"use strict";Object.defineProperty(Eee,"__esModule",{value:!0});Eee.GraphQLSchema=void 0;Eee.assertSchema=kmn;Eee.isSchema=Iqt;var mAe=J2(),btt=gm(),bmn=F_e(),xmn=C8(),Tmn=GDe(),Stt=aI(),K6=jd(),wqt=kk(),Emn=uI();function Iqt(e){return(0,bmn.instanceOf)(e,hAe)}function kmn(e){if(!Iqt(e))throw new Error(`Expected ${(0,btt.inspect)(e)} to be a GraphQL schema.`);return e}var hAe=class{constructor(r){var i,s;this.__validationErrors=r.assumeValid===!0?[]:void 0,(0,xmn.isObjectLike)(r)||(0,mAe.devAssert)(!1,"Must provide configuration object."),!r.types||Array.isArray(r.types)||(0,mAe.devAssert)(!1,`"types" must be Array if provided but got: ${(0,btt.inspect)(r.types)}.`),!r.directives||Array.isArray(r.directives)||(0,mAe.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,btt.inspect)(r.directives)}.`),this.description=r.description,this.extensions=(0,Tmn.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(i=r.extensionASTNodes)!==null&&i!==void 0?i:[],this._queryType=r.query,this._mutationType=r.mutation,this._subscriptionType=r.subscription,this._directives=(s=r.directives)!==null&&s!==void 0?s:wqt.specifiedDirectives;let l=new Set(r.types);if(r.types!=null)for(let d of r.types)l.delete(d),Q6(d,l);this._queryType!=null&&Q6(this._queryType,l),this._mutationType!=null&&Q6(this._mutationType,l),this._subscriptionType!=null&&Q6(this._subscriptionType,l);for(let d of this._directives)if((0,wqt.isDirective)(d))for(let h of d.args)Q6(h.type,l);Q6(Emn.__Schema,l),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let d of l){if(d==null)continue;let h=d.name;if(h||(0,mAe.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[h]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${h}".`);if(this._typeMap[h]=d,(0,K6.isInterfaceType)(d)){for(let S of d.getInterfaces())if((0,K6.isInterfaceType)(S)){let b=this._implementationsMap[S.name];b===void 0&&(b=this._implementationsMap[S.name]={objects:[],interfaces:[]}),b.interfaces.push(d)}}else if((0,K6.isObjectType)(d)){for(let S of d.getInterfaces())if((0,K6.isInterfaceType)(S)){let b=this._implementationsMap[S.name];b===void 0&&(b=this._implementationsMap[S.name]={objects:[],interfaces:[]}),b.objects.push(d)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(r){switch(r){case Stt.OperationTypeNode.QUERY:return this.getQueryType();case Stt.OperationTypeNode.MUTATION:return this.getMutationType();case Stt.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(r){return this.getTypeMap()[r]}getPossibleTypes(r){return(0,K6.isUnionType)(r)?r.getTypes():this.getImplementations(r).objects}getImplementations(r){let i=this._implementationsMap[r.name];return i??{objects:[],interfaces:[]}}isSubType(r,i){let s=this._subTypeMap[r.name];if(s===void 0){if(s=Object.create(null),(0,K6.isUnionType)(r))for(let l of r.getTypes())s[l.name]=!0;else{let l=this.getImplementations(r);for(let d of l.objects)s[d.name]=!0;for(let d of l.interfaces)s[d.name]=!0}this._subTypeMap[r.name]=s}return s[i.name]!==void 0}getDirectives(){return this._directives}getDirective(r){return this.getDirectives().find(i=>i.name===r)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};Eee.GraphQLSchema=hAe;function Q6(e,r){let i=(0,K6.getNamedType)(e);if(!r.has(i)){if(r.add(i),(0,K6.isUnionType)(i))for(let s of i.getTypes())Q6(s,r);else if((0,K6.isObjectType)(i)||(0,K6.isInterfaceType)(i)){for(let s of i.getInterfaces())Q6(s,r);for(let s of Object.values(i.getFields())){Q6(s.type,r);for(let l of s.args)Q6(l.type,r)}}else if((0,K6.isInputObjectType)(i))for(let s of Object.values(i.getFields()))Q6(s.type,r)}return r}});var ede=dr(gAe=>{"use strict";Object.defineProperty(gAe,"__esModule",{value:!0});gAe.assertValidSchema=wmn;gAe.validateSchema=Lqt;var DT=gm(),Cmn=Cu(),xtt=aI(),Pqt=J_e(),z0=jd(),Rqt=kk(),Dmn=uI(),Amn=WV();function Lqt(e){if((0,Amn.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let r=new Ett(e);Imn(r),Pmn(r),Nmn(r);let i=r.getErrors();return e.__validationErrors=i,i}function wmn(e){let r=Lqt(e);if(r.length!==0)throw new Error(r.map(i=>i.message).join(` +In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new Ot.GraphQLNonNull(xo.GraphQLString),resolve:e=>e.name},description:{type:xo.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new Ot.GraphQLNonNull(xo.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new Ot.GraphQLNonNull(new Ot.GraphQLList(new Ot.GraphQLNonNull(YJ))),resolve:e=>e.locations},args:{type:new Ot.GraphQLNonNull(new Ot.GraphQLList(new Ot.GraphQLNonNull(F2))),args:{includeDeprecated:{type:xo.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}}})});ao.__Directive=XJ;var YJ=new Ot.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:ta.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:ta.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:ta.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:ta.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:ta.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:ta.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:ta.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:ta.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:ta.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:ta.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:ta.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:ta.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:ta.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:ta.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:ta.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:ta.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:ta.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:ta.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:ta.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});ao.__DirectiveLocation=YJ;var zl=new Ot.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Ot.GraphQLNonNull(rK),resolve(e){if((0,Ot.isScalarType)(e))return ra.SCALAR;if((0,Ot.isObjectType)(e))return ra.OBJECT;if((0,Ot.isInterfaceType)(e))return ra.INTERFACE;if((0,Ot.isUnionType)(e))return ra.UNION;if((0,Ot.isEnumType)(e))return ra.ENUM;if((0,Ot.isInputObjectType)(e))return ra.INPUT_OBJECT;if((0,Ot.isListType)(e))return ra.LIST;if((0,Ot.isNonNullType)(e))return ra.NON_NULL;(0,Fut.invariant)(!1,`Unexpected type: "${(0,Nut.inspect)(e)}".`)}},name:{type:xo.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:xo.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:xo.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Ot.GraphQLList(new Ot.GraphQLNonNull(eK)),args:{includeDeprecated:{type:xo.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ot.isObjectType)(e)||(0,Ot.isInterfaceType)(e)){let r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},interfaces:{type:new Ot.GraphQLList(new Ot.GraphQLNonNull(zl)),resolve(e){if((0,Ot.isObjectType)(e)||(0,Ot.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new Ot.GraphQLList(new Ot.GraphQLNonNull(zl)),resolve(e,t,r,{schema:n}){if((0,Ot.isAbstractType)(e))return n.getPossibleTypes(e)}},enumValues:{type:new Ot.GraphQLList(new Ot.GraphQLNonNull(tK)),args:{includeDeprecated:{type:xo.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ot.isEnumType)(e)){let r=e.getValues();return t?r:r.filter(n=>n.deprecationReason==null)}}},inputFields:{type:new Ot.GraphQLList(new Ot.GraphQLNonNull(F2)),args:{includeDeprecated:{type:xo.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ot.isInputObjectType)(e)){let r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},ofType:{type:zl,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:xo.GraphQLBoolean,resolve:e=>{if((0,Ot.isInputObjectType)(e))return e.isOneOf}}})});ao.__Type=zl;var eK=new Ot.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Ot.GraphQLNonNull(xo.GraphQLString),resolve:e=>e.name},description:{type:xo.GraphQLString,resolve:e=>e.description},args:{type:new Ot.GraphQLNonNull(new Ot.GraphQLList(new Ot.GraphQLNonNull(F2))),args:{includeDeprecated:{type:xo.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}},type:{type:new Ot.GraphQLNonNull(zl),resolve:e=>e.type},isDeprecated:{type:new Ot.GraphQLNonNull(xo.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:xo.GraphQLString,resolve:e=>e.deprecationReason}})});ao.__Field=eK;var F2=new Ot.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Ot.GraphQLNonNull(xo.GraphQLString),resolve:e=>e.name},description:{type:xo.GraphQLString,resolve:e=>e.description},type:{type:new Ot.GraphQLNonNull(zl),resolve:e=>e.type},defaultValue:{type:xo.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:r}=e,n=(0,Lut.astFromValue)(r,t);return n?(0,Rut.print)(n):null}},isDeprecated:{type:new Ot.GraphQLNonNull(xo.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:xo.GraphQLString,resolve:e=>e.deprecationReason}})});ao.__InputValue=F2;var tK=new Ot.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Ot.GraphQLNonNull(xo.GraphQLString),resolve:e=>e.name},description:{type:xo.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new Ot.GraphQLNonNull(xo.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:xo.GraphQLString,resolve:e=>e.deprecationReason}})});ao.__EnumValue=tK;var ra;ao.TypeKind=ra;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(ra||(ao.TypeKind=ra={}));var rK=new Ot.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ra.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ra.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ra.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ra.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ra.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ra.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ra.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ra.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});ao.__TypeKind=rK;var $ut={name:"__schema",type:new Ot.GraphQLNonNull(QJ),description:"Access the current type schema of this server.",args:[],resolve:(e,t,r,{schema:n})=>n,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};ao.SchemaMetaFieldDef=$ut;var Mut={name:"__type",type:zl,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Ot.GraphQLNonNull(xo.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},r,{schema:n})=>n.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};ao.TypeMetaFieldDef=Mut;var jut={name:"__typename",type:new Ot.GraphQLNonNull(xo.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,r,{parentType:n})=>n.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};ao.TypeNameMetaFieldDef=jut;var hSe=Object.freeze([QJ,XJ,YJ,zl,eK,F2,tK,rK]);ao.introspectionTypes=hSe;function But(e){return hSe.some(({name:t})=>e.name===t)}});var Yg=L(O1=>{"use strict";Object.defineProperty(O1,"__esModule",{value:!0});O1.GraphQLSchema=void 0;O1.assertSchema=Jut;O1.isSchema=gSe;var p4=Ls(),oK=eo(),qut=h2(),Uut=hd(),zut=zO(),nK=Bl(),Ju=vn(),ySe=pc(),Vut=Vl();function gSe(e){return(0,qut.instanceOf)(e,d4)}function Jut(e){if(!gSe(e))throw new Error(`Expected ${(0,oK.inspect)(e)} to be a GraphQL schema.`);return e}var d4=class{constructor(t){var r,n;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,Uut.isObjectLike)(t)||(0,p4.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,p4.devAssert)(!1,`"types" must be Array if provided but got: ${(0,oK.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,p4.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,oK.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,zut.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(n=t.directives)!==null&&n!==void 0?n:ySe.specifiedDirectives;let o=new Set(t.types);if(t.types!=null)for(let i of t.types)o.delete(i),Ku(i,o);this._queryType!=null&&Ku(this._queryType,o),this._mutationType!=null&&Ku(this._mutationType,o),this._subscriptionType!=null&&Ku(this._subscriptionType,o);for(let i of this._directives)if((0,ySe.isDirective)(i))for(let a of i.args)Ku(a.type,o);Ku(Vut.__Schema,o),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let i of o){if(i==null)continue;let a=i.name;if(a||(0,p4.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[a]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${a}".`);if(this._typeMap[a]=i,(0,Ju.isInterfaceType)(i)){for(let s of i.getInterfaces())if((0,Ju.isInterfaceType)(s)){let c=this._implementationsMap[s.name];c===void 0&&(c=this._implementationsMap[s.name]={objects:[],interfaces:[]}),c.interfaces.push(i)}}else if((0,Ju.isObjectType)(i)){for(let s of i.getInterfaces())if((0,Ju.isInterfaceType)(s)){let c=this._implementationsMap[s.name];c===void 0&&(c=this._implementationsMap[s.name]={objects:[],interfaces:[]}),c.objects.push(i)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case nK.OperationTypeNode.QUERY:return this.getQueryType();case nK.OperationTypeNode.MUTATION:return this.getMutationType();case nK.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,Ju.isUnionType)(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let r=this._implementationsMap[t.name];return r??{objects:[],interfaces:[]}}isSubType(t,r){let n=this._subTypeMap[t.name];if(n===void 0){if(n=Object.create(null),(0,Ju.isUnionType)(t))for(let o of t.getTypes())n[o.name]=!0;else{let o=this.getImplementations(t);for(let i of o.objects)n[i.name]=!0;for(let i of o.interfaces)n[i.name]=!0}this._subTypeMap[t.name]=n}return n[r.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(r=>r.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};O1.GraphQLSchema=d4;function Ku(e,t){let r=(0,Ju.getNamedType)(e);if(!t.has(r)){if(t.add(r),(0,Ju.isUnionType)(r))for(let n of r.getTypes())Ku(n,t);else if((0,Ju.isObjectType)(r)||(0,Ju.isInterfaceType)(r)){for(let n of r.getInterfaces())Ku(n,t);for(let n of Object.values(r.getFields())){Ku(n.type,t);for(let o of n.args)Ku(o.type,t)}}else if((0,Ju.isInputObjectType)(r))for(let n of Object.values(r.getFields()))Ku(n.type,t)}return t}});var L2=L(_4=>{"use strict";Object.defineProperty(_4,"__esModule",{value:!0});_4.assertValidSchema=Zut;_4.validateSchema=TSe;var ds=eo(),Kut=ar(),iK=Bl(),SSe=A2(),gi=vn(),ESe=pc(),Gut=Vl(),Hut=Yg();function TSe(e){if((0,Hut.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new sK(e);Wut(t),Qut(t),Xut(t);let r=t.getErrors();return e.__validationErrors=r,r}function Zut(e){let t=TSe(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(` -`))}var Ett=class{constructor(r){this._errors=[],this.schema=r}reportError(r,i){let s=Array.isArray(i)?i.filter(Boolean):i;this._errors.push(new Cmn.GraphQLError(r,{nodes:s}))}getErrors(){return this._errors}};function Imn(e){let r=e.schema,i=r.getQueryType();if(!i)e.reportError("Query root type must be provided.",r.astNode);else if(!(0,z0.isObjectType)(i)){var s;e.reportError(`Query root type must be Object type, it cannot be ${(0,DT.inspect)(i)}.`,(s=Ttt(r,xtt.OperationTypeNode.QUERY))!==null&&s!==void 0?s:i.astNode)}let l=r.getMutationType();if(l&&!(0,z0.isObjectType)(l)){var d;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,DT.inspect)(l)}.`,(d=Ttt(r,xtt.OperationTypeNode.MUTATION))!==null&&d!==void 0?d:l.astNode)}let h=r.getSubscriptionType();if(h&&!(0,z0.isObjectType)(h)){var S;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,DT.inspect)(h)}.`,(S=Ttt(r,xtt.OperationTypeNode.SUBSCRIPTION))!==null&&S!==void 0?S:h.astNode)}}function Ttt(e,r){var i;return(i=[e.astNode,...e.extensionASTNodes].flatMap(s=>{var l;return(l=s?.operationTypes)!==null&&l!==void 0?l:[]}).find(s=>s.operation===r))===null||i===void 0?void 0:i.type}function Pmn(e){for(let i of e.schema.getDirectives()){if(!(0,Rqt.isDirective)(i)){e.reportError(`Expected directive but got: ${(0,DT.inspect)(i)}.`,i?.astNode);continue}GV(e,i),i.locations.length===0&&e.reportError(`Directive @${i.name} must include 1 or more locations.`,i.astNode);for(let s of i.args)if(GV(e,s),(0,z0.isInputType)(s.type)||e.reportError(`The type of @${i.name}(${s.name}:) must be Input Type but got: ${(0,DT.inspect)(s.type)}.`,s.astNode),(0,z0.isRequiredArgument)(s)&&s.deprecationReason!=null){var r;e.reportError(`Required argument @${i.name}(${s.name}:) cannot be deprecated.`,[ktt(s.astNode),(r=s.astNode)===null||r===void 0?void 0:r.type])}}}function GV(e,r){r.name.startsWith("__")&&e.reportError(`Name "${r.name}" must not begin with "__", which is reserved by GraphQL introspection.`,r.astNode)}function Nmn(e){let r=Bmn(e),i=e.schema.getTypeMap();for(let s of Object.values(i)){if(!(0,z0.isNamedType)(s)){e.reportError(`Expected GraphQL named type but got: ${(0,DT.inspect)(s)}.`,s.astNode);continue}(0,Dmn.isIntrospectionType)(s)||GV(e,s),(0,z0.isObjectType)(s)||(0,z0.isInterfaceType)(s)?(Nqt(e,s),Oqt(e,s)):(0,z0.isUnionType)(s)?Rmn(e,s):(0,z0.isEnumType)(s)?Lmn(e,s):(0,z0.isInputObjectType)(s)&&(Mmn(e,s),r(s))}}function Nqt(e,r){let i=Object.values(r.getFields());i.length===0&&e.reportError(`Type ${r.name} must define one or more fields.`,[r.astNode,...r.extensionASTNodes]);for(let h of i){if(GV(e,h),!(0,z0.isOutputType)(h.type)){var s;e.reportError(`The type of ${r.name}.${h.name} must be Output Type but got: ${(0,DT.inspect)(h.type)}.`,(s=h.astNode)===null||s===void 0?void 0:s.type)}for(let S of h.args){let b=S.name;if(GV(e,S),!(0,z0.isInputType)(S.type)){var l;e.reportError(`The type of ${r.name}.${h.name}(${b}:) must be Input Type but got: ${(0,DT.inspect)(S.type)}.`,(l=S.astNode)===null||l===void 0?void 0:l.type)}if((0,z0.isRequiredArgument)(S)&&S.deprecationReason!=null){var d;e.reportError(`Required argument ${r.name}.${h.name}(${b}:) cannot be deprecated.`,[ktt(S.astNode),(d=S.astNode)===null||d===void 0?void 0:d.type])}}}}function Oqt(e,r){let i=Object.create(null);for(let s of r.getInterfaces()){if(!(0,z0.isInterfaceType)(s)){e.reportError(`Type ${(0,DT.inspect)(r)} must only implement Interface types, it cannot implement ${(0,DT.inspect)(s)}.`,Y_e(r,s));continue}if(r===s){e.reportError(`Type ${r.name} cannot implement itself because it would create a circular reference.`,Y_e(r,s));continue}if(i[s.name]){e.reportError(`Type ${r.name} can only implement ${s.name} once.`,Y_e(r,s));continue}i[s.name]=!0,Fmn(e,r,s),Omn(e,r,s)}}function Omn(e,r,i){let s=r.getFields();for(let b of Object.values(i.getFields())){let A=b.name,L=s[A];if(!L){e.reportError(`Interface field ${i.name}.${A} expected but ${r.name} does not provide it.`,[b.astNode,r.astNode,...r.extensionASTNodes]);continue}if(!(0,Pqt.isTypeSubTypeOf)(e.schema,L.type,b.type)){var l,d;e.reportError(`Interface field ${i.name}.${A} expects type ${(0,DT.inspect)(b.type)} but ${r.name}.${A} is type ${(0,DT.inspect)(L.type)}.`,[(l=b.astNode)===null||l===void 0?void 0:l.type,(d=L.astNode)===null||d===void 0?void 0:d.type])}for(let V of b.args){let j=V.name,ie=L.args.find(te=>te.name===j);if(!ie){e.reportError(`Interface field argument ${i.name}.${A}(${j}:) expected but ${r.name}.${A} does not provide it.`,[V.astNode,L.astNode]);continue}if(!(0,Pqt.isEqualType)(V.type,ie.type)){var h,S;e.reportError(`Interface field argument ${i.name}.${A}(${j}:) expects type ${(0,DT.inspect)(V.type)} but ${r.name}.${A}(${j}:) is type ${(0,DT.inspect)(ie.type)}.`,[(h=V.astNode)===null||h===void 0?void 0:h.type,(S=ie.astNode)===null||S===void 0?void 0:S.type])}}for(let V of L.args){let j=V.name;!b.args.find(te=>te.name===j)&&(0,z0.isRequiredArgument)(V)&&e.reportError(`Object field ${r.name}.${A} includes required argument ${j} that is missing from the Interface field ${i.name}.${A}.`,[V.astNode,b.astNode])}}}function Fmn(e,r,i){let s=r.getInterfaces();for(let l of i.getInterfaces())s.includes(l)||e.reportError(l===r?`Type ${r.name} cannot implement ${i.name} because it would create a circular reference.`:`Type ${r.name} must implement ${l.name} because it is implemented by ${i.name}.`,[...Y_e(i,l),...Y_e(r,i)])}function Rmn(e,r){let i=r.getTypes();i.length===0&&e.reportError(`Union type ${r.name} must define one or more member types.`,[r.astNode,...r.extensionASTNodes]);let s=Object.create(null);for(let l of i){if(s[l.name]){e.reportError(`Union type ${r.name} can only include type ${l.name} once.`,Fqt(r,l.name));continue}s[l.name]=!0,(0,z0.isObjectType)(l)||e.reportError(`Union type ${r.name} can only include Object types, it cannot include ${(0,DT.inspect)(l)}.`,Fqt(r,String(l)))}}function Lmn(e,r){let i=r.getValues();i.length===0&&e.reportError(`Enum type ${r.name} must define one or more values.`,[r.astNode,...r.extensionASTNodes]);for(let s of i)GV(e,s)}function Mmn(e,r){let i=Object.values(r.getFields());i.length===0&&e.reportError(`Input Object type ${r.name} must define one or more fields.`,[r.astNode,...r.extensionASTNodes]);for(let d of i){if(GV(e,d),!(0,z0.isInputType)(d.type)){var s;e.reportError(`The type of ${r.name}.${d.name} must be Input Type but got: ${(0,DT.inspect)(d.type)}.`,(s=d.astNode)===null||s===void 0?void 0:s.type)}if((0,z0.isRequiredInputField)(d)&&d.deprecationReason!=null){var l;e.reportError(`Required input field ${r.name}.${d.name} cannot be deprecated.`,[ktt(d.astNode),(l=d.astNode)===null||l===void 0?void 0:l.type])}r.isOneOf&&jmn(r,d,e)}}function jmn(e,r,i){if((0,z0.isNonNullType)(r.type)){var s;i.reportError(`OneOf input field ${e.name}.${r.name} must be nullable.`,(s=r.astNode)===null||s===void 0?void 0:s.type)}r.defaultValue!==void 0&&i.reportError(`OneOf input field ${e.name}.${r.name} cannot have a default value.`,r.astNode)}function Bmn(e){let r=Object.create(null),i=[],s=Object.create(null);return l;function l(d){if(r[d.name])return;r[d.name]=!0,s[d.name]=i.length;let h=Object.values(d.getFields());for(let S of h)if((0,z0.isNonNullType)(S.type)&&(0,z0.isInputObjectType)(S.type.ofType)){let b=S.type.ofType,A=s[b.name];if(i.push(S),A===void 0)l(b);else{let L=i.slice(A),V=L.map(j=>j.name).join(".");e.reportError(`Cannot reference Input Object "${b.name}" within itself through a series of non-null fields: "${V}".`,L.map(j=>j.astNode))}i.pop()}s[d.name]=void 0}}function Y_e(e,r){let{astNode:i,extensionASTNodes:s}=e;return(i!=null?[i,...s]:s).flatMap(d=>{var h;return(h=d.interfaces)!==null&&h!==void 0?h:[]}).filter(d=>d.name.value===r.name)}function Fqt(e,r){let{astNode:i,extensionASTNodes:s}=e;return(i!=null?[i,...s]:s).flatMap(d=>{var h;return(h=d.types)!==null&&h!==void 0?h:[]}).filter(d=>d.name.value===r)}function ktt(e){var r;return e==null||(r=e.directives)===null||r===void 0?void 0:r.find(i=>i.name.value===Rqt.GraphQLDeprecatedDirective.name)}});var I8=dr(Att=>{"use strict";Object.defineProperty(Att,"__esModule",{value:!0});Att.typeFromAST=Dtt;var Ctt=Md(),Mqt=jd();function Dtt(e,r){switch(r.kind){case Ctt.Kind.LIST_TYPE:{let i=Dtt(e,r.type);return i&&new Mqt.GraphQLList(i)}case Ctt.Kind.NON_NULL_TYPE:{let i=Dtt(e,r.type);return i&&new Mqt.GraphQLNonNull(i)}case Ctt.Kind.NAMED_TYPE:return e.getType(r.name.value)}}});var yAe=dr(tde=>{"use strict";Object.defineProperty(tde,"__esModule",{value:!0});tde.TypeInfo=void 0;tde.visitWithTypeInfo=zmn;var $mn=aI(),q0=Md(),jqt=$V(),J0=jd(),kee=uI(),Bqt=I8(),wtt=class{constructor(r,i,s){this._schema=r,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=s??Umn,i&&((0,J0.isInputType)(i)&&this._inputTypeStack.push(i),(0,J0.isCompositeType)(i)&&this._parentTypeStack.push(i),(0,J0.isOutputType)(i)&&this._typeStack.push(i))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(r){let i=this._schema;switch(r.kind){case q0.Kind.SELECTION_SET:{let l=(0,J0.getNamedType)(this.getType());this._parentTypeStack.push((0,J0.isCompositeType)(l)?l:void 0);break}case q0.Kind.FIELD:{let l=this.getParentType(),d,h;l&&(d=this._getFieldDef(i,l,r),d&&(h=d.type)),this._fieldDefStack.push(d),this._typeStack.push((0,J0.isOutputType)(h)?h:void 0);break}case q0.Kind.DIRECTIVE:this._directive=i.getDirective(r.name.value);break;case q0.Kind.OPERATION_DEFINITION:{let l=i.getRootType(r.operation);this._typeStack.push((0,J0.isObjectType)(l)?l:void 0);break}case q0.Kind.INLINE_FRAGMENT:case q0.Kind.FRAGMENT_DEFINITION:{let l=r.typeCondition,d=l?(0,Bqt.typeFromAST)(i,l):(0,J0.getNamedType)(this.getType());this._typeStack.push((0,J0.isOutputType)(d)?d:void 0);break}case q0.Kind.VARIABLE_DEFINITION:{let l=(0,Bqt.typeFromAST)(i,r.type);this._inputTypeStack.push((0,J0.isInputType)(l)?l:void 0);break}case q0.Kind.ARGUMENT:{var s;let l,d,h=(s=this.getDirective())!==null&&s!==void 0?s:this.getFieldDef();h&&(l=h.args.find(S=>S.name===r.name.value),l&&(d=l.type)),this._argument=l,this._defaultValueStack.push(l?l.defaultValue:void 0),this._inputTypeStack.push((0,J0.isInputType)(d)?d:void 0);break}case q0.Kind.LIST:{let l=(0,J0.getNullableType)(this.getInputType()),d=(0,J0.isListType)(l)?l.ofType:l;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,J0.isInputType)(d)?d:void 0);break}case q0.Kind.OBJECT_FIELD:{let l=(0,J0.getNamedType)(this.getInputType()),d,h;(0,J0.isInputObjectType)(l)&&(h=l.getFields()[r.name.value],h&&(d=h.type)),this._defaultValueStack.push(h?h.defaultValue:void 0),this._inputTypeStack.push((0,J0.isInputType)(d)?d:void 0);break}case q0.Kind.ENUM:{let l=(0,J0.getNamedType)(this.getInputType()),d;(0,J0.isEnumType)(l)&&(d=l.getValue(r.value)),this._enumValue=d;break}default:}}leave(r){switch(r.kind){case q0.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case q0.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case q0.Kind.DIRECTIVE:this._directive=null;break;case q0.Kind.OPERATION_DEFINITION:case q0.Kind.INLINE_FRAGMENT:case q0.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case q0.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case q0.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case q0.Kind.LIST:case q0.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case q0.Kind.ENUM:this._enumValue=null;break;default:}}};tde.TypeInfo=wtt;function Umn(e,r,i){let s=i.name.value;if(s===kee.SchemaMetaFieldDef.name&&e.getQueryType()===r)return kee.SchemaMetaFieldDef;if(s===kee.TypeMetaFieldDef.name&&e.getQueryType()===r)return kee.TypeMetaFieldDef;if(s===kee.TypeNameMetaFieldDef.name&&(0,J0.isCompositeType)(r))return kee.TypeNameMetaFieldDef;if((0,J0.isObjectType)(r)||(0,J0.isInterfaceType)(r))return r.getFields()[s]}function zmn(e,r){return{enter(...i){let s=i[0];e.enter(s);let l=(0,jqt.getEnterLeaveForKind)(r,s.kind).enter;if(l){let d=l.apply(r,i);return d!==void 0&&(e.leave(s),(0,$mn.isNode)(d)&&e.enter(d)),d}},leave(...i){let s=i[0],l=(0,jqt.getEnterLeaveForKind)(r,s.kind).leave,d;return l&&(d=l.apply(r,i)),e.leave(s),d}}}});var HV=dr(RD=>{"use strict";Object.defineProperty(RD,"__esModule",{value:!0});RD.isConstValueNode=Itt;RD.isDefinitionNode=qmn;RD.isExecutableDefinitionNode=$qt;RD.isSchemaCoordinateNode=Wmn;RD.isSelectionNode=Jmn;RD.isTypeDefinitionNode=qqt;RD.isTypeExtensionNode=Vqt;RD.isTypeNode=Vmn;RD.isTypeSystemDefinitionNode=zqt;RD.isTypeSystemExtensionNode=Jqt;RD.isValueNode=Uqt;var U_=Md();function qmn(e){return $qt(e)||zqt(e)||Jqt(e)}function $qt(e){return e.kind===U_.Kind.OPERATION_DEFINITION||e.kind===U_.Kind.FRAGMENT_DEFINITION}function Jmn(e){return e.kind===U_.Kind.FIELD||e.kind===U_.Kind.FRAGMENT_SPREAD||e.kind===U_.Kind.INLINE_FRAGMENT}function Uqt(e){return e.kind===U_.Kind.VARIABLE||e.kind===U_.Kind.INT||e.kind===U_.Kind.FLOAT||e.kind===U_.Kind.STRING||e.kind===U_.Kind.BOOLEAN||e.kind===U_.Kind.NULL||e.kind===U_.Kind.ENUM||e.kind===U_.Kind.LIST||e.kind===U_.Kind.OBJECT}function Itt(e){return Uqt(e)&&(e.kind===U_.Kind.LIST?e.values.some(Itt):e.kind===U_.Kind.OBJECT?e.fields.some(r=>Itt(r.value)):e.kind!==U_.Kind.VARIABLE)}function Vmn(e){return e.kind===U_.Kind.NAMED_TYPE||e.kind===U_.Kind.LIST_TYPE||e.kind===U_.Kind.NON_NULL_TYPE}function zqt(e){return e.kind===U_.Kind.SCHEMA_DEFINITION||qqt(e)||e.kind===U_.Kind.DIRECTIVE_DEFINITION}function qqt(e){return e.kind===U_.Kind.SCALAR_TYPE_DEFINITION||e.kind===U_.Kind.OBJECT_TYPE_DEFINITION||e.kind===U_.Kind.INTERFACE_TYPE_DEFINITION||e.kind===U_.Kind.UNION_TYPE_DEFINITION||e.kind===U_.Kind.ENUM_TYPE_DEFINITION||e.kind===U_.Kind.INPUT_OBJECT_TYPE_DEFINITION}function Jqt(e){return e.kind===U_.Kind.SCHEMA_EXTENSION||Vqt(e)}function Vqt(e){return e.kind===U_.Kind.SCALAR_TYPE_EXTENSION||e.kind===U_.Kind.OBJECT_TYPE_EXTENSION||e.kind===U_.Kind.INTERFACE_TYPE_EXTENSION||e.kind===U_.Kind.UNION_TYPE_EXTENSION||e.kind===U_.Kind.ENUM_TYPE_EXTENSION||e.kind===U_.Kind.INPUT_OBJECT_TYPE_EXTENSION}function Wmn(e){return e.kind===U_.Kind.TYPE_COORDINATE||e.kind===U_.Kind.MEMBER_COORDINATE||e.kind===U_.Kind.ARGUMENT_COORDINATE||e.kind===U_.Kind.DIRECTIVE_COORDINATE||e.kind===U_.Kind.DIRECTIVE_ARGUMENT_COORDINATE}});var Ntt=dr(Ptt=>{"use strict";Object.defineProperty(Ptt,"__esModule",{value:!0});Ptt.ExecutableDefinitionsRule=Kmn;var Gmn=Cu(),Wqt=Md(),Hmn=HV();function Kmn(e){return{Document(r){for(let i of r.definitions)if(!(0,Hmn.isExecutableDefinitionNode)(i)){let s=i.kind===Wqt.Kind.SCHEMA_DEFINITION||i.kind===Wqt.Kind.SCHEMA_EXTENSION?"schema":'"'+i.name.value+'"';e.reportError(new Gmn.GraphQLError(`The ${s} definition is not executable.`,{nodes:i}))}return!1}}}});var Ftt=dr(Ott=>{"use strict";Object.defineProperty(Ott,"__esModule",{value:!0});Ott.FieldsOnCorrectTypeRule=Ymn;var Gqt=IB(),Qmn=j_e(),Zmn=NB(),Xmn=Cu(),rde=jd();function Ymn(e){return{Field(r){let i=e.getParentType();if(i&&!e.getFieldDef()){let l=e.getSchema(),d=r.name.value,h=(0,Gqt.didYouMean)("to use an inline fragment on",ehn(l,i,d));h===""&&(h=(0,Gqt.didYouMean)(thn(i,d))),e.reportError(new Xmn.GraphQLError(`Cannot query field "${d}" on type "${i.name}".`+h,{nodes:r}))}}}}function ehn(e,r,i){if(!(0,rde.isAbstractType)(r))return[];let s=new Set,l=Object.create(null);for(let h of e.getPossibleTypes(r))if(h.getFields()[i]){s.add(h),l[h.name]=1;for(let S of h.getInterfaces()){var d;S.getFields()[i]&&(s.add(S),l[S.name]=((d=l[S.name])!==null&&d!==void 0?d:0)+1)}}return[...s].sort((h,S)=>{let b=l[S.name]-l[h.name];return b!==0?b:(0,rde.isInterfaceType)(h)&&e.isSubType(h,S)?-1:(0,rde.isInterfaceType)(S)&&e.isSubType(S,h)?1:(0,Qmn.naturalCompare)(h.name,S.name)}).map(h=>h.name)}function thn(e,r){if((0,rde.isObjectType)(e)||(0,rde.isInterfaceType)(e)){let i=Object.keys(e.getFields());return(0,Zmn.suggestionList)(r,i)}return[]}});var Ltt=dr(Rtt=>{"use strict";Object.defineProperty(Rtt,"__esModule",{value:!0});Rtt.FragmentsOnCompositeTypesRule=rhn;var Hqt=Cu(),Kqt=FD(),Qqt=jd(),Zqt=I8();function rhn(e){return{InlineFragment(r){let i=r.typeCondition;if(i){let s=(0,Zqt.typeFromAST)(e.getSchema(),i);if(s&&!(0,Qqt.isCompositeType)(s)){let l=(0,Kqt.print)(i);e.reportError(new Hqt.GraphQLError(`Fragment cannot condition on non composite type "${l}".`,{nodes:i}))}}},FragmentDefinition(r){let i=(0,Zqt.typeFromAST)(e.getSchema(),r.typeCondition);if(i&&!(0,Qqt.isCompositeType)(i)){let s=(0,Kqt.print)(r.typeCondition);e.reportError(new Hqt.GraphQLError(`Fragment "${r.name.value}" cannot condition on non composite type "${s}".`,{nodes:r.typeCondition}))}}}}});var Mtt=dr(vAe=>{"use strict";Object.defineProperty(vAe,"__esModule",{value:!0});vAe.KnownArgumentNamesOnDirectivesRule=tJt;vAe.KnownArgumentNamesRule=ohn;var Xqt=IB(),Yqt=NB(),eJt=Cu(),nhn=Md(),ihn=kk();function ohn(e){return{...tJt(e),Argument(r){let i=e.getArgument(),s=e.getFieldDef(),l=e.getParentType();if(!i&&s&&l){let d=r.name.value,h=s.args.map(b=>b.name),S=(0,Yqt.suggestionList)(d,h);e.reportError(new eJt.GraphQLError(`Unknown argument "${d}" on field "${l.name}.${s.name}".`+(0,Xqt.didYouMean)(S),{nodes:r}))}}}}function tJt(e){let r=Object.create(null),i=e.getSchema(),s=i?i.getDirectives():ihn.specifiedDirectives;for(let h of s)r[h.name]=h.args.map(S=>S.name);let l=e.getDocument().definitions;for(let h of l)if(h.kind===nhn.Kind.DIRECTIVE_DEFINITION){var d;let S=(d=h.arguments)!==null&&d!==void 0?d:[];r[h.name.value]=S.map(b=>b.name.value)}return{Directive(h){let S=h.name.value,b=r[S];if(h.arguments&&b)for(let A of h.arguments){let L=A.name.value;if(!b.includes(L)){let V=(0,Yqt.suggestionList)(L,b);e.reportError(new eJt.GraphQLError(`Unknown argument "${L}" on directive "@${S}".`+(0,Xqt.didYouMean)(V),{nodes:A}))}}return!1}}}});var Utt=dr($tt=>{"use strict";Object.defineProperty($tt,"__esModule",{value:!0});$tt.KnownDirectivesRule=chn;var ahn=gm(),jtt=kT(),rJt=Cu(),Btt=aI(),eS=yee(),ly=Md(),shn=kk();function chn(e){let r=Object.create(null),i=e.getSchema(),s=i?i.getDirectives():shn.specifiedDirectives;for(let d of s)r[d.name]=d.locations;let l=e.getDocument().definitions;for(let d of l)d.kind===ly.Kind.DIRECTIVE_DEFINITION&&(r[d.name.value]=d.locations.map(h=>h.value));return{Directive(d,h,S,b,A){let L=d.name.value,V=r[L];if(!V){e.reportError(new rJt.GraphQLError(`Unknown directive "@${L}".`,{nodes:d}));return}let j=lhn(A);j&&!V.includes(j)&&e.reportError(new rJt.GraphQLError(`Directive "@${L}" may not be used on ${j}.`,{nodes:d}))}}}function lhn(e){let r=e[e.length-1];switch("kind"in r||(0,jtt.invariant)(!1),r.kind){case ly.Kind.OPERATION_DEFINITION:return uhn(r.operation);case ly.Kind.FIELD:return eS.DirectiveLocation.FIELD;case ly.Kind.FRAGMENT_SPREAD:return eS.DirectiveLocation.FRAGMENT_SPREAD;case ly.Kind.INLINE_FRAGMENT:return eS.DirectiveLocation.INLINE_FRAGMENT;case ly.Kind.FRAGMENT_DEFINITION:return eS.DirectiveLocation.FRAGMENT_DEFINITION;case ly.Kind.VARIABLE_DEFINITION:return eS.DirectiveLocation.VARIABLE_DEFINITION;case ly.Kind.SCHEMA_DEFINITION:case ly.Kind.SCHEMA_EXTENSION:return eS.DirectiveLocation.SCHEMA;case ly.Kind.SCALAR_TYPE_DEFINITION:case ly.Kind.SCALAR_TYPE_EXTENSION:return eS.DirectiveLocation.SCALAR;case ly.Kind.OBJECT_TYPE_DEFINITION:case ly.Kind.OBJECT_TYPE_EXTENSION:return eS.DirectiveLocation.OBJECT;case ly.Kind.FIELD_DEFINITION:return eS.DirectiveLocation.FIELD_DEFINITION;case ly.Kind.INTERFACE_TYPE_DEFINITION:case ly.Kind.INTERFACE_TYPE_EXTENSION:return eS.DirectiveLocation.INTERFACE;case ly.Kind.UNION_TYPE_DEFINITION:case ly.Kind.UNION_TYPE_EXTENSION:return eS.DirectiveLocation.UNION;case ly.Kind.ENUM_TYPE_DEFINITION:case ly.Kind.ENUM_TYPE_EXTENSION:return eS.DirectiveLocation.ENUM;case ly.Kind.ENUM_VALUE_DEFINITION:return eS.DirectiveLocation.ENUM_VALUE;case ly.Kind.INPUT_OBJECT_TYPE_DEFINITION:case ly.Kind.INPUT_OBJECT_TYPE_EXTENSION:return eS.DirectiveLocation.INPUT_OBJECT;case ly.Kind.INPUT_VALUE_DEFINITION:{let i=e[e.length-3];return"kind"in i||(0,jtt.invariant)(!1),i.kind===ly.Kind.INPUT_OBJECT_TYPE_DEFINITION?eS.DirectiveLocation.INPUT_FIELD_DEFINITION:eS.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,jtt.invariant)(!1,"Unexpected kind: "+(0,ahn.inspect)(r.kind))}}function uhn(e){switch(e){case Btt.OperationTypeNode.QUERY:return eS.DirectiveLocation.QUERY;case Btt.OperationTypeNode.MUTATION:return eS.DirectiveLocation.MUTATION;case Btt.OperationTypeNode.SUBSCRIPTION:return eS.DirectiveLocation.SUBSCRIPTION}}});var qtt=dr(ztt=>{"use strict";Object.defineProperty(ztt,"__esModule",{value:!0});ztt.KnownFragmentNamesRule=_hn;var phn=Cu();function _hn(e){return{FragmentSpread(r){let i=r.name.value;e.getFragment(i)||e.reportError(new phn.GraphQLError(`Unknown fragment "${i}".`,{nodes:r.name}))}}}});var Wtt=dr(Vtt=>{"use strict";Object.defineProperty(Vtt,"__esModule",{value:!0});Vtt.KnownTypeNamesRule=yhn;var dhn=IB(),fhn=NB(),mhn=Cu(),Jtt=HV(),hhn=uI(),ghn=w8();function yhn(e){let r=e.getSchema(),i=r?r.getTypeMap():Object.create(null),s=Object.create(null);for(let d of e.getDocument().definitions)(0,Jtt.isTypeDefinitionNode)(d)&&(s[d.name.value]=!0);let l=[...Object.keys(i),...Object.keys(s)];return{NamedType(d,h,S,b,A){let L=d.name.value;if(!i[L]&&!s[L]){var V;let j=(V=A[2])!==null&&V!==void 0?V:S,ie=j!=null&&vhn(j);if(ie&&nJt.includes(L))return;let te=(0,fhn.suggestionList)(L,ie?nJt.concat(l):l);e.reportError(new mhn.GraphQLError(`Unknown type "${L}".`+(0,dhn.didYouMean)(te),{nodes:d}))}}}}var nJt=[...ghn.specifiedScalarTypes,...hhn.introspectionTypes].map(e=>e.name);function vhn(e){return"kind"in e&&((0,Jtt.isTypeSystemDefinitionNode)(e)||(0,Jtt.isTypeSystemExtensionNode)(e))}});var Htt=dr(Gtt=>{"use strict";Object.defineProperty(Gtt,"__esModule",{value:!0});Gtt.LoneAnonymousOperationRule=xhn;var Shn=Cu(),bhn=Md();function xhn(e){let r=0;return{Document(i){r=i.definitions.filter(s=>s.kind===bhn.Kind.OPERATION_DEFINITION).length},OperationDefinition(i){!i.name&&r>1&&e.reportError(new Shn.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:i}))}}}});var Qtt=dr(Ktt=>{"use strict";Object.defineProperty(Ktt,"__esModule",{value:!0});Ktt.LoneSchemaDefinitionRule=Thn;var iJt=Cu();function Thn(e){var r,i,s;let l=e.getSchema(),d=(r=(i=(s=l?.astNode)!==null&&s!==void 0?s:l?.getQueryType())!==null&&i!==void 0?i:l?.getMutationType())!==null&&r!==void 0?r:l?.getSubscriptionType(),h=0;return{SchemaDefinition(S){if(d){e.reportError(new iJt.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:S}));return}h>0&&e.reportError(new iJt.GraphQLError("Must provide only one schema definition.",{nodes:S})),++h}}}});var Xtt=dr(Ztt=>{"use strict";Object.defineProperty(Ztt,"__esModule",{value:!0});Ztt.MaxIntrospectionDepthRule=Chn;var Ehn=Cu(),oJt=Md(),khn=3;function Chn(e){function r(i,s=Object.create(null),l=0){if(i.kind===oJt.Kind.FRAGMENT_SPREAD){let d=i.name.value;if(s[d]===!0)return!1;let h=e.getFragment(d);if(!h)return!1;try{return s[d]=!0,r(h,s,l)}finally{s[d]=void 0}}if(i.kind===oJt.Kind.FIELD&&(i.name.value==="fields"||i.name.value==="interfaces"||i.name.value==="possibleTypes"||i.name.value==="inputFields")&&(l++,l>=khn))return!0;if("selectionSet"in i&&i.selectionSet){for(let d of i.selectionSet.selections)if(r(d,s,l))return!0}return!1}return{Field(i){if((i.name.value==="__schema"||i.name.value==="__type")&&r(i))return e.reportError(new Ehn.GraphQLError("Maximum introspection depth exceeded",{nodes:[i]})),!1}}}});var ert=dr(Ytt=>{"use strict";Object.defineProperty(Ytt,"__esModule",{value:!0});Ytt.NoFragmentCyclesRule=Ahn;var Dhn=Cu();function Ahn(e){let r=Object.create(null),i=[],s=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(d){return l(d),!1}};function l(d){if(r[d.name.value])return;let h=d.name.value;r[h]=!0;let S=e.getFragmentSpreads(d.selectionSet);if(S.length!==0){s[h]=i.length;for(let b of S){let A=b.name.value,L=s[A];if(i.push(b),L===void 0){let V=e.getFragment(A);V&&l(V)}else{let V=i.slice(L),j=V.slice(0,-1).map(ie=>'"'+ie.name.value+'"').join(", ");e.reportError(new Dhn.GraphQLError(`Cannot spread fragment "${A}" within itself`+(j!==""?` via ${j}.`:"."),{nodes:V}))}i.pop()}s[h]=void 0}}}});var rrt=dr(trt=>{"use strict";Object.defineProperty(trt,"__esModule",{value:!0});trt.NoUndefinedVariablesRule=Ihn;var whn=Cu();function Ihn(e){let r=Object.create(null);return{OperationDefinition:{enter(){r=Object.create(null)},leave(i){let s=e.getRecursiveVariableUsages(i);for(let{node:l}of s){let d=l.name.value;r[d]!==!0&&e.reportError(new whn.GraphQLError(i.name?`Variable "$${d}" is not defined by operation "${i.name.value}".`:`Variable "$${d}" is not defined.`,{nodes:[l,i]}))}}},VariableDefinition(i){r[i.variable.name.value]=!0}}}});var irt=dr(nrt=>{"use strict";Object.defineProperty(nrt,"__esModule",{value:!0});nrt.NoUnusedFragmentsRule=Nhn;var Phn=Cu();function Nhn(e){let r=[],i=[];return{OperationDefinition(s){return r.push(s),!1},FragmentDefinition(s){return i.push(s),!1},Document:{leave(){let s=Object.create(null);for(let l of r)for(let d of e.getRecursivelyReferencedFragments(l))s[d.name.value]=!0;for(let l of i){let d=l.name.value;s[d]!==!0&&e.reportError(new Phn.GraphQLError(`Fragment "${d}" is never used.`,{nodes:l}))}}}}}});var art=dr(ort=>{"use strict";Object.defineProperty(ort,"__esModule",{value:!0});ort.NoUnusedVariablesRule=Fhn;var Ohn=Cu();function Fhn(e){let r=[];return{OperationDefinition:{enter(){r=[]},leave(i){let s=Object.create(null),l=e.getRecursiveVariableUsages(i);for(let{node:d}of l)s[d.name.value]=!0;for(let d of r){let h=d.variable.name.value;s[h]!==!0&&e.reportError(new Ohn.GraphQLError(i.name?`Variable "$${h}" is never used in operation "${i.name.value}".`:`Variable "$${h}" is never used.`,{nodes:d}))}}},VariableDefinition(i){r.push(i)}}}});var lrt=dr(crt=>{"use strict";Object.defineProperty(crt,"__esModule",{value:!0});crt.sortValueNode=srt;var Rhn=j_e(),n9=Md();function srt(e){switch(e.kind){case n9.Kind.OBJECT:return{...e,fields:Lhn(e.fields)};case n9.Kind.LIST:return{...e,values:e.values.map(srt)};case n9.Kind.INT:case n9.Kind.FLOAT:case n9.Kind.STRING:case n9.Kind.BOOLEAN:case n9.Kind.NULL:case n9.Kind.ENUM:case n9.Kind.VARIABLE:return e}}function Lhn(e){return e.map(r=>({...r,value:srt(r.value)})).sort((r,i)=>(0,Rhn.naturalCompare)(r.name.value,i.name.value))}});var hrt=dr(mrt=>{"use strict";Object.defineProperty(mrt,"__esModule",{value:!0});mrt.OverlappingFieldsCanBeMergedRule=$hn;var aJt=gm(),Mhn=Cu(),urt=Md(),jhn=FD(),Ck=jd(),Bhn=lrt(),cJt=I8();function lJt(e){return Array.isArray(e)?e.map(([r,i])=>`subfields "${r}" conflict because `+lJt(i)).join(" and "):e}function $hn(e){let r=new TAe,i=new drt,s=new Map;return{SelectionSet(l){let d=Uhn(e,s,r,i,e.getParentType(),l);for(let[[h,S],b,A]of d){let L=lJt(S);e.reportError(new Mhn.GraphQLError(`Fields "${h}" conflict because ${L}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:b.concat(A)}))}}}}function Uhn(e,r,i,s,l,d){let h=[],[S,b]=xAe(e,r,l,d);if(qhn(e,h,r,i,s,S),b.length!==0)for(let A=0;A1)for(let b=0;b[d.value,h]));return i.every(d=>{let h=d.value,S=l.get(d.name.value);return S===void 0?!1:sJt(h)===sJt(S)})}function sJt(e){return(0,jhn.print)((0,Bhn.sortValueNode)(e))}function prt(e,r){return(0,Ck.isListType)(e)?(0,Ck.isListType)(r)?prt(e.ofType,r.ofType):!0:(0,Ck.isListType)(r)?!0:(0,Ck.isNonNullType)(e)?(0,Ck.isNonNullType)(r)?prt(e.ofType,r.ofType):!0:(0,Ck.isNonNullType)(r)?!0:(0,Ck.isLeafType)(e)||(0,Ck.isLeafType)(r)?e!==r:!1}function xAe(e,r,i,s){let l=r.get(s);if(l)return l;let d=Object.create(null),h=Object.create(null);pJt(e,i,s,d,h);let S=[d,Object.keys(h)];return r.set(s,S),S}function _rt(e,r,i){let s=r.get(i.selectionSet);if(s)return s;let l=(0,cJt.typeFromAST)(e.getSchema(),i.typeCondition);return xAe(e,r,l,i.selectionSet)}function pJt(e,r,i,s,l){for(let d of i.selections)switch(d.kind){case urt.Kind.FIELD:{let h=d.name.value,S;((0,Ck.isObjectType)(r)||(0,Ck.isInterfaceType)(r))&&(S=r.getFields()[h]);let b=d.alias?d.alias.value:h;s[b]||(s[b]=[]),s[b].push([r,d,S]);break}case urt.Kind.FRAGMENT_SPREAD:l[d.name.value]=!0;break;case urt.Kind.INLINE_FRAGMENT:{let h=d.typeCondition,S=h?(0,cJt.typeFromAST)(e.getSchema(),h):r;pJt(e,S,d.selectionSet,s,l);break}}}function Vhn(e,r,i,s){if(e.length>0)return[[r,e.map(([l])=>l)],[i,...e.map(([,l])=>l).flat()],[s,...e.map(([,,l])=>l).flat()]]}var TAe=class{constructor(){this._data=new Map}has(r,i,s){var l;let d=(l=this._data.get(r))===null||l===void 0?void 0:l.get(i);return d===void 0?!1:s?!0:s===d}add(r,i,s){let l=this._data.get(r);l===void 0?this._data.set(r,new Map([[i,s]])):l.set(i,s)}},drt=class{constructor(){this._orderedPairSet=new TAe}has(r,i,s){return r{"use strict";Object.defineProperty(yrt,"__esModule",{value:!0});yrt.PossibleFragmentSpreadsRule=Ghn;var EAe=gm(),_Jt=Cu(),grt=jd(),dJt=J_e(),Whn=I8();function Ghn(e){return{InlineFragment(r){let i=e.getType(),s=e.getParentType();if((0,grt.isCompositeType)(i)&&(0,grt.isCompositeType)(s)&&!(0,dJt.doTypesOverlap)(e.getSchema(),i,s)){let l=(0,EAe.inspect)(s),d=(0,EAe.inspect)(i);e.reportError(new _Jt.GraphQLError(`Fragment cannot be spread here as objects of type "${l}" can never be of type "${d}".`,{nodes:r}))}},FragmentSpread(r){let i=r.name.value,s=Hhn(e,i),l=e.getParentType();if(s&&l&&!(0,dJt.doTypesOverlap)(e.getSchema(),s,l)){let d=(0,EAe.inspect)(l),h=(0,EAe.inspect)(s);e.reportError(new _Jt.GraphQLError(`Fragment "${i}" cannot be spread here as objects of type "${d}" can never be of type "${h}".`,{nodes:r}))}}}}function Hhn(e,r){let i=e.getFragment(r);if(i){let s=(0,Whn.typeFromAST)(e.getSchema(),i.typeCondition);if((0,grt.isCompositeType)(s))return s}}});var brt=dr(Srt=>{"use strict";Object.defineProperty(Srt,"__esModule",{value:!0});Srt.PossibleTypeExtensionsRule=Xhn;var Khn=IB(),mJt=gm(),hJt=kT(),Qhn=NB(),fJt=Cu(),Cy=Md(),Zhn=HV(),Cee=jd();function Xhn(e){let r=e.getSchema(),i=Object.create(null);for(let l of e.getDocument().definitions)(0,Zhn.isTypeDefinitionNode)(l)&&(i[l.name.value]=l);return{ScalarTypeExtension:s,ObjectTypeExtension:s,InterfaceTypeExtension:s,UnionTypeExtension:s,EnumTypeExtension:s,InputObjectTypeExtension:s};function s(l){let d=l.name.value,h=i[d],S=r?.getType(d),b;if(h?b=Yhn[h.kind]:S&&(b=egn(S)),b){if(b!==l.kind){let A=tgn(l.kind);e.reportError(new fJt.GraphQLError(`Cannot extend non-${A} type "${d}".`,{nodes:h?[h,l]:l}))}}else{let A=Object.keys({...i,...r?.getTypeMap()}),L=(0,Qhn.suggestionList)(d,A);e.reportError(new fJt.GraphQLError(`Cannot extend type "${d}" because it is not defined.`+(0,Khn.didYouMean)(L),{nodes:l.name}))}}}var Yhn={[Cy.Kind.SCALAR_TYPE_DEFINITION]:Cy.Kind.SCALAR_TYPE_EXTENSION,[Cy.Kind.OBJECT_TYPE_DEFINITION]:Cy.Kind.OBJECT_TYPE_EXTENSION,[Cy.Kind.INTERFACE_TYPE_DEFINITION]:Cy.Kind.INTERFACE_TYPE_EXTENSION,[Cy.Kind.UNION_TYPE_DEFINITION]:Cy.Kind.UNION_TYPE_EXTENSION,[Cy.Kind.ENUM_TYPE_DEFINITION]:Cy.Kind.ENUM_TYPE_EXTENSION,[Cy.Kind.INPUT_OBJECT_TYPE_DEFINITION]:Cy.Kind.INPUT_OBJECT_TYPE_EXTENSION};function egn(e){if((0,Cee.isScalarType)(e))return Cy.Kind.SCALAR_TYPE_EXTENSION;if((0,Cee.isObjectType)(e))return Cy.Kind.OBJECT_TYPE_EXTENSION;if((0,Cee.isInterfaceType)(e))return Cy.Kind.INTERFACE_TYPE_EXTENSION;if((0,Cee.isUnionType)(e))return Cy.Kind.UNION_TYPE_EXTENSION;if((0,Cee.isEnumType)(e))return Cy.Kind.ENUM_TYPE_EXTENSION;if((0,Cee.isInputObjectType)(e))return Cy.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,hJt.invariant)(!1,"Unexpected type: "+(0,mJt.inspect)(e))}function tgn(e){switch(e){case Cy.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case Cy.Kind.OBJECT_TYPE_EXTENSION:return"object";case Cy.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case Cy.Kind.UNION_TYPE_EXTENSION:return"union";case Cy.Kind.ENUM_TYPE_EXTENSION:return"enum";case Cy.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,hJt.invariant)(!1,"Unexpected kind: "+(0,mJt.inspect)(e))}}});var Trt=dr(kAe=>{"use strict";Object.defineProperty(kAe,"__esModule",{value:!0});kAe.ProvidedRequiredArgumentsOnDirectivesRule=bJt;kAe.ProvidedRequiredArgumentsRule=ign;var yJt=gm(),gJt=PB(),vJt=Cu(),SJt=Md(),rgn=FD(),xrt=jd(),ngn=kk();function ign(e){return{...bJt(e),Field:{leave(r){var i;let s=e.getFieldDef();if(!s)return!1;let l=new Set((i=r.arguments)===null||i===void 0?void 0:i.map(d=>d.name.value));for(let d of s.args)if(!l.has(d.name)&&(0,xrt.isRequiredArgument)(d)){let h=(0,yJt.inspect)(d.type);e.reportError(new vJt.GraphQLError(`Field "${s.name}" argument "${d.name}" of type "${h}" is required, but it was not provided.`,{nodes:r}))}}}}}function bJt(e){var r;let i=Object.create(null),s=e.getSchema(),l=(r=s?.getDirectives())!==null&&r!==void 0?r:ngn.specifiedDirectives;for(let S of l)i[S.name]=(0,gJt.keyMap)(S.args.filter(xrt.isRequiredArgument),b=>b.name);let d=e.getDocument().definitions;for(let S of d)if(S.kind===SJt.Kind.DIRECTIVE_DEFINITION){var h;let b=(h=S.arguments)!==null&&h!==void 0?h:[];i[S.name.value]=(0,gJt.keyMap)(b.filter(ogn),A=>A.name.value)}return{Directive:{leave(S){let b=S.name.value,A=i[b];if(A){var L;let V=(L=S.arguments)!==null&&L!==void 0?L:[],j=new Set(V.map(ie=>ie.name.value));for(let[ie,te]of Object.entries(A))if(!j.has(ie)){let X=(0,xrt.isType)(te.type)?(0,yJt.inspect)(te.type):(0,rgn.print)(te.type);e.reportError(new vJt.GraphQLError(`Directive "@${b}" argument "${ie}" of type "${X}" is required, but it was not provided.`,{nodes:S}))}}}}}}function ogn(e){return e.type.kind===SJt.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var Drt=dr(Crt=>{"use strict";Object.defineProperty(Crt,"__esModule",{value:!0});Crt.ScalarLeafsRule=agn;var Ert=gm(),krt=Cu(),xJt=jd();function agn(e){return{Field(r){let i=e.getType(),s=r.selectionSet;if(i)if((0,xJt.isLeafType)((0,xJt.getNamedType)(i))){if(s){let l=r.name.value,d=(0,Ert.inspect)(i);e.reportError(new krt.GraphQLError(`Field "${l}" must not have a selection since type "${d}" has no subfields.`,{nodes:s}))}}else if(s){if(s.selections.length===0){let l=r.name.value,d=(0,Ert.inspect)(i);e.reportError(new krt.GraphQLError(`Field "${l}" of type "${d}" must have at least one field selected.`,{nodes:r}))}}else{let l=r.name.value,d=(0,Ert.inspect)(i);e.reportError(new krt.GraphQLError(`Field "${l}" of type "${d}" must have a selection of subfields. Did you mean "${l} { ... }"?`,{nodes:r}))}}}}});var wrt=dr(Art=>{"use strict";Object.defineProperty(Art,"__esModule",{value:!0});Art.printPathArray=sgn;function sgn(e){return e.map(r=>typeof r=="number"?"["+r.toString()+"]":"."+r).join("")}});var nde=dr(CAe=>{"use strict";Object.defineProperty(CAe,"__esModule",{value:!0});CAe.addPath=cgn;CAe.pathToArray=lgn;function cgn(e,r,i){return{prev:e,key:r,typename:i}}function lgn(e){let r=[],i=e;for(;i;)r.push(i.key),i=i.prev;return r.reverse()}});var Prt=dr(Irt=>{"use strict";Object.defineProperty(Irt,"__esModule",{value:!0});Irt.coerceInputValue=hgn;var ugn=IB(),DAe=gm(),pgn=kT(),_gn=fAe(),dgn=C8(),Z6=nde(),fgn=wrt(),mgn=NB(),i9=Cu(),ide=jd();function hgn(e,r,i=ggn){return ode(e,r,i,void 0)}function ggn(e,r,i){let s="Invalid value "+(0,DAe.inspect)(r);throw e.length>0&&(s+=` at "value${(0,fgn.printPathArray)(e)}"`),i.message=s+": "+i.message,i}function ode(e,r,i,s){if((0,ide.isNonNullType)(r)){if(e!=null)return ode(e,r.ofType,i,s);i((0,Z6.pathToArray)(s),e,new i9.GraphQLError(`Expected non-nullable type "${(0,DAe.inspect)(r)}" not to be null.`));return}if(e==null)return null;if((0,ide.isListType)(r)){let l=r.ofType;return(0,_gn.isIterableObject)(e)?Array.from(e,(d,h)=>{let S=(0,Z6.addPath)(s,h,void 0);return ode(d,l,i,S)}):[ode(e,l,i,s)]}if((0,ide.isInputObjectType)(r)){if(!(0,dgn.isObjectLike)(e)||Array.isArray(e)){i((0,Z6.pathToArray)(s),e,new i9.GraphQLError(`Expected type "${r.name}" to be an object.`));return}let l={},d=r.getFields();for(let h of Object.values(d)){let S=e[h.name];if(S===void 0){if(h.defaultValue!==void 0)l[h.name]=h.defaultValue;else if((0,ide.isNonNullType)(h.type)){let b=(0,DAe.inspect)(h.type);i((0,Z6.pathToArray)(s),e,new i9.GraphQLError(`Field "${h.name}" of required type "${b}" was not provided.`))}continue}l[h.name]=ode(S,h.type,i,(0,Z6.addPath)(s,h.name,r.name))}for(let h of Object.keys(e))if(!d[h]){let S=(0,mgn.suggestionList)(h,Object.keys(r.getFields()));i((0,Z6.pathToArray)(s),e,new i9.GraphQLError(`Field "${h}" is not defined by type "${r.name}".`+(0,ugn.didYouMean)(S)))}if(r.isOneOf){let h=Object.keys(l);h.length!==1&&i((0,Z6.pathToArray)(s),e,new i9.GraphQLError(`Exactly one key must be specified for OneOf type "${r.name}".`));let S=h[0],b=l[S];b===null&&i((0,Z6.pathToArray)(s).concat(S),b,new i9.GraphQLError(`Field "${S}" must be non-null.`))}return l}if((0,ide.isLeafType)(r)){let l;try{l=r.parseValue(e)}catch(d){d instanceof i9.GraphQLError?i((0,Z6.pathToArray)(s),e,d):i((0,Z6.pathToArray)(s),e,new i9.GraphQLError(`Expected type "${r.name}". `+d.message,{originalError:d}));return}return l===void 0&&i((0,Z6.pathToArray)(s),e,new i9.GraphQLError(`Expected type "${r.name}".`)),l}(0,pgn.invariant)(!1,"Unexpected input type: "+(0,DAe.inspect)(r))}});var sde=dr(Nrt=>{"use strict";Object.defineProperty(Nrt,"__esModule",{value:!0});Nrt.valueFromAST=ade;var ygn=gm(),vgn=kT(),Sgn=PB(),Dee=Md(),KV=jd();function ade(e,r,i){if(e){if(e.kind===Dee.Kind.VARIABLE){let s=e.name.value;if(i==null||i[s]===void 0)return;let l=i[s];return l===null&&(0,KV.isNonNullType)(r)?void 0:l}if((0,KV.isNonNullType)(r))return e.kind===Dee.Kind.NULL?void 0:ade(e,r.ofType,i);if(e.kind===Dee.Kind.NULL)return null;if((0,KV.isListType)(r)){let s=r.ofType;if(e.kind===Dee.Kind.LIST){let d=[];for(let h of e.values)if(TJt(h,i)){if((0,KV.isNonNullType)(s))return;d.push(null)}else{let S=ade(h,s,i);if(S===void 0)return;d.push(S)}return d}let l=ade(e,s,i);return l===void 0?void 0:[l]}if((0,KV.isInputObjectType)(r)){if(e.kind!==Dee.Kind.OBJECT)return;let s=Object.create(null),l=(0,Sgn.keyMap)(e.fields,d=>d.name.value);for(let d of Object.values(r.getFields())){let h=l[d.name];if(!h||TJt(h.value,i)){if(d.defaultValue!==void 0)s[d.name]=d.defaultValue;else if((0,KV.isNonNullType)(d.type))return;continue}let S=ade(h.value,d.type,i);if(S===void 0)return;s[d.name]=S}if(r.isOneOf){let d=Object.keys(s);if(d.length!==1||s[d[0]]===null)return}return s}if((0,KV.isLeafType)(r)){let s;try{s=r.parseLiteral(e,i)}catch{return}return s===void 0?void 0:s}(0,vgn.invariant)(!1,"Unexpected input type: "+(0,ygn.inspect)(r))}}function TJt(e,r){return e.kind===Dee.Kind.VARIABLE&&(r==null||r[e.name.value]===void 0)}});var Iee=dr(cde=>{"use strict";Object.defineProperty(cde,"__esModule",{value:!0});cde.getArgumentValues=DJt;cde.getDirectiveValues=Dgn;cde.getVariableValues=kgn;var Aee=gm(),bgn=PB(),xgn=wrt(),o9=Cu(),EJt=Md(),kJt=FD(),wee=jd(),Tgn=Prt(),Egn=I8(),CJt=sde();function kgn(e,r,i,s){let l=[],d=s?.maxErrors;try{let h=Cgn(e,r,i,S=>{if(d!=null&&l.length>=d)throw new o9.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");l.push(S)});if(l.length===0)return{coerced:h}}catch(h){l.push(h)}return{errors:l}}function Cgn(e,r,i,s){let l={};for(let d of r){let h=d.variable.name.value,S=(0,Egn.typeFromAST)(e,d.type);if(!(0,wee.isInputType)(S)){let A=(0,kJt.print)(d.type);s(new o9.GraphQLError(`Variable "$${h}" expected value of type "${A}" which cannot be used as an input type.`,{nodes:d.type}));continue}if(!AJt(i,h)){if(d.defaultValue)l[h]=(0,CJt.valueFromAST)(d.defaultValue,S);else if((0,wee.isNonNullType)(S)){let A=(0,Aee.inspect)(S);s(new o9.GraphQLError(`Variable "$${h}" of required type "${A}" was not provided.`,{nodes:d}))}continue}let b=i[h];if(b===null&&(0,wee.isNonNullType)(S)){let A=(0,Aee.inspect)(S);s(new o9.GraphQLError(`Variable "$${h}" of non-null type "${A}" must not be null.`,{nodes:d}));continue}l[h]=(0,Tgn.coerceInputValue)(b,S,(A,L,V)=>{let j=`Variable "$${h}" got invalid value `+(0,Aee.inspect)(L);A.length>0&&(j+=` at "${h}${(0,xgn.printPathArray)(A)}"`),s(new o9.GraphQLError(j+"; "+V.message,{nodes:d,originalError:V}))})}return l}function DJt(e,r,i){var s;let l={},d=(s=r.arguments)!==null&&s!==void 0?s:[],h=(0,bgn.keyMap)(d,S=>S.name.value);for(let S of e.args){let b=S.name,A=S.type,L=h[b];if(!L){if(S.defaultValue!==void 0)l[b]=S.defaultValue;else if((0,wee.isNonNullType)(A))throw new o9.GraphQLError(`Argument "${b}" of required type "${(0,Aee.inspect)(A)}" was not provided.`,{nodes:r});continue}let V=L.value,j=V.kind===EJt.Kind.NULL;if(V.kind===EJt.Kind.VARIABLE){let te=V.name.value;if(i==null||!AJt(i,te)){if(S.defaultValue!==void 0)l[b]=S.defaultValue;else if((0,wee.isNonNullType)(A))throw new o9.GraphQLError(`Argument "${b}" of required type "${(0,Aee.inspect)(A)}" was provided the variable "$${te}" which was not provided a runtime value.`,{nodes:V});continue}j=i[te]==null}if(j&&(0,wee.isNonNullType)(A))throw new o9.GraphQLError(`Argument "${b}" of non-null type "${(0,Aee.inspect)(A)}" must not be null.`,{nodes:V});let ie=(0,CJt.valueFromAST)(V,A,i);if(ie===void 0)throw new o9.GraphQLError(`Argument "${b}" has invalid value ${(0,kJt.print)(V)}.`,{nodes:V});l[b]=ie}return l}function Dgn(e,r,i){var s;let l=(s=r.directives)===null||s===void 0?void 0:s.find(d=>d.name.value===e.name);if(l)return DJt(e,l,i)}function AJt(e,r){return Object.prototype.hasOwnProperty.call(e,r)}});var IAe=dr(wAe=>{"use strict";Object.defineProperty(wAe,"__esModule",{value:!0});wAe.collectFields=Ign;wAe.collectSubfields=Pgn;var Ort=Md(),Agn=jd(),wJt=kk(),wgn=I8(),IJt=Iee();function Ign(e,r,i,s,l){let d=new Map;return AAe(e,r,i,s,l,d,new Set),d}function Pgn(e,r,i,s,l){let d=new Map,h=new Set;for(let S of l)S.selectionSet&&AAe(e,r,i,s,S.selectionSet,d,h);return d}function AAe(e,r,i,s,l,d,h){for(let S of l.selections)switch(S.kind){case Ort.Kind.FIELD:{if(!Frt(i,S))continue;let b=Ngn(S),A=d.get(b);A!==void 0?A.push(S):d.set(b,[S]);break}case Ort.Kind.INLINE_FRAGMENT:{if(!Frt(i,S)||!PJt(e,S,s))continue;AAe(e,r,i,s,S.selectionSet,d,h);break}case Ort.Kind.FRAGMENT_SPREAD:{let b=S.name.value;if(h.has(b)||!Frt(i,S))continue;h.add(b);let A=r[b];if(!A||!PJt(e,A,s))continue;AAe(e,r,i,s,A.selectionSet,d,h);break}}}function Frt(e,r){let i=(0,IJt.getDirectiveValues)(wJt.GraphQLSkipDirective,r,e);if(i?.if===!0)return!1;let s=(0,IJt.getDirectiveValues)(wJt.GraphQLIncludeDirective,r,e);return s?.if!==!1}function PJt(e,r,i){let s=r.typeCondition;if(!s)return!0;let l=(0,wgn.typeFromAST)(e,s);return l===i?!0:(0,Agn.isAbstractType)(l)?e.isSubType(l,i):!1}function Ngn(e){return e.alias?e.alias.value:e.name.value}});var Lrt=dr(Rrt=>{"use strict";Object.defineProperty(Rrt,"__esModule",{value:!0});Rrt.SingleFieldSubscriptionsRule=Rgn;var NJt=Cu(),Ogn=Md(),Fgn=IAe();function Rgn(e){return{OperationDefinition(r){if(r.operation==="subscription"){let i=e.getSchema(),s=i.getSubscriptionType();if(s){let l=r.name?r.name.value:null,d=Object.create(null),h=e.getDocument(),S=Object.create(null);for(let A of h.definitions)A.kind===Ogn.Kind.FRAGMENT_DEFINITION&&(S[A.name.value]=A);let b=(0,Fgn.collectFields)(i,S,d,s,r.selectionSet);if(b.size>1){let V=[...b.values()].slice(1).flat();e.reportError(new NJt.GraphQLError(l!=null?`Subscription "${l}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:V}))}for(let A of b.values())A[0].name.value.startsWith("__")&&e.reportError(new NJt.GraphQLError(l!=null?`Subscription "${l}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:A}))}}}}}});var PAe=dr(Mrt=>{"use strict";Object.defineProperty(Mrt,"__esModule",{value:!0});Mrt.groupBy=Lgn;function Lgn(e,r){let i=new Map;for(let s of e){let l=r(s),d=i.get(l);d===void 0?i.set(l,[s]):d.push(s)}return i}});var Brt=dr(jrt=>{"use strict";Object.defineProperty(jrt,"__esModule",{value:!0});jrt.UniqueArgumentDefinitionNamesRule=Bgn;var Mgn=PAe(),jgn=Cu();function Bgn(e){return{DirectiveDefinition(s){var l;let d=(l=s.arguments)!==null&&l!==void 0?l:[];return i(`@${s.name.value}`,d)},InterfaceTypeDefinition:r,InterfaceTypeExtension:r,ObjectTypeDefinition:r,ObjectTypeExtension:r};function r(s){var l;let d=s.name.value,h=(l=s.fields)!==null&&l!==void 0?l:[];for(let b of h){var S;let A=b.name.value,L=(S=b.arguments)!==null&&S!==void 0?S:[];i(`${d}.${A}`,L)}return!1}function i(s,l){let d=(0,Mgn.groupBy)(l,h=>h.name.value);for(let[h,S]of d)S.length>1&&e.reportError(new jgn.GraphQLError(`Argument "${s}(${h}:)" can only be defined once.`,{nodes:S.map(b=>b.name)}));return!1}}});var Urt=dr($rt=>{"use strict";Object.defineProperty($rt,"__esModule",{value:!0});$rt.UniqueArgumentNamesRule=zgn;var $gn=PAe(),Ugn=Cu();function zgn(e){return{Field:r,Directive:r};function r(i){var s;let l=(s=i.arguments)!==null&&s!==void 0?s:[],d=(0,$gn.groupBy)(l,h=>h.name.value);for(let[h,S]of d)S.length>1&&e.reportError(new Ugn.GraphQLError(`There can be only one argument named "${h}".`,{nodes:S.map(b=>b.name)}))}}});var qrt=dr(zrt=>{"use strict";Object.defineProperty(zrt,"__esModule",{value:!0});zrt.UniqueDirectiveNamesRule=qgn;var OJt=Cu();function qgn(e){let r=Object.create(null),i=e.getSchema();return{DirectiveDefinition(s){let l=s.name.value;if(i!=null&&i.getDirective(l)){e.reportError(new OJt.GraphQLError(`Directive "@${l}" already exists in the schema. It cannot be redefined.`,{nodes:s.name}));return}return r[l]?e.reportError(new OJt.GraphQLError(`There can be only one directive named "@${l}".`,{nodes:[r[l],s.name]})):r[l]=s.name,!1}}}});var Wrt=dr(Vrt=>{"use strict";Object.defineProperty(Vrt,"__esModule",{value:!0});Vrt.UniqueDirectivesPerLocationRule=Wgn;var Jgn=Cu(),Jrt=Md(),FJt=HV(),Vgn=kk();function Wgn(e){let r=Object.create(null),i=e.getSchema(),s=i?i.getDirectives():Vgn.specifiedDirectives;for(let S of s)r[S.name]=!S.isRepeatable;let l=e.getDocument().definitions;for(let S of l)S.kind===Jrt.Kind.DIRECTIVE_DEFINITION&&(r[S.name.value]=!S.repeatable);let d=Object.create(null),h=Object.create(null);return{enter(S){if(!("directives"in S)||!S.directives)return;let b;if(S.kind===Jrt.Kind.SCHEMA_DEFINITION||S.kind===Jrt.Kind.SCHEMA_EXTENSION)b=d;else if((0,FJt.isTypeDefinitionNode)(S)||(0,FJt.isTypeExtensionNode)(S)){let A=S.name.value;b=h[A],b===void 0&&(h[A]=b=Object.create(null))}else b=Object.create(null);for(let A of S.directives){let L=A.name.value;r[L]&&(b[L]?e.reportError(new Jgn.GraphQLError(`The directive "@${L}" can only be used once at this location.`,{nodes:[b[L],A]})):b[L]=A)}}}}});var Hrt=dr(Grt=>{"use strict";Object.defineProperty(Grt,"__esModule",{value:!0});Grt.UniqueEnumValueNamesRule=Hgn;var RJt=Cu(),Ggn=jd();function Hgn(e){let r=e.getSchema(),i=r?r.getTypeMap():Object.create(null),s=Object.create(null);return{EnumTypeDefinition:l,EnumTypeExtension:l};function l(d){var h;let S=d.name.value;s[S]||(s[S]=Object.create(null));let b=(h=d.values)!==null&&h!==void 0?h:[],A=s[S];for(let L of b){let V=L.name.value,j=i[S];(0,Ggn.isEnumType)(j)&&j.getValue(V)?e.reportError(new RJt.GraphQLError(`Enum value "${S}.${V}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:L.name})):A[V]?e.reportError(new RJt.GraphQLError(`Enum value "${S}.${V}" can only be defined once.`,{nodes:[A[V],L.name]})):A[V]=L.name}return!1}}});var Zrt=dr(Qrt=>{"use strict";Object.defineProperty(Qrt,"__esModule",{value:!0});Qrt.UniqueFieldDefinitionNamesRule=Kgn;var LJt=Cu(),Krt=jd();function Kgn(e){let r=e.getSchema(),i=r?r.getTypeMap():Object.create(null),s=Object.create(null);return{InputObjectTypeDefinition:l,InputObjectTypeExtension:l,InterfaceTypeDefinition:l,InterfaceTypeExtension:l,ObjectTypeDefinition:l,ObjectTypeExtension:l};function l(d){var h;let S=d.name.value;s[S]||(s[S]=Object.create(null));let b=(h=d.fields)!==null&&h!==void 0?h:[],A=s[S];for(let L of b){let V=L.name.value;Qgn(i[S],V)?e.reportError(new LJt.GraphQLError(`Field "${S}.${V}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:L.name})):A[V]?e.reportError(new LJt.GraphQLError(`Field "${S}.${V}" can only be defined once.`,{nodes:[A[V],L.name]})):A[V]=L.name}return!1}}function Qgn(e,r){return(0,Krt.isObjectType)(e)||(0,Krt.isInterfaceType)(e)||(0,Krt.isInputObjectType)(e)?e.getFields()[r]!=null:!1}});var Yrt=dr(Xrt=>{"use strict";Object.defineProperty(Xrt,"__esModule",{value:!0});Xrt.UniqueFragmentNamesRule=Xgn;var Zgn=Cu();function Xgn(e){let r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(i){let s=i.name.value;return r[s]?e.reportError(new Zgn.GraphQLError(`There can be only one fragment named "${s}".`,{nodes:[r[s],i.name]})):r[s]=i.name,!1}}}});var tnt=dr(ent=>{"use strict";Object.defineProperty(ent,"__esModule",{value:!0});ent.UniqueInputFieldNamesRule=tyn;var Ygn=kT(),eyn=Cu();function tyn(e){let r=[],i=Object.create(null);return{ObjectValue:{enter(){r.push(i),i=Object.create(null)},leave(){let s=r.pop();s||(0,Ygn.invariant)(!1),i=s}},ObjectField(s){let l=s.name.value;i[l]?e.reportError(new eyn.GraphQLError(`There can be only one input field named "${l}".`,{nodes:[i[l],s.name]})):i[l]=s.name}}}});var nnt=dr(rnt=>{"use strict";Object.defineProperty(rnt,"__esModule",{value:!0});rnt.UniqueOperationNamesRule=nyn;var ryn=Cu();function nyn(e){let r=Object.create(null);return{OperationDefinition(i){let s=i.name;return s&&(r[s.value]?e.reportError(new ryn.GraphQLError(`There can be only one operation named "${s.value}".`,{nodes:[r[s.value],s]})):r[s.value]=s),!1},FragmentDefinition:()=>!1}}});var ont=dr(int=>{"use strict";Object.defineProperty(int,"__esModule",{value:!0});int.UniqueOperationTypesRule=iyn;var MJt=Cu();function iyn(e){let r=e.getSchema(),i=Object.create(null),s=r?{query:r.getQueryType(),mutation:r.getMutationType(),subscription:r.getSubscriptionType()}:{};return{SchemaDefinition:l,SchemaExtension:l};function l(d){var h;let S=(h=d.operationTypes)!==null&&h!==void 0?h:[];for(let b of S){let A=b.operation,L=i[A];s[A]?e.reportError(new MJt.GraphQLError(`Type for ${A} already defined in the schema. It cannot be redefined.`,{nodes:b})):L?e.reportError(new MJt.GraphQLError(`There can be only one ${A} type in schema.`,{nodes:[L,b]})):i[A]=b}return!1}}});var snt=dr(ant=>{"use strict";Object.defineProperty(ant,"__esModule",{value:!0});ant.UniqueTypeNamesRule=oyn;var jJt=Cu();function oyn(e){let r=Object.create(null),i=e.getSchema();return{ScalarTypeDefinition:s,ObjectTypeDefinition:s,InterfaceTypeDefinition:s,UnionTypeDefinition:s,EnumTypeDefinition:s,InputObjectTypeDefinition:s};function s(l){let d=l.name.value;if(i!=null&&i.getType(d)){e.reportError(new jJt.GraphQLError(`Type "${d}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:l.name}));return}return r[d]?e.reportError(new jJt.GraphQLError(`There can be only one type named "${d}".`,{nodes:[r[d],l.name]})):r[d]=l.name,!1}}});var lnt=dr(cnt=>{"use strict";Object.defineProperty(cnt,"__esModule",{value:!0});cnt.UniqueVariableNamesRule=cyn;var ayn=PAe(),syn=Cu();function cyn(e){return{OperationDefinition(r){var i;let s=(i=r.variableDefinitions)!==null&&i!==void 0?i:[],l=(0,ayn.groupBy)(s,d=>d.variable.name.value);for(let[d,h]of l)h.length>1&&e.reportError(new syn.GraphQLError(`There can be only one variable named "$${d}".`,{nodes:h.map(S=>S.variable.name)}))}}}});var pnt=dr(unt=>{"use strict";Object.defineProperty(unt,"__esModule",{value:!0});unt.ValuesOfCorrectTypeRule=dyn;var lyn=IB(),lde=gm(),uyn=PB(),pyn=NB(),a9=Cu(),_yn=Md(),NAe=FD(),P8=jd();function dyn(e){let r={};return{OperationDefinition:{enter(){r={}}},VariableDefinition(i){r[i.variable.name.value]=i},ListValue(i){let s=(0,P8.getNullableType)(e.getParentInputType());if(!(0,P8.isListType)(s))return QV(e,i),!1},ObjectValue(i){let s=(0,P8.getNamedType)(e.getInputType());if(!(0,P8.isInputObjectType)(s))return QV(e,i),!1;let l=(0,uyn.keyMap)(i.fields,d=>d.name.value);for(let d of Object.values(s.getFields()))if(!l[d.name]&&(0,P8.isRequiredInputField)(d)){let S=(0,lde.inspect)(d.type);e.reportError(new a9.GraphQLError(`Field "${s.name}.${d.name}" of required type "${S}" was not provided.`,{nodes:i}))}s.isOneOf&&fyn(e,i,s,l)},ObjectField(i){let s=(0,P8.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,P8.isInputObjectType)(s)){let d=(0,pyn.suggestionList)(i.name.value,Object.keys(s.getFields()));e.reportError(new a9.GraphQLError(`Field "${i.name.value}" is not defined by type "${s.name}".`+(0,lyn.didYouMean)(d),{nodes:i}))}},NullValue(i){let s=e.getInputType();(0,P8.isNonNullType)(s)&&e.reportError(new a9.GraphQLError(`Expected value of type "${(0,lde.inspect)(s)}", found ${(0,NAe.print)(i)}.`,{nodes:i}))},EnumValue:i=>QV(e,i),IntValue:i=>QV(e,i),FloatValue:i=>QV(e,i),StringValue:i=>QV(e,i),BooleanValue:i=>QV(e,i)}}function QV(e,r){let i=e.getInputType();if(!i)return;let s=(0,P8.getNamedType)(i);if(!(0,P8.isLeafType)(s)){let l=(0,lde.inspect)(i);e.reportError(new a9.GraphQLError(`Expected value of type "${l}", found ${(0,NAe.print)(r)}.`,{nodes:r}));return}try{if(s.parseLiteral(r,void 0)===void 0){let d=(0,lde.inspect)(i);e.reportError(new a9.GraphQLError(`Expected value of type "${d}", found ${(0,NAe.print)(r)}.`,{nodes:r}))}}catch(l){let d=(0,lde.inspect)(i);l instanceof a9.GraphQLError?e.reportError(l):e.reportError(new a9.GraphQLError(`Expected value of type "${d}", found ${(0,NAe.print)(r)}; `+l.message,{nodes:r,originalError:l}))}}function fyn(e,r,i,s){var l;let d=Object.keys(s);if(d.length!==1){e.reportError(new a9.GraphQLError(`OneOf Input Object "${i.name}" must specify exactly one key.`,{nodes:[r]}));return}let S=(l=s[d[0]])===null||l===void 0?void 0:l.value;(!S||S.kind===_yn.Kind.NULL)&&e.reportError(new a9.GraphQLError(`Field "${i.name}.${d[0]}" must be non-null.`,{nodes:[r]}))}});var dnt=dr(_nt=>{"use strict";Object.defineProperty(_nt,"__esModule",{value:!0});_nt.VariablesAreInputTypesRule=vyn;var myn=Cu(),hyn=FD(),gyn=jd(),yyn=I8();function vyn(e){return{VariableDefinition(r){let i=(0,yyn.typeFromAST)(e.getSchema(),r.type);if(i!==void 0&&!(0,gyn.isInputType)(i)){let s=r.variable.name.value,l=(0,hyn.print)(r.type);e.reportError(new myn.GraphQLError(`Variable "$${s}" cannot be non-input type "${l}".`,{nodes:r.type}))}}}}});var mnt=dr(fnt=>{"use strict";Object.defineProperty(fnt,"__esModule",{value:!0});fnt.VariablesInAllowedPositionRule=xyn;var BJt=gm(),$Jt=Cu(),Syn=Md(),OAe=jd(),UJt=J_e(),byn=I8();function xyn(e){let r=Object.create(null);return{OperationDefinition:{enter(){r=Object.create(null)},leave(i){let s=e.getRecursiveVariableUsages(i);for(let{node:l,type:d,defaultValue:h,parentType:S}of s){let b=l.name.value,A=r[b];if(A&&d){let L=e.getSchema(),V=(0,byn.typeFromAST)(L,A.type);if(V&&!Tyn(L,V,A.defaultValue,d,h)){let j=(0,BJt.inspect)(V),ie=(0,BJt.inspect)(d);e.reportError(new $Jt.GraphQLError(`Variable "$${b}" of type "${j}" used in position expecting type "${ie}".`,{nodes:[A,l]}))}(0,OAe.isInputObjectType)(S)&&S.isOneOf&&(0,OAe.isNullableType)(V)&&e.reportError(new $Jt.GraphQLError(`Variable "$${b}" is of type "${V}" but must be non-nullable to be used for OneOf Input Object "${S}".`,{nodes:[A,l]}))}}}},VariableDefinition(i){r[i.variable.name.value]=i}}}function Tyn(e,r,i,s,l){if((0,OAe.isNonNullType)(s)&&!(0,OAe.isNonNullType)(r)){if(!(i!=null&&i.kind!==Syn.Kind.NULL)&&!(l!==void 0))return!1;let S=s.ofType;return(0,UJt.isTypeSubTypeOf)(e,r,S)}return(0,UJt.isTypeSubTypeOf)(e,r,s)}});var hnt=dr(LB=>{"use strict";Object.defineProperty(LB,"__esModule",{value:!0});LB.specifiedSDLRules=LB.specifiedRules=LB.recommendedRules=void 0;var Eyn=Ntt(),kyn=Ftt(),Cyn=Ltt(),zJt=Mtt(),qJt=Utt(),Dyn=qtt(),JJt=Wtt(),Ayn=Htt(),wyn=Qtt(),Iyn=Xtt(),Pyn=ert(),Nyn=rrt(),Oyn=irt(),Fyn=art(),Ryn=hrt(),Lyn=vrt(),Myn=brt(),VJt=Trt(),jyn=Drt(),Byn=Lrt(),$yn=Brt(),WJt=Urt(),Uyn=qrt(),GJt=Wrt(),zyn=Hrt(),qyn=Zrt(),Jyn=Yrt(),HJt=tnt(),Vyn=nnt(),Wyn=ont(),Gyn=snt(),Hyn=lnt(),Kyn=pnt(),Qyn=dnt(),Zyn=mnt(),KJt=Object.freeze([Iyn.MaxIntrospectionDepthRule]);LB.recommendedRules=KJt;var Xyn=Object.freeze([Eyn.ExecutableDefinitionsRule,Vyn.UniqueOperationNamesRule,Ayn.LoneAnonymousOperationRule,Byn.SingleFieldSubscriptionsRule,JJt.KnownTypeNamesRule,Cyn.FragmentsOnCompositeTypesRule,Qyn.VariablesAreInputTypesRule,jyn.ScalarLeafsRule,kyn.FieldsOnCorrectTypeRule,Jyn.UniqueFragmentNamesRule,Dyn.KnownFragmentNamesRule,Oyn.NoUnusedFragmentsRule,Lyn.PossibleFragmentSpreadsRule,Pyn.NoFragmentCyclesRule,Hyn.UniqueVariableNamesRule,Nyn.NoUndefinedVariablesRule,Fyn.NoUnusedVariablesRule,qJt.KnownDirectivesRule,GJt.UniqueDirectivesPerLocationRule,zJt.KnownArgumentNamesRule,WJt.UniqueArgumentNamesRule,Kyn.ValuesOfCorrectTypeRule,VJt.ProvidedRequiredArgumentsRule,Zyn.VariablesInAllowedPositionRule,Ryn.OverlappingFieldsCanBeMergedRule,HJt.UniqueInputFieldNamesRule,...KJt]);LB.specifiedRules=Xyn;var Yyn=Object.freeze([wyn.LoneSchemaDefinitionRule,Wyn.UniqueOperationTypesRule,Gyn.UniqueTypeNamesRule,zyn.UniqueEnumValueNamesRule,qyn.UniqueFieldDefinitionNamesRule,$yn.UniqueArgumentDefinitionNamesRule,Uyn.UniqueDirectiveNamesRule,JJt.KnownTypeNamesRule,qJt.KnownDirectivesRule,GJt.UniqueDirectivesPerLocationRule,Myn.PossibleTypeExtensionsRule,zJt.KnownArgumentNamesOnDirectivesRule,WJt.UniqueArgumentNamesRule,HJt.UniqueInputFieldNamesRule,VJt.ProvidedRequiredArgumentsOnDirectivesRule]);LB.specifiedSDLRules=Yyn});var vnt=dr(MB=>{"use strict";Object.defineProperty(MB,"__esModule",{value:!0});MB.ValidationContext=MB.SDLValidationContext=MB.ASTValidationContext=void 0;var QJt=Md(),e0n=$V(),ZJt=yAe(),ude=class{constructor(r,i){this._ast=r,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=i}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(r){this._onError(r)}getDocument(){return this._ast}getFragment(r){let i;if(this._fragments)i=this._fragments;else{i=Object.create(null);for(let s of this.getDocument().definitions)s.kind===QJt.Kind.FRAGMENT_DEFINITION&&(i[s.name.value]=s);this._fragments=i}return i[r]}getFragmentSpreads(r){let i=this._fragmentSpreads.get(r);if(!i){i=[];let s=[r],l;for(;l=s.pop();)for(let d of l.selections)d.kind===QJt.Kind.FRAGMENT_SPREAD?i.push(d):d.selectionSet&&s.push(d.selectionSet);this._fragmentSpreads.set(r,i)}return i}getRecursivelyReferencedFragments(r){let i=this._recursivelyReferencedFragments.get(r);if(!i){i=[];let s=Object.create(null),l=[r.selectionSet],d;for(;d=l.pop();)for(let h of this.getFragmentSpreads(d)){let S=h.name.value;if(s[S]!==!0){s[S]=!0;let b=this.getFragment(S);b&&(i.push(b),l.push(b.selectionSet))}}this._recursivelyReferencedFragments.set(r,i)}return i}};MB.ASTValidationContext=ude;var gnt=class extends ude{constructor(r,i,s){super(r,s),this._schema=i}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};MB.SDLValidationContext=gnt;var ynt=class extends ude{constructor(r,i,s,l){super(i,l),this._schema=r,this._typeInfo=s,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(r){let i=this._variableUsages.get(r);if(!i){let s=[],l=new ZJt.TypeInfo(this._schema);(0,e0n.visit)(r,(0,ZJt.visitWithTypeInfo)(l,{VariableDefinition:()=>!1,Variable(d){s.push({node:d,type:l.getInputType(),defaultValue:l.getDefaultValue(),parentType:l.getParentInputType()})}})),i=s,this._variableUsages.set(r,i)}return i}getRecursiveVariableUsages(r){let i=this._recursiveVariableUsages.get(r);if(!i){i=this.getVariableUsages(r);for(let s of this.getRecursivelyReferencedFragments(r))i=i.concat(this.getVariableUsages(s));this._recursiveVariableUsages.set(r,i)}return i}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};MB.ValidationContext=ynt});var pde=dr(Pee=>{"use strict";Object.defineProperty(Pee,"__esModule",{value:!0});Pee.assertValidSDL=c0n;Pee.assertValidSDLExtension=l0n;Pee.validate=s0n;Pee.validateSDL=Snt;var t0n=J2(),r0n=VDe(),n0n=Cu(),i0n=aI(),FAe=$V(),o0n=ede(),XJt=yAe(),YJt=hnt(),eVt=vnt(),a0n=(0,r0n.mapValue)(i0n.QueryDocumentKeys,e=>e.filter(r=>r!=="description"));function s0n(e,r,i=YJt.specifiedRules,s,l=new XJt.TypeInfo(e)){var d;let h=(d=s?.maxErrors)!==null&&d!==void 0?d:100;r||(0,t0n.devAssert)(!1,"Must provide document."),(0,o0n.assertValidSchema)(e);let S=Object.freeze({}),b=[],A=new eVt.ValidationContext(e,r,l,V=>{if(b.length>=h)throw b.push(new n0n.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),S;b.push(V)}),L=(0,FAe.visitInParallel)(i.map(V=>V(A)));try{(0,FAe.visit)(r,(0,XJt.visitWithTypeInfo)(l,L),a0n)}catch(V){if(V!==S)throw V}return b}function Snt(e,r,i=YJt.specifiedSDLRules){let s=[],l=new eVt.SDLValidationContext(e,r,h=>{s.push(h)}),d=i.map(h=>h(l));return(0,FAe.visit)(e,(0,FAe.visitInParallel)(d)),s}function c0n(e){let r=Snt(e);if(r.length!==0)throw new Error(r.map(i=>i.message).join(` +`))}var sK=class{constructor(t){this._errors=[],this.schema=t}reportError(t,r){let n=Array.isArray(r)?r.filter(Boolean):r;this._errors.push(new Kut.GraphQLError(t,{nodes:n}))}getErrors(){return this._errors}};function Wut(e){let t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,gi.isObjectType)(r)){var n;e.reportError(`Query root type must be Object type, it cannot be ${(0,ds.inspect)(r)}.`,(n=aK(t,iK.OperationTypeNode.QUERY))!==null&&n!==void 0?n:r.astNode)}let o=t.getMutationType();if(o&&!(0,gi.isObjectType)(o)){var i;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,ds.inspect)(o)}.`,(i=aK(t,iK.OperationTypeNode.MUTATION))!==null&&i!==void 0?i:o.astNode)}let a=t.getSubscriptionType();if(a&&!(0,gi.isObjectType)(a)){var s;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,ds.inspect)(a)}.`,(s=aK(t,iK.OperationTypeNode.SUBSCRIPTION))!==null&&s!==void 0?s:a.astNode)}}function aK(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap(n=>{var o;return(o=n?.operationTypes)!==null&&o!==void 0?o:[]}).find(n=>n.operation===t))===null||r===void 0?void 0:r.type}function Qut(e){for(let r of e.schema.getDirectives()){if(!(0,ESe.isDirective)(r)){e.reportError(`Expected directive but got: ${(0,ds.inspect)(r)}.`,r?.astNode);continue}eS(e,r),r.locations.length===0&&e.reportError(`Directive @${r.name} must include 1 or more locations.`,r.astNode);for(let n of r.args)if(eS(e,n),(0,gi.isInputType)(n.type)||e.reportError(`The type of @${r.name}(${n.name}:) must be Input Type but got: ${(0,ds.inspect)(n.type)}.`,n.astNode),(0,gi.isRequiredArgument)(n)&&n.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${n.name}:) cannot be deprecated.`,[cK(n.astNode),(t=n.astNode)===null||t===void 0?void 0:t.type])}}}function eS(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Xut(e){let t=ipt(e),r=e.schema.getTypeMap();for(let n of Object.values(r)){if(!(0,gi.isNamedType)(n)){e.reportError(`Expected GraphQL named type but got: ${(0,ds.inspect)(n)}.`,n.astNode);continue}(0,Gut.isIntrospectionType)(n)||eS(e,n),(0,gi.isObjectType)(n)||(0,gi.isInterfaceType)(n)?(vSe(e,n),bSe(e,n)):(0,gi.isUnionType)(n)?tpt(e,n):(0,gi.isEnumType)(n)?rpt(e,n):(0,gi.isInputObjectType)(n)&&(npt(e,n),t(n))}}function vSe(e,t){let r=Object.values(t.getFields());r.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let a of r){if(eS(e,a),!(0,gi.isOutputType)(a.type)){var n;e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${(0,ds.inspect)(a.type)}.`,(n=a.astNode)===null||n===void 0?void 0:n.type)}for(let s of a.args){let c=s.name;if(eS(e,s),!(0,gi.isInputType)(s.type)){var o;e.reportError(`The type of ${t.name}.${a.name}(${c}:) must be Input Type but got: ${(0,ds.inspect)(s.type)}.`,(o=s.astNode)===null||o===void 0?void 0:o.type)}if((0,gi.isRequiredArgument)(s)&&s.deprecationReason!=null){var i;e.reportError(`Required argument ${t.name}.${a.name}(${c}:) cannot be deprecated.`,[cK(s.astNode),(i=s.astNode)===null||i===void 0?void 0:i.type])}}}}function bSe(e,t){let r=Object.create(null);for(let n of t.getInterfaces()){if(!(0,gi.isInterfaceType)(n)){e.reportError(`Type ${(0,ds.inspect)(t)} must only implement Interface types, it cannot implement ${(0,ds.inspect)(n)}.`,R2(t,n));continue}if(t===n){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,R2(t,n));continue}if(r[n.name]){e.reportError(`Type ${t.name} can only implement ${n.name} once.`,R2(t,n));continue}r[n.name]=!0,ept(e,t,n),Yut(e,t,n)}}function Yut(e,t,r){let n=t.getFields();for(let c of Object.values(r.getFields())){let p=c.name,d=n[p];if(!d){e.reportError(`Interface field ${r.name}.${p} expected but ${t.name} does not provide it.`,[c.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,SSe.isTypeSubTypeOf)(e.schema,d.type,c.type)){var o,i;e.reportError(`Interface field ${r.name}.${p} expects type ${(0,ds.inspect)(c.type)} but ${t.name}.${p} is type ${(0,ds.inspect)(d.type)}.`,[(o=c.astNode)===null||o===void 0?void 0:o.type,(i=d.astNode)===null||i===void 0?void 0:i.type])}for(let f of c.args){let m=f.name,y=d.args.find(g=>g.name===m);if(!y){e.reportError(`Interface field argument ${r.name}.${p}(${m}:) expected but ${t.name}.${p} does not provide it.`,[f.astNode,d.astNode]);continue}if(!(0,SSe.isEqualType)(f.type,y.type)){var a,s;e.reportError(`Interface field argument ${r.name}.${p}(${m}:) expects type ${(0,ds.inspect)(f.type)} but ${t.name}.${p}(${m}:) is type ${(0,ds.inspect)(y.type)}.`,[(a=f.astNode)===null||a===void 0?void 0:a.type,(s=y.astNode)===null||s===void 0?void 0:s.type])}}for(let f of d.args){let m=f.name;!c.args.find(g=>g.name===m)&&(0,gi.isRequiredArgument)(f)&&e.reportError(`Object field ${t.name}.${p} includes required argument ${m} that is missing from the Interface field ${r.name}.${p}.`,[f.astNode,c.astNode])}}}function ept(e,t,r){let n=t.getInterfaces();for(let o of r.getInterfaces())n.includes(o)||e.reportError(o===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${o.name} because it is implemented by ${r.name}.`,[...R2(r,o),...R2(t,r)])}function tpt(e,t){let r=t.getTypes();r.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let n=Object.create(null);for(let o of r){if(n[o.name]){e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,xSe(t,o.name));continue}n[o.name]=!0,(0,gi.isObjectType)(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,ds.inspect)(o)}.`,xSe(t,String(o)))}}function rpt(e,t){let r=t.getValues();r.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let n of r)eS(e,n)}function npt(e,t){let r=Object.values(t.getFields());r.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let i of r){if(eS(e,i),!(0,gi.isInputType)(i.type)){var n;e.reportError(`The type of ${t.name}.${i.name} must be Input Type but got: ${(0,ds.inspect)(i.type)}.`,(n=i.astNode)===null||n===void 0?void 0:n.type)}if((0,gi.isRequiredInputField)(i)&&i.deprecationReason!=null){var o;e.reportError(`Required input field ${t.name}.${i.name} cannot be deprecated.`,[cK(i.astNode),(o=i.astNode)===null||o===void 0?void 0:o.type])}t.isOneOf&&opt(t,i,e)}}function opt(e,t,r){if((0,gi.isNonNullType)(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(n=t.astNode)===null||n===void 0?void 0:n.type)}t.defaultValue!==void 0&&r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function ipt(e){let t=Object.create(null),r=[],n=Object.create(null);return o;function o(i){if(t[i.name])return;t[i.name]=!0,n[i.name]=r.length;let a=Object.values(i.getFields());for(let s of a)if((0,gi.isNonNullType)(s.type)&&(0,gi.isInputObjectType)(s.type.ofType)){let c=s.type.ofType,p=n[c.name];if(r.push(s),p===void 0)o(c);else{let d=r.slice(p),f=d.map(m=>m.name).join(".");e.reportError(`Cannot reference Input Object "${c.name}" within itself through a series of non-null fields: "${f}".`,d.map(m=>m.astNode))}r.pop()}n[i.name]=void 0}}function R2(e,t){let{astNode:r,extensionASTNodes:n}=e;return(r!=null?[r,...n]:n).flatMap(i=>{var a;return(a=i.interfaces)!==null&&a!==void 0?a:[]}).filter(i=>i.name.value===t.name)}function xSe(e,t){let{astNode:r,extensionASTNodes:n}=e;return(r!=null?[r,...n]:n).flatMap(i=>{var a;return(a=i.types)!==null&&a!==void 0?a:[]}).filter(i=>i.name.value===t)}function cK(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(r=>r.name.value===ESe.GraphQLDeprecatedDirective.name)}});var vd=L(pK=>{"use strict";Object.defineProperty(pK,"__esModule",{value:!0});pK.typeFromAST=uK;var lK=Sn(),DSe=vn();function uK(e,t){switch(t.kind){case lK.Kind.LIST_TYPE:{let r=uK(e,t.type);return r&&new DSe.GraphQLList(r)}case lK.Kind.NON_NULL_TYPE:{let r=uK(e,t.type);return r&&new DSe.GraphQLNonNull(r)}case lK.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var f4=L($2=>{"use strict";Object.defineProperty($2,"__esModule",{value:!0});$2.TypeInfo=void 0;$2.visitWithTypeInfo=cpt;var apt=Bl(),Si=Sn(),ASe=Gg(),vi=vn(),N1=Vl(),wSe=vd(),dK=class{constructor(t,r,n){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n??spt,r&&((0,vi.isInputType)(r)&&this._inputTypeStack.push(r),(0,vi.isCompositeType)(r)&&this._parentTypeStack.push(r),(0,vi.isOutputType)(r)&&this._typeStack.push(r))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){let r=this._schema;switch(t.kind){case Si.Kind.SELECTION_SET:{let o=(0,vi.getNamedType)(this.getType());this._parentTypeStack.push((0,vi.isCompositeType)(o)?o:void 0);break}case Si.Kind.FIELD:{let o=this.getParentType(),i,a;o&&(i=this._getFieldDef(r,o,t),i&&(a=i.type)),this._fieldDefStack.push(i),this._typeStack.push((0,vi.isOutputType)(a)?a:void 0);break}case Si.Kind.DIRECTIVE:this._directive=r.getDirective(t.name.value);break;case Si.Kind.OPERATION_DEFINITION:{let o=r.getRootType(t.operation);this._typeStack.push((0,vi.isObjectType)(o)?o:void 0);break}case Si.Kind.INLINE_FRAGMENT:case Si.Kind.FRAGMENT_DEFINITION:{let o=t.typeCondition,i=o?(0,wSe.typeFromAST)(r,o):(0,vi.getNamedType)(this.getType());this._typeStack.push((0,vi.isOutputType)(i)?i:void 0);break}case Si.Kind.VARIABLE_DEFINITION:{let o=(0,wSe.typeFromAST)(r,t.type);this._inputTypeStack.push((0,vi.isInputType)(o)?o:void 0);break}case Si.Kind.ARGUMENT:{var n;let o,i,a=(n=this.getDirective())!==null&&n!==void 0?n:this.getFieldDef();a&&(o=a.args.find(s=>s.name===t.name.value),o&&(i=o.type)),this._argument=o,this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,vi.isInputType)(i)?i:void 0);break}case Si.Kind.LIST:{let o=(0,vi.getNullableType)(this.getInputType()),i=(0,vi.isListType)(o)?o.ofType:o;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,vi.isInputType)(i)?i:void 0);break}case Si.Kind.OBJECT_FIELD:{let o=(0,vi.getNamedType)(this.getInputType()),i,a;(0,vi.isInputObjectType)(o)&&(a=o.getFields()[t.name.value],a&&(i=a.type)),this._defaultValueStack.push(a?a.defaultValue:void 0),this._inputTypeStack.push((0,vi.isInputType)(i)?i:void 0);break}case Si.Kind.ENUM:{let o=(0,vi.getNamedType)(this.getInputType()),i;(0,vi.isEnumType)(o)&&(i=o.getValue(t.value)),this._enumValue=i;break}default:}}leave(t){switch(t.kind){case Si.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case Si.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Si.Kind.DIRECTIVE:this._directive=null;break;case Si.Kind.OPERATION_DEFINITION:case Si.Kind.INLINE_FRAGMENT:case Si.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Si.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Si.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Si.Kind.LIST:case Si.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Si.Kind.ENUM:this._enumValue=null;break;default:}}};$2.TypeInfo=dK;function spt(e,t,r){let n=r.name.value;if(n===N1.SchemaMetaFieldDef.name&&e.getQueryType()===t)return N1.SchemaMetaFieldDef;if(n===N1.TypeMetaFieldDef.name&&e.getQueryType()===t)return N1.TypeMetaFieldDef;if(n===N1.TypeNameMetaFieldDef.name&&(0,vi.isCompositeType)(t))return N1.TypeNameMetaFieldDef;if((0,vi.isObjectType)(t)||(0,vi.isInterfaceType)(t))return t.getFields()[n]}function cpt(e,t){return{enter(...r){let n=r[0];e.enter(n);let o=(0,ASe.getEnterLeaveForKind)(t,n.kind).enter;if(o){let i=o.apply(t,r);return i!==void 0&&(e.leave(n),(0,apt.isNode)(i)&&e.enter(i)),i}},leave(...r){let n=r[0],o=(0,ASe.getEnterLeaveForKind)(t,n.kind).leave,i;return o&&(i=o.apply(t,r)),e.leave(n),i}}}});var tS=L(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.isConstValueNode=_K;Hc.isDefinitionNode=lpt;Hc.isExecutableDefinitionNode=ISe;Hc.isSchemaCoordinateNode=dpt;Hc.isSelectionNode=upt;Hc.isTypeDefinitionNode=PSe;Hc.isTypeExtensionNode=NSe;Hc.isTypeNode=ppt;Hc.isTypeSystemDefinitionNode=CSe;Hc.isTypeSystemExtensionNode=OSe;Hc.isValueNode=kSe;var en=Sn();function lpt(e){return ISe(e)||CSe(e)||OSe(e)}function ISe(e){return e.kind===en.Kind.OPERATION_DEFINITION||e.kind===en.Kind.FRAGMENT_DEFINITION}function upt(e){return e.kind===en.Kind.FIELD||e.kind===en.Kind.FRAGMENT_SPREAD||e.kind===en.Kind.INLINE_FRAGMENT}function kSe(e){return e.kind===en.Kind.VARIABLE||e.kind===en.Kind.INT||e.kind===en.Kind.FLOAT||e.kind===en.Kind.STRING||e.kind===en.Kind.BOOLEAN||e.kind===en.Kind.NULL||e.kind===en.Kind.ENUM||e.kind===en.Kind.LIST||e.kind===en.Kind.OBJECT}function _K(e){return kSe(e)&&(e.kind===en.Kind.LIST?e.values.some(_K):e.kind===en.Kind.OBJECT?e.fields.some(t=>_K(t.value)):e.kind!==en.Kind.VARIABLE)}function ppt(e){return e.kind===en.Kind.NAMED_TYPE||e.kind===en.Kind.LIST_TYPE||e.kind===en.Kind.NON_NULL_TYPE}function CSe(e){return e.kind===en.Kind.SCHEMA_DEFINITION||PSe(e)||e.kind===en.Kind.DIRECTIVE_DEFINITION}function PSe(e){return e.kind===en.Kind.SCALAR_TYPE_DEFINITION||e.kind===en.Kind.OBJECT_TYPE_DEFINITION||e.kind===en.Kind.INTERFACE_TYPE_DEFINITION||e.kind===en.Kind.UNION_TYPE_DEFINITION||e.kind===en.Kind.ENUM_TYPE_DEFINITION||e.kind===en.Kind.INPUT_OBJECT_TYPE_DEFINITION}function OSe(e){return e.kind===en.Kind.SCHEMA_EXTENSION||NSe(e)}function NSe(e){return e.kind===en.Kind.SCALAR_TYPE_EXTENSION||e.kind===en.Kind.OBJECT_TYPE_EXTENSION||e.kind===en.Kind.INTERFACE_TYPE_EXTENSION||e.kind===en.Kind.UNION_TYPE_EXTENSION||e.kind===en.Kind.ENUM_TYPE_EXTENSION||e.kind===en.Kind.INPUT_OBJECT_TYPE_EXTENSION}function dpt(e){return e.kind===en.Kind.TYPE_COORDINATE||e.kind===en.Kind.MEMBER_COORDINATE||e.kind===en.Kind.ARGUMENT_COORDINATE||e.kind===en.Kind.DIRECTIVE_COORDINATE||e.kind===en.Kind.DIRECTIVE_ARGUMENT_COORDINATE}});var mK=L(fK=>{"use strict";Object.defineProperty(fK,"__esModule",{value:!0});fK.ExecutableDefinitionsRule=mpt;var _pt=ar(),FSe=Sn(),fpt=tS();function mpt(e){return{Document(t){for(let r of t.definitions)if(!(0,fpt.isExecutableDefinitionNode)(r)){let n=r.kind===FSe.Kind.SCHEMA_DEFINITION||r.kind===FSe.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new _pt.GraphQLError(`The ${n} definition is not executable.`,{nodes:r}))}return!1}}}});var yK=L(hK=>{"use strict";Object.defineProperty(hK,"__esModule",{value:!0});hK.FieldsOnCorrectTypeRule=Spt;var RSe=gh(),hpt=v2(),ypt=vh(),gpt=ar(),M2=vn();function Spt(e){return{Field(t){let r=e.getParentType();if(r&&!e.getFieldDef()){let o=e.getSchema(),i=t.name.value,a=(0,RSe.didYouMean)("to use an inline fragment on",vpt(o,r,i));a===""&&(a=(0,RSe.didYouMean)(bpt(r,i))),e.reportError(new gpt.GraphQLError(`Cannot query field "${i}" on type "${r.name}".`+a,{nodes:t}))}}}}function vpt(e,t,r){if(!(0,M2.isAbstractType)(t))return[];let n=new Set,o=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[r]){n.add(a),o[a.name]=1;for(let s of a.getInterfaces()){var i;s.getFields()[r]&&(n.add(s),o[s.name]=((i=o[s.name])!==null&&i!==void 0?i:0)+1)}}return[...n].sort((a,s)=>{let c=o[s.name]-o[a.name];return c!==0?c:(0,M2.isInterfaceType)(a)&&e.isSubType(a,s)?-1:(0,M2.isInterfaceType)(s)&&e.isSubType(s,a)?1:(0,hpt.naturalCompare)(a.name,s.name)}).map(a=>a.name)}function bpt(e,t){if((0,M2.isObjectType)(e)||(0,M2.isInterfaceType)(e)){let r=Object.keys(e.getFields());return(0,ypt.suggestionList)(t,r)}return[]}});var SK=L(gK=>{"use strict";Object.defineProperty(gK,"__esModule",{value:!0});gK.FragmentsOnCompositeTypesRule=xpt;var LSe=ar(),$Se=Gc(),MSe=vn(),jSe=vd();function xpt(e){return{InlineFragment(t){let r=t.typeCondition;if(r){let n=(0,jSe.typeFromAST)(e.getSchema(),r);if(n&&!(0,MSe.isCompositeType)(n)){let o=(0,$Se.print)(r);e.reportError(new LSe.GraphQLError(`Fragment cannot condition on non composite type "${o}".`,{nodes:r}))}}},FragmentDefinition(t){let r=(0,jSe.typeFromAST)(e.getSchema(),t.typeCondition);if(r&&!(0,MSe.isCompositeType)(r)){let n=(0,$Se.print)(t.typeCondition);e.reportError(new LSe.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}});var vK=L(m4=>{"use strict";Object.defineProperty(m4,"__esModule",{value:!0});m4.KnownArgumentNamesOnDirectivesRule=zSe;m4.KnownArgumentNamesRule=Dpt;var BSe=gh(),qSe=vh(),USe=ar(),Ept=Sn(),Tpt=pc();function Dpt(e){return{...zSe(e),Argument(t){let r=e.getArgument(),n=e.getFieldDef(),o=e.getParentType();if(!r&&n&&o){let i=t.name.value,a=n.args.map(c=>c.name),s=(0,qSe.suggestionList)(i,a);e.reportError(new USe.GraphQLError(`Unknown argument "${i}" on field "${o.name}.${n.name}".`+(0,BSe.didYouMean)(s),{nodes:t}))}}}}function zSe(e){let t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Tpt.specifiedDirectives;for(let a of n)t[a.name]=a.args.map(s=>s.name);let o=e.getDocument().definitions;for(let a of o)if(a.kind===Ept.Kind.DIRECTIVE_DEFINITION){var i;let s=(i=a.arguments)!==null&&i!==void 0?i:[];t[a.name.value]=s.map(c=>c.name.value)}return{Directive(a){let s=a.name.value,c=t[s];if(a.arguments&&c)for(let p of a.arguments){let d=p.name.value;if(!c.includes(d)){let f=(0,qSe.suggestionList)(d,c);e.reportError(new USe.GraphQLError(`Unknown argument "${d}" on directive "@${s}".`+(0,BSe.didYouMean)(f),{nodes:p}))}}return!1}}}});var TK=L(EK=>{"use strict";Object.defineProperty(EK,"__esModule",{value:!0});EK.KnownDirectivesRule=Ipt;var Apt=eo(),bK=us(),VSe=ar(),xK=Bl(),na=A1(),Wo=Sn(),wpt=pc();function Ipt(e){let t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():wpt.specifiedDirectives;for(let i of n)t[i.name]=i.locations;let o=e.getDocument().definitions;for(let i of o)i.kind===Wo.Kind.DIRECTIVE_DEFINITION&&(t[i.name.value]=i.locations.map(a=>a.value));return{Directive(i,a,s,c,p){let d=i.name.value,f=t[d];if(!f){e.reportError(new VSe.GraphQLError(`Unknown directive "@${d}".`,{nodes:i}));return}let m=kpt(p);m&&!f.includes(m)&&e.reportError(new VSe.GraphQLError(`Directive "@${d}" may not be used on ${m}.`,{nodes:i}))}}}function kpt(e){let t=e[e.length-1];switch("kind"in t||(0,bK.invariant)(!1),t.kind){case Wo.Kind.OPERATION_DEFINITION:return Cpt(t.operation);case Wo.Kind.FIELD:return na.DirectiveLocation.FIELD;case Wo.Kind.FRAGMENT_SPREAD:return na.DirectiveLocation.FRAGMENT_SPREAD;case Wo.Kind.INLINE_FRAGMENT:return na.DirectiveLocation.INLINE_FRAGMENT;case Wo.Kind.FRAGMENT_DEFINITION:return na.DirectiveLocation.FRAGMENT_DEFINITION;case Wo.Kind.VARIABLE_DEFINITION:return na.DirectiveLocation.VARIABLE_DEFINITION;case Wo.Kind.SCHEMA_DEFINITION:case Wo.Kind.SCHEMA_EXTENSION:return na.DirectiveLocation.SCHEMA;case Wo.Kind.SCALAR_TYPE_DEFINITION:case Wo.Kind.SCALAR_TYPE_EXTENSION:return na.DirectiveLocation.SCALAR;case Wo.Kind.OBJECT_TYPE_DEFINITION:case Wo.Kind.OBJECT_TYPE_EXTENSION:return na.DirectiveLocation.OBJECT;case Wo.Kind.FIELD_DEFINITION:return na.DirectiveLocation.FIELD_DEFINITION;case Wo.Kind.INTERFACE_TYPE_DEFINITION:case Wo.Kind.INTERFACE_TYPE_EXTENSION:return na.DirectiveLocation.INTERFACE;case Wo.Kind.UNION_TYPE_DEFINITION:case Wo.Kind.UNION_TYPE_EXTENSION:return na.DirectiveLocation.UNION;case Wo.Kind.ENUM_TYPE_DEFINITION:case Wo.Kind.ENUM_TYPE_EXTENSION:return na.DirectiveLocation.ENUM;case Wo.Kind.ENUM_VALUE_DEFINITION:return na.DirectiveLocation.ENUM_VALUE;case Wo.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Wo.Kind.INPUT_OBJECT_TYPE_EXTENSION:return na.DirectiveLocation.INPUT_OBJECT;case Wo.Kind.INPUT_VALUE_DEFINITION:{let r=e[e.length-3];return"kind"in r||(0,bK.invariant)(!1),r.kind===Wo.Kind.INPUT_OBJECT_TYPE_DEFINITION?na.DirectiveLocation.INPUT_FIELD_DEFINITION:na.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,bK.invariant)(!1,"Unexpected kind: "+(0,Apt.inspect)(t.kind))}}function Cpt(e){switch(e){case xK.OperationTypeNode.QUERY:return na.DirectiveLocation.QUERY;case xK.OperationTypeNode.MUTATION:return na.DirectiveLocation.MUTATION;case xK.OperationTypeNode.SUBSCRIPTION:return na.DirectiveLocation.SUBSCRIPTION}}});var AK=L(DK=>{"use strict";Object.defineProperty(DK,"__esModule",{value:!0});DK.KnownFragmentNamesRule=Opt;var Ppt=ar();function Opt(e){return{FragmentSpread(t){let r=t.name.value;e.getFragment(r)||e.reportError(new Ppt.GraphQLError(`Unknown fragment "${r}".`,{nodes:t.name}))}}}});var kK=L(IK=>{"use strict";Object.defineProperty(IK,"__esModule",{value:!0});IK.KnownTypeNamesRule=Mpt;var Npt=gh(),Fpt=vh(),Rpt=ar(),wK=tS(),Lpt=Vl(),$pt=Sd();function Mpt(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);for(let i of e.getDocument().definitions)(0,wK.isTypeDefinitionNode)(i)&&(n[i.name.value]=!0);let o=[...Object.keys(r),...Object.keys(n)];return{NamedType(i,a,s,c,p){let d=i.name.value;if(!r[d]&&!n[d]){var f;let m=(f=p[2])!==null&&f!==void 0?f:s,y=m!=null&&jpt(m);if(y&&JSe.includes(d))return;let g=(0,Fpt.suggestionList)(d,y?JSe.concat(o):o);e.reportError(new Rpt.GraphQLError(`Unknown type "${d}".`+(0,Npt.didYouMean)(g),{nodes:i}))}}}}var JSe=[...$pt.specifiedScalarTypes,...Lpt.introspectionTypes].map(e=>e.name);function jpt(e){return"kind"in e&&((0,wK.isTypeSystemDefinitionNode)(e)||(0,wK.isTypeSystemExtensionNode)(e))}});var PK=L(CK=>{"use strict";Object.defineProperty(CK,"__esModule",{value:!0});CK.LoneAnonymousOperationRule=Upt;var Bpt=ar(),qpt=Sn();function Upt(e){let t=0;return{Document(r){t=r.definitions.filter(n=>n.kind===qpt.Kind.OPERATION_DEFINITION).length},OperationDefinition(r){!r.name&&t>1&&e.reportError(new Bpt.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:r}))}}}});var NK=L(OK=>{"use strict";Object.defineProperty(OK,"__esModule",{value:!0});OK.LoneSchemaDefinitionRule=zpt;var KSe=ar();function zpt(e){var t,r,n;let o=e.getSchema(),i=(t=(r=(n=o?.astNode)!==null&&n!==void 0?n:o?.getQueryType())!==null&&r!==void 0?r:o?.getMutationType())!==null&&t!==void 0?t:o?.getSubscriptionType(),a=0;return{SchemaDefinition(s){if(i){e.reportError(new KSe.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:s}));return}a>0&&e.reportError(new KSe.GraphQLError("Must provide only one schema definition.",{nodes:s})),++a}}}});var RK=L(FK=>{"use strict";Object.defineProperty(FK,"__esModule",{value:!0});FK.MaxIntrospectionDepthRule=Kpt;var Vpt=ar(),GSe=Sn(),Jpt=3;function Kpt(e){function t(r,n=Object.create(null),o=0){if(r.kind===GSe.Kind.FRAGMENT_SPREAD){let i=r.name.value;if(n[i]===!0)return!1;let a=e.getFragment(i);if(!a)return!1;try{return n[i]=!0,t(a,n,o)}finally{n[i]=void 0}}if(r.kind===GSe.Kind.FIELD&&(r.name.value==="fields"||r.name.value==="interfaces"||r.name.value==="possibleTypes"||r.name.value==="inputFields")&&(o++,o>=Jpt))return!0;if("selectionSet"in r&&r.selectionSet){for(let i of r.selectionSet.selections)if(t(i,n,o))return!0}return!1}return{Field(r){if((r.name.value==="__schema"||r.name.value==="__type")&&t(r))return e.reportError(new Vpt.GraphQLError("Maximum introspection depth exceeded",{nodes:[r]})),!1}}}});var $K=L(LK=>{"use strict";Object.defineProperty(LK,"__esModule",{value:!0});LK.NoFragmentCyclesRule=Hpt;var Gpt=ar();function Hpt(e){let t=Object.create(null),r=[],n=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(i){return o(i),!1}};function o(i){if(t[i.name.value])return;let a=i.name.value;t[a]=!0;let s=e.getFragmentSpreads(i.selectionSet);if(s.length!==0){n[a]=r.length;for(let c of s){let p=c.name.value,d=n[p];if(r.push(c),d===void 0){let f=e.getFragment(p);f&&o(f)}else{let f=r.slice(d),m=f.slice(0,-1).map(y=>'"'+y.name.value+'"').join(", ");e.reportError(new Gpt.GraphQLError(`Cannot spread fragment "${p}" within itself`+(m!==""?` via ${m}.`:"."),{nodes:f}))}r.pop()}n[a]=void 0}}}});var jK=L(MK=>{"use strict";Object.defineProperty(MK,"__esModule",{value:!0});MK.NoUndefinedVariablesRule=Wpt;var Zpt=ar();function Wpt(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){let n=e.getRecursiveVariableUsages(r);for(let{node:o}of n){let i=o.name.value;t[i]!==!0&&e.reportError(new Zpt.GraphQLError(r.name?`Variable "$${i}" is not defined by operation "${r.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[o,r]}))}}},VariableDefinition(r){t[r.variable.name.value]=!0}}}});var qK=L(BK=>{"use strict";Object.defineProperty(BK,"__esModule",{value:!0});BK.NoUnusedFragmentsRule=Xpt;var Qpt=ar();function Xpt(e){let t=[],r=[];return{OperationDefinition(n){return t.push(n),!1},FragmentDefinition(n){return r.push(n),!1},Document:{leave(){let n=Object.create(null);for(let o of t)for(let i of e.getRecursivelyReferencedFragments(o))n[i.name.value]=!0;for(let o of r){let i=o.name.value;n[i]!==!0&&e.reportError(new Qpt.GraphQLError(`Fragment "${i}" is never used.`,{nodes:o}))}}}}}});var zK=L(UK=>{"use strict";Object.defineProperty(UK,"__esModule",{value:!0});UK.NoUnusedVariablesRule=edt;var Ypt=ar();function edt(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){let n=Object.create(null),o=e.getRecursiveVariableUsages(r);for(let{node:i}of o)n[i.name.value]=!0;for(let i of t){let a=i.variable.name.value;n[a]!==!0&&e.reportError(new Ypt.GraphQLError(r.name?`Variable "$${a}" is never used in operation "${r.name.value}".`:`Variable "$${a}" is never used.`,{nodes:i}))}}},VariableDefinition(r){t.push(r)}}}});var KK=L(JK=>{"use strict";Object.defineProperty(JK,"__esModule",{value:!0});JK.sortValueNode=VK;var tdt=v2(),sf=Sn();function VK(e){switch(e.kind){case sf.Kind.OBJECT:return{...e,fields:rdt(e.fields)};case sf.Kind.LIST:return{...e,values:e.values.map(VK)};case sf.Kind.INT:case sf.Kind.FLOAT:case sf.Kind.STRING:case sf.Kind.BOOLEAN:case sf.Kind.NULL:case sf.Kind.ENUM:case sf.Kind.VARIABLE:return e}}function rdt(e){return e.map(t=>({...t,value:VK(t.value)})).sort((t,r)=>(0,tdt.naturalCompare)(t.name.value,r.name.value))}});var YK=L(XK=>{"use strict";Object.defineProperty(XK,"__esModule",{value:!0});XK.OverlappingFieldsCanBeMergedRule=adt;var HSe=eo(),ndt=ar(),GK=Sn(),odt=Gc(),dc=vn(),idt=KK(),WSe=vd();function QSe(e){return Array.isArray(e)?e.map(([t,r])=>`subfields "${t}" conflict because `+QSe(r)).join(" and "):e}function adt(e){let t=new S4,r=new WK,n=new Map;return{SelectionSet(o){let i=sdt(e,n,t,r,e.getParentType(),o);for(let[[a,s],c,p]of i){let d=QSe(s);e.reportError(new ndt.GraphQLError(`Fields "${a}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:c.concat(p)}))}}}}function sdt(e,t,r,n,o,i){let a=[],[s,c]=g4(e,t,o,i);if(ldt(e,a,t,r,n,s),c.length!==0)for(let p=0;p1)for(let c=0;c[i.value,a]));return r.every(i=>{let a=i.value,s=o.get(i.name.value);return s===void 0?!1:ZSe(a)===ZSe(s)})}function ZSe(e){return(0,odt.print)((0,idt.sortValueNode)(e))}function HK(e,t){return(0,dc.isListType)(e)?(0,dc.isListType)(t)?HK(e.ofType,t.ofType):!0:(0,dc.isListType)(t)?!0:(0,dc.isNonNullType)(e)?(0,dc.isNonNullType)(t)?HK(e.ofType,t.ofType):!0:(0,dc.isNonNullType)(t)?!0:(0,dc.isLeafType)(e)||(0,dc.isLeafType)(t)?e!==t:!1}function g4(e,t,r,n){let o=t.get(n);if(o)return o;let i=Object.create(null),a=Object.create(null);YSe(e,r,n,i,a);let s=[i,Object.keys(a)];return t.set(n,s),s}function ZK(e,t,r){let n=t.get(r.selectionSet);if(n)return n;let o=(0,WSe.typeFromAST)(e.getSchema(),r.typeCondition);return g4(e,t,o,r.selectionSet)}function YSe(e,t,r,n,o){for(let i of r.selections)switch(i.kind){case GK.Kind.FIELD:{let a=i.name.value,s;((0,dc.isObjectType)(t)||(0,dc.isInterfaceType)(t))&&(s=t.getFields()[a]);let c=i.alias?i.alias.value:a;n[c]||(n[c]=[]),n[c].push([t,i,s]);break}case GK.Kind.FRAGMENT_SPREAD:o[i.name.value]=!0;break;case GK.Kind.INLINE_FRAGMENT:{let a=i.typeCondition,s=a?(0,WSe.typeFromAST)(e.getSchema(),a):t;YSe(e,s,i.selectionSet,n,o);break}}}function pdt(e,t,r,n){if(e.length>0)return[[t,e.map(([o])=>o)],[r,...e.map(([,o])=>o).flat()],[n,...e.map(([,,o])=>o).flat()]]}var S4=class{constructor(){this._data=new Map}has(t,r,n){var o;let i=(o=this._data.get(t))===null||o===void 0?void 0:o.get(r);return i===void 0?!1:n?!0:n===i}add(t,r,n){let o=this._data.get(t);o===void 0?this._data.set(t,new Map([[r,n]])):o.set(r,n)}},WK=class{constructor(){this._orderedPairSet=new S4}has(t,r,n){return t{"use strict";Object.defineProperty(tG,"__esModule",{value:!0});tG.PossibleFragmentSpreadsRule=_dt;var v4=eo(),e0e=ar(),eG=vn(),t0e=A2(),ddt=vd();function _dt(e){return{InlineFragment(t){let r=e.getType(),n=e.getParentType();if((0,eG.isCompositeType)(r)&&(0,eG.isCompositeType)(n)&&!(0,t0e.doTypesOverlap)(e.getSchema(),r,n)){let o=(0,v4.inspect)(n),i=(0,v4.inspect)(r);e.reportError(new e0e.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${i}".`,{nodes:t}))}},FragmentSpread(t){let r=t.name.value,n=fdt(e,r),o=e.getParentType();if(n&&o&&!(0,t0e.doTypesOverlap)(e.getSchema(),n,o)){let i=(0,v4.inspect)(o),a=(0,v4.inspect)(n);e.reportError(new e0e.GraphQLError(`Fragment "${r}" cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:t}))}}}}function fdt(e,t){let r=e.getFragment(t);if(r){let n=(0,ddt.typeFromAST)(e.getSchema(),r.typeCondition);if((0,eG.isCompositeType)(n))return n}}});var oG=L(nG=>{"use strict";Object.defineProperty(nG,"__esModule",{value:!0});nG.PossibleTypeExtensionsRule=gdt;var mdt=gh(),n0e=eo(),o0e=us(),hdt=vh(),r0e=ar(),ai=Sn(),ydt=tS(),F1=vn();function gdt(e){let t=e.getSchema(),r=Object.create(null);for(let o of e.getDocument().definitions)(0,ydt.isTypeDefinitionNode)(o)&&(r[o.name.value]=o);return{ScalarTypeExtension:n,ObjectTypeExtension:n,InterfaceTypeExtension:n,UnionTypeExtension:n,EnumTypeExtension:n,InputObjectTypeExtension:n};function n(o){let i=o.name.value,a=r[i],s=t?.getType(i),c;if(a?c=Sdt[a.kind]:s&&(c=vdt(s)),c){if(c!==o.kind){let p=bdt(o.kind);e.reportError(new r0e.GraphQLError(`Cannot extend non-${p} type "${i}".`,{nodes:a?[a,o]:o}))}}else{let p=Object.keys({...r,...t?.getTypeMap()}),d=(0,hdt.suggestionList)(i,p);e.reportError(new r0e.GraphQLError(`Cannot extend type "${i}" because it is not defined.`+(0,mdt.didYouMean)(d),{nodes:o.name}))}}}var Sdt={[ai.Kind.SCALAR_TYPE_DEFINITION]:ai.Kind.SCALAR_TYPE_EXTENSION,[ai.Kind.OBJECT_TYPE_DEFINITION]:ai.Kind.OBJECT_TYPE_EXTENSION,[ai.Kind.INTERFACE_TYPE_DEFINITION]:ai.Kind.INTERFACE_TYPE_EXTENSION,[ai.Kind.UNION_TYPE_DEFINITION]:ai.Kind.UNION_TYPE_EXTENSION,[ai.Kind.ENUM_TYPE_DEFINITION]:ai.Kind.ENUM_TYPE_EXTENSION,[ai.Kind.INPUT_OBJECT_TYPE_DEFINITION]:ai.Kind.INPUT_OBJECT_TYPE_EXTENSION};function vdt(e){if((0,F1.isScalarType)(e))return ai.Kind.SCALAR_TYPE_EXTENSION;if((0,F1.isObjectType)(e))return ai.Kind.OBJECT_TYPE_EXTENSION;if((0,F1.isInterfaceType)(e))return ai.Kind.INTERFACE_TYPE_EXTENSION;if((0,F1.isUnionType)(e))return ai.Kind.UNION_TYPE_EXTENSION;if((0,F1.isEnumType)(e))return ai.Kind.ENUM_TYPE_EXTENSION;if((0,F1.isInputObjectType)(e))return ai.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,o0e.invariant)(!1,"Unexpected type: "+(0,n0e.inspect)(e))}function bdt(e){switch(e){case ai.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case ai.Kind.OBJECT_TYPE_EXTENSION:return"object";case ai.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case ai.Kind.UNION_TYPE_EXTENSION:return"union";case ai.Kind.ENUM_TYPE_EXTENSION:return"enum";case ai.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,o0e.invariant)(!1,"Unexpected kind: "+(0,n0e.inspect)(e))}}});var aG=L(b4=>{"use strict";Object.defineProperty(b4,"__esModule",{value:!0});b4.ProvidedRequiredArgumentsOnDirectivesRule=l0e;b4.ProvidedRequiredArgumentsRule=Tdt;var a0e=eo(),i0e=Sh(),s0e=ar(),c0e=Sn(),xdt=Gc(),iG=vn(),Edt=pc();function Tdt(e){return{...l0e(e),Field:{leave(t){var r;let n=e.getFieldDef();if(!n)return!1;let o=new Set((r=t.arguments)===null||r===void 0?void 0:r.map(i=>i.name.value));for(let i of n.args)if(!o.has(i.name)&&(0,iG.isRequiredArgument)(i)){let a=(0,a0e.inspect)(i.type);e.reportError(new s0e.GraphQLError(`Field "${n.name}" argument "${i.name}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}}function l0e(e){var t;let r=Object.create(null),n=e.getSchema(),o=(t=n?.getDirectives())!==null&&t!==void 0?t:Edt.specifiedDirectives;for(let s of o)r[s.name]=(0,i0e.keyMap)(s.args.filter(iG.isRequiredArgument),c=>c.name);let i=e.getDocument().definitions;for(let s of i)if(s.kind===c0e.Kind.DIRECTIVE_DEFINITION){var a;let c=(a=s.arguments)!==null&&a!==void 0?a:[];r[s.name.value]=(0,i0e.keyMap)(c.filter(Ddt),p=>p.name.value)}return{Directive:{leave(s){let c=s.name.value,p=r[c];if(p){var d;let f=(d=s.arguments)!==null&&d!==void 0?d:[],m=new Set(f.map(y=>y.name.value));for(let[y,g]of Object.entries(p))if(!m.has(y)){let S=(0,iG.isType)(g.type)?(0,a0e.inspect)(g.type):(0,xdt.print)(g.type);e.reportError(new s0e.GraphQLError(`Directive "@${c}" argument "${y}" of type "${S}" is required, but it was not provided.`,{nodes:s}))}}}}}}function Ddt(e){return e.type.kind===c0e.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var uG=L(lG=>{"use strict";Object.defineProperty(lG,"__esModule",{value:!0});lG.ScalarLeafsRule=Adt;var sG=eo(),cG=ar(),u0e=vn();function Adt(e){return{Field(t){let r=e.getType(),n=t.selectionSet;if(r)if((0,u0e.isLeafType)((0,u0e.getNamedType)(r))){if(n){let o=t.name.value,i=(0,sG.inspect)(r);e.reportError(new cG.GraphQLError(`Field "${o}" must not have a selection since type "${i}" has no subfields.`,{nodes:n}))}}else if(n){if(n.selections.length===0){let o=t.name.value,i=(0,sG.inspect)(r);e.reportError(new cG.GraphQLError(`Field "${o}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}else{let o=t.name.value,i=(0,sG.inspect)(r);e.reportError(new cG.GraphQLError(`Field "${o}" of type "${i}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}}});var dG=L(pG=>{"use strict";Object.defineProperty(pG,"__esModule",{value:!0});pG.printPathArray=wdt;function wdt(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var j2=L(x4=>{"use strict";Object.defineProperty(x4,"__esModule",{value:!0});x4.addPath=Idt;x4.pathToArray=kdt;function Idt(e,t,r){return{prev:e,key:t,typename:r}}function kdt(e){let t=[],r=e;for(;r;)t.push(r.key),r=r.prev;return t.reverse()}});var fG=L(_G=>{"use strict";Object.defineProperty(_G,"__esModule",{value:!0});_G.coerceInputValue=Ldt;var Cdt=gh(),E4=eo(),Pdt=us(),Odt=u4(),Ndt=hd(),Gu=j2(),Fdt=dG(),Rdt=vh(),cf=ar(),B2=vn();function Ldt(e,t,r=$dt){return q2(e,t,r,void 0)}function $dt(e,t,r){let n="Invalid value "+(0,E4.inspect)(t);throw e.length>0&&(n+=` at "value${(0,Fdt.printPathArray)(e)}"`),r.message=n+": "+r.message,r}function q2(e,t,r,n){if((0,B2.isNonNullType)(t)){if(e!=null)return q2(e,t.ofType,r,n);r((0,Gu.pathToArray)(n),e,new cf.GraphQLError(`Expected non-nullable type "${(0,E4.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,B2.isListType)(t)){let o=t.ofType;return(0,Odt.isIterableObject)(e)?Array.from(e,(i,a)=>{let s=(0,Gu.addPath)(n,a,void 0);return q2(i,o,r,s)}):[q2(e,o,r,n)]}if((0,B2.isInputObjectType)(t)){if(!(0,Ndt.isObjectLike)(e)||Array.isArray(e)){r((0,Gu.pathToArray)(n),e,new cf.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let o={},i=t.getFields();for(let a of Object.values(i)){let s=e[a.name];if(s===void 0){if(a.defaultValue!==void 0)o[a.name]=a.defaultValue;else if((0,B2.isNonNullType)(a.type)){let c=(0,E4.inspect)(a.type);r((0,Gu.pathToArray)(n),e,new cf.GraphQLError(`Field "${a.name}" of required type "${c}" was not provided.`))}continue}o[a.name]=q2(s,a.type,r,(0,Gu.addPath)(n,a.name,t.name))}for(let a of Object.keys(e))if(!i[a]){let s=(0,Rdt.suggestionList)(a,Object.keys(t.getFields()));r((0,Gu.pathToArray)(n),e,new cf.GraphQLError(`Field "${a}" is not defined by type "${t.name}".`+(0,Cdt.didYouMean)(s)))}if(t.isOneOf){let a=Object.keys(o);a.length!==1&&r((0,Gu.pathToArray)(n),e,new cf.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let s=a[0],c=o[s];c===null&&r((0,Gu.pathToArray)(n).concat(s),c,new cf.GraphQLError(`Field "${s}" must be non-null.`))}return o}if((0,B2.isLeafType)(t)){let o;try{o=t.parseValue(e)}catch(i){i instanceof cf.GraphQLError?r((0,Gu.pathToArray)(n),e,i):r((0,Gu.pathToArray)(n),e,new cf.GraphQLError(`Expected type "${t.name}". `+i.message,{originalError:i}));return}return o===void 0&&r((0,Gu.pathToArray)(n),e,new cf.GraphQLError(`Expected type "${t.name}".`)),o}(0,Pdt.invariant)(!1,"Unexpected input type: "+(0,E4.inspect)(t))}});var z2=L(mG=>{"use strict";Object.defineProperty(mG,"__esModule",{value:!0});mG.valueFromAST=U2;var Mdt=eo(),jdt=us(),Bdt=Sh(),R1=Sn(),rS=vn();function U2(e,t,r){if(e){if(e.kind===R1.Kind.VARIABLE){let n=e.name.value;if(r==null||r[n]===void 0)return;let o=r[n];return o===null&&(0,rS.isNonNullType)(t)?void 0:o}if((0,rS.isNonNullType)(t))return e.kind===R1.Kind.NULL?void 0:U2(e,t.ofType,r);if(e.kind===R1.Kind.NULL)return null;if((0,rS.isListType)(t)){let n=t.ofType;if(e.kind===R1.Kind.LIST){let i=[];for(let a of e.values)if(p0e(a,r)){if((0,rS.isNonNullType)(n))return;i.push(null)}else{let s=U2(a,n,r);if(s===void 0)return;i.push(s)}return i}let o=U2(e,n,r);return o===void 0?void 0:[o]}if((0,rS.isInputObjectType)(t)){if(e.kind!==R1.Kind.OBJECT)return;let n=Object.create(null),o=(0,Bdt.keyMap)(e.fields,i=>i.name.value);for(let i of Object.values(t.getFields())){let a=o[i.name];if(!a||p0e(a.value,r)){if(i.defaultValue!==void 0)n[i.name]=i.defaultValue;else if((0,rS.isNonNullType)(i.type))return;continue}let s=U2(a.value,i.type,r);if(s===void 0)return;n[i.name]=s}if(t.isOneOf){let i=Object.keys(n);if(i.length!==1||n[i[0]]===null)return}return n}if((0,rS.isLeafType)(t)){let n;try{n=t.parseLiteral(e,r)}catch{return}return n===void 0?void 0:n}(0,jdt.invariant)(!1,"Unexpected input type: "+(0,Mdt.inspect)(t))}}function p0e(e,t){return e.kind===R1.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var M1=L(V2=>{"use strict";Object.defineProperty(V2,"__esModule",{value:!0});V2.getArgumentValues=m0e;V2.getDirectiveValues=Gdt;V2.getVariableValues=Jdt;var L1=eo(),qdt=Sh(),Udt=dG(),lf=ar(),d0e=Sn(),_0e=Gc(),$1=vn(),zdt=fG(),Vdt=vd(),f0e=z2();function Jdt(e,t,r,n){let o=[],i=n?.maxErrors;try{let a=Kdt(e,t,r,s=>{if(i!=null&&o.length>=i)throw new lf.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");o.push(s)});if(o.length===0)return{coerced:a}}catch(a){o.push(a)}return{errors:o}}function Kdt(e,t,r,n){let o={};for(let i of t){let a=i.variable.name.value,s=(0,Vdt.typeFromAST)(e,i.type);if(!(0,$1.isInputType)(s)){let p=(0,_0e.print)(i.type);n(new lf.GraphQLError(`Variable "$${a}" expected value of type "${p}" which cannot be used as an input type.`,{nodes:i.type}));continue}if(!h0e(r,a)){if(i.defaultValue)o[a]=(0,f0e.valueFromAST)(i.defaultValue,s);else if((0,$1.isNonNullType)(s)){let p=(0,L1.inspect)(s);n(new lf.GraphQLError(`Variable "$${a}" of required type "${p}" was not provided.`,{nodes:i}))}continue}let c=r[a];if(c===null&&(0,$1.isNonNullType)(s)){let p=(0,L1.inspect)(s);n(new lf.GraphQLError(`Variable "$${a}" of non-null type "${p}" must not be null.`,{nodes:i}));continue}o[a]=(0,zdt.coerceInputValue)(c,s,(p,d,f)=>{let m=`Variable "$${a}" got invalid value `+(0,L1.inspect)(d);p.length>0&&(m+=` at "${a}${(0,Udt.printPathArray)(p)}"`),n(new lf.GraphQLError(m+"; "+f.message,{nodes:i,originalError:f}))})}return o}function m0e(e,t,r){var n;let o={},i=(n=t.arguments)!==null&&n!==void 0?n:[],a=(0,qdt.keyMap)(i,s=>s.name.value);for(let s of e.args){let c=s.name,p=s.type,d=a[c];if(!d){if(s.defaultValue!==void 0)o[c]=s.defaultValue;else if((0,$1.isNonNullType)(p))throw new lf.GraphQLError(`Argument "${c}" of required type "${(0,L1.inspect)(p)}" was not provided.`,{nodes:t});continue}let f=d.value,m=f.kind===d0e.Kind.NULL;if(f.kind===d0e.Kind.VARIABLE){let g=f.name.value;if(r==null||!h0e(r,g)){if(s.defaultValue!==void 0)o[c]=s.defaultValue;else if((0,$1.isNonNullType)(p))throw new lf.GraphQLError(`Argument "${c}" of required type "${(0,L1.inspect)(p)}" was provided the variable "$${g}" which was not provided a runtime value.`,{nodes:f});continue}m=r[g]==null}if(m&&(0,$1.isNonNullType)(p))throw new lf.GraphQLError(`Argument "${c}" of non-null type "${(0,L1.inspect)(p)}" must not be null.`,{nodes:f});let y=(0,f0e.valueFromAST)(f,p,r);if(y===void 0)throw new lf.GraphQLError(`Argument "${c}" has invalid value ${(0,_0e.print)(f)}.`,{nodes:f});o[c]=y}return o}function Gdt(e,t,r){var n;let o=(n=t.directives)===null||n===void 0?void 0:n.find(i=>i.name.value===e.name);if(o)return m0e(e,o,r)}function h0e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var A4=L(D4=>{"use strict";Object.defineProperty(D4,"__esModule",{value:!0});D4.collectFields=Wdt;D4.collectSubfields=Qdt;var hG=Sn(),Hdt=vn(),y0e=pc(),Zdt=vd(),g0e=M1();function Wdt(e,t,r,n,o){let i=new Map;return T4(e,t,r,n,o,i,new Set),i}function Qdt(e,t,r,n,o){let i=new Map,a=new Set;for(let s of o)s.selectionSet&&T4(e,t,r,n,s.selectionSet,i,a);return i}function T4(e,t,r,n,o,i,a){for(let s of o.selections)switch(s.kind){case hG.Kind.FIELD:{if(!yG(r,s))continue;let c=Xdt(s),p=i.get(c);p!==void 0?p.push(s):i.set(c,[s]);break}case hG.Kind.INLINE_FRAGMENT:{if(!yG(r,s)||!S0e(e,s,n))continue;T4(e,t,r,n,s.selectionSet,i,a);break}case hG.Kind.FRAGMENT_SPREAD:{let c=s.name.value;if(a.has(c)||!yG(r,s))continue;a.add(c);let p=t[c];if(!p||!S0e(e,p,n))continue;T4(e,t,r,n,p.selectionSet,i,a);break}}}function yG(e,t){let r=(0,g0e.getDirectiveValues)(y0e.GraphQLSkipDirective,t,e);if(r?.if===!0)return!1;let n=(0,g0e.getDirectiveValues)(y0e.GraphQLIncludeDirective,t,e);return n?.if!==!1}function S0e(e,t,r){let n=t.typeCondition;if(!n)return!0;let o=(0,Zdt.typeFromAST)(e,n);return o===r?!0:(0,Hdt.isAbstractType)(o)?e.isSubType(o,r):!1}function Xdt(e){return e.alias?e.alias.value:e.name.value}});var SG=L(gG=>{"use strict";Object.defineProperty(gG,"__esModule",{value:!0});gG.SingleFieldSubscriptionsRule=t_t;var v0e=ar(),Ydt=Sn(),e_t=A4();function t_t(e){return{OperationDefinition(t){if(t.operation==="subscription"){let r=e.getSchema(),n=r.getSubscriptionType();if(n){let o=t.name?t.name.value:null,i=Object.create(null),a=e.getDocument(),s=Object.create(null);for(let p of a.definitions)p.kind===Ydt.Kind.FRAGMENT_DEFINITION&&(s[p.name.value]=p);let c=(0,e_t.collectFields)(r,s,i,n,t.selectionSet);if(c.size>1){let f=[...c.values()].slice(1).flat();e.reportError(new v0e.GraphQLError(o!=null?`Subscription "${o}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:f}))}for(let p of c.values())p[0].name.value.startsWith("__")&&e.reportError(new v0e.GraphQLError(o!=null?`Subscription "${o}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:p}))}}}}}});var w4=L(vG=>{"use strict";Object.defineProperty(vG,"__esModule",{value:!0});vG.groupBy=r_t;function r_t(e,t){let r=new Map;for(let n of e){let o=t(n),i=r.get(o);i===void 0?r.set(o,[n]):i.push(n)}return r}});var xG=L(bG=>{"use strict";Object.defineProperty(bG,"__esModule",{value:!0});bG.UniqueArgumentDefinitionNamesRule=i_t;var n_t=w4(),o_t=ar();function i_t(e){return{DirectiveDefinition(n){var o;let i=(o=n.arguments)!==null&&o!==void 0?o:[];return r(`@${n.name.value}`,i)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(n){var o;let i=n.name.value,a=(o=n.fields)!==null&&o!==void 0?o:[];for(let c of a){var s;let p=c.name.value,d=(s=c.arguments)!==null&&s!==void 0?s:[];r(`${i}.${p}`,d)}return!1}function r(n,o){let i=(0,n_t.groupBy)(o,a=>a.name.value);for(let[a,s]of i)s.length>1&&e.reportError(new o_t.GraphQLError(`Argument "${n}(${a}:)" can only be defined once.`,{nodes:s.map(c=>c.name)}));return!1}}});var TG=L(EG=>{"use strict";Object.defineProperty(EG,"__esModule",{value:!0});EG.UniqueArgumentNamesRule=c_t;var a_t=w4(),s_t=ar();function c_t(e){return{Field:t,Directive:t};function t(r){var n;let o=(n=r.arguments)!==null&&n!==void 0?n:[],i=(0,a_t.groupBy)(o,a=>a.name.value);for(let[a,s]of i)s.length>1&&e.reportError(new s_t.GraphQLError(`There can be only one argument named "${a}".`,{nodes:s.map(c=>c.name)}))}}});var AG=L(DG=>{"use strict";Object.defineProperty(DG,"__esModule",{value:!0});DG.UniqueDirectiveNamesRule=l_t;var b0e=ar();function l_t(e){let t=Object.create(null),r=e.getSchema();return{DirectiveDefinition(n){let o=n.name.value;if(r!=null&&r.getDirective(o)){e.reportError(new b0e.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:n.name}));return}return t[o]?e.reportError(new b0e.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],n.name]})):t[o]=n.name,!1}}}});var kG=L(IG=>{"use strict";Object.defineProperty(IG,"__esModule",{value:!0});IG.UniqueDirectivesPerLocationRule=d_t;var u_t=ar(),wG=Sn(),x0e=tS(),p_t=pc();function d_t(e){let t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():p_t.specifiedDirectives;for(let s of n)t[s.name]=!s.isRepeatable;let o=e.getDocument().definitions;for(let s of o)s.kind===wG.Kind.DIRECTIVE_DEFINITION&&(t[s.name.value]=!s.repeatable);let i=Object.create(null),a=Object.create(null);return{enter(s){if(!("directives"in s)||!s.directives)return;let c;if(s.kind===wG.Kind.SCHEMA_DEFINITION||s.kind===wG.Kind.SCHEMA_EXTENSION)c=i;else if((0,x0e.isTypeDefinitionNode)(s)||(0,x0e.isTypeExtensionNode)(s)){let p=s.name.value;c=a[p],c===void 0&&(a[p]=c=Object.create(null))}else c=Object.create(null);for(let p of s.directives){let d=p.name.value;t[d]&&(c[d]?e.reportError(new u_t.GraphQLError(`The directive "@${d}" can only be used once at this location.`,{nodes:[c[d],p]})):c[d]=p)}}}}});var PG=L(CG=>{"use strict";Object.defineProperty(CG,"__esModule",{value:!0});CG.UniqueEnumValueNamesRule=f_t;var E0e=ar(),__t=vn();function f_t(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:o,EnumTypeExtension:o};function o(i){var a;let s=i.name.value;n[s]||(n[s]=Object.create(null));let c=(a=i.values)!==null&&a!==void 0?a:[],p=n[s];for(let d of c){let f=d.name.value,m=r[s];(0,__t.isEnumType)(m)&&m.getValue(f)?e.reportError(new E0e.GraphQLError(`Enum value "${s}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:d.name})):p[f]?e.reportError(new E0e.GraphQLError(`Enum value "${s}.${f}" can only be defined once.`,{nodes:[p[f],d.name]})):p[f]=d.name}return!1}}});var FG=L(NG=>{"use strict";Object.defineProperty(NG,"__esModule",{value:!0});NG.UniqueFieldDefinitionNamesRule=m_t;var T0e=ar(),OG=vn();function m_t(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:o,InputObjectTypeExtension:o,InterfaceTypeDefinition:o,InterfaceTypeExtension:o,ObjectTypeDefinition:o,ObjectTypeExtension:o};function o(i){var a;let s=i.name.value;n[s]||(n[s]=Object.create(null));let c=(a=i.fields)!==null&&a!==void 0?a:[],p=n[s];for(let d of c){let f=d.name.value;h_t(r[s],f)?e.reportError(new T0e.GraphQLError(`Field "${s}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:d.name})):p[f]?e.reportError(new T0e.GraphQLError(`Field "${s}.${f}" can only be defined once.`,{nodes:[p[f],d.name]})):p[f]=d.name}return!1}}function h_t(e,t){return(0,OG.isObjectType)(e)||(0,OG.isInterfaceType)(e)||(0,OG.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var LG=L(RG=>{"use strict";Object.defineProperty(RG,"__esModule",{value:!0});RG.UniqueFragmentNamesRule=g_t;var y_t=ar();function g_t(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(r){let n=r.name.value;return t[n]?e.reportError(new y_t.GraphQLError(`There can be only one fragment named "${n}".`,{nodes:[t[n],r.name]})):t[n]=r.name,!1}}}});var MG=L($G=>{"use strict";Object.defineProperty($G,"__esModule",{value:!0});$G.UniqueInputFieldNamesRule=b_t;var S_t=us(),v_t=ar();function b_t(e){let t=[],r=Object.create(null);return{ObjectValue:{enter(){t.push(r),r=Object.create(null)},leave(){let n=t.pop();n||(0,S_t.invariant)(!1),r=n}},ObjectField(n){let o=n.name.value;r[o]?e.reportError(new v_t.GraphQLError(`There can be only one input field named "${o}".`,{nodes:[r[o],n.name]})):r[o]=n.name}}}});var BG=L(jG=>{"use strict";Object.defineProperty(jG,"__esModule",{value:!0});jG.UniqueOperationNamesRule=E_t;var x_t=ar();function E_t(e){let t=Object.create(null);return{OperationDefinition(r){let n=r.name;return n&&(t[n.value]?e.reportError(new x_t.GraphQLError(`There can be only one operation named "${n.value}".`,{nodes:[t[n.value],n]})):t[n.value]=n),!1},FragmentDefinition:()=>!1}}});var UG=L(qG=>{"use strict";Object.defineProperty(qG,"__esModule",{value:!0});qG.UniqueOperationTypesRule=T_t;var D0e=ar();function T_t(e){let t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(i){var a;let s=(a=i.operationTypes)!==null&&a!==void 0?a:[];for(let c of s){let p=c.operation,d=r[p];n[p]?e.reportError(new D0e.GraphQLError(`Type for ${p} already defined in the schema. It cannot be redefined.`,{nodes:c})):d?e.reportError(new D0e.GraphQLError(`There can be only one ${p} type in schema.`,{nodes:[d,c]})):r[p]=c}return!1}}});var VG=L(zG=>{"use strict";Object.defineProperty(zG,"__esModule",{value:!0});zG.UniqueTypeNamesRule=D_t;var A0e=ar();function D_t(e){let t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(o){let i=o.name.value;if(r!=null&&r.getType(i)){e.reportError(new A0e.GraphQLError(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:o.name}));return}return t[i]?e.reportError(new A0e.GraphQLError(`There can be only one type named "${i}".`,{nodes:[t[i],o.name]})):t[i]=o.name,!1}}});var KG=L(JG=>{"use strict";Object.defineProperty(JG,"__esModule",{value:!0});JG.UniqueVariableNamesRule=I_t;var A_t=w4(),w_t=ar();function I_t(e){return{OperationDefinition(t){var r;let n=(r=t.variableDefinitions)!==null&&r!==void 0?r:[],o=(0,A_t.groupBy)(n,i=>i.variable.name.value);for(let[i,a]of o)a.length>1&&e.reportError(new w_t.GraphQLError(`There can be only one variable named "$${i}".`,{nodes:a.map(s=>s.variable.name)}))}}}});var HG=L(GG=>{"use strict";Object.defineProperty(GG,"__esModule",{value:!0});GG.ValuesOfCorrectTypeRule=N_t;var k_t=gh(),J2=eo(),C_t=Sh(),P_t=vh(),uf=ar(),O_t=Sn(),I4=Gc(),bd=vn();function N_t(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(r){t[r.variable.name.value]=r},ListValue(r){let n=(0,bd.getNullableType)(e.getParentInputType());if(!(0,bd.isListType)(n))return nS(e,r),!1},ObjectValue(r){let n=(0,bd.getNamedType)(e.getInputType());if(!(0,bd.isInputObjectType)(n))return nS(e,r),!1;let o=(0,C_t.keyMap)(r.fields,i=>i.name.value);for(let i of Object.values(n.getFields()))if(!o[i.name]&&(0,bd.isRequiredInputField)(i)){let s=(0,J2.inspect)(i.type);e.reportError(new uf.GraphQLError(`Field "${n.name}.${i.name}" of required type "${s}" was not provided.`,{nodes:r}))}n.isOneOf&&F_t(e,r,n,o)},ObjectField(r){let n=(0,bd.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,bd.isInputObjectType)(n)){let i=(0,P_t.suggestionList)(r.name.value,Object.keys(n.getFields()));e.reportError(new uf.GraphQLError(`Field "${r.name.value}" is not defined by type "${n.name}".`+(0,k_t.didYouMean)(i),{nodes:r}))}},NullValue(r){let n=e.getInputType();(0,bd.isNonNullType)(n)&&e.reportError(new uf.GraphQLError(`Expected value of type "${(0,J2.inspect)(n)}", found ${(0,I4.print)(r)}.`,{nodes:r}))},EnumValue:r=>nS(e,r),IntValue:r=>nS(e,r),FloatValue:r=>nS(e,r),StringValue:r=>nS(e,r),BooleanValue:r=>nS(e,r)}}function nS(e,t){let r=e.getInputType();if(!r)return;let n=(0,bd.getNamedType)(r);if(!(0,bd.isLeafType)(n)){let o=(0,J2.inspect)(r);e.reportError(new uf.GraphQLError(`Expected value of type "${o}", found ${(0,I4.print)(t)}.`,{nodes:t}));return}try{if(n.parseLiteral(t,void 0)===void 0){let i=(0,J2.inspect)(r);e.reportError(new uf.GraphQLError(`Expected value of type "${i}", found ${(0,I4.print)(t)}.`,{nodes:t}))}}catch(o){let i=(0,J2.inspect)(r);o instanceof uf.GraphQLError?e.reportError(o):e.reportError(new uf.GraphQLError(`Expected value of type "${i}", found ${(0,I4.print)(t)}; `+o.message,{nodes:t,originalError:o}))}}function F_t(e,t,r,n){var o;let i=Object.keys(n);if(i.length!==1){e.reportError(new uf.GraphQLError(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));return}let s=(o=n[i[0]])===null||o===void 0?void 0:o.value;(!s||s.kind===O_t.Kind.NULL)&&e.reportError(new uf.GraphQLError(`Field "${r.name}.${i[0]}" must be non-null.`,{nodes:[t]}))}});var WG=L(ZG=>{"use strict";Object.defineProperty(ZG,"__esModule",{value:!0});ZG.VariablesAreInputTypesRule=j_t;var R_t=ar(),L_t=Gc(),$_t=vn(),M_t=vd();function j_t(e){return{VariableDefinition(t){let r=(0,M_t.typeFromAST)(e.getSchema(),t.type);if(r!==void 0&&!(0,$_t.isInputType)(r)){let n=t.variable.name.value,o=(0,L_t.print)(t.type);e.reportError(new R_t.GraphQLError(`Variable "$${n}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}}});var XG=L(QG=>{"use strict";Object.defineProperty(QG,"__esModule",{value:!0});QG.VariablesInAllowedPositionRule=U_t;var w0e=eo(),I0e=ar(),B_t=Sn(),k4=vn(),k0e=A2(),q_t=vd();function U_t(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){let n=e.getRecursiveVariableUsages(r);for(let{node:o,type:i,defaultValue:a,parentType:s}of n){let c=o.name.value,p=t[c];if(p&&i){let d=e.getSchema(),f=(0,q_t.typeFromAST)(d,p.type);if(f&&!z_t(d,f,p.defaultValue,i,a)){let m=(0,w0e.inspect)(f),y=(0,w0e.inspect)(i);e.reportError(new I0e.GraphQLError(`Variable "$${c}" of type "${m}" used in position expecting type "${y}".`,{nodes:[p,o]}))}(0,k4.isInputObjectType)(s)&&s.isOneOf&&(0,k4.isNullableType)(f)&&e.reportError(new I0e.GraphQLError(`Variable "$${c}" is of type "${f}" but must be non-nullable to be used for OneOf Input Object "${s}".`,{nodes:[p,o]}))}}}},VariableDefinition(r){t[r.variable.name.value]=r}}}function z_t(e,t,r,n,o){if((0,k4.isNonNullType)(n)&&!(0,k4.isNonNullType)(t)){if(!(r!=null&&r.kind!==B_t.Kind.NULL)&&!(o!==void 0))return!1;let s=n.ofType;return(0,k0e.isTypeSubTypeOf)(e,t,s)}return(0,k0e.isTypeSubTypeOf)(e,t,n)}});var YG=L(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});Th.specifiedSDLRules=Th.specifiedRules=Th.recommendedRules=void 0;var V_t=mK(),J_t=yK(),K_t=SK(),C0e=vK(),P0e=TK(),G_t=AK(),O0e=kK(),H_t=PK(),Z_t=NK(),W_t=RK(),Q_t=$K(),X_t=jK(),Y_t=qK(),eft=zK(),tft=YK(),rft=rG(),nft=oG(),N0e=aG(),oft=uG(),ift=SG(),aft=xG(),F0e=TG(),sft=AG(),R0e=kG(),cft=PG(),lft=FG(),uft=LG(),L0e=MG(),pft=BG(),dft=UG(),_ft=VG(),fft=KG(),mft=HG(),hft=WG(),yft=XG(),$0e=Object.freeze([W_t.MaxIntrospectionDepthRule]);Th.recommendedRules=$0e;var gft=Object.freeze([V_t.ExecutableDefinitionsRule,pft.UniqueOperationNamesRule,H_t.LoneAnonymousOperationRule,ift.SingleFieldSubscriptionsRule,O0e.KnownTypeNamesRule,K_t.FragmentsOnCompositeTypesRule,hft.VariablesAreInputTypesRule,oft.ScalarLeafsRule,J_t.FieldsOnCorrectTypeRule,uft.UniqueFragmentNamesRule,G_t.KnownFragmentNamesRule,Y_t.NoUnusedFragmentsRule,rft.PossibleFragmentSpreadsRule,Q_t.NoFragmentCyclesRule,fft.UniqueVariableNamesRule,X_t.NoUndefinedVariablesRule,eft.NoUnusedVariablesRule,P0e.KnownDirectivesRule,R0e.UniqueDirectivesPerLocationRule,C0e.KnownArgumentNamesRule,F0e.UniqueArgumentNamesRule,mft.ValuesOfCorrectTypeRule,N0e.ProvidedRequiredArgumentsRule,yft.VariablesInAllowedPositionRule,tft.OverlappingFieldsCanBeMergedRule,L0e.UniqueInputFieldNamesRule,...$0e]);Th.specifiedRules=gft;var Sft=Object.freeze([Z_t.LoneSchemaDefinitionRule,dft.UniqueOperationTypesRule,_ft.UniqueTypeNamesRule,cft.UniqueEnumValueNamesRule,lft.UniqueFieldDefinitionNamesRule,aft.UniqueArgumentDefinitionNamesRule,sft.UniqueDirectiveNamesRule,O0e.KnownTypeNamesRule,P0e.KnownDirectivesRule,R0e.UniqueDirectivesPerLocationRule,nft.PossibleTypeExtensionsRule,C0e.KnownArgumentNamesOnDirectivesRule,F0e.UniqueArgumentNamesRule,L0e.UniqueInputFieldNamesRule,N0e.ProvidedRequiredArgumentsOnDirectivesRule]);Th.specifiedSDLRules=Sft});var rH=L(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});Dh.ValidationContext=Dh.SDLValidationContext=Dh.ASTValidationContext=void 0;var M0e=Sn(),vft=Gg(),j0e=f4(),K2=class{constructor(t,r){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let r;if(this._fragments)r=this._fragments;else{r=Object.create(null);for(let n of this.getDocument().definitions)n.kind===M0e.Kind.FRAGMENT_DEFINITION&&(r[n.name.value]=n);this._fragments=r}return r[t]}getFragmentSpreads(t){let r=this._fragmentSpreads.get(t);if(!r){r=[];let n=[t],o;for(;o=n.pop();)for(let i of o.selections)i.kind===M0e.Kind.FRAGMENT_SPREAD?r.push(i):i.selectionSet&&n.push(i.selectionSet);this._fragmentSpreads.set(t,r)}return r}getRecursivelyReferencedFragments(t){let r=this._recursivelyReferencedFragments.get(t);if(!r){r=[];let n=Object.create(null),o=[t.selectionSet],i;for(;i=o.pop();)for(let a of this.getFragmentSpreads(i)){let s=a.name.value;if(n[s]!==!0){n[s]=!0;let c=this.getFragment(s);c&&(r.push(c),o.push(c.selectionSet))}}this._recursivelyReferencedFragments.set(t,r)}return r}};Dh.ASTValidationContext=K2;var eH=class extends K2{constructor(t,r,n){super(t,n),this._schema=r}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};Dh.SDLValidationContext=eH;var tH=class extends K2{constructor(t,r,n,o){super(r,o),this._schema=t,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let r=this._variableUsages.get(t);if(!r){let n=[],o=new j0e.TypeInfo(this._schema);(0,vft.visit)(t,(0,j0e.visitWithTypeInfo)(o,{VariableDefinition:()=>!1,Variable(i){n.push({node:i,type:o.getInputType(),defaultValue:o.getDefaultValue(),parentType:o.getParentInputType()})}})),r=n,this._variableUsages.set(t,r)}return r}getRecursiveVariableUsages(t){let r=this._recursiveVariableUsages.get(t);if(!r){r=this.getVariableUsages(t);for(let n of this.getRecursivelyReferencedFragments(t))r=r.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(t,r)}return r}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};Dh.ValidationContext=tH});var G2=L(j1=>{"use strict";Object.defineProperty(j1,"__esModule",{value:!0});j1.assertValidSDL=Ift;j1.assertValidSDLExtension=kft;j1.validate=wft;j1.validateSDL=nH;var bft=Ls(),xft=qO(),Eft=ar(),Tft=Bl(),C4=Gg(),Dft=L2(),B0e=f4(),q0e=YG(),U0e=rH(),Aft=(0,xft.mapValue)(Tft.QueryDocumentKeys,e=>e.filter(t=>t!=="description"));function wft(e,t,r=q0e.specifiedRules,n,o=new B0e.TypeInfo(e)){var i;let a=(i=n?.maxErrors)!==null&&i!==void 0?i:100;t||(0,bft.devAssert)(!1,"Must provide document."),(0,Dft.assertValidSchema)(e);let s=Object.freeze({}),c=[],p=new U0e.ValidationContext(e,t,o,f=>{if(c.length>=a)throw c.push(new Eft.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),s;c.push(f)}),d=(0,C4.visitInParallel)(r.map(f=>f(p)));try{(0,C4.visit)(t,(0,B0e.visitWithTypeInfo)(o,d),Aft)}catch(f){if(f!==s)throw f}return c}function nH(e,t,r=q0e.specifiedSDLRules){let n=[],o=new U0e.SDLValidationContext(e,t,a=>{n.push(a)}),i=r.map(a=>a(o));return(0,C4.visit)(e,(0,C4.visitInParallel)(i)),n}function Ift(e){let t=nH(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(` -`))}function l0n(e,r){let i=Snt(e,r);if(i.length!==0)throw new Error(i.map(s=>s.message).join(` +`))}function kft(e,t){let r=nH(e,t);if(r.length!==0)throw new Error(r.map(n=>n.message).join(` -`))}});var tVt=dr(bnt=>{"use strict";Object.defineProperty(bnt,"__esModule",{value:!0});bnt.memoize3=u0n;function u0n(e){let r;return function(s,l,d){r===void 0&&(r=new WeakMap);let h=r.get(s);h===void 0&&(h=new WeakMap,r.set(s,h));let S=h.get(l);S===void 0&&(S=new WeakMap,h.set(l,S));let b=S.get(d);return b===void 0&&(b=e(s,l,d),S.set(d,b)),b}}});var rVt=dr(xnt=>{"use strict";Object.defineProperty(xnt,"__esModule",{value:!0});xnt.promiseForObject=p0n;function p0n(e){return Promise.all(Object.values(e)).then(r=>{let i=Object.create(null);for(let[s,l]of Object.keys(e).entries())i[l]=r[s];return i})}});var nVt=dr(Tnt=>{"use strict";Object.defineProperty(Tnt,"__esModule",{value:!0});Tnt.promiseReduce=d0n;var _0n=FDe();function d0n(e,r,i){let s=i;for(let l of e)s=(0,_0n.isPromise)(s)?s.then(d=>r(d,l)):r(s,l);return s}});var iVt=dr(knt=>{"use strict";Object.defineProperty(knt,"__esModule",{value:!0});knt.toError=m0n;var f0n=gm();function m0n(e){return e instanceof Error?e:new Ent(e)}var Ent=class extends Error{constructor(r){super("Unexpected error value: "+(0,f0n.inspect)(r)),this.name="NonErrorThrown",this.thrownValue=r}}});var RAe=dr(Cnt=>{"use strict";Object.defineProperty(Cnt,"__esModule",{value:!0});Cnt.locatedError=y0n;var h0n=iVt(),g0n=Cu();function y0n(e,r,i){var s;let l=(0,h0n.toError)(e);return v0n(l)?l:new g0n.GraphQLError(l.message,{nodes:(s=l.nodes)!==null&&s!==void 0?s:r,source:l.source,positions:l.positions,path:i,originalError:l})}function v0n(e){return Array.isArray(e.path)}});var dde=dr(_I=>{"use strict";Object.defineProperty(_I,"__esModule",{value:!0});_I.assertValidExecutionArguments=_Vt;_I.buildExecutionContext=dVt;_I.buildResolveInfo=mVt;_I.defaultTypeResolver=_I.defaultFieldResolver=void 0;_I.execute=pVt;_I.executeSync=C0n;_I.getFieldDef=gVt;var Ant=J2(),ZV=gm(),S0n=kT(),b0n=fAe(),Nnt=C8(),X6=FDe(),x0n=tVt(),XV=nde(),oVt=rVt(),T0n=nVt(),pI=Cu(),MAe=RAe(),Dnt=aI(),aVt=Md(),jB=jd(),Nee=uI(),E0n=ede(),lVt=IAe(),uVt=Iee(),k0n=(0,x0n.memoize3)((e,r,i)=>(0,lVt.collectSubfields)(e.schema,e.fragments,e.variableValues,r,i)),wnt=class{constructor(){this._errorPositions=new Set,this._errors=[]}get errors(){return this._errors}add(r,i){this._hasNulledPosition(i)||(this._errorPositions.add(i),this._errors.push(r))}_hasNulledPosition(r){let i=r;for(;i!==void 0;){if(this._errorPositions.has(i))return!0;i=i.prev}return this._errorPositions.has(void 0)}};function pVt(e){arguments.length<2||(0,Ant.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:r,document:i,variableValues:s,rootValue:l}=e;_Vt(r,i,s);let d=dVt(e);if(!("schema"in d))return{errors:d};try{let{operation:h}=d,S=D0n(d,h,l);return(0,X6.isPromise)(S)?S.then(b=>LAe(b,d.collectedErrors.errors),b=>(d.collectedErrors.add(b,void 0),LAe(null,d.collectedErrors.errors))):LAe(S,d.collectedErrors.errors)}catch(h){return d.collectedErrors.add(h,void 0),LAe(null,d.collectedErrors.errors)}}function C0n(e){let r=pVt(e);if((0,X6.isPromise)(r))throw new Error("GraphQL execution failed to complete synchronously.");return r}function LAe(e,r){return r.length===0?{data:e}:{errors:r,data:e}}function _Vt(e,r,i){r||(0,Ant.devAssert)(!1,"Must provide document."),(0,E0n.assertValidSchema)(e),i==null||(0,Nnt.isObjectLike)(i)||(0,Ant.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function dVt(e){var r,i,s;let{schema:l,document:d,rootValue:h,contextValue:S,variableValues:b,operationName:A,fieldResolver:L,typeResolver:V,subscribeFieldResolver:j,options:ie}=e,te,X=Object.create(null);for(let pt of d.definitions)switch(pt.kind){case aVt.Kind.OPERATION_DEFINITION:if(A==null){if(te!==void 0)return[new pI.GraphQLError("Must provide operation name if query contains multiple operations.")];te=pt}else((r=pt.name)===null||r===void 0?void 0:r.value)===A&&(te=pt);break;case aVt.Kind.FRAGMENT_DEFINITION:X[pt.name.value]=pt;break;default:}if(!te)return A!=null?[new pI.GraphQLError(`Unknown operation named "${A}".`)]:[new pI.GraphQLError("Must provide an operation.")];let Re=(i=te.variableDefinitions)!==null&&i!==void 0?i:[],Je=(0,uVt.getVariableValues)(l,Re,b??{},{maxErrors:(s=ie?.maxCoercionErrors)!==null&&s!==void 0?s:50});return Je.errors?Je.errors:{schema:l,fragments:X,rootValue:h,contextValue:S,operation:te,variableValues:Je.coerced,fieldResolver:L??Pnt,typeResolver:V??hVt,subscribeFieldResolver:j??Pnt,collectedErrors:new wnt}}function D0n(e,r,i){let s=e.schema.getRootType(r.operation);if(s==null)throw new pI.GraphQLError(`Schema is not configured to execute ${r.operation} operation.`,{nodes:r});let l=(0,lVt.collectFields)(e.schema,e.fragments,e.variableValues,s,r.selectionSet),d=void 0;switch(r.operation){case Dnt.OperationTypeNode.QUERY:return jAe(e,s,i,d,l);case Dnt.OperationTypeNode.MUTATION:return A0n(e,s,i,d,l);case Dnt.OperationTypeNode.SUBSCRIPTION:return jAe(e,s,i,d,l)}}function A0n(e,r,i,s,l){return(0,T0n.promiseReduce)(l.entries(),(d,[h,S])=>{let b=(0,XV.addPath)(s,h,r.name),A=fVt(e,r,i,S,b);return A===void 0?d:(0,X6.isPromise)(A)?A.then(L=>(d[h]=L,d)):(d[h]=A,d)},Object.create(null))}function jAe(e,r,i,s,l){let d=Object.create(null),h=!1;try{for(let[S,b]of l.entries()){let A=(0,XV.addPath)(s,S,r.name),L=fVt(e,r,i,b,A);L!==void 0&&(d[S]=L,(0,X6.isPromise)(L)&&(h=!0))}}catch(S){if(h)return(0,oVt.promiseForObject)(d).finally(()=>{throw S});throw S}return h?(0,oVt.promiseForObject)(d):d}function fVt(e,r,i,s,l){var d;let h=gVt(e.schema,r,s[0]);if(!h)return;let S=h.type,b=(d=h.resolve)!==null&&d!==void 0?d:e.fieldResolver,A=mVt(e,h,s,r,l);try{let L=(0,uVt.getArgumentValues)(h,s[0],e.variableValues),V=e.contextValue,j=b(i,L,V,A),ie;return(0,X6.isPromise)(j)?ie=j.then(te=>_de(e,S,s,A,l,te)):ie=_de(e,S,s,A,l,j),(0,X6.isPromise)(ie)?ie.then(void 0,te=>{let X=(0,MAe.locatedError)(te,s,(0,XV.pathToArray)(l));return BAe(X,S,l,e)}):ie}catch(L){let V=(0,MAe.locatedError)(L,s,(0,XV.pathToArray)(l));return BAe(V,S,l,e)}}function mVt(e,r,i,s,l){return{fieldName:r.name,fieldNodes:i,returnType:r.type,parentType:s,path:l,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function BAe(e,r,i,s){if((0,jB.isNonNullType)(r))throw e;return s.collectedErrors.add(e,i),null}function _de(e,r,i,s,l,d){if(d instanceof Error)throw d;if((0,jB.isNonNullType)(r)){let h=_de(e,r.ofType,i,s,l,d);if(h===null)throw new Error(`Cannot return null for non-nullable field ${s.parentType.name}.${s.fieldName}.`);return h}if(d==null)return null;if((0,jB.isListType)(r))return w0n(e,r,i,s,l,d);if((0,jB.isLeafType)(r))return I0n(r,d);if((0,jB.isAbstractType)(r))return P0n(e,r,i,s,l,d);if((0,jB.isObjectType)(r))return Int(e,r,i,s,l,d);(0,S0n.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,ZV.inspect)(r))}function w0n(e,r,i,s,l,d){if(!(0,b0n.isIterableObject)(d))throw new pI.GraphQLError(`Expected Iterable, but did not find one for field "${s.parentType.name}.${s.fieldName}".`);let h=r.ofType,S=!1,b=Array.from(d,(A,L)=>{let V=(0,XV.addPath)(l,L,void 0);try{let j;return(0,X6.isPromise)(A)?j=A.then(ie=>_de(e,h,i,s,V,ie)):j=_de(e,h,i,s,V,A),(0,X6.isPromise)(j)?(S=!0,j.then(void 0,ie=>{let te=(0,MAe.locatedError)(ie,i,(0,XV.pathToArray)(V));return BAe(te,h,V,e)})):j}catch(j){let ie=(0,MAe.locatedError)(j,i,(0,XV.pathToArray)(V));return BAe(ie,h,V,e)}});return S?Promise.all(b):b}function I0n(e,r){let i=e.serialize(r);if(i==null)throw new Error(`Expected \`${(0,ZV.inspect)(e)}.serialize(${(0,ZV.inspect)(r)})\` to return non-nullable value, returned: ${(0,ZV.inspect)(i)}`);return i}function P0n(e,r,i,s,l,d){var h;let S=(h=r.resolveType)!==null&&h!==void 0?h:e.typeResolver,b=e.contextValue,A=S(d,b,s,r);return(0,X6.isPromise)(A)?A.then(L=>Int(e,sVt(L,e,r,i,s,d),i,s,l,d)):Int(e,sVt(A,e,r,i,s,d),i,s,l,d)}function sVt(e,r,i,s,l,d){if(e==null)throw new pI.GraphQLError(`Abstract type "${i.name}" must resolve to an Object type at runtime for field "${l.parentType.name}.${l.fieldName}". Either the "${i.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,s);if((0,jB.isObjectType)(e))throw new pI.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new pI.GraphQLError(`Abstract type "${i.name}" must resolve to an Object type at runtime for field "${l.parentType.name}.${l.fieldName}" with value ${(0,ZV.inspect)(d)}, received "${(0,ZV.inspect)(e)}".`);let h=r.schema.getType(e);if(h==null)throw new pI.GraphQLError(`Abstract type "${i.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:s});if(!(0,jB.isObjectType)(h))throw new pI.GraphQLError(`Abstract type "${i.name}" was resolved to a non-object type "${e}".`,{nodes:s});if(!r.schema.isSubType(i,h))throw new pI.GraphQLError(`Runtime Object type "${h.name}" is not a possible type for "${i.name}".`,{nodes:s});return h}function Int(e,r,i,s,l,d){let h=k0n(e,r,i);if(r.isTypeOf){let S=r.isTypeOf(d,e.contextValue,s);if((0,X6.isPromise)(S))return S.then(b=>{if(!b)throw cVt(r,d,i);return jAe(e,r,d,l,h)});if(!S)throw cVt(r,d,i)}return jAe(e,r,d,l,h)}function cVt(e,r,i){return new pI.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,ZV.inspect)(r)}.`,{nodes:i})}var hVt=function(e,r,i,s){if((0,Nnt.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let l=i.schema.getPossibleTypes(s),d=[];for(let h=0;h{}),S.name}}if(d.length)return Promise.all(d).then(h=>{for(let S=0;S{"use strict";Object.defineProperty($Ae,"__esModule",{value:!0});$Ae.graphql=j0n;$Ae.graphqlSync=B0n;var N0n=J2(),O0n=FDe(),F0n=BV(),R0n=ede(),L0n=pde(),M0n=dde();function j0n(e){return new Promise(r=>r(yVt(e)))}function B0n(e){let r=yVt(e);if((0,O0n.isPromise)(r))throw new Error("GraphQL execution failed to complete synchronously.");return r}function yVt(e){arguments.length<2||(0,N0n.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:r,source:i,rootValue:s,contextValue:l,variableValues:d,operationName:h,fieldResolver:S,typeResolver:b}=e,A=(0,R0n.validateSchema)(r);if(A.length>0)return{errors:A};let L;try{L=(0,F0n.parse)(i)}catch(j){return{errors:[j]}}let V=(0,L0n.validate)(r,L);return V.length>0?{errors:V}:(0,M0n.execute)({schema:r,document:L,rootValue:s,contextValue:l,variableValues:d,operationName:h,fieldResolver:S,typeResolver:b})}});var xVt=dr(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});Object.defineProperty(ms,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Y6.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(ms,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return s9.GRAPHQL_MAX_INT}});Object.defineProperty(ms,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return s9.GRAPHQL_MIN_INT}});Object.defineProperty(ms,"GraphQLBoolean",{enumerable:!0,get:function(){return s9.GraphQLBoolean}});Object.defineProperty(ms,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Y6.GraphQLDeprecatedDirective}});Object.defineProperty(ms,"GraphQLDirective",{enumerable:!0,get:function(){return Y6.GraphQLDirective}});Object.defineProperty(ms,"GraphQLEnumType",{enumerable:!0,get:function(){return pp.GraphQLEnumType}});Object.defineProperty(ms,"GraphQLFloat",{enumerable:!0,get:function(){return s9.GraphQLFloat}});Object.defineProperty(ms,"GraphQLID",{enumerable:!0,get:function(){return s9.GraphQLID}});Object.defineProperty(ms,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Y6.GraphQLIncludeDirective}});Object.defineProperty(ms,"GraphQLInputObjectType",{enumerable:!0,get:function(){return pp.GraphQLInputObjectType}});Object.defineProperty(ms,"GraphQLInt",{enumerable:!0,get:function(){return s9.GraphQLInt}});Object.defineProperty(ms,"GraphQLInterfaceType",{enumerable:!0,get:function(){return pp.GraphQLInterfaceType}});Object.defineProperty(ms,"GraphQLList",{enumerable:!0,get:function(){return pp.GraphQLList}});Object.defineProperty(ms,"GraphQLNonNull",{enumerable:!0,get:function(){return pp.GraphQLNonNull}});Object.defineProperty(ms,"GraphQLObjectType",{enumerable:!0,get:function(){return pp.GraphQLObjectType}});Object.defineProperty(ms,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Y6.GraphQLOneOfDirective}});Object.defineProperty(ms,"GraphQLScalarType",{enumerable:!0,get:function(){return pp.GraphQLScalarType}});Object.defineProperty(ms,"GraphQLSchema",{enumerable:!0,get:function(){return Ont.GraphQLSchema}});Object.defineProperty(ms,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Y6.GraphQLSkipDirective}});Object.defineProperty(ms,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Y6.GraphQLSpecifiedByDirective}});Object.defineProperty(ms,"GraphQLString",{enumerable:!0,get:function(){return s9.GraphQLString}});Object.defineProperty(ms,"GraphQLUnionType",{enumerable:!0,get:function(){return pp.GraphQLUnionType}});Object.defineProperty(ms,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Dk.SchemaMetaFieldDef}});Object.defineProperty(ms,"TypeKind",{enumerable:!0,get:function(){return Dk.TypeKind}});Object.defineProperty(ms,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Dk.TypeMetaFieldDef}});Object.defineProperty(ms,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Dk.TypeNameMetaFieldDef}});Object.defineProperty(ms,"__Directive",{enumerable:!0,get:function(){return Dk.__Directive}});Object.defineProperty(ms,"__DirectiveLocation",{enumerable:!0,get:function(){return Dk.__DirectiveLocation}});Object.defineProperty(ms,"__EnumValue",{enumerable:!0,get:function(){return Dk.__EnumValue}});Object.defineProperty(ms,"__Field",{enumerable:!0,get:function(){return Dk.__Field}});Object.defineProperty(ms,"__InputValue",{enumerable:!0,get:function(){return Dk.__InputValue}});Object.defineProperty(ms,"__Schema",{enumerable:!0,get:function(){return Dk.__Schema}});Object.defineProperty(ms,"__Type",{enumerable:!0,get:function(){return Dk.__Type}});Object.defineProperty(ms,"__TypeKind",{enumerable:!0,get:function(){return Dk.__TypeKind}});Object.defineProperty(ms,"assertAbstractType",{enumerable:!0,get:function(){return pp.assertAbstractType}});Object.defineProperty(ms,"assertCompositeType",{enumerable:!0,get:function(){return pp.assertCompositeType}});Object.defineProperty(ms,"assertDirective",{enumerable:!0,get:function(){return Y6.assertDirective}});Object.defineProperty(ms,"assertEnumType",{enumerable:!0,get:function(){return pp.assertEnumType}});Object.defineProperty(ms,"assertEnumValueName",{enumerable:!0,get:function(){return bVt.assertEnumValueName}});Object.defineProperty(ms,"assertInputObjectType",{enumerable:!0,get:function(){return pp.assertInputObjectType}});Object.defineProperty(ms,"assertInputType",{enumerable:!0,get:function(){return pp.assertInputType}});Object.defineProperty(ms,"assertInterfaceType",{enumerable:!0,get:function(){return pp.assertInterfaceType}});Object.defineProperty(ms,"assertLeafType",{enumerable:!0,get:function(){return pp.assertLeafType}});Object.defineProperty(ms,"assertListType",{enumerable:!0,get:function(){return pp.assertListType}});Object.defineProperty(ms,"assertName",{enumerable:!0,get:function(){return bVt.assertName}});Object.defineProperty(ms,"assertNamedType",{enumerable:!0,get:function(){return pp.assertNamedType}});Object.defineProperty(ms,"assertNonNullType",{enumerable:!0,get:function(){return pp.assertNonNullType}});Object.defineProperty(ms,"assertNullableType",{enumerable:!0,get:function(){return pp.assertNullableType}});Object.defineProperty(ms,"assertObjectType",{enumerable:!0,get:function(){return pp.assertObjectType}});Object.defineProperty(ms,"assertOutputType",{enumerable:!0,get:function(){return pp.assertOutputType}});Object.defineProperty(ms,"assertScalarType",{enumerable:!0,get:function(){return pp.assertScalarType}});Object.defineProperty(ms,"assertSchema",{enumerable:!0,get:function(){return Ont.assertSchema}});Object.defineProperty(ms,"assertType",{enumerable:!0,get:function(){return pp.assertType}});Object.defineProperty(ms,"assertUnionType",{enumerable:!0,get:function(){return pp.assertUnionType}});Object.defineProperty(ms,"assertValidSchema",{enumerable:!0,get:function(){return SVt.assertValidSchema}});Object.defineProperty(ms,"assertWrappingType",{enumerable:!0,get:function(){return pp.assertWrappingType}});Object.defineProperty(ms,"getNamedType",{enumerable:!0,get:function(){return pp.getNamedType}});Object.defineProperty(ms,"getNullableType",{enumerable:!0,get:function(){return pp.getNullableType}});Object.defineProperty(ms,"introspectionTypes",{enumerable:!0,get:function(){return Dk.introspectionTypes}});Object.defineProperty(ms,"isAbstractType",{enumerable:!0,get:function(){return pp.isAbstractType}});Object.defineProperty(ms,"isCompositeType",{enumerable:!0,get:function(){return pp.isCompositeType}});Object.defineProperty(ms,"isDirective",{enumerable:!0,get:function(){return Y6.isDirective}});Object.defineProperty(ms,"isEnumType",{enumerable:!0,get:function(){return pp.isEnumType}});Object.defineProperty(ms,"isInputObjectType",{enumerable:!0,get:function(){return pp.isInputObjectType}});Object.defineProperty(ms,"isInputType",{enumerable:!0,get:function(){return pp.isInputType}});Object.defineProperty(ms,"isInterfaceType",{enumerable:!0,get:function(){return pp.isInterfaceType}});Object.defineProperty(ms,"isIntrospectionType",{enumerable:!0,get:function(){return Dk.isIntrospectionType}});Object.defineProperty(ms,"isLeafType",{enumerable:!0,get:function(){return pp.isLeafType}});Object.defineProperty(ms,"isListType",{enumerable:!0,get:function(){return pp.isListType}});Object.defineProperty(ms,"isNamedType",{enumerable:!0,get:function(){return pp.isNamedType}});Object.defineProperty(ms,"isNonNullType",{enumerable:!0,get:function(){return pp.isNonNullType}});Object.defineProperty(ms,"isNullableType",{enumerable:!0,get:function(){return pp.isNullableType}});Object.defineProperty(ms,"isObjectType",{enumerable:!0,get:function(){return pp.isObjectType}});Object.defineProperty(ms,"isOutputType",{enumerable:!0,get:function(){return pp.isOutputType}});Object.defineProperty(ms,"isRequiredArgument",{enumerable:!0,get:function(){return pp.isRequiredArgument}});Object.defineProperty(ms,"isRequiredInputField",{enumerable:!0,get:function(){return pp.isRequiredInputField}});Object.defineProperty(ms,"isScalarType",{enumerable:!0,get:function(){return pp.isScalarType}});Object.defineProperty(ms,"isSchema",{enumerable:!0,get:function(){return Ont.isSchema}});Object.defineProperty(ms,"isSpecifiedDirective",{enumerable:!0,get:function(){return Y6.isSpecifiedDirective}});Object.defineProperty(ms,"isSpecifiedScalarType",{enumerable:!0,get:function(){return s9.isSpecifiedScalarType}});Object.defineProperty(ms,"isType",{enumerable:!0,get:function(){return pp.isType}});Object.defineProperty(ms,"isUnionType",{enumerable:!0,get:function(){return pp.isUnionType}});Object.defineProperty(ms,"isWrappingType",{enumerable:!0,get:function(){return pp.isWrappingType}});Object.defineProperty(ms,"resolveObjMapThunk",{enumerable:!0,get:function(){return pp.resolveObjMapThunk}});Object.defineProperty(ms,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return pp.resolveReadonlyArrayThunk}});Object.defineProperty(ms,"specifiedDirectives",{enumerable:!0,get:function(){return Y6.specifiedDirectives}});Object.defineProperty(ms,"specifiedScalarTypes",{enumerable:!0,get:function(){return s9.specifiedScalarTypes}});Object.defineProperty(ms,"validateSchema",{enumerable:!0,get:function(){return SVt.validateSchema}});var Ont=WV(),pp=jd(),Y6=kk(),s9=w8(),Dk=uI(),SVt=ede(),bVt=B_e()});var EVt=dr(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Object.defineProperty(Qd,"BREAK",{enumerable:!0,get:function(){return mde.BREAK}});Object.defineProperty(Qd,"DirectiveLocation",{enumerable:!0,get:function(){return W0n.DirectiveLocation}});Object.defineProperty(Qd,"Kind",{enumerable:!0,get:function(){return z0n.Kind}});Object.defineProperty(Qd,"Lexer",{enumerable:!0,get:function(){return J0n.Lexer}});Object.defineProperty(Qd,"Location",{enumerable:!0,get:function(){return Fnt.Location}});Object.defineProperty(Qd,"OperationTypeNode",{enumerable:!0,get:function(){return Fnt.OperationTypeNode}});Object.defineProperty(Qd,"Source",{enumerable:!0,get:function(){return $0n.Source}});Object.defineProperty(Qd,"Token",{enumerable:!0,get:function(){return Fnt.Token}});Object.defineProperty(Qd,"TokenKind",{enumerable:!0,get:function(){return q0n.TokenKind}});Object.defineProperty(Qd,"getEnterLeaveForKind",{enumerable:!0,get:function(){return mde.getEnterLeaveForKind}});Object.defineProperty(Qd,"getLocation",{enumerable:!0,get:function(){return U0n.getLocation}});Object.defineProperty(Qd,"getVisitFn",{enumerable:!0,get:function(){return mde.getVisitFn}});Object.defineProperty(Qd,"isConstValueNode",{enumerable:!0,get:function(){return e4.isConstValueNode}});Object.defineProperty(Qd,"isDefinitionNode",{enumerable:!0,get:function(){return e4.isDefinitionNode}});Object.defineProperty(Qd,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return e4.isExecutableDefinitionNode}});Object.defineProperty(Qd,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return e4.isSchemaCoordinateNode}});Object.defineProperty(Qd,"isSelectionNode",{enumerable:!0,get:function(){return e4.isSelectionNode}});Object.defineProperty(Qd,"isTypeDefinitionNode",{enumerable:!0,get:function(){return e4.isTypeDefinitionNode}});Object.defineProperty(Qd,"isTypeExtensionNode",{enumerable:!0,get:function(){return e4.isTypeExtensionNode}});Object.defineProperty(Qd,"isTypeNode",{enumerable:!0,get:function(){return e4.isTypeNode}});Object.defineProperty(Qd,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return e4.isTypeSystemDefinitionNode}});Object.defineProperty(Qd,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return e4.isTypeSystemExtensionNode}});Object.defineProperty(Qd,"isValueNode",{enumerable:!0,get:function(){return e4.isValueNode}});Object.defineProperty(Qd,"parse",{enumerable:!0,get:function(){return fde.parse}});Object.defineProperty(Qd,"parseConstValue",{enumerable:!0,get:function(){return fde.parseConstValue}});Object.defineProperty(Qd,"parseSchemaCoordinate",{enumerable:!0,get:function(){return fde.parseSchemaCoordinate}});Object.defineProperty(Qd,"parseType",{enumerable:!0,get:function(){return fde.parseType}});Object.defineProperty(Qd,"parseValue",{enumerable:!0,get:function(){return fde.parseValue}});Object.defineProperty(Qd,"print",{enumerable:!0,get:function(){return V0n.print}});Object.defineProperty(Qd,"printLocation",{enumerable:!0,get:function(){return TVt.printLocation}});Object.defineProperty(Qd,"printSourceLocation",{enumerable:!0,get:function(){return TVt.printSourceLocation}});Object.defineProperty(Qd,"visit",{enumerable:!0,get:function(){return mde.visit}});Object.defineProperty(Qd,"visitInParallel",{enumerable:!0,get:function(){return mde.visitInParallel}});var $0n=zDe(),U0n=RDe(),TVt=Det(),z0n=Md(),q0n=vee(),J0n=O_e(),fde=BV(),V0n=FD(),mde=$V(),Fnt=aI(),e4=HV(),W0n=yee()});var kVt=dr(Rnt=>{"use strict";Object.defineProperty(Rnt,"__esModule",{value:!0});Rnt.isAsyncIterable=G0n;function G0n(e){return typeof e?.[Symbol.asyncIterator]=="function"}});var CVt=dr(Lnt=>{"use strict";Object.defineProperty(Lnt,"__esModule",{value:!0});Lnt.mapAsyncIterator=H0n;function H0n(e,r){let i=e[Symbol.asyncIterator]();async function s(l){if(l.done)return l;try{return{value:await r(l.value),done:!1}}catch(d){if(typeof i.return=="function")try{await i.return()}catch{}throw d}}return{async next(){return s(await i.next())},async return(){return typeof i.return=="function"?s(await i.return()):{value:void 0,done:!0}},async throw(l){if(typeof i.throw=="function")return s(await i.throw(l));throw l},[Symbol.asyncIterator](){return this}}}});var IVt=dr(UAe=>{"use strict";Object.defineProperty(UAe,"__esModule",{value:!0});UAe.createSourceEventStream=wVt;UAe.subscribe=t1n;var K0n=J2(),Q0n=gm(),AVt=kVt(),DVt=nde(),Mnt=Cu(),Z0n=RAe(),X0n=IAe(),hde=dde(),Y0n=CVt(),e1n=Iee();async function t1n(e){arguments.length<2||(0,K0n.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let r=await wVt(e);if(!(0,AVt.isAsyncIterable)(r))return r;let i=s=>(0,hde.execute)({...e,rootValue:s});return(0,Y0n.mapAsyncIterator)(r,i)}function r1n(e){let r=e[0];return r&&"document"in r?r:{schema:r,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function wVt(...e){let r=r1n(e),{schema:i,document:s,variableValues:l}=r;(0,hde.assertValidExecutionArguments)(i,s,l);let d=(0,hde.buildExecutionContext)(r);if(!("schema"in d))return{errors:d};try{let h=await n1n(d);if(!(0,AVt.isAsyncIterable)(h))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,Q0n.inspect)(h)}.`);return h}catch(h){if(h instanceof Mnt.GraphQLError)return{errors:[h]};throw h}}async function n1n(e){let{schema:r,fragments:i,operation:s,variableValues:l,rootValue:d}=e,h=r.getSubscriptionType();if(h==null)throw new Mnt.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:s});let S=(0,X0n.collectFields)(r,i,l,h,s.selectionSet),[b,A]=[...S.entries()][0],L=(0,hde.getFieldDef)(r,h,A[0]);if(!L){let te=A[0].name.value;throw new Mnt.GraphQLError(`The subscription field "${te}" is not defined.`,{nodes:A})}let V=(0,DVt.addPath)(void 0,b,h.name),j=(0,hde.buildResolveInfo)(e,L,A,h,V);try{var ie;let te=(0,e1n.getArgumentValues)(L,A[0],l),X=e.contextValue,Je=await((ie=L.subscribe)!==null&&ie!==void 0?ie:e.subscribeFieldResolver)(d,te,X,j);if(Je instanceof Error)throw Je;return Je}catch(te){throw(0,Z0n.locatedError)(te,A,(0,DVt.pathToArray)(V))}}});var NVt=dr(dI=>{"use strict";Object.defineProperty(dI,"__esModule",{value:!0});Object.defineProperty(dI,"createSourceEventStream",{enumerable:!0,get:function(){return PVt.createSourceEventStream}});Object.defineProperty(dI,"defaultFieldResolver",{enumerable:!0,get:function(){return zAe.defaultFieldResolver}});Object.defineProperty(dI,"defaultTypeResolver",{enumerable:!0,get:function(){return zAe.defaultTypeResolver}});Object.defineProperty(dI,"execute",{enumerable:!0,get:function(){return zAe.execute}});Object.defineProperty(dI,"executeSync",{enumerable:!0,get:function(){return zAe.executeSync}});Object.defineProperty(dI,"getArgumentValues",{enumerable:!0,get:function(){return jnt.getArgumentValues}});Object.defineProperty(dI,"getDirectiveValues",{enumerable:!0,get:function(){return jnt.getDirectiveValues}});Object.defineProperty(dI,"getVariableValues",{enumerable:!0,get:function(){return jnt.getVariableValues}});Object.defineProperty(dI,"responsePathAsArray",{enumerable:!0,get:function(){return i1n.pathToArray}});Object.defineProperty(dI,"subscribe",{enumerable:!0,get:function(){return PVt.subscribe}});var i1n=nde(),zAe=dde(),PVt=IVt(),jnt=Iee()});var OVt=dr(Unt=>{"use strict";Object.defineProperty(Unt,"__esModule",{value:!0});Unt.NoDeprecatedCustomRule=o1n;var Bnt=kT(),gde=Cu(),$nt=jd();function o1n(e){return{Field(r){let i=e.getFieldDef(),s=i?.deprecationReason;if(i&&s!=null){let l=e.getParentType();l!=null||(0,Bnt.invariant)(!1),e.reportError(new gde.GraphQLError(`The field ${l.name}.${i.name} is deprecated. ${s}`,{nodes:r}))}},Argument(r){let i=e.getArgument(),s=i?.deprecationReason;if(i&&s!=null){let l=e.getDirective();if(l!=null)e.reportError(new gde.GraphQLError(`Directive "@${l.name}" argument "${i.name}" is deprecated. ${s}`,{nodes:r}));else{let d=e.getParentType(),h=e.getFieldDef();d!=null&&h!=null||(0,Bnt.invariant)(!1),e.reportError(new gde.GraphQLError(`Field "${d.name}.${h.name}" argument "${i.name}" is deprecated. ${s}`,{nodes:r}))}}},ObjectField(r){let i=(0,$nt.getNamedType)(e.getParentInputType());if((0,$nt.isInputObjectType)(i)){let s=i.getFields()[r.name.value],l=s?.deprecationReason;l!=null&&e.reportError(new gde.GraphQLError(`The input field ${i.name}.${s.name} is deprecated. ${l}`,{nodes:r}))}},EnumValue(r){let i=e.getEnumValue(),s=i?.deprecationReason;if(i&&s!=null){let l=(0,$nt.getNamedType)(e.getInputType());l!=null||(0,Bnt.invariant)(!1),e.reportError(new gde.GraphQLError(`The enum value "${l.name}.${i.name}" is deprecated. ${s}`,{nodes:r}))}}}}});var FVt=dr(znt=>{"use strict";Object.defineProperty(znt,"__esModule",{value:!0});znt.NoSchemaIntrospectionCustomRule=l1n;var a1n=Cu(),s1n=jd(),c1n=uI();function l1n(e){return{Field(r){let i=(0,s1n.getNamedType)(e.getType());i&&(0,c1n.isIntrospectionType)(i)&&e.reportError(new a1n.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${r.name.value}".`,{nodes:r}))}}}});var LVt=dr(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Object.defineProperty(Yp,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return _1n.ExecutableDefinitionsRule}});Object.defineProperty(Yp,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return d1n.FieldsOnCorrectTypeRule}});Object.defineProperty(Yp,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return f1n.FragmentsOnCompositeTypesRule}});Object.defineProperty(Yp,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return m1n.KnownArgumentNamesRule}});Object.defineProperty(Yp,"KnownDirectivesRule",{enumerable:!0,get:function(){return h1n.KnownDirectivesRule}});Object.defineProperty(Yp,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return g1n.KnownFragmentNamesRule}});Object.defineProperty(Yp,"KnownTypeNamesRule",{enumerable:!0,get:function(){return y1n.KnownTypeNamesRule}});Object.defineProperty(Yp,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return v1n.LoneAnonymousOperationRule}});Object.defineProperty(Yp,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return B1n.LoneSchemaDefinitionRule}});Object.defineProperty(Yp,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return j1n.MaxIntrospectionDepthRule}});Object.defineProperty(Yp,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return G1n.NoDeprecatedCustomRule}});Object.defineProperty(Yp,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return S1n.NoFragmentCyclesRule}});Object.defineProperty(Yp,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return H1n.NoSchemaIntrospectionCustomRule}});Object.defineProperty(Yp,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return b1n.NoUndefinedVariablesRule}});Object.defineProperty(Yp,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return x1n.NoUnusedFragmentsRule}});Object.defineProperty(Yp,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return T1n.NoUnusedVariablesRule}});Object.defineProperty(Yp,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return E1n.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Yp,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return k1n.PossibleFragmentSpreadsRule}});Object.defineProperty(Yp,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return W1n.PossibleTypeExtensionsRule}});Object.defineProperty(Yp,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return C1n.ProvidedRequiredArgumentsRule}});Object.defineProperty(Yp,"ScalarLeafsRule",{enumerable:!0,get:function(){return D1n.ScalarLeafsRule}});Object.defineProperty(Yp,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return A1n.SingleFieldSubscriptionsRule}});Object.defineProperty(Yp,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return J1n.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(Yp,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return w1n.UniqueArgumentNamesRule}});Object.defineProperty(Yp,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return V1n.UniqueDirectiveNamesRule}});Object.defineProperty(Yp,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return I1n.UniqueDirectivesPerLocationRule}});Object.defineProperty(Yp,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return z1n.UniqueEnumValueNamesRule}});Object.defineProperty(Yp,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return q1n.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Yp,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return P1n.UniqueFragmentNamesRule}});Object.defineProperty(Yp,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return N1n.UniqueInputFieldNamesRule}});Object.defineProperty(Yp,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return O1n.UniqueOperationNamesRule}});Object.defineProperty(Yp,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return $1n.UniqueOperationTypesRule}});Object.defineProperty(Yp,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return U1n.UniqueTypeNamesRule}});Object.defineProperty(Yp,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return F1n.UniqueVariableNamesRule}});Object.defineProperty(Yp,"ValidationContext",{enumerable:!0,get:function(){return p1n.ValidationContext}});Object.defineProperty(Yp,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return R1n.ValuesOfCorrectTypeRule}});Object.defineProperty(Yp,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return L1n.VariablesAreInputTypesRule}});Object.defineProperty(Yp,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return M1n.VariablesInAllowedPositionRule}});Object.defineProperty(Yp,"recommendedRules",{enumerable:!0,get:function(){return RVt.recommendedRules}});Object.defineProperty(Yp,"specifiedRules",{enumerable:!0,get:function(){return RVt.specifiedRules}});Object.defineProperty(Yp,"validate",{enumerable:!0,get:function(){return u1n.validate}});var u1n=pde(),p1n=vnt(),RVt=hnt(),_1n=Ntt(),d1n=Ftt(),f1n=Ltt(),m1n=Mtt(),h1n=Utt(),g1n=qtt(),y1n=Wtt(),v1n=Htt(),S1n=ert(),b1n=rrt(),x1n=irt(),T1n=art(),E1n=hrt(),k1n=vrt(),C1n=Trt(),D1n=Drt(),A1n=Lrt(),w1n=Urt(),I1n=Wrt(),P1n=Yrt(),N1n=tnt(),O1n=nnt(),F1n=lnt(),R1n=pnt(),L1n=dnt(),M1n=mnt(),j1n=Xtt(),B1n=Qtt(),$1n=ont(),U1n=snt(),z1n=Hrt(),q1n=Zrt(),J1n=Brt(),V1n=qrt(),W1n=brt(),G1n=OVt(),H1n=FVt()});var MVt=dr(YV=>{"use strict";Object.defineProperty(YV,"__esModule",{value:!0});Object.defineProperty(YV,"GraphQLError",{enumerable:!0,get:function(){return qnt.GraphQLError}});Object.defineProperty(YV,"formatError",{enumerable:!0,get:function(){return qnt.formatError}});Object.defineProperty(YV,"locatedError",{enumerable:!0,get:function(){return Q1n.locatedError}});Object.defineProperty(YV,"printError",{enumerable:!0,get:function(){return qnt.printError}});Object.defineProperty(YV,"syntaxError",{enumerable:!0,get:function(){return K1n.syntaxError}});var qnt=Cu(),K1n=k_e(),Q1n=RAe()});var Vnt=dr(Jnt=>{"use strict";Object.defineProperty(Jnt,"__esModule",{value:!0});Jnt.getIntrospectionQuery=Z1n;function Z1n(e){let r={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},i=r.descriptions?"description":"",s=r.specifiedByUrl?"specifiedByURL":"",l=r.directiveIsRepeatable?"isRepeatable":"",d=r.schemaDescription?i:"";function h(b){return r.inputValueDeprecation?b:""}let S=r.oneOf?"isOneOf":"";return` +`))}});var z0e=L(oH=>{"use strict";Object.defineProperty(oH,"__esModule",{value:!0});oH.memoize3=Cft;function Cft(e){let t;return function(n,o,i){t===void 0&&(t=new WeakMap);let a=t.get(n);a===void 0&&(a=new WeakMap,t.set(n,a));let s=a.get(o);s===void 0&&(s=new WeakMap,a.set(o,s));let c=s.get(i);return c===void 0&&(c=e(n,o,i),s.set(i,c)),c}}});var V0e=L(iH=>{"use strict";Object.defineProperty(iH,"__esModule",{value:!0});iH.promiseForObject=Pft;function Pft(e){return Promise.all(Object.values(e)).then(t=>{let r=Object.create(null);for(let[n,o]of Object.keys(e).entries())r[o]=t[n];return r})}});var J0e=L(aH=>{"use strict";Object.defineProperty(aH,"__esModule",{value:!0});aH.promiseReduce=Nft;var Oft=CO();function Nft(e,t,r){let n=r;for(let o of e)n=(0,Oft.isPromise)(n)?n.then(i=>t(i,o)):t(n,o);return n}});var K0e=L(cH=>{"use strict";Object.defineProperty(cH,"__esModule",{value:!0});cH.toError=Rft;var Fft=eo();function Rft(e){return e instanceof Error?e:new sH(e)}var sH=class extends Error{constructor(t){super("Unexpected error value: "+(0,Fft.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var P4=L(lH=>{"use strict";Object.defineProperty(lH,"__esModule",{value:!0});lH.locatedError=Mft;var Lft=K0e(),$ft=ar();function Mft(e,t,r){var n;let o=(0,Lft.toError)(e);return jft(o)?o:new $ft.GraphQLError(o.message,{nodes:(n=o.nodes)!==null&&n!==void 0?n:t,source:o.source,positions:o.positions,path:r,originalError:o})}function jft(e){return Array.isArray(e.path)}});var Z2=L(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.assertValidExecutionArguments=eve;Kl.buildExecutionContext=tve;Kl.buildResolveInfo=nve;Kl.defaultTypeResolver=Kl.defaultFieldResolver=void 0;Kl.execute=Y0e;Kl.executeSync=Kft;Kl.getFieldDef=ive;var pH=Ls(),oS=eo(),Bft=us(),qft=u4(),mH=hd(),Hu=CO(),Uft=z0e(),iS=j2(),G0e=V0e(),zft=J0e(),Jl=ar(),N4=P4(),uH=Bl(),H0e=Sn(),Ah=vn(),B1=Vl(),Vft=L2(),Q0e=A4(),X0e=M1(),Jft=(0,Uft.memoize3)((e,t,r)=>(0,Q0e.collectSubfields)(e.schema,e.fragments,e.variableValues,t,r)),dH=class{constructor(){this._errorPositions=new Set,this._errors=[]}get errors(){return this._errors}add(t,r){this._hasNulledPosition(r)||(this._errorPositions.add(r),this._errors.push(t))}_hasNulledPosition(t){let r=t;for(;r!==void 0;){if(this._errorPositions.has(r))return!0;r=r.prev}return this._errorPositions.has(void 0)}};function Y0e(e){arguments.length<2||(0,pH.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:r,variableValues:n,rootValue:o}=e;eve(t,r,n);let i=tve(e);if(!("schema"in i))return{errors:i};try{let{operation:a}=i,s=Gft(i,a,o);return(0,Hu.isPromise)(s)?s.then(c=>O4(c,i.collectedErrors.errors),c=>(i.collectedErrors.add(c,void 0),O4(null,i.collectedErrors.errors))):O4(s,i.collectedErrors.errors)}catch(a){return i.collectedErrors.add(a,void 0),O4(null,i.collectedErrors.errors)}}function Kft(e){let t=Y0e(e);if((0,Hu.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function O4(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function eve(e,t,r){t||(0,pH.devAssert)(!1,"Must provide document."),(0,Vft.assertValidSchema)(e),r==null||(0,mH.isObjectLike)(r)||(0,pH.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function tve(e){var t,r,n;let{schema:o,document:i,rootValue:a,contextValue:s,variableValues:c,operationName:p,fieldResolver:d,typeResolver:f,subscribeFieldResolver:m,options:y}=e,g,S=Object.create(null);for(let I of i.definitions)switch(I.kind){case H0e.Kind.OPERATION_DEFINITION:if(p==null){if(g!==void 0)return[new Jl.GraphQLError("Must provide operation name if query contains multiple operations.")];g=I}else((t=I.name)===null||t===void 0?void 0:t.value)===p&&(g=I);break;case H0e.Kind.FRAGMENT_DEFINITION:S[I.name.value]=I;break;default:}if(!g)return p!=null?[new Jl.GraphQLError(`Unknown operation named "${p}".`)]:[new Jl.GraphQLError("Must provide an operation.")];let x=(r=g.variableDefinitions)!==null&&r!==void 0?r:[],A=(0,X0e.getVariableValues)(o,x,c??{},{maxErrors:(n=y?.maxCoercionErrors)!==null&&n!==void 0?n:50});return A.errors?A.errors:{schema:o,fragments:S,rootValue:a,contextValue:s,operation:g,variableValues:A.coerced,fieldResolver:d??fH,typeResolver:f??ove,subscribeFieldResolver:m??fH,collectedErrors:new dH}}function Gft(e,t,r){let n=e.schema.getRootType(t.operation);if(n==null)throw new Jl.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let o=(0,Q0e.collectFields)(e.schema,e.fragments,e.variableValues,n,t.selectionSet),i=void 0;switch(t.operation){case uH.OperationTypeNode.QUERY:return F4(e,n,r,i,o);case uH.OperationTypeNode.MUTATION:return Hft(e,n,r,i,o);case uH.OperationTypeNode.SUBSCRIPTION:return F4(e,n,r,i,o)}}function Hft(e,t,r,n,o){return(0,zft.promiseReduce)(o.entries(),(i,[a,s])=>{let c=(0,iS.addPath)(n,a,t.name),p=rve(e,t,r,s,c);return p===void 0?i:(0,Hu.isPromise)(p)?p.then(d=>(i[a]=d,i)):(i[a]=p,i)},Object.create(null))}function F4(e,t,r,n,o){let i=Object.create(null),a=!1;try{for(let[s,c]of o.entries()){let p=(0,iS.addPath)(n,s,t.name),d=rve(e,t,r,c,p);d!==void 0&&(i[s]=d,(0,Hu.isPromise)(d)&&(a=!0))}}catch(s){if(a)return(0,G0e.promiseForObject)(i).finally(()=>{throw s});throw s}return a?(0,G0e.promiseForObject)(i):i}function rve(e,t,r,n,o){var i;let a=ive(e.schema,t,n[0]);if(!a)return;let s=a.type,c=(i=a.resolve)!==null&&i!==void 0?i:e.fieldResolver,p=nve(e,a,n,t,o);try{let d=(0,X0e.getArgumentValues)(a,n[0],e.variableValues),f=e.contextValue,m=c(r,d,f,p),y;return(0,Hu.isPromise)(m)?y=m.then(g=>H2(e,s,n,p,o,g)):y=H2(e,s,n,p,o,m),(0,Hu.isPromise)(y)?y.then(void 0,g=>{let S=(0,N4.locatedError)(g,n,(0,iS.pathToArray)(o));return R4(S,s,o,e)}):y}catch(d){let f=(0,N4.locatedError)(d,n,(0,iS.pathToArray)(o));return R4(f,s,o,e)}}function nve(e,t,r,n,o){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:o,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function R4(e,t,r,n){if((0,Ah.isNonNullType)(t))throw e;return n.collectedErrors.add(e,r),null}function H2(e,t,r,n,o,i){if(i instanceof Error)throw i;if((0,Ah.isNonNullType)(t)){let a=H2(e,t.ofType,r,n,o,i);if(a===null)throw new Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`);return a}if(i==null)return null;if((0,Ah.isListType)(t))return Zft(e,t,r,n,o,i);if((0,Ah.isLeafType)(t))return Wft(t,i);if((0,Ah.isAbstractType)(t))return Qft(e,t,r,n,o,i);if((0,Ah.isObjectType)(t))return _H(e,t,r,n,o,i);(0,Bft.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,oS.inspect)(t))}function Zft(e,t,r,n,o,i){if(!(0,qft.isIterableObject)(i))throw new Jl.GraphQLError(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`);let a=t.ofType,s=!1,c=Array.from(i,(p,d)=>{let f=(0,iS.addPath)(o,d,void 0);try{let m;return(0,Hu.isPromise)(p)?m=p.then(y=>H2(e,a,r,n,f,y)):m=H2(e,a,r,n,f,p),(0,Hu.isPromise)(m)?(s=!0,m.then(void 0,y=>{let g=(0,N4.locatedError)(y,r,(0,iS.pathToArray)(f));return R4(g,a,f,e)})):m}catch(m){let y=(0,N4.locatedError)(m,r,(0,iS.pathToArray)(f));return R4(y,a,f,e)}});return s?Promise.all(c):c}function Wft(e,t){let r=e.serialize(t);if(r==null)throw new Error(`Expected \`${(0,oS.inspect)(e)}.serialize(${(0,oS.inspect)(t)})\` to return non-nullable value, returned: ${(0,oS.inspect)(r)}`);return r}function Qft(e,t,r,n,o,i){var a;let s=(a=t.resolveType)!==null&&a!==void 0?a:e.typeResolver,c=e.contextValue,p=s(i,c,n,t);return(0,Hu.isPromise)(p)?p.then(d=>_H(e,Z0e(d,e,t,r,n,i),r,n,o,i)):_H(e,Z0e(p,e,t,r,n,i),r,n,o,i)}function Z0e(e,t,r,n,o,i){if(e==null)throw new Jl.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n);if((0,Ah.isObjectType)(e))throw new Jl.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new Jl.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with value ${(0,oS.inspect)(i)}, received "${(0,oS.inspect)(e)}".`);let a=t.schema.getType(e);if(a==null)throw new Jl.GraphQLError(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n});if(!(0,Ah.isObjectType)(a))throw new Jl.GraphQLError(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:n});if(!t.schema.isSubType(r,a))throw new Jl.GraphQLError(`Runtime Object type "${a.name}" is not a possible type for "${r.name}".`,{nodes:n});return a}function _H(e,t,r,n,o,i){let a=Jft(e,t,r);if(t.isTypeOf){let s=t.isTypeOf(i,e.contextValue,n);if((0,Hu.isPromise)(s))return s.then(c=>{if(!c)throw W0e(t,i,r);return F4(e,t,i,o,a)});if(!s)throw W0e(t,i,r)}return F4(e,t,i,o,a)}function W0e(e,t,r){return new Jl.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,oS.inspect)(t)}.`,{nodes:r})}var ove=function(e,t,r,n){if((0,mH.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let o=r.schema.getPossibleTypes(n),i=[];for(let a=0;a{}),s.name}}if(i.length)return Promise.all(i).then(a=>{for(let s=0;s{"use strict";Object.defineProperty(L4,"__esModule",{value:!0});L4.graphql=omt;L4.graphqlSync=imt;var Xft=Ls(),Yft=CO(),emt=Kg(),tmt=L2(),rmt=G2(),nmt=Z2();function omt(e){return new Promise(t=>t(ave(e)))}function imt(e){let t=ave(e);if((0,Yft.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function ave(e){arguments.length<2||(0,Xft.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:r,rootValue:n,contextValue:o,variableValues:i,operationName:a,fieldResolver:s,typeResolver:c}=e,p=(0,tmt.validateSchema)(t);if(p.length>0)return{errors:p};let d;try{d=(0,emt.parse)(r)}catch(m){return{errors:[m]}}let f=(0,rmt.validate)(t,d);return f.length>0?{errors:f}:(0,nmt.execute)({schema:t,document:d,rootValue:n,contextValue:o,variableValues:i,operationName:a,fieldResolver:s,typeResolver:c})}});var uve=L(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Object.defineProperty(Ze,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Zu.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(Ze,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return pf.GRAPHQL_MAX_INT}});Object.defineProperty(Ze,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return pf.GRAPHQL_MIN_INT}});Object.defineProperty(Ze,"GraphQLBoolean",{enumerable:!0,get:function(){return pf.GraphQLBoolean}});Object.defineProperty(Ze,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Zu.GraphQLDeprecatedDirective}});Object.defineProperty(Ze,"GraphQLDirective",{enumerable:!0,get:function(){return Zu.GraphQLDirective}});Object.defineProperty(Ze,"GraphQLEnumType",{enumerable:!0,get:function(){return Er.GraphQLEnumType}});Object.defineProperty(Ze,"GraphQLFloat",{enumerable:!0,get:function(){return pf.GraphQLFloat}});Object.defineProperty(Ze,"GraphQLID",{enumerable:!0,get:function(){return pf.GraphQLID}});Object.defineProperty(Ze,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Zu.GraphQLIncludeDirective}});Object.defineProperty(Ze,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Er.GraphQLInputObjectType}});Object.defineProperty(Ze,"GraphQLInt",{enumerable:!0,get:function(){return pf.GraphQLInt}});Object.defineProperty(Ze,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Er.GraphQLInterfaceType}});Object.defineProperty(Ze,"GraphQLList",{enumerable:!0,get:function(){return Er.GraphQLList}});Object.defineProperty(Ze,"GraphQLNonNull",{enumerable:!0,get:function(){return Er.GraphQLNonNull}});Object.defineProperty(Ze,"GraphQLObjectType",{enumerable:!0,get:function(){return Er.GraphQLObjectType}});Object.defineProperty(Ze,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Zu.GraphQLOneOfDirective}});Object.defineProperty(Ze,"GraphQLScalarType",{enumerable:!0,get:function(){return Er.GraphQLScalarType}});Object.defineProperty(Ze,"GraphQLSchema",{enumerable:!0,get:function(){return hH.GraphQLSchema}});Object.defineProperty(Ze,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Zu.GraphQLSkipDirective}});Object.defineProperty(Ze,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Zu.GraphQLSpecifiedByDirective}});Object.defineProperty(Ze,"GraphQLString",{enumerable:!0,get:function(){return pf.GraphQLString}});Object.defineProperty(Ze,"GraphQLUnionType",{enumerable:!0,get:function(){return Er.GraphQLUnionType}});Object.defineProperty(Ze,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return _c.SchemaMetaFieldDef}});Object.defineProperty(Ze,"TypeKind",{enumerable:!0,get:function(){return _c.TypeKind}});Object.defineProperty(Ze,"TypeMetaFieldDef",{enumerable:!0,get:function(){return _c.TypeMetaFieldDef}});Object.defineProperty(Ze,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return _c.TypeNameMetaFieldDef}});Object.defineProperty(Ze,"__Directive",{enumerable:!0,get:function(){return _c.__Directive}});Object.defineProperty(Ze,"__DirectiveLocation",{enumerable:!0,get:function(){return _c.__DirectiveLocation}});Object.defineProperty(Ze,"__EnumValue",{enumerable:!0,get:function(){return _c.__EnumValue}});Object.defineProperty(Ze,"__Field",{enumerable:!0,get:function(){return _c.__Field}});Object.defineProperty(Ze,"__InputValue",{enumerable:!0,get:function(){return _c.__InputValue}});Object.defineProperty(Ze,"__Schema",{enumerable:!0,get:function(){return _c.__Schema}});Object.defineProperty(Ze,"__Type",{enumerable:!0,get:function(){return _c.__Type}});Object.defineProperty(Ze,"__TypeKind",{enumerable:!0,get:function(){return _c.__TypeKind}});Object.defineProperty(Ze,"assertAbstractType",{enumerable:!0,get:function(){return Er.assertAbstractType}});Object.defineProperty(Ze,"assertCompositeType",{enumerable:!0,get:function(){return Er.assertCompositeType}});Object.defineProperty(Ze,"assertDirective",{enumerable:!0,get:function(){return Zu.assertDirective}});Object.defineProperty(Ze,"assertEnumType",{enumerable:!0,get:function(){return Er.assertEnumType}});Object.defineProperty(Ze,"assertEnumValueName",{enumerable:!0,get:function(){return lve.assertEnumValueName}});Object.defineProperty(Ze,"assertInputObjectType",{enumerable:!0,get:function(){return Er.assertInputObjectType}});Object.defineProperty(Ze,"assertInputType",{enumerable:!0,get:function(){return Er.assertInputType}});Object.defineProperty(Ze,"assertInterfaceType",{enumerable:!0,get:function(){return Er.assertInterfaceType}});Object.defineProperty(Ze,"assertLeafType",{enumerable:!0,get:function(){return Er.assertLeafType}});Object.defineProperty(Ze,"assertListType",{enumerable:!0,get:function(){return Er.assertListType}});Object.defineProperty(Ze,"assertName",{enumerable:!0,get:function(){return lve.assertName}});Object.defineProperty(Ze,"assertNamedType",{enumerable:!0,get:function(){return Er.assertNamedType}});Object.defineProperty(Ze,"assertNonNullType",{enumerable:!0,get:function(){return Er.assertNonNullType}});Object.defineProperty(Ze,"assertNullableType",{enumerable:!0,get:function(){return Er.assertNullableType}});Object.defineProperty(Ze,"assertObjectType",{enumerable:!0,get:function(){return Er.assertObjectType}});Object.defineProperty(Ze,"assertOutputType",{enumerable:!0,get:function(){return Er.assertOutputType}});Object.defineProperty(Ze,"assertScalarType",{enumerable:!0,get:function(){return Er.assertScalarType}});Object.defineProperty(Ze,"assertSchema",{enumerable:!0,get:function(){return hH.assertSchema}});Object.defineProperty(Ze,"assertType",{enumerable:!0,get:function(){return Er.assertType}});Object.defineProperty(Ze,"assertUnionType",{enumerable:!0,get:function(){return Er.assertUnionType}});Object.defineProperty(Ze,"assertValidSchema",{enumerable:!0,get:function(){return cve.assertValidSchema}});Object.defineProperty(Ze,"assertWrappingType",{enumerable:!0,get:function(){return Er.assertWrappingType}});Object.defineProperty(Ze,"getNamedType",{enumerable:!0,get:function(){return Er.getNamedType}});Object.defineProperty(Ze,"getNullableType",{enumerable:!0,get:function(){return Er.getNullableType}});Object.defineProperty(Ze,"introspectionTypes",{enumerable:!0,get:function(){return _c.introspectionTypes}});Object.defineProperty(Ze,"isAbstractType",{enumerable:!0,get:function(){return Er.isAbstractType}});Object.defineProperty(Ze,"isCompositeType",{enumerable:!0,get:function(){return Er.isCompositeType}});Object.defineProperty(Ze,"isDirective",{enumerable:!0,get:function(){return Zu.isDirective}});Object.defineProperty(Ze,"isEnumType",{enumerable:!0,get:function(){return Er.isEnumType}});Object.defineProperty(Ze,"isInputObjectType",{enumerable:!0,get:function(){return Er.isInputObjectType}});Object.defineProperty(Ze,"isInputType",{enumerable:!0,get:function(){return Er.isInputType}});Object.defineProperty(Ze,"isInterfaceType",{enumerable:!0,get:function(){return Er.isInterfaceType}});Object.defineProperty(Ze,"isIntrospectionType",{enumerable:!0,get:function(){return _c.isIntrospectionType}});Object.defineProperty(Ze,"isLeafType",{enumerable:!0,get:function(){return Er.isLeafType}});Object.defineProperty(Ze,"isListType",{enumerable:!0,get:function(){return Er.isListType}});Object.defineProperty(Ze,"isNamedType",{enumerable:!0,get:function(){return Er.isNamedType}});Object.defineProperty(Ze,"isNonNullType",{enumerable:!0,get:function(){return Er.isNonNullType}});Object.defineProperty(Ze,"isNullableType",{enumerable:!0,get:function(){return Er.isNullableType}});Object.defineProperty(Ze,"isObjectType",{enumerable:!0,get:function(){return Er.isObjectType}});Object.defineProperty(Ze,"isOutputType",{enumerable:!0,get:function(){return Er.isOutputType}});Object.defineProperty(Ze,"isRequiredArgument",{enumerable:!0,get:function(){return Er.isRequiredArgument}});Object.defineProperty(Ze,"isRequiredInputField",{enumerable:!0,get:function(){return Er.isRequiredInputField}});Object.defineProperty(Ze,"isScalarType",{enumerable:!0,get:function(){return Er.isScalarType}});Object.defineProperty(Ze,"isSchema",{enumerable:!0,get:function(){return hH.isSchema}});Object.defineProperty(Ze,"isSpecifiedDirective",{enumerable:!0,get:function(){return Zu.isSpecifiedDirective}});Object.defineProperty(Ze,"isSpecifiedScalarType",{enumerable:!0,get:function(){return pf.isSpecifiedScalarType}});Object.defineProperty(Ze,"isType",{enumerable:!0,get:function(){return Er.isType}});Object.defineProperty(Ze,"isUnionType",{enumerable:!0,get:function(){return Er.isUnionType}});Object.defineProperty(Ze,"isWrappingType",{enumerable:!0,get:function(){return Er.isWrappingType}});Object.defineProperty(Ze,"resolveObjMapThunk",{enumerable:!0,get:function(){return Er.resolveObjMapThunk}});Object.defineProperty(Ze,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return Er.resolveReadonlyArrayThunk}});Object.defineProperty(Ze,"specifiedDirectives",{enumerable:!0,get:function(){return Zu.specifiedDirectives}});Object.defineProperty(Ze,"specifiedScalarTypes",{enumerable:!0,get:function(){return pf.specifiedScalarTypes}});Object.defineProperty(Ze,"validateSchema",{enumerable:!0,get:function(){return cve.validateSchema}});var hH=Yg(),Er=vn(),Zu=pc(),pf=Sd(),_c=Vl(),cve=L2(),lve=b2()});var dve=L(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Object.defineProperty(Cn,"BREAK",{enumerable:!0,get:function(){return Q2.BREAK}});Object.defineProperty(Cn,"DirectiveLocation",{enumerable:!0,get:function(){return dmt.DirectiveLocation}});Object.defineProperty(Cn,"Kind",{enumerable:!0,get:function(){return cmt.Kind}});Object.defineProperty(Cn,"Lexer",{enumerable:!0,get:function(){return umt.Lexer}});Object.defineProperty(Cn,"Location",{enumerable:!0,get:function(){return yH.Location}});Object.defineProperty(Cn,"OperationTypeNode",{enumerable:!0,get:function(){return yH.OperationTypeNode}});Object.defineProperty(Cn,"Source",{enumerable:!0,get:function(){return amt.Source}});Object.defineProperty(Cn,"Token",{enumerable:!0,get:function(){return yH.Token}});Object.defineProperty(Cn,"TokenKind",{enumerable:!0,get:function(){return lmt.TokenKind}});Object.defineProperty(Cn,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Q2.getEnterLeaveForKind}});Object.defineProperty(Cn,"getLocation",{enumerable:!0,get:function(){return smt.getLocation}});Object.defineProperty(Cn,"getVisitFn",{enumerable:!0,get:function(){return Q2.getVisitFn}});Object.defineProperty(Cn,"isConstValueNode",{enumerable:!0,get:function(){return Wu.isConstValueNode}});Object.defineProperty(Cn,"isDefinitionNode",{enumerable:!0,get:function(){return Wu.isDefinitionNode}});Object.defineProperty(Cn,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Wu.isExecutableDefinitionNode}});Object.defineProperty(Cn,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return Wu.isSchemaCoordinateNode}});Object.defineProperty(Cn,"isSelectionNode",{enumerable:!0,get:function(){return Wu.isSelectionNode}});Object.defineProperty(Cn,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Wu.isTypeDefinitionNode}});Object.defineProperty(Cn,"isTypeExtensionNode",{enumerable:!0,get:function(){return Wu.isTypeExtensionNode}});Object.defineProperty(Cn,"isTypeNode",{enumerable:!0,get:function(){return Wu.isTypeNode}});Object.defineProperty(Cn,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Wu.isTypeSystemDefinitionNode}});Object.defineProperty(Cn,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Wu.isTypeSystemExtensionNode}});Object.defineProperty(Cn,"isValueNode",{enumerable:!0,get:function(){return Wu.isValueNode}});Object.defineProperty(Cn,"parse",{enumerable:!0,get:function(){return W2.parse}});Object.defineProperty(Cn,"parseConstValue",{enumerable:!0,get:function(){return W2.parseConstValue}});Object.defineProperty(Cn,"parseSchemaCoordinate",{enumerable:!0,get:function(){return W2.parseSchemaCoordinate}});Object.defineProperty(Cn,"parseType",{enumerable:!0,get:function(){return W2.parseType}});Object.defineProperty(Cn,"parseValue",{enumerable:!0,get:function(){return W2.parseValue}});Object.defineProperty(Cn,"print",{enumerable:!0,get:function(){return pmt.print}});Object.defineProperty(Cn,"printLocation",{enumerable:!0,get:function(){return pve.printLocation}});Object.defineProperty(Cn,"printSourceLocation",{enumerable:!0,get:function(){return pve.printSourceLocation}});Object.defineProperty(Cn,"visit",{enumerable:!0,get:function(){return Q2.visit}});Object.defineProperty(Cn,"visitInParallel",{enumerable:!0,get:function(){return Q2.visitInParallel}});var amt=MO(),smt=PO(),pve=uJ(),cmt=Sn(),lmt=w1(),umt=m2(),W2=Kg(),pmt=Gc(),Q2=Gg(),yH=Bl(),Wu=tS(),dmt=A1()});var _ve=L(gH=>{"use strict";Object.defineProperty(gH,"__esModule",{value:!0});gH.isAsyncIterable=_mt;function _mt(e){return typeof e?.[Symbol.asyncIterator]=="function"}});var fve=L(SH=>{"use strict";Object.defineProperty(SH,"__esModule",{value:!0});SH.mapAsyncIterator=fmt;function fmt(e,t){let r=e[Symbol.asyncIterator]();async function n(o){if(o.done)return o;try{return{value:await t(o.value),done:!1}}catch(i){if(typeof r.return=="function")try{await r.return()}catch{}throw i}}return{async next(){return n(await r.next())},async return(){return typeof r.return=="function"?n(await r.return()):{value:void 0,done:!0}},async throw(o){if(typeof r.throw=="function")return n(await r.throw(o));throw o},[Symbol.asyncIterator](){return this}}}});var gve=L($4=>{"use strict";Object.defineProperty($4,"__esModule",{value:!0});$4.createSourceEventStream=yve;$4.subscribe=bmt;var mmt=Ls(),hmt=eo(),hve=_ve(),mve=j2(),vH=ar(),ymt=P4(),gmt=A4(),X2=Z2(),Smt=fve(),vmt=M1();async function bmt(e){arguments.length<2||(0,mmt.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let t=await yve(e);if(!(0,hve.isAsyncIterable)(t))return t;let r=n=>(0,X2.execute)({...e,rootValue:n});return(0,Smt.mapAsyncIterator)(t,r)}function xmt(e){let t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function yve(...e){let t=xmt(e),{schema:r,document:n,variableValues:o}=t;(0,X2.assertValidExecutionArguments)(r,n,o);let i=(0,X2.buildExecutionContext)(t);if(!("schema"in i))return{errors:i};try{let a=await Emt(i);if(!(0,hve.isAsyncIterable)(a))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,hmt.inspect)(a)}.`);return a}catch(a){if(a instanceof vH.GraphQLError)return{errors:[a]};throw a}}async function Emt(e){let{schema:t,fragments:r,operation:n,variableValues:o,rootValue:i}=e,a=t.getSubscriptionType();if(a==null)throw new vH.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:n});let s=(0,gmt.collectFields)(t,r,o,a,n.selectionSet),[c,p]=[...s.entries()][0],d=(0,X2.getFieldDef)(t,a,p[0]);if(!d){let g=p[0].name.value;throw new vH.GraphQLError(`The subscription field "${g}" is not defined.`,{nodes:p})}let f=(0,mve.addPath)(void 0,c,a.name),m=(0,X2.buildResolveInfo)(e,d,p,a,f);try{var y;let g=(0,vmt.getArgumentValues)(d,p[0],o),S=e.contextValue,A=await((y=d.subscribe)!==null&&y!==void 0?y:e.subscribeFieldResolver)(i,g,S,m);if(A instanceof Error)throw A;return A}catch(g){throw(0,ymt.locatedError)(g,p,(0,mve.pathToArray)(f))}}});var vve=L(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Object.defineProperty(Gl,"createSourceEventStream",{enumerable:!0,get:function(){return Sve.createSourceEventStream}});Object.defineProperty(Gl,"defaultFieldResolver",{enumerable:!0,get:function(){return M4.defaultFieldResolver}});Object.defineProperty(Gl,"defaultTypeResolver",{enumerable:!0,get:function(){return M4.defaultTypeResolver}});Object.defineProperty(Gl,"execute",{enumerable:!0,get:function(){return M4.execute}});Object.defineProperty(Gl,"executeSync",{enumerable:!0,get:function(){return M4.executeSync}});Object.defineProperty(Gl,"getArgumentValues",{enumerable:!0,get:function(){return bH.getArgumentValues}});Object.defineProperty(Gl,"getDirectiveValues",{enumerable:!0,get:function(){return bH.getDirectiveValues}});Object.defineProperty(Gl,"getVariableValues",{enumerable:!0,get:function(){return bH.getVariableValues}});Object.defineProperty(Gl,"responsePathAsArray",{enumerable:!0,get:function(){return Tmt.pathToArray}});Object.defineProperty(Gl,"subscribe",{enumerable:!0,get:function(){return Sve.subscribe}});var Tmt=j2(),M4=Z2(),Sve=gve(),bH=M1()});var bve=L(TH=>{"use strict";Object.defineProperty(TH,"__esModule",{value:!0});TH.NoDeprecatedCustomRule=Dmt;var xH=us(),Y2=ar(),EH=vn();function Dmt(e){return{Field(t){let r=e.getFieldDef(),n=r?.deprecationReason;if(r&&n!=null){let o=e.getParentType();o!=null||(0,xH.invariant)(!1),e.reportError(new Y2.GraphQLError(`The field ${o.name}.${r.name} is deprecated. ${n}`,{nodes:t}))}},Argument(t){let r=e.getArgument(),n=r?.deprecationReason;if(r&&n!=null){let o=e.getDirective();if(o!=null)e.reportError(new Y2.GraphQLError(`Directive "@${o.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:t}));else{let i=e.getParentType(),a=e.getFieldDef();i!=null&&a!=null||(0,xH.invariant)(!1),e.reportError(new Y2.GraphQLError(`Field "${i.name}.${a.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:t}))}}},ObjectField(t){let r=(0,EH.getNamedType)(e.getParentInputType());if((0,EH.isInputObjectType)(r)){let n=r.getFields()[t.name.value],o=n?.deprecationReason;o!=null&&e.reportError(new Y2.GraphQLError(`The input field ${r.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}},EnumValue(t){let r=e.getEnumValue(),n=r?.deprecationReason;if(r&&n!=null){let o=(0,EH.getNamedType)(e.getInputType());o!=null||(0,xH.invariant)(!1),e.reportError(new Y2.GraphQLError(`The enum value "${o.name}.${r.name}" is deprecated. ${n}`,{nodes:t}))}}}}});var xve=L(DH=>{"use strict";Object.defineProperty(DH,"__esModule",{value:!0});DH.NoSchemaIntrospectionCustomRule=kmt;var Amt=ar(),wmt=vn(),Imt=Vl();function kmt(e){return{Field(t){let r=(0,wmt.getNamedType)(e.getType());r&&(0,Imt.isIntrospectionType)(r)&&e.reportError(new Amt.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var Tve=L(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Object.defineProperty(Rr,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return Omt.ExecutableDefinitionsRule}});Object.defineProperty(Rr,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return Nmt.FieldsOnCorrectTypeRule}});Object.defineProperty(Rr,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return Fmt.FragmentsOnCompositeTypesRule}});Object.defineProperty(Rr,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return Rmt.KnownArgumentNamesRule}});Object.defineProperty(Rr,"KnownDirectivesRule",{enumerable:!0,get:function(){return Lmt.KnownDirectivesRule}});Object.defineProperty(Rr,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return $mt.KnownFragmentNamesRule}});Object.defineProperty(Rr,"KnownTypeNamesRule",{enumerable:!0,get:function(){return Mmt.KnownTypeNamesRule}});Object.defineProperty(Rr,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return jmt.LoneAnonymousOperationRule}});Object.defineProperty(Rr,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return iht.LoneSchemaDefinitionRule}});Object.defineProperty(Rr,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return oht.MaxIntrospectionDepthRule}});Object.defineProperty(Rr,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return _ht.NoDeprecatedCustomRule}});Object.defineProperty(Rr,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return Bmt.NoFragmentCyclesRule}});Object.defineProperty(Rr,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return fht.NoSchemaIntrospectionCustomRule}});Object.defineProperty(Rr,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return qmt.NoUndefinedVariablesRule}});Object.defineProperty(Rr,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return Umt.NoUnusedFragmentsRule}});Object.defineProperty(Rr,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return zmt.NoUnusedVariablesRule}});Object.defineProperty(Rr,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return Vmt.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Rr,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return Jmt.PossibleFragmentSpreadsRule}});Object.defineProperty(Rr,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return dht.PossibleTypeExtensionsRule}});Object.defineProperty(Rr,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return Kmt.ProvidedRequiredArgumentsRule}});Object.defineProperty(Rr,"ScalarLeafsRule",{enumerable:!0,get:function(){return Gmt.ScalarLeafsRule}});Object.defineProperty(Rr,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return Hmt.SingleFieldSubscriptionsRule}});Object.defineProperty(Rr,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return uht.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(Rr,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return Zmt.UniqueArgumentNamesRule}});Object.defineProperty(Rr,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return pht.UniqueDirectiveNamesRule}});Object.defineProperty(Rr,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return Wmt.UniqueDirectivesPerLocationRule}});Object.defineProperty(Rr,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return cht.UniqueEnumValueNamesRule}});Object.defineProperty(Rr,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return lht.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Rr,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return Qmt.UniqueFragmentNamesRule}});Object.defineProperty(Rr,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return Xmt.UniqueInputFieldNamesRule}});Object.defineProperty(Rr,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return Ymt.UniqueOperationNamesRule}});Object.defineProperty(Rr,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return aht.UniqueOperationTypesRule}});Object.defineProperty(Rr,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return sht.UniqueTypeNamesRule}});Object.defineProperty(Rr,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return eht.UniqueVariableNamesRule}});Object.defineProperty(Rr,"ValidationContext",{enumerable:!0,get:function(){return Pmt.ValidationContext}});Object.defineProperty(Rr,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return tht.ValuesOfCorrectTypeRule}});Object.defineProperty(Rr,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return rht.VariablesAreInputTypesRule}});Object.defineProperty(Rr,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return nht.VariablesInAllowedPositionRule}});Object.defineProperty(Rr,"recommendedRules",{enumerable:!0,get:function(){return Eve.recommendedRules}});Object.defineProperty(Rr,"specifiedRules",{enumerable:!0,get:function(){return Eve.specifiedRules}});Object.defineProperty(Rr,"validate",{enumerable:!0,get:function(){return Cmt.validate}});var Cmt=G2(),Pmt=rH(),Eve=YG(),Omt=mK(),Nmt=yK(),Fmt=SK(),Rmt=vK(),Lmt=TK(),$mt=AK(),Mmt=kK(),jmt=PK(),Bmt=$K(),qmt=jK(),Umt=qK(),zmt=zK(),Vmt=YK(),Jmt=rG(),Kmt=aG(),Gmt=uG(),Hmt=SG(),Zmt=TG(),Wmt=kG(),Qmt=LG(),Xmt=MG(),Ymt=BG(),eht=KG(),tht=HG(),rht=WG(),nht=XG(),oht=RK(),iht=NK(),aht=UG(),sht=VG(),cht=PG(),lht=FG(),uht=xG(),pht=AG(),dht=oG(),_ht=bve(),fht=xve()});var Dve=L(aS=>{"use strict";Object.defineProperty(aS,"__esModule",{value:!0});Object.defineProperty(aS,"GraphQLError",{enumerable:!0,get:function(){return AH.GraphQLError}});Object.defineProperty(aS,"formatError",{enumerable:!0,get:function(){return AH.formatError}});Object.defineProperty(aS,"locatedError",{enumerable:!0,get:function(){return hht.locatedError}});Object.defineProperty(aS,"printError",{enumerable:!0,get:function(){return AH.printError}});Object.defineProperty(aS,"syntaxError",{enumerable:!0,get:function(){return mht.syntaxError}});var AH=ar(),mht=s2(),hht=P4()});var IH=L(wH=>{"use strict";Object.defineProperty(wH,"__esModule",{value:!0});wH.getIntrospectionQuery=yht;function yht(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},r=t.descriptions?"description":"",n=t.specifiedByUrl?"specifiedByURL":"",o=t.directiveIsRepeatable?"isRepeatable":"",i=t.schemaDescription?r:"";function a(c){return t.inputValueDeprecation?c:""}let s=t.oneOf?"isOneOf":"";return` query IntrospectionQuery { __schema { - ${d} + ${i} queryType { name kind } mutationType { name kind } subscriptionType { name kind } @@ -79,10 +80,10 @@ In some cases, you need to provide options to alter GraphQL's execution behavior } directives { name - ${i} - ${l} + ${r} + ${o} locations - args${h("(includeDeprecated: true)")} { + args${a("(includeDeprecated: true)")} { ...InputValue } } @@ -92,13 +93,13 @@ In some cases, you need to provide options to alter GraphQL's execution behavior fragment FullType on __Type { kind name - ${i} + ${r} + ${n} ${s} - ${S} fields(includeDeprecated: true) { name - ${i} - args${h("(includeDeprecated: true)")} { + ${r} + args${a("(includeDeprecated: true)")} { ...InputValue } type { @@ -107,7 +108,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior isDeprecated deprecationReason } - inputFields${h("(includeDeprecated: true)")} { + inputFields${a("(includeDeprecated: true)")} { ...InputValue } interfaces { @@ -115,7 +116,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior } enumValues(includeDeprecated: true) { name - ${i} + ${r} isDeprecated deprecationReason } @@ -126,11 +127,11 @@ In some cases, you need to provide options to alter GraphQL's execution behavior fragment InputValue on __InputValue { name - ${i} + ${r} type { ...TypeRef } defaultValue - ${h("isDeprecated")} - ${h("deprecationReason")} + ${a("isDeprecated")} + ${a("deprecationReason")} } fragment TypeRef on __Type { @@ -173,800 +174,339 @@ In some cases, you need to provide options to alter GraphQL's execution behavior } } } - `}});var jVt=dr(Wnt=>{"use strict";Object.defineProperty(Wnt,"__esModule",{value:!0});Wnt.getOperationAST=Y1n;var X1n=Md();function Y1n(e,r){let i=null;for(let l of e.definitions)if(l.kind===X1n.Kind.OPERATION_DEFINITION){var s;if(r==null){if(i)return null;i=l}else if(((s=l.name)===null||s===void 0?void 0:s.value)===r)return l}return i}});var BVt=dr(Gnt=>{"use strict";Object.defineProperty(Gnt,"__esModule",{value:!0});Gnt.getOperationRootType=evn;var qAe=Cu();function evn(e,r){if(r.operation==="query"){let i=e.getQueryType();if(!i)throw new qAe.GraphQLError("Schema does not define the required query root type.",{nodes:r});return i}if(r.operation==="mutation"){let i=e.getMutationType();if(!i)throw new qAe.GraphQLError("Schema is not configured for mutations.",{nodes:r});return i}if(r.operation==="subscription"){let i=e.getSubscriptionType();if(!i)throw new qAe.GraphQLError("Schema is not configured for subscriptions.",{nodes:r});return i}throw new qAe.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:r})}});var $Vt=dr(Hnt=>{"use strict";Object.defineProperty(Hnt,"__esModule",{value:!0});Hnt.introspectionFromSchema=ovn;var tvn=kT(),rvn=BV(),nvn=dde(),ivn=Vnt();function ovn(e,r){let i={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...r},s=(0,rvn.parse)((0,ivn.getIntrospectionQuery)(i)),l=(0,nvn.executeSync)({schema:e,document:s});return!l.errors&&l.data||(0,tvn.invariant)(!1),l.data}});var zVt=dr(Knt=>{"use strict";Object.defineProperty(Knt,"__esModule",{value:!0});Knt.buildClientSchema=_vn;var avn=J2(),LD=gm(),UVt=C8(),JAe=M_e(),svn=BV(),MD=jd(),cvn=kk(),N8=uI(),lvn=w8(),uvn=WV(),pvn=sde();function _vn(e,r){(0,UVt.isObjectLike)(e)&&(0,UVt.isObjectLike)(e.__schema)||(0,avn.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,LD.inspect)(e)}.`);let i=e.__schema,s=(0,JAe.keyValMap)(i.types,hr=>hr.name,hr=>j(hr));for(let hr of[...lvn.specifiedScalarTypes,...N8.introspectionTypes])s[hr.name]&&(s[hr.name]=hr);let l=i.queryType?L(i.queryType):null,d=i.mutationType?L(i.mutationType):null,h=i.subscriptionType?L(i.subscriptionType):null,S=i.directives?i.directives.map(Ut):[];return new uvn.GraphQLSchema({description:i.description,query:l,mutation:d,subscription:h,types:Object.values(s),directives:S,assumeValid:r?.assumeValid});function b(hr){if(hr.kind===N8.TypeKind.LIST){let Hi=hr.ofType;if(!Hi)throw new Error("Decorated type deeper than introspection query.");return new MD.GraphQLList(b(Hi))}if(hr.kind===N8.TypeKind.NON_NULL){let Hi=hr.ofType;if(!Hi)throw new Error("Decorated type deeper than introspection query.");let un=b(Hi);return new MD.GraphQLNonNull((0,MD.assertNullableType)(un))}return A(hr)}function A(hr){let Hi=hr.name;if(!Hi)throw new Error(`Unknown type reference: ${(0,LD.inspect)(hr)}.`);let un=s[Hi];if(!un)throw new Error(`Invalid or incomplete schema, unknown type: ${Hi}. Ensure that a full introspection query is used in order to build a client schema.`);return un}function L(hr){return(0,MD.assertObjectType)(A(hr))}function V(hr){return(0,MD.assertInterfaceType)(A(hr))}function j(hr){if(hr!=null&&hr.name!=null&&hr.kind!=null)switch(hr.kind){case N8.TypeKind.SCALAR:return ie(hr);case N8.TypeKind.OBJECT:return X(hr);case N8.TypeKind.INTERFACE:return Re(hr);case N8.TypeKind.UNION:return Je(hr);case N8.TypeKind.ENUM:return pt(hr);case N8.TypeKind.INPUT_OBJECT:return $e(hr)}let Hi=(0,LD.inspect)(hr);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${Hi}.`)}function ie(hr){return new MD.GraphQLScalarType({name:hr.name,description:hr.description,specifiedByURL:hr.specifiedByURL})}function te(hr){if(hr.interfaces===null&&hr.kind===N8.TypeKind.INTERFACE)return[];if(!hr.interfaces){let Hi=(0,LD.inspect)(hr);throw new Error(`Introspection result missing interfaces: ${Hi}.`)}return hr.interfaces.map(V)}function X(hr){return new MD.GraphQLObjectType({name:hr.name,description:hr.description,interfaces:()=>te(hr),fields:()=>xt(hr)})}function Re(hr){return new MD.GraphQLInterfaceType({name:hr.name,description:hr.description,interfaces:()=>te(hr),fields:()=>xt(hr)})}function Je(hr){if(!hr.possibleTypes){let Hi=(0,LD.inspect)(hr);throw new Error(`Introspection result missing possibleTypes: ${Hi}.`)}return new MD.GraphQLUnionType({name:hr.name,description:hr.description,types:()=>hr.possibleTypes.map(L)})}function pt(hr){if(!hr.enumValues){let Hi=(0,LD.inspect)(hr);throw new Error(`Introspection result missing enumValues: ${Hi}.`)}return new MD.GraphQLEnumType({name:hr.name,description:hr.description,values:(0,JAe.keyValMap)(hr.enumValues,Hi=>Hi.name,Hi=>({description:Hi.description,deprecationReason:Hi.deprecationReason}))})}function $e(hr){if(!hr.inputFields){let Hi=(0,LD.inspect)(hr);throw new Error(`Introspection result missing inputFields: ${Hi}.`)}return new MD.GraphQLInputObjectType({name:hr.name,description:hr.description,fields:()=>ht(hr.inputFields),isOneOf:hr.isOneOf})}function xt(hr){if(!hr.fields)throw new Error(`Introspection result missing fields: ${(0,LD.inspect)(hr)}.`);return(0,JAe.keyValMap)(hr.fields,Hi=>Hi.name,tr)}function tr(hr){let Hi=b(hr.type);if(!(0,MD.isOutputType)(Hi)){let un=(0,LD.inspect)(Hi);throw new Error(`Introspection must provide output type for fields, but received: ${un}.`)}if(!hr.args){let un=(0,LD.inspect)(hr);throw new Error(`Introspection result missing field args: ${un}.`)}return{description:hr.description,deprecationReason:hr.deprecationReason,type:Hi,args:ht(hr.args)}}function ht(hr){return(0,JAe.keyValMap)(hr,Hi=>Hi.name,wt)}function wt(hr){let Hi=b(hr.type);if(!(0,MD.isInputType)(Hi)){let xo=(0,LD.inspect)(Hi);throw new Error(`Introspection must provide input type for arguments, but received: ${xo}.`)}let un=hr.defaultValue!=null?(0,pvn.valueFromAST)((0,svn.parseValue)(hr.defaultValue),Hi):void 0;return{description:hr.description,type:Hi,defaultValue:un,deprecationReason:hr.deprecationReason}}function Ut(hr){if(!hr.args){let Hi=(0,LD.inspect)(hr);throw new Error(`Introspection result missing directive args: ${Hi}.`)}if(!hr.locations){let Hi=(0,LD.inspect)(hr);throw new Error(`Introspection result missing directive locations: ${Hi}.`)}return new cvn.GraphQLDirective({name:hr.name,description:hr.description,isRepeatable:hr.isRepeatable,locations:hr.locations.slice(),args:ht(hr.args)})}}});var Znt=dr(WAe=>{"use strict";Object.defineProperty(WAe,"__esModule",{value:!0});WAe.extendSchema=yvn;WAe.extendSchemaImpl=QVt;var dvn=J2(),fvn=gm(),mvn=kT(),hvn=PB(),yde=VDe(),fI=Md(),qVt=HV(),Dy=jd(),vde=kk(),HVt=uI(),KVt=w8(),JVt=WV(),gvn=pde(),Qnt=Iee(),VVt=sde();function yvn(e,r,i){(0,JVt.assertSchema)(e),r!=null&&r.kind===fI.Kind.DOCUMENT||(0,dvn.devAssert)(!1,"Must provide valid Document AST."),i?.assumeValid!==!0&&i?.assumeValidSDL!==!0&&(0,gvn.assertValidSDLExtension)(r,e);let s=e.toConfig(),l=QVt(s,r,i);return s===l?e:new JVt.GraphQLSchema(l)}function QVt(e,r,i){var s,l,d,h;let S=[],b=Object.create(null),A=[],L,V=[];for(let Xr of r.definitions)if(Xr.kind===fI.Kind.SCHEMA_DEFINITION)L=Xr;else if(Xr.kind===fI.Kind.SCHEMA_EXTENSION)V.push(Xr);else if((0,qVt.isTypeDefinitionNode)(Xr))S.push(Xr);else if((0,qVt.isTypeExtensionNode)(Xr)){let li=Xr.name.value,Wi=b[li];b[li]=Wi?Wi.concat([Xr]):[Xr]}else Xr.kind===fI.Kind.DIRECTIVE_DEFINITION&&A.push(Xr);if(Object.keys(b).length===0&&S.length===0&&A.length===0&&V.length===0&&L==null)return e;let j=Object.create(null);for(let Xr of e.types)j[Xr.name]=pt(Xr);for(let Xr of S){var ie;let li=Xr.name.value;j[li]=(ie=WVt[li])!==null&&ie!==void 0?ie:an(Xr)}let te={query:e.query&&Re(e.query),mutation:e.mutation&&Re(e.mutation),subscription:e.subscription&&Re(e.subscription),...L&&un([L]),...un(V)};return{description:(s=L)===null||s===void 0||(l=s.description)===null||l===void 0?void 0:l.value,...te,types:Object.values(j),directives:[...e.directives.map(Je),...A.map(yr)],extensions:Object.create(null),astNode:(d=L)!==null&&d!==void 0?d:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(V),assumeValid:(h=i?.assumeValid)!==null&&h!==void 0?h:!1};function X(Xr){return(0,Dy.isListType)(Xr)?new Dy.GraphQLList(X(Xr.ofType)):(0,Dy.isNonNullType)(Xr)?new Dy.GraphQLNonNull(X(Xr.ofType)):Re(Xr)}function Re(Xr){return j[Xr.name]}function Je(Xr){let li=Xr.toConfig();return new vde.GraphQLDirective({...li,args:(0,yde.mapValue)(li.args,Hi)})}function pt(Xr){if((0,HVt.isIntrospectionType)(Xr)||(0,KVt.isSpecifiedScalarType)(Xr))return Xr;if((0,Dy.isScalarType)(Xr))return tr(Xr);if((0,Dy.isObjectType)(Xr))return ht(Xr);if((0,Dy.isInterfaceType)(Xr))return wt(Xr);if((0,Dy.isUnionType)(Xr))return Ut(Xr);if((0,Dy.isEnumType)(Xr))return xt(Xr);if((0,Dy.isInputObjectType)(Xr))return $e(Xr);(0,mvn.invariant)(!1,"Unexpected type: "+(0,fvn.inspect)(Xr))}function $e(Xr){var li;let Wi=Xr.toConfig(),Bo=(li=b[Wi.name])!==null&&li!==void 0?li:[];return new Dy.GraphQLInputObjectType({...Wi,fields:()=>({...(0,yde.mapValue)(Wi.fields,Wn=>({...Wn,type:X(Wn.type)})),...Cr(Bo)}),extensionASTNodes:Wi.extensionASTNodes.concat(Bo)})}function xt(Xr){var li;let Wi=Xr.toConfig(),Bo=(li=b[Xr.name])!==null&&li!==void 0?li:[];return new Dy.GraphQLEnumType({...Wi,values:{...Wi.values,...ol(Bo)},extensionASTNodes:Wi.extensionASTNodes.concat(Bo)})}function tr(Xr){var li;let Wi=Xr.toConfig(),Bo=(li=b[Wi.name])!==null&&li!==void 0?li:[],Wn=Wi.specifiedByURL;for(let hs of Bo){var Na;Wn=(Na=GVt(hs))!==null&&Na!==void 0?Na:Wn}return new Dy.GraphQLScalarType({...Wi,specifiedByURL:Wn,extensionASTNodes:Wi.extensionASTNodes.concat(Bo)})}function ht(Xr){var li;let Wi=Xr.toConfig(),Bo=(li=b[Wi.name])!==null&&li!==void 0?li:[];return new Dy.GraphQLObjectType({...Wi,interfaces:()=>[...Xr.getInterfaces().map(Re),...Zo(Bo)],fields:()=>({...(0,yde.mapValue)(Wi.fields,hr),...co(Bo)}),extensionASTNodes:Wi.extensionASTNodes.concat(Bo)})}function wt(Xr){var li;let Wi=Xr.toConfig(),Bo=(li=b[Wi.name])!==null&&li!==void 0?li:[];return new Dy.GraphQLInterfaceType({...Wi,interfaces:()=>[...Xr.getInterfaces().map(Re),...Zo(Bo)],fields:()=>({...(0,yde.mapValue)(Wi.fields,hr),...co(Bo)}),extensionASTNodes:Wi.extensionASTNodes.concat(Bo)})}function Ut(Xr){var li;let Wi=Xr.toConfig(),Bo=(li=b[Wi.name])!==null&&li!==void 0?li:[];return new Dy.GraphQLUnionType({...Wi,types:()=>[...Xr.getTypes().map(Re),...Rc(Bo)],extensionASTNodes:Wi.extensionASTNodes.concat(Bo)})}function hr(Xr){return{...Xr,type:X(Xr.type),args:Xr.args&&(0,yde.mapValue)(Xr.args,Hi)}}function Hi(Xr){return{...Xr,type:X(Xr.type)}}function un(Xr){let li={};for(let Bo of Xr){var Wi;let Wn=(Wi=Bo.operationTypes)!==null&&Wi!==void 0?Wi:[];for(let Na of Wn)li[Na.operation]=xo(Na.type)}return li}function xo(Xr){var li;let Wi=Xr.name.value,Bo=(li=WVt[Wi])!==null&&li!==void 0?li:j[Wi];if(Bo===void 0)throw new Error(`Unknown type: "${Wi}".`);return Bo}function Lo(Xr){return Xr.kind===fI.Kind.LIST_TYPE?new Dy.GraphQLList(Lo(Xr.type)):Xr.kind===fI.Kind.NON_NULL_TYPE?new Dy.GraphQLNonNull(Lo(Xr.type)):xo(Xr)}function yr(Xr){var li;return new vde.GraphQLDirective({name:Xr.name.value,description:(li=Xr.description)===null||li===void 0?void 0:li.value,locations:Xr.locations.map(({value:Wi})=>Wi),isRepeatable:Xr.repeatable,args:Cs(Xr.arguments),astNode:Xr})}function co(Xr){let li=Object.create(null);for(let Wn of Xr){var Wi;let Na=(Wi=Wn.fields)!==null&&Wi!==void 0?Wi:[];for(let hs of Na){var Bo;li[hs.name.value]={type:Lo(hs.type),description:(Bo=hs.description)===null||Bo===void 0?void 0:Bo.value,args:Cs(hs.arguments),deprecationReason:VAe(hs),astNode:hs}}}return li}function Cs(Xr){let li=Xr??[],Wi=Object.create(null);for(let Wn of li){var Bo;let Na=Lo(Wn.type);Wi[Wn.name.value]={type:Na,description:(Bo=Wn.description)===null||Bo===void 0?void 0:Bo.value,defaultValue:(0,VVt.valueFromAST)(Wn.defaultValue,Na),deprecationReason:VAe(Wn),astNode:Wn}}return Wi}function Cr(Xr){let li=Object.create(null);for(let Wn of Xr){var Wi;let Na=(Wi=Wn.fields)!==null&&Wi!==void 0?Wi:[];for(let hs of Na){var Bo;let Us=Lo(hs.type);li[hs.name.value]={type:Us,description:(Bo=hs.description)===null||Bo===void 0?void 0:Bo.value,defaultValue:(0,VVt.valueFromAST)(hs.defaultValue,Us),deprecationReason:VAe(hs),astNode:hs}}}return li}function ol(Xr){let li=Object.create(null);for(let Wn of Xr){var Wi;let Na=(Wi=Wn.values)!==null&&Wi!==void 0?Wi:[];for(let hs of Na){var Bo;li[hs.name.value]={description:(Bo=hs.description)===null||Bo===void 0?void 0:Bo.value,deprecationReason:VAe(hs),astNode:hs}}}return li}function Zo(Xr){return Xr.flatMap(li=>{var Wi,Bo;return(Wi=(Bo=li.interfaces)===null||Bo===void 0?void 0:Bo.map(xo))!==null&&Wi!==void 0?Wi:[]})}function Rc(Xr){return Xr.flatMap(li=>{var Wi,Bo;return(Wi=(Bo=li.types)===null||Bo===void 0?void 0:Bo.map(xo))!==null&&Wi!==void 0?Wi:[]})}function an(Xr){var li;let Wi=Xr.name.value,Bo=(li=b[Wi])!==null&&li!==void 0?li:[];switch(Xr.kind){case fI.Kind.OBJECT_TYPE_DEFINITION:{var Wn;let uc=[Xr,...Bo];return new Dy.GraphQLObjectType({name:Wi,description:(Wn=Xr.description)===null||Wn===void 0?void 0:Wn.value,interfaces:()=>Zo(uc),fields:()=>co(uc),astNode:Xr,extensionASTNodes:Bo})}case fI.Kind.INTERFACE_TYPE_DEFINITION:{var Na;let uc=[Xr,...Bo];return new Dy.GraphQLInterfaceType({name:Wi,description:(Na=Xr.description)===null||Na===void 0?void 0:Na.value,interfaces:()=>Zo(uc),fields:()=>co(uc),astNode:Xr,extensionASTNodes:Bo})}case fI.Kind.ENUM_TYPE_DEFINITION:{var hs;let uc=[Xr,...Bo];return new Dy.GraphQLEnumType({name:Wi,description:(hs=Xr.description)===null||hs===void 0?void 0:hs.value,values:ol(uc),astNode:Xr,extensionASTNodes:Bo})}case fI.Kind.UNION_TYPE_DEFINITION:{var Us;let uc=[Xr,...Bo];return new Dy.GraphQLUnionType({name:Wi,description:(Us=Xr.description)===null||Us===void 0?void 0:Us.value,types:()=>Rc(uc),astNode:Xr,extensionASTNodes:Bo})}case fI.Kind.SCALAR_TYPE_DEFINITION:{var Sc;return new Dy.GraphQLScalarType({name:Wi,description:(Sc=Xr.description)===null||Sc===void 0?void 0:Sc.value,specifiedByURL:GVt(Xr),astNode:Xr,extensionASTNodes:Bo})}case fI.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var Wu;let uc=[Xr,...Bo];return new Dy.GraphQLInputObjectType({name:Wi,description:(Wu=Xr.description)===null||Wu===void 0?void 0:Wu.value,fields:()=>Cr(uc),astNode:Xr,extensionASTNodes:Bo,isOneOf:vvn(Xr)})}}}}var WVt=(0,hvn.keyMap)([...KVt.specifiedScalarTypes,...HVt.introspectionTypes],e=>e.name);function VAe(e){let r=(0,Qnt.getDirectiveValues)(vde.GraphQLDeprecatedDirective,e);return r?.reason}function GVt(e){let r=(0,Qnt.getDirectiveValues)(vde.GraphQLSpecifiedByDirective,e);return r?.url}function vvn(e){return!!(0,Qnt.getDirectiveValues)(vde.GraphQLOneOfDirective,e)}});var XVt=dr(GAe=>{"use strict";Object.defineProperty(GAe,"__esModule",{value:!0});GAe.buildASTSchema=ZVt;GAe.buildSchema=Dvn;var Svn=J2(),bvn=Md(),xvn=BV(),Tvn=kk(),Evn=WV(),kvn=pde(),Cvn=Znt();function ZVt(e,r){e!=null&&e.kind===bvn.Kind.DOCUMENT||(0,Svn.devAssert)(!1,"Must provide valid Document AST."),r?.assumeValid!==!0&&r?.assumeValidSDL!==!0&&(0,kvn.assertValidSDL)(e);let i={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},s=(0,Cvn.extendSchemaImpl)(i,e,r);if(s.astNode==null)for(let d of s.types)switch(d.name){case"Query":s.query=d;break;case"Mutation":s.mutation=d;break;case"Subscription":s.subscription=d;break}let l=[...s.directives,...Tvn.specifiedDirectives.filter(d=>s.directives.every(h=>h.name!==d.name))];return new Evn.GraphQLSchema({...s,directives:l})}function Dvn(e,r){let i=(0,xvn.parse)(e,{noLocation:r?.noLocation,allowLegacyFragmentVariables:r?.allowLegacyFragmentVariables});return ZVt(i,{assumeValidSDL:r?.assumeValidSDL,assumeValid:r?.assumeValid})}});var tWt=dr(Ynt=>{"use strict";Object.defineProperty(Ynt,"__esModule",{value:!0});Ynt.lexicographicSortSchema=Fvn;var Avn=gm(),wvn=kT(),Ivn=M_e(),YVt=j_e(),V2=jd(),Pvn=kk(),Nvn=uI(),Ovn=WV();function Fvn(e){let r=e.toConfig(),i=(0,Ivn.keyValMap)(Xnt(r.types),j=>j.name,V);return new Ovn.GraphQLSchema({...r,types:Object.values(i),directives:Xnt(r.directives).map(h),query:d(r.query),mutation:d(r.mutation),subscription:d(r.subscription)});function s(j){return(0,V2.isListType)(j)?new V2.GraphQLList(s(j.ofType)):(0,V2.isNonNullType)(j)?new V2.GraphQLNonNull(s(j.ofType)):l(j)}function l(j){return i[j.name]}function d(j){return j&&l(j)}function h(j){let ie=j.toConfig();return new Pvn.GraphQLDirective({...ie,locations:eWt(ie.locations,te=>te),args:S(ie.args)})}function S(j){return HAe(j,ie=>({...ie,type:s(ie.type)}))}function b(j){return HAe(j,ie=>({...ie,type:s(ie.type),args:ie.args&&S(ie.args)}))}function A(j){return HAe(j,ie=>({...ie,type:s(ie.type)}))}function L(j){return Xnt(j).map(l)}function V(j){if((0,V2.isScalarType)(j)||(0,Nvn.isIntrospectionType)(j))return j;if((0,V2.isObjectType)(j)){let ie=j.toConfig();return new V2.GraphQLObjectType({...ie,interfaces:()=>L(ie.interfaces),fields:()=>b(ie.fields)})}if((0,V2.isInterfaceType)(j)){let ie=j.toConfig();return new V2.GraphQLInterfaceType({...ie,interfaces:()=>L(ie.interfaces),fields:()=>b(ie.fields)})}if((0,V2.isUnionType)(j)){let ie=j.toConfig();return new V2.GraphQLUnionType({...ie,types:()=>L(ie.types)})}if((0,V2.isEnumType)(j)){let ie=j.toConfig();return new V2.GraphQLEnumType({...ie,values:HAe(ie.values,te=>te)})}if((0,V2.isInputObjectType)(j)){let ie=j.toConfig();return new V2.GraphQLInputObjectType({...ie,fields:()=>A(ie.fields)})}(0,wvn.invariant)(!1,"Unexpected type: "+(0,Avn.inspect)(j))}}function HAe(e,r){let i=Object.create(null);for(let s of Object.keys(e).sort(YVt.naturalCompare))i[s]=r(e[s]);return i}function Xnt(e){return eWt(e,r=>r.name)}function eWt(e,r){return e.slice().sort((i,s)=>{let l=r(i),d=r(s);return(0,YVt.naturalCompare)(l,d)})}});var cWt=dr(Sde=>{"use strict";Object.defineProperty(Sde,"__esModule",{value:!0});Sde.printIntrospectionSchema=Uvn;Sde.printSchema=$vn;Sde.printType=iWt;var Rvn=gm(),Lvn=kT(),Mvn=I_e(),tit=Md(),KAe=FD(),Oee=jd(),rit=kk(),rWt=uI(),jvn=w8(),Bvn=Z_e();function $vn(e){return nWt(e,r=>!(0,rit.isSpecifiedDirective)(r),zvn)}function Uvn(e){return nWt(e,rit.isSpecifiedDirective,rWt.isIntrospectionType)}function zvn(e){return!(0,jvn.isSpecifiedScalarType)(e)&&!(0,rWt.isIntrospectionType)(e)}function nWt(e,r,i){let s=e.getDirectives().filter(r),l=Object.values(e.getTypeMap()).filter(i);return[qvn(e),...s.map(d=>Zvn(d)),...l.map(d=>iWt(d))].filter(Boolean).join(` + `}});var Ave=L(kH=>{"use strict";Object.defineProperty(kH,"__esModule",{value:!0});kH.getOperationAST=Sht;var ght=Sn();function Sht(e,t){let r=null;for(let o of e.definitions)if(o.kind===ght.Kind.OPERATION_DEFINITION){var n;if(t==null){if(r)return null;r=o}else if(((n=o.name)===null||n===void 0?void 0:n.value)===t)return o}return r}});var wve=L(CH=>{"use strict";Object.defineProperty(CH,"__esModule",{value:!0});CH.getOperationRootType=vht;var j4=ar();function vht(e,t){if(t.operation==="query"){let r=e.getQueryType();if(!r)throw new j4.GraphQLError("Schema does not define the required query root type.",{nodes:t});return r}if(t.operation==="mutation"){let r=e.getMutationType();if(!r)throw new j4.GraphQLError("Schema is not configured for mutations.",{nodes:t});return r}if(t.operation==="subscription"){let r=e.getSubscriptionType();if(!r)throw new j4.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return r}throw new j4.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var Ive=L(PH=>{"use strict";Object.defineProperty(PH,"__esModule",{value:!0});PH.introspectionFromSchema=Dht;var bht=us(),xht=Kg(),Eht=Z2(),Tht=IH();function Dht(e,t){let r={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},n=(0,xht.parse)((0,Tht.getIntrospectionQuery)(r)),o=(0,Eht.executeSync)({schema:e,document:n});return!o.errors&&o.data||(0,bht.invariant)(!1),o.data}});var Cve=L(OH=>{"use strict";Object.defineProperty(OH,"__esModule",{value:!0});OH.buildClientSchema=Oht;var Aht=Ls(),Zc=eo(),kve=hd(),B4=S2(),wht=Kg(),Wc=vn(),Iht=pc(),xd=Vl(),kht=Sd(),Cht=Yg(),Pht=z2();function Oht(e,t){(0,kve.isObjectLike)(e)&&(0,kve.isObjectLike)(e.__schema)||(0,Aht.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,Zc.inspect)(e)}.`);let r=e.__schema,n=(0,B4.keyValMap)(r.types,U=>U.name,U=>m(U));for(let U of[...kht.specifiedScalarTypes,...xd.introspectionTypes])n[U.name]&&(n[U.name]=U);let o=r.queryType?d(r.queryType):null,i=r.mutationType?d(r.mutationType):null,a=r.subscriptionType?d(r.subscriptionType):null,s=r.directives?r.directives.map(N):[];return new Cht.GraphQLSchema({description:r.description,query:o,mutation:i,subscription:a,types:Object.values(n),directives:s,assumeValid:t?.assumeValid});function c(U){if(U.kind===xd.TypeKind.LIST){let ge=U.ofType;if(!ge)throw new Error("Decorated type deeper than introspection query.");return new Wc.GraphQLList(c(ge))}if(U.kind===xd.TypeKind.NON_NULL){let ge=U.ofType;if(!ge)throw new Error("Decorated type deeper than introspection query.");let Te=c(ge);return new Wc.GraphQLNonNull((0,Wc.assertNullableType)(Te))}return p(U)}function p(U){let ge=U.name;if(!ge)throw new Error(`Unknown type reference: ${(0,Zc.inspect)(U)}.`);let Te=n[ge];if(!Te)throw new Error(`Invalid or incomplete schema, unknown type: ${ge}. Ensure that a full introspection query is used in order to build a client schema.`);return Te}function d(U){return(0,Wc.assertObjectType)(p(U))}function f(U){return(0,Wc.assertInterfaceType)(p(U))}function m(U){if(U!=null&&U.name!=null&&U.kind!=null)switch(U.kind){case xd.TypeKind.SCALAR:return y(U);case xd.TypeKind.OBJECT:return S(U);case xd.TypeKind.INTERFACE:return x(U);case xd.TypeKind.UNION:return A(U);case xd.TypeKind.ENUM:return I(U);case xd.TypeKind.INPUT_OBJECT:return E(U)}let ge=(0,Zc.inspect)(U);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${ge}.`)}function y(U){return new Wc.GraphQLScalarType({name:U.name,description:U.description,specifiedByURL:U.specifiedByURL})}function g(U){if(U.interfaces===null&&U.kind===xd.TypeKind.INTERFACE)return[];if(!U.interfaces){let ge=(0,Zc.inspect)(U);throw new Error(`Introspection result missing interfaces: ${ge}.`)}return U.interfaces.map(f)}function S(U){return new Wc.GraphQLObjectType({name:U.name,description:U.description,interfaces:()=>g(U),fields:()=>C(U)})}function x(U){return new Wc.GraphQLInterfaceType({name:U.name,description:U.description,interfaces:()=>g(U),fields:()=>C(U)})}function A(U){if(!U.possibleTypes){let ge=(0,Zc.inspect)(U);throw new Error(`Introspection result missing possibleTypes: ${ge}.`)}return new Wc.GraphQLUnionType({name:U.name,description:U.description,types:()=>U.possibleTypes.map(d)})}function I(U){if(!U.enumValues){let ge=(0,Zc.inspect)(U);throw new Error(`Introspection result missing enumValues: ${ge}.`)}return new Wc.GraphQLEnumType({name:U.name,description:U.description,values:(0,B4.keyValMap)(U.enumValues,ge=>ge.name,ge=>({description:ge.description,deprecationReason:ge.deprecationReason}))})}function E(U){if(!U.inputFields){let ge=(0,Zc.inspect)(U);throw new Error(`Introspection result missing inputFields: ${ge}.`)}return new Wc.GraphQLInputObjectType({name:U.name,description:U.description,fields:()=>O(U.inputFields),isOneOf:U.isOneOf})}function C(U){if(!U.fields)throw new Error(`Introspection result missing fields: ${(0,Zc.inspect)(U)}.`);return(0,B4.keyValMap)(U.fields,ge=>ge.name,F)}function F(U){let ge=c(U.type);if(!(0,Wc.isOutputType)(ge)){let Te=(0,Zc.inspect)(ge);throw new Error(`Introspection must provide output type for fields, but received: ${Te}.`)}if(!U.args){let Te=(0,Zc.inspect)(U);throw new Error(`Introspection result missing field args: ${Te}.`)}return{description:U.description,deprecationReason:U.deprecationReason,type:ge,args:O(U.args)}}function O(U){return(0,B4.keyValMap)(U,ge=>ge.name,$)}function $(U){let ge=c(U.type);if(!(0,Wc.isInputType)(ge)){let ke=(0,Zc.inspect)(ge);throw new Error(`Introspection must provide input type for arguments, but received: ${ke}.`)}let Te=U.defaultValue!=null?(0,Pht.valueFromAST)((0,wht.parseValue)(U.defaultValue),ge):void 0;return{description:U.description,type:ge,defaultValue:Te,deprecationReason:U.deprecationReason}}function N(U){if(!U.args){let ge=(0,Zc.inspect)(U);throw new Error(`Introspection result missing directive args: ${ge}.`)}if(!U.locations){let ge=(0,Zc.inspect)(U);throw new Error(`Introspection result missing directive locations: ${ge}.`)}return new Iht.GraphQLDirective({name:U.name,description:U.description,isRepeatable:U.isRepeatable,locations:U.locations.slice(),args:O(U.args)})}}});var FH=L(U4=>{"use strict";Object.defineProperty(U4,"__esModule",{value:!0});U4.extendSchema=Mht;U4.extendSchemaImpl=Mve;var Nht=Ls(),Fht=eo(),Rht=us(),Lht=Sh(),eA=qO(),Hl=Sn(),Pve=tS(),si=vn(),tA=pc(),Lve=Vl(),$ve=Sd(),Ove=Yg(),$ht=G2(),NH=M1(),Nve=z2();function Mht(e,t,r){(0,Ove.assertSchema)(e),t!=null&&t.kind===Hl.Kind.DOCUMENT||(0,Nht.devAssert)(!1,"Must provide valid Document AST."),r?.assumeValid!==!0&&r?.assumeValidSDL!==!0&&(0,$ht.assertValidSDLExtension)(t,e);let n=e.toConfig(),o=Mve(n,t,r);return n===o?e:new Ove.GraphQLSchema(o)}function Mve(e,t,r){var n,o,i,a;let s=[],c=Object.create(null),p=[],d,f=[];for(let K of t.definitions)if(K.kind===Hl.Kind.SCHEMA_DEFINITION)d=K;else if(K.kind===Hl.Kind.SCHEMA_EXTENSION)f.push(K);else if((0,Pve.isTypeDefinitionNode)(K))s.push(K);else if((0,Pve.isTypeExtensionNode)(K)){let ae=K.name.value,he=c[ae];c[ae]=he?he.concat([K]):[K]}else K.kind===Hl.Kind.DIRECTIVE_DEFINITION&&p.push(K);if(Object.keys(c).length===0&&s.length===0&&p.length===0&&f.length===0&&d==null)return e;let m=Object.create(null);for(let K of e.types)m[K.name]=I(K);for(let K of s){var y;let ae=K.name.value;m[ae]=(y=Fve[ae])!==null&&y!==void 0?y:le(K)}let g={query:e.query&&x(e.query),mutation:e.mutation&&x(e.mutation),subscription:e.subscription&&x(e.subscription),...d&&Te([d]),...Te(f)};return{description:(n=d)===null||n===void 0||(o=n.description)===null||o===void 0?void 0:o.value,...g,types:Object.values(m),directives:[...e.directives.map(A),...p.map(me)],extensions:Object.create(null),astNode:(i=d)!==null&&i!==void 0?i:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:(a=r?.assumeValid)!==null&&a!==void 0?a:!1};function S(K){return(0,si.isListType)(K)?new si.GraphQLList(S(K.ofType)):(0,si.isNonNullType)(K)?new si.GraphQLNonNull(S(K.ofType)):x(K)}function x(K){return m[K.name]}function A(K){let ae=K.toConfig();return new tA.GraphQLDirective({...ae,args:(0,eA.mapValue)(ae.args,ge)})}function I(K){if((0,Lve.isIntrospectionType)(K)||(0,$ve.isSpecifiedScalarType)(K))return K;if((0,si.isScalarType)(K))return F(K);if((0,si.isObjectType)(K))return O(K);if((0,si.isInterfaceType)(K))return $(K);if((0,si.isUnionType)(K))return N(K);if((0,si.isEnumType)(K))return C(K);if((0,si.isInputObjectType)(K))return E(K);(0,Rht.invariant)(!1,"Unexpected type: "+(0,Fht.inspect)(K))}function E(K){var ae;let he=K.toConfig(),Oe=(ae=c[he.name])!==null&&ae!==void 0?ae:[];return new si.GraphQLInputObjectType({...he,fields:()=>({...(0,eA.mapValue)(he.fields,pt=>({...pt,type:S(pt.type)})),...Vt(Oe)}),extensionASTNodes:he.extensionASTNodes.concat(Oe)})}function C(K){var ae;let he=K.toConfig(),Oe=(ae=c[K.name])!==null&&ae!==void 0?ae:[];return new si.GraphQLEnumType({...he,values:{...he.values,...Yt(Oe)},extensionASTNodes:he.extensionASTNodes.concat(Oe)})}function F(K){var ae;let he=K.toConfig(),Oe=(ae=c[he.name])!==null&&ae!==void 0?ae:[],pt=he.specifiedByURL;for(let lt of Oe){var Ye;pt=(Ye=Rve(lt))!==null&&Ye!==void 0?Ye:pt}return new si.GraphQLScalarType({...he,specifiedByURL:pt,extensionASTNodes:he.extensionASTNodes.concat(Oe)})}function O(K){var ae;let he=K.toConfig(),Oe=(ae=c[he.name])!==null&&ae!==void 0?ae:[];return new si.GraphQLObjectType({...he,interfaces:()=>[...K.getInterfaces().map(x),...vt(Oe)],fields:()=>({...(0,eA.mapValue)(he.fields,U),...xe(Oe)}),extensionASTNodes:he.extensionASTNodes.concat(Oe)})}function $(K){var ae;let he=K.toConfig(),Oe=(ae=c[he.name])!==null&&ae!==void 0?ae:[];return new si.GraphQLInterfaceType({...he,interfaces:()=>[...K.getInterfaces().map(x),...vt(Oe)],fields:()=>({...(0,eA.mapValue)(he.fields,U),...xe(Oe)}),extensionASTNodes:he.extensionASTNodes.concat(Oe)})}function N(K){var ae;let he=K.toConfig(),Oe=(ae=c[he.name])!==null&&ae!==void 0?ae:[];return new si.GraphQLUnionType({...he,types:()=>[...K.getTypes().map(x),...Fr(Oe)],extensionASTNodes:he.extensionASTNodes.concat(Oe)})}function U(K){return{...K,type:S(K.type),args:K.args&&(0,eA.mapValue)(K.args,ge)}}function ge(K){return{...K,type:S(K.type)}}function Te(K){let ae={};for(let Oe of K){var he;let pt=(he=Oe.operationTypes)!==null&&he!==void 0?he:[];for(let Ye of pt)ae[Ye.operation]=ke(Ye.type)}return ae}function ke(K){var ae;let he=K.name.value,Oe=(ae=Fve[he])!==null&&ae!==void 0?ae:m[he];if(Oe===void 0)throw new Error(`Unknown type: "${he}".`);return Oe}function Ve(K){return K.kind===Hl.Kind.LIST_TYPE?new si.GraphQLList(Ve(K.type)):K.kind===Hl.Kind.NON_NULL_TYPE?new si.GraphQLNonNull(Ve(K.type)):ke(K)}function me(K){var ae;return new tA.GraphQLDirective({name:K.name.value,description:(ae=K.description)===null||ae===void 0?void 0:ae.value,locations:K.locations.map(({value:he})=>he),isRepeatable:K.repeatable,args:Rt(K.arguments),astNode:K})}function xe(K){let ae=Object.create(null);for(let pt of K){var he;let Ye=(he=pt.fields)!==null&&he!==void 0?he:[];for(let lt of Ye){var Oe;ae[lt.name.value]={type:Ve(lt.type),description:(Oe=lt.description)===null||Oe===void 0?void 0:Oe.value,args:Rt(lt.arguments),deprecationReason:q4(lt),astNode:lt}}}return ae}function Rt(K){let ae=K??[],he=Object.create(null);for(let pt of ae){var Oe;let Ye=Ve(pt.type);he[pt.name.value]={type:Ye,description:(Oe=pt.description)===null||Oe===void 0?void 0:Oe.value,defaultValue:(0,Nve.valueFromAST)(pt.defaultValue,Ye),deprecationReason:q4(pt),astNode:pt}}return he}function Vt(K){let ae=Object.create(null);for(let pt of K){var he;let Ye=(he=pt.fields)!==null&&he!==void 0?he:[];for(let lt of Ye){var Oe;let Nt=Ve(lt.type);ae[lt.name.value]={type:Nt,description:(Oe=lt.description)===null||Oe===void 0?void 0:Oe.value,defaultValue:(0,Nve.valueFromAST)(lt.defaultValue,Nt),deprecationReason:q4(lt),astNode:lt}}}return ae}function Yt(K){let ae=Object.create(null);for(let pt of K){var he;let Ye=(he=pt.values)!==null&&he!==void 0?he:[];for(let lt of Ye){var Oe;ae[lt.name.value]={description:(Oe=lt.description)===null||Oe===void 0?void 0:Oe.value,deprecationReason:q4(lt),astNode:lt}}}return ae}function vt(K){return K.flatMap(ae=>{var he,Oe;return(he=(Oe=ae.interfaces)===null||Oe===void 0?void 0:Oe.map(ke))!==null&&he!==void 0?he:[]})}function Fr(K){return K.flatMap(ae=>{var he,Oe;return(he=(Oe=ae.types)===null||Oe===void 0?void 0:Oe.map(ke))!==null&&he!==void 0?he:[]})}function le(K){var ae;let he=K.name.value,Oe=(ae=c[he])!==null&&ae!==void 0?ae:[];switch(K.kind){case Hl.Kind.OBJECT_TYPE_DEFINITION:{var pt;let It=[K,...Oe];return new si.GraphQLObjectType({name:he,description:(pt=K.description)===null||pt===void 0?void 0:pt.value,interfaces:()=>vt(It),fields:()=>xe(It),astNode:K,extensionASTNodes:Oe})}case Hl.Kind.INTERFACE_TYPE_DEFINITION:{var Ye;let It=[K,...Oe];return new si.GraphQLInterfaceType({name:he,description:(Ye=K.description)===null||Ye===void 0?void 0:Ye.value,interfaces:()=>vt(It),fields:()=>xe(It),astNode:K,extensionASTNodes:Oe})}case Hl.Kind.ENUM_TYPE_DEFINITION:{var lt;let It=[K,...Oe];return new si.GraphQLEnumType({name:he,description:(lt=K.description)===null||lt===void 0?void 0:lt.value,values:Yt(It),astNode:K,extensionASTNodes:Oe})}case Hl.Kind.UNION_TYPE_DEFINITION:{var Nt;let It=[K,...Oe];return new si.GraphQLUnionType({name:he,description:(Nt=K.description)===null||Nt===void 0?void 0:Nt.value,types:()=>Fr(It),astNode:K,extensionASTNodes:Oe})}case Hl.Kind.SCALAR_TYPE_DEFINITION:{var Ct;return new si.GraphQLScalarType({name:he,description:(Ct=K.description)===null||Ct===void 0?void 0:Ct.value,specifiedByURL:Rve(K),astNode:K,extensionASTNodes:Oe})}case Hl.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var Hr;let It=[K,...Oe];return new si.GraphQLInputObjectType({name:he,description:(Hr=K.description)===null||Hr===void 0?void 0:Hr.value,fields:()=>Vt(It),astNode:K,extensionASTNodes:Oe,isOneOf:jht(K)})}}}}var Fve=(0,Lht.keyMap)([...$ve.specifiedScalarTypes,...Lve.introspectionTypes],e=>e.name);function q4(e){let t=(0,NH.getDirectiveValues)(tA.GraphQLDeprecatedDirective,e);return t?.reason}function Rve(e){let t=(0,NH.getDirectiveValues)(tA.GraphQLSpecifiedByDirective,e);return t?.url}function jht(e){return!!(0,NH.getDirectiveValues)(tA.GraphQLOneOfDirective,e)}});var Bve=L(z4=>{"use strict";Object.defineProperty(z4,"__esModule",{value:!0});z4.buildASTSchema=jve;z4.buildSchema=Ght;var Bht=Ls(),qht=Sn(),Uht=Kg(),zht=pc(),Vht=Yg(),Jht=G2(),Kht=FH();function jve(e,t){e!=null&&e.kind===qht.Kind.DOCUMENT||(0,Bht.devAssert)(!1,"Must provide valid Document AST."),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&(0,Jht.assertValidSDL)(e);let r={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},n=(0,Kht.extendSchemaImpl)(r,e,t);if(n.astNode==null)for(let i of n.types)switch(i.name){case"Query":n.query=i;break;case"Mutation":n.mutation=i;break;case"Subscription":n.subscription=i;break}let o=[...n.directives,...zht.specifiedDirectives.filter(i=>n.directives.every(a=>a.name!==i.name))];return new Vht.GraphQLSchema({...n,directives:o})}function Ght(e,t){let r=(0,Uht.parse)(e,{noLocation:t?.noLocation,allowLegacyFragmentVariables:t?.allowLegacyFragmentVariables});return jve(r,{assumeValidSDL:t?.assumeValidSDL,assumeValid:t?.assumeValid})}});var zve=L(LH=>{"use strict";Object.defineProperty(LH,"__esModule",{value:!0});LH.lexicographicSortSchema=eyt;var Hht=eo(),Zht=us(),Wht=S2(),qve=v2(),$s=vn(),Qht=pc(),Xht=Vl(),Yht=Yg();function eyt(e){let t=e.toConfig(),r=(0,Wht.keyValMap)(RH(t.types),m=>m.name,f);return new Yht.GraphQLSchema({...t,types:Object.values(r),directives:RH(t.directives).map(a),query:i(t.query),mutation:i(t.mutation),subscription:i(t.subscription)});function n(m){return(0,$s.isListType)(m)?new $s.GraphQLList(n(m.ofType)):(0,$s.isNonNullType)(m)?new $s.GraphQLNonNull(n(m.ofType)):o(m)}function o(m){return r[m.name]}function i(m){return m&&o(m)}function a(m){let y=m.toConfig();return new Qht.GraphQLDirective({...y,locations:Uve(y.locations,g=>g),args:s(y.args)})}function s(m){return V4(m,y=>({...y,type:n(y.type)}))}function c(m){return V4(m,y=>({...y,type:n(y.type),args:y.args&&s(y.args)}))}function p(m){return V4(m,y=>({...y,type:n(y.type)}))}function d(m){return RH(m).map(o)}function f(m){if((0,$s.isScalarType)(m)||(0,Xht.isIntrospectionType)(m))return m;if((0,$s.isObjectType)(m)){let y=m.toConfig();return new $s.GraphQLObjectType({...y,interfaces:()=>d(y.interfaces),fields:()=>c(y.fields)})}if((0,$s.isInterfaceType)(m)){let y=m.toConfig();return new $s.GraphQLInterfaceType({...y,interfaces:()=>d(y.interfaces),fields:()=>c(y.fields)})}if((0,$s.isUnionType)(m)){let y=m.toConfig();return new $s.GraphQLUnionType({...y,types:()=>d(y.types)})}if((0,$s.isEnumType)(m)){let y=m.toConfig();return new $s.GraphQLEnumType({...y,values:V4(y.values,g=>g)})}if((0,$s.isInputObjectType)(m)){let y=m.toConfig();return new $s.GraphQLInputObjectType({...y,fields:()=>p(y.fields)})}(0,Zht.invariant)(!1,"Unexpected type: "+(0,Hht.inspect)(m))}}function V4(e,t){let r=Object.create(null);for(let n of Object.keys(e).sort(qve.naturalCompare))r[n]=t(e[n]);return r}function RH(e){return Uve(e,t=>t.name)}function Uve(e,t){return e.slice().sort((r,n)=>{let o=t(r),i=t(n);return(0,qve.naturalCompare)(o,i)})}});var Wve=L(rA=>{"use strict";Object.defineProperty(rA,"__esModule",{value:!0});rA.printIntrospectionSchema=syt;rA.printSchema=ayt;rA.printType=Kve;var tyt=eo(),ryt=us(),nyt=d2(),MH=Sn(),J4=Gc(),q1=vn(),jH=pc(),Vve=Vl(),oyt=Sd(),iyt=N2();function ayt(e){return Jve(e,t=>!(0,jH.isSpecifiedDirective)(t),cyt)}function syt(e){return Jve(e,jH.isSpecifiedDirective,Vve.isIntrospectionType)}function cyt(e){return!(0,oyt.isSpecifiedScalarType)(e)&&!(0,Vve.isIntrospectionType)(e)}function Jve(e,t,r){let n=e.getDirectives().filter(t),o=Object.values(e.getTypeMap()).filter(r);return[lyt(e),...n.map(i=>yyt(i)),...o.map(i=>Kve(i))].filter(Boolean).join(` -`)}function qvn(e){if(e.description==null&&Jvn(e))return;let r=[],i=e.getQueryType();i&&r.push(` query: ${i.name}`);let s=e.getMutationType();s&&r.push(` mutation: ${s.name}`);let l=e.getSubscriptionType();return l&&r.push(` subscription: ${l.name}`),mI(e)+`schema { -${r.join(` +`)}function lyt(e){if(e.description==null&&uyt(e))return;let t=[],r=e.getQueryType();r&&t.push(` query: ${r.name}`);let n=e.getMutationType();n&&t.push(` mutation: ${n.name}`);let o=e.getSubscriptionType();return o&&t.push(` subscription: ${o.name}`),Zl(e)+`schema { +${t.join(` `)} -}`}function Jvn(e){let r=e.getQueryType();if(r&&r.name!=="Query")return!1;let i=e.getMutationType();if(i&&i.name!=="Mutation")return!1;let s=e.getSubscriptionType();return!(s&&s.name!=="Subscription")}function iWt(e){if((0,Oee.isScalarType)(e))return Vvn(e);if((0,Oee.isObjectType)(e))return Wvn(e);if((0,Oee.isInterfaceType)(e))return Gvn(e);if((0,Oee.isUnionType)(e))return Hvn(e);if((0,Oee.isEnumType)(e))return Kvn(e);if((0,Oee.isInputObjectType)(e))return Qvn(e);(0,Lvn.invariant)(!1,"Unexpected type: "+(0,Rvn.inspect)(e))}function Vvn(e){return mI(e)+`scalar ${e.name}`+Xvn(e)}function oWt(e){let r=e.getInterfaces();return r.length?" implements "+r.map(i=>i.name).join(" & "):""}function Wvn(e){return mI(e)+`type ${e.name}`+oWt(e)+aWt(e)}function Gvn(e){return mI(e)+`interface ${e.name}`+oWt(e)+aWt(e)}function Hvn(e){let r=e.getTypes(),i=r.length?" = "+r.join(" | "):"";return mI(e)+"union "+e.name+i}function Kvn(e){let r=e.getValues().map((i,s)=>mI(i," ",!s)+" "+i.name+iit(i.deprecationReason));return mI(e)+`enum ${e.name}`+nit(r)}function Qvn(e){let r=Object.values(e.getFields()).map((i,s)=>mI(i," ",!s)+" "+eit(i));return mI(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+nit(r)}function aWt(e){let r=Object.values(e.getFields()).map((i,s)=>mI(i," ",!s)+" "+i.name+sWt(i.args," ")+": "+String(i.type)+iit(i.deprecationReason));return nit(r)}function nit(e){return e.length!==0?` { +}`}function uyt(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let r=e.getMutationType();if(r&&r.name!=="Mutation")return!1;let n=e.getSubscriptionType();return!(n&&n.name!=="Subscription")}function Kve(e){if((0,q1.isScalarType)(e))return pyt(e);if((0,q1.isObjectType)(e))return dyt(e);if((0,q1.isInterfaceType)(e))return _yt(e);if((0,q1.isUnionType)(e))return fyt(e);if((0,q1.isEnumType)(e))return myt(e);if((0,q1.isInputObjectType)(e))return hyt(e);(0,ryt.invariant)(!1,"Unexpected type: "+(0,tyt.inspect)(e))}function pyt(e){return Zl(e)+`scalar ${e.name}`+gyt(e)}function Gve(e){let t=e.getInterfaces();return t.length?" implements "+t.map(r=>r.name).join(" & "):""}function dyt(e){return Zl(e)+`type ${e.name}`+Gve(e)+Hve(e)}function _yt(e){return Zl(e)+`interface ${e.name}`+Gve(e)+Hve(e)}function fyt(e){let t=e.getTypes(),r=t.length?" = "+t.join(" | "):"";return Zl(e)+"union "+e.name+r}function myt(e){let t=e.getValues().map((r,n)=>Zl(r," ",!n)+" "+r.name+qH(r.deprecationReason));return Zl(e)+`enum ${e.name}`+BH(t)}function hyt(e){let t=Object.values(e.getFields()).map((r,n)=>Zl(r," ",!n)+" "+$H(r));return Zl(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+BH(t)}function Hve(e){let t=Object.values(e.getFields()).map((r,n)=>Zl(r," ",!n)+" "+r.name+Zve(r.args," ")+": "+String(r.type)+qH(r.deprecationReason));return BH(t)}function BH(e){return e.length!==0?` { `+e.join(` `)+` -}`:""}function sWt(e,r=""){return e.length===0?"":e.every(i=>!i.description)?"("+e.map(eit).join(", ")+")":`( -`+e.map((i,s)=>mI(i," "+r,!s)+" "+r+eit(i)).join(` +}`:""}function Zve(e,t=""){return e.length===0?"":e.every(r=>!r.description)?"("+e.map($H).join(", ")+")":`( +`+e.map((r,n)=>Zl(r," "+t,!n)+" "+t+$H(r)).join(` `)+` -`+r+")"}function eit(e){let r=(0,Bvn.astFromValue)(e.defaultValue,e.type),i=e.name+": "+String(e.type);return r&&(i+=` = ${(0,KAe.print)(r)}`),i+iit(e.deprecationReason)}function Zvn(e){return mI(e)+"directive @"+e.name+sWt(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function iit(e){return e==null?"":e!==rit.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,KAe.print)({kind:tit.Kind.STRING,value:e})})`:" @deprecated"}function Xvn(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,KAe.print)({kind:tit.Kind.STRING,value:e.specifiedByURL})})`}function mI(e,r="",i=!0){let{description:s}=e;if(s==null)return"";let l=(0,KAe.print)({kind:tit.Kind.STRING,value:s,block:(0,Mvn.isPrintableAsBlockString)(s)});return(r&&!i?` -`+r:r)+l.replace(/\n/g,` -`+r)+` -`}});var lWt=dr(oit=>{"use strict";Object.defineProperty(oit,"__esModule",{value:!0});oit.concatAST=eSn;var Yvn=Md();function eSn(e){let r=[];for(let i of e)r.push(...i.definitions);return{kind:Yvn.Kind.DOCUMENT,definitions:r}}});var _Wt=dr(ait=>{"use strict";Object.defineProperty(ait,"__esModule",{value:!0});ait.separateOperations=rSn;var QAe=Md(),tSn=$V();function rSn(e){let r=[],i=Object.create(null);for(let l of e.definitions)switch(l.kind){case QAe.Kind.OPERATION_DEFINITION:r.push(l);break;case QAe.Kind.FRAGMENT_DEFINITION:i[l.name.value]=uWt(l.selectionSet);break;default:}let s=Object.create(null);for(let l of r){let d=new Set;for(let S of uWt(l.selectionSet))pWt(d,i,S);let h=l.name?l.name.value:"";s[h]={kind:QAe.Kind.DOCUMENT,definitions:e.definitions.filter(S=>S===l||S.kind===QAe.Kind.FRAGMENT_DEFINITION&&d.has(S.name.value))}}return s}function pWt(e,r,i){if(!e.has(i)){e.add(i);let s=r[i];if(s!==void 0)for(let l of s)pWt(e,r,l)}}function uWt(e){let r=[];return(0,tSn.visit)(e,{FragmentSpread(i){r.push(i.name.value)}}),r}});var mWt=dr(cit=>{"use strict";Object.defineProperty(cit,"__esModule",{value:!0});cit.stripIgnoredCharacters=iSn;var nSn=I_e(),dWt=O_e(),fWt=zDe(),sit=vee();function iSn(e){let r=(0,fWt.isSource)(e)?e:new fWt.Source(e),i=r.body,s=new dWt.Lexer(r),l="",d=!1;for(;s.advance().kind!==sit.TokenKind.EOF;){let h=s.token,S=h.kind,b=!(0,dWt.isPunctuatorTokenKind)(h.kind);d&&(b||h.kind===sit.TokenKind.SPREAD)&&(l+=" ");let A=i.slice(h.start,h.end);S===sit.TokenKind.BLOCK_STRING?l+=(0,nSn.printBlockString)(h.value,{minimize:!0}):l+=A,d=b}return l}});var gWt=dr(ZAe=>{"use strict";Object.defineProperty(ZAe,"__esModule",{value:!0});ZAe.assertValidName=cSn;ZAe.isValidNameError=hWt;var oSn=J2(),aSn=Cu(),sSn=B_e();function cSn(e){let r=hWt(e);if(r)throw r;return e}function hWt(e){if(typeof e=="string"||(0,oSn.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new aSn.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,sSn.assertName)(e)}catch(r){return r}}});var kWt=dr(O8=>{"use strict";Object.defineProperty(O8,"__esModule",{value:!0});O8.DangerousChangeType=O8.BreakingChangeType=void 0;O8.findBreakingChanges=fSn;O8.findDangerousChanges=mSn;var lSn=gm(),TWt=kT(),yWt=PB(),uSn=FD(),Xf=jd(),pSn=w8(),_Sn=Z_e(),dSn=lrt(),V0;O8.BreakingChangeType=V0;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(V0||(O8.BreakingChangeType=V0={}));var t4;O8.DangerousChangeType=t4;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(t4||(O8.DangerousChangeType=t4={}));function fSn(e,r){return EWt(e,r).filter(i=>i.type in V0)}function mSn(e,r){return EWt(e,r).filter(i=>i.type in t4)}function EWt(e,r){return[...gSn(e,r),...hSn(e,r)]}function hSn(e,r){let i=[],s=c9(e.getDirectives(),r.getDirectives());for(let l of s.removed)i.push({type:V0.DIRECTIVE_REMOVED,description:`${l.name} was removed.`});for(let[l,d]of s.persisted){let h=c9(l.args,d.args);for(let S of h.added)(0,Xf.isRequiredArgument)(S)&&i.push({type:V0.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${S.name} on directive ${l.name} was added.`});for(let S of h.removed)i.push({type:V0.DIRECTIVE_ARG_REMOVED,description:`${S.name} was removed from ${l.name}.`});l.isRepeatable&&!d.isRepeatable&&i.push({type:V0.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${l.name}.`});for(let S of l.locations)d.locations.includes(S)||i.push({type:V0.DIRECTIVE_LOCATION_REMOVED,description:`${S} was removed from ${l.name}.`})}return i}function gSn(e,r){let i=[],s=c9(Object.values(e.getTypeMap()),Object.values(r.getTypeMap()));for(let l of s.removed)i.push({type:V0.TYPE_REMOVED,description:(0,pSn.isSpecifiedScalarType)(l)?`Standard scalar ${l.name} was removed because it is not referenced anymore.`:`${l.name} was removed.`});for(let[l,d]of s.persisted)(0,Xf.isEnumType)(l)&&(0,Xf.isEnumType)(d)?i.push(...SSn(l,d)):(0,Xf.isUnionType)(l)&&(0,Xf.isUnionType)(d)?i.push(...vSn(l,d)):(0,Xf.isInputObjectType)(l)&&(0,Xf.isInputObjectType)(d)?i.push(...ySn(l,d)):(0,Xf.isObjectType)(l)&&(0,Xf.isObjectType)(d)?i.push(...SWt(l,d),...vWt(l,d)):(0,Xf.isInterfaceType)(l)&&(0,Xf.isInterfaceType)(d)?i.push(...SWt(l,d),...vWt(l,d)):l.constructor!==d.constructor&&i.push({type:V0.TYPE_CHANGED_KIND,description:`${l.name} changed from ${bWt(l)} to ${bWt(d)}.`});return i}function ySn(e,r){let i=[],s=c9(Object.values(e.getFields()),Object.values(r.getFields()));for(let l of s.added)(0,Xf.isRequiredInputField)(l)?i.push({type:V0.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${l.name} on input type ${e.name} was added.`}):i.push({type:t4.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${l.name} on input type ${e.name} was added.`});for(let l of s.removed)i.push({type:V0.FIELD_REMOVED,description:`${e.name}.${l.name} was removed.`});for(let[l,d]of s.persisted)xde(l.type,d.type)||i.push({type:V0.FIELD_CHANGED_KIND,description:`${e.name}.${l.name} changed type from ${String(l.type)} to ${String(d.type)}.`});return i}function vSn(e,r){let i=[],s=c9(e.getTypes(),r.getTypes());for(let l of s.added)i.push({type:t4.TYPE_ADDED_TO_UNION,description:`${l.name} was added to union type ${e.name}.`});for(let l of s.removed)i.push({type:V0.TYPE_REMOVED_FROM_UNION,description:`${l.name} was removed from union type ${e.name}.`});return i}function SSn(e,r){let i=[],s=c9(e.getValues(),r.getValues());for(let l of s.added)i.push({type:t4.VALUE_ADDED_TO_ENUM,description:`${l.name} was added to enum type ${e.name}.`});for(let l of s.removed)i.push({type:V0.VALUE_REMOVED_FROM_ENUM,description:`${l.name} was removed from enum type ${e.name}.`});return i}function vWt(e,r){let i=[],s=c9(e.getInterfaces(),r.getInterfaces());for(let l of s.added)i.push({type:t4.IMPLEMENTED_INTERFACE_ADDED,description:`${l.name} added to interfaces implemented by ${e.name}.`});for(let l of s.removed)i.push({type:V0.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${l.name}.`});return i}function SWt(e,r){let i=[],s=c9(Object.values(e.getFields()),Object.values(r.getFields()));for(let l of s.removed)i.push({type:V0.FIELD_REMOVED,description:`${e.name}.${l.name} was removed.`});for(let[l,d]of s.persisted)i.push(...bSn(e,l,d)),bde(l.type,d.type)||i.push({type:V0.FIELD_CHANGED_KIND,description:`${e.name}.${l.name} changed type from ${String(l.type)} to ${String(d.type)}.`});return i}function bSn(e,r,i){let s=[],l=c9(r.args,i.args);for(let d of l.removed)s.push({type:V0.ARG_REMOVED,description:`${e.name}.${r.name} arg ${d.name} was removed.`});for(let[d,h]of l.persisted)if(!xde(d.type,h.type))s.push({type:V0.ARG_CHANGED_KIND,description:`${e.name}.${r.name} arg ${d.name} has changed type from ${String(d.type)} to ${String(h.type)}.`});else if(d.defaultValue!==void 0)if(h.defaultValue===void 0)s.push({type:t4.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${r.name} arg ${d.name} defaultValue was removed.`});else{let b=xWt(d.defaultValue,d.type),A=xWt(h.defaultValue,h.type);b!==A&&s.push({type:t4.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${r.name} arg ${d.name} has changed defaultValue from ${b} to ${A}.`})}for(let d of l.added)(0,Xf.isRequiredArgument)(d)?s.push({type:V0.REQUIRED_ARG_ADDED,description:`A required arg ${d.name} on ${e.name}.${r.name} was added.`}):s.push({type:t4.OPTIONAL_ARG_ADDED,description:`An optional arg ${d.name} on ${e.name}.${r.name} was added.`});return s}function bde(e,r){return(0,Xf.isListType)(e)?(0,Xf.isListType)(r)&&bde(e.ofType,r.ofType)||(0,Xf.isNonNullType)(r)&&bde(e,r.ofType):(0,Xf.isNonNullType)(e)?(0,Xf.isNonNullType)(r)&&bde(e.ofType,r.ofType):(0,Xf.isNamedType)(r)&&e.name===r.name||(0,Xf.isNonNullType)(r)&&bde(e,r.ofType)}function xde(e,r){return(0,Xf.isListType)(e)?(0,Xf.isListType)(r)&&xde(e.ofType,r.ofType):(0,Xf.isNonNullType)(e)?(0,Xf.isNonNullType)(r)&&xde(e.ofType,r.ofType)||!(0,Xf.isNonNullType)(r)&&xde(e.ofType,r):(0,Xf.isNamedType)(r)&&e.name===r.name}function bWt(e){if((0,Xf.isScalarType)(e))return"a Scalar type";if((0,Xf.isObjectType)(e))return"an Object type";if((0,Xf.isInterfaceType)(e))return"an Interface type";if((0,Xf.isUnionType)(e))return"a Union type";if((0,Xf.isEnumType)(e))return"an Enum type";if((0,Xf.isInputObjectType)(e))return"an Input type";(0,TWt.invariant)(!1,"Unexpected type: "+(0,lSn.inspect)(e))}function xWt(e,r){let i=(0,_Sn.astFromValue)(e,r);return i!=null||(0,TWt.invariant)(!1),(0,uSn.print)((0,dSn.sortValueNode)(i))}function c9(e,r){let i=[],s=[],l=[],d=(0,yWt.keyMap)(e,({name:S})=>S),h=(0,yWt.keyMap)(r,({name:S})=>S);for(let S of e){let b=h[S.name];b===void 0?s.push(S):l.push([S,b])}for(let S of r)d[S.name]===void 0&&i.push(S);return{added:i,persisted:l,removed:s}}});var DWt=dr(XAe=>{"use strict";Object.defineProperty(XAe,"__esModule",{value:!0});XAe.resolveASTSchemaCoordinate=CWt;XAe.resolveSchemaCoordinate=TSn;var eW=gm(),Tde=Md(),xSn=BV(),BB=jd();function TSn(e,r){return CWt(e,(0,xSn.parseSchemaCoordinate)(r))}function ESn(e,r){let i=r.name.value,s=e.getType(i);if(s!=null)return{kind:"NamedType",type:s}}function kSn(e,r){let i=r.name.value,s=e.getType(i);if(!s)throw new Error(`Expected ${(0,eW.inspect)(i)} to be defined as a type in the schema.`);if(!(0,BB.isEnumType)(s)&&!(0,BB.isInputObjectType)(s)&&!(0,BB.isObjectType)(s)&&!(0,BB.isInterfaceType)(s))throw new Error(`Expected ${(0,eW.inspect)(i)} to be an Enum, Input Object, Object or Interface type.`);if((0,BB.isEnumType)(s)){let h=r.memberName.value,S=s.getValue(h);return S==null?void 0:{kind:"EnumValue",type:s,enumValue:S}}if((0,BB.isInputObjectType)(s)){let h=r.memberName.value,S=s.getFields()[h];return S==null?void 0:{kind:"InputField",type:s,inputField:S}}let l=r.memberName.value,d=s.getFields()[l];if(d!=null)return{kind:"Field",type:s,field:d}}function CSn(e,r){let i=r.name.value,s=e.getType(i);if(s==null)throw new Error(`Expected ${(0,eW.inspect)(i)} to be defined as a type in the schema.`);if(!(0,BB.isObjectType)(s)&&!(0,BB.isInterfaceType)(s))throw new Error(`Expected ${(0,eW.inspect)(i)} to be an object type or interface type.`);let l=r.fieldName.value,d=s.getFields()[l];if(d==null)throw new Error(`Expected ${(0,eW.inspect)(l)} to exist as a field of type ${(0,eW.inspect)(i)} in the schema.`);let h=r.argumentName.value,S=d.args.find(b=>b.name===h);if(S!=null)return{kind:"FieldArgument",type:s,field:d,fieldArgument:S}}function DSn(e,r){let i=r.name.value,s=e.getDirective(i);if(s)return{kind:"Directive",directive:s}}function ASn(e,r){let i=r.name.value,s=e.getDirective(i);if(!s)throw new Error(`Expected ${(0,eW.inspect)(i)} to be defined as a directive in the schema.`);let{argumentName:{value:l}}=r,d=s.args.find(h=>h.name===l);if(d)return{kind:"DirectiveArgument",directive:s,directiveArgument:d}}function CWt(e,r){switch(r.kind){case Tde.Kind.TYPE_COORDINATE:return ESn(e,r);case Tde.Kind.MEMBER_COORDINATE:return kSn(e,r);case Tde.Kind.ARGUMENT_COORDINATE:return CSn(e,r);case Tde.Kind.DIRECTIVE_COORDINATE:return DSn(e,r);case Tde.Kind.DIRECTIVE_ARGUMENT_COORDINATE:return ASn(e,r)}}});var NWt=dr(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Object.defineProperty(Zd,"BreakingChangeType",{enumerable:!0,get:function(){return YAe.BreakingChangeType}});Object.defineProperty(Zd,"DangerousChangeType",{enumerable:!0,get:function(){return YAe.DangerousChangeType}});Object.defineProperty(Zd,"TypeInfo",{enumerable:!0,get:function(){return wWt.TypeInfo}});Object.defineProperty(Zd,"assertValidName",{enumerable:!0,get:function(){return IWt.assertValidName}});Object.defineProperty(Zd,"astFromValue",{enumerable:!0,get:function(){return BSn.astFromValue}});Object.defineProperty(Zd,"buildASTSchema",{enumerable:!0,get:function(){return AWt.buildASTSchema}});Object.defineProperty(Zd,"buildClientSchema",{enumerable:!0,get:function(){return OSn.buildClientSchema}});Object.defineProperty(Zd,"buildSchema",{enumerable:!0,get:function(){return AWt.buildSchema}});Object.defineProperty(Zd,"coerceInputValue",{enumerable:!0,get:function(){return $Sn.coerceInputValue}});Object.defineProperty(Zd,"concatAST",{enumerable:!0,get:function(){return USn.concatAST}});Object.defineProperty(Zd,"doTypesOverlap",{enumerable:!0,get:function(){return uit.doTypesOverlap}});Object.defineProperty(Zd,"extendSchema",{enumerable:!0,get:function(){return FSn.extendSchema}});Object.defineProperty(Zd,"findBreakingChanges",{enumerable:!0,get:function(){return YAe.findBreakingChanges}});Object.defineProperty(Zd,"findDangerousChanges",{enumerable:!0,get:function(){return YAe.findDangerousChanges}});Object.defineProperty(Zd,"getIntrospectionQuery",{enumerable:!0,get:function(){return wSn.getIntrospectionQuery}});Object.defineProperty(Zd,"getOperationAST",{enumerable:!0,get:function(){return ISn.getOperationAST}});Object.defineProperty(Zd,"getOperationRootType",{enumerable:!0,get:function(){return PSn.getOperationRootType}});Object.defineProperty(Zd,"introspectionFromSchema",{enumerable:!0,get:function(){return NSn.introspectionFromSchema}});Object.defineProperty(Zd,"isEqualType",{enumerable:!0,get:function(){return uit.isEqualType}});Object.defineProperty(Zd,"isTypeSubTypeOf",{enumerable:!0,get:function(){return uit.isTypeSubTypeOf}});Object.defineProperty(Zd,"isValidNameError",{enumerable:!0,get:function(){return IWt.isValidNameError}});Object.defineProperty(Zd,"lexicographicSortSchema",{enumerable:!0,get:function(){return RSn.lexicographicSortSchema}});Object.defineProperty(Zd,"printIntrospectionSchema",{enumerable:!0,get:function(){return lit.printIntrospectionSchema}});Object.defineProperty(Zd,"printSchema",{enumerable:!0,get:function(){return lit.printSchema}});Object.defineProperty(Zd,"printType",{enumerable:!0,get:function(){return lit.printType}});Object.defineProperty(Zd,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return PWt.resolveASTSchemaCoordinate}});Object.defineProperty(Zd,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return PWt.resolveSchemaCoordinate}});Object.defineProperty(Zd,"separateOperations",{enumerable:!0,get:function(){return zSn.separateOperations}});Object.defineProperty(Zd,"stripIgnoredCharacters",{enumerable:!0,get:function(){return qSn.stripIgnoredCharacters}});Object.defineProperty(Zd,"typeFromAST",{enumerable:!0,get:function(){return LSn.typeFromAST}});Object.defineProperty(Zd,"valueFromAST",{enumerable:!0,get:function(){return MSn.valueFromAST}});Object.defineProperty(Zd,"valueFromASTUntyped",{enumerable:!0,get:function(){return jSn.valueFromASTUntyped}});Object.defineProperty(Zd,"visitWithTypeInfo",{enumerable:!0,get:function(){return wWt.visitWithTypeInfo}});var wSn=Vnt(),ISn=jVt(),PSn=BVt(),NSn=$Vt(),OSn=zVt(),AWt=XVt(),FSn=Znt(),RSn=tWt(),lit=cWt(),LSn=I8(),MSn=sde(),jSn=ott(),BSn=Z_e(),wWt=yAe(),$Sn=Prt(),USn=lWt(),zSn=_Wt(),qSn=mWt(),uit=J_e(),IWt=gWt(),YAe=kWt(),PWt=DWt()});var RWt=dr(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Object.defineProperty(Tn,"BREAK",{enumerable:!0,get:function(){return Lf.BREAK}});Object.defineProperty(Tn,"BreakingChangeType",{enumerable:!0,get:function(){return Mf.BreakingChangeType}});Object.defineProperty(Tn,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return xs.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(Tn,"DangerousChangeType",{enumerable:!0,get:function(){return Mf.DangerousChangeType}});Object.defineProperty(Tn,"DirectiveLocation",{enumerable:!0,get:function(){return Lf.DirectiveLocation}});Object.defineProperty(Tn,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return k_.ExecutableDefinitionsRule}});Object.defineProperty(Tn,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return k_.FieldsOnCorrectTypeRule}});Object.defineProperty(Tn,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return k_.FragmentsOnCompositeTypesRule}});Object.defineProperty(Tn,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return xs.GRAPHQL_MAX_INT}});Object.defineProperty(Tn,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return xs.GRAPHQL_MIN_INT}});Object.defineProperty(Tn,"GraphQLBoolean",{enumerable:!0,get:function(){return xs.GraphQLBoolean}});Object.defineProperty(Tn,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return xs.GraphQLDeprecatedDirective}});Object.defineProperty(Tn,"GraphQLDirective",{enumerable:!0,get:function(){return xs.GraphQLDirective}});Object.defineProperty(Tn,"GraphQLEnumType",{enumerable:!0,get:function(){return xs.GraphQLEnumType}});Object.defineProperty(Tn,"GraphQLError",{enumerable:!0,get:function(){return Ede.GraphQLError}});Object.defineProperty(Tn,"GraphQLFloat",{enumerable:!0,get:function(){return xs.GraphQLFloat}});Object.defineProperty(Tn,"GraphQLID",{enumerable:!0,get:function(){return xs.GraphQLID}});Object.defineProperty(Tn,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return xs.GraphQLIncludeDirective}});Object.defineProperty(Tn,"GraphQLInputObjectType",{enumerable:!0,get:function(){return xs.GraphQLInputObjectType}});Object.defineProperty(Tn,"GraphQLInt",{enumerable:!0,get:function(){return xs.GraphQLInt}});Object.defineProperty(Tn,"GraphQLInterfaceType",{enumerable:!0,get:function(){return xs.GraphQLInterfaceType}});Object.defineProperty(Tn,"GraphQLList",{enumerable:!0,get:function(){return xs.GraphQLList}});Object.defineProperty(Tn,"GraphQLNonNull",{enumerable:!0,get:function(){return xs.GraphQLNonNull}});Object.defineProperty(Tn,"GraphQLObjectType",{enumerable:!0,get:function(){return xs.GraphQLObjectType}});Object.defineProperty(Tn,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return xs.GraphQLOneOfDirective}});Object.defineProperty(Tn,"GraphQLScalarType",{enumerable:!0,get:function(){return xs.GraphQLScalarType}});Object.defineProperty(Tn,"GraphQLSchema",{enumerable:!0,get:function(){return xs.GraphQLSchema}});Object.defineProperty(Tn,"GraphQLSkipDirective",{enumerable:!0,get:function(){return xs.GraphQLSkipDirective}});Object.defineProperty(Tn,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return xs.GraphQLSpecifiedByDirective}});Object.defineProperty(Tn,"GraphQLString",{enumerable:!0,get:function(){return xs.GraphQLString}});Object.defineProperty(Tn,"GraphQLUnionType",{enumerable:!0,get:function(){return xs.GraphQLUnionType}});Object.defineProperty(Tn,"Kind",{enumerable:!0,get:function(){return Lf.Kind}});Object.defineProperty(Tn,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return k_.KnownArgumentNamesRule}});Object.defineProperty(Tn,"KnownDirectivesRule",{enumerable:!0,get:function(){return k_.KnownDirectivesRule}});Object.defineProperty(Tn,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return k_.KnownFragmentNamesRule}});Object.defineProperty(Tn,"KnownTypeNamesRule",{enumerable:!0,get:function(){return k_.KnownTypeNamesRule}});Object.defineProperty(Tn,"Lexer",{enumerable:!0,get:function(){return Lf.Lexer}});Object.defineProperty(Tn,"Location",{enumerable:!0,get:function(){return Lf.Location}});Object.defineProperty(Tn,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return k_.LoneAnonymousOperationRule}});Object.defineProperty(Tn,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return k_.LoneSchemaDefinitionRule}});Object.defineProperty(Tn,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return k_.MaxIntrospectionDepthRule}});Object.defineProperty(Tn,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return k_.NoDeprecatedCustomRule}});Object.defineProperty(Tn,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return k_.NoFragmentCyclesRule}});Object.defineProperty(Tn,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return k_.NoSchemaIntrospectionCustomRule}});Object.defineProperty(Tn,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return k_.NoUndefinedVariablesRule}});Object.defineProperty(Tn,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return k_.NoUnusedFragmentsRule}});Object.defineProperty(Tn,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return k_.NoUnusedVariablesRule}});Object.defineProperty(Tn,"OperationTypeNode",{enumerable:!0,get:function(){return Lf.OperationTypeNode}});Object.defineProperty(Tn,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return k_.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Tn,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return k_.PossibleFragmentSpreadsRule}});Object.defineProperty(Tn,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return k_.PossibleTypeExtensionsRule}});Object.defineProperty(Tn,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return k_.ProvidedRequiredArgumentsRule}});Object.defineProperty(Tn,"ScalarLeafsRule",{enumerable:!0,get:function(){return k_.ScalarLeafsRule}});Object.defineProperty(Tn,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return xs.SchemaMetaFieldDef}});Object.defineProperty(Tn,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return k_.SingleFieldSubscriptionsRule}});Object.defineProperty(Tn,"Source",{enumerable:!0,get:function(){return Lf.Source}});Object.defineProperty(Tn,"Token",{enumerable:!0,get:function(){return Lf.Token}});Object.defineProperty(Tn,"TokenKind",{enumerable:!0,get:function(){return Lf.TokenKind}});Object.defineProperty(Tn,"TypeInfo",{enumerable:!0,get:function(){return Mf.TypeInfo}});Object.defineProperty(Tn,"TypeKind",{enumerable:!0,get:function(){return xs.TypeKind}});Object.defineProperty(Tn,"TypeMetaFieldDef",{enumerable:!0,get:function(){return xs.TypeMetaFieldDef}});Object.defineProperty(Tn,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return xs.TypeNameMetaFieldDef}});Object.defineProperty(Tn,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return k_.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(Tn,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return k_.UniqueArgumentNamesRule}});Object.defineProperty(Tn,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return k_.UniqueDirectiveNamesRule}});Object.defineProperty(Tn,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return k_.UniqueDirectivesPerLocationRule}});Object.defineProperty(Tn,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return k_.UniqueEnumValueNamesRule}});Object.defineProperty(Tn,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return k_.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Tn,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return k_.UniqueFragmentNamesRule}});Object.defineProperty(Tn,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return k_.UniqueInputFieldNamesRule}});Object.defineProperty(Tn,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return k_.UniqueOperationNamesRule}});Object.defineProperty(Tn,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return k_.UniqueOperationTypesRule}});Object.defineProperty(Tn,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return k_.UniqueTypeNamesRule}});Object.defineProperty(Tn,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return k_.UniqueVariableNamesRule}});Object.defineProperty(Tn,"ValidationContext",{enumerable:!0,get:function(){return k_.ValidationContext}});Object.defineProperty(Tn,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return k_.ValuesOfCorrectTypeRule}});Object.defineProperty(Tn,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return k_.VariablesAreInputTypesRule}});Object.defineProperty(Tn,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return k_.VariablesInAllowedPositionRule}});Object.defineProperty(Tn,"__Directive",{enumerable:!0,get:function(){return xs.__Directive}});Object.defineProperty(Tn,"__DirectiveLocation",{enumerable:!0,get:function(){return xs.__DirectiveLocation}});Object.defineProperty(Tn,"__EnumValue",{enumerable:!0,get:function(){return xs.__EnumValue}});Object.defineProperty(Tn,"__Field",{enumerable:!0,get:function(){return xs.__Field}});Object.defineProperty(Tn,"__InputValue",{enumerable:!0,get:function(){return xs.__InputValue}});Object.defineProperty(Tn,"__Schema",{enumerable:!0,get:function(){return xs.__Schema}});Object.defineProperty(Tn,"__Type",{enumerable:!0,get:function(){return xs.__Type}});Object.defineProperty(Tn,"__TypeKind",{enumerable:!0,get:function(){return xs.__TypeKind}});Object.defineProperty(Tn,"assertAbstractType",{enumerable:!0,get:function(){return xs.assertAbstractType}});Object.defineProperty(Tn,"assertCompositeType",{enumerable:!0,get:function(){return xs.assertCompositeType}});Object.defineProperty(Tn,"assertDirective",{enumerable:!0,get:function(){return xs.assertDirective}});Object.defineProperty(Tn,"assertEnumType",{enumerable:!0,get:function(){return xs.assertEnumType}});Object.defineProperty(Tn,"assertEnumValueName",{enumerable:!0,get:function(){return xs.assertEnumValueName}});Object.defineProperty(Tn,"assertInputObjectType",{enumerable:!0,get:function(){return xs.assertInputObjectType}});Object.defineProperty(Tn,"assertInputType",{enumerable:!0,get:function(){return xs.assertInputType}});Object.defineProperty(Tn,"assertInterfaceType",{enumerable:!0,get:function(){return xs.assertInterfaceType}});Object.defineProperty(Tn,"assertLeafType",{enumerable:!0,get:function(){return xs.assertLeafType}});Object.defineProperty(Tn,"assertListType",{enumerable:!0,get:function(){return xs.assertListType}});Object.defineProperty(Tn,"assertName",{enumerable:!0,get:function(){return xs.assertName}});Object.defineProperty(Tn,"assertNamedType",{enumerable:!0,get:function(){return xs.assertNamedType}});Object.defineProperty(Tn,"assertNonNullType",{enumerable:!0,get:function(){return xs.assertNonNullType}});Object.defineProperty(Tn,"assertNullableType",{enumerable:!0,get:function(){return xs.assertNullableType}});Object.defineProperty(Tn,"assertObjectType",{enumerable:!0,get:function(){return xs.assertObjectType}});Object.defineProperty(Tn,"assertOutputType",{enumerable:!0,get:function(){return xs.assertOutputType}});Object.defineProperty(Tn,"assertScalarType",{enumerable:!0,get:function(){return xs.assertScalarType}});Object.defineProperty(Tn,"assertSchema",{enumerable:!0,get:function(){return xs.assertSchema}});Object.defineProperty(Tn,"assertType",{enumerable:!0,get:function(){return xs.assertType}});Object.defineProperty(Tn,"assertUnionType",{enumerable:!0,get:function(){return xs.assertUnionType}});Object.defineProperty(Tn,"assertValidName",{enumerable:!0,get:function(){return Mf.assertValidName}});Object.defineProperty(Tn,"assertValidSchema",{enumerable:!0,get:function(){return xs.assertValidSchema}});Object.defineProperty(Tn,"assertWrappingType",{enumerable:!0,get:function(){return xs.assertWrappingType}});Object.defineProperty(Tn,"astFromValue",{enumerable:!0,get:function(){return Mf.astFromValue}});Object.defineProperty(Tn,"buildASTSchema",{enumerable:!0,get:function(){return Mf.buildASTSchema}});Object.defineProperty(Tn,"buildClientSchema",{enumerable:!0,get:function(){return Mf.buildClientSchema}});Object.defineProperty(Tn,"buildSchema",{enumerable:!0,get:function(){return Mf.buildSchema}});Object.defineProperty(Tn,"coerceInputValue",{enumerable:!0,get:function(){return Mf.coerceInputValue}});Object.defineProperty(Tn,"concatAST",{enumerable:!0,get:function(){return Mf.concatAST}});Object.defineProperty(Tn,"createSourceEventStream",{enumerable:!0,get:function(){return F8.createSourceEventStream}});Object.defineProperty(Tn,"defaultFieldResolver",{enumerable:!0,get:function(){return F8.defaultFieldResolver}});Object.defineProperty(Tn,"defaultTypeResolver",{enumerable:!0,get:function(){return F8.defaultTypeResolver}});Object.defineProperty(Tn,"doTypesOverlap",{enumerable:!0,get:function(){return Mf.doTypesOverlap}});Object.defineProperty(Tn,"execute",{enumerable:!0,get:function(){return F8.execute}});Object.defineProperty(Tn,"executeSync",{enumerable:!0,get:function(){return F8.executeSync}});Object.defineProperty(Tn,"extendSchema",{enumerable:!0,get:function(){return Mf.extendSchema}});Object.defineProperty(Tn,"findBreakingChanges",{enumerable:!0,get:function(){return Mf.findBreakingChanges}});Object.defineProperty(Tn,"findDangerousChanges",{enumerable:!0,get:function(){return Mf.findDangerousChanges}});Object.defineProperty(Tn,"formatError",{enumerable:!0,get:function(){return Ede.formatError}});Object.defineProperty(Tn,"getArgumentValues",{enumerable:!0,get:function(){return F8.getArgumentValues}});Object.defineProperty(Tn,"getDirectiveValues",{enumerable:!0,get:function(){return F8.getDirectiveValues}});Object.defineProperty(Tn,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Lf.getEnterLeaveForKind}});Object.defineProperty(Tn,"getIntrospectionQuery",{enumerable:!0,get:function(){return Mf.getIntrospectionQuery}});Object.defineProperty(Tn,"getLocation",{enumerable:!0,get:function(){return Lf.getLocation}});Object.defineProperty(Tn,"getNamedType",{enumerable:!0,get:function(){return xs.getNamedType}});Object.defineProperty(Tn,"getNullableType",{enumerable:!0,get:function(){return xs.getNullableType}});Object.defineProperty(Tn,"getOperationAST",{enumerable:!0,get:function(){return Mf.getOperationAST}});Object.defineProperty(Tn,"getOperationRootType",{enumerable:!0,get:function(){return Mf.getOperationRootType}});Object.defineProperty(Tn,"getVariableValues",{enumerable:!0,get:function(){return F8.getVariableValues}});Object.defineProperty(Tn,"getVisitFn",{enumerable:!0,get:function(){return Lf.getVisitFn}});Object.defineProperty(Tn,"graphql",{enumerable:!0,get:function(){return FWt.graphql}});Object.defineProperty(Tn,"graphqlSync",{enumerable:!0,get:function(){return FWt.graphqlSync}});Object.defineProperty(Tn,"introspectionFromSchema",{enumerable:!0,get:function(){return Mf.introspectionFromSchema}});Object.defineProperty(Tn,"introspectionTypes",{enumerable:!0,get:function(){return xs.introspectionTypes}});Object.defineProperty(Tn,"isAbstractType",{enumerable:!0,get:function(){return xs.isAbstractType}});Object.defineProperty(Tn,"isCompositeType",{enumerable:!0,get:function(){return xs.isCompositeType}});Object.defineProperty(Tn,"isConstValueNode",{enumerable:!0,get:function(){return Lf.isConstValueNode}});Object.defineProperty(Tn,"isDefinitionNode",{enumerable:!0,get:function(){return Lf.isDefinitionNode}});Object.defineProperty(Tn,"isDirective",{enumerable:!0,get:function(){return xs.isDirective}});Object.defineProperty(Tn,"isEnumType",{enumerable:!0,get:function(){return xs.isEnumType}});Object.defineProperty(Tn,"isEqualType",{enumerable:!0,get:function(){return Mf.isEqualType}});Object.defineProperty(Tn,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Lf.isExecutableDefinitionNode}});Object.defineProperty(Tn,"isInputObjectType",{enumerable:!0,get:function(){return xs.isInputObjectType}});Object.defineProperty(Tn,"isInputType",{enumerable:!0,get:function(){return xs.isInputType}});Object.defineProperty(Tn,"isInterfaceType",{enumerable:!0,get:function(){return xs.isInterfaceType}});Object.defineProperty(Tn,"isIntrospectionType",{enumerable:!0,get:function(){return xs.isIntrospectionType}});Object.defineProperty(Tn,"isLeafType",{enumerable:!0,get:function(){return xs.isLeafType}});Object.defineProperty(Tn,"isListType",{enumerable:!0,get:function(){return xs.isListType}});Object.defineProperty(Tn,"isNamedType",{enumerable:!0,get:function(){return xs.isNamedType}});Object.defineProperty(Tn,"isNonNullType",{enumerable:!0,get:function(){return xs.isNonNullType}});Object.defineProperty(Tn,"isNullableType",{enumerable:!0,get:function(){return xs.isNullableType}});Object.defineProperty(Tn,"isObjectType",{enumerable:!0,get:function(){return xs.isObjectType}});Object.defineProperty(Tn,"isOutputType",{enumerable:!0,get:function(){return xs.isOutputType}});Object.defineProperty(Tn,"isRequiredArgument",{enumerable:!0,get:function(){return xs.isRequiredArgument}});Object.defineProperty(Tn,"isRequiredInputField",{enumerable:!0,get:function(){return xs.isRequiredInputField}});Object.defineProperty(Tn,"isScalarType",{enumerable:!0,get:function(){return xs.isScalarType}});Object.defineProperty(Tn,"isSchema",{enumerable:!0,get:function(){return xs.isSchema}});Object.defineProperty(Tn,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return Lf.isSchemaCoordinateNode}});Object.defineProperty(Tn,"isSelectionNode",{enumerable:!0,get:function(){return Lf.isSelectionNode}});Object.defineProperty(Tn,"isSpecifiedDirective",{enumerable:!0,get:function(){return xs.isSpecifiedDirective}});Object.defineProperty(Tn,"isSpecifiedScalarType",{enumerable:!0,get:function(){return xs.isSpecifiedScalarType}});Object.defineProperty(Tn,"isType",{enumerable:!0,get:function(){return xs.isType}});Object.defineProperty(Tn,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Lf.isTypeDefinitionNode}});Object.defineProperty(Tn,"isTypeExtensionNode",{enumerable:!0,get:function(){return Lf.isTypeExtensionNode}});Object.defineProperty(Tn,"isTypeNode",{enumerable:!0,get:function(){return Lf.isTypeNode}});Object.defineProperty(Tn,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Mf.isTypeSubTypeOf}});Object.defineProperty(Tn,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Lf.isTypeSystemDefinitionNode}});Object.defineProperty(Tn,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Lf.isTypeSystemExtensionNode}});Object.defineProperty(Tn,"isUnionType",{enumerable:!0,get:function(){return xs.isUnionType}});Object.defineProperty(Tn,"isValidNameError",{enumerable:!0,get:function(){return Mf.isValidNameError}});Object.defineProperty(Tn,"isValueNode",{enumerable:!0,get:function(){return Lf.isValueNode}});Object.defineProperty(Tn,"isWrappingType",{enumerable:!0,get:function(){return xs.isWrappingType}});Object.defineProperty(Tn,"lexicographicSortSchema",{enumerable:!0,get:function(){return Mf.lexicographicSortSchema}});Object.defineProperty(Tn,"locatedError",{enumerable:!0,get:function(){return Ede.locatedError}});Object.defineProperty(Tn,"parse",{enumerable:!0,get:function(){return Lf.parse}});Object.defineProperty(Tn,"parseConstValue",{enumerable:!0,get:function(){return Lf.parseConstValue}});Object.defineProperty(Tn,"parseSchemaCoordinate",{enumerable:!0,get:function(){return Lf.parseSchemaCoordinate}});Object.defineProperty(Tn,"parseType",{enumerable:!0,get:function(){return Lf.parseType}});Object.defineProperty(Tn,"parseValue",{enumerable:!0,get:function(){return Lf.parseValue}});Object.defineProperty(Tn,"print",{enumerable:!0,get:function(){return Lf.print}});Object.defineProperty(Tn,"printError",{enumerable:!0,get:function(){return Ede.printError}});Object.defineProperty(Tn,"printIntrospectionSchema",{enumerable:!0,get:function(){return Mf.printIntrospectionSchema}});Object.defineProperty(Tn,"printLocation",{enumerable:!0,get:function(){return Lf.printLocation}});Object.defineProperty(Tn,"printSchema",{enumerable:!0,get:function(){return Mf.printSchema}});Object.defineProperty(Tn,"printSourceLocation",{enumerable:!0,get:function(){return Lf.printSourceLocation}});Object.defineProperty(Tn,"printType",{enumerable:!0,get:function(){return Mf.printType}});Object.defineProperty(Tn,"recommendedRules",{enumerable:!0,get:function(){return k_.recommendedRules}});Object.defineProperty(Tn,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return Mf.resolveASTSchemaCoordinate}});Object.defineProperty(Tn,"resolveObjMapThunk",{enumerable:!0,get:function(){return xs.resolveObjMapThunk}});Object.defineProperty(Tn,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return xs.resolveReadonlyArrayThunk}});Object.defineProperty(Tn,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return Mf.resolveSchemaCoordinate}});Object.defineProperty(Tn,"responsePathAsArray",{enumerable:!0,get:function(){return F8.responsePathAsArray}});Object.defineProperty(Tn,"separateOperations",{enumerable:!0,get:function(){return Mf.separateOperations}});Object.defineProperty(Tn,"specifiedDirectives",{enumerable:!0,get:function(){return xs.specifiedDirectives}});Object.defineProperty(Tn,"specifiedRules",{enumerable:!0,get:function(){return k_.specifiedRules}});Object.defineProperty(Tn,"specifiedScalarTypes",{enumerable:!0,get:function(){return xs.specifiedScalarTypes}});Object.defineProperty(Tn,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Mf.stripIgnoredCharacters}});Object.defineProperty(Tn,"subscribe",{enumerable:!0,get:function(){return F8.subscribe}});Object.defineProperty(Tn,"syntaxError",{enumerable:!0,get:function(){return Ede.syntaxError}});Object.defineProperty(Tn,"typeFromAST",{enumerable:!0,get:function(){return Mf.typeFromAST}});Object.defineProperty(Tn,"validate",{enumerable:!0,get:function(){return k_.validate}});Object.defineProperty(Tn,"validateSchema",{enumerable:!0,get:function(){return xs.validateSchema}});Object.defineProperty(Tn,"valueFromAST",{enumerable:!0,get:function(){return Mf.valueFromAST}});Object.defineProperty(Tn,"valueFromASTUntyped",{enumerable:!0,get:function(){return Mf.valueFromASTUntyped}});Object.defineProperty(Tn,"version",{enumerable:!0,get:function(){return OWt.version}});Object.defineProperty(Tn,"versionInfo",{enumerable:!0,get:function(){return OWt.versionInfo}});Object.defineProperty(Tn,"visit",{enumerable:!0,get:function(){return Lf.visit}});Object.defineProperty(Tn,"visitInParallel",{enumerable:!0,get:function(){return Lf.visitInParallel}});Object.defineProperty(Tn,"visitWithTypeInfo",{enumerable:!0,get:function(){return Mf.visitWithTypeInfo}});var OWt=Dzt(),FWt=vVt(),xs=xVt(),Lf=EVt(),F8=NVt(),k_=LVt(),Ede=MVt(),Mf=NWt()});var xf=dr(px=>{"use strict";var git=Symbol.for("yaml.alias"),nGt=Symbol.for("yaml.document"),owe=Symbol.for("yaml.map"),iGt=Symbol.for("yaml.pair"),yit=Symbol.for("yaml.scalar"),awe=Symbol.for("yaml.seq"),l9=Symbol.for("yaml.node.type"),wbn=e=>!!e&&typeof e=="object"&&e[l9]===git,Ibn=e=>!!e&&typeof e=="object"&&e[l9]===nGt,Pbn=e=>!!e&&typeof e=="object"&&e[l9]===owe,Nbn=e=>!!e&&typeof e=="object"&&e[l9]===iGt,oGt=e=>!!e&&typeof e=="object"&&e[l9]===yit,Obn=e=>!!e&&typeof e=="object"&&e[l9]===awe;function aGt(e){if(e&&typeof e=="object")switch(e[l9]){case owe:case awe:return!0}return!1}function Fbn(e){if(e&&typeof e=="object")switch(e[l9]){case git:case owe:case yit:case awe:return!0}return!1}var Rbn=e=>(oGt(e)||aGt(e))&&!!e.anchor;px.ALIAS=git;px.DOC=nGt;px.MAP=owe;px.NODE_TYPE=l9;px.PAIR=iGt;px.SCALAR=yit;px.SEQ=awe;px.hasAnchor=Rbn;px.isAlias=wbn;px.isCollection=aGt;px.isDocument=Ibn;px.isMap=Pbn;px.isNode=Fbn;px.isPair=Nbn;px.isScalar=oGt;px.isSeq=Obn});var Ide=dr(vit=>{"use strict";var tS=xf(),Ak=Symbol("break visit"),sGt=Symbol("skip children"),R8=Symbol("remove node");function swe(e,r){let i=cGt(r);tS.isDocument(e)?Ree(null,e.contents,i,Object.freeze([e]))===R8&&(e.contents=null):Ree(null,e,i,Object.freeze([]))}swe.BREAK=Ak;swe.SKIP=sGt;swe.REMOVE=R8;function Ree(e,r,i,s){let l=lGt(e,r,i,s);if(tS.isNode(l)||tS.isPair(l))return uGt(e,s,l),Ree(e,l,i,s);if(typeof l!="symbol"){if(tS.isCollection(r)){s=Object.freeze(s.concat(r));for(let d=0;d{"use strict";var pGt=xf(),Lbn=Ide(),Mbn={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},jbn=e=>e.replace(/[!,[\]{}]/g,r=>Mbn[r]),Pde=class e{constructor(r,i){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,r),this.tags=Object.assign({},e.defaultTags,i)}clone(){let r=new e(this.yaml,this.tags);return r.docStart=this.docStart,r}atDocument(){let r=new e(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},e.defaultTags);break}return r}add(r,i){this.atNextDocument&&(this.yaml={explicit:e.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},e.defaultTags),this.atNextDocument=!1);let s=r.trim().split(/[ \t]+/),l=s.shift();switch(l){case"%TAG":{if(s.length!==2&&(i(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;let[d,h]=s;return this.tags[d]=h,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return i(0,"%YAML directive should contain exactly one part"),!1;let[d]=s;if(d==="1.1"||d==="1.2")return this.yaml.version=d,!0;{let h=/^\d+\.\d+$/.test(d);return i(6,`Unsupported YAML version ${d}`,h),!1}}default:return i(0,`Unknown directive ${l}`,!0),!1}}tagName(r,i){if(r==="!")return"!";if(r[0]!=="!")return i(`Not a valid tag: ${r}`),null;if(r[1]==="<"){let h=r.slice(2,-1);return h==="!"||h==="!!"?(i(`Verbatim tags aren't resolved, so ${r} is invalid.`),null):(r[r.length-1]!==">"&&i("Verbatim tags must end with a >"),h)}let[,s,l]=r.match(/^(.*!)([^!]*)$/s);l||i(`The ${r} tag has no suffix`);let d=this.tags[s];if(d)try{return d+decodeURIComponent(l)}catch(h){return i(String(h)),null}return s==="!"?r:(i(`Could not resolve tag: ${r}`),null)}tagString(r){for(let[i,s]of Object.entries(this.tags))if(r.startsWith(s))return i+jbn(r.substring(s.length));return r[0]==="!"?r:`!<${r}>`}toString(r){let i=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags),l;if(r&&s.length>0&&pGt.isNode(r.contents)){let d={};Lbn.visit(r.contents,(h,S)=>{pGt.isNode(S)&&S.tag&&(d[S.tag]=!0)}),l=Object.keys(d)}else l=[];for(let[d,h]of s)d==="!!"&&h==="tag:yaml.org,2002:"||(!r||l.some(S=>S.startsWith(h)))&&i.push(`%TAG ${d} ${h}`);return i.join(` -`)}};Pde.defaultYaml={explicit:!1,version:"1.2"};Pde.defaultTags={"!!":"tag:yaml.org,2002:"};_Gt.Directives=Pde});var lwe=dr(Nde=>{"use strict";var dGt=xf(),Bbn=Ide();function $bn(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let i=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(i)}return!0}function fGt(e){let r=new Set;return Bbn.visit(e,{Value(i,s){s.anchor&&r.add(s.anchor)}}),r}function mGt(e,r){for(let i=1;;++i){let s=`${e}${i}`;if(!r.has(s))return s}}function Ubn(e,r){let i=[],s=new Map,l=null;return{onAnchor:d=>{i.push(d),l??(l=fGt(e));let h=mGt(r,l);return l.add(h),h},setAnchors:()=>{for(let d of i){let h=s.get(d);if(typeof h=="object"&&h.anchor&&(dGt.isScalar(h.node)||dGt.isCollection(h.node)))h.node.anchor=h.anchor;else{let S=new Error("Failed to resolve repeated object (this should not happen)");throw S.source=d,S}}},sourceObjects:s}}Nde.anchorIsValid=$bn;Nde.anchorNames=fGt;Nde.createNodeAnchors=Ubn;Nde.findNewAnchor=mGt});var bit=dr(hGt=>{"use strict";function Ode(e,r,i,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let l=0,d=s.length;l{"use strict";var zbn=xf();function gGt(e,r,i){if(Array.isArray(e))return e.map((s,l)=>gGt(s,String(l),i));if(e&&typeof e.toJSON=="function"){if(!i||!zbn.hasAnchor(e))return e.toJSON(r,i);let s={aliasCount:0,count:1,res:void 0};i.anchors.set(e,s),i.onCreate=d=>{s.res=d,delete i.onCreate};let l=e.toJSON(r,i);return i.onCreate&&i.onCreate(l),l}return typeof e=="bigint"&&!i?.keep?Number(e):e}yGt.toJS=gGt});var uwe=dr(SGt=>{"use strict";var qbn=bit(),vGt=xf(),Jbn=UB(),xit=class{constructor(r){Object.defineProperty(this,vGt.NODE_TYPE,{value:r})}clone(){let r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(r.range=this.range.slice()),r}toJS(r,{mapAsMap:i,maxAliasCount:s,onAnchor:l,reviver:d}={}){if(!vGt.isDocument(r))throw new TypeError("A document argument is required");let h={anchors:new Map,doc:r,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},S=Jbn.toJS(this,"",h);if(typeof l=="function")for(let{count:b,res:A}of h.anchors.values())l(A,b);return typeof d=="function"?qbn.applyReviver(d,{"":S},"",S):S}};SGt.NodeBase=xit});var Fde=dr(bGt=>{"use strict";var Vbn=lwe(),Wbn=Ide(),Mee=xf(),Gbn=uwe(),Hbn=UB(),Tit=class extends Gbn.NodeBase{constructor(r){super(Mee.ALIAS),this.source=r,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(r,i){let s;i?.aliasResolveCache?s=i.aliasResolveCache:(s=[],Wbn.visit(r,{Node:(d,h)=>{(Mee.isAlias(h)||Mee.hasAnchor(h))&&s.push(h)}}),i&&(i.aliasResolveCache=s));let l;for(let d of s){if(d===this)break;d.anchor===this.source&&(l=d)}return l}toJSON(r,i){if(!i)return{source:this.source};let{anchors:s,doc:l,maxAliasCount:d}=i,h=this.resolve(l,i);if(!h){let b=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(b)}let S=s.get(h);if(S||(Hbn.toJS(h,null,i),S=s.get(h)),S?.res===void 0){let b="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(b)}if(d>=0&&(S.count+=1,S.aliasCount===0&&(S.aliasCount=pwe(l,h,s)),S.count*S.aliasCount>d)){let b="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(b)}return S.res}toString(r,i,s){let l=`*${this.source}`;if(r){if(Vbn.anchorIsValid(this.source),r.options.verifyAliasOrder&&!r.anchors.has(this.source)){let d=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(d)}if(r.implicitKey)return`${l} `}return l}};function pwe(e,r,i){if(Mee.isAlias(r)){let s=r.resolve(e),l=i&&s&&i.get(s);return l?l.count*l.aliasCount:0}else if(Mee.isCollection(r)){let s=0;for(let l of r.items){let d=pwe(e,l,i);d>s&&(s=d)}return s}else if(Mee.isPair(r)){let s=pwe(e,r.key,i),l=pwe(e,r.value,i);return Math.max(s,l)}return 1}bGt.Alias=Tit});var uv=dr(Eit=>{"use strict";var Kbn=xf(),Qbn=uwe(),Zbn=UB(),Xbn=e=>!e||typeof e!="function"&&typeof e!="object",zB=class extends Qbn.NodeBase{constructor(r){super(Kbn.SCALAR),this.value=r}toJSON(r,i){return i?.keep?this.value:Zbn.toJS(this.value,r,i)}toString(){return String(this.value)}};zB.BLOCK_FOLDED="BLOCK_FOLDED";zB.BLOCK_LITERAL="BLOCK_LITERAL";zB.PLAIN="PLAIN";zB.QUOTE_DOUBLE="QUOTE_DOUBLE";zB.QUOTE_SINGLE="QUOTE_SINGLE";Eit.Scalar=zB;Eit.isScalarValue=Xbn});var Rde=dr(TGt=>{"use strict";var Ybn=Fde(),rW=xf(),xGt=uv(),exn="tag:yaml.org,2002:";function txn(e,r,i){if(r){let s=i.filter(d=>d.tag===r),l=s.find(d=>!d.format)??s[0];if(!l)throw new Error(`Tag ${r} not found`);return l}return i.find(s=>s.identify?.(e)&&!s.format)}function rxn(e,r,i){if(rW.isDocument(e)&&(e=e.contents),rW.isNode(e))return e;if(rW.isPair(e)){let V=i.schema[rW.MAP].createNode?.(i.schema,null,i);return V.items.push(e),V}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:s,onAnchor:l,onTagObj:d,schema:h,sourceObjects:S}=i,b;if(s&&e&&typeof e=="object"){if(b=S.get(e),b)return b.anchor??(b.anchor=l(e)),new Ybn.Alias(b.anchor);b={anchor:null,node:null},S.set(e,b)}r?.startsWith("!!")&&(r=exn+r.slice(2));let A=txn(e,r,h.tags);if(!A){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){let V=new xGt.Scalar(e);return b&&(b.node=V),V}A=e instanceof Map?h[rW.MAP]:Symbol.iterator in Object(e)?h[rW.SEQ]:h[rW.MAP]}d&&(d(A),delete i.onTagObj);let L=A?.createNode?A.createNode(i.schema,e,i):typeof A?.nodeClass?.from=="function"?A.nodeClass.from(i.schema,e,i):new xGt.Scalar(e);return r?L.tag=r:A.default||(L.tag=A.tag),b&&(b.node=L),L}TGt.createNode=rxn});var dwe=dr(_we=>{"use strict";var nxn=Rde(),L8=xf(),ixn=uwe();function kit(e,r,i){let s=i;for(let l=r.length-1;l>=0;--l){let d=r[l];if(typeof d=="number"&&Number.isInteger(d)&&d>=0){let h=[];h[d]=s,s=h}else s=new Map([[d,s]])}return nxn.createNode(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}var EGt=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done,Cit=class extends ixn.NodeBase{constructor(r,i){super(r),Object.defineProperty(this,"schema",{value:i,configurable:!0,enumerable:!1,writable:!0})}clone(r){let i=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return r&&(i.schema=r),i.items=i.items.map(s=>L8.isNode(s)||L8.isPair(s)?s.clone(r):s),this.range&&(i.range=this.range.slice()),i}addIn(r,i){if(EGt(r))this.add(i);else{let[s,...l]=r,d=this.get(s,!0);if(L8.isCollection(d))d.addIn(l,i);else if(d===void 0&&this.schema)this.set(s,kit(this.schema,l,i));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${l}`)}}deleteIn(r){let[i,...s]=r;if(s.length===0)return this.delete(i);let l=this.get(i,!0);if(L8.isCollection(l))return l.deleteIn(s);throw new Error(`Expected YAML collection at ${i}. Remaining path: ${s}`)}getIn(r,i){let[s,...l]=r,d=this.get(s,!0);return l.length===0?!i&&L8.isScalar(d)?d.value:d:L8.isCollection(d)?d.getIn(l,i):void 0}hasAllNullValues(r){return this.items.every(i=>{if(!L8.isPair(i))return!1;let s=i.value;return s==null||r&&L8.isScalar(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(r){let[i,...s]=r;if(s.length===0)return this.has(i);let l=this.get(i,!0);return L8.isCollection(l)?l.hasIn(s):!1}setIn(r,i){let[s,...l]=r;if(l.length===0)this.set(s,i);else{let d=this.get(s,!0);if(L8.isCollection(d))d.setIn(l,i);else if(d===void 0&&this.schema)this.set(s,kit(this.schema,l,i));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${l}`)}}};_we.Collection=Cit;_we.collectionFromPath=kit;_we.isEmptyPath=EGt});var Lde=dr(fwe=>{"use strict";var oxn=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Dit(e,r){return/^\n+$/.test(e)?e.substring(1):r?e.replace(/^(?! *$)/gm,r):e}var axn=(e,r,i)=>e.endsWith(` -`)?Dit(i,r):i.includes(` +`+t+")"}function $H(e){let t=(0,iyt.astFromValue)(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=` = ${(0,J4.print)(t)}`),r+qH(e.deprecationReason)}function yyt(e){return Zl(e)+"directive @"+e.name+Zve(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function qH(e){return e==null?"":e!==jH.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,J4.print)({kind:MH.Kind.STRING,value:e})})`:" @deprecated"}function gyt(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,J4.print)({kind:MH.Kind.STRING,value:e.specifiedByURL})})`}function Zl(e,t="",r=!0){let{description:n}=e;if(n==null)return"";let o=(0,J4.print)({kind:MH.Kind.STRING,value:n,block:(0,nyt.isPrintableAsBlockString)(n)});return(t&&!r?` +`+t:t)+o.replace(/\n/g,` +`+t)+` +`}});var Qve=L(UH=>{"use strict";Object.defineProperty(UH,"__esModule",{value:!0});UH.concatAST=vyt;var Syt=Sn();function vyt(e){let t=[];for(let r of e)t.push(...r.definitions);return{kind:Syt.Kind.DOCUMENT,definitions:t}}});var e1e=L(zH=>{"use strict";Object.defineProperty(zH,"__esModule",{value:!0});zH.separateOperations=xyt;var K4=Sn(),byt=Gg();function xyt(e){let t=[],r=Object.create(null);for(let o of e.definitions)switch(o.kind){case K4.Kind.OPERATION_DEFINITION:t.push(o);break;case K4.Kind.FRAGMENT_DEFINITION:r[o.name.value]=Xve(o.selectionSet);break;default:}let n=Object.create(null);for(let o of t){let i=new Set;for(let s of Xve(o.selectionSet))Yve(i,r,s);let a=o.name?o.name.value:"";n[a]={kind:K4.Kind.DOCUMENT,definitions:e.definitions.filter(s=>s===o||s.kind===K4.Kind.FRAGMENT_DEFINITION&&i.has(s.name.value))}}return n}function Yve(e,t,r){if(!e.has(r)){e.add(r);let n=t[r];if(n!==void 0)for(let o of n)Yve(e,t,o)}}function Xve(e){let t=[];return(0,byt.visit)(e,{FragmentSpread(r){t.push(r.name.value)}}),t}});var n1e=L(JH=>{"use strict";Object.defineProperty(JH,"__esModule",{value:!0});JH.stripIgnoredCharacters=Tyt;var Eyt=d2(),t1e=m2(),r1e=MO(),VH=w1();function Tyt(e){let t=(0,r1e.isSource)(e)?e:new r1e.Source(e),r=t.body,n=new t1e.Lexer(t),o="",i=!1;for(;n.advance().kind!==VH.TokenKind.EOF;){let a=n.token,s=a.kind,c=!(0,t1e.isPunctuatorTokenKind)(a.kind);i&&(c||a.kind===VH.TokenKind.SPREAD)&&(o+=" ");let p=r.slice(a.start,a.end);s===VH.TokenKind.BLOCK_STRING?o+=(0,Eyt.printBlockString)(a.value,{minimize:!0}):o+=p,i=c}return o}});var i1e=L(G4=>{"use strict";Object.defineProperty(G4,"__esModule",{value:!0});G4.assertValidName=Iyt;G4.isValidNameError=o1e;var Dyt=Ls(),Ayt=ar(),wyt=b2();function Iyt(e){let t=o1e(e);if(t)throw t;return e}function o1e(e){if(typeof e=="string"||(0,Dyt.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new Ayt.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,wyt.assertName)(e)}catch(t){return t}}});var _1e=L(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.DangerousChangeType=Ed.BreakingChangeType=void 0;Ed.findBreakingChanges=Fyt;Ed.findDangerousChanges=Ryt;var kyt=eo(),p1e=us(),a1e=Sh(),Cyt=Gc(),Kn=vn(),Pyt=Sd(),Oyt=N2(),Nyt=KK(),bi;Ed.BreakingChangeType=bi;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(bi||(Ed.BreakingChangeType=bi={}));var Qu;Ed.DangerousChangeType=Qu;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(Qu||(Ed.DangerousChangeType=Qu={}));function Fyt(e,t){return d1e(e,t).filter(r=>r.type in bi)}function Ryt(e,t){return d1e(e,t).filter(r=>r.type in Qu)}function d1e(e,t){return[...$yt(e,t),...Lyt(e,t)]}function Lyt(e,t){let r=[],n=df(e.getDirectives(),t.getDirectives());for(let o of n.removed)r.push({type:bi.DIRECTIVE_REMOVED,description:`${o.name} was removed.`});for(let[o,i]of n.persisted){let a=df(o.args,i.args);for(let s of a.added)(0,Kn.isRequiredArgument)(s)&&r.push({type:bi.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${s.name} on directive ${o.name} was added.`});for(let s of a.removed)r.push({type:bi.DIRECTIVE_ARG_REMOVED,description:`${s.name} was removed from ${o.name}.`});o.isRepeatable&&!i.isRepeatable&&r.push({type:bi.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${o.name}.`});for(let s of o.locations)i.locations.includes(s)||r.push({type:bi.DIRECTIVE_LOCATION_REMOVED,description:`${s} was removed from ${o.name}.`})}return r}function $yt(e,t){let r=[],n=df(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let o of n.removed)r.push({type:bi.TYPE_REMOVED,description:(0,Pyt.isSpecifiedScalarType)(o)?`Standard scalar ${o.name} was removed because it is not referenced anymore.`:`${o.name} was removed.`});for(let[o,i]of n.persisted)(0,Kn.isEnumType)(o)&&(0,Kn.isEnumType)(i)?r.push(...Byt(o,i)):(0,Kn.isUnionType)(o)&&(0,Kn.isUnionType)(i)?r.push(...jyt(o,i)):(0,Kn.isInputObjectType)(o)&&(0,Kn.isInputObjectType)(i)?r.push(...Myt(o,i)):(0,Kn.isObjectType)(o)&&(0,Kn.isObjectType)(i)?r.push(...c1e(o,i),...s1e(o,i)):(0,Kn.isInterfaceType)(o)&&(0,Kn.isInterfaceType)(i)?r.push(...c1e(o,i),...s1e(o,i)):o.constructor!==i.constructor&&r.push({type:bi.TYPE_CHANGED_KIND,description:`${o.name} changed from ${l1e(o)} to ${l1e(i)}.`});return r}function Myt(e,t){let r=[],n=df(Object.values(e.getFields()),Object.values(t.getFields()));for(let o of n.added)(0,Kn.isRequiredInputField)(o)?r.push({type:bi.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${o.name} on input type ${e.name} was added.`}):r.push({type:Qu.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${o.name} on input type ${e.name} was added.`});for(let o of n.removed)r.push({type:bi.FIELD_REMOVED,description:`${e.name}.${o.name} was removed.`});for(let[o,i]of n.persisted)oA(o.type,i.type)||r.push({type:bi.FIELD_CHANGED_KIND,description:`${e.name}.${o.name} changed type from ${String(o.type)} to ${String(i.type)}.`});return r}function jyt(e,t){let r=[],n=df(e.getTypes(),t.getTypes());for(let o of n.added)r.push({type:Qu.TYPE_ADDED_TO_UNION,description:`${o.name} was added to union type ${e.name}.`});for(let o of n.removed)r.push({type:bi.TYPE_REMOVED_FROM_UNION,description:`${o.name} was removed from union type ${e.name}.`});return r}function Byt(e,t){let r=[],n=df(e.getValues(),t.getValues());for(let o of n.added)r.push({type:Qu.VALUE_ADDED_TO_ENUM,description:`${o.name} was added to enum type ${e.name}.`});for(let o of n.removed)r.push({type:bi.VALUE_REMOVED_FROM_ENUM,description:`${o.name} was removed from enum type ${e.name}.`});return r}function s1e(e,t){let r=[],n=df(e.getInterfaces(),t.getInterfaces());for(let o of n.added)r.push({type:Qu.IMPLEMENTED_INTERFACE_ADDED,description:`${o.name} added to interfaces implemented by ${e.name}.`});for(let o of n.removed)r.push({type:bi.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${o.name}.`});return r}function c1e(e,t){let r=[],n=df(Object.values(e.getFields()),Object.values(t.getFields()));for(let o of n.removed)r.push({type:bi.FIELD_REMOVED,description:`${e.name}.${o.name} was removed.`});for(let[o,i]of n.persisted)r.push(...qyt(e,o,i)),nA(o.type,i.type)||r.push({type:bi.FIELD_CHANGED_KIND,description:`${e.name}.${o.name} changed type from ${String(o.type)} to ${String(i.type)}.`});return r}function qyt(e,t,r){let n=[],o=df(t.args,r.args);for(let i of o.removed)n.push({type:bi.ARG_REMOVED,description:`${e.name}.${t.name} arg ${i.name} was removed.`});for(let[i,a]of o.persisted)if(!oA(i.type,a.type))n.push({type:bi.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${i.name} has changed type from ${String(i.type)} to ${String(a.type)}.`});else if(i.defaultValue!==void 0)if(a.defaultValue===void 0)n.push({type:Qu.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${i.name} defaultValue was removed.`});else{let c=u1e(i.defaultValue,i.type),p=u1e(a.defaultValue,a.type);c!==p&&n.push({type:Qu.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${i.name} has changed defaultValue from ${c} to ${p}.`})}for(let i of o.added)(0,Kn.isRequiredArgument)(i)?n.push({type:bi.REQUIRED_ARG_ADDED,description:`A required arg ${i.name} on ${e.name}.${t.name} was added.`}):n.push({type:Qu.OPTIONAL_ARG_ADDED,description:`An optional arg ${i.name} on ${e.name}.${t.name} was added.`});return n}function nA(e,t){return(0,Kn.isListType)(e)?(0,Kn.isListType)(t)&&nA(e.ofType,t.ofType)||(0,Kn.isNonNullType)(t)&&nA(e,t.ofType):(0,Kn.isNonNullType)(e)?(0,Kn.isNonNullType)(t)&&nA(e.ofType,t.ofType):(0,Kn.isNamedType)(t)&&e.name===t.name||(0,Kn.isNonNullType)(t)&&nA(e,t.ofType)}function oA(e,t){return(0,Kn.isListType)(e)?(0,Kn.isListType)(t)&&oA(e.ofType,t.ofType):(0,Kn.isNonNullType)(e)?(0,Kn.isNonNullType)(t)&&oA(e.ofType,t.ofType)||!(0,Kn.isNonNullType)(t)&&oA(e.ofType,t):(0,Kn.isNamedType)(t)&&e.name===t.name}function l1e(e){if((0,Kn.isScalarType)(e))return"a Scalar type";if((0,Kn.isObjectType)(e))return"an Object type";if((0,Kn.isInterfaceType)(e))return"an Interface type";if((0,Kn.isUnionType)(e))return"a Union type";if((0,Kn.isEnumType)(e))return"an Enum type";if((0,Kn.isInputObjectType)(e))return"an Input type";(0,p1e.invariant)(!1,"Unexpected type: "+(0,kyt.inspect)(e))}function u1e(e,t){let r=(0,Oyt.astFromValue)(e,t);return r!=null||(0,p1e.invariant)(!1),(0,Cyt.print)((0,Nyt.sortValueNode)(r))}function df(e,t){let r=[],n=[],o=[],i=(0,a1e.keyMap)(e,({name:s})=>s),a=(0,a1e.keyMap)(t,({name:s})=>s);for(let s of e){let c=a[s.name];c===void 0?n.push(s):o.push([s,c])}for(let s of t)i[s.name]===void 0&&r.push(s);return{added:r,persisted:o,removed:n}}});var m1e=L(H4=>{"use strict";Object.defineProperty(H4,"__esModule",{value:!0});H4.resolveASTSchemaCoordinate=f1e;H4.resolveSchemaCoordinate=zyt;var sS=eo(),iA=Sn(),Uyt=Kg(),wh=vn();function zyt(e,t){return f1e(e,(0,Uyt.parseSchemaCoordinate)(t))}function Vyt(e,t){let r=t.name.value,n=e.getType(r);if(n!=null)return{kind:"NamedType",type:n}}function Jyt(e,t){let r=t.name.value,n=e.getType(r);if(!n)throw new Error(`Expected ${(0,sS.inspect)(r)} to be defined as a type in the schema.`);if(!(0,wh.isEnumType)(n)&&!(0,wh.isInputObjectType)(n)&&!(0,wh.isObjectType)(n)&&!(0,wh.isInterfaceType)(n))throw new Error(`Expected ${(0,sS.inspect)(r)} to be an Enum, Input Object, Object or Interface type.`);if((0,wh.isEnumType)(n)){let a=t.memberName.value,s=n.getValue(a);return s==null?void 0:{kind:"EnumValue",type:n,enumValue:s}}if((0,wh.isInputObjectType)(n)){let a=t.memberName.value,s=n.getFields()[a];return s==null?void 0:{kind:"InputField",type:n,inputField:s}}let o=t.memberName.value,i=n.getFields()[o];if(i!=null)return{kind:"Field",type:n,field:i}}function Kyt(e,t){let r=t.name.value,n=e.getType(r);if(n==null)throw new Error(`Expected ${(0,sS.inspect)(r)} to be defined as a type in the schema.`);if(!(0,wh.isObjectType)(n)&&!(0,wh.isInterfaceType)(n))throw new Error(`Expected ${(0,sS.inspect)(r)} to be an object type or interface type.`);let o=t.fieldName.value,i=n.getFields()[o];if(i==null)throw new Error(`Expected ${(0,sS.inspect)(o)} to exist as a field of type ${(0,sS.inspect)(r)} in the schema.`);let a=t.argumentName.value,s=i.args.find(c=>c.name===a);if(s!=null)return{kind:"FieldArgument",type:n,field:i,fieldArgument:s}}function Gyt(e,t){let r=t.name.value,n=e.getDirective(r);if(n)return{kind:"Directive",directive:n}}function Hyt(e,t){let r=t.name.value,n=e.getDirective(r);if(!n)throw new Error(`Expected ${(0,sS.inspect)(r)} to be defined as a directive in the schema.`);let{argumentName:{value:o}}=t,i=n.args.find(a=>a.name===o);if(i)return{kind:"DirectiveArgument",directive:n,directiveArgument:i}}function f1e(e,t){switch(t.kind){case iA.Kind.TYPE_COORDINATE:return Vyt(e,t);case iA.Kind.MEMBER_COORDINATE:return Jyt(e,t);case iA.Kind.ARGUMENT_COORDINATE:return Kyt(e,t);case iA.Kind.DIRECTIVE_COORDINATE:return Gyt(e,t);case iA.Kind.DIRECTIVE_ARGUMENT_COORDINATE:return Hyt(e,t)}}});var v1e=L(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Object.defineProperty(Pn,"BreakingChangeType",{enumerable:!0,get:function(){return Z4.BreakingChangeType}});Object.defineProperty(Pn,"DangerousChangeType",{enumerable:!0,get:function(){return Z4.DangerousChangeType}});Object.defineProperty(Pn,"TypeInfo",{enumerable:!0,get:function(){return y1e.TypeInfo}});Object.defineProperty(Pn,"assertValidName",{enumerable:!0,get:function(){return g1e.assertValidName}});Object.defineProperty(Pn,"astFromValue",{enumerable:!0,get:function(){return igt.astFromValue}});Object.defineProperty(Pn,"buildASTSchema",{enumerable:!0,get:function(){return h1e.buildASTSchema}});Object.defineProperty(Pn,"buildClientSchema",{enumerable:!0,get:function(){return Yyt.buildClientSchema}});Object.defineProperty(Pn,"buildSchema",{enumerable:!0,get:function(){return h1e.buildSchema}});Object.defineProperty(Pn,"coerceInputValue",{enumerable:!0,get:function(){return agt.coerceInputValue}});Object.defineProperty(Pn,"concatAST",{enumerable:!0,get:function(){return sgt.concatAST}});Object.defineProperty(Pn,"doTypesOverlap",{enumerable:!0,get:function(){return GH.doTypesOverlap}});Object.defineProperty(Pn,"extendSchema",{enumerable:!0,get:function(){return egt.extendSchema}});Object.defineProperty(Pn,"findBreakingChanges",{enumerable:!0,get:function(){return Z4.findBreakingChanges}});Object.defineProperty(Pn,"findDangerousChanges",{enumerable:!0,get:function(){return Z4.findDangerousChanges}});Object.defineProperty(Pn,"getIntrospectionQuery",{enumerable:!0,get:function(){return Zyt.getIntrospectionQuery}});Object.defineProperty(Pn,"getOperationAST",{enumerable:!0,get:function(){return Wyt.getOperationAST}});Object.defineProperty(Pn,"getOperationRootType",{enumerable:!0,get:function(){return Qyt.getOperationRootType}});Object.defineProperty(Pn,"introspectionFromSchema",{enumerable:!0,get:function(){return Xyt.introspectionFromSchema}});Object.defineProperty(Pn,"isEqualType",{enumerable:!0,get:function(){return GH.isEqualType}});Object.defineProperty(Pn,"isTypeSubTypeOf",{enumerable:!0,get:function(){return GH.isTypeSubTypeOf}});Object.defineProperty(Pn,"isValidNameError",{enumerable:!0,get:function(){return g1e.isValidNameError}});Object.defineProperty(Pn,"lexicographicSortSchema",{enumerable:!0,get:function(){return tgt.lexicographicSortSchema}});Object.defineProperty(Pn,"printIntrospectionSchema",{enumerable:!0,get:function(){return KH.printIntrospectionSchema}});Object.defineProperty(Pn,"printSchema",{enumerable:!0,get:function(){return KH.printSchema}});Object.defineProperty(Pn,"printType",{enumerable:!0,get:function(){return KH.printType}});Object.defineProperty(Pn,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return S1e.resolveASTSchemaCoordinate}});Object.defineProperty(Pn,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return S1e.resolveSchemaCoordinate}});Object.defineProperty(Pn,"separateOperations",{enumerable:!0,get:function(){return cgt.separateOperations}});Object.defineProperty(Pn,"stripIgnoredCharacters",{enumerable:!0,get:function(){return lgt.stripIgnoredCharacters}});Object.defineProperty(Pn,"typeFromAST",{enumerable:!0,get:function(){return rgt.typeFromAST}});Object.defineProperty(Pn,"valueFromAST",{enumerable:!0,get:function(){return ngt.valueFromAST}});Object.defineProperty(Pn,"valueFromASTUntyped",{enumerable:!0,get:function(){return ogt.valueFromASTUntyped}});Object.defineProperty(Pn,"visitWithTypeInfo",{enumerable:!0,get:function(){return y1e.visitWithTypeInfo}});var Zyt=IH(),Wyt=Ave(),Qyt=wve(),Xyt=Ive(),Yyt=Cve(),h1e=Bve(),egt=FH(),tgt=zve(),KH=Wve(),rgt=vd(),ngt=z2(),ogt=UJ(),igt=N2(),y1e=f4(),agt=fG(),sgt=Qve(),cgt=e1e(),lgt=n1e(),GH=A2(),g1e=i1e(),Z4=_1e(),S1e=m1e()});var E1e=L(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Object.defineProperty(Q,"BREAK",{enumerable:!0,get:function(){return zn.BREAK}});Object.defineProperty(Q,"BreakingChangeType",{enumerable:!0,get:function(){return Vn.BreakingChangeType}});Object.defineProperty(Q,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Xe.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(Q,"DangerousChangeType",{enumerable:!0,get:function(){return Vn.DangerousChangeType}});Object.defineProperty(Q,"DirectiveLocation",{enumerable:!0,get:function(){return zn.DirectiveLocation}});Object.defineProperty(Q,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return Gr.ExecutableDefinitionsRule}});Object.defineProperty(Q,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return Gr.FieldsOnCorrectTypeRule}});Object.defineProperty(Q,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return Gr.FragmentsOnCompositeTypesRule}});Object.defineProperty(Q,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Xe.GRAPHQL_MAX_INT}});Object.defineProperty(Q,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Xe.GRAPHQL_MIN_INT}});Object.defineProperty(Q,"GraphQLBoolean",{enumerable:!0,get:function(){return Xe.GraphQLBoolean}});Object.defineProperty(Q,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Xe.GraphQLDeprecatedDirective}});Object.defineProperty(Q,"GraphQLDirective",{enumerable:!0,get:function(){return Xe.GraphQLDirective}});Object.defineProperty(Q,"GraphQLEnumType",{enumerable:!0,get:function(){return Xe.GraphQLEnumType}});Object.defineProperty(Q,"GraphQLError",{enumerable:!0,get:function(){return aA.GraphQLError}});Object.defineProperty(Q,"GraphQLFloat",{enumerable:!0,get:function(){return Xe.GraphQLFloat}});Object.defineProperty(Q,"GraphQLID",{enumerable:!0,get:function(){return Xe.GraphQLID}});Object.defineProperty(Q,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Xe.GraphQLIncludeDirective}});Object.defineProperty(Q,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Xe.GraphQLInputObjectType}});Object.defineProperty(Q,"GraphQLInt",{enumerable:!0,get:function(){return Xe.GraphQLInt}});Object.defineProperty(Q,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Xe.GraphQLInterfaceType}});Object.defineProperty(Q,"GraphQLList",{enumerable:!0,get:function(){return Xe.GraphQLList}});Object.defineProperty(Q,"GraphQLNonNull",{enumerable:!0,get:function(){return Xe.GraphQLNonNull}});Object.defineProperty(Q,"GraphQLObjectType",{enumerable:!0,get:function(){return Xe.GraphQLObjectType}});Object.defineProperty(Q,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Xe.GraphQLOneOfDirective}});Object.defineProperty(Q,"GraphQLScalarType",{enumerable:!0,get:function(){return Xe.GraphQLScalarType}});Object.defineProperty(Q,"GraphQLSchema",{enumerable:!0,get:function(){return Xe.GraphQLSchema}});Object.defineProperty(Q,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Xe.GraphQLSkipDirective}});Object.defineProperty(Q,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Xe.GraphQLSpecifiedByDirective}});Object.defineProperty(Q,"GraphQLString",{enumerable:!0,get:function(){return Xe.GraphQLString}});Object.defineProperty(Q,"GraphQLUnionType",{enumerable:!0,get:function(){return Xe.GraphQLUnionType}});Object.defineProperty(Q,"Kind",{enumerable:!0,get:function(){return zn.Kind}});Object.defineProperty(Q,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return Gr.KnownArgumentNamesRule}});Object.defineProperty(Q,"KnownDirectivesRule",{enumerable:!0,get:function(){return Gr.KnownDirectivesRule}});Object.defineProperty(Q,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return Gr.KnownFragmentNamesRule}});Object.defineProperty(Q,"KnownTypeNamesRule",{enumerable:!0,get:function(){return Gr.KnownTypeNamesRule}});Object.defineProperty(Q,"Lexer",{enumerable:!0,get:function(){return zn.Lexer}});Object.defineProperty(Q,"Location",{enumerable:!0,get:function(){return zn.Location}});Object.defineProperty(Q,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return Gr.LoneAnonymousOperationRule}});Object.defineProperty(Q,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return Gr.LoneSchemaDefinitionRule}});Object.defineProperty(Q,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return Gr.MaxIntrospectionDepthRule}});Object.defineProperty(Q,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return Gr.NoDeprecatedCustomRule}});Object.defineProperty(Q,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return Gr.NoFragmentCyclesRule}});Object.defineProperty(Q,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return Gr.NoSchemaIntrospectionCustomRule}});Object.defineProperty(Q,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return Gr.NoUndefinedVariablesRule}});Object.defineProperty(Q,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return Gr.NoUnusedFragmentsRule}});Object.defineProperty(Q,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return Gr.NoUnusedVariablesRule}});Object.defineProperty(Q,"OperationTypeNode",{enumerable:!0,get:function(){return zn.OperationTypeNode}});Object.defineProperty(Q,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return Gr.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Q,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return Gr.PossibleFragmentSpreadsRule}});Object.defineProperty(Q,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return Gr.PossibleTypeExtensionsRule}});Object.defineProperty(Q,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return Gr.ProvidedRequiredArgumentsRule}});Object.defineProperty(Q,"ScalarLeafsRule",{enumerable:!0,get:function(){return Gr.ScalarLeafsRule}});Object.defineProperty(Q,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Xe.SchemaMetaFieldDef}});Object.defineProperty(Q,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return Gr.SingleFieldSubscriptionsRule}});Object.defineProperty(Q,"Source",{enumerable:!0,get:function(){return zn.Source}});Object.defineProperty(Q,"Token",{enumerable:!0,get:function(){return zn.Token}});Object.defineProperty(Q,"TokenKind",{enumerable:!0,get:function(){return zn.TokenKind}});Object.defineProperty(Q,"TypeInfo",{enumerable:!0,get:function(){return Vn.TypeInfo}});Object.defineProperty(Q,"TypeKind",{enumerable:!0,get:function(){return Xe.TypeKind}});Object.defineProperty(Q,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Xe.TypeMetaFieldDef}});Object.defineProperty(Q,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Xe.TypeNameMetaFieldDef}});Object.defineProperty(Q,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return Gr.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(Q,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return Gr.UniqueArgumentNamesRule}});Object.defineProperty(Q,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return Gr.UniqueDirectiveNamesRule}});Object.defineProperty(Q,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return Gr.UniqueDirectivesPerLocationRule}});Object.defineProperty(Q,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return Gr.UniqueEnumValueNamesRule}});Object.defineProperty(Q,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return Gr.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Q,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return Gr.UniqueFragmentNamesRule}});Object.defineProperty(Q,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return Gr.UniqueInputFieldNamesRule}});Object.defineProperty(Q,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return Gr.UniqueOperationNamesRule}});Object.defineProperty(Q,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return Gr.UniqueOperationTypesRule}});Object.defineProperty(Q,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return Gr.UniqueTypeNamesRule}});Object.defineProperty(Q,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return Gr.UniqueVariableNamesRule}});Object.defineProperty(Q,"ValidationContext",{enumerable:!0,get:function(){return Gr.ValidationContext}});Object.defineProperty(Q,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return Gr.ValuesOfCorrectTypeRule}});Object.defineProperty(Q,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return Gr.VariablesAreInputTypesRule}});Object.defineProperty(Q,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return Gr.VariablesInAllowedPositionRule}});Object.defineProperty(Q,"__Directive",{enumerable:!0,get:function(){return Xe.__Directive}});Object.defineProperty(Q,"__DirectiveLocation",{enumerable:!0,get:function(){return Xe.__DirectiveLocation}});Object.defineProperty(Q,"__EnumValue",{enumerable:!0,get:function(){return Xe.__EnumValue}});Object.defineProperty(Q,"__Field",{enumerable:!0,get:function(){return Xe.__Field}});Object.defineProperty(Q,"__InputValue",{enumerable:!0,get:function(){return Xe.__InputValue}});Object.defineProperty(Q,"__Schema",{enumerable:!0,get:function(){return Xe.__Schema}});Object.defineProperty(Q,"__Type",{enumerable:!0,get:function(){return Xe.__Type}});Object.defineProperty(Q,"__TypeKind",{enumerable:!0,get:function(){return Xe.__TypeKind}});Object.defineProperty(Q,"assertAbstractType",{enumerable:!0,get:function(){return Xe.assertAbstractType}});Object.defineProperty(Q,"assertCompositeType",{enumerable:!0,get:function(){return Xe.assertCompositeType}});Object.defineProperty(Q,"assertDirective",{enumerable:!0,get:function(){return Xe.assertDirective}});Object.defineProperty(Q,"assertEnumType",{enumerable:!0,get:function(){return Xe.assertEnumType}});Object.defineProperty(Q,"assertEnumValueName",{enumerable:!0,get:function(){return Xe.assertEnumValueName}});Object.defineProperty(Q,"assertInputObjectType",{enumerable:!0,get:function(){return Xe.assertInputObjectType}});Object.defineProperty(Q,"assertInputType",{enumerable:!0,get:function(){return Xe.assertInputType}});Object.defineProperty(Q,"assertInterfaceType",{enumerable:!0,get:function(){return Xe.assertInterfaceType}});Object.defineProperty(Q,"assertLeafType",{enumerable:!0,get:function(){return Xe.assertLeafType}});Object.defineProperty(Q,"assertListType",{enumerable:!0,get:function(){return Xe.assertListType}});Object.defineProperty(Q,"assertName",{enumerable:!0,get:function(){return Xe.assertName}});Object.defineProperty(Q,"assertNamedType",{enumerable:!0,get:function(){return Xe.assertNamedType}});Object.defineProperty(Q,"assertNonNullType",{enumerable:!0,get:function(){return Xe.assertNonNullType}});Object.defineProperty(Q,"assertNullableType",{enumerable:!0,get:function(){return Xe.assertNullableType}});Object.defineProperty(Q,"assertObjectType",{enumerable:!0,get:function(){return Xe.assertObjectType}});Object.defineProperty(Q,"assertOutputType",{enumerable:!0,get:function(){return Xe.assertOutputType}});Object.defineProperty(Q,"assertScalarType",{enumerable:!0,get:function(){return Xe.assertScalarType}});Object.defineProperty(Q,"assertSchema",{enumerable:!0,get:function(){return Xe.assertSchema}});Object.defineProperty(Q,"assertType",{enumerable:!0,get:function(){return Xe.assertType}});Object.defineProperty(Q,"assertUnionType",{enumerable:!0,get:function(){return Xe.assertUnionType}});Object.defineProperty(Q,"assertValidName",{enumerable:!0,get:function(){return Vn.assertValidName}});Object.defineProperty(Q,"assertValidSchema",{enumerable:!0,get:function(){return Xe.assertValidSchema}});Object.defineProperty(Q,"assertWrappingType",{enumerable:!0,get:function(){return Xe.assertWrappingType}});Object.defineProperty(Q,"astFromValue",{enumerable:!0,get:function(){return Vn.astFromValue}});Object.defineProperty(Q,"buildASTSchema",{enumerable:!0,get:function(){return Vn.buildASTSchema}});Object.defineProperty(Q,"buildClientSchema",{enumerable:!0,get:function(){return Vn.buildClientSchema}});Object.defineProperty(Q,"buildSchema",{enumerable:!0,get:function(){return Vn.buildSchema}});Object.defineProperty(Q,"coerceInputValue",{enumerable:!0,get:function(){return Vn.coerceInputValue}});Object.defineProperty(Q,"concatAST",{enumerable:!0,get:function(){return Vn.concatAST}});Object.defineProperty(Q,"createSourceEventStream",{enumerable:!0,get:function(){return Td.createSourceEventStream}});Object.defineProperty(Q,"defaultFieldResolver",{enumerable:!0,get:function(){return Td.defaultFieldResolver}});Object.defineProperty(Q,"defaultTypeResolver",{enumerable:!0,get:function(){return Td.defaultTypeResolver}});Object.defineProperty(Q,"doTypesOverlap",{enumerable:!0,get:function(){return Vn.doTypesOverlap}});Object.defineProperty(Q,"execute",{enumerable:!0,get:function(){return Td.execute}});Object.defineProperty(Q,"executeSync",{enumerable:!0,get:function(){return Td.executeSync}});Object.defineProperty(Q,"extendSchema",{enumerable:!0,get:function(){return Vn.extendSchema}});Object.defineProperty(Q,"findBreakingChanges",{enumerable:!0,get:function(){return Vn.findBreakingChanges}});Object.defineProperty(Q,"findDangerousChanges",{enumerable:!0,get:function(){return Vn.findDangerousChanges}});Object.defineProperty(Q,"formatError",{enumerable:!0,get:function(){return aA.formatError}});Object.defineProperty(Q,"getArgumentValues",{enumerable:!0,get:function(){return Td.getArgumentValues}});Object.defineProperty(Q,"getDirectiveValues",{enumerable:!0,get:function(){return Td.getDirectiveValues}});Object.defineProperty(Q,"getEnterLeaveForKind",{enumerable:!0,get:function(){return zn.getEnterLeaveForKind}});Object.defineProperty(Q,"getIntrospectionQuery",{enumerable:!0,get:function(){return Vn.getIntrospectionQuery}});Object.defineProperty(Q,"getLocation",{enumerable:!0,get:function(){return zn.getLocation}});Object.defineProperty(Q,"getNamedType",{enumerable:!0,get:function(){return Xe.getNamedType}});Object.defineProperty(Q,"getNullableType",{enumerable:!0,get:function(){return Xe.getNullableType}});Object.defineProperty(Q,"getOperationAST",{enumerable:!0,get:function(){return Vn.getOperationAST}});Object.defineProperty(Q,"getOperationRootType",{enumerable:!0,get:function(){return Vn.getOperationRootType}});Object.defineProperty(Q,"getVariableValues",{enumerable:!0,get:function(){return Td.getVariableValues}});Object.defineProperty(Q,"getVisitFn",{enumerable:!0,get:function(){return zn.getVisitFn}});Object.defineProperty(Q,"graphql",{enumerable:!0,get:function(){return x1e.graphql}});Object.defineProperty(Q,"graphqlSync",{enumerable:!0,get:function(){return x1e.graphqlSync}});Object.defineProperty(Q,"introspectionFromSchema",{enumerable:!0,get:function(){return Vn.introspectionFromSchema}});Object.defineProperty(Q,"introspectionTypes",{enumerable:!0,get:function(){return Xe.introspectionTypes}});Object.defineProperty(Q,"isAbstractType",{enumerable:!0,get:function(){return Xe.isAbstractType}});Object.defineProperty(Q,"isCompositeType",{enumerable:!0,get:function(){return Xe.isCompositeType}});Object.defineProperty(Q,"isConstValueNode",{enumerable:!0,get:function(){return zn.isConstValueNode}});Object.defineProperty(Q,"isDefinitionNode",{enumerable:!0,get:function(){return zn.isDefinitionNode}});Object.defineProperty(Q,"isDirective",{enumerable:!0,get:function(){return Xe.isDirective}});Object.defineProperty(Q,"isEnumType",{enumerable:!0,get:function(){return Xe.isEnumType}});Object.defineProperty(Q,"isEqualType",{enumerable:!0,get:function(){return Vn.isEqualType}});Object.defineProperty(Q,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return zn.isExecutableDefinitionNode}});Object.defineProperty(Q,"isInputObjectType",{enumerable:!0,get:function(){return Xe.isInputObjectType}});Object.defineProperty(Q,"isInputType",{enumerable:!0,get:function(){return Xe.isInputType}});Object.defineProperty(Q,"isInterfaceType",{enumerable:!0,get:function(){return Xe.isInterfaceType}});Object.defineProperty(Q,"isIntrospectionType",{enumerable:!0,get:function(){return Xe.isIntrospectionType}});Object.defineProperty(Q,"isLeafType",{enumerable:!0,get:function(){return Xe.isLeafType}});Object.defineProperty(Q,"isListType",{enumerable:!0,get:function(){return Xe.isListType}});Object.defineProperty(Q,"isNamedType",{enumerable:!0,get:function(){return Xe.isNamedType}});Object.defineProperty(Q,"isNonNullType",{enumerable:!0,get:function(){return Xe.isNonNullType}});Object.defineProperty(Q,"isNullableType",{enumerable:!0,get:function(){return Xe.isNullableType}});Object.defineProperty(Q,"isObjectType",{enumerable:!0,get:function(){return Xe.isObjectType}});Object.defineProperty(Q,"isOutputType",{enumerable:!0,get:function(){return Xe.isOutputType}});Object.defineProperty(Q,"isRequiredArgument",{enumerable:!0,get:function(){return Xe.isRequiredArgument}});Object.defineProperty(Q,"isRequiredInputField",{enumerable:!0,get:function(){return Xe.isRequiredInputField}});Object.defineProperty(Q,"isScalarType",{enumerable:!0,get:function(){return Xe.isScalarType}});Object.defineProperty(Q,"isSchema",{enumerable:!0,get:function(){return Xe.isSchema}});Object.defineProperty(Q,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return zn.isSchemaCoordinateNode}});Object.defineProperty(Q,"isSelectionNode",{enumerable:!0,get:function(){return zn.isSelectionNode}});Object.defineProperty(Q,"isSpecifiedDirective",{enumerable:!0,get:function(){return Xe.isSpecifiedDirective}});Object.defineProperty(Q,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Xe.isSpecifiedScalarType}});Object.defineProperty(Q,"isType",{enumerable:!0,get:function(){return Xe.isType}});Object.defineProperty(Q,"isTypeDefinitionNode",{enumerable:!0,get:function(){return zn.isTypeDefinitionNode}});Object.defineProperty(Q,"isTypeExtensionNode",{enumerable:!0,get:function(){return zn.isTypeExtensionNode}});Object.defineProperty(Q,"isTypeNode",{enumerable:!0,get:function(){return zn.isTypeNode}});Object.defineProperty(Q,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Vn.isTypeSubTypeOf}});Object.defineProperty(Q,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return zn.isTypeSystemDefinitionNode}});Object.defineProperty(Q,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return zn.isTypeSystemExtensionNode}});Object.defineProperty(Q,"isUnionType",{enumerable:!0,get:function(){return Xe.isUnionType}});Object.defineProperty(Q,"isValidNameError",{enumerable:!0,get:function(){return Vn.isValidNameError}});Object.defineProperty(Q,"isValueNode",{enumerable:!0,get:function(){return zn.isValueNode}});Object.defineProperty(Q,"isWrappingType",{enumerable:!0,get:function(){return Xe.isWrappingType}});Object.defineProperty(Q,"lexicographicSortSchema",{enumerable:!0,get:function(){return Vn.lexicographicSortSchema}});Object.defineProperty(Q,"locatedError",{enumerable:!0,get:function(){return aA.locatedError}});Object.defineProperty(Q,"parse",{enumerable:!0,get:function(){return zn.parse}});Object.defineProperty(Q,"parseConstValue",{enumerable:!0,get:function(){return zn.parseConstValue}});Object.defineProperty(Q,"parseSchemaCoordinate",{enumerable:!0,get:function(){return zn.parseSchemaCoordinate}});Object.defineProperty(Q,"parseType",{enumerable:!0,get:function(){return zn.parseType}});Object.defineProperty(Q,"parseValue",{enumerable:!0,get:function(){return zn.parseValue}});Object.defineProperty(Q,"print",{enumerable:!0,get:function(){return zn.print}});Object.defineProperty(Q,"printError",{enumerable:!0,get:function(){return aA.printError}});Object.defineProperty(Q,"printIntrospectionSchema",{enumerable:!0,get:function(){return Vn.printIntrospectionSchema}});Object.defineProperty(Q,"printLocation",{enumerable:!0,get:function(){return zn.printLocation}});Object.defineProperty(Q,"printSchema",{enumerable:!0,get:function(){return Vn.printSchema}});Object.defineProperty(Q,"printSourceLocation",{enumerable:!0,get:function(){return zn.printSourceLocation}});Object.defineProperty(Q,"printType",{enumerable:!0,get:function(){return Vn.printType}});Object.defineProperty(Q,"recommendedRules",{enumerable:!0,get:function(){return Gr.recommendedRules}});Object.defineProperty(Q,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return Vn.resolveASTSchemaCoordinate}});Object.defineProperty(Q,"resolveObjMapThunk",{enumerable:!0,get:function(){return Xe.resolveObjMapThunk}});Object.defineProperty(Q,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return Xe.resolveReadonlyArrayThunk}});Object.defineProperty(Q,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return Vn.resolveSchemaCoordinate}});Object.defineProperty(Q,"responsePathAsArray",{enumerable:!0,get:function(){return Td.responsePathAsArray}});Object.defineProperty(Q,"separateOperations",{enumerable:!0,get:function(){return Vn.separateOperations}});Object.defineProperty(Q,"specifiedDirectives",{enumerable:!0,get:function(){return Xe.specifiedDirectives}});Object.defineProperty(Q,"specifiedRules",{enumerable:!0,get:function(){return Gr.specifiedRules}});Object.defineProperty(Q,"specifiedScalarTypes",{enumerable:!0,get:function(){return Xe.specifiedScalarTypes}});Object.defineProperty(Q,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Vn.stripIgnoredCharacters}});Object.defineProperty(Q,"subscribe",{enumerable:!0,get:function(){return Td.subscribe}});Object.defineProperty(Q,"syntaxError",{enumerable:!0,get:function(){return aA.syntaxError}});Object.defineProperty(Q,"typeFromAST",{enumerable:!0,get:function(){return Vn.typeFromAST}});Object.defineProperty(Q,"validate",{enumerable:!0,get:function(){return Gr.validate}});Object.defineProperty(Q,"validateSchema",{enumerable:!0,get:function(){return Xe.validateSchema}});Object.defineProperty(Q,"valueFromAST",{enumerable:!0,get:function(){return Vn.valueFromAST}});Object.defineProperty(Q,"valueFromASTUntyped",{enumerable:!0,get:function(){return Vn.valueFromASTUntyped}});Object.defineProperty(Q,"version",{enumerable:!0,get:function(){return b1e.version}});Object.defineProperty(Q,"versionInfo",{enumerable:!0,get:function(){return b1e.versionInfo}});Object.defineProperty(Q,"visit",{enumerable:!0,get:function(){return zn.visit}});Object.defineProperty(Q,"visitInParallel",{enumerable:!0,get:function(){return zn.visitInParallel}});Object.defineProperty(Q,"visitWithTypeInfo",{enumerable:!0,get:function(){return Vn.visitWithTypeInfo}});var b1e=mge(),x1e=sve(),Xe=uve(),zn=dve(),Td=vve(),Gr=Tve(),aA=Dve(),Vn=v1e()});var qn=L(ja=>{"use strict";var eZ=Symbol.for("yaml.alias"),J1e=Symbol.for("yaml.document"),tN=Symbol.for("yaml.map"),K1e=Symbol.for("yaml.pair"),tZ=Symbol.for("yaml.scalar"),rN=Symbol.for("yaml.seq"),_f=Symbol.for("yaml.node.type"),Zgt=e=>!!e&&typeof e=="object"&&e[_f]===eZ,Wgt=e=>!!e&&typeof e=="object"&&e[_f]===J1e,Qgt=e=>!!e&&typeof e=="object"&&e[_f]===tN,Xgt=e=>!!e&&typeof e=="object"&&e[_f]===K1e,G1e=e=>!!e&&typeof e=="object"&&e[_f]===tZ,Ygt=e=>!!e&&typeof e=="object"&&e[_f]===rN;function H1e(e){if(e&&typeof e=="object")switch(e[_f]){case tN:case rN:return!0}return!1}function eSt(e){if(e&&typeof e=="object")switch(e[_f]){case eZ:case tN:case tZ:case rN:return!0}return!1}var tSt=e=>(G1e(e)||H1e(e))&&!!e.anchor;ja.ALIAS=eZ;ja.DOC=J1e;ja.MAP=tN;ja.NODE_TYPE=_f;ja.PAIR=K1e;ja.SCALAR=tZ;ja.SEQ=rN;ja.hasAnchor=tSt;ja.isAlias=Zgt;ja.isCollection=H1e;ja.isDocument=Wgt;ja.isMap=Qgt;ja.isNode=eSt;ja.isPair=Xgt;ja.isScalar=G1e;ja.isSeq=Ygt});var dA=L(rZ=>{"use strict";var oa=qn(),fc=Symbol("break visit"),Z1e=Symbol("skip children"),Dd=Symbol("remove node");function nN(e,t){let r=W1e(t);oa.isDocument(e)?z1(null,e.contents,r,Object.freeze([e]))===Dd&&(e.contents=null):z1(null,e,r,Object.freeze([]))}nN.BREAK=fc;nN.SKIP=Z1e;nN.REMOVE=Dd;function z1(e,t,r,n){let o=Q1e(e,t,r,n);if(oa.isNode(o)||oa.isPair(o))return X1e(e,n,o),z1(e,o,r,n);if(typeof o!="symbol"){if(oa.isCollection(t)){n=Object.freeze(n.concat(t));for(let i=0;i{"use strict";var Y1e=qn(),rSt=dA(),nSt={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},oSt=e=>e.replace(/[!,[\]{}]/g,t=>nSt[t]),_A=class e{constructor(t,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,r)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,r){this.atNextDocument&&(this.yaml={explicit:e.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},e.defaultTags),this.atNextDocument=!1);let n=t.trim().split(/[ \t]+/),o=n.shift();switch(o){case"%TAG":{if(n.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[i,a]=n;return this.tags[i]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;let[i]=n;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{let a=/^\d+\.\d+$/.test(i);return r(6,`Unsupported YAML version ${i}`,a),!1}}default:return r(0,`Unknown directive ${o}`,!0),!1}}tagName(t,r){if(t==="!")return"!";if(t[0]!=="!")return r(`Not a valid tag: ${t}`),null;if(t[1]==="<"){let a=t.slice(2,-1);return a==="!"||a==="!!"?(r(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&r("Verbatim tags must end with a >"),a)}let[,n,o]=t.match(/^(.*!)([^!]*)$/s);o||r(`The ${t} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(o)}catch(a){return r(String(a)),null}return n==="!"?t:(r(`Could not resolve tag: ${t}`),null)}tagString(t){for(let[r,n]of Object.entries(this.tags))if(t.startsWith(n))return r+oSt(t.substring(n.length));return t[0]==="!"?t:`!<${t}>`}toString(t){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags),o;if(t&&n.length>0&&Y1e.isNode(t.contents)){let i={};rSt.visit(t.contents,(a,s)=>{Y1e.isNode(s)&&s.tag&&(i[s.tag]=!0)}),o=Object.keys(i)}else o=[];for(let[i,a]of n)i==="!!"&&a==="tag:yaml.org,2002:"||(!t||o.some(s=>s.startsWith(a)))&&r.push(`%TAG ${i} ${a}`);return r.join(` +`)}};_A.defaultYaml={explicit:!1,version:"1.2"};_A.defaultTags={"!!":"tag:yaml.org,2002:"};ebe.Directives=_A});var iN=L(fA=>{"use strict";var tbe=qn(),iSt=dA();function aSt(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(r)}return!0}function rbe(e){let t=new Set;return iSt.visit(e,{Value(r,n){n.anchor&&t.add(n.anchor)}}),t}function nbe(e,t){for(let r=1;;++r){let n=`${e}${r}`;if(!t.has(n))return n}}function sSt(e,t){let r=[],n=new Map,o=null;return{onAnchor:i=>{r.push(i),o??(o=rbe(e));let a=nbe(t,o);return o.add(a),a},setAnchors:()=>{for(let i of r){let a=n.get(i);if(typeof a=="object"&&a.anchor&&(tbe.isScalar(a.node)||tbe.isCollection(a.node)))a.node.anchor=a.anchor;else{let s=new Error("Failed to resolve repeated object (this should not happen)");throw s.source=i,s}}},sourceObjects:n}}fA.anchorIsValid=aSt;fA.anchorNames=rbe;fA.createNodeAnchors=sSt;fA.findNewAnchor=nbe});var oZ=L(obe=>{"use strict";function mA(e,t,r,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let o=0,i=n.length;o{"use strict";var cSt=qn();function ibe(e,t,r){if(Array.isArray(e))return e.map((n,o)=>ibe(n,String(o),r));if(e&&typeof e.toJSON=="function"){if(!r||!cSt.hasAnchor(e))return e.toJSON(t,r);let n={aliasCount:0,count:1,res:void 0};r.anchors.set(e,n),r.onCreate=i=>{n.res=i,delete r.onCreate};let o=e.toJSON(t,r);return r.onCreate&&r.onCreate(o),o}return typeof e=="bigint"&&!r?.keep?Number(e):e}abe.toJS=ibe});var aN=L(cbe=>{"use strict";var lSt=oZ(),sbe=qn(),uSt=kh(),iZ=class{constructor(t){Object.defineProperty(this,sbe.NODE_TYPE,{value:t})}clone(){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:r,maxAliasCount:n,onAnchor:o,reviver:i}={}){if(!sbe.isDocument(t))throw new TypeError("A document argument is required");let a={anchors:new Map,doc:t,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},s=uSt.toJS(this,"",a);if(typeof o=="function")for(let{count:c,res:p}of a.anchors.values())o(p,c);return typeof i=="function"?lSt.applyReviver(i,{"":s},"",s):s}};cbe.NodeBase=iZ});var hA=L(lbe=>{"use strict";var pSt=iN(),dSt=dA(),J1=qn(),_St=aN(),fSt=kh(),aZ=class extends _St.NodeBase{constructor(t){super(J1.ALIAS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,r){let n;r?.aliasResolveCache?n=r.aliasResolveCache:(n=[],dSt.visit(t,{Node:(i,a)=>{(J1.isAlias(a)||J1.hasAnchor(a))&&n.push(a)}}),r&&(r.aliasResolveCache=n));let o;for(let i of n){if(i===this)break;i.anchor===this.source&&(o=i)}return o}toJSON(t,r){if(!r)return{source:this.source};let{anchors:n,doc:o,maxAliasCount:i}=r,a=this.resolve(o,r);if(!a){let c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let s=n.get(a);if(s||(fSt.toJS(a,null,r),s=n.get(a)),s?.res===void 0){let c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(i>=0&&(s.count+=1,s.aliasCount===0&&(s.aliasCount=sN(o,a,n)),s.count*s.aliasCount>i)){let c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return s.res}toString(t,r,n){let o=`*${this.source}`;if(t){if(pSt.anchorIsValid(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){let i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${o} `}return o}};function sN(e,t,r){if(J1.isAlias(t)){let n=t.resolve(e),o=r&&n&&r.get(n);return o?o.count*o.aliasCount:0}else if(J1.isCollection(t)){let n=0;for(let o of t.items){let i=sN(e,o,r);i>n&&(n=i)}return n}else if(J1.isPair(t)){let n=sN(e,t.key,r),o=sN(e,t.value,r);return Math.max(n,o)}return 1}lbe.Alias=aZ});var Vi=L(sZ=>{"use strict";var mSt=qn(),hSt=aN(),ySt=kh(),gSt=e=>!e||typeof e!="function"&&typeof e!="object",Ch=class extends hSt.NodeBase{constructor(t){super(mSt.SCALAR),this.value=t}toJSON(t,r){return r?.keep?this.value:ySt.toJS(this.value,t,r)}toString(){return String(this.value)}};Ch.BLOCK_FOLDED="BLOCK_FOLDED";Ch.BLOCK_LITERAL="BLOCK_LITERAL";Ch.PLAIN="PLAIN";Ch.QUOTE_DOUBLE="QUOTE_DOUBLE";Ch.QUOTE_SINGLE="QUOTE_SINGLE";sZ.Scalar=Ch;sZ.isScalarValue=gSt});var yA=L(pbe=>{"use strict";var SSt=hA(),lS=qn(),ube=Vi(),vSt="tag:yaml.org,2002:";function bSt(e,t,r){if(t){let n=r.filter(i=>i.tag===t),o=n.find(i=>!i.format)??n[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return r.find(n=>n.identify?.(e)&&!n.format)}function xSt(e,t,r){if(lS.isDocument(e)&&(e=e.contents),lS.isNode(e))return e;if(lS.isPair(e)){let f=r.schema[lS.MAP].createNode?.(r.schema,null,r);return f.items.push(e),f}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:n,onAnchor:o,onTagObj:i,schema:a,sourceObjects:s}=r,c;if(n&&e&&typeof e=="object"){if(c=s.get(e),c)return c.anchor??(c.anchor=o(e)),new SSt.Alias(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith("!!")&&(t=vSt+t.slice(2));let p=bSt(e,t,a.tags);if(!p){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){let f=new ube.Scalar(e);return c&&(c.node=f),f}p=e instanceof Map?a[lS.MAP]:Symbol.iterator in Object(e)?a[lS.SEQ]:a[lS.MAP]}i&&(i(p),delete r.onTagObj);let d=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from=="function"?p.nodeClass.from(r.schema,e,r):new ube.Scalar(e);return t?d.tag=t:p.default||(d.tag=p.tag),c&&(c.node=d),d}pbe.createNode=xSt});var lN=L(cN=>{"use strict";var ESt=yA(),Ad=qn(),TSt=aN();function cZ(e,t,r){let n=r;for(let o=t.length-1;o>=0;--o){let i=t[o];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){let a=[];a[i]=n,n=a}else n=new Map([[i,n]])}return ESt.createNode(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}var dbe=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done,lZ=class extends TSt.NodeBase{constructor(t,r){super(t),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(t){let r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(r.schema=t),r.items=r.items.map(n=>Ad.isNode(n)||Ad.isPair(n)?n.clone(t):n),this.range&&(r.range=this.range.slice()),r}addIn(t,r){if(dbe(t))this.add(r);else{let[n,...o]=t,i=this.get(n,!0);if(Ad.isCollection(i))i.addIn(o,r);else if(i===void 0&&this.schema)this.set(n,cZ(this.schema,o,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}deleteIn(t){let[r,...n]=t;if(n.length===0)return this.delete(r);let o=this.get(r,!0);if(Ad.isCollection(o))return o.deleteIn(n);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}getIn(t,r){let[n,...o]=t,i=this.get(n,!0);return o.length===0?!r&&Ad.isScalar(i)?i.value:i:Ad.isCollection(i)?i.getIn(o,r):void 0}hasAllNullValues(t){return this.items.every(r=>{if(!Ad.isPair(r))return!1;let n=r.value;return n==null||t&&Ad.isScalar(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(t){let[r,...n]=t;if(n.length===0)return this.has(r);let o=this.get(r,!0);return Ad.isCollection(o)?o.hasIn(n):!1}setIn(t,r){let[n,...o]=t;if(o.length===0)this.set(n,r);else{let i=this.get(n,!0);if(Ad.isCollection(i))i.setIn(o,r);else if(i===void 0&&this.schema)this.set(n,cZ(this.schema,o,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}};cN.Collection=lZ;cN.collectionFromPath=cZ;cN.isEmptyPath=dbe});var gA=L(uN=>{"use strict";var DSt=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function uZ(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var ASt=(e,t,r)=>e.endsWith(` +`)?uZ(r,t):r.includes(` `)?` -`+Dit(i,r):(e.endsWith(" ")?"":" ")+i;fwe.indentComment=Dit;fwe.lineComment=axn;fwe.stringifyComment=oxn});var CGt=dr(Mde=>{"use strict";var sxn="flow",Ait="block",mwe="quoted";function cxn(e,r,i="flow",{indentAtStart:s,lineWidth:l=80,minContentWidth:d=20,onFold:h,onOverflow:S}={}){if(!l||l<0)return e;ll-Math.max(2,d)?A.push(0):V=l-s);let j,ie,te=!1,X=-1,Re=-1,Je=-1;i===Ait&&(X=kGt(e,X,r.length),X!==-1&&(V=X+b));for(let $e;$e=e[X+=1];){if(i===mwe&&$e==="\\"){switch(Re=X,e[X+1]){case"x":X+=3;break;case"u":X+=5;break;case"U":X+=9;break;default:X+=1}Je=X}if($e===` -`)i===Ait&&(X=kGt(e,X,r.length)),V=X+r.length+b,j=void 0;else{if($e===" "&&ie&&ie!==" "&&ie!==` -`&&ie!==" "){let xt=e[X+1];xt&&xt!==" "&&xt!==` -`&&xt!==" "&&(j=X)}if(X>=V)if(j)A.push(j),V=j+b,j=void 0;else if(i===mwe){for(;ie===" "||ie===" ";)ie=$e,$e=e[X+=1],te=!0;let xt=X>Je+1?X-2:Re-1;if(L[xt])return e;A.push(xt),L[xt]=!0,V=xt+b,j=void 0}else te=!0}ie=$e}if(te&&S&&S(),A.length===0)return e;h&&h();let pt=e.slice(0,A[0]);for(let $e=0;$e{"use strict";var n4=uv(),qB=CGt(),gwe=(e,r)=>({indentAtStart:r?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),ywe=e=>/^(%|---|\.\.\.)/m.test(e);function lxn(e,r,i){if(!r||r<0)return!1;let s=r-i,l=e.length;if(l<=s)return!1;for(let d=0,h=0;ds)return!0;if(h=d+1,l-h<=s)return!1}return!0}function jde(e,r){let i=JSON.stringify(e);if(r.options.doubleQuotedAsJSON)return i;let{implicitKey:s}=r,l=r.options.doubleQuotedMinMultiLineLength,d=r.indent||(ywe(e)?" ":""),h="",S=0;for(let b=0,A=i[b];A;A=i[++b])if(A===" "&&i[b+1]==="\\"&&i[b+2]==="n"&&(h+=i.slice(S,b)+"\\ ",b+=1,S=b,A="\\"),A==="\\")switch(i[b+1]){case"u":{h+=i.slice(S,b);let L=i.substr(b+2,4);switch(L){case"0000":h+="\\0";break;case"0007":h+="\\a";break;case"000b":h+="\\v";break;case"001b":h+="\\e";break;case"0085":h+="\\N";break;case"00a0":h+="\\_";break;case"2028":h+="\\L";break;case"2029":h+="\\P";break;default:L.substr(0,2)==="00"?h+="\\x"+L.substr(2):h+=i.substr(b,6)}b+=5,S=b+1}break;case"n":if(s||i[b+2]==='"'||i.length{"use strict";var wSt="flow",pZ="block",pN="quoted";function ISt(e,t,r="flow",{indentAtStart:n,lineWidth:o=80,minContentWidth:i=20,onFold:a,onOverflow:s}={}){if(!o||o<0)return e;oo-Math.max(2,i)?p.push(0):f=o-n);let m,y,g=!1,S=-1,x=-1,A=-1;r===pZ&&(S=_be(e,S,t.length),S!==-1&&(f=S+c));for(let E;E=e[S+=1];){if(r===pN&&E==="\\"){switch(x=S,e[S+1]){case"x":S+=3;break;case"u":S+=5;break;case"U":S+=9;break;default:S+=1}A=S}if(E===` +`)r===pZ&&(S=_be(e,S,t.length)),f=S+t.length+c,m=void 0;else{if(E===" "&&y&&y!==" "&&y!==` +`&&y!==" "){let C=e[S+1];C&&C!==" "&&C!==` +`&&C!==" "&&(m=S)}if(S>=f)if(m)p.push(m),f=m+c,m=void 0;else if(r===pN){for(;y===" "||y===" ";)y=E,E=e[S+=1],g=!0;let C=S>A+1?S-2:x-1;if(d[C])return e;p.push(C),d[C]=!0,f=C+c,m=void 0}else g=!0}y=E}if(g&&s&&s(),p.length===0)return e;a&&a();let I=e.slice(0,p[0]);for(let E=0;E{"use strict";var Yu=Vi(),Ph=fbe(),_N=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),fN=e=>/^(%|---|\.\.\.)/m.test(e);function kSt(e,t,r){if(!t||t<0)return!1;let n=t-r,o=e.length;if(o<=n)return!1;for(let i=0,a=0;in)return!0;if(a=i+1,o-a<=n)return!1}return!0}function vA(e,t){let r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;let{implicitKey:n}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(fN(e)?" ":""),a="",s=0;for(let c=0,p=r[c];p;p=r[++c])if(p===" "&&r[c+1]==="\\"&&r[c+2]==="n"&&(a+=r.slice(s,c)+"\\ ",c+=1,s=c,p="\\"),p==="\\")switch(r[c+1]){case"u":{a+=r.slice(s,c);let d=r.substr(c+2,4);switch(d){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:d.substr(0,2)==="00"?a+="\\x"+d.substr(2):a+=r.substr(c,6)}c+=5,s=c+1}break;case"n":if(n||r[c+2]==='"'||r.length -`;let V,j;for(j=i.length;j>0;--j){let tr=i[j-1];if(tr!==` -`&&tr!==" "&&tr!==" ")break}let ie=i.substring(j),te=ie.indexOf(` -`);te===-1?V="-":i===ie||te!==ie.length-1?(V="+",d&&d()):V="",ie&&(i=i.slice(0,-ie.length),ie[ie.length-1]===` -`&&(ie=ie.slice(0,-1)),ie=ie.replace(Iit,`$&${A}`));let X=!1,Re,Je=-1;for(Re=0;Re{ht=!0});let Ut=qB.foldFlowLines(`${pt}${tr}${ie}`,A,qB.FOLD_BLOCK,wt);if(!ht)return`>${xt} -${A}${Ut}`}return i=i.replace(/\n+/g,`$&${A}`),`|${xt} -${A}${pt}${i}${ie}`}function uxn(e,r,i,s){let{type:l,value:d}=e,{actualString:h,implicitKey:S,indent:b,indentStep:A,inFlow:L}=r;if(S&&d.includes(` -`)||L&&/[[\]{},]/.test(d))return jee(d,r);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(d))return S||L||!d.includes(` -`)?jee(d,r):hwe(e,r,i,s);if(!S&&!L&&l!==n4.Scalar.PLAIN&&d.includes(` -`))return hwe(e,r,i,s);if(ywe(d)){if(b==="")return r.forceBlockIndent=!0,hwe(e,r,i,s);if(S&&b===A)return jee(d,r)}let V=d.replace(/\n+/g,`$& -${b}`);if(h){let j=X=>X.default&&X.tag!=="tag:yaml.org,2002:str"&&X.test?.test(V),{compat:ie,tags:te}=r.doc.schema;if(te.some(j)||ie?.some(j))return jee(d,r)}return S?V:qB.foldFlowLines(V,b,qB.FOLD_FLOW,gwe(r,!1))}function pxn(e,r,i,s){let{implicitKey:l,inFlow:d}=r,h=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)}),{type:S}=e;S!==n4.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(h.value)&&(S=n4.Scalar.QUOTE_DOUBLE);let b=L=>{switch(L){case n4.Scalar.BLOCK_FOLDED:case n4.Scalar.BLOCK_LITERAL:return l||d?jee(h.value,r):hwe(h,r,i,s);case n4.Scalar.QUOTE_DOUBLE:return jde(h.value,r);case n4.Scalar.QUOTE_SINGLE:return wit(h.value,r);case n4.Scalar.PLAIN:return uxn(h,r,i,s);default:return null}},A=b(S);if(A===null){let{defaultKeyType:L,defaultStringType:V}=r.options,j=l&&L||V;if(A=b(j),A===null)throw new Error(`Unsupported default string type ${j}`)}return A}DGt.stringifyString=pxn});var $de=dr(Pit=>{"use strict";var _xn=lwe(),JB=xf(),dxn=Lde(),fxn=Bde();function mxn(e,r){let i=Object.assign({blockQuote:!0,commentString:dxn.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,r),s;switch(i.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:e,flowCollectionPadding:i.flowCollectionPadding?" ":"",indent:"",indentStep:typeof i.indent=="number"?" ".repeat(i.indent):" ",inFlow:s,options:i}}function hxn(e,r){if(r.tag){let l=e.filter(d=>d.tag===r.tag);if(l.length>0)return l.find(d=>d.format===r.format)??l[0]}let i,s;if(JB.isScalar(r)){s=r.value;let l=e.filter(d=>d.identify?.(s));if(l.length>1){let d=l.filter(h=>h.test);d.length>0&&(l=d)}i=l.find(d=>d.format===r.format)??l.find(d=>!d.format)}else s=r,i=e.find(l=>l.nodeClass&&s instanceof l.nodeClass);if(!i){let l=s?.constructor?.name??(s===null?"null":typeof s);throw new Error(`Tag not resolved for ${l} value`)}return i}function gxn(e,r,{anchors:i,doc:s}){if(!s.directives)return"";let l=[],d=(JB.isScalar(e)||JB.isCollection(e))&&e.anchor;d&&_xn.anchorIsValid(d)&&(i.add(d),l.push(`&${d}`));let h=e.tag??(r.default?null:r.tag);return h&&l.push(s.directives.tagString(h)),l.join(" ")}function yxn(e,r,i,s){if(JB.isPair(e))return e.toString(r,i,s);if(JB.isAlias(e)){if(r.doc.directives)return e.toString(r);if(r.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");r.resolvedAliases?r.resolvedAliases.add(e):r.resolvedAliases=new Set([e]),e=e.resolve(r.doc)}let l,d=JB.isNode(e)?e:r.doc.createNode(e,{onTagObj:b=>l=b});l??(l=hxn(r.doc.schema.tags,d));let h=gxn(d,l,r);h.length>0&&(r.indentAtStart=(r.indentAtStart??0)+h.length+1);let S=typeof l.stringify=="function"?l.stringify(d,r,i,s):JB.isScalar(d)?fxn.stringifyString(d,r,i,s):d.toString(r,i,s);return h?JB.isScalar(d)||S[0]==="{"||S[0]==="["?`${h} ${S}`:`${h} -${r.indent}${S}`:S}Pit.createStringifyContext=mxn;Pit.stringify=yxn});var PGt=dr(IGt=>{"use strict";var u9=xf(),AGt=uv(),wGt=$de(),Ude=Lde();function vxn({key:e,value:r},i,s,l){let{allNullValues:d,doc:h,indent:S,indentStep:b,options:{commentString:A,indentSeq:L,simpleKeys:V}}=i,j=u9.isNode(e)&&e.comment||null;if(V){if(j)throw new Error("With simple keys, key nodes cannot have comments");if(u9.isCollection(e)||!u9.isNode(e)&&typeof e=="object"){let wt="With simple keys, collection cannot be used as a key value";throw new Error(wt)}}let ie=!V&&(!e||j&&r==null&&!i.inFlow||u9.isCollection(e)||(u9.isScalar(e)?e.type===AGt.Scalar.BLOCK_FOLDED||e.type===AGt.Scalar.BLOCK_LITERAL:typeof e=="object"));i=Object.assign({},i,{allNullValues:!1,implicitKey:!ie&&(V||!d),indent:S+b});let te=!1,X=!1,Re=wGt.stringify(e,i,()=>te=!0,()=>X=!0);if(!ie&&!i.inFlow&&Re.length>1024){if(V)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");ie=!0}if(i.inFlow){if(d||r==null)return te&&s&&s(),Re===""?"?":ie?`? ${Re}`:Re}else if(d&&!V||r==null&&ie)return Re=`? ${Re}`,j&&!te?Re+=Ude.lineComment(Re,i.indent,A(j)):X&&l&&l(),Re;te&&(j=null),ie?(j&&(Re+=Ude.lineComment(Re,i.indent,A(j))),Re=`? ${Re} -${S}:`):(Re=`${Re}:`,j&&(Re+=Ude.lineComment(Re,i.indent,A(j))));let Je,pt,$e;u9.isNode(r)?(Je=!!r.spaceBefore,pt=r.commentBefore,$e=r.comment):(Je=!1,pt=null,$e=null,r&&typeof r=="object"&&(r=h.createNode(r))),i.implicitKey=!1,!ie&&!j&&u9.isScalar(r)&&(i.indentAtStart=Re.length+1),X=!1,!L&&b.length>=2&&!i.inFlow&&!ie&&u9.isSeq(r)&&!r.flow&&!r.tag&&!r.anchor&&(i.indent=i.indent.substring(2));let xt=!1,tr=wGt.stringify(r,i,()=>xt=!0,()=>X=!0),ht=" ";if(j||Je||pt){if(ht=Je?` -`:"",pt){let wt=A(pt);ht+=` -${Ude.indentComment(wt,i.indent)}`}tr===""&&!i.inFlow?ht===` -`&&$e&&(ht=` +`;let f,m;for(m=r.length;m>0;--m){let F=r[m-1];if(F!==` +`&&F!==" "&&F!==" ")break}let y=r.substring(m),g=y.indexOf(` +`);g===-1?f="-":r===y||g!==y.length-1?(f="+",i&&i()):f="",y&&(r=r.slice(0,-y.length),y[y.length-1]===` +`&&(y=y.slice(0,-1)),y=y.replace(_Z,`$&${p}`));let S=!1,x,A=-1;for(x=0;x{O=!0});let N=Ph.foldFlowLines(`${I}${F}${y}`,p,Ph.FOLD_BLOCK,$);if(!O)return`>${C} +${p}${N}`}return r=r.replace(/\n+/g,`$&${p}`),`|${C} +${p}${I}${r}${y}`}function CSt(e,t,r,n){let{type:o,value:i}=e,{actualString:a,implicitKey:s,indent:c,indentStep:p,inFlow:d}=t;if(s&&i.includes(` +`)||d&&/[[\]{},]/.test(i))return K1(i,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return s||d||!i.includes(` +`)?K1(i,t):dN(e,t,r,n);if(!s&&!d&&o!==Yu.Scalar.PLAIN&&i.includes(` +`))return dN(e,t,r,n);if(fN(i)){if(c==="")return t.forceBlockIndent=!0,dN(e,t,r,n);if(s&&c===p)return K1(i,t)}let f=i.replace(/\n+/g,`$& +${c}`);if(a){let m=S=>S.default&&S.tag!=="tag:yaml.org,2002:str"&&S.test?.test(f),{compat:y,tags:g}=t.doc.schema;if(g.some(m)||y?.some(m))return K1(i,t)}return s?f:Ph.foldFlowLines(f,c,Ph.FOLD_FLOW,_N(t,!1))}function PSt(e,t,r,n){let{implicitKey:o,inFlow:i}=t,a=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==Yu.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(s=Yu.Scalar.QUOTE_DOUBLE);let c=d=>{switch(d){case Yu.Scalar.BLOCK_FOLDED:case Yu.Scalar.BLOCK_LITERAL:return o||i?K1(a.value,t):dN(a,t,r,n);case Yu.Scalar.QUOTE_DOUBLE:return vA(a.value,t);case Yu.Scalar.QUOTE_SINGLE:return dZ(a.value,t);case Yu.Scalar.PLAIN:return CSt(a,t,r,n);default:return null}},p=c(s);if(p===null){let{defaultKeyType:d,defaultStringType:f}=t.options,m=o&&d||f;if(p=c(m),p===null)throw new Error(`Unsupported default string type ${m}`)}return p}mbe.stringifyString=PSt});var xA=L(fZ=>{"use strict";var OSt=iN(),Oh=qn(),NSt=gA(),FSt=bA();function RSt(e,t){let r=Object.assign({blockQuote:!0,commentString:NSt.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t),n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function LSt(e,t){if(t.tag){let o=e.filter(i=>i.tag===t.tag);if(o.length>0)return o.find(i=>i.format===t.format)??o[0]}let r,n;if(Oh.isScalar(t)){n=t.value;let o=e.filter(i=>i.identify?.(n));if(o.length>1){let i=o.filter(a=>a.test);i.length>0&&(o=i)}r=o.find(i=>i.format===t.format)??o.find(i=>!i.format)}else n=t,r=e.find(o=>o.nodeClass&&n instanceof o.nodeClass);if(!r){let o=n?.constructor?.name??(n===null?"null":typeof n);throw new Error(`Tag not resolved for ${o} value`)}return r}function $St(e,t,{anchors:r,doc:n}){if(!n.directives)return"";let o=[],i=(Oh.isScalar(e)||Oh.isCollection(e))&&e.anchor;i&&OSt.anchorIsValid(i)&&(r.add(i),o.push(`&${i}`));let a=e.tag??(t.default?null:t.tag);return a&&o.push(n.directives.tagString(a)),o.join(" ")}function MSt(e,t,r,n){if(Oh.isPair(e))return e.toString(t,r,n);if(Oh.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o,i=Oh.isNode(e)?e:t.doc.createNode(e,{onTagObj:c=>o=c});o??(o=LSt(t.doc.schema.tags,i));let a=$St(i,o,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);let s=typeof o.stringify=="function"?o.stringify(i,t,r,n):Oh.isScalar(i)?FSt.stringifyString(i,t,r,n):i.toString(t,r,n);return a?Oh.isScalar(i)||s[0]==="{"||s[0]==="["?`${a} ${s}`:`${a} +${t.indent}${s}`:s}fZ.createStringifyContext=RSt;fZ.stringify=MSt});var Sbe=L(gbe=>{"use strict";var ff=qn(),hbe=Vi(),ybe=xA(),EA=gA();function jSt({key:e,value:t},r,n,o){let{allNullValues:i,doc:a,indent:s,indentStep:c,options:{commentString:p,indentSeq:d,simpleKeys:f}}=r,m=ff.isNode(e)&&e.comment||null;if(f){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(ff.isCollection(e)||!ff.isNode(e)&&typeof e=="object"){let $="With simple keys, collection cannot be used as a key value";throw new Error($)}}let y=!f&&(!e||m&&t==null&&!r.inFlow||ff.isCollection(e)||(ff.isScalar(e)?e.type===hbe.Scalar.BLOCK_FOLDED||e.type===hbe.Scalar.BLOCK_LITERAL:typeof e=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!y&&(f||!i),indent:s+c});let g=!1,S=!1,x=ybe.stringify(e,r,()=>g=!0,()=>S=!0);if(!y&&!r.inFlow&&x.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(r.inFlow){if(i||t==null)return g&&n&&n(),x===""?"?":y?`? ${x}`:x}else if(i&&!f||t==null&&y)return x=`? ${x}`,m&&!g?x+=EA.lineComment(x,r.indent,p(m)):S&&o&&o(),x;g&&(m=null),y?(m&&(x+=EA.lineComment(x,r.indent,p(m))),x=`? ${x} +${s}:`):(x=`${x}:`,m&&(x+=EA.lineComment(x,r.indent,p(m))));let A,I,E;ff.isNode(t)?(A=!!t.spaceBefore,I=t.commentBefore,E=t.comment):(A=!1,I=null,E=null,t&&typeof t=="object"&&(t=a.createNode(t))),r.implicitKey=!1,!y&&!m&&ff.isScalar(t)&&(r.indentAtStart=x.length+1),S=!1,!d&&c.length>=2&&!r.inFlow&&!y&&ff.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor&&(r.indent=r.indent.substring(2));let C=!1,F=ybe.stringify(t,r,()=>C=!0,()=>S=!0),O=" ";if(m||A||I){if(O=A?` +`:"",I){let $=p(I);O+=` +${EA.indentComment($,r.indent)}`}F===""&&!r.inFlow?O===` +`&&E&&(O=` -`):ht+=` -${i.indent}`}else if(!ie&&u9.isCollection(r)){let wt=tr[0],Ut=tr.indexOf(` -`),hr=Ut!==-1,Hi=i.inFlow??r.flow??r.items.length===0;if(hr||!Hi){let un=!1;if(hr&&(wt==="&"||wt==="!")){let xo=tr.indexOf(" ");wt==="&"&&xo!==-1&&xo{"use strict";var NGt=a0("process");function Sxn(e,...r){e==="debug"&&console.log(...r)}function bxn(e,r){(e==="debug"||e==="warn")&&(typeof NGt.emitWarning=="function"?NGt.emitWarning(r):console.warn(r))}Nit.debug=Sxn;Nit.warn=bxn});var xwe=dr(bwe=>{"use strict";var zde=xf(),OGt=uv(),vwe="<<",Swe={identify:e=>e===vwe||typeof e=="symbol"&&e.description===vwe,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new OGt.Scalar(Symbol(vwe)),{addToJSMap:FGt}),stringify:()=>vwe},xxn=(e,r)=>(Swe.identify(r)||zde.isScalar(r)&&(!r.type||r.type===OGt.Scalar.PLAIN)&&Swe.identify(r.value))&&e?.doc.schema.tags.some(i=>i.tag===Swe.tag&&i.default);function FGt(e,r,i){if(i=e&&zde.isAlias(i)?i.resolve(e.doc):i,zde.isSeq(i))for(let s of i.items)Fit(e,r,s);else if(Array.isArray(i))for(let s of i)Fit(e,r,s);else Fit(e,r,i)}function Fit(e,r,i){let s=e&&zde.isAlias(i)?i.resolve(e.doc):i;if(!zde.isMap(s))throw new Error("Merge sources must be maps or map aliases");let l=s.toJSON(null,e,Map);for(let[d,h]of l)r instanceof Map?r.has(d)||r.set(d,h):r instanceof Set?r.add(d):Object.prototype.hasOwnProperty.call(r,d)||Object.defineProperty(r,d,{value:h,writable:!0,enumerable:!0,configurable:!0});return r}bwe.addMergeToJSMap=FGt;bwe.isMergeKey=xxn;bwe.merge=Swe});var Lit=dr(MGt=>{"use strict";var Txn=Oit(),RGt=xwe(),Exn=$de(),LGt=xf(),Rit=UB();function kxn(e,r,{key:i,value:s}){if(LGt.isNode(i)&&i.addToJSMap)i.addToJSMap(e,r,s);else if(RGt.isMergeKey(e,i))RGt.addMergeToJSMap(e,r,s);else{let l=Rit.toJS(i,"",e);if(r instanceof Map)r.set(l,Rit.toJS(s,l,e));else if(r instanceof Set)r.add(l);else{let d=Cxn(i,l,e),h=Rit.toJS(s,d,e);d in r?Object.defineProperty(r,d,{value:h,writable:!0,enumerable:!0,configurable:!0}):r[d]=h}}return r}function Cxn(e,r,i){if(r===null)return"";if(typeof r!="object")return String(r);if(LGt.isNode(e)&&i?.doc){let s=Exn.createStringifyContext(i.doc,{});s.anchors=new Set;for(let d of i.anchors.keys())s.anchors.add(d.anchor);s.inFlow=!0,s.inStringifyKey=!0;let l=e.toString(s);if(!i.mapKeyWarned){let d=JSON.stringify(l);d.length>40&&(d=d.substring(0,36)+'..."'),Txn.warn(i.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${d}. Set mapAsMap: true to use object keys.`),i.mapKeyWarned=!0}return l}return JSON.stringify(r)}MGt.addPairToJSMap=kxn});var VB=dr(Mit=>{"use strict";var jGt=Rde(),Dxn=PGt(),Axn=Lit(),Twe=xf();function wxn(e,r,i){let s=jGt.createNode(e,void 0,i),l=jGt.createNode(r,void 0,i);return new Ewe(s,l)}var Ewe=class e{constructor(r,i=null){Object.defineProperty(this,Twe.NODE_TYPE,{value:Twe.PAIR}),this.key=r,this.value=i}clone(r){let{key:i,value:s}=this;return Twe.isNode(i)&&(i=i.clone(r)),Twe.isNode(s)&&(s=s.clone(r)),new e(i,s)}toJSON(r,i){let s=i?.mapAsMap?new Map:{};return Axn.addPairToJSMap(i,s,this)}toString(r,i,s){return r?.doc?Dxn.stringifyPair(this,r,i,s):JSON.stringify(this)}};Mit.Pair=Ewe;Mit.createPair=wxn});var jit=dr($Gt=>{"use strict";var nW=xf(),BGt=$de(),kwe=Lde();function Ixn(e,r,i){return(r.inFlow??e.flow?Nxn:Pxn)(e,r,i)}function Pxn({comment:e,items:r},i,{blockItemPrefix:s,flowChars:l,itemIndent:d,onChompKeep:h,onComment:S}){let{indent:b,options:{commentString:A}}=i,L=Object.assign({},i,{indent:d,type:null}),V=!1,j=[];for(let te=0;teRe=null,()=>V=!0);Re&&(Je+=kwe.lineComment(Je,d,A(Re))),V&&Re&&(V=!1),j.push(s+Je)}let ie;if(j.length===0)ie=l.start+l.end;else{ie=j[0];for(let te=1;teRe=null);teL||Je.includes(` -`))&&(A=!0),V.push(Je),L=V.length}let{start:j,end:ie}=i;if(V.length===0)return j+ie;if(!A){let te=V.reduce((X,Re)=>X+Re.length+2,2);A=r.options.lineWidth>0&&te>r.options.lineWidth}if(A){let te=j;for(let X of V)te+=X?` -${d}${l}${X}`:` -`;return`${te} -${l}${ie}`}else return`${j}${h}${V.join(" ")}${h}${ie}`}function Cwe({indent:e,options:{commentString:r}},i,s,l){if(s&&l&&(s=s.replace(/^\n+/,"")),s){let d=kwe.indentComment(r(s),e);i.push(d.trimStart())}}$Gt.stringifyCollection=Ixn});var GB=dr($it=>{"use strict";var Oxn=jit(),Fxn=Lit(),Rxn=dwe(),WB=xf(),Dwe=VB(),Lxn=uv();function qde(e,r){let i=WB.isScalar(r)?r.value:r;for(let s of e)if(WB.isPair(s)&&(s.key===r||s.key===i||WB.isScalar(s.key)&&s.key.value===i))return s}var Bit=class extends Rxn.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(r){super(WB.MAP,r),this.items=[]}static from(r,i,s){let{keepUndefined:l,replacer:d}=s,h=new this(r),S=(b,A)=>{if(typeof d=="function")A=d.call(i,b,A);else if(Array.isArray(d)&&!d.includes(b))return;(A!==void 0||l)&&h.items.push(Dwe.createPair(b,A,s))};if(i instanceof Map)for(let[b,A]of i)S(b,A);else if(i&&typeof i=="object")for(let b of Object.keys(i))S(b,i[b]);return typeof r.sortMapEntries=="function"&&h.items.sort(r.sortMapEntries),h}add(r,i){let s;WB.isPair(r)?s=r:!r||typeof r!="object"||!("key"in r)?s=new Dwe.Pair(r,r?.value):s=new Dwe.Pair(r.key,r.value);let l=qde(this.items,s.key),d=this.schema?.sortMapEntries;if(l){if(!i)throw new Error(`Key ${s.key} already set`);WB.isScalar(l.value)&&Lxn.isScalarValue(s.value)?l.value.value=s.value:l.value=s.value}else if(d){let h=this.items.findIndex(S=>d(s,S)<0);h===-1?this.items.push(s):this.items.splice(h,0,s)}else this.items.push(s)}delete(r){let i=qde(this.items,r);return i?this.items.splice(this.items.indexOf(i),1).length>0:!1}get(r,i){let l=qde(this.items,r)?.value;return(!i&&WB.isScalar(l)?l.value:l)??void 0}has(r){return!!qde(this.items,r)}set(r,i){this.add(new Dwe.Pair(r,i),!0)}toJSON(r,i,s){let l=s?new s:i?.mapAsMap?new Map:{};i?.onCreate&&i.onCreate(l);for(let d of this.items)Fxn.addPairToJSMap(i,l,d);return l}toString(r,i,s){if(!r)return JSON.stringify(this);for(let l of this.items)if(!WB.isPair(l))throw new Error(`Map items must all be pairs; found ${JSON.stringify(l)} instead`);return!r.allNullValues&&this.hasAllNullValues(!1)&&(r=Object.assign({},r,{allNullValues:!0})),Oxn.stringifyCollection(this,r,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:r.indent||"",onChompKeep:s,onComment:i})}};$it.YAMLMap=Bit;$it.findPair=qde});var Bee=dr(zGt=>{"use strict";var Mxn=xf(),UGt=GB(),jxn={collection:"map",default:!0,nodeClass:UGt.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,r){return Mxn.isMap(e)||r("Expected a mapping for this tag"),e},createNode:(e,r,i)=>UGt.YAMLMap.from(e,r,i)};zGt.map=jxn});var HB=dr(qGt=>{"use strict";var Bxn=Rde(),$xn=jit(),Uxn=dwe(),wwe=xf(),zxn=uv(),qxn=UB(),Uit=class extends Uxn.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(r){super(wwe.SEQ,r),this.items=[]}add(r){this.items.push(r)}delete(r){let i=Awe(r);return typeof i!="number"?!1:this.items.splice(i,1).length>0}get(r,i){let s=Awe(r);if(typeof s!="number")return;let l=this.items[s];return!i&&wwe.isScalar(l)?l.value:l}has(r){let i=Awe(r);return typeof i=="number"&&i=0?r:null}qGt.YAMLSeq=Uit});var $ee=dr(VGt=>{"use strict";var Jxn=xf(),JGt=HB(),Vxn={collection:"seq",default:!0,nodeClass:JGt.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,r){return Jxn.isSeq(e)||r("Expected a sequence for this tag"),e},createNode:(e,r,i)=>JGt.YAMLSeq.from(e,r,i)};VGt.seq=Vxn});var Jde=dr(WGt=>{"use strict";var Wxn=Bde(),Gxn={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,r,i,s){return r=Object.assign({actualString:!0},r),Wxn.stringifyString(e,r,i,s)}};WGt.string=Gxn});var Iwe=dr(KGt=>{"use strict";var GGt=uv(),HGt={identify:e=>e==null,createNode:()=>new GGt.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new GGt.Scalar(null),stringify:({source:e},r)=>typeof e=="string"&&HGt.test.test(e)?e:r.options.nullStr};KGt.nullTag=HGt});var zit=dr(ZGt=>{"use strict";var Hxn=uv(),QGt={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Hxn.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:r},i){if(e&&QGt.test.test(e)){let s=e[0]==="t"||e[0]==="T";if(r===s)return e}return r?i.options.trueStr:i.options.falseStr}};ZGt.boolTag=QGt});var Uee=dr(XGt=>{"use strict";function Kxn({format:e,minFractionDigits:r,tag:i,value:s}){if(typeof s=="bigint")return String(s);let l=typeof s=="number"?s:Number(s);if(!isFinite(l))return isNaN(l)?".nan":l<0?"-.inf":".inf";let d=Object.is(s,-0)?"-0":JSON.stringify(s);if(!e&&r&&(!i||i==="tag:yaml.org,2002:float")&&/^\d/.test(d)){let h=d.indexOf(".");h<0&&(h=d.length,d+=".");let S=r-(d.length-h-1);for(;S-- >0;)d+="0"}return d}XGt.stringifyNumber=Kxn});var Jit=dr(Pwe=>{"use strict";var Qxn=uv(),qit=Uee(),Zxn={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:qit.stringifyNumber},Xxn={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let r=Number(e.value);return isFinite(r)?r.toExponential():qit.stringifyNumber(e)}},Yxn={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let r=new Qxn.Scalar(parseFloat(e)),i=e.indexOf(".");return i!==-1&&e[e.length-1]==="0"&&(r.minFractionDigits=e.length-i-1),r},stringify:qit.stringifyNumber};Pwe.float=Yxn;Pwe.floatExp=Xxn;Pwe.floatNaN=Zxn});var Wit=dr(Owe=>{"use strict";var YGt=Uee(),Nwe=e=>typeof e=="bigint"||Number.isInteger(e),Vit=(e,r,i,{intAsBigInt:s})=>s?BigInt(e):parseInt(e.substring(r),i);function eHt(e,r,i){let{value:s}=e;return Nwe(s)&&s>=0?i+s.toString(r):YGt.stringifyNumber(e)}var eTn={identify:e=>Nwe(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,r,i)=>Vit(e,2,8,i),stringify:e=>eHt(e,8,"0o")},tTn={identify:Nwe,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,r,i)=>Vit(e,0,10,i),stringify:YGt.stringifyNumber},rTn={identify:e=>Nwe(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,r,i)=>Vit(e,2,16,i),stringify:e=>eHt(e,16,"0x")};Owe.int=tTn;Owe.intHex=rTn;Owe.intOct=eTn});var rHt=dr(tHt=>{"use strict";var nTn=Bee(),iTn=Iwe(),oTn=$ee(),aTn=Jde(),sTn=zit(),Git=Jit(),Hit=Wit(),cTn=[nTn.map,oTn.seq,aTn.string,iTn.nullTag,sTn.boolTag,Hit.intOct,Hit.int,Hit.intHex,Git.floatNaN,Git.floatExp,Git.float];tHt.schema=cTn});var oHt=dr(iHt=>{"use strict";var lTn=uv(),uTn=Bee(),pTn=$ee();function nHt(e){return typeof e=="bigint"||Number.isInteger(e)}var Fwe=({value:e})=>JSON.stringify(e),_Tn=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Fwe},{identify:e=>e==null,createNode:()=>new lTn.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Fwe},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:Fwe},{identify:nHt,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,r,{intAsBigInt:i})=>i?BigInt(e):parseInt(e,10),stringify:({value:e})=>nHt(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Fwe}],dTn={default:!0,tag:"",test:/^/,resolve(e,r){return r(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},fTn=[uTn.map,pTn.seq].concat(_Tn,dTn);iHt.schema=fTn});var Qit=dr(aHt=>{"use strict";var Vde=a0("buffer"),Kit=uv(),mTn=Bde(),hTn={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,r){if(typeof Vde.Buffer=="function")return Vde.Buffer.from(e,"base64");if(typeof atob=="function"){let i=atob(e.replace(/[\n\r]/g,"")),s=new Uint8Array(i.length);for(let l=0;l{"use strict";var Rwe=xf(),Zit=VB(),gTn=uv(),yTn=HB();function sHt(e,r){if(Rwe.isSeq(e))for(let i=0;i1&&r("Each pair must have its own sequence indicator");let l=s.items[0]||new Zit.Pair(new gTn.Scalar(null));if(s.commentBefore&&(l.key.commentBefore=l.key.commentBefore?`${s.commentBefore} -${l.key.commentBefore}`:s.commentBefore),s.comment){let d=l.value??l.key;d.comment=d.comment?`${s.comment} -${d.comment}`:s.comment}s=l}e.items[i]=Rwe.isPair(s)?s:new Zit.Pair(s)}}else r("Expected a sequence for this tag");return e}function cHt(e,r,i){let{replacer:s}=i,l=new yTn.YAMLSeq(e);l.tag="tag:yaml.org,2002:pairs";let d=0;if(r&&Symbol.iterator in Object(r))for(let h of r){typeof s=="function"&&(h=s.call(r,String(d++),h));let S,b;if(Array.isArray(h))if(h.length===2)S=h[0],b=h[1];else throw new TypeError(`Expected [key, value] tuple: ${h}`);else if(h&&h instanceof Object){let A=Object.keys(h);if(A.length===1)S=A[0],b=h[S];else throw new TypeError(`Expected tuple with one key, not ${A.length} keys`)}else S=h;l.items.push(Zit.createPair(S,b,i))}return l}var vTn={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:sHt,createNode:cHt};Lwe.createPairs=cHt;Lwe.pairs=vTn;Lwe.resolvePairs=sHt});var eot=dr(Yit=>{"use strict";var lHt=xf(),Xit=UB(),Wde=GB(),STn=HB(),uHt=Mwe(),iW=class e extends STn.YAMLSeq{constructor(){super(),this.add=Wde.YAMLMap.prototype.add.bind(this),this.delete=Wde.YAMLMap.prototype.delete.bind(this),this.get=Wde.YAMLMap.prototype.get.bind(this),this.has=Wde.YAMLMap.prototype.has.bind(this),this.set=Wde.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(r,i){if(!i)return super.toJSON(r);let s=new Map;i?.onCreate&&i.onCreate(s);for(let l of this.items){let d,h;if(lHt.isPair(l)?(d=Xit.toJS(l.key,"",i),h=Xit.toJS(l.value,d,i)):d=Xit.toJS(l,"",i),s.has(d))throw new Error("Ordered maps must not include duplicate keys");s.set(d,h)}return s}static from(r,i,s){let l=uHt.createPairs(r,i,s),d=new this;return d.items=l.items,d}};iW.tag="tag:yaml.org,2002:omap";var bTn={collection:"seq",identify:e=>e instanceof Map,nodeClass:iW,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,r){let i=uHt.resolvePairs(e,r),s=[];for(let{key:l}of i.items)lHt.isScalar(l)&&(s.includes(l.value)?r(`Ordered maps must not include duplicate keys: ${l.value}`):s.push(l.value));return Object.assign(new iW,i)},createNode:(e,r,i)=>iW.from(e,r,i)};Yit.YAMLOMap=iW;Yit.omap=bTn});var mHt=dr(tot=>{"use strict";var pHt=uv();function _Ht({value:e,source:r},i){return r&&(e?dHt:fHt).test.test(r)?r:e?i.options.trueStr:i.options.falseStr}var dHt={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new pHt.Scalar(!0),stringify:_Ht},fHt={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new pHt.Scalar(!1),stringify:_Ht};tot.falseTag=fHt;tot.trueTag=dHt});var hHt=dr(jwe=>{"use strict";var xTn=uv(),rot=Uee(),TTn={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:rot.stringifyNumber},ETn={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let r=Number(e.value);return isFinite(r)?r.toExponential():rot.stringifyNumber(e)}},kTn={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let r=new xTn.Scalar(parseFloat(e.replace(/_/g,""))),i=e.indexOf(".");if(i!==-1){let s=e.substring(i+1).replace(/_/g,"");s[s.length-1]==="0"&&(r.minFractionDigits=s.length)}return r},stringify:rot.stringifyNumber};jwe.float=kTn;jwe.floatExp=ETn;jwe.floatNaN=TTn});var yHt=dr(Hde=>{"use strict";var gHt=Uee(),Gde=e=>typeof e=="bigint"||Number.isInteger(e);function Bwe(e,r,i,{intAsBigInt:s}){let l=e[0];if((l==="-"||l==="+")&&(r+=1),e=e.substring(r).replace(/_/g,""),s){switch(i){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let h=BigInt(e);return l==="-"?BigInt(-1)*h:h}let d=parseInt(e,i);return l==="-"?-1*d:d}function not(e,r,i){let{value:s}=e;if(Gde(s)){let l=s.toString(r);return s<0?"-"+i+l.substr(1):i+l}return gHt.stringifyNumber(e)}var CTn={identify:Gde,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,r,i)=>Bwe(e,2,2,i),stringify:e=>not(e,2,"0b")},DTn={identify:Gde,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,r,i)=>Bwe(e,1,8,i),stringify:e=>not(e,8,"0")},ATn={identify:Gde,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,r,i)=>Bwe(e,0,10,i),stringify:gHt.stringifyNumber},wTn={identify:Gde,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,r,i)=>Bwe(e,2,16,i),stringify:e=>not(e,16,"0x")};Hde.int=ATn;Hde.intBin=CTn;Hde.intHex=wTn;Hde.intOct=DTn});var oot=dr(iot=>{"use strict";var zwe=xf(),$we=VB(),Uwe=GB(),oW=class e extends Uwe.YAMLMap{constructor(r){super(r),this.tag=e.tag}add(r){let i;zwe.isPair(r)?i=r:r&&typeof r=="object"&&"key"in r&&"value"in r&&r.value===null?i=new $we.Pair(r.key,null):i=new $we.Pair(r,null),Uwe.findPair(this.items,i.key)||this.items.push(i)}get(r,i){let s=Uwe.findPair(this.items,r);return!i&&zwe.isPair(s)?zwe.isScalar(s.key)?s.key.value:s.key:s}set(r,i){if(typeof i!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof i}`);let s=Uwe.findPair(this.items,r);s&&!i?this.items.splice(this.items.indexOf(s),1):!s&&i&&this.items.push(new $we.Pair(r))}toJSON(r,i){return super.toJSON(r,i,Set)}toString(r,i,s){if(!r)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},r,{allNullValues:!0}),i,s);throw new Error("Set items must all have null values")}static from(r,i,s){let{replacer:l}=s,d=new this(r);if(i&&Symbol.iterator in Object(i))for(let h of i)typeof l=="function"&&(h=l.call(i,h,h)),d.items.push($we.createPair(h,null,s));return d}};oW.tag="tag:yaml.org,2002:set";var ITn={collection:"map",identify:e=>e instanceof Set,nodeClass:oW,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,r,i)=>oW.from(e,r,i),resolve(e,r){if(zwe.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new oW,e);r("Set items must all have null values")}else r("Expected a mapping for this tag");return e}};iot.YAMLSet=oW;iot.set=ITn});var sot=dr(qwe=>{"use strict";var PTn=Uee();function aot(e,r){let i=e[0],s=i==="-"||i==="+"?e.substring(1):e,l=h=>r?BigInt(h):Number(h),d=s.replace(/_/g,"").split(":").reduce((h,S)=>h*l(60)+l(S),l(0));return i==="-"?l(-1)*d:d}function vHt(e){let{value:r}=e,i=h=>h;if(typeof r=="bigint")i=h=>BigInt(h);else if(isNaN(r)||!isFinite(r))return PTn.stringifyNumber(e);let s="";r<0&&(s="-",r*=i(-1));let l=i(60),d=[r%l];return r<60?d.unshift(0):(r=(r-d[0])/l,d.unshift(r%l),r>=60&&(r=(r-d[0])/l,d.unshift(r))),s+d.map(h=>String(h).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var NTn={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,r,{intAsBigInt:i})=>aot(e,i),stringify:vHt},OTn={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>aot(e,!1),stringify:vHt},SHt={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let r=e.match(SHt.test);if(!r)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,i,s,l,d,h,S]=r.map(Number),b=r[7]?Number((r[7]+"00").substr(1,3)):0,A=Date.UTC(i,s-1,l,d||0,h||0,S||0,b),L=r[8];if(L&&L!=="Z"){let V=aot(L,!1);Math.abs(V)<30&&(V*=60),A-=6e4*V}return new Date(A)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};qwe.floatTime=OTn;qwe.intTime=NTn;qwe.timestamp=SHt});var THt=dr(xHt=>{"use strict";var FTn=Bee(),RTn=Iwe(),LTn=$ee(),MTn=Jde(),jTn=Qit(),bHt=mHt(),cot=hHt(),Jwe=yHt(),BTn=xwe(),$Tn=eot(),UTn=Mwe(),zTn=oot(),lot=sot(),qTn=[FTn.map,LTn.seq,MTn.string,RTn.nullTag,bHt.trueTag,bHt.falseTag,Jwe.intBin,Jwe.intOct,Jwe.int,Jwe.intHex,cot.floatNaN,cot.floatExp,cot.float,jTn.binary,BTn.merge,$Tn.omap,UTn.pairs,zTn.set,lot.intTime,lot.floatTime,lot.timestamp];xHt.schema=qTn});var OHt=dr(_ot=>{"use strict";var DHt=Bee(),JTn=Iwe(),AHt=$ee(),VTn=Jde(),WTn=zit(),uot=Jit(),pot=Wit(),GTn=rHt(),HTn=oHt(),wHt=Qit(),Kde=xwe(),IHt=eot(),PHt=Mwe(),EHt=THt(),NHt=oot(),Vwe=sot(),kHt=new Map([["core",GTn.schema],["failsafe",[DHt.map,AHt.seq,VTn.string]],["json",HTn.schema],["yaml11",EHt.schema],["yaml-1.1",EHt.schema]]),CHt={binary:wHt.binary,bool:WTn.boolTag,float:uot.float,floatExp:uot.floatExp,floatNaN:uot.floatNaN,floatTime:Vwe.floatTime,int:pot.int,intHex:pot.intHex,intOct:pot.intOct,intTime:Vwe.intTime,map:DHt.map,merge:Kde.merge,null:JTn.nullTag,omap:IHt.omap,pairs:PHt.pairs,seq:AHt.seq,set:NHt.set,timestamp:Vwe.timestamp},KTn={"tag:yaml.org,2002:binary":wHt.binary,"tag:yaml.org,2002:merge":Kde.merge,"tag:yaml.org,2002:omap":IHt.omap,"tag:yaml.org,2002:pairs":PHt.pairs,"tag:yaml.org,2002:set":NHt.set,"tag:yaml.org,2002:timestamp":Vwe.timestamp};function QTn(e,r,i){let s=kHt.get(r);if(s&&!e)return i&&!s.includes(Kde.merge)?s.concat(Kde.merge):s.slice();let l=s;if(!l)if(Array.isArray(e))l=[];else{let d=Array.from(kHt.keys()).filter(h=>h!=="yaml11").map(h=>JSON.stringify(h)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${d} or define customTags array`)}if(Array.isArray(e))for(let d of e)l=l.concat(d);else typeof e=="function"&&(l=e(l.slice()));return i&&(l=l.concat(Kde.merge)),l.reduce((d,h)=>{let S=typeof h=="string"?CHt[h]:h;if(!S){let b=JSON.stringify(h),A=Object.keys(CHt).map(L=>JSON.stringify(L)).join(", ");throw new Error(`Unknown custom tag ${b}; use one of ${A}`)}return d.includes(S)||d.push(S),d},[])}_ot.coreKnownTags=KTn;_ot.getTags=QTn});var mot=dr(FHt=>{"use strict";var dot=xf(),ZTn=Bee(),XTn=$ee(),YTn=Jde(),Wwe=OHt(),e2n=(e,r)=>e.keyr.key?1:0,fot=class e{constructor({compat:r,customTags:i,merge:s,resolveKnownTags:l,schema:d,sortMapEntries:h,toStringDefaults:S}){this.compat=Array.isArray(r)?Wwe.getTags(r,"compat"):r?Wwe.getTags(null,r):null,this.name=typeof d=="string"&&d||"core",this.knownTags=l?Wwe.coreKnownTags:{},this.tags=Wwe.getTags(i,this.name,s),this.toStringOptions=S??null,Object.defineProperty(this,dot.MAP,{value:ZTn.map}),Object.defineProperty(this,dot.SCALAR,{value:YTn.string}),Object.defineProperty(this,dot.SEQ,{value:XTn.seq}),this.sortMapEntries=typeof h=="function"?h:h===!0?e2n:null}clone(){let r=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return r.tags=this.tags.slice(),r}};FHt.Schema=fot});var LHt=dr(RHt=>{"use strict";var t2n=xf(),hot=$de(),Qde=Lde();function r2n(e,r){let i=[],s=r.directives===!0;if(r.directives!==!1&&e.directives){let b=e.directives.toString(e);b?(i.push(b),s=!0):e.directives.docStart&&(s=!0)}s&&i.push("---");let l=hot.createStringifyContext(e,r),{commentString:d}=l.options;if(e.commentBefore){i.length!==1&&i.unshift("");let b=d(e.commentBefore);i.unshift(Qde.indentComment(b,""))}let h=!1,S=null;if(e.contents){if(t2n.isNode(e.contents)){if(e.contents.spaceBefore&&s&&i.push(""),e.contents.commentBefore){let L=d(e.contents.commentBefore);i.push(Qde.indentComment(L,""))}l.forceBlockIndent=!!e.comment,S=e.contents.comment}let b=S?void 0:()=>h=!0,A=hot.stringify(e.contents,l,()=>S=null,b);S&&(A+=Qde.lineComment(A,"",d(S))),(A[0]==="|"||A[0]===">")&&i[i.length-1]==="---"?i[i.length-1]=`--- ${A}`:i.push(A)}else i.push(hot.stringify(e.contents,l));if(e.directives?.docEnd)if(e.comment){let b=d(e.comment);b.includes(` -`)?(i.push("..."),i.push(Qde.indentComment(b,""))):i.push(`... ${b}`)}else i.push("...");else{let b=e.comment;b&&h&&(b=b.replace(/^\n+/,"")),b&&((!h||S)&&i[i.length-1]!==""&&i.push(""),i.push(Qde.indentComment(d(b),"")))}return i.join(` +`):O+=` +${r.indent}`}else if(!y&&ff.isCollection(t)){let $=F[0],N=F.indexOf(` +`),U=N!==-1,ge=r.inFlow??t.flow??t.items.length===0;if(U||!ge){let Te=!1;if(U&&($==="&"||$==="!")){let ke=F.indexOf(" ");$==="&"&&ke!==-1&&ke{"use strict";var vbe=_l("process");function BSt(e,...t){e==="debug"&&console.log(...t)}function qSt(e,t){(e==="debug"||e==="warn")&&(typeof vbe.emitWarning=="function"?vbe.emitWarning(t):console.warn(t))}mZ.debug=BSt;mZ.warn=qSt});var gN=L(yN=>{"use strict";var TA=qn(),bbe=Vi(),mN="<<",hN={identify:e=>e===mN||typeof e=="symbol"&&e.description===mN,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new bbe.Scalar(Symbol(mN)),{addToJSMap:xbe}),stringify:()=>mN},USt=(e,t)=>(hN.identify(t)||TA.isScalar(t)&&(!t.type||t.type===bbe.Scalar.PLAIN)&&hN.identify(t.value))&&e?.doc.schema.tags.some(r=>r.tag===hN.tag&&r.default);function xbe(e,t,r){if(r=e&&TA.isAlias(r)?r.resolve(e.doc):r,TA.isSeq(r))for(let n of r.items)yZ(e,t,n);else if(Array.isArray(r))for(let n of r)yZ(e,t,n);else yZ(e,t,r)}function yZ(e,t,r){let n=e&&TA.isAlias(r)?r.resolve(e.doc):r;if(!TA.isMap(n))throw new Error("Merge sources must be maps or map aliases");let o=n.toJSON(null,e,Map);for(let[i,a]of o)t instanceof Map?t.has(i)||t.set(i,a):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:a,writable:!0,enumerable:!0,configurable:!0});return t}yN.addMergeToJSMap=xbe;yN.isMergeKey=USt;yN.merge=hN});var SZ=L(Dbe=>{"use strict";var zSt=hZ(),Ebe=gN(),VSt=xA(),Tbe=qn(),gZ=kh();function JSt(e,t,{key:r,value:n}){if(Tbe.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,n);else if(Ebe.isMergeKey(e,r))Ebe.addMergeToJSMap(e,t,n);else{let o=gZ.toJS(r,"",e);if(t instanceof Map)t.set(o,gZ.toJS(n,o,e));else if(t instanceof Set)t.add(o);else{let i=KSt(r,o,e),a=gZ.toJS(n,i,e);i in t?Object.defineProperty(t,i,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[i]=a}}return t}function KSt(e,t,r){if(t===null)return"";if(typeof t!="object")return String(t);if(Tbe.isNode(e)&&r?.doc){let n=VSt.createStringifyContext(r.doc,{});n.anchors=new Set;for(let i of r.anchors.keys())n.anchors.add(i.anchor);n.inFlow=!0,n.inStringifyKey=!0;let o=e.toString(n);if(!r.mapKeyWarned){let i=JSON.stringify(o);i.length>40&&(i=i.substring(0,36)+'..."'),zSt.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return o}return JSON.stringify(t)}Dbe.addPairToJSMap=JSt});var Nh=L(vZ=>{"use strict";var Abe=yA(),GSt=Sbe(),HSt=SZ(),SN=qn();function ZSt(e,t,r){let n=Abe.createNode(e,void 0,r),o=Abe.createNode(t,void 0,r);return new vN(n,o)}var vN=class e{constructor(t,r=null){Object.defineProperty(this,SN.NODE_TYPE,{value:SN.PAIR}),this.key=t,this.value=r}clone(t){let{key:r,value:n}=this;return SN.isNode(r)&&(r=r.clone(t)),SN.isNode(n)&&(n=n.clone(t)),new e(r,n)}toJSON(t,r){let n=r?.mapAsMap?new Map:{};return HSt.addPairToJSMap(r,n,this)}toString(t,r,n){return t?.doc?GSt.stringifyPair(this,t,r,n):JSON.stringify(this)}};vZ.Pair=vN;vZ.createPair=ZSt});var bZ=L(Ibe=>{"use strict";var uS=qn(),wbe=xA(),bN=gA();function WSt(e,t,r){return(t.inFlow??e.flow?XSt:QSt)(e,t,r)}function QSt({comment:e,items:t},r,{blockItemPrefix:n,flowChars:o,itemIndent:i,onChompKeep:a,onComment:s}){let{indent:c,options:{commentString:p}}=r,d=Object.assign({},r,{indent:i,type:null}),f=!1,m=[];for(let g=0;gx=null,()=>f=!0);x&&(A+=bN.lineComment(A,i,p(x))),f&&x&&(f=!1),m.push(n+A)}let y;if(m.length===0)y=o.start+o.end;else{y=m[0];for(let g=1;gx=null);gd||A.includes(` +`))&&(p=!0),f.push(A),d=f.length}let{start:m,end:y}=r;if(f.length===0)return m+y;if(!p){let g=f.reduce((S,x)=>S+x.length+2,2);p=t.options.lineWidth>0&&g>t.options.lineWidth}if(p){let g=m;for(let S of f)g+=S?` +${i}${o}${S}`:` +`;return`${g} +${o}${y}`}else return`${m}${a}${f.join(" ")}${a}${y}`}function xN({indent:e,options:{commentString:t}},r,n,o){if(n&&o&&(n=n.replace(/^\n+/,"")),n){let i=bN.indentComment(t(n),e);r.push(i.trimStart())}}Ibe.stringifyCollection=WSt});var Rh=L(EZ=>{"use strict";var YSt=bZ(),e0t=SZ(),t0t=lN(),Fh=qn(),EN=Nh(),r0t=Vi();function DA(e,t){let r=Fh.isScalar(t)?t.value:t;for(let n of e)if(Fh.isPair(n)&&(n.key===t||n.key===r||Fh.isScalar(n.key)&&n.key.value===r))return n}var xZ=class extends t0t.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Fh.MAP,t),this.items=[]}static from(t,r,n){let{keepUndefined:o,replacer:i}=n,a=new this(t),s=(c,p)=>{if(typeof i=="function")p=i.call(r,c,p);else if(Array.isArray(i)&&!i.includes(c))return;(p!==void 0||o)&&a.items.push(EN.createPair(c,p,n))};if(r instanceof Map)for(let[c,p]of r)s(c,p);else if(r&&typeof r=="object")for(let c of Object.keys(r))s(c,r[c]);return typeof t.sortMapEntries=="function"&&a.items.sort(t.sortMapEntries),a}add(t,r){let n;Fh.isPair(t)?n=t:!t||typeof t!="object"||!("key"in t)?n=new EN.Pair(t,t?.value):n=new EN.Pair(t.key,t.value);let o=DA(this.items,n.key),i=this.schema?.sortMapEntries;if(o){if(!r)throw new Error(`Key ${n.key} already set`);Fh.isScalar(o.value)&&r0t.isScalarValue(n.value)?o.value.value=n.value:o.value=n.value}else if(i){let a=this.items.findIndex(s=>i(n,s)<0);a===-1?this.items.push(n):this.items.splice(a,0,n)}else this.items.push(n)}delete(t){let r=DA(this.items,t);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(t,r){let o=DA(this.items,t)?.value;return(!r&&Fh.isScalar(o)?o.value:o)??void 0}has(t){return!!DA(this.items,t)}set(t,r){this.add(new EN.Pair(t,r),!0)}toJSON(t,r,n){let o=n?new n:r?.mapAsMap?new Map:{};r?.onCreate&&r.onCreate(o);for(let i of this.items)e0t.addPairToJSMap(r,o,i);return o}toString(t,r,n){if(!t)return JSON.stringify(this);for(let o of this.items)if(!Fh.isPair(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),YSt.stringifyCollection(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:n,onComment:r})}};EZ.YAMLMap=xZ;EZ.findPair=DA});var G1=L(Cbe=>{"use strict";var n0t=qn(),kbe=Rh(),o0t={collection:"map",default:!0,nodeClass:kbe.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){return n0t.isMap(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,r)=>kbe.YAMLMap.from(e,t,r)};Cbe.map=o0t});var Lh=L(Pbe=>{"use strict";var i0t=yA(),a0t=bZ(),s0t=lN(),DN=qn(),c0t=Vi(),l0t=kh(),TZ=class extends s0t.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(DN.SEQ,t),this.items=[]}add(t){this.items.push(t)}delete(t){let r=TN(t);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(t,r){let n=TN(t);if(typeof n!="number")return;let o=this.items[n];return!r&&DN.isScalar(o)?o.value:o}has(t){let r=TN(t);return typeof r=="number"&&r=0?t:null}Pbe.YAMLSeq=TZ});var H1=L(Nbe=>{"use strict";var u0t=qn(),Obe=Lh(),p0t={collection:"seq",default:!0,nodeClass:Obe.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){return u0t.isSeq(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,r)=>Obe.YAMLSeq.from(e,t,r)};Nbe.seq=p0t});var AA=L(Fbe=>{"use strict";var d0t=bA(),_0t={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,n){return t=Object.assign({actualString:!0},t),d0t.stringifyString(e,t,r,n)}};Fbe.string=_0t});var AN=L($be=>{"use strict";var Rbe=Vi(),Lbe={identify:e=>e==null,createNode:()=>new Rbe.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Rbe.Scalar(null),stringify:({source:e},t)=>typeof e=="string"&&Lbe.test.test(e)?e:t.options.nullStr};$be.nullTag=Lbe});var DZ=L(jbe=>{"use strict";var f0t=Vi(),Mbe={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new f0t.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&Mbe.test.test(e)){let n=e[0]==="t"||e[0]==="T";if(t===n)return e}return t?r.options.trueStr:r.options.falseStr}};jbe.boolTag=Mbe});var Z1=L(Bbe=>{"use strict";function m0t({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n=="bigint")return String(n);let o=typeof n=="number"?n:Number(n);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=Object.is(n,-0)?"-0":JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let a=i.indexOf(".");a<0&&(a=i.length,i+=".");let s=t-(i.length-a-1);for(;s-- >0;)i+="0"}return i}Bbe.stringifyNumber=m0t});var wZ=L(wN=>{"use strict";var h0t=Vi(),AZ=Z1(),y0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:AZ.stringifyNumber},g0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():AZ.stringifyNumber(e)}},S0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new h0t.Scalar(parseFloat(e)),r=e.indexOf(".");return r!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-r-1),t},stringify:AZ.stringifyNumber};wN.float=S0t;wN.floatExp=g0t;wN.floatNaN=y0t});var kZ=L(kN=>{"use strict";var qbe=Z1(),IN=e=>typeof e=="bigint"||Number.isInteger(e),IZ=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function Ube(e,t,r){let{value:n}=e;return IN(n)&&n>=0?r+n.toString(t):qbe.stringifyNumber(e)}var v0t={identify:e=>IN(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>IZ(e,2,8,r),stringify:e=>Ube(e,8,"0o")},b0t={identify:IN,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>IZ(e,0,10,r),stringify:qbe.stringifyNumber},x0t={identify:e=>IN(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>IZ(e,2,16,r),stringify:e=>Ube(e,16,"0x")};kN.int=b0t;kN.intHex=x0t;kN.intOct=v0t});var Vbe=L(zbe=>{"use strict";var E0t=G1(),T0t=AN(),D0t=H1(),A0t=AA(),w0t=DZ(),CZ=wZ(),PZ=kZ(),I0t=[E0t.map,D0t.seq,A0t.string,T0t.nullTag,w0t.boolTag,PZ.intOct,PZ.int,PZ.intHex,CZ.floatNaN,CZ.floatExp,CZ.float];zbe.schema=I0t});var Gbe=L(Kbe=>{"use strict";var k0t=Vi(),C0t=G1(),P0t=H1();function Jbe(e){return typeof e=="bigint"||Number.isInteger(e)}var CN=({value:e})=>JSON.stringify(e),O0t=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:CN},{identify:e=>e==null,createNode:()=>new k0t.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:CN},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:CN},{identify:Jbe,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>Jbe(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:CN}],N0t={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},F0t=[C0t.map,P0t.seq].concat(O0t,N0t);Kbe.schema=F0t});var NZ=L(Hbe=>{"use strict";var wA=_l("buffer"),OZ=Vi(),R0t=bA(),L0t={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof wA.Buffer=="function")return wA.Buffer.from(e,"base64");if(typeof atob=="function"){let r=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(r.length);for(let o=0;o{"use strict";var PN=qn(),FZ=Nh(),$0t=Vi(),M0t=Lh();function Zbe(e,t){if(PN.isSeq(e))for(let r=0;r1&&t("Each pair must have its own sequence indicator");let o=n.items[0]||new FZ.Pair(new $0t.Scalar(null));if(n.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${n.commentBefore} +${o.key.commentBefore}`:n.commentBefore),n.comment){let i=o.value??o.key;i.comment=i.comment?`${n.comment} +${i.comment}`:n.comment}n=o}e.items[r]=PN.isPair(n)?n:new FZ.Pair(n)}}else t("Expected a sequence for this tag");return e}function Wbe(e,t,r){let{replacer:n}=r,o=new M0t.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let a of t){typeof n=="function"&&(a=n.call(t,String(i++),a));let s,c;if(Array.isArray(a))if(a.length===2)s=a[0],c=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){let p=Object.keys(a);if(p.length===1)s=p[0],c=a[s];else throw new TypeError(`Expected tuple with one key, not ${p.length} keys`)}else s=a;o.items.push(FZ.createPair(s,c,r))}return o}var j0t={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Zbe,createNode:Wbe};ON.createPairs=Wbe;ON.pairs=j0t;ON.resolvePairs=Zbe});var $Z=L(LZ=>{"use strict";var Qbe=qn(),RZ=kh(),IA=Rh(),B0t=Lh(),Xbe=NN(),pS=class e extends B0t.YAMLSeq{constructor(){super(),this.add=IA.YAMLMap.prototype.add.bind(this),this.delete=IA.YAMLMap.prototype.delete.bind(this),this.get=IA.YAMLMap.prototype.get.bind(this),this.has=IA.YAMLMap.prototype.has.bind(this),this.set=IA.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(t,r){if(!r)return super.toJSON(t);let n=new Map;r?.onCreate&&r.onCreate(n);for(let o of this.items){let i,a;if(Qbe.isPair(o)?(i=RZ.toJS(o.key,"",r),a=RZ.toJS(o.value,i,r)):i=RZ.toJS(o,"",r),n.has(i))throw new Error("Ordered maps must not include duplicate keys");n.set(i,a)}return n}static from(t,r,n){let o=Xbe.createPairs(t,r,n),i=new this;return i.items=o.items,i}};pS.tag="tag:yaml.org,2002:omap";var q0t={collection:"seq",identify:e=>e instanceof Map,nodeClass:pS,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let r=Xbe.resolvePairs(e,t),n=[];for(let{key:o}of r.items)Qbe.isScalar(o)&&(n.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):n.push(o.value));return Object.assign(new pS,r)},createNode:(e,t,r)=>pS.from(e,t,r)};LZ.YAMLOMap=pS;LZ.omap=q0t});var nxe=L(MZ=>{"use strict";var Ybe=Vi();function exe({value:e,source:t},r){return t&&(e?txe:rxe).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}var txe={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Ybe.Scalar(!0),stringify:exe},rxe={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Ybe.Scalar(!1),stringify:exe};MZ.falseTag=rxe;MZ.trueTag=txe});var oxe=L(FN=>{"use strict";var U0t=Vi(),jZ=Z1(),z0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:jZ.stringifyNumber},V0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():jZ.stringifyNumber(e)}},J0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new U0t.Scalar(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(r!==-1){let n=e.substring(r+1).replace(/_/g,"");n[n.length-1]==="0"&&(t.minFractionDigits=n.length)}return t},stringify:jZ.stringifyNumber};FN.float=J0t;FN.floatExp=V0t;FN.floatNaN=z0t});var axe=L(CA=>{"use strict";var ixe=Z1(),kA=e=>typeof e=="bigint"||Number.isInteger(e);function RN(e,t,r,{intAsBigInt:n}){let o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let a=BigInt(e);return o==="-"?BigInt(-1)*a:a}let i=parseInt(e,r);return o==="-"?-1*i:i}function BZ(e,t,r){let{value:n}=e;if(kA(n)){let o=n.toString(t);return n<0?"-"+r+o.substr(1):r+o}return ixe.stringifyNumber(e)}var K0t={identify:kA,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>RN(e,2,2,r),stringify:e=>BZ(e,2,"0b")},G0t={identify:kA,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>RN(e,1,8,r),stringify:e=>BZ(e,8,"0")},H0t={identify:kA,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>RN(e,0,10,r),stringify:ixe.stringifyNumber},Z0t={identify:kA,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>RN(e,2,16,r),stringify:e=>BZ(e,16,"0x")};CA.int=H0t;CA.intBin=K0t;CA.intHex=Z0t;CA.intOct=G0t});var UZ=L(qZ=>{"use strict";var MN=qn(),LN=Nh(),$N=Rh(),dS=class e extends $N.YAMLMap{constructor(t){super(t),this.tag=e.tag}add(t){let r;MN.isPair(t)?r=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?r=new LN.Pair(t.key,null):r=new LN.Pair(t,null),$N.findPair(this.items,r.key)||this.items.push(r)}get(t,r){let n=$N.findPair(this.items,t);return!r&&MN.isPair(n)?MN.isScalar(n.key)?n.key.value:n.key:n}set(t,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);let n=$N.findPair(this.items,t);n&&!r?this.items.splice(this.items.indexOf(n),1):!n&&r&&this.items.push(new LN.Pair(t))}toJSON(t,r){return super.toJSON(t,r,Set)}toString(t,r,n){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),r,n);throw new Error("Set items must all have null values")}static from(t,r,n){let{replacer:o}=n,i=new this(t);if(r&&Symbol.iterator in Object(r))for(let a of r)typeof o=="function"&&(a=o.call(r,a,a)),i.items.push(LN.createPair(a,null,n));return i}};dS.tag="tag:yaml.org,2002:set";var W0t={collection:"map",identify:e=>e instanceof Set,nodeClass:dS,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>dS.from(e,t,r),resolve(e,t){if(MN.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new dS,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};qZ.YAMLSet=dS;qZ.set=W0t});var VZ=L(jN=>{"use strict";var Q0t=Z1();function zZ(e,t){let r=e[0],n=r==="-"||r==="+"?e.substring(1):e,o=a=>t?BigInt(a):Number(a),i=n.replace(/_/g,"").split(":").reduce((a,s)=>a*o(60)+o(s),o(0));return r==="-"?o(-1)*i:i}function sxe(e){let{value:t}=e,r=a=>a;if(typeof t=="bigint")r=a=>BigInt(a);else if(isNaN(t)||!isFinite(t))return Q0t.stringifyNumber(e);let n="";t<0&&(n="-",t*=r(-1));let o=r(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),n+i.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var X0t={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>zZ(e,r),stringify:sxe},Y0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>zZ(e,!1),stringify:sxe},cxe={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(cxe.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,r,n,o,i,a,s]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0,p=Date.UTC(r,n-1,o,i||0,a||0,s||0,c),d=t[8];if(d&&d!=="Z"){let f=zZ(d,!1);Math.abs(f)<30&&(f*=60),p-=6e4*f}return new Date(p)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};jN.floatTime=Y0t;jN.intTime=X0t;jN.timestamp=cxe});var pxe=L(uxe=>{"use strict";var evt=G1(),tvt=AN(),rvt=H1(),nvt=AA(),ovt=NZ(),lxe=nxe(),JZ=oxe(),BN=axe(),ivt=gN(),avt=$Z(),svt=NN(),cvt=UZ(),KZ=VZ(),lvt=[evt.map,rvt.seq,nvt.string,tvt.nullTag,lxe.trueTag,lxe.falseTag,BN.intBin,BN.intOct,BN.int,BN.intHex,JZ.floatNaN,JZ.floatExp,JZ.float,ovt.binary,ivt.merge,avt.omap,svt.pairs,cvt.set,KZ.intTime,KZ.floatTime,KZ.timestamp];uxe.schema=lvt});var bxe=L(ZZ=>{"use strict";var mxe=G1(),uvt=AN(),hxe=H1(),pvt=AA(),dvt=DZ(),GZ=wZ(),HZ=kZ(),_vt=Vbe(),fvt=Gbe(),yxe=NZ(),PA=gN(),gxe=$Z(),Sxe=NN(),dxe=pxe(),vxe=UZ(),qN=VZ(),_xe=new Map([["core",_vt.schema],["failsafe",[mxe.map,hxe.seq,pvt.string]],["json",fvt.schema],["yaml11",dxe.schema],["yaml-1.1",dxe.schema]]),fxe={binary:yxe.binary,bool:dvt.boolTag,float:GZ.float,floatExp:GZ.floatExp,floatNaN:GZ.floatNaN,floatTime:qN.floatTime,int:HZ.int,intHex:HZ.intHex,intOct:HZ.intOct,intTime:qN.intTime,map:mxe.map,merge:PA.merge,null:uvt.nullTag,omap:gxe.omap,pairs:Sxe.pairs,seq:hxe.seq,set:vxe.set,timestamp:qN.timestamp},mvt={"tag:yaml.org,2002:binary":yxe.binary,"tag:yaml.org,2002:merge":PA.merge,"tag:yaml.org,2002:omap":gxe.omap,"tag:yaml.org,2002:pairs":Sxe.pairs,"tag:yaml.org,2002:set":vxe.set,"tag:yaml.org,2002:timestamp":qN.timestamp};function hvt(e,t,r){let n=_xe.get(t);if(n&&!e)return r&&!n.includes(PA.merge)?n.concat(PA.merge):n.slice();let o=n;if(!o)if(Array.isArray(e))o=[];else{let i=Array.from(_xe.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${i} or define customTags array`)}if(Array.isArray(e))for(let i of e)o=o.concat(i);else typeof e=="function"&&(o=e(o.slice()));return r&&(o=o.concat(PA.merge)),o.reduce((i,a)=>{let s=typeof a=="string"?fxe[a]:a;if(!s){let c=JSON.stringify(a),p=Object.keys(fxe).map(d=>JSON.stringify(d)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${p}`)}return i.includes(s)||i.push(s),i},[])}ZZ.coreKnownTags=mvt;ZZ.getTags=hvt});var XZ=L(xxe=>{"use strict";var WZ=qn(),yvt=G1(),gvt=H1(),Svt=AA(),UN=bxe(),vvt=(e,t)=>e.keyt.key?1:0,QZ=class e{constructor({compat:t,customTags:r,merge:n,resolveKnownTags:o,schema:i,sortMapEntries:a,toStringDefaults:s}){this.compat=Array.isArray(t)?UN.getTags(t,"compat"):t?UN.getTags(null,t):null,this.name=typeof i=="string"&&i||"core",this.knownTags=o?UN.coreKnownTags:{},this.tags=UN.getTags(r,this.name,n),this.toStringOptions=s??null,Object.defineProperty(this,WZ.MAP,{value:yvt.map}),Object.defineProperty(this,WZ.SCALAR,{value:Svt.string}),Object.defineProperty(this,WZ.SEQ,{value:gvt.seq}),this.sortMapEntries=typeof a=="function"?a:a===!0?vvt:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};xxe.Schema=QZ});var Txe=L(Exe=>{"use strict";var bvt=qn(),YZ=xA(),OA=gA();function xvt(e,t){let r=[],n=t.directives===!0;if(t.directives!==!1&&e.directives){let c=e.directives.toString(e);c?(r.push(c),n=!0):e.directives.docStart&&(n=!0)}n&&r.push("---");let o=YZ.createStringifyContext(e,t),{commentString:i}=o.options;if(e.commentBefore){r.length!==1&&r.unshift("");let c=i(e.commentBefore);r.unshift(OA.indentComment(c,""))}let a=!1,s=null;if(e.contents){if(bvt.isNode(e.contents)){if(e.contents.spaceBefore&&n&&r.push(""),e.contents.commentBefore){let d=i(e.contents.commentBefore);r.push(OA.indentComment(d,""))}o.forceBlockIndent=!!e.comment,s=e.contents.comment}let c=s?void 0:()=>a=!0,p=YZ.stringify(e.contents,o,()=>s=null,c);s&&(p+=OA.lineComment(p,"",i(s))),(p[0]==="|"||p[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${p}`:r.push(p)}else r.push(YZ.stringify(e.contents,o));if(e.directives?.docEnd)if(e.comment){let c=i(e.comment);c.includes(` +`)?(r.push("..."),r.push(OA.indentComment(c,""))):r.push(`... ${c}`)}else r.push("...");else{let c=e.comment;c&&a&&(c=c.replace(/^\n+/,"")),c&&((!a||s)&&r[r.length-1]!==""&&r.push(""),r.push(OA.indentComment(i(c),"")))}return r.join(` `)+` -`}RHt.stringifyDocument=r2n});var Zde=dr(MHt=>{"use strict";var n2n=Fde(),zee=dwe(),hI=xf(),i2n=VB(),o2n=UB(),a2n=mot(),s2n=LHt(),got=lwe(),c2n=bit(),l2n=Rde(),yot=Sit(),vot=class e{constructor(r,i,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,hI.NODE_TYPE,{value:hI.DOC});let l=null;typeof i=="function"||Array.isArray(i)?l=i:s===void 0&&i&&(s=i,i=void 0);let d=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},s);this.options=d;let{version:h}=d;s?._directives?(this.directives=s._directives.atDocument(),this.directives.yaml.explicit&&(h=this.directives.yaml.version)):this.directives=new yot.Directives({version:h}),this.setSchema(h,s),this.contents=r===void 0?null:this.createNode(r,l,s)}clone(){let r=Object.create(e.prototype,{[hI.NODE_TYPE]:{value:hI.DOC}});return r.commentBefore=this.commentBefore,r.comment=this.comment,r.errors=this.errors.slice(),r.warnings=this.warnings.slice(),r.options=Object.assign({},this.options),this.directives&&(r.directives=this.directives.clone()),r.schema=this.schema.clone(),r.contents=hI.isNode(this.contents)?this.contents.clone(r.schema):this.contents,this.range&&(r.range=this.range.slice()),r}add(r){qee(this.contents)&&this.contents.add(r)}addIn(r,i){qee(this.contents)&&this.contents.addIn(r,i)}createAlias(r,i){if(!r.anchor){let s=got.anchorNames(this);r.anchor=!i||s.has(i)?got.findNewAnchor(i||"a",s):i}return new n2n.Alias(r.anchor)}createNode(r,i,s){let l;if(typeof i=="function")r=i.call({"":r},"",r),l=i;else if(Array.isArray(i)){let Re=pt=>typeof pt=="number"||pt instanceof String||pt instanceof Number,Je=i.filter(Re).map(String);Je.length>0&&(i=i.concat(Je)),l=i}else s===void 0&&i&&(s=i,i=void 0);let{aliasDuplicateObjects:d,anchorPrefix:h,flow:S,keepUndefined:b,onTagObj:A,tag:L}=s??{},{onAnchor:V,setAnchors:j,sourceObjects:ie}=got.createNodeAnchors(this,h||"a"),te={aliasDuplicateObjects:d??!0,keepUndefined:b??!1,onAnchor:V,onTagObj:A,replacer:l,schema:this.schema,sourceObjects:ie},X=l2n.createNode(r,L,te);return S&&hI.isCollection(X)&&(X.flow=!0),j(),X}createPair(r,i,s={}){let l=this.createNode(r,null,s),d=this.createNode(i,null,s);return new i2n.Pair(l,d)}delete(r){return qee(this.contents)?this.contents.delete(r):!1}deleteIn(r){return zee.isEmptyPath(r)?this.contents==null?!1:(this.contents=null,!0):qee(this.contents)?this.contents.deleteIn(r):!1}get(r,i){return hI.isCollection(this.contents)?this.contents.get(r,i):void 0}getIn(r,i){return zee.isEmptyPath(r)?!i&&hI.isScalar(this.contents)?this.contents.value:this.contents:hI.isCollection(this.contents)?this.contents.getIn(r,i):void 0}has(r){return hI.isCollection(this.contents)?this.contents.has(r):!1}hasIn(r){return zee.isEmptyPath(r)?this.contents!==void 0:hI.isCollection(this.contents)?this.contents.hasIn(r):!1}set(r,i){this.contents==null?this.contents=zee.collectionFromPath(this.schema,[r],i):qee(this.contents)&&this.contents.set(r,i)}setIn(r,i){zee.isEmptyPath(r)?this.contents=i:this.contents==null?this.contents=zee.collectionFromPath(this.schema,Array.from(r),i):qee(this.contents)&&this.contents.setIn(r,i)}setSchema(r,i={}){typeof r=="number"&&(r=String(r));let s;switch(r){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new yot.Directives({version:"1.1"}),s={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=r:this.directives=new yot.Directives({version:r}),s={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,s=null;break;default:{let l=JSON.stringify(r);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${l}`)}}if(i.schema instanceof Object)this.schema=i.schema;else if(s)this.schema=new a2n.Schema(Object.assign(s,i));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:r,jsonArg:i,mapAsMap:s,maxAliasCount:l,onAnchor:d,reviver:h}={}){let S={anchors:new Map,doc:this,keep:!r,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof l=="number"?l:100},b=o2n.toJS(this.contents,i??"",S);if(typeof d=="function")for(let{count:A,res:L}of S.anchors.values())d(L,A);return typeof h=="function"?c2n.applyReviver(h,{"":b},"",b):b}toJSON(r,i){return this.toJS({json:!0,jsonArg:r,mapAsMap:!1,onAnchor:i})}toString(r={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in r&&(!Number.isInteger(r.indent)||Number(r.indent)<=0)){let i=JSON.stringify(r.indent);throw new Error(`"indent" option must be a positive integer, not ${i}`)}return s2n.stringifyDocument(this,r)}};function qee(e){if(hI.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}MHt.Document=vot});var efe=dr(Yde=>{"use strict";var Xde=class extends Error{constructor(r,i,s,l){super(),this.name=r,this.code=s,this.message=l,this.pos=i}},Sot=class extends Xde{constructor(r,i,s){super("YAMLParseError",r,i,s)}},bot=class extends Xde{constructor(r,i,s){super("YAMLWarning",r,i,s)}},u2n=(e,r)=>i=>{if(i.pos[0]===-1)return;i.linePos=i.pos.map(S=>r.linePos(S));let{line:s,col:l}=i.linePos[0];i.message+=` at line ${s}, column ${l}`;let d=l-1,h=e.substring(r.lineStarts[s-1],r.lineStarts[s]).replace(/[\n\r]+$/,"");if(d>=60&&h.length>80){let S=Math.min(d-39,h.length-79);h="\u2026"+h.substring(S),d-=S-1}if(h.length>80&&(h=h.substring(0,79)+"\u2026"),s>1&&/^ *$/.test(h.substring(0,d))){let S=e.substring(r.lineStarts[s-2],r.lineStarts[s-1]);S.length>80&&(S=S.substring(0,79)+`\u2026 -`),h=S+h}if(/[^ ]/.test(h)){let S=1,b=i.linePos[1];b?.line===s&&b.col>l&&(S=Math.max(1,Math.min(b.col-l,80-d)));let A=" ".repeat(d)+"^".repeat(S);i.message+=`: +`}Exe.stringifyDocument=xvt});var NA=L(Dxe=>{"use strict";var Evt=hA(),W1=lN(),Wl=qn(),Tvt=Nh(),Dvt=kh(),Avt=XZ(),wvt=Txe(),eW=iN(),Ivt=oZ(),kvt=yA(),tW=nZ(),rW=class e{constructor(t,r,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Wl.NODE_TYPE,{value:Wl.DOC});let o=null;typeof r=="function"||Array.isArray(r)?o=r:n===void 0&&r&&(n=r,r=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new tW.Directives({version:a}),this.setSchema(a,n),this.contents=t===void 0?null:this.createNode(t,o,n)}clone(){let t=Object.create(e.prototype,{[Wl.NODE_TYPE]:{value:Wl.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Wl.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Q1(this.contents)&&this.contents.add(t)}addIn(t,r){Q1(this.contents)&&this.contents.addIn(t,r)}createAlias(t,r){if(!t.anchor){let n=eW.anchorNames(this);t.anchor=!r||n.has(r)?eW.findNewAnchor(r||"a",n):r}return new Evt.Alias(t.anchor)}createNode(t,r,n){let o;if(typeof r=="function")t=r.call({"":t},"",t),o=r;else if(Array.isArray(r)){let x=I=>typeof I=="number"||I instanceof String||I instanceof Number,A=r.filter(x).map(String);A.length>0&&(r=r.concat(A)),o=r}else n===void 0&&r&&(n=r,r=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:s,keepUndefined:c,onTagObj:p,tag:d}=n??{},{onAnchor:f,setAnchors:m,sourceObjects:y}=eW.createNodeAnchors(this,a||"a"),g={aliasDuplicateObjects:i??!0,keepUndefined:c??!1,onAnchor:f,onTagObj:p,replacer:o,schema:this.schema,sourceObjects:y},S=kvt.createNode(t,d,g);return s&&Wl.isCollection(S)&&(S.flow=!0),m(),S}createPair(t,r,n={}){let o=this.createNode(t,null,n),i=this.createNode(r,null,n);return new Tvt.Pair(o,i)}delete(t){return Q1(this.contents)?this.contents.delete(t):!1}deleteIn(t){return W1.isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):Q1(this.contents)?this.contents.deleteIn(t):!1}get(t,r){return Wl.isCollection(this.contents)?this.contents.get(t,r):void 0}getIn(t,r){return W1.isEmptyPath(t)?!r&&Wl.isScalar(this.contents)?this.contents.value:this.contents:Wl.isCollection(this.contents)?this.contents.getIn(t,r):void 0}has(t){return Wl.isCollection(this.contents)?this.contents.has(t):!1}hasIn(t){return W1.isEmptyPath(t)?this.contents!==void 0:Wl.isCollection(this.contents)?this.contents.hasIn(t):!1}set(t,r){this.contents==null?this.contents=W1.collectionFromPath(this.schema,[t],r):Q1(this.contents)&&this.contents.set(t,r)}setIn(t,r){W1.isEmptyPath(t)?this.contents=r:this.contents==null?this.contents=W1.collectionFromPath(this.schema,Array.from(t),r):Q1(this.contents)&&this.contents.setIn(t,r)}setSchema(t,r={}){typeof t=="number"&&(t=String(t));let n;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new tW.Directives({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new tW.Directives({version:t}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(n)this.schema=new Avt.Schema(Object.assign(n,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:r,mapAsMap:n,maxAliasCount:o,onAnchor:i,reviver:a}={}){let s={anchors:new Map,doc:this,keep:!t,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},c=Dvt.toJS(this.contents,r??"",s);if(typeof i=="function")for(let{count:p,res:d}of s.anchors.values())i(d,p);return typeof a=="function"?Ivt.applyReviver(a,{"":c},"",c):c}toJSON(t,r){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:r})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){let r=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return wvt.stringifyDocument(this,t)}};function Q1(e){if(Wl.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}Dxe.Document=rW});var LA=L(RA=>{"use strict";var FA=class extends Error{constructor(t,r,n,o){super(),this.name=t,this.code=n,this.message=o,this.pos=r}},nW=class extends FA{constructor(t,r,n){super("YAMLParseError",t,r,n)}},oW=class extends FA{constructor(t,r,n){super("YAMLWarning",t,r,n)}},Cvt=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(s=>t.linePos(s));let{line:n,col:o}=r.linePos[0];r.message+=` at line ${n}, column ${o}`;let i=o-1,a=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&a.length>80){let s=Math.min(i-39,a.length-79);a="\u2026"+a.substring(s),i-=s-1}if(a.length>80&&(a=a.substring(0,79)+"\u2026"),n>1&&/^ *$/.test(a.substring(0,i))){let s=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);s.length>80&&(s=s.substring(0,79)+`\u2026 +`),a=s+a}if(/[^ ]/.test(a)){let s=1,c=r.linePos[1];c?.line===n&&c.col>o&&(s=Math.max(1,Math.min(c.col-o,80-i)));let p=" ".repeat(i)+"^".repeat(s);r.message+=`: -${h} -${A} -`}};Yde.YAMLError=Xde;Yde.YAMLParseError=Sot;Yde.YAMLWarning=bot;Yde.prettifyError=u2n});var tfe=dr(jHt=>{"use strict";function p2n(e,{flow:r,indicator:i,next:s,offset:l,onError:d,parentIndent:h,startOnNewline:S}){let b=!1,A=S,L=S,V="",j="",ie=!1,te=!1,X=null,Re=null,Je=null,pt=null,$e=null,xt=null,tr=null;for(let Ut of e)switch(te&&(Ut.type!=="space"&&Ut.type!=="newline"&&Ut.type!=="comma"&&d(Ut.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),te=!1),X&&(A&&Ut.type!=="comment"&&Ut.type!=="newline"&&d(X,"TAB_AS_INDENT","Tabs are not allowed as indentation"),X=null),Ut.type){case"space":!r&&(i!=="doc-start"||s?.type!=="flow-collection")&&Ut.source.includes(" ")&&(X=Ut),L=!0;break;case"comment":{L||d(Ut,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let hr=Ut.source.substring(1)||" ";V?V+=j+hr:V=hr,j="",A=!1;break}case"newline":A?V?V+=Ut.source:(!xt||i!=="seq-item-ind")&&(b=!0):j+=Ut.source,A=!0,ie=!0,(Re||Je)&&(pt=Ut),L=!0;break;case"anchor":Re&&d(Ut,"MULTIPLE_ANCHORS","A node can have at most one anchor"),Ut.source.endsWith(":")&&d(Ut.offset+Ut.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),Re=Ut,tr??(tr=Ut.offset),A=!1,L=!1,te=!0;break;case"tag":{Je&&d(Ut,"MULTIPLE_TAGS","A node can have at most one tag"),Je=Ut,tr??(tr=Ut.offset),A=!1,L=!1,te=!0;break}case i:(Re||Je)&&d(Ut,"BAD_PROP_ORDER",`Anchors and tags must be after the ${Ut.source} indicator`),xt&&d(Ut,"UNEXPECTED_TOKEN",`Unexpected ${Ut.source} in ${r??"collection"}`),xt=Ut,A=i==="seq-item-ind"||i==="explicit-key-ind",L=!1;break;case"comma":if(r){$e&&d(Ut,"UNEXPECTED_TOKEN",`Unexpected , in ${r}`),$e=Ut,A=!1,L=!1;break}default:d(Ut,"UNEXPECTED_TOKEN",`Unexpected ${Ut.type} token`),A=!1,L=!1}let ht=e[e.length-1],wt=ht?ht.offset+ht.source.length:l;return te&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")&&d(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),X&&(A&&X.indent<=h||s?.type==="block-map"||s?.type==="block-seq")&&d(X,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:$e,found:xt,spaceBefore:b,comment:V,hasNewline:ie,anchor:Re,tag:Je,newlineAfterProp:pt,end:wt,start:tr??wt}}jHt.resolveProps=p2n});var Gwe=dr(BHt=>{"use strict";function xot(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(` -`))return!0;if(e.end){for(let r of e.end)if(r.type==="newline")return!0}return!1;case"flow-collection":for(let r of e.items){for(let i of r.start)if(i.type==="newline")return!0;if(r.sep){for(let i of r.sep)if(i.type==="newline")return!0}if(xot(r.key)||xot(r.value))return!0}return!1;default:return!0}}BHt.containsNewline=xot});var Tot=dr($Ht=>{"use strict";var _2n=Gwe();function d2n(e,r,i){if(r?.type==="flow-collection"){let s=r.end[0];s.indent===e&&(s.source==="]"||s.source==="}")&&_2n.containsNewline(r)&&i(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}$Ht.flowIndentCheck=d2n});var Eot=dr(zHt=>{"use strict";var UHt=xf();function f2n(e,r,i){let{uniqueKeys:s}=e.options;if(s===!1)return!1;let l=typeof s=="function"?s:(d,h)=>d===h||UHt.isScalar(d)&&UHt.isScalar(h)&&d.value===h.value;return r.some(d=>l(d.key,i))}zHt.mapIncludes=f2n});var HHt=dr(GHt=>{"use strict";var qHt=VB(),m2n=GB(),JHt=tfe(),h2n=Gwe(),VHt=Tot(),g2n=Eot(),WHt="All mapping items must start at the same column";function y2n({composeNode:e,composeEmptyNode:r},i,s,l,d){let h=d?.nodeClass??m2n.YAMLMap,S=new h(i.schema);i.atRoot&&(i.atRoot=!1);let b=s.offset,A=null;for(let L of s.items){let{start:V,key:j,sep:ie,value:te}=L,X=JHt.resolveProps(V,{indicator:"explicit-key-ind",next:j??ie?.[0],offset:b,onError:l,parentIndent:s.indent,startOnNewline:!0}),Re=!X.found;if(Re){if(j&&(j.type==="block-seq"?l(b,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in j&&j.indent!==s.indent&&l(b,"BAD_INDENT",WHt)),!X.anchor&&!X.tag&&!ie){A=X.end,X.comment&&(S.comment?S.comment+=` -`+X.comment:S.comment=X.comment);continue}(X.newlineAfterProp||h2n.containsNewline(j))&&l(j??V[V.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else X.found?.indent!==s.indent&&l(b,"BAD_INDENT",WHt);i.atKey=!0;let Je=X.end,pt=j?e(i,j,X,l):r(i,Je,V,null,X,l);i.schema.compat&&VHt.flowIndentCheck(s.indent,j,l),i.atKey=!1,g2n.mapIncludes(i,S.items,pt)&&l(Je,"DUPLICATE_KEY","Map keys must be unique");let $e=JHt.resolveProps(ie??[],{indicator:"map-value-ind",next:te,offset:pt.range[2],onError:l,parentIndent:s.indent,startOnNewline:!j||j.type==="block-scalar"});if(b=$e.end,$e.found){Re&&(te?.type==="block-map"&&!$e.hasNewline&&l(b,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),i.options.strict&&X.start<$e.found.offset-1024&&l(pt.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let xt=te?e(i,te,$e,l):r(i,b,ie,null,$e,l);i.schema.compat&&VHt.flowIndentCheck(s.indent,te,l),b=xt.range[2];let tr=new qHt.Pair(pt,xt);i.options.keepSourceTokens&&(tr.srcToken=L),S.items.push(tr)}else{Re&&l(pt.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),$e.comment&&(pt.comment?pt.comment+=` -`+$e.comment:pt.comment=$e.comment);let xt=new qHt.Pair(pt);i.options.keepSourceTokens&&(xt.srcToken=L),S.items.push(xt)}}return A&&A{"use strict";var v2n=HB(),S2n=tfe(),b2n=Tot();function x2n({composeNode:e,composeEmptyNode:r},i,s,l,d){let h=d?.nodeClass??v2n.YAMLSeq,S=new h(i.schema);i.atRoot&&(i.atRoot=!1),i.atKey&&(i.atKey=!1);let b=s.offset,A=null;for(let{start:L,value:V}of s.items){let j=S2n.resolveProps(L,{indicator:"seq-item-ind",next:V,offset:b,onError:l,parentIndent:s.indent,startOnNewline:!0});if(!j.found)if(j.anchor||j.tag||V)V?.type==="block-seq"?l(j.end,"BAD_INDENT","All sequence items must start at the same column"):l(b,"MISSING_CHAR","Sequence item without - indicator");else{A=j.end,j.comment&&(S.comment=j.comment);continue}let ie=V?e(i,V,j,l):r(i,j.end,L,null,j,l);i.schema.compat&&b2n.flowIndentCheck(s.indent,V,l),b=ie.range[2],S.items.push(ie)}return S.range=[s.offset,b,A??b],S}KHt.resolveBlockSeq=x2n});var Jee=dr(ZHt=>{"use strict";function T2n(e,r,i,s){let l="";if(e){let d=!1,h="";for(let S of e){let{source:b,type:A}=S;switch(A){case"space":d=!0;break;case"comment":{i&&!d&&s(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let L=b.substring(1)||" ";l?l+=h+L:l=L,h="";break}case"newline":l&&(h+=b),d=!0;break;default:s(S,"UNEXPECTED_TOKEN",`Unexpected ${A} at node end`)}r+=b.length}}return{comment:l,offset:r}}ZHt.resolveEnd=T2n});var tKt=dr(eKt=>{"use strict";var E2n=xf(),k2n=VB(),XHt=GB(),C2n=HB(),D2n=Jee(),YHt=tfe(),A2n=Gwe(),w2n=Eot(),kot="Block collections are not allowed within flow collections",Cot=e=>e&&(e.type==="block-map"||e.type==="block-seq");function I2n({composeNode:e,composeEmptyNode:r},i,s,l,d){let h=s.start.source==="{",S=h?"flow map":"flow sequence",b=d?.nodeClass??(h?XHt.YAMLMap:C2n.YAMLSeq),A=new b(i.schema);A.flow=!0;let L=i.atRoot;L&&(i.atRoot=!1),i.atKey&&(i.atKey=!1);let V=s.offset+s.start.source.length;for(let Re=0;Re0){let Re=D2n.resolveEnd(te,X,i.options.strict,l);Re.comment&&(A.comment?A.comment+=` -`+Re.comment:A.comment=Re.comment),A.range=[s.offset,X,Re.offset]}else A.range=[s.offset,X,X];return A}eKt.resolveFlowCollection=I2n});var nKt=dr(rKt=>{"use strict";var P2n=xf(),N2n=uv(),O2n=GB(),F2n=HB(),R2n=HHt(),L2n=QHt(),M2n=tKt();function Dot(e,r,i,s,l,d){let h=i.type==="block-map"?R2n.resolveBlockMap(e,r,i,s,d):i.type==="block-seq"?L2n.resolveBlockSeq(e,r,i,s,d):M2n.resolveFlowCollection(e,r,i,s,d),S=h.constructor;return l==="!"||l===S.tagName?(h.tag=S.tagName,h):(l&&(h.tag=l),h)}function j2n(e,r,i,s,l){let d=s.tag,h=d?r.directives.tagName(d.source,j=>l(d,"TAG_RESOLVE_FAILED",j)):null;if(i.type==="block-seq"){let{anchor:j,newlineAfterProp:ie}=s,te=j&&d?j.offset>d.offset?j:d:j??d;te&&(!ie||ie.offsetj.tag===h&&j.collection===S);if(!b){let j=r.schema.knownTags[h];if(j?.collection===S)r.schema.tags.push(Object.assign({},j,{default:!1})),b=j;else return j?l(d,"BAD_COLLECTION_TYPE",`${j.tag} used for ${S} collection, but expects ${j.collection??"scalar"}`,!0):l(d,"TAG_RESOLVE_FAILED",`Unresolved tag: ${h}`,!0),Dot(e,r,i,l,h)}let A=Dot(e,r,i,l,h,b),L=b.resolve?.(A,j=>l(d,"TAG_RESOLVE_FAILED",j),r.options)??A,V=P2n.isNode(L)?L:new N2n.Scalar(L);return V.range=A.range,V.tag=h,b?.format&&(V.format=b.format),V}rKt.composeCollection=j2n});var wot=dr(iKt=>{"use strict";var Aot=uv();function B2n(e,r,i){let s=r.offset,l=$2n(r,e.options.strict,i);if(!l)return{value:"",type:null,comment:"",range:[s,s,s]};let d=l.mode===">"?Aot.Scalar.BLOCK_FOLDED:Aot.Scalar.BLOCK_LITERAL,h=r.source?U2n(r.source):[],S=h.length;for(let X=h.length-1;X>=0;--X){let Re=h[X][1];if(Re===""||Re==="\r")S=X;else break}if(S===0){let X=l.chomp==="+"&&h.length>0?` -`.repeat(Math.max(1,h.length-1)):"",Re=s+l.length;return r.source&&(Re+=r.source.length),{value:X,type:d,comment:l.comment,range:[s,Re,Re]}}let b=r.indent+l.indent,A=r.offset+l.length,L=0;for(let X=0;Xb&&(b=Re.length);else{Re.length=S;--X)h[X][0].length>b&&(S=X+1);let V="",j="",ie=!1;for(let X=0;Xb||Je[0]===" "?(j===" "?j=` -`:!ie&&j===` -`&&(j=` +${a} +${p} +`}};RA.YAMLError=FA;RA.YAMLParseError=nW;RA.YAMLWarning=oW;RA.prettifyError=Cvt});var $A=L(Axe=>{"use strict";function Pvt(e,{flow:t,indicator:r,next:n,offset:o,onError:i,parentIndent:a,startOnNewline:s}){let c=!1,p=s,d=s,f="",m="",y=!1,g=!1,S=null,x=null,A=null,I=null,E=null,C=null,F=null;for(let N of e)switch(g&&(N.type!=="space"&&N.type!=="newline"&&N.type!=="comma"&&i(N.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),S&&(p&&N.type!=="comment"&&N.type!=="newline"&&i(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),S=null),N.type){case"space":!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&N.source.includes(" ")&&(S=N),d=!0;break;case"comment":{d||i(N,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let U=N.source.substring(1)||" ";f?f+=m+U:f=U,m="",p=!1;break}case"newline":p?f?f+=N.source:(!C||r!=="seq-item-ind")&&(c=!0):m+=N.source,p=!0,y=!0,(x||A)&&(I=N),d=!0;break;case"anchor":x&&i(N,"MULTIPLE_ANCHORS","A node can have at most one anchor"),N.source.endsWith(":")&&i(N.offset+N.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),x=N,F??(F=N.offset),p=!1,d=!1,g=!0;break;case"tag":{A&&i(N,"MULTIPLE_TAGS","A node can have at most one tag"),A=N,F??(F=N.offset),p=!1,d=!1,g=!0;break}case r:(x||A)&&i(N,"BAD_PROP_ORDER",`Anchors and tags must be after the ${N.source} indicator`),C&&i(N,"UNEXPECTED_TOKEN",`Unexpected ${N.source} in ${t??"collection"}`),C=N,p=r==="seq-item-ind"||r==="explicit-key-ind",d=!1;break;case"comma":if(t){E&&i(N,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),E=N,p=!1,d=!1;break}default:i(N,"UNEXPECTED_TOKEN",`Unexpected ${N.type} token`),p=!1,d=!1}let O=e[e.length-1],$=O?O.offset+O.source.length:o;return g&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S&&(p&&S.indent<=a||n?.type==="block-map"||n?.type==="block-seq")&&i(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:E,found:C,spaceBefore:c,comment:f,hasNewline:y,anchor:x,tag:A,newlineAfterProp:I,end:$,start:F??$}}Axe.resolveProps=Pvt});var zN=L(wxe=>{"use strict";function iW(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(` +`))return!0;if(e.end){for(let t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(let t of e.items){for(let r of t.start)if(r.type==="newline")return!0;if(t.sep){for(let r of t.sep)if(r.type==="newline")return!0}if(iW(t.key)||iW(t.value))return!0}return!1;default:return!0}}wxe.containsNewline=iW});var aW=L(Ixe=>{"use strict";var Ovt=zN();function Nvt(e,t,r){if(t?.type==="flow-collection"){let n=t.end[0];n.indent===e&&(n.source==="]"||n.source==="}")&&Ovt.containsNewline(t)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}Ixe.flowIndentCheck=Nvt});var sW=L(Cxe=>{"use strict";var kxe=qn();function Fvt(e,t,r){let{uniqueKeys:n}=e.options;if(n===!1)return!1;let o=typeof n=="function"?n:(i,a)=>i===a||kxe.isScalar(i)&&kxe.isScalar(a)&&i.value===a.value;return t.some(i=>o(i.key,r))}Cxe.mapIncludes=Fvt});var Lxe=L(Rxe=>{"use strict";var Pxe=Nh(),Rvt=Rh(),Oxe=$A(),Lvt=zN(),Nxe=aW(),$vt=sW(),Fxe="All mapping items must start at the same column";function Mvt({composeNode:e,composeEmptyNode:t},r,n,o,i){let a=i?.nodeClass??Rvt.YAMLMap,s=new a(r.schema);r.atRoot&&(r.atRoot=!1);let c=n.offset,p=null;for(let d of n.items){let{start:f,key:m,sep:y,value:g}=d,S=Oxe.resolveProps(f,{indicator:"explicit-key-ind",next:m??y?.[0],offset:c,onError:o,parentIndent:n.indent,startOnNewline:!0}),x=!S.found;if(x){if(m&&(m.type==="block-seq"?o(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in m&&m.indent!==n.indent&&o(c,"BAD_INDENT",Fxe)),!S.anchor&&!S.tag&&!y){p=S.end,S.comment&&(s.comment?s.comment+=` +`+S.comment:s.comment=S.comment);continue}(S.newlineAfterProp||Lvt.containsNewline(m))&&o(m??f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else S.found?.indent!==n.indent&&o(c,"BAD_INDENT",Fxe);r.atKey=!0;let A=S.end,I=m?e(r,m,S,o):t(r,A,f,null,S,o);r.schema.compat&&Nxe.flowIndentCheck(n.indent,m,o),r.atKey=!1,$vt.mapIncludes(r,s.items,I)&&o(A,"DUPLICATE_KEY","Map keys must be unique");let E=Oxe.resolveProps(y??[],{indicator:"map-value-ind",next:g,offset:I.range[2],onError:o,parentIndent:n.indent,startOnNewline:!m||m.type==="block-scalar"});if(c=E.end,E.found){x&&(g?.type==="block-map"&&!E.hasNewline&&o(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&S.start{"use strict";var jvt=Lh(),Bvt=$A(),qvt=aW();function Uvt({composeNode:e,composeEmptyNode:t},r,n,o,i){let a=i?.nodeClass??jvt.YAMLSeq,s=new a(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let c=n.offset,p=null;for(let{start:d,value:f}of n.items){let m=Bvt.resolveProps(d,{indicator:"seq-item-ind",next:f,offset:c,onError:o,parentIndent:n.indent,startOnNewline:!0});if(!m.found)if(m.anchor||m.tag||f)f?.type==="block-seq"?o(m.end,"BAD_INDENT","All sequence items must start at the same column"):o(c,"MISSING_CHAR","Sequence item without - indicator");else{p=m.end,m.comment&&(s.comment=m.comment);continue}let y=f?e(r,f,m,o):t(r,m.end,d,null,m,o);r.schema.compat&&qvt.flowIndentCheck(n.indent,f,o),c=y.range[2],s.items.push(y)}return s.range=[n.offset,c,p??c],s}$xe.resolveBlockSeq=Uvt});var X1=L(jxe=>{"use strict";function zvt(e,t,r,n){let o="";if(e){let i=!1,a="";for(let s of e){let{source:c,type:p}=s;switch(p){case"space":i=!0;break;case"comment":{r&&!i&&n(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let d=c.substring(1)||" ";o?o+=a+d:o=d,a="";break}case"newline":o&&(a+=c),i=!0;break;default:n(s,"UNEXPECTED_TOKEN",`Unexpected ${p} at node end`)}t+=c.length}}return{comment:o,offset:t}}jxe.resolveEnd=zvt});var zxe=L(Uxe=>{"use strict";var Vvt=qn(),Jvt=Nh(),Bxe=Rh(),Kvt=Lh(),Gvt=X1(),qxe=$A(),Hvt=zN(),Zvt=sW(),cW="Block collections are not allowed within flow collections",lW=e=>e&&(e.type==="block-map"||e.type==="block-seq");function Wvt({composeNode:e,composeEmptyNode:t},r,n,o,i){let a=n.start.source==="{",s=a?"flow map":"flow sequence",c=i?.nodeClass??(a?Bxe.YAMLMap:Kvt.YAMLSeq),p=new c(r.schema);p.flow=!0;let d=r.atRoot;d&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let f=n.offset+n.start.source.length;for(let x=0;x0){let x=Gvt.resolveEnd(g,S,r.options.strict,o);x.comment&&(p.comment?p.comment+=` +`+x.comment:p.comment=x.comment),p.range=[n.offset,S,x.offset]}else p.range=[n.offset,S,S];return p}Uxe.resolveFlowCollection=Wvt});var Jxe=L(Vxe=>{"use strict";var Qvt=qn(),Xvt=Vi(),Yvt=Rh(),e1t=Lh(),t1t=Lxe(),r1t=Mxe(),n1t=zxe();function uW(e,t,r,n,o,i){let a=r.type==="block-map"?t1t.resolveBlockMap(e,t,r,n,i):r.type==="block-seq"?r1t.resolveBlockSeq(e,t,r,n,i):n1t.resolveFlowCollection(e,t,r,n,i),s=a.constructor;return o==="!"||o===s.tagName?(a.tag=s.tagName,a):(o&&(a.tag=o),a)}function o1t(e,t,r,n,o){let i=n.tag,a=i?t.directives.tagName(i.source,m=>o(i,"TAG_RESOLVE_FAILED",m)):null;if(r.type==="block-seq"){let{anchor:m,newlineAfterProp:y}=n,g=m&&i?m.offset>i.offset?m:i:m??i;g&&(!y||y.offsetm.tag===a&&m.collection===s);if(!c){let m=t.schema.knownTags[a];if(m?.collection===s)t.schema.tags.push(Object.assign({},m,{default:!1})),c=m;else return m?o(i,"BAD_COLLECTION_TYPE",`${m.tag} used for ${s} collection, but expects ${m.collection??"scalar"}`,!0):o(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),uW(e,t,r,o,a)}let p=uW(e,t,r,o,a,c),d=c.resolve?.(p,m=>o(i,"TAG_RESOLVE_FAILED",m),t.options)??p,f=Qvt.isNode(d)?d:new Xvt.Scalar(d);return f.range=p.range,f.tag=a,c?.format&&(f.format=c.format),f}Vxe.composeCollection=o1t});var dW=L(Kxe=>{"use strict";var pW=Vi();function i1t(e,t,r){let n=t.offset,o=a1t(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[n,n,n]};let i=o.mode===">"?pW.Scalar.BLOCK_FOLDED:pW.Scalar.BLOCK_LITERAL,a=t.source?s1t(t.source):[],s=a.length;for(let S=a.length-1;S>=0;--S){let x=a[S][1];if(x===""||x==="\r")s=S;else break}if(s===0){let S=o.chomp==="+"&&a.length>0?` +`.repeat(Math.max(1,a.length-1)):"",x=n+o.length;return t.source&&(x+=t.source.length),{value:S,type:i,comment:o.comment,range:[n,x,x]}}let c=t.indent+o.indent,p=t.offset+o.length,d=0;for(let S=0;Sc&&(c=x.length);else{x.length=s;--S)a[S][0].length>c&&(s=S+1);let f="",m="",y=!1;for(let S=0;Sc||A[0]===" "?(m===" "?m=` +`:!y&&m===` +`&&(m=` -`),V+=j+Re.slice(b)+Je,j=` -`,ie=!0):Je===""?j===` -`?V+=` -`:j=` -`:(V+=j+Je,j=" ",ie=!1)}switch(l.chomp){case"-":break;case"+":for(let X=S;X{"use strict";var Iot=uv(),z2n=Jee();function q2n(e,r,i){let{offset:s,type:l,source:d,end:h}=e,S,b,A=(j,ie,te)=>i(s+j,ie,te);switch(l){case"scalar":S=Iot.Scalar.PLAIN,b=J2n(d,A);break;case"single-quoted-scalar":S=Iot.Scalar.QUOTE_SINGLE,b=V2n(d,A);break;case"double-quoted-scalar":S=Iot.Scalar.QUOTE_DOUBLE,b=W2n(d,A);break;default:return i(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${l}`),{value:"",type:null,comment:"",range:[s,s+d.length,s+d.length]}}let L=s+d.length,V=z2n.resolveEnd(h,L,r,i);return{value:b,type:S,comment:V.comment,range:[s,L,V.offset]}}function J2n(e,r){let i="";switch(e[0]){case" ":i="a tab character";break;case",":i="flow indicator character ,";break;case"%":i="directive indicator character %";break;case"|":case">":{i=`block scalar indicator ${e[0]}`;break}case"@":case"`":{i=`reserved character ${e[0]}`;break}}return i&&r(0,"BAD_SCALAR_START",`Plain value cannot start with ${i}`),oKt(e)}function V2n(e,r){return(e[e.length-1]!=="'"||e.length===1)&&r(e.length,"MISSING_CHAR","Missing closing 'quote"),oKt(e.slice(1,-1)).replace(/''/g,"'")}function oKt(e){let r,i;try{r=new RegExp(`(.*?)(?d?e.slice(d,s+1):l)}else i+=l}return(e[e.length-1]!=='"'||e.length===1)&&r(e.length,"MISSING_CHAR",'Missing closing "quote'),i}function G2n(e,r){let i="",s=e[r+1];for(;(s===" "||s===" "||s===` -`||s==="\r")&&!(s==="\r"&&e[r+2]!==` -`);)s===` -`&&(i+=` -`),r+=1,s=e[r+1];return i||(i=" "),{fold:i,offset:r}}var H2n={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:` -`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function K2n(e,r,i,s){let l=e.substr(r,i),h=l.length===i&&/^[0-9a-fA-F]+$/.test(l)?parseInt(l,16):NaN;if(isNaN(h)){let S=e.substr(r-2,i+2);return s(r-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${S}`),S}return String.fromCodePoint(h)}aKt.resolveFlowScalar=q2n});var lKt=dr(cKt=>{"use strict";var aW=xf(),sKt=uv(),Q2n=wot(),Z2n=Pot();function X2n(e,r,i,s){let{value:l,type:d,comment:h,range:S}=r.type==="block-scalar"?Q2n.resolveBlockScalar(e,r,s):Z2n.resolveFlowScalar(r,e.options.strict,s),b=i?e.directives.tagName(i.source,V=>s(i,"TAG_RESOLVE_FAILED",V)):null,A;e.options.stringKeys&&e.atKey?A=e.schema[aW.SCALAR]:b?A=Y2n(e.schema,l,b,i,s):r.type==="scalar"?A=eEn(e,l,r,s):A=e.schema[aW.SCALAR];let L;try{let V=A.resolve(l,j=>s(i??r,"TAG_RESOLVE_FAILED",j),e.options);L=aW.isScalar(V)?V:new sKt.Scalar(V)}catch(V){let j=V instanceof Error?V.message:String(V);s(i??r,"TAG_RESOLVE_FAILED",j),L=new sKt.Scalar(l)}return L.range=S,L.source=l,d&&(L.type=d),b&&(L.tag=b),A.format&&(L.format=A.format),h&&(L.comment=h),L}function Y2n(e,r,i,s,l){if(i==="!")return e[aW.SCALAR];let d=[];for(let S of e.tags)if(!S.collection&&S.tag===i)if(S.default&&S.test)d.push(S);else return S;for(let S of d)if(S.test?.test(r))return S;let h=e.knownTags[i];return h&&!h.collection?(e.tags.push(Object.assign({},h,{default:!1,test:void 0})),h):(l(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,i!=="tag:yaml.org,2002:str"),e[aW.SCALAR])}function eEn({atKey:e,directives:r,schema:i},s,l,d){let h=i.tags.find(S=>(S.default===!0||e&&S.default==="key")&&S.test?.test(s))||i[aW.SCALAR];if(i.compat){let S=i.compat.find(b=>b.default&&b.test?.test(s))??i[aW.SCALAR];if(h.tag!==S.tag){let b=r.tagString(h.tag),A=r.tagString(S.tag),L=`Value may be parsed as either ${b} or ${A}`;d(l,"TAG_RESOLVE_FAILED",L,!0)}}return h}cKt.composeScalar=X2n});var pKt=dr(uKt=>{"use strict";function tEn(e,r,i){if(r){i??(i=r.length);for(let s=i-1;s>=0;--s){let l=r[s];switch(l.type){case"space":case"comment":case"newline":e-=l.source.length;continue}for(l=r[++s];l?.type==="space";)e+=l.source.length,l=r[++s];break}}return e}uKt.emptyScalarPosition=tEn});var fKt=dr(Oot=>{"use strict";var rEn=Fde(),nEn=xf(),iEn=nKt(),_Kt=lKt(),oEn=Jee(),aEn=pKt(),sEn={composeNode:dKt,composeEmptyNode:Not};function dKt(e,r,i,s){let l=e.atKey,{spaceBefore:d,comment:h,anchor:S,tag:b}=i,A,L=!0;switch(r.type){case"alias":A=cEn(e,r,s),(S||b)&&s(r,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":A=_Kt.composeScalar(e,r,b,s),S&&(A.anchor=S.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":A=iEn.composeCollection(sEn,e,r,i,s),S&&(A.anchor=S.source.substring(1));break;default:{let V=r.type==="error"?r.message:`Unsupported token (type: ${r.type})`;s(r,"UNEXPECTED_TOKEN",V),A=Not(e,r.offset,void 0,null,i,s),L=!1}}return S&&A.anchor===""&&s(S,"BAD_ALIAS","Anchor cannot be an empty string"),l&&e.options.stringKeys&&(!nEn.isScalar(A)||typeof A.value!="string"||A.tag&&A.tag!=="tag:yaml.org,2002:str")&&s(b??r,"NON_STRING_KEY","With stringKeys, all keys must be strings"),d&&(A.spaceBefore=!0),h&&(r.type==="scalar"&&r.source===""?A.comment=h:A.commentBefore=h),e.options.keepSourceTokens&&L&&(A.srcToken=r),A}function Not(e,r,i,s,{spaceBefore:l,comment:d,anchor:h,tag:S,end:b},A){let L={type:"scalar",offset:aEn.emptyScalarPosition(r,i,s),indent:-1,source:""},V=_Kt.composeScalar(e,L,S,A);return h&&(V.anchor=h.source.substring(1),V.anchor===""&&A(h,"BAD_ALIAS","Anchor cannot be an empty string")),l&&(V.spaceBefore=!0),d&&(V.comment=d,V.range[2]=b),V}function cEn({options:e},{offset:r,source:i,end:s},l){let d=new rEn.Alias(i.substring(1));d.source===""&&l(r,"BAD_ALIAS","Alias cannot be an empty string"),d.source.endsWith(":")&&l(r+i.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let h=r+i.length,S=oEn.resolveEnd(s,h,e.strict,l);return d.range=[r,h,S.offset],S.comment&&(d.comment=S.comment),d}Oot.composeEmptyNode=Not;Oot.composeNode=dKt});var gKt=dr(hKt=>{"use strict";var lEn=Zde(),mKt=fKt(),uEn=Jee(),pEn=tfe();function _En(e,r,{offset:i,start:s,value:l,end:d},h){let S=Object.assign({_directives:r},e),b=new lEn.Document(void 0,S),A={atKey:!1,atRoot:!0,directives:b.directives,options:b.options,schema:b.schema},L=pEn.resolveProps(s,{indicator:"doc-start",next:l??d?.[0],offset:i,onError:h,parentIndent:0,startOnNewline:!0});L.found&&(b.directives.docStart=!0,l&&(l.type==="block-map"||l.type==="block-seq")&&!L.hasNewline&&h(L.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),b.contents=l?mKt.composeNode(A,l,L,h):mKt.composeEmptyNode(A,L.end,s,null,L,h);let V=b.contents.range[2],j=uEn.resolveEnd(d,V,!1,h);return j.comment&&(b.comment=j.comment),b.range=[i,V,j.offset],b}hKt.composeDoc=_En});var Rot=dr(SKt=>{"use strict";var dEn=a0("process"),fEn=Sit(),mEn=Zde(),rfe=efe(),yKt=xf(),hEn=gKt(),gEn=Jee();function nfe(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:r,source:i}=e;return[r,r+(typeof i=="string"?i.length:1)]}function vKt(e){let r="",i=!1,s=!1;for(let l=0;l{"use strict";var _W=Vi(),c1t=X1();function l1t(e,t,r){let{offset:n,type:o,source:i,end:a}=e,s,c,p=(m,y,g)=>r(n+m,y,g);switch(o){case"scalar":s=_W.Scalar.PLAIN,c=u1t(i,p);break;case"single-quoted-scalar":s=_W.Scalar.QUOTE_SINGLE,c=p1t(i,p);break;case"double-quoted-scalar":s=_W.Scalar.QUOTE_DOUBLE,c=d1t(i,p);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[n,n+i.length,n+i.length]}}let d=n+i.length,f=c1t.resolveEnd(a,d,t,r);return{value:c,type:s,comment:f.comment,range:[n,d,f.offset]}}function u1t(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),Gxe(e)}function p1t(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Gxe(e.slice(1,-1)).replace(/''/g,"'")}function Gxe(e){let t,r;try{t=new RegExp(`(.*?)(?i?e.slice(i,n+1):o)}else r+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}function _1t(e,t){let r="",n=e[t+1];for(;(n===" "||n===" "||n===` +`||n==="\r")&&!(n==="\r"&&e[t+2]!==` +`);)n===` +`&&(r+=` +`),t+=1,n=e[t+1];return r||(r=" "),{fold:r,offset:t}}var f1t={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:` +`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function m1t(e,t,r,n){let o=e.substr(t,r),a=o.length===r&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(a)){let s=e.substr(t-2,r+2);return n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),s}return String.fromCodePoint(a)}Hxe.resolveFlowScalar=l1t});var Qxe=L(Wxe=>{"use strict";var _S=qn(),Zxe=Vi(),h1t=dW(),y1t=fW();function g1t(e,t,r,n){let{value:o,type:i,comment:a,range:s}=t.type==="block-scalar"?h1t.resolveBlockScalar(e,t,n):y1t.resolveFlowScalar(t,e.options.strict,n),c=r?e.directives.tagName(r.source,f=>n(r,"TAG_RESOLVE_FAILED",f)):null,p;e.options.stringKeys&&e.atKey?p=e.schema[_S.SCALAR]:c?p=S1t(e.schema,o,c,r,n):t.type==="scalar"?p=v1t(e,o,t,n):p=e.schema[_S.SCALAR];let d;try{let f=p.resolve(o,m=>n(r??t,"TAG_RESOLVE_FAILED",m),e.options);d=_S.isScalar(f)?f:new Zxe.Scalar(f)}catch(f){let m=f instanceof Error?f.message:String(f);n(r??t,"TAG_RESOLVE_FAILED",m),d=new Zxe.Scalar(o)}return d.range=s,d.source=o,i&&(d.type=i),c&&(d.tag=c),p.format&&(d.format=p.format),a&&(d.comment=a),d}function S1t(e,t,r,n,o){if(r==="!")return e[_S.SCALAR];let i=[];for(let s of e.tags)if(!s.collection&&s.tag===r)if(s.default&&s.test)i.push(s);else return s;for(let s of i)if(s.test?.test(t))return s;let a=e.knownTags[r];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),e[_S.SCALAR])}function v1t({atKey:e,directives:t,schema:r},n,o,i){let a=r.tags.find(s=>(s.default===!0||e&&s.default==="key")&&s.test?.test(n))||r[_S.SCALAR];if(r.compat){let s=r.compat.find(c=>c.default&&c.test?.test(n))??r[_S.SCALAR];if(a.tag!==s.tag){let c=t.tagString(a.tag),p=t.tagString(s.tag),d=`Value may be parsed as either ${c} or ${p}`;i(o,"TAG_RESOLVE_FAILED",d,!0)}}return a}Wxe.composeScalar=g1t});var Yxe=L(Xxe=>{"use strict";function b1t(e,t,r){if(t){r??(r=t.length);for(let n=r-1;n>=0;--n){let o=t[n];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++n];o?.type==="space";)e+=o.source.length,o=t[++n];break}}return e}Xxe.emptyScalarPosition=b1t});var rEe=L(hW=>{"use strict";var x1t=hA(),E1t=qn(),T1t=Jxe(),eEe=Qxe(),D1t=X1(),A1t=Yxe(),w1t={composeNode:tEe,composeEmptyNode:mW};function tEe(e,t,r,n){let o=e.atKey,{spaceBefore:i,comment:a,anchor:s,tag:c}=r,p,d=!0;switch(t.type){case"alias":p=I1t(e,t,n),(s||c)&&n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":p=eEe.composeScalar(e,t,c,n),s&&(p.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":p=T1t.composeCollection(w1t,e,t,r,n),s&&(p.anchor=s.source.substring(1));break;default:{let f=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",f),p=mW(e,t.offset,void 0,null,r,n),d=!1}}return s&&p.anchor===""&&n(s,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!E1t.isScalar(p)||typeof p.value!="string"||p.tag&&p.tag!=="tag:yaml.org,2002:str")&&n(c??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),i&&(p.spaceBefore=!0),a&&(t.type==="scalar"&&t.source===""?p.comment=a:p.commentBefore=a),e.options.keepSourceTokens&&d&&(p.srcToken=t),p}function mW(e,t,r,n,{spaceBefore:o,comment:i,anchor:a,tag:s,end:c},p){let d={type:"scalar",offset:A1t.emptyScalarPosition(t,r,n),indent:-1,source:""},f=eEe.composeScalar(e,d,s,p);return a&&(f.anchor=a.source.substring(1),f.anchor===""&&p(a,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(f.spaceBefore=!0),i&&(f.comment=i,f.range[2]=c),f}function I1t({options:e},{offset:t,source:r,end:n},o){let i=new x1t.Alias(r.substring(1));i.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let a=t+r.length,s=D1t.resolveEnd(n,a,e.strict,o);return i.range=[t,a,s.offset],s.comment&&(i.comment=s.comment),i}hW.composeEmptyNode=mW;hW.composeNode=tEe});var iEe=L(oEe=>{"use strict";var k1t=NA(),nEe=rEe(),C1t=X1(),P1t=$A();function O1t(e,t,{offset:r,start:n,value:o,end:i},a){let s=Object.assign({_directives:t},e),c=new k1t.Document(void 0,s),p={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},d=P1t.resolveProps(n,{indicator:"doc-start",next:o??i?.[0],offset:r,onError:a,parentIndent:0,startOnNewline:!0});d.found&&(c.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!d.hasNewline&&a(d.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=o?nEe.composeNode(p,o,d,a):nEe.composeEmptyNode(p,d.end,n,null,d,a);let f=c.contents.range[2],m=C1t.resolveEnd(i,f,!1,a);return m.comment&&(c.comment=m.comment),c.range=[r,f,m.offset],c}oEe.composeDoc=O1t});var gW=L(cEe=>{"use strict";var N1t=_l("process"),F1t=nZ(),R1t=NA(),MA=LA(),aEe=qn(),L1t=iEe(),$1t=X1();function jA(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:r}=e;return[t,t+(typeof r=="string"?r.length:1)]}function sEe(e){let t="",r=!1,n=!1;for(let o=0;o{let h=nfe(i);d?this.warnings.push(new rfe.YAMLWarning(h,s,l)):this.errors.push(new rfe.YAMLParseError(h,s,l))},this.directives=new fEn.Directives({version:r.version||"1.2"}),this.options=r}decorate(r,i){let{comment:s,afterEmptyLine:l}=vKt(this.prelude);if(s){let d=r.contents;if(i)r.comment=r.comment?`${r.comment} -${s}`:s;else if(l||r.directives.docStart||!d)r.commentBefore=s;else if(yKt.isCollection(d)&&!d.flow&&d.items.length>0){let h=d.items[0];yKt.isPair(h)&&(h=h.key);let S=h.commentBefore;h.commentBefore=S?`${s} -${S}`:s}else{let h=d.commentBefore;d.commentBefore=h?`${s} -${h}`:s}}i?(Array.prototype.push.apply(r.errors,this.errors),Array.prototype.push.apply(r.warnings,this.warnings)):(r.errors=this.errors,r.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:vKt(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(r,i=!1,s=-1){for(let l of r)yield*this.next(l);yield*this.end(i,s)}*next(r){switch(dEn.env.LOG_STREAM&&console.dir(r,{depth:null}),r.type){case"directive":this.directives.add(r.source,(i,s,l)=>{let d=nfe(r);d[0]+=i,this.onError(d,"BAD_DIRECTIVE",s,l)}),this.prelude.push(r.source),this.atDirectives=!0;break;case"document":{let i=hEn.composeDoc(this.options,this.directives,r,this.onError);this.atDirectives&&!i.directives.docStart&&this.onError(r,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(i,!1),this.doc&&(yield this.doc),this.doc=i,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(r.source);break;case"error":{let i=r.source?`${r.message}: ${JSON.stringify(r.source)}`:r.message,s=new rfe.YAMLParseError(nfe(r),"UNEXPECTED_TOKEN",i);this.atDirectives||!this.doc?this.errors.push(s):this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){let s="Unexpected doc-end without preceding document";this.errors.push(new rfe.YAMLParseError(nfe(r),"UNEXPECTED_TOKEN",s));break}this.doc.directives.docEnd=!0;let i=gEn.resolveEnd(r.end,r.offset+r.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),i.comment){let s=this.doc.comment;this.doc.comment=s?`${s} -${i.comment}`:i.comment}this.doc.range[2]=i.offset;break}default:this.errors.push(new rfe.YAMLParseError(nfe(r),"UNEXPECTED_TOKEN",`Unsupported token ${r.type}`))}}*end(r=!1,i=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(r){let s=Object.assign({_directives:this.directives},this.options),l=new mEn.Document(void 0,s);this.atDirectives&&this.onError(i,"MISSING_CHAR","Missing directives-end indicator line"),l.range=[0,i,i],this.decorate(l,!1),yield l}}};SKt.Composer=Fot});var TKt=dr(Hwe=>{"use strict";var yEn=wot(),vEn=Pot(),SEn=efe(),bKt=Bde();function bEn(e,r=!0,i){if(e){let s=(l,d,h)=>{let S=typeof l=="number"?l:Array.isArray(l)?l[0]:l.offset;if(i)i(S,d,h);else throw new SEn.YAMLParseError([S,S+1],d,h)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return vEn.resolveFlowScalar(e,r,s);case"block-scalar":return yEn.resolveBlockScalar({options:{strict:r}},e,s)}}return null}function xEn(e,r){let{implicitKey:i=!1,indent:s,inFlow:l=!1,offset:d=-1,type:h="PLAIN"}=r,S=bKt.stringifyString({type:h,value:e},{implicitKey:i,indent:s>0?" ".repeat(s):"",inFlow:l,options:{blockQuote:!0,lineWidth:-1}}),b=r.end??[{type:"newline",offset:-1,indent:s,source:` -`}];switch(S[0]){case"|":case">":{let A=S.indexOf(` -`),L=S.substring(0,A),V=S.substring(A+1)+` -`,j=[{type:"block-scalar-header",offset:d,indent:s,source:L}];return xKt(j,b)||j.push({type:"newline",offset:-1,indent:s,source:` -`}),{type:"block-scalar",offset:d,indent:s,props:j,source:V}}case'"':return{type:"double-quoted-scalar",offset:d,indent:s,source:S,end:b};case"'":return{type:"single-quoted-scalar",offset:d,indent:s,source:S,end:b};default:return{type:"scalar",offset:d,indent:s,source:S,end:b}}}function TEn(e,r,i={}){let{afterKey:s=!1,implicitKey:l=!1,inFlow:d=!1,type:h}=i,S="indent"in e?e.indent:null;if(s&&typeof S=="number"&&(S+=2),!h)switch(e.type){case"single-quoted-scalar":h="QUOTE_SINGLE";break;case"double-quoted-scalar":h="QUOTE_DOUBLE";break;case"block-scalar":{let A=e.props[0];if(A.type!=="block-scalar-header")throw new Error("Invalid block scalar header");h=A.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:h="PLAIN"}let b=bKt.stringifyString({type:h,value:r},{implicitKey:l||S===null,indent:S!==null&&S>0?" ".repeat(S):"",inFlow:d,options:{blockQuote:!0,lineWidth:-1}});switch(b[0]){case"|":case">":EEn(e,b);break;case'"':Lot(e,b,"double-quoted-scalar");break;case"'":Lot(e,b,"single-quoted-scalar");break;default:Lot(e,b,"scalar")}}function EEn(e,r){let i=r.indexOf(` -`),s=r.substring(0,i),l=r.substring(i+1)+` -`;if(e.type==="block-scalar"){let d=e.props[0];if(d.type!=="block-scalar-header")throw new Error("Invalid block scalar header");d.source=s,e.source=l}else{let{offset:d}=e,h="indent"in e?e.indent:-1,S=[{type:"block-scalar-header",offset:d,indent:h,source:s}];xKt(S,"end"in e?e.end:void 0)||S.push({type:"newline",offset:-1,indent:h,source:` -`});for(let b of Object.keys(e))b!=="type"&&b!=="offset"&&delete e[b];Object.assign(e,{type:"block-scalar",indent:h,props:S,source:l})}}function xKt(e,r){if(r)for(let i of r)switch(i.type){case"space":case"comment":e.push(i);break;case"newline":return e.push(i),!0}return!1}function Lot(e,r,i){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=i,e.source=r;break;case"block-scalar":{let s=e.props.slice(1),l=r.length;e.props[0].type==="block-scalar-header"&&(l-=e.props[0].source.length);for(let d of s)d.offset+=l;delete e.props,Object.assign(e,{type:i,source:r,end:s});break}case"block-map":case"block-seq":{let l={type:"newline",offset:e.offset+r.length,indent:e.indent,source:` -`};delete e.items,Object.assign(e,{type:i,source:r,end:[l]});break}default:{let s="indent"in e?e.indent:-1,l="end"in e&&Array.isArray(e.end)?e.end.filter(d=>d.type==="space"||d.type==="comment"||d.type==="newline"):[];for(let d of Object.keys(e))d!=="type"&&d!=="offset"&&delete e[d];Object.assign(e,{type:i,indent:s,source:r,end:l})}}}Hwe.createScalarToken=xEn;Hwe.resolveAsScalar=bEn;Hwe.setScalarValue=TEn});var kKt=dr(EKt=>{"use strict";var kEn=e=>"type"in e?Qwe(e):Kwe(e);function Qwe(e){switch(e.type){case"block-scalar":{let r="";for(let i of e.props)r+=Qwe(i);return r+e.source}case"block-map":case"block-seq":{let r="";for(let i of e.items)r+=Kwe(i);return r}case"flow-collection":{let r=e.start.source;for(let i of e.items)r+=Kwe(i);for(let i of e.end)r+=i.source;return r}case"document":{let r=Kwe(e);if(e.end)for(let i of e.end)r+=i.source;return r}default:{let r=e.source;if("end"in e&&e.end)for(let i of e.end)r+=i.source;return r}}}function Kwe({start:e,key:r,sep:i,value:s}){let l="";for(let d of e)l+=d.source;if(r&&(l+=Qwe(r)),i)for(let d of i)l+=d.source;return s&&(l+=Qwe(s)),l}EKt.stringify=kEn});var wKt=dr(AKt=>{"use strict";var Mot=Symbol("break visit"),CEn=Symbol("skip children"),CKt=Symbol("remove item");function sW(e,r){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),DKt(Object.freeze([]),e,r)}sW.BREAK=Mot;sW.SKIP=CEn;sW.REMOVE=CKt;sW.itemAtPath=(e,r)=>{let i=e;for(let[s,l]of r){let d=i?.[s];if(d&&"items"in d)i=d.items[l];else return}return i};sW.parentCollection=(e,r)=>{let i=sW.itemAtPath(e,r.slice(0,-1)),s=r[r.length-1][0],l=i?.[s];if(l&&"items"in l)return l;throw new Error("Parent collection not found")};function DKt(e,r,i){let s=i(r,e);if(typeof s=="symbol")return s;for(let l of["key","value"]){let d=r[l];if(d&&"items"in d){for(let h=0;h{"use strict";var jot=TKt(),DEn=kKt(),AEn=wKt(),Bot="\uFEFF",$ot="",Uot="",zot="",wEn=e=>!!e&&"items"in e,IEn=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function PEn(e){switch(e){case Bot:return"";case $ot:return"";case Uot:return"";case zot:return"";default:return JSON.stringify(e)}}function NEn(e){switch(e){case Bot:return"byte-order-mark";case $ot:return"doc-mode";case Uot:return"flow-error-end";case zot:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case` +`)+(i.substring(1)||" "),r=!0,n=!1;break;case"%":e[o+1]?.[0]!=="#"&&(o+=1),r=!1;break;default:r||(n=!0),r=!1}}return{comment:t,afterEmptyLine:n}}var yW=class{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,n,o,i)=>{let a=jA(r);i?this.warnings.push(new MA.YAMLWarning(a,n,o)):this.errors.push(new MA.YAMLParseError(a,n,o))},this.directives=new F1t.Directives({version:t.version||"1.2"}),this.options=t}decorate(t,r){let{comment:n,afterEmptyLine:o}=sEe(this.prelude);if(n){let i=t.contents;if(r)t.comment=t.comment?`${t.comment} +${n}`:n;else if(o||t.directives.docStart||!i)t.commentBefore=n;else if(aEe.isCollection(i)&&!i.flow&&i.items.length>0){let a=i.items[0];aEe.isPair(a)&&(a=a.key);let s=a.commentBefore;a.commentBefore=s?`${n} +${s}`:n}else{let a=i.commentBefore;i.commentBefore=a?`${n} +${a}`:n}}r?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:sEe(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,r=!1,n=-1){for(let o of t)yield*this.next(o);yield*this.end(r,n)}*next(t){switch(N1t.env.LOG_STREAM&&console.dir(t,{depth:null}),t.type){case"directive":this.directives.add(t.source,(r,n,o)=>{let i=jA(t);i[0]+=r,this.onError(i,"BAD_DIRECTIVE",n,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{let r=L1t.composeDoc(this.options,this.directives,t,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{let r=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,n=new MA.YAMLParseError(jA(t),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){let n="Unexpected doc-end without preceding document";this.errors.push(new MA.YAMLParseError(jA(t),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;let r=$1t.resolveEnd(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){let n=this.doc.comment;this.doc.comment=n?`${n} +${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new MA.YAMLParseError(jA(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){let n=Object.assign({_directives:this.directives},this.options),o=new R1t.Document(void 0,n);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,r,r],this.decorate(o,!1),yield o}}};cEe.Composer=yW});var pEe=L(VN=>{"use strict";var M1t=dW(),j1t=fW(),B1t=LA(),lEe=bA();function q1t(e,t=!0,r){if(e){let n=(o,i,a)=>{let s=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(r)r(s,i,a);else throw new B1t.YAMLParseError([s,s+1],i,a)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return j1t.resolveFlowScalar(e,t,n);case"block-scalar":return M1t.resolveBlockScalar({options:{strict:t}},e,n)}}return null}function U1t(e,t){let{implicitKey:r=!1,indent:n,inFlow:o=!1,offset:i=-1,type:a="PLAIN"}=t,s=lEe.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),c=t.end??[{type:"newline",offset:-1,indent:n,source:` +`}];switch(s[0]){case"|":case">":{let p=s.indexOf(` +`),d=s.substring(0,p),f=s.substring(p+1)+` +`,m=[{type:"block-scalar-header",offset:i,indent:n,source:d}];return uEe(m,c)||m.push({type:"newline",offset:-1,indent:n,source:` +`}),{type:"block-scalar",offset:i,indent:n,props:m,source:f}}case'"':return{type:"double-quoted-scalar",offset:i,indent:n,source:s,end:c};case"'":return{type:"single-quoted-scalar",offset:i,indent:n,source:s,end:c};default:return{type:"scalar",offset:i,indent:n,source:s,end:c}}}function z1t(e,t,r={}){let{afterKey:n=!1,implicitKey:o=!1,inFlow:i=!1,type:a}=r,s="indent"in e?e.indent:null;if(n&&typeof s=="number"&&(s+=2),!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{let p=e.props[0];if(p.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=p.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}let c=lEe.stringifyString({type:a,value:t},{implicitKey:o||s===null,indent:s!==null&&s>0?" ".repeat(s):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":V1t(e,c);break;case'"':SW(e,c,"double-quoted-scalar");break;case"'":SW(e,c,"single-quoted-scalar");break;default:SW(e,c,"scalar")}}function V1t(e,t){let r=t.indexOf(` +`),n=t.substring(0,r),o=t.substring(r+1)+` +`;if(e.type==="block-scalar"){let i=e.props[0];if(i.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i.source=n,e.source=o}else{let{offset:i}=e,a="indent"in e?e.indent:-1,s=[{type:"block-scalar-header",offset:i,indent:a,source:n}];uEe(s,"end"in e?e.end:void 0)||s.push({type:"newline",offset:-1,indent:a,source:` +`});for(let c of Object.keys(e))c!=="type"&&c!=="offset"&&delete e[c];Object.assign(e,{type:"block-scalar",indent:a,props:s,source:o})}}function uEe(e,t){if(t)for(let r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function SW(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{let n=e.props.slice(1),o=t.length;e.props[0].type==="block-scalar-header"&&(o-=e.props[0].source.length);for(let i of n)i.offset+=o;delete e.props,Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{let o={type:"newline",offset:e.offset+t.length,indent:e.indent,source:` +`};delete e.items,Object.assign(e,{type:r,source:t,end:[o]});break}default:{let n="indent"in e?e.indent:-1,o="end"in e&&Array.isArray(e.end)?e.end.filter(i=>i.type==="space"||i.type==="comment"||i.type==="newline"):[];for(let i of Object.keys(e))i!=="type"&&i!=="offset"&&delete e[i];Object.assign(e,{type:r,indent:n,source:t,end:o})}}}VN.createScalarToken=U1t;VN.resolveAsScalar=q1t;VN.setScalarValue=z1t});var _Ee=L(dEe=>{"use strict";var J1t=e=>"type"in e?KN(e):JN(e);function KN(e){switch(e.type){case"block-scalar":{let t="";for(let r of e.props)t+=KN(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(let r of e.items)t+=JN(r);return t}case"flow-collection":{let t=e.start.source;for(let r of e.items)t+=JN(r);for(let r of e.end)t+=r.source;return t}case"document":{let t=JN(e);if(e.end)for(let r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let r of e.end)t+=r.source;return t}}}function JN({start:e,key:t,sep:r,value:n}){let o="";for(let i of e)o+=i.source;if(t&&(o+=KN(t)),r)for(let i of r)o+=i.source;return n&&(o+=KN(n)),o}dEe.stringify=J1t});var yEe=L(hEe=>{"use strict";var vW=Symbol("break visit"),K1t=Symbol("skip children"),fEe=Symbol("remove item");function fS(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),mEe(Object.freeze([]),e,t)}fS.BREAK=vW;fS.SKIP=K1t;fS.REMOVE=fEe;fS.itemAtPath=(e,t)=>{let r=e;for(let[n,o]of t){let i=r?.[n];if(i&&"items"in i)r=i.items[o];else return}return r};fS.parentCollection=(e,t)=>{let r=fS.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],o=r?.[n];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function mEe(e,t,r){let n=r(t,e);if(typeof n=="symbol")return n;for(let o of["key","value"]){let i=t[o];if(i&&"items"in i){for(let a=0;a{"use strict";var bW=pEe(),G1t=_Ee(),H1t=yEe(),xW="\uFEFF",EW="",TW="",DW="",Z1t=e=>!!e&&"items"in e,W1t=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function Q1t(e){switch(e){case xW:return"";case EW:return"";case TW:return"";case DW:return"";default:return JSON.stringify(e)}}function X1t(e){switch(e){case xW:return"byte-order-mark";case EW:return"doc-mode";case TW:return"flow-error-end";case DW:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case` `:case`\r -`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}wk.createScalarToken=jot.createScalarToken;wk.resolveAsScalar=jot.resolveAsScalar;wk.setScalarValue=jot.setScalarValue;wk.stringify=DEn.stringify;wk.visit=AEn.visit;wk.BOM=Bot;wk.DOCUMENT=$ot;wk.FLOW_END=Uot;wk.SCALAR=zot;wk.isCollection=wEn;wk.isScalar=IEn;wk.prettyToken=PEn;wk.tokenType=NEn});var Vot=dr(PKt=>{"use strict";var ife=Zwe();function i4(e){switch(e){case void 0:case" ":case` -`:case"\r":case" ":return!0;default:return!1}}var IKt=new Set("0123456789ABCDEFabcdef"),OEn=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Xwe=new Set(",[]{}"),FEn=new Set(` ,[]{} -\r `),qot=e=>!e||FEn.has(e),Jot=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(r,i=!1){if(r){if(typeof r!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+r:r,this.lineEndPos=null}this.atEnd=!i;let s=this.next??"stream";for(;s&&(i||this.hasChars(1));)s=yield*this.parseNext(s)}atLineEnd(){let r=this.pos,i=this.buffer[r];for(;i===" "||i===" ";)i=this.buffer[++r];return!i||i==="#"||i===` -`?!0:i==="\r"?this.buffer[r+1]===` -`:!1}charAt(r){return this.buffer[this.pos+r]}continueScalar(r){let i=this.buffer[r];if(this.indentNext>0){let s=0;for(;i===" ";)i=this.buffer[++s+r];if(i==="\r"){let l=this.buffer[s+r+1];if(l===` -`||!l&&!this.atEnd)return r+s+1}return i===` -`||s>=this.indentNext||!i&&!this.atEnd?r+s:-1}if(i==="-"||i==="."){let s=this.buffer.substr(r,3);if((s==="---"||s==="...")&&i4(this.buffer[r+3]))return-1}return r}getLine(){let r=this.lineEndPos;return(typeof r!="number"||r!==-1&&rthis.indentValue&&!i4(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[r,i]=this.peek(2);if(!i&&!this.atEnd)return this.setNext("block-start");if((r==="-"||r==="?"||r===":")&&i4(i)){let s=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=s,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let r=this.getLine();if(r===null)return this.setNext("doc");let i=yield*this.pushIndicators();switch(r[i]){case"#":yield*this.pushCount(r.length-i);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(qot),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return i+=yield*this.parseBlockScalarHeader(),i+=yield*this.pushSpaces(!0),yield*this.pushCount(r.length-i),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let r,i,s=-1;do r=yield*this.pushNewline(),r>0?(i=yield*this.pushSpaces(!1),this.indentValue=s=i):i=0,i+=yield*this.pushSpaces(!0);while(r+i>0);let l=this.getLine();if(l===null)return this.setNext("flow");if((s!==-1&&s"0"&&i<="9")this.blockScalarIndent=Number(i)-1;else if(i!=="-")break}return yield*this.pushUntil(i=>i4(i)||i==="#")}*parseBlockScalar(){let r=this.pos-1,i=0,s;e:for(let d=this.pos;s=this.buffer[d];++d)switch(s){case" ":i+=1;break;case` -`:r=d,i=0;break;case"\r":{let h=this.buffer[d+1];if(!h&&!this.atEnd)return this.setNext("block-scalar");if(h===` -`)break}default:break e}if(!s&&!this.atEnd)return this.setNext("block-scalar");if(i>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=i:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let d=this.continueScalar(r+1);if(d===-1)break;r=this.buffer.indexOf(` -`,d)}while(r!==-1);if(r===-1){if(!this.atEnd)return this.setNext("block-scalar");r=this.buffer.length}}let l=r+1;for(s=this.buffer[l];s===" ";)s=this.buffer[++l];if(s===" "){for(;s===" "||s===" "||s==="\r"||s===` -`;)s=this.buffer[++l];r=l-1}else if(!this.blockScalarKeep)do{let d=r-1,h=this.buffer[d];h==="\r"&&(h=this.buffer[--d]);let S=d;for(;h===" ";)h=this.buffer[--d];if(h===` -`&&d>=this.pos&&d+1+i>S)r=d;else break}while(!0);return yield ife.SCALAR,yield*this.pushToIndex(r+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let r=this.flowLevel>0,i=this.pos-1,s=this.pos-1,l;for(;l=this.buffer[++s];)if(l===":"){let d=this.buffer[s+1];if(i4(d)||r&&Xwe.has(d))break;i=s}else if(i4(l)){let d=this.buffer[s+1];if(l==="\r"&&(d===` -`?(s+=1,l=` -`,d=this.buffer[s+1]):i=s),d==="#"||r&&Xwe.has(d))break;if(l===` -`){let h=this.continueScalar(s+1);if(h===-1)break;s=Math.max(s,h-2)}}else{if(r&&Xwe.has(l))break;i=s}return!l&&!this.atEnd?this.setNext("plain-scalar"):(yield ife.SCALAR,yield*this.pushToIndex(i+1,!0),r?"flow":"doc")}*pushCount(r){return r>0?(yield this.buffer.substr(this.pos,r),this.pos+=r,r):0}*pushToIndex(r,i){let s=this.buffer.slice(this.pos,r);return s?(yield s,this.pos+=s.length,s.length):(i&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(qot))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let r=this.flowLevel>0,i=this.charAt(1);if(i4(i)||r&&Xwe.has(i))return r?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let r=this.pos+2,i=this.buffer[r];for(;!i4(i)&&i!==">";)i=this.buffer[++r];return yield*this.pushToIndex(i===">"?r+1:r,!1)}else{let r=this.pos+1,i=this.buffer[r];for(;i;)if(OEn.has(i))i=this.buffer[++r];else if(i==="%"&&IKt.has(this.buffer[r+1])&&IKt.has(this.buffer[r+2]))i=this.buffer[r+=3];else break;return yield*this.pushToIndex(r,!1)}}*pushNewline(){let r=this.buffer[this.pos];return r===` -`?yield*this.pushCount(1):r==="\r"&&this.charAt(1)===` -`?yield*this.pushCount(2):0}*pushSpaces(r){let i=this.pos-1,s;do s=this.buffer[++i];while(s===" "||r&&s===" ");let l=i-this.pos;return l>0&&(yield this.buffer.substr(this.pos,l),this.pos=i),l}*pushUntil(r){let i=this.pos,s=this.buffer[i];for(;!r(s);)s=this.buffer[++i];return yield*this.pushToIndex(i,!1)}};PKt.Lexer=Jot});var Got=dr(NKt=>{"use strict";var Wot=class{constructor(){this.lineStarts=[],this.addNewLine=r=>this.lineStarts.push(r),this.linePos=r=>{let i=0,s=this.lineStarts.length;for(;i>1;this.lineStarts[d]{"use strict";var REn=a0("process"),OKt=Zwe(),LEn=Vot();function KB(e,r){for(let i=0;i=0;)switch(e[r].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++r]?.type==="space";);return e.splice(r,e.length)}function RKt(e){if(e.start.type==="flow-seq-start")for(let r of e.items)r.sep&&!r.value&&!KB(r.start,"explicit-key-ind")&&!KB(r.sep,"map-value-ind")&&(r.key&&(r.value=r.key),delete r.key,LKt(r.value)?r.value.end?Array.prototype.push.apply(r.value.end,r.sep):r.value.end=r.sep:Array.prototype.push.apply(r.start,r.sep),delete r.sep)}var Hot=class{constructor(r){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new LEn.Lexer,this.onNewLine=r}*parse(r,i=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let s of this.lexer.lex(r,i))yield*this.next(s);i||(yield*this.end())}*next(r){if(this.source=r,REn.env.LOG_TOKENS&&console.log("|",OKt.prettyToken(r)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=r.length;return}let i=OKt.tokenType(r);if(i)if(i==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=i,yield*this.step(),i){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+r.length);break;case"space":this.atNewLine&&r[0]===" "&&(this.indent+=r.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=r.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=r.length}else{let s=`Not a YAML token: ${r}`;yield*this.pop({type:"error",offset:this.offset,message:s,source:r}),this.offset+=r.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let r=this.peek(1);if(this.type==="doc-end"&&r?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!r)return yield*this.stream();switch(r.type){case"document":return yield*this.document(r);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(r);case"block-scalar":return yield*this.blockScalar(r);case"block-map":return yield*this.blockMap(r);case"block-seq":return yield*this.blockSequence(r);case"flow-collection":return yield*this.flowCollection(r);case"doc-end":return yield*this.documentEnd(r)}yield*this.pop()}peek(r){return this.stack[this.stack.length-r]}*pop(r){let i=r??this.stack.pop();if(!i)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield i;else{let s=this.peek(1);switch(i.type==="block-scalar"?i.indent="indent"in s?s.indent:0:i.type==="flow-collection"&&s.type==="document"&&(i.indent=0),i.type==="flow-collection"&&RKt(i),s.type){case"document":s.value=i;break;case"block-scalar":s.props.push(i);break;case"block-map":{let l=s.items[s.items.length-1];if(l.value){s.items.push({start:[],key:i,sep:[]}),this.onKeyLine=!0;return}else if(l.sep)l.value=i;else{Object.assign(l,{key:i,sep:[]}),this.onKeyLine=!l.explicitKey;return}break}case"block-seq":{let l=s.items[s.items.length-1];l.value?s.items.push({start:[],value:i}):l.value=i;break}case"flow-collection":{let l=s.items[s.items.length-1];!l||l.value?s.items.push({start:[],key:i,sep:[]}):l.sep?l.value=i:Object.assign(l,{key:i,sep:[]});return}default:yield*this.pop(),yield*this.pop(i)}if((s.type==="document"||s.type==="block-map"||s.type==="block-seq")&&(i.type==="block-map"||i.type==="block-seq")){let l=i.items[i.items.length-1];l&&!l.sep&&!l.value&&l.start.length>0&&FKt(l.start)===-1&&(i.indent===0||l.start.every(d=>d.type!=="comment"||d.indent=r.indent){let s=!this.onKeyLine&&this.indent===r.indent,l=s&&(i.sep||i.explicitKey)&&this.type!=="seq-item-ind",d=[];if(l&&i.sep&&!i.value){let h=[];for(let S=0;Sr.indent&&(h.length=0);break;default:h.length=0}}h.length>=2&&(d=i.sep.splice(h[1]))}switch(this.type){case"anchor":case"tag":l||i.value?(d.push(this.sourceToken),r.items.push({start:d}),this.onKeyLine=!0):i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"explicit-key-ind":!i.sep&&!i.explicitKey?(i.start.push(this.sourceToken),i.explicitKey=!0):l||i.value?(d.push(this.sourceToken),r.items.push({start:d,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(i.explicitKey)if(i.sep)if(i.value)r.items.push({start:[],key:null,sep:[this.sourceToken]});else if(KB(i.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:d,key:null,sep:[this.sourceToken]}]});else if(LKt(i.key)&&!KB(i.sep,"newline")){let h=Vee(i.start),S=i.key,b=i.sep;b.push(this.sourceToken),delete i.key,delete i.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:S,sep:b}]})}else d.length>0?i.sep=i.sep.concat(d,this.sourceToken):i.sep.push(this.sourceToken);else if(KB(i.start,"newline"))Object.assign(i,{key:null,sep:[this.sourceToken]});else{let h=Vee(i.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:null,sep:[this.sourceToken]}]})}else i.sep?i.value||l?r.items.push({start:d,key:null,sep:[this.sourceToken]}):KB(i.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):i.sep.push(this.sourceToken):Object.assign(i,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let h=this.flowScalar(this.type);l||i.value?(r.items.push({start:d,key:h,sep:[]}),this.onKeyLine=!0):i.sep?this.stack.push(h):(Object.assign(i,{key:h,sep:[]}),this.onKeyLine=!0);return}default:{let h=this.startBlockValue(r);if(h){if(h.type==="block-seq"){if(!i.explicitKey&&i.sep&&!KB(i.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else s&&r.items.push({start:d});this.stack.push(h);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(r){let i=r.items[r.items.length-1];switch(this.type){case"newline":if(i.value){let s="end"in i.value?i.value.end:void 0;(Array.isArray(s)?s[s.length-1]:void 0)?.type==="comment"?s?.push(this.sourceToken):r.items.push({start:[this.sourceToken]})}else i.start.push(this.sourceToken);return;case"space":case"comment":if(i.value)r.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(i.start,r.indent)){let l=r.items[r.items.length-2]?.value?.end;if(Array.isArray(l)){Array.prototype.push.apply(l,i.start),l.push(this.sourceToken),r.items.pop();return}}i.start.push(this.sourceToken)}return;case"anchor":case"tag":if(i.value||this.indent<=r.indent)break;i.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==r.indent)break;i.value||KB(i.start,"seq-item-ind")?r.items.push({start:[this.sourceToken]}):i.start.push(this.sourceToken);return}if(this.indent>r.indent){let s=this.startBlockValue(r);if(s){this.stack.push(s);return}}yield*this.pop(),yield*this.step()}*flowCollection(r){let i=r.items[r.items.length-1];if(this.type==="flow-error-end"){let s;do yield*this.pop(),s=this.peek(1);while(s?.type==="flow-collection")}else if(r.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!i||i.sep?r.items.push({start:[this.sourceToken]}):i.start.push(this.sourceToken);return;case"map-value-ind":!i||i.value?r.items.push({start:[],key:null,sep:[this.sourceToken]}):i.sep?i.sep.push(this.sourceToken):Object.assign(i,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!i||i.value?r.items.push({start:[this.sourceToken]}):i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let l=this.flowScalar(this.type);!i||i.value?r.items.push({start:[],key:l,sep:[]}):i.sep?this.stack.push(l):Object.assign(i,{key:l,sep:[]});return}case"flow-map-end":case"flow-seq-end":r.end.push(this.sourceToken);return}let s=this.startBlockValue(r);s?this.stack.push(s):(yield*this.pop(),yield*this.step())}else{let s=this.peek(2);if(s.type==="block-map"&&(this.type==="map-value-ind"&&s.indent===r.indent||this.type==="newline"&&!s.items[s.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&s.type!=="flow-collection"){let l=Ywe(s),d=Vee(l);RKt(r);let h=r.end.splice(1,r.end.length);h.push(this.sourceToken);let S={type:"block-map",offset:r.offset,indent:r.indent,items:[{start:d,key:r,sep:h}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=S}else yield*this.lineEnd(r)}}flowScalar(r){if(this.onNewLine){let i=this.source.indexOf(` -`)+1;for(;i!==0;)this.onNewLine(this.offset+i),i=this.source.indexOf(` -`,i)+1}return{type:r,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(r){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let i=Ywe(r),s=Vee(i);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let i=Ywe(r),s=Vee(i);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(r,i){return this.type!=="comment"||this.indent<=i?!1:r.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(r){this.type!=="doc-mode"&&(r.end?r.end.push(this.sourceToken):r.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(r){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:r.end?r.end.push(this.sourceToken):r.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};MKt.Parser=Hot});var zKt=dr(afe=>{"use strict";var jKt=Rot(),MEn=Zde(),ofe=efe(),jEn=Oit(),BEn=xf(),$En=Got(),BKt=Kot();function $Kt(e){let r=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||r&&new $En.LineCounter||null,prettyErrors:r}}function UEn(e,r={}){let{lineCounter:i,prettyErrors:s}=$Kt(r),l=new BKt.Parser(i?.addNewLine),d=new jKt.Composer(r),h=Array.from(d.compose(l.parse(e)));if(s&&i)for(let S of h)S.errors.forEach(ofe.prettifyError(e,i)),S.warnings.forEach(ofe.prettifyError(e,i));return h.length>0?h:Object.assign([],{empty:!0},d.streamInfo())}function UKt(e,r={}){let{lineCounter:i,prettyErrors:s}=$Kt(r),l=new BKt.Parser(i?.addNewLine),d=new jKt.Composer(r),h=null;for(let S of d.compose(l.parse(e),!0,e.length))if(!h)h=S;else if(h.options.logLevel!=="silent"){h.errors.push(new ofe.YAMLParseError(S.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&i&&(h.errors.forEach(ofe.prettifyError(e,i)),h.warnings.forEach(ofe.prettifyError(e,i))),h}function zEn(e,r,i){let s;typeof r=="function"?s=r:i===void 0&&r&&typeof r=="object"&&(i=r);let l=UKt(e,i);if(!l)return null;if(l.warnings.forEach(d=>jEn.warn(l.options.logLevel,d)),l.errors.length>0){if(l.options.logLevel!=="silent")throw l.errors[0];l.errors=[]}return l.toJS(Object.assign({reviver:s},i))}function qEn(e,r,i){let s=null;if(typeof r=="function"||Array.isArray(r)?s=r:i===void 0&&r&&(i=r),typeof i=="string"&&(i=i.length),typeof i=="number"){let l=Math.round(i);i=l<1?void 0:l>8?{indent:8}:{indent:l}}if(e===void 0){let{keepUndefined:l}=i??r??{};if(!l)return}return BEn.isDocument(e)&&!s?e.toString(i):new MEn.Document(e,s,i).toString(i)}afe.parse=zEn;afe.parseAllDocuments=UEn;afe.parseDocument=UKt;afe.stringify=qEn});var JKt=dr(Um=>{"use strict";var JEn=Rot(),VEn=Zde(),WEn=mot(),Qot=efe(),GEn=Fde(),QB=xf(),HEn=VB(),KEn=uv(),QEn=GB(),ZEn=HB(),XEn=Zwe(),YEn=Vot(),ekn=Got(),tkn=Kot(),eIe=zKt(),qKt=Ide();Um.Composer=JEn.Composer;Um.Document=VEn.Document;Um.Schema=WEn.Schema;Um.YAMLError=Qot.YAMLError;Um.YAMLParseError=Qot.YAMLParseError;Um.YAMLWarning=Qot.YAMLWarning;Um.Alias=GEn.Alias;Um.isAlias=QB.isAlias;Um.isCollection=QB.isCollection;Um.isDocument=QB.isDocument;Um.isMap=QB.isMap;Um.isNode=QB.isNode;Um.isPair=QB.isPair;Um.isScalar=QB.isScalar;Um.isSeq=QB.isSeq;Um.Pair=HEn.Pair;Um.Scalar=KEn.Scalar;Um.YAMLMap=QEn.YAMLMap;Um.YAMLSeq=ZEn.YAMLSeq;Um.CST=XEn;Um.Lexer=YEn.Lexer;Um.LineCounter=ekn.LineCounter;Um.Parser=tkn.Parser;Um.parse=eIe.parse;Um.parseAllDocuments=eIe.parseAllDocuments;Um.parseDocument=eIe.parseDocument;Um.stringify=eIe.stringify;Um.visit=qKt.visit;Um.visitAsync=qKt.visitAsync});var fW,qat,wIe,mW,Ife,IIe=Rce(()=>{fW={JS_EVAL_TYPE_GLOBAL:0,JS_EVAL_TYPE_MODULE:1,JS_EVAL_TYPE_DIRECT:2,JS_EVAL_TYPE_INDIRECT:3,JS_EVAL_TYPE_MASK:3,JS_EVAL_FLAG_STRICT:8,JS_EVAL_FLAG_STRIP:16,JS_EVAL_FLAG_COMPILE_ONLY:32,JS_EVAL_FLAG_BACKTRACE_BARRIER:64},qat={BaseObjects:1,Date:2,Eval:4,StringNormalize:8,RegExp:16,RegExpCompiler:32,JSON:64,Proxy:128,MapSet:256,TypedArrays:512,Promise:1024,BigInt:2048,BigFloat:4096,BigDecimal:8192,OperatorOverloading:16384,BignumExt:32768},wIe={Pending:0,Fulfilled:1,Rejected:2},mW={JS_GPN_STRING_MASK:1,JS_GPN_SYMBOL_MASK:2,JS_GPN_PRIVATE_MASK:4,JS_GPN_ENUM_ONLY:16,JS_GPN_SET_ENUM:32,QTS_GPN_NUMBER_MASK:64,QTS_STANDARD_COMPLIANT_NUMBER:128},Ife={IsStrictlyEqual:0,IsSameValue:1,IsSameValueZero:2}});function Pfe(...e){Hat&&console.log("quickjs-emscripten:",...e)}function*VZt(e){return yield e}function NDn(e){return VZt(Qat(e))}function RZt(e,r){return(...i)=>{let s=r.call(e,Kat,...i);return Qat(s)}}function ODn(e,r){let i=r.call(e,Kat);return Qat(i)}function Qat(e){function r(i){return i.done?i.value:i.value instanceof Promise?i.value.then(s=>r(e.next(s)),s=>r(e.throw(s))):r(e.next(i.value))}return r(e.next())}function Jat(e,r){let i;try{e.dispose()}catch(s){i=s}if(r&&i)throw Object.assign(r,{message:`${r.message} - Then, failed to dispose scope: ${i.message}`,disposeError:i}),r;if(r||i)throw r||i}function FDn(e){let r=e?Array.from(e):[];function i(){return r.forEach(l=>l.alive?l.dispose():void 0)}function s(){return r.some(l=>l.alive)}return Object.defineProperty(r,Gat,{configurable:!0,enumerable:!1,value:i}),Object.defineProperty(r,"dispose",{configurable:!0,enumerable:!1,value:i}),Object.defineProperty(r,"alive",{configurable:!0,enumerable:!1,get:s}),r}function NIe(e){return!!(e&&(typeof e=="object"||typeof e=="function")&&"alive"in e&&typeof e.alive=="boolean"&&"dispose"in e&&typeof e.dispose=="function")}function jDn(e){if(!e)return 0;let r=0;for(let[i,s]of Object.entries(e)){if(!(i in qat))throw new zZt(i);s&&(r|=qat[i])}return r}function BDn(e){if(typeof e=="number")return e;if(e===void 0)return 0;let{type:r,strict:i,strip:s,compileOnly:l,backtraceBarrier:d}=e,h=0;return r==="global"&&(h|=fW.JS_EVAL_TYPE_GLOBAL),r==="module"&&(h|=fW.JS_EVAL_TYPE_MODULE),i&&(h|=fW.JS_EVAL_FLAG_STRICT),s&&(h|=fW.JS_EVAL_FLAG_STRIP),l&&(h|=fW.JS_EVAL_FLAG_COMPILE_ONLY),d&&(h|=fW.JS_EVAL_FLAG_BACKTRACE_BARRIER),h}function $Dn(e){if(typeof e=="number")return e;if(e===void 0)return 0;let{strings:r,symbols:i,quickjsPrivate:s,onlyEnumerable:l,numbers:d,numbersAsStrings:h}=e,S=0;return r&&(S|=mW.JS_GPN_STRING_MASK),i&&(S|=mW.JS_GPN_SYMBOL_MASK),s&&(S|=mW.JS_GPN_PRIVATE_MASK),l&&(S|=mW.JS_GPN_ENUM_ONLY),d&&(S|=mW.QTS_GPN_NUMBER_MASK),h&&(S|=mW.QTS_STANDARD_COMPLIANT_NUMBER),S}function UDn(...e){let r=[];for(let i of e)i!==void 0&&(r=r.concat(i));return r}function Yat(e,r){r.interruptHandler&&e.setInterruptHandler(r.interruptHandler),r.maxStackSizeBytes!==void 0&&e.setMaxStackSize(r.maxStackSizeBytes),r.memoryLimitBytes!==void 0&&e.setMemoryLimit(r.memoryLimitBytes)}function est(e,r){r.moduleLoader&&e.setModuleLoader(r.moduleLoader),r.shouldInterrupt&&e.setInterruptHandler(r.shouldInterrupt),r.memoryLimitBytes!==void 0&&e.setMemoryLimit(r.memoryLimitBytes),r.maxStackSizeBytes!==void 0&&e.setMaxStackSize(r.maxStackSizeBytes)}var DDn,ADn,Hat,wDn,Vat,jZt,Wat,BZt,$Zt,UZt,IDn,PDn,zZt,qZt,JZt,Kat,o$,Gat,LZt,G2,hW,MZt,j8,Zat,RDn,LDn,Xee,MDn,HZt,gei,zDn,qDn,JDn,VDn,WDn,Xat,KZt,QZt=Rce(()=>{IIe();IIe();DDn=Object.defineProperty,ADn=(e,r)=>{for(var i in r)DDn(e,i,{get:r[i],enumerable:!0})},Hat=!1;wDn={};ADn(wDn,{QuickJSAsyncifyError:()=>$Zt,QuickJSAsyncifySuspended:()=>UZt,QuickJSEmptyGetOwnPropertyNames:()=>JZt,QuickJSEmscriptenModuleError:()=>PDn,QuickJSMemoryLeakDetected:()=>IDn,QuickJSNotImplemented:()=>BZt,QuickJSPromisePending:()=>qZt,QuickJSUnknownIntrinsic:()=>zZt,QuickJSUnwrapError:()=>Vat,QuickJSUseAfterFree:()=>Wat,QuickJSWrongOwner:()=>jZt});Vat=class extends Error{constructor(e,r){let i=typeof e=="object"&&e&&"message"in e?String(e.message):String(e);super(i),this.cause=e,this.context=r,this.name="QuickJSUnwrapError"}},jZt=class extends Error{constructor(){super(...arguments),this.name="QuickJSWrongOwner"}},Wat=class extends Error{constructor(){super(...arguments),this.name="QuickJSUseAfterFree"}},BZt=class extends Error{constructor(){super(...arguments),this.name="QuickJSNotImplemented"}},$Zt=class extends Error{constructor(){super(...arguments),this.name="QuickJSAsyncifyError"}},UZt=class extends Error{constructor(){super(...arguments),this.name="QuickJSAsyncifySuspended"}},IDn=class extends Error{constructor(){super(...arguments),this.name="QuickJSMemoryLeakDetected"}},PDn=class extends Error{constructor(){super(...arguments),this.name="QuickJSEmscriptenModuleError"}},zZt=class extends TypeError{constructor(){super(...arguments),this.name="QuickJSUnknownIntrinsic"}},qZt=class extends Error{constructor(){super(...arguments),this.name="QuickJSPromisePending"}},JZt=class extends Error{constructor(){super(...arguments),this.name="QuickJSEmptyGetOwnPropertyNames"}};Kat=VZt;Kat.of=NDn;o$=class{[Symbol.dispose](){return this.dispose()}},Gat=Symbol.dispose??Symbol.for("Symbol.dispose"),LZt=o$.prototype;LZt[Gat]||(LZt[Gat]=function(){return this.dispose()});G2=class WZt extends o${constructor(r,i,s,l){super(),this._value=r,this.copier=i,this.disposer=s,this._owner=l,this._alive=!0,this._constructorStack=Hat?new Error("Lifetime constructed").stack:void 0}get alive(){return this._alive}get value(){return this.assertAlive(),this._value}get owner(){return this._owner}get dupable(){return!!this.copier}dup(){if(this.assertAlive(),!this.copier)throw new Error("Non-dupable lifetime");return new WZt(this.copier(this._value),this.copier,this.disposer,this._owner)}consume(r){this.assertAlive();let i=r(this);return this.dispose(),i}map(r){return this.assertAlive(),r(this)}tap(r){return r(this),this}dispose(){this.assertAlive(),this.disposer&&this.disposer(this._value),this._alive=!1}assertAlive(){if(!this.alive)throw this._constructorStack?new Wat(`Lifetime not alive -${this._constructorStack} -Lifetime used`):new Wat("Lifetime not alive")}},hW=class extends G2{constructor(e,r){super(e,void 0,void 0,r)}get dupable(){return!0}dup(){return this}dispose(){}},MZt=class extends G2{constructor(e,r,i,s){super(e,r,i,s)}dispose(){this._alive=!1}};j8=class PIe extends o${constructor(){super(...arguments),this._disposables=new G2(new Set),this.manage=r=>(this._disposables.value.add(r),r)}static withScope(r){let i=new PIe,s;try{return r(i)}catch(l){throw s=l,l}finally{Jat(i,s)}}static withScopeMaybeAsync(r,i){return ODn(void 0,function*(s){let l=new PIe,d;try{return yield*s.of(i.call(r,s,l))}catch(h){throw d=h,h}finally{Jat(l,d)}})}static async withScopeAsync(r){let i=new PIe,s;try{return await r(i)}catch(l){throw s=l,l}finally{Jat(i,s)}}get alive(){return this._disposables.alive}dispose(){let r=Array.from(this._disposables.value.values()).reverse();for(let i of r)i.alive&&i.dispose();this._disposables.dispose()}};Zat=class GZt extends o${static success(r){return new RDn(r)}static fail(r,i){return new LDn(r,i)}static is(r){return r instanceof GZt}},RDn=class extends Zat{constructor(e){super(),this.value=e}get alive(){return NIe(this.value)?this.value.alive:!0}dispose(){NIe(this.value)&&this.value.dispose()}unwrap(){return this.value}unwrapOr(e){return this.value}},LDn=class extends Zat{constructor(e,r){super(),this.error=e,this.onUnwrap=r}get alive(){return NIe(this.error)?this.error.alive:!0}dispose(){NIe(this.error)&&this.error.dispose()}unwrap(){throw this.onUnwrap(this),this.error}unwrapOr(e){return e}},Xee=Zat,MDn=class extends o${constructor(e){super(),this.resolve=r=>{this.resolveHandle.alive&&(this.context.unwrapResult(this.context.callFunction(this.resolveHandle,this.context.undefined,r||this.context.undefined)).dispose(),this.disposeResolvers(),this.onSettled())},this.reject=r=>{this.rejectHandle.alive&&(this.context.unwrapResult(this.context.callFunction(this.rejectHandle,this.context.undefined,r||this.context.undefined)).dispose(),this.disposeResolvers(),this.onSettled())},this.dispose=()=>{this.handle.alive&&this.handle.dispose(),this.disposeResolvers()},this.context=e.context,this.owner=e.context.runtime,this.handle=e.promiseHandle,this.settled=new Promise(r=>{this.onSettled=r}),this.resolveHandle=e.resolveHandle,this.rejectHandle=e.rejectHandle}get alive(){return this.handle.alive||this.resolveHandle.alive||this.rejectHandle.alive}disposeResolvers(){this.resolveHandle.alive&&this.resolveHandle.dispose(),this.rejectHandle.alive&&this.rejectHandle.dispose()}},HZt=class{constructor(e){this.module=e}toPointerArray(e){let r=new Int32Array(e.map(l=>l.value)),i=r.length*r.BYTES_PER_ELEMENT,s=this.module._malloc(i);return new Uint8Array(this.module.HEAPU8.buffer,s,i).set(new Uint8Array(r.buffer)),new G2(s,void 0,l=>this.module._free(l))}newTypedArray(e,r){let i=new e(new Array(r).fill(0)),s=i.length*i.BYTES_PER_ELEMENT,l=this.module._malloc(s),d=new e(this.module.HEAPU8.buffer,l,r);return d.set(i),new G2({typedArray:d,ptr:l},void 0,h=>this.module._free(h.ptr))}newMutablePointerArray(e){return this.newTypedArray(Int32Array,e)}newHeapCharPointer(e){let r=this.module.lengthBytesUTF8(e),i=r+1,s=this.module._malloc(i);return this.module.stringToUTF8(e,s,i),new G2({ptr:s,strlen:r},void 0,l=>this.module._free(l.ptr))}newHeapBufferPointer(e){let r=e.byteLength,i=this.module._malloc(r);return this.module.HEAPU8.set(e,i),new G2({pointer:i,numBytes:r},void 0,s=>this.module._free(s.pointer))}consumeHeapCharPointer(e){let r=this.module.UTF8ToString(e);return this.module._free(e),r}},gei=Object.freeze({BaseObjects:!0,Date:!0,Eval:!0,StringNormalize:!0,RegExp:!0,JSON:!0,Proxy:!0,MapSet:!0,TypedArrays:!0,Promise:!0});zDn=class extends o${constructor(e,r){super(),this.handle=e,this.context=r,this._isDone=!1,this.owner=r.runtime}[Symbol.iterator](){return this}next(e){if(!this.alive||this._isDone)return{done:!0,value:void 0};let r=this._next??(this._next=this.context.getProp(this.handle,"next"));return this.callIteratorMethod(r,e)}return(e){if(!this.alive)return{done:!0,value:void 0};let r=this.context.getProp(this.handle,"return");if(r===this.context.undefined&&e===void 0)return this.dispose(),{done:!0,value:void 0};let i=this.callIteratorMethod(r,e);return r.dispose(),this.dispose(),i}throw(e){if(!this.alive)return{done:!0,value:void 0};let r=e instanceof G2?e:this.context.newError(e),i=this.context.getProp(this.handle,"throw"),s=this.callIteratorMethod(i,e);return r.alive&&r.dispose(),i.dispose(),this.dispose(),s}get alive(){return this.handle.alive}dispose(){this._isDone=!0,this.handle.dispose(),this._next?.dispose()}callIteratorMethod(e,r){let i=r?this.context.callFunction(e,this.handle,r):this.context.callFunction(e,this.handle);if(i.error)return this.dispose(),{value:i};let s=this.context.getProp(i.value,"done").consume(d=>this.context.dump(d));if(s)return i.value.dispose(),this.dispose(),{done:s,value:void 0};let l=this.context.getProp(i.value,"value");return i.value.dispose(),{value:Xee.success(l),done:s}}},qDn=class extends HZt{constructor(e){super(e.module),this.scope=new j8,this.copyJSValue=r=>this.ffi.QTS_DupValuePointer(this.ctx.value,r),this.freeJSValue=r=>{this.ffi.QTS_FreeValuePointer(this.ctx.value,r)},e.ownedLifetimes?.forEach(r=>this.scope.manage(r)),this.owner=e.owner,this.module=e.module,this.ffi=e.ffi,this.rt=e.rt,this.ctx=this.scope.manage(e.ctx)}get alive(){return this.scope.alive}dispose(){return this.scope.dispose()}[Symbol.dispose](){return this.dispose()}manage(e){return this.scope.manage(e)}consumeJSCharPointer(e){let r=this.module.UTF8ToString(e);return this.ffi.QTS_FreeCString(this.ctx.value,e),r}heapValueHandle(e){return new G2(e,this.copyJSValue,this.freeJSValue,this.owner)}staticHeapValueHandle(e){return this.manage(this.heapValueHandle(e)),new hW(e,this.owner)}},JDn=class extends o${constructor(e){super(),this._undefined=void 0,this._null=void 0,this._false=void 0,this._true=void 0,this._global=void 0,this._BigInt=void 0,this._Symbol=void 0,this._SymbolIterator=void 0,this._SymbolAsyncIterator=void 0,this.fnNextId=-32768,this.fnMaps=new Map,this.cToHostCallbacks={callFunction:(r,i,s,l,d)=>{if(r!==this.ctx.value)throw new Error("QuickJSContext instance received C -> JS call with mismatched ctx");let h=this.getFunction(d);if(!h)throw new Error(`QuickJSContext had no callback with id ${d}`);return j8.withScopeMaybeAsync(this,function*(S,b){let A=b.manage(new MZt(i,this.memory.copyJSValue,this.memory.freeJSValue,this.runtime)),L=new Array(s);for(let V=0;Vthis.ffi.QTS_Throw(this.ctx.value,j.value))}})}},this.runtime=e.runtime,this.module=e.module,this.ffi=e.ffi,this.rt=e.rt,this.ctx=e.ctx,this.memory=new qDn({...e,owner:this.runtime}),e.callbacks.setContextCallbacks(this.ctx.value,this.cToHostCallbacks),this.dump=this.dump.bind(this),this.getString=this.getString.bind(this),this.getNumber=this.getNumber.bind(this),this.resolvePromise=this.resolvePromise.bind(this),this.uint32Out=this.memory.manage(this.memory.newTypedArray(Uint32Array,1))}get alive(){return this.memory.alive}dispose(){this.memory.dispose()}get undefined(){if(this._undefined)return this._undefined;let e=this.ffi.QTS_GetUndefined();return this._undefined=new hW(e)}get null(){if(this._null)return this._null;let e=this.ffi.QTS_GetNull();return this._null=new hW(e)}get true(){if(this._true)return this._true;let e=this.ffi.QTS_GetTrue();return this._true=new hW(e)}get false(){if(this._false)return this._false;let e=this.ffi.QTS_GetFalse();return this._false=new hW(e)}get global(){if(this._global)return this._global;let e=this.ffi.QTS_GetGlobalObject(this.ctx.value);return this._global=this.memory.staticHeapValueHandle(e),this._global}newNumber(e){return this.memory.heapValueHandle(this.ffi.QTS_NewFloat64(this.ctx.value,e))}newString(e){let r=this.memory.newHeapCharPointer(e).consume(i=>this.ffi.QTS_NewString(this.ctx.value,i.value.ptr));return this.memory.heapValueHandle(r)}newUniqueSymbol(e){let r=(typeof e=="symbol"?e.description:e)??"",i=this.memory.newHeapCharPointer(r).consume(s=>this.ffi.QTS_NewSymbol(this.ctx.value,s.value.ptr,0));return this.memory.heapValueHandle(i)}newSymbolFor(e){let r=(typeof e=="symbol"?e.description:e)??"",i=this.memory.newHeapCharPointer(r).consume(s=>this.ffi.QTS_NewSymbol(this.ctx.value,s.value.ptr,1));return this.memory.heapValueHandle(i)}getWellKnownSymbol(e){return this._Symbol??(this._Symbol=this.memory.manage(this.getProp(this.global,"Symbol"))),this.getProp(this._Symbol,e)}newBigInt(e){if(!this._BigInt){let s=this.getProp(this.global,"BigInt");this.memory.manage(s),this._BigInt=new hW(s.value,this.runtime)}let r=this._BigInt,i=String(e);return this.newString(i).consume(s=>this.unwrapResult(this.callFunction(r,this.undefined,s)))}newObject(e){e&&this.runtime.assertOwned(e);let r=e?this.ffi.QTS_NewObjectProto(this.ctx.value,e.value):this.ffi.QTS_NewObject(this.ctx.value);return this.memory.heapValueHandle(r)}newArray(){let e=this.ffi.QTS_NewArray(this.ctx.value);return this.memory.heapValueHandle(e)}newArrayBuffer(e){let r=new Uint8Array(e),i=this.memory.newHeapBufferPointer(r),s=this.ffi.QTS_NewArrayBuffer(this.ctx.value,i.value.pointer,r.length);return this.memory.heapValueHandle(s)}newPromise(e){let r=j8.withScope(i=>{let s=i.manage(this.memory.newMutablePointerArray(2)),l=this.ffi.QTS_NewPromiseCapability(this.ctx.value,s.value.ptr),d=this.memory.heapValueHandle(l),[h,S]=Array.from(s.value.typedArray).map(b=>this.memory.heapValueHandle(b));return new MDn({context:this,promiseHandle:d,resolveHandle:h,rejectHandle:S})});return e&&typeof e=="function"&&(e=new Promise(e)),e&&Promise.resolve(e).then(r.resolve,i=>i instanceof G2?r.reject(i):this.newError(i).consume(r.reject)),r}newFunction(e,r){let i=++this.fnNextId;return this.setFunction(i,r),this.memory.heapValueHandle(this.ffi.QTS_NewFunction(this.ctx.value,i,e))}newError(e){let r=this.memory.heapValueHandle(this.ffi.QTS_NewError(this.ctx.value));return e&&typeof e=="object"?(e.name!==void 0&&this.newString(e.name).consume(i=>this.setProp(r,"name",i)),e.message!==void 0&&this.newString(e.message).consume(i=>this.setProp(r,"message",i))):typeof e=="string"?this.newString(e).consume(i=>this.setProp(r,"message",i)):e!==void 0&&this.newString(String(e)).consume(i=>this.setProp(r,"message",i)),r}typeof(e){return this.runtime.assertOwned(e),this.memory.consumeHeapCharPointer(this.ffi.QTS_Typeof(this.ctx.value,e.value))}getNumber(e){return this.runtime.assertOwned(e),this.ffi.QTS_GetFloat64(this.ctx.value,e.value)}getString(e){return this.runtime.assertOwned(e),this.memory.consumeJSCharPointer(this.ffi.QTS_GetString(this.ctx.value,e.value))}getSymbol(e){this.runtime.assertOwned(e);let r=this.memory.consumeJSCharPointer(this.ffi.QTS_GetSymbolDescriptionOrKey(this.ctx.value,e.value));return this.ffi.QTS_IsGlobalSymbol(this.ctx.value,e.value)?Symbol.for(r):Symbol(r)}getBigInt(e){this.runtime.assertOwned(e);let r=this.getString(e);return BigInt(r)}getArrayBuffer(e){this.runtime.assertOwned(e);let r=this.ffi.QTS_GetArrayBufferLength(this.ctx.value,e.value),i=this.ffi.QTS_GetArrayBuffer(this.ctx.value,e.value);if(!i)throw new Error("Couldn't allocate memory to get ArrayBuffer");return new G2(this.module.HEAPU8.subarray(i,i+r),void 0,()=>this.module._free(i))}getPromiseState(e){this.runtime.assertOwned(e);let r=this.ffi.QTS_PromiseState(this.ctx.value,e.value);if(r<0)return{type:"fulfilled",value:e,notAPromise:!0};if(r===wIe.Pending)return{type:"pending",get error(){return new qZt("Cannot unwrap a pending promise")}};let i=this.ffi.QTS_PromiseResult(this.ctx.value,e.value),s=this.memory.heapValueHandle(i);if(r===wIe.Fulfilled)return{type:"fulfilled",value:s};if(r===wIe.Rejected)return{type:"rejected",error:s};throw s.dispose(),new Error(`Unknown JSPromiseStateEnum: ${r}`)}resolvePromise(e){this.runtime.assertOwned(e);let r=j8.withScope(i=>{let s=i.manage(this.getProp(this.global,"Promise")),l=i.manage(this.getProp(s,"resolve"));return this.callFunction(l,s,e)});return r.error?Promise.resolve(r):new Promise(i=>{j8.withScope(s=>{let l=s.manage(this.newFunction("resolve",b=>{i(this.success(b&&b.dup()))})),d=s.manage(this.newFunction("reject",b=>{i(this.fail(b&&b.dup()))})),h=s.manage(r.value),S=s.manage(this.getProp(h,"then"));this.callFunction(S,h,l,d).unwrap().dispose()})})}isEqual(e,r,i=Ife.IsStrictlyEqual){if(e===r)return!0;this.runtime.assertOwned(e),this.runtime.assertOwned(r);let s=this.ffi.QTS_IsEqual(this.ctx.value,e.value,r.value,i);if(s===-1)throw new BZt("WASM variant does not expose equality");return!!s}eq(e,r){return this.isEqual(e,r,Ife.IsStrictlyEqual)}sameValue(e,r){return this.isEqual(e,r,Ife.IsSameValue)}sameValueZero(e,r){return this.isEqual(e,r,Ife.IsSameValueZero)}getProp(e,r){this.runtime.assertOwned(e);let i;return typeof r=="number"&&r>=0?i=this.ffi.QTS_GetPropNumber(this.ctx.value,e.value,r):i=this.borrowPropertyKey(r).consume(s=>this.ffi.QTS_GetProp(this.ctx.value,e.value,s.value)),this.memory.heapValueHandle(i)}getLength(e){if(this.runtime.assertOwned(e),!(this.ffi.QTS_GetLength(this.ctx.value,this.uint32Out.value.ptr,e.value)<0))return this.uint32Out.value.typedArray[0]}getOwnPropertyNames(e,r={strings:!0,numbersAsStrings:!0}){this.runtime.assertOwned(e),e.value;let i=$Dn(r);if(i===0)throw new JZt("No options set, will return an empty array");return j8.withScope(s=>{let l=s.manage(this.memory.newMutablePointerArray(1)),d=this.ffi.QTS_GetOwnPropertyNames(this.ctx.value,l.value.ptr,this.uint32Out.value.ptr,e.value,i);if(d)return this.fail(this.memory.heapValueHandle(d));let h=this.uint32Out.value.typedArray[0],S=l.value.typedArray[0],b=new Uint32Array(this.module.HEAP8.buffer,S,h),A=Array.from(b).map(L=>this.memory.heapValueHandle(L));return this.ffi.QTS_FreeVoidPointer(this.ctx.value,S),this.success(FDn(A))})}getIterator(e){let r=this._SymbolIterator??(this._SymbolIterator=this.memory.manage(this.getWellKnownSymbol("iterator")));return j8.withScope(i=>{let s=i.manage(this.getProp(e,r)),l=this.callFunction(s,e);return l.error?l:this.success(new zDn(l.value,this))})}setProp(e,r,i){this.runtime.assertOwned(e),this.borrowPropertyKey(r).consume(s=>this.ffi.QTS_SetProp(this.ctx.value,e.value,s.value,i.value))}defineProp(e,r,i){this.runtime.assertOwned(e),j8.withScope(s=>{let l=s.manage(this.borrowPropertyKey(r)),d=i.value||this.undefined,h=!!i.configurable,S=!!i.enumerable,b=!!i.value,A=i.get?s.manage(this.newFunction(i.get.name,i.get)):this.undefined,L=i.set?s.manage(this.newFunction(i.set.name,i.set)):this.undefined;this.ffi.QTS_DefineProp(this.ctx.value,e.value,l.value,d.value,A.value,L.value,h,S,b)})}callFunction(e,r,...i){this.runtime.assertOwned(e);let s,l=i[0];l===void 0||Array.isArray(l)?s=l??[]:s=i;let d=this.memory.toPointerArray(s).consume(S=>this.ffi.QTS_Call(this.ctx.value,e.value,r.value,s.length,S.value)),h=this.ffi.QTS_ResolveException(this.ctx.value,d);return h?(this.ffi.QTS_FreeValuePointer(this.ctx.value,d),this.fail(this.memory.heapValueHandle(h))):this.success(this.memory.heapValueHandle(d))}callMethod(e,r,i=[]){return this.getProp(e,r).consume(s=>this.callFunction(s,e,i))}evalCode(e,r="eval.js",i){let s=i===void 0?1:0,l=BDn(i),d=this.memory.newHeapCharPointer(e).consume(S=>this.ffi.QTS_Eval(this.ctx.value,S.value.ptr,S.value.strlen,r,s,l)),h=this.ffi.QTS_ResolveException(this.ctx.value,d);return h?(this.ffi.QTS_FreeValuePointer(this.ctx.value,d),this.fail(this.memory.heapValueHandle(h))):this.success(this.memory.heapValueHandle(d))}throw(e){return this.errorToHandle(e).consume(r=>this.ffi.QTS_Throw(this.ctx.value,r.value))}borrowPropertyKey(e){return typeof e=="number"?this.newNumber(e):typeof e=="string"?this.newString(e):new hW(e.value,this.runtime)}getMemory(e){if(e===this.rt.value)return this.memory;throw new Error("Private API. Cannot get memory from a different runtime")}dump(e){this.runtime.assertOwned(e);let r=this.typeof(e);if(r==="string")return this.getString(e);if(r==="number")return this.getNumber(e);if(r==="bigint")return this.getBigInt(e);if(r==="undefined")return;if(r==="symbol")return this.getSymbol(e);let i=this.getPromiseState(e);if(i.type==="fulfilled"&&!i.notAPromise)return e.dispose(),{type:i.type,value:i.value.consume(this.dump)};if(i.type==="pending")return e.dispose(),{type:i.type};if(i.type==="rejected")return e.dispose(),{type:i.type,error:i.error.consume(this.dump)};let s=this.memory.consumeJSCharPointer(this.ffi.QTS_Dump(this.ctx.value,e.value));try{return JSON.parse(s)}catch{return s}}unwrapResult(e){if(e.error){let r="context"in e.error?e.error.context:this,i=e.error.consume(s=>this.dump(s));if(i&&typeof i=="object"&&typeof i.message=="string"){let{message:s,name:l,stack:d,...h}=i,S=new Vat(i,r);typeof l=="string"&&(S.name=i.name),S.message=s;let b=S.stack;throw typeof d=="string"&&(S.stack=`${l}: ${s} -${i.stack}Host: ${b}`),Object.assign(S,h),S}throw new Vat(i)}return e.value}[Symbol.for("nodejs.util.inspect.custom")](){return this.alive?`${this.constructor.name} { ctx: ${this.ctx.value} rt: ${this.rt.value} }`:`${this.constructor.name} { disposed }`}getFunction(e){let r=e>>8,i=this.fnMaps.get(r);if(i)return i.get(e)}setFunction(e,r){let i=e>>8,s=this.fnMaps.get(i);return s||(s=new Map,this.fnMaps.set(i,s)),s.set(e,r)}errorToHandle(e){return e instanceof G2?e:this.newError(e)}encodeBinaryJSON(e){let r=this.ffi.QTS_bjson_encode(this.ctx.value,e.value);return this.memory.heapValueHandle(r)}decodeBinaryJSON(e){let r=this.ffi.QTS_bjson_decode(this.ctx.value,e.value);return this.memory.heapValueHandle(r)}success(e){return Xee.success(e)}fail(e){return Xee.fail(e,r=>this.unwrapResult(r))}},VDn=class extends o${constructor(e){super(),this.scope=new j8,this.contextMap=new Map,this._debugMode=!1,this.cToHostCallbacks={shouldInterrupt:r=>{if(r!==this.rt.value)throw new Error("QuickJSContext instance received C -> JS interrupt with mismatched rt");let i=this.interruptHandler;if(!i)throw new Error("QuickJSContext had no interrupt handler");return i(this)?1:0},loadModuleSource:RZt(this,function*(r,i,s,l){let d=this.moduleLoader;if(!d)throw new Error("Runtime has no module loader");if(i!==this.rt.value)throw new Error("Runtime pointer mismatch");let h=this.contextMap.get(s)??this.newContext({contextPointer:s});try{let S=yield*r(d(l,h));if(typeof S=="object"&&"error"in S&&S.error)throw this.debugLog("cToHostLoadModule: loader returned error",S.error),S.error;let b=typeof S=="string"?S:"value"in S?S.value:S;return this.memory.newHeapCharPointer(b).value.ptr}catch(S){return this.debugLog("cToHostLoadModule: caught error",S),h.throw(S),0}}),normalizeModule:RZt(this,function*(r,i,s,l,d){let h=this.moduleNormalizer;if(!h)throw new Error("Runtime has no module normalizer");if(i!==this.rt.value)throw new Error("Runtime pointer mismatch");let S=this.contextMap.get(s)??this.newContext({contextPointer:s});try{let b=yield*r(h(l,d,S));if(typeof b=="object"&&"error"in b&&b.error)throw this.debugLog("cToHostNormalizeModule: normalizer returned error",b.error),b.error;let A=typeof b=="string"?b:b.value;return S.getMemory(this.rt.value).newHeapCharPointer(A).value.ptr}catch(b){return this.debugLog("normalizeModule: caught error",b),S.throw(b),0}})},e.ownedLifetimes?.forEach(r=>this.scope.manage(r)),this.module=e.module,this.memory=new HZt(this.module),this.ffi=e.ffi,this.rt=e.rt,this.callbacks=e.callbacks,this.scope.manage(this.rt),this.callbacks.setRuntimeCallbacks(this.rt.value,this.cToHostCallbacks),this.executePendingJobs=this.executePendingJobs.bind(this),Hat&&this.setDebugMode(!0)}get alive(){return this.scope.alive}dispose(){return this.scope.dispose()}newContext(e={}){let r=jDn(e.intrinsics),i=new G2(e.contextPointer||this.ffi.QTS_NewContext(this.rt.value,r),void 0,l=>{this.contextMap.delete(l),this.callbacks.deleteContext(l),this.ffi.QTS_FreeContext(l)}),s=new JDn({module:this.module,ctx:i,ffi:this.ffi,rt:this.rt,ownedLifetimes:e.ownedLifetimes,runtime:this,callbacks:this.callbacks});return this.contextMap.set(i.value,s),s}setModuleLoader(e,r){this.moduleLoader=e,this.moduleNormalizer=r,this.ffi.QTS_RuntimeEnableModuleLoader(this.rt.value,this.moduleNormalizer?1:0)}removeModuleLoader(){this.moduleLoader=void 0,this.ffi.QTS_RuntimeDisableModuleLoader(this.rt.value)}hasPendingJob(){return!!this.ffi.QTS_IsJobPending(this.rt.value)}setInterruptHandler(e){let r=this.interruptHandler;this.interruptHandler=e,r||this.ffi.QTS_RuntimeEnableInterruptHandler(this.rt.value)}removeInterruptHandler(){this.interruptHandler&&(this.ffi.QTS_RuntimeDisableInterruptHandler(this.rt.value),this.interruptHandler=void 0)}executePendingJobs(e=-1){let r=this.memory.newMutablePointerArray(1),i=this.ffi.QTS_ExecutePendingJob(this.rt.value,e??-1,r.value.ptr),s=r.value.typedArray[0];if(r.dispose(),s===0)return this.ffi.QTS_FreeValuePointerRuntime(this.rt.value,i),Xee.success(0);let l=this.contextMap.get(s)??this.newContext({contextPointer:s}),d=l.getMemory(this.rt.value).heapValueHandle(i);if(l.typeof(d)==="number"){let h=l.getNumber(d);return d.dispose(),Xee.success(h)}else{let h=Object.assign(d,{context:l});return Xee.fail(h,S=>l.unwrapResult(S))}}setMemoryLimit(e){if(e<0&&e!==-1)throw new Error("Cannot set memory limit to negative number. To unset, pass -1");this.ffi.QTS_RuntimeSetMemoryLimit(this.rt.value,e)}computeMemoryUsage(){let e=this.getSystemContext().getMemory(this.rt.value);return e.heapValueHandle(this.ffi.QTS_RuntimeComputeMemoryUsage(this.rt.value,e.ctx.value))}dumpMemoryUsage(){return this.memory.consumeHeapCharPointer(this.ffi.QTS_RuntimeDumpMemoryUsage(this.rt.value))}setMaxStackSize(e){if(e<0)throw new Error("Cannot set memory limit to negative number. To unset, pass 0.");this.ffi.QTS_RuntimeSetMaxStackSize(this.rt.value,e)}assertOwned(e){if(e.owner&&e.owner.rt!==this.rt)throw new jZt(`Handle is not owned by this runtime: ${e.owner.rt.value} != ${this.rt.value}`)}setDebugMode(e){this._debugMode=e,this.ffi.DEBUG&&this.rt.alive&&this.ffi.QTS_SetDebugLogEnabled(this.rt.value,e?1:0)}isDebugMode(){return this._debugMode}debugLog(...e){this._debugMode&&console.log("quickjs-emscripten:",...e)}[Symbol.for("nodejs.util.inspect.custom")](){return this.alive?`${this.constructor.name} { rt: ${this.rt.value} }`:`${this.constructor.name} { disposed }`}getSystemContext(){return this.context||(this.context=this.scope.manage(this.newContext())),this.context}},WDn=class{constructor(e){this.callFunction=e.callFunction,this.shouldInterrupt=e.shouldInterrupt,this.loadModuleSource=e.loadModuleSource,this.normalizeModule=e.normalizeModule}},Xat=class{constructor(e){this.contextCallbacks=new Map,this.runtimeCallbacks=new Map,this.suspendedCount=0,this.cToHostCallbacks=new WDn({callFunction:(r,i,s,l,d,h)=>this.handleAsyncify(r,()=>{try{let S=this.contextCallbacks.get(i);if(!S)throw new Error(`QuickJSContext(ctx = ${i}) not found for C function call "${h}"`);return S.callFunction(i,s,l,d,h)}catch(S){return console.error("[C to host error: returning null]",S),0}}),shouldInterrupt:(r,i)=>this.handleAsyncify(r,()=>{try{let s=this.runtimeCallbacks.get(i);if(!s)throw new Error(`QuickJSRuntime(rt = ${i}) not found for C interrupt`);return s.shouldInterrupt(i)}catch(s){return console.error("[C to host interrupt: returning error]",s),1}}),loadModuleSource:(r,i,s,l)=>this.handleAsyncify(r,()=>{try{let d=this.runtimeCallbacks.get(i);if(!d)throw new Error(`QuickJSRuntime(rt = ${i}) not found for C module loader`);let h=d.loadModuleSource;if(!h)throw new Error(`QuickJSRuntime(rt = ${i}) does not support module loading`);return h(i,s,l)}catch(d){return console.error("[C to host module loader error: returning null]",d),0}}),normalizeModule:(r,i,s,l,d)=>this.handleAsyncify(r,()=>{try{let h=this.runtimeCallbacks.get(i);if(!h)throw new Error(`QuickJSRuntime(rt = ${i}) not found for C module loader`);let S=h.normalizeModule;if(!S)throw new Error(`QuickJSRuntime(rt = ${i}) does not support module loading`);return S(i,s,l,d)}catch(h){return console.error("[C to host module loader error: returning null]",h),0}})}),this.module=e,this.module.callbacks=this.cToHostCallbacks}setRuntimeCallbacks(e,r){this.runtimeCallbacks.set(e,r)}deleteRuntime(e){this.runtimeCallbacks.delete(e)}setContextCallbacks(e,r){this.contextCallbacks.set(e,r)}deleteContext(e){this.contextCallbacks.delete(e)}handleAsyncify(e,r){if(e)return e.handleSleep(s=>{try{let l=r();if(!(l instanceof Promise)){Pfe("asyncify.handleSleep: not suspending:",l),s(l);return}if(this.suspended)throw new $Zt(`Already suspended at: ${this.suspended.stack} -Attempted to suspend at:`);this.suspended=new UZt(`(${this.suspendedCount++})`),Pfe("asyncify.handleSleep: suspending:",this.suspended),l.then(d=>{this.suspended=void 0,Pfe("asyncify.handleSleep: resolved:",d),s(d)},d=>{Pfe("asyncify.handleSleep: rejected:",d),console.error("QuickJS: cannot handle error in suspended function",d),this.suspended=void 0})}catch(l){throw Pfe("asyncify.handleSleep: error:",l),this.suspended=void 0,l}});let i=r();if(i instanceof Promise)throw new Error("Promise return value not supported in non-asyncify context.");return i}};KZt=class{constructor(e,r){this.module=e,this.ffi=r,this.callbacks=new Xat(e)}newRuntime(e={}){let r=new G2(this.ffi.QTS_NewRuntime(),void 0,s=>{this.callbacks.deleteRuntime(s),this.ffi.QTS_FreeRuntime(s)}),i=new VDn({module:this.module,callbacks:this.callbacks,ffi:this.ffi,rt:r});return Yat(i,e),e.moduleLoader&&i.setModuleLoader(e.moduleLoader),i}newContext(e={}){let r=this.newRuntime(),i=r.newContext({...e,ownedLifetimes:UDn(r,e.ownedLifetimes)});return r.context=i,i}evalCode(e,r={}){return j8.withScope(i=>{let s=i.manage(this.newContext());est(s.runtime,r);let l=s.evalCode(e,"eval.js");if(r.memoryLimitBytes!==void 0&&s.runtime.setMemoryLimit(-1),l.error)throw s.dump(i.manage(l.error));return s.dump(i.manage(l.value))})}getWasmMemory(){let e=this.module.quickjsEmscriptenInit?.(()=>{})?.getWasmMemory?.();if(!e)throw new Error("Variant does not support getting WebAssembly.Memory");return e}getFFI(){return this.ffi}}});var ZZt={};J7(ZZt,{QuickJSModuleCallbacks:()=>Xat,QuickJSWASMModule:()=>KZt,applyBaseRuntimeOptions:()=>Yat,applyModuleEvalRuntimeOptions:()=>est});var XZt=Rce(()=>{QZt()});var tXt={};J7(tXt,{QuickJSFFI:()=>GDn});var GDn,rXt=Rce(()=>{GDn=class{constructor(e){this.module=e,this.DEBUG=!1,this.QTS_Throw=this.module.cwrap("QTS_Throw","number",["number","number"]),this.QTS_NewError=this.module.cwrap("QTS_NewError","number",["number"]),this.QTS_RuntimeSetMemoryLimit=this.module.cwrap("QTS_RuntimeSetMemoryLimit",null,["number","number"]),this.QTS_RuntimeComputeMemoryUsage=this.module.cwrap("QTS_RuntimeComputeMemoryUsage","number",["number","number"]),this.QTS_RuntimeDumpMemoryUsage=this.module.cwrap("QTS_RuntimeDumpMemoryUsage","number",["number"]),this.QTS_RecoverableLeakCheck=this.module.cwrap("QTS_RecoverableLeakCheck","number",[]),this.QTS_BuildIsSanitizeLeak=this.module.cwrap("QTS_BuildIsSanitizeLeak","number",[]),this.QTS_RuntimeSetMaxStackSize=this.module.cwrap("QTS_RuntimeSetMaxStackSize",null,["number","number"]),this.QTS_GetUndefined=this.module.cwrap("QTS_GetUndefined","number",[]),this.QTS_GetNull=this.module.cwrap("QTS_GetNull","number",[]),this.QTS_GetFalse=this.module.cwrap("QTS_GetFalse","number",[]),this.QTS_GetTrue=this.module.cwrap("QTS_GetTrue","number",[]),this.QTS_NewRuntime=this.module.cwrap("QTS_NewRuntime","number",[]),this.QTS_FreeRuntime=this.module.cwrap("QTS_FreeRuntime",null,["number"]),this.QTS_NewContext=this.module.cwrap("QTS_NewContext","number",["number","number"]),this.QTS_FreeContext=this.module.cwrap("QTS_FreeContext",null,["number"]),this.QTS_FreeValuePointer=this.module.cwrap("QTS_FreeValuePointer",null,["number","number"]),this.QTS_FreeValuePointerRuntime=this.module.cwrap("QTS_FreeValuePointerRuntime",null,["number","number"]),this.QTS_FreeVoidPointer=this.module.cwrap("QTS_FreeVoidPointer",null,["number","number"]),this.QTS_FreeCString=this.module.cwrap("QTS_FreeCString",null,["number","number"]),this.QTS_DupValuePointer=this.module.cwrap("QTS_DupValuePointer","number",["number","number"]),this.QTS_NewObject=this.module.cwrap("QTS_NewObject","number",["number"]),this.QTS_NewObjectProto=this.module.cwrap("QTS_NewObjectProto","number",["number","number"]),this.QTS_NewArray=this.module.cwrap("QTS_NewArray","number",["number"]),this.QTS_NewArrayBuffer=this.module.cwrap("QTS_NewArrayBuffer","number",["number","number","number"]),this.QTS_NewFloat64=this.module.cwrap("QTS_NewFloat64","number",["number","number"]),this.QTS_GetFloat64=this.module.cwrap("QTS_GetFloat64","number",["number","number"]),this.QTS_NewString=this.module.cwrap("QTS_NewString","number",["number","number"]),this.QTS_GetString=this.module.cwrap("QTS_GetString","number",["number","number"]),this.QTS_GetArrayBuffer=this.module.cwrap("QTS_GetArrayBuffer","number",["number","number"]),this.QTS_GetArrayBufferLength=this.module.cwrap("QTS_GetArrayBufferLength","number",["number","number"]),this.QTS_NewSymbol=this.module.cwrap("QTS_NewSymbol","number",["number","number","number"]),this.QTS_GetSymbolDescriptionOrKey=this.module.cwrap("QTS_GetSymbolDescriptionOrKey","number",["number","number"]),this.QTS_IsGlobalSymbol=this.module.cwrap("QTS_IsGlobalSymbol","number",["number","number"]),this.QTS_IsJobPending=this.module.cwrap("QTS_IsJobPending","number",["number"]),this.QTS_ExecutePendingJob=this.module.cwrap("QTS_ExecutePendingJob","number",["number","number","number"]),this.QTS_GetProp=this.module.cwrap("QTS_GetProp","number",["number","number","number"]),this.QTS_GetPropNumber=this.module.cwrap("QTS_GetPropNumber","number",["number","number","number"]),this.QTS_SetProp=this.module.cwrap("QTS_SetProp",null,["number","number","number","number"]),this.QTS_DefineProp=this.module.cwrap("QTS_DefineProp",null,["number","number","number","number","number","number","boolean","boolean","boolean"]),this.QTS_GetOwnPropertyNames=this.module.cwrap("QTS_GetOwnPropertyNames","number",["number","number","number","number","number"]),this.QTS_Call=this.module.cwrap("QTS_Call","number",["number","number","number","number","number"]),this.QTS_ResolveException=this.module.cwrap("QTS_ResolveException","number",["number","number"]),this.QTS_Dump=this.module.cwrap("QTS_Dump","number",["number","number"]),this.QTS_Eval=this.module.cwrap("QTS_Eval","number",["number","number","number","string","number","number"]),this.QTS_GetModuleNamespace=this.module.cwrap("QTS_GetModuleNamespace","number",["number","number"]),this.QTS_Typeof=this.module.cwrap("QTS_Typeof","number",["number","number"]),this.QTS_GetLength=this.module.cwrap("QTS_GetLength","number",["number","number","number"]),this.QTS_IsEqual=this.module.cwrap("QTS_IsEqual","number",["number","number","number","number"]),this.QTS_GetGlobalObject=this.module.cwrap("QTS_GetGlobalObject","number",["number"]),this.QTS_NewPromiseCapability=this.module.cwrap("QTS_NewPromiseCapability","number",["number","number"]),this.QTS_PromiseState=this.module.cwrap("QTS_PromiseState","number",["number","number"]),this.QTS_PromiseResult=this.module.cwrap("QTS_PromiseResult","number",["number","number"]),this.QTS_TestStringArg=this.module.cwrap("QTS_TestStringArg",null,["string"]),this.QTS_GetDebugLogEnabled=this.module.cwrap("QTS_GetDebugLogEnabled","number",["number"]),this.QTS_SetDebugLogEnabled=this.module.cwrap("QTS_SetDebugLogEnabled",null,["number","number"]),this.QTS_BuildIsDebug=this.module.cwrap("QTS_BuildIsDebug","number",[]),this.QTS_BuildIsAsyncify=this.module.cwrap("QTS_BuildIsAsyncify","number",[]),this.QTS_NewFunction=this.module.cwrap("QTS_NewFunction","number",["number","number","string"]),this.QTS_ArgvGetJSValueConstPointer=this.module.cwrap("QTS_ArgvGetJSValueConstPointer","number",["number","number"]),this.QTS_RuntimeEnableInterruptHandler=this.module.cwrap("QTS_RuntimeEnableInterruptHandler",null,["number"]),this.QTS_RuntimeDisableInterruptHandler=this.module.cwrap("QTS_RuntimeDisableInterruptHandler",null,["number"]),this.QTS_RuntimeEnableModuleLoader=this.module.cwrap("QTS_RuntimeEnableModuleLoader",null,["number","number"]),this.QTS_RuntimeDisableModuleLoader=this.module.cwrap("QTS_RuntimeDisableModuleLoader",null,["number"]),this.QTS_bjson_encode=this.module.cwrap("QTS_bjson_encode","number",["number","number"]),this.QTS_bjson_decode=this.module.cwrap("QTS_bjson_decode","number",["number","number"])}}});var nXt={};J7(nXt,{default:()=>KDn});var HDn,KDn,iXt=Rce(()=>{HDn=(()=>{var e=import.meta.url;return(async function(r={}){var i,s=r,l,d,h=new Promise((or,Gr)=>{l=or,d=Gr}),S=typeof window=="object",b=typeof importScripts=="function",A=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string";if(A){let{createRequire:or}=await import("module");var L=or(import.meta.url)}function V(or){or={log:or||function(){}};for(let Gr of V.Ia)Gr(or);return s.quickJSEmscriptenExtensions=or}V.Ia=[],s.quickjsEmscriptenInit=V,V.Ia.push(or=>{or.getWasmMemory=function(){return wt}});var j=Object.assign({},s),ie="./this.program",te=(or,Gr)=>{throw Gr},X="",Re,Je;if(A){var pt=L("fs"),$e=L("path");X=L("url").fileURLToPath(new URL("./",import.meta.url)),Je=or=>(or=Wi(or)?new URL(or):$e.normalize(or),pt.readFileSync(or)),Re=or=>(or=Wi(or)?new URL(or):$e.normalize(or),new Promise((Gr,pi)=>{pt.readFile(or,void 0,(ia,To)=>{ia?pi(ia):Gr(To.buffer)})})),!s.thisProgram&&1{throw process.exitCode=or,Gr}}else(S||b)&&(b?X=self.location.href:typeof document<"u"&&document.currentScript&&(X=document.currentScript.src),e&&(X=e),X.startsWith("blob:")?X="":X=X.substr(0,X.replace(/[?#].*/,"").lastIndexOf("/")+1),b&&(Je=or=>{var Gr=new XMLHttpRequest;return Gr.open("GET",or,!1),Gr.responseType="arraybuffer",Gr.send(null),new Uint8Array(Gr.response)}),Re=or=>Wi(or)?new Promise((Gr,pi)=>{var ia=new XMLHttpRequest;ia.open("GET",or,!0),ia.responseType="arraybuffer",ia.onload=()=>{ia.status==200||ia.status==0&&ia.response?Gr(ia.response):pi(ia.status)},ia.onerror=pi,ia.send(null)}):fetch(or,{credentials:"same-origin"}).then(Gr=>Gr.ok?Gr.arrayBuffer():Promise.reject(Error(Gr.status+" : "+Gr.url))));var xt=s.print||console.log.bind(console),tr=s.printErr||console.error.bind(console);Object.assign(s,j),j=null,s.thisProgram&&(ie=s.thisProgram);var ht=s.wasmBinary,wt,Ut=!1,hr,Hi,un,xo,Lo;function yr(){var or=wt.buffer;s.HEAP8=Hi=new Int8Array(or),s.HEAP16=new Int16Array(or),s.HEAPU8=un=new Uint8Array(or),s.HEAPU16=new Uint16Array(or),s.HEAP32=xo=new Int32Array(or),s.HEAPU32=Lo=new Uint32Array(or),s.HEAPF32=new Float32Array(or),s.HEAPF64=new Float64Array(or)}s.wasmMemory?wt=s.wasmMemory:wt=new WebAssembly.Memory({initial:(s.INITIAL_MEMORY||16777216)/65536,maximum:32768}),yr();var co=[],Cs=[],Cr=[];function ol(){var or=s.preRun.shift();co.unshift(or)}var Zo=0,Rc=null,an=null;function Xr(or){throw s.onAbort?.(or),or="Aborted("+or+")",tr(or),Ut=!0,hr=1,or=new WebAssembly.RuntimeError(or+". Build with -sASSERTIONS for more info."),d(or),or}var li=or=>or.startsWith("data:application/octet-stream;base64,"),Wi=or=>or.startsWith("file://"),Bo;function Wn(or){if(or==Bo&&ht)return new Uint8Array(ht);if(Je)return Je(or);throw"both async and sync fetching of the wasm failed"}function Na(or){return ht?Promise.resolve().then(()=>Wn(or)):Re(or).then(Gr=>new Uint8Array(Gr),()=>Wn(or))}function hs(or,Gr,pi){return Na(or).then(ia=>WebAssembly.instantiate(ia,Gr)).then(pi,ia=>{tr(`failed to asynchronously prepare wasm: ${ia}`),Xr(ia)})}function Us(or,Gr){var pi=Bo;return ht||typeof WebAssembly.instantiateStreaming!="function"||li(pi)||Wi(pi)||A||typeof fetch!="function"?hs(pi,or,Gr):fetch(pi,{credentials:"same-origin"}).then(ia=>WebAssembly.instantiateStreaming(ia,or).then(Gr,function(To){return tr(`wasm streaming compile failed: ${To}`),tr("falling back to ArrayBuffer instantiation"),hs(pi,or,Gr)}))}function Sc(or){this.name="ExitStatus",this.message=`Program terminated with exit(${or})`,this.status=or}var Wu=or=>{for(;0{var ia=Gr+pi;for(pi=Gr;or[pi]&&!(pi>=ia);)++pi;if(16To?ia+=String.fromCharCode(To):(To-=65536,ia+=String.fromCharCode(55296|To>>10,56320|To&1023))}}else ia+=String.fromCharCode(To)}return ia},go=[0,31,60,91,121,152,182,213,244,274,305,335],mc=[0,31,59,90,120,151,181,212,243,273,304,334],zp={},Rh=0,K0=or=>{hr=or,uc||0{if(!Ut)try{if(or(),!(uc||0performance.now();var dy=(or,Gr,pi)=>{var ia=un;if(!(0=Yr){var Sn=or.charCodeAt(++Gu);Yr=65536+((Yr&1023)<<10)|Sn&1023}if(127>=Yr){if(Gr>=pi)break;ia[Gr++]=Yr}else{if(2047>=Yr){if(Gr+1>=pi)break;ia[Gr++]=192|Yr>>6}else{if(65535>=Yr){if(Gr+2>=pi)break;ia[Gr++]=224|Yr>>12}else{if(Gr+3>=pi)break;ia[Gr++]=240|Yr>>18,ia[Gr++]=128|Yr>>12&63}ia[Gr++]=128|Yr>>6&63}ia[Gr++]=128|Yr&63}}return ia[Gr]=0,Gr-To},vm={},O1=()=>{if(!__){var or={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:ie||"./this.program"},Gr;for(Gr in vm)vm[Gr]===void 0?delete or[Gr]:or[Gr]=vm[Gr];var pi=[];for(Gr in or)pi.push(`${Gr}=${or[Gr]}`);__=pi}return __},__,Bc=[null,[],[]],cb=or=>{for(var Gr=0,pi=0;pi=ia?Gr++:2047>=ia?Gr+=2:55296<=ia&&57343>=ia?(Gr+=4,++pi):Gr+=3}return Gr},jt=(or,Gr,pi,ia)=>{var To={string:us=>{var Ja=0;if(us!=null&&us!==0){Ja=cb(us)+1;var pc=Jl(Ja);dy(us,pc,Ja),Ja=pc}return Ja},array:us=>{var Ja=Jl(us.length);return Hi.set(us,Ja),Ja}};or=s["_"+or];var Gu=[],Yr=0;if(ia)for(var Sn=0;Sn{Xr(`Assertion failed: ${or?ou(un,or):""}, at: `+[Gr?Gr?ou(un,Gr):"":"unknown filename",pi,ia?ia?ou(un,ia):"":"unknown function"])},q:()=>{Xr("")},n:()=>{uc=!1,Rh=0},j:function(or,Gr,pi){or=new Date(1e3*(Gr+2097152>>>0<4194305-!!or?(or>>>0)+4294967296*Gr:NaN)),xo[pi>>2]=or.getSeconds(),xo[pi+4>>2]=or.getMinutes(),xo[pi+8>>2]=or.getHours(),xo[pi+12>>2]=or.getDate(),xo[pi+16>>2]=or.getMonth(),xo[pi+20>>2]=or.getFullYear()-1900,xo[pi+24>>2]=or.getDay(),Gr=or.getFullYear(),xo[pi+28>>2]=(Gr%4!==0||Gr%100===0&&Gr%400!==0?mc:go)[or.getMonth()]+or.getDate()-1|0,xo[pi+36>>2]=-(60*or.getTimezoneOffset()),Gr=new Date(or.getFullYear(),6,1).getTimezoneOffset();var ia=new Date(or.getFullYear(),0,1).getTimezoneOffset();xo[pi+32>>2]=(Gr!=ia&&or.getTimezoneOffset()==Math.min(ia,Gr))|0},l:(or,Gr)=>{if(zp[or]&&(clearTimeout(zp[or].id),delete zp[or]),!Gr)return 0;var pi=setTimeout(()=>{delete zp[or],rf(()=>En(or,vx()))},Gr);return zp[or]={id:pi,Na:Gr},0},o:(or,Gr,pi,ia)=>{var To=new Date().getFullYear(),Gu=new Date(To,0,1).getTimezoneOffset();To=new Date(To,6,1).getTimezoneOffset(),Lo[or>>2]=60*Math.max(Gu,To),xo[Gr>>2]=+(Gu!=To),Gr=Yr=>{var Sn=Math.abs(Yr);return`UTC${0<=Yr?"-":"+"}${String(Math.floor(Sn/60)).padStart(2,"0")}${String(Sn%60).padStart(2,"0")}`},or=Gr(Gu),Gr=Gr(To),ToDate.now(),m:or=>{var Gr=un.length;if(or>>>=0,2147483648=pi;pi*=2){var ia=Gr*(1+.2/pi);ia=Math.min(ia,or+100663296);e:{ia=(Math.min(2147483648,65536*Math.ceil(Math.max(or,ia)/65536))-wt.buffer.byteLength+65535)/65536;try{wt.grow(ia),yr();var To=1;break e}catch{}To=void 0}if(To)return!0}return!1},f:(or,Gr)=>{var pi=0;return O1().forEach((ia,To)=>{var Gu=Gr+pi;for(To=Lo[or+4*To>>2]=Gu,Gu=0;Gu{var pi=O1();Lo[or>>2]=pi.length;var ia=0;return pi.forEach(To=>ia+=To.length+1),Lo[Gr>>2]=ia,0},e:()=>52,k:function(){return 70},d:(or,Gr,pi,ia)=>{for(var To=0,Gu=0;Gu>2],Sn=Lo[Gr+4>>2];Gr+=8;for(var to=0;to>2]=To,0},a:wt,c:K0,s:function(or,Gr,pi,ia,To){return s.callbacks.callFunction(void 0,or,Gr,pi,ia,To)},r:function(or){return s.callbacks.shouldInterrupt(void 0,or)},i:function(or,Gr,pi){return pi=pi?ou(un,pi):"",s.callbacks.loadModuleSource(void 0,or,Gr,pi)},h:function(or,Gr,pi,ia){return pi=pi?ou(un,pi):"",ia=ia?ou(un,ia):"",s.callbacks.normalizeModule(void 0,or,Gr,pi,ia)}},Ti=(function(){function or(pi){return Ti=pi.exports,Cs.unshift(Ti.t),Zo--,s.monitorRunDependencies?.(Zo),Zo==0&&(Rc!==null&&(clearInterval(Rc),Rc=null),an&&(pi=an,an=null,pi())),Ti}var Gr={a:ea};if(Zo++,s.monitorRunDependencies?.(Zo),s.instantiateWasm)try{return s.instantiateWasm(Gr,or)}catch(pi){tr(`Module.instantiateWasm callback failed with error: ${pi}`),d(pi)}return Bo||=s.locateFile?li("emscripten-module.wasm")?"emscripten-module.wasm":s.locateFile?s.locateFile("emscripten-module.wasm",X):X+"emscripten-module.wasm":new URL("emscripten-module.wasm",import.meta.url).href,Us(Gr,function(pi){or(pi.instance)}).catch(d),{}})();s._malloc=or=>(s._malloc=Ti.u)(or),s._QTS_Throw=(or,Gr)=>(s._QTS_Throw=Ti.v)(or,Gr),s._QTS_NewError=or=>(s._QTS_NewError=Ti.w)(or),s._QTS_RuntimeSetMemoryLimit=(or,Gr)=>(s._QTS_RuntimeSetMemoryLimit=Ti.x)(or,Gr),s._QTS_RuntimeComputeMemoryUsage=(or,Gr)=>(s._QTS_RuntimeComputeMemoryUsage=Ti.y)(or,Gr),s._QTS_RuntimeDumpMemoryUsage=or=>(s._QTS_RuntimeDumpMemoryUsage=Ti.z)(or),s._QTS_RecoverableLeakCheck=()=>(s._QTS_RecoverableLeakCheck=Ti.A)(),s._QTS_BuildIsSanitizeLeak=()=>(s._QTS_BuildIsSanitizeLeak=Ti.B)(),s._QTS_RuntimeSetMaxStackSize=(or,Gr)=>(s._QTS_RuntimeSetMaxStackSize=Ti.C)(or,Gr),s._QTS_GetUndefined=()=>(s._QTS_GetUndefined=Ti.D)(),s._QTS_GetNull=()=>(s._QTS_GetNull=Ti.E)(),s._QTS_GetFalse=()=>(s._QTS_GetFalse=Ti.F)(),s._QTS_GetTrue=()=>(s._QTS_GetTrue=Ti.G)(),s._QTS_NewRuntime=()=>(s._QTS_NewRuntime=Ti.H)(),s._QTS_FreeRuntime=or=>(s._QTS_FreeRuntime=Ti.I)(or),s._free=or=>(s._free=Ti.J)(or),s._QTS_NewContext=(or,Gr)=>(s._QTS_NewContext=Ti.K)(or,Gr),s._QTS_FreeContext=or=>(s._QTS_FreeContext=Ti.L)(or),s._QTS_FreeValuePointer=(or,Gr)=>(s._QTS_FreeValuePointer=Ti.M)(or,Gr),s._QTS_FreeValuePointerRuntime=(or,Gr)=>(s._QTS_FreeValuePointerRuntime=Ti.N)(or,Gr),s._QTS_FreeVoidPointer=(or,Gr)=>(s._QTS_FreeVoidPointer=Ti.O)(or,Gr),s._QTS_FreeCString=(or,Gr)=>(s._QTS_FreeCString=Ti.P)(or,Gr),s._QTS_DupValuePointer=(or,Gr)=>(s._QTS_DupValuePointer=Ti.Q)(or,Gr),s._QTS_NewObject=or=>(s._QTS_NewObject=Ti.R)(or),s._QTS_NewObjectProto=(or,Gr)=>(s._QTS_NewObjectProto=Ti.S)(or,Gr),s._QTS_NewArray=or=>(s._QTS_NewArray=Ti.T)(or),s._QTS_NewArrayBuffer=(or,Gr,pi)=>(s._QTS_NewArrayBuffer=Ti.U)(or,Gr,pi),s._QTS_NewFloat64=(or,Gr)=>(s._QTS_NewFloat64=Ti.V)(or,Gr),s._QTS_GetFloat64=(or,Gr)=>(s._QTS_GetFloat64=Ti.W)(or,Gr),s._QTS_NewString=(or,Gr)=>(s._QTS_NewString=Ti.X)(or,Gr),s._QTS_GetString=(or,Gr)=>(s._QTS_GetString=Ti.Y)(or,Gr),s._QTS_GetArrayBuffer=(or,Gr)=>(s._QTS_GetArrayBuffer=Ti.Z)(or,Gr),s._QTS_GetArrayBufferLength=(or,Gr)=>(s._QTS_GetArrayBufferLength=Ti._)(or,Gr),s._QTS_NewSymbol=(or,Gr,pi)=>(s._QTS_NewSymbol=Ti.$)(or,Gr,pi),s._QTS_GetSymbolDescriptionOrKey=(or,Gr)=>(s._QTS_GetSymbolDescriptionOrKey=Ti.aa)(or,Gr),s._QTS_IsGlobalSymbol=(or,Gr)=>(s._QTS_IsGlobalSymbol=Ti.ba)(or,Gr),s._QTS_IsJobPending=or=>(s._QTS_IsJobPending=Ti.ca)(or),s._QTS_ExecutePendingJob=(or,Gr,pi)=>(s._QTS_ExecutePendingJob=Ti.da)(or,Gr,pi),s._QTS_GetProp=(or,Gr,pi)=>(s._QTS_GetProp=Ti.ea)(or,Gr,pi),s._QTS_GetPropNumber=(or,Gr,pi)=>(s._QTS_GetPropNumber=Ti.fa)(or,Gr,pi),s._QTS_SetProp=(or,Gr,pi,ia)=>(s._QTS_SetProp=Ti.ga)(or,Gr,pi,ia),s._QTS_DefineProp=(or,Gr,pi,ia,To,Gu,Yr,Sn,to)=>(s._QTS_DefineProp=Ti.ha)(or,Gr,pi,ia,To,Gu,Yr,Sn,to),s._QTS_GetOwnPropertyNames=(or,Gr,pi,ia,To)=>(s._QTS_GetOwnPropertyNames=Ti.ia)(or,Gr,pi,ia,To),s._QTS_Call=(or,Gr,pi,ia,To)=>(s._QTS_Call=Ti.ja)(or,Gr,pi,ia,To),s._QTS_ResolveException=(or,Gr)=>(s._QTS_ResolveException=Ti.ka)(or,Gr),s._QTS_Dump=(or,Gr)=>(s._QTS_Dump=Ti.la)(or,Gr),s._QTS_Eval=(or,Gr,pi,ia,To,Gu)=>(s._QTS_Eval=Ti.ma)(or,Gr,pi,ia,To,Gu),s._QTS_GetModuleNamespace=(or,Gr)=>(s._QTS_GetModuleNamespace=Ti.na)(or,Gr),s._QTS_Typeof=(or,Gr)=>(s._QTS_Typeof=Ti.oa)(or,Gr),s._QTS_GetLength=(or,Gr,pi)=>(s._QTS_GetLength=Ti.pa)(or,Gr,pi),s._QTS_IsEqual=(or,Gr,pi,ia)=>(s._QTS_IsEqual=Ti.qa)(or,Gr,pi,ia),s._QTS_GetGlobalObject=or=>(s._QTS_GetGlobalObject=Ti.ra)(or),s._QTS_NewPromiseCapability=(or,Gr)=>(s._QTS_NewPromiseCapability=Ti.sa)(or,Gr),s._QTS_PromiseState=(or,Gr)=>(s._QTS_PromiseState=Ti.ta)(or,Gr),s._QTS_PromiseResult=(or,Gr)=>(s._QTS_PromiseResult=Ti.ua)(or,Gr),s._QTS_TestStringArg=or=>(s._QTS_TestStringArg=Ti.va)(or),s._QTS_GetDebugLogEnabled=or=>(s._QTS_GetDebugLogEnabled=Ti.wa)(or),s._QTS_SetDebugLogEnabled=(or,Gr)=>(s._QTS_SetDebugLogEnabled=Ti.xa)(or,Gr),s._QTS_BuildIsDebug=()=>(s._QTS_BuildIsDebug=Ti.ya)(),s._QTS_BuildIsAsyncify=()=>(s._QTS_BuildIsAsyncify=Ti.za)(),s._QTS_NewFunction=(or,Gr,pi)=>(s._QTS_NewFunction=Ti.Aa)(or,Gr,pi),s._QTS_ArgvGetJSValueConstPointer=(or,Gr)=>(s._QTS_ArgvGetJSValueConstPointer=Ti.Ba)(or,Gr),s._QTS_RuntimeEnableInterruptHandler=or=>(s._QTS_RuntimeEnableInterruptHandler=Ti.Ca)(or),s._QTS_RuntimeDisableInterruptHandler=or=>(s._QTS_RuntimeDisableInterruptHandler=Ti.Da)(or),s._QTS_RuntimeEnableModuleLoader=(or,Gr)=>(s._QTS_RuntimeEnableModuleLoader=Ti.Ea)(or,Gr),s._QTS_RuntimeDisableModuleLoader=or=>(s._QTS_RuntimeDisableModuleLoader=Ti.Fa)(or),s._QTS_bjson_encode=(or,Gr)=>(s._QTS_bjson_encode=Ti.Ga)(or,Gr),s._QTS_bjson_decode=(or,Gr)=>(s._QTS_bjson_decode=Ti.Ha)(or,Gr);var En=(or,Gr)=>(En=Ti.Ja)(or,Gr),Zc=or=>(Zc=Ti.Ka)(or),Jl=or=>(Jl=Ti.La)(or),zd=()=>(zd=Ti.Ma)();s.cwrap=(or,Gr,pi,ia)=>{var To=!pi||pi.every(Gu=>Gu==="number"||Gu==="boolean");return Gr!=="string"&&To&&!ia?s["_"+or]:(...Gu)=>jt(or,Gr,pi,Gu)},s.UTF8ToString=(or,Gr)=>or?ou(un,or,Gr):"",s.stringToUTF8=(or,Gr,pi)=>dy(or,Gr,pi),s.lengthBytesUTF8=cb;var pu;an=function or(){pu||Tf(),pu||(an=or)};function Tf(){function or(){if(!pu&&(pu=!0,s.calledRun=!0,!Ut)){if(Wu(Cs),l(s),s.onRuntimeInitialized?.(),s.postRun)for(typeof s.postRun=="function"&&(s.postRun=[s.postRun]);s.postRun.length;){var Gr=s.postRun.shift();Cr.unshift(Gr)}Wu(Cr)}}if(!(0{var etr={};(e=>{"use strict";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,d=(t,n)=>{for(var a in n)r(t,a,{get:n[a],enumerable:!0})},h=(t,n,a,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let u of s(n))!l.call(t,u)&&u!==a&&r(t,u,{get:()=>n[u],enumerable:!(c=i(n,u))||c.enumerable});return t},S=t=>t,b={};d(b,{ANONYMOUS:()=>xve,AccessFlags:()=>X2,AssertionLevel:()=>d$,AssignmentDeclarationKind:()=>aR,AssignmentKind:()=>M6e,Associativity:()=>V6e,BreakpointResolver:()=>SSe,BuilderFileEmit:()=>$Oe,BuilderProgramKind:()=>HOe,BuilderState:()=>Dv,CallHierarchy:()=>JF,CharacterCodes:()=>fR,CheckFlags:()=>dO,CheckMode:()=>Vye,ClassificationType:()=>O1e,ClassificationTypeNames:()=>QFe,CommentDirectiveType:()=>G9,Comparison:()=>V,CompletionInfoFlags:()=>qFe,CompletionTriggerKind:()=>P1e,Completions:()=>KF,ContainerFlags:()=>S8e,ContextFlags:()=>k$,Debug:()=>$,DiagnosticCategory:()=>gO,Diagnostics:()=>x,DocumentHighlights:()=>dae,ElementFlags:()=>nf,EmitFlags:()=>SO,EmitHint:()=>rE,EmitOnly:()=>K9,EndOfLineState:()=>WFe,ExitStatus:()=>ZD,ExportKind:()=>$7e,Extension:()=>mR,ExternalEmitHelpers:()=>gR,FileIncludeKind:()=>H9,FilePreprocessingDiagnosticsKind:()=>uO,FileSystemEntryKind:()=>TO,FileWatcherEventKind:()=>v4,FindAllReferences:()=>Pu,FlattenLevel:()=>z8e,FlowFlags:()=>PI,ForegroundColorEscapeSequences:()=>IOe,FunctionFlags:()=>q6e,GeneratedIdentifierFlags:()=>V9,GetLiteralTextFlags:()=>e6e,GoToDefinition:()=>cM,HighlightSpanKind:()=>UFe,IdentifierNameMap:()=>jL,ImportKind:()=>B7e,ImportsNotUsedAsValues:()=>OI,IndentStyle:()=>zFe,IndexFlags:()=>hO,IndexKind:()=>eE,InferenceFlags:()=>w$,InferencePriority:()=>iR,InlayHintKind:()=>$Fe,InlayHints:()=>pbe,InternalEmitFlags:()=>P$,InternalNodeBuilderFlags:()=>C$,InternalSymbolName:()=>A$,IntersectionFlags:()=>X9,InvalidatedProjectKind:()=>gFe,JSDocParsingMode:()=>RI,JsDoc:()=>VA,JsTyping:()=>wC,JsxEmit:()=>I$,JsxFlags:()=>lO,JsxReferenceKind:()=>Y2,LanguageFeatureMinimumTarget:()=>C_,LanguageServiceMode:()=>jFe,LanguageVariant:()=>dR,LexicalEnvironmentFlags:()=>h4,ListFormat:()=>FI,LogLevel:()=>I9,MapCode:()=>_be,MemberOverrideStatus:()=>Q9,ModifierFlags:()=>cO,ModuleDetectionKind:()=>sR,ModuleInstanceState:()=>y8e,ModuleKind:()=>tE,ModuleResolutionKind:()=>zk,ModuleSpecifierEnding:()=>U4e,NavigateTo:()=>u5e,NavigationBar:()=>_5e,NewLineKind:()=>pR,NodeBuilderFlags:()=>Y9,NodeCheckFlags:()=>fO,NodeFactoryFlags:()=>y3e,NodeFlags:()=>sO,NodeResolutionFeatures:()=>c8e,ObjectFlags:()=>mO,OperationCanceledException:()=>Uk,OperatorPrecedence:()=>W6e,OrganizeImports:()=>WA,OrganizeImportsMode:()=>I1e,OuterExpressionKinds:()=>N$,OutliningElementsCollector:()=>fbe,OutliningSpanKind:()=>JFe,OutputFileType:()=>VFe,PackageJsonAutoImportPreference:()=>MFe,PackageJsonDependencyGroup:()=>LFe,PatternMatchKind:()=>Uve,PollingInterval:()=>yR,PollingWatchKind:()=>uR,PragmaKindFlags:()=>g4,PredicateSemantics:()=>J9,PreparePasteEdits:()=>wbe,PrivateIdentifierKind:()=>A3e,ProcessLevel:()=>W8e,ProgramUpdateLevel:()=>kOe,QuotePreference:()=>y7e,RegularExpressionFlags:()=>W9,RelationComparisonResult:()=>q9,Rename:()=>Qae,ScriptElementKind:()=>HFe,ScriptElementKindModifier:()=>KFe,ScriptKind:()=>m4,ScriptSnapshot:()=>koe,ScriptTarget:()=>_R,SemanticClassificationFormat:()=>BFe,SemanticMeaning:()=>ZFe,SemicolonPreference:()=>N1e,SignatureCheckMode:()=>Wye,SignatureFlags:()=>Vm,SignatureHelp:()=>AQ,SignatureInfo:()=>BOe,SignatureKind:()=>nR,SmartSelectionRange:()=>gbe,SnippetKind:()=>hR,StatisticType:()=>CFe,StructureIsReused:()=>d4,SymbolAccessibility:()=>tR,SymbolDisplay:()=>wE,SymbolDisplayPartKind:()=>Doe,SymbolFlags:()=>_O,SymbolFormatFlags:()=>f4,SyntaxKind:()=>z9,Ternary:()=>oR,ThrottledCancellationToken:()=>S9e,TokenClass:()=>GFe,TokenFlags:()=>E$,TransformFlags:()=>vO,TypeFacts:()=>Jye,TypeFlags:()=>NI,TypeFormatFlags:()=>eR,TypeMapKind:()=>Ny,TypePredicateKind:()=>pO,TypeReferenceSerializationKind:()=>D$,UnionReduction:()=>Z9,UpToDateStatusType:()=>uFe,VarianceFlags:()=>rR,Version:()=>Iy,VersionRange:()=>KD,WatchDirectoryFlags:()=>yO,WatchDirectoryKind:()=>lR,WatchFileKind:()=>cR,WatchLogLevel:()=>DOe,WatchType:()=>cf,accessPrivateIdentifier:()=>U8e,addEmitFlags:()=>CS,addEmitHelper:()=>pF,addEmitHelpers:()=>Ux,addInternalEmitFlags:()=>e3,addNodeFactoryPatcher:()=>klt,addObjectAllocatorPatcher:()=>llt,addRange:()=>En,addRelatedInfo:()=>ac,addSyntheticLeadingComment:()=>gC,addSyntheticTrailingComment:()=>nz,addToSeen:()=>o1,advancedAsyncSuperHelper:()=>Lne,affectsDeclarationPathOptionDeclarations:()=>ONe,affectsEmitOptionDeclarations:()=>NNe,allKeysStartWithDot:()=>Iie,altDirectorySeparator:()=>x4,and:()=>EI,append:()=>jt,appendIfUnique:()=>Jl,arrayFrom:()=>so,arrayIsEqualTo:()=>__,arrayIsHomogeneous:()=>K4e,arrayOf:()=>Jn,arrayReverseIterator:()=>Tf,arrayToMap:()=>_l,arrayToMultiMap:()=>tu,arrayToNumericMap:()=>bi,assertType:()=>h$,assign:()=>qe,asyncSuperHelper:()=>Rne,attachFileToDiagnostics:()=>rF,base64decode:()=>d4e,base64encode:()=>_4e,binarySearch:()=>rs,binarySearchKey:()=>Yl,bindSourceFile:()=>b8e,breakIntoCharacterSpans:()=>r5e,breakIntoWordSpans:()=>n5e,buildLinkParts:()=>C7e,buildOpts:()=>tK,buildOverload:()=>pTt,bundlerModuleNameResolver:()=>l8e,canBeConvertedToAsync:()=>Gve,canHaveDecorators:()=>kP,canHaveExportModifier:()=>kH,canHaveFlowNode:()=>KR,canHaveIllegalDecorators:()=>eye,canHaveIllegalModifiers:()=>dNe,canHaveIllegalType:()=>Zlt,canHaveIllegalTypeParameters:()=>_Ne,canHaveJSDoc:()=>WG,canHaveLocals:()=>vb,canHaveModifiers:()=>l1,canHaveModuleSpecifier:()=>F6e,canHaveSymbol:()=>gv,canIncludeBindAndCheckDiagnostics:()=>GU,canJsonReportNoInputFiles:()=>sK,canProduceDiagnostics:()=>gK,canUsePropertyAccess:()=>ige,canWatchAffectingLocation:()=>rFe,canWatchAtTypes:()=>tFe,canWatchDirectoryOrFile:()=>G0e,canWatchDirectoryOrFilePath:()=>NK,cartesianProduct:()=>A9,cast:()=>Ba,chainBundle:()=>Cv,chainDiagnosticMessages:()=>ws,changeAnyExtension:()=>Og,changeCompilerHostLikeToUseCache:()=>Bz,changeExtension:()=>hE,changeFullExtension:()=>T4,changesAffectModuleResolution:()=>Yte,changesAffectingProgramStructure:()=>WPe,characterCodeToRegularExpressionFlag:()=>DO,childIsDecorated:()=>mU,classElementOrClassElementParameterIsDecorated:()=>Bme,classHasClassThisAssignment:()=>s0e,classHasDeclaredOrExplicitlyAssignedName:()=>c0e,classHasExplicitlyAssignedName:()=>qie,classOrConstructorParameterIsDecorated:()=>pE,classicNameResolver:()=>h8e,classifier:()=>E9e,cleanExtendedConfigCache:()=>Kie,clear:()=>Cs,clearMap:()=>dg,clearSharedExtendedConfigFileWatcher:()=>x0e,climbPastPropertyAccess:()=>Ioe,clone:()=>qp,cloneCompilerOptions:()=>X1e,closeFileWatcher:()=>W1,closeFileWatcherOf:()=>C0,codefix:()=>Im,collapseTextChangeRangesAcrossMultipleVersions:()=>w,collectExternalModuleInfo:()=>n0e,combine:()=>ea,combinePaths:()=>Xi,commandLineOptionOfCustomType:()=>LNe,commentPragmas:()=>y4,commonOptionsWithBuild:()=>lie,compact:()=>Bc,compareBooleans:()=>cS,compareDataObjects:()=>Nhe,compareDiagnostics:()=>$U,compareEmitHelpers:()=>I3e,compareNumberOfDirectorySeparators:()=>bH,comparePaths:()=>M1,comparePathsCaseInsensitive:()=>$$,comparePathsCaseSensitive:()=>B$,comparePatternKeys:()=>Mye,compareProperties:()=>WD,compareStringsCaseInsensitive:()=>JD,compareStringsCaseInsensitiveEslintCompatible:()=>Sm,compareStringsCaseSensitive:()=>Su,compareStringsCaseSensitiveUI:()=>Rk,compareTextSpans:()=>fy,compareValues:()=>Br,compilerOptionsAffectDeclarationPath:()=>R4e,compilerOptionsAffectEmit:()=>F4e,compilerOptionsAffectSemanticDiagnostics:()=>O4e,compilerOptionsDidYouMeanDiagnostics:()=>die,compilerOptionsIndicateEsModules:()=>ive,computeCommonSourceDirectoryOfFilenames:()=>AOe,computeLineAndCharacterOfPosition:()=>aE,computeLineOfPosition:()=>nA,computeLineStarts:()=>oE,computePositionOfLineAndCharacter:()=>AO,computeSignatureWithDiagnostics:()=>U0e,computeSuggestionDiagnostics:()=>Jve,computedOptions:()=>UU,concatenate:()=>go,concatenateDiagnosticMessageChains:()=>C4e,consumesNodeCoreModules:()=>iae,contains:()=>un,containsIgnoredPath:()=>QU,containsObjectRestOrSpread:()=>ZH,containsParseError:()=>BO,containsPath:()=>ug,convertCompilerOptionsForTelemetry:()=>ZNe,convertCompilerOptionsFromJson:()=>apt,convertJsonOption:()=>m3,convertToBase64:()=>p4e,convertToJson:()=>iK,convertToObject:()=>VNe,convertToOptionsWithAbsolutePaths:()=>gie,convertToRelativePath:()=>BI,convertToTSConfig:()=>Sye,convertTypeAcquisitionFromJson:()=>spt,copyComments:()=>E3,copyEntries:()=>ere,copyLeadingComments:()=>eM,copyProperties:()=>zm,copyTrailingAsLeadingComments:()=>YK,copyTrailingComments:()=>tq,couldStartTrivia:()=>D4,countWhere:()=>Lo,createAbstractBuilder:()=>ddt,createAccessorPropertyBackingField:()=>nye,createAccessorPropertyGetRedirector:()=>bNe,createAccessorPropertySetRedirector:()=>xNe,createBaseNodeFactory:()=>d3e,createBinaryExpressionTrampoline:()=>iie,createBuilderProgram:()=>z0e,createBuilderProgramUsingIncrementalBuildInfo:()=>XOe,createBuilderStatusReporter:()=>goe,createCacheableExportInfoMap:()=>Ove,createCachedDirectoryStructureHost:()=>Gie,createClassifier:()=>qft,createCommentDirectivesMap:()=>XPe,createCompilerDiagnostic:()=>bp,createCompilerDiagnosticForInvalidCustomType:()=>MNe,createCompilerDiagnosticFromMessageChain:()=>nne,createCompilerHost:()=>wOe,createCompilerHostFromProgramHost:()=>c1e,createCompilerHostWorker:()=>Qie,createDetachedDiagnostic:()=>tF,createDiagnosticCollection:()=>IU,createDiagnosticForFileFromMessageChain:()=>Fme,createDiagnosticForNode:()=>xi,createDiagnosticForNodeArray:()=>UR,createDiagnosticForNodeArrayFromMessageChain:()=>EG,createDiagnosticForNodeFromMessageChain:()=>Nx,createDiagnosticForNodeInSourceFile:()=>m0,createDiagnosticForRange:()=>_6e,createDiagnosticMessageChainFromDiagnostic:()=>p6e,createDiagnosticReporter:()=>LF,createDocumentPositionMapper:()=>L8e,createDocumentRegistry:()=>V7e,createDocumentRegistryInternal:()=>jve,createEmitAndSemanticDiagnosticsBuilderProgram:()=>W0e,createEmitHelperFactory:()=>w3e,createEmptyExports:()=>qH,createEvaluator:()=>o3e,createExpressionForJsxElement:()=>aNe,createExpressionForJsxFragment:()=>sNe,createExpressionForObjectLiteralElementLike:()=>cNe,createExpressionForPropertyName:()=>Hge,createExpressionFromEntityName:()=>JH,createExternalHelpersImportDeclarationIfNeeded:()=>Zge,createFileDiagnostic:()=>md,createFileDiagnosticFromMessageChain:()=>ure,createFlowNode:()=>wb,createForOfBindingStatement:()=>Gge,createFutureSourceFile:()=>uae,createGetCanonicalFileName:()=>_d,createGetIsolatedDeclarationErrors:()=>mOe,createGetSourceFile:()=>D0e,createGetSymbolAccessibilityDiagnosticForNode:()=>RA,createGetSymbolAccessibilityDiagnosticForNodeName:()=>fOe,createGetSymbolWalker:()=>x8e,createIncrementalCompilerHost:()=>hoe,createIncrementalProgram:()=>lFe,createJsxFactoryExpression:()=>Wge,createLanguageService:()=>b9e,createLanguageServiceSourceFile:()=>wae,createMemberAccessForPropertyName:()=>d3,createModeAwareCache:()=>OL,createModeAwareCacheKey:()=>Ez,createModeMismatchDetails:()=>yme,createModuleNotFoundChain:()=>rre,createModuleResolutionCache:()=>FL,createModuleResolutionLoader:()=>O0e,createModuleResolutionLoaderUsingGlobalCache:()=>aFe,createModuleSpecifierResolutionHost:()=>BA,createMultiMap:()=>d_,createNameResolver:()=>lge,createNodeConverters:()=>h3e,createNodeFactory:()=>IH,createOptionNameMap:()=>pie,createOverload:()=>Pbe,createPackageJsonImportFilter:()=>tM,createPackageJsonInfo:()=>kve,createParenthesizerRules:()=>f3e,createPatternMatcher:()=>Q7e,createPrinter:()=>DC,createPrinterWithDefaults:()=>TOe,createPrinterWithRemoveComments:()=>wP,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>EOe,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>b0e,createProgram:()=>wK,createProgramDiagnostics:()=>MOe,createProgramHost:()=>l1e,createPropertyNameNodeForIdentifierOrLiteral:()=>EH,createQueue:()=>u0,createRange:()=>y0,createRedirectedBuilderProgram:()=>V0e,createResolutionCache:()=>K0e,createRuntimeTypeSerializer:()=>Z8e,createScanner:()=>B1,createSemanticDiagnosticsBuilderProgram:()=>_dt,createSet:()=>Qi,createSolutionBuilder:()=>fFe,createSolutionBuilderHost:()=>_Fe,createSolutionBuilderWithWatch:()=>mFe,createSolutionBuilderWithWatchHost:()=>dFe,createSortedArray:()=>dy,createSourceFile:()=>DF,createSourceMapGenerator:()=>P8e,createSourceMapSource:()=>wlt,createSuperAccessVariableStatement:()=>Vie,createSymbolTable:()=>ic,createSymlinkCache:()=>zhe,createSyntacticTypeNodeBuilder:()=>OFe,createSystemWatchFunctions:()=>F$,createTextChange:()=>WK,createTextChangeFromStartLength:()=>qoe,createTextChangeRange:()=>X0,createTextRangeFromNode:()=>tve,createTextRangeFromSpan:()=>zoe,createTextSpan:()=>Jp,createTextSpanFromBounds:()=>Hu,createTextSpanFromNode:()=>yh,createTextSpanFromRange:()=>CE,createTextSpanFromStringLiteralLikeContent:()=>eve,createTextWriter:()=>nH,createTokenRange:()=>Dhe,createTypeChecker:()=>w8e,createTypeReferenceDirectiveResolutionCache:()=>Die,createTypeReferenceResolutionLoader:()=>Yie,createWatchCompilerHost:()=>Tdt,createWatchCompilerHostOfConfigFile:()=>u1e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>p1e,createWatchFactory:()=>s1e,createWatchHost:()=>a1e,createWatchProgram:()=>_1e,createWatchStatusReporter:()=>Q0e,createWriteFileMeasuringIO:()=>A0e,declarationNameToString:()=>du,decodeMappings:()=>e0e,decodedTextSpanIntersectsWith:()=>dS,deduplicate:()=>rf,defaultHoverMaximumTruncationLength:()=>JPe,defaultInitCompilerOptions:()=>Cut,defaultMaximumTruncationLength:()=>cU,diagnosticCategoryName:()=>NT,diagnosticToString:()=>FP,diagnosticsEqualityComparer:()=>ine,directoryProbablyExists:()=>Sv,directorySeparator:()=>Gl,displayPart:()=>hg,displayPartsToString:()=>_Q,disposeEmitNodes:()=>Sge,documentSpansEqual:()=>pve,dumpTracingLegend:()=>U9,elementAt:()=>Gr,elideNodes:()=>SNe,emitDetachedComments:()=>t4e,emitFiles:()=>v0e,emitFilesAndReportErrors:()=>_oe,emitFilesAndReportErrorsAndGetExitStatus:()=>o1e,emitModuleKindIsNonNodeESM:()=>gH,emitNewLineBeforeLeadingCommentOfPosition:()=>e4e,emitResolverSkipsTypeChecking:()=>y0e,emitSkippedWithNoDiagnostics:()=>L0e,emptyArray:()=>j,emptyFileSystemEntries:()=>Qhe,emptyMap:()=>ie,emptyOptions:()=>u1,endsWith:()=>au,ensurePathIsNonModuleName:()=>Tx,ensureScriptKind:()=>fne,ensureTrailingDirectorySeparator:()=>r_,entityNameToString:()=>Rg,enumerateInsertsAndDeletes:()=>kI,equalOwnProperties:()=>yl,equateStringsCaseInsensitive:()=>F1,equateStringsCaseSensitive:()=>qm,equateValues:()=>Ng,escapeJsxAttributeString:()=>lhe,escapeLeadingUnderscores:()=>dp,escapeNonAsciiString:()=>Mre,escapeSnippetText:()=>mP,escapeString:()=>kb,escapeTemplateSubstitution:()=>she,evaluatorResult:()=>wd,every:()=>ht,exclusivelyPrefixedNodeCoreModules:()=>wne,executeCommandLine:()=>rft,expandPreOrPostfixIncrementOrDecrementExpression:()=>Yne,explainFiles:()=>e1e,explainIfFileIsRedirectAndImpliedFormat:()=>t1e,exportAssignmentIsAlias:()=>QG,expressionResultIsUnused:()=>Z4e,extend:()=>Lh,extensionFromPath:()=>VU,extensionIsTS:()=>vne,extensionsNotSupportingExtensionlessResolution:()=>yne,externalHelpersModuleNameText:()=>nC,factory:()=>W,fileExtensionIs:()=>Au,fileExtensionIsOneOf:()=>_p,fileIncludeReasonToDiagnostics:()=>i1e,fileShouldUseJavaScriptRequire:()=>Nve,filter:()=>yr,filterMutate:()=>co,filterSemanticDiagnostics:()=>noe,find:()=>wt,findAncestor:()=>fn,findBestPatternMatch:()=>GD,findChildOfKind:()=>Kl,findComputedPropertyNameCacheAssignment:()=>oie,findConfigFile:()=>k0e,findConstructorDeclaration:()=>AH,findContainingList:()=>Roe,findDiagnosticForNode:()=>L7e,findFirstNonJsxWhitespaceToken:()=>o7e,findIndex:()=>hr,findLast:()=>Ut,findLastIndex:()=>Hi,findListItemInfo:()=>i7e,findModifier:()=>ZL,findNextToken:()=>OP,findPackageJson:()=>R7e,findPackageJsons:()=>Eve,findPrecedingMatchingToken:()=>$oe,findPrecedingToken:()=>vd,findSuperStatementIndexPath:()=>Bie,findTokenOnLeftOfPosition:()=>Hz,findUseStrictPrologue:()=>Qge,first:()=>To,firstDefined:()=>Je,firstDefinedIterator:()=>pt,firstIterator:()=>Gu,firstOrOnly:()=>Ave,firstOrUndefined:()=>pi,firstOrUndefinedIterator:()=>ia,fixupCompilerOptions:()=>Hve,flatMap:()=>an,flatMapIterator:()=>li,flatMapToMutable:()=>Xr,flatten:()=>Rc,flattenCommaList:()=>TNe,flattenDestructuringAssignment:()=>v3,flattenDestructuringBinding:()=>AP,flattenDiagnosticMessageText:()=>RS,forEach:()=>X,forEachAncestor:()=>GPe,forEachAncestorDirectory:()=>Ex,forEachAncestorDirectoryStoppingAtGlobalCache:()=>Ab,forEachChild:()=>Is,forEachChildRecursively:()=>CF,forEachDynamicImportOrRequireCall:()=>Ine,forEachEmittedFile:()=>f0e,forEachEnclosingBlockScopeContainer:()=>c6e,forEachEntry:()=>Ad,forEachExternalModuleToImportFrom:()=>Rve,forEachImportClauseDeclaration:()=>R6e,forEachKey:()=>Ix,forEachLeadingCommentRange:()=>A4,forEachNameInAccessChainWalkingLeft:()=>b4e,forEachNameOfDefaultExport:()=>_ae,forEachOptionsSyntaxByName:()=>mge,forEachProjectReference:()=>tz,forEachPropertyAssignment:()=>JR,forEachResolvedProjectReference:()=>dge,forEachReturnStatement:()=>sC,forEachRight:()=>Re,forEachTrailingCommentRange:()=>w4,forEachTsConfigPropArray:()=>wG,forEachUnique:()=>dve,forEachYieldExpression:()=>h6e,formatColorAndReset:()=>IP,formatDiagnostic:()=>w0e,formatDiagnostics:()=>$_t,formatDiagnosticsWithColorAndContext:()=>OOe,formatGeneratedName:()=>IA,formatGeneratedNamePart:()=>wL,formatLocation:()=>I0e,formatMessage:()=>nF,formatStringFromArgs:()=>Mx,formatting:()=>rd,generateDjb2Hash:()=>qk,generateTSConfig:()=>WNe,getAdjustedReferenceLocation:()=>W1e,getAdjustedRenameLocation:()=>Moe,getAliasDeclarationFromName:()=>Zme,getAllAccessorDeclarations:()=>uP,getAllDecoratorsOfClass:()=>o0e,getAllDecoratorsOfClassElement:()=>Uie,getAllJSDocTags:()=>Mte,getAllJSDocTagsOfKind:()=>Nct,getAllKeys:()=>aS,getAllProjectOutputs:()=>Wie,getAllSuperTypeNodes:()=>EU,getAllowImportingTsExtensions:()=>A4e,getAllowJSCompilerOption:()=>fC,getAllowSyntheticDefaultImports:()=>iF,getAncestor:()=>mA,getAnyExtensionFromPath:()=>nE,getAreDeclarationMapsEnabled:()=>one,getAssignedExpandoInitializer:()=>zO,getAssignedName:()=>Q$,getAssignmentDeclarationKind:()=>m_,getAssignmentDeclarationPropertyAccessKind:()=>UG,getAssignmentTargetKind:()=>cC,getAutomaticTypeDirectiveNames:()=>kie,getBaseFileName:()=>t_,getBinaryOperatorPrecedence:()=>eH,getBuildInfo:()=>S0e,getBuildInfoFileVersionMap:()=>J0e,getBuildInfoText:()=>bOe,getBuildOrderFromAnyBuildOrder:()=>FK,getBuilderCreationParameters:()=>soe,getBuilderFileEmit:()=>AC,getCanonicalDiagnostic:()=>d6e,getCheckFlags:()=>Fp,getClassExtendsHeritageElement:()=>aP,getClassLikeDeclarationOfSymbol:()=>JT,getCombinedLocalAndExportSymbolFlags:()=>iL,getCombinedModifierFlags:()=>Ra,getCombinedNodeFlags:()=>dd,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>_u,getCommentRange:()=>DS,getCommonSourceDirectory:()=>jz,getCommonSourceDirectoryOfConfig:()=>S3,getCompilerOptionValue:()=>cne,getConditions:()=>EC,getConfigFileParsingDiagnostics:()=>PP,getConstantValue:()=>b3e,getContainerFlags:()=>Bye,getContainerNode:()=>T3,getContainingClass:()=>Cf,getContainingClassExcludingClassDecorators:()=>yre,getContainingClassStaticBlock:()=>E6e,getContainingFunction:()=>My,getContainingFunctionDeclaration:()=>T6e,getContainingFunctionOrClassStaticBlock:()=>gre,getContainingNodeArray:()=>X4e,getContainingObjectLiteralElement:()=>dQ,getContextualTypeFromParent:()=>Xoe,getContextualTypeFromParentOrAncestorTypeNode:()=>Loe,getDeclarationDiagnostics:()=>hOe,getDeclarationEmitExtensionForPath:()=>$re,getDeclarationEmitOutputFilePath:()=>Q6e,getDeclarationEmitOutputFilePathWorker:()=>Bre,getDeclarationFileExtension:()=>sie,getDeclarationFromName:()=>TU,getDeclarationModifierFlagsFromSymbol:()=>S0,getDeclarationOfKind:()=>Qu,getDeclarationsOfKind:()=>VPe,getDeclaredExpandoInitializer:()=>vU,getDecorators:()=>yb,getDefaultCompilerOptions:()=>Aae,getDefaultFormatCodeSettings:()=>Coe,getDefaultLibFileName:()=>kn,getDefaultLibFilePath:()=>x9e,getDefaultLikeExportInfo:()=>pae,getDefaultLikeExportNameFromDeclaration:()=>wve,getDefaultResolutionModeForFileWorker:()=>roe,getDiagnosticText:()=>Jh,getDiagnosticsWithinSpan:()=>M7e,getDirectoryPath:()=>mo,getDirectoryToWatchFailedLookupLocation:()=>H0e,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>iFe,getDocumentPositionMapper:()=>qve,getDocumentSpansEqualityComparer:()=>_ve,getESModuleInterop:()=>kS,getEditsForFileRename:()=>G7e,getEffectiveBaseTypeNode:()=>vv,getEffectiveConstraintOfTypeParameter:()=>NR,getEffectiveContainerForJSDocTemplateTag:()=>Ire,getEffectiveImplementsTypeNodes:()=>ZR,getEffectiveInitializer:()=>jG,getEffectiveJSDocHost:()=>fA,getEffectiveModifierFlags:()=>tm,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>o4e,getEffectiveModifierFlagsNoCache:()=>a4e,getEffectiveReturnTypeNode:()=>jg,getEffectiveSetAccessorTypeAnnotationNode:()=>ghe,getEffectiveTypeAnnotationNode:()=>X_,getEffectiveTypeParameterDeclarations:()=>Zk,getEffectiveTypeRoots:()=>Tz,getElementOrPropertyAccessArgumentExpressionOrName:()=>wre,getElementOrPropertyAccessName:()=>BT,getElementsOfBindingOrAssignmentPattern:()=>AL,getEmitDeclarations:()=>fg,getEmitFlags:()=>Xc,getEmitHelpers:()=>bge,getEmitModuleDetectionKind:()=>w4e,getEmitModuleFormatOfFileWorker:()=>zz,getEmitModuleKind:()=>Km,getEmitModuleResolutionKind:()=>km,getEmitScriptTarget:()=>$c,getEmitStandardClassFields:()=>$he,getEnclosingBlockScopeContainer:()=>yv,getEnclosingContainer:()=>lre,getEncodedSemanticClassifications:()=>Lve,getEncodedSyntacticClassifications:()=>Mve,getEndLinePosition:()=>vG,getEntityNameFromTypeNode:()=>NG,getEntrypointsFromPackageJsonInfo:()=>Fye,getErrorCountForSummary:()=>uoe,getErrorSpanForNode:()=>$4,getErrorSummaryText:()=>X0e,getEscapedTextOfIdentifierOrLiteral:()=>DU,getEscapedTextOfJsxAttributeName:()=>YU,getEscapedTextOfJsxNamespacedName:()=>cF,getExpandoInitializer:()=>_A,getExportAssignmentExpression:()=>Xme,getExportInfoMap:()=>oQ,getExportNeedsImportStarHelper:()=>M8e,getExpressionAssociativity:()=>ohe,getExpressionPrecedence:()=>wU,getExternalHelpersModuleName:()=>WH,getExternalModuleImportEqualsDeclarationExpression:()=>hU,getExternalModuleName:()=>JO,getExternalModuleNameFromDeclaration:()=>H6e,getExternalModuleNameFromPath:()=>_he,getExternalModuleNameLiteral:()=>kF,getExternalModuleRequireArgument:()=>Ume,getFallbackOptions:()=>CK,getFileEmitOutput:()=>jOe,getFileMatcherPatterns:()=>dne,getFileNamesFromConfigSpecs:()=>bz,getFileWatcherEventKind:()=>S4,getFilesInErrorForSummary:()=>poe,getFirstConstructorWithBody:()=>Rx,getFirstIdentifier:()=>_h,getFirstNonSpaceCharacterPosition:()=>w7e,getFirstProjectOutput:()=>g0e,getFixableErrorSpanExpression:()=>Cve,getFormatCodeSettingsForWriting:()=>cae,getFullWidth:()=>gG,getFunctionFlags:()=>A_,getHeritageClause:()=>ZG,getHostSignatureFromJSDoc:()=>dA,getIdentifierAutoGenerate:()=>Nlt,getIdentifierGeneratedImportReference:()=>D3e,getIdentifierTypeArguments:()=>t3,getImmediatelyInvokedFunctionExpression:()=>uA,getImpliedNodeFormatForEmitWorker:()=>b3,getImpliedNodeFormatForFile:()=>AK,getImpliedNodeFormatForFileWorker:()=>toe,getImportNeedsImportDefaultHelper:()=>r0e,getImportNeedsImportStarHelper:()=>Mie,getIndentString:()=>jre,getInferredLibraryNameResolveFrom:()=>eoe,getInitializedVariables:()=>MU,getInitializerOfBinaryExpression:()=>Vme,getInitializerOfBindingOrAssignmentElement:()=>HH,getInterfaceBaseTypeNodes:()=>kU,getInternalEmitFlags:()=>J1,getInvokedExpression:()=>bre,getIsFileExcluded:()=>z7e,getIsolatedModules:()=>a1,getJSDocAugmentsTag:()=>Ote,getJSDocClassTag:()=>X$,getJSDocCommentRanges:()=>Lme,getJSDocCommentsAndTags:()=>Wme,getJSDocDeprecatedTag:()=>cu,getJSDocDeprecatedTagNoCache:()=>kf,getJSDocEnumTag:()=>U1,getJSDocHost:()=>iP,getJSDocImplementsTags:()=>Fte,getJSDocOverloadTags:()=>Hme,getJSDocOverrideTagNoCache:()=>ml,getJSDocParameterTags:()=>P4,getJSDocParameterTagsNoCache:()=>Ite,getJSDocPrivateTag:()=>GI,getJSDocPrivateTagNoCache:()=>Ln,getJSDocProtectedTag:()=>ao,getJSDocProtectedTagNoCache:()=>lo,getJSDocPublicTag:()=>N4,getJSDocPublicTagNoCache:()=>Rte,getJSDocReadonlyTag:()=>aa,getJSDocReadonlyTagNoCache:()=>ta,getJSDocReturnTag:()=>Y0,getJSDocReturnType:()=>iG,getJSDocRoot:()=>QR,getJSDocSatisfiesExpressionType:()=>age,getJSDocSatisfiesTag:()=>IO,getJSDocTags:()=>sA,getJSDocTemplateTag:()=>LT,getJSDocThisTag:()=>d0,getJSDocType:()=>hv,getJSDocTypeAliasName:()=>Yge,getJSDocTypeAssertionType:()=>CL,getJSDocTypeParameterDeclarations:()=>Vre,getJSDocTypeParameterTags:()=>Pte,getJSDocTypeParameterTagsNoCache:()=>Z$,getJSDocTypeTag:()=>mv,getJSXImplicitImportBase:()=>yH,getJSXRuntimeImport:()=>une,getJSXTransformEnabled:()=>lne,getKeyForCompilerOptions:()=>wye,getLanguageVariant:()=>_H,getLastChild:()=>Ohe,getLeadingCommentRanges:()=>my,getLeadingCommentRangesOfNode:()=>Rme,getLeftmostAccessExpression:()=>oL,getLeftmostExpression:()=>aL,getLibFileNameFromLibReference:()=>_ge,getLibNameFromLibReference:()=>pge,getLibraryNameFromLibFileName:()=>F0e,getLineAndCharacterOfPosition:()=>qs,getLineInfo:()=>Yye,getLineOfLocalPosition:()=>PU,getLineStartPositionForPosition:()=>p1,getLineStarts:()=>Ry,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>y4e,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>g4e,getLinesBetweenPositions:()=>zI,getLinesBetweenRangeEndAndRangeStart:()=>Ahe,getLinesBetweenRangeEndPositions:()=>slt,getLiteralText:()=>t6e,getLocalNameForExternalImport:()=>DL,getLocalSymbolForExportDefault:()=>RU,getLocaleSpecificMessage:()=>As,getLocaleTimeString:()=>OK,getMappedContextSpan:()=>fve,getMappedDocumentSpan:()=>Koe,getMappedLocation:()=>Xz,getMatchedFileSpec:()=>r1e,getMatchedIncludeSpec:()=>n1e,getMeaningFromDeclaration:()=>Aoe,getMeaningFromLocation:()=>x3,getMembersOfDeclaration:()=>g6e,getModeForFileReference:()=>FOe,getModeForResolutionAtIndex:()=>W_t,getModeForUsageLocation:()=>N0e,getModifiedTime:()=>OT,getModifiers:()=>Qk,getModuleInstanceState:()=>KT,getModuleNameStringLiteralAt:()=>IK,getModuleSpecifierEndingPreference:()=>z4e,getModuleSpecifierResolverHost:()=>ove,getNameForExportedSymbol:()=>oae,getNameFromImportAttribute:()=>Cne,getNameFromIndexInfo:()=>l6e,getNameFromPropertyName:()=>HK,getNameOfAccessExpression:()=>Rhe,getNameOfCompilerOptionValue:()=>hie,getNameOfDeclaration:()=>cs,getNameOfExpando:()=>zme,getNameOfJSDocTypedef:()=>Ate,getNameOfScriptTarget:()=>sne,getNameOrArgument:()=>$G,getNameTable:()=>vSe,getNamespaceDeclarationNode:()=>HR,getNewLineCharacter:()=>fE,getNewLineKind:()=>iQ,getNewLineOrDefaultFromHost:()=>ZT,getNewTargetContainer:()=>C6e,getNextJSDocCommentLocation:()=>Gme,getNodeChildren:()=>Jge,getNodeForGeneratedName:()=>QH,getNodeId:()=>hl,getNodeKind:()=>NP,getNodeModifiers:()=>Kz,getNodeModulePathParts:()=>Tne,getNonAssignedNameOfDeclaration:()=>PR,getNonAssignmentOperatorForCompoundAssignment:()=>Pz,getNonAugmentationDeclaration:()=>Ame,getNonDecoratorTokenPosOfNode:()=>xme,getNonIncrementalBuildInfoRoots:()=>YOe,getNonModifierTokenPosOfNode:()=>YPe,getNormalizedAbsolutePath:()=>za,getNormalizedAbsolutePathWithoutRoot:()=>ER,getNormalizedPathComponents:()=>Jk,getObjectFlags:()=>ro,getOperatorAssociativity:()=>ahe,getOperatorPrecedence:()=>YG,getOptionFromName:()=>mye,getOptionsForLibraryResolution:()=>Iye,getOptionsNameMap:()=>PL,getOptionsSyntaxByArrayElementValue:()=>fge,getOptionsSyntaxByValue:()=>u3e,getOrCreateEmitNode:()=>nm,getOrUpdate:()=>hs,getOriginalNode:()=>Ku,getOriginalNodeId:()=>gh,getOutputDeclarationFileName:()=>Mz,getOutputDeclarationFileNameWorker:()=>m0e,getOutputExtension:()=>TK,getOutputFileNames:()=>j_t,getOutputJSFileNameWorker:()=>h0e,getOutputPathsFor:()=>Lz,getOwnEmitOutputFilePath:()=>K6e,getOwnKeys:()=>Lu,getOwnValues:()=>sS,getPackageJsonTypesVersionsPaths:()=>Eie,getPackageNameFromTypesPackageName:()=>Dz,getPackageScopeForPath:()=>Cz,getParameterSymbolFromJSDoc:()=>GG,getParentNodeInSpan:()=>QK,getParseTreeNode:()=>vs,getParsedCommandLineOfConfigFile:()=>rK,getPathComponents:()=>Cd,getPathFromPathComponents:()=>pS,getPathUpdater:()=>$ve,getPathsBasePath:()=>Ure,getPatternFromSpec:()=>Vhe,getPendingEmitKindWithSeen:()=>aoe,getPositionOfLineAndCharacter:()=>C4,getPossibleGenericSignatures:()=>H1e,getPossibleOriginalInputExtensionForExtension:()=>dhe,getPossibleOriginalInputPathWithoutChangingExt:()=>fhe,getPossibleTypeArgumentsInfo:()=>K1e,getPreEmitDiagnostics:()=>B_t,getPrecedingNonSpaceCharacterPosition:()=>Qoe,getPrivateIdentifier:()=>a0e,getProperties:()=>i0e,getProperty:()=>Q0,getPropertyAssignmentAliasLikeExpression:()=>z6e,getPropertyNameForPropertyNameNode:()=>H4,getPropertyNameFromType:()=>x0,getPropertyNameOfBindingOrAssignmentElement:()=>Xge,getPropertySymbolFromBindingElement:()=>Hoe,getPropertySymbolsFromContextualType:()=>Iae,getQuoteFromPreference:()=>sve,getQuotePreference:()=>Vg,getRangesWhere:()=>ou,getRefactorContextSpan:()=>$F,getReferencedFileLocation:()=>Uz,getRegexFromPattern:()=>mE,getRegularExpressionForWildcard:()=>zU,getRegularExpressionsForWildcards:()=>pne,getRelativePathFromDirectory:()=>lh,getRelativePathFromFile:()=>Vk,getRelativePathToDirectoryOrUrl:()=>FT,getRenameLocation:()=>XK,getReplacementSpanForContextToken:()=>Y1e,getResolutionDiagnostic:()=>j0e,getResolutionModeOverride:()=>$L,getResolveJsonModule:()=>_P,getResolvePackageJsonExports:()=>fH,getResolvePackageJsonImports:()=>mH,getResolvedExternalModuleName:()=>phe,getResolvedModuleFromResolution:()=>jO,getResolvedTypeReferenceDirectiveFromResolution:()=>tre,getRestIndicatorOfBindingOrAssignmentElement:()=>rie,getRestParameterElementType:()=>Mme,getRightMostAssignedExpression:()=>BG,getRootDeclaration:()=>bS,getRootDirectoryOfResolutionCache:()=>oFe,getRootLength:()=>Fy,getScriptKind:()=>yve,getScriptKindFromFileName:()=>mne,getScriptTargetFeatures:()=>Tme,getSelectedEffectiveModifierFlags:()=>QO,getSelectedSyntacticModifierFlags:()=>n4e,getSemanticClassifications:()=>q7e,getSemanticJsxChildren:()=>YR,getSetAccessorTypeAnnotationNode:()=>X6e,getSetAccessorValueParameter:()=>NU,getSetExternalModuleIndicator:()=>dH,getShebang:()=>VI,getSingleVariableOfVariableStatement:()=>GO,getSnapshotText:()=>BF,getSnippetElement:()=>xge,getSourceFileOfModule:()=>yG,getSourceFileOfNode:()=>Pn,getSourceFilePathInNewDir:()=>qre,getSourceFileVersionAsHashFromText:()=>doe,getSourceFilesToEmit:()=>zre,getSourceMapRange:()=>yE,getSourceMapper:()=>o5e,getSourceTextOfNodeFromSourceFile:()=>XI,getSpanOfTokenAtPosition:()=>gS,getSpellingSuggestion:()=>xx,getStartPositionOfLine:()=>iC,getStartPositionOfRange:()=>LU,getStartsOnNewLine:()=>rz,getStaticPropertiesAndClassStaticBlock:()=>$ie,getStrictOptionValue:()=>rm,getStringComparer:()=>ub,getSubPatternFromSpec:()=>_ne,getSuperCallFromStatement:()=>jie,getSuperContainer:()=>IG,getSupportedCodeFixes:()=>gSe,getSupportedExtensions:()=>qU,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>SH,getSwitchedType:()=>bve,getSymbolId:()=>hc,getSymbolNameForPrivateIdentifier:()=>XG,getSymbolTarget:()=>vve,getSyntacticClassifications:()=>J7e,getSyntacticModifierFlags:()=>_E,getSyntacticModifierFlagsNoCache:()=>She,getSynthesizedDeepClone:()=>Il,getSynthesizedDeepCloneWithReplacements:()=>wH,getSynthesizedDeepClones:()=>hP,getSynthesizedDeepClonesWithReplacements:()=>hge,getSyntheticLeadingComments:()=>_L,getSyntheticTrailingComments:()=>FH,getTargetLabel:()=>Poe,getTargetOfBindingOrAssignmentElement:()=>xC,getTemporaryModuleResolutionState:()=>kz,getTextOfConstantValue:()=>r6e,getTextOfIdentifierOrLiteral:()=>g0,getTextOfJSDocComment:()=>oG,getTextOfJsxAttributeName:()=>DH,getTextOfJsxNamespacedName:()=>ez,getTextOfNode:()=>Sp,getTextOfNodeFromSourceText:()=>uU,getTextOfPropertyName:()=>UO,getThisContainer:()=>Hm,getThisParameter:()=>cP,getTokenAtPosition:()=>la,getTokenPosOfNode:()=>oC,getTokenSourceMapRange:()=>Ilt,getTouchingPropertyName:()=>Vh,getTouchingToken:()=>KL,getTrailingCommentRanges:()=>hb,getTrailingSemicolonDeferringWriter:()=>uhe,getTransformers:()=>yOe,getTsBuildInfoEmitOutputFilePath:()=>LA,getTsConfigObjectLiteralExpression:()=>fU,getTsConfigPropArrayElementValue:()=>hre,getTypeAnnotationNode:()=>Y6e,getTypeArgumentOrTypeParameterList:()=>_7e,getTypeKeywordOfTypeOnlyImport:()=>uve,getTypeNode:()=>k3e,getTypeNodeIfAccessible:()=>nq,getTypeParameterFromJsDoc:()=>L6e,getTypeParameterOwner:()=>z,getTypesPackageName:()=>Pie,getUILocale:()=>Fk,getUniqueName:()=>k3,getUniqueSymbolId:()=>A7e,getUseDefineForClassFields:()=>hH,getWatchErrorSummaryDiagnosticMessage:()=>Z0e,getWatchFactory:()=>E0e,group:()=>Pg,groupBy:()=>Du,guessIndentation:()=>zPe,handleNoEmitOptions:()=>M0e,handleWatchOptionsConfigDirTemplateSubstitution:()=>yie,hasAbstractModifier:()=>pP,hasAccessorModifier:()=>xS,hasAmbientModifier:()=>vhe,hasChangesInResolutions:()=>vme,hasContextSensitiveParameters:()=>xne,hasDecorators:()=>By,hasDocComment:()=>u7e,hasDynamicName:()=>$T,hasEffectiveModifier:()=>Bg,hasEffectiveModifiers:()=>yhe,hasEffectiveReadonlyModifier:()=>Q4,hasExtension:()=>eA,hasImplementationTSFileExtension:()=>$4e,hasIndexSignature:()=>Sve,hasInferredType:()=>Ane,hasInitializer:()=>lE,hasInvalidEscape:()=>che,hasJSDocNodes:()=>hy,hasJSDocParameterTags:()=>Nte,hasJSFileExtension:()=>jx,hasJsonModuleEmitEnabled:()=>ane,hasOnlyExpressionInitializer:()=>j4,hasOverrideModifier:()=>Wre,hasPossibleExternalModuleReference:()=>s6e,hasProperty:()=>Ho,hasPropertyAccessExpressionWithName:()=>$K,hasQuestionToken:()=>VO,hasRecordedExternalHelpers:()=>pNe,hasResolutionModeOverride:()=>n3e,hasRestParameter:()=>fme,hasScopeMarker:()=>OPe,hasStaticModifier:()=>fd,hasSyntacticModifier:()=>ko,hasSyntacticModifiers:()=>r4e,hasTSFileExtension:()=>X4,hasTabstop:()=>e3e,hasTrailingDirectorySeparator:()=>uS,hasType:()=>Qte,hasTypeArguments:()=>Zct,hasZeroOrOneAsteriskCharacter:()=>Uhe,hostGetCanonicalFileName:()=>UT,hostUsesCaseSensitiveFileNames:()=>K4,idText:()=>Zi,identifierIsThisKeyword:()=>hhe,identifierToKeywordKind:()=>aA,identity:()=>vl,identitySourceMapConsumer:()=>t0e,ignoreSourceNewlines:()=>Ege,ignoredPaths:()=>b4,importFromModuleSpecifier:()=>bU,importSyntaxAffectsModuleResolution:()=>Bhe,indexOfAnyCharCode:()=>xo,indexOfNode:()=>BR,indicesOf:()=>zp,inferredTypesContainingFile:()=>$z,injectClassNamedEvaluationHelperBlockIfMissing:()=>Jie,injectClassThisAssignmentIfMissing:()=>V8e,insertImports:()=>lve,insertSorted:()=>vm,insertStatementAfterCustomPrologue:()=>B4,insertStatementAfterStandardPrologue:()=>Jct,insertStatementsAfterCustomPrologue:()=>Sme,insertStatementsAfterStandardPrologue:()=>Px,intersperse:()=>tr,intrinsicTagNameToString:()=>sge,introducesArgumentsExoticObject:()=>S6e,inverseJsxOptionMap:()=>eK,isAbstractConstructorSymbol:()=>v4e,isAbstractModifier:()=>M3e,isAccessExpression:()=>wu,isAccessibilityModifier:()=>Z1e,isAccessor:()=>tC,isAccessorModifier:()=>Ige,isAliasableExpression:()=>Pre,isAmbientModule:()=>Gm,isAmbientPropertyDeclaration:()=>Ime,isAnyDirectorySeparator:()=>XD,isAnyImportOrBareOrAccessedRequire:()=>o6e,isAnyImportOrReExport:()=>xG,isAnyImportOrRequireStatement:()=>a6e,isAnyImportSyntax:()=>$O,isAnySupportedFileExtension:()=>blt,isApplicableVersionedTypesKey:()=>uK,isArgumentExpressionOfElementAccess:()=>$1e,isArray:()=>Zn,isArrayBindingElement:()=>Jte,isArrayBindingOrAssignmentElement:()=>pG,isArrayBindingOrAssignmentPattern:()=>cme,isArrayBindingPattern:()=>xE,isArrayLiteralExpression:()=>qf,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>kE,isArrayTypeNode:()=>jH,isArrowFunction:()=>Iu,isAsExpression:()=>gL,isAssertClause:()=>V3e,isAssertEntry:()=>Ult,isAssertionExpression:()=>ZI,isAssertsKeyword:()=>R3e,isAssignmentDeclaration:()=>yU,isAssignmentExpression:()=>of,isAssignmentOperator:()=>zT,isAssignmentPattern:()=>aU,isAssignmentTarget:()=>lC,isAsteriskToken:()=>LH,isAsyncFunction:()=>CU,isAsyncModifier:()=>oz,isAutoAccessorPropertyDeclaration:()=>Mh,isAwaitExpression:()=>SC,isAwaitKeyword:()=>wge,isBigIntLiteral:()=>dL,isBinaryExpression:()=>wi,isBinaryLogicalOperator:()=>iH,isBinaryOperatorToken:()=>vNe,isBindableObjectDefinePropertyCall:()=>J4,isBindableStaticAccessExpression:()=>nP,isBindableStaticElementAccessExpression:()=>Are,isBindableStaticNameExpression:()=>V4,isBindingElement:()=>Vc,isBindingElementOfBareOrAccessedRequire:()=>w6e,isBindingName:()=>L4,isBindingOrAssignmentElement:()=>wPe,isBindingOrAssignmentPattern:()=>lG,isBindingPattern:()=>$s,isBlock:()=>Vs,isBlockLike:()=>UF,isBlockOrCatchScoped:()=>Eme,isBlockScope:()=>Pme,isBlockScopedContainerTopLevel:()=>i6e,isBooleanLiteral:()=>oU,isBreakOrContinueStatement:()=>tU,isBreakStatement:()=>jlt,isBuildCommand:()=>DFe,isBuildInfoFile:()=>vOe,isBuilderProgram:()=>Y0e,isBundle:()=>K3e,isCallChain:()=>O4,isCallExpression:()=>Js,isCallExpressionTarget:()=>F1e,isCallLikeExpression:()=>QI,isCallLikeOrFunctionLikeExpression:()=>lme,isCallOrNewExpression:()=>mS,isCallOrNewExpressionTarget:()=>R1e,isCallSignatureDeclaration:()=>hF,isCallToHelper:()=>iz,isCaseBlock:()=>_z,isCaseClause:()=>bL,isCaseKeyword:()=>B3e,isCaseOrDefaultClause:()=>Hte,isCatchClause:()=>TP,isCatchClauseVariableDeclaration:()=>Y4e,isCatchClauseVariableDeclarationOrBindingElement:()=>kme,isCheckJsEnabledForFile:()=>WU,isCircularBuildOrder:()=>MF,isClassDeclaration:()=>ed,isClassElement:()=>J_,isClassExpression:()=>w_,isClassInstanceProperty:()=>DPe,isClassLike:()=>Co,isClassMemberModifier:()=>ome,isClassNamedEvaluationHelperBlock:()=>FF,isClassOrTypeElement:()=>qte,isClassStaticBlockDeclaration:()=>n_,isClassThisAssignmentBlock:()=>Oz,isColonToken:()=>O3e,isCommaExpression:()=>VH,isCommaListExpression:()=>uz,isCommaSequence:()=>gz,isCommaToken:()=>N3e,isComment:()=>Uoe,isCommonJsExportPropertyAssignment:()=>fre,isCommonJsExportedExpression:()=>y6e,isCompoundAssignment:()=>Iz,isComputedNonLiteralName:()=>TG,isComputedPropertyName:()=>dc,isConciseBody:()=>Wte,isConditionalExpression:()=>a3,isConditionalTypeNode:()=>yP,isConstAssertion:()=>cge,isConstTypeReference:()=>z1,isConstructSignatureDeclaration:()=>cz,isConstructorDeclaration:()=>kp,isConstructorTypeNode:()=>fL,isContextualKeyword:()=>Ore,isContinueStatement:()=>Mlt,isCustomPrologue:()=>AG,isDebuggerStatement:()=>Blt,isDeclaration:()=>Vd,isDeclarationBindingElement:()=>cG,isDeclarationFileName:()=>sf,isDeclarationName:()=>Eb,isDeclarationNameOfEnumOrNamespace:()=>Ihe,isDeclarationReadonly:()=>kG,isDeclarationStatement:()=>MPe,isDeclarationWithTypeParameterChildren:()=>Ome,isDeclarationWithTypeParameters:()=>Nme,isDecorator:()=>hd,isDecoratorTarget:()=>YFe,isDefaultClause:()=>dz,isDefaultImport:()=>W4,isDefaultModifier:()=>$ne,isDefaultedExpandoInitializer:()=>I6e,isDeleteExpression:()=>U3e,isDeleteTarget:()=>Qme,isDeprecatedDeclaration:()=>aae,isDestructuringAssignment:()=>dE,isDiskPathRoot:()=>jI,isDoStatement:()=>Llt,isDocumentRegistryEntry:()=>aQ,isDotDotDotToken:()=>jne,isDottedName:()=>aH,isDynamicName:()=>Rre,isEffectiveExternalModule:()=>$R,isEffectiveStrictModeSourceFile:()=>wme,isElementAccessChain:()=>Yfe,isElementAccessExpression:()=>mu,isEmittedFileOfProgram:()=>COe,isEmptyArrayLiteral:()=>u4e,isEmptyBindingElement:()=>bt,isEmptyBindingPattern:()=>Ie,isEmptyObjectLiteral:()=>khe,isEmptyStatement:()=>Oge,isEmptyStringLiteral:()=>$me,isEntityName:()=>uh,isEntityNameExpression:()=>ru,isEnumConst:()=>lA,isEnumDeclaration:()=>CA,isEnumMember:()=>GT,isEqualityOperatorKind:()=>Yoe,isEqualsGreaterThanToken:()=>F3e,isExclamationToken:()=>MH,isExcludedFile:()=>HNe,isExclusivelyTypeOnlyImportOrExport:()=>P0e,isExpandoPropertyDeclaration:()=>lF,isExportAssignment:()=>Xu,isExportDeclaration:()=>P_,isExportModifier:()=>fF,isExportName:()=>eie,isExportNamespaceAsDefaultDeclaration:()=>are,isExportOrDefaultModifier:()=>KH,isExportSpecifier:()=>Cm,isExportsIdentifier:()=>q4,isExportsOrModuleExportsOrAlias:()=>CP,isExpression:()=>Vt,isExpressionNode:()=>Tb,isExpressionOfExternalModuleImportEqualsDeclaration:()=>r7e,isExpressionOfOptionalChainRoot:()=>Bte,isExpressionStatement:()=>af,isExpressionWithTypeArguments:()=>VT,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Hre,isExternalModule:()=>yd,isExternalModuleAugmentation:()=>eP,isExternalModuleImportEqualsDeclaration:()=>pA,isExternalModuleIndicator:()=>dG,isExternalModuleNameRelative:()=>vt,isExternalModuleReference:()=>WT,isExternalModuleSymbol:()=>LO,isExternalOrCommonJsModule:()=>Lg,isFileLevelReservedGeneratedIdentifier:()=>sG,isFileLevelUniqueName:()=>ire,isFileProbablyExternalModule:()=>XH,isFirstDeclarationOfSymbolParameter:()=>mve,isFixablePromiseHandler:()=>Wve,isForInOrOfStatement:()=>M4,isForInStatement:()=>Vne,isForInitializer:()=>f0,isForOfStatement:()=>$H,isForStatement:()=>kA,isFullSourceFile:()=>Ox,isFunctionBlock:()=>tP,isFunctionBody:()=>pme,isFunctionDeclaration:()=>i_,isFunctionExpression:()=>bu,isFunctionExpressionOrArrowFunction:()=>mC,isFunctionLike:()=>Rs,isFunctionLikeDeclaration:()=>lu,isFunctionLikeKind:()=>NO,isFunctionLikeOrClassStaticBlockDeclaration:()=>RR,isFunctionOrConstructorTypeNode:()=>APe,isFunctionOrModuleBlock:()=>ame,isFunctionSymbol:()=>O6e,isFunctionTypeNode:()=>Cb,isGeneratedIdentifier:()=>ap,isGeneratedPrivateIdentifier:()=>R4,isGetAccessor:()=>Ax,isGetAccessorDeclaration:()=>T0,isGetOrSetAccessorDeclaration:()=>aG,isGlobalScopeAugmentation:()=>xb,isGlobalSourceFile:()=>uE,isGrammarError:()=>ZPe,isHeritageClause:()=>zg,isHoistedFunction:()=>_re,isHoistedVariableStatement:()=>dre,isIdentifier:()=>ct,isIdentifierANonContextualKeyword:()=>the,isIdentifierName:()=>U6e,isIdentifierOrThisTypeNode:()=>mNe,isIdentifierPart:()=>j1,isIdentifierStart:()=>pg,isIdentifierText:()=>Jd,isIdentifierTypePredicate:()=>b6e,isIdentifierTypeReference:()=>H4e,isIfStatement:()=>EA,isIgnoredFileFromWildCardWatching:()=>kK,isImplicitGlob:()=>Jhe,isImportAttribute:()=>W3e,isImportAttributeName:()=>CPe,isImportAttributes:()=>l3,isImportCall:()=>Bh,isImportClause:()=>H1,isImportDeclaration:()=>fp,isImportEqualsDeclaration:()=>gd,isImportKeyword:()=>sz,isImportMeta:()=>qR,isImportOrExportSpecifier:()=>Yk,isImportOrExportSpecifierName:()=>D7e,isImportSpecifier:()=>Xm,isImportTypeAssertionContainer:()=>$lt,isImportTypeNode:()=>AS,isImportable:()=>Fve,isInComment:()=>EE,isInCompoundLikeAssignment:()=>Kme,isInExpressionContext:()=>xre,isInJSDoc:()=>gU,isInJSFile:()=>Ei,isInJSXText:()=>l7e,isInJsonFile:()=>Ere,isInNonReferenceComment:()=>m7e,isInReferenceComment:()=>f7e,isInRightSideOfInternalImportEqualsDeclaration:()=>woe,isInString:()=>jF,isInTemplateString:()=>G1e,isInTopLevelContext:()=>vre,isInTypeQuery:()=>KO,isIncrementalBuildInfo:()=>PK,isIncrementalBundleEmitBuildInfo:()=>GOe,isIncrementalCompilation:()=>dP,isIndexSignatureDeclaration:()=>vC,isIndexedAccessTypeNode:()=>vP,isInferTypeNode:()=>n3,isInfinityOrNaNString:()=>ZU,isInitializedProperty:()=>mK,isInitializedVariable:()=>pH,isInsideJsxElement:()=>Boe,isInsideJsxElementOrAttribute:()=>c7e,isInsideNodeModules:()=>tQ,isInsideTemplateLiteral:()=>VK,isInstanceOfExpression:()=>Kre,isInstantiatedModule:()=>Hye,isInterfaceDeclaration:()=>Af,isInternalDeclaration:()=>qPe,isInternalModuleImportEqualsDeclaration:()=>z4,isInternalName:()=>Kge,isIntersectionTypeNode:()=>vF,isIntrinsicJsxName:()=>eL,isIterationStatement:()=>rC,isJSDoc:()=>kv,isJSDocAllType:()=>X3e,isJSDocAugmentsTag:()=>EF,isJSDocAuthorTag:()=>Vlt,isJSDocCallbackTag:()=>Mge,isJSDocClassTag:()=>eNe,isJSDocCommentContainingNode:()=>Kte,isJSDocConstructSignature:()=>WO,isJSDocDeprecatedTag:()=>zge,isJSDocEnumTag:()=>zH,isJSDocFunctionType:()=>TL,isJSDocImplementsTag:()=>Zne,isJSDocImportTag:()=>OS,isJSDocIndexSignature:()=>Cre,isJSDocLikeText:()=>iye,isJSDocLink:()=>Q3e,isJSDocLinkCode:()=>Z3e,isJSDocLinkLike:()=>RO,isJSDocLinkPlain:()=>qlt,isJSDocMemberName:()=>wA,isJSDocNameReference:()=>fz,isJSDocNamepathType:()=>Jlt,isJSDocNamespaceBody:()=>Mct,isJSDocNode:()=>LR,isJSDocNonNullableType:()=>Gne,isJSDocNullableType:()=>xL,isJSDocOptionalParameter:()=>Ene,isJSDocOptionalType:()=>Lge,isJSDocOverloadTag:()=>EL,isJSDocOverrideTag:()=>Kne,isJSDocParameterTag:()=>Uy,isJSDocPrivateTag:()=>Bge,isJSDocPropertyLikeTag:()=>rU,isJSDocPropertyTag:()=>tNe,isJSDocProtectedTag:()=>$ge,isJSDocPublicTag:()=>jge,isJSDocReadonlyTag:()=>Uge,isJSDocReturnTag:()=>Qne,isJSDocSatisfiesExpression:()=>oge,isJSDocSatisfiesTag:()=>Xne,isJSDocSeeTag:()=>Wlt,isJSDocSignature:()=>TE,isJSDocTag:()=>MR,isJSDocTemplateTag:()=>c1,isJSDocThisTag:()=>qge,isJSDocThrowsTag:()=>Hlt,isJSDocTypeAlias:()=>n1,isJSDocTypeAssertion:()=>EP,isJSDocTypeExpression:()=>AA,isJSDocTypeLiteral:()=>p3,isJSDocTypeTag:()=>mz,isJSDocTypedefTag:()=>_3,isJSDocUnknownTag:()=>Glt,isJSDocUnknownType:()=>Y3e,isJSDocVariadicType:()=>Hne,isJSXTagName:()=>WR,isJsonEqual:()=>Sne,isJsonSourceFile:()=>h0,isJsxAttribute:()=>NS,isJsxAttributeLike:()=>Gte,isJsxAttributeName:()=>r3e,isJsxAttributes:()=>xP,isJsxCallLike:()=>UPe,isJsxChild:()=>hG,isJsxClosingElement:()=>bP,isJsxClosingFragment:()=>H3e,isJsxElement:()=>PS,isJsxExpression:()=>SL,isJsxFragment:()=>DA,isJsxNamespacedName:()=>Ev,isJsxOpeningElement:()=>Tv,isJsxOpeningFragment:()=>K1,isJsxOpeningLikeElement:()=>Em,isJsxOpeningLikeElementTagName:()=>e7e,isJsxSelfClosingElement:()=>u3,isJsxSpreadAttribute:()=>TF,isJsxTagNameExpression:()=>sU,isJsxText:()=>_F,isJumpStatementTarget:()=>UK,isKeyword:()=>Uh,isKeywordOrPunctuation:()=>Nre,isKnownSymbol:()=>AU,isLabelName:()=>j1e,isLabelOfLabeledStatement:()=>M1e,isLabeledStatement:()=>bC,isLateVisibilityPaintedStatement:()=>cre,isLeftHandSideExpression:()=>jh,isLet:()=>pre,isLineBreak:()=>Dd,isLiteralComputedPropertyDeclarationName:()=>KG,isLiteralExpression:()=>F4,isLiteralExpressionOfObject:()=>nme,isLiteralImportTypeNode:()=>jT,isLiteralKind:()=>nU,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>Noe,isLiteralTypeLiteral:()=>NPe,isLiteralTypeNode:()=>bE,isLocalName:()=>HT,isLogicalOperator:()=>s4e,isLogicalOrCoalescingAssignmentExpression:()=>bhe,isLogicalOrCoalescingAssignmentOperator:()=>OU,isLogicalOrCoalescingBinaryExpression:()=>oH,isLogicalOrCoalescingBinaryOperator:()=>Gre,isMappedTypeNode:()=>o3,isMemberName:()=>Dx,isMetaProperty:()=>s3,isMethodDeclaration:()=>Ep,isMethodOrAccessor:()=>OO,isMethodSignature:()=>G1,isMinusToken:()=>Age,isMissingDeclaration:()=>zlt,isMissingPackageJsonInfo:()=>o8e,isModifier:()=>bc,isModifierKind:()=>eC,isModifierLike:()=>sp,isModuleAugmentationExternal:()=>Dme,isModuleBlock:()=>wS,isModuleBody:()=>FPe,isModuleDeclaration:()=>I_,isModuleExportName:()=>Wne,isModuleExportsAccessExpression:()=>Fx,isModuleIdentifier:()=>qme,isModuleName:()=>yNe,isModuleOrEnumDeclaration:()=>fG,isModuleReference:()=>BPe,isModuleSpecifierLike:()=>Goe,isModuleWithStringLiteralName:()=>sre,isNameOfFunctionDeclaration:()=>z1e,isNameOfModuleDeclaration:()=>U1e,isNamedDeclaration:()=>Vp,isNamedEvaluation:()=>Mg,isNamedEvaluationSource:()=>rhe,isNamedExportBindings:()=>tme,isNamedExports:()=>k0,isNamedImportBindings:()=>_me,isNamedImports:()=>IS,isNamedImportsOrExports:()=>tne,isNamedTupleMember:()=>mL,isNamespaceBody:()=>Lct,isNamespaceExport:()=>Db,isNamespaceExportDeclaration:()=>UH,isNamespaceImport:()=>zx,isNamespaceReexportDeclaration:()=>A6e,isNewExpression:()=>SP,isNewExpressionTarget:()=>Wz,isNewScopeNode:()=>l3e,isNoSubstitutionTemplateLiteral:()=>r3,isNodeArray:()=>HI,isNodeArrayMultiLine:()=>h4e,isNodeDescendantOf:()=>oP,isNodeKind:()=>Ute,isNodeLikeSystem:()=>rO,isNodeModulesDirectory:()=>CO,isNodeWithPossibleHoistedDeclaration:()=>B6e,isNonContextualKeyword:()=>ehe,isNonGlobalAmbientModule:()=>Cme,isNonNullAccess:()=>t3e,isNonNullChain:()=>$te,isNonNullExpression:()=>bF,isNonStaticMethodOrAccessorWithPrivateName:()=>j8e,isNotEmittedStatement:()=>G3e,isNullishCoalesce:()=>eme,isNumber:()=>Kn,isNumericLiteral:()=>qh,isNumericLiteralName:()=>$x,isObjectBindingElementWithoutPropertyName:()=>KK,isObjectBindingOrAssignmentElement:()=>uG,isObjectBindingOrAssignmentPattern:()=>sme,isObjectBindingPattern:()=>$y,isObjectLiteralElement:()=>dme,isObjectLiteralElementLike:()=>MT,isObjectLiteralExpression:()=>Lc,isObjectLiteralMethod:()=>r1,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>mre,isObjectTypeDeclaration:()=>eF,isOmittedExpression:()=>Id,isOptionalChain:()=>xm,isOptionalChainRoot:()=>Y$,isOptionalDeclaration:()=>sF,isOptionalJSDocPropertyLikeTag:()=>CH,isOptionalTypeNode:()=>Une,isOuterExpression:()=>tie,isOutermostOptionalChain:()=>eU,isOverrideModifier:()=>j3e,isPackageJsonInfo:()=>Cie,isPackedArrayLiteral:()=>nge,isParameter:()=>wa,isParameterPropertyDeclaration:()=>ne,isParameterPropertyModifier:()=>iU,isParenthesizedExpression:()=>mh,isParenthesizedTypeNode:()=>i3,isParseTreeNode:()=>I4,isPartOfParameterDeclaration:()=>hA,isPartOfTypeNode:()=>vS,isPartOfTypeOnlyImportOrExportDeclaration:()=>kPe,isPartOfTypeQuery:()=>Tre,isPartiallyEmittedExpression:()=>z3e,isPatternMatch:()=>L1,isPinnedComment:()=>ore,isPlainJsFile:()=>lU,isPlusToken:()=>Dge,isPossiblyTypeArgumentPosition:()=>JK,isPostfixUnaryExpression:()=>Nge,isPrefixUnaryExpression:()=>TA,isPrimitiveLiteralValue:()=>Dne,isPrivateIdentifier:()=>Aa,isPrivateIdentifierClassElementDeclaration:()=>Tm,isPrivateIdentifierPropertyAccessExpression:()=>FR,isPrivateIdentifierSymbol:()=>J6e,isProgramUptoDate:()=>R0e,isPrologueDirective:()=>yS,isPropertyAccessChain:()=>jte,isPropertyAccessEntityNameExpression:()=>sH,isPropertyAccessExpression:()=>no,isPropertyAccessOrQualifiedName:()=>_G,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>IPe,isPropertyAssignment:()=>td,isPropertyDeclaration:()=>ps,isPropertyName:()=>q_,isPropertyNameLiteral:()=>SS,isPropertySignature:()=>Zm,isPrototypeAccess:()=>_C,isPrototypePropertyAssignment:()=>zG,isPunctuation:()=>Yme,isPushOrUnshiftIdentifier:()=>nhe,isQualifiedName:()=>dh,isQuestionDotToken:()=>Bne,isQuestionOrExclamationToken:()=>fNe,isQuestionOrPlusOrMinusToken:()=>gNe,isQuestionToken:()=>yC,isReadonlyKeyword:()=>L3e,isReadonlyKeywordOrPlusOrMinusToken:()=>hNe,isRecognizedTripleSlashComment:()=>bme,isReferenceFileLocation:()=>UL,isReferencedFile:()=>MA,isRegularExpressionLiteral:()=>kge,isRequireCall:()=>$h,isRequireVariableStatement:()=>LG,isRestParameter:()=>Sb,isRestTypeNode:()=>zne,isReturnStatement:()=>gy,isReturnStatementWithFixablePromiseHandler:()=>fae,isRightSideOfAccessExpression:()=>Ehe,isRightSideOfInstanceofExpression:()=>l4e,isRightSideOfPropertyAccess:()=>WL,isRightSideOfQualifiedName:()=>t7e,isRightSideOfQualifiedNameOrPropertyAccess:()=>FU,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>c4e,isRootedDiskPath:()=>qd,isSameEntityName:()=>GR,isSatisfiesExpression:()=>yL,isSemicolonClassElement:()=>q3e,isSetAccessor:()=>hS,isSetAccessorDeclaration:()=>mg,isShiftOperatorOrHigher:()=>tye,isShorthandAmbientModuleSymbol:()=>bG,isShorthandPropertyAssignment:()=>im,isSideEffectImport:()=>uge,isSignedNumericLiteral:()=>Fre,isSimpleCopiableExpression:()=>DP,isSimpleInlineableExpression:()=>FS,isSimpleParameterList:()=>hK,isSingleOrDoubleQuote:()=>MG,isSolutionConfig:()=>Eye,isSourceElement:()=>i3e,isSourceFile:()=>Ta,isSourceFileFromLibrary:()=>rM,isSourceFileJS:()=>ph,isSourceFileNotJson:()=>kre,isSourceMapping:()=>R8e,isSpecialPropertyDeclaration:()=>N6e,isSpreadAssignment:()=>qx,isSpreadElement:()=>E0,isStatement:()=>fa,isStatementButNotDeclaration:()=>mG,isStatementOrBlock:()=>jPe,isStatementWithLocals:()=>QPe,isStatic:()=>oc,isStaticModifier:()=>mF,isString:()=>Ni,isStringANonContextualKeyword:()=>HO,isStringAndEmptyAnonymousObjectIntersection:()=>d7e,isStringDoubleQuoted:()=>Dre,isStringLiteral:()=>Ic,isStringLiteralLike:()=>Sl,isStringLiteralOrJsxExpression:()=>$Pe,isStringLiteralOrTemplate:()=>P7e,isStringOrNumericLiteralLike:()=>jy,isStringOrRegularExpressionOrTemplateLiteral:()=>Q1e,isStringTextContainingNode:()=>ime,isSuperCall:()=>U4,isSuperKeyword:()=>az,isSuperProperty:()=>_g,isSupportedSourceFileName:()=>Khe,isSwitchStatement:()=>pz,isSyntaxList:()=>kL,isSyntheticExpression:()=>Rlt,isSyntheticReference:()=>xF,isTagName:()=>B1e,isTaggedTemplateExpression:()=>xA,isTaggedTemplateTag:()=>XFe,isTemplateExpression:()=>Jne,isTemplateHead:()=>dF,isTemplateLiteral:()=>FO,isTemplateLiteralKind:()=>Xk,isTemplateLiteralToken:()=>TPe,isTemplateLiteralTypeNode:()=>$3e,isTemplateLiteralTypeSpan:()=>Pge,isTemplateMiddle:()=>Cge,isTemplateMiddleOrTemplateTail:()=>zte,isTemplateSpan:()=>vL,isTemplateTail:()=>Mne,isTextWhiteSpaceLike:()=>v7e,isThis:()=>GL,isThisContainerOrFunctionBlock:()=>k6e,isThisIdentifier:()=>pC,isThisInTypeQuery:()=>lP,isThisInitializedDeclaration:()=>Sre,isThisInitializedObjectBindingExpression:()=>D6e,isThisProperty:()=>PG,isThisTypeNode:()=>lz,isThisTypeParameter:()=>XU,isThisTypePredicate:()=>x6e,isThrowStatement:()=>Rge,isToken:()=>PO,isTokenKind:()=>rme,isTraceEnabled:()=>TC,isTransientSymbol:()=>wx,isTrivia:()=>XR,isTryStatement:()=>c3,isTupleTypeNode:()=>yF,isTypeAlias:()=>VG,isTypeAliasDeclaration:()=>s1,isTypeAssertionExpression:()=>qne,isTypeDeclaration:()=>aF,isTypeElement:()=>KI,isTypeKeyword:()=>Qz,isTypeKeywordTokenOrIdentifier:()=>Joe,isTypeLiteralNode:()=>fh,isTypeNode:()=>Wo,isTypeNodeKind:()=>Fhe,isTypeOfExpression:()=>hL,isTypeOnlyExportDeclaration:()=>EPe,isTypeOnlyImportDeclaration:()=>OR,isTypeOnlyImportOrExportDeclaration:()=>cE,isTypeOperatorNode:()=>bA,isTypeParameterDeclaration:()=>Zu,isTypePredicateNode:()=>gF,isTypeQueryNode:()=>gP,isTypeReferenceNode:()=>Ug,isTypeReferenceType:()=>Zte,isTypeUsableAsPropertyName:()=>b0,isUMDExportSymbol:()=>ene,isUnaryExpression:()=>ume,isUnaryExpressionWithWrite:()=>PPe,isUnicodeIdentifierStart:()=>fv,isUnionTypeNode:()=>SE,isUrl:()=>TR,isValidBigIntString:()=>bne,isValidESSymbolDeclaration:()=>v6e,isValidTypeOnlyAliasUseSite:()=>yA,isValueSignatureDeclaration:()=>G4,isVarAwaitUsing:()=>CG,isVarConst:()=>zR,isVarConstLike:()=>m6e,isVarUsing:()=>DG,isVariableDeclaration:()=>Oo,isVariableDeclarationInVariableStatement:()=>dU,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>rP,isVariableDeclarationInitializedToRequire:()=>RG,isVariableDeclarationList:()=>Df,isVariableLike:()=>_U,isVariableStatement:()=>h_,isVoidExpression:()=>SF,isWatchSet:()=>Phe,isWhileStatement:()=>Fge,isWhiteSpaceLike:()=>p0,isWhiteSpaceSingleLine:()=>_0,isWithStatement:()=>J3e,isWriteAccess:()=>YO,isWriteOnlyAccess:()=>Yre,isYieldExpression:()=>BH,jsxModeNeedsExplicitImport:()=>Pve,keywordPart:()=>Wg,last:()=>Sn,lastOrUndefined:()=>Yr,length:()=>te,libMap:()=>lye,libs:()=>cie,lineBreakPart:()=>YL,loadModuleFromGlobalCache:()=>g8e,loadWithModeAwareCache:()=>DK,makeIdentifierFromModuleName:()=>n6e,makeImport:()=>IC,makeStringLiteral:()=>Zz,mangleScopedPackageName:()=>LL,map:()=>Cr,mapAllOrFail:()=>Bo,mapDefined:()=>Wn,mapDefinedIterator:()=>Na,mapEntries:()=>uc,mapIterator:()=>ol,mapOneOrMany:()=>Dve,mapToDisplayParts:()=>PC,matchFiles:()=>Whe,matchPatternOrExact:()=>Zhe,matchedText:()=>D9,matchesExclude:()=>bie,matchesExcludeWorker:()=>xie,maxBy:()=>Q2,maybeBind:()=>ja,maybeSetLocalizedDiagnosticMessages:()=>k4e,memoize:()=>Ef,memoizeOne:()=>pd,min:()=>bx,minAndMax:()=>V4e,missingFileModifiedTime:()=>Wm,modifierToFlag:()=>ZO,modifiersToFlags:()=>TS,moduleExportNameIsDefault:()=>bb,moduleExportNameTextEscaped:()=>YI,moduleExportNameTextUnescaped:()=>aC,moduleOptionDeclaration:()=>INe,moduleResolutionIsEqualTo:()=>HPe,moduleResolutionNameAndModeGetter:()=>Xie,moduleResolutionOptionDeclarations:()=>pye,moduleResolutionSupportsPackageJsonExportsAndImports:()=>sL,moduleResolutionUsesNodeModules:()=>Voe,moduleSpecifierToValidIdentifier:()=>nQ,moduleSpecifiers:()=>QT,moduleSupportsImportAttributes:()=>N4e,moduleSymbolToValidIdentifier:()=>rQ,moveEmitHelpers:()=>T3e,moveRangeEnd:()=>Zre,moveRangePastDecorators:()=>qT,moveRangePastModifiers:()=>ES,moveRangePos:()=>gA,moveSyntheticComments:()=>S3e,mutateMap:()=>BU,mutateMapSkippingNewValues:()=>Lx,needsParentheses:()=>Zoe,needsScopeMarker:()=>Vte,newCaseClauseTracker:()=>lae,newPrivateEnvironment:()=>$8e,noEmitNotification:()=>SK,noEmitSubstitution:()=>Rz,noTransformers:()=>gOe,noTruncationMaximumTruncationLength:()=>hme,nodeCanBeDecorated:()=>OG,nodeCoreModules:()=>pL,nodeHasName:()=>wO,nodeIsDecorated:()=>VR,nodeIsMissing:()=>Op,nodeIsPresent:()=>t1,nodeIsSynthesized:()=>fu,nodeModuleNameResolver:()=>u8e,nodeModulesPathPart:()=>Jx,nodeNextJsonConfigResolver:()=>p8e,nodeOrChildIsDecorated:()=>FG,nodeOverlapsWithStartEnd:()=>Ooe,nodePosToString:()=>$ct,nodeSeenTracker:()=>QL,nodeStartsNewLexicalEnvironment:()=>ihe,noop:()=>zs,noopFileWatcher:()=>JL,normalizePath:()=>Qs,normalizeSlashes:()=>Z_,normalizeSpans:()=>D_,not:()=>_4,notImplemented:()=>Ts,notImplementedResolver:()=>xOe,nullNodeConverters:()=>g3e,nullParenthesizerRules:()=>m3e,nullTransformationContext:()=>xK,objectAllocator:()=>Uf,operatorPart:()=>Yz,optionDeclarations:()=>Q1,optionMapToObject:()=>mie,optionsAffectingProgramStructure:()=>FNe,optionsForBuild:()=>dye,optionsForWatch:()=>wF,optionsHaveChanges:()=>MO,or:()=>jf,orderedRemoveItem:()=>IT,orderedRemoveItemAt:()=>R1,packageIdToPackageName:()=>nre,packageIdToString:()=>cA,parameterIsThisKeyword:()=>uC,parameterNamePart:()=>b7e,parseBaseNodeFactory:()=>ENe,parseBigInt:()=>G4e,parseBuildCommand:()=>zNe,parseCommandLine:()=>$Ne,parseCommandLineWorker:()=>fye,parseConfigFileTextToJson:()=>hye,parseConfigFileWithSystem:()=>sFe,parseConfigHostFromCompilerHostLike:()=>ioe,parseCustomTypeOption:()=>_ie,parseIsolatedEntityName:()=>AF,parseIsolatedJSDocComment:()=>CNe,parseJSDocTypeExpressionForTests:()=>yut,parseJsonConfigFileContent:()=>Hut,parseJsonSourceFileConfigFileContent:()=>oK,parseJsonText:()=>YH,parseListTypeOption:()=>jNe,parseNodeFactory:()=>PA,parseNodeModuleFromPath:()=>lK,parsePackageName:()=>wie,parsePseudoBigInt:()=>HU,parseValidBigInt:()=>tge,pasteEdits:()=>Ibe,patchWriteFileEnsuringDirectory:()=>bR,pathContainsNodeModules:()=>kC,pathIsAbsolute:()=>YD,pathIsBareSpecifier:()=>EO,pathIsRelative:()=>ch,patternText:()=>X8,performIncrementalCompilation:()=>cFe,performance:()=>R9,positionBelongsToNode:()=>q1e,positionIsASICandidate:()=>eae,positionIsSynthesized:()=>bv,positionsAreOnSameLine:()=>v0,preProcessFile:()=>nmt,probablyUsesSemicolons:()=>eQ,processCommentPragmas:()=>sye,processPragmasIntoFields:()=>cye,processTaggedTemplateExpression:()=>l0e,programContainsEsModules:()=>g7e,programContainsModules:()=>h7e,projectReferenceIsEqualTo:()=>gme,propertyNamePart:()=>x7e,pseudoBigIntToString:()=>fP,punctuationPart:()=>wm,pushIfUnique:()=>Zc,quote:()=>rq,quotePreferenceFromString:()=>ave,rangeContainsPosition:()=>HL,rangeContainsPositionExclusive:()=>zK,rangeContainsRange:()=>zh,rangeContainsRangeExclusive:()=>n7e,rangeContainsStartEnd:()=>qK,rangeEndIsOnSameLineAsRangeStart:()=>uH,rangeEndPositionsAreOnSameLine:()=>f4e,rangeEquals:()=>or,rangeIsOnSingleLine:()=>Z4,rangeOfNode:()=>Yhe,rangeOfTypeParameters:()=>ege,rangeOverlapsWithStartEnd:()=>Gz,rangeStartIsOnSameLineAsRangeEnd:()=>m4e,rangeStartPositionsAreOnSameLine:()=>Xre,readBuilderProgram:()=>moe,readConfigFile:()=>nK,readJson:()=>nL,readJsonConfigFile:()=>qNe,readJsonOrUndefined:()=>Che,reduceEachLeadingCommentRange:()=>G$,reduceEachTrailingCommentRange:()=>JI,reduceLeft:()=>nl,reduceLeftIterator:()=>$e,reducePathComponents:()=>iE,refactor:()=>qF,regExpEscape:()=>mlt,regularExpressionFlagToCharacterCode:()=>ZW,relativeComplement:()=>cb,removeAllComments:()=>NH,removeEmitHelper:()=>Plt,removeExtension:()=>xH,removeFileExtension:()=>Qm,removeIgnoredPath:()=>coe,removeMinAndVersionNumbers:()=>C9,removePrefix:()=>Mk,removeSuffix:()=>Lk,removeTrailingDirectorySeparator:()=>dv,repeatString:()=>GK,replaceElement:()=>pc,replaceFirstStar:()=>Y4,resolutionExtensionIsTSOrJson:()=>JU,resolveConfigFileProjectName:()=>d1e,resolveJSModule:()=>s8e,resolveLibrary:()=>Aie,resolveModuleName:()=>h3,resolveModuleNameFromCache:()=>Ept,resolvePackageNameToPackageJson:()=>Aye,resolvePath:()=>mb,resolveProjectReferencePath:()=>RF,resolveTripleslashReference:()=>C0e,resolveTypeReferenceDirective:()=>n8e,resolvingEmptyArray:()=>mme,returnFalse:()=>Yf,returnNoopFileWatcher:()=>qz,returnTrue:()=>AT,returnUndefined:()=>Sx,returnsPromise:()=>Vve,rewriteModuleSpecifier:()=>NF,sameFlatMap:()=>Wi,sameMap:()=>Zo,sameMapping:()=>f_t,scanTokenAtPosition:()=>f6e,scanner:()=>wf,semanticDiagnosticsOptionDeclarations:()=>PNe,serializeCompilerOptions:()=>bye,server:()=>o2t,servicesVersion:()=>Wht,setCommentRange:()=>Y_,setConfigFileInOptions:()=>xye,setConstantValue:()=>x3e,setEmitFlags:()=>Ai,setGetSourceFileAsHashVersioned:()=>foe,setIdentifierAutoGenerate:()=>RH,setIdentifierGeneratedImportReference:()=>C3e,setIdentifierTypeArguments:()=>vE,setInternalEmitFlags:()=>OH,setLocalizedDiagnosticMessages:()=>E4e,setNodeChildren:()=>rNe,setNodeFlags:()=>Q4e,setObjectAllocator:()=>T4e,setOriginalNode:()=>Yi,setParent:()=>xl,setParentRecursive:()=>vA,setPrivateIdentifier:()=>y3,setSnippetElement:()=>Tge,setSourceMapRange:()=>Jc,setStackTraceLimit:()=>OW,setStartsOnNewLine:()=>One,setSyntheticLeadingComments:()=>SA,setSyntheticTrailingComments:()=>uF,setSys:()=>R$,setSysLog:()=>lS,setTextRange:()=>qt,setTextRangeEnd:()=>uL,setTextRangePos:()=>KU,setTextRangePosEnd:()=>xv,setTextRangePosWidth:()=>rge,setTokenSourceMapRange:()=>v3e,setTypeNode:()=>E3e,setUILocale:()=>f$,setValueDeclaration:()=>SU,shouldAllowImportingTsExtension:()=>ML,shouldPreserveConstEnums:()=>dC,shouldRewriteModuleSpecifier:()=>JG,shouldUseUriStyleNodeCoreModules:()=>sae,showModuleSpecifier:()=>S4e,signatureHasRestParameter:()=>Am,signatureToDisplayParts:()=>gve,single:()=>us,singleElementArray:()=>Z2,singleIterator:()=>Sc,singleOrMany:()=>Ja,singleOrUndefined:()=>to,skipAlias:()=>$f,skipConstraint:()=>nve,skipOuterExpressions:()=>Wp,skipParentheses:()=>bl,skipPartiallyEmittedExpressions:()=>q1,skipTrivia:()=>_c,skipTypeChecking:()=>lL,skipTypeCheckingIgnoringNoCheck:()=>W4e,skipTypeParentheses:()=>xU,skipWhile:()=>tO,sliceAfter:()=>Xhe,some:()=>Pt,sortAndDeduplicate:()=>O1,sortAndDeduplicateDiagnostics:()=>nr,sourceFileAffectingCompilerOptions:()=>_ye,sourceFileMayBeEmitted:()=>sP,sourceMapCommentRegExp:()=>Zye,sourceMapCommentRegExpDontCareLineStart:()=>N8e,spacePart:()=>Lp,spanMap:()=>Wu,startEndContainsRange:()=>whe,startEndOverlapsWithStartEnd:()=>Foe,startOnNewLine:()=>Dm,startTracing:()=>$9,startsWith:()=>Ca,startsWithDirectory:()=>rA,startsWithUnderscore:()=>Ive,startsWithUseStrict:()=>lNe,stringContainsAt:()=>j7e,stringToToken:()=>kx,stripQuotes:()=>i1,supportedDeclarationExtensions:()=>gne,supportedJSExtensionsFlat:()=>cL,supportedLocaleDirectories:()=>fS,supportedTSExtensionsFlat:()=>Ghe,supportedTSImplementationExtensions:()=>vH,suppressLeadingAndTrailingTrivia:()=>$g,suppressLeadingTrivia:()=>gge,suppressTrailingTrivia:()=>p3e,symbolEscapedNameNoDefault:()=>Woe,symbolName:()=>vp,symbolNameNoDefault:()=>cve,symbolToDisplayParts:()=>eq,sys:()=>f_,sysLog:()=>Oy,tagNamesAreEquivalent:()=>OA,takeWhile:()=>eO,targetOptionDeclaration:()=>uye,targetToLibMap:()=>Rr,testFormatSettings:()=>kft,textChangeRangeIsUnchanged:()=>Cx,textChangeRangeNewSpan:()=>WI,textChanges:()=>ki,textOrKeywordPart:()=>hve,textPart:()=>Vy,textRangeContainsPositionInclusive:()=>Ao,textRangeContainsTextSpan:()=>Hl,textRangeIntersectsWithTextSpan:()=>Hk,textSpanContainsPosition:()=>jo,textSpanContainsTextRange:()=>su,textSpanContainsTextSpan:()=>Ha,textSpanEnd:()=>Xn,textSpanIntersection:()=>fl,textSpanIntersectsWith:()=>_S,textSpanIntersectsWithPosition:()=>gb,textSpanIntersectsWithTextSpan:()=>Fg,textSpanIsEmpty:()=>Da,textSpanOverlap:()=>$1,textSpanOverlapsWith:()=>dl,textSpansEqual:()=>XL,textToKeywordObj:()=>UI,timestamp:()=>Ml,toArray:()=>Ll,toBuilderFileEmit:()=>QOe,toBuilderStateFileInfoForMultiEmit:()=>KOe,toEditorSettings:()=>pQ,toFileNameLowerCase:()=>lb,toPath:()=>wl,toProgramEmitPending:()=>ZOe,toSorted:()=>pu,tokenIsIdentifierOrKeyword:()=>Bf,tokenIsIdentifierOrKeywordOrGreaterThan:()=>$I,tokenToString:()=>Zs,trace:()=>ns,tracing:()=>hi,tracingEnabled:()=>II,transferSourceFileChildren:()=>nNe,transform:()=>rgt,transformClassFields:()=>Q8e,transformDeclarations:()=>d0e,transformECMAScriptModule:()=>_0e,transformES2015:()=>uOe,transformES2016:()=>lOe,transformES2017:()=>eOe,transformES2018:()=>tOe,transformES2019:()=>rOe,transformES2020:()=>nOe,transformES2021:()=>iOe,transformESDecorators:()=>Y8e,transformESNext:()=>oOe,transformGenerators:()=>pOe,transformImpliedNodeFormatDependentModule:()=>dOe,transformJsx:()=>cOe,transformLegacyDecorators:()=>X8e,transformModule:()=>p0e,transformNamedEvaluation:()=>qg,transformNodes:()=>bK,transformSystemModule:()=>_Oe,transformTypeScript:()=>K8e,transpile:()=>_mt,transpileDeclaration:()=>umt,transpileModule:()=>s5e,transpileOptionValueCompilerOptions:()=>RNe,tryAddToSet:()=>Us,tryAndIgnoreErrors:()=>nae,tryCast:()=>Ci,tryDirectoryExists:()=>rae,tryExtractTSExtension:()=>Qre,tryFileExists:()=>iq,tryGetClassExtendingExpressionWithTypeArguments:()=>xhe,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>The,tryGetDirectories:()=>tae,tryGetExtensionFromPath:()=>Bx,tryGetImportFromModuleSpecifier:()=>qG,tryGetJSDocSatisfiesTypeNode:()=>kne,tryGetModuleNameFromFile:()=>GH,tryGetModuleSpecifierFromDeclaration:()=>qO,tryGetNativePerformanceHooks:()=>nO,tryGetPropertyAccessOrIdentifierToString:()=>cH,tryGetPropertyNameOfBindingOrAssignmentElement:()=>nie,tryGetSourceMappingURL:()=>O8e,tryGetTextOfPropertyName:()=>pU,tryParseJson:()=>lH,tryParsePattern:()=>oF,tryParsePatterns:()=>TH,tryParseRawSourceMap:()=>F8e,tryReadDirectory:()=>Tve,tryReadFile:()=>Sz,tryRemoveDirectoryPrefix:()=>qhe,tryRemoveExtension:()=>J4e,tryRemovePrefix:()=>Y8,tryRemoveSuffix:()=>wT,tscBuildOption:()=>f3,typeAcquisitionDeclarations:()=>uie,typeAliasNamePart:()=>T7e,typeDirectiveIsEqualTo:()=>KPe,typeKeywords:()=>rve,typeParameterNamePart:()=>E7e,typeToDisplayParts:()=>ZK,unchangedPollThresholds:()=>LI,unchangedTextChangeRange:()=>_i,unescapeLeadingUnderscores:()=>oa,unmangleScopedPackageName:()=>pK,unorderedRemoveItem:()=>pb,unprefixedNodeCoreModules:()=>c3e,unreachableCodeIsError:()=>I4e,unsetNodeChildren:()=>Vge,unusedLabelIsError:()=>P4e,unwrapInnermostStatementOfLabel:()=>jme,unwrapParenthesizedExpression:()=>a3e,updateErrorForNoInputFiles:()=>Sie,updateLanguageServiceSourceFile:()=>ySe,updateMissingFilePathsWatch:()=>T0e,updateResolutionField:()=>NL,updateSharedExtendedConfigFileWatcher:()=>Hie,updateSourceFile:()=>oye,updateWatchingWildcardDirectories:()=>EK,usingSingleLineStringWriter:()=>jR,utf16EncodeAsString:()=>Gk,validateLocaleAndSetLanguage:()=>oA,version:()=>L,versionMajorMinor:()=>A,visitArray:()=>Az,visitCommaListElements:()=>fK,visitEachChild:()=>Dn,visitFunctionBody:()=>Jy,visitIterationBody:()=>hh,visitLexicalEnvironment:()=>Qye,visitNode:()=>At,visitNodes:()=>Bn,visitParameterList:()=>Rp,walkUpBindingElementsAndPatterns:()=>Pr,walkUpOuterExpressions:()=>uNe,walkUpParenthesizedExpressions:()=>V1,walkUpParenthesizedTypes:()=>HG,walkUpParenthesizedTypesAndGetParentAndChild:()=>$6e,whitespaceOrMapCommentRegExp:()=>Xye,writeCommentRange:()=>rL,writeFile:()=>Jre,writeFileEnsuringDirectories:()=>mhe,zipWith:()=>xt}),e.exports=S(b);var A="5.9",L="5.9.3",V=(t=>(t[t.LessThan=-1]="LessThan",t[t.EqualTo=0]="EqualTo",t[t.GreaterThan=1]="GreaterThan",t))(V||{}),j=[],ie=new Map;function te(t){return t!==void 0?t.length:0}function X(t,n){if(t!==void 0)for(let a=0;a=0;a--){let c=n(t[a],a);if(c)return c}}function Je(t,n){if(t!==void 0)for(let a=0;a=0;c--){let u=t[c];if(n(u,c))return u}}function hr(t,n,a){if(t===void 0)return-1;for(let c=a??0;c=0;c--)if(n(t[c],c))return c;return-1}function un(t,n,a=Ng){if(t!==void 0){for(let c=0;c{let[_,f]=n(u,c);a.set(_,f)}),a}function Pt(t,n){if(t!==void 0)if(n!==void 0){for(let a=0;a0;return!1}function ou(t,n,a){let c;for(let u=0;ut[f])}function K0(t,n){let a=[];for(let c=0;c0&&c(n,t[f-1]))return!1;if(f0&&$.assertGreaterThanOrEqual(a(n[_],n[_-1]),0);t:for(let f=u;uf&&$.assertGreaterThanOrEqual(a(t[u],t[u-1]),0),a(n[_],t[u])){case-1:c.push(n[_]);continue e;case 0:continue e;case 1:continue t}}return c}function jt(t,n){return n===void 0?t:t===void 0?[n]:(t.push(n),t)}function ea(t,n){return t===void 0?n:n===void 0?t:Zn(t)?Zn(n)?go(t,n):jt(t,n):Zn(n)?jt(n,t):[t,n]}function Ti(t,n){return n<0?t.length+n:n}function En(t,n,a,c){if(n===void 0||n.length===0)return t;if(t===void 0)return n.slice(a,c);a=a===void 0?0:Ti(n,a),c=c===void 0?n.length:Ti(n,c);for(let u=a;ua(t[c],t[u])||Br(c,u))}function pu(t,n){return t.length===0?j:t.slice().sort(n)}function*Tf(t){for(let n=t.length-1;n>=0;n--)yield t[n]}function or(t,n,a,c){for(;at?.at(n):(t,n)=>{if(t!==void 0&&(n=Ti(t,n),n>1),g=a(t[y],y);switch(c(g,n)){case-1:_=y+1;break;case 0:return y;case 1:f=y-1;break}}return~_}function nl(t,n,a,c,u){if(t&&t.length>0){let _=t.length;if(_>0){let f=c===void 0||c<0?0:c,y=u===void 0||f+u>_-1?_-1:f+u,g;for(arguments.length<=2?(g=t[f],f++):g=a;f<=y;)g=n(g,t[f],f),f++;return g}}return a}var eu=Object.prototype.hasOwnProperty;function Ho(t,n){return eu.call(t,n)}function Q0(t,n){return eu.call(t,n)?t[n]:void 0}function Lu(t){let n=[];for(let a in t)eu.call(t,a)&&n.push(a);return n}function aS(t){let n=[];do{let a=Object.getOwnPropertyNames(t);for(let c of a)Zc(n,c)}while(t=Object.getPrototypeOf(t));return n}function sS(t){let n=[];for(let a in t)eu.call(t,a)&&n.push(t[a]);return n}function Jn(t,n){let a=new Array(t);for(let c=0;c100&&a>n.length>>1){let y=n.length-a;n.copyWithin(0,a),n.length=y,a=0}return f}return{enqueue:u,dequeue:_,isEmpty:c}}function Qi(t,n){let a=new Map,c=0;function*u(){for(let f of a.values())Zn(f)?yield*f:yield f}let _={has(f){let y=t(f);if(!a.has(y))return!1;let g=a.get(y);return Zn(g)?un(g,f,n):n(g,f)},add(f){let y=t(f);if(a.has(y)){let g=a.get(y);if(Zn(g))un(g,f,n)||(g.push(f),c++);else{let k=g;n(k,f)||(a.set(y,[k,f]),c++)}}else a.set(y,f),c++;return this},delete(f){let y=t(f);if(!a.has(y))return!1;let g=a.get(y);if(Zn(g)){for(let k=0;ku(),[Symbol.toStringTag]:a[Symbol.toStringTag]};return _}function Zn(t){return Array.isArray(t)}function Ll(t){return Zn(t)?t:[t]}function Ni(t){return typeof t=="string"}function Kn(t){return typeof t=="number"}function Ci(t,n){return t!==void 0&&n(t)?t:void 0}function Ba(t,n){return t!==void 0&&n(t)?t:$.fail(`Invalid cast. The supplied value ${t} did not pass the test '${$.getFunctionName(n)}'.`)}function zs(t){}function Yf(){return!1}function AT(){return!0}function Sx(){}function vl(t){return t}function Wl(t){return t.toLowerCase()}var em=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function lb(t){return em.test(t)?t.replace(em,Wl):t}function Ts(){throw new Error("Not implemented")}function Ef(t){let n;return()=>(t&&(n=t(),t=void 0),n)}function pd(t){let n=new Map;return a=>{let c=`${typeof a}:${a}`,u=n.get(c);return u===void 0&&!n.has(c)&&(u=t(a),n.set(c,u)),u}}var d$=(t=>(t[t.None=0]="None",t[t.Normal=1]="Normal",t[t.Aggressive=2]="Aggressive",t[t.VeryAggressive=3]="VeryAggressive",t))(d$||{});function Ng(t,n){return t===n}function F1(t,n){return t===n||t!==void 0&&n!==void 0&&t.toUpperCase()===n.toUpperCase()}function qm(t,n){return Ng(t,n)}function cg(t,n){return t===n?0:t===void 0?-1:n===void 0?1:tn(a,c)===-1?a:c)}function JD(t,n){return t===n?0:t===void 0?-1:n===void 0?1:(t=t.toUpperCase(),n=n.toUpperCase(),tn?1:0)}function Sm(t,n){return t===n?0:t===void 0?-1:n===void 0?1:(t=t.toLowerCase(),n=n.toLowerCase(),tn?1:0)}function Su(t,n){return cg(t,n)}function ub(t){return t?JD:Su}var VD=(()=>{return n;function t(a,c,u){if(a===c)return 0;if(a===void 0)return-1;if(c===void 0)return 1;let _=u(a,c);return _<0?-1:_>0?1:0}function n(a){let c=new Intl.Collator(a,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(u,_)=>t(u,_,c)}})(),Q8,k9;function Fk(){return k9}function f$(t){k9!==t&&(k9=t,Q8=void 0)}function Rk(t,n){return Q8??(Q8=VD(k9)),Q8(t,n)}function WD(t,n,a,c){return t===n?0:t===void 0?-1:n===void 0?1:c(t[a],n[a])}function cS(t,n){return Br(t?1:0,n?1:0)}function xx(t,n,a){let c=Math.max(2,Math.floor(t.length*.34)),u=Math.floor(t.length*.4)+1,_;for(let f of n){let y=a(f);if(y!==void 0&&Math.abs(y.length-t.length)<=c){if(y===t||y.length<3&&y.toLowerCase()!==t.toLowerCase())continue;let g=Z8(t,y,u-.1);if(g===void 0)continue;$.assert(ga?y-a:1),T=Math.floor(n.length>a+y?a+y:n.length);u[0]=y;let C=y;for(let F=1;Fa)return;let O=c;c=u,u=O}let f=c[n.length];return f>a?void 0:f}function au(t,n,a){let c=t.length-n.length;return c>=0&&(a?F1(t.slice(c),n):t.indexOf(n,c)===c)}function Lk(t,n){return au(t,n)?t.slice(0,t.length-n.length):t}function wT(t,n){return au(t,n)?t.slice(0,t.length-n.length):void 0}function C9(t){let n=t.length;for(let a=n-1;a>0;a--){let c=t.charCodeAt(a);if(c>=48&&c<=57)do--a,c=t.charCodeAt(a);while(a>0&&c>=48&&c<=57);else if(a>4&&(c===110||c===78)){if(--a,c=t.charCodeAt(a),c!==105&&c!==73||(--a,c=t.charCodeAt(a),c!==109&&c!==77))break;--a,c=t.charCodeAt(a)}else break;if(c!==45&&c!==46)break;n=a}return n===t.length?t:t.slice(0,n)}function IT(t,n){for(let a=0;aa===n)}function dte(t,n){for(let a=0;au&&L1(y,a)&&(u=y.prefix.length,c=f)}return c}function Ca(t,n,a){return a?F1(t.slice(0,n.length),n):t.lastIndexOf(n,0)===0}function Mk(t,n){return Ca(t,n)?t.substr(n.length):t}function Y8(t,n,a=vl){return Ca(a(t),a(n))?t.substring(n.length):void 0}function L1({prefix:t,suffix:n},a){return a.length>=t.length+n.length&&Ca(a,t)&&au(a,n)}function EI(t,n){return a=>t(a)&&n(a)}function jf(...t){return(...n)=>{let a;for(let c of t)if(a=c(...n),a)return a;return a}}function _4(t){return(...n)=>!t(...n)}function h$(t){}function Z2(t){return t===void 0?void 0:[t]}function kI(t,n,a,c,u,_){_??(_=zs);let f=0,y=0,g=t.length,k=n.length,T=!1;for(;f(t[t.Off=0]="Off",t[t.Error=1]="Error",t[t.Warning=2]="Warning",t[t.Info=3]="Info",t[t.Verbose=4]="Verbose",t))(I9||{}),$;(t=>{let n=0;t.currentLogLevel=2,t.isDebugging=!1;function a(ft){return t.currentLogLevel<=ft}t.shouldLog=a;function c(ft,Ht){t.loggingHost&&a(ft)&&t.loggingHost.log(ft,Ht)}function u(ft){c(3,ft)}t.log=u,(ft=>{function Ht(Eo){c(1,Eo)}ft.error=Ht;function Wr(Eo){c(2,Eo)}ft.warn=Wr;function ai(Eo){c(3,Eo)}ft.log=ai;function vo(Eo){c(4,Eo)}ft.trace=vo})(u=t.log||(t.log={}));let _={};function f(){return n}t.getAssertionLevel=f;function y(ft){let Ht=n;if(n=ft,ft>Ht)for(let Wr of Lu(_)){let ai=_[Wr];ai!==void 0&&t[Wr]!==ai.assertion&&ft>=ai.level&&(t[Wr]=ai,_[Wr]=void 0)}}t.setAssertionLevel=y;function g(ft){return n>=ft}t.shouldAssert=g;function k(ft,Ht){return g(ft)?!0:(_[Ht]={level:ft,assertion:t[Ht]},t[Ht]=zs,!1)}function T(ft,Ht){debugger;let Wr=new Error(ft?`Debug Failure. ${ft}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Wr,Ht||T),Wr}t.fail=T;function C(ft,Ht,Wr){return T(`${Ht||"Unexpected node."}\r -Node ${ze(ft.kind)} was unexpected.`,Wr||C)}t.failBadSyntaxKind=C;function O(ft,Ht,Wr,ai){ft||(Ht=Ht?`False expression: ${Ht}`:"False expression.",Wr&&(Ht+=`\r -Verbose Debug Information: `+(typeof Wr=="string"?Wr:Wr())),T(Ht,ai||O))}t.assert=O;function F(ft,Ht,Wr,ai,vo){if(ft!==Ht){let Eo=Wr?ai?`${Wr} ${ai}`:Wr:"";T(`Expected ${ft} === ${Ht}. ${Eo}`,vo||F)}}t.assertEqual=F;function M(ft,Ht,Wr,ai){ft>=Ht&&T(`Expected ${ft} < ${Ht}. ${Wr||""}`,ai||M)}t.assertLessThan=M;function U(ft,Ht,Wr){ft>Ht&&T(`Expected ${ft} <= ${Ht}`,Wr||U)}t.assertLessThanOrEqual=U;function J(ft,Ht,Wr){ft= ${Ht}`,Wr||J)}t.assertGreaterThanOrEqual=J;function G(ft,Ht,Wr){ft==null&&T(Ht,Wr||G)}t.assertIsDefined=G;function Z(ft,Ht,Wr){return G(ft,Ht,Wr||Z),ft}t.checkDefined=Z;function Q(ft,Ht,Wr){for(let ai of ft)G(ai,Ht,Wr||Q)}t.assertEachIsDefined=Q;function re(ft,Ht,Wr){return Q(ft,Ht,Wr||re),ft}t.checkEachDefined=re;function ae(ft,Ht="Illegal value:",Wr){let ai=typeof ft=="object"&&Ho(ft,"kind")&&Ho(ft,"pos")?"SyntaxKind: "+ze(ft.kind):JSON.stringify(ft);return T(`${Ht} ${ai}`,Wr||ae)}t.assertNever=ae;function _e(ft,Ht,Wr,ai){k(1,"assertEachNode")&&O(Ht===void 0||ht(ft,Ht),Wr||"Unexpected node.",()=>`Node array did not pass test '${Ce(Ht)}'.`,ai||_e)}t.assertEachNode=_e;function me(ft,Ht,Wr,ai){k(1,"assertNode")&&O(ft!==void 0&&(Ht===void 0||Ht(ft)),Wr||"Unexpected node.",()=>`Node ${ze(ft?.kind)} did not pass test '${Ce(Ht)}'.`,ai||me)}t.assertNode=me;function le(ft,Ht,Wr,ai){k(1,"assertNotNode")&&O(ft===void 0||Ht===void 0||!Ht(ft),Wr||"Unexpected node.",()=>`Node ${ze(ft.kind)} should not have passed test '${Ce(Ht)}'.`,ai||le)}t.assertNotNode=le;function Oe(ft,Ht,Wr,ai){k(1,"assertOptionalNode")&&O(Ht===void 0||ft===void 0||Ht(ft),Wr||"Unexpected node.",()=>`Node ${ze(ft?.kind)} did not pass test '${Ce(Ht)}'.`,ai||Oe)}t.assertOptionalNode=Oe;function be(ft,Ht,Wr,ai){k(1,"assertOptionalToken")&&O(Ht===void 0||ft===void 0||ft.kind===Ht,Wr||"Unexpected node.",()=>`Node ${ze(ft?.kind)} was not a '${ze(Ht)}' token.`,ai||be)}t.assertOptionalToken=be;function ue(ft,Ht,Wr){k(1,"assertMissingNode")&&O(ft===void 0,Ht||"Unexpected node.",()=>`Node ${ze(ft.kind)} was unexpected'.`,Wr||ue)}t.assertMissingNode=ue;function De(ft){}t.type=De;function Ce(ft){if(typeof ft!="function")return"";if(Ho(ft,"name"))return ft.name;{let Ht=Function.prototype.toString.call(ft),Wr=/^function\s+([\w$]+)\s*\(/.exec(Ht);return Wr?Wr[1]:""}}t.getFunctionName=Ce;function Ae(ft){return`{ name: ${oa(ft.escapedName)}; flags: ${ke(ft.flags)}; declarations: ${Cr(ft.declarations,Ht=>ze(Ht.kind))} }`}t.formatSymbol=Ae;function Fe(ft=0,Ht,Wr){let ai=de(Ht);if(ft===0)return ai.length>0&&ai[0][0]===0?ai[0][1]:"0";if(Wr){let vo=[],Eo=ft;for(let[ya,Ls]of ai){if(ya>ft)break;ya!==0&&ya&ft&&(vo.push(Ls),Eo&=~ya)}if(Eo===0)return vo.join("|")}else for(let[vo,Eo]of ai)if(vo===ft)return Eo;return ft.toString()}t.formatEnum=Fe;let Be=new Map;function de(ft){let Ht=Be.get(ft);if(Ht)return Ht;let Wr=[];for(let vo in ft){let Eo=ft[vo];typeof Eo=="number"&&Wr.push([Eo,vo])}let ai=pu(Wr,(vo,Eo)=>Br(vo[0],Eo[0]));return Be.set(ft,ai),ai}function ze(ft){return Fe(ft,z9,!1)}t.formatSyntaxKind=ze;function ut(ft){return Fe(ft,hR,!1)}t.formatSnippetKind=ut;function je(ft){return Fe(ft,m4,!1)}t.formatScriptKind=je;function ve(ft){return Fe(ft,sO,!0)}t.formatNodeFlags=ve;function Le(ft){return Fe(ft,fO,!0)}t.formatNodeCheckFlags=Le;function Ve(ft){return Fe(ft,cO,!0)}t.formatModifierFlags=Ve;function nt(ft){return Fe(ft,vO,!0)}t.formatTransformFlags=nt;function It(ft){return Fe(ft,SO,!0)}t.formatEmitFlags=It;function ke(ft){return Fe(ft,_O,!0)}t.formatSymbolFlags=ke;function _t(ft){return Fe(ft,NI,!0)}t.formatTypeFlags=_t;function Se(ft){return Fe(ft,Vm,!0)}t.formatSignatureFlags=Se;function tt(ft){return Fe(ft,mO,!0)}t.formatObjectFlags=tt;function Qe(ft){return Fe(ft,PI,!0)}t.formatFlowFlags=Qe;function We(ft){return Fe(ft,q9,!0)}t.formatRelationComparisonResult=We;function St(ft){return Fe(ft,Vye,!0)}t.formatCheckMode=St;function Kt(ft){return Fe(ft,Wye,!0)}t.formatSignatureCheckMode=Kt;function Sr(ft){return Fe(ft,Jye,!0)}t.formatTypeFacts=Sr;let nn=!1,Nn;function $t(ft){"__debugFlowFlags"in ft||Object.defineProperties(ft,{__tsDebuggerDisplay:{value(){let Ht=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",Wr=this.flags&-2048;return`${Ht}${Wr?` (${Qe(Wr)})`:""}`}},__debugFlowFlags:{get(){return Fe(this.flags,PI,!0)}},__debugToString:{value(){return $o(this)}}})}function Dr(ft){return nn&&(typeof Object.setPrototypeOf=="function"?(Nn||(Nn=Object.create(Object.prototype),$t(Nn)),Object.setPrototypeOf(ft,Nn)):$t(ft)),ft}t.attachFlowNodeDebugInfo=Dr;let Qn;function Ko(ft){"__tsDebuggerDisplay"in ft||Object.defineProperties(ft,{__tsDebuggerDisplay:{value(Ht){return Ht=String(Ht).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${Ht}`}}})}function is(ft){nn&&(typeof Object.setPrototypeOf=="function"?(Qn||(Qn=Object.create(Array.prototype),Ko(Qn)),Object.setPrototypeOf(ft,Qn)):Ko(ft))}t.attachNodeArrayDebugInfo=is;function sr(){if(nn)return;let ft=new WeakMap,Ht=new WeakMap;Object.defineProperties(Uf.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let ai=this.flags&33554432?"TransientSymbol":"Symbol",vo=this.flags&-33554433;return`${ai} '${vp(this)}'${vo?` (${ke(vo)})`:""}`}},__debugFlags:{get(){return ke(this.flags)}}}),Object.defineProperties(Uf.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let ai=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",vo=this.flags&524288?this.objectFlags&-1344:0;return`${ai}${this.symbol?` '${vp(this.symbol)}'`:""}${vo?` (${tt(vo)})`:""}`}},__debugFlags:{get(){return _t(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?tt(this.objectFlags):""}},__debugTypeToString:{value(){let ai=ft.get(this);return ai===void 0&&(ai=this.checker.typeToString(this),ft.set(this,ai)),ai}}}),Object.defineProperties(Uf.getSignatureConstructor().prototype,{__debugFlags:{get(){return Se(this.flags)}},__debugSignatureToString:{value(){var ai;return(ai=this.checker)==null?void 0:ai.signatureToString(this)}}});let Wr=[Uf.getNodeConstructor(),Uf.getIdentifierConstructor(),Uf.getTokenConstructor(),Uf.getSourceFileConstructor()];for(let ai of Wr)Ho(ai.prototype,"__debugKind")||Object.defineProperties(ai.prototype,{__tsDebuggerDisplay:{value(){return`${ap(this)?"GeneratedIdentifier":ct(this)?`Identifier '${Zi(this)}'`:Aa(this)?`PrivateIdentifier '${Zi(this)}'`:Ic(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:qh(this)?`NumericLiteral ${this.text}`:dL(this)?`BigIntLiteral ${this.text}n`:Zu(this)?"TypeParameterDeclaration":wa(this)?"ParameterDeclaration":kp(this)?"ConstructorDeclaration":T0(this)?"GetAccessorDeclaration":mg(this)?"SetAccessorDeclaration":hF(this)?"CallSignatureDeclaration":cz(this)?"ConstructSignatureDeclaration":vC(this)?"IndexSignatureDeclaration":gF(this)?"TypePredicateNode":Ug(this)?"TypeReferenceNode":Cb(this)?"FunctionTypeNode":fL(this)?"ConstructorTypeNode":gP(this)?"TypeQueryNode":fh(this)?"TypeLiteralNode":jH(this)?"ArrayTypeNode":yF(this)?"TupleTypeNode":Une(this)?"OptionalTypeNode":zne(this)?"RestTypeNode":SE(this)?"UnionTypeNode":vF(this)?"IntersectionTypeNode":yP(this)?"ConditionalTypeNode":n3(this)?"InferTypeNode":i3(this)?"ParenthesizedTypeNode":lz(this)?"ThisTypeNode":bA(this)?"TypeOperatorNode":vP(this)?"IndexedAccessTypeNode":o3(this)?"MappedTypeNode":bE(this)?"LiteralTypeNode":mL(this)?"NamedTupleMember":AS(this)?"ImportTypeNode":ze(this.kind)}${this.flags?` (${ve(this.flags)})`:""}`}},__debugKind:{get(){return ze(this.kind)}},__debugNodeFlags:{get(){return ve(this.flags)}},__debugModifierFlags:{get(){return Ve(a4e(this))}},__debugTransformFlags:{get(){return nt(this.transformFlags)}},__debugIsParseTreeNode:{get(){return I4(this)}},__debugEmitFlags:{get(){return It(Xc(this))}},__debugGetText:{value(vo){if(fu(this))return"";let Eo=Ht.get(this);if(Eo===void 0){let ya=vs(this),Ls=ya&&Pn(ya);Eo=Ls?XI(Ls,ya,vo):"",Ht.set(this,Eo)}return Eo}}});nn=!0}t.enableDebugInfo=sr;function uo(ft){let Ht=ft&7,Wr=Ht===0?"in out":Ht===3?"[bivariant]":Ht===2?"in":Ht===1?"out":Ht===4?"[independent]":"";return ft&8?Wr+=" (unmeasurable)":ft&16&&(Wr+=" (unreliable)"),Wr}t.formatVariance=uo;class Wa{__debugToString(){var Ht;switch(this.kind){case 3:return((Ht=this.debugInfo)==null?void 0:Ht.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return xt(this.sources,this.targets||Cr(this.sources,()=>"any"),(Wr,ai)=>`${Wr.__debugTypeToString()} -> ${typeof ai=="string"?ai:ai.__debugTypeToString()}`).join(", ");case 2:return xt(this.sources,this.targets,(Wr,ai)=>`${Wr.__debugTypeToString()} -> ${ai().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` -`).join(` - `)} -m2: ${this.mapper2.__debugToString().split(` -`).join(` - `)}`;default:return ae(this)}}}t.DebugTypeMapper=Wa;function oo(ft){return t.isDebugging?Object.setPrototypeOf(ft,Wa.prototype):ft}t.attachDebugPrototypeIfDebug=oo;function Oi(ft){return console.log($o(ft))}t.printControlFlowGraph=Oi;function $o(ft){let Ht=-1;function Wr(pe){return pe.id||(pe.id=Ht,Ht--),pe.id}let ai;(pe=>{pe.lr="\u2500",pe.ud="\u2502",pe.dr="\u256D",pe.dl="\u256E",pe.ul="\u256F",pe.ur="\u2570",pe.udr="\u251C",pe.udl="\u2524",pe.dlr="\u252C",pe.ulr="\u2534",pe.udlr="\u256B"})(ai||(ai={}));let vo;(pe=>{pe[pe.None=0]="None",pe[pe.Up=1]="Up",pe[pe.Down=2]="Down",pe[pe.Left=4]="Left",pe[pe.Right=8]="Right",pe[pe.UpDown=3]="UpDown",pe[pe.LeftRight=12]="LeftRight",pe[pe.UpLeft=5]="UpLeft",pe[pe.UpRight=9]="UpRight",pe[pe.DownLeft=6]="DownLeft",pe[pe.DownRight=10]="DownRight",pe[pe.UpDownLeft=7]="UpDownLeft",pe[pe.UpDownRight=11]="UpDownRight",pe[pe.UpLeftRight=13]="UpLeftRight",pe[pe.DownLeftRight=14]="DownLeftRight",pe[pe.UpDownLeftRight=15]="UpDownLeftRight",pe[pe.NoChildren=16]="NoChildren"})(vo||(vo={}));let Eo=2032,ya=882,Ls=Object.create(null),yc=[],Cn=[],Es=ar(ft,new Set);for(let pe of yc)pe.text=Ye(pe.flowNode,pe.circular),Zt(pe);let Dt=Qt(Es),ur=pr(Dt);return Et(Es,0),er();function Ee(pe){return!!(pe.flags&128)}function Bt(pe){return!!(pe.flags&12)&&!!pe.antecedent}function ye(pe){return!!(pe.flags&Eo)}function et(pe){return!!(pe.flags&ya)}function Ct(pe){let Gt=[];for(let mr of pe.edges)mr.source===pe&&Gt.push(mr.target);return Gt}function Ot(pe){let Gt=[];for(let mr of pe.edges)mr.target===pe&&Gt.push(mr.source);return Gt}function ar(pe,Gt){let mr=Wr(pe),Ge=Ls[mr];if(Ge&&Gt.has(pe))return Ge.circular=!0,Ge={id:-1,flowNode:pe,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},yc.push(Ge),Ge;if(Gt.add(pe),!Ge)if(Ls[mr]=Ge={id:mr,flowNode:pe,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},yc.push(Ge),Bt(pe))for(let Mt of pe.antecedent)at(Ge,Mt,Gt);else ye(pe)&&at(Ge,pe.antecedent,Gt);return Gt.delete(pe),Ge}function at(pe,Gt,mr){let Ge=ar(Gt,mr),Mt={source:pe,target:Ge};Cn.push(Mt),pe.edges.push(Mt),Ge.edges.push(Mt)}function Zt(pe){if(pe.level!==-1)return pe.level;let Gt=0;for(let mr of Ot(pe))Gt=Math.max(Gt,Zt(mr)+1);return pe.level=Gt}function Qt(pe){let Gt=0;for(let mr of Ct(pe))Gt=Math.max(Gt,Qt(mr));return Gt+1}function pr(pe){let Gt=Y(Array(pe),0);for(let mr of yc)Gt[mr.level]=Math.max(Gt[mr.level],mr.text.length);return Gt}function Et(pe,Gt){if(pe.lane===-1){pe.lane=Gt,pe.endLane=Gt;let mr=Ct(pe);for(let Ge=0;Ge0&&Gt++;let Mt=mr[Ge];Et(Mt,Gt),Mt.endLane>pe.endLane&&(Gt=Mt.endLane)}pe.endLane=Gt}}function xr(pe){if(pe&2)return"Start";if(pe&4)return"Branch";if(pe&8)return"Loop";if(pe&16)return"Assignment";if(pe&32)return"True";if(pe&64)return"False";if(pe&128)return"SwitchClause";if(pe&256)return"ArrayMutation";if(pe&512)return"Call";if(pe&1024)return"ReduceLabel";if(pe&1)return"Unreachable";throw new Error}function gi(pe){let Gt=Pn(pe);return XI(Gt,pe,!1)}function Ye(pe,Gt){let mr=xr(pe.flags);if(Gt&&(mr=`${mr}#${Wr(pe)}`),Ee(pe)){let Ge=[],{switchStatement:Mt,clauseStart:Ir,clauseEnd:ii}=pe.node;for(let Rn=Ir;Rnii.lane)+1,mr=Y(Array(Gt),""),Ge=ur.map(()=>Array(Gt)),Mt=ur.map(()=>Y(Array(Gt),0));for(let ii of yc){Ge[ii.level][ii.lane]=ii;let Rn=Ct(ii);for(let Rt=0;Rt0&&(_r|=1),Rt0&&(_r|=1),Rt0?Mt[ii-1][Rn]:0,Rt=Rn>0?Mt[ii][Rn-1]:0,rr=Mt[ii][Rn];rr||(zn&8&&(rr|=12),Rt&2&&(rr|=3),Mt[ii][Rn]=rr)}for(let ii=0;ii0?pe.repeat(Gt):"";let mr="";for(;mr.length=0,"Invalid argument: major"),$.assert(a>=0,"Invalid argument: minor"),$.assert(c>=0,"Invalid argument: patch");let f=u?Zn(u)?u:u.split("."):j,y=_?Zn(_)?_:_.split("."):j;$.assert(ht(f,g=>g$.test(g)),"Invalid argument: prerelease"),$.assert(ht(y,g=>kW.test(g)),"Invalid argument: build"),this.major=n,this.minor=a,this.patch=c,this.prerelease=f,this.build=y}static tryParse(n){let a=CI(n);if(!a)return;let{major:c,minor:u,patch:_,prerelease:f,build:y}=a;return new _te(c,u,_,f,y)}compareTo(n){return this===n?0:n===void 0?1:Br(this.major,n.major)||Br(this.minor,n.minor)||Br(this.patch,n.patch)||fte(this.prerelease,n.prerelease)}increment(n){switch(n){case"major":return new _te(this.major+1,0,0);case"minor":return new _te(this.major,this.minor+1,0);case"patch":return new _te(this.major,this.minor,this.patch+1);default:return $.assertNever(n)}}with(n){let{major:a=this.major,minor:c=this.minor,patch:u=this.patch,prerelease:_=this.prerelease,build:f=this.build}=n;return new _te(a,c,u,_,f)}toString(){let n=`${this.major}.${this.minor}.${this.patch}`;return Pt(this.prerelease)&&(n+=`-${this.prerelease.join(".")}`),Pt(this.build)&&(n+=`+${this.build.join(".")}`),n}};Bk.zero=new Bk(0,0,0,["0"]);var Iy=Bk;function CI(t){let n=P9.exec(t);if(!n)return;let[,a,c="0",u="0",_="",f=""]=n;if(!(_&&!_b.test(_))&&!(f&&!jk.test(f)))return{major:parseInt(a,10),minor:parseInt(c,10),patch:parseInt(u,10),prerelease:_,build:f}}function fte(t,n){if(t===n)return 0;if(t.length===0)return n.length===0?0:1;if(n.length===0)return-1;let a=Math.min(t.length,n.length);for(let c=0;c=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function PT(t){let n=[];for(let a of t.trim().split(CW)){if(!a)continue;let c=[];a=a.trim();let u=AW.exec(a);if(u){if(!IW(u[1],u[2],c))return}else for(let _ of a.split(mte)){let f=wW.exec(_.trim());if(!f||!hte(f[1],f[2],c))return}n.push(c)}return n}function DI(t){let n=DW.exec(t);if(!n)return;let[,a,c="*",u="*",_,f]=n;return{version:new Iy(bm(a)?0:parseInt(a,10),bm(a)||bm(c)?0:parseInt(c,10),bm(a)||bm(c)||bm(u)?0:parseInt(u,10),_,f),major:a,minor:c,patch:u}}function IW(t,n,a){let c=DI(t);if(!c)return!1;let u=DI(n);return u?(bm(c.major)||a.push(lg(">=",c.version)),bm(u.major)||a.push(bm(u.minor)?lg("<",u.version.increment("major")):bm(u.patch)?lg("<",u.version.increment("minor")):lg("<=",u.version)),!0):!1}function hte(t,n,a){let c=DI(n);if(!c)return!1;let{version:u,major:_,minor:f,patch:y}=c;if(bm(_))(t==="<"||t===">")&&a.push(lg("<",Iy.zero));else switch(t){case"~":a.push(lg(">=",u)),a.push(lg("<",u.increment(bm(f)?"major":"minor")));break;case"^":a.push(lg(">=",u)),a.push(lg("<",u.increment(u.major>0||bm(f)?"major":u.minor>0||bm(y)?"minor":"patch")));break;case"<":case">=":a.push(bm(f)||bm(y)?lg(t,u.with({prerelease:"0"})):lg(t,u));break;case"<=":case">":a.push(bm(f)?lg(t==="<="?"<":">=",u.increment("major").with({prerelease:"0"})):bm(y)?lg(t==="<="?"<":">=",u.increment("minor").with({prerelease:"0"})):lg(t,u));break;case"=":case void 0:bm(f)||bm(y)?(a.push(lg(">=",u.with({prerelease:"0"}))),a.push(lg("<",u.increment(bm(f)?"major":"minor").with({prerelease:"0"})))):a.push(lg("=",u));break;default:return!1}return!0}function bm(t){return t==="*"||t==="x"||t==="X"}function lg(t,n){return{operator:t,operand:n}}function PW(t,n){if(n.length===0)return!0;for(let a of n)if(N9(t,a))return!0;return!1}function N9(t,n){for(let a of n)if(!y$(t,a.operator,a.operand))return!1;return!0}function y$(t,n,a){let c=t.compareTo(a);switch(n){case"<":return c<0;case"<=":return c<=0;case">":return c>0;case">=":return c>=0;case"=":return c===0;default:return $.assertNever(n)}}function gte(t){return Cr(t,v$).join(" || ")||"*"}function v$(t){return Cr(t,yte).join(" ")}function yte(t){return`${t.operator}${t.operand}`}function NW(){if(rO())try{let{performance:t}=a0("perf_hooks");if(t)return{shouldWriteNativeEvents:!1,performance:t}}catch{}if(typeof performance=="object")return{shouldWriteNativeEvents:!0,performance}}function vte(){let t=NW();if(!t)return;let{shouldWriteNativeEvents:n,performance:a}=t,c={shouldWriteNativeEvents:n,performance:void 0,performanceTime:void 0};return typeof a.timeOrigin=="number"&&typeof a.now=="function"&&(c.performanceTime=a),c.performanceTime&&typeof a.mark=="function"&&typeof a.measure=="function"&&typeof a.clearMarks=="function"&&typeof a.clearMeasures=="function"&&(c.performance=a),c}var O9=vte(),F9=O9?.performanceTime;function nO(){return O9}var Ml=F9?()=>F9.now():Date.now,R9={};d(R9,{clearMarks:()=>T$,clearMeasures:()=>x$,createTimer:()=>iO,createTimerIf:()=>S$,disable:()=>B9,enable:()=>aO,forEachMark:()=>j9,forEachMeasure:()=>M9,getCount:()=>b$,getDuration:()=>fb,isEnabled:()=>wI,mark:()=>jl,measure:()=>Jm,nullTimer:()=>oO});var Py,db;function S$(t,n,a,c){return t?iO(n,a,c):oO}function iO(t,n,a){let c=0;return{enter:u,exit:_};function u(){++c===1&&jl(n)}function _(){--c===0?(jl(a),Jm(t,n,a)):c<0&&$.fail("enter/exit count does not match.")}}var oO={enter:zs,exit:zs},QD=!1,L9=Ml(),Z0=new Map,AI=new Map,$k=new Map;function jl(t){if(QD){let n=AI.get(t)??0;AI.set(t,n+1),Z0.set(t,Ml()),db?.mark(t),typeof onProfilerEvent=="function"&&onProfilerEvent(t)}}function Jm(t,n,a){if(QD){let c=(a!==void 0?Z0.get(a):void 0)??Ml(),u=(n!==void 0?Z0.get(n):void 0)??L9,_=$k.get(t)||0;$k.set(t,_+(c-u)),db?.measure(t,n,a)}}function b$(t){return AI.get(t)||0}function fb(t){return $k.get(t)||0}function M9(t){$k.forEach((n,a)=>t(a,n))}function j9(t){Z0.forEach((n,a)=>t(a))}function x$(t){t!==void 0?$k.delete(t):$k.clear(),db?.clearMeasures(t)}function T$(t){t!==void 0?(AI.delete(t),Z0.delete(t)):(AI.clear(),Z0.clear()),db?.clearMarks(t)}function wI(){return QD}function aO(t=f_){var n;return QD||(QD=!0,Py||(Py=nO()),Py?.performance&&(L9=Py.performance.timeOrigin,(Py.shouldWriteNativeEvents||(n=t?.cpuProfilingEnabled)!=null&&n.call(t)||t?.debugMode)&&(db=Py.performance))),!0}function B9(){QD&&(Z0.clear(),AI.clear(),$k.clear(),db=void 0,QD=!1)}var hi,II;(t=>{let n,a=0,c=0,u,_=[],f,y=[];function g(me,le,Oe){if($.assert(!hi,"Tracing already started"),n===void 0)try{n=a0("fs")}catch(Ae){throw new Error(`tracing requires having fs -(original error: ${Ae.message||Ae})`)}u=me,_.length=0,f===void 0&&(f=Xi(le,"legend.json")),n.existsSync(le)||n.mkdirSync(le,{recursive:!0});let be=u==="build"?`.${process.pid}-${++a}`:u==="server"?`.${process.pid}`:"",ue=Xi(le,`trace${be}.json`),De=Xi(le,`types${be}.json`);y.push({configFilePath:Oe,tracePath:ue,typesPath:De}),c=n.openSync(ue,"w"),hi=t;let Ce={cat:"__metadata",ph:"M",ts:1e3*Ml(),pid:1,tid:1};n.writeSync(c,`[ -`+[{name:"process_name",args:{name:"tsc"},...Ce},{name:"thread_name",args:{name:"Main"},...Ce},{name:"TracingStartedInBrowser",...Ce,cat:"disabled-by-default-devtools.timeline"}].map(Ae=>JSON.stringify(Ae)).join(`, -`))}t.startTracing=g;function k(){$.assert(hi,"Tracing is not in progress"),$.assert(!!_.length==(u!=="server")),n.writeSync(c,` -] -`),n.closeSync(c),hi=void 0,_.length?ae(_):y[y.length-1].typesPath=void 0}t.stopTracing=k;function T(me){u!=="server"&&_.push(me)}t.recordType=T;let C;(me=>{me.Parse="parse",me.Program="program",me.Bind="bind",me.Check="check",me.CheckTypes="checkTypes",me.Emit="emit",me.Session="session"})(C=t.Phase||(t.Phase={}));function O(me,le,Oe){Q("I",me,le,Oe,'"s":"g"')}t.instant=O;let F=[];function M(me,le,Oe,be=!1){be&&Q("B",me,le,Oe),F.push({phase:me,name:le,args:Oe,time:1e3*Ml(),separateBeginAndEnd:be})}t.push=M;function U(me){$.assert(F.length>0),Z(F.length-1,1e3*Ml(),me),F.length--}t.pop=U;function J(){let me=1e3*Ml();for(let le=F.length-1;le>=0;le--)Z(le,me);F.length=0}t.popAll=J;let G=1e3*10;function Z(me,le,Oe){let{phase:be,name:ue,args:De,time:Ce,separateBeginAndEnd:Ae}=F[me];Ae?($.assert(!Oe,"`results` are not supported for events with `separateBeginAndEnd`"),Q("E",be,ue,De,void 0,le)):G-Ce%G<=le-Ce&&Q("X",be,ue,{...De,results:Oe},`"dur":${le-Ce}`,Ce)}function Q(me,le,Oe,be,ue,De=1e3*Ml()){u==="server"&&le==="checkTypes"||(jl("beginTracing"),n.writeSync(c,`, -{"pid":1,"tid":1,"ph":"${me}","cat":"${le}","ts":${De},"name":"${Oe}"`),ue&&n.writeSync(c,`,${ue}`),be&&n.writeSync(c,`,"args":${JSON.stringify(be)}`),n.writeSync(c,"}"),jl("endTracing"),Jm("Tracing","beginTracing","endTracing"))}function re(me){let le=Pn(me);return le?{path:le.path,start:Oe(qs(le,me.pos)),end:Oe(qs(le,me.end))}:void 0;function Oe(be){return{line:be.line+1,character:be.character+1}}}function ae(me){var le,Oe,be,ue,De,Ce,Ae,Fe,Be,de,ze,ut,je,ve,Le,Ve,nt,It,ke;jl("beginDumpTypes");let _t=y[y.length-1].typesPath,Se=n.openSync(_t,"w"),tt=new Map;n.writeSync(Se,"[");let Qe=me.length;for(let We=0;WeOi.id),referenceLocation:re(oo.node)}}let Dr={};if(St.flags&16777216){let oo=St;Dr={conditionalCheckType:(Ce=oo.checkType)==null?void 0:Ce.id,conditionalExtendsType:(Ae=oo.extendsType)==null?void 0:Ae.id,conditionalTrueType:((Fe=oo.resolvedTrueType)==null?void 0:Fe.id)??-1,conditionalFalseType:((Be=oo.resolvedFalseType)==null?void 0:Be.id)??-1}}let Qn={};if(St.flags&33554432){let oo=St;Qn={substitutionBaseType:(de=oo.baseType)==null?void 0:de.id,constraintType:(ze=oo.constraint)==null?void 0:ze.id}}let Ko={};if(Kt&1024){let oo=St;Ko={reverseMappedSourceType:(ut=oo.source)==null?void 0:ut.id,reverseMappedMappedType:(je=oo.mappedType)==null?void 0:je.id,reverseMappedConstraintType:(ve=oo.constraintType)==null?void 0:ve.id}}let is={};if(Kt&256){let oo=St;is={evolvingArrayElementType:oo.elementType.id,evolvingArrayFinalType:(Le=oo.finalArrayType)==null?void 0:Le.id}}let sr,uo=St.checker.getRecursionIdentity(St);uo&&(sr=tt.get(uo),sr||(sr=tt.size,tt.set(uo,sr)));let Wa={id:St.id,intrinsicName:St.intrinsicName,symbolName:Sr?.escapedName&&oa(Sr.escapedName),recursionId:sr,isTuple:Kt&8?!0:void 0,unionTypes:St.flags&1048576?(Ve=St.types)==null?void 0:Ve.map(oo=>oo.id):void 0,intersectionTypes:St.flags&2097152?St.types.map(oo=>oo.id):void 0,aliasTypeArguments:(nt=St.aliasTypeArguments)==null?void 0:nt.map(oo=>oo.id),keyofType:St.flags&4194304?(It=St.type)==null?void 0:It.id:void 0,...Nn,...$t,...Dr,...Qn,...Ko,...is,destructuringPattern:re(St.pattern),firstDeclaration:re((ke=Sr?.declarations)==null?void 0:ke[0]),flags:$.formatTypeFlags(St.flags).split("|"),display:nn};n.writeSync(Se,JSON.stringify(Wa)),We(t[t.Unknown=0]="Unknown",t[t.EndOfFileToken=1]="EndOfFileToken",t[t.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",t[t.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",t[t.NewLineTrivia=4]="NewLineTrivia",t[t.WhitespaceTrivia=5]="WhitespaceTrivia",t[t.ShebangTrivia=6]="ShebangTrivia",t[t.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",t[t.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",t[t.NumericLiteral=9]="NumericLiteral",t[t.BigIntLiteral=10]="BigIntLiteral",t[t.StringLiteral=11]="StringLiteral",t[t.JsxText=12]="JsxText",t[t.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",t[t.RegularExpressionLiteral=14]="RegularExpressionLiteral",t[t.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",t[t.TemplateHead=16]="TemplateHead",t[t.TemplateMiddle=17]="TemplateMiddle",t[t.TemplateTail=18]="TemplateTail",t[t.OpenBraceToken=19]="OpenBraceToken",t[t.CloseBraceToken=20]="CloseBraceToken",t[t.OpenParenToken=21]="OpenParenToken",t[t.CloseParenToken=22]="CloseParenToken",t[t.OpenBracketToken=23]="OpenBracketToken",t[t.CloseBracketToken=24]="CloseBracketToken",t[t.DotToken=25]="DotToken",t[t.DotDotDotToken=26]="DotDotDotToken",t[t.SemicolonToken=27]="SemicolonToken",t[t.CommaToken=28]="CommaToken",t[t.QuestionDotToken=29]="QuestionDotToken",t[t.LessThanToken=30]="LessThanToken",t[t.LessThanSlashToken=31]="LessThanSlashToken",t[t.GreaterThanToken=32]="GreaterThanToken",t[t.LessThanEqualsToken=33]="LessThanEqualsToken",t[t.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",t[t.EqualsEqualsToken=35]="EqualsEqualsToken",t[t.ExclamationEqualsToken=36]="ExclamationEqualsToken",t[t.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",t[t.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",t[t.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",t[t.PlusToken=40]="PlusToken",t[t.MinusToken=41]="MinusToken",t[t.AsteriskToken=42]="AsteriskToken",t[t.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",t[t.SlashToken=44]="SlashToken",t[t.PercentToken=45]="PercentToken",t[t.PlusPlusToken=46]="PlusPlusToken",t[t.MinusMinusToken=47]="MinusMinusToken",t[t.LessThanLessThanToken=48]="LessThanLessThanToken",t[t.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",t[t.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",t[t.AmpersandToken=51]="AmpersandToken",t[t.BarToken=52]="BarToken",t[t.CaretToken=53]="CaretToken",t[t.ExclamationToken=54]="ExclamationToken",t[t.TildeToken=55]="TildeToken",t[t.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",t[t.BarBarToken=57]="BarBarToken",t[t.QuestionToken=58]="QuestionToken",t[t.ColonToken=59]="ColonToken",t[t.AtToken=60]="AtToken",t[t.QuestionQuestionToken=61]="QuestionQuestionToken",t[t.BacktickToken=62]="BacktickToken",t[t.HashToken=63]="HashToken",t[t.EqualsToken=64]="EqualsToken",t[t.PlusEqualsToken=65]="PlusEqualsToken",t[t.MinusEqualsToken=66]="MinusEqualsToken",t[t.AsteriskEqualsToken=67]="AsteriskEqualsToken",t[t.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",t[t.SlashEqualsToken=69]="SlashEqualsToken",t[t.PercentEqualsToken=70]="PercentEqualsToken",t[t.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",t[t.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",t[t.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",t[t.AmpersandEqualsToken=74]="AmpersandEqualsToken",t[t.BarEqualsToken=75]="BarEqualsToken",t[t.BarBarEqualsToken=76]="BarBarEqualsToken",t[t.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",t[t.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",t[t.CaretEqualsToken=79]="CaretEqualsToken",t[t.Identifier=80]="Identifier",t[t.PrivateIdentifier=81]="PrivateIdentifier",t[t.JSDocCommentTextToken=82]="JSDocCommentTextToken",t[t.BreakKeyword=83]="BreakKeyword",t[t.CaseKeyword=84]="CaseKeyword",t[t.CatchKeyword=85]="CatchKeyword",t[t.ClassKeyword=86]="ClassKeyword",t[t.ConstKeyword=87]="ConstKeyword",t[t.ContinueKeyword=88]="ContinueKeyword",t[t.DebuggerKeyword=89]="DebuggerKeyword",t[t.DefaultKeyword=90]="DefaultKeyword",t[t.DeleteKeyword=91]="DeleteKeyword",t[t.DoKeyword=92]="DoKeyword",t[t.ElseKeyword=93]="ElseKeyword",t[t.EnumKeyword=94]="EnumKeyword",t[t.ExportKeyword=95]="ExportKeyword",t[t.ExtendsKeyword=96]="ExtendsKeyword",t[t.FalseKeyword=97]="FalseKeyword",t[t.FinallyKeyword=98]="FinallyKeyword",t[t.ForKeyword=99]="ForKeyword",t[t.FunctionKeyword=100]="FunctionKeyword",t[t.IfKeyword=101]="IfKeyword",t[t.ImportKeyword=102]="ImportKeyword",t[t.InKeyword=103]="InKeyword",t[t.InstanceOfKeyword=104]="InstanceOfKeyword",t[t.NewKeyword=105]="NewKeyword",t[t.NullKeyword=106]="NullKeyword",t[t.ReturnKeyword=107]="ReturnKeyword",t[t.SuperKeyword=108]="SuperKeyword",t[t.SwitchKeyword=109]="SwitchKeyword",t[t.ThisKeyword=110]="ThisKeyword",t[t.ThrowKeyword=111]="ThrowKeyword",t[t.TrueKeyword=112]="TrueKeyword",t[t.TryKeyword=113]="TryKeyword",t[t.TypeOfKeyword=114]="TypeOfKeyword",t[t.VarKeyword=115]="VarKeyword",t[t.VoidKeyword=116]="VoidKeyword",t[t.WhileKeyword=117]="WhileKeyword",t[t.WithKeyword=118]="WithKeyword",t[t.ImplementsKeyword=119]="ImplementsKeyword",t[t.InterfaceKeyword=120]="InterfaceKeyword",t[t.LetKeyword=121]="LetKeyword",t[t.PackageKeyword=122]="PackageKeyword",t[t.PrivateKeyword=123]="PrivateKeyword",t[t.ProtectedKeyword=124]="ProtectedKeyword",t[t.PublicKeyword=125]="PublicKeyword",t[t.StaticKeyword=126]="StaticKeyword",t[t.YieldKeyword=127]="YieldKeyword",t[t.AbstractKeyword=128]="AbstractKeyword",t[t.AccessorKeyword=129]="AccessorKeyword",t[t.AsKeyword=130]="AsKeyword",t[t.AssertsKeyword=131]="AssertsKeyword",t[t.AssertKeyword=132]="AssertKeyword",t[t.AnyKeyword=133]="AnyKeyword",t[t.AsyncKeyword=134]="AsyncKeyword",t[t.AwaitKeyword=135]="AwaitKeyword",t[t.BooleanKeyword=136]="BooleanKeyword",t[t.ConstructorKeyword=137]="ConstructorKeyword",t[t.DeclareKeyword=138]="DeclareKeyword",t[t.GetKeyword=139]="GetKeyword",t[t.InferKeyword=140]="InferKeyword",t[t.IntrinsicKeyword=141]="IntrinsicKeyword",t[t.IsKeyword=142]="IsKeyword",t[t.KeyOfKeyword=143]="KeyOfKeyword",t[t.ModuleKeyword=144]="ModuleKeyword",t[t.NamespaceKeyword=145]="NamespaceKeyword",t[t.NeverKeyword=146]="NeverKeyword",t[t.OutKeyword=147]="OutKeyword",t[t.ReadonlyKeyword=148]="ReadonlyKeyword",t[t.RequireKeyword=149]="RequireKeyword",t[t.NumberKeyword=150]="NumberKeyword",t[t.ObjectKeyword=151]="ObjectKeyword",t[t.SatisfiesKeyword=152]="SatisfiesKeyword",t[t.SetKeyword=153]="SetKeyword",t[t.StringKeyword=154]="StringKeyword",t[t.SymbolKeyword=155]="SymbolKeyword",t[t.TypeKeyword=156]="TypeKeyword",t[t.UndefinedKeyword=157]="UndefinedKeyword",t[t.UniqueKeyword=158]="UniqueKeyword",t[t.UnknownKeyword=159]="UnknownKeyword",t[t.UsingKeyword=160]="UsingKeyword",t[t.FromKeyword=161]="FromKeyword",t[t.GlobalKeyword=162]="GlobalKeyword",t[t.BigIntKeyword=163]="BigIntKeyword",t[t.OverrideKeyword=164]="OverrideKeyword",t[t.OfKeyword=165]="OfKeyword",t[t.DeferKeyword=166]="DeferKeyword",t[t.QualifiedName=167]="QualifiedName",t[t.ComputedPropertyName=168]="ComputedPropertyName",t[t.TypeParameter=169]="TypeParameter",t[t.Parameter=170]="Parameter",t[t.Decorator=171]="Decorator",t[t.PropertySignature=172]="PropertySignature",t[t.PropertyDeclaration=173]="PropertyDeclaration",t[t.MethodSignature=174]="MethodSignature",t[t.MethodDeclaration=175]="MethodDeclaration",t[t.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",t[t.Constructor=177]="Constructor",t[t.GetAccessor=178]="GetAccessor",t[t.SetAccessor=179]="SetAccessor",t[t.CallSignature=180]="CallSignature",t[t.ConstructSignature=181]="ConstructSignature",t[t.IndexSignature=182]="IndexSignature",t[t.TypePredicate=183]="TypePredicate",t[t.TypeReference=184]="TypeReference",t[t.FunctionType=185]="FunctionType",t[t.ConstructorType=186]="ConstructorType",t[t.TypeQuery=187]="TypeQuery",t[t.TypeLiteral=188]="TypeLiteral",t[t.ArrayType=189]="ArrayType",t[t.TupleType=190]="TupleType",t[t.OptionalType=191]="OptionalType",t[t.RestType=192]="RestType",t[t.UnionType=193]="UnionType",t[t.IntersectionType=194]="IntersectionType",t[t.ConditionalType=195]="ConditionalType",t[t.InferType=196]="InferType",t[t.ParenthesizedType=197]="ParenthesizedType",t[t.ThisType=198]="ThisType",t[t.TypeOperator=199]="TypeOperator",t[t.IndexedAccessType=200]="IndexedAccessType",t[t.MappedType=201]="MappedType",t[t.LiteralType=202]="LiteralType",t[t.NamedTupleMember=203]="NamedTupleMember",t[t.TemplateLiteralType=204]="TemplateLiteralType",t[t.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",t[t.ImportType=206]="ImportType",t[t.ObjectBindingPattern=207]="ObjectBindingPattern",t[t.ArrayBindingPattern=208]="ArrayBindingPattern",t[t.BindingElement=209]="BindingElement",t[t.ArrayLiteralExpression=210]="ArrayLiteralExpression",t[t.ObjectLiteralExpression=211]="ObjectLiteralExpression",t[t.PropertyAccessExpression=212]="PropertyAccessExpression",t[t.ElementAccessExpression=213]="ElementAccessExpression",t[t.CallExpression=214]="CallExpression",t[t.NewExpression=215]="NewExpression",t[t.TaggedTemplateExpression=216]="TaggedTemplateExpression",t[t.TypeAssertionExpression=217]="TypeAssertionExpression",t[t.ParenthesizedExpression=218]="ParenthesizedExpression",t[t.FunctionExpression=219]="FunctionExpression",t[t.ArrowFunction=220]="ArrowFunction",t[t.DeleteExpression=221]="DeleteExpression",t[t.TypeOfExpression=222]="TypeOfExpression",t[t.VoidExpression=223]="VoidExpression",t[t.AwaitExpression=224]="AwaitExpression",t[t.PrefixUnaryExpression=225]="PrefixUnaryExpression",t[t.PostfixUnaryExpression=226]="PostfixUnaryExpression",t[t.BinaryExpression=227]="BinaryExpression",t[t.ConditionalExpression=228]="ConditionalExpression",t[t.TemplateExpression=229]="TemplateExpression",t[t.YieldExpression=230]="YieldExpression",t[t.SpreadElement=231]="SpreadElement",t[t.ClassExpression=232]="ClassExpression",t[t.OmittedExpression=233]="OmittedExpression",t[t.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",t[t.AsExpression=235]="AsExpression",t[t.NonNullExpression=236]="NonNullExpression",t[t.MetaProperty=237]="MetaProperty",t[t.SyntheticExpression=238]="SyntheticExpression",t[t.SatisfiesExpression=239]="SatisfiesExpression",t[t.TemplateSpan=240]="TemplateSpan",t[t.SemicolonClassElement=241]="SemicolonClassElement",t[t.Block=242]="Block",t[t.EmptyStatement=243]="EmptyStatement",t[t.VariableStatement=244]="VariableStatement",t[t.ExpressionStatement=245]="ExpressionStatement",t[t.IfStatement=246]="IfStatement",t[t.DoStatement=247]="DoStatement",t[t.WhileStatement=248]="WhileStatement",t[t.ForStatement=249]="ForStatement",t[t.ForInStatement=250]="ForInStatement",t[t.ForOfStatement=251]="ForOfStatement",t[t.ContinueStatement=252]="ContinueStatement",t[t.BreakStatement=253]="BreakStatement",t[t.ReturnStatement=254]="ReturnStatement",t[t.WithStatement=255]="WithStatement",t[t.SwitchStatement=256]="SwitchStatement",t[t.LabeledStatement=257]="LabeledStatement",t[t.ThrowStatement=258]="ThrowStatement",t[t.TryStatement=259]="TryStatement",t[t.DebuggerStatement=260]="DebuggerStatement",t[t.VariableDeclaration=261]="VariableDeclaration",t[t.VariableDeclarationList=262]="VariableDeclarationList",t[t.FunctionDeclaration=263]="FunctionDeclaration",t[t.ClassDeclaration=264]="ClassDeclaration",t[t.InterfaceDeclaration=265]="InterfaceDeclaration",t[t.TypeAliasDeclaration=266]="TypeAliasDeclaration",t[t.EnumDeclaration=267]="EnumDeclaration",t[t.ModuleDeclaration=268]="ModuleDeclaration",t[t.ModuleBlock=269]="ModuleBlock",t[t.CaseBlock=270]="CaseBlock",t[t.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",t[t.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",t[t.ImportDeclaration=273]="ImportDeclaration",t[t.ImportClause=274]="ImportClause",t[t.NamespaceImport=275]="NamespaceImport",t[t.NamedImports=276]="NamedImports",t[t.ImportSpecifier=277]="ImportSpecifier",t[t.ExportAssignment=278]="ExportAssignment",t[t.ExportDeclaration=279]="ExportDeclaration",t[t.NamedExports=280]="NamedExports",t[t.NamespaceExport=281]="NamespaceExport",t[t.ExportSpecifier=282]="ExportSpecifier",t[t.MissingDeclaration=283]="MissingDeclaration",t[t.ExternalModuleReference=284]="ExternalModuleReference",t[t.JsxElement=285]="JsxElement",t[t.JsxSelfClosingElement=286]="JsxSelfClosingElement",t[t.JsxOpeningElement=287]="JsxOpeningElement",t[t.JsxClosingElement=288]="JsxClosingElement",t[t.JsxFragment=289]="JsxFragment",t[t.JsxOpeningFragment=290]="JsxOpeningFragment",t[t.JsxClosingFragment=291]="JsxClosingFragment",t[t.JsxAttribute=292]="JsxAttribute",t[t.JsxAttributes=293]="JsxAttributes",t[t.JsxSpreadAttribute=294]="JsxSpreadAttribute",t[t.JsxExpression=295]="JsxExpression",t[t.JsxNamespacedName=296]="JsxNamespacedName",t[t.CaseClause=297]="CaseClause",t[t.DefaultClause=298]="DefaultClause",t[t.HeritageClause=299]="HeritageClause",t[t.CatchClause=300]="CatchClause",t[t.ImportAttributes=301]="ImportAttributes",t[t.ImportAttribute=302]="ImportAttribute",t[t.AssertClause=301]="AssertClause",t[t.AssertEntry=302]="AssertEntry",t[t.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",t[t.PropertyAssignment=304]="PropertyAssignment",t[t.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",t[t.SpreadAssignment=306]="SpreadAssignment",t[t.EnumMember=307]="EnumMember",t[t.SourceFile=308]="SourceFile",t[t.Bundle=309]="Bundle",t[t.JSDocTypeExpression=310]="JSDocTypeExpression",t[t.JSDocNameReference=311]="JSDocNameReference",t[t.JSDocMemberName=312]="JSDocMemberName",t[t.JSDocAllType=313]="JSDocAllType",t[t.JSDocUnknownType=314]="JSDocUnknownType",t[t.JSDocNullableType=315]="JSDocNullableType",t[t.JSDocNonNullableType=316]="JSDocNonNullableType",t[t.JSDocOptionalType=317]="JSDocOptionalType",t[t.JSDocFunctionType=318]="JSDocFunctionType",t[t.JSDocVariadicType=319]="JSDocVariadicType",t[t.JSDocNamepathType=320]="JSDocNamepathType",t[t.JSDoc=321]="JSDoc",t[t.JSDocComment=321]="JSDocComment",t[t.JSDocText=322]="JSDocText",t[t.JSDocTypeLiteral=323]="JSDocTypeLiteral",t[t.JSDocSignature=324]="JSDocSignature",t[t.JSDocLink=325]="JSDocLink",t[t.JSDocLinkCode=326]="JSDocLinkCode",t[t.JSDocLinkPlain=327]="JSDocLinkPlain",t[t.JSDocTag=328]="JSDocTag",t[t.JSDocAugmentsTag=329]="JSDocAugmentsTag",t[t.JSDocImplementsTag=330]="JSDocImplementsTag",t[t.JSDocAuthorTag=331]="JSDocAuthorTag",t[t.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",t[t.JSDocClassTag=333]="JSDocClassTag",t[t.JSDocPublicTag=334]="JSDocPublicTag",t[t.JSDocPrivateTag=335]="JSDocPrivateTag",t[t.JSDocProtectedTag=336]="JSDocProtectedTag",t[t.JSDocReadonlyTag=337]="JSDocReadonlyTag",t[t.JSDocOverrideTag=338]="JSDocOverrideTag",t[t.JSDocCallbackTag=339]="JSDocCallbackTag",t[t.JSDocOverloadTag=340]="JSDocOverloadTag",t[t.JSDocEnumTag=341]="JSDocEnumTag",t[t.JSDocParameterTag=342]="JSDocParameterTag",t[t.JSDocReturnTag=343]="JSDocReturnTag",t[t.JSDocThisTag=344]="JSDocThisTag",t[t.JSDocTypeTag=345]="JSDocTypeTag",t[t.JSDocTemplateTag=346]="JSDocTemplateTag",t[t.JSDocTypedefTag=347]="JSDocTypedefTag",t[t.JSDocSeeTag=348]="JSDocSeeTag",t[t.JSDocPropertyTag=349]="JSDocPropertyTag",t[t.JSDocThrowsTag=350]="JSDocThrowsTag",t[t.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",t[t.JSDocImportTag=352]="JSDocImportTag",t[t.SyntaxList=353]="SyntaxList",t[t.NotEmittedStatement=354]="NotEmittedStatement",t[t.NotEmittedTypeElement=355]="NotEmittedTypeElement",t[t.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",t[t.CommaListExpression=357]="CommaListExpression",t[t.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",t[t.Count=359]="Count",t[t.FirstAssignment=64]="FirstAssignment",t[t.LastAssignment=79]="LastAssignment",t[t.FirstCompoundAssignment=65]="FirstCompoundAssignment",t[t.LastCompoundAssignment=79]="LastCompoundAssignment",t[t.FirstReservedWord=83]="FirstReservedWord",t[t.LastReservedWord=118]="LastReservedWord",t[t.FirstKeyword=83]="FirstKeyword",t[t.LastKeyword=166]="LastKeyword",t[t.FirstFutureReservedWord=119]="FirstFutureReservedWord",t[t.LastFutureReservedWord=127]="LastFutureReservedWord",t[t.FirstTypeNode=183]="FirstTypeNode",t[t.LastTypeNode=206]="LastTypeNode",t[t.FirstPunctuation=19]="FirstPunctuation",t[t.LastPunctuation=79]="LastPunctuation",t[t.FirstToken=0]="FirstToken",t[t.LastToken=166]="LastToken",t[t.FirstTriviaToken=2]="FirstTriviaToken",t[t.LastTriviaToken=7]="LastTriviaToken",t[t.FirstLiteralToken=9]="FirstLiteralToken",t[t.LastLiteralToken=15]="LastLiteralToken",t[t.FirstTemplateToken=15]="FirstTemplateToken",t[t.LastTemplateToken=18]="LastTemplateToken",t[t.FirstBinaryOperator=30]="FirstBinaryOperator",t[t.LastBinaryOperator=79]="LastBinaryOperator",t[t.FirstStatement=244]="FirstStatement",t[t.LastStatement=260]="LastStatement",t[t.FirstNode=167]="FirstNode",t[t.FirstJSDocNode=310]="FirstJSDocNode",t[t.LastJSDocNode=352]="LastJSDocNode",t[t.FirstJSDocTagNode=328]="FirstJSDocTagNode",t[t.LastJSDocTagNode=352]="LastJSDocTagNode",t[t.FirstContextualKeyword=128]="FirstContextualKeyword",t[t.LastContextualKeyword=166]="LastContextualKeyword",t))(z9||{}),sO=(t=>(t[t.None=0]="None",t[t.Let=1]="Let",t[t.Const=2]="Const",t[t.Using=4]="Using",t[t.AwaitUsing=6]="AwaitUsing",t[t.NestedNamespace=8]="NestedNamespace",t[t.Synthesized=16]="Synthesized",t[t.Namespace=32]="Namespace",t[t.OptionalChain=64]="OptionalChain",t[t.ExportContext=128]="ExportContext",t[t.ContainsThis=256]="ContainsThis",t[t.HasImplicitReturn=512]="HasImplicitReturn",t[t.HasExplicitReturn=1024]="HasExplicitReturn",t[t.GlobalAugmentation=2048]="GlobalAugmentation",t[t.HasAsyncFunctions=4096]="HasAsyncFunctions",t[t.DisallowInContext=8192]="DisallowInContext",t[t.YieldContext=16384]="YieldContext",t[t.DecoratorContext=32768]="DecoratorContext",t[t.AwaitContext=65536]="AwaitContext",t[t.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",t[t.ThisNodeHasError=262144]="ThisNodeHasError",t[t.JavaScriptFile=524288]="JavaScriptFile",t[t.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",t[t.HasAggregatedChildData=2097152]="HasAggregatedChildData",t[t.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",t[t.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",t[t.JSDoc=16777216]="JSDoc",t[t.Ambient=33554432]="Ambient",t[t.InWithStatement=67108864]="InWithStatement",t[t.JsonFile=134217728]="JsonFile",t[t.TypeCached=268435456]="TypeCached",t[t.Deprecated=536870912]="Deprecated",t[t.BlockScoped=7]="BlockScoped",t[t.Constant=6]="Constant",t[t.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",t[t.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",t[t.ContextFlags=101441536]="ContextFlags",t[t.TypeExcludesFlags=81920]="TypeExcludesFlags",t[t.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",t[t.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",t[t.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",t))(sO||{}),cO=(t=>(t[t.None=0]="None",t[t.Public=1]="Public",t[t.Private=2]="Private",t[t.Protected=4]="Protected",t[t.Readonly=8]="Readonly",t[t.Override=16]="Override",t[t.Export=32]="Export",t[t.Abstract=64]="Abstract",t[t.Ambient=128]="Ambient",t[t.Static=256]="Static",t[t.Accessor=512]="Accessor",t[t.Async=1024]="Async",t[t.Default=2048]="Default",t[t.Const=4096]="Const",t[t.In=8192]="In",t[t.Out=16384]="Out",t[t.Decorator=32768]="Decorator",t[t.Deprecated=65536]="Deprecated",t[t.JSDocPublic=8388608]="JSDocPublic",t[t.JSDocPrivate=16777216]="JSDocPrivate",t[t.JSDocProtected=33554432]="JSDocProtected",t[t.JSDocReadonly=67108864]="JSDocReadonly",t[t.JSDocOverride=134217728]="JSDocOverride",t[t.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",t[t.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",t[t.SyntacticModifiers=65535]="SyntacticModifiers",t[t.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",t[t.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",t[t.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",t[t.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",t[t.HasComputedFlags=536870912]="HasComputedFlags",t[t.AccessibilityModifier=7]="AccessibilityModifier",t[t.ParameterPropertyModifier=31]="ParameterPropertyModifier",t[t.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",t[t.TypeScriptModifier=28895]="TypeScriptModifier",t[t.ExportDefault=2080]="ExportDefault",t[t.All=131071]="All",t[t.Modifier=98303]="Modifier",t))(cO||{}),lO=(t=>(t[t.None=0]="None",t[t.IntrinsicNamedElement=1]="IntrinsicNamedElement",t[t.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",t[t.IntrinsicElement=3]="IntrinsicElement",t))(lO||{}),q9=(t=>(t[t.None=0]="None",t[t.Succeeded=1]="Succeeded",t[t.Failed=2]="Failed",t[t.ReportsUnmeasurable=8]="ReportsUnmeasurable",t[t.ReportsUnreliable=16]="ReportsUnreliable",t[t.ReportsMask=24]="ReportsMask",t[t.ComplexityOverflow=32]="ComplexityOverflow",t[t.StackDepthOverflow=64]="StackDepthOverflow",t[t.Overflow=96]="Overflow",t))(q9||{}),J9=(t=>(t[t.None=0]="None",t[t.Always=1]="Always",t[t.Never=2]="Never",t[t.Sometimes=3]="Sometimes",t))(J9||{}),V9=(t=>(t[t.None=0]="None",t[t.Auto=1]="Auto",t[t.Loop=2]="Loop",t[t.Unique=3]="Unique",t[t.Node=4]="Node",t[t.KindMask=7]="KindMask",t[t.ReservedInNestedScopes=8]="ReservedInNestedScopes",t[t.Optimistic=16]="Optimistic",t[t.FileLevel=32]="FileLevel",t[t.AllowNameSubstitution=64]="AllowNameSubstitution",t))(V9||{}),W9=(t=>(t[t.None=0]="None",t[t.HasIndices=1]="HasIndices",t[t.Global=2]="Global",t[t.IgnoreCase=4]="IgnoreCase",t[t.Multiline=8]="Multiline",t[t.DotAll=16]="DotAll",t[t.Unicode=32]="Unicode",t[t.UnicodeSets=64]="UnicodeSets",t[t.Sticky=128]="Sticky",t[t.AnyUnicodeMode=96]="AnyUnicodeMode",t[t.Modifiers=28]="Modifiers",t))(W9||{}),E$=(t=>(t[t.None=0]="None",t[t.PrecedingLineBreak=1]="PrecedingLineBreak",t[t.PrecedingJSDocComment=2]="PrecedingJSDocComment",t[t.Unterminated=4]="Unterminated",t[t.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",t[t.Scientific=16]="Scientific",t[t.Octal=32]="Octal",t[t.HexSpecifier=64]="HexSpecifier",t[t.BinarySpecifier=128]="BinarySpecifier",t[t.OctalSpecifier=256]="OctalSpecifier",t[t.ContainsSeparator=512]="ContainsSeparator",t[t.UnicodeEscape=1024]="UnicodeEscape",t[t.ContainsInvalidEscape=2048]="ContainsInvalidEscape",t[t.HexEscape=4096]="HexEscape",t[t.ContainsLeadingZero=8192]="ContainsLeadingZero",t[t.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",t[t.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",t[t.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",t[t.WithSpecifier=448]="WithSpecifier",t[t.StringLiteralFlags=7176]="StringLiteralFlags",t[t.NumericLiteralFlags=25584]="NumericLiteralFlags",t[t.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",t[t.IsInvalid=26656]="IsInvalid",t))(E$||{}),PI=(t=>(t[t.Unreachable=1]="Unreachable",t[t.Start=2]="Start",t[t.BranchLabel=4]="BranchLabel",t[t.LoopLabel=8]="LoopLabel",t[t.Assignment=16]="Assignment",t[t.TrueCondition=32]="TrueCondition",t[t.FalseCondition=64]="FalseCondition",t[t.SwitchClause=128]="SwitchClause",t[t.ArrayMutation=256]="ArrayMutation",t[t.Call=512]="Call",t[t.ReduceLabel=1024]="ReduceLabel",t[t.Referenced=2048]="Referenced",t[t.Shared=4096]="Shared",t[t.Label=12]="Label",t[t.Condition=96]="Condition",t))(PI||{}),G9=(t=>(t[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore",t))(G9||{}),Uk=class{},H9=(t=>(t[t.RootFile=0]="RootFile",t[t.SourceFromProjectReference=1]="SourceFromProjectReference",t[t.OutputFromProjectReference=2]="OutputFromProjectReference",t[t.Import=3]="Import",t[t.ReferenceFile=4]="ReferenceFile",t[t.TypeReferenceDirective=5]="TypeReferenceDirective",t[t.LibFile=6]="LibFile",t[t.LibReferenceDirective=7]="LibReferenceDirective",t[t.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",t))(H9||{}),uO=(t=>(t[t.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",t[t.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",t[t.ResolutionDiagnostics=2]="ResolutionDiagnostics",t))(uO||{}),K9=(t=>(t[t.Js=0]="Js",t[t.Dts=1]="Dts",t[t.BuilderSignature=2]="BuilderSignature",t))(K9||{}),d4=(t=>(t[t.Not=0]="Not",t[t.SafeModules=1]="SafeModules",t[t.Completely=2]="Completely",t))(d4||{}),ZD=(t=>(t[t.Success=0]="Success",t[t.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",t[t.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",t[t.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",t[t.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",t))(ZD||{}),Q9=(t=>(t[t.Ok=0]="Ok",t[t.NeedsOverride=1]="NeedsOverride",t[t.HasInvalidOverride=2]="HasInvalidOverride",t))(Q9||{}),Z9=(t=>(t[t.None=0]="None",t[t.Literal=1]="Literal",t[t.Subtype=2]="Subtype",t))(Z9||{}),X9=(t=>(t[t.None=0]="None",t[t.NoSupertypeReduction=1]="NoSupertypeReduction",t[t.NoConstraintReduction=2]="NoConstraintReduction",t))(X9||{}),k$=(t=>(t[t.None=0]="None",t[t.Signature=1]="Signature",t[t.NoConstraints=2]="NoConstraints",t[t.Completions=4]="Completions",t[t.SkipBindingPatterns=8]="SkipBindingPatterns",t))(k$||{}),Y9=(t=>(t[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.OmitThisParameter=33554432]="OmitThisParameter",t[t.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",t[t.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",t[t.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",t[t.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",t[t.AllowEmptyTuple=524288]="AllowEmptyTuple",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",t[t.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",t[t.IgnoreErrors=70221824]="IgnoreErrors",t[t.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.InInitialEntityName=16777216]="InInitialEntityName",t))(Y9||{}),C$=(t=>(t[t.None=0]="None",t[t.WriteComputedProps=1]="WriteComputedProps",t[t.NoSyntacticPrinter=2]="NoSyntacticPrinter",t[t.DoNotIncludeSymbolChain=4]="DoNotIncludeSymbolChain",t[t.AllowUnresolvedNames=8]="AllowUnresolvedNames",t))(C$||{}),eR=(t=>(t[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.OmitThisParameter=33554432]="OmitThisParameter",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AddUndefined=131072]="AddUndefined",t[t.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",t[t.InArrayType=524288]="InArrayType",t[t.InElementType=2097152]="InElementType",t[t.InFirstTypeArgument=4194304]="InFirstTypeArgument",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",t))(eR||{}),f4=(t=>(t[t.None=0]="None",t[t.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",t[t.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",t[t.AllowAnyNodeKind=4]="AllowAnyNodeKind",t[t.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",t[t.WriteComputedProps=16]="WriteComputedProps",t[t.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",t))(f4||{}),tR=(t=>(t[t.Accessible=0]="Accessible",t[t.NotAccessible=1]="NotAccessible",t[t.CannotBeNamed=2]="CannotBeNamed",t[t.NotResolved=3]="NotResolved",t))(tR||{}),pO=(t=>(t[t.This=0]="This",t[t.Identifier=1]="Identifier",t[t.AssertsThis=2]="AssertsThis",t[t.AssertsIdentifier=3]="AssertsIdentifier",t))(pO||{}),D$=(t=>(t[t.Unknown=0]="Unknown",t[t.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",t[t.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",t[t.NumberLikeType=3]="NumberLikeType",t[t.BigIntLikeType=4]="BigIntLikeType",t[t.StringLikeType=5]="StringLikeType",t[t.BooleanType=6]="BooleanType",t[t.ArrayLikeType=7]="ArrayLikeType",t[t.ESSymbolType=8]="ESSymbolType",t[t.Promise=9]="Promise",t[t.TypeWithCallSignature=10]="TypeWithCallSignature",t[t.ObjectType=11]="ObjectType",t))(D$||{}),_O=(t=>(t[t.None=0]="None",t[t.FunctionScopedVariable=1]="FunctionScopedVariable",t[t.BlockScopedVariable=2]="BlockScopedVariable",t[t.Property=4]="Property",t[t.EnumMember=8]="EnumMember",t[t.Function=16]="Function",t[t.Class=32]="Class",t[t.Interface=64]="Interface",t[t.ConstEnum=128]="ConstEnum",t[t.RegularEnum=256]="RegularEnum",t[t.ValueModule=512]="ValueModule",t[t.NamespaceModule=1024]="NamespaceModule",t[t.TypeLiteral=2048]="TypeLiteral",t[t.ObjectLiteral=4096]="ObjectLiteral",t[t.Method=8192]="Method",t[t.Constructor=16384]="Constructor",t[t.GetAccessor=32768]="GetAccessor",t[t.SetAccessor=65536]="SetAccessor",t[t.Signature=131072]="Signature",t[t.TypeParameter=262144]="TypeParameter",t[t.TypeAlias=524288]="TypeAlias",t[t.ExportValue=1048576]="ExportValue",t[t.Alias=2097152]="Alias",t[t.Prototype=4194304]="Prototype",t[t.ExportStar=8388608]="ExportStar",t[t.Optional=16777216]="Optional",t[t.Transient=33554432]="Transient",t[t.Assignment=67108864]="Assignment",t[t.ModuleExports=134217728]="ModuleExports",t[t.All=-1]="All",t[t.Enum=384]="Enum",t[t.Variable=3]="Variable",t[t.Value=111551]="Value",t[t.Type=788968]="Type",t[t.Namespace=1920]="Namespace",t[t.Module=1536]="Module",t[t.Accessor=98304]="Accessor",t[t.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",t[t.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",t[t.ParameterExcludes=111551]="ParameterExcludes",t[t.PropertyExcludes=0]="PropertyExcludes",t[t.EnumMemberExcludes=900095]="EnumMemberExcludes",t[t.FunctionExcludes=110991]="FunctionExcludes",t[t.ClassExcludes=899503]="ClassExcludes",t[t.InterfaceExcludes=788872]="InterfaceExcludes",t[t.RegularEnumExcludes=899327]="RegularEnumExcludes",t[t.ConstEnumExcludes=899967]="ConstEnumExcludes",t[t.ValueModuleExcludes=110735]="ValueModuleExcludes",t[t.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",t[t.MethodExcludes=103359]="MethodExcludes",t[t.GetAccessorExcludes=46015]="GetAccessorExcludes",t[t.SetAccessorExcludes=78783]="SetAccessorExcludes",t[t.AccessorExcludes=13247]="AccessorExcludes",t[t.TypeParameterExcludes=526824]="TypeParameterExcludes",t[t.TypeAliasExcludes=788968]="TypeAliasExcludes",t[t.AliasExcludes=2097152]="AliasExcludes",t[t.ModuleMember=2623475]="ModuleMember",t[t.ExportHasLocal=944]="ExportHasLocal",t[t.BlockScoped=418]="BlockScoped",t[t.PropertyOrAccessor=98308]="PropertyOrAccessor",t[t.ClassMember=106500]="ClassMember",t[t.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",t[t.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",t[t.Classifiable=2885600]="Classifiable",t[t.LateBindingContainer=6256]="LateBindingContainer",t))(_O||{}),dO=(t=>(t[t.None=0]="None",t[t.Instantiated=1]="Instantiated",t[t.SyntheticProperty=2]="SyntheticProperty",t[t.SyntheticMethod=4]="SyntheticMethod",t[t.Readonly=8]="Readonly",t[t.ReadPartial=16]="ReadPartial",t[t.WritePartial=32]="WritePartial",t[t.HasNonUniformType=64]="HasNonUniformType",t[t.HasLiteralType=128]="HasLiteralType",t[t.ContainsPublic=256]="ContainsPublic",t[t.ContainsProtected=512]="ContainsProtected",t[t.ContainsPrivate=1024]="ContainsPrivate",t[t.ContainsStatic=2048]="ContainsStatic",t[t.Late=4096]="Late",t[t.ReverseMapped=8192]="ReverseMapped",t[t.OptionalParameter=16384]="OptionalParameter",t[t.RestParameter=32768]="RestParameter",t[t.DeferredType=65536]="DeferredType",t[t.HasNeverType=131072]="HasNeverType",t[t.Mapped=262144]="Mapped",t[t.StripOptional=524288]="StripOptional",t[t.Unresolved=1048576]="Unresolved",t[t.Synthetic=6]="Synthetic",t[t.Discriminant=192]="Discriminant",t[t.Partial=48]="Partial",t))(dO||{}),A$=(t=>(t.Call="__call",t.Constructor="__constructor",t.New="__new",t.Index="__index",t.ExportStar="__export",t.Global="__global",t.Missing="__missing",t.Type="__type",t.Object="__object",t.JSXAttributes="__jsxAttributes",t.Class="__class",t.Function="__function",t.Computed="__computed",t.Resolving="__resolving__",t.ExportEquals="export=",t.Default="default",t.This="this",t.InstantiationExpression="__instantiationExpression",t.ImportAttributes="__importAttributes",t))(A$||{}),fO=(t=>(t[t.None=0]="None",t[t.TypeChecked=1]="TypeChecked",t[t.LexicalThis=2]="LexicalThis",t[t.CaptureThis=4]="CaptureThis",t[t.CaptureNewTarget=8]="CaptureNewTarget",t[t.SuperInstance=16]="SuperInstance",t[t.SuperStatic=32]="SuperStatic",t[t.ContextChecked=64]="ContextChecked",t[t.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",t[t.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",t[t.CaptureArguments=512]="CaptureArguments",t[t.EnumValuesComputed=1024]="EnumValuesComputed",t[t.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",t[t.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",t[t.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",t[t.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",t[t.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",t[t.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",t[t.AssignmentsMarked=131072]="AssignmentsMarked",t[t.ContainsConstructorReference=262144]="ContainsConstructorReference",t[t.ConstructorReference=536870912]="ConstructorReference",t[t.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",t[t.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",t[t.InCheckIdentifier=4194304]="InCheckIdentifier",t[t.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",t[t.LazyFlags=539358128]="LazyFlags",t))(fO||{}),NI=(t=>(t[t.Any=1]="Any",t[t.Unknown=2]="Unknown",t[t.String=4]="String",t[t.Number=8]="Number",t[t.Boolean=16]="Boolean",t[t.Enum=32]="Enum",t[t.BigInt=64]="BigInt",t[t.StringLiteral=128]="StringLiteral",t[t.NumberLiteral=256]="NumberLiteral",t[t.BooleanLiteral=512]="BooleanLiteral",t[t.EnumLiteral=1024]="EnumLiteral",t[t.BigIntLiteral=2048]="BigIntLiteral",t[t.ESSymbol=4096]="ESSymbol",t[t.UniqueESSymbol=8192]="UniqueESSymbol",t[t.Void=16384]="Void",t[t.Undefined=32768]="Undefined",t[t.Null=65536]="Null",t[t.Never=131072]="Never",t[t.TypeParameter=262144]="TypeParameter",t[t.Object=524288]="Object",t[t.Union=1048576]="Union",t[t.Intersection=2097152]="Intersection",t[t.Index=4194304]="Index",t[t.IndexedAccess=8388608]="IndexedAccess",t[t.Conditional=16777216]="Conditional",t[t.Substitution=33554432]="Substitution",t[t.NonPrimitive=67108864]="NonPrimitive",t[t.TemplateLiteral=134217728]="TemplateLiteral",t[t.StringMapping=268435456]="StringMapping",t[t.Reserved1=536870912]="Reserved1",t[t.Reserved2=1073741824]="Reserved2",t[t.AnyOrUnknown=3]="AnyOrUnknown",t[t.Nullable=98304]="Nullable",t[t.Literal=2944]="Literal",t[t.Unit=109472]="Unit",t[t.Freshable=2976]="Freshable",t[t.StringOrNumberLiteral=384]="StringOrNumberLiteral",t[t.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",t[t.DefinitelyFalsy=117632]="DefinitelyFalsy",t[t.PossiblyFalsy=117724]="PossiblyFalsy",t[t.Intrinsic=67359327]="Intrinsic",t[t.StringLike=402653316]="StringLike",t[t.NumberLike=296]="NumberLike",t[t.BigIntLike=2112]="BigIntLike",t[t.BooleanLike=528]="BooleanLike",t[t.EnumLike=1056]="EnumLike",t[t.ESSymbolLike=12288]="ESSymbolLike",t[t.VoidLike=49152]="VoidLike",t[t.Primitive=402784252]="Primitive",t[t.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",t[t.DisjointDomains=469892092]="DisjointDomains",t[t.UnionOrIntersection=3145728]="UnionOrIntersection",t[t.StructuredType=3670016]="StructuredType",t[t.TypeVariable=8650752]="TypeVariable",t[t.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",t[t.InstantiablePrimitive=406847488]="InstantiablePrimitive",t[t.Instantiable=465829888]="Instantiable",t[t.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",t[t.ObjectFlagsType=3899393]="ObjectFlagsType",t[t.Simplifiable=25165824]="Simplifiable",t[t.Singleton=67358815]="Singleton",t[t.Narrowable=536624127]="Narrowable",t[t.IncludesMask=473694207]="IncludesMask",t[t.IncludesMissingType=262144]="IncludesMissingType",t[t.IncludesNonWideningType=4194304]="IncludesNonWideningType",t[t.IncludesWildcard=8388608]="IncludesWildcard",t[t.IncludesEmptyObject=16777216]="IncludesEmptyObject",t[t.IncludesInstantiable=33554432]="IncludesInstantiable",t[t.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",t[t.IncludesError=1073741824]="IncludesError",t[t.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",t))(NI||{}),mO=(t=>(t[t.None=0]="None",t[t.Class=1]="Class",t[t.Interface=2]="Interface",t[t.Reference=4]="Reference",t[t.Tuple=8]="Tuple",t[t.Anonymous=16]="Anonymous",t[t.Mapped=32]="Mapped",t[t.Instantiated=64]="Instantiated",t[t.ObjectLiteral=128]="ObjectLiteral",t[t.EvolvingArray=256]="EvolvingArray",t[t.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",t[t.ReverseMapped=1024]="ReverseMapped",t[t.JsxAttributes=2048]="JsxAttributes",t[t.JSLiteral=4096]="JSLiteral",t[t.FreshLiteral=8192]="FreshLiteral",t[t.ArrayLiteral=16384]="ArrayLiteral",t[t.PrimitiveUnion=32768]="PrimitiveUnion",t[t.ContainsWideningType=65536]="ContainsWideningType",t[t.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",t[t.NonInferrableType=262144]="NonInferrableType",t[t.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",t[t.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",t[t.SingleSignatureType=134217728]="SingleSignatureType",t[t.ClassOrInterface=3]="ClassOrInterface",t[t.RequiresWidening=196608]="RequiresWidening",t[t.PropagatingFlags=458752]="PropagatingFlags",t[t.InstantiatedMapped=96]="InstantiatedMapped",t[t.ObjectTypeKindMask=1343]="ObjectTypeKindMask",t[t.ContainsSpread=2097152]="ContainsSpread",t[t.ObjectRestType=4194304]="ObjectRestType",t[t.InstantiationExpressionType=8388608]="InstantiationExpressionType",t[t.IsClassInstanceClone=16777216]="IsClassInstanceClone",t[t.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",t[t.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",t[t.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",t[t.IsGenericObjectType=4194304]="IsGenericObjectType",t[t.IsGenericIndexType=8388608]="IsGenericIndexType",t[t.IsGenericType=12582912]="IsGenericType",t[t.ContainsIntersections=16777216]="ContainsIntersections",t[t.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",t[t.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",t[t.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",t[t.IsNeverIntersection=33554432]="IsNeverIntersection",t[t.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",t))(mO||{}),rR=(t=>(t[t.Invariant=0]="Invariant",t[t.Covariant=1]="Covariant",t[t.Contravariant=2]="Contravariant",t[t.Bivariant=3]="Bivariant",t[t.Independent=4]="Independent",t[t.VarianceMask=7]="VarianceMask",t[t.Unmeasurable=8]="Unmeasurable",t[t.Unreliable=16]="Unreliable",t[t.AllowsStructuralFallback=24]="AllowsStructuralFallback",t))(rR||{}),nf=(t=>(t[t.Required=1]="Required",t[t.Optional=2]="Optional",t[t.Rest=4]="Rest",t[t.Variadic=8]="Variadic",t[t.Fixed=3]="Fixed",t[t.Variable=12]="Variable",t[t.NonRequired=14]="NonRequired",t[t.NonRest=11]="NonRest",t))(nf||{}),X2=(t=>(t[t.None=0]="None",t[t.IncludeUndefined=1]="IncludeUndefined",t[t.NoIndexSignatures=2]="NoIndexSignatures",t[t.Writing=4]="Writing",t[t.CacheSymbol=8]="CacheSymbol",t[t.AllowMissing=16]="AllowMissing",t[t.ExpressionPosition=32]="ExpressionPosition",t[t.ReportDeprecated=64]="ReportDeprecated",t[t.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",t[t.Contextual=256]="Contextual",t[t.Persistent=1]="Persistent",t))(X2||{}),hO=(t=>(t[t.None=0]="None",t[t.StringsOnly=1]="StringsOnly",t[t.NoIndexSignatures=2]="NoIndexSignatures",t[t.NoReducibleCheck=4]="NoReducibleCheck",t))(hO||{}),Y2=(t=>(t[t.Component=0]="Component",t[t.Function=1]="Function",t[t.Mixed=2]="Mixed",t))(Y2||{}),nR=(t=>(t[t.Call=0]="Call",t[t.Construct=1]="Construct",t))(nR||{}),Vm=(t=>(t[t.None=0]="None",t[t.HasRestParameter=1]="HasRestParameter",t[t.HasLiteralTypes=2]="HasLiteralTypes",t[t.Abstract=4]="Abstract",t[t.IsInnerCallChain=8]="IsInnerCallChain",t[t.IsOuterCallChain=16]="IsOuterCallChain",t[t.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",t[t.IsNonInferrable=64]="IsNonInferrable",t[t.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",t[t.PropagatingFlags=167]="PropagatingFlags",t[t.CallChainFlags=24]="CallChainFlags",t))(Vm||{}),eE=(t=>(t[t.String=0]="String",t[t.Number=1]="Number",t))(eE||{}),Ny=(t=>(t[t.Simple=0]="Simple",t[t.Array=1]="Array",t[t.Deferred=2]="Deferred",t[t.Function=3]="Function",t[t.Composite=4]="Composite",t[t.Merged=5]="Merged",t))(Ny||{}),iR=(t=>(t[t.None=0]="None",t[t.NakedTypeVariable=1]="NakedTypeVariable",t[t.SpeculativeTuple=2]="SpeculativeTuple",t[t.SubstituteSource=4]="SubstituteSource",t[t.HomomorphicMappedType=8]="HomomorphicMappedType",t[t.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",t[t.MappedTypeConstraint=32]="MappedTypeConstraint",t[t.ContravariantConditional=64]="ContravariantConditional",t[t.ReturnType=128]="ReturnType",t[t.LiteralKeyof=256]="LiteralKeyof",t[t.NoConstraints=512]="NoConstraints",t[t.AlwaysStrict=1024]="AlwaysStrict",t[t.MaxValue=2048]="MaxValue",t[t.PriorityImpliesCombination=416]="PriorityImpliesCombination",t[t.Circularity=-1]="Circularity",t))(iR||{}),w$=(t=>(t[t.None=0]="None",t[t.NoDefault=1]="NoDefault",t[t.AnyDefault=2]="AnyDefault",t[t.SkippedGenericFunction=4]="SkippedGenericFunction",t))(w$||{}),oR=(t=>(t[t.False=0]="False",t[t.Unknown=1]="Unknown",t[t.Maybe=3]="Maybe",t[t.True=-1]="True",t))(oR||{}),aR=(t=>(t[t.None=0]="None",t[t.ExportsProperty=1]="ExportsProperty",t[t.ModuleExports=2]="ModuleExports",t[t.PrototypeProperty=3]="PrototypeProperty",t[t.ThisProperty=4]="ThisProperty",t[t.Property=5]="Property",t[t.Prototype=6]="Prototype",t[t.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",t[t.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",t[t.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",t))(aR||{}),gO=(t=>(t[t.Warning=0]="Warning",t[t.Error=1]="Error",t[t.Suggestion=2]="Suggestion",t[t.Message=3]="Message",t))(gO||{});function NT(t,n=!0){let a=gO[t.category];return n?a.toLowerCase():a}var zk=(t=>(t[t.Classic=1]="Classic",t[t.NodeJs=2]="NodeJs",t[t.Node10=2]="Node10",t[t.Node16=3]="Node16",t[t.NodeNext=99]="NodeNext",t[t.Bundler=100]="Bundler",t))(zk||{}),sR=(t=>(t[t.Legacy=1]="Legacy",t[t.Auto=2]="Auto",t[t.Force=3]="Force",t))(sR||{}),cR=(t=>(t[t.FixedPollingInterval=0]="FixedPollingInterval",t[t.PriorityPollingInterval=1]="PriorityPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",t[t.UseFsEvents=4]="UseFsEvents",t[t.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",t))(cR||{}),lR=(t=>(t[t.UseFsEvents=0]="UseFsEvents",t[t.FixedPollingInterval=1]="FixedPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",t))(lR||{}),uR=(t=>(t[t.FixedInterval=0]="FixedInterval",t[t.PriorityInterval=1]="PriorityInterval",t[t.DynamicPriority=2]="DynamicPriority",t[t.FixedChunkSize=3]="FixedChunkSize",t))(uR||{}),tE=(t=>(t[t.None=0]="None",t[t.CommonJS=1]="CommonJS",t[t.AMD=2]="AMD",t[t.UMD=3]="UMD",t[t.System=4]="System",t[t.ES2015=5]="ES2015",t[t.ES2020=6]="ES2020",t[t.ES2022=7]="ES2022",t[t.ESNext=99]="ESNext",t[t.Node16=100]="Node16",t[t.Node18=101]="Node18",t[t.Node20=102]="Node20",t[t.NodeNext=199]="NodeNext",t[t.Preserve=200]="Preserve",t))(tE||{}),I$=(t=>(t[t.None=0]="None",t[t.Preserve=1]="Preserve",t[t.React=2]="React",t[t.ReactNative=3]="ReactNative",t[t.ReactJSX=4]="ReactJSX",t[t.ReactJSXDev=5]="ReactJSXDev",t))(I$||{}),OI=(t=>(t[t.Remove=0]="Remove",t[t.Preserve=1]="Preserve",t[t.Error=2]="Error",t))(OI||{}),pR=(t=>(t[t.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",t[t.LineFeed=1]="LineFeed",t))(pR||{}),m4=(t=>(t[t.Unknown=0]="Unknown",t[t.JS=1]="JS",t[t.JSX=2]="JSX",t[t.TS=3]="TS",t[t.TSX=4]="TSX",t[t.External=5]="External",t[t.JSON=6]="JSON",t[t.Deferred=7]="Deferred",t))(m4||{}),_R=(t=>(t[t.ES3=0]="ES3",t[t.ES5=1]="ES5",t[t.ES2015=2]="ES2015",t[t.ES2016=3]="ES2016",t[t.ES2017=4]="ES2017",t[t.ES2018=5]="ES2018",t[t.ES2019=6]="ES2019",t[t.ES2020=7]="ES2020",t[t.ES2021=8]="ES2021",t[t.ES2022=9]="ES2022",t[t.ES2023=10]="ES2023",t[t.ES2024=11]="ES2024",t[t.ESNext=99]="ESNext",t[t.JSON=100]="JSON",t[t.Latest=99]="Latest",t))(_R||{}),dR=(t=>(t[t.Standard=0]="Standard",t[t.JSX=1]="JSX",t))(dR||{}),yO=(t=>(t[t.None=0]="None",t[t.Recursive=1]="Recursive",t))(yO||{}),fR=(t=>(t[t.EOF=-1]="EOF",t[t.nullCharacter=0]="nullCharacter",t[t.maxAsciiCharacter=127]="maxAsciiCharacter",t[t.lineFeed=10]="lineFeed",t[t.carriageReturn=13]="carriageReturn",t[t.lineSeparator=8232]="lineSeparator",t[t.paragraphSeparator=8233]="paragraphSeparator",t[t.nextLine=133]="nextLine",t[t.space=32]="space",t[t.nonBreakingSpace=160]="nonBreakingSpace",t[t.enQuad=8192]="enQuad",t[t.emQuad=8193]="emQuad",t[t.enSpace=8194]="enSpace",t[t.emSpace=8195]="emSpace",t[t.threePerEmSpace=8196]="threePerEmSpace",t[t.fourPerEmSpace=8197]="fourPerEmSpace",t[t.sixPerEmSpace=8198]="sixPerEmSpace",t[t.figureSpace=8199]="figureSpace",t[t.punctuationSpace=8200]="punctuationSpace",t[t.thinSpace=8201]="thinSpace",t[t.hairSpace=8202]="hairSpace",t[t.zeroWidthSpace=8203]="zeroWidthSpace",t[t.narrowNoBreakSpace=8239]="narrowNoBreakSpace",t[t.ideographicSpace=12288]="ideographicSpace",t[t.mathematicalSpace=8287]="mathematicalSpace",t[t.ogham=5760]="ogham",t[t.replacementCharacter=65533]="replacementCharacter",t[t._=95]="_",t[t.$=36]="$",t[t._0=48]="_0",t[t._1=49]="_1",t[t._2=50]="_2",t[t._3=51]="_3",t[t._4=52]="_4",t[t._5=53]="_5",t[t._6=54]="_6",t[t._7=55]="_7",t[t._8=56]="_8",t[t._9=57]="_9",t[t.a=97]="a",t[t.b=98]="b",t[t.c=99]="c",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.g=103]="g",t[t.h=104]="h",t[t.i=105]="i",t[t.j=106]="j",t[t.k=107]="k",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.p=112]="p",t[t.q=113]="q",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.v=118]="v",t[t.w=119]="w",t[t.x=120]="x",t[t.y=121]="y",t[t.z=122]="z",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.ampersand=38]="ampersand",t[t.asterisk=42]="asterisk",t[t.at=64]="at",t[t.backslash=92]="backslash",t[t.backtick=96]="backtick",t[t.bar=124]="bar",t[t.caret=94]="caret",t[t.closeBrace=125]="closeBrace",t[t.closeBracket=93]="closeBracket",t[t.closeParen=41]="closeParen",t[t.colon=58]="colon",t[t.comma=44]="comma",t[t.dot=46]="dot",t[t.doubleQuote=34]="doubleQuote",t[t.equals=61]="equals",t[t.exclamation=33]="exclamation",t[t.greaterThan=62]="greaterThan",t[t.hash=35]="hash",t[t.lessThan=60]="lessThan",t[t.minus=45]="minus",t[t.openBrace=123]="openBrace",t[t.openBracket=91]="openBracket",t[t.openParen=40]="openParen",t[t.percent=37]="percent",t[t.plus=43]="plus",t[t.question=63]="question",t[t.semicolon=59]="semicolon",t[t.singleQuote=39]="singleQuote",t[t.slash=47]="slash",t[t.tilde=126]="tilde",t[t.backspace=8]="backspace",t[t.formFeed=12]="formFeed",t[t.byteOrderMark=65279]="byteOrderMark",t[t.tab=9]="tab",t[t.verticalTab=11]="verticalTab",t))(fR||{}),mR=(t=>(t.Ts=".ts",t.Tsx=".tsx",t.Dts=".d.ts",t.Js=".js",t.Jsx=".jsx",t.Json=".json",t.TsBuildInfo=".tsbuildinfo",t.Mjs=".mjs",t.Mts=".mts",t.Dmts=".d.mts",t.Cjs=".cjs",t.Cts=".cts",t.Dcts=".d.cts",t))(mR||{}),vO=(t=>(t[t.None=0]="None",t[t.ContainsTypeScript=1]="ContainsTypeScript",t[t.ContainsJsx=2]="ContainsJsx",t[t.ContainsESNext=4]="ContainsESNext",t[t.ContainsES2022=8]="ContainsES2022",t[t.ContainsES2021=16]="ContainsES2021",t[t.ContainsES2020=32]="ContainsES2020",t[t.ContainsES2019=64]="ContainsES2019",t[t.ContainsES2018=128]="ContainsES2018",t[t.ContainsES2017=256]="ContainsES2017",t[t.ContainsES2016=512]="ContainsES2016",t[t.ContainsES2015=1024]="ContainsES2015",t[t.ContainsGenerator=2048]="ContainsGenerator",t[t.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",t[t.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",t[t.ContainsLexicalThis=16384]="ContainsLexicalThis",t[t.ContainsRestOrSpread=32768]="ContainsRestOrSpread",t[t.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",t[t.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",t[t.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",t[t.ContainsBindingPattern=524288]="ContainsBindingPattern",t[t.ContainsYield=1048576]="ContainsYield",t[t.ContainsAwait=2097152]="ContainsAwait",t[t.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",t[t.ContainsDynamicImport=8388608]="ContainsDynamicImport",t[t.ContainsClassFields=16777216]="ContainsClassFields",t[t.ContainsDecorators=33554432]="ContainsDecorators",t[t.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",t[t.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",t[t.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",t[t.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",t[t.HasComputedFlags=-2147483648]="HasComputedFlags",t[t.AssertTypeScript=1]="AssertTypeScript",t[t.AssertJsx=2]="AssertJsx",t[t.AssertESNext=4]="AssertESNext",t[t.AssertES2022=8]="AssertES2022",t[t.AssertES2021=16]="AssertES2021",t[t.AssertES2020=32]="AssertES2020",t[t.AssertES2019=64]="AssertES2019",t[t.AssertES2018=128]="AssertES2018",t[t.AssertES2017=256]="AssertES2017",t[t.AssertES2016=512]="AssertES2016",t[t.AssertES2015=1024]="AssertES2015",t[t.AssertGenerator=2048]="AssertGenerator",t[t.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",t[t.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",t[t.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",t[t.NodeExcludes=-2147483648]="NodeExcludes",t[t.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",t[t.FunctionExcludes=-1937940480]="FunctionExcludes",t[t.ConstructorExcludes=-1937948672]="ConstructorExcludes",t[t.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",t[t.PropertyExcludes=-2013249536]="PropertyExcludes",t[t.ClassExcludes=-2147344384]="ClassExcludes",t[t.ModuleExcludes=-1941676032]="ModuleExcludes",t[t.TypeExcludes=-2]="TypeExcludes",t[t.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",t[t.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",t[t.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",t[t.ParameterExcludes=-2147483648]="ParameterExcludes",t[t.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",t[t.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",t[t.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",t[t.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",t))(vO||{}),hR=(t=>(t[t.TabStop=0]="TabStop",t[t.Placeholder=1]="Placeholder",t[t.Choice=2]="Choice",t[t.Variable=3]="Variable",t))(hR||{}),SO=(t=>(t[t.None=0]="None",t[t.SingleLine=1]="SingleLine",t[t.MultiLine=2]="MultiLine",t[t.AdviseOnEmitNode=4]="AdviseOnEmitNode",t[t.NoSubstitution=8]="NoSubstitution",t[t.CapturesThis=16]="CapturesThis",t[t.NoLeadingSourceMap=32]="NoLeadingSourceMap",t[t.NoTrailingSourceMap=64]="NoTrailingSourceMap",t[t.NoSourceMap=96]="NoSourceMap",t[t.NoNestedSourceMaps=128]="NoNestedSourceMaps",t[t.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",t[t.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",t[t.NoTokenSourceMaps=768]="NoTokenSourceMaps",t[t.NoLeadingComments=1024]="NoLeadingComments",t[t.NoTrailingComments=2048]="NoTrailingComments",t[t.NoComments=3072]="NoComments",t[t.NoNestedComments=4096]="NoNestedComments",t[t.HelperName=8192]="HelperName",t[t.ExportName=16384]="ExportName",t[t.LocalName=32768]="LocalName",t[t.InternalName=65536]="InternalName",t[t.Indented=131072]="Indented",t[t.NoIndentation=262144]="NoIndentation",t[t.AsyncFunctionBody=524288]="AsyncFunctionBody",t[t.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",t[t.CustomPrologue=2097152]="CustomPrologue",t[t.NoHoisting=4194304]="NoHoisting",t[t.Iterator=8388608]="Iterator",t[t.NoAsciiEscaping=16777216]="NoAsciiEscaping",t))(SO||{}),P$=(t=>(t[t.None=0]="None",t[t.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",t[t.NeverApplyImportHelper=2]="NeverApplyImportHelper",t[t.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",t[t.Immutable=8]="Immutable",t[t.IndirectCall=16]="IndirectCall",t[t.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",t))(P$||{}),C_={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},gR=(t=>(t[t.Extends=1]="Extends",t[t.Assign=2]="Assign",t[t.Rest=4]="Rest",t[t.Decorate=8]="Decorate",t[t.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",t[t.Metadata=16]="Metadata",t[t.Param=32]="Param",t[t.Awaiter=64]="Awaiter",t[t.Generator=128]="Generator",t[t.Values=256]="Values",t[t.Read=512]="Read",t[t.SpreadArray=1024]="SpreadArray",t[t.Await=2048]="Await",t[t.AsyncGenerator=4096]="AsyncGenerator",t[t.AsyncDelegator=8192]="AsyncDelegator",t[t.AsyncValues=16384]="AsyncValues",t[t.ExportStar=32768]="ExportStar",t[t.ImportStar=65536]="ImportStar",t[t.ImportDefault=131072]="ImportDefault",t[t.MakeTemplateObject=262144]="MakeTemplateObject",t[t.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",t[t.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",t[t.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",t[t.SetFunctionName=4194304]="SetFunctionName",t[t.PropKey=8388608]="PropKey",t[t.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",t[t.RewriteRelativeImportExtension=33554432]="RewriteRelativeImportExtension",t[t.FirstEmitHelper=1]="FirstEmitHelper",t[t.LastEmitHelper=16777216]="LastEmitHelper",t[t.ForOfIncludes=256]="ForOfIncludes",t[t.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",t[t.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",t[t.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",t[t.SpreadIncludes=1536]="SpreadIncludes",t))(gR||{}),rE=(t=>(t[t.SourceFile=0]="SourceFile",t[t.Expression=1]="Expression",t[t.IdentifierName=2]="IdentifierName",t[t.MappedTypeParameter=3]="MappedTypeParameter",t[t.Unspecified=4]="Unspecified",t[t.EmbeddedStatement=5]="EmbeddedStatement",t[t.JsxAttributeValue=6]="JsxAttributeValue",t[t.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",t))(rE||{}),N$=(t=>(t[t.Parentheses=1]="Parentheses",t[t.TypeAssertions=2]="TypeAssertions",t[t.NonNullAssertions=4]="NonNullAssertions",t[t.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",t[t.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",t[t.Satisfies=32]="Satisfies",t[t.Assertions=38]="Assertions",t[t.All=63]="All",t[t.ExcludeJSDocTypeAssertion=-2147483648]="ExcludeJSDocTypeAssertion",t))(N$||{}),h4=(t=>(t[t.None=0]="None",t[t.InParameters=1]="InParameters",t[t.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",t))(h4||{}),FI=(t=>(t[t.None=0]="None",t[t.SingleLine=0]="SingleLine",t[t.MultiLine=1]="MultiLine",t[t.PreserveLines=2]="PreserveLines",t[t.LinesMask=3]="LinesMask",t[t.NotDelimited=0]="NotDelimited",t[t.BarDelimited=4]="BarDelimited",t[t.AmpersandDelimited=8]="AmpersandDelimited",t[t.CommaDelimited=16]="CommaDelimited",t[t.AsteriskDelimited=32]="AsteriskDelimited",t[t.DelimitersMask=60]="DelimitersMask",t[t.AllowTrailingComma=64]="AllowTrailingComma",t[t.Indented=128]="Indented",t[t.SpaceBetweenBraces=256]="SpaceBetweenBraces",t[t.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",t[t.Braces=1024]="Braces",t[t.Parenthesis=2048]="Parenthesis",t[t.AngleBrackets=4096]="AngleBrackets",t[t.SquareBrackets=8192]="SquareBrackets",t[t.BracketsMask=15360]="BracketsMask",t[t.OptionalIfUndefined=16384]="OptionalIfUndefined",t[t.OptionalIfEmpty=32768]="OptionalIfEmpty",t[t.Optional=49152]="Optional",t[t.PreferNewLine=65536]="PreferNewLine",t[t.NoTrailingNewLine=131072]="NoTrailingNewLine",t[t.NoInterveningComments=262144]="NoInterveningComments",t[t.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",t[t.SingleElement=1048576]="SingleElement",t[t.SpaceAfterList=2097152]="SpaceAfterList",t[t.Modifiers=2359808]="Modifiers",t[t.HeritageClauses=512]="HeritageClauses",t[t.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",t[t.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",t[t.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",t[t.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",t[t.UnionTypeConstituents=516]="UnionTypeConstituents",t[t.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",t[t.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",t[t.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",t[t.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",t[t.ImportAttributes=526226]="ImportAttributes",t[t.ImportClauseEntries=526226]="ImportClauseEntries",t[t.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",t[t.CommaListElements=528]="CommaListElements",t[t.CallExpressionArguments=2576]="CallExpressionArguments",t[t.NewExpressionArguments=18960]="NewExpressionArguments",t[t.TemplateExpressionSpans=262144]="TemplateExpressionSpans",t[t.SingleLineBlockStatements=768]="SingleLineBlockStatements",t[t.MultiLineBlockStatements=129]="MultiLineBlockStatements",t[t.VariableDeclarationList=528]="VariableDeclarationList",t[t.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",t[t.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",t[t.ClassHeritageClauses=0]="ClassHeritageClauses",t[t.ClassMembers=129]="ClassMembers",t[t.InterfaceMembers=129]="InterfaceMembers",t[t.EnumMembers=145]="EnumMembers",t[t.CaseBlockClauses=129]="CaseBlockClauses",t[t.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",t[t.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",t[t.JsxElementAttributes=262656]="JsxElementAttributes",t[t.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",t[t.HeritageClauseTypes=528]="HeritageClauseTypes",t[t.SourceFileStatements=131073]="SourceFileStatements",t[t.Decorators=2146305]="Decorators",t[t.TypeArguments=53776]="TypeArguments",t[t.TypeParameters=53776]="TypeParameters",t[t.Parameters=2576]="Parameters",t[t.IndexSignatureParameters=8848]="IndexSignatureParameters",t[t.JSDocComment=33]="JSDocComment",t))(FI||{}),g4=(t=>(t[t.None=0]="None",t[t.TripleSlashXML=1]="TripleSlashXML",t[t.SingleLine=2]="SingleLine",t[t.MultiLine=4]="MultiLine",t[t.All=7]="All",t[t.Default=7]="Default",t))(g4||{}),y4={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},RI=(t=>(t[t.ParseAll=0]="ParseAll",t[t.ParseNone=1]="ParseNone",t[t.ParseForTypeErrors=2]="ParseForTypeErrors",t[t.ParseForTypeInfo=3]="ParseForTypeInfo",t))(RI||{});function qk(t){let n=5381;for(let a=0;a(t[t.Created=0]="Created",t[t.Changed=1]="Changed",t[t.Deleted=2]="Deleted",t))(v4||{}),yR=(t=>(t[t.High=2e3]="High",t[t.Medium=500]="Medium",t[t.Low=250]="Low",t))(yR||{}),Wm=new Date(0);function OT(t,n){return t.getModifiedTime(n)||Wm}function O$(t){return{250:t.Low,500:t.Medium,2e3:t.High}}var bO={Low:32,Medium:64,High:256},xO=O$(bO),LI=O$(bO);function Ste(t){if(!t.getEnvironmentVariable)return;let n=u("TSC_WATCH_POLLINGINTERVAL",yR);xO=_("TSC_WATCH_POLLINGCHUNKSIZE",bO)||xO,LI=_("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",bO)||LI;function a(f,y){return t.getEnvironmentVariable(`${f}_${y.toUpperCase()}`)}function c(f){let y;return g("Low"),g("Medium"),g("High"),y;function g(k){let T=a(f,k);T&&((y||(y={}))[k]=Number(T))}}function u(f,y){let g=c(f);if(g)return k("Low"),k("Medium"),k("High"),!0;return!1;function k(T){y[T]=g[T]||y[T]}}function _(f,y){let g=c(f);return(n||g)&&O$(g?{...y,...g}:y)}}function FW(t,n,a,c,u){let _=a;for(let y=n.length;c&&y;f(),y--){let g=n[a];if(g){if(g.isClosed){n[a]=void 0;continue}}else continue;c--;let k=jW(g,OT(t,g.fileName));if(g.isClosed){n[a]=void 0;continue}u?.(g,a,k),n[a]&&(_{Q.isClosed=!0,pb(n,Q)}}}function y(J){let G=[];return G.pollingInterval=J,G.pollIndex=0,G.pollScheduled=!1,G}function g(J,G){G.pollIndex=T(G,G.pollingInterval,G.pollIndex,xO[G.pollingInterval]),G.length?U(G.pollingInterval):($.assert(G.pollIndex===0),G.pollScheduled=!1)}function k(J,G){T(a,250,0,a.length),g(J,G),!G.pollScheduled&&a.length&&U(250)}function T(J,G,Z,Q){return FW(t,J,Z,Q,re);function re(ae,_e,me){me?(ae.unchangedPolls=0,J!==a&&(J[_e]=void 0,F(ae))):ae.unchangedPolls!==LI[G]?ae.unchangedPolls++:J===a?(ae.unchangedPolls=1,J[_e]=void 0,O(ae,250)):G!==2e3&&(ae.unchangedPolls++,J[_e]=void 0,O(ae,G===250?500:2e3))}}function C(J){switch(J){case 250:return c;case 500:return u;case 2e3:return _}}function O(J,G){C(G).push(J),M(G)}function F(J){a.push(J),M(250)}function M(J){C(J).pollScheduled||U(J)}function U(J){C(J).pollScheduled=t.setTimeout(J===250?k:g,J,J===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",C(J))}}function bte(t,n,a,c){let u=d_(),_=c?new Map:void 0,f=new Map,y=_d(n);return g;function g(T,C,O,F){let M=y(T);u.add(M,C).length===1&&_&&_.set(M,a(T)||Wm);let U=mo(M)||".",J=f.get(U)||k(mo(T)||".",U,F);return J.referenceCount++,{close:()=>{J.referenceCount===1?(J.close(),f.delete(U)):J.referenceCount--,u.remove(M,C)}}}function k(T,C,O){let F=t(T,1,(M,U)=>{if(!Ni(U))return;let J=za(U,T),G=y(J),Z=J&&u.get(G);if(Z){let Q,re=1;if(_){let ae=_.get(G);if(M==="change"&&(Q=a(J)||Wm,Q.getTime()===ae.getTime()))return;Q||(Q=a(J)||Wm),_.set(G,Q),ae===Wm?re=0:Q===Wm&&(re=2)}for(let ae of Z)ae(J,re,Q)}},!1,500,O);return F.referenceCount=0,f.set(C,F),F}}function LW(t){let n=[],a=0,c;return u;function u(y,g){let k={fileName:y,callback:g,mtime:OT(t,y)};return n.push(k),f(),{close:()=>{k.isClosed=!0,pb(n,k)}}}function _(){c=void 0,a=FW(t,n,a,xO[250]),f()}function f(){!n.length||c||(c=t.setTimeout(_,2e3,"pollQueue"))}}function MW(t,n,a,c,u){let f=_d(n)(a),y=t.get(f);return y?y.callbacks.push(c):t.set(f,{watcher:u((g,k,T)=>{var C;return(C=t.get(f))==null?void 0:C.callbacks.slice().forEach(O=>O(g,k,T))}),callbacks:[c]}),{close:()=>{let g=t.get(f);g&&(!IT(g.callbacks,c)||g.callbacks.length||(t.delete(f),C0(g)))}}}function jW(t,n){let a=t.mtime.getTime(),c=n.getTime();return a!==c?(t.mtime=n,t.callback(t.fileName,S4(a,c),n),!0):!1}function S4(t,n){return t===0?0:n===0?2:1}var b4=["/node_modules/.","/.git","/.#"],BW=zs;function Oy(t){return BW(t)}function lS(t){BW=t}function MI({watchDirectory:t,useCaseSensitiveFileNames:n,getCurrentDirectory:a,getAccessibleSortedChildDirectories:c,fileSystemEntryExists:u,realpath:_,setTimeout:f,clearTimeout:y}){let g=new Map,k=d_(),T=new Map,C,O=ub(!n),F=_d(n);return(le,Oe,be,ue)=>be?M(le,ue,Oe):t(le,Oe,be,ue);function M(le,Oe,be,ue){let De=F(le),Ce=g.get(De);Ce?Ce.refCount++:(Ce={watcher:t(le,Fe=>{var Be;_e(Fe,Oe)||(Oe?.synchronousWatchDirectory?((Be=g.get(De))!=null&&Be.targetWatcher||U(le,De,Fe),ae(le,De,Oe)):J(le,De,Fe,Oe))},!1,Oe),refCount:1,childWatches:j,targetWatcher:void 0,links:void 0},g.set(De,Ce),ae(le,De,Oe)),ue&&(Ce.links??(Ce.links=new Set)).add(ue);let Ae=be&&{dirName:le,callback:be};return Ae&&k.add(De,Ae),{dirName:le,close:()=>{var Fe;let Be=$.checkDefined(g.get(De));Ae&&k.remove(De,Ae),ue&&((Fe=Be.links)==null||Fe.delete(ue)),Be.refCount--,!Be.refCount&&(g.delete(De),Be.links=void 0,C0(Be),re(Be),Be.childWatches.forEach(W1))}}}function U(le,Oe,be,ue){var De,Ce;let Ae,Fe;Ni(be)?Ae=be:Fe=be,k.forEach((Be,de)=>{if(!(Fe&&Fe.get(de)===!0)&&(de===Oe||Ca(Oe,de)&&Oe[de.length]===Gl))if(Fe)if(ue){let ze=Fe.get(de);ze?ze.push(...ue):Fe.set(de,ue.slice())}else Fe.set(de,!0);else Be.forEach(({callback:ze})=>ze(Ae))}),(Ce=(De=g.get(Oe))==null?void 0:De.links)==null||Ce.forEach(Be=>{let de=ze=>Xi(Be,lh(le,ze,F));Fe?U(Be,F(Be),Fe,ue?.map(de)):U(Be,F(Be),de(Ae))})}function J(le,Oe,be,ue){let De=g.get(Oe);if(De&&u(le,1)){G(le,Oe,be,ue);return}U(le,Oe,be),re(De),Q(De)}function G(le,Oe,be,ue){let De=T.get(Oe);De?De.fileNames.push(be):T.set(Oe,{dirName:le,options:ue,fileNames:[be]}),C&&(y(C),C=void 0),C=f(Z,1e3,"timerToUpdateChildWatches")}function Z(){var le;C=void 0,Oy(`sysLog:: onTimerToUpdateChildWatches:: ${T.size}`);let Oe=Ml(),be=new Map;for(;!C&&T.size;){let De=T.entries().next();$.assert(!De.done);let{value:[Ce,{dirName:Ae,options:Fe,fileNames:Be}]}=De;T.delete(Ce);let de=ae(Ae,Ce,Fe);(le=g.get(Ce))!=null&&le.targetWatcher||U(Ae,Ce,be,de?void 0:Be)}Oy(`sysLog:: invokingWatchers:: Elapsed:: ${Ml()-Oe}ms:: ${T.size}`),k.forEach((De,Ce)=>{let Ae=be.get(Ce);Ae&&De.forEach(({callback:Fe,dirName:Be})=>{Zn(Ae)?Ae.forEach(Fe):Fe(Be)})});let ue=Ml()-Oe;Oy(`sysLog:: Elapsed:: ${ue}ms:: onTimerToUpdateChildWatches:: ${T.size} ${C}`)}function Q(le){if(!le)return;let Oe=le.childWatches;le.childWatches=j;for(let be of Oe)be.close(),Q(g.get(F(be.dirName)))}function re(le){le?.targetWatcher&&(le.targetWatcher.close(),le.targetWatcher=void 0)}function ae(le,Oe,be){let ue=g.get(Oe);if(!ue)return!1;let De=Qs(_(le)),Ce,Ae;return O(De,le)===0?Ce=kI(u(le,1)?Wn(c(le),de=>{let ze=za(de,le);return!_e(ze,be)&&O(ze,Qs(_(ze)))===0?ze:void 0}):j,ue.childWatches,(de,ze)=>O(de,ze.dirName),Fe,W1,Be):ue.targetWatcher&&O(De,ue.targetWatcher.dirName)===0?(Ce=!1,$.assert(ue.childWatches===j)):(re(ue),ue.targetWatcher=M(De,be,void 0,le),ue.childWatches.forEach(W1),Ce=!0),ue.childWatches=Ae||j,Ce;function Fe(de){let ze=M(de,be);Be(ze)}function Be(de){(Ae||(Ae=[])).push(de)}}function _e(le,Oe){return Pt(b4,be=>me(le,be))||UW(le,Oe,n,a)}function me(le,Oe){return le.includes(Oe)?!0:n?!1:F(le).includes(Oe)}}var TO=(t=>(t[t.File=0]="File",t[t.Directory=1]="Directory",t))(TO||{});function $W(t){return(n,a,c)=>t(a===1?"change":"rename","",c)}function vR(t,n,a){return(c,u,_)=>{c==="rename"?(_||(_=a(t)||Wm),n(t,_!==Wm?0:2,_)):n(t,1,_)}}function UW(t,n,a,c){return(n?.excludeDirectories||n?.excludeFiles)&&(bie(t,n?.excludeFiles,a,c())||bie(t,n?.excludeDirectories,a,c()))}function SR(t,n,a,c,u){return(_,f)=>{if(_==="rename"){let y=f?Qs(Xi(t,f)):t;(!f||!UW(y,a,c,u))&&n(y)}}}function F$({pollingWatchFileWorker:t,getModifiedTime:n,setTimeout:a,clearTimeout:c,fsWatchWorker:u,fileSystemEntryExists:_,useCaseSensitiveFileNames:f,getCurrentDirectory:y,fsSupportsRecursiveFsWatch:g,getAccessibleSortedChildDirectories:k,realpath:T,tscWatchFile:C,useNonPollingWatchers:O,tscWatchDirectory:F,inodeWatching:M,fsWatchWithTimestamp:U,sysLog:J}){let G=new Map,Z=new Map,Q=new Map,re,ae,_e,me,le=!1;return{watchFile:Oe,watchDirectory:Ae};function Oe(ve,Le,Ve,nt){nt=De(nt,O);let It=$.checkDefined(nt.watchFile);switch(It){case 0:return de(ve,Le,250,void 0);case 1:return de(ve,Le,Ve,void 0);case 2:return be()(ve,Le,Ve,void 0);case 3:return ue()(ve,Le,void 0,void 0);case 4:return ze(ve,0,vR(ve,Le,n),!1,Ve,CK(nt));case 5:return _e||(_e=bte(ze,f,n,U)),_e(ve,Le,Ve,CK(nt));default:$.assertNever(It)}}function be(){return re||(re=RW({getModifiedTime:n,setTimeout:a}))}function ue(){return ae||(ae=LW({getModifiedTime:n,setTimeout:a}))}function De(ve,Le){if(ve&&ve.watchFile!==void 0)return ve;switch(C){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return Ce(4,1,ve);case"UseFsEventsWithFallbackDynamicPolling":return Ce(4,2,ve);case"UseFsEventsOnParentDirectory":Le=!0;default:return Le?Ce(5,1,ve):{watchFile:4}}}function Ce(ve,Le,Ve){let nt=Ve?.fallbackPolling;return{watchFile:ve,fallbackPolling:nt===void 0?Le:nt}}function Ae(ve,Le,Ve,nt){return g?ze(ve,1,SR(ve,Le,nt,f,y),Ve,500,CK(nt)):(me||(me=MI({useCaseSensitiveFileNames:f,getCurrentDirectory:y,fileSystemEntryExists:_,getAccessibleSortedChildDirectories:k,watchDirectory:Fe,realpath:T,setTimeout:a,clearTimeout:c})),me(ve,Le,Ve,nt))}function Fe(ve,Le,Ve,nt){$.assert(!Ve);let It=Be(nt),ke=$.checkDefined(It.watchDirectory);switch(ke){case 1:return de(ve,()=>Le(ve),500,void 0);case 2:return be()(ve,()=>Le(ve),500,void 0);case 3:return ue()(ve,()=>Le(ve),void 0,void 0);case 0:return ze(ve,1,SR(ve,Le,nt,f,y),Ve,500,CK(It));default:$.assertNever(ke)}}function Be(ve){if(ve&&ve.watchDirectory!==void 0)return ve;switch(F){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:let Le=ve?.fallbackPolling;return{watchDirectory:0,fallbackPolling:Le!==void 0?Le:void 0}}}function de(ve,Le,Ve,nt){return MW(G,f,ve,Le,It=>t(ve,It,Ve,nt))}function ze(ve,Le,Ve,nt,It,ke){return MW(nt?Q:Z,f,ve,Ve,_t=>ut(ve,Le,_t,nt,It,ke))}function ut(ve,Le,Ve,nt,It,ke){let _t,Se;M&&(_t=ve.substring(ve.lastIndexOf(Gl)),Se=_t.slice(Gl.length));let tt=_(ve,Le)?We():Sr();return{close:()=>{tt&&(tt.close(),tt=void 0)}};function Qe(nn){tt&&(J(`sysLog:: ${ve}:: Changing watcher to ${nn===We?"Present":"Missing"}FileSystemEntryWatcher`),tt.close(),tt=nn())}function We(){if(le)return J(`sysLog:: ${ve}:: Defaulting to watchFile`),Kt();try{let nn=(Le===1||!U?u:je)(ve,nt,M?St:Ve);return nn.on("error",()=>{Ve("rename",""),Qe(Sr)}),nn}catch(nn){return le||(le=nn.code==="ENOSPC"),J(`sysLog:: ${ve}:: Changing to watchFile`),Kt()}}function St(nn,Nn){let $t;if(Nn&&au(Nn,"~")&&($t=Nn,Nn=Nn.slice(0,Nn.length-1)),nn==="rename"&&(!Nn||Nn===Se||au(Nn,_t))){let Dr=n(ve)||Wm;$t&&Ve(nn,$t,Dr),Ve(nn,Nn,Dr),M?Qe(Dr===Wm?Sr:We):Dr===Wm&&Qe(Sr)}else $t&&Ve(nn,$t),Ve(nn,Nn)}function Kt(){return Oe(ve,$W(Ve),It,ke)}function Sr(){return Oe(ve,(nn,Nn,$t)=>{Nn===0&&($t||($t=n(ve)||Wm),$t!==Wm&&(Ve("rename","",$t),Qe(We)))},It,ke)}}function je(ve,Le,Ve){let nt=n(ve)||Wm;return u(ve,Le,(It,ke,_t)=>{It==="change"&&(_t||(_t=n(ve)||Wm),_t.getTime()===nt.getTime())||(nt=_t||n(ve)||Wm,Ve(It,ke,nt))})}}function bR(t){let n=t.writeFile;t.writeFile=(a,c,u)=>mhe(a,c,!!u,(_,f,y)=>n.call(t,_,f,y),_=>t.createDirectory(_),_=>t.directoryExists(_))}var f_=(()=>{function n(){let c=/^native |^\([^)]+\)$|^(?:internal[\\/]|[\w\s]+(?:\.js)?$)/,u=a0("fs"),_=a0("path"),f=a0("os"),y;try{y=a0("crypto")}catch{y=void 0}let g,k="./profile.cpuprofile",T=process.platform==="darwin",C=process.platform==="linux"||T,O={throwIfNoEntry:!1},F=f.platform(),M=be(),U=u.realpathSync.native?process.platform==="win32"?Le:u.realpathSync.native:u.realpathSync,J=__filename.endsWith("sys.js")?_.join(_.dirname(__dirname),"__fake__.js"):__filename,G=process.platform==="win32"||T,Z=Ef(()=>process.cwd()),{watchFile:Q,watchDirectory:re}=F$({pollingWatchFileWorker:De,getModifiedTime:nt,setTimeout,clearTimeout,fsWatchWorker:Ce,useCaseSensitiveFileNames:M,getCurrentDirectory:Z,fileSystemEntryExists:ze,fsSupportsRecursiveFsWatch:G,getAccessibleSortedChildDirectories:Se=>Be(Se).directories,realpath:Ve,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:C,fsWatchWithTimestamp:T,sysLog:Oy}),ae={args:process.argv.slice(2),newLine:f.EOL,useCaseSensitiveFileNames:M,write(Se){process.stdout.write(Se)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:Ae,writeFile:Fe,watchFile:Q,watchDirectory:re,preferNonRecursiveWatch:!G,resolvePath:Se=>_.resolve(Se),fileExists:ut,directoryExists:je,getAccessibleFileSystemEntries:Be,createDirectory(Se){if(!ae.directoryExists(Se))try{u.mkdirSync(Se)}catch(tt){if(tt.code!=="EEXIST")throw tt}},getExecutingFilePath(){return J},getCurrentDirectory:Z,getDirectories:ve,getEnvironmentVariable(Se){return process.env[Se]||""},readDirectory:de,getModifiedTime:nt,setModifiedTime:It,deleteFile:ke,createHash:y?_t:qk,createSHA256Hash:y?_t:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(Se){let tt=_e(Se);return tt?.isFile()?tt.size:0},exit(Se){Oe(()=>process.exit(Se))},enableCPUProfiler:me,disableCPUProfiler:Oe,cpuProfilingEnabled:()=>!!g||un(process.execArgv,"--cpu-prof")||un(process.execArgv,"--prof"),realpath:Ve,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||Pt(process.execArgv,Se=>/^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(Se))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{a0("source-map-support").install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1B[2J\x1B[3J\x1B[H")},setBlocking:()=>{var Se;let tt=(Se=process.stdout)==null?void 0:Se._handle;tt&&tt.setBlocking&&tt.setBlocking(!0)},base64decode:Se=>Buffer.from(Se,"base64").toString("utf8"),base64encode:Se=>Buffer.from(Se).toString("base64"),require:(Se,tt)=>{try{let Qe=s8e(tt,Se,ae);return{module:a0(Qe),modulePath:Qe,error:void 0}}catch(Qe){return{module:void 0,modulePath:void 0,error:Qe}}}};return ae;function _e(Se){try{return u.statSync(Se,O)}catch{return}}function me(Se,tt){if(g)return tt(),!1;let Qe=a0("inspector");if(!Qe||!Qe.Session)return tt(),!1;let We=new Qe.Session;return We.connect(),We.post("Profiler.enable",()=>{We.post("Profiler.start",()=>{g=We,k=Se,tt()})}),!0}function le(Se){let tt=0,Qe=new Map,We=Z_(_.dirname(J)),St=`file://${Fy(We)===1?"":"/"}${We}`;for(let Kt of Se.nodes)if(Kt.callFrame.url){let Sr=Z_(Kt.callFrame.url);ug(St,Sr,M)?Kt.callFrame.url=FT(St,Sr,St,_d(M),!0):c.test(Sr)||(Kt.callFrame.url=(Qe.has(Sr)?Qe:Qe.set(Sr,`external${tt}.js`)).get(Sr),tt++)}return Se}function Oe(Se){if(g&&g!=="stopping"){let tt=g;return g.post("Profiler.stop",(Qe,{profile:We})=>{var St;if(!Qe){(St=_e(k))!=null&&St.isDirectory()&&(k=_.join(k,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`));try{u.mkdirSync(_.dirname(k),{recursive:!0})}catch{}u.writeFileSync(k,JSON.stringify(le(We)))}g=void 0,tt.disconnect(),Se()}),g="stopping",!0}else return Se(),!1}function be(){return F==="win32"||F==="win64"?!1:!ut(ue(__filename))}function ue(Se){return Se.replace(/\w/g,tt=>{let Qe=tt.toUpperCase();return tt===Qe?tt.toLowerCase():Qe})}function De(Se,tt,Qe){u.watchFile(Se,{persistent:!0,interval:Qe},St);let We;return{close:()=>u.unwatchFile(Se,St)};function St(Kt,Sr){let nn=+Sr.mtime==0||We===2;if(+Kt.mtime==0){if(nn)return;We=2}else if(nn)We=0;else{if(+Kt.mtime==+Sr.mtime)return;We=1}tt(Se,We,Kt.mtime)}}function Ce(Se,tt,Qe){return u.watch(Se,G?{persistent:!0,recursive:!!tt}:{persistent:!0},Qe)}function Ae(Se,tt){let Qe;try{Qe=u.readFileSync(Se)}catch{return}let We=Qe.length;if(We>=2&&Qe[0]===254&&Qe[1]===255){We&=-2;for(let St=0;St=2&&Qe[0]===255&&Qe[1]===254?Qe.toString("utf16le",2):We>=3&&Qe[0]===239&&Qe[1]===187&&Qe[2]===191?Qe.toString("utf8",3):Qe.toString("utf8")}function Fe(Se,tt,Qe){Qe&&(tt="\uFEFF"+tt);let We;try{We=u.openSync(Se,"w"),u.writeSync(We,tt,void 0,"utf8")}finally{We!==void 0&&u.closeSync(We)}}function Be(Se){try{let tt=u.readdirSync(Se||".",{withFileTypes:!0}),Qe=[],We=[];for(let St of tt){let Kt=typeof St=="string"?St:St.name;if(Kt==="."||Kt==="..")continue;let Sr;if(typeof St=="string"||St.isSymbolicLink()){let nn=Xi(Se,Kt);if(Sr=_e(nn),!Sr)continue}else Sr=St;Sr.isFile()?Qe.push(Kt):Sr.isDirectory()&&We.push(Kt)}return Qe.sort(),We.sort(),{files:Qe,directories:We}}catch{return Qhe}}function de(Se,tt,Qe,We,St){return Whe(Se,tt,Qe,We,M,process.cwd(),St,Be,Ve)}function ze(Se,tt){let Qe=_e(Se);if(!Qe)return!1;switch(tt){case 0:return Qe.isFile();case 1:return Qe.isDirectory();default:return!1}}function ut(Se){return ze(Se,0)}function je(Se){return ze(Se,1)}function ve(Se){return Be(Se).directories.slice()}function Le(Se){return Se.length<260?u.realpathSync.native(Se):u.realpathSync(Se)}function Ve(Se){try{return U(Se)}catch{return Se}}function nt(Se){var tt;return(tt=_e(Se))==null?void 0:tt.mtime}function It(Se,tt){try{u.utimesSync(Se,tt,tt)}catch{return}}function ke(Se){try{return u.unlinkSync(Se)}catch{return}}function _t(Se){let tt=y.createHash("sha256");return tt.update(Se),tt.digest("hex")}}let a;return rO()&&(a=n()),a&&bR(a),a})();function R$(t){f_=t}f_&&f_.getEnvironmentVariable&&(Ste(f_),$.setAssertionLevel(/^development$/i.test(f_.getEnvironmentVariable("NODE_ENV"))?1:0)),f_&&f_.debugMode&&($.isDebugging=!0);var Gl="/",x4="\\",xR="://",L$=/\\/g;function XD(t){return t===47||t===92}function TR(t){return kO(t)<0}function qd(t){return kO(t)>0}function jI(t){let n=kO(t);return n>0&&n===t.length}function YD(t){return kO(t)!==0}function ch(t){return/^\.\.?(?:$|[\\/])/.test(t)}function EO(t){return!YD(t)&&!ch(t)}function eA(t){return t_(t).includes(".")}function Au(t,n){return t.length>n.length&&au(t,n)}function _p(t,n){for(let a of n)if(Au(t,a))return!0;return!1}function uS(t){return t.length>0&&XD(t.charCodeAt(t.length-1))}function zW(t){return t>=97&&t<=122||t>=65&&t<=90}function qW(t,n){let a=t.charCodeAt(n);if(a===58)return n+1;if(a===37&&t.charCodeAt(n+1)===51){let c=t.charCodeAt(n+2);if(c===97||c===65)return n+3}return-1}function kO(t){if(!t)return 0;let n=t.charCodeAt(0);if(n===47||n===92){if(t.charCodeAt(1)!==n)return 1;let c=t.indexOf(n===47?Gl:x4,2);return c<0?t.length:c+1}if(zW(n)&&t.charCodeAt(1)===58){let c=t.charCodeAt(2);if(c===47||c===92)return 3;if(t.length===2)return 2}let a=t.indexOf(xR);if(a!==-1){let c=a+xR.length,u=t.indexOf(Gl,c);if(u!==-1){let _=t.slice(0,a),f=t.slice(c,u);if(_==="file"&&(f===""||f==="localhost")&&zW(t.charCodeAt(u+1))){let y=qW(t,u+2);if(y!==-1){if(t.charCodeAt(y)===47)return~(y+1);if(y===t.length)return~y}}return~(u+1)}return~t.length}return 0}function Fy(t){let n=kO(t);return n<0?~n:n}function mo(t){t=Z_(t);let n=Fy(t);return n===t.length?t:(t=dv(t),t.slice(0,Math.max(n,t.lastIndexOf(Gl))))}function t_(t,n,a){if(t=Z_(t),Fy(t)===t.length)return"";t=dv(t);let u=t.slice(Math.max(Fy(t),t.lastIndexOf(Gl)+1)),_=n!==void 0&&a!==void 0?nE(u,n,a):void 0;return _?u.slice(0,u.length-_.length):u}function M$(t,n,a){if(Ca(n,".")||(n="."+n),t.length>=n.length&&t.charCodeAt(t.length-n.length)===46){let c=t.slice(t.length-n.length);if(a(c,n))return c}}function xte(t,n,a){if(typeof n=="string")return M$(t,n,a)||"";for(let c of n){let u=M$(t,c,a);if(u)return u}return""}function nE(t,n,a){if(n)return xte(dv(t),n,a?F1:qm);let c=t_(t),u=c.lastIndexOf(".");return u>=0?c.substring(u):""}function Tte(t,n){let a=t.substring(0,n),c=t.substring(n).split(Gl);return c.length&&!Yr(c)&&c.pop(),[a,...c]}function Cd(t,n=""){return t=Xi(n,t),Tte(t,Fy(t))}function pS(t,n){return t.length===0?"":(t[0]&&r_(t[0]))+t.slice(1,n).join(Gl)}function Z_(t){return t.includes("\\")?t.replace(L$,Gl):t}function iE(t){if(!Pt(t))return[];let n=[t[0]];for(let a=1;a1){if(n[n.length-1]!==".."){n.pop();continue}}else if(n[0])continue}n.push(c)}}return n}function Xi(t,...n){t&&(t=Z_(t));for(let a of n)a&&(a=Z_(a),!t||Fy(a)!==0?t=a:t=r_(t)+a);return t}function mb(t,...n){return Qs(Pt(n)?Xi(t,...n):Z_(t))}function Jk(t,n){return iE(Cd(t,n))}function za(t,n){let a=Fy(t);a===0&&n?(t=Xi(n,t),a=Fy(t)):t=Z_(t);let c=JW(t);if(c!==void 0)return c.length>a?dv(c):c;let u=t.length,_=t.substring(0,a),f,y=a,g=y,k=y,T=a!==0;for(;yg&&(f??(f=t.substring(0,g-1)),g=y);let O=t.indexOf(Gl,y+1);O===-1&&(O=u);let F=O-g;if(F===1&&t.charCodeAt(y)===46)f??(f=t.substring(0,k));else if(F===2&&t.charCodeAt(y)===46&&t.charCodeAt(y+1)===46)if(!T)f!==void 0?f+=f.length===a?"..":"/..":k=y+2;else if(f===void 0)k-2>=0?f=t.substring(0,Math.max(a,t.lastIndexOf(Gl,k-2))):f=t.substring(0,k);else{let M=f.lastIndexOf(Gl);M!==-1?f=f.substring(0,Math.max(a,M)):f=_,f.length===a&&(T=a!==0)}else f!==void 0?(f.length!==a&&(f+=Gl),T=!0,f+=t.substring(g,O)):(T=!0,k=O);y=O+1}return f??(u>a?dv(t):t)}function Qs(t){t=Z_(t);let n=JW(t);return n!==void 0?n:(n=za(t,""),n&&uS(t)?r_(n):n)}function JW(t){if(!tA.test(t))return t;let n=t.replace(/\/\.\//g,"/");if(n.startsWith("./")&&(n=n.slice(2)),n!==t&&(t=n,!tA.test(t)))return t}function VW(t){return t.length===0?"":t.slice(1).join(Gl)}function ER(t,n){return VW(Jk(t,n))}function wl(t,n,a){let c=qd(t)?Qs(t):za(t,n);return a(c)}function dv(t){return uS(t)?t.substr(0,t.length-1):t}function r_(t){return uS(t)?t:t+Gl}function Tx(t){return!YD(t)&&!ch(t)?"./"+t:t}function Og(t,n,a,c){let u=a!==void 0&&c!==void 0?nE(t,a,c):nE(t);return u?t.slice(0,t.length-u.length)+(Ca(n,".")?n:"."+n):t}function T4(t,n){let a=sie(t);return a?t.slice(0,t.length-a.length)+(Ca(n,".")?n:"."+n):Og(t,n)}var tA=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function j$(t,n,a){if(t===n)return 0;if(t===void 0)return-1;if(n===void 0)return 1;let c=t.substring(0,Fy(t)),u=n.substring(0,Fy(n)),_=JD(c,u);if(_!==0)return _;let f=t.substring(c.length),y=n.substring(u.length);if(!tA.test(f)&&!tA.test(y))return a(f,y);let g=iE(Cd(t)),k=iE(Cd(n)),T=Math.min(g.length,k.length);for(let C=1;C0==Fy(n)>0,"Paths must either both be absolute or both be relative");let _=WW(t,n,(typeof a=="boolean"?a:!1)?F1:qm,typeof a=="function"?a:vl);return pS(_)}function BI(t,n,a){return qd(t)?FT(n,t,n,a,!1):t}function Vk(t,n,a){return Tx(lh(mo(t),n,a))}function FT(t,n,a,c,u){let _=WW(mb(a,t),mb(a,n),qm,c),f=_[0];if(u&&qd(f)){let y=f.charAt(0)===Gl?"file://":"file:///";_[0]=y+f}return pS(_)}function Ex(t,n){for(;;){let a=n(t);if(a!==void 0)return a;let c=mo(t);if(c===t)return;t=c}}function CO(t){return au(t,"/node_modules")}function I(t,n,a,c,u,_,f){return{code:t,category:n,key:a,message:c,reportsUnnecessary:u,elidedInCompatabilityPyramid:_,reportsDeprecated:f}}var x={Unterminated_string_literal:I(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:I(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:I(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:I(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:I(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:I(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:I(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:I(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:I(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:I(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:I(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:I(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:I(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:I(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:I(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:I(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:I(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:I(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:I(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:I(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:I(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:I(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:I(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:I(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:I(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:I(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:I(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:I(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:I(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:I(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:I(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:I(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:I(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:I(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:I(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:I(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:I(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:I(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:I(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:I(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:I(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:I(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:I(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:I(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:I(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:I(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:I(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:I(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:I(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:I(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:I(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:I(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:I(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:I(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:I(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:I(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:I(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:I(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:I(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:I(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:I(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:I(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:I(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:I(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:I(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:I(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:I(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:I(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:I(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:I(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:I(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:I(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:I(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:I(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:I(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:I(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:I(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:I(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:I(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:I(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:I(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:I(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:I(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:I(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:I(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:I(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:I(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:I(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:I(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:I(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:I(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:I(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:I(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:I(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:I(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:I(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:I(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:I(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:I(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:I(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:I(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:I(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:I(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:I(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:I(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:I(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:I(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:I(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:I(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:I(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:I(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:I(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:I(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:I(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:I(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:I(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:I(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:I(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:I(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:I(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:I(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:I(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:I(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:I(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:I(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:I(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:I(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:I(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:I(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:I(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:I(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:I(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:I(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:I(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:I(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:I(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:I(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:I(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:I(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:I(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:I(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:I(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:I(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:I(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:I(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:I(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:I(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:I(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:I(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:I(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:I(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:I(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:I(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:I(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:I(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:I(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:I(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:I(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:I(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:I(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:I(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:I(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:I(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:I(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:I(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:I(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:I(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:I(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:I(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:I(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:I(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:I(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:I(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:I(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:I(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:I(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:I(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:I(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:I(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:I(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:I(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:I(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:I(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:I(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:I(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:I(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:I(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:I(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:I(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:I(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:I(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:I(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:I(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:I(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:I(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:I(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:I(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:I(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:I(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:I(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:I(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:I(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:I(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:I(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:I(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:I(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:I(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:I(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:I(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:I(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:I(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:I(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:I(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:I(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:I(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:I(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:I(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:I(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:I(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:I(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:I(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:I(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:I(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:I(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:I(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:I(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:I(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:I(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:I(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:I(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:I(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:I(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:I(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:I(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:I(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:I(1286,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:I(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:I(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:I(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:I(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:I(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:I(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:I(1293,1,"ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:I(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:I(1295,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript."),with_statements_are_not_allowed_in_an_async_function_block:I(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:I(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:I(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:I(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:I(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:I(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:I(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:I(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:I(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:I(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:I(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:I(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:I(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:I(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext:I(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:I(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:I(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:I(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:I(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:I(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:I(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:I(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:I(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:I(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:I(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:I(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:I(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:I(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:I(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:I(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:I(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:I(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext:I(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'."),A_label_is_not_allowed_here:I(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:I(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:I(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:I(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:I(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:I(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:I(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:I(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:I(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:I(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:I(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:I(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:I(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:I(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:I(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:I(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:I(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:I(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:I(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:I(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:I(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:I(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:I(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:I(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:I(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:I(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:I(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:I(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:I(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:I(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:I(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:I(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:I(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:I(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:I(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:I(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:I(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:I(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:I(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:I(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:I(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:I(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:I(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:I(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:I(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:I(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:I(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:I(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:I(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:I(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:I(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:I(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:I(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:I(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:I(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:I(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:I(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:I(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:I(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:I(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:I(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:I(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:I(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:I(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:I(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:I(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:I(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:I(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:I(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:I(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:I(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:I(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:I(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:I(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:I(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:I(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:I(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:I(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:I(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:I(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:I(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:I(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:I(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:I(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:I(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:I(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:I(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:I(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:I(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:I(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:I(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:I(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:I(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:I(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:I(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:I(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:I(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:I(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:I(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:I(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:I(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:I(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:I(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:I(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:I(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:I(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:I(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:I(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:I(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:I(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:I(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:I(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:I(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:I(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:I(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:I(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:I(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:I(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:I(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:I(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:I(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:I(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:I(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:I(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:I(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:I(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:I(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:I(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:I(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:I(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:I(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:I(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:I(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:I(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:I(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:I(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:I(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:I(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:I(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:I(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:I(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:I(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:I(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:I(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:I(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:I(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:I(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:I(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:I(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:I(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:I(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:I(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:I(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:I(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:I(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:I(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:I(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:I(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:I(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:I(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:I(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:I(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:I(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:I(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:I(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:I(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:I(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:I(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:I(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:I(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:I(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:I(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:I(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:I(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:I(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:I(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:I(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:I(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:I(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:I(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:I(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:I(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),using_declarations_are_not_allowed_in_ambient_contexts:I(1545,1,"using_declarations_are_not_allowed_in_ambient_contexts_1545","'using' declarations are not allowed in ambient contexts."),await_using_declarations_are_not_allowed_in_ambient_contexts:I(1546,1,"await_using_declarations_are_not_allowed_in_ambient_contexts_1546","'await using' declarations are not allowed in ambient contexts."),The_types_of_0_are_incompatible_between_these_types:I(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:I(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:I(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:I(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:I(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:I(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:I(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:I(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:I(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:I(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:I(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:I(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:I(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:I(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:I(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:I(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:I(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:I(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:I(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:I(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:I(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:I(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:I(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:I(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:I(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:I(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:I(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:I(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:I(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:I(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:I(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:I(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:I(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:I(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:I(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:I(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:I(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:I(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:I(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:I(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:I(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:I(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:I(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:I(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:I(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:I(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:I(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:I(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:I(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:I(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:I(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:I(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:I(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:I(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:I(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:I(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:I(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:I(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:I(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:I(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:I(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:I(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:I(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:I(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:I(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:I(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:I(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:I(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:I(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:I(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:I(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:I(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:I(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:I(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:I(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:I(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:I(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:I(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:I(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:I(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:I(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:I(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:I(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:I(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:I(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:I(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:I(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:I(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:I(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:I(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:I(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:I(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:I(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:I(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:I(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:I(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:I(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:I(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:I(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:I(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:I(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:I(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:I(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:I(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:I(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:I(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:I(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:I(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:I(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:I(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:I(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:I(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:I(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:I(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:I(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:I(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:I(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:I(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:I(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:I(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:I(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:I(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:I(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:I(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:I(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:I(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:I(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:I(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:I(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:I(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:I(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:I(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:I(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:I(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:I(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:I(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:I(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:I(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:I(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:I(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:I(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:I(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:I(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:I(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:I(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:I(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:I(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:I(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:I(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:I(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:I(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:I(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:I(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:I(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:I(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:I(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:I(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:I(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:I(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:I(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:I(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:I(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:I(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:I(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:I(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:I(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:I(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:I(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:I(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:I(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:I(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:I(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:I(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:I(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:I(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:I(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:I(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:I(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:I(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:I(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:I(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:I(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:I(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:I(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:I(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:I(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:I(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:I(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:I(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:I(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:I(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:I(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:I(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:I(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:I(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:I(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:I(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:I(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:I(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:I(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:I(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:I(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:I(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:I(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:I(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:I(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:I(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:I(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:I(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:I(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:I(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:I(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:I(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:I(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:I(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:I(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:I(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:I(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:I(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:I(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:I(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:I(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:I(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:I(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:I(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:I(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:I(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:I(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:I(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:I(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:I(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:I(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:I(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:I(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:I(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:I(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:I(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:I(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:I(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:I(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:I(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:I(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:I(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:I(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:I(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:I(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:I(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:I(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:I(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:I(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:I(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:I(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:I(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:I(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:I(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:I(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:I(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:I(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:I(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:I(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:I(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:I(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:I(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:I(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:I(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:I(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:I(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:I(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:I(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:I(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:I(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:I(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:I(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:I(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:I(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:I(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:I(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:I(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:I(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:I(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:I(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:I(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:I(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:I(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:I(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:I(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:I(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:I(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:I(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:I(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:I(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:I(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:I(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:I(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:I(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:I(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:I(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:I(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:I(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:I(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:I(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:I(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:I(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:I(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:I(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:I(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:I(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:I(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:I(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:I(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:I(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:I(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:I(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:I(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:I(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:I(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:I(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:I(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:I(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:I(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:I(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:I(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:I(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:I(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:I(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:I(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:I(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:I(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:I(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:I(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:I(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:I(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:I(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:I(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:I(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:I(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:I(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:I(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:I(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:I(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:I(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:I(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:I(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:I(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:I(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:I(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:I(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:I(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:I(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:I(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:I(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:I(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:I(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:I(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:I(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:I(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:I(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:I(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:I(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:I(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:I(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:I(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:I(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:I(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:I(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:I(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:I(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:I(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:I(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:I(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:I(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:I(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:I(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:I(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:I(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:I(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:I(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:I(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:I(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:I(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:I(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:I(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:I(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:I(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:I(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:I(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:I(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:I(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:I(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:I(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:I(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:I(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0:I(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 and above with module {0}."),Cannot_find_lib_definition_for_0:I(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:I(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:I(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:I(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:I(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:I(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:I(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:I(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:I(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:I(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:I(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:I(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:I(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:I(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:I(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:I(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:I(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:I(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:I(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:I(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:I(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:I(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:I(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:I(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:I(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:I(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:I(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:I(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:I(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:I(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:I(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:I(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:I(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:I(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:I(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:I(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:I(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:I(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:I(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:I(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:I(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:I(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:I(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:I(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:I(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:I(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:I(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:I(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:I(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:I(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:I(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:I(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:I(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:I(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:I(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:I(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:I(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:I(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:I(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:I(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:I(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:I(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:I(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:I(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:I(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:I(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:I(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:I(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:I(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:I(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:I(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:I(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:I(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:I(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:I(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:I(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:I(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:I(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:I(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:I(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:I(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:I(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:I(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:I(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:I(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:I(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:I(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:I(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks:I(2815,1,"arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815","'arguments' cannot be referenced in property initializers or class static initialization blocks."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:I(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:I(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:I(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:I(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:I(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:I(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:I(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:I(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:I(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:I(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:I(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:I(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:I(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:I(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:I(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:I(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:I(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:I(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:I(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:I(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:I(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:I(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:I(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:I(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:I(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:I(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:I(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:I(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:I(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:I(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:I(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:I(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:I(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:I(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:I(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:I(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:I(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:I(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:I(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:I(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:I(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:I(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:I(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:I(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:I(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:I(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:I(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:I(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:I(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:I(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:I(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:I(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:I(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:I(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),This_expression_is_never_nullish:I(2881,1,"This_expression_is_never_nullish_2881","This expression is never nullish."),Import_declaration_0_is_using_private_name_1:I(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:I(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:I(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:I(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:I(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:I(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:I(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:I(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:I(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:I(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:I(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:I(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:I(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:I(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:I(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:I(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:I(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:I(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:I(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:I(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:I(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:I(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:I(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:I(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:I(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:I(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:I(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:I(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:I(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:I(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:I(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:I(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:I(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:I(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:I(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:I(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:I(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:I(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:I(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:I(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:I(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:I(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:I(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:I(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:I(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:I(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:I(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:I(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:I(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:I(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:I(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:I(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:I(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:I(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:I(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:I(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:I(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:I(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:I(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:I(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:I(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:I(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:I(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:I(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:I(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:I(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:I(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:I(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:I(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:I(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:I(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:I(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:I(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:I(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:I(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:I(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:I(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:I(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:I(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:I(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:I(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:I(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:I(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:I(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:I(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:I(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:I(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:I(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:I(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:I(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:I(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:I(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:I(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:I(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:I(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:I(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:I(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:I(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:I(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:I(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),The_current_host_does_not_support_the_0_option:I(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:I(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:I(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:I(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:I(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:I(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:I(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:I(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:I(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:I(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:I(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:I(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:I(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:I(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:I(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:I(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:I(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:I(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:I(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:I(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:I(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:I(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:I(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:I(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:I(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:I(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:I(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:I(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:I(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:I(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:I(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:I(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:I(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:I(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:I(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:I(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:I(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:I(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:I(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:I(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:I(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:I(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:I(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:I(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:I(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:I(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:I(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:I(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:I(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:I(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:I(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:I(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:I(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:I(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:I(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:I(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:I(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:I(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:I(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:I(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:I(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:I(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:I(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:I(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:I(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:I(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:I(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:I(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:I(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:I(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:I(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:I(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:I(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:I(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:I(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:I(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:I(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:I(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:I(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:I(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:I(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:I(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:I(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:I(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:I(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:I(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:I(6024,3,"options_6024","options"),file:I(6025,3,"file_6025","file"),Examples_Colon_0:I(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:I(6027,3,"Options_Colon_6027","Options:"),Version_0:I(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:I(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:I(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:I(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:I(6034,3,"KIND_6034","KIND"),FILE:I(6035,3,"FILE_6035","FILE"),VERSION:I(6036,3,"VERSION_6036","VERSION"),LOCATION:I(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:I(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:I(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:I(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:I(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:I(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:I(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:I(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:I(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:I(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:I(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:I(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:I(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:I(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:I(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:I(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:I(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:I(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:I(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:I(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:I(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:I(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:I(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:I(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:I(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:I(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:I(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:I(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:I(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:I(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:I(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:I(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:I(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:I(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:I(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:I(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:I(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:I(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:I(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:I(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:I(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:I(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:I(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:I(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:I(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:I(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:I(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:I(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:I(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:I(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:I(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:I(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:I(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:I(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:I(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:I(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:I(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:I(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:I(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:I(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:I(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:I(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:I(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:I(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:I(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:I(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:I(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:I(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:I(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:I(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:I(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:I(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:I(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:I(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:I(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:I(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:I(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:I(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:I(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:I(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:I(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:I(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:I(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:I(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:I(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:I(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:I(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:I(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:I(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:I(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:I(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:I(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:I(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:I(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:I(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:I(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:I(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:I(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:I(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:I(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:I(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:I(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:I(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:I(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:I(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:I(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:I(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:I(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:I(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:I(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:I(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:I(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:I(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:I(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:I(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:I(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:I(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:I(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:I(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:I(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:I(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:I(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:I(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:I(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:I(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:I(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:I(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:I(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:I(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:I(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:I(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:I(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:I(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:I(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:I(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:I(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:I(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:I(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:I(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:I(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:I(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:I(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:I(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:I(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:I(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:I(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:I(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:I(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:I(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:I(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:I(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:I(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:I(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:I(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:I(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:I(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:I(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:I(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:I(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:I(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:I(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:I(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:I(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:I(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:I(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:I(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:I(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:I(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:I(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:I(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:I(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:I(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:I(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:I(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:I(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:I(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:I(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:I(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:I(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:I(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:I(6244,3,"Modules_6244","Modules"),File_Management:I(6245,3,"File_Management_6245","File Management"),Emit:I(6246,3,"Emit_6246","Emit"),JavaScript_Support:I(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:I(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:I(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:I(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:I(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:I(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:I(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:I(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:I(6255,3,"Projects_6255","Projects"),Output_Formatting:I(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:I(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:I(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:I(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:I(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:I(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:I(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:I(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:I(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:I(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:I(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:I(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:I(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:I(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:I(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:I(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:I(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:I(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:I(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:I(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:I(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:I(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:I(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:I(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:I(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),File_Layout:I(6284,3,"File_Layout_6284","File Layout"),Environment_Settings:I(6285,3,"Environment_Settings_6285","Environment Settings"),See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule:I(6286,3,"See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286","See also https://aka.ms/tsconfig/module"),For_nodejs_Colon:I(6287,3,"For_nodejs_Colon_6287","For nodejs:"),and_npm_install_D_types_Slashnode:I(6290,3,"and_npm_install_D_types_Slashnode_6290","and npm install -D @types/node"),Other_Outputs:I(6291,3,"Other_Outputs_6291","Other Outputs"),Stricter_Typechecking_Options:I(6292,3,"Stricter_Typechecking_Options_6292","Stricter Typechecking Options"),Style_Options:I(6293,3,"Style_Options_6293","Style Options"),Recommended_Options:I(6294,3,"Recommended_Options_6294","Recommended Options"),Enable_project_compilation:I(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:I(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:I(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:I(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:I(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:I(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:I(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:I(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:I(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:I(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:I(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:I(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:I(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:I(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:I(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:I(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:I(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:I(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:I(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:I(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:I(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:I(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:I(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:I(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:I(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:I(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:I(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:I(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:I(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:I(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:I(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:I(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:I(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:I(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:I(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:I(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:I(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:I(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:I(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:I(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:I(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:I(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:I(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:I(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:I(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:I(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:I(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:I(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:I(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:I(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:I(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:I(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:I(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:I(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:I(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:I(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:I(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:I(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:I(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:I(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:I(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:I(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:I(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:I(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:I(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:I(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:I(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:I(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:I(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:I(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:I(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:I(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:I(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:I(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:I(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:I(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:I(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files:I(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:I(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:I(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:I(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:I(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:I(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:I(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:I(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:I(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:I(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:I(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:I(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:I(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:I(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:I(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:I(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:I(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:I(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:I(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:I(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:I(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:I(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:I(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:I(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:I(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:I(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:I(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:I(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:I(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:I(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:I(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:I(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:I(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:I(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:I(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:I(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:I(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:I(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:I(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:I(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:I(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:I(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:I(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:I(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:I(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:I(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:I(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:I(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:I(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:I(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:I(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:I(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:I(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:I(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:I(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:I(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:I(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:I(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:I(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:I(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:I(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:I(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:I(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:I(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:I(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:I(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:I(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:I(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:I(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:I(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:I(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:I(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:I(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:I(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:I(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:I(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:I(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:I(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:I(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:I(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:I(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:I(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:I(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:I(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:I(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:I(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:I(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:I(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:I(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:I(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:I(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:I(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:I(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:I(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:I(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:I(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:I(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:I(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:I(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:I(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:I(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:I(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:I(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:I(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:I(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:I(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:I(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:I(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:I(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:I(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:I(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:I(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:I(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:I(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:I(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:I(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:I(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:I(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),Default_catch_clause_variables_as_unknown_instead_of_any:I(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:I(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:I(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:I(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:I(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:I(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),one_of_Colon:I(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:I(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:I(6902,3,"type_Colon_6902","type:"),default_Colon:I(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:I(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:I(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:I(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:I(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:I(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:I(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:I(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:I(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:I(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:I(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:I(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:I(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:I(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:I(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:I(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:I(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:I(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:I(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:I(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:I(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:I(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:I(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:I(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:I(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:I(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:I(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:I(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:I(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:I(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:I(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:I(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:I(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:I(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:I(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:I(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:I(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:I(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:I(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:I(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:I(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:I(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:I(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:I(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:I(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:I(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:I(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:I(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:I(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:I(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:I(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:I(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:I(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:I(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:I(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:I(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:I(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:I(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:I(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:I(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:I(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:I(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:I(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:I(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:I(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:I(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:I(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:I(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:I(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:I(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:I(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:I(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:I(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:I(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:I(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:I(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:I(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:I(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:I(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:I(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:I(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:I(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:I(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:I(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:I(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:I(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:I(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:I(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:I(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:I(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:I(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:I(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:I(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:I(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:I(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:I(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:I(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:I(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:I(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:I(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:I(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:I(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:I(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:I(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:I(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:I(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:I(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:I(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:I(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:I(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:I(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:I(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:I(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:I(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:I(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:I(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:I(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:I(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:I(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:I(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:I(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:I(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:I(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:I(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:I(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:I(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:I(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:I(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:I(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:I(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:I(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:I(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:I(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:I(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:I(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:I(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:I(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:I(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:I(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:I(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:I(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:I(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:I(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:I(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:I(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:I(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:I(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:I(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:I(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:I(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:I(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:I(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:I(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:I(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:I(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:I(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:I(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:I(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:I(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:I(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:I(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:I(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:I(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:I(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:I(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:I(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:I(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:I(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:I(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:I(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:I(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:I(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:I(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:I(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:I(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:I(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:I(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:I(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:I(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:I(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:I(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:I(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:I(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:I(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:I(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:I(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:I(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:I(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:I(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:I(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:I(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:I(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:I(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:I(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:I(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:I(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:I(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:I(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:I(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:I(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:I(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:I(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:I(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:I(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:I(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:I(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:I(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:I(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:I(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:I(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:I(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:I(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:I(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:I(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:I(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:I(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:I(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:I(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:I(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:I(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:I(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:I(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:I(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:I(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:I(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:I(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:I(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:I(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:I(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:I(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:I(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:I(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:I(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:I(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:I(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:I(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:I(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:I(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:I(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:I(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:I(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:I(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:I(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:I(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:I(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:I(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:I(95005,3,"Extract_function_95005","Extract function"),Extract_constant:I(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:I(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:I(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:I(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:I(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:I(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:I(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:I(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:I(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:I(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:I(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:I(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:I(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:I(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:I(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:I(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:I(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:I(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:I(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:I(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:I(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:I(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:I(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:I(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:I(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:I(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:I(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:I(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:I(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:I(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:I(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:I(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:I(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:I(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:I(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:I(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:I(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:I(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:I(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:I(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:I(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:I(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:I(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:I(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:I(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:I(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:I(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:I(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:I(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:I(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:I(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:I(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:I(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:I(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:I(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:I(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:I(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:I(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:I(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:I(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:I(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:I(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:I(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:I(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:I(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:I(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:I(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:I(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:I(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:I(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:I(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:I(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:I(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:I(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:I(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:I(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:I(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:I(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:I(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:I(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:I(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:I(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:I(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:I(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:I(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:I(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:I(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:I(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:I(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:I(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:I(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:I(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:I(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:I(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:I(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:I(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:I(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:I(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:I(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:I(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:I(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:I(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:I(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:I(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:I(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:I(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:I(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:I(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:I(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:I(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:I(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:I(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:I(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:I(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:I(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:I(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:I(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:I(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:I(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:I(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:I(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:I(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:I(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:I(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:I(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:I(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:I(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:I(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:I(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:I(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:I(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:I(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:I(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:I(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:I(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:I(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:I(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:I(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:I(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:I(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:I(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:I(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:I(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:I(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:I(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:I(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:I(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:I(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:I(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:I(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:I(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:I(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:I(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:I(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:I(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:I(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:I(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:I(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:I(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:I(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:I(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:I(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:I(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:I(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:I(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:I(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:I(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:I(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:I(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:I(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:I(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:I(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:I(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:I(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:I(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:I(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:I(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:I(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:I(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:I(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:I(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:I(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:I(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:I(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:I(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:I(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:I(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:I(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:I(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:I(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:I(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:I(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:I(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:I(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:I(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:I(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:I(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:I(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:I(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:I(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:I(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:I(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:I(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:I(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:I(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:I(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:I(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:I(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:I(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:I(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:I(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:I(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:I(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:I(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:I(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:I(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:I(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:I(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:I(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:I(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:I(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:I(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:I(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:I(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:I(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:I(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:I(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:I(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:I(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:I(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:I(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:I(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:I(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'."),Default_imports_are_not_allowed_in_a_deferred_import:I(18058,1,"Default_imports_are_not_allowed_in_a_deferred_import_18058","Default imports are not allowed in a deferred import."),Named_imports_are_not_allowed_in_a_deferred_import:I(18059,1,"Named_imports_are_not_allowed_in_a_deferred_import_18059","Named imports are not allowed in a deferred import."),Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:I(18060,1,"Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060","Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'."),_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:I(18061,1,"_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061","'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?")};function Bf(t){return t>=80}function $I(t){return t===32||Bf(t)}var UI={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,defer:166,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},Ete=new Map(Object.entries(UI)),U$=new Map(Object.entries({...UI,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),z$=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),kR=new Map([[1,C_.RegularExpressionFlagsHasIndices],[16,C_.RegularExpressionFlagsDotAll],[32,C_.RegularExpressionFlagsUnicode],[64,C_.RegularExpressionFlagsUnicodeSets],[128,C_.RegularExpressionFlagsSticky]]),q$=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],E4=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],GW=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],kte=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],Cte=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,HW=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,KW=/@(?:see|link)/i;function k4(t,n){if(t=2?k4(t,GW):k4(t,q$)}function QW(t,n){return n>=2?k4(t,kte):k4(t,E4)}function J$(t){let n=[];return t.forEach((a,c)=>{n[a]=c}),n}var Dte=J$(U$);function Zs(t){return Dte[t]}function kx(t){return U$.get(t)}var V$=J$(z$);function ZW(t){return V$[t]}function DO(t){return z$.get(t)}function oE(t){let n=[],a=0,c=0;for(;a127&&Dd(u)&&(n.push(c),c=a);break}}return n.push(c),n}function C4(t,n,a,c){return t.getPositionOfLineAndCharacter?t.getPositionOfLineAndCharacter(n,a,c):AO(Ry(t),n,a,t.text,c)}function AO(t,n,a,c,u){(n<0||n>=t.length)&&(u?n=n<0?0:n>=t.length?t.length-1:n:$.fail(`Bad line number. Line: ${n}, lineStarts.length: ${t.length} , line map is correct? ${c!==void 0?__(t,oE(c)):"unknown"}`));let _=t[n]+a;return u?_>t[n+1]?t[n+1]:typeof c=="string"&&_>c.length?c.length:_:(n=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function Dd(t){return t===10||t===13||t===8232||t===8233}function Wk(t){return t>=48&&t<=57}function CR(t){return Wk(t)||t>=65&&t<=70||t>=97&&t<=102}function W$(t){return t>=65&&t<=90||t>=97&&t<=122}function XW(t){return W$(t)||Wk(t)||t===95}function DR(t){return t>=48&&t<=55}function D4(t,n){let a=t.charCodeAt(n);switch(a){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return n===0;default:return a>127}}function _c(t,n,a,c,u){if(bv(n))return n;let _=!1;for(;;){let f=t.charCodeAt(n);switch(f){case 13:t.charCodeAt(n+1)===10&&n++;case 10:if(n++,a)return n;_=!!u;continue;case 9:case 11:case 12:case 32:n++;continue;case 47:if(c)break;if(t.charCodeAt(n+1)===47){for(n+=2;n127&&p0(f)){n++;continue}break}return n}}var AR=7;function RT(t,n){if($.assert(n>=0),n===0||Dd(t.charCodeAt(n-1))){let a=t.charCodeAt(n);if(n+AR=0&&a127&&p0(M)){C&&Dd(M)&&(T=!0),a++;continue}break e}}return C&&(F=u(y,g,k,T,_,F)),F}function A4(t,n,a,c){return sE(!1,t,n,!1,a,c)}function w4(t,n,a,c){return sE(!1,t,n,!0,a,c)}function G$(t,n,a,c,u){return sE(!0,t,n,!1,a,c,u)}function JI(t,n,a,c,u){return sE(!0,t,n,!0,a,c,u)}function eG(t,n,a,c,u,_=[]){return _.push({kind:a,pos:t,end:n,hasTrailingNewLine:c}),_}function my(t,n){return G$(t,n,eG,void 0,void 0)}function hb(t,n){return JI(t,n,eG,void 0,void 0)}function VI(t){let n=wR.exec(t);if(n)return n[0]}function pg(t,n){return W$(t)||t===36||t===95||t>127&&fv(t,n)}function j1(t,n,a){return XW(t)||t===36||(a===1?t===45||t===58:!1)||t>127&&QW(t,n)}function Jd(t,n,a){let c=iA(t,0);if(!pg(c,n))return!1;for(let u=Ly(c);uT,getStartPos:()=>T,getTokenEnd:()=>g,getTextPos:()=>g,getToken:()=>O,getTokenStart:()=>C,getTokenPos:()=>C,getTokenText:()=>y.substring(C,g),getTokenValue:()=>F,hasUnicodeEscape:()=>(M&1024)!==0,hasExtendedUnicodeEscape:()=>(M&8)!==0,hasPrecedingLineBreak:()=>(M&1)!==0,hasPrecedingJSDocComment:()=>(M&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(M&32768)!==0,isIdentifier:()=>O===80||O>118,isReservedWord:()=>O>=83&&O<=118,isUnterminated:()=>(M&4)!==0,getCommentDirectives:()=>U,getNumericLiteralFlags:()=>M&25584,getTokenFlags:()=>M,reScanGreaterToken:Qe,reScanAsteriskEqualsToken:We,reScanSlashToken:St,reScanTemplateToken:$t,reScanTemplateHeadOrNoSubstitutionTemplate:Dr,scanJsxIdentifier:Wa,scanJsxAttributeValue:oo,reScanJsxAttributeValue:Oi,reScanJsxToken:Qn,reScanLessThanToken:Ko,reScanHashToken:is,reScanQuestionToken:sr,reScanInvalidIdentifier:Se,scanJsxToken:uo,scanJsDocToken:ft,scanJSDocCommentTextToken:$o,scan:ke,getText:Eo,clearCommentDirectives:ya,setText:Ls,setScriptTarget:Cn,setLanguageVariant:Es,setScriptKind:Dt,setJSDocParsingMode:ur,setOnError:yc,resetTokenState:Ee,setTextPos:Ee,setSkipJsDocLeadingAsterisks:Bt,tryScan:vo,lookAhead:ai,scanRange:Wr};return $.isDebugging&&Object.defineProperty(Q,"__debugShowCurrentPositionInText",{get:()=>{let ye=Q.getText();return ye.slice(0,Q.getTokenFullStart())+"\u2551"+ye.slice(Q.getTokenFullStart())}}),Q;function re(ye){return iA(y,ye)}function ae(ye){return ye>=0&&ye=0&&ye=65&&Zt<=70)Zt+=32;else if(!(Zt>=48&&Zt<=57||Zt>=97&&Zt<=102))break;Ot.push(Zt),g++,at=!1}return Ot.length=k){Ct+=y.substring(Ot,g),M|=4,le(x.Unterminated_string_literal);break}let ar=_e(g);if(ar===et){Ct+=y.substring(Ot,g),g++;break}if(ar===92&&!ye){Ct+=y.substring(Ot,g),Ct+=ze(3),Ot=g;continue}if((ar===10||ar===13)&&!ye){Ct+=y.substring(Ot,g),M|=4,le(x.Unterminated_string_literal);break}g++}return Ct}function de(ye){let et=_e(g)===96;g++;let Ct=g,Ot="",ar;for(;;){if(g>=k){Ot+=y.substring(Ct,g),M|=4,le(x.Unterminated_template_literal),ar=et?15:18;break}let at=_e(g);if(at===96){Ot+=y.substring(Ct,g),g++,ar=et?15:18;break}if(at===36&&g+1=k)return le(x.Unexpected_end_of_text),"";let Ct=_e(g);switch(g++,Ct){case 48:if(g>=k||!Wk(_e(g)))return"\0";case 49:case 50:case 51:g=55296&&Ot<=56319&&g+6=56320&&Qt<=57343)return g=Zt,ar+String.fromCharCode(Qt)}return ar;case 120:for(;g1114111&&(ye&&le(x.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,Ct,g-Ct),at=!0),g>=k?(ye&&le(x.Unexpected_end_of_text),at=!0):_e(g)===125?g++:(ye&&le(x.Unterminated_Unicode_escape_sequence),at=!0),at?(M|=2048,y.substring(et,g)):(M|=8,Gk(ar))}function je(){if(g+5=0&&j1(Ct,t)){ye+=ut(!0),et=g;continue}if(Ct=je(),!(Ct>=0&&j1(Ct,t)))break;M|=1024,ye+=y.substring(et,g),ye+=Gk(Ct),g+=6,et=g}else break}return ye+=y.substring(et,g),ye}function Ve(){let ye=F.length;if(ye>=2&&ye<=12){let et=F.charCodeAt(0);if(et>=97&&et<=122){let Ct=Ete.get(F);if(Ct!==void 0)return O=Ct}}return O=80}function nt(ye){let et="",Ct=!1,Ot=!1;for(;;){let ar=_e(g);if(ar===95){M|=512,Ct?(Ct=!1,Ot=!0):le(Ot?x.Multiple_consecutive_numeric_separators_are_not_permitted:x.Numeric_separators_are_not_allowed_here,g,1),g++;continue}if(Ct=!0,!Wk(ar)||ar-48>=ye)break;et+=y[g],g++,Ot=!1}return _e(g-1)===95&&le(x.Numeric_separators_are_not_allowed_here,g-1,1),et}function It(){return _e(g)===110?(F+="n",M&384&&(F=HU(F)+"n"),g++,10):(F=""+(M&128?parseInt(F.slice(2),2):M&256?parseInt(F.slice(2),8):+F),9)}function ke(){for(T=g,M=0;;){if(C=g,g>=k)return O=1;let ye=re(g);if(g===0&&ye===35&&YW(y,g)){if(g=IR(y,g),n)continue;return O=6}switch(ye){case 10:case 13:if(M|=1,n){g++;continue}else return ye===13&&g+1=0&&pg(et,t))return F=ut(!0)+Le(),O=Ve();let Ct=je();return Ct>=0&&pg(Ct,t)?(g+=6,M|=1024,F=String.fromCharCode(Ct)+Le(),O=Ve()):(le(x.Invalid_character),g++,O=0);case 35:if(g!==0&&y[g+1]==="!")return le(x.can_only_be_used_at_the_start_of_a_file,g,2),g++,O=0;let Ot=re(g+1);if(Ot===92){g++;let Zt=ve();if(Zt>=0&&pg(Zt,t))return F="#"+ut(!0)+Le(),O=81;let Qt=je();if(Qt>=0&&pg(Qt,t))return g+=6,M|=1024,F="#"+String.fromCharCode(Qt)+Le(),O=81;g--}return pg(Ot,t)?(g++,tt(Ot,t)):(F="#",le(x.Invalid_character,g++,Ly(ye))),O=81;case 65533:return le(x.File_appears_to_be_binary,0,0),g=k,O=8;default:let ar=tt(ye,t);if(ar)return O=ar;if(_0(ye)){g+=Ly(ye);continue}else if(Dd(ye)){M|=1,g+=Ly(ye);continue}let at=Ly(ye);return le(x.Invalid_character,g,at),g+=at,O=0}}}function _t(){switch(Z){case 0:return!0;case 1:return!1}return G!==3&&G!==4?!0:Z===3?!1:KW.test(y.slice(T,g))}function Se(){$.assert(O===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),g=C=T,M=0;let ye=re(g),et=tt(ye,99);return et?O=et:(g+=Ly(ye),O)}function tt(ye,et){let Ct=ye;if(pg(Ct,et)){for(g+=Ly(Ct);g=k)return O=1;let et=_e(g);if(et===60)return _e(g+1)===47?(g+=2,O=31):(g++,O=30);if(et===123)return g++,O=19;let Ct=0;for(;g0)break;p0(et)||(Ct=g)}g++}return F=y.substring(T,g),Ct===-1?13:12}function Wa(){if(Bf(O)){for(;g=k)return O=1;for(let et=_e(g);g=0&&_0(_e(g-1))&&!(g+1=k)return O=1;let ye=re(g);switch(g+=Ly(ye),ye){case 9:case 11:case 12:case 32:for(;g=0&&pg(et,t))return F=ut(!0)+Le(),O=Ve();let Ct=je();return Ct>=0&&pg(Ct,t)?(g+=6,M|=1024,F=String.fromCharCode(Ct)+Le(),O=Ve()):(g++,O=0)}if(pg(ye,t)){let et=ye;for(;g=0),g=ye,T=ye,C=ye,O=0,F=void 0,M=0}function Bt(ye){J+=ye?1:-1}}function iA(t,n){return t.codePointAt(n)}function Ly(t){return t>=65536?2:t===-1?0:1}function tG(t){if($.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);let n=Math.floor((t-65536)/1024)+55296,a=(t-65536)%1024+56320;return String.fromCharCode(n,a)}var rG=String.fromCodePoint?t=>String.fromCodePoint(t):tG;function Gk(t){return rG(t)}var H$=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),K$=new Set(["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","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","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"]),ge=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),Ke={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};Ke.Script_Extensions=Ke.Script;function vt(t){return ch(t)||qd(t)}function nr(t){return O1(t,$U,ine)}var Rr=new Map([[99,"lib.esnext.full.d.ts"],[11,"lib.es2024.full.d.ts"],[10,"lib.es2023.full.d.ts"],[9,"lib.es2022.full.d.ts"],[8,"lib.es2021.full.d.ts"],[7,"lib.es2020.full.d.ts"],[6,"lib.es2019.full.d.ts"],[5,"lib.es2018.full.d.ts"],[4,"lib.es2017.full.d.ts"],[3,"lib.es2016.full.d.ts"],[2,"lib.es6.d.ts"]]);function kn(t){let n=$c(t);switch(n){case 99:case 11:case 10:case 9:case 8:case 7:case 6:case 5:case 4:case 3:case 2:return Rr.get(n);default:return"lib.d.ts"}}function Xn(t){return t.start+t.length}function Da(t){return t.length===0}function jo(t,n){return n>=t.start&&n=t.pos&&n<=t.end}function Ha(t,n){return n.start>=t.start&&Xn(n)<=Xn(t)}function su(t,n){return n.pos>=t.start&&n.end<=Xn(t)}function Hl(t,n){return n.start>=t.pos&&Xn(n)<=t.end}function dl(t,n){return $1(t,n)!==void 0}function $1(t,n){let a=fl(t,n);return a&&a.length===0?void 0:a}function Fg(t,n){return dS(t.start,t.length,n.start,n.length)}function _S(t,n,a){return dS(t.start,t.length,n,a)}function dS(t,n,a,c){let u=t+n,_=a+c;return a<=u&&_>=t}function gb(t,n){return n<=Xn(t)&&n>=t.start}function Hk(t,n){return _S(n,t.pos,t.end-t.pos)}function fl(t,n){let a=Math.max(t.start,n.start),c=Math.min(Xn(t),Xn(n));return a<=c?Hu(a,c):void 0}function D_(t){t=t.filter(c=>c.length>0).sort((c,u)=>c.start!==u.start?c.start-u.start:c.length-u.length);let n=[],a=0;for(;a=2&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95?"_"+t:t}function oa(t){let n=t;return n.length>=3&&n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===95?n.substr(1):n}function Zi(t){return oa(t.escapedText)}function aA(t){let n=kx(t.escapedText);return n?Ci(n,Uh):void 0}function vp(t){return t.valueDeclaration&&Tm(t.valueDeclaration)?Zi(t.valueDeclaration.name):oa(t.escapedName)}function Zfe(t){let n=t.parent.parent;if(n){if(Vd(n))return nG(n);switch(n.kind){case 244:if(n.declarationList&&n.declarationList.declarations[0])return nG(n.declarationList.declarations[0]);break;case 245:let a=n.expression;switch(a.kind===227&&a.operatorToken.kind===64&&(a=a.left),a.kind){case 212:return a.name;case 213:let c=a.argumentExpression;if(ct(c))return c}break;case 218:return nG(n.expression);case 257:{if(Vd(n.statement)||Vt(n.statement))return nG(n.statement);break}}}}function nG(t){let n=cs(t);return n&&ct(n)?n:void 0}function wO(t,n){return!!(Vp(t)&&ct(t.name)&&Zi(t.name)===Zi(n)||h_(t)&&Pt(t.declarationList.declarations,a=>wO(a,n)))}function Ate(t){return t.name||Zfe(t)}function Vp(t){return!!t.name}function PR(t){switch(t.kind){case 80:return t;case 349:case 342:{let{name:a}=t;if(a.kind===167)return a.right;break}case 214:case 227:{let a=t;switch(m_(a)){case 1:case 4:case 5:case 3:return wre(a.left);case 7:case 8:case 9:return a.arguments[1];default:return}}case 347:return Ate(t);case 341:return Zfe(t);case 278:{let{expression:a}=t;return ct(a)?a:void 0}case 213:let n=t;if(Are(n))return n.argumentExpression}return t.name}function cs(t){if(t!==void 0)return PR(t)||(bu(t)||Iu(t)||w_(t)?Q$(t):void 0)}function Q$(t){if(t.parent){if(td(t.parent)||Vc(t.parent))return t.parent.name;if(wi(t.parent)&&t===t.parent.right){if(ct(t.parent.left))return t.parent.left;if(wu(t.parent.left))return wre(t.parent.left)}else if(Oo(t.parent)&&ct(t.parent.name))return t.parent.name}else return}function yb(t){if(By(t))return yr(t.modifiers,hd)}function Qk(t){if(ko(t,98303))return yr(t.modifiers,bc)}function wte(t,n){if(t.name)if(ct(t.name)){let a=t.name.escapedText;return Lte(t.parent,n).filter(c=>Uy(c)&&ct(c.name)&&c.name.escapedText===a)}else{let a=t.parent.parameters.indexOf(t);$.assert(a>-1,"Parameters should always be in their parents' parameter list");let c=Lte(t.parent,n).filter(Uy);if(ac1(c)&&c.typeParameters.some(u=>u.name.escapedText===a))}function Pte(t){return Xfe(t,!1)}function Z$(t){return Xfe(t,!0)}function Nte(t){return!!e1(t,Uy)}function Ote(t){return e1(t,EF)}function Fte(t){return Mte(t,Zne)}function X$(t){return e1(t,eNe)}function N4(t){return e1(t,jge)}function Rte(t){return e1(t,jge,!0)}function GI(t){return e1(t,Bge)}function Ln(t){return e1(t,Bge,!0)}function ao(t){return e1(t,$ge)}function lo(t){return e1(t,$ge,!0)}function aa(t){return e1(t,Uge)}function ta(t){return e1(t,Uge,!0)}function ml(t){return e1(t,Kne,!0)}function cu(t){return e1(t,zge)}function kf(t){return e1(t,zge,!0)}function U1(t){return e1(t,zH)}function d0(t){return e1(t,qge)}function Y0(t){return e1(t,Qne)}function LT(t){return e1(t,c1)}function IO(t){return e1(t,Xne)}function mv(t){let n=e1(t,mz);if(n&&n.typeExpression&&n.typeExpression.type)return n}function hv(t){let n=e1(t,mz);return!n&&wa(t)&&(n=wt(P4(t),a=>!!a.typeExpression)),n&&n.typeExpression&&n.typeExpression.type}function iG(t){let n=Y0(t);if(n&&n.typeExpression)return n.typeExpression.type;let a=mv(t);if(a&&a.typeExpression){let c=a.typeExpression.type;if(fh(c)){let u=wt(c.members,hF);return u&&u.type}if(Cb(c)||TL(c))return c.type}}function Lte(t,n){var a;if(!WG(t))return j;let c=(a=t.jsDoc)==null?void 0:a.jsDocCache;if(c===void 0||n){let u=Wme(t,n);$.assert(u.length<2||u[0]!==u[1]),c=an(u,_=>kv(_)?_.tags:_),n||(t.jsDoc??(t.jsDoc=[]),t.jsDoc.jsDocCache=c)}return c}function sA(t){return Lte(t,!1)}function e1(t,n,a){return wt(Lte(t,a),n)}function Mte(t,n){return sA(t).filter(n)}function Nct(t,n){return sA(t).filter(a=>a.kind===n)}function oG(t){return typeof t=="string"?t:t?.map(n=>n.kind===322?n.text:jtr(n)).join("")}function jtr(t){let n=t.kind===325?"link":t.kind===326?"linkcode":"linkplain",a=t.name?Rg(t.name):"",c=t.name&&(t.text===""||t.text.startsWith("://"))?"":" ";return`{@${n} ${a}${c}${t.text}}`}function Zk(t){if(TE(t)){if(EL(t.parent)){let n=QR(t.parent);if(n&&te(n.tags))return an(n.tags,a=>c1(a)?a.typeParameters:void 0)}return j}if(n1(t))return $.assert(t.parent.kind===321),an(t.parent.tags,n=>c1(n)?n.typeParameters:void 0);if(t.typeParameters||_Ne(t)&&t.typeParameters)return t.typeParameters;if(Ei(t)){let n=Vre(t);if(n.length)return n;let a=hv(t);if(a&&Cb(a)&&a.typeParameters)return a.typeParameters}return j}function NR(t){return t.constraint?t.constraint:c1(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0}function Dx(t){return t.kind===80||t.kind===81}function aG(t){return t.kind===179||t.kind===178}function jte(t){return no(t)&&!!(t.flags&64)}function Yfe(t){return mu(t)&&!!(t.flags&64)}function O4(t){return Js(t)&&!!(t.flags&64)}function xm(t){let n=t.kind;return!!(t.flags&64)&&(n===212||n===213||n===214||n===236)}function Y$(t){return xm(t)&&!bF(t)&&!!t.questionDotToken}function Bte(t){return Y$(t.parent)&&t.parent.expression===t}function eU(t){return!xm(t.parent)||Y$(t.parent)||t!==t.parent.expression}function eme(t){return t.kind===227&&t.operatorToken.kind===61}function z1(t){return Ug(t)&&ct(t.typeName)&&t.typeName.escapedText==="const"&&!t.typeArguments}function q1(t){return Wp(t,8)}function $te(t){return bF(t)&&!!(t.flags&64)}function tU(t){return t.kind===253||t.kind===252}function tme(t){return t.kind===281||t.kind===280}function rU(t){return t.kind===349||t.kind===342}function Ute(t){return t>=167}function rme(t){return t>=0&&t<=166}function PO(t){return rme(t.kind)}function HI(t){return Ho(t,"pos")&&Ho(t,"end")}function nU(t){return 9<=t&&t<=15}function F4(t){return nU(t.kind)}function nme(t){switch(t.kind){case 211:case 210:case 14:case 219:case 232:return!0}return!1}function Xk(t){return 15<=t&&t<=18}function TPe(t){return Xk(t.kind)}function zte(t){let n=t.kind;return n===17||n===18}function Yk(t){return Xm(t)||Cm(t)}function OR(t){switch(t.kind){case 277:return t.isTypeOnly||t.parent.parent.phaseModifier===156;case 275:return t.parent.phaseModifier===156;case 274:return t.phaseModifier===156;case 272:return t.isTypeOnly}return!1}function EPe(t){switch(t.kind){case 282:return t.isTypeOnly||t.parent.parent.isTypeOnly;case 279:return t.isTypeOnly&&!!t.moduleSpecifier&&!t.exportClause;case 281:return t.parent.isTypeOnly}return!1}function cE(t){return OR(t)||EPe(t)}function kPe(t){return fn(t,cE)!==void 0}function ime(t){return t.kind===11||Xk(t.kind)}function CPe(t){return Ic(t)||ct(t)}function ap(t){var n;return ct(t)&&((n=t.emitNode)==null?void 0:n.autoGenerate)!==void 0}function R4(t){var n;return Aa(t)&&((n=t.emitNode)==null?void 0:n.autoGenerate)!==void 0}function sG(t){let n=t.emitNode.autoGenerate.flags;return!!(n&32)&&!!(n&16)&&!!(n&8)}function Tm(t){return(ps(t)||OO(t))&&Aa(t.name)}function FR(t){return no(t)&&Aa(t.name)}function eC(t){switch(t){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function iU(t){return!!(ZO(t)&31)}function ome(t){return iU(t)||t===126||t===164||t===129}function bc(t){return eC(t.kind)}function uh(t){let n=t.kind;return n===167||n===80}function q_(t){let n=t.kind;return n===80||n===81||n===11||n===9||n===168}function L4(t){let n=t.kind;return n===80||n===207||n===208}function Rs(t){return!!t&&NO(t.kind)}function RR(t){return!!t&&(NO(t.kind)||n_(t))}function lu(t){return t&&Oct(t.kind)}function oU(t){return t.kind===112||t.kind===97}function Oct(t){switch(t){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function NO(t){switch(t){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return Oct(t)}}function ame(t){return Ta(t)||wS(t)||Vs(t)&&Rs(t.parent)}function J_(t){let n=t.kind;return n===177||n===173||n===175||n===178||n===179||n===182||n===176||n===241}function Co(t){return t&&(t.kind===264||t.kind===232)}function tC(t){return t&&(t.kind===178||t.kind===179)}function Mh(t){return ps(t)&&xS(t)}function DPe(t){return Ei(t)&&lF(t)?(!nP(t)||!_C(t.expression))&&!V4(t,!0):t.parent&&Co(t.parent)&&ps(t)&&!xS(t)}function OO(t){switch(t.kind){case 175:case 178:case 179:return!0;default:return!1}}function sp(t){return bc(t)||hd(t)}function KI(t){let n=t.kind;return n===181||n===180||n===172||n===174||n===182||n===178||n===179||n===355}function qte(t){return KI(t)||J_(t)}function MT(t){let n=t.kind;return n===304||n===305||n===306||n===175||n===178||n===179}function Wo(t){return Fhe(t.kind)}function APe(t){switch(t.kind){case 185:case 186:return!0}return!1}function $s(t){if(t){let n=t.kind;return n===208||n===207}return!1}function aU(t){let n=t.kind;return n===210||n===211}function Jte(t){let n=t.kind;return n===209||n===233}function cG(t){switch(t.kind){case 261:case 170:case 209:return!0}return!1}function wPe(t){return Oo(t)||wa(t)||uG(t)||pG(t)}function lG(t){return sme(t)||cme(t)}function sme(t){switch(t.kind){case 207:case 211:return!0}return!1}function uG(t){switch(t.kind){case 209:case 304:case 305:case 306:return!0}return!1}function cme(t){switch(t.kind){case 208:case 210:return!0}return!1}function pG(t){switch(t.kind){case 209:case 233:case 231:case 210:case 211:case 80:case 212:case 213:return!0}return of(t,!0)}function IPe(t){let n=t.kind;return n===212||n===167||n===206}function _G(t){let n=t.kind;return n===212||n===167}function lme(t){return QI(t)||mC(t)}function QI(t){switch(t.kind){case 214:case 215:case 216:case 171:case 287:case 286:case 290:return!0;case 227:return t.operatorToken.kind===104;default:return!1}}function mS(t){return t.kind===214||t.kind===215}function FO(t){let n=t.kind;return n===229||n===15}function jh(t){return Fct(q1(t).kind)}function Fct(t){switch(t){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function ume(t){return Rct(q1(t).kind)}function Rct(t){switch(t){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return Fct(t)}}function PPe(t){switch(t.kind){case 226:return!0;case 225:return t.operator===46||t.operator===47;default:return!1}}function NPe(t){switch(t.kind){case 106:case 112:case 97:case 225:return!0;default:return F4(t)}}function Vt(t){return Btr(q1(t).kind)}function Btr(t){switch(t){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return Rct(t)}}function ZI(t){let n=t.kind;return n===217||n===235}function rC(t,n){switch(t.kind){case 249:case 250:case 251:case 247:case 248:return!0;case 257:return n&&rC(t.statement,n)}return!1}function $tr(t){return Xu(t)||P_(t)}function OPe(t){return Pt(t,$tr)}function Vte(t){return!xG(t)&&!Xu(t)&&!ko(t,32)&&!Gm(t)}function dG(t){return xG(t)||Xu(t)||ko(t,32)}function M4(t){return t.kind===250||t.kind===251}function Wte(t){return Vs(t)||Vt(t)}function pme(t){return Vs(t)}function f0(t){return Df(t)||Vt(t)}function FPe(t){let n=t.kind;return n===269||n===268||n===80}function Lct(t){let n=t.kind;return n===269||n===268}function Mct(t){let n=t.kind;return n===80||n===268}function _me(t){let n=t.kind;return n===276||n===275}function fG(t){return t.kind===268||t.kind===267}function gv(t){switch(t.kind){case 220:case 227:case 209:case 214:case 180:case 264:case 232:case 176:case 177:case 186:case 181:case 213:case 267:case 307:case 278:case 279:case 282:case 263:case 219:case 185:case 178:case 80:case 274:case 272:case 277:case 182:case 265:case 339:case 341:case 318:case 342:case 349:case 324:case 347:case 323:case 292:case 293:case 294:case 201:case 175:case 174:case 268:case 203:case 281:case 271:case 275:case 215:case 15:case 9:case 211:case 170:case 212:case 304:case 173:case 172:case 179:case 305:case 308:case 306:case 11:case 266:case 188:case 169:case 261:return!0;default:return!1}}function vb(t){switch(t.kind){case 220:case 242:case 180:case 270:case 300:case 176:case 195:case 177:case 186:case 181:case 249:case 250:case 251:case 263:case 219:case 185:case 178:case 182:case 339:case 341:case 318:case 324:case 347:case 201:case 175:case 174:case 268:case 179:case 308:case 266:return!0;default:return!1}}function Utr(t){return t===220||t===209||t===264||t===232||t===176||t===177||t===267||t===307||t===282||t===263||t===219||t===178||t===274||t===272||t===277||t===265||t===292||t===175||t===174||t===268||t===271||t===275||t===281||t===170||t===304||t===173||t===172||t===179||t===305||t===266||t===169||t===261||t===347||t===339||t===349||t===203}function RPe(t){return t===263||t===283||t===264||t===265||t===266||t===267||t===268||t===273||t===272||t===279||t===278||t===271}function LPe(t){return t===253||t===252||t===260||t===247||t===245||t===243||t===250||t===251||t===249||t===246||t===257||t===254||t===256||t===258||t===259||t===244||t===248||t===255||t===354}function Vd(t){return t.kind===169?t.parent&&t.parent.kind!==346||Ei(t):Utr(t.kind)}function MPe(t){return RPe(t.kind)}function mG(t){return LPe(t.kind)}function fa(t){let n=t.kind;return LPe(n)||RPe(n)||ztr(t)}function ztr(t){return t.kind!==242||t.parent!==void 0&&(t.parent.kind===259||t.parent.kind===300)?!1:!tP(t)}function jPe(t){let n=t.kind;return LPe(n)||RPe(n)||n===242}function BPe(t){let n=t.kind;return n===284||n===167||n===80}function sU(t){let n=t.kind;return n===110||n===80||n===212||n===296}function hG(t){let n=t.kind;return n===285||n===295||n===286||n===12||n===289}function Gte(t){let n=t.kind;return n===292||n===294}function $Pe(t){let n=t.kind;return n===11||n===295}function Em(t){let n=t.kind;return n===287||n===286}function UPe(t){let n=t.kind;return n===287||n===286||n===290}function Hte(t){let n=t.kind;return n===297||n===298}function LR(t){return t.kind>=310&&t.kind<=352}function Kte(t){return t.kind===321||t.kind===320||t.kind===322||RO(t)||MR(t)||p3(t)||TE(t)}function MR(t){return t.kind>=328&&t.kind<=352}function hS(t){return t.kind===179}function Ax(t){return t.kind===178}function hy(t){if(!WG(t))return!1;let{jsDoc:n}=t;return!!n&&n.length>0}function Qte(t){return!!t.type}function lE(t){return!!t.initializer}function j4(t){switch(t.kind){case 261:case 170:case 209:case 173:case 304:case 307:return!0;default:return!1}}function dme(t){return t.kind===292||t.kind===294||MT(t)}function Zte(t){return t.kind===184||t.kind===234}var jct=1073741823;function zPe(t){let n=jct;for(let a of t){if(!a.length)continue;let c=0;for(;c0?a.parent.parameters[u-1]:void 0,f=n.text,y=_?go(hb(f,_c(f,_.end+1,!1,!0)),my(f,t.pos)):hb(f,_c(f,t.pos,!1,!0));return Pt(y)&&Bct(Sn(y),n)}let c=a&&Rme(a,n);return!!X(c,u=>Bct(u,n))}var mme=[],nC="tslib",cU=160,hme=1e6,JPe=500;function Qu(t,n){let a=t.declarations;if(a){for(let c of a)if(c.kind===n)return c}}function VPe(t,n){return yr(t.declarations||j,a=>a.kind===n)}function ic(t){let n=new Map;if(t)for(let a of t)n.set(a.escapedName,a);return n}function wx(t){return(t.flags&33554432)!==0}function LO(t){return!!(t.flags&1536)&&t.escapedName.charCodeAt(0)===34}var Xte=qtr();function qtr(){var t="";let n=a=>t+=a;return{getText:()=>t,write:n,rawWrite:n,writeKeyword:n,writeOperator:n,writePunctuation:n,writeSpace:n,writeStringLiteral:n,writeLiteral:n,writeParameter:n,writeProperty:n,writeSymbol:(a,c)=>n(a),writeTrailingSemicolon:n,writeComment:n,getTextPos:()=>t.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!t.length&&p0(t.charCodeAt(t.length-1)),writeLine:()=>t+=" ",increaseIndent:zs,decreaseIndent:zs,clear:()=>t=""}}function Yte(t,n){return t.configFilePath!==n.configFilePath||Jtr(t,n)}function Jtr(t,n){return MO(t,n,pye)}function WPe(t,n){return MO(t,n,FNe)}function MO(t,n,a){return t!==n&&a.some(c=>!Sne(cne(t,c),cne(n,c)))}function GPe(t,n){for(;;){let a=n(t);if(a==="quit")return;if(a!==void 0)return a;if(Ta(t))return;t=t.parent}}function Ad(t,n){let a=t.entries();for(let[c,u]of a){let _=n(u,c);if(_)return _}}function Ix(t,n){let a=t.keys();for(let c of a){let u=n(c);if(u)return u}}function ere(t,n){t.forEach((a,c)=>{n.set(c,a)})}function jR(t){let n=Xte.getText();try{return t(Xte),Xte.getText()}finally{Xte.clear(),Xte.writeKeyword(n)}}function gG(t){return t.end-t.pos}function gme(t,n){return t.path===n.path&&!t.prepend==!n.prepend&&!t.circular==!n.circular}function HPe(t,n){return t===n||t.resolvedModule===n.resolvedModule||!!t.resolvedModule&&!!n.resolvedModule&&t.resolvedModule.isExternalLibraryImport===n.resolvedModule.isExternalLibraryImport&&t.resolvedModule.extension===n.resolvedModule.extension&&t.resolvedModule.resolvedFileName===n.resolvedModule.resolvedFileName&&t.resolvedModule.originalPath===n.resolvedModule.originalPath&&Vtr(t.resolvedModule.packageId,n.resolvedModule.packageId)&&t.alternateResult===n.alternateResult}function jO(t){return t.resolvedModule}function tre(t){return t.resolvedTypeReferenceDirective}function rre(t,n,a,c,u){var _;let f=(_=n.getResolvedModule(t,a,c))==null?void 0:_.alternateResult,y=f&&(km(n.getCompilerOptions())===2?[x.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[f]]:[x.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[f,f.includes(Jx+"@types/")?`@types/${LL(u)}`:u]]),g=y?ws(void 0,y[0],...y[1]):n.typesPackageExists(u)?ws(void 0,x.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,u,LL(u)):n.packageBundlesTypes(u)?ws(void 0,x.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,u,a):ws(void 0,x.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,a,LL(u));return g&&(g.repopulateInfo=()=>({moduleReference:a,mode:c,packageName:u===a?void 0:u})),g}function yme(t){let n=Bx(t.fileName),a=t.packageJsonScope,c=n===".ts"?".mts":n===".js"?".mjs":void 0,u=a&&!a.contents.packageJsonContent.type?c?ws(void 0,x.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,c,Xi(a.packageDirectory,"package.json")):ws(void 0,x.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Xi(a.packageDirectory,"package.json")):c?ws(void 0,x.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,c):ws(void 0,x.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return u.repopulateInfo=()=>!0,u}function Vtr(t,n){return t===n||!!t&&!!n&&t.name===n.name&&t.subModuleName===n.subModuleName&&t.version===n.version&&t.peerDependencies===n.peerDependencies}function nre({name:t,subModuleName:n}){return n?`${t}/${n}`:t}function cA(t){return`${nre(t)}@${t.version}${t.peerDependencies??""}`}function KPe(t,n){return t===n||t.resolvedTypeReferenceDirective===n.resolvedTypeReferenceDirective||!!t.resolvedTypeReferenceDirective&&!!n.resolvedTypeReferenceDirective&&t.resolvedTypeReferenceDirective.resolvedFileName===n.resolvedTypeReferenceDirective.resolvedFileName&&!!t.resolvedTypeReferenceDirective.primary==!!n.resolvedTypeReferenceDirective.primary&&t.resolvedTypeReferenceDirective.originalPath===n.resolvedTypeReferenceDirective.originalPath}function vme(t,n,a,c){$.assert(t.length===n.length);for(let u=0;u=0),Ry(n)[t]}function $ct(t){let n=Pn(t),a=qs(n,t.pos);return`${n.fileName}(${a.line+1},${a.character+1})`}function vG(t,n){$.assert(t>=0);let a=Ry(n),c=t,u=n.text;if(c+1===a.length)return u.length-1;{let _=a[c],f=a[c+1]-1;for($.assert(Dd(u.charCodeAt(f)));_<=f&&Dd(u.charCodeAt(f));)f--;return f}}function ire(t,n,a){return!(a&&a(n))&&!t.identifiers.has(n)}function Op(t){return t===void 0?!0:t.pos===t.end&&t.pos>=0&&t.kind!==1}function t1(t){return!Op(t)}function ZPe(t,n){return Zu(t)?n===t.expression:n_(t)?n===t.modifiers:Zm(t)?n===t.initializer:ps(t)?n===t.questionToken&&Mh(t):td(t)?n===t.modifiers||n===t.questionToken||n===t.exclamationToken||SG(t.modifiers,n,sp):im(t)?n===t.equalsToken||n===t.modifiers||n===t.questionToken||n===t.exclamationToken||SG(t.modifiers,n,sp):Ep(t)?n===t.exclamationToken:kp(t)?n===t.typeParameters||n===t.type||SG(t.typeParameters,n,Zu):T0(t)?n===t.typeParameters||SG(t.typeParameters,n,Zu):mg(t)?n===t.typeParameters||n===t.type||SG(t.typeParameters,n,Zu):UH(t)?n===t.modifiers||SG(t.modifiers,n,sp):!1}function SG(t,n,a){return!t||Zn(n)||!a(n)?!1:un(t,n)}function Uct(t,n,a){if(n===void 0||n.length===0)return t;let c=0;for(;c[`${qs(t,f.range.end).line}`,f])),c=new Map;return{getUnusedExpectations:u,markUsed:_};function u(){return so(a.entries()).filter(([f,y])=>y.type===0&&!c.get(f)).map(([f,y])=>y)}function _(f){return a.has(`${f}`)?(c.set(`${f}`,!0),!0):!1}}function oC(t,n,a){if(Op(t))return t.pos;if(LR(t)||t.kind===12)return _c((n??Pn(t)).text,t.pos,!1,!0);if(a&&hy(t))return oC(t.jsDoc[0],n);if(t.kind===353){n??(n=Pn(t));let c=pi(Jge(t,n));if(c)return oC(c,n,a)}return _c((n??Pn(t)).text,t.pos,!1,!1,gU(t))}function xme(t,n){let a=!Op(t)&&l1(t)?Ut(t.modifiers,hd):void 0;return a?_c((n||Pn(t)).text,a.end):oC(t,n)}function YPe(t,n){let a=!Op(t)&&l1(t)&&t.modifiers?Sn(t.modifiers):void 0;return a?_c((n||Pn(t)).text,a.end):oC(t,n)}function XI(t,n,a=!1){return uU(t.text,n,a)}function Gtr(t){return!!fn(t,AA)}function are(t){return!!(P_(t)&&t.exportClause&&Db(t.exportClause)&&bb(t.exportClause.name))}function aC(t){return t.kind===11?t.text:oa(t.escapedText)}function YI(t){return t.kind===11?dp(t.text):t.escapedText}function bb(t){return(t.kind===11?t.text:t.escapedText)==="default"}function uU(t,n,a=!1){if(Op(n))return"";let c=t.substring(a?n.pos:_c(t,n.pos),n.end);return Gtr(n)&&(c=c.split(/\r\n|\n|\r/).map(u=>u.replace(/^\s*\*/,"").trimStart()).join(` -`)),c}function Sp(t,n=!1){return XI(Pn(t),t,n)}function Htr(t){return t.pos}function BR(t,n){return rs(t,n,Htr,Br)}function Xc(t){let n=t.emitNode;return n&&n.flags||0}function J1(t){let n=t.emitNode;return n&&n.internalFlags||0}var Tme=Ef(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Iterator:new Map(Object.entries({es2015:j})),AsyncIterator:new Map(Object.entries({es2015:j})),ArrayBuffer:new Map(Object.entries({es2024:["maxByteLength","resizable","resize","detached","transfer","transferToFixedLength"]})),Atomics:new Map(Object.entries({es2017:["add","and","compareExchange","exchange","isLockFree","load","or","store","sub","wait","notify","xor"],es2024:["waitAsync"],esnext:["pause"]})),SharedArrayBuffer:new Map(Object.entries({es2017:["byteLength","slice"],es2024:["growable","maxByteLength","grow"]})),AsyncIterable:new Map(Object.entries({es2018:j})),AsyncIterableIterator:new Map(Object.entries({es2018:j})),AsyncGenerator:new Map(Object.entries({es2018:j})),AsyncGeneratorFunction:new Map(Object.entries({es2018:j})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"],es2024:["unicodeSets"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"],es2024:["groupBy"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],esnext:["f16round"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),MapConstructor:new Map(Object.entries({es2024:["groupBy"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"],esnext:["union","intersection","difference","symmetricDifference","isSubsetOf","isSupersetOf","isDisjointFrom"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"],es2024:["withResolvers"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"],es2024:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:j,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"],esnext:["metadata","dispose","asyncDispose"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],esnext:["setFloat16","getFloat16"]})),BigInt:new Map(Object.entries({es2020:j})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float16Array:new Map(Object.entries({esnext:j})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigInt64Array:new Map(Object.entries({es2020:j,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:j,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),e6e=(t=>(t[t.None=0]="None",t[t.NeverAsciiEscape=1]="NeverAsciiEscape",t[t.JsxAttributeEscape=2]="JsxAttributeEscape",t[t.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",t[t.AllowNumericSeparator=8]="AllowNumericSeparator",t))(e6e||{});function t6e(t,n,a){if(n&&Ktr(t,a))return XI(n,t);switch(t.kind){case 11:{let c=a&2?lhe:a&1||Xc(t)&16777216?kb:Mre;return t.singleQuote?"'"+c(t.text,39)+"'":'"'+c(t.text,34)+'"'}case 15:case 16:case 17:case 18:{let c=a&1||Xc(t)&16777216?kb:Mre,u=t.rawText??she(c(t.text,96));switch(t.kind){case 15:return"`"+u+"`";case 16:return"`"+u+"${";case 17:return"}"+u+"${";case 18:return"}"+u+"`"}break}case 9:case 10:return t.text;case 14:return a&4&&t.isUnterminated?t.text+(t.text.charCodeAt(t.text.length-1)===92?" /":"/"):t.text}return $.fail(`Literal kind '${t.kind}' not accounted for.`)}function Ktr(t,n){if(fu(t)||!t.parent||n&4&&t.isUnterminated)return!1;if(qh(t)){if(t.numericLiteralFlags&26656)return!1;if(t.numericLiteralFlags&512)return!!(n&8)}return!dL(t)}function r6e(t){return Ni(t)?`"${kb(t)}"`:""+t}function n6e(t){return t_(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function Eme(t){return(dd(t)&7)!==0||kme(t)}function kme(t){let n=bS(t);return n.kind===261&&n.parent.kind===300}function Gm(t){return I_(t)&&(t.name.kind===11||xb(t))}function sre(t){return I_(t)&&t.name.kind===11}function Cme(t){return I_(t)&&Ic(t.name)}function Qtr(t){return I_(t)||ct(t)}function bG(t){return Ztr(t.valueDeclaration)}function Ztr(t){return!!t&&t.kind===268&&!t.body}function i6e(t){return t.kind===308||t.kind===268||RR(t)}function xb(t){return!!(t.flags&2048)}function eP(t){return Gm(t)&&Dme(t)}function Dme(t){switch(t.parent.kind){case 308:return yd(t.parent);case 269:return Gm(t.parent.parent)&&Ta(t.parent.parent.parent)&&!yd(t.parent.parent.parent)}return!1}function Ame(t){var n;return(n=t.declarations)==null?void 0:n.find(a=>!eP(a)&&!(I_(a)&&xb(a)))}function Xtr(t){return t===1||100<=t&&t<=199}function $R(t,n){return yd(t)||Xtr(Km(n))&&!!t.commonJsModuleIndicator}function wme(t,n){switch(t.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return t.isDeclarationFile?!1:!!(rm(n,"alwaysStrict")||lNe(t.statements)||yd(t)||a1(n))}function Ime(t){return!!(t.flags&33554432)||ko(t,128)}function Pme(t,n){switch(t.kind){case 308:case 270:case 300:case 268:case 249:case 250:case 251:case 177:case 175:case 178:case 179:case 263:case 219:case 220:case 173:case 176:return!0;case 242:return!RR(n)}return!1}function Nme(t){switch($.type(t),t.kind){case 339:case 347:case 324:return!0;default:return Ome(t)}}function Ome(t){switch($.type(t),t.kind){case 180:case 181:case 174:case 182:case 185:case 186:case 318:case 264:case 232:case 265:case 266:case 346:case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function $O(t){switch(t.kind){case 273:case 272:return!0;default:return!1}}function o6e(t){return $O(t)||rP(t)}function a6e(t){return $O(t)||LG(t)}function cre(t){switch(t.kind){case 273:case 272:case 244:case 264:case 263:case 268:case 266:case 265:case 267:return!0;default:return!1}}function s6e(t){return xG(t)||I_(t)||AS(t)||Bh(t)}function xG(t){return $O(t)||P_(t)}function lre(t){return fn(t.parent,n=>!!(Bye(n)&1))}function yv(t){return fn(t.parent,n=>Pme(n,n.parent))}function c6e(t,n){let a=yv(t);for(;a;)n(a),a=yv(a)}function du(t){return!t||gG(t)===0?"(Missing)":Sp(t)}function l6e(t){return t.declaration?du(t.declaration.parameters[0].name):void 0}function TG(t){return t.kind===168&&!jy(t.expression)}function pU(t){var n;switch(t.kind){case 80:case 81:return(n=t.emitNode)!=null&&n.autoGenerate?void 0:t.escapedText;case 11:case 9:case 10:case 15:return dp(t.text);case 168:return jy(t.expression)?dp(t.expression.text):void 0;case 296:return cF(t);default:return $.assertNever(t)}}function UO(t){return $.checkDefined(pU(t))}function Rg(t){switch(t.kind){case 110:return"this";case 81:case 80:return gG(t)===0?Zi(t):Sp(t);case 167:return Rg(t.left)+"."+Rg(t.right);case 212:return ct(t.name)||Aa(t.name)?Rg(t.expression)+"."+Rg(t.name):$.assertNever(t.name);case 312:return Rg(t.left)+"#"+Rg(t.right);case 296:return Rg(t.namespace)+":"+Rg(t.name);default:return $.assertNever(t)}}function xi(t,n,...a){let c=Pn(t);return m0(c,t,n,...a)}function UR(t,n,a,...c){let u=_c(t.text,n.pos);return md(t,u,n.end-u,a,...c)}function m0(t,n,a,...c){let u=$4(t,n);return md(t,u.start,u.length,a,...c)}function Nx(t,n,a,c){let u=$4(t,n);return ure(t,u.start,u.length,a,c)}function EG(t,n,a,c){let u=_c(t.text,n.pos);return ure(t,u,n.end-u,a,c)}function u6e(t,n,a){$.assertGreaterThanOrEqual(n,0),$.assertGreaterThanOrEqual(a,0),$.assertLessThanOrEqual(n,t.length),$.assertLessThanOrEqual(n+a,t.length)}function ure(t,n,a,c,u){return u6e(t.text,n,a),{file:t,start:n,length:a,code:c.code,category:c.category,messageText:c.next?c:c.messageText,relatedInformation:u,canonicalHead:c.canonicalHead}}function Fme(t,n,a){return{file:t,start:0,length:0,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:a}}function p6e(t){return typeof t.messageText=="string"?{code:t.code,category:t.category,messageText:t.messageText,next:t.next}:t.messageText}function _6e(t,n,a){return{file:t,start:n.pos,length:n.end-n.pos,code:a.code,category:a.category,messageText:a.message}}function d6e(t,...n){return{code:t.code,messageText:nF(t,...n)}}function gS(t,n){let a=B1(t.languageVersion,!0,t.languageVariant,t.text,void 0,n);a.scan();let c=a.getTokenStart();return Hu(c,a.getTokenEnd())}function f6e(t,n){let a=B1(t.languageVersion,!0,t.languageVariant,t.text,void 0,n);return a.scan(),a.getToken()}function Ytr(t,n){let a=_c(t.text,n.pos);if(n.body&&n.body.kind===242){let{line:c}=qs(t,n.body.pos),{line:u}=qs(t,n.body.end);if(c0?n.statements[0].pos:n.end;return Hu(_,f)}case 254:case 230:{let _=_c(t.text,n.pos);return gS(t,_)}case 239:{let _=_c(t.text,n.expression.end);return gS(t,_)}case 351:{let _=_c(t.text,n.tagName.pos);return gS(t,_)}case 177:{let _=n,f=_c(t.text,_.pos),y=B1(t.languageVersion,!0,t.languageVariant,t.text,void 0,f),g=y.scan();for(;g!==137&&g!==1;)g=y.scan();let k=y.getTokenEnd();return Hu(f,k)}}if(a===void 0)return gS(t,n.pos);$.assert(!kv(a));let c=Op(a),u=c||_F(n)?a.pos:_c(t.text,a.pos);return c?($.assert(u===a.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),$.assert(u===a.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):($.assert(u>=a.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),$.assert(u<=a.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Hu(u,a.end)}function uE(t){return t.kind===308&&!Lg(t)}function Lg(t){return(t.externalModuleIndicator||t.commonJsModuleIndicator)!==void 0}function h0(t){return t.scriptKind===6}function lA(t){return!!(Ra(t)&4096)}function kG(t){return!!(Ra(t)&8&&!ne(t,t.parent))}function CG(t){return(dd(t)&7)===6}function DG(t){return(dd(t)&7)===4}function zR(t){return(dd(t)&7)===2}function m6e(t){let n=dd(t)&7;return n===2||n===4||n===6}function pre(t){return(dd(t)&7)===1}function U4(t){return t.kind===214&&t.expression.kind===108}function Bh(t){if(t.kind!==214)return!1;let n=t.expression;return n.kind===102||s3(n)&&n.keywordToken===102&&n.name.escapedText==="defer"}function qR(t){return s3(t)&&t.keywordToken===102&&t.name.escapedText==="meta"}function jT(t){return AS(t)&&bE(t.argument)&&Ic(t.argument.literal)}function yS(t){return t.kind===245&&t.expression.kind===11}function AG(t){return!!(Xc(t)&2097152)}function _re(t){return AG(t)&&i_(t)}function err(t){return ct(t.name)&&!t.initializer}function dre(t){return AG(t)&&h_(t)&&ht(t.declarationList.declarations,err)}function Rme(t,n){return t.kind!==12?my(n.text,t.pos):void 0}function Lme(t,n){let a=t.kind===170||t.kind===169||t.kind===219||t.kind===220||t.kind===218||t.kind===261||t.kind===282?go(hb(n,t.pos),my(n,t.pos)):my(n,t.pos);return yr(a,c=>c.end<=t.end&&n.charCodeAt(c.pos+1)===42&&n.charCodeAt(c.pos+2)===42&&n.charCodeAt(c.pos+3)!==47)}var trr=/^\/\/\/\s*/,rrr=/^\/\/\/\s*/,nrr=/^\/\/\/\s*/,irr=/^\/\/\/\s*/,orr=/^\/\/\/\s*/,arr=/^\/\/\/\s*/;function vS(t){if(183<=t.kind&&t.kind<=206)return!0;switch(t.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return t.parent.kind!==223;case 234:return Vct(t);case 169:return t.parent.kind===201||t.parent.kind===196;case 80:(t.parent.kind===167&&t.parent.right===t||t.parent.kind===212&&t.parent.name===t)&&(t=t.parent),$.assert(t.kind===80||t.kind===167||t.kind===212,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 167:case 212:case 110:{let{parent:n}=t;if(n.kind===187)return!1;if(n.kind===206)return!n.isTypeOf;if(183<=n.kind&&n.kind<=206)return!0;switch(n.kind){case 234:return Vct(n);case 169:return t===n.constraint;case 346:return t===n.constraint;case 173:case 172:case 170:case 261:return t===n.type;case 263:case 219:case 220:case 177:case 175:case 174:case 178:case 179:return t===n.type;case 180:case 181:case 182:return t===n.type;case 217:return t===n.type;case 214:case 215:case 216:return un(n.typeArguments,t)}}}return!1}function Vct(t){return Zne(t.parent)||EF(t.parent)||zg(t.parent)&&!Hre(t)}function sC(t,n){return a(t);function a(c){switch(c.kind){case 254:return n(c);case 270:case 242:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 297:case 298:case 257:case 259:case 300:return Is(c,a)}}}function h6e(t,n){return a(t);function a(c){switch(c.kind){case 230:n(c);let u=c.expression;u&&a(u);return;case 267:case 265:case 268:case 266:return;default:if(Rs(c)){if(c.name&&c.name.kind===168){a(c.name.expression);return}}else vS(c)||Is(c,a)}}}function Mme(t){return t&&t.kind===189?t.elementType:t&&t.kind===184?to(t.typeArguments):void 0}function g6e(t){switch(t.kind){case 265:case 264:case 232:case 188:return t.members;case 211:return t.properties}}function _U(t){if(t)switch(t.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function dU(t){return t.parent.kind===262&&t.parent.parent.kind===244}function y6e(t){return Ei(t)?Lc(t.parent)&&wi(t.parent.parent)&&m_(t.parent.parent)===2||fre(t.parent):!1}function fre(t){return Ei(t)?wi(t)&&m_(t)===1:!1}function v6e(t){return(Oo(t)?zR(t)&&ct(t.name)&&dU(t):ps(t)?Q4(t)&&fd(t):Zm(t)&&Q4(t))||fre(t)}function S6e(t){switch(t.kind){case 175:case 174:case 177:case 178:case 179:case 263:case 219:return!0}return!1}function jme(t,n){for(;;){if(n&&n(t),t.statement.kind!==257)return t.statement;t=t.statement}}function tP(t){return t&&t.kind===242&&Rs(t.parent)}function r1(t){return t&&t.kind===175&&t.parent.kind===211}function mre(t){return(t.kind===175||t.kind===178||t.kind===179)&&(t.parent.kind===211||t.parent.kind===232)}function b6e(t){return t&&t.kind===1}function x6e(t){return t&&t.kind===0}function JR(t,n,a,c){return X(t?.properties,u=>{if(!td(u))return;let _=pU(u.name);return n===_||c&&c===_?a(u):void 0})}function fU(t){if(t&&t.statements.length){let n=t.statements[0].expression;return Ci(n,Lc)}}function hre(t,n,a){return wG(t,n,c=>qf(c.initializer)?wt(c.initializer.elements,u=>Ic(u)&&u.text===a):void 0)}function wG(t,n,a){return JR(fU(t),n,a)}function My(t){return fn(t.parent,Rs)}function T6e(t){return fn(t.parent,lu)}function Cf(t){return fn(t.parent,Co)}function E6e(t){return fn(t.parent,n=>Co(n)||Rs(n)?"quit":n_(n))}function gre(t){return fn(t.parent,RR)}function yre(t){let n=fn(t.parent,a=>Co(a)?"quit":hd(a));return n&&Co(n.parent)?Cf(n.parent):Cf(n??t)}function Hm(t,n,a){for($.assert(t.kind!==308);;){if(t=t.parent,!t)return $.fail();switch(t.kind){case 168:if(a&&Co(t.parent.parent))return t;t=t.parent.parent;break;case 171:t.parent.kind===170&&J_(t.parent.parent)?t=t.parent.parent:J_(t.parent)&&(t=t.parent);break;case 220:if(!n)continue;case 263:case 219:case 268:case 176:case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 180:case 181:case 182:case 267:case 308:return t}}}function k6e(t){switch(t.kind){case 220:case 263:case 219:case 173:return!0;case 242:switch(t.parent.kind){case 177:case 175:case 178:case 179:return!0;default:return!1}default:return!1}}function vre(t){ct(t)&&(ed(t.parent)||i_(t.parent))&&t.parent.name===t&&(t=t.parent);let n=Hm(t,!0,!1);return Ta(n)}function C6e(t){let n=Hm(t,!1,!1);if(n)switch(n.kind){case 177:case 263:case 219:return n}}function IG(t,n){for(;;){if(t=t.parent,!t)return;switch(t.kind){case 168:t=t.parent;break;case 263:case 219:case 220:if(!n)continue;case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 176:return t;case 171:t.parent.kind===170&&J_(t.parent.parent)?t=t.parent.parent:J_(t.parent)&&(t=t.parent);break}}}function uA(t){if(t.kind===219||t.kind===220){let n=t,a=t.parent;for(;a.kind===218;)n=a,a=a.parent;if(a.kind===214&&a.expression===n)return a}}function _g(t){let n=t.kind;return(n===212||n===213)&&t.expression.kind===108}function PG(t){let n=t.kind;return(n===212||n===213)&&t.expression.kind===110}function Sre(t){var n;return!!t&&Oo(t)&&((n=t.initializer)==null?void 0:n.kind)===110}function D6e(t){return!!t&&(im(t)||td(t))&&wi(t.parent.parent)&&t.parent.parent.operatorToken.kind===64&&t.parent.parent.right.kind===110}function NG(t){switch(t.kind){case 184:return t.typeName;case 234:return ru(t.expression)?t.expression:void 0;case 80:case 167:return t}}function bre(t){switch(t.kind){case 216:return t.tag;case 287:case 286:return t.tagName;case 227:return t.right;case 290:return t;default:return t.expression}}function OG(t,n,a,c){if(t&&Vp(n)&&Aa(n.name))return!1;switch(n.kind){case 264:return!0;case 232:return!t;case 173:return a!==void 0&&(t?ed(a):Co(a)&&!pP(n)&&!vhe(n));case 178:case 179:case 175:return n.body!==void 0&&a!==void 0&&(t?ed(a):Co(a));case 170:return t?a!==void 0&&a.body!==void 0&&(a.kind===177||a.kind===175||a.kind===179)&&cP(a)!==n&&c!==void 0&&c.kind===264:!1}return!1}function VR(t,n,a,c){return By(n)&&OG(t,n,a,c)}function FG(t,n,a,c){return VR(t,n,a,c)||mU(t,n,a)}function mU(t,n,a){switch(n.kind){case 264:return Pt(n.members,c=>FG(t,c,n,a));case 232:return!t&&Pt(n.members,c=>FG(t,c,n,a));case 175:case 179:case 177:return Pt(n.parameters,c=>VR(t,c,n,a));default:return!1}}function pE(t,n){if(VR(t,n))return!0;let a=Rx(n);return!!a&&mU(t,a,n)}function Bme(t,n,a){let c;if(tC(n)){let{firstAccessor:u,secondAccessor:_,setAccessor:f}=uP(a.members,n),y=By(u)?u:_&&By(_)?_:void 0;if(!y||n!==y)return!1;c=f?.parameters}else Ep(n)&&(c=n.parameters);if(VR(t,n,a))return!0;if(c){for(let u of c)if(!uC(u)&&VR(t,u,n,a))return!0}return!1}function $me(t){if(t.textSourceNode){switch(t.textSourceNode.kind){case 11:return $me(t.textSourceNode);case 15:return t.text===""}return!1}return t.text===""}function WR(t){let{parent:n}=t;return n.kind===287||n.kind===286||n.kind===288?n.tagName===t:!1}function Tb(t){switch(t.kind){case 108:case 106:case 112:case 97:case 14:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 235:case 217:case 239:case 236:case 218:case 219:case 232:case 220:case 223:case 221:case 222:case 225:case 226:case 227:case 228:case 231:case 229:case 233:case 285:case 286:case 289:case 230:case 224:return!0;case 237:return!Bh(t.parent)||t.parent.expression!==t;case 234:return!zg(t.parent)&&!EF(t.parent);case 167:for(;t.parent.kind===167;)t=t.parent;return t.parent.kind===187||RO(t.parent)||fz(t.parent)||wA(t.parent)||WR(t);case 312:for(;wA(t.parent);)t=t.parent;return t.parent.kind===187||RO(t.parent)||fz(t.parent)||wA(t.parent)||WR(t);case 81:return wi(t.parent)&&t.parent.left===t&&t.parent.operatorToken.kind===103;case 80:if(t.parent.kind===187||RO(t.parent)||fz(t.parent)||wA(t.parent)||WR(t))return!0;case 9:case 10:case 11:case 15:case 110:return xre(t);default:return!1}}function xre(t){let{parent:n}=t;switch(n.kind){case 261:case 170:case 173:case 172:case 307:case 304:case 209:return n.initializer===t;case 245:case 246:case 247:case 248:case 254:case 255:case 256:case 297:case 258:return n.expression===t;case 249:let a=n;return a.initializer===t&&a.initializer.kind!==262||a.condition===t||a.incrementor===t;case 250:case 251:let c=n;return c.initializer===t&&c.initializer.kind!==262||c.expression===t;case 217:case 235:return t===n.expression;case 240:return t===n.expression;case 168:return t===n.expression;case 171:case 295:case 294:case 306:return!0;case 234:return n.expression===t&&!vS(n);case 305:return n.objectAssignmentInitializer===t;case 239:return t===n.expression;default:return Tb(n)}}function Tre(t){for(;t.kind===167||t.kind===80;)t=t.parent;return t.kind===187}function A6e(t){return Db(t)&&!!t.parent.moduleSpecifier}function pA(t){return t.kind===272&&t.moduleReference.kind===284}function hU(t){return $.assert(pA(t)),t.moduleReference.expression}function Ume(t){return rP(t)&&oL(t.initializer).arguments[0]}function z4(t){return t.kind===272&&t.moduleReference.kind!==284}function Ox(t){return t?.kind===308}function ph(t){return Ei(t)}function Ei(t){return!!t&&!!(t.flags&524288)}function Ere(t){return!!t&&!!(t.flags&134217728)}function kre(t){return!h0(t)}function gU(t){return!!t&&!!(t.flags&16777216)}function Cre(t){return Ug(t)&&ct(t.typeName)&&t.typeName.escapedText==="Object"&&t.typeArguments&&t.typeArguments.length===2&&(t.typeArguments[0].kind===154||t.typeArguments[0].kind===150)}function $h(t,n){if(t.kind!==214)return!1;let{expression:a,arguments:c}=t;if(a.kind!==80||a.escapedText!=="require"||c.length!==1)return!1;let u=c[0];return!n||Sl(u)}function RG(t){return Wct(t,!1)}function rP(t){return Wct(t,!0)}function w6e(t){return Vc(t)&&rP(t.parent.parent)}function Wct(t,n){return Oo(t)&&!!t.initializer&&$h(n?oL(t.initializer):t.initializer,!0)}function LG(t){return h_(t)&&t.declarationList.declarations.length>0&&ht(t.declarationList.declarations,n=>RG(n))}function MG(t){return t===39||t===34}function Dre(t,n){return XI(n,t).charCodeAt(0)===34}function yU(t){return wi(t)||wu(t)||ct(t)||Js(t)}function jG(t){return Ei(t)&&t.initializer&&wi(t.initializer)&&(t.initializer.operatorToken.kind===57||t.initializer.operatorToken.kind===61)&&t.name&&ru(t.name)&&GR(t.name,t.initializer.left)?t.initializer.right:t.initializer}function vU(t){let n=jG(t);return n&&_A(n,_C(t.name))}function srr(t,n){return X(t.properties,a=>td(a)&&ct(a.name)&&a.name.escapedText==="value"&&a.initializer&&_A(a.initializer,n))}function zO(t){if(t&&t.parent&&wi(t.parent)&&t.parent.operatorToken.kind===64){let n=_C(t.parent.left);return _A(t.parent.right,n)||crr(t.parent.left,t.parent.right,n)}if(t&&Js(t)&&J4(t)){let n=srr(t.arguments[2],t.arguments[1].text==="prototype");if(n)return n}}function _A(t,n){if(Js(t)){let a=bl(t.expression);return a.kind===219||a.kind===220?t:void 0}if(t.kind===219||t.kind===232||t.kind===220||Lc(t)&&(t.properties.length===0||n))return t}function crr(t,n,a){let c=wi(n)&&(n.operatorToken.kind===57||n.operatorToken.kind===61)&&_A(n.right,a);if(c&&GR(t,n.left))return c}function I6e(t){let n=Oo(t.parent)?t.parent.name:wi(t.parent)&&t.parent.operatorToken.kind===64?t.parent.left:void 0;return n&&_A(t.right,_C(n))&&ru(n)&&GR(n,t.left)}function zme(t){if(wi(t.parent)){let n=(t.parent.operatorToken.kind===57||t.parent.operatorToken.kind===61)&&wi(t.parent.parent)?t.parent.parent:t.parent;if(n.operatorToken.kind===64&&ct(n.left))return n.left}else if(Oo(t.parent))return t.parent.name}function GR(t,n){return SS(t)&&SS(n)?g0(t)===g0(n):Dx(t)&&P6e(n)&&(n.expression.kind===110||ct(n.expression)&&(n.expression.escapedText==="window"||n.expression.escapedText==="self"||n.expression.escapedText==="global"))?GR(t,$G(n)):P6e(t)&&P6e(n)?BT(t)===BT(n)&&GR(t.expression,n.expression):!1}function BG(t){for(;of(t,!0);)t=t.right;return t}function q4(t){return ct(t)&&t.escapedText==="exports"}function qme(t){return ct(t)&&t.escapedText==="module"}function Fx(t){return(no(t)||Jme(t))&&qme(t.expression)&&BT(t)==="exports"}function m_(t){let n=lrr(t);return n===5||Ei(t)?n:0}function J4(t){return te(t.arguments)===3&&no(t.expression)&&ct(t.expression.expression)&&Zi(t.expression.expression)==="Object"&&Zi(t.expression.name)==="defineProperty"&&jy(t.arguments[1])&&V4(t.arguments[0],!0)}function P6e(t){return no(t)||Jme(t)}function Jme(t){return mu(t)&&jy(t.argumentExpression)}function nP(t,n){return no(t)&&(!n&&t.expression.kind===110||ct(t.name)&&V4(t.expression,!0))||Are(t,n)}function Are(t,n){return Jme(t)&&(!n&&t.expression.kind===110||ru(t.expression)||nP(t.expression,!0))}function V4(t,n){return ru(t)||nP(t,n)}function $G(t){return no(t)?t.name:t.argumentExpression}function lrr(t){if(Js(t)){if(!J4(t))return 0;let n=t.arguments[0];return q4(n)||Fx(n)?8:nP(n)&&BT(n)==="prototype"?9:7}return t.operatorToken.kind!==64||!wu(t.left)||urr(BG(t))?0:V4(t.left.expression,!0)&&BT(t.left)==="prototype"&&Lc(Vme(t))?6:UG(t.left)}function urr(t){return SF(t)&&qh(t.expression)&&t.expression.text==="0"}function wre(t){if(no(t))return t.name;let n=bl(t.argumentExpression);return qh(n)||Sl(n)?n:t}function BT(t){let n=wre(t);if(n){if(ct(n))return n.escapedText;if(Sl(n)||qh(n))return dp(n.text)}}function UG(t){if(t.expression.kind===110)return 4;if(Fx(t))return 2;if(V4(t.expression,!0)){if(_C(t.expression))return 3;let n=t;for(;!ct(n.expression);)n=n.expression;let a=n.expression;if((a.escapedText==="exports"||a.escapedText==="module"&&BT(n)==="exports")&&nP(t))return 1;if(V4(t,!0)||mu(t)&&Rre(t))return 5}return 0}function Vme(t){for(;wi(t.right);)t=t.right;return t.right}function zG(t){return wi(t)&&m_(t)===3}function N6e(t){return Ei(t)&&t.parent&&t.parent.kind===245&&(!mu(t)||Jme(t))&&!!mv(t.parent)}function SU(t,n){let{valueDeclaration:a}=t;(!a||!(n.flags&33554432&&!Ei(n)&&!(a.flags&33554432))&&yU(a)&&!yU(n)||a.kind!==n.kind&&Qtr(a))&&(t.valueDeclaration=n)}function O6e(t){if(!t||!t.valueDeclaration)return!1;let n=t.valueDeclaration;return n.kind===263||Oo(n)&&n.initializer&&Rs(n.initializer)}function F6e(t){switch(t?.kind){case 261:case 209:case 273:case 279:case 272:case 274:case 281:case 275:case 282:case 277:case 206:return!0}return!1}function qO(t){var n,a;switch(t.kind){case 261:case 209:return(n=fn(t.initializer,c=>$h(c,!0)))==null?void 0:n.arguments[0];case 273:case 279:case 352:return Ci(t.moduleSpecifier,Sl);case 272:return Ci((a=Ci(t.moduleReference,WT))==null?void 0:a.expression,Sl);case 274:case 281:return Ci(t.parent.moduleSpecifier,Sl);case 275:case 282:return Ci(t.parent.parent.moduleSpecifier,Sl);case 277:return Ci(t.parent.parent.parent.moduleSpecifier,Sl);case 206:return jT(t)?t.argument.literal:void 0;default:$.assertNever(t)}}function bU(t){return qG(t)||$.failBadSyntaxKind(t.parent)}function qG(t){switch(t.parent.kind){case 273:case 279:case 352:return t.parent;case 284:return t.parent.parent;case 214:return Bh(t.parent)||$h(t.parent,!1)?t.parent:void 0;case 202:if(!Ic(t))break;return Ci(t.parent.parent,AS);default:return}}function JG(t,n){return!!n.rewriteRelativeImportExtensions&&ch(t)&&!sf(t)&&X4(t)}function JO(t){switch(t.kind){case 273:case 279:case 352:return t.moduleSpecifier;case 272:return t.moduleReference.kind===284?t.moduleReference.expression:void 0;case 206:return jT(t)?t.argument.literal:void 0;case 214:return t.arguments[0];case 268:return t.name.kind===11?t.name:void 0;default:return $.assertNever(t)}}function HR(t){switch(t.kind){case 273:return t.importClause&&Ci(t.importClause.namedBindings,zx);case 272:return t;case 279:return t.exportClause&&Ci(t.exportClause,Db);default:return $.assertNever(t)}}function W4(t){return(t.kind===273||t.kind===352)&&!!t.importClause&&!!t.importClause.name}function R6e(t,n){if(t.name){let a=n(t);if(a)return a}if(t.namedBindings){let a=zx(t.namedBindings)?n(t.namedBindings):X(t.namedBindings.elements,n);if(a)return a}}function VO(t){switch(t.kind){case 170:case 175:case 174:case 305:case 304:case 173:case 172:return t.questionToken!==void 0}return!1}function WO(t){let n=TL(t)?pi(t.parameters):void 0,a=Ci(n&&n.name,ct);return!!a&&a.escapedText==="new"}function n1(t){return t.kind===347||t.kind===339||t.kind===341}function VG(t){return n1(t)||s1(t)}function prr(t){return af(t)&&wi(t.expression)&&t.expression.operatorToken.kind===64?BG(t.expression):void 0}function Gct(t){return af(t)&&wi(t.expression)&&m_(t.expression)!==0&&wi(t.expression.right)&&(t.expression.right.operatorToken.kind===57||t.expression.right.operatorToken.kind===61)?t.expression.right.right:void 0}function Hct(t){switch(t.kind){case 244:let n=GO(t);return n&&n.initializer;case 173:return t.initializer;case 304:return t.initializer}}function GO(t){return h_(t)?pi(t.declarationList.declarations):void 0}function Kct(t){return I_(t)&&t.body&&t.body.kind===268?t.body:void 0}function KR(t){if(t.kind>=244&&t.kind<=260)return!0;switch(t.kind){case 80:case 110:case 108:case 167:case 237:case 213:case 212:case 209:case 219:case 220:case 175:case 178:case 179:return!0;default:return!1}}function WG(t){switch(t.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function Wme(t,n){let a;_U(t)&&lE(t)&&hy(t.initializer)&&(a=En(a,Qct(t,t.initializer.jsDoc)));let c=t;for(;c&&c.parent;){if(hy(c)&&(a=En(a,Qct(t,c.jsDoc))),c.kind===170){a=En(a,(n?Ite:P4)(c));break}if(c.kind===169){a=En(a,(n?Z$:Pte)(c));break}c=Gme(c)}return a||j}function Qct(t,n){let a=Sn(n);return an(n,c=>{if(c===a){let u=yr(c.tags,_=>_rr(t,_));return c.tags===u?[c]:u}else return yr(c.tags,EL)})}function _rr(t,n){return!(mz(n)||Xne(n))||!n.parent||!kv(n.parent)||!mh(n.parent.parent)||n.parent.parent===t}function Gme(t){let n=t.parent;if(n.kind===304||n.kind===278||n.kind===173||n.kind===245&&t.kind===212||n.kind===254||Kct(n)||of(t))return n;if(n.parent&&(GO(n.parent)===t||of(n)))return n.parent;if(n.parent&&n.parent.parent&&(GO(n.parent.parent)||Hct(n.parent.parent)===t||Gct(n.parent.parent)))return n.parent.parent}function GG(t){if(t.symbol)return t.symbol;if(!ct(t.name))return;let n=t.name.escapedText,a=dA(t);if(!a)return;let c=wt(a.parameters,u=>u.name.kind===80&&u.name.escapedText===n);return c&&c.symbol}function Ire(t){if(kv(t.parent)&&t.parent.tags){let n=wt(t.parent.tags,n1);if(n)return n}return dA(t)}function Hme(t){return Mte(t,EL)}function dA(t){let n=fA(t);if(n)return Zm(n)&&n.type&&Rs(n.type)?n.type:Rs(n)?n:void 0}function fA(t){let n=iP(t);if(n)return Gct(n)||prr(n)||Hct(n)||GO(n)||Kct(n)||n}function iP(t){let n=QR(t);if(!n)return;let a=n.parent;if(a&&a.jsDoc&&n===Yr(a.jsDoc))return a}function QR(t){return fn(t.parent,kv)}function L6e(t){let n=t.name.escapedText,{typeParameters:a}=t.parent.parent.parent;return a&&wt(a,c=>c.name.escapedText===n)}function Zct(t){return!!t.typeArguments}var M6e=(t=>(t[t.None=0]="None",t[t.Definite=1]="Definite",t[t.Compound=2]="Compound",t))(M6e||{});function j6e(t){let n=t.parent;for(;;){switch(n.kind){case 227:let a=n,c=a.operatorToken.kind;return zT(c)&&a.left===t?a:void 0;case 225:case 226:let u=n,_=u.operator;return _===46||_===47?u:void 0;case 250:case 251:let f=n;return f.initializer===t?f:void 0;case 218:case 210:case 231:case 236:t=n;break;case 306:t=n.parent;break;case 305:if(n.name!==t)return;t=n.parent;break;case 304:if(n.name===t)return;t=n.parent;break;default:return}n=t.parent}}function cC(t){let n=j6e(t);if(!n)return 0;switch(n.kind){case 227:let a=n.operatorToken.kind;return a===64||OU(a)?1:2;case 225:case 226:return 2;case 250:case 251:return 1}}function lC(t){return!!j6e(t)}function drr(t){let n=bl(t.right);return n.kind===227&&tye(n.operatorToken.kind)}function Kme(t){let n=j6e(t);return!!n&&of(n,!0)&&drr(n)}function B6e(t){switch(t.kind){case 242:case 244:case 255:case 246:case 256:case 270:case 297:case 298:case 257:case 249:case 250:case 251:case 247:case 248:case 259:case 300:return!0}return!1}function G4(t){return bu(t)||Iu(t)||OO(t)||i_(t)||kp(t)}function Xct(t,n){for(;t&&t.kind===n;)t=t.parent;return t}function HG(t){return Xct(t,197)}function V1(t){return Xct(t,218)}function $6e(t){let n;for(;t&&t.kind===197;)n=t,t=t.parent;return[n,t]}function xU(t){for(;i3(t);)t=t.type;return t}function bl(t,n){return Wp(t,n?-2147483647:1)}function Qme(t){return t.kind!==212&&t.kind!==213?!1:(t=V1(t.parent),t&&t.kind===221)}function oP(t,n){for(;t;){if(t===n)return!0;t=t.parent}return!1}function Eb(t){return!Ta(t)&&!$s(t)&&Vd(t.parent)&&t.parent.name===t}function TU(t){let n=t.parent;switch(t.kind){case 11:case 15:case 9:if(dc(n))return n.parent;case 80:if(Vd(n))return n.name===t?n:void 0;if(dh(n)){let a=n.parent;return Uy(a)&&a.name===n?a:void 0}else{let a=n.parent;return wi(a)&&m_(a)!==0&&(a.left.symbol||a.symbol)&&cs(a)===t?a:void 0}case 81:return Vd(n)&&n.name===t?n:void 0;default:return}}function KG(t){return jy(t)&&t.parent.kind===168&&Vd(t.parent.parent)}function U6e(t){let n=t.parent;switch(n.kind){case 173:case 172:case 175:case 174:case 178:case 179:case 307:case 304:case 212:return n.name===t;case 167:return n.right===t;case 209:case 277:return n.propertyName===t;case 282:case 292:case 286:case 287:case 288:return!0}return!1}function Zme(t){switch(t.parent.kind){case 274:case 277:case 275:case 282:case 278:case 272:case 281:return t.parent;case 167:do t=t.parent;while(t.parent.kind===167);return Zme(t)}}function Pre(t){return ru(t)||w_(t)}function QG(t){let n=Xme(t);return Pre(n)}function Xme(t){return Xu(t)?t.expression:t.right}function z6e(t){return t.kind===305?t.name:t.kind===304?t.initializer:t.parent.right}function vv(t){let n=aP(t);if(n&&Ei(t)){let a=Ote(t);if(a)return a.class}return n}function aP(t){let n=ZG(t.heritageClauses,96);return n&&n.types.length>0?n.types[0]:void 0}function ZR(t){if(Ei(t))return Fte(t).map(n=>n.class);{let n=ZG(t.heritageClauses,119);return n?.types}}function EU(t){return Af(t)?kU(t)||j:Co(t)&&go(Z2(vv(t)),ZR(t))||j}function kU(t){let n=ZG(t.heritageClauses,96);return n?n.types:void 0}function ZG(t,n){if(t){for(let a of t)if(a.token===n)return a}}function mA(t,n){for(;t;){if(t.kind===n)return t;t=t.parent}}function Uh(t){return 83<=t&&t<=166}function Yme(t){return 19<=t&&t<=79}function Nre(t){return Uh(t)||Yme(t)}function Ore(t){return 128<=t&&t<=166}function ehe(t){return Uh(t)&&!Ore(t)}function HO(t){let n=kx(t);return n!==void 0&&ehe(n)}function the(t){let n=aA(t);return!!n&&!Ore(n)}function XR(t){return 2<=t&&t<=7}var q6e=(t=>(t[t.Normal=0]="Normal",t[t.Generator=1]="Generator",t[t.Async=2]="Async",t[t.Invalid=4]="Invalid",t[t.AsyncGenerator=3]="AsyncGenerator",t))(q6e||{});function A_(t){if(!t)return 4;let n=0;switch(t.kind){case 263:case 219:case 175:t.asteriskToken&&(n|=1);case 220:ko(t,1024)&&(n|=2);break}return t.body||(n|=4),n}function CU(t){switch(t.kind){case 263:case 219:case 220:case 175:return t.body!==void 0&&t.asteriskToken===void 0&&ko(t,1024)}return!1}function jy(t){return Sl(t)||qh(t)}function Fre(t){return TA(t)&&(t.operator===40||t.operator===41)&&qh(t.operand)}function $T(t){let n=cs(t);return!!n&&Rre(n)}function Rre(t){if(!(t.kind===168||t.kind===213))return!1;let n=mu(t)?bl(t.argumentExpression):t.expression;return!jy(n)&&!Fre(n)}function H4(t){switch(t.kind){case 80:case 81:return t.escapedText;case 11:case 15:case 9:case 10:return dp(t.text);case 168:let n=t.expression;return jy(n)?dp(n.text):Fre(n)?n.operator===41?Zs(n.operator)+n.operand.text:n.operand.text:void 0;case 296:return cF(t);default:return $.assertNever(t)}}function SS(t){switch(t.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function g0(t){return Dx(t)?Zi(t):Ev(t)?ez(t):t.text}function DU(t){return Dx(t)?t.escapedText:Ev(t)?cF(t):dp(t.text)}function XG(t,n){return`__#${hc(t)}@${n}`}function AU(t){return Ca(t.escapedName,"__@")}function J6e(t){return Ca(t.escapedName,"__#")}function frr(t){return ct(t)?Zi(t)==="__proto__":Ic(t)&&t.text==="__proto__"}function Lre(t,n){switch(t=Wp(t),t.kind){case 232:if(c0e(t))return!1;break;case 219:if(t.name)return!1;break;case 220:break;default:return!1}return typeof n=="function"?n(t):!0}function rhe(t){switch(t.kind){case 304:return!frr(t.name);case 305:return!!t.objectAssignmentInitializer;case 261:return ct(t.name)&&!!t.initializer;case 170:return ct(t.name)&&!!t.initializer&&!t.dotDotDotToken;case 209:return ct(t.name)&&!!t.initializer&&!t.dotDotDotToken;case 173:return!!t.initializer;case 227:switch(t.operatorToken.kind){case 64:case 77:case 76:case 78:return ct(t.left)}break;case 278:return!0}return!1}function Mg(t,n){if(!rhe(t))return!1;switch(t.kind){case 304:return Lre(t.initializer,n);case 305:return Lre(t.objectAssignmentInitializer,n);case 261:case 170:case 209:case 173:return Lre(t.initializer,n);case 227:return Lre(t.right,n);case 278:return Lre(t.expression,n)}}function nhe(t){return t.escapedText==="push"||t.escapedText==="unshift"}function hA(t){return bS(t).kind===170}function bS(t){for(;t.kind===209;)t=t.parent.parent;return t}function ihe(t){let n=t.kind;return n===177||n===219||n===263||n===220||n===175||n===178||n===179||n===268||n===308}function fu(t){return bv(t.pos)||bv(t.end)}var V6e=(t=>(t[t.Left=0]="Left",t[t.Right=1]="Right",t))(V6e||{});function ohe(t){let n=Yct(t),a=t.kind===215&&t.arguments!==void 0;return ahe(t.kind,n,a)}function ahe(t,n,a){switch(t){case 215:return a?0:1;case 225:case 222:case 223:case 221:case 224:case 228:case 230:return 1;case 227:switch(n){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function wU(t){let n=Yct(t),a=t.kind===215&&t.arguments!==void 0;return YG(t.kind,n,a)}function Yct(t){return t.kind===227?t.operatorToken.kind:t.kind===225||t.kind===226?t.operator:t.kind}var W6e=(t=>(t[t.Comma=0]="Comma",t[t.Spread=1]="Spread",t[t.Yield=2]="Yield",t[t.Assignment=3]="Assignment",t[t.Conditional=4]="Conditional",t[t.LogicalOR=5]="LogicalOR",t[t.Coalesce=5]="Coalesce",t[t.LogicalAND=6]="LogicalAND",t[t.BitwiseOR=7]="BitwiseOR",t[t.BitwiseXOR=8]="BitwiseXOR",t[t.BitwiseAND=9]="BitwiseAND",t[t.Equality=10]="Equality",t[t.Relational=11]="Relational",t[t.Shift=12]="Shift",t[t.Additive=13]="Additive",t[t.Multiplicative=14]="Multiplicative",t[t.Exponentiation=15]="Exponentiation",t[t.Unary=16]="Unary",t[t.Update=17]="Update",t[t.LeftHandSide=18]="LeftHandSide",t[t.Member=19]="Member",t[t.Primary=20]="Primary",t[t.Highest=20]="Highest",t[t.Lowest=0]="Lowest",t[t.Invalid=-1]="Invalid",t))(W6e||{});function YG(t,n,a){switch(t){case 357:return 0;case 231:return 1;case 230:return 2;case 228:return 4;case 227:switch(n){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return eH(n)}case 217:case 236:case 225:case 222:case 223:case 221:case 224:return 16;case 226:return 17;case 214:return 18;case 215:return a?19:18;case 216:case 212:case 213:case 237:return 19;case 235:case 239:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 210:case 211:case 219:case 220:case 232:case 14:case 15:case 229:case 218:case 233:case 285:case 286:case 289:return 20;default:return-1}}function eH(t){switch(t){case 61:return 5;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function YR(t){return yr(t,n=>{switch(n.kind){case 295:return!!n.expression;case 12:return!n.containsOnlyTriviaWhiteSpaces;default:return!0}})}function IU(){let t=[],n=[],a=new Map,c=!1;return{add:_,lookup:u,getGlobalDiagnostics:f,getDiagnostics:y};function u(g){let k;if(g.file?k=a.get(g.file.fileName):k=t,!k)return;let T=rs(k,g,vl,D4e);if(T>=0)return k[T];if(~T>0&&ine(g,k[~T-1]))return k[~T-1]}function _(g){let k;g.file?(k=a.get(g.file.fileName),k||(k=[],a.set(g.file.fileName,k),vm(n,g.file.fileName,Su))):(c&&(c=!1,t=t.slice()),k=t),vm(k,g,D4e,ine)}function f(){return c=!0,t}function y(g){if(g)return a.get(g)||[];let k=Xr(n,T=>a.get(T));return t.length&&k.unshift(...t),k}}var mrr=/\$\{/g;function she(t){return t.replace(mrr,"\\${")}function G6e(t){return!!((t.templateFlags||0)&2048)}function che(t){return t&&!!(r3(t)?G6e(t):G6e(t.head)||Pt(t.templateSpans,n=>G6e(n.literal)))}var hrr=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,grr=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,yrr=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,vrr=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));function elt(t){return"\\u"+("0000"+t.toString(16).toUpperCase()).slice(-4)}function Srr(t,n,a){if(t.charCodeAt(0)===0){let c=a.charCodeAt(n+t.length);return c>=48&&c<=57?"\\x00":"\\0"}return vrr.get(t)||elt(t.charCodeAt(0))}function kb(t,n){let a=n===96?yrr:n===39?grr:hrr;return t.replace(a,Srr)}var tlt=/[^\u0000-\u007F]/g;function Mre(t,n){return t=kb(t,n),tlt.test(t)?t.replace(tlt,a=>elt(a.charCodeAt(0))):t}var brr=/["\u0000-\u001f\u2028\u2029\u0085]/g,xrr=/['\u0000-\u001f\u2028\u2029\u0085]/g,Trr=new Map(Object.entries({'"':""","'":"'"}));function Err(t){return"&#x"+t.toString(16).toUpperCase()+";"}function krr(t){return t.charCodeAt(0)===0?"�":Trr.get(t)||Err(t.charCodeAt(0))}function lhe(t,n){let a=n===39?xrr:brr;return t.replace(a,krr)}function i1(t){let n=t.length;return n>=2&&t.charCodeAt(0)===t.charCodeAt(n-1)&&Crr(t.charCodeAt(0))?t.substring(1,n-1):t}function Crr(t){return t===39||t===34||t===96}function eL(t){let n=t.charCodeAt(0);return n>=97&&n<=122||t.includes("-")}var tH=[""," "];function jre(t){let n=tH[1];for(let a=tH.length;a<=t;a++)tH.push(tH[a-1]+n);return tH[t]}function rH(){return tH[1].length}function nH(t){var n,a,c,u,_,f=!1;function y(U){let J=oE(U);J.length>1?(u=u+J.length-1,_=n.length-U.length+Sn(J),c=_-n.length===0):c=!1}function g(U){U&&U.length&&(c&&(U=jre(a)+U,c=!1),n+=U,y(U))}function k(U){U&&(f=!1),g(U)}function T(U){U&&(f=!0),g(U)}function C(){n="",a=0,c=!0,u=0,_=0,f=!1}function O(U){U!==void 0&&(n+=U,y(U),f=!1)}function F(U){U&&U.length&&k(U)}function M(U){(!c||U)&&(n+=t,u++,_=n.length,c=!0,f=!1)}return C(),{write:k,rawWrite:O,writeLiteral:F,writeLine:M,increaseIndent:()=>{a++},decreaseIndent:()=>{a--},getIndent:()=>a,getTextPos:()=>n.length,getLine:()=>u,getColumn:()=>c?a*rH():n.length-_,getText:()=>n,isAtStartOfLine:()=>c,hasTrailingComment:()=>f,hasTrailingWhitespace:()=>!!n.length&&p0(n.charCodeAt(n.length-1)),clear:C,writeKeyword:k,writeOperator:k,writeParameter:k,writeProperty:k,writePunctuation:k,writeSpace:k,writeStringLiteral:k,writeSymbol:(U,J)=>k(U),writeTrailingSemicolon:k,writeComment:T}}function uhe(t){let n=!1;function a(){n&&(t.writeTrailingSemicolon(";"),n=!1)}return{...t,writeTrailingSemicolon(){n=!0},writeLiteral(c){a(),t.writeLiteral(c)},writeStringLiteral(c){a(),t.writeStringLiteral(c)},writeSymbol(c,u){a(),t.writeSymbol(c,u)},writePunctuation(c){a(),t.writePunctuation(c)},writeKeyword(c){a(),t.writeKeyword(c)},writeOperator(c){a(),t.writeOperator(c)},writeParameter(c){a(),t.writeParameter(c)},writeSpace(c){a(),t.writeSpace(c)},writeProperty(c){a(),t.writeProperty(c)},writeComment(c){a(),t.writeComment(c)},writeLine(){a(),t.writeLine()},increaseIndent(){a(),t.increaseIndent()},decreaseIndent(){a(),t.decreaseIndent()}}}function K4(t){return t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!1}function UT(t){return _d(K4(t))}function phe(t,n,a){return n.moduleName||_he(t,n.fileName,a&&a.fileName)}function rlt(t,n){return t.getCanonicalFileName(za(n,t.getCurrentDirectory()))}function H6e(t,n,a){let c=n.getExternalModuleFileFromDeclaration(a);if(!c||c.isDeclarationFile)return;let u=JO(a);if(!(u&&Sl(u)&&!ch(u.text)&&!rlt(t,c.path).includes(rlt(t,r_(t.getCommonSourceDirectory())))))return phe(t,c)}function _he(t,n,a){let c=g=>t.getCanonicalFileName(g),u=wl(a?mo(a):t.getCommonSourceDirectory(),t.getCurrentDirectory(),c),_=za(n,t.getCurrentDirectory()),f=FT(u,_,u,c,!1),y=Qm(f);return a?Tx(y):y}function K6e(t,n,a){let c=n.getCompilerOptions(),u;return c.outDir?u=Qm(qre(t,n,c.outDir)):u=Qm(t),u+a}function Q6e(t,n){return Bre(t,n.getCompilerOptions(),n)}function Bre(t,n,a){let c=n.declarationDir||n.outDir,u=c?Z6e(t,c,a.getCurrentDirectory(),a.getCommonSourceDirectory(),f=>a.getCanonicalFileName(f)):t,_=$re(u);return Qm(u)+_}function $re(t){return _p(t,[".mjs",".mts"])?".d.mts":_p(t,[".cjs",".cts"])?".d.cts":_p(t,[".json"])?".d.json.ts":".d.ts"}function dhe(t){return _p(t,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:_p(t,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:_p(t,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function fhe(t,n,a,c){return a?mb(c(),lh(a,t,n)):t}function Ure(t,n){var a;if(t.paths)return t.baseUrl??$.checkDefined(t.pathsBasePath||((a=n.getCurrentDirectory)==null?void 0:a.call(n)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function zre(t,n,a){let c=t.getCompilerOptions();if(c.outFile){let u=Km(c),_=c.emitDeclarationOnly||u===2||u===4;return yr(t.getSourceFiles(),f=>(_||!yd(f))&&sP(f,t,a))}else{let u=n===void 0?t.getSourceFiles():[n];return yr(u,_=>sP(_,t,a))}}function sP(t,n,a){let c=n.getCompilerOptions();if(c.noEmitForJsFiles&&ph(t)||t.isDeclarationFile||n.isSourceFileFromExternalLibrary(t))return!1;if(a)return!0;if(n.isSourceOfProjectReferenceRedirect(t.fileName))return!1;if(!h0(t))return!0;if(n.getRedirectFromSourceFile(t.fileName))return!1;if(c.outFile)return!0;if(!c.outDir)return!1;if(c.rootDir||c.composite&&c.configFilePath){let u=za(jz(c,()=>[],n.getCurrentDirectory(),n.getCanonicalFileName),n.getCurrentDirectory()),_=Z6e(t.fileName,c.outDir,n.getCurrentDirectory(),u,n.getCanonicalFileName);if(M1(t.fileName,_,n.getCurrentDirectory(),!n.useCaseSensitiveFileNames())===0)return!1}return!0}function qre(t,n,a){return Z6e(t,a,n.getCurrentDirectory(),n.getCommonSourceDirectory(),c=>n.getCanonicalFileName(c))}function Z6e(t,n,a,c,u){let _=za(t,a);return _=u(_).indexOf(u(c))===0?_.substring(c.length):_,Xi(n,_)}function Jre(t,n,a,c,u,_,f){t.writeFile(a,c,u,y=>{n.add(bp(x.Could_not_write_file_0_Colon_1,a,y))},_,f)}function nlt(t,n,a){if(t.length>Fy(t)&&!a(t)){let c=mo(t);nlt(c,n,a),n(t)}}function mhe(t,n,a,c,u,_){try{c(t,n,a)}catch{nlt(mo(Qs(t)),u,_),c(t,n,a)}}function PU(t,n){let a=Ry(t);return nA(a,n)}function tL(t,n){return nA(t,n)}function Rx(t){return wt(t.members,n=>kp(n)&&t1(n.body))}function NU(t){if(t&&t.parameters.length>0){let n=t.parameters.length===2&&uC(t.parameters[0]);return t.parameters[n?1:0]}}function X6e(t){let n=NU(t);return n&&n.type}function cP(t){if(t.parameters.length&&!TE(t)){let n=t.parameters[0];if(uC(n))return n}}function uC(t){return pC(t.name)}function pC(t){return!!t&&t.kind===80&&hhe(t)}function KO(t){return!!fn(t,n=>n.kind===187?!0:n.kind===80||n.kind===167?!1:"quit")}function lP(t){if(!pC(t))return!1;for(;dh(t.parent)&&t.parent.left===t;)t=t.parent;return t.parent.kind===187}function hhe(t){return t.escapedText==="this"}function uP(t,n){let a,c,u,_;return $T(n)?(a=n,n.kind===178?u=n:n.kind===179?_=n:$.fail("Accessor has wrong kind")):X(t,f=>{if(tC(f)&&oc(f)===oc(n)){let y=H4(f.name),g=H4(n.name);y===g&&(a?c||(c=f):a=f,f.kind===178&&!u&&(u=f),f.kind===179&&!_&&(_=f))}}),{firstAccessor:a,secondAccessor:c,getAccessor:u,setAccessor:_}}function X_(t){if(!Ei(t)&&i_(t)||s1(t))return;let n=t.type;return n||!Ei(t)?n:rU(t)?t.typeExpression&&t.typeExpression.type:hv(t)}function Y6e(t){return t.type}function jg(t){return TE(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(Ei(t)?iG(t):void 0)}function Vre(t){return an(sA(t),n=>Drr(n)?n.typeParameters:void 0)}function Drr(t){return c1(t)&&!(t.parent.kind===321&&(t.parent.tags.some(n1)||t.parent.tags.some(EL)))}function ghe(t){let n=NU(t);return n&&X_(n)}function Arr(t,n,a,c){wrr(t,n,a.pos,c)}function wrr(t,n,a,c){c&&c.length&&a!==c[0].pos&&tL(t,a)!==tL(t,c[0].pos)&&n.writeLine()}function e4e(t,n,a,c){a!==c&&tL(t,a)!==tL(t,c)&&n.writeLine()}function Irr(t,n,a,c,u,_,f,y){if(c&&c.length>0){u&&a.writeSpace(" ");let g=!1;for(let k of c)g&&(a.writeSpace(" "),g=!1),y(t,n,a,k.pos,k.end,f),k.hasTrailingNewLine?a.writeLine():g=!0;g&&_&&a.writeSpace(" ")}}function t4e(t,n,a,c,u,_,f){let y,g;if(f?u.pos===0&&(y=yr(my(t,u.pos),k)):y=my(t,u.pos),y){let T=[],C;for(let O of y){if(C){let F=tL(n,C.end);if(tL(n,O.pos)>=F+2)break}T.push(O),C=O}if(T.length){let O=tL(n,Sn(T).end);tL(n,_c(t,u.pos))>=O+2&&(Arr(n,a,u,y),Irr(t,n,a,T,!1,!0,_,c),g={nodePos:u.pos,detachedCommentEndPos:Sn(T).end})}}return g;function k(T){return ore(t,T.pos)}}function rL(t,n,a,c,u,_){if(t.charCodeAt(c+1)===42){let f=aE(n,c),y=n.length,g;for(let k=c,T=f.line;k0){let M=F%rH(),U=jre((F-M)/rH());for(a.rawWrite(U);M;)a.rawWrite(" "),M--}else a.rawWrite("")}Prr(t,u,a,_,k,C),k=C}}else a.writeComment(t.substring(c,u))}function Prr(t,n,a,c,u,_){let f=Math.min(n,_-1),y=t.substring(u,f).trim();y?(a.writeComment(y),f!==n&&a.writeLine()):a.rawWrite(c)}function ilt(t,n,a){let c=0;for(;n=0&&t.kind<=166?0:(t.modifierFlagsCache&536870912||(t.modifierFlagsCache=She(t)|536870912),a||n&&Ei(t)?(!(t.modifierFlagsCache&268435456)&&t.parent&&(t.modifierFlagsCache|=olt(t)|268435456),alt(t.modifierFlagsCache)):Nrr(t.modifierFlagsCache))}function tm(t){return i4e(t,!0)}function o4e(t){return i4e(t,!0,!0)}function _E(t){return i4e(t,!1)}function olt(t){let n=0;return t.parent&&!wa(t)&&(Ei(t)&&(Rte(t)&&(n|=8388608),Ln(t)&&(n|=16777216),lo(t)&&(n|=33554432),ta(t)&&(n|=67108864),ml(t)&&(n|=134217728)),kf(t)&&(n|=65536)),n}function Nrr(t){return t&65535}function alt(t){return t&131071|(t&260046848)>>>23}function Orr(t){return alt(olt(t))}function a4e(t){return She(t)|Orr(t)}function She(t){let n=l1(t)?TS(t.modifiers):0;return(t.flags&8||t.kind===80&&t.flags&4096)&&(n|=32),n}function TS(t){let n=0;if(t)for(let a of t)n|=ZO(a.kind);return n}function ZO(t){switch(t){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 171:return 32768}return 0}function iH(t){return t===57||t===56}function s4e(t){return iH(t)||t===54}function OU(t){return t===76||t===77||t===78}function bhe(t){return wi(t)&&OU(t.operatorToken.kind)}function Gre(t){return iH(t)||t===61}function oH(t){return wi(t)&&Gre(t.operatorToken.kind)}function zT(t){return t>=64&&t<=79}function xhe(t){let n=The(t);return n&&!n.isImplements?n.class:void 0}function The(t){if(VT(t)){if(zg(t.parent)&&Co(t.parent.parent))return{class:t.parent.parent,isImplements:t.parent.token===119};if(EF(t.parent)){let n=fA(t.parent);if(n&&Co(n))return{class:n,isImplements:!1}}}}function of(t,n){return wi(t)&&(n?t.operatorToken.kind===64:zT(t.operatorToken.kind))&&jh(t.left)}function dE(t){if(of(t,!0)){let n=t.left.kind;return n===211||n===210}return!1}function Hre(t){return xhe(t)!==void 0}function ru(t){return t.kind===80||sH(t)}function _h(t){switch(t.kind){case 80:return t;case 167:do t=t.left;while(t.kind!==80);return t;case 212:do t=t.expression;while(t.kind!==80);return t}}function aH(t){return t.kind===80||t.kind===110||t.kind===108||t.kind===237||t.kind===212&&aH(t.expression)||t.kind===218&&aH(t.expression)}function sH(t){return no(t)&&ct(t.name)&&ru(t.expression)}function cH(t){if(no(t)){let n=cH(t.expression);if(n!==void 0)return n+"."+Rg(t.name)}else if(mu(t)){let n=cH(t.expression);if(n!==void 0&&q_(t.argumentExpression))return n+"."+H4(t.argumentExpression)}else{if(ct(t))return oa(t.escapedText);if(Ev(t))return ez(t)}}function _C(t){return nP(t)&&BT(t)==="prototype"}function FU(t){return t.parent.kind===167&&t.parent.right===t||t.parent.kind===212&&t.parent.name===t||t.parent.kind===237&&t.parent.name===t}function Ehe(t){return!!t.parent&&(no(t.parent)&&t.parent.name===t||mu(t.parent)&&t.parent.argumentExpression===t)}function c4e(t){return dh(t.parent)&&t.parent.right===t||no(t.parent)&&t.parent.name===t||wA(t.parent)&&t.parent.right===t}function Kre(t){return wi(t)&&t.operatorToken.kind===104}function l4e(t){return Kre(t.parent)&&t===t.parent.right}function khe(t){return t.kind===211&&t.properties.length===0}function u4e(t){return t.kind===210&&t.elements.length===0}function RU(t){if(!(!Frr(t)||!t.declarations)){for(let n of t.declarations)if(n.localSymbol)return n.localSymbol}}function Frr(t){return t&&te(t.declarations)>0&&ko(t.declarations[0],2048)}function Qre(t){return wt(cnr,n=>Au(t,n))}function Rrr(t){let n=[],a=t.length;for(let c=0;c>6|192),n.push(u&63|128)):u<65536?(n.push(u>>12|224),n.push(u>>6&63|128),n.push(u&63|128)):u<131072?(n.push(u>>18|240),n.push(u>>12&63|128),n.push(u>>6&63|128),n.push(u&63|128)):$.assert(!1,"Unexpected code point")}return n}var XO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function p4e(t){let n="",a=Rrr(t),c=0,u=a.length,_,f,y,g;for(;c>2,f=(a[c]&3)<<4|a[c+1]>>4,y=(a[c+1]&15)<<2|a[c+2]>>6,g=a[c+2]&63,c+1>=u?y=g=64:c+2>=u&&(g=64),n+=XO.charAt(_)+XO.charAt(f)+XO.charAt(y)+XO.charAt(g),c+=3;return n}function Lrr(t){let n="",a=0,c=t.length;for(;a>4&3,T=(f&15)<<4|y>>2&15,C=(y&3)<<6|g&63;T===0&&y!==0?c.push(k):C===0&&g!==0?c.push(k,T):c.push(k,T,C),u+=4}return Lrr(c)}function Che(t,n){let a=Ni(n)?n:n.readFile(t);if(!a)return;let c=lH(a);if(c===void 0){let u=hye(t,a);u.error||(c=u.config)}return c}function nL(t,n){return Che(t,n)||{}}function lH(t){try{return JSON.parse(t)}catch{return}}function Sv(t,n){return!n.directoryExists||n.directoryExists(t)}var Mrr=`\r -`,jrr=` -`;function fE(t){switch(t.newLine){case 0:return Mrr;case 1:case void 0:return jrr}}function y0(t,n=t){return $.assert(n>=t||n===-1),{pos:t,end:n}}function Zre(t,n){return y0(t.pos,n)}function gA(t,n){return y0(n,t.end)}function qT(t){let n=l1(t)?Ut(t.modifiers,hd):void 0;return n&&!bv(n.end)?gA(t,n.end):t}function ES(t){if(ps(t)||Ep(t))return gA(t,t.name.pos);let n=l1(t)?Yr(t.modifiers):void 0;return n&&!bv(n.end)?gA(t,n.end):qT(t)}function Dhe(t,n){return y0(t,t+Zs(n).length)}function Z4(t,n){return m4e(t,t,n)}function Xre(t,n,a){return v0(LU(t,a,!1),LU(n,a,!1),a)}function f4e(t,n,a){return v0(t.end,n.end,a)}function m4e(t,n,a){return v0(LU(t,a,!1),n.end,a)}function uH(t,n,a){return v0(t.end,LU(n,a,!1),a)}function Ahe(t,n,a,c){let u=LU(n,a,c);return zI(a,t.end,u)}function slt(t,n,a){return zI(a,t.end,n.end)}function h4e(t,n){return!v0(t.pos,t.end,n)}function v0(t,n,a){return zI(a,t,n)===0}function LU(t,n,a){return bv(t.pos)?-1:_c(n.text,t.pos,!1,a)}function g4e(t,n,a,c){let u=_c(a.text,t,!1,c),_=Brr(u,n,a);return zI(a,_??n,u)}function y4e(t,n,a,c){let u=_c(a.text,t,!1,c);return zI(a,t,Math.min(n,u))}function zh(t,n){return whe(t.pos,t.end,n)}function whe(t,n,a){return t<=a.pos&&n>=a.end}function Brr(t,n=0,a){for(;t-- >n;)if(!p0(a.text.charCodeAt(t)))return t}function Ihe(t){let n=vs(t);if(n)switch(n.parent.kind){case 267:case 268:return n===n.parent.name}return!1}function MU(t){return yr(t.declarations,pH)}function pH(t){return Oo(t)&&t.initializer!==void 0}function Phe(t){return t.watch&&Ho(t,"watch")}function W1(t){t.close()}function Fp(t){return t.flags&33554432?t.links.checkFlags:0}function S0(t,n=!1){if(t.valueDeclaration){let a=n&&t.declarations&&wt(t.declarations,mg)||t.flags&32768&&wt(t.declarations,T0)||t.valueDeclaration,c=Ra(a);return t.parent&&t.parent.flags&32?c:c&-8}if(Fp(t)&6){let a=t.links.checkFlags,c=a&1024?2:a&256?1:4,u=a&2048?256:0;return c|u}return t.flags&4194304?257:0}function $f(t,n){return t.flags&2097152?n.getAliasedSymbol(t):t}function iL(t){return t.exportSymbol?t.exportSymbol.flags|t.flags:t.flags}function Yre(t){return jU(t)===1}function YO(t){return jU(t)!==0}function jU(t){let{parent:n}=t;switch(n?.kind){case 218:return jU(n);case 226:case 225:let{operator:a}=n;return a===46||a===47?2:0;case 227:let{left:c,operatorToken:u}=n;return c===t&&zT(u.kind)?u.kind===64?1:2:0;case 212:return n.name!==t?0:jU(n);case 304:{let _=jU(n.parent);return t===n.name?$rr(_):_}case 305:return t===n.objectAssignmentInitializer?0:jU(n.parent);case 210:return jU(n);case 250:case 251:return t===n.initializer?1:0;default:return 0}}function $rr(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return $.assertNever(t)}}function Nhe(t,n){if(!t||!n||Object.keys(t).length!==Object.keys(n).length)return!1;for(let a in t)if(typeof t[a]=="object"){if(!Nhe(t[a],n[a]))return!1}else if(typeof t[a]!="function"&&t[a]!==n[a])return!1;return!0}function dg(t,n){t.forEach(n),t.clear()}function Lx(t,n,a){let{onDeleteValue:c,onExistingValue:u}=a;t.forEach((_,f)=>{var y;n?.has(f)?u&&u(_,(y=n.get)==null?void 0:y.call(n,f),f):(t.delete(f),c(_,f))})}function BU(t,n,a){Lx(t,n,a);let{createNewValue:c}=a;n?.forEach((u,_)=>{t.has(_)||t.set(_,c(_,u))})}function v4e(t){if(t.flags&32){let n=JT(t);return!!n&&ko(n,64)}return!1}function JT(t){var n;return(n=t.declarations)==null?void 0:n.find(Co)}function ro(t){return t.flags&3899393?t.objectFlags:0}function ene(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&UH(t.declarations[0])}function S4e({moduleSpecifier:t}){return Ic(t)?t.text:Sp(t)}function Ohe(t){let n;return Is(t,a=>{t1(a)&&(n=a)},a=>{for(let c=a.length-1;c>=0;c--)if(t1(a[c])){n=a[c];break}}),n}function o1(t,n){return t.has(n)?!1:(t.add(n),!0)}function eF(t){return Co(t)||Af(t)||fh(t)}function Fhe(t){return t>=183&&t<=206||t===133||t===159||t===150||t===163||t===151||t===136||t===154||t===155||t===116||t===157||t===146||t===141||t===234||t===313||t===314||t===315||t===316||t===317||t===318||t===319}function wu(t){return t.kind===212||t.kind===213}function Rhe(t){return t.kind===212?t.name:($.assert(t.kind===213),t.argumentExpression)}function tne(t){return t.kind===276||t.kind===280}function oL(t){for(;wu(t);)t=t.expression;return t}function b4e(t,n){if(wu(t.parent)&&Ehe(t))return a(t.parent);function a(c){if(c.kind===212){let u=n(c.name);if(u!==void 0)return u}else if(c.kind===213)if(ct(c.argumentExpression)||Sl(c.argumentExpression)){let u=n(c.argumentExpression);if(u!==void 0)return u}else return;if(wu(c.expression))return a(c.expression);if(ct(c.expression))return n(c.expression)}}function aL(t,n){for(;;){switch(t.kind){case 226:t=t.operand;continue;case 227:t=t.left;continue;case 228:t=t.condition;continue;case 216:t=t.tag;continue;case 214:if(n)return t;case 235:case 213:case 212:case 236:case 356:case 239:t=t.expression;continue}return t}}function Urr(t,n){this.flags=t,this.escapedName=n,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function zrr(t,n){this.flags=n,($.isDebugging||hi)&&(this.checker=t)}function qrr(t,n){this.flags=n,$.isDebugging&&(this.checker=t)}function x4e(t,n,a){this.pos=n,this.end=a,this.kind=t,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Jrr(t,n,a){this.pos=n,this.end=a,this.kind=t,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function Vrr(t,n,a){this.pos=n,this.end=a,this.kind=t,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Wrr(t,n,a){this.fileName=t,this.text=n,this.skipTrivia=a||(c=>c)}var Uf={getNodeConstructor:()=>x4e,getTokenConstructor:()=>Jrr,getIdentifierConstructor:()=>Vrr,getPrivateIdentifierConstructor:()=>x4e,getSourceFileConstructor:()=>x4e,getSymbolConstructor:()=>Urr,getTypeConstructor:()=>zrr,getSignatureConstructor:()=>qrr,getSourceMapSourceConstructor:()=>Wrr},clt=[];function llt(t){clt.push(t),t(Uf)}function T4e(t){Object.assign(Uf,t),X(clt,n=>n(Uf))}function Mx(t,n){return t.replace(/\{(\d+)\}/g,(a,c)=>""+$.checkDefined(n[+c]))}var rne;function E4e(t){rne=t}function k4e(t){!rne&&t&&(rne=t())}function As(t){return rne&&rne[t.key]||t.message}function tF(t,n,a,c,u,..._){a+c>n.length&&(c=n.length-a),u6e(n,a,c);let f=As(u);return Pt(_)&&(f=Mx(f,_)),{file:void 0,start:a,length:c,messageText:f,category:u.category,code:u.code,reportsUnnecessary:u.reportsUnnecessary,fileName:t}}function Grr(t){return t.file===void 0&&t.start!==void 0&&t.length!==void 0&&typeof t.fileName=="string"}function ult(t,n){let a=n.fileName||"",c=n.text.length;$.assertEqual(t.fileName,a),$.assertLessThanOrEqual(t.start,c),$.assertLessThanOrEqual(t.start+t.length,c);let u={file:n,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){u.relatedInformation=[];for(let _ of t.relatedInformation)Grr(_)&&_.fileName===a?($.assertLessThanOrEqual(_.start,c),$.assertLessThanOrEqual(_.start+_.length,c),u.relatedInformation.push(ult(_,n))):u.relatedInformation.push(_)}return u}function rF(t,n){let a=[];for(let c of t)a.push(ult(c,n));return a}function md(t,n,a,c,...u){u6e(t.text,n,a);let _=As(c);return Pt(u)&&(_=Mx(_,u)),{file:t,start:n,length:a,messageText:_,category:c.category,code:c.code,reportsUnnecessary:c.reportsUnnecessary,reportsDeprecated:c.reportsDeprecated}}function nF(t,...n){let a=As(t);return Pt(n)&&(a=Mx(a,n)),a}function bp(t,...n){let a=As(t);return Pt(n)&&(a=Mx(a,n)),{file:void 0,start:void 0,length:void 0,messageText:a,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}function nne(t,n){return{file:void 0,start:void 0,length:void 0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function ws(t,n,...a){let c=As(n);return Pt(a)&&(c=Mx(c,a)),{messageText:c,category:n.category,code:n.code,next:t===void 0||Array.isArray(t)?t:[t]}}function C4e(t,n){let a=t;for(;a.next;)a=a.next[0];a.next=[n]}function Lhe(t){return t.file?t.file.path:void 0}function $U(t,n){return D4e(t,n)||Hrr(t,n)||0}function D4e(t,n){let a=Mhe(t),c=Mhe(n);return Su(Lhe(t),Lhe(n))||Br(t.start,n.start)||Br(t.length,n.length)||Br(a,c)||Krr(t,n)||0}function Hrr(t,n){return!t.relatedInformation&&!n.relatedInformation?0:t.relatedInformation&&n.relatedInformation?Br(n.relatedInformation.length,t.relatedInformation.length)||X(t.relatedInformation,(a,c)=>{let u=n.relatedInformation[c];return $U(a,u)})||0:t.relatedInformation?-1:1}function Krr(t,n){let a=jhe(t),c=jhe(n);typeof a!="string"&&(a=a.messageText),typeof c!="string"&&(c=c.messageText);let u=typeof t.messageText!="string"?t.messageText.next:void 0,_=typeof n.messageText!="string"?n.messageText.next:void 0,f=Su(a,c);return f||(f=Qrr(u,_),f)?f:t.canonicalHead&&!n.canonicalHead?-1:n.canonicalHead&&!t.canonicalHead?1:0}function Qrr(t,n){return t===void 0&&n===void 0?0:t===void 0?1:n===void 0?-1:plt(t,n)||_lt(t,n)}function plt(t,n){if(t===void 0&&n===void 0)return 0;if(t===void 0)return 1;if(n===void 0)return-1;let a=Br(n.length,t.length);if(a)return a;for(let c=0;c{u.externalModuleIndicator=XH(u)||!u.isDeclarationFile||void 0};case 1:return u=>{u.externalModuleIndicator=XH(u)};case 2:let n=[XH];(t.jsx===4||t.jsx===5)&&n.push(Xrr),n.push(Yrr);let a=jf(...n);return u=>{u.externalModuleIndicator=a(u,t)}}}function Bhe(t){let n=km(t);return 3<=n&&n<=99||fH(t)||mH(t)}function s4n(t){return t}var zf={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:t=>!!(t.allowImportingTsExtensions||t.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:t=>(t.target===0?void 0:t.target)??(t.module===100&&9||t.module===101&&9||t.module===102&&10||t.module===199&&99||1)},module:{dependencies:["target"],computeValue:t=>typeof t.module=="number"?t.module:zf.target.computeValue(t)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:t=>{let n=t.moduleResolution;if(n===void 0)switch(zf.module.computeValue(t)){case 1:n=2;break;case 100:case 101:case 102:n=3;break;case 199:n=99;break;case 200:n=100;break;default:n=1;break}return n}},moduleDetection:{dependencies:["module","target"],computeValue:t=>{if(t.moduleDetection!==void 0)return t.moduleDetection;let n=zf.module.computeValue(t);return 100<=n&&n<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:t=>!!(t.isolatedModules||t.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:t=>{if(t.esModuleInterop!==void 0)return t.esModuleInterop;switch(zf.module.computeValue(t)){case 100:case 101:case 102:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:t=>t.allowSyntheticDefaultImports!==void 0?t.allowSyntheticDefaultImports:zf.esModuleInterop.computeValue(t)||zf.module.computeValue(t)===4||zf.moduleResolution.computeValue(t)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:t=>{let n=zf.moduleResolution.computeValue(t);if(!sL(n))return!1;if(t.resolvePackageJsonExports!==void 0)return t.resolvePackageJsonExports;switch(n){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:t=>{let n=zf.moduleResolution.computeValue(t);if(!sL(n))return!1;if(t.resolvePackageJsonImports!==void 0)return t.resolvePackageJsonImports;switch(n){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:t=>{if(t.resolveJsonModule!==void 0)return t.resolveJsonModule;switch(zf.module.computeValue(t)){case 102:case 199:return!0}return zf.moduleResolution.computeValue(t)===100}},declaration:{dependencies:["composite"],computeValue:t=>!!(t.declaration||t.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:t=>!!(t.preserveConstEnums||zf.isolatedModules.computeValue(t))},incremental:{dependencies:["composite"],computeValue:t=>!!(t.incremental||t.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:t=>!!(t.declarationMap&&zf.declaration.computeValue(t))},allowJs:{dependencies:["checkJs"],computeValue:t=>t.allowJs===void 0?!!t.checkJs:t.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:t=>t.useDefineForClassFields===void 0?zf.target.computeValue(t)>=9:t.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:t=>rm(t,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:t=>rm(t,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:t=>rm(t,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:t=>rm(t,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:t=>rm(t,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:t=>rm(t,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:t=>rm(t,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:t=>rm(t,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:t=>rm(t,"useUnknownInCatchVariables")}},UU=zf,A4e=zf.allowImportingTsExtensions.computeValue,$c=zf.target.computeValue,Km=zf.module.computeValue,km=zf.moduleResolution.computeValue,w4e=zf.moduleDetection.computeValue,a1=zf.isolatedModules.computeValue,kS=zf.esModuleInterop.computeValue,iF=zf.allowSyntheticDefaultImports.computeValue,fH=zf.resolvePackageJsonExports.computeValue,mH=zf.resolvePackageJsonImports.computeValue,_P=zf.resolveJsonModule.computeValue,fg=zf.declaration.computeValue,dC=zf.preserveConstEnums.computeValue,dP=zf.incremental.computeValue,one=zf.declarationMap.computeValue,fC=zf.allowJs.computeValue,hH=zf.useDefineForClassFields.computeValue;function gH(t){return t>=5&&t<=99}function ane(t){switch(Km(t)){case 0:case 4:case 3:return!1}return!0}function I4e(t){return t.allowUnreachableCode===!1}function P4e(t){return t.allowUnusedLabels===!1}function sL(t){return t>=3&&t<=99||t===100}function N4e(t){return 101<=t&&t<=199||t===200||t===99}function rm(t,n){return t[n]===void 0?!!t.strict:!!t[n]}function sne(t){return Ad(uye.type,(n,a)=>n===t?a:void 0)}function $he(t){return t.useDefineForClassFields!==!1&&$c(t)>=9}function O4e(t,n){return MO(n,t,PNe)}function F4e(t,n){return MO(n,t,NNe)}function R4e(t,n){return MO(n,t,ONe)}function cne(t,n){return n.strictFlag?rm(t,n.name):n.allowJsFlag?fC(t):t[n.name]}function lne(t){let n=t.jsx;return n===2||n===4||n===5}function yH(t,n){let a=n?.pragmas.get("jsximportsource"),c=Zn(a)?a[a.length-1]:a,u=n?.pragmas.get("jsxruntime"),_=Zn(u)?u[u.length-1]:u;if(_?.arguments.factory!=="classic")return t.jsx===4||t.jsx===5||t.jsxImportSource||c||_?.arguments.factory==="automatic"?c?.arguments.factory||t.jsxImportSource||"react":void 0}function une(t,n){return t?`${t}/${n.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function Uhe(t){let n=!1;for(let a=0;au,getSymlinkedDirectories:()=>a,getSymlinkedDirectoriesByRealpath:()=>c,setSymlinkedFile:(g,k)=>(u||(u=new Map)).set(g,k),setSymlinkedDirectory:(g,k)=>{let T=wl(g,t,n);QU(T)||(T=r_(T),k!==!1&&!a?.has(T)&&(c||(c=d_())).add(k.realPath,g),(a||(a=new Map)).set(T,k))},setSymlinksFromResolutions(g,k,T){$.assert(!_),_=!0,g(C=>y(this,C.resolvedModule)),k(C=>y(this,C.resolvedTypeReferenceDirective)),T.forEach(C=>y(this,C.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>_,setSymlinksFromResolution(g){y(this,g)},hasAnySymlinks:f};function f(){return!!u?.size||!!a&&!!Ad(a,g=>!!g)}function y(g,k){if(!k||!k.originalPath||!k.resolvedFileName)return;let{resolvedFileName:T,originalPath:C}=k;g.setSymlinkedFile(wl(C,t,n),T);let[O,F]=enr(T,C,t,n)||j;O&&F&&g.setSymlinkedDirectory(F,{real:r_(O),realPath:r_(wl(O,t,n))})}}function enr(t,n,a,c){let u=Cd(za(t,a)),_=Cd(za(n,a)),f=!1;for(;u.length>=2&&_.length>=2&&!flt(u[u.length-2],c)&&!flt(_[_.length-2],c)&&c(u[u.length-1])===c(_[_.length-1]);)u.pop(),_.pop(),f=!0;return f?[pS(u),pS(_)]:void 0}function flt(t,n){return t!==void 0&&(n(t)==="node_modules"||Ca(t,"@"))}function tnr(t){return XD(t.charCodeAt(0))?t.slice(1):void 0}function qhe(t,n,a){let c=Y8(t,n,a);return c===void 0?void 0:tnr(c)}var L4e=/[^\w\s/]/g;function mlt(t){return t.replace(L4e,rnr)}function rnr(t){return"\\"+t}var nnr=[42,63],inr=["node_modules","bower_components","jspm_packages"],M4e=`(?!(?:${inr.join("|")})(?:/|$))`,hlt={singleAsteriskRegexFragment:"(?:[^./]|(?:\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(?:/${M4e}[^/.][^/]*)*?`,replaceWildcardCharacter:t=>B4e(t,hlt.singleAsteriskRegexFragment)},glt={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(?:/${M4e}[^/.][^/]*)*?`,replaceWildcardCharacter:t=>B4e(t,glt.singleAsteriskRegexFragment)},ylt={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(?:/.+?)?",replaceWildcardCharacter:t=>B4e(t,ylt.singleAsteriskRegexFragment)},j4e={files:hlt,directories:glt,exclude:ylt};function zU(t,n,a){let c=pne(t,n,a);return!c||!c.length?void 0:`^(?:${c.map(f=>`(?:${f})`).join("|")})${a==="exclude"?"(?:$|/)":"$"}`}function pne(t,n,a){if(!(t===void 0||t.length===0))return an(t,c=>c&&_ne(c,n,a,j4e[a]))}function Jhe(t){return!/[.*?]/.test(t)}function Vhe(t,n,a){let c=t&&_ne(t,n,a,j4e[a]);return c&&`^(?:${c})${a==="exclude"?"(?:$|/)":"$"}`}function _ne(t,n,a,{singleAsteriskRegexFragment:c,doubleAsteriskRegexFragment:u,replaceWildcardCharacter:_}=j4e[a]){let f="",y=!1,g=Jk(t,n),k=Sn(g);if(a!=="exclude"&&k==="**")return;g[0]=dv(g[0]),Jhe(k)&&g.push("**","*");let T=0;for(let C of g){if(C==="**")f+=u;else if(a==="directories"&&(f+="(?:",T++),y&&(f+=Gl),a!=="exclude"){let O="";C.charCodeAt(0)===42?(O+="(?:[^./]"+c+")?",C=C.substr(1)):C.charCodeAt(0)===63&&(O+="[^./]",C=C.substr(1)),O+=C.replace(L4e,_),O!==C&&(f+=M4e),f+=O}else f+=C.replace(L4e,_);y=!0}for(;T>0;)f+=")?",T--;return f}function B4e(t,n){return t==="*"?n:t==="?"?"[^/]":"\\"+t}function dne(t,n,a,c,u){t=Qs(t),u=Qs(u);let _=Xi(u,t);return{includeFilePatterns:Cr(pne(a,_,"files"),f=>`^${f}$`),includeFilePattern:zU(a,_,"files"),includeDirectoryPattern:zU(a,_,"directories"),excludePattern:zU(n,_,"exclude"),basePaths:onr(t,a,c)}}function mE(t,n){return new RegExp(t,n?"":"i")}function Whe(t,n,a,c,u,_,f,y,g){t=Qs(t),_=Qs(_);let k=dne(t,a,c,u,_),T=k.includeFilePatterns&&k.includeFilePatterns.map(G=>mE(G,u)),C=k.includeDirectoryPattern&&mE(k.includeDirectoryPattern,u),O=k.excludePattern&&mE(k.excludePattern,u),F=T?T.map(()=>[]):[[]],M=new Map,U=_d(u);for(let G of k.basePaths)J(G,Xi(_,G),f);return Rc(F);function J(G,Z,Q){let re=U(g(Z));if(M.has(re))return;M.set(re,!0);let{files:ae,directories:_e}=y(G);for(let me of pu(ae,Su)){let le=Xi(G,me),Oe=Xi(Z,me);if(!(n&&!_p(le,n))&&!(O&&O.test(Oe)))if(!T)F[0].push(le);else{let be=hr(T,ue=>ue.test(Oe));be!==-1&&F[be].push(le)}}if(!(Q!==void 0&&(Q--,Q===0)))for(let me of pu(_e,Su)){let le=Xi(G,me),Oe=Xi(Z,me);(!C||C.test(Oe))&&(!O||!O.test(Oe))&&J(le,Oe,Q)}}}function onr(t,n,a){let c=[t];if(n){let u=[];for(let _ of n){let f=qd(_)?_:Qs(Xi(t,_));u.push(anr(f))}u.sort(ub(!a));for(let _ of u)ht(c,f=>!ug(f,_,t,!a))&&c.push(_)}return c}function anr(t){let n=xo(t,nnr);return n<0?eA(t)?dv(mo(t)):t:t.substring(0,t.lastIndexOf(Gl,n))}function fne(t,n){return n||mne(t)||3}function mne(t){switch(t.substr(t.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var hne=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],Ghe=Rc(hne),snr=[...hne,[".json"]],cnr=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],lnr=[[".js",".jsx"],[".mjs"],[".cjs"]],cL=Rc(lnr),Hhe=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],unr=[...Hhe,[".json"]],gne=[".d.ts",".d.cts",".d.mts"],vH=[".ts",".cts",".mts",".tsx"],yne=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function qU(t,n){let a=t&&fC(t);if(!n||n.length===0)return a?Hhe:hne;let c=a?Hhe:hne,u=Rc(c);return[...c,...Wn(n,f=>f.scriptKind===7||a&&pnr(f.scriptKind)&&!u.includes(f.extension)?[f.extension]:void 0)]}function SH(t,n){return!t||!_P(t)?n:n===Hhe?unr:n===hne?snr:[...n,[".json"]]}function pnr(t){return t===1||t===2}function jx(t){return Pt(cL,n=>Au(t,n))}function X4(t){return Pt(Ghe,n=>Au(t,n))}function $4e(t){return Pt(vH,n=>Au(t,n))&&!sf(t)}var U4e=(t=>(t[t.Minimal=0]="Minimal",t[t.Index=1]="Index",t[t.JsExtension=2]="JsExtension",t[t.TsExtension=3]="TsExtension",t))(U4e||{});function _nr({imports:t},n=jf(jx,X4)){return Je(t,({text:a})=>ch(a)&&!_p(a,yne)?n(a):void 0)||!1}function z4e(t,n,a,c){let u=km(a),_=3<=u&&u<=99;if(t==="js"||n===99&&_)return ML(a)&&f()!==2?3:2;if(t==="minimal")return 0;if(t==="index")return 1;if(!ML(a))return c&&_nr(c)?2:0;return f();function f(){let y=!1,g=c?.imports.length?c.imports:c&&ph(c)?dnr(c).map(k=>k.arguments[0]):j;for(let k of g)if(ch(k.text)){if(_&&n===1&&N0e(c,k,a)===99||_p(k.text,yne))continue;if(X4(k.text))return 3;jx(k.text)&&(y=!0)}return y?2:0}}function dnr(t){let n=0,a;for(let c of t.statements){if(n>3)break;LG(c)?a=go(a,c.declarationList.declarations.map(u=>u.initializer)):af(c)&&$h(c.expression,!0)?a=jt(a,c.expression):n++}return a||j}function Khe(t,n,a){if(!t)return!1;let c=qU(n,a);for(let u of Rc(SH(n,c)))if(Au(t,u))return!0;return!1}function vlt(t){let n=t.match(/\//g);return n?n.length:0}function bH(t,n){return Br(vlt(t),vlt(n))}var q4e=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function Qm(t){for(let n of q4e){let a=J4e(t,n);if(a!==void 0)return a}return t}function J4e(t,n){return Au(t,n)?xH(t,n):void 0}function xH(t,n){return t.substring(0,t.length-n.length)}function hE(t,n){return Og(t,n,q4e,!1)}function oF(t){let n=t.indexOf("*");return n===-1?t:t.indexOf("*",n+1)!==-1?void 0:{prefix:t.substr(0,n),suffix:t.substr(n+1)}}var Slt=new WeakMap;function TH(t){let n=Slt.get(t);if(n!==void 0)return n;let a,c,u=Lu(t);for(let _ of u){let f=oF(_);f!==void 0&&(typeof f=="string"?(a??(a=new Set)).add(f):(c??(c=[])).push(f))}return Slt.set(t,n={matchableStringSet:a,patterns:c}),n}function bv(t){return!(t>=0)}function vne(t){return t===".ts"||t===".tsx"||t===".d.ts"||t===".cts"||t===".mts"||t===".d.mts"||t===".d.cts"||Ca(t,".d.")&&au(t,".ts")}function JU(t){return vne(t)||t===".json"}function VU(t){let n=Bx(t);return n!==void 0?n:$.fail(`File ${t} has unknown extension.`)}function blt(t){return Bx(t)!==void 0}function Bx(t){return wt(q4e,n=>Au(t,n))}function WU(t,n){return t.checkJsDirective?t.checkJsDirective.enabled:n.checkJs}var Qhe={files:j,directories:j};function Zhe(t,n){let{matchableStringSet:a,patterns:c}=t;if(a?.has(n))return n;if(!(c===void 0||c.length===0))return GD(c,u=>u,n)}function Xhe(t,n){let a=t.indexOf(n);return $.assert(a!==-1),t.slice(a)}function ac(t,...n){return n.length&&(t.relatedInformation||(t.relatedInformation=[]),$.assert(t.relatedInformation!==j,"Diagnostic had empty array singleton for related info, but is still being constructed!"),t.relatedInformation.push(...n)),t}function V4e(t,n){$.assert(t.length!==0);let a=n(t[0]),c=a;for(let u=1;uc&&(c=_)}return{min:a,max:c}}function Yhe(t){return{pos:oC(t),end:t.end}}function ege(t,n){let a=n.pos-1,c=Math.min(t.text.length,_c(t.text,n.end)+1);return{pos:a,end:c}}function lL(t,n,a){return xlt(t,n,a,!1)}function W4e(t,n,a){return xlt(t,n,a,!0)}function xlt(t,n,a,c){return n.skipLibCheck&&t.isDeclarationFile||n.skipDefaultLibCheck&&t.hasNoDefaultLib||!c&&n.noCheck||a.isSourceOfProjectReferenceRedirect(t.fileName)||!GU(t,n)}function GU(t,n){if(t.checkJsDirective&&t.checkJsDirective.enabled===!1)return!1;if(t.scriptKind===3||t.scriptKind===4||t.scriptKind===5)return!0;let c=(t.scriptKind===1||t.scriptKind===2)&&WU(t,n);return lU(t,n.checkJs)||c||t.scriptKind===7}function Sne(t,n){return t===n||typeof t=="object"&&t!==null&&typeof n=="object"&&n!==null&&yl(t,n,Sne)}function HU(t){let n;switch(t.charCodeAt(1)){case 98:case 66:n=1;break;case 111:case 79:n=3;break;case 120:case 88:n=4;break;default:let k=t.length-1,T=0;for(;t.charCodeAt(T)===48;)T++;return t.slice(T,k)||"0"}let a=2,c=t.length-1,u=(c-a)*n,_=new Uint16Array((u>>>4)+(u&15?1:0));for(let k=c-1,T=0;k>=a;k--,T+=n){let C=T>>>4,O=t.charCodeAt(k),M=(O<=57?O-48:10+O-(O<=70?65:97))<<(T&15);_[C]|=M;let U=M>>>16;U&&(_[C+1]|=U)}let f="",y=_.length-1,g=!0;for(;g;){let k=0;g=!1;for(let T=y;T>=0;T--){let C=k<<16|_[T],O=C/10|0;_[T]=O,k=C-O*10,O&&!g&&(y=T,g=!0)}f=k+f}return f}function fP({negative:t,base10Value:n}){return(t&&n!=="0"?"-":"")+n}function G4e(t){if(bne(t,!1))return tge(t)}function tge(t){let n=t.startsWith("-"),a=HU(`${n?t.slice(1):t}n`);return{negative:n,base10Value:a}}function bne(t,n){if(t==="")return!1;let a=B1(99,!1),c=!0;a.setOnError(()=>c=!1),a.setText(t+"n");let u=a.scan(),_=u===41;_&&(u=a.scan());let f=a.getTokenFlags();return c&&u===10&&a.getTokenEnd()===t.length+1&&!(f&512)&&(!n||t===fP({negative:_,base10Value:HU(a.getTokenValue())}))}function yA(t){return!!(t.flags&33554432)||gU(t)||Tre(t)||hnr(t)||mnr(t)||!(Tb(t)||fnr(t))}function fnr(t){return ct(t)&&im(t.parent)&&t.parent.name===t}function mnr(t){for(;t.kind===80||t.kind===212;)t=t.parent;if(t.kind!==168)return!1;if(ko(t.parent,64))return!0;let n=t.parent.parent.kind;return n===265||n===188}function hnr(t){if(t.kind!==80)return!1;let n=fn(t.parent,a=>{switch(a.kind){case 299:return!0;case 212:case 234:return!1;default:return"quit"}});return n?.token===119||n?.parent.kind===265}function H4e(t){return Ug(t)&&ct(t.typeName)}function K4e(t,n=Ng){if(t.length<2)return!0;let a=t[0];for(let c=1,u=t.length;ct.includes(n))}function X4e(t){if(!t.parent)return;switch(t.kind){case 169:let{parent:a}=t;return a.kind===196?void 0:a.typeParameters;case 170:return t.parent.parameters;case 205:return t.parent.templateSpans;case 240:return t.parent.templateSpans;case 171:{let{parent:c}=t;return kP(c)?c.modifiers:void 0}case 299:return t.parent.heritageClauses}let{parent:n}=t;if(MR(t))return p3(t.parent)?void 0:t.parent.tags;switch(n.kind){case 188:case 265:return KI(t)?n.members:void 0;case 193:case 194:return n.types;case 190:case 210:case 357:case 276:case 280:return n.elements;case 211:case 293:return n.properties;case 214:case 215:return Wo(t)?n.typeArguments:n.expression===t?void 0:n.arguments;case 285:case 289:return hG(t)?n.children:void 0;case 287:case 286:return Wo(t)?n.typeArguments:void 0;case 242:case 297:case 298:case 269:return n.statements;case 270:return n.clauses;case 264:case 232:return J_(t)?n.members:void 0;case 267:return GT(t)?n.members:void 0;case 308:return n.statements}}function xne(t){if(!t.typeParameters){if(Pt(t.parameters,n=>!X_(n)))return!0;if(t.kind!==220){let n=pi(t.parameters);if(!(n&&uC(n)))return!0}}return!1}function ZU(t){return t==="Infinity"||t==="-Infinity"||t==="NaN"}function Y4e(t){return t.kind===261&&t.parent.kind===300}function mC(t){return t.kind===219||t.kind===220}function mP(t){return t.replace(/\$/g,()=>"\\$")}function $x(t){return(+t).toString()===t}function EH(t,n,a,c,u){let _=u&&t==="new";return!_&&Jd(t,n)?W.createIdentifier(t):!c&&!_&&$x(t)&&+t>=0?W.createNumericLiteral(+t):W.createStringLiteral(t,!!a)}function XU(t){return!!(t.flags&262144&&t.isThisType)}function Tne(t){let n=0,a=0,c=0,u=0,_;(k=>{k[k.BeforeNodeModules=0]="BeforeNodeModules",k[k.NodeModules=1]="NodeModules",k[k.Scope=2]="Scope",k[k.PackageContent=3]="PackageContent"})(_||(_={}));let f=0,y=0,g=0;for(;y>=0;)switch(f=y,y=t.indexOf("/",f+1),g){case 0:t.indexOf(Jx,f)===f&&(n=f,a=y,g=1);break;case 1:case 2:g===1&&t.charAt(f+1)==="@"?g=2:(c=y,g=3);break;case 3:t.indexOf(Jx,f)===f?g=1:g=3;break}return u=f,g>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:a,packageRootIndex:c,fileNameIndex:u}:void 0}function aF(t){switch(t.kind){case 169:case 264:case 265:case 266:case 267:case 347:case 339:case 341:return!0;case 274:return t.phaseModifier===156;case 277:return t.parent.parent.phaseModifier===156;case 282:return t.parent.parent.isTypeOnly;default:return!1}}function kH(t){return CA(t)||h_(t)||i_(t)||ed(t)||Af(t)||aF(t)||I_(t)&&!eP(t)&&!xb(t)}function CH(t){if(!rU(t))return!1;let{isBracketed:n,typeExpression:a}=t;return n||!!a&&a.type.kind===317}function ige(t,n){if(t.length===0)return!1;let a=t.charCodeAt(0);return a===35?t.length>1&&pg(t.charCodeAt(1),n):pg(a,n)}function e3e(t){var n;return((n=xge(t))==null?void 0:n.kind)===0}function Ene(t){return Ei(t)&&(t.type&&t.type.kind===317||P4(t).some(CH))}function sF(t){switch(t.kind){case 173:case 172:return!!t.questionToken;case 170:return!!t.questionToken||Ene(t);case 349:case 342:return CH(t);default:return!1}}function t3e(t){let n=t.kind;return(n===212||n===213)&&bF(t.expression)}function oge(t){return Ei(t)&&mh(t)&&hy(t)&&!!IO(t)}function age(t){return $.checkDefined(kne(t))}function kne(t){let n=IO(t);return n&&n.typeExpression&&n.typeExpression.type}function YU(t){return ct(t)?t.escapedText:cF(t)}function DH(t){return ct(t)?Zi(t):ez(t)}function r3e(t){let n=t.kind;return n===80||n===296}function cF(t){return`${t.namespace.escapedText}:${Zi(t.name)}`}function ez(t){return`${Zi(t.namespace)}:${Zi(t.name)}`}function sge(t){return ct(t)?Zi(t):ez(t)}function b0(t){return!!(t.flags&8576)}function x0(t){return t.flags&8192?t.escapedName:t.flags&384?dp(""+t.value):$.fail()}function lF(t){return!!t&&(no(t)||mu(t)||wi(t))}function n3e(t){return t===void 0?!1:!!$L(t.attributes)}var ynr=String.prototype.replace;function Y4(t,n){return ynr.call(t,"*",n)}function Cne(t){return ct(t.name)?t.name.escapedText:dp(t.name.text)}function i3e(t){switch(t.kind){case 169:case 170:case 173:case 172:case 186:case 185:case 180:case 181:case 182:case 175:case 174:case 176:case 177:case 178:case 179:case 184:case 183:case 187:case 188:case 189:case 190:case 193:case 194:case 197:case 191:case 192:case 198:case 199:case 195:case 196:case 204:case 206:case 203:case 329:case 330:case 347:case 339:case 341:case 346:case 345:case 325:case 326:case 327:case 342:case 349:case 318:case 316:case 315:case 313:case 314:case 323:case 319:case 310:case 334:case 336:case 335:case 351:case 344:case 200:case 201:case 263:case 242:case 269:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 261:case 209:case 264:case 265:case 266:case 267:case 268:case 273:case 272:case 279:case 278:case 243:case 260:case 283:return!0}return!1}function wd(t,n=!1,a=!1,c=!1){return{value:t,isSyntacticallyString:n,resolvedOtherFiles:a,hasExternalReferences:c}}function o3e({evaluateElementAccessExpression:t,evaluateEntityNameExpression:n}){function a(u,_){let f=!1,y=!1,g=!1;switch(u=bl(u),u.kind){case 225:let k=a(u.operand,_);if(y=k.resolvedOtherFiles,g=k.hasExternalReferences,typeof k.value=="number")switch(u.operator){case 40:return wd(k.value,f,y,g);case 41:return wd(-k.value,f,y,g);case 55:return wd(~k.value,f,y,g)}break;case 227:{let T=a(u.left,_),C=a(u.right,_);if(f=(T.isSyntacticallyString||C.isSyntacticallyString)&&u.operatorToken.kind===40,y=T.resolvedOtherFiles||C.resolvedOtherFiles,g=T.hasExternalReferences||C.hasExternalReferences,typeof T.value=="number"&&typeof C.value=="number")switch(u.operatorToken.kind){case 52:return wd(T.value|C.value,f,y,g);case 51:return wd(T.value&C.value,f,y,g);case 49:return wd(T.value>>C.value,f,y,g);case 50:return wd(T.value>>>C.value,f,y,g);case 48:return wd(T.value<=2)break;case 175:case 177:case 178:case 179:case 263:if(_e&3&&ve==="arguments"){Ae=a;break e}break;case 219:if(_e&3&&ve==="arguments"){Ae=a;break e}if(_e&16){let nt=re.name;if(nt&&ve===nt.escapedText){Ae=re.symbol;break e}}break;case 171:re.parent&&re.parent.kind===170&&(re=re.parent),re.parent&&(J_(re.parent)||re.parent.kind===264)&&(re=re.parent);break;case 347:case 339:case 341:case 352:let Ve=QR(re);Ve&&(re=Ve.parent);break;case 170:Fe&&(Fe===re.initializer||Fe===re.name&&$s(Fe))&&(ze||(ze=re));break;case 209:Fe&&(Fe===re.initializer||Fe===re.name&&$s(Fe))&&hA(re)&&!ze&&(ze=re);break;case 196:if(_e&262144){let nt=re.typeParameter.name;if(nt&&ve===nt.escapedText){Ae=re.typeParameter.symbol;break e}}break;case 282:Fe&&Fe===re.propertyName&&re.parent.parent.moduleSpecifier&&(re=re.parent.parent.parent);break}Z(re,Fe)&&(Be=re),Fe=re,re=c1(re)?Ire(re)||re.parent:(Uy(re)||Qne(re))&&dA(re)||re.parent}if(le&&Ae&&(!Be||Ae!==Be.symbol)&&(Ae.isReferenced|=_e),!Ae){if(Fe&&($.assertNode(Fe,Ta),Fe.commonJsModuleIndicator&&ve==="exports"&&_e&Fe.symbol.flags))return Fe.symbol;Oe||(Ae=f(_,ve,_e))}if(!Ae&&Ce&&Ei(Ce)&&Ce.parent&&$h(Ce.parent,!1))return n;if(me){if(de&&k(Ce,ve,de,Ae))return;Ae?C(Ce,Ae,_e,Fe,ze,ut):T(Ce,ae,_e,me)}return Ae}function J(re,ae,_e){let me=$c(t),le=ae;if(wa(_e)&&le.body&&re.valueDeclaration&&re.valueDeclaration.pos>=le.body.pos&&re.valueDeclaration.end<=le.body.end&&me>=2){let ue=g(le);return ue===void 0&&(ue=X(le.parameters,Oe)||!1,y(le,ue)),!ue}return!1;function Oe(ue){return be(ue.name)||!!ue.initializer&&be(ue.initializer)}function be(ue){switch(ue.kind){case 220:case 219:case 263:case 177:return!1;case 175:case 178:case 179:case 304:return be(ue.name);case 173:return fd(ue)?!F:be(ue.name);default:return eme(ue)||xm(ue)?me<7:Vc(ue)&&ue.dotDotDotToken&&$y(ue.parent)?me<4:Wo(ue)?!1:Is(ue,be)||!1}}}function G(re,ae){return re.kind!==220&&re.kind!==219?gP(re)||(lu(re)||re.kind===173&&!oc(re))&&(!ae||ae!==re.name):ae&&ae===re.name?!1:re.asteriskToken||ko(re,1024)?!0:!uA(re)}function Z(re,ae){switch(re.kind){case 170:return!!ae&&ae===re.name;case 263:case 264:case 265:case 267:case 266:case 268:return!0;default:return!1}}function Q(re,ae){if(re.declarations){for(let _e of re.declarations)if(_e.kind===169&&(c1(_e.parent)?iP(_e.parent):_e.parent)===ae)return!(c1(_e.parent)&&wt(_e.parent.parent.tags,n1))}return!1}}function Dne(t,n=!0){switch($.type(t),t.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return n;case 225:return t.operator===41?qh(t.operand)||n&&dL(t.operand):t.operator===40?qh(t.operand):!1;default:return!1}}function a3e(t){for(;t.kind===218;)t=t.expression;return t}function Ane(t){switch($.type(t),t.kind){case 170:case 172:case 173:case 209:case 212:case 213:case 227:case 261:case 278:case 304:case 305:case 342:case 349:return!0;default:return!1}}function uge(t){let n=fn(t,fp);return!!n&&!n.importClause}var s3e=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],c3e=new Set(s3e),wne=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),pL=new Set([...s3e,...s3e.map(t=>`node:${t}`),...wne]);function Ine(t,n,a,c){let u=Ei(t),_=/import|require/g;for(;_.exec(t.text)!==null;){let f=vnr(t,_.lastIndex,n);if(u&&$h(f,a))c(f,f.arguments[0]);else if(Bh(f)&&f.arguments.length>=1&&(!a||Sl(f.arguments[0])))c(f,f.arguments[0]);else if(n&&jT(f))c(f,f.argument.literal);else if(n&&OS(f)){let y=JO(f);y&&Ic(y)&&y.text&&c(f,y)}}}function vnr(t,n,a){let c=Ei(t),u=t,_=f=>{if(f.pos<=n&&(na&&n(a))}function tz(t,n,a,c){let u;return _(t,n,void 0);function _(f,y,g){if(c){let T=c(f,g);if(T)return T}let k;return X(y,(T,C)=>{if(T&&u?.has(T.sourceFile.path)){(k??(k=new Set)).add(T);return}let O=a(T,g,C);if(O||!T)return O;(u||(u=new Set)).add(T.sourceFile.path)})||X(y,T=>T&&!k?.has(T)?_(T.commandLine.projectReferences,T.references,T):void 0)}}function fge(t,n,a){return t&&Snr(t,n,a)}function Snr(t,n,a){return JR(t,n,c=>qf(c.initializer)?wt(c.initializer.elements,u=>Ic(u)&&u.text===a):void 0)}function u3e(t,n,a){return mge(t,n,c=>Ic(c.initializer)&&c.initializer.text===a?c.initializer:void 0)}function mge(t,n,a){return JR(t,n,a)}function Il(t,n=!0){let a=t&&Tlt(t);return a&&!n&&$g(a),vA(a,!1)}function wH(t,n,a){let c=a(t);return c?Yi(c,t):c=Tlt(t,a),c&&!n&&$g(c),c}function Tlt(t,n){let a=n?_=>wH(_,!0,n):Il,u=Dn(t,a,void 0,n?_=>_&&hge(_,!0,n):_=>_&&hP(_),a);if(u===t){let _=Ic(t)?Yi(W.createStringLiteralFromNode(t),t):qh(t)?Yi(W.createNumericLiteral(t.text,t.numericLiteralFlags),t):W.cloneNode(t);return qt(_,t)}return u.parent=void 0,u}function hP(t,n=!0){if(t){let a=W.createNodeArray(t.map(c=>Il(c,n)),t.hasTrailingComma);return qt(a,t),a}return t}function hge(t,n,a){return W.createNodeArray(t.map(c=>wH(c,n,a)),t.hasTrailingComma)}function $g(t){gge(t),p3e(t)}function gge(t){_3e(t,1024,bnr)}function p3e(t){_3e(t,2048,Ohe)}function _3e(t,n,a){CS(t,n);let c=a(t);c&&_3e(c,n,a)}function bnr(t){return Is(t,n=>n)}function d3e(){let t,n,a,c,u;return{createBaseSourceFileNode:_,createBaseIdentifierNode:f,createBasePrivateIdentifierNode:y,createBaseTokenNode:g,createBaseNode:k};function _(T){return new(u||(u=Uf.getSourceFileConstructor()))(T,-1,-1)}function f(T){return new(a||(a=Uf.getIdentifierConstructor()))(T,-1,-1)}function y(T){return new(c||(c=Uf.getPrivateIdentifierConstructor()))(T,-1,-1)}function g(T){return new(n||(n=Uf.getTokenConstructor()))(T,-1,-1)}function k(T){return new(t||(t=Uf.getNodeConstructor()))(T,-1,-1)}}function f3e(t){let n,a;return{getParenthesizeLeftSideOfBinaryForOperator:c,getParenthesizeRightSideOfBinaryForOperator:u,parenthesizeLeftSideOfBinary:T,parenthesizeRightSideOfBinary:C,parenthesizeExpressionOfComputedPropertyName:O,parenthesizeConditionOfConditionalExpression:F,parenthesizeBranchOfConditionalExpression:M,parenthesizeExpressionOfExportDefault:U,parenthesizeExpressionOfNew:J,parenthesizeLeftSideOfAccess:G,parenthesizeOperandOfPostfixUnary:Z,parenthesizeOperandOfPrefixUnary:Q,parenthesizeExpressionsOfCommaDelimitedList:re,parenthesizeExpressionForDisallowedComma:ae,parenthesizeExpressionOfExpressionStatement:_e,parenthesizeConciseBodyOfArrowFunction:me,parenthesizeCheckTypeOfConditionalType:le,parenthesizeExtendsTypeOfConditionalType:Oe,parenthesizeConstituentTypesOfUnionType:ue,parenthesizeConstituentTypeOfUnionType:be,parenthesizeConstituentTypesOfIntersectionType:Ce,parenthesizeConstituentTypeOfIntersectionType:De,parenthesizeOperandOfTypeOperator:Ae,parenthesizeOperandOfReadonlyTypeOperator:Fe,parenthesizeNonArrayTypeOfPostfixType:Be,parenthesizeElementTypesOfTupleType:de,parenthesizeElementTypeOfTupleType:ze,parenthesizeTypeOfOptionalType:je,parenthesizeTypeArguments:Ve,parenthesizeLeadingTypeArgument:ve};function c(nt){n||(n=new Map);let It=n.get(nt);return It||(It=ke=>T(nt,ke),n.set(nt,It)),It}function u(nt){a||(a=new Map);let It=a.get(nt);return It||(It=ke=>C(nt,void 0,ke),a.set(nt,It)),It}function _(nt,It){return nt===61?It===56||It===57:It===61?nt===56||nt===57:!1}function f(nt,It,ke,_t){let Se=q1(It);if(wi(Se)&&_(nt,Se.operatorToken.kind))return!0;let tt=YG(227,nt),Qe=ahe(227,nt);if(!ke&&It.kind===220&&tt>3)return!0;let We=wU(Se);switch(Br(We,tt)){case-1:return!(!ke&&Qe===1&&It.kind===230);case 1:return!1;case 0:if(ke)return Qe===1;if(wi(Se)&&Se.operatorToken.kind===nt){if(y(nt))return!1;if(nt===40){let Kt=_t?g(_t):0;if(nU(Kt)&&Kt===g(Se))return!1}}return ohe(Se)===0}}function y(nt){return nt===42||nt===52||nt===51||nt===53||nt===28}function g(nt){if(nt=q1(nt),nU(nt.kind))return nt.kind;if(nt.kind===227&&nt.operatorToken.kind===40){if(nt.cachedLiteralKind!==void 0)return nt.cachedLiteralKind;let It=g(nt.left),ke=nU(It)&&It===g(nt.right)?It:0;return nt.cachedLiteralKind=ke,ke}return 0}function k(nt,It,ke,_t){return q1(It).kind===218?It:f(nt,It,ke,_t)?t.createParenthesizedExpression(It):It}function T(nt,It){return k(nt,It,!0)}function C(nt,It,ke){return k(nt,ke,!1,It)}function O(nt){return gz(nt)?t.createParenthesizedExpression(nt):nt}function F(nt){let It=YG(228,58),ke=q1(nt),_t=wU(ke);return Br(_t,It)!==1?t.createParenthesizedExpression(nt):nt}function M(nt){let It=q1(nt);return gz(It)?t.createParenthesizedExpression(nt):nt}function U(nt){let It=q1(nt),ke=gz(It);if(!ke)switch(aL(It,!1).kind){case 232:case 219:ke=!0}return ke?t.createParenthesizedExpression(nt):nt}function J(nt){let It=aL(nt,!0);switch(It.kind){case 214:return t.createParenthesizedExpression(nt);case 215:return It.arguments?nt:t.createParenthesizedExpression(nt)}return G(nt)}function G(nt,It){let ke=q1(nt);return jh(ke)&&(ke.kind!==215||ke.arguments)&&(It||!xm(ke))?nt:qt(t.createParenthesizedExpression(nt),nt)}function Z(nt){return jh(nt)?nt:qt(t.createParenthesizedExpression(nt),nt)}function Q(nt){return ume(nt)?nt:qt(t.createParenthesizedExpression(nt),nt)}function re(nt){let It=Zo(nt,ae);return qt(t.createNodeArray(It,nt.hasTrailingComma),nt)}function ae(nt){let It=q1(nt),ke=wU(It),_t=YG(227,28);return ke>_t?nt:qt(t.createParenthesizedExpression(nt),nt)}function _e(nt){let It=q1(nt);if(Js(It)){let _t=It.expression,Se=q1(_t).kind;if(Se===219||Se===220){let tt=t.updateCallExpression(It,qt(t.createParenthesizedExpression(_t),_t),It.typeArguments,It.arguments);return t.restoreOuterExpressions(nt,tt,8)}}let ke=aL(It,!1).kind;return ke===211||ke===219?qt(t.createParenthesizedExpression(nt),nt):nt}function me(nt){return!Vs(nt)&&(gz(nt)||aL(nt,!1).kind===211)?qt(t.createParenthesizedExpression(nt),nt):nt}function le(nt){switch(nt.kind){case 185:case 186:case 195:return t.createParenthesizedType(nt)}return nt}function Oe(nt){return nt.kind===195?t.createParenthesizedType(nt):nt}function be(nt){switch(nt.kind){case 193:case 194:return t.createParenthesizedType(nt)}return le(nt)}function ue(nt){return t.createNodeArray(Zo(nt,be))}function De(nt){switch(nt.kind){case 193:case 194:return t.createParenthesizedType(nt)}return be(nt)}function Ce(nt){return t.createNodeArray(Zo(nt,De))}function Ae(nt){return nt.kind===194?t.createParenthesizedType(nt):De(nt)}function Fe(nt){return nt.kind===199?t.createParenthesizedType(nt):Ae(nt)}function Be(nt){switch(nt.kind){case 196:case 199:case 187:return t.createParenthesizedType(nt)}return Ae(nt)}function de(nt){return t.createNodeArray(Zo(nt,ze))}function ze(nt){return ut(nt)?t.createParenthesizedType(nt):nt}function ut(nt){return xL(nt)?nt.postfix:mL(nt)||Cb(nt)||fL(nt)||bA(nt)?ut(nt.type):yP(nt)?ut(nt.falseType):SE(nt)||vF(nt)?ut(Sn(nt.types)):n3(nt)?!!nt.typeParameter.constraint&&ut(nt.typeParameter.constraint):!1}function je(nt){return ut(nt)?t.createParenthesizedType(nt):Be(nt)}function ve(nt){return APe(nt)&&nt.typeParameters?t.createParenthesizedType(nt):nt}function Le(nt,It){return It===0?ve(nt):nt}function Ve(nt){if(Pt(nt))return t.createNodeArray(Zo(nt,Le))}}var m3e={getParenthesizeLeftSideOfBinaryForOperator:t=>vl,getParenthesizeRightSideOfBinaryForOperator:t=>vl,parenthesizeLeftSideOfBinary:(t,n)=>n,parenthesizeRightSideOfBinary:(t,n,a)=>a,parenthesizeExpressionOfComputedPropertyName:vl,parenthesizeConditionOfConditionalExpression:vl,parenthesizeBranchOfConditionalExpression:vl,parenthesizeExpressionOfExportDefault:vl,parenthesizeExpressionOfNew:t=>Ba(t,jh),parenthesizeLeftSideOfAccess:t=>Ba(t,jh),parenthesizeOperandOfPostfixUnary:t=>Ba(t,jh),parenthesizeOperandOfPrefixUnary:t=>Ba(t,ume),parenthesizeExpressionsOfCommaDelimitedList:t=>Ba(t,HI),parenthesizeExpressionForDisallowedComma:vl,parenthesizeExpressionOfExpressionStatement:vl,parenthesizeConciseBodyOfArrowFunction:vl,parenthesizeCheckTypeOfConditionalType:vl,parenthesizeExtendsTypeOfConditionalType:vl,parenthesizeConstituentTypesOfUnionType:t=>Ba(t,HI),parenthesizeConstituentTypeOfUnionType:vl,parenthesizeConstituentTypesOfIntersectionType:t=>Ba(t,HI),parenthesizeConstituentTypeOfIntersectionType:vl,parenthesizeOperandOfTypeOperator:vl,parenthesizeOperandOfReadonlyTypeOperator:vl,parenthesizeNonArrayTypeOfPostfixType:vl,parenthesizeElementTypesOfTupleType:t=>Ba(t,HI),parenthesizeElementTypeOfTupleType:vl,parenthesizeTypeOfOptionalType:vl,parenthesizeTypeArguments:t=>t&&Ba(t,HI),parenthesizeLeadingTypeArgument:vl};function h3e(t){return{convertToFunctionBlock:n,convertToFunctionExpression:a,convertToClassExpression:c,convertToArrayAssignmentElement:u,convertToObjectAssignmentElement:_,convertToAssignmentPattern:f,convertToObjectAssignmentPattern:y,convertToArrayAssignmentPattern:g,convertToAssignmentElementTarget:k};function n(T,C){if(Vs(T))return T;let O=t.createReturnStatement(T);qt(O,T);let F=t.createBlock([O],C);return qt(F,T),F}function a(T){var C;if(!T.body)return $.fail("Cannot convert a FunctionDeclaration without a body");let O=t.createFunctionExpression((C=Qk(T))==null?void 0:C.filter(F=>!fF(F)&&!$ne(F)),T.asteriskToken,T.name,T.typeParameters,T.parameters,T.type,T.body);return Yi(O,T),qt(O,T),rz(T)&&One(O,!0),O}function c(T){var C;let O=t.createClassExpression((C=T.modifiers)==null?void 0:C.filter(F=>!fF(F)&&!$ne(F)),T.name,T.typeParameters,T.heritageClauses,T.members);return Yi(O,T),qt(O,T),rz(T)&&One(O,!0),O}function u(T){if(Vc(T)){if(T.dotDotDotToken)return $.assertNode(T.name,ct),Yi(qt(t.createSpreadElement(T.name),T),T);let C=k(T.name);return T.initializer?Yi(qt(t.createAssignment(C,T.initializer),T),T):C}return Ba(T,Vt)}function _(T){if(Vc(T)){if(T.dotDotDotToken)return $.assertNode(T.name,ct),Yi(qt(t.createSpreadAssignment(T.name),T),T);if(T.propertyName){let C=k(T.name);return Yi(qt(t.createPropertyAssignment(T.propertyName,T.initializer?t.createAssignment(C,T.initializer):C),T),T)}return $.assertNode(T.name,ct),Yi(qt(t.createShorthandPropertyAssignment(T.name,T.initializer),T),T)}return Ba(T,MT)}function f(T){switch(T.kind){case 208:case 210:return g(T);case 207:case 211:return y(T)}}function y(T){return $y(T)?Yi(qt(t.createObjectLiteralExpression(Cr(T.elements,_)),T),T):Ba(T,Lc)}function g(T){return xE(T)?Yi(qt(t.createArrayLiteralExpression(Cr(T.elements,u)),T),T):Ba(T,qf)}function k(T){return $s(T)?f(T):Ba(T,Vt)}}var g3e={convertToFunctionBlock:Ts,convertToFunctionExpression:Ts,convertToClassExpression:Ts,convertToArrayAssignmentElement:Ts,convertToObjectAssignmentElement:Ts,convertToAssignmentPattern:Ts,convertToObjectAssignmentPattern:Ts,convertToArrayAssignmentPattern:Ts,convertToAssignmentElementTarget:Ts},yge=0,y3e=(t=>(t[t.None=0]="None",t[t.NoParenthesizerRules=1]="NoParenthesizerRules",t[t.NoNodeConverters=2]="NoNodeConverters",t[t.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",t[t.NoOriginalNode=8]="NoOriginalNode",t))(y3e||{}),Elt=[];function klt(t){Elt.push(t)}function IH(t,n){let a=t&8?vl:Yi,c=Ef(()=>t&1?m3e:f3e(G)),u=Ef(()=>t&2?g3e:h3e(G)),_=pd(P=>(q,oe)=>Yn(q,P,oe)),f=pd(P=>q=>Ft(P,q)),y=pd(P=>q=>Mr(q,P)),g=pd(P=>()=>gs(P)),k=pd(P=>q=>$3(P,q)),T=pd(P=>(q,oe)=>Ii(P,q,oe)),C=pd(P=>(q,oe)=>gg(P,q,oe)),O=pd(P=>(q,oe)=>jC(P,q,oe)),F=pd(P=>(q,oe)=>lw(P,q,oe)),M=pd(P=>(q,oe,we)=>_2(P,q,oe,we)),U=pd(P=>(q,oe,we)=>EM(P,q,oe,we)),J=pd(P=>(q,oe,we,Tt)=>uw(P,q,oe,we,Tt)),G={get parenthesizer(){return c()},get converters(){return u()},baseFactory:n,flags:t,createNodeArray:Z,createNumericLiteral:_e,createBigIntLiteral:me,createStringLiteral:Oe,createStringLiteralFromNode:be,createRegularExpressionLiteral:ue,createLiteralLikeNode:De,createIdentifier:Fe,createTempVariable:Be,createLoopVariable:de,createUniqueName:ze,getGeneratedNameForNode:ut,createPrivateIdentifier:ve,createUniquePrivateName:Ve,getGeneratedPrivateNameForNode:nt,createToken:ke,createSuper:_t,createThis:Se,createNull:tt,createTrue:Qe,createFalse:We,createModifier:St,createModifiersFromModifierFlags:Kt,createQualifiedName:Sr,updateQualifiedName:nn,createComputedPropertyName:Nn,updateComputedPropertyName:$t,createTypeParameterDeclaration:Dr,updateTypeParameterDeclaration:Qn,createParameterDeclaration:Ko,updateParameterDeclaration:is,createDecorator:sr,updateDecorator:uo,createPropertySignature:Wa,updatePropertySignature:oo,createPropertyDeclaration:$o,updatePropertyDeclaration:ft,createMethodSignature:Ht,updateMethodSignature:Wr,createMethodDeclaration:ai,updateMethodDeclaration:vo,createConstructorDeclaration:Cn,updateConstructorDeclaration:Es,createGetAccessorDeclaration:ur,updateGetAccessorDeclaration:Ee,createSetAccessorDeclaration:ye,updateSetAccessorDeclaration:et,createCallSignature:Ot,updateCallSignature:ar,createConstructSignature:at,updateConstructSignature:Zt,createIndexSignature:Qt,updateIndexSignature:pr,createClassStaticBlockDeclaration:ya,updateClassStaticBlockDeclaration:Ls,createTemplateLiteralTypeSpan:Et,updateTemplateLiteralTypeSpan:xr,createKeywordTypeNode:gi,createTypePredicateNode:Ye,updateTypePredicateNode:er,createTypeReferenceNode:Ne,updateTypeReferenceNode:Y,createFunctionTypeNode:ot,updateFunctionTypeNode:pe,createConstructorTypeNode:mr,updateConstructorTypeNode:Ir,createTypeQueryNode:zn,updateTypeQueryNode:Rt,createTypeLiteralNode:rr,updateTypeLiteralNode:_r,createArrayTypeNode:wr,updateArrayTypeNode:pn,createTupleTypeNode:tn,updateTupleTypeNode:lr,createNamedTupleMember:cn,updateNamedTupleMember:gn,createOptionalTypeNode:bn,updateOptionalTypeNode:$r,createRestTypeNode:Uo,updateRestTypeNode:Ys,createUnionTypeNode:Mp,updateUnionTypeNode:Cp,createIntersectionTypeNode:uu,updateIntersectionTypeNode:$a,createConditionalTypeNode:bs,updateConditionalTypeNode:V_,createInferTypeNode:Nu,updateInferTypeNode:kc,createImportTypeNode:_s,updateImportTypeNode:sc,createParenthesizedType:sl,updateParenthesizedType:Yc,createThisTypeNode:Ar,createTypeOperatorNode:Ql,updateTypeOperatorNode:Gp,createIndexedAccessTypeNode:N_,updateIndexedAccessTypeNode:lf,createMappedTypeNode:Yu,updateMappedTypeNode:Hp,createLiteralTypeNode:H,updateLiteralTypeNode:st,createTemplateLiteralType:o_,updateTemplateLiteralType:Gy,createObjectBindingPattern:zt,updateObjectBindingPattern:Er,createArrayBindingPattern:jn,updateArrayBindingPattern:So,createBindingElement:Di,updateBindingElement:On,createArrayLiteralExpression:ua,updateArrayLiteralExpression:va,createObjectLiteralExpression:Bl,updateObjectLiteralExpression:xc,createPropertyAccessExpression:t&4?(P,q)=>Ai(W_(P,q),262144):W_,updatePropertyAccessExpression:g_,createPropertyAccessChain:t&4?(P,q,oe)=>Ai(xu(P,q,oe),262144):xu,updatePropertyAccessChain:a_,createElementAccessExpression:Wf,updateElementAccessExpression:yy,createElementAccessChain:Wh,updateElementAccessChain:rt,createCallExpression:Vn,updateCallExpression:Ga,createCallChain:el,updateCallChain:tl,createNewExpression:Uc,updateNewExpression:nd,createTaggedTemplateExpression:Mu,updateTaggedTemplateExpression:Dp,createTypeAssertion:Kp,updateTypeAssertion:vy,createParenthesizedExpression:If,updateParenthesizedExpression:uf,createFunctionExpression:Hg,updateFunctionExpression:Ym,createArrowFunction:D0,updateArrowFunction:Pb,createDeleteExpression:Wx,updateDeleteExpression:Gx,createTypeOfExpression:Gh,updateTypeOfExpression:Nd,createVoidExpression:Iv,updateVoidExpression:Hy,createAwaitExpression:US,updateAwaitExpression:xe,createPrefixUnaryExpression:Ft,updatePrefixUnaryExpression:Nr,createPostfixUnaryExpression:Mr,updatePostfixUnaryExpression:wn,createBinaryExpression:Yn,updateBinaryExpression:Mo,createConditionalExpression:Ea,updateConditionalExpression:ee,createTemplateExpression:it,updateTemplateExpression:cr,createTemplateHead:cp,createTemplateMiddle:Cc,createTemplateTail:pf,createNoSubstitutionTemplateLiteral:Kg,createTemplateLiteralLikeNode:ks,createYieldExpression:Ky,updateYieldExpression:A0,createSpreadElement:r2,updateSpreadElement:PE,createClassExpression:vh,updateClassExpression:Nb,createOmittedExpression:Pv,createExpressionWithTypeArguments:d1,updateExpressionWithTypeArguments:OC,createAsExpression:dt,updateAsExpression:Lt,createNonNullExpression:Tr,updateNonNullExpression:dn,createSatisfiesExpression:qn,updateSatisfiesExpression:Fi,createNonNullChain:$n,updateNonNullChain:oi,createMetaProperty:sa,updateMetaProperty:os,createTemplateSpan:Po,updateTemplateSpan:as,createSemicolonClassElement:ka,createBlock:lp,updateBlock:Hh,createVariableStatement:f1,updateVariableStatement:Pf,createEmptyStatement:m1,createExpressionStatement:Qg,updateExpressionStatement:GA,createIfStatement:zS,updateIfStatement:Ob,createDoStatement:HA,updateDoStatement:Fb,createWhileStatement:hM,updateWhileStatement:xq,createForStatement:gM,updateForStatement:Hx,createForInStatement:KA,updateForInStatement:P3,createForOfStatement:NE,updateForOfStatement:N3,createContinueStatement:e7,updateContinueStatement:Tq,createBreakStatement:O3,updateBreakStatement:t7,createReturnStatement:QA,updateReturnStatement:yM,createWithStatement:F3,updateWithStatement:r7,createSwitchStatement:UP,updateSwitchStatement:FC,createLabeledStatement:n7,updateLabeledStatement:i7,createThrowStatement:zP,updateThrowStatement:RC,createTryStatement:OE,updateTryStatement:n2,createDebuggerStatement:i2,createVariableDeclaration:o2,updateVariableDeclaration:LC,createVariableDeclarationList:ZA,updateVariableDeclarationList:R3,createFunctionDeclaration:XA,updateFunctionDeclaration:il,createClassDeclaration:vM,updateClassDeclaration:a2,createInterfaceDeclaration:s2,updateInterfaceDeclaration:Rb,createTypeAliasDeclaration:tp,updateTypeAliasDeclaration:am,createEnumDeclaration:Kh,updateEnumDeclaration:sm,createModuleDeclaration:YA,updateModuleDeclaration:eh,createModuleBlock:Lb,updateModuleBlock:Sh,createCaseBlock:h1,updateCaseBlock:X1,createNamespaceExportDeclaration:ew,updateNamespaceExportDeclaration:tw,createImportEqualsDeclaration:SM,updateImportEqualsDeclaration:FE,createImportDeclaration:qP,updateImportDeclaration:gt,createImportClause:M3,updateImportClause:Kx,createAssertClause:Y1,updateAssertClause:RE,createAssertEntry:MC,updateAssertEntry:th,createImportTypeAssertionContainer:Nv,updateImportTypeAssertionContainer:g1,createImportAttributes:rw,updateImportAttributes:zc,createImportAttribute:Qy,updateImportAttribute:LE,createNamespaceImport:j3,updateNamespaceImport:c2,createNamespaceExport:JP,updateNamespaceExport:w0,createNamedImports:Qx,updateNamedImports:nw,createImportSpecifier:ME,updateImportSpecifier:qS,createExportAssignment:VP,updateExportAssignment:iw,createExportDeclaration:io,updateExportDeclaration:Ki,createNamedExports:B3,updateNamedExports:l2,createExportSpecifier:WP,updateExportSpecifier:bM,createMissingDeclaration:kq,createExternalModuleReference:qi,updateExternalModuleReference:rh,get createJSDocAllType(){return g(313)},get createJSDocUnknownType(){return g(314)},get createJSDocNonNullableType(){return C(316)},get updateJSDocNonNullableType(){return O(316)},get createJSDocNullableType(){return C(315)},get updateJSDocNullableType(){return O(315)},get createJSDocOptionalType(){return k(317)},get updateJSDocOptionalType(){return T(317)},get createJSDocVariadicType(){return k(319)},get updateJSDocVariadicType(){return T(319)},get createJSDocNamepathType(){return k(320)},get updateJSDocNamepathType(){return T(320)},createJSDocFunctionType:xM,updateJSDocFunctionType:o7,createJSDocTypeLiteral:Pm,updateJSDocTypeLiteral:Mb,createJSDocTypeExpression:Ov,updateJSDocTypeExpression:BC,createJSDocSignature:U3,updateJSDocSignature:$C,createJSDocTemplateTag:Qh,updateJSDocTemplateTag:jE,createJSDocTypedefTag:ow,updateJSDocTypedefTag:a7,createJSDocParameterTag:aw,updateJSDocParameterTag:UC,createJSDocPropertyTag:s7,updateJSDocPropertyTag:u2,createJSDocCallbackTag:JS,updateJSDocCallbackTag:zC,createJSDocOverloadTag:sw,updateJSDocOverloadTag:BE,createJSDocAugmentsTag:qC,updateJSDocAugmentsTag:tv,createJSDocImplementsTag:p2,updateJSDocImplementsTag:u7,createJSDocSeeTag:Zx,updateJSDocSeeTag:JC,createJSDocImportTag:Zh,updateJSDocImportTag:P0,createJSDocNameReference:_f,updateJSDocNameReference:GP,createJSDocMemberName:Xx,updateJSDocMemberName:cw,createJSDocLink:z3,updateJSDocLink:Yx,createJSDocLinkCode:TM,updateJSDocLinkCode:c7,createJSDocLinkPlain:l7,updateJSDocLinkPlain:Cq,get createJSDocTypeTag(){return U(345)},get updateJSDocTypeTag(){return J(345)},get createJSDocReturnTag(){return U(343)},get updateJSDocReturnTag(){return J(343)},get createJSDocThisTag(){return U(344)},get updateJSDocThisTag(){return J(344)},get createJSDocAuthorTag(){return F(331)},get updateJSDocAuthorTag(){return M(331)},get createJSDocClassTag(){return F(333)},get updateJSDocClassTag(){return M(333)},get createJSDocPublicTag(){return F(334)},get updateJSDocPublicTag(){return M(334)},get createJSDocPrivateTag(){return F(335)},get updateJSDocPrivateTag(){return M(335)},get createJSDocProtectedTag(){return F(336)},get updateJSDocProtectedTag(){return M(336)},get createJSDocReadonlyTag(){return F(337)},get updateJSDocReadonlyTag(){return M(337)},get createJSDocOverrideTag(){return F(338)},get updateJSDocOverrideTag(){return M(338)},get createJSDocDeprecatedTag(){return F(332)},get updateJSDocDeprecatedTag(){return M(332)},get createJSDocThrowsTag(){return U(350)},get updateJSDocThrowsTag(){return J(350)},get createJSDocSatisfiesTag(){return U(351)},get updateJSDocSatisfiesTag(){return J(351)},createJSDocEnumTag:df,updateJSDocEnumTag:p7,createJSDocUnknownTag:q3,updateJSDocUnknownTag:O_,createJSDocText:HP,updateJSDocText:Fv,createJSDocComment:VC,updateJSDocComment:$E,createJsxElement:_7,updateJsxElement:Dq,createJsxSelfClosingElement:jp,updateJsxSelfClosingElement:kM,createJsxOpeningElement:J3,updateJsxOpeningElement:KP,createJsxClosingElement:d7,updateJsxClosingElement:Nm,createJsxFragment:yg,createJsxText:pw,updateJsxText:vg,createJsxOpeningFragment:W3,createJsxJsxClosingFragment:eT,updateJsxFragment:V3,createJsxAttribute:f7,updateJsxAttribute:G3,createJsxAttributes:rv,updateJsxAttributes:m7,createJsxSpreadAttribute:CM,updateJsxSpreadAttribute:h7,createJsxExpression:H3,updateJsxExpression:g7,createJsxNamespacedName:UE,updateJsxNamespacedName:Zg,createCaseClause:VS,updateCaseClause:K3,createDefaultClause:Q3,updateDefaultClause:cl,createHeritageClause:$i,updateHeritageClause:Xy,createCatchClause:Od,updateCatchClause:_w,createPropertyAssignment:Z3,updatePropertyAssignment:QP,createShorthandPropertyAssignment:X3,updateShorthandPropertyAssignment:B,createSpreadAssignment:Wt,updateSpreadAssignment:ln,createEnumMember:Fo,updateEnumMember:na,createSourceFile:Ya,updateSourceFile:fw,createRedirectedSourceFile:ra,createBundle:xh,updateBundle:WC,createSyntheticExpression:y7,createSyntaxList:y1,createNotEmittedStatement:mp,createNotEmittedTypeElement:nv,createPartiallyEmittedExpression:Y3,updatePartiallyEmittedExpression:zE,createCommaListExpression:ZP,updateCommaListExpression:ase,createSyntheticReferenceExpression:Aq,updateSyntheticReferenceExpression:v7,cloneNode:eN,get createComma(){return _(28)},get createAssignment(){return _(64)},get createLogicalOr(){return _(57)},get createLogicalAnd(){return _(56)},get createBitwiseOr(){return _(52)},get createBitwiseXor(){return _(53)},get createBitwiseAnd(){return _(51)},get createStrictEquality(){return _(37)},get createStrictInequality(){return _(38)},get createEquality(){return _(35)},get createInequality(){return _(36)},get createLessThan(){return _(30)},get createLessThanEquals(){return _(33)},get createGreaterThan(){return _(32)},get createGreaterThanEquals(){return _(34)},get createLeftShift(){return _(48)},get createRightShift(){return _(49)},get createUnsignedRightShift(){return _(50)},get createAdd(){return _(40)},get createSubtract(){return _(41)},get createMultiply(){return _(42)},get createDivide(){return _(44)},get createModulo(){return _(45)},get createExponent(){return _(43)},get createPrefixPlus(){return f(40)},get createPrefixMinus(){return f(41)},get createPrefixIncrement(){return f(46)},get createPrefixDecrement(){return f(47)},get createBitwiseNot(){return f(55)},get createLogicalNot(){return f(54)},get createPostfixIncrement(){return y(46)},get createPostfixDecrement(){return y(47)},createImmediatelyInvokedFunctionExpression:sse,createImmediatelyInvokedArrowFunction:XP,createVoidZero:tN,createExportDefault:Iq,createExternalModuleExport:b7,createTypeCheck:Ua,createIsNotTypeCheck:HC,createMethodCall:ri,createGlobalMethodCall:YP,createFunctionBindCall:Pq,createFunctionCallCall:DM,createFunctionApplyCall:AM,createArraySliceCall:VQ,createArrayConcatCall:rN,createObjectDefinePropertyCall:cse,createObjectGetOwnPropertyDescriptorCall:wM,createReflectGetCall:jb,createReflectSetCall:WQ,createPropertyDescriptor:lse,createCallBinding:IM,createAssignmentTargetWrapper:WS,inlineExpressions:he,getInternalName:kt,getLocalName:ir,getExportName:Or,getDeclarationName:en,getNamespaceMemberName:_o,getExternalModuleOrNamespaceExportName:Mi,restoreOuterExpressions:Oq,restoreEnclosingLabel:hw,createUseStrictPrologue:La,copyPrologue:si,copyStandardPrologue:hu,copyCustomPrologue:Zl,ensureUseStrict:ll,liftToBlock:N0,mergeLexicalEnvironment:JE,replaceModifiers:VE,replaceDecoratorsAndModifiers:tT,replacePropertyName:KC};return X(Elt,P=>P(G)),G;function Z(P,q){if(P===void 0||P===j)P=[];else if(HI(P)){if(q===void 0||P.hasTrailingComma===q)return P.transformFlags===void 0&&Dlt(P),$.attachNodeArrayDebugInfo(P),P;let Tt=P.slice();return Tt.pos=P.pos,Tt.end=P.end,Tt.hasTrailingComma=q,Tt.transformFlags=P.transformFlags,$.attachNodeArrayDebugInfo(Tt),Tt}let oe=P.length,we=oe>=1&&oe<=4?P.slice():P;return we.pos=-1,we.end=-1,we.hasTrailingComma=!!q,we.transformFlags=0,Dlt(we),$.attachNodeArrayDebugInfo(we),we}function Q(P){return n.createBaseNode(P)}function re(P){let q=Q(P);return q.symbol=void 0,q.localSymbol=void 0,q}function ae(P,q){return P!==q&&(P.typeArguments=q.typeArguments),yi(P,q)}function _e(P,q=0){let oe=typeof P=="number"?P+"":P;$.assert(oe.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let we=re(9);return we.text=oe,we.numericLiteralFlags=q,q&384&&(we.transformFlags|=1024),we}function me(P){let q=It(10);return q.text=typeof P=="string"?P:fP(P)+"n",q.transformFlags|=32,q}function le(P,q){let oe=re(11);return oe.text=P,oe.singleQuote=q,oe}function Oe(P,q,oe){let we=le(P,q);return we.hasExtendedUnicodeEscape=oe,oe&&(we.transformFlags|=1024),we}function be(P){let q=le(g0(P),void 0);return q.textSourceNode=P,q}function ue(P){let q=It(14);return q.text=P,q}function De(P,q){switch(P){case 9:return _e(q,0);case 10:return me(q);case 11:return Oe(q,void 0);case 12:return pw(q,!1);case 13:return pw(q,!0);case 14:return ue(q);case 15:return ks(P,q,void 0,0)}}function Ce(P){let q=n.createBaseIdentifierNode(80);return q.escapedText=P,q.jsDoc=void 0,q.flowNode=void 0,q.symbol=void 0,q}function Ae(P,q,oe,we){let Tt=Ce(dp(P));return RH(Tt,{flags:q,id:yge,prefix:oe,suffix:we}),yge++,Tt}function Fe(P,q,oe){q===void 0&&P&&(q=kx(P)),q===80&&(q=void 0);let we=Ce(dp(P));return oe&&(we.flags|=256),we.escapedText==="await"&&(we.transformFlags|=67108864),we.flags&256&&(we.transformFlags|=1024),we}function Be(P,q,oe,we){let Tt=1;q&&(Tt|=8);let Fr=Ae("",Tt,oe,we);return P&&P(Fr),Fr}function de(P){let q=2;return P&&(q|=8),Ae("",q,void 0,void 0)}function ze(P,q=0,oe,we){return $.assert(!(q&7),"Argument out of range: flags"),$.assert((q&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Ae(P,3|q,oe,we)}function ut(P,q=0,oe,we){$.assert(!(q&7),"Argument out of range: flags");let Tt=P?Dx(P)?IA(!1,oe,P,we,Zi):`generated@${hl(P)}`:"";(oe||we)&&(q|=16);let Fr=Ae(Tt,4|q,oe,we);return Fr.original=P,Fr}function je(P){let q=n.createBasePrivateIdentifierNode(81);return q.escapedText=P,q.transformFlags|=16777216,q}function ve(P){return Ca(P,"#")||$.fail("First character of private identifier must be #: "+P),je(dp(P))}function Le(P,q,oe,we){let Tt=je(dp(P));return RH(Tt,{flags:q,id:yge,prefix:oe,suffix:we}),yge++,Tt}function Ve(P,q,oe){P&&!Ca(P,"#")&&$.fail("First character of private identifier must be #: "+P);let we=8|(P?3:1);return Le(P??"",we,q,oe)}function nt(P,q,oe){let we=Dx(P)?IA(!0,q,P,oe,Zi):`#generated@${hl(P)}`,Fr=Le(we,4|(q||oe?16:0),q,oe);return Fr.original=P,Fr}function It(P){return n.createBaseTokenNode(P)}function ke(P){$.assert(P>=0&&P<=166,"Invalid token"),$.assert(P<=15||P>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),$.assert(P<=9||P>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),$.assert(P!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let q=It(P),oe=0;switch(P){case 134:oe=384;break;case 160:oe=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:oe=1;break;case 108:oe=134218752,q.flowNode=void 0;break;case 126:oe=1024;break;case 129:oe=16777216;break;case 110:oe=16384,q.flowNode=void 0;break}return oe&&(q.transformFlags|=oe),q}function _t(){return ke(108)}function Se(){return ke(110)}function tt(){return ke(106)}function Qe(){return ke(112)}function We(){return ke(97)}function St(P){return ke(P)}function Kt(P){let q=[];return P&32&&q.push(St(95)),P&128&&q.push(St(138)),P&2048&&q.push(St(90)),P&4096&&q.push(St(87)),P&1&&q.push(St(125)),P&2&&q.push(St(123)),P&4&&q.push(St(124)),P&64&&q.push(St(128)),P&256&&q.push(St(126)),P&16&&q.push(St(164)),P&8&&q.push(St(148)),P&512&&q.push(St(129)),P&1024&&q.push(St(134)),P&8192&&q.push(St(103)),P&16384&&q.push(St(147)),q.length?q:void 0}function Sr(P,q){let oe=Q(167);return oe.left=P,oe.right=Sd(q),oe.transformFlags|=zi(oe.left)|PH(oe.right),oe.flowNode=void 0,oe}function nn(P,q,oe){return P.left!==q||P.right!==oe?yi(Sr(q,oe),P):P}function Nn(P){let q=Q(168);return q.expression=c().parenthesizeExpressionOfComputedPropertyName(P),q.transformFlags|=zi(q.expression)|1024|131072,q}function $t(P,q){return P.expression!==q?yi(Nn(q),P):P}function Dr(P,q,oe,we){let Tt=re(169);return Tt.modifiers=gl(P),Tt.name=Sd(q),Tt.constraint=oe,Tt.default=we,Tt.transformFlags=1,Tt.expression=void 0,Tt.jsDoc=void 0,Tt}function Qn(P,q,oe,we,Tt){return P.modifiers!==q||P.name!==oe||P.constraint!==we||P.default!==Tt?yi(Dr(q,oe,we,Tt),P):P}function Ko(P,q,oe,we,Tt,Fr){let ji=re(170);return ji.modifiers=gl(P),ji.dotDotDotToken=q,ji.name=Sd(oe),ji.questionToken=we,ji.type=Tt,ji.initializer=Om(Fr),pC(ji.name)?ji.transformFlags=1:ji.transformFlags=al(ji.modifiers)|zi(ji.dotDotDotToken)|hC(ji.name)|zi(ji.questionToken)|zi(ji.initializer)|(ji.questionToken??ji.type?1:0)|(ji.dotDotDotToken??ji.initializer?1024:0)|(TS(ji.modifiers)&31?8192:0),ji.jsDoc=void 0,ji}function is(P,q,oe,we,Tt,Fr,ji){return P.modifiers!==q||P.dotDotDotToken!==oe||P.name!==we||P.questionToken!==Tt||P.type!==Fr||P.initializer!==ji?yi(Ko(q,oe,we,Tt,Fr,ji),P):P}function sr(P){let q=Q(171);return q.expression=c().parenthesizeLeftSideOfAccess(P,!1),q.transformFlags|=zi(q.expression)|1|8192|33554432,q}function uo(P,q){return P.expression!==q?yi(sr(q),P):P}function Wa(P,q,oe,we){let Tt=re(172);return Tt.modifiers=gl(P),Tt.name=Sd(q),Tt.type=we,Tt.questionToken=oe,Tt.transformFlags=1,Tt.initializer=void 0,Tt.jsDoc=void 0,Tt}function oo(P,q,oe,we,Tt){return P.modifiers!==q||P.name!==oe||P.questionToken!==we||P.type!==Tt?Oi(Wa(q,oe,we,Tt),P):P}function Oi(P,q){return P!==q&&(P.initializer=q.initializer),yi(P,q)}function $o(P,q,oe,we,Tt){let Fr=re(173);Fr.modifiers=gl(P),Fr.name=Sd(q),Fr.questionToken=oe&&yC(oe)?oe:void 0,Fr.exclamationToken=oe&&MH(oe)?oe:void 0,Fr.type=we,Fr.initializer=Om(Tt);let ji=Fr.flags&33554432||TS(Fr.modifiers)&128;return Fr.transformFlags=al(Fr.modifiers)|hC(Fr.name)|zi(Fr.initializer)|(ji||Fr.questionToken||Fr.exclamationToken||Fr.type?1:0)|(dc(Fr.name)||TS(Fr.modifiers)&256&&Fr.initializer?8192:0)|16777216,Fr.jsDoc=void 0,Fr}function ft(P,q,oe,we,Tt,Fr){return P.modifiers!==q||P.name!==oe||P.questionToken!==(we!==void 0&&yC(we)?we:void 0)||P.exclamationToken!==(we!==void 0&&MH(we)?we:void 0)||P.type!==Tt||P.initializer!==Fr?yi($o(q,oe,we,Tt,Fr),P):P}function Ht(P,q,oe,we,Tt,Fr){let ji=re(174);return ji.modifiers=gl(P),ji.name=Sd(q),ji.questionToken=oe,ji.typeParameters=gl(we),ji.parameters=gl(Tt),ji.type=Fr,ji.transformFlags=1,ji.jsDoc=void 0,ji.locals=void 0,ji.nextContainer=void 0,ji.typeArguments=void 0,ji}function Wr(P,q,oe,we,Tt,Fr,ji){return P.modifiers!==q||P.name!==oe||P.questionToken!==we||P.typeParameters!==Tt||P.parameters!==Fr||P.type!==ji?ae(Ht(q,oe,we,Tt,Fr,ji),P):P}function ai(P,q,oe,we,Tt,Fr,ji,ds){let ju=re(175);if(ju.modifiers=gl(P),ju.asteriskToken=q,ju.name=Sd(oe),ju.questionToken=we,ju.exclamationToken=void 0,ju.typeParameters=gl(Tt),ju.parameters=Z(Fr),ju.type=ji,ju.body=ds,!ju.body)ju.transformFlags=1;else{let Sy=TS(ju.modifiers)&1024,QC=!!ju.asteriskToken,Rv=Sy&&QC;ju.transformFlags=al(ju.modifiers)|zi(ju.asteriskToken)|hC(ju.name)|zi(ju.questionToken)|al(ju.typeParameters)|al(ju.parameters)|zi(ju.type)|zi(ju.body)&-67108865|(Rv?128:Sy?256:QC?2048:0)|(ju.questionToken||ju.typeParameters||ju.type?1:0)|1024}return ju.typeArguments=void 0,ju.jsDoc=void 0,ju.locals=void 0,ju.nextContainer=void 0,ju.flowNode=void 0,ju.endFlowNode=void 0,ju.returnFlowNode=void 0,ju}function vo(P,q,oe,we,Tt,Fr,ji,ds,ju){return P.modifiers!==q||P.asteriskToken!==oe||P.name!==we||P.questionToken!==Tt||P.typeParameters!==Fr||P.parameters!==ji||P.type!==ds||P.body!==ju?Eo(ai(q,oe,we,Tt,Fr,ji,ds,ju),P):P}function Eo(P,q){return P!==q&&(P.exclamationToken=q.exclamationToken),yi(P,q)}function ya(P){let q=re(176);return q.body=P,q.transformFlags=zi(P)|16777216,q.modifiers=void 0,q.jsDoc=void 0,q.locals=void 0,q.nextContainer=void 0,q.endFlowNode=void 0,q.returnFlowNode=void 0,q}function Ls(P,q){return P.body!==q?yc(ya(q),P):P}function yc(P,q){return P!==q&&(P.modifiers=q.modifiers),yi(P,q)}function Cn(P,q,oe){let we=re(177);return we.modifiers=gl(P),we.parameters=Z(q),we.body=oe,we.body?we.transformFlags=al(we.modifiers)|al(we.parameters)|zi(we.body)&-67108865|1024:we.transformFlags=1,we.typeParameters=void 0,we.type=void 0,we.typeArguments=void 0,we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we.endFlowNode=void 0,we.returnFlowNode=void 0,we}function Es(P,q,oe,we){return P.modifiers!==q||P.parameters!==oe||P.body!==we?Dt(Cn(q,oe,we),P):P}function Dt(P,q){return P!==q&&(P.typeParameters=q.typeParameters,P.type=q.type),ae(P,q)}function ur(P,q,oe,we,Tt){let Fr=re(178);return Fr.modifiers=gl(P),Fr.name=Sd(q),Fr.parameters=Z(oe),Fr.type=we,Fr.body=Tt,Fr.body?Fr.transformFlags=al(Fr.modifiers)|hC(Fr.name)|al(Fr.parameters)|zi(Fr.type)|zi(Fr.body)&-67108865|(Fr.type?1:0):Fr.transformFlags=1,Fr.typeArguments=void 0,Fr.typeParameters=void 0,Fr.jsDoc=void 0,Fr.locals=void 0,Fr.nextContainer=void 0,Fr.flowNode=void 0,Fr.endFlowNode=void 0,Fr.returnFlowNode=void 0,Fr}function Ee(P,q,oe,we,Tt,Fr){return P.modifiers!==q||P.name!==oe||P.parameters!==we||P.type!==Tt||P.body!==Fr?Bt(ur(q,oe,we,Tt,Fr),P):P}function Bt(P,q){return P!==q&&(P.typeParameters=q.typeParameters),ae(P,q)}function ye(P,q,oe,we){let Tt=re(179);return Tt.modifiers=gl(P),Tt.name=Sd(q),Tt.parameters=Z(oe),Tt.body=we,Tt.body?Tt.transformFlags=al(Tt.modifiers)|hC(Tt.name)|al(Tt.parameters)|zi(Tt.body)&-67108865|(Tt.type?1:0):Tt.transformFlags=1,Tt.typeArguments=void 0,Tt.typeParameters=void 0,Tt.type=void 0,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.flowNode=void 0,Tt.endFlowNode=void 0,Tt.returnFlowNode=void 0,Tt}function et(P,q,oe,we,Tt){return P.modifiers!==q||P.name!==oe||P.parameters!==we||P.body!==Tt?Ct(ye(q,oe,we,Tt),P):P}function Ct(P,q){return P!==q&&(P.typeParameters=q.typeParameters,P.type=q.type),ae(P,q)}function Ot(P,q,oe){let we=re(180);return we.typeParameters=gl(P),we.parameters=gl(q),we.type=oe,we.transformFlags=1,we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we.typeArguments=void 0,we}function ar(P,q,oe,we){return P.typeParameters!==q||P.parameters!==oe||P.type!==we?ae(Ot(q,oe,we),P):P}function at(P,q,oe){let we=re(181);return we.typeParameters=gl(P),we.parameters=gl(q),we.type=oe,we.transformFlags=1,we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we.typeArguments=void 0,we}function Zt(P,q,oe,we){return P.typeParameters!==q||P.parameters!==oe||P.type!==we?ae(at(q,oe,we),P):P}function Qt(P,q,oe){let we=re(182);return we.modifiers=gl(P),we.parameters=gl(q),we.type=oe,we.transformFlags=1,we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we.typeArguments=void 0,we}function pr(P,q,oe,we){return P.parameters!==oe||P.type!==we||P.modifiers!==q?ae(Qt(q,oe,we),P):P}function Et(P,q){let oe=Q(205);return oe.type=P,oe.literal=q,oe.transformFlags=1,oe}function xr(P,q,oe){return P.type!==q||P.literal!==oe?yi(Et(q,oe),P):P}function gi(P){return ke(P)}function Ye(P,q,oe){let we=Q(183);return we.assertsModifier=P,we.parameterName=Sd(q),we.type=oe,we.transformFlags=1,we}function er(P,q,oe,we){return P.assertsModifier!==q||P.parameterName!==oe||P.type!==we?yi(Ye(q,oe,we),P):P}function Ne(P,q){let oe=Q(184);return oe.typeName=Sd(P),oe.typeArguments=q&&c().parenthesizeTypeArguments(Z(q)),oe.transformFlags=1,oe}function Y(P,q,oe){return P.typeName!==q||P.typeArguments!==oe?yi(Ne(q,oe),P):P}function ot(P,q,oe){let we=re(185);return we.typeParameters=gl(P),we.parameters=gl(q),we.type=oe,we.transformFlags=1,we.modifiers=void 0,we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we.typeArguments=void 0,we}function pe(P,q,oe,we){return P.typeParameters!==q||P.parameters!==oe||P.type!==we?Gt(ot(q,oe,we),P):P}function Gt(P,q){return P!==q&&(P.modifiers=q.modifiers),ae(P,q)}function mr(...P){return P.length===4?Ge(...P):P.length===3?Mt(...P):$.fail("Incorrect number of arguments specified.")}function Ge(P,q,oe,we){let Tt=re(186);return Tt.modifiers=gl(P),Tt.typeParameters=gl(q),Tt.parameters=gl(oe),Tt.type=we,Tt.transformFlags=1,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.typeArguments=void 0,Tt}function Mt(P,q,oe){return Ge(void 0,P,q,oe)}function Ir(...P){return P.length===5?ii(...P):P.length===4?Rn(...P):$.fail("Incorrect number of arguments specified.")}function ii(P,q,oe,we,Tt){return P.modifiers!==q||P.typeParameters!==oe||P.parameters!==we||P.type!==Tt?ae(mr(q,oe,we,Tt),P):P}function Rn(P,q,oe,we){return ii(P,P.modifiers,q,oe,we)}function zn(P,q){let oe=Q(187);return oe.exprName=P,oe.typeArguments=q&&c().parenthesizeTypeArguments(q),oe.transformFlags=1,oe}function Rt(P,q,oe){return P.exprName!==q||P.typeArguments!==oe?yi(zn(q,oe),P):P}function rr(P){let q=re(188);return q.members=Z(P),q.transformFlags=1,q}function _r(P,q){return P.members!==q?yi(rr(q),P):P}function wr(P){let q=Q(189);return q.elementType=c().parenthesizeNonArrayTypeOfPostfixType(P),q.transformFlags=1,q}function pn(P,q){return P.elementType!==q?yi(wr(q),P):P}function tn(P){let q=Q(190);return q.elements=Z(c().parenthesizeElementTypesOfTupleType(P)),q.transformFlags=1,q}function lr(P,q){return P.elements!==q?yi(tn(q),P):P}function cn(P,q,oe,we){let Tt=re(203);return Tt.dotDotDotToken=P,Tt.name=q,Tt.questionToken=oe,Tt.type=we,Tt.transformFlags=1,Tt.jsDoc=void 0,Tt}function gn(P,q,oe,we,Tt){return P.dotDotDotToken!==q||P.name!==oe||P.questionToken!==we||P.type!==Tt?yi(cn(q,oe,we,Tt),P):P}function bn(P){let q=Q(191);return q.type=c().parenthesizeTypeOfOptionalType(P),q.transformFlags=1,q}function $r(P,q){return P.type!==q?yi(bn(q),P):P}function Uo(P){let q=Q(192);return q.type=P,q.transformFlags=1,q}function Ys(P,q){return P.type!==q?yi(Uo(q),P):P}function ec(P,q,oe){let we=Q(P);return we.types=G.createNodeArray(oe(q)),we.transformFlags=1,we}function Ss(P,q,oe){return P.types!==q?yi(ec(P.kind,q,oe),P):P}function Mp(P){return ec(193,P,c().parenthesizeConstituentTypesOfUnionType)}function Cp(P,q){return Ss(P,q,c().parenthesizeConstituentTypesOfUnionType)}function uu(P){return ec(194,P,c().parenthesizeConstituentTypesOfIntersectionType)}function $a(P,q){return Ss(P,q,c().parenthesizeConstituentTypesOfIntersectionType)}function bs(P,q,oe,we){let Tt=Q(195);return Tt.checkType=c().parenthesizeCheckTypeOfConditionalType(P),Tt.extendsType=c().parenthesizeExtendsTypeOfConditionalType(q),Tt.trueType=oe,Tt.falseType=we,Tt.transformFlags=1,Tt.locals=void 0,Tt.nextContainer=void 0,Tt}function V_(P,q,oe,we,Tt){return P.checkType!==q||P.extendsType!==oe||P.trueType!==we||P.falseType!==Tt?yi(bs(q,oe,we,Tt),P):P}function Nu(P){let q=Q(196);return q.typeParameter=P,q.transformFlags=1,q}function kc(P,q){return P.typeParameter!==q?yi(Nu(q),P):P}function o_(P,q){let oe=Q(204);return oe.head=P,oe.templateSpans=Z(q),oe.transformFlags=1,oe}function Gy(P,q,oe){return P.head!==q||P.templateSpans!==oe?yi(o_(q,oe),P):P}function _s(P,q,oe,we,Tt=!1){let Fr=Q(206);return Fr.argument=P,Fr.attributes=q,Fr.assertions&&Fr.assertions.assertClause&&Fr.attributes&&(Fr.assertions.assertClause=Fr.attributes),Fr.qualifier=oe,Fr.typeArguments=we&&c().parenthesizeTypeArguments(we),Fr.isTypeOf=Tt,Fr.transformFlags=1,Fr}function sc(P,q,oe,we,Tt,Fr=P.isTypeOf){return P.argument!==q||P.attributes!==oe||P.qualifier!==we||P.typeArguments!==Tt||P.isTypeOf!==Fr?yi(_s(q,oe,we,Tt,Fr),P):P}function sl(P){let q=Q(197);return q.type=P,q.transformFlags=1,q}function Yc(P,q){return P.type!==q?yi(sl(q),P):P}function Ar(){let P=Q(198);return P.transformFlags=1,P}function Ql(P,q){let oe=Q(199);return oe.operator=P,oe.type=P===148?c().parenthesizeOperandOfReadonlyTypeOperator(q):c().parenthesizeOperandOfTypeOperator(q),oe.transformFlags=1,oe}function Gp(P,q){return P.type!==q?yi(Ql(P.operator,q),P):P}function N_(P,q){let oe=Q(200);return oe.objectType=c().parenthesizeNonArrayTypeOfPostfixType(P),oe.indexType=q,oe.transformFlags=1,oe}function lf(P,q,oe){return P.objectType!==q||P.indexType!==oe?yi(N_(q,oe),P):P}function Yu(P,q,oe,we,Tt,Fr){let ji=re(201);return ji.readonlyToken=P,ji.typeParameter=q,ji.nameType=oe,ji.questionToken=we,ji.type=Tt,ji.members=Fr&&Z(Fr),ji.transformFlags=1,ji.locals=void 0,ji.nextContainer=void 0,ji}function Hp(P,q,oe,we,Tt,Fr,ji){return P.readonlyToken!==q||P.typeParameter!==oe||P.nameType!==we||P.questionToken!==Tt||P.type!==Fr||P.members!==ji?yi(Yu(q,oe,we,Tt,Fr,ji),P):P}function H(P){let q=Q(202);return q.literal=P,q.transformFlags=1,q}function st(P,q){return P.literal!==q?yi(H(q),P):P}function zt(P){let q=Q(207);return q.elements=Z(P),q.transformFlags|=al(q.elements)|1024|524288,q.transformFlags&32768&&(q.transformFlags|=65664),q}function Er(P,q){return P.elements!==q?yi(zt(q),P):P}function jn(P){let q=Q(208);return q.elements=Z(P),q.transformFlags|=al(q.elements)|1024|524288,q}function So(P,q){return P.elements!==q?yi(jn(q),P):P}function Di(P,q,oe,we){let Tt=re(209);return Tt.dotDotDotToken=P,Tt.propertyName=Sd(q),Tt.name=Sd(oe),Tt.initializer=Om(we),Tt.transformFlags|=zi(Tt.dotDotDotToken)|hC(Tt.propertyName)|hC(Tt.name)|zi(Tt.initializer)|(Tt.dotDotDotToken?32768:0)|1024,Tt.flowNode=void 0,Tt}function On(P,q,oe,we,Tt){return P.propertyName!==oe||P.dotDotDotToken!==q||P.name!==we||P.initializer!==Tt?yi(Di(q,oe,we,Tt),P):P}function ua(P,q){let oe=Q(210),we=P&&Yr(P),Tt=Z(P,we&&Id(we)?!0:void 0);return oe.elements=c().parenthesizeExpressionsOfCommaDelimitedList(Tt),oe.multiLine=q,oe.transformFlags|=al(oe.elements),oe}function va(P,q){return P.elements!==q?yi(ua(q,P.multiLine),P):P}function Bl(P,q){let oe=re(211);return oe.properties=Z(P),oe.multiLine=q,oe.transformFlags|=al(oe.properties),oe.jsDoc=void 0,oe}function xc(P,q){return P.properties!==q?yi(Bl(q,P.multiLine),P):P}function ep(P,q,oe){let we=re(212);return we.expression=P,we.questionDotToken=q,we.name=oe,we.transformFlags=zi(we.expression)|zi(we.questionDotToken)|(ct(we.name)?PH(we.name):zi(we.name)|536870912),we.jsDoc=void 0,we.flowNode=void 0,we}function W_(P,q){let oe=ep(c().parenthesizeLeftSideOfAccess(P,!1),void 0,Sd(q));return az(P)&&(oe.transformFlags|=384),oe}function g_(P,q,oe){return jte(P)?a_(P,q,P.questionDotToken,Ba(oe,ct)):P.expression!==q||P.name!==oe?yi(W_(q,oe),P):P}function xu(P,q,oe){let we=ep(c().parenthesizeLeftSideOfAccess(P,!0),q,Sd(oe));return we.flags|=64,we.transformFlags|=32,we}function a_(P,q,oe,we){return $.assert(!!(P.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),P.expression!==q||P.questionDotToken!==oe||P.name!==we?yi(xu(q,oe,we),P):P}function Gg(P,q,oe){let we=re(213);return we.expression=P,we.questionDotToken=q,we.argumentExpression=oe,we.transformFlags|=zi(we.expression)|zi(we.questionDotToken)|zi(we.argumentExpression),we.jsDoc=void 0,we.flowNode=void 0,we}function Wf(P,q){let oe=Gg(c().parenthesizeLeftSideOfAccess(P,!1),void 0,WE(q));return az(P)&&(oe.transformFlags|=384),oe}function yy(P,q,oe){return Yfe(P)?rt(P,q,P.questionDotToken,oe):P.expression!==q||P.argumentExpression!==oe?yi(Wf(q,oe),P):P}function Wh(P,q,oe){let we=Gg(c().parenthesizeLeftSideOfAccess(P,!0),q,WE(oe));return we.flags|=64,we.transformFlags|=32,we}function rt(P,q,oe,we){return $.assert(!!(P.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),P.expression!==q||P.questionDotToken!==oe||P.argumentExpression!==we?yi(Wh(q,oe,we),P):P}function br(P,q,oe,we){let Tt=re(214);return Tt.expression=P,Tt.questionDotToken=q,Tt.typeArguments=oe,Tt.arguments=we,Tt.transformFlags|=zi(Tt.expression)|zi(Tt.questionDotToken)|al(Tt.typeArguments)|al(Tt.arguments),Tt.typeArguments&&(Tt.transformFlags|=1),_g(Tt.expression)&&(Tt.transformFlags|=16384),Tt}function Vn(P,q,oe){let we=br(c().parenthesizeLeftSideOfAccess(P,!1),void 0,gl(q),c().parenthesizeExpressionsOfCommaDelimitedList(Z(oe)));return sz(we.expression)&&(we.transformFlags|=8388608),we}function Ga(P,q,oe,we){return O4(P)?tl(P,q,P.questionDotToken,oe,we):P.expression!==q||P.typeArguments!==oe||P.arguments!==we?yi(Vn(q,oe,we),P):P}function el(P,q,oe,we){let Tt=br(c().parenthesizeLeftSideOfAccess(P,!0),q,gl(oe),c().parenthesizeExpressionsOfCommaDelimitedList(Z(we)));return Tt.flags|=64,Tt.transformFlags|=32,Tt}function tl(P,q,oe,we,Tt){return $.assert(!!(P.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),P.expression!==q||P.questionDotToken!==oe||P.typeArguments!==we||P.arguments!==Tt?yi(el(q,oe,we,Tt),P):P}function Uc(P,q,oe){let we=re(215);return we.expression=c().parenthesizeExpressionOfNew(P),we.typeArguments=gl(q),we.arguments=oe?c().parenthesizeExpressionsOfCommaDelimitedList(oe):void 0,we.transformFlags|=zi(we.expression)|al(we.typeArguments)|al(we.arguments)|32,we.typeArguments&&(we.transformFlags|=1),we}function nd(P,q,oe,we){return P.expression!==q||P.typeArguments!==oe||P.arguments!==we?yi(Uc(q,oe,we),P):P}function Mu(P,q,oe){let we=Q(216);return we.tag=c().parenthesizeLeftSideOfAccess(P,!1),we.typeArguments=gl(q),we.template=oe,we.transformFlags|=zi(we.tag)|al(we.typeArguments)|zi(we.template)|1024,we.typeArguments&&(we.transformFlags|=1),che(we.template)&&(we.transformFlags|=128),we}function Dp(P,q,oe,we){return P.tag!==q||P.typeArguments!==oe||P.template!==we?yi(Mu(q,oe,we),P):P}function Kp(P,q){let oe=Q(217);return oe.expression=c().parenthesizeOperandOfPrefixUnary(q),oe.type=P,oe.transformFlags|=zi(oe.expression)|zi(oe.type)|1,oe}function vy(P,q,oe){return P.type!==q||P.expression!==oe?yi(Kp(q,oe),P):P}function If(P){let q=Q(218);return q.expression=P,q.transformFlags=zi(q.expression),q.jsDoc=void 0,q}function uf(P,q){return P.expression!==q?yi(If(q),P):P}function Hg(P,q,oe,we,Tt,Fr,ji){let ds=re(219);ds.modifiers=gl(P),ds.asteriskToken=q,ds.name=Sd(oe),ds.typeParameters=gl(we),ds.parameters=Z(Tt),ds.type=Fr,ds.body=ji;let ju=TS(ds.modifiers)&1024,Sy=!!ds.asteriskToken,QC=ju&&Sy;return ds.transformFlags=al(ds.modifiers)|zi(ds.asteriskToken)|hC(ds.name)|al(ds.typeParameters)|al(ds.parameters)|zi(ds.type)|zi(ds.body)&-67108865|(QC?128:ju?256:Sy?2048:0)|(ds.typeParameters||ds.type?1:0)|4194304,ds.typeArguments=void 0,ds.jsDoc=void 0,ds.locals=void 0,ds.nextContainer=void 0,ds.flowNode=void 0,ds.endFlowNode=void 0,ds.returnFlowNode=void 0,ds}function Ym(P,q,oe,we,Tt,Fr,ji,ds){return P.name!==we||P.modifiers!==q||P.asteriskToken!==oe||P.typeParameters!==Tt||P.parameters!==Fr||P.type!==ji||P.body!==ds?ae(Hg(q,oe,we,Tt,Fr,ji,ds),P):P}function D0(P,q,oe,we,Tt,Fr){let ji=re(220);ji.modifiers=gl(P),ji.typeParameters=gl(q),ji.parameters=Z(oe),ji.type=we,ji.equalsGreaterThanToken=Tt??ke(39),ji.body=c().parenthesizeConciseBodyOfArrowFunction(Fr);let ds=TS(ji.modifiers)&1024;return ji.transformFlags=al(ji.modifiers)|al(ji.typeParameters)|al(ji.parameters)|zi(ji.type)|zi(ji.equalsGreaterThanToken)|zi(ji.body)&-67108865|(ji.typeParameters||ji.type?1:0)|(ds?16640:0)|1024,ji.typeArguments=void 0,ji.jsDoc=void 0,ji.locals=void 0,ji.nextContainer=void 0,ji.flowNode=void 0,ji.endFlowNode=void 0,ji.returnFlowNode=void 0,ji}function Pb(P,q,oe,we,Tt,Fr,ji){return P.modifiers!==q||P.typeParameters!==oe||P.parameters!==we||P.type!==Tt||P.equalsGreaterThanToken!==Fr||P.body!==ji?ae(D0(q,oe,we,Tt,Fr,ji),P):P}function Wx(P){let q=Q(221);return q.expression=c().parenthesizeOperandOfPrefixUnary(P),q.transformFlags|=zi(q.expression),q}function Gx(P,q){return P.expression!==q?yi(Wx(q),P):P}function Gh(P){let q=Q(222);return q.expression=c().parenthesizeOperandOfPrefixUnary(P),q.transformFlags|=zi(q.expression),q}function Nd(P,q){return P.expression!==q?yi(Gh(q),P):P}function Iv(P){let q=Q(223);return q.expression=c().parenthesizeOperandOfPrefixUnary(P),q.transformFlags|=zi(q.expression),q}function Hy(P,q){return P.expression!==q?yi(Iv(q),P):P}function US(P){let q=Q(224);return q.expression=c().parenthesizeOperandOfPrefixUnary(P),q.transformFlags|=zi(q.expression)|256|128|2097152,q}function xe(P,q){return P.expression!==q?yi(US(q),P):P}function Ft(P,q){let oe=Q(225);return oe.operator=P,oe.operand=c().parenthesizeOperandOfPrefixUnary(q),oe.transformFlags|=zi(oe.operand),(P===46||P===47)&&ct(oe.operand)&&!ap(oe.operand)&&!HT(oe.operand)&&(oe.transformFlags|=268435456),oe}function Nr(P,q){return P.operand!==q?yi(Ft(P.operator,q),P):P}function Mr(P,q){let oe=Q(226);return oe.operator=q,oe.operand=c().parenthesizeOperandOfPostfixUnary(P),oe.transformFlags|=zi(oe.operand),ct(oe.operand)&&!ap(oe.operand)&&!HT(oe.operand)&&(oe.transformFlags|=268435456),oe}function wn(P,q){return P.operand!==q?yi(Mr(q,P.operator),P):P}function Yn(P,q,oe){let we=re(227),Tt=x7(q),Fr=Tt.kind;return we.left=c().parenthesizeLeftSideOfBinary(Fr,P),we.operatorToken=Tt,we.right=c().parenthesizeRightSideOfBinary(Fr,we.left,oe),we.transformFlags|=zi(we.left)|zi(we.operatorToken)|zi(we.right),Fr===61?we.transformFlags|=32:Fr===64?Lc(we.left)?we.transformFlags|=5248|fo(we.left):qf(we.left)&&(we.transformFlags|=5120|fo(we.left)):Fr===43||Fr===68?we.transformFlags|=512:OU(Fr)&&(we.transformFlags|=16),Fr===103&&Aa(we.left)&&(we.transformFlags|=536870912),we.jsDoc=void 0,we}function fo(P){return ZH(P)?65536:0}function Mo(P,q,oe,we){return P.left!==q||P.operatorToken!==oe||P.right!==we?yi(Yn(q,oe,we),P):P}function Ea(P,q,oe,we,Tt){let Fr=Q(228);return Fr.condition=c().parenthesizeConditionOfConditionalExpression(P),Fr.questionToken=q??ke(58),Fr.whenTrue=c().parenthesizeBranchOfConditionalExpression(oe),Fr.colonToken=we??ke(59),Fr.whenFalse=c().parenthesizeBranchOfConditionalExpression(Tt),Fr.transformFlags|=zi(Fr.condition)|zi(Fr.questionToken)|zi(Fr.whenTrue)|zi(Fr.colonToken)|zi(Fr.whenFalse),Fr.flowNodeWhenFalse=void 0,Fr.flowNodeWhenTrue=void 0,Fr}function ee(P,q,oe,we,Tt,Fr){return P.condition!==q||P.questionToken!==oe||P.whenTrue!==we||P.colonToken!==Tt||P.whenFalse!==Fr?yi(Ea(q,oe,we,Tt,Fr),P):P}function it(P,q){let oe=Q(229);return oe.head=P,oe.templateSpans=Z(q),oe.transformFlags|=zi(oe.head)|al(oe.templateSpans)|1024,oe}function cr(P,q,oe){return P.head!==q||P.templateSpans!==oe?yi(it(q,oe),P):P}function In(P,q,oe,we=0){$.assert(!(we&-7177),"Unsupported template flags.");let Tt;if(oe!==void 0&&oe!==q&&(Tt=xnr(P,oe),typeof Tt=="object"))return $.fail("Invalid raw text");if(q===void 0){if(Tt===void 0)return $.fail("Arguments 'text' and 'rawText' may not both be undefined.");q=Tt}else Tt!==void 0&&$.assert(q===Tt,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return q}function Ka(P){let q=1024;return P&&(q|=128),q}function Ws(P,q,oe,we){let Tt=It(P);return Tt.text=q,Tt.rawText=oe,Tt.templateFlags=we&7176,Tt.transformFlags=Ka(Tt.templateFlags),Tt}function Xa(P,q,oe,we){let Tt=re(P);return Tt.text=q,Tt.rawText=oe,Tt.templateFlags=we&7176,Tt.transformFlags=Ka(Tt.templateFlags),Tt}function ks(P,q,oe,we){return P===15?Xa(P,q,oe,we):Ws(P,q,oe,we)}function cp(P,q,oe){return P=In(16,P,q,oe),ks(16,P,q,oe)}function Cc(P,q,oe){return P=In(16,P,q,oe),ks(17,P,q,oe)}function pf(P,q,oe){return P=In(16,P,q,oe),ks(18,P,q,oe)}function Kg(P,q,oe){return P=In(16,P,q,oe),Xa(15,P,q,oe)}function Ky(P,q){$.assert(!P||!!q,"A `YieldExpression` with an asteriskToken must have an expression.");let oe=Q(230);return oe.expression=q&&c().parenthesizeExpressionForDisallowedComma(q),oe.asteriskToken=P,oe.transformFlags|=zi(oe.expression)|zi(oe.asteriskToken)|1024|128|1048576,oe}function A0(P,q,oe){return P.expression!==oe||P.asteriskToken!==q?yi(Ky(q,oe),P):P}function r2(P){let q=Q(231);return q.expression=c().parenthesizeExpressionForDisallowedComma(P),q.transformFlags|=zi(q.expression)|1024|32768,q}function PE(P,q){return P.expression!==q?yi(r2(q),P):P}function vh(P,q,oe,we,Tt){let Fr=re(232);return Fr.modifiers=gl(P),Fr.name=Sd(q),Fr.typeParameters=gl(oe),Fr.heritageClauses=gl(we),Fr.members=Z(Tt),Fr.transformFlags|=al(Fr.modifiers)|hC(Fr.name)|al(Fr.typeParameters)|al(Fr.heritageClauses)|al(Fr.members)|(Fr.typeParameters?1:0)|1024,Fr.jsDoc=void 0,Fr}function Nb(P,q,oe,we,Tt,Fr){return P.modifiers!==q||P.name!==oe||P.typeParameters!==we||P.heritageClauses!==Tt||P.members!==Fr?yi(vh(q,oe,we,Tt,Fr),P):P}function Pv(){return Q(233)}function d1(P,q){let oe=Q(234);return oe.expression=c().parenthesizeLeftSideOfAccess(P,!1),oe.typeArguments=q&&c().parenthesizeTypeArguments(q),oe.transformFlags|=zi(oe.expression)|al(oe.typeArguments)|1024,oe}function OC(P,q,oe){return P.expression!==q||P.typeArguments!==oe?yi(d1(q,oe),P):P}function dt(P,q){let oe=Q(235);return oe.expression=P,oe.type=q,oe.transformFlags|=zi(oe.expression)|zi(oe.type)|1,oe}function Lt(P,q,oe){return P.expression!==q||P.type!==oe?yi(dt(q,oe),P):P}function Tr(P){let q=Q(236);return q.expression=c().parenthesizeLeftSideOfAccess(P,!1),q.transformFlags|=zi(q.expression)|1,q}function dn(P,q){return $te(P)?oi(P,q):P.expression!==q?yi(Tr(q),P):P}function qn(P,q){let oe=Q(239);return oe.expression=P,oe.type=q,oe.transformFlags|=zi(oe.expression)|zi(oe.type)|1,oe}function Fi(P,q,oe){return P.expression!==q||P.type!==oe?yi(qn(q,oe),P):P}function $n(P){let q=Q(236);return q.flags|=64,q.expression=c().parenthesizeLeftSideOfAccess(P,!0),q.transformFlags|=zi(q.expression)|1,q}function oi(P,q){return $.assert(!!(P.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),P.expression!==q?yi($n(q),P):P}function sa(P,q){let oe=Q(237);switch(oe.keywordToken=P,oe.name=q,oe.transformFlags|=zi(oe.name),P){case 105:oe.transformFlags|=1024;break;case 102:oe.transformFlags|=32;break;default:return $.assertNever(P)}return oe.flowNode=void 0,oe}function os(P,q){return P.name!==q?yi(sa(P.keywordToken,q),P):P}function Po(P,q){let oe=Q(240);return oe.expression=P,oe.literal=q,oe.transformFlags|=zi(oe.expression)|zi(oe.literal)|1024,oe}function as(P,q,oe){return P.expression!==q||P.literal!==oe?yi(Po(q,oe),P):P}function ka(){let P=Q(241);return P.transformFlags|=1024,P}function lp(P,q){let oe=Q(242);return oe.statements=Z(P),oe.multiLine=q,oe.transformFlags|=al(oe.statements),oe.jsDoc=void 0,oe.locals=void 0,oe.nextContainer=void 0,oe}function Hh(P,q){return P.statements!==q?yi(lp(q,P.multiLine),P):P}function f1(P,q){let oe=Q(244);return oe.modifiers=gl(P),oe.declarationList=Zn(q)?ZA(q):q,oe.transformFlags|=al(oe.modifiers)|zi(oe.declarationList),TS(oe.modifiers)&128&&(oe.transformFlags=1),oe.jsDoc=void 0,oe.flowNode=void 0,oe}function Pf(P,q,oe){return P.modifiers!==q||P.declarationList!==oe?yi(f1(q,oe),P):P}function m1(){let P=Q(243);return P.jsDoc=void 0,P}function Qg(P){let q=Q(245);return q.expression=c().parenthesizeExpressionOfExpressionStatement(P),q.transformFlags|=zi(q.expression),q.jsDoc=void 0,q.flowNode=void 0,q}function GA(P,q){return P.expression!==q?yi(Qg(q),P):P}function zS(P,q,oe){let we=Q(246);return we.expression=P,we.thenStatement=rT(q),we.elseStatement=rT(oe),we.transformFlags|=zi(we.expression)|zi(we.thenStatement)|zi(we.elseStatement),we.jsDoc=void 0,we.flowNode=void 0,we}function Ob(P,q,oe,we){return P.expression!==q||P.thenStatement!==oe||P.elseStatement!==we?yi(zS(q,oe,we),P):P}function HA(P,q){let oe=Q(247);return oe.statement=rT(P),oe.expression=q,oe.transformFlags|=zi(oe.statement)|zi(oe.expression),oe.jsDoc=void 0,oe.flowNode=void 0,oe}function Fb(P,q,oe){return P.statement!==q||P.expression!==oe?yi(HA(q,oe),P):P}function hM(P,q){let oe=Q(248);return oe.expression=P,oe.statement=rT(q),oe.transformFlags|=zi(oe.expression)|zi(oe.statement),oe.jsDoc=void 0,oe.flowNode=void 0,oe}function xq(P,q,oe){return P.expression!==q||P.statement!==oe?yi(hM(q,oe),P):P}function gM(P,q,oe,we){let Tt=Q(249);return Tt.initializer=P,Tt.condition=q,Tt.incrementor=oe,Tt.statement=rT(we),Tt.transformFlags|=zi(Tt.initializer)|zi(Tt.condition)|zi(Tt.incrementor)|zi(Tt.statement),Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.flowNode=void 0,Tt}function Hx(P,q,oe,we,Tt){return P.initializer!==q||P.condition!==oe||P.incrementor!==we||P.statement!==Tt?yi(gM(q,oe,we,Tt),P):P}function KA(P,q,oe){let we=Q(250);return we.initializer=P,we.expression=q,we.statement=rT(oe),we.transformFlags|=zi(we.initializer)|zi(we.expression)|zi(we.statement),we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we.flowNode=void 0,we}function P3(P,q,oe,we){return P.initializer!==q||P.expression!==oe||P.statement!==we?yi(KA(q,oe,we),P):P}function NE(P,q,oe,we){let Tt=Q(251);return Tt.awaitModifier=P,Tt.initializer=q,Tt.expression=c().parenthesizeExpressionForDisallowedComma(oe),Tt.statement=rT(we),Tt.transformFlags|=zi(Tt.awaitModifier)|zi(Tt.initializer)|zi(Tt.expression)|zi(Tt.statement)|1024,P&&(Tt.transformFlags|=128),Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.flowNode=void 0,Tt}function N3(P,q,oe,we,Tt){return P.awaitModifier!==q||P.initializer!==oe||P.expression!==we||P.statement!==Tt?yi(NE(q,oe,we,Tt),P):P}function e7(P){let q=Q(252);return q.label=Sd(P),q.transformFlags|=zi(q.label)|4194304,q.jsDoc=void 0,q.flowNode=void 0,q}function Tq(P,q){return P.label!==q?yi(e7(q),P):P}function O3(P){let q=Q(253);return q.label=Sd(P),q.transformFlags|=zi(q.label)|4194304,q.jsDoc=void 0,q.flowNode=void 0,q}function t7(P,q){return P.label!==q?yi(O3(q),P):P}function QA(P){let q=Q(254);return q.expression=P,q.transformFlags|=zi(q.expression)|128|4194304,q.jsDoc=void 0,q.flowNode=void 0,q}function yM(P,q){return P.expression!==q?yi(QA(q),P):P}function F3(P,q){let oe=Q(255);return oe.expression=P,oe.statement=rT(q),oe.transformFlags|=zi(oe.expression)|zi(oe.statement),oe.jsDoc=void 0,oe.flowNode=void 0,oe}function r7(P,q,oe){return P.expression!==q||P.statement!==oe?yi(F3(q,oe),P):P}function UP(P,q){let oe=Q(256);return oe.expression=c().parenthesizeExpressionForDisallowedComma(P),oe.caseBlock=q,oe.transformFlags|=zi(oe.expression)|zi(oe.caseBlock),oe.jsDoc=void 0,oe.flowNode=void 0,oe.possiblyExhaustive=!1,oe}function FC(P,q,oe){return P.expression!==q||P.caseBlock!==oe?yi(UP(q,oe),P):P}function n7(P,q){let oe=Q(257);return oe.label=Sd(P),oe.statement=rT(q),oe.transformFlags|=zi(oe.label)|zi(oe.statement),oe.jsDoc=void 0,oe.flowNode=void 0,oe}function i7(P,q,oe){return P.label!==q||P.statement!==oe?yi(n7(q,oe),P):P}function zP(P){let q=Q(258);return q.expression=P,q.transformFlags|=zi(q.expression),q.jsDoc=void 0,q.flowNode=void 0,q}function RC(P,q){return P.expression!==q?yi(zP(q),P):P}function OE(P,q,oe){let we=Q(259);return we.tryBlock=P,we.catchClause=q,we.finallyBlock=oe,we.transformFlags|=zi(we.tryBlock)|zi(we.catchClause)|zi(we.finallyBlock),we.jsDoc=void 0,we.flowNode=void 0,we}function n2(P,q,oe,we){return P.tryBlock!==q||P.catchClause!==oe||P.finallyBlock!==we?yi(OE(q,oe,we),P):P}function i2(){let P=Q(260);return P.jsDoc=void 0,P.flowNode=void 0,P}function o2(P,q,oe,we){let Tt=re(261);return Tt.name=Sd(P),Tt.exclamationToken=q,Tt.type=oe,Tt.initializer=Om(we),Tt.transformFlags|=hC(Tt.name)|zi(Tt.initializer)|(Tt.exclamationToken??Tt.type?1:0),Tt.jsDoc=void 0,Tt}function LC(P,q,oe,we,Tt){return P.name!==q||P.type!==we||P.exclamationToken!==oe||P.initializer!==Tt?yi(o2(q,oe,we,Tt),P):P}function ZA(P,q=0){let oe=Q(262);return oe.flags|=q&7,oe.declarations=Z(P),oe.transformFlags|=al(oe.declarations)|4194304,q&7&&(oe.transformFlags|=263168),q&4&&(oe.transformFlags|=4),oe}function R3(P,q){return P.declarations!==q?yi(ZA(q,P.flags),P):P}function XA(P,q,oe,we,Tt,Fr,ji){let ds=re(263);if(ds.modifiers=gl(P),ds.asteriskToken=q,ds.name=Sd(oe),ds.typeParameters=gl(we),ds.parameters=Z(Tt),ds.type=Fr,ds.body=ji,!ds.body||TS(ds.modifiers)&128)ds.transformFlags=1;else{let ju=TS(ds.modifiers)&1024,Sy=!!ds.asteriskToken,QC=ju&&Sy;ds.transformFlags=al(ds.modifiers)|zi(ds.asteriskToken)|hC(ds.name)|al(ds.typeParameters)|al(ds.parameters)|zi(ds.type)|zi(ds.body)&-67108865|(QC?128:ju?256:Sy?2048:0)|(ds.typeParameters||ds.type?1:0)|4194304}return ds.typeArguments=void 0,ds.jsDoc=void 0,ds.locals=void 0,ds.nextContainer=void 0,ds.endFlowNode=void 0,ds.returnFlowNode=void 0,ds}function il(P,q,oe,we,Tt,Fr,ji,ds){return P.modifiers!==q||P.asteriskToken!==oe||P.name!==we||P.typeParameters!==Tt||P.parameters!==Fr||P.type!==ji||P.body!==ds?L3(XA(q,oe,we,Tt,Fr,ji,ds),P):P}function L3(P,q){return P!==q&&P.modifiers===q.modifiers&&(P.modifiers=q.modifiers),ae(P,q)}function vM(P,q,oe,we,Tt){let Fr=re(264);return Fr.modifiers=gl(P),Fr.name=Sd(q),Fr.typeParameters=gl(oe),Fr.heritageClauses=gl(we),Fr.members=Z(Tt),TS(Fr.modifiers)&128?Fr.transformFlags=1:(Fr.transformFlags|=al(Fr.modifiers)|hC(Fr.name)|al(Fr.typeParameters)|al(Fr.heritageClauses)|al(Fr.members)|(Fr.typeParameters?1:0)|1024,Fr.transformFlags&8192&&(Fr.transformFlags|=1)),Fr.jsDoc=void 0,Fr}function a2(P,q,oe,we,Tt,Fr){return P.modifiers!==q||P.name!==oe||P.typeParameters!==we||P.heritageClauses!==Tt||P.members!==Fr?yi(vM(q,oe,we,Tt,Fr),P):P}function s2(P,q,oe,we,Tt){let Fr=re(265);return Fr.modifiers=gl(P),Fr.name=Sd(q),Fr.typeParameters=gl(oe),Fr.heritageClauses=gl(we),Fr.members=Z(Tt),Fr.transformFlags=1,Fr.jsDoc=void 0,Fr}function Rb(P,q,oe,we,Tt,Fr){return P.modifiers!==q||P.name!==oe||P.typeParameters!==we||P.heritageClauses!==Tt||P.members!==Fr?yi(s2(q,oe,we,Tt,Fr),P):P}function tp(P,q,oe,we){let Tt=re(266);return Tt.modifiers=gl(P),Tt.name=Sd(q),Tt.typeParameters=gl(oe),Tt.type=we,Tt.transformFlags=1,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt}function am(P,q,oe,we,Tt){return P.modifiers!==q||P.name!==oe||P.typeParameters!==we||P.type!==Tt?yi(tp(q,oe,we,Tt),P):P}function Kh(P,q,oe){let we=re(267);return we.modifiers=gl(P),we.name=Sd(q),we.members=Z(oe),we.transformFlags|=al(we.modifiers)|zi(we.name)|al(we.members)|1,we.transformFlags&=-67108865,we.jsDoc=void 0,we}function sm(P,q,oe,we){return P.modifiers!==q||P.name!==oe||P.members!==we?yi(Kh(q,oe,we),P):P}function YA(P,q,oe,we=0){let Tt=re(268);return Tt.modifiers=gl(P),Tt.flags|=we&2088,Tt.name=q,Tt.body=oe,TS(Tt.modifiers)&128?Tt.transformFlags=1:Tt.transformFlags|=al(Tt.modifiers)|zi(Tt.name)|zi(Tt.body)|1,Tt.transformFlags&=-67108865,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt}function eh(P,q,oe,we){return P.modifiers!==q||P.name!==oe||P.body!==we?yi(YA(q,oe,we,P.flags),P):P}function Lb(P){let q=Q(269);return q.statements=Z(P),q.transformFlags|=al(q.statements),q.jsDoc=void 0,q}function Sh(P,q){return P.statements!==q?yi(Lb(q),P):P}function h1(P){let q=Q(270);return q.clauses=Z(P),q.transformFlags|=al(q.clauses),q.locals=void 0,q.nextContainer=void 0,q}function X1(P,q){return P.clauses!==q?yi(h1(q),P):P}function ew(P){let q=re(271);return q.name=Sd(P),q.transformFlags|=PH(q.name)|1,q.modifiers=void 0,q.jsDoc=void 0,q}function tw(P,q){return P.name!==q?Eq(ew(q),P):P}function Eq(P,q){return P!==q&&(P.modifiers=q.modifiers),yi(P,q)}function SM(P,q,oe,we){let Tt=re(272);return Tt.modifiers=gl(P),Tt.name=Sd(oe),Tt.isTypeOnly=q,Tt.moduleReference=we,Tt.transformFlags|=al(Tt.modifiers)|PH(Tt.name)|zi(Tt.moduleReference),WT(Tt.moduleReference)||(Tt.transformFlags|=1),Tt.transformFlags&=-67108865,Tt.jsDoc=void 0,Tt}function FE(P,q,oe,we,Tt){return P.modifiers!==q||P.isTypeOnly!==oe||P.name!==we||P.moduleReference!==Tt?yi(SM(q,oe,we,Tt),P):P}function qP(P,q,oe,we){let Tt=Q(273);return Tt.modifiers=gl(P),Tt.importClause=q,Tt.moduleSpecifier=oe,Tt.attributes=Tt.assertClause=we,Tt.transformFlags|=zi(Tt.importClause)|zi(Tt.moduleSpecifier),Tt.transformFlags&=-67108865,Tt.jsDoc=void 0,Tt}function gt(P,q,oe,we,Tt){return P.modifiers!==q||P.importClause!==oe||P.moduleSpecifier!==we||P.attributes!==Tt?yi(qP(q,oe,we,Tt),P):P}function M3(P,q,oe){let we=re(274);return typeof P=="boolean"&&(P=P?156:void 0),we.isTypeOnly=P===156,we.phaseModifier=P,we.name=q,we.namedBindings=oe,we.transformFlags|=zi(we.name)|zi(we.namedBindings),P===156&&(we.transformFlags|=1),we.transformFlags&=-67108865,we}function Kx(P,q,oe,we){return typeof q=="boolean"&&(q=q?156:void 0),P.phaseModifier!==q||P.name!==oe||P.namedBindings!==we?yi(M3(q,oe,we),P):P}function Y1(P,q){let oe=Q(301);return oe.elements=Z(P),oe.multiLine=q,oe.token=132,oe.transformFlags|=4,oe}function RE(P,q,oe){return P.elements!==q||P.multiLine!==oe?yi(Y1(q,oe),P):P}function MC(P,q){let oe=Q(302);return oe.name=P,oe.value=q,oe.transformFlags|=4,oe}function th(P,q,oe){return P.name!==q||P.value!==oe?yi(MC(q,oe),P):P}function Nv(P,q){let oe=Q(303);return oe.assertClause=P,oe.multiLine=q,oe}function g1(P,q,oe){return P.assertClause!==q||P.multiLine!==oe?yi(Nv(q,oe),P):P}function rw(P,q,oe){let we=Q(301);return we.token=oe??118,we.elements=Z(P),we.multiLine=q,we.transformFlags|=4,we}function zc(P,q,oe){return P.elements!==q||P.multiLine!==oe?yi(rw(q,oe,P.token),P):P}function Qy(P,q){let oe=Q(302);return oe.name=P,oe.value=q,oe.transformFlags|=4,oe}function LE(P,q,oe){return P.name!==q||P.value!==oe?yi(Qy(q,oe),P):P}function j3(P){let q=re(275);return q.name=P,q.transformFlags|=zi(q.name),q.transformFlags&=-67108865,q}function c2(P,q){return P.name!==q?yi(j3(q),P):P}function JP(P){let q=re(281);return q.name=P,q.transformFlags|=zi(q.name)|32,q.transformFlags&=-67108865,q}function w0(P,q){return P.name!==q?yi(JP(q),P):P}function Qx(P){let q=Q(276);return q.elements=Z(P),q.transformFlags|=al(q.elements),q.transformFlags&=-67108865,q}function nw(P,q){return P.elements!==q?yi(Qx(q),P):P}function ME(P,q,oe){let we=re(277);return we.isTypeOnly=P,we.propertyName=q,we.name=oe,we.transformFlags|=zi(we.propertyName)|zi(we.name),we.transformFlags&=-67108865,we}function qS(P,q,oe,we){return P.isTypeOnly!==q||P.propertyName!==oe||P.name!==we?yi(ME(q,oe,we),P):P}function VP(P,q,oe){let we=re(278);return we.modifiers=gl(P),we.isExportEquals=q,we.expression=q?c().parenthesizeRightSideOfBinary(64,void 0,oe):c().parenthesizeExpressionOfExportDefault(oe),we.transformFlags|=al(we.modifiers)|zi(we.expression),we.transformFlags&=-67108865,we.jsDoc=void 0,we}function iw(P,q,oe){return P.modifiers!==q||P.expression!==oe?yi(VP(q,P.isExportEquals,oe),P):P}function io(P,q,oe,we,Tt){let Fr=re(279);return Fr.modifiers=gl(P),Fr.isTypeOnly=q,Fr.exportClause=oe,Fr.moduleSpecifier=we,Fr.attributes=Fr.assertClause=Tt,Fr.transformFlags|=al(Fr.modifiers)|zi(Fr.exportClause)|zi(Fr.moduleSpecifier),Fr.transformFlags&=-67108865,Fr.jsDoc=void 0,Fr}function Ki(P,q,oe,we,Tt,Fr){return P.modifiers!==q||P.isTypeOnly!==oe||P.exportClause!==we||P.moduleSpecifier!==Tt||P.attributes!==Fr?Nf(io(q,oe,we,Tt,Fr),P):P}function Nf(P,q){return P!==q&&P.modifiers===q.modifiers&&(P.modifiers=q.modifiers),yi(P,q)}function B3(P){let q=Q(280);return q.elements=Z(P),q.transformFlags|=al(q.elements),q.transformFlags&=-67108865,q}function l2(P,q){return P.elements!==q?yi(B3(q),P):P}function WP(P,q,oe){let we=Q(282);return we.isTypeOnly=P,we.propertyName=Sd(q),we.name=Sd(oe),we.transformFlags|=zi(we.propertyName)|zi(we.name),we.transformFlags&=-67108865,we.jsDoc=void 0,we}function bM(P,q,oe,we){return P.isTypeOnly!==q||P.propertyName!==oe||P.name!==we?yi(WP(q,oe,we),P):P}function kq(){let P=re(283);return P.jsDoc=void 0,P}function qi(P){let q=Q(284);return q.expression=P,q.transformFlags|=zi(q.expression),q.transformFlags&=-67108865,q}function rh(P,q){return P.expression!==q?yi(qi(q),P):P}function gs(P){return Q(P)}function gg(P,q,oe=!1){let we=$3(P,oe?q&&c().parenthesizeNonArrayTypeOfPostfixType(q):q);return we.postfix=oe,we}function $3(P,q){let oe=Q(P);return oe.type=q,oe}function jC(P,q,oe){return q.type!==oe?yi(gg(P,oe,q.postfix),q):q}function Ii(P,q,oe){return q.type!==oe?yi($3(P,oe),q):q}function xM(P,q){let oe=re(318);return oe.parameters=gl(P),oe.type=q,oe.transformFlags=al(oe.parameters)|(oe.type?1:0),oe.jsDoc=void 0,oe.locals=void 0,oe.nextContainer=void 0,oe.typeArguments=void 0,oe}function o7(P,q,oe){return P.parameters!==q||P.type!==oe?yi(xM(q,oe),P):P}function Pm(P,q=!1){let oe=re(323);return oe.jsDocPropertyTags=gl(P),oe.isArrayType=q,oe}function Mb(P,q,oe){return P.jsDocPropertyTags!==q||P.isArrayType!==oe?yi(Pm(q,oe),P):P}function Ov(P){let q=Q(310);return q.type=P,q}function BC(P,q){return P.type!==q?yi(Ov(q),P):P}function U3(P,q,oe){let we=re(324);return we.typeParameters=gl(P),we.parameters=Z(q),we.type=oe,we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we}function $C(P,q,oe,we){return P.typeParameters!==q||P.parameters!==oe||P.type!==we?yi(U3(q,oe,we),P):P}function Zy(P){let q=vge(P.kind);return P.tagName.escapedText===dp(q)?P.tagName:Fe(q)}function ev(P,q,oe){let we=Q(P);return we.tagName=q,we.comment=oe,we}function I0(P,q,oe){let we=re(P);return we.tagName=q,we.comment=oe,we}function Qh(P,q,oe,we){let Tt=ev(346,P??Fe("template"),we);return Tt.constraint=q,Tt.typeParameters=Z(oe),Tt}function jE(P,q=Zy(P),oe,we,Tt){return P.tagName!==q||P.constraint!==oe||P.typeParameters!==we||P.comment!==Tt?yi(Qh(q,oe,we,Tt),P):P}function ow(P,q,oe,we){let Tt=I0(347,P??Fe("typedef"),we);return Tt.typeExpression=q,Tt.fullName=oe,Tt.name=Yge(oe),Tt.locals=void 0,Tt.nextContainer=void 0,Tt}function a7(P,q=Zy(P),oe,we,Tt){return P.tagName!==q||P.typeExpression!==oe||P.fullName!==we||P.comment!==Tt?yi(ow(q,oe,we,Tt),P):P}function aw(P,q,oe,we,Tt,Fr){let ji=I0(342,P??Fe("param"),Fr);return ji.typeExpression=we,ji.name=q,ji.isNameFirst=!!Tt,ji.isBracketed=oe,ji}function UC(P,q=Zy(P),oe,we,Tt,Fr,ji){return P.tagName!==q||P.name!==oe||P.isBracketed!==we||P.typeExpression!==Tt||P.isNameFirst!==Fr||P.comment!==ji?yi(aw(q,oe,we,Tt,Fr,ji),P):P}function s7(P,q,oe,we,Tt,Fr){let ji=I0(349,P??Fe("prop"),Fr);return ji.typeExpression=we,ji.name=q,ji.isNameFirst=!!Tt,ji.isBracketed=oe,ji}function u2(P,q=Zy(P),oe,we,Tt,Fr,ji){return P.tagName!==q||P.name!==oe||P.isBracketed!==we||P.typeExpression!==Tt||P.isNameFirst!==Fr||P.comment!==ji?yi(s7(q,oe,we,Tt,Fr,ji),P):P}function JS(P,q,oe,we){let Tt=I0(339,P??Fe("callback"),we);return Tt.typeExpression=q,Tt.fullName=oe,Tt.name=Yge(oe),Tt.locals=void 0,Tt.nextContainer=void 0,Tt}function zC(P,q=Zy(P),oe,we,Tt){return P.tagName!==q||P.typeExpression!==oe||P.fullName!==we||P.comment!==Tt?yi(JS(q,oe,we,Tt),P):P}function sw(P,q,oe){let we=ev(340,P??Fe("overload"),oe);return we.typeExpression=q,we}function BE(P,q=Zy(P),oe,we){return P.tagName!==q||P.typeExpression!==oe||P.comment!==we?yi(sw(q,oe,we),P):P}function qC(P,q,oe){let we=ev(329,P??Fe("augments"),oe);return we.class=q,we}function tv(P,q=Zy(P),oe,we){return P.tagName!==q||P.class!==oe||P.comment!==we?yi(qC(q,oe,we),P):P}function p2(P,q,oe){let we=ev(330,P??Fe("implements"),oe);return we.class=q,we}function Zx(P,q,oe){let we=ev(348,P??Fe("see"),oe);return we.name=q,we}function JC(P,q,oe,we){return P.tagName!==q||P.name!==oe||P.comment!==we?yi(Zx(q,oe,we),P):P}function _f(P){let q=Q(311);return q.name=P,q}function GP(P,q){return P.name!==q?yi(_f(q),P):P}function Xx(P,q){let oe=Q(312);return oe.left=P,oe.right=q,oe.transformFlags|=zi(oe.left)|zi(oe.right),oe}function cw(P,q,oe){return P.left!==q||P.right!==oe?yi(Xx(q,oe),P):P}function z3(P,q){let oe=Q(325);return oe.name=P,oe.text=q,oe}function Yx(P,q,oe){return P.name!==q?yi(z3(q,oe),P):P}function TM(P,q){let oe=Q(326);return oe.name=P,oe.text=q,oe}function c7(P,q,oe){return P.name!==q?yi(TM(q,oe),P):P}function l7(P,q){let oe=Q(327);return oe.name=P,oe.text=q,oe}function Cq(P,q,oe){return P.name!==q?yi(l7(q,oe),P):P}function u7(P,q=Zy(P),oe,we){return P.tagName!==q||P.class!==oe||P.comment!==we?yi(p2(q,oe,we),P):P}function lw(P,q,oe){return ev(P,q??Fe(vge(P)),oe)}function _2(P,q,oe=Zy(q),we){return q.tagName!==oe||q.comment!==we?yi(lw(P,oe,we),q):q}function EM(P,q,oe,we){let Tt=ev(P,q??Fe(vge(P)),we);return Tt.typeExpression=oe,Tt}function uw(P,q,oe=Zy(q),we,Tt){return q.tagName!==oe||q.typeExpression!==we||q.comment!==Tt?yi(EM(P,oe,we,Tt),q):q}function q3(P,q){return ev(328,P,q)}function O_(P,q,oe){return P.tagName!==q||P.comment!==oe?yi(q3(q,oe),P):P}function df(P,q,oe){let we=I0(341,P??Fe(vge(341)),oe);return we.typeExpression=q,we.locals=void 0,we.nextContainer=void 0,we}function p7(P,q=Zy(P),oe,we){return P.tagName!==q||P.typeExpression!==oe||P.comment!==we?yi(df(q,oe,we),P):P}function Zh(P,q,oe,we,Tt){let Fr=ev(352,P??Fe("import"),Tt);return Fr.importClause=q,Fr.moduleSpecifier=oe,Fr.attributes=we,Fr.comment=Tt,Fr}function P0(P,q,oe,we,Tt,Fr){return P.tagName!==q||P.comment!==Fr||P.importClause!==oe||P.moduleSpecifier!==we||P.attributes!==Tt?yi(Zh(q,oe,we,Tt,Fr),P):P}function HP(P){let q=Q(322);return q.text=P,q}function Fv(P,q){return P.text!==q?yi(HP(q),P):P}function VC(P,q){let oe=Q(321);return oe.comment=P,oe.tags=gl(q),oe}function $E(P,q,oe){return P.comment!==q||P.tags!==oe?yi(VC(q,oe),P):P}function _7(P,q,oe){let we=Q(285);return we.openingElement=P,we.children=Z(q),we.closingElement=oe,we.transformFlags|=zi(we.openingElement)|al(we.children)|zi(we.closingElement)|2,we}function Dq(P,q,oe,we){return P.openingElement!==q||P.children!==oe||P.closingElement!==we?yi(_7(q,oe,we),P):P}function jp(P,q,oe){let we=Q(286);return we.tagName=P,we.typeArguments=gl(q),we.attributes=oe,we.transformFlags|=zi(we.tagName)|al(we.typeArguments)|zi(we.attributes)|2,we.typeArguments&&(we.transformFlags|=1),we}function kM(P,q,oe,we){return P.tagName!==q||P.typeArguments!==oe||P.attributes!==we?yi(jp(q,oe,we),P):P}function J3(P,q,oe){let we=Q(287);return we.tagName=P,we.typeArguments=gl(q),we.attributes=oe,we.transformFlags|=zi(we.tagName)|al(we.typeArguments)|zi(we.attributes)|2,q&&(we.transformFlags|=1),we}function KP(P,q,oe,we){return P.tagName!==q||P.typeArguments!==oe||P.attributes!==we?yi(J3(q,oe,we),P):P}function d7(P){let q=Q(288);return q.tagName=P,q.transformFlags|=zi(q.tagName)|2,q}function Nm(P,q){return P.tagName!==q?yi(d7(q),P):P}function yg(P,q,oe){let we=Q(289);return we.openingFragment=P,we.children=Z(q),we.closingFragment=oe,we.transformFlags|=zi(we.openingFragment)|al(we.children)|zi(we.closingFragment)|2,we}function V3(P,q,oe,we){return P.openingFragment!==q||P.children!==oe||P.closingFragment!==we?yi(yg(q,oe,we),P):P}function pw(P,q){let oe=Q(12);return oe.text=P,oe.containsOnlyTriviaWhiteSpaces=!!q,oe.transformFlags|=2,oe}function vg(P,q,oe){return P.text!==q||P.containsOnlyTriviaWhiteSpaces!==oe?yi(pw(q,oe),P):P}function W3(){let P=Q(290);return P.transformFlags|=2,P}function eT(){let P=Q(291);return P.transformFlags|=2,P}function f7(P,q){let oe=re(292);return oe.name=P,oe.initializer=q,oe.transformFlags|=zi(oe.name)|zi(oe.initializer)|2,oe}function G3(P,q,oe){return P.name!==q||P.initializer!==oe?yi(f7(q,oe),P):P}function rv(P){let q=re(293);return q.properties=Z(P),q.transformFlags|=al(q.properties)|2,q}function m7(P,q){return P.properties!==q?yi(rv(q),P):P}function CM(P){let q=Q(294);return q.expression=P,q.transformFlags|=zi(q.expression)|2,q}function h7(P,q){return P.expression!==q?yi(CM(q),P):P}function H3(P,q){let oe=Q(295);return oe.dotDotDotToken=P,oe.expression=q,oe.transformFlags|=zi(oe.dotDotDotToken)|zi(oe.expression)|2,oe}function g7(P,q){return P.expression!==q?yi(H3(P.dotDotDotToken,q),P):P}function UE(P,q){let oe=Q(296);return oe.namespace=P,oe.name=q,oe.transformFlags|=zi(oe.namespace)|zi(oe.name)|2,oe}function Zg(P,q,oe){return P.namespace!==q||P.name!==oe?yi(UE(q,oe),P):P}function VS(P,q){let oe=Q(297);return oe.expression=c().parenthesizeExpressionForDisallowedComma(P),oe.statements=Z(q),oe.transformFlags|=zi(oe.expression)|al(oe.statements),oe.jsDoc=void 0,oe}function K3(P,q,oe){return P.expression!==q||P.statements!==oe?yi(VS(q,oe),P):P}function Q3(P){let q=Q(298);return q.statements=Z(P),q.transformFlags=al(q.statements),q}function cl(P,q){return P.statements!==q?yi(Q3(q),P):P}function $i(P,q){let oe=Q(299);switch(oe.token=P,oe.types=Z(q),oe.transformFlags|=al(oe.types),P){case 96:oe.transformFlags|=1024;break;case 119:oe.transformFlags|=1;break;default:return $.assertNever(P)}return oe}function Xy(P,q){return P.types!==q?yi($i(P.token,q),P):P}function Od(P,q){let oe=Q(300);return oe.variableDeclaration=$b(P),oe.block=q,oe.transformFlags|=zi(oe.variableDeclaration)|zi(oe.block)|(P?0:64),oe.locals=void 0,oe.nextContainer=void 0,oe}function _w(P,q,oe){return P.variableDeclaration!==q||P.block!==oe?yi(Od(q,oe),P):P}function Z3(P,q){let oe=re(304);return oe.name=Sd(P),oe.initializer=c().parenthesizeExpressionForDisallowedComma(q),oe.transformFlags|=hC(oe.name)|zi(oe.initializer),oe.modifiers=void 0,oe.questionToken=void 0,oe.exclamationToken=void 0,oe.jsDoc=void 0,oe}function QP(P,q,oe){return P.name!==q||P.initializer!==oe?dw(Z3(q,oe),P):P}function dw(P,q){return P!==q&&(P.modifiers=q.modifiers,P.questionToken=q.questionToken,P.exclamationToken=q.exclamationToken),yi(P,q)}function X3(P,q){let oe=re(305);return oe.name=Sd(P),oe.objectAssignmentInitializer=q&&c().parenthesizeExpressionForDisallowedComma(q),oe.transformFlags|=PH(oe.name)|zi(oe.objectAssignmentInitializer)|1024,oe.equalsToken=void 0,oe.modifiers=void 0,oe.questionToken=void 0,oe.exclamationToken=void 0,oe.jsDoc=void 0,oe}function B(P,q,oe){return P.name!==q||P.objectAssignmentInitializer!==oe?Pe(X3(q,oe),P):P}function Pe(P,q){return P!==q&&(P.modifiers=q.modifiers,P.questionToken=q.questionToken,P.exclamationToken=q.exclamationToken,P.equalsToken=q.equalsToken),yi(P,q)}function Wt(P){let q=re(306);return q.expression=c().parenthesizeExpressionForDisallowedComma(P),q.transformFlags|=zi(q.expression)|128|65536,q.jsDoc=void 0,q}function ln(P,q){return P.expression!==q?yi(Wt(q),P):P}function Fo(P,q){let oe=re(307);return oe.name=Sd(P),oe.initializer=q&&c().parenthesizeExpressionForDisallowedComma(q),oe.transformFlags|=zi(oe.name)|zi(oe.initializer)|1,oe.jsDoc=void 0,oe}function na(P,q,oe){return P.name!==q||P.initializer!==oe?yi(Fo(q,oe),P):P}function Ya(P,q,oe){let we=n.createBaseSourceFileNode(308);return we.statements=Z(P),we.endOfFileToken=q,we.flags|=oe,we.text="",we.fileName="",we.path="",we.resolvedPath="",we.originalFileName="",we.languageVersion=1,we.languageVariant=0,we.scriptKind=0,we.isDeclarationFile=!1,we.hasNoDefaultLib=!1,we.transformFlags|=al(we.statements)|zi(we.endOfFileToken),we.locals=void 0,we.nextContainer=void 0,we.endFlowNode=void 0,we.nodeCount=0,we.identifierCount=0,we.symbolCount=0,we.parseDiagnostics=void 0,we.bindDiagnostics=void 0,we.bindSuggestionDiagnostics=void 0,we.lineMap=void 0,we.externalModuleIndicator=void 0,we.setExternalModuleIndicator=void 0,we.pragmas=void 0,we.checkJsDirective=void 0,we.referencedFiles=void 0,we.typeReferenceDirectives=void 0,we.libReferenceDirectives=void 0,we.amdDependencies=void 0,we.commentDirectives=void 0,we.identifiers=void 0,we.packageJsonLocations=void 0,we.packageJsonScope=void 0,we.imports=void 0,we.moduleAugmentations=void 0,we.ambientModuleNames=void 0,we.classifiableNames=void 0,we.impliedNodeFormat=void 0,we}function ra(P){let q=Object.create(P.redirectTarget);return Object.defineProperties(q,{id:{get(){return this.redirectInfo.redirectTarget.id},set(oe){this.redirectInfo.redirectTarget.id=oe}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(oe){this.redirectInfo.redirectTarget.symbol=oe}}}),q.redirectInfo=P,q}function Wc(P){let q=ra(P.redirectInfo);return q.flags|=P.flags&-17,q.fileName=P.fileName,q.path=P.path,q.resolvedPath=P.resolvedPath,q.originalFileName=P.originalFileName,q.packageJsonLocations=P.packageJsonLocations,q.packageJsonScope=P.packageJsonScope,q.emitNode=void 0,q}function F_(P){let q=n.createBaseSourceFileNode(308);q.flags|=P.flags&-17;for(let oe in P)if(!(Ho(q,oe)||!Ho(P,oe))){if(oe==="emitNode"){q.emitNode=void 0;continue}q[oe]=P[oe]}return q}function cm(P){let q=P.redirectInfo?Wc(P):F_(P);return a(q,P),q}function bh(P,q,oe,we,Tt,Fr,ji){let ds=cm(P);return ds.statements=Z(q),ds.isDeclarationFile=oe,ds.referencedFiles=we,ds.typeReferenceDirectives=Tt,ds.hasNoDefaultLib=Fr,ds.libReferenceDirectives=ji,ds.transformFlags=al(ds.statements)|zi(ds.endOfFileToken),ds}function fw(P,q,oe=P.isDeclarationFile,we=P.referencedFiles,Tt=P.typeReferenceDirectives,Fr=P.hasNoDefaultLib,ji=P.libReferenceDirectives){return P.statements!==q||P.isDeclarationFile!==oe||P.referencedFiles!==we||P.typeReferenceDirectives!==Tt||P.hasNoDefaultLib!==Fr||P.libReferenceDirectives!==ji?yi(bh(P,q,oe,we,Tt,Fr,ji),P):P}function xh(P){let q=Q(309);return q.sourceFiles=P,q.syntheticFileReferences=void 0,q.syntheticTypeReferences=void 0,q.syntheticLibReferences=void 0,q.hasNoDefaultLib=void 0,q}function WC(P,q){return P.sourceFiles!==q?yi(xh(q),P):P}function y7(P,q=!1,oe){let we=Q(238);return we.type=P,we.isSpread=q,we.tupleNameSource=oe,we}function y1(P){let q=Q(353);return q._children=P,q}function mp(P){let q=Q(354);return q.original=P,qt(q,P),q}function Y3(P,q){let oe=Q(356);return oe.expression=P,oe.original=q,oe.transformFlags|=zi(oe.expression)|1,qt(oe,q),oe}function zE(P,q){return P.expression!==q?yi(Y3(q,P.original),P):P}function nv(){return Q(355)}function qE(P){if(fu(P)&&!I4(P)&&!P.original&&!P.emitNode&&!P.id){if(uz(P))return P.elements;if(wi(P)&&N3e(P.operatorToken))return[P.left,P.right]}return P}function ZP(P){let q=Q(357);return q.elements=Z(Wi(P,qE)),q.transformFlags|=al(q.elements),q}function ase(P,q){return P.elements!==q?yi(ZP(q),P):P}function Aq(P,q){let oe=Q(358);return oe.expression=P,oe.thisArg=q,oe.transformFlags|=zi(oe.expression)|zi(oe.thisArg),oe}function v7(P,q,oe){return P.expression!==q||P.thisArg!==oe?yi(Aq(q,oe),P):P}function wq(P){let q=Ce(P.escapedText);return q.flags|=P.flags&-17,q.transformFlags=P.transformFlags,a(q,P),RH(q,{...P.emitNode.autoGenerate}),q}function JQ(P){let q=Ce(P.escapedText);q.flags|=P.flags&-17,q.jsDoc=P.jsDoc,q.flowNode=P.flowNode,q.symbol=P.symbol,q.transformFlags=P.transformFlags,a(q,P);let oe=t3(P);return oe&&vE(q,oe),q}function GC(P){let q=je(P.escapedText);return q.flags|=P.flags&-17,q.transformFlags=P.transformFlags,a(q,P),RH(q,{...P.emitNode.autoGenerate}),q}function S7(P){let q=je(P.escapedText);return q.flags|=P.flags&-17,q.transformFlags=P.transformFlags,a(q,P),q}function eN(P){if(P===void 0)return P;if(Ta(P))return cm(P);if(ap(P))return wq(P);if(ct(P))return JQ(P);if(R4(P))return GC(P);if(Aa(P))return S7(P);let q=Ute(P.kind)?n.createBaseNode(P.kind):n.createBaseTokenNode(P.kind);q.flags|=P.flags&-17,q.transformFlags=P.transformFlags,a(q,P);for(let oe in P)Ho(q,oe)||!Ho(P,oe)||(q[oe]=P[oe]);return q}function sse(P,q,oe){return Vn(Hg(void 0,void 0,void 0,void 0,q?[q]:[],void 0,lp(P,!0)),void 0,oe?[oe]:[])}function XP(P,q,oe){return Vn(D0(void 0,void 0,q?[q]:[],void 0,void 0,lp(P,!0)),void 0,oe?[oe]:[])}function tN(){return Iv(_e("0"))}function Iq(P){return VP(void 0,!1,P)}function b7(P){return io(void 0,!1,B3([WP(!1,void 0,P)]))}function Ua(P,q){return q==="null"?G.createStrictEquality(P,tt()):q==="undefined"?G.createStrictEquality(P,tN()):G.createStrictEquality(Gh(P),Oe(q))}function HC(P,q){return q==="null"?G.createStrictInequality(P,tt()):q==="undefined"?G.createStrictInequality(P,tN()):G.createStrictInequality(Gh(P),Oe(q))}function ri(P,q,oe){return O4(P)?el(xu(P,void 0,q),void 0,void 0,oe):Vn(W_(P,q),void 0,oe)}function Pq(P,q,oe){return ri(P,"bind",[q,...oe])}function DM(P,q,oe){return ri(P,"call",[q,...oe])}function AM(P,q,oe){return ri(P,"apply",[q,oe])}function YP(P,q,oe){return ri(Fe(P),q,oe)}function VQ(P,q){return ri(P,"slice",q===void 0?[]:[WE(q)])}function rN(P,q){return ri(P,"concat",q)}function cse(P,q,oe){return YP("Object","defineProperty",[P,WE(q),oe])}function wM(P,q){return YP("Object","getOwnPropertyDescriptor",[P,WE(q)])}function jb(P,q,oe){return YP("Reflect","get",oe?[P,q,oe]:[P,q])}function WQ(P,q,oe,we){return YP("Reflect","set",we?[P,q,oe,we]:[P,q,oe])}function mw(P,q,oe){return oe?(P.push(Z3(q,oe)),!0):!1}function lse(P,q){let oe=[];mw(oe,"enumerable",WE(P.enumerable)),mw(oe,"configurable",WE(P.configurable));let we=mw(oe,"writable",WE(P.writable));we=mw(oe,"value",P.value)||we;let Tt=mw(oe,"get",P.get);return Tt=mw(oe,"set",P.set)||Tt,$.assert(!(we&&Tt),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Bl(oe,!q)}function Nq(P,q){switch(P.kind){case 218:return uf(P,q);case 217:return vy(P,P.type,q);case 235:return Lt(P,q,P.type);case 239:return Fi(P,q,P.type);case 236:return dn(P,q);case 234:return OC(P,q,P.typeArguments);case 356:return zE(P,q)}}function GQ(P){return mh(P)&&fu(P)&&fu(yE(P))&&fu(DS(P))&&!Pt(_L(P))&&!Pt(FH(P))}function Oq(P,q,oe=63){return P&&tie(P,oe)&&!GQ(P)?Nq(P,Oq(P.expression,q)):q}function hw(P,q,oe){if(!q)return P;let we=i7(q,q.label,bC(q.statement)?hw(P,q.statement):P);return oe&&oe(q),we}function Bb(P,q){let oe=bl(P);switch(oe.kind){case 80:return q;case 110:case 9:case 10:case 11:return!1;case 210:return oe.elements.length!==0;case 211:return oe.properties.length>0;default:return!0}}function IM(P,q,oe,we=!1){let Tt=Wp(P,63),Fr,ji;return _g(Tt)?(Fr=Se(),ji=Tt):az(Tt)?(Fr=Se(),ji=oe!==void 0&&oe<2?qt(Fe("_super"),Tt):Tt):Xc(Tt)&8192?(Fr=tN(),ji=c().parenthesizeLeftSideOfAccess(Tt,!1)):no(Tt)?Bb(Tt.expression,we)?(Fr=Be(q),ji=W_(qt(G.createAssignment(Fr,Tt.expression),Tt.expression),Tt.name),qt(ji,Tt)):(Fr=Tt.expression,ji=Tt):mu(Tt)?Bb(Tt.expression,we)?(Fr=Be(q),ji=Wf(qt(G.createAssignment(Fr,Tt.expression),Tt.expression),Tt.argumentExpression),qt(ji,Tt)):(Fr=Tt.expression,ji=Tt):(Fr=tN(),ji=c().parenthesizeLeftSideOfAccess(P,!1)),{target:ji,thisArg:Fr}}function WS(P,q){return W_(If(Bl([ye(void 0,"value",[Ko(void 0,void 0,P,void 0,void 0,void 0)],lp([Qg(q)]))])),"value")}function he(P){return P.length>10?ZP(P):nl(P,G.createComma)}function Ze(P,q,oe,we=0,Tt){let Fr=Tt?P&&PR(P):cs(P);if(Fr&&ct(Fr)&&!ap(Fr)){let ji=xl(qt(eN(Fr),Fr),Fr.parent);return we|=Xc(Fr),oe||(we|=96),q||(we|=3072),we&&Ai(ji,we),ji}return ut(P)}function kt(P,q,oe){return Ze(P,q,oe,98304)}function ir(P,q,oe,we){return Ze(P,q,oe,32768,we)}function Or(P,q,oe){return Ze(P,q,oe,16384)}function en(P,q,oe){return Ze(P,q,oe)}function _o(P,q,oe,we){let Tt=W_(P,fu(q)?q:eN(q));qt(Tt,q);let Fr=0;return we||(Fr|=96),oe||(Fr|=3072),Fr&&Ai(Tt,Fr),Tt}function Mi(P,q,oe,we){return P&&ko(q,32)?_o(P,Ze(q),oe,we):Or(q,oe,we)}function si(P,q,oe,we){let Tt=hu(P,q,0,oe);return Zl(P,q,Tt,we)}function zo(P){return Ic(P.expression)&&P.expression.text==="use strict"}function La(){return Dm(Qg(Oe("use strict")))}function hu(P,q,oe=0,we){$.assert(q.length===0,"Prologue directives should be at the first statement in the target statements array");let Tt=!1,Fr=P.length;for(;oeds&&Sy.splice(Tt,0,...q.slice(ds,ju)),ds>ji&&Sy.splice(we,0,...q.slice(ji,ds)),ji>Fr&&Sy.splice(oe,0,...q.slice(Fr,ji)),Fr>0)if(oe===0)Sy.splice(0,0,...q.slice(0,Fr));else{let QC=new Map;for(let Rv=0;Rv=0;Rv--){let T7=q[Rv];QC.has(T7.expression.text)||Sy.unshift(T7)}}return HI(P)?qt(Z(Sy,P.hasTrailingComma),P):P}function VE(P,q){let oe;return typeof q=="number"?oe=Kt(q):oe=q,Zu(P)?Qn(P,oe,P.name,P.constraint,P.default):wa(P)?is(P,oe,P.dotDotDotToken,P.name,P.questionToken,P.type,P.initializer):fL(P)?ii(P,oe,P.typeParameters,P.parameters,P.type):Zm(P)?oo(P,oe,P.name,P.questionToken,P.type):ps(P)?ft(P,oe,P.name,P.questionToken??P.exclamationToken,P.type,P.initializer):G1(P)?Wr(P,oe,P.name,P.questionToken,P.typeParameters,P.parameters,P.type):Ep(P)?vo(P,oe,P.asteriskToken,P.name,P.questionToken,P.typeParameters,P.parameters,P.type,P.body):kp(P)?Es(P,oe,P.parameters,P.body):T0(P)?Ee(P,oe,P.name,P.parameters,P.type,P.body):mg(P)?et(P,oe,P.name,P.parameters,P.body):vC(P)?pr(P,oe,P.parameters,P.type):bu(P)?Ym(P,oe,P.asteriskToken,P.name,P.typeParameters,P.parameters,P.type,P.body):Iu(P)?Pb(P,oe,P.typeParameters,P.parameters,P.type,P.equalsGreaterThanToken,P.body):w_(P)?Nb(P,oe,P.name,P.typeParameters,P.heritageClauses,P.members):h_(P)?Pf(P,oe,P.declarationList):i_(P)?il(P,oe,P.asteriskToken,P.name,P.typeParameters,P.parameters,P.type,P.body):ed(P)?a2(P,oe,P.name,P.typeParameters,P.heritageClauses,P.members):Af(P)?Rb(P,oe,P.name,P.typeParameters,P.heritageClauses,P.members):s1(P)?am(P,oe,P.name,P.typeParameters,P.type):CA(P)?sm(P,oe,P.name,P.members):I_(P)?eh(P,oe,P.name,P.body):gd(P)?FE(P,oe,P.isTypeOnly,P.name,P.moduleReference):fp(P)?gt(P,oe,P.importClause,P.moduleSpecifier,P.attributes):Xu(P)?iw(P,oe,P.expression):P_(P)?Ki(P,oe,P.isTypeOnly,P.exportClause,P.moduleSpecifier,P.attributes):$.assertNever(P)}function tT(P,q){return wa(P)?is(P,q,P.dotDotDotToken,P.name,P.questionToken,P.type,P.initializer):ps(P)?ft(P,q,P.name,P.questionToken??P.exclamationToken,P.type,P.initializer):Ep(P)?vo(P,q,P.asteriskToken,P.name,P.questionToken,P.typeParameters,P.parameters,P.type,P.body):T0(P)?Ee(P,q,P.name,P.parameters,P.type,P.body):mg(P)?et(P,q,P.name,P.parameters,P.body):w_(P)?Nb(P,q,P.name,P.typeParameters,P.heritageClauses,P.members):ed(P)?a2(P,q,P.name,P.typeParameters,P.heritageClauses,P.members):$.assertNever(P)}function KC(P,q){switch(P.kind){case 178:return Ee(P,P.modifiers,q,P.parameters,P.type,P.body);case 179:return et(P,P.modifiers,q,P.parameters,P.body);case 175:return vo(P,P.modifiers,P.asteriskToken,q,P.questionToken,P.typeParameters,P.parameters,P.type,P.body);case 174:return Wr(P,P.modifiers,q,P.questionToken,P.typeParameters,P.parameters,P.type);case 173:return ft(P,P.modifiers,q,P.questionToken??P.exclamationToken,P.type,P.initializer);case 172:return oo(P,P.modifiers,q,P.questionToken,P.type);case 304:return QP(P,q,P.initializer)}}function gl(P){return P?Z(P):void 0}function Sd(P){return typeof P=="string"?Fe(P):P}function WE(P){return typeof P=="string"?Oe(P):typeof P=="number"?_e(P):typeof P=="boolean"?P?Qe():We():P}function Om(P){return P&&c().parenthesizeExpressionForDisallowedComma(P)}function x7(P){return typeof P=="number"?ke(P):P}function rT(P){return P&&G3e(P)?qt(a(m1(),P),P):P}function $b(P){return typeof P=="string"||P&&!Oo(P)?o2(P,void 0,void 0,void 0):P}function yi(P,q){return P!==q&&(a(P,q),qt(P,q)),P}}function vge(t){switch(t){case 345:return"type";case 343:return"returns";case 344:return"this";case 341:return"enum";case 331:return"author";case 333:return"class";case 334:return"public";case 335:return"private";case 336:return"protected";case 337:return"readonly";case 338:return"override";case 346:return"template";case 347:return"typedef";case 342:return"param";case 349:return"prop";case 339:return"callback";case 340:return"overload";case 329:return"augments";case 330:return"implements";case 352:return"import";default:return $.fail(`Unsupported kind: ${$.formatSyntaxKind(t)}`)}}var gE,Clt={};function xnr(t,n){switch(gE||(gE=B1(99,!1,0)),t){case 15:gE.setText("`"+n+"`");break;case 16:gE.setText("`"+n+"${");break;case 17:gE.setText("}"+n+"${");break;case 18:gE.setText("}"+n+"`");break}let a=gE.scan();if(a===20&&(a=gE.reScanTemplateToken(!1)),gE.isUnterminated())return gE.setText(void 0),Clt;let c;switch(a){case 15:case 16:case 17:case 18:c=gE.getTokenValue();break}return c===void 0||gE.scan()!==1?(gE.setText(void 0),Clt):(gE.setText(void 0),c)}function hC(t){return t&&ct(t)?PH(t):zi(t)}function PH(t){return zi(t)&-67108865}function Tnr(t,n){return n|t.transformFlags&134234112}function zi(t){if(!t)return 0;let n=t.transformFlags&~Enr(t.kind);return Vp(t)&&q_(t.name)?Tnr(t.name,n):n}function al(t){return t?t.transformFlags:0}function Dlt(t){let n=0;for(let a of t)n|=zi(a);t.transformFlags=n}function Enr(t){if(t>=183&&t<=206)return-2;switch(t){case 214:case 215:case 210:return-2147450880;case 268:return-1941676032;case 170:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112;case 207:case 208:return-2147450880;case 217:case 239:case 235:case 356:case 218:case 108:return-2147483648;case 212:case 213:return-2147483648;default:return-2147483648}}var Pne=d3e();function Nne(t){return t.flags|=16,t}var knr={createBaseSourceFileNode:t=>Nne(Pne.createBaseSourceFileNode(t)),createBaseIdentifierNode:t=>Nne(Pne.createBaseIdentifierNode(t)),createBasePrivateIdentifierNode:t=>Nne(Pne.createBasePrivateIdentifierNode(t)),createBaseTokenNode:t=>Nne(Pne.createBaseTokenNode(t)),createBaseNode:t=>Nne(Pne.createBaseNode(t))},W=IH(4,knr),Alt;function wlt(t,n,a){return new(Alt||(Alt=Uf.getSourceMapSourceConstructor()))(t,n,a)}function Yi(t,n){if(t.original!==n&&(t.original=n,n)){let a=n.emitNode;a&&(t.emitNode=Cnr(a,t.emitNode))}return t}function Cnr(t,n){let{flags:a,internalFlags:c,leadingComments:u,trailingComments:_,commentRange:f,sourceMapRange:y,tokenSourceMapRanges:g,constantValue:k,helpers:T,startsOnNewLine:C,snippetElement:O,classThis:F,assignedName:M}=t;if(n||(n={}),a&&(n.flags=a),c&&(n.internalFlags=c&-9),u&&(n.leadingComments=En(u.slice(),n.leadingComments)),_&&(n.trailingComments=En(_.slice(),n.trailingComments)),f&&(n.commentRange=f),y&&(n.sourceMapRange=y),g&&(n.tokenSourceMapRanges=Dnr(g,n.tokenSourceMapRanges)),k!==void 0&&(n.constantValue=k),T)for(let U of T)n.helpers=Jl(n.helpers,U);return C!==void 0&&(n.startsOnNewLine=C),O!==void 0&&(n.snippetElement=O),F&&(n.classThis=F),M&&(n.assignedName=M),n}function Dnr(t,n){n||(n=[]);for(let a in t)n[a]=t[a];return n}function nm(t){if(t.emitNode)$.assert(!(t.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(I4(t)){if(t.kind===308)return t.emitNode={annotatedNodes:[t]};let n=Pn(vs(Pn(t)))??$.fail("Could not determine parsed source file.");nm(n).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function Sge(t){var n,a;let c=(a=(n=Pn(vs(t)))==null?void 0:n.emitNode)==null?void 0:a.annotatedNodes;if(c)for(let u of c)u.emitNode=void 0}function NH(t){let n=nm(t);return n.flags|=3072,n.leadingComments=void 0,n.trailingComments=void 0,t}function Ai(t,n){return nm(t).flags=n,t}function CS(t,n){let a=nm(t);return a.flags=a.flags|n,t}function OH(t,n){return nm(t).internalFlags=n,t}function e3(t,n){let a=nm(t);return a.internalFlags=a.internalFlags|n,t}function yE(t){var n;return((n=t.emitNode)==null?void 0:n.sourceMapRange)??t}function Jc(t,n){return nm(t).sourceMapRange=n,t}function Ilt(t,n){var a,c;return(c=(a=t.emitNode)==null?void 0:a.tokenSourceMapRanges)==null?void 0:c[n]}function v3e(t,n,a){let c=nm(t),u=c.tokenSourceMapRanges??(c.tokenSourceMapRanges=[]);return u[n]=a,t}function rz(t){var n;return(n=t.emitNode)==null?void 0:n.startsOnNewLine}function One(t,n){return nm(t).startsOnNewLine=n,t}function DS(t){var n;return((n=t.emitNode)==null?void 0:n.commentRange)??t}function Y_(t,n){return nm(t).commentRange=n,t}function _L(t){var n;return(n=t.emitNode)==null?void 0:n.leadingComments}function SA(t,n){return nm(t).leadingComments=n,t}function gC(t,n,a,c){return SA(t,jt(_L(t),{kind:n,pos:-1,end:-1,hasTrailingNewLine:c,text:a}))}function FH(t){var n;return(n=t.emitNode)==null?void 0:n.trailingComments}function uF(t,n){return nm(t).trailingComments=n,t}function nz(t,n,a,c){return uF(t,jt(FH(t),{kind:n,pos:-1,end:-1,hasTrailingNewLine:c,text:a}))}function S3e(t,n){SA(t,_L(n)),uF(t,FH(n));let a=nm(n);return a.leadingComments=void 0,a.trailingComments=void 0,t}function b3e(t){var n;return(n=t.emitNode)==null?void 0:n.constantValue}function x3e(t,n){let a=nm(t);return a.constantValue=n,t}function pF(t,n){let a=nm(t);return a.helpers=jt(a.helpers,n),t}function Ux(t,n){if(Pt(n)){let a=nm(t);for(let c of n)a.helpers=Jl(a.helpers,c)}return t}function Plt(t,n){var a;let c=(a=t.emitNode)==null?void 0:a.helpers;return c?IT(c,n):!1}function bge(t){var n;return(n=t.emitNode)==null?void 0:n.helpers}function T3e(t,n,a){let c=t.emitNode,u=c&&c.helpers;if(!Pt(u))return;let _=nm(n),f=0;for(let y=0;y0&&(u[y-f]=g)}f>0&&(u.length-=f)}function xge(t){var n;return(n=t.emitNode)==null?void 0:n.snippetElement}function Tge(t,n){let a=nm(t);return a.snippetElement=n,t}function Ege(t){return nm(t).internalFlags|=4,t}function E3e(t,n){let a=nm(t);return a.typeNode=n,t}function k3e(t){var n;return(n=t.emitNode)==null?void 0:n.typeNode}function vE(t,n){return nm(t).identifierTypeArguments=n,t}function t3(t){var n;return(n=t.emitNode)==null?void 0:n.identifierTypeArguments}function RH(t,n){return nm(t).autoGenerate=n,t}function Nlt(t){var n;return(n=t.emitNode)==null?void 0:n.autoGenerate}function C3e(t,n){return nm(t).generatedImportReference=n,t}function D3e(t){var n;return(n=t.emitNode)==null?void 0:n.generatedImportReference}var A3e=(t=>(t.Field="f",t.Method="m",t.Accessor="a",t))(A3e||{});function w3e(t){let n=t.factory,a=Ef(()=>OH(n.createTrue(),8)),c=Ef(()=>OH(n.createFalse(),8));return{getUnscopedHelperName:u,createDecorateHelper:_,createMetadataHelper:f,createParamHelper:y,createESDecorateHelper:U,createRunInitializersHelper:J,createAssignHelper:G,createAwaitHelper:Z,createAsyncGeneratorHelper:Q,createAsyncDelegatorHelper:re,createAsyncValuesHelper:ae,createRestHelper:_e,createAwaiterHelper:me,createExtendsHelper:le,createTemplateObjectHelper:Oe,createSpreadArrayHelper:be,createPropKeyHelper:ue,createSetFunctionNameHelper:De,createValuesHelper:Ce,createReadHelper:Ae,createGeneratorHelper:Fe,createImportStarHelper:Be,createImportStarCallbackHelper:de,createImportDefaultHelper:ze,createExportStarHelper:ut,createClassPrivateFieldGetHelper:je,createClassPrivateFieldSetHelper:ve,createClassPrivateFieldInHelper:Le,createAddDisposableResourceHelper:Ve,createDisposeResourcesHelper:nt,createRewriteRelativeImportExtensionsHelper:It};function u(ke){return Ai(n.createIdentifier(ke),8196)}function _(ke,_t,Se,tt){t.requestEmitHelper(Anr);let Qe=[];return Qe.push(n.createArrayLiteralExpression(ke,!0)),Qe.push(_t),Se&&(Qe.push(Se),tt&&Qe.push(tt)),n.createCallExpression(u("__decorate"),void 0,Qe)}function f(ke,_t){return t.requestEmitHelper(wnr),n.createCallExpression(u("__metadata"),void 0,[n.createStringLiteral(ke),_t])}function y(ke,_t,Se){return t.requestEmitHelper(Inr),qt(n.createCallExpression(u("__param"),void 0,[n.createNumericLiteral(_t+""),ke]),Se)}function g(ke){let _t=[n.createPropertyAssignment(n.createIdentifier("kind"),n.createStringLiteral("class")),n.createPropertyAssignment(n.createIdentifier("name"),ke.name),n.createPropertyAssignment(n.createIdentifier("metadata"),ke.metadata)];return n.createObjectLiteralExpression(_t)}function k(ke){let _t=ke.computed?n.createElementAccessExpression(n.createIdentifier("obj"),ke.name):n.createPropertyAccessExpression(n.createIdentifier("obj"),ke.name);return n.createPropertyAssignment("get",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj"))],void 0,void 0,_t))}function T(ke){let _t=ke.computed?n.createElementAccessExpression(n.createIdentifier("obj"),ke.name):n.createPropertyAccessExpression(n.createIdentifier("obj"),ke.name);return n.createPropertyAssignment("set",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj")),n.createParameterDeclaration(void 0,void 0,n.createIdentifier("value"))],void 0,void 0,n.createBlock([n.createExpressionStatement(n.createAssignment(_t,n.createIdentifier("value")))])))}function C(ke){let _t=ke.computed?ke.name:ct(ke.name)?n.createStringLiteralFromNode(ke.name):ke.name;return n.createPropertyAssignment("has",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj"))],void 0,void 0,n.createBinaryExpression(_t,103,n.createIdentifier("obj"))))}function O(ke,_t){let Se=[];return Se.push(C(ke)),_t.get&&Se.push(k(ke)),_t.set&&Se.push(T(ke)),n.createObjectLiteralExpression(Se)}function F(ke){let _t=[n.createPropertyAssignment(n.createIdentifier("kind"),n.createStringLiteral(ke.kind)),n.createPropertyAssignment(n.createIdentifier("name"),ke.name.computed?ke.name.name:n.createStringLiteralFromNode(ke.name.name)),n.createPropertyAssignment(n.createIdentifier("static"),ke.static?n.createTrue():n.createFalse()),n.createPropertyAssignment(n.createIdentifier("private"),ke.private?n.createTrue():n.createFalse()),n.createPropertyAssignment(n.createIdentifier("access"),O(ke.name,ke.access)),n.createPropertyAssignment(n.createIdentifier("metadata"),ke.metadata)];return n.createObjectLiteralExpression(_t)}function M(ke){return ke.kind==="class"?g(ke):F(ke)}function U(ke,_t,Se,tt,Qe,We){return t.requestEmitHelper(Pnr),n.createCallExpression(u("__esDecorate"),void 0,[ke??n.createNull(),_t??n.createNull(),Se,M(tt),Qe,We])}function J(ke,_t,Se){return t.requestEmitHelper(Nnr),n.createCallExpression(u("__runInitializers"),void 0,Se?[ke,_t,Se]:[ke,_t])}function G(ke){return $c(t.getCompilerOptions())>=2?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"assign"),void 0,ke):(t.requestEmitHelper(Onr),n.createCallExpression(u("__assign"),void 0,ke))}function Z(ke){return t.requestEmitHelper(Fne),n.createCallExpression(u("__await"),void 0,[ke])}function Q(ke,_t){return t.requestEmitHelper(Fne),t.requestEmitHelper(Fnr),(ke.emitNode||(ke.emitNode={})).flags|=1572864,n.createCallExpression(u("__asyncGenerator"),void 0,[_t?n.createThis():n.createVoidZero(),n.createIdentifier("arguments"),ke])}function re(ke){return t.requestEmitHelper(Fne),t.requestEmitHelper(Rnr),n.createCallExpression(u("__asyncDelegator"),void 0,[ke])}function ae(ke){return t.requestEmitHelper(Lnr),n.createCallExpression(u("__asyncValues"),void 0,[ke])}function _e(ke,_t,Se,tt){t.requestEmitHelper(Mnr);let Qe=[],We=0;for(let St=0;St<_t.length-1;St++){let Kt=Xge(_t[St]);if(Kt)if(dc(Kt)){$.assertIsDefined(Se,"Encountered computed property name but 'computedTempVariables' argument was not provided.");let Sr=Se[We];We++,Qe.push(n.createConditionalExpression(n.createTypeCheck(Sr,"symbol"),void 0,Sr,void 0,n.createAdd(Sr,n.createStringLiteral(""))))}else Qe.push(n.createStringLiteralFromNode(Kt))}return n.createCallExpression(u("__rest"),void 0,[ke,qt(n.createArrayLiteralExpression(Qe),tt)])}function me(ke,_t,Se,tt,Qe){t.requestEmitHelper(jnr);let We=n.createFunctionExpression(void 0,n.createToken(42),void 0,void 0,tt??[],void 0,Qe);return(We.emitNode||(We.emitNode={})).flags|=1572864,n.createCallExpression(u("__awaiter"),void 0,[ke?n.createThis():n.createVoidZero(),_t??n.createVoidZero(),Se?JH(n,Se):n.createVoidZero(),We])}function le(ke){return t.requestEmitHelper(Bnr),n.createCallExpression(u("__extends"),void 0,[ke,n.createUniqueName("_super",48)])}function Oe(ke,_t){return t.requestEmitHelper($nr),n.createCallExpression(u("__makeTemplateObject"),void 0,[ke,_t])}function be(ke,_t,Se){return t.requestEmitHelper(znr),n.createCallExpression(u("__spreadArray"),void 0,[ke,_t,Se?a():c()])}function ue(ke){return t.requestEmitHelper(qnr),n.createCallExpression(u("__propKey"),void 0,[ke])}function De(ke,_t,Se){return t.requestEmitHelper(Jnr),t.factory.createCallExpression(u("__setFunctionName"),void 0,Se?[ke,_t,t.factory.createStringLiteral(Se)]:[ke,_t])}function Ce(ke){return t.requestEmitHelper(Vnr),n.createCallExpression(u("__values"),void 0,[ke])}function Ae(ke,_t){return t.requestEmitHelper(Unr),n.createCallExpression(u("__read"),void 0,_t!==void 0?[ke,n.createNumericLiteral(_t+"")]:[ke])}function Fe(ke){return t.requestEmitHelper(Wnr),n.createCallExpression(u("__generator"),void 0,[n.createThis(),ke])}function Be(ke){return t.requestEmitHelper(Flt),n.createCallExpression(u("__importStar"),void 0,[ke])}function de(){return t.requestEmitHelper(Flt),u("__importStar")}function ze(ke){return t.requestEmitHelper(Hnr),n.createCallExpression(u("__importDefault"),void 0,[ke])}function ut(ke,_t=n.createIdentifier("exports")){return t.requestEmitHelper(Knr),t.requestEmitHelper(P3e),n.createCallExpression(u("__exportStar"),void 0,[ke,_t])}function je(ke,_t,Se,tt){t.requestEmitHelper(Qnr);let Qe;return tt?Qe=[ke,_t,n.createStringLiteral(Se),tt]:Qe=[ke,_t,n.createStringLiteral(Se)],n.createCallExpression(u("__classPrivateFieldGet"),void 0,Qe)}function ve(ke,_t,Se,tt,Qe){t.requestEmitHelper(Znr);let We;return Qe?We=[ke,_t,Se,n.createStringLiteral(tt),Qe]:We=[ke,_t,Se,n.createStringLiteral(tt)],n.createCallExpression(u("__classPrivateFieldSet"),void 0,We)}function Le(ke,_t){return t.requestEmitHelper(Xnr),n.createCallExpression(u("__classPrivateFieldIn"),void 0,[ke,_t])}function Ve(ke,_t,Se){return t.requestEmitHelper(Ynr),n.createCallExpression(u("__addDisposableResource"),void 0,[ke,_t,Se?n.createTrue():n.createFalse()])}function nt(ke){return t.requestEmitHelper(eir),n.createCallExpression(u("__disposeResources"),void 0,[ke])}function It(ke){return t.requestEmitHelper(tir),n.createCallExpression(u("__rewriteRelativeImportExtension"),void 0,t.getCompilerOptions().jsx===1?[ke,n.createTrue()]:[ke])}}function I3e(t,n){return t===n||t.priority===n.priority?0:t.priority===void 0?1:n.priority===void 0?-1:Br(t.priority,n.priority)}function Olt(t,...n){return a=>{let c="";for(let u=0;u= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - };`},wnr={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:` - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - };`},Inr={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:` - var __param = (this && this.__param) || function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - };`},Pnr={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:` - var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { - function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } - var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; - var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; - var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); - var _, done = false; - for (var i = decorators.length - 1; i >= 0; i--) { - var context = {}; - for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; - for (var p in contextIn.access) context.access[p] = contextIn.access[p]; - context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; - var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); - if (kind === "accessor") { - if (result === void 0) continue; - if (result === null || typeof result !== "object") throw new TypeError("Object expected"); - if (_ = accept(result.get)) descriptor.get = _; - if (_ = accept(result.set)) descriptor.set = _; - if (_ = accept(result.init)) initializers.unshift(_); - } - else if (_ = accept(result)) { - if (kind === "field") initializers.unshift(_); - else descriptor[key] = _; - } - } - if (target) Object.defineProperty(target, contextIn.name, descriptor); - done = true; - };`},Nnr={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:` - var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { - var useValue = arguments.length > 2; - for (var i = 0; i < initializers.length; i++) { - value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); - } - return useValue ? value : void 0; - };`},Onr={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:` - var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); - };`},Fne={name:"typescript:await",importName:"__await",scoped:!1,text:` - var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},Fnr={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[Fne],text:` - var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; - function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } - function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - };`},Rnr={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[Fne],text:` - var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } - };`},Lnr={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:` - var __asyncValues = (this && this.__asyncValues) || function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - };`},Mnr={name:"typescript:rest",importName:"__rest",scoped:!1,text:` - var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - };`},jnr={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:` - var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - };`},Bnr={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` - var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - })();`},$nr={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:` - var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - };`},Unr={name:"typescript:read",importName:"__read",scoped:!1,text:` - var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - };`},znr={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:` - var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); - };`},qnr={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` - var __propKey = (this && this.__propKey) || function (x) { - return typeof x === "symbol" ? x : "".concat(x); - };`},Jnr={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:` - var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { - if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; - return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); - };`},Vnr={name:"typescript:values",importName:"__values",scoped:!1,text:` - var __values = (this && this.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - };`},Wnr={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` - var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); - return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (g && (g = 0, op[0] && (_ = 0)), _) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - };`},P3e={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` - var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); - }) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }));`},Gnr={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:` - var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - }) : function(o, v) { - o["default"] = v; - });`},Flt={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[P3e,Gnr],priority:2,text:` - var __importStar = (this && this.__importStar) || (function () { - var ownKeys = function(o) { - ownKeys = Object.getOwnPropertyNames || function (o) { - var ar = []; - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; - return ar; - }; - return ownKeys(o); - }; - return function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); - __setModuleDefault(result, mod); - return result; - }; - })();`},Hnr={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` - var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - };`},Knr={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[P3e],priority:2,text:` - var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); - };`},Qnr={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` - var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); - };`},Znr={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:` - var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; - };`},Xnr={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:` - var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) { - if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); - return typeof state === "function" ? receiver === state : state.has(receiver); - };`},Ynr={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:` - var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { - if (value !== null && value !== void 0) { - if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); - var dispose, inner; - if (async) { - if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); - dispose = value[Symbol.asyncDispose]; - } - if (dispose === void 0) { - if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); - dispose = value[Symbol.dispose]; - if (async) inner = dispose; - } - if (typeof dispose !== "function") throw new TypeError("Object not disposable."); - if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; - env.stack.push({ value: value, dispose: dispose, async: async }); - } - else if (async) { - env.stack.push({ async: true }); - } - return value; - };`},eir={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` - var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { - return function (env) { - function fail(e) { - env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; - env.hasError = true; - } - var r, s = 0; - function next() { - while (r = env.stack.pop()) { - try { - if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); - if (r.dispose) { - var result = r.dispose.call(r.value); - if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); - } - else s |= 1; - } - catch (e) { - fail(e); - } - } - if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); - if (env.hasError) throw env.error; - } - return next(); - }; - })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { - var e = new Error(message); - return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; - });`},tir={name:"typescript:rewriteRelativeImportExtensions",importName:"__rewriteRelativeImportExtension",scoped:!1,text:` - var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) { - if (typeof path === "string" && /^\\.\\.?\\//.test(path)) { - return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { - return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js"); - }); - } - return path; - };`},Rne={name:"typescript:async-super",scoped:!0,text:Olt` - const ${"_superIndex"} = name => super[name];`},Lne={name:"typescript:advanced-async-super",scoped:!0,text:Olt` - const ${"_superIndex"} = (function (geti, seti) { - const cache = Object.create(null); - return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); - })(name => super[name], (name, value) => super[name] = value);`};function iz(t,n){return Js(t)&&ct(t.expression)&&(Xc(t.expression)&8192)!==0&&t.expression.escapedText===n}function qh(t){return t.kind===9}function dL(t){return t.kind===10}function Ic(t){return t.kind===11}function _F(t){return t.kind===12}function kge(t){return t.kind===14}function r3(t){return t.kind===15}function dF(t){return t.kind===16}function Cge(t){return t.kind===17}function Mne(t){return t.kind===18}function jne(t){return t.kind===26}function N3e(t){return t.kind===28}function Dge(t){return t.kind===40}function Age(t){return t.kind===41}function LH(t){return t.kind===42}function MH(t){return t.kind===54}function yC(t){return t.kind===58}function O3e(t){return t.kind===59}function Bne(t){return t.kind===29}function F3e(t){return t.kind===39}function ct(t){return t.kind===80}function Aa(t){return t.kind===81}function fF(t){return t.kind===95}function $ne(t){return t.kind===90}function oz(t){return t.kind===134}function R3e(t){return t.kind===131}function wge(t){return t.kind===135}function L3e(t){return t.kind===148}function mF(t){return t.kind===126}function M3e(t){return t.kind===128}function j3e(t){return t.kind===164}function Ige(t){return t.kind===129}function az(t){return t.kind===108}function sz(t){return t.kind===102}function B3e(t){return t.kind===84}function dh(t){return t.kind===167}function dc(t){return t.kind===168}function Zu(t){return t.kind===169}function wa(t){return t.kind===170}function hd(t){return t.kind===171}function Zm(t){return t.kind===172}function ps(t){return t.kind===173}function G1(t){return t.kind===174}function Ep(t){return t.kind===175}function n_(t){return t.kind===176}function kp(t){return t.kind===177}function T0(t){return t.kind===178}function mg(t){return t.kind===179}function hF(t){return t.kind===180}function cz(t){return t.kind===181}function vC(t){return t.kind===182}function gF(t){return t.kind===183}function Ug(t){return t.kind===184}function Cb(t){return t.kind===185}function fL(t){return t.kind===186}function gP(t){return t.kind===187}function fh(t){return t.kind===188}function jH(t){return t.kind===189}function yF(t){return t.kind===190}function mL(t){return t.kind===203}function Une(t){return t.kind===191}function zne(t){return t.kind===192}function SE(t){return t.kind===193}function vF(t){return t.kind===194}function yP(t){return t.kind===195}function n3(t){return t.kind===196}function i3(t){return t.kind===197}function lz(t){return t.kind===198}function bA(t){return t.kind===199}function vP(t){return t.kind===200}function o3(t){return t.kind===201}function bE(t){return t.kind===202}function AS(t){return t.kind===206}function Pge(t){return t.kind===205}function $3e(t){return t.kind===204}function $y(t){return t.kind===207}function xE(t){return t.kind===208}function Vc(t){return t.kind===209}function qf(t){return t.kind===210}function Lc(t){return t.kind===211}function no(t){return t.kind===212}function mu(t){return t.kind===213}function Js(t){return t.kind===214}function SP(t){return t.kind===215}function xA(t){return t.kind===216}function qne(t){return t.kind===217}function mh(t){return t.kind===218}function bu(t){return t.kind===219}function Iu(t){return t.kind===220}function U3e(t){return t.kind===221}function hL(t){return t.kind===222}function SF(t){return t.kind===223}function SC(t){return t.kind===224}function TA(t){return t.kind===225}function Nge(t){return t.kind===226}function wi(t){return t.kind===227}function a3(t){return t.kind===228}function Jne(t){return t.kind===229}function BH(t){return t.kind===230}function E0(t){return t.kind===231}function w_(t){return t.kind===232}function Id(t){return t.kind===233}function VT(t){return t.kind===234}function gL(t){return t.kind===235}function yL(t){return t.kind===239}function bF(t){return t.kind===236}function s3(t){return t.kind===237}function Rlt(t){return t.kind===238}function z3e(t){return t.kind===356}function uz(t){return t.kind===357}function vL(t){return t.kind===240}function q3e(t){return t.kind===241}function Vs(t){return t.kind===242}function h_(t){return t.kind===244}function Oge(t){return t.kind===243}function af(t){return t.kind===245}function EA(t){return t.kind===246}function Llt(t){return t.kind===247}function Fge(t){return t.kind===248}function kA(t){return t.kind===249}function Vne(t){return t.kind===250}function $H(t){return t.kind===251}function Mlt(t){return t.kind===252}function jlt(t){return t.kind===253}function gy(t){return t.kind===254}function J3e(t){return t.kind===255}function pz(t){return t.kind===256}function bC(t){return t.kind===257}function Rge(t){return t.kind===258}function c3(t){return t.kind===259}function Blt(t){return t.kind===260}function Oo(t){return t.kind===261}function Df(t){return t.kind===262}function i_(t){return t.kind===263}function ed(t){return t.kind===264}function Af(t){return t.kind===265}function s1(t){return t.kind===266}function CA(t){return t.kind===267}function I_(t){return t.kind===268}function wS(t){return t.kind===269}function _z(t){return t.kind===270}function UH(t){return t.kind===271}function gd(t){return t.kind===272}function fp(t){return t.kind===273}function H1(t){return t.kind===274}function $lt(t){return t.kind===303}function V3e(t){return t.kind===301}function Ult(t){return t.kind===302}function l3(t){return t.kind===301}function W3e(t){return t.kind===302}function zx(t){return t.kind===275}function Db(t){return t.kind===281}function IS(t){return t.kind===276}function Xm(t){return t.kind===277}function Xu(t){return t.kind===278}function P_(t){return t.kind===279}function k0(t){return t.kind===280}function Cm(t){return t.kind===282}function Wne(t){return t.kind===80||t.kind===11}function zlt(t){return t.kind===283}function G3e(t){return t.kind===354}function xF(t){return t.kind===358}function WT(t){return t.kind===284}function PS(t){return t.kind===285}function u3(t){return t.kind===286}function Tv(t){return t.kind===287}function bP(t){return t.kind===288}function DA(t){return t.kind===289}function K1(t){return t.kind===290}function H3e(t){return t.kind===291}function NS(t){return t.kind===292}function xP(t){return t.kind===293}function TF(t){return t.kind===294}function SL(t){return t.kind===295}function Ev(t){return t.kind===296}function bL(t){return t.kind===297}function dz(t){return t.kind===298}function zg(t){return t.kind===299}function TP(t){return t.kind===300}function td(t){return t.kind===304}function im(t){return t.kind===305}function qx(t){return t.kind===306}function GT(t){return t.kind===307}function Ta(t){return t.kind===308}function K3e(t){return t.kind===309}function AA(t){return t.kind===310}function fz(t){return t.kind===311}function wA(t){return t.kind===312}function Q3e(t){return t.kind===325}function Z3e(t){return t.kind===326}function qlt(t){return t.kind===327}function X3e(t){return t.kind===313}function Y3e(t){return t.kind===314}function xL(t){return t.kind===315}function Gne(t){return t.kind===316}function Lge(t){return t.kind===317}function TL(t){return t.kind===318}function Hne(t){return t.kind===319}function Jlt(t){return t.kind===320}function kv(t){return t.kind===321}function p3(t){return t.kind===323}function TE(t){return t.kind===324}function EF(t){return t.kind===329}function Vlt(t){return t.kind===331}function eNe(t){return t.kind===333}function Mge(t){return t.kind===339}function jge(t){return t.kind===334}function Bge(t){return t.kind===335}function $ge(t){return t.kind===336}function Uge(t){return t.kind===337}function Kne(t){return t.kind===338}function EL(t){return t.kind===340}function zge(t){return t.kind===332}function Wlt(t){return t.kind===348}function zH(t){return t.kind===341}function Uy(t){return t.kind===342}function Qne(t){return t.kind===343}function qge(t){return t.kind===344}function mz(t){return t.kind===345}function c1(t){return t.kind===346}function _3(t){return t.kind===347}function Glt(t){return t.kind===328}function tNe(t){return t.kind===349}function Zne(t){return t.kind===330}function Xne(t){return t.kind===351}function Hlt(t){return t.kind===350}function OS(t){return t.kind===352}function kL(t){return t.kind===353}var hz=new WeakMap;function Jge(t,n){var a;let c=t.kind;return Ute(c)?c===353?t._children:(a=hz.get(n))==null?void 0:a.get(t):j}function rNe(t,n,a){t.kind===353&&$.fail("Should not need to re-set the children of a SyntaxList.");let c=hz.get(n);return c===void 0&&(c=new WeakMap,hz.set(n,c)),c.set(t,a),a}function Vge(t,n){var a;t.kind===353&&$.fail("Did not expect to unset the children of a SyntaxList."),(a=hz.get(n))==null||a.delete(t)}function nNe(t,n){let a=hz.get(t);a!==void 0&&(hz.delete(t),hz.set(n,a))}function qH(t){return t.createExportDeclaration(void 0,!1,t.createNamedExports([]),void 0)}function d3(t,n,a,c){if(dc(a))return qt(t.createElementAccessExpression(n,a.expression),c);{let u=qt(Dx(a)?t.createPropertyAccessExpression(n,a):t.createElementAccessExpression(n,a),a);return CS(u,128),u}}function iNe(t,n){let a=PA.createIdentifier(t||"React");return xl(a,vs(n)),a}function oNe(t,n,a){if(dh(n)){let c=oNe(t,n.left,a),u=t.createIdentifier(Zi(n.right));return u.escapedText=n.right.escapedText,t.createPropertyAccessExpression(c,u)}else return iNe(Zi(n),a)}function Wge(t,n,a,c){return n?oNe(t,n,c):t.createPropertyAccessExpression(iNe(a,c),"createElement")}function rir(t,n,a,c){return n?oNe(t,n,c):t.createPropertyAccessExpression(iNe(a,c),"Fragment")}function aNe(t,n,a,c,u,_){let f=[a];if(c&&f.push(c),u&&u.length>0)if(c||f.push(t.createNull()),u.length>1)for(let y of u)Dm(y),f.push(y);else f.push(u[0]);return qt(t.createCallExpression(n,void 0,f),_)}function sNe(t,n,a,c,u,_,f){let g=[rir(t,a,c,_),t.createNull()];if(u&&u.length>0)if(u.length>1)for(let k of u)Dm(k),g.push(k);else g.push(u[0]);return qt(t.createCallExpression(Wge(t,n,c,_),void 0,g),f)}function Gge(t,n,a){if(Df(n)){let c=To(n.declarations),u=t.updateVariableDeclaration(c,c.name,void 0,void 0,a);return qt(t.createVariableStatement(void 0,t.updateVariableDeclarationList(n,[u])),n)}else{let c=qt(t.createAssignment(n,a),n);return qt(t.createExpressionStatement(c),n)}}function JH(t,n){if(dh(n)){let a=JH(t,n.left),c=xl(qt(t.cloneNode(n.right),n.right),n.right.parent);return qt(t.createPropertyAccessExpression(a,c),n)}else return xl(qt(t.cloneNode(n),n),n.parent)}function Hge(t,n){return ct(n)?t.createStringLiteralFromNode(n):dc(n)?xl(qt(t.cloneNode(n.expression),n.expression),n.expression.parent):xl(qt(t.cloneNode(n),n),n.parent)}function nir(t,n,a,c,u){let{firstAccessor:_,getAccessor:f,setAccessor:y}=uP(n,a);if(a===_)return qt(t.createObjectDefinePropertyCall(c,Hge(t,a.name),t.createPropertyDescriptor({enumerable:t.createFalse(),configurable:!0,get:f&&qt(Yi(t.createFunctionExpression(Qk(f),void 0,void 0,void 0,f.parameters,void 0,f.body),f),f),set:y&&qt(Yi(t.createFunctionExpression(Qk(y),void 0,void 0,void 0,y.parameters,void 0,y.body),y),y)},!u)),_)}function iir(t,n,a){return Yi(qt(t.createAssignment(d3(t,a,n.name,n.name),n.initializer),n),n)}function oir(t,n,a){return Yi(qt(t.createAssignment(d3(t,a,n.name,n.name),t.cloneNode(n.name)),n),n)}function air(t,n,a){return Yi(qt(t.createAssignment(d3(t,a,n.name,n.name),Yi(qt(t.createFunctionExpression(Qk(n),n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n)}function cNe(t,n,a,c){switch(a.name&&Aa(a.name)&&$.failBadSyntaxKind(a.name,"Private identifiers are not allowed in object literals."),a.kind){case 178:case 179:return nir(t,n.properties,a,c,!!n.multiLine);case 304:return iir(t,a,c);case 305:return oir(t,a,c);case 175:return air(t,a,c)}}function Yne(t,n,a,c,u){let _=n.operator;$.assert(_===46||_===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let f=t.createTempVariable(c);a=t.createAssignment(f,a),qt(a,n.operand);let y=TA(n)?t.createPrefixUnaryExpression(_,f):t.createPostfixUnaryExpression(f,_);return qt(y,n),u&&(y=t.createAssignment(u,y),qt(y,n)),a=t.createComma(a,y),qt(a,n),Nge(n)&&(a=t.createComma(a,f),qt(a,n)),a}function Kge(t){return(Xc(t)&65536)!==0}function HT(t){return(Xc(t)&32768)!==0}function eie(t){return(Xc(t)&16384)!==0}function Klt(t){return Ic(t.expression)&&t.expression.text==="use strict"}function Qge(t){for(let n of t)if(yS(n)){if(Klt(n))return n}else break}function lNe(t){let n=pi(t);return n!==void 0&&yS(n)&&Klt(n)}function VH(t){return t.kind===227&&t.operatorToken.kind===28}function gz(t){return VH(t)||uz(t)}function EP(t){return mh(t)&&Ei(t)&&!!mv(t)}function CL(t){let n=hv(t);return $.assertIsDefined(n),n}function tie(t,n=63){switch(t.kind){case 218:return n&-2147483648&&EP(t)?!1:(n&1)!==0;case 217:case 235:return(n&2)!==0;case 239:return(n&34)!==0;case 234:return(n&16)!==0;case 236:return(n&4)!==0;case 356:return(n&8)!==0}return!1}function Wp(t,n=63){for(;tie(t,n);)t=t.expression;return t}function uNe(t,n=63){let a=t.parent;for(;tie(a,n);)a=a.parent,$.assert(a);return a}function Dm(t){return One(t,!0)}function WH(t){let n=Ku(t,Ta),a=n&&n.emitNode;return a&&a.externalHelpersModuleName}function pNe(t){let n=Ku(t,Ta),a=n&&n.emitNode;return!!a&&(!!a.externalHelpersModuleName||!!a.externalHelpers)}function Zge(t,n,a,c,u,_,f){if(c.importHelpers&&$R(a,c)){let y=Km(c),g=b3(a,c),k=sir(a);if(g!==1&&(y>=5&&y<=99||g===99||g===void 0&&y===200)){if(k){let T=[];for(let C of k){let O=C.importName;O&&Zc(T,O)}if(Pt(T)){T.sort(Su);let C=t.createNamedImports(Cr(T,U=>ire(a,U)?t.createImportSpecifier(!1,void 0,t.createIdentifier(U)):t.createImportSpecifier(!1,t.createIdentifier(U),n.getUnscopedHelperName(U)))),O=Ku(a,Ta),F=nm(O);F.externalHelpers=!0;let M=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,C),t.createStringLiteral(nC),void 0);return e3(M,2),M}}}else{let T=cir(t,a,c,k,u,_||f);if(T){let C=t.createImportEqualsDeclaration(void 0,!1,T,t.createExternalModuleReference(t.createStringLiteral(nC)));return e3(C,2),C}}}}function sir(t){return yr(bge(t),n=>!n.scoped)}function cir(t,n,a,c,u,_){let f=WH(n);if(f)return f;if(Pt(c)||(u||kS(a)&&_)&&zz(n,a)<4){let g=Ku(n,Ta),k=nm(g);return k.externalHelpersModuleName||(k.externalHelpersModuleName=t.createUniqueName(nC))}}function DL(t,n,a){let c=HR(n);if(c&&!W4(n)&&!are(n)){let u=c.name;return u.kind===11?t.getGeneratedNameForNode(n):ap(u)?u:t.createIdentifier(XI(a,u)||Zi(u))}if(n.kind===273&&n.importClause||n.kind===279&&n.moduleSpecifier)return t.getGeneratedNameForNode(n)}function kF(t,n,a,c,u,_){let f=JO(n);if(f&&Ic(f))return uir(n,c,t,u,_)||lir(t,f,a)||t.cloneNode(f)}function lir(t,n,a){let c=a.renamedDependencies&&a.renamedDependencies.get(n.text);return c?t.createStringLiteral(c):void 0}function GH(t,n,a,c){if(n){if(n.moduleName)return t.createStringLiteral(n.moduleName);if(!n.isDeclarationFile&&c.outFile)return t.createStringLiteral(_he(a,n.fileName))}}function uir(t,n,a,c,u){return GH(a,c.getExternalModuleFileFromDeclaration(t),n,u)}function HH(t){if(cG(t))return t.initializer;if(td(t)){let n=t.initializer;return of(n,!0)?n.right:void 0}if(im(t))return t.objectAssignmentInitializer;if(of(t,!0))return t.right;if(E0(t))return HH(t.expression)}function xC(t){if(cG(t))return t.name;if(MT(t)){switch(t.kind){case 304:return xC(t.initializer);case 305:return t.name;case 306:return xC(t.expression)}return}return of(t,!0)?xC(t.left):E0(t)?xC(t.expression):t}function rie(t){switch(t.kind){case 170:case 209:return t.dotDotDotToken;case 231:case 306:return t}}function Xge(t){let n=nie(t);return $.assert(!!n||qx(t),"Invalid property name for binding element."),n}function nie(t){switch(t.kind){case 209:if(t.propertyName){let a=t.propertyName;return Aa(a)?$.failBadSyntaxKind(a):dc(a)&&Qlt(a.expression)?a.expression:a}break;case 304:if(t.name){let a=t.name;return Aa(a)?$.failBadSyntaxKind(a):dc(a)&&Qlt(a.expression)?a.expression:a}break;case 306:return t.name&&Aa(t.name)?$.failBadSyntaxKind(t.name):t.name}let n=xC(t);if(n&&q_(n))return n}function Qlt(t){let n=t.kind;return n===11||n===9}function AL(t){switch(t.kind){case 207:case 208:case 210:return t.elements;case 211:return t.properties}}function Yge(t){if(t){let n=t;for(;;){if(ct(n)||!n.body)return ct(n)?n:n.name;n=n.body}}}function Zlt(t){let n=t.kind;return n===177||n===179}function _Ne(t){let n=t.kind;return n===177||n===178||n===179}function eye(t){let n=t.kind;return n===304||n===305||n===263||n===177||n===182||n===176||n===283||n===244||n===265||n===266||n===267||n===268||n===272||n===273||n===271||n===279||n===278}function dNe(t){let n=t.kind;return n===176||n===304||n===305||n===283||n===271}function fNe(t){return yC(t)||MH(t)}function mNe(t){return ct(t)||lz(t)}function hNe(t){return L3e(t)||Dge(t)||Age(t)}function gNe(t){return yC(t)||Dge(t)||Age(t)}function yNe(t){return ct(t)||Ic(t)}function pir(t){return t===43}function _ir(t){return t===42||t===44||t===45}function dir(t){return pir(t)||_ir(t)}function fir(t){return t===40||t===41}function mir(t){return fir(t)||dir(t)}function hir(t){return t===48||t===49||t===50}function tye(t){return hir(t)||mir(t)}function gir(t){return t===30||t===33||t===32||t===34||t===104||t===103}function yir(t){return gir(t)||tye(t)}function vir(t){return t===35||t===37||t===36||t===38}function Sir(t){return vir(t)||yir(t)}function bir(t){return t===51||t===52||t===53}function xir(t){return bir(t)||Sir(t)}function Tir(t){return t===56||t===57}function Eir(t){return Tir(t)||xir(t)}function kir(t){return t===61||Eir(t)||zT(t)}function Cir(t){return kir(t)||t===28}function vNe(t){return Cir(t.kind)}var rye;(t=>{function n(T,C,O,F,M,U,J){let G=C>0?M[C-1]:void 0;return $.assertEqual(O[C],n),M[C]=T.onEnter(F[C],G,J),O[C]=y(T,n),C}t.enter=n;function a(T,C,O,F,M,U,J){$.assertEqual(O[C],a),$.assertIsDefined(T.onLeft),O[C]=y(T,a);let G=T.onLeft(F[C].left,M[C],F[C]);return G?(k(C,F,G),g(C,O,F,M,G)):C}t.left=a;function c(T,C,O,F,M,U,J){return $.assertEqual(O[C],c),$.assertIsDefined(T.onOperator),O[C]=y(T,c),T.onOperator(F[C].operatorToken,M[C],F[C]),C}t.operator=c;function u(T,C,O,F,M,U,J){$.assertEqual(O[C],u),$.assertIsDefined(T.onRight),O[C]=y(T,u);let G=T.onRight(F[C].right,M[C],F[C]);return G?(k(C,F,G),g(C,O,F,M,G)):C}t.right=u;function _(T,C,O,F,M,U,J){$.assertEqual(O[C],_),O[C]=y(T,_);let G=T.onExit(F[C],M[C]);if(C>0){if(C--,T.foldState){let Z=O[C]===_?"right":"left";M[C]=T.foldState(M[C],G,Z)}}else U.value=G;return C}t.exit=_;function f(T,C,O,F,M,U,J){return $.assertEqual(O[C],f),C}t.done=f;function y(T,C){switch(C){case n:if(T.onLeft)return a;case a:if(T.onOperator)return c;case c:if(T.onRight)return u;case u:return _;case _:return f;case f:return f;default:$.fail("Invalid state")}}t.nextState=y;function g(T,C,O,F,M){return T++,C[T]=n,O[T]=M,F[T]=void 0,T}function k(T,C,O){if($.shouldAssert(2))for(;T>=0;)$.assert(C[T]!==O,"Circular traversal detected."),T--}})(rye||(rye={}));var Dir=class{constructor(t,n,a,c,u,_){this.onEnter=t,this.onLeft=n,this.onOperator=a,this.onRight=c,this.onExit=u,this.foldState=_}};function iie(t,n,a,c,u,_){let f=new Dir(t,n,a,c,u,_);return y;function y(g,k){let T={value:void 0},C=[rye.enter],O=[g],F=[void 0],M=0;for(;C[M]!==rye.done;)M=C[M](f,M,C,O,F,T,k);return $.assertEqual(M,0),T.value}}function Air(t){return t===95||t===90}function KH(t){let n=t.kind;return Air(n)}function SNe(t,n){if(n!==void 0)return n.length===0?n:qt(t.createNodeArray([],n.hasTrailingComma),n)}function QH(t){var n;let a=t.emitNode.autoGenerate;if(a.flags&4){let c=a.id,u=t,_=u.original;for(;_;){u=_;let f=(n=u.emitNode)==null?void 0:n.autoGenerate;if(Dx(u)&&(f===void 0||f.flags&4&&f.id!==c))break;_=u.original}return u}return t}function wL(t,n){return typeof t=="object"?IA(!1,t.prefix,t.node,t.suffix,n):typeof t=="string"?t.length>0&&t.charCodeAt(0)===35?t.slice(1):t:""}function wir(t,n){return typeof t=="string"?t:Iir(t,$.checkDefined(n))}function Iir(t,n){return R4(t)?n(t).slice(1):ap(t)?n(t):Aa(t)?t.escapedText.slice(1):Zi(t)}function IA(t,n,a,c,u){return n=wL(n,u),c=wL(c,u),a=wir(a,u),`${t?"#":""}${n}${a}${c}`}function nye(t,n,a,c){return t.updatePropertyDeclaration(n,a,t.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage"),void 0,void 0,c)}function bNe(t,n,a,c,u=t.createThis()){return t.createGetAccessorDeclaration(a,c,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(u,t.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage")))]))}function xNe(t,n,a,c,u=t.createThis()){return t.createSetAccessorDeclaration(a,c,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(u,t.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage")),t.createIdentifier("value")))]))}function oie(t){let n=t.expression;for(;;){if(n=Wp(n),uz(n)){n=Sn(n.elements);continue}if(VH(n)){n=n.right;continue}if(of(n,!0)&&ap(n.left))return n;break}}function Pir(t){return mh(t)&&fu(t)&&!t.emitNode}function aie(t,n){if(Pir(t))aie(t.expression,n);else if(VH(t))aie(t.left,n),aie(t.right,n);else if(uz(t))for(let a of t.elements)aie(a,n);else n.push(t)}function TNe(t){let n=[];return aie(t,n),n}function ZH(t){if(t.transformFlags&65536)return!0;if(t.transformFlags&128)for(let n of AL(t)){let a=xC(n);if(a&&aU(a)&&(a.transformFlags&65536||a.transformFlags&128&&ZH(a)))return!0}return!1}function qt(t,n){return n?xv(t,n.pos,n.end):t}function l1(t){let n=t.kind;return n===169||n===170||n===172||n===173||n===174||n===175||n===177||n===178||n===179||n===182||n===186||n===219||n===220||n===232||n===244||n===263||n===264||n===265||n===266||n===267||n===268||n===272||n===273||n===278||n===279}function kP(t){let n=t.kind;return n===170||n===173||n===175||n===178||n===179||n===232||n===264}var Xlt,Ylt,eut,tut,rut,ENe={createBaseSourceFileNode:t=>new(rut||(rut=Uf.getSourceFileConstructor()))(t,-1,-1),createBaseIdentifierNode:t=>new(eut||(eut=Uf.getIdentifierConstructor()))(t,-1,-1),createBasePrivateIdentifierNode:t=>new(tut||(tut=Uf.getPrivateIdentifierConstructor()))(t,-1,-1),createBaseTokenNode:t=>new(Ylt||(Ylt=Uf.getTokenConstructor()))(t,-1,-1),createBaseNode:t=>new(Xlt||(Xlt=Uf.getNodeConstructor()))(t,-1,-1)},PA=IH(1,ENe);function zr(t,n){return n&&t(n)}function ba(t,n,a){if(a){if(n)return n(a);for(let c of a){let u=t(c);if(u)return u}}}function iye(t,n){return t.charCodeAt(n+1)===42&&t.charCodeAt(n+2)===42&&t.charCodeAt(n+3)!==47}function XH(t){return X(t.statements,Nir)||Oir(t)}function Nir(t){return l1(t)&&Fir(t,95)||gd(t)&&WT(t.moduleReference)||fp(t)||Xu(t)||P_(t)?t:void 0}function Oir(t){return t.flags&8388608?nut(t):void 0}function nut(t){return Rir(t)?t:Is(t,nut)}function Fir(t,n){return Pt(t.modifiers,a=>a.kind===n)}function Rir(t){return s3(t)&&t.keywordToken===102&&t.name.escapedText==="meta"}var Lir={167:function(n,a,c){return zr(a,n.left)||zr(a,n.right)},169:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||zr(a,n.constraint)||zr(a,n.default)||zr(a,n.expression)},305:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||zr(a,n.questionToken)||zr(a,n.exclamationToken)||zr(a,n.equalsToken)||zr(a,n.objectAssignmentInitializer)},306:function(n,a,c){return zr(a,n.expression)},170:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.dotDotDotToken)||zr(a,n.name)||zr(a,n.questionToken)||zr(a,n.type)||zr(a,n.initializer)},173:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||zr(a,n.questionToken)||zr(a,n.exclamationToken)||zr(a,n.type)||zr(a,n.initializer)},172:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||zr(a,n.questionToken)||zr(a,n.type)||zr(a,n.initializer)},304:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||zr(a,n.questionToken)||zr(a,n.exclamationToken)||zr(a,n.initializer)},261:function(n,a,c){return zr(a,n.name)||zr(a,n.exclamationToken)||zr(a,n.type)||zr(a,n.initializer)},209:function(n,a,c){return zr(a,n.dotDotDotToken)||zr(a,n.propertyName)||zr(a,n.name)||zr(a,n.initializer)},182:function(n,a,c){return ba(a,c,n.modifiers)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)},186:function(n,a,c){return ba(a,c,n.modifiers)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)},185:function(n,a,c){return ba(a,c,n.modifiers)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)},180:iut,181:iut,175:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.asteriskToken)||zr(a,n.name)||zr(a,n.questionToken)||zr(a,n.exclamationToken)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)||zr(a,n.body)},174:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||zr(a,n.questionToken)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)},177:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)||zr(a,n.body)},178:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)||zr(a,n.body)},179:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)||zr(a,n.body)},263:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.asteriskToken)||zr(a,n.name)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)||zr(a,n.body)},219:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.asteriskToken)||zr(a,n.name)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)||zr(a,n.body)},220:function(n,a,c){return ba(a,c,n.modifiers)||ba(a,c,n.typeParameters)||ba(a,c,n.parameters)||zr(a,n.type)||zr(a,n.equalsGreaterThanToken)||zr(a,n.body)},176:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.body)},184:function(n,a,c){return zr(a,n.typeName)||ba(a,c,n.typeArguments)},183:function(n,a,c){return zr(a,n.assertsModifier)||zr(a,n.parameterName)||zr(a,n.type)},187:function(n,a,c){return zr(a,n.exprName)||ba(a,c,n.typeArguments)},188:function(n,a,c){return ba(a,c,n.members)},189:function(n,a,c){return zr(a,n.elementType)},190:function(n,a,c){return ba(a,c,n.elements)},193:out,194:out,195:function(n,a,c){return zr(a,n.checkType)||zr(a,n.extendsType)||zr(a,n.trueType)||zr(a,n.falseType)},196:function(n,a,c){return zr(a,n.typeParameter)},206:function(n,a,c){return zr(a,n.argument)||zr(a,n.attributes)||zr(a,n.qualifier)||ba(a,c,n.typeArguments)},303:function(n,a,c){return zr(a,n.assertClause)},197:aut,199:aut,200:function(n,a,c){return zr(a,n.objectType)||zr(a,n.indexType)},201:function(n,a,c){return zr(a,n.readonlyToken)||zr(a,n.typeParameter)||zr(a,n.nameType)||zr(a,n.questionToken)||zr(a,n.type)||ba(a,c,n.members)},202:function(n,a,c){return zr(a,n.literal)},203:function(n,a,c){return zr(a,n.dotDotDotToken)||zr(a,n.name)||zr(a,n.questionToken)||zr(a,n.type)},207:sut,208:sut,210:function(n,a,c){return ba(a,c,n.elements)},211:function(n,a,c){return ba(a,c,n.properties)},212:function(n,a,c){return zr(a,n.expression)||zr(a,n.questionDotToken)||zr(a,n.name)},213:function(n,a,c){return zr(a,n.expression)||zr(a,n.questionDotToken)||zr(a,n.argumentExpression)},214:cut,215:cut,216:function(n,a,c){return zr(a,n.tag)||zr(a,n.questionDotToken)||ba(a,c,n.typeArguments)||zr(a,n.template)},217:function(n,a,c){return zr(a,n.type)||zr(a,n.expression)},218:function(n,a,c){return zr(a,n.expression)},221:function(n,a,c){return zr(a,n.expression)},222:function(n,a,c){return zr(a,n.expression)},223:function(n,a,c){return zr(a,n.expression)},225:function(n,a,c){return zr(a,n.operand)},230:function(n,a,c){return zr(a,n.asteriskToken)||zr(a,n.expression)},224:function(n,a,c){return zr(a,n.expression)},226:function(n,a,c){return zr(a,n.operand)},227:function(n,a,c){return zr(a,n.left)||zr(a,n.operatorToken)||zr(a,n.right)},235:function(n,a,c){return zr(a,n.expression)||zr(a,n.type)},236:function(n,a,c){return zr(a,n.expression)},239:function(n,a,c){return zr(a,n.expression)||zr(a,n.type)},237:function(n,a,c){return zr(a,n.name)},228:function(n,a,c){return zr(a,n.condition)||zr(a,n.questionToken)||zr(a,n.whenTrue)||zr(a,n.colonToken)||zr(a,n.whenFalse)},231:function(n,a,c){return zr(a,n.expression)},242:lut,269:lut,308:function(n,a,c){return ba(a,c,n.statements)||zr(a,n.endOfFileToken)},244:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.declarationList)},262:function(n,a,c){return ba(a,c,n.declarations)},245:function(n,a,c){return zr(a,n.expression)},246:function(n,a,c){return zr(a,n.expression)||zr(a,n.thenStatement)||zr(a,n.elseStatement)},247:function(n,a,c){return zr(a,n.statement)||zr(a,n.expression)},248:function(n,a,c){return zr(a,n.expression)||zr(a,n.statement)},249:function(n,a,c){return zr(a,n.initializer)||zr(a,n.condition)||zr(a,n.incrementor)||zr(a,n.statement)},250:function(n,a,c){return zr(a,n.initializer)||zr(a,n.expression)||zr(a,n.statement)},251:function(n,a,c){return zr(a,n.awaitModifier)||zr(a,n.initializer)||zr(a,n.expression)||zr(a,n.statement)},252:uut,253:uut,254:function(n,a,c){return zr(a,n.expression)},255:function(n,a,c){return zr(a,n.expression)||zr(a,n.statement)},256:function(n,a,c){return zr(a,n.expression)||zr(a,n.caseBlock)},270:function(n,a,c){return ba(a,c,n.clauses)},297:function(n,a,c){return zr(a,n.expression)||ba(a,c,n.statements)},298:function(n,a,c){return ba(a,c,n.statements)},257:function(n,a,c){return zr(a,n.label)||zr(a,n.statement)},258:function(n,a,c){return zr(a,n.expression)},259:function(n,a,c){return zr(a,n.tryBlock)||zr(a,n.catchClause)||zr(a,n.finallyBlock)},300:function(n,a,c){return zr(a,n.variableDeclaration)||zr(a,n.block)},171:function(n,a,c){return zr(a,n.expression)},264:put,232:put,265:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||ba(a,c,n.typeParameters)||ba(a,c,n.heritageClauses)||ba(a,c,n.members)},266:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||ba(a,c,n.typeParameters)||zr(a,n.type)},267:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||ba(a,c,n.members)},307:function(n,a,c){return zr(a,n.name)||zr(a,n.initializer)},268:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||zr(a,n.body)},272:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)||zr(a,n.moduleReference)},273:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.importClause)||zr(a,n.moduleSpecifier)||zr(a,n.attributes)},274:function(n,a,c){return zr(a,n.name)||zr(a,n.namedBindings)},301:function(n,a,c){return ba(a,c,n.elements)},302:function(n,a,c){return zr(a,n.name)||zr(a,n.value)},271:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.name)},275:function(n,a,c){return zr(a,n.name)},281:function(n,a,c){return zr(a,n.name)},276:_ut,280:_ut,279:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.exportClause)||zr(a,n.moduleSpecifier)||zr(a,n.attributes)},277:dut,282:dut,278:function(n,a,c){return ba(a,c,n.modifiers)||zr(a,n.expression)},229:function(n,a,c){return zr(a,n.head)||ba(a,c,n.templateSpans)},240:function(n,a,c){return zr(a,n.expression)||zr(a,n.literal)},204:function(n,a,c){return zr(a,n.head)||ba(a,c,n.templateSpans)},205:function(n,a,c){return zr(a,n.type)||zr(a,n.literal)},168:function(n,a,c){return zr(a,n.expression)},299:function(n,a,c){return ba(a,c,n.types)},234:function(n,a,c){return zr(a,n.expression)||ba(a,c,n.typeArguments)},284:function(n,a,c){return zr(a,n.expression)},283:function(n,a,c){return ba(a,c,n.modifiers)},357:function(n,a,c){return ba(a,c,n.elements)},285:function(n,a,c){return zr(a,n.openingElement)||ba(a,c,n.children)||zr(a,n.closingElement)},289:function(n,a,c){return zr(a,n.openingFragment)||ba(a,c,n.children)||zr(a,n.closingFragment)},286:fut,287:fut,293:function(n,a,c){return ba(a,c,n.properties)},292:function(n,a,c){return zr(a,n.name)||zr(a,n.initializer)},294:function(n,a,c){return zr(a,n.expression)},295:function(n,a,c){return zr(a,n.dotDotDotToken)||zr(a,n.expression)},288:function(n,a,c){return zr(a,n.tagName)},296:function(n,a,c){return zr(a,n.namespace)||zr(a,n.name)},191:yz,192:yz,310:yz,316:yz,315:yz,317:yz,319:yz,318:function(n,a,c){return ba(a,c,n.parameters)||zr(a,n.type)},321:function(n,a,c){return(typeof n.comment=="string"?void 0:ba(a,c,n.comment))||ba(a,c,n.tags)},348:function(n,a,c){return zr(a,n.tagName)||zr(a,n.name)||(typeof n.comment=="string"?void 0:ba(a,c,n.comment))},311:function(n,a,c){return zr(a,n.name)},312:function(n,a,c){return zr(a,n.left)||zr(a,n.right)},342:mut,349:mut,331:function(n,a,c){return zr(a,n.tagName)||(typeof n.comment=="string"?void 0:ba(a,c,n.comment))},330:function(n,a,c){return zr(a,n.tagName)||zr(a,n.class)||(typeof n.comment=="string"?void 0:ba(a,c,n.comment))},329:function(n,a,c){return zr(a,n.tagName)||zr(a,n.class)||(typeof n.comment=="string"?void 0:ba(a,c,n.comment))},346:function(n,a,c){return zr(a,n.tagName)||zr(a,n.constraint)||ba(a,c,n.typeParameters)||(typeof n.comment=="string"?void 0:ba(a,c,n.comment))},347:function(n,a,c){return zr(a,n.tagName)||(n.typeExpression&&n.typeExpression.kind===310?zr(a,n.typeExpression)||zr(a,n.fullName)||(typeof n.comment=="string"?void 0:ba(a,c,n.comment)):zr(a,n.fullName)||zr(a,n.typeExpression)||(typeof n.comment=="string"?void 0:ba(a,c,n.comment)))},339:function(n,a,c){return zr(a,n.tagName)||zr(a,n.fullName)||zr(a,n.typeExpression)||(typeof n.comment=="string"?void 0:ba(a,c,n.comment))},343:vz,345:vz,344:vz,341:vz,351:vz,350:vz,340:vz,324:function(n,a,c){return X(n.typeParameters,a)||X(n.parameters,a)||zr(a,n.type)},325:kNe,326:kNe,327:kNe,323:function(n,a,c){return X(n.jsDocPropertyTags,a)},328:IL,333:IL,334:IL,335:IL,336:IL,337:IL,332:IL,338:IL,352:Mir,356:jir};function iut(t,n,a){return ba(n,a,t.typeParameters)||ba(n,a,t.parameters)||zr(n,t.type)}function out(t,n,a){return ba(n,a,t.types)}function aut(t,n,a){return zr(n,t.type)}function sut(t,n,a){return ba(n,a,t.elements)}function cut(t,n,a){return zr(n,t.expression)||zr(n,t.questionDotToken)||ba(n,a,t.typeArguments)||ba(n,a,t.arguments)}function lut(t,n,a){return ba(n,a,t.statements)}function uut(t,n,a){return zr(n,t.label)}function put(t,n,a){return ba(n,a,t.modifiers)||zr(n,t.name)||ba(n,a,t.typeParameters)||ba(n,a,t.heritageClauses)||ba(n,a,t.members)}function _ut(t,n,a){return ba(n,a,t.elements)}function dut(t,n,a){return zr(n,t.propertyName)||zr(n,t.name)}function fut(t,n,a){return zr(n,t.tagName)||ba(n,a,t.typeArguments)||zr(n,t.attributes)}function yz(t,n,a){return zr(n,t.type)}function mut(t,n,a){return zr(n,t.tagName)||(t.isNameFirst?zr(n,t.name)||zr(n,t.typeExpression):zr(n,t.typeExpression)||zr(n,t.name))||(typeof t.comment=="string"?void 0:ba(n,a,t.comment))}function vz(t,n,a){return zr(n,t.tagName)||zr(n,t.typeExpression)||(typeof t.comment=="string"?void 0:ba(n,a,t.comment))}function kNe(t,n,a){return zr(n,t.name)}function IL(t,n,a){return zr(n,t.tagName)||(typeof t.comment=="string"?void 0:ba(n,a,t.comment))}function Mir(t,n,a){return zr(n,t.tagName)||zr(n,t.importClause)||zr(n,t.moduleSpecifier)||zr(n,t.attributes)||(typeof t.comment=="string"?void 0:ba(n,a,t.comment))}function jir(t,n,a){return zr(n,t.expression)}function Is(t,n,a){if(t===void 0||t.kind<=166)return;let c=Lir[t.kind];return c===void 0?void 0:c(t,n,a)}function CF(t,n,a){let c=hut(t),u=[];for(;u.length=0;--y)c.push(_[y]),u.push(f)}else{let y=n(_,f);if(y){if(y==="skip")continue;return y}if(_.kind>=167)for(let g of hut(_))c.push(g),u.push(_)}}}function hut(t){let n=[];return Is(t,a,a),n;function a(c){n.unshift(c)}}function gut(t){t.externalModuleIndicator=XH(t)}function DF(t,n,a,c=!1,u){var _,f;(_=hi)==null||_.push(hi.Phase.Parse,"createSourceFile",{path:t},!0),jl("beforeParse");let y,{languageVersion:g,setExternalModuleIndicator:k,impliedNodeFormat:T,jsDocParsingMode:C}=typeof a=="object"?a:{languageVersion:a};if(g===100)y=NA.parseSourceFile(t,n,g,void 0,c,6,zs,C);else{let O=T===void 0?k:F=>(F.impliedNodeFormat=T,(k||gut)(F));y=NA.parseSourceFile(t,n,g,void 0,c,u,O,C)}return jl("afterParse"),Jm("Parse","beforeParse","afterParse"),(f=hi)==null||f.pop(),y}function AF(t,n){return NA.parseIsolatedEntityName(t,n)}function YH(t,n){return NA.parseJsonText(t,n)}function yd(t){return t.externalModuleIndicator!==void 0}function oye(t,n,a,c=!1){let u=aye.updateSourceFile(t,n,a,c);return u.flags|=t.flags&12582912,u}function CNe(t,n,a){let c=NA.JSDocParser.parseIsolatedJSDocComment(t,n,a);return c&&c.jsDoc&&NA.fixupParentReferences(c.jsDoc),c}function yut(t,n,a){return NA.JSDocParser.parseJSDocTypeExpressionForTests(t,n,a)}var NA;(t=>{var n=B1(99,!0),a=40960,c,u,_,f,y;function g(he){return We++,he}var k={createBaseSourceFileNode:he=>g(new y(he,0,0)),createBaseIdentifierNode:he=>g(new _(he,0,0)),createBasePrivateIdentifierNode:he=>g(new f(he,0,0)),createBaseTokenNode:he=>g(new u(he,0,0)),createBaseNode:he=>g(new c(he,0,0))},T=IH(11,k),{createNodeArray:C,createNumericLiteral:O,createStringLiteral:F,createLiteralLikeNode:M,createIdentifier:U,createPrivateIdentifier:J,createToken:G,createArrayLiteralExpression:Z,createObjectLiteralExpression:Q,createPropertyAccessExpression:re,createPropertyAccessChain:ae,createElementAccessExpression:_e,createElementAccessChain:me,createCallExpression:le,createCallChain:Oe,createNewExpression:be,createParenthesizedExpression:ue,createBlock:De,createVariableStatement:Ce,createExpressionStatement:Ae,createIfStatement:Fe,createWhileStatement:Be,createForStatement:de,createForOfStatement:ze,createVariableDeclaration:ut,createVariableDeclarationList:je}=T,ve,Le,Ve,nt,It,ke,_t,Se,tt,Qe,We,St,Kt,Sr,nn,Nn,$t=!0,Dr=!1;function Qn(he,Ze,kt,ir,Or=!1,en,_o,Mi=0){var si;if(en=fne(he,en),en===6){let La=is(he,Ze,kt,ir,Or);return iK(La,(si=La.statements[0])==null?void 0:si.expression,La.parseDiagnostics,!1,void 0),La.referencedFiles=j,La.typeReferenceDirectives=j,La.libReferenceDirectives=j,La.amdDependencies=j,La.hasNoDefaultLib=!1,La.pragmas=ie,La}sr(he,Ze,kt,ir,en,Mi);let zo=Wa(kt,Or,en,_o||gut,Mi);return uo(),zo}t.parseSourceFile=Qn;function Ko(he,Ze){sr("",he,Ze,void 0,1,0),Ge();let kt=Ft(!0),ir=pe()===1&&!_t.length;return uo(),ir?kt:void 0}t.parseIsolatedEntityName=Ko;function is(he,Ze,kt=2,ir,Or=!1){sr(he,Ze,kt,ir,6,0),Le=Nn,Ge();let en=Y(),_o,Mi;if(pe()===1)_o=Yc([],en,en),Mi=o_();else{let La;for(;pe()!==1;){let ll;switch(pe()){case 23:ll=zC();break;case 112:case 97:case 106:ll=o_();break;case 41:lr(()=>Ge()===9&&Ge()!==59)?ll=LE():ll=BE();break;case 9:case 11:if(lr(()=>Ge()!==59)){ll=cr();break}default:ll=BE();break}La&&Zn(La)?La.push(ll):La?La=[La,ll]:(La=ll,pe()!==1&&xr(x.Unexpected_token))}let hu=Zn(La)?Ar(Z(La),en):$.checkDefined(La),Zl=Ae(hu);Ar(Zl,en),_o=Yc([Zl],en),Mi=Nu(1,x.Unexpected_token)}let si=Ht(he,2,6,!1,_o,Mi,Le,zs);Or&&ft(si),si.nodeCount=We,si.identifierCount=Kt,si.identifiers=St,si.parseDiagnostics=rF(_t,si),Se&&(si.jsDocDiagnostics=rF(Se,si));let zo=si;return uo(),zo}t.parseJsonText=is;function sr(he,Ze,kt,ir,Or,en){switch(c=Uf.getNodeConstructor(),u=Uf.getTokenConstructor(),_=Uf.getIdentifierConstructor(),f=Uf.getPrivateIdentifierConstructor(),y=Uf.getSourceFileConstructor(),ve=Qs(he),Ve=Ze,nt=kt,tt=ir,It=Or,ke=_H(Or),_t=[],Sr=0,St=new Map,Kt=0,We=0,Le=0,$t=!0,It){case 1:case 2:Nn=524288;break;case 6:Nn=134742016;break;default:Nn=0;break}Dr=!1,n.setText(Ve),n.setOnError(Ne),n.setScriptTarget(nt),n.setLanguageVariant(ke),n.setScriptKind(It),n.setJSDocParsingMode(en)}function uo(){n.clearCommentDirectives(),n.setText(""),n.setOnError(void 0),n.setScriptKind(0),n.setJSDocParsingMode(0),Ve=void 0,nt=void 0,tt=void 0,It=void 0,ke=void 0,Le=0,_t=void 0,Se=void 0,Sr=0,St=void 0,nn=void 0,$t=!0}function Wa(he,Ze,kt,ir,Or){let en=sf(ve);en&&(Nn|=33554432),Le=Nn,Ge();let _o=Uc(0,yg);$.assert(pe()===1);let Mi=ot(),si=Oi(o_(),Mi),zo=Ht(ve,he,kt,en,_o,si,Le,ir);return sye(zo,Ve),cye(zo,La),zo.commentDirectives=n.getCommentDirectives(),zo.nodeCount=We,zo.identifierCount=Kt,zo.identifiers=St,zo.parseDiagnostics=rF(_t,zo),zo.jsDocParsingMode=Or,Se&&(zo.jsDocDiagnostics=rF(Se,zo)),Ze&&ft(zo),zo;function La(hu,Zl,ll){_t.push(tF(ve,Ve,hu,Zl,ll))}}let oo=!1;function Oi(he,Ze){if(!Ze)return he;$.assert(!he.jsDoc);let kt=Wn(Lme(he,Ve),ir=>WS.parseJSDocComment(he,ir.pos,ir.end-ir.pos));return kt.length&&(he.jsDoc=kt),oo&&(oo=!1,he.flags|=536870912),he}function $o(he){let Ze=tt,kt=aye.createSyntaxCursor(he);tt={currentNode:La};let ir=[],Or=_t;_t=[];let en=0,_o=si(he.statements,0);for(;_o!==-1;){let hu=he.statements[en],Zl=he.statements[_o];En(ir,he.statements,en,_o),en=zo(he.statements,_o);let ll=hr(Or,Yy=>Yy.start>=hu.pos),N0=ll>=0?hr(Or,Yy=>Yy.start>=Zl.pos,ll):-1;ll>=0&&En(_t,Or,ll,N0>=0?N0:void 0),tn(()=>{let Yy=Nn;for(Nn|=65536,n.resetTokenState(Zl.pos),Ge();pe()!==1;){let JE=n.getTokenFullStart(),VE=nd(0,yg);if(ir.push(VE),JE===n.getTokenFullStart()&&Ge(),en>=0){let tT=he.statements[en];if(VE.end===tT.pos)break;VE.end>tT.pos&&(en=zo(he.statements,en+1))}}Nn=Yy},2),_o=en>=0?si(he.statements,en):-1}if(en>=0){let hu=he.statements[en];En(ir,he.statements,en);let Zl=hr(Or,ll=>ll.start>=hu.pos);Zl>=0&&En(_t,Or,Zl)}return tt=Ze,T.updateSourceFile(he,qt(C(ir),he.statements));function Mi(hu){return!(hu.flags&65536)&&!!(hu.transformFlags&67108864)}function si(hu,Zl){for(let ll=Zl;ll118}function bn(){return pe()===80?!0:pe()===127&&at()||pe()===135&&Et()?!1:pe()>118}function $r(he,Ze,kt=!0){return pe()===he?(kt&&Ge(),!0):(Ze?xr(Ze):xr(x._0_expected,Zs(he)),!1)}let Uo=Object.keys(UI).filter(he=>he.length>2);function Ys(he){if(xA(he)){Ye(_c(Ve,he.template.pos),he.template.end,x.Module_declaration_names_may_only_use_or_quoted_strings);return}let Ze=ct(he)?Zi(he):void 0;if(!Ze||!Jd(Ze,nt)){xr(x._0_expected,Zs(27));return}let kt=_c(Ve,he.pos);switch(Ze){case"const":case"let":case"var":Ye(kt,he.end,x.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":ec(x.Interface_name_cannot_be_0,x.Interface_must_be_given_a_name,19);return;case"is":Ye(kt,n.getTokenStart(),x.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":ec(x.Namespace_name_cannot_be_0,x.Namespace_must_be_given_a_name,19);return;case"type":ec(x.Type_alias_name_cannot_be_0,x.Type_alias_must_be_given_a_name,64);return}let ir=xx(Ze,Uo,vl)??Ss(Ze);if(ir){Ye(kt,he.end,x.Unknown_keyword_or_identifier_Did_you_mean_0,ir);return}pe()!==0&&Ye(kt,he.end,x.Unexpected_keyword_or_identifier)}function ec(he,Ze,kt){pe()===kt?xr(Ze):xr(he,n.getTokenValue())}function Ss(he){for(let Ze of Uo)if(he.length>Ze.length+2&&Ca(he,Ze))return`${Ze} ${he.slice(Ze.length)}`}function Mp(he,Ze,kt){if(pe()===60&&!n.hasPrecedingLineBreak()){xr(x.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(pe()===21){xr(x.Cannot_start_a_function_call_in_a_type_annotation),Ge();return}if(Ze&&!_s()){kt?xr(x._0_expected,Zs(27)):xr(x.Expected_for_property_initializer);return}if(!sc()){if(kt){xr(x._0_expected,Zs(27));return}Ys(he)}}function Cp(he){return pe()===he?(Mt(),!0):($.assert(Nre(he)),xr(x._0_expected,Zs(he)),!1)}function uu(he,Ze,kt,ir){if(pe()===Ze){Ge();return}let Or=xr(x._0_expected,Zs(Ze));kt&&Or&&ac(Or,tF(ve,Ve,ir,1,x.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Zs(he),Zs(Ze)))}function $a(he){return pe()===he?(Ge(),!0):!1}function bs(he){if(pe()===he)return o_()}function V_(he){if(pe()===he)return Gy()}function Nu(he,Ze,kt){return bs(he)||Ql(he,!1,Ze||x._0_expected,kt||Zs(he))}function kc(he){let Ze=V_(he);return Ze||($.assert(Nre(he)),Ql(he,!1,x._0_expected,Zs(he)))}function o_(){let he=Y(),Ze=pe();return Ge(),Ar(G(Ze),he)}function Gy(){let he=Y(),Ze=pe();return Mt(),Ar(G(Ze),he)}function _s(){return pe()===27?!0:pe()===20||pe()===1||n.hasPrecedingLineBreak()}function sc(){return _s()?(pe()===27&&Ge(),!0):!1}function sl(){return sc()||$r(27)}function Yc(he,Ze,kt,ir){let Or=C(he,ir);return xv(Or,Ze,kt??n.getTokenFullStart()),Or}function Ar(he,Ze,kt){return xv(he,Ze,kt??n.getTokenFullStart()),Nn&&(he.flags|=Nn),Dr&&(Dr=!1,he.flags|=262144),he}function Ql(he,Ze,kt,...ir){Ze?gi(n.getTokenFullStart(),0,kt,...ir):kt&&xr(kt,...ir);let Or=Y(),en=he===80?U("",void 0):Xk(he)?T.createTemplateLiteralLikeNode(he,"","",void 0):he===9?O("",void 0):he===11?F("",void 0):he===283?T.createMissingDeclaration():G(he);return Ar(en,Or)}function Gp(he){let Ze=St.get(he);return Ze===void 0&&St.set(he,Ze=he),Ze}function N_(he,Ze,kt){if(he){Kt++;let Mi=n.hasPrecedingJSDocLeadingAsterisks()?n.getTokenStart():Y(),si=pe(),zo=Gp(n.getTokenValue()),La=n.hasExtendedUnicodeEscape();return Gt(),Ar(U(zo,si,La),Mi)}if(pe()===81)return xr(kt||x.Private_identifiers_are_not_allowed_outside_class_bodies),N_(!0);if(pe()===0&&n.tryScan(()=>n.reScanInvalidIdentifier()===80))return N_(!0);Kt++;let ir=pe()===1,Or=n.isReservedWord(),en=n.getTokenText(),_o=Or?x.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:x.Identifier_expected;return Ql(80,ir,Ze||_o,en)}function lf(he){return N_(gn(),void 0,he)}function Yu(he,Ze){return N_(bn(),he,Ze)}function Hp(he){return N_(Bf(pe()),he)}function H(){return(n.hasUnicodeEscape()||n.hasExtendedUnicodeEscape())&&xr(x.Unicode_escape_sequence_cannot_appear_here),N_(Bf(pe()))}function st(){return Bf(pe())||pe()===11||pe()===9||pe()===10}function zt(){return Bf(pe())||pe()===11}function Er(he){if(pe()===11||pe()===9||pe()===10){let Ze=cr();return Ze.text=Gp(Ze.text),Ze}return he&&pe()===23?So():pe()===81?Di():Hp()}function jn(){return Er(!0)}function So(){let he=Y();$r(23);let Ze=Cn(eh);return $r(24),Ar(T.createComputedPropertyName(Ze),he)}function Di(){let he=Y(),Ze=J(Gp(n.getTokenValue()));return Ge(),Ar(Ze,he)}function On(he){return pe()===he&&cn(va)}function ua(){return Ge(),n.hasPrecedingLineBreak()?!1:W_()}function va(){switch(pe()){case 87:return Ge()===94;case 95:return Ge(),pe()===90?lr(xu):pe()===156?lr(xc):Bl();case 90:return xu();case 126:return Ge(),W_();case 139:case 153:return Ge(),g_();default:return ua()}}function Bl(){return pe()===60||pe()!==42&&pe()!==130&&pe()!==19&&W_()}function xc(){return Ge(),Bl()}function ep(){return eC(pe())&&cn(va)}function W_(){return pe()===23||pe()===19||pe()===42||pe()===26||st()}function g_(){return pe()===23||st()}function xu(){return Ge(),pe()===86||pe()===100||pe()===120||pe()===60||pe()===128&&lr(Zh)||pe()===134&&lr(P0)}function a_(he,Ze){if(Mu(he))return!0;switch(he){case 0:case 1:case 3:return!(pe()===27&&Ze)&&$E();case 2:return pe()===84||pe()===90;case 4:return lr(m1);case 5:return lr(X3)||pe()===27&&!Ze;case 6:return pe()===23||st();case 12:switch(pe()){case 23:case 42:case 26:case 25:return!0;default:return st()}case 18:return st();case 9:return pe()===23||pe()===26||st();case 24:return zt();case 7:return pe()===19?lr(Gg):Ze?bn()&&!rt():Kh()&&!rt();case 8:return g7();case 10:return pe()===28||pe()===26||g7();case 19:return pe()===103||pe()===87||bn();case 15:switch(pe()){case 28:case 25:return!0}case 11:return pe()===26||sm();case 16:return Lt(!1);case 17:return Lt(!0);case 20:case 21:return pe()===28||FC();case 22:return Y3();case 23:return pe()===161&&lr(eT)?!1:pe()===11?!0:Bf(pe());case 13:return Bf(pe())||pe()===19;case 14:return!0;case 25:return!0;case 26:return $.fail("ParsingContext.Count used as a context");default:$.assertNever(he,"Non-exhaustive case in 'isListElement'.")}}function Gg(){if($.assert(pe()===19),Ge()===20){let he=Ge();return he===28||he===19||he===96||he===119}return!0}function Wf(){return Ge(),bn()}function yy(){return Ge(),Bf(pe())}function Wh(){return Ge(),$I(pe())}function rt(){return pe()===119||pe()===96?lr(br):!1}function br(){return Ge(),sm()}function Vn(){return Ge(),FC()}function Ga(he){if(pe()===1)return!0;switch(he){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return pe()===20;case 3:return pe()===20||pe()===84||pe()===90;case 7:return pe()===19||pe()===96||pe()===119;case 8:return el();case 19:return pe()===32||pe()===21||pe()===19||pe()===96||pe()===119;case 11:return pe()===22||pe()===27;case 15:case 21:case 10:return pe()===24;case 17:case 16:case 18:return pe()===22||pe()===24;case 20:return pe()!==28;case 22:return pe()===19||pe()===20;case 13:return pe()===32||pe()===44;case 14:return pe()===30&&lr(sse);default:return!1}}function el(){return!!(_s()||th(pe())||pe()===39)}function tl(){$.assert(Sr,"Missing parsing context");for(let he=0;he<26;he++)if(Sr&1<=0)}function Iv(he){return he===6?x.An_enum_member_name_must_be_followed_by_a_or:void 0}function Hy(){let he=Yc([],Y());return he.isMissingList=!0,he}function US(he){return!!he.isMissingList}function xe(he,Ze,kt,ir){if($r(kt)){let Or=Nd(he,Ze);return $r(ir),Or}return Hy()}function Ft(he,Ze){let kt=Y(),ir=he?Hp(Ze):Yu(Ze);for(;$a(25)&&pe()!==30;)ir=Ar(T.createQualifiedName(ir,Mr(he,!1,!0)),kt);return ir}function Nr(he,Ze){return Ar(T.createQualifiedName(he,Ze),he.pos)}function Mr(he,Ze,kt){if(n.hasPrecedingLineBreak()&&Bf(pe())&&lr(p7))return Ql(80,!0,x.Identifier_expected);if(pe()===81){let ir=Di();return Ze?ir:Ql(80,!0,x.Identifier_expected)}return he?kt?Hp():H():Yu()}function wn(he){let Ze=Y(),kt=[],ir;do ir=it(he),kt.push(ir);while(ir.literal.kind===17);return Yc(kt,Ze)}function Yn(he){let Ze=Y();return Ar(T.createTemplateExpression(In(he),wn(he)),Ze)}function fo(){let he=Y();return Ar(T.createTemplateLiteralType(In(!1),Mo()),he)}function Mo(){let he=Y(),Ze=[],kt;do kt=Ea(),Ze.push(kt);while(kt.literal.kind===17);return Yc(Ze,he)}function Ea(){let he=Y();return Ar(T.createTemplateLiteralTypeSpan(tp(),ee(!1)),he)}function ee(he){return pe()===20?(zn(he),Ka()):Nu(18,x._0_expected,Zs(20))}function it(he){let Ze=Y();return Ar(T.createTemplateSpan(Cn(eh),ee(he)),Ze)}function cr(){return Xa(pe())}function In(he){!he&&n.getTokenFlags()&26656&&zn(!1);let Ze=Xa(pe());return $.assert(Ze.kind===16,"Template head has wrong token kind"),Ze}function Ka(){let he=Xa(pe());return $.assert(he.kind===17||he.kind===18,"Template fragment has wrong token kind"),he}function Ws(he){let Ze=he===15||he===18,kt=n.getTokenText();return kt.substring(1,kt.length-(n.isUnterminated()?0:Ze?1:2))}function Xa(he){let Ze=Y(),kt=Xk(he)?T.createTemplateLiteralLikeNode(he,n.getTokenValue(),Ws(he),n.getTokenFlags()&7176):he===9?O(n.getTokenValue(),n.getNumericLiteralFlags()):he===11?F(n.getTokenValue(),void 0,n.hasExtendedUnicodeEscape()):nU(he)?M(he,n.getTokenValue()):$.fail();return n.hasExtendedUnicodeEscape()&&(kt.hasExtendedUnicodeEscape=!0),n.isUnterminated()&&(kt.isUnterminated=!0),Ge(),Ar(kt,Ze)}function ks(){return Ft(!0,x.Type_expected)}function cp(){if(!n.hasPrecedingLineBreak()&&Rt()===30)return xe(20,tp,30,32)}function Cc(){let he=Y();return Ar(T.createTypeReferenceNode(ks(),cp()),he)}function pf(he){switch(he.kind){case 184:return Op(he.typeName);case 185:case 186:{let{parameters:Ze,type:kt}=he;return US(Ze)||pf(kt)}case 197:return pf(he.type);default:return!1}}function Kg(he){return Ge(),Ar(T.createTypePredicateNode(void 0,he,tp()),he.pos)}function Ky(){let he=Y();return Ge(),Ar(T.createThisTypeNode(),he)}function A0(){let he=Y();return Ge(),Ar(T.createJSDocAllType(),he)}function r2(){let he=Y();return Ge(),Ar(T.createJSDocNonNullableType(UP(),!1),he)}function PE(){let he=Y();return Ge(),pe()===28||pe()===20||pe()===22||pe()===32||pe()===64||pe()===52?Ar(T.createJSDocUnknownType(),he):Ar(T.createJSDocNullableType(tp(),!1),he)}function vh(){let he=Y(),Ze=ot();if(cn(S7)){let kt=Po(36),ir=oi(59,!1);return Oi(Ar(T.createJSDocFunctionType(kt,ir),he),Ze)}return Ar(T.createTypeReferenceNode(Hp(),void 0),he)}function Nb(){let he=Y(),Ze;return(pe()===110||pe()===105)&&(Ze=Hp(),$r(59)),Ar(T.createParameterDeclaration(void 0,void 0,Ze,void 0,Pv(),void 0),he)}function Pv(){n.setSkipJsDocLeadingAsterisks(!0);let he=Y();if($a(144)){let ir=T.createJSDocNamepathType(void 0);e:for(;;)switch(pe()){case 20:case 1:case 28:case 5:break e;default:Mt()}return n.setSkipJsDocLeadingAsterisks(!1),Ar(ir,he)}let Ze=$a(26),kt=a2();return n.setSkipJsDocLeadingAsterisks(!1),Ze&&(kt=Ar(T.createJSDocVariadicType(kt),he)),pe()===64?(Ge(),Ar(T.createJSDocOptionalType(kt),he)):kt}function d1(){let he=Y();$r(114);let Ze=Ft(!0),kt=n.hasPrecedingLineBreak()?void 0:mp();return Ar(T.createTypeQueryNode(Ze,kt),he)}function OC(){let he=Y(),Ze=na(!1,!0),kt=Yu(),ir,Or;$a(96)&&(FC()||!sm()?ir=tp():Or=nw());let en=$a(64)?tp():void 0,_o=T.createTypeParameterDeclaration(Ze,kt,ir,en);return _o.expression=Or,Ar(_o,he)}function dt(){if(pe()===30)return xe(19,OC,30,32)}function Lt(he){return pe()===26||g7()||eC(pe())||pe()===60||FC(!he)}function Tr(he){let Ze=UE(x.Private_identifiers_cannot_be_used_as_parameters);return gG(Ze)===0&&!Pt(he)&&eC(pe())&&Ge(),Ze}function dn(){return gn()||pe()===23||pe()===19}function qn(he){return $n(he)}function Fi(he){return $n(he,!1)}function $n(he,Ze=!0){let kt=Y(),ir=ot(),Or=he?ye(()=>na(!0)):et(()=>na(!0));if(pe()===110){let si=T.createParameterDeclaration(Or,void 0,N_(!0),void 0,am(),void 0),zo=pi(Or);return zo&&er(zo,x.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Oi(Ar(si,kt),ir)}let en=$t;$t=!1;let _o=bs(26);if(!Ze&&!dn())return;let Mi=Oi(Ar(T.createParameterDeclaration(Or,_o,Tr(Or),bs(58),am(),Lb()),kt),ir);return $t=en,Mi}function oi(he,Ze){if(sa(he,Ze))return Dt(a2)}function sa(he,Ze){return he===39?($r(he),!0):$a(59)?!0:Ze&&pe()===39?(xr(x._0_expected,Zs(59)),Ge(),!0):!1}function os(he,Ze){let kt=at(),ir=Et();vo(!!(he&1)),ya(!!(he&2));let Or=he&32?Nd(17,Nb):Nd(16,()=>Ze?qn(ir):Fi(ir));return vo(kt),ya(ir),Or}function Po(he){if(!$r(21))return Hy();let Ze=os(he,!0);return $r(22),Ze}function as(){$a(28)||sl()}function ka(he){let Ze=Y(),kt=ot();he===181&&$r(105);let ir=dt(),Or=Po(4),en=oi(59,!0);as();let _o=he===180?T.createCallSignature(ir,Or,en):T.createConstructSignature(ir,Or,en);return Oi(Ar(_o,Ze),kt)}function lp(){return pe()===23&&lr(Hh)}function Hh(){if(Ge(),pe()===26||pe()===24)return!0;if(eC(pe())){if(Ge(),bn())return!0}else if(bn())Ge();else return!1;return pe()===59||pe()===28?!0:pe()!==58?!1:(Ge(),pe()===59||pe()===28||pe()===24)}function f1(he,Ze,kt){let ir=xe(16,()=>qn(!1),23,24),Or=am();as();let en=T.createIndexSignature(kt,ir,Or);return Oi(Ar(en,he),Ze)}function Pf(he,Ze,kt){let ir=jn(),Or=bs(58),en;if(pe()===21||pe()===30){let _o=dt(),Mi=Po(4),si=oi(59,!0);en=T.createMethodSignature(kt,ir,Or,_o,Mi,si)}else{let _o=am();en=T.createPropertySignature(kt,ir,Or,_o),pe()===64&&(en.initializer=Lb())}return as(),Oi(Ar(en,he),Ze)}function m1(){if(pe()===21||pe()===30||pe()===139||pe()===153)return!0;let he=!1;for(;eC(pe());)he=!0,Ge();return pe()===23?!0:(st()&&(he=!0,Ge()),he?pe()===21||pe()===30||pe()===58||pe()===59||pe()===28||_s():!1)}function Qg(){if(pe()===21||pe()===30)return ka(180);if(pe()===105&&lr(GA))return ka(181);let he=Y(),Ze=ot(),kt=na(!1);return On(139)?dw(he,Ze,kt,178,4):On(153)?dw(he,Ze,kt,179,4):lp()?f1(he,Ze,kt):Pf(he,Ze,kt)}function GA(){return Ge(),pe()===21||pe()===30}function zS(){return Ge()===25}function Ob(){switch(Ge()){case 21:case 30:case 25:return!0}return!1}function HA(){let he=Y();return Ar(T.createTypeLiteralNode(Fb()),he)}function Fb(){let he;return $r(19)?(he=Uc(4,Qg),$r(20)):he=Hy(),he}function hM(){return Ge(),pe()===40||pe()===41?Ge()===148:(pe()===148&&Ge(),pe()===23&&Wf()&&Ge()===103)}function xq(){let he=Y(),Ze=Hp();$r(103);let kt=tp();return Ar(T.createTypeParameterDeclaration(void 0,Ze,kt,void 0),he)}function gM(){let he=Y();$r(19);let Ze;(pe()===148||pe()===40||pe()===41)&&(Ze=o_(),Ze.kind!==148&&$r(148)),$r(23);let kt=xq(),ir=$a(130)?tp():void 0;$r(24);let Or;(pe()===58||pe()===40||pe()===41)&&(Or=o_(),Or.kind!==58&&$r(58));let en=am();sl();let _o=Uc(4,Qg);return $r(20),Ar(T.createMappedTypeNode(Ze,kt,ir,Or,en,_o),he)}function Hx(){let he=Y();if($a(26))return Ar(T.createRestTypeNode(tp()),he);let Ze=tp();if(xL(Ze)&&Ze.pos===Ze.type.pos){let kt=T.createOptionalTypeNode(Ze.type);return qt(kt,Ze),kt.flags=Ze.flags,kt}return Ze}function KA(){return Ge()===59||pe()===58&&Ge()===59}function P3(){return pe()===26?Bf(Ge())&&KA():Bf(pe())&&KA()}function NE(){if(lr(P3)){let he=Y(),Ze=ot(),kt=bs(26),ir=Hp(),Or=bs(58);$r(59);let en=Hx(),_o=T.createNamedTupleMember(kt,ir,Or,en);return Oi(Ar(_o,he),Ze)}return Hx()}function N3(){let he=Y();return Ar(T.createTupleTypeNode(xe(21,NE,23,24)),he)}function e7(){let he=Y();$r(21);let Ze=tp();return $r(22),Ar(T.createParenthesizedType(Ze),he)}function Tq(){let he;if(pe()===128){let Ze=Y();Ge();let kt=Ar(G(128),Ze);he=Yc([kt],Ze)}return he}function O3(){let he=Y(),Ze=ot(),kt=Tq(),ir=$a(105);$.assert(!kt||ir,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let Or=dt(),en=Po(4),_o=oi(39,!1),Mi=ir?T.createConstructorTypeNode(kt,Or,en,_o):T.createFunctionTypeNode(Or,en,_o);return Oi(Ar(Mi,he),Ze)}function t7(){let he=o_();return pe()===25?void 0:he}function QA(he){let Ze=Y();he&&Ge();let kt=pe()===112||pe()===97||pe()===106?o_():Xa(pe());return he&&(kt=Ar(T.createPrefixUnaryExpression(41,kt),Ze)),Ar(T.createLiteralTypeNode(kt),Ze)}function yM(){return Ge(),pe()===102}function F3(){Le|=4194304;let he=Y(),Ze=$a(114);$r(102),$r(21);let kt=tp(),ir;if($a(28)){let _o=n.getTokenStart();$r(19);let Mi=pe();if(Mi===118||Mi===132?Ge():xr(x._0_expected,Zs(118)),$r(59),ir=HC(Mi,!0),$a(28),!$r(20)){let si=Yr(_t);si&&si.code===x._0_expected.code&&ac(si,tF(ve,Ve,_o,1,x.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}$r(22);let Or=$a(25)?ks():void 0,en=cp();return Ar(T.createImportTypeNode(kt,ir,Or,en,Ze),he)}function r7(){return Ge(),pe()===9||pe()===10}function UP(){switch(pe()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return cn(t7)||Cc();case 67:n.reScanAsteriskEqualsToken();case 42:return A0();case 61:n.reScanQuestionToken();case 58:return PE();case 100:return vh();case 54:return r2();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return QA();case 41:return lr(r7)?QA(!0):Cc();case 116:return o_();case 110:{let he=Ky();return pe()===142&&!n.hasPrecedingLineBreak()?Kg(he):he}case 114:return lr(yM)?F3():d1();case 19:return lr(hM)?gM():HA();case 23:return N3();case 21:return e7();case 102:return F3();case 131:return lr(p7)?Rb():Cc();case 16:return fo();default:return Cc()}}function FC(he){switch(pe()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!he;case 41:return!he&&lr(r7);case 21:return!he&&lr(n7);default:return bn()}}function n7(){return Ge(),pe()===22||Lt(!1)||FC()}function i7(){let he=Y(),Ze=UP();for(;!n.hasPrecedingLineBreak();)switch(pe()){case 54:Ge(),Ze=Ar(T.createJSDocNonNullableType(Ze,!0),he);break;case 58:if(lr(Vn))return Ze;Ge(),Ze=Ar(T.createJSDocNullableType(Ze,!0),he);break;case 23:if($r(23),FC()){let kt=tp();$r(24),Ze=Ar(T.createIndexedAccessTypeNode(Ze,kt),he)}else $r(24),Ze=Ar(T.createArrayTypeNode(Ze),he);break;default:return Ze}return Ze}function zP(he){let Ze=Y();return $r(he),Ar(T.createTypeOperatorNode(he,i2()),Ze)}function RC(){if($a(96)){let he=ur(tp);if(Qt()||pe()!==58)return he}}function OE(){let he=Y(),Ze=Yu(),kt=cn(RC),ir=T.createTypeParameterDeclaration(void 0,Ze,kt);return Ar(ir,he)}function n2(){let he=Y();return $r(140),Ar(T.createInferTypeNode(OE()),he)}function i2(){let he=pe();switch(he){case 143:case 158:case 148:return zP(he);case 140:return n2()}return Dt(i7)}function o2(he){if(il()){let Ze=O3(),kt;return Cb(Ze)?kt=he?x.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:x.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:kt=he?x.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:x.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,er(Ze,kt),Ze}}function LC(he,Ze,kt){let ir=Y(),Or=he===52,en=$a(he),_o=en&&o2(Or)||Ze();if(pe()===he||en){let Mi=[_o];for(;$a(he);)Mi.push(o2(Or)||Ze());_o=Ar(kt(Yc(Mi,ir)),ir)}return _o}function ZA(){return LC(51,i2,T.createIntersectionTypeNode)}function R3(){return LC(52,ZA,T.createUnionTypeNode)}function XA(){return Ge(),pe()===105}function il(){return pe()===30||pe()===21&&lr(vM)?!0:pe()===105||pe()===128&&lr(XA)}function L3(){if(eC(pe())&&na(!1),bn()||pe()===110)return Ge(),!0;if(pe()===23||pe()===19){let he=_t.length;return UE(),he===_t.length}return!1}function vM(){return Ge(),!!(pe()===22||pe()===26||L3()&&(pe()===59||pe()===28||pe()===58||pe()===64||pe()===22&&(Ge(),pe()===39)))}function a2(){let he=Y(),Ze=bn()&&cn(s2),kt=tp();return Ze?Ar(T.createTypePredicateNode(void 0,Ze,kt),he):kt}function s2(){let he=Yu();if(pe()===142&&!n.hasPrecedingLineBreak())return Ge(),he}function Rb(){let he=Y(),Ze=Nu(131),kt=pe()===110?Ky():Yu(),ir=$a(142)?tp():void 0;return Ar(T.createTypePredicateNode(Ze,kt,ir),he)}function tp(){if(Nn&81920)return Ls(81920,tp);if(il())return O3();let he=Y(),Ze=R3();if(!Qt()&&!n.hasPrecedingLineBreak()&&$a(96)){let kt=ur(tp);$r(58);let ir=Dt(tp);$r(59);let Or=Dt(tp);return Ar(T.createConditionalTypeNode(Ze,kt,ir,Or),he)}return Ze}function am(){return $a(59)?tp():void 0}function Kh(){switch(pe()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return lr(Ob);default:return bn()}}function sm(){if(Kh())return!0;switch(pe()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return g1()?!0:bn()}}function YA(){return pe()!==19&&pe()!==100&&pe()!==86&&pe()!==60&&sm()}function eh(){let he=pr();he&&Eo(!1);let Ze=Y(),kt=Sh(!0),ir;for(;ir=bs(28);)kt=zc(kt,ir,Sh(!0),Ze);return he&&Eo(!0),kt}function Lb(){return $a(64)?Sh(!0):void 0}function Sh(he){if(h1())return ew();let Ze=Eq(he)||gt(he);if(Ze)return Ze;let kt=Y(),ir=ot(),Or=MC(0);return Or.kind===80&&pe()===39?tw(kt,Or,he,ir,void 0):jh(Or)&&zT(ii())?zc(Or,o_(),Sh(he),kt):RE(Or,kt,he)}function h1(){return pe()===127?at()?!0:lr(HP):!1}function X1(){return Ge(),!n.hasPrecedingLineBreak()&&bn()}function ew(){let he=Y();return Ge(),!n.hasPrecedingLineBreak()&&(pe()===42||sm())?Ar(T.createYieldExpression(bs(42),Sh(!0)),he):Ar(T.createYieldExpression(void 0,void 0),he)}function tw(he,Ze,kt,ir,Or){$.assert(pe()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let en=T.createParameterDeclaration(void 0,void 0,Ze,void 0,void 0,void 0);Ar(en,Ze.pos);let _o=Yc([en],en.pos,en.end),Mi=Nu(39),si=Y1(!!Or,kt),zo=T.createArrowFunction(Or,void 0,_o,void 0,Mi,si);return Oi(Ar(zo,he),ir)}function Eq(he){let Ze=SM();if(Ze!==0)return Ze===1?Kx(!0,!0):cn(()=>qP(he))}function SM(){return pe()===21||pe()===30||pe()===134?lr(FE):pe()===39?1:0}function FE(){if(pe()===134&&(Ge(),n.hasPrecedingLineBreak()||pe()!==21&&pe()!==30))return 0;let he=pe(),Ze=Ge();if(he===21){if(Ze===22)switch(Ge()){case 39:case 59:case 19:return 1;default:return 0}if(Ze===23||Ze===19)return 2;if(Ze===26)return 1;if(eC(Ze)&&Ze!==134&&lr(Wf))return Ge()===130?0:1;if(!bn()&&Ze!==110)return 0;switch(Ge()){case 59:return 1;case 58:return Ge(),pe()===59||pe()===28||pe()===64||pe()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return $.assert(he===30),!bn()&&pe()!==87?0:ke===1?lr(()=>{$a(87);let ir=Ge();if(ir===96)switch(Ge()){case 64:case 32:case 44:return!1;default:return!0}else if(ir===28||ir===64)return!0;return!1})?1:0:2}function qP(he){let Ze=n.getTokenStart();if(nn?.has(Ze))return;let kt=Kx(!1,he);return kt||(nn||(nn=new Set)).add(Ze),kt}function gt(he){if(pe()===134&&lr(M3)===1){let Ze=Y(),kt=ot(),ir=Ya(),Or=MC(0);return tw(Ze,Or,he,kt,ir)}}function M3(){if(pe()===134){if(Ge(),n.hasPrecedingLineBreak()||pe()===39)return 0;let he=MC(0);if(!n.hasPrecedingLineBreak()&&he.kind===80&&pe()===39)return 1}return 0}function Kx(he,Ze){let kt=Y(),ir=ot(),Or=Ya(),en=Pt(Or,oz)?2:0,_o=dt(),Mi;if($r(21)){if(he)Mi=os(en,he);else{let JE=os(en,he);if(!JE)return;Mi=JE}if(!$r(22)&&!he)return}else{if(!he)return;Mi=Hy()}let si=pe()===59,zo=oi(59,!1);if(zo&&!he&&pf(zo))return;let La=zo;for(;La?.kind===197;)La=La.type;let hu=La&&TL(La);if(!he&&pe()!==39&&(hu||pe()!==19))return;let Zl=pe(),ll=Nu(39),N0=Zl===39||Zl===19?Y1(Pt(Or,oz),Ze):Yu();if(!Ze&&si&&pe()!==59)return;let Yy=T.createArrowFunction(Or,_o,Mi,zo,ll,N0);return Oi(Ar(Yy,kt),ir)}function Y1(he,Ze){if(pe()===19)return JC(he?2:0);if(pe()!==27&&pe()!==100&&pe()!==86&&$E()&&!YA())return JC(16|(he?2:0));let kt=at();vo(!1);let ir=$t;$t=!1;let Or=he?ye(()=>Sh(Ze)):et(()=>Sh(Ze));return $t=ir,vo(kt),Or}function RE(he,Ze,kt){let ir=bs(58);if(!ir)return he;let Or;return Ar(T.createConditionalExpression(he,ir,Ls(a,()=>Sh(!1)),Or=Nu(59),t1(Or)?Sh(kt):Ql(80,!1,x._0_expected,Zs(59))),Ze)}function MC(he){let Ze=Y(),kt=nw();return Nv(he,kt,Ze)}function th(he){return he===103||he===165}function Nv(he,Ze,kt){for(;;){ii();let ir=eH(pe());if(!(pe()===43?ir>=he:ir>he)||pe()===103&&Zt())break;if(pe()===130||pe()===152){if(n.hasPrecedingLineBreak())break;{let en=pe();Ge(),Ze=en===152?rw(Ze,tp()):Qy(Ze,tp())}}else Ze=zc(Ze,o_(),MC(ir),kt)}return Ze}function g1(){return Zt()&&pe()===103?!1:eH(pe())>0}function rw(he,Ze){return Ar(T.createSatisfiesExpression(he,Ze),he.pos)}function zc(he,Ze,kt,ir){return Ar(T.createBinaryExpression(he,Ze,kt),ir)}function Qy(he,Ze){return Ar(T.createAsExpression(he,Ze),he.pos)}function LE(){let he=Y();return Ar(T.createPrefixUnaryExpression(pe(),mr(ME)),he)}function j3(){let he=Y();return Ar(T.createDeleteExpression(mr(ME)),he)}function c2(){let he=Y();return Ar(T.createTypeOfExpression(mr(ME)),he)}function JP(){let he=Y();return Ar(T.createVoidExpression(mr(ME)),he)}function w0(){return pe()===135?Et()?!0:lr(HP):!1}function Qx(){let he=Y();return Ar(T.createAwaitExpression(mr(ME)),he)}function nw(){if(qS()){let kt=Y(),ir=VP();return pe()===43?Nv(eH(pe()),ir,kt):ir}let he=pe(),Ze=ME();if(pe()===43){let kt=_c(Ve,Ze.pos),{end:ir}=Ze;Ze.kind===217?Ye(kt,ir,x.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):($.assert(Nre(he)),Ye(kt,ir,x.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,Zs(he)))}return Ze}function ME(){switch(pe()){case 40:case 41:case 55:case 54:return LE();case 91:return j3();case 114:return c2();case 116:return JP();case 30:return ke===1?Nf(!0,void 0,void 0,!0):Pm();case 135:if(w0())return Qx();default:return VP()}}function qS(){switch(pe()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ke!==1)return!1;default:return!0}}function VP(){if(pe()===46||pe()===47){let Ze=Y();return Ar(T.createPrefixUnaryExpression(pe(),mr(iw)),Ze)}else if(ke===1&&pe()===30&&lr(Wh))return Nf(!0);let he=iw();if($.assert(jh(he)),(pe()===46||pe()===47)&&!n.hasPrecedingLineBreak()){let Ze=pe();return Ge(),Ar(T.createPostfixUnaryExpression(he,Ze),he.pos)}return he}function iw(){let he=Y(),Ze;return pe()===102?lr(GA)?(Le|=4194304,Ze=o_()):lr(zS)?(Ge(),Ge(),Ze=Ar(T.createMetaProperty(102,Hp()),he),Ze.name.escapedText==="defer"?(pe()===21||pe()===30)&&(Le|=4194304):Le|=8388608):Ze=io():Ze=pe()===108?Ki():io(),Qh(he,Ze)}function io(){let he=Y(),Ze=aw();return Zy(he,Ze,!0)}function Ki(){let he=Y(),Ze=o_();if(pe()===30){let kt=Y(),ir=cn(ow);ir!==void 0&&(Ye(kt,Y(),x.super_may_not_use_type_arguments),ev()||(Ze=T.createExpressionWithTypeArguments(Ze,ir)))}return pe()===21||pe()===25||pe()===23?Ze:(Nu(25,x.super_must_be_followed_by_an_argument_list_or_member_access),Ar(re(Ze,Mr(!0,!0,!0)),he))}function Nf(he,Ze,kt,ir=!1){let Or=Y(),en=kq(he),_o;if(en.kind===287){let Mi=WP(en),si,zo=Mi[Mi.length-1];if(zo?.kind===285&&!OA(zo.openingElement.tagName,zo.closingElement.tagName)&&OA(en.tagName,zo.closingElement.tagName)){let La=zo.children.end,hu=Ar(T.createJsxElement(zo.openingElement,zo.children,Ar(T.createJsxClosingElement(Ar(U(""),La,La)),La,La)),zo.openingElement.pos,La);Mi=Yc([...Mi.slice(0,Mi.length-1),hu],Mi.pos,La),si=zo.closingElement}else si=xM(en,he),OA(en.tagName,si.tagName)||(kt&&Tv(kt)&&OA(si.tagName,kt.tagName)?er(en.tagName,x.JSX_element_0_has_no_corresponding_closing_tag,uU(Ve,en.tagName)):er(si.tagName,x.Expected_corresponding_JSX_closing_tag_for_0,uU(Ve,en.tagName)));_o=Ar(T.createJsxElement(en,Mi,si),Or)}else en.kind===290?_o=Ar(T.createJsxFragment(en,WP(en),o7(he)),Or):($.assert(en.kind===286),_o=en);if(!ir&&he&&pe()===30){let Mi=typeof Ze>"u"?_o.pos:Ze,si=cn(()=>Nf(!0,Mi));if(si){let zo=Ql(28,!1);return rge(zo,si.pos,0),Ye(_c(Ve,Mi),si.end,x.JSX_expressions_must_have_one_parent_element),Ar(T.createBinaryExpression(_o,zo,si),Or)}}return _o}function B3(){let he=Y(),Ze=T.createJsxText(n.getTokenValue(),Qe===13);return Qe=n.scanJsxToken(),Ar(Ze,he)}function l2(he,Ze){switch(Ze){case 1:if(K1(he))er(he,x.JSX_fragment_has_no_corresponding_closing_tag);else{let kt=he.tagName,ir=Math.min(_c(Ve,kt.pos),kt.end);Ye(ir,kt.end,x.JSX_element_0_has_no_corresponding_closing_tag,uU(Ve,he.tagName))}return;case 31:case 7:return;case 12:case 13:return B3();case 19:return gs(!1);case 30:return Nf(!1,void 0,he);default:return $.assertNever(Ze)}}function WP(he){let Ze=[],kt=Y(),ir=Sr;for(Sr|=16384;;){let Or=l2(he,Qe=n.reScanJsxToken());if(!Or||(Ze.push(Or),Tv(he)&&Or?.kind===285&&!OA(Or.openingElement.tagName,Or.closingElement.tagName)&&OA(he.tagName,Or.closingElement.tagName)))break}return Sr=ir,Yc(Ze,kt)}function bM(){let he=Y();return Ar(T.createJsxAttributes(Uc(13,gg)),he)}function kq(he){let Ze=Y();if($r(30),pe()===32)return wr(),Ar(T.createJsxOpeningFragment(),Ze);let kt=qi(),ir=(Nn&524288)===0?mp():void 0,Or=bM(),en;return pe()===32?(wr(),en=T.createJsxOpeningElement(kt,ir,Or)):($r(44),$r(32,void 0,!1)&&(he?Ge():wr()),en=T.createJsxSelfClosingElement(kt,ir,Or)),Ar(en,Ze)}function qi(){let he=Y(),Ze=rh();if(Ev(Ze))return Ze;let kt=Ze;for(;$a(25);)kt=Ar(re(kt,Mr(!0,!1,!1)),he);return kt}function rh(){let he=Y();_r();let Ze=pe()===110,kt=H();return $a(59)?(_r(),Ar(T.createJsxNamespacedName(kt,H()),he)):Ze?Ar(T.createToken(110),he):kt}function gs(he){let Ze=Y();if(!$r(19))return;let kt,ir;return pe()!==20&&(he||(kt=bs(26)),ir=eh()),he?$r(20):$r(20,void 0,!1)&&wr(),Ar(T.createJsxExpression(kt,ir),Ze)}function gg(){if(pe()===19)return Ii();let he=Y();return Ar(T.createJsxAttribute(jC(),$3()),he)}function $3(){if(pe()===64){if(pn()===11)return cr();if(pe()===19)return gs(!0);if(pe()===30)return Nf(!0);xr(x.or_JSX_element_expected)}}function jC(){let he=Y();_r();let Ze=H();return $a(59)?(_r(),Ar(T.createJsxNamespacedName(Ze,H()),he)):Ze}function Ii(){let he=Y();$r(19),$r(26);let Ze=eh();return $r(20),Ar(T.createJsxSpreadAttribute(Ze),he)}function xM(he,Ze){let kt=Y();$r(31);let ir=qi();return $r(32,void 0,!1)&&(Ze||!OA(he.tagName,ir)?Ge():wr()),Ar(T.createJsxClosingElement(ir),kt)}function o7(he){let Ze=Y();return $r(31),$r(32,x.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(he?Ge():wr()),Ar(T.createJsxJsxClosingFragment(),Ze)}function Pm(){$.assert(ke!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let he=Y();$r(30);let Ze=tp();$r(32);let kt=ME();return Ar(T.createTypeAssertion(Ze,kt),he)}function Mb(){return Ge(),Bf(pe())||pe()===23||ev()}function Ov(){return pe()===29&&lr(Mb)}function BC(he){if(he.flags&64)return!0;if(bF(he)){let Ze=he.expression;for(;bF(Ze)&&!(Ze.flags&64);)Ze=Ze.expression;if(Ze.flags&64){for(;bF(he);)he.flags|=64,he=he.expression;return!0}}return!1}function U3(he,Ze,kt){let ir=Mr(!0,!0,!0),Or=kt||BC(Ze),en=Or?ae(Ze,kt,ir):re(Ze,ir);if(Or&&Aa(en.name)&&er(en.name,x.An_optional_chain_cannot_contain_private_identifiers),VT(Ze)&&Ze.typeArguments){let _o=Ze.typeArguments.pos-1,Mi=_c(Ve,Ze.typeArguments.end)+1;Ye(_o,Mi,x.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Ar(en,he)}function $C(he,Ze,kt){let ir;if(pe()===24)ir=Ql(80,!0,x.An_element_access_expression_should_take_an_argument);else{let en=Cn(eh);jy(en)&&(en.text=Gp(en.text)),ir=en}$r(24);let Or=kt||BC(Ze)?me(Ze,kt,ir):_e(Ze,ir);return Ar(Or,he)}function Zy(he,Ze,kt){for(;;){let ir,Or=!1;if(kt&&Ov()?(ir=Nu(29),Or=Bf(pe())):Or=$a(25),Or){Ze=U3(he,Ze,ir);continue}if((ir||!pr())&&$a(23)){Ze=$C(he,Ze,ir);continue}if(ev()){Ze=!ir&&Ze.kind===234?I0(he,Ze.expression,ir,Ze.typeArguments):I0(he,Ze,ir,void 0);continue}if(!ir){if(pe()===54&&!n.hasPrecedingLineBreak()){Ge(),Ze=Ar(T.createNonNullExpression(Ze),he);continue}let en=cn(ow);if(en){Ze=Ar(T.createExpressionWithTypeArguments(Ze,en),he);continue}}return Ze}}function ev(){return pe()===15||pe()===16}function I0(he,Ze,kt,ir){let Or=T.createTaggedTemplateExpression(Ze,ir,pe()===15?(zn(!0),cr()):Yn(!0));return(kt||Ze.flags&64)&&(Or.flags|=64),Or.questionDotToken=kt,Ar(Or,he)}function Qh(he,Ze){for(;;){Ze=Zy(he,Ze,!0);let kt,ir=bs(29);if(ir&&(kt=cn(ow),ev())){Ze=I0(he,Ze,ir,kt);continue}if(kt||pe()===21){!ir&&Ze.kind===234&&(kt=Ze.typeArguments,Ze=Ze.expression);let Or=jE(),en=ir||BC(Ze)?Oe(Ze,ir,kt,Or):le(Ze,kt,Or);Ze=Ar(en,he);continue}if(ir){let Or=Ql(80,!1,x.Identifier_expected);Ze=Ar(ae(Ze,ir,Or),he)}break}return Ze}function jE(){$r(21);let he=Nd(11,JS);return $r(22),he}function ow(){if((Nn&524288)!==0||Rt()!==30)return;Ge();let he=Nd(20,tp);if(ii()===32)return Ge(),he&&a7()?he:void 0}function a7(){switch(pe()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return n.hasPrecedingLineBreak()||g1()||!sm()}function aw(){switch(pe()){case 15:n.getTokenFlags()&26656&&zn(!1);case 9:case 10:case 11:return cr();case 110:case 108:case 106:case 112:case 97:return o_();case 21:return UC();case 23:return zC();case 19:return BE();case 134:if(!lr(P0))break;return qC();case 60:return Wc();case 86:return F_();case 100:return qC();case 105:return p2();case 44:case 69:if(Rn()===14)return cr();break;case 16:return Yn(!1);case 81:return Di()}return Yu(x.Expression_expected)}function UC(){let he=Y(),Ze=ot();$r(21);let kt=Cn(eh);return $r(22),Oi(Ar(ue(kt),he),Ze)}function s7(){let he=Y();$r(26);let Ze=Sh(!0);return Ar(T.createSpreadElement(Ze),he)}function u2(){return pe()===26?s7():pe()===28?Ar(T.createOmittedExpression(),Y()):Sh(!0)}function JS(){return Ls(a,u2)}function zC(){let he=Y(),Ze=n.getTokenStart(),kt=$r(23),ir=n.hasPrecedingLineBreak(),Or=Nd(15,u2);return uu(23,24,kt,Ze),Ar(Z(Or,ir),he)}function sw(){let he=Y(),Ze=ot();if(bs(26)){let La=Sh(!0);return Oi(Ar(T.createSpreadAssignment(La),he),Ze)}let kt=na(!0);if(On(139))return dw(he,Ze,kt,178,0);if(On(153))return dw(he,Ze,kt,179,0);let ir=bs(42),Or=bn(),en=jn(),_o=bs(58),Mi=bs(54);if(ir||pe()===21||pe()===30)return _w(he,Ze,kt,ir,en,_o,Mi);let si;if(Or&&pe()!==59){let La=bs(64),hu=La?Cn(()=>Sh(!0)):void 0;si=T.createShorthandPropertyAssignment(en,hu),si.equalsToken=La}else{$r(59);let La=Cn(()=>Sh(!0));si=T.createPropertyAssignment(en,La)}return si.modifiers=kt,si.questionToken=_o,si.exclamationToken=Mi,Oi(Ar(si,he),Ze)}function BE(){let he=Y(),Ze=n.getTokenStart(),kt=$r(19),ir=n.hasPrecedingLineBreak(),Or=Nd(12,sw,!0);return uu(19,20,kt,Ze),Ar(Q(Or,ir),he)}function qC(){let he=pr();Eo(!1);let Ze=Y(),kt=ot(),ir=na(!1);$r(100);let Or=bs(42),en=Or?1:0,_o=Pt(ir,oz)?2:0,Mi=en&&_o?Ct(tv):en?Ee(tv):_o?ye(tv):tv(),si=dt(),zo=Po(en|_o),La=oi(59,!1),hu=JC(en|_o);Eo(he);let Zl=T.createFunctionExpression(ir,Or,Mi,si,zo,La,hu);return Oi(Ar(Zl,Ze),kt)}function tv(){return gn()?lf():void 0}function p2(){let he=Y();if($r(105),$a(25)){let en=Hp();return Ar(T.createMetaProperty(105,en),he)}let Ze=Y(),kt=Zy(Ze,aw(),!1),ir;kt.kind===234&&(ir=kt.typeArguments,kt=kt.expression),pe()===29&&xr(x.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,uU(Ve,kt));let Or=pe()===21?jE():void 0;return Ar(be(kt,ir,Or),he)}function Zx(he,Ze){let kt=Y(),ir=ot(),Or=n.getTokenStart(),en=$r(19,Ze);if(en||he){let _o=n.hasPrecedingLineBreak(),Mi=Uc(1,yg);uu(19,20,en,Or);let si=Oi(Ar(De(Mi,_o),kt),ir);return pe()===64&&(xr(x.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Ge()),si}else{let _o=Hy();return Oi(Ar(De(_o,void 0),kt),ir)}}function JC(he,Ze){let kt=at();vo(!!(he&1));let ir=Et();ya(!!(he&2));let Or=$t;$t=!1;let en=pr();en&&Eo(!1);let _o=Zx(!!(he&16),Ze);return en&&Eo(!0),$t=Or,vo(kt),ya(ir),_o}function _f(){let he=Y(),Ze=ot();return $r(27),Oi(Ar(T.createEmptyStatement(),he),Ze)}function GP(){let he=Y(),Ze=ot();$r(101);let kt=n.getTokenStart(),ir=$r(21),Or=Cn(eh);uu(21,22,ir,kt);let en=yg(),_o=$a(93)?yg():void 0;return Oi(Ar(Fe(Or,en,_o),he),Ze)}function Xx(){let he=Y(),Ze=ot();$r(92);let kt=yg();$r(117);let ir=n.getTokenStart(),Or=$r(21),en=Cn(eh);return uu(21,22,Or,ir),$a(27),Oi(Ar(T.createDoStatement(kt,en),he),Ze)}function cw(){let he=Y(),Ze=ot();$r(117);let kt=n.getTokenStart(),ir=$r(21),Or=Cn(eh);uu(21,22,ir,kt);let en=yg();return Oi(Ar(Be(Or,en),he),Ze)}function z3(){let he=Y(),Ze=ot();$r(99);let kt=bs(135);$r(21);let ir;pe()!==27&&(pe()===115||pe()===121||pe()===87||pe()===160&&lr(jp)||pe()===135&&lr(d7)?ir=K3(!0):ir=Es(eh));let Or;if(kt?$r(165):$a(165)){let en=Cn(()=>Sh(!0));$r(22),Or=ze(kt,ir,en,yg())}else if($a(103)){let en=Cn(eh);$r(22),Or=T.createForInStatement(ir,en,yg())}else{$r(27);let en=pe()!==27&&pe()!==22?Cn(eh):void 0;$r(27);let _o=pe()!==22?Cn(eh):void 0;$r(22),Or=de(ir,en,_o,yg())}return Oi(Ar(Or,he),Ze)}function Yx(he){let Ze=Y(),kt=ot();$r(he===253?83:88);let ir=_s()?void 0:Yu();sl();let Or=he===253?T.createBreakStatement(ir):T.createContinueStatement(ir);return Oi(Ar(Or,Ze),kt)}function TM(){let he=Y(),Ze=ot();$r(107);let kt=_s()?void 0:Cn(eh);return sl(),Oi(Ar(T.createReturnStatement(kt),he),Ze)}function c7(){let he=Y(),Ze=ot();$r(118);let kt=n.getTokenStart(),ir=$r(21),Or=Cn(eh);uu(21,22,ir,kt);let en=yc(67108864,yg);return Oi(Ar(T.createWithStatement(Or,en),he),Ze)}function l7(){let he=Y(),Ze=ot();$r(84);let kt=Cn(eh);$r(59);let ir=Uc(3,yg);return Oi(Ar(T.createCaseClause(kt,ir),he),Ze)}function Cq(){let he=Y();$r(90),$r(59);let Ze=Uc(3,yg);return Ar(T.createDefaultClause(Ze),he)}function u7(){return pe()===84?l7():Cq()}function lw(){let he=Y();$r(19);let Ze=Uc(2,u7);return $r(20),Ar(T.createCaseBlock(Ze),he)}function _2(){let he=Y(),Ze=ot();$r(109),$r(21);let kt=Cn(eh);$r(22);let ir=lw();return Oi(Ar(T.createSwitchStatement(kt,ir),he),Ze)}function EM(){let he=Y(),Ze=ot();$r(111);let kt=n.hasPrecedingLineBreak()?void 0:Cn(eh);return kt===void 0&&(Kt++,kt=Ar(U(""),Y())),sc()||Ys(kt),Oi(Ar(T.createThrowStatement(kt),he),Ze)}function uw(){let he=Y(),Ze=ot();$r(113);let kt=Zx(!1),ir=pe()===85?q3():void 0,Or;return(!ir||pe()===98)&&($r(98,x.catch_or_finally_expected),Or=Zx(!1)),Oi(Ar(T.createTryStatement(kt,ir,Or),he),Ze)}function q3(){let he=Y();$r(85);let Ze;$a(21)?(Ze=VS(),$r(22)):Ze=void 0;let kt=Zx(!1);return Ar(T.createCatchClause(Ze,kt),he)}function O_(){let he=Y(),Ze=ot();return $r(89),sl(),Oi(Ar(T.createDebuggerStatement(),he),Ze)}function df(){let he=Y(),Ze=ot(),kt,ir=pe()===21,Or=Cn(eh);return ct(Or)&&$a(59)?kt=T.createLabeledStatement(Or,yg()):(sc()||Ys(Or),kt=Ae(Or),ir&&(Ze=!1)),Oi(Ar(kt,he),Ze)}function p7(){return Ge(),Bf(pe())&&!n.hasPrecedingLineBreak()}function Zh(){return Ge(),pe()===86&&!n.hasPrecedingLineBreak()}function P0(){return Ge(),pe()===100&&!n.hasPrecedingLineBreak()}function HP(){return Ge(),(Bf(pe())||pe()===9||pe()===10||pe()===11)&&!n.hasPrecedingLineBreak()}function Fv(){for(;;)switch(pe()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return KP();case 135:return Nm();case 120:case 156:case 166:return X1();case 144:case 145:return G3();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let he=pe();if(Ge(),n.hasPrecedingLineBreak())return!1;if(he===138&&pe()===156)return!0;continue;case 162:return Ge(),pe()===19||pe()===80||pe()===95;case 102:return Ge(),pe()===166||pe()===11||pe()===42||pe()===19||Bf(pe());case 95:let Ze=Ge();if(Ze===156&&(Ze=lr(Ge)),Ze===64||Ze===42||Ze===19||Ze===90||Ze===130||Ze===60)return!0;continue;case 126:Ge();continue;default:return!1}}function VC(){return lr(Fv)}function $E(){switch(pe()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return VC()||lr(Ob);case 87:case 95:return VC();case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return VC()||!lr(p7);default:return sm()}}function _7(){return Ge(),gn()||pe()===19||pe()===23}function Dq(){return lr(_7)}function jp(){return J3(!0)}function kM(){return Ge(),pe()===64||pe()===27||pe()===59}function J3(he){return Ge(),he&&pe()===165?lr(kM):(gn()||pe()===19)&&!n.hasPrecedingLineBreak()}function KP(){return lr(J3)}function d7(he){return Ge()===160?J3(he):!1}function Nm(){return lr(d7)}function yg(){switch(pe()){case 27:return _f();case 19:return Zx(!1);case 115:return cl(Y(),ot(),void 0);case 121:if(Dq())return cl(Y(),ot(),void 0);break;case 135:if(Nm())return cl(Y(),ot(),void 0);break;case 160:if(KP())return cl(Y(),ot(),void 0);break;case 100:return $i(Y(),ot(),void 0);case 86:return cm(Y(),ot(),void 0);case 101:return GP();case 92:return Xx();case 117:return cw();case 99:return z3();case 88:return Yx(252);case 83:return Yx(253);case 107:return TM();case 118:return c7();case 109:return _2();case 111:return EM();case 113:case 85:case 98:return uw();case 89:return O_();case 60:return pw();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(VC())return pw();break}return df()}function V3(he){return he.kind===138}function pw(){let he=Y(),Ze=ot(),kt=na(!0);if(Pt(kt,V3)){let Or=vg(he);if(Or)return Or;for(let en of kt)en.flags|=33554432;return yc(33554432,()=>W3(he,Ze,kt))}else return W3(he,Ze,kt)}function vg(he){return yc(33554432,()=>{let Ze=Mu(Sr,he);if(Ze)return Dp(Ze)})}function W3(he,Ze,kt){switch(pe()){case 115:case 121:case 87:case 160:case 135:return cl(he,Ze,kt);case 100:return $i(he,Ze,kt);case 86:return cm(he,Ze,kt);case 120:return nv(he,Ze,kt);case 156:return qE(he,Ze,kt);case 94:return ase(he,Ze,kt);case 162:case 144:case 145:return JQ(he,Ze,kt);case 102:return tN(he,Ze,kt);case 95:switch(Ge(),pe()){case 90:case 64:return hw(he,Ze,kt);case 130:return XP(he,Ze,kt);default:return Oq(he,Ze,kt)}default:if(kt){let ir=Ql(283,!0,x.Declaration_expected);return KU(ir,he),ir.modifiers=kt,ir}return}}function eT(){return Ge()===11}function f7(){return Ge(),pe()===161||pe()===64}function G3(){return Ge(),!n.hasPrecedingLineBreak()&&(bn()||pe()===11)}function rv(he,Ze){if(pe()!==19){if(he&4){as();return}if(_s()){sl();return}}return JC(he,Ze)}function m7(){let he=Y();if(pe()===28)return Ar(T.createOmittedExpression(),he);let Ze=bs(26),kt=UE(),ir=Lb();return Ar(T.createBindingElement(Ze,void 0,kt,ir),he)}function CM(){let he=Y(),Ze=bs(26),kt=gn(),ir=jn(),Or;kt&&pe()!==59?(Or=ir,ir=void 0):($r(59),Or=UE());let en=Lb();return Ar(T.createBindingElement(Ze,ir,Or,en),he)}function h7(){let he=Y();$r(19);let Ze=Cn(()=>Nd(9,CM));return $r(20),Ar(T.createObjectBindingPattern(Ze),he)}function H3(){let he=Y();$r(23);let Ze=Cn(()=>Nd(10,m7));return $r(24),Ar(T.createArrayBindingPattern(Ze),he)}function g7(){return pe()===19||pe()===23||pe()===81||gn()}function UE(he){return pe()===23?H3():pe()===19?h7():lf(he)}function Zg(){return VS(!0)}function VS(he){let Ze=Y(),kt=ot(),ir=UE(x.Private_identifiers_are_not_allowed_in_variable_declarations),Or;he&&ir.kind===80&&pe()===54&&!n.hasPrecedingLineBreak()&&(Or=o_());let en=am(),_o=th(pe())?void 0:Lb(),Mi=ut(ir,Or,en,_o);return Oi(Ar(Mi,Ze),kt)}function K3(he){let Ze=Y(),kt=0;switch(pe()){case 115:break;case 121:kt|=1;break;case 87:kt|=2;break;case 160:kt|=4;break;case 135:$.assert(Nm()),kt|=6,Ge();break;default:$.fail()}Ge();let ir;if(pe()===165&&lr(Q3))ir=Hy();else{let Or=Zt();ai(he),ir=Nd(8,he?VS:Zg),ai(Or)}return Ar(je(ir,kt),Ze)}function Q3(){return Wf()&&Ge()===22}function cl(he,Ze,kt){let ir=K3(!1);sl();let Or=Ce(kt,ir);return Oi(Ar(Or,he),Ze)}function $i(he,Ze,kt){let ir=Et(),Or=TS(kt);$r(100);let en=bs(42),_o=Or&2048?tv():lf(),Mi=en?1:0,si=Or&1024?2:0,zo=dt();Or&32&&ya(!0);let La=Po(Mi|si),hu=oi(59,!1),Zl=rv(Mi|si,x.or_expected);ya(ir);let ll=T.createFunctionDeclaration(kt,en,_o,zo,La,hu,Zl);return Oi(Ar(ll,he),Ze)}function Xy(){if(pe()===137)return $r(137);if(pe()===11&&lr(Ge)===21)return cn(()=>{let he=cr();return he.text==="constructor"?he:void 0})}function Od(he,Ze,kt){return cn(()=>{if(Xy()){let ir=dt(),Or=Po(0),en=oi(59,!1),_o=rv(0,x.or_expected),Mi=T.createConstructorDeclaration(kt,Or,_o);return Mi.typeParameters=ir,Mi.type=en,Oi(Ar(Mi,he),Ze)}})}function _w(he,Ze,kt,ir,Or,en,_o,Mi){let si=ir?1:0,zo=Pt(kt,oz)?2:0,La=dt(),hu=Po(si|zo),Zl=oi(59,!1),ll=rv(si|zo,Mi),N0=T.createMethodDeclaration(kt,ir,Or,en,La,hu,Zl,ll);return N0.exclamationToken=_o,Oi(Ar(N0,he),Ze)}function Z3(he,Ze,kt,ir,Or){let en=!Or&&!n.hasPrecedingLineBreak()?bs(54):void 0,_o=am(),Mi=Ls(90112,Lb);Mp(ir,_o,Mi);let si=T.createPropertyDeclaration(kt,ir,Or||en,_o,Mi);return Oi(Ar(si,he),Ze)}function QP(he,Ze,kt){let ir=bs(42),Or=jn(),en=bs(58);return ir||pe()===21||pe()===30?_w(he,Ze,kt,ir,Or,en,void 0,x.or_expected):Z3(he,Ze,kt,Or,en)}function dw(he,Ze,kt,ir,Or){let en=jn(),_o=dt(),Mi=Po(0),si=oi(59,!1),zo=rv(Or),La=ir===178?T.createGetAccessorDeclaration(kt,en,Mi,si,zo):T.createSetAccessorDeclaration(kt,en,Mi,zo);return La.typeParameters=_o,mg(La)&&(La.type=si),Oi(Ar(La,he),Ze)}function X3(){let he;if(pe()===60)return!0;for(;eC(pe());){if(he=pe(),ome(he))return!0;Ge()}if(pe()===42||(st()&&(he=pe(),Ge()),pe()===23))return!0;if(he!==void 0){if(!Uh(he)||he===153||he===139)return!0;switch(pe()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return _s()}}return!1}function B(he,Ze,kt){Nu(126);let ir=Pe(),Or=Oi(Ar(T.createClassStaticBlockDeclaration(ir),he),Ze);return Or.modifiers=kt,Or}function Pe(){let he=at(),Ze=Et();vo(!1),ya(!0);let kt=Zx(!1);return vo(he),ya(Ze),kt}function Wt(){if(Et()&&pe()===135){let he=Y(),Ze=Yu(x.Expression_expected);Ge();let kt=Zy(he,Ze,!0);return Qh(he,kt)}return iw()}function ln(){let he=Y();if(!$a(60))return;let Ze=Bt(Wt);return Ar(T.createDecorator(Ze),he)}function Fo(he,Ze,kt){let ir=Y(),Or=pe();if(pe()===87&&Ze){if(!cn(ua))return}else{if(kt&&pe()===126&&lr(eN))return;if(he&&pe()===126)return;if(!ep())return}return Ar(G(Or),ir)}function na(he,Ze,kt){let ir=Y(),Or,en,_o,Mi=!1,si=!1,zo=!1;if(he&&pe()===60)for(;en=ln();)Or=jt(Or,en);for(;_o=Fo(Mi,Ze,kt);)_o.kind===126&&(Mi=!0),Or=jt(Or,_o),si=!0;if(si&&he&&pe()===60)for(;en=ln();)Or=jt(Or,en),zo=!0;if(zo)for(;_o=Fo(Mi,Ze,kt);)_o.kind===126&&(Mi=!0),Or=jt(Or,_o);return Or&&Yc(Or,ir)}function Ya(){let he;if(pe()===134){let Ze=Y();Ge();let kt=Ar(G(134),Ze);he=Yc([kt],Ze)}return he}function ra(){let he=Y(),Ze=ot();if(pe()===27)return Ge(),Oi(Ar(T.createSemicolonClassElement(),he),Ze);let kt=na(!0,!0,!0);if(pe()===126&&lr(eN))return B(he,Ze,kt);if(On(139))return dw(he,Ze,kt,178,0);if(On(153))return dw(he,Ze,kt,179,0);if(pe()===137||pe()===11){let ir=Od(he,Ze,kt);if(ir)return ir}if(lp())return f1(he,Ze,kt);if(Bf(pe())||pe()===11||pe()===9||pe()===10||pe()===42||pe()===23)if(Pt(kt,V3)){for(let Or of kt)Or.flags|=33554432;return yc(33554432,()=>QP(he,Ze,kt))}else return QP(he,Ze,kt);if(kt){let ir=Ql(80,!0,x.Declaration_expected);return Z3(he,Ze,kt,ir,void 0)}return $.fail("Should not have attempted to parse class member declaration.")}function Wc(){let he=Y(),Ze=ot(),kt=na(!0);if(pe()===86)return bh(he,Ze,kt,232);let ir=Ql(283,!0,x.Expression_expected);return KU(ir,he),ir.modifiers=kt,ir}function F_(){return bh(Y(),ot(),void 0,232)}function cm(he,Ze,kt){return bh(he,Ze,kt,264)}function bh(he,Ze,kt,ir){let Or=Et();$r(86);let en=fw(),_o=dt();Pt(kt,fF)&&ya(!0);let Mi=WC(),si;$r(19)?(si=zE(),$r(20)):si=Hy(),ya(Or);let zo=ir===264?T.createClassDeclaration(kt,en,_o,Mi,si):T.createClassExpression(kt,en,_o,Mi,si);return Oi(Ar(zo,he),Ze)}function fw(){return gn()&&!xh()?N_(gn()):void 0}function xh(){return pe()===119&&lr(yy)}function WC(){if(Y3())return Uc(22,y7)}function y7(){let he=Y(),Ze=pe();$.assert(Ze===96||Ze===119),Ge();let kt=Nd(7,y1);return Ar(T.createHeritageClause(Ze,kt),he)}function y1(){let he=Y(),Ze=iw();if(Ze.kind===234)return Ze;let kt=mp();return Ar(T.createExpressionWithTypeArguments(Ze,kt),he)}function mp(){return pe()===30?xe(20,tp,30,32):void 0}function Y3(){return pe()===96||pe()===119}function zE(){return Uc(5,ra)}function nv(he,Ze,kt){$r(120);let ir=Yu(),Or=dt(),en=WC(),_o=Fb(),Mi=T.createInterfaceDeclaration(kt,ir,Or,en,_o);return Oi(Ar(Mi,he),Ze)}function qE(he,Ze,kt){$r(156),n.hasPrecedingLineBreak()&&xr(x.Line_break_not_permitted_here);let ir=Yu(),Or=dt();$r(64);let en=pe()===141&&cn(t7)||tp();sl();let _o=T.createTypeAliasDeclaration(kt,ir,Or,en);return Oi(Ar(_o,he),Ze)}function ZP(){let he=Y(),Ze=ot(),kt=jn(),ir=Cn(Lb);return Oi(Ar(T.createEnumMember(kt,ir),he),Ze)}function ase(he,Ze,kt){$r(94);let ir=Yu(),Or;$r(19)?(Or=Ot(()=>Nd(6,ZP)),$r(20)):Or=Hy();let en=T.createEnumDeclaration(kt,ir,Or);return Oi(Ar(en,he),Ze)}function Aq(){let he=Y(),Ze;return $r(19)?(Ze=Uc(1,yg),$r(20)):Ze=Hy(),Ar(T.createModuleBlock(Ze),he)}function v7(he,Ze,kt,ir){let Or=ir&32,en=ir&8?Hp():Yu(),_o=$a(25)?v7(Y(),!1,void 0,8|Or):Aq(),Mi=T.createModuleDeclaration(kt,en,_o,ir);return Oi(Ar(Mi,he),Ze)}function wq(he,Ze,kt){let ir=0,Or;pe()===162?(Or=Yu(),ir|=2048):(Or=cr(),Or.text=Gp(Or.text));let en;pe()===19?en=Aq():sl();let _o=T.createModuleDeclaration(kt,Or,en,ir);return Oi(Ar(_o,he),Ze)}function JQ(he,Ze,kt){let ir=0;if(pe()===162)return wq(he,Ze,kt);if($a(145))ir|=32;else if($r(144),pe()===11)return wq(he,Ze,kt);return v7(he,Ze,kt,ir)}function GC(){return pe()===149&&lr(S7)}function S7(){return Ge()===21}function eN(){return Ge()===19}function sse(){return Ge()===44}function XP(he,Ze,kt){$r(130),$r(145);let ir=Yu();sl();let Or=T.createNamespaceExportDeclaration(ir);return Or.modifiers=kt,Oi(Ar(Or,he),Ze)}function tN(he,Ze,kt){$r(102);let ir=n.getTokenFullStart(),Or;bn()&&(Or=Yu());let en;if(Or?.escapedText==="type"&&(pe()!==161||bn()&&lr(f7))&&(bn()||ri())?(en=156,Or=bn()?Yu():void 0):Or?.escapedText==="defer"&&(pe()===161?!lr(eT):pe()!==28&&pe()!==64)&&(en=166,Or=bn()?Yu():void 0),Or&&!Pq()&&en!==166)return DM(he,Ze,kt,Or,en===156);let _o=Iq(Or,ir,en,void 0),Mi=rN(),si=b7();sl();let zo=T.createImportDeclaration(kt,_o,Mi,si);return Oi(Ar(zo,he),Ze)}function Iq(he,Ze,kt,ir=!1){let Or;return(he||pe()===42||pe()===19)&&(Or=AM(he,Ze,kt,ir),$r(161)),Or}function b7(){let he=pe();if((he===118||he===132)&&!n.hasPrecedingLineBreak())return HC(he)}function Ua(){let he=Y(),Ze=Bf(pe())?Hp():Xa(11);$r(59);let kt=Sh(!0);return Ar(T.createImportAttribute(Ze,kt),he)}function HC(he,Ze){let kt=Y();Ze||$r(he);let ir=n.getTokenStart();if($r(19)){let Or=n.hasPrecedingLineBreak(),en=Nd(24,Ua,!0);if(!$r(20)){let _o=Yr(_t);_o&&_o.code===x._0_expected.code&&ac(_o,tF(ve,Ve,ir,1,x.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Ar(T.createImportAttributes(en,Or,he),kt)}else{let Or=Yc([],Y(),void 0,!1);return Ar(T.createImportAttributes(Or,!1,he),kt)}}function ri(){return pe()===42||pe()===19}function Pq(){return pe()===28||pe()===161}function DM(he,Ze,kt,ir,Or){$r(64);let en=YP();sl();let _o=T.createImportEqualsDeclaration(kt,Or,ir,en);return Oi(Ar(_o,he),Ze)}function AM(he,Ze,kt,ir){let Or;return(!he||$a(28))&&(ir&&n.setSkipJsDocLeadingAsterisks(!0),pe()===42?Or=cse():Or=WQ(276),ir&&n.setSkipJsDocLeadingAsterisks(!1)),Ar(T.createImportClause(kt,he,Or),Ze)}function YP(){return GC()?VQ():Ft(!1)}function VQ(){let he=Y();$r(149),$r(21);let Ze=rN();return $r(22),Ar(T.createExternalModuleReference(Ze),he)}function rN(){if(pe()===11){let he=cr();return he.text=Gp(he.text),he}else return eh()}function cse(){let he=Y();$r(42),$r(130);let Ze=Yu();return Ar(T.createNamespaceImport(Ze),he)}function wM(){return Bf(pe())||pe()===11}function jb(he){return pe()===11?cr():he()}function WQ(he){let Ze=Y(),kt=he===276?T.createNamedImports(xe(23,lse,19,20)):T.createNamedExports(xe(23,mw,19,20));return Ar(kt,Ze)}function mw(){let he=ot();return Oi(Nq(282),he)}function lse(){return Nq(277)}function Nq(he){let Ze=Y(),kt=Uh(pe())&&!bn(),ir=n.getTokenStart(),Or=n.getTokenEnd(),en=!1,_o,Mi=!0,si=jb(Hp);if(si.kind===80&&si.escapedText==="type")if(pe()===130){let hu=Hp();if(pe()===130){let Zl=Hp();wM()?(en=!0,_o=hu,si=jb(La),Mi=!1):(_o=si,si=Zl,Mi=!1)}else wM()?(_o=si,Mi=!1,si=jb(La)):(en=!0,si=hu)}else wM()&&(en=!0,si=jb(La));Mi&&pe()===130&&(_o=si,$r(130),si=jb(La)),he===277&&(si.kind!==80?(Ye(_c(Ve,si.pos),si.end,x.Identifier_expected),si=xv(Ql(80,!1),si.pos,si.pos)):kt&&Ye(ir,Or,x.Identifier_expected));let zo=he===277?T.createImportSpecifier(en,_o,si):T.createExportSpecifier(en,_o,si);return Ar(zo,Ze);function La(){return kt=Uh(pe())&&!bn(),ir=n.getTokenStart(),Or=n.getTokenEnd(),Hp()}}function GQ(he){return Ar(T.createNamespaceExport(jb(Hp)),he)}function Oq(he,Ze,kt){let ir=Et();ya(!0);let Or,en,_o,Mi=$a(156),si=Y();$a(42)?($a(130)&&(Or=GQ(si)),$r(161),en=rN()):(Or=WQ(280),(pe()===161||pe()===11&&!n.hasPrecedingLineBreak())&&($r(161),en=rN()));let zo=pe();en&&(zo===118||zo===132)&&!n.hasPrecedingLineBreak()&&(_o=HC(zo)),sl(),ya(ir);let La=T.createExportDeclaration(kt,Mi,Or,en,_o);return Oi(Ar(La,he),Ze)}function hw(he,Ze,kt){let ir=Et();ya(!0);let Or;$a(64)?Or=!0:$r(90);let en=Sh(!0);sl(),ya(ir);let _o=T.createExportAssignment(kt,Or,en);return Oi(Ar(_o,he),Ze)}let Bb;(he=>{he[he.SourceElements=0]="SourceElements",he[he.BlockStatements=1]="BlockStatements",he[he.SwitchClauses=2]="SwitchClauses",he[he.SwitchClauseStatements=3]="SwitchClauseStatements",he[he.TypeMembers=4]="TypeMembers",he[he.ClassMembers=5]="ClassMembers",he[he.EnumMembers=6]="EnumMembers",he[he.HeritageClauseElement=7]="HeritageClauseElement",he[he.VariableDeclarations=8]="VariableDeclarations",he[he.ObjectBindingElements=9]="ObjectBindingElements",he[he.ArrayBindingElements=10]="ArrayBindingElements",he[he.ArgumentExpressions=11]="ArgumentExpressions",he[he.ObjectLiteralMembers=12]="ObjectLiteralMembers",he[he.JsxAttributes=13]="JsxAttributes",he[he.JsxChildren=14]="JsxChildren",he[he.ArrayLiteralMembers=15]="ArrayLiteralMembers",he[he.Parameters=16]="Parameters",he[he.JSDocParameters=17]="JSDocParameters",he[he.RestProperties=18]="RestProperties",he[he.TypeParameters=19]="TypeParameters",he[he.TypeArguments=20]="TypeArguments",he[he.TupleElementTypes=21]="TupleElementTypes",he[he.HeritageClauses=22]="HeritageClauses",he[he.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",he[he.ImportAttributes=24]="ImportAttributes",he[he.JSDocComment=25]="JSDocComment",he[he.Count=26]="Count"})(Bb||(Bb={}));let IM;(he=>{he[he.False=0]="False",he[he.True=1]="True",he[he.Unknown=2]="Unknown"})(IM||(IM={}));let WS;(he=>{function Ze(zo,La,hu){sr("file.js",zo,99,void 0,1,0),n.setText(zo,La,hu),Qe=n.scan();let Zl=kt(),ll=Ht("file.js",99,1,!1,[],G(1),0,zs),N0=rF(_t,ll);return Se&&(ll.jsDocDiagnostics=rF(Se,ll)),uo(),Zl?{jsDocTypeExpression:Zl,diagnostics:N0}:void 0}he.parseJSDocTypeExpressionForTests=Ze;function kt(zo){let La=Y(),hu=(zo?$a:$r)(19),Zl=yc(16777216,Pv);(!zo||hu)&&Cp(20);let ll=T.createJSDocTypeExpression(Zl);return ft(ll),Ar(ll,La)}he.parseJSDocTypeExpression=kt;function ir(){let zo=Y(),La=$a(19),hu=Y(),Zl=Ft(!1);for(;pe()===81;)rr(),Mt(),Zl=Ar(T.createJSDocMemberName(Zl,Yu()),hu);La&&Cp(20);let ll=T.createJSDocNameReference(Zl);return ft(ll),Ar(ll,zo)}he.parseJSDocNameReference=ir;function Or(zo,La,hu){sr("",zo,99,void 0,1,0);let Zl=yc(16777216,()=>si(La,hu)),N0=rF(_t,{languageVariant:0,text:zo});return uo(),Zl?{jsDoc:Zl,diagnostics:N0}:void 0}he.parseIsolatedJSDocComment=Or;function en(zo,La,hu){let Zl=Qe,ll=_t.length,N0=Dr,Yy=yc(16777216,()=>si(La,hu));return xl(Yy,zo),Nn&524288&&(Se||(Se=[]),En(Se,_t,ll)),Qe=Zl,_t.length=ll,Dr=N0,Yy}he.parseJSDocComment=en;let _o;(zo=>{zo[zo.BeginningOfLine=0]="BeginningOfLine",zo[zo.SawAsterisk=1]="SawAsterisk",zo[zo.SavingComments=2]="SavingComments",zo[zo.SavingBackticks=3]="SavingBackticks"})(_o||(_o={}));let Mi;(zo=>{zo[zo.Property=1]="Property",zo[zo.Parameter=2]="Parameter",zo[zo.CallbackParameter=4]="CallbackParameter"})(Mi||(Mi={}));function si(zo=0,La){let hu=Ve,Zl=La===void 0?hu.length:zo+La;if(La=Zl-zo,$.assert(zo>=0),$.assert(zo<=Zl),$.assert(Zl<=hu.length),!iye(hu,zo))return;let ll,N0,Yy,JE,VE,tT=[],KC=[],gl=Sr;Sr|=1<<25;let Sd=n.scanRange(zo+3,La-5,WE);return Sr=gl,Sd;function WE(){let Fn=1,eo,po=zo-(hu.lastIndexOf(` -`,zo)+1)+4;function Xo(gu){eo||(eo=po),tT.push(gu),po+=gu.length}for(Mt();Lv(5););Lv(4)&&(Fn=0,po=0);e:for(;;){switch(pe()){case 60:x7(tT),VE||(VE=Y()),ju(P(po)),Fn=0,eo=void 0;break;case 4:tT.push(n.getTokenText()),Fn=0,po=0;break;case 42:let gu=n.getTokenText();Fn===1?(Fn=2,Xo(gu)):($.assert(Fn===0),Fn=1,po+=gu.length);break;case 5:$.assert(Fn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let Of=n.getTokenText();eo!==void 0&&po+Of.length>eo&&tT.push(Of.slice(eo-po)),po+=Of.length;break;case 1:break e;case 82:Fn=2,Xo(n.getTokenValue());break;case 19:Fn=2;let Mv=n.getTokenFullStart(),v1=n.getTokenEnd()-1,iv=we(v1);if(iv){JE||Om(tT),KC.push(Ar(T.createJSDocText(tT.join("")),JE??zo,Mv)),KC.push(iv),tT=[],JE=n.getTokenEnd();break}default:Fn=2,Xo(n.getTokenText());break}Fn===2?Ir(!1):Mt()}let ca=tT.join("").trimEnd();KC.length&&ca.length&&KC.push(Ar(T.createJSDocText(ca),JE??zo,VE)),KC.length&&ll&&$.assertIsDefined(VE,"having parsed tags implies that the end of the comment span should be set");let Dc=ll&&Yc(ll,N0,Yy);return Ar(T.createJSDocComment(KC.length?Yc(KC,zo,VE):ca.length?ca:void 0,Dc),zo,Zl)}function Om(Fn){for(;Fn.length&&(Fn[0]===` -`||Fn[0]==="\r");)Fn.shift()}function x7(Fn){for(;Fn.length;){let eo=Fn[Fn.length-1].trimEnd();if(eo==="")Fn.pop();else if(eo.lengthOf&&(Xo.push(nT.slice(Of-Fn)),gu=2),Fn+=nT.length;break;case 19:gu=2;let d2=n.getTokenFullStart(),PM=n.getTokenEnd()-1,jq=we(PM);jq?(ca.push(Ar(T.createJSDocText(Xo.join("")),Dc??po,d2)),ca.push(jq),Xo=[],Dc=n.getTokenEnd()):Mv(n.getTokenText());break;case 62:gu===3?gu=2:gu=3,Mv(n.getTokenText());break;case 82:gu!==3&&(gu=2),Mv(n.getTokenValue());break;case 42:if(gu===0){gu=1,Fn+=1;break}default:gu!==3&&(gu=2),Mv(n.getTokenText());break}gu===2||gu===3?v1=Ir(gu===3):v1=Mt()}Om(Xo);let iv=Xo.join("").trimEnd();if(ca.length)return iv.length&&ca.push(Ar(T.createJSDocText(iv),Dc??po)),Yc(ca,po,n.getTokenEnd());if(iv.length)return iv}function we(Fn){let eo=cn(Fr);if(!eo)return;Mt(),$b();let po=Tt(),Xo=[];for(;pe()!==20&&pe()!==4&&pe()!==1;)Xo.push(n.getTokenText()),Mt();let ca=eo==="link"?T.createJSDocLink:eo==="linkcode"?T.createJSDocLinkCode:T.createJSDocLinkPlain;return Ar(ca(po,Xo.join("")),Fn,n.getTokenEnd())}function Tt(){if(Bf(pe())){let Fn=Y(),eo=Hp();for(;$a(25);)eo=Ar(T.createQualifiedName(eo,pe()===81?Ql(80,!1):Hp()),Fn);for(;pe()===81;)rr(),Mt(),eo=Ar(T.createJSDocMemberName(eo,Yu()),Fn);return eo}}function Fr(){if(yi(),pe()===19&&Mt()===60&&Bf(Mt())){let Fn=n.getTokenValue();if(ji(Fn))return Fn}}function ji(Fn){return Fn==="link"||Fn==="linkcode"||Fn==="linkplain"}function ds(Fn,eo,po,Xo){return Ar(T.createJSDocUnknownTag(eo,q(Fn,Y(),po,Xo)),Fn)}function ju(Fn){Fn&&(ll?ll.push(Fn):(ll=[Fn],N0=Fn.pos),Yy=Fn.end)}function Sy(){return yi(),pe()===19?kt():void 0}function QC(){let Fn=Lv(23);Fn&&$b();let eo=Lv(62),po=lxe();return eo&&kc(62),Fn&&($b(),bs(64)&&eh(),$r(24)),{name:po,isBracketed:Fn}}function Rv(Fn){switch(Fn.kind){case 151:return!0;case 189:return Rv(Fn.elementType);default:return Ug(Fn)&&ct(Fn.typeName)&&Fn.typeName.escapedText==="Object"&&!Fn.typeArguments}}function T7(Fn,eo,po,Xo){let ca=Sy(),Dc=!ca;yi();let{name:gu,isBracketed:Of}=QC(),Mv=yi();Dc&&!lr(Fr)&&(ca=Sy());let v1=q(Fn,Y(),Xo,Mv),iv=xje(ca,gu,po,Xo);iv&&(ca=iv,Dc=!0);let nT=po===1?T.createJSDocPropertyTag(eo,gu,Of,ca,Dc,v1):T.createJSDocParameterTag(eo,gu,Of,ca,Dc,v1);return Ar(nT,Fn)}function xje(Fn,eo,po,Xo){if(Fn&&Rv(Fn.type)){let ca=Y(),Dc,gu;for(;Dc=cn(()=>nN(po,Xo,eo));)Dc.kind===342||Dc.kind===349?gu=jt(gu,Dc):Dc.kind===346&&er(Dc.tagName,x.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(gu){let Of=Ar(T.createJSDocTypeLiteral(gu,Fn.type.kind===189),ca);return Ar(T.createJSDocTypeExpression(Of),ca)}}}function Fq(Fn,eo,po,Xo){Pt(ll,Qne)&&Ye(eo.pos,n.getTokenStart(),x._0_tag_already_specified,oa(eo.escapedText));let ca=Sy();return Ar(T.createJSDocReturnTag(eo,ca,q(Fn,Y(),po,Xo)),Fn)}function E7(Fn,eo,po,Xo){Pt(ll,mz)&&Ye(eo.pos,n.getTokenStart(),x._0_tag_already_specified,oa(eo.escapedText));let ca=kt(!0),Dc=po!==void 0&&Xo!==void 0?q(Fn,Y(),po,Xo):void 0;return Ar(T.createJSDocTypeTag(eo,ca,Dc),Fn)}function Tje(Fn,eo,po,Xo){let Dc=pe()===23||lr(()=>Mt()===60&&Bf(Mt())&&ji(n.getTokenValue()))?void 0:ir(),gu=po!==void 0&&Xo!==void 0?q(Fn,Y(),po,Xo):void 0;return Ar(T.createJSDocSeeTag(eo,Dc,gu),Fn)}function Eje(Fn,eo,po,Xo){let ca=Sy(),Dc=q(Fn,Y(),po,Xo);return Ar(T.createJSDocThrowsTag(eo,ca,Dc),Fn)}function HQ(Fn,eo,po,Xo){let ca=Y(),Dc=nxe(),gu=n.getTokenFullStart(),Of=q(Fn,gu,po,Xo);Of||(gu=n.getTokenFullStart());let Mv=typeof Of!="string"?Yc(go([Ar(Dc,ca,gu)],Of),ca):Dc.text+Of;return Ar(T.createJSDocAuthorTag(eo,Mv),Fn)}function nxe(){let Fn=[],eo=!1,po=n.getToken();for(;po!==1&&po!==4;){if(po===30)eo=!0;else{if(po===60&&!eo)break;if(po===32&&eo){Fn.push(n.getTokenText()),n.resetTokenState(n.getTokenEnd());break}}Fn.push(n.getTokenText()),po=Mt()}return T.createJSDocText(Fn.join(""))}function ZC(Fn,eo,po,Xo){let ca=e6();return Ar(T.createJSDocImplementsTag(eo,ca,q(Fn,Y(),po,Xo)),Fn)}function kje(Fn,eo,po,Xo){let ca=e6();return Ar(T.createJSDocAugmentsTag(eo,ca,q(Fn,Y(),po,Xo)),Fn)}function Cje(Fn,eo,po,Xo){let ca=kt(!1),Dc=po!==void 0&&Xo!==void 0?q(Fn,Y(),po,Xo):void 0;return Ar(T.createJSDocSatisfiesTag(eo,ca,Dc),Fn)}function Dje(Fn,eo,po,Xo){let ca=n.getTokenFullStart(),Dc;bn()&&(Dc=Yu());let gu=Iq(Dc,ca,156,!0),Of=rN(),Mv=b7(),v1=po!==void 0&&Xo!==void 0?q(Fn,Y(),po,Xo):void 0;return Ar(T.createJSDocImportTag(eo,gu,Of,Mv,v1),Fn)}function e6(){let Fn=$a(19),eo=Y(),po=Rq();n.setSkipJsDocLeadingAsterisks(!0);let Xo=mp();n.setSkipJsDocLeadingAsterisks(!1);let ca=T.createExpressionWithTypeArguments(po,Xo),Dc=Ar(ca,eo);return Fn&&($b(),$r(20)),Dc}function Rq(){let Fn=Y(),eo=Xg();for(;$a(25);){let po=Xg();eo=Ar(re(eo,po),Fn)}return eo}function k7(Fn,eo,po,Xo,ca){return Ar(eo(po,q(Fn,Y(),Xo,ca)),Fn)}function ixe(Fn,eo,po,Xo){let ca=kt(!0);return $b(),Ar(T.createJSDocThisTag(eo,ca,q(Fn,Y(),po,Xo)),Fn)}function Lq(Fn,eo,po,Xo){let ca=kt(!0);return $b(),Ar(T.createJSDocEnumTag(eo,ca,q(Fn,Y(),po,Xo)),Fn)}function oxe(Fn,eo,po,Xo){let ca=Sy();yi();let Dc=KQ();$b();let gu=oe(po),Of;if(!ca||Rv(ca.type)){let v1,iv,nT,d2=!1;for(;(v1=cn(()=>Ije(po)))&&v1.kind!==346;)if(d2=!0,v1.kind===345)if(iv){let PM=xr(x.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);PM&&ac(PM,tF(ve,Ve,0,0,x.The_tag_was_first_specified_here));break}else iv=v1;else nT=jt(nT,v1);if(d2){let PM=ca&&ca.type.kind===189,jq=T.createJSDocTypeLiteral(nT,PM);ca=iv&&iv.typeExpression&&!Rv(iv.typeExpression.type)?iv.typeExpression:Ar(jq,Fn),Of=ca.end}}Of=Of||gu!==void 0?Y():(Dc??ca??eo).end,gu||(gu=q(Fn,Of,po,Xo));let Mv=T.createJSDocTypedefTag(eo,ca,Dc,gu);return Ar(Mv,Fn,Of)}function KQ(Fn){let eo=n.getTokenStart();if(!Bf(pe()))return;let po=Xg();if($a(25)){let Xo=KQ(!0),ca=T.createModuleDeclaration(void 0,po,Xo,Fn?8:void 0);return Ar(ca,eo)}return Fn&&(po.flags|=4096),po}function Mq(Fn){let eo=Y(),po,Xo;for(;po=cn(()=>nN(4,Fn));){if(po.kind===346){er(po.tagName,x.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Xo=jt(Xo,po)}return Yc(Xo||[],eo)}function axe(Fn,eo){let po=Mq(eo),Xo=cn(()=>{if(Lv(60)){let ca=P(eo);if(ca&&ca.kind===343)return ca}});return Ar(T.createJSDocSignature(void 0,po,Xo),Fn)}function sxe(Fn,eo,po,Xo){let ca=KQ();$b();let Dc=oe(po),gu=axe(Fn,po);Dc||(Dc=q(Fn,Y(),po,Xo));let Of=Dc!==void 0?Y():gu.end;return Ar(T.createJSDocCallbackTag(eo,gu,ca,Dc),Fn,Of)}function Aje(Fn,eo,po,Xo){$b();let ca=oe(po),Dc=axe(Fn,po);ca||(ca=q(Fn,Y(),po,Xo));let gu=ca!==void 0?Y():Dc.end;return Ar(T.createJSDocOverloadTag(eo,Dc,ca),Fn,gu)}function wje(Fn,eo){for(;!ct(Fn)||!ct(eo);)if(!ct(Fn)&&!ct(eo)&&Fn.right.escapedText===eo.right.escapedText)Fn=Fn.left,eo=eo.left;else return!1;return Fn.escapedText===eo.escapedText}function Ije(Fn){return nN(1,Fn)}function nN(Fn,eo,po){let Xo=!0,ca=!1;for(;;)switch(Mt()){case 60:if(Xo){let Dc=cxe(Fn,eo);return Dc&&(Dc.kind===342||Dc.kind===349)&&po&&(ct(Dc.name)||!wje(po,Dc.name.left))?!1:Dc}ca=!1;break;case 4:Xo=!0,ca=!1;break;case 42:ca&&(Xo=!1),ca=!0;break;case 80:Xo=!1;break;case 1:return!1}}function cxe(Fn,eo){$.assert(pe()===60);let po=n.getTokenFullStart();Mt();let Xo=Xg(),ca=yi(),Dc;switch(Xo.escapedText){case"type":return Fn===1&&E7(po,Xo);case"prop":case"property":Dc=1;break;case"arg":case"argument":case"param":Dc=6;break;case"template":return di(po,Xo,eo,ca);case"this":return ixe(po,Xo,eo,ca);default:return!1}return Fn&Dc?T7(po,Xo,Fn,eo):!1}function Pje(){let Fn=Y(),eo=Lv(23);eo&&$b();let po=na(!1,!0),Xo=Xg(x.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),ca;if(eo&&($b(),$r(64),ca=yc(16777216,Pv),$r(24)),!Op(Xo))return Ar(T.createTypeParameterDeclaration(po,Xo,void 0,ca),Fn)}function GE(){let Fn=Y(),eo=[];do{$b();let po=Pje();po!==void 0&&eo.push(po),yi()}while(Lv(28));return Yc(eo,Fn)}function di(Fn,eo,po,Xo){let ca=pe()===19?kt():void 0,Dc=GE();return Ar(T.createJSDocTemplateTag(eo,ca,Dc,q(Fn,Y(),po,Xo)),Fn)}function Lv(Fn){return pe()===Fn?(Mt(),!0):!1}function lxe(){let Fn=Xg();for($a(23)&&$r(24);$a(25);){let eo=Xg();$a(23)&&$r(24),Fn=Nr(Fn,eo)}return Fn}function Xg(Fn){if(!Bf(pe()))return Ql(80,!Fn,Fn||x.Identifier_expected);Kt++;let eo=n.getTokenStart(),po=n.getTokenEnd(),Xo=pe(),ca=Gp(n.getTokenValue()),Dc=Ar(U(ca,Xo),eo,po);return Mt(),Dc}}})(WS=t.JSDocParser||(t.JSDocParser={}))})(NA||(NA={}));var vut=new WeakSet;function Bir(t){vut.has(t)&&$.fail("Source file has already been incrementally parsed"),vut.add(t)}var Sut=new WeakSet;function $ir(t){return Sut.has(t)}function DNe(t){Sut.add(t)}var aye;(t=>{function n(F,M,U,J){if(J=J||$.shouldAssert(2),T(F,M,U,J),Cx(U))return F;if(F.statements.length===0)return NA.parseSourceFile(F.fileName,M,F.languageVersion,void 0,!0,F.scriptKind,F.setExternalModuleIndicator,F.jsDocParsingMode);Bir(F),NA.fixupParentReferences(F);let G=F.text,Z=C(F),Q=g(F,U);T(F,M,Q,J),$.assert(Q.span.start<=U.span.start),$.assert(Xn(Q.span)===Xn(U.span)),$.assert(Xn(WI(Q))===Xn(WI(U)));let re=WI(Q).length-Q.span.length;y(F,Q.span.start,Xn(Q.span),Xn(WI(Q)),re,G,M,J);let ae=NA.parseSourceFile(F.fileName,M,F.languageVersion,Z,!0,F.scriptKind,F.setExternalModuleIndicator,F.jsDocParsingMode);return ae.commentDirectives=a(F.commentDirectives,ae.commentDirectives,Q.span.start,Xn(Q.span),re,G,M,J),ae.impliedNodeFormat=F.impliedNodeFormat,nNe(F,ae),ae}t.updateSourceFile=n;function a(F,M,U,J,G,Z,Q,re){if(!F)return M;let ae,_e=!1;for(let le of F){let{range:Oe,type:be}=le;if(Oe.endJ){me();let ue={range:{pos:Oe.pos+G,end:Oe.end+G},type:be};ae=jt(ae,ue),re&&$.assert(Z.substring(Oe.pos,Oe.end)===Q.substring(ue.range.pos,ue.range.end))}}return me(),ae;function me(){_e||(_e=!0,ae?M&&ae.push(...M):ae=M)}}function c(F,M,U,J,G,Z,Q){U?ae(F):re(F);return;function re(_e){let me="";if(Q&&u(_e)&&(me=G.substring(_e.pos,_e.end)),Vge(_e,M),xv(_e,_e.pos+J,_e.end+J),Q&&u(_e)&&$.assert(me===Z.substring(_e.pos,_e.end)),Is(_e,re,ae),hy(_e))for(let le of _e.jsDoc)re(le);f(_e,Q)}function ae(_e){xv(_e,_e.pos+J,_e.end+J);for(let me of _e)re(me)}}function u(F){switch(F.kind){case 11:case 9:case 80:return!0}return!1}function _(F,M,U,J,G){$.assert(F.end>=M,"Adjusting an element that was entirely before the change range"),$.assert(F.pos<=U,"Adjusting an element that was entirely after the change range"),$.assert(F.pos<=F.end);let Z=Math.min(F.pos,J),Q=F.end>=U?F.end+G:Math.min(F.end,J);if($.assert(Z<=Q),F.parent){let re=F.parent;$.assertGreaterThanOrEqual(Z,re.pos),$.assertLessThanOrEqual(Q,re.end)}xv(F,Z,Q)}function f(F,M){if(M){let U=F.pos,J=G=>{$.assert(G.pos>=U),U=G.end};if(hy(F))for(let G of F.jsDoc)J(G);Is(F,J),$.assert(U<=F.end)}}function y(F,M,U,J,G,Z,Q,re){ae(F);return;function ae(me){if($.assert(me.pos<=me.end),me.pos>U){c(me,F,!1,G,Z,Q,re);return}let le=me.end;if(le>=M){if(DNe(me),Vge(me,F),_(me,M,U,J,G),Is(me,ae,_e),hy(me))for(let Oe of me.jsDoc)ae(Oe);f(me,re);return}$.assert(leU){c(me,F,!0,G,Z,Q,re);return}let le=me.end;if(le>=M){DNe(me),_(me,M,U,J,G);for(let Oe of me)ae(Oe);return}$.assert(le0&&Q<=1;Q++){let re=k(F,J);$.assert(re.pos<=J);let ae=re.pos;J=Math.max(0,ae-1)}let G=Hu(J,Xn(M.span)),Z=M.newLength+(M.span.start-J);return X0(G,Z)}function k(F,M){let U=F,J;if(Is(F,Z),J){let Q=G(J);Q.pos>U.pos&&(U=Q)}return U;function G(Q){for(;;){let re=Ohe(Q);if(re)Q=re;else return Q}}function Z(Q){if(!Op(Q))if(Q.pos<=M){if(Q.pos>=U.pos&&(U=Q),MM),!0}}function T(F,M,U,J){let G=F.text;if(U&&($.assert(G.length-U.span.length+U.newLength===M.length),J||$.shouldAssert(3))){let Z=G.substr(0,U.span.start),Q=M.substr(0,U.span.start);$.assert(Z===Q);let re=G.substring(Xn(U.span),G.length),ae=M.substring(Xn(WI(U)),M.length);$.assert(re===ae)}}function C(F){let M=F.statements,U=0;$.assert(U=_e.pos&&Q<_e.end?(Is(_e,re,ae),!0):!1}function ae(_e){if(Q>=_e.pos&&Q<_e.end)for(let me=0;me<_e.length;me++){let le=_e[me];if(le){if(le.pos===Q)return M=_e,U=me,J=le,!0;if(le.pos{F[F.Value=-1]="Value"})(O||(O={}))})(aye||(aye={}));function sf(t){return sie(t)!==void 0}function sie(t){let n=nE(t,gne,!1);if(n)return n;if(Au(t,".ts")){let a=t_(t),c=a.lastIndexOf(".d.");if(c>=0)return a.substring(c)}}function Uir(t,n,a,c){if(t){if(t==="import")return 99;if(t==="require")return 1;c(n,a-n,x.resolution_mode_should_be_either_require_or_import)}}function sye(t,n){let a=[];for(let c of my(n,0)||j){let u=n.substring(c.pos,c.end);Vir(a,c,u)}t.pragmas=new Map;for(let c of a){if(t.pragmas.has(c.name)){let u=t.pragmas.get(c.name);u instanceof Array?u.push(c.args):t.pragmas.set(c.name,[u,c.args]);continue}t.pragmas.set(c.name,c.args)}}function cye(t,n){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.libReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach((a,c)=>{switch(c){case"reference":{let u=t.referencedFiles,_=t.typeReferenceDirectives,f=t.libReferenceDirectives;X(Ll(a),y=>{let{types:g,lib:k,path:T,["resolution-mode"]:C,preserve:O}=y.arguments,F=O==="true"?!0:void 0;if(y.arguments["no-default-lib"]==="true")t.hasNoDefaultLib=!0;else if(g){let M=Uir(C,g.pos,g.end,n);_.push({pos:g.pos,end:g.end,fileName:g.value,...M?{resolutionMode:M}:{},...F?{preserve:F}:{}})}else k?f.push({pos:k.pos,end:k.end,fileName:k.value,...F?{preserve:F}:{}}):T?u.push({pos:T.pos,end:T.end,fileName:T.value,...F?{preserve:F}:{}}):n(y.range.pos,y.range.end-y.range.pos,x.Invalid_reference_directive_syntax)});break}case"amd-dependency":{t.amdDependencies=Cr(Ll(a),u=>({name:u.arguments.name,path:u.arguments.path}));break}case"amd-module":{if(a instanceof Array)for(let u of a)t.moduleName&&n(u.range.pos,u.range.end-u.range.pos,x.An_AMD_module_cannot_have_multiple_name_assignments),t.moduleName=u.arguments.name;else t.moduleName=a.arguments.name;break}case"ts-nocheck":case"ts-check":{X(Ll(a),u=>{(!t.checkJsDirective||u.range.pos>t.checkJsDirective.pos)&&(t.checkJsDirective={enabled:c==="ts-check",end:u.range.end,pos:u.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:$.fail("Unhandled pragma kind")}})}var ANe=new Map;function zir(t){if(ANe.has(t))return ANe.get(t);let n=new RegExp(`(\\s${t}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return ANe.set(t,n),n}var qir=/^\/\/\/\s*<(\S+)\s.*?\/>/m,Jir=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function Vir(t,n,a){let c=n.kind===2&&qir.exec(a);if(c){let _=c[1].toLowerCase(),f=y4[_];if(!f||!(f.kind&1))return;if(f.args){let y={};for(let g of f.args){let T=zir(g.name).exec(a);if(!T&&!g.optional)return;if(T){let C=T[2]||T[3];if(g.captureSpan){let O=n.pos+T.index+T[1].length+1;y[g.name]={value:C,pos:O,end:O+C.length}}else y[g.name]=C}}t.push({name:_,args:{arguments:y,range:n}})}else t.push({name:_,args:{arguments:{},range:n}});return}let u=n.kind===2&&Jir.exec(a);if(u)return but(t,n,2,u);if(n.kind===3){let _=/@(\S+)(\s+(?:\S.*)?)?$/gm,f;for(;f=_.exec(a);)but(t,n,4,f)}}function but(t,n,a,c){if(!c)return;let u=c[1].toLowerCase(),_=y4[u];if(!_||!(_.kind&a))return;let f=c[2],y=Wir(_,f);y!=="fail"&&t.push({name:u,args:{arguments:y,range:n}})}function Wir(t,n){if(!n)return{};if(!t.args)return{};let a=n.trim().split(/\s+/),c={};for(let u=0;u[""+n,t])),Tut=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["es2024","lib.es2024.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.arraybuffer","lib.es2017.arraybuffer.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["es2023.intl","lib.es2023.intl.d.ts"],["es2024.arraybuffer","lib.es2024.arraybuffer.d.ts"],["es2024.collection","lib.es2024.collection.d.ts"],["es2024.object","lib.es2024.object.d.ts"],["es2024.promise","lib.es2024.promise.d.ts"],["es2024.regexp","lib.es2024.regexp.d.ts"],["es2024.sharedmemory","lib.es2024.sharedmemory.d.ts"],["es2024.string","lib.es2024.string.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2024.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.es2024.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.es2024.regexp.d.ts"],["esnext.string","lib.es2024.string.d.ts"],["esnext.iterator","lib.esnext.iterator.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.float16","lib.esnext.float16.d.ts"],["esnext.error","lib.esnext.error.d.ts"],["esnext.sharedmemory","lib.esnext.sharedmemory.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],cie=Tut.map(t=>t[0]),lye=new Map(Tut),wF=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:x.Watch_and_Build_Modes,description:x.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:x.Watch_and_Build_Modes,description:x.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:x.Watch_and_Build_Modes,description:x.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:x.Watch_and_Build_Modes,description:x.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:KNe},allowConfigDirTemplateSubstitution:!0,category:x.Watch_and_Build_Modes,description:x.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:KNe},allowConfigDirTemplateSubstitution:!0,category:x.Watch_and_Build_Modes,description:x.Remove_a_list_of_files_from_the_watch_mode_s_processing}],lie=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:x.Command_line_Options,description:x.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:x.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:x.Command_line_Options,description:x.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:x.Output_Formatting,description:x.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:x.Compiler_Diagnostics,description:x.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:x.Compiler_Diagnostics,description:x.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:x.Compiler_Diagnostics,description:x.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:x.Output_Formatting,description:x.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:x.Compiler_Diagnostics,description:x.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:x.Compiler_Diagnostics,description:x.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:x.Compiler_Diagnostics,description:x.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:x.FILE_OR_DIRECTORY,category:x.Compiler_Diagnostics,description:x.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,paramType:x.DIRECTORY,category:x.Compiler_Diagnostics,description:x.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:x.Projects,description:x.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:x.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:x.Emit,transpileOptionValue:void 0,description:x.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:x.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:x.Emit,defaultValueDescription:!1,description:x.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:x.Emit,description:x.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:x.Emit,defaultValueDescription:!1,description:x.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:x.Emit,description:x.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:x.Compiler_Diagnostics,description:x.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:x.Emit,description:x.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:x.Watch_and_Build_Modes,description:x.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:x.Command_line_Options,isCommandLineOnly:!0,description:x.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:x.Platform_specific}],uye={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,es2023:10,es2024:11,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:x.VERSION,showInSimplifiedHelpView:!0,category:x.Language_and_Environment,description:x.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},INe={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,node18:101,node20:102,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:x.KIND,showInSimplifiedHelpView:!0,category:x.Modules,description:x.Specify_what_module_code_is_generated,defaultValueDescription:void 0},Eut=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:x.Command_line_Options,description:x.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:x.Command_line_Options,description:x.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:x.Command_line_Options,description:x.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:x.Command_line_Options,paramType:x.FILE_OR_DIRECTORY,description:x.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:x.Command_line_Options,isCommandLineOnly:!0,description:x.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:x.Command_line_Options,isCommandLineOnly:!0,description:x.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},uye,INe,{name:"lib",type:"list",element:{name:"lib",type:lye,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:x.Language_and_Environment,description:x.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:x.JavaScript_Support,description:x.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:x.JavaScript_Support,description:x.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:xut,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:x.KIND,showInSimplifiedHelpView:!0,category:x.Language_and_Environment,description:x.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:x.FILE,showInSimplifiedHelpView:!0,category:x.Emit,description:x.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:x.DIRECTORY,showInSimplifiedHelpView:!0,category:x.Emit,description:x.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:x.LOCATION,category:x.Modules,description:x.Specify_the_root_folder_within_your_source_files,defaultValueDescription:x.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:x.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:x.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:x.FILE,category:x.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:x.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:x.Emit,defaultValueDescription:!1,description:x.Disable_emitting_comments},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!0,category:x.Emit,description:x.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Backwards_Compatibility,description:x.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:x.Emit,description:x.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:x.Interop_Constraints,description:x.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Interop_Constraints,description:x.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"isolatedDeclarations",type:"boolean",category:x.Interop_Constraints,description:x.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"erasableSyntaxOnly",type:"boolean",category:x.Interop_Constraints,description:x.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"libReplacement",type:"boolean",affectsProgramStructure:!0,category:x.Language_and_Environment,description:x.Enable_lib_replacement,defaultValueDescription:!0},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:x.Type_Checking,description:x.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:x.Type_Checking,description:x.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:x.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:x.Type_Checking,description:x.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:x.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:x.Type_Checking,description:x.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:x.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:x.Type_Checking,description:x.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:x.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:x.Type_Checking,description:x.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:x.false_unless_strict_is_set},{name:"strictBuiltinIteratorReturn",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:x.Type_Checking,description:x.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,defaultValueDescription:x.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:x.Type_Checking,description:x.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:x.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:x.Type_Checking,description:x.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:x.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:x.Type_Checking,description:x.Ensure_use_strict_is_always_emitted,defaultValueDescription:x.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Type_Checking,description:x.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Type_Checking,description:x.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Type_Checking,description:x.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Type_Checking,description:x.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Type_Checking,description:x.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Type_Checking,description:x.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Type_Checking,description:x.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:x.Type_Checking,description:x.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:x.STRATEGY,category:x.Modules,description:x.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:x.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:x.Modules,description:x.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:x.Modules,description:x.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:x.Modules,description:x.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:x.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:x.Modules,description:x.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:x.Modules,description:x.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Interop_Constraints,description:x.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:x.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:x.Interop_Constraints,description:x.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:x.Interop_Constraints,description:x.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Modules,description:x.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:x.Modules,description:x.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Modules,description:x.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"rewriteRelativeImportExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Modules,description:x.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files,defaultValueDescription:!1},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:x.Modules,description:x.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:x.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:x.Modules,description:x.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:x.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:x.Modules,description:x.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"noUncheckedSideEffectImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Modules,description:x.Check_side_effect_imports,defaultValueDescription:!1},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:x.LOCATION,category:x.Emit,description:x.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:x.LOCATION,category:x.Emit,description:x.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:x.Emit,description:x.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Language_and_Environment,description:x.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:x.Language_and_Environment,description:x.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:x.Language_and_Environment,description:x.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:x.Language_and_Environment,description:x.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSourceFile:!0,category:x.Language_and_Environment,description:x.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:x.Modules,description:x.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:x.Modules,description:x.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:x.Backwards_Compatibility,paramType:x.FILE,transpileOptionValue:void 0,description:x.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:x.Language_and_Environment,description:x.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:x.Completeness,description:x.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:x.Backwards_Compatibility,description:x.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:x.Emit,description:x.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:x.NEWLINE,category:x.Emit,description:x.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Output_Formatting,description:x.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:x.Language_and_Environment,affectsProgramStructure:!0,description:x.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:x.Modules,description:x.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:x.Emit,description:x.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:x.Editor_Support,description:x.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:x.Projects,description:x.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:x.Projects,description:x.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:x.Projects,description:x.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Backwards_Compatibility,description:x.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:x.Emit,description:x.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:x.Emit,transpileOptionValue:void 0,description:x.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:x.Emit,description:x.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:x.DIRECTORY,category:x.Emit,transpileOptionValue:void 0,description:x.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:x.Completeness,description:x.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Type_Checking,description:x.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Type_Checking,description:x.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Backwards_Compatibility,description:x.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Backwards_Compatibility,description:x.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:x.Interop_Constraints,description:x.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:x.JavaScript_Support,description:x.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:x.Backwards_Compatibility,description:x.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:x.Language_and_Environment,description:x.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:x.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:x.Backwards_Compatibility,description:x.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:x.Backwards_Compatibility,description:x.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:x.Specify_a_list_of_language_service_plugins_to_include,category:x.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:x.Control_what_method_is_used_to_detect_module_format_JS_files,category:x.Language_and_Environment,defaultValueDescription:x.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],Q1=[...lie,...Eut],PNe=Q1.filter(t=>!!t.affectsSemanticDiagnostics),NNe=Q1.filter(t=>!!t.affectsEmit),ONe=Q1.filter(t=>!!t.affectsDeclarationPath),pye=Q1.filter(t=>!!t.affectsModuleResolution),_ye=Q1.filter(t=>!!t.affectsSourceFile||!!t.affectsBindDiagnostics),FNe=Q1.filter(t=>!!t.affectsProgramStructure),RNe=Q1.filter(t=>Ho(t,"transpileOptionValue")),Gir=Q1.filter(t=>t.allowConfigDirTemplateSubstitution||!t.isCommandLineOnly&&t.isFilePath),Hir=wF.filter(t=>t.allowConfigDirTemplateSubstitution||!t.isCommandLineOnly&&t.isFilePath),LNe=Q1.filter(Kir);function Kir(t){return!Ni(t.type)}var f3={name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:x.Command_line_Options,description:x.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},dye=[f3,{name:"verbose",shortName:"v",category:x.Command_line_Options,description:x.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:x.Command_line_Options,description:x.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:x.Command_line_Options,description:x.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:x.Command_line_Options,description:x.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1},{name:"stopBuildOnErrors",category:x.Command_line_Options,description:x.Skip_building_downstream_projects_on_error_in_upstream_project,type:"boolean",defaultValueDescription:!1}],tK=[...lie,...dye],uie=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}];function pie(t){let n=new Map,a=new Map;return X(t,c=>{n.set(c.name.toLowerCase(),c),c.shortName&&a.set(c.shortName,c.name)}),{optionsNameMap:n,shortOptionNames:a}}var kut;function PL(){return kut||(kut=pie(Q1))}var Qir={diagnostic:x.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:Put},Cut={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function MNe(t){return Dut(t,bp)}function Dut(t,n){let a=so(t.type.keys()),c=(t.deprecatedKeys?a.filter(u=>!t.deprecatedKeys.has(u)):a).map(u=>`'${u}'`).join(", ");return n(x.Argument_for_0_option_must_be_Colon_1,`--${t.name}`,c)}function _ie(t,n,a){return ppt(t,(n??"").trim(),a)}function jNe(t,n="",a){if(n=n.trim(),Ca(n,"-"))return;if(t.type==="listOrElement"&&!n.includes(","))return IF(t,n,a);if(n==="")return[];let c=n.split(",");switch(t.element.type){case"number":return Wn(c,u=>IF(t.element,parseInt(u),a));case"string":return Wn(c,u=>IF(t.element,u||"",a));case"boolean":case"object":return $.fail(`List of ${t.element.type} is not yet supported.`);default:return Wn(c,u=>_ie(t.element,u,a))}}function Aut(t){return t.name}function BNe(t,n,a,c,u){var _;let f=(_=n.alternateMode)==null?void 0:_.getOptionsNameMap().optionsNameMap.get(t.toLowerCase());if(f)return FA(u,c,f!==f3?n.alternateMode.diagnostic:x.Option_build_must_be_the_first_command_line_argument,t);let y=xx(t,n.optionDeclarations,Aut);return y?FA(u,c,n.unknownDidYouMeanDiagnostic,a||t,y.name):FA(u,c,n.unknownOptionDiagnostic,a||t)}function fye(t,n,a){let c={},u,_=[],f=[];return y(n),{options:c,watchOptions:u,fileNames:_,errors:f};function y(k){let T=0;for(;Tf_.readFile(F)));if(!Ni(T)){f.push(T);return}let C=[],O=0;for(;;){for(;O=T.length)break;let F=O;if(T.charCodeAt(F)===34){for(O++;O32;)O++;C.push(T.substring(F,O))}}y(C)}}function wut(t,n,a,c,u,_){if(c.isTSConfigOnly){let f=t[n];f==="null"?(u[c.name]=void 0,n++):c.type==="boolean"?f==="false"?(u[c.name]=IF(c,!1,_),n++):(f==="true"&&n++,_.push(bp(x.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,c.name))):(_.push(bp(x.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,c.name)),f&&!Ca(f,"-")&&n++)}else if(!t[n]&&c.type!=="boolean"&&_.push(bp(a.optionTypeMismatchDiagnostic,c.name,vye(c))),t[n]!=="null")switch(c.type){case"number":u[c.name]=IF(c,parseInt(t[n]),_),n++;break;case"boolean":let f=t[n];u[c.name]=IF(c,f!=="false",_),(f==="false"||f==="true")&&n++;break;case"string":u[c.name]=IF(c,t[n]||"",_),n++;break;case"list":let y=jNe(c,t[n],_);u[c.name]=y||[],y&&n++;break;case"listOrElement":$.fail("listOrElement not supported here");break;default:u[c.name]=_ie(c,t[n],_),n++;break}else u[c.name]=void 0,n++;return n}var die={alternateMode:Qir,getOptionsNameMap:PL,optionDeclarations:Q1,unknownOptionDiagnostic:x.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:x.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:x.Compiler_option_0_expects_an_argument};function $Ne(t,n){return fye(die,t,n)}function mye(t,n){return UNe(PL,t,n)}function UNe(t,n,a=!1){n=n.toLowerCase();let{optionsNameMap:c,shortOptionNames:u}=t();if(a){let _=u.get(n);_!==void 0&&(n=_)}return c.get(n)}var Iut;function Put(){return Iut||(Iut=pie(tK))}var Zir={diagnostic:x.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:PL},Xir={alternateMode:Zir,getOptionsNameMap:Put,optionDeclarations:tK,unknownOptionDiagnostic:x.Unknown_build_option_0,unknownDidYouMeanDiagnostic:x.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:x.Build_option_0_requires_a_value_of_type_1};function zNe(t){let{options:n,watchOptions:a,fileNames:c,errors:u}=fye(Xir,t),_=n;return c.length===0&&c.push("."),_.clean&&_.force&&u.push(bp(x.Options_0_and_1_cannot_be_combined,"clean","force")),_.clean&&_.verbose&&u.push(bp(x.Options_0_and_1_cannot_be_combined,"clean","verbose")),_.clean&&_.watch&&u.push(bp(x.Options_0_and_1_cannot_be_combined,"clean","watch")),_.watch&&_.dry&&u.push(bp(x.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:_,watchOptions:a,projects:c,errors:u}}function Jh(t,...n){return Ba(bp(t,...n).messageText,Ni)}function rK(t,n,a,c,u,_){let f=Sz(t,k=>a.readFile(k));if(!Ni(f)){a.onUnRecoverableConfigFileDiagnostic(f);return}let y=YH(t,f),g=a.getCurrentDirectory();return y.path=wl(t,g,_d(a.useCaseSensitiveFileNames)),y.resolvedPath=y.path,y.originalFileName=y.fileName,oK(y,a,za(mo(t),g),n,za(t,g),void 0,_,c,u)}function nK(t,n){let a=Sz(t,n);return Ni(a)?hye(t,a):{config:{},error:a}}function hye(t,n){let a=YH(t,n);return{config:Jut(a,a.parseDiagnostics,void 0),error:a.parseDiagnostics.length?a.parseDiagnostics[0]:void 0}}function qNe(t,n){let a=Sz(t,n);return Ni(a)?YH(t,a):{fileName:t,parseDiagnostics:[a]}}function Sz(t,n){let a;try{a=n(t)}catch(c){return bp(x.Cannot_read_file_0_Colon_1,t,c.message)}return a===void 0?bp(x.Cannot_read_file_0,t):a}function gye(t){return _l(t,Aut)}var Nut={optionDeclarations:uie,unknownOptionDiagnostic:x.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:x.Unknown_type_acquisition_option_0_Did_you_mean_1},Out;function Fut(){return Out||(Out=pie(wF))}var yye={getOptionsNameMap:Fut,optionDeclarations:wF,unknownOptionDiagnostic:x.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:x.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:x.Watch_option_0_requires_a_value_of_type_1},Rut;function Lut(){return Rut||(Rut=gye(Q1))}var Mut;function jut(){return Mut||(Mut=gye(wF))}var But;function $ut(){return But||(But=gye(uie))}var fie={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:x.File_Management,disallowNullOrUndefined:!0},Uut={name:"compilerOptions",type:"object",elementOptions:Lut(),extraKeyDiagnostics:die},zut={name:"watchOptions",type:"object",elementOptions:jut(),extraKeyDiagnostics:yye},qut={name:"typeAcquisition",type:"object",elementOptions:$ut(),extraKeyDiagnostics:Nut},JNe;function Yir(){return JNe===void 0&&(JNe={name:void 0,type:"object",elementOptions:gye([Uut,zut,qut,fie,{name:"references",type:"list",element:{name:"references",type:"object"},category:x.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:x.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:x.File_Management,defaultValueDescription:x.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:x.File_Management,defaultValueDescription:x.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},wNe])}),JNe}function Jut(t,n,a){var c;let u=(c=t.statements[0])==null?void 0:c.expression;if(u&&u.kind!==211){if(n.push(m0(t,u,x.The_root_value_of_a_0_file_must_be_an_object,t_(t.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),qf(u)){let _=wt(u.elements,Lc);if(_)return iK(t,_,n,!0,a)}return{}}return iK(t,u,n,!0,a)}function VNe(t,n){var a;return iK(t,(a=t.statements[0])==null?void 0:a.expression,n,!0,void 0)}function iK(t,n,a,c,u){if(!n)return c?{}:void 0;return y(n,u?.rootOptions);function _(k,T){var C;let O=c?{}:void 0;for(let F of k.properties){if(F.kind!==304){a.push(m0(t,F,x.Property_assignment_expected));continue}F.questionToken&&a.push(m0(t,F.questionToken,x.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),g(F.name)||a.push(m0(t,F.name,x.String_literal_with_double_quotes_expected));let M=TG(F.name)?void 0:UO(F.name),U=M&&oa(M),J=U?(C=T?.elementOptions)==null?void 0:C.get(U):void 0,G=y(F.initializer,J);typeof U<"u"&&(c&&(O[U]=G),u?.onPropertySet(U,G,F,T,J))}return O}function f(k,T){if(!c){k.forEach(C=>y(C,T));return}return yr(k.map(C=>y(C,T)),C=>C!==void 0)}function y(k,T){switch(k.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return g(k)||a.push(m0(t,k,x.String_literal_with_double_quotes_expected)),k.text;case 9:return Number(k.text);case 225:if(k.operator!==41||k.operand.kind!==9)break;return-Number(k.operand.text);case 211:return _(k,T);case 210:return f(k.elements,T&&T.element)}T?a.push(m0(t,k,x.Compiler_option_0_requires_a_value_of_type_1,T.name,vye(T))):a.push(m0(t,k,x.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function g(k){return Ic(k)&&Dre(k,t)}}function vye(t){return t.type==="listOrElement"?`${vye(t.element)} or Array`:t.type==="list"?"Array":Ni(t.type)?t.type:"string"}function Vut(t,n){if(t){if(aK(n))return!t.disallowNullOrUndefined;if(t.type==="list")return Zn(n);if(t.type==="listOrElement")return Zn(n)||Vut(t.element,n);let a=Ni(t.type)?t.type:"string";return typeof n===a}return!1}function Sye(t,n,a){var c,u,_;let f=_d(a.useCaseSensitiveFileNames),y=Cr(yr(t.fileNames,(u=(c=t.options.configFile)==null?void 0:c.configFileSpecs)!=null&&u.validatedIncludeSpecs?ror(n,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,a):AT),M=>Vk(za(n,a.getCurrentDirectory()),za(M,a.getCurrentDirectory()),f)),g={configFilePath:za(n,a.getCurrentDirectory()),useCaseSensitiveFileNames:a.useCaseSensitiveFileNames},k=bye(t.options,g),T=t.watchOptions&&nor(t.watchOptions),C={compilerOptions:{...mie(k),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:T&&mie(T),references:Cr(t.projectReferences,M=>({...M,path:M.originalPath?M.originalPath:"",originalPath:void 0})),files:te(y)?y:void 0,...(_=t.options.configFile)!=null&&_.configFileSpecs?{include:tor(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:t.compileOnSave?!0:void 0},O=new Set(k.keys()),F={};for(let M in UU)if(!O.has(M)&&eor(M,O)){let U=UU[M].computeValue(t.options),J=UU[M].computeValue({});U!==J&&(F[M]=UU[M].computeValue(t.options))}return qe(C.compilerOptions,mie(bye(F,g))),C}function eor(t,n){let a=new Set;return c(t);function c(u){var _;return o1(a,u)?Pt((_=UU[u])==null?void 0:_.dependencies,f=>n.has(f)||c(f)):!1}}function mie(t){return Object.fromEntries(t)}function tor(t){if(te(t)){if(te(t)!==1)return t;if(t[0]!==Qut)return t}}function ror(t,n,a,c){if(!n)return AT;let u=dne(t,a,n,c.useCaseSensitiveFileNames,c.getCurrentDirectory()),_=u.excludePattern&&mE(u.excludePattern,c.useCaseSensitiveFileNames),f=u.includeFilePattern&&mE(u.includeFilePattern,c.useCaseSensitiveFileNames);return f?_?y=>!(f.test(y)&&!_.test(y)):y=>!f.test(y):_?y=>_.test(y):AT}function Wut(t){switch(t.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return Wut(t.element);default:return t.type}}function hie(t,n){return Ad(n,(a,c)=>{if(a===t)return c})}function bye(t,n){return Gut(t,PL(),n)}function nor(t){return Gut(t,Fut())}function Gut(t,{optionsNameMap:n},a){let c=new Map,u=a&&_d(a.useCaseSensitiveFileNames);for(let _ in t)if(Ho(t,_)){if(n.has(_)&&(n.get(_).category===x.Command_line_Options||n.get(_).category===x.Output_Formatting))continue;let f=t[_],y=n.get(_.toLowerCase());if(y){$.assert(y.type!=="listOrElement");let g=Wut(y);g?y.type==="list"?c.set(_,f.map(k=>hie(k,g))):c.set(_,hie(f,g)):a&&y.isFilePath?c.set(_,Vk(a.configFilePath,za(f,mo(a.configFilePath)),u)):a&&y.type==="list"&&y.element.isFilePath?c.set(_,f.map(k=>Vk(a.configFilePath,za(k,mo(a.configFilePath)),u))):c.set(_,f)}}return c}function WNe(t,n){let c=[],u=Object.keys(t).filter(T=>T!=="init"&&T!=="help"&&T!=="watch");if(c.push("{"),c.push(` // ${As(x.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)}`),c.push(' "compilerOptions": {'),f(x.File_Layout),y("rootDir","./src","optional"),y("outDir","./dist","optional"),_(),f(x.Environment_Settings),f(x.See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule),y("module",199),y("target",99),y("types",[]),t.lib&&y("lib",t.lib),f(x.For_nodejs_Colon),c.push(' // "lib": ["esnext"],'),c.push(' // "types": ["node"],'),f(x.and_npm_install_D_types_Slashnode),_(),f(x.Other_Outputs),y("sourceMap",!0),y("declaration",!0),y("declarationMap",!0),_(),f(x.Stricter_Typechecking_Options),y("noUncheckedIndexedAccess",!0),y("exactOptionalPropertyTypes",!0),_(),f(x.Style_Options),y("noImplicitReturns",!0,"optional"),y("noImplicitOverride",!0,"optional"),y("noUnusedLocals",!0,"optional"),y("noUnusedParameters",!0,"optional"),y("noFallthroughCasesInSwitch",!0,"optional"),y("noPropertyAccessFromIndexSignature",!0,"optional"),_(),f(x.Recommended_Options),y("strict",!0),y("jsx",4),y("verbatimModuleSyntax",!0),y("isolatedModules",!0),y("noUncheckedSideEffectImports",!0),y("moduleDetection",3),y("skipLibCheck",!0),u.length>0)for(_();u.length>0;)y(u[0],t[u[0]]);function _(){c.push("")}function f(T){c.push(` // ${As(T)}`)}function y(T,C,O="never"){let F=u.indexOf(T);F>=0&&u.splice(F,1);let M;O==="always"?M=!0:O==="never"?M=!1:M=!Ho(t,T);let U=t[T]??C;M?c.push(` // "${T}": ${g(T,U)},`):c.push(` "${T}": ${g(T,U)},`)}function g(T,C){let O=Q1.filter(M=>M.name===T)[0];O||$.fail(`No option named ${T}?`);let F=O.type instanceof Map?O.type:void 0;if(Zn(C)){let M="element"in O&&O.element.type instanceof Map?O.element.type:void 0;return`[${C.map(U=>k(U,M)).join(", ")}]`}else return k(C,F)}function k(T,C){return C&&(T=hie(T,C)??$.fail(`No matching value of ${T}`)),JSON.stringify(T)}return c.push(" }"),c.push("}"),c.push(""),c.join(n)}function gie(t,n){let a={},c=PL().optionsNameMap;for(let u in t)Ho(t,u)&&(a[u]=ior(c.get(u.toLowerCase()),t[u],n));return a.configFilePath&&(a.configFilePath=n(a.configFilePath)),a}function ior(t,n,a){if(t&&!aK(n)){if(t.type==="list"){let c=n;if(t.element.isFilePath&&c.length)return c.map(a)}else if(t.isFilePath)return a(n);$.assert(t.type!=="listOrElement")}return n}function Hut(t,n,a,c,u,_,f,y,g){return Zut(t,void 0,n,a,c,g,u,_,f,y)}function oK(t,n,a,c,u,_,f,y,g){var k,T;(k=hi)==null||k.push(hi.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:t.fileName});let C=Zut(void 0,t,n,a,c,g,u,_,f,y);return(T=hi)==null||T.pop(),C}function xye(t,n){n&&Object.defineProperty(t,"configFile",{enumerable:!1,writable:!1,value:n})}function aK(t){return t==null}function Kut(t,n){return mo(za(t,n))}var Qut="**/*";function Zut(t,n,a,c,u={},_,f,y=[],g=[],k){$.assert(t===void 0&&n!==void 0||t!==void 0&&n===void 0);let T=[],C=npt(t,n,a,c,f,y,T,k),{raw:O}=C,F=Xut(Lh(u,C.options||{}),Gir,c),M=yie(_&&C.watchOptions?Lh(_,C.watchOptions):C.watchOptions||_,c);F.configFilePath=f&&Z_(f);let U=Qs(f?Kut(f,c):c),J=G();return n&&(n.configFileSpecs=J),xye(F,n),{options:F,watchOptions:M,fileNames:Z(U),projectReferences:Q(U),typeAcquisition:C.typeAcquisition||kye(),raw:O,errors:T,wildcardDirectories:gor(J,U,a.useCaseSensitiveFileNames),compileOnSave:!!O.compileOnSave};function G(){let le=_e("references",je=>typeof je=="object","object"),Oe=re(ae("files"));if(Oe){let je=le==="no-prop"||Zn(le)&&le.length===0,ve=Ho(O,"extends");if(Oe.length===0&&je&&!ve)if(n){let Le=f||"tsconfig.json",Ve=x.The_files_list_in_config_file_0_is_empty,nt=wG(n,"files",ke=>ke.initializer),It=FA(n,nt,Ve,Le);T.push(It)}else me(x.The_files_list_in_config_file_0_is_empty,f||"tsconfig.json")}let be=re(ae("include")),ue=ae("exclude"),De=!1,Ce=re(ue);if(ue==="no-prop"){let je=F.outDir,ve=F.declarationDir;(je||ve)&&(Ce=yr([je,ve],Le=>!!Le))}Oe===void 0&&be===void 0&&(be=[Qut],De=!0);let Ae,Fe,Be,de;be&&(Ae=fpt(be,T,!0,n,"include"),Be=vie(Ae,U)||Ae),Ce&&(Fe=fpt(Ce,T,!1,n,"exclude"),de=vie(Fe,U)||Fe);let ze=yr(Oe,Ni),ut=vie(ze,U)||ze;return{filesSpecs:Oe,includeSpecs:be,excludeSpecs:Ce,validatedFilesSpec:ut,validatedIncludeSpecs:Be,validatedExcludeSpecs:de,validatedFilesSpecBeforeSubstitution:ze,validatedIncludeSpecsBeforeSubstitution:Ae,validatedExcludeSpecsBeforeSubstitution:Fe,isDefaultIncludeSpec:De}}function Z(le){let Oe=bz(J,le,F,a,g);return rpt(Oe,sK(O),y)&&T.push(tpt(J,f)),Oe}function Q(le){let Oe,be=_e("references",ue=>typeof ue=="object","object");if(Zn(be))for(let ue of be)typeof ue.path!="string"?me(x.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(Oe||(Oe=[])).push({path:za(ue.path,le),originalPath:ue.path,prepend:ue.prepend,circular:ue.circular});return Oe}function re(le){return Zn(le)?le:void 0}function ae(le){return _e(le,Ni,"string")}function _e(le,Oe,be){if(Ho(O,le)&&!aK(O[le]))if(Zn(O[le])){let ue=O[le];return!n&&!ht(ue,Oe)&&T.push(bp(x.Compiler_option_0_requires_a_value_of_type_1,le,be)),ue}else return me(x.Compiler_option_0_requires_a_value_of_type_1,le,"Array"),"not-array";return"no-prop"}function me(le,...Oe){n||T.push(bp(le,...Oe))}}function yie(t,n){return Xut(t,Hir,n)}function Xut(t,n,a){if(!t)return t;let c;for(let _ of n)if(t[_.name]!==void 0){let f=t[_.name];switch(_.type){case"string":$.assert(_.isFilePath),Tye(f)&&u(_,ept(f,a));break;case"list":$.assert(_.element.isFilePath);let y=vie(f,a);y&&u(_,y);break;case"object":$.assert(_.name==="paths");let g=oor(f,a);g&&u(_,g);break;default:$.fail("option type not supported")}}return c||t;function u(_,f){(c??(c=qe({},t)))[_.name]=f}}var Yut="${configDir}";function Tye(t){return Ni(t)&&Ca(t,Yut,!0)}function ept(t,n){return za(t.replace(Yut,"./"),n)}function vie(t,n){if(!t)return t;let a;return t.forEach((c,u)=>{Tye(c)&&((a??(a=t.slice()))[u]=ept(c,n))}),a}function oor(t,n){let a;return Lu(t).forEach(u=>{if(!Zn(t[u]))return;let _=vie(t[u],n);_&&((a??(a=qe({},t)))[u]=_)}),a}function aor(t){return t.code===x.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function tpt({includeSpecs:t,excludeSpecs:n},a){return bp(x.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,a||"tsconfig.json",JSON.stringify(t||[]),JSON.stringify(n||[]))}function rpt(t,n,a){return t.length===0&&n&&(!a||a.length===0)}function Eye(t){return!t.fileNames.length&&Ho(t.raw,"references")}function sK(t){return!Ho(t,"files")&&!Ho(t,"references")}function Sie(t,n,a,c,u){let _=c.length;return rpt(t,u)?c.push(tpt(a,n)):co(c,f=>!aor(f)),_!==c.length}function sor(t){return!!t.options}function npt(t,n,a,c,u,_,f,y){var g;c=Z_(c);let k=za(u||"",c);if(_.includes(k))return f.push(bp(x.Circularity_detected_while_resolving_configuration_Colon_0,[..._,k].join(" -> "))),{raw:t||VNe(n,f)};let T=t?cor(t,a,c,u,f):lor(n,a,c,u,f);if((g=T.options)!=null&&g.paths&&(T.options.pathsBasePath=c),T.extendedConfigPath){_=_.concat([k]);let F={options:{}};Ni(T.extendedConfigPath)?C(F,T.extendedConfigPath):T.extendedConfigPath.forEach(M=>C(F,M)),F.include&&(T.raw.include=F.include),F.exclude&&(T.raw.exclude=F.exclude),F.files&&(T.raw.files=F.files),T.raw.compileOnSave===void 0&&F.compileOnSave&&(T.raw.compileOnSave=F.compileOnSave),n&&F.extendedSourceFiles&&(n.extendedSourceFiles=so(F.extendedSourceFiles.keys())),T.options=qe(F.options,T.options),T.watchOptions=T.watchOptions&&F.watchOptions?O(F,T.watchOptions):T.watchOptions||F.watchOptions}return T;function C(F,M){let U=uor(n,M,a,_,f,y,F);if(U&&sor(U)){let J=U.raw,G,Z=Q=>{T.raw[Q]||J[Q]&&(F[Q]=Cr(J[Q],re=>Tye(re)||qd(re)?re:Xi(G||(G=BI(mo(M),c,_d(a.useCaseSensitiveFileNames))),re)))};Z("include"),Z("exclude"),Z("files"),J.compileOnSave!==void 0&&(F.compileOnSave=J.compileOnSave),qe(F.options,U.options),F.watchOptions=F.watchOptions&&U.watchOptions?O(F,U.watchOptions):F.watchOptions||U.watchOptions}}function O(F,M){return F.watchOptionsCopied?qe(F.watchOptions,M):(F.watchOptionsCopied=!0,qe({},F.watchOptions,M))}}function cor(t,n,a,c,u){Ho(t,"excludes")&&u.push(bp(x.Unknown_option_excludes_Did_you_mean_exclude));let _=lpt(t.compilerOptions,a,u,c),f=upt(t.typeAcquisition,a,u,c),y=_or(t.watchOptions,a,u);t.compileOnSave=por(t,a,u);let g=t.extends||t.extends===""?ipt(t.extends,n,a,c,u):void 0;return{raw:t,options:_,watchOptions:y,typeAcquisition:f,extendedConfigPath:g}}function ipt(t,n,a,c,u,_,f,y){let g,k=c?Kut(c,a):a;if(Ni(t))g=opt(t,n,k,u,f,y);else if(Zn(t)){g=[];for(let T=0;TZ.name===F)&&(k=jt(k,U.name))))}}function opt(t,n,a,c,u,_){if(t=Z_(t),qd(t)||Ca(t,"./")||Ca(t,"../")){let y=za(t,a);if(!n.fileExists(y)&&!au(y,".json")&&(y=`${y}.json`,!n.fileExists(y))){c.push(FA(_,u,x.File_0_not_found,t));return}return y}let f=p8e(t,Xi(a,"tsconfig.json"),n);if(f.resolvedModule)return f.resolvedModule.resolvedFileName;t===""?c.push(FA(_,u,x.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):c.push(FA(_,u,x.File_0_not_found,t))}function uor(t,n,a,c,u,_,f){let y=a.useCaseSensitiveFileNames?n:lb(n),g,k,T;if(_&&(g=_.get(y))?{extendedResult:k,extendedConfig:T}=g:(k=qNe(n,C=>a.readFile(C)),k.parseDiagnostics.length||(T=npt(void 0,k,a,mo(n),t_(n),c,u,_)),_&&_.set(y,{extendedResult:k,extendedConfig:T})),t&&((f.extendedSourceFiles??(f.extendedSourceFiles=new Set)).add(k.fileName),k.extendedSourceFiles))for(let C of k.extendedSourceFiles)f.extendedSourceFiles.add(C);if(k.parseDiagnostics.length){u.push(...k.parseDiagnostics);return}return T}function por(t,n,a){if(!Ho(t,wNe.name))return!1;let c=m3(wNe,t.compileOnSave,n,a);return typeof c=="boolean"&&c}function apt(t,n,a){let c=[];return{options:lpt(t,n,c,a),errors:c}}function spt(t,n,a){let c=[];return{options:upt(t,n,c,a),errors:c}}function cpt(t){return t&&t_(t)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function lpt(t,n,a,c){let u=cpt(c);return GNe(Lut(),t,n,u,die,a),c&&(u.configFilePath=Z_(c)),u}function kye(t){return{enable:!!t&&t_(t)==="jsconfig.json",include:[],exclude:[]}}function upt(t,n,a,c){let u=kye(c);return GNe($ut(),t,n,u,Nut,a),u}function _or(t,n,a){return GNe(jut(),t,n,void 0,yye,a)}function GNe(t,n,a,c,u,_){if(n){for(let f in n){let y=t.get(f);y?(c||(c={}))[y.name]=m3(y,n[f],a,_):_.push(BNe(f,u))}return c}}function FA(t,n,a,...c){return t&&n?m0(t,n,a,...c):bp(a,...c)}function m3(t,n,a,c,u,_,f){if(t.isCommandLineOnly){c.push(FA(f,u?.name,x.Option_0_can_only_be_specified_on_command_line,t.name));return}if(Vut(t,n)){let y=t.type;if(y==="list"&&Zn(n))return _pt(t,n,a,c,u,_,f);if(y==="listOrElement")return Zn(n)?_pt(t,n,a,c,u,_,f):m3(t.element,n,a,c,u,_,f);if(!Ni(t.type))return ppt(t,n,c,_,f);let g=IF(t,n,c,_,f);return aK(g)?g:dor(t,a,g)}else c.push(FA(f,_,x.Compiler_option_0_requires_a_value_of_type_1,t.name,vye(t)))}function dor(t,n,a){return t.isFilePath&&(a=Z_(a),a=Tye(a)?a:za(a,n),a===""&&(a=".")),a}function IF(t,n,a,c,u){var _;if(aK(n))return;let f=(_=t.extraValidation)==null?void 0:_.call(t,n);if(!f)return n;a.push(FA(u,c,...f))}function ppt(t,n,a,c,u){if(aK(n))return;let _=n.toLowerCase(),f=t.type.get(_);if(f!==void 0)return IF(t,f,a,c,u);a.push(Dut(t,(y,...g)=>FA(u,c,y,...g)))}function _pt(t,n,a,c,u,_,f){return yr(Cr(n,(y,g)=>m3(t.element,y,a,c,u,_?.elements[g],f)),y=>t.listPreserveFalsyValues?!0:!!y)}var mor=/(?:^|\/)\*\*\/?$/,hor=/^[^*?]*(?=\/[^/]*[*?])/;function bz(t,n,a,c,u=j){n=Qs(n);let _=_d(c.useCaseSensitiveFileNames),f=new Map,y=new Map,g=new Map,{validatedFilesSpec:k,validatedIncludeSpecs:T,validatedExcludeSpecs:C}=t,O=qU(a,u),F=SH(a,O);if(k)for(let G of k){let Z=za(G,n);f.set(_(Z),Z)}let M;if(T&&T.length>0)for(let G of c.readDirectory(n,Rc(F),C,T,void 0)){if(Au(G,".json")){if(!M){let re=T.filter(_e=>au(_e,".json")),ae=Cr(pne(re,n,"files"),_e=>`^${_e}$`);M=ae?ae.map(_e=>mE(_e,c.useCaseSensitiveFileNames)):j}if(hr(M,re=>re.test(G))!==-1){let re=_(G);!f.has(re)&&!g.has(re)&&g.set(re,G)}continue}if(vor(G,f,y,O,_))continue;Sor(G,y,O,_);let Z=_(G);!f.has(Z)&&!y.has(Z)&&y.set(Z,G)}let U=so(f.values()),J=so(y.values());return U.concat(J,so(g.values()))}function HNe(t,n,a,c,u){let{validatedFilesSpec:_,validatedIncludeSpecs:f,validatedExcludeSpecs:y}=n;if(!te(f)||!te(y))return!1;a=Qs(a);let g=_d(c);if(_){for(let k of _)if(g(za(k,a))===t)return!1}return xie(t,y,c,u,a)}function dpt(t){let n=Ca(t,"**/")?0:t.indexOf("/**/");return n===-1?!1:(au(t,"/..")?t.length:t.lastIndexOf("/../"))>n}function bie(t,n,a,c){return xie(t,yr(n,u=>!dpt(u)),a,c)}function xie(t,n,a,c,u){let _=zU(n,Xi(Qs(c),u),"exclude"),f=_&&mE(_,a);return f?f.test(t)?!0:!eA(t)&&f.test(r_(t)):!1}function fpt(t,n,a,c,u){return t.filter(f=>{if(!Ni(f))return!1;let y=KNe(f,a);return y!==void 0&&n.push(_(...y)),y===void 0});function _(f,y){let g=hre(c,u,y);return FA(c,g,f,y)}}function KNe(t,n){if($.assert(typeof t=="string"),n&&mor.test(t))return[x.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t];if(dpt(t))return[x.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]}function gor({validatedIncludeSpecs:t,validatedExcludeSpecs:n},a,c){let u=zU(n,a,"exclude"),_=u&&new RegExp(u,c?"":"i"),f={},y=new Map;if(t!==void 0){let g=[];for(let k of t){let T=Qs(Xi(a,k));if(_&&_.test(T))continue;let C=yor(T,c);if(C){let{key:O,path:F,flags:M}=C,U=y.get(O),J=U!==void 0?f[U]:void 0;(J===void 0||J_p(t,f)?f:void 0);if(!_)return!1;for(let f of _){if(Au(t,f)&&(f!==".ts"||!Au(t,".d.ts")))return!1;let y=u(hE(t,f));if(n.has(y)||a.has(y)){if(f===".d.ts"&&(Au(t,".js")||Au(t,".jsx")))continue;return!0}}return!1}function Sor(t,n,a,c){let u=X(a,_=>_p(t,_)?_:void 0);if(u)for(let _=u.length-1;_>=0;_--){let f=u[_];if(Au(t,f))return;let y=c(hE(t,f));n.delete(y)}}function ZNe(t){let n={};for(let a in t)if(Ho(t,a)){let c=mye(a);c!==void 0&&(n[a]=XNe(t[a],c))}return n}function XNe(t,n){if(t===void 0)return t;switch(n.type){case"object":return"";case"string":return"";case"number":return typeof t=="number"?t:"";case"boolean":return typeof t=="boolean"?t:"";case"listOrElement":if(!Zn(t))return XNe(t,n.element);case"list":let a=n.element;return Zn(t)?Wn(t,c=>XNe(c,a)):"";default:return Ad(n.type,(c,u)=>{if(c===t)return u})}}function ns(t,n,...a){t.trace(nF(n,...a))}function TC(t,n){return!!t.traceResolution&&n.trace!==void 0}function PF(t,n,a){let c;if(n&&t){let u=t.contents.packageJsonContent;typeof u.name=="string"&&typeof u.version=="string"&&(c={name:u.name,subModuleName:n.path.slice(t.packageDirectory.length+Gl.length),version:u.version,peerDependencies:Uor(t,a)})}return n&&{path:n.path,extension:n.ext,packageId:c,resolvedUsingTsExtension:n.resolvedUsingTsExtension}}function Cye(t){return PF(void 0,t,void 0)}function mpt(t){if(t)return $.assert(t.packageId===void 0),{path:t.path,ext:t.extension,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function Tie(t){let n=[];return t&1&&n.push("TypeScript"),t&2&&n.push("JavaScript"),t&4&&n.push("Declaration"),t&8&&n.push("JSON"),n.join(", ")}function bor(t){let n=[];return t&1&&n.push(...vH),t&2&&n.push(...cL),t&4&&n.push(...gne),t&8&&n.push(".json"),n}function YNe(t){if(t)return $.assert(vne(t.extension)),{fileName:t.path,packageId:t.packageId}}function hpt(t,n,a,c,u,_,f,y,g){if(!f.resultFromCache&&!f.compilerOptions.preserveSymlinks&&n&&a&&!n.originalPath&&!vt(t)){let{resolvedFileName:k,originalPath:T}=vpt(n.path,f.host,f.traceEnabled);T&&(n={...n,path:k,originalPath:T})}return gpt(n,a,c,u,_,f.resultFromCache,y,g)}function gpt(t,n,a,c,u,_,f,y){return _?f?.isReadonly?{..._,failedLookupLocations:e8e(_.failedLookupLocations,a),affectingLocations:e8e(_.affectingLocations,c),resolutionDiagnostics:e8e(_.resolutionDiagnostics,u)}:(_.failedLookupLocations=NL(_.failedLookupLocations,a),_.affectingLocations=NL(_.affectingLocations,c),_.resolutionDiagnostics=NL(_.resolutionDiagnostics,u),_):{resolvedModule:t&&{resolvedFileName:t.path,originalPath:t.originalPath===!0?void 0:t.originalPath,extension:t.extension,isExternalLibraryImport:n,packageId:t.packageId,resolvedUsingTsExtension:!!t.resolvedUsingTsExtension},failedLookupLocations:xz(a),affectingLocations:xz(c),resolutionDiagnostics:xz(u),alternateResult:y}}function xz(t){return t.length?t:void 0}function NL(t,n){return n?.length?t?.length?(t.push(...n),t):n:t}function e8e(t,n){return t?.length?n.length?[...t,...n]:t.slice():xz(n)}function t8e(t,n,a,c){if(!Ho(t,n)){c.traceEnabled&&ns(c.host,x.package_json_does_not_have_a_0_field,n);return}let u=t[n];if(typeof u!==a||u===null){c.traceEnabled&&ns(c.host,x.Expected_type_of_0_field_in_package_json_to_be_1_got_2,n,a,u===null?"null":typeof u);return}return u}function Dye(t,n,a,c){let u=t8e(t,n,"string",c);if(u===void 0)return;if(!u){c.traceEnabled&&ns(c.host,x.package_json_had_a_falsy_0_field,n);return}let _=Qs(Xi(a,u));return c.traceEnabled&&ns(c.host,x.package_json_has_0_field_1_that_references_2,n,u,_),_}function xor(t,n,a){return Dye(t,"typings",n,a)||Dye(t,"types",n,a)}function Tor(t,n,a){return Dye(t,"tsconfig",n,a)}function Eor(t,n,a){return Dye(t,"main",n,a)}function kor(t,n){let a=t8e(t,"typesVersions","object",n);if(a!==void 0)return n.traceEnabled&&ns(n.host,x.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),a}function Cor(t,n){let a=kor(t,n);if(a===void 0)return;if(n.traceEnabled)for(let f in a)Ho(a,f)&&!KD.tryParse(f)&&ns(n.host,x.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,f);let c=Eie(a);if(!c){n.traceEnabled&&ns(n.host,x.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,A);return}let{version:u,paths:_}=c;if(typeof _!="object"){n.traceEnabled&&ns(n.host,x.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${u}']`,"object",typeof _);return}return c}var r8e;function Eie(t){r8e||(r8e=new Iy(L));for(let n in t){if(!Ho(t,n))continue;let a=KD.tryParse(n);if(a!==void 0&&a.test(r8e))return{version:n,paths:t[n]}}}function Tz(t,n){if(t.typeRoots)return t.typeRoots;let a;if(t.configFilePath?a=mo(t.configFilePath):n.getCurrentDirectory&&(a=n.getCurrentDirectory()),a!==void 0)return Dor(a)}function Dor(t){let n;return Ex(Qs(t),a=>{let c=Xi(a,Aor);(n??(n=[])).push(c)}),n}var Aor=Xi("node_modules","@types");function ypt(t,n,a){let c=typeof a.useCaseSensitiveFileNames=="function"?a.useCaseSensitiveFileNames():a.useCaseSensitiveFileNames;return M1(t,n,!c)===0}function vpt(t,n,a){let c=Apt(t,n,a),u=ypt(t,c,n);return{resolvedFileName:u?t:c,originalPath:u?void 0:t}}function Spt(t,n,a){let c=au(t,"/node_modules/@types")||au(t,"/node_modules/@types/")?Upt(n,a):n;return Xi(t,c)}function n8e(t,n,a,c,u,_,f){$.assert(typeof t=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");let y=TC(a,c);u&&(a=u.commandLine.options);let g=n?mo(n):void 0,k=g?_?.getFromDirectoryCache(t,f,g,u):void 0;if(!k&&g&&!vt(t)&&(k=_?.getFromNonRelativeNameCache(t,f,g,u)),k)return y&&(ns(c,x.Resolving_type_reference_directive_0_containing_file_1,t,n),u&&ns(c,x.Using_compiler_options_of_project_reference_redirect_0,u.sourceFile.fileName),ns(c,x.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,t,g),ae(k)),k;let T=Tz(a,c);y&&(n===void 0?T===void 0?ns(c,x.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,t):ns(c,x.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,t,T):T===void 0?ns(c,x.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,t,n):ns(c,x.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,t,n,T),u&&ns(c,x.Using_compiler_options_of_project_reference_redirect_0,u.sourceFile.fileName));let C=[],O=[],F=i8e(a);f!==void 0&&(F|=30);let M=km(a);f===99&&3<=M&&M<=99&&(F|=32);let U=F&8?EC(a,f):[],J=[],G={compilerOptions:a,host:c,traceEnabled:y,failedLookupLocations:C,affectingLocations:O,packageJsonInfoCache:_,features:F,conditions:U,requestContainingDirectory:g,reportDiagnostic:le=>{J.push(le)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},Z=_e(),Q=!0;Z||(Z=me(),Q=!1);let re;if(Z){let{fileName:le,packageId:Oe}=Z,be=le,ue;a.preserveSymlinks||({resolvedFileName:be,originalPath:ue}=vpt(le,c,y)),re={primary:Q,resolvedFileName:be,originalPath:ue,packageId:Oe,isExternalLibraryImport:kC(le)}}return k={resolvedTypeReferenceDirective:re,failedLookupLocations:xz(C),affectingLocations:xz(O),resolutionDiagnostics:xz(J)},g&&_&&!_.isReadonly&&(_.getOrCreateCacheForDirectory(g,u).set(t,f,k),vt(t)||_.getOrCreateCacheForNonRelativeName(t,f,u).set(g,k)),y&&ae(k),k;function ae(le){var Oe;(Oe=le.resolvedTypeReferenceDirective)!=null&&Oe.resolvedFileName?le.resolvedTypeReferenceDirective.packageId?ns(c,x.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,t,le.resolvedTypeReferenceDirective.resolvedFileName,cA(le.resolvedTypeReferenceDirective.packageId),le.resolvedTypeReferenceDirective.primary):ns(c,x.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,t,le.resolvedTypeReferenceDirective.resolvedFileName,le.resolvedTypeReferenceDirective.primary):ns(c,x.Type_reference_directive_0_was_not_resolved,t)}function _e(){if(T&&T.length)return y&&ns(c,x.Resolving_with_primary_search_path_0,T.join(", ")),Je(T,le=>{let Oe=Spt(le,t,G),be=Sv(le,c);if(!be&&y&&ns(c,x.Directory_0_does_not_exist_skipping_all_lookups_in_it,le),a.typeRoots){let ue=RL(4,Oe,!be,G);if(ue){let De=lK(ue.path),Ce=De?g3(De,!1,G):void 0;return YNe(PF(Ce,ue,G))}}return YNe(d8e(4,Oe,!be,G))});y&&ns(c,x.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function me(){let le=n&&mo(n);if(le!==void 0){let Oe;if(!a.typeRoots||!au(n,$z))if(y&&ns(c,x.Looking_up_in_node_modules_folder_initial_location_0,le),vt(t)){let{path:be}=Dpt(le,t);Oe=Pye(4,be,!1,G,!0)}else{let be=Mpt(4,t,le,G,void 0,void 0);Oe=be&&be.value}else y&&ns(c,x.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return YNe(Oe)}else y&&ns(c,x.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function i8e(t){let n=0;switch(km(t)){case 3:n=30;break;case 99:n=30;break;case 100:n=30;break}return t.resolvePackageJsonExports?n|=8:t.resolvePackageJsonExports===!1&&(n&=-9),t.resolvePackageJsonImports?n|=2:t.resolvePackageJsonImports===!1&&(n&=-3),n}function EC(t,n){let a=km(t);if(n===void 0){if(a===100)n=99;else if(a===2)return[]}let c=n===99?["import"]:["require"];return t.noDtsResolution||c.push("types"),a!==100&&c.push("node"),go(c,t.customConditions)}function Aye(t,n,a,c,u){let _=kz(u?.getPackageJsonInfoCache(),c,a);return Ab(c,n,f=>{if(t_(f)!=="node_modules"){let y=Xi(f,"node_modules"),g=Xi(y,t);return g3(g,!1,_)}})}function kie(t,n){if(t.types)return t.types;let a=[];if(n.directoryExists&&n.getDirectories){let c=Tz(t,n);if(c){for(let u of c)if(n.directoryExists(u))for(let _ of n.getDirectories(u)){let f=Qs(_),y=Xi(u,f,"package.json");if(!(n.fileExists(y)&&nL(y,n).typings===null)){let k=t_(f);k.charCodeAt(0)!==46&&a.push(k)}}}}return a}function Cie(t){return!!t?.contents}function o8e(t){return!!t&&!t.contents}function a8e(t){var n;if(t===null||typeof t!="object")return""+t;if(Zn(t))return`[${(n=t.map(c=>a8e(c)))==null?void 0:n.join(",")}]`;let a="{";for(let c in t)Ho(t,c)&&(a+=`${c}: ${a8e(t[c])}`);return a+"}"}function wye(t,n){return n.map(a=>a8e(cne(t,a))).join("|")+`|${t.pathsBasePath}`}function bpt(t,n){let a=new Map,c=new Map,u=new Map;return t&&a.set(t,u),{getMapOfCacheRedirects:_,getOrCreateMapOfCacheRedirects:f,update:y,clear:k,getOwnMap:()=>u};function _(C){return C?g(C.commandLine.options,!1):u}function f(C){return C?g(C.commandLine.options,!0):u}function y(C){t!==C&&(t?u=g(C,!0):a.set(C,u),t=C)}function g(C,O){let F=a.get(C);if(F)return F;let M=T(C);if(F=c.get(M),!F){if(t){let U=T(t);U===M?F=u:c.has(U)||c.set(U,u)}O&&(F??(F=new Map)),F&&c.set(M,F)}return F&&a.set(C,F),F}function k(){let C=t&&n.get(t);u.clear(),a.clear(),n.clear(),c.clear(),t&&(C&&n.set(t,C),a.set(t,u))}function T(C){let O=n.get(C);return O||n.set(C,O=wye(C,pye)),O}}function wor(t,n){let a;return{getPackageJsonInfo:c,setPackageJsonInfo:u,clear:_,getInternalMap:f};function c(y){return a?.get(wl(y,t,n))}function u(y,g){(a||(a=new Map)).set(wl(y,t,n),g)}function _(){a=void 0}function f(){return a}}function xpt(t,n,a,c){let u=t.getOrCreateMapOfCacheRedirects(n),_=u.get(a);return _||(_=c(),u.set(a,_)),_}function Ior(t,n,a,c){let u=bpt(a,c);return{getFromDirectoryCache:g,getOrCreateCacheForDirectory:y,clear:_,update:f,directoryToModuleNameMap:u};function _(){u.clear()}function f(k){u.update(k)}function y(k,T){let C=wl(k,t,n);return xpt(u,T,C,()=>OL())}function g(k,T,C,O){var F,M;let U=wl(C,t,n);return(M=(F=u.getMapOfCacheRedirects(O))==null?void 0:F.get(U))==null?void 0:M.get(k,T)}}function Ez(t,n){return n===void 0?t:`${n}|${t}`}function OL(){let t=new Map,n=new Map,a={get(u,_){return t.get(c(u,_))},set(u,_,f){return t.set(c(u,_),f),a},delete(u,_){return t.delete(c(u,_)),a},has(u,_){return t.has(c(u,_))},forEach(u){return t.forEach((_,f)=>{let[y,g]=n.get(f);return u(_,y,g)})},size(){return t.size}};return a;function c(u,_){let f=Ez(u,_);return n.set(f,[u,_]),f}}function Por(t){return t.resolvedModule&&(t.resolvedModule.originalPath||t.resolvedModule.resolvedFileName)}function Nor(t){return t.resolvedTypeReferenceDirective&&(t.resolvedTypeReferenceDirective.originalPath||t.resolvedTypeReferenceDirective.resolvedFileName)}function Oor(t,n,a,c,u){let _=bpt(a,u);return{getFromNonRelativeNameCache:g,getOrCreateCacheForNonRelativeName:k,clear:f,update:y};function f(){_.clear()}function y(C){_.update(C)}function g(C,O,F,M){var U,J;return $.assert(!vt(C)),(J=(U=_.getMapOfCacheRedirects(M))==null?void 0:U.get(Ez(C,O)))==null?void 0:J.get(F)}function k(C,O,F){return $.assert(!vt(C)),xpt(_,F,Ez(C,O),T)}function T(){let C=new Map;return{get:O,set:F};function O(U){return C.get(wl(U,t,n))}function F(U,J){let G=wl(U,t,n);if(C.has(G))return;C.set(G,J);let Z=c(J),Q=Z&&M(G,Z),re=G;for(;re!==Q;){let ae=mo(re);if(ae===re||C.has(ae))break;C.set(ae,J),re=ae}}function M(U,J){let G=wl(mo(J),t,n),Z=0,Q=Math.min(U.length,G.length);for(;Zc,clearAllExceptPackageJsonInfoCache:k,optionsToRedirectsKey:_};function g(){k(),c.clear()}function k(){f.clear(),y.clear()}function T(C){f.update(C),y.update(C)}}function FL(t,n,a,c,u){let _=Tpt(t,n,a,c,Por,u);return _.getOrCreateCacheForModuleName=(f,y,g)=>_.getOrCreateCacheForNonRelativeName(f,y,g),_}function Die(t,n,a,c,u){return Tpt(t,n,a,c,Nor,u)}function Iye(t){return{moduleResolution:2,traceResolution:t.traceResolution}}function Aie(t,n,a,c,u){return h3(t,n,Iye(a),c,u)}function Ept(t,n,a,c){let u=mo(n);return a.getFromDirectoryCache(t,c,u,void 0)}function h3(t,n,a,c,u,_,f){let y=TC(a,c);_&&(a=_.commandLine.options),y&&(ns(c,x.Resolving_module_0_from_1,t,n),_&&ns(c,x.Using_compiler_options_of_project_reference_redirect_0,_.sourceFile.fileName));let g=mo(n),k=u?.getFromDirectoryCache(t,f,g,_);if(k)y&&ns(c,x.Resolution_for_module_0_was_found_in_cache_from_location_1,t,g);else{let T=a.moduleResolution;switch(T===void 0?(T=km(a),y&&ns(c,x.Module_resolution_kind_is_not_specified_using_0,zk[T])):y&&ns(c,x.Explicitly_specified_module_resolution_kind_Colon_0,zk[T]),T){case 3:k=Mor(t,n,a,c,u,_,f);break;case 99:k=jor(t,n,a,c,u,_,f);break;case 2:k=u8e(t,n,a,c,u,_,f?EC(a,f):void 0);break;case 1:k=h8e(t,n,a,c,u,_);break;case 100:k=l8e(t,n,a,c,u,_,f?EC(a,f):void 0);break;default:return $.fail(`Unexpected moduleResolution: ${T}`)}u&&!u.isReadonly&&(u.getOrCreateCacheForDirectory(g,_).set(t,f,k),vt(t)||u.getOrCreateCacheForNonRelativeName(t,f,_).set(g,k))}return y&&(k.resolvedModule?k.resolvedModule.packageId?ns(c,x.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,t,k.resolvedModule.resolvedFileName,cA(k.resolvedModule.packageId)):ns(c,x.Module_name_0_was_successfully_resolved_to_1,t,k.resolvedModule.resolvedFileName):ns(c,x.Module_name_0_was_not_resolved,t)),k}function kpt(t,n,a,c,u){let _=For(t,n,c,u);return _?_.value:vt(n)?Ror(t,n,a,c,u):Lor(t,n,c,u)}function For(t,n,a,c){let{baseUrl:u,paths:_}=c.compilerOptions;if(_&&!ch(n)){c.traceEnabled&&(u&&ns(c.host,x.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,u,n),ns(c.host,x.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n));let f=Ure(c.compilerOptions,c.host),y=TH(_);return f8e(t,n,f,_,y,a,!1,c)}}function Ror(t,n,a,c,u){if(!u.compilerOptions.rootDirs)return;u.traceEnabled&&ns(u.host,x.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);let _=Qs(Xi(a,n)),f,y;for(let g of u.compilerOptions.rootDirs){let k=Qs(g);au(k,Gl)||(k+=Gl);let T=Ca(_,k)&&(y===void 0||y.length(t[t.None=0]="None",t[t.Imports=2]="Imports",t[t.SelfName=4]="SelfName",t[t.Exports=8]="Exports",t[t.ExportsPatternTrailers=16]="ExportsPatternTrailers",t[t.AllFeatures=30]="AllFeatures",t[t.Node16Default=30]="Node16Default",t[t.NodeNextDefault=30]="NodeNextDefault",t[t.BundlerDefault=30]="BundlerDefault",t[t.EsmMode=32]="EsmMode",t))(c8e||{});function Mor(t,n,a,c,u,_,f){return Cpt(30,t,n,a,c,u,_,f)}function jor(t,n,a,c,u,_,f){return Cpt(30,t,n,a,c,u,_,f)}function Cpt(t,n,a,c,u,_,f,y,g){let k=mo(a),T=y===99?32:0,C=c.noDtsResolution?3:7;return _P(c)&&(C|=8),cK(t|T,n,k,c,u,_,C,!1,f,g)}function Bor(t,n,a){return cK(0,t,n,{moduleResolution:2,allowJs:!0},a,void 0,2,!1,void 0,void 0)}function l8e(t,n,a,c,u,_,f){let y=mo(n),g=a.noDtsResolution?3:7;return _P(a)&&(g|=8),cK(i8e(a),t,y,a,c,u,g,!1,_,f)}function u8e(t,n,a,c,u,_,f,y){let g;return y?g=8:a.noDtsResolution?(g=3,_P(a)&&(g|=8)):g=_P(a)?15:7,cK(f?30:0,t,mo(n),a,c,u,g,!!y,_,f)}function p8e(t,n,a){return cK(30,t,mo(n),{moduleResolution:99},a,void 0,8,!0,void 0,void 0)}function cK(t,n,a,c,u,_,f,y,g,k){var T,C,O,F,M;let U=TC(c,u),J=[],G=[],Z=km(c);k??(k=EC(c,Z===100||Z===2?void 0:t&32?99:1));let Q=[],re={compilerOptions:c,host:u,traceEnabled:U,failedLookupLocations:J,affectingLocations:G,packageJsonInfoCache:_,features:t,conditions:k??j,requestContainingDirectory:a,reportDiagnostic:le=>{Q.push(le)},isConfigLookup:y,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};U&&sL(Z)&&ns(u,x.Resolving_in_0_mode_with_conditions_1,t&32?"ESM":"CJS",re.conditions.map(le=>`'${le}'`).join(", "));let ae;if(Z===2){let le=f&5,Oe=f&-6;ae=le&&me(le,re)||Oe&&me(Oe,re)||void 0}else ae=me(f,re);let _e;if(re.resolvedPackageDirectory&&!y&&!vt(n)){let le=ae?.value&&f&5&&!Fpt(5,ae.value.resolved.extension);if((T=ae?.value)!=null&&T.isExternalLibraryImport&&le&&t&8&&k?.includes("import")){CC(re,x.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let Oe={...re,features:re.features&-9,reportDiagnostic:zs},be=me(f&5,Oe);(C=be?.value)!=null&&C.isExternalLibraryImport&&(_e=be.value.resolved.path)}else if((!ae?.value||le)&&Z===2){CC(re,x.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let Oe={...re.compilerOptions,moduleResolution:100},be={...re,compilerOptions:Oe,features:30,conditions:EC(Oe),reportDiagnostic:zs},ue=me(f&5,be);(O=ue?.value)!=null&&O.isExternalLibraryImport&&(_e=ue.value.resolved.path)}}return hpt(n,(F=ae?.value)==null?void 0:F.resolved,(M=ae?.value)==null?void 0:M.isExternalLibraryImport,J,G,Q,re,_,_e);function me(le,Oe){let ue=kpt(le,n,a,(De,Ce,Ae,Fe)=>Pye(De,Ce,Ae,Fe,!0),Oe);if(ue)return zy({resolved:ue,isExternalLibraryImport:kC(ue.path)});if(vt(n)){let{path:De,parts:Ce}=Dpt(a,n),Ae=Pye(le,De,!1,Oe,!0);return Ae&&zy({resolved:Ae,isExternalLibraryImport:un(Ce,"node_modules")})}else{if(t&2&&Ca(n,"#")){let Ce=Vor(le,n,a,Oe,_,g);if(Ce)return Ce.value&&{value:{resolved:Ce.value,isExternalLibraryImport:!1}}}if(t&4){let Ce=Jor(le,n,a,Oe,_,g);if(Ce)return Ce.value&&{value:{resolved:Ce.value,isExternalLibraryImport:!1}}}if(n.includes(":")){U&&ns(u,x.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,n,Tie(le));return}U&&ns(u,x.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,n,Tie(le));let De=Mpt(le,n,a,Oe,_,g);return le&4&&(De??(De=qpt(n,Oe))),De&&{value:De.value&&{resolved:De.value,isExternalLibraryImport:!0}}}}}function Dpt(t,n){let a=Xi(t,n),c=Cd(a),u=Yr(c);return{path:u==="."||u===".."?r_(Qs(a)):Qs(a),parts:c}}function Apt(t,n,a){if(!n.realpath)return t;let c=Qs(n.realpath(t));return a&&ns(n,x.Resolving_real_path_for_0_result_1,t,c),c}function Pye(t,n,a,c,u){if(c.traceEnabled&&ns(c.host,x.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,n,Tie(t)),!uS(n)){if(!a){let f=mo(n);Sv(f,c.host)||(c.traceEnabled&&ns(c.host,x.Directory_0_does_not_exist_skipping_all_lookups_in_it,f),a=!0)}let _=RL(t,n,a,c);if(_){let f=u?lK(_.path):void 0,y=f?g3(f,!1,c):void 0;return PF(y,_,c)}}if(a||Sv(n,c.host)||(c.traceEnabled&&ns(c.host,x.Directory_0_does_not_exist_skipping_all_lookups_in_it,n),a=!0),!(c.features&32))return d8e(t,n,a,c,u)}var Jx="/node_modules/";function kC(t){return t.includes(Jx)}function lK(t,n){let a=Qs(t),c=a.lastIndexOf(Jx);if(c===-1)return;let u=c+Jx.length,_=wpt(a,u,n);return a.charCodeAt(u)===64&&(_=wpt(a,_,n)),a.slice(0,_)}function wpt(t,n,a){let c=t.indexOf(Gl,n+1);return c===-1?a?t.length:n:c}function _8e(t,n,a,c){return Cye(RL(t,n,a,c))}function RL(t,n,a,c){let u=Ipt(t,n,a,c);if(u)return u;if(!(c.features&32)){let _=Ppt(n,t,"",a,c);if(_)return _}}function Ipt(t,n,a,c){if(!t_(n).includes("."))return;let _=Qm(n);_===n&&(_=n.substring(0,n.lastIndexOf(".")));let f=n.substring(_.length);return c.traceEnabled&&ns(c.host,x.File_name_0_has_a_1_extension_stripping_it,n,f),Ppt(_,t,f,a,c)}function Nye(t,n,a,c,u){if(t&1&&_p(n,vH)||t&4&&_p(n,gne)){let _=Oye(n,c,u),f=Qre(n);return _!==void 0?{path:n,ext:f,resolvedUsingTsExtension:a?!au(a,f):void 0}:void 0}return u.isConfigLookup&&t===8&&Au(n,".json")?Oye(n,c,u)!==void 0?{path:n,ext:".json",resolvedUsingTsExtension:void 0}:void 0:Ipt(t,n,c,u)}function Ppt(t,n,a,c,u){if(!c){let f=mo(t);f&&(c=!Sv(f,u.host))}switch(a){case".mjs":case".mts":case".d.mts":return n&1&&_(".mts",a===".mts"||a===".d.mts")||n&4&&_(".d.mts",a===".mts"||a===".d.mts")||n&2&&_(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return n&1&&_(".cts",a===".cts"||a===".d.cts")||n&4&&_(".d.cts",a===".cts"||a===".d.cts")||n&2&&_(".cjs")||void 0;case".json":return n&4&&_(".d.json.ts")||n&8&&_(".json")||void 0;case".tsx":case".jsx":return n&1&&(_(".tsx",a===".tsx")||_(".ts",a===".tsx"))||n&4&&_(".d.ts",a===".tsx")||n&2&&(_(".jsx")||_(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return n&1&&(_(".ts",a===".ts"||a===".d.ts")||_(".tsx",a===".ts"||a===".d.ts"))||n&4&&_(".d.ts",a===".ts"||a===".d.ts")||n&2&&(_(".js")||_(".jsx"))||u.isConfigLookup&&_(".json")||void 0;default:return n&4&&!sf(t+a)&&_(`.d${a}.ts`)||void 0}function _(f,y){let g=Oye(t+f,c,u);return g===void 0?void 0:{path:g,ext:f,resolvedUsingTsExtension:!u.candidateIsFromPackageJsonField&&y}}}function Oye(t,n,a){var c;if(!((c=a.compilerOptions.moduleSuffixes)!=null&&c.length))return Npt(t,n,a);let u=Bx(t)??"",_=u?xH(t,u):t;return X(a.compilerOptions.moduleSuffixes,f=>Npt(_+f+u,n,a))}function Npt(t,n,a){var c;if(!n){if(a.host.fileExists(t))return a.traceEnabled&&ns(a.host,x.File_0_exists_use_it_as_a_name_resolution_result,t),t;a.traceEnabled&&ns(a.host,x.File_0_does_not_exist,t)}(c=a.failedLookupLocations)==null||c.push(t)}function d8e(t,n,a,c,u=!0){let _=u?g3(n,a,c):void 0;return PF(_,Rye(t,n,a,c,_),c)}function Fye(t,n,a,c,u){if(!u&&t.contents.resolvedEntrypoints!==void 0)return t.contents.resolvedEntrypoints;let _,f=5|(u?2:0),y=i8e(n),g=kz(c?.getPackageJsonInfoCache(),a,n);g.conditions=EC(n),g.requestContainingDirectory=t.packageDirectory;let k=Rye(f,t.packageDirectory,!1,g,t);if(_=jt(_,k?.path),y&8&&t.contents.packageJsonContent.exports){let T=rf([EC(n,99),EC(n,1)],__);for(let C of T){let O={...g,failedLookupLocations:[],conditions:C,host:a},F=$or(t,t.contents.packageJsonContent.exports,O,f);if(F)for(let M of F)_=Jl(_,M.path)}}return t.contents.resolvedEntrypoints=_||!1}function $or(t,n,a,c){let u;if(Zn(n))for(let f of n)_(f);else if(typeof n=="object"&&n!==null&&Iie(n))for(let f in n)_(n[f]);else _(n);return u;function _(f){var y,g;if(typeof f=="string"&&Ca(f,"./"))if(f.includes("*")&&a.host.readDirectory){if(f.indexOf("*")!==f.lastIndexOf("*"))return!1;a.host.readDirectory(t.packageDirectory,bor(c),void 0,[T4(Y4(f,"**/*"),".*")]).forEach(k=>{u=Jl(u,{path:k,ext:nE(k),resolvedUsingTsExtension:void 0})})}else{let k=Cd(f).slice(2);if(k.includes("..")||k.includes(".")||k.includes("node_modules"))return!1;let T=Xi(t.packageDirectory,f),C=za(T,(g=(y=a.host).getCurrentDirectory)==null?void 0:g.call(y)),O=Nye(c,C,f,!1,a);if(O)return u=Jl(u,O,(F,M)=>F.path===M.path),!0}else if(Array.isArray(f)){for(let k of f)if(_(k))return!0}else if(typeof f=="object"&&f!==null)return X(Lu(f),k=>{if(k==="default"||un(a.conditions,k)||uK(a.conditions,k))return _(f[k]),!0})}}function kz(t,n,a){return{host:n,compilerOptions:a,traceEnabled:TC(a,n),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:t,features:0,conditions:j,requestContainingDirectory:void 0,reportDiagnostic:zs,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function Cz(t,n){return Ab(n.host,t,a=>g3(a,!1,n))}function Opt(t,n){return t.contents.versionPaths===void 0&&(t.contents.versionPaths=Cor(t.contents.packageJsonContent,n)||!1),t.contents.versionPaths||void 0}function Uor(t,n){return t.contents.peerDependencies===void 0&&(t.contents.peerDependencies=zor(t,n)||!1),t.contents.peerDependencies||void 0}function zor(t,n){let a=t8e(t.contents.packageJsonContent,"peerDependencies","object",n);if(a===void 0)return;n.traceEnabled&&ns(n.host,x.package_json_has_a_peerDependencies_field);let c=Apt(t.packageDirectory,n.host,n.traceEnabled),u=c.substring(0,c.lastIndexOf("node_modules")+12)+Gl,_="";for(let f in a)if(Ho(a,f)){let y=g3(u+f,!1,n);if(y){let g=y.contents.packageJsonContent.version;_+=`+${f}@${g}`,n.traceEnabled&&ns(n.host,x.Found_peerDependency_0_with_1_version,f,g)}else n.traceEnabled&&ns(n.host,x.Failed_to_find_peerDependency_0,f)}return _}function g3(t,n,a){var c,u,_,f,y,g;let{host:k,traceEnabled:T}=a,C=Xi(t,"package.json");if(n){(c=a.failedLookupLocations)==null||c.push(C);return}let O=(u=a.packageJsonInfoCache)==null?void 0:u.getPackageJsonInfo(C);if(O!==void 0){if(Cie(O))return T&&ns(k,x.File_0_exists_according_to_earlier_cached_lookups,C),(_=a.affectingLocations)==null||_.push(C),O.packageDirectory===t?O:{packageDirectory:t,contents:O.contents};O.directoryExists&&T&&ns(k,x.File_0_does_not_exist_according_to_earlier_cached_lookups,C),(f=a.failedLookupLocations)==null||f.push(C);return}let F=Sv(t,k);if(F&&k.fileExists(C)){let M=nL(C,k);T&&ns(k,x.Found_package_json_at_0,C);let U={packageDirectory:t,contents:{packageJsonContent:M,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return a.packageJsonInfoCache&&!a.packageJsonInfoCache.isReadonly&&a.packageJsonInfoCache.setPackageJsonInfo(C,U),(y=a.affectingLocations)==null||y.push(C),U}else F&&T&&ns(k,x.File_0_does_not_exist,C),a.packageJsonInfoCache&&!a.packageJsonInfoCache.isReadonly&&a.packageJsonInfoCache.setPackageJsonInfo(C,{packageDirectory:t,directoryExists:F}),(g=a.failedLookupLocations)==null||g.push(C)}function Rye(t,n,a,c,u){let _=u&&Opt(u,c),f;u&&ypt(u?.packageDirectory,n,c.host)&&(c.isConfigLookup?f=Tor(u.contents.packageJsonContent,u.packageDirectory,c):f=t&4&&xor(u.contents.packageJsonContent,u.packageDirectory,c)||t&7&&Eor(u.contents.packageJsonContent,u.packageDirectory,c)||void 0);let y=(O,F,M,U)=>{let J=Nye(O,F,void 0,M,U);if(J)return Cye(J);let G=O===4?5:O,Z=U.features,Q=U.candidateIsFromPackageJsonField;U.candidateIsFromPackageJsonField=!0,u?.contents.packageJsonContent.type!=="module"&&(U.features&=-33);let re=Pye(G,F,M,U,!1);return U.features=Z,U.candidateIsFromPackageJsonField=Q,re},g=f?!Sv(mo(f),c.host):void 0,k=a||!Sv(n,c.host),T=Xi(n,c.isConfigLookup?"tsconfig":"index");if(_&&(!f||ug(n,f))){let O=lh(n,f||T,!1);c.traceEnabled&&ns(c.host,x.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,_.version,L,O);let F=TH(_.paths),M=f8e(t,O,n,_.paths,F,y,g||k,c);if(M)return mpt(M.value)}let C=f&&mpt(y(t,f,g,c));if(C)return C;if(!(c.features&32))return RL(t,T,k,c)}function Fpt(t,n){return t&2&&(n===".js"||n===".jsx"||n===".mjs"||n===".cjs")||t&1&&(n===".ts"||n===".tsx"||n===".mts"||n===".cts")||t&4&&(n===".d.ts"||n===".d.mts"||n===".d.cts")||t&8&&n===".json"||!1}function wie(t){let n=t.indexOf(Gl);return t[0]==="@"&&(n=t.indexOf(Gl,n+1)),n===-1?{packageName:t,rest:""}:{packageName:t.slice(0,n),rest:t.slice(n+1)}}function Iie(t){return ht(Lu(t),n=>Ca(n,"."))}function qor(t){return!Pt(Lu(t),n=>Ca(n,"."))}function Jor(t,n,a,c,u,_){var f,y;let g=za(a,(y=(f=c.host).getCurrentDirectory)==null?void 0:y.call(f)),k=Cz(g,c);if(!k||!k.contents.packageJsonContent.exports||typeof k.contents.packageJsonContent.name!="string")return;let T=Cd(n),C=Cd(k.contents.packageJsonContent.name);if(!ht(C,(J,G)=>T[G]===J))return;let O=T.slice(C.length),F=te(O)?`.${Gl}${O.join(Gl)}`:".";if(fC(c.compilerOptions)&&!kC(a))return Lye(k,t,F,c,u,_);let M=t&5,U=t&-6;return Lye(k,M,F,c,u,_)||Lye(k,U,F,c,u,_)}function Lye(t,n,a,c,u,_){if(t.contents.packageJsonContent.exports){if(a==="."){let f;if(typeof t.contents.packageJsonContent.exports=="string"||Array.isArray(t.contents.packageJsonContent.exports)||typeof t.contents.packageJsonContent.exports=="object"&&qor(t.contents.packageJsonContent.exports)?f=t.contents.packageJsonContent.exports:Ho(t.contents.packageJsonContent.exports,".")&&(f=t.contents.packageJsonContent.exports["."]),f)return Lpt(n,c,u,_,a,t,!1)(f,"",!1,".")}else if(Iie(t.contents.packageJsonContent.exports)){if(typeof t.contents.packageJsonContent.exports!="object")return c.traceEnabled&&ns(c.host,x.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,a,t.packageDirectory),zy(void 0);let f=Rpt(n,c,u,_,a,t.contents.packageJsonContent.exports,t,!1);if(f)return f}return c.traceEnabled&&ns(c.host,x.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,a,t.packageDirectory),zy(void 0)}}function Vor(t,n,a,c,u,_){var f,y;if(n==="#"||Ca(n,"#/"))return c.traceEnabled&&ns(c.host,x.Invalid_import_specifier_0_has_no_possible_resolutions,n),zy(void 0);let g=za(a,(y=(f=c.host).getCurrentDirectory)==null?void 0:y.call(f)),k=Cz(g,c);if(!k)return c.traceEnabled&&ns(c.host,x.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,g),zy(void 0);if(!k.contents.packageJsonContent.imports)return c.traceEnabled&&ns(c.host,x.package_json_scope_0_has_no_imports_defined,k.packageDirectory),zy(void 0);let T=Rpt(t,c,u,_,n,k.contents.packageJsonContent.imports,k,!0);return T||(c.traceEnabled&&ns(c.host,x.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,k.packageDirectory),zy(void 0))}function Mye(t,n){let a=t.indexOf("*"),c=n.indexOf("*"),u=a===-1?t.length:a+1,_=c===-1?n.length:c+1;return u>_?-1:_>u||a===-1?1:c===-1||t.length>n.length?-1:n.length>t.length?1:0}function Rpt(t,n,a,c,u,_,f,y){let g=Lpt(t,n,a,c,u,f,y);if(!au(u,Gl)&&!u.includes("*")&&Ho(_,u)){let C=_[u];return g(C,"",!1,u)}let k=pu(yr(Lu(_),C=>Wor(C)||au(C,"/")),Mye);for(let C of k)if(n.features&16&&T(C,u)){let O=_[C],F=C.indexOf("*"),M=u.substring(C.substring(0,F).length,u.length-(C.length-1-F));return g(O,M,!0,C)}else if(au(C,"*")&&Ca(u,C.substring(0,C.length-1))){let O=_[C],F=u.substring(C.length-1);return g(O,F,!0,C)}else if(Ca(u,C)){let O=_[C],F=u.substring(C.length);return g(O,F,!1,C)}function T(C,O){if(au(C,"*"))return!1;let F=C.indexOf("*");return F===-1?!1:Ca(O,C.substring(0,F))&&au(O,C.substring(F+1))}}function Wor(t){let n=t.indexOf("*");return n!==-1&&n===t.lastIndexOf("*")}function Lpt(t,n,a,c,u,_,f){return y;function y(g,k,T,C){var O,F;if(typeof g=="string"){if(!T&&k.length>0&&!au(g,"/"))return n.traceEnabled&&ns(n.host,x.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,_.packageDirectory,u),zy(void 0);if(!Ca(g,"./")){if(f&&!Ca(g,"../")&&!Ca(g,"/")&&!qd(g)){let me=T?g.replace(/\*/g,k):g+k;CC(n,x.Using_0_subpath_1_with_target_2,"imports",C,me),CC(n,x.Resolving_module_0_from_1,me,_.packageDirectory+"/");let le=cK(n.features,me,_.packageDirectory+"/",n.compilerOptions,n.host,a,t,!1,c,n.conditions);return(O=n.failedLookupLocations)==null||O.push(...le.failedLookupLocations??j),(F=n.affectingLocations)==null||F.push(...le.affectingLocations??j),zy(le.resolvedModule?{path:le.resolvedModule.resolvedFileName,extension:le.resolvedModule.extension,packageId:le.resolvedModule.packageId,originalPath:le.resolvedModule.originalPath,resolvedUsingTsExtension:le.resolvedModule.resolvedUsingTsExtension}:void 0)}return n.traceEnabled&&ns(n.host,x.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,_.packageDirectory,u),zy(void 0)}let Z=(ch(g)?Cd(g).slice(1):Cd(g)).slice(1);if(Z.includes("..")||Z.includes(".")||Z.includes("node_modules"))return n.traceEnabled&&ns(n.host,x.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,_.packageDirectory,u),zy(void 0);let Q=Xi(_.packageDirectory,g),re=Cd(k);if(re.includes("..")||re.includes(".")||re.includes("node_modules"))return n.traceEnabled&&ns(n.host,x.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,_.packageDirectory,u),zy(void 0);n.traceEnabled&&ns(n.host,x.Using_0_subpath_1_with_target_2,f?"imports":"exports",C,T?g.replace(/\*/g,k):g+k);let ae=M(T?Q.replace(/\*/g,k):Q+k),_e=J(ae,k,Xi(_.packageDirectory,"package.json"),f);return _e||zy(PF(_,Nye(t,ae,g,!1,n),n))}else if(typeof g=="object"&&g!==null)if(Array.isArray(g)){if(!te(g))return n.traceEnabled&&ns(n.host,x.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,_.packageDirectory,u),zy(void 0);for(let G of g){let Z=y(G,k,T,C);if(Z)return Z}}else{CC(n,x.Entering_conditional_exports);for(let G of Lu(g))if(G==="default"||n.conditions.includes(G)||uK(n.conditions,G)){CC(n,x.Matched_0_condition_1,f?"imports":"exports",G);let Z=g[G],Q=y(Z,k,T,C);if(Q)return CC(n,x.Resolved_under_condition_0,G),CC(n,x.Exiting_conditional_exports),Q;CC(n,x.Failed_to_resolve_under_condition_0,G)}else CC(n,x.Saw_non_matching_condition_0,G);CC(n,x.Exiting_conditional_exports);return}else if(g===null)return n.traceEnabled&&ns(n.host,x.package_json_scope_0_explicitly_maps_specifier_1_to_null,_.packageDirectory,u),zy(void 0);return n.traceEnabled&&ns(n.host,x.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,_.packageDirectory,u),zy(void 0);function M(G){var Z,Q;return G===void 0?G:za(G,(Q=(Z=n.host).getCurrentDirectory)==null?void 0:Q.call(Z))}function U(G,Z){return r_(Xi(G,Z))}function J(G,Z,Q,re){var ae,_e,me,le;if(!n.isConfigLookup&&(n.compilerOptions.declarationDir||n.compilerOptions.outDir)&&!G.includes("/node_modules/")&&(!n.compilerOptions.configFile||ug(_.packageDirectory,M(n.compilerOptions.configFile.fileName),!jye(n)))){let be=UT({useCaseSensitiveFileNames:()=>jye(n)}),ue=[];if(n.compilerOptions.rootDir||n.compilerOptions.composite&&n.compilerOptions.configFilePath){let De=M(jz(n.compilerOptions,()=>[],((_e=(ae=n.host).getCurrentDirectory)==null?void 0:_e.call(ae))||"",be));ue.push(De)}else if(n.requestContainingDirectory){let De=M(Xi(n.requestContainingDirectory,"index.ts")),Ce=M(jz(n.compilerOptions,()=>[De,M(Q)],((le=(me=n.host).getCurrentDirectory)==null?void 0:le.call(me))||"",be));ue.push(Ce);let Ae=r_(Ce);for(;Ae&&Ae.length>1;){let Fe=Cd(Ae);Fe.pop();let Be=pS(Fe);ue.unshift(Be),Ae=r_(Be)}}ue.length>1&&n.reportDiagnostic(bp(re?x.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:x.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,Z===""?".":Z,Q));for(let De of ue){let Ce=Oe(De);for(let Ae of Ce)if(ug(Ae,G,!jye(n))){let Fe=G.slice(Ae.length+1),Be=Xi(De,Fe),de=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(let ze of de)if(Au(Be,ze)){let ut=dhe(Be);for(let je of ut){if(!Fpt(t,je))continue;let ve=Og(Be,je,ze,!jye(n));if(n.host.fileExists(ve))return zy(PF(_,Nye(t,ve,void 0,!1,n),n))}}}}}return;function Oe(be){var ue,De;let Ce=n.compilerOptions.configFile?((De=(ue=n.host).getCurrentDirectory)==null?void 0:De.call(ue))||"":be,Ae=[];return n.compilerOptions.declarationDir&&Ae.push(M(U(Ce,n.compilerOptions.declarationDir))),n.compilerOptions.outDir&&n.compilerOptions.outDir!==n.compilerOptions.declarationDir&&Ae.push(M(U(Ce,n.compilerOptions.outDir))),Ae}}}}function uK(t,n){if(!t.includes("types")||!Ca(n,"types@"))return!1;let a=KD.tryParse(n.substring(6));return a?a.test(L):!1}function Mpt(t,n,a,c,u,_){return jpt(t,n,a,c,!1,u,_)}function Gor(t,n,a){return jpt(4,t,n,a,!0,void 0,void 0)}function jpt(t,n,a,c,u,_,f){let y=c.features===0?void 0:c.features&32||c.conditions.includes("import")?99:1,g=t&5,k=t&-6;if(g){CC(c,x.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,Tie(g));let C=T(g);if(C)return C}if(k&&!u)return CC(c,x.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,Tie(k)),T(k);function T(C){return Ab(c.host,Z_(a),O=>{if(t_(O)!=="node_modules"){let F=zpt(_,n,y,O,f,c);return F||zy(Bpt(C,n,O,c,u,_,f))}})}}function Ab(t,n,a){var c;let u=(c=t?.getGlobalTypingsCacheLocation)==null?void 0:c.call(t);return Ex(n,_=>{let f=a(_);if(f!==void 0)return f;if(_===u)return!1})||void 0}function Bpt(t,n,a,c,u,_,f){let y=Xi(a,"node_modules"),g=Sv(y,c.host);if(!g&&c.traceEnabled&&ns(c.host,x.Directory_0_does_not_exist_skipping_all_lookups_in_it,y),!u){let k=$pt(t,n,y,g,c,_,f);if(k)return k}if(t&4){let k=Xi(y,"@types"),T=g;return g&&!Sv(k,c.host)&&(c.traceEnabled&&ns(c.host,x.Directory_0_does_not_exist_skipping_all_lookups_in_it,k),T=!1),$pt(4,Upt(n,c),k,T,c,_,f)}}function $pt(t,n,a,c,u,_,f){var y,g;let k=Qs(Xi(a,n)),{packageName:T,rest:C}=wie(n),O=Xi(a,T),F,M=g3(k,!c,u);if(C!==""&&M&&(!(u.features&8)||!Ho(((y=F=g3(O,!c,u))==null?void 0:y.contents.packageJsonContent)??j,"exports"))){let G=RL(t,k,!c,u);if(G)return Cye(G);let Z=Rye(t,k,!c,u,M);return PF(M,Z,u)}let U=(G,Z,Q,re)=>{let ae=(C||!(re.features&32))&&RL(G,Z,Q,re)||Rye(G,Z,Q,re,M);return!ae&&!C&&M&&(M.contents.packageJsonContent.exports===void 0||M.contents.packageJsonContent.exports===null)&&re.features&32&&(ae=RL(G,Xi(Z,"index.js"),Q,re)),PF(M,ae,re)};if(C!==""&&(M=F??g3(O,!c,u)),M&&(u.resolvedPackageDirectory=!0),M&&M.contents.packageJsonContent.exports&&u.features&8)return(g=Lye(M,t,Xi(".",C),u,_,f))==null?void 0:g.value;let J=C!==""&&M?Opt(M,u):void 0;if(J){u.traceEnabled&&ns(u.host,x.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,J.version,L,C);let G=c&&Sv(O,u.host),Z=TH(J.paths),Q=f8e(t,C,O,J.paths,Z,U,!G,u);if(Q)return Q.value}return U(t,k,!c,u)}function f8e(t,n,a,c,u,_,f,y){let g=Zhe(u,n);if(g){let k=Ni(g)?void 0:D9(g,n),T=Ni(g)?g:X8(g);return y.traceEnabled&&ns(y.host,x.Module_name_0_matched_pattern_1,n,T),{value:X(c[T],O=>{let F=k?Y4(O,k):O,M=Qs(Xi(a,F));y.traceEnabled&&ns(y.host,x.Trying_substitution_0_candidate_module_location_Colon_1,O,F);let U=Bx(O);if(U!==void 0){let J=Oye(M,f,y);if(J!==void 0)return Cye({path:J,ext:U,resolvedUsingTsExtension:void 0})}return _(t,M,f||!Sv(mo(M),y.host),y)})}}}var m8e="__";function Upt(t,n){let a=LL(t);return n.traceEnabled&&a!==t&&ns(n.host,x.Scoped_package_detected_looking_in_0,a),a}function Pie(t){return`@types/${LL(t)}`}function LL(t){if(Ca(t,"@")){let n=t.replace(Gl,m8e);if(n!==t)return n.slice(1)}return t}function Dz(t){let n=Mk(t,"@types/");return n!==t?pK(n):t}function pK(t){return t.includes(m8e)?"@"+t.replace(m8e,Gl):t}function zpt(t,n,a,c,u,_){let f=t&&t.getFromNonRelativeNameCache(n,a,c,u);if(f)return _.traceEnabled&&ns(_.host,x.Resolution_for_module_0_was_found_in_cache_from_location_1,n,c),_.resultFromCache=f,{value:f.resolvedModule&&{path:f.resolvedModule.resolvedFileName,originalPath:f.resolvedModule.originalPath||!0,extension:f.resolvedModule.extension,packageId:f.resolvedModule.packageId,resolvedUsingTsExtension:f.resolvedModule.resolvedUsingTsExtension}}}function h8e(t,n,a,c,u,_){let f=TC(a,c),y=[],g=[],k=mo(n),T=[],C={compilerOptions:a,host:c,traceEnabled:f,failedLookupLocations:y,affectingLocations:g,packageJsonInfoCache:u,features:0,conditions:[],requestContainingDirectory:k,reportDiagnostic:M=>{T.push(M)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},O=F(5)||F(2|(a.resolveJsonModule?8:0));return hpt(t,O&&O.value,O?.value&&kC(O.value.path),y,g,T,C,u);function F(M){let U=kpt(M,t,k,_8e,C);if(U)return{value:U};if(vt(t)){let J=Qs(Xi(k,t));return zy(_8e(M,J,!1,C))}else{let J=Ab(C.host,k,G=>{let Z=zpt(u,t,void 0,G,_,C);if(Z)return Z;let Q=Qs(Xi(G,t));return zy(_8e(M,Q,!1,C))});if(J)return J;if(M&5){let G=Gor(t,k,C);return M&4&&(G??(G=qpt(t,C))),G}}}}function qpt(t,n){if(n.compilerOptions.typeRoots)for(let a of n.compilerOptions.typeRoots){let c=Spt(a,t,n),u=Sv(a,n.host);!u&&n.traceEnabled&&ns(n.host,x.Directory_0_does_not_exist_skipping_all_lookups_in_it,a);let _=RL(4,c,!u,n);if(_){let y=lK(_.path),g=y?g3(y,!1,n):void 0;return zy(PF(g,_,n))}let f=d8e(4,c,!u,n);if(f)return zy(f)}}function ML(t,n){return A4e(t)||!!n&&sf(n)}function g8e(t,n,a,c,u,_){let f=TC(a,c);f&&ns(c,x.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,n,t,u);let y=[],g=[],k=[],T={compilerOptions:a,host:c,traceEnabled:f,failedLookupLocations:y,affectingLocations:g,packageJsonInfoCache:_,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:O=>{k.push(O)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},C=Bpt(4,t,u,T,!1,void 0,void 0);return gpt(C,!0,y,g,k,T.resultFromCache,void 0)}function zy(t){return t!==void 0?{value:t}:void 0}function CC(t,n,...a){t.traceEnabled&&ns(t.host,n,...a)}function jye(t){return t.host.useCaseSensitiveFileNames?typeof t.host.useCaseSensitiveFileNames=="boolean"?t.host.useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames():!0}var y8e=(t=>(t[t.NonInstantiated=0]="NonInstantiated",t[t.Instantiated=1]="Instantiated",t[t.ConstEnumOnly=2]="ConstEnumOnly",t))(y8e||{});function KT(t,n){return t.body&&!t.body.parent&&(xl(t.body,t),vA(t.body,!1)),t.body?v8e(t.body,n):1}function v8e(t,n=new Map){let a=hl(t);if(n.has(a))return n.get(a)||0;n.set(a,void 0);let c=Hor(t,n);return n.set(a,c),c}function Hor(t,n){switch(t.kind){case 265:case 266:return 0;case 267:if(lA(t))return 2;break;case 273:case 272:if(!ko(t,32))return 0;break;case 279:let a=t;if(!a.moduleSpecifier&&a.exportClause&&a.exportClause.kind===280){let c=0;for(let u of a.exportClause.elements){let _=Kor(u,n);if(_>c&&(c=_),c===1)return c}return c}break;case 269:{let c=0;return Is(t,u=>{let _=v8e(u,n);switch(_){case 0:return;case 2:c=2;return;case 1:return c=1,!0;default:$.assertNever(_)}}),c}case 268:return KT(t,n);case 80:if(t.flags&4096)return 0}return 1}function Kor(t,n){let a=t.propertyName||t.name;if(a.kind!==80)return 1;let c=t.parent;for(;c;){if(Vs(c)||wS(c)||Ta(c)){let u=c.statements,_;for(let f of u)if(wO(f,a)){f.parent||(xl(f,c),vA(f,!1));let y=v8e(f,n);if((_===void 0||y>_)&&(_=y),_===1)return _;f.kind===272&&(_=1)}if(_!==void 0)return _}c=c.parent}return 1}var S8e=(t=>(t[t.None=0]="None",t[t.IsContainer=1]="IsContainer",t[t.IsBlockScopedContainer=2]="IsBlockScopedContainer",t[t.IsControlFlowContainer=4]="IsControlFlowContainer",t[t.IsFunctionLike=8]="IsFunctionLike",t[t.IsFunctionExpression=16]="IsFunctionExpression",t[t.HasLocals=32]="HasLocals",t[t.IsInterface=64]="IsInterface",t[t.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",t))(S8e||{});function wb(t,n,a){return $.attachFlowNodeDebugInfo({flags:t,id:0,node:n,antecedent:a})}var Qor=Zor();function b8e(t,n){jl("beforeBind"),Qor(t,n),jl("afterBind"),Jm("Bind","beforeBind","afterBind")}function Zor(){var t,n,a,c,u,_,f,y,g,k,T,C,O,F,M,U,J,G,Z,Q,re,ae,_e,me,le,Oe=!1,be=0,ue,De,Ce=wb(1,void 0,void 0),Ae=wb(1,void 0,void 0),Fe=Y();return de;function Be(ee,it,...cr){return m0(Pn(ee)||t,ee,it,...cr)}function de(ee,it){var cr,In;t=ee,n=it,a=$c(n),le=ze(t,it),De=new Set,be=0,ue=Uf.getSymbolConstructor(),$.attachFlowNodeDebugInfo(Ce),$.attachFlowNodeDebugInfo(Ae),t.locals||((cr=hi)==null||cr.push(hi.Phase.Bind,"bindSourceFile",{path:t.path},!0),On(t),(In=hi)==null||In.pop(),t.symbolCount=be,t.classifiableNames=De,Nu(),kc()),t=void 0,n=void 0,a=void 0,c=void 0,u=void 0,_=void 0,f=void 0,y=void 0,g=void 0,T=void 0,k=!1,C=void 0,O=void 0,F=void 0,M=void 0,U=void 0,J=void 0,G=void 0,Q=void 0,re=!1,ae=!1,_e=!1,Oe=!1,me=0}function ze(ee,it){return rm(it,"alwaysStrict")&&!ee.isDeclarationFile?!0:!!ee.externalModuleIndicator}function ut(ee,it){return be++,new ue(ee,it)}function je(ee,it,cr){ee.flags|=cr,it.symbol=ee,ee.declarations=Jl(ee.declarations,it),cr&1955&&!ee.exports&&(ee.exports=ic()),cr&6240&&!ee.members&&(ee.members=ic()),ee.constEnumOnlyModule&&ee.flags&304&&(ee.constEnumOnlyModule=!1),cr&111551&&SU(ee,it)}function ve(ee){if(ee.kind===278)return ee.isExportEquals?"export=":"default";let it=cs(ee);if(it){if(Gm(ee)){let cr=g0(it);return xb(ee)?"__global":`"${cr}"`}if(it.kind===168){let cr=it.expression;if(jy(cr))return dp(cr.text);if(Fre(cr))return Zs(cr.operator)+cr.operand.text;$.fail("Only computed properties with literal names have declaration names")}if(Aa(it)){let cr=Cf(ee);if(!cr)return;let In=cr.symbol;return XG(In,it.escapedText)}return Ev(it)?cF(it):SS(it)?DU(it):void 0}switch(ee.kind){case 177:return"__constructor";case 185:case 180:case 324:return"__call";case 186:case 181:return"__new";case 182:return"__index";case 279:return"__export";case 308:return"export=";case 227:if(m_(ee)===2)return"export=";$.fail("Unknown binary declaration kind");break;case 318:return WO(ee)?"__new":"__call";case 170:return $.assert(ee.parent.kind===318,"Impossible parameter parent kind",()=>`parent is: ${$.formatSyntaxKind(ee.parent.kind)}, expected JSDocFunctionType`),"arg"+ee.parent.parameters.indexOf(ee)}}function Le(ee){return Vp(ee)?du(ee.name):oa($.checkDefined(ve(ee)))}function Ve(ee,it,cr,In,Ka,Ws,Xa){$.assert(Xa||!$T(cr));let ks=ko(cr,2048)||Cm(cr)&&bb(cr.name),cp=Xa?"__computed":ks&&it?"default":ve(cr),Cc;if(cp===void 0)Cc=ut(0,"__missing");else if(Cc=ee.get(cp),In&2885600&&De.add(cp),!Cc)ee.set(cp,Cc=ut(0,cp)),Ws&&(Cc.isReplaceableByMethod=!0);else{if(Ws&&!Cc.isReplaceableByMethod)return Cc;if(Cc.flags&Ka){if(Cc.isReplaceableByMethod)ee.set(cp,Cc=ut(0,cp));else if(!(In&3&&Cc.flags&67108864)){Vp(cr)&&xl(cr.name,cr);let pf=Cc.flags&2?x.Cannot_redeclare_block_scoped_variable_0:x.Duplicate_identifier_0,Kg=!0;(Cc.flags&384||In&384)&&(pf=x.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Kg=!1);let Ky=!1;te(Cc.declarations)&&(ks||Cc.declarations&&Cc.declarations.length&&cr.kind===278&&!cr.isExportEquals)&&(pf=x.A_module_cannot_have_multiple_default_exports,Kg=!1,Ky=!0);let A0=[];s1(cr)&&Op(cr.type)&&ko(cr,32)&&Cc.flags&2887656&&A0.push(Be(cr,x.Did_you_mean_0,`export type { ${oa(cr.name.escapedText)} }`));let r2=cs(cr)||cr;X(Cc.declarations,(vh,Nb)=>{let Pv=cs(vh)||vh,d1=Kg?Be(Pv,pf,Le(vh)):Be(Pv,pf);t.bindDiagnostics.push(Ky?ac(d1,Be(r2,Nb===0?x.Another_export_default_is_here:x.and_here)):d1),Ky&&A0.push(Be(Pv,x.The_first_export_default_is_here))});let PE=Kg?Be(r2,pf,Le(cr)):Be(r2,pf);t.bindDiagnostics.push(ac(PE,...A0)),Cc=ut(0,cp)}}}return je(Cc,cr,In),Cc.parent?$.assert(Cc.parent===it,"Existing symbol parent should match new one"):Cc.parent=it,Cc}function nt(ee,it,cr){let In=!!(Ra(ee)&32)||It(ee);if(it&2097152)return ee.kind===282||ee.kind===272&&In?Ve(u.symbol.exports,u.symbol,ee,it,cr):($.assertNode(u,vb),Ve(u.locals,void 0,ee,it,cr));if(n1(ee)&&$.assert(Ei(ee)),!Gm(ee)&&(In||u.flags&128)){if(!vb(u)||!u.locals||ko(ee,2048)&&!ve(ee))return Ve(u.symbol.exports,u.symbol,ee,it,cr);let Ka=it&111551?1048576:0,Ws=Ve(u.locals,void 0,ee,Ka,cr);return Ws.exportSymbol=Ve(u.symbol.exports,u.symbol,ee,it,cr),ee.localSymbol=Ws,Ws}else return $.assertNode(u,vb),Ve(u.locals,void 0,ee,it,cr)}function It(ee){if(ee.parent&&I_(ee)&&(ee=ee.parent),!n1(ee))return!1;if(!zH(ee)&&ee.fullName)return!0;let it=cs(ee);return it?!!(sH(it.parent)&&D0(it.parent)||Vd(it.parent)&&Ra(it.parent)&32):!1}function ke(ee,it){let cr=u,In=_,Ka=f,Ws=ae;if(ee.kind===220&&ee.body.kind!==242&&(ae=!0),it&1?(ee.kind!==220&&(_=u),u=f=ee,it&32&&(u.locals=ic(),cn(u))):it&2&&(f=ee,it&32&&(f.locals=void 0)),it&4){let Xa=C,ks=O,cp=F,Cc=M,pf=G,Kg=Q,Ky=re,A0=it&16&&!ko(ee,1024)&&!ee.asteriskToken&&!!uA(ee)||ee.kind===176;A0||(C=wb(2,void 0,void 0),it&144&&(C.node=ee)),M=A0||ee.kind===177||Ei(ee)&&(ee.kind===263||ee.kind===219)?Dr():void 0,G=void 0,O=void 0,F=void 0,Q=void 0,re=!1,Qe(ee),ee.flags&=-5633,!(C.flags&1)&&it&8&&t1(ee.body)&&(ee.flags|=512,re&&(ee.flags|=1024),ee.endFlowNode=C),ee.kind===308&&(ee.flags|=me,ee.endFlowNode=C),M&&(sr(M,C),C=$o(M),(ee.kind===177||ee.kind===176||Ei(ee)&&(ee.kind===263||ee.kind===219))&&(ee.returnFlowNode=C)),A0||(C=Xa),O=ks,F=cp,M=Cc,G=pf,Q=Kg,re=Ky}else it&64?(k=!1,Qe(ee),$.assertNotNode(ee,ct),ee.flags=k?ee.flags|256:ee.flags&-257):Qe(ee);ae=Ws,u=cr,_=In,f=Ka}function _t(ee){Se(ee,it=>it.kind===263?On(it):void 0),Se(ee,it=>it.kind!==263?On(it):void 0)}function Se(ee,it=On){ee!==void 0&&X(ee,it)}function tt(ee){Is(ee,On,Se)}function Qe(ee){let it=Oe;if(Oe=!1,Ea(ee)){KR(ee)&&ee.flowNode&&(ee.flowNode=void 0),tt(ee),ua(ee),Oe=it;return}switch(ee.kind>=244&&ee.kind<=260&&(!n.allowUnreachableCode||ee.kind===254)&&(ee.flowNode=C),ee.kind){case 248:yc(ee);break;case 247:Cn(ee);break;case 249:Es(ee);break;case 250:case 251:Dt(ee);break;case 246:ur(ee);break;case 254:case 258:Ee(ee);break;case 253:case 252:et(ee);break;case 259:Ct(ee);break;case 256:Ot(ee);break;case 270:ar(ee);break;case 297:at(ee);break;case 245:Zt(ee);break;case 257:pr(ee);break;case 225:Ye(ee);break;case 226:er(ee);break;case 227:if(dE(ee)){Oe=it,Ne(ee);return}Fe(ee);break;case 221:ot(ee);break;case 228:pe(ee);break;case 261:mr(ee);break;case 212:case 213:tn(ee);break;case 214:lr(ee);break;case 236:pn(ee);break;case 347:case 339:case 341:ii(ee);break;case 352:zn(ee);break;case 308:{_t(ee.statements),On(ee.endOfFileToken);break}case 242:case 269:_t(ee.statements);break;case 209:Ge(ee);break;case 170:Mt(ee);break;case 211:case 210:case 304:case 231:Oe=it;default:tt(ee);break}ua(ee),Oe=it}function We(ee){switch(ee.kind){case 80:case 110:return!0;case 212:case 213:return Kt(ee);case 214:return Sr(ee);case 218:if(EP(ee))return!1;case 236:return We(ee.expression);case 227:return Nn(ee);case 225:return ee.operator===54&&We(ee.operand);case 222:return We(ee.expression)}return!1}function St(ee){switch(ee.kind){case 80:case 110:case 108:case 237:return!0;case 212:case 218:case 236:return St(ee.expression);case 213:return(jy(ee.argumentExpression)||ru(ee.argumentExpression))&&St(ee.expression);case 227:return ee.operatorToken.kind===28&&St(ee.right)||zT(ee.operatorToken.kind)&&jh(ee.left)}return!1}function Kt(ee){return St(ee)||xm(ee)&&Kt(ee.expression)}function Sr(ee){if(ee.arguments){for(let it of ee.arguments)if(Kt(it))return!0}return!!(ee.expression.kind===212&&Kt(ee.expression.expression))}function nn(ee,it){return hL(ee)&&$t(ee.expression)&&Sl(it)}function Nn(ee){switch(ee.operatorToken.kind){case 64:case 76:case 77:case 78:return Kt(ee.left);case 35:case 36:case 37:case 38:let it=bl(ee.left),cr=bl(ee.right);return $t(it)||$t(cr)||nn(cr,it)||nn(it,cr)||oU(cr)&&We(it)||oU(it)&&We(cr);case 104:return $t(ee.left);case 103:return We(ee.right);case 28:return We(ee.right)}return!1}function $t(ee){switch(ee.kind){case 218:return $t(ee.expression);case 227:switch(ee.operatorToken.kind){case 64:return $t(ee.left);case 28:return $t(ee.right)}}return Kt(ee)}function Dr(){return wb(4,void 0,void 0)}function Qn(){return wb(8,void 0,void 0)}function Ko(ee,it,cr){return wb(1024,{target:ee,antecedents:it},cr)}function is(ee){ee.flags|=ee.flags&2048?4096:2048}function sr(ee,it){!(it.flags&1)&&!un(ee.antecedent,it)&&((ee.antecedent||(ee.antecedent=[])).push(it),is(it))}function uo(ee,it,cr){return it.flags&1?it:cr?(cr.kind===112&&ee&64||cr.kind===97&&ee&32)&&!Bte(cr)&&!eme(cr.parent)?Ce:We(cr)?(is(it),wb(ee,cr,it)):it:ee&32?it:Ce}function Wa(ee,it,cr,In){return is(ee),wb(128,{switchStatement:it,clauseStart:cr,clauseEnd:In},ee)}function oo(ee,it,cr){is(it),_e=!0;let In=wb(ee,cr,it);return G&&sr(G,In),In}function Oi(ee,it){return is(ee),_e=!0,wb(512,it,ee)}function $o(ee){let it=ee.antecedent;return it?it.length===1?it[0]:ee:Ce}function ft(ee){let it=ee.parent;switch(it.kind){case 246:case 248:case 247:return it.expression===ee;case 249:case 228:return it.condition===ee}return!1}function Ht(ee){for(;;)if(ee.kind===218)ee=ee.expression;else if(ee.kind===225&&ee.operator===54)ee=ee.operand;else return oH(ee)}function Wr(ee){return bhe(bl(ee))}function ai(ee){for(;mh(ee.parent)||TA(ee.parent)&&ee.parent.operator===54;)ee=ee.parent;return!ft(ee)&&!Ht(ee.parent)&&!(xm(ee.parent)&&ee.parent.expression===ee)}function vo(ee,it,cr,In){let Ka=U,Ws=J;U=cr,J=In,ee(it),U=Ka,J=Ws}function Eo(ee,it,cr){vo(On,ee,it,cr),(!ee||!Wr(ee)&&!Ht(ee)&&!(xm(ee)&&eU(ee)))&&(sr(it,uo(32,C,ee)),sr(cr,uo(64,C,ee)))}function ya(ee,it,cr){let In=O,Ka=F;O=it,F=cr,On(ee),O=In,F=Ka}function Ls(ee,it){let cr=Q;for(;cr&&ee.parent.kind===257;)cr.continueTarget=it,cr=cr.next,ee=ee.parent;return it}function yc(ee){let it=Ls(ee,Qn()),cr=Dr(),In=Dr();sr(it,C),C=it,Eo(ee.expression,cr,In),C=$o(cr),ya(ee.statement,In,it),sr(it,C),C=$o(In)}function Cn(ee){let it=Qn(),cr=Ls(ee,Dr()),In=Dr();sr(it,C),C=it,ya(ee.statement,In,cr),sr(cr,C),C=$o(cr),Eo(ee.expression,it,In),C=$o(In)}function Es(ee){let it=Ls(ee,Qn()),cr=Dr(),In=Dr(),Ka=Dr();On(ee.initializer),sr(it,C),C=it,Eo(ee.condition,cr,Ka),C=$o(cr),ya(ee.statement,Ka,In),sr(In,C),C=$o(In),On(ee.incrementor),sr(it,C),C=$o(Ka)}function Dt(ee){let it=Ls(ee,Qn()),cr=Dr();On(ee.expression),sr(it,C),C=it,ee.kind===251&&On(ee.awaitModifier),sr(cr,C),On(ee.initializer),ee.initializer.kind!==262&&xr(ee.initializer),ya(ee.statement,cr,it),sr(it,C),C=$o(cr)}function ur(ee){let it=Dr(),cr=Dr(),In=Dr();Eo(ee.expression,it,cr),C=$o(it),On(ee.thenStatement),sr(In,C),C=$o(cr),On(ee.elseStatement),sr(In,C),C=$o(In)}function Ee(ee){let it=ae;ae=!0,On(ee.expression),ae=it,ee.kind===254&&(re=!0,M&&sr(M,C)),C=Ce,_e=!0}function Bt(ee){for(let it=Q;it;it=it.next)if(it.name===ee)return it}function ye(ee,it,cr){let In=ee.kind===253?it:cr;In&&(sr(In,C),C=Ce,_e=!0)}function et(ee){if(On(ee.label),ee.label){let it=Bt(ee.label.escapedText);it&&(it.referenced=!0,ye(ee,it.breakTarget,it.continueTarget))}else ye(ee,O,F)}function Ct(ee){let it=M,cr=G,In=Dr(),Ka=Dr(),Ws=Dr();if(ee.finallyBlock&&(M=Ka),sr(Ws,C),G=Ws,On(ee.tryBlock),sr(In,C),ee.catchClause&&(C=$o(Ws),Ws=Dr(),sr(Ws,C),G=Ws,On(ee.catchClause),sr(In,C)),M=it,G=cr,ee.finallyBlock){let Xa=Dr();Xa.antecedent=go(go(In.antecedent,Ws.antecedent),Ka.antecedent),C=Xa,On(ee.finallyBlock),C.flags&1?C=Ce:(M&&Ka.antecedent&&sr(M,Ko(Xa,Ka.antecedent,C)),G&&Ws.antecedent&&sr(G,Ko(Xa,Ws.antecedent,C)),C=In.antecedent?Ko(Xa,In.antecedent,C):Ce)}else C=$o(In)}function Ot(ee){let it=Dr();On(ee.expression);let cr=O,In=Z;O=it,Z=C,On(ee.caseBlock),sr(it,C);let Ka=X(ee.caseBlock.clauses,Ws=>Ws.kind===298);ee.possiblyExhaustive=!Ka&&!it.antecedent,Ka||sr(it,Wa(Z,ee,0,0)),O=cr,Z=In,C=$o(it)}function ar(ee){let it=ee.clauses,cr=ee.parent.expression.kind===112||We(ee.parent.expression),In=Ce;for(let Ka=0;KaP_(cr)||Xu(cr))}function Ys(ee){ee.flags&33554432&&!Uo(ee)?ee.flags|=128:ee.flags&=-129}function ec(ee){if(Ys(ee),Gm(ee))if(ko(ee,32)&&Er(ee,x.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),Dme(ee))Ss(ee);else{let it;if(ee.name.kind===11){let{text:In}=ee.name;it=oF(In),it===void 0&&Er(ee.name,x.Pattern_0_can_have_at_most_one_Asterisk_character,In)}let cr=gn(ee,512,110735);t.patternAmbientModules=jt(t.patternAmbientModules,it&&!Ni(it)?{pattern:it,symbol:cr}:void 0)}else{let it=Ss(ee);if(it!==0){let{symbol:cr}=ee;cr.constEnumOnlyModule=!(cr.flags&304)&&it===2&&cr.constEnumOnlyModule!==!1}}}function Ss(ee){let it=KT(ee),cr=it!==0;return gn(ee,cr?512:1024,cr?110735:0),it}function Mp(ee){let it=ut(131072,ve(ee));je(it,ee,131072);let cr=ut(2048,"__type");je(cr,ee,2048),cr.members=ic(),cr.members.set(it.escapedName,it)}function Cp(ee){return bs(ee,4096,"__object")}function uu(ee){return bs(ee,4096,"__jsxAttributes")}function $a(ee,it,cr){return gn(ee,it,cr)}function bs(ee,it,cr){let In=ut(it,cr);return it&106508&&(In.parent=u.symbol),je(In,ee,it),In}function V_(ee,it,cr){switch(f.kind){case 268:nt(ee,it,cr);break;case 308:if(Lg(u)){nt(ee,it,cr);break}default:$.assertNode(f,vb),f.locals||(f.locals=ic(),cn(f)),Ve(f.locals,void 0,ee,it,cr)}}function Nu(){if(!g)return;let ee=u,it=y,cr=f,In=c,Ka=C;for(let Ws of g){let Xa=Ws.parent.parent;u=lre(Xa)||t,f=yv(Xa)||t,C=wb(2,void 0,void 0),c=Ws,On(Ws.typeExpression);let ks=cs(Ws);if((zH(Ws)||!Ws.fullName)&&ks&&sH(ks.parent)){let cp=D0(ks.parent);if(cp){Hg(t.symbol,ks.parent,cp,!!fn(ks,pf=>no(pf)&&pf.name.escapedText==="prototype"),!1);let Cc=u;switch(UG(ks.parent)){case 1:case 2:Lg(t)?u=t:u=void 0;break;case 4:u=ks.parent.expression;break;case 3:u=ks.parent.expression.name;break;case 5:u=CP(t,ks.parent.expression)?t:no(ks.parent.expression)?ks.parent.expression.name:ks.parent.expression;break;case 0:return $.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}u&&nt(Ws,524288,788968),u=Cc}}else zH(Ws)||!Ws.fullName||Ws.fullName.kind===80?(c=Ws.parent,V_(Ws,524288,788968)):On(Ws.fullName)}u=ee,y=it,f=cr,c=In,C=Ka}function kc(){if(T===void 0)return;let ee=u,it=y,cr=f,In=c,Ka=C;for(let Ws of T){let Xa=iP(Ws),ks=Xa?lre(Xa):void 0,cp=Xa?yv(Xa):void 0;u=ks||t,f=cp||t,C=wb(2,void 0,void 0),c=Ws,On(Ws.importClause)}u=ee,y=it,f=cr,c=In,C=Ka}function o_(ee){if(!t.parseDiagnostics.length&&!(ee.flags&33554432)&&!(ee.flags&16777216)&&!U6e(ee)){let it=aA(ee);if(it===void 0)return;le&&it>=119&&it<=127?t.bindDiagnostics.push(Be(ee,Gy(ee),du(ee))):it===135?yd(t)&&vre(ee)?t.bindDiagnostics.push(Be(ee,x.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,du(ee))):ee.flags&65536&&t.bindDiagnostics.push(Be(ee,x.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,du(ee))):it===127&&ee.flags&16384&&t.bindDiagnostics.push(Be(ee,x.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,du(ee)))}}function Gy(ee){return Cf(ee)?x.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?x.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:x.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function _s(ee){ee.escapedText==="#constructor"&&(t.parseDiagnostics.length||t.bindDiagnostics.push(Be(ee,x.constructor_is_a_reserved_word,du(ee))))}function sc(ee){le&&jh(ee.left)&&zT(ee.operatorToken.kind)&&Ql(ee,ee.left)}function sl(ee){le&&ee.variableDeclaration&&Ql(ee,ee.variableDeclaration.name)}function Yc(ee){if(le&&ee.expression.kind===80){let it=$4(t,ee.expression);t.bindDiagnostics.push(md(t,it.start,it.length,x.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Ar(ee){return ct(ee)&&(ee.escapedText==="eval"||ee.escapedText==="arguments")}function Ql(ee,it){if(it&&it.kind===80){let cr=it;if(Ar(cr)){let In=$4(t,it);t.bindDiagnostics.push(md(t,In.start,In.length,Gp(ee),Zi(cr)))}}}function Gp(ee){return Cf(ee)?x.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t.externalModuleIndicator?x.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:x.Invalid_use_of_0_in_strict_mode}function N_(ee){le&&!(ee.flags&33554432)&&Ql(ee,ee.name)}function lf(ee){return Cf(ee)?x.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?x.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:x.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}function Yu(ee){if(a<2&&f.kind!==308&&f.kind!==268&&!RR(f)){let it=$4(t,ee);t.bindDiagnostics.push(md(t,it.start,it.length,lf(ee)))}}function Hp(ee){le&&Ql(ee,ee.operand)}function H(ee){le&&(ee.operator===46||ee.operator===47)&&Ql(ee,ee.operand)}function st(ee){le&&Er(ee,x.with_statements_are_not_allowed_in_strict_mode)}function zt(ee){le&&$c(n)>=2&&(MPe(ee.statement)||h_(ee.statement))&&Er(ee.label,x.A_label_is_not_allowed_here)}function Er(ee,it,...cr){let In=gS(t,ee.pos);t.bindDiagnostics.push(md(t,In.start,In.length,it,...cr))}function jn(ee,it,cr){So(ee,it,it,cr)}function So(ee,it,cr,In){Di(ee,{pos:oC(it,t),end:cr.end},In)}function Di(ee,it,cr){let In=md(t,it.pos,it.end-it.pos,cr);ee?t.bindDiagnostics.push(In):t.bindSuggestionDiagnostics=jt(t.bindSuggestionDiagnostics,{...In,category:2})}function On(ee){if(!ee)return;xl(ee,c),hi&&(ee.tracingPath=t.path);let it=le;if(xc(ee),ee.kind>166){let cr=c;c=ee;let In=Bye(ee);In===0?Qe(ee):ke(ee,In),c=cr}else{let cr=c;ee.kind===1&&(c=ee),ua(ee),c=cr}le=it}function ua(ee){if(hy(ee))if(Ei(ee))for(let it of ee.jsDoc)On(it);else for(let it of ee.jsDoc)xl(it,ee),vA(it,!1)}function va(ee){if(!le)for(let it of ee){if(!yS(it))return;if(Bl(it)){le=!0;return}}}function Bl(ee){let it=XI(t,ee.expression);return it==='"use strict"'||it==="'use strict'"}function xc(ee){switch(ee.kind){case 80:if(ee.flags&4096){let Xa=ee.parent;for(;Xa&&!n1(Xa);)Xa=Xa.parent;V_(Xa,524288,788968);break}case 110:return C&&(Vt(ee)||c.kind===305)&&(ee.flowNode=C),o_(ee);case 167:C&&Tre(ee)&&(ee.flowNode=C);break;case 237:case 108:ee.flowNode=C;break;case 81:return _s(ee);case 212:case 213:let it=ee;C&&St(it)&&(it.flowNode=C),N6e(it)&&nd(it),Ei(it)&&t.commonJsModuleIndicator&&Fx(it)&&!Nie(f,"module")&&Ve(t.locals,void 0,it.expression,134217729,111550);break;case 227:switch(m_(ee)){case 1:br(ee);break;case 2:Vn(ee);break;case 3:Kp(ee.left,ee);break;case 6:Mu(ee);break;case 4:el(ee);break;case 5:let Xa=ee.left.expression;if(Ei(ee)&&ct(Xa)){let ks=Nie(f,Xa.escapedText);if(Sre(ks?.valueDeclaration)){el(ee);break}}If(ee);break;case 0:break;default:$.fail("Unknown binary expression special property assignment kind")}return sc(ee);case 300:return sl(ee);case 221:return Yc(ee);case 226:return Hp(ee);case 225:return H(ee);case 255:return st(ee);case 257:return zt(ee);case 198:k=!0;return;case 183:break;case 169:return fo(ee);case 170:return Ft(ee);case 261:return xe(ee);case 209:return ee.flowNode=C,xe(ee);case 173:case 172:return ep(ee);case 304:case 305:return wn(ee,4,0);case 307:return wn(ee,8,900095);case 180:case 181:case 182:return gn(ee,131072,0);case 175:case 174:return wn(ee,8192|(ee.questionToken?16777216:0),r1(ee)?0:103359);case 263:return Nr(ee);case 177:return gn(ee,16384,0);case 178:return wn(ee,32768,46015);case 179:return wn(ee,65536,78783);case 185:case 318:case 324:case 186:return Mp(ee);case 188:case 323:case 201:return W_(ee);case 333:return Rn(ee);case 211:return Cp(ee);case 219:case 220:return Mr(ee);case 214:switch(m_(ee)){case 7:return vy(ee);case 8:return rt(ee);case 9:return Dp(ee);case 0:break;default:return $.fail("Unknown call expression assignment declaration kind")}Ei(ee)&&Iv(ee);break;case 232:case 264:return le=!0,Hy(ee);case 265:return V_(ee,64,788872);case 266:return V_(ee,524288,788968);case 267:return US(ee);case 268:return ec(ee);case 293:return uu(ee);case 292:return $a(ee,4,0);case 272:case 275:case 277:case 282:return gn(ee,2097152,2097152);case 271:return Gg(ee);case 274:return yy(ee);case 279:return Wf(ee);case 278:return a_(ee);case 308:return va(ee.statements),g_();case 242:if(!RR(ee.parent))return;case 269:return va(ee.statements);case 342:if(ee.parent.kind===324)return Ft(ee);if(ee.parent.kind!==323)break;case 349:let Ka=ee,Ws=Ka.isBracketed||Ka.typeExpression&&Ka.typeExpression.type.kind===317?16777220:4;return gn(Ka,Ws,0);case 347:case 339:case 341:return(g||(g=[])).push(ee);case 340:return On(ee.typeExpression);case 352:return(T||(T=[])).push(ee)}}function ep(ee){let it=Mh(ee),cr=it?98304:4,In=it?13247:0;return wn(ee,cr|(ee.questionToken?16777216:0),In)}function W_(ee){return bs(ee,2048,"__type")}function g_(){if(Ys(t),yd(t))xu();else if(h0(t)){xu();let ee=t.symbol;Ve(t.symbol.exports,t.symbol,t,4,-1),t.symbol=ee}}function xu(){bs(t,512,`"${Qm(t.fileName)}"`)}function a_(ee){if(!u.symbol||!u.symbol.exports)bs(ee,111551,ve(ee));else{let it=QG(ee)?2097152:4,cr=Ve(u.symbol.exports,u.symbol,ee,it,-1);ee.isExportEquals&&SU(cr,ee)}}function Gg(ee){Pt(ee.modifiers)&&t.bindDiagnostics.push(Be(ee,x.Modifiers_cannot_appear_here));let it=Ta(ee.parent)?yd(ee.parent)?ee.parent.isDeclarationFile?void 0:x.Global_module_exports_may_only_appear_in_declaration_files:x.Global_module_exports_may_only_appear_in_module_files:x.Global_module_exports_may_only_appear_at_top_level;it?t.bindDiagnostics.push(Be(ee,it)):(t.symbol.globalExports=t.symbol.globalExports||ic(),Ve(t.symbol.globalExports,t.symbol,ee,2097152,2097152))}function Wf(ee){!u.symbol||!u.symbol.exports?bs(ee,8388608,ve(ee)):ee.exportClause?Db(ee.exportClause)&&(xl(ee.exportClause,ee),Ve(u.symbol.exports,u.symbol,ee.exportClause,2097152,2097152)):Ve(u.symbol.exports,u.symbol,ee,8388608,0)}function yy(ee){ee.name&&gn(ee,2097152,2097152)}function Wh(ee){return t.externalModuleIndicator&&t.externalModuleIndicator!==!0?!1:(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=ee,t.externalModuleIndicator||xu()),!0)}function rt(ee){if(!Wh(ee))return;let it=Nd(ee.arguments[0],void 0,(cr,In)=>(In&&je(In,cr,67110400),In));it&&Ve(it.exports,it,ee,1048580,0)}function br(ee){if(!Wh(ee))return;let it=Nd(ee.left.expression,void 0,(cr,In)=>(In&&je(In,cr,67110400),In));if(it){let In=Pre(ee.right)&&(q4(ee.left.expression)||Fx(ee.left.expression))?2097152:1048580;xl(ee.left,ee),Ve(it.exports,it,ee.left,In,0)}}function Vn(ee){if(!Wh(ee))return;let it=BG(ee.right);if(khe(it)||u===t&&CP(t,it))return;if(Lc(it)&&ht(it.properties,im)){X(it.properties,Ga);return}let cr=QG(ee)?2097152:1049092,In=Ve(t.symbol.exports,t.symbol,ee,cr|67108864,0);SU(In,ee)}function Ga(ee){Ve(t.symbol.exports,t.symbol,ee,69206016,0)}function el(ee){if($.assert(Ei(ee)),wi(ee)&&no(ee.left)&&Aa(ee.left.name)||no(ee)&&Aa(ee.name))return;let cr=Hm(ee,!1,!1);switch(cr.kind){case 263:case 219:let In=cr.symbol;if(wi(cr.parent)&&cr.parent.operatorToken.kind===64){let Xa=cr.parent.left;nP(Xa)&&_C(Xa.expression)&&(In=Gh(Xa.expression.expression,_))}In&&In.valueDeclaration&&(In.members=In.members||ic(),$T(ee)?tl(ee,In,In.members):Ve(In.members,In,ee,67108868,0),je(In,In.valueDeclaration,32));break;case 177:case 173:case 175:case 178:case 179:case 176:let Ka=cr.parent,Ws=oc(cr)?Ka.symbol.exports:Ka.symbol.members;$T(ee)?tl(ee,Ka.symbol,Ws):Ve(Ws,Ka.symbol,ee,67108868,0,!0);break;case 308:if($T(ee))break;cr.commonJsModuleIndicator?Ve(cr.symbol.exports,cr.symbol,ee,1048580,0):gn(ee,1,111550);break;case 268:break;default:$.failBadSyntaxKind(cr)}}function tl(ee,it,cr){Ve(cr,it,ee,4,0,!0,!0),Uc(ee,it)}function Uc(ee,it){it&&(it.assignmentDeclarationMembers||(it.assignmentDeclarationMembers=new Map)).set(hl(ee),ee)}function nd(ee){ee.expression.kind===110?el(ee):nP(ee)&&ee.parent.parent.kind===308&&(_C(ee.expression)?Kp(ee,ee.parent):uf(ee))}function Mu(ee){xl(ee.left,ee),xl(ee.right,ee),Pb(ee.left.expression,ee.left,!1,!0)}function Dp(ee){let it=Gh(ee.arguments[0].expression);it&&it.valueDeclaration&&je(it,it.valueDeclaration,32),Ym(ee,it,!0)}function Kp(ee,it){let cr=ee.expression,In=cr.expression;xl(In,cr),xl(cr,ee),xl(ee,it),Pb(In,ee,!0,!0)}function vy(ee){let it=Gh(ee.arguments[0]),cr=ee.parent.parent.kind===308;it=Hg(it,ee.arguments[0],cr,!1,!1),Ym(ee,it,!1)}function If(ee){var it;let cr=Gh(ee.left.expression,f)||Gh(ee.left.expression,u);if(!Ei(ee)&&!O6e(cr))return;let In=oL(ee.left);if(!(ct(In)&&((it=Nie(u,In.escapedText))==null?void 0:it.flags)&2097152))if(xl(ee.left,ee),xl(ee.right,ee),ct(ee.left.expression)&&u===t&&CP(t,ee.left.expression))br(ee);else if($T(ee)){bs(ee,67108868,"__computed");let Ka=Hg(cr,ee.left.expression,D0(ee.left),!1,!1);Uc(ee,Ka)}else uf(Ba(ee.left,V4))}function uf(ee){$.assert(!ct(ee)),xl(ee.expression,ee),Pb(ee.expression,ee,!1,!1)}function Hg(ee,it,cr,In,Ka){return ee?.flags&2097152||(cr&&!In&&(ee=Nd(it,ee,(ks,cp,Cc)=>{if(cp)return je(cp,ks,67110400),cp;{let pf=Cc?Cc.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=ic());return Ve(pf,Cc,ks,67110400,110735)}})),Ka&&ee&&ee.valueDeclaration&&je(ee,ee.valueDeclaration,32)),ee}function Ym(ee,it,cr){if(!it||!Wx(it))return;let In=cr?it.members||(it.members=ic()):it.exports||(it.exports=ic()),Ka=0,Ws=0;lu(zO(ee))?(Ka=8192,Ws=103359):Js(ee)&&J4(ee)&&(Pt(ee.arguments[2].properties,Xa=>{let ks=cs(Xa);return!!ks&&ct(ks)&&Zi(ks)==="set"})&&(Ka|=65540,Ws|=78783),Pt(ee.arguments[2].properties,Xa=>{let ks=cs(Xa);return!!ks&&ct(ks)&&Zi(ks)==="get"})&&(Ka|=32772,Ws|=46015)),Ka===0&&(Ka=4,Ws=0),Ve(In,it,ee,Ka|67108864,Ws&-67108865)}function D0(ee){return wi(ee.parent)?Gx(ee.parent).parent.kind===308:ee.parent.parent.kind===308}function Pb(ee,it,cr,In){let Ka=Gh(ee,f)||Gh(ee,u),Ws=D0(it);Ka=Hg(Ka,it.expression,Ws,cr,In),Ym(it,Ka,cr)}function Wx(ee){if(ee.flags&1072)return!0;let it=ee.valueDeclaration;if(it&&Js(it))return!!zO(it);let cr=it?Oo(it)?it.initializer:wi(it)?it.right:no(it)&&wi(it.parent)?it.parent.right:void 0:void 0;if(cr=cr&&BG(cr),cr){let In=_C(Oo(it)?it.name:wi(it)?it.left:it);return!!_A(wi(cr)&&(cr.operatorToken.kind===57||cr.operatorToken.kind===61)?cr.right:cr,In)}return!1}function Gx(ee){for(;wi(ee.parent);)ee=ee.parent;return ee.parent}function Gh(ee,it=u){if(ct(ee))return Nie(it,ee.escapedText);{let cr=Gh(ee.expression);return cr&&cr.exports&&cr.exports.get(BT(ee))}}function Nd(ee,it,cr){if(CP(t,ee))return t.symbol;if(ct(ee))return cr(ee,Gh(ee),it);{let In=Nd(ee.expression,it,cr),Ka=$G(ee);return Aa(Ka)&&$.fail("unexpected PrivateIdentifier"),cr(Ka,In&&In.exports&&In.exports.get(BT(ee)),In)}}function Iv(ee){!t.commonJsModuleIndicator&&$h(ee,!1)&&Wh(ee)}function Hy(ee){if(ee.kind===264)V_(ee,32,899503);else{let Ka=ee.name?ee.name.escapedText:"__class";bs(ee,32,Ka),ee.name&&De.add(ee.name.escapedText)}let{symbol:it}=ee,cr=ut(4194308,"prototype"),In=it.exports.get(cr.escapedName);In&&(ee.name&&xl(ee.name,ee),t.bindDiagnostics.push(Be(In.declarations[0],x.Duplicate_identifier_0,vp(cr)))),it.exports.set(cr.escapedName,cr),cr.parent=it}function US(ee){return lA(ee)?V_(ee,128,899967):V_(ee,256,899327)}function xe(ee){if(le&&Ql(ee,ee.name),!$s(ee.name)){let it=ee.kind===261?ee:ee.parent.parent;Ei(ee)&&rP(it)&&!mv(ee)&&!(Ra(ee)&32)?gn(ee,2097152,2097152):Eme(ee)?V_(ee,2,111551):hA(ee)?gn(ee,1,111551):gn(ee,1,111550)}}function Ft(ee){if(!(ee.kind===342&&u.kind!==324)&&(le&&!(ee.flags&33554432)&&Ql(ee,ee.name),$s(ee.name)?bs(ee,1,"__"+ee.parent.parameters.indexOf(ee)):gn(ee,1,111551),ne(ee,ee.parent))){let it=ee.parent.parent;Ve(it.symbol.members,it.symbol,ee,4|(ee.questionToken?16777216:0),0)}}function Nr(ee){!t.isDeclarationFile&&!(ee.flags&33554432)&&CU(ee)&&(me|=4096),N_(ee),le?(Yu(ee),V_(ee,16,110991)):gn(ee,16,110991)}function Mr(ee){!t.isDeclarationFile&&!(ee.flags&33554432)&&CU(ee)&&(me|=4096),C&&(ee.flowNode=C),N_(ee);let it=ee.name?ee.name.escapedText:"__function";return bs(ee,16,it)}function wn(ee,it,cr){return!t.isDeclarationFile&&!(ee.flags&33554432)&&CU(ee)&&(me|=4096),C&&mre(ee)&&(ee.flowNode=C),$T(ee)?bs(ee,it,"__computed"):gn(ee,it,cr)}function Yn(ee){let it=fn(ee,cr=>cr.parent&&yP(cr.parent)&&cr.parent.extendsType===cr);return it&&it.parent}function fo(ee){if(c1(ee.parent)){let it=Ire(ee.parent);it?($.assertNode(it,vb),it.locals??(it.locals=ic()),Ve(it.locals,void 0,ee,262144,526824)):gn(ee,262144,526824)}else if(ee.parent.kind===196){let it=Yn(ee.parent);it?($.assertNode(it,vb),it.locals??(it.locals=ic()),Ve(it.locals,void 0,ee,262144,526824)):bs(ee,262144,ve(ee))}else gn(ee,262144,526824)}function Mo(ee){let it=KT(ee);return it===1||it===2&&dC(n)}function Ea(ee){if(!(C.flags&1))return!1;if(C===Ce&&(mG(ee)&&ee.kind!==243||ee.kind===264||Jpt(ee,n)||ee.kind===268&&Mo(ee))&&(C=Ae,!n.allowUnreachableCode)){let cr=I4e(n)&&!(ee.flags&33554432)&&(!h_(ee)||!!(dd(ee.declarationList)&7)||ee.declarationList.declarations.some(In=>!!In.initializer));Xor(ee,n,(In,Ka)=>So(cr,In,Ka,x.Unreachable_code_detected))}return!0}}function Jpt(t,n){return t.kind===267&&(!lA(t)||dC(n))}function Xor(t,n,a){if(fa(t)&&c(t)&&Vs(t.parent)){let{statements:_}=t.parent,f=Xhe(_,t);ou(f,c,(y,g)=>a(f[y],f[g-1]))}else a(t,t);function c(_){return!i_(_)&&!u(_)&&!(h_(_)&&!(dd(_)&7)&&_.declarationList.declarations.some(f=>!f.initializer))}function u(_){switch(_.kind){case 265:case 266:return!0;case 268:return KT(_)!==1;case 267:return!Jpt(_,n);default:return!1}}}function CP(t,n){let a=0,c=u0();for(c.enqueue(n);!c.isEmpty()&&a<100;){if(a++,n=c.dequeue(),q4(n)||Fx(n))return!0;if(ct(n)){let u=Nie(t,n.escapedText);if(u&&u.valueDeclaration&&Oo(u.valueDeclaration)&&u.valueDeclaration.initializer){let _=u.valueDeclaration.initializer;c.enqueue(_),of(_,!0)&&(c.enqueue(_.left),c.enqueue(_.right))}}}return!1}function Bye(t){switch(t.kind){case 232:case 264:case 267:case 211:case 188:case 323:case 293:return 1;case 265:return 65;case 268:case 266:case 201:case 182:return 33;case 308:return 37;case 178:case 179:case 175:if(mre(t))return 173;case 177:case 263:case 174:case 180:case 324:case 318:case 185:case 181:case 186:case 176:return 45;case 352:return 37;case 219:case 220:return 61;case 269:return 4;case 173:return t.initializer?4:0;case 300:case 249:case 250:case 251:case 270:return 34;case 242:return Rs(t.parent)||n_(t.parent)?0:34}return 0}function Nie(t,n){var a,c,u,_;let f=(c=(a=Ci(t,vb))==null?void 0:a.locals)==null?void 0:c.get(n);if(f)return f.exportSymbol??f;if(Ta(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(n))return t.jsGlobalAugmentations.get(n);if(gv(t))return(_=(u=t.symbol)==null?void 0:u.exports)==null?void 0:_.get(n)}function x8e(t,n,a,c,u,_,f,y,g,k){return T;function T(C=()=>!0){let O=[],F=[];return{walkType:Oe=>{try{return M(Oe),{visitedTypes:sS(O),visitedSymbols:sS(F)}}finally{Cs(O),Cs(F)}},walkSymbol:Oe=>{try{return le(Oe),{visitedTypes:sS(O),visitedSymbols:sS(F)}}finally{Cs(O),Cs(F)}}};function M(Oe){if(!(!Oe||O[Oe.id]||(O[Oe.id]=Oe,le(Oe.symbol)))){if(Oe.flags&524288){let ue=Oe,De=ue.objectFlags;De&4&&U(Oe),De&32&&re(Oe),De&3&&_e(Oe),De&24&&me(ue)}Oe.flags&262144&&J(Oe),Oe.flags&3145728&&G(Oe),Oe.flags&4194304&&Z(Oe),Oe.flags&8388608&&Q(Oe)}}function U(Oe){M(Oe.target),X(k(Oe),M)}function J(Oe){M(y(Oe))}function G(Oe){X(Oe.types,M)}function Z(Oe){M(Oe.type)}function Q(Oe){M(Oe.objectType),M(Oe.indexType),M(Oe.constraint)}function re(Oe){M(Oe.typeParameter),M(Oe.constraintType),M(Oe.templateType),M(Oe.modifiersType)}function ae(Oe){let be=n(Oe);be&&M(be.type),X(Oe.typeParameters,M);for(let ue of Oe.parameters)le(ue);M(t(Oe)),M(a(Oe))}function _e(Oe){me(Oe),X(Oe.typeParameters,M),X(c(Oe),M),M(Oe.thisType)}function me(Oe){let be=u(Oe);for(let ue of be.indexInfos)M(ue.keyType),M(ue.type);for(let ue of be.callSignatures)ae(ue);for(let ue of be.constructSignatures)ae(ue);for(let ue of be.properties)le(ue)}function le(Oe){if(!Oe)return!1;let be=hc(Oe);if(F[be])return!1;if(F[be]=Oe,!C(Oe))return!0;let ue=_(Oe);return M(ue),Oe.exports&&Oe.exports.forEach(le),X(Oe.declarations,De=>{if(De.type&&De.type.kind===187){let Ce=De.type,Ae=f(g(Ce.exprName));le(Ae)}}),!1}}}var QT={};d(QT,{RelativePreference:()=>Vpt,countPathComponents:()=>Rie,forEachFileNameOfModule:()=>Zpt,getLocalModuleSpecifierBetweenFileNames:()=>iar,getModuleSpecifier:()=>tar,getModuleSpecifierPreferences:()=>_K,getModuleSpecifiers:()=>Hpt,getModuleSpecifiersWithCacheInfo:()=>Kpt,getNodeModulesPackageName:()=>rar,tryGetJSExtensionForFile:()=>Uye,tryGetModuleSpecifiersFromCache:()=>nar,tryGetRealFileNameForNonJsDeclarationFileName:()=>r_t,updateModuleSpecifier:()=>ear});var Yor=pd(t=>{try{let n=t.indexOf("/");if(n!==0)return new RegExp(t);let a=t.lastIndexOf("/");if(n===a)return new RegExp(t);for(;(n=t.indexOf("/",n+1))!==a;)if(t[n-1]!=="\\")return new RegExp(t);let c=t.substring(a+1).replace(/[^iu]/g,"");return t=t.substring(1,a),new RegExp(t,c)}catch{return}}),Vpt=(t=>(t[t.Relative=0]="Relative",t[t.NonRelative=1]="NonRelative",t[t.Shortest=2]="Shortest",t[t.ExternalNonRelative=3]="ExternalNonRelative",t))(Vpt||{});function _K({importModuleSpecifierPreference:t,importModuleSpecifierEnding:n,autoImportSpecifierExcludeRegexes:a},c,u,_,f){let y=g();return{excludeRegexes:a,relativePreference:f!==void 0?vt(f)?0:1:t==="relative"?0:t==="non-relative"?1:t==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:k=>{let T=zye(_,c,u),C=k!==T?g(k):y,O=km(u);if((k??T)===99&&3<=O&&O<=99)return ML(u,_.fileName)?[3,2]:[2];if(km(u)===1)return C===2?[2,1]:[1,2];let F=ML(u,_.fileName);switch(C){case 2:return F?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return F?[1,0,3,2]:[1,0,2];case 0:return F?[0,1,3,2]:[0,1,2];default:$.assertNever(C)}}};function g(k){if(f!==void 0){if(jx(f))return 2;if(au(f,"/index"))return 1}return z4e(n,k??zye(_,c,u),u,Ox(_)?_:void 0)}}function ear(t,n,a,c,u,_,f={}){let y=Wpt(t,n,a,c,u,_K({},u,t,n,_),{},f);if(y!==_)return y}function tar(t,n,a,c,u,_={}){return Wpt(t,n,a,c,u,_K({},u,t,n),{},_)}function rar(t,n,a,c,u,_={}){let f=Fie(n.fileName,c),y=Xpt(f,a,c,u,t,_);return Je(y,g=>k8e(g,f,n,c,t,u,!0,_.overrideImportMode))}function Wpt(t,n,a,c,u,_,f,y={}){let g=Fie(a,u),k=Xpt(g,c,u,f,t,y);return Je(k,T=>k8e(T,g,n,u,t,f,void 0,y.overrideImportMode))||T8e(c,g,t,u,y.overrideImportMode||zye(n,u,t),_)}function nar(t,n,a,c,u={}){let _=Gpt(t,n,a,c,u);return _[1]&&{kind:_[0],moduleSpecifiers:_[1],computedWithoutCache:!1}}function Gpt(t,n,a,c,u={}){var _;let f=yG(t);if(!f)return j;let y=(_=a.getModuleSpecifierCache)==null?void 0:_.call(a),g=y?.get(n.path,f.path,c,u);return[g?.kind,g?.moduleSpecifiers,f,g?.modulePaths,y]}function Hpt(t,n,a,c,u,_,f={}){return Kpt(t,n,a,c,u,_,f,!1).moduleSpecifiers}function Kpt(t,n,a,c,u,_,f={},y){let g=!1,k=lar(t,n);if(k)return{kind:"ambient",moduleSpecifiers:y&&Oie(k,_.autoImportSpecifierExcludeRegexes)?j:[k],computedWithoutCache:g};let[T,C,O,F,M]=Gpt(t,c,u,_,f);if(C)return{kind:T,moduleSpecifiers:C,computedWithoutCache:g};if(!O)return{kind:void 0,moduleSpecifiers:j,computedWithoutCache:g};g=!0,F||(F=Ypt(Fie(c.fileName,u),O.originalFileName,u,a,f));let U=oar(F,a,c,u,_,f,y);return M?.set(c.path,O.path,_,f,U.kind,F,U.moduleSpecifiers),U}function iar(t,n,a,c,u,_={}){let f=Fie(t.fileName,c),y=_.overrideImportMode??t.impliedNodeFormat;return T8e(n,f,a,c,y,_K(u,c,a,t))}function oar(t,n,a,c,u,_={},f){let y=Fie(a.fileName,c),g=_K(u,c,n,a),k=Ox(a)&&X(t,U=>X(c.getFileIncludeReasons().get(wl(U.path,c.getCurrentDirectory(),y.getCanonicalFileName)),J=>{if(J.kind!==3||J.file!==a.path)return;let G=c.getModeForResolutionAtIndex(a,J.index),Z=_.overrideImportMode??c.getDefaultResolutionModeForFile(a);if(G!==Z&&G!==void 0&&Z!==void 0)return;let Q=IK(a,J.index).text;return g.relativePreference!==1||!ch(Q)?Q:void 0}));if(k)return{kind:void 0,moduleSpecifiers:[k],computedWithoutCache:!0};let T=Pt(t,U=>U.isInNodeModules),C,O,F,M;for(let U of t){let J=U.isInNodeModules?k8e(U,y,a,c,n,u,void 0,_.overrideImportMode):void 0;if(J&&!(f&&Oie(J,g.excludeRegexes))&&(C=jt(C,J),U.isRedirect))return{kind:"node_modules",moduleSpecifiers:C,computedWithoutCache:!0};let G=T8e(U.path,y,n,c,_.overrideImportMode||a.impliedNodeFormat,g,U.isRedirect||!!J);!G||f&&Oie(G,g.excludeRegexes)||(U.isRedirect?F=jt(F,G):EO(G)?kC(G)?M=jt(M,G):O=jt(O,G):(f||!T||U.isInNodeModules)&&(M=jt(M,G)))}return O?.length?{kind:"paths",moduleSpecifiers:O,computedWithoutCache:!0}:F?.length?{kind:"redirect",moduleSpecifiers:F,computedWithoutCache:!0}:C?.length?{kind:"node_modules",moduleSpecifiers:C,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:M??j,computedWithoutCache:!0}}function Oie(t,n){return Pt(n,a=>{var c;return!!((c=Yor(a))!=null&&c.test(t))})}function Fie(t,n){t=za(t,n.getCurrentDirectory());let a=_d(n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():!0),c=mo(t);return{getCanonicalFileName:a,importingSourceFileName:t,sourceDirectory:c,canonicalSourceDirectory:a(c)}}function T8e(t,n,a,c,u,{getAllowedEndingsInPreferredOrder:_,relativePreference:f,excludeRegexes:y},g){let{baseUrl:k,paths:T,rootDirs:C}=a;if(g&&!T)return;let{sourceDirectory:O,canonicalSourceDirectory:F,getCanonicalFileName:M}=n,U=_(u),J=C&&_ar(C,t,O,M,U,a)||dK(Tx(lh(O,t,M)),U,a);if(!k&&!T&&!mH(a)||f===0)return g?void 0:J;let G=za(Ure(a,c)||k,c.getCurrentDirectory()),Z=C8e(t,G,M);if(!Z)return g?void 0:J;let Q=g?void 0:par(t,O,a,c,u,far(U)),re=g||Q===void 0?T&&e_t(Z,T,U,G,M,c,a):void 0;if(g)return re;let ae=Q??(re===void 0&&k!==void 0?dK(Z,U,a):re);if(!ae)return J;let _e=Oie(J,y),me=Oie(ae,y);if(!_e&&me)return J;if(_e&&!me||f===1&&!ch(ae))return ae;if(f===3&&!ch(ae)){let le=a.configFilePath?wl(mo(a.configFilePath),c.getCurrentDirectory(),n.getCanonicalFileName):n.getCanonicalFileName(c.getCurrentDirectory()),Oe=wl(t,le,M),be=Ca(F,le),ue=Ca(Oe,le);if(be&&!ue||!be&&ue)return ae;let De=E8e(c,mo(Oe)),Ce=E8e(c,O),Ae=!K4(c);return aar(De,Ce,Ae)?J:ae}return n_t(ae)||Rie(J)t.fileExists(Xi(a,"package.json"))?a:void 0)}function Zpt(t,n,a,c,u){var _,f;let y=UT(a),g=a.getCurrentDirectory(),k=a.isSourceOfProjectReferenceRedirect(n)?(_=a.getRedirectFromSourceFile(n))==null?void 0:_.outputDts:void 0,T=wl(n,g,y),C=a.redirectTargetsMap.get(T)||j,F=[...k?[k]:j,n,...C].map(Z=>za(Z,g)),M=!ht(F,QU);if(!c){let Z=X(F,Q=>!(M&&QU(Q))&&u(Q,k===Q));if(Z)return Z}let U=(f=a.getSymlinkCache)==null?void 0:f.call(a).getSymlinkedDirectoriesByRealpath(),J=za(n,g);return U&&Ab(a,mo(J),Z=>{let Q=U.get(r_(wl(Z,g,y)));if(Q)return rA(t,Z,y)?!1:X(F,re=>{if(!rA(re,Z,y))return;let ae=lh(Z,re,y);for(let _e of Q){let me=mb(_e,ae),le=u(me,re===k);if(M=!0,le)return le}})})||(c?X(F,Z=>M&&QU(Z)?void 0:u(Z,Z===k)):void 0)}function Xpt(t,n,a,c,u,_={}){var f;let y=wl(t.importingSourceFileName,a.getCurrentDirectory(),UT(a)),g=wl(n,a.getCurrentDirectory(),UT(a)),k=(f=a.getModuleSpecifierCache)==null?void 0:f.call(a);if(k){let C=k.get(y,g,c,_);if(C?.modulePaths)return C.modulePaths}let T=Ypt(t,n,a,u,_);return k&&k.setModulePaths(y,g,c,_,T),T}var sar=["dependencies","peerDependencies","optionalDependencies"];function car(t){let n;for(let a of sar){let c=t[a];c&&typeof c=="object"&&(n=go(n,Lu(c)))}return n}function Ypt(t,n,a,c,u){var _,f;let y=(_=a.getModuleResolutionCache)==null?void 0:_.call(a),g=(f=a.getSymlinkCache)==null?void 0:f.call(a);if(y&&g&&a.readFile&&!kC(t.importingSourceFileName)){$.type(a);let O=kz(y.getPackageJsonInfoCache(),a,{}),F=Cz(mo(t.importingSourceFileName),O);if(F){let M=car(F.contents.packageJsonContent);for(let U of M||j){let J=h3(U,Xi(F.packageDirectory,"package.json"),c,a,y,void 0,u.overrideImportMode);g.setSymlinksFromResolution(J.resolvedModule)}}}let k=new Map,T=!1;Zpt(t.importingSourceFileName,n,a,!0,(O,F)=>{let M=kC(O);k.set(O,{path:t.getCanonicalFileName(O),isRedirect:F,isInNodeModules:M}),T=T||M});let C=[];for(let O=t.canonicalSourceDirectory;k.size!==0;){let F=r_(O),M;k.forEach(({path:J,isRedirect:G,isInNodeModules:Z},Q)=>{Ca(J,F)&&((M||(M=[])).push({path:Q,isRedirect:G,isInNodeModules:Z}),k.delete(Q))}),M&&(M.length>1&&M.sort(Qpt),C.push(...M));let U=mo(O);if(U===O)break;O=U}if(k.size){let O=so(k.entries(),([F,{isRedirect:M,isInNodeModules:U}])=>({path:F,isRedirect:M,isInNodeModules:U}));O.length>1&&O.sort(Qpt),C.push(...O)}return C}function lar(t,n){var a;let c=(a=t.declarations)==null?void 0:a.find(f=>Cme(f)&&(!eP(f)||!vt(g0(f.name))));if(c)return c.name.text;let _=Wn(t.declarations,f=>{var y,g,k,T;if(!I_(f))return;let C=U(f);if(!((y=C?.parent)!=null&&y.parent&&wS(C.parent)&&Gm(C.parent.parent)&&Ta(C.parent.parent.parent)))return;let O=(T=(k=(g=C.parent.parent.symbol.exports)==null?void 0:g.get("export="))==null?void 0:k.valueDeclaration)==null?void 0:T.expression;if(!O)return;let F=n.getSymbolAtLocation(O);if(!F)return;if((F?.flags&2097152?n.getAliasedSymbol(F):F)===f.symbol)return C.parent.parent;function U(J){for(;J.flags&8;)J=J.parent;return J}})[0];if(_)return _.name.text}function e_t(t,n,a,c,u,_,f){for(let g in n)for(let k of n[g]){let T=Qs(k),C=C8e(T,c,u)??T,O=C.indexOf("*"),F=a.map(M=>({ending:M,value:dK(t,[M],f)}));if(Bx(C)&&F.push({ending:void 0,value:t}),O!==-1){let M=C.substring(0,O),U=C.substring(O+1);for(let{ending:J,value:G}of F)if(G.length>=M.length+U.length&&Ca(G,M)&&au(G,U)&&y({ending:J,value:G})){let Z=G.substring(M.length,G.length-U.length);if(!ch(Z))return Y4(g,Z)}}else if(Pt(F,M=>M.ending!==0&&C===M.value)||Pt(F,M=>M.ending===0&&C===M.value&&y(M)))return g}function y({ending:g,value:k}){return g!==0||k===dK(t,[g],f,_)}}function Lie(t,n,a,c,u,_,f,y,g,k){if(typeof _=="string"){let T=!K4(n),C=()=>n.getCommonSourceDirectory(),O=g&&h0e(a,t,T,C),F=g&&m0e(a,t,T,C),M=za(Xi(c,_),void 0),U=X4(a)?Qm(a)+Uye(a,t):void 0,J=k&&$4e(a);switch(y){case 0:if(U&&M1(U,M,T)===0||M1(a,M,T)===0||O&&M1(O,M,T)===0||F&&M1(F,M,T)===0)return{moduleFileToTry:u};break;case 1:if(J&&ug(a,M,T)){let re=lh(M,a,!1);return{moduleFileToTry:za(Xi(Xi(u,_),re),void 0)}}if(U&&ug(M,U,T)){let re=lh(M,U,!1);return{moduleFileToTry:za(Xi(Xi(u,_),re),void 0)}}if(!J&&ug(M,a,T)){let re=lh(M,a,!1);return{moduleFileToTry:za(Xi(Xi(u,_),re),void 0)}}if(O&&ug(M,O,T)){let re=lh(M,O,!1);return{moduleFileToTry:Xi(u,re)}}if(F&&ug(M,F,T)){let re=T4(lh(M,F,!1),$ye(F,t));return{moduleFileToTry:Xi(u,re)}}break;case 2:let G=M.indexOf("*"),Z=M.slice(0,G),Q=M.slice(G+1);if(J&&Ca(a,Z,T)&&au(a,Q,T)){let re=a.slice(Z.length,a.length-Q.length);return{moduleFileToTry:Y4(u,re)}}if(U&&Ca(U,Z,T)&&au(U,Q,T)){let re=U.slice(Z.length,U.length-Q.length);return{moduleFileToTry:Y4(u,re)}}if(!J&&Ca(a,Z,T)&&au(a,Q,T)){let re=a.slice(Z.length,a.length-Q.length);return{moduleFileToTry:Y4(u,re)}}if(O&&Ca(O,Z,T)&&au(O,Q,T)){let re=O.slice(Z.length,O.length-Q.length);return{moduleFileToTry:Y4(u,re)}}if(F&&Ca(F,Z,T)&&au(F,Q,T)){let re=F.slice(Z.length,F.length-Q.length),ae=Y4(u,re),_e=Uye(F,t);return _e?{moduleFileToTry:T4(ae,_e)}:void 0}break}}else{if(Array.isArray(_))return X(_,T=>Lie(t,n,a,c,u,T,f,y,g,k));if(typeof _=="object"&&_!==null){for(let T of Lu(_))if(T==="default"||f.indexOf(T)>=0||uK(f,T)){let C=_[T],O=Lie(t,n,a,c,u,C,f,y,g,k);if(O)return O}}}}function uar(t,n,a,c,u,_,f){return typeof _=="object"&&_!==null&&!Array.isArray(_)&&Iie(_)?X(Lu(_),y=>{let g=za(Xi(u,y),void 0),k=au(y,"/")?1:y.includes("*")?2:0;return Lie(t,n,a,c,g,_[y],f,k,!1,!1)}):Lie(t,n,a,c,u,_,f,0,!1,!1)}function par(t,n,a,c,u,_){var f,y,g;if(!c.readFile||!mH(a))return;let k=E8e(c,n);if(!k)return;let T=Xi(k,"package.json"),C=(y=(f=c.getPackageJsonInfoCache)==null?void 0:f.call(c))==null?void 0:y.getPackageJsonInfo(T);if(o8e(C)||!c.fileExists(T))return;let O=C?.contents.packageJsonContent||lH(c.readFile(T)),F=O?.imports;if(!F)return;let M=EC(a,u);return(g=X(Lu(F),U=>{if(!Ca(U,"#")||U==="#"||Ca(U,"#/"))return;let J=au(U,"/")?1:U.includes("*")?2:0;return Lie(a,c,t,k,U,F[U],M,J,!0,_)}))==null?void 0:g.moduleFileToTry}function _ar(t,n,a,c,u,_){let f=t_t(n,t,c);if(f===void 0)return;let y=t_t(a,t,c),g=an(y,T=>Cr(f,C=>Tx(lh(T,C,c)))),k=bx(g,bH);if(k)return dK(k,u,_)}function k8e({path:t,isRedirect:n},{getCanonicalFileName:a,canonicalSourceDirectory:c},u,_,f,y,g,k){if(!_.fileExists||!_.readFile)return;let T=Tne(t);if(!T)return;let O=_K(y,_,f,u).getAllowedEndingsInPreferredOrder(),F=t,M=!1;if(!g){let re=T.packageRootIndex,ae;for(;;){let{moduleFileToTry:_e,packageRootPath:me,blockedByExports:le,verbatimFromExports:Oe}=Q(re);if(km(f)!==1){if(le)return;if(Oe)return _e}if(me){F=me,M=!0;break}if(ae||(ae=_e),re=t.indexOf(Gl,re+1),re===-1){F=dK(ae,O,f,_);break}}}if(n&&!M)return;let U=_.getGlobalTypingsCacheLocation&&_.getGlobalTypingsCacheLocation(),J=a(F.substring(0,T.topLevelNodeModulesIndex));if(!(Ca(c,J)||U&&Ca(a(U),J)))return;let G=F.substring(T.topLevelPackageNameIndex+1),Z=Dz(G);return km(f)===1&&Z===G?void 0:Z;function Q(re){var ae,_e;let me=t.substring(0,re),le=Xi(me,"package.json"),Oe=t,be=!1,ue=(_e=(ae=_.getPackageJsonInfoCache)==null?void 0:ae.call(_))==null?void 0:_e.getPackageJsonInfo(le);if(Cie(ue)||ue===void 0&&_.fileExists(le)){let De=ue?.contents.packageJsonContent||lH(_.readFile(le)),Ce=k||zye(u,_,f);if(fH(f)){let Be=me.substring(T.topLevelPackageNameIndex+1),de=Dz(Be),ze=EC(f,Ce),ut=De?.exports?uar(f,_,t,me,de,De.exports,ze):void 0;if(ut)return{...ut,verbatimFromExports:!0};if(De?.exports)return{moduleFileToTry:t,blockedByExports:!0}}let Ae=De?.typesVersions?Eie(De.typesVersions):void 0;if(Ae){let Be=t.slice(me.length+1),de=e_t(Be,Ae.paths,O,me,a,_,f);de===void 0?be=!0:Oe=Xi(me,de)}let Fe=De?.typings||De?.types||De?.main||"index.js";if(Ni(Fe)&&!(be&&Zhe(TH(Ae.paths),Fe))){let Be=wl(Fe,me,a),de=a(Oe);if(Qm(Be)===Qm(de))return{packageRootPath:me,moduleFileToTry:Oe};if(De?.type!=="module"&&!_p(de,yne)&&Ca(de,Be)&&mo(de)===dv(Be)&&Qm(t_(de))==="index")return{packageRootPath:me,moduleFileToTry:Oe}}}else{let De=a(Oe.substring(T.packageRootIndex+1));if(De==="index.d.ts"||De==="index.js"||De==="index.ts"||De==="index.tsx")return{moduleFileToTry:Oe,packageRootPath:me}}return{moduleFileToTry:Oe}}}function dar(t,n){if(!t.fileExists)return;let a=Rc(qU({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(let c of a){let u=n+c;if(t.fileExists(u))return u}}function t_t(t,n,a){return Wn(n,c=>{let u=C8e(t,c,a);return u!==void 0&&n_t(u)?void 0:u})}function dK(t,n,a,c){if(_p(t,[".json",".mjs",".cjs"]))return t;let u=Qm(t);if(t===u)return t;let _=n.indexOf(2),f=n.indexOf(3);if(_p(t,[".mts",".cts"])&&f!==-1&&f<_)return t;if(_p(t,[".d.mts",".mts",".d.cts",".cts"]))return u+$ye(t,a);if(!_p(t,[".d.ts"])&&_p(t,[".ts"])&&t.includes(".d."))return r_t(t);switch(n[0]){case 0:let y=Lk(u,"/index");return c&&y!==u&&dar(c,y)?u:y;case 1:return u;case 2:return u+$ye(t,a);case 3:if(sf(t)){let g=n.findIndex(k=>k===0||k===1);return g!==-1&&g<_?u:u+$ye(t,a)}return t;default:return $.assertNever(n[0])}}function r_t(t){let n=t_(t);if(!au(t,".ts")||!n.includes(".d.")||_p(n,[".d.ts"]))return;let a=xH(t,".ts"),c=a.substring(a.lastIndexOf("."));return a.substring(0,a.indexOf(".d."))+c}function $ye(t,n){return Uye(t,n)??$.fail(`Extension ${VU(t)} is unsupported:: FileName:: ${t}`)}function Uye(t,n){let a=Bx(t);switch(a){case".ts":case".d.ts":return".js";case".tsx":return n.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return a;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function C8e(t,n,a){let c=FT(n,t,n,a,!1);return qd(c)?void 0:c}function n_t(t){return Ca(t,"..")}function zye(t,n,a){return Ox(t)?n.getDefaultResolutionModeForFile(t):roe(t,a)}function far(t){let n=t.indexOf(3);return n>-1&&n(t[t.None=0]="None",t[t.TypeofEQString=1]="TypeofEQString",t[t.TypeofEQNumber=2]="TypeofEQNumber",t[t.TypeofEQBigInt=4]="TypeofEQBigInt",t[t.TypeofEQBoolean=8]="TypeofEQBoolean",t[t.TypeofEQSymbol=16]="TypeofEQSymbol",t[t.TypeofEQObject=32]="TypeofEQObject",t[t.TypeofEQFunction=64]="TypeofEQFunction",t[t.TypeofEQHostObject=128]="TypeofEQHostObject",t[t.TypeofNEString=256]="TypeofNEString",t[t.TypeofNENumber=512]="TypeofNENumber",t[t.TypeofNEBigInt=1024]="TypeofNEBigInt",t[t.TypeofNEBoolean=2048]="TypeofNEBoolean",t[t.TypeofNESymbol=4096]="TypeofNESymbol",t[t.TypeofNEObject=8192]="TypeofNEObject",t[t.TypeofNEFunction=16384]="TypeofNEFunction",t[t.TypeofNEHostObject=32768]="TypeofNEHostObject",t[t.EQUndefined=65536]="EQUndefined",t[t.EQNull=131072]="EQNull",t[t.EQUndefinedOrNull=262144]="EQUndefinedOrNull",t[t.NEUndefined=524288]="NEUndefined",t[t.NENull=1048576]="NENull",t[t.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",t[t.Truthy=4194304]="Truthy",t[t.Falsy=8388608]="Falsy",t[t.IsUndefined=16777216]="IsUndefined",t[t.IsNull=33554432]="IsNull",t[t.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",t[t.All=134217727]="All",t[t.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",t[t.BaseStringFacts=12582401]="BaseStringFacts",t[t.StringStrictFacts=16317953]="StringStrictFacts",t[t.StringFacts=16776705]="StringFacts",t[t.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",t[t.EmptyStringFacts=12582401]="EmptyStringFacts",t[t.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",t[t.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",t[t.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",t[t.BaseNumberFacts=12582146]="BaseNumberFacts",t[t.NumberStrictFacts=16317698]="NumberStrictFacts",t[t.NumberFacts=16776450]="NumberFacts",t[t.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",t[t.ZeroNumberFacts=12582146]="ZeroNumberFacts",t[t.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",t[t.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",t[t.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",t[t.BaseBigIntFacts=12581636]="BaseBigIntFacts",t[t.BigIntStrictFacts=16317188]="BigIntStrictFacts",t[t.BigIntFacts=16775940]="BigIntFacts",t[t.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",t[t.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",t[t.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",t[t.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",t[t.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",t[t.BaseBooleanFacts=12580616]="BaseBooleanFacts",t[t.BooleanStrictFacts=16316168]="BooleanStrictFacts",t[t.BooleanFacts=16774920]="BooleanFacts",t[t.FalseStrictFacts=12121864]="FalseStrictFacts",t[t.FalseFacts=12580616]="FalseFacts",t[t.TrueStrictFacts=7927560]="TrueStrictFacts",t[t.TrueFacts=16774920]="TrueFacts",t[t.SymbolStrictFacts=7925520]="SymbolStrictFacts",t[t.SymbolFacts=16772880]="SymbolFacts",t[t.ObjectStrictFacts=7888800]="ObjectStrictFacts",t[t.ObjectFacts=16736160]="ObjectFacts",t[t.FunctionStrictFacts=7880640]="FunctionStrictFacts",t[t.FunctionFacts=16728e3]="FunctionFacts",t[t.VoidFacts=9830144]="VoidFacts",t[t.UndefinedFacts=26607360]="UndefinedFacts",t[t.NullFacts=42917664]="NullFacts",t[t.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",t[t.EmptyObjectFacts=83886079]="EmptyObjectFacts",t[t.UnknownFacts=83886079]="UnknownFacts",t[t.AllTypeofNE=556800]="AllTypeofNE",t[t.OrFactsMask=8256]="OrFactsMask",t[t.AndFactsMask=134209471]="AndFactsMask",t))(Jye||{}),A8e=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),Vye=(t=>(t[t.Normal=0]="Normal",t[t.Contextual=1]="Contextual",t[t.Inferential=2]="Inferential",t[t.SkipContextSensitive=4]="SkipContextSensitive",t[t.SkipGenericFunctions=8]="SkipGenericFunctions",t[t.IsForSignatureHelp=16]="IsForSignatureHelp",t[t.RestBindingElement=32]="RestBindingElement",t[t.TypeOnly=64]="TypeOnly",t))(Vye||{}),Wye=(t=>(t[t.None=0]="None",t[t.BivariantCallback=1]="BivariantCallback",t[t.StrictCallback=2]="StrictCallback",t[t.IgnoreReturnTypes=4]="IgnoreReturnTypes",t[t.StrictArity=8]="StrictArity",t[t.StrictTopSignature=16]="StrictTopSignature",t[t.Callback=3]="Callback",t))(Wye||{}),mar=EI(l_t,gar),Gye=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),c_t=class{};function har(){this.flags=0}function hl(t){return t.id||(t.id=o_t,o_t++),t.id}function hc(t){return t.id||(t.id=i_t,i_t++),t.id}function Hye(t,n){let a=KT(t);return a===1||n&&a===2}function w8e(t){var n=[],a=o=>{n.push(o)},c,u,_=Uf.getSymbolConstructor(),f=Uf.getTypeConstructor(),y=Uf.getSignatureConstructor(),g=0,k=0,T=0,C=0,O=0,F=0,M,U,J=!1,G=ic(),Z=[1],Q=t.getCompilerOptions(),re=$c(Q),ae=Km(Q),_e=!!Q.experimentalDecorators,me=hH(Q),le=$he(Q),Oe=iF(Q),be=rm(Q,"strictNullChecks"),ue=rm(Q,"strictFunctionTypes"),De=rm(Q,"strictBindCallApply"),Ce=rm(Q,"strictPropertyInitialization"),Ae=rm(Q,"strictBuiltinIteratorReturn"),Fe=rm(Q,"noImplicitAny"),Be=rm(Q,"noImplicitThis"),de=rm(Q,"useUnknownInCatchVariables"),ze=Q.exactOptionalPropertyTypes,ut=!!Q.noUncheckedSideEffectImports,je=tAr(),ve=BPr(),Le=cse(),Ve=OFe(Q,Le.syntacticBuilderResolver),nt=o3e({evaluateElementAccessExpression:wIr,evaluateEntityNameExpression:cwt}),It=ic(),ke=zc(4,"undefined");ke.declarations=[];var _t=zc(1536,"globalThis",8);_t.exports=It,_t.declarations=[],It.set(_t.escapedName,_t);var Se=zc(4,"arguments"),tt=zc(4,"require"),Qe=Q.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",We=!Q.verbatimModuleSyntax,St,Kt,Sr=0,nn,Nn=0,$t=lge({compilerOptions:Q,requireSymbol:tt,argumentsSymbol:Se,globals:It,getSymbolOfDeclaration:$i,error:gt,getRequiresScopeChangeCache:WP,setRequiresScopeChangeCache:bM,lookup:Nf,onPropertyWithInvalidInitializer:kq,onFailedToResolveSymbol:qi,onSuccessfullyResolvedSymbol:rh}),Dr=lge({compilerOptions:Q,requireSymbol:tt,argumentsSymbol:Se,globals:It,getSymbolOfDeclaration:$i,error:gt,getRequiresScopeChangeCache:WP,setRequiresScopeChangeCache:bM,lookup:xCr});let Qn={getNodeCount:()=>nl(t.getSourceFiles(),(o,p)=>o+p.nodeCount,0),getIdentifierCount:()=>nl(t.getSourceFiles(),(o,p)=>o+p.identifierCount,0),getSymbolCount:()=>nl(t.getSourceFiles(),(o,p)=>o+p.symbolCount,k),getTypeCount:()=>g,getInstantiationCount:()=>T,getRelationCacheSizes:()=>({assignable:am.size,identity:sm.size,subtype:Rb.size,strictSubtype:tp.size}),isUndefinedSymbol:o=>o===ke,isArgumentsSymbol:o=>o===Se,isUnknownSymbol:o=>o===ye,getMergedSymbol:cl,symbolIsValue:ln,getDiagnostics:hwt,getGlobalDiagnostics:ePr,getRecursionIdentity:zxe,getUnmatchedProperties:n$e,getTypeOfSymbolAtLocation:(o,p)=>{let m=vs(p);return m?OEr(o,m):Et},getTypeOfSymbol:di,getSymbolsOfParameterPropertyDeclaration:(o,p)=>{let m=vs(o,wa);return m===void 0?$.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):($.assert(ne(m,m.parent)),B3(m,dp(p)))},getDeclaredTypeOfSymbol:Tu,getPropertiesOfType:$l,getPropertyOfType:(o,p)=>vc(o,dp(p)),getPrivateIdentifierPropertyOfType:(o,p,m)=>{let v=vs(m);if(!v)return;let E=dp(p),D=rce(E,v);return D?ETe(o,D):void 0},getTypeOfPropertyOfType:(o,p)=>en(o,dp(p)),getIndexInfoOfType:(o,p)=>oT(o,p===0?Mt:Ir),getIndexInfosOfType:lm,getIndexInfosOfIndexSymbol:yxe,getSignaturesOfType:Gs,getIndexTypeOfType:(o,p)=>vw(o,p===0?Mt:Ir),getIndexType:o=>KS(o),getBaseTypes:ov,getBaseTypeOfLiteralType:S2,getWidenedType:ry,getWidenedLiteralType:Cw,fillMissingTypeArguments:QE,getTypeFromTypeNode:o=>{let p=vs(o,Wo);return p?Sa(p):Et},getParameterType:qv,getParameterIdentifierInfoAtPosition:hDr,getPromisedTypeOfPromise:LZ,getAwaitedType:o=>j7(o),getReturnTypeOfSignature:Tl,isNullableType:tce,getNullableType:jse,getNonNullableType:b2,getNonOptionalType:Wxe,getTypeArguments:Bu,typeToTypeNode:Le.typeToTypeNode,typePredicateToTypePredicateNode:Le.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:Le.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Le.signatureToSignatureDeclaration,symbolToEntityName:Le.symbolToEntityName,symbolToExpression:Le.symbolToExpression,symbolToNode:Le.symbolToNode,symbolToTypeParameterDeclarations:Le.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Le.symbolToParameterDeclaration,typeParameterToDeclaration:Le.typeParameterToDeclaration,getSymbolsInScope:(o,p)=>{let m=vs(o);return m?tPr(m,p):[]},getSymbolAtLocation:o=>{let p=vs(o);return p?B0(p,!0):void 0},getIndexInfosAtLocation:o=>{let p=vs(o);return p?lPr(p):void 0},getShorthandAssignmentValueSymbol:o=>{let p=vs(o);return p?uPr(p):void 0},getExportSpecifierLocalTargetSymbol:o=>{let p=vs(o,Cm);return p?pPr(p):void 0},getExportSymbolOfSymbol(o){return cl(o.exportSymbol||o)},getTypeAtLocation:o=>{let p=vs(o);return p?$7(p):Et},getTypeOfAssignmentPattern:o=>{let p=vs(o,aU);return p&&e2e(p)||Et},getPropertySymbolOfDestructuringAssignment:o=>{let p=vs(o,ct);return p?_Pr(p):void 0},signatureToString:(o,p,m,v)=>HC(o,vs(p),m,v),typeToString:(o,p,m)=>ri(o,vs(p),m),symbolToString:(o,p,m,v)=>Ua(o,vs(p),m,v),typePredicateToString:(o,p,m)=>jb(o,vs(p),m),writeSignature:(o,p,m,v,E,D,R,K)=>HC(o,vs(p),m,v,E,D,R,K),writeType:(o,p,m,v,E,D,R)=>ri(o,vs(p),m,v,E,D,R),writeSymbol:(o,p,m,v,E)=>Ua(o,vs(p),m,v,E),writeTypePredicate:(o,p,m,v)=>jb(o,vs(p),m,v),getAugmentedPropertiesOfType:WUe,getRootSymbols:Ewt,getSymbolOfExpando:ITe,getContextualType:(o,p)=>{let m=vs(o,Vt);if(m)return p&4?uo(m,()=>Eh(m,p)):Eh(m,p)},getContextualTypeForObjectLiteralElement:o=>{let p=vs(o,MT);return p?O$e(p,void 0):void 0},getContextualTypeForArgumentAtIndex:(o,p)=>{let m=vs(o,QI);return m&&I$e(m,p)},getContextualTypeForJsxAttribute:o=>{let p=vs(o,Gte);return p&&BCt(p,void 0)},isContextSensitive:r0,getTypeOfPropertyOfContextualType:Aw,getFullyQualifiedName:$E,getResolvedSignature:(o,p,m)=>Wa(o,p,m,0),getCandidateSignaturesForStringLiteralCompletions:is,getResolvedSignatureForSignatureHelp:(o,p,m)=>sr(o,()=>Wa(o,p,m,16)),getExpandedParameters:x2t,hasEffectiveRestParameter:Wb,containsArgumentsReference:Kje,getConstantValue:o=>{let p=vs(o,Iwt);return p?n2e(p):void 0},isValidPropertyAccess:(o,p)=>{let m=vs(o,IPe);return!!m&&kCr(m,dp(p))},isValidPropertyAccessForCompletions:(o,p,m)=>{let v=vs(o,no);return!!v&&hDt(v,p,m)},getSignatureFromDeclaration:o=>{let p=vs(o,Rs);return p?t0(p):void 0},isImplementationOfOverload:o=>{let p=vs(o,Rs);return p?Awt(p):void 0},getImmediateAliasedSymbol:gTe,getAliasedSymbol:df,getEmitResolver:Eq,requiresAddingImplicitUndefined:Ace,getExportsOfModule:m7,getExportsAndPropertiesOfModule:CM,forEachExportAndPropertyOfModule:h7,getSymbolWalker:x8e(Zbr,F0,Tl,ov,jv,di,Fm,Th,_h,Bu),getAmbientModules:D6r,getJsxIntrinsicTagNamesAt:oCr,isOptionalParameter:o=>{let p=vs(o,wa);return p?eZ(p):!1},tryGetMemberInModuleExports:(o,p)=>H3(dp(o),p),tryGetMemberInModuleExportsAndProperties:(o,p)=>g7(dp(o),p),tryFindAmbientModule:o=>z2t(o,!0),getApparentType:nh,getUnionType:Do,isTypeAssignableTo:tc,createAnonymousType:mp,createSignature:GS,createSymbol:zc,createIndexInfo:aT,getAnyType:()=>at,getStringType:()=>Mt,getStringLiteralType:Sg,getNumberType:()=>Ir,getNumberLiteralType:Bv,getBigIntType:()=>ii,getBigIntLiteralType:Cse,getUnknownType:()=>er,createPromiseType:pce,createArrayType:um,getElementTypeOfArrayType:Mse,getBooleanType:()=>_r,getFalseType:o=>o?Rn:zn,getTrueType:o=>o?Rt:rr,getVoidType:()=>pn,getUndefinedType:()=>Ne,getNullType:()=>mr,getESSymbolType:()=>wr,getNeverType:()=>tn,getNonPrimitiveType:()=>bn,getOptionalType:()=>Gt,getPromiseType:()=>Sse(!1),getPromiseLikeType:()=>_Et(!1),getAnyAsyncIterableType:()=>{let o=bse(!1);if(o!==Ar)return f2(o,[at,at,at])},isSymbolAccessible:GC,isArrayType:L0,isTupleType:Gc,isArrayLikeType:YE,isEmptyAnonymousObjectType:Vb,isTypeInvalidDueToUnionDiscriminant:Nbr,getExactOptionalProperties:s2r,getAllPossiblePropertiesOfTypes:Obr,getSuggestedSymbolForNonexistentProperty:W$e,getSuggestedSymbolForNonexistentJSXAttribute:_Dt,getSuggestedSymbolForNonexistentSymbol:(o,p,m)=>fDt(o,dp(p),m),getSuggestedSymbolForNonexistentModule:G$e,getSuggestedSymbolForNonexistentClassMember:pDt,getBaseConstraintOfType:Gf,getDefaultFromTypeParameter:o=>o&&o.flags&262144?r6(o):void 0,resolveName(o,p,m,v){return $t(p,dp(o),m,void 0,!1,v)},getJsxNamespace:o=>oa(X1(o)),getJsxFragmentFactory:o=>{let p=ZUe(o);return p&&oa(_h(p).escapedText)},getAccessibleSymbolChain:qE,getTypePredicateOfSignature:F0,resolveExternalModuleName:o=>{let p=vs(o,Vt);return p&&Nm(p,p,!0)},resolveExternalModuleSymbol:vg,tryGetThisTypeAt:(o,p,m)=>{let v=vs(o);return v&&C$e(v,p,m)},getTypeArgumentConstraint:o=>{let p=vs(o,Wo);return p&&MAr(p)},getSuggestionDiagnostics:(o,p)=>{let m=vs(o,Ta)||$.fail("Could not determine parsed source file.");if(lL(m,Q,t))return j;let v;try{return c=p,JUe(m),$.assert(!!(Ki(m).flags&1)),v=En(v,L3.getDiagnostics(m.fileName)),FAt(mwt(m),(E,D,R)=>{!BO(E)&&!fwt(D,!!(E.flags&33554432))&&(v||(v=[])).push({...R,category:2})}),v||j}finally{c=void 0}},runWithCancellationToken:(o,p)=>{try{return c=o,p(Qn)}finally{c=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Dc,isDeclarationVisible:Bb,isPropertyAccessible:K$e,getTypeOnlyAliasDeclaration:Fv,getMemberOverrideModifierStatus:yIr,isTypeParameterPossiblyReferenced:wse,typeHasCallOrConstructSignatures:t2e,getSymbolFlags:Zh,getTypeArgumentsForResolvedSignature:Ko,isLibType:wM};function Ko(o){if(o.mapper!==void 0)return y2((o.target||o).typeParameters,o.mapper)}function is(o,p){let m=new Set,v=[];uo(p,()=>Wa(o,v,void 0,0));for(let E of v)m.add(E);v.length=0,sr(p,()=>Wa(o,v,void 0,0));for(let E of v)m.add(E);return so(m)}function sr(o,p){if(o=fn(o,lme),o){let m=[],v=[];for(;o;){let D=Ki(o);if(m.push([D,D.resolvedSignature]),D.resolvedSignature=void 0,mC(o)){let R=io($i(o)),K=R.type;v.push([R,K]),R.type=void 0}o=fn(o.parent,lme)}let E=p();for(let[D,R]of m)D.resolvedSignature=R;for(let[D,R]of v)D.type=R;return E}return p()}function uo(o,p){let m=fn(o,QI);if(m){let E=o;do Ki(E).skipDirectInference=!0,E=E.parent;while(E&&E!==m)}J=!0;let v=sr(o,p);if(J=!1,m){let E=o;do Ki(E).skipDirectInference=void 0,E=E.parent;while(E&&E!==m)}return v}function Wa(o,p,m,v){let E=vs(o,QI);St=m;let D=E?HM(E,p,v):void 0;return St=void 0,D}var oo=new Map,Oi=new Map,$o=new Map,ft=new Map,Ht=new Map,Wr=new Map,ai=new Map,vo=new Map,Eo=new Map,ya=new Map,Ls=new Map,yc=new Map,Cn=new Map,Es=new Map,Dt=new Map,ur=[],Ee=new Map,Bt=new Set,ye=zc(4,"unknown"),et=zc(0,"__resolving__"),Ct=new Map,Ot=new Map,ar=new Set,at=ra(1,"any"),Zt=ra(1,"any",262144,"auto"),Qt=ra(1,"any",void 0,"wildcard"),pr=ra(1,"any",void 0,"blocked string"),Et=ra(1,"error"),xr=ra(1,"unresolved"),gi=ra(1,"any",65536,"non-inferrable"),Ye=ra(1,"intrinsic"),er=ra(2,"unknown"),Ne=ra(32768,"undefined"),Y=be?Ne:ra(32768,"undefined",65536,"widening"),ot=ra(32768,"undefined",void 0,"missing"),pe=ze?ot:Ne,Gt=ra(32768,"undefined",void 0,"optional"),mr=ra(65536,"null"),Ge=be?mr:ra(65536,"null",65536,"widening"),Mt=ra(4,"string"),Ir=ra(8,"number"),ii=ra(64,"bigint"),Rn=ra(512,"false",void 0,"fresh"),zn=ra(512,"false"),Rt=ra(512,"true",void 0,"fresh"),rr=ra(512,"true");Rt.regularType=rr,Rt.freshType=Rt,rr.regularType=rr,rr.freshType=Rt,Rn.regularType=zn,Rn.freshType=Rn,zn.regularType=zn,zn.freshType=Rn;var _r=Do([zn,rr]),wr=ra(4096,"symbol"),pn=ra(16384,"void"),tn=ra(131072,"never"),lr=ra(131072,"never",262144,"silent"),cn=ra(131072,"never",void 0,"implicit"),gn=ra(131072,"never",void 0,"unreachable"),bn=ra(67108864,"object"),$r=Do([Mt,Ir]),Uo=Do([Mt,Ir,wr]),Ys=Do([Ir,ii]),ec=Do([Mt,Ir,_r,ii,mr,Ne]),Ss=cN(["",""],[Ir]),Mp=Ase(o=>o.flags&262144?OTr(o):o,()=>"(restrictive mapper)"),Cp=Ase(o=>o.flags&262144?Qt:o,()=>"(permissive mapper)"),uu=ra(131072,"never",void 0,"unique literal"),$a=Ase(o=>o.flags&262144?uu:o,()=>"(unique literal mapper)"),bs,V_=Ase(o=>(bs&&(o===Yu||o===Hp||o===H)&&bs(!0),o),()=>"(unmeasurable reporter)"),Nu=Ase(o=>(bs&&(o===Yu||o===Hp||o===H)&&bs(!1),o),()=>"(unreliable reporter)"),kc=mp(void 0,G,j,j,j),o_=mp(void 0,G,j,j,j);o_.objectFlags|=2048;var Gy=mp(void 0,G,j,j,j);Gy.objectFlags|=141440;var _s=zc(2048,"__type");_s.members=ic();var sc=mp(_s,G,j,j,j),sl=mp(void 0,G,j,j,j),Yc=be?Do([Ne,mr,sl]):er,Ar=mp(void 0,G,j,j,j);Ar.instantiations=new Map;var Ql=mp(void 0,G,j,j,j);Ql.objectFlags|=262144;var Gp=mp(void 0,G,j,j,j),N_=mp(void 0,G,j,j,j),lf=mp(void 0,G,j,j,j),Yu=bh(),Hp=bh();Hp.constraint=Yu;var H=bh(),st=bh(),zt=bh();zt.constraint=st;var Er=tZ(1,"<>",0,at),jn=GS(void 0,void 0,void 0,j,at,void 0,0,0),So=GS(void 0,void 0,void 0,j,Et,void 0,0,0),Di=GS(void 0,void 0,void 0,j,at,void 0,0,0),On=GS(void 0,void 0,void 0,j,lr,void 0,0,0),ua=aT(Ir,Mt,!0),va=aT(Mt,at,!1),Bl=new Map,xc={get yieldType(){return $.fail("Not supported")},get returnType(){return $.fail("Not supported")},get nextType(){return $.fail("Not supported")}},ep=aD(at,at,at),W_=aD(lr,lr,lr),g_={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:_xr,getGlobalIterableType:bse,getGlobalIterableIteratorType:dEt,getGlobalIteratorObjectType:fxr,getGlobalGeneratorType:mxr,getGlobalBuiltinIteratorTypes:dxr,resolveIterationType:(o,p)=>j7(o,p,x.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:x.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:x.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:x.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},xu={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:hxr,getGlobalIterableType:Cxe,getGlobalIterableIteratorType:fEt,getGlobalIteratorObjectType:yxr,getGlobalGeneratorType:vxr,getGlobalBuiltinIteratorTypes:gxr,resolveIterationType:(o,p)=>o,mustHaveANextMethodDiagnostic:x.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:x.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:x.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},a_,Gg=new Map,Wf=new Map,yy,Wh,rt,br,Vn,Ga,el,tl,Uc,nd,Mu,Dp,Kp,vy,If,uf,Hg,Ym,D0,Pb,Wx,Gx,Gh,Nd,Iv,Hy,US,xe,Ft,Nr,Mr,wn,Yn,fo,Mo,Ea,ee,it,cr,In,Ka,Ws,Xa,ks,cp,Cc,pf,Kg,Ky,A0,r2,PE,vh,Nb,Pv,d1,OC,dt,Lt,Tr,dn,qn=new Map,Fi=0,$n=0,oi=0,sa=!1,os=0,Po,as,ka,lp=[],Hh=[],f1=[],Pf=0,m1=[],Qg=[],GA=[],zS=0,Ob=[],HA=[],Fb=0,hM=Sg(""),xq=Bv(0),gM=Cse({negative:!1,base10Value:"0"}),Hx=[],KA=[],P3=[],NE=0,N3=!1,e7=0,Tq=10,O3=[],t7=[],QA=[],yM=[],F3=[],r7=[],UP=[],FC=[],n7=[],i7=[],zP=[],RC=[],OE=[],n2=[],i2=[],o2=[],LC=[],ZA=[],R3=[],XA=0,il=IU(),L3=IU(),vM=cm(),a2,s2,Rb=new Map,tp=new Map,am=new Map,Kh=new Map,sm=new Map,YA=new Map,eh=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",Q.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return $Pr(),Qn;function Lb(o){return!no(o)||!ct(o.name)||!no(o.expression)&&!ct(o.expression)?!1:ct(o.expression)?Zi(o.expression)==="Symbol"&&Fm(o.expression)===(BM("Symbol",1160127,void 0)||ye):ct(o.expression.expression)?Zi(o.expression.name)==="Symbol"&&Zi(o.expression.expression)==="globalThis"&&Fm(o.expression.expression)===_t:!1}function Sh(o){return o?Dt.get(o):void 0}function h1(o,p){return o&&Dt.set(o,p),p}function X1(o){if(o){let p=Pn(o);if(p)if(K1(o)){if(p.localJsxFragmentNamespace)return p.localJsxFragmentNamespace;let m=p.pragmas.get("jsxfrag");if(m){let E=Zn(m)?m[0]:m;if(p.localJsxFragmentFactory=AF(E.arguments.factory,re),At(p.localJsxFragmentFactory,tw,uh),p.localJsxFragmentFactory)return p.localJsxFragmentNamespace=_h(p.localJsxFragmentFactory).escapedText}let v=ZUe(o);if(v)return p.localJsxFragmentFactory=v,p.localJsxFragmentNamespace=_h(v).escapedText}else{let m=ew(p);if(m)return p.localJsxNamespace=m}}return a2||(a2="React",Q.jsxFactory?(s2=AF(Q.jsxFactory,re),At(s2,tw),s2&&(a2=_h(s2).escapedText)):Q.reactNamespace&&(a2=dp(Q.reactNamespace))),s2||(s2=W.createQualifiedName(W.createIdentifier(oa(a2)),"createElement")),a2}function ew(o){if(o.localJsxNamespace)return o.localJsxNamespace;let p=o.pragmas.get("jsx");if(p){let m=Zn(p)?p[0]:p;if(o.localJsxFactory=AF(m.arguments.factory,re),At(o.localJsxFactory,tw,uh),o.localJsxFactory)return o.localJsxNamespace=_h(o.localJsxFactory).escapedText}}function tw(o){return xv(o,-1,-1),Dn(o,tw,void 0)}function Eq(o,p,m){return m||hwt(o,p),ve}function SM(o,p,...m){let v=o?xi(o,p,...m):bp(p,...m),E=il.lookup(v);return E||(il.add(v),v)}function FE(o,p,m,...v){let E=gt(p,m,...v);return E.skippedOn=o,E}function qP(o,p,...m){return o?xi(o,p,...m):bp(p,...m)}function gt(o,p,...m){let v=qP(o,p,...m);return il.add(v),v}function M3(o){let m=Pn(o).fileName;return _p(m,[".cts",".cjs"])?x.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:x.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript}function Kx(o,p){o?il.add(p):L3.add({...p,category:2})}function Y1(o,p,m,...v){if(p.pos<0||p.end<0){if(!o)return;let E=Pn(p);Kx(o,"message"in m?md(E,0,0,m,...v):Fme(E,m));return}Kx(o,"message"in m?xi(p,m,...v):Nx(Pn(p),p,m))}function RE(o,p,m,...v){let E=gt(o,m,...v);if(p){let D=xi(o,x.Did_you_forget_to_use_await);ac(E,D)}return E}function MC(o,p){let m=Array.isArray(o)?X(o,cu):cu(o);return m&&ac(p,xi(m,x.The_declaration_was_marked_as_deprecated_here)),L3.add(p),p}function th(o){let p=Od(o);return p&&te(o.declarations)>1?p.flags&64?Pt(o.declarations,Nv):ht(o.declarations,Nv):!!o.valueDeclaration&&Nv(o.valueDeclaration)||te(o.declarations)&&ht(o.declarations,Nv)}function Nv(o){return!!(f6(o)&536870912)}function g1(o,p,m){let v=xi(o,x._0_is_deprecated,m);return MC(p,v)}function rw(o,p,m,v){let E=m?xi(o,x.The_signature_0_of_1_is_deprecated,v,m):xi(o,x._0_is_deprecated,v);return MC(p,E)}function zc(o,p,m){k++;let v=new _(o|33554432,p);return v.links=new c_t,v.links.checkFlags=m||0,v}function Qy(o,p){let m=zc(1,o);return m.links.type=p,m}function LE(o,p){let m=zc(4,o);return m.links.type=p,m}function j3(o){let p=0;return o&2&&(p|=111551),o&1&&(p|=111550),o&4&&(p|=0),o&8&&(p|=900095),o&16&&(p|=110991),o&32&&(p|=899503),o&64&&(p|=788872),o&256&&(p|=899327),o&128&&(p|=899967),o&512&&(p|=110735),o&8192&&(p|=103359),o&32768&&(p|=46015),o&65536&&(p|=78783),o&262144&&(p|=526824),o&524288&&(p|=788968),o&2097152&&(p|=2097152),p}function c2(o,p){p.mergeId||(p.mergeId=a_t,a_t++),O3[p.mergeId]=o}function JP(o){let p=zc(o.flags,o.escapedName);return p.declarations=o.declarations?o.declarations.slice():[],p.parent=o.parent,o.valueDeclaration&&(p.valueDeclaration=o.valueDeclaration),o.constEnumOnlyModule&&(p.constEnumOnlyModule=!0),o.members&&(p.members=new Map(o.members)),o.exports&&(p.exports=new Map(o.exports)),c2(p,o),p}function w0(o,p,m=!1){if(!(o.flags&j3(p.flags))||(p.flags|o.flags)&67108864){if(p===o)return o;if(!(o.flags&33554432)){let D=O_(o);if(D===ye)return p;if(!(D.flags&j3(p.flags))||(p.flags|D.flags)&67108864)o=JP(D);else return v(o,p),p}p.flags&512&&o.flags&512&&o.constEnumOnlyModule&&!p.constEnumOnlyModule&&(o.constEnumOnlyModule=!1),o.flags|=p.flags,p.valueDeclaration&&SU(o,p.valueDeclaration),En(o.declarations,p.declarations),p.members&&(o.members||(o.members=ic()),qS(o.members,p.members,m)),p.exports&&(o.exports||(o.exports=ic()),qS(o.exports,p.exports,m,o)),m||c2(o,p)}else o.flags&1024?o!==_t&>(p.declarations&&cs(p.declarations[0]),x.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Ua(o)):v(o,p);return o;function v(D,R){let K=!!(D.flags&384||R.flags&384),se=!!(D.flags&2||R.flags&2),ce=K?x.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:se?x.Cannot_redeclare_block_scoped_variable_0:x.Duplicate_identifier_0,fe=R.declarations&&Pn(R.declarations[0]),Ue=D.declarations&&Pn(D.declarations[0]),Me=lU(fe,Q.checkJs),yt=lU(Ue,Q.checkJs),Jt=Ua(R);if(fe&&Ue&&a_&&!K&&fe!==Ue){let Xt=M1(fe.path,Ue.path)===-1?fe:Ue,kr=Xt===fe?Ue:fe,on=hs(a_,`${Xt.path}|${kr.path}`,()=>({firstFile:Xt,secondFile:kr,conflictingSymbols:new Map})),Hn=hs(on.conflictingSymbols,Jt,()=>({isBlockScoped:se,firstFileLocations:[],secondFileLocations:[]}));Me||E(Hn.firstFileLocations,R),yt||E(Hn.secondFileLocations,D)}else Me||Qx(R,ce,Jt,D),yt||Qx(D,ce,Jt,R)}function E(D,R){if(R.declarations)for(let K of R.declarations)Zc(D,K)}}function Qx(o,p,m,v){X(o.declarations,E=>{nw(E,p,m,v.declarations)})}function nw(o,p,m,v){let E=(_A(o,!1)?zme(o):cs(o))||o,D=SM(E,p,m);for(let R of v||j){let K=(_A(R,!1)?zme(R):cs(R))||R;if(K===E)continue;D.relatedInformation=D.relatedInformation||[];let se=xi(K,x._0_was_also_declared_here,m),ce=xi(K,x.and_here);te(D.relatedInformation)>=5||Pt(D.relatedInformation,fe=>$U(fe,ce)===0||$U(fe,se)===0)||ac(D,te(D.relatedInformation)?ce:se)}}function ME(o,p){if(!o?.size)return p;if(!p?.size)return o;let m=ic();return qS(m,o),qS(m,p),m}function qS(o,p,m=!1,v){p.forEach((E,D)=>{let R=o.get(D),K=R?w0(R,E,m):cl(E);v&&R&&(K.parent=v),o.set(D,K)})}function VP(o){var p,m,v;let E=o.parent;if(((p=E.symbol.declarations)==null?void 0:p[0])!==E){$.assert(E.symbol.declarations.length>1);return}if(xb(E))qS(It,E.symbol.exports);else{let D=o.parent.parent.flags&33554432?void 0:x.Invalid_module_name_in_augmentation_module_0_cannot_be_found,R=yg(o,o,D,!1,!0);if(!R)return;if(R=vg(R),R.flags&1920)if(Pt(Wh,K=>R===K.symbol)){let K=w0(E.symbol,R,!0);rt||(rt=new Map),rt.set(o.text,K)}else{if((m=R.exports)!=null&&m.get("__export")&&((v=E.symbol.exports)!=null&&v.size)){let K=Fje(R,"resolvedExports");for(let[se,ce]of so(E.symbol.exports.entries()))K.has(se)&&!R.exports.has(se)&&w0(K.get(se),ce)}w0(R,E.symbol)}else gt(o,x.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,o.text)}}function iw(){let o=ke.escapedName,p=It.get(o);p?X(p.declarations,m=>{aF(m)||il.add(xi(m,x.Declaration_name_conflicts_with_built_in_global_identifier_0,oa(o)))}):It.set(o,ke)}function io(o){if(o.flags&33554432)return o.links;let p=hc(o);return t7[p]??(t7[p]=new c_t)}function Ki(o){let p=hl(o);return QA[p]||(QA[p]=new har)}function Nf(o,p,m){if(m){let v=cl(o.get(p));if(v&&(v.flags&m||v.flags&2097152&&Zh(v)&m))return v}}function B3(o,p){let m=o.parent,v=o.parent.parent,E=Nf(m.locals,p,111551),D=Nf(Ub(v.symbol),p,111551);return E&&D?[E,D]:$.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function l2(o,p){let m=Pn(o),v=Pn(p),E=yv(o);if(m!==v){if(ae&&(m.externalModuleIndicator||v.externalModuleIndicator)||!Q.outFile||KO(p)||o.flags&33554432||R(p,o))return!0;let ce=t.getSourceFiles();return ce.indexOf(m)<=ce.indexOf(v)}if(p.flags&16777216||KO(p)||u$e(p))return!0;if(o.pos<=p.pos&&!(ps(o)&&PG(p.parent)&&!o.initializer&&!o.exclamationToken)){if(o.kind===209){let ce=mA(p,209);return ce?fn(ce,Vc)!==fn(o,Vc)||o.posfe===o?"quit":dc(fe)?fe.parent.parent===o:!_e&&hd(fe)&&(fe.parent===o||Ep(fe.parent)&&fe.parent.parent===o||aG(fe.parent)&&fe.parent.parent===o||ps(fe.parent)&&fe.parent.parent===o||wa(fe.parent)&&fe.parent.parent.parent===o));return ce?!_e&&hd(ce)?!!fn(p,fe=>fe===ce?"quit":Rs(fe)&&!uA(fe)):!1:!0}else{if(ps(o))return!se(o,p,!1);if(ne(o,o.parent))return!(le&&Cf(o)===Cf(p)&&R(p,o))}}return!0}if(p.parent.kind===282||p.parent.kind===278&&p.parent.isExportEquals||p.kind===278&&p.isExportEquals)return!0;if(R(p,o))return le&&Cf(o)&&(ps(o)||ne(o,o.parent))?!se(o,p,!0):!0;return!1;function D(ce,fe){switch(ce.parent.parent.kind){case 244:case 249:case 251:if(ev(fe,ce,E))return!0;break}let Ue=ce.parent.parent;return M4(Ue)&&ev(fe,Ue.expression,E)}function R(ce,fe){return K(ce,fe)}function K(ce,fe){return!!fn(ce,Ue=>{if(Ue===E)return"quit";if(Rs(Ue))return!uA(Ue);if(n_(Ue))return fe.posce.end?!1:fn(fe,yt=>{if(yt===ce)return"quit";switch(yt.kind){case 220:return!0;case 173:return Ue&&(ps(ce)&&yt.parent===ce.parent||ne(ce,ce.parent)&&yt.parent===ce.parent.parent)?"quit":!0;case 242:switch(yt.parent.kind){case 178:case 175:case 179:return!0;default:return!1}default:return!1}})===void 0}}function WP(o){return Ki(o).declarationRequiresScopeChange}function bM(o,p){Ki(o).declarationRequiresScopeChange=p}function kq(o,p,m,v){return le?!1:(o&&!v&&$3(o,p,p)||gt(o,o&&m.type&&Ao(m.type,o.pos)?x.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:x.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,du(m.name),gg(p)),!0)}function qi(o,p,m,v){let E=Ni(p)?p:p.escapedText;a(()=>{if(!o||o.parent.kind!==325&&!$3(o,E,p)&&!jC(o)&&!xM(o,E,m)&&!Mb(o,E)&&!$C(o,E,m)&&!Ov(o,E,m)&&!o7(o,E,m)){let D,R;if(p&&(R=SCr(p),R&>(o,v,gg(p),R)),!R&&e7{var R;let K=p.escapedName,se=v&&Ta(v)&&Lg(v);if(o&&(m&2||(m&32||m&384)&&(m&111551)===111551)){let ce=Wt(p);(ce.flags&2||ce.flags&32||ce.flags&384)&&Zy(ce,o)}if(se&&(m&111551)===111551&&!(o.flags&16777216)){let ce=cl(p);te(ce.declarations)&&ht(ce.declarations,fe=>UH(fe)||Ta(fe)&&!!fe.symbol.globalExports)&&Y1(!Q.allowUmdGlobalAccess,o,x._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,oa(K))}if(E&&!D&&(m&111551)===111551){let ce=cl(pxe(p)),fe=bS(E);ce===$i(E)?gt(o,x.Parameter_0_cannot_reference_itself,du(E.name)):ce.valueDeclaration&&ce.valueDeclaration.pos>E.pos&&fe.parent.locals&&Nf(fe.parent.locals,ce.escapedName,m)===ce&>(o,x.Parameter_0_cannot_reference_identifier_1_declared_after_it,du(E.name),du(o))}if(o&&m&111551&&p.flags&2097152&&!(p.flags&111551)&&!yA(o)){let ce=Fv(p,111551);if(ce){let fe=ce.kind===282||ce.kind===279||ce.kind===281?x._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:x._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Ue=oa(K);gs(gt(o,fe,Ue),ce,Ue)}}if(Q.isolatedModules&&p&&se&&(m&111551)===111551){let fe=Nf(It,K,m)===p&&Ta(v)&&v.locals&&Nf(v.locals,K,-111552);if(fe){let Ue=(R=fe.declarations)==null?void 0:R.find(Me=>Me.kind===277||Me.kind===274||Me.kind===275||Me.kind===272);Ue&&!OR(Ue)&>(Ue,x.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,oa(K))}}})}function gs(o,p,m){return p?ac(o,xi(p,p.kind===282||p.kind===279||p.kind===281?x._0_was_exported_here:x._0_was_imported_here,m)):o}function gg(o){return Ni(o)?oa(o):du(o)}function $3(o,p,m){if(!ct(o)||o.escapedText!==p||gwt(o)||KO(o))return!1;let v=Hm(o,!1,!1),E=v;for(;E;){if(Co(E.parent)){let D=$i(E.parent);if(!D)break;let R=di(D);if(vc(R,p))return gt(o,x.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,gg(m),Ua(D)),!0;if(E===v&&!oc(E)){let K=Tu(D).thisType;if(vc(K,p))return gt(o,x.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,gg(m)),!0}}E=E.parent}return!1}function jC(o){let p=Ii(o);return p&&jp(p,64,!0)?(gt(o,x.Cannot_extend_an_interface_0_Did_you_mean_implements,Sp(p)),!0):!1}function Ii(o){switch(o.kind){case 80:case 212:return o.parent?Ii(o.parent):void 0;case 234:if(ru(o.expression))return o.expression;default:return}}function xM(o,p,m){let v=1920|(Ei(o)?111551:0);if(m===v){let E=O_($t(o,p,788968&~v,void 0,!1)),D=o.parent;if(E){if(dh(D)){$.assert(D.left===o,"Should only be resolving left side of qualified name as a namespace");let R=D.right.escapedText;if(vc(Tu(E),R))return gt(D,x.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,oa(p),oa(R)),!0}return gt(o,x._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,oa(p)),!0}}return!1}function o7(o,p,m){if(m&788584){let v=O_($t(o,p,111127,void 0,!1));if(v&&!(v.flags&1920))return gt(o,x._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,oa(p)),!0}return!1}function Pm(o){return o==="any"||o==="string"||o==="number"||o==="boolean"||o==="never"||o==="unknown"}function Mb(o,p){return Pm(p)&&o.parent.kind===282?(gt(o,x.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,p),!0):!1}function Ov(o,p,m){if(m&111551){if(Pm(p)){let D=o.parent.parent;if(D&&D.parent&&zg(D)){let R=D.token;D.parent.kind===265&&R===96?gt(o,x.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,oa(p)):Co(D.parent)&&R===96?gt(o,x.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,oa(p)):Co(D.parent)&&R===119&>(o,x.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,oa(p))}else gt(o,x._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,oa(p));return!0}let v=O_($t(o,p,788544,void 0,!1)),E=v&&Zh(v);if(v&&E!==void 0&&!(E&111551)){let D=oa(p);return U3(p)?gt(o,x._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,D):BC(o,v)?gt(o,x._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,D,D==="K"?"P":"K"):gt(o,x._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,D),!0}}return!1}function BC(o,p){let m=fn(o.parent,v=>dc(v)||Zm(v)?!1:fh(v)||"quit");if(m&&m.members.length===1){let v=Tu(p);return!!(v.flags&1048576)&&NZ(v,384,!0)}return!1}function U3(o){switch(o){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function $C(o,p,m){if(m&111127){if(O_($t(o,p,1024,void 0,!1)))return gt(o,x.Cannot_use_namespace_0_as_a_value,oa(p)),!0}else if(m&788544&&O_($t(o,p,1536,void 0,!1)))return gt(o,x.Cannot_use_namespace_0_as_a_type,oa(p)),!0;return!1}function Zy(o,p){var m;if($.assert(!!(o.flags&2||o.flags&32||o.flags&384)),o.flags&67108881&&o.flags&32)return;let v=(m=o.declarations)==null?void 0:m.find(E=>Eme(E)||Co(E)||E.kind===267);if(v===void 0)return $.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(v.flags&33554432)&&!l2(v,p)){let E,D=du(cs(v));o.flags&2?E=gt(p,x.Block_scoped_variable_0_used_before_its_declaration,D):o.flags&32?E=gt(p,x.Class_0_used_before_its_declaration,D):o.flags&256?E=gt(p,x.Enum_0_used_before_its_declaration,D):($.assert(!!(o.flags&128)),a1(Q)&&(E=gt(p,x.Enum_0_used_before_its_declaration,D))),E&&ac(E,xi(v,x._0_is_declared_here,D))}}function ev(o,p,m){return!!p&&!!fn(o,v=>v===p||(v===m||Rs(v)&&(!uA(v)||A_(v)&3)?"quit":!1))}function I0(o){switch(o.kind){case 272:return o;case 274:return o.parent;case 275:return o.parent.parent;case 277:return o.parent.parent.parent;default:return}}function Qh(o){return o.declarations&&Ut(o.declarations,jE)}function jE(o){return o.kind===272||o.kind===271||o.kind===274&&!!o.name||o.kind===275||o.kind===281||o.kind===277||o.kind===282||o.kind===278&&QG(o)||wi(o)&&m_(o)===2&&QG(o)||wu(o)&&wi(o.parent)&&o.parent.left===o&&o.parent.operatorToken.kind===64&&ow(o.parent.right)||o.kind===305||o.kind===304&&ow(o.initializer)||o.kind===261&&rP(o)||o.kind===209&&rP(o.parent.parent)}function ow(o){return Pre(o)||bu(o)&&XS(o)}function a7(o,p){let m=l7(o);if(m){let E=oL(m.expression).arguments[0];return ct(m.name)?O_(vc(q2t(E),m.name.escapedText)):void 0}if(Oo(o)||o.moduleReference.kind===284){let E=Nm(o,Ume(o)||hU(o)),D=vg(E);if(D&&102<=ae&&ae<=199){let R=GP(D,"module.exports",o,p);if(R)return R}return P0(o,E,D,!1),D}let v=VC(o.moduleReference,p);return aw(o,v),v}function aw(o,p){if(P0(o,void 0,p,!1)&&!o.isTypeOnly){let m=Fv($i(o)),v=m.kind===282||m.kind===279,E=v?x.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:x.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,D=v?x._0_was_exported_here:x._0_was_imported_here,R=m.kind===279?"*":aC(m.name);ac(gt(o.moduleReference,E),xi(m,D,R))}}function UC(o,p,m,v){let E=o.exports.get("export="),D=E?vc(di(E),p,!0):o.exports.get(p),R=O_(D,v);return P0(m,D,R,!1),R}function s7(o){return Xu(o)&&!o.isExportEquals||ko(o,2048)||Cm(o)||Db(o)}function u2(o){return Sl(o)?t.getEmitSyntaxForUsageLocation(Pn(o),o):void 0}function JS(o,p){return o===99&&p===1}function zC(o,p){if(100<=ae&&ae<=199&&u2(o)===99){p??(p=Nm(o,o,!0));let v=p&&yG(p);return v&&(h0(v)||sie(v.fileName)===".d.json.ts")}return!1}function sw(o,p,m,v){let E=o&&u2(v);if(o&&E!==void 0){let D=t.getImpliedNodeFormatForEmit(o);if(E===99&&D===1&&100<=ae&&ae<=199)return!0;if(E===99&&D===99)return!1}if(!Oe)return!1;if(!o||o.isDeclarationFile){let D=UC(p,"default",void 0,!0);return!(D&&Pt(D.declarations,s7)||UC(p,dp("__esModule"),void 0,m))}return ph(o)?typeof o.externalModuleIndicator!="object"&&!UC(p,dp("__esModule"),void 0,m):rv(p)}function BE(o,p){let m=Nm(o,o.parent.moduleSpecifier);if(m)return qC(m,o,p)}function qC(o,p,m){var v;let E=(v=o.declarations)==null?void 0:v.find(Ta),D=tv(p),R,K;if(bG(o))R=o;else if(E&&D&&102<=ae&&ae<=199&&u2(D)===1&&t.getImpliedNodeFormatForEmit(E)===99&&(K=UC(o,"module.exports",p,m))){if(!kS(Q)){gt(p.name,x.Module_0_can_only_be_default_imported_using_the_1_flag,Ua(o),"esModuleInterop");return}return P0(p,K,void 0,!1),K}else R=UC(o,"default",p,m);if(!D)return R;let se=zC(D,o),ce=sw(E,o,m,D);if(!R&&!ce&&!se)if(rv(o)&&!Oe){let fe=ae>=5?"allowSyntheticDefaultImports":"esModuleInterop",Me=o.exports.get("export=").valueDeclaration,yt=gt(p.name,x.Module_0_can_only_be_default_imported_using_the_1_flag,Ua(o),fe);Me&&ac(yt,xi(Me,x.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,fe))}else H1(p)?p2(o,p):z3(o,o,p,Yk(p)&&p.propertyName||p.name);else if(ce||se){let fe=vg(o,m)||O_(o,m);return P0(p,o,fe,!1),fe}return P0(p,R,void 0,!1),R}function tv(o){switch(o.kind){case 274:return o.parent.moduleSpecifier;case 272:return WT(o.moduleReference)?o.moduleReference.expression:void 0;case 275:return o.parent.parent.moduleSpecifier;case 277:return o.parent.parent.parent.moduleSpecifier;case 282:return o.parent.parent.moduleSpecifier;default:return $.assertNever(o)}}function p2(o,p){var m,v,E;if((m=o.exports)!=null&&m.has(p.symbol.escapedName))gt(p.name,x.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Ua(o),Ua(p.symbol));else{let D=gt(p.name,x.Module_0_has_no_default_export,Ua(o)),R=(v=o.exports)==null?void 0:v.get("__export");if(R){let K=(E=R.declarations)==null?void 0:E.find(se=>{var ce,fe;return!!(P_(se)&&se.moduleSpecifier&&((fe=(ce=Nm(se,se.moduleSpecifier))==null?void 0:ce.exports)!=null&&fe.has("default")))});K&&ac(D,xi(K,x.export_Asterisk_does_not_re_export_a_default))}}}function Zx(o,p){let m=o.parent.parent.moduleSpecifier,v=Nm(o,m),E=eT(v,m,p,!1);return P0(o,v,E,!1),E}function JC(o,p){let m=o.parent.moduleSpecifier,v=m&&Nm(o,m),E=m&&eT(v,m,p,!1);return P0(o,v,E,!1),E}function _f(o,p){if(o===ye&&p===ye)return ye;if(o.flags&790504)return o;let m=zc(o.flags|p.flags,o.escapedName);return $.assert(o.declarations||p.declarations),m.declarations=rf(go(o.declarations,p.declarations),Ng),m.parent=o.parent||p.parent,o.valueDeclaration&&(m.valueDeclaration=o.valueDeclaration),p.members&&(m.members=new Map(p.members)),o.exports&&(m.exports=new Map(o.exports)),m}function GP(o,p,m,v){var E;if(o.flags&1536){let D=Zg(o).get(p),R=O_(D,v),K=(E=io(o).typeOnlyExportStarMap)==null?void 0:E.get(p);return P0(m,D,R,!1,K,p),R}}function Xx(o,p){if(o.flags&3){let m=o.valueDeclaration.type;if(m)return O_(vc(Sa(m),p))}}function cw(o,p,m=!1){var v;let E=Ume(o)||o.moduleSpecifier,D=Nm(o,E),R=!no(p)&&p.propertyName||p.name;if(!ct(R)&&R.kind!==11)return;let K=YI(R),ce=eT(D,E,!1,K==="default"&&Oe);if(ce&&(K||R.kind===11)){if(bG(D))return D;let fe;D&&D.exports&&D.exports.get("export=")?fe=vc(di(ce),K,!0):fe=Xx(ce,K),fe=O_(fe,m);let Ue=GP(ce,K,p,m);if(Ue===void 0&&K==="default"){let yt=(v=D.declarations)==null?void 0:v.find(Ta);(zC(E,D)||sw(yt,D,m,E))&&(Ue=vg(D,m)||O_(D,m))}let Me=Ue&&fe&&Ue!==fe?_f(fe,Ue):Ue||fe;return Yk(p)&&zC(E,D)&&K!=="default"?gt(R,x.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,tE[ae]):Me||z3(D,ce,o,R),Me}}function z3(o,p,m,v){var E;let D=$E(o,m),R=du(v),K=ct(v)?G$e(v,p):void 0;if(K!==void 0){let se=Ua(K),ce=gt(v,x._0_has_no_exported_member_named_1_Did_you_mean_2,D,R,se);K.valueDeclaration&&ac(ce,xi(K.valueDeclaration,x._0_is_declared_here,se))}else(E=o.exports)!=null&&E.has("default")?gt(v,x.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,D,R):Yx(m,v,R,o,D)}function Yx(o,p,m,v,E){var D,R;let K=(R=(D=Ci(v.valueDeclaration,vb))==null?void 0:D.locals)==null?void 0:R.get(YI(p)),se=v.exports;if(K){let ce=se?.get("export=");if(ce)Pe(ce,K)?TM(o,p,m,E):gt(p,x.Module_0_has_no_exported_member_1,E,m);else{let fe=se?wt(Hje(se),Me=>!!Pe(Me,K)):void 0,Ue=fe?gt(p,x.Module_0_declares_1_locally_but_it_is_exported_as_2,E,m,Ua(fe)):gt(p,x.Module_0_declares_1_locally_but_it_is_not_exported,E,m);K.declarations&&ac(Ue,...Cr(K.declarations,(Me,yt)=>xi(Me,yt===0?x._0_is_declared_here:x.and_here,m)))}}else gt(p,x.Module_0_has_no_exported_member_1,E,m)}function TM(o,p,m,v){if(ae>=5){let E=kS(Q)?x._0_can_only_be_imported_by_using_a_default_import:x._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;gt(p,E,m)}else if(Ei(o)){let E=kS(Q)?x._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:x._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;gt(p,E,m)}else{let E=kS(Q)?x._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:x._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;gt(p,E,m,m,v)}}function c7(o,p){if(Xm(o)&&bb(o.propertyName||o.name)){let R=tv(o),K=R&&Nm(o,R);if(K)return qC(K,o,p)}let m=Vc(o)?bS(o):o.parent.parent.parent,v=l7(m),E=cw(m,v||o,p),D=o.propertyName||o.name;return v&&E&&ct(D)?O_(vc(di(E),D.escapedText),p):(P0(o,void 0,E,!1),E)}function l7(o){if(Oo(o)&&o.initializer&&no(o.initializer))return o.initializer}function Cq(o,p){if(gv(o.parent)){let m=vg(o.parent.symbol,p);return P0(o,void 0,m,!1),m}}function u7(o,p,m){let v=o.propertyName||o.name;if(bb(v)){let D=tv(o),R=D&&Nm(o,D);if(R)return qC(R,o,!!m)}let E=o.parent.parent.moduleSpecifier?cw(o.parent.parent,o,m):v.kind===11?void 0:jp(v,p,!1,m);return P0(o,void 0,E,!1),E}function lw(o,p){let m=Xu(o)?o.expression:o.right,v=_2(m,p);return P0(o,void 0,v,!1),v}function _2(o,p){if(w_(o))return Bp(o).symbol;if(!uh(o)&&!ru(o))return;let m=jp(o,901119,!0,p);return m||(Bp(o),Ki(o).resolvedSymbol)}function EM(o,p){if(wi(o.parent)&&o.parent.left===o&&o.parent.operatorToken.kind===64)return _2(o.parent.right,p)}function uw(o,p=!1){switch(o.kind){case 272:case 261:return a7(o,p);case 274:return BE(o,p);case 275:return Zx(o,p);case 281:return JC(o,p);case 277:case 209:return c7(o,p);case 282:return u7(o,901119,p);case 278:case 227:return lw(o,p);case 271:return Cq(o,p);case 305:return jp(o.name,901119,!0,p);case 304:return _2(o.initializer,p);case 213:case 212:return EM(o,p);default:return $.fail()}}function q3(o,p=901119){return o?(o.flags&(2097152|p))===2097152||!!(o.flags&2097152&&o.flags&67108864):!1}function O_(o,p){return!p&&q3(o)?df(o):o}function df(o){$.assert((o.flags&2097152)!==0,"Should only get Alias here.");let p=io(o);if(p.aliasTarget)p.aliasTarget===et&&(p.aliasTarget=ye);else{p.aliasTarget=et;let m=Qh(o);if(!m)return $.fail();let v=uw(m);p.aliasTarget===et?p.aliasTarget=v||ye:gt(m,x.Circular_definition_of_import_alias_0,Ua(o))}return p.aliasTarget}function p7(o){if(io(o).aliasTarget!==et)return df(o)}function Zh(o,p,m){let v=p&&Fv(o),E=v&&P_(v),D=v&&(E?Nm(v.moduleSpecifier,v.moduleSpecifier,!0):df(v.symbol)),R=E&&D?VS(D):void 0,K=m?0:o.flags,se;for(;o.flags&2097152;){let ce=Wt(df(o));if(!E&&ce===D||R?.get(ce.escapedName)===ce)break;if(ce===ye)return-1;if(ce===o||se?.has(ce))break;ce.flags&2097152&&(se?se.add(ce):se=new Set([o,ce])),K|=ce.flags,o=ce}return K}function P0(o,p,m,v,E,D){if(!o||no(o))return!1;let R=$i(o);if(cE(o)){let se=io(R);return se.typeOnlyDeclaration=o,!0}if(E){let se=io(R);return se.typeOnlyDeclaration=E,R.escapedName!==D&&(se.typeOnlyExportStarName=D),!0}let K=io(R);return HP(K,p,v)||HP(K,m,v)}function HP(o,p,m){var v;if(p&&(o.typeOnlyDeclaration===void 0||m&&o.typeOnlyDeclaration===!1)){let E=((v=p.exports)==null?void 0:v.get("export="))??p,D=E.declarations&&wt(E.declarations,cE);o.typeOnlyDeclaration=D??io(E).typeOnlyDeclaration??!1}return!!o.typeOnlyDeclaration}function Fv(o,p){var m;if(!(o.flags&2097152))return;let v=io(o);if(v.typeOnlyDeclaration===void 0){v.typeOnlyDeclaration=!1;let E=O_(o);P0((m=o.declarations)==null?void 0:m[0],Qh(o)&&gTe(o),E,!0)}if(p===void 0)return v.typeOnlyDeclaration||void 0;if(v.typeOnlyDeclaration){let E=v.typeOnlyDeclaration.kind===279?O_(VS(v.typeOnlyDeclaration.symbol.parent).get(v.typeOnlyExportStarName||o.escapedName)):df(v.typeOnlyDeclaration.symbol);return Zh(E)&p?v.typeOnlyDeclaration:void 0}}function VC(o,p){return o.kind===80&&FU(o)&&(o=o.parent),o.kind===80||o.parent.kind===167?jp(o,1920,!1,p):($.assert(o.parent.kind===272),jp(o,901119,!1,p))}function $E(o,p){return o.parent?$E(o.parent,p)+"."+Ua(o):Ua(o,p,void 0,36)}function _7(o){for(;dh(o.parent);)o=o.parent;return o}function Dq(o){let p=_h(o),m=$t(p,p,111551,void 0,!0);if(m){for(;dh(p.parent);){let v=di(m);if(m=vc(v,p.parent.right.escapedText),!m)return;p=p.parent}return m}}function jp(o,p,m,v,E){if(Op(o))return;let D=1920|(Ei(o)?p&111551:0),R;if(o.kind===80){let K=p===D||fu(o)?x.Cannot_find_namespace_0:qkt(_h(o)),se=Ei(o)&&!fu(o)?kM(o,p):void 0;if(R=cl($t(E||o,o,p,m||se?void 0:K,!0,!1)),!R)return cl(se)}else if(o.kind===167||o.kind===212){let K=o.kind===167?o.left:o.expression,se=o.kind===167?o.right:o.name,ce=jp(K,D,m,!1,E);if(!ce||Op(se))return;if(ce===ye)return ce;if(ce.valueDeclaration&&Ei(ce.valueDeclaration)&&km(Q)!==100&&Oo(ce.valueDeclaration)&&ce.valueDeclaration.initializer&&BDt(ce.valueDeclaration.initializer)){let fe=ce.valueDeclaration.initializer.arguments[0],Ue=Nm(fe,fe);if(Ue){let Me=vg(Ue);Me&&(ce=Me)}}if(R=cl(Nf(Zg(ce),se.escapedText,p)),!R&&ce.flags&2097152&&(R=cl(Nf(Zg(df(ce)),se.escapedText,p))),!R){if(!m){let fe=$E(ce),Ue=du(se),Me=G$e(se,ce);if(Me){gt(se,x._0_has_no_exported_member_named_1_Did_you_mean_2,fe,Ue,Ua(Me));return}let yt=dh(o)&&_7(o);if(br&&p&788968&&yt&&!hL(yt.parent)&&Dq(yt)){gt(yt,x._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Rg(yt));return}if(p&1920&&dh(o.parent)){let Xt=cl(Nf(Zg(ce),se.escapedText,788968));if(Xt){gt(o.parent.right,x.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ua(Xt),oa(o.parent.right.escapedText));return}}gt(se,x.Namespace_0_has_no_exported_member_1,fe,Ue)}return}}else $.assertNever(o,"Unknown entity name kind.");return!fu(o)&&uh(o)&&(R.flags&2097152||o.parent.kind===278)&&P0(Zme(o),R,void 0,!0),R.flags&p||v?R:df(R)}function kM(o,p){if(Txe(o.parent)){let m=J3(o.parent);if(m)return $t(m,o,p,void 0,!0)}}function J3(o){if(fn(o,E=>LR(E)||E.flags&16777216?n1(E):"quit"))return;let m=iP(o);if(m&&af(m)&&zG(m.expression)){let E=$i(m.expression.left);if(E)return KP(E)}if(m&&bu(m)&&zG(m.parent)&&af(m.parent.parent)){let E=$i(m.parent.left);if(E)return KP(E)}if(m&&(r1(m)||td(m))&&wi(m.parent.parent)&&m_(m.parent.parent)===6){let E=$i(m.parent.parent.left);if(E)return KP(E)}let v=fA(o);if(v&&Rs(v)){let E=$i(v);return E&&E.valueDeclaration}}function KP(o){let p=o.parent.valueDeclaration;return p?(yU(p)?zO(p):j4(p)?vU(p):void 0)||p:void 0}function d7(o){let p=o.valueDeclaration;if(!p||!Ei(p)||o.flags&524288||_A(p,!1))return;let m=Oo(p)?vU(p):zO(p);if(m){let v=Xy(m);if(v)return nUe(v,o)}}function Nm(o,p,m){let E=km(Q)===1?x.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:x.Cannot_find_module_0_or_its_corresponding_type_declarations;return yg(o,p,m?void 0:E,m)}function yg(o,p,m,v=!1,E=!1){return Sl(p)?V3(o,p.text,m,v?void 0:p,E):void 0}function V3(o,p,m,v,E=!1){var D,R,K,se,ce,fe,Ue,Me,yt,Jt,Xt,kr;if(v&&Ca(p,"@types/")){let pa=x.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Ps=Mk(p,"@types/");gt(v,pa,Ps,p)}let on=z2t(p,!0);if(on)return on;let Hn=Pn(o),fi=Sl(o)?o:((D=I_(o)?o:o.parent&&I_(o.parent)&&o.parent.name===o?o.parent:void 0)==null?void 0:D.name)||((R=jT(o)?o:void 0)==null?void 0:R.argument.literal)||(Oo(o)&&o.initializer&&$h(o.initializer,!0)?o.initializer.arguments[0]:void 0)||((K=fn(o,Bh))==null?void 0:K.arguments[0])||((se=fn(o,jf(fp,OS,P_)))==null?void 0:se.moduleSpecifier)||((ce=fn(o,pA))==null?void 0:ce.moduleReference.expression),sn=fi&&Sl(fi)?t.getModeForUsageLocation(Hn,fi):t.getDefaultResolutionModeForFile(Hn),rn=km(Q),vi=(fe=t.getResolvedModule(Hn,p,sn))==null?void 0:fe.resolvedModule,wo=v&&vi&&j0e(Q,vi,Hn),Fa=vi&&(!wo||wo===x.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&t.getSourceFile(vi.resolvedFileName);if(Fa){if(wo&>(v,wo,p,vi.resolvedFileName),vi.resolvedUsingTsExtension&&sf(p)){let pa=((Ue=fn(o,fp))==null?void 0:Ue.importClause)||fn(o,jf(gd,P_));(v&&pa&&!pa.isTypeOnly||fn(o,Bh))&>(v,x.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,ho($.checkDefined(Qre(p))))}else if(vi.resolvedUsingTsExtension&&!ML(Q,Hn.fileName)){let pa=((Me=fn(o,fp))==null?void 0:Me.importClause)||fn(o,jf(gd,P_));if(v&&!(pa?.isTypeOnly||fn(o,AS))){let Ps=$.checkDefined(Qre(p));gt(v,x.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Ps)}}else if(Q.rewriteRelativeImportExtensions&&!(o.flags&33554432)&&!sf(p)&&!jT(o)&&!kPe(o)){let pa=JG(p,Q);if(!vi.resolvedUsingTsExtension&&pa)gt(v,x.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,Vk(za(Hn.fileName,t.getCurrentDirectory()),vi.resolvedFileName,UT(t)));else if(vi.resolvedUsingTsExtension&&!pa&&sP(Fa,t))gt(v,x.This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path,nE(p));else if(vi.resolvedUsingTsExtension&&pa){let Ps=(yt=t.getRedirectFromSourceFile(Fa.path))==null?void 0:yt.resolvedRef;if(Ps){let El=!t.useCaseSensitiveFileNames(),qa=t.getCommonSourceDirectory(),rp=S3(Ps.commandLine,El),Zp=lh(qa,rp,El),Rm=lh(Q.outDir||qa,Ps.commandLine.options.outDir||rp,El);Zp!==Rm&>(v,x.This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files)}}}if(Fa.symbol){if(v&&vi.isExternalLibraryImport&&!JU(vi.extension)&&pw(!1,v,Hn,sn,vi,p),v&&(ae===100||ae===101)){let pa=Hn.impliedNodeFormat===1&&!fn(o,Bh)||!!fn(o,gd),Ps=fn(o,El=>AS(El)||P_(El)||fp(El)||OS(El));if(pa&&Fa.impliedNodeFormat===99&&!n3e(Ps))if(fn(o,gd))gt(v,x.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,p);else{let El,qa=Bx(Hn.fileName);(qa===".ts"||qa===".js"||qa===".tsx"||qa===".jsx")&&(El=yme(Hn));let rp=Ps?.kind===273&&((Jt=Ps.importClause)!=null&&Jt.isTypeOnly)?x.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:Ps?.kind===206?x.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:x.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead;il.add(Nx(Pn(v),v,ws(El,rp,p)))}}return cl(Fa.symbol)}v&&m&&!uge(v)&>(v,x.File_0_is_not_a_module,Fa.fileName);return}if(Wh){let pa=GD(Wh,Ps=>Ps.pattern,p);if(pa){let Ps=rt&&rt.get(p);return cl(Ps||pa.symbol)}}if(!v)return;if(vi&&!JU(vi.extension)&&wo===void 0||wo===x.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(E){let pa=x.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;gt(v,pa,p,vi.resolvedFileName)}else pw(Fe&&!!m,v,Hn,sn,vi,p);return}if(m){if(vi){let pa=t.getRedirectFromSourceFile(vi.resolvedFileName);if(pa?.outputDts){gt(v,x.Output_file_0_has_not_been_built_from_source_file_1,pa.outputDts,vi.resolvedFileName);return}}if(wo)gt(v,wo,p,vi.resolvedFileName);else{let pa=ch(p)&&!eA(p),Ps=rn===3||rn===99;if(!_P(Q)&&Au(p,".json")&&rn!==1&&ane(Q))gt(v,x.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,p);else if(sn===99&&Ps&&pa){let El=za(p,mo(Hn.path)),qa=(Xt=eh.find(([rp,Zp])=>t.fileExists(El+rp)))==null?void 0:Xt[1];qa?gt(v,x.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,p+qa):gt(v,x.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((kr=t.getResolvedModule(Hn,p,sn))!=null&&kr.alternateResult){let El=rre(Hn,t,p,sn,p);Y1(!0,v,ws(El,m,p))}else gt(v,m,p)}}return;function ho(pa){let Ps=xH(p,pa);if(gH(ae)||sn===99){let El=sf(p)&&ML(Q);return Ps+(pa===".mts"||pa===".d.mts"?El?".mts":".mjs":pa===".cts"||pa===".d.mts"?El?".cts":".cjs":El?".ts":".js")}return Ps}}function pw(o,p,m,v,{packageId:E,resolvedFileName:D},R){if(uge(p))return;let K;!vt(R)&&E&&(K=rre(m,t,R,v,E.name)),Y1(o,p,ws(K,x.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,R,D))}function vg(o,p){if(o?.exports){let m=O_(o.exports.get("export="),p),v=W3(cl(m),cl(o));return cl(v)||o}}function W3(o,p){if(!o||o===ye||o===p||p.exports.size===1||o.flags&2097152)return o;let m=io(o);if(m.cjsExportMerged)return m.cjsExportMerged;let v=o.flags&33554432?o:JP(o);return v.flags=v.flags|512,v.exports===void 0&&(v.exports=ic()),p.exports.forEach((E,D)=>{D!=="export="&&v.exports.set(D,v.exports.has(D)?w0(v.exports.get(D),E):E)}),v===o&&(io(v).resolvedExports=void 0,io(v).resolvedMembers=void 0),io(v).cjsExportMerged=v,m.cjsExportMerged=v}function eT(o,p,m,v){var E;let D=vg(o,m);if(!m&&D){if(!v&&!(D.flags&1539)&&!Qu(D,308)){let se=ae>=5?"allowSyntheticDefaultImports":"esModuleInterop";return gt(p,x.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,se),D}let R=p.parent,K=fp(R)&&HR(R);if(K||Bh(R)){let se=Bh(R)?R.arguments[0]:R.moduleSpecifier,ce=di(D),fe=MDt(ce,D,o,se);if(fe)return G3(D,fe,R);let Ue=(E=o?.declarations)==null?void 0:E.find(Ta),Me=u2(se),yt;if(K&&Ue&&102<=ae&&ae<=199&&Me===1&&t.getImpliedNodeFormatForEmit(Ue)===99&&(yt=UC(D,"module.exports",K,m)))return!v&&!(D.flags&1539)&>(p,x.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,"esModuleInterop"),kS(Q)&&f7(ce)?G3(yt,ce,R):yt;let Jt=Ue&&JS(Me,t.getImpliedNodeFormatForEmit(Ue));if((kS(Q)||Jt)&&(f7(ce)||vc(ce,"default",!0)||Jt)){let Xt=ce.flags&3670016?jDt(ce,D,o,se):iUe(D,D.parent);return G3(D,Xt,R)}}}return D}function f7(o){return Pt(gse(o,0))||Pt(gse(o,1))}function G3(o,p,m){let v=zc(o.flags,o.escapedName);v.declarations=o.declarations?o.declarations.slice():[],v.parent=o.parent,v.links.target=o,v.links.originatingImport=m,o.valueDeclaration&&(v.valueDeclaration=o.valueDeclaration),o.constEnumOnlyModule&&(v.constEnumOnlyModule=!0),o.members&&(v.members=new Map(o.members)),o.exports&&(v.exports=new Map(o.exports));let E=jv(p);return v.links.type=mp(v,E.members,j,j,E.indexInfos),v}function rv(o){return o.exports.get("export=")!==void 0}function m7(o){return Hje(VS(o))}function CM(o){let p=m7(o),m=vg(o);if(m!==o){let v=di(m);UE(v)&&En(p,$l(v))}return p}function h7(o,p){VS(o).forEach((E,D)=>{fw(D)||p(E,D)});let v=vg(o);if(v!==o){let E=di(v);UE(E)&&Pbr(E,(D,R)=>{p(D,R)})}}function H3(o,p){let m=VS(p);if(m)return m.get(o)}function g7(o,p){let m=H3(o,p);if(m)return m;let v=vg(p);if(v===p)return;let E=di(v);return UE(E)?vc(E,o):void 0}function UE(o){return!(o.flags&402784252||ro(o)&1||L0(o)||Gc(o))}function Zg(o){return o.flags&6256?Fje(o,"resolvedExports"):o.flags&1536?VS(o):o.exports||G}function VS(o){let p=io(o);if(!p.resolvedExports){let{exports:m,typeOnlyExportStarMap:v}=Q3(o);p.resolvedExports=m,p.typeOnlyExportStarMap=v}return p.resolvedExports}function K3(o,p,m,v){p&&p.forEach((E,D)=>{if(D==="default")return;let R=o.get(D);if(!R)o.set(D,E),m&&v&&m.set(D,{specifierText:Sp(v.moduleSpecifier)});else if(m&&v&&R&&O_(R)!==O_(E)){let K=m.get(D);K.exportsWithDuplicate?K.exportsWithDuplicate.push(v):K.exportsWithDuplicate=[v]}})}function Q3(o){let p=[],m,v=new Set;o=vg(o);let E=D(o)||G;return m&&v.forEach(R=>m.delete(R)),{exports:E,typeOnlyExportStarMap:m};function D(R,K,se){if(!se&&R?.exports&&R.exports.forEach((Ue,Me)=>v.add(Me)),!(R&&R.exports&&Zc(p,R)))return;let ce=new Map(R.exports),fe=R.exports.get("__export");if(fe){let Ue=ic(),Me=new Map;if(fe.declarations)for(let yt of fe.declarations){let Jt=Nm(yt,yt.moduleSpecifier),Xt=D(Jt,yt,se||yt.isTypeOnly);K3(Ue,Xt,Me,yt)}Me.forEach(({exportsWithDuplicate:yt},Jt)=>{if(!(Jt==="export="||!(yt&&yt.length)||ce.has(Jt)))for(let Xt of yt)il.add(xi(Xt,x.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Me.get(Jt).specifierText,oa(Jt)))}),K3(ce,Ue)}return K?.isTypeOnly&&(m??(m=new Map),ce.forEach((Ue,Me)=>m.set(Me,K))),ce}}function cl(o){let p;return o&&o.mergeId&&(p=O3[o.mergeId])?p:o}function $i(o){return cl(o.symbol&&pxe(o.symbol))}function Xy(o){return gv(o)?$i(o):void 0}function Od(o){return cl(o.parent&&pxe(o.parent))}function _w(o){var p,m;return(((p=o.valueDeclaration)==null?void 0:p.kind)===220||((m=o.valueDeclaration)==null?void 0:m.kind)===219)&&Xy(o.valueDeclaration.parent)||o}function Z3(o,p){let m=Pn(p),v=hl(m),E=io(o),D;if(E.extendedContainersByFile&&(D=E.extendedContainersByFile.get(v)))return D;if(m&&m.imports){for(let K of m.imports){if(fu(K))continue;let se=Nm(p,K,!0);!se||!B(se,o)||(D=jt(D,se))}if(te(D))return(E.extendedContainersByFile||(E.extendedContainersByFile=new Map)).set(v,D),D}if(E.extendedContainers)return E.extendedContainers;let R=t.getSourceFiles();for(let K of R){if(!yd(K))continue;let se=$i(K);B(se,o)&&(D=jt(D,se))}return E.extendedContainers=D||j}function QP(o,p,m){let v=Od(o);if(v&&!(o.flags&262144))return se(v);let E=Wn(o.declarations,fe=>{if(!Gm(fe)&&fe.parent){if(XP(fe.parent))return $i(fe.parent);if(wS(fe.parent)&&fe.parent.parent&&vg($i(fe.parent.parent))===o)return $i(fe.parent.parent)}if(w_(fe)&&wi(fe.parent)&&fe.parent.operatorToken.kind===64&&wu(fe.parent.left)&&ru(fe.parent.left.expression))return Fx(fe.parent.left)||q4(fe.parent.left.expression)?$i(Pn(fe)):(Bp(fe.parent.left.expression),Ki(fe.parent.left.expression).resolvedSymbol)});if(!te(E))return;let D=Wn(E,fe=>B(fe,o)?fe:void 0),R=[],K=[];for(let fe of D){let[Ue,...Me]=se(fe);R=jt(R,Ue),K=En(K,Me)}return go(R,K);function se(fe){let Ue=Wn(fe.declarations,ce),Me=p&&Z3(o,p),yt=dw(fe,m);if(p&&fe.flags&nv(m)&&qE(fe,p,1920,!1))return jt(go(go([fe],Ue),Me),yt);let Jt=!(fe.flags&nv(m))&&fe.flags&788968&&Tu(fe).flags&524288&&m===111551?zE(p,kr=>Ad(kr,on=>{if(on.flags&nv(m)&&di(on)===Tu(fe))return on})):void 0,Xt=Jt?[Jt,...Ue,fe]:[...Ue,fe];return Xt=jt(Xt,yt),Xt=En(Xt,Me),Xt}function ce(fe){return v&&X3(fe,v)}}function dw(o,p){let m=!!te(o.declarations)&&To(o.declarations);if(p&111551&&m&&m.parent&&Oo(m.parent)&&(Lc(m)&&m===m.parent.initializer||fh(m)&&m===m.parent.type))return $i(m.parent)}function X3(o,p){let m=eN(o),v=m&&m.exports&&m.exports.get("export=");return v&&Pe(v,p)?m:void 0}function B(o,p){if(o===Od(p))return p;let m=o.exports&&o.exports.get("export=");if(m&&Pe(m,p))return o;let v=Zg(o),E=v.get(p.escapedName);return E&&Pe(E,p)?E:Ad(v,D=>{if(Pe(D,p))return D})}function Pe(o,p){if(cl(O_(cl(o)))===cl(O_(cl(p))))return o}function Wt(o){return cl(o&&(o.flags&1048576)!==0&&o.exportSymbol||o)}function ln(o,p){return!!(o.flags&111551||o.flags&2097152&&Zh(o,!p)&111551)}function Fo(o){var p;let m=new f(Qn,o);return g++,m.id=g,(p=hi)==null||p.recordType(m),m}function na(o,p){let m=Fo(o);return m.symbol=p,m}function Ya(o){return new f(Qn,o)}function ra(o,p,m=0,v){Wc(p,v);let E=Fo(o);return E.intrinsicName=p,E.debugIntrinsicName=v,E.objectFlags=m|524288|2097152|33554432|16777216,E}function Wc(o,p){let m=`${o},${p??""}`;ar.has(m)&&$.fail(`Duplicate intrinsic type name ${o}${p?` (${p})`:""}; you may need to pass a name to createIntrinsicType.`),ar.add(m)}function F_(o,p){let m=na(524288,p);return m.objectFlags=o,m.members=void 0,m.properties=void 0,m.callSignatures=void 0,m.constructSignatures=void 0,m.indexInfos=void 0,m}function cm(){return Do(so(A8e.keys(),Sg))}function bh(o){return na(262144,o)}function fw(o){return o.charCodeAt(0)===95&&o.charCodeAt(1)===95&&o.charCodeAt(2)!==95&&o.charCodeAt(2)!==64&&o.charCodeAt(2)!==35}function xh(o){let p;return o.forEach((m,v)=>{WC(m,v)&&(p||(p=[])).push(m)}),p||j}function WC(o,p){return!fw(p)&&ln(o)}function y7(o){let p=xh(o),m=gxe(o);return m?go(p,[m]):p}function y1(o,p,m,v,E){let D=o;return D.members=p,D.properties=j,D.callSignatures=m,D.constructSignatures=v,D.indexInfos=E,p!==G&&(D.properties=xh(p)),D}function mp(o,p,m,v,E){return y1(F_(16,o),p,m,v,E)}function Y3(o){if(o.constructSignatures.length===0)return o;if(o.objectTypeWithoutAbstractConstructSignatures)return o.objectTypeWithoutAbstractConstructSignatures;let p=yr(o.constructSignatures,v=>!(v.flags&4));if(o.constructSignatures===p)return o;let m=mp(o.symbol,o.members,o.callSignatures,Pt(p)?p:j,o.indexInfos);return o.objectTypeWithoutAbstractConstructSignatures=m,m.objectTypeWithoutAbstractConstructSignatures=m,m}function zE(o,p){let m;for(let v=o;v;v=v.parent){if(vb(v)&&v.locals&&!uE(v)&&(m=p(v.locals,void 0,!0,v)))return m;switch(v.kind){case 308:if(!Lg(v))break;case 268:let E=$i(v);if(m=p(E?.exports||G,void 0,!0,v))return m;break;case 264:case 232:case 265:let D;if(($i(v).members||G).forEach((R,K)=>{R.flags&788968&&(D||(D=ic())).set(K,R)}),D&&(m=p(D,void 0,!1,v)))return m;break}}return p(It,void 0,!0)}function nv(o){return o===111551?111551:1920}function qE(o,p,m,v,E=new Map){if(!(o&&!ase(o)))return;let D=io(o),R=D.accessibleChainCache||(D.accessibleChainCache=new Map),K=zE(p,(on,Hn,fi,sn)=>sn),se=`${v?0:1}|${K?hl(K):0}|${m}`;if(R.has(se))return R.get(se);let ce=hc(o),fe=E.get(ce);fe||E.set(ce,fe=[]);let Ue=zE(p,Me);return R.set(se,Ue),Ue;function Me(on,Hn,fi){if(!Zc(fe,on))return;let sn=Xt(on,Hn,fi);return fe.pop(),sn}function yt(on,Hn){return!ZP(on,p,Hn)||!!qE(on.parent,p,nv(Hn),v,E)}function Jt(on,Hn,fi){return(o===(Hn||on)||cl(o)===cl(Hn||on))&&!Pt(on.declarations,XP)&&(fi||yt(cl(on),m))}function Xt(on,Hn,fi){return Jt(on.get(o.escapedName),void 0,Hn)?[o]:Ad(on,rn=>{if(rn.flags&2097152&&rn.escapedName!=="export="&&rn.escapedName!=="default"&&!(ene(rn)&&p&&yd(Pn(p)))&&(!v||Pt(rn.declarations,pA))&&(!fi||!Pt(rn.declarations,A6e))&&(Hn||!Qu(rn,282))){let vi=df(rn),wo=kr(rn,vi,Hn);if(wo)return wo}if(rn.escapedName===o.escapedName&&rn.exportSymbol&&Jt(cl(rn.exportSymbol),void 0,Hn))return[o]})||(on===It?kr(_t,_t,Hn):void 0)}function kr(on,Hn,fi){if(Jt(on,Hn,fi))return[on];let sn=Zg(Hn),rn=sn&&Me(sn,!0);if(rn&&yt(on,nv(m)))return[on].concat(rn)}}function ZP(o,p,m){let v=!1;return zE(p,E=>{let D=cl(E.get(o.escapedName));if(!D)return!1;if(D===o)return!0;let R=D.flags&2097152&&!Qu(D,282);return D=R?df(D):D,(R?Zh(D):D.flags)&m?(v=!0,!0):!1}),v}function ase(o){if(o.declarations&&o.declarations.length){for(let p of o.declarations)switch(p.kind){case 173:case 175:case 178:case 179:continue;default:return!1}return!0}return!1}function Aq(o,p){return S7(o,p,788968,!1,!0).accessibility===0}function v7(o,p){return S7(o,p,111551,!1,!0).accessibility===0}function wq(o,p,m){return S7(o,p,m,!1,!1).accessibility===0}function JQ(o,p,m,v,E,D){if(!te(o))return;let R,K=!1;for(let se of o){let ce=qE(se,p,v,!1);if(ce){R=se;let Me=tN(ce[0],E);if(Me)return Me}if(D&&Pt(se.declarations,XP)){if(E){K=!0;continue}return{accessibility:0}}let fe=QP(se,p,v),Ue=JQ(fe,p,m,m===se?nv(v):v,E,D);if(Ue)return Ue}if(K)return{accessibility:0};if(R)return{accessibility:1,errorSymbolName:Ua(m,p,v),errorModuleName:R!==m?Ua(R,p,1920):void 0}}function GC(o,p,m,v){return S7(o,p,m,v,!0)}function S7(o,p,m,v,E){if(o&&p){let D=JQ([o],p,o,m,v,E);if(D)return D;let R=X(o.declarations,eN);if(R){let K=eN(p);if(R!==K)return{accessibility:2,errorSymbolName:Ua(o,p,m),errorModuleName:Ua(R),errorNode:Ei(p)?p:void 0}}return{accessibility:1,errorSymbolName:Ua(o,p,m)}}return{accessibility:0}}function eN(o){let p=fn(o,sse);return p&&$i(p)}function sse(o){return Gm(o)||o.kind===308&&Lg(o)}function XP(o){return sre(o)||o.kind===308&&Lg(o)}function tN(o,p){let m;if(!ht(yr(o.declarations,D=>D.kind!==80),v))return;return{accessibility:0,aliasesToMakeVisible:m};function v(D){var R,K;if(!Bb(D)){let se=I0(D);if(se&&!ko(se,32)&&Bb(se.parent))return E(D,se);if(Oo(D)&&h_(D.parent.parent)&&!ko(D.parent.parent,32)&&Bb(D.parent.parent.parent))return E(D,D.parent.parent);if(cre(D)&&!ko(D,32)&&Bb(D.parent))return E(D,D);if(Vc(D)){if(o.flags&2097152&&Ei(D)&&((R=D.parent)!=null&&R.parent)&&Oo(D.parent.parent)&&((K=D.parent.parent.parent)!=null&&K.parent)&&h_(D.parent.parent.parent.parent)&&!ko(D.parent.parent.parent.parent,32)&&D.parent.parent.parent.parent.parent&&Bb(D.parent.parent.parent.parent.parent))return E(D,D.parent.parent.parent.parent);if(o.flags&2){let ce=Pr(D);if(ce.kind===170)return!1;let fe=ce.parent.parent;return fe.kind!==244?!1:ko(fe,32)?!0:Bb(fe.parent)?E(D,fe):!1}}return!1}return!0}function E(D,R){return p&&(Ki(D).isVisible=!0,m=Jl(m,R)),!0}}function Iq(o){let p;return o.parent.kind===187||o.parent.kind===234&&!vS(o.parent)||o.parent.kind===168||o.parent.kind===183&&o.parent.parameterName===o?p=1160127:o.kind===167||o.kind===212||o.parent.kind===272||o.parent.kind===167&&o.parent.left===o||o.parent.kind===212&&o.parent.expression===o||o.parent.kind===213&&o.parent.expression===o?p=1920:p=788968,p}function b7(o,p,m=!0){let v=Iq(o),E=_h(o),D=$t(p,E.escapedText,v,void 0,!1);return D&&D.flags&262144&&v&788968?{accessibility:0}:!D&&pC(E)&&GC($i(Hm(E,!1,!1)),E,v,!1).accessibility===0?{accessibility:0}:D?tN(D,m)||{accessibility:1,errorSymbolName:Sp(E),errorNode:E}:{accessibility:3,errorSymbolName:Sp(E),errorNode:E}}function Ua(o,p,m,v=4,E){let D=70221824,R=0;v&2&&(D|=128),v&1&&(D|=512),v&8&&(D|=16384),v&32&&(R|=4),v&16&&(R|=1);let K=v&4?Le.symbolToNode:Le.symbolToEntityName;return E?se(E).getText():jR(se);function se(ce){let fe=K(o,m,p,D,R),Ue=p?.kind===308?EOe():wP(),Me=p&&Pn(p);return Ue.writeNode(4,fe,Me,ce),ce}}function HC(o,p,m=0,v,E,D,R,K){return E?se(E).getText():jR(se);function se(ce){let fe;m&262144?fe=v===1?186:185:fe=v===1?181:180;let Ue=Le.signatureToSignatureDeclaration(o,fe,p,YP(m)|70221824|512,void 0,void 0,D,R,K),Me=b0e(),yt=p&&Pn(p);return Me.writeNode(4,Ue,yt,uhe(ce)),ce}}function ri(o,p,m=1064960,v=nH(""),E,D,R){let K=!E&&Q.noErrorTruncation||m&1,se=Le.typeToTypeNode(o,p,YP(m)|70221824|(K?1:0),void 0,void 0,E,D,R);if(se===void 0)return $.fail("should always get typenode");let ce=o!==xr?wP():TOe(),fe=p&&Pn(p);ce.writeNode(4,se,fe,v);let Ue=v.getText(),Me=E||(K?hme*2:cU*2);return Me&&Ue&&Ue.length>=Me?Ue.substr(0,Me-3)+"...":Ue}function Pq(o,p){let m=AM(o.symbol)?ri(o,o.symbol.valueDeclaration):ri(o),v=AM(p.symbol)?ri(p,p.symbol.valueDeclaration):ri(p);return m===v&&(m=DM(o),v=DM(p)),[m,v]}function DM(o){return ri(o,void 0,64)}function AM(o){return o&&!!o.valueDeclaration&&Vt(o.valueDeclaration)&&!r0(o.valueDeclaration)}function YP(o=0){return o&848330095}function VQ(o){return!!o.symbol&&!!(o.symbol.flags&32)&&(o===O0(o.symbol)||!!(o.flags&524288)&&!!(ro(o)&16777216))}function rN(o){return Sa(o)}function cse(){return{syntacticBuilderResolver:{evaluateEntityNameExpression:cwt,isExpandoFunctionDeclaration:wwt,hasLateBindableName:NM,shouldRemoveDeclaration(Xe,Te){return!(Xe.internalFlags&8&&ru(Te.name.expression)&&sv(Te.name).flags&1)},createRecoveryBoundary(Xe){return pa(Xe)},isDefinitelyReferenceToGlobalSymbolObject:Lb,getAllAccessorDeclarations:KUe,requiresAddingImplicitUndefined(Xe,Te,Lr){var Vr;switch(Xe.kind){case 173:case 172:case 349:Te??(Te=$i(Xe));let He=di(Te);return!!(Te.flags&4&&Te.flags&16777216&&sF(Xe)&&((Vr=Te.links)!=null&&Vr.mappedType)&&n2r(He));case 170:case 342:return Ace(Xe,Lr);default:$.assertNever(Xe)}},isOptionalParameter:eZ,isUndefinedIdentifierExpression(Xe){return B0(Xe)===ke},isEntityNameVisible(Xe,Te,Lr){return b7(Te,Xe.enclosingDeclaration,Lr)},serializeExistingTypeNode(Xe,Te,Lr){return Yh(Xe,Te,!!Lr)},serializeReturnTypeForSignature(Xe,Te,Lr){let Vr=Xe,He=t0(Te);Lr??(Lr=$i(Te));let lt=Vr.enclosingSymbolTypes.get(hc(Lr))??Oa(Tl(He),Vr.mapper);return Nc(Vr,He,lt)},serializeTypeOfExpression(Xe,Te){let Lr=Xe,Vr=Oa(ry(bwt(Te)),Lr.mapper);return kr(Vr,Lr)},serializeTypeOfDeclaration(Xe,Te,Lr){var Vr;let He=Xe;Lr??(Lr=$i(Te));let lt=(Vr=He.enclosingSymbolTypes)==null?void 0:Vr.get(hc(Lr));return lt===void 0&&(lt=Lr.flags&98304&&Te.kind===179?Oa(GE(Lr),He.mapper):Lr&&!(Lr.flags&133120)?Oa(Cw(di(Lr)),He.mapper):Et),Te&&(wa(Te)||Uy(Te))&&Ace(Te,He.enclosingDeclaration)&&(lt=nD(lt)),ui(Lr,He,lt)},serializeNameOfParameter(Xe,Te){return ha($i(Te),Te,Xe)},serializeEntityName(Xe,Te){let Lr=Xe,Vr=B0(Te,!0);if(Vr&&v7(Vr,Lr.enclosingDeclaration))return $0(Vr,Lr,1160127)},serializeTypeName(Xe,Te,Lr,Vr){return Rd(Xe,Te,Lr,Vr)},getJsDocPropertyOverride(Xe,Te,Lr){let Vr=Xe,He=ct(Lr.name)?Lr.name:Lr.name.right,lt=en(p(Vr,Te),He.escapedText);return lt&&Lr.typeExpression&&p(Vr,Lr.typeExpression.type)!==lt?kr(lt,Vr):void 0},enterNewScope(Xe,Te){if(Rs(Te)||TE(Te)){let Lr=t0(Te);return Ps(Xe,Te,Lr.parameters,Lr.typeParameters)}else{let Lr=yP(Te)?xBe(Te):[gw($i(Te.typeParameter))];return Ps(Xe,Te,void 0,Lr)}},markNodeReuse(Xe,Te,Lr){return m(Xe,Te,Lr)},trackExistingEntityName(Xe,Te){return yu(Te,Xe)},trackComputedName(Xe,Te){mi(Te,Xe.enclosingDeclaration,Xe)},getModuleSpecifierOverride(Xe,Te,Lr){let Vr=Xe;if(Vr.bundled||Vr.enclosingFile!==Pn(Lr)){let He=Lr.text,lt=He,Nt=Ki(Te).resolvedSymbol,fr=Te.isTypeOf?111551:788968,jr=Nt&&GC(Nt,Vr.enclosingDeclaration,fr,!1).accessibility===0&&fs(Nt,Vr,fr,!0)[0];if(jr&&LO(jr))He=y_(jr,Vr);else{let gr=XUe(Te);gr&&(He=y_(gr.symbol,Vr))}if(He.includes("/node_modules/")&&(Vr.encounteredError=!0,Vr.tracker.reportLikelyUnsafeImportRequiredError&&Vr.tracker.reportLikelyUnsafeImportRequiredError(He)),He!==lt)return He}},canReuseTypeNode(Xe,Te){return Lm(Xe,Te)},canReuseTypeNodeAnnotation(Xe,Te,Lr,Vr,He){var lt;let Nt=Xe;if(Nt.enclosingDeclaration===void 0)return!1;Vr??(Vr=$i(Te));let fr=(lt=Nt.enclosingSymbolTypes)==null?void 0:lt.get(hc(Vr));fr===void 0&&(Vr.flags&98304?fr=Te.kind===179?GE(Vr):Lq(Vr):G4(Te)?fr=Tl(t0(Te)):fr=di(Vr));let jr=rN(Lr);return si(jr)?!0:(He&&jr&&(jr=Om(jr,!wa(Te))),!!jr&&No(Te,fr,jr)&&hn(Lr,fr))}},typeToTypeNode:(Xe,Te,Lr,Vr,He,lt,Nt,fr)=>ce(Te,Lr,Vr,He,lt,Nt,jr=>kr(Xe,jr),fr),typePredicateToTypePredicateNode:(Xe,Te,Lr,Vr,He)=>ce(Te,Lr,Vr,He,void 0,void 0,lt=>Rm(Xe,lt)),serializeTypeForDeclaration:(Xe,Te,Lr,Vr,He,lt)=>ce(Lr,Vr,He,lt,void 0,void 0,Nt=>Ve.serializeTypeOfDeclaration(Xe,Te,Nt)),serializeReturnTypeForSignature:(Xe,Te,Lr,Vr,He)=>ce(Te,Lr,Vr,He,void 0,void 0,lt=>Ve.serializeReturnTypeForSignature(Xe,$i(Xe),lt)),serializeTypeForExpression:(Xe,Te,Lr,Vr,He)=>ce(Te,Lr,Vr,He,void 0,void 0,lt=>Ve.serializeTypeOfExpression(Xe,lt)),indexInfoToIndexSignatureDeclaration:(Xe,Te,Lr,Vr,He)=>ce(Te,Lr,Vr,He,void 0,void 0,lt=>Fa(Xe,lt,void 0)),signatureToSignatureDeclaration:(Xe,Te,Lr,Vr,He,lt,Nt,fr,jr)=>ce(Lr,Vr,He,lt,Nt,fr,gr=>ho(Xe,Te,gr),jr),symbolToEntityName:(Xe,Te,Lr,Vr,He,lt)=>ce(Lr,Vr,He,lt,void 0,void 0,Nt=>c_(Xe,Nt,Te,!1)),symbolToExpression:(Xe,Te,Lr,Vr,He,lt)=>ce(Lr,Vr,He,lt,void 0,void 0,Nt=>$0(Xe,Nt,Te)),symbolToTypeParameterDeclarations:(Xe,Te,Lr,Vr,He)=>ce(Te,Lr,Vr,He,void 0,void 0,lt=>$u(Xe,lt)),symbolToParameterDeclaration:(Xe,Te,Lr,Vr,He)=>ce(Te,Lr,Vr,He,void 0,void 0,lt=>ei(Xe,lt)),typeParameterToDeclaration:(Xe,Te,Lr,Vr,He,lt,Nt,fr)=>ce(Te,Lr,Vr,He,lt,Nt,jr=>Zp(Xe,jr),fr),symbolTableToDeclarationStatements:(Xe,Te,Lr,Vr,He)=>ce(Te,Lr,Vr,He,void 0,void 0,lt=>Pw(Xe,lt)),symbolToNode:(Xe,Te,Lr,Vr,He,lt)=>ce(Lr,Vr,He,lt,void 0,void 0,Nt=>v(Xe,Nt,Te)),symbolToDeclarations:E};function p(Xe,Te,Lr){let Vr=rN(Te);if(!Xe.mapper)return Vr;let He=Oa(Vr,Xe.mapper);return Lr&&He!==Vr?void 0:He}function m(Xe,Te,Lr){if((!fu(Te)||!(Te.flags&16)||!Xe.enclosingFile||Xe.enclosingFile!==Pn(Ku(Te)))&&(Te=W.cloneNode(Te)),Te===Lr||!Lr)return Te;let Vr=Te.original;for(;Vr&&Vr!==Lr;)Vr=Vr.original;return Vr||Yi(Te,Lr),Xe.enclosingFile&&Xe.enclosingFile===Pn(Ku(Lr))?qt(Te,Lr):Te}function v(Xe,Te,Lr){if(Te.internalFlags&1){if(Xe.valueDeclaration){let He=cs(Xe.valueDeclaration);if(He&&dc(He))return He}let Vr=io(Xe).nameType;if(Vr&&Vr.flags&9216)return Te.enclosingDeclaration=Vr.symbol.valueDeclaration,W.createComputedPropertyName($0(Vr.symbol,Te,Lr))}return $0(Xe,Te,Lr)}function E(Xe,Te,Lr,Vr,He,lt){let Nt=ce(void 0,Lr,void 0,void 0,Vr,He,fr=>se(Xe,fr),lt);return Wn(Nt,fr=>{switch(fr.kind){case 264:return D(fr,Xe);case 267:return R(fr,CA,Xe);case 265:return K(fr,Xe,Te);case 268:return R(fr,I_,Xe);default:return}})}function D(Xe,Te){let Lr=yr(Te.declarations,Co),Vr=Lr&&Lr.length>0?Lr[0]:Xe,He=tm(Vr)&-161;return w_(Vr)&&(Xe=W.updateClassDeclaration(Xe,Xe.modifiers,void 0,Xe.typeParameters,Xe.heritageClauses,Xe.members)),W.replaceModifiers(Xe,He)}function R(Xe,Te,Lr){let Vr=yr(Lr.declarations,Te),He=Vr&&Vr.length>0?Vr[0]:Xe,lt=tm(He)&-161;return W.replaceModifiers(Xe,lt)}function K(Xe,Te,Lr){if(Lr&64)return R(Xe,Af,Te)}function se(Xe,Te){let Lr=Tu(Xe);Te.typeStack.push(Lr.id),Te.typeStack.push(-1);let Vr=ic([Xe]),He=Pw(Vr,Te);return Te.typeStack.pop(),Te.typeStack.pop(),He}function ce(Xe,Te,Lr,Vr,He,lt,Nt,fr){let jr=Vr?.trackSymbol?Vr.moduleResolverHost:(Lr||0)&4?yar(t):void 0;Te=Te||0;let gr=He||(Te&1?hme:cU),Jr={enclosingDeclaration:Xe,enclosingFile:Xe&&Pn(Xe),flags:Te,internalFlags:Lr||0,tracker:void 0,maxTruncationLength:gr,maxExpansionDepth:lt??-1,encounteredError:!1,suppressReportInferenceFallback:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!Q.outFile&&!!Xe&&Lg(Pn(Xe)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,enclosingSymbolTypes:new Map,mapper:void 0,depth:0,typeStack:[],out:{canIncreaseExpansionDepth:!1,truncated:!1}};Jr.tracker=new I8e(Jr,Vr,jr);let Gn=Nt(Jr);return Jr.truncating&&Jr.flags&1&&Jr.tracker.reportTruncationError(),fr&&(fr.canIncreaseExpansionDepth=Jr.out.canIncreaseExpansionDepth,fr.truncated=Jr.out.truncated),Jr.encounteredError?void 0:Gn}function fe(Xe,Te,Lr){let Vr=hc(Te),He=Xe.enclosingSymbolTypes.get(Vr);return Xe.enclosingSymbolTypes.set(Vr,Lr),lt;function lt(){He?Xe.enclosingSymbolTypes.set(Vr,He):Xe.enclosingSymbolTypes.delete(Vr)}}function Ue(Xe){let Te=Xe.flags,Lr=Xe.internalFlags,Vr=Xe.depth;return He;function He(){Xe.flags=Te,Xe.internalFlags=Lr,Xe.depth=Vr}}function Me(Xe){return Xe.maxExpansionDepth>=0&&yt(Xe)}function yt(Xe){return Xe.truncating?Xe.truncating:Xe.truncating=Xe.approximateLength>Xe.maxTruncationLength}function Jt(Xe,Te){for(let Lr=0;Lr0)return Xe.flags&1048576?W.createUnionTypeNode(Gi):W.createIntersectionTypeNode(Gi);!Te.encounteredError&&!(Te.flags&262144)&&(Te.encounteredError=!0);return}if(Nt&48)return $.assert(!!(Xe.flags&524288)),Si(Xe);if(Xe.flags&4194304){let Zr=Xe.type;Te.approximateLength+=6;let Gi=kr(Zr,Te);return W.createTypeOperatorNode(143,Gi)}if(Xe.flags&134217728){let Zr=Xe.texts,Gi=Xe.types,ys=W.createTemplateHead(Zr[0]),Qa=W.createNodeArray(Cr(Gi,(Kc,kl)=>W.createTemplateLiteralTypeSpan(kr(Kc,Te),(klfr(Zr));if(Xe.flags&33554432){let Zr=kr(Xe.baseType,Te),Gi=jM(Xe)&&nBe("NoInfer",!1);return Gi?Ul(Gi,Te,788968,[Zr]):Zr}return $.fail("Should be unreachable.");function fr(Zr){let Gi=kr(Zr.checkType,Te);if(Te.approximateLength+=15,Te.flags&4&&Zr.root.isDistributive&&!(Zr.checkType.flags&262144)){let ls=bh(zc(262144,"T")),id=gp(ls,Te),od=W.createTypeReferenceNode(id);Te.approximateLength+=37;let Qf=_N(Zr.root.checkType,ls,Zr.mapper),Mm=Te.inferTypeParameters;Te.inferTypeParameters=Zr.root.inferTypeParameters;let kh=kr(Oa(Zr.root.extendsType,Qf),Te);Te.inferTypeParameters=Mm;let C2=jr(Oa(p(Te,Zr.root.node.trueType),Qf)),Ow=jr(Oa(p(Te,Zr.root.node.falseType),Qf));return W.createConditionalTypeNode(Gi,W.createInferTypeNode(W.createTypeParameterDeclaration(void 0,W.cloneNode(od.typeName))),W.createConditionalTypeNode(W.createTypeReferenceNode(W.cloneNode(id)),kr(Zr.checkType,Te),W.createConditionalTypeNode(od,kh,C2,Ow),W.createKeywordTypeNode(146)),W.createKeywordTypeNode(146))}let ys=Te.inferTypeParameters;Te.inferTypeParameters=Zr.root.inferTypeParameters;let Qa=kr(Zr.extendsType,Te);Te.inferTypeParameters=ys;let Kc=jr(eD(Zr)),kl=jr(tD(Zr));return W.createConditionalTypeNode(Gi,Qa,Kc,kl)}function jr(Zr){var Gi,ys,Qa;return Zr.flags&1048576?(Gi=Te.visitedTypes)!=null&&Gi.has(ff(Zr))?(Te.flags&131072||(Te.encounteredError=!0,(Qa=(ys=Te.tracker)==null?void 0:ys.reportCyclicStructureError)==null||Qa.call(ys)),Hn(Te)):Ui(Zr,Kc=>kr(Kc,Te)):kr(Zr,Te)}function gr(Zr){return!!cZ(Zr)}function Jr(Zr){return!!Zr.target&&gr(Zr.target)&&!gr(Zr)}function Gn(Zr){var Gi;$.assert(!!(Zr.flags&524288));let ys=Zr.declaration.readonlyToken?W.createToken(Zr.declaration.readonlyToken.kind):void 0,Qa=Zr.declaration.questionToken?W.createToken(Zr.declaration.questionToken.kind):void 0,Kc,kl,ls=iT(Zr),id=av(Zr),od=!FM(Zr)&&!(yw(Zr).flags&2)&&Te.flags&4&&!(e0(Zr).flags&262144&&((Gi=Th(e0(Zr)))==null?void 0:Gi.flags)&4194304);if(FM(Zr)){if(Jr(Zr)&&Te.flags&4){let cD=bh(zc(262144,"T")),q7=gp(cD,Te),_J=Zr.target;kl=W.createTypeReferenceNode(q7),ls=Oa(iT(_J),XEt([av(_J),yw(_J)],[id,cD]))}Kc=W.createTypeOperatorNode(143,kl||kr(yw(Zr),Te))}else if(od){let cD=bh(zc(262144,"T")),q7=gp(cD,Te);kl=W.createTypeReferenceNode(q7),Kc=kl}else Kc=kr(e0(Zr),Te);let Qf=qa(id,Te,Kc),Mm=Ps(Te,Zr.declaration,void 0,[gw($i(Zr.declaration.typeParameter))]),kh=Zr.declaration.nameType?kr(HE(Zr),Te):void 0,C2=kr(x2(ls,!!(zb(Zr)&4)),Te);Mm();let Ow=W.createMappedTypeNode(ys,Qf,kh,Qa,C2,void 0);Te.approximateLength+=10;let m6=Ai(Ow,1);if(Jr(Zr)&&Te.flags&4){let cD=Oa(Th(p(Te,Zr.declaration.typeParameter.constraint.type))||er,Zr.mapper);return W.createConditionalTypeNode(kr(yw(Zr),Te),W.createInferTypeNode(W.createTypeParameterDeclaration(void 0,W.cloneNode(kl.typeName),cD.flags&2?void 0:kr(cD,Te))),m6,W.createKeywordTypeNode(146))}else if(od)return W.createConditionalTypeNode(kr(e0(Zr),Te),W.createInferTypeNode(W.createTypeParameterDeclaration(void 0,W.cloneNode(kl.typeName),W.createTypeOperatorNode(143,kr(yw(Zr),Te)))),m6,W.createKeywordTypeNode(146));return m6}function Si(Zr,Gi=!1,ys=!1){var Qa,Kc;let kl=Zr.id,ls=Zr.symbol;if(ls){if(!!(ro(Zr)&8388608)){let kh=Zr.node;if(gP(kh)&&p(Te,kh)===Zr){let C2=Ve.tryReuseExistingTypeNode(Te,kh);if(C2)return C2}return(Qa=Te.visitedTypes)!=null&&Qa.has(kl)?Hn(Te):Ui(Zr,Io)}let Qf=VQ(Zr)?788968:111551;if(XS(ls.valueDeclaration))return Ul(ls,Te,Qf);if(!ys&&(ls.flags&32&&!Gi&&!KQ(ls)&&!(ls.valueDeclaration&&Co(ls.valueDeclaration)&&Te.flags&2048&&(!ed(ls.valueDeclaration)||GC(ls,Te.enclosingDeclaration,Qf,!1).accessibility!==0))||ls.flags&896||id()))if(Xt(Zr,Te))Te.depth+=1;else return Ul(ls,Te,Qf);if((Kc=Te.visitedTypes)!=null&&Kc.has(kl)){let Mm=lse(Zr);return Mm?Ul(Mm,Te,788968):Hn(Te)}else return Ui(Zr,Io)}else return Io(Zr);function id(){var od;let Qf=!!(ls.flags&8192)&&Pt(ls.declarations,kh=>oc(kh)&&!m2t(cs(kh))),Mm=!!(ls.flags&16)&&(ls.parent||X(ls.declarations,kh=>kh.parent.kind===308||kh.parent.kind===269));if(Qf||Mm)return(!!(Te.flags&4096)||((od=Te.visitedTypes)==null?void 0:od.has(kl)))&&(!(Te.flags&8)||v7(ls,Te.enclosingDeclaration))}}function Ui(Zr,Gi){var ys,Qa,Kc;let kl=Zr.id,ls=ro(Zr)&16&&Zr.symbol&&Zr.symbol.flags&32,id=ro(Zr)&4&&Zr.node?"N"+hl(Zr.node):Zr.flags&16777216?"N"+hl(Zr.root.node):Zr.symbol?(ls?"+":"")+hc(Zr.symbol):void 0;Te.visitedTypes||(Te.visitedTypes=new Set),id&&!Te.symbolDepth&&(Te.symbolDepth=new Map);let od=Te.maxExpansionDepth>=0?void 0:Te.enclosingDeclaration&&Ki(Te.enclosingDeclaration),Qf=`${ff(Zr)}|${Te.flags}|${Te.internalFlags}`;od&&(od.serializedTypes||(od.serializedTypes=new Map));let Mm=(ys=od?.serializedTypes)==null?void 0:ys.get(Qf);if(Mm)return(Qa=Mm.trackedSymbols)==null||Qa.forEach(([Gb,XM,Pce])=>Te.tracker.trackSymbol(Gb,XM,Pce)),Mm.truncating&&(Te.truncating=!0),Te.approximateLength+=Mm.addedLength,q7(Mm.node);let kh;if(id){if(kh=Te.symbolDepth.get(id)||0,kh>10)return Hn(Te);Te.symbolDepth.set(id,kh+1)}Te.visitedTypes.add(kl);let C2=Te.trackedSymbols;Te.trackedSymbols=void 0;let Ow=Te.approximateLength,m6=Gi(Zr),cD=Te.approximateLength-Ow;return!Te.reportedDiagnostic&&!Te.encounteredError&&((Kc=od?.serializedTypes)==null||Kc.set(Qf,{node:m6,truncating:Te.truncating,addedLength:cD,trackedSymbols:Te.trackedSymbols})),Te.visitedTypes.delete(kl),id&&Te.symbolDepth.set(id,kh),Te.trackedSymbols=C2,m6;function q7(Gb){return!fu(Gb)&&vs(Gb)===Gb?Gb:m(Te,W.cloneNode(Dn(Gb,q7,void 0,_J,q7)),Gb)}function _J(Gb,XM,Pce,ize,oze){return Gb&&Gb.length===0?qt(W.createNodeArray(void 0,Gb.hasTrailingComma),Gb):Bn(Gb,XM,Pce,ize,oze)}}function Io(Zr){if(Xh(Zr)||Zr.containsError)return Gn(Zr);let Gi=jv(Zr);if(!Gi.properties.length&&!Gi.indexInfos.length){if(!Gi.callSignatures.length&&!Gi.constructSignatures.length)return Te.approximateLength+=2,Ai(W.createTypeLiteralNode(void 0),1);if(Gi.callSignatures.length===1&&!Gi.constructSignatures.length){let ls=Gi.callSignatures[0];return ho(ls,185,Te)}if(Gi.constructSignatures.length===1&&!Gi.callSignatures.length){let ls=Gi.constructSignatures[0];return ho(ls,186,Te)}}let ys=yr(Gi.constructSignatures,ls=>!!(ls.flags&4));if(Pt(ys)){let ls=Cr(ys,aN);return Gi.callSignatures.length+(Gi.constructSignatures.length-ys.length)+Gi.indexInfos.length+(Te.flags&2048?Lo(Gi.properties,od=>!(od.flags&4194304)):te(Gi.properties))&&ls.push(Y3(Gi)),kr(Ac(ls),Te)}let Qa=Ue(Te);Te.flags|=4194304;let Kc=rl(Gi);Qa();let kl=W.createTypeLiteralNode(Kc);return Te.approximateLength+=2,Ai(kl,Te.flags&1024?0:1),kl}function bo(Zr){let Gi=Bu(Zr);if(Zr.target===tl||Zr.target===Uc){if(Te.flags&2){let Kc=kr(Gi[0],Te);return W.createTypeReferenceNode(Zr.target===tl?"Array":"ReadonlyArray",[Kc])}let ys=kr(Gi[0],Te),Qa=W.createArrayTypeNode(ys);return Zr.target===tl?Qa:W.createTypeOperatorNode(148,Qa)}else if(Zr.target.objectFlags&8){if(Gi=Zo(Gi,(ys,Qa)=>x2(ys,!!(Zr.target.elementFlags[Qa]&2))),Gi.length>0){let ys=ZE(Zr),Qa=vi(Gi.slice(0,ys),Te);if(Qa){let{labeledElementDeclarations:Kc}=Zr.target;for(let ls=0;ls0){let od=0;if(Zr.target.typeParameters&&(od=Math.min(Zr.target.typeParameters.length,Gi.length),(Xg(Zr,Cxe(!1))||Xg(Zr,fEt(!1))||Xg(Zr,bse(!1))||Xg(Zr,dEt(!1)))&&(!Zr.node||!Ug(Zr.node)||!Zr.node.typeArguments||Zr.node.typeArguments.length0;){let Qf=Gi[od-1],Mm=Zr.target.typeParameters[od-1],kh=r6(Mm);if(!kh||!cT(Qf,kh))break;od--}kl=vi(Gi.slice(Qa,od),Te)}let ls=Ue(Te);Te.flags|=16;let id=Ul(Zr.symbol,Te,788968,kl);return ls(),Kc?ti(Kc,id):id}}}function ti(Zr,Gi){if(AS(Zr)){let ys=Zr.typeArguments,Qa=Zr.qualifier;Qa&&(ct(Qa)?ys!==t3(Qa)&&(Qa=vE(W.cloneNode(Qa),ys)):ys!==t3(Qa.right)&&(Qa=W.updateQualifiedName(Qa,Qa.left,vE(W.cloneNode(Qa.right),ys)))),ys=Gi.typeArguments;let Kc=qo(Gi);for(let kl of Kc)Qa=Qa?W.createQualifiedName(Qa,kl):kl;return W.updateImportTypeNode(Zr,Zr.argument,Zr.attributes,Qa,ys,Zr.isTypeOf)}else{let ys=Zr.typeArguments,Qa=Zr.typeName;ct(Qa)?ys!==t3(Qa)&&(Qa=vE(W.cloneNode(Qa),ys)):ys!==t3(Qa.right)&&(Qa=W.updateQualifiedName(Qa,Qa.left,vE(W.cloneNode(Qa.right),ys))),ys=Gi.typeArguments;let Kc=qo(Gi);for(let kl of Kc)Qa=W.createQualifiedName(Qa,kl);return W.updateTypeReferenceNode(Zr,Qa,ys)}}function qo(Zr){let Gi=Zr.typeName,ys=[];for(;!ct(Gi);)ys.unshift(Gi.right),Gi=Gi.left;return ys.unshift(Gi),ys}function ss(Zr,Gi,ys){if(Zr.components&&ht(Zr.components,Kc=>{var kl;return!!(Kc.name&&dc(Kc.name)&&ru(Kc.name.expression)&&Gi.enclosingDeclaration&&((kl=b7(Kc.name.expression,Gi.enclosingDeclaration,!1))==null?void 0:kl.accessibility)===0)})){let Kc=yr(Zr.components,kl=>!NM(kl));return Cr(Kc,kl=>(mi(kl.name.expression,Gi.enclosingDeclaration,Gi),m(Gi,W.createPropertySignature(Zr.isReadonly?[W.createModifier(148)]:void 0,kl.name,(Zm(kl)||ps(kl)||G1(kl)||Ep(kl)||Ax(kl)||hS(kl))&&kl.questionToken?W.createToken(58):void 0,ys||kr(di(kl.symbol),Gi)),kl)))}return[Fa(Zr,Gi,ys)]}function rl(Zr){if(yt(Te))return Te.out.truncated=!0,Te.flags&1?[nz(W.createNotEmittedTypeElement(),3,"elided")]:[W.createPropertySignature(void 0,"...",void 0,void 0)];Te.typeStack.push(-1);let Gi=[];for(let Kc of Zr.callSignatures)Gi.push(ho(Kc,180,Te));for(let Kc of Zr.constructSignatures)Kc.flags&4||Gi.push(ho(Kc,181,Te));for(let Kc of Zr.indexInfos)Gi.push(...ss(Kc,Te,Zr.objectFlags&1024?Hn(Te):void 0));let ys=Zr.properties;if(!ys)return Te.typeStack.pop(),Gi;let Qa=0;for(let Kc of ys)if(!(Nw(Te)&&Kc.flags&4194304)){if(Qa++,Te.flags&2048){if(Kc.flags&4194304)continue;S0(Kc)&6&&Te.tracker.reportPrivateInBaseOfClassExpression&&Te.tracker.reportPrivateInBaseOfClassExpression(oa(Kc.escapedName))}if(yt(Te)&&Qa+2!(Io.flags&32768)),0);for(let Io of Ui){let bo=ho(Io,174,Te,{name:fr,questionToken:jr});Lr.push(Si(bo,Io.declaration||Xe.valueDeclaration))}if(Ui.length||!jr)return}let gr;fi(Xe,Te)?gr=Hn(Te):(He&&(Te.reverseMappedStack||(Te.reverseMappedStack=[]),Te.reverseMappedStack.push(Xe)),gr=lt?Vi(Te,void 0,lt,Xe):W.createKeywordTypeNode(133),He&&Te.reverseMappedStack.pop());let Jr=Vv(Xe)?[W.createToken(148)]:void 0;Jr&&(Te.approximateLength+=9);let Gn=W.createPropertySignature(Jr,fr,jr,gr);Lr.push(Si(Gn,Xe.valueDeclaration));function Si(Ui,Io){var bo;let ti=(bo=Xe.declarations)==null?void 0:bo.find(qo=>qo.kind===349);if(ti){let qo=oG(ti.comment);qo&&SA(Ui,[{kind:3,text:`* - * `+qo.replace(/\n/g,` - * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else Io&&rn(Te,Ui,Io);return Ui}}function rn(Xe,Te,Lr){return Xe.enclosingFile&&Xe.enclosingFile===Pn(Lr)?Y_(Te,Lr):Te}function vi(Xe,Te,Lr){if(Pt(Xe)){if(yt(Te))if(Te.out.truncated=!0,Lr){if(Xe.length>2)return[kr(Xe[0],Te),Te.flags&1?gC(W.createKeywordTypeNode(133),3,`... ${Xe.length-2} more elided ...`):W.createTypeReferenceNode(`... ${Xe.length-2} more ...`,void 0),kr(Xe[Xe.length-1],Te)]}else return[Te.flags&1?gC(W.createKeywordTypeNode(133),3,"elided"):W.createTypeReferenceNode("...",void 0)];let He=!(Te.flags&64)?d_():void 0,lt=[],Nt=0;for(let fr of Xe){if(Nt++,yt(Te)&&Nt+2{if(!K4e(jr,([gr],[Jr])=>wo(gr,Jr)))for(let[gr,Jr]of jr)lt[Jr]=kr(gr,Te)}),fr()}return lt}}function wo(Xe,Te){return Xe===Te||!!Xe.symbol&&Xe.symbol===Te.symbol||!!Xe.aliasSymbol&&Xe.aliasSymbol===Te.aliasSymbol}function Fa(Xe,Te,Lr){let Vr=l6e(Xe)||"x",He=kr(Xe.keyType,Te),lt=W.createParameterDeclaration(void 0,void 0,Vr,void 0,He,void 0);return Lr||(Lr=kr(Xe.type||at,Te)),!Xe.type&&!(Te.flags&2097152)&&(Te.encounteredError=!0),Te.approximateLength+=Vr.length+4,W.createIndexSignature(Xe.isReadonly?[W.createToken(148)]:void 0,[lt],Lr)}function ho(Xe,Te,Lr,Vr){var He;let lt,Nt,fr=x2t(Xe,!0)[0],jr=Ps(Lr,Xe.declaration,fr,Xe.typeParameters,Xe.parameters,Xe.mapper);Lr.approximateLength+=3,Lr.flags&32&&Xe.target&&Xe.mapper&&Xe.target.typeParameters?Nt=Xe.target.typeParameters.map(bo=>kr(Oa(bo,Xe.mapper),Lr)):lt=Xe.typeParameters&&Xe.typeParameters.map(bo=>Zp(bo,Lr));let gr=Ue(Lr);Lr.flags&=-257;let Jr=(Pt(fr,bo=>bo!==fr[fr.length-1]&&!!(Fp(bo)&32768))?Xe.parameters:fr).map(bo=>ei(bo,Lr,Te===177)),Gn=Lr.flags&33554432?void 0:El(Xe,Lr);Gn&&Jr.unshift(Gn),gr();let Si=wc(Lr,Xe),Ui=Vr?.modifiers;if(Te===186&&Xe.flags&4){let bo=TS(Ui);Ui=W.createModifiersFromModifierFlags(bo|64)}let Io=Te===180?W.createCallSignature(lt,Jr,Si):Te===181?W.createConstructSignature(lt,Jr,Si):Te===174?W.createMethodSignature(Ui,Vr?.name??W.createIdentifier(""),Vr?.questionToken,lt,Jr,Si):Te===175?W.createMethodDeclaration(Ui,void 0,Vr?.name??W.createIdentifier(""),void 0,lt,Jr,Si,void 0):Te===177?W.createConstructorDeclaration(Ui,Jr,void 0):Te===178?W.createGetAccessorDeclaration(Ui,Vr?.name??W.createIdentifier(""),Jr,Si,void 0):Te===179?W.createSetAccessorDeclaration(Ui,Vr?.name??W.createIdentifier(""),Jr,void 0):Te===182?W.createIndexSignature(Ui,Jr,Si):Te===318?W.createJSDocFunctionType(Jr,Si):Te===185?W.createFunctionTypeNode(lt,Jr,Si??W.createTypeReferenceNode(W.createIdentifier(""))):Te===186?W.createConstructorTypeNode(Ui,lt,Jr,Si??W.createTypeReferenceNode(W.createIdentifier(""))):Te===263?W.createFunctionDeclaration(Ui,void 0,Vr?.name?Ba(Vr.name,ct):W.createIdentifier(""),lt,Jr,Si,void 0):Te===219?W.createFunctionExpression(Ui,void 0,Vr?.name?Ba(Vr.name,ct):W.createIdentifier(""),lt,Jr,Si,W.createBlock([])):Te===220?W.createArrowFunction(Ui,lt,Jr,Si,void 0,W.createBlock([])):$.assertNever(Te);if(Nt&&(Io.typeArguments=W.createNodeArray(Nt)),((He=Xe.declaration)==null?void 0:He.kind)===324&&Xe.declaration.parent.kind===340){let bo=Sp(Xe.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(ti=>ti.replace(/^\s+/," ")).join(` -`);gC(Io,3,bo,!0)}return jr?.(),Io}function pa(Xe){c&&c.throwIfCancellationRequested&&c.throwIfCancellationRequested();let Te,Lr,Vr=!1,He=Xe.tracker,lt=Xe.trackedSymbols;Xe.trackedSymbols=void 0;let Nt=Xe.encounteredError;return Xe.tracker=new I8e(Xe,{...He.inner,reportCyclicStructureError(){fr(()=>He.reportCyclicStructureError())},reportInaccessibleThisError(){fr(()=>He.reportInaccessibleThisError())},reportInaccessibleUniqueSymbolError(){fr(()=>He.reportInaccessibleUniqueSymbolError())},reportLikelyUnsafeImportRequiredError(Jr){fr(()=>He.reportLikelyUnsafeImportRequiredError(Jr))},reportNonSerializableProperty(Jr){fr(()=>He.reportNonSerializableProperty(Jr))},reportPrivateInBaseOfClassExpression(Jr){fr(()=>He.reportPrivateInBaseOfClassExpression(Jr))},trackSymbol(Jr,Gn,Si){return(Te??(Te=[])).push([Jr,Gn,Si]),!1},moduleResolverHost:Xe.tracker.moduleResolverHost},Xe.tracker.moduleResolverHost),{startRecoveryScope:jr,finalizeBoundary:gr,markError:fr,hadError:()=>Vr};function fr(Jr){Vr=!0,Jr&&(Lr??(Lr=[])).push(Jr)}function jr(){let Jr=Te?.length??0,Gn=Lr?.length??0;return()=>{Vr=!1,Te&&(Te.length=Jr),Lr&&(Lr.length=Gn)}}function gr(){return Xe.tracker=He,Xe.trackedSymbols=lt,Xe.encounteredError=Nt,Lr?.forEach(Jr=>Jr()),Vr?!1:(Te?.forEach(([Jr,Gn,Si])=>Xe.tracker.trackSymbol(Jr,Gn,Si)),!0)}}function Ps(Xe,Te,Lr,Vr,He,lt){let Nt=WZ(Xe),fr,jr,gr=Xe.enclosingDeclaration,Jr=Xe.mapper;if(lt&&(Xe.mapper=lt),Xe.enclosingDeclaration&&Te){let Si=function(Ui,Io){$.assert(Xe.enclosingDeclaration);let bo;Ki(Xe.enclosingDeclaration).fakeScopeForSignatureDeclaration===Ui?bo=Xe.enclosingDeclaration:Xe.enclosingDeclaration.parent&&Ki(Xe.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===Ui&&(bo=Xe.enclosingDeclaration.parent),$.assertOptionalNode(bo,Vs);let ti=bo?.locals??ic(),qo,ss;if(Io((rl,Zr)=>{if(bo){let Gi=ti.get(rl);Gi?ss=jt(ss,{name:rl,oldSymbol:Gi}):qo=jt(qo,rl)}ti.set(rl,Zr)}),bo)return function(){X(qo,Zr=>ti.delete(Zr)),X(ss,Zr=>ti.set(Zr.name,Zr.oldSymbol))};{let rl=W.createBlock(j);Ki(rl).fakeScopeForSignatureDeclaration=Ui,rl.locals=ti,xl(rl,Xe.enclosingDeclaration),Xe.enclosingDeclaration=rl}};var Gn=Si;fr=Pt(Lr)?Si("params",Ui=>{if(Lr)for(let Io=0;Io{if(wa(qo)&&$s(qo.name))return ss(qo.name),!0;return;function ss(Zr){X(Zr.elements,Gi=>{switch(Gi.kind){case 233:return;case 209:return rl(Gi);default:return $.assertNever(Gi)}})}function rl(Zr){if($s(Zr.name))return ss(Zr.name);let Gi=$i(Zr);Ui(Gi.escapedName,Gi)}})||Ui(bo.escapedName,bo)}}):void 0,Xe.flags&4&&Pt(Vr)&&(jr=Si("typeParams",Ui=>{for(let Io of Vr??j){let bo=gp(Io,Xe).escapedText;Ui(bo,Io.symbol)}}))}return()=>{fr?.(),jr?.(),Nt(),Xe.enclosingDeclaration=gr,Xe.mapper=Jr}}function El(Xe,Te){if(Xe.thisParameter)return ei(Xe.thisParameter,Te);if(Xe.declaration&&Ei(Xe.declaration)){let Lr=d0(Xe.declaration);if(Lr&&Lr.typeExpression)return W.createParameterDeclaration(void 0,void 0,"this",void 0,kr(p(Te,Lr.typeExpression),Te))}}function qa(Xe,Te,Lr){let Vr=Ue(Te);Te.flags&=-513;let He=W.createModifiersFromModifierFlags(zBe(Xe)),lt=gp(Xe,Te),Nt=r6(Xe),fr=Nt&&kr(Nt,Te);return Vr(),W.createTypeParameterDeclaration(He,lt,Lr,fr)}function rp(Xe,Te,Lr){return!Jt(Xe,Lr)&&Te&&p(Lr,Te)===Xe&&Ve.tryReuseExistingTypeNode(Lr,Te)||kr(Xe,Lr)}function Zp(Xe,Te,Lr=Th(Xe)){let Vr=Lr&&rp(Lr,Sxe(Xe),Te);return qa(Xe,Te,Vr)}function Rm(Xe,Te){let Lr=Xe.kind===2||Xe.kind===3?W.createToken(131):void 0,Vr=Xe.kind===1||Xe.kind===3?Ai(W.createIdentifier(Xe.parameterName),16777216):W.createThisTypeNode(),He=Xe.type&&kr(Xe.type,Te);return W.createTypePredicateNode(Lr,Vr,He)}function Mn(Xe){let Te=Qu(Xe,170);if(Te)return Te;if(!wx(Xe))return Qu(Xe,342)}function ei(Xe,Te,Lr){let Vr=Mn(Xe),He=di(Xe),lt=Vi(Te,Vr,He,Xe),Nt=!(Te.flags&8192)&&Lr&&Vr&&l1(Vr)?Cr(Qk(Vr),W.cloneNode):void 0,jr=Vr&&Sb(Vr)||Fp(Xe)&32768?W.createToken(26):void 0,gr=ha(Xe,Vr,Te),Gn=Vr&&eZ(Vr)||Fp(Xe)&16384?W.createToken(58):void 0,Si=W.createParameterDeclaration(Nt,jr,gr,Gn,lt,void 0);return Te.approximateLength+=vp(Xe).length+3,Si}function ha(Xe,Te,Lr){return Te&&Te.name?Te.name.kind===80?Ai(W.cloneNode(Te.name),16777216):Te.name.kind===167?Ai(W.cloneNode(Te.name.right),16777216):Vr(Te.name):vp(Xe);function Vr(He){return lt(He);function lt(Nt){Lr.tracker.canTrackSymbol&&dc(Nt)&&Oje(Nt)&&mi(Nt.expression,Lr.enclosingDeclaration,Lr);let fr=Dn(Nt,lt,void 0,void 0,lt);return Vc(fr)&&(fr=W.updateBindingElement(fr,fr.dotDotDotToken,fr.propertyName,fr.name,void 0)),fu(fr)||(fr=W.cloneNode(fr)),Ai(fr,16777217)}}}function mi(Xe,Te,Lr){if(!Lr.tracker.canTrackSymbol)return;let Vr=_h(Xe),He=$t(Te,Vr.escapedText,1160127,void 0,!0);if(He)Lr.tracker.trackSymbol(He,Te,111551);else{let lt=$t(Vr,Vr.escapedText,1160127,void 0,!0);lt&&Lr.tracker.trackSymbol(lt,Te,111551)}}function fs(Xe,Te,Lr,Vr){return Te.tracker.trackSymbol(Xe,Te.enclosingDeclaration,Lr),Rl(Xe,Te,Lr,Vr)}function Rl(Xe,Te,Lr,Vr){let He;return!(Xe.flags&262144)&&(Te.enclosingDeclaration||Te.flags&64)&&!(Te.internalFlags&4)?(He=$.checkDefined(Nt(Xe,Lr,!0)),$.assert(He&&He.length>0)):He=[Xe],He;function Nt(fr,jr,gr){let Jr=qE(fr,Te.enclosingDeclaration,jr,!!(Te.flags&128)),Gn;if(!Jr||ZP(Jr[0],Te.enclosingDeclaration,Jr.length===1?jr:nv(jr))){let Ui=QP(Jr?Jr[0]:fr,Te.enclosingDeclaration,jr);if(te(Ui)){Gn=Ui.map(ti=>Pt(ti.declarations,XP)?y_(ti,Te):void 0);let Io=Ui.map((ti,qo)=>qo);Io.sort(Si);let bo=Io.map(ti=>Ui[ti]);for(let ti of bo){let qo=Nt(ti,nv(jr),!1);if(qo){if(ti.exports&&ti.exports.get("export=")&&Pe(ti.exports.get("export="),fr)){Jr=qo;break}Jr=qo.concat(Jr||[B(ti,fr)||fr]);break}}}}if(Jr)return Jr;if(gr||!(fr.flags&6144))return!gr&&!Vr&&X(fr.declarations,XP)?void 0:[fr];function Si(Ui,Io){let bo=Gn[Ui],ti=Gn[Io];if(bo&&ti){let qo=ch(ti);return ch(bo)===qo?Rie(bo)-Rie(ti):qo?-1:1}return 0}}}function $u(Xe,Te){let Lr;return ZM(Xe).flags&524384&&(Lr=W.createNodeArray(Cr(Dc(Xe),He=>Zp(He,Te)))),Lr}function hf(Xe,Te,Lr){var Vr;$.assert(Xe&&0<=Te&&TeXE(Jr,jr.links.mapper)),Lr)}else Nt=$u(He,Lr)}return Nt}function Hc(Xe){return vP(Xe.objectType)?Hc(Xe.objectType):Xe}function y_(Xe,Te,Lr){let Vr=Qu(Xe,308);if(!Vr){let Gn=Je(Xe.declarations,Si=>X3(Si,Xe));Gn&&(Vr=Qu(Gn,308))}if(Vr&&Vr.moduleName!==void 0)return Vr.moduleName;if(!Vr&&D8e.test(Xe.escapedName))return Xe.escapedName.substring(1,Xe.escapedName.length-1);if(!Te.enclosingFile||!Te.tracker.moduleResolverHost)return D8e.test(Xe.escapedName)?Xe.escapedName.substring(1,Xe.escapedName.length-1):Pn(Ame(Xe)).fileName;let He=Ku(Te.enclosingDeclaration),lt=F6e(He)?qO(He):void 0,Nt=Te.enclosingFile,fr=Lr||lt&&t.getModeForUsageLocation(Nt,lt)||Nt&&t.getDefaultResolutionModeForFile(Nt),jr=Ez(Nt.path,fr),gr=io(Xe),Jr=gr.specifierCache&&gr.specifierCache.get(jr);if(!Jr){let Gn=!!Q.outFile,{moduleResolverHost:Si}=Te.tracker,Ui=Gn?{...Q,baseUrl:Si.getCommonSourceDirectory()}:Q;Jr=To(Hpt(Xe,Qn,Ui,Nt,Si,{importModuleSpecifierPreference:Gn?"non-relative":"project-relative",importModuleSpecifierEnding:Gn?"minimal":fr===99?"js":void 0},{overrideImportMode:Lr})),gr.specifierCache??(gr.specifierCache=new Map),gr.specifierCache.set(jr,Jr)}return Jr}function R_(Xe){let Te=W.createIdentifier(oa(Xe.escapedName));return Xe.parent?W.createQualifiedName(R_(Xe.parent),Te):Te}function Ul(Xe,Te,Lr,Vr){let He=fs(Xe,Te,Lr,!(Te.flags&16384)),lt=Lr===111551;if(Pt(He[0].declarations,XP)){let jr=He.length>1?fr(He,He.length-1,1):void 0,gr=Vr||hf(He,0,Te),Jr=Pn(Ku(Te.enclosingDeclaration)),Gn=yG(He[0]),Si,Ui;if((km(Q)===3||km(Q)===99)&&Gn?.impliedNodeFormat===99&&Gn.impliedNodeFormat!==Jr?.impliedNodeFormat&&(Si=y_(He[0],Te,99),Ui=W.createImportAttributes(W.createNodeArray([W.createImportAttribute(W.createStringLiteral("resolution-mode"),W.createStringLiteral("import"))]))),Si||(Si=y_(He[0],Te)),!(Te.flags&67108864)&&km(Q)!==1&&Si.includes("/node_modules/")){let bo=Si;if(km(Q)===3||km(Q)===99){let ti=Jr?.impliedNodeFormat===99?1:99;Si=y_(He[0],Te,ti),Si.includes("/node_modules/")?Si=bo:Ui=W.createImportAttributes(W.createNodeArray([W.createImportAttribute(W.createStringLiteral("resolution-mode"),W.createStringLiteral(ti===99?"import":"require"))]))}Ui||(Te.encounteredError=!0,Te.tracker.reportLikelyUnsafeImportRequiredError&&Te.tracker.reportLikelyUnsafeImportRequiredError(bo))}let Io=W.createLiteralTypeNode(W.createStringLiteral(Si));if(Te.approximateLength+=Si.length+10,!jr||uh(jr)){if(jr){let bo=ct(jr)?jr:jr.right;vE(bo,void 0)}return W.createImportTypeNode(Io,Ui,jr,gr,lt)}else{let bo=Hc(jr),ti=bo.objectType.typeName;return W.createIndexedAccessTypeNode(W.createImportTypeNode(Io,Ui,ti,gr,lt),bo.indexType)}}let Nt=fr(He,He.length-1,0);if(vP(Nt))return Nt;if(lt)return W.createTypeQueryNode(Nt);{let jr=ct(Nt)?Nt:Nt.right,gr=t3(jr);return vE(jr,void 0),W.createTypeReferenceNode(Nt,gr)}function fr(jr,gr,Jr){let Gn=gr===jr.length-1?Vr:hf(jr,gr,Te),Si=jr[gr],Ui=jr[gr-1],Io;if(gr===0)Te.flags|=16777216,Io=hw(Si,Te),Te.approximateLength+=(Io?Io.length:0)+1,Te.flags^=16777216;else if(Ui&&Zg(Ui)){let ti=Zg(Ui);Ad(ti,(qo,ss)=>{if(Pe(qo,Si)&&!QQ(ss)&&ss!=="export=")return Io=oa(ss),!0})}if(Io===void 0){let ti=Je(Si.declarations,cs);if(ti&&dc(ti)&&uh(ti.expression)){let qo=fr(jr,gr-1,Jr);return uh(qo)?W.createIndexedAccessTypeNode(W.createParenthesizedType(W.createTypeQueryNode(qo)),W.createTypeQueryNode(ti.expression)):qo}Io=hw(Si,Te)}if(Te.approximateLength+=Io.length+1,!(Te.flags&16)&&Ui&&Ub(Ui)&&Ub(Ui).get(Si.escapedName)&&Pe(Ub(Ui).get(Si.escapedName),Si)){let ti=fr(jr,gr-1,Jr);return vP(ti)?W.createIndexedAccessTypeNode(ti,W.createLiteralTypeNode(W.createStringLiteral(Io))):W.createIndexedAccessTypeNode(W.createTypeReferenceNode(ti,Gn),W.createLiteralTypeNode(W.createStringLiteral(Io)))}let bo=Ai(W.createIdentifier(Io),16777216);if(Gn&&vE(bo,W.createNodeArray(Gn)),bo.symbol=Si,gr>Jr){let ti=fr(jr,gr-1,Jr);return uh(ti)?W.createQualifiedName(ti,bo):$.fail("Impossible construct - an export of an indexed access cannot be reachable")}return bo}}function n0(Xe,Te,Lr){let Vr=$t(Te.enclosingDeclaration,Xe,788968,void 0,!1);return Vr&&Vr.flags&262144?Vr!==Lr.symbol:!1}function gp(Xe,Te){var Lr,Vr,He,lt;if(Te.flags&4&&Te.typeParameterNames){let jr=Te.typeParameterNames.get(ff(Xe));if(jr)return jr}let Nt=c_(Xe.symbol,Te,788968,!0);if(!(Nt.kind&80))return W.createIdentifier("(Missing type parameter)");let fr=(Vr=(Lr=Xe.symbol)==null?void 0:Lr.declarations)==null?void 0:Vr[0];if(fr&&Zu(fr)&&(Nt=m(Te,Nt,fr.name)),Te.flags&4){let jr=Nt.escapedText,gr=((He=Te.typeParameterNamesByTextNextNameCount)==null?void 0:He.get(jr))||0,Jr=jr;for(;(lt=Te.typeParameterNamesByText)!=null&<.has(Jr)||n0(Jr,Te,Xe);)gr++,Jr=`${jr}_${gr}`;if(Jr!==jr){let Gn=t3(Nt);Nt=W.createIdentifier(Jr),vE(Nt,Gn)}Te.mustCreateTypeParametersNamesLookups&&(Te.mustCreateTypeParametersNamesLookups=!1,Te.typeParameterNames=new Map(Te.typeParameterNames),Te.typeParameterNamesByTextNextNameCount=new Map(Te.typeParameterNamesByTextNextNameCount),Te.typeParameterNamesByText=new Set(Te.typeParameterNamesByText)),Te.typeParameterNamesByTextNextNameCount.set(jr,gr),Te.typeParameterNames.set(ff(Xe),Nt),Te.typeParameterNamesByText.add(Jr)}return Nt}function c_(Xe,Te,Lr,Vr){let He=fs(Xe,Te,Lr);return Vr&&He.length!==1&&!Te.encounteredError&&!(Te.flags&65536)&&(Te.encounteredError=!0),lt(He,He.length-1);function lt(Nt,fr){let jr=hf(Nt,fr,Te),gr=Nt[fr];fr===0&&(Te.flags|=16777216);let Jr=hw(gr,Te);fr===0&&(Te.flags^=16777216);let Gn=Ai(W.createIdentifier(Jr),16777216);return jr&&vE(Gn,W.createNodeArray(jr)),Gn.symbol=gr,fr>0?W.createQualifiedName(lt(Nt,fr-1),Gn):Gn}}function $0(Xe,Te,Lr){let Vr=fs(Xe,Te,Lr);return He(Vr,Vr.length-1);function He(lt,Nt){let fr=hf(lt,Nt,Te),jr=lt[Nt];Nt===0&&(Te.flags|=16777216);let gr=hw(jr,Te);Nt===0&&(Te.flags^=16777216);let Jr=gr.charCodeAt(0);if(MG(Jr)&&Pt(jr.declarations,XP)){let Gn=y_(jr,Te);return Te.approximateLength+=2+Gn.length,W.createStringLiteral(Gn)}if(Nt===0||ige(gr,re)){let Gn=Ai(W.createIdentifier(gr),16777216);return fr&&vE(Gn,W.createNodeArray(fr)),Gn.symbol=jr,Te.approximateLength+=1+gr.length,Nt>0?W.createPropertyAccessExpression(He(lt,Nt-1),Gn):Gn}else{Jr===91&&(gr=gr.substring(1,gr.length-1),Jr=gr.charCodeAt(0));let Gn;if(MG(Jr)&&!(jr.flags&8)){let Si=i1(gr).replace(/\\./g,Ui=>Ui.substring(1));Te.approximateLength+=Si.length+2,Gn=W.createStringLiteral(Si,Jr===39)}else""+ +gr===gr&&(Te.approximateLength+=gr.length,Gn=W.createNumericLiteral(+gr));if(!Gn){let Si=Ai(W.createIdentifier(gr),16777216);fr&&vE(Si,W.createNodeArray(fr)),Si.symbol=jr,Te.approximateLength+=gr.length,Gn=Si}return Te.approximateLength+=2,W.createElementAccessExpression(He(lt,Nt-1),Gn)}}}function uJ(Xe){let Te=cs(Xe);return Te?dc(Te)?!!(Va(Te.expression).flags&402653316):mu(Te)?!!(Va(Te.argumentExpression).flags&402653316):Ic(Te):!1}function VZ(Xe){let Te=cs(Xe);return!!(Te&&Ic(Te)&&(Te.singleQuote||!fu(Te)&&Ca(Sp(Te,!1),"'")))}function pJ(Xe,Te){let Lr=l2e(Xe);if(Lr)if(!!Te.tracker.reportPrivateInBaseOfClassExpression&&Te.flags&2048){let gr=oa(Xe.escapedName);return gr=gr.replace(/__#\d+@#/g,"__#private@#"),EH(gr,$c(Q),!1,!0,!!(Xe.flags&8192))}else return Lr;let Vr=!!te(Xe.declarations)&&ht(Xe.declarations,uJ),He=!!te(Xe.declarations)&&ht(Xe.declarations,VZ),lt=!!(Xe.flags&8192),Nt=by(Xe,Te,He,Vr,lt);if(Nt)return Nt;let fr=oa(Xe.escapedName);return EH(fr,$c(Q),He,Vr,lt)}function by(Xe,Te,Lr,Vr,He){let lt=io(Xe).nameType;if(lt){if(lt.flags&384){let Nt=""+lt.value;return!Jd(Nt,$c(Q))&&(Vr||!$x(Nt))?W.createStringLiteral(Nt,!!Lr):$x(Nt)&&Ca(Nt,"-")?W.createComputedPropertyName(W.createPrefixUnaryExpression(41,W.createNumericLiteral(-Nt))):EH(Nt,$c(Q),Lr,Vr,He)}if(lt.flags&8192)return W.createComputedPropertyName($0(lt.symbol,Te,111551))}}function WZ(Xe){let Te=Xe.mustCreateTypeParameterSymbolList,Lr=Xe.mustCreateTypeParametersNamesLookups;Xe.mustCreateTypeParameterSymbolList=!0,Xe.mustCreateTypeParametersNamesLookups=!0;let Vr=Xe.typeParameterNames,He=Xe.typeParameterNamesByText,lt=Xe.typeParameterNamesByTextNextNameCount,Nt=Xe.typeParameterSymbolList;return()=>{Xe.typeParameterNames=Vr,Xe.typeParameterNamesByText=He,Xe.typeParameterNamesByTextNextNameCount=lt,Xe.typeParameterSymbolList=Nt,Xe.mustCreateTypeParameterSymbolList=Te,Xe.mustCreateTypeParametersNamesLookups=Lr}}function vr(Xe,Te){return Xe.declarations&&wt(Xe.declarations,Lr=>!!Pwt(Lr)&&(!Te||!!fn(Lr,Vr=>Vr===Te)))}function hn(Xe,Te){if(!(ro(Te)&4)||!Ug(Xe))return!0;Exe(Xe);let Lr=Ki(Xe).resolvedSymbol,Vr=Lr&&Tu(Lr);return!Vr||Vr!==Te.target?!0:te(Xe.typeArguments)>=qb(Te.target.typeParameters)}function Un(Xe){for(;Ki(Xe).fakeScopeForSignatureDeclaration;)Xe=Xe.parent;return Xe}function ui(Xe,Te,Lr){return Lr.flags&8192&&Lr.symbol===Xe&&(!Te.enclosingDeclaration||Pt(Xe.declarations,He=>Pn(He)===Te.enclosingFile))&&(Te.flags|=1048576),kr(Lr,Te)}function Vi(Xe,Te,Lr,Vr){var He;let lt,Nt=Te&&(wa(Te)||Uy(Te))&&Ace(Te,Xe.enclosingDeclaration),fr=Te??Vr.valueDeclaration??vr(Vr)??((He=Vr.declarations)==null?void 0:He[0]);if(!Jt(Lr,Xe)&&fr){let jr=fe(Xe,Vr,Lr);tC(fr)?lt=Ve.serializeTypeOfAccessor(fr,Vr,Xe):Ane(fr)&&!fu(fr)&&!(ro(Lr)&196608)&&(lt=Ve.serializeTypeOfDeclaration(fr,Vr,Xe)),jr()}return lt||(Nt&&(Lr=nD(Lr)),lt=ui(Vr,Xe,Lr)),lt??W.createKeywordTypeNode(133)}function No(Xe,Te,Lr){return Lr===Te?!0:Xe&&((Zm(Xe)||ps(Xe))&&Xe.questionToken||wa(Xe)&&dxe(Xe))?M0(Te,524288)===Lr:!1}function wc(Xe,Te){let Lr=Xe.flags&256,Vr=Ue(Xe);Lr&&(Xe.flags&=-257);let He,lt=Tl(Te);if(!(Lr&&Mi(lt))){if(Te.declaration&&!fu(Te.declaration)&&!Jt(lt,Xe)){let Nt=$i(Te.declaration),fr=fe(Xe,Nt,lt);He=Ve.serializeReturnTypeForSignature(Te.declaration,Nt,Xe),fr()}He||(He=Nc(Xe,Te,lt))}return!He&&!Lr&&(He=W.createKeywordTypeNode(133)),Vr(),He}function Nc(Xe,Te,Lr){let Vr=Xe.suppressReportInferenceFallback;Xe.suppressReportInferenceFallback=!0;let He=F0(Te),lt=He?Rm(Xe.mapper?tkt(He,Xe.mapper):He,Xe):kr(Lr,Xe);return Xe.suppressReportInferenceFallback=Vr,lt}function yu(Xe,Te,Lr=Te.enclosingDeclaration){let Vr=!1,He=_h(Xe);if(Ei(Xe)&&(q4(He)||Fx(He.parent)||dh(He.parent)&&qme(He.parent.left)&&q4(He.parent.right)))return Vr=!0,{introducesError:Vr,node:Xe};let lt=Iq(Xe),Nt;if(pC(He))return Nt=$i(Hm(He,!1,!1)),GC(Nt,He,lt,!1).accessibility!==0&&(Vr=!0,Te.tracker.reportInaccessibleThisError()),{introducesError:Vr,node:fr(Xe)};if(Nt=jp(He,lt,!0,!0),Te.enclosingDeclaration&&!(Nt&&Nt.flags&262144)){Nt=Wt(Nt);let jr=jp(He,lt,!0,!0,Te.enclosingDeclaration);if(jr===ye||jr===void 0&&Nt!==void 0||jr&&Nt&&!Pe(Wt(jr),Nt))return jr!==ye&&Te.tracker.reportInferenceFallback(Xe),Vr=!0,{introducesError:Vr,node:Xe,sym:Nt};Nt=jr}if(Nt)return Nt.flags&1&&Nt.valueDeclaration&&(hA(Nt.valueDeclaration)||Uy(Nt.valueDeclaration))?{introducesError:Vr,node:fr(Xe)}:(!(Nt.flags&262144)&&!Eb(Xe)&&GC(Nt,Lr,lt,!1).accessibility!==0?(Te.tracker.reportInferenceFallback(Xe),Vr=!0):Te.tracker.trackSymbol(Nt,Lr,lt),{introducesError:Vr,node:fr(Xe)});return{introducesError:Vr,node:Xe};function fr(jr){if(jr===He){let Jr=Tu(Nt),Gn=Nt.flags&262144?gp(Jr,Te):W.cloneNode(jr);return Gn.symbol=Nt,m(Te,Ai(Gn,16777216),jr)}let gr=Dn(jr,Jr=>fr(Jr),void 0);return m(Te,gr,jr)}}function Rd(Xe,Te,Lr,Vr){let He=Lr?111551:788968,lt=jp(Te,He,!0);if(!lt)return;let Nt=lt.flags&2097152?df(lt):lt;if(GC(lt,Xe.enclosingDeclaration,He,!1).accessibility===0)return Ul(Nt,Xe,He,Vr)}function Lm(Xe,Te){let Lr=p(Xe,Te,!0);if(!Lr)return!1;if(Ei(Te)&&jT(Te)){WEt(Te);let Vr=Ki(Te).resolvedSymbol;return!Vr||!(!Te.isTypeOf&&!(Vr.flags&788968)||!(te(Te.typeArguments)>=qb(Dc(Vr))))}if(Ug(Te)){if(z1(Te))return!1;let Vr=Ki(Te).resolvedSymbol;if(!Vr)return!1;if(Vr.flags&262144){let He=Tu(Vr);return!(Xe.mapper&&XE(He,Xe.mapper)!==He)}if(gU(Te))return hn(Te,Lr)&&!nEt(Te)&&!!(Vr.flags&788968)}if(bA(Te)&&Te.operator===158&&Te.type.kind===155){let Vr=Xe.enclosingDeclaration&&Un(Xe.enclosingDeclaration);return!!fn(Te,He=>He===Vr)}return!0}function Yh(Xe,Te,Lr){let Vr=p(Xe,Te);if(Lr&&!j0(Vr,He=>!!(He.flags&32768))&&Lm(Xe,Te)){let He=Ve.tryReuseExistingTypeNode(Xe,Te);if(He)return W.createUnionTypeNode([He,W.createKeywordTypeNode(157)])}return kr(Vr,Xe)}function Pw(Xe,Te){var Lr;let Vr=Gwt(W.createPropertyDeclaration,175,!0),He=Gwt((Yt,ci,Ro,Jo)=>W.createPropertySignature(Yt,ci,Ro,Jo),174,!1),lt=Te.enclosingDeclaration,Nt=[],fr=new Set,jr=[],gr=Te;Te={...gr,usedSymbolNames:new Set(gr.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Lr=gr.remappedSymbolReferences)==null?void 0:Lr.entries()),tracker:void 0};let Jr={...gr.tracker.inner,trackSymbol:(Yt,ci,Ro)=>{var Jo,Li;if((Jo=Te.remappedSymbolNames)!=null&&Jo.has(hc(Yt)))return!1;if(GC(Yt,ci,Ro,!1).accessibility===0){let Mc=Rl(Yt,Te,Ro);if(!(Yt.flags&4)){let Ns=Mc[0],Yo=Pn(gr.enclosingDeclaration);Pt(Ns.declarations,fc=>Pn(fc)===Yo)&&Kc(Ns)}}else if((Li=gr.tracker.inner)!=null&&Li.trackSymbol)return gr.tracker.inner.trackSymbol(Yt,ci,Ro);return!1}};Te.tracker=new I8e(Te,Jr,gr.tracker.moduleResolverHost),Ad(Xe,(Yt,ci)=>{let Ro=oa(ci);Hb(Yt,Ro)});let Gn=!Te.bundled,Si=Xe.get("export=");return Si&&Xe.size>1&&Si.flags&2098688&&(Xe=ic(),Xe.set("export=",Si)),Gi(Xe),ss(Nt);function Ui(Yt){return!!Yt&&Yt.kind===80}function Io(Yt){return h_(Yt)?yr(Cr(Yt.declarationList.declarations,cs),Ui):yr([cs(Yt)],Ui)}function bo(Yt){let ci=wt(Yt,Xu),Ro=hr(Yt,I_),Jo=Ro!==-1?Yt[Ro]:void 0;if(Jo&&ci&&ci.isExportEquals&&ct(ci.expression)&&ct(Jo.name)&&Zi(Jo.name)===Zi(ci.expression)&&Jo.body&&wS(Jo.body)){let Li=yr(Yt,Ns=>!!(tm(Ns)&32)),Tc=Jo.name,Mc=Jo.body;if(te(Li)&&(Jo=W.updateModuleDeclaration(Jo,Jo.modifiers,Jo.name,Mc=W.updateModuleBlock(Mc,W.createNodeArray([...Jo.body.statements,W.createExportDeclaration(void 0,!1,W.createNamedExports(Cr(an(Li,Ns=>Io(Ns)),Ns=>W.createExportSpecifier(!1,void 0,Ns))),void 0)]))),Yt=[...Yt.slice(0,Ro),Jo,...Yt.slice(Ro+1)]),!wt(Yt,Ns=>Ns!==Jo&&wO(Ns,Tc))){Nt=[];let Ns=!Pt(Mc.statements,Yo=>ko(Yo,32)||Xu(Yo)||P_(Yo));X(Mc.statements,Yo=>{ls(Yo,Ns?32:0)}),Yt=[...yr(Yt,Yo=>Yo!==Jo&&Yo!==ci),...Nt]}}return Yt}function ti(Yt){let ci=yr(Yt,Jo=>P_(Jo)&&!Jo.moduleSpecifier&&!!Jo.exportClause&&k0(Jo.exportClause));te(ci)>1&&(Yt=[...yr(Yt,Li=>!P_(Li)||!!Li.moduleSpecifier||!Li.exportClause),W.createExportDeclaration(void 0,!1,W.createNamedExports(an(ci,Li=>Ba(Li.exportClause,k0).elements)),void 0)]);let Ro=yr(Yt,Jo=>P_(Jo)&&!!Jo.moduleSpecifier&&!!Jo.exportClause&&k0(Jo.exportClause));if(te(Ro)>1){let Jo=Pg(Ro,Li=>Ic(Li.moduleSpecifier)?">"+Li.moduleSpecifier.text:">");if(Jo.length!==Ro.length)for(let Li of Jo)Li.length>1&&(Yt=[...yr(Yt,Tc=>!Li.includes(Tc)),W.createExportDeclaration(void 0,!1,W.createNamedExports(an(Li,Tc=>Ba(Tc.exportClause,k0).elements)),Li[0].moduleSpecifier)])}return Yt}function qo(Yt){let ci=hr(Yt,Ro=>P_(Ro)&&!Ro.moduleSpecifier&&!Ro.attributes&&!!Ro.exportClause&&k0(Ro.exportClause));if(ci>=0){let Ro=Yt[ci],Jo=Wn(Ro.exportClause.elements,Li=>{if(!Li.propertyName&&Li.name.kind!==11){let Tc=Li.name,Mc=zp(Yt),Ns=yr(Mc,Yo=>wO(Yt[Yo],Tc));if(te(Ns)&&ht(Ns,Yo=>kH(Yt[Yo]))){for(let Yo of Ns)Yt[Yo]=rl(Yt[Yo]);return}}return Li});te(Jo)?Yt[ci]=W.updateExportDeclaration(Ro,Ro.modifiers,Ro.isTypeOnly,W.updateNamedExports(Ro.exportClause,Jo),Ro.moduleSpecifier,Ro.attributes):R1(Yt,ci)}return Yt}function ss(Yt){return Yt=bo(Yt),Yt=ti(Yt),Yt=qo(Yt),lt&&(Ta(lt)&&Lg(lt)||I_(lt))&&(!Pt(Yt,dG)||!OPe(Yt)&&Pt(Yt,Vte))&&Yt.push(qH(W)),Yt}function rl(Yt){let ci=(tm(Yt)|32)&-129;return W.replaceModifiers(Yt,ci)}function Zr(Yt){let ci=tm(Yt)&-33;return W.replaceModifiers(Yt,ci)}function Gi(Yt,ci,Ro){ci||jr.push(new Map);let Jo=0,Li=Array.from(Yt.values());for(let Tc of Li){if(Jo++,Me(Te)&&Jo+2{ys(Tc,!0,!!Ro)}),jr.pop())}function ys(Yt,ci,Ro){$l(di(Yt));let Jo=cl(Yt);if(fr.has(hc(Jo)))return;if(fr.add(hc(Jo)),!ci||te(Yt.declarations)&&Pt(Yt.declarations,Tc=>!!fn(Tc,Mc=>Mc===lt))){let Tc=WZ(Te);Te.tracker.pushErrorFallbackNode(wt(Yt.declarations,Mc=>Pn(Mc)===Te.enclosingFile)),Qa(Yt,ci,Ro),Te.tracker.popErrorFallbackNode(),Tc()}}function Qa(Yt,ci,Ro,Jo=Yt.escapedName){var Li,Tc,Mc,Ns,Yo,fc,ad;let up=oa(Jo),_m=Jo==="default";if(ci&&!(Te.flags&131072)&&HO(up)&&!_m){Te.encounteredError=!0;return}let Xp=_m&&!!(Yt.flags&-113||Yt.flags&16&&te($l(di(Yt))))&&!(Yt.flags&2097152),Uu=!Xp&&!ci&&HO(up)&&!_m;(Xp||Uu)&&(ci=!0);let Ap=(ci?0:32)|(_m&&!Xp?2048:0),$p=Yt.flags&1536&&Yt.flags&7&&Jo!=="export=",i0=$p&&aze(di(Yt),Yt);if((Yt.flags&8208||i0)&&cD(di(Yt),Yt,Hb(Yt,up),Ap),Yt.flags&524288&&id(Yt,up,Ap),Yt.flags&98311&&Jo!=="export="&&!(Yt.flags&4194304)&&!(Yt.flags&32)&&!(Yt.flags&8192)&&!i0)if(Ro)Nce(Yt)&&(Uu=!1,Xp=!1);else{let L_=di(Yt),Ch=Hb(Yt,up);if(L_.symbol&&L_.symbol!==Yt&&L_.symbol.flags&16&&Pt(L_.symbol.declarations,mC)&&((Li=L_.symbol.members)!=null&&Li.size||(Tc=L_.symbol.exports)!=null&&Tc.size))Te.remappedSymbolReferences||(Te.remappedSymbolReferences=new Map),Te.remappedSymbolReferences.set(hc(L_.symbol),Yt),Qa(L_.symbol,ci,Ro,Jo),Te.remappedSymbolReferences.delete(hc(L_.symbol));else if(!(Yt.flags&16)&&aze(L_,Yt))cD(L_,Yt,Ch,Ap);else{let nk=Yt.flags&2?F7(Yt)?2:1:(Mc=Yt.parent)!=null&&Mc.valueDeclaration&&Ta((Ns=Yt.parent)==null?void 0:Ns.valueDeclaration)?2:void 0,o0=Xp||!(Yt.flags&4)?Ch:Fce(Ch,Yt),_T=Yt.declarations&&wt(Yt.declarations,uD=>Oo(uD));_T&&Df(_T.parent)&&_T.parent.declarations.length===1&&(_T=_T.parent.parent);let lD=(Yo=Yt.declarations)==null?void 0:Yo.find(no);if(lD&&wi(lD.parent)&&ct(lD.parent.right)&&((fc=L_.symbol)!=null&&fc.valueDeclaration)&&Ta(L_.symbol.valueDeclaration)){let uD=Ch===lD.parent.right.escapedText?void 0:lD.parent.right;Te.approximateLength+=12+(((ad=uD?.escapedText)==null?void 0:ad.length)??0),ls(W.createExportDeclaration(void 0,!1,W.createNamedExports([W.createExportSpecifier(!1,uD,Ch)])),0),Te.tracker.trackSymbol(L_.symbol,Te.enclosingDeclaration,111551)}else{let uD=m(Te,W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(o0,void 0,Vi(Te,void 0,L_,Yt))],nk)),_T);Te.approximateLength+=7+o0.length,ls(uD,o0!==Ch?Ap&-33:Ap),o0!==Ch&&!ci&&(Te.approximateLength+=16+o0.length+Ch.length,ls(W.createExportDeclaration(void 0,!1,W.createNamedExports([W.createExportSpecifier(!1,o0,Ch)])),0),Uu=!1,Xp=!1)}}}if(Yt.flags&384&&m6(Yt,up,Ap),Yt.flags&32&&(Yt.flags&4&&Yt.valueDeclaration&&wi(Yt.valueDeclaration.parent)&&w_(Yt.valueDeclaration.parent.right)?Wwt(Yt,Hb(Yt,up),Ap):ize(Yt,Hb(Yt,up),Ap)),(Yt.flags&1536&&(!$p||C2(Yt))||i0)&&Ow(Yt,up,Ap),Yt.flags&64&&!(Yt.flags&32)&&od(Yt,up,Ap),Yt.flags&2097152&&Wwt(Yt,Hb(Yt,up),Ap),Yt.flags&4&&Yt.escapedName==="export="&&Nce(Yt),Yt.flags&8388608&&Yt.declarations)for(let L_ of Yt.declarations){let Ch=Nm(L_,L_.moduleSpecifier);if(!Ch)continue;let nk=L_.isTypeOnly,o0=y_(Ch,Te);Te.approximateLength+=17+o0.length,ls(W.createExportDeclaration(void 0,nk,void 0,W.createStringLiteral(o0)),0)}if(Xp){let L_=Hb(Yt,up);Te.approximateLength+=16+L_.length,ls(W.createExportAssignment(void 0,!1,W.createIdentifier(L_)),0)}else if(Uu){let L_=Hb(Yt,up);Te.approximateLength+=22+up.length+L_.length,ls(W.createExportDeclaration(void 0,!1,W.createNamedExports([W.createExportSpecifier(!1,L_,up)])),0)}}function Kc(Yt){if(Pt(Yt.declarations,hA))return;$.assertIsDefined(jr[jr.length-1]),Fce(oa(Yt.escapedName),Yt);let ci=!!(Yt.flags&2097152)&&!Pt(Yt.declarations,Ro=>!!fn(Ro,P_)||Db(Ro)||gd(Ro)&&!WT(Ro.moduleReference));jr[ci?0:jr.length-1].set(hc(Yt),Yt)}function kl(Yt){return Ta(Yt)&&(Lg(Yt)||h0(Yt))||Gm(Yt)&&!xb(Yt)}function ls(Yt,ci){if(l1(Yt)){let Ro=tm(Yt),Jo=0,Li=Te.enclosingDeclaration&&(n1(Te.enclosingDeclaration)?Pn(Te.enclosingDeclaration):Te.enclosingDeclaration);ci&32&&Li&&(kl(Li)||I_(Li))&&kH(Yt)&&(Jo|=32),Gn&&!(Jo&32)&&(!Li||!(Li.flags&33554432))&&(CA(Yt)||h_(Yt)||i_(Yt)||ed(Yt)||I_(Yt))&&(Jo|=128),ci&2048&&(ed(Yt)||Af(Yt)||i_(Yt))&&(Jo|=2048),Jo&&(Yt=W.replaceModifiers(Yt,Jo|Ro)),Te.approximateLength+=Oce(Jo|Ro)}Nt.push(Yt)}function id(Yt,ci,Ro){var Jo;let Li=a2t(Yt),Tc=io(Yt).typeParameters,Mc=Cr(Tc,Xp=>Zp(Xp,Te)),Ns=(Jo=Yt.declarations)==null?void 0:Jo.find(n1),Yo=oG(Ns?Ns.comment||Ns.parent.comment:void 0),fc=Ue(Te);Te.flags|=8388608;let ad=Te.enclosingDeclaration;Te.enclosingDeclaration=Ns;let up=Ns&&Ns.typeExpression&&AA(Ns.typeExpression)&&Ve.tryReuseExistingTypeNode(Te,Ns.typeExpression.type)||kr(Li,Te),_m=Hb(Yt,ci);Te.approximateLength+=8+(Yo?.length??0)+_m.length,ls(SA(W.createTypeAliasDeclaration(void 0,_m,Mc,up),Yo?[{kind:3,text:`* - * `+Yo.replace(/\n/g,` - * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Ro),fc(),Te.enclosingDeclaration=ad}function od(Yt,ci,Ro){let Jo=Hb(Yt,ci);Te.approximateLength+=14+Jo.length;let Li=O0(Yt),Tc=Dc(Yt),Mc=Cr(Tc,Uu=>Zp(Uu,Te)),Ns=ov(Li),Yo=te(Ns)?Ac(Ns):void 0,fc=Qf($l(Li),!1,Yo),ad=sze(0,Li,Yo,180),up=sze(1,Li,Yo,181),_m=Kwt(Li,Yo),Xp=te(Ns)?[W.createHeritageClause(96,Wn(Ns,Uu=>cze(Uu,111551)))]:void 0;ls(W.createInterfaceDeclaration(void 0,Jo,Mc,Xp,[..._m,...up,...ad,...fc]),Ro)}function Qf(Yt,ci,Ro,Jo){let Li=[],Tc=0;for(let Mc of Yt){if(Tc++,Me(Te)&&Tc+2XM(Jo)&&Jd(Jo.escapedName,99))}function C2(Yt){return ht(kh(Yt),ci=>!(Zh(O_(ci))&111551))}function Ow(Yt,ci,Ro){let Jo=kh(Yt),Li=Nw(Te),Tc=tu(Jo,Yo=>Yo.parent&&Yo.parent===Yt||Li?"real":"merged"),Mc=Tc.get("real")||j,Ns=Tc.get("merged")||j;if(te(Mc)||Li){let Yo;if(Li){let fc=Te.flags;Te.flags|=514,Yo=v(Yt,Te,-1),Te.flags=fc}else{let fc=Hb(Yt,ci);Yo=W.createIdentifier(fc),Te.approximateLength+=fc.length}Gb(Mc,Yo,Ro,!!(Yt.flags&67108880))}if(te(Ns)){let Yo=Pn(Te.enclosingDeclaration),fc=Hb(Yt,ci),ad=W.createModuleBlock([W.createExportDeclaration(void 0,!1,W.createNamedExports(Wn(yr(Ns,up=>up.escapedName!=="export="),up=>{var _m,Xp;let Uu=oa(up.escapedName),Ap=Hb(up,Uu),$p=up.declarations&&Qh(up);if(Yo&&($p?Yo!==Pn($p):!Pt(up.declarations,Ch=>Pn(Ch)===Yo))){(Xp=(_m=Te.tracker)==null?void 0:_m.reportNonlocalAugmentation)==null||Xp.call(_m,Yo,Yt,up);return}let i0=$p&&uw($p,!0);Kc(i0||up);let L_=i0?Hb(i0,oa(i0.escapedName)):Ap;return W.createExportSpecifier(!1,Uu===L_?void 0:L_,Uu)})))]);ls(W.createModuleDeclaration(void 0,W.createIdentifier(fc),ad,32),0)}}function m6(Yt,ci,Ro){let Jo=Hb(Yt,ci);Te.approximateLength+=9+Jo.length;let Li=[],Tc=yr($l(di(Yt)),Ns=>!!(Ns.flags&8)),Mc=0;for(let Ns of Tc){if(Mc++,Me(Te)&&Mc+2!te($p.declarations)||Pt($p.declarations,i0=>Pn(i0)===Pn(Te.enclosingDeclaration))||Tc?"local":"remote").get("local")||j,Yo=PA.createModuleDeclaration(void 0,ci,W.createModuleBlock([]),Li);xl(Yo,lt),Yo.locals=ic(Yt),Yo.symbol=Yt[0].parent;let fc=Nt;Nt=[];let ad=Gn;Gn=!1;let up={...Te,enclosingDeclaration:Yo},_m=Te;Te=up,Gi(ic(Ns),Jo,!0),Te=_m,Gn=ad;let Xp=Nt;Nt=fc;let Uu=Cr(Xp,$p=>Xu($p)&&!$p.isExportEquals&&ct($p.expression)?W.createExportDeclaration(void 0,!1,W.createNamedExports([W.createExportSpecifier(!1,$p.expression,W.createIdentifier("default"))])):$p),Ap=ht(Uu,$p=>ko($p,32))?Cr(Uu,Zr):Uu;Yo=W.updateModuleDeclaration(Yo,Yo.modifiers,Yo.name,W.createModuleBlock(Ap)),ls(Yo,Ro)}else Tc&&(Te.approximateLength+=14,ls(W.createModuleDeclaration(void 0,ci,W.createModuleBlock([]),Li),Ro))}function XM(Yt){return!!(Yt.flags&2887656)||!(Yt.flags&4194304||Yt.escapedName==="prototype"||Yt.valueDeclaration&&oc(Yt.valueDeclaration)&&Co(Yt.valueDeclaration.parent))}function Pce(Yt){let ci=Wn(Yt,Ro=>{let Jo=Te.enclosingDeclaration;Te.enclosingDeclaration=Ro;let Li=Ro.expression;if(ru(Li)){if(ct(Li)&&Zi(Li)==="")return Tc(void 0);let Mc;if({introducesError:Mc,node:Li}=yu(Li,Te),Mc)return Tc(void 0)}return Tc(W.createExpressionWithTypeArguments(Li,Cr(Ro.typeArguments,Mc=>Ve.tryReuseExistingTypeNode(Te,Mc)||kr(p(Te,Mc),Te))));function Tc(Mc){return Te.enclosingDeclaration=Jo,Mc}});if(ci.length===Yt.length)return ci}function ize(Yt,ci,Ro){var Jo,Li;Te.approximateLength+=9+ci.length;let Tc=(Jo=Yt.declarations)==null?void 0:Jo.find(Co),Mc=Te.enclosingDeclaration;Te.enclosingDeclaration=Tc||Mc;let Ns=Dc(Yt),Yo=Cr(Ns,ik=>Zp(ik,Te));X(Ns,ik=>Te.approximateLength+=vp(ik.symbol).length);let fc=Yg(O0(Yt)),ad=ov(fc),up=Tc&&ZR(Tc),_m=up&&Pce(up)||Wn(PM(fc),j6r),Xp=di(Yt),Uu=!!((Li=Xp.symbol)!=null&&Li.valueDeclaration)&&Co(Xp.symbol.valueDeclaration),Ap=Uu?d2(Xp):at;Te.approximateLength+=(te(ad)?8:0)+(te(_m)?11:0);let $p=[...te(ad)?[W.createHeritageClause(96,Cr(ad,ik=>M6r(ik,Ap,ci)))]:[],...te(_m)?[W.createHeritageClause(119,_m)]:[]],i0=bIr(fc,ad,$l(fc)),L_=yr(i0,ik=>!Ice(ik)),Ch=Pt(i0,Ice),nk=Ch?Nw(Te)?Qf(yr(i0,Ice),!0,ad[0],!1):[W.createPropertyDeclaration(void 0,W.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:j;Ch&&!Nw(Te)&&(Te.approximateLength+=9);let o0=Qf(L_,!0,ad[0],!1),_T=Qf(yr($l(Xp),ik=>!(ik.flags&4194304)&&ik.escapedName!=="prototype"&&!XM(ik)),!0,Ap,!0),lD=!Uu&&!!Yt.valueDeclaration&&Ei(Yt.valueDeclaration)&&!Pt(Gs(Xp,1));lD&&(Te.approximateLength+=21);let uD=lD?[W.createConstructorDeclaration(W.createModifiersFromModifierFlags(2),[],void 0)]:sze(1,Xp,Ap,177),B6r=Kwt(fc,ad[0]);Te.enclosingDeclaration=Mc,ls(m(Te,W.createClassDeclaration(void 0,ci,Yo,$p,[...B6r,..._T,...uD,...o0,...nk]),Yt.declarations&&yr(Yt.declarations,ik=>ed(ik)||w_(ik))[0]),Ro)}function oze(Yt){return Je(Yt,ci=>{if(Xm(ci)||Cm(ci))return aC(ci.propertyName||ci.name);if(wi(ci)||Xu(ci)){let Ro=Xu(ci)?ci.expression:ci.right;if(no(Ro))return Zi(Ro.name)}if(jE(ci)){let Ro=cs(ci);if(Ro&&ct(Ro))return Zi(Ro)}})}function Wwt(Yt,ci,Ro){var Jo,Li,Tc,Mc,Ns;let Yo=Qh(Yt);if(!Yo)return $.fail();let fc=cl(uw(Yo,!0));if(!fc)return;let ad=bG(fc)&&oze(Yt.declarations)||oa(fc.escapedName);ad==="export="&&Oe&&(ad="default");let up=Hb(fc,ad);switch(Kc(fc),Yo.kind){case 209:if(((Li=(Jo=Yo.parent)==null?void 0:Jo.parent)==null?void 0:Li.kind)===261){let Uu=y_(fc.parent||fc,Te),{propertyName:Ap}=Yo,$p=Ap&&ct(Ap)?Zi(Ap):void 0;Te.approximateLength+=24+ci.length+Uu.length+($p?.length??0),ls(W.createImportDeclaration(void 0,W.createImportClause(void 0,void 0,W.createNamedImports([W.createImportSpecifier(!1,$p?W.createIdentifier($p):void 0,W.createIdentifier(ci))])),W.createStringLiteral(Uu),void 0),0);break}$.failBadSyntaxKind(((Tc=Yo.parent)==null?void 0:Tc.parent)||Yo,"Unhandled binding element grandparent kind in declaration serialization");break;case 305:((Ns=(Mc=Yo.parent)==null?void 0:Mc.parent)==null?void 0:Ns.kind)===227&&dJ(oa(Yt.escapedName),up);break;case 261:if(no(Yo.initializer)){let Uu=Yo.initializer,Ap=W.createUniqueName(ci),$p=y_(fc.parent||fc,Te);Te.approximateLength+=22+$p.length+Zi(Ap).length,ls(W.createImportEqualsDeclaration(void 0,!1,Ap,W.createExternalModuleReference(W.createStringLiteral($p))),0),Te.approximateLength+=12+ci.length+Zi(Ap).length+Zi(Uu.name).length,ls(W.createImportEqualsDeclaration(void 0,!1,W.createIdentifier(ci),W.createQualifiedName(Ap,Uu.name)),Ro);break}case 272:if(fc.escapedName==="export="&&Pt(fc.declarations,Uu=>Ta(Uu)&&h0(Uu))){Nce(Yt);break}let _m=!(fc.flags&512)&&!Oo(Yo);Te.approximateLength+=11+ci.length+oa(fc.escapedName).length,ls(W.createImportEqualsDeclaration(void 0,!1,W.createIdentifier(ci),_m?c_(fc,Te,-1,!1):W.createExternalModuleReference(W.createStringLiteral(y_(fc,Te)))),_m?Ro:0);break;case 271:ls(W.createNamespaceExportDeclaration(Zi(Yo.name)),0);break;case 274:{let Uu=y_(fc.parent||fc,Te),Ap=Te.bundled?W.createStringLiteral(Uu):Yo.parent.moduleSpecifier,$p=fp(Yo.parent)?Yo.parent.attributes:void 0,i0=OS(Yo.parent);Te.approximateLength+=14+ci.length+3+(i0?4:0),ls(W.createImportDeclaration(void 0,W.createImportClause(i0?156:void 0,W.createIdentifier(ci),void 0),Ap,$p),0);break}case 275:{let Uu=y_(fc.parent||fc,Te),Ap=Te.bundled?W.createStringLiteral(Uu):Yo.parent.parent.moduleSpecifier,$p=OS(Yo.parent.parent);Te.approximateLength+=19+ci.length+3+($p?4:0),ls(W.createImportDeclaration(void 0,W.createImportClause($p?156:void 0,void 0,W.createNamespaceImport(W.createIdentifier(ci))),Ap,Yo.parent.attributes),0);break}case 281:Te.approximateLength+=19+ci.length+3,ls(W.createExportDeclaration(void 0,!1,W.createNamespaceExport(W.createIdentifier(ci)),W.createStringLiteral(y_(fc,Te))),0);break;case 277:{let Uu=y_(fc.parent||fc,Te),Ap=Te.bundled?W.createStringLiteral(Uu):Yo.parent.parent.parent.moduleSpecifier,$p=OS(Yo.parent.parent.parent);Te.approximateLength+=19+ci.length+3+($p?4:0),ls(W.createImportDeclaration(void 0,W.createImportClause($p?156:void 0,void 0,W.createNamedImports([W.createImportSpecifier(!1,ci!==ad?W.createIdentifier(ad):void 0,W.createIdentifier(ci))])),Ap,Yo.parent.parent.parent.attributes),0);break}case 282:let Xp=Yo.parent.parent.moduleSpecifier;if(Xp){let Uu=Yo.propertyName;Uu&&bb(Uu)&&(ad="default")}dJ(oa(Yt.escapedName),Xp?ad:up,Xp&&Sl(Xp)?W.createStringLiteral(Xp.text):void 0);break;case 278:Nce(Yt);break;case 227:case 212:case 213:Yt.escapedName==="default"||Yt.escapedName==="export="?Nce(Yt):dJ(ci,up);break;default:return $.failBadSyntaxKind(Yo,"Unhandled alias declaration kind in symbol serializer!")}}function dJ(Yt,ci,Ro){Te.approximateLength+=16+Yt.length+(Yt!==ci?ci.length:0),ls(W.createExportDeclaration(void 0,!1,W.createNamedExports([W.createExportSpecifier(!1,Yt!==ci?ci:void 0,Yt)]),Ro),0)}function Nce(Yt){var ci;if(Yt.flags&4194304)return!1;let Ro=oa(Yt.escapedName),Jo=Ro==="export=",Tc=Jo||Ro==="default",Mc=Yt.declarations&&Qh(Yt),Ns=Mc&&uw(Mc,!0);if(Ns&&te(Ns.declarations)&&Pt(Ns.declarations,Yo=>Pn(Yo)===Pn(lt))){let Yo=Mc&&(Xu(Mc)||wi(Mc)?Xme(Mc):z6e(Mc)),fc=Yo&&ru(Yo)?LIr(Yo):void 0,ad=fc&&jp(fc,-1,!0,!0,lt);(ad||Ns)&&Kc(ad||Ns);let up=Te.tracker.disableTrackSymbol;if(Te.tracker.disableTrackSymbol=!0,Tc)Te.approximateLength+=10,Nt.push(W.createExportAssignment(void 0,Jo,$0(Ns,Te,-1)));else if(fc===Yo&&fc)dJ(Ro,Zi(fc));else if(Yo&&w_(Yo))dJ(Ro,Hb(Ns,vp(Ns)));else{let _m=Fce(Ro,Yt);Te.approximateLength+=_m.length+10,ls(W.createImportEqualsDeclaration(void 0,!1,W.createIdentifier(_m),c_(Ns,Te,-1,!1)),0),dJ(Ro,_m)}return Te.tracker.disableTrackSymbol=up,!0}else{let Yo=Fce(Ro,Yt),fc=ry(di(cl(Yt)));if(aze(fc,Yt))cD(fc,Yt,Yo,Tc?0:32);else{let ad=((ci=Te.enclosingDeclaration)==null?void 0:ci.kind)===268&&(!(Yt.flags&98304)||Yt.flags&65536)?1:2;Te.approximateLength+=Yo.length+5;let up=W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Yo,void 0,Vi(Te,void 0,fc,Yt))],ad));ls(up,Ns&&Ns.flags&4&&Ns.escapedName==="export="?128:Ro===Yo?32:0)}return Tc?(Te.approximateLength+=Yo.length+10,Nt.push(W.createExportAssignment(void 0,Jo,W.createIdentifier(Yo))),!0):Ro!==Yo?(dJ(Ro,Yo),!0):!1}}function aze(Yt,ci){var Ro;let Jo=Pn(Te.enclosingDeclaration);return ro(Yt)&48&&!Pt((Ro=Yt.symbol)==null?void 0:Ro.declarations,Wo)&&!te(lm(Yt))&&!VQ(Yt)&&!!(te(yr($l(Yt),XM))||te(Gs(Yt,0)))&&!te(Gs(Yt,1))&&!vr(ci,lt)&&!(Yt.symbol&&Pt(Yt.symbol.declarations,Li=>Pn(Li)!==Jo))&&!Pt($l(Yt),Li=>QQ(Li.escapedName))&&!Pt($l(Yt),Li=>Pt(Li.declarations,Tc=>Pn(Tc)!==Jo))&&ht($l(Yt),Li=>Jd(vp(Li),re)?Li.flags&98304?Lv(Li)===GE(Li):!0:!1)}function Gwt(Yt,ci,Ro){return function(Li,Tc,Mc){var Ns,Yo,fc,ad,up,_m;let Xp=S0(Li),Uu=!!(Xp&2)&&!Nw(Te);if(Tc&&Li.flags&2887656)return[];if(Li.flags&4194304||Li.escapedName==="constructor"||Mc&&vc(Mc,Li.escapedName)&&Vv(vc(Mc,Li.escapedName))===Vv(Li)&&(Li.flags&16777216)===(vc(Mc,Li.escapedName).flags&16777216)&&cT(di(Li),en(Mc,Li.escapedName)))return[];let Ap=Xp&-1025|(Tc?256:0),$p=pJ(Li,Te),i0=(Ns=Li.declarations)==null?void 0:Ns.find(jf(ps,tC,Oo,Zm,wi,no));if(Li.flags&98304&&Ro){let L_=[];if(Li.flags&65536){let Ch=Li.declarations&&X(Li.declarations,_T=>{if(_T.kind===179)return _T;if(Js(_T)&&J4(_T))return X(_T.arguments[2].properties,lD=>{let uD=cs(lD);if(uD&&ct(uD)&&Zi(uD)==="set")return lD})});$.assert(!!Ch);let nk=lu(Ch)?t0(Ch).parameters[0]:void 0,o0=(Yo=Li.declarations)==null?void 0:Yo.find(hS);Te.approximateLength+=Oce(Ap)+7+(nk?vp(nk).length:5)+(Uu?0:2),L_.push(m(Te,W.createSetAccessorDeclaration(W.createModifiersFromModifierFlags(Ap),$p,[W.createParameterDeclaration(void 0,void 0,nk?ha(nk,Mn(nk),Te):"value",void 0,Uu?void 0:Vi(Te,o0,GE(Li),Li))],void 0),o0??i0))}if(Li.flags&32768){let Ch=(fc=Li.declarations)==null?void 0:fc.find(Ax);Te.approximateLength+=Oce(Ap)+8+(Uu?0:2),L_.push(m(Te,W.createGetAccessorDeclaration(W.createModifiersFromModifierFlags(Ap),$p,[],Uu?void 0:Vi(Te,Ch,di(Li),Li),void 0),Ch??i0))}return L_}else if(Li.flags&98311){let L_=(Vv(Li)?8:0)|Ap;return Te.approximateLength+=2+(Uu?0:2)+Oce(L_),m(Te,Yt(W.createModifiersFromModifierFlags(L_),$p,Li.flags&16777216?W.createToken(58):void 0,Uu?void 0:Vi(Te,(ad=Li.declarations)==null?void 0:ad.find(mg),GE(Li),Li),void 0),((up=Li.declarations)==null?void 0:up.find(jf(ps,Oo)))||i0)}if(Li.flags&8208){let L_=di(Li),Ch=Gs(L_,0);if(Uu){let o0=(Vv(Li)?8:0)|Ap;return Te.approximateLength+=1+Oce(o0),m(Te,Yt(W.createModifiersFromModifierFlags(o0),$p,Li.flags&16777216?W.createToken(58):void 0,void 0,void 0),((_m=Li.declarations)==null?void 0:_m.find(lu))||Ch[0]&&Ch[0].declaration||Li.declarations&&Li.declarations[0])}let nk=[];for(let o0 of Ch){Te.approximateLength+=1;let _T=ho(o0,ci,Te,{name:$p,questionToken:Li.flags&16777216?W.createToken(58):void 0,modifiers:Ap?W.createModifiersFromModifierFlags(Ap):void 0}),lD=o0.declaration&&zG(o0.declaration.parent)?o0.declaration.parent:o0.declaration;nk.push(m(Te,_T,lD))}return nk}return $.fail(`Unhandled class member kind! ${Li.__debugFlags||Li.flags}`)}}function Oce(Yt){let ci=0;return Yt&32&&(ci+=7),Yt&128&&(ci+=8),Yt&2048&&(ci+=8),Yt&4096&&(ci+=6),Yt&1&&(ci+=7),Yt&2&&(ci+=8),Yt&4&&(ci+=10),Yt&64&&(ci+=9),Yt&256&&(ci+=7),Yt&16&&(ci+=9),Yt&8&&(ci+=9),Yt&512&&(ci+=9),Yt&1024&&(ci+=6),Yt&8192&&(ci+=3),Yt&16384&&(ci+=4),ci}function Hwt(Yt,ci){return He(Yt,!1,ci)}function sze(Yt,ci,Ro,Jo){let Li=Gs(ci,Yt);if(Yt===1){if(!Ro&&ht(Li,Ns=>te(Ns.parameters)===0))return[];if(Ro){let Ns=Gs(Ro,1);if(!te(Ns)&&ht(Li,Yo=>te(Yo.parameters)===0))return[];if(Ns.length===Li.length){let Yo=!1;for(let fc=0;fckr(Li,Te)),Jo=$0(Yt.target.symbol,Te,788968)):Yt.symbol&&wq(Yt.symbol,lt,ci)&&(Jo=$0(Yt.symbol,Te,788968)),Jo)return W.createExpressionWithTypeArguments(Jo,Ro)}function j6r(Yt){let ci=cze(Yt,788968);if(ci)return ci;if(Yt.symbol)return W.createExpressionWithTypeArguments($0(Yt.symbol,Te,788968),void 0)}function Fce(Yt,ci){var Ro,Jo;let Li=ci?hc(ci):void 0;if(Li&&Te.remappedSymbolNames.has(Li))return Te.remappedSymbolNames.get(Li);ci&&(Yt=Qwt(ci,Yt));let Tc=0,Mc=Yt;for(;(Ro=Te.usedSymbolNames)!=null&&Ro.has(Yt);)Tc++,Yt=`${Mc}_${Tc}`;return(Jo=Te.usedSymbolNames)==null||Jo.add(Yt),Li&&Te.remappedSymbolNames.set(Li,Yt),Yt}function Qwt(Yt,ci){if(ci==="default"||ci==="__class"||ci==="__function"){let Ro=Ue(Te);Te.flags|=16777216;let Jo=hw(Yt,Te);Ro(),ci=Jo.length>0&&MG(Jo.charCodeAt(0))?i1(Jo):Jo}return ci==="default"?ci="_default":ci==="export="&&(ci="_exports"),ci=Jd(ci,re)&&!HO(ci)?ci:"_"+ci.replace(/[^a-z0-9]/gi,"_"),ci}function Hb(Yt,ci){let Ro=hc(Yt);return Te.remappedSymbolNames.has(Ro)?Te.remappedSymbolNames.get(Ro):(ci=Qwt(Yt,ci),Te.remappedSymbolNames.set(Ro,ci),ci)}}function Nw(Xe){return Xe.maxExpansionDepth!==-1}function Ice(Xe){return!!Xe.valueDeclaration&&Vp(Xe.valueDeclaration)&&Aa(Xe.valueDeclaration.name)}function l2e(Xe){if(Xe.valueDeclaration&&Vp(Xe.valueDeclaration)&&Aa(Xe.valueDeclaration.name))return W.cloneNode(Xe.valueDeclaration.name)}}function wM(o){var p;let m=(ro(o)&4)!==0?o.target.symbol:o.symbol;return Gc(o)||!!((p=m?.declarations)!=null&&p.some(v=>t.isSourceFileDefaultLibrary(Pn(v))))}function jb(o,p,m=16384,v){return v?E(v).getText():jR(E);function E(D){let R=YP(m)|70221824|512,K=Le.typePredicateToTypePredicateNode(o,p,R),se=wP(),ce=p&&Pn(p);return se.writeNode(4,K,ce,D),D}}function WQ(o,p){let m=[],v=0;for(let E=0;Ecs(R)?R:void 0),D=E&&cs(E);if(E&&D){if(Js(E)&&J4(E))return vp(o);if(dc(D)&&!(Fp(o)&4096)){let R=io(o).nameType;if(R&&R.flags&384){let K=Oq(o,p);if(K!==void 0)return K}}return du(D)}if(E||(E=o.declarations[0]),E.parent&&E.parent.kind===261)return du(E.parent.name);switch(E.kind){case 232:case 219:case 220:return p&&!p.encounteredError&&!(p.flags&131072)&&(p.encounteredError=!0),E.kind===232?"(Anonymous class)":"(Anonymous function)"}}let v=Oq(o,p);return v!==void 0?v:vp(o)}function Bb(o){if(o){let m=Ki(o);return m.isVisible===void 0&&(m.isVisible=!!p()),m.isVisible}return!1;function p(){switch(o.kind){case 339:case 347:case 341:return!!(o.parent&&o.parent.parent&&o.parent.parent.parent&&Ta(o.parent.parent.parent));case 209:return Bb(o.parent.parent);case 261:if($s(o.name)&&!o.name.elements.length)return!1;case 268:case 264:case 265:case 266:case 263:case 267:case 272:if(eP(o))return!0;let m=ir(o);return!(c2e(o)&32)&&!(o.kind!==272&&m.kind!==308&&m.flags&33554432)?uE(m):Bb(m);case 173:case 172:case 178:case 179:case 175:case 174:if(Bg(o,6))return!1;case 177:case 181:case 180:case 182:case 170:case 269:case 185:case 186:case 188:case 184:case 189:case 190:case 193:case 194:case 197:case 203:return Bb(o.parent);case 274:case 275:case 277:return!1;case 169:case 308:case 271:return!0;case 278:return!1;default:return!1}}}function IM(o,p){let m;o.kind!==11&&o.parent&&o.parent.kind===278?m=$t(o,o,2998271,void 0,!1):o.parent.kind===282&&(m=u7(o.parent,2998271));let v,E;return m&&(E=new Set,E.add(hc(m)),D(m.declarations)),v;function D(R){X(R,K=>{let se=I0(K)||K;if(p?Ki(K).isVisible=!0:(v=v||[],Zc(v,se)),z4(K)){let ce=K.moduleReference,fe=_h(ce),Ue=$t(K,fe.escapedText,901119,void 0,!1);Ue&&E&&Us(E,hc(Ue))&&D(Ue.declarations)}})}}function WS(o,p){let m=he(o,p);if(m>=0){let{length:v}=Hx;for(let E=m;E=NE;m--){if(Ze(Hx[m],P3[m]))return-1;if(Hx[m]===o&&P3[m]===p)return m}return-1}function Ze(o,p){switch(p){case 0:return!!io(o).type;case 2:return!!io(o).declaredType;case 1:return!!o.resolvedBaseConstructorType;case 3:return!!o.resolvedReturnType;case 4:return!!o.immediateBaseConstraint;case 5:return!!o.resolvedTypeArguments;case 6:return!!o.baseTypesResolved;case 7:return!!io(o).writeType;case 8:return Ki(o).parameterInitializerContainsUndefined!==void 0}return $.assertNever(p)}function kt(){return Hx.pop(),P3.pop(),KA.pop()}function ir(o){return fn(bS(o),p=>{switch(p.kind){case 261:case 262:case 277:case 276:case 275:case 274:return!1;default:return!0}}).parent}function Or(o){let p=Tu(Od(o));return p.typeParameters?f2(p,Cr(p.typeParameters,m=>at)):p}function en(o,p){let m=vc(o,p);return m?di(m):void 0}function _o(o,p){var m;let v;return en(o,p)||(v=(m=D7(o,p))==null?void 0:m.type)&&Om(v,!0,!0)}function Mi(o){return o&&(o.flags&1)!==0}function si(o){return o===Et||!!(o.flags&1&&o.aliasSymbol)}function zo(o,p){if(p!==0)return x7(o,!1,p);let m=$i(o);return m&&io(m).type||x7(o,!1,p)}function La(o,p,m){if(o=G_(o,se=>!(se.flags&98304)),o.flags&131072)return kc;if(o.flags&1048576)return hp(o,se=>La(se,p,m));let v=Do(Cr(p,m2)),E=[],D=[];for(let se of $l(o)){let ce=A7(se,8576);!tc(ce,v)&&!(S0(se)&6)&&Ixe(se)?E.push(se):D.push(ce)}if(uN(o)||pN(v)){if(D.length&&(v=Do([v,...D])),v.flags&131072)return o;let se=Exr();return se?MM(se,[o,v]):Et}let R=ic();for(let se of E)R.set(se.escapedName,kBe(se,!1));let K=mp(m,R,j,j,lm(o));return K.objectFlags|=4194304,K}function hu(o){return!!(o.flags&465829888)&&s_(Gf(o)||er,32768)}function Zl(o){let p=j0(o,hu)?hp(o,m=>m.flags&465829888?HS(m):m):o;return M0(p,524288)}function ll(o,p){let m=N0(o);return m?T2(m,p):p}function N0(o){let p=Yy(o);if(p&&KR(p)&&p.flowNode){let m=JE(o);if(m){let v=qt(PA.createStringLiteral(m),o),E=jh(p)?p:PA.createParenthesizedExpression(p),D=qt(PA.createElementAccessExpression(E,v),o);return xl(v,D),xl(D,o),E!==p&&xl(E,D),D.flowNode=p.flowNode,D}}}function Yy(o){let p=o.parent.parent;switch(p.kind){case 209:case 304:return N0(p);case 210:return N0(o.parent);case 261:return p.initializer;case 227:return p.right}}function JE(o){let p=o.parent;return o.kind===209&&p.kind===207?VE(o.propertyName||o.name):o.kind===304||o.kind===305?VE(o.name):""+p.elements.indexOf(o)}function VE(o){let p=m2(o);return p.flags&384?""+p.value:void 0}function tT(o){let p=o.dotDotDotToken?32:0,m=zo(o.parent.parent,p);return m&&KC(o,m,!1)}function KC(o,p,m){if(Mi(p))return p;let v=o.parent;be&&o.flags&33554432&&hA(o)?p=b2(p):be&&v.parent.initializer&&!Uv(eCt(v.parent.initializer),65536)&&(p=M0(p,524288));let E=32|(m||L7(o)?16:0),D;if(v.kind===207)if(o.dotDotDotToken){if(p=S1(p),p.flags&2||!Xse(p))return gt(o,x.Rest_types_may_only_be_created_from_object_types),Et;let R=[];for(let K of v.elements)K.dotDotDotToken||R.push(K.propertyName||K.name);D=La(p,R,o.symbol)}else{let R=o.propertyName||o.name,K=m2(R),se=ey(p,K,E,R);D=ll(o,se)}else{let R=tk(65|(o.dotDotDotToken?0:128),p,Ne,v),K=v.elements.indexOf(o);if(o.dotDotDotToken){let se=hp(p,ce=>ce.flags&58982400?HS(ce):ce);D=bg(se,Gc)?hp(se,ce=>Wq(ce,K)):um(R)}else if(YE(p)){let se=Bv(K),ce=YC(p,se,E,o.name)||Et;D=ll(o,ce)}else D=R}return o.initializer?X_(Pr(o))?be&&!Uv(rJ(o,0),16777216)?Zl(D):D:SUe(o,Do([Zl(D),rJ(o,0)],2)):D}function gl(o){let p=hv(o);if(p)return Sa(p)}function Sd(o){let p=bl(o,!0);return p.kind===106||p.kind===80&&Fm(p)===ke}function WE(o){let p=bl(o,!0);return p.kind===210&&p.elements.length===0}function Om(o,p=!1,m=!0){return be&&m?nD(o,p):o}function x7(o,p,m){if(Oo(o)&&o.parent.parent.kind===250){let R=KS(U$e(Va(o.parent.parent.expression,m)));return R.flags&4456448?FEt(R):Mt}if(Oo(o)&&o.parent.parent.kind===251){let R=o.parent.parent;return Tce(R)||at}if($s(o.parent))return tT(o);let v=ps(o)&&!xS(o)||Zm(o)||tNe(o),E=p&&sF(o),D=ZC(o);if(kme(o))return D?Mi(D)||D===er?D:Et:de?er:at;if(D)return Om(D,v,E);if((Fe||Ei(o))&&Oo(o)&&!$s(o.name)&&!(c2e(o)&32)&&!(o.flags&33554432)){if(!(f6(o)&6)&&(!o.initializer||Sd(o.initializer)))return Zt;if(o.initializer&&WE(o.initializer))return uf}if(wa(o)){if(!o.symbol)return;let R=o.parent;if(R.kind===179&&OM(R)){let ce=Qu($i(o.parent),178);if(ce){let fe=t0(ce),Ue=tze(R);return Ue&&o===Ue?($.assert(!Ue.type),di(fe.thisParameter)):Tl(fe)}}let K=Hbr(R,o);if(K)return K;let se=o.symbol.escapedName==="this"?D$e(R):PCt(o);if(se)return Om(se,!1,E)}if(j4(o)&&o.initializer){if(Ei(o)&&!wa(o)){let K=Fr(o,$i(o),vU(o));if(K)return K}let R=SUe(o,rJ(o,m));return Om(R,v,E)}if(ps(o)&&(Fe||Ei(o)))if(fd(o)){let R=yr(o.parent.members,n_),K=R.length?q(o.symbol,R):tm(o)&128?Uxe(o.symbol):void 0;return K&&Om(K,!0,E)}else{let R=AH(o.parent),K=R?oe(o.symbol,R):tm(o)&128?Uxe(o.symbol):void 0;return K&&Om(K,!0,E)}if(NS(o))return Rt;if($s(o.name))return Fq(o.name,!1,!0)}function rT(o){if(o.valueDeclaration&&wi(o.valueDeclaration)){let p=io(o);return p.isConstructorDeclaredProperty===void 0&&(p.isConstructorDeclaredProperty=!1,p.isConstructorDeclaredProperty=!!yi(o)&&ht(o.declarations,m=>wi(m)&&_Te(m)&&(m.left.kind!==213||jy(m.left.argumentExpression))&&!ji(void 0,m,o,m))),p.isConstructorDeclaredProperty}return!1}function $b(o){let p=o.valueDeclaration;return p&&ps(p)&&!X_(p)&&!p.initializer&&(Fe||Ei(p))}function yi(o){if(o.declarations)for(let p of o.declarations){let m=Hm(p,!1,!1);if(m&&(m.kind===177||XS(m)))return m}}function P(o){let p=Pn(o.declarations[0]),m=oa(o.escapedName),v=o.declarations.every(D=>Ei(D)&&wu(D)&&Fx(D.expression)),E=v?W.createPropertyAccessExpression(W.createPropertyAccessExpression(W.createIdentifier("module"),W.createIdentifier("exports")),m):W.createPropertyAccessExpression(W.createIdentifier("exports"),m);return v&&xl(E.expression.expression,E.expression),xl(E.expression,E),xl(E,p),E.flowNode=p.endFlowNode,T2(E,Zt,Ne)}function q(o,p){let m=Ca(o.escapedName,"__#")?W.createPrivateIdentifier(o.escapedName.split("@")[1]):oa(o.escapedName);for(let v of p){let E=W.createPropertyAccessExpression(W.createThis(),m);xl(E.expression,E),xl(E,v),E.flowNode=v.returnFlowNode;let D=we(E,o);if(Fe&&(D===Zt||D===uf)&>(o.valueDeclaration,x.Member_0_implicitly_has_an_1_type,Ua(o),ri(D)),!bg(D,tce))return $Z(D)}}function oe(o,p){let m=Ca(o.escapedName,"__#")?W.createPrivateIdentifier(o.escapedName.split("@")[1]):oa(o.escapedName),v=W.createPropertyAccessExpression(W.createThis(),m);xl(v.expression,v),xl(v,p),v.flowNode=p.returnFlowNode;let E=we(v,o);return Fe&&(E===Zt||E===uf)&>(o.valueDeclaration,x.Member_0_implicitly_has_an_1_type,Ua(o),ri(E)),bg(E,tce)?void 0:$Z(E)}function we(o,p){let m=p?.valueDeclaration&&(!$b(p)||tm(p.valueDeclaration)&128)&&Uxe(p)||Ne;return T2(o,Zt,m)}function Tt(o,p){let m=zO(o.valueDeclaration);if(m){let K=Ei(m)?mv(m):void 0;return K&&K.typeExpression?Sa(K.typeExpression):o.valueDeclaration&&Fr(o.valueDeclaration,o,m)||Cw(Bp(m))}let v,E=!1,D=!1;if(rT(o)&&(v=oe(o,yi(o))),!v){let K;if(o.declarations){let se;for(let ce of o.declarations){let fe=wi(ce)||Js(ce)?ce:wu(ce)?wi(ce.parent)?ce.parent:ce:void 0;if(!fe)continue;let Ue=wu(fe)?UG(fe):m_(fe);(Ue===4||wi(fe)&&_Te(fe,Ue))&&(Sy(fe)?E=!0:D=!0),Js(fe)||(se=ji(se,fe,o,ce)),se||(K||(K=[])).push(wi(fe)||Js(fe)?ds(o,p,fe,Ue):tn)}v=se}if(!v){if(!te(K))return Et;let se=E&&o.declarations?QC(K,o.declarations):void 0;if(D){let fe=Uxe(o);fe&&((se||(se=[])).push(fe),E=!0)}let ce=Pt(se,fe=>!!(fe.flags&-98305))?se:K;v=Do(ce)}}let R=ry(Om(v,!1,D&&!E));return o.valueDeclaration&&Ei(o.valueDeclaration)&&G_(R,K=>!!(K.flags&-98305))===tn?(Dw(o.valueDeclaration,at),at):R}function Fr(o,p,m){var v,E;if(!Ei(o)||!m||!Lc(m)||m.properties.length)return;let D=ic();for(;wi(o)||no(o);){let se=Xy(o);(v=se?.exports)!=null&&v.size&&qS(D,se.exports),o=wi(o)?o.parent:o.parent.parent}let R=Xy(o);(E=R?.exports)!=null&&E.size&&qS(D,R.exports);let K=mp(p,D,j,j,j);return K.objectFlags|=4096,K}function ji(o,p,m,v){var E;let D=X_(p.parent);if(D){let R=ry(Sa(D));if(o)!si(o)&&!si(R)&&!cT(o,R)&&BAt(void 0,o,v,R);else return R}if((E=m.parent)!=null&&E.valueDeclaration){let R=_w(m.parent);if(R.valueDeclaration){let K=X_(R.valueDeclaration);if(K){let se=vc(Sa(K),m.escapedName);if(se)return Lv(se)}}}return o}function ds(o,p,m,v){if(Js(m)){if(p)return di(p);let R=Bp(m.arguments[2]),K=en(R,"value");if(K)return K;let se=en(R,"get");if(se){let fe=TN(se);if(fe)return Tl(fe)}let ce=en(R,"set");if(ce){let fe=TN(ce);if(fe)return uUe(fe)}return at}if(ju(m.left,m.right))return at;let E=v===1&&(no(m.left)||mu(m.left))&&(Fx(m.left.expression)||ct(m.left.expression)&&q4(m.left.expression)),D=p?di(p):E?ih(Bp(m.right)):Cw(Bp(m.right));if(D.flags&524288&&v===2&&o.escapedName==="export="){let R=jv(D),K=ic();ere(R.members,K);let se=K.size;p&&!p.exports&&(p.exports=ic()),(p||o).exports.forEach((fe,Ue)=>{var Me;let yt=K.get(Ue);if(yt&&yt!==fe&&!(fe.flags&2097152))if(fe.flags&111551&&yt.flags&111551){if(fe.valueDeclaration&&yt.valueDeclaration&&Pn(fe.valueDeclaration)!==Pn(yt.valueDeclaration)){let Xt=oa(fe.escapedName),kr=((Me=Ci(yt.valueDeclaration,Vp))==null?void 0:Me.name)||yt.valueDeclaration;ac(gt(fe.valueDeclaration,x.Duplicate_identifier_0,Xt),xi(kr,x._0_was_also_declared_here,Xt)),ac(gt(kr,x.Duplicate_identifier_0,Xt),xi(fe.valueDeclaration,x._0_was_also_declared_here,Xt))}let Jt=zc(fe.flags|yt.flags,Ue);Jt.links.type=Do([di(fe),di(yt)]),Jt.valueDeclaration=yt.valueDeclaration,Jt.declarations=go(yt.declarations,fe.declarations),K.set(Ue,Jt)}else K.set(Ue,w0(fe,yt));else K.set(Ue,fe)});let ce=mp(se!==K.size?void 0:R.symbol,K,R.callSignatures,R.constructSignatures,R.indexInfos);if(se===K.size&&(D.aliasSymbol&&(ce.aliasSymbol=D.aliasSymbol,ce.aliasTypeArguments=D.aliasTypeArguments),ro(D)&4)){ce.aliasSymbol=D.symbol;let fe=Bu(D);ce.aliasTypeArguments=te(fe)?fe:void 0}return ce.objectFlags|=yse([D])|ro(D)&20608,ce.symbol&&ce.symbol.flags&32&&D===O0(ce.symbol)&&(ce.objectFlags|=16777216),ce}return qxe(D)?(Dw(m,If),If):D}function ju(o,p){return no(o)&&o.expression.kind===110&&CF(p,m=>Ff(o,m))}function Sy(o){let p=Hm(o,!1,!1);return p.kind===177||p.kind===263||p.kind===219&&!zG(p.parent)}function QC(o,p){return $.assert(o.length===p.length),o.filter((m,v)=>{let E=p[v],D=wi(E)?E:wi(E.parent)?E.parent:void 0;return D&&Sy(D)})}function Rv(o,p,m){if(o.initializer){let v=$s(o.name)?Fq(o.name,!0,!1):er;return Om(pAt(o,rJ(o,0,v)))}return $s(o.name)?Fq(o.name,p,m):(m&&!nxe(o)&&Dw(o,at),p?gi:at)}function T7(o,p,m){let v=ic(),E,D=131200;X(o.elements,K=>{let se=K.propertyName||K.name;if(K.dotDotDotToken){E=aT(Mt,at,!1);return}let ce=m2(se);if(!b0(ce)){D|=512;return}let fe=x0(ce),Ue=4|(K.initializer?16777216:0),Me=zc(Ue,fe);Me.links.type=Rv(K,p,m),v.set(Me.escapedName,Me)});let R=mp(void 0,v,j,j,E?[E]:j);return R.objectFlags|=D,p&&(R.pattern=o,R.objectFlags|=131072),R}function xje(o,p,m){let v=o.elements,E=Yr(v),D=E&&E.kind===209&&E.dotDotDotToken?E:void 0;if(v.length===0||v.length===1&&D)return re>=2?yEt(at):If;let R=Cr(v,fe=>Id(fe)?at:Rv(fe,p,m)),K=Hi(v,fe=>!(fe===D||Id(fe)||L7(fe)),v.length-1)+1,se=Cr(v,(fe,Ue)=>fe===D?4:Ue>=K?2:1),ce=Jb(R,se);return p&&(ce=Q2t(ce),ce.pattern=o,ce.objectFlags|=131072),ce}function Fq(o,p=!1,m=!1){p&&m1.push(o);let v=o.kind===207?T7(o,p,m):xje(o,p,m);return p&&m1.pop(),v}function E7(o,p){return HQ(x7(o,!0,0),o,p)}function Tje(o){let p=Ki(o);if(!p.resolvedType){let m=zc(4096,"__importAttributes"),v=ic();X(o.elements,D=>{let R=zc(4,Cne(D));R.parent=m,R.links.type=MIr(D),R.links.target=R,v.set(R.escapedName,R)});let E=mp(m,v,j,j,j);E.objectFlags|=262272,p.resolvedType=E}return p.resolvedType}function Eje(o){let p=Xy(o),m=uxr(!1);return m&&p&&p===m}function HQ(o,p,m){return o?(o.flags&4096&&Eje(p.parent)&&(o=CBe(p)),m&&Zxe(p,o),o.flags&8192&&(Vc(p)||!ZC(p))&&o.symbol!==$i(p)&&(o=wr),ry(o)):(o=wa(p)&&p.dotDotDotToken?If:at,m&&(nxe(p)||Dw(p,o)),o)}function nxe(o){let p=bS(o),m=p.kind===170?p.parent:p;return gce(m)}function ZC(o){let p=X_(o);if(p)return Sa(p)}function kje(o){let p=o.valueDeclaration;return p?(Vc(p)&&(p=Pr(p)),wa(p)?Fxe(p.parent):!1):!1}function Cje(o){let p=io(o);if(!p.type){let m=Dje(o);return!p.type&&!kje(o)&&(p.type=m),m}return p.type}function Dje(o){if(o.flags&4194304)return Or(o);if(o===tt)return at;if(o.flags&134217728&&o.valueDeclaration){let v=$i(Pn(o.valueDeclaration)),E=zc(v.flags,"exports");E.declarations=v.declarations?v.declarations.slice():[],E.parent=o,E.links.target=v,v.valueDeclaration&&(E.valueDeclaration=v.valueDeclaration),v.members&&(E.members=new Map(v.members)),v.exports&&(E.exports=new Map(v.exports));let D=ic();return D.set("exports",E),mp(o,D,j,j,j)}$.assertIsDefined(o.valueDeclaration);let p=o.valueDeclaration;if(Ta(p)&&h0(p))return p.statements.length?ry(Cw(Va(p.statements[0].expression))):kc;if(tC(p))return Lq(o);if(!WS(o,0))return o.flags&512&&!(o.flags&67108864)?Mq(o):nN(o);let m;if(p.kind===278)m=HQ(ZC(p)||Bp(p.expression),p);else if(wi(p)||Ei(p)&&(Js(p)||(no(p)||Are(p))&&wi(p.parent)))m=Tt(o);else if(no(p)||mu(p)||ct(p)||Sl(p)||qh(p)||ed(p)||i_(p)||Ep(p)&&!r1(p)||G1(p)||Ta(p)){if(o.flags&9136)return Mq(o);m=wi(p.parent)?Tt(o):ZC(p)||at}else if(td(p))m=ZC(p)||_At(p);else if(NS(p))m=ZC(p)||WCt(p);else if(im(p))m=ZC(p)||iJ(p.name,0);else if(r1(p))m=ZC(p)||dAt(p,0);else if(wa(p)||ps(p)||Zm(p)||Oo(p)||Vc(p)||rU(p))m=E7(p,!0);else if(CA(p))m=Mq(o);else if(GT(p))m=sxe(o);else return $.fail("Unhandled declaration kind! "+$.formatSyntaxKind(p.kind)+" for "+$.formatSymbol(o));return kt()?m:o.flags&512&&!(o.flags&67108864)?Mq(o):nN(o)}function e6(o){if(o)switch(o.kind){case 178:return jg(o);case 179:return ghe(o);case 173:return $.assert(xS(o)),X_(o)}}function Rq(o){let p=e6(o);return p&&Sa(p)}function k7(o){let p=tze(o);return p&&p.symbol}function ixe(o){return Sw(t0(o))}function Lq(o){let p=io(o);if(!p.type){if(!WS(o,0))return Et;let m=Qu(o,178),v=Qu(o,179),E=Ci(Qu(o,173),Mh),D=m&&Ei(m)&&gl(m)||Rq(m)||Rq(v)||Rq(E)||m&&m.body&&NTe(m)||E&&E7(E,!0);D||(v&&!gce(v)?Y1(Fe,v,x.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ua(o)):m&&!gce(m)?Y1(Fe,m,x.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ua(o)):E&&!gce(E)&&Y1(Fe,E,x.Member_0_implicitly_has_an_1_type,Ua(o),"any"),D=at),kt()||(e6(m)?gt(m,x._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ua(o)):e6(v)||e6(E)?gt(v,x._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ua(o)):m&&Fe&>(m,x._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Ua(o)),D=at),p.type??(p.type=D)}return p.type}function oxe(o){let p=io(o);if(!p.writeType){if(!WS(o,7))return Et;let m=Qu(o,179)??Ci(Qu(o,173),Mh),v=Rq(m);kt()||(e6(m)&>(m,x._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ua(o)),v=at),p.writeType??(p.writeType=v||Lq(o))}return p.writeType}function KQ(o){let p=d2(O0(o));return p.flags&8650752?p:p.flags&2097152?wt(p.types,m=>!!(m.flags&8650752)):void 0}function Mq(o){let p=io(o),m=p;if(!p.type){let v=o.valueDeclaration&&ITe(o.valueDeclaration,!1);if(v){let E=nUe(o,v);E&&(o=E,p=E.links)}m.type=p.type=axe(o)}return p.type}function axe(o){let p=o.valueDeclaration;if(o.flags&1536&&bG(o))return at;if(p&&(p.kind===227||wu(p)&&p.parent.kind===227))return Tt(o);if(o.flags&512&&p&&Ta(p)&&p.commonJsModuleIndicator){let v=vg(o);if(v!==o){if(!WS(o,0))return Et;let E=cl(o.exports.get("export=")),D=Tt(E,E===v?void 0:v);return kt()?D:nN(o)}}let m=F_(16,o);if(o.flags&32){let v=KQ(o);return v?Ac([m,v]):m}else return be&&o.flags&16777216?nD(m,!0):m}function sxe(o){let p=io(o);return p.type||(p.type=l2t(o))}function Aje(o){let p=io(o);if(!p.type){if(!WS(o,0))return Et;let m=df(o),v=o.declarations&&uw(Qh(o),!0),E=Je(v?.declarations,D=>Xu(D)?ZC(D):void 0);if(p.type??(p.type=v?.declarations&&XTe(v.declarations)&&o.declarations.length?P(v):XTe(o.declarations)?Zt:E||(Zh(m)&111551?di(m):Et)),!kt())return nN(v??o),p.type??(p.type=Et)}return p.type}function wje(o){let p=io(o);return p.type||(p.type=Oa(di(p.target),p.mapper))}function Ije(o){let p=io(o);return p.writeType||(p.writeType=Oa(GE(p.target),p.mapper))}function nN(o){let p=o.valueDeclaration;if(p){if(X_(p))return gt(o.valueDeclaration,x._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ua(o)),Et;Fe&&(p.kind!==170||p.initializer)&>(o.valueDeclaration,x._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Ua(o))}else if(o.flags&2097152){let m=Qh(o);m&>(m,x.Circular_definition_of_import_alias_0,Ua(o))}return at}function cxe(o){let p=io(o);return p.type||($.assertIsDefined(p.deferralParent),$.assertIsDefined(p.deferralConstituents),p.type=p.deferralParent.flags&1048576?Do(p.deferralConstituents):Ac(p.deferralConstituents)),p.type}function Pje(o){let p=io(o);return!p.writeType&&p.deferralWriteConstituents&&($.assertIsDefined(p.deferralParent),$.assertIsDefined(p.deferralConstituents),p.writeType=p.deferralParent.flags&1048576?Do(p.deferralWriteConstituents):Ac(p.deferralWriteConstituents)),p.writeType}function GE(o){let p=Fp(o);return p&2?p&65536?Pje(o)||cxe(o):o.links.writeType||o.links.type:o.flags&4?x2(di(o),!!(o.flags&16777216)):o.flags&98304?p&1?Ije(o):oxe(o):di(o)}function di(o){let p=Fp(o);return p&65536?cxe(o):p&1?wje(o):p&262144?wbr(o):p&8192?W2r(o):o.flags&7?Cje(o):o.flags&9136?Mq(o):o.flags&8?sxe(o):o.flags&98304?Lq(o):o.flags&2097152?Aje(o):Et}function Lv(o){return x2(di(o),!!(o.flags&16777216))}function lxe(o,p){if(o===void 0||(ro(o)&4)===0)return!1;for(let m of p)if(o.target===m)return!0;return!1}function Xg(o,p){return o!==void 0&&p!==void 0&&(ro(o)&4)!==0&&o.target===p}function Fn(o){return ro(o)&4?o.target:o}function eo(o,p){return m(o);function m(v){if(ro(v)&7){let E=Fn(v);return E===p||Pt(ov(E),m)}else if(v.flags&2097152)return Pt(v.types,m);return!1}}function po(o,p){for(let m of p)o=Jl(o,gw($i(m)));return o}function Xo(o,p){for(;;){if(o=o.parent,o&&wi(o)){let v=m_(o);if(v===6||v===3){let E=$i(o.left);E&&E.parent&&!fn(E.parent.valueDeclaration,D=>o===D)&&(o=E.parent.valueDeclaration)}}if(!o)return;let m=o.kind;switch(m){case 264:case 232:case 265:case 180:case 181:case 174:case 185:case 186:case 318:case 263:case 175:case 219:case 220:case 266:case 346:case 347:case 341:case 339:case 201:case 195:{let E=Xo(o,p);if((m===219||m===220||r1(o))&&r0(o)){let K=pi(Gs(di($i(o)),0));if(K&&K.typeParameters)return[...E||j,...K.typeParameters]}if(m===201)return jt(E,gw($i(o.typeParameter)));if(m===195)return go(E,xBe(o));let D=po(E,Zk(o)),R=p&&(m===264||m===232||m===265||XS(o))&&O0($i(o)).thisType;return R?jt(D,R):D}case 342:let v=GG(o);v&&(o=v.valueDeclaration);break;case 321:{let E=Xo(o,p);return o.tags?po(E,an(o.tags,D=>c1(D)?D.typeParameters:void 0)):E}}}}function ca(o){var p;let m=o.flags&32||o.flags&16?o.valueDeclaration:(p=o.declarations)==null?void 0:p.find(v=>{if(v.kind===265)return!0;if(v.kind!==261)return!1;let E=v.initializer;return!!E&&(E.kind===219||E.kind===220)});return $.assert(!!m,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Xo(m)}function Dc(o){if(!o.declarations)return;let p;for(let m of o.declarations)(m.kind===265||m.kind===264||m.kind===232||XS(m)||VG(m))&&(p=po(p,Zk(m)));return p}function gu(o){return go(ca(o),Dc(o))}function Of(o){let p=Gs(o,1);if(p.length===1){let m=p[0];if(!m.typeParameters&&m.parameters.length===1&&Am(m)){let v=cce(m.parameters[0]);return Mi(v)||Mse(v)===at}}return!1}function Mv(o){if(Gs(o,1).length>0)return!0;if(o.flags&8650752){let p=Gf(o);return!!p&&Of(p)}return!1}function v1(o){let p=JT(o.symbol);return p&&vv(p)}function iv(o,p,m){let v=te(p),E=Ei(m);return yr(Gs(o,1),D=>(E||v>=qb(D.typeParameters))&&v<=te(D.typeParameters))}function nT(o,p,m){let v=iv(o,p,m),E=Cr(p,Sa);return Zo(v,D=>Pt(D.typeParameters)?rZ(D,E,Ei(m)):D)}function d2(o){if(!o.resolvedBaseConstructorType){let p=JT(o.symbol),m=p&&vv(p),v=v1(o);if(!v)return o.resolvedBaseConstructorType=Ne;if(!WS(o,1))return Et;let E=Va(v.expression);if(m&&v!==m&&($.assert(!m.typeArguments),Va(m.expression)),E.flags&2621440&&jv(E),!kt())return gt(o.symbol.valueDeclaration,x._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ua(o.symbol)),o.resolvedBaseConstructorType??(o.resolvedBaseConstructorType=Et);if(!(E.flags&1)&&E!==Ge&&!Mv(E)){let D=gt(v.expression,x.Type_0_is_not_a_constructor_function_type,ri(E));if(E.flags&262144){let R=qq(E),K=er;if(R){let se=Gs(R,1);se[0]&&(K=Tl(se[0]))}E.symbol.declarations&&ac(D,xi(E.symbol.declarations[0],x.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Ua(E.symbol),ri(K)))}return o.resolvedBaseConstructorType??(o.resolvedBaseConstructorType=Et)}o.resolvedBaseConstructorType??(o.resolvedBaseConstructorType=E)}return o.resolvedBaseConstructorType}function PM(o){let p=j;if(o.symbol.declarations)for(let m of o.symbol.declarations){let v=ZR(m);if(v)for(let E of v){let D=Sa(E);si(D)||(p===j?p=[D]:p.push(D))}}return p}function jq(o,p){gt(o,x.Type_0_recursively_references_itself_as_a_base_type,ri(p,void 0,2))}function ov(o){if(!o.baseTypesResolved){if(WS(o,6)&&(o.objectFlags&8?o.resolvedBaseTypes=[ebr(o)]:o.symbol.flags&96?(o.symbol.flags&32&&tbr(o),o.symbol.flags&64&&nbr(o)):$.fail("type must be class or interface"),!kt()&&o.symbol.declarations))for(let p of o.symbol.declarations)(p.kind===264||p.kind===265)&&jq(p,o);o.baseTypesResolved=!0}return o.resolvedBaseTypes}function ebr(o){let p=Zo(o.typeParameters,(m,v)=>o.elementFlags[v]&8?ey(m,Ir):m);return um(Do(p||j),o.readonly)}function tbr(o){o.resolvedBaseTypes=mme;let p=nh(d2(o));if(!(p.flags&2621441))return o.resolvedBaseTypes=j;let m=v1(o),v,E=p.symbol?Tu(p.symbol):void 0;if(p.symbol&&p.symbol.flags&32&&rbr(E))v=Z2t(m,p.symbol);else if(p.flags&1)v=p;else{let R=nT(p,m.typeArguments,m);if(!R.length)return gt(m.expression,x.No_base_constructor_has_the_specified_number_of_type_arguments),o.resolvedBaseTypes=j;v=Tl(R[0])}if(si(v))return o.resolvedBaseTypes=j;let D=S1(v);if(!use(D)){let R=Jje(void 0,v),K=ws(R,x.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,ri(D));return il.add(Nx(Pn(m.expression),m.expression,K)),o.resolvedBaseTypes=j}return o===D||eo(D,o)?(gt(o.symbol.valueDeclaration,x.Type_0_recursively_references_itself_as_a_base_type,ri(o,void 0,2)),o.resolvedBaseTypes=j):(o.resolvedBaseTypes===mme&&(o.members=void 0),o.resolvedBaseTypes=[D])}function rbr(o){let p=o.outerTypeParameters;if(p){let m=p.length-1,v=Bu(o);return p[m].symbol!==v[m].symbol}return!0}function use(o){if(o.flags&262144){let p=Gf(o);if(p)return use(p)}return!!(o.flags&67633153&&!Xh(o)||o.flags&2097152&&ht(o.types,use))}function nbr(o){if(o.resolvedBaseTypes=o.resolvedBaseTypes||j,o.symbol.declarations){for(let p of o.symbol.declarations)if(p.kind===265&&kU(p))for(let m of kU(p)){let v=S1(Sa(m));si(v)||(use(v)?o!==v&&!eo(v,o)?o.resolvedBaseTypes===j?o.resolvedBaseTypes=[v]:o.resolvedBaseTypes.push(v):jq(p,o):gt(m,x.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function ibr(o){if(!o.declarations)return!0;for(let p of o.declarations)if(p.kind===265){if(p.flags&256)return!1;let m=kU(p);if(m){for(let v of m)if(ru(v.expression)){let E=jp(v.expression,788968,!0);if(!E||!(E.flags&64)||O0(E).thisType)return!1}}}return!0}function O0(o){let p=io(o),m=p;if(!p.declaredType){let v=o.flags&32?1:2,E=nUe(o,o.valueDeclaration&&iDr(o.valueDeclaration));E&&(o=E,p=E.links);let D=m.declaredType=p.declaredType=F_(v,o),R=ca(o),K=Dc(o);(R||K||v===1||!ibr(o))&&(D.objectFlags|=4,D.typeParameters=go(R,K),D.outerTypeParameters=R,D.localTypeParameters=K,D.instantiations=new Map,D.instantiations.set(b1(D.typeParameters),D),D.target=D,D.resolvedTypeArguments=D.typeParameters,D.thisType=bh(o),D.thisType.isThisType=!0,D.thisType.constraint=D)}return p.declaredType}function a2t(o){var p;let m=io(o);if(!m.declaredType){if(!WS(o,2))return Et;let v=$.checkDefined((p=o.declarations)==null?void 0:p.find(VG),"Type alias symbol with no valid declaration found"),E=n1(v)?v.typeExpression:v.type,D=E?Sa(E):Et;if(kt()){let R=Dc(o);R&&(m.typeParameters=R,m.instantiations=new Map,m.instantiations.set(b1(R),D)),D===Ye&&o.escapedName==="BuiltinIteratorReturn"&&(D=aBe())}else D=Et,v.kind===341?gt(v.typeExpression.type,x.Type_alias_0_circularly_references_itself,Ua(o)):gt(Vp(v)&&v.name||v,x.Type_alias_0_circularly_references_itself,Ua(o));m.declaredType??(m.declaredType=D)}return m.declaredType}function uxe(o){return o.flags&1056&&o.symbol.flags&8?Tu(Od(o.symbol)):o}function s2t(o){let p=io(o);if(!p.declaredType){let m=[];if(o.declarations){for(let E of o.declarations)if(E.kind===267){for(let D of E.members)if(OM(D)){let R=$i(D),K=kN(D).value,se=P7(K!==void 0?CTr(K,hc(o),R):c2t(R));io(R).declaredType=se,m.push(ih(se))}}}let v=m.length?Do(m,1,o,void 0):c2t(o);v.flags&1048576&&(v.flags|=1024,v.symbol=o),p.declaredType=v}return p.declaredType}function c2t(o){let p=na(32,o),m=na(32,o);return p.regularType=p,p.freshType=m,m.regularType=p,m.freshType=m,p}function l2t(o){let p=io(o);if(!p.declaredType){let m=s2t(Od(o));p.declaredType||(p.declaredType=m)}return p.declaredType}function gw(o){let p=io(o);return p.declaredType||(p.declaredType=bh(o))}function obr(o){let p=io(o);return p.declaredType||(p.declaredType=Tu(df(o)))}function Tu(o){return u2t(o)||Et}function u2t(o){if(o.flags&96)return O0(o);if(o.flags&524288)return a2t(o);if(o.flags&262144)return gw(o);if(o.flags&384)return s2t(o);if(o.flags&8)return l2t(o);if(o.flags&2097152)return obr(o)}function pse(o){switch(o.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 202:return!0;case 189:return pse(o.elementType);case 184:return!o.typeArguments||o.typeArguments.every(pse)}return!1}function abr(o){let p=NR(o);return!p||pse(p)}function p2t(o){let p=X_(o);return p?pse(p):!lE(o)}function sbr(o){let p=jg(o),m=Zk(o);return(o.kind===177||!!p&&pse(p))&&o.parameters.every(p2t)&&m.every(abr)}function cbr(o){if(o.declarations&&o.declarations.length===1){let p=o.declarations[0];if(p)switch(p.kind){case 173:case 172:return p2t(p);case 175:case 174:case 177:case 178:case 179:return sbr(p)}}return!1}function _2t(o,p,m){let v=ic();for(let E of o)v.set(E.escapedName,m&&cbr(E)?E:IBe(E,p));return v}function d2t(o,p){for(let m of p){if(f2t(m))continue;let v=o.get(m.escapedName);(!v||v.valueDeclaration&&wi(v.valueDeclaration)&&!rT(v)&&!E6e(v.valueDeclaration))&&(o.set(m.escapedName,m),o.set(m.escapedName,m))}}function f2t(o){return!!o.valueDeclaration&&Tm(o.valueDeclaration)&&oc(o.valueDeclaration)}function Nje(o){if(!o.declaredProperties){let p=o.symbol,m=Ub(p);o.declaredProperties=xh(m),o.declaredCallSignatures=j,o.declaredConstructSignatures=j,o.declaredIndexInfos=j,o.declaredCallSignatures=n6(m.get("__call")),o.declaredConstructSignatures=n6(m.get("__new")),o.declaredIndexInfos=G2t(p)}return o}function Oje(o){return h2t(o)&&b0(dc(o)?sv(o):Bp(o.argumentExpression))}function m2t(o){return h2t(o)&&lbr(dc(o)?sv(o):Bp(o.argumentExpression))}function h2t(o){if(!dc(o)&&!mu(o))return!1;let p=dc(o)?o.expression:o.argumentExpression;return ru(p)}function lbr(o){return tc(o,Uo)}function QQ(o){return o.charCodeAt(0)===95&&o.charCodeAt(1)===95&&o.charCodeAt(2)===64}function NM(o){let p=cs(o);return!!p&&Oje(p)}function g2t(o){let p=cs(o);return!!p&&m2t(p)}function OM(o){return!$T(o)||NM(o)}function y2t(o){return Rre(o)&&!Oje(o)}function ubr(o,p,m){$.assert(!!(Fp(o)&4096),"Expected a late-bound symbol."),o.flags|=m,io(p.symbol).lateSymbol=o,o.declarations?p.symbol.isReplaceableByMethod||o.declarations.push(p):o.declarations=[p],m&111551&&SU(o,p)}function v2t(o,p,m,v){$.assert(!!v.symbol,"The member is expected to have a symbol.");let E=Ki(v);if(!E.resolvedSymbol){E.resolvedSymbol=v.symbol;let D=wi(v)?v.left:v.name,R=mu(D)?Bp(D.argumentExpression):sv(D);if(b0(R)){let K=x0(R),se=v.symbol.flags,ce=m.get(K);ce||m.set(K,ce=zc(0,K,4096));let fe=p&&p.get(K);if(!(o.flags&32)&&ce.flags&j3(se)){let Ue=fe?go(fe.declarations,ce.declarations):ce.declarations,Me=!(R.flags&8192)&&oa(K)||du(D);X(Ue,yt=>gt(cs(yt)||yt,x.Property_0_was_also_declared_here,Me)),gt(D||v,x.Duplicate_property_0,Me),ce=zc(0,K,4096)}return ce.links.nameType=R,ubr(ce,v,se),ce.parent?$.assert(ce.parent===o,"Existing symbol parent should match new one"):ce.parent=o,E.resolvedSymbol=ce}}return E.resolvedSymbol}function pbr(o,p,m,v){let E=m.get("__index");if(!E){let D=p?.get("__index");D?(E=JP(D),E.links.checkFlags|=4096):E=zc(0,"__index",4096),m.set("__index",E)}E.declarations?v.symbol.isReplaceableByMethod||E.declarations.push(v):E.declarations=[v]}function Fje(o,p){let m=io(o);if(!m[p]){let v=p==="resolvedExports",E=v?o.flags&1536?Q3(o).exports:o.exports:o.members;m[p]=E||G;let D=ic();for(let se of o.declarations||j){let ce=g6e(se);if(ce)for(let fe of ce)v===fd(fe)&&(NM(fe)?v2t(o,E,D,fe):g2t(fe)&&pbr(o,E,D,fe))}let R=_w(o).assignmentDeclarationMembers;if(R){let se=so(R.values());for(let ce of se){let fe=m_(ce),Ue=fe===3||wi(ce)&&_Te(ce,fe)||fe===9||fe===6;v===!Ue&&NM(ce)&&v2t(o,E,D,ce)}}let K=ME(E,D);if(o.flags&33554432&&m.cjsExportMerged&&o.declarations)for(let se of o.declarations){let ce=io(se.symbol)[p];if(!K){K=ce;continue}ce&&ce.forEach((fe,Ue)=>{let Me=K.get(Ue);if(!Me)K.set(Ue,fe);else{if(Me===fe)return;K.set(Ue,w0(Me,fe))}})}m[p]=K||G}return m[p]}function Ub(o){return o.flags&6256?Fje(o,"resolvedMembers"):o.members||G}function pxe(o){if(o.flags&106500&&o.escapedName==="__computed"){let p=io(o);if(!p.lateSymbol&&Pt(o.declarations,NM)){let m=cl(o.parent);Pt(o.declarations,fd)?Zg(m):Ub(m)}return p.lateSymbol||(p.lateSymbol=o)}return o}function Yg(o,p,m){if(ro(o)&4){let v=o.target,E=Bu(o);return te(v.typeParameters)===te(E)?f2(v,go(E,[p||v.thisType])):o}else if(o.flags&2097152){let v=Zo(o.types,E=>Yg(E,p,m));return v!==o.types?Ac(v):o}return m?nh(o):o}function S2t(o,p,m,v){let E,D,R,K,se;or(m,v,0,m.length)?(D=p.symbol?Ub(p.symbol):ic(p.declaredProperties),R=p.declaredCallSignatures,K=p.declaredConstructSignatures,se=p.declaredIndexInfos):(E=ty(m,v),D=_2t(p.declaredProperties,E,m.length===1),R=Nxe(p.declaredCallSignatures,E),K=Nxe(p.declaredConstructSignatures,E),se=ZEt(p.declaredIndexInfos,E));let ce=ov(p);if(ce.length){if(p.symbol&&D===Ub(p.symbol)){let Ue=ic(p.declaredProperties),Me=hxe(p.symbol);Me&&Ue.set("__index",Me),D=Ue}y1(o,D,R,K,se);let fe=Yr(v);for(let Ue of ce){let Me=fe?Yg(Oa(Ue,E),fe):Ue;d2t(D,$l(Me)),R=go(R,Gs(Me,0)),K=go(K,Gs(Me,1));let yt=Me!==at?lm(Me):[va];se=go(se,yr(yt,Jt=>!Uq(se,Jt.keyType)))}}y1(o,D,R,K,se)}function _br(o){S2t(o,Nje(o),j,j)}function dbr(o){let p=Nje(o.target),m=go(p.typeParameters,[p.thisType]),v=Bu(o),E=v.length===m.length?v:go(v,[o]);S2t(o,p,m,E)}function GS(o,p,m,v,E,D,R,K){let se=new y(Qn,K);return se.declaration=o,se.typeParameters=p,se.parameters=v,se.thisParameter=m,se.resolvedReturnType=E,se.resolvedTypePredicate=D,se.minArgumentCount=R,se.resolvedMinArgumentCount=void 0,se.target=void 0,se.mapper=void 0,se.compositeSignatures=void 0,se.compositeKind=void 0,se}function ZQ(o){let p=GS(o.declaration,o.typeParameters,o.thisParameter,o.parameters,void 0,void 0,o.minArgumentCount,o.flags&167);return p.target=o.target,p.mapper=o.mapper,p.compositeSignatures=o.compositeSignatures,p.compositeKind=o.compositeKind,p}function b2t(o,p){let m=ZQ(o);return m.compositeSignatures=p,m.compositeKind=1048576,m.target=void 0,m.mapper=void 0,m}function fbr(o,p){if((o.flags&24)===p)return o;o.optionalCallSignatureCache||(o.optionalCallSignatureCache={});let m=p===8?"inner":"outer";return o.optionalCallSignatureCache[m]||(o.optionalCallSignatureCache[m]=mbr(o,p))}function mbr(o,p){$.assert(p===8||p===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");let m=ZQ(o);return m.flags|=p,m}function x2t(o,p){if(Am(o)){let E=o.parameters.length-1,D=o.parameters[E],R=di(D);if(Gc(R))return[m(R,E,D)];if(!p&&R.flags&1048576&&ht(R.types,Gc))return Cr(R.types,K=>m(K,E,D))}return[o.parameters];function m(E,D,R){let K=Bu(E),se=v(E,R),ce=Cr(K,(fe,Ue)=>{let Me=se&&se[Ue]?se[Ue]:tJ(o,D+Ue,E),yt=E.target.elementFlags[Ue],Jt=yt&12?32768:yt&2?16384:0,Xt=zc(1,Me,Jt);return Xt.links.type=yt&4?um(fe):fe,Xt});return go(o.parameters.slice(0,D),ce)}function v(E,D){let R=Cr(E.target.labeledElementDeclarations,(K,se)=>lUe(K,se,E.target.elementFlags[se],D));if(R){let K=[],se=new Set;for(let fe=0;fe=Ue&&se<=Me){let yt=Me?mxe(fe,QE(K,fe.typeParameters,Ue,R)):ZQ(fe);yt.typeParameters=o.localTypeParameters,yt.resolvedReturnType=o,yt.flags=E?yt.flags|4:yt.flags&-5,ce.push(yt)}}return ce}function _xe(o,p,m,v,E){for(let D of o)if(Rse(D,p,m,v,E,m?qTr:uZ))return D}function gbr(o,p,m){if(p.typeParameters){if(m>0)return;for(let E=1;E1&&(m=m===void 0?v:-1);for(let E of o[v])if(!p||!_xe(p,E,!1,!1,!0)){let D=gbr(o,E,v);if(D){let R=E;if(D.length>1){let K=E.thisParameter,se=X(D,ce=>ce.thisParameter);if(se){let ce=Ac(Wn(D,fe=>fe.thisParameter&&di(fe.thisParameter)));K=mN(se,ce)}R=b2t(E,D),R.thisParameter=K}(p||(p=[])).push(R)}}}if(!te(p)&&m!==-1){let v=o[m!==void 0?m:0],E=v.slice();for(let D of o)if(D!==v){let R=D[0];if($.assert(!!R,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),E=R.typeParameters&&Pt(E,K=>!!K.typeParameters&&!T2t(R.typeParameters,K.typeParameters))?void 0:Cr(E,K=>Sbr(K,R)),!E)break}p=E}return p||j}function T2t(o,p){if(te(o)!==te(p))return!1;if(!o||!p)return!0;let m=ty(p,o);for(let v=0;v=E?o:p,R=D===o?p:o,K=D===o?v:E,se=Wb(o)||Wb(p),ce=se&&!Wb(D),fe=new Array(K+(ce?1:0));for(let Ue=0;Ue=Jv(D)&&Ue>=Jv(R),on=Ue>=v?void 0:tJ(o,Ue),Hn=Ue>=E?void 0:tJ(p,Ue),fi=on===Hn?on:on?Hn?void 0:on:Hn,sn=zc(1|(kr&&!Xt?16777216:0),fi||`arg${Ue}`,Xt?32768:kr?16384:0);sn.links.type=Xt?um(Jt):Jt,fe[Ue]=sn}if(ce){let Ue=zc(1,"args",32768);Ue.links.type=um(qv(R,K)),R===p&&(Ue.links.type=Oa(Ue.links.type,m)),fe[K]=Ue}return fe}function Sbr(o,p){let m=o.typeParameters||p.typeParameters,v;o.typeParameters&&p.typeParameters&&(v=ty(p.typeParameters,o.typeParameters));let E=(o.flags|p.flags)&166,D=o.declaration,R=vbr(o,p,v),K=Yr(R);K&&Fp(K)&32768&&(E|=1);let se=ybr(o.thisParameter,p.thisParameter,v),ce=Math.max(o.minArgumentCount,p.minArgumentCount),fe=GS(D,m,se,R,void 0,void 0,ce,E);return fe.compositeKind=1048576,fe.compositeSignatures=go(o.compositeKind!==2097152&&o.compositeSignatures||[o],[p]),v?fe.mapper=o.compositeKind!==2097152&&o.mapper&&o.compositeSignatures?Tw(o.mapper,v):v:o.compositeKind!==2097152&&o.mapper&&o.compositeSignatures&&(fe.mapper=o.mapper),fe}function E2t(o){let p=lm(o[0]);if(p){let m=[];for(let v of p){let E=v.keyType;ht(o,D=>!!oT(D,E))&&m.push(aT(E,Do(Cr(o,D=>vw(D,E))),Pt(o,D=>oT(D,E).isReadonly)))}return m}return j}function bbr(o){let p=Rje(Cr(o.types,E=>E===Vn?[So]:Gs(E,0))),m=Rje(Cr(o.types,E=>Gs(E,1))),v=E2t(o.types);y1(o,G,p,m,v)}function _se(o,p){return o?p?Ac([o,p]):o:p}function k2t(o){let p=Lo(o,v=>Gs(v,1).length>0),m=Cr(o,Of);if(p>0&&p===Lo(m,v=>v)){let v=m.indexOf(!0);m[v]=!1}return m}function xbr(o,p,m,v){let E=[];for(let D=0;DK);for(let K=0;K0&&(ce=Cr(ce,fe=>{let Ue=ZQ(fe);return Ue.resolvedReturnType=xbr(Tl(fe),E,D,K),Ue})),m=C2t(m,ce)}p=C2t(p,Gs(se,0)),v=nl(lm(se),(ce,fe)=>D2t(ce,fe,!1),v)}y1(o,G,p||j,m||j,v||j)}function C2t(o,p){for(let m of p)(!o||ht(o,v=>!Rse(v,m,!1,!1,!1,uZ)))&&(o=jt(o,m));return o}function D2t(o,p,m){if(o)for(let v=0;v{var se;!(K.flags&418)&&!(K.flags&512&&((se=K.declarations)!=null&&se.length)&&ht(K.declarations,Gm))&&R.set(K.escapedName,K)}),m=R}let E;if(y1(o,m,j,j,j),p.flags&32){let R=O0(p),K=d2(R);K.flags&11272192?(m=ic(y7(m)),d2t(m,$l(K))):K===at&&(E=va)}let D=gxe(m);if(D?v=yxe(D,so(m.values())):(E&&(v=jt(v,E)),p.flags&384&&(Tu(p).flags&32||Pt(o.properties,R=>!!(di(R).flags&296)))&&(v=jt(v,ua))),y1(o,m,j,j,v||j),p.flags&8208&&(o.callSignatures=n6(p)),p.flags&32){let R=O0(p),K=p.members?n6(p.members.get("__constructor")):j;p.flags&16&&(K=En(K.slice(),Wn(o.callSignatures,se=>XS(se.declaration)?GS(se.declaration,se.typeParameters,se.thisParameter,se.parameters,R,void 0,se.minArgumentCount,se.flags&167):void 0))),K.length||(K=hbr(R)),o.constructSignatures=K}}function kbr(o,p,m){return Oa(o,ty([p.indexType,p.objectType],[Bv(0),Jb([m])]))}function Cbr(o){let p=e0(o.mappedType);if(!(p.flags&1048576||p.flags&2097152))return;let m=p.flags&1048576?p.origin:p;if(!m||!(m.flags&2097152))return;let v=Ac(m.types.filter(E=>E!==o.constraintType));return v!==tn?v:void 0}function Dbr(o){let p=oT(o.source,Mt),m=zb(o.mappedType),v=!(m&1),E=m&4?0:16777216,D=p?[aT(Mt,Yxe(p.type,o.mappedType,o.constraintType)||er,v&&p.isReadonly)]:j,R=ic(),K=Cbr(o);for(let se of $l(o.source)){if(K){let Ue=A7(se,8576);if(!tc(Ue,K))continue}let ce=8192|(v&&Vv(se)?8:0),fe=zc(4|se.flags&E,se.escapedName,ce);if(fe.declarations=se.declarations,fe.links.nameType=io(se).nameType,fe.links.propertyType=di(se),o.constraintType.type.flags&8388608&&o.constraintType.type.objectType.flags&262144&&o.constraintType.type.indexType.flags&262144){let Ue=o.constraintType.type.objectType,Me=kbr(o.mappedType,o.constraintType.type,Ue);fe.links.mappedType=Me,fe.links.constraintType=KS(Ue)}else fe.links.mappedType=o.mappedType,fe.links.constraintType=o.constraintType;R.set(se.escapedName,fe)}y1(o,R,j,j,D)}function dse(o){if(o.flags&4194304){let p=nh(o.type);return rD(p)?xEt(p):KS(p)}if(o.flags&16777216){if(o.root.isDistributive){let p=o.checkType,m=dse(p);if(m!==p)return NBe(o,_N(o.root.checkType,m,o.mapper),!1)}return o}if(o.flags&1048576)return hp(o,dse,!0);if(o.flags&2097152){let p=o.types;return p.length===2&&p[0].flags&76&&p[1]===sc?o:Ac(Zo(o.types,dse))}return o}function Lje(o){return Fp(o)&4096}function Mje(o,p,m,v){for(let E of $l(o))v(A7(E,p));if(o.flags&1)v(Mt);else for(let E of lm(o))(!m||E.keyType.flags&134217732)&&v(E.keyType)}function Abr(o){let p=ic(),m;y1(o,G,j,j,j);let v=av(o),E=e0(o),D=o.target||o,R=HE(D),K=XQ(D)!==2,se=iT(D),ce=nh(yw(o)),fe=zb(o);FM(o)?Mje(ce,8576,!1,Me):vN(dse(E),Me),y1(o,p,j,j,m||j);function Me(Jt){let Xt=R?Oa(R,sZ(o.mapper,v,Jt)):Jt;vN(Xt,kr=>yt(Jt,kr))}function yt(Jt,Xt){if(b0(Xt)){let kr=x0(Xt),on=p.get(kr);if(on)on.links.nameType=Do([on.links.nameType,Xt]),on.links.keyType=Do([on.links.keyType,Jt]);else{let Hn=b0(Jt)?vc(ce,x0(Jt)):void 0,fi=!!(fe&4||!(fe&8)&&Hn&&Hn.flags&16777216),sn=!!(fe&1||!(fe&2)&&Hn&&Vv(Hn)),rn=be&&!fi&&Hn&&Hn.flags&16777216,vi=Hn?Lje(Hn):0,wo=zc(4|(fi?16777216:0),kr,vi|262144|(sn?8:0)|(rn?524288:0));wo.links.mappedType=o,wo.links.nameType=Xt,wo.links.keyType=Jt,Hn&&(wo.links.syntheticOrigin=Hn,wo.declarations=K?Hn.declarations:void 0),p.set(kr,wo)}}else if(vxe(Xt)||Xt.flags&33){let kr=Xt.flags&5?Mt:Xt.flags&40?Ir:Xt,on=Oa(se,sZ(o.mapper,v,Jt)),Hn=YQ(ce,Xt),fi=!!(fe&1||!(fe&2)&&Hn?.isReadonly),sn=aT(kr,on,fi);m=D2t(m,sn,!0)}}}function wbr(o){var p;if(!o.links.type){let m=o.links.mappedType;if(!WS(o,0))return m.containsError=!0,Et;let v=iT(m.target||m),E=sZ(m.mapper,av(m),o.links.keyType),D=Oa(v,E),R=be&&o.flags&16777216&&!s_(D,49152)?nD(D,!0):o.links.checkFlags&524288?Hxe(D):D;kt()||(gt(M,x.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Ua(o),ri(m)),R=Et),(p=o.links).type??(p.type=R)}return o.links.type}function av(o){return o.typeParameter||(o.typeParameter=gw($i(o.declaration.typeParameter)))}function e0(o){return o.constraintType||(o.constraintType=Th(av(o))||Et)}function HE(o){return o.declaration.nameType?o.nameType||(o.nameType=Oa(Sa(o.declaration.nameType),o.mapper)):void 0}function iT(o){return o.templateType||(o.templateType=o.declaration.type?Oa(Om(Sa(o.declaration.type),!0,!!(zb(o)&4)),o.mapper):Et)}function A2t(o){return NR(o.declaration.typeParameter)}function FM(o){let p=A2t(o);return p.kind===199&&p.operator===143}function yw(o){if(!o.modifiersType)if(FM(o))o.modifiersType=Oa(Sa(A2t(o).type),o.mapper);else{let p=SBe(o.declaration),m=e0(p),v=m&&m.flags&262144?Th(m):m;o.modifiersType=v&&v.flags&4194304?Oa(v.type,o.mapper):er}return o.modifiersType}function zb(o){let p=o.declaration;return(p.readonlyToken?p.readonlyToken.kind===41?2:1:0)|(p.questionToken?p.questionToken.kind===41?8:4:0)}function w2t(o){let p=zb(o);return p&8?-1:p&4?1:0}function Bq(o){if(ro(o)&32)return w2t(o)||Bq(yw(o));if(o.flags&2097152){let p=Bq(o.types[0]);return ht(o.types,(m,v)=>v===0||Bq(m)===p)?p:0}return 0}function Ibr(o){return!!(ro(o)&32&&zb(o)&4)}function Xh(o){if(ro(o)&32){let p=e0(o);if(pN(p))return!0;let m=HE(o);if(m&&pN(Oa(m,s6(av(o),p))))return!0}return!1}function XQ(o){let p=HE(o);return p?tc(p,av(o))?1:2:0}function jv(o){return o.members||(o.flags&524288?o.objectFlags&4?dbr(o):o.objectFlags&3?_br(o):o.objectFlags&1024?Dbr(o):o.objectFlags&16?Ebr(o):o.objectFlags&32?Abr(o):$.fail("Unhandled object type "+$.formatObjectFlags(o.objectFlags)):o.flags&1048576?bbr(o):o.flags&2097152?Tbr(o):$.fail("Unhandled type "+$.formatTypeFlags(o.flags))),o}function KE(o){return o.flags&524288?jv(o).properties:j}function t6(o,p){if(o.flags&524288){let v=jv(o).members.get(p);if(v&&ln(v))return v}}function fse(o){if(!o.resolvedProperties){let p=ic();for(let m of o.types){for(let v of $l(m))if(!p.has(v.escapedName)){let E=hse(o,v.escapedName,!!(o.flags&2097152));E&&p.set(v.escapedName,E)}if(o.flags&1048576&&lm(m).length===0)break}o.resolvedProperties=xh(p)}return o.resolvedProperties}function $l(o){return o=$q(o),o.flags&3145728?fse(o):KE(o)}function Pbr(o,p){o=$q(o),o.flags&3670016&&jv(o).members.forEach((m,v)=>{WC(m,v)&&p(m,v)})}function Nbr(o,p){return p.properties.some(v=>{let E=v.name&&(Ev(v.name)?Sg(DH(v.name)):m2(v.name)),D=E&&b0(E)?x0(E):void 0,R=D===void 0?void 0:en(o,D);return!!R&&dZ(R)&&!tc($7(v),R)})}function Obr(o){let p=Do(o);if(!(p.flags&1048576))return WUe(p);let m=ic();for(let v of o)for(let{escapedName:E}of WUe(v))if(!m.has(E)){let D=L2t(p,E);D&&m.set(E,D)}return so(m.values())}function iN(o){return o.flags&262144?Th(o):o.flags&8388608?Rbr(o):o.flags&16777216?N2t(o):Gf(o)}function Th(o){return mse(o)?qq(o):void 0}function Fbr(o,p){let m=cZ(o);return!!m&&oN(m,p)}function oN(o,p=0){var m;return p<5&&!!(o&&(o.flags&262144&&Pt((m=o.symbol)==null?void 0:m.declarations,v=>ko(v,4096))||o.flags&3145728&&Pt(o.types,v=>oN(v,p))||o.flags&8388608&&oN(o.objectType,p+1)||o.flags&16777216&&oN(N2t(o),p+1)||o.flags&33554432&&oN(o.baseType,p)||ro(o)&32&&Fbr(o,p)||rD(o)&&hr(i6(o),(v,E)=>!!(o.target.elementFlags[E]&8)&&oN(v,p))>=0))}function Rbr(o){return mse(o)?Lbr(o):void 0}function jje(o){let p=h2(o,!1);return p!==o?p:iN(o)}function Lbr(o){if(zje(o))return Axe(o.objectType,o.indexType);let p=jje(o.indexType);if(p&&p!==o.indexType){let v=YC(o.objectType,p,o.accessFlags);if(v)return v}let m=jje(o.objectType);if(m&&m!==o.objectType)return YC(m,o.indexType,o.accessFlags)}function Bje(o){if(!o.resolvedDefaultConstraint){let p=bTr(o),m=tD(o);o.resolvedDefaultConstraint=Mi(p)?m:Mi(m)?p:Do([p,m])}return o.resolvedDefaultConstraint}function I2t(o){if(o.resolvedConstraintOfDistributive!==void 0)return o.resolvedConstraintOfDistributive||void 0;if(o.root.isDistributive&&o.restrictiveInstantiation!==o){let p=h2(o.checkType,!1),m=p===o.checkType?iN(p):p;if(m&&m!==o.checkType){let v=NBe(o,_N(o.root.checkType,m,o.mapper),!0);if(!(v.flags&131072))return o.resolvedConstraintOfDistributive=v,v}}o.resolvedConstraintOfDistributive=!1}function P2t(o){return I2t(o)||Bje(o)}function N2t(o){return mse(o)?P2t(o):void 0}function Mbr(o,p){let m,v=!1;for(let E of o)if(E.flags&465829888){let D=iN(E);for(;D&&D.flags&21233664;)D=iN(D);D&&(m=jt(m,D),p&&(m=jt(m,E)))}else(E.flags&469892092||Vb(E))&&(v=!0);if(m&&(p||v)){if(v)for(let E of o)(E.flags&469892092||Vb(E))&&(m=jt(m,E));return Nse(Ac(m,2),!1)}}function Gf(o){if(o.flags&464781312||rD(o)){let p=$je(o);return p!==Gp&&p!==N_?p:void 0}return o.flags&4194304?Uo:void 0}function HS(o){return Gf(o)||o}function mse(o){return $je(o)!==N_}function $je(o){if(o.resolvedBaseConstraint)return o.resolvedBaseConstraint;let p=[];return o.resolvedBaseConstraint=m(o);function m(D){if(!D.immediateBaseConstraint){if(!WS(D,4))return N_;let R,K=zxe(D);if((p.length<10||p.length<50&&!un(p,K))&&(p.push(K),R=E(h2(D,!1)),p.pop()),!kt()){if(D.flags&262144){let se=Sxe(D);if(se){let ce=gt(se,x.Type_parameter_0_has_a_circular_constraint,ri(D));M&&!oP(se,M)&&!oP(M,se)&&ac(ce,xi(M,x.Circularity_originates_in_type_at_this_location))}}R=N_}D.immediateBaseConstraint??(D.immediateBaseConstraint=R||Gp)}return D.immediateBaseConstraint}function v(D){let R=m(D);return R!==Gp&&R!==N_?R:void 0}function E(D){if(D.flags&262144){let R=qq(D);return D.isThisType||!R?R:v(R)}if(D.flags&3145728){let R=D.types,K=[],se=!1;for(let ce of R){let fe=v(ce);fe?(fe!==ce&&(se=!0),K.push(fe)):se=!0}return se?D.flags&1048576&&K.length===R.length?Do(K):D.flags&2097152&&K.length?Ac(K):void 0:D}if(D.flags&4194304)return Uo;if(D.flags&134217728){let R=D.types,K=Wn(R,v);return K.length===R.length?cN(D.texts,K):Mt}if(D.flags&268435456){let R=v(D.type);return R&&R!==D.type?w7(D.symbol,R):Mt}if(D.flags&8388608){if(zje(D))return v(Axe(D.objectType,D.indexType));let R=v(D.objectType),K=v(D.indexType),se=R&&K&&YC(R,K,D.accessFlags);return se&&v(se)}if(D.flags&16777216){let R=P2t(D);return R&&v(R)}if(D.flags&33554432)return v(tBe(D));if(rD(D)){let R=Cr(i6(D),(K,se)=>{let ce=K.flags&262144&&D.target.elementFlags[se]&8&&v(K)||K;return ce!==K&&bg(ce,fe=>kw(fe)&&!rD(fe))?ce:K});return Jb(R,D.target.elementFlags,D.target.readonly,D.target.labeledElementDeclarations)}return D}}function jbr(o,p){if(o===p)return o.resolvedApparentType||(o.resolvedApparentType=Yg(o,p,!0));let m=`I${ff(o)},${ff(p)}`;return Sh(m)??h1(m,Yg(o,p,!0))}function Uje(o){if(o.default)o.default===lf&&(o.default=N_);else if(o.target){let p=Uje(o.target);o.default=p?Oa(p,o.mapper):Gp}else{o.default=lf;let p=o.symbol&&X(o.symbol.declarations,v=>Zu(v)&&v.default),m=p?Sa(p):Gp;o.default===lf&&(o.default=m)}return o.default}function r6(o){let p=Uje(o);return p!==Gp&&p!==N_?p:void 0}function Bbr(o){return Uje(o)!==N_}function O2t(o){return!!(o.symbol&&X(o.symbol.declarations,p=>Zu(p)&&p.default))}function F2t(o){return o.resolvedApparentType||(o.resolvedApparentType=$br(o))}function $br(o){let p=o.target??o,m=cZ(p);if(m&&!p.declaration.nameType){let v=yw(o),E=Xh(v)?F2t(v):Gf(v);if(E&&bg(E,D=>kw(D)||R2t(D)))return Oa(p,_N(m,E,o.mapper))}return o}function R2t(o){return!!(o.flags&2097152)&&ht(o.types,kw)}function zje(o){let p;return!!(o.flags&8388608&&ro(p=o.objectType)&32&&!Xh(p)&&pN(o.indexType)&&!(zb(p)&8)&&!p.declaration.nameType)}function nh(o){let p=o.flags&465829888?Gf(o)||er:o,m=ro(p);return m&32?F2t(p):m&4&&p!==o?Yg(p,o):p.flags&2097152?jbr(p,o):p.flags&402653316?nd:p.flags&296?Mu:p.flags&2112?kxr():p.flags&528?Dp:p.flags&12288?pEt():p.flags&67108864?kc:p.flags&4194304?Uo:p.flags&2&&!be?kc:p}function $q(o){return S1(nh(S1(o)))}function L2t(o,p,m){var v,E,D;let R=0,K,se,ce,fe=o.flags&1048576,Ue,Me=4,yt=fe?0:8,Jt=!1;for(let Fa of o.types){let ho=nh(Fa);if(!(si(ho)||ho.flags&131072)){let pa=vc(ho,p,m),Ps=pa?S0(pa):0;if(pa){if(pa.flags&106500&&(Ue??(Ue=fe?0:16777216),fe?Ue|=pa.flags&16777216:Ue&=pa.flags),!K)K=pa,R=pa.flags&98304||4;else if(pa!==K){if((ZM(pa)||pa)===(ZM(K)||K)&&qBe(K,pa,(qa,rp)=>qa===rp?-1:0)===-1)Jt=!!K.parent&&!!te(Dc(K.parent));else{se||(se=new Map,se.set(hc(K),K));let qa=hc(pa);se.has(qa)||se.set(qa,pa)}R&98304&&(pa.flags&98304)!==(R&98304)&&(R=R&-98305|4)}fe&&Vv(pa)?yt|=8:!fe&&!Vv(pa)&&(yt&=-9),yt|=(Ps&6?0:256)|(Ps&4?512:0)|(Ps&2?1024:0)|(Ps&256?2048:0),B$e(pa)||(Me=2)}else if(fe){let El=!QQ(p)&&D7(ho,p);El?(R=R&-98305|4,yt|=32|(El.isReadonly?8:0),ce=jt(ce,Gc(ho)?Vxe(ho)||Ne:El.type)):ek(ho)&&!(ro(ho)&2097152)?(yt|=32,ce=jt(ce,Ne)):yt|=16}}}if(!K||fe&&(se||yt&48)&&yt&1536&&!(se&&Ubr(se.values())))return;if(!se&&!(yt&16)&&!ce)if(Jt){let Fa=(v=Ci(K,wx))==null?void 0:v.links,ho=mN(K,Fa?.type);return ho.parent=(D=(E=K.valueDeclaration)==null?void 0:E.symbol)==null?void 0:D.parent,ho.links.containingType=o,ho.links.mapper=Fa?.mapper,ho.links.writeType=GE(K),ho}else return K;let Xt=se?so(se.values()):[K],kr,on,Hn,fi=[],sn,rn,vi=!1;for(let Fa of Xt){rn?Fa.valueDeclaration&&Fa.valueDeclaration!==rn&&(vi=!0):rn=Fa.valueDeclaration,kr=En(kr,Fa.declarations);let ho=di(Fa);on||(on=ho,Hn=io(Fa).nameType);let pa=GE(Fa);(sn||pa!==ho)&&(sn=jt(sn||fi.slice(),pa)),ho!==on&&(yt|=64),(dZ(ho)||lN(ho))&&(yt|=128),ho.flags&131072&&ho!==uu&&(yt|=131072),fi.push(ho)}En(fi,ce);let wo=zc(R|(Ue??0),p,Me|yt);return wo.links.containingType=o,!vi&&rn&&(wo.valueDeclaration=rn,rn.symbol.parent&&(wo.parent=rn.symbol.parent)),wo.declarations=kr,wo.links.nameType=Hn,fi.length>2?(wo.links.checkFlags|=65536,wo.links.deferralParent=o,wo.links.deferralConstituents=fi,wo.links.deferralWriteConstituents=sn):(wo.links.type=fe?Do(fi):Ac(fi),sn&&(wo.links.writeType=fe?Do(sn):Ac(sn))),wo}function M2t(o,p,m){var v,E,D;let R=m?(v=o.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:v.get(p):(E=o.propertyCache)==null?void 0:E.get(p);return R||(R=L2t(o,p,m),R&&((m?o.propertyCacheWithoutObjectFunctionPropertyAugment||(o.propertyCacheWithoutObjectFunctionPropertyAugment=ic()):o.propertyCache||(o.propertyCache=ic())).set(p,R),m&&!(Fp(R)&48)&&!((D=o.propertyCache)!=null&&D.get(p))&&(o.propertyCache||(o.propertyCache=ic())).set(p,R))),R}function Ubr(o){let p;for(let m of o){if(!m.declarations)return;if(!p){p=new Set(m.declarations);continue}if(p.forEach(v=>{un(m.declarations,v)||p.delete(v)}),p.size===0)return}return p}function hse(o,p,m){let v=M2t(o,p,m);return v&&!(Fp(v)&16)?v:void 0}function S1(o){return o.flags&1048576&&o.objectFlags&16777216?o.resolvedReducedType||(o.resolvedReducedType=zbr(o)):o.flags&2097152?(o.objectFlags&16777216||(o.objectFlags|=16777216|(Pt(fse(o),qbr)?33554432:0)),o.objectFlags&33554432?tn:o):o}function zbr(o){let p=Zo(o.types,S1);if(p===o.types)return o;let m=Do(p);return m.flags&1048576&&(m.resolvedReducedType=m),m}function qbr(o){return j2t(o)||B2t(o)}function j2t(o){return!(o.flags&16777216)&&(Fp(o)&131264)===192&&!!(di(o).flags&131072)}function B2t(o){return!o.valueDeclaration&&!!(Fp(o)&1024)}function qje(o){return!!(o.flags&1048576&&o.objectFlags&16777216&&Pt(o.types,qje)||o.flags&2097152&&Jbr(o))}function Jbr(o){let p=o.uniqueLiteralFilledInstantiation||(o.uniqueLiteralFilledInstantiation=Oa(o,$a));return S1(p)!==p}function Jje(o,p){if(p.flags&2097152&&ro(p)&33554432){let m=wt(fse(p),j2t);if(m)return ws(o,x.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,ri(p,void 0,536870912),Ua(m));let v=wt(fse(p),B2t);if(v)return ws(o,x.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,ri(p,void 0,536870912),Ua(v))}return o}function vc(o,p,m,v){var E,D;if(o=$q(o),o.flags&524288){let R=jv(o),K=R.members.get(p);if(K&&!v&&((E=o.symbol)==null?void 0:E.flags)&512&&((D=io(o.symbol).typeOnlyExportStarMap)!=null&&D.has(p)))return;if(K&&ln(K,v))return K;if(m)return;let se=R===Ql?Vn:R.callSignatures.length?Ga:R.constructSignatures.length?el:void 0;if(se){let ce=t6(se,p);if(ce)return ce}return t6(br,p)}if(o.flags&2097152){let R=hse(o,p,!0);return R||(m?void 0:hse(o,p,m))}if(o.flags&1048576)return hse(o,p,m)}function gse(o,p){if(o.flags&3670016){let m=jv(o);return p===0?m.callSignatures:m.constructSignatures}return j}function Gs(o,p){let m=gse($q(o),p);if(p===0&&!te(m)&&o.flags&1048576){if(o.arrayFallbackSignatures)return o.arrayFallbackSignatures;let v;if(bg(o,E=>{var D;return!!((D=E.symbol)!=null&&D.parent)&&Vbr(E.symbol.parent)&&(v?v===E.symbol.escapedName:(v=E.symbol.escapedName,!0))})){let E=hp(o,R=>XE(($2t(R.symbol.parent)?Uc:tl).typeParameters[0],R.mapper)),D=um(E,j0(o,R=>$2t(R.symbol.parent)));return o.arrayFallbackSignatures=Gs(en(D,v),p)}o.arrayFallbackSignatures=m}return m}function Vbr(o){return!o||!tl.symbol||!Uc.symbol?!1:!!Pe(o,tl.symbol)||!!Pe(o,Uc.symbol)}function $2t(o){return!o||!Uc.symbol?!1:!!Pe(o,Uc.symbol)}function Uq(o,p){return wt(o,m=>m.keyType===p)}function Vje(o,p){let m,v,E;for(let D of o)D.keyType===Mt?m=D:C7(p,D.keyType)&&(v?(E||(E=[v])).push(D):v=D);return E?aT(er,Ac(Cr(E,D=>D.type)),nl(E,(D,R)=>D&&R.isReadonly,!0)):v||(m&&C7(p,Mt)?m:void 0)}function C7(o,p){return tc(o,p)||p===Mt&&tc(o,Ir)||p===Ir&&(o===Ss||!!(o.flags&128)&&$x(o.value))}function Wje(o){return o.flags&3670016?jv(o).indexInfos:j}function lm(o){return Wje($q(o))}function oT(o,p){return Uq(lm(o),p)}function vw(o,p){var m;return(m=oT(o,p))==null?void 0:m.type}function Gje(o,p){return lm(o).filter(m=>C7(p,m.keyType))}function YQ(o,p){return Vje(lm(o),p)}function D7(o,p){return YQ(o,QQ(p)?wr:Sg(oa(p)))}function U2t(o){var p;let m;for(let v of Zk(o))m=Jl(m,gw(v.symbol));return m?.length?m:i_(o)?(p=zq(o))==null?void 0:p.typeParameters:void 0}function Hje(o){let p=[];return o.forEach((m,v)=>{fw(v)||p.push(m)}),p}function z2t(o,p){if(vt(o))return;let m=Nf(It,'"'+o+'"',512);return m&&p?cl(m):m}function dxe(o){return VO(o)||CH(o)||wa(o)&&Ene(o)}function eZ(o){if(dxe(o))return!0;if(!wa(o))return!1;if(o.initializer){let m=t0(o.parent),v=o.parent.parameters.indexOf(o);return $.assert(v>=0),v>=Jv(m,3)}let p=uA(o.parent);return p?!o.type&&!o.dotDotDotToken&&o.parent.parameters.indexOf(o)>=ATe(p).length:!1}function Wbr(o){return ps(o)&&!xS(o)&&o.questionToken}function tZ(o,p,m,v){return{kind:o,parameterName:p,parameterIndex:m,type:v}}function qb(o){let p=0;if(o)for(let m=0;m=m&&D<=E){let R=o?o.slice():[];for(let se=D;se!!hv(Jt))&&!hv(o)&&!hTe(o)&&(v|=32);for(let Jt=ce?1:0;Jtse.arguments.length&&!on||(E=m.length)}if((o.kind===178||o.kind===179)&&OM(o)&&(!K||!D)){let Jt=o.kind===178?179:178,Xt=Qu($i(o),Jt);Xt&&(D=k7(Xt))}R&&R.typeExpression&&(D=mN(zc(1,"this"),Sa(R.typeExpression)));let Ue=TE(o)?fA(o):o,Me=Ue&&kp(Ue)?O0(cl(Ue.parent.symbol)):void 0,yt=Me?Me.localTypeParameters:U2t(o);(fme(o)||Ei(o)&&Gbr(o,m))&&(v|=1),(fL(o)&&ko(o,64)||kp(o)&&ko(o.parent,64))&&(v|=4),p.resolvedSignature=GS(o,yt,D,m,void 0,void 0,E,v)}return p.resolvedSignature}function Gbr(o,p){if(TE(o)||!Kje(o))return!1;let m=Yr(o.parameters),v=m?P4(m):sA(o).filter(Uy),E=Je(v,R=>R.typeExpression&&Hne(R.typeExpression.type)?R.typeExpression.type:void 0),D=zc(3,"args",32768);return E?D.links.type=um(Sa(E.type)):(D.links.checkFlags|=65536,D.links.deferralParent=tn,D.links.deferralConstituents=[If],D.links.deferralWriteConstituents=[If]),E&&p.pop(),p.push(D),!0}function zq(o){if(!(Ei(o)&&lu(o)))return;let p=mv(o);return p?.typeExpression&&TN(Sa(p.typeExpression))}function Hbr(o,p){let m=zq(o);if(!m)return;let v=o.parameters.indexOf(p);return p.dotDotDotToken?lce(m,v):qv(m,v)}function Kbr(o){let p=zq(o);return p&&Tl(p)}function Kje(o){let p=Ki(o);return p.containsArgumentsReference===void 0&&(p.flags&512?p.containsArgumentsReference=!0:p.containsArgumentsReference=m(o.body)),p.containsArgumentsReference;function m(v){if(!v)return!1;switch(v.kind){case 80:return v.escapedText===Se.escapedName&&qZ(v)===Se;case 173:case 175:case 178:case 179:return v.name.kind===168&&m(v.name);case 212:case 213:return m(v.expression);case 304:return m(v.initializer);default:return!ihe(v)&&!vS(v)&&!!Is(v,m)}}}function n6(o){if(!o||!o.declarations)return j;let p=[];for(let m=0;m0&&v.body){let E=o.declarations[m-1];if(v.parent===E.parent&&v.kind===E.kind&&v.pos===E.end)continue}if(Ei(v)&&v.jsDoc){let E=Hme(v);if(te(E)){for(let D of E){let R=D.typeExpression;R.type===void 0&&!kp(v)&&Dw(R,at),p.push(t0(R))}continue}}p.push(!mC(v)&&!r1(v)&&zq(v)||t0(v))}}return p}function q2t(o){let p=Nm(o,o);if(p){let m=vg(p);if(m)return di(m)}return at}function Sw(o){if(o.thisParameter)return di(o.thisParameter)}function F0(o){if(!o.resolvedTypePredicate){if(o.target){let p=F0(o.target);o.resolvedTypePredicate=p?tkt(p,o.mapper):Er}else if(o.compositeSignatures)o.resolvedTypePredicate=Qxr(o.compositeSignatures,o.compositeKind)||Er;else{let p=o.declaration&&jg(o.declaration),m;if(!p){let v=zq(o.declaration);v&&o!==v&&(m=F0(v))}if(p||m)o.resolvedTypePredicate=p&&gF(p)?Qbr(p,o):m||Er;else if(o.declaration&&lu(o.declaration)&&(!o.resolvedReturnType||o.resolvedReturnType.flags&16)&&xg(o)>0){let{declaration:v}=o;o.resolvedTypePredicate=Er,o.resolvedTypePredicate=LDr(v)||Er}else o.resolvedTypePredicate=Er}$.assert(!!o.resolvedTypePredicate)}return o.resolvedTypePredicate===Er?void 0:o.resolvedTypePredicate}function Qbr(o,p){let m=o.parameterName,v=o.type&&Sa(o.type);return m.kind===198?tZ(o.assertsModifier?2:0,void 0,void 0,v):tZ(o.assertsModifier?3:1,m.escapedText,hr(p.parameters,E=>E.escapedName===m.escapedText),v)}function J2t(o,p,m){return p!==2097152?Do(o,m):Ac(o)}function Tl(o){if(!o.resolvedReturnType){if(!WS(o,3))return Et;let p=o.target?Oa(Tl(o.target),o.mapper):o.compositeSignatures?Oa(J2t(Cr(o.compositeSignatures,Tl),o.compositeKind,2),o.mapper):RM(o.declaration)||(Op(o.declaration.body)?at:NTe(o.declaration));if(o.flags&8?p=Ikt(p):o.flags&16&&(p=nD(p)),!kt()){if(o.declaration){let m=jg(o.declaration);if(m)gt(m,x.Return_type_annotation_circularly_references_itself);else if(Fe){let v=o.declaration,E=cs(v);E?gt(E,x._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,du(E)):gt(v,x.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}p=at}o.resolvedReturnType??(o.resolvedReturnType=p)}return o.resolvedReturnType}function RM(o){if(o.kind===177)return O0(cl(o.parent.symbol));let p=jg(o);if(TE(o)){let m=QR(o);if(m&&kp(m.parent)&&!p)return O0(cl(m.parent.parent.symbol))}if(WO(o))return Sa(o.parameters[0].type);if(p)return Sa(p);if(o.kind===178&&OM(o)){let m=Ei(o)&&gl(o);if(m)return m;let v=Qu($i(o),179),E=Rq(v);if(E)return E}return Kbr(o)}function fxe(o){return o.compositeSignatures&&Pt(o.compositeSignatures,fxe)||!o.resolvedReturnType&&he(o,3)>=0}function Zbr(o){return V2t(o)||at}function V2t(o){if(Am(o)){let p=di(o.parameters[o.parameters.length-1]),m=Gc(p)?Vxe(p):p;return m&&vw(m,Ir)}}function rZ(o,p,m,v){let E=Qje(o,QE(p,o.typeParameters,qb(o.typeParameters),m));if(v){let D=bDt(Tl(E));if(D){let R=ZQ(D);R.typeParameters=v;let K=aN(R);K.mapper=E.mapper;let se=ZQ(E);return se.resolvedReturnType=K,se}}return E}function Qje(o,p){let m=o.instantiations||(o.instantiations=new Map),v=b1(p),E=m.get(v);return E||m.set(v,E=mxe(o,p)),E}function mxe(o,p){return dN(o,Xbr(o,p),!0)}function W2t(o){return Zo(o.typeParameters,p=>p.mapper?Oa(p,p.mapper):p)}function Xbr(o,p){return ty(W2t(o),p)}function nZ(o){return o.typeParameters?o.erasedSignatureCache||(o.erasedSignatureCache=Ybr(o)):o}function Ybr(o){return dN(o,YEt(o.typeParameters),!0)}function exr(o){return o.typeParameters?o.canonicalSignatureCache||(o.canonicalSignatureCache=txr(o)):o}function txr(o){return rZ(o,Cr(o.typeParameters,p=>p.target&&!Th(p.target)?p.target:p),Ei(o.declaration))}function rxr(o){let p=o.typeParameters;if(p){if(o.baseSignatureCache)return o.baseSignatureCache;let m=YEt(p),v=ty(p,Cr(p,D=>Th(D)||er)),E=Cr(p,D=>Oa(D,v)||er);for(let D=0;D{vxe(yt)&&!Uq(m,yt)&&m.push(aT(yt,Ue.type?Sa(Ue.type):at,Bg(Ue,8),Ue))})}}else if(g2t(Ue)){let Me=wi(Ue)?Ue.left:Ue.name,yt=mu(Me)?Bp(Me.argumentExpression):sv(Me);if(Uq(m,yt))continue;tc(yt,Uo)&&(tc(yt,Ir)?(v=!0,Q4(Ue)||(E=!1)):tc(yt,wr)?(D=!0,Q4(Ue)||(R=!1)):(K=!0,Q4(Ue)||(se=!1)),ce.push(Ue.symbol))}let fe=go(ce,yr(p,Ue=>Ue!==o));return K&&!Uq(m,Mt)&&m.push(EZ(se,0,fe,Mt)),v&&!Uq(m,Ir)&&m.push(EZ(E,0,fe,Ir)),D&&!Uq(m,wr)&&m.push(EZ(R,0,fe,wr)),m}return j}function vxe(o){return!!(o.flags&4108)||lN(o)||!!(o.flags&2097152)&&!xw(o)&&Pt(o.types,vxe)}function Sxe(o){return Wn(yr(o.symbol&&o.symbol.declarations,Zu),NR)[0]}function H2t(o,p){var m;let v;if((m=o.symbol)!=null&&m.declarations){for(let E of o.symbol.declarations)if(E.parent.kind===196){let[D=E.parent,R]=$6e(E.parent.parent);if(R.kind===184&&!p){let K=R,se=kUe(K);if(se){let ce=K.typeArguments.indexOf(D);if(ce()=>RAr(K,se,Jt))),Me=Oa(fe,Ue);Me!==o&&(v=jt(v,Me))}}}}else if(R.kind===170&&R.dotDotDotToken||R.kind===192||R.kind===203&&R.dotDotDotToken)v=jt(v,um(er));else if(R.kind===205)v=jt(v,Mt);else if(R.kind===169&&R.parent.kind===201)v=jt(v,Uo);else if(R.kind===201&&R.type&&bl(R.type)===E.parent&&R.parent.kind===195&&R.parent.extendsType===R&&R.parent.checkType.kind===201&&R.parent.checkType.type){let K=R.parent.checkType,se=Sa(K.type);v=jt(v,Oa(se,s6(gw($i(K.typeParameter)),K.typeParameter.constraint?Sa(K.typeParameter.constraint):Uo)))}}}return v&&Ac(v)}function qq(o){if(!o.constraint)if(o.target){let p=Th(o.target);o.constraint=p?Oa(p,o.mapper):Gp}else{let p=Sxe(o);if(!p)o.constraint=H2t(o)||Gp;else{let m=Sa(p);m.flags&1&&!si(m)&&(m=p.parent.parent.kind===201?Uo:er),o.constraint=m}}return o.constraint===Gp?void 0:o.constraint}function K2t(o){let p=Qu(o.symbol,169),m=c1(p.parent)?Ire(p.parent):p.parent;return m&&Xy(m)}function b1(o){let p="";if(o){let m=o.length,v=0;for(;v1&&(p+=":"+D),v+=D}}return p}function sN(o,p){return o?`@${hc(o)}`+(p?`:${b1(p)}`:""):""}function yse(o,p){let m=0;for(let v of o)(p===void 0||!(v.flags&p))&&(m|=ro(v));return m&458752}function LM(o,p){return Pt(p)&&o===Ar?er:f2(o,p)}function f2(o,p){let m=b1(p),v=o.instantiations.get(m);return v||(v=F_(4,o.symbol),o.instantiations.set(m,v),v.objectFlags|=p?yse(p):0,v.target=o,v.resolvedTypeArguments=p),v}function Q2t(o){let p=na(o.flags,o.symbol);return p.objectFlags=o.objectFlags,p.target=o.target,p.resolvedTypeArguments=o.resolvedTypeArguments,p}function Zje(o,p,m,v,E){if(!v){v=I7(p);let R=$M(v);E=m?y2(R,m):R}let D=F_(4,o.symbol);return D.target=o,D.node=p,D.mapper=m,D.aliasSymbol=v,D.aliasTypeArguments=E,D}function Bu(o){var p,m;if(!o.resolvedTypeArguments){if(!WS(o,5))return go(o.target.outerTypeParameters,(p=o.target.localTypeParameters)==null?void 0:p.map(()=>Et))||j;let v=o.node,E=v?v.kind===184?go(o.target.outerTypeParameters,jTe(v,o.target.localTypeParameters)):v.kind===189?[Sa(v.elementType)]:Cr(v.elements,Sa):j;kt()?o.resolvedTypeArguments??(o.resolvedTypeArguments=o.mapper?y2(E,o.mapper):E):(o.resolvedTypeArguments??(o.resolvedTypeArguments=go(o.target.outerTypeParameters,((m=o.target.localTypeParameters)==null?void 0:m.map(()=>Et))||j)),gt(o.node||M,o.target.symbol?x.Type_arguments_for_0_circularly_reference_themselves:x.Tuple_type_arguments_circularly_reference_themselves,o.target.symbol&&Ua(o.target.symbol)))}return o.resolvedTypeArguments}function ZE(o){return te(o.target.typeParameters)}function Z2t(o,p){let m=Tu(cl(p)),v=m.localTypeParameters;if(v){let E=te(o.typeArguments),D=qb(v),R=Ei(o);if(!(!Fe&&R)&&(Ev.length)){let ce=R&&VT(o)&&!EF(o.parent),fe=D===v.length?ce?x.Expected_0_type_arguments_provide_these_with_an_extends_tag:x.Generic_type_0_requires_1_type_argument_s:ce?x.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:x.Generic_type_0_requires_between_1_and_2_type_arguments,Ue=ri(m,void 0,2);if(gt(o,fe,Ue,D,v.length),!R)return Et}if(o.kind===184&&SEt(o,te(o.typeArguments)!==v.length))return Zje(m,o,void 0);let se=go(m.outerTypeParameters,QE(vse(o),v,D,R));return f2(m,se)}return bw(o,p)?m:Et}function MM(o,p,m,v){let E=Tu(o);if(E===Ye){let ce=Gye.get(o.escapedName);if(ce!==void 0&&p&&p.length===1)return ce===4?Xje(p[0]):w7(o,p[0])}let D=io(o),R=D.typeParameters,K=b1(p)+sN(m,v),se=D.instantiations.get(K);return se||D.instantiations.set(K,se=ikt(E,ty(R,QE(p,R,qb(R),Ei(o.valueDeclaration))),m,v)),se}function nxr(o,p){if(Fp(p)&1048576){let E=vse(o),D=sN(p,E),R=Ot.get(D);return R||(R=ra(1,"error",void 0,`alias ${D}`),R.aliasSymbol=p,R.aliasTypeArguments=E,Ot.set(D,R)),R}let m=Tu(p),v=io(p).typeParameters;if(v){let E=te(o.typeArguments),D=qb(v);if(Ev.length)return gt(o,D===v.length?x.Generic_type_0_requires_1_type_argument_s:x.Generic_type_0_requires_between_1_and_2_type_arguments,Ua(p),D,v.length),Et;let R=I7(o),K=R&&(X2t(p)||!X2t(R))?R:void 0,se;if(K)se=$M(K);else if(Zte(o)){let ce=Jq(o,2097152,!0);if(ce&&ce!==ye){let fe=df(ce);fe&&fe.flags&524288&&(K=fe,se=vse(o)||(v?[]:void 0))}}return MM(p,vse(o),K,se)}return bw(o,p)?m:Et}function X2t(o){var p;let m=(p=o.declarations)==null?void 0:p.find(VG);return!!(m&&My(m))}function ixr(o){switch(o.kind){case 184:return o.typeName;case 234:let p=o.expression;if(ru(p))return p}}function Y2t(o){return o.parent?`${Y2t(o.parent)}.${o.escapedName}`:o.escapedName}function bxe(o){let m=(o.kind===167?o.right:o.kind===212?o.name:o).escapedText;if(m){let v=o.kind===167?bxe(o.left):o.kind===212?bxe(o.expression):void 0,E=v?`${Y2t(v)}.${m}`:m,D=Ct.get(E);return D||(Ct.set(E,D=zc(524288,m,1048576)),D.parent=v,D.links.declaredType=xr),D}return ye}function Jq(o,p,m){let v=ixr(o);if(!v)return ye;let E=jp(v,p,m);return E&&E!==ye?E:m?ye:bxe(v)}function xxe(o,p){if(p===ye)return Et;if(p=d7(p)||p,p.flags&96)return Z2t(o,p);if(p.flags&524288)return nxr(o,p);let m=u2t(p);if(m)return bw(o,p)?ih(m):Et;if(p.flags&111551&&Txe(o)){let v=oxr(o,p);return v||(Jq(o,788968),di(p))}return Et}function oxr(o,p){let m=Ki(o);if(!m.resolvedJSDocType){let v=di(p),E=v;if(p.valueDeclaration){let D=o.kind===206&&o.qualifier;v.symbol&&v.symbol!==p&&D&&(E=xxe(o,v.symbol))}m.resolvedJSDocType=E}return m.resolvedJSDocType}function Xje(o){return Yje(o)?eEt(o,er):o}function Yje(o){return!!(o.flags&3145728&&Pt(o.types,Yje)||o.flags&33554432&&!jM(o)&&Yje(o.baseType)||o.flags&524288&&!Vb(o)||o.flags&432275456&&!lN(o))}function jM(o){return!!(o.flags&33554432&&o.constraint.flags&2)}function eBe(o,p){return p.flags&3||p===o||o.flags&1?o:eEt(o,p)}function eEt(o,p){let m=`${ff(o)}>${ff(p)}`,v=yc.get(m);if(v)return v;let E=Fo(33554432);return E.baseType=o,E.constraint=p,yc.set(m,E),E}function tBe(o){return jM(o)?o.baseType:Ac([o.constraint,o.baseType])}function tEt(o){return o.kind===190&&o.elements.length===1}function rEt(o,p,m){return tEt(p)&&tEt(m)?rEt(o,p.elements[0],m.elements[0]):g2(Sa(p))===g2(o)?Sa(m):void 0}function axr(o,p){let m,v=!0;for(;p&&!fa(p)&&p.kind!==321;){let E=p.parent;if(E.kind===170&&(v=!v),(v||o.flags&8650752)&&E.kind===195&&p===E.trueType){let D=rEt(o,E.checkType,E.extendsType);D&&(m=jt(m,D))}else if(o.flags&262144&&E.kind===201&&!E.nameType&&p===E.type){let D=Sa(E);if(av(D)===g2(o)){let R=cZ(D);if(R){let K=Th(R);K&&bg(K,kw)&&(m=jt(m,Do([Ir,Ss])))}}}p=E}return m?eBe(o,Ac(m)):o}function Txe(o){return!!(o.flags&16777216)&&(o.kind===184||o.kind===206)}function bw(o,p){return o.typeArguments?(gt(o,x.Type_0_is_not_generic,p?Ua(p):o.typeName?du(o.typeName):qye),!1):!0}function nEt(o){if(ct(o.typeName)){let p=o.typeArguments;switch(o.typeName.escapedText){case"String":return bw(o),Mt;case"Number":return bw(o),Ir;case"BigInt":return bw(o),ii;case"Boolean":return bw(o),_r;case"Void":return bw(o),pn;case"Undefined":return bw(o),Ne;case"Null":return bw(o),mr;case"Function":case"function":return bw(o),Vn;case"array":return(!p||!p.length)&&!Fe?If:void 0;case"promise":return(!p||!p.length)&&!Fe?pce(at):void 0;case"Object":if(p&&p.length===2){if(Cre(o)){let m=Sa(p[0]),v=Sa(p[1]),E=m===Mt||m===Ir?[aT(m,v,!1)]:j;return mp(void 0,G,j,j,E)}return at}return bw(o),Fe?void 0:at}}}function sxr(o){let p=Sa(o.type);return be?jse(p,65536):p}function Exe(o){let p=Ki(o);if(!p.resolvedType){if(z1(o)&&ZI(o.parent))return p.resolvedSymbol=ye,p.resolvedType=Bp(o.parent.expression);let m,v,E=788968;Txe(o)&&(v=nEt(o),v||(m=Jq(o,E,!0),m===ye?m=Jq(o,E|111551):Jq(o,E),v=xxe(o,m))),v||(m=Jq(o,E),v=xxe(o,m)),p.resolvedSymbol=m,p.resolvedType=v}return p.resolvedType}function vse(o){return Cr(o.typeArguments,Sa)}function iEt(o){let p=Ki(o);if(!p.resolvedType){let m=zDt(o);p.resolvedType=ih(ry(m))}return p.resolvedType}function oEt(o,p){function m(E){let D=E.declarations;if(D)for(let R of D)switch(R.kind){case 264:case 265:case 267:return R}}if(!o)return p?Ar:kc;let v=Tu(o);return v.flags&524288?te(v.typeParameters)!==p?(gt(m(o),x.Global_type_0_must_have_1_type_parameter_s,vp(o),p),p?Ar:kc):v:(gt(m(o),x.Global_type_0_must_be_a_class_or_interface_type,vp(o)),p?Ar:kc)}function rBe(o,p){return BM(o,111551,p?x.Cannot_find_global_value_0:void 0)}function nBe(o,p){return BM(o,788968,p?x.Cannot_find_global_type_0:void 0)}function kxe(o,p,m){let v=BM(o,788968,m?x.Cannot_find_global_type_0:void 0);if(v&&(Tu(v),te(io(v).typeParameters)!==p)){let E=v.declarations&&wt(v.declarations,s1);gt(E,x.Global_type_0_must_have_1_type_parameter_s,vp(v),p);return}return v}function BM(o,p,m){return $t(void 0,o,p,m,!1,!1)}function Qp(o,p,m){let v=nBe(o,m);return v||m?oEt(v,p):void 0}function aEt(o,p){let m;for(let v of o)m=jt(m,Qp(v,p,!1));return m??j}function cxr(){return Gx||(Gx=Qp("TypedPropertyDescriptor",1,!0)||Ar)}function lxr(){return Ka||(Ka=Qp("TemplateStringsArray",0,!0)||kc)}function sEt(){return Ws||(Ws=Qp("ImportMeta",0,!0)||kc)}function cEt(){if(!Xa){let o=zc(0,"ImportMetaExpression"),p=sEt(),m=zc(4,"meta",8);m.parent=o,m.links.type=p;let v=ic([m]);o.members=v,Xa=mp(o,v,j,j,j)}return Xa}function lEt(o){return ks||(ks=Qp("ImportCallOptions",0,o))||kc}function iBe(o){return cp||(cp=Qp("ImportAttributes",0,o))||kc}function uEt(o){return D0||(D0=rBe("Symbol",o))}function uxr(o){return Pb||(Pb=nBe("SymbolConstructor",o))}function pEt(){return Wx||(Wx=Qp("Symbol",0,!1))||kc}function Sse(o){return Gh||(Gh=Qp("Promise",1,o))||Ar}function _Et(o){return Nd||(Nd=Qp("PromiseLike",1,o))||Ar}function oBe(o){return Iv||(Iv=rBe("Promise",o))}function pxr(o){return Hy||(Hy=Qp("PromiseConstructorLike",0,o))||kc}function bse(o){return fo||(fo=Qp("AsyncIterable",3,o))||Ar}function _xr(o){return Mo||(Mo=Qp("AsyncIterator",3,o))||Ar}function dEt(o){return Ea||(Ea=Qp("AsyncIterableIterator",3,o))||Ar}function dxr(){return it??(it=aEt(["ReadableStreamAsyncIterator"],1))}function fxr(o){return cr||(cr=Qp("AsyncIteratorObject",3,o))||Ar}function mxr(o){return In||(In=Qp("AsyncGenerator",3,o))||Ar}function Cxe(o){return US||(US=Qp("Iterable",3,o))||Ar}function hxr(o){return xe||(xe=Qp("Iterator",3,o))||Ar}function fEt(o){return Ft||(Ft=Qp("IterableIterator",3,o))||Ar}function aBe(){return Ae?Ne:at}function gxr(){return ee??(ee=aEt(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))}function yxr(o){return Nr||(Nr=Qp("IteratorObject",3,o))||Ar}function vxr(o){return Mr||(Mr=Qp("Generator",3,o))||Ar}function Sxr(o){return wn||(wn=Qp("IteratorYieldResult",1,o))||Ar}function bxr(o){return Yn||(Yn=Qp("IteratorReturnResult",1,o))||Ar}function mEt(o){return Cc||(Cc=Qp("Disposable",0,o))||kc}function xxr(o){return pf||(pf=Qp("AsyncDisposable",0,o))||kc}function hEt(o,p=0){let m=BM(o,788968,void 0);return m&&oEt(m,p)}function Txr(){return Kg||(Kg=kxe("Extract",2,!0)||ye),Kg===ye?void 0:Kg}function Exr(){return Ky||(Ky=kxe("Omit",2,!0)||ye),Ky===ye?void 0:Ky}function sBe(o){return A0||(A0=kxe("Awaited",1,o)||(o?ye:void 0)),A0===ye?void 0:A0}function kxr(){return r2||(r2=Qp("BigInt",0,!1))||kc}function Cxr(o){return Nb??(Nb=Qp("ClassDecoratorContext",1,o))??Ar}function Dxr(o){return Pv??(Pv=Qp("ClassMethodDecoratorContext",2,o))??Ar}function Axr(o){return d1??(d1=Qp("ClassGetterDecoratorContext",2,o))??Ar}function wxr(o){return OC??(OC=Qp("ClassSetterDecoratorContext",2,o))??Ar}function Ixr(o){return dt??(dt=Qp("ClassAccessorDecoratorContext",2,o))??Ar}function Pxr(o){return Lt??(Lt=Qp("ClassAccessorDecoratorTarget",2,o))??Ar}function Nxr(o){return Tr??(Tr=Qp("ClassAccessorDecoratorResult",2,o))??Ar}function Oxr(o){return dn??(dn=Qp("ClassFieldDecoratorContext",2,o))??Ar}function Fxr(){return PE||(PE=rBe("NaN",!1))}function Rxr(){return vh||(vh=kxe("Record",2,!0)||ye),vh===ye?void 0:vh}function Vq(o,p){return o!==Ar?f2(o,p):kc}function gEt(o){return Vq(cxr(),[o])}function yEt(o){return Vq(Cxe(!0),[o,pn,Ne])}function um(o,p){return Vq(p?Uc:tl,[o])}function cBe(o){switch(o.kind){case 191:return 2;case 192:return vEt(o);case 203:return o.questionToken?2:o.dotDotDotToken?vEt(o):1;default:return 1}}function vEt(o){return Dse(o.type)?4:8}function Lxr(o){let p=Bxr(o.parent);if(Dse(o))return p?Uc:tl;let v=Cr(o.elements,cBe);return lBe(v,p,Cr(o.elements,Mxr))}function Mxr(o){return mL(o)||wa(o)?o:void 0}function SEt(o,p){return!!I7(o)||bEt(o)&&(o.kind===189?XC(o.elementType):o.kind===190?Pt(o.elements,XC):p||Pt(o.typeArguments,XC))}function bEt(o){let p=o.parent;switch(p.kind){case 197:case 203:case 184:case 193:case 194:case 200:case 195:case 199:case 189:case 190:return bEt(p);case 266:return!0}return!1}function XC(o){switch(o.kind){case 184:return Txe(o)||!!(Jq(o,788968).flags&524288);case 187:return!0;case 199:return o.operator!==158&&XC(o.type);case 197:case 191:case 203:case 317:case 315:case 316:case 310:return XC(o.type);case 192:return o.type.kind!==189||XC(o.type.elementType);case 193:case 194:return Pt(o.types,XC);case 200:return XC(o.objectType)||XC(o.indexType);case 195:return XC(o.checkType)||XC(o.extendsType)||XC(o.trueType)||XC(o.falseType)}return!1}function jxr(o){let p=Ki(o);if(!p.resolvedType){let m=Lxr(o);if(m===Ar)p.resolvedType=kc;else if(!(o.kind===190&&Pt(o.elements,v=>!!(cBe(v)&8)))&&SEt(o))p.resolvedType=o.kind===190&&o.elements.length===0?m:Zje(m,o,void 0);else{let v=o.kind===189?[Sa(o.elementType)]:Cr(o.elements,Sa);p.resolvedType=uBe(m,v)}}return p.resolvedType}function Bxr(o){return bA(o)&&o.operator===148}function Jb(o,p,m=!1,v=[]){let E=lBe(p||Cr(o,D=>1),m,v);return E===Ar?kc:o.length?uBe(E,o):E}function lBe(o,p,m){if(o.length===1&&o[0]&4)return p?Uc:tl;let v=Cr(o,D=>D&1?"#":D&2?"?":D&4?".":"*").join()+(p?"R":"")+(Pt(m,D=>!!D)?","+Cr(m,D=>D?hl(D):"_").join(","):""),E=oo.get(v);return E||oo.set(v,E=$xr(o,p,m)),E}function $xr(o,p,m){let v=o.length,E=Lo(o,Ue=>!!(Ue&9)),D,R=[],K=0;if(v){D=new Array(v);for(let Ue=0;Ue!!(o.elementFlags[kr]&8&&Xt.flags&1179648));if(Jt>=0)return Tse(Cr(p,(Xt,kr)=>o.elementFlags[kr]&8?Xt:er))?hp(p[Jt],Xt=>pBe(o,pc(p,Jt,Xt))):Et}let R=[],K=[],se=[],ce=-1,fe=-1,Ue=-1;for(let Jt=0;Jt=1e4)return gt(M,vS(M)?x.Type_produces_a_tuple_type_that_is_too_large_to_represent:x.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Et;X(on,(Hn,fi)=>{var sn;return yt(Hn,Xt.target.elementFlags[fi],(sn=Xt.target.labeledElementDeclarations)==null?void 0:sn[fi])})}else yt(YE(Xt)&&vw(Xt,Ir)||Et,4,(E=o.labeledElementDeclarations)==null?void 0:E[Jt]);else yt(Xt,kr,(D=o.labeledElementDeclarations)==null?void 0:D[Jt])}for(let Jt=0;Jt=0&&feK[fe+Xt]&8?ey(Jt,Ir):Jt)),R.splice(fe+1,Ue-fe),K.splice(fe+1,Ue-fe),se.splice(fe+1,Ue-fe));let Me=lBe(K,o.readonly,se);return Me===Ar?kc:K.length?f2(Me,R):Me;function yt(Jt,Xt,kr){Xt&1&&(ce=K.length),Xt&4&&fe<0&&(fe=K.length),Xt&6&&(Ue=K.length),R.push(Xt&2?Om(Jt,!0):Jt),K.push(Xt),se.push(kr)}}function Wq(o,p,m=0){let v=o.target,E=ZE(o)-m;return p>v.fixedLength?D2r(o)||Jb(j):Jb(Bu(o).slice(p,E),v.elementFlags.slice(p,E),!1,v.labeledElementDeclarations&&v.labeledElementDeclarations.slice(p,E))}function xEt(o){return Do(jt(Jn(o.target.fixedLength,p=>Sg(""+p)),KS(o.target.readonly?Uc:tl)))}function Uxr(o,p){let m=hr(o.elementFlags,v=>!(v&p));return m>=0?m:o.elementFlags.length}function iZ(o,p){return o.elementFlags.length-Hi(o.elementFlags,m=>!(m&p))-1}function _Be(o){return o.fixedLength+iZ(o,3)}function i6(o){let p=Bu(o),m=ZE(o);return p.length===m?p:p.slice(0,m)}function zxr(o){return Om(Sa(o.type),!0)}function ff(o){return o.id}function sT(o,p){return rs(o,p,ff,Br)>=0}function xse(o,p){let m=rs(o,p,ff,Br);return m<0?(o.splice(~m,0,p),!0):!1}function qxr(o,p,m){let v=m.flags;if(!(v&131072))if(p|=v&473694207,v&465829888&&(p|=33554432),v&2097152&&ro(m)&67108864&&(p|=536870912),m===Qt&&(p|=8388608),si(m)&&(p|=1073741824),!be&&v&98304)ro(m)&65536||(p|=4194304);else{let E=o.length,D=E&&m.id>o[E-1].id?~E:rs(o,m,ff,Br);D<0&&o.splice(~D,0,m)}return p}function TEt(o,p,m){let v;for(let E of m)E!==v&&(p=E.flags&1048576?TEt(o,p|(Kxr(E)?1048576:0),E.types):qxr(o,p,E),v=E);return p}function Jxr(o,p){var m;if(o.length<2)return o;let v=b1(o),E=Cn.get(v);if(E)return E;let D=p&&Pt(o,ce=>!!(ce.flags&524288)&&!Xh(ce)&&LBe(jv(ce))),R=o.length,K=R,se=0;for(;K>0;){K--;let ce=o[K];if(D||ce.flags&469499904){if(ce.flags&262144&&HS(ce).flags&1048576){QS(ce,Do(Cr(o,Me=>Me===ce?tn:Me)),tp)&&R1(o,K);continue}let fe=ce.flags&61603840?wt($l(ce),Me=>$v(di(Me))):void 0,Ue=fe&&ih(di(fe));for(let Me of o)if(ce!==Me){if(se===1e5&&se/(R-K)*R>1e6){(m=hi)==null||m.instant(hi.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:o.map(Jt=>Jt.id)}),gt(M,x.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(se++,fe&&Me.flags&61603840){let yt=en(Me,fe.escapedName);if(yt&&$v(yt)&&ih(yt)!==Ue)continue}if(QS(ce,Me,tp)&&(!(ro(Fn(ce))&1)||!(ro(Fn(Me))&1)||Ew(ce,Me))){R1(o,K);break}}}}return Cn.set(v,o),o}function Vxr(o,p,m){let v=o.length;for(;v>0;){v--;let E=o[v],D=E.flags;(D&402653312&&p&4||D&256&&p&8||D&2048&&p&64||D&8192&&p&4096||m&&D&32768&&p&16384||a6(E)&&sT(o,E.regularType))&&R1(o,v)}}function Wxr(o){let p=yr(o,lN);if(p.length){let m=o.length;for(;m>0;){m--;let v=o[m];v.flags&128&&Pt(p,E=>Gxr(v,E))&&R1(o,m)}}}function Gxr(o,p){return p.flags&134217728?tTe(o,p):eTe(o,p)}function Hxr(o){let p=[];for(let m of o)if(m.flags&2097152&&ro(m)&67108864){let v=m.types[0].flags&8650752?0:1;Zc(p,m.types[v])}for(let m of p){let v=[];for(let D of o)if(D.flags&2097152&&ro(D)&67108864){let R=D.types[0].flags&8650752?0:1;D.types[R]===m&&xse(v,D.types[1-R])}let E=Gf(m);if(bg(E,D=>sT(v,D))){let D=o.length;for(;D>0;){D--;let R=o[D];if(R.flags&2097152&&ro(R)&67108864){let K=R.types[0].flags&8650752?0:1;R.types[K]===m&&sT(v,R.types[1-K])&&R1(o,D)}}xse(o,m)}}}function Kxr(o){return!!(o.flags&1048576&&(o.aliasSymbol||o.origin))}function EEt(o,p){for(let m of p)if(m.flags&1048576){let v=m.origin;m.aliasSymbol||v&&!(v.flags&1048576)?Zc(o,m):v&&v.flags&1048576&&EEt(o,v.types)}}function dBe(o,p){let m=Ya(o);return m.types=p,m}function Do(o,p=1,m,v,E){if(o.length===0)return tn;if(o.length===1)return o[0];if(o.length===2&&!E&&(o[0].flags&1048576||o[1].flags&1048576)){let D=p===0?"N":p===2?"S":"L",R=o[0].id=2&&D[0]===Ne&&D[1]===ot&&R1(D,1),(R&402664352||R&16384&&R&32768)&&Vxr(D,R,!!(p&2)),R&128&&R&402653184&&Wxr(D),R&536870912&&Hxr(D),p===2&&(D=Jxr(D,!!(R&524288)),!D))return Et;if(D.length===0)return R&65536?R&4194304?mr:Ge:R&32768?R&4194304?Ne:Y:tn}if(!E&&R&1048576){let se=[];EEt(se,o);let ce=[];for(let Ue of D)Pt(se,Me=>sT(Me.types,Ue))||ce.push(Ue);if(!m&&se.length===1&&ce.length===0)return se[0];if(nl(se,(Ue,Me)=>Ue+Me.types.length,0)+ce.length===D.length){for(let Ue of se)xse(ce,Ue);E=dBe(1048576,ce)}}let K=(R&36323331?0:32768)|(R&2097152?16777216:0);return mBe(D,K,m,v,E)}function Qxr(o,p){let m,v=[];for(let D of o){let R=F0(D);if(R){if(R.kind!==0&&R.kind!==1||m&&!fBe(m,R))return;m=R,v.push(R.type)}else{let K=p!==2097152?Tl(D):void 0;if(K!==Rn&&K!==zn)return}}if(!m)return;let E=J2t(v,p);return tZ(m.kind,m.parameterName,m.parameterIndex,E)}function fBe(o,p){return o.kind===p.kind&&o.parameterIndex===p.parameterIndex}function mBe(o,p,m,v,E){if(o.length===0)return tn;if(o.length===1)return o[0];let R=(E?E.flags&1048576?`|${b1(E.types)}`:E.flags&2097152?`&${b1(E.types)}`:`#${E.type.id}|${b1(o)}`:b1(o))+sN(m,v),K=Oi.get(R);return K||(K=Fo(1048576),K.objectFlags=p|yse(o,98304),K.types=o,K.origin=E,K.aliasSymbol=m,K.aliasTypeArguments=v,o.length===2&&o[0].flags&512&&o[1].flags&512&&(K.flags|=16,K.intrinsicName="boolean"),Oi.set(R,K)),K}function Zxr(o){let p=Ki(o);if(!p.resolvedType){let m=I7(o);p.resolvedType=Do(Cr(o.types,Sa),1,m,$M(m))}return p.resolvedType}function Xxr(o,p,m){let v=m.flags;return v&2097152?CEt(o,p,m.types):(Vb(m)?p&16777216||(p|=16777216,o.set(m.id.toString(),m)):(v&3?(m===Qt&&(p|=8388608),si(m)&&(p|=1073741824)):(be||!(v&98304))&&(m===ot&&(p|=262144,m=Ne),o.has(m.id.toString())||(m.flags&109472&&p&109472&&(p|=67108864),o.set(m.id.toString(),m))),p|=v&473694207),p)}function CEt(o,p,m){for(let v of m)p=Xxr(o,p,ih(v));return p}function Yxr(o,p){let m=o.length;for(;m>0;){m--;let v=o[m];(v.flags&4&&p&402653312||v.flags&8&&p&256||v.flags&64&&p&2048||v.flags&4096&&p&8192||v.flags&16384&&p&32768||Vb(v)&&p&470302716)&&R1(o,m)}}function eTr(o,p){for(let m of o)if(!sT(m.types,p)){if(p===ot)return sT(m.types,Ne);if(p===Ne)return sT(m.types,ot);let v=p.flags&128?Mt:p.flags&288?Ir:p.flags&2048?ii:p.flags&8192?wr:void 0;if(!v||!sT(m.types,v))return!1}return!0}function tTr(o){let p=o.length,m=yr(o,v=>!!(v.flags&128));for(;p>0;){p--;let v=o[p];if(v.flags&402653184){for(let E of m)if(c6(E,v)){R1(o,p);break}else if(lN(v))return!0}}return!1}function DEt(o,p){for(let m=0;m!(v.flags&p))}function rTr(o){let p,m=hr(o,R=>!!(ro(R)&32768));if(m<0)return!1;let v=m+1;for(;v!!(Jt.flags&469893116)||Vb(Jt))){if(Gq(yt,Me))return Ue;if(!(yt.flags&1048576&&j0(yt,Jt=>Gq(Jt,Me)))&&!Gq(Me,yt))return tn;K=67108864}}}let se=b1(R)+(p&2?"*":sN(m,v)),ce=ft.get(se);if(!ce){if(D&1048576)if(rTr(R))ce=Ac(R,p,m,v);else if(ht(R,fe=>!!(fe.flags&1048576&&fe.types[0].flags&32768))){let fe=Pt(R,mZ)?ot:Ne;DEt(R,32768),ce=Do([Ac(R,p),fe],1,m,v)}else if(ht(R,fe=>!!(fe.flags&1048576&&(fe.types[0].flags&65536||fe.types[1].flags&65536))))DEt(R,65536),ce=Do([Ac(R,p),mr],1,m,v);else if(R.length>=3&&o.length>2){let fe=Math.floor(R.length/2);ce=Ac([Ac(R.slice(0,fe),p),Ac(R.slice(fe),p)],p,m,v)}else{if(!Tse(R))return Et;let fe=iTr(R,p),Ue=Pt(fe,Me=>!!(Me.flags&2097152))&&hBe(fe)>hBe(R)?dBe(2097152,R):void 0;ce=Do(fe,1,m,v,Ue)}else ce=nTr(R,K,m,v);ft.set(se,ce)}return ce}function AEt(o){return nl(o,(p,m)=>m.flags&1048576?p*m.types.length:m.flags&131072?0:p,1)}function Tse(o){var p;let m=AEt(o);return m>=1e5?((p=hi)==null||p.instant(hi.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:o.map(v=>v.id),size:m}),gt(M,x.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function iTr(o,p){let m=AEt(o),v=[];for(let E=0;E=0;se--)if(o[se].flags&1048576){let ce=o[se].types,fe=ce.length;D[se]=ce[R%fe],R=Math.floor(R/fe)}let K=Ac(D,p);K.flags&131072||v.push(K)}return v}function wEt(o){return!(o.flags&3145728)||o.aliasSymbol?1:o.flags&1048576&&o.origin?wEt(o.origin):hBe(o.types)}function hBe(o){return nl(o,(p,m)=>p+wEt(m),0)}function oTr(o){let p=Ki(o);if(!p.resolvedType){let m=I7(o),v=Cr(o.types,Sa),E=v.length===2?v.indexOf(sc):-1,D=E>=0?v[1-E]:er,R=!!(D.flags&76||D.flags&134217728&&lN(D));p.resolvedType=Ac(v,R?1:0,m,$M(m))}return p.resolvedType}function IEt(o,p){let m=Fo(4194304);return m.type=o,m.indexFlags=p,m}function aTr(o){let p=Ya(4194304);return p.type=o,p}function PEt(o,p){return p&1?o.resolvedStringIndexType||(o.resolvedStringIndexType=IEt(o,1)):o.resolvedIndexType||(o.resolvedIndexType=IEt(o,0))}function NEt(o,p){let m=av(o),v=e0(o),E=HE(o.target||o);if(!E&&!(p&2))return v;let D=[];if(pN(v)){if(FM(o))return PEt(o,p);vN(v,K)}else if(FM(o)){let se=nh(yw(o));Mje(se,8576,!!(p&1),K)}else vN(dse(v),K);let R=p&2?G_(Do(D),se=>!(se.flags&5)):Do(D);if(R.flags&1048576&&v.flags&1048576&&b1(R.types)===b1(v.types))return v;return R;function K(se){let ce=E?Oa(E,sZ(o.mapper,m,se)):se;D.push(ce===Mt?$r:ce)}}function sTr(o){let p=av(o);return m(HE(o)||p);function m(v){return v.flags&470810623?!0:v.flags&16777216?v.root.isDistributive&&v.checkType===p:v.flags&137363456?ht(v.types,m):v.flags&8388608?m(v.objectType)&&m(v.indexType):v.flags&33554432?m(v.baseType)&&m(v.constraint):v.flags&268435456?m(v.type):!1}}function m2(o){if(Aa(o))return tn;if(qh(o))return ih(Va(o));if(dc(o))return ih(sv(o));let p=H4(o);return p!==void 0?Sg(oa(p)):Vt(o)?ih(Va(o)):tn}function A7(o,p,m){if(m||!(S0(o)&6)){let v=io(pxe(o)).nameType;if(!v){let E=cs(o.valueDeclaration);v=o.escapedName==="default"?Sg("default"):E&&m2(E)||(AU(o)?void 0:Sg(vp(o)))}if(v&&v.flags&p)return v}return tn}function OEt(o,p){return!!(o.flags&p||o.flags&2097152&&Pt(o.types,m=>OEt(m,p)))}function cTr(o,p,m){let v=m&&(ro(o)&7||o.aliasSymbol)?aTr(o):void 0,E=Cr($l(o),R=>A7(R,p)),D=Cr(lm(o),R=>R!==ua&&OEt(R.keyType,p)?R.keyType===Mt&&p&8?$r:R.keyType:tn);return Do(go(E,D),1,void 0,void 0,v)}function gBe(o,p=0){return!!(o.flags&58982400||rD(o)||Xh(o)&&(!sTr(o)||XQ(o)===2)||o.flags&1048576&&!(p&4)&&qje(o)||o.flags&2097152&&s_(o,465829888)&&Pt(o.types,Vb))}function KS(o,p=0){return o=S1(o),jM(o)?Xje(KS(o.baseType,p)):gBe(o,p)?PEt(o,p):o.flags&1048576?Ac(Cr(o.types,m=>KS(m,p))):o.flags&2097152?Do(Cr(o.types,m=>KS(m,p))):ro(o)&32?NEt(o,p):o===Qt?Qt:o.flags&2?tn:o.flags&131073?Uo:cTr(o,(p&2?128:402653316)|(p&1?0:12584),p===0)}function FEt(o){let p=Txr();return p?MM(p,[o,Mt]):Mt}function lTr(o){let p=FEt(KS(o));return p.flags&131072?Mt:p}function uTr(o){let p=Ki(o);if(!p.resolvedType)switch(o.operator){case 143:p.resolvedType=KS(Sa(o.type));break;case 158:p.resolvedType=o.type.kind===155?CBe(HG(o.parent)):Et;break;case 148:p.resolvedType=Sa(o.type);break;default:$.assertNever(o.operator)}return p.resolvedType}function pTr(o){let p=Ki(o);return p.resolvedType||(p.resolvedType=cN([o.head.text,...Cr(o.templateSpans,m=>m.literal.text)],Cr(o.templateSpans,m=>Sa(m.type)))),p.resolvedType}function cN(o,p){let m=hr(p,ce=>!!(ce.flags&1179648));if(m>=0)return Tse(p)?hp(p[m],ce=>cN(o,pc(p,m,ce))):Et;if(un(p,Qt))return Qt;let v=[],E=[],D=o[0];if(!se(o,p))return Mt;if(v.length===0)return Sg(D);if(E.push(D),ht(E,ce=>ce==="")){if(ht(v,ce=>!!(ce.flags&4)))return Mt;if(v.length===1&&lN(v[0]))return v[0]}let R=`${b1(v)}|${Cr(E,ce=>ce.length).join(",")}|${E.join("")}`,K=ya.get(R);return K||ya.set(R,K=dTr(E,v)),K;function se(ce,fe){for(let Ue=0;Uew7(o,m)):p.flags&128?Sg(REt(o,p.value)):p.flags&134217728?cN(...fTr(o,p.texts,p.types)):p.flags&268435456&&o===p.symbol?p:p.flags&268435461||pN(p)?LEt(o,p):Ese(p)?LEt(o,cN(["",""],[p])):p}function REt(o,p){switch(Gye.get(o.escapedName)){case 0:return p.toUpperCase();case 1:return p.toLowerCase();case 2:return p.charAt(0).toUpperCase()+p.slice(1);case 3:return p.charAt(0).toLowerCase()+p.slice(1)}return p}function fTr(o,p,m){switch(Gye.get(o.escapedName)){case 0:return[p.map(v=>v.toUpperCase()),m.map(v=>w7(o,v))];case 1:return[p.map(v=>v.toLowerCase()),m.map(v=>w7(o,v))];case 2:return[p[0]===""?p:[p[0].charAt(0).toUpperCase()+p[0].slice(1),...p.slice(1)],p[0]===""?[w7(o,m[0]),...m.slice(1)]:m];case 3:return[p[0]===""?p:[p[0].charAt(0).toLowerCase()+p[0].slice(1),...p.slice(1)],p[0]===""?[w7(o,m[0]),...m.slice(1)]:m]}return[p,m]}function LEt(o,p){let m=`${hc(o)},${ff(p)}`,v=Ls.get(m);return v||Ls.set(m,v=mTr(o,p)),v}function mTr(o,p){let m=na(268435456,o);return m.type=p,m}function hTr(o,p,m,v,E){let D=Fo(8388608);return D.objectType=o,D.indexType=p,D.accessFlags=m,D.aliasSymbol=v,D.aliasTypeArguments=E,D}function oZ(o){if(Fe)return!1;if(ro(o)&4096)return!0;if(o.flags&1048576)return ht(o.types,oZ);if(o.flags&2097152)return Pt(o.types,oZ);if(o.flags&465829888){let p=$je(o);return p!==o&&oZ(p)}return!1}function Dxe(o,p){return b0(o)?x0(o):p&&q_(p)?H4(p):void 0}function yBe(o,p){if(p.flags&8208){let m=fn(o.parent,v=>!wu(v))||o.parent;return QI(m)?mS(m)&&ct(o)&&Hkt(m,o):ht(p.declarations,v=>!Rs(v)||Nv(v))}return!0}function MEt(o,p,m,v,E,D){let R=E&&E.kind===213?E:void 0,K=E&&Aa(E)?void 0:Dxe(m,E);if(K!==void 0){if(D&256)return Aw(p,K)||at;let ce=vc(p,K);if(ce){if(D&64&&E&&ce.declarations&&th(ce)&&yBe(E,ce)){let Ue=R?.argumentExpression??(vP(E)?E.indexType:E);g1(Ue,ce.declarations,K)}if(R){if(ice(ce,R,mDt(R.expression,p.symbol)),nAt(R,ce,cC(R))){gt(R.argumentExpression,x.Cannot_assign_to_0_because_it_is_a_read_only_property,Ua(ce));return}if(D&8&&(Ki(E).resolvedSymbol=ce),sDt(R,ce))return Zt}let fe=D&4?GE(ce):di(ce);return R&&cC(R)!==1?T2(R,fe):E&&vP(E)&&mZ(fe)?Do([fe,Ne]):fe}if(bg(p,Gc)&&$x(K)){let fe=+K;if(E&&bg(p,Ue=>!(Ue.target.combinedFlags&12))&&!(D&16)){let Ue=vBe(E);if(Gc(p)){if(fe<0)return gt(Ue,x.A_tuple_type_cannot_be_indexed_with_a_negative_value),Ne;gt(Ue,x.Tuple_type_0_of_length_1_has_no_element_at_index_2,ri(p),ZE(p),oa(K))}else gt(Ue,x.Property_0_does_not_exist_on_type_1,oa(K),ri(p))}if(fe>=0)return se(oT(p,Ir)),Dkt(p,fe,D&1?ot:void 0)}}if(!(m.flags&98304)&&Hf(m,402665900)){if(p.flags&131073)return p;let ce=YQ(p,m)||oT(p,Mt);if(ce){if(D&2&&ce.keyType!==Ir){R&&(D&4?gt(R,x.Type_0_is_generic_and_can_only_be_indexed_for_reading,ri(o)):gt(R,x.Type_0_cannot_be_used_to_index_type_1,ri(m),ri(o)));return}if(E&&ce.keyType===Mt&&!Hf(m,12)){let fe=vBe(E);return gt(fe,x.Type_0_cannot_be_used_as_an_index_type,ri(m)),D&1?Do([ce.type,ot]):ce.type}return se(ce),D&1&&!(p.symbol&&p.symbol.flags&384&&m.symbol&&m.flags&1024&&Od(m.symbol)===p.symbol)?Do([ce.type,ot]):ce.type}if(m.flags&131072)return tn;if(oZ(p))return at;if(R&&!RTe(p)){if(ek(p)){if(Fe&&m.flags&384)return il.add(xi(R,x.Property_0_does_not_exist_on_type_1,m.value,ri(p))),Ne;if(m.flags&12){let fe=Cr(p.properties,Ue=>di(Ue));return Do(jt(fe,Ne))}}if(p.symbol===_t&&K!==void 0&&_t.exports.has(K)&&_t.exports.get(K).flags&418)gt(R,x.Property_0_does_not_exist_on_type_1,oa(K),ri(p));else if(Fe&&!(D&128))if(K!==void 0&&uDt(K,p)){let fe=ri(p);gt(R,x.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,K,fe,fe+"["+Sp(R.argumentExpression)+"]")}else if(vw(p,Ir))gt(R.argumentExpression,x.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let fe;if(K!==void 0&&(fe=dDt(K,p)))fe!==void 0&>(R.argumentExpression,x.Property_0_does_not_exist_on_type_1_Did_you_mean_2,K,ri(p),fe);else{let Ue=TCr(p,R,m);if(Ue!==void 0)gt(R,x.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,ri(p),Ue);else{let Me;if(m.flags&1024)Me=ws(void 0,x.Property_0_does_not_exist_on_type_1,"["+ri(m)+"]",ri(p));else if(m.flags&8192){let yt=$E(m.symbol,R);Me=ws(void 0,x.Property_0_does_not_exist_on_type_1,"["+yt+"]",ri(p))}else m.flags&128||m.flags&256?Me=ws(void 0,x.Property_0_does_not_exist_on_type_1,m.value,ri(p)):m.flags&12&&(Me=ws(void 0,x.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,ri(m),ri(p)));Me=ws(Me,x.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,ri(v),ri(p)),il.add(Nx(Pn(R),R,Me))}}}return}}if(D&16&&ek(p))return Ne;if(oZ(p))return at;if(E){let ce=vBe(E);if(ce.kind!==10&&m.flags&384)gt(ce,x.Property_0_does_not_exist_on_type_1,""+m.value,ri(p));else if(m.flags&12)gt(ce,x.Type_0_has_no_matching_index_signature_for_type_1,ri(p),ri(m));else{let fe=ce.kind===10?"bigint":ri(m);gt(ce,x.Type_0_cannot_be_used_as_an_index_type,fe)}}if(Mi(m))return m;return;function se(ce){ce&&ce.isReadonly&&R&&(lC(R)||Qme(R))&>(R,x.Index_signature_in_type_0_only_permits_reading,ri(p))}}function vBe(o){return o.kind===213?o.argumentExpression:o.kind===200?o.indexType:o.kind===168?o.expression:o}function Ese(o){if(o.flags&2097152){let p=!1;for(let m of o.types)if(m.flags&101248||Ese(m))p=!0;else if(!(m.flags&524288))return!1;return p}return!!(o.flags&77)||lN(o)}function lN(o){return!!(o.flags&134217728)&&ht(o.types,Ese)||!!(o.flags&268435456)&&Ese(o.type)}function jEt(o){return!!(o.flags&402653184)&&!lN(o)}function xw(o){return!!aZ(o)}function uN(o){return!!(aZ(o)&4194304)}function pN(o){return!!(aZ(o)&8388608)}function aZ(o){return o.flags&3145728?(o.objectFlags&2097152||(o.objectFlags|=2097152|nl(o.types,(p,m)=>p|aZ(m),0)),o.objectFlags&12582912):o.flags&33554432?(o.objectFlags&2097152||(o.objectFlags|=2097152|aZ(o.baseType)|aZ(o.constraint)),o.objectFlags&12582912):(o.flags&58982400||Xh(o)||rD(o)?4194304:0)|(o.flags&63176704||jEt(o)?8388608:0)}function h2(o,p){return o.flags&8388608?yTr(o,p):o.flags&16777216?vTr(o,p):o}function BEt(o,p,m){if(o.flags&1048576||o.flags&2097152&&!gBe(o)){let v=Cr(o.types,E=>h2(ey(E,p),m));return o.flags&2097152||m?Ac(v):Do(v)}}function gTr(o,p,m){if(p.flags&1048576){let v=Cr(p.types,E=>h2(ey(o,E),m));return m?Ac(v):Do(v)}}function yTr(o,p){let m=p?"simplifiedForWriting":"simplifiedForReading";if(o[m])return o[m]===N_?o:o[m];o[m]=N_;let v=h2(o.objectType,p),E=h2(o.indexType,p),D=gTr(v,E,p);if(D)return o[m]=D;if(!(E.flags&465829888)){let R=BEt(v,E,p);if(R)return o[m]=R}if(rD(v)&&E.flags&296){let R=Qq(v,E.flags&8?0:v.target.fixedLength,0,p);if(R)return o[m]=R}return Xh(v)&&XQ(v)!==2?o[m]=hp(Axe(v,o.indexType),R=>h2(R,p)):o[m]=o}function vTr(o,p){let m=o.checkType,v=o.extendsType,E=eD(o),D=tD(o);if(D.flags&131072&&g2(E)===g2(m)){if(m.flags&1||tc(fN(m),fN(v)))return h2(E,p);if($Et(m,v))return tn}else if(E.flags&131072&&g2(D)===g2(m)){if(!(m.flags&1)&&tc(fN(m),fN(v)))return tn;if(m.flags&1||$Et(m,v))return h2(D,p)}return o}function $Et(o,p){return!!(Do([_se(o,p),tn]).flags&131072)}function Axe(o,p){let m=ty([av(o)],[p]),v=Tw(o.mapper,m),E=Oa(iT(o.target||o),v),D=w2t(o)>0||(xw(o)?Bq(yw(o))>0:STr(o,p));return Om(E,!0,D)}function STr(o,p){let m=Gf(p);return!!m&&Pt($l(o),v=>!!(v.flags&16777216)&&tc(A7(v,8576),m))}function ey(o,p,m=0,v,E,D){return YC(o,p,m,v,E,D)||(v?Et:er)}function UEt(o,p){return bg(o,m=>{if(m.flags&384){let v=x0(m);if($x(v)){let E=+v;return E>=0&&E0&&!Pt(o.elements,p=>Une(p)||zne(p)||mL(p)&&!!(p.questionToken||p.dotDotDotToken))}function JEt(o,p){return xw(o)||p&&Gc(o)&&Pt(i6(o),xw)}function bBe(o,p,m,v,E){let D,R,K=0;for(;;){if(K===1e3)return gt(M,x.Type_instantiation_is_excessively_deep_and_possibly_infinite),Et;let ce=Oa(g2(o.checkType),p),fe=Oa(o.extendsType,p);if(ce===Et||fe===Et)return Et;if(ce===Qt||fe===Qt)return Qt;let Ue=xU(o.node.checkType),Me=xU(o.node.extendsType),yt=qEt(Ue)&&qEt(Me)&&te(Ue.elements)===te(Me.elements),Jt=JEt(ce,yt),Xt;if(o.inferTypeParameters){let on=gZ(o.inferTypeParameters,void 0,0);p&&(on.nonFixingMapper=Tw(on.nonFixingMapper,p)),Jt||lT(on.inferences,ce,fe,1536),Xt=p?Tw(on.mapper,p):on.mapper}let kr=Xt?Oa(o.extendsType,Xt):fe;if(!Jt&&!JEt(kr,yt)){if(!(kr.flags&3)&&(ce.flags&1||!tc(lZ(ce),lZ(kr)))){(ce.flags&1||m&&!(kr.flags&131072)&&j0(lZ(kr),Hn=>tc(Hn,lZ(ce))))&&(R||(R=[])).push(Oa(Sa(o.node.trueType),Xt||p));let on=Sa(o.node.falseType);if(on.flags&16777216){let Hn=on.root;if(Hn.node.parent===o.node&&(!Hn.isDistributive||Hn.checkType===o.checkType)){o=Hn;continue}if(se(on,p))continue}D=Oa(on,p);break}if(kr.flags&3||tc(fN(ce),fN(kr))){let on=Sa(o.node.trueType),Hn=Xt||p;if(se(on,Hn))continue;D=Oa(on,Hn);break}}D=Fo(16777216),D.root=o,D.checkType=Oa(o.checkType,p),D.extendsType=Oa(o.extendsType,p),D.mapper=p,D.combinedMapper=Xt,D.aliasSymbol=v||o.aliasSymbol,D.aliasTypeArguments=v?E:y2(o.aliasTypeArguments,p);break}return R?Do(jt(R,D)):D;function se(ce,fe){if(ce.flags&16777216&&fe){let Ue=ce.root;if(Ue.outerTypeParameters){let Me=Tw(ce.mapper,fe),yt=Cr(Ue.outerTypeParameters,kr=>XE(kr,Me)),Jt=ty(Ue.outerTypeParameters,yt),Xt=Ue.isDistributive?XE(Ue.checkType,Jt):void 0;if(!Xt||Xt===Ue.checkType||!(Xt.flags&1179648))return o=Ue,p=Jt,v=void 0,E=void 0,Ue.aliasSymbol&&K++,!0}}return!1}}function eD(o){return o.resolvedTrueType||(o.resolvedTrueType=Oa(Sa(o.root.node.trueType),o.mapper))}function tD(o){return o.resolvedFalseType||(o.resolvedFalseType=Oa(Sa(o.root.node.falseType),o.mapper))}function bTr(o){return o.resolvedInferredTrueType||(o.resolvedInferredTrueType=o.combinedMapper?Oa(Sa(o.root.node.trueType),o.combinedMapper):eD(o))}function xBe(o){let p;return o.locals&&o.locals.forEach(m=>{m.flags&262144&&(p=jt(p,Tu(m)))}),p}function xTr(o){return o.isDistributive&&(wse(o.checkType,o.node.trueType)||wse(o.checkType,o.node.falseType))}function TTr(o){let p=Ki(o);if(!p.resolvedType){let m=Sa(o.checkType),v=I7(o),E=$M(v),D=Xo(o,!0),R=E?D:yr(D,se=>wse(se,o)),K={node:o,checkType:m,extendsType:Sa(o.extendsType),isDistributive:!!(m.flags&262144),inferTypeParameters:xBe(o),outerTypeParameters:R,instantiations:void 0,aliasSymbol:v,aliasTypeArguments:E};p.resolvedType=bBe(K,void 0,!1),R&&(K.instantiations=new Map,K.instantiations.set(b1(R),p.resolvedType))}return p.resolvedType}function ETr(o){let p=Ki(o);return p.resolvedType||(p.resolvedType=gw($i(o.typeParameter))),p.resolvedType}function VEt(o){return ct(o)?[o]:jt(VEt(o.left),o.right)}function WEt(o){var p;let m=Ki(o);if(!m.resolvedType){if(!jT(o))return gt(o.argument,x.String_literal_expected),m.resolvedSymbol=ye,m.resolvedType=Et;let v=o.isTypeOf?111551:o.flags&16777216?900095:788968,E=Nm(o,o.argument.literal);if(!E)return m.resolvedSymbol=ye,m.resolvedType=Et;let D=!!((p=E.exports)!=null&&p.get("export=")),R=vg(E,!1);if(Op(o.qualifier))if(R.flags&v)m.resolvedType=GEt(o,m,R,v);else{let K=v===111551?x.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:x.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;gt(o,K,o.argument.literal.text),m.resolvedSymbol=ye,m.resolvedType=Et}else{let K=VEt(o.qualifier),se=R,ce;for(;ce=K.shift();){let fe=K.length?1920:v,Ue=cl(O_(se)),Me=o.isTypeOf||Ei(o)&&D?vc(di(Ue),ce.escapedText,!1,!0):void 0,Jt=(o.isTypeOf?void 0:Nf(Zg(Ue),ce.escapedText,fe))??Me;if(!Jt)return gt(ce,x.Namespace_0_has_no_exported_member_1,$E(se),du(ce)),m.resolvedType=Et;Ki(ce).resolvedSymbol=Jt,Ki(ce.parent).resolvedSymbol=Jt,se=Jt}m.resolvedType=GEt(o,m,se,v)}}return m.resolvedType}function GEt(o,p,m,v){let E=O_(m);return p.resolvedSymbol=E,v===111551?qDt(di(m),o):xxe(o,E)}function HEt(o){let p=Ki(o);if(!p.resolvedType){let m=I7(o);if(!o.symbol||Ub(o.symbol).size===0&&!m)p.resolvedType=sc;else{let v=F_(16,o.symbol);v.aliasSymbol=m,v.aliasTypeArguments=$M(m),p3(o)&&o.isArrayType&&(v=um(v)),p.resolvedType=v}}return p.resolvedType}function I7(o){let p=o.parent;for(;i3(p)||AA(p)||bA(p)&&p.operator===148;)p=p.parent;return VG(p)?$i(p):void 0}function $M(o){return o?Dc(o):void 0}function wxe(o){return!!(o.flags&524288)&&!Xh(o)}function TBe(o){return v2(o)||!!(o.flags&474058748)}function EBe(o,p){if(!(o.flags&1048576))return o;if(ht(o.types,TBe))return wt(o.types,v2)||kc;let m=wt(o.types,D=>!TBe(D));if(!m||wt(o.types,D=>D!==m&&!TBe(D)))return o;return E(m);function E(D){let R=ic();for(let se of $l(D))if(!(S0(se)&6)){if(Ixe(se)){let ce=se.flags&65536&&!(se.flags&32768),Ue=zc(16777220,se.escapedName,Lje(se)|(p?8:0));Ue.links.type=ce?Ne:Om(di(se),!0),Ue.declarations=se.declarations,Ue.links.nameType=io(se).nameType,Ue.links.syntheticOrigin=se,R.set(se.escapedName,Ue)}}let K=mp(D.symbol,R,j,j,lm(D));return K.objectFlags|=131200,K}}function o6(o,p,m,v,E){if(o.flags&1||p.flags&1)return at;if(o.flags&2||p.flags&2)return er;if(o.flags&131072)return p;if(p.flags&131072)return o;if(o=EBe(o,E),o.flags&1048576)return Tse([o,p])?hp(o,ce=>o6(ce,p,m,v,E)):Et;if(p=EBe(p,E),p.flags&1048576)return Tse([o,p])?hp(p,ce=>o6(o,ce,m,v,E)):Et;if(p.flags&473960444)return o;if(uN(o)||uN(p)){if(v2(o))return p;if(o.flags&2097152){let ce=o.types,fe=ce[ce.length-1];if(wxe(fe)&&wxe(p))return Ac(go(ce.slice(0,ce.length-1),[o6(fe,p,m,v,E)]))}return Ac([o,p])}let D=ic(),R=new Set,K=o===kc?lm(p):E2t([o,p]);for(let ce of $l(p))S0(ce)&6?R.add(ce.escapedName):Ixe(ce)&&D.set(ce.escapedName,kBe(ce,E));for(let ce of $l(o))if(!(R.has(ce.escapedName)||!Ixe(ce)))if(D.has(ce.escapedName)){let fe=D.get(ce.escapedName),Ue=di(fe);if(fe.flags&16777216){let Me=go(ce.declarations,fe.declarations),yt=4|ce.flags&16777216,Jt=zc(yt,ce.escapedName),Xt=di(ce),kr=Hxe(Xt),on=Hxe(Ue);Jt.links.type=kr===on?Xt:Do([Xt,on],2),Jt.links.leftSpread=ce,Jt.links.rightSpread=fe,Jt.declarations=Me,Jt.links.nameType=io(ce).nameType,D.set(ce.escapedName,Jt)}}else D.set(ce.escapedName,kBe(ce,E));let se=mp(m,D,j,j,Zo(K,ce=>kTr(ce,E)));return se.objectFlags|=2228352|v,se}function Ixe(o){var p;return!Pt(o.declarations,Tm)&&(!(o.flags&106496)||!((p=o.declarations)!=null&&p.some(m=>Co(m.parent))))}function kBe(o,p){let m=o.flags&65536&&!(o.flags&32768);if(!m&&p===Vv(o))return o;let v=4|o.flags&16777216,E=zc(v,o.escapedName,Lje(o)|(p?8:0));return E.links.type=m?Ne:di(o),E.declarations=o.declarations,E.links.nameType=io(o).nameType,E.links.syntheticOrigin=o,E}function kTr(o,p){return o.isReadonly!==p?aT(o.keyType,o.type,p,o.declaration,o.components):o}function kse(o,p,m,v){let E=na(o,m);return E.value=p,E.regularType=v||E,E}function P7(o){if(o.flags&2976){if(!o.freshType){let p=kse(o.flags,o.value,o.symbol,o);p.freshType=p,o.freshType=p}return o.freshType}return o}function ih(o){return o.flags&2976?o.regularType:o.flags&1048576?o.regularType||(o.regularType=hp(o,ih)):o}function a6(o){return!!(o.flags&2976)&&o.freshType===o}function Sg(o){let p;return Ht.get(o)||(Ht.set(o,p=kse(128,o)),p)}function Bv(o){let p;return Wr.get(o)||(Wr.set(o,p=kse(256,o)),p)}function Cse(o){let p,m=fP(o);return ai.get(m)||(ai.set(m,p=kse(2048,o)),p)}function CTr(o,p,m){let v,E=`${p}${typeof o=="string"?"@":"#"}${o}`,D=1024|(typeof o=="string"?128:256);return vo.get(E)||(vo.set(E,v=kse(D,o,m)),v)}function DTr(o){if(o.literal.kind===106)return mr;let p=Ki(o);return p.resolvedType||(p.resolvedType=ih(Va(o.literal))),p.resolvedType}function ATr(o){let p=na(8192,o);return p.escapedName=`__@${p.symbol.escapedName}@${hc(p.symbol)}`,p}function CBe(o){if(Ei(o)&&AA(o)){let p=iP(o);p&&(o=GO(p)||p)}if(v6e(o)){let p=fre(o)?Xy(o.left):Xy(o);if(p){let m=io(p);return m.uniqueESSymbolType||(m.uniqueESSymbolType=ATr(p))}}return wr}function wTr(o){let p=Hm(o,!1,!1),m=p&&p.parent;if(m&&(Co(m)||m.kind===265)&&!oc(p)&&(!kp(p)||oP(o,p.body)))return O0($i(m)).thisType;if(m&&Lc(m)&&wi(m.parent)&&m_(m.parent)===6)return O0(Xy(m.parent.left).parent).thisType;let v=o.flags&16777216?dA(o):void 0;return v&&bu(v)&&wi(v.parent)&&m_(v.parent)===3?O0(Xy(v.parent.left).parent).thisType:XS(p)&&oP(o,p.body)?O0($i(p)).thisType:(gt(o,x.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Et)}function DBe(o){let p=Ki(o);return p.resolvedType||(p.resolvedType=wTr(o)),p.resolvedType}function KEt(o){return Sa(Dse(o.type)||o.type)}function Dse(o){switch(o.kind){case 197:return Dse(o.type);case 190:if(o.elements.length===1&&(o=o.elements[0],o.kind===192||o.kind===203&&o.dotDotDotToken))return Dse(o.type);break;case 189:return o.elementType}}function ITr(o){let p=Ki(o);return p.resolvedType||(p.resolvedType=o.dotDotDotToken?KEt(o):Om(Sa(o.type),!0,!!o.questionToken))}function Sa(o){return axr(QEt(o),o)}function QEt(o){switch(o.kind){case 133:case 313:case 314:return at;case 159:return er;case 154:return Mt;case 150:return Ir;case 163:return ii;case 136:return _r;case 155:return wr;case 116:return pn;case 157:return Ne;case 106:return mr;case 146:return tn;case 151:return o.flags&524288&&!Fe?at:bn;case 141:return Ye;case 198:case 110:return DBe(o);case 202:return DTr(o);case 184:return Exe(o);case 183:return o.assertsModifier?pn:_r;case 234:return Exe(o);case 187:return iEt(o);case 189:case 190:return jxr(o);case 191:return zxr(o);case 193:return Zxr(o);case 194:return oTr(o);case 315:return sxr(o);case 317:return Om(Sa(o.type));case 203:return ITr(o);case 197:case 316:case 310:return Sa(o.type);case 192:return KEt(o);case 319:return HIr(o);case 185:case 186:case 188:case 323:case 318:case 324:return HEt(o);case 199:return uTr(o);case 200:return zEt(o);case 201:return SBe(o);case 195:return TTr(o);case 196:return ETr(o);case 204:return pTr(o);case 206:return WEt(o);case 80:case 167:case 212:let p=B0(o);return p?Tu(p):Et;default:return Et}}function Pxe(o,p,m){if(o&&o.length)for(let v=0;vv.typeParameter),Cr(m,()=>er))}function NTr(o){return o.outerReturnMapper??(o.outerReturnMapper=ekt(o.returnMapper,Okt(o).mapper))}function Tw(o,p){return o?Oxe(4,o,p):p}function ekt(o,p){return o?Oxe(5,o,p):p}function _N(o,p,m){return m?Oxe(5,s6(o,p),m):s6(o,p)}function sZ(o,p,m){return o?Oxe(5,o,s6(p,m)):s6(p,m)}function OTr(o){return!o.constraint&&!Sxe(o)||o.constraint===Gp?o:o.restrictiveInstantiation||(o.restrictiveInstantiation=bh(o.symbol),o.restrictiveInstantiation.constraint=Gp,o.restrictiveInstantiation)}function wBe(o){let p=bh(o.symbol);return p.target=o,p}function tkt(o,p){return tZ(o.kind,o.parameterName,o.parameterIndex,Oa(o.type,p))}function dN(o,p,m){let v;if(o.typeParameters&&!m){v=Cr(o.typeParameters,wBe),p=Tw(ty(o.typeParameters,v),p);for(let D of v)D.mapper=p}let E=GS(o.declaration,v,o.thisParameter&&IBe(o.thisParameter,p),Pxe(o.parameters,p,IBe),void 0,void 0,o.minArgumentCount,o.flags&167);return E.target=o,E.mapper=p,E}function IBe(o,p){let m=io(o);if(m.type&&!iD(m.type)&&(!(o.flags&65536)||m.writeType&&!iD(m.writeType)))return o;Fp(o)&1&&(o=m.target,p=Tw(m.mapper,p));let v=zc(o.flags,o.escapedName,1|Fp(o)&53256);return v.declarations=o.declarations,v.parent=o.parent,v.links.target=o,v.links.mapper=p,o.valueDeclaration&&(v.valueDeclaration=o.valueDeclaration),m.nameType&&(v.links.nameType=m.nameType),v}function FTr(o,p,m,v){let E=o.objectFlags&4||o.objectFlags&8388608?o.node:o.symbol.declarations[0],D=Ki(E),R=o.objectFlags&4?D.resolvedType:o.objectFlags&64?o.target:o,K=D.outerTypeParameters;if(!K){let se=Xo(E,!0);if(XS(E)){let fe=U2t(E);se=En(se,fe)}K=se||j;let ce=o.objectFlags&8388612?[E]:o.symbol.declarations;K=(R.objectFlags&8388612||R.symbol.flags&8192||R.symbol.flags&2048)&&!R.aliasTypeArguments?yr(K,fe=>Pt(ce,Ue=>wse(fe,Ue))):K,D.outerTypeParameters=K}if(K.length){let se=Tw(o.mapper,p),ce=Cr(K,Jt=>XE(Jt,se)),fe=m||o.aliasSymbol,Ue=m?v:y2(o.aliasTypeArguments,p),Me=b1(ce)+sN(fe,Ue);R.instantiations||(R.instantiations=new Map,R.instantiations.set(b1(K)+sN(R.aliasSymbol,R.aliasTypeArguments),R));let yt=R.instantiations.get(Me);if(!yt){let Jt=ty(K,ce);R.objectFlags&134217728&&p&&(Jt=Tw(Jt,p)),yt=R.objectFlags&4?Zje(o.target,o.node,Jt,fe,Ue):R.objectFlags&32?LTr(R,Jt,fe,Ue):PBe(R,Jt,fe,Ue),R.instantiations.set(Me,yt);let Xt=ro(yt);if(yt.flags&3899393&&!(Xt&524288)){let kr=Pt(ce,iD);ro(yt)&524288||(Xt&52?yt.objectFlags|=524288|(kr?1048576:0):yt.objectFlags|=kr?0:524288)}}return yt}return o}function RTr(o){return!(o.parent.kind===184&&o.parent.typeArguments&&o===o.parent.typeName||o.parent.kind===206&&o.parent.typeArguments&&o===o.parent.qualifier)}function wse(o,p){if(o.symbol&&o.symbol.declarations&&o.symbol.declarations.length===1){let v=o.symbol.declarations[0].parent;for(let E=p;E!==v;E=E.parent)if(!E||E.kind===242||E.kind===195&&Is(E.extendsType,m))return!0;return m(p)}return!0;function m(v){switch(v.kind){case 198:return!!o.isThisType;case 80:return!o.isThisType&&vS(v)&&RTr(v)&&QEt(v)===o;case 187:let E=v.exprName,D=_h(E);if(!pC(D)){let R=Fm(D),K=o.symbol.declarations[0],se=K.kind===169?K.parent:o.isThisType?K:void 0;if(R.declarations&&se)return Pt(R.declarations,ce=>oP(ce,se))||Pt(v.typeArguments,m)}return!0;case 175:case 174:return!v.type&&!!v.body||Pt(v.typeParameters,m)||Pt(v.parameters,m)||!!v.type&&m(v.type)}return!!Is(v,m)}}function cZ(o){let p=e0(o);if(p.flags&4194304){let m=g2(p.type);if(m.flags&262144)return m}}function LTr(o,p,m,v){let E=cZ(o);if(E){let R=Oa(E,p);if(E!==R)return iCt(S1(R),D,m,v)}return Oa(e0(o),p)===Qt?Qt:PBe(o,p,m,v);function D(R){if(R.flags&61603843&&R!==Qt&&!si(R)){if(!o.declaration.nameType){let K;if(L0(R)||R.flags&1&&he(E,4)<0&&(K=Th(E))&&bg(K,kw))return jTr(R,o,_N(E,R,p));if(Gc(R))return MTr(R,o,E,p);if(R2t(R))return Ac(Cr(R.types,D))}return PBe(o,_N(E,R,p))}return R}}function rkt(o,p){return p&1?!0:p&2?!1:o}function MTr(o,p,m,v){let E=o.target.elementFlags,D=o.target.fixedLength,R=D?_N(m,o,v):v,K=Cr(i6(o),(Ue,Me)=>{let yt=E[Me];return MeUe&1?2:Ue):se&8?Cr(E,Ue=>Ue&2?1:Ue):E,fe=rkt(o.target.readonly,zb(p));return un(K,Et)?Et:Jb(K,ce,fe,o.target.labeledElementDeclarations)}function jTr(o,p,m){let v=nkt(p,Ir,!0,m);return si(v)?Et:um(v,rkt(Hq(o),zb(p)))}function nkt(o,p,m,v){let E=sZ(v,av(o),p),D=Oa(iT(o.target||o),E),R=zb(o);return be&&R&4&&!s_(D,49152)?nD(D,!0):be&&R&8&&m?M0(D,524288):D}function PBe(o,p,m,v){$.assert(o.symbol,"anonymous type must have symbol to be instantiated");let E=F_(o.objectFlags&-1572865|64,o.symbol);if(o.objectFlags&32){E.declaration=o.declaration;let D=av(o),R=wBe(D);E.typeParameter=R,p=Tw(s6(D,R),p),R.mapper=p}return o.objectFlags&8388608&&(E.node=o.node),E.target=o,E.mapper=p,E.aliasSymbol=m||o.aliasSymbol,E.aliasTypeArguments=m?v:y2(o.aliasTypeArguments,p),E.objectFlags|=E.aliasTypeArguments?yse(E.aliasTypeArguments):0,E}function NBe(o,p,m,v,E){let D=o.root;if(D.outerTypeParameters){let R=Cr(D.outerTypeParameters,ce=>XE(ce,p)),K=(m?"C":"")+b1(R)+sN(v,E),se=D.instantiations.get(K);if(!se){let ce=ty(D.outerTypeParameters,R),fe=D.checkType,Ue=D.isDistributive?S1(XE(fe,ce)):void 0;se=Ue&&fe!==Ue&&Ue.flags&1179648?iCt(Ue,Me=>bBe(D,_N(fe,Me,ce),m),v,E):bBe(D,ce,m,v,E),D.instantiations.set(K,se)}return se}return o}function Oa(o,p){return o&&p?ikt(o,p,void 0,void 0):o}function ikt(o,p,m,v){var E;if(!iD(o))return o;if(O===100||C>=5e6)return(E=hi)==null||E.instant(hi.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:o.id,instantiationDepth:O,instantiationCount:C}),gt(M,x.Type_instantiation_is_excessively_deep_and_possibly_infinite),Et;let D=Ekr(p);D===-1&&xkr(p);let R=o.id+sN(m,v),K=HA[D!==-1?D:Fb-1],se=K.get(R);if(se)return se;T++,C++,O++;let ce=BTr(o,p,m,v);return D===-1?Tkr():K.set(R,ce),O--,ce}function BTr(o,p,m,v){let E=o.flags;if(E&262144)return XE(o,p);if(E&524288){let D=o.objectFlags;if(D&52){if(D&4&&!o.node){let R=o.resolvedTypeArguments,K=y2(R,p);return K!==R?uBe(o.target,K):o}return D&1024?$Tr(o,p):FTr(o,p,m,v)}return o}if(E&3145728){let D=o.flags&1048576?o.origin:void 0,R=D&&D.flags&3145728?D.types:o.types,K=y2(R,p);if(K===R&&m===o.aliasSymbol)return o;let se=m||o.aliasSymbol,ce=m?v:y2(o.aliasTypeArguments,p);return E&2097152||D&&D.flags&2097152?Ac(K,0,se,ce):Do(K,1,se,ce)}if(E&4194304)return KS(Oa(o.type,p));if(E&134217728)return cN(o.texts,y2(o.types,p));if(E&268435456)return w7(o.symbol,Oa(o.type,p));if(E&8388608){let D=m||o.aliasSymbol,R=m?v:y2(o.aliasTypeArguments,p);return ey(Oa(o.objectType,p),Oa(o.indexType,p),o.accessFlags,void 0,D,R)}if(E&16777216)return NBe(o,Tw(o.mapper,p),!1,m,v);if(E&33554432){let D=Oa(o.baseType,p);if(jM(o))return Xje(D);let R=Oa(o.constraint,p);return D.flags&8650752&&xw(R)?eBe(D,R):R.flags&3||tc(fN(D),fN(R))?D:D.flags&8650752?eBe(D,R):Ac([R,D])}return o}function $Tr(o,p){let m=Oa(o.mappedType,p);if(!(ro(m)&32))return o;let v=Oa(o.constraintType,p);if(!(v.flags&4194304))return o;let E=Lkt(Oa(o.source,p),m,v);return E||o}function lZ(o){return o.flags&402915327?o:o.permissiveInstantiation||(o.permissiveInstantiation=Oa(o,Cp))}function fN(o){return o.flags&402915327?o:(o.restrictiveInstantiation||(o.restrictiveInstantiation=Oa(o,Mp),o.restrictiveInstantiation.restrictiveInstantiation=o.restrictiveInstantiation),o.restrictiveInstantiation)}function UTr(o,p){return aT(o.keyType,Oa(o.type,p),o.isReadonly,o.declaration,o.components)}function r0(o){switch($.assert(o.kind!==175||r1(o)),o.kind){case 219:case 220:case 175:case 263:return okt(o);case 211:return Pt(o.properties,r0);case 210:return Pt(o.elements,r0);case 228:return r0(o.whenTrue)||r0(o.whenFalse);case 227:return(o.operatorToken.kind===57||o.operatorToken.kind===61)&&(r0(o.left)||r0(o.right));case 304:return r0(o.initializer);case 218:return r0(o.expression);case 293:return Pt(o.properties,r0)||Tv(o.parent)&&Pt(o.parent.parent.children,r0);case 292:{let{initializer:p}=o;return!!p&&r0(p)}case 295:{let{expression:p}=o;return!!p&&r0(p)}}return!1}function okt(o){return xne(o)||zTr(o)}function zTr(o){return o.typeParameters||jg(o)||!o.body?!1:o.body.kind!==242?r0(o.body):!!sC(o.body,p=>!!p.expression&&r0(p.expression))}function Fxe(o){return(mC(o)||r1(o))&&okt(o)}function akt(o){if(o.flags&524288){let p=jv(o);if(p.constructSignatures.length||p.callSignatures.length){let m=F_(16,o.symbol);return m.members=p.members,m.properties=p.properties,m.callSignatures=j,m.constructSignatures=j,m.indexInfos=j,m}}else if(o.flags&2097152)return Ac(Cr(o.types,akt));return o}function cT(o,p){return QS(o,p,sm)}function uZ(o,p){return QS(o,p,sm)?-1:0}function OBe(o,p){return QS(o,p,am)?-1:0}function qTr(o,p){return QS(o,p,Rb)?-1:0}function c6(o,p){return QS(o,p,Rb)}function Gq(o,p){return QS(o,p,tp)}function tc(o,p){return QS(o,p,am)}function Ew(o,p){return o.flags&1048576?ht(o.types,m=>Ew(m,p)):p.flags&1048576?Pt(p.types,m=>Ew(o,m)):o.flags&2097152?Pt(o.types,m=>Ew(m,p)):o.flags&58982400?Ew(Gf(o)||er,p):Vb(p)?!!(o.flags&67633152):p===br?!!(o.flags&67633152)&&!Vb(o):p===Vn?!!(o.flags&524288)&&d$e(o):eo(o,Fn(p))||L0(p)&&!Hq(p)&&Ew(o,Uc)}function Rxe(o,p){return QS(o,p,Kh)}function Ise(o,p){return Rxe(o,p)||Rxe(p,o)}function pm(o,p,m,v,E,D){return R0(o,p,am,m,v,E,D)}function l6(o,p,m,v,E,D){return FBe(o,p,am,m,v,E,D,void 0)}function FBe(o,p,m,v,E,D,R,K){return QS(o,p,m)?!0:!v||!pZ(E,o,p,m,D,R,K)?R0(o,p,m,v,D,R,K):!1}function skt(o){return!!(o.flags&16777216||o.flags&2097152&&Pt(o.types,skt))}function pZ(o,p,m,v,E,D,R){if(!o||skt(m))return!1;if(!R0(p,m,v,void 0)&&JTr(o,p,m,v,E,D,R))return!0;switch(o.kind){case 235:if(!cge(o))break;case 295:case 218:return pZ(o.expression,p,m,v,E,D,R);case 227:switch(o.operatorToken.kind){case 64:case 28:return pZ(o.right,p,m,v,E,D,R)}break;case 211:return XTr(o,p,m,v,D,R);case 210:return QTr(o,p,m,v,D,R);case 293:return KTr(o,p,m,v,D,R);case 220:return VTr(o,p,m,v,D,R)}return!1}function JTr(o,p,m,v,E,D,R){let K=Gs(p,0),se=Gs(p,1);for(let ce of[se,K])if(Pt(ce,fe=>{let Ue=Tl(fe);return!(Ue.flags&131073)&&R0(Ue,m,v,void 0)})){let fe=R||{};pm(p,m,o,E,D,fe);let Ue=fe.errors[fe.errors.length-1];return ac(Ue,xi(o,ce===se?x.Did_you_mean_to_use_new_with_this_expression:x.Did_you_mean_to_call_this_expression)),!0}return!1}function VTr(o,p,m,v,E,D){if(Vs(o.body)||Pt(o.parameters,Qte))return!1;let R=TN(p);if(!R)return!1;let K=Gs(m,0);if(!te(K))return!1;let se=o.body,ce=Tl(R),fe=Do(Cr(K,Tl));if(!R0(ce,fe,v,void 0)){let Ue=se&&pZ(se,ce,fe,v,void 0,E,D);if(Ue)return Ue;let Me=D||{};if(R0(ce,fe,v,se,void 0,E,Me),Me.errors)return m.symbol&&te(m.symbol.declarations)&&ac(Me.errors[Me.errors.length-1],xi(m.symbol.declarations[0],x.The_expected_type_comes_from_the_return_type_of_this_signature)),(A_(o)&2)===0&&!en(ce,"then")&&R0(pce(ce),fe,v,void 0)&&ac(Me.errors[Me.errors.length-1],xi(o,x.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function ckt(o,p,m){let v=YC(p,m);if(v)return v;if(p.flags&1048576){let E=hkt(o,p);if(E)return YC(E,m)}}function lkt(o,p){Zse(o,p,!1);let m=iJ(o,1);return xZ(),m}function Pse(o,p,m,v,E,D){let R=!1;for(let K of o){let{errorNode:se,innerExpression:ce,nameType:fe,errorMessage:Ue}=K,Me=ckt(p,m,fe);if(!Me||Me.flags&8388608)continue;let yt=YC(p,fe);if(!yt)continue;let Jt=Dxe(fe,void 0);if(!R0(yt,Me,v,void 0)){let Xt=ce&&pZ(ce,yt,Me,v,void 0,E,D);if(R=!0,!Xt){let kr=D||{},on=ce?lkt(ce,yt):yt;if(ze&&Mxe(on,Me)){let Hn=xi(se,x.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,ri(on),ri(Me));il.add(Hn),kr.errors=[Hn]}else{let Hn=!!(Jt&&(vc(m,Jt)||ye).flags&16777216),fi=!!(Jt&&(vc(p,Jt)||ye).flags&16777216);Me=x2(Me,Hn),yt=x2(yt,Hn&&fi),R0(on,Me,v,se,Ue,E,kr)&&on!==yt&&R0(yt,Me,v,se,Ue,E,kr)}if(kr.errors){let Hn=kr.errors[kr.errors.length-1],fi=b0(fe)?x0(fe):void 0,sn=fi!==void 0?vc(m,fi):void 0,rn=!1;if(!sn){let vi=YQ(m,fe);vi&&vi.declaration&&!Pn(vi.declaration).hasNoDefaultLib&&(rn=!0,ac(Hn,xi(vi.declaration,x.The_expected_type_comes_from_this_index_signature)))}if(!rn&&(sn&&te(sn.declarations)||m.symbol&&te(m.symbol.declarations))){let vi=sn&&te(sn.declarations)?sn.declarations[0]:m.symbol.declarations[0];Pn(vi).hasNoDefaultLib||ac(Hn,xi(vi,x.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,fi&&!(fe.flags&8192)?oa(fi):ri(fe),ri(m)))}}}}}return R}function WTr(o,p,m,v,E,D){let R=G_(m,Jxe),K=G_(m,fe=>!Jxe(fe)),se=K!==tn?RUe(13,0,K,void 0):void 0,ce=!1;for(let fe=o.next();!fe.done;fe=o.next()){let{errorNode:Ue,innerExpression:Me,nameType:yt,errorMessage:Jt}=fe.value,Xt=se,kr=R!==tn?ckt(p,R,yt):void 0;if(kr&&!(kr.flags&8388608)&&(Xt=se?Do([se,kr]):kr),!Xt)continue;let on=YC(p,yt);if(!on)continue;let Hn=Dxe(yt,void 0);if(!R0(on,Xt,v,void 0)){let fi=Me&&pZ(Me,on,Xt,v,void 0,E,D);if(ce=!0,!fi){let sn=D||{},rn=Me?lkt(Me,on):on;if(ze&&Mxe(rn,Xt)){let vi=xi(Ue,x.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,ri(rn),ri(Xt));il.add(vi),sn.errors=[vi]}else{let vi=!!(Hn&&(vc(R,Hn)||ye).flags&16777216),wo=!!(Hn&&(vc(p,Hn)||ye).flags&16777216);Xt=x2(Xt,vi),on=x2(on,vi&&wo),R0(rn,Xt,v,Ue,Jt,E,sn)&&rn!==on&&R0(on,Xt,v,Ue,Jt,E,sn)}}}}return ce}function*GTr(o){if(te(o.properties))for(let p of o.properties)TF(p)||L$e(DH(p.name))||(yield{errorNode:p.name,innerExpression:p.initializer,nameType:Sg(DH(p.name))})}function*HTr(o,p){if(!te(o.children))return;let m=0;for(let v=0;v1,kr,on;if(Cxe(!1)!==Ar){let fi=yEt(at);kr=G_(yt,sn=>tc(sn,fi)),on=G_(yt,sn=>!tc(sn,fi))}else kr=G_(yt,Jxe),on=G_(yt,fi=>!Jxe(fi));if(Xt){if(kr!==tn){let fi=Jb(yTe(ce,0)),sn=HTr(ce,se);R=WTr(sn,fi,kr,v,E,D)||R}else if(!QS(ey(p,Me),yt,v)){R=!0;let fi=gt(ce.openingElement.tagName,x.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Ue,ri(yt));D&&D.skipLogging&&(D.errors||(D.errors=[])).push(fi)}}else if(on!==tn){let fi=Jt[0],sn=ukt(fi,Me,se);sn&&(R=Pse((function*(){yield sn})(),p,m,v,E,D)||R)}else if(!QS(ey(p,Me),yt,v)){R=!0;let fi=gt(ce.openingElement.tagName,x.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Ue,ri(yt));D&&D.skipLogging&&(D.errors||(D.errors=[])).push(fi)}}return R;function se(){if(!K){let ce=Sp(o.parent.tagName),fe=Yse(bN(o)),Ue=fe===void 0?"children":oa(fe),Me=ey(m,Sg(Ue)),yt=x._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;K={...yt,key:"!!ALREADY FORMATTED!!",message:nF(yt,ce,Ue,ri(Me))}}return K}}function*pkt(o,p){let m=te(o.elements);if(m)for(let v=0;vse:Jv(o)>se))return v&&!(m&8)&&E(x.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,Jv(o),se),0;o.typeParameters&&o.typeParameters!==p.typeParameters&&(p=exr(p),o=xDt(o,p,void 0,R));let fe=xg(o),Ue=IZ(o),Me=IZ(p);(Ue||Me)&&Oa(Ue||Me,K);let yt=p.declaration?p.declaration.kind:0,Jt=!(m&3)&&ue&&yt!==175&&yt!==174&&yt!==177,Xt=-1,kr=Sw(o);if(kr&&kr!==pn){let fi=Sw(p);if(fi){let sn=!Jt&&R(kr,fi,!1)||R(fi,kr,v);if(!sn)return v&&E(x.The_this_types_of_each_signature_are_incompatible),0;Xt&=sn}}let on=Ue||Me?Math.min(fe,se):Math.max(fe,se),Hn=Ue||Me?on-1:-1;for(let fi=0;fi=Jv(o)&&fi=3&&p[0].flags&32768&&p[1].flags&65536&&Pt(p,Vb)?67108864:0)}return!!(o.objectFlags&67108864)}return!1}function UM(o){return!!((o.flags&1048576?o.types[0]:o).flags&32768)}function n2r(o){let p=o.flags&1048576?o.types[0]:o;return!!(p.flags&32768)&&p!==ot}function dkt(o){return o.flags&524288&&!Xh(o)&&$l(o).length===0&&lm(o).length===1&&!!oT(o,Mt)||o.flags&3145728&&ht(o.types,dkt)||!1}function MBe(o,p,m){let v=o.flags&8?Od(o):o,E=p.flags&8?Od(p):p;if(v===E)return!0;if(v.escapedName!==E.escapedName||!(v.flags&256)||!(E.flags&256))return!1;let D=hc(v)+","+hc(E),R=YA.get(D);if(R!==void 0&&!(R&2&&m))return!!(R&1);let K=di(E);for(let se of $l(di(v)))if(se.flags&8){let ce=vc(K,se.escapedName);if(!ce||!(ce.flags&8))return m&&m(x.Property_0_is_missing_in_type_1,vp(se),ri(Tu(E),void 0,64)),YA.set(D,2),!1;let fe=kN(Qu(se,307)).value,Ue=kN(Qu(ce,307)).value;if(fe!==Ue){let Me=typeof fe=="string",yt=typeof Ue=="string";if(fe!==void 0&&Ue!==void 0){if(m){let Jt=Me?`"${kb(fe)}"`:fe,Xt=yt?`"${kb(Ue)}"`:Ue;m(x.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,vp(E),vp(ce),Xt,Jt)}return YA.set(D,2),!1}if(Me||yt){if(m){let Jt=fe??Ue;$.assert(typeof Jt=="string");let Xt=`"${kb(Jt)}"`;m(x.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,vp(E),vp(ce),Xt)}return YA.set(D,2),!1}}}return YA.set(D,1),!0}function _Z(o,p,m,v){let E=o.flags,D=p.flags;return D&1||E&131072||o===Qt||D&2&&!(m===tp&&E&1)?!0:D&131072?!1:!!(E&402653316&&D&4||E&128&&E&1024&&D&128&&!(D&1024)&&o.value===p.value||E&296&&D&8||E&256&&E&1024&&D&256&&!(D&1024)&&o.value===p.value||E&2112&&D&64||E&528&&D&16||E&12288&&D&4096||E&32&&D&32&&o.symbol.escapedName===p.symbol.escapedName&&MBe(o.symbol,p.symbol,v)||E&1024&&D&1024&&(E&1048576&&D&1048576&&MBe(o.symbol,p.symbol,v)||E&2944&&D&2944&&o.value===p.value&&MBe(o.symbol,p.symbol,v))||E&32768&&(!be&&!(D&3145728)||D&49152)||E&65536&&(!be&&!(D&3145728)||D&65536)||E&524288&&D&67108864&&!(m===tp&&Vb(o)&&!(ro(o)&8192))||(m===am||m===Kh)&&(E&1||E&8&&(D&32||D&256&&D&1024)||E&256&&!(E&1024)&&(D&32||D&256&&D&1024&&o.value===p.value)||r2r(p)))}function QS(o,p,m){if(a6(o)&&(o=o.regularType),a6(p)&&(p=p.regularType),o===p)return!0;if(m!==sm){if(m===Kh&&!(p.flags&131072)&&_Z(p,o,m)||_Z(o,p,m))return!0}else if(!((o.flags|p.flags)&61865984)){if(o.flags!==p.flags)return!1;if(o.flags&67358815)return!0}if(o.flags&524288&&p.flags&524288){let v=m.get($xe(o,p,0,m,!1));if(v!==void 0)return!!(v&1)}return o.flags&469499904||p.flags&469499904?R0(o,p,m,void 0):!1}function fkt(o,p){return ro(o)&2048&&L$e(p.escapedName)}function Nse(o,p){for(;;){let m=a6(o)?o.regularType:rD(o)?a2r(o,p):ro(o)&4?o.node?f2(o.target,Bu(o)):VBe(o)||o:o.flags&3145728?i2r(o,p):o.flags&33554432?p?o.baseType:tBe(o):o.flags&25165824?h2(o,p):o;if(m===o)return m;o=m}}function i2r(o,p){let m=S1(o);if(m!==o)return m;if(o.flags&2097152&&o2r(o)){let v=Zo(o.types,E=>Nse(E,p));if(v!==o.types)return Ac(v)}return o}function o2r(o){let p=!1,m=!1;for(let v of o.types)if(p||(p=!!(v.flags&465829888)),m||(m=!!(v.flags&98304)||Vb(v)),p&&m)return!0;return!1}function a2r(o,p){let m=i6(o),v=Zo(m,E=>E.flags&25165824?h2(E,p):E);return m!==v?pBe(o.target,v):o}function R0(o,p,m,v,E,D,R){var K;let se,ce,fe,Ue,Me,yt,Jt=0,Xt=0,kr=0,on=0,Hn=!1,fi=0,sn=0,rn,vi,wo=16e6-m.size>>3;$.assert(m!==sm||!v,"no error reporting in identity checking");let Fa=mi(o,p,3,!!v,E);if(vi&&El(),Hn){let He=$xe(o,p,0,m,!1);m.set(He,2|(wo<=0?32:64)),(K=hi)==null||K.instant(hi.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:o.id,targetId:p.id,depth:Xt,targetDepth:kr});let lt=wo<=0?x.Excessive_complexity_comparing_types_0_and_1:x.Excessive_stack_depth_comparing_types_0_and_1,Nt=gt(v||M,lt,ri(o),ri(p));R&&(R.errors||(R.errors=[])).push(Nt)}else if(se){if(D){let Nt=D();Nt&&(C4e(Nt,se),se=Nt)}let He;if(E&&v&&!Fa&&o.symbol){let Nt=io(o.symbol);if(Nt.originatingImport&&!Bh(Nt.originatingImport)&&R0(di(Nt.target),p,m,void 0)){let jr=xi(Nt.originatingImport,x.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);He=jt(He,jr)}}let lt=Nx(Pn(v),v,se,He);ce&&ac(lt,...ce),R&&(R.errors||(R.errors=[])).push(lt),(!R||!R.skipLogging)&&il.add(lt)}return v&&R&&R.skipLogging&&Fa===0&&$.assert(!!R.errors,"missed opportunity to interact with error."),Fa!==0;function ho(He){se=He.errorInfo,rn=He.lastSkippedInfo,vi=He.incompatibleStack,fi=He.overrideNextErrorInfo,sn=He.skipParentCounter,ce=He.relatedInfo}function pa(){return{errorInfo:se,lastSkippedInfo:rn,incompatibleStack:vi?.slice(),overrideNextErrorInfo:fi,skipParentCounter:sn,relatedInfo:ce?.slice()}}function Ps(He,...lt){fi++,rn=void 0,(vi||(vi=[])).push([He,...lt])}function El(){let He=vi||[];vi=void 0;let lt=rn;if(rn=void 0,He.length===1){qa(...He[0]),lt&&Rm(void 0,...lt);return}let Nt="",fr=[];for(;He.length;){let[jr,...gr]=He.pop();switch(jr.code){case x.Types_of_property_0_are_incompatible.code:{Nt.indexOf("new ")===0&&(Nt=`(${Nt})`);let Jr=""+gr[0];Nt.length===0?Nt=`${Jr}`:Jd(Jr,$c(Q))?Nt=`${Nt}.${Jr}`:Jr[0]==="["&&Jr[Jr.length-1]==="]"?Nt=`${Nt}${Jr}`:Nt=`${Nt}[${Jr}]`;break}case x.Call_signature_return_types_0_and_1_are_incompatible.code:case x.Construct_signature_return_types_0_and_1_are_incompatible.code:case x.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case x.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Nt.length===0){let Jr=jr;jr.code===x.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?Jr=x.Call_signature_return_types_0_and_1_are_incompatible:jr.code===x.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(Jr=x.Construct_signature_return_types_0_and_1_are_incompatible),fr.unshift([Jr,gr[0],gr[1]])}else{let Jr=jr.code===x.Construct_signature_return_types_0_and_1_are_incompatible.code||jr.code===x.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Gn=jr.code===x.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||jr.code===x.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Nt=`${Jr}${Nt}(${Gn})`}break}case x.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{fr.unshift([x.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,gr[0],gr[1]]);break}case x.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{fr.unshift([x.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,gr[0],gr[1],gr[2]]);break}default:return $.fail(`Unhandled Diagnostic: ${jr.code}`)}}Nt?qa(Nt[Nt.length-1]===")"?x.The_types_returned_by_0_are_incompatible_between_these_types:x.The_types_of_0_are_incompatible_between_these_types,Nt):fr.shift();for(let[jr,...gr]of fr){let Jr=jr.elidedInCompatabilityPyramid;jr.elidedInCompatabilityPyramid=!1,qa(jr,...gr),jr.elidedInCompatabilityPyramid=Jr}lt&&Rm(void 0,...lt)}function qa(He,...lt){$.assert(!!v),vi&&El(),!He.elidedInCompatabilityPyramid&&(sn===0?se=ws(se,He,...lt):sn--)}function rp(He,...lt){qa(He,...lt),sn++}function Zp(He){$.assert(!!se),ce?ce.push(He):ce=[He]}function Rm(He,lt,Nt){vi&&El();let[fr,jr]=Pq(lt,Nt),gr=lt,Jr=fr;if(!(Nt.flags&131072)&&dZ(lt)&&!jBe(Nt)&&(gr=S2(lt),$.assert(!tc(gr,Nt),"generalized source shouldn't be assignable"),Jr=DM(gr)),(Nt.flags&8388608&&!(lt.flags&8388608)?Nt.objectType.flags:Nt.flags)&262144&&Nt!==st&&Nt!==zt){let Si=Gf(Nt),Ui;Si&&(tc(gr,Si)||(Ui=tc(lt,Si)))?qa(x._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Ui?fr:Jr,jr,ri(Si)):(se=void 0,qa(x._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,jr,Jr))}if(He)He===x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&ze&&mkt(lt,Nt).length&&(He=x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(m===Kh)He=x.Type_0_is_not_comparable_to_type_1;else if(fr===jr)He=x.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(ze&&mkt(lt,Nt).length)He=x.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(lt.flags&128&&Nt.flags&1048576){let Si=ECr(lt,Nt);if(Si){qa(x.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,Jr,jr,ri(Si));return}}He=x.Type_0_is_not_assignable_to_type_1}qa(He,Jr,jr)}function Mn(He,lt){let Nt=AM(He.symbol)?ri(He,He.symbol.valueDeclaration):ri(He),fr=AM(lt.symbol)?ri(lt,lt.symbol.valueDeclaration):ri(lt);(nd===He&&Mt===lt||Mu===He&&Ir===lt||Dp===He&&_r===lt||pEt()===He&&wr===lt)&&qa(x._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,fr,Nt)}function ei(He,lt,Nt){return Gc(He)?He.target.readonly&&Lse(lt)?(Nt&&qa(x.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ri(He),ri(lt)),!1):kw(lt):Hq(He)&&Lse(lt)?(Nt&&qa(x.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ri(He),ri(lt)),!1):Gc(lt)?L0(He):!0}function ha(He,lt,Nt){return mi(He,lt,3,Nt)}function mi(He,lt,Nt=3,fr=!1,jr,gr=0){if(He===lt)return-1;if(He.flags&524288&<.flags&402784252)return m===Kh&&!(lt.flags&131072)&&_Z(lt,He,m)||_Z(He,lt,m,fr?qa:void 0)?-1:(fr&&fs(He,lt,He,lt,jr),0);let Jr=Nse(He,!1),Gn=Nse(lt,!0);if(Jr===Gn)return-1;if(m===sm)return Jr.flags!==Gn.flags?0:Jr.flags&67358815?-1:(Rl(Jr,Gn),VZ(Jr,Gn,!1,0,Nt));if(Jr.flags&262144&&iN(Jr)===Gn)return-1;if(Jr.flags&470302716&&Gn.flags&1048576){let Si=Gn.types,Ui=Si.length===2&&Si[0].flags&98304?Si[1]:Si.length===3&&Si[0].flags&98304&&Si[1].flags&98304?Si[2]:void 0;if(Ui&&!(Ui.flags&98304)&&(Gn=Nse(Ui,!0),Jr===Gn))return-1}if(m===Kh&&!(Gn.flags&131072)&&_Z(Gn,Jr,m)||_Z(Jr,Gn,m,fr?qa:void 0))return-1;if(Jr.flags&469499904||Gn.flags&469499904){if(!(gr&2)&&ek(Jr)&&ro(Jr)&8192&&hf(Jr,Gn,fr))return fr&&Rm(jr,Jr,lt.aliasSymbol?lt:Gn),0;let Ui=(m!==Kh||$v(Jr))&&!(gr&2)&&Jr.flags&405405692&&Jr!==br&&Gn.flags&2621440&&$Be(Gn)&&($l(Jr).length>0||t2e(Jr)),Io=!!(ro(Jr)&2048);if(Ui&&!c2r(Jr,Gn,Io)){if(fr){let qo=ri(He.aliasSymbol?He:Jr),ss=ri(lt.aliasSymbol?lt:Gn),rl=Gs(Jr,0),Zr=Gs(Jr,1);rl.length>0&&mi(Tl(rl[0]),Gn,1,!1)||Zr.length>0&&mi(Tl(Zr[0]),Gn,1,!1)?qa(x.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,qo,ss):qa(x.Type_0_has_no_properties_in_common_with_type_1,qo,ss)}return 0}Rl(Jr,Gn);let ti=Jr.flags&1048576&&Jr.types.length<4&&!(Gn.flags&1048576)||Gn.flags&1048576&&Gn.types.length<4&&!(Jr.flags&469499904)?y_(Jr,Gn,fr,gr):VZ(Jr,Gn,fr,gr,Nt);if(ti)return ti}return fr&&fs(He,lt,Jr,Gn,jr),0}function fs(He,lt,Nt,fr,jr){var gr,Jr;let Gn=!!VBe(He),Si=!!VBe(lt);Nt=He.aliasSymbol||Gn?He:Nt,fr=lt.aliasSymbol||Si?lt:fr;let Ui=fi>0;if(Ui&&fi--,Nt.flags&524288&&fr.flags&524288){let Io=se;ei(Nt,fr,!0),se!==Io&&(Ui=!!se)}if(Nt.flags&524288&&fr.flags&402784252)Mn(Nt,fr);else if(Nt.symbol&&Nt.flags&524288&&br===Nt)qa(x.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(ro(Nt)&2048&&fr.flags&2097152){let Io=fr.types,bo=_6(qy.IntrinsicAttributes,v),ti=_6(qy.IntrinsicClassAttributes,v);if(!si(bo)&&!si(ti)&&(un(Io,bo)||un(Io,ti)))return}else se=Jje(se,lt);if(!jr&&Ui){let Io=pa();Rm(jr,Nt,fr);let bo;se&&se!==Io.errorInfo&&(bo={code:se.code,messageText:se.messageText}),ho(Io),bo&&se&&(se.canonicalHead=bo),rn=[Nt,fr];return}if(Rm(jr,Nt,fr),Nt.flags&262144&&((Jr=(gr=Nt.symbol)==null?void 0:gr.declarations)!=null&&Jr[0])&&!iN(Nt)){let Io=wBe(Nt);if(Io.constraint=Oa(fr,s6(Nt,Io)),mse(Io)){let bo=ri(fr,Nt.symbol.declarations[0]);Zp(xi(Nt.symbol.declarations[0],x.This_type_parameter_might_need_an_extends_0_constraint,bo))}}}function Rl(He,lt){if(hi&&He.flags&3145728&<.flags&3145728){let Nt=He,fr=lt;if(Nt.objectFlags&fr.objectFlags&32768)return;let jr=Nt.types.length,gr=fr.types.length;jr*gr>1e6&&hi.instant(hi.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:He.id,sourceSize:jr,targetId:lt.id,targetSize:gr,pos:v?.pos,end:v?.end})}}function $u(He,lt){return Do(nl(He,(fr,jr)=>{var gr;jr=nh(jr);let Jr=jr.flags&3145728?hse(jr,lt):t6(jr,lt),Gn=Jr&&di(Jr)||((gr=D7(jr,lt))==null?void 0:gr.type)||Ne;return jt(fr,Gn)},void 0)||j)}function hf(He,lt,Nt){var fr;if(!kZ(lt)||!Fe&&ro(lt)&4096)return!1;let jr=!!(ro(He)&2048);if((m===am||m===Kh)&&(Xq(br,lt)||!jr&&v2(lt)))return!1;let gr=lt,Jr;lt.flags&1048576&&(gr=Vwt(He,lt,mi)||F6r(lt),Jr=gr.flags&1048576?gr.types:[gr]);for(let Gn of $l(He))if(Hc(Gn,He.symbol)&&!fkt(He,Gn)){if(!bTe(gr,Gn.escapedName,jr)){if(Nt){let Si=G_(gr,kZ);if(!v)return $.fail();if(xP(v)||Em(v)||Em(v.parent)){Gn.valueDeclaration&&NS(Gn.valueDeclaration)&&Pn(v)===Pn(Gn.valueDeclaration.name)&&(v=Gn.valueDeclaration.name);let Ui=Ua(Gn),Io=_Dt(Ui,Si),bo=Io?Ua(Io):void 0;bo?qa(x.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Ui,ri(Si),bo):qa(x.Property_0_does_not_exist_on_type_1,Ui,ri(Si))}else{let Ui=((fr=He.symbol)==null?void 0:fr.declarations)&&pi(He.symbol.declarations),Io;if(Gn.valueDeclaration&&fn(Gn.valueDeclaration,bo=>bo===Ui)&&Pn(Ui)===Pn(v)){let bo=Gn.valueDeclaration;$.assertNode(bo,MT);let ti=bo.name;v=ti,ct(ti)&&(Io=dDt(ti,Si))}Io!==void 0?rp(x.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Ua(Gn),ri(Si),Io):rp(x.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ua(Gn),ri(Si))}}return!0}if(Jr&&!mi(di(Gn),$u(Jr,Gn.escapedName),3,Nt))return Nt&&Ps(x.Types_of_property_0_are_incompatible,Ua(Gn)),!0}return!1}function Hc(He,lt){return He.valueDeclaration&<.valueDeclaration&&He.valueDeclaration.parent===lt.valueDeclaration}function y_(He,lt,Nt,fr){if(He.flags&1048576){if(lt.flags&1048576){let jr=He.origin;if(jr&&jr.flags&2097152&<.aliasSymbol&&un(jr.types,lt))return-1;let gr=lt.origin;if(gr&&gr.flags&1048576&&He.aliasSymbol&&un(gr.types,He))return-1}return m===Kh?gp(He,lt,Nt&&!(He.flags&402784252),fr):$0(He,lt,Nt&&!(He.flags&402784252),fr)}if(lt.flags&1048576)return Ul(hZ(He),lt,Nt&&!(He.flags&402784252)&&!(lt.flags&402784252),fr);if(lt.flags&2097152)return n0(He,lt,Nt,2);if(m===Kh&<.flags&402784252){let jr=Zo(He.types,gr=>gr.flags&465829888?Gf(gr)||er:gr);if(jr!==He.types){if(He=Ac(jr),He.flags&131072)return 0;if(!(He.flags&2097152))return mi(He,lt,1,!1)||mi(lt,He,1,!1)}}return gp(He,lt,!1,1)}function R_(He,lt){let Nt=-1,fr=He.types;for(let jr of fr){let gr=Ul(jr,lt,!1,0);if(!gr)return 0;Nt&=gr}return Nt}function Ul(He,lt,Nt,fr){let jr=lt.types;if(lt.flags&1048576){if(sT(jr,He))return-1;if(m!==Kh&&ro(lt)&32768&&!(He.flags&1024)&&(He.flags&2688||(m===Rb||m===tp)&&He.flags&256)){let Jr=He===He.regularType?He.freshType:He.regularType,Gn=He.flags&128?Mt:He.flags&256?Ir:He.flags&2048?ii:void 0;return Gn&&sT(jr,Gn)||Jr&&sT(jr,Jr)?-1:0}let gr=Wkt(lt,He);if(gr){let Jr=mi(He,gr,2,!1,void 0,fr);if(Jr)return Jr}}for(let gr of jr){let Jr=mi(He,gr,2,!1,void 0,fr);if(Jr)return Jr}if(Nt){let gr=hkt(He,lt,mi);gr&&mi(He,gr,2,!0,void 0,fr)}return 0}function n0(He,lt,Nt,fr){let jr=-1,gr=lt.types;for(let Jr of gr){let Gn=mi(He,Jr,2,Nt,void 0,fr);if(!Gn)return 0;jr&=Gn}return jr}function gp(He,lt,Nt,fr){let jr=He.types;if(He.flags&1048576&&sT(jr,lt))return-1;let gr=jr.length;for(let Jr=0;Jr=Jr.types.length&&gr.length%Jr.types.length===0){let Io=mi(Si,Jr.types[Gn%Jr.types.length],3,!1,void 0,fr);if(Io){jr&=Io;continue}}let Ui=mi(Si,lt,1,Nt,void 0,fr);if(!Ui)return 0;jr&=Ui}return jr}function uJ(He=j,lt=j,Nt=j,fr,jr){if(He.length!==lt.length&&m===sm)return 0;let gr=He.length<=lt.length?He.length:lt.length,Jr=-1;for(let Gn=0;Gn(qo|=Zr?16:8,ti(Zr)));let ss;return on===3?((gr=hi)==null||gr.instant(hi.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:He.id,sourceIdStack:Me.map(Zr=>Zr.id),targetId:lt.id,targetIdStack:yt.map(Zr=>Zr.id),depth:Xt,targetDepth:kr}),ss=3):((Jr=hi)==null||Jr.push(hi.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:He.id,targetId:lt.id}),ss=pJ(He,lt,Nt,fr),(Gn=hi)==null||Gn.pop()),bs&&(bs=ti),jr&1&&Xt--,jr&2&&kr--,on=bo,ss?(ss===-1||Xt===0&&kr===0)&&rl(ss===-1||ss===3):(m.set(Si,2|qo),wo--,rl(!1)),ss;function rl(Zr){for(let Gi=Io;GiGn!==He)&&(gr=mi(Jr,lt,1,!1,void 0,fr))}gr&&!(fr&2)&<.flags&2097152&&!uN(lt)&&He.flags&2621440?(gr&=wc(He,lt,Nt,void 0,!1,0),gr&&ek(He)&&ro(He)&8192&&(gr&=Xe(He,lt,!1,Nt,0))):gr&&wxe(lt)&&!kw(lt)&&He.flags&2097152&&nh(He).flags&3670016&&!Pt(He.types,Jr=>Jr===lt||!!(ro(Jr)&262144))&&(gr&=wc(He,lt,Nt,void 0,!0,fr))}return gr&&ho(jr),gr}function by(He,lt){let Nt=nh(yw(lt)),fr=[];return Mje(Nt,8576,!1,jr=>{fr.push(Oa(He,sZ(lt.mapper,av(lt),jr)))}),Do(fr)}function WZ(He,lt,Nt,fr,jr){let gr,Jr,Gn=!1,Si=He.flags,Ui=lt.flags;if(m===sm){if(Si&3145728){let ti=R_(He,lt);return ti&&(ti&=R_(lt,He)),ti}if(Si&4194304)return mi(He.type,lt.type,3,!1);if(Si&8388608&&(gr=mi(He.objectType,lt.objectType,3,!1))&&(gr&=mi(He.indexType,lt.indexType,3,!1))||Si&16777216&&He.root.isDistributive===lt.root.isDistributive&&(gr=mi(He.checkType,lt.checkType,3,!1))&&(gr&=mi(He.extendsType,lt.extendsType,3,!1))&&(gr&=mi(eD(He),eD(lt),3,!1))&&(gr&=mi(tD(He),tD(lt),3,!1))||Si&33554432&&(gr=mi(He.baseType,lt.baseType,3,!1))&&(gr&=mi(He.constraint,lt.constraint,3,!1)))return gr;if(Si&134217728&&__(He.texts,lt.texts)){let ti=He.types,qo=lt.types;gr=-1;for(let ss=0;ss!!(qo.flags&262144));){if(gr=mi(ti,lt,1,!1))return gr;ti=Th(ti)}return 0}}else if(Ui&4194304){let ti=lt.type;if(Si&4194304&&(gr=mi(ti,He.type,3,!1)))return gr;if(Gc(ti)){if(gr=mi(He,xEt(ti),2,Nt))return gr}else{let qo=jje(ti);if(qo){if(mi(He,KS(qo,lt.indexFlags|4),2,Nt)===-1)return-1}else if(Xh(ti)){let ss=HE(ti),rl=e0(ti),Zr;if(ss&&FM(ti)){let Gi=by(ss,ti);Zr=Do([Gi,ss])}else Zr=ss||rl;if(mi(He,Zr,2,Nt)===-1)return-1}}}else if(Ui&8388608){if(Si&8388608){if((gr=mi(He.objectType,lt.objectType,3,Nt))&&(gr&=mi(He.indexType,lt.indexType,3,Nt)),gr)return gr;Nt&&(Jr=se)}if(m===am||m===Kh){let ti=lt.objectType,qo=lt.indexType,ss=Gf(ti)||ti,rl=Gf(qo)||qo;if(!uN(ss)&&!pN(rl)){let Zr=4|(ss!==ti?2:0),Gi=YC(ss,rl,Zr);if(Gi){if(Nt&&Jr&&ho(jr),gr=mi(He,Gi,2,Nt,void 0,fr))return gr;Nt&&Jr&&se&&(se=Io([Jr])<=Io([se])?Jr:se)}}}Nt&&(Jr=void 0)}else if(Xh(lt)&&m!==sm){let ti=!!lt.declaration.nameType,qo=iT(lt),ss=zb(lt);if(!(ss&8)){if(!ti&&qo.flags&8388608&&qo.objectType===He&&qo.indexType===av(lt))return-1;if(!Xh(He)){let rl=ti?HE(lt):e0(lt),Zr=KS(He,2),Gi=ss&4,ys=Gi?_se(rl,Zr):void 0;if(Gi?!(ys.flags&131072):mi(rl,Zr,3)){let Qa=iT(lt),Kc=av(lt),kl=Yq(Qa,-98305);if(!ti&&kl.flags&8388608&&kl.indexType===Kc){if(gr=mi(He,kl.objectType,2,Nt))return gr}else{let ls=ti?ys||rl:ys?Ac([ys,Kc]):Kc,id=ey(He,ls);if(gr=mi(id,Qa,3,Nt))return gr}}Jr=se,ho(jr)}}}else if(Ui&16777216){if(O7(lt,yt,kr,10))return 3;let ti=lt;if(!ti.root.inferTypeParameters&&!xTr(ti.root)&&!(He.flags&16777216&&He.root===ti.root)){let qo=!tc(lZ(ti.checkType),lZ(ti.extendsType)),ss=!qo&&tc(fN(ti.checkType),fN(ti.extendsType));if((gr=qo?-1:mi(He,eD(ti),2,!1,void 0,fr))&&(gr&=ss?-1:mi(He,tD(ti),2,!1,void 0,fr),gr))return gr}}else if(Ui&134217728){if(Si&134217728){if(m===Kh)return Q2r(He,lt)?0:-1;Oa(He,V_)}if(tTe(He,lt))return-1}else if(lt.flags&268435456&&!(He.flags&268435456)&&eTe(He,lt))return-1;if(Si&8650752){if(!(Si&8388608&&Ui&8388608)){let ti=iN(He)||er;if(gr=mi(ti,lt,1,!1,void 0,fr))return gr;if(gr=mi(Yg(ti,He),lt,1,Nt&&ti!==er&&!(Ui&Si&262144),void 0,fr))return gr;if(zje(He)){let qo=iN(He.indexType);if(qo&&(gr=mi(ey(He.objectType,qo),lt,1,Nt)))return gr}}}else if(Si&4194304){let ti=gBe(He.type,He.indexFlags)&&ro(He.type)&32;if(gr=mi(Uo,lt,1,Nt&&!ti))return gr;if(ti){let qo=He.type,ss=HE(qo),rl=ss&&FM(qo)?by(ss,qo):ss||e0(qo);if(gr=mi(rl,lt,1,Nt))return gr}}else if(Si&134217728&&!(Ui&524288)){if(!(Ui&134217728)){let ti=Gf(He);if(ti&&ti!==He&&(gr=mi(ti,lt,1,Nt)))return gr}}else if(Si&268435456)if(Ui&268435456){if(He.symbol!==lt.symbol)return 0;if(gr=mi(He.type,lt.type,3,Nt))return gr}else{let ti=Gf(He);if(ti&&(gr=mi(ti,lt,1,Nt)))return gr}else if(Si&16777216){if(O7(He,Me,Xt,10))return 3;if(Ui&16777216){let ss=He.root.inferTypeParameters,rl=He.extendsType,Zr;if(ss){let Gi=gZ(ss,void 0,0,ha);lT(Gi.inferences,lt.extendsType,rl,1536),rl=Oa(rl,Gi.mapper),Zr=Gi.mapper}if(cT(rl,lt.extendsType)&&(mi(He.checkType,lt.checkType,3)||mi(lt.checkType,He.checkType,3))&&((gr=mi(Oa(eD(He),Zr),eD(lt),3,Nt))&&(gr&=mi(tD(He),tD(lt),3,Nt)),gr))return gr}let ti=Bje(He);if(ti&&(gr=mi(ti,lt,1,Nt)))return gr;let qo=!(Ui&16777216)&&mse(He)?I2t(He):void 0;if(qo&&(ho(jr),gr=mi(qo,lt,1,Nt)))return gr}else{if(m!==Rb&&m!==tp&&Ibr(lt)&&v2(He))return-1;if(Xh(lt))return Xh(He)&&(gr=vr(He,lt,Nt))?gr:0;let ti=!!(Si&402784252);if(m!==sm)He=nh(He),Si=He.flags;else if(Xh(He))return 0;if(ro(He)&4&&ro(lt)&4&&He.target===lt.target&&!Gc(He)&&!(jxe(He)||jxe(lt))){if(qxe(He))return-1;let qo=UBe(He.target);if(qo===j)return 1;let ss=bo(Bu(He),Bu(lt),qo,fr);if(ss!==void 0)return ss}else{if(Hq(lt)?bg(He,kw):L0(lt)&&bg(He,qo=>Gc(qo)&&!qo.target.readonly))return m!==sm?mi(vw(He,Ir)||at,vw(lt,Ir)||at,3,Nt):0;if(rD(He)&&Gc(lt)&&!rD(lt)){let qo=HS(He);if(qo!==He)return mi(qo,lt,1,Nt)}else if((m===Rb||m===tp)&&v2(lt)&&ro(lt)&8192&&!v2(He))return 0}if(Si&2621440&&Ui&524288){let qo=Nt&&se===jr.errorInfo&&!ti;if(gr=wc(He,lt,qo,void 0,!1,fr),gr&&(gr&=yu(He,lt,0,qo,fr),gr&&(gr&=yu(He,lt,1,qo,fr),gr&&(gr&=Xe(He,lt,ti,qo,fr)))),Gn&&gr)se=Jr||se||jr.errorInfo;else if(gr)return gr}if(Si&2621440&&Ui&1048576){let qo=Yq(lt,36175872);if(qo.flags&1048576){let ss=hn(He,qo);if(ss)return ss}}}return 0;function Io(ti){return ti?nl(ti,(qo,ss)=>qo+1+Io(ss.next),0):0}function bo(ti,qo,ss,rl){if(gr=uJ(ti,qo,ss,Nt,rl))return gr;if(Pt(ss,Gi=>!!(Gi&24))){Jr=void 0,ho(jr);return}let Zr=qo&&l2r(qo,ss);if(Gn=!Zr,ss!==j&&!Zr){if(Gn&&!(Nt&&Pt(ss,Gi=>(Gi&7)===0)))return 0;Jr=se,ho(jr)}}}function vr(He,lt,Nt){if(m===Kh||(m===sm?zb(He)===zb(lt):Bq(He)<=Bq(lt))){let jr,gr=e0(lt),Jr=Oa(e0(He),Bq(He)<0?Nu:V_);if(jr=mi(gr,Jr,3,Nt)){let Gn=ty([av(He)],[av(lt)]);if(Oa(HE(He),Gn)===Oa(HE(lt),Gn))return jr&mi(Oa(iT(He),Gn),iT(lt),3,Nt)}}return 0}function hn(He,lt){var Nt;let fr=$l(He),jr=Vkt(fr,lt);if(!jr)return 0;let gr=1;for(let bo of jr)if(gr*=EEr(Lv(bo)),gr>25)return(Nt=hi)==null||Nt.instant(hi.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:He.id,targetId:lt.id,numCombinations:gr}),0;let Jr=new Array(jr.length),Gn=new Set;for(let bo=0;bobo[ss],!1,0,be||m===Kh))continue e}Zc(Ui,qo,Ng),ti=!0}if(!ti)return 0}let Io=-1;for(let bo of Ui)if(Io&=wc(He,bo,!1,Gn,!1,0),Io&&(Io&=yu(He,bo,0,!1,0),Io&&(Io&=yu(He,bo,1,!1,0),Io&&!(Gc(He)&&Gc(bo))&&(Io&=Xe(He,bo,!1,!1,0)))),!Io)return Io;return Io}function Un(He,lt){if(!lt||He.length===0)return He;let Nt;for(let fr=0;fr5?qa(x.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,ri(He),ri(lt),Cr(gr.slice(0,4),Jr=>Ua(Jr)).join(", "),gr.length-4):qa(x.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,ri(He),ri(lt),Cr(gr,Jr=>Ua(Jr)).join(", ")),jr&&se&&fi++)}function wc(He,lt,Nt,fr,jr,gr){if(m===sm)return Nc(He,lt,fr);let Jr=-1;if(Gc(lt)){if(kw(He)){if(!lt.target.readonly&&(Hq(He)||Gc(He)&&He.target.readonly))return 0;let bo=ZE(He),ti=ZE(lt),qo=Gc(He)?He.target.combinedFlags&4:4,ss=!!(lt.target.combinedFlags&12),rl=Gc(He)?He.target.minLength:0,Zr=lt.target.minLength;if(!qo&&bo=Qa?ti-1-Math.min(od,Kc):ls,Mm=lt.target.elementFlags[Qf];if(Mm&8&&!(id&8))return Nt&&qa(x.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Qf),0;if(id&8&&!(Mm&12))return Nt&&qa(x.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,ls,Qf),0;if(Mm&1&&!(id&1))return Nt&&qa(x.Source_provides_no_match_for_required_element_at_position_0_in_target,Qf),0;if(kl&&((id&12||Mm&12)&&(kl=!1),kl&&fr?.has(""+ls)))continue;let kh=x2(Gi[ls],!!(id&Mm&2)),C2=ys[Qf],Ow=id&8&&Mm&4?um(C2):x2(C2,!!(Mm&2)),m6=mi(kh,Ow,3,Nt,void 0,gr);if(!m6)return Nt&&(ti>1||bo>1)&&(ss&&ls>=Qa&&od>=Kc&&Qa!==bo-Kc-1?Ps(x.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Qa,bo-Kc-1,Qf):Ps(x.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,ls,Qf)),0;Jr&=m6}return Jr}if(lt.target.combinedFlags&12)return 0}let Gn=(m===Rb||m===tp)&&!ek(He)&&!qxe(He)&&!Gc(He),Si=i$e(He,lt,Gn,!1);if(Si)return Nt&&Rd(He,lt)&&No(He,lt,Si,Gn),0;if(ek(lt)){for(let bo of Un($l(He),fr))if(!t6(lt,bo.escapedName)&&!(di(bo).flags&32768))return Nt&&qa(x.Property_0_does_not_exist_on_type_1,Ua(bo),ri(lt)),0}let Ui=$l(lt),Io=Gc(He)&&Gc(lt);for(let bo of Un(Ui,fr)){let ti=bo.escapedName;if(!(bo.flags&4194304)&&(!Io||$x(ti)||ti==="length")&&(!jr||bo.flags&16777216)){let qo=vc(He,ti);if(qo&&qo!==bo){let ss=Vi(He,lt,qo,bo,Lv,Nt,gr,m===Kh);if(!ss)return 0;Jr&=ss}}}return Jr}function Nc(He,lt,Nt){if(!(He.flags&524288&<.flags&524288))return 0;let fr=Un(KE(He),Nt),jr=Un(KE(lt),Nt);if(fr.length!==jr.length)return 0;let gr=-1;for(let Jr of fr){let Gn=t6(lt,Jr.escapedName);if(!Gn)return 0;let Si=qBe(Jr,Gn,mi);if(!Si)return 0;gr&=Si}return gr}function yu(He,lt,Nt,fr,jr){var gr,Jr;if(m===sm)return Nw(He,lt,Nt);if(lt===Ql||He===Ql)return-1;let Gn=He.symbol&&XS(He.symbol.valueDeclaration),Si=lt.symbol&&XS(lt.symbol.valueDeclaration),Ui=Gs(He,Gn&&Nt===1?0:Nt),Io=Gs(lt,Si&&Nt===1?0:Nt);if(Nt===1&&Ui.length&&Io.length){let rl=!!(Ui[0].flags&4),Zr=!!(Io[0].flags&4);if(rl&&!Zr)return fr&&qa(x.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Vr(Ui[0],Io[0],fr))return 0}let bo=-1,ti=Nt===1?Yh:Lm,qo=ro(He),ss=ro(lt);if(qo&64&&ss&64&&He.symbol===lt.symbol||qo&4&&ss&4&&He.target===lt.target){$.assertEqual(Ui.length,Io.length);for(let rl=0;rlHC(Qa,void 0,262144,Nt);return qa(x.Type_0_is_not_assignable_to_type_1,ys(Zr),ys(Gi)),qa(x.Types_of_construct_signatures_are_incompatible),bo}}else e:for(let rl of Io){let Zr=pa(),Gi=fr;for(let ys of Ui){let Qa=Pw(ys,rl,!0,Gi,jr,ti(ys,rl));if(Qa){bo&=Qa,ho(Zr);continue e}Gi=!1}return Gi&&qa(x.Type_0_provides_no_match_for_the_signature_1,ri(He),HC(rl,void 0,void 0,Nt)),0}return bo}function Rd(He,lt){let Nt=gse(He,0),fr=gse(He,1),jr=KE(He);return(Nt.length||fr.length)&&!jr.length?!!(Gs(lt,0).length&&Nt.length||Gs(lt,1).length&&fr.length):!0}function Lm(He,lt){return He.parameters.length===0&<.parameters.length===0?(Nt,fr)=>Ps(x.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ri(Nt),ri(fr)):(Nt,fr)=>Ps(x.Call_signature_return_types_0_and_1_are_incompatible,ri(Nt),ri(fr))}function Yh(He,lt){return He.parameters.length===0&<.parameters.length===0?(Nt,fr)=>Ps(x.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ri(Nt),ri(fr)):(Nt,fr)=>Ps(x.Construct_signature_return_types_0_and_1_are_incompatible,ri(Nt),ri(fr))}function Pw(He,lt,Nt,fr,jr,gr){let Jr=m===Rb?16:m===tp?24:0;return RBe(Nt?nZ(He):He,Nt?nZ(lt):lt,Jr,fr,qa,gr,Gn,V_);function Gn(Si,Ui,Io){return mi(Si,Ui,3,Io,void 0,jr)}}function Nw(He,lt,Nt){let fr=Gs(He,Nt),jr=Gs(lt,Nt);if(fr.length!==jr.length)return 0;let gr=-1;for(let Jr=0;JrSi.keyType===Mt),Gn=-1;for(let Si of gr){let Ui=m!==tp&&!Nt&&Jr&&Si.type.flags&1?-1:Xh(He)&&Jr?mi(iT(He),Si.type,3,fr):Te(He,Si,fr,jr);if(!Ui)return 0;Gn&=Ui}return Gn}function Te(He,lt,Nt,fr){let jr=YQ(He,lt.keyType);return jr?l2e(jr,lt,Nt,fr):!(fr&1)&&(m!==tp||ro(He)&8192)&&Kxe(He)?Ice(He,lt,Nt,fr):(Nt&&qa(x.Index_signature_for_type_0_is_missing_in_type_1,ri(lt.keyType),ri(He)),0)}function Lr(He,lt){let Nt=lm(He),fr=lm(lt);if(Nt.length!==fr.length)return 0;for(let jr of fr){let gr=oT(He,jr.keyType);if(!(gr&&mi(gr.type,jr.type,3)&&gr.isReadonly===jr.isReadonly))return 0}return-1}function Vr(He,lt,Nt){if(!He.declaration||!lt.declaration)return!0;let fr=QO(He.declaration,6),jr=QO(lt.declaration,6);return jr===2||jr===4&&fr!==2||jr!==4&&!fr?!0:(Nt&&qa(x.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,mw(fr),mw(jr)),!1)}}function jBe(o){if(o.flags&16)return!1;if(o.flags&3145728)return!!X(o.types,jBe);if(o.flags&465829888){let p=iN(o);if(p&&p!==o)return jBe(p)}return $v(o)||!!(o.flags&134217728)||!!(o.flags&268435456)}function mkt(o,p){return Gc(o)&&Gc(p)?j:$l(p).filter(m=>Mxe(en(o,m.escapedName),di(m)))}function Mxe(o,p){return!!o&&!!p&&s_(o,32768)&&!!mZ(p)}function s2r(o){return $l(o).filter(p=>mZ(di(p)))}function hkt(o,p,m=OBe){return Vwt(o,p,m)||I6r(o,p)||P6r(o,p)||N6r(o,p)||O6r(o,p)}function BBe(o,p,m){let v=o.types,E=v.map(R=>R.flags&402784252?0:-1);for(let[R,K]of p){let se=!1;for(let ce=0;ce!!m(Ue,fe))?se=!0:E[ce]=3)}for(let ce=0;ceE[K]),0):o;return D.flags&131072?o:D}function $Be(o){if(o.flags&524288){let p=jv(o);return p.callSignatures.length===0&&p.constructSignatures.length===0&&p.indexInfos.length===0&&p.properties.length>0&&ht(p.properties,m=>!!(m.flags&16777216))}return o.flags&33554432?$Be(o.baseType):o.flags&2097152?ht(o.types,$Be):!1}function c2r(o,p,m){for(let v of $l(o))if(bTe(p,v.escapedName,m))return!0;return!1}function UBe(o){return o===tl||o===Uc||o.objectFlags&8?Z:ykt(o.symbol,o.typeParameters)}function gkt(o){return ykt(o,io(o).typeParameters)}function ykt(o,p=j){var m,v;let E=io(o);if(!E.variances){(m=hi)==null||m.push(hi.Phase.CheckTypes,"getVariancesWorker",{arity:p.length,id:ff(Tu(o))});let D=N3,R=NE;N3||(N3=!0,NE=Hx.length),E.variances=j;let K=[];for(let se of p){let ce=zBe(se),fe=ce&16384?ce&8192?0:1:ce&8192?2:void 0;if(fe===void 0){let Ue=!1,Me=!1,yt=bs;bs=kr=>kr?Me=!0:Ue=!0;let Jt=Ose(o,se,Yu),Xt=Ose(o,se,Hp);fe=(tc(Xt,Jt)?1:0)|(tc(Jt,Xt)?2:0),fe===3&&tc(Ose(o,se,H),Jt)&&(fe=4),bs=yt,(Ue||Me)&&(Ue&&(fe|=8),Me&&(fe|=16))}K.push(fe)}D||(N3=!1,NE=R),E.variances=K,(v=hi)==null||v.pop({variances:K.map($.formatVariance)})}return E.variances}function Ose(o,p,m){let v=s6(p,m),E=Tu(o);if(si(E))return E;let D=o.flags&524288?MM(o,y2(io(o).typeParameters,v)):f2(E,y2(E.typeParameters,v));return Bt.add(ff(D)),D}function jxe(o){return Bt.has(ff(o))}function zBe(o){var p;return nl((p=o.symbol)==null?void 0:p.declarations,(m,v)=>m|tm(v),0)&28672}function l2r(o,p){for(let m=0;m!!(p.flags&262144)||Bxe(p))}function _2r(o,p,m,v){let E=[],D="",R=se(o,0),K=se(p,0);return`${D}${R},${K}${m}`;function se(ce,fe=0){let Ue=""+ce.target.id;for(let Me of Bu(ce)){if(Me.flags&262144){if(v||u2r(Me)){let yt=E.indexOf(Me);yt<0&&(yt=E.length,E.push(Me)),Ue+="="+yt;continue}D="*"}else if(fe<4&&Bxe(Me)){Ue+="<"+se(Me,fe+1)+">";continue}Ue+="-"+Me.id}return Ue}}function $xe(o,p,m,v,E){if(v===sm&&o.id>p.id){let R=o;o=p,p=R}let D=m?":"+m:"";return Bxe(o)&&Bxe(p)?_2r(o,p,D,E):`${o.id},${p.id}${D}`}function Fse(o,p){if(Fp(o)&6){for(let m of o.links.containingType.types){let v=vc(m,o.escapedName),E=v&&Fse(v,p);if(E)return E}return}return p(o)}function N7(o){return o.parent&&o.parent.flags&32?Tu(Od(o)):void 0}function Uxe(o){let p=N7(o),m=p&&ov(p)[0];return m&&en(m,o.escapedName)}function d2r(o,p){return Fse(o,m=>{let v=N7(m);return v?eo(v,p):!1})}function f2r(o,p){return!Fse(p,m=>S0(m)&4?!d2r(o,N7(m)):!1)}function vkt(o,p,m){return Fse(p,v=>S0(v,m)&4?!eo(o,N7(v)):!1)?void 0:o}function O7(o,p,m,v=3){if(m>=v){if((ro(o)&96)===96&&(o=Skt(o)),o.flags&2097152)return Pt(o.types,K=>O7(K,p,m,v));let E=zxe(o),D=0,R=0;for(let K=0;K=R&&(D++,D>=v))return!0;R=se.id}}}return!1}function Skt(o){let p;for(;(ro(o)&96)===96&&(p=yw(o))&&(p.symbol||p.flags&2097152&&Pt(p.types,m=>!!m.symbol));)o=p;return o}function bkt(o,p){return(ro(o)&96)===96&&(o=Skt(o)),o.flags&2097152?Pt(o.types,m=>bkt(m,p)):zxe(o)===p}function zxe(o){if(o.flags&524288&&!a$e(o)){if(ro(o)&4&&o.node)return o.node;if(o.symbol&&!(ro(o)&16&&o.symbol.flags&32))return o.symbol;if(Gc(o))return o.target}if(o.flags&262144)return o.symbol;if(o.flags&8388608){do o=o.objectType;while(o.flags&8388608);return o}return o.flags&16777216?o.root:o}function m2r(o,p){return qBe(o,p,uZ)!==0}function qBe(o,p,m){if(o===p)return-1;let v=S0(o)&6,E=S0(p)&6;if(v!==E)return 0;if(v){if(ZM(o)!==ZM(p))return 0}else if((o.flags&16777216)!==(p.flags&16777216))return 0;return Vv(o)!==Vv(p)?0:m(di(o),di(p))}function h2r(o,p,m){let v=xg(o),E=xg(p),D=Jv(o),R=Jv(p),K=Wb(o),se=Wb(p);return!!(v===E&&D===R&&K===se||m&&D<=R)}function Rse(o,p,m,v,E,D){if(o===p)return-1;if(!h2r(o,p,m)||te(o.typeParameters)!==te(p.typeParameters))return 0;if(p.typeParameters){let se=ty(o.typeParameters,p.typeParameters);for(let ce=0;cep|(m.flags&1048576?xkt(m.types):m.flags),0)}function v2r(o){if(o.length===1)return o[0];let p=be?Zo(o,v=>G_(v,E=>!(E.flags&98304))):o,m=y2r(p)?Do(p):S2r(p);return p===o?m:jse(m,xkt(o)&98304)}function S2r(o){let p=nl(o,(m,v)=>Gq(m,v)?v:m);return ht(o,m=>m===p||Gq(m,p))?p:nl(o,(m,v)=>c6(m,v)?v:m)}function b2r(o){return nl(o,(p,m)=>c6(m,p)?m:p)}function L0(o){return!!(ro(o)&4)&&(o.target===tl||o.target===Uc)}function Hq(o){return!!(ro(o)&4)&&o.target===Uc}function kw(o){return L0(o)||Gc(o)}function Lse(o){return L0(o)&&!Hq(o)||Gc(o)&&!o.target.readonly}function Mse(o){return L0(o)?Bu(o)[0]:void 0}function YE(o){return L0(o)||!(o.flags&98304)&&tc(o,Hg)}function JBe(o){return Lse(o)||!(o.flags&98305)&&tc(o,If)}function VBe(o){if(!(ro(o)&4)||!(ro(o.target)&3))return;if(ro(o)&33554432)return ro(o)&67108864?o.cachedEquivalentBaseType:void 0;o.objectFlags|=33554432;let p=o.target;if(ro(p)&1){let E=v1(p);if(E&&E.expression.kind!==80&&E.expression.kind!==212)return}let m=ov(p);if(m.length!==1||Ub(o.symbol).size)return;let v=te(p.typeParameters)?Oa(m[0],ty(p.typeParameters,Bu(o).slice(0,p.typeParameters.length))):m[0];return te(Bu(o))>te(p.typeParameters)&&(v=Yg(v,Sn(Bu(o)))),o.objectFlags|=67108864,o.cachedEquivalentBaseType=v}function Tkt(o){return be?o===cn:o===Y}function qxe(o){let p=Mse(o);return!!p&&Tkt(p)}function Kq(o){let p;return Gc(o)||!!vc(o,"0")||YE(o)&&!!(p=en(o,"length"))&&bg(p,m=>!!(m.flags&256))}function Jxe(o){return YE(o)||Kq(o)}function x2r(o,p){let m=en(o,""+p);if(m)return m;if(bg(o,Gc))return Dkt(o,p,Q.noUncheckedIndexedAccess?Ne:void 0)}function T2r(o){return!(o.flags&240544)}function $v(o){return!!(o.flags&109472)}function Ekt(o){let p=HS(o);return p.flags&2097152?Pt(p.types,$v):$v(p)}function E2r(o){return o.flags&2097152&&wt(o.types,$v)||o}function dZ(o){return o.flags&16?!0:o.flags&1048576?o.flags&1024?!0:ht(o.types,$v):$v(o)}function S2(o){return o.flags&1056?uxe(o):o.flags&402653312?Mt:o.flags&256?Ir:o.flags&2048?ii:o.flags&512?_r:o.flags&1048576?k2r(o):o}function k2r(o){let p=`B${ff(o)}`;return Sh(p)??h1(p,hp(o,S2))}function WBe(o){return o.flags&402653312?Mt:o.flags&288?Ir:o.flags&2048?ii:o.flags&512?_r:o.flags&1048576?hp(o,WBe):o}function Cw(o){return o.flags&1056&&a6(o)?uxe(o):o.flags&128&&a6(o)?Mt:o.flags&256&&a6(o)?Ir:o.flags&2048&&a6(o)?ii:o.flags&512&&a6(o)?_r:o.flags&1048576?hp(o,Cw):o}function kkt(o){return o.flags&8192?wr:o.flags&1048576?hp(o,kkt):o}function GBe(o,p){return LTe(o,p)||(o=kkt(Cw(o))),ih(o)}function C2r(o,p,m){if(o&&$v(o)){let v=p?m?LZ(p):p:void 0;o=GBe(o,v)}return o}function HBe(o,p,m,v){if(o&&$v(o)){let E=p?rk(m,p,v):void 0;o=GBe(o,E)}return o}function Gc(o){return!!(ro(o)&4&&o.target.objectFlags&8)}function rD(o){return Gc(o)&&!!(o.target.combinedFlags&8)}function Ckt(o){return rD(o)&&o.target.elementFlags.length===1}function Vxe(o){return Qq(o,o.target.fixedLength)}function Dkt(o,p,m){return hp(o,v=>{let E=v,D=Vxe(E);return D?m&&p>=_Be(E.target)?Do([D,m]):D:Ne})}function D2r(o){let p=Vxe(o);return p&&um(p)}function Qq(o,p,m=0,v=!1,E=!1){let D=ZE(o)-m;if(p(m&12)===(p.target.elementFlags[v]&12))}function Akt({value:o}){return o.base10Value==="0"}function wkt(o){return G_(o,p=>Uv(p,4194304))}function w2r(o){return hp(o,I2r)}function I2r(o){return o.flags&4?hM:o.flags&8?xq:o.flags&64?gM:o===zn||o===Rn||o.flags&114691||o.flags&128&&o.value===""||o.flags&256&&o.value===0||o.flags&2048&&Akt(o)?o:tn}function jse(o,p){let m=p&~o.flags&98304;return m===0?o:Do(m===32768?[o,Ne]:m===65536?[o,mr]:[o,Ne,mr])}function nD(o,p=!1){$.assert(be);let m=p?pe:Ne;return o===m||o.flags&1048576&&o.types[0]===m?o:Do([o,m])}function P2r(o){return Ym||(Ym=BM("NonNullable",524288,void 0)||ye),Ym!==ye?MM(Ym,[o]):Ac([o,kc])}function b2(o){return be?yN(o,2097152):o}function Ikt(o){return be?Do([o,Gt]):o}function Wxe(o){return be?nTe(o,Gt):o}function Gxe(o,p,m){return m?eU(p)?nD(o):Ikt(o):o}function fZ(o,p){return Bte(p)?b2(o):xm(p)?Wxe(o):o}function x2(o,p){return ze&&p?nTe(o,ot):o}function mZ(o){return o===ot||!!(o.flags&1048576)&&o.types[0]===ot}function Hxe(o){return ze?nTe(o,ot):M0(o,524288)}function N2r(o,p){return(o.flags&524)!==0&&(p.flags&28)!==0}function Kxe(o){let p=ro(o);return o.flags&2097152?ht(o.types,Kxe):!!(o.symbol&&(o.symbol.flags&7040)!==0&&!(o.symbol.flags&32)&&!t2e(o))||!!(p&4194304)||!!(p&1024&&Kxe(o.source))}function mN(o,p){let m=zc(o.flags,o.escapedName,Fp(o)&8);m.declarations=o.declarations,m.parent=o.parent,m.links.type=p,m.links.target=o,o.valueDeclaration&&(m.valueDeclaration=o.valueDeclaration);let v=io(o).nameType;return v&&(m.links.nameType=v),m}function O2r(o,p){let m=ic();for(let v of KE(o)){let E=di(v),D=p(E);m.set(v.escapedName,D===E?v:mN(v,D))}return m}function hZ(o){if(!(ek(o)&&ro(o)&8192))return o;let p=o.regularType;if(p)return p;let m=o,v=O2r(o,hZ),E=mp(m.symbol,v,m.callSignatures,m.constructSignatures,m.indexInfos);return E.flags=m.flags,E.objectFlags|=m.objectFlags&-8193,o.regularType=E,E}function Pkt(o,p,m){return{parent:o,propertyName:p,siblings:m,resolvedProperties:void 0}}function Nkt(o){if(!o.siblings){let p=[];for(let m of Nkt(o.parent))if(ek(m)){let v=t6(m,o.propertyName);v&&vN(di(v),E=>{p.push(E)})}o.siblings=p}return o.siblings}function F2r(o){if(!o.resolvedProperties){let p=new Map;for(let m of Nkt(o))if(ek(m)&&!(ro(m)&2097152))for(let v of $l(m))p.set(v.escapedName,v);o.resolvedProperties=so(p.values())}return o.resolvedProperties}function R2r(o,p){if(!(o.flags&4))return o;let m=di(o),v=p&&Pkt(p,o.escapedName,void 0),E=KBe(m,v);return E===m?o:mN(o,E)}function L2r(o){let p=Ee.get(o.escapedName);if(p)return p;let m=mN(o,pe);return m.flags|=16777216,Ee.set(o.escapedName,m),m}function M2r(o,p){let m=ic();for(let E of KE(o))m.set(E.escapedName,R2r(E,p));if(p)for(let E of F2r(p))m.has(E.escapedName)||m.set(E.escapedName,L2r(E));let v=mp(o.symbol,m,j,j,Zo(lm(o),E=>aT(E.keyType,ry(E.type),E.isReadonly,E.declaration,E.components)));return v.objectFlags|=ro(o)&266240,v}function ry(o){return KBe(o,void 0)}function KBe(o,p){if(ro(o)&196608){if(p===void 0&&o.widened)return o.widened;let m;if(o.flags&98305)m=at;else if(ek(o))m=M2r(o,p);else if(o.flags&1048576){let v=p||Pkt(void 0,void 0,o.types),E=Zo(o.types,D=>D.flags&98304?D:KBe(D,v));m=Do(E,Pt(E,v2)?2:1)}else o.flags&2097152?m=Ac(Zo(o.types,ry)):kw(o)&&(m=f2(o.target,Zo(Bu(o),ry)));return m&&p===void 0&&(o.widened=m),m||o}return o}function Qxe(o){var p;let m=!1;if(ro(o)&65536){if(o.flags&1048576)if(Pt(o.types,v2))m=!0;else for(let v of o.types)m||(m=Qxe(v));else if(kw(o))for(let v of Bu(o))m||(m=Qxe(v));else if(ek(o))for(let v of KE(o)){let E=di(v);if(ro(E)&65536&&(m=Qxe(E),!m)){let D=(p=v.declarations)==null?void 0:p.find(R=>{var K;return((K=R.symbol.valueDeclaration)==null?void 0:K.parent)===o.symbol.valueDeclaration});D&&(gt(D,x.Object_literal_s_property_0_implicitly_has_an_1_type,Ua(v),ri(ry(E))),m=!0)}}}return m}function Dw(o,p,m){let v=ri(ry(p));if(Ei(o)&&!WU(Pn(o),Q))return;let E;switch(o.kind){case 227:case 173:case 172:E=Fe?x.Member_0_implicitly_has_an_1_type:x.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 170:let D=o;if(ct(D.name)){let R=aA(D.name);if((hF(D.parent)||G1(D.parent)||Cb(D.parent))&&D.parent.parameters.includes(D)&&($t(D,D.name.escapedText,788968,void 0,!0)||R&&Fhe(R))){let K="arg"+D.parent.parameters.indexOf(D),se=du(D.name)+(D.dotDotDotToken?"[]":"");Y1(Fe,o,x.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,K,se);return}}E=o.dotDotDotToken?Fe?x.Rest_parameter_0_implicitly_has_an_any_type:x.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Fe?x.Parameter_0_implicitly_has_an_1_type:x.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 209:if(E=x.Binding_element_0_implicitly_has_an_1_type,!Fe)return;break;case 318:gt(o,x.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,v);return;case 324:Fe&&EL(o.parent)&>(o.parent.tagName,x.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,v);return;case 263:case 175:case 174:case 178:case 179:case 219:case 220:if(Fe&&!o.name){m===3?gt(o,x.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation,v):gt(o,x.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,v);return}E=Fe?m===3?x._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:x._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:x._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 201:Fe&>(o,x.Mapped_object_type_implicitly_has_an_any_template_type);return;default:E=Fe?x.Variable_0_implicitly_has_an_1_type:x.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Y1(Fe,o,E,du(cs(o)),v)}function j2r(o,p){let m=hTe(o);if(!m)return!0;let v=Tl(m),E=A_(o);switch(p){case 1:return E&1?v=rk(1,v,!!(E&2))??v:E&2&&(v=E2(v)??v),xw(v);case 3:let D=rk(0,v,!!(E&2));return!!D&&xw(D);case 2:let R=rk(2,v,!!(E&2));return!!R&&xw(R)}return!1}function Zxe(o,p,m){a(()=>{Fe&&ro(p)&65536&&(!m||lu(o)&&j2r(o,m))&&(Qxe(p)||Dw(o,p,m))})}function QBe(o,p,m){let v=xg(o),E=xg(p),D=wZ(o),R=wZ(p),K=R?E-1:E,se=D?K:Math.min(v,K),ce=Sw(o);if(ce){let fe=Sw(p);fe&&m(ce,fe)}for(let fe=0;fep.typeParameter),Cr(o.inferences,(p,m)=>()=>(p.isFixed||(U2r(o),Xxe(o.inferences),p.isFixed=!0),s$e(o,m))))}function $2r(o){return ABe(Cr(o.inferences,p=>p.typeParameter),Cr(o.inferences,(p,m)=>()=>s$e(o,m)))}function Xxe(o){for(let p of o)p.isFixed||(p.inferredType=void 0)}function YBe(o,p,m){(o.intraExpressionInferenceSites??(o.intraExpressionInferenceSites=[])).push({node:p,type:m})}function U2r(o){if(o.intraExpressionInferenceSites){for(let{node:p,type:m}of o.intraExpressionInferenceSites){let v=p.kind===175?jCt(p,2):Eh(p,2);v&&lT(o.inferences,m,v)}o.intraExpressionInferenceSites=void 0}}function e$e(o){return{typeParameter:o,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Fkt(o){return{typeParameter:o.typeParameter,candidates:o.candidates&&o.candidates.slice(),contraCandidates:o.contraCandidates&&o.contraCandidates.slice(),inferredType:o.inferredType,priority:o.priority,topLevel:o.topLevel,isFixed:o.isFixed,impliedArity:o.impliedArity}}function z2r(o){let p=yr(o.inferences,QM);return p.length?XBe(Cr(p,Fkt),o.signature,o.flags,o.compareTypes):void 0}function t$e(o){return o&&o.mapper}function iD(o){let p=ro(o);if(p&524288)return!!(p&1048576);let m=!!(o.flags&465829888||o.flags&524288&&!Rkt(o)&&(p&4&&(o.node||Pt(Bu(o),iD))||p&16&&o.symbol&&o.symbol.flags&14384&&o.symbol.declarations||p&12583968)||o.flags&3145728&&!(o.flags&1024)&&!Rkt(o)&&Pt(o.types,iD));return o.flags&3899393&&(o.objectFlags|=524288|(m?1048576:0)),m}function Rkt(o){if(o.aliasSymbol&&!o.aliasTypeArguments){let p=Qu(o.aliasSymbol,266);return!!(p&&fn(p.parent,m=>m.kind===308?!0:m.kind===268?!1:"quit"))}return!1}function yZ(o,p,m=0){return!!(o===p||o.flags&3145728&&Pt(o.types,v=>yZ(v,p,m))||m<3&&o.flags&16777216&&(yZ(eD(o),p,m+1)||yZ(tD(o),p,m+1)))}function q2r(o,p){let m=F0(o);return m?!!m.type&&yZ(m.type,p):yZ(Tl(o),p)}function J2r(o){let p=ic();vN(o,v=>{if(!(v.flags&128))return;let E=dp(v.value),D=zc(4,E);D.links.type=at,v.symbol&&(D.declarations=v.symbol.declarations,D.valueDeclaration=v.symbol.valueDeclaration),p.set(E,D)});let m=o.flags&4?[aT(Mt,kc,!1)]:j;return mp(void 0,p,j,j,m)}function Lkt(o,p,m){let v=o.id+","+p.id+","+m.id;if(Wf.has(v))return Wf.get(v);let E=V2r(o,p,m);return Wf.set(v,E),E}function r$e(o){return!(ro(o)&262144)||ek(o)&&Pt($l(o),p=>r$e(di(p)))||Gc(o)&&Pt(i6(o),r$e)}function V2r(o,p,m){if(!(oT(o,Mt)||$l(o).length!==0&&r$e(o)))return;if(L0(o)){let E=Yxe(Bu(o)[0],p,m);return E?um(E,Hq(o)):void 0}if(Gc(o)){let E=Cr(i6(o),R=>Yxe(R,p,m));if(!ht(E,R=>!!R))return;let D=zb(p)&4?Zo(o.target.elementFlags,R=>R&2?1:R):o.target.elementFlags;return Jb(E,D,o.target.readonly,o.target.labeledElementDeclarations)}let v=F_(1040,void 0);return v.source=o,v.mappedType=p,v.constraintType=m,v}function W2r(o){let p=io(o);return p.type||(p.type=Yxe(o.links.propertyType,o.links.mappedType,o.links.constraintType)||er),p.type}function G2r(o,p,m){let v=ey(m.type,av(p)),E=iT(p),D=e$e(v);return lT([D],o,E),Mkt(D)||er}function Yxe(o,p,m){let v=o.id+","+p.id+","+m.id;if(Gg.has(v))return Gg.get(v)||er;ZA.push(o),R3.push(p);let E=XA;O7(o,ZA,ZA.length,2)&&(XA|=1),O7(p,R3,R3.length,2)&&(XA|=2);let D;return XA!==3&&(D=G2r(o,p,m)),ZA.pop(),R3.pop(),XA=E,Gg.set(v,D),D}function*n$e(o,p,m,v){let E=$l(p);for(let D of E)if(!f2t(D)&&(m||!(D.flags&16777216||Fp(D)&48))){let R=vc(o,D.escapedName);if(!R)yield D;else if(v){let K=di(D);if(K.flags&109472){let se=di(R);se.flags&1||ih(se)===ih(K)||(yield D)}}}}function i$e(o,p,m,v){return ia(n$e(o,p,m,v))}function H2r(o,p){return!(p.target.combinedFlags&8)&&p.target.minLength>o.target.minLength||!(p.target.combinedFlags&12)&&(!!(o.target.combinedFlags&12)||p.target.fixedLengthw7(D,E),o)===o&&eTe(o,p)}return!1}function $kt(o,p){if(p.flags&2097152)return ht(p.types,m=>m===sc||$kt(o,m));if(p.flags&4||tc(o,p))return!0;if(o.flags&128){let m=o.value;return!!(p.flags&8&&Bkt(m,!1)||p.flags&64&&bne(m,!1)||p.flags&98816&&m===p.intrinsicName||p.flags&268435456&&eTe(o,p)||p.flags&134217728&&tTe(o,p))}if(o.flags&134217728){let m=o.texts;return m.length===2&&m[0]===""&&m[1]===""&&tc(o.types[0],p)}return!1}function Ukt(o,p){return o.flags&128?zkt([o.value],j,p):o.flags&134217728?__(o.texts,p.texts)?Cr(o.types,(m,v)=>tc(HS(m),HS(p.types[v]))?m:X2r(m)):zkt(o.texts,o.types,p):void 0}function tTe(o,p){let m=Ukt(o,p);return!!m&&ht(m,(v,E)=>$kt(v,p.types[E]))}function X2r(o){return o.flags&402653317?o:cN(["",""],[o])}function zkt(o,p,m){let v=o.length-1,E=o[0],D=o[v],R=m.texts,K=R.length-1,se=R[0],ce=R[K];if(v===0&&E.length0){let Hn=Me,fi=yt;for(;fi=Jt(Hn).indexOf(on,fi),!(fi>=0);){if(Hn++,Hn===o.length)return;fi=0}Xt(Hn,fi),yt+=on.length}else if(yt!un(mi,Rl)):Mn,fs?yr(ei,Rl=>!un(fs,Rl)):ei]}function Hn(Mn,ei,ha){let mi=Mn.length!!rn(fs));if(!mi||ei&&mi!==ei)return;ei=mi}return ei}function wo(Mn,ei,ha){let mi=0;if(ha&1048576){let fs,Rl=Mn.flags&1048576?Mn.types:[Mn],$u=new Array(Rl.length),hf=!1;for(let Hc of ei)if(rn(Hc))fs=Hc,mi++;else for(let y_=0;y_$u[R_]?void 0:y_);if(Hc.length){Me(Do(Hc),fs);return}}}else for(let fs of ei)rn(fs)?mi++:Me(Mn,fs);if(ha&2097152?mi===1:mi>0)for(let fs of ei)rn(fs)&&yt(Mn,fs,1)}function Fa(Mn,ei,ha){if(ha.flags&1048576||ha.flags&2097152){let mi=!1;for(let fs of ha.types)mi=Fa(Mn,ei,fs)||mi;return mi}if(ha.flags&4194304){let mi=rn(ha.type);if(mi&&!mi.isFixed&&!jkt(Mn)){let fs=Lkt(Mn,ei,ha);fs&&yt(fs,mi.typeParameter,ro(Mn)&262144?16:8)}return!0}if(ha.flags&262144){yt(KS(Mn,Mn.pattern?2:0),ha,32);let mi=iN(ha);if(mi&&Fa(Mn,ei,mi))return!0;let fs=Cr($l(Mn),di),Rl=Cr(lm(Mn),$u=>$u!==ua?$u.type:tn);return Me(Do(go(fs,Rl)),iT(ei)),!0}return!1}function ho(Mn,ei){if(Mn.flags&16777216)Me(Mn.checkType,ei.checkType),Me(Mn.extendsType,ei.extendsType),Me(eD(Mn),eD(ei)),Me(tD(Mn),tD(ei));else{let ha=[eD(ei),tD(ei)];Xt(Mn,ha,ei.flags,E?64:0)}}function pa(Mn,ei){let ha=Ukt(Mn,ei),mi=ei.types;if(ha||ht(ei.texts,fs=>fs.length===0))for(let fs=0;fsUl|n0.flags,0);if(!(R_&4)){let Ul=Rl.value;R_&296&&!Bkt(Ul,!0)&&(R_&=-297),R_&2112&&!bne(Ul,!0)&&(R_&=-2113);let n0=nl(y_,(gp,c_)=>c_.flags&R_?gp.flags&4?gp:c_.flags&4?Rl:gp.flags&134217728?gp:c_.flags&134217728&&tTe(Rl,c_)?Rl:gp.flags&268435456?gp:c_.flags&268435456&&Ul===REt(c_.symbol,Ul)?Rl:gp.flags&128?gp:c_.flags&128&&c_.value===Ul?c_:gp.flags&8?gp:c_.flags&8?Bv(+Ul):gp.flags&32?gp:c_.flags&32?Bv(+Ul):gp.flags&256?gp:c_.flags&256&&c_.value===+Ul?c_:gp.flags&64?gp:c_.flags&64?Z2r(Ul):gp.flags&2048?gp:c_.flags&2048&&fP(c_.value)===Ul?c_:gp.flags&16?gp:c_.flags&16?Ul==="true"?Rt:Ul==="false"?Rn:_r:gp.flags&512?gp:c_.flags&512&&c_.intrinsicName===Ul?c_:gp.flags&32768?gp:c_.flags&32768&&c_.intrinsicName===Ul?c_:gp.flags&65536?gp:c_.flags&65536&&c_.intrinsicName===Ul?c_:gp:gp,tn);if(!(n0.flags&131072)){Me(n0,$u);continue}}}}Me(Rl,$u)}}function Ps(Mn,ei){Me(e0(Mn),e0(ei)),Me(iT(Mn),iT(ei));let ha=HE(Mn),mi=HE(ei);ha&&mi&&Me(ha,mi)}function El(Mn,ei){var ha,mi;if(ro(Mn)&4&&ro(ei)&4&&(Mn.target===ei.target||L0(Mn)&&L0(ei))){Hn(Bu(Mn),Bu(ei),UBe(Mn.target));return}if(Xh(Mn)&&Xh(ei)&&Ps(Mn,ei),ro(ei)&32&&!ei.declaration.nameType){let fs=e0(ei);if(Fa(Mn,ei,fs))return}if(!K2r(Mn,ei)){if(kw(Mn)){if(Gc(ei)){let fs=ZE(Mn),Rl=ZE(ei),$u=Bu(ei),hf=ei.target.elementFlags;if(Gc(Mn)&&A2r(Mn,ei)){for(let R_=0;R_0){let Rl=Gs(ei,ha),$u=Rl.length;for(let hf=0;hf<$u;hf++){let Hc=Math.max(fs-$u+hf,0);Zp(rxr(mi[Hc]),nZ(Rl[hf]))}}}function Zp(Mn,ei){if(!(Mn.flags&64)){let ha=D,mi=ei.declaration?ei.declaration.kind:0;D=D||mi===175||mi===174||mi===177,QBe(Mn,ei,sn),D=ha}ZBe(Mn,ei,Me)}function Rm(Mn,ei){let ha=ro(Mn)&ro(ei)&32?8:0,mi=lm(ei);if(Kxe(Mn))for(let fs of mi){let Rl=[];for(let $u of $l(Mn))if(C7(A7($u,8576),fs.keyType)){let hf=di($u);Rl.push($u.flags&16777216?Hxe(hf):hf)}for(let $u of lm(Mn))C7($u.keyType,fs.keyType)&&Rl.push($u.type);Rl.length&&yt(Do(Rl),fs.type,ha)}for(let fs of mi){let Rl=YQ(Mn,fs.keyType);Rl&&yt(Rl.type,fs.type,ha)}}}function Y2r(o,p){return p===ot?o===p:cT(o,p)||!!(p.flags&4&&o.flags&128||p.flags&8&&o.flags&256)}function eEr(o,p){return!!(o.flags&524288&&p.flags&524288&&o.symbol&&o.symbol===p.symbol||o.aliasSymbol&&o.aliasTypeArguments&&o.aliasSymbol===p.aliasSymbol)}function tEr(o){let p=Th(o);return!!p&&s_(p.flags&16777216?Bje(p):p,406978556)}function ek(o){return!!(ro(o)&128)}function a$e(o){return!!(ro(o)&16512)}function rEr(o){if(o.length>1){let p=yr(o,a$e);if(p.length){let m=Do(p,2);return go(yr(o,v=>!a$e(v)),[m])}}return o}function nEr(o){return o.priority&416?Ac(o.contraCandidates):b2r(o.contraCandidates)}function iEr(o,p){let m=rEr(o.candidates),v=tEr(o.typeParameter)||oN(o.typeParameter),E=!v&&o.topLevel&&(o.isFixed||!q2r(p,o.typeParameter)),D=v?Zo(m,ih):E?Zo(m,Cw):m,R=o.priority&416?Do(D,2):v2r(D);return ry(R)}function s$e(o,p){let m=o.inferences[p];if(!m.inferredType){let v,E;if(o.signature){let R=m.candidates?iEr(m,o.signature):void 0,K=m.contraCandidates?nEr(m):void 0;if(R||K){let se=R&&(!K||!(R.flags&131073)&&Pt(m.contraCandidates,ce=>tc(R,ce))&&ht(o.inferences,ce=>ce!==m&&Th(ce.typeParameter)!==m.typeParameter||ht(ce.candidates,fe=>tc(fe,R))));v=se?R:K,E=se?K:R}else if(o.flags&1)v=lr;else{let se=r6(m.typeParameter);se&&(v=Oa(se,ekt(PTr(o,p),o.nonFixingMapper)))}}else v=Mkt(m);m.inferredType=v||c$e(!!(o.flags&2));let D=Th(m.typeParameter);if(D){let R=Oa(D,o.nonFixingMapper);(!v||!o.compareTypes(v,Yg(R,v)))&&(m.inferredType=E&&o.compareTypes(E,Yg(R,E))?E:R)}kkr()}return m.inferredType}function c$e(o){return o?at:er}function l$e(o){let p=[];for(let m=0;mAf(p)||s1(p)||fh(p)))}function Bse(o,p,m,v){switch(o.kind){case 80:if(!lP(o)){let R=Fm(o);return R!==ye?`${v?hl(v):"-1"}|${ff(p)}|${ff(m)}|${hc(R)}`:void 0}case 110:return`0|${v?hl(v):"-1"}|${ff(p)}|${ff(m)}`;case 236:case 218:return Bse(o.expression,p,m,v);case 167:let E=Bse(o.left,p,m,v);return E&&`${E}.${o.right.escapedText}`;case 212:case 213:let D=hN(o);if(D!==void 0){let R=Bse(o.expression,p,m,v);return R&&`${R}.${D}`}if(mu(o)&&ct(o.argumentExpression)){let R=Fm(o.argumentExpression);if(F7(R)||bZ(R)&&!SZ(R)){let K=Bse(o.expression,p,m,v);return K&&`${K}.@${hc(R)}`}}break;case 207:case 208:case 263:case 219:case 220:case 175:return`${hl(o)}#${ff(p)}`}}function Ff(o,p){switch(p.kind){case 218:case 236:return Ff(o,p.expression);case 227:return of(p)&&Ff(o,p.left)||wi(p)&&p.operatorToken.kind===28&&Ff(o,p.right)}switch(o.kind){case 237:return p.kind===237&&o.keywordToken===p.keywordToken&&o.name.escapedText===p.name.escapedText;case 80:case 81:return lP(o)?p.kind===110:p.kind===80&&Fm(o)===Fm(p)||(Oo(p)||Vc(p))&&Wt(Fm(o))===$i(p);case 110:return p.kind===110;case 108:return p.kind===108;case 236:case 218:case 239:return Ff(o.expression,p);case 212:case 213:let m=hN(o);if(m!==void 0){let v=wu(p)?hN(p):void 0;if(v!==void 0)return v===m&&Ff(o.expression,p.expression)}if(mu(o)&&mu(p)&&ct(o.argumentExpression)&&ct(p.argumentExpression)){let v=Fm(o.argumentExpression);if(v===Fm(p.argumentExpression)&&(F7(v)||bZ(v)&&!SZ(v)))return Ff(o.expression,p.expression)}break;case 167:return wu(p)&&o.right.escapedText===hN(p)&&Ff(o.left,p.expression);case 227:return wi(o)&&o.operatorToken.kind===28&&Ff(o.right,p)}return!1}function hN(o){if(no(o))return o.name.escapedText;if(mu(o))return oEr(o);if(Vc(o)){let p=JE(o);return p?dp(p):void 0}if(wa(o))return""+o.parent.parameters.indexOf(o)}function p$e(o){return o.flags&8192?o.escapedName:o.flags&384?dp(""+o.value):void 0}function oEr(o){return jy(o.argumentExpression)?dp(o.argumentExpression.text):ru(o.argumentExpression)?aEr(o.argumentExpression):void 0}function aEr(o){let p=jp(o,111551,!0);if(!p||!(F7(p)||p.flags&8))return;let m=p.valueDeclaration;if(m===void 0)return;let v=ZC(m);if(v){let E=p$e(v);if(E!==void 0)return E}if(j4(m)&&l2(m,o)){let E=jG(m);if(E){let D=$s(m.parent)?tT(m):Kf(E);return D&&p$e(D)}if(GT(m))return UO(m.name)}}function Jkt(o,p){for(;wu(o);)if(o=o.expression,Ff(o,p))return!0;return!1}function gN(o,p){for(;xm(o);)if(o=o.expression,Ff(o,p))return!0;return!1}function Zq(o,p){if(o&&o.flags&1048576){let m=M2t(o,p);if(m&&Fp(m)&2)return m.links.isDiscriminantProperty===void 0&&(m.links.isDiscriminantProperty=(m.links.checkFlags&192)===192&&!xw(di(m))),!!m.links.isDiscriminantProperty}return!1}function Vkt(o,p){let m;for(let v of o)if(Zq(p,v.escapedName)){if(m){m.push(v);continue}m=[v]}return m}function sEr(o,p){let m=new Map,v=0;for(let E of o)if(E.flags&61603840){let D=en(E,p);if(D){if(!dZ(D))return;let R=!1;vN(D,K=>{let se=ff(ih(K)),ce=m.get(se);ce?ce!==er&&(m.set(se,er),R=!0):m.set(se,E)}),R||v++}}return v>=10&&v*2>=o.length?m:void 0}function $se(o){let p=o.types;if(!(p.length<10||ro(o)&32768||Lo(p,m=>!!(m.flags&59506688))<10)){if(o.keyPropertyName===void 0){let m=X(p,E=>E.flags&59506688?X($l(E),D=>$v(di(D))?D.escapedName:void 0):void 0),v=m&&sEr(p,m);o.keyPropertyName=v?m:"",o.constituentMap=v}return o.keyPropertyName.length?o.keyPropertyName:void 0}}function Use(o,p){var m;let v=(m=o.constituentMap)==null?void 0:m.get(ff(ih(p)));return v!==er?v:void 0}function Wkt(o,p){let m=$se(o),v=m&&en(p,m);return v&&Use(o,v)}function cEr(o,p){let m=$se(o),v=m&&wt(p.properties,D=>D.symbol&&D.kind===304&&D.symbol.escapedName===m&&Qse(D.initializer)),E=v&&hce(v.initializer);return E&&Use(o,E)}function Gkt(o,p){return Ff(o,p)||Jkt(o,p)}function Hkt(o,p){if(o.arguments){for(let m of o.arguments)if(Gkt(p,m)||gN(m,p))return!0}return!!(o.expression.kind===212&&Gkt(p,o.expression.expression))}function _$e(o){return o.id<=0&&(o.id=s_t,s_t++),o.id}function lEr(o,p){if(!(o.flags&1048576))return tc(o,p);for(let m of o.types)if(tc(m,p))return!0;return!1}function uEr(o,p){if(o===p)return o;if(p.flags&131072)return p;let m=`A${ff(o)},${ff(p)}`;return Sh(m)??h1(m,pEr(o,p))}function pEr(o,p){let m=G_(o,E=>lEr(p,E)),v=p.flags&512&&a6(p)?hp(m,P7):m;return tc(p,v)?v:o}function d$e(o){if(ro(o)&256)return!1;let p=jv(o);return!!(p.callSignatures.length||p.constructSignatures.length||p.members.get("bind")&&c6(o,Vn))}function zM(o,p){return f$e(o,p)&p}function Uv(o,p){return zM(o,p)!==0}function f$e(o,p){o.flags&467927040&&(o=Gf(o)||er);let m=o.flags;if(m&268435460)return be?16317953:16776705;if(m&134217856){let v=m&128&&o.value==="";return be?v?12123649:7929345:v?12582401:16776705}if(m&40)return be?16317698:16776450;if(m&256){let v=o.value===0;return be?v?12123394:7929090:v?12582146:16776450}if(m&64)return be?16317188:16775940;if(m&2048){let v=Akt(o);return be?v?12122884:7928580:v?12581636:16775940}return m&16?be?16316168:16774920:m&528?be?o===Rn||o===zn?12121864:7927560:o===Rn||o===zn?12580616:16774920:m&524288?(p&(be?83427327:83886079))===0?0:ro(o)&16&&v2(o)?be?83427327:83886079:d$e(o)?be?7880640:16728e3:be?7888800:16736160:m&16384?9830144:m&32768?26607360:m&65536?42917664:m&12288?be?7925520:16772880:m&67108864?be?7888800:16736160:m&131072?0:m&1048576?nl(o.types,(v,E)=>v|f$e(E,p),0):m&2097152?_Er(o,p):83886079}function _Er(o,p){let m=s_(o,402784252),v=0,E=134217727;for(let D of o.types)if(!(m&&D.flags&524288)){let R=f$e(D,p);v|=R,E&=R}return v&8256|E&134209471}function M0(o,p){return G_(o,m=>Uv(m,p))}function yN(o,p){let m=m$e(M0(be&&o.flags&2?Yc:o,p));if(be)switch(p){case 524288:return Kkt(m,65536,131072,33554432,mr);case 1048576:return Kkt(m,131072,65536,16777216,Ne);case 2097152:case 4194304:return hp(m,v=>Uv(v,262144)?P2r(v):v)}return m}function Kkt(o,p,m,v,E){let D=zM(o,50528256);if(!(D&p))return o;let R=Do([kc,E]);return hp(o,K=>Uv(K,p)?Ac([K,!(D&v)&&Uv(K,m)?R:kc]):K)}function m$e(o){return o===Yc?er:o}function h$e(o,p){return p?Do([Zl(o),Kf(p)]):o}function Qkt(o,p){var m;let v=m2(p);if(!b0(v))return Et;let E=x0(v);return en(o,E)||vZ((m=D7(o,E))==null?void 0:m.type)||Et}function Zkt(o,p){return bg(o,Kq)&&x2r(o,p)||vZ(tk(65,o,Ne,void 0))||Et}function vZ(o){return o&&(Q.noUncheckedIndexedAccess?Do([o,ot]):o)}function Xkt(o){return um(tk(65,o,Ne,void 0)||Et)}function dEr(o){return o.parent.kind===210&&g$e(o.parent)||o.parent.kind===304&&g$e(o.parent.parent)?h$e(zse(o),o.right):Kf(o.right)}function g$e(o){return o.parent.kind===227&&o.parent.left===o||o.parent.kind===251&&o.parent.initializer===o}function fEr(o,p){return Zkt(zse(o),o.elements.indexOf(p))}function mEr(o){return Xkt(zse(o.parent))}function Ykt(o){return Qkt(zse(o.parent),o.name)}function hEr(o){return h$e(Ykt(o),o.objectAssignmentInitializer)}function zse(o){let{parent:p}=o;switch(p.kind){case 250:return Mt;case 251:return Tce(p)||Et;case 227:return dEr(p);case 221:return Ne;case 210:return fEr(p,o);case 231:return mEr(p);case 304:return Ykt(p);case 305:return hEr(p)}return Et}function gEr(o){let p=o.parent,m=tCt(p.parent),v=p.kind===207?Qkt(m,o.propertyName||o.name):o.dotDotDotToken?Xkt(m):Zkt(m,p.elements.indexOf(o));return h$e(v,o.initializer)}function eCt(o){return Ki(o).resolvedType||Kf(o)}function yEr(o){return o.initializer?eCt(o.initializer):o.parent.parent.kind===250?Mt:o.parent.parent.kind===251&&Tce(o.parent.parent)||Et}function tCt(o){return o.kind===261?yEr(o):gEr(o)}function vEr(o){return o.kind===261&&o.initializer&&WE(o.initializer)||o.kind!==209&&o.parent.kind===227&&WE(o.parent.right)}function u6(o){switch(o.kind){case 218:return u6(o.expression);case 227:switch(o.operatorToken.kind){case 64:case 76:case 77:case 78:return u6(o.left);case 28:return u6(o.right)}}return o}function rCt(o){let{parent:p}=o;return p.kind===218||p.kind===227&&p.operatorToken.kind===64&&p.left===o||p.kind===227&&p.operatorToken.kind===28&&p.right===o?rCt(p):o}function SEr(o){return o.kind===297?ih(Kf(o.expression)):tn}function rTe(o){let p=Ki(o);if(!p.switchTypes){p.switchTypes=[];for(let m of o.caseBlock.clauses)p.switchTypes.push(SEr(m))}return p.switchTypes}function nCt(o){if(Pt(o.caseBlock.clauses,m=>m.kind===297&&!Sl(m.expression)))return;let p=[];for(let m of o.caseBlock.clauses){let v=m.kind===297?m.expression.text:void 0;p.push(v&&!un(p,v)?v:void 0)}return p}function bEr(o,p){return o.flags&1048576?!X(o.types,m=>!un(p,m)):un(p,o)}function Xq(o,p){return!!(o===p||o.flags&131072||p.flags&1048576&&xEr(o,p))}function xEr(o,p){if(o.flags&1048576){for(let m of o.types)if(!sT(p.types,m))return!1;return!0}return o.flags&1056&&uxe(o)===p?!0:sT(p.types,o)}function vN(o,p){return o.flags&1048576?X(o.types,p):p(o)}function j0(o,p){return o.flags&1048576?Pt(o.types,p):p(o)}function bg(o,p){return o.flags&1048576?ht(o.types,p):p(o)}function TEr(o,p){return o.flags&3145728?ht(o.types,p):p(o)}function G_(o,p){if(o.flags&1048576){let m=o.types,v=yr(m,p);if(v===m)return o;let E=o.origin,D;if(E&&E.flags&1048576){let R=E.types,K=yr(R,se=>!!(se.flags&1048576)||p(se));if(R.length-K.length===m.length-v.length){if(K.length===1)return K[0];D=dBe(1048576,K)}}return mBe(v,o.objectFlags&16809984,void 0,void 0,D)}return o.flags&131072||p(o)?o:tn}function nTe(o,p){return G_(o,m=>m!==p)}function EEr(o){return o.flags&1048576?o.types.length:1}function hp(o,p,m){if(o.flags&131072)return o;if(!(o.flags&1048576))return p(o);let v=o.origin,E=v&&v.flags&1048576?v.types:o.types,D,R=!1;for(let K of E){let se=K.flags&1048576?hp(K,p,m):p(K);R||(R=K!==se),se&&(D?D.push(se):D=[se])}return R?D&&Do(D,m?0:1):o}function iCt(o,p,m,v){return o.flags&1048576&&m?Do(Cr(o.types,p),1,m,v):hp(o,p)}function Yq(o,p){return G_(o,m=>(m.flags&p)!==0)}function oCt(o,p){return s_(o,134217804)&&s_(p,402655616)?hp(o,m=>m.flags&4?Yq(p,402653316):lN(m)&&!s_(p,402653188)?Yq(p,128):m.flags&8?Yq(p,264):m.flags&64?Yq(p,2112):m):o}function qM(o){return o.flags===0}function SN(o){return o.flags===0?o.type:o}function JM(o,p){return p?{flags:0,type:o.flags&131072?lr:o}:o}function kEr(o){let p=F_(256);return p.elementType=o,p}function y$e(o){return ur[o.id]||(ur[o.id]=kEr(o))}function aCt(o,p){let m=hZ(S2(hce(p)));return Xq(m,o.elementType)?o:y$e(Do([o.elementType,m]))}function CEr(o){return o.flags&131072?uf:um(o.flags&1048576?Do(o.types,2):o)}function DEr(o){return o.finalArrayType||(o.finalArrayType=CEr(o.elementType))}function qse(o){return ro(o)&256?DEr(o):o}function AEr(o){return ro(o)&256?o.elementType:tn}function wEr(o){let p=!1;for(let m of o)if(!(m.flags&131072)){if(!(ro(m)&256))return!1;p=!0}return p}function sCt(o){let p=rCt(o),m=p.parent,v=no(m)&&(m.name.escapedText==="length"||m.parent.kind===214&&ct(m.name)&&nhe(m.name)),E=m.kind===213&&m.expression===p&&m.parent.kind===227&&m.parent.operatorToken.kind===64&&m.parent.left===m&&!lC(m.parent)&&Hf(Kf(m.argumentExpression),296);return v||E}function IEr(o){return(Oo(o)||ps(o)||Zm(o)||wa(o))&&!!(X_(o)||Ei(o)&&lE(o)&&o.initializer&&mC(o.initializer)&&jg(o.initializer))}function iTe(o,p){if(o=O_(o),o.flags&8752)return di(o);if(o.flags&7){if(Fp(o)&262144){let v=o.links.syntheticOrigin;if(v&&iTe(v))return di(o)}let m=o.valueDeclaration;if(m){if(IEr(m))return di(o);if(Oo(m)&&m.parent.parent.kind===251){let v=m.parent.parent,E=Jse(v.expression,void 0);if(E){let D=v.awaitModifier?15:13;return tk(D,E,Ne,void 0)}}p&&ac(p,xi(m,x._0_needs_an_explicit_type_annotation,Ua(o)))}}}function Jse(o,p){if(!(o.flags&67108864))switch(o.kind){case 80:let m=Wt(Fm(o));return iTe(m,p);case 110:return ZEr(o);case 108:return uTe(o);case 212:{let v=Jse(o.expression,p);if(v){let E=o.name,D;if(Aa(E)){if(!v.symbol)return;D=vc(v,XG(v.symbol,E.escapedText))}else D=vc(v,E.escapedText);return D&&iTe(D,p)}return}case 218:return Jse(o.expression,p)}}function Vse(o){let p=Ki(o),m=p.effectsSignature;if(m===void 0){let v;if(wi(o)){let R=WM(o.right);v=yUe(R)}else o.parent.kind===245?v=Jse(o.expression,void 0):o.expression.kind!==108&&(xm(o)?v=ZS(fZ(Va(o.expression),o.expression),o.expression):v=WM(o.expression));let E=Gs(v&&nh(v)||er,0),D=E.length===1&&!E[0].typeParameters?E[0]:Pt(E,cCt)?HM(o):void 0;m=p.effectsSignature=D&&cCt(D)?D:So}return m===So?void 0:m}function cCt(o){return!!(F0(o)||o.declaration&&(RM(o.declaration)||er).flags&131072)}function PEr(o,p){if(o.kind===1||o.kind===3)return p.arguments[o.parameterIndex];let m=bl(p.expression);return wu(m)?bl(m.expression):void 0}function NEr(o){let p=fn(o,ame),m=Pn(o),v=gS(m,p.statements.pos);il.add(md(m,v.start,v.length,x.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function Wse(o){let p=oTe(o,!1);return Po=o,as=p,p}function Gse(o){let p=bl(o,!0);return p.kind===97||p.kind===227&&(p.operatorToken.kind===56&&(Gse(p.left)||Gse(p.right))||p.operatorToken.kind===57&&Gse(p.left)&&Gse(p.right))}function oTe(o,p){for(;;){if(o===Po)return as;let m=o.flags;if(m&4096){if(!p){let v=_$e(o),E=i7[v];return E!==void 0?E:i7[v]=oTe(o,!0)}p=!1}if(m&368)o=o.antecedent;else if(m&512){let v=Vse(o.node);if(v){let E=F0(v);if(E&&E.kind===3&&!E.type){let D=o.node.arguments[E.parameterIndex];if(D&&Gse(D))return!1}if(Tl(v).flags&131072)return!1}o=o.antecedent}else{if(m&4)return Pt(o.antecedent,v=>oTe(v,!1));if(m&8){let v=o.antecedent;if(v===void 0||v.length===0)return!1;o=v[0]}else if(m&128){let v=o.node;if(v.clauseStart===v.clauseEnd&&eAt(v.switchStatement))return!1;o=o.antecedent}else if(m&1024){Po=void 0;let v=o.node.target,E=v.antecedent;v.antecedent=o.node.antecedents;let D=oTe(o.antecedent,!1);return v.antecedent=E,D}else return!(m&1)}}}function aTe(o,p){for(;;){let m=o.flags;if(m&4096){if(!p){let v=_$e(o),E=zP[v];return E!==void 0?E:zP[v]=aTe(o,!0)}p=!1}if(m&496)o=o.antecedent;else if(m&512){if(o.node.expression.kind===108)return!0;o=o.antecedent}else{if(m&4)return ht(o.antecedent,v=>aTe(v,!1));if(m&8)o=o.antecedent[0];else if(m&1024){let v=o.node.target,E=v.antecedent;v.antecedent=o.node.antecedents;let D=aTe(o.antecedent,!1);return v.antecedent=E,D}else return!!(m&1)}}}function v$e(o){switch(o.kind){case 110:return!0;case 80:if(!lP(o)){let m=Fm(o);return F7(m)||bZ(m)&&!SZ(m)||!!m.valueDeclaration&&bu(m.valueDeclaration)}break;case 212:case 213:return v$e(o.expression)&&Vv(Ki(o).resolvedSymbol||ye);case 207:case 208:let p=bS(o.parent);return wa(p)||Y4e(p)?!S$e(p):Oo(p)&&JZ(p)}return!1}function T2(o,p,m=p,v,E=(D=>(D=Ci(o,KR))==null?void 0:D.flowNode)()){let D,R=!1,K=0;if(sa)return Et;if(!E)return p;os++;let se=oi,ce=SN(Me(E));oi=se;let fe=ro(ce)&256&&sCt(o)?uf:qse(ce);if(fe===gn||o.parent&&o.parent.kind===236&&!(fe.flags&131072)&&M0(fe,2097152).flags&131072)return p;return fe;function Ue(){return R?D:(R=!0,D=Bse(o,p,m,v))}function Me(vr){var hn;if(K===2e3)return(hn=hi)==null||hn.instant(hi.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:vr.id}),sa=!0,NEr(o),Et;K++;let Un;for(;;){let ui=vr.flags;if(ui&4096){for(let No=se;No=0&&Un.parameterIndex!(No.flags&163840)):hn.kind===222&&gN(hn.expression,o)&&(ui=Rl(ui,vr.node,No=>!(No.flags&131072||No.flags&128&&No.value==="undefined"))));let Vi=Fa(hn,ui);Vi&&(ui=Ps(ui,Vi,vr.node))}return JM(ui,qM(Un))}function sn(vr){let hn=[],Un=!1,ui=!1,Vi;for(let No of vr.antecedent){if(!Vi&&No.flags&128&&No.node.clauseStart===No.node.clauseEnd){Vi=No;continue}let wc=Me(No),Nc=SN(wc);if(Nc===p&&p===m)return Nc;Zc(hn,Nc),Xq(Nc,m)||(Un=!0),qM(wc)&&(ui=!0)}if(Vi){let No=Me(Vi),wc=SN(No);if(!(wc.flags&131072)&&!un(hn,wc)&&!eAt(Vi.node.switchStatement)){if(wc===p&&p===m)return wc;hn.push(wc),Xq(wc,m)||(Un=!0),qM(No)&&(ui=!0)}}return JM(vi(hn,Un?2:1),ui)}function rn(vr){let hn=_$e(vr),Un=yM[hn]||(yM[hn]=new Map),ui=Ue();if(!ui)return p;let Vi=Un.get(ui);if(Vi)return Vi;for(let Rd=Fi;Rd<$n;Rd++)if(F3[Rd]===vr&&r7[Rd]===ui&&UP[Rd].length)return JM(vi(UP[Rd],1),!0);let No=[],wc=!1,Nc;for(let Rd of vr.antecedent){let Lm;if(!Nc)Lm=Nc=Me(Rd);else{F3[$n]=vr,r7[$n]=ui,UP[$n]=No,$n++;let Pw=ka;ka=void 0,Lm=Me(Rd),ka=Pw,$n--;let Nw=Un.get(ui);if(Nw)return Nw}let Yh=SN(Lm);if(Zc(No,Yh),Xq(Yh,m)||(wc=!0),Yh===p)break}let yu=vi(No,wc?2:1);return qM(Nc)?JM(yu,!0):(Un.set(ui,yu),yu)}function vi(vr,hn){if(wEr(vr))return y$e(Do(Cr(vr,AEr)));let Un=m$e(Do(Zo(vr,qse),hn));return Un!==p&&Un.flags&p.flags&1048576&&__(Un.types,p.types)?p:Un}function wo(vr){if($s(o)||mC(o)||r1(o)){if(ct(vr)){let hn=Fm(vr),Un=Wt(hn).valueDeclaration;if(Un&&(Vc(Un)||wa(Un))&&o===Un.parent&&!Un.initializer&&!Un.dotDotDotToken)return Un}}else if(wu(vr)){if(Ff(o,vr.expression))return vr}else if(ct(vr)){let hn=Fm(vr);if(F7(hn)){let Un=hn.valueDeclaration;if(Oo(Un)&&!Un.type&&Un.initializer&&wu(Un.initializer)&&Ff(o,Un.initializer.expression))return Un.initializer;if(Vc(Un)&&!Un.initializer){let ui=Un.parent.parent;if(Oo(ui)&&!ui.type&&ui.initializer&&(ct(ui.initializer)||wu(ui.initializer))&&Ff(o,ui.initializer))return Un}}}}function Fa(vr,hn){if(p.flags&1048576||hn.flags&1048576){let Un=wo(vr);if(Un){let ui=hN(Un);if(ui){let Vi=p.flags&1048576&&Xq(hn,p)?p:hn;if(Zq(Vi,ui))return Un}}}}function ho(vr,hn,Un){let ui=hN(hn);if(ui===void 0)return vr;let Vi=xm(hn),No=be&&(Vi||t3e(hn))&&s_(vr,98304),wc=en(No?M0(vr,2097152):vr,ui);if(!wc)return vr;wc=No&&Vi?nD(wc):wc;let Nc=Un(wc);return G_(vr,yu=>{let Rd=_o(yu,ui)||er;return!(Rd.flags&131072)&&!(Nc.flags&131072)&&Ise(Nc,Rd)})}function pa(vr,hn,Un,ui,Vi){if((Un===37||Un===38)&&vr.flags&1048576){let No=$se(vr);if(No&&No===hN(hn)){let wc=Use(vr,Kf(ui));if(wc)return Un===(Vi?37:38)?wc:$v(en(wc,No)||er)?nTe(vr,wc):vr}}return ho(vr,hn,No=>ha(No,Un,ui,Vi))}function Ps(vr,hn,Un){if(Un.clauseStartUse(vr,No)||er));if(Vi!==er)return Vi}return ho(vr,hn,ui=>$u(ui,Un))}function El(vr,hn,Un){if(Ff(o,hn))return yN(vr,Un?4194304:8388608);be&&Un&&gN(hn,o)&&(vr=yN(vr,2097152));let ui=Fa(hn,vr);return ui?ho(vr,ui,Vi=>M0(Vi,Un?4194304:8388608)):vr}function qa(vr,hn,Un){let ui=vc(vr,hn);return ui?!!(ui.flags&16777216||Fp(ui)&48)||Un:!!D7(vr,hn)||!Un}function rp(vr,hn,Un){let ui=x0(hn);if(j0(vr,No=>qa(No,ui,!0)))return G_(vr,No=>qa(No,ui,Un));if(Un){let No=Rxr();if(No)return Ac([vr,MM(No,[hn,er])])}return vr}function Zp(vr,hn,Un,ui,Vi){return Vi=Vi!==(Un.kind===112)!=(ui!==38&&ui!==36),by(vr,hn,Vi)}function Rm(vr,hn,Un){switch(hn.operatorToken.kind){case 64:case 76:case 77:case 78:return El(by(vr,hn.right,Un),hn.left,Un);case 35:case 36:case 37:case 38:let ui=hn.operatorToken.kind,Vi=u6(hn.left),No=u6(hn.right);if(Vi.kind===222&&Sl(No))return mi(vr,Vi,ui,No,Un);if(No.kind===222&&Sl(Vi))return mi(vr,No,ui,Vi,Un);if(Ff(o,Vi))return ha(vr,ui,No,Un);if(Ff(o,No))return ha(vr,ui,Vi,Un);be&&(gN(Vi,o)?vr=ei(vr,ui,No,Un):gN(No,o)&&(vr=ei(vr,ui,Vi,Un)));let wc=Fa(Vi,vr);if(wc)return pa(vr,wc,ui,No,Un);let Nc=Fa(No,vr);if(Nc)return pa(vr,Nc,ui,Vi,Un);if(Ul(Vi))return n0(vr,ui,No,Un);if(Ul(No))return n0(vr,ui,Vi,Un);if(oU(No)&&!wu(Vi))return Zp(vr,Vi,No,ui,Un);if(oU(Vi)&&!wu(No))return Zp(vr,No,Vi,ui,Un);break;case 104:return gp(vr,hn,Un);case 103:if(Aa(hn.left))return Mn(vr,hn,Un);let yu=u6(hn.right);if(mZ(vr)&&wu(o)&&Ff(o.expression,yu)){let Rd=Kf(hn.left);if(b0(Rd)&&hN(o)===x0(Rd))return M0(vr,Un?524288:65536)}if(Ff(o,yu)){let Rd=Kf(hn.left);if(b0(Rd))return rp(vr,Rd,Un)}break;case 28:return by(vr,hn.right,Un);case 56:return Un?by(by(vr,hn.left,!0),hn.right,!0):Do([by(vr,hn.left,!1),by(vr,hn.right,!1)]);case 57:return Un?Do([by(vr,hn.left,!0),by(vr,hn.right,!0)]):by(by(vr,hn.left,!1),hn.right,!1)}return vr}function Mn(vr,hn,Un){let ui=u6(hn.right);if(!Ff(o,ui))return vr;$.assertNode(hn.left,Aa);let Vi=TTe(hn.left);if(Vi===void 0)return vr;let No=Vi.parent,wc=fd($.checkDefined(Vi.valueDeclaration,"should always have a declaration"))?di(No):Tu(No);return $0(vr,wc,Un,!0)}function ei(vr,hn,Un,ui){let Vi=hn===35||hn===37,No=hn===35||hn===36?98304:32768,wc=Kf(Un);return Vi!==ui&&bg(wc,yu=>!!(yu.flags&No))||Vi===ui&&bg(wc,yu=>!(yu.flags&(3|No)))?yN(vr,2097152):vr}function ha(vr,hn,Un,ui){if(vr.flags&1)return vr;(hn===36||hn===38)&&(ui=!ui);let Vi=Kf(Un),No=hn===35||hn===36;if(Vi.flags&98304){if(!be)return vr;let wc=No?ui?262144:2097152:Vi.flags&65536?ui?131072:1048576:ui?65536:524288;return yN(vr,wc)}if(ui){if(!No&&(vr.flags&2||j0(vr,Vb))){if(Vi.flags&469893116||Vb(Vi))return Vi;if(Vi.flags&524288)return bn}let wc=G_(vr,Nc=>Ise(Nc,Vi)||No&&N2r(Nc,Vi));return oCt(wc,Vi)}return $v(Vi)?G_(vr,wc=>!(Ekt(wc)&&Ise(wc,Vi))):vr}function mi(vr,hn,Un,ui,Vi){(Un===36||Un===38)&&(Vi=!Vi);let No=u6(hn.expression);if(!Ff(o,No)){be&&gN(No,o)&&Vi===(ui.text!=="undefined")&&(vr=yN(vr,2097152));let wc=Fa(No,vr);return wc?ho(vr,wc,Nc=>fs(Nc,ui,Vi)):vr}return fs(vr,ui,Vi)}function fs(vr,hn,Un){return Un?hf(vr,hn.text):yN(vr,A8e.get(hn.text)||32768)}function Rl(vr,{switchStatement:hn,clauseStart:Un,clauseEnd:ui},Vi){return Un!==ui&&ht(rTe(hn).slice(Un,ui),Vi)?M0(vr,2097152):vr}function $u(vr,{switchStatement:hn,clauseStart:Un,clauseEnd:ui}){let Vi=rTe(hn);if(!Vi.length)return vr;let No=Vi.slice(Un,ui),wc=Un===ui||un(No,tn);if(vr.flags&2&&!wc){let Lm;for(let Yh=0;YhIse(Nc,Lm)),Nc);if(!wc)return yu;let Rd=G_(vr,Lm=>!(Ekt(Lm)&&un(Vi,Lm.flags&32768?Ne:ih(E2r(Lm)))));return yu.flags&131072?Rd:Do([yu,Rd])}function hf(vr,hn){switch(hn){case"string":return Hc(vr,Mt,1);case"number":return Hc(vr,Ir,2);case"bigint":return Hc(vr,ii,4);case"boolean":return Hc(vr,_r,8);case"symbol":return Hc(vr,wr,16);case"object":return vr.flags&1?vr:Do([Hc(vr,bn,32),Hc(vr,mr,131072)]);case"function":return vr.flags&1?vr:Hc(vr,Vn,64);case"undefined":return Hc(vr,Ne,65536)}return Hc(vr,bn,128)}function Hc(vr,hn,Un){return hp(vr,ui=>QS(ui,hn,tp)?Uv(ui,Un)?ui:tn:c6(hn,ui)?hn:Uv(ui,Un)?Ac([ui,hn]):tn)}function y_(vr,{switchStatement:hn,clauseStart:Un,clauseEnd:ui}){let Vi=nCt(hn);if(!Vi)return vr;let No=hr(hn.caseBlock.clauses,yu=>yu.kind===298);if(Un===ui||No>=Un&&NozM(Rd,yu)===yu)}let Nc=Vi.slice(Un,ui);return Do(Cr(Nc,yu=>yu?hf(vr,yu):tn))}function R_(vr,{switchStatement:hn,clauseStart:Un,clauseEnd:ui}){let Vi=hr(hn.caseBlock.clauses,Nc=>Nc.kind===298),No=Un===ui||Vi>=Un&&ViNc.kind===297?by(vr,Nc.expression,!0):tn))}function Ul(vr){return(no(vr)&&Zi(vr.name)==="constructor"||mu(vr)&&Sl(vr.argumentExpression)&&vr.argumentExpression.text==="constructor")&&Ff(o,vr.expression)}function n0(vr,hn,Un,ui){if(ui?hn!==35&&hn!==37:hn!==36&&hn!==38)return vr;let Vi=Kf(Un);if(!HUe(Vi)&&!Mv(Vi))return vr;let No=vc(Vi,"prototype");if(!No)return vr;let wc=di(No),Nc=Mi(wc)?void 0:wc;if(!Nc||Nc===br||Nc===Vn)return vr;if(Mi(vr))return Nc;return G_(vr,Rd=>yu(Rd,Nc));function yu(Rd,Lm){return Rd.flags&524288&&ro(Rd)&1||Lm.flags&524288&&ro(Lm)&1?Rd.symbol===Lm.symbol:c6(Rd,Lm)}}function gp(vr,hn,Un){let ui=u6(hn.left);if(!Ff(o,ui))return Un&&be&&gN(ui,o)?yN(vr,2097152):vr;let Vi=hn.right,No=Kf(Vi);if(!Ew(No,br))return vr;let wc=Vse(hn),Nc=wc&&F0(wc);if(Nc&&Nc.kind===1&&Nc.parameterIndex===0)return $0(vr,Nc.type,Un,!0);if(!Ew(No,Vn))return vr;let yu=hp(No,c_);return Mi(vr)&&(yu===br||yu===Vn)||!Un&&!(yu.flags&524288&&!Vb(yu))?vr:$0(vr,yu,Un,!0)}function c_(vr){let hn=en(vr,"prototype");if(hn&&!Mi(hn))return hn;let Un=Gs(vr,1);return Un.length?Do(Cr(Un,ui=>Tl(nZ(ui)))):kc}function $0(vr,hn,Un,ui){let Vi=vr.flags&1048576?`N${ff(vr)},${ff(hn)},${(Un?1:0)|(ui?2:0)}`:void 0;return Sh(Vi)??h1(Vi,uJ(vr,hn,Un,ui))}function uJ(vr,hn,Un,ui){if(!Un){if(vr===hn)return tn;if(ui)return G_(vr,yu=>!Ew(yu,hn));vr=vr.flags&2?Yc:vr;let Nc=$0(vr,hn,!0,!1);return m$e(G_(vr,yu=>!Xq(yu,Nc)))}if(vr.flags&3||vr===hn)return hn;let Vi=ui?Ew:c6,No=vr.flags&1048576?$se(vr):void 0,wc=hp(hn,Nc=>{let yu=No&&en(Nc,No),Rd=yu&&Use(vr,yu),Lm=hp(Rd||vr,ui?Yh=>Ew(Yh,Nc)?Yh:Ew(Nc,Yh)?Nc:tn:Yh=>Gq(Yh,Nc)?Yh:Gq(Nc,Yh)?Nc:c6(Yh,Nc)?Yh:c6(Nc,Yh)?Nc:tn);return Lm.flags&131072?hp(vr,Yh=>s_(Yh,465829888)&&Vi(Nc,Gf(Yh)||er)?Ac([Yh,Nc]):tn):Lm});return wc.flags&131072?c6(hn,vr)?hn:tc(vr,hn)?vr:tc(hn,vr)?hn:Ac([vr,hn]):wc}function VZ(vr,hn,Un){if(Hkt(hn,o)){let ui=Un||!O4(hn)?Vse(hn):void 0,Vi=ui&&F0(ui);if(Vi&&(Vi.kind===0||Vi.kind===1))return pJ(vr,Vi,hn,Un)}if(mZ(vr)&&wu(o)&&no(hn.expression)){let ui=hn.expression;if(Ff(o.expression,u6(ui.expression))&&ct(ui.name)&&ui.name.escapedText==="hasOwnProperty"&&hn.arguments.length===1){let Vi=hn.arguments[0];if(Sl(Vi)&&hN(o)===dp(Vi.text))return M0(vr,Un?524288:65536)}}return vr}function pJ(vr,hn,Un,ui){if(hn.type&&!(Mi(vr)&&(hn.type===br||hn.type===Vn))){let Vi=PEr(hn,Un);if(Vi){if(Ff(o,Vi))return $0(vr,hn.type,ui,!1);be&&gN(Vi,o)&&(ui&&!Uv(hn.type,65536)||!ui&&bg(hn.type,tce))&&(vr=yN(vr,2097152));let No=Fa(Vi,vr);if(No)return ho(vr,No,wc=>$0(wc,hn.type,ui,!1))}}return vr}function by(vr,hn,Un){if(Bte(hn)||wi(hn.parent)&&(hn.parent.operatorToken.kind===61||hn.parent.operatorToken.kind===78)&&hn.parent.left===hn)return WZ(vr,hn,Un);switch(hn.kind){case 80:if(!Ff(o,hn)&&F<5){let ui=Fm(hn);if(F7(ui)){let Vi=ui.valueDeclaration;if(Vi&&Oo(Vi)&&!Vi.type&&Vi.initializer&&v$e(o)){F++;let No=by(vr,Vi.initializer,Un);return F--,No}}}case 110:case 108:case 212:case 213:return El(vr,hn,Un);case 214:return VZ(vr,hn,Un);case 218:case 236:case 239:return by(vr,hn.expression,Un);case 227:return Rm(vr,hn,Un);case 225:if(hn.operator===54)return by(vr,hn.operand,!Un);break}return vr}function WZ(vr,hn,Un){if(Ff(o,hn))return yN(vr,Un?2097152:262144);let ui=Fa(hn,vr);return ui?ho(vr,ui,Vi=>M0(Vi,Un?2097152:262144)):vr}}function OEr(o,p){if(o=Wt(o),(p.kind===80||p.kind===81)&&(FU(p)&&(p=p.parent),Tb(p)&&(!lC(p)||YO(p)))){let m=Wxe(YO(p)&&p.kind===212?xTe(p,void 0,!0):Kf(p));if(Wt(Ki(p).resolvedSymbol)===o)return m}return Eb(p)&&hS(p.parent)&&e6(p.parent)?oxe(p.parent.symbol):Ehe(p)&&YO(p.parent)?GE(o):Lv(o)}function eJ(o){return fn(o.parent,p=>Rs(p)&&!uA(p)||p.kind===269||p.kind===308||p.kind===173)}function FEr(o){return(o.lastAssignmentPos!==void 0||SZ(o)&&o.lastAssignmentPos!==void 0)&&o.lastAssignmentPos<0}function SZ(o){return!lCt(o,void 0)}function lCt(o,p){let m=fn(o.valueDeclaration,sTe);if(!m)return!1;let v=Ki(m);return v.flags&131072||(v.flags|=131072,REr(m)||pCt(m)),!o.lastAssignmentPos||p&&Math.abs(o.lastAssignmentPos)p.kind!==233&&uCt(p.name))}function REr(o){return!!fn(o.parent,p=>sTe(p)&&!!(Ki(p).flags&131072))}function sTe(o){return lu(o)||Ta(o)}function pCt(o){switch(o.kind){case 80:let p=cC(o);if(p!==0){let E=Fm(o),D=p===1||E.lastAssignmentPos!==void 0&&E.lastAssignmentPos<0;if(bZ(E)){if(E.lastAssignmentPos===void 0||Math.abs(E.lastAssignmentPos)!==Number.MAX_VALUE){let R=fn(o,sTe),K=fn(E.valueDeclaration,sTe);E.lastAssignmentPos=R===K?LEr(o,E.valueDeclaration):Number.MAX_VALUE}D&&E.lastAssignmentPos>0&&(E.lastAssignmentPos*=-1)}}return;case 282:let m=o.parent.parent,v=o.propertyName||o.name;if(!o.isTypeOnly&&!m.isTypeOnly&&!m.moduleSpecifier&&v.kind!==11){let E=jp(v,111551,!0,!0);if(E&&bZ(E)){let D=E.lastAssignmentPos!==void 0&&E.lastAssignmentPos<0?-1:1;E.lastAssignmentPos=D*Number.MAX_VALUE}}return;case 265:case 266:case 267:return}Wo(o)||Is(o,pCt)}function LEr(o,p){let m=o.pos;for(;o&&o.pos>p.pos;){switch(o.kind){case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 259:case 264:m=o.end}o=o.parent}return m}function F7(o){return o.flags&3&&(j$e(o)&6)!==0}function bZ(o){let p=o.valueDeclaration&&bS(o.valueDeclaration);return!!p&&(wa(p)||Oo(p)&&(TP(p.parent)||_Ct(p)))}function _Ct(o){return!!(o.parent.flags&1)&&!(Ra(o)&32||o.parent.parent.kind===244&&uE(o.parent.parent.parent))}function MEr(o){let p=Ki(o);if(p.parameterInitializerContainsUndefined===void 0){if(!WS(o,8))return nN(o.symbol),!0;let m=!!Uv(rJ(o,0),16777216);if(!kt())return nN(o.symbol),!0;p.parameterInitializerContainsUndefined??(p.parameterInitializerContainsUndefined=m)}return p.parameterInitializerContainsUndefined}function jEr(o,p){return be&&p.kind===170&&p.initializer&&Uv(o,16777216)&&!MEr(p)?M0(o,524288):o}function BEr(o,p){let m=p.parent;return m.kind===212||m.kind===167||m.kind===214&&m.expression===p||m.kind===215&&m.expression===p||m.kind===213&&m.expression===p&&!(j0(o,fCt)&&pN(Kf(m.argumentExpression)))}function dCt(o){return o.flags&2097152?Pt(o.types,dCt):!!(o.flags&465829888&&HS(o).flags&1146880)}function fCt(o){return o.flags&2097152?Pt(o.types,fCt):!!(o.flags&465829888&&!s_(HS(o),98304))}function $Er(o,p){let m=(ct(o)||no(o)||mu(o))&&!((Tv(o.parent)||u3(o.parent))&&o.parent.tagName===o)&&(p&&p&32?Eh(o,8):Eh(o,void 0));return m&&!xw(m)}function b$e(o,p,m){return jM(o)&&(o=o.baseType),!(m&&m&2)&&j0(o,dCt)&&(BEr(o,p)||$Er(p,m))?hp(o,HS):o}function mCt(o){return!!fn(o,p=>{let m=p.parent;return m===void 0?"quit":Xu(m)?m.expression===p&&ru(p):Cm(m)?m.name===p||m.propertyName===p:!1})}function R7(o,p,m,v){if(We&&!(o.flags&33554432&&!Zm(o)&&!ps(o)))switch(p){case 1:return cTe(o);case 2:return hCt(o,m,v);case 3:return gCt(o);case 4:return x$e(o);case 5:return yCt(o);case 6:return vCt(o);case 7:return SCt(o);case 8:return bCt(o);case 0:{if(ct(o)&&(Tb(o)||im(o.parent)||gd(o.parent)&&o.parent.moduleReference===o)&&kCt(o)){if(_G(o.parent)&&(no(o.parent)?o.parent.expression:o.parent.left)!==o)return;cTe(o);return}if(_G(o)){let E=o;for(;_G(E);){if(vS(E))return;E=E.parent}return hCt(o)}return Xu(o)?gCt(o):Em(o)||K1(o)?x$e(o):gd(o)?z4(o)||HTe(o)?vCt(o):void 0:Cm(o)?SCt(o):((lu(o)||G1(o))&&yCt(o),!Q.emitDecoratorMetadata||!kP(o)||!By(o)||!o.modifiers||!OG(_e,o,o.parent,o.parent.parent)?void 0:bCt(o))}default:$.assertNever(p,`Unhandled reference hint: ${p}`)}}function cTe(o){let p=Fm(o);p&&p!==Se&&p!==ye&&!lP(o)&&Hse(p,o)}function hCt(o,p,m){let v=no(o)?o.expression:o.left;if(pC(v)||!ct(v))return;let E=Fm(v);if(!E||E===ye)return;if(a1(Q)||dC(Q)&&mCt(o)){Hse(E,o);return}let D=m||Bp(v);if(Mi(D)||D===lr){Hse(E,o);return}let R=p;if(!R&&!m){let K=no(o)?o.name:o.right,se=Aa(K)&&rce(K.escapedText,K),ce=cC(o),fe=nh(ce!==0||z$e(o)?ry(D):D);R=Aa(K)?se&&ETe(fe,se)||void 0:vc(fe,K.escapedText)}R&&(zZ(R)||R.flags&8&&o.parent.kind===307)||Hse(E,o)}function gCt(o){if(ct(o.expression)){let p=o.expression,m=Wt(jp(p,-1,!0,!0,o));m&&Hse(m,p)}}function x$e(o){if(!STe(o)){let p=il&&Q.jsx===2?x.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:void 0,m=X1(o),v=Em(o)?o.tagName:o,E=Q.jsx!==1&&Q.jsx!==3,D;if(K1(o)&&m==="null"||(D=$t(v,m,E?111551:111167,p,!0)),D&&(D.isReferenced=-1,We&&D.flags&2097152&&!Fv(D)&&lTe(D)),K1(o)){let R=Pn(o),K=QUe(R);if(K){let se=_h(K).escapedText;$t(v,se,E?111551:111167,p,!0)}}}}function yCt(o){if(re<2&&A_(o)&2){let p=jg(o);UEr(p)}}function vCt(o){ko(o,32)&&xCt(o)}function SCt(o){if(!o.parent.parent.moduleSpecifier&&!o.isTypeOnly&&!o.parent.parent.isTypeOnly){let p=o.propertyName||o.name;if(p.kind===11)return;let m=$t(p,p.escapedText,2998271,void 0,!0);if(!(m&&(m===ke||m===_t||m.declarations&&uE(ir(m.declarations[0]))))){let v=m&&(m.flags&2097152?df(m):m);(!v||Zh(v)&111551)&&(xCt(o),cTe(p))}return}}function bCt(o){if(Q.emitDecoratorMetadata){let p=wt(o.modifiers,hd);if(!p)return;switch(Fd(p,16),o.kind){case 264:let m=Rx(o);if(m)for(let R of m.parameters)VM(UTe(R));break;case 178:case 179:let v=o.kind===178?179:178,E=Qu($i(o),v);VM(e6(o)||E&&e6(E));break;case 175:for(let R of o.parameters)VM(UTe(R));VM(jg(o));break;case 173:VM(X_(o));break;case 170:VM(UTe(o));let D=o.parent;for(let R of D.parameters)VM(UTe(R));VM(jg(D));break}}}function Hse(o,p){if(We&&q3(o,111551)&&!KO(p)){let m=df(o);Zh(o,!0)&1160127&&(a1(Q)||dC(Q)&&mCt(p)||!zZ(Wt(m)))&&lTe(o)}}function lTe(o){$.assert(We);let p=io(o);if(!p.referenced){p.referenced=!0;let m=Qh(o);if(!m)return $.fail();if(z4(m)&&Zh(O_(o))&111551){let v=_h(m.moduleReference);cTe(v)}}}function xCt(o){let p=$i(o),m=df(p);m&&(m===ye||Zh(p,!0)&111551&&!zZ(m))&&lTe(p)}function TCt(o,p){if(!o)return;let m=_h(o),v=(o.kind===80?788968:1920)|2097152,E=$t(m,m.escapedText,v,void 0,!0);if(E&&E.flags&2097152){if(We&&ln(E)&&!zZ(df(E))&&!Fv(E))lTe(E);else if(p&&a1(Q)&&Km(Q)>=5&&!ln(E)&&!Pt(E.declarations,cE)){let D=gt(o,x.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),R=wt(E.declarations||j,jE);R&&ac(D,xi(R,x._0_was_imported_here,Zi(m)))}}}function UEr(o){TCt(o&&NG(o),!1)}function VM(o){let p=AUe(o);p&&uh(p)&&TCt(p,!0)}function zEr(o,p){var m;let v=di(o),E=o.valueDeclaration;if(E){if(Vc(E)&&!E.initializer&&!E.dotDotDotToken&&E.parent.elements.length>=2){let D=E.parent.parent,R=bS(D);if(R.kind===261&&f6(R)&6||R.kind===170){let K=Ki(D);if(!(K.flags&4194304)){K.flags|=4194304;let se=zo(D,0),ce=se&&hp(se,HS);if(K.flags&=-4194305,ce&&ce.flags&1048576&&!(R.kind===170&&S$e(R))){let fe=E.parent,Ue=T2(fe,ce,ce,void 0,p.flowNode);return Ue.flags&131072?tn:KC(E,Ue,!0)}}}}if(wa(E)&&!E.type&&!E.initializer&&!E.dotDotDotToken){let D=E.parent;if(D.parameters.length>=2&&Fxe(D)){let R=TZ(D);if(R&&R.parameters.length===1&&Am(R)){let K=$q(Oa(di(R.parameters[0]),(m=p6(D))==null?void 0:m.nonFixingMapper));if(K.flags&1048576&&bg(K,Gc)&&!Pt(D.parameters,S$e)){let se=T2(D,K,K,void 0,p.flowNode),ce=D.parameters.indexOf(E)-(cP(D)?1:0);return ey(se,Bv(ce))}}}}}return v}function ECt(o,p){if(lP(o))return;if(p===Se){if(V$e(o,!0)){gt(o,x.arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks);return}let D=My(o);if(D)for(re<2&&(D.kind===220?gt(o,x.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):ko(D,1024)&>(o,x.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),Ki(D).flags|=512;D&&Iu(D);)D=My(D),D&&(Ki(D).flags|=512);return}let m=Wt(p),v=UUe(m,o);th(v)&&yBe(o,v)&&v.declarations&&g1(o,v.declarations,o.escapedText);let E=m.valueDeclaration;if(E&&m.flags&32&&Co(E)&&E.name!==o){let D=Hm(o,!1,!1);for(;D.kind!==308&&D.parent!==E;)D=Hm(D,!1,!1);D.kind!==308&&(Ki(E).flags|=262144,Ki(D).flags|=262144,Ki(o).flags|=536870912)}GEr(o,p)}function qEr(o,p){if(lP(o))return Kse(o);let m=Fm(o);if(m===ye)return Et;if(ECt(o,m),m===Se)return V$e(o)?Et:di(m);kCt(o)&&R7(o,1);let v=Wt(m),E=v.valueDeclaration,D=E;if(E&&E.kind===209&&un(m1,E.parent)&&fn(o,rn=>rn===E.parent))return gi;let R=zEr(v,o),K=cC(o);if(K){if(!(v.flags&3)&&!(Ei(o)&&v.flags&512)){let rn=v.flags&384?x.Cannot_assign_to_0_because_it_is_an_enum:v.flags&32?x.Cannot_assign_to_0_because_it_is_a_class:v.flags&1536?x.Cannot_assign_to_0_because_it_is_a_namespace:v.flags&16?x.Cannot_assign_to_0_because_it_is_a_function:v.flags&2097152?x.Cannot_assign_to_0_because_it_is_an_import:x.Cannot_assign_to_0_because_it_is_not_a_variable;return gt(o,rn,Ua(m)),Et}if(Vv(v))return v.flags&3?gt(o,x.Cannot_assign_to_0_because_it_is_a_constant,Ua(m)):gt(o,x.Cannot_assign_to_0_because_it_is_a_read_only_property,Ua(m)),Et}let se=v.flags&2097152;if(v.flags&3){if(K===1)return Kme(o)?S2(R):R}else if(se)E=Qh(m);else return R;if(!E)return R;R=b$e(R,o,p);let ce=bS(E).kind===170,fe=eJ(E),Ue=eJ(o),Me=Ue!==fe,yt=o.parent&&o.parent.parent&&qx(o.parent)&&g$e(o.parent.parent),Jt=m.flags&134217728,Xt=R===Zt||R===uf,kr=Xt&&o.parent.kind===236;for(;Ue!==fe&&(Ue.kind===219||Ue.kind===220||mre(Ue))&&(F7(v)&&R!==uf||bZ(v)&&lCt(v,o));)Ue=eJ(Ue);let on=D&&Oo(D)&&!D.initializer&&!D.exclamationToken&&_Ct(D)&&!FEr(m),Hn=ce||se||Me&&!on||yt||Jt||JEr(o,E)||R!==Zt&&R!==uf&&(!be||(R.flags&16387)!==0||KO(o)||u$e(o)||o.parent.kind===282)||o.parent.kind===236||E.kind===261&&E.exclamationToken||E.flags&33554432,fi=kr?Ne:Hn?ce?jEr(R,E):R:Xt?Ne:nD(R),sn=kr?b2(T2(o,R,fi,Ue)):T2(o,R,fi,Ue);if(!sCt(o)&&(R===Zt||R===uf)){if(sn===Zt||sn===uf)return Fe&&(gt(cs(E),x.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Ua(m),ri(sn)),gt(o,x.Variable_0_implicitly_has_an_1_type,Ua(m),ri(sn))),$Z(sn)}else if(!Hn&&!UM(R)&&UM(sn))return gt(o,x.Variable_0_is_used_before_being_assigned,Ua(m)),R;return K?S2(sn):sn}function JEr(o,p){if(Vc(p)){let m=fn(o,Vc);return m&&bS(m)===bS(p)}}function kCt(o){var p;let m=o.parent;if(m){if(no(m)&&m.expression===o||Cm(m)&&m.isTypeOnly)return!1;let v=(p=m.parent)==null?void 0:p.parent;if(v&&P_(v)&&v.isTypeOnly)return!1}return!0}function VEr(o,p){return!!fn(o,m=>m===p?"quit":Rs(m)||m.parent&&ps(m.parent)&&!fd(m.parent)&&m.parent.initializer===m)}function WEr(o,p){return fn(o,m=>m===p?"quit":m===p.initializer||m===p.condition||m===p.incrementor||m===p.statement)}function T$e(o){return fn(o,p=>!p||ihe(p)?"quit":rC(p,!1))}function GEr(o,p){if(re>=2||(p.flags&34)===0||!p.valueDeclaration||Ta(p.valueDeclaration)||p.valueDeclaration.parent.kind===300)return;let m=yv(p.valueDeclaration),v=VEr(o,m),E=T$e(m);if(E){if(v){let D=!0;if(kA(m)){let R=mA(p.valueDeclaration,262);if(R&&R.parent===m){let K=WEr(o.parent,m);if(K){let se=Ki(K);se.flags|=8192;let ce=se.capturedBlockScopeBindings||(se.capturedBlockScopeBindings=[]);Zc(ce,p),K===m.initializer&&(D=!1)}}}D&&(Ki(E).flags|=4096)}if(kA(m)){let D=mA(p.valueDeclaration,262);D&&D.parent===m&&KEr(o,m)&&(Ki(p.valueDeclaration).flags|=65536)}Ki(p.valueDeclaration).flags|=32768}v&&(Ki(p.valueDeclaration).flags|=16384)}function HEr(o,p){let m=Ki(o);return!!m&&un(m.capturedBlockScopeBindings,$i(p))}function KEr(o,p){let m=o;for(;m.parent.kind===218;)m=m.parent;let v=!1;if(lC(m))v=!0;else if(m.parent.kind===225||m.parent.kind===226){let E=m.parent;v=E.operator===46||E.operator===47}return v?!!fn(m,E=>E===p?"quit":E===p.statement):!1}function E$e(o,p){if(Ki(o).flags|=2,p.kind===173||p.kind===177){let m=p.parent;Ki(m).flags|=4}else Ki(p).flags|=4}function CCt(o){return U4(o)?o:Rs(o)?void 0:Is(o,CCt)}function k$e(o){let p=$i(o),m=Tu(p);return d2(m)===Ge}function DCt(o,p,m){let v=p.parent;aP(v)&&!k$e(v)&&KR(o)&&o.flowNode&&!aTe(o.flowNode,!1)&>(o,m)}function QEr(o,p){ps(p)&&fd(p)&&_e&&p.initializer&&Ao(p.initializer,o.pos)&&By(p.parent)&>(o,x.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function Kse(o){let p=KO(o),m=Hm(o,!0,!0),v=!1,E=!1;for(m.kind===177&&DCt(o,m,x.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(m.kind===220&&(m=Hm(m,!1,!E),v=!0),m.kind===168){m=Hm(m,!v,!1),E=!0;continue}break}if(QEr(o,m),E)gt(o,x.this_cannot_be_referenced_in_a_computed_property_name);else switch(m.kind){case 268:gt(o,x.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 267:gt(o,x.this_cannot_be_referenced_in_current_location);break}!p&&v&&re<2&&E$e(o,m);let D=C$e(o,!0,m);if(Be){let R=di(_t);if(D===R&&v)gt(o,x.The_containing_arrow_function_captures_the_global_value_of_this);else if(!D){let K=gt(o,x.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Ta(m)){let se=C$e(m);se&&se!==R&&ac(K,xi(m,x.An_outer_value_of_this_is_shadowed_by_this_container))}}}return D||at}function C$e(o,p=!0,m=Hm(o,!1,!1)){let v=Ei(o);if(Rs(m)&&(!w$e(o)||cP(m))){let E=ixe(m)||v&&YEr(m);if(!E){let D=XEr(m);if(v&&D){let R=Va(D).symbol;R&&R.members&&R.flags&16&&(E=Tu(R).thisType)}else XS(m)&&(E=Tu(cl(m.symbol)).thisType);E||(E=D$e(m))}if(E)return T2(o,E)}if(Co(m.parent)){let E=$i(m.parent),D=oc(m)?di(E):Tu(E).thisType;return T2(o,D)}if(Ta(m))if(m.commonJsModuleIndicator){let E=$i(m);return E&&di(E)}else{if(m.externalModuleIndicator)return Ne;if(p)return di(_t)}}function ZEr(o){let p=Hm(o,!1,!1);if(Rs(p)){let m=t0(p);if(m.thisParameter)return iTe(m.thisParameter)}if(Co(p.parent)){let m=$i(p.parent);return oc(p)?di(m):Tu(m).thisType}}function XEr(o){if(o.kind===219&&wi(o.parent)&&m_(o.parent)===3)return o.parent.left.expression.expression;if(o.kind===175&&o.parent.kind===211&&wi(o.parent.parent)&&m_(o.parent.parent)===6)return o.parent.parent.left.expression;if(o.kind===219&&o.parent.kind===304&&o.parent.parent.kind===211&&wi(o.parent.parent.parent)&&m_(o.parent.parent.parent)===6)return o.parent.parent.parent.left.expression;if(o.kind===219&&td(o.parent)&&ct(o.parent.name)&&(o.parent.name.escapedText==="value"||o.parent.name.escapedText==="get"||o.parent.name.escapedText==="set")&&Lc(o.parent.parent)&&Js(o.parent.parent.parent)&&o.parent.parent.parent.arguments[2]===o.parent.parent&&m_(o.parent.parent.parent)===9)return o.parent.parent.parent.arguments[0].expression;if(Ep(o)&&ct(o.name)&&(o.name.escapedText==="value"||o.name.escapedText==="get"||o.name.escapedText==="set")&&Lc(o.parent)&&Js(o.parent.parent)&&o.parent.parent.arguments[2]===o.parent&&m_(o.parent.parent)===9)return o.parent.parent.arguments[0].expression}function YEr(o){let p=d0(o);if(p&&p.typeExpression)return Sa(p.typeExpression);let m=zq(o);if(m)return Sw(m)}function ekr(o,p){return!!fn(o,m=>lu(m)?"quit":m.kind===170&&m.parent===p)}function uTe(o){let p=o.parent.kind===214&&o.parent.expression===o,m=IG(o,!0),v=m,E=!1,D=!1;if(!p){for(;v&&v.kind===220;)ko(v,1024)&&(D=!0),v=IG(v,!0),E=re<2;v&&ko(v,1024)&&(D=!0)}let R=0;if(!v||!fe(v)){let Ue=fn(o,Me=>Me===v?"quit":Me.kind===168);return Ue&&Ue.kind===168?gt(o,x.super_cannot_be_referenced_in_a_computed_property_name):p?gt(o,x.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!v||!v.parent||!(Co(v.parent)||v.parent.kind===211)?gt(o,x.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):gt(o,x.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Et}if(!p&&m.kind===177&&DCt(o,v,x.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),oc(v)||p?(R=32,!p&&re>=2&&re<=8&&(ps(v)||n_(v))&&c6e(o.parent,Ue=>{(!Ta(Ue)||Lg(Ue))&&(Ki(Ue).flags|=2097152)})):R=16,Ki(o).flags|=R,v.kind===175&&D&&(_g(o.parent)&&lC(o.parent)?Ki(v).flags|=256:Ki(v).flags|=128),E&&E$e(o.parent,v),v.parent.kind===211)return re<2?(gt(o,x.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Et):at;let K=v.parent;if(!aP(K))return gt(o,x.super_can_only_be_referenced_in_a_derived_class),Et;if(k$e(K))return p?Et:Ge;let se=Tu($i(K)),ce=se&&ov(se)[0];if(!ce)return Et;if(v.kind===177&&ekr(o,v))return gt(o,x.super_cannot_be_referenced_in_constructor_arguments),Et;return R===32?d2(se):Yg(ce,se.thisType);function fe(Ue){return p?Ue.kind===177:Co(Ue.parent)||Ue.parent.kind===211?oc(Ue)?Ue.kind===175||Ue.kind===174||Ue.kind===178||Ue.kind===179||Ue.kind===173||Ue.kind===176:Ue.kind===175||Ue.kind===174||Ue.kind===178||Ue.kind===179||Ue.kind===173||Ue.kind===172||Ue.kind===177:!1}}function ACt(o){return(o.kind===175||o.kind===178||o.kind===179)&&o.parent.kind===211?o.parent:o.kind===219&&o.parent.kind===304?o.parent.parent:void 0}function wCt(o){return ro(o)&4&&o.target===vy?Bu(o)[0]:void 0}function tkr(o){return hp(o,p=>p.flags&2097152?X(p.types,wCt):wCt(p))}function ICt(o,p){let m=o,v=p;for(;v;){let E=tkr(v);if(E)return E;if(m.parent.kind!==304)break;m=m.parent.parent,v=ww(m,void 0)}}function D$e(o){if(o.kind===220)return;if(Fxe(o)){let m=TZ(o);if(m){let v=m.thisParameter;if(v)return di(v)}}let p=Ei(o);if(Be||p){let m=ACt(o);if(m){let E=ww(m,void 0),D=ICt(m,E);return D?Oa(D,t$e(p6(m))):ry(E?b2(E):Bp(m))}let v=V1(o.parent);if(of(v)){let E=v.left;if(wu(E)){let{expression:D}=E;if(p&&ct(D)){let R=Pn(v);if(R.commonJsModuleIndicator&&Fm(D)===R.symbol)return}return ry(Bp(D))}}}}function PCt(o){let p=o.parent;if(!Fxe(p))return;let m=uA(p);if(m&&m.arguments){let E=ATe(m),D=p.parameters.indexOf(o);if(o.dotDotDotToken)return Y$e(E,D,E.length,at,void 0,0);let R=Ki(m),K=R.resolvedSignature;R.resolvedSignature=jn;let se=D0)return Fq(m.name,!0,!1)}}function okr(o,p){let m=My(o);if(m){let v=pTe(m,p);if(v){let E=A_(m);if(E&1){let D=(E&2)!==0;v.flags&1048576&&(v=G_(v,K=>!!rk(1,K,D)));let R=rk(1,v,(E&2)!==0);if(!R)return;v=R}if(E&2){let D=hp(v,E2);return D&&Do([D,ZDt(D)])}return v}}}function akr(o,p){let m=Eh(o,p);if(m){let v=E2(m);return v&&Do([v,ZDt(v)])}}function skr(o,p){let m=My(o);if(m){let v=A_(m),E=pTe(m,p);if(E){let D=(v&2)!==0;if(!o.asteriskToken&&E.flags&1048576&&(E=G_(E,R=>!!rk(1,R,D))),o.asteriskToken){let R=BUe(E,D),K=R?.yieldType??lr,se=Eh(o,p)??lr,ce=R?.nextType??er,fe=OTe(K,se,ce,!1);if(D){let Ue=OTe(K,se,ce,!0);return Do([fe,Ue])}return fe}return rk(0,E,D)}}}function w$e(o){let p=!1;for(;o.parent&&!Rs(o.parent);){if(wa(o.parent)&&(p||o.parent.initializer===o))return!0;Vc(o.parent)&&o.parent.initializer===o&&(p=!0),o=o.parent}return!1}function NCt(o,p){let m=!!(A_(p)&2),v=pTe(p,void 0);if(v)return rk(o,v,m)||void 0}function pTe(o,p){let m=RM(o);if(m)return m;let v=hTe(o);if(v&&!fxe(v)){let D=Tl(v),R=A_(o);return R&1?G_(D,K=>!!(K.flags&58998787)||TUe(K,R,void 0)):R&2?G_(D,K=>!!(K.flags&58998787)||!!oJ(K)):D}let E=uA(o);if(E)return Eh(E,p)}function OCt(o,p){let v=ATe(o).indexOf(p);return v===-1?void 0:I$e(o,v)}function I$e(o,p){if(Bh(o))return p===0?Mt:p===1?lEt(!1):at;let m=Ki(o).resolvedSignature===Di?Di:HM(o);if(Em(o)&&p===0)return mTe(m,o);let v=m.parameters.length-1;return Am(m)&&p>=v?ey(di(m.parameters[v]),Bv(p-v),256):qv(m,p)}function ckr(o){let p=dUe(o);return p?aN(p):void 0}function lkr(o,p){if(o.parent.kind===216)return OCt(o.parent,p)}function ukr(o,p){let m=o.parent,{left:v,operatorToken:E,right:D}=m;switch(E.kind){case 64:case 77:case 76:case 78:return o===D?_kr(m):void 0;case 57:case 61:let R=Eh(m,p);return o===D&&(R&&R.pattern||!R&&!I6e(m))?Kf(v):R;case 56:case 28:return o===D?Eh(m,p):void 0;default:return}}function pkr(o){if(gv(o)&&o.symbol)return o.symbol;if(ct(o))return Fm(o);if(no(o)){let m=Kf(o.expression);return Aa(o.name)?p(m,o.name):vc(m,o.name.escapedText)}if(mu(o)){let m=Bp(o.argumentExpression);if(!b0(m))return;let v=Kf(o.expression);return vc(v,x0(m))}return;function p(m,v){let E=rce(v.escapedText,v);return E&&ETe(m,E)}}function _kr(o){var p,m;let v=m_(o);switch(v){case 0:case 4:let E=pkr(o.left),D=E&&E.valueDeclaration;if(D&&(ps(D)||Zm(D))){let se=X_(D);return se&&Oa(Sa(se),io(E).mapper)||(ps(D)?D.initializer&&Kf(o.left):void 0)}return v===0?Kf(o.left):FCt(o);case 5:if(_Te(o,v))return FCt(o);if(!gv(o.left)||!o.left.symbol)return Kf(o.left);{let se=o.left.symbol.valueDeclaration;if(!se)return;let ce=Ba(o.left,wu),fe=X_(se);if(fe)return Sa(fe);if(ct(ce.expression)){let Ue=ce.expression,Me=$t(Ue,Ue.escapedText,111551,void 0,!0);if(Me){let yt=Me.valueDeclaration&&X_(Me.valueDeclaration);if(yt){let Jt=BT(ce);if(Jt!==void 0)return Aw(Sa(yt),Jt)}return}}return Ei(se)||se===o.left?void 0:Kf(o.left)}case 1:case 6:case 3:case 2:let R;v!==2&&(R=gv(o.left)?(p=o.left.symbol)==null?void 0:p.valueDeclaration:void 0),R||(R=(m=o.symbol)==null?void 0:m.valueDeclaration);let K=R&&X_(R);return K?Sa(K):void 0;case 7:case 8:case 9:return $.fail("Does not apply");default:return $.assertNever(v)}}function _Te(o,p=m_(o)){if(p===4)return!0;if(!Ei(o)||p!==5||!ct(o.left.expression))return!1;let m=o.left.expression.escapedText,v=$t(o.left,m,111551,void 0,!0,!0);return Sre(v?.valueDeclaration)}function FCt(o){if(!o.symbol)return Kf(o.left);if(o.symbol.valueDeclaration){let E=X_(o.symbol.valueDeclaration);if(E){let D=Sa(E);if(D)return D}}let p=Ba(o.left,wu);if(!r1(Hm(p.expression,!1,!1)))return;let m=Kse(p.expression),v=BT(p);return v!==void 0&&Aw(m,v)||void 0}function dkr(o){return!!(Fp(o)&262144&&!o.links.type&&he(o,0)>=0)}function P$e(o,p){if(o.flags&16777216){let m=o;return!!(S1(eD(m)).flags&131072)&&g2(tD(m))===g2(m.checkType)&&tc(p,m.extendsType)}return o.flags&2097152?Pt(o.types,m=>P$e(m,p)):!1}function Aw(o,p,m){return hp(o,v=>{if(v.flags&2097152){let E,D,R=!1;for(let K of v.types){if(!(K.flags&524288))continue;if(Xh(K)&&XQ(K)!==2){let ce=RCt(K,p,m);E=N$e(E,ce);continue}let se=LCt(K,p);if(!se){R||(D=jt(D,K));continue}R=!0,D=void 0,E=N$e(E,se)}if(D)for(let K of D){let se=MCt(K,p,m);E=N$e(E,se)}return E?E.length===1?E[0]:Ac(E):void 0}if(v.flags&524288)return Xh(v)&&XQ(v)!==2?RCt(v,p,m):LCt(v,p)??MCt(v,p,m)},!0)}function N$e(o,p){return p?jt(o,p.flags&1?er:p):o}function RCt(o,p,m){let v=m||Sg(oa(p)),E=e0(o);if(o.nameType&&P$e(o.nameType,v)||P$e(E,v))return;let D=Gf(E)||E;if(tc(v,D))return Axe(o,v)}function LCt(o,p){let m=vc(o,p);if(!(!m||dkr(m)))return x2(di(m),!!(m.flags&16777216))}function MCt(o,p,m){var v;if(Gc(o)&&$x(p)&&+p>=0){let E=Qq(o,o.target.fixedLength,0,!1,!0);if(E)return E}return(v=Vje(Wje(o),m||Sg(oa(p))))==null?void 0:v.type}function jCt(o,p){if($.assert(r1(o)),!(o.flags&67108864))return O$e(o,p)}function O$e(o,p){let m=o.parent,v=td(o)&&A$e(o,p);if(v)return v;let E=ww(m,p);if(E){if(OM(o)){let D=$i(o);return Aw(E,D.escapedName,io(D).nameType)}if($T(o)){let D=cs(o);if(D&&dc(D)){let R=Va(D.expression),K=b0(R)&&Aw(E,x0(R));if(K)return K}}if(o.name){let D=m2(o.name);return hp(E,R=>{var K;return(K=Vje(Wje(R),D))==null?void 0:K.type},!0)}}}function fkr(o){let p,m;for(let v=0;v{if(Gc(D)){if((v===void 0||pE)?m-p:0,K=R>0&&D.target.combinedFlags&12?iZ(D.target,3):0;return R>0&&R<=K?Bu(D)[ZE(D)-R]:Qq(D,v===void 0?D.target.fixedLength:Math.min(D.target.fixedLength,v),m===void 0||E===void 0?K:Math.min(K,m-E),!1,!0)}return(!v||pYE(se)?ey(se,Bv(R)):se,!0))}function gkr(o,p){let m=o.parent;return Gte(m)?Eh(o,p):PS(m)?hkr(m,o,p):void 0}function BCt(o,p){if(NS(o)){let m=ww(o.parent,p);return!m||Mi(m)?void 0:Aw(m,YU(o.name))}else return Eh(o.parent,p)}function Qse(o){switch(o.kind){case 11:case 9:case 10:case 15:case 229:case 112:case 97:case 106:case 80:case 157:return!0;case 212:case 218:return Qse(o.expression);case 295:return!o.expression||Qse(o.expression)}return!1}function ykr(o,p){let m=`D${hl(o)},${ff(p)}`;return Sh(m)??h1(m,cEr(p,o)??BBe(p,go(Cr(yr(o.properties,v=>v.symbol?v.kind===304?Qse(v.initializer)&&Zq(p,v.symbol.escapedName):v.kind===305?Zq(p,v.symbol.escapedName):!1:!1),v=>[()=>hce(v.kind===304?v.initializer:v.name),v.symbol.escapedName]),Cr(yr($l(p),v=>{var E;return!!(v.flags&16777216)&&!!((E=o?.symbol)!=null&&E.members)&&!o.symbol.members.has(v.escapedName)&&Zq(p,v.escapedName)}),v=>[()=>Ne,v.escapedName])),tc))}function vkr(o,p){let m=`D${hl(o)},${ff(p)}`,v=Sh(m);if(v)return v;let E=Yse(bN(o));return h1(m,BBe(p,go(Cr(yr(o.properties,D=>!!D.symbol&&D.kind===292&&Zq(p,D.symbol.escapedName)&&(!D.initializer||Qse(D.initializer))),D=>[D.initializer?()=>hce(D.initializer):()=>Rt,D.symbol.escapedName]),Cr(yr($l(p),D=>{var R;if(!(D.flags&16777216)||!((R=o?.symbol)!=null&&R.members))return!1;let K=o.parent.parent;return D.escapedName===E&&PS(K)&&YR(K.children).length?!1:!o.symbol.members.has(D.escapedName)&&Zq(p,D.escapedName)}),D=>[()=>Ne,D.escapedName])),tc))}function ww(o,p){let m=r1(o)?jCt(o,p):Eh(o,p),v=dTe(m,o,p);if(v&&!(p&&p&2&&v.flags&8650752)){let E=hp(v,D=>ro(D)&32?D:nh(D),!0);return E.flags&1048576&&Lc(o)?ykr(o,E):E.flags&1048576&&xP(o)?vkr(o,E):E}}function dTe(o,p,m){if(o&&s_(o,465829888)){let v=p6(p);if(v&&m&1&&Pt(v.inferences,mAr))return fTe(o,v.nonFixingMapper);if(v?.returnMapper){let E=fTe(o,v.returnMapper);return E.flags&1048576&&sT(E.types,zn)&&sT(E.types,rr)?G_(E,D=>D!==zn&&D!==rr):E}}return o}function fTe(o,p){return o.flags&465829888?Oa(o,p):o.flags&1048576?Do(Cr(o.types,m=>fTe(m,p)),0):o.flags&2097152?Ac(Cr(o.types,m=>fTe(m,p))):o}function Eh(o,p){var m;if(o.flags&67108864)return;let v=UCt(o,!p);if(v>=0)return Hh[v];let{parent:E}=o;switch(E.kind){case 261:case 170:case 173:case 172:case 209:return ikr(o,p);case 220:case 254:return okr(o,p);case 230:return skr(E,p);case 224:return akr(E,p);case 214:case 215:return OCt(E,o);case 171:return ckr(E);case 217:case 235:return z1(E.type)?Eh(E,p):Sa(E.type);case 227:return ukr(o,p);case 304:case 305:return O$e(E,p);case 306:return Eh(E.parent,p);case 210:{let D=E,R=ww(D,p),K=BR(D.elements,o),se=(m=Ki(D)).spreadIndices??(m.spreadIndices=fkr(D.elements));return F$e(R,K,D.elements.length,se.first,se.last)}case 228:return mkr(o,p);case 240:return $.assert(E.parent.kind===229),lkr(E.parent,o);case 218:{if(Ei(E)){if(oge(E))return Sa(age(E));let D=mv(E);if(D&&!z1(D.typeExpression.type))return Sa(D.typeExpression.type)}return Eh(E,p)}case 236:return Eh(E,p);case 239:return Sa(E.type);case 278:return ZC(E);case 295:return gkr(E,p);case 292:case 294:return BCt(E,p);case 287:case 286:return Dkr(E,p);case 302:return Ckr(E)}}function $Ct(o){Zse(o,Eh(o,void 0),!0)}function Zse(o,p,m){lp[Pf]=o,Hh[Pf]=p,f1[Pf]=m,Pf++}function xZ(){Pf--,lp[Pf]=void 0,Hh[Pf]=void 0,f1[Pf]=void 0}function UCt(o,p){for(let m=Pf-1;m>=0;m--)if(o===lp[m]&&(p||!f1[m]))return m;return-1}function Skr(o,p){Qg[zS]=o,GA[zS]=p,zS++}function bkr(){zS--,Qg[zS]=void 0,GA[zS]=void 0}function p6(o){for(let p=zS-1;p>=0;p--)if(oP(o,Qg[p]))return GA[p]}function xkr(o){Ob[Fb]=o,HA[Fb]??(HA[Fb]=new Map),Fb++}function Tkr(){Fb--,Ob[Fb]=void 0,HA[Fb].clear()}function Ekr(o){for(let p=Fb-1;p>=0;p--)if(o===Ob[p])return p;return-1}function kkr(){for(let o=Fb-1;o>=0;o--)HA[o].clear()}function Ckr(o){return Aw(iBe(!1),Cne(o))}function Dkr(o,p){if(Tv(o)&&p!==4){let m=UCt(o.parent,!p);if(m>=0)return Hh[m]}return I$e(o,0)}function mTe(o,p){return K1(p)||kDt(p)!==0?Akr(o,p):Pkr(o,p)}function Akr(o,p){let m=pUe(o,er);m=zCt(p,bN(p),m);let v=_6(qy.IntrinsicAttributes,p);return si(v)||(m=_se(v,m)),m}function wkr(o,p){if(o.compositeSignatures){let v=[];for(let E of o.compositeSignatures){let D=Tl(E);if(Mi(D))return D;let R=en(D,p);if(!R)return;v.push(R)}return Ac(v)}let m=Tl(o);return Mi(m)?m:en(m,p)}function Ikr(o){if(K1(o))return RDt(o);if(M7(o.tagName)){let m=XCt(o),v=wTe(o,m);return aN(v)}let p=Bp(o.tagName);if(p.flags&128){let m=ZCt(p,o);if(!m)return Et;let v=wTe(o,m);return aN(v)}return p}function zCt(o,p,m){let v=eCr(p);if(v){let E=Ikr(o),D=tDt(v,Ei(o),E,m);if(D)return D}return m}function Pkr(o,p){let m=bN(p),v=rCr(m),E=v===void 0?pUe(o,er):v===""?Tl(o):wkr(o,v);if(!E)return v&&te(p.attributes.properties)&>(p,x.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,oa(v)),er;if(E=zCt(p,m,E),Mi(E))return E;{let D=E,R=_6(qy.IntrinsicClassAttributes,p);if(!si(R)){let se=Dc(R.symbol),ce=Tl(o),fe;if(se){let Ue=QE([ce],se,qb(se),Ei(p));fe=Oa(R,ty(se,Ue))}else fe=R;D=_se(fe,D)}let K=_6(qy.IntrinsicAttributes,p);return si(K)||(D=_se(K,D)),D}}function Nkr(o){return rm(Q,"noImplicitAny")?nl(o,(p,m)=>p===m||!p?p:T2t(p.typeParameters,m.typeParameters)?Rkr(p,m):void 0):void 0}function Okr(o,p,m){if(!o||!p)return o||p;let v=Do([di(o),Oa(di(p),m)]);return mN(o,v)}function Fkr(o,p,m){let v=xg(o),E=xg(p),D=v>=E?o:p,R=D===o?p:o,K=D===o?v:E,se=Wb(o)||Wb(p),ce=se&&!Wb(D),fe=new Array(K+(ce?1:0));for(let Ue=0;Ue=Jv(D)&&Ue>=Jv(R),on=Ue>=v?void 0:tJ(o,Ue),Hn=Ue>=E?void 0:tJ(p,Ue),fi=on===Hn?on:on?Hn?void 0:on:Hn,sn=zc(1|(kr&&!Xt?16777216:0),fi||`arg${Ue}`,Xt?32768:kr?16384:0);sn.links.type=Xt?um(Jt):Jt,fe[Ue]=sn}if(ce){let Ue=zc(1,"args",32768);Ue.links.type=um(qv(R,K)),R===p&&(Ue.links.type=Oa(Ue.links.type,m)),fe[K]=Ue}return fe}function Rkr(o,p){let m=o.typeParameters||p.typeParameters,v;o.typeParameters&&p.typeParameters&&(v=ty(p.typeParameters,o.typeParameters));let E=(o.flags|p.flags)&166,D=o.declaration,R=Fkr(o,p,v),K=Yr(R);K&&Fp(K)&32768&&(E|=1);let se=Okr(o.thisParameter,p.thisParameter,v),ce=Math.max(o.minArgumentCount,p.minArgumentCount),fe=GS(D,m,se,R,void 0,void 0,ce,E);return fe.compositeKind=2097152,fe.compositeSignatures=go(o.compositeKind===2097152&&o.compositeSignatures||[o],[p]),v&&(fe.mapper=o.compositeKind===2097152&&o.mapper&&o.compositeSignatures?Tw(o.mapper,v):v),fe}function R$e(o,p){let m=Gs(o,0),v=yr(m,E=>!Lkr(E,p));return v.length===1?v[0]:Nkr(v)}function Lkr(o,p){let m=0;for(;m{let R=u.getTokenEnd();if(v.category===3&&m&&R===m.start&&E===m.length){let K=tF(p.fileName,p.text,R,E,v,D);ac(m,K)}else(!m||R!==m.start)&&(m=md(p,R,E,v,D),il.add(m))}),u.setText(p.text,o.pos,o.end-o.pos);try{return u.scan(),$.assert(u.reScanSlashToken(!0)===14,"Expected scanner to rescan RegularExpressionLiteral"),!!m}finally{u.setText(""),u.setOnError(void 0)}}return!1}function jkr(o){let p=Ki(o);return p.flags&1||(p.flags|=1,a(()=>Mkr(o))),Kp}function Bkr(o,p){reKq(Me)||Xh(Me)&&!Me.nameType&&!!cZ(Me.target||Me)),Ue=!1;for(let Me=0;MeR[yt]&8?YC(Me,Ir)||at:Me),2):be?cn:Y,se))}function JCt(o){if(!(ro(o)&4))return o;let p=o.literalType;return p||(p=o.literalType=Q2t(o),p.objectFlags|=147456),p}function zkr(o){switch(o.kind){case 168:return qkr(o);case 80:return $x(o.escapedText);case 9:case 11:return $x(o.text);default:return!1}}function qkr(o){return Hf(sv(o),296)}function sv(o){let p=Ki(o.expression);if(!p.resolvedType){if((fh(o.parent.parent)||Co(o.parent.parent)||Af(o.parent.parent))&&wi(o.expression)&&o.expression.operatorToken.kind===103&&o.parent.kind!==178&&o.parent.kind!==179)return p.resolvedType=Et;if(p.resolvedType=Va(o.expression),ps(o.parent)&&!fd(o.parent)&&w_(o.parent.parent)){let m=yv(o.parent.parent),v=T$e(m);v&&(Ki(v).flags|=4096,Ki(o).flags|=32768,Ki(o.parent.parent).flags|=32768)}(p.resolvedType.flags&98304||!Hf(p.resolvedType,402665900)&&!tc(p.resolvedType,Uo))&>(o,x.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return p.resolvedType}function Jkr(o){var p;let m=(p=o.declarations)==null?void 0:p[0];return $x(o.escapedName)||m&&Vp(m)&&zkr(m.name)}function VCt(o){var p;let m=(p=o.declarations)==null?void 0:p[0];return AU(o)||m&&Vp(m)&&dc(m.name)&&Hf(sv(m.name),4096)}function Vkr(o){var p;let m=(p=o.declarations)==null?void 0:p[0];return m&&Vp(m)&&dc(m.name)}function EZ(o,p,m,v){var E;let D=[],R;for(let se=p;se0&&(R=o6(R,sn(),o.symbol,Jt,ce),D=[],E=ic(),kr=!1,on=!1,Hn=!1);let Fa=S1(Va(rn.expression,p&2));if(Xse(Fa)){let ho=EBe(Fa,ce);if(v&&HCt(ho,v,rn),fi=D.length,si(R))continue;R=o6(R,ho,o.symbol,Jt,ce)}else gt(rn,x.Spread_types_may_only_be_created_from_object_types),R=Et;continue}else $.assert(rn.kind===178||rn.kind===179),B7(rn);wo&&!(wo.flags&8576)?tc(wo,Uo)&&(tc(wo,Ir)?on=!0:tc(wo,wr)?Hn=!0:kr=!0,m&&(Xt=!0)):E.set(vi.escapedName,vi),D.push(vi)}if(xZ(),si(R))return Et;if(R!==kc)return D.length>0&&(R=o6(R,sn(),o.symbol,Jt,ce),D=[],E=ic(),kr=!1,on=!1),hp(R,rn=>rn===kc?sn():rn);return sn();function sn(){let rn=[],vi=nJ(o);kr&&rn.push(EZ(vi,fi,D,Mt)),on&&rn.push(EZ(vi,fi,D,Ir)),Hn&&rn.push(EZ(vi,fi,D,wr));let wo=mp(o.symbol,E,j,j,rn);return wo.objectFlags|=Jt|128|131072,yt&&(wo.objectFlags|=4096),Xt&&(wo.objectFlags|=512),m&&(wo.pattern=o),wo}}function Xse(o){let p=wkt(hp(o,HS));return!!(p.flags&126615553||p.flags&3145728&&ht(p.types,Xse))}function Gkr(o){M$e(o)}function Hkr(o,p){return B7(o),ece(o)||at}function Kkr(o){M$e(o.openingElement),M7(o.closingElement.tagName)?vTe(o.closingElement):Va(o.closingElement.tagName),yTe(o)}function Qkr(o,p){return B7(o),ece(o)||at}function Zkr(o){M$e(o.openingFragment);let p=Pn(o);lne(Q)&&(Q.jsxFactory||p.pragmas.has("jsx"))&&!Q.jsxFragmentFactory&&!p.pragmas.has("jsxfrag")&>(o,Q.jsxFactory?x.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:x.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),yTe(o);let m=ece(o);return si(m)?at:m}function L$e(o){return o.includes("-")}function M7(o){return ct(o)&&eL(o.escapedText)||Ev(o)}function WCt(o,p){return o.initializer?iJ(o.initializer,p):Rt}function GCt(o,p=0){let m=be?ic():void 0,v=ic(),E=o_,D=!1,R,K=!1,se=2048,ce=Yse(bN(o)),fe=K1(o),Ue,Me=o;if(!fe){let Xt=o.attributes;Ue=Xt.symbol,Me=Xt;let kr=Eh(Xt,0);for(let on of Xt.properties){let Hn=on.symbol;if(NS(on)){let fi=WCt(on,p);se|=ro(fi)&458752;let sn=zc(4|Hn.flags,Hn.escapedName);if(sn.declarations=Hn.declarations,sn.parent=Hn.parent,Hn.valueDeclaration&&(sn.valueDeclaration=Hn.valueDeclaration),sn.links.type=fi,sn.links.target=Hn,v.set(sn.escapedName,sn),m?.set(sn.escapedName,sn),YU(on.name)===ce&&(K=!0),kr){let rn=vc(kr,Hn.escapedName);rn&&rn.declarations&&th(rn)&&ct(on.name)&&g1(on.name,rn.declarations,on.name.escapedText)}if(kr&&p&2&&!(p&4)&&r0(on)){let rn=p6(Xt);$.assert(rn);let vi=on.initializer.expression;YBe(rn,vi,fi)}}else{$.assert(on.kind===294),v.size>0&&(E=o6(E,Jt(),Xt.symbol,se,!1),v=ic());let fi=S1(Va(on.expression,p&2));Mi(fi)&&(D=!0),Xse(fi)?(E=o6(E,fi,Xt.symbol,se,!1),m&&HCt(fi,m,on)):(gt(on.expression,x.Spread_types_may_only_be_created_from_object_types),R=R?Ac([R,fi]):fi)}}D||v.size>0&&(E=o6(E,Jt(),Xt.symbol,se,!1))}let yt=o.parent;if((PS(yt)&&yt.openingElement===o||DA(yt)&&yt.openingFragment===o)&&YR(yt.children).length>0){let Xt=yTe(yt,p);if(!D&&ce&&ce!==""){K&>(Me,x._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,oa(ce));let kr=Tv(o)?ww(o.attributes,void 0):void 0,on=kr&&Aw(kr,ce),Hn=zc(4,ce);Hn.links.type=Xt.length===1?Xt[0]:on&&j0(on,Kq)?Jb(Xt):um(Do(Xt)),Hn.valueDeclaration=W.createPropertySignature(void 0,oa(ce),void 0,void 0),xl(Hn.valueDeclaration,Me),Hn.valueDeclaration.symbol=Hn;let fi=ic();fi.set(ce,Hn),E=o6(E,mp(Ue,fi,j,j,j),Ue,se,!1)}}if(D)return at;if(R&&E!==o_)return Ac([R,E]);return R||(E===o_?Jt():E);function Jt(){return se|=8192,Xkr(se,Ue,v)}}function Xkr(o,p,m){let v=mp(p,m,j,j,j);return v.objectFlags|=o|8192|128|131072,v}function yTe(o,p){let m=[];for(let v of o.children)if(v.kind===12)v.containsOnlyTriviaWhiteSpaces||m.push(Mt);else{if(v.kind===295&&!v.expression)continue;m.push(iJ(v,p))}return m}function HCt(o,p,m){for(let v of $l(o))if(!(v.flags&16777216)){let E=p.get(v.escapedName);if(E){let D=gt(E.valueDeclaration,x._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,oa(E.escapedName));ac(D,xi(m,x.This_spread_always_overwrites_this_property))}}}function Ykr(o,p){return GCt(o.parent,p)}function _6(o,p){let m=bN(p),v=m&&Zg(m),E=v&&Nf(v,o,788968);return E?Tu(E):Et}function vTe(o){let p=Ki(o);if(!p.resolvedSymbol){let m=_6(qy.IntrinsicElements,o);if(si(m))return Fe&>(o,x.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,oa(qy.IntrinsicElements)),p.resolvedSymbol=ye;{if(!ct(o.tagName)&&!Ev(o.tagName))return $.fail();let v=Ev(o.tagName)?cF(o.tagName):o.tagName.escapedText,E=vc(m,v);if(E)return p.jsxFlags|=1,p.resolvedSymbol=E;let D=Swt(m,Sg(oa(v)));return D?(p.jsxFlags|=2,p.resolvedSymbol=D):_o(m,v)?(p.jsxFlags|=2,p.resolvedSymbol=m.symbol):(gt(o,x.Property_0_does_not_exist_on_type_1,sge(o.tagName),"JSX."+qy.IntrinsicElements),p.resolvedSymbol=ye)}}return p.resolvedSymbol}function STe(o){let p=o&&Pn(o),m=p&&Ki(p);if(m&&m.jsxImplicitImportContainer===!1)return;if(m&&m.jsxImplicitImportContainer)return m.jsxImplicitImportContainer;let v=une(yH(Q,p),Q);if(!v)return;let D=km(Q)===1?x.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:x.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed,R=R6r(p,v),K=V3(R||o,v,D,o),se=K&&K!==ye?cl(O_(K)):void 0;return m&&(m.jsxImplicitImportContainer=se||!1),se}function bN(o){let p=o&&Ki(o);if(p&&p.jsxNamespace)return p.jsxNamespace;if(!p||p.jsxNamespace!==!1){let v=STe(o);if(!v||v===ye){let E=X1(o);v=$t(o,E,1920,void 0,!1)}if(v){let E=O_(Nf(Zg(O_(v)),qy.JSX,1920));if(E&&E!==ye)return p&&(p.jsxNamespace=E),E}p&&(p.jsxNamespace=!1)}let m=O_(BM(qy.JSX,1920,void 0));if(m!==ye)return m}function KCt(o,p){let m=p&&Nf(p.exports,o,788968),v=m&&Tu(m),E=v&&$l(v);if(E){if(E.length===0)return"";if(E.length===1)return E[0].escapedName;E.length>1&&m.declarations&>(m.declarations[0],x.The_global_type_JSX_0_may_not_have_more_than_one_property,oa(o))}}function eCr(o){return o&&Nf(o.exports,qy.LibraryManagedAttributes,788968)}function tCr(o){return o&&Nf(o.exports,qy.ElementType,788968)}function rCr(o){return KCt(qy.ElementAttributesPropertyNameContainer,o)}function Yse(o){return Q.jsx===4||Q.jsx===5?"children":KCt(qy.ElementChildrenAttributeNameContainer,o)}function QCt(o,p){if(o.flags&4)return[jn];if(o.flags&128){let E=ZCt(o,p);return E?[wTe(p,E)]:(gt(p,x.Property_0_does_not_exist_on_type_1,o.value,"JSX."+qy.IntrinsicElements),j)}let m=nh(o),v=Gs(m,1);return v.length===0&&(v=Gs(m,0)),v.length===0&&m.flags&1048576&&(v=Rje(Cr(m.types,E=>QCt(E,p)))),v}function ZCt(o,p){let m=_6(qy.IntrinsicElements,p);if(!si(m)){let v=o.value,E=vc(m,dp(v));if(E)return di(E);let D=vw(m,Mt);return D||void 0}return at}function nCr(o,p,m){if(o===1){let E=eDt(m);E&&R0(p,E,am,m.tagName,x.Its_return_type_0_is_not_a_valid_JSX_element,v)}else if(o===0){let E=YCt(m);E&&R0(p,E,am,m.tagName,x.Its_instance_type_0_is_not_a_valid_JSX_element,v)}else{let E=eDt(m),D=YCt(m);if(!E||!D)return;let R=Do([E,D]);R0(p,R,am,m.tagName,x.Its_element_type_0_is_not_a_valid_JSX_element,v)}function v(){let E=Sp(m.tagName);return ws(void 0,x._0_cannot_be_used_as_a_JSX_component,E)}}function XCt(o){var p;$.assert(M7(o.tagName));let m=Ki(o);if(!m.resolvedJsxElementAttributesType){let v=vTe(o);if(m.jsxFlags&1)return m.resolvedJsxElementAttributesType=di(v)||Et;if(m.jsxFlags&2){let E=Ev(o.tagName)?cF(o.tagName):o.tagName.escapedText;return m.resolvedJsxElementAttributesType=((p=D7(_6(qy.IntrinsicElements,o),E))==null?void 0:p.type)||Et}else return m.resolvedJsxElementAttributesType=Et}return m.resolvedJsxElementAttributesType}function YCt(o){let p=_6(qy.ElementClass,o);if(!si(p))return p}function ece(o){return _6(qy.Element,o)}function eDt(o){let p=ece(o);if(p)return Do([p,mr])}function iCr(o){let p=bN(o);if(!p)return;let m=tCr(p);if(!m)return;let v=tDt(m,Ei(o));if(!(!v||si(v)))return v}function tDt(o,p,...m){let v=Tu(o);if(o.flags&524288){let E=io(o).typeParameters;if(te(E)>=m.length){let D=QE(m,E,m.length,p);return te(D)===0?v:MM(o,D)}}if(te(v.typeParameters)>=m.length){let E=QE(m,v.typeParameters,m.length,p);return f2(v,E)}}function oCr(o){let p=_6(qy.IntrinsicElements,o);return p?$l(p):j}function aCr(o){(Q.jsx||0)===0&>(o,x.Cannot_use_JSX_unless_the_jsx_flag_is_provided),ece(o)===void 0&&Fe&>(o,x.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function M$e(o){let p=Em(o);p&&a6r(o),aCr(o),x$e(o);let m=HM(o);if(PTe(m,o),p){let v=o,E=iCr(v);if(E!==void 0){let D=v.tagName,R=M7(D)?Sg(sge(D)):Va(D);R0(R,E,am,D,x.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let K=Sp(D);return ws(void 0,x._0_cannot_be_used_as_a_JSX_component,K)})}else nCr(kDt(v),Tl(m),v)}}function bTe(o,p,m){if(o.flags&524288&&(t6(o,p)||D7(o,p)||QQ(p)&&oT(o,Mt)||m&&L$e(p)))return!0;if(o.flags&33554432)return bTe(o.baseType,p,m);if(o.flags&3145728&&kZ(o)){for(let v of o.types)if(bTe(v,p,m))return!0}return!1}function kZ(o){return!!(o.flags&524288&&!(ro(o)&512)||o.flags&67108864||o.flags&33554432&&kZ(o.baseType)||o.flags&1048576&&Pt(o.types,kZ)||o.flags&2097152&&ht(o.types,kZ))}function sCr(o,p){if(c6r(o),o.expression){let m=Va(o.expression,p);return o.dotDotDotToken&&m!==at&&!L0(m)&>(o,x.JSX_spread_child_must_be_an_array_type),m}else return Et}function j$e(o){return o.valueDeclaration?f6(o.valueDeclaration):0}function B$e(o){if(o.flags&8192||Fp(o)&4)return!0;if(Ei(o.valueDeclaration)){let p=o.valueDeclaration.parent;return p&&wi(p)&&m_(p)===3}}function $$e(o,p,m,v,E,D=!0){let R=D?o.kind===167?o.right:o.kind===206?o:o.kind===209&&o.propertyName?o.propertyName:o.name:void 0;return rDt(o,p,m,v,E,R)}function rDt(o,p,m,v,E,D){var R;let K=S0(E,m);if(p){if(re<2&&nDt(E))return D&>(D,x.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(K&64)return D&>(D,x.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Ua(E),ri(N7(E))),!1;if(!(K&256)&&((R=E.declarations)!=null&&R.some(DPe)))return D&>(D,x.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Ua(E)),!1}if(K&64&&nDt(E)&&(PG(o)||D6e(o)||$y(o.parent)&&Sre(o.parent.parent))){let ce=JT(Od(E));if(ce&&iPr(o))return D&>(D,x.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Ua(E),g0(ce.name)),!1}if(!(K&6))return!0;if(K&2){let ce=JT(Od(E));return VUe(o,ce)?!0:(D&>(D,x.Property_0_is_private_and_only_accessible_within_class_1,Ua(E),ri(N7(E))),!1)}if(p)return!0;let se=ywt(o,ce=>{let fe=Tu($i(ce));return vkt(fe,E,m)});return!se&&(se=cCr(o),se=se&&vkt(se,E,m),K&256||!se)?(D&>(D,x.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Ua(E),ri(N7(E)||v)),!1):K&256?!0:(v.flags&262144&&(v=v.isThisType?Th(v):Gf(v)),!v||!eo(v,se)?(D&>(D,x.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Ua(E),ri(se),ri(v)),!1):!0)}function cCr(o){let p=lCr(o),m=p?.type&&Sa(p.type);if(m)m.flags&262144&&(m=Th(m));else{let v=Hm(o,!1,!1);Rs(v)&&(m=D$e(v))}if(m&&ro(m)&7)return Fn(m)}function lCr(o){let p=Hm(o,!1,!1);return p&&Rs(p)?cP(p):void 0}function nDt(o){return!!Fse(o,p=>!(p.flags&8192))}function WM(o){return ZS(Va(o),o)}function tce(o){return Uv(o,50331648)}function U$e(o){return tce(o)?b2(o):o}function uCr(o,p){let m=ru(o)?Rg(o):void 0;if(o.kind===106){gt(o,x.The_value_0_cannot_be_used_here,"null");return}if(m!==void 0&&m.length<100){if(ct(o)&&m==="undefined"){gt(o,x.The_value_0_cannot_be_used_here,"undefined");return}gt(o,p&16777216?p&33554432?x._0_is_possibly_null_or_undefined:x._0_is_possibly_undefined:x._0_is_possibly_null,m)}else gt(o,p&16777216?p&33554432?x.Object_is_possibly_null_or_undefined:x.Object_is_possibly_undefined:x.Object_is_possibly_null)}function pCr(o,p){gt(o,p&16777216?p&33554432?x.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:x.Cannot_invoke_an_object_which_is_possibly_undefined:x.Cannot_invoke_an_object_which_is_possibly_null)}function iDt(o,p,m){if(be&&o.flags&2){if(ru(p)){let E=Rg(p);if(E.length<100)return gt(p,x._0_is_of_type_unknown,E),Et}return gt(p,x.Object_is_of_type_unknown),Et}let v=zM(o,50331648);if(v&50331648){m(p,v);let E=b2(o);return E.flags&229376?Et:E}return o}function ZS(o,p){return iDt(o,p,uCr)}function oDt(o,p){let m=ZS(o,p);if(m.flags&16384){if(ru(p)){let v=Rg(p);if(ct(p)&&v==="undefined")return gt(p,x.The_value_0_cannot_be_used_here,v),m;if(v.length<100)return gt(p,x._0_is_possibly_undefined,v),m}gt(p,x.Object_is_possibly_undefined)}return m}function xTe(o,p,m){return o.flags&64?_Cr(o,p):q$e(o,o.expression,WM(o.expression),o.name,p,m)}function _Cr(o,p){let m=Va(o.expression),v=fZ(m,o.expression);return Gxe(q$e(o,o.expression,ZS(v,o.expression),o.name,p),o,v!==m)}function aDt(o,p){let m=Tre(o)&&pC(o.left)?ZS(Kse(o.left),o.left):WM(o.left);return q$e(o,o.left,m,o.right,p)}function z$e(o){for(;o.parent.kind===218;)o=o.parent;return mS(o.parent)&&o.parent.expression===o}function rce(o,p){for(let m=yre(p);m;m=Cf(m)){let{symbol:v}=m,E=XG(v,o),D=v.members&&v.members.get(E)||v.exports&&v.exports.get(E);if(D)return D}}function dCr(o){if(!Cf(o))return mn(o,x.Private_identifiers_are_not_allowed_outside_class_bodies);if(!Vne(o.parent)){if(!Tb(o))return mn(o,x.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);let p=wi(o.parent)&&o.parent.operatorToken.kind===103;if(!TTe(o)&&!p)return mn(o,x.Cannot_find_name_0,Zi(o))}return!1}function fCr(o){dCr(o);let p=TTe(o);return p&&ice(p,void 0,!1),at}function TTe(o){if(!Tb(o))return;let p=Ki(o);return p.resolvedSymbol===void 0&&(p.resolvedSymbol=rce(o.escapedText,o)),p.resolvedSymbol}function ETe(o,p){return vc(o,p.escapedName)}function mCr(o,p,m){let v,E=$l(o);E&&X(E,R=>{let K=R.valueDeclaration;if(K&&Vp(K)&&Aa(K.name)&&K.name.escapedText===p.escapedText)return v=R,!0});let D=gg(p);if(v){let R=$.checkDefined(v.valueDeclaration),K=$.checkDefined(Cf(R));if(m?.valueDeclaration){let se=m.valueDeclaration,ce=Cf(se);if($.assert(!!ce),fn(ce,fe=>K===fe)){let fe=gt(p,x.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,D,ri(o));return ac(fe,xi(se,x.The_shadowing_declaration_of_0_is_defined_here,D),xi(R,x.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,D)),!0}}return gt(p,x.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,D,gg(K.name||qye)),!0}return!1}function sDt(o,p){return(rT(p)||PG(o)&&$b(p))&&Hm(o,!0,!1)===yi(p)}function q$e(o,p,m,v,E,D){let R=Ki(p).resolvedSymbol,K=cC(o),se=nh(K!==0||z$e(o)?ry(m):m),ce=Mi(se)||se===lr,fe;if(Aa(v)){(re{switch(m.kind){case 173:case 176:return!0;case 187:case 288:return"quit";case 220:return p?!1:"quit";case 242:return lu(m.parent)&&m.parent.kind!==220?"quit":!1;default:return!1}})}function gCr(o){if(!(o.parent.flags&32))return!1;let p=di(o.parent);for(;;){if(p=p.symbol&&yCr(p),!p)return!1;let m=vc(p,o.escapedName);if(m&&m.valueDeclaration)return!0}}function yCr(o){let p=ov(o);if(p.length!==0)return Ac(p)}function lDt(o,p,m){let v=Ki(o),E=v.nonExistentPropCheckCache||(v.nonExistentPropCheckCache=new Set),D=`${ff(p)}|${m}`;if(E.has(D))return;E.add(D);let R,K;if(!Aa(o)&&p.flags&1048576&&!(p.flags&402784252)){for(let ce of p.types)if(!vc(ce,o.escapedText)&&!D7(ce,o.escapedText)){R=ws(R,x.Property_0_does_not_exist_on_type_1,du(o),ri(ce));break}}if(uDt(o.escapedText,p)){let ce=du(o),fe=ri(p);R=ws(R,x.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,ce,fe,fe+"."+ce)}else{let ce=LZ(p);if(ce&&vc(ce,o.escapedText))R=ws(R,x.Property_0_does_not_exist_on_type_1,du(o),ri(p)),K=xi(o,x.Did_you_forget_to_use_await);else{let fe=du(o),Ue=ri(p),Me=bCr(fe,p);if(Me!==void 0)R=ws(R,x.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,fe,Ue,Me);else{let yt=W$e(o,p);if(yt!==void 0){let Jt=vp(yt),Xt=m?x.Property_0_may_not_exist_on_type_1_Did_you_mean_2:x.Property_0_does_not_exist_on_type_1_Did_you_mean_2;R=ws(R,Xt,fe,Ue,Jt),K=yt.valueDeclaration&&xi(yt.valueDeclaration,x._0_is_declared_here,Jt)}else{let Jt=vCr(p)?x.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:x.Property_0_does_not_exist_on_type_1;R=ws(Jje(R,p),Jt,fe,Ue)}}}}let se=Nx(Pn(o),o,R);K&&ac(se,K),Kx(!m||R.code!==x.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,se)}function vCr(o){return Q.lib&&!Q.lib.includes("lib.dom.d.ts")&&TEr(o,p=>p.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(oa(p.symbol.escapedName)))&&v2(o)}function uDt(o,p){let m=p.symbol&&vc(di(p.symbol),o);return m!==void 0&&!!m.valueDeclaration&&oc(m.valueDeclaration)}function SCr(o){let p=gg(o),v=Tme().get(p);return v&&Gu(v.keys())}function bCr(o,p){let m=nh(p).symbol;if(!m)return;let v=vp(m),D=Tme().get(v);if(D){for(let[R,K]of D)if(un(K,o))return R}}function pDt(o,p){return nce(o,$l(p),106500)}function W$e(o,p){let m=$l(p);if(typeof o!="string"){let v=o.parent;no(v)&&(m=yr(m,E=>hDt(v,p,E))),o=Zi(o)}return nce(o,m,111551)}function _Dt(o,p){let m=Ni(o)?o:Zi(o),v=$l(p);return(m==="for"?wt(v,D=>vp(D)==="htmlFor"):m==="class"?wt(v,D=>vp(D)==="className"):void 0)??nce(m,v,111551)}function dDt(o,p){let m=W$e(o,p);return m&&vp(m)}function xCr(o,p,m){let v=Nf(o,p,m);if(v)return v;let E;return o===It?E=Wn(["string","number","boolean","object","bigint","symbol"],R=>o.has(R.charAt(0).toUpperCase()+R.slice(1))?zc(524288,R):void 0).concat(so(o.values())):E=so(o.values()),nce(oa(p),E,m)}function fDt(o,p,m){return $.assert(p!==void 0,"outername should always be defined"),Dr(o,p,m,void 0,!1,!1)}function G$e(o,p){return p.exports&&nce(Zi(o),m7(p),2623475)}function TCr(o,p,m){function v(R){let K=t6(o,R);if(K){let se=TN(di(K));return!!se&&Jv(se)>=1&&tc(m,qv(se,0))}return!1}let E=lC(p)?"set":"get";if(!v(E))return;let D=cH(p.expression);return D===void 0?D=E:D+="."+E,D}function ECr(o,p){let m=p.types.filter(v=>!!(v.flags&128));return xx(o.value,m,v=>v.value)}function nce(o,p,m){return xx(o,p,v);function v(E){let D=vp(E);if(!Ca(D,'"')){if(E.flags&m)return D;if(E.flags&2097152){let R=p7(E);if(R&&R.flags&m)return D}}}}function ice(o,p,m){let v=o&&o.flags&106500&&o.valueDeclaration;if(!v)return;let E=Bg(v,2),D=o.valueDeclaration&&Vp(o.valueDeclaration)&&Aa(o.valueDeclaration.name);if(!(!E&&!D)&&!(p&&Yre(p)&&!(o.flags&65536))){if(m){let R=fn(p,lu);if(R&&R.symbol===o)return}(Fp(o)&1?io(o).target:o).isReferenced=-1}}function mDt(o,p){return o.kind===110||!!p&&ru(o)&&p===Fm(_h(o))}function kCr(o,p){switch(o.kind){case 212:return H$e(o,o.expression.kind===108,p,ry(Va(o.expression)));case 167:return H$e(o,!1,p,ry(Va(o.left)));case 206:return H$e(o,!1,p,Sa(o))}}function hDt(o,p,m){return K$e(o,o.kind===212&&o.expression.kind===108,!1,p,m)}function H$e(o,p,m,v){if(Mi(v))return!0;let E=vc(v,m);return!!E&&K$e(o,p,!1,v,E)}function K$e(o,p,m,v,E){if(Mi(v))return!0;if(E.valueDeclaration&&Tm(E.valueDeclaration)){let D=Cf(E.valueDeclaration);return!xm(o)&&!!fn(o,R=>R===D)}return rDt(o,p,m,v,E)}function CCr(o){let p=o.initializer;if(p.kind===262){let m=p.declarations[0];if(m&&!$s(m.name))return $i(m)}else if(p.kind===80)return Fm(p)}function DCr(o){return lm(o).length===1&&!!oT(o,Ir)}function ACr(o){let p=bl(o);if(p.kind===80){let m=Fm(p);if(m.flags&3){let v=o,E=o.parent;for(;E;){if(E.kind===250&&v===E.statement&&CCr(E)===m&&DCr(Kf(E.expression)))return!0;v=E,E=E.parent}}}return!1}function wCr(o,p){return o.flags&64?ICr(o,p):gDt(o,WM(o.expression),p)}function ICr(o,p){let m=Va(o.expression),v=fZ(m,o.expression);return Gxe(gDt(o,ZS(v,o.expression),p),o,v!==m)}function gDt(o,p,m){let v=cC(o)!==0||z$e(o)?ry(p):p,E=o.argumentExpression,D=Va(E);if(si(v)||v===lr)return v;if(RTe(v)&&!Sl(E))return gt(E,x.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Et;let R=ACr(E)?Ir:D,K=cC(o),se;K===0?se=32:(se=4|(uN(v)&&!XU(v)?2:0),K===2&&(se|=32));let ce=YC(v,R,se,o)||Et;return CAt(cDt(o,Ki(o).resolvedSymbol,ce,E,m),o)}function yDt(o){return mS(o)||xA(o)||Em(o)}function xN(o){return yDt(o)&&X(o.typeArguments,Pc),o.kind===216?Va(o.template):Em(o)?Va(o.attributes):wi(o)?Va(o.left):mS(o)&&X(o.arguments,p=>{Va(p)}),jn}function zv(o){return xN(o),So}function PCr(o,p,m){let v,E,D=0,R,K=-1,se;$.assert(!p.length);for(let ce of o){let fe=ce.declaration&&$i(ce.declaration),Ue=ce.declaration&&ce.declaration.parent;!E||fe===E?v&&Ue===v?R=R+1:(v=Ue,R=D):(R=D=p.length,v=Ue),E=fe,__t(ce)?(K++,se=K,D++):se=R,p.splice(se,0,m?fbr(ce,m):ce)}}function kTe(o){return!!o&&(o.kind===231||o.kind===238&&o.isSpread)}function Q$e(o){return hr(o,kTe)}function vDt(o){return!!(o.flags&16384)}function NCr(o){return!!(o.flags&49155)}function CTe(o,p,m,v=!1){if(K1(o))return!0;let E,D=!1,R=xg(m),K=Jv(m);if(o.kind===216)if(E=p.length,o.template.kind===229){let se=Sn(o.template.templateSpans);D=Op(se.literal)||!!se.literal.isUnterminated}else{let se=o.template;$.assert(se.kind===15),D=!!se.isUnterminated}else if(o.kind===171)E=DDt(o,m);else if(o.kind===227)E=1;else if(Em(o)){if(D=o.attributes.end===o.end,D)return!0;E=K===0?p.length:1,R=p.length===0?R:1,K=Math.min(K,1)}else if(o.arguments){E=v?p.length+1:p.length,D=o.arguments.end===o.end;let se=Q$e(p);if(se>=0)return se>=Jv(m)&&(Wb(m)||seR)return!1;if(D||E>=K)return!0;for(let se=E;se=v&&p.length<=m}function SDt(o,p){let m;return!!(o.target&&(m=d6(o.target,p))&&xw(m))}function TN(o){return CZ(o,0,!1)}function bDt(o){return CZ(o,0,!1)||CZ(o,1,!1)}function CZ(o,p,m){if(o.flags&524288){let v=jv(o);if(m||v.properties.length===0&&v.indexInfos.length===0){if(p===0&&v.callSignatures.length===1&&v.constructSignatures.length===0)return v.callSignatures[0];if(p===1&&v.constructSignatures.length===1&&v.callSignatures.length===0)return v.constructSignatures[0]}}}function xDt(o,p,m,v){let E=gZ(W2t(o),o,0,v),D=wZ(p),R=m&&(D&&D.flags&262144?m.nonFixingMapper:m.mapper),K=R?dN(p,R):p;return QBe(K,o,(se,ce)=>{lT(E.inferences,se,ce)}),m||ZBe(p,o,(se,ce)=>{lT(E.inferences,se,ce,128)}),rZ(o,l$e(E),Ei(p.declaration))}function OCr(o,p,m,v){let E=mTe(p,o),D=KM(o.attributes,E,v,m);return lT(v.inferences,D,E),l$e(v)}function TDt(o){if(!o)return pn;let p=Va(o);return l4e(o)?p:Y$(o.parent)?b2(p):xm(o.parent)?Wxe(p):p}function X$e(o,p,m,v,E){if(Em(o))return OCr(o,p,v,E);if(o.kind!==171&&o.kind!==227){let se=ht(p.typeParameters,fe=>!!r6(fe)),ce=Eh(o,se?8:0);if(ce){let fe=Tl(p);if(iD(fe)){let Ue=p6(o);if(!(!se&&Eh(o,8)!==ce)){let Xt=t$e(Okt(Ue,1)),kr=Oa(ce,Xt),on=TN(kr),Hn=on&&on.typeParameters?aN(Qje(on,on.typeParameters)):kr;lT(E.inferences,Hn,fe,128)}let yt=gZ(p.typeParameters,p,E.flags),Jt=Oa(ce,Ue&&NTr(Ue));lT(yt.inferences,Jt,fe),E.returnMapper=Pt(yt.inferences,QM)?t$e(z2r(yt)):void 0}}}let D=IZ(p),R=D?Math.min(xg(p)-1,m.length):m.length;if(D&&D.flags&262144){let se=wt(E.inferences,ce=>ce.typeParameter===D);se&&(se.impliedArity=hr(m,kTe,R)<0?m.length-R:void 0)}let K=Sw(p);if(K&&iD(K)){let se=CDt(o);lT(E.inferences,TDt(se),K)}for(let se=0;se=m-1){let fe=o[m-1];if(kTe(fe)){let Ue=fe.kind===238?fe.type:KM(fe.expression,v,E,D);return YE(Ue)?EDt(Ue):um(tk(33,Ue,Ne,fe.kind===231?fe.expression:fe),R)}}let K=[],se=[],ce=[];for(let fe=p;fews(void 0,x.Type_0_does_not_satisfy_the_constraint_1):void 0,Ue=v||x.Type_0_does_not_satisfy_the_constraint_1;K||(K=ty(D,R));let Me=R[se];if(!pm(Me,Yg(Oa(ce,K),Me),m?p[se]:void 0,Ue,fe))return}}return R}function kDt(o){if(M7(o.tagName))return 2;let p=nh(Va(o.tagName));return te(Gs(p,1))?0:te(Gs(p,0))?1:2}function FCr(o,p,m,v,E,D,R){let K=mTe(p,o),se=K1(o)?GCt(o):KM(o.attributes,K,void 0,v),ce=v&4?hZ(se):se;return fe()&&FBe(ce,K,m,E?K1(o)?o:o.tagName:void 0,K1(o)?void 0:o.attributes,void 0,D,R);function fe(){var Ue;if(STe(o))return!0;let Me=(Tv(o)||u3(o))&&!(M7(o.tagName)||Ev(o.tagName))?Va(o.tagName):void 0;if(!Me)return!0;let yt=Gs(Me,0);if(!te(yt))return!0;let Jt=QUe(o);if(!Jt)return!0;let Xt=jp(Jt,111551,!0,!1,o);if(!Xt)return!0;let kr=di(Xt),on=Gs(kr,0);if(!te(on))return!0;let Hn=!1,fi=0;for(let rn of on){let vi=qv(rn,0),wo=Gs(vi,0);if(te(wo))for(let Fa of wo){if(Hn=!0,Wb(Fa))return!0;let ho=xg(Fa);ho>fi&&(fi=ho)}}if(!Hn)return!0;let sn=1/0;for(let rn of yt){let vi=Jv(rn);vi{E.push(D.expression)}),E}if(o.kind===171)return RCr(o);if(o.kind===227)return[o.left];if(Em(o))return o.attributes.properties.length>0||Tv(o)&&o.parent.children.length>0?[o.attributes]:j;let p=o.arguments||j,m=Q$e(p);if(m>=0){let v=p.slice(0,m);for(let E=m;E{var ce;let fe=R.target.elementFlags[se],Ue=DZ(D,fe&4?um(K):K,!!(fe&12),(ce=R.target.labeledElementDeclarations)==null?void 0:ce[se]);v.push(Ue)}):v.push(D)}return v}return p}function RCr(o){let p=o.expression,m=dUe(o);if(m){let v=[];for(let E of m.parameters){let D=di(E);v.push(DZ(p,D))}return v}return $.fail()}function DDt(o,p){return Q.experimentalDecorators?LCr(o,p):Math.min(Math.max(xg(p),1),2)}function LCr(o,p){switch(o.parent.kind){case 264:case 232:return 1;case 173:return xS(o.parent)?3:2;case 175:case 178:case 179:return p.parameters.length<=2?2:3;case 170:return 3;default:return $.fail()}}function ADt(o){let p=Pn(o),{start:m,length:v}=$4(p,no(o.expression)?o.expression.name:o.expression);return{start:m,length:v,sourceFile:p}}function AZ(o,p,...m){if(Js(o)){let{sourceFile:v,start:E,length:D}=ADt(o);return"message"in p?md(v,E,D,p,...m):Fme(v,p)}else return"message"in p?xi(o,p,...m):Nx(Pn(o),o,p)}function MCr(o){return mS(o)?no(o.expression)?o.expression.name:o.expression:xA(o)?no(o.tag)?o.tag.name:o.tag:Em(o)?o.tagName:o}function jCr(o){if(!Js(o)||!ct(o.expression))return!1;let p=$t(o.expression,o.expression.escapedText,111551,void 0,!1),m=p?.valueDeclaration;if(!m||!wa(m)||!mC(m.parent)||!SP(m.parent.parent)||!ct(m.parent.parent.expression))return!1;let v=oBe(!1);return v?B0(m.parent.parent.expression,!0)===v:!1}function wDt(o,p,m,v){var E;let D=Q$e(m);if(D>-1)return xi(m[D],x.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let R=Number.POSITIVE_INFINITY,K=Number.NEGATIVE_INFINITY,se=Number.NEGATIVE_INFINITY,ce=Number.POSITIVE_INFINITY,fe;for(let Xt of p){let kr=Jv(Xt),on=xg(Xt);krse&&(se=kr),m.lengthE?R=Math.min(R,se):ce1&&(Xt=Fa(on,Rb,sn,rn)),Xt||(Xt=Fa(on,am,sn,rn));let vi=Ki(o);if(vi.resolvedSignature!==Di&&!m)return $.assert(vi.resolvedSignature),vi.resolvedSignature;if(Xt)return Xt;if(Xt=$Cr(o,on,fi,!!m,v),vi.resolvedSignature=Xt,Ue){if(!D&&fe&&(D=x.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),Me)if(Me.length===1||Me.length>3){let ho=Me[Me.length-1],pa;Me.length>3&&(pa=ws(pa,x.The_last_overload_gave_the_following_error),pa=ws(pa,x.No_overload_matches_this_call)),D&&(pa=ws(pa,D));let Ps=oce(o,fi,ho,am,0,!0,()=>pa);if(Ps)for(let El of Ps)ho.declaration&&Me.length>3&&ac(El,xi(ho.declaration,x.The_last_overload_is_declared_here)),wo(ho,El),il.add(El);else $.fail("No error for last overload signature")}else{let ho=[],pa=0,Ps=Number.MAX_VALUE,El=0,qa=0;for(let ei of Me){let mi=oce(o,fi,ei,am,0,!0,()=>ws(void 0,x.Overload_0_of_1_2_gave_the_following_error,qa+1,on.length,HC(ei)));mi?(mi.length<=Ps&&(Ps=mi.length,El=qa),pa=Math.max(pa,mi.length),ho.push(mi)):$.fail("No error for 3 or fewer overload signatures"),qa++}let rp=pa>1?ho[El]:Rc(ho);$.assert(rp.length>0,"No errors reported for 3 or fewer overload signatures");let Zp=ws(Cr(rp,p6e),x.No_overload_matches_this_call);D&&(Zp=ws(Zp,D));let Rm=[...an(rp,ei=>ei.relatedInformation)],Mn;if(ht(rp,ei=>ei.start===rp[0].start&&ei.length===rp[0].length&&ei.file===rp[0].file)){let{file:ei,start:ha,length:mi}=rp[0];Mn={file:ei,start:ha,length:mi,code:Zp.code,category:Zp.category,messageText:Zp,relatedInformation:Rm}}else Mn=Nx(Pn(o),MCr(o),Zp,Rm);wo(Me[0],Mn),il.add(Mn)}else if(yt)il.add(wDt(o,[yt],fi,D));else if(Jt)eUe(Jt,o.typeArguments,!0,D);else if(!ce){let ho=yr(p,pa=>Z$e(pa,Hn));ho.length===0?il.add(BCr(o,p,Hn,D)):il.add(wDt(o,ho,fi,D))}}return Xt;function wo(ho,pa){var Ps,El;let qa=Me,rp=yt,Zp=Jt,Rm=((El=(Ps=ho.declaration)==null?void 0:Ps.symbol)==null?void 0:El.declarations)||j,ei=Rm.length>1?wt(Rm,ha=>lu(ha)&&t1(ha.body)):void 0;if(ei){let ha=t0(ei),mi=!ha.typeParameters;Fa([ha],am,mi)&&ac(pa,xi(ei,x.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}Me=qa,yt=rp,Jt=Zp}function Fa(ho,pa,Ps,El=!1){if(Me=void 0,yt=void 0,Jt=void 0,Ps){let qa=ho[0];if(Pt(Hn)||!CTe(o,fi,qa,El))return;if(oce(o,fi,qa,pa,0,!1,void 0)){Me=[qa];return}return qa}for(let qa=0;qa0),B7(o),v||p.length===1||p.some(D=>!!D.typeParameters)?qCr(o,p,m,E):UCr(p)}function UCr(o){let p=Wn(o,se=>se.thisParameter),m;p.length&&(m=IDt(p,p.map(cce)));let{min:v,max:E}=V4e(o,zCr),D=[];for(let se=0;seAm(fe)?sed6(fe,se))))}let R=Wn(o,se=>Am(se)?Sn(se.parameters):void 0),K=128;if(R.length!==0){let se=um(Do(Wn(o,V2t),2));D.push(PDt(R,se)),K|=1}return o.some(__t)&&(K|=2),GS(o[0].declaration,void 0,m,D,Ac(o.map(Tl)),void 0,v,K)}function zCr(o){let p=o.parameters.length;return Am(o)?p-1:p}function IDt(o,p){return PDt(o,Do(p,2))}function PDt(o,p){return mN(To(o),p)}function qCr(o,p,m,v){let E=WCr(p,St===void 0?m.length:St),D=p[E],{typeParameters:R}=D;if(!R)return D;let K=yDt(o)?o.typeArguments:void 0,se=K?mxe(D,JCr(K,R,Ei(o))):VCr(o,R,D,m,v);return p[E]=se,se}function JCr(o,p,m){let v=o.map($7);for(;v.length>p.length;)v.pop();for(;v.length=p)return E;R>v&&(v=R,m=E)}return m}function GCr(o,p,m){if(o.expression.kind===108){let se=uTe(o.expression);if(Mi(se)){for(let ce of o.arguments)Va(ce);return jn}if(!si(se)){let ce=vv(Cf(o));if(ce){let fe=nT(se,ce.typeArguments,ce);return GM(o,fe,p,m,0)}}return xN(o)}let v,E=Va(o.expression);if(O4(o)){let se=fZ(E,o.expression);v=se===E?0:eU(o)?16:8,E=se}else v=0;if(E=iDt(E,o.expression,pCr),E===lr)return On;let D=nh(E);if(si(D))return zv(o);let R=Gs(D,0),K=Gs(D,1).length;if(ace(E,D,R.length,K))return!si(E)&&o.typeArguments&>(o,x.Untyped_function_calls_may_not_accept_type_arguments),xN(o);if(!R.length){if(K)gt(o,x.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ri(E));else{let se;if(o.arguments.length===1){let ce=Pn(o).text;Dd(ce.charCodeAt(_c(ce,o.expression.end,!0)-1))&&(se=xi(o.expression,x.Are_you_missing_a_semicolon))}rUe(o.expression,D,0,se)}return zv(o)}return m&8&&!o.typeArguments&&R.some(HCr)?(mAt(o,m),Di):R.some(se=>Ei(se.declaration)&&!!X$(se.declaration))?(gt(o,x.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ri(E)),zv(o)):GM(o,R,p,m,v)}function HCr(o){return!!(o.typeParameters&&HUe(Tl(o)))}function ace(o,p,m,v){return Mi(o)||Mi(p)&&!!(o.flags&262144)||!m&&!v&&!(p.flags&1048576)&&!(S1(p).flags&131072)&&tc(o,Vn)}function KCr(o,p,m){let v=WM(o.expression);if(v===lr)return On;if(v=nh(v),si(v))return zv(o);if(Mi(v))return o.typeArguments&>(o,x.Untyped_function_calls_may_not_accept_type_arguments),xN(o);let E=Gs(v,1);if(E.length){if(!QCr(o,E[0]))return zv(o);if(NDt(E,K=>!!(K.flags&4)))return gt(o,x.Cannot_create_an_instance_of_an_abstract_class),zv(o);let R=v.symbol&&JT(v.symbol);return R&&ko(R,64)?(gt(o,x.Cannot_create_an_instance_of_an_abstract_class),zv(o)):GM(o,E,p,m,0)}let D=Gs(v,0);if(D.length){let R=GM(o,D,p,m,0);return Fe||(R.declaration&&!XS(R.declaration)&&Tl(R)!==pn&>(o,x.Only_a_void_function_can_be_called_with_the_new_keyword),Sw(R)===pn&>(o,x.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),R}return rUe(o.expression,v,1),zv(o)}function NDt(o,p){return Zn(o)?Pt(o,m=>NDt(m,p)):o.compositeKind===1048576?Pt(o.compositeSignatures,p):p(o)}function tUe(o,p){let m=ov(p);if(!te(m))return!1;let v=m[0];if(v.flags&2097152){let E=v.types,D=k2t(E),R=0;for(let K of v.types){if(!D[R]&&ro(K)&3&&(K.symbol===o||tUe(o,K)))return!0;R++}return!1}return v.symbol===o?!0:tUe(o,v)}function QCr(o,p){if(!p||!p.declaration)return!0;let m=p.declaration,v=QO(m,6);if(!v||m.kind!==177)return!0;let E=JT(m.parent.symbol),D=Tu(m.parent.symbol);if(!VUe(o,E)){let R=Cf(o);if(R&&v&4){let K=$7(R);if(tUe(m.parent.symbol,K))return!0}return v&2&>(o,x.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,ri(D)),v&4&>(o,x.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,ri(D)),!1}return!0}function ODt(o,p,m){let v,E=m===0,D=j7(p),R=D&&Gs(D,m).length>0;if(p.flags&1048576){let se=p.types,ce=!1;for(let fe of se)if(Gs(fe,m).length!==0){if(ce=!0,v)break}else if(v||(v=ws(v,E?x.Type_0_has_no_call_signatures:x.Type_0_has_no_construct_signatures,ri(fe)),v=ws(v,E?x.Not_all_constituents_of_type_0_are_callable:x.Not_all_constituents_of_type_0_are_constructable,ri(p))),ce)break;ce||(v=ws(void 0,E?x.No_constituent_of_type_0_is_callable:x.No_constituent_of_type_0_is_constructable,ri(p))),v||(v=ws(v,E?x.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:x.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,ri(p)))}else v=ws(v,E?x.Type_0_has_no_call_signatures:x.Type_0_has_no_construct_signatures,ri(p));let K=E?x.This_expression_is_not_callable:x.This_expression_is_not_constructable;if(Js(o.parent)&&o.parent.arguments.length===0){let{resolvedSymbol:se}=Ki(o);se&&se.flags&32768&&(K=x.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:ws(v,K),relatedMessage:R?x.Did_you_forget_to_use_await:void 0}}function rUe(o,p,m,v){let{messageChain:E,relatedMessage:D}=ODt(o,p,m),R=Nx(Pn(o),o,E);if(D&&ac(R,xi(o,D)),Js(o.parent)){let{start:K,length:se}=ADt(o.parent);R.start=K,R.length=se}il.add(R),FDt(p,m,v?ac(R,v):R)}function FDt(o,p,m){if(!o.symbol)return;let v=io(o.symbol).originatingImport;if(v&&!Bh(v)){let E=Gs(di(io(o.symbol).target),p);if(!E||!E.length)return;ac(m,xi(v,x.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function ZCr(o,p,m){let v=Va(o.tag),E=nh(v);if(si(E))return zv(o);let D=Gs(E,0),R=Gs(E,1).length;if(ace(v,E,D.length,R))return xN(o);if(!D.length){if(qf(o.parent)){let K=xi(o.tag,x.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return il.add(K),zv(o)}return rUe(o.tag,E,0),zv(o)}return GM(o,D,p,m,0)}function XCr(o){switch(o.parent.kind){case 264:case 232:return x.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 170:return x.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 173:return x.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 175:case 178:case 179:return x.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return $.fail()}}function YCr(o,p,m){let v=Va(o.expression),E=nh(v);if(si(E))return zv(o);let D=Gs(E,0),R=Gs(E,1).length;if(ace(v,E,D.length,R))return xN(o);if(rDr(o,D)&&!mh(o.expression)){let se=Sp(o.expression,!1);return gt(o,x._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,se),zv(o)}let K=XCr(o);if(!D.length){let se=ODt(o.expression,E,0),ce=ws(se.messageChain,K),fe=Nx(Pn(o.expression),o.expression,ce);return se.relatedMessage&&ac(fe,xi(o.expression,se.relatedMessage)),il.add(fe),FDt(E,0,fe),zv(o)}return GM(o,D,p,m,0,K)}function wTe(o,p){let m=bN(o),v=m&&Zg(m),E=v&&Nf(v,qy.Element,788968),D=E&&Le.symbolToEntityName(E,788968,o),R=W.createFunctionTypeNode(void 0,[W.createParameterDeclaration(void 0,void 0,"props",void 0,Le.typeToTypeNode(p,o))],D?W.createTypeReferenceNode(D,void 0):W.createKeywordTypeNode(133)),K=zc(1,"props");return K.links.type=p,GS(R,void 0,void 0,[K],E?Tu(E):Et,void 0,1,0)}function RDt(o){let p=Ki(Pn(o));if(p.jsxFragmentType!==void 0)return p.jsxFragmentType;let m=X1(o);if(!((Q.jsx===2||Q.jsxFragmentFactory!==void 0)&&m!=="null"))return p.jsxFragmentType=at;let E=Q.jsx!==1&&Q.jsx!==3,D=il?x.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:void 0,R=STe(o)??$t(o,m,E?111551:111167,D,!0);if(R===void 0)return p.jsxFragmentType=Et;if(R.escapedName===Kye.Fragment)return p.jsxFragmentType=di(R);let K=(R.flags&2097152)===0?R:df(R),se=R&&Zg(K),ce=se&&Nf(se,Kye.Fragment,2),fe=ce&&di(ce);return p.jsxFragmentType=fe===void 0?Et:fe}function eDr(o,p,m){let v=K1(o),E;if(v)E=RDt(o);else{if(M7(o.tagName)){let K=XCt(o),se=wTe(o,K);return l6(KM(o.attributes,mTe(se,o),void 0,0),K,o.tagName,o.attributes),te(o.typeArguments)&&(X(o.typeArguments,Pc),il.add(UR(Pn(o),o.typeArguments,x.Expected_0_type_arguments_but_got_1,0,te(o.typeArguments)))),se}E=Va(o.tagName)}let D=nh(E);if(si(D))return zv(o);let R=QCt(E,o);return ace(E,D,R.length,0)?xN(o):R.length===0?(v?gt(o,x.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Sp(o)):gt(o.tagName,x.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Sp(o.tagName)),zv(o)):GM(o,R,p,m,0)}function tDr(o,p,m){let v=Va(o.right);if(!Mi(v)){let E=yUe(v);if(E){let D=nh(E);if(si(D))return zv(o);let R=Gs(D,0),K=Gs(D,1);if(ace(E,D,R.length,K.length))return xN(o);if(R.length)return GM(o,R,p,m,0)}else if(!(t2e(v)||c6(v,Vn)))return gt(o.right,x.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),zv(o)}return jn}function rDr(o,p){return p.length&&ht(p,m=>m.minArgumentCount===0&&!Am(m)&&m.parameters.length1?Bp(o.arguments[1]):void 0;for(let D=2;D{let R=ry(E);Rxe(D,R)||_kt(E,D,m,x.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function pDr(o){let p=Va(o.expression),m=fZ(p,o.expression);return Gxe(b2(m),o,m!==p)}function _Dr(o){return o.flags&64?pDr(o):b2(Va(o.expression))}function zDt(o){if(Fwt(o),X(o.typeArguments,Pc),o.kind===234){let m=V1(o.parent);m.kind===227&&m.operatorToken.kind===104&&oP(o,m.right)&>(o,x.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}let p=o.kind===234?Va(o.expression):pC(o.exprName)?Kse(o.exprName):Va(o.exprName);return qDt(p,o)}function qDt(o,p){let m=p.typeArguments;if(o===lr||si(o)||!Pt(m))return o;let v=Ki(p);if(v.instantiationExpressionTypes||(v.instantiationExpressionTypes=new Map),v.instantiationExpressionTypes.has(o.id))return v.instantiationExpressionTypes.get(o.id);let E=!1,D,R=se(o);v.instantiationExpressionTypes.set(o.id,R);let K=E?D:o;return K&&il.add(UR(Pn(p),m,x.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,ri(K))),R;function se(fe){let Ue=!1,Me=!1,yt=Jt(fe);return E||(E=Me),Ue&&!Me&&(D??(D=fe)),yt;function Jt(Xt){if(Xt.flags&524288){let kr=jv(Xt),on=ce(kr.callSignatures),Hn=ce(kr.constructSignatures);if(Ue||(Ue=kr.callSignatures.length!==0||kr.constructSignatures.length!==0),Me||(Me=on.length!==0||Hn.length!==0),on!==kr.callSignatures||Hn!==kr.constructSignatures){let fi=mp(zc(0,"__instantiationExpression"),kr.members,on,Hn,kr.indexInfos);return fi.objectFlags|=8388608,fi.node=p,fi}}else if(Xt.flags&58982400){let kr=Gf(Xt);if(kr){let on=Jt(kr);if(on!==kr)return on}}else{if(Xt.flags&1048576)return hp(Xt,se);if(Xt.flags&2097152)return Ac(Zo(Xt.types,Jt))}return Xt}}function ce(fe){let Ue=yr(fe,Me=>!!Me.typeParameters&&Z$e(Me,m));return Zo(Ue,Me=>{let yt=eUe(Me,m,!0);return yt?rZ(Me,yt,Ei(Me.declaration)):Me})}}function dDr(o){return Pc(o.type),aUe(o.expression,o.type)}function aUe(o,p,m){let v=Va(o,m),E=Sa(p);if(si(E))return E;let D=fn(p.parent,R=>R.kind===239||R.kind===351);return l6(v,E,D,o,x.Type_0_does_not_satisfy_the_expected_type_1),v}function fDr(o){return y6r(o),o.keywordToken===105?sUe(o):o.keywordToken===102?o.name.escapedText==="defer"?($.assert(!Js(o.parent)||o.parent.expression!==o,"Trying to get the type of `import.defer` in `import.defer(...)`"),Et):mDr(o):$.assertNever(o.keywordToken)}function JDt(o){switch(o.keywordToken){case 102:return cEt();case 105:let p=sUe(o);return si(p)?Et:NDr(p);default:$.assertNever(o.keywordToken)}}function sUe(o){let p=C6e(o);if(p)if(p.kind===177){let m=$i(p.parent);return di(m)}else{let m=$i(p);return di(m)}else return gt(o,x.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Et}function mDr(o){100<=ae&&ae<=199?Pn(o).impliedNodeFormat!==99&>(o,x.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):ae<6&&ae!==4&>(o,x.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext);let p=Pn(o);return $.assert(!!(p.flags&8388608),"Containing file is missing import meta node flag."),o.name.escapedText==="meta"?sEt():Et}function cce(o){let p=o.valueDeclaration;return Om(di(o),!1,!!p&&(lE(p)||sF(p)))}function cUe(o,p,m){switch(o.name.kind){case 80:{let v=o.name.escapedText;return o.dotDotDotToken?m&12?v:`${v}_${p}`:m&3?v:`${v}_n`}case 208:{if(o.dotDotDotToken){let v=o.name.elements,E=Ci(Yr(v),Vc),D=v.length-(E?.dotDotDotToken?1:0);if(p=v-1)return p===v-1?D:um(ey(D,Ir));let R=[],K=[],se=[];for(let ce=p;ce!(se&1)),K=R<0?D.target.fixedLength:R;K>0&&(E=o.parameters.length-1+K)}}if(E===void 0){if(!m&&o.flags&32)return 0;E=o.minArgumentCount}if(v)return E;for(let D=E-1;D>=0;D--){let R=qv(o,D);if(G_(R,vDt).flags&131072)break;E=D}o.resolvedMinArgumentCount=E}return o.resolvedMinArgumentCount}function Wb(o){if(Am(o)){let p=di(o.parameters[o.parameters.length-1]);return!Gc(p)||!!(p.target.combinedFlags&12)}return!1}function wZ(o){if(Am(o)){let p=di(o.parameters[o.parameters.length-1]);if(!Gc(p))return Mi(p)?If:p;if(p.target.combinedFlags&12)return Wq(p,p.target.fixedLength)}}function IZ(o){let p=wZ(o);return p&&!L0(p)&&!Mi(p)?p:void 0}function uUe(o){return pUe(o,tn)}function pUe(o,p){return o.parameters.length>0?qv(o,0):p}function HDt(o,p,m){let v=o.parameters.length-(Am(o)?1:0);for(let D=0;D=0);let D=kp(v.parent)?di($i(v.parent.parent)):xwt(v.parent),R=kp(v.parent)?Ne:Twt(v.parent),K=Bv(E),se=Qy("target",D),ce=Qy("propertyKey",R),fe=Qy("parameterIndex",K);m.decoratorSignature=MZ(void 0,void 0,[se,ce,fe],pn);break}case 175:case 178:case 179:case 173:{let v=p;if(!Co(v.parent))break;let E=xwt(v),D=Qy("target",E),R=Twt(v),K=Qy("propertyKey",R),se=ps(v)?pn:gEt($7(v));if(!ps(p)||xS(p)){let fe=gEt($7(v)),Ue=Qy("descriptor",fe);m.decoratorSignature=MZ(void 0,void 0,[D,K,Ue],Do([se,pn]))}else m.decoratorSignature=MZ(void 0,void 0,[D,K],Do([se,pn]));break}}return m.decoratorSignature===jn?void 0:m.decoratorSignature}function dUe(o){return _e?PDr(o):IDr(o)}function pce(o){let p=Sse(!0);return p!==Ar?(o=E2(aJ(o))||er,f2(p,[o])):er}function ZDt(o){let p=_Et(!0);return p!==Ar?(o=E2(aJ(o))||er,f2(p,[o])):er}function _ce(o,p){let m=pce(p);return m===er?(gt(o,Bh(o)?x.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:x.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Et):(oBe(!0)||gt(o,Bh(o)?x.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:x.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),m)}function NDr(o){let p=zc(0,"NewTargetExpression"),m=zc(4,"target",8);m.parent=p,m.links.type=o;let v=ic([m]);return p.members=v,mp(p,v,j,j,j)}function NTe(o,p){if(!o.body)return Et;let m=A_(o),v=(m&2)!==0,E=(m&1)!==0,D,R,K,se=pn;if(o.body.kind!==242)D=Bp(o.body,p&&p&-9),v&&(D=aJ(yce(D,!1,o,x.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(E){let ce=tAt(o,p);ce?ce.length>0&&(D=Do(ce,2)):se=tn;let{yieldTypes:fe,nextTypes:Ue}=ODr(o,p);R=Pt(fe)?Do(fe,2):void 0,K=Pt(Ue)?Ac(Ue):void 0}else{let ce=tAt(o,p);if(!ce)return m&2?_ce(o,tn):tn;if(ce.length===0){let fe=pTe(o,void 0),Ue=fe&&(Ece(fe,m)||pn).flags&32768?Ne:pn;return m&2?_ce(o,Ue):Ue}D=Do(ce,2)}if(D||R||K){if(R&&Zxe(o,R,3),D&&Zxe(o,D,1),K&&Zxe(o,K,2),D&&$v(D)||R&&$v(R)||K&&$v(K)){let ce=hTe(o),fe=ce?ce===t0(o)?E?void 0:D:dTe(Tl(ce),o,void 0):void 0;E?(R=HBe(R,fe,0,v),D=HBe(D,fe,1,v),K=HBe(K,fe,2,v)):D=C2r(D,fe,v)}R&&(R=ry(R)),D&&(D=ry(D)),K&&(K=ry(K))}return E?OTe(R||tn,D||se,K||NCt(2,o)||er,v):v?pce(D||se):D||se}function OTe(o,p,m,v){let E=v?g_:xu,D=E.getGlobalGeneratorType(!1);if(o=E.resolveIterationType(o,void 0)||er,p=E.resolveIterationType(p,void 0)||er,D===Ar){let R=E.getGlobalIterableIteratorType(!1);return R!==Ar?Vq(R,[o,p,m]):(E.getGlobalIterableIteratorType(!0),kc)}return Vq(D,[o,p,m])}function ODr(o,p){let m=[],v=[],E=(A_(o)&2)!==0;return h6e(o.body,D=>{let R=D.expression?Va(D.expression,p):Y;Zc(m,XDt(D,R,at,E));let K;if(D.asteriskToken){let se=VTe(R,E?19:17,D.expression);K=se&&se.nextType}else K=Eh(D,void 0);K&&Zc(v,K)}),{yieldTypes:m,nextTypes:v}}function XDt(o,p,m,v){if(p===lr)return lr;let E=o.expression||o,D=o.asteriskToken?tk(v?19:17,p,m,E):p;return v?j7(D,E,o.asteriskToken?x.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:x.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):D}function YDt(o,p,m){let v=0;for(let E=0;E=p?m[E]:void 0;v|=D!==void 0?A8e.get(D)||32768:0}return v}function eAt(o){let p=Ki(o);if(p.isExhaustive===void 0){p.isExhaustive=0;let m=FDr(o);p.isExhaustive===0&&(p.isExhaustive=m)}else p.isExhaustive===0&&(p.isExhaustive=!1);return p.isExhaustive}function FDr(o){if(o.expression.kind===222){let v=nCt(o);if(!v)return!1;let E=HS(Bp(o.expression.expression)),D=YDt(0,0,v);return E.flags&3?(556800&D)===556800:!j0(E,R=>zM(R,D)===D)}let p=HS(Bp(o.expression));if(!dZ(p))return!1;let m=rTe(o);return!m.length||Pt(m,T2r)?!1:bEr(hp(p,ih),m)}function fUe(o){return o.endFlowNode&&Wse(o.endFlowNode)}function tAt(o,p){let m=A_(o),v=[],E=fUe(o),D=!1;if(sC(o.body,R=>{let K=R.expression;if(K){if(K=bl(K,!0),m&2&&K.kind===224&&(K=bl(K.expression,!0)),K.kind===214&&K.expression.kind===80&&Bp(K.expression).symbol===cl(o.symbol)&&(!mC(o.symbol.valueDeclaration)||v$e(K.expression))){D=!0;return}let se=Bp(K,p&&p&-9);m&2&&(se=aJ(yce(se,!1,o,x.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),se.flags&131072&&(D=!0),Zc(v,se)}else E=!0}),!(v.length===0&&!E&&(D||RDr(o))))return be&&v.length&&E&&!(XS(o)&&v.some(R=>R.symbol===o.symbol))&&Zc(v,Ne),v}function RDr(o){switch(o.kind){case 219:case 220:return!0;case 175:return o.parent.kind===211;default:return!1}}function LDr(o){switch(o.kind){case 177:case 178:case 179:return}if(A_(o)!==0)return;let m;if(o.body&&o.body.kind!==242)m=o.body;else if(sC(o.body,E=>{if(m||!E.expression)return!0;m=E.expression})||!m||fUe(o))return;return MDr(o,m)}function MDr(o,p){if(p=bl(p,!0),!!(Bp(p).flags&16))return X(o.parameters,(v,E)=>{let D=di(v.symbol);if(!D||D.flags&16||!ct(v.name)||SZ(v.symbol)||Sb(v))return;let R=jDr(o,p,v,D);if(R)return tZ(1,oa(v.name.escapedText),E,R)})}function jDr(o,p,m,v){let E=KR(p)&&p.flowNode||p.parent.kind===254&&p.parent.flowNode||wb(2,void 0,void 0),D=wb(32,p,E),R=T2(m.name,v,v,o,D);if(R===v)return;let K=wb(64,p,E);return S1(T2(m.name,v,R,o,K)).flags&131072?R:void 0}function mUe(o,p){a(m);return;function m(){let v=A_(o),E=p&&Ece(p,v);if(E&&(s_(E,16384)||E.flags&32769)||o.kind===174||Op(o.body)||o.body.kind!==242||!fUe(o))return;let D=o.flags&1024,R=jg(o)||o;if(E&&E.flags&131072)gt(R,x.A_function_returning_never_cannot_have_a_reachable_end_point);else if(E&&!D)gt(R,x.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(E&&be&&!tc(Ne,E))gt(R,x.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(Q.noImplicitReturns){if(!E){if(!D)return;let K=Tl(t0(o));if(KAt(o,K))return}gt(R,x.Not_all_code_paths_return_a_value)}}}function rAt(o,p){if($.assert(o.kind!==175||r1(o)),B7(o),bu(o)&&sJ(o,o.name),p&&p&4&&r0(o)){if(!jg(o)&&!xne(o)){let v=TZ(o);if(v&&iD(Tl(v))){let E=Ki(o);if(E.contextFreeType)return E.contextFreeType;let D=NTe(o,p),R=GS(void 0,void 0,void 0,j,D,void 0,0,64),K=mp(o.symbol,G,[R],j,j);return K.objectFlags|=262144,E.contextFreeType=K}}return Ql}return!o2e(o)&&o.kind===219&&YUe(o),BDr(o,p),di($i(o))}function BDr(o,p){let m=Ki(o);if(!(m.flags&64)){let v=TZ(o);if(!(m.flags&64)){m.flags|=64;let E=pi(Gs(di($i(o)),0));if(!E)return;if(r0(o))if(v){let D=p6(o),R;if(p&&p&2){HDt(E,v,D);let K=wZ(v);K&&K.flags&262144&&(R=dN(v,D.nonFixingMapper))}R||(R=D?dN(v,D.mapper):v),yDr(E,R)}else vDr(E);else if(v&&!o.typeParameters&&v.parameters.length>o.parameters.length){let D=p6(o);p&&p&2&&HDt(E,v,D)}if(v&&!RM(o)&&!E.resolvedReturnType){let D=NTe(o,p);E.resolvedReturnType||(E.resolvedReturnType=D)}OZ(o)}}}function $Dr(o){$.assert(o.kind!==175||r1(o));let p=A_(o),m=RM(o);if(mUe(o,m),o.body)if(jg(o)||Tl(t0(o)),o.body.kind===242)Pc(o.body);else{let v=Va(o.body),E=m&&Ece(m,p);E&&WTe(o,E,o.body,o.body,v)}}function FTe(o,p,m,v=!1){if(!tc(p,Ys)){let E=v&&oJ(p);return RE(o,!!E&&tc(E,Ys),m),!1}return!0}function UDr(o){if(!Js(o)||!J4(o))return!1;let p=Bp(o.arguments[2]);if(en(p,"value")){let E=vc(p,"writable"),D=E&&di(E);if(!D||D===Rn||D===zn)return!0;if(E&&E.valueDeclaration&&td(E.valueDeclaration)){let R=E.valueDeclaration.initializer,K=Va(R);if(K===Rn||K===zn)return!0}return!1}return!vc(p,"set")}function Vv(o){return!!(Fp(o)&8||o.flags&4&&S0(o)&8||o.flags&3&&j$e(o)&6||o.flags&98304&&!(o.flags&65536)||o.flags&8||Pt(o.declarations,UDr))}function nAt(o,p,m){var v,E;if(m===0)return!1;if(Vv(p)){if(p.flags&4&&wu(o)&&o.expression.kind===110){let D=eJ(o);if(!(D&&(D.kind===177||XS(D))))return!0;if(p.valueDeclaration){let R=wi(p.valueDeclaration),K=D.parent===p.valueDeclaration.parent,se=D===p.valueDeclaration.parent,ce=R&&((v=p.parent)==null?void 0:v.valueDeclaration)===D.parent,fe=R&&((E=p.parent)==null?void 0:E.valueDeclaration)===D;return!(K||se||ce||fe)}}return!0}if(wu(o)){let D=bl(o.expression);if(D.kind===80){let R=Ki(D).resolvedSymbol;if(R.flags&2097152){let K=Qh(R);return!!K&&K.kind===275}}}return!1}function PZ(o,p,m){let v=Wp(o,39);return v.kind!==80&&!wu(v)?(gt(o,p),!1):v.flags&64?(gt(o,m),!1):!0}function zDr(o){Va(o.expression);let p=bl(o.expression);if(!wu(p))return gt(p,x.The_operand_of_a_delete_operator_must_be_a_property_reference),_r;no(p)&&Aa(p.name)&>(p,x.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let m=Ki(p),v=Wt(m.resolvedSymbol);return v&&(Vv(v)?gt(p,x.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):qDr(p,v)),_r}function qDr(o,p){let m=di(p);be&&!(m.flags&131075)&&!(ze?p.flags&16777216:Uv(m,16777216))&>(o,x.The_operand_of_a_delete_operator_must_be_optional)}function JDr(o){return Va(o.expression),vM}function VDr(o){return B7(o),Y}function iAt(o){let p=!1,m=gre(o);if(m&&n_(m)){let v=SC(o)?x.await_expression_cannot_be_used_inside_a_class_static_block:x.await_using_statements_cannot_be_used_inside_a_class_static_block;gt(o,v),p=!0}else if(!(o.flags&65536))if(vre(o)){let v=Pn(o);if(!sD(v)){let E;if(!$R(v,Q)){E??(E=gS(v,o.pos));let D=SC(o)?x.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:x.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,R=md(v,E.start,E.length,D);il.add(R),p=!0}switch(ae){case 100:case 101:case 102:case 199:if(v.impliedNodeFormat===1){E??(E=gS(v,o.pos)),il.add(md(v,E.start,E.length,x.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),p=!0;break}case 7:case 99:case 200:case 4:if(re>=4)break;default:E??(E=gS(v,o.pos));let D=SC(o)?x.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:x.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;il.add(md(v,E.start,E.length,D)),p=!0;break}}}else{let v=Pn(o);if(!sD(v)){let E=gS(v,o.pos),D=SC(o)?x.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:x.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,R=md(v,E.start,E.length,D);if(m&&m.kind!==177&&(A_(m)&2)===0){let K=xi(m,x.Did_you_mean_to_mark_this_function_as_async);ac(R,K)}il.add(R),p=!0}}return SC(o)&&w$e(o)&&(gt(o,x.await_expressions_cannot_be_used_in_a_parameter_initializer),p=!0),p}function WDr(o){a(()=>iAt(o));let p=Va(o.expression),m=yce(p,!0,o,x.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return m===p&&!si(m)&&!(p.flags&3)&&Kx(!1,xi(o,x.await_has_no_effect_on_the_type_of_this_expression)),m}function GDr(o){let p=Va(o.operand);if(p===lr)return lr;switch(o.operand.kind){case 9:switch(o.operator){case 41:return P7(Bv(-o.operand.text));case 40:return P7(Bv(+o.operand.text))}break;case 10:if(o.operator===41)return P7(Cse({negative:!0,base10Value:HU(o.operand.text)}))}switch(o.operator){case 40:case 41:case 55:return ZS(p,o.operand),dce(p,12288)&>(o.operand,x.The_0_operator_cannot_be_applied_to_type_symbol,Zs(o.operator)),o.operator===40?(dce(p,2112)&>(o.operand,x.Operator_0_cannot_be_applied_to_type_1,Zs(o.operator),ri(S2(p))),Ir):hUe(p);case 54:NUe(p,o.operand);let m=zM(p,12582912);return m===4194304?Rn:m===8388608?Rt:_r;case 46:case 47:return FTe(o.operand,ZS(p,o.operand),x.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&PZ(o.operand,x.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,x.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),hUe(p)}return Et}function HDr(o){let p=Va(o.operand);return p===lr?lr:(FTe(o.operand,ZS(p,o.operand),x.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&PZ(o.operand,x.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,x.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),hUe(p))}function hUe(o){return s_(o,2112)?Hf(o,3)||s_(o,296)?Ys:ii:Ir}function dce(o,p){if(s_(o,p))return!0;let m=HS(o);return!!m&&s_(m,p)}function s_(o,p){if(o.flags&p)return!0;if(o.flags&3145728){let m=o.types;for(let v of m)if(s_(v,p))return!0}return!1}function Hf(o,p,m){return o.flags&p?!0:m&&o.flags&114691?!1:!!(p&296)&&tc(o,Ir)||!!(p&2112)&&tc(o,ii)||!!(p&402653316)&&tc(o,Mt)||!!(p&528)&&tc(o,_r)||!!(p&16384)&&tc(o,pn)||!!(p&131072)&&tc(o,tn)||!!(p&65536)&&tc(o,mr)||!!(p&32768)&&tc(o,Ne)||!!(p&4096)&&tc(o,wr)||!!(p&67108864)&&tc(o,bn)}function NZ(o,p,m){return o.flags&1048576?ht(o.types,v=>NZ(v,p,m)):Hf(o,p,m)}function RTe(o){return!!(ro(o)&16)&&!!o.symbol&&gUe(o.symbol)}function gUe(o){return(o.flags&128)!==0}function yUe(o){let p=VAt("hasInstance");if(NZ(o,67108864)){let m=vc(o,p);if(m){let v=di(m);if(v&&Gs(v,0).length!==0)return v}}}function KDr(o,p,m,v,E){if(m===lr||v===lr)return lr;!Mi(m)&&NZ(m,402784252)&>(o,x.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),$.assert(Kre(o.parent));let D=HM(o.parent,void 0,E);if(D===Di)return lr;let R=Tl(D);return pm(R,_r,p,x.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),_r}function QDr(o){return j0(o,p=>p===sl||!!(p.flags&2097152)&&Vb(HS(p)))}function ZDr(o,p,m,v){if(m===lr||v===lr)return lr;if(Aa(o)){if((reWq(ce,m)):um(v);return EN(K,se,E)}}}}function EN(o,p,m,v){let E;if(o.kind===305){let D=o;D.objectAssignmentInitializer&&(be&&!Uv(Va(D.objectAssignmentInitializer),16777216)&&(p=M0(p,524288)),aAr(D.name,D.equalsToken,D.objectAssignmentInitializer,m)),E=o.name}else E=o;return E.kind===227&&E.operatorToken.kind===64&&(je(E,m),E=E.left,be&&(p=M0(p,524288))),E.kind===211?XDr(E,p,v):E.kind===210?YDr(E,p,m):eAr(E,p,m)}function eAr(o,p,m){let v=Va(o,m),E=o.parent.kind===306?x.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:x.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,D=o.parent.kind===306?x.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:x.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return PZ(o,E,D)&&l6(p,v,o,o),FR(o)&&Fd(o.parent,1048576),p}function fce(o){switch(o=bl(o),o.kind){case 80:case 11:case 14:case 216:case 229:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 219:case 232:case 220:case 210:case 211:case 222:case 236:case 286:case 285:return!0;case 228:return fce(o.whenTrue)&&fce(o.whenFalse);case 227:return zT(o.operatorToken.kind)?!1:fce(o.left)&&fce(o.right);case 225:case 226:switch(o.operator){case 54:case 40:case 41:case 55:return!0}return!1;default:return!1}}function vUe(o,p){return(p.flags&98304)!==0||Rxe(o,p)}function tAr(){let o=iie(p,m,v,E,D,R);return(Me,yt)=>{let Jt=o(Me,yt);return $.assertIsDefined(Jt),Jt};function p(Me,yt,Jt){return yt?(yt.stackIndex++,yt.skip=!1,ce(yt,void 0),Ue(yt,void 0)):yt={checkMode:Jt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Ei(Me)&&zO(Me)?(yt.skip=!0,Ue(yt,Va(Me.right,Jt)),yt):(rAr(Me),Me.operatorToken.kind===64&&(Me.left.kind===211||Me.left.kind===210)&&(yt.skip=!0,Ue(yt,EN(Me.left,Va(Me.right,Jt),Jt,Me.right.kind===110))),yt)}function m(Me,yt,Jt){if(!yt.skip)return K(yt,Me)}function v(Me,yt,Jt){if(!yt.skip){let Xt=fe(yt);$.assertIsDefined(Xt),ce(yt,Xt),Ue(yt,void 0);let kr=Me.kind;if(Gre(kr)){let on=Jt.parent;for(;on.kind===218||oH(on);)on=on.parent;(kr===56||EA(on))&&PUe(Jt.left,Xt,EA(on)?on.thenStatement:void 0),iH(kr)&&NUe(Xt,Jt.left)}}}function E(Me,yt,Jt){if(!yt.skip)return K(yt,Me)}function D(Me,yt){let Jt;if(yt.skip)Jt=fe(yt);else{let Xt=se(yt);$.assertIsDefined(Xt);let kr=fe(yt);$.assertIsDefined(kr),Jt=sAt(Me.left,Me.operatorToken,Me.right,Xt,kr,yt.checkMode,Me)}return yt.skip=!1,ce(yt,void 0),Ue(yt,void 0),yt.stackIndex--,Jt}function R(Me,yt,Jt){return Ue(Me,yt),Me}function K(Me,yt){if(wi(yt))return yt;Ue(Me,Va(yt,Me.checkMode))}function se(Me){return Me.typeStack[Me.stackIndex]}function ce(Me,yt){Me.typeStack[Me.stackIndex]=yt}function fe(Me){return Me.typeStack[Me.stackIndex+1]}function Ue(Me,yt){Me.typeStack[Me.stackIndex+1]=yt}}function rAr(o){if(o.operatorToken.kind===61){if(wi(o.parent)){let{left:p,operatorToken:m}=o.parent;wi(p)&&m.kind===57&&mn(p,x._0_and_1_operations_cannot_be_mixed_without_parentheses,Zs(61),Zs(m.kind))}else if(wi(o.left)){let{operatorToken:p}=o.left;(p.kind===57||p.kind===56)&&mn(o.left,x._0_and_1_operations_cannot_be_mixed_without_parentheses,Zs(p.kind),Zs(61))}else if(wi(o.right)){let{operatorToken:p}=o.right;p.kind===56&&mn(o.right,x._0_and_1_operations_cannot_be_mixed_without_parentheses,Zs(61),Zs(p.kind))}nAr(o),iAr(o)}}function nAr(o){let p=Wp(o.left,63),m=mce(p);m!==3&&(m===1?gt(p,x.This_expression_is_always_nullish):gt(p,x.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish))}function iAr(o){let p=Wp(o.right,63),m=mce(p);oAr(o)||(m===1?gt(p,x.This_expression_is_always_nullish):m===2&>(p,x.This_expression_is_never_nullish))}function oAr(o){return!wi(o.parent)||o.parent.operatorToken.kind!==61}function mce(o){switch(o=Wp(o),o.kind){case 224:case 214:case 216:case 213:case 237:case 215:case 212:case 230:case 110:return 3;case 227:switch(o.operatorToken.kind){case 64:case 61:case 78:case 57:case 76:case 56:case 77:return 3;case 28:return mce(o.right)}return 2;case 228:return mce(o.whenTrue)|mce(o.whenFalse);case 106:return 1;case 80:return Fm(o)===ke?1:3}return 2}function aAr(o,p,m,v,E){let D=p.kind;if(D===64&&(o.kind===211||o.kind===210))return EN(o,Va(m,v),v,m.kind===110);let R;iH(D)?R=UZ(o,v):R=Va(o,v);let K=Va(m,v);return sAt(o,p,m,R,K,v,E)}function sAt(o,p,m,v,E,D,R){let K=p.kind;switch(K){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(v===lr||E===lr)return lr;v=ZS(v,o),E=ZS(E,m);let sn;if(v.flags&528&&E.flags&528&&(sn=Me(p.kind))!==void 0)return gt(R||p,x.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Zs(p.kind),Zs(sn)),Ir;{let wo=FTe(o,v,x.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Fa=FTe(m,E,x.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),ho;if(Hf(v,3)&&Hf(E,3)||!(s_(v,2112)||s_(E,2112)))ho=Ir;else if(se(v,E)){switch(K){case 50:case 73:kr();break;case 43:case 68:re<3&>(R,x.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}ho=ii}else kr(se),ho=Et;if(wo&&Fa)switch(yt(ho),K){case 48:case 71:case 49:case 72:case 50:case 73:let pa=nt(m);typeof pa.value=="number"&&Math.abs(pa.value)>=32&&Y1(GT(V1(m.parent.parent)),R||p,x.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,Sp(o),Zs(K),pa.value%32);break;default:break}return ho}case 40:case 65:if(v===lr||E===lr)return lr;!Hf(v,402653316)&&!Hf(E,402653316)&&(v=ZS(v,o),E=ZS(E,m));let rn;return Hf(v,296,!0)&&Hf(E,296,!0)?rn=Ir:Hf(v,2112,!0)&&Hf(E,2112,!0)?rn=ii:Hf(v,402653316,!0)||Hf(E,402653316,!0)?rn=Mt:(Mi(v)||Mi(E))&&(rn=si(v)||si(E)?Et:at),rn&&!Ue(K)?rn:rn?(K===65&&yt(rn),rn):(kr((Fa,ho)=>Hf(Fa,402655727)&&Hf(ho,402655727)),at);case 30:case 32:case 33:case 34:return Ue(K)&&(v=WBe(ZS(v,o)),E=WBe(ZS(E,m)),Xt((wo,Fa)=>{if(Mi(wo)||Mi(Fa))return!0;let ho=tc(wo,Ys),pa=tc(Fa,Ys);return ho&&pa||!ho&&!pa&&Ise(wo,Fa)})),_r;case 35:case 36:case 37:case 38:if(!(D&&D&64)){if((nme(o)||nme(m))&&(!Ei(o)||K===37||K===38)){let wo=K===35||K===37;gt(R,x.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,wo?"false":"true")}Hn(R,K,o,m),Xt((wo,Fa)=>vUe(wo,Fa)||vUe(Fa,wo))}return _r;case 104:return KDr(o,m,v,E,D);case 103:return ZDr(o,m,v,E);case 56:case 77:{let wo=Uv(v,4194304)?Do([w2r(be?v:S2(E)),E]):v;return K===77&&yt(E),wo}case 57:case 76:{let wo=Uv(v,8388608)?Do([b2(wkt(v)),E],2):v;return K===76&&yt(E),wo}case 61:case 78:{let wo=Uv(v,262144)?Do([b2(v),E],2):v;return K===78&&yt(E),wo}case 64:let vi=wi(o.parent)?m_(o.parent):0;return ce(vi,E),Jt(vi)?((!(E.flags&524288)||vi!==2&&vi!==6&&!v2(E)&&!d$e(E)&&!(ro(E)&1))&&yt(E),v):(yt(E),E);case 28:if(!Q.allowUnreachableCode&&fce(o)&&!fe(o.parent)){let wo=Pn(o),Fa=wo.text,ho=_c(Fa,o.pos);wo.parseDiagnostics.some(Ps=>Ps.code!==x.JSX_expressions_must_have_one_parent_element.code?!1:jo(Ps,ho))||gt(o,x.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return E;default:return $.fail()}function se(sn,rn){return Hf(sn,2112)&&Hf(rn,2112)}function ce(sn,rn){if(sn===2)for(let vi of KE(rn)){let wo=di(vi);if(wo.symbol&&wo.symbol.flags&32){let Fa=vi.escapedName,ho=$t(vi.valueDeclaration,Fa,788968,void 0,!1);ho?.declarations&&ho.declarations.some(_3)&&(Qx(ho,x.Duplicate_identifier_0,oa(Fa),vi),Qx(vi,x.Duplicate_identifier_0,oa(Fa),ho))}}}function fe(sn){return sn.parent.kind===218&&qh(sn.left)&&sn.left.text==="0"&&(Js(sn.parent.parent)&&sn.parent.parent.expression===sn.parent||sn.parent.parent.kind===216)&&(wu(sn.right)||ct(sn.right)&&sn.right.escapedText==="eval")}function Ue(sn){let rn=dce(v,12288)?o:dce(E,12288)?m:void 0;return rn?(gt(rn,x.The_0_operator_cannot_be_applied_to_type_symbol,Zs(sn)),!1):!0}function Me(sn){switch(sn){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function yt(sn){zT(K)&&a(rn);function rn(){let vi=v;if(Iz(p.kind)&&o.kind===212&&(vi=xTe(o,void 0,!0)),PZ(o,x.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,x.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let wo;if(ze&&no(o)&&s_(sn,32768)){let Fa=en(Kf(o.expression),o.name.escapedText);Mxe(sn,Fa)&&(wo=x.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}l6(sn,vi,o,m,wo)}}}function Jt(sn){var rn;switch(sn){case 2:return!0;case 1:case 5:case 6:case 3:case 4:let vi=Xy(o),wo=zO(m);return!!wo&&Lc(wo)&&!!((rn=vi?.exports)!=null&&rn.size);default:return!1}}function Xt(sn){return sn(v,E)?!1:(kr(sn),!0)}function kr(sn){let rn=!1,vi=R||p;if(sn){let Ps=E2(v),El=E2(E);rn=!(Ps===v&&El===E)&&!!(Ps&&El)&&sn(Ps,El)}let wo=v,Fa=E;!rn&&sn&&([wo,Fa]=sAr(v,E,sn));let[ho,pa]=Pq(wo,Fa);on(vi,rn,ho,pa)||RE(vi,rn,x.Operator_0_cannot_be_applied_to_types_1_and_2,Zs(p.kind),ho,pa)}function on(sn,rn,vi,wo){switch(p.kind){case 37:case 35:case 38:case 36:return RE(sn,rn,x.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,vi,wo);default:return}}function Hn(sn,rn,vi,wo){let Fa=fi(bl(vi)),ho=fi(bl(wo));if(Fa||ho){let pa=gt(sn,x.This_condition_will_always_return_0,Zs(rn===37||rn===35?97:112));if(Fa&&ho)return;let Ps=rn===38||rn===36?Zs(54):"",El=Fa?wo:vi,qa=bl(El);ac(pa,xi(El,x.Did_you_mean_0,`${Ps}Number.isNaN(${ru(qa)?Rg(qa):"..."})`))}}function fi(sn){if(ct(sn)&&sn.escapedText==="NaN"){let rn=Fxr();return!!rn&&rn===Fm(sn)}return!1}}function sAr(o,p,m){let v=o,E=p,D=S2(o),R=S2(p);return m(D,R)||(v=D,E=R),[v,E]}function cAr(o){a(Ue);let p=My(o);if(!p)return at;let m=A_(p);if(!(m&1))return at;let v=(m&2)!==0;o.asteriskToken&&(v&&reTUe(Me,m,void 0)));let D=E&&BUe(E,v),R=D&&D.yieldType||at,K=D&&D.nextType||at,se=o.expression?Va(o.expression):Y,ce=XDt(o,se,K,v);if(E&&ce&&l6(ce,R,o.expression||o,o.expression),o.asteriskToken)return RUe(v?19:17,1,se,o.expression)||at;if(E)return rk(2,E,v)||at;let fe=NCt(2,p);return fe||(fe=at,a(()=>{if(Fe&&!Z4e(o)){let Me=Eh(o,void 0);(!Me||Mi(Me))&>(o,x.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),fe;function Ue(){o.flags&16384||mf(o,x.A_yield_expression_is_only_allowed_in_a_generator_body),w$e(o)&>(o,x.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function lAr(o,p){let m=UZ(o.condition,p);PUe(o.condition,m,o.whenTrue);let v=Va(o.whenTrue,p),E=Va(o.whenFalse,p);return Do([v,E],2)}function cAt(o){let p=o.parent;return mh(p)&&cAt(p)||mu(p)&&p.argumentExpression===o}function uAr(o){let p=[o.head.text],m=[];for(let E of o.templateSpans){let D=Va(E.expression);dce(D,12288)&>(E.expression,x.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),p.push(E.literal.text),m.push(tc(D,ec)?D:Mt)}let v=o.parent.kind!==216&&nt(o).value;return v?P7(Sg(v)):nJ(o)||cAt(o)||j0(Eh(o,void 0)||er,pAr)?cN(p,m):Mt}function pAr(o){return!!(o.flags&134217856||o.flags&58982400&&s_(Gf(o)||er,402653316))}function _Ar(o){return xP(o)&&!u3(o.parent)?o.parent.parent:o}function KM(o,p,m,v){let E=_Ar(o);Zse(E,p,!1),Skr(E,m);let D=Va(o,v|1|(m?2:0));m&&m.intraExpressionInferenceSites&&(m.intraExpressionInferenceSites=void 0);let R=s_(D,2944)&<e(D,dTe(p,o,void 0))?ih(D):D;return bkr(),xZ(),R}function Bp(o,p){if(p)return Va(o,p);let m=Ki(o);if(!m.resolvedType){let v=Fi,E=ka;Fi=$n,ka=void 0,m.resolvedType=Va(o,p),ka=E,Fi=v}return m.resolvedType}function lAt(o){return o=bl(o,!0),o.kind===217||o.kind===235||EP(o)}function rJ(o,p,m){let v=jG(o);if(Ei(o)){let D=kne(o);if(D)return aUe(v,D,p)}let E=xUe(v)||(m?KM(v,m,void 0,p||0):Bp(v,p));if(wa(Vc(o)?Pr(o):o)){if(o.name.kind===207&&ek(E))return dAr(E,o.name);if(o.name.kind===208&&Gc(E))return fAr(E,o.name)}return E}function dAr(o,p){let m;for(let D of p.elements)if(D.initializer){let R=uAt(D);R&&!vc(o,R)&&(m=jt(m,D))}if(!m)return o;let v=ic();for(let D of KE(o))v.set(D.escapedName,D);for(let D of m){let R=zc(16777220,uAt(D));R.links.type=Rv(D,!1,!1),v.set(R.escapedName,R)}let E=mp(o.symbol,v,j,j,lm(o));return E.objectFlags=o.objectFlags,E}function uAt(o){let p=m2(o.propertyName||o.name);return b0(p)?x0(p):void 0}function fAr(o,p){if(o.target.combinedFlags&12||ZE(o)>=p.elements.length)return o;let m=p.elements,v=i6(o).slice(),E=o.target.elementFlags.slice();for(let D=ZE(o);DLTe(o,v))}if(p.flags&58982400){let m=Gf(p)||er;return s_(m,4)&&s_(o,128)||s_(m,8)&&s_(o,256)||s_(m,64)&&s_(o,2048)||s_(m,4096)&&s_(o,8192)||LTe(o,m)}return!!(p.flags&406847616&&s_(o,128)||p.flags&256&&s_(o,256)||p.flags&2048&&s_(o,2048)||p.flags&512&&s_(o,512)||p.flags&8192&&s_(o,8192))}return!1}function nJ(o){let p=o.parent;return ZI(p)&&z1(p.type)||EP(p)&&z1(CL(p))||oUe(o)&&oN(Eh(o,0))||(mh(p)||qf(p)||E0(p))&&nJ(p)||(td(p)||im(p)||vL(p))&&nJ(p.parent)}function iJ(o,p,m){let v=Va(o,p,m);return nJ(o)||y6e(o)?ih(v):lAt(o)?v:GBe(v,dTe(Eh(o,void 0),o,void 0))}function _At(o,p){return o.name.kind===168&&sv(o.name),iJ(o.initializer,p)}function dAt(o,p){Mwt(o),o.name.kind===168&&sv(o.name);let m=rAt(o,p);return fAt(o,m,p)}function fAt(o,p,m){if(m&&m&10){let v=CZ(p,0,!0),E=CZ(p,1,!0),D=v||E;if(D&&D.typeParameters){let R=ww(o,2);if(R){let K=CZ(b2(R),v?0:1,!1);if(K&&!K.typeParameters){if(m&8)return mAt(o,m),Ql;let se=p6(o),ce=se.signature&&Tl(se.signature),fe=ce&&bDt(ce);if(fe&&!fe.typeParameters&&!ht(se.inferences,QM)){let Ue=yAr(se,D.typeParameters),Me=Qje(D,Ue),yt=Cr(se.inferences,Jt=>e$e(Jt.typeParameter));if(QBe(Me,K,(Jt,Xt)=>{lT(yt,Jt,Xt,0,!0)}),Pt(yt,QM)&&(ZBe(Me,K,(Jt,Xt)=>{lT(yt,Jt,Xt)}),!hAr(se.inferences,yt)))return gAr(se.inferences,yt),se.inferredTypeParameters=go(se.inferredTypeParameters,Ue),aN(Me)}return aN(xDt(D,K,se))}}}}return p}function mAt(o,p){if(p&2){let m=p6(o);m.flags|=4}}function QM(o){return!!(o.candidates||o.contraCandidates)}function mAr(o){return!!(o.candidates||o.contraCandidates||O2t(o.typeParameter))}function hAr(o,p){for(let m=0;mm.symbol.escapedName===p)}function vAr(o,p){let m=p.length;for(;m>1&&p.charCodeAt(m-1)>=48&&p.charCodeAt(m-1)<=57;)m--;let v=p.slice(0,m);for(let E=1;;E++){let D=v+E;if(!bUe(o,D))return D}}function hAt(o){let p=TN(o);if(p&&!p.typeParameters)return Tl(p)}function SAr(o){let p=Va(o.expression),m=fZ(p,o.expression),v=hAt(p);return v&&Gxe(v,o,m!==p)}function Kf(o){let p=xUe(o);if(p)return p;if(o.flags&268435456&&ka){let E=ka[hl(o)];if(E)return E}let m=os,v=Va(o,64);if(os!==m){let E=ka||(ka=[]);E[hl(o)]=v,Q4e(o,o.flags|268435456)}return v}function xUe(o){let p=bl(o,!0);if(EP(p)){let m=CL(p);if(!z1(m))return Sa(m)}if(p=bl(o),SC(p)){let m=xUe(p.expression);return m?j7(m):void 0}if(Js(p)&&p.expression.kind!==108&&!$h(p,!0)&&!LDt(p)&&!Bh(p))return O4(p)?SAr(p):hAt(WM(p.expression));if(ZI(p)&&!z1(p.type))return Sa(p.type);if(F4(o)||oU(o))return Va(o)}function hce(o){let p=Ki(o);if(p.contextFreeType)return p.contextFreeType;Zse(o,at,!1);let m=p.contextFreeType=Va(o,4);return xZ(),m}function Va(o,p,m){var v,E;(v=hi)==null||v.push(hi.Phase.Check,"checkExpression",{kind:o.kind,pos:o.pos,end:o.end,path:o.tracingPath});let D=M;M=o,C=0;let R=TAr(o,p,m),K=fAt(o,R,p);return RTe(K)&&bAr(o,K),M=D,(E=hi)==null||E.pop(),K}function bAr(o,p){var m;let v=o.parent.kind===212&&o.parent.expression===o||o.parent.kind===213&&o.parent.expression===o||(o.kind===80||o.kind===167)&&YTe(o)||o.parent.kind===187&&o.parent.exprName===o||o.parent.kind===282;if(v||gt(o,x.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),Q.isolatedModules||Q.verbatimModuleSyntax&&v&&!$t(o,_h(o),2097152,void 0,!1,!0)){$.assert(!!(p.symbol.flags&128));let E=p.symbol.valueDeclaration,D=(m=t.getRedirectFromOutput(Pn(E).resolvedPath))==null?void 0:m.resolvedRef;E.flags&33554432&&!yA(o)&&(!D||!dC(D.commandLine.options))&>(o,x.Cannot_access_ambient_const_enums_when_0_is_enabled,Qe)}}function xAr(o,p){if(hy(o)){if(oge(o))return aUe(o.expression,age(o),p);if(EP(o))return $Dt(o,p)}return Va(o.expression,p)}function TAr(o,p,m){let v=o.kind;if(c)switch(v){case 232:case 219:case 220:c.throwIfCancellationRequested()}switch(v){case 80:return qEr(o,p);case 81:return fCr(o);case 110:return Kse(o);case 108:return uTe(o);case 106:return Ge;case 15:case 11:return o$e(o)?pr:P7(Sg(o.text));case 9:return qwt(o),P7(Bv(+o.text));case 10:return k6r(o),P7(Cse({negative:!1,base10Value:HU(o.text)}));case 112:return Rt;case 97:return Rn;case 229:return uAr(o);case 14:return jkr(o);case 210:return qCt(o,p,m);case 211:return Wkr(o,p);case 212:return xTe(o,p);case 167:return aDt(o,p);case 213:return wCr(o,p);case 214:if(Bh(o))return sDr(o);case 215:return aDr(o,p);case 216:return cDr(o);case 218:return xAr(o,p);case 232:return dIr(o);case 219:case 220:return rAt(o,p);case 222:return JDr(o);case 217:case 235:return lDr(o,p);case 236:return _Dr(o);case 234:return zDt(o);case 239:return dDr(o);case 237:return fDr(o);case 221:return zDr(o);case 223:return VDr(o);case 224:return WDr(o);case 225:return GDr(o);case 226:return HDr(o);case 227:return je(o,p);case 228:return lAr(o,p);case 231:return Bkr(o,p);case 233:return Y;case 230:return cAr(o);case 238:return $kr(o);case 295:return sCr(o,p);case 285:return Qkr(o,p);case 286:return Hkr(o,p);case 289:return Zkr(o);case 293:return Ykr(o,p);case 287:$.fail("Shouldn't ever directly check a JsxOpeningElement")}return Et}function gAt(o){pT(o),o.expression&&mf(o.expression,x.Type_expected),Pc(o.constraint),Pc(o.default);let p=gw($i(o));Gf(p),Bbr(p)||gt(o.default,x.Type_parameter_0_has_a_circular_default,ri(p));let m=Th(p),v=r6(p);m&&v&&pm(v,Yg(Oa(m,s6(p,v)),v),o.default,x.Type_0_does_not_satisfy_the_constraint_1),B7(o),a(()=>cJ(o.name,x.Type_parameter_name_cannot_be_0))}function EAr(o){var p,m;if(Af(o.parent)||Co(o.parent)||s1(o.parent)){let v=gw($i(o)),E=zBe(v)&24576;if(E){let D=$i(o.parent);if(s1(o.parent)&&!(ro(Tu(D))&48))gt(o,x.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(E===8192||E===16384){(p=hi)==null||p.push(hi.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:ff(Tu(D)),id:ff(v)});let R=Ose(D,v,E===16384?zt:st),K=Ose(D,v,E===16384?st:zt),se=v;U=v,pm(R,K,o,x.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),U=se,(m=hi)==null||m.pop()}}}}function yAt(o){pT(o),xce(o);let p=My(o);ko(o,31)&&(Q.erasableSyntaxOnly&>(o,x.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),p.kind===177&&t1(p.body)||gt(o,x.A_parameter_property_is_only_allowed_in_a_constructor_implementation),p.kind===177&&ct(o.name)&&o.name.escapedText==="constructor"&>(o.name,x.constructor_cannot_be_used_as_a_parameter_property_name)),!o.initializer&&sF(o)&&$s(o.name)&&p.body&>(o,x.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),o.name&&ct(o.name)&&(o.name.escapedText==="this"||o.name.escapedText==="new")&&(p.parameters.indexOf(o)!==0&>(o,x.A_0_parameter_must_be_the_first_parameter,o.name.escapedText),(p.kind===177||p.kind===181||p.kind===186)&>(o,x.A_constructor_cannot_have_a_this_parameter),p.kind===220&>(o,x.An_arrow_function_cannot_have_a_this_parameter),(p.kind===178||p.kind===179)&>(o,x.get_and_set_accessors_cannot_declare_this_parameters)),o.dotDotDotToken&&!$s(o.name)&&!tc(S1(di(o.symbol)),Hg)&>(o,x.A_rest_parameter_must_be_of_an_array_type)}function kAr(o){let p=CAr(o);if(!p){gt(o,x.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let m=t0(p),v=F0(m);if(!v)return;Pc(o.type);let{parameterName:E}=o;if(v.kind!==0&&v.kind!==2){if(v.parameterIndex>=0){if(Am(m)&&v.parameterIndex===m.parameters.length-1)gt(E,x.A_type_predicate_cannot_reference_a_rest_parameter);else if(v.type){let D=()=>ws(void 0,x.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);pm(v.type,di(m.parameters[v.parameterIndex]),o.type,void 0,D)}}else if(E){let D=!1;for(let{name:R}of p.parameters)if($s(R)&&vAt(R,E,v.parameterName)){D=!0;break}D||gt(o.parameterName,x.Cannot_find_parameter_0,v.parameterName)}}}function CAr(o){switch(o.parent.kind){case 220:case 180:case 263:case 219:case 185:case 175:case 174:let p=o.parent;if(o===p.type)return p}}function vAt(o,p,m){for(let v of o.elements){if(Id(v))continue;let E=v.name;if(E.kind===80&&E.escapedText===m)return gt(p,x.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,m),!0;if((E.kind===208||E.kind===207)&&vAt(E,p,m))return!0}}function OZ(o){o.kind===182?e6r(o):(o.kind===185||o.kind===263||o.kind===186||o.kind===180||o.kind===177||o.kind===181)&&o2e(o);let p=A_(o);p&4||((p&3)===3&&re0&&m.declarations[0]!==o)return}let p=hxe($i(o));if(p?.declarations){let m=new Map;for(let v of p.declarations)vC(v)&&v.parameters.length===1&&v.parameters[0].type&&vN(Sa(v.parameters[0].type),E=>{let D=m.get(ff(E));D?D.declarations.push(v):m.set(ff(E),{type:E,declarations:[v]})});m.forEach(v=>{if(v.declarations.length>1)for(let E of v.declarations)gt(E,x.Duplicate_index_signature_for_type_0,ri(v.type))})}}function bAt(o){!pT(o)&&!x6r(o)&&a2e(o.name),xce(o),MTe(o),ko(o,64)&&o.kind===173&&o.initializer&>(o,x.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,du(o.name))}function wAr(o){return Aa(o.name)&>(o,x.Private_identifiers_are_not_allowed_outside_class_bodies),bAt(o)}function IAr(o){Mwt(o)||a2e(o.name),Ep(o)&&o.asteriskToken&&ct(o.name)&&Zi(o.name)==="constructor"&>(o.name,x.Class_constructor_may_not_be_a_generator),OAt(o),ko(o,64)&&o.kind===175&&o.body&>(o,x.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,du(o.name)),Aa(o.name)&&!Cf(o)&>(o,x.Private_identifiers_are_not_allowed_outside_class_bodies),MTe(o)}function MTe(o){if(Aa(o.name)&&(reko(ce,31))))if(!OAr(K,o.body))gt(K,x.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let ce;for(let fe of o.body.statements){if(af(fe)&&U4(Wp(fe.expression))){ce=fe;break}if(xAt(fe))break}ce===void 0&>(o,x.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else R||gt(o,x.Constructors_for_derived_classes_must_contain_a_super_call)}}}function OAr(o,p){let m=V1(o.parent);return af(m)&&m.parent===p}function xAt(o){return o.kind===108||o.kind===110?!0:k6e(o)?!1:!!Is(o,xAt)}function TAt(o){ct(o.name)&&Zi(o.name)==="constructor"&&Co(o.parent)&>(o.name,x.Class_constructor_may_not_be_an_accessor),a(p),Pc(o.body),MTe(o);function p(){if(!o2e(o)&&!l6r(o)&&a2e(o.name),vce(o),OZ(o),o.kind===178&&!(o.flags&33554432)&&t1(o.body)&&o.flags&512&&(o.flags&1024||gt(o.name,x.A_get_accessor_must_return_a_value)),o.name.kind===168&&sv(o.name),OM(o)){let v=$i(o),E=Qu(v,178),D=Qu(v,179);if(E&&D&&!(U7(E)&1)){Ki(E).flags|=1;let R=tm(E),K=tm(D);(R&64)!==(K&64)&&(gt(E.name,x.Accessors_must_both_be_abstract_or_non_abstract),gt(D.name,x.Accessors_must_both_be_abstract_or_non_abstract)),(R&4&&!(K&6)||R&2&&!(K&2))&&(gt(E.name,x.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),gt(D.name,x.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}let m=Lq($i(o));o.kind===178&&mUe(o,m)}}function FAr(o){vce(o)}function RAr(o,p,m){return o.typeArguments&&m{let v=kUe(o);v&&EAt(o,v)});let m=Ki(o).resolvedSymbol;m&&Pt(m.declarations,v=>aF(v)&&!!(v.flags&536870912))&&g1(sce(o),m.declarations,m.escapedName)}}function MAr(o){let p=Ci(o.parent,Zte);if(!p)return;let m=kUe(p);if(!m)return;let v=Th(m[p.typeArguments.indexOf(o)]);return v&&Oa(v,ty(m,jTe(p,m)))}function jAr(o){iEt(o)}function BAr(o){X(o.members,Pc),a(p);function p(){let m=HEt(o);GTe(m,m.symbol),EUe(o),SAt(o)}}function $Ar(o){Pc(o.elementType)}function UAr(o){let p=!1,m=!1;for(let v of o.elements){let E=cBe(v);if(E&8){let D=Sa(v.type);if(!YE(D)){gt(v,x.A_rest_element_type_must_be_an_array_type);break}(L0(D)||Gc(D)&&D.target.combinedFlags&4)&&(E|=4)}if(E&4){if(m){mn(v,x.A_rest_element_cannot_follow_another_rest_element);break}m=!0}else if(E&2){if(m){mn(v,x.An_optional_element_cannot_follow_a_rest_element);break}p=!0}else if(E&1&&p){mn(v,x.A_required_element_cannot_follow_an_optional_element);break}}X(o.elements,Pc),Sa(o)}function zAr(o){X(o.types,Pc),Sa(o)}function CAt(o,p){if(!(o.flags&8388608))return o;let m=o.objectType,v=o.indexType,E=Xh(m)&&XQ(m)===2?NEt(m,0):KS(m,0),D=!!oT(m,Ir);if(bg(v,R=>tc(R,E)||D&&C7(R,Ir)))return p.kind===213&&lC(p)&&ro(m)&32&&zb(m)&1&>(p,x.Index_signature_in_type_0_only_permits_reading,ri(m)),o;if(uN(m)){let R=Dxe(v,p);if(R){let K=vN(nh(m),se=>vc(se,R));if(K&&S0(K)&6)return gt(p,x.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,oa(R)),Et}}return gt(p,x.Type_0_cannot_be_used_to_index_type_1,ri(v),ri(m)),Et}function qAr(o){Pc(o.objectType),Pc(o.indexType),CAt(zEt(o),o)}function JAr(o){VAr(o),Pc(o.typeParameter),Pc(o.nameType),Pc(o.type),o.type||Dw(o,at);let p=SBe(o),m=HE(p);if(m)pm(m,Uo,o.nameType);else{let v=e0(p);pm(v,Uo,NR(o.typeParameter))}}function VAr(o){var p;if((p=o.members)!=null&&p.length)return mn(o.members[0],x.A_mapped_type_may_not_declare_properties_or_methods)}function WAr(o){DBe(o)}function GAr(o){p6r(o),Pc(o.type)}function HAr(o){Is(o,Pc)}function KAr(o){fn(o,m=>m.parent&&m.parent.kind===195&&m.parent.extendsType===m)||mn(o,x.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Pc(o.typeParameter);let p=$i(o.typeParameter);if(p.declarations&&p.declarations.length>1){let m=io(p);if(!m.typeParametersChecked){m.typeParametersChecked=!0;let v=gw(p),E=VPe(p,169);if(!XAt(E,[v],D=>[D])){let D=Ua(p);for(let R of E)gt(R.name,x.All_declarations_of_0_must_have_identical_constraints,D)}}}oD(o)}function QAr(o){for(let p of o.templateSpans){Pc(p.type);let m=Sa(p.type);pm(m,ec,p.type)}Sa(o)}function ZAr(o){Pc(o.argument),o.attributes&&$L(o.attributes,mn),kAt(o)}function XAr(o){o.dotDotDotToken&&o.questionToken&&mn(o,x.A_tuple_member_cannot_be_both_optional_and_rest),o.type.kind===191&&mn(o.type,x.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),o.type.kind===192&&mn(o.type,x.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Pc(o.type),Sa(o)}function gce(o){return(Bg(o,2)||Tm(o))&&!!(o.flags&33554432)}function FZ(o,p){let m=c2e(o);if(o.parent.kind!==265&&o.parent.kind!==264&&o.parent.kind!==232&&o.flags&33554432){let v=lre(o);v&&v.flags&128&&!(m&128)&&!(wS(o.parent)&&I_(o.parent.parent)&&xb(o.parent.parent))&&(m|=32),m|=128}return m&p}function BTe(o){a(()=>YAr(o))}function YAr(o){function p(sn,rn){return rn!==void 0&&rn.parent===sn[0].parent?rn:sn[0]}function m(sn,rn,vi,wo,Fa){if((wo^Fa)!==0){let pa=FZ(p(sn,rn),vi);Pg(sn,Ps=>Pn(Ps).fileName).forEach(Ps=>{let El=FZ(p(Ps,rn),vi);for(let qa of Ps){let rp=FZ(qa,vi)^pa,Zp=FZ(qa,vi)^El;Zp&32?gt(cs(qa),x.Overload_signatures_must_all_be_exported_or_non_exported):Zp&128?gt(cs(qa),x.Overload_signatures_must_all_be_ambient_or_non_ambient):rp&6?gt(cs(qa)||qa,x.Overload_signatures_must_all_be_public_private_or_protected):rp&64&>(cs(qa),x.Overload_signatures_must_all_be_abstract_or_non_abstract)}})}}function v(sn,rn,vi,wo){if(vi!==wo){let Fa=VO(p(sn,rn));X(sn,ho=>{VO(ho)!==Fa&>(cs(ho),x.Overload_signatures_must_all_be_optional_or_required)})}}let E=230,D=0,R=E,K=!1,se=!0,ce=!1,fe,Ue,Me,yt=o.declarations,Jt=(o.flags&16384)!==0;function Xt(sn){if(sn.name&&Op(sn.name))return;let rn=!1,vi=Is(sn.parent,Fa=>{if(rn)return Fa;rn=Fa===sn});if(vi&&vi.pos===sn.end&&vi.kind===sn.kind){let Fa=vi.name||vi,ho=vi.name;if(sn.name&&ho&&(Aa(sn.name)&&Aa(ho)&&sn.name.escapedText===ho.escapedText||dc(sn.name)&&dc(ho)&&cT(sv(sn.name),sv(ho))||SS(sn.name)&&SS(ho)&&DU(sn.name)===DU(ho))){if((sn.kind===175||sn.kind===174)&&oc(sn)!==oc(vi)){let Ps=oc(sn)?x.Function_overload_must_be_static:x.Function_overload_must_not_be_static;gt(Fa,Ps)}return}if(t1(vi.body)){gt(Fa,x.Function_implementation_name_must_be_0,du(sn.name));return}}let wo=sn.name||sn;Jt?gt(wo,x.Constructor_implementation_is_missing):ko(sn,64)?gt(wo,x.All_declarations_of_an_abstract_method_must_be_consecutive):gt(wo,x.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let kr=!1,on=!1,Hn=!1,fi=[];if(yt)for(let sn of yt){let rn=sn,vi=rn.flags&33554432,wo=rn.parent&&(rn.parent.kind===265||rn.parent.kind===188)||vi;if(wo&&(Me=void 0),(rn.kind===264||rn.kind===232)&&!vi&&(Hn=!0),rn.kind===263||rn.kind===175||rn.kind===174||rn.kind===177){fi.push(rn);let Fa=FZ(rn,E);D|=Fa,R&=Fa,K=K||VO(rn),se=se&&VO(rn);let ho=t1(rn.body);ho&&fe?Jt?on=!0:kr=!0:Me?.parent===rn.parent&&Me.end!==rn.pos&&Xt(Me),ho?fe||(fe=rn):ce=!0,Me=rn,wo||(Ue=rn)}Ei(sn)&&Rs(sn)&&sn.jsDoc&&(ce=te(Hme(sn))>0)}if(on&&X(fi,sn=>{gt(sn,x.Multiple_constructor_implementations_are_not_allowed)}),kr&&X(fi,sn=>{gt(cs(sn)||sn,x.Duplicate_function_implementation)}),Hn&&!Jt&&o.flags&16&&yt){let sn=yr(yt,rn=>rn.kind===264).map(rn=>xi(rn,x.Consider_adding_a_declare_modifier_to_this_class));X(yt,rn=>{let vi=rn.kind===264?x.Class_declaration_cannot_implement_overload_list_for_0:rn.kind===263?x.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;vi&&ac(gt(cs(rn)||rn,vi,vp(o)),...sn)})}if(Ue&&!Ue.body&&!ko(Ue,64)&&!Ue.questionToken&&Xt(Ue),ce&&(yt&&(m(yt,fe,E,D,R),v(yt,fe,K,se)),fe)){let sn=n6(o),rn=t0(fe);for(let vi of sn)if(!t2r(rn,vi)){let wo=vi.declaration&&TE(vi.declaration)?vi.declaration.parent.tagName:vi.declaration;ac(gt(wo,x.This_overload_signature_is_not_compatible_with_its_implementation_signature),xi(fe,x.The_implementation_signature_is_declared_here));break}}}function RZ(o){a(()=>ewr(o))}function ewr(o){let p=o.localSymbol;if(!p&&(p=$i(o),!p.exportSymbol)||Qu(p,o.kind)!==o)return;let m=0,v=0,E=0;for(let ce of p.declarations){let fe=se(ce),Ue=FZ(ce,2080);Ue&32?Ue&2048?E|=fe:m|=fe:v|=fe}let D=m|v,R=m&v,K=E&D;if(R||K)for(let ce of p.declarations){let fe=se(ce),Ue=cs(ce);fe&K?gt(Ue,x.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,du(Ue)):fe&R&>(Ue,x.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,du(Ue))}function se(ce){let fe=ce;switch(fe.kind){case 265:case 266:case 347:case 339:case 341:return 2;case 268:return Gm(fe)||KT(fe)!==0?5:4;case 264:case 267:case 307:return 3;case 308:return 7;case 278:case 227:let Ue=fe,Me=Xu(Ue)?Ue.expression:Ue.right;if(!ru(Me))return 1;fe=Me;case 272:case 275:case 274:let yt=0,Jt=df($i(fe));return X(Jt.declarations,Xt=>{yt|=se(Xt)}),yt;case 261:case 209:case 263:case 277:case 80:return 1;case 174:case 172:return 2;default:return $.failBadSyntaxKind(fe)}}}function oJ(o,p,m,...v){let E=LZ(o,p);return E&&j7(E,p,m,...v)}function LZ(o,p,m){if(Mi(o))return;let v=o;if(v.promisedTypeOfPromise)return v.promisedTypeOfPromise;if(Xg(o,Sse(!1)))return v.promisedTypeOfPromise=Bu(o)[0];if(NZ(HS(o),402915324))return;let E=en(o,"then");if(Mi(E))return;let D=E?Gs(E,0):j;if(D.length===0){p&>(p,x.A_promise_must_have_a_then_method);return}let R,K;for(let fe of D){let Ue=Sw(fe);Ue&&Ue!==pn&&!QS(o,Ue,Rb)?R=Ue:K=jt(K,fe)}if(!K){$.assertIsDefined(R),m&&(m.value=R),p&>(p,x.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,ri(o),ri(R));return}let se=M0(Do(Cr(K,uUe)),2097152);if(Mi(se))return;let ce=Gs(se,0);if(ce.length===0){p&>(p,x.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return v.promisedTypeOfPromise=Do(Cr(ce,uUe),2)}function yce(o,p,m,v,...E){return(p?j7(o,m,v,...E):E2(o,m,v,...E))||Et}function DAt(o){if(NZ(HS(o),402915324))return!1;let p=en(o,"then");return!!p&&Gs(M0(p,2097152),0).length>0}function $Te(o){var p;if(o.flags&16777216){let m=sBe(!1);return!!m&&o.aliasSymbol===m&&((p=o.aliasTypeArguments)==null?void 0:p.length)===1}return!1}function aJ(o){return o.flags&1048576?hp(o,aJ):$Te(o)?o.aliasTypeArguments[0]:o}function AAt(o){if(Mi(o)||$Te(o))return!1;if(uN(o)){let p=Gf(o);if(p?p.flags&3||v2(p)||j0(p,DAt):s_(o,8650752))return!0}return!1}function twr(o){let p=sBe(!0);if(p)return MM(p,[aJ(o)])}function rwr(o){return AAt(o)?twr(o)??o:($.assert($Te(o)||LZ(o)===void 0,"type provided should not be a non-generic 'promise'-like."),o)}function j7(o,p,m,...v){let E=E2(o,p,m,...v);return E&&rwr(E)}function E2(o,p,m,...v){if(Mi(o)||$Te(o))return o;let E=o;if(E.awaitedTypeOfType)return E.awaitedTypeOfType;if(o.flags&1048576){if(LC.lastIndexOf(o.id)>=0){p&>(p,x.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let K=p?ce=>E2(ce,p,m,...v):E2;LC.push(o.id);let se=hp(o,K);return LC.pop(),E.awaitedTypeOfType=se}if(AAt(o))return E.awaitedTypeOfType=o;let D={value:void 0},R=LZ(o,void 0,D);if(R){if(o.id===R.id||LC.lastIndexOf(R.id)>=0){p&>(p,x.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}LC.push(o.id);let K=E2(R,p,m,...v);return LC.pop(),K?E.awaitedTypeOfType=K:void 0}if(DAt(o)){if(p){$.assertIsDefined(m);let K;D.value&&(K=ws(K,x.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,ri(o),ri(D.value))),K=ws(K,m,...v),il.add(Nx(Pn(p),p,K))}return}return E.awaitedTypeOfType=o}function nwr(o,p,m){let v=Sa(p);if(re>=2){if(si(v))return;let D=Sse(!0);if(D!==Ar&&!Xg(v,D)){E(x.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,p,m,ri(E2(v)||pn));return}}else{if(R7(o,5),si(v))return;let D=NG(p);if(D===void 0){E(x.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,p,m,ri(v));return}let R=jp(D,111551,!0),K=R?di(R):Et;if(si(K)){D.kind===80&&D.escapedText==="Promise"&&Fn(v)===Sse(!1)?gt(m,x.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):E(x.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,p,m,Rg(D));return}let se=pxr(!0);if(se===kc){E(x.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,p,m,Rg(D));return}let ce=x.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!pm(K,se,m,ce,()=>p===m?void 0:ws(void 0,x.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;let Ue=D&&_h(D),Me=Nf(o.locals,Ue.escapedText,111551);if(Me){gt(Me.valueDeclaration,x.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Zi(Ue),Rg(D));return}}yce(v,!1,o,x.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function E(D,R,K,se){if(R===K)gt(K,D,se);else{let ce=gt(K,x.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);ac(ce,xi(R,D,se))}}}function iwr(o){let p=Pn(o);if(!sD(p)){let m=o.expression;if(mh(m))return!1;let v=!0,E;for(;;){if(VT(m)||bF(m)){m=m.expression;continue}if(Js(m)){v||(E=m),m.questionDotToken&&(E=m.questionDotToken),m=m.expression,v=!1;continue}if(no(m)){m.questionDotToken&&(E=m.questionDotToken),m=m.expression,v=!1;continue}ct(m)||(E=m);break}if(E)return ac(gt(o.expression,x.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),xi(E,x.Invalid_syntax_in_decorator)),!0}return!1}function owr(o){iwr(o);let p=HM(o);PTe(p,o);let m=Tl(p);if(m.flags&1)return;let v=dUe(o);if(!v?.resolvedReturnType)return;let E,D=v.resolvedReturnType;switch(o.parent.kind){case 264:case 232:E=x.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 173:if(!_e){E=x.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 170:E=x.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 175:case 178:case 179:E=x.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return $.failBadSyntaxKind(o.parent)}pm(m,D,o.expression,E)}function MZ(o,p,m,v,E,D=m.length,R=0){let K=W.createFunctionTypeNode(void 0,j,W.createKeywordTypeNode(133));return GS(K,o,p,m,v,E,D,R)}function DUe(o,p,m,v,E,D,R){let K=MZ(o,p,m,v,E,D,R);return aN(K)}function wAt(o){return DUe(void 0,void 0,j,o)}function IAt(o){let p=Qy("value",o);return DUe(void 0,void 0,[p],pn)}function AUe(o){if(o)switch(o.kind){case 194:case 193:return PAt(o.types);case 195:return PAt([o.trueType,o.falseType]);case 197:case 203:return AUe(o.type);case 184:return o.typeName}}function PAt(o){let p;for(let m of o){for(;m.kind===197||m.kind===203;)m=m.type;if(m.kind===146||!be&&(m.kind===202&&m.literal.kind===106||m.kind===157))continue;let v=AUe(m);if(!v)return;if(p){if(!ct(p)||!ct(v)||p.escapedText!==v.escapedText)return}else p=v}return p}function UTe(o){let p=X_(o);return Sb(o)?Mme(p):p}function vce(o){if(!kP(o)||!By(o)||!o.modifiers||!OG(_e,o,o.parent,o.parent.parent))return;let p=wt(o.modifiers,hd);if(p){_e?(Fd(p,8),o.kind===170&&Fd(p,32)):re1)for(let v=1;v0),m.length>1&>(m[1],x.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);let v=NAt(o.class.expression),E=aP(p);if(E){let D=NAt(E.expression);D&&v.escapedText!==D.escapedText&>(v,x.JSDoc_0_1_does_not_match_the_extends_2_clause,Zi(o.tagName),Zi(v),Zi(D))}}function vwr(o){let p=iP(o);p&&Tm(p)&>(o,x.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function NAt(o){switch(o.kind){case 80:return o;case 212:return o.name;default:return}}function OAt(o){var p;vce(o),OZ(o);let m=A_(o);if(o.name&&o.name.kind===168&&sv(o.name),OM(o)){let D=$i(o),R=o.localSymbol||D,K=(p=R.declarations)==null?void 0:p.find(se=>se.kind===o.kind&&!(se.flags&524288));o===K&&BTe(R),D.parent&&BTe(D)}let v=o.kind===174?void 0:o.body;if(Pc(v),mUe(o,RM(o)),a(E),Ei(o)){let D=mv(o);D&&D.typeExpression&&!R$e(Sa(D.typeExpression),o)&>(D.typeExpression.type,x.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function E(){jg(o)||(Op(v)&&!gce(o)&&Dw(o,at),m&1&&t1(v)&&Tl(t0(o)))}}function oD(o){a(p);function p(){let m=Pn(o),v=qn.get(m.path);v||(v=[],qn.set(m.path,v)),v.push(o)}}function FAt(o,p){for(let m of o)switch(m.kind){case 264:case 232:Swr(m,p),wUe(m,p);break;case 308:case 268:case 242:case 270:case 249:case 250:case 251:MAt(m,p);break;case 177:case 219:case 263:case 220:case 175:case 178:case 179:m.body&&MAt(m,p),wUe(m,p);break;case 174:case 180:case 181:case 185:case 186:case 266:case 265:wUe(m,p);break;case 196:bwr(m,p);break;default:$.assertNever(m,"Node should not have been registered for unused identifiers check")}}function RAt(o,p,m){let v=cs(o)||o,E=aF(o)?x._0_is_declared_but_never_used:x._0_is_declared_but_its_value_is_never_read;m(o,0,xi(v,E,p))}function jZ(o){return ct(o)&&Zi(o).charCodeAt(0)===95}function Swr(o,p){for(let m of o.members)switch(m.kind){case 175:case 173:case 178:case 179:if(m.kind===179&&m.symbol.flags&32768)break;let v=$i(m);!v.isReferenced&&(Bg(m,2)||Vp(m)&&Aa(m.name))&&!(m.flags&33554432)&&p(m,0,xi(m.name,x._0_is_declared_but_its_value_is_never_read,Ua(v)));break;case 177:for(let E of m.parameters)!E.symbol.isReferenced&&ko(E,2)&&p(E,0,xi(E.name,x.Property_0_is_declared_but_its_value_is_never_read,vp(E.symbol)));break;case 182:case 241:case 176:break;default:$.fail("Unexpected class member")}}function bwr(o,p){let{typeParameter:m}=o;IUe(m)&&p(o,1,xi(o,x._0_is_declared_but_its_value_is_never_read,Zi(m.name)))}function wUe(o,p){let m=$i(o).declarations;if(!m||Sn(m)!==o)return;let v=Zk(o),E=new Set;for(let D of v){if(!IUe(D))continue;let R=Zi(D.name),{parent:K}=D;if(K.kind!==196&&K.typeParameters.every(IUe)){if(Us(E,K)){let se=Pn(K),ce=c1(K)?Yhe(K):ege(se,K.typeParameters),Ue=K.typeParameters.length===1?[x._0_is_declared_but_its_value_is_never_read,R]:[x.All_type_parameters_are_unused];p(D,1,md(se,ce.pos,ce.end-ce.pos,...Ue))}}else p(D,1,xi(D,x._0_is_declared_but_its_value_is_never_read,R))}}function IUe(o){return!(cl(o.symbol).isReferenced&262144)&&!jZ(o.name)}function Sce(o,p,m,v){let E=String(v(p)),D=o.get(E);D?D[1].push(m):o.set(E,[p,[m]])}function LAt(o){return Ci(bS(o),wa)}function xwr(o){return Vc(o)?$y(o.parent)?!!(o.propertyName&&jZ(o.name)):jZ(o.name):Gm(o)||(Oo(o)&&M4(o.parent.parent)||jAt(o))&&jZ(o.name)}function MAt(o,p){let m=new Map,v=new Map,E=new Map;o.locals.forEach(D=>{if(!(D.flags&262144?!(D.flags&3&&!(D.isReferenced&3)):D.isReferenced||D.exportSymbol)&&D.declarations){for(let R of D.declarations)if(!xwr(R))if(jAt(R))Sce(m,Ewr(R),R,hl);else if(Vc(R)&&$y(R.parent)){let K=Sn(R.parent.elements);(R===K||!Sn(R.parent.elements).dotDotDotToken)&&Sce(v,R.parent,R,hl)}else if(Oo(R)){let K=f6(R)&7,se=cs(R);(K!==4&&K!==6||!se||!jZ(se))&&Sce(E,R.parent,R,hl)}else{let K=D.valueDeclaration&&LAt(D.valueDeclaration),se=D.valueDeclaration&&cs(D.valueDeclaration);K&&se?!ne(K,K.parent)&&!uC(K)&&!jZ(se)&&(Vc(R)&&xE(R.parent)?Sce(v,R.parent,R,hl):p(K,1,xi(se,x._0_is_declared_but_its_value_is_never_read,vp(D)))):RAt(R,vp(D),p)}}}),m.forEach(([D,R])=>{let K=D.parent;if((D.name?1:0)+(D.namedBindings?D.namedBindings.kind===275?1:D.namedBindings.elements.length:0)===R.length)p(K,0,R.length===1?xi(K,x._0_is_declared_but_its_value_is_never_read,Zi(To(R).name)):xi(K,x.All_imports_in_import_declaration_are_unused));else for(let ce of R)RAt(ce,Zi(ce.name),p)}),v.forEach(([D,R])=>{let K=LAt(D.parent)?1:0;if(D.elements.length===R.length)R.length===1&&D.parent.kind===261&&D.parent.parent.kind===262?Sce(E,D.parent.parent,D.parent,hl):p(D,K,R.length===1?xi(D,x._0_is_declared_but_its_value_is_never_read,bce(To(R).name)):xi(D,x.All_destructured_elements_are_unused));else for(let se of R)p(se,K,xi(se,x._0_is_declared_but_its_value_is_never_read,bce(se.name)))}),E.forEach(([D,R])=>{if(D.declarations.length===R.length)p(D,0,R.length===1?xi(To(R).name,x._0_is_declared_but_its_value_is_never_read,bce(To(R).name)):xi(D.parent.kind===244?D.parent:D,x.All_variables_are_unused));else for(let K of R)p(K,0,xi(K,x._0_is_declared_but_its_value_is_never_read,bce(K.name)))})}function Twr(){var o;for(let p of o2)if(!((o=$i(p))!=null&&o.isReferenced)){let m=Pr(p);$.assert(hA(m),"Only parameter declaration should be checked here");let v=xi(p.name,x._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,du(p.name),du(p.propertyName));m.type||ac(v,md(Pn(m),m.end,0,x.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,du(p.propertyName))),il.add(v)}}function bce(o){switch(o.kind){case 80:return Zi(o);case 208:case 207:return bce(Ba(To(o.elements),Vc).name);default:return $.assertNever(o)}}function jAt(o){return o.kind===274||o.kind===277||o.kind===275}function Ewr(o){return o.kind===274?o:o.kind===275?o.parent:o.parent.parent}function zTe(o){if(o.kind===242&&k2(o),ame(o)){let p=sa;X(o.statements,Pc),sa=p}else X(o.statements,Pc);o.locals&&oD(o)}function kwr(o){re>=2||!fme(o)||o.flags&33554432||Op(o.body)||X(o.parameters,p=>{p.name&&!$s(p.name)&&p.name.escapedText===Se.escapedName&&FE("noEmit",p,x.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function BZ(o,p,m){if(p?.escapedText!==m||o.kind===173||o.kind===172||o.kind===175||o.kind===174||o.kind===178||o.kind===179||o.kind===304||o.flags&33554432||(H1(o)||gd(o)||Xm(o))&&cE(o))return!1;let v=bS(o);return!(wa(v)&&Op(v.parent.body))}function Cwr(o){fn(o,p=>U7(p)&4?(o.kind!==80?gt(cs(o),x.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):gt(o,x.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Dwr(o){fn(o,p=>U7(p)&8?(o.kind!==80?gt(cs(o),x.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):gt(o,x.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function Awr(o,p){if(t.getEmitModuleFormatOfFile(Pn(o))>=5||!p||!BZ(o,p,"require")&&!BZ(o,p,"exports")||I_(o)&&KT(o)!==1)return;let m=ir(o);m.kind===308&&Lg(m)&&FE("noEmit",p,x.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,du(p),du(p))}function wwr(o,p){if(!p||re>=4||!BZ(o,p,"Promise")||I_(o)&&KT(o)!==1)return;let m=ir(o);m.kind===308&&Lg(m)&&m.flags&4096&&FE("noEmit",p,x.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,du(p),du(p))}function Iwr(o,p){re<=8&&(BZ(o,p,"WeakMap")||BZ(o,p,"WeakSet"))&&n2.push(o)}function Pwr(o){let p=yv(o);U7(p)&1048576&&($.assert(Vp(o)&&ct(o.name)&&typeof o.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),FE("noEmit",o,x.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,o.name.escapedText))}function Nwr(o,p){p&&re>=2&&re<=8&&BZ(o,p,"Reflect")&&i2.push(o)}function Owr(o){let p=!1;if(w_(o)){for(let m of o.members)if(U7(m)&2097152){p=!0;break}}else if(bu(o))U7(o)&2097152&&(p=!0);else{let m=yv(o);m&&U7(m)&2097152&&(p=!0)}p&&($.assert(Vp(o)&&ct(o.name),"The target of a Reflect collision check should be an identifier"),FE("noEmit",o,x.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,du(o.name),"Reflect"))}function sJ(o,p){p&&(Awr(o,p),wwr(o,p),Iwr(o,p),Nwr(o,p),Co(o)?(cJ(p,x.Class_name_cannot_be_0),o.flags&33554432||lIr(p)):CA(o)&&cJ(p,x.Enum_name_cannot_be_0))}function Fwr(o){if((f6(o)&7)!==0||hA(o))return;let p=$i(o);if(p.flags&1){if(!ct(o.name))return $.fail();let m=$t(o,o.name.escapedText,3,void 0,!1);if(m&&m!==p&&m.flags&2&&j$e(m)&7){let v=mA(m.valueDeclaration,262),E=v.parent.kind===244&&v.parent.parent?v.parent.parent:void 0;if(!(E&&(E.kind===242&&Rs(E.parent)||E.kind===269||E.kind===268||E.kind===308))){let R=Ua(m);gt(o,x.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,R,R)}}}}function $Z(o){return o===Zt?at:o===uf?If:o}function xce(o){var p;if(vce(o),Vc(o)||Pc(o.type),!o.name)return;if(o.name.kind===168&&(sv(o.name),j4(o)&&o.initializer&&Bp(o.initializer)),Vc(o)){if(o.propertyName&&ct(o.name)&&hA(o)&&Op(My(o).body)){o2.push(o);return}$y(o.parent)&&o.dotDotDotToken&&re1&&Pt(m.declarations,D=>D!==o&&_U(D)&&!$At(D,o))&>(o.name,x.All_declarations_of_0_must_have_identical_modifiers,du(o.name))}else{let E=$Z(E7(o));!si(v)&&!si(E)&&!cT(v,E)&&!(m.flags&67108864)&&BAt(m.valueDeclaration,v,o,E),j4(o)&&o.initializer&&l6(Bp(o.initializer),E,o,o.initializer,void 0),m.valueDeclaration&&!$At(o,m.valueDeclaration)&>(o.name,x.All_declarations_of_0_must_have_identical_modifiers,du(o.name))}o.kind!==173&&o.kind!==172&&(RZ(o),(o.kind===261||o.kind===209)&&Fwr(o),sJ(o,o.name))}function BAt(o,p,m,v){let E=cs(m),D=m.kind===173||m.kind===172?x.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:x.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,R=du(E),K=gt(E,D,R,ri(p),ri(v));o&&ac(K,xi(o,x._0_was_also_declared_here,R))}function $At(o,p){if(o.kind===170&&p.kind===261||o.kind===261&&p.kind===170)return!0;if(VO(o)!==VO(p))return!1;let m=1358;return QO(o,m)===QO(p,m)}function Rwr(o){var p,m;(p=hi)==null||p.push(hi.Phase.Check,"checkVariableDeclaration",{kind:o.kind,pos:o.pos,end:o.end,path:o.tracingPath}),h6r(o),xce(o),(m=hi)==null||m.pop()}function Lwr(o){return d6r(o),xce(o)}function qTe(o){let p=dd(o)&7;(p===4||p===6)&&re=2,K=!R&&Q.downlevelIteration,se=Q.noUncheckedIndexedAccess&&!!(o&128);if(R||K||D){let yt=VTe(p,o,R?v:void 0);if(E&&yt){let Jt=o&8?x.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:o&32?x.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:o&64?x.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:o&16?x.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;Jt&&pm(m,yt.nextType,v,Jt)}if(yt||R)return se?vZ(yt&&yt.yieldType):yt&&yt.yieldType}let ce=p,fe=!1;if(o&4){if(ce.flags&1048576){let yt=p.types,Jt=yr(yt,Xt=>!(Xt.flags&402653316));Jt!==yt&&(ce=Do(Jt,2))}else ce.flags&402653316&&(ce=tn);if(fe=ce!==p,fe&&ce.flags&131072)return se?vZ(Mt):Mt}if(!YE(ce)){if(v){let yt=!!(o&4)&&!fe,[Jt,Xt]=Me(yt,K);RE(v,Xt&&!!oJ(ce),Jt,ri(ce))}return fe?se?vZ(Mt):Mt:void 0}let Ue=vw(ce,Ir);if(fe&&Ue)return Ue.flags&402653316&&!Q.noUncheckedIndexedAccess?Mt:Do(se?[Ue,Mt,Ne]:[Ue,Mt],2);return o&128?vZ(Ue):Ue;function Me(yt,Jt){var Xt;return Jt?yt?[x.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[x.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:RUe(o,0,p,void 0)?[x.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:Gwr((Xt=p.symbol)==null?void 0:Xt.escapedName)?[x.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:yt?[x.Type_0_is_not_an_array_type_or_a_string_type,!0]:[x.Type_0_is_not_an_array_type,!0]}}function Gwr(o){switch(o){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function RUe(o,p,m,v){if(Mi(m))return;let E=VTe(m,o,v);return E&&E[p_t(p)]}function aD(o=tn,p=tn,m=er){if(o.flags&67359327&&p.flags&180227&&m.flags&180227){let v=b1([o,p,m]),E=Bl.get(v);return E||(E={yieldType:o,returnType:p,nextType:m},Bl.set(v,E)),E}return{yieldType:o,returnType:p,nextType:m}}function UAt(o){let p,m,v;for(let E of o)if(!(E===void 0||E===xc)){if(E===ep)return ep;p=jt(p,E.yieldType),m=jt(m,E.returnType),v=jt(v,E.nextType)}return p||m||v?aD(p&&Do(p),m&&Do(m),v&&Ac(v)):xc}function JTe(o,p){return o[p]}function uT(o,p,m){return o[p]=m}function VTe(o,p,m){var v,E;if(o===lr)return W_;if(Mi(o))return ep;if(!(o.flags&1048576)){let ce=m?{errors:void 0,skipLogging:!0}:void 0,fe=zAt(o,p,m,ce);if(fe===xc){if(m){let Ue=MUe(m,o,!!(p&2));ce?.errors&&ac(Ue,...ce.errors)}return}else if((v=ce?.errors)!=null&&v.length)for(let Ue of ce.errors)il.add(Ue);return fe}let D=p&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",R=JTe(o,D);if(R)return R===xc?void 0:R;let K;for(let ce of o.types){let fe=m?{errors:void 0}:void 0,Ue=zAt(ce,p,m,fe);if(Ue===xc){if(m){let Me=MUe(m,o,!!(p&2));fe?.errors&&ac(Me,...fe.errors)}uT(o,D,xc);return}else if((E=fe?.errors)!=null&&E.length)for(let Me of fe.errors)il.add(Me);K=jt(K,Ue)}let se=K?UAt(K):xc;return uT(o,D,se),se===xc?void 0:se}function LUe(o,p){if(o===xc)return xc;if(o===ep)return ep;let{yieldType:m,returnType:v,nextType:E}=o;return p&&sBe(!0),aD(j7(m,p)||at,j7(v,p)||at,E)}function zAt(o,p,m,v){if(Mi(o))return ep;let E=!1;if(p&2){let D=qAt(o,g_)||JAt(o,g_);if(D)if(D===xc&&m)E=!0;else return p&8?LUe(D,m):D}if(p&1){let D=qAt(o,xu)||JAt(o,xu);if(D)if(D===xc&&m)E=!0;else if(p&2){if(D!==xc)return D=LUe(D,m),E?D:uT(o,"iterationTypesOfAsyncIterable",D)}else return D}if(p&2){let D=WAt(o,g_,m,v,E);if(D!==xc)return D}if(p&1){let D=WAt(o,xu,m,v,E);if(D!==xc)return p&2?(D=LUe(D,m),E?D:uT(o,"iterationTypesOfAsyncIterable",D)):D}return xc}function qAt(o,p){return JTe(o,p.iterableCacheKey)}function JAt(o,p){if(Xg(o,p.getGlobalIterableType(!1))||Xg(o,p.getGlobalIteratorObjectType(!1))||Xg(o,p.getGlobalIterableIteratorType(!1))||Xg(o,p.getGlobalGeneratorType(!1))){let[m,v,E]=Bu(o);return uT(o,p.iterableCacheKey,aD(p.resolveIterationType(m,void 0)||m,p.resolveIterationType(v,void 0)||v,E))}if(lxe(o,p.getGlobalBuiltinIteratorTypes())){let[m]=Bu(o),v=aBe(),E=er;return uT(o,p.iterableCacheKey,aD(p.resolveIterationType(m,void 0)||m,p.resolveIterationType(v,void 0)||v,E))}}function VAt(o){let p=uEt(!1),m=p&&en(di(p),dp(o));return m&&b0(m)?x0(m):`__@${o}`}function WAt(o,p,m,v,E){let D=vc(o,VAt(p.iteratorSymbolName)),R=D&&!(D.flags&16777216)?di(D):void 0;if(Mi(R))return E?ep:uT(o,p.iterableCacheKey,ep);let K=R?Gs(R,0):void 0,se=yr(K,Ue=>Jv(Ue)===0);if(!Pt(se))return m&&Pt(K)&&pm(o,p.getGlobalIterableType(!0),m,void 0,void 0,v),E?xc:uT(o,p.iterableCacheKey,xc);let ce=Ac(Cr(se,Tl)),fe=GAt(ce,p,m,v,E)??xc;return E?fe:uT(o,p.iterableCacheKey,fe)}function MUe(o,p,m){let v=m?x.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:x.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,E=!!oJ(p)||!m&&$H(o.parent)&&o.parent.expression===o&&bse(!1)!==Ar&&tc(p,Vq(bse(!1),[at,at,at]));return RE(o,E,v,ri(p))}function Hwr(o,p,m,v){return GAt(o,p,m,v,!1)}function GAt(o,p,m,v,E){if(Mi(o))return ep;let D=Kwr(o,p)||Qwr(o,p);return D===xc&&m&&(D=void 0,E=!0),D??(D=eIr(o,p,m,v,E)),D===xc?void 0:D}function Kwr(o,p){return JTe(o,p.iteratorCacheKey)}function Qwr(o,p){if(Xg(o,p.getGlobalIterableIteratorType(!1))||Xg(o,p.getGlobalIteratorType(!1))||Xg(o,p.getGlobalIteratorObjectType(!1))||Xg(o,p.getGlobalGeneratorType(!1))){let[m,v,E]=Bu(o);return uT(o,p.iteratorCacheKey,aD(m,v,E))}if(lxe(o,p.getGlobalBuiltinIteratorTypes())){let[m]=Bu(o),v=aBe(),E=er;return uT(o,p.iteratorCacheKey,aD(m,v,E))}}function HAt(o,p){let m=en(o,"done")||Rn;return tc(p===0?Rn:Rt,m)}function Zwr(o){return HAt(o,0)}function Xwr(o){return HAt(o,1)}function Ywr(o){if(Mi(o))return ep;let p=JTe(o,"iterationTypesOfIteratorResult");if(p)return p;if(Xg(o,Sxr(!1))){let R=Bu(o)[0];return uT(o,"iterationTypesOfIteratorResult",aD(R,void 0,void 0))}if(Xg(o,bxr(!1))){let R=Bu(o)[0];return uT(o,"iterationTypesOfIteratorResult",aD(void 0,R,void 0))}let m=G_(o,Zwr),v=m!==tn?en(m,"value"):void 0,E=G_(o,Xwr),D=E!==tn?en(E,"value"):void 0;return!v&&!D?uT(o,"iterationTypesOfIteratorResult",xc):uT(o,"iterationTypesOfIteratorResult",aD(v,D||pn,void 0))}function jUe(o,p,m,v,E){var D,R,K,se;let ce=vc(o,m);if(!ce&&m!=="next")return;let fe=ce&&!(m==="next"&&ce.flags&16777216)?m==="next"?di(ce):M0(di(ce),2097152):void 0;if(Mi(fe))return ep;let Ue=fe?Gs(fe,0):j;if(Ue.length===0){if(v){let sn=m==="next"?p.mustHaveANextMethodDiagnostic:p.mustBeAMethodDiagnostic;E?(E.errors??(E.errors=[]),E.errors.push(xi(v,sn,m))):gt(v,sn,m)}return m==="next"?xc:void 0}if(fe?.symbol&&Ue.length===1){let sn=p.getGlobalGeneratorType(!1),rn=p.getGlobalIteratorType(!1),vi=((R=(D=sn.symbol)==null?void 0:D.members)==null?void 0:R.get(m))===fe.symbol,wo=!vi&&((se=(K=rn.symbol)==null?void 0:K.members)==null?void 0:se.get(m))===fe.symbol;if(vi||wo){let Fa=vi?sn:rn,{mapper:ho}=fe;return aD(XE(Fa.typeParameters[0],ho),XE(Fa.typeParameters[1],ho),m==="next"?XE(Fa.typeParameters[2],ho):void 0)}}let Me,yt;for(let sn of Ue)m!=="throw"&&Pt(sn.parameters)&&(Me=jt(Me,qv(sn,0))),yt=jt(yt,Tl(sn));let Jt,Xt;if(m!=="throw"){let sn=Me?Do(Me):er;if(m==="next")Xt=sn;else if(m==="return"){let rn=p.resolveIterationType(sn,v)||at;Jt=jt(Jt,rn)}}let kr,on=yt?Ac(yt):tn,Hn=p.resolveIterationType(on,v)||at,fi=Ywr(Hn);return fi===xc?(v&&(E?(E.errors??(E.errors=[]),E.errors.push(xi(v,p.mustHaveAValueDiagnostic,m))):gt(v,p.mustHaveAValueDiagnostic,m)),kr=at,Jt=jt(Jt,at)):(kr=fi.yieldType,Jt=jt(Jt,fi.returnType)),aD(kr,Do(Jt),Xt)}function eIr(o,p,m,v,E){let D=UAt([jUe(o,p,"next",m,v),jUe(o,p,"return",m,v),jUe(o,p,"throw",m,v)]);return E?D:uT(o,p.iteratorCacheKey,D)}function rk(o,p,m){if(Mi(p))return;let v=BUe(p,m);return v&&v[p_t(o)]}function BUe(o,p){if(Mi(o))return ep;let m=p?2:1,v=p?g_:xu;return VTe(o,m,void 0)||Hwr(o,v,void 0,void 0)}function tIr(o){k2(o)||_6r(o)}function Ece(o,p){let m=!!(p&1),v=!!(p&2);if(m){let E=rk(1,o,v);return E?v?E2(aJ(E)):E:Et}return v?E2(o)||Et:o}function KAt(o,p){let m=Ece(p,A_(o));return!!(m&&(s_(m,16384)||m.flags&32769))}function rIr(o){if(k2(o))return;let p=gre(o);if(p&&n_(p)){mf(o,x.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!p){mf(o,x.A_return_statement_can_only_be_used_within_a_function_body);return}let m=t0(p),v=Tl(m);if(be||o.expression||v.flags&131072){let E=o.expression?Bp(o.expression):Ne;if(p.kind===179)o.expression&>(o,x.Setters_cannot_return_a_value);else if(p.kind===177){let D=o.expression?Bp(o.expression):Ne;o.expression&&!l6(D,v,o,o.expression)&>(o,x.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class)}else if(RM(p)){let D=Ece(v,A_(p))??v;WTe(p,D,o,o.expression,E)}}else p.kind!==177&&Q.noImplicitReturns&&!KAt(p,v)&>(o,x.Not_all_code_paths_return_a_value)}function WTe(o,p,m,v,E,D=!1){let R=Ei(m),K=A_(o);if(v){let Me=bl(v,R);if(a3(Me)){WTe(o,p,m,Me.whenTrue,Va(Me.whenTrue),!0),WTe(o,p,m,Me.whenFalse,Va(Me.whenFalse),!0);return}}let se=m.kind===254,ce=K&2?yce(E,!1,m,x.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):E,fe=v&&DTe(v);l6(ce,p,se&&!D?m:fe,fe)}function nIr(o){k2(o)||o.flags&65536&&mf(o,x.with_statements_are_not_allowed_in_an_async_function_block),Va(o.expression);let p=Pn(o);if(!sD(p)){let m=gS(p,o.pos).start,v=o.statement.pos;Iw(p,m,v-m,x.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function iIr(o){k2(o);let p,m=!1,v=Va(o.expression);X(o.caseBlock.clauses,E=>{E.kind===298&&!m&&(p===void 0?p=E:(mn(E,x.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),m=!0)),E.kind===297&&a(D(E)),X(E.statements,Pc),Q.noFallthroughCasesInSwitch&&E.fallthroughFlowNode&&Wse(E.fallthroughFlowNode)&>(E,x.Fallthrough_case_in_switch);function D(R){return()=>{let K=Va(R.expression);vUe(v,K)||_kt(K,v,R.expression,void 0)}}}),o.caseBlock.locals&&oD(o.caseBlock)}function oIr(o){k2(o)||fn(o.parent,p=>Rs(p)?"quit":p.kind===257&&p.label.escapedText===o.label.escapedText?(mn(o.label,x.Duplicate_label_0,Sp(o.label)),!0):!1),Pc(o.statement)}function aIr(o){k2(o)||ct(o.expression)&&!o.expression.escapedText&&C6r(o,x.Line_break_not_permitted_here),o.expression&&Va(o.expression)}function sIr(o){k2(o),zTe(o.tryBlock);let p=o.catchClause;if(p){if(p.variableDeclaration){let m=p.variableDeclaration;xce(m);let v=X_(m);if(v){let E=Sa(v);E&&!(E.flags&3)&&mf(v,x.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(m.initializer)mf(m.initializer,x.Catch_clause_variable_cannot_have_an_initializer);else{let E=p.block.locals;E&&Ix(p.locals,D=>{let R=E.get(D);R?.valueDeclaration&&(R.flags&2)!==0&&mn(R.valueDeclaration,x.Cannot_redeclare_identifier_0_in_catch_clause,oa(D))})}}zTe(p.block)}o.finallyBlock&&zTe(o.finallyBlock)}function GTe(o,p,m){let v=lm(o);if(v.length===0)return;for(let D of KE(o))m&&D.flags&4194304||QAt(o,D,A7(D,8576,!0),Lv(D));let E=p.valueDeclaration;if(E&&Co(E)){for(let D of E.members)if((!m&&!oc(D)||m&&oc(D))&&!OM(D)){let R=$i(D);QAt(o,R,Kf(D.name.expression),Lv(R))}}if(v.length>1)for(let D of v)cIr(o,D)}function QAt(o,p,m,v){let E=p.valueDeclaration,D=cs(E);if(D&&Aa(D))return;let R=Gje(o,m),K=ro(o)&2?Qu(o.symbol,265):void 0,se=E&&E.kind===227||D&&D.kind===168?E:void 0,ce=Od(p)===o.symbol?E:void 0;for(let fe of R){let Ue=fe.declaration&&Od($i(fe.declaration))===o.symbol?fe.declaration:void 0,Me=ce||Ue||(K&&!Pt(ov(o),yt=>!!t6(yt,p.escapedName)&&!!vw(yt,fe.keyType))?K:void 0);if(Me&&!tc(v,fe.type)){let yt=qP(Me,x.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Ua(p),ri(v),ri(fe.keyType),ri(fe.type));se&&Me!==se&&ac(yt,xi(se,x._0_is_declared_here,Ua(p))),il.add(yt)}}}function cIr(o,p){let m=p.declaration,v=Gje(o,p.keyType),E=ro(o)&2?Qu(o.symbol,265):void 0,D=m&&Od($i(m))===o.symbol?m:void 0;for(let R of v){if(R===p)continue;let K=R.declaration&&Od($i(R.declaration))===o.symbol?R.declaration:void 0,se=D||K||(E&&!Pt(ov(o),ce=>!!oT(ce,p.keyType)&&!!vw(ce,R.keyType))?E:void 0);se&&!tc(p.type,R.type)&>(se,x._0_index_type_1_is_not_assignable_to_2_index_type_3,ri(p.keyType),ri(p.type),ri(R.keyType),ri(R.type))}}function cJ(o,p){switch(o.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":case"undefined":gt(o,p,o.escapedText)}}function lIr(o){re>=1&&o.escapedText==="Object"&&t.getEmitModuleFormatOfFile(Pn(o))<5&>(o,x.Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0,tE[ae])}function uIr(o){let p=yr(sA(o),Uy);if(!te(p))return;let m=Ei(o),v=new Set,E=new Set;if(X(o.parameters,({name:R},K)=>{ct(R)&&v.add(R.escapedText),$s(R)&&E.add(K)}),Kje(o)){let R=p.length-1,K=p[R];m&&K&&ct(K.name)&&K.typeExpression&&K.typeExpression.type&&!v.has(K.name.escapedText)&&!E.has(R)&&!L0(Sa(K.typeExpression.type))&>(K.name,x.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Zi(K.name))}else X(p,({name:R,isNameFirst:K},se)=>{E.has(se)||ct(R)&&v.has(R.escapedText)||(dh(R)?m&>(R,x.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Rg(R),Rg(R.left)):K||Y1(m,R,x.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Zi(R)))})}function kce(o){let p=!1;if(o)for(let v=0;v{v.default?(p=!0,pIr(v.default,o,E)):p&>(v,x.Required_type_parameters_may_not_follow_optional_type_parameters);for(let D=0;Dv)return!1;for(let se=0;sefd(m)&&Tm(m))&&mn(p,x.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!o.name&&!ko(o,2048)&&mf(o,x.A_class_declaration_without_the_default_modifier_must_have_a_name),ewt(o),X(o.members,Pc),oD(o)}function ewt(o){ZPr(o),vce(o),sJ(o,o.name),kce(Zk(o)),RZ(o);let p=$i(o),m=Tu(p),v=Yg(m),E=di(p);ZAt(p),BTe(p),DAr(o),o.flags&33554432||AAr(o);let R=vv(o);if(R){X(R.typeArguments,Pc),re{let Ue=fe[0],Me=d2(m),yt=nh(Me);if(gIr(yt,R),Pc(R.expression),Pt(R.typeArguments)){X(R.typeArguments,Pc);for(let Xt of iv(yt,R.typeArguments,R))if(!EAt(R,Xt.typeParameters))break}let Jt=Yg(Ue,m.thisType);if(pm(v,Jt,void 0)?pm(E,akt(yt),o.name||o,x.Class_static_side_0_incorrectly_extends_base_class_static_side_1):nwt(o,v,Jt,x.Class_0_incorrectly_extends_base_class_1),Me.flags&8650752&&(Of(E)?Gs(Me,1).some(kr=>kr.flags&4)&&!ko(o,64)&>(o.name||o,x.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):gt(o.name||o,x.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(yt.symbol&&yt.symbol.flags&32)&&!(Me.flags&8650752)){let Xt=nT(yt,R.typeArguments,R);X(Xt,kr=>!XS(kr.declaration)&&!cT(Tl(kr),Ue))&>(R.expression,x.Base_constructors_must_all_have_the_same_return_type)}SIr(m,Ue)})}hIr(o,m,v,E);let K=ZR(o);if(K)for(let ce of K)(!ru(ce.expression)||xm(ce.expression))&>(ce.expression,x.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),CUe(ce),a(se(ce));a(()=>{GTe(m,p),GTe(E,p,!0),EUe(o),TIr(o)});function se(ce){return()=>{let fe=S1(Sa(ce));if(!si(fe))if(use(fe)){let Ue=fe.symbol&&fe.symbol.flags&32?x.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:x.Class_0_incorrectly_implements_interface_1,Me=Yg(fe,m.thisType);pm(v,Me,void 0)||nwt(o,v,Me,Ue)}else gt(ce,x.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function hIr(o,p,m,v){let D=vv(o)&&ov(p),R=D?.length?Yg(To(D),p.thisType):void 0,K=d2(p);for(let se of o.members)vhe(se)||(kp(se)&&X(se.parameters,ce=>{ne(ce,se)&&twt(o,v,K,R,p,m,ce,!0)}),twt(o,v,K,R,p,m,se,!1))}function twt(o,p,m,v,E,D,R,K,se=!0){let ce=R.name&&B0(R.name)||B0(R);return ce?rwt(o,p,m,v,E,D,Wre(R),pP(R),oc(R),K,ce,se?R:void 0):0}function rwt(o,p,m,v,E,D,R,K,se,ce,fe,Ue){let Me=Ei(o),yt=!!(o.flags&33554432);if(R&&fe?.valueDeclaration&&J_(fe.valueDeclaration)&&fe.valueDeclaration.name&&y2t(fe.valueDeclaration.name))return gt(Ue,Me?x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:x.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic),2;if(v&&(R||Q.noImplicitOverride)){let Jt=se?p:D,Xt=se?m:v,kr=vc(Jt,fe.escapedName),on=vc(Xt,fe.escapedName),Hn=ri(v);if(kr&&!on&&R){if(Ue){let fi=pDt(vp(fe),Xt);fi?gt(Ue,Me?x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:x.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Hn,Ua(fi)):gt(Ue,Me?x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:x.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Hn)}return 2}else if(kr&&on?.declarations&&Q.noImplicitOverride&&!yt){let fi=Pt(on.declarations,pP);if(R)return 0;if(fi){if(K&&fi)return Ue&>(Ue,x.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Hn),1}else{if(Ue){let sn=ce?Me?x.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:x.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Me?x.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:x.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;gt(Ue,sn,Hn)}return 1}}}else if(R){if(Ue){let Jt=ri(E);gt(Ue,Me?x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:x.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,Jt)}return 2}return 0}function nwt(o,p,m,v){let E=!1;for(let D of o.members){if(oc(D))continue;let R=D.name&&B0(D.name)||B0(D);if(R){let K=vc(p,R.escapedName),se=vc(m,R.escapedName);if(K&&se){let ce=()=>ws(void 0,x.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Ua(R),ri(p),ri(m));pm(di(K),di(se),D.name||D,void 0,ce)||(E=!0)}}}E||pm(p,m,o.name||o,v)}function gIr(o,p){let m=Gs(o,1);if(m.length){let v=m[0].declaration;if(v&&Bg(v,2)){let E=JT(o.symbol);VUe(p,E)||gt(p,x.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,$E(o.symbol))}}}function yIr(o,p,m){if(!p.name)return 0;let v=$i(o),E=Tu(v),D=Yg(E),R=di(v),se=vv(o)&&ov(E),ce=se?.length?Yg(To(se),E.thisType):void 0,fe=d2(E),Ue=p.parent?Wre(p):ko(p,16);return rwt(o,R,fe,ce,E,D,Ue,pP(p),oc(p),!1,m)}function ZM(o){return Fp(o)&1?o.links.target:o}function vIr(o){return yr(o.declarations,p=>p.kind===264||p.kind===265)}function SIr(o,p){var m,v,E,D,R;let K=$l(p),se=new Map;e:for(let ce of K){let fe=ZM(ce);if(fe.flags&4194304)continue;let Ue=t6(o,fe.escapedName);if(!Ue)continue;let Me=ZM(Ue),yt=S0(fe);if($.assert(!!Me,"derived should point to something, even if it is the base class' declaration."),Me===fe){let Jt=JT(o.symbol);if(yt&64&&(!Jt||!ko(Jt,64))){for(let fi of ov(o)){if(fi===p)continue;let sn=t6(fi,fe.escapedName),rn=sn&&ZM(sn);if(rn&&rn!==fe)continue e}let Xt=ri(p),kr=ri(o),on=Ua(ce),Hn=jt((m=se.get(Jt))==null?void 0:m.missedProperties,on);se.set(Jt,{baseTypeName:Xt,typeName:kr,missedProperties:Hn})}}else{let Jt=S0(Me);if(yt&2||Jt&2)continue;let Xt,kr=fe.flags&98308,on=Me.flags&98308;if(kr&&on){if((Fp(fe)&6?(v=fe.declarations)!=null&&v.some(sn=>iwt(sn,yt)):(E=fe.declarations)!=null&&E.every(sn=>iwt(sn,yt)))||Fp(fe)&262144||Me.valueDeclaration&&wi(Me.valueDeclaration))continue;let Hn=kr!==4&&on===4;if(Hn||kr===4&&on!==4){let sn=Hn?x._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:x._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;gt(cs(Me.valueDeclaration)||Me.valueDeclaration,sn,Ua(fe),ri(p),ri(o))}else if(me){let sn=(D=Me.declarations)==null?void 0:D.find(rn=>rn.kind===173&&!rn.initializer);if(sn&&!(Me.flags&33554432)&&!(yt&64)&&!(Jt&64)&&!((R=Me.declarations)!=null&&R.some(rn=>!!(rn.flags&33554432)))){let rn=AH(JT(o.symbol)),vi=sn.name;if(sn.exclamationToken||!rn||!ct(vi)||!be||!awt(vi,o,rn)){let wo=x.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;gt(cs(Me.valueDeclaration)||Me.valueDeclaration,wo,Ua(fe),ri(p))}}}continue}else if(B$e(fe)){if(B$e(Me)||Me.flags&4)continue;$.assert(!!(Me.flags&98304)),Xt=x.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else fe.flags&98304?Xt=x.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Xt=x.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;gt(cs(Me.valueDeclaration)||Me.valueDeclaration,Xt,ri(p),Ua(fe),ri(o))}}for(let[ce,fe]of se)if(te(fe.missedProperties)===1)w_(ce)?gt(ce,x.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,To(fe.missedProperties),fe.baseTypeName):gt(ce,x.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,fe.typeName,To(fe.missedProperties),fe.baseTypeName);else if(te(fe.missedProperties)>5){let Ue=Cr(fe.missedProperties.slice(0,4),yt=>`'${yt}'`).join(", "),Me=te(fe.missedProperties)-4;w_(ce)?gt(ce,x.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,fe.baseTypeName,Ue,Me):gt(ce,x.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,fe.typeName,fe.baseTypeName,Ue,Me)}else{let Ue=Cr(fe.missedProperties,Me=>`'${Me}'`).join(", ");w_(ce)?gt(ce,x.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,fe.baseTypeName,Ue):gt(ce,x.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,fe.typeName,fe.baseTypeName,Ue)}}function iwt(o,p){return p&64&&(!ps(o)||!o.initializer)||Af(o.parent)}function bIr(o,p,m){if(!te(p))return m;let v=new Map;X(m,E=>{v.set(E.escapedName,E)});for(let E of p){let D=$l(Yg(E,o.thisType));for(let R of D){let K=v.get(R.escapedName);K&&R.parent===K.parent&&v.delete(R.escapedName)}}return so(v.values())}function xIr(o,p){let m=ov(o);if(m.length<2)return!0;let v=new Map;X(Nje(o).declaredProperties,D=>{v.set(D.escapedName,{prop:D,containingType:o})});let E=!0;for(let D of m){let R=$l(Yg(D,o.thisType));for(let K of R){let se=v.get(K.escapedName);if(!se)v.set(K.escapedName,{prop:K,containingType:D});else if(se.containingType!==o&&!m2r(se.prop,K)){E=!1;let fe=ri(se.containingType),Ue=ri(D),Me=ws(void 0,x.Named_property_0_of_types_1_and_2_are_not_identical,Ua(K),fe,Ue);Me=ws(Me,x.Interface_0_cannot_simultaneously_extend_types_1_and_2,ri(o),fe,Ue),il.add(Nx(Pn(p),p,Me))}}}return E}function TIr(o){if(!be||!Ce||o.flags&33554432)return;let p=AH(o);for(let m of o.members)if(!(tm(m)&128)&&!oc(m)&&owt(m)){let v=m.name;if(ct(v)||Aa(v)||dc(v)){let E=di($i(m));E.flags&3||UM(E)||(!p||!awt(v,E,p))&>(m.name,x.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,du(v))}}}function owt(o){return o.kind===173&&!pP(o)&&!o.exclamationToken&&!o.initializer}function EIr(o,p,m,v,E){for(let D of m)if(D.pos>=v&&D.pos<=E){let R=W.createPropertyAccessExpression(W.createThis(),o);xl(R.expression,R),xl(R,D),R.flowNode=D.returnFlowNode;let K=T2(R,p,nD(p));if(!UM(K))return!0}return!1}function awt(o,p,m){let v=dc(o)?W.createElementAccessExpression(W.createThis(),o.expression):W.createPropertyAccessExpression(W.createThis(),o);xl(v.expression,v),xl(v,m),v.flowNode=m.returnFlowNode;let E=T2(v,p,nD(p));return!UM(E)}function kIr(o){pT(o)||i6r(o),s2e(o.parent)||mn(o,x._0_declarations_can_only_be_declared_inside_a_block,"interface"),kce(o.typeParameters),a(()=>{cJ(o.name,x.Interface_name_cannot_be_0),RZ(o);let p=$i(o);ZAt(p);let m=Qu(p,265);if(o===m){let v=Tu(p),E=Yg(v);if(xIr(v,o.name)){for(let D of ov(v))pm(E,Yg(D,v.thisType),o.name,x.Interface_0_incorrectly_extends_interface_1);GTe(v,p)}}SAt(o)}),X(kU(o),p=>{(!ru(p.expression)||xm(p.expression))&>(p.expression,x.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),CUe(p)}),X(o.members,Pc),a(()=>{EUe(o),oD(o)})}function CIr(o){if(pT(o),cJ(o.name,x.Type_alias_name_cannot_be_0),s2e(o.parent)||mn(o,x._0_declarations_can_only_be_declared_inside_a_block,"type"),RZ(o),kce(o.typeParameters),o.type.kind===141){let p=te(o.typeParameters);(p===0?o.name.escapedText==="BuiltinIteratorReturn":p===1&&Gye.has(o.name.escapedText))||gt(o.type,x.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else Pc(o.type),oD(o)}function swt(o){let p=Ki(o);if(!(p.flags&1024)){p.flags|=1024;let m=0,v;for(let E of o.members){let D=DIr(E,m,v);Ki(E).enumMemberValue=D,m=typeof D.value=="number"?D.value+1:void 0,v=E}}}function DIr(o,p,m){if(TG(o.name))gt(o.name,x.Computed_property_names_are_not_allowed_in_enums);else if(dL(o.name))gt(o.name,x.An_enum_member_cannot_have_a_numeric_name);else{let v=UO(o.name);$x(v)&&!ZU(v)&>(o.name,x.An_enum_member_cannot_have_a_numeric_name)}if(o.initializer)return AIr(o);if(o.parent.flags&33554432&&!lA(o.parent))return wd(void 0);if(p===void 0)return gt(o.name,x.Enum_member_must_have_initializer),wd(void 0);if(a1(Q)&&m?.initializer){let v=kN(m);typeof v.value=="number"&&!v.resolvedOtherFiles||gt(o.name,x.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return wd(p)}function AIr(o){let p=lA(o.parent),m=o.initializer,v=nt(m,o);return v.value!==void 0?p&&typeof v.value=="number"&&!isFinite(v.value)?gt(m,isNaN(v.value)?x.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:x.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a1(Q)&&typeof v.value=="string"&&!v.isSyntacticallyString&>(m,x._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${Zi(o.parent.name)}.${UO(o.name)}`):p?gt(m,x.const_enum_member_initializers_must_be_constant_expressions):o.parent.flags&33554432?gt(m,x.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):pm(Va(m),Ir,m,x.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),v}function cwt(o,p){let m=jp(o,111551,!0);if(!m)return wd(void 0);if(o.kind===80){let v=o;if(ZU(v.escapedText)&&m===BM(v.escapedText,111551,void 0))return wd(+v.escapedText,!1)}if(m.flags&8)return p?lwt(o,m,p):kN(m.valueDeclaration);if(F7(m)){let v=m.valueDeclaration;if(v&&Oo(v)&&!v.type&&v.initializer&&(!p||v!==p&&l2(v,p))){let E=nt(v.initializer,v);return p&&Pn(p)!==Pn(v)?wd(E.value,!1,!0,!0):wd(E.value,E.isSyntacticallyString,E.resolvedOtherFiles,!0)}}return wd(void 0)}function wIr(o,p){let m=o.expression;if(ru(m)&&Sl(o.argumentExpression)){let v=jp(m,111551,!0);if(v&&v.flags&384){let E=dp(o.argumentExpression.text),D=v.exports.get(E);if(D)return $.assert(Pn(D.valueDeclaration)===Pn(v.valueDeclaration)),p?lwt(o,D,p):kN(D.valueDeclaration)}}return wd(void 0)}function lwt(o,p,m){let v=p.valueDeclaration;if(!v||v===m)return gt(o,x.Property_0_is_used_before_being_assigned,Ua(p)),wd(void 0);if(!l2(v,m))return gt(o,x.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),wd(0);let E=kN(v);return m.parent!==v.parent?wd(E.value,E.isSyntacticallyString,E.resolvedOtherFiles,!0):E}function IIr(o){a(()=>PIr(o))}function PIr(o){pT(o),sJ(o,o.name),RZ(o),o.members.forEach(Pc),Q.erasableSyntaxOnly&&!(o.flags&33554432)&>(o,x.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),swt(o);let p=$i(o),m=Qu(p,o.kind);if(o===m){if(p.declarations&&p.declarations.length>1){let E=lA(o);X(p.declarations,D=>{CA(D)&&lA(D)!==E&>(cs(D),x.Enum_declarations_must_all_be_const_or_non_const)})}let v=!1;X(p.declarations,E=>{if(E.kind!==267)return!1;let D=E;if(!D.members.length)return!1;let R=D.members[0];R.initializer||(v?gt(R.name,x.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):v=!0)})}}function NIr(o){Aa(o.name)&>(o,x.An_enum_member_cannot_be_named_with_a_private_identifier),o.initializer&&Va(o.initializer)}function OIr(o){let p=o.declarations;if(p){for(let m of p)if((m.kind===264||m.kind===263&&t1(m.body))&&!(m.flags&33554432))return m}}function FIr(o,p){let m=yv(o),v=yv(p);return uE(m)?uE(v):uE(v)?!1:m===v}function RIr(o){o.body&&(Pc(o.body),xb(o)||oD(o)),a(p);function p(){var m,v;let E=xb(o),D=o.flags&33554432;E&&!D&>(o.name,x.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);let R=Gm(o),K=R?x.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:x.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(Cce(o,K))return;if(pT(o)||!D&&o.name.kind===11&&mn(o.name,x.Only_ambient_modules_can_use_quoted_names),ct(o.name)&&(sJ(o,o.name),!(o.flags&2080))){let ce=Pn(o),fe=YPe(o),Ue=gS(ce,fe);L3.add(md(ce,Ue.start,Ue.length,x.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}RZ(o);let se=$i(o);if(se.flags&512&&!D&&Hye(o,dC(Q))){if(Q.erasableSyntaxOnly&>(o.name,x.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),a1(Q)&&!Pn(o).externalModuleIndicator&>(o.name,x.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Qe),((m=se.declarations)==null?void 0:m.length)>1){let ce=OIr(se);ce&&(Pn(o)!==Pn(ce)?gt(o.name,x.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):o.posfe.kind===95);ce&>(ce,x.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(R)if(eP(o)){if((E||$i(o).flags&33554432)&&o.body)for(let fe of o.body.statements)$Ue(fe,E)}else uE(o.parent)?E?gt(o.name,x.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):vt(g0(o.name))&>(o.name,x.Ambient_module_declaration_cannot_specify_relative_module_name):E?gt(o.name,x.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):gt(o.name,x.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function $Ue(o,p){switch(o.kind){case 244:for(let v of o.declarationList.declarations)$Ue(v,p);break;case 278:case 279:mf(o,x.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 272:if(z4(o))break;case 273:mf(o,x.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 209:case 261:let m=o.name;if($s(m)){for(let v of m.elements)$Ue(v,p);break}case 264:case 267:case 263:case 265:case 268:case 266:if(p)return;break}}function LIr(o){switch(o.kind){case 80:return o;case 167:do o=o.left;while(o.kind!==80);return o;case 212:do{if(Fx(o.expression)&&!Aa(o.name))return o.name;o=o.expression}while(o.kind!==80);return o}}function HTe(o){let p=JO(o);if(!p||Op(p))return!1;if(!Ic(p))return gt(p,x.String_literal_expected),!1;let m=o.parent.kind===269&&Gm(o.parent.parent);if(o.parent.kind!==308&&!m)return gt(p,o.kind===279?x.Export_declarations_are_not_permitted_in_a_namespace:x.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(m&&vt(p.text)&&!Nq(o))return gt(o,x.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!gd(o)&&o.attributes){let v=o.attributes.token===118?x.Import_attribute_values_must_be_string_literal_expressions:x.Import_assertion_values_must_be_string_literal_expressions,E=!1;for(let D of o.attributes.elements)Ic(D.value)||(E=!0,gt(D.value,v));return!E}return!0}function KTe(o,p=!0){o===void 0||o.kind!==11||(p?(ae===5||ae===6)&&mn(o,x.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):mn(o,x.Identifier_expected))}function QTe(o){var p,m,v,E,D;let R=$i(o),K=df(R);if(K!==ye){if(R=cl(R.exportSymbol||R),Ei(o)&&!(K.flags&111551)&&!cE(o)){let fe=Yk(o)?o.propertyName||o.name:Vp(o)?o.name:o;if($.assert(o.kind!==281),o.kind===282){let Ue=gt(fe,x.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Me=(m=(p=Pn(o).symbol)==null?void 0:p.exports)==null?void 0:m.get(YI(o.propertyName||o.name));if(Me===K){let yt=(v=Me.declarations)==null?void 0:v.find(LR);yt&&ac(Ue,xi(yt,x._0_is_automatically_exported_here,oa(Me.escapedName)))}}else{$.assert(o.kind!==261);let Ue=fn(o,jf(fp,gd)),Me=(Ue&&((E=qO(Ue))==null?void 0:E.text))??"...",yt=oa(ct(fe)?fe.escapedText:R.escapedName);gt(fe,x._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,yt,`import("${Me}").${yt}`)}return}let se=Zh(K),ce=(R.flags&1160127?111551:0)|(R.flags&788968?788968:0)|(R.flags&1920?1920:0);if(se&ce){let fe=o.kind===282?x.Export_declaration_conflicts_with_exported_declaration_of_0:x.Import_declaration_conflicts_with_local_declaration_of_0;gt(o,fe,Ua(R))}else o.kind!==282&&Q.isolatedModules&&!fn(o,cE)&&R.flags&1160127&>(o,x.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ua(R),Qe);if(a1(Q)&&!cE(o)&&!(o.flags&33554432)){let fe=Fv(R),Ue=!(se&111551);if(Ue||fe)switch(o.kind){case 274:case 277:case 272:{if(Q.verbatimModuleSyntax){$.assertIsDefined(o.name,"An ImportClause with a symbol should have a name");let Me=Q.verbatimModuleSyntax&&z4(o)?x.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Ue?x._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:x._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,yt=aC(o.kind===277&&o.propertyName||o.name);gs(gt(o,Me,yt),Ue?void 0:fe,yt)}Ue&&o.kind===272&&Bg(o,32)&>(o,x.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Qe);break}case 282:if(Q.verbatimModuleSyntax||Pn(fe)!==Pn(o)){let Me=aC(o.propertyName||o.name),yt=Ue?gt(o,x.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Qe):gt(o,x._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Me,Qe);gs(yt,Ue?void 0:fe,Me);break}}if(Q.verbatimModuleSyntax&&o.kind!==272&&!Ei(o)&&t.getEmitModuleFormatOfFile(Pn(o))===1?gt(o,M3(o)):ae===200&&o.kind!==272&&o.kind!==261&&t.getEmitModuleFormatOfFile(Pn(o))===1&>(o,x.ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),Q.verbatimModuleSyntax&&!cE(o)&&!(o.flags&33554432)&&se&128){let Me=K.valueDeclaration,yt=(D=t.getRedirectFromOutput(Pn(Me).resolvedPath))==null?void 0:D.resolvedRef;Me.flags&33554432&&(!yt||!dC(yt.commandLine.options))&>(o,x.Cannot_access_ambient_const_enums_when_0_is_enabled,Qe)}}if(Xm(o)){let fe=UUe(R,o);th(fe)&&fe.declarations&&g1(o,fe.declarations,fe.escapedName)}}}function UUe(o,p){if(!(o.flags&2097152)||th(o)||!Qh(o))return o;let m=df(o);if(m===ye)return m;for(;o.flags&2097152;){let v=gTe(o);if(v){if(v===m)break;if(v.declarations&&te(v.declarations))if(th(v)){g1(p,v.declarations,v.escapedName);break}else{if(o===m)break;o=v}}else break}return m}function ZTe(o){sJ(o,o.name),QTe(o),o.kind===277&&(KTe(o.propertyName),bb(o.propertyName||o.name)&&kS(Q)&&t.getEmitModuleFormatOfFile(Pn(o))<4&&Fd(o,131072))}function zUe(o){var p;let m=o.attributes;if(m){let v=iBe(!0);v!==kc&&pm(Tje(m),jse(v,32768),m);let E=P0e(o),D=$L(m,E?mn:void 0),R=o.attributes.token===118;if(E&&D)return;if(!N4e(ae))return mn(m,R?x.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:x.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve);if(102<=ae&&ae<=199&&!R)return mf(m,x.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);if(o.moduleSpecifier&&u2(o.moduleSpecifier)===1)return mn(m,R?x.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:x.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls);if(OS(o)||(fp(o)?(p=o.importClause)==null?void 0:p.isTypeOnly:o.isTypeOnly))return mn(m,R?x.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:x.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(D)return mn(m,x.resolution_mode_can_only_be_set_for_type_only_imports)}}function MIr(o){return ih(Bp(o.value))}function jIr(o){if(!Cce(o,Ei(o)?x.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:x.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!pT(o)&&o.modifiers&&mf(o,x.An_import_declaration_cannot_have_modifiers),HTe(o)){let p,m=o.importClause;m&&!A6r(m)?(m.name&&ZTe(m),m.namedBindings&&(m.namedBindings.kind===275?(ZTe(m.namedBindings),t.getEmitModuleFormatOfFile(Pn(o))<4&&kS(Q)&&Fd(o,65536)):(p=Nm(o,o.moduleSpecifier),p&&X(m.namedBindings.elements,ZTe))),!m.isTypeOnly&&101<=ae&&ae<=199&&zC(o.moduleSpecifier,p)&&!BIr(o)&>(o.moduleSpecifier,x.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,tE[ae])):ut&&!m&&Nm(o,o.moduleSpecifier)}zUe(o)}}function BIr(o){return!!o.attributes&&o.attributes.elements.some(p=>{var m;return g0(p.name)==="type"&&((m=Ci(p.value,Sl))==null?void 0:m.text)==="json"})}function $Ir(o){if(!Cce(o,Ei(o)?x.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:x.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(pT(o),Q.erasableSyntaxOnly&&!(o.flags&33554432)&>(o,x.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),z4(o)||HTe(o)))if(ZTe(o),R7(o,6),o.moduleReference.kind!==284){let p=df($i(o));if(p!==ye){let m=Zh(p);if(m&111551){let v=_h(o.moduleReference);jp(v,112575).flags&1920||gt(v,x.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,du(v))}m&788968&&cJ(o.name,x.Import_name_cannot_be_0)}o.isTypeOnly&&mn(o,x.An_import_alias_cannot_use_import_type)}else 5<=ae&&ae<=99&&!o.isTypeOnly&&!(o.flags&33554432)&&mn(o,x.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function UIr(o){if(!Cce(o,Ei(o)?x.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:x.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!pT(o)&&r4e(o)&&mf(o,x.An_export_declaration_cannot_have_modifiers),zIr(o),!o.moduleSpecifier||HTe(o))if(o.exportClause&&!Db(o.exportClause)){X(o.exportClause.elements,qIr);let p=o.parent.kind===269&&Gm(o.parent.parent),m=!p&&o.parent.kind===269&&!o.moduleSpecifier&&o.flags&33554432;o.parent.kind!==308&&!p&&!m&>(o,x.Export_declarations_are_not_permitted_in_a_namespace)}else{let p=Nm(o,o.moduleSpecifier);p&&rv(p)?gt(o.moduleSpecifier,x.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Ua(p)):o.exportClause&&(QTe(o.exportClause),KTe(o.exportClause.name)),t.getEmitModuleFormatOfFile(Pn(o))<4&&(o.exportClause?kS(Q)&&Fd(o,65536):Fd(o,32768))}zUe(o)}}function zIr(o){var p;return o.isTypeOnly&&((p=o.exportClause)==null?void 0:p.kind)===280?Jwt(o.exportClause):!1}function Cce(o,p){let m=o.parent.kind===308||o.parent.kind===269||o.parent.kind===268;return m||mf(o,p),!m}function qIr(o){QTe(o);let p=o.parent.parent.moduleSpecifier!==void 0;if(KTe(o.propertyName,p),KTe(o.name),fg(Q)&&IM(o.propertyName||o.name,!0),p)kS(Q)&&t.getEmitModuleFormatOfFile(Pn(o))<4&&bb(o.propertyName||o.name)&&Fd(o,131072);else{let m=o.propertyName||o.name;if(m.kind===11)return;let v=$t(m,m.escapedText,2998271,void 0,!0);v&&(v===ke||v===_t||v.declarations&&uE(ir(v.declarations[0])))?gt(m,x.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Zi(m)):R7(o,7)}}function JIr(o){let p=o.isExportEquals?x.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:x.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(Cce(o,p))return;Q.erasableSyntaxOnly&&o.isExportEquals&&!(o.flags&33554432)&>(o,x.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);let m=o.parent.kind===308?o.parent:o.parent.parent;if(m.kind===268&&!Gm(m)){o.isExportEquals?gt(o,x.An_export_assignment_cannot_be_used_in_a_namespace):gt(o,x.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!pT(o)&&yhe(o)&&mf(o,x.An_export_assignment_cannot_have_modifiers);let v=X_(o);v&&pm(Bp(o.expression),Sa(v),o.expression);let E=!o.isExportEquals&&!(o.flags&33554432)&&Q.verbatimModuleSyntax&&t.getEmitModuleFormatOfFile(Pn(o))===1;if(o.expression.kind===80){let D=o.expression,R=Wt(jp(D,-1,!0,!0,o));if(R){R7(o,3);let K=Fv(R,111551);if(Zh(R)&111551?(Bp(D),!E&&!(o.flags&33554432)&&Q.verbatimModuleSyntax&&K&>(D,o.isExportEquals?x.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:x.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Zi(D))):!E&&!(o.flags&33554432)&&Q.verbatimModuleSyntax&>(D,o.isExportEquals?x.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:x.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Zi(D)),!E&&!(o.flags&33554432)&&a1(Q)&&!(R.flags&111551)){let se=Zh(R,!1,!0);R.flags&2097152&&se&788968&&!(se&111551)&&(!K||Pn(K)!==Pn(o))?gt(D,o.isExportEquals?x._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:x._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Zi(D),Qe):K&&Pn(K)!==Pn(o)&&gs(gt(D,o.isExportEquals?x._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:x._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Zi(D),Qe),K,Zi(D))}}else Bp(D);fg(Q)&&IM(D,!0)}else Bp(o.expression);E&>(o,M3(o)),uwt(m),o.flags&33554432&&!ru(o.expression)&&mn(o.expression,x.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),o.isExportEquals&&(ae>=5&&ae!==200&&(o.flags&33554432&&t.getImpliedNodeFormatForEmit(Pn(o))===99||!(o.flags&33554432)&&t.getImpliedNodeFormatForEmit(Pn(o))!==1)?mn(o,x.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):ae===4&&!(o.flags&33554432)&&mn(o,x.Export_assignment_is_not_supported_when_module_flag_is_system))}function VIr(o){return Ad(o.exports,(p,m)=>m!=="export=")}function uwt(o){let p=$i(o),m=io(p);if(!m.exportsChecked){let v=p.exports.get("export=");if(v&&VIr(p)){let D=Qh(v)||v.valueDeclaration;D&&!Nq(D)&&!Ei(D)&>(D,x.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let E=VS(p);E&&E.forEach(({declarations:D,flags:R},K)=>{if(K==="__export"||R&1920)return;let se=Lo(D,EI(mar,_4(Af)));if(!(R&524288&&se<=2)&&se>1&&!XTe(D))for(let ce of D)l_t(ce)&&il.add(xi(ce,x.Cannot_redeclare_exported_variable_0,oa(K)))}),m.exportsChecked=!0}}function XTe(o){return o&&o.length>1&&o.every(p=>Ei(p)&&wu(p)&&(q4(p.expression)||Fx(p.expression)))}function Pc(o){if(o){let p=M;M=o,C=0,WIr(o),M=p}}function WIr(o){if(U7(o)&8388608)return;WG(o)&&X(o.jsDoc,({comment:m,tags:v})=>{pwt(m),X(v,E=>{pwt(E.comment),Ei(o)&&Pc(E)})});let p=o.kind;if(c)switch(p){case 268:case 264:case 265:case 263:c.throwIfCancellationRequested()}switch(p>=244&&p<=260&&KR(o)&&o.flowNode&&!Wse(o.flowNode)&&Y1(Q.allowUnreachableCode===!1,o,x.Unreachable_code_detected),p){case 169:return gAt(o);case 170:return yAt(o);case 173:return bAt(o);case 172:return wAr(o);case 186:case 185:case 180:case 181:case 182:return OZ(o);case 175:case 174:return IAr(o);case 176:return PAr(o);case 177:return NAr(o);case 178:case 179:return TAt(o);case 184:return CUe(o);case 183:return kAr(o);case 187:return jAr(o);case 188:return BAr(o);case 189:return $Ar(o);case 190:return UAr(o);case 193:case 194:return zAr(o);case 197:case 191:case 192:return Pc(o.type);case 198:return WAr(o);case 199:return GAr(o);case 195:return HAr(o);case 196:return KAr(o);case 204:return QAr(o);case 206:return ZAr(o);case 203:return XAr(o);case 329:return ywr(o);case 330:return gwr(o);case 347:case 339:case 341:return swr(o);case 346:return cwr(o);case 345:return lwr(o);case 325:case 326:case 327:return pwr(o);case 342:return _wr(o);case 349:return dwr(o);case 318:fwr(o);case 316:case 315:case 313:case 314:case 323:_wt(o),Is(o,Pc);return;case 319:GIr(o);return;case 310:return Pc(o.type);case 334:case 336:case 335:return vwr(o);case 351:return uwr(o);case 344:return mwr(o);case 352:return hwr(o);case 200:return qAr(o);case 201:return JAr(o);case 263:return awr(o);case 242:case 269:return zTe(o);case 244:return Mwr(o);case 245:return jwr(o);case 246:return Bwr(o);case 247:return zwr(o);case 248:return qwr(o);case 249:return Jwr(o);case 250:return Wwr(o);case 251:return Vwr(o);case 252:case 253:return tIr(o);case 254:return rIr(o);case 255:return nIr(o);case 256:return iIr(o);case 257:return oIr(o);case 258:return aIr(o);case 259:return sIr(o);case 261:return Rwr(o);case 209:return Lwr(o);case 264:return mIr(o);case 265:return kIr(o);case 266:return CIr(o);case 267:return IIr(o);case 307:return NIr(o);case 268:return RIr(o);case 273:return jIr(o);case 272:return $Ir(o);case 279:return UIr(o);case 278:return JIr(o);case 243:case 260:k2(o);return;case 283:return FAr(o)}}function pwt(o){Zn(o)&&X(o,p=>{RO(p)&&Pc(p)})}function _wt(o){if(!Ei(o))if(Gne(o)||xL(o)){let p=Zs(Gne(o)?54:58),m=o.postfix?x._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:x._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,v=o.type,E=Sa(v);mn(o,m,p,ri(xL(o)&&!(E===tn||E===pn)?Do(jt([E,Ne],o.postfix?void 0:mr)):E))}else mn(o,x.JSDoc_types_can_only_be_used_inside_documentation_comments)}function GIr(o){_wt(o),Pc(o.type);let{parent:p}=o;if(wa(p)&&TL(p.parent)){Sn(p.parent.parameters)!==p&>(o,x.A_rest_parameter_must_be_last_in_a_parameter_list);return}AA(p)||gt(o,x.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let m=o.parent.parent;if(!Uy(m)){gt(o,x.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let v=GG(m);if(!v)return;let E=dA(m);(!E||Sn(E.parameters).symbol!==v)&>(o,x.A_rest_parameter_must_be_last_in_a_parameter_list)}function HIr(o){let p=Sa(o.type),{parent:m}=o,v=o.parent.parent;if(AA(o.parent)&&Uy(v)){let E=dA(v),D=Mge(v.parent.parent);if(E||D){let R=Yr(D?v.parent.parent.typeExpression.parameters:E.parameters),K=GG(v);if(!R||K&&R.symbol===K&&Sb(R))return um(p)}}return wa(m)&&TL(m.parent)?um(p):Om(p)}function B7(o){let p=Pn(o),m=Ki(p);m.flags&1?$.assert(!m.deferredNodes,"A type-checked file should have no deferred nodes."):(m.deferredNodes||(m.deferredNodes=new Set),m.deferredNodes.add(o))}function dwt(o){let p=Ki(o);p.deferredNodes&&p.deferredNodes.forEach(KIr),p.deferredNodes=void 0}function KIr(o){var p,m;(p=hi)==null||p.push(hi.Phase.Check,"checkDeferredNode",{kind:o.kind,pos:o.pos,end:o.end,path:o.tracingPath});let v=M;switch(M=o,C=0,o.kind){case 214:case 215:case 216:case 171:case 287:xN(o);break;case 219:case 220:case 175:case 174:$Dr(o);break;case 178:case 179:TAt(o);break;case 232:fIr(o);break;case 169:EAr(o);break;case 286:Gkr(o);break;case 285:Kkr(o);break;case 217:case 235:case 218:uDr(o);break;case 223:Va(o.expression);break;case 227:Kre(o)&&xN(o);break}M=v,(m=hi)==null||m.pop()}function QIr(o,p){var m,v;(m=hi)==null||m.push(hi.Phase.Check,p?"checkSourceFileNodes":"checkSourceFile",{path:o.path},!0);let E=p?"beforeCheckNodes":"beforeCheck",D=p?"afterCheckNodes":"afterCheck";jl(E),p?XIr(o,p):ZIr(o),jl(D),Jm("Check",E,D),(v=hi)==null||v.pop()}function fwt(o,p){if(p)return!1;switch(o){case 0:return!!Q.noUnusedLocals;case 1:return!!Q.noUnusedParameters;default:return $.assertNever(o)}}function mwt(o){return qn.get(o.path)||j}function ZIr(o){let p=Ki(o);if(!(p.flags&1)){if(lL(o,Q,t))return;zwt(o),Cs(RC),Cs(OE),Cs(n2),Cs(i2),Cs(o2),p.flags&8388608&&(RC=p.potentialThisCollisions,OE=p.potentialNewTargetCollisions,n2=p.potentialWeakMapSetCollisions,i2=p.potentialReflectCollisions,o2=p.potentialUnusedRenamedBindingElementsInTypes),X(o.statements,Pc),Pc(o.endOfFileToken),dwt(o),Lg(o)&&oD(o),a(()=>{!o.isDeclarationFile&&(Q.noUnusedLocals||Q.noUnusedParameters)&&FAt(mwt(o),(m,v,E)=>{!BO(m)&&fwt(v,!!(m.flags&33554432))&&il.add(E)}),o.isDeclarationFile||Twr()}),Lg(o)&&uwt(o),RC.length&&(X(RC,Cwr),Cs(RC)),OE.length&&(X(OE,Dwr),Cs(OE)),n2.length&&(X(n2,Pwr),Cs(n2)),i2.length&&(X(i2,Owr),Cs(i2)),p.flags|=1}}function XIr(o,p){let m=Ki(o);if(!(m.flags&1)){if(lL(o,Q,t))return;zwt(o),Cs(RC),Cs(OE),Cs(n2),Cs(i2),Cs(o2),X(p,Pc),dwt(o),(m.potentialThisCollisions||(m.potentialThisCollisions=[])).push(...RC),(m.potentialNewTargetCollisions||(m.potentialNewTargetCollisions=[])).push(...OE),(m.potentialWeakMapSetCollisions||(m.potentialWeakMapSetCollisions=[])).push(...n2),(m.potentialReflectCollisions||(m.potentialReflectCollisions=[])).push(...i2),(m.potentialUnusedRenamedBindingElementsInTypes||(m.potentialUnusedRenamedBindingElementsInTypes=[])).push(...o2),m.flags|=8388608;for(let v of p){let E=Ki(v);E.flags|=8388608}}}function hwt(o,p,m){try{return c=p,YIr(o,m)}finally{c=void 0}}function qUe(){for(let o of n)o();n=[]}function JUe(o,p){qUe();let m=a;a=v=>v(),QIr(o,p),a=m}function YIr(o,p){if(o){qUe();let m=il.getGlobalDiagnostics(),v=m.length;JUe(o,p);let E=il.getDiagnostics(o.fileName);if(p)return E;let D=il.getGlobalDiagnostics();if(D!==m){let R=cb(m,D,$U);return go(R,E)}else if(v===0&&D.length>0)return go(D,E);return E}return X(t.getSourceFiles(),m=>JUe(m)),il.getDiagnostics()}function ePr(){return qUe(),il.getGlobalDiagnostics()}function tPr(o,p){if(o.flags&67108864)return[];let m=ic(),v=!1;return E(),m.delete("this"),Hje(m);function E(){for(;o;){switch(vb(o)&&o.locals&&!uE(o)&&R(o.locals,p),o.kind){case 308:if(!yd(o))break;case 268:K($i(o).exports,p&2623475);break;case 267:R($i(o).exports,p&8);break;case 232:o.name&&D(o.symbol,p);case 264:case 265:v||R(Ub($i(o)),p&788968);break;case 219:o.name&&D(o.symbol,p);break}S6e(o)&&D(Se,p),v=oc(o),o=o.parent}R(It,p)}function D(se,ce){if(iL(se)&ce){let fe=se.escapedName;m.has(fe)||m.set(fe,se)}}function R(se,ce){ce&&se.forEach(fe=>{D(fe,ce)})}function K(se,ce){ce&&se.forEach(fe=>{!Qu(fe,282)&&!Qu(fe,281)&&fe.escapedName!=="default"&&D(fe,ce)})}}function rPr(o){return o.kind===80&&aF(o.parent)&&cs(o.parent)===o}function gwt(o){for(;o.parent.kind===167;)o=o.parent;return o.parent.kind===184}function nPr(o){for(;o.parent.kind===212;)o=o.parent;return o.parent.kind===234}function ywt(o,p){let m,v=Cf(o);for(;v&&!(m=p(v));)v=Cf(v);return m}function iPr(o){return!!fn(o,p=>kp(p)&&t1(p.body)||ps(p)?!0:Co(p)||lu(p)?"quit":!1)}function VUe(o,p){return!!ywt(o,m=>m===p)}function oPr(o){for(;o.parent.kind===167;)o=o.parent;if(o.parent.kind===272)return o.parent.moduleReference===o?o.parent:void 0;if(o.parent.kind===278)return o.parent.expression===o?o.parent:void 0}function YTe(o){return oPr(o)!==void 0}function aPr(o){switch(m_(o.parent.parent)){case 1:case 3:return Xy(o.parent);case 5:if(no(o.parent)&&oL(o.parent)===o)return;case 4:case 2:return $i(o.parent.parent)}}function sPr(o){let p=o.parent;for(;dh(p);)o=p,p=p.parent;if(p&&p.kind===206&&p.qualifier===o)return p}function cPr(o){if(o.expression.kind===110){let p=Hm(o,!1,!1);if(Rs(p)){let m=ACt(p);if(m){let v=ww(m,void 0),E=ICt(m,v);return E&&!Mi(E)}}}}function vwt(o){if(Eb(o))return Xy(o.parent);if(Ei(o)&&o.parent.kind===212&&o.parent===o.parent.parent.left&&!Aa(o)&&!wA(o)&&!cPr(o.parent)){let p=aPr(o);if(p)return p}if(o.parent.kind===278&&ru(o)){let p=jp(o,2998271,!0);if(p&&p!==ye)return p}else if(uh(o)&&YTe(o)){let p=mA(o,272);return $.assert(p!==void 0),VC(o,!0)}if(uh(o)){let p=sPr(o);if(p){Sa(p);let m=Ki(o).resolvedSymbol;return m===ye?void 0:m}}for(;c4e(o);)o=o.parent;if(nPr(o)){let p=0;o.parent.kind===234?(p=vS(o)?788968:111551,Hre(o.parent)&&(p|=111551)):p=1920,p|=2097152;let m=ru(o)?jp(o,p,!0):void 0;if(m)return m}if(o.parent.kind===342)return GG(o.parent);if(o.parent.kind===169&&o.parent.parent.kind===346){$.assert(!Ei(o));let p=L6e(o.parent);return p&&p.symbol}if(Tb(o)){if(Op(o))return;let p=fn(o,jf(RO,fz,wA)),m=p?901119:111551;if(o.kind===80){if(WR(o)&&M7(o)){let E=vTe(o.parent);return E===ye?void 0:E}let v=jp(o,m,!0,!0,dA(o));if(!v&&p){let E=fn(o,jf(Co,Af));if(E)return Dce(o,!0,$i(E))}if(v&&p){let E=iP(o);if(E&>(E)&&E===v.valueDeclaration)return jp(o,m,!0,!0,Pn(E))||v}return v}else{if(Aa(o))return TTe(o);if(o.kind===212||o.kind===167){let v=Ki(o);return v.resolvedSymbol?v.resolvedSymbol:(o.kind===212?(xTe(o,0),v.resolvedSymbol||(v.resolvedSymbol=Swt(Bp(o.expression),m2(o.name)))):aDt(o,0),!v.resolvedSymbol&&p&&dh(o)?Dce(o):v.resolvedSymbol)}else if(wA(o))return Dce(o)}}else if(uh(o)&&gwt(o)){let p=o.parent.kind===184?788968:1920,m=jp(o,p,!0,!0);return m&&m!==ye?m:bxe(o)}if(o.parent.kind===183)return jp(o,1,!0)}function Swt(o,p){let m=Gje(o,p);if(m.length&&o.members){let v=gxe(jv(o).members);if(m===lm(o))return v;if(v){let E=io(v),D=Wn(m,K=>K.declaration),R=Cr(D,hl).join(",");if(E.filteredIndexSymbolCache||(E.filteredIndexSymbolCache=new Map),E.filteredIndexSymbolCache.has(R))return E.filteredIndexSymbolCache.get(R);{let K=zc(131072,"__index");return K.declarations=Wn(m,se=>se.declaration),K.parent=o.aliasSymbol?o.aliasSymbol:o.symbol?o.symbol:B0(K.declarations[0].parent),E.filteredIndexSymbolCache.set(R,K),K}}}}function Dce(o,p,m){if(uh(o)){let R=jp(o,901119,p,!0,dA(o));if(!R&&ct(o)&&m&&(R=cl(Nf(Zg(m),o.escapedText,901119))),R)return R}let v=ct(o)?m:Dce(o.left,p,m),E=ct(o)?o.escapedText:o.right.escapedText;if(v){let D=v.flags&111551&&vc(di(v),"prototype"),R=D?di(D):Tu(v);return vc(R,E)}}function B0(o,p){if(Ta(o))return yd(o)?cl(o.symbol):void 0;let{parent:m}=o,v=m.parent;if(!(o.flags&67108864)){if(u_t(o)){let E=$i(m);return Yk(o.parent)&&o.parent.propertyName===o?gTe(E):E}else if(KG(o))return $i(m.parent);if(o.kind===80){if(YTe(o))return vwt(o);if(m.kind===209&&v.kind===207&&o===m.propertyName){let E=$7(v),D=vc(E,o.escapedText);if(D)return D}else if(s3(m)&&m.name===o)return m.keywordToken===105&&Zi(o)==="target"?sUe(m).symbol:m.keywordToken===102&&Zi(o)==="meta"?cEt().members.get("meta"):void 0}switch(o.kind){case 80:case 81:case 212:case 167:if(!lP(o))return vwt(o);case 110:let E=Hm(o,!1,!1);if(Rs(E)){let K=t0(E);if(K.thisParameter)return K.thisParameter}if(xre(o))return Va(o).symbol;case 198:return DBe(o).symbol;case 108:return Va(o).symbol;case 137:let D=o.parent;return D&&D.kind===177?D.parent.symbol:void 0;case 11:case 15:if(pA(o.parent.parent)&&hU(o.parent.parent)===o||(o.parent.kind===273||o.parent.kind===279)&&o.parent.moduleSpecifier===o||Ei(o)&&OS(o.parent)&&o.parent.moduleSpecifier===o||Ei(o)&&$h(o.parent,!1)||Bh(o.parent)||bE(o.parent)&&jT(o.parent.parent)&&o.parent.parent.argument===o.parent)return Nm(o,o,p);if(Js(m)&&J4(m)&&m.arguments[1]===o)return $i(m);case 9:let R=mu(m)?m.argumentExpression===o?Kf(m.expression):void 0:bE(m)&&vP(v)?Sa(v.objectType):void 0;return R&&vc(R,dp(o.text));case 90:case 100:case 39:case 86:return Xy(o.parent);case 206:return jT(o)?B0(o.argument.literal,p):void 0;case 95:return Xu(o.parent)?$.checkDefined(o.parent.symbol):void 0;case 102:if(s3(o.parent)&&o.parent.name.escapedText==="defer")return;case 105:return s3(o.parent)?JDt(o.parent).symbol:void 0;case 104:if(wi(o.parent)){let K=Kf(o.parent.right),se=yUe(K);return se?.symbol??K.symbol}return;case 237:return Va(o).symbol;case 296:if(WR(o)&&M7(o)){let K=vTe(o.parent);return K===ye?void 0:K}default:return}}}function lPr(o){if(ct(o)&&no(o.parent)&&o.parent.name===o){let p=m2(o),m=Kf(o.parent.expression),v=m.flags&1048576?m.types:[m];return an(v,E=>yr(lm(E),D=>C7(p,D.keyType)))}}function uPr(o){if(o&&o.kind===305)return jp(o.name,2208703,!0)}function pPr(o){if(Cm(o)){let p=o.propertyName||o.name;return o.parent.parent.moduleSpecifier?cw(o.parent.parent,o):p.kind===11?void 0:jp(p,2998271,!0)}else return jp(o,2998271,!0)}function $7(o){if(Ta(o)&&!yd(o)||o.flags&67108864)return Et;let p=The(o),m=p&&O0($i(p.class));if(vS(o)){let v=Sa(o);return m?Yg(v,m.thisType):v}if(Tb(o))return bwt(o);if(m&&!p.isImplements){let v=pi(ov(m));return v?Yg(v,m.thisType):Et}if(aF(o)){let v=$i(o);return Tu(v)}if(rPr(o)){let v=B0(o);return v?Tu(v):Et}if(Vc(o))return x7(o,!0,0)||Et;if(Vd(o)){let v=$i(o);return v?di(v):Et}if(u_t(o)){let v=B0(o);return v?di(v):Et}if($s(o))return x7(o.parent,!0,0)||Et;if(YTe(o)){let v=B0(o);if(v){let E=Tu(v);return si(E)?di(v):E}}return s3(o.parent)&&o.parent.keywordToken===o.kind?JDt(o.parent):l3(o)?iBe(!1):Et}function e2e(o){if($.assert(o.kind===211||o.kind===210),o.parent.kind===251){let E=Tce(o.parent);return EN(o,E||Et)}if(o.parent.kind===227){let E=Kf(o.parent.right);return EN(o,E||Et)}if(o.parent.kind===304){let E=Ba(o.parent.parent,Lc),D=e2e(E)||Et,R=BR(E.properties,o.parent);return oAt(E,D,R)}let p=Ba(o.parent,qf),m=e2e(p)||Et,v=tk(65,m,Ne,o.parent)||Et;return aAt(p,m,p.elements.indexOf(o),v)}function _Pr(o){let p=e2e(Ba(o.parent.parent,aU));return p&&vc(p,o.escapedText)}function bwt(o){return FU(o)&&(o=o.parent),ih(Kf(o))}function xwt(o){let p=Xy(o.parent);return oc(o)?di(p):Tu(p)}function Twt(o){let p=o.name;switch(p.kind){case 80:return Sg(Zi(p));case 9:case 11:return Sg(p.text);case 168:let m=sv(p);return Hf(m,12288)?m:Mt;default:return $.fail("Unsupported property name.")}}function WUe(o){o=nh(o);let p=ic($l(o)),m=Gs(o,0).length?Ga:Gs(o,1).length?el:void 0;return m&&X($l(m),v=>{p.has(v.escapedName)||p.set(v.escapedName,v)}),xh(p)}function t2e(o){return Gs(o,0).length!==0||Gs(o,1).length!==0}function Ewt(o){let p=dPr(o);return p?an(p,Ewt):[o]}function dPr(o){if(Fp(o)&6)return Wn(io(o).containingType.types,p=>vc(p,o.escapedName));if(o.flags&33554432){let{links:{leftSpread:p,rightSpread:m,syntheticOrigin:v}}=o;return p?[p,m]:v?[v]:Z2(fPr(o))}}function fPr(o){let p,m=o;for(;m=io(m).target;)p=m;return p}function mPr(o){if(ap(o))return!1;let p=vs(o,ct);if(!p)return!1;let m=p.parent;return m?!((no(m)||td(m))&&m.name===p)&&qZ(p)===Se:!1}function hPr(o){return fG(o.parent)&&o===o.parent.name}function gPr(o,p){var m;let v=vs(o,ct);if(v){let E=qZ(v,hPr(v));if(E){if(E.flags&1048576){let R=cl(E.exportSymbol);if(!p&&R.flags&944&&!(R.flags&3))return;E=R}let D=Od(E);if(D){if(D.flags&512&&((m=D.valueDeclaration)==null?void 0:m.kind)===308){let R=D.valueDeclaration,K=Pn(v);return R!==K?void 0:R}return fn(v.parent,R=>fG(R)&&$i(R)===D)}}}}function yPr(o){let p=D3e(o);if(p)return p;let m=vs(o,ct);if(m){let v=OPr(m);if(q3(v,111551)&&!Fv(v,111551))return Qh(v)}}function vPr(o){return o.valueDeclaration&&Vc(o.valueDeclaration)&&Pr(o.valueDeclaration).parent.kind===300}function kwt(o){if(o.flags&418&&o.valueDeclaration&&!Ta(o.valueDeclaration)){let p=io(o);if(p.isDeclarationWithCollidingName===void 0){let m=yv(o.valueDeclaration);if(QPe(m)||vPr(o))if($t(m.parent,o.escapedName,111551,void 0,!1))p.isDeclarationWithCollidingName=!0;else if(GUe(o.valueDeclaration,16384)){let v=GUe(o.valueDeclaration,32768),E=rC(m,!1),D=m.kind===242&&rC(m.parent,!1);p.isDeclarationWithCollidingName=!i6e(m)&&(!v||!E&&!D)}else p.isDeclarationWithCollidingName=!1}return p.isDeclarationWithCollidingName}return!1}function SPr(o){if(!ap(o)){let p=vs(o,ct);if(p){let m=qZ(p);if(m&&kwt(m))return m.valueDeclaration}}}function bPr(o){let p=vs(o,Vd);if(p){let m=$i(p);if(m)return kwt(m)}return!1}function Cwt(o){switch($.assert(We),o.kind){case 272:return r2e($i(o));case 274:case 275:case 277:case 282:let p=$i(o);return!!p&&r2e(p,!0);case 279:let m=o.exportClause;return!!m&&(Db(m)||Pt(m.elements,Cwt));case 278:return o.expression&&o.expression.kind===80?r2e($i(o),!0):!0}return!1}function xPr(o){let p=vs(o,gd);return p===void 0||p.parent.kind!==308||!z4(p)?!1:r2e($i(p))&&p.moduleReference&&!Op(p.moduleReference)}function r2e(o,p){if(!o)return!1;let m=Pn(o.valueDeclaration),v=m&&$i(m);vg(v);let E=Wt(df(o));return E===ye?!p||!Fv(o):!!(Zh(o,p,!0)&111551)&&(dC(Q)||!zZ(E))}function zZ(o){return gUe(o)||!!o.constEnumOnlyModule}function Dwt(o,p){if($.assert(We),jE(o)){let m=$i(o),v=m&&io(m);if(v?.referenced)return!0;let E=io(m).aliasTarget;if(E&&tm(o)&32&&Zh(E)&111551&&(dC(Q)||!zZ(E)))return!0}return p?!!Is(o,m=>Dwt(m,p)):!1}function Awt(o){if(t1(o.body)){if(Ax(o)||hS(o))return!1;let p=$i(o),m=n6(p);return m.length>1||m.length===1&&m[0].declaration!==o}return!1}function TPr(o){let p=Pwt(o);if(!p)return!1;let m=Sa(p);return si(m)||UM(m)}function Ace(o,p){return(EPr(o,p)||kPr(o))&&!TPr(o)}function EPr(o,p){return!be||eZ(o)||Uy(o)||!o.initializer?!1:ko(o,31)?!!p&&lu(p):!0}function kPr(o){return be&&eZ(o)&&(Uy(o)||!o.initializer)&&ko(o,31)}function wwt(o){let p=vs(o,v=>i_(v)||Oo(v));if(!p)return!1;let m;if(Oo(p)){if(p.type||!Ei(p)&&!JZ(p))return!1;let v=vU(p);if(!v||!gv(v))return!1;m=$i(v)}else m=$i(p);return!m||!(m.flags&16|3)?!1:!!Ad(Zg(m),v=>v.flags&111551&&lF(v.valueDeclaration))}function CPr(o){let p=vs(o,i_);if(!p)return j;let m=$i(p);return m&&$l(di(m))||j}function U7(o){var p;let m=o.id||0;return m<0||m>=QA.length?0:((p=QA[m])==null?void 0:p.flags)||0}function GUe(o,p){return DPr(o,p),!!(U7(o)&p)}function DPr(o,p){if(!Q.noCheck&&GU(Pn(o),Q)||Ki(o).calculatedFlags&p)return;switch(p){case 16:case 32:return R(o);case 128:case 256:case 2097152:return D(o);case 512:case 8192:case 65536:case 262144:return se(o);case 536870912:return fe(o);case 4096:case 32768:case 16384:return Me(o);default:return $.assertNever(p,`Unhandled node check flag calculation: ${$.formatNodeCheckFlags(p)}`)}function v(Jt,Xt){let kr=Xt(Jt,Jt.parent);if(kr!=="skip")return kr||CF(Jt,Xt)}function E(Jt){let Xt=Ki(Jt);if(Xt.calculatedFlags&p)return"skip";Xt.calculatedFlags|=2097536,R(Jt)}function D(Jt){v(Jt,E)}function R(Jt){let Xt=Ki(Jt);Xt.calculatedFlags|=48,Jt.kind===108&&uTe(Jt)}function K(Jt){let Xt=Ki(Jt);if(Xt.calculatedFlags&p)return"skip";Xt.calculatedFlags|=336384,fe(Jt)}function se(Jt){v(Jt,K)}function ce(Jt){return Tb(Jt)||im(Jt.parent)&&(Jt.parent.objectAssignmentInitializer??Jt.parent.name)===Jt}function fe(Jt){let Xt=Ki(Jt);if(Xt.calculatedFlags|=536870912,ct(Jt)&&(Xt.calculatedFlags|=49152,ce(Jt)&&!(no(Jt.parent)&&Jt.parent.name===Jt))){let kr=Fm(Jt);kr&&kr!==ye&&ECt(Jt,kr)}}function Ue(Jt){let Xt=Ki(Jt);if(Xt.calculatedFlags&p)return"skip";Xt.calculatedFlags|=53248,yt(Jt)}function Me(Jt){let Xt=yv(Eb(Jt)?Jt.parent:Jt);v(Xt,Ue)}function yt(Jt){fe(Jt),dc(Jt)&&sv(Jt),Aa(Jt)&&J_(Jt.parent)&&MTe(Jt.parent)}}function kN(o){return swt(o.parent),Ki(o).enumMemberValue??wd(void 0)}function Iwt(o){switch(o.kind){case 307:case 212:case 213:return!0}return!1}function n2e(o){if(o.kind===307)return kN(o).value;Ki(o).resolvedSymbol||Bp(o);let p=Ki(o).resolvedSymbol||(ru(o)?jp(o,111551,!0):void 0);if(p&&p.flags&8){let m=p.valueDeclaration;if(lA(m.parent))return kN(m).value}}function HUe(o){return!!(o.flags&524288)&&Gs(o,0).length>0}function APr(o,p){var m;let v=vs(o,uh);if(!v||p&&(p=vs(p),!p))return 0;let E=!1;if(dh(v)){let fe=jp(_h(v),111551,!0,!0,p);E=!!((m=fe?.declarations)!=null&&m.every(cE))}let D=jp(v,111551,!0,!0,p),R=D&&D.flags&2097152?df(D):D;E||(E=!!(D&&Fv(D,111551)));let K=jp(v,788968,!0,!0,p),se=K&&K.flags&2097152?df(K):K;if(D||E||(E=!!(K&&Fv(K,788968))),R&&R===se){let fe=oBe(!1);if(fe&&R===fe)return 9;let Ue=di(R);if(Ue&&Mv(Ue))return E?10:1}if(!se)return E?11:0;let ce=Tu(se);return si(ce)?E?11:0:ce.flags&3?11:Hf(ce,245760)?2:Hf(ce,528)?6:Hf(ce,296)?3:Hf(ce,2112)?4:Hf(ce,402653316)?5:Gc(ce)?7:Hf(ce,12288)?8:HUe(ce)?10:L0(ce)?7:11}function wPr(o,p,m,v,E){let D=vs(o,Ane);if(!D)return W.createToken(133);let R=$i(D);return Le.serializeTypeForDeclaration(D,R,p,m|1024,v,E)}function KUe(o){o=vs(o,aG);let p=o.kind===179?178:179,m=Qu($i(o),p),v=m&&m.pos{switch(v.kind){case 261:case 170:case 209:case 173:case 304:case 305:case 307:case 211:case 263:case 219:case 220:case 264:case 232:case 267:case 175:case 178:case 179:case 268:return!0}return!1})}}}function LPr(o){return kG(o)||Oo(o)&&JZ(o)?a6(di($i(o))):!1}function MPr(o,p,m){let v=o.flags&1056?Le.symbolToExpression(o.symbol,111551,p,void 0,void 0,m):o===Rt?W.createTrue():o===Rn&&W.createFalse();if(v)return v;let E=o.value;return typeof E=="object"?W.createBigIntLiteral(E):typeof E=="string"?W.createStringLiteral(E):E<0?W.createPrefixUnaryExpression(41,W.createNumericLiteral(-E)):W.createNumericLiteral(E)}function jPr(o,p){let m=di($i(o));return MPr(m,o,p)}function QUe(o){return o?(X1(o),Pn(o).localJsxFactory||s2):s2}function ZUe(o){if(o){let p=Pn(o);if(p){if(p.localJsxFragmentFactory)return p.localJsxFragmentFactory;let m=p.pragmas.get("jsxfrag"),v=Zn(m)?m[0]:m;if(v)return p.localJsxFragmentFactory=AF(v.arguments.factory,re),p.localJsxFragmentFactory}}if(Q.jsxFragmentFactory)return AF(Q.jsxFragmentFactory,re)}function Pwt(o){let p=X_(o);if(p)return p;if(o.kind===170&&o.parent.kind===179){let m=KUe(o.parent).getAccessor;if(m)return jg(m)}}function BPr(){return{getReferencedExportContainer:gPr,getReferencedImportDeclaration:yPr,getReferencedDeclarationWithCollidingName:SPr,isDeclarationWithCollidingName:bPr,isValueAliasDeclaration:p=>{let m=vs(p);return m&&We?Cwt(m):!0},hasGlobalName:NPr,isReferencedAliasDeclaration:(p,m)=>{let v=vs(p);return v&&We?Dwt(v,m):!0},hasNodeCheckFlag:(p,m)=>{let v=vs(p);return v?GUe(v,m):!1},isTopLevelValueImportEqualsWithEntityName:xPr,isDeclarationVisible:Bb,isImplementationOfOverload:Awt,requiresAddingImplicitUndefined:Ace,isExpandoFunctionDeclaration:wwt,getPropertiesOfContainerFunction:CPr,createTypeOfDeclaration:wPr,createReturnTypeOfSignatureDeclaration:IPr,createTypeOfExpression:PPr,createLiteralConstValue:jPr,isSymbolAccessible:GC,isEntityNameVisible:b7,getConstantValue:p=>{let m=vs(p,Iwt);return m?n2e(m):void 0},getEnumMemberValue:p=>{let m=vs(p,GT);return m?kN(m):void 0},collectLinkedAliases:IM,markLinkedReferences:p=>{let m=vs(p);return m&&R7(m,0)},getReferencedValueDeclaration:FPr,getReferencedValueDeclarations:RPr,getTypeReferenceSerializationKind:APr,isOptionalParameter:eZ,isArgumentsLocalBinding:mPr,getExternalModuleFileFromDeclaration:p=>{let m=vs(p,s6e);return m&&XUe(m)},isLiteralConstDeclaration:LPr,isLateBound:p=>{let m=vs(p,Vd),v=m&&$i(m);return!!(v&&Fp(v)&4096)},getJsxFactoryEntity:QUe,getJsxFragmentFactoryEntity:ZUe,isBindingCapturedByNode:(p,m)=>{let v=vs(p),E=vs(m);return!!v&&!!E&&(Oo(E)||Vc(E))&&HEr(v,E)},getDeclarationStatementsForSourceFile:(p,m,v,E)=>{let D=vs(p);$.assert(D&&D.kind===308,"Non-sourcefile node passed into getDeclarationsForSourceFile");let R=$i(p);return R?(vg(R),R.exports?Le.symbolTableToDeclarationStatements(R.exports,p,m,v,E):[]):p.locals?Le.symbolTableToDeclarationStatements(p.locals,p,m,v,E):[]},isImportRequiredByAugmentation:o,isDefinitelyReferenceToGlobalSymbolObject:Lb,createLateBoundIndexSignatures:(p,m,v,E,D)=>{let R=p.symbol,K=lm(di(R)),se=hxe(R),ce=se&&yxe(se,so(Ub(R).values())),fe;for(let Me of[K,ce])if(te(Me)){fe||(fe=[]);for(let yt of Me){if(yt.declaration||yt===va)continue;if(yt.components&&ht(yt.components,kr=>{var on;return!!(kr.name&&dc(kr.name)&&ru(kr.name.expression)&&m&&((on=b7(kr.name.expression,m,!1))==null?void 0:on.accessibility)===0)})){let kr=yr(yt.components,on=>!NM(on));fe.push(...Cr(kr,on=>{Ue(on.name.expression);let Hn=Me===K?[W.createModifier(126)]:void 0;return W.createPropertyDeclaration(jt(Hn,yt.isReadonly?W.createModifier(148):void 0),on.name,(Zm(on)||ps(on)||G1(on)||Ep(on)||Ax(on)||hS(on))&&on.questionToken?W.createToken(58):void 0,Le.typeToTypeNode(di(on.symbol),m,v,E,D),void 0)}));continue}let Jt=Le.indexInfoToIndexSignatureDeclaration(yt,m,v,E,D);Jt&&Me===K&&(Jt.modifiers||(Jt.modifiers=W.createNodeArray())).unshift(W.createModifier(126)),Jt&&fe.push(Jt)}}return fe;function Ue(Me){if(!D.trackSymbol)return;let yt=_h(Me),Jt=$t(yt,yt.escapedText,1160127,void 0,!0);Jt&&D.trackSymbol(Jt,m,111551)}},symbolToDeclarations:(p,m,v,E,D,R)=>Le.symbolToDeclarations(p,m,v,E,D,R)};function o(p){let m=Pn(p);if(!m.symbol)return!1;let v=XUe(p);if(!v||v===m)return!1;let E=VS(m.symbol);for(let D of so(E.values()))if(D.mergeId){let R=cl(D);if(R.declarations){for(let K of R.declarations)if(Pn(K)===v)return!0}}return!1}}function XUe(o){let p=o.kind===268?Ci(o.name,Ic):JO(o),m=yg(p,p,void 0);if(m)return Qu(m,308)}function $Pr(){for(let p of t.getSourceFiles())b8e(p,Q);a_=new Map;let o;for(let p of t.getSourceFiles())if(!p.redirectInfo){if(!Lg(p)){let m=p.locals.get("globalThis");if(m?.declarations)for(let v of m.declarations)il.add(xi(v,x.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));qS(It,p.locals)}p.jsGlobalAugmentations&&qS(It,p.jsGlobalAugmentations),p.patternAmbientModules&&p.patternAmbientModules.length&&(Wh=go(Wh,p.patternAmbientModules)),p.moduleAugmentations.length&&(o||(o=[])).push(p.moduleAugmentations),p.symbol&&p.symbol.globalExports&&p.symbol.globalExports.forEach((v,E)=>{It.has(E)||It.set(E,v)})}if(o)for(let p of o)for(let m of p)xb(m.parent)&&VP(m);if(iw(),io(ke).type=Y,io(Se).type=Qp("IArguments",0,!0),io(ye).type=Et,io(_t).type=F_(16,_t),tl=Qp("Array",1,!0),br=Qp("Object",0,!0),Vn=Qp("Function",0,!0),Ga=De&&Qp("CallableFunction",0,!0)||Vn,el=De&&Qp("NewableFunction",0,!0)||Vn,nd=Qp("String",0,!0),Mu=Qp("Number",0,!0),Dp=Qp("Boolean",0,!0),Kp=Qp("RegExp",0,!0),If=um(at),uf=um(Zt),uf===kc&&(uf=mp(void 0,G,j,j,j)),Uc=hEt("ReadonlyArray",1)||tl,Hg=Uc?Vq(Uc,[at]):If,vy=hEt("ThisType",1),o)for(let p of o)for(let m of p)xb(m.parent)||VP(m);a_.forEach(({firstFile:p,secondFile:m,conflictingSymbols:v})=>{if(v.size<8)v.forEach(({isBlockScoped:E,firstFileLocations:D,secondFileLocations:R},K)=>{let se=E?x.Cannot_redeclare_block_scoped_variable_0:x.Duplicate_identifier_0;for(let ce of D)nw(ce,se,K,R);for(let ce of R)nw(ce,se,K,D)});else{let E=so(v.keys()).join(", ");il.add(ac(xi(p,x.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,E),xi(m,x.Conflicts_are_in_this_file))),il.add(ac(xi(m,x.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,E),xi(p,x.Conflicts_are_in_this_file)))}}),a_=void 0}function Fd(o,p){if(Q.importHelpers){let m=Pn(o);if($R(m,Q)&&!(o.flags&33554432)){let v=zPr(m,o);if(v!==ye){let E=io(v);if(E.requestedExternalEmitHelpers??(E.requestedExternalEmitHelpers=0),(E.requestedExternalEmitHelpers&p)!==p){let D=p&~E.requestedExternalEmitHelpers;for(let R=1;R<=16777216;R<<=1)if(D&R)for(let K of UPr(R)){let se=O_(Nf(VS(v),dp(K),111551));se?R&524288?Pt(n6(se),ce=>xg(ce)>3)||gt(o,x.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,nC,K,4):R&1048576?Pt(n6(se),ce=>xg(ce)>4)||gt(o,x.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,nC,K,5):R&1024&&(Pt(n6(se),ce=>xg(ce)>2)||gt(o,x.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,nC,K,3)):gt(o,x.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,nC,K)}}E.requestedExternalEmitHelpers|=p}}}}function UPr(o){switch(o){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return _e?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__setFunctionName"];case 8388608:return["__propKey"];case 16777216:return["__addDisposableResource","__disposeResources"];case 33554432:return["__rewriteRelativeImportExtension"];default:return $.fail("Unrecognized helper")}}function zPr(o,p){let m=Ki(o);return m.externalHelpersModule||(m.externalHelpersModule=V3(L6r(o),nC,x.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,p)||ye),m.externalHelpersModule}function pT(o){var p;let m=VPr(o)||qPr(o);if(m!==void 0)return m;if(wa(o)&&uC(o))return mf(o,x.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let v=h_(o)?o.declarationList.flags&7:0,E,D,R,K,se,ce=0,fe=!1,Ue=!1;for(let Me of o.modifiers)if(hd(Me)){if(OG(_e,o,o.parent,o.parent.parent)){if(_e&&(o.kind===178||o.kind===179)){let yt=KUe(o);if(By(yt.firstAccessor)&&o===yt.secondAccessor)return mf(o,x.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return o.kind===175&&!t1(o.body)?mf(o,x.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):mf(o,x.Decorators_are_not_valid_here);if(ce&-34849)return mn(Me,x.Decorators_are_not_valid_here);if(Ue&&ce&98303){$.assertIsDefined(se);let yt=Pn(Me);return sD(yt)?!1:(ac(gt(Me,x.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),xi(se,x.Decorator_used_before_export_here)),!0)}ce|=32768,ce&98303?ce&32&&(fe=!0):Ue=!0,se??(se=Me)}else{if(Me.kind!==148){if(o.kind===172||o.kind===174)return mn(Me,x._0_modifier_cannot_appear_on_a_type_member,Zs(Me.kind));if(o.kind===182&&(Me.kind!==126||!Co(o.parent)))return mn(Me,x._0_modifier_cannot_appear_on_an_index_signature,Zs(Me.kind))}if(Me.kind!==103&&Me.kind!==147&&Me.kind!==87&&o.kind===169)return mn(Me,x._0_modifier_cannot_appear_on_a_type_parameter,Zs(Me.kind));switch(Me.kind){case 87:{if(o.kind!==267&&o.kind!==169)return mn(o,x.A_class_member_cannot_have_the_0_keyword,Zs(87));let Xt=c1(o.parent)&&fA(o.parent)||o.parent;if(o.kind===169&&!(lu(Xt)||Co(Xt)||Cb(Xt)||fL(Xt)||hF(Xt)||cz(Xt)||G1(Xt)))return mn(Me,x._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Zs(Me.kind));break}case 164:if(ce&16)return mn(Me,x._0_modifier_already_seen,"override");if(ce&128)return mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(ce&8)return mn(Me,x._0_modifier_must_precede_1_modifier,"override","readonly");if(ce&512)return mn(Me,x._0_modifier_must_precede_1_modifier,"override","accessor");if(ce&1024)return mn(Me,x._0_modifier_must_precede_1_modifier,"override","async");ce|=16,K=Me;break;case 125:case 124:case 123:let yt=mw(ZO(Me.kind));if(ce&7)return mn(Me,x.Accessibility_modifier_already_seen);if(ce&16)return mn(Me,x._0_modifier_must_precede_1_modifier,yt,"override");if(ce&256)return mn(Me,x._0_modifier_must_precede_1_modifier,yt,"static");if(ce&512)return mn(Me,x._0_modifier_must_precede_1_modifier,yt,"accessor");if(ce&8)return mn(Me,x._0_modifier_must_precede_1_modifier,yt,"readonly");if(ce&1024)return mn(Me,x._0_modifier_must_precede_1_modifier,yt,"async");if(o.parent.kind===269||o.parent.kind===308)return mn(Me,x._0_modifier_cannot_appear_on_a_module_or_namespace_element,yt);if(ce&64)return Me.kind===123?mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,yt,"abstract"):mn(Me,x._0_modifier_must_precede_1_modifier,yt,"abstract");if(Tm(o))return mn(Me,x.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);ce|=ZO(Me.kind);break;case 126:if(ce&256)return mn(Me,x._0_modifier_already_seen,"static");if(ce&8)return mn(Me,x._0_modifier_must_precede_1_modifier,"static","readonly");if(ce&1024)return mn(Me,x._0_modifier_must_precede_1_modifier,"static","async");if(ce&512)return mn(Me,x._0_modifier_must_precede_1_modifier,"static","accessor");if(o.parent.kind===269||o.parent.kind===308)return mn(Me,x._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(o.kind===170)return mn(Me,x._0_modifier_cannot_appear_on_a_parameter,"static");if(ce&64)return mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(ce&16)return mn(Me,x._0_modifier_must_precede_1_modifier,"static","override");ce|=256,E=Me;break;case 129:if(ce&512)return mn(Me,x._0_modifier_already_seen,"accessor");if(ce&8)return mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(ce&128)return mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(o.kind!==173)return mn(Me,x.accessor_modifier_can_only_appear_on_a_property_declaration);ce|=512;break;case 148:if(ce&8)return mn(Me,x._0_modifier_already_seen,"readonly");if(o.kind!==173&&o.kind!==172&&o.kind!==182&&o.kind!==170)return mn(Me,x.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(ce&512)return mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");ce|=8;break;case 95:if(Q.verbatimModuleSyntax&&!(o.flags&33554432)&&o.kind!==266&&o.kind!==265&&o.kind!==268&&o.parent.kind===308&&t.getEmitModuleFormatOfFile(Pn(o))===1)return mn(Me,x.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(ce&32)return mn(Me,x._0_modifier_already_seen,"export");if(ce&128)return mn(Me,x._0_modifier_must_precede_1_modifier,"export","declare");if(ce&64)return mn(Me,x._0_modifier_must_precede_1_modifier,"export","abstract");if(ce&1024)return mn(Me,x._0_modifier_must_precede_1_modifier,"export","async");if(Co(o.parent))return mn(Me,x._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(o.kind===170)return mn(Me,x._0_modifier_cannot_appear_on_a_parameter,"export");if(v===4)return mn(Me,x._0_modifier_cannot_appear_on_a_using_declaration,"export");if(v===6)return mn(Me,x._0_modifier_cannot_appear_on_an_await_using_declaration,"export");ce|=32;break;case 90:let Jt=o.parent.kind===308?o.parent:o.parent.parent;if(Jt.kind===268&&!Gm(Jt))return mn(Me,x.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(v===4)return mn(Me,x._0_modifier_cannot_appear_on_a_using_declaration,"default");if(v===6)return mn(Me,x._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(ce&32){if(fe)return mn(se,x.Decorators_are_not_valid_here)}else return mn(Me,x._0_modifier_must_precede_1_modifier,"export","default");ce|=2048;break;case 138:if(ce&128)return mn(Me,x._0_modifier_already_seen,"declare");if(ce&1024)return mn(Me,x._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(ce&16)return mn(Me,x._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(Co(o.parent)&&!ps(o))return mn(Me,x._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(o.kind===170)return mn(Me,x._0_modifier_cannot_appear_on_a_parameter,"declare");if(v===4)return mn(Me,x._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(v===6)return mn(Me,x._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(o.parent.flags&33554432&&o.parent.kind===269)return mn(Me,x.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(Tm(o))return mn(Me,x._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(ce&512)return mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");ce|=128,D=Me;break;case 128:if(ce&64)return mn(Me,x._0_modifier_already_seen,"abstract");if(o.kind!==264&&o.kind!==186){if(o.kind!==175&&o.kind!==173&&o.kind!==178&&o.kind!==179)return mn(Me,x.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(o.parent.kind===264&&ko(o.parent,64))){let Xt=o.kind===173?x.Abstract_properties_can_only_appear_within_an_abstract_class:x.Abstract_methods_can_only_appear_within_an_abstract_class;return mn(Me,Xt)}if(ce&256)return mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(ce&2)return mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(ce&1024&&R)return mn(R,x._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(ce&16)return mn(Me,x._0_modifier_must_precede_1_modifier,"abstract","override");if(ce&512)return mn(Me,x._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Vp(o)&&o.name.kind===81)return mn(Me,x._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");ce|=64;break;case 134:if(ce&1024)return mn(Me,x._0_modifier_already_seen,"async");if(ce&128||o.parent.flags&33554432)return mn(Me,x._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(o.kind===170)return mn(Me,x._0_modifier_cannot_appear_on_a_parameter,"async");if(ce&64)return mn(Me,x._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");ce|=1024,R=Me;break;case 103:case 147:{let Xt=Me.kind===103?8192:16384,kr=Me.kind===103?"in":"out",on=c1(o.parent)&&(fA(o.parent)||wt((p=QR(o.parent))==null?void 0:p.tags,_3))||o.parent;if(o.kind!==169||on&&!(Af(on)||Co(on)||s1(on)||_3(on)))return mn(Me,x._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,kr);if(ce&Xt)return mn(Me,x._0_modifier_already_seen,kr);if(Xt&8192&&ce&16384)return mn(Me,x._0_modifier_must_precede_1_modifier,"in","out");ce|=Xt;break}}}return o.kind===177?ce&256?mn(E,x._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):ce&16?mn(K,x._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):ce&1024?mn(R,x._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(o.kind===273||o.kind===272)&&ce&128?mn(D,x.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):o.kind===170&&ce&31&&$s(o.name)?mn(o,x.A_parameter_property_may_not_be_declared_using_a_binding_pattern):o.kind===170&&ce&31&&o.dotDotDotToken?mn(o,x.A_parameter_property_cannot_be_declared_using_a_rest_parameter):ce&1024?GPr(o,R):!1}function qPr(o){if(!o.modifiers)return!1;let p=JPr(o);return p&&mf(p,x.Modifiers_cannot_appear_here)}function i2e(o,p){let m=wt(o.modifiers,bc);return m&&m.kind!==p?m:void 0}function JPr(o){switch(o.kind){case 178:case 179:case 177:case 173:case 172:case 175:case 174:case 182:case 268:case 273:case 272:case 279:case 278:case 219:case 220:case 170:case 169:return;case 176:case 304:case 305:case 271:case 283:return wt(o.modifiers,bc);default:if(o.parent.kind===269||o.parent.kind===308)return;switch(o.kind){case 263:return i2e(o,134);case 264:case 186:return i2e(o,128);case 232:case 265:case 266:return wt(o.modifiers,bc);case 244:return o.declarationList.flags&4?i2e(o,135):wt(o.modifiers,bc);case 267:return i2e(o,87);default:$.assertNever(o)}}}function VPr(o){let p=WPr(o);return p&&mf(p,x.Decorators_are_not_valid_here)}function WPr(o){return eye(o)?wt(o.modifiers,hd):void 0}function GPr(o,p){switch(o.kind){case 175:case 263:case 219:case 220:return!1}return mn(p,x._0_modifier_cannot_be_used_here,"async")}function z7(o,p=x.Trailing_comma_not_allowed){return o&&o.hasTrailingComma?Iw(o[0],o.end-1,1,p):!1}function Nwt(o,p){if(o&&o.length===0){let m=o.pos-1,v=_c(p.text,o.end)+1;return Iw(p,m,v-m,x.Type_parameter_list_cannot_be_empty)}return!1}function HPr(o){let p=!1,m=o.length;for(let v=0;v!!p.initializer||$s(p.name)||Sb(p))}function QPr(o){if(re>=3){let p=o.body&&Vs(o.body)&&Qge(o.body.statements);if(p){let m=KPr(o.parameters);if(te(m)){X(m,E=>{ac(gt(E,x.This_parameter_is_not_allowed_with_use_strict_directive),xi(p,x.use_strict_directive_used_here))});let v=m.map((E,D)=>D===0?xi(E,x.Non_simple_parameter_declared_here):xi(E,x.and_here));return ac(gt(p,x.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...v),!0}}}return!1}function o2e(o){let p=Pn(o);return pT(o)||Nwt(o.typeParameters,p)||HPr(o.parameters)||XPr(o,p)||lu(o)&&QPr(o)}function ZPr(o){let p=Pn(o);return n6r(o)||Nwt(o.typeParameters,p)}function XPr(o,p){if(!Iu(o))return!1;o.typeParameters&&!(te(o.typeParameters)>1||o.typeParameters.hasTrailingComma||o.typeParameters[0].constraint)&&p&&_p(p.fileName,[".mts",".cts"])&&mn(o.typeParameters[0],x.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);let{equalsGreaterThanToken:m}=o,v=qs(p,m.pos).line,E=qs(p,m.end).line;return v!==E&&mn(m,x.Line_terminator_not_permitted_before_arrow)}function YPr(o){let p=o.parameters[0];if(o.parameters.length!==1)return mn(p?p.name:o,x.An_index_signature_must_have_exactly_one_parameter);if(z7(o.parameters,x.An_index_signature_cannot_have_a_trailing_comma),p.dotDotDotToken)return mn(p.dotDotDotToken,x.An_index_signature_cannot_have_a_rest_parameter);if(yhe(p))return mn(p.name,x.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(p.questionToken)return mn(p.questionToken,x.An_index_signature_parameter_cannot_have_a_question_mark);if(p.initializer)return mn(p.name,x.An_index_signature_parameter_cannot_have_an_initializer);if(!p.type)return mn(p.name,x.An_index_signature_parameter_must_have_a_type_annotation);let m=Sa(p.type);return j0(m,v=>!!(v.flags&8576))||xw(m)?mn(p.name,x.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):bg(m,vxe)?o.type?!1:mn(o,x.An_index_signature_must_have_a_type_annotation):mn(p.name,x.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function e6r(o){return pT(o)||YPr(o)}function t6r(o,p){if(p&&p.length===0){let m=Pn(o),v=p.pos-1,E=_c(m.text,p.end)+1;return Iw(m,v,E-v,x.Type_argument_list_cannot_be_empty)}return!1}function wce(o,p){return z7(p)||t6r(o,p)}function r6r(o){return o.questionDotToken||o.flags&64?mn(o.template,x.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function Owt(o){let p=o.types;if(z7(p))return!0;if(p&&p.length===0){let m=Zs(o.token);return Iw(o,p.pos,0,x._0_list_cannot_be_empty,m)}return Pt(p,Fwt)}function Fwt(o){return VT(o)&&sz(o.expression)&&o.typeArguments?mn(o,x.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):wce(o,o.typeArguments)}function n6r(o){let p=!1,m=!1;if(!pT(o)&&o.heritageClauses)for(let v of o.heritageClauses){if(v.token===96){if(p)return mf(v,x.extends_clause_already_seen);if(m)return mf(v,x.extends_clause_must_precede_implements_clause);if(v.types.length>1)return mf(v.types[1],x.Classes_can_only_extend_a_single_class);p=!0}else{if($.assert(v.token===119),m)return mf(v,x.implements_clause_already_seen);m=!0}Owt(v)}}function i6r(o){let p=!1;if(o.heritageClauses)for(let m of o.heritageClauses){if(m.token===96){if(p)return mf(m,x.extends_clause_already_seen);p=!0}else return $.assert(m.token===119),mf(m,x.Interface_declaration_cannot_have_implements_clause);Owt(m)}return!1}function a2e(o){if(o.kind!==168)return!1;let p=o;return p.expression.kind===227&&p.expression.operatorToken.kind===28?mn(p.expression,x.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function YUe(o){if(o.asteriskToken){if($.assert(o.kind===263||o.kind===219||o.kind===175),o.flags&33554432)return mn(o.asteriskToken,x.Generators_are_not_allowed_in_an_ambient_context);if(!o.body)return mn(o.asteriskToken,x.An_overload_signature_cannot_be_declared_as_a_generator)}}function eze(o,p){return!!o&&mn(o,p)}function Rwt(o,p){return!!o&&mn(o,p)}function o6r(o,p){let m=new Map;for(let v of o.properties){if(v.kind===306){if(p){let R=bl(v.expression);if(qf(R)||Lc(R))return mn(v.expression,x.A_rest_element_cannot_contain_a_binding_pattern)}continue}let E=v.name;if(E.kind===168&&a2e(E),v.kind===305&&!p&&v.objectAssignmentInitializer&&mn(v.equalsToken,x.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),E.kind===81&&mn(E,x.Private_identifiers_are_not_allowed_outside_class_bodies),l1(v)&&v.modifiers)for(let R of v.modifiers)bc(R)&&(R.kind!==134||v.kind!==175)&&mn(R,x._0_modifier_cannot_be_used_here,Sp(R));else if(dNe(v)&&v.modifiers)for(let R of v.modifiers)bc(R)&&mn(R,x._0_modifier_cannot_be_used_here,Sp(R));let D;switch(v.kind){case 305:case 304:Rwt(v.exclamationToken,x.A_definite_assignment_assertion_is_not_permitted_in_this_context),eze(v.questionToken,x.An_object_member_cannot_be_declared_optional),E.kind===9&&qwt(E),E.kind===10&&Kx(!0,xi(E,x.A_bigint_literal_cannot_be_used_as_a_property_name)),D=4;break;case 175:D=8;break;case 178:D=1;break;case 179:D=2;break;default:$.assertNever(v,"Unexpected syntax kind:"+v.kind)}if(!p){let R=nze(E);if(R===void 0)continue;let K=m.get(R);if(!K)m.set(R,D);else if(D&8&&K&8)mn(E,x.Duplicate_identifier_0,Sp(E));else if(D&4&&K&4)mn(E,x.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Sp(E));else if(D&3&&K&3)if(K!==3&&D!==K)m.set(R,D|K);else return mn(E,x.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return mn(E,x.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function a6r(o){s6r(o.tagName),wce(o,o.typeArguments);let p=new Map;for(let m of o.attributes.properties){if(m.kind===294)continue;let{name:v,initializer:E}=m,D=YU(v);if(!p.get(D))p.set(D,!0);else return mn(v,x.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(E&&E.kind===295&&!E.expression)return mn(E,x.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function s6r(o){if(no(o)&&Ev(o.expression))return mn(o.expression,x.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(Ev(o)&&lne(Q)&&!eL(o.namespace.escapedText))return mn(o,x.React_components_cannot_include_JSX_namespace_names)}function c6r(o){if(o.expression&&gz(o.expression))return mn(o.expression,x.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function Lwt(o){if(k2(o))return!0;if(o.kind===251&&o.awaitModifier&&!(o.flags&65536)){let p=Pn(o);if(vre(o)){if(!sD(p))switch($R(p,Q)||il.add(xi(o.awaitModifier,x.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),ae){case 100:case 101:case 102:case 199:if(p.impliedNodeFormat===1){il.add(xi(o.awaitModifier,x.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 200:case 4:if(re>=4)break;default:il.add(xi(o.awaitModifier,x.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!sD(p)){let m=xi(o.awaitModifier,x.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),v=My(o);if(v&&v.kind!==177){$.assert((A_(v)&2)===0,"Enclosing function should never be an async function.");let E=xi(v,x.Did_you_mean_to_mark_this_function_as_async);ac(m,E)}return il.add(m),!0}}if($H(o)&&!(o.flags&65536)&&ct(o.initializer)&&o.initializer.escapedText==="async")return mn(o.initializer,x.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(o.initializer.kind===262){let p=o.initializer;if(!rze(p)){let m=p.declarations;if(!m.length)return!1;if(m.length>1){let E=o.kind===250?x.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:x.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return mf(p.declarations[1],E)}let v=m[0];if(v.initializer){let E=o.kind===250?x.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:x.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return mn(v.name,E)}if(v.type){let E=o.kind===250?x.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:x.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return mn(v,E)}}}return!1}function l6r(o){if(!(o.flags&33554432)&&o.parent.kind!==188&&o.parent.kind!==265){if(re<2&&Aa(o.name))return mn(o.name,x.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(o.body===void 0&&!ko(o,64))return Iw(o,o.end-1,1,x._0_expected,"{")}if(o.body){if(ko(o,64))return mn(o,x.An_abstract_accessor_cannot_have_an_implementation);if(o.parent.kind===188||o.parent.kind===265)return mn(o.body,x.An_implementation_cannot_be_declared_in_ambient_contexts)}if(o.typeParameters)return mn(o.name,x.An_accessor_cannot_have_type_parameters);if(!u6r(o))return mn(o.name,o.kind===178?x.A_get_accessor_cannot_have_parameters:x.A_set_accessor_must_have_exactly_one_parameter);if(o.kind===179){if(o.type)return mn(o.name,x.A_set_accessor_cannot_have_a_return_type_annotation);let p=$.checkDefined(NU(o),"Return value does not match parameter count assertion.");if(p.dotDotDotToken)return mn(p.dotDotDotToken,x.A_set_accessor_cannot_have_rest_parameter);if(p.questionToken)return mn(p.questionToken,x.A_set_accessor_cannot_have_an_optional_parameter);if(p.initializer)return mn(o.name,x.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function u6r(o){return tze(o)||o.parameters.length===(o.kind===178?0:1)}function tze(o){if(o.parameters.length===(o.kind===178?1:2))return cP(o)}function p6r(o){if(o.operator===158){if(o.type.kind!==155)return mn(o.type,x._0_expected,Zs(155));let p=HG(o.parent);if(Ei(p)&&AA(p)){let m=iP(p);m&&(p=GO(m)||m)}switch(p.kind){case 261:let m=p;if(m.name.kind!==80)return mn(o,x.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!dU(m))return mn(o,x.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(m.parent.flags&2))return mn(p.name,x.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 173:if(!oc(p)||!Q4(p))return mn(p.name,x.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 172:if(!ko(p,8))return mn(p.name,x.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return mn(o,x.unique_symbol_types_are_not_allowed_here)}}else if(o.operator===148&&o.type.kind!==189&&o.type.kind!==190)return mf(o,x.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Zs(155))}function lJ(o,p){if(y2t(o)&&!ru(mu(o)?bl(o.argumentExpression):o.expression))return mn(o,p)}function Mwt(o){if(o2e(o))return!0;if(o.kind===175){if(o.parent.kind===211){if(o.modifiers&&!(o.modifiers.length===1&&To(o.modifiers).kind===134))return mf(o,x.Modifiers_cannot_appear_here);if(eze(o.questionToken,x.An_object_member_cannot_be_declared_optional))return!0;if(Rwt(o.exclamationToken,x.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(o.body===void 0)return Iw(o,o.end-1,1,x._0_expected,"{")}if(YUe(o))return!0}if(Co(o.parent)){if(re<2&&Aa(o.name))return mn(o.name,x.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(o.flags&33554432)return lJ(o.name,x.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(o.kind===175&&!o.body)return lJ(o.name,x.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(o.parent.kind===265)return lJ(o.name,x.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(o.parent.kind===188)return lJ(o.name,x.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function _6r(o){let p=o;for(;p;){if(RR(p))return mn(o,x.Jump_target_cannot_cross_function_boundary);switch(p.kind){case 257:if(o.label&&p.label.escapedText===o.label.escapedText)return o.kind===252&&!rC(p.statement,!0)?mn(o,x.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 256:if(o.kind===253&&!o.label)return!1;break;default:if(rC(p,!1)&&!o.label)return!1;break}p=p.parent}if(o.label){let m=o.kind===253?x.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:x.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return mn(o,m)}else{let m=o.kind===253?x.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:x.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return mn(o,m)}}function d6r(o){if(o.dotDotDotToken){let p=o.parent.elements;if(o!==Sn(p))return mn(o,x.A_rest_element_must_be_last_in_a_destructuring_pattern);if(z7(p,x.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),o.propertyName)return mn(o.name,x.A_rest_element_cannot_have_a_property_name)}if(o.dotDotDotToken&&o.initializer)return Iw(o,o.initializer.pos-1,1,x.A_rest_element_cannot_have_an_initializer)}function jwt(o){return jy(o)||o.kind===225&&o.operator===41&&o.operand.kind===9}function f6r(o){return o.kind===10||o.kind===225&&o.operator===41&&o.operand.kind===10}function m6r(o){if((no(o)||mu(o)&&jwt(o.argumentExpression))&&ru(o.expression))return!!(Bp(o).flags&1056)}function Bwt(o){let p=o.initializer;if(p){let m=!(jwt(p)||m6r(p)||p.kind===112||p.kind===97||f6r(p));if((kG(o)||Oo(o)&&JZ(o))&&!o.type){if(m)return mn(p,x.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return mn(p,x.Initializers_are_not_allowed_in_ambient_contexts)}}function h6r(o){let p=f6(o),m=p&7;if($s(o.name))switch(m){case 6:return mn(o,x._0_declarations_may_not_have_binding_patterns,"await using");case 4:return mn(o,x._0_declarations_may_not_have_binding_patterns,"using")}if(o.parent.parent.kind!==250&&o.parent.parent.kind!==251){if(p&33554432)Bwt(o);else if(!o.initializer){if($s(o.name)&&!$s(o.parent))return mn(o,x.A_destructuring_declaration_must_have_an_initializer);switch(m){case 6:return mn(o,x._0_declarations_must_be_initialized,"await using");case 4:return mn(o,x._0_declarations_must_be_initialized,"using");case 2:return mn(o,x._0_declarations_must_be_initialized,"const")}}}if(o.exclamationToken&&(o.parent.parent.kind!==244||!o.type||o.initializer||p&33554432)){let v=o.initializer?x.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:o.type?x.A_definite_assignment_assertion_is_not_permitted_in_this_context:x.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return mn(o.exclamationToken,v)}return t.getEmitModuleFormatOfFile(Pn(o))<4&&!(o.parent.parent.flags&33554432)&&ko(o.parent.parent,32)&&$wt(o.name),!!m&&Uwt(o.name)}function $wt(o){if(o.kind===80){if(Zi(o)==="__esModule")return v6r("noEmit",o,x.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{let p=o.elements;for(let m of p)if(!Id(m))return $wt(m.name)}return!1}function Uwt(o){if(o.kind===80){if(o.escapedText==="let")return mn(o,x.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{let p=o.elements;for(let m of p)Id(m)||Uwt(m.name)}return!1}function rze(o){let p=o.declarations;if(z7(o.declarations))return!0;if(!o.declarations.length)return Iw(o,p.pos,p.end-p.pos,x.Variable_declaration_list_cannot_be_empty);let m=o.flags&7;if(m===4||m===6){if(Vne(o.parent))return mn(o,m===4?x.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:x.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration);if(o.flags&33554432)return mn(o,m===4?x.using_declarations_are_not_allowed_in_ambient_contexts:x.await_using_declarations_are_not_allowed_in_ambient_contexts);if(m===6)return iAt(o)}return!1}function s2e(o){switch(o.kind){case 246:case 247:case 248:case 255:case 249:case 250:case 251:return!1;case 257:return s2e(o.parent)}return!0}function g6r(o){if(!s2e(o.parent)){let p=f6(o.declarationList)&7;if(p){let m=p===1?"let":p===2?"const":p===4?"using":p===6?"await using":$.fail("Unknown BlockScope flag");gt(o,x._0_declarations_can_only_be_declared_inside_a_block,m)}}}function y6r(o){let p=o.name.escapedText;switch(o.keywordToken){case 105:if(p!=="target")return mn(o.name,x._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,oa(o.name.escapedText),Zs(o.keywordToken),"target");break;case 102:if(p!=="meta"){let m=Js(o.parent)&&o.parent.expression===o;if(p==="defer"){if(!m)return Iw(o,o.end,0,x._0_expected,"(")}else return m?mn(o.name,x._0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer,oa(o.name.escapedText)):mn(o.name,x._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,oa(o.name.escapedText),Zs(o.keywordToken),"meta")}break}}function sD(o){return o.parseDiagnostics.length>0}function mf(o,p,...m){let v=Pn(o);if(!sD(v)){let E=gS(v,o.pos);return il.add(md(v,E.start,E.length,p,...m)),!0}return!1}function Iw(o,p,m,v,...E){let D=Pn(o);return sD(D)?!1:(il.add(md(D,p,m,v,...E)),!0)}function v6r(o,p,m,...v){let E=Pn(p);return sD(E)?!1:(FE(o,p,m,...v),!0)}function mn(o,p,...m){let v=Pn(o);return sD(v)?!1:(gt(o,p,...m),!0)}function S6r(o){let p=Ei(o)?Vre(o):void 0,m=o.typeParameters||p&&pi(p);if(m){let v=m.pos===m.end?m.pos:_c(Pn(o).text,m.pos);return Iw(o,v,m.end-v,x.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function b6r(o){let p=o.type||jg(o);if(p)return mn(p,x.Type_annotation_cannot_appear_on_a_constructor_declaration)}function x6r(o){if(dc(o.name)&&wi(o.name.expression)&&o.name.expression.operatorToken.kind===103)return mn(o.parent.members[0],x.A_mapped_type_may_not_declare_properties_or_methods);if(Co(o.parent)){if(Ic(o.name)&&o.name.text==="constructor")return mn(o.name,x.Classes_may_not_have_a_field_named_constructor);if(lJ(o.name,x.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(re<2&&Aa(o.name))return mn(o.name,x.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(re<2&&Mh(o)&&!(o.flags&33554432))return mn(o.name,x.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Mh(o)&&eze(o.questionToken,x.An_accessor_property_cannot_be_declared_optional))return!0}else if(o.parent.kind===265){if(lJ(o.name,x.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if($.assertNode(o,Zm),o.initializer)return mn(o.initializer,x.An_interface_property_cannot_have_an_initializer)}else if(fh(o.parent)){if(lJ(o.name,x.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if($.assertNode(o,Zm),o.initializer)return mn(o.initializer,x.A_type_literal_property_cannot_have_an_initializer)}if(o.flags&33554432&&Bwt(o),ps(o)&&o.exclamationToken&&(!Co(o.parent)||!o.type||o.initializer||o.flags&33554432||oc(o)||pP(o))){let p=o.initializer?x.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:o.type?x.A_definite_assignment_assertion_is_not_permitted_in_this_context:x.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return mn(o.exclamationToken,p)}}function T6r(o){return o.kind===265||o.kind===266||o.kind===273||o.kind===272||o.kind===279||o.kind===278||o.kind===271||ko(o,2208)?!1:mf(o,x.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function E6r(o){for(let p of o.statements)if((Vd(p)||p.kind===244)&&T6r(p))return!0;return!1}function zwt(o){return!!(o.flags&33554432)&&E6r(o)}function k2(o){if(o.flags&33554432){if(!Ki(o).hasReportedStatementInAmbientContext&&(Rs(o.parent)||tC(o.parent)))return Ki(o).hasReportedStatementInAmbientContext=mf(o,x.An_implementation_cannot_be_declared_in_ambient_contexts);if(o.parent.kind===242||o.parent.kind===269||o.parent.kind===308){let m=Ki(o.parent);if(!m.hasReportedStatementInAmbientContext)return m.hasReportedStatementInAmbientContext=mf(o,x.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function qwt(o){let p=Sp(o).includes("."),m=o.numericLiteralFlags&16;p||m||+o.text<=2**53-1||Kx(!1,xi(o,x.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function k6r(o){return!!(!(bE(o.parent)||TA(o.parent)&&bE(o.parent.parent))&&!(o.flags&33554432)&&re<7&&mn(o,x.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function C6r(o,p,...m){let v=Pn(o);if(!sD(v)){let E=gS(v,o.pos);return il.add(md(v,Xn(E),0,p,...m)),!0}return!1}function D6r(){return yy||(yy=[],It.forEach((o,p)=>{D8e.test(p)&&yy.push(o)})),yy}function A6r(o){var p,m;if(o.phaseModifier===156){if(o.name&&o.namedBindings)return mn(o,x.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);if(((p=o.namedBindings)==null?void 0:p.kind)===276)return Jwt(o.namedBindings)}else if(o.phaseModifier===166){if(o.name)return mn(o,x.Default_imports_are_not_allowed_in_a_deferred_import);if(((m=o.namedBindings)==null?void 0:m.kind)===276)return mn(o,x.Named_imports_are_not_allowed_in_a_deferred_import);if(ae!==99&&ae!==200)return mn(o,x.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}return!1}function Jwt(o){return!!X(o.elements,p=>{if(p.isTypeOnly)return mf(p,p.kind===277?x.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:x.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function w6r(o){if(Q.verbatimModuleSyntax&&ae===1)return mn(o,M3(o));if(o.expression.kind===237){if(ae!==99&&ae!==200)return mn(o,x.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}else if(ae===5)return mn(o,x.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext);if(o.typeArguments)return mn(o,x.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);let p=o.arguments;if(!(100<=ae&&ae<=199)&&ae!==99&&ae!==200&&(z7(p),p.length>1)){let v=p[1];return mn(v,x.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve)}if(p.length===0||p.length>2)return mn(o,x.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);let m=wt(p,E0);return m?mn(m,x.Argument_of_dynamic_import_cannot_be_spread_element):!1}function I6r(o,p){let m=ro(o);if(m&20&&p.flags&1048576)return wt(p.types,v=>{if(v.flags&524288){let E=m&ro(v);if(E&4)return o.target===v.target;if(E&16)return!!o.aliasSymbol&&o.aliasSymbol===v.aliasSymbol}return!1})}function P6r(o,p){if(ro(o)&128&&j0(p,YE))return wt(p.types,m=>!YE(m))}function N6r(o,p){let m=0;if(Gs(o,m).length>0||(m=1,Gs(o,m).length>0))return wt(p.types,E=>Gs(E,m).length>0)}function O6r(o,p){let m;if(!(o.flags&406978556)){let v=0;for(let E of p.types)if(!(E.flags&406978556)){let D=Ac([KS(o),KS(E)]);if(D.flags&4194304)return E;if($v(D)||D.flags&1048576){let R=D.flags&1048576?Lo(D.types,$v):1;R>=v&&(m=E,v=R)}}}return m}function F6r(o){if(s_(o,67108864)){let p=G_(o,m=>!(m.flags&402784252));if(!(p.flags&131072))return p}return o}function Vwt(o,p,m){if(p.flags&1048576&&o.flags&2621440){let v=Wkt(p,o);if(v)return v;let E=$l(o);if(E){let D=Vkt(E,p);if(D){let R=BBe(p,Cr(D,K=>[()=>di(K),K.escapedName]),m);if(R!==p)return R}}}}function nze(o){let p=H4(o);return p||(dc(o)?p$e(Kf(o.expression)):void 0)}function c2e(o){return nn===o||(nn=o,Nn=Ra(o)),Nn}function f6(o){return Kt===o||(Kt=o,Sr=dd(o)),Sr}function JZ(o){let p=f6(o)&7;return p===2||p===4||p===6}function R6r(o,p){let m=Q.importHelpers?1:0,v=o?.imports[m];return v&&$.assert(fu(v)&&v.text===p,`Expected sourceFile.imports[${m}] to be the synthesized JSX runtime import`),v}function L6r(o){$.assert(Q.importHelpers,"Expected importHelpers to be enabled");let p=o.imports[0];return $.assert(p&&fu(p)&&p.text==="tslib","Expected sourceFile.imports[0] to be the synthesized tslib import"),p}}function gar(t){return!tC(t)}function l_t(t){return t.kind!==263&&t.kind!==175||!!t.body}function u_t(t){switch(t.parent.kind){case 277:case 282:return ct(t)||t.kind===11;default:return Eb(t)}}var qy;(t=>{t.JSX="JSX",t.IntrinsicElements="IntrinsicElements",t.ElementClass="ElementClass",t.ElementAttributesPropertyNameContainer="ElementAttributesProperty",t.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",t.Element="Element",t.ElementType="ElementType",t.IntrinsicAttributes="IntrinsicAttributes",t.IntrinsicClassAttributes="IntrinsicClassAttributes",t.LibraryManagedAttributes="LibraryManagedAttributes"})(qy||(qy={}));var Kye;(t=>{t.Fragment="Fragment"})(Kye||(Kye={}));function p_t(t){switch(t){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Am(t){return!!(t.flags&1)}function __t(t){return!!(t.flags&2)}function yar(t){return{getCommonSourceDirectory:t.getCommonSourceDirectory?()=>t.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>t.getCurrentDirectory(),getSymlinkCache:ja(t,t.getSymlinkCache),getPackageJsonInfoCache:()=>{var n;return(n=t.getPackageJsonInfoCache)==null?void 0:n.call(t)},useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),redirectTargetsMap:t.redirectTargetsMap,getRedirectFromSourceFile:n=>t.getRedirectFromSourceFile(n),isSourceOfProjectReferenceRedirect:n=>t.isSourceOfProjectReferenceRedirect(n),fileExists:n=>t.fileExists(n),getFileIncludeReasons:()=>t.getFileIncludeReasons(),readFile:t.readFile?n=>t.readFile(n):void 0,getDefaultResolutionModeForFile:n=>t.getDefaultResolutionModeForFile(n),getModeForResolutionAtIndex:(n,a)=>t.getModeForResolutionAtIndex(n,a),getGlobalTypingsCacheLocation:ja(t,t.getGlobalTypingsCacheLocation)}}var I8e=class rtr{constructor(n,a,c){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var u;a instanceof rtr;)a=a.inner;this.inner=a,this.moduleResolverHost=c,this.context=n,this.canTrackSymbol=!!((u=this.inner)!=null&&u.trackSymbol)}trackSymbol(n,a,c){var u,_;if((u=this.inner)!=null&&u.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(n,a,c))return this.onDiagnosticReported(),!0;n.flags&262144||((_=this.context).trackedSymbols??(_.trackedSymbols=[])).push([n,a,c])}return!1}reportInaccessibleThisError(){var n;(n=this.inner)!=null&&n.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(n){var a;(a=this.inner)!=null&&a.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(n))}reportInaccessibleUniqueSymbolError(){var n;(n=this.inner)!=null&&n.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var n;(n=this.inner)!=null&&n.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(n){var a;(a=this.inner)!=null&&a.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(n))}reportTruncationError(){var n;(n=this.inner)!=null&&n.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}reportNonlocalAugmentation(n,a,c){var u;(u=this.inner)!=null&&u.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(n,a,c))}reportNonSerializableProperty(n){var a;(a=this.inner)!=null&&a.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(n))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}reportInferenceFallback(n){var a;(a=this.inner)!=null&&a.reportInferenceFallback&&!this.context.suppressReportInferenceFallback&&(this.onDiagnosticReported(),this.inner.reportInferenceFallback(n))}pushErrorFallbackNode(n){var a,c;return(c=(a=this.inner)==null?void 0:a.pushErrorFallbackNode)==null?void 0:c.call(a,n)}popErrorFallbackNode(){var n,a;return(a=(n=this.inner)==null?void 0:n.popErrorFallbackNode)==null?void 0:a.call(n)}};function At(t,n,a,c){if(t===void 0)return t;let u=n(t),_;if(u!==void 0)return Zn(u)?_=(c||kar)(u):_=u,$.assertNode(_,a),_}function Bn(t,n,a,c,u){if(t===void 0)return t;let _=t.length;(c===void 0||c<0)&&(c=0),(u===void 0||u>_-c)&&(u=_-c);let f,y=-1,g=-1;c>0||u<_?f=t.hasTrailingComma&&c+u===_:(y=t.pos,g=t.end,f=t.hasTrailingComma);let k=d_t(t,n,a,c,u);if(k!==t){let T=W.createNodeArray(k,f);return xv(T,y,g),T}return t}function Az(t,n,a,c,u){if(t===void 0)return t;let _=t.length;return(c===void 0||c<0)&&(c=0),(u===void 0||u>_-c)&&(u=_-c),d_t(t,n,a,c,u)}function d_t(t,n,a,c,u){let _,f=t.length;(c>0||u=2&&(u=Sar(u,a)),a.setLexicalEnvironmentFlags(1,!1)),a.suspendLexicalEnvironment(),u}function Sar(t,n){let a;for(let c=0;c{let f=cy,addSource:Fe,setSourceContent:Be,addName:de,addMapping:je,appendSourceMap:ve,toJSON:ke,toString:()=>JSON.stringify(ke())};function Fe(Se){_();let tt=FT(c,Se,t.getCurrentDirectory(),t.getCanonicalFileName,!0),Qe=k.get(tt);return Qe===void 0&&(Qe=g.length,g.push(tt),y.push(Se),k.set(tt,Qe)),f(),Qe}function Be(Se,tt){if(_(),tt!==null){for(T||(T=[]);T.lengthtt||Oe===tt&&be>Qe)}function je(Se,tt,Qe,We,St,Kt){$.assert(Se>=_e,"generatedLine cannot backtrack"),$.assert(tt>=0,"generatedCharacter cannot be negative"),$.assert(Qe===void 0||Qe>=0,"sourceIndex cannot be negative"),$.assert(We===void 0||We>=0,"sourceLine cannot be negative"),$.assert(St===void 0||St>=0,"sourceCharacter cannot be negative"),_(),(ze(Se,tt)||ut(Qe,We,St))&&(nt(),_e=Se,me=tt,Ce=!1,Ae=!1,De=!0),Qe!==void 0&&We!==void 0&&St!==void 0&&(le=Qe,Oe=We,be=St,Ce=!0,Kt!==void 0&&(ue=Kt,Ae=!0)),f()}function ve(Se,tt,Qe,We,St,Kt){$.assert(Se>=_e,"generatedLine cannot backtrack"),$.assert(tt>=0,"generatedCharacter cannot be negative"),_();let Sr=[],nn,Nn=e0e(Qe.mappings);for(let $t of Nn){if(Kt&&($t.generatedLine>Kt.line||$t.generatedLine===Kt.line&&$t.generatedCharacter>Kt.character))break;if(St&&($t.generatedLine=1024&&It()}function nt(){if(!(!De||!Le())){if(_(),U<_e){do Ve(59),U++;while(U<_e);J=0}else $.assertEqual(U,_e,"generatedLine cannot backtrack"),ae&&Ve(44);_t(me-J),J=me,Ce&&(_t(le-G),G=le,_t(Oe-Z),Z=Oe,_t(be-Q),Q=be,Ae&&(_t(ue-re),re=ue)),ae=!0,f()}}function It(){F.length>0&&(M+=String.fromCharCode.apply(void 0,F),F.length=0)}function ke(){return nt(),It(),{version:3,file:n,sourceRoot:a,sources:g,names:C,mappings:M,sourcesContent:T}}function _t(Se){Se<0?Se=(-Se<<1)+1:Se=Se<<1;do{let tt=Se&31;Se=Se>>5,Se>0&&(tt=tt|32),Ve(Aar(tt))}while(Se>0)}}var N8e=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,Zye=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,Xye=/^\s*(\/\/[@#] .*)?$/;function Yye(t,n){return{getLineCount:()=>n.length,getLineText:a=>t.substring(n[a],n[a+1])}}function O8e(t){for(let n=t.getLineCount()-1;n>=0;n--){let a=t.getLineText(n),c=Zye.exec(a);if(c)return c[1].trimEnd();if(!a.match(Xye))break}}function Car(t){return typeof t=="string"||t===null}function Dar(t){return t!==null&&typeof t=="object"&&t.version===3&&typeof t.file=="string"&&typeof t.mappings=="string"&&Zn(t.sources)&&ht(t.sources,Ni)&&(t.sourceRoot===void 0||t.sourceRoot===null||typeof t.sourceRoot=="string")&&(t.sourcesContent===void 0||t.sourcesContent===null||Zn(t.sourcesContent)&&ht(t.sourcesContent,Car))&&(t.names===void 0||t.names===null||Zn(t.names)&&ht(t.names,Ni))}function F8e(t){try{let n=JSON.parse(t);if(Dar(n))return n}catch{}}function e0e(t){let n=!1,a=0,c=0,u=0,_=0,f=0,y=0,g=0,k;return{get pos(){return a},get error(){return k},get state(){return T(!0,!0)},next(){for(;!n&&a=t.length)return O("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;let re=war(t.charCodeAt(a));if(re===-1)return O("Invalid character in VLQ"),-1;G=(re&32)!==0,Q=Q|(re&31)<>1:(Q=Q>>1,Q=-Q),Q}}function f_t(t,n){return t===n||t.generatedLine===n.generatedLine&&t.generatedCharacter===n.generatedCharacter&&t.sourceIndex===n.sourceIndex&&t.sourceLine===n.sourceLine&&t.sourceCharacter===n.sourceCharacter&&t.nameIndex===n.nameIndex}function R8e(t){return t.sourceIndex!==void 0&&t.sourceLine!==void 0&&t.sourceCharacter!==void 0}function Aar(t){return t>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:t===62?43:t===63?47:$.fail(`${t}: not a base64 value`)}function war(t){return t>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:t===43?62:t===47?63:-1}function m_t(t){return t.sourceIndex!==void 0&&t.sourcePosition!==void 0}function h_t(t,n){return t.generatedPosition===n.generatedPosition&&t.sourceIndex===n.sourceIndex&&t.sourcePosition===n.sourcePosition}function Iar(t,n){return $.assert(t.sourceIndex===n.sourceIndex),Br(t.sourcePosition,n.sourcePosition)}function Par(t,n){return Br(t.generatedPosition,n.generatedPosition)}function Nar(t){return t.sourcePosition}function Oar(t){return t.generatedPosition}function L8e(t,n,a){let c=mo(a),u=n.sourceRoot?za(n.sourceRoot,c):c,_=za(n.file,c),f=t.getSourceFileLike(_),y=n.sources.map(Z=>za(Z,u)),g=new Map(y.map((Z,Q)=>[t.getCanonicalFileName(Z),Q])),k,T,C;return{getSourcePosition:G,getGeneratedPosition:J};function O(Z){let Q=f!==void 0?C4(f,Z.generatedLine,Z.generatedCharacter,!0):-1,re,ae;if(R8e(Z)){let _e=t.getSourceFileLike(y[Z.sourceIndex]);re=n.sources[Z.sourceIndex],ae=_e!==void 0?C4(_e,Z.sourceLine,Z.sourceCharacter,!0):-1}return{generatedPosition:Q,source:re,sourceIndex:Z.sourceIndex,sourcePosition:ae,nameIndex:Z.nameIndex}}function F(){if(k===void 0){let Z=e0e(n.mappings),Q=so(Z,O);Z.error!==void 0?(t.log&&t.log(`Encountered error while decoding sourcemap: ${Z.error}`),k=j):k=Q}return k}function M(Z){if(C===void 0){let Q=[];for(let re of F()){if(!m_t(re))continue;let ae=Q[re.sourceIndex];ae||(Q[re.sourceIndex]=ae=[]),ae.push(re)}C=Q.map(re=>O1(re,Iar,h_t))}return C[Z]}function U(){if(T===void 0){let Z=[];for(let Q of F())Z.push(Q);T=O1(Z,Par,h_t)}return T}function J(Z){let Q=g.get(t.getCanonicalFileName(Z.fileName));if(Q===void 0)return Z;let re=M(Q);if(!Pt(re))return Z;let ae=Yl(re,Z.pos,Nar,Br);ae<0&&(ae=~ae);let _e=re[ae];return _e===void 0||_e.sourceIndex!==Q?Z:{fileName:_,pos:_e.generatedPosition}}function G(Z){let Q=U();if(!Pt(Q))return Z;let re=Yl(Q,Z.pos,Oar,Br);re<0&&(re=~re);let ae=Q[re];return ae===void 0||!m_t(ae)?Z:{fileName:y[ae.sourceIndex],pos:ae.sourcePosition}}}var t0e={getSourcePosition:vl,getGeneratedPosition:vl};function gh(t){return t=Ku(t),t?hl(t):0}function g_t(t){return!t||!IS(t)&&!k0(t)?!1:Pt(t.elements,y_t)}function y_t(t){return bb(t.propertyName||t.name)}function Cv(t,n){return a;function a(u){return u.kind===308?n(u):c(u)}function c(u){return t.factory.createBundle(Cr(u.sourceFiles,n))}}function M8e(t){return!!HR(t)}function Mie(t){if(HR(t))return!0;let n=t.importClause&&t.importClause.namedBindings;if(!n||!IS(n))return!1;let a=0;for(let c of n.elements)y_t(c)&&a++;return a>0&&a!==n.elements.length||!!(n.elements.length-a)&&W4(t)}function r0e(t){return!Mie(t)&&(W4(t)||!!t.importClause&&IS(t.importClause.namedBindings)&&g_t(t.importClause.namedBindings))}function n0e(t,n){let a=t.getEmitResolver(),c=t.getCompilerOptions(),u=[],_=new Far,f=[],y=new Map,g=new Set,k,T=!1,C,O=!1,F=!1,M=!1;for(let Z of n.statements)switch(Z.kind){case 273:u.push(Z),!F&&Mie(Z)&&(F=!0),!M&&r0e(Z)&&(M=!0);break;case 272:Z.moduleReference.kind===284&&u.push(Z);break;case 279:if(Z.moduleSpecifier)if(!Z.exportClause)u.push(Z),O=!0;else if(u.push(Z),k0(Z.exportClause))J(Z),M||(M=g_t(Z.exportClause));else{let Q=Z.exportClause.name,re=aC(Q);y.get(re)||(wz(f,gh(Z),Q),y.set(re,!0),k=jt(k,Q)),F=!0}else J(Z);break;case 278:Z.isExportEquals&&!C&&(C=Z);break;case 244:if(ko(Z,32))for(let Q of Z.declarationList.declarations)k=v_t(Q,y,k,f);break;case 263:ko(Z,32)&&G(Z,void 0,ko(Z,2048));break;case 264:if(ko(Z,32))if(ko(Z,2048))T||(wz(f,gh(Z),t.factory.getDeclarationName(Z)),T=!0);else{let Q=Z.name;Q&&!y.get(Zi(Q))&&(wz(f,gh(Z),Q),y.set(Zi(Q),!0),k=jt(k,Q))}break}let U=Zge(t.factory,t.getEmitHelperFactory(),n,c,O,F,M);return U&&u.unshift(U),{externalImports:u,exportSpecifiers:_,exportEquals:C,hasExportStarsToExportValues:O,exportedBindings:f,exportedNames:k,exportedFunctions:g,externalHelpersImportDeclaration:U};function J(Z){for(let Q of Ba(Z.exportClause,k0).elements){let re=aC(Q.name);if(!y.get(re)){let ae=Q.propertyName||Q.name;if(ae.kind!==11){Z.moduleSpecifier||_.add(ae,Q);let _e=a.getReferencedImportDeclaration(ae)||a.getReferencedValueDeclaration(ae);if(_e){if(_e.kind===263){G(_e,Q.name,bb(Q.name));continue}wz(f,gh(_e),Q.name)}}y.set(re,!0),k=jt(k,Q.name)}}}function G(Z,Q,re){if(g.add(Ku(Z,i_)),re)T||(wz(f,gh(Z),Q??t.factory.getDeclarationName(Z)),T=!0);else{Q??(Q=Z.name);let ae=aC(Q);y.get(ae)||(wz(f,gh(Z),Q),y.set(ae,!0))}}}function v_t(t,n,a,c){if($s(t.name))for(let u of t.name.elements)Id(u)||(a=v_t(u,n,a,c));else if(!ap(t.name)){let u=Zi(t.name);n.get(u)||(n.set(u,!0),a=jt(a,t.name),HT(t.name)&&wz(c,gh(t),t.name))}return a}function wz(t,n,a){let c=t[n];return c?c.push(a):t[n]=c=[a],c}var jL=class _${constructor(){this._map=new Map}get size(){return this._map.size}has(n){return this._map.has(_$.toKey(n))}get(n){return this._map.get(_$.toKey(n))}set(n,a){return this._map.set(_$.toKey(n),a),this}delete(n){var a;return((a=this._map)==null?void 0:a.delete(_$.toKey(n)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(n){if(R4(n)||ap(n)){let a=n.emitNode.autoGenerate;if((a.flags&7)===4){let c=QH(n),u=Dx(c)&&c!==n?_$.toKey(c):`(generated@${hl(c)})`;return IA(!1,a.prefix,u,a.suffix,_$.toKey)}else{let c=`(auto@${a.id})`;return IA(!1,a.prefix,c,a.suffix,_$.toKey)}}return Aa(n)?Zi(n).slice(1):Zi(n)}},Far=class extends jL{add(t,n){let a=this.get(t);return a?a.push(n):this.set(t,a=[n]),a}remove(t,n){let a=this.get(t);a&&(pb(a,n),a.length||this.delete(t))}};function DP(t){return Sl(t)||t.kind===9||Uh(t.kind)||ct(t)}function FS(t){return!ct(t)&&DP(t)}function Iz(t){return t>=65&&t<=79}function Pz(t){switch(t){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function jie(t){if(!af(t))return;let n=bl(t.expression);return U4(n)?n:void 0}function S_t(t,n,a){for(let c=n;cLar(c,n,a))}function Rar(t){return Mar(t)||n_(t)}function $ie(t){return yr(t.members,Rar)}function Lar(t,n,a){return ps(t)&&(!!t.initializer||!n)&&fd(t)===a}function Mar(t){return ps(t)&&fd(t)}function mK(t){return t.kind===173&&t.initializer!==void 0}function j8e(t){return!oc(t)&&(OO(t)||Mh(t))&&Aa(t.name)}function B8e(t){let n;if(t){let a=t.parameters,c=a.length>0&&uC(a[0]),u=c?1:0,_=c?a.length-1:a.length;for(let f=0;f<_;f++){let y=a[f+u];(n||By(y))&&(n||(n=new Array(_)),n[f]=yb(y))}}return n}function o0e(t,n){let a=yb(t),c=n?B8e(Rx(t)):void 0;if(!(!Pt(a)&&!Pt(c)))return{decorators:a,parameters:c}}function Uie(t,n,a){switch(t.kind){case 178:case 179:return a?jar(t,n,!0):b_t(t,!1);case 175:return b_t(t,a);case 173:return Bar(t);default:return}}function jar(t,n,a){if(!t.body)return;let{firstAccessor:c,secondAccessor:u,getAccessor:_,setAccessor:f}=uP(n.members,t),y=By(c)?c:u&&By(u)?u:void 0;if(!y||t!==y)return;let g=yb(y),k=a?B8e(f):void 0;if(!(!Pt(g)&&!Pt(k)))return{decorators:g,parameters:k,getDecorators:_&&yb(_),setDecorators:f&&yb(f)}}function b_t(t,n){if(!t.body)return;let a=yb(t),c=n?B8e(t):void 0;if(!(!Pt(a)&&!Pt(c)))return{decorators:a,parameters:c}}function Bar(t){let n=yb(t);if(Pt(n))return{decorators:n}}function $ar(t,n){for(;t;){let a=n(t);if(a!==void 0)return a;t=t.previous}}function $8e(t){return{data:t}}function a0e(t,n){var a,c;return R4(n)?(a=t?.generatedIdentifiers)==null?void 0:a.get(QH(n)):(c=t?.identifiers)==null?void 0:c.get(n.escapedText)}function y3(t,n,a){R4(n)?(t.generatedIdentifiers??(t.generatedIdentifiers=new Map),t.generatedIdentifiers.set(QH(n),a)):(t.identifiers??(t.identifiers=new Map),t.identifiers.set(n.escapedText,a))}function U8e(t,n){return $ar(t,a=>a0e(a.privateEnv,n))}function Uar(t){return!t.initializer&&ct(t.name)}function hK(t){return ht(t,Uar)}function NF(t,n){if(!t||!Ic(t)||!JG(t.text,n))return t;let a=hE(t.text,TK(t.text,n));return a!==t.text?Yi(qt(W.createStringLiteral(a,t.singleQuote),t),t):t}var z8e=(t=>(t[t.All=0]="All",t[t.ObjectRest=1]="ObjectRest",t))(z8e||{});function v3(t,n,a,c,u,_){let f=t,y;if(dE(t))for(y=t.right;u4e(t.left)||khe(t.left);)if(dE(y))f=t=y,y=t.right;else return $.checkDefined(At(y,n,Vt));let g,k={context:a,level:c,downlevelIteration:!!a.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:T,emitBindingOrAssignment:C,createArrayBindingOrAssignmentPattern:O=>Kar(a.factory,O),createObjectBindingOrAssignmentPattern:O=>Zar(a.factory,O),createArrayBindingOrAssignmentElement:Yar,visitor:n};if(y&&(y=At(y,n,Vt),$.assert(y),ct(y)&&q8e(t,y.escapedText)||J8e(t)?y=OF(k,y,!1,f):u?y=OF(k,y,!0,f):fu(t)&&(f=y)),Nz(k,t,y,f,dE(t)),y&&u){if(!Pt(g))return y;g.push(y)}return a.factory.inlineExpressions(g)||a.factory.createOmittedExpression();function T(O){g=jt(g,O)}function C(O,F,M,U){$.assertNode(O,_?ct:Vt);let J=_?_(O,F,M):qt(a.factory.createAssignment($.checkDefined(At(O,n,Vt)),F),M);J.original=U,T(J)}}function q8e(t,n){let a=xC(t);return lG(a)?zar(a,n):ct(a)?a.escapedText===n:!1}function zar(t,n){let a=AL(t);for(let c of a)if(q8e(c,n))return!0;return!1}function J8e(t){let n=nie(t);if(n&&dc(n)&&!F4(n.expression))return!0;let a=xC(t);return!!a&&lG(a)&&qar(a)}function qar(t){return!!X(AL(t),J8e)}function AP(t,n,a,c,u,_=!1,f){let y,g=[],k=[],T={context:a,level:c,downlevelIteration:!!a.getCompilerOptions().downlevelIteration,hoistTempVariables:_,emitExpression:C,emitBindingOrAssignment:O,createArrayBindingOrAssignmentPattern:F=>Har(a.factory,F),createObjectBindingOrAssignmentPattern:F=>Qar(a.factory,F),createArrayBindingOrAssignmentElement:F=>Xar(a.factory,F),visitor:n};if(Oo(t)){let F=HH(t);F&&(ct(F)&&q8e(t,F.escapedText)||J8e(t))&&(F=OF(T,$.checkDefined(At(F,T.visitor,Vt)),!1,F),t=a.factory.updateVariableDeclaration(t,t.name,void 0,void 0,F))}if(Nz(T,t,u,t,f),y){let F=a.factory.createTempVariable(void 0);if(_){let M=a.factory.inlineExpressions(y);y=void 0,O(F,M,void 0,void 0)}else{a.hoistVariableDeclaration(F);let M=Sn(g);M.pendingExpressions=jt(M.pendingExpressions,a.factory.createAssignment(F,M.value)),En(M.pendingExpressions,y),M.value=F}}for(let{pendingExpressions:F,name:M,value:U,location:J,original:G}of g){let Z=a.factory.createVariableDeclaration(M,void 0,void 0,F?a.factory.inlineExpressions(jt(F,U)):U);Z.original=G,qt(Z,J),k.push(Z)}return k;function C(F){y=jt(y,F)}function O(F,M,U,J){$.assertNode(F,L4),y&&(M=a.factory.inlineExpressions(jt(y,M)),y=void 0),g.push({pendingExpressions:y,name:F,value:M,location:U,original:J})}}function Nz(t,n,a,c,u){let _=xC(n);if(!u){let f=At(HH(n),t.visitor,Vt);f?a?(a=War(t,a,f,c),!FS(f)&&lG(_)&&(a=OF(t,a,!0,c))):a=f:a||(a=t.context.factory.createVoidZero())}sme(_)?Jar(t,n,_,a,c):cme(_)?Var(t,n,_,a,c):t.emitBindingOrAssignment(_,a,c,n)}function Jar(t,n,a,c,u){let _=AL(a),f=_.length;if(f!==1){let k=!cG(n)||f!==0;c=OF(t,c,k,u)}let y,g;for(let k=0;k=1&&!(T.transformFlags&98304)&&!(xC(T).transformFlags&98304)&&!dc(C))y=jt(y,At(T,t.visitor,wPe));else{y&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(y),c,u,a),y=void 0);let O=Gar(t,c,C);dc(C)&&(g=jt(g,O.argumentExpression)),Nz(t,T,O,T)}}}y&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(y),c,u,a)}function Var(t,n,a,c,u){let _=AL(a),f=_.length;if(t.level<1&&t.downlevelIteration)c=OF(t,qt(t.context.getEmitHelperFactory().createReadHelper(c,f>0&&rie(_[f-1])?void 0:f),u),!1,u);else if(f!==1&&(t.level<1||f===0)||ht(_,Id)){let k=!cG(n)||f!==0;c=OF(t,c,k,u)}let y,g;for(let k=0;k=1)if(T.transformFlags&65536||t.hasTransformedPriorElement&&!x_t(T)){t.hasTransformedPriorElement=!0;let C=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(C),g=jt(g,[C,T]),y=jt(y,t.createArrayBindingOrAssignmentElement(C))}else y=jt(y,T);else{if(Id(T))continue;if(rie(T)){if(k===f-1){let C=t.context.factory.createArraySliceCall(c,k);Nz(t,T,C,T)}}else{let C=t.context.factory.createElementAccessExpression(c,k);Nz(t,T,C,T)}}}if(y&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(y),c,u,a),g)for(let[k,T]of g)Nz(t,T,k,T)}function x_t(t){let n=xC(t);if(!n||Id(n))return!0;let a=nie(t);if(a&&!SS(a))return!1;let c=HH(t);return c&&!FS(c)?!1:lG(n)?ht(AL(n),x_t):ct(n)}function War(t,n,a,c){return n=OF(t,n,!0,c),t.context.factory.createConditionalExpression(t.context.factory.createTypeCheck(n,"undefined"),void 0,a,void 0,n)}function Gar(t,n,a){let{factory:c}=t.context;if(dc(a)){let u=OF(t,$.checkDefined(At(a.expression,t.visitor,Vt)),!1,a);return t.context.factory.createElementAccessExpression(n,u)}else if(jy(a)||dL(a)){let u=c.cloneNode(a);return t.context.factory.createElementAccessExpression(n,u)}else{let u=t.context.factory.createIdentifier(Zi(a));return t.context.factory.createPropertyAccessExpression(n,u)}}function OF(t,n,a,c){if(ct(n)&&a)return n;{let u=t.context.factory.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(u),t.emitExpression(qt(t.context.factory.createAssignment(u,n),c))):t.emitBindingOrAssignment(u,n,c,void 0),u}}function Har(t,n){return $.assertEachNode(n,Jte),t.createArrayBindingPattern(n)}function Kar(t,n){return $.assertEachNode(n,pG),t.createArrayLiteralExpression(Cr(n,t.converters.convertToArrayAssignmentElement))}function Qar(t,n){return $.assertEachNode(n,Vc),t.createObjectBindingPattern(n)}function Zar(t,n){return $.assertEachNode(n,uG),t.createObjectLiteralExpression(Cr(n,t.converters.convertToObjectAssignmentElement))}function Xar(t,n){return t.createBindingElement(void 0,void 0,n)}function Yar(t){return t}function esr(t,n,a=t.createThis()){let c=t.createAssignment(n,a),u=t.createExpressionStatement(c),_=t.createBlock([u],!1),f=t.createClassStaticBlockDeclaration(_);return nm(f).classThis=n,f}function Oz(t){var n;if(!n_(t)||t.body.statements.length!==1)return!1;let a=t.body.statements[0];return af(a)&&of(a.expression,!0)&&ct(a.expression.left)&&((n=t.emitNode)==null?void 0:n.classThis)===a.expression.left&&a.expression.right.kind===110}function s0e(t){var n;return!!((n=t.emitNode)!=null&&n.classThis)&&Pt(t.members,Oz)}function V8e(t,n,a,c){if(s0e(n))return n;let u=esr(t,a,c);n.name&&Jc(u.body.statements[0],n.name);let _=t.createNodeArray([u,...n.members]);qt(_,n.members);let f=ed(n)?t.updateClassDeclaration(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,_):t.updateClassExpression(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,_);return nm(f).classThis=a,f}function zie(t,n,a){let c=Ku(Wp(a));return(ed(c)||i_(c))&&!c.name&&ko(c,2048)?t.createStringLiteral("default"):t.createStringLiteralFromNode(n)}function T_t(t,n,a){let{factory:c}=t;if(a!==void 0)return{assignedName:c.createStringLiteral(a),name:n};if(SS(n)||Aa(n))return{assignedName:c.createStringLiteralFromNode(n),name:n};if(SS(n.expression)&&!ct(n.expression))return{assignedName:c.createStringLiteralFromNode(n.expression),name:n};let u=c.getGeneratedNameForNode(n);t.hoistVariableDeclaration(u);let _=t.getEmitHelperFactory().createPropKeyHelper(n.expression),f=c.createAssignment(u,_),y=c.updateComputedPropertyName(n,f);return{assignedName:u,name:y}}function tsr(t,n,a=t.factory.createThis()){let{factory:c}=t,u=t.getEmitHelperFactory().createSetFunctionNameHelper(a,n),_=c.createExpressionStatement(u),f=c.createBlock([_],!1),y=c.createClassStaticBlockDeclaration(f);return nm(y).assignedName=n,y}function FF(t){var n;if(!n_(t)||t.body.statements.length!==1)return!1;let a=t.body.statements[0];return af(a)&&iz(a.expression,"___setFunctionName")&&a.expression.arguments.length>=2&&a.expression.arguments[1]===((n=t.emitNode)==null?void 0:n.assignedName)}function qie(t){var n;return!!((n=t.emitNode)!=null&&n.assignedName)&&Pt(t.members,FF)}function c0e(t){return!!t.name||qie(t)}function Jie(t,n,a,c){if(qie(n))return n;let{factory:u}=t,_=tsr(t,a,c);n.name&&Jc(_.body.statements[0],n.name);let f=hr(n.members,Oz)+1,y=n.members.slice(0,f),g=n.members.slice(f),k=u.createNodeArray([...y,_,...g]);return qt(k,n.members),n=ed(n)?u.updateClassDeclaration(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,k):u.updateClassExpression(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,k),nm(n).assignedName=a,n}function BL(t,n,a,c){if(c&&Ic(a)&&$me(a))return n;let{factory:u}=t,_=Wp(n),f=w_(_)?Ba(Jie(t,_,a),w_):t.getEmitHelperFactory().createSetFunctionNameHelper(_,a);return u.restoreOuterExpressions(n,f)}function rsr(t,n,a,c){let{factory:u}=t,{assignedName:_,name:f}=T_t(t,n.name,c),y=BL(t,n.initializer,_,a);return u.updatePropertyAssignment(n,f,y)}function nsr(t,n,a,c){let{factory:u}=t,_=c!==void 0?u.createStringLiteral(c):zie(u,n.name,n.objectAssignmentInitializer),f=BL(t,n.objectAssignmentInitializer,_,a);return u.updateShorthandPropertyAssignment(n,n.name,f)}function isr(t,n,a,c){let{factory:u}=t,_=c!==void 0?u.createStringLiteral(c):zie(u,n.name,n.initializer),f=BL(t,n.initializer,_,a);return u.updateVariableDeclaration(n,n.name,n.exclamationToken,n.type,f)}function osr(t,n,a,c){let{factory:u}=t,_=c!==void 0?u.createStringLiteral(c):zie(u,n.name,n.initializer),f=BL(t,n.initializer,_,a);return u.updateParameterDeclaration(n,n.modifiers,n.dotDotDotToken,n.name,n.questionToken,n.type,f)}function asr(t,n,a,c){let{factory:u}=t,_=c!==void 0?u.createStringLiteral(c):zie(u,n.name,n.initializer),f=BL(t,n.initializer,_,a);return u.updateBindingElement(n,n.dotDotDotToken,n.propertyName,n.name,f)}function ssr(t,n,a,c){let{factory:u}=t,{assignedName:_,name:f}=T_t(t,n.name,c),y=BL(t,n.initializer,_,a);return u.updatePropertyDeclaration(n,n.modifiers,f,n.questionToken??n.exclamationToken,n.type,y)}function csr(t,n,a,c){let{factory:u}=t,_=c!==void 0?u.createStringLiteral(c):zie(u,n.left,n.right),f=BL(t,n.right,_,a);return u.updateBinaryExpression(n,n.left,n.operatorToken,f)}function lsr(t,n,a,c){let{factory:u}=t,_=c!==void 0?u.createStringLiteral(c):u.createStringLiteral(n.isExportEquals?"":"default"),f=BL(t,n.expression,_,a);return u.updateExportAssignment(n,n.modifiers,f)}function qg(t,n,a,c){switch(n.kind){case 304:return rsr(t,n,a,c);case 305:return nsr(t,n,a,c);case 261:return isr(t,n,a,c);case 170:return osr(t,n,a,c);case 209:return asr(t,n,a,c);case 173:return ssr(t,n,a,c);case 227:return csr(t,n,a,c);case 278:return lsr(t,n,a,c)}}var W8e=(t=>(t[t.LiftRestriction=0]="LiftRestriction",t[t.All=1]="All",t))(W8e||{});function l0e(t,n,a,c,u,_){let f=At(n.tag,a,Vt);$.assert(f);let y=[void 0],g=[],k=[],T=n.template;if(_===0&&!che(T))return Dn(n,a,t);let{factory:C}=t;if(r3(T))g.push(G8e(C,T)),k.push(H8e(C,T,c));else{g.push(G8e(C,T.head)),k.push(H8e(C,T.head,c));for(let F of T.templateSpans)g.push(G8e(C,F.literal)),k.push(H8e(C,F.literal,c)),y.push($.checkDefined(At(F.expression,a,Vt)))}let O=t.getEmitHelperFactory().createTemplateObjectHelper(C.createArrayLiteralExpression(g),C.createArrayLiteralExpression(k));if(yd(c)){let F=C.createUniqueName("templateObject");u(F),y[0]=C.createLogicalOr(F,C.createAssignment(F,O))}else y[0]=O;return C.createCallExpression(f,void 0,y)}function G8e(t,n){return n.templateFlags&26656?t.createVoidZero():t.createStringLiteral(n.text)}function H8e(t,n,a){let c=n.rawText;if(c===void 0){$.assertIsDefined(a,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),c=XI(a,n);let u=n.kind===15||n.kind===18;c=c.substring(1,c.length-(u?1:2))}return c=c.replace(/\r\n?/g,` -`),qt(t.createStringLiteral(c),n)}var usr=!1;function K8e(t){let{factory:n,getEmitHelperFactory:a,startLexicalEnvironment:c,resumeLexicalEnvironment:u,endLexicalEnvironment:_,hoistVariableDeclaration:f}=t,y=t.getEmitResolver(),g=t.getCompilerOptions(),k=$c(g),T=Km(g),C=!!g.experimentalDecorators,O=g.emitDecoratorMetadata?Z8e(t):void 0,F=t.onEmitNode,M=t.onSubstituteNode;t.onEmitNode=Gy,t.onSubstituteNode=_s,t.enableSubstitution(212),t.enableSubstitution(213);let U,J,G,Z,Q,re=0,ae;return _e;function _e(H){return H.kind===309?me(H):le(H)}function me(H){return n.createBundle(H.sourceFiles.map(le))}function le(H){if(H.isDeclarationFile)return H;U=H;let st=Oe(H,_t);return Ux(st,t.readEmitHelpers()),U=void 0,st}function Oe(H,st){let zt=Z,Er=Q;be(H);let jn=st(H);return Z!==zt&&(Q=Er),Z=zt,jn}function be(H){switch(H.kind){case 308:case 270:case 269:case 242:Z=H,Q=void 0;break;case 264:case 263:if(ko(H,128))break;H.name?ot(H):$.assert(H.kind===264||ko(H,2048));break}}function ue(H){return Oe(H,De)}function De(H){return H.transformFlags&1?ke(H):H}function Ce(H){return Oe(H,Ae)}function Ae(H){switch(H.kind){case 273:case 272:case 278:case 279:return Be(H);default:return De(H)}}function Fe(H){let st=vs(H);if(st===H||Xu(H))return!1;if(!st||st.kind!==H.kind)return!0;switch(H.kind){case 273:if($.assertNode(st,fp),H.importClause!==st.importClause||H.attributes!==st.attributes)return!0;break;case 272:if($.assertNode(st,gd),H.name!==st.name||H.isTypeOnly!==st.isTypeOnly||H.moduleReference!==st.moduleReference&&(uh(H.moduleReference)||uh(st.moduleReference)))return!0;break;case 279:if($.assertNode(st,P_),H.exportClause!==st.exportClause||H.attributes!==st.attributes)return!0;break}return!1}function Be(H){if(Fe(H))return H.transformFlags&1?Dn(H,ue,t):H;switch(H.kind){case 273:return ii(H);case 272:return gn(H);case 278:return rr(H);case 279:return _r(H);default:$.fail("Unhandled ellided statement")}}function de(H){return Oe(H,ze)}function ze(H){if(!(H.kind===279||H.kind===273||H.kind===274||H.kind===272&&H.moduleReference.kind===284))return H.transformFlags&1||ko(H,32)?ke(H):H}function ut(H){return st=>Oe(st,zt=>je(zt,H))}function je(H,st){switch(H.kind){case 177:return Ht(H);case 173:return ft(H,st);case 178:return Ls(H,st);case 179:return yc(H,st);case 175:return Eo(H,st);case 176:return Dn(H,ue,t);case 241:return H;case 182:return;default:return $.failBadSyntaxKind(H)}}function ve(H){return st=>Oe(st,zt=>Le(zt,H))}function Le(H,st){switch(H.kind){case 304:case 305:case 306:return ue(H);case 178:return Ls(H,st);case 179:return yc(H,st);case 175:return Eo(H,st);default:return $.failBadSyntaxKind(H)}}function Ve(H){return hd(H)?void 0:ue(H)}function nt(H){return bc(H)?void 0:ue(H)}function It(H){if(!hd(H)&&!(ZO(H.kind)&28895)&&!(J&&H.kind===95))return H}function ke(H){if(fa(H)&&ko(H,128))return n.createNotEmittedStatement(H);switch(H.kind){case 95:case 90:return J?void 0:H;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 189:case 190:case 191:case 192:case 188:case 183:case 169:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 186:case 185:case 187:case 184:case 193:case 194:case 195:case 197:case 198:case 199:case 200:case 201:case 202:case 182:return;case 266:return n.createNotEmittedStatement(H);case 271:return;case 265:return n.createNotEmittedStatement(H);case 264:return St(H);case 232:return Kt(H);case 299:return oo(H);case 234:return Oi(H);case 211:return Se(H);case 177:case 173:case 175:case 178:case 179:case 176:return $.fail("Class and object literal elements must be visited with their respective visitors");case 263:return Cn(H);case 219:return Es(H);case 220:return Dt(H);case 170:return ur(H);case 218:return et(H);case 217:case 235:return Ct(H);case 239:return ar(H);case 214:return at(H);case 215:return Zt(H);case 216:return Qt(H);case 236:return Ot(H);case 267:return gi(H);case 244:return Ee(H);case 261:return ye(H);case 268:return Ge(H);case 272:return gn(H);case 286:return pr(H);case 287:return Et(H);default:return Dn(H,ue,t)}}function _t(H){let st=rm(g,"alwaysStrict")&&!(yd(H)&&T>=5)&&!h0(H);return n.updateSourceFile(H,Qye(H.statements,Ce,t,0,st))}function Se(H){return n.updateObjectLiteralExpression(H,Bn(H.properties,ve(H),MT))}function tt(H){let st=0;Pt(i0e(H,!0,!0))&&(st|=1);let zt=vv(H);return zt&&Wp(zt.expression).kind!==106&&(st|=64),pE(C,H)&&(st|=2),mU(C,H)&&(st|=4),bn(H)?st|=8:Ys(H)?st|=32:Uo(H)&&(st|=16),st}function Qe(H){return!!(H.transformFlags&8192)}function We(H){return By(H)||Pt(H.typeParameters)||Pt(H.heritageClauses,Qe)||Pt(H.members,Qe)}function St(H){let st=tt(H),zt=k<=1&&!!(st&7);if(!We(H)&&!pE(C,H)&&!bn(H))return n.updateClassDeclaration(H,Bn(H.modifiers,It,bc),H.name,void 0,Bn(H.heritageClauses,ue,zg),Bn(H.members,ut(H),J_));zt&&t.startLexicalEnvironment();let Er=zt||st&8,jn=Er?Bn(H.modifiers,nt,sp):Bn(H.modifiers,ue,sp);st&2&&(jn=nn(jn,H));let Di=Er&&!H.name||st&4||st&1?H.name??n.getGeneratedNameForNode(H):H.name,On=n.updateClassDeclaration(H,jn,Di,void 0,Bn(H.heritageClauses,ue,zg),Sr(H)),ua=Xc(H);st&1&&(ua|=64),Ai(On,ua);let va;if(zt){let Bl=[On],xc=Dhe(_c(U.text,H.members.end),20),ep=n.getInternalName(H),W_=n.createPartiallyEmittedExpression(ep);uL(W_,xc.end),Ai(W_,3072);let g_=n.createReturnStatement(W_);KU(g_,xc.pos),Ai(g_,3840),Bl.push(g_),Px(Bl,t.endLexicalEnvironment());let xu=n.createImmediatelyInvokedArrowFunction(Bl);OH(xu,1);let a_=n.createVariableDeclaration(n.getLocalName(H,!1,!1),void 0,void 0,xu);Yi(a_,H);let Gg=n.createVariableStatement(void 0,n.createVariableDeclarationList([a_],1));Yi(Gg,H),Y_(Gg,H),Jc(Gg,qT(H)),Dm(Gg),va=Gg}else va=On;if(Er){if(st&8)return[va,ec(H)];if(st&32)return[va,n.createExportDefault(n.getLocalName(H,!1,!0))];if(st&16)return[va,n.createExternalModuleExport(n.getDeclarationName(H,!1,!0))]}return va}function Kt(H){let st=Bn(H.modifiers,nt,sp);return pE(C,H)&&(st=nn(st,H)),n.updateClassExpression(H,st,H.name,void 0,Bn(H.heritageClauses,ue,zg),Sr(H))}function Sr(H){let st=Bn(H.members,ut(H),J_),zt,Er=Rx(H),jn=Er&&yr(Er.parameters,So=>ne(So,Er));if(jn)for(let So of jn){let Di=n.createPropertyDeclaration(void 0,So.name,void 0,void 0,void 0);Yi(Di,So),zt=jt(zt,Di)}return zt?(zt=En(zt,st),qt(n.createNodeArray(zt),H.members)):st}function nn(H,st){let zt=$t(st,st);if(Pt(zt)){let Er=[];En(Er,eO(H,KH)),En(Er,yr(H,hd)),En(Er,zt),En(Er,yr(tO(H,KH),bc)),H=qt(n.createNodeArray(Er),H)}return H}function Nn(H,st,zt){if(Co(zt)&&Bme(C,st,zt)){let Er=$t(st,zt);if(Pt(Er)){let jn=[];En(jn,yr(H,hd)),En(jn,Er),En(jn,yr(H,bc)),H=qt(n.createNodeArray(jn),H)}}return H}function $t(H,st){if(C)return usr?Qn(H,st):Dr(H,st)}function Dr(H,st){if(O){let zt;if(Ko(H)){let Er=a().createMetadataHelper("design:type",O.serializeTypeOfNode({currentLexicalScope:Z,currentNameScope:st},H,st));zt=jt(zt,n.createDecorator(Er))}if(sr(H)){let Er=a().createMetadataHelper("design:paramtypes",O.serializeParameterTypesOfNode({currentLexicalScope:Z,currentNameScope:st},H,st));zt=jt(zt,n.createDecorator(Er))}if(is(H)){let Er=a().createMetadataHelper("design:returntype",O.serializeReturnTypeOfNode({currentLexicalScope:Z,currentNameScope:st},H));zt=jt(zt,n.createDecorator(Er))}return zt}}function Qn(H,st){if(O){let zt;if(Ko(H)){let Er=n.createPropertyAssignment("type",n.createArrowFunction(void 0,void 0,[],void 0,n.createToken(39),O.serializeTypeOfNode({currentLexicalScope:Z,currentNameScope:st},H,st)));zt=jt(zt,Er)}if(sr(H)){let Er=n.createPropertyAssignment("paramTypes",n.createArrowFunction(void 0,void 0,[],void 0,n.createToken(39),O.serializeParameterTypesOfNode({currentLexicalScope:Z,currentNameScope:st},H,st)));zt=jt(zt,Er)}if(is(H)){let Er=n.createPropertyAssignment("returnType",n.createArrowFunction(void 0,void 0,[],void 0,n.createToken(39),O.serializeReturnTypeOfNode({currentLexicalScope:Z,currentNameScope:st},H)));zt=jt(zt,Er)}if(zt){let Er=a().createMetadataHelper("design:typeinfo",n.createObjectLiteralExpression(zt,!0));return[n.createDecorator(Er)]}}}function Ko(H){let st=H.kind;return st===175||st===178||st===179||st===173}function is(H){return H.kind===175}function sr(H){switch(H.kind){case 264:case 232:return Rx(H)!==void 0;case 175:case 178:case 179:return!0}return!1}function uo(H,st){let zt=H.name;return Aa(zt)?n.createIdentifier(""):dc(zt)?st&&!FS(zt.expression)?n.getGeneratedNameForNode(zt):zt.expression:ct(zt)?n.createStringLiteral(Zi(zt)):n.cloneNode(zt)}function Wa(H){let st=H.name;if(C&&dc(st)&&By(H)){let zt=At(st.expression,ue,Vt);$.assert(zt);let Er=q1(zt);if(!FS(Er)){let jn=n.getGeneratedNameForNode(st);return f(jn),n.updateComputedPropertyName(st,n.createAssignment(jn,zt))}}return $.checkDefined(At(st,ue,q_))}function oo(H){if(H.token!==119)return Dn(H,ue,t)}function Oi(H){return n.updateExpressionWithTypeArguments(H,$.checkDefined(At(H.expression,ue,jh)),void 0)}function $o(H){return!Op(H.body)}function ft(H,st){let zt=H.flags&33554432||ko(H,64);if(zt&&!(C&&By(H)))return;let Er=Co(st)?zt?Bn(H.modifiers,nt,sp):Bn(H.modifiers,ue,sp):Bn(H.modifiers,Ve,sp);return Er=Nn(Er,H,st),zt?n.updatePropertyDeclaration(H,go(Er,n.createModifiersFromModifierFlags(128)),$.checkDefined(At(H.name,ue,q_)),void 0,void 0,void 0):n.updatePropertyDeclaration(H,Er,Wa(H),void 0,void 0,At(H.initializer,ue,Vt))}function Ht(H){if($o(H))return n.updateConstructorDeclaration(H,void 0,Rp(H.parameters,ue,t),ai(H.body,H))}function Wr(H,st,zt,Er,jn,So){let Di=Er[jn],On=st[Di];if(En(H,Bn(st,ue,fa,zt,Di-zt)),c3(On)){let ua=[];Wr(ua,On.tryBlock.statements,0,Er,jn+1,So);let va=n.createNodeArray(ua);qt(va,On.tryBlock.statements),H.push(n.updateTryStatement(On,n.updateBlock(On.tryBlock,ua),At(On.catchClause,ue,TP),At(On.finallyBlock,ue,Vs)))}else En(H,Bn(st,ue,fa,Di,1)),En(H,So);En(H,Bn(st,ue,fa,Di+1))}function ai(H,st){let zt=st&&yr(st.parameters,ua=>ne(ua,st));if(!Pt(zt))return Jy(H,ue,t);let Er=[];u();let jn=n.copyPrologue(H.statements,Er,!1,ue),So=Bie(H.statements,jn),Di=Wn(zt,vo);So.length?Wr(Er,H.statements,jn,So,0,Di):(En(Er,Di),En(Er,Bn(H.statements,ue,fa,jn))),Er=n.mergeLexicalEnvironment(Er,_());let On=n.createBlock(qt(n.createNodeArray(Er),H.statements),!0);return qt(On,H),Yi(On,H),On}function vo(H){let st=H.name;if(!ct(st))return;let zt=xl(qt(n.cloneNode(st),st),st.parent);Ai(zt,3168);let Er=xl(qt(n.cloneNode(st),st),st.parent);return Ai(Er,3072),Dm(NH(qt(Yi(n.createExpressionStatement(n.createAssignment(qt(n.createPropertyAccessExpression(n.createThis(),zt),H.name),Er)),H),gA(H,-1))))}function Eo(H,st){if(!(H.transformFlags&1))return H;if(!$o(H))return;let zt=Co(st)?Bn(H.modifiers,ue,sp):Bn(H.modifiers,Ve,sp);return zt=Nn(zt,H,st),n.updateMethodDeclaration(H,zt,H.asteriskToken,Wa(H),void 0,void 0,Rp(H.parameters,ue,t),void 0,Jy(H.body,ue,t))}function ya(H){return!(Op(H.body)&&ko(H,64))}function Ls(H,st){if(!(H.transformFlags&1))return H;if(!ya(H))return;let zt=Co(st)?Bn(H.modifiers,ue,sp):Bn(H.modifiers,Ve,sp);return zt=Nn(zt,H,st),n.updateGetAccessorDeclaration(H,zt,Wa(H),Rp(H.parameters,ue,t),void 0,Jy(H.body,ue,t)||n.createBlock([]))}function yc(H,st){if(!(H.transformFlags&1))return H;if(!ya(H))return;let zt=Co(st)?Bn(H.modifiers,ue,sp):Bn(H.modifiers,Ve,sp);return zt=Nn(zt,H,st),n.updateSetAccessorDeclaration(H,zt,Wa(H),Rp(H.parameters,ue,t),Jy(H.body,ue,t)||n.createBlock([]))}function Cn(H){if(!$o(H))return n.createNotEmittedStatement(H);let st=n.updateFunctionDeclaration(H,Bn(H.modifiers,It,bc),H.asteriskToken,H.name,void 0,Rp(H.parameters,ue,t),void 0,Jy(H.body,ue,t)||n.createBlock([]));if(bn(H)){let zt=[st];return Ss(zt,H),zt}return st}function Es(H){return $o(H)?n.updateFunctionExpression(H,Bn(H.modifiers,It,bc),H.asteriskToken,H.name,void 0,Rp(H.parameters,ue,t),void 0,Jy(H.body,ue,t)||n.createBlock([])):n.createOmittedExpression()}function Dt(H){return n.updateArrowFunction(H,Bn(H.modifiers,It,bc),void 0,Rp(H.parameters,ue,t),void 0,H.equalsGreaterThanToken,Jy(H.body,ue,t))}function ur(H){if(uC(H))return;let st=n.updateParameterDeclaration(H,Bn(H.modifiers,zt=>hd(zt)?ue(zt):void 0,sp),H.dotDotDotToken,$.checkDefined(At(H.name,ue,L4)),void 0,void 0,At(H.initializer,ue,Vt));return st!==H&&(Y_(st,H),qt(st,ES(H)),Jc(st,ES(H)),Ai(st.name,64)),st}function Ee(H){if(bn(H)){let st=MU(H.declarationList);return st.length===0?void 0:qt(n.createExpressionStatement(n.inlineExpressions(Cr(st,Bt))),H)}else return Dn(H,ue,t)}function Bt(H){let st=H.name;return $s(st)?v3(H,ue,t,0,!1,Cp):qt(n.createAssignment(uu(st),$.checkDefined(At(H.initializer,ue,Vt))),H)}function ye(H){let st=n.updateVariableDeclaration(H,$.checkDefined(At(H.name,ue,L4)),void 0,void 0,At(H.initializer,ue,Vt));return H.type&&E3e(st.name,H.type),st}function et(H){let st=Wp(H.expression,-55);if(ZI(st)||yL(st)){let zt=At(H.expression,ue,Vt);return $.assert(zt),n.createPartiallyEmittedExpression(zt,H)}return Dn(H,ue,t)}function Ct(H){let st=At(H.expression,ue,Vt);return $.assert(st),n.createPartiallyEmittedExpression(st,H)}function Ot(H){let st=At(H.expression,ue,jh);return $.assert(st),n.createPartiallyEmittedExpression(st,H)}function ar(H){let st=At(H.expression,ue,Vt);return $.assert(st),n.createPartiallyEmittedExpression(st,H)}function at(H){return n.updateCallExpression(H,$.checkDefined(At(H.expression,ue,Vt)),void 0,Bn(H.arguments,ue,Vt))}function Zt(H){return n.updateNewExpression(H,$.checkDefined(At(H.expression,ue,Vt)),void 0,Bn(H.arguments,ue,Vt))}function Qt(H){return n.updateTaggedTemplateExpression(H,$.checkDefined(At(H.tag,ue,Vt)),void 0,$.checkDefined(At(H.template,ue,FO)))}function pr(H){return n.updateJsxSelfClosingElement(H,$.checkDefined(At(H.tagName,ue,sU)),void 0,$.checkDefined(At(H.attributes,ue,xP)))}function Et(H){return n.updateJsxOpeningElement(H,$.checkDefined(At(H.tagName,ue,sU)),void 0,$.checkDefined(At(H.attributes,ue,xP)))}function xr(H){return!lA(H)||dC(g)}function gi(H){if(!xr(H))return n.createNotEmittedStatement(H);let st=[],zt=4,Er=mr(st,H);Er&&(T!==4||Z!==U)&&(zt|=1024);let jn=$a(H),So=bs(H),Di=bn(H)?n.getExternalModuleOrNamespaceExportName(G,H,!1,!0):n.getDeclarationName(H,!1,!0),On=n.createLogicalOr(Di,n.createAssignment(Di,n.createObjectLiteralExpression()));if(bn(H)){let va=n.getLocalName(H,!1,!0);On=n.createAssignment(va,On)}let ua=n.createExpressionStatement(n.createCallExpression(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,jn)],void 0,Ye(H,So)),void 0,[On]));return Yi(ua,H),Er&&(SA(ua,void 0),uF(ua,void 0)),qt(ua,H),CS(ua,zt),st.push(ua),st}function Ye(H,st){let zt=G;G=st;let Er=[];c();let jn=Cr(H.members,er);return Px(Er,_()),En(Er,jn),G=zt,n.createBlock(qt(n.createNodeArray(Er),H.members),!0)}function er(H){let st=uo(H,!1),zt=y.getEnumMemberValue(H),Er=Ne(H,zt?.value),jn=n.createAssignment(n.createElementAccessExpression(G,st),Er),So=typeof zt?.value=="string"||zt?.isSyntacticallyString?jn:n.createAssignment(n.createElementAccessExpression(G,jn),st);return qt(n.createExpressionStatement(qt(So,H)),H)}function Ne(H,st){return st!==void 0?typeof st=="string"?n.createStringLiteral(st):st<0?n.createPrefixUnaryExpression(41,n.createNumericLiteral(-st)):n.createNumericLiteral(st):(V_(),H.initializer?$.checkDefined(At(H.initializer,ue,Vt)):n.createVoidZero())}function Y(H){let st=vs(H,I_);return st?Hye(st,dC(g)):!0}function ot(H){Q||(Q=new Map);let st=Gt(H);Q.has(st)||Q.set(st,H)}function pe(H){if(Q){let st=Gt(H);return Q.get(st)===H}return!0}function Gt(H){return $.assertNode(H.name,ct),H.name.escapedText}function mr(H,st){let zt=n.createVariableDeclaration(n.getLocalName(st,!1,!0)),Er=Z.kind===308?0:1,jn=n.createVariableStatement(Bn(st.modifiers,It,bc),n.createVariableDeclarationList([zt],Er));return Yi(zt,st),SA(zt,void 0),uF(zt,void 0),Yi(jn,st),ot(st),pe(st)?(st.kind===267?Jc(jn.declarationList,st):Jc(jn,st),Y_(jn,st),CS(jn,2048),H.push(jn),!0):!1}function Ge(H){if(!Y(H))return n.createNotEmittedStatement(H);$.assertNode(H.name,ct,"A TypeScript namespace should have an Identifier name."),Nu();let st=[],zt=4,Er=mr(st,H);Er&&(T!==4||Z!==U)&&(zt|=1024);let jn=$a(H),So=bs(H),Di=bn(H)?n.getExternalModuleOrNamespaceExportName(G,H,!1,!0):n.getDeclarationName(H,!1,!0),On=n.createLogicalOr(Di,n.createAssignment(Di,n.createObjectLiteralExpression()));if(bn(H)){let va=n.getLocalName(H,!1,!0);On=n.createAssignment(va,On)}let ua=n.createExpressionStatement(n.createCallExpression(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,jn)],void 0,Mt(H,So)),void 0,[On]));return Yi(ua,H),Er&&(SA(ua,void 0),uF(ua,void 0)),qt(ua,H),CS(ua,zt),st.push(ua),st}function Mt(H,st){let zt=G,Er=J,jn=Q;G=st,J=H,Q=void 0;let So=[];c();let Di,On;if(H.body)if(H.body.kind===269)Oe(H.body,va=>En(So,Bn(va.statements,de,fa))),Di=H.body.statements,On=H.body;else{let va=Ge(H.body);va&&(Zn(va)?En(So,va):So.push(va));let Bl=Ir(H).body;Di=gA(Bl.statements,-1)}Px(So,_()),G=zt,J=Er,Q=jn;let ua=n.createBlock(qt(n.createNodeArray(So),Di),!0);return qt(ua,On),(!H.body||H.body.kind!==269)&&Ai(ua,Xc(ua)|3072),ua}function Ir(H){if(H.body.kind===268)return Ir(H.body)||H.body}function ii(H){if(!H.importClause)return H;if(H.importClause.isTypeOnly)return;let st=At(H.importClause,Rn,H1);return st?n.updateImportDeclaration(H,void 0,st,H.moduleSpecifier,H.attributes):void 0}function Rn(H){$.assert(H.phaseModifier!==156);let st=Hp(H)?H.name:void 0,zt=At(H.namedBindings,zn,_me);return st||zt?n.updateImportClause(H,H.phaseModifier,st,zt):void 0}function zn(H){if(H.kind===275)return Hp(H)?H:void 0;{let st=g.verbatimModuleSyntax,zt=Bn(H.elements,Rt,Xm);return st||Pt(zt)?n.updateNamedImports(H,zt):void 0}}function Rt(H){return!H.isTypeOnly&&Hp(H)?H:void 0}function rr(H){return g.verbatimModuleSyntax||y.isValueAliasDeclaration(H)?Dn(H,ue,t):void 0}function _r(H){if(H.isTypeOnly)return;if(!H.exportClause||Db(H.exportClause))return n.updateExportDeclaration(H,H.modifiers,H.isTypeOnly,H.exportClause,H.moduleSpecifier,H.attributes);let st=!!g.verbatimModuleSyntax,zt=At(H.exportClause,Er=>tn(Er,st),tme);return zt?n.updateExportDeclaration(H,void 0,H.isTypeOnly,zt,H.moduleSpecifier,H.attributes):void 0}function wr(H,st){let zt=Bn(H.elements,lr,Cm);return st||Pt(zt)?n.updateNamedExports(H,zt):void 0}function pn(H){return n.updateNamespaceExport(H,$.checkDefined(At(H.name,ue,ct)))}function tn(H,st){return Db(H)?pn(H):wr(H,st)}function lr(H){return!H.isTypeOnly&&(g.verbatimModuleSyntax||y.isValueAliasDeclaration(H))?H:void 0}function cn(H){return Hp(H)||!yd(U)&&y.isTopLevelValueImportEqualsWithEntityName(H)}function gn(H){if(H.isTypeOnly)return;if(pA(H))return Hp(H)?Dn(H,ue,t):void 0;if(!cn(H))return;let st=JH(n,H.moduleReference);return Ai(st,7168),Uo(H)||!bn(H)?Yi(qt(n.createVariableStatement(Bn(H.modifiers,It,bc),n.createVariableDeclarationList([Yi(n.createVariableDeclaration(H.name,void 0,void 0,st),H)])),H),H):Yi(Mp(H.name,st,H),H)}function bn(H){return J!==void 0&&ko(H,32)}function $r(H){return J===void 0&&ko(H,32)}function Uo(H){return $r(H)&&!ko(H,2048)}function Ys(H){return $r(H)&&ko(H,2048)}function ec(H){let st=n.createAssignment(n.getExternalModuleOrNamespaceExportName(G,H,!1,!0),n.getLocalName(H));Jc(st,y0(H.name?H.name.pos:H.pos,H.end));let zt=n.createExpressionStatement(st);return Jc(zt,y0(-1,H.end)),zt}function Ss(H,st){H.push(ec(st))}function Mp(H,st,zt){return qt(n.createExpressionStatement(n.createAssignment(n.getNamespaceMemberName(G,H,!1,!0),st)),zt)}function Cp(H,st,zt){return qt(n.createAssignment(uu(H),st),zt)}function uu(H){return n.getNamespaceMemberName(G,H,!1,!0)}function $a(H){let st=n.getGeneratedNameForNode(H);return Jc(st,H.name),st}function bs(H){return n.getGeneratedNameForNode(H)}function V_(){(re&8)===0&&(re|=8,t.enableSubstitution(80))}function Nu(){(re&2)===0&&(re|=2,t.enableSubstitution(80),t.enableSubstitution(305),t.enableEmitNotification(268))}function kc(H){return Ku(H).kind===268}function o_(H){return Ku(H).kind===267}function Gy(H,st,zt){let Er=ae,jn=U;Ta(st)&&(U=st),re&2&&kc(st)&&(ae|=2),re&8&&o_(st)&&(ae|=8),F(H,st,zt),ae=Er,U=jn}function _s(H,st){return st=M(H,st),H===1?sl(st):im(st)?sc(st):st}function sc(H){if(re&2){let st=H.name,zt=Ar(st);if(zt){if(H.objectAssignmentInitializer){let Er=n.createAssignment(zt,H.objectAssignmentInitializer);return qt(n.createPropertyAssignment(st,Er),H)}return qt(n.createPropertyAssignment(st,zt),H)}}return H}function sl(H){switch(H.kind){case 80:return Yc(H);case 212:return Ql(H);case 213:return Gp(H)}return H}function Yc(H){return Ar(H)||H}function Ar(H){if(re&ae&&!ap(H)&&!HT(H)){let st=y.getReferencedExportContainer(H,!1);if(st&&st.kind!==308&&(ae&2&&st.kind===268||ae&8&&st.kind===267))return qt(n.createPropertyAccessExpression(n.getGeneratedNameForNode(st),H),H)}}function Ql(H){return lf(H)}function Gp(H){return lf(H)}function N_(H){return H.replace(/\*\//g,"*_/")}function lf(H){let st=Yu(H);if(st!==void 0){x3e(H,st);let zt=typeof st=="string"?n.createStringLiteral(st):st<0?n.createPrefixUnaryExpression(41,n.createNumericLiteral(-st)):n.createNumericLiteral(st);if(!g.removeComments){let Er=Ku(H,wu);nz(zt,3,` ${N_(Sp(Er))} `)}return zt}return H}function Yu(H){if(!a1(g))return no(H)||mu(H)?y.getConstantValue(H):void 0}function Hp(H){return g.verbatimModuleSyntax||Ei(H)||y.isReferencedAliasDeclaration(H)}}function Q8e(t){let{factory:n,getEmitHelperFactory:a,hoistVariableDeclaration:c,endLexicalEnvironment:u,startLexicalEnvironment:_,resumeLexicalEnvironment:f,addBlockScopedVariable:y}=t,g=t.getEmitResolver(),k=t.getCompilerOptions(),T=$c(k),C=hH(k),O=!!k.experimentalDecorators,F=!C,M=C&&T<9,U=F||M,J=T<9,G=T<99?-1:C?0:3,Z=T<9,Q=Z&&T>=2,re=U||J||G===-1,ae=t.onSubstituteNode;t.onSubstituteNode=Gp;let _e=t.onEmitNode;t.onEmitNode=Ql;let me=!1,le=0,Oe,be,ue,De,Ce=new Map,Ae=new Set,Fe,Be,de=!1,ze=!1;return Cv(t,ut);function ut(H){if(H.isDeclarationFile||(De=void 0,me=!!(J1(H)&32),!re&&!me))return H;let st=Dn(H,ve,t);return Ux(st,t.readEmitHelpers()),st}function je(H){return H.kind===129?Ht()?void 0:H:Ci(H,bc)}function ve(H){if(!(H.transformFlags&16777216)&&!(H.transformFlags&134234112))return H;switch(H.kind){case 264:return xr(H);case 232:return Ye(H);case 176:case 173:return $.fail("Use `classElementVisitor` instead.");case 304:return We(H);case 244:return St(H);case 261:return Kt(H);case 170:return Sr(H);case 209:return nn(H);case 278:return Nn(H);case 81:return tt(H);case 212:return Ls(H);case 213:return yc(H);case 225:case 226:return Cn(H,!1);case 227:return Ct(H,!1);case 218:return ar(H,!1);case 214:return Ee(H);case 245:return Dt(H);case 216:return Bt(H);case 249:return Es(H);case 110:return Y(H);case 263:case 219:return sr(void 0,Le,H);case 177:case 175:case 178:case 179:return sr(H,Le,H);default:return Le(H)}}function Le(H){return Dn(H,ve,t)}function Ve(H){switch(H.kind){case 225:case 226:return Cn(H,!0);case 227:return Ct(H,!0);case 357:return Ot(H,!0);case 218:return ar(H,!0);default:return ve(H)}}function nt(H){switch(H.kind){case 299:return Dn(H,nt,t);case 234:return pr(H);default:return ve(H)}}function It(H){switch(H.kind){case 211:case 210:return Ar(H);default:return ve(H)}}function ke(H){switch(H.kind){case 177:return sr(H,Qn,H);case 178:case 179:case 175:return sr(H,is,H);case 173:return sr(H,Wr,H);case 176:return sr(H,Ne,H);case 168:return Dr(H);case 241:return H;default:return sp(H)?je(H):ve(H)}}function _t(H){return H.kind===168?Dr(H):ve(H)}function Se(H){switch(H.kind){case 173:return ft(H);case 178:case 179:return ke(H);default:$.assertMissingNode(H,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function tt(H){return!J||fa(H.parent)?H:Yi(n.createIdentifier(""),H)}function Qe(H){let st=bs(H.left);if(st){let zt=At(H.right,ve,Vt);return Yi(a().createClassPrivateFieldInHelper(st.brandCheckIdentifier,zt),H)}return Dn(H,ve,t)}function We(H){return Mg(H,et)&&(H=qg(t,H)),Dn(H,ve,t)}function St(H){let st=ue;ue=[];let zt=Dn(H,ve,t),Er=Pt(ue)?[zt,...ue]:zt;return ue=st,Er}function Kt(H){return Mg(H,et)&&(H=qg(t,H)),Dn(H,ve,t)}function Sr(H){return Mg(H,et)&&(H=qg(t,H)),Dn(H,ve,t)}function nn(H){return Mg(H,et)&&(H=qg(t,H)),Dn(H,ve,t)}function Nn(H){return Mg(H,et)&&(H=qg(t,H,!0,H.isExportEquals?"":"default")),Dn(H,ve,t)}function $t(H){return Pt(be)&&(mh(H)?(be.push(H.expression),H=n.updateParenthesizedExpression(H,n.inlineExpressions(be))):(be.push(H),H=n.inlineExpressions(be)),be=void 0),H}function Dr(H){let st=At(H.expression,ve,Vt);return n.updateComputedPropertyName(H,$t(st))}function Qn(H){return Fe?Gt(H,Fe):Le(H)}function Ko(H){return!!(J||fd(H)&&J1(H)&32)}function is(H){if($.assert(!By(H)),!Tm(H)||!Ko(H))return Dn(H,ke,t);let st=bs(H.name);if($.assert(st,"Undeclared private name for property declaration."),!st.isValid)return H;let zt=uo(H);zt&&bn().push(n.createAssignment(zt,n.createFunctionExpression(yr(H.modifiers,Er=>bc(Er)&&!mF(Er)&&!Ige(Er)),H.asteriskToken,zt,void 0,Rp(H.parameters,ve,t),void 0,Jy(H.body,ve,t))))}function sr(H,st,zt){if(H!==Be){let Er=Be;Be=H;let jn=st(zt);return Be=Er,jn}return st(zt)}function uo(H){$.assert(Aa(H.name));let st=bs(H.name);if($.assert(st,"Undeclared private name for property declaration."),st.kind==="m")return st.methodName;if(st.kind==="a"){if(Ax(H))return st.getterName;if(hS(H))return st.setterName}}function Wa(){let H=cn();return H.classThis??H.classConstructor??Fe?.name}function oo(H){let st=DS(H),zt=yE(H),Er=H.name,jn=Er,So=Er;if(dc(Er)&&!FS(Er.expression)){let ep=oie(Er);if(ep)jn=n.updateComputedPropertyName(Er,At(Er.expression,ve,Vt)),So=n.updateComputedPropertyName(Er,ep.left);else{let W_=n.createTempVariable(c);Jc(W_,Er.expression);let g_=At(Er.expression,ve,Vt),xu=n.createAssignment(W_,g_);Jc(xu,Er.expression),jn=n.updateComputedPropertyName(Er,xu),So=n.updateComputedPropertyName(Er,W_)}}let Di=Bn(H.modifiers,je,bc),On=nye(n,H,Di,H.initializer);Yi(On,H),Ai(On,3072),Jc(On,zt);let ua=oc(H)?Wa()??n.createThis():n.createThis(),va=bNe(n,H,Di,jn,ua);Yi(va,H),Y_(va,st),Jc(va,zt);let Bl=n.createModifiersFromModifierFlags(TS(Di)),xc=xNe(n,H,Bl,So,ua);return Yi(xc,H),Ai(xc,3072),Jc(xc,zt),Az([On,va,xc],Se,J_)}function Oi(H){if(Ko(H)){let st=bs(H.name);if($.assert(st,"Undeclared private name for property declaration."),!st.isValid)return H;if(st.isStatic&&!J){let zt=Ir(H,n.createThis());if(zt)return n.createClassStaticBlockDeclaration(n.createBlock([zt],!0))}return}return F&&!oc(H)&&De?.data&&De.data.facts&16?n.updatePropertyDeclaration(H,Bn(H.modifiers,ve,sp),H.name,void 0,void 0,void 0):(Mg(H,et)&&(H=qg(t,H)),n.updatePropertyDeclaration(H,Bn(H.modifiers,je,bc),At(H.name,_t,q_),void 0,void 0,At(H.initializer,ve,Vt)))}function $o(H){if(U&&!Mh(H)){let st=pn(H.name,!!H.initializer||C);if(st&&bn().push(...TNe(st)),oc(H)&&!J){let zt=Ir(H,n.createThis());if(zt){let Er=n.createClassStaticBlockDeclaration(n.createBlock([zt]));return Yi(Er,H),Y_(Er,H),Y_(zt,{pos:-1,end:-1}),SA(zt,void 0),uF(zt,void 0),Er}}return}return n.updatePropertyDeclaration(H,Bn(H.modifiers,je,bc),At(H.name,_t,q_),void 0,void 0,At(H.initializer,ve,Vt))}function ft(H){return $.assert(!By(H),"Decorators should already have been transformed and elided."),Tm(H)?Oi(H):$o(H)}function Ht(){return G===-1||G===3&&!!De?.data&&!!(De.data.facts&16)}function Wr(H){return Mh(H)&&(Ht()||fd(H)&&J1(H)&32)?oo(H):ft(H)}function ai(){return!!Be&&fd(Be)&&tC(Be)&&Mh(Ku(Be))}function vo(H){if(ai()){let st=Wp(H);st.kind===110&&Ae.add(st)}}function Eo(H,st){return st=At(st,ve,Vt),vo(st),ya(H,st)}function ya(H,st){switch(Y_(st,gA(st,-1)),H.kind){case"a":return a().createClassPrivateFieldGetHelper(st,H.brandCheckIdentifier,H.kind,H.getterName);case"m":return a().createClassPrivateFieldGetHelper(st,H.brandCheckIdentifier,H.kind,H.methodName);case"f":return a().createClassPrivateFieldGetHelper(st,H.brandCheckIdentifier,H.kind,H.isStatic?H.variableName:void 0);case"untransformed":return $.fail("Access helpers should not be created for untransformed private elements");default:$.assertNever(H,"Unknown private element type")}}function Ls(H){if(Aa(H.name)){let st=bs(H.name);if(st)return qt(Yi(Eo(st,H.expression),H),H)}if(Q&&Be&&_g(H)&&ct(H.name)&&Fz(Be)&&De?.data){let{classConstructor:st,superClassReference:zt,facts:Er}=De.data;if(Er&1)return wr(H);if(st&&zt){let jn=n.createReflectGetCall(zt,n.createStringLiteralFromNode(H.name),st);return Yi(jn,H.expression),qt(jn,H.expression),jn}}return Dn(H,ve,t)}function yc(H){if(Q&&Be&&_g(H)&&Fz(Be)&&De?.data){let{classConstructor:st,superClassReference:zt,facts:Er}=De.data;if(Er&1)return wr(H);if(st&&zt){let jn=n.createReflectGetCall(zt,At(H.argumentExpression,ve,Vt),st);return Yi(jn,H.expression),qt(jn,H.expression),jn}}return Dn(H,ve,t)}function Cn(H,st){if(H.operator===46||H.operator===47){let zt=bl(H.operand);if(FR(zt)){let Er;if(Er=bs(zt.name)){let jn=At(zt.expression,ve,Vt);vo(jn);let{readExpression:So,initializeExpression:Di}=ur(jn),On=Eo(Er,So),ua=TA(H)||st?void 0:n.createTempVariable(c);return On=Yne(n,H,On,c,ua),On=at(Er,Di||So,On,64),Yi(On,H),qt(On,H),ua&&(On=n.createComma(On,ua),qt(On,H)),On}}else if(Q&&Be&&_g(zt)&&Fz(Be)&&De?.data){let{classConstructor:Er,superClassReference:jn,facts:So}=De.data;if(So&1){let Di=wr(zt);return TA(H)?n.updatePrefixUnaryExpression(H,Di):n.updatePostfixUnaryExpression(H,Di)}if(Er&&jn){let Di,On;if(no(zt)?ct(zt.name)&&(On=Di=n.createStringLiteralFromNode(zt.name)):FS(zt.argumentExpression)?On=Di=zt.argumentExpression:(On=n.createTempVariable(c),Di=n.createAssignment(On,At(zt.argumentExpression,ve,Vt))),Di&&On){let ua=n.createReflectGetCall(jn,On,Er);qt(ua,zt);let va=st?void 0:n.createTempVariable(c);return ua=Yne(n,H,ua,c,va),ua=n.createReflectSetCall(jn,Di,ua,Er),Yi(ua,H),qt(ua,H),va&&(ua=n.createComma(ua,va),qt(ua,H)),ua}}}}return Dn(H,ve,t)}function Es(H){return n.updateForStatement(H,At(H.initializer,Ve,f0),At(H.condition,ve,Vt),At(H.incrementor,Ve,Vt),hh(H.statement,ve,t))}function Dt(H){return n.updateExpressionStatement(H,At(H.expression,Ve,Vt))}function ur(H){let st=fu(H)?H:n.cloneNode(H);if(H.kind===110&&Ae.has(H)&&Ae.add(st),FS(H))return{readExpression:st,initializeExpression:void 0};let zt=n.createTempVariable(c),Er=n.createAssignment(zt,st);return{readExpression:zt,initializeExpression:Er}}function Ee(H){var st;if(FR(H.expression)&&bs(H.expression.name)){let{thisArg:zt,target:Er}=n.createCallBinding(H.expression,c,T);return O4(H)?n.updateCallChain(H,n.createPropertyAccessChain(At(Er,ve,Vt),H.questionDotToken,"call"),void 0,void 0,[At(zt,ve,Vt),...Bn(H.arguments,ve,Vt)]):n.updateCallExpression(H,n.createPropertyAccessExpression(At(Er,ve,Vt),"call"),void 0,[At(zt,ve,Vt),...Bn(H.arguments,ve,Vt)])}if(Q&&Be&&_g(H.expression)&&Fz(Be)&&((st=De?.data)!=null&&st.classConstructor)){let zt=n.createFunctionCallCall(At(H.expression,ve,Vt),De.data.classConstructor,Bn(H.arguments,ve,Vt));return Yi(zt,H),qt(zt,H),zt}return Dn(H,ve,t)}function Bt(H){var st;if(FR(H.tag)&&bs(H.tag.name)){let{thisArg:zt,target:Er}=n.createCallBinding(H.tag,c,T);return n.updateTaggedTemplateExpression(H,n.createCallExpression(n.createPropertyAccessExpression(At(Er,ve,Vt),"bind"),void 0,[At(zt,ve,Vt)]),void 0,At(H.template,ve,FO))}if(Q&&Be&&_g(H.tag)&&Fz(Be)&&((st=De?.data)!=null&&st.classConstructor)){let zt=n.createFunctionBindCall(At(H.tag,ve,Vt),De.data.classConstructor,[]);return Yi(zt,H),qt(zt,H),n.updateTaggedTemplateExpression(H,zt,void 0,At(H.template,ve,FO))}return Dn(H,ve,t)}function ye(H){if(De&&Ce.set(Ku(H),De),J){if(Oz(H)){let Er=At(H.body.statements[0].expression,ve,Vt);return of(Er,!0)&&Er.left===Er.right?void 0:Er}if(FF(H))return At(H.body.statements[0].expression,ve,Vt);_();let st=sr(H,Er=>Bn(Er,ve,fa),H.body.statements);st=n.mergeLexicalEnvironment(st,u());let zt=n.createImmediatelyInvokedArrowFunction(st);return Yi(bl(zt.expression),H),CS(bl(zt.expression),4),Yi(zt,H),qt(zt,H),zt}}function et(H){if(w_(H)&&!H.name){let st=$ie(H);return Pt(st,FF)?!1:(J||!!J1(H))&&Pt(st,Er=>n_(Er)||Tm(Er)||U&&mK(Er))}return!1}function Ct(H,st){if(dE(H)){let zt=be;be=void 0,H=n.updateBinaryExpression(H,At(H.left,It,Vt),H.operatorToken,At(H.right,ve,Vt));let Er=Pt(be)?n.inlineExpressions(Bc([...be,H])):H;return be=zt,Er}if(of(H)){Mg(H,et)&&(H=qg(t,H),$.assertNode(H,of));let zt=Wp(H.left,9);if(FR(zt)){let Er=bs(zt.name);if(Er)return qt(Yi(at(Er,zt.expression,H.right,H.operatorToken.kind),H),H)}else if(Q&&Be&&_g(H.left)&&Fz(Be)&&De?.data){let{classConstructor:Er,superClassReference:jn,facts:So}=De.data;if(So&1)return n.updateBinaryExpression(H,wr(H.left),H.operatorToken,At(H.right,ve,Vt));if(Er&&jn){let Di=mu(H.left)?At(H.left.argumentExpression,ve,Vt):ct(H.left.name)?n.createStringLiteralFromNode(H.left.name):void 0;if(Di){let On=At(H.right,ve,Vt);if(Iz(H.operatorToken.kind)){let va=Di;FS(Di)||(va=n.createTempVariable(c),Di=n.createAssignment(va,Di));let Bl=n.createReflectGetCall(jn,va,Er);Yi(Bl,H.left),qt(Bl,H.left),On=n.createBinaryExpression(Bl,Pz(H.operatorToken.kind),On),qt(On,H)}let ua=st?void 0:n.createTempVariable(c);return ua&&(On=n.createAssignment(ua,On),qt(ua,H)),On=n.createReflectSetCall(jn,Di,On,Er),Yi(On,H),qt(On,H),ua&&(On=n.createComma(On,ua),qt(On,H)),On}}}}return msr(H)?Qe(H):Dn(H,ve,t)}function Ot(H,st){let zt=st?fK(H.elements,Ve):fK(H.elements,ve,Ve);return n.updateCommaListExpression(H,zt)}function ar(H,st){let zt=st?Ve:ve,Er=At(H.expression,zt,Vt);return n.updateParenthesizedExpression(H,Er)}function at(H,st,zt,Er){if(st=At(st,ve,Vt),zt=At(zt,ve,Vt),vo(st),Iz(Er)){let{readExpression:jn,initializeExpression:So}=ur(st);st=So||jn,zt=n.createBinaryExpression(ya(H,jn),Pz(Er),zt)}switch(Y_(st,gA(st,-1)),H.kind){case"a":return a().createClassPrivateFieldSetHelper(st,H.brandCheckIdentifier,zt,H.kind,H.setterName);case"m":return a().createClassPrivateFieldSetHelper(st,H.brandCheckIdentifier,zt,H.kind,void 0);case"f":return a().createClassPrivateFieldSetHelper(st,H.brandCheckIdentifier,zt,H.kind,H.isStatic?H.variableName:void 0);case"untransformed":return $.fail("Access helpers should not be created for untransformed private elements");default:$.assertNever(H,"Unknown private element type")}}function Zt(H){return yr(H.members,j8e)}function Qt(H){var st;let zt=0,Er=Ku(H);Co(Er)&&pE(O,Er)&&(zt|=1),J&&(s0e(H)||qie(H))&&(zt|=2);let jn=!1,So=!1,Di=!1,On=!1;for(let va of H.members)oc(va)?((va.name&&(Aa(va.name)||Mh(va))&&J||Mh(va)&&G===-1&&!H.name&&!((st=H.emitNode)!=null&&st.classThis))&&(zt|=2),(ps(va)||n_(va))&&(Z&&va.transformFlags&16384&&(zt|=8,zt&1||(zt|=2)),Q&&va.transformFlags&134217728&&(zt&1||(zt|=6)))):pP(Ku(va))||(Mh(va)?(On=!0,Di||(Di=Tm(va))):Tm(va)?(Di=!0,g.hasNodeCheckFlag(va,262144)&&(zt|=2)):ps(va)&&(jn=!0,So||(So=!!va.initializer)));return(M&&jn||F&&So||J&&Di||J&&On&&G===-1)&&(zt|=16),zt}function pr(H){var st;if((((st=De?.data)==null?void 0:st.facts)||0)&4){let Er=n.createTempVariable(c,!0);return cn().superClassReference=Er,n.updateExpressionWithTypeArguments(H,n.createAssignment(Er,At(H.expression,ve,Vt)),void 0)}return Dn(H,ve,t)}function Et(H,st){var zt;let Er=Fe,jn=be,So=De;Fe=H,be=void 0,tn();let Di=J1(H)&32;if(J||Di){let va=cs(H);if(va&&ct(va))gn().data.className=va;else if((zt=H.emitNode)!=null&&zt.assignedName&&Ic(H.emitNode.assignedName)){if(H.emitNode.assignedName.textSourceNode&&ct(H.emitNode.assignedName.textSourceNode))gn().data.className=H.emitNode.assignedName.textSourceNode;else if(Jd(H.emitNode.assignedName.text,T)){let Bl=n.createIdentifier(H.emitNode.assignedName.text);gn().data.className=Bl}}}if(J){let va=Zt(H);Pt(va)&&(gn().data.weakSetName=uu("instances",va[0].name))}let On=Qt(H);On&&(cn().facts=On),On&8&&rr();let ua=st(H,On);return lr(),$.assert(De===So),Fe=Er,be=jn,ua}function xr(H){return Et(H,gi)}function gi(H,st){var zt,Er;let jn;if(st&2)if(J&&((zt=H.emitNode)!=null&&zt.classThis))cn().classConstructor=H.emitNode.classThis,jn=n.createAssignment(H.emitNode.classThis,n.getInternalName(H));else{let xu=n.createTempVariable(c,!0);cn().classConstructor=n.cloneNode(xu),jn=n.createAssignment(xu,n.getInternalName(H))}(Er=H.emitNode)!=null&&Er.classThis&&(cn().classThis=H.emitNode.classThis);let So=g.hasNodeCheckFlag(H,262144),Di=ko(H,32),On=ko(H,2048),ua=Bn(H.modifiers,je,bc),va=Bn(H.heritageClauses,nt,zg),{members:Bl,prologue:xc}=ot(H),ep=[];if(jn&&bn().unshift(jn),Pt(be)&&ep.push(n.createExpressionStatement(n.inlineExpressions(be))),F||J||J1(H)&32){let xu=$ie(H);Pt(xu)&&Mt(ep,xu,n.getInternalName(H))}ep.length>0&&Di&&On&&(ua=Bn(ua,xu=>KH(xu)?void 0:xu,bc),ep.push(n.createExportAssignment(void 0,!1,n.getLocalName(H,!1,!0))));let W_=cn().classConstructor;So&&W_&&(Rt(),Oe[gh(H)]=W_);let g_=n.updateClassDeclaration(H,ua,H.name,void 0,va,Bl);return ep.unshift(g_),xc&&ep.unshift(n.createExpressionStatement(xc)),ep}function Ye(H){return Et(H,er)}function er(H,st){var zt,Er,jn;let So=!!(st&1),Di=$ie(H),On=g.hasNodeCheckFlag(H,262144),ua=g.hasNodeCheckFlag(H,32768),va;function Bl(){var Wf;if(J&&((Wf=H.emitNode)!=null&&Wf.classThis))return cn().classConstructor=H.emitNode.classThis;let yy=n.createTempVariable(ua?y:c,!0);return cn().classConstructor=n.cloneNode(yy),yy}(zt=H.emitNode)!=null&&zt.classThis&&(cn().classThis=H.emitNode.classThis),st&2&&(va??(va=Bl()));let xc=Bn(H.modifiers,je,bc),ep=Bn(H.heritageClauses,nt,zg),{members:W_,prologue:g_}=ot(H),xu=n.updateClassExpression(H,xc,H.name,void 0,ep,W_),a_=[];if(g_&&a_.push(g_),(J||J1(H)&32)&&Pt(Di,Wf=>n_(Wf)||Tm(Wf)||U&&mK(Wf))||Pt(be))if(So)$.assertIsDefined(ue,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),Pt(be)&&En(ue,Cr(be,n.createExpressionStatement)),Pt(Di)&&Mt(ue,Di,((Er=H.emitNode)==null?void 0:Er.classThis)??n.getInternalName(H)),va?a_.push(n.createAssignment(va,xu)):J&&((jn=H.emitNode)!=null&&jn.classThis)?a_.push(n.createAssignment(H.emitNode.classThis,xu)):a_.push(xu);else{if(va??(va=Bl()),On){Rt();let Wf=n.cloneNode(va);Wf.emitNode.autoGenerate.flags&=-9,Oe[gh(H)]=Wf}a_.push(n.createAssignment(va,xu)),En(a_,be),En(a_,ii(Di,va)),a_.push(n.cloneNode(va))}else a_.push(xu);return a_.length>1&&(CS(xu,131072),a_.forEach(Dm)),n.inlineExpressions(a_)}function Ne(H){if(!J)return Dn(H,ve,t)}function Y(H){if(Z&&Be&&n_(Be)&&De?.data){let{classThis:st,classConstructor:zt}=De.data;return st??zt??H}return H}function ot(H){let st=!!(J1(H)&32);if(J||me){for(let Di of H.members)if(Tm(Di))if(Ko(Di))Cp(Di,Di.name,$r);else{let On=gn();y3(On,Di.name,{kind:"untransformed"})}if(J&&Pt(Zt(H))&&pe(),Ht()){for(let Di of H.members)if(Mh(Di)){let On=n.getGeneratedPrivateNameForNode(Di.name,void 0,"_accessor_storage");if(J||st&&fd(Di))Cp(Di,On,Uo);else{let ua=gn();y3(ua,On,{kind:"untransformed"})}}}}let zt=Bn(H.members,ke,J_),Er;Pt(zt,kp)||(Er=Gt(void 0,H));let jn,So;if(!J&&Pt(be)){let Di=n.createExpressionStatement(n.inlineExpressions(be));if(Di.transformFlags&134234112){let ua=n.createTempVariable(c),va=n.createArrowFunction(void 0,void 0,[],void 0,void 0,n.createBlock([Di]));jn=n.createAssignment(ua,va),Di=n.createExpressionStatement(n.createCallExpression(ua,void 0,[]))}let On=n.createBlock([Di]);So=n.createClassStaticBlockDeclaration(On),be=void 0}if(Er||So){let Di,On=wt(zt,Oz),ua=wt(zt,FF);Di=jt(Di,On),Di=jt(Di,ua),Di=jt(Di,Er),Di=jt(Di,So);let va=On||ua?yr(zt,Bl=>Bl!==On&&Bl!==ua):zt;Di=En(Di,va),zt=qt(n.createNodeArray(Di),H.members)}return{members:zt,prologue:jn}}function pe(){let{weakSetName:H}=gn().data;$.assert(H,"weakSetName should be set in private identifier environment"),bn().push(n.createAssignment(H,n.createNewExpression(n.createIdentifier("WeakSet"),void 0,[])))}function Gt(H,st){if(H=At(H,ve,kp),!De?.data||!(De.data.facts&16))return H;let zt=vv(st),Er=!!(zt&&Wp(zt.expression).kind!==106),jn=Rp(H?H.parameters:void 0,ve,t),So=Ge(st,H,Er);return So?H?($.assert(jn),n.updateConstructorDeclaration(H,void 0,jn,So)):Dm(Yi(qt(n.createConstructorDeclaration(void 0,jn??[],So),H||st),H)):H}function mr(H,st,zt,Er,jn,So,Di){let On=Er[jn],ua=st[On];if(En(H,Bn(st,ve,fa,zt,On-zt)),zt=On+1,c3(ua)){let va=[];mr(va,ua.tryBlock.statements,0,Er,jn+1,So,Di);let Bl=n.createNodeArray(va);qt(Bl,ua.tryBlock.statements),H.push(n.updateTryStatement(ua,n.updateBlock(ua.tryBlock,va),At(ua.catchClause,ve,TP),At(ua.finallyBlock,ve,Vs)))}else{for(En(H,Bn(st,ve,fa,On,1));zt!!g_.initializer||Aa(g_.name)||xS(g_)));let Di=Zt(H),On=Pt(So)||Pt(Di);if(!st&&!On)return Jy(void 0,ve,t);f();let ua=!st&&zt,va=0,Bl=[],xc=[],ep=n.createThis();if(_r(xc,Di,ep),st){let g_=yr(jn,a_=>ne(Ku(a_),st)),xu=yr(So,a_=>!ne(Ku(a_),st));Mt(xc,g_,ep),Mt(xc,xu,ep)}else Mt(xc,So,ep);if(st?.body){va=n.copyPrologue(st.body.statements,Bl,!1,ve);let g_=Bie(st.body.statements,va);if(g_.length)mr(Bl,st.body.statements,va,g_,0,xc,st);else{for(;va=Bl.length?st.body.multiLine??Bl.length>0:Bl.length>0;return qt(n.createBlock(qt(n.createNodeArray(Bl),((Er=st?.body)==null?void 0:Er.statements)??H.members),W_),st?.body)}function Mt(H,st,zt){for(let Er of st){if(oc(Er)&&!J)continue;let jn=Ir(Er,zt);jn&&H.push(jn)}}function Ir(H,st){let zt=n_(H)?sr(H,ye,H):Rn(H,st);if(!zt)return;let Er=n.createExpressionStatement(zt);Yi(Er,H),CS(Er,Xc(H)&3072),Y_(Er,H);let jn=Ku(H);return wa(jn)?(Jc(Er,jn),NH(Er)):Jc(Er,ES(H)),SA(zt,void 0),uF(zt,void 0),xS(jn)&&CS(Er,3072),Er}function ii(H,st){let zt=[];for(let Er of H){let jn=n_(Er)?sr(Er,ye,Er):sr(Er,()=>Rn(Er,st),void 0);jn&&(Dm(jn),Yi(jn,Er),CS(jn,Xc(Er)&3072),Jc(jn,ES(Er)),Y_(jn,Er),zt.push(jn))}return zt}function Rn(H,st){var zt;let Er=Be,jn=zn(H,st);return jn&&fd(H)&&((zt=De?.data)!=null&&zt.facts)&&(Yi(jn,H),CS(jn,4),Jc(jn,yE(H.name)),Ce.set(Ku(H),De)),Be=Er,jn}function zn(H,st){let zt=!C;Mg(H,et)&&(H=qg(t,H));let Er=xS(H)?n.getGeneratedPrivateNameForNode(H.name):dc(H.name)&&!FS(H.name.expression)?n.updateComputedPropertyName(H.name,n.getGeneratedNameForNode(H.name)):H.name;if(fd(H)&&(Be=H),Aa(Er)&&Ko(H)){let Di=bs(Er);if(Di)return Di.kind==="f"?Di.isStatic?psr(n,Di.variableName,At(H.initializer,ve,Vt)):_sr(n,st,At(H.initializer,ve,Vt),Di.brandCheckIdentifier):void 0;$.fail("Undeclared private name for property declaration.")}if((Aa(Er)||fd(H))&&!H.initializer)return;let jn=Ku(H);if(ko(jn,64))return;let So=At(H.initializer,ve,Vt);if(ne(jn,jn.parent)&&ct(Er)){let Di=n.cloneNode(Er);So?(mh(So)&&VH(So.expression)&&iz(So.expression.left,"___runInitializers")&&SF(So.expression.right)&&qh(So.expression.right.expression)&&(So=So.expression.left),So=n.inlineExpressions([So,Di])):So=Di,Ai(Er,3168),Jc(Di,jn.name),Ai(Di,3072)}else So??(So=n.createVoidZero());if(zt||Aa(Er)){let Di=d3(n,st,Er,Er);return CS(Di,1024),n.createAssignment(Di,So)}else{let Di=dc(Er)?Er.expression:ct(Er)?n.createStringLiteral(oa(Er.escapedText)):Er,On=n.createPropertyDescriptor({value:So,configurable:!0,writable:!0,enumerable:!0});return n.createObjectDefinePropertyCall(st,Di,On)}}function Rt(){(le&1)===0&&(le|=1,t.enableSubstitution(80),Oe=[])}function rr(){(le&2)===0&&(le|=2,t.enableSubstitution(110),t.enableEmitNotification(263),t.enableEmitNotification(219),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(179),t.enableEmitNotification(175),t.enableEmitNotification(173),t.enableEmitNotification(168))}function _r(H,st,zt){if(!J||!Pt(st))return;let{weakSetName:Er}=gn().data;$.assert(Er,"weakSetName should be set in private identifier environment"),H.push(n.createExpressionStatement(dsr(n,zt,Er)))}function wr(H){return no(H)?n.updatePropertyAccessExpression(H,n.createVoidZero(),H.name):n.updateElementAccessExpression(H,n.createVoidZero(),At(H.argumentExpression,ve,Vt))}function pn(H,st){if(dc(H)){let zt=oie(H),Er=At(H.expression,ve,Vt),jn=q1(Er),So=FS(jn);if(!(!!zt||of(jn)&&ap(jn.left))&&!So&&st){let On=n.getGeneratedNameForNode(H);return g.hasNodeCheckFlag(H,32768)?y(On):c(On),n.createAssignment(On,Er)}return So||ct(jn)?void 0:Er}}function tn(){De={previous:De,data:void 0}}function lr(){De=De?.previous}function cn(){return $.assert(De),De.data??(De.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function gn(){return $.assert(De),De.privateEnv??(De.privateEnv=$8e({className:void 0,weakSetName:void 0}))}function bn(){return be??(be=[])}function $r(H,st,zt,Er,jn,So,Di){Mh(H)?Mp(H,st,zt,Er,jn,So,Di):ps(H)?Uo(H,st,zt,Er,jn,So,Di):Ep(H)?Ys(H,st,zt,Er,jn,So,Di):T0(H)?ec(H,st,zt,Er,jn,So,Di):mg(H)&&Ss(H,st,zt,Er,jn,So,Di)}function Uo(H,st,zt,Er,jn,So,Di){if(jn){let On=$.checkDefined(zt.classThis??zt.classConstructor,"classConstructor should be set in private identifier environment"),ua=$a(st);y3(Er,st,{kind:"f",isStatic:!0,brandCheckIdentifier:On,variableName:ua,isValid:So})}else{let On=$a(st);y3(Er,st,{kind:"f",isStatic:!1,brandCheckIdentifier:On,isValid:So}),bn().push(n.createAssignment(On,n.createNewExpression(n.createIdentifier("WeakMap"),void 0,[])))}}function Ys(H,st,zt,Er,jn,So,Di){let On=$a(st),ua=jn?$.checkDefined(zt.classThis??zt.classConstructor,"classConstructor should be set in private identifier environment"):$.checkDefined(Er.data.weakSetName,"weakSetName should be set in private identifier environment");y3(Er,st,{kind:"m",methodName:On,brandCheckIdentifier:ua,isStatic:jn,isValid:So})}function ec(H,st,zt,Er,jn,So,Di){let On=$a(st,"_get"),ua=jn?$.checkDefined(zt.classThis??zt.classConstructor,"classConstructor should be set in private identifier environment"):$.checkDefined(Er.data.weakSetName,"weakSetName should be set in private identifier environment");Di?.kind==="a"&&Di.isStatic===jn&&!Di.getterName?Di.getterName=On:y3(Er,st,{kind:"a",getterName:On,setterName:void 0,brandCheckIdentifier:ua,isStatic:jn,isValid:So})}function Ss(H,st,zt,Er,jn,So,Di){let On=$a(st,"_set"),ua=jn?$.checkDefined(zt.classThis??zt.classConstructor,"classConstructor should be set in private identifier environment"):$.checkDefined(Er.data.weakSetName,"weakSetName should be set in private identifier environment");Di?.kind==="a"&&Di.isStatic===jn&&!Di.setterName?Di.setterName=On:y3(Er,st,{kind:"a",getterName:void 0,setterName:On,brandCheckIdentifier:ua,isStatic:jn,isValid:So})}function Mp(H,st,zt,Er,jn,So,Di){let On=$a(st,"_get"),ua=$a(st,"_set"),va=jn?$.checkDefined(zt.classThis??zt.classConstructor,"classConstructor should be set in private identifier environment"):$.checkDefined(Er.data.weakSetName,"weakSetName should be set in private identifier environment");y3(Er,st,{kind:"a",getterName:On,setterName:ua,brandCheckIdentifier:va,isStatic:jn,isValid:So})}function Cp(H,st,zt){let Er=cn(),jn=gn(),So=a0e(jn,st),Di=fd(H),On=!fsr(st)&&So===void 0;zt(H,st,Er,jn,Di,On,So)}function uu(H,st,zt){let{className:Er}=gn().data,jn=Er?{prefix:"_",node:Er,suffix:"_"}:"_",So=typeof H=="object"?n.getGeneratedNameForNode(H,24,jn,zt):typeof H=="string"?n.createUniqueName(H,16,jn,zt):n.createTempVariable(void 0,!0,jn,zt);return g.hasNodeCheckFlag(st,32768)?y(So):c(So),So}function $a(H,st){let zt=pU(H);return uu(zt?.substring(1)??H,H,st)}function bs(H){let st=U8e(De,H);return st?.kind==="untransformed"?void 0:st}function V_(H){let st=n.getGeneratedNameForNode(H),zt=bs(H.name);if(!zt)return Dn(H,ve,t);let Er=H.expression;return(PG(H)||_g(H)||!DP(H.expression))&&(Er=n.createTempVariable(c,!0),bn().push(n.createBinaryExpression(Er,64,At(H.expression,ve,Vt)))),n.createAssignmentTargetWrapper(st,at(zt,Er,st,64))}function Nu(H){if(Lc(H)||qf(H))return Ar(H);if(FR(H))return V_(H);if(Q&&Be&&_g(H)&&Fz(Be)&&De?.data){let{classConstructor:st,superClassReference:zt,facts:Er}=De.data;if(Er&1)return wr(H);if(st&&zt){let jn=mu(H)?At(H.argumentExpression,ve,Vt):ct(H.name)?n.createStringLiteralFromNode(H.name):void 0;if(jn){let So=n.createTempVariable(void 0);return n.createAssignmentTargetWrapper(So,n.createReflectSetCall(zt,jn,So,st))}}}return Dn(H,ve,t)}function kc(H){if(Mg(H,et)&&(H=qg(t,H)),of(H,!0)){let st=Nu(H.left),zt=At(H.right,ve,Vt);return n.updateBinaryExpression(H,st,H.operatorToken,zt)}return Nu(H)}function o_(H){if(jh(H.expression)){let st=Nu(H.expression);return n.updateSpreadElement(H,st)}return Dn(H,ve,t)}function Gy(H){if(pG(H)){if(E0(H))return o_(H);if(!Id(H))return kc(H)}return Dn(H,ve,t)}function _s(H){let st=At(H.name,ve,q_);if(of(H.initializer,!0)){let zt=kc(H.initializer);return n.updatePropertyAssignment(H,st,zt)}if(jh(H.initializer)){let zt=Nu(H.initializer);return n.updatePropertyAssignment(H,st,zt)}return Dn(H,ve,t)}function sc(H){return Mg(H,et)&&(H=qg(t,H)),Dn(H,ve,t)}function sl(H){if(jh(H.expression)){let st=Nu(H.expression);return n.updateSpreadAssignment(H,st)}return Dn(H,ve,t)}function Yc(H){return $.assertNode(H,uG),qx(H)?sl(H):im(H)?sc(H):td(H)?_s(H):Dn(H,ve,t)}function Ar(H){return qf(H)?n.updateArrayLiteralExpression(H,Bn(H.elements,Gy,Vt)):n.updateObjectLiteralExpression(H,Bn(H.properties,Yc,MT))}function Ql(H,st,zt){let Er=Ku(st),jn=Ce.get(Er);if(jn){let So=De,Di=ze;De=jn,ze=de,de=!n_(Er)||!(J1(Er)&32),_e(H,st,zt),de=ze,ze=Di,De=So;return}switch(st.kind){case 219:if(Iu(Er)||Xc(st)&524288)break;case 263:case 177:case 178:case 179:case 175:case 173:{let So=De,Di=ze;De=void 0,ze=de,de=!1,_e(H,st,zt),de=ze,ze=Di,De=So;return}case 168:{let So=De,Di=de;De=De?.previous,de=ze,_e(H,st,zt),de=Di,De=So;return}}_e(H,st,zt)}function Gp(H,st){return st=ae(H,st),H===1?N_(st):st}function N_(H){switch(H.kind){case 80:return Yu(H);case 110:return lf(H)}return H}function lf(H){if(le&2&&De?.data&&!Ae.has(H)){let{facts:st,classConstructor:zt,classThis:Er}=De.data,jn=de?Er??zt:zt;if(jn)return qt(Yi(n.cloneNode(jn),H),H);if(st&1&&O)return n.createParenthesizedExpression(n.createVoidZero())}return H}function Yu(H){return Hp(H)||H}function Hp(H){if(le&1&&g.hasNodeCheckFlag(H,536870912)){let st=g.getReferencedValueDeclaration(H);if(st){let zt=Oe[st.id];if(zt){let Er=n.cloneNode(zt);return Jc(Er,H),Y_(Er,H),Er}}}}}function psr(t,n,a){return t.createAssignment(n,t.createObjectLiteralExpression([t.createPropertyAssignment("value",a||t.createVoidZero())]))}function _sr(t,n,a,c){return t.createCallExpression(t.createPropertyAccessExpression(c,"set"),void 0,[n,a||t.createVoidZero()])}function dsr(t,n,a){return t.createCallExpression(t.createPropertyAccessExpression(a,"add"),void 0,[n])}function fsr(t){return!R4(t)&&t.escapedText==="#constructor"}function msr(t){return Aa(t.left)&&t.operatorToken.kind===103}function hsr(t){return ps(t)&&fd(t)}function Fz(t){return n_(t)||hsr(t)}function Z8e(t){let{factory:n,hoistVariableDeclaration:a}=t,c=t.getEmitResolver(),u=t.getCompilerOptions(),_=$c(u),f=rm(u,"strictNullChecks"),y,g;return{serializeTypeNode:(be,ue)=>k(be,U,ue),serializeTypeOfNode:(be,ue,De)=>k(be,C,ue,De),serializeParameterTypesOfNode:(be,ue,De)=>k(be,O,ue,De),serializeReturnTypeOfNode:(be,ue)=>k(be,M,ue)};function k(be,ue,De,Ce){let Ae=y,Fe=g;y=be.currentLexicalScope,g=be.currentNameScope;let Be=Ce===void 0?ue(De):ue(De,Ce);return y=Ae,g=Fe,Be}function T(be,ue){let De=uP(ue.members,be);return De.setAccessor&&X6e(De.setAccessor)||De.getAccessor&&jg(De.getAccessor)}function C(be,ue){switch(be.kind){case 173:case 170:return U(be.type);case 179:case 178:return U(T(be,ue));case 264:case 232:case 175:return n.createIdentifier("Function");default:return n.createVoidZero()}}function O(be,ue){let De=Co(be)?Rx(be):Rs(be)&&t1(be.body)?be:void 0,Ce=[];if(De){let Ae=F(De,ue),Fe=Ae.length;for(let Be=0;BeAe.parent&&yP(Ae.parent)&&(Ae.parent.trueType===Ae||Ae.parent.falseType===Ae)))return n.createIdentifier("Object");let De=ae(be.typeName),Ce=n.createTempVariable(a);return n.createConditionalExpression(n.createTypeCheck(n.createAssignment(Ce,De),"function"),void 0,Ce,void 0,n.createIdentifier("Object"));case 1:return _e(be.typeName);case 2:return n.createVoidZero();case 4:return Oe("BigInt",7);case 6:return n.createIdentifier("Boolean");case 3:return n.createIdentifier("Number");case 5:return n.createIdentifier("String");case 7:return n.createIdentifier("Array");case 8:return Oe("Symbol",2);case 10:return n.createIdentifier("Function");case 9:return n.createIdentifier("Promise");case 11:return n.createIdentifier("Object");default:return $.assertNever(ue)}}function re(be,ue){return n.createLogicalAnd(n.createStrictInequality(n.createTypeOfExpression(be),n.createStringLiteral("undefined")),ue)}function ae(be){if(be.kind===80){let Ce=_e(be);return re(Ce,Ce)}if(be.left.kind===80)return re(_e(be.left),_e(be));let ue=ae(be.left),De=n.createTempVariable(a);return n.createLogicalAnd(n.createLogicalAnd(ue.left,n.createStrictInequality(n.createAssignment(De,ue.right),n.createVoidZero())),n.createPropertyAccessExpression(De,be.right))}function _e(be){switch(be.kind){case 80:let ue=xl(qt(PA.cloneNode(be),be),be.parent);return ue.original=void 0,xl(ue,vs(y)),ue;case 167:return me(be)}}function me(be){return n.createPropertyAccessExpression(_e(be.left),be.right)}function le(be){return n.createConditionalExpression(n.createTypeCheck(n.createIdentifier(be),"function"),void 0,n.createIdentifier(be),void 0,n.createIdentifier("Object"))}function Oe(be,ue){return _KH(Ht)||hd(Ht)?void 0:Ht,sp),Nn=ES(We),$t=nt(We),Dr=f<2?n.getInternalName(We,!1,!0):n.getLocalName(We,!1,!0),Qn=Bn(We.heritageClauses,C,zg),Ko=Bn(We.members,C,J_),is=[];({members:Ko,decorationStatements:is}=J(We,Ko));let sr=f>=9&&!!$t&&Pt(Ko,Ht=>ps(Ht)&&ko(Ht,256)||n_(Ht));sr&&(Ko=qt(n.createNodeArray([n.createClassStaticBlockDeclaration(n.createBlock([n.createExpressionStatement(n.createAssignment($t,n.createThis()))])),...Ko]),Ko));let uo=n.createClassExpression(nn,St&&ap(St)?void 0:St,void 0,Qn,Ko);Yi(uo,We),qt(uo,Nn);let Wa=$t&&!sr?n.createAssignment($t,uo):uo,oo=n.createVariableDeclaration(Dr,void 0,void 0,Wa);Yi(oo,We);let Oi=n.createVariableDeclarationList([oo],1),$o=n.createVariableStatement(void 0,Oi);Yi($o,We),qt($o,Nn),Y_($o,We);let ft=[$o];if(En(ft,is),ze(ft,We),Kt)if(Sr){let Ht=n.createExportDefault(Dr);ft.push(Ht)}else{let Ht=n.createExternalModuleExport(n.getDeclarationName(We));ft.push(Ht)}return ft}function Q(We){return n.updateClassExpression(We,Bn(We.modifiers,T,bc),We.name,void 0,Bn(We.heritageClauses,C,zg),Bn(We.members,C,J_))}function re(We){return n.updateConstructorDeclaration(We,Bn(We.modifiers,T,bc),Bn(We.parameters,C,wa),At(We.body,C,Vs))}function ae(We,St){return We!==St&&(Y_(We,St),Jc(We,ES(St))),We}function _e(We){return ae(n.updateMethodDeclaration(We,Bn(We.modifiers,T,bc),We.asteriskToken,$.checkDefined(At(We.name,C,q_)),void 0,void 0,Bn(We.parameters,C,wa),void 0,At(We.body,C,Vs)),We)}function me(We){return ae(n.updateGetAccessorDeclaration(We,Bn(We.modifiers,T,bc),$.checkDefined(At(We.name,C,q_)),Bn(We.parameters,C,wa),void 0,At(We.body,C,Vs)),We)}function le(We){return ae(n.updateSetAccessorDeclaration(We,Bn(We.modifiers,T,bc),$.checkDefined(At(We.name,C,q_)),Bn(We.parameters,C,wa),At(We.body,C,Vs)),We)}function Oe(We){if(!(We.flags&33554432||ko(We,128)))return ae(n.updatePropertyDeclaration(We,Bn(We.modifiers,T,bc),$.checkDefined(At(We.name,C,q_)),void 0,void 0,At(We.initializer,C,Vt)),We)}function be(We){let St=n.updateParameterDeclaration(We,SNe(n,We.modifiers),We.dotDotDotToken,$.checkDefined(At(We.name,C,L4)),void 0,void 0,At(We.initializer,C,Vt));return St!==We&&(Y_(St,We),qt(St,ES(We)),Jc(St,ES(We)),Ai(St.name,64)),St}function ue(We){return iz(We.expression,"___metadata")}function De(We){if(!We)return;let{false:St,true:Kt}=Du(We.decorators,ue),Sr=[];return En(Sr,Cr(St,je)),En(Sr,an(We.parameters,ve)),En(Sr,Cr(Kt,je)),Sr}function Ce(We,St,Kt){En(We,Cr(Be(St,Kt),Sr=>n.createExpressionStatement(Sr)))}function Ae(We,St,Kt){return FG(!0,We,Kt)&&St===oc(We)}function Fe(We,St){return yr(We.members,Kt=>Ae(Kt,St,We))}function Be(We,St){let Kt=Fe(We,St),Sr;for(let nn of Kt)Sr=jt(Sr,de(We,nn));return Sr}function de(We,St){let Kt=Uie(St,We,!0),Sr=De(Kt);if(!Sr)return;let nn=ke(We,St),Nn=Le(St,!ko(St,128)),$t=ps(St)&&!xS(St)?n.createVoidZero():n.createNull(),Dr=a().createDecorateHelper(Sr,nn,Nn,$t);return Ai(Dr,3072),Jc(Dr,ES(St)),Dr}function ze(We,St){let Kt=ut(St);Kt&&We.push(Yi(n.createExpressionStatement(Kt),St))}function ut(We){let St=o0e(We,!0),Kt=De(St);if(!Kt)return;let Sr=g&&g[gh(We)],nn=f<2?n.getInternalName(We,!1,!0):n.getDeclarationName(We,!1,!0),Nn=a().createDecorateHelper(Kt,nn),$t=n.createAssignment(nn,Sr?n.createAssignment(Sr,Nn):Nn);return Ai($t,3072),Jc($t,ES(We)),$t}function je(We){return $.checkDefined(At(We.expression,C,Vt))}function ve(We,St){let Kt;if(We){Kt=[];for(let Sr of We){let nn=a().createParamHelper(je(Sr),St);qt(nn,Sr.expression),Ai(nn,3072),Kt.push(nn)}}return Kt}function Le(We,St){let Kt=We.name;return Aa(Kt)?n.createIdentifier(""):dc(Kt)?St&&!FS(Kt.expression)?n.getGeneratedNameForNode(Kt):Kt.expression:ct(Kt)?n.createStringLiteral(Zi(Kt)):n.cloneNode(Kt)}function Ve(){g||(t.enableSubstitution(80),g=[])}function nt(We){if(u.hasNodeCheckFlag(We,262144)){Ve();let St=n.createUniqueName(We.name&&!ap(We.name)?Zi(We.name):"default");return g[gh(We)]=St,c(St),St}}function It(We){return n.createPropertyAccessExpression(n.getDeclarationName(We),"prototype")}function ke(We,St){return oc(St)?n.getDeclarationName(We):It(We)}function _t(We,St){return St=y(We,St),We===1?Se(St):St}function Se(We){return We.kind===80?tt(We):We}function tt(We){return Qe(We)??We}function Qe(We){if(g&&u.hasNodeCheckFlag(We,536870912)){let St=u.getReferencedValueDeclaration(We);if(St){let Kt=g[St.id];if(Kt){let Sr=n.cloneNode(Kt);return Jc(Sr,We),Y_(Sr,We),Sr}}}}}function Y8e(t){let{factory:n,getEmitHelperFactory:a,startLexicalEnvironment:c,endLexicalEnvironment:u,hoistVariableDeclaration:_}=t,f=$c(t.getCompilerOptions()),y,g,k,T,C,O;return Cv(t,F);function F(Y){y=void 0,O=!1;let ot=Dn(Y,le,t);return Ux(ot,t.readEmitHelpers()),O&&(e3(ot,32),O=!1),ot}function M(){switch(g=void 0,k=void 0,T=void 0,y?.kind){case"class":g=y.classInfo;break;case"class-element":g=y.next.classInfo,k=y.classThis,T=y.classSuper;break;case"name":let Y=y.next.next.next;Y?.kind==="class-element"&&(g=Y.next.classInfo,k=Y.classThis,T=Y.classSuper);break}}function U(Y){y={kind:"class",next:y,classInfo:Y,savedPendingExpressions:C},C=void 0,M()}function J(){$.assert(y?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${y?.kind}' instead.`),C=y.savedPendingExpressions,y=y.next,M()}function G(Y){var ot,pe;$.assert(y?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${y?.kind}' instead.`),y={kind:"class-element",next:y},(n_(Y)||ps(Y)&&fd(Y))&&(y.classThis=(ot=y.next.classInfo)==null?void 0:ot.classThis,y.classSuper=(pe=y.next.classInfo)==null?void 0:pe.classSuper),M()}function Z(){var Y;$.assert(y?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${y?.kind}' instead.`),$.assert(((Y=y.next)==null?void 0:Y.kind)==="class","Incorrect value for top.next.kind.",()=>{var ot;return`Expected top.next.kind to be 'class' but got '${(ot=y.next)==null?void 0:ot.kind}' instead.`}),y=y.next,M()}function Q(){$.assert(y?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${y?.kind}' instead.`),y={kind:"name",next:y},M()}function re(){$.assert(y?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${y?.kind}' instead.`),y=y.next,M()}function ae(){y?.kind==="other"?($.assert(!C),y.depth++):(y={kind:"other",next:y,depth:0,savedPendingExpressions:C},C=void 0,M())}function _e(){$.assert(y?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${y?.kind}' instead.`),y.depth>0?($.assert(!C),y.depth--):(C=y.savedPendingExpressions,y=y.next,M())}function me(Y){return!!(Y.transformFlags&33554432)||!!k&&!!(Y.transformFlags&16384)||!!k&&!!T&&!!(Y.transformFlags&134217728)}function le(Y){if(!me(Y))return Y;switch(Y.kind){case 171:return $.fail("Use `modifierVisitor` instead.");case 264:return ut(Y);case 232:return je(Y);case 177:case 173:case 176:return $.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 170:return Nn(Y);case 227:return is(Y,!1);case 304:return $o(Y);case 261:return ft(Y);case 209:return Ht(Y);case 278:return Dt(Y);case 110:return We(Y);case 249:return Qn(Y);case 245:return Ko(Y);case 357:return uo(Y,!1);case 218:return ur(Y,!1);case 356:return Ee(Y,!1);case 214:return St(Y);case 216:return Kt(Y);case 225:case 226:return sr(Y,!1);case 212:return Sr(Y);case 213:return nn(Y);case 168:return Oi(Y);case 175:case 179:case 178:case 219:case 263:{ae();let ot=Dn(Y,Oe,t);return _e(),ot}default:return Dn(Y,Oe,t)}}function Oe(Y){if(Y.kind!==171)return le(Y)}function be(Y){if(Y.kind!==171)return Y}function ue(Y){switch(Y.kind){case 177:return Ve(Y);case 175:return ke(Y);case 178:return _t(Y);case 179:return Se(Y);case 173:return Qe(Y);case 176:return tt(Y);default:return le(Y)}}function De(Y){switch(Y.kind){case 225:case 226:return sr(Y,!0);case 227:return is(Y,!0);case 357:return uo(Y,!0);case 218:return ur(Y,!0);default:return le(Y)}}function Ce(Y){let ot=Y.name&&ct(Y.name)&&!ap(Y.name)?Zi(Y.name):Y.name&&Aa(Y.name)&&!ap(Y.name)?Zi(Y.name).slice(1):Y.name&&Ic(Y.name)&&Jd(Y.name.text,99)?Y.name.text:Co(Y)?"class":"member";return Ax(Y)&&(ot=`get_${ot}`),hS(Y)&&(ot=`set_${ot}`),Y.name&&Aa(Y.name)&&(ot=`private_${ot}`),oc(Y)&&(ot=`static_${ot}`),"_"+ot}function Ae(Y,ot){return n.createUniqueName(`${Ce(Y)}_${ot}`,24)}function Fe(Y,ot){return n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Y,void 0,void 0,ot)],1))}function Be(Y){let ot=n.createUniqueName("_metadata",48),pe,Gt,mr=!1,Ge=!1,Mt=!1,Ir,ii,Rn;if(VR(!1,Y)){let zn=Pt(Y.members,Rt=>(Tm(Rt)||Mh(Rt))&&fd(Rt));Ir=n.createUniqueName("_classThis",zn?24:48)}for(let zn of Y.members){if(OO(zn)&&FG(!1,zn,Y))if(fd(zn)){if(!Gt){Gt=n.createUniqueName("_staticExtraInitializers",48);let Rt=a().createRunInitializersHelper(Ir??n.createThis(),Gt);Jc(Rt,Y.name??qT(Y)),ii??(ii=[]),ii.push(Rt)}}else{if(!pe){pe=n.createUniqueName("_instanceExtraInitializers",48);let Rt=a().createRunInitializersHelper(n.createThis(),pe);Jc(Rt,Y.name??qT(Y)),Rn??(Rn=[]),Rn.push(Rt)}pe??(pe=n.createUniqueName("_instanceExtraInitializers",48))}if(n_(zn)?FF(zn)||(mr=!0):ps(zn)&&(fd(zn)?mr||(mr=!!zn.initializer||By(zn)):Ge||(Ge=!Ime(zn))),(Tm(zn)||Mh(zn))&&fd(zn)&&(Mt=!0),Gt&&pe&&mr&&Ge&&Mt)break}return{class:Y,classThis:Ir,metadataReference:ot,instanceMethodExtraInitializersName:pe,staticMethodExtraInitializersName:Gt,hasStaticInitializers:mr,hasNonAmbientInstanceFields:Ge,hasStaticPrivateClassElements:Mt,pendingStaticInitializers:ii,pendingInstanceInitializers:Rn}}function de(Y){c(),!c0e(Y)&&pE(!1,Y)&&(Y=Jie(t,Y,n.createStringLiteral("")));let ot=n.getLocalName(Y,!1,!1,!0),pe=Be(Y),Gt=[],mr,Ge,Mt,Ir,ii=!1,Rn=Ct(o0e(Y,!1));Rn&&(pe.classDecoratorsName=n.createUniqueName("_classDecorators",48),pe.classDescriptorName=n.createUniqueName("_classDescriptor",48),pe.classExtraInitializersName=n.createUniqueName("_classExtraInitializers",48),$.assertIsDefined(pe.classThis),Gt.push(Fe(pe.classDecoratorsName,n.createArrayLiteralExpression(Rn)),Fe(pe.classDescriptorName),Fe(pe.classExtraInitializersName,n.createArrayLiteralExpression()),Fe(pe.classThis)),pe.hasStaticPrivateClassElements&&(ii=!0,O=!0));let zn=ZG(Y.heritageClauses,96),Rt=zn&&pi(zn.types),rr=Rt&&At(Rt.expression,le,Vt);if(rr){pe.classSuper=n.createUniqueName("_classSuper",48);let gn=Wp(rr),bn=w_(gn)&&!gn.name||bu(gn)&&!gn.name||Iu(gn)?n.createComma(n.createNumericLiteral(0),rr):rr;Gt.push(Fe(pe.classSuper,bn));let $r=n.updateExpressionWithTypeArguments(Rt,pe.classSuper,void 0),Uo=n.updateHeritageClause(zn,[$r]);Ir=n.createNodeArray([Uo])}let _r=pe.classThis??n.createThis();U(pe),mr=jt(mr,Ye(pe.metadataReference,pe.classSuper));let wr=Y.members;if(wr=Bn(wr,gn=>kp(gn)?gn:ue(gn),J_),wr=Bn(wr,gn=>kp(gn)?ue(gn):gn,J_),C){let gn;for(let bn of C){bn=At(bn,function Uo(Ys){return Ys.transformFlags&16384?Ys.kind===110?(gn||(gn=n.createUniqueName("_outerThis",16),Gt.unshift(Fe(gn,n.createThis()))),gn):Dn(Ys,Uo,t):Ys},Vt);let $r=n.createExpressionStatement(bn);mr=jt(mr,$r)}C=void 0}if(J(),Pt(pe.pendingInstanceInitializers)&&!Rx(Y)){let gn=ve(Y,pe);if(gn){let bn=vv(Y),$r=!!(bn&&Wp(bn.expression).kind!==106),Uo=[];if($r){let ec=n.createSpreadElement(n.createIdentifier("arguments")),Ss=n.createCallExpression(n.createSuper(),void 0,[ec]);Uo.push(n.createExpressionStatement(Ss))}En(Uo,gn);let Ys=n.createBlock(Uo,!0);Mt=n.createConstructorDeclaration(void 0,[],Ys)}}if(pe.staticMethodExtraInitializersName&&Gt.push(Fe(pe.staticMethodExtraInitializersName,n.createArrayLiteralExpression())),pe.instanceMethodExtraInitializersName&&Gt.push(Fe(pe.instanceMethodExtraInitializersName,n.createArrayLiteralExpression())),pe.memberInfos&&Ad(pe.memberInfos,(gn,bn)=>{oc(bn)&&(Gt.push(Fe(gn.memberDecoratorsName)),gn.memberInitializersName&&Gt.push(Fe(gn.memberInitializersName,n.createArrayLiteralExpression())),gn.memberExtraInitializersName&&Gt.push(Fe(gn.memberExtraInitializersName,n.createArrayLiteralExpression())),gn.memberDescriptorName&&Gt.push(Fe(gn.memberDescriptorName)))}),pe.memberInfos&&Ad(pe.memberInfos,(gn,bn)=>{oc(bn)||(Gt.push(Fe(gn.memberDecoratorsName)),gn.memberInitializersName&&Gt.push(Fe(gn.memberInitializersName,n.createArrayLiteralExpression())),gn.memberExtraInitializersName&&Gt.push(Fe(gn.memberExtraInitializersName,n.createArrayLiteralExpression())),gn.memberDescriptorName&&Gt.push(Fe(gn.memberDescriptorName)))}),mr=En(mr,pe.staticNonFieldDecorationStatements),mr=En(mr,pe.nonStaticNonFieldDecorationStatements),mr=En(mr,pe.staticFieldDecorationStatements),mr=En(mr,pe.nonStaticFieldDecorationStatements),pe.classDescriptorName&&pe.classDecoratorsName&&pe.classExtraInitializersName&&pe.classThis){mr??(mr=[]);let gn=n.createPropertyAssignment("value",_r),bn=n.createObjectLiteralExpression([gn]),$r=n.createAssignment(pe.classDescriptorName,bn),Uo=n.createPropertyAccessExpression(_r,"name"),Ys=a().createESDecorateHelper(n.createNull(),$r,pe.classDecoratorsName,{kind:"class",name:Uo,metadata:pe.metadataReference},n.createNull(),pe.classExtraInitializersName),ec=n.createExpressionStatement(Ys);Jc(ec,qT(Y)),mr.push(ec);let Ss=n.createPropertyAccessExpression(pe.classDescriptorName,"value"),Mp=n.createAssignment(pe.classThis,Ss),Cp=n.createAssignment(ot,Mp);mr.push(n.createExpressionStatement(Cp))}if(mr.push(er(_r,pe.metadataReference)),Pt(pe.pendingStaticInitializers)){for(let gn of pe.pendingStaticInitializers){let bn=n.createExpressionStatement(gn);Jc(bn,yE(gn)),Ge=jt(Ge,bn)}pe.pendingStaticInitializers=void 0}if(pe.classExtraInitializersName){let gn=a().createRunInitializersHelper(_r,pe.classExtraInitializersName),bn=n.createExpressionStatement(gn);Jc(bn,Y.name??qT(Y)),Ge=jt(Ge,bn)}mr&&Ge&&!pe.hasStaticInitializers&&(En(mr,Ge),Ge=void 0);let pn=mr&&n.createClassStaticBlockDeclaration(n.createBlock(mr,!0));pn&&ii&&OH(pn,32);let tn=Ge&&n.createClassStaticBlockDeclaration(n.createBlock(Ge,!0));if(pn||Mt||tn){let gn=[],bn=wr.findIndex(FF);pn?(En(gn,wr,0,bn+1),gn.push(pn),En(gn,wr,bn+1)):En(gn,wr),Mt&&gn.push(Mt),tn&&gn.push(tn),wr=qt(n.createNodeArray(gn),wr)}let lr=u(),cn;if(Rn){cn=n.createClassExpression(void 0,void 0,void 0,Ir,wr),pe.classThis&&(cn=V8e(n,cn,pe.classThis));let gn=n.createVariableDeclaration(ot,void 0,void 0,cn),bn=n.createVariableDeclarationList([gn]),$r=pe.classThis?n.createAssignment(ot,pe.classThis):ot;Gt.push(n.createVariableStatement(void 0,bn),n.createReturnStatement($r))}else cn=n.createClassExpression(void 0,Y.name,void 0,Ir,wr),Gt.push(n.createReturnStatement(cn));if(ii){e3(cn,32);for(let gn of cn.members)(Tm(gn)||Mh(gn))&&fd(gn)&&e3(gn,32)}return Yi(cn,Y),n.createImmediatelyInvokedArrowFunction(n.mergeLexicalEnvironment(Gt,lr))}function ze(Y){return pE(!1,Y)||mU(!1,Y)}function ut(Y){if(ze(Y)){let ot=[],pe=Ku(Y,Co)??Y,Gt=pe.name?n.createStringLiteralFromNode(pe.name):n.createStringLiteral("default"),mr=ko(Y,32),Ge=ko(Y,2048);if(Y.name||(Y=Jie(t,Y,Gt)),mr&&Ge){let Mt=de(Y);if(Y.name){let Ir=n.createVariableDeclaration(n.getLocalName(Y),void 0,void 0,Mt);Yi(Ir,Y);let ii=n.createVariableDeclarationList([Ir],1),Rn=n.createVariableStatement(void 0,ii);ot.push(Rn);let zn=n.createExportDefault(n.getDeclarationName(Y));Yi(zn,Y),Y_(zn,DS(Y)),Jc(zn,qT(Y)),ot.push(zn)}else{let Ir=n.createExportDefault(Mt);Yi(Ir,Y),Y_(Ir,DS(Y)),Jc(Ir,qT(Y)),ot.push(Ir)}}else{$.assertIsDefined(Y.name,"A class declaration that is not a default export must have a name.");let Mt=de(Y),Ir=mr?_r=>fF(_r)?void 0:be(_r):be,ii=Bn(Y.modifiers,Ir,bc),Rn=n.getLocalName(Y,!1,!0),zn=n.createVariableDeclaration(Rn,void 0,void 0,Mt);Yi(zn,Y);let Rt=n.createVariableDeclarationList([zn],1),rr=n.createVariableStatement(ii,Rt);if(Yi(rr,Y),Y_(rr,DS(Y)),ot.push(rr),mr){let _r=n.createExternalModuleExport(Rn);Yi(_r,Y),ot.push(_r)}}return Ja(ot)}else{let ot=Bn(Y.modifiers,be,bc),pe=Bn(Y.heritageClauses,le,zg);U(void 0);let Gt=Bn(Y.members,ue,J_);return J(),n.updateClassDeclaration(Y,ot,Y.name,void 0,pe,Gt)}}function je(Y){if(ze(Y)){let ot=de(Y);return Yi(ot,Y),ot}else{let ot=Bn(Y.modifiers,be,bc),pe=Bn(Y.heritageClauses,le,zg);U(void 0);let Gt=Bn(Y.members,ue,J_);return J(),n.updateClassExpression(Y,ot,Y.name,void 0,pe,Gt)}}function ve(Y,ot){if(Pt(ot.pendingInstanceInitializers)){let pe=[];return pe.push(n.createExpressionStatement(n.inlineExpressions(ot.pendingInstanceInitializers))),ot.pendingInstanceInitializers=void 0,pe}}function Le(Y,ot,pe,Gt,mr,Ge){let Mt=Gt[mr],Ir=ot[Mt];if(En(Y,Bn(ot,le,fa,pe,Mt-pe)),c3(Ir)){let ii=[];Le(ii,Ir.tryBlock.statements,0,Gt,mr+1,Ge);let Rn=n.createNodeArray(ii);qt(Rn,Ir.tryBlock.statements),Y.push(n.updateTryStatement(Ir,n.updateBlock(Ir.tryBlock,ii),At(Ir.catchClause,le,TP),At(Ir.finallyBlock,le,Vs)))}else En(Y,Bn(ot,le,fa,Mt,1)),En(Y,Ge);En(Y,Bn(ot,le,fa,Mt+1))}function Ve(Y){G(Y);let ot=Bn(Y.modifiers,be,bc),pe=Bn(Y.parameters,le,wa),Gt;if(Y.body&&g){let mr=ve(g.class,g);if(mr){let Ge=[],Mt=n.copyPrologue(Y.body.statements,Ge,!1,le),Ir=Bie(Y.body.statements,Mt);Ir.length>0?Le(Ge,Y.body.statements,Mt,Ir,0,mr):(En(Ge,mr),En(Ge,Bn(Y.body.statements,le,fa))),Gt=n.createBlock(Ge,!0),Yi(Gt,Y.body),qt(Gt,Y.body)}}return Gt??(Gt=At(Y.body,le,Vs)),Z(),n.updateConstructorDeclaration(Y,ot,pe,Gt)}function nt(Y,ot){return Y!==ot&&(Y_(Y,ot),Jc(Y,qT(ot))),Y}function It(Y,ot,pe){let Gt,mr,Ge,Mt,Ir,ii;if(!ot){let Rt=Bn(Y.modifiers,be,bc);return Q(),mr=oo(Y.name),re(),{modifiers:Rt,referencedName:Gt,name:mr,initializersName:Ge,descriptorName:ii,thisArg:Ir}}let Rn=Ct(Uie(Y,ot.class,!1)),zn=Bn(Y.modifiers,be,bc);if(Rn){let Rt=Ae(Y,"decorators"),rr=n.createArrayLiteralExpression(Rn),_r=n.createAssignment(Rt,rr),wr={memberDecoratorsName:Rt};ot.memberInfos??(ot.memberInfos=new Map),ot.memberInfos.set(Y,wr),C??(C=[]),C.push(_r);let pn=OO(Y)||Mh(Y)?oc(Y)?ot.staticNonFieldDecorationStatements??(ot.staticNonFieldDecorationStatements=[]):ot.nonStaticNonFieldDecorationStatements??(ot.nonStaticNonFieldDecorationStatements=[]):ps(Y)&&!Mh(Y)?oc(Y)?ot.staticFieldDecorationStatements??(ot.staticFieldDecorationStatements=[]):ot.nonStaticFieldDecorationStatements??(ot.nonStaticFieldDecorationStatements=[]):$.fail(),tn=T0(Y)?"getter":mg(Y)?"setter":Ep(Y)?"method":Mh(Y)?"accessor":ps(Y)?"field":$.fail(),lr;if(ct(Y.name)||Aa(Y.name))lr={computed:!1,name:Y.name};else if(SS(Y.name))lr={computed:!0,name:n.createStringLiteralFromNode(Y.name)};else{let gn=Y.name.expression;SS(gn)&&!ct(gn)?lr={computed:!0,name:n.createStringLiteralFromNode(gn)}:(Q(),{referencedName:Gt,name:mr}=Wa(Y.name),lr={computed:!0,name:Gt},re())}let cn={kind:tn,name:lr,static:oc(Y),private:Aa(Y.name),access:{get:ps(Y)||T0(Y)||Ep(Y),set:ps(Y)||mg(Y)},metadata:ot.metadataReference};if(OO(Y)){let gn=oc(Y)?ot.staticMethodExtraInitializersName:ot.instanceMethodExtraInitializersName;$.assertIsDefined(gn);let bn;Tm(Y)&&pe&&(bn=pe(Y,Bn(zn,Ys=>Ci(Ys,oz),bc)),wr.memberDescriptorName=ii=Ae(Y,"descriptor"),bn=n.createAssignment(ii,bn));let $r=a().createESDecorateHelper(n.createThis(),bn??n.createNull(),Rt,cn,n.createNull(),gn),Uo=n.createExpressionStatement($r);Jc(Uo,qT(Y)),pn.push(Uo)}else if(ps(Y)){Ge=wr.memberInitializersName??(wr.memberInitializersName=Ae(Y,"initializers")),Mt=wr.memberExtraInitializersName??(wr.memberExtraInitializersName=Ae(Y,"extraInitializers")),oc(Y)&&(Ir=ot.classThis);let gn;Tm(Y)&&xS(Y)&&pe&&(gn=pe(Y,void 0),wr.memberDescriptorName=ii=Ae(Y,"descriptor"),gn=n.createAssignment(ii,gn));let bn=a().createESDecorateHelper(Mh(Y)?n.createThis():n.createNull(),gn??n.createNull(),Rt,cn,Ge,Mt),$r=n.createExpressionStatement(bn);Jc($r,qT(Y)),pn.push($r)}}return mr===void 0&&(Q(),mr=oo(Y.name),re()),!Pt(zn)&&(Ep(Y)||ps(Y))&&Ai(mr,1024),{modifiers:zn,referencedName:Gt,name:mr,initializersName:Ge,extraInitializersName:Mt,descriptorName:ii,thisArg:Ir}}function ke(Y){G(Y);let{modifiers:ot,name:pe,descriptorName:Gt}=It(Y,g,at);if(Gt)return Z(),nt(Et(ot,pe,Gt),Y);{let mr=Bn(Y.parameters,le,wa),Ge=At(Y.body,le,Vs);return Z(),nt(n.updateMethodDeclaration(Y,ot,Y.asteriskToken,pe,void 0,void 0,mr,void 0,Ge),Y)}}function _t(Y){G(Y);let{modifiers:ot,name:pe,descriptorName:Gt}=It(Y,g,Zt);if(Gt)return Z(),nt(xr(ot,pe,Gt),Y);{let mr=Bn(Y.parameters,le,wa),Ge=At(Y.body,le,Vs);return Z(),nt(n.updateGetAccessorDeclaration(Y,ot,pe,mr,void 0,Ge),Y)}}function Se(Y){G(Y);let{modifiers:ot,name:pe,descriptorName:Gt}=It(Y,g,Qt);if(Gt)return Z(),nt(gi(ot,pe,Gt),Y);{let mr=Bn(Y.parameters,le,wa),Ge=At(Y.body,le,Vs);return Z(),nt(n.updateSetAccessorDeclaration(Y,ot,pe,mr,Ge),Y)}}function tt(Y){G(Y);let ot;if(FF(Y))ot=Dn(Y,le,t);else if(Oz(Y)){let pe=k;k=void 0,ot=Dn(Y,le,t),k=pe}else if(Y=Dn(Y,le,t),ot=Y,g&&(g.hasStaticInitializers=!0,Pt(g.pendingStaticInitializers))){let pe=[];for(let Ge of g.pendingStaticInitializers){let Mt=n.createExpressionStatement(Ge);Jc(Mt,yE(Ge)),pe.push(Mt)}let Gt=n.createBlock(pe,!0);ot=[n.createClassStaticBlockDeclaration(Gt),ot],g.pendingStaticInitializers=void 0}return Z(),ot}function Qe(Y){Mg(Y,$t)&&(Y=qg(t,Y,Dr(Y.initializer))),G(Y),$.assert(!Ime(Y),"Not yet implemented.");let{modifiers:ot,name:pe,initializersName:Gt,extraInitializersName:mr,descriptorName:Ge,thisArg:Mt}=It(Y,g,xS(Y)?pr:void 0);c();let Ir=At(Y.initializer,le,Vt);Gt&&(Ir=a().createRunInitializersHelper(Mt??n.createThis(),Gt,Ir??n.createVoidZero())),oc(Y)&&g&&Ir&&(g.hasStaticInitializers=!0);let ii=u();if(Pt(ii)&&(Ir=n.createImmediatelyInvokedArrowFunction([...ii,n.createReturnStatement(Ir)])),g&&(oc(Y)?(Ir=et(g,!0,Ir),mr&&(g.pendingStaticInitializers??(g.pendingStaticInitializers=[]),g.pendingStaticInitializers.push(a().createRunInitializersHelper(g.classThis??n.createThis(),mr)))):(Ir=et(g,!1,Ir),mr&&(g.pendingInstanceInitializers??(g.pendingInstanceInitializers=[]),g.pendingInstanceInitializers.push(a().createRunInitializersHelper(n.createThis(),mr))))),Z(),xS(Y)&&Ge){let Rn=DS(Y),zn=yE(Y),Rt=Y.name,rr=Rt,_r=Rt;if(dc(Rt)&&!FS(Rt.expression)){let cn=oie(Rt);if(cn)rr=n.updateComputedPropertyName(Rt,At(Rt.expression,le,Vt)),_r=n.updateComputedPropertyName(Rt,cn.left);else{let gn=n.createTempVariable(_);Jc(gn,Rt.expression);let bn=At(Rt.expression,le,Vt),$r=n.createAssignment(gn,bn);Jc($r,Rt.expression),rr=n.updateComputedPropertyName(Rt,$r),_r=n.updateComputedPropertyName(Rt,gn)}}let wr=Bn(ot,cn=>cn.kind!==129?cn:void 0,bc),pn=nye(n,Y,wr,Ir);Yi(pn,Y),Ai(pn,3072),Jc(pn,zn),Jc(pn.name,Y.name);let tn=xr(wr,rr,Ge);Yi(tn,Y),Y_(tn,Rn),Jc(tn,zn);let lr=gi(wr,_r,Ge);return Yi(lr,Y),Ai(lr,3072),Jc(lr,zn),[pn,tn,lr]}return nt(n.updatePropertyDeclaration(Y,ot,pe,void 0,void 0,Ir),Y)}function We(Y){return k??Y}function St(Y){if(_g(Y.expression)&&k){let ot=At(Y.expression,le,Vt),pe=Bn(Y.arguments,le,Vt),Gt=n.createFunctionCallCall(ot,k,pe);return Yi(Gt,Y),qt(Gt,Y),Gt}return Dn(Y,le,t)}function Kt(Y){if(_g(Y.tag)&&k){let ot=At(Y.tag,le,Vt),pe=n.createFunctionBindCall(ot,k,[]);Yi(pe,Y),qt(pe,Y);let Gt=At(Y.template,le,FO);return n.updateTaggedTemplateExpression(Y,pe,void 0,Gt)}return Dn(Y,le,t)}function Sr(Y){if(_g(Y)&&ct(Y.name)&&k&&T){let ot=n.createStringLiteralFromNode(Y.name),pe=n.createReflectGetCall(T,ot,k);return Yi(pe,Y.expression),qt(pe,Y.expression),pe}return Dn(Y,le,t)}function nn(Y){if(_g(Y)&&k&&T){let ot=At(Y.argumentExpression,le,Vt),pe=n.createReflectGetCall(T,ot,k);return Yi(pe,Y.expression),qt(pe,Y.expression),pe}return Dn(Y,le,t)}function Nn(Y){Mg(Y,$t)&&(Y=qg(t,Y,Dr(Y.initializer)));let ot=n.updateParameterDeclaration(Y,void 0,Y.dotDotDotToken,At(Y.name,le,L4),void 0,void 0,At(Y.initializer,le,Vt));return ot!==Y&&(Y_(ot,Y),qt(ot,ES(Y)),Jc(ot,ES(Y)),Ai(ot.name,64)),ot}function $t(Y){return w_(Y)&&!Y.name&&ze(Y)}function Dr(Y){let ot=Wp(Y);return w_(ot)&&!ot.name&&!pE(!1,ot)}function Qn(Y){return n.updateForStatement(Y,At(Y.initializer,De,f0),At(Y.condition,le,Vt),At(Y.incrementor,De,Vt),hh(Y.statement,le,t))}function Ko(Y){return Dn(Y,De,t)}function is(Y,ot){if(dE(Y)){let pe=Es(Y.left),Gt=At(Y.right,le,Vt);return n.updateBinaryExpression(Y,pe,Y.operatorToken,Gt)}if(of(Y)){if(Mg(Y,$t))return Y=qg(t,Y,Dr(Y.right)),Dn(Y,le,t);if(_g(Y.left)&&k&&T){let pe=mu(Y.left)?At(Y.left.argumentExpression,le,Vt):ct(Y.left.name)?n.createStringLiteralFromNode(Y.left.name):void 0;if(pe){let Gt=At(Y.right,le,Vt);if(Iz(Y.operatorToken.kind)){let Ge=pe;FS(pe)||(Ge=n.createTempVariable(_),pe=n.createAssignment(Ge,pe));let Mt=n.createReflectGetCall(T,Ge,k);Yi(Mt,Y.left),qt(Mt,Y.left),Gt=n.createBinaryExpression(Mt,Pz(Y.operatorToken.kind),Gt),qt(Gt,Y)}let mr=ot?void 0:n.createTempVariable(_);return mr&&(Gt=n.createAssignment(mr,Gt),qt(mr,Y)),Gt=n.createReflectSetCall(T,pe,Gt,k),Yi(Gt,Y),qt(Gt,Y),mr&&(Gt=n.createComma(Gt,mr),qt(Gt,Y)),Gt}}}if(Y.operatorToken.kind===28){let pe=At(Y.left,De,Vt),Gt=At(Y.right,ot?De:le,Vt);return n.updateBinaryExpression(Y,pe,Y.operatorToken,Gt)}return Dn(Y,le,t)}function sr(Y,ot){if(Y.operator===46||Y.operator===47){let pe=bl(Y.operand);if(_g(pe)&&k&&T){let Gt=mu(pe)?At(pe.argumentExpression,le,Vt):ct(pe.name)?n.createStringLiteralFromNode(pe.name):void 0;if(Gt){let mr=Gt;FS(Gt)||(mr=n.createTempVariable(_),Gt=n.createAssignment(mr,Gt));let Ge=n.createReflectGetCall(T,mr,k);Yi(Ge,Y),qt(Ge,Y);let Mt=ot?void 0:n.createTempVariable(_);return Ge=Yne(n,Y,Ge,_,Mt),Ge=n.createReflectSetCall(T,Gt,Ge,k),Yi(Ge,Y),qt(Ge,Y),Mt&&(Ge=n.createComma(Ge,Mt),qt(Ge,Y)),Ge}}}return Dn(Y,le,t)}function uo(Y,ot){let pe=ot?fK(Y.elements,De):fK(Y.elements,le,De);return n.updateCommaListExpression(Y,pe)}function Wa(Y){if(SS(Y)||Aa(Y)){let Ge=n.createStringLiteralFromNode(Y),Mt=At(Y,le,q_);return{referencedName:Ge,name:Mt}}if(SS(Y.expression)&&!ct(Y.expression)){let Ge=n.createStringLiteralFromNode(Y.expression),Mt=At(Y,le,q_);return{referencedName:Ge,name:Mt}}let ot=n.getGeneratedNameForNode(Y);_(ot);let pe=a().createPropKeyHelper(At(Y.expression,le,Vt)),Gt=n.createAssignment(ot,pe),mr=n.updateComputedPropertyName(Y,ye(Gt));return{referencedName:ot,name:mr}}function oo(Y){return dc(Y)?Oi(Y):At(Y,le,q_)}function Oi(Y){let ot=At(Y.expression,le,Vt);return FS(ot)||(ot=ye(ot)),n.updateComputedPropertyName(Y,ot)}function $o(Y){return Mg(Y,$t)&&(Y=qg(t,Y,Dr(Y.initializer))),Dn(Y,le,t)}function ft(Y){return Mg(Y,$t)&&(Y=qg(t,Y,Dr(Y.initializer))),Dn(Y,le,t)}function Ht(Y){return Mg(Y,$t)&&(Y=qg(t,Y,Dr(Y.initializer))),Dn(Y,le,t)}function Wr(Y){if(Lc(Y)||qf(Y))return Es(Y);if(_g(Y)&&k&&T){let ot=mu(Y)?At(Y.argumentExpression,le,Vt):ct(Y.name)?n.createStringLiteralFromNode(Y.name):void 0;if(ot){let pe=n.createTempVariable(void 0),Gt=n.createAssignmentTargetWrapper(pe,n.createReflectSetCall(T,ot,pe,k));return Yi(Gt,Y),qt(Gt,Y),Gt}}return Dn(Y,le,t)}function ai(Y){if(of(Y,!0)){Mg(Y,$t)&&(Y=qg(t,Y,Dr(Y.right)));let ot=Wr(Y.left),pe=At(Y.right,le,Vt);return n.updateBinaryExpression(Y,ot,Y.operatorToken,pe)}else return Wr(Y)}function vo(Y){if(jh(Y.expression)){let ot=Wr(Y.expression);return n.updateSpreadElement(Y,ot)}return Dn(Y,le,t)}function Eo(Y){return $.assertNode(Y,pG),E0(Y)?vo(Y):Id(Y)?Dn(Y,le,t):ai(Y)}function ya(Y){let ot=At(Y.name,le,q_);if(of(Y.initializer,!0)){let pe=ai(Y.initializer);return n.updatePropertyAssignment(Y,ot,pe)}if(jh(Y.initializer)){let pe=Wr(Y.initializer);return n.updatePropertyAssignment(Y,ot,pe)}return Dn(Y,le,t)}function Ls(Y){return Mg(Y,$t)&&(Y=qg(t,Y,Dr(Y.objectAssignmentInitializer))),Dn(Y,le,t)}function yc(Y){if(jh(Y.expression)){let ot=Wr(Y.expression);return n.updateSpreadAssignment(Y,ot)}return Dn(Y,le,t)}function Cn(Y){return $.assertNode(Y,uG),qx(Y)?yc(Y):im(Y)?Ls(Y):td(Y)?ya(Y):Dn(Y,le,t)}function Es(Y){if(qf(Y)){let ot=Bn(Y.elements,Eo,Vt);return n.updateArrayLiteralExpression(Y,ot)}else{let ot=Bn(Y.properties,Cn,MT);return n.updateObjectLiteralExpression(Y,ot)}}function Dt(Y){return Mg(Y,$t)&&(Y=qg(t,Y,Dr(Y.expression))),Dn(Y,le,t)}function ur(Y,ot){let pe=ot?De:le,Gt=At(Y.expression,pe,Vt);return n.updateParenthesizedExpression(Y,Gt)}function Ee(Y,ot){let pe=ot?De:le,Gt=At(Y.expression,pe,Vt);return n.updatePartiallyEmittedExpression(Y,Gt)}function Bt(Y,ot){return Pt(Y)&&(ot?mh(ot)?(Y.push(ot.expression),ot=n.updateParenthesizedExpression(ot,n.inlineExpressions(Y))):(Y.push(ot),ot=n.inlineExpressions(Y)):ot=n.inlineExpressions(Y)),ot}function ye(Y){let ot=Bt(C,Y);return $.assertIsDefined(ot),ot!==Y&&(C=void 0),ot}function et(Y,ot,pe){let Gt=Bt(ot?Y.pendingStaticInitializers:Y.pendingInstanceInitializers,pe);return Gt!==pe&&(ot?Y.pendingStaticInitializers=void 0:Y.pendingInstanceInitializers=void 0),Gt}function Ct(Y){if(!Y)return;let ot=[];return En(ot,Cr(Y.decorators,Ot)),ot}function Ot(Y){let ot=At(Y.expression,le,Vt);Ai(ot,3072);let pe=Wp(ot);if(wu(pe)){let{target:Gt,thisArg:mr}=n.createCallBinding(ot,_,f,!0);return n.restoreOuterExpressions(ot,n.createFunctionBindCall(Gt,mr,[]))}return ot}function ar(Y,ot,pe,Gt,mr,Ge,Mt){let Ir=n.createFunctionExpression(pe,Gt,void 0,void 0,Ge,void 0,Mt??n.createBlock([]));Yi(Ir,Y),Jc(Ir,qT(Y)),Ai(Ir,3072);let ii=mr==="get"||mr==="set"?mr:void 0,Rn=n.createStringLiteralFromNode(ot,void 0),zn=a().createSetFunctionNameHelper(Ir,Rn,ii),Rt=n.createPropertyAssignment(n.createIdentifier(mr),zn);return Yi(Rt,Y),Jc(Rt,qT(Y)),Ai(Rt,3072),Rt}function at(Y,ot){return n.createObjectLiteralExpression([ar(Y,Y.name,ot,Y.asteriskToken,"value",Bn(Y.parameters,le,wa),At(Y.body,le,Vs))])}function Zt(Y,ot){return n.createObjectLiteralExpression([ar(Y,Y.name,ot,void 0,"get",[],At(Y.body,le,Vs))])}function Qt(Y,ot){return n.createObjectLiteralExpression([ar(Y,Y.name,ot,void 0,"set",Bn(Y.parameters,le,wa),At(Y.body,le,Vs))])}function pr(Y,ot){return n.createObjectLiteralExpression([ar(Y,Y.name,ot,void 0,"get",[],n.createBlock([n.createReturnStatement(n.createPropertyAccessExpression(n.createThis(),n.getGeneratedPrivateNameForNode(Y.name)))])),ar(Y,Y.name,ot,void 0,"set",[n.createParameterDeclaration(void 0,void 0,"value")],n.createBlock([n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createThis(),n.getGeneratedPrivateNameForNode(Y.name)),n.createIdentifier("value")))]))])}function Et(Y,ot,pe){return Y=Bn(Y,Gt=>mF(Gt)?Gt:void 0,bc),n.createGetAccessorDeclaration(Y,ot,[],void 0,n.createBlock([n.createReturnStatement(n.createPropertyAccessExpression(pe,n.createIdentifier("value")))]))}function xr(Y,ot,pe){return Y=Bn(Y,Gt=>mF(Gt)?Gt:void 0,bc),n.createGetAccessorDeclaration(Y,ot,[],void 0,n.createBlock([n.createReturnStatement(n.createFunctionCallCall(n.createPropertyAccessExpression(pe,n.createIdentifier("get")),n.createThis(),[]))]))}function gi(Y,ot,pe){return Y=Bn(Y,Gt=>mF(Gt)?Gt:void 0,bc),n.createSetAccessorDeclaration(Y,ot,[n.createParameterDeclaration(void 0,void 0,"value")],n.createBlock([n.createReturnStatement(n.createFunctionCallCall(n.createPropertyAccessExpression(pe,n.createIdentifier("set")),n.createThis(),[n.createIdentifier("value")]))]))}function Ye(Y,ot){let pe=n.createVariableDeclaration(Y,void 0,void 0,n.createConditionalExpression(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("Symbol"),"function"),n.createPropertyAccessExpression(n.createIdentifier("Symbol"),"metadata")),n.createToken(58),n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"create"),void 0,[ot?Ne(ot):n.createNull()]),n.createToken(59),n.createVoidZero()));return n.createVariableStatement(void 0,n.createVariableDeclarationList([pe],2))}function er(Y,ot){let pe=n.createObjectDefinePropertyCall(Y,n.createPropertyAccessExpression(n.createIdentifier("Symbol"),"metadata"),n.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:ot},!0));return Ai(n.createIfStatement(ot,n.createExpressionStatement(pe)),1)}function Ne(Y){return n.createBinaryExpression(n.createElementAccessExpression(Y,n.createPropertyAccessExpression(n.createIdentifier("Symbol"),"metadata")),61,n.createNull())}}function eOe(t){let{factory:n,getEmitHelperFactory:a,resumeLexicalEnvironment:c,endLexicalEnvironment:u,hoistVariableDeclaration:_}=t,f=t.getEmitResolver(),y=t.getCompilerOptions(),g=$c(y),k=0,T=0,C,O,F,M,U=[],J=0,G=t.onEmitNode,Z=t.onSubstituteNode;return t.onEmitNode=Ko,t.onSubstituteNode=is,Cv(t,Q);function Q(ft){if(ft.isDeclarationFile)return ft;re(1,!1),re(2,!wme(ft,y));let Ht=Dn(ft,ue,t);return Ux(Ht,t.readEmitHelpers()),Ht}function re(ft,Ht){J=Ht?J|ft:J&~ft}function ae(ft){return(J&ft)!==0}function _e(){return!ae(1)}function me(){return ae(2)}function le(ft,Ht,Wr){let ai=ft&~J;if(ai){re(ai,!0);let vo=Ht(Wr);return re(ai,!1),vo}return Ht(Wr)}function Oe(ft){return Dn(ft,ue,t)}function be(ft){switch(ft.kind){case 219:case 263:case 175:case 178:case 179:case 177:return ft;case 170:case 209:case 261:break;case 80:if(M&&f.isArgumentsLocalBinding(ft))return M;break}return Dn(ft,be,t)}function ue(ft){if((ft.transformFlags&256)===0)return M?be(ft):ft;switch(ft.kind){case 134:return;case 224:return ze(ft);case 175:return le(3,je,ft);case 263:return le(3,Ve,ft);case 219:return le(3,nt,ft);case 220:return le(1,It,ft);case 212:return O&&no(ft)&&ft.expression.kind===108&&O.add(ft.name.escapedText),Dn(ft,ue,t);case 213:return O&&ft.expression.kind===108&&(F=!0),Dn(ft,ue,t);case 178:return le(3,ve,ft);case 179:return le(3,Le,ft);case 177:return le(3,ut,ft);case 264:case 232:return le(3,Oe,ft);default:return Dn(ft,ue,t)}}function De(ft){if(B6e(ft))switch(ft.kind){case 244:return Ae(ft);case 249:return de(ft);case 250:return Fe(ft);case 251:return Be(ft);case 300:return Ce(ft);case 242:case 256:case 270:case 297:case 298:case 259:case 247:case 248:case 246:case 255:case 257:return Dn(ft,De,t);default:return $.assertNever(ft,"Unhandled node.")}return ue(ft)}function Ce(ft){let Ht=new Set;ke(ft.variableDeclaration,Ht);let Wr;if(Ht.forEach((ai,vo)=>{C.has(vo)&&(Wr||(Wr=new Set(C)),Wr.delete(vo))}),Wr){let ai=C;C=Wr;let vo=Dn(ft,De,t);return C=ai,vo}else return Dn(ft,De,t)}function Ae(ft){if(_t(ft.declarationList)){let Ht=Se(ft.declarationList,!1);return Ht?n.createExpressionStatement(Ht):void 0}return Dn(ft,ue,t)}function Fe(ft){return n.updateForInStatement(ft,_t(ft.initializer)?Se(ft.initializer,!0):$.checkDefined(At(ft.initializer,ue,f0)),$.checkDefined(At(ft.expression,ue,Vt)),hh(ft.statement,De,t))}function Be(ft){return n.updateForOfStatement(ft,At(ft.awaitModifier,ue,wge),_t(ft.initializer)?Se(ft.initializer,!0):$.checkDefined(At(ft.initializer,ue,f0)),$.checkDefined(At(ft.expression,ue,Vt)),hh(ft.statement,De,t))}function de(ft){let Ht=ft.initializer;return n.updateForStatement(ft,_t(Ht)?Se(Ht,!1):At(ft.initializer,ue,f0),At(ft.condition,ue,Vt),At(ft.incrementor,ue,Vt),hh(ft.statement,De,t))}function ze(ft){return _e()?Dn(ft,ue,t):Yi(qt(n.createYieldExpression(void 0,At(ft.expression,ue,Vt)),ft),ft)}function ut(ft){let Ht=M;M=void 0;let Wr=n.updateConstructorDeclaration(ft,Bn(ft.modifiers,ue,bc),Rp(ft.parameters,ue,t),Kt(ft));return M=Ht,Wr}function je(ft){let Ht,Wr=A_(ft),ai=M;M=void 0;let vo=n.updateMethodDeclaration(ft,Bn(ft.modifiers,ue,sp),ft.asteriskToken,ft.name,void 0,void 0,Ht=Wr&2?nn(ft):Rp(ft.parameters,ue,t),void 0,Wr&2?Nn(ft,Ht):Kt(ft));return M=ai,vo}function ve(ft){let Ht=M;M=void 0;let Wr=n.updateGetAccessorDeclaration(ft,Bn(ft.modifiers,ue,sp),ft.name,Rp(ft.parameters,ue,t),void 0,Kt(ft));return M=Ht,Wr}function Le(ft){let Ht=M;M=void 0;let Wr=n.updateSetAccessorDeclaration(ft,Bn(ft.modifiers,ue,sp),ft.name,Rp(ft.parameters,ue,t),Kt(ft));return M=Ht,Wr}function Ve(ft){let Ht,Wr=M;M=void 0;let ai=A_(ft),vo=n.updateFunctionDeclaration(ft,Bn(ft.modifiers,ue,sp),ft.asteriskToken,ft.name,void 0,Ht=ai&2?nn(ft):Rp(ft.parameters,ue,t),void 0,ai&2?Nn(ft,Ht):Jy(ft.body,ue,t));return M=Wr,vo}function nt(ft){let Ht,Wr=M;M=void 0;let ai=A_(ft),vo=n.updateFunctionExpression(ft,Bn(ft.modifiers,ue,bc),ft.asteriskToken,ft.name,void 0,Ht=ai&2?nn(ft):Rp(ft.parameters,ue,t),void 0,ai&2?Nn(ft,Ht):Jy(ft.body,ue,t));return M=Wr,vo}function It(ft){let Ht,Wr=A_(ft);return n.updateArrowFunction(ft,Bn(ft.modifiers,ue,bc),void 0,Ht=Wr&2?nn(ft):Rp(ft.parameters,ue,t),void 0,ft.equalsGreaterThanToken,Wr&2?Nn(ft,Ht):Jy(ft.body,ue,t))}function ke({name:ft},Ht){if(ct(ft))Ht.add(ft.escapedText);else for(let Wr of ft.elements)Id(Wr)||ke(Wr,Ht)}function _t(ft){return!!ft&&Df(ft)&&!(ft.flags&7)&&ft.declarations.some(St)}function Se(ft,Ht){tt(ft);let Wr=MU(ft);return Wr.length===0?Ht?At(n.converters.convertToAssignmentElementTarget(ft.declarations[0].name),ue,Vt):void 0:n.inlineExpressions(Cr(Wr,We))}function tt(ft){X(ft.declarations,Qe)}function Qe({name:ft}){if(ct(ft))_(ft);else for(let Ht of ft.elements)Id(Ht)||Qe(Ht)}function We(ft){let Ht=Jc(n.createAssignment(n.converters.convertToAssignmentElementTarget(ft.name),ft.initializer),ft);return $.checkDefined(At(Ht,ue,Vt))}function St({name:ft}){if(ct(ft))return C.has(ft.escapedText);for(let Ht of ft.elements)if(!Id(Ht)&&St(Ht))return!0;return!1}function Kt(ft){$.assertIsDefined(ft.body);let Ht=O,Wr=F;O=new Set,F=!1;let ai=Jy(ft.body,ue,t),vo=Ku(ft,lu);if(g>=2&&(f.hasNodeCheckFlag(ft,256)||f.hasNodeCheckFlag(ft,128))&&(A_(vo)&3)!==3){if(Qn(),O.size){let ya=Vie(n,f,ft,O);U[hl(ya)]=!0;let Ls=ai.statements.slice();Px(Ls,[ya]),ai=n.updateBlock(ai,Ls)}F&&(f.hasNodeCheckFlag(ft,256)?pF(ai,Lne):f.hasNodeCheckFlag(ft,128)&&pF(ai,Rne))}return O=Ht,F=Wr,ai}function Sr(){$.assert(M);let ft=n.createVariableDeclaration(M,void 0,void 0,n.createIdentifier("arguments")),Ht=n.createVariableStatement(void 0,[ft]);return Dm(Ht),CS(Ht,2097152),Ht}function nn(ft){if(hK(ft.parameters))return Rp(ft.parameters,ue,t);let Ht=[];for(let ai of ft.parameters){if(ai.initializer||ai.dotDotDotToken){if(ft.kind===220){let Eo=n.createParameterDeclaration(void 0,n.createToken(26),n.createUniqueName("args",8));Ht.push(Eo)}break}let vo=n.createParameterDeclaration(void 0,void 0,n.getGeneratedNameForNode(ai.name,8));Ht.push(vo)}let Wr=n.createNodeArray(Ht);return qt(Wr,ft.parameters),Wr}function Nn(ft,Ht){let Wr=hK(ft.parameters)?void 0:Rp(ft.parameters,ue,t);c();let vo=Ku(ft,Rs).type,Eo=g<2?Dr(vo):void 0,ya=ft.kind===220,Ls=M,Cn=f.hasNodeCheckFlag(ft,512)&&!M;Cn&&(M=n.createUniqueName("arguments"));let Es;if(Wr)if(ya){let Ct=[];$.assert(Ht.length<=ft.parameters.length);for(let Ot=0;Ot=2&&(f.hasNodeCheckFlag(ft,256)||f.hasNodeCheckFlag(ft,128));if(Ot&&(Qn(),O.size)){let at=Vie(n,f,ft,O);U[hl(at)]=!0,Px(Ct,[at])}Cn&&Px(Ct,[Sr()]);let ar=n.createBlock(Ct,!0);qt(ar,ft.body),Ot&&F&&(f.hasNodeCheckFlag(ft,256)?pF(ar,Lne):f.hasNodeCheckFlag(ft,128)&&pF(ar,Rne)),et=ar}return C=Dt,ya||(O=ur,F=Ee,M=Ls),et}function $t(ft,Ht){return Vs(ft)?n.updateBlock(ft,Bn(ft.statements,De,fa,Ht)):n.converters.convertToFunctionBlock($.checkDefined(At(ft,De,Wte)))}function Dr(ft){let Ht=ft&&NG(ft);if(Ht&&uh(Ht)){let Wr=f.getTypeReferenceSerializationKind(Ht);if(Wr===1||Wr===0)return Ht}}function Qn(){(k&1)===0&&(k|=1,t.enableSubstitution(214),t.enableSubstitution(212),t.enableSubstitution(213),t.enableEmitNotification(264),t.enableEmitNotification(175),t.enableEmitNotification(178),t.enableEmitNotification(179),t.enableEmitNotification(177),t.enableEmitNotification(244))}function Ko(ft,Ht,Wr){if(k&1&&Oi(Ht)){let ai=(f.hasNodeCheckFlag(Ht,128)?128:0)|(f.hasNodeCheckFlag(Ht,256)?256:0);if(ai!==T){let vo=T;T=ai,G(ft,Ht,Wr),T=vo;return}}else if(k&&U[hl(Ht)]){let ai=T;T=0,G(ft,Ht,Wr),T=ai;return}G(ft,Ht,Wr)}function is(ft,Ht){return Ht=Z(ft,Ht),ft===1&&T?sr(Ht):Ht}function sr(ft){switch(ft.kind){case 212:return uo(ft);case 213:return Wa(ft);case 214:return oo(ft)}return ft}function uo(ft){return ft.expression.kind===108?qt(n.createPropertyAccessExpression(n.createUniqueName("_super",48),ft.name),ft):ft}function Wa(ft){return ft.expression.kind===108?$o(ft.argumentExpression,ft):ft}function oo(ft){let Ht=ft.expression;if(_g(Ht)){let Wr=no(Ht)?uo(Ht):Wa(Ht);return n.createCallExpression(n.createPropertyAccessExpression(Wr,"call"),void 0,[n.createThis(),...ft.arguments])}return ft}function Oi(ft){let Ht=ft.kind;return Ht===264||Ht===177||Ht===175||Ht===178||Ht===179}function $o(ft,Ht){return T&256?qt(n.createPropertyAccessExpression(n.createCallExpression(n.createUniqueName("_superIndex",48),void 0,[ft]),"value"),Ht):qt(n.createCallExpression(n.createUniqueName("_superIndex",48),void 0,[ft]),Ht)}}function Vie(t,n,a,c){let u=n.hasNodeCheckFlag(a,256),_=[];return c.forEach((f,y)=>{let g=oa(y),k=[];k.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,Ai(t.createPropertyAccessExpression(Ai(t.createSuper(),8),g),8)))),u&&k.push(t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,t.createAssignment(Ai(t.createPropertyAccessExpression(Ai(t.createSuper(),8),g),8),t.createIdentifier("v"))))),_.push(t.createPropertyAssignment(g,t.createObjectLiteralExpression(k)))}),t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_super",48),void 0,void 0,t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[t.createNull(),t.createObjectLiteralExpression(_,!0)]))],2))}function tOe(t){let{factory:n,getEmitHelperFactory:a,resumeLexicalEnvironment:c,endLexicalEnvironment:u,hoistVariableDeclaration:_}=t,f=t.getEmitResolver(),y=t.getCompilerOptions(),g=$c(y),k=t.onEmitNode;t.onEmitNode=Ls;let T=t.onSubstituteNode;t.onSubstituteNode=yc;let C=!1,O=0,F,M,U=0,J=0,G,Z,Q,re,ae=[];return Cv(t,be);function _e(ye,et){return J!==(J&~ye|et)}function me(ye,et){let Ct=J;return J=(J&~ye|et)&3,Ct}function le(ye){J=ye}function Oe(ye){Z=jt(Z,n.createVariableDeclaration(ye))}function be(ye){if(ye.isDeclarationFile)return ye;G=ye;let et=It(ye);return Ux(et,t.readEmitHelpers()),G=void 0,Z=void 0,et}function ue(ye){return Be(ye,!1)}function De(ye){return Be(ye,!0)}function Ce(ye){if(ye.kind!==134)return ye}function Ae(ye,et,Ct,Ot){if(_e(Ct,Ot)){let ar=me(Ct,Ot),at=ye(et);return le(ar),at}return ye(et)}function Fe(ye){return Dn(ye,ue,t)}function Be(ye,et){if((ye.transformFlags&128)===0)return ye;switch(ye.kind){case 224:return de(ye);case 230:return ze(ye);case 254:return ut(ye);case 257:return je(ye);case 211:return Le(ye);case 227:return _t(ye,et);case 357:return Se(ye,et);case 300:return tt(ye);case 244:return Qe(ye);case 261:return We(ye);case 247:case 248:case 250:return Ae(Fe,ye,0,2);case 251:return nn(ye,void 0);case 249:return Ae(Kt,ye,0,2);case 223:return Sr(ye);case 177:return Ae(uo,ye,2,1);case 175:return Ae(Oi,ye,2,1);case 178:return Ae(Wa,ye,2,1);case 179:return Ae(oo,ye,2,1);case 263:return Ae($o,ye,2,1);case 219:return Ae(Ht,ye,2,1);case 220:return Ae(ft,ye,2,0);case 170:return is(ye);case 245:return Ve(ye);case 218:return nt(ye,et);case 216:return ke(ye);case 212:return Q&&no(ye)&&ye.expression.kind===108&&Q.add(ye.name.escapedText),Dn(ye,ue,t);case 213:return Q&&ye.expression.kind===108&&(re=!0),Dn(ye,ue,t);case 264:case 232:return Ae(Fe,ye,2,1);default:return Dn(ye,ue,t)}}function de(ye){return F&2&&F&1?Yi(qt(n.createYieldExpression(void 0,a().createAwaitHelper(At(ye.expression,ue,Vt))),ye),ye):Dn(ye,ue,t)}function ze(ye){if(F&2&&F&1){if(ye.asteriskToken){let et=At($.checkDefined(ye.expression),ue,Vt);return Yi(qt(n.createYieldExpression(void 0,a().createAwaitHelper(n.updateYieldExpression(ye,ye.asteriskToken,qt(a().createAsyncDelegatorHelper(qt(a().createAsyncValuesHelper(et),et)),et)))),ye),ye)}return Yi(qt(n.createYieldExpression(void 0,Dr(ye.expression?At(ye.expression,ue,Vt):n.createVoidZero())),ye),ye)}return Dn(ye,ue,t)}function ut(ye){return F&2&&F&1?n.updateReturnStatement(ye,Dr(ye.expression?At(ye.expression,ue,Vt):n.createVoidZero())):Dn(ye,ue,t)}function je(ye){if(F&2){let et=jme(ye);return et.kind===251&&et.awaitModifier?nn(et,ye):n.restoreEnclosingLabel(At(et,ue,fa,n.liftToBlock),ye)}return Dn(ye,ue,t)}function ve(ye){let et,Ct=[];for(let Ot of ye)if(Ot.kind===306){et&&(Ct.push(n.createObjectLiteralExpression(et)),et=void 0);let ar=Ot.expression;Ct.push(At(ar,ue,Vt))}else et=jt(et,Ot.kind===304?n.createPropertyAssignment(Ot.name,At(Ot.initializer,ue,Vt)):At(Ot,ue,MT));return et&&Ct.push(n.createObjectLiteralExpression(et)),Ct}function Le(ye){if(ye.transformFlags&65536){let et=ve(ye.properties);et.length&&et[0].kind!==211&&et.unshift(n.createObjectLiteralExpression());let Ct=et[0];if(et.length>1){for(let Ot=1;Ot=2&&(f.hasNodeCheckFlag(ye,256)||f.hasNodeCheckFlag(ye,128));if(Qt){ya();let Et=Vie(n,f,ye,Q);ae[hl(Et)]=!0,Px(ar,[Et])}ar.push(Zt);let pr=n.updateBlock(ye.body,ar);return Qt&&re&&(f.hasNodeCheckFlag(ye,256)?pF(pr,Lne):f.hasNodeCheckFlag(ye,128)&&pF(pr,Rne)),Q=Ct,re=Ot,pr}function vo(ye){c();let et=0,Ct=[],Ot=At(ye.body,ue,Wte)??n.createBlock([]);Vs(Ot)&&(et=n.copyPrologue(Ot.statements,Ct,!1,ue)),En(Ct,Eo(void 0,ye));let ar=u();if(et>0||Pt(Ct)||Pt(ar)){let at=n.converters.convertToFunctionBlock(Ot,!0);return Px(Ct,ar),En(Ct,at.statements.slice(et)),n.updateBlock(at,qt(n.createNodeArray(Ct),at.statements))}return Ot}function Eo(ye,et){let Ct=!1;for(let Ot of et.parameters)if(Ct){if($s(Ot.name)){if(Ot.name.elements.length>0){let ar=AP(Ot,ue,t,0,n.getGeneratedNameForNode(Ot));if(Pt(ar)){let at=n.createVariableDeclarationList(ar),Zt=n.createVariableStatement(void 0,at);Ai(Zt,2097152),ye=jt(ye,Zt)}}else if(Ot.initializer){let ar=n.getGeneratedNameForNode(Ot),at=At(Ot.initializer,ue,Vt),Zt=n.createAssignment(ar,at),Qt=n.createExpressionStatement(Zt);Ai(Qt,2097152),ye=jt(ye,Qt)}}else if(Ot.initializer){let ar=n.cloneNode(Ot.name);qt(ar,Ot.name),Ai(ar,96);let at=At(Ot.initializer,ue,Vt);CS(at,3168);let Zt=n.createAssignment(ar,at);qt(Zt,Ot),Ai(Zt,3072);let Qt=n.createBlock([n.createExpressionStatement(Zt)]);qt(Qt,Ot),Ai(Qt,3905);let pr=n.createTypeCheck(n.cloneNode(Ot.name),"undefined"),Et=n.createIfStatement(pr,Qt);Dm(Et),qt(Et,Ot),Ai(Et,2101056),ye=jt(ye,Et)}}else if(Ot.transformFlags&65536){Ct=!0;let ar=AP(Ot,ue,t,1,n.getGeneratedNameForNode(Ot),!1,!0);if(Pt(ar)){let at=n.createVariableDeclarationList(ar),Zt=n.createVariableStatement(void 0,at);Ai(Zt,2097152),ye=jt(ye,Zt)}}return ye}function ya(){(O&1)===0&&(O|=1,t.enableSubstitution(214),t.enableSubstitution(212),t.enableSubstitution(213),t.enableEmitNotification(264),t.enableEmitNotification(175),t.enableEmitNotification(178),t.enableEmitNotification(179),t.enableEmitNotification(177),t.enableEmitNotification(244))}function Ls(ye,et,Ct){if(O&1&&Ee(et)){let Ot=(f.hasNodeCheckFlag(et,128)?128:0)|(f.hasNodeCheckFlag(et,256)?256:0);if(Ot!==U){let ar=U;U=Ot,k(ye,et,Ct),U=ar;return}}else if(O&&ae[hl(et)]){let Ot=U;U=0,k(ye,et,Ct),U=Ot;return}k(ye,et,Ct)}function yc(ye,et){return et=T(ye,et),ye===1&&U?Cn(et):et}function Cn(ye){switch(ye.kind){case 212:return Es(ye);case 213:return Dt(ye);case 214:return ur(ye)}return ye}function Es(ye){return ye.expression.kind===108?qt(n.createPropertyAccessExpression(n.createUniqueName("_super",48),ye.name),ye):ye}function Dt(ye){return ye.expression.kind===108?Bt(ye.argumentExpression,ye):ye}function ur(ye){let et=ye.expression;if(_g(et)){let Ct=no(et)?Es(et):Dt(et);return n.createCallExpression(n.createPropertyAccessExpression(Ct,"call"),void 0,[n.createThis(),...ye.arguments])}return ye}function Ee(ye){let et=ye.kind;return et===264||et===177||et===175||et===178||et===179}function Bt(ye,et){return U&256?qt(n.createPropertyAccessExpression(n.createCallExpression(n.createIdentifier("_superIndex"),void 0,[ye]),"value"),et):qt(n.createCallExpression(n.createIdentifier("_superIndex"),void 0,[ye]),et)}}function rOe(t){let n=t.factory;return Cv(t,a);function a(_){return _.isDeclarationFile?_:Dn(_,c,t)}function c(_){return(_.transformFlags&64)===0?_:_.kind===300?u(_):Dn(_,c,t)}function u(_){return _.variableDeclaration?Dn(_,c,t):n.updateCatchClause(_,n.createVariableDeclaration(n.createTempVariable(void 0)),At(_.block,c,Vs))}}function nOe(t){let{factory:n,hoistVariableDeclaration:a}=t;return Cv(t,c);function c(M){return M.isDeclarationFile?M:Dn(M,u,t)}function u(M){if((M.transformFlags&32)===0)return M;switch(M.kind){case 214:{let U=g(M,!1);return $.assertNotNode(U,xF),U}case 212:case 213:if(xm(M)){let U=T(M,!1,!1);return $.assertNotNode(U,xF),U}return Dn(M,u,t);case 227:return M.operatorToken.kind===61?O(M):Dn(M,u,t);case 221:return F(M);default:return Dn(M,u,t)}}function _(M){$.assertNotNode(M,$te);let U=[M];for(;!M.questionDotToken&&!xA(M);)M=Ba(q1(M.expression),xm),$.assertNotNode(M,$te),U.unshift(M);return{expression:M.expression,chain:U}}function f(M,U,J){let G=k(M.expression,U,J);return xF(G)?n.createSyntheticReferenceExpression(n.updateParenthesizedExpression(M,G.expression),G.thisArg):n.updateParenthesizedExpression(M,G)}function y(M,U,J){if(xm(M))return T(M,U,J);let G=At(M.expression,u,Vt);$.assertNotNode(G,xF);let Z;return U&&(DP(G)?Z=G:(Z=n.createTempVariable(a),G=n.createAssignment(Z,G))),G=M.kind===212?n.updatePropertyAccessExpression(M,G,At(M.name,u,ct)):n.updateElementAccessExpression(M,G,At(M.argumentExpression,u,Vt)),Z?n.createSyntheticReferenceExpression(G,Z):G}function g(M,U){if(xm(M))return T(M,U,!1);if(mh(M.expression)&&xm(bl(M.expression))){let J=f(M.expression,!0,!1),G=Bn(M.arguments,u,Vt);return xF(J)?qt(n.createFunctionCallCall(J.expression,J.thisArg,G),M):n.updateCallExpression(M,J,void 0,G)}return Dn(M,u,t)}function k(M,U,J){switch(M.kind){case 218:return f(M,U,J);case 212:case 213:return y(M,U,J);case 214:return g(M,U);default:return At(M,u,Vt)}}function T(M,U,J){let{expression:G,chain:Z}=_(M),Q=k(q1(G),O4(Z[0]),!1),re=xF(Q)?Q.thisArg:void 0,ae=xF(Q)?Q.expression:Q,_e=n.restoreOuterExpressions(G,ae,8);DP(ae)||(ae=n.createTempVariable(a),_e=n.createAssignment(ae,_e));let me=ae,le;for(let be=0;beBe&&En(de,Bn(Ae.statements,C,fa,Be,ze-Be));break}ze++}$.assert(zeJ(de,Be))))],Be,Fe===2)}return Dn(Ae,C,t)}function Z(Ae,Fe,Be,de,ze){let ut=[];for(let Le=Fe;Len&&(n=c)}return n}function ysr(t){let n=0;for(let a of t){let c=u0e(a.statements);if(c===2)return 2;c>n&&(n=c)}return n}function cOe(t){let{factory:n,getEmitHelperFactory:a}=t,c=t.getCompilerOptions(),u,_;return Cv(t,C);function f(){if(_.filenameDeclaration)return _.filenameDeclaration.name;let ke=n.createVariableDeclaration(n.createUniqueName("_jsxFileName",48),void 0,void 0,n.createStringLiteral(u.fileName));return _.filenameDeclaration=ke,_.filenameDeclaration.name}function y(ke){return c.jsx===5?"jsxDEV":ke?"jsxs":"jsx"}function g(ke){let _t=y(ke);return T(_t)}function k(){return T("Fragment")}function T(ke){var _t,Se;let tt=ke==="createElement"?_.importSpecifier:une(_.importSpecifier,c),Qe=(Se=(_t=_.utilizedImplicitRuntimeImports)==null?void 0:_t.get(tt))==null?void 0:Se.get(ke);if(Qe)return Qe.name;_.utilizedImplicitRuntimeImports||(_.utilizedImplicitRuntimeImports=new Map);let We=_.utilizedImplicitRuntimeImports.get(tt);We||(We=new Map,_.utilizedImplicitRuntimeImports.set(tt,We));let St=n.createUniqueName(`_${ke}`,112),Kt=n.createImportSpecifier(!1,n.createIdentifier(ke),St);return C3e(St,Kt),We.set(ke,Kt),St}function C(ke){if(ke.isDeclarationFile)return ke;u=ke,_={},_.importSpecifier=yH(c,ke);let _t=Dn(ke,O,t);Ux(_t,t.readEmitHelpers());let Se=_t.statements;if(_.filenameDeclaration&&(Se=B4(Se.slice(),n.createVariableStatement(void 0,n.createVariableDeclarationList([_.filenameDeclaration],2)))),_.utilizedImplicitRuntimeImports){for(let[tt,Qe]of so(_.utilizedImplicitRuntimeImports.entries()))if(yd(ke)){let We=n.createImportDeclaration(void 0,n.createImportClause(void 0,void 0,n.createNamedImports(so(Qe.values()))),n.createStringLiteral(tt),void 0);vA(We,!1),Se=B4(Se.slice(),We)}else if(Lg(ke)){let We=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createObjectBindingPattern(so(Qe.values(),St=>n.createBindingElement(void 0,St.propertyName,St.name))),void 0,void 0,n.createCallExpression(n.createIdentifier("require"),void 0,[n.createStringLiteral(tt)]))],2));vA(We,!1),Se=B4(Se.slice(),We)}}return Se!==_t.statements&&(_t=n.updateSourceFile(_t,Se)),_=void 0,_t}function O(ke){return ke.transformFlags&2?F(ke):ke}function F(ke){switch(ke.kind){case 285:return Z(ke,!1);case 286:return Q(ke,!1);case 289:return re(ke,!1);case 295:return It(ke);default:return Dn(ke,O,t)}}function M(ke){switch(ke.kind){case 12:return ze(ke);case 295:return It(ke);case 285:return Z(ke,!0);case 286:return Q(ke,!0);case 289:return re(ke,!0);default:return $.failBadSyntaxKind(ke)}}function U(ke){return ke.properties.some(_t=>td(_t)&&(ct(_t.name)&&Zi(_t.name)==="__proto__"||Ic(_t.name)&&_t.name.text==="__proto__"))}function J(ke){let _t=!1;for(let Se of ke.attributes.properties)if(TF(Se)&&(!Lc(Se.expression)||Se.expression.properties.some(qx)))_t=!0;else if(_t&&NS(Se)&&ct(Se.name)&&Se.name.escapedText==="key")return!0;return!1}function G(ke){return _.importSpecifier===void 0||J(ke)}function Z(ke,_t){return(G(ke.openingElement)?Oe:me)(ke.openingElement,ke.children,_t,ke)}function Q(ke,_t){return(G(ke)?Oe:me)(ke,void 0,_t,ke)}function re(ke,_t){return(_.importSpecifier===void 0?ue:be)(ke.openingFragment,ke.children,_t,ke)}function ae(ke){let _t=_e(ke);return _t&&n.createObjectLiteralExpression([_t])}function _e(ke){let _t=YR(ke);if(te(_t)===1&&!_t[0].dotDotDotToken){let tt=M(_t[0]);return tt&&n.createPropertyAssignment("children",tt)}let Se=Wn(ke,M);return te(Se)?n.createPropertyAssignment("children",n.createArrayLiteralExpression(Se)):void 0}function me(ke,_t,Se,tt){let Qe=Ve(ke),We=_t&&_t.length?_e(_t):void 0,St=wt(ke.attributes.properties,nn=>!!nn.name&&ct(nn.name)&&nn.name.escapedText==="key"),Kt=St?yr(ke.attributes.properties,nn=>nn!==St):ke.attributes.properties,Sr=te(Kt)?Ce(Kt,We):n.createObjectLiteralExpression(We?[We]:j);return le(Qe,Sr,St,_t||j,Se,tt)}function le(ke,_t,Se,tt,Qe,We){var St;let Kt=YR(tt),Sr=te(Kt)>1||!!((St=Kt[0])!=null&&St.dotDotDotToken),nn=[ke,_t];if(Se&&nn.push(de(Se.initializer)),c.jsx===5){let $t=Ku(u);if($t&&Ta($t)){Se===void 0&&nn.push(n.createVoidZero()),nn.push(Sr?n.createTrue():n.createFalse());let Dr=qs($t,We.pos);nn.push(n.createObjectLiteralExpression([n.createPropertyAssignment("fileName",f()),n.createPropertyAssignment("lineNumber",n.createNumericLiteral(Dr.line+1)),n.createPropertyAssignment("columnNumber",n.createNumericLiteral(Dr.character+1))])),nn.push(n.createThis())}}let Nn=qt(n.createCallExpression(g(Sr),void 0,nn),We);return Qe&&Dm(Nn),Nn}function Oe(ke,_t,Se,tt){let Qe=Ve(ke),We=ke.attributes.properties,St=te(We)?Ce(We):n.createNull(),Kt=_.importSpecifier===void 0?Wge(n,t.getEmitResolver().getJsxFactoryEntity(u),c.reactNamespace,ke):T("createElement"),Sr=aNe(n,Kt,Qe,St,Wn(_t,M),tt);return Se&&Dm(Sr),Sr}function be(ke,_t,Se,tt){let Qe;if(_t&&_t.length){let We=ae(_t);We&&(Qe=We)}return le(k(),Qe||n.createObjectLiteralExpression([]),void 0,_t,Se,tt)}function ue(ke,_t,Se,tt){let Qe=sNe(n,t.getEmitResolver().getJsxFactoryEntity(u),t.getEmitResolver().getJsxFragmentFactoryEntity(u),c.reactNamespace,Wn(_t,M),ke,tt);return Se&&Dm(Qe),Qe}function De(ke){return Lc(ke.expression)&&!U(ke.expression)?Zo(ke.expression.properties,_t=>$.checkDefined(At(_t,O,MT))):n.createSpreadAssignment($.checkDefined(At(ke.expression,O,Vt)))}function Ce(ke,_t){let Se=$c(c);return Se&&Se>=5?n.createObjectLiteralExpression(Ae(ke,_t)):Fe(ke,_t)}function Ae(ke,_t){let Se=Rc(Wu(ke,TF,(tt,Qe)=>Rc(Cr(tt,We=>Qe?De(We):Be(We)))));return _t&&Se.push(_t),Se}function Fe(ke,_t){let Se=[],tt=[];for(let We of ke){if(TF(We)){if(Lc(We.expression)&&!U(We.expression)){for(let St of We.expression.properties){if(qx(St)){Qe(),Se.push($.checkDefined(At(St.expression,O,Vt)));continue}tt.push($.checkDefined(At(St,O)))}continue}Qe(),Se.push($.checkDefined(At(We.expression,O,Vt)));continue}tt.push(Be(We))}return _t&&tt.push(_t),Qe(),Se.length&&!Lc(Se[0])&&Se.unshift(n.createObjectLiteralExpression()),to(Se)||a().createAssignHelper(Se);function Qe(){tt.length&&(Se.push(n.createObjectLiteralExpression(tt)),tt=[])}}function Be(ke){let _t=nt(ke),Se=de(ke.initializer);return n.createPropertyAssignment(_t,Se)}function de(ke){if(ke===void 0)return n.createTrue();if(ke.kind===11){let _t=ke.singleQuote!==void 0?ke.singleQuote:!Dre(ke,u),Se=n.createStringLiteral(Le(ke.text)||ke.text,_t);return qt(Se,ke)}return ke.kind===295?ke.expression===void 0?n.createTrue():$.checkDefined(At(ke.expression,O,Vt)):PS(ke)?Z(ke,!1):u3(ke)?Q(ke,!1):DA(ke)?re(ke,!1):$.failBadSyntaxKind(ke)}function ze(ke){let _t=ut(ke.text);return _t===void 0?void 0:n.createStringLiteral(_t)}function ut(ke){let _t,Se=0,tt=-1;for(let Qe=0;Qe{if(We)return Gk(parseInt(We,10));if(St)return Gk(parseInt(St,16));{let Sr=vsr.get(Kt);return Sr?Gk(Sr):_t}})}function Le(ke){let _t=ve(ke);return _t===ke?void 0:_t}function Ve(ke){if(ke.kind===285)return Ve(ke.openingElement);{let _t=ke.tagName;return ct(_t)&&eL(_t.escapedText)?n.createStringLiteral(Zi(_t)):Ev(_t)?n.createStringLiteral(Zi(_t.namespace)+":"+Zi(_t.name)):JH(n,_t)}}function nt(ke){let _t=ke.name;if(ct(_t)){let Se=Zi(_t);return/^[A-Z_]\w*$/i.test(Se)?_t:n.createStringLiteral(Se)}return n.createStringLiteral(Zi(_t.namespace)+":"+Zi(_t.name))}function It(ke){let _t=At(ke.expression,O,Vt);return ke.dotDotDotToken?n.createSpreadElement(_t):_t}}var vsr=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}));function lOe(t){let{factory:n,hoistVariableDeclaration:a}=t;return Cv(t,c);function c(g){return g.isDeclarationFile?g:Dn(g,u,t)}function u(g){return(g.transformFlags&512)===0?g:g.kind===227?_(g):Dn(g,u,t)}function _(g){switch(g.operatorToken.kind){case 68:return f(g);case 43:return y(g);default:return Dn(g,u,t)}}function f(g){let k,T,C=At(g.left,u,Vt),O=At(g.right,u,Vt);if(mu(C)){let F=n.createTempVariable(a),M=n.createTempVariable(a);k=qt(n.createElementAccessExpression(qt(n.createAssignment(F,C.expression),C.expression),qt(n.createAssignment(M,C.argumentExpression),C.argumentExpression)),C),T=qt(n.createElementAccessExpression(F,M),C)}else if(no(C)){let F=n.createTempVariable(a);k=qt(n.createPropertyAccessExpression(qt(n.createAssignment(F,C.expression),C.expression),C.name),C),T=qt(n.createPropertyAccessExpression(F,C.name),C)}else k=C,T=C;return qt(n.createAssignment(k,qt(n.createGlobalMethodCall("Math","pow",[T,O]),g)),g)}function y(g){let k=At(g.left,u,Vt),T=At(g.right,u,Vt);return qt(n.createGlobalMethodCall("Math","pow",[k,T]),g)}}function C_t(t,n){return{kind:t,expression:n}}function uOe(t){let{factory:n,getEmitHelperFactory:a,startLexicalEnvironment:c,resumeLexicalEnvironment:u,endLexicalEnvironment:_,hoistVariableDeclaration:f}=t,y=t.getCompilerOptions(),g=t.getEmitResolver(),k=t.onSubstituteNode,T=t.onEmitNode;t.onEmitNode=uf,t.onSubstituteNode=D0;let C,O,F,M;function U(xe){M=jt(M,n.createVariableDeclaration(xe))}let J,G=0;return Cv(t,Z);function Z(xe){if(xe.isDeclarationFile)return xe;C=xe,O=xe.text;let Ft=Ce(xe);return Ux(Ft,t.readEmitHelpers()),C=void 0,O=void 0,M=void 0,F=0,Ft}function Q(xe,Ft){let Nr=F;return F=(F&~xe|Ft)&32767,Nr}function re(xe,Ft,Nr){F=(F&~Ft|Nr)&-32768|xe}function ae(xe){return(F&8192)!==0&&xe.kind===254&&!xe.expression}function _e(xe){return xe.transformFlags&4194304&&(gy(xe)||EA(xe)||J3e(xe)||pz(xe)||_z(xe)||bL(xe)||dz(xe)||c3(xe)||TP(xe)||bC(xe)||rC(xe,!1)||Vs(xe))}function me(xe){return(xe.transformFlags&1024)!==0||J!==void 0||F&8192&&_e(xe)||rC(xe,!1)&&$a(xe)||(J1(xe)&1)!==0}function le(xe){return me(xe)?De(xe,!1):xe}function Oe(xe){return me(xe)?De(xe,!0):xe}function be(xe){if(me(xe)){let Ft=Ku(xe);if(ps(Ft)&&fd(Ft)){let Nr=Q(32670,16449),Mr=De(xe,!1);return re(Nr,229376,0),Mr}return De(xe,!1)}return xe}function ue(xe){return xe.kind===108?vy(xe,!0):le(xe)}function De(xe,Ft){switch(xe.kind){case 126:return;case 264:return Ve(xe);case 232:return nt(xe);case 170:return yc(xe);case 263:return xr(xe);case 220:return pr(xe);case 219:return Et(xe);case 261:return Rn(xe);case 80:return ve(xe);case 262:return Ge(xe);case 256:return Ae(xe);case 270:return Fe(xe);case 242:return er(xe,!1);case 253:case 252:return Le(xe);case 257:return rr(xe);case 247:case 248:return pn(xe,void 0);case 249:return tn(xe,void 0);case 250:return cn(xe,void 0);case 251:return gn(xe,void 0);case 245:return Ne(xe);case 211:return ec(xe);case 300:return ua(xe);case 305:return ep(xe);case 168:return W_(xe);case 210:return xu(xe);case 214:return a_(xe);case 215:return yy(xe);case 218:return Y(xe,Ft);case 227:return ot(xe,Ft);case 357:return pe(xe,Ft);case 15:case 16:case 17:case 18:return tl(xe);case 11:return Uc(xe);case 9:return nd(xe);case 216:return Mu(xe);case 229:return Dp(xe);case 230:return g_(xe);case 231:return el(xe);case 108:return vy(xe,!1);case 110:return ut(xe);case 237:return If(xe);case 175:return Bl(xe);case 178:case 179:return xc(xe);case 244:return mr(xe);case 254:return ze(xe);case 223:return je(xe);default:return Dn(xe,le,t)}}function Ce(xe){let Ft=Q(8064,64),Nr=[],Mr=[];c();let wn=n.copyPrologue(xe.statements,Nr,!1,le);return En(Mr,Bn(xe.statements,le,fa,wn)),M&&Mr.push(n.createVariableStatement(void 0,n.createVariableDeclarationList(M))),n.mergeLexicalEnvironment(Nr,_()),ye(Nr,xe),re(Ft,0,0),n.updateSourceFile(xe,qt(n.createNodeArray(go(Nr,Mr)),xe.statements))}function Ae(xe){if(J!==void 0){let Ft=J.allowedNonLabeledJumps;J.allowedNonLabeledJumps|=2;let Nr=Dn(xe,le,t);return J.allowedNonLabeledJumps=Ft,Nr}return Dn(xe,le,t)}function Fe(xe){let Ft=Q(7104,0),Nr=Dn(xe,le,t);return re(Ft,0,0),Nr}function Be(xe){return Yi(n.createReturnStatement(de()),xe)}function de(){return n.createUniqueName("_this",48)}function ze(xe){return J?(J.nonLocalJumps|=8,ae(xe)&&(xe=Be(xe)),n.createReturnStatement(n.createObjectLiteralExpression([n.createPropertyAssignment(n.createIdentifier("value"),xe.expression?$.checkDefined(At(xe.expression,le,Vt)):n.createVoidZero())]))):ae(xe)?Be(xe):Dn(xe,le,t)}function ut(xe){return F|=65536,F&2&&!(F&16384)&&(F|=131072),J?F&2?(J.containsLexicalThis=!0,xe):J.thisName||(J.thisName=n.createUniqueName("this")):xe}function je(xe){return Dn(xe,Oe,t)}function ve(xe){return J&&g.isArgumentsLocalBinding(xe)?J.argumentsName||(J.argumentsName=n.createUniqueName("arguments")):xe.flags&256?Yi(qt(n.createIdentifier(oa(xe.escapedText)),xe),xe):xe}function Le(xe){if(J){let Ft=xe.kind===253?2:4;if(!(xe.label&&J.labels&&J.labels.get(Zi(xe.label))||!xe.label&&J.allowedNonLabeledJumps&Ft)){let Mr,wn=xe.label;wn?xe.kind===253?(Mr=`break-${wn.escapedText}`,st(J,!0,Zi(wn),Mr)):(Mr=`continue-${wn.escapedText}`,st(J,!1,Zi(wn),Mr)):xe.kind===253?(J.nonLocalJumps|=2,Mr="break"):(J.nonLocalJumps|=4,Mr="continue");let Yn=n.createStringLiteral(Mr);if(J.loopOutParameters.length){let fo=J.loopOutParameters,Mo;for(let Ea=0;Eact(Ft.name)&&!Ft.initializer)}function St(xe){if(U4(xe))return!0;if(!(xe.transformFlags&134217728))return!1;switch(xe.kind){case 220:case 219:case 263:case 177:case 176:return!1;case 178:case 179:case 175:case 173:{let Ft=xe;return dc(Ft.name)?!!Is(Ft.name,St):!1}}return!!Is(xe,St)}function Kt(xe,Ft,Nr,Mr){let wn=!!Nr&&Wp(Nr.expression).kind!==106;if(!xe)return Qe(Ft,wn);let Yn=[],fo=[];u();let Mo=n.copyStandardPrologue(xe.body.statements,Yn,0);(Mr||St(xe.body))&&(F|=8192),En(fo,Bn(xe.body.statements,le,fa,Mo));let Ea=wn||F&8192;Es(Yn,xe),Bt(Yn,xe,Mr),Ct(Yn,xe),Ea?et(Yn,xe,ya()):ye(Yn,xe),n.mergeLexicalEnvironment(Yn,_()),Ea&&!Eo(xe.body)&&fo.push(n.createReturnStatement(de()));let ee=n.createBlock(qt(n.createNodeArray([...Yn,...fo]),xe.body.statements),!0);return qt(ee,xe.body),vo(ee,xe.body,Mr)}function Sr(xe){return ap(xe)&&Zi(xe)==="_this"}function nn(xe){return ap(xe)&&Zi(xe)==="_super"}function Nn(xe){return h_(xe)&&xe.declarationList.declarations.length===1&&$t(xe.declarationList.declarations[0])}function $t(xe){return Oo(xe)&&Sr(xe.name)&&!!xe.initializer}function Dr(xe){return of(xe,!0)&&Sr(xe.left)}function Qn(xe){return Js(xe)&&no(xe.expression)&&nn(xe.expression.expression)&&ct(xe.expression.name)&&(Zi(xe.expression.name)==="call"||Zi(xe.expression.name)==="apply")&&xe.arguments.length>=1&&xe.arguments[0].kind===110}function Ko(xe){return wi(xe)&&xe.operatorToken.kind===57&&xe.right.kind===110&&Qn(xe.left)}function is(xe){return wi(xe)&&xe.operatorToken.kind===56&&wi(xe.left)&&xe.left.operatorToken.kind===38&&nn(xe.left.left)&&xe.left.right.kind===106&&Qn(xe.right)&&Zi(xe.right.expression.name)==="apply"}function sr(xe){return wi(xe)&&xe.operatorToken.kind===57&&xe.right.kind===110&&is(xe.left)}function uo(xe){return Dr(xe)&&Ko(xe.right)}function Wa(xe){return Dr(xe)&&sr(xe.right)}function oo(xe){return Qn(xe)||Ko(xe)||uo(xe)||is(xe)||sr(xe)||Wa(xe)}function Oi(xe){for(let Ft=0;Ft0;Mr--){let wn=xe.statements[Mr];if(gy(wn)&&wn.expression&&Sr(wn.expression)){let Yn=xe.statements[Mr-1],fo;if(af(Yn)&&uo(Wp(Yn.expression)))fo=Yn.expression;else if(Nr&&Nn(Yn)){let ee=Yn.declarationList.declarations[0];oo(Wp(ee.initializer))&&(fo=n.createAssignment(de(),ee.initializer))}if(!fo)break;let Mo=n.createReturnStatement(fo);Yi(Mo,Yn),qt(Mo,Yn);let Ea=n.createNodeArray([...xe.statements.slice(0,Mr-1),Mo,...xe.statements.slice(Mr+1)]);return qt(Ea,xe.statements),n.updateBlock(xe,Ea)}}return xe}function ft(xe){if(Nn(xe)){if(xe.declarationList.declarations[0].initializer.kind===110)return}else if(Dr(xe))return n.createPartiallyEmittedExpression(xe.right,xe);switch(xe.kind){case 220:case 219:case 263:case 177:case 176:return xe;case 178:case 179:case 175:case 173:{let Ft=xe;return dc(Ft.name)?n.replacePropertyName(Ft,Dn(Ft.name,ft,void 0)):xe}}return Dn(xe,ft,void 0)}function Ht(xe,Ft){if(Ft.transformFlags&16384||F&65536||F&131072)return xe;for(let Nr of Ft.statements)if(Nr.transformFlags&134217728&&!jie(Nr))return xe;return n.updateBlock(xe,Bn(xe.statements,ft,fa))}function Wr(xe){if(Qn(xe)&&xe.arguments.length===2&&ct(xe.arguments[1])&&Zi(xe.arguments[1])==="arguments")return n.createLogicalAnd(n.createStrictInequality(Kp(),n.createNull()),xe);switch(xe.kind){case 220:case 219:case 263:case 177:case 176:return xe;case 178:case 179:case 175:case 173:{let Ft=xe;return dc(Ft.name)?n.replacePropertyName(Ft,Dn(Ft.name,Wr,void 0)):xe}}return Dn(xe,Wr,void 0)}function ai(xe){return n.updateBlock(xe,Bn(xe.statements,Wr,fa))}function vo(xe,Ft,Nr){let Mr=xe;return xe=Oi(xe),xe=$o(xe,Ft),xe!==Mr&&(xe=Ht(xe,Ft)),Nr&&(xe=ai(xe)),xe}function Eo(xe){if(xe.kind===254)return!0;if(xe.kind===246){let Ft=xe;if(Ft.elseStatement)return Eo(Ft.thenStatement)&&Eo(Ft.elseStatement)}else if(xe.kind===242){let Ft=Yr(xe.statements);if(Ft&&Eo(Ft))return!0}return!1}function ya(){return Ai(n.createThis(),8)}function Ls(){return n.createLogicalOr(n.createLogicalAnd(n.createStrictInequality(Kp(),n.createNull()),n.createFunctionApplyCall(Kp(),ya(),n.createIdentifier("arguments"))),ya())}function yc(xe){if(!xe.dotDotDotToken)return $s(xe.name)?Yi(qt(n.createParameterDeclaration(void 0,void 0,n.getGeneratedNameForNode(xe),void 0,void 0,void 0),xe),xe):xe.initializer?Yi(qt(n.createParameterDeclaration(void 0,void 0,xe.name,void 0,void 0,void 0),xe),xe):xe}function Cn(xe){return xe.initializer!==void 0||$s(xe.name)}function Es(xe,Ft){if(!Pt(Ft.parameters,Cn))return!1;let Nr=!1;for(let Mr of Ft.parameters){let{name:wn,initializer:Yn,dotDotDotToken:fo}=Mr;fo||($s(wn)?Nr=Dt(xe,Mr,wn,Yn)||Nr:Yn&&(ur(xe,Mr,wn,Yn),Nr=!0))}return Nr}function Dt(xe,Ft,Nr,Mr){return Nr.elements.length>0?(B4(xe,Ai(n.createVariableStatement(void 0,n.createVariableDeclarationList(AP(Ft,le,t,0,n.getGeneratedNameForNode(Ft)))),2097152)),!0):Mr?(B4(xe,Ai(n.createExpressionStatement(n.createAssignment(n.getGeneratedNameForNode(Ft),$.checkDefined(At(Mr,le,Vt)))),2097152)),!0):!1}function ur(xe,Ft,Nr,Mr){Mr=$.checkDefined(At(Mr,le,Vt));let wn=n.createIfStatement(n.createTypeCheck(n.cloneNode(Nr),"undefined"),Ai(qt(n.createBlock([n.createExpressionStatement(Ai(qt(n.createAssignment(Ai(xl(qt(n.cloneNode(Nr),Nr),Nr.parent),96),Ai(Mr,96|Xc(Mr)|3072)),Ft),3072))]),Ft),3905));Dm(wn),qt(wn,Ft),Ai(wn,2101056),B4(xe,wn)}function Ee(xe,Ft){return!!(xe&&xe.dotDotDotToken&&!Ft)}function Bt(xe,Ft,Nr){let Mr=[],wn=Yr(Ft.parameters);if(!Ee(wn,Nr))return!1;let Yn=wn.name.kind===80?xl(qt(n.cloneNode(wn.name),wn.name),wn.name.parent):n.createTempVariable(void 0);Ai(Yn,96);let fo=wn.name.kind===80?n.cloneNode(wn.name):Yn,Mo=Ft.parameters.length-1,Ea=n.createLoopVariable();Mr.push(Ai(qt(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Yn,void 0,void 0,n.createArrayLiteralExpression([]))])),wn),2097152));let ee=n.createForStatement(qt(n.createVariableDeclarationList([n.createVariableDeclaration(Ea,void 0,void 0,n.createNumericLiteral(Mo))]),wn),qt(n.createLessThan(Ea,n.createPropertyAccessExpression(n.createIdentifier("arguments"),"length")),wn),qt(n.createPostfixIncrement(Ea),wn),n.createBlock([Dm(qt(n.createExpressionStatement(n.createAssignment(n.createElementAccessExpression(fo,Mo===0?Ea:n.createSubtract(Ea,n.createNumericLiteral(Mo))),n.createElementAccessExpression(n.createIdentifier("arguments"),Ea))),wn))]));return Ai(ee,2097152),Dm(ee),Mr.push(ee),wn.name.kind!==80&&Mr.push(Ai(qt(n.createVariableStatement(void 0,n.createVariableDeclarationList(AP(wn,le,t,0,fo))),wn),2097152)),Sme(xe,Mr),!0}function ye(xe,Ft){return F&131072&&Ft.kind!==220?(et(xe,Ft,n.createThis()),!0):!1}function et(xe,Ft,Nr){Ym();let Mr=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(de(),void 0,void 0,Nr)]));Ai(Mr,2100224),Jc(Mr,Ft),B4(xe,Mr)}function Ct(xe,Ft){if(F&32768){let Nr;switch(Ft.kind){case 220:return xe;case 175:case 178:case 179:Nr=n.createVoidZero();break;case 177:Nr=n.createPropertyAccessExpression(Ai(n.createThis(),8),"constructor");break;case 263:case 219:Nr=n.createConditionalExpression(n.createLogicalAnd(Ai(n.createThis(),8),n.createBinaryExpression(Ai(n.createThis(),8),104,n.getLocalName(Ft))),void 0,n.createPropertyAccessExpression(Ai(n.createThis(),8),"constructor"),void 0,n.createVoidZero());break;default:return $.failBadSyntaxKind(Ft)}let Mr=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createUniqueName("_newTarget",48),void 0,void 0,Nr)]));Ai(Mr,2100224),B4(xe,Mr)}return xe}function Ot(xe,Ft){for(let Nr of Ft.members)switch(Nr.kind){case 241:xe.push(ar(Nr));break;case 175:xe.push(at(Hy(Ft,Nr),Nr,Ft));break;case 178:case 179:let Mr=uP(Ft.members,Nr);Nr===Mr.firstAccessor&&xe.push(Zt(Hy(Ft,Nr),Mr,Ft));break;case 177:case 176:break;default:$.failBadSyntaxKind(Nr,C&&C.fileName);break}}function ar(xe){return qt(n.createEmptyStatement(),xe)}function at(xe,Ft,Nr){let Mr=DS(Ft),wn=yE(Ft),Yn=gi(Ft,Ft,void 0,Nr),fo=At(Ft.name,le,q_);$.assert(fo);let Mo;if(!Aa(fo)&&hH(t.getCompilerOptions())){let ee=dc(fo)?fo.expression:ct(fo)?n.createStringLiteral(oa(fo.escapedText)):fo;Mo=n.createObjectDefinePropertyCall(xe,ee,n.createPropertyDescriptor({value:Yn,enumerable:!1,writable:!0,configurable:!0}))}else{let ee=d3(n,xe,fo,Ft.name);Mo=n.createAssignment(ee,Yn)}Ai(Yn,3072),Jc(Yn,wn);let Ea=qt(n.createExpressionStatement(Mo),Ft);return Yi(Ea,Ft),Y_(Ea,Mr),Ai(Ea,96),Ea}function Zt(xe,Ft,Nr){let Mr=n.createExpressionStatement(Qt(xe,Ft,Nr,!1));return Ai(Mr,3072),Jc(Mr,yE(Ft.firstAccessor)),Mr}function Qt(xe,{firstAccessor:Ft,getAccessor:Nr,setAccessor:Mr},wn,Yn){let fo=xl(qt(n.cloneNode(xe),xe),xe.parent);Ai(fo,3136),Jc(fo,Ft.name);let Mo=At(Ft.name,le,q_);if($.assert(Mo),Aa(Mo))return $.failBadSyntaxKind(Mo,"Encountered unhandled private identifier while transforming ES2015.");let Ea=Hge(n,Mo);Ai(Ea,3104),Jc(Ea,Ft.name);let ee=[];if(Nr){let cr=gi(Nr,void 0,void 0,wn);Jc(cr,yE(Nr)),Ai(cr,1024);let In=n.createPropertyAssignment("get",cr);Y_(In,DS(Nr)),ee.push(In)}if(Mr){let cr=gi(Mr,void 0,void 0,wn);Jc(cr,yE(Mr)),Ai(cr,1024);let In=n.createPropertyAssignment("set",cr);Y_(In,DS(Mr)),ee.push(In)}ee.push(n.createPropertyAssignment("enumerable",Nr||Mr?n.createFalse():n.createTrue()),n.createPropertyAssignment("configurable",n.createTrue()));let it=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[fo,Ea,n.createObjectLiteralExpression(ee,!0)]);return Yn&&Dm(it),it}function pr(xe){xe.transformFlags&16384&&!(F&16384)&&(F|=131072);let Ft=J;J=void 0;let Nr=Q(15232,66),Mr=n.createFunctionExpression(void 0,void 0,void 0,void 0,Rp(xe.parameters,le,t),void 0,Ye(xe));return qt(Mr,xe),Yi(Mr,xe),Ai(Mr,16),re(Nr,0,0),J=Ft,Mr}function Et(xe){let Ft=Xc(xe)&524288?Q(32662,69):Q(32670,65),Nr=J;J=void 0;let Mr=Rp(xe.parameters,le,t),wn=Ye(xe),Yn=F&32768?n.getLocalName(xe):xe.name;return re(Ft,229376,0),J=Nr,n.updateFunctionExpression(xe,void 0,xe.asteriskToken,Yn,void 0,Mr,void 0,wn)}function xr(xe){let Ft=J;J=void 0;let Nr=Q(32670,65),Mr=Rp(xe.parameters,le,t),wn=Ye(xe),Yn=F&32768?n.getLocalName(xe):xe.name;return re(Nr,229376,0),J=Ft,n.updateFunctionDeclaration(xe,Bn(xe.modifiers,le,bc),xe.asteriskToken,Yn,void 0,Mr,void 0,wn)}function gi(xe,Ft,Nr,Mr){let wn=J;J=void 0;let Yn=Mr&&Co(Mr)&&!oc(xe)?Q(32670,73):Q(32670,65),fo=Rp(xe.parameters,le,t),Mo=Ye(xe);return F&32768&&!Nr&&(xe.kind===263||xe.kind===219)&&(Nr=n.getGeneratedNameForNode(xe)),re(Yn,229376,0),J=wn,Yi(qt(n.createFunctionExpression(void 0,xe.asteriskToken,Nr,void 0,fo,void 0,Mo),Ft),xe)}function Ye(xe){let Ft=!1,Nr=!1,Mr,wn,Yn=[],fo=[],Mo=xe.body,Ea;if(u(),Vs(Mo)&&(Ea=n.copyStandardPrologue(Mo.statements,Yn,0,!1),Ea=n.copyCustomPrologue(Mo.statements,fo,Ea,le,_re),Ea=n.copyCustomPrologue(Mo.statements,fo,Ea,le,dre)),Ft=Es(fo,xe)||Ft,Ft=Bt(fo,xe,!1)||Ft,Vs(Mo))Ea=n.copyCustomPrologue(Mo.statements,fo,Ea,le),Mr=Mo.statements,En(fo,Bn(Mo.statements,le,fa,Ea)),!Ft&&Mo.multiLine&&(Ft=!0);else{$.assert(xe.kind===220),Mr=Zre(Mo,-1);let it=xe.equalsGreaterThanToken;!fu(it)&&!fu(Mo)&&(uH(it,Mo,C)?Nr=!0:Ft=!0);let cr=At(Mo,le,Vt),In=n.createReturnStatement(cr);qt(In,Mo),S3e(In,Mo),Ai(In,2880),fo.push(In),wn=Mo}if(n.mergeLexicalEnvironment(Yn,_()),Ct(Yn,xe),ye(Yn,xe),Pt(Yn)&&(Ft=!0),fo.unshift(...Yn),Vs(Mo)&&__(fo,Mo.statements))return Mo;let ee=n.createBlock(qt(n.createNodeArray(fo),Mr),Ft);return qt(ee,xe.body),!Ft&&Nr&&Ai(ee,1),wn&&v3e(ee,20,wn),Yi(ee,xe.body),ee}function er(xe,Ft){if(Ft)return Dn(xe,le,t);let Nr=F&256?Q(7104,512):Q(6976,128),Mr=Dn(xe,le,t);return re(Nr,0,0),Mr}function Ne(xe){return Dn(xe,Oe,t)}function Y(xe,Ft){return Dn(xe,Ft?Oe:le,t)}function ot(xe,Ft){return dE(xe)?v3(xe,le,t,0,!Ft):xe.operatorToken.kind===28?n.updateBinaryExpression(xe,$.checkDefined(At(xe.left,Oe,Vt)),xe.operatorToken,$.checkDefined(At(xe.right,Ft?Oe:le,Vt))):Dn(xe,le,t)}function pe(xe,Ft){if(Ft)return Dn(xe,Oe,t);let Nr;for(let wn=0;wnEa.name)),Mo=Mr?n.createYieldExpression(n.createToken(42),Ai(fo,8388608)):fo;if(Yn)wn.push(n.createExpressionStatement(Mo)),Yu(Ft.loopOutParameters,1,0,wn);else{let Ea=n.createUniqueName("state"),ee=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Ea,void 0,void 0,Mo)]));if(wn.push(ee),Yu(Ft.loopOutParameters,1,0,wn),Ft.nonLocalJumps&8){let it;Nr?(Nr.nonLocalJumps|=8,it=n.createReturnStatement(Ea)):it=n.createReturnStatement(n.createPropertyAccessExpression(Ea,"value")),wn.push(n.createIfStatement(n.createTypeCheck(Ea,"object"),it))}if(Ft.nonLocalJumps&2&&wn.push(n.createIfStatement(n.createStrictEquality(Ea,n.createStringLiteral("break")),n.createBreakStatement())),Ft.labeledNonLocalBreaks||Ft.labeledNonLocalContinues){let it=[];zt(Ft.labeledNonLocalBreaks,!0,Ea,Nr,it),zt(Ft.labeledNonLocalContinues,!1,Ea,Nr,it),wn.push(n.createSwitchStatement(Ea,n.createCaseBlock(it)))}}return wn}function st(xe,Ft,Nr,Mr){Ft?(xe.labeledNonLocalBreaks||(xe.labeledNonLocalBreaks=new Map),xe.labeledNonLocalBreaks.set(Nr,Mr)):(xe.labeledNonLocalContinues||(xe.labeledNonLocalContinues=new Map),xe.labeledNonLocalContinues.set(Nr,Mr))}function zt(xe,Ft,Nr,Mr,wn){xe&&xe.forEach((Yn,fo)=>{let Mo=[];if(!Mr||Mr.labels&&Mr.labels.get(fo)){let Ea=n.createIdentifier(fo);Mo.push(Ft?n.createBreakStatement(Ea):n.createContinueStatement(Ea))}else st(Mr,Ft,fo,Yn),Mo.push(n.createReturnStatement(Nr));wn.push(n.createCaseClause(n.createStringLiteral(Yn),Mo))})}function Er(xe,Ft,Nr,Mr,wn){let Yn=Ft.name;if($s(Yn))for(let fo of Yn.elements)Id(fo)||Er(xe,fo,Nr,Mr,wn);else{Nr.push(n.createParameterDeclaration(void 0,void 0,Yn));let fo=g.hasNodeCheckFlag(Ft,65536);if(fo||wn){let Mo=n.createUniqueName("out_"+Zi(Yn)),Ea=0;fo&&(Ea|=1),kA(xe)&&(xe.initializer&&g.isBindingCapturedByNode(xe.initializer,Ft)&&(Ea|=2),(xe.condition&&g.isBindingCapturedByNode(xe.condition,Ft)||xe.incrementor&&g.isBindingCapturedByNode(xe.incrementor,Ft))&&(Ea|=1)),Mr.push({flags:Ea,originalName:Yn,outParamName:Mo})}}}function jn(xe,Ft,Nr,Mr){let wn=Ft.properties,Yn=wn.length;for(let fo=Mr;foh_(Cc)&&!!To(Cc.declarationList.declarations).initializer,Mr=J;J=void 0;let wn=Bn(Ft.statements,be,fa);J=Mr;let Yn=yr(wn,Nr),fo=yr(wn,Cc=>!Nr(Cc)),Ea=Ba(To(Yn),h_).declarationList.declarations[0],ee=Wp(Ea.initializer),it=Ci(ee,of);!it&&wi(ee)&&ee.operatorToken.kind===28&&(it=Ci(ee.left,of));let cr=Ba(it?Wp(it.right):ee,Js),In=Ba(Wp(cr.expression),bu),Ka=In.body.statements,Ws=0,Xa=-1,ks=[];if(it){let Cc=Ci(Ka[Ws],af);Cc&&(ks.push(Cc),Ws++),ks.push(Ka[Ws]),Ws++,ks.push(n.createExpressionStatement(n.createAssignment(it.left,Ba(Ea.name,ct))))}for(;!gy(Gr(Ka,Xa));)Xa--;En(ks,Ka,Ws,Xa),Xa<-1&&En(ks,Ka,Xa+1);let cp=Ci(Gr(Ka,Xa),gy);for(let Cc of fo)gy(Cc)&&cp?.expression&&!ct(cp.expression)?ks.push(cp):ks.push(Cc);return En(ks,Yn,1),n.restoreOuterExpressions(xe.expression,n.restoreOuterExpressions(Ea.initializer,n.restoreOuterExpressions(it&&it.right,n.updateCallExpression(cr,n.restoreOuterExpressions(cr.expression,n.updateFunctionExpression(In,void 0,void 0,void 0,void 0,In.parameters,void 0,n.updateBlock(In.body,ks))),void 0,cr.arguments))))}function Wf(xe,Ft){if(xe.transformFlags&32768||xe.expression.kind===108||_g(Wp(xe.expression))){let{target:Nr,thisArg:Mr}=n.createCallBinding(xe.expression,f);xe.expression.kind===108&&Ai(Mr,8);let wn;if(xe.transformFlags&32768?wn=n.createFunctionApplyCall($.checkDefined(At(Nr,ue,Vt)),xe.expression.kind===108?Mr:$.checkDefined(At(Mr,le,Vt)),Wh(xe.arguments,!0,!1,!1)):wn=qt(n.createFunctionCallCall($.checkDefined(At(Nr,ue,Vt)),xe.expression.kind===108?Mr:$.checkDefined(At(Mr,le,Vt)),Bn(xe.arguments,le,Vt)),xe),xe.expression.kind===108){let Yn=n.createLogicalOr(wn,ya());wn=Ft?n.createAssignment(de(),Yn):Yn}return Yi(wn,xe)}return U4(xe)&&(F|=131072),Dn(xe,le,t)}function yy(xe){if(Pt(xe.arguments,E0)){let{target:Ft,thisArg:Nr}=n.createCallBinding(n.createPropertyAccessExpression(xe.expression,"bind"),f);return n.createNewExpression(n.createFunctionApplyCall($.checkDefined(At(Ft,le,Vt)),Nr,Wh(n.createNodeArray([n.createVoidZero(),...xe.arguments]),!0,!1,!1)),void 0,[])}return Dn(xe,le,t)}function Wh(xe,Ft,Nr,Mr){let wn=xe.length,Yn=Rc(Wu(xe,rt,(ee,it,cr,In)=>it(ee,Nr,Mr&&In===wn)));if(Yn.length===1){let ee=Yn[0];if(Ft&&!y.downlevelIteration||nge(ee.expression)||iz(ee.expression,"___spreadArray"))return ee.expression}let fo=a(),Mo=Yn[0].kind!==0,Ea=Mo?n.createArrayLiteralExpression():Yn[0].expression;for(let ee=Mo?0:1;ee0&&Mr.push(n.createStringLiteral(Nr.literal.text)),Ft=n.createCallExpression(n.createPropertyAccessExpression(Ft,"concat"),void 0,Mr)}return qt(Ft,xe)}function Kp(){return n.createUniqueName("_super",48)}function vy(xe,Ft){let Nr=F&8&&!Ft?n.createPropertyAccessExpression(Yi(Kp(),xe),"prototype"):Kp();return Yi(Nr,xe),Y_(Nr,xe),Jc(Nr,xe),Nr}function If(xe){return xe.keywordToken===105&&xe.name.escapedText==="target"?(F|=32768,n.createUniqueName("_newTarget",48)):xe}function uf(xe,Ft,Nr){if(G&1&&Rs(Ft)){let Mr=Q(32670,Xc(Ft)&16?81:65);T(xe,Ft,Nr),re(Mr,0,0);return}T(xe,Ft,Nr)}function Hg(){(G&2)===0&&(G|=2,t.enableSubstitution(80))}function Ym(){(G&1)===0&&(G|=1,t.enableSubstitution(110),t.enableEmitNotification(177),t.enableEmitNotification(175),t.enableEmitNotification(178),t.enableEmitNotification(179),t.enableEmitNotification(220),t.enableEmitNotification(219),t.enableEmitNotification(263))}function D0(xe,Ft){return Ft=k(xe,Ft),xe===1?Gx(Ft):ct(Ft)?Pb(Ft):Ft}function Pb(xe){if(G&2&&!Kge(xe)){let Ft=vs(xe,ct);if(Ft&&Wx(Ft))return qt(n.getGeneratedNameForNode(Ft),xe)}return xe}function Wx(xe){switch(xe.parent.kind){case 209:case 264:case 267:case 261:return xe.parent.name===xe&&g.isDeclarationWithCollidingName(xe.parent)}return!1}function Gx(xe){switch(xe.kind){case 80:return Gh(xe);case 110:return Iv(xe)}return xe}function Gh(xe){if(G&2&&!Kge(xe)){let Ft=g.getReferencedDeclarationWithCollidingName(xe);if(Ft&&!(Co(Ft)&&Nd(Ft,xe)))return qt(n.getGeneratedNameForNode(cs(Ft)),xe)}return xe}function Nd(xe,Ft){let Nr=vs(Ft);if(!Nr||Nr===xe||Nr.end<=xe.pos||Nr.pos>=xe.end)return!1;let Mr=yv(xe);for(;Nr;){if(Nr===Mr||Nr===xe)return!1;if(J_(Nr)&&Nr.parent===xe)return!0;Nr=Nr.parent}return!1}function Iv(xe){return G&1&&F&16?qt(de(),xe):xe}function Hy(xe,Ft){return oc(Ft)?n.getInternalName(xe):n.createPropertyAccessExpression(n.getInternalName(xe),"prototype")}function US(xe,Ft){if(!xe||!Ft||Pt(xe.parameters))return!1;let Nr=pi(xe.body.statements);if(!Nr||!fu(Nr)||Nr.kind!==245)return!1;let Mr=Nr.expression;if(!fu(Mr)||Mr.kind!==214)return!1;let wn=Mr.expression;if(!fu(wn)||wn.kind!==108)return!1;let Yn=to(Mr.arguments);if(!Yn||!fu(Yn)||Yn.kind!==231)return!1;let fo=Yn.expression;return ct(fo)&&fo.escapedText==="arguments"}}function Ssr(t){switch(t){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function pOe(t){let{factory:n,getEmitHelperFactory:a,resumeLexicalEnvironment:c,endLexicalEnvironment:u,hoistFunctionDeclaration:_,hoistVariableDeclaration:f}=t,y=t.getCompilerOptions(),g=$c(y),k=t.getEmitResolver(),T=t.onSubstituteNode;t.onSubstituteNode=Ne;let C,O,F,M,U,J,G,Z,Q,re,ae=1,_e,me,le,Oe,be=0,ue=0,De,Ce,Ae,Fe,Be,de,ze,ut;return Cv(t,je);function je(rt){if(rt.isDeclarationFile||(rt.transformFlags&2048)===0)return rt;let br=Dn(rt,ve,t);return Ux(br,t.readEmitHelpers()),br}function ve(rt){let br=rt.transformFlags;return M?Le(rt):F?Ve(rt):lu(rt)&&rt.asteriskToken?It(rt):br&2048?Dn(rt,ve,t):rt}function Le(rt){switch(rt.kind){case 247:return Ls(rt);case 248:return Cn(rt);case 256:return Qt(rt);case 257:return Et(rt);default:return Ve(rt)}}function Ve(rt){switch(rt.kind){case 263:return ke(rt);case 219:return _t(rt);case 178:case 179:return Se(rt);case 244:return Qe(rt);case 249:return Dt(rt);case 250:return Ee(rt);case 253:return Ct(rt);case 252:return ye(rt);case 254:return ar(rt);default:return rt.transformFlags&1048576?nt(rt):rt.transformFlags&4196352?Dn(rt,ve,t):rt}}function nt(rt){switch(rt.kind){case 227:return We(rt);case 357:return nn(rt);case 228:return $t(rt);case 230:return Dr(rt);case 210:return Qn(rt);case 211:return is(rt);case 213:return sr(rt);case 214:return uo(rt);case 215:return Wa(rt);default:return Dn(rt,ve,t)}}function It(rt){switch(rt.kind){case 263:return ke(rt);case 219:return _t(rt);default:return $.failBadSyntaxKind(rt)}}function ke(rt){if(rt.asteriskToken)rt=Yi(qt(n.createFunctionDeclaration(rt.modifiers,void 0,rt.name,void 0,Rp(rt.parameters,ve,t),void 0,tt(rt.body)),rt),rt);else{let br=F,Vn=M;F=!1,M=!1,rt=Dn(rt,ve,t),F=br,M=Vn}if(F){_(rt);return}else return rt}function _t(rt){if(rt.asteriskToken)rt=Yi(qt(n.createFunctionExpression(void 0,void 0,rt.name,void 0,Rp(rt.parameters,ve,t),void 0,tt(rt.body)),rt),rt);else{let br=F,Vn=M;F=!1,M=!1,rt=Dn(rt,ve,t),F=br,M=Vn}return rt}function Se(rt){let br=F,Vn=M;return F=!1,M=!1,rt=Dn(rt,ve,t),F=br,M=Vn,rt}function tt(rt){let br=[],Vn=F,Ga=M,el=U,tl=J,Uc=G,nd=Z,Mu=Q,Dp=re,Kp=ae,vy=_e,If=me,uf=le,Hg=Oe;F=!0,M=!1,U=void 0,J=void 0,G=void 0,Z=void 0,Q=void 0,re=void 0,ae=1,_e=void 0,me=void 0,le=void 0,Oe=n.createTempVariable(void 0),c();let Ym=n.copyPrologue(rt.statements,br,!1,ve);oo(rt.statements,Ym);let D0=st();return Px(br,u()),br.push(n.createReturnStatement(D0)),F=Vn,M=Ga,U=el,J=tl,G=Uc,Z=nd,Q=Mu,re=Dp,ae=Kp,_e=vy,me=If,le=uf,Oe=Hg,qt(n.createBlock(br,rt.multiLine),rt)}function Qe(rt){if(rt.transformFlags&1048576){ai(rt.declarationList);return}else{if(Xc(rt)&2097152)return rt;for(let Vn of rt.declarationList.declarations)f(Vn.name);let br=MU(rt.declarationList);return br.length===0?void 0:Jc(n.createExpressionStatement(n.inlineExpressions(Cr(br,vo))),rt)}}function We(rt){let br=ohe(rt);switch(br){case 0:return Kt(rt);case 1:return St(rt);default:return $.assertNever(br)}}function St(rt){let{left:br,right:Vn}=rt;if(Ye(Vn)){let Ga;switch(br.kind){case 212:Ga=n.updatePropertyAccessExpression(br,pe($.checkDefined(At(br.expression,ve,jh))),br.name);break;case 213:Ga=n.updateElementAccessExpression(br,pe($.checkDefined(At(br.expression,ve,jh))),pe($.checkDefined(At(br.argumentExpression,ve,Vt))));break;default:Ga=$.checkDefined(At(br,ve,Vt));break}let el=rt.operatorToken.kind;return Iz(el)?qt(n.createAssignment(Ga,qt(n.createBinaryExpression(pe(Ga),Pz(el),$.checkDefined(At(Vn,ve,Vt))),rt)),rt):n.updateBinaryExpression(rt,Ga,rt.operatorToken,$.checkDefined(At(Vn,ve,Vt)))}return Dn(rt,ve,t)}function Kt(rt){return Ye(rt.right)?s4e(rt.operatorToken.kind)?Nn(rt):rt.operatorToken.kind===28?Sr(rt):n.updateBinaryExpression(rt,pe($.checkDefined(At(rt.left,ve,Vt))),rt.operatorToken,$.checkDefined(At(rt.right,ve,Vt))):Dn(rt,ve,t)}function Sr(rt){let br=[];return Vn(rt.left),Vn(rt.right),n.inlineExpressions(br);function Vn(Ga){wi(Ga)&&Ga.operatorToken.kind===28?(Vn(Ga.left),Vn(Ga.right)):(Ye(Ga)&&br.length>0&&(H(1,[n.createExpressionStatement(n.inlineExpressions(br))]),br=[]),br.push($.checkDefined(At(Ga,ve,Vt))))}}function nn(rt){let br=[];for(let Vn of rt.elements)wi(Vn)&&Vn.operatorToken.kind===28?br.push(Sr(Vn)):(Ye(Vn)&&br.length>0&&(H(1,[n.createExpressionStatement(n.inlineExpressions(br))]),br=[]),br.push($.checkDefined(At(Vn,ve,Vt))));return n.inlineExpressions(br)}function Nn(rt){let br=mr(),Vn=Gt();return sl(Vn,$.checkDefined(At(rt.left,ve,Vt)),rt.left),rt.operatorToken.kind===56?Ql(br,Vn,rt.left):Ar(br,Vn,rt.left),sl(Vn,$.checkDefined(At(rt.right,ve,Vt)),rt.right),Ge(br),Vn}function $t(rt){if(Ye(rt.whenTrue)||Ye(rt.whenFalse)){let br=mr(),Vn=mr(),Ga=Gt();return Ql(br,$.checkDefined(At(rt.condition,ve,Vt)),rt.condition),sl(Ga,$.checkDefined(At(rt.whenTrue,ve,Vt)),rt.whenTrue),Yc(Vn),Ge(br),sl(Ga,$.checkDefined(At(rt.whenFalse,ve,Vt)),rt.whenFalse),Ge(Vn),Ga}return Dn(rt,ve,t)}function Dr(rt){let br=mr(),Vn=At(rt.expression,ve,Vt);if(rt.asteriskToken){let Ga=(Xc(rt.expression)&8388608)===0?qt(a().createValuesHelper(Vn),rt):Vn;Gp(Ga,rt)}else N_(Vn,rt);return Ge(br),Gy(rt)}function Qn(rt){return Ko(rt.elements,void 0,void 0,rt.multiLine)}function Ko(rt,br,Vn,Ga){let el=er(rt),tl;if(el>0){tl=Gt();let Mu=Bn(rt,ve,Vt,0,el);sl(tl,n.createArrayLiteralExpression(br?[br,...Mu]:Mu)),br=void 0}let Uc=nl(rt,nd,[],el);return tl?n.createArrayConcatCall(tl,[n.createArrayLiteralExpression(Uc,Ga)]):qt(n.createArrayLiteralExpression(br?[br,...Uc]:Uc,Ga),Vn);function nd(Mu,Dp){if(Ye(Dp)&&Mu.length>0){let Kp=tl!==void 0;tl||(tl=Gt()),sl(tl,Kp?n.createArrayConcatCall(tl,[n.createArrayLiteralExpression(Mu,Ga)]):n.createArrayLiteralExpression(br?[br,...Mu]:Mu,Ga)),br=void 0,Mu=[]}return Mu.push($.checkDefined(At(Dp,ve,Vt))),Mu}}function is(rt){let br=rt.properties,Vn=rt.multiLine,Ga=er(br),el=Gt();sl(el,n.createObjectLiteralExpression(Bn(br,ve,MT,0,Ga),Vn));let tl=nl(br,Uc,[],Ga);return tl.push(Vn?Dm(xl(qt(n.cloneNode(el),el),el.parent)):el),n.inlineExpressions(tl);function Uc(nd,Mu){Ye(Mu)&&nd.length>0&&(sc(n.createExpressionStatement(n.inlineExpressions(nd))),nd=[]);let Dp=cNe(n,rt,Mu,el),Kp=At(Dp,ve,Vt);return Kp&&(Vn&&Dm(Kp),nd.push(Kp)),nd}}function sr(rt){return Ye(rt.argumentExpression)?n.updateElementAccessExpression(rt,pe($.checkDefined(At(rt.expression,ve,jh))),$.checkDefined(At(rt.argumentExpression,ve,Vt))):Dn(rt,ve,t)}function uo(rt){if(!Bh(rt)&&X(rt.arguments,Ye)){let{target:br,thisArg:Vn}=n.createCallBinding(rt.expression,f,g,!0);return Yi(qt(n.createFunctionApplyCall(pe($.checkDefined(At(br,ve,jh))),Vn,Ko(rt.arguments)),rt),rt)}return Dn(rt,ve,t)}function Wa(rt){if(X(rt.arguments,Ye)){let{target:br,thisArg:Vn}=n.createCallBinding(n.createPropertyAccessExpression(rt.expression,"bind"),f);return Yi(qt(n.createNewExpression(n.createFunctionApplyCall(pe($.checkDefined(At(br,ve,Vt))),Vn,Ko(rt.arguments,n.createVoidZero())),void 0,[]),rt),rt)}return Dn(rt,ve,t)}function oo(rt,br=0){let Vn=rt.length;for(let Ga=br;Ga0)break;el.push(vo(Uc))}el.length&&(sc(n.createExpressionStatement(n.inlineExpressions(el))),Ga+=el.length,el=[])}}function vo(rt){return Jc(n.createAssignment(Jc(n.cloneNode(rt.name),rt.name),$.checkDefined(At(rt.initializer,ve,Vt))),rt)}function Eo(rt){if(Ye(rt))if(Ye(rt.thenStatement)||Ye(rt.elseStatement)){let br=mr(),Vn=rt.elseStatement?mr():void 0;Ql(rt.elseStatement?Vn:br,$.checkDefined(At(rt.expression,ve,Vt)),rt.expression),Oi(rt.thenStatement),rt.elseStatement&&(Yc(br),Ge(Vn),Oi(rt.elseStatement)),Ge(br)}else sc(At(rt,ve,fa));else sc(At(rt,ve,fa))}function ya(rt){if(Ye(rt)){let br=mr(),Vn=mr();lr(br),Ge(Vn),Oi(rt.statement),Ge(br),Ar(Vn,$.checkDefined(At(rt.expression,ve,Vt))),cn()}else sc(At(rt,ve,fa))}function Ls(rt){return M?(tn(),rt=Dn(rt,ve,t),cn(),rt):Dn(rt,ve,t)}function yc(rt){if(Ye(rt)){let br=mr(),Vn=lr(br);Ge(br),Ql(Vn,$.checkDefined(At(rt.expression,ve,Vt))),Oi(rt.statement),Yc(br),cn()}else sc(At(rt,ve,fa))}function Cn(rt){return M?(tn(),rt=Dn(rt,ve,t),cn(),rt):Dn(rt,ve,t)}function Es(rt){if(Ye(rt)){let br=mr(),Vn=mr(),Ga=lr(Vn);if(rt.initializer){let el=rt.initializer;Df(el)?ai(el):sc(qt(n.createExpressionStatement($.checkDefined(At(el,ve,Vt))),el))}Ge(br),rt.condition&&Ql(Ga,$.checkDefined(At(rt.condition,ve,Vt))),Oi(rt.statement),Ge(Vn),rt.incrementor&&sc(qt(n.createExpressionStatement($.checkDefined(At(rt.incrementor,ve,Vt))),rt.incrementor)),Yc(br),cn()}else sc(At(rt,ve,fa))}function Dt(rt){M&&tn();let br=rt.initializer;if(br&&Df(br)){for(let Ga of br.declarations)f(Ga.name);let Vn=MU(br);rt=n.updateForStatement(rt,Vn.length>0?n.inlineExpressions(Cr(Vn,vo)):void 0,At(rt.condition,ve,Vt),At(rt.incrementor,ve,Vt),hh(rt.statement,ve,t))}else rt=Dn(rt,ve,t);return M&&cn(),rt}function ur(rt){if(Ye(rt)){let br=Gt(),Vn=Gt(),Ga=Gt(),el=n.createLoopVariable(),tl=rt.initializer;f(el),sl(br,$.checkDefined(At(rt.expression,ve,Vt))),sl(Vn,n.createArrayLiteralExpression()),sc(n.createForInStatement(Ga,br,n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(Vn,"push"),void 0,[Ga])))),sl(el,n.createNumericLiteral(0));let Uc=mr(),nd=mr(),Mu=lr(nd);Ge(Uc),Ql(Mu,n.createLessThan(el,n.createPropertyAccessExpression(Vn,"length"))),sl(Ga,n.createElementAccessExpression(Vn,el)),Ql(nd,n.createBinaryExpression(Ga,103,br));let Dp;if(Df(tl)){for(let Kp of tl.declarations)f(Kp.name);Dp=n.cloneNode(tl.declarations[0].name)}else Dp=$.checkDefined(At(tl,ve,Vt)),$.assert(jh(Dp));sl(Dp,Ga),Oi(rt.statement),Ge(nd),sc(n.createExpressionStatement(n.createPostfixIncrement(el))),Yc(Uc),cn()}else sc(At(rt,ve,fa))}function Ee(rt){M&&tn();let br=rt.initializer;if(Df(br)){for(let Vn of br.declarations)f(Vn.name);rt=n.updateForInStatement(rt,br.declarations[0].name,$.checkDefined(At(rt.expression,ve,Vt)),$.checkDefined(At(rt.statement,ve,fa,n.liftToBlock)))}else rt=Dn(rt,ve,t);return M&&cn(),rt}function Bt(rt){let br=bs(rt.label?Zi(rt.label):void 0);br>0?Yc(br,rt):sc(rt)}function ye(rt){if(M){let br=bs(rt.label&&Zi(rt.label));if(br>0)return kc(br,rt)}return Dn(rt,ve,t)}function et(rt){let br=$a(rt.label?Zi(rt.label):void 0);br>0?Yc(br,rt):sc(rt)}function Ct(rt){if(M){let br=$a(rt.label&&Zi(rt.label));if(br>0)return kc(br,rt)}return Dn(rt,ve,t)}function Ot(rt){lf(At(rt.expression,ve,Vt),rt)}function ar(rt){return o_(At(rt.expression,ve,Vt),rt)}function at(rt){Ye(rt)?(zn(pe($.checkDefined(At(rt.expression,ve,Vt)))),Oi(rt.statement),Rt()):sc(At(rt,ve,fa))}function Zt(rt){if(Ye(rt.caseBlock)){let br=rt.caseBlock,Vn=br.clauses.length,Ga=bn(),el=pe($.checkDefined(At(rt.expression,ve,Vt))),tl=[],Uc=-1;for(let Dp=0;Dp0)break;Mu.push(n.createCaseClause($.checkDefined(At(vy.expression,ve,Vt)),[kc(tl[Kp],vy.expression)]))}else Dp++}Mu.length&&(sc(n.createSwitchStatement(el,n.createCaseBlock(Mu))),nd+=Mu.length,Mu=[]),Dp>0&&(nd+=Dp,Dp=0)}Uc>=0?Yc(tl[Uc]):Yc(Ga);for(let Dp=0;Dp=0;Vn--){let Ga=Z[Vn];if(Mp(Ga)){if(Ga.labelText===rt)return!0}else break}return!1}function $a(rt){if(Z)if(rt)for(let br=Z.length-1;br>=0;br--){let Vn=Z[br];if(Mp(Vn)&&Vn.labelText===rt)return Vn.breakLabel;if(Ss(Vn)&&uu(rt,br-1))return Vn.breakLabel}else for(let br=Z.length-1;br>=0;br--){let Vn=Z[br];if(Ss(Vn))return Vn.breakLabel}return 0}function bs(rt){if(Z)if(rt)for(let br=Z.length-1;br>=0;br--){let Vn=Z[br];if(Cp(Vn)&&uu(rt,br-1))return Vn.continueLabel}else for(let br=Z.length-1;br>=0;br--){let Vn=Z[br];if(Cp(Vn))return Vn.continueLabel}return 0}function V_(rt){if(rt!==void 0&&rt>0){re===void 0&&(re=[]);let br=n.createNumericLiteral(Number.MAX_SAFE_INTEGER);return re[rt]===void 0?re[rt]=[br]:re[rt].push(br),br}return n.createOmittedExpression()}function Nu(rt){let br=n.createNumericLiteral(rt);return nz(br,3,Ssr(rt)),br}function kc(rt,br){return $.assertLessThan(0,rt,"Invalid label"),qt(n.createReturnStatement(n.createArrayLiteralExpression([Nu(3),V_(rt)])),br)}function o_(rt,br){return qt(n.createReturnStatement(n.createArrayLiteralExpression(rt?[Nu(2),rt]:[Nu(2)])),br)}function Gy(rt){return qt(n.createCallExpression(n.createPropertyAccessExpression(Oe,"sent"),void 0,[]),rt)}function _s(){H(0)}function sc(rt){rt?H(1,[rt]):_s()}function sl(rt,br,Vn){H(2,[rt,br],Vn)}function Yc(rt,br){H(3,[rt],br)}function Ar(rt,br,Vn){H(4,[rt,br],Vn)}function Ql(rt,br,Vn){H(5,[rt,br],Vn)}function Gp(rt,br){H(7,[rt],br)}function N_(rt,br){H(6,[rt],br)}function lf(rt,br){H(8,[rt],br)}function Yu(rt,br){H(9,[rt],br)}function Hp(){H(10)}function H(rt,br,Vn){_e===void 0&&(_e=[],me=[],le=[]),Q===void 0&&Ge(mr());let Ga=_e.length;_e[Ga]=rt,me[Ga]=br,le[Ga]=Vn}function st(){be=0,ue=0,De=void 0,Ce=!1,Ae=!1,Fe=void 0,Be=void 0,de=void 0,ze=void 0,ut=void 0;let rt=zt();return a().createGeneratorHelper(Ai(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,Oe)],void 0,n.createBlock(rt,rt.length>0)),1048576))}function zt(){if(_e){for(let rt=0;rt<_e.length;rt++)Bl(rt);jn(_e.length)}else jn(0);if(Fe){let rt=n.createPropertyAccessExpression(Oe,"label"),br=n.createSwitchStatement(rt,n.createCaseBlock(Fe));return[Dm(br)]}return Be||[]}function Er(){Be&&(Di(!Ce),Ce=!1,Ae=!1,ue++)}function jn(rt){So(rt)&&(On(rt),ut=void 0,g_(void 0,void 0)),Be&&Fe&&Di(!1),ua()}function So(rt){if(!Ae)return!0;if(!Q||!re)return!1;for(let br=0;br=0;br--){let Vn=ut[br];Be=[n.createWithStatement(Vn.expression,n.createBlock(Be))]}if(ze){let{startLabel:br,catchLabel:Vn,finallyLabel:Ga,endLabel:el}=ze;Be.unshift(n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createPropertyAccessExpression(Oe,"trys"),"push"),void 0,[n.createArrayLiteralExpression([V_(br),V_(Vn),V_(Ga),V_(el)])]))),ze=void 0}rt&&Be.push(n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(Oe,"label"),n.createNumericLiteral(ue+1))))}Fe.push(n.createCaseClause(n.createNumericLiteral(ue),Be||[])),Be=void 0}function On(rt){if(Q)for(let br=0;br{(!Sl(pe.arguments[0])||JG(pe.arguments[0].text,y))&&(G=jt(G,pe))});let ot=n(C)(Ne);return U=void 0,J=void 0,Q=!1,ot}function ae(){return jx(U.fileName)&&U.commonJsModuleIndicator&&(!U.externalModuleIndicator||U.externalModuleIndicator===!0)?!1:!!(!J.exportEquals&&yd(U))}function _e(Ne){u();let Y=[],ot=rm(y,"alwaysStrict")||yd(U),pe=a.copyPrologue(Ne.statements,Y,ot&&!h0(Ne),Ce);if(ae()&&jt(Y,et()),Pt(J.exportedNames))for(let Ge=0;GeIr.kind===11?a.createAssignment(a.createElementAccessExpression(a.createIdentifier("exports"),a.createStringLiteral(Ir.text)),Mt):a.createAssignment(a.createPropertyAccessExpression(a.createIdentifier("exports"),a.createIdentifier(Zi(Ir))),Mt),a.createVoidZero())));for(let mr of J.exportedFunctions)Ee(Y,mr);jt(Y,At(J.externalHelpersImportDeclaration,Ce,fa)),En(Y,Bn(Ne.statements,Ce,fa,pe)),De(Y,!1),Px(Y,_());let Gt=a.updateSourceFile(Ne,qt(a.createNodeArray(Y),Ne.statements));return Ux(Gt,t.readEmitHelpers()),Gt}function me(Ne){let Y=a.createIdentifier("define"),ot=GH(a,Ne,k,y),pe=h0(Ne)&&Ne,{aliasedModuleNames:Gt,unaliasedModuleNames:mr,importAliasNames:Ge}=Oe(Ne,!0),Mt=a.updateSourceFile(Ne,qt(a.createNodeArray([a.createExpressionStatement(a.createCallExpression(Y,void 0,[...ot?[ot]:[],a.createArrayLiteralExpression(pe?j:[a.createStringLiteral("require"),a.createStringLiteral("exports"),...Gt,...mr]),pe?pe.statements.length?pe.statements[0].expression:a.createObjectLiteralExpression():a.createFunctionExpression(void 0,void 0,void 0,void 0,[a.createParameterDeclaration(void 0,void 0,"require"),a.createParameterDeclaration(void 0,void 0,"exports"),...Ge],void 0,ue(Ne))]))]),Ne.statements));return Ux(Mt,t.readEmitHelpers()),Mt}function le(Ne){let{aliasedModuleNames:Y,unaliasedModuleNames:ot,importAliasNames:pe}=Oe(Ne,!1),Gt=GH(a,Ne,k,y),mr=a.createFunctionExpression(void 0,void 0,void 0,void 0,[a.createParameterDeclaration(void 0,void 0,"factory")],void 0,qt(a.createBlock([a.createIfStatement(a.createLogicalAnd(a.createTypeCheck(a.createIdentifier("module"),"object"),a.createTypeCheck(a.createPropertyAccessExpression(a.createIdentifier("module"),"exports"),"object")),a.createBlock([a.createVariableStatement(void 0,[a.createVariableDeclaration("v",void 0,void 0,a.createCallExpression(a.createIdentifier("factory"),void 0,[a.createIdentifier("require"),a.createIdentifier("exports")]))]),Ai(a.createIfStatement(a.createStrictInequality(a.createIdentifier("v"),a.createIdentifier("undefined")),a.createExpressionStatement(a.createAssignment(a.createPropertyAccessExpression(a.createIdentifier("module"),"exports"),a.createIdentifier("v")))),1)]),a.createIfStatement(a.createLogicalAnd(a.createTypeCheck(a.createIdentifier("define"),"function"),a.createPropertyAccessExpression(a.createIdentifier("define"),"amd")),a.createBlock([a.createExpressionStatement(a.createCallExpression(a.createIdentifier("define"),void 0,[...Gt?[Gt]:[],a.createArrayLiteralExpression([a.createStringLiteral("require"),a.createStringLiteral("exports"),...Y,...ot]),a.createIdentifier("factory")]))])))],!0),void 0)),Ge=a.updateSourceFile(Ne,qt(a.createNodeArray([a.createExpressionStatement(a.createCallExpression(mr,void 0,[a.createFunctionExpression(void 0,void 0,void 0,void 0,[a.createParameterDeclaration(void 0,void 0,"require"),a.createParameterDeclaration(void 0,void 0,"exports"),...pe],void 0,ue(Ne))]))]),Ne.statements));return Ux(Ge,t.readEmitHelpers()),Ge}function Oe(Ne,Y){let ot=[],pe=[],Gt=[];for(let mr of Ne.amdDependencies)mr.name?(ot.push(a.createStringLiteral(mr.path)),Gt.push(a.createParameterDeclaration(void 0,void 0,mr.name))):pe.push(a.createStringLiteral(mr.path));for(let mr of J.externalImports){let Ge=kF(a,mr,U,k,g,y),Mt=DL(a,mr,U);Ge&&(Y&&Mt?(Ai(Mt,8),ot.push(Ge),Gt.push(a.createParameterDeclaration(void 0,void 0,Mt))):pe.push(Ge))}return{aliasedModuleNames:ot,unaliasedModuleNames:pe,importAliasNames:Gt}}function be(Ne){if(gd(Ne)||P_(Ne)||!kF(a,Ne,U,k,g,y))return;let Y=DL(a,Ne,U),ot=oo(Ne,Y);if(ot!==Y)return a.createExpressionStatement(a.createAssignment(Y,ot))}function ue(Ne){u();let Y=[],ot=a.copyPrologue(Ne.statements,Y,!0,Ce);ae()&&jt(Y,et()),Pt(J.exportedNames)&&jt(Y,a.createExpressionStatement(nl(J.exportedNames,(Gt,mr)=>mr.kind===11?a.createAssignment(a.createElementAccessExpression(a.createIdentifier("exports"),a.createStringLiteral(mr.text)),Gt):a.createAssignment(a.createPropertyAccessExpression(a.createIdentifier("exports"),a.createIdentifier(Zi(mr))),Gt),a.createVoidZero())));for(let Gt of J.exportedFunctions)Ee(Y,Gt);jt(Y,At(J.externalHelpersImportDeclaration,Ce,fa)),C===2&&En(Y,Wn(J.externalImports,be)),En(Y,Bn(Ne.statements,Ce,fa,ot)),De(Y,!0),Px(Y,_());let pe=a.createBlock(Y,!0);return Q&&pF(pe,bsr),pe}function De(Ne,Y){if(J.exportEquals){let ot=At(J.exportEquals.expression,Be,Vt);if(ot)if(Y){let pe=a.createReturnStatement(ot);qt(pe,J.exportEquals),Ai(pe,3840),Ne.push(pe)}else{let pe=a.createExpressionStatement(a.createAssignment(a.createPropertyAccessExpression(a.createIdentifier("module"),"exports"),ot));qt(pe,J.exportEquals),Ai(pe,3072),Ne.push(pe)}}}function Ce(Ne){switch(Ne.kind){case 273:return Oi(Ne);case 272:return ft(Ne);case 279:return Ht(Ne);case 278:return Wr(Ne);default:return Ae(Ne)}}function Ae(Ne){switch(Ne.kind){case 244:return Eo(Ne);case 263:return ai(Ne);case 264:return vo(Ne);case 249:return je(Ne,!0);case 250:return ve(Ne);case 251:return Le(Ne);case 247:return Ve(Ne);case 248:return nt(Ne);case 257:return It(Ne);case 255:return ke(Ne);case 246:return _t(Ne);case 256:return Se(Ne);case 270:return tt(Ne);case 297:return Qe(Ne);case 298:return We(Ne);case 259:return St(Ne);case 300:return Kt(Ne);case 242:return Sr(Ne);default:return Be(Ne)}}function Fe(Ne,Y){if(!(Ne.transformFlags&276828160)&&!G?.length)return Ne;switch(Ne.kind){case 249:return je(Ne,!1);case 245:return nn(Ne);case 218:return Nn(Ne,Y);case 356:return $t(Ne,Y);case 214:let ot=Ne===pi(G);if(ot&&G.shift(),Bh(Ne)&&k.shouldTransformImportCall(U))return Ko(Ne,ot);if(ot)return Qn(Ne);break;case 227:if(dE(Ne))return ut(Ne,Y);break;case 225:case 226:return Dr(Ne,Y)}return Dn(Ne,Be,t)}function Be(Ne){return Fe(Ne,!1)}function de(Ne){return Fe(Ne,!0)}function ze(Ne){if(Lc(Ne))for(let Y of Ne.properties)switch(Y.kind){case 304:if(ze(Y.initializer))return!0;break;case 305:if(ze(Y.name))return!0;break;case 306:if(ze(Y.expression))return!0;break;case 175:case 178:case 179:return!1;default:$.assertNever(Y,"Unhandled object member kind")}else if(qf(Ne)){for(let Y of Ne.elements)if(E0(Y)){if(ze(Y.expression))return!0}else if(ze(Y))return!0}else if(ct(Ne))return te(er(Ne))>(eie(Ne)?1:0);return!1}function ut(Ne,Y){return ze(Ne.left)?v3(Ne,Be,t,0,!Y,ya):Dn(Ne,Be,t)}function je(Ne,Y){if(Y&&Ne.initializer&&Df(Ne.initializer)&&!(Ne.initializer.flags&7)){let ot=Dt(void 0,Ne.initializer,!1);if(ot){let pe=[],Gt=At(Ne.initializer,de,Df),mr=a.createVariableStatement(void 0,Gt);pe.push(mr),En(pe,ot);let Ge=At(Ne.condition,Be,Vt),Mt=At(Ne.incrementor,de,Vt),Ir=hh(Ne.statement,Y?Ae:Be,t);return pe.push(a.updateForStatement(Ne,void 0,Ge,Mt,Ir)),pe}}return a.updateForStatement(Ne,At(Ne.initializer,de,f0),At(Ne.condition,Be,Vt),At(Ne.incrementor,de,Vt),hh(Ne.statement,Y?Ae:Be,t))}function ve(Ne){if(Df(Ne.initializer)&&!(Ne.initializer.flags&7)){let Y=Dt(void 0,Ne.initializer,!0);if(Pt(Y)){let ot=At(Ne.initializer,de,f0),pe=At(Ne.expression,Be,Vt),Gt=hh(Ne.statement,Ae,t),mr=Vs(Gt)?a.updateBlock(Gt,[...Y,...Gt.statements]):a.createBlock([...Y,Gt],!0);return a.updateForInStatement(Ne,ot,pe,mr)}}return a.updateForInStatement(Ne,At(Ne.initializer,de,f0),At(Ne.expression,Be,Vt),hh(Ne.statement,Ae,t))}function Le(Ne){if(Df(Ne.initializer)&&!(Ne.initializer.flags&7)){let Y=Dt(void 0,Ne.initializer,!0),ot=At(Ne.initializer,de,f0),pe=At(Ne.expression,Be,Vt),Gt=hh(Ne.statement,Ae,t);return Pt(Y)&&(Gt=Vs(Gt)?a.updateBlock(Gt,[...Y,...Gt.statements]):a.createBlock([...Y,Gt],!0)),a.updateForOfStatement(Ne,Ne.awaitModifier,ot,pe,Gt)}return a.updateForOfStatement(Ne,Ne.awaitModifier,At(Ne.initializer,de,f0),At(Ne.expression,Be,Vt),hh(Ne.statement,Ae,t))}function Ve(Ne){return a.updateDoStatement(Ne,hh(Ne.statement,Ae,t),At(Ne.expression,Be,Vt))}function nt(Ne){return a.updateWhileStatement(Ne,At(Ne.expression,Be,Vt),hh(Ne.statement,Ae,t))}function It(Ne){return a.updateLabeledStatement(Ne,Ne.label,At(Ne.statement,Ae,fa,a.liftToBlock)??qt(a.createEmptyStatement(),Ne.statement))}function ke(Ne){return a.updateWithStatement(Ne,At(Ne.expression,Be,Vt),$.checkDefined(At(Ne.statement,Ae,fa,a.liftToBlock)))}function _t(Ne){return a.updateIfStatement(Ne,At(Ne.expression,Be,Vt),At(Ne.thenStatement,Ae,fa,a.liftToBlock)??a.createBlock([]),At(Ne.elseStatement,Ae,fa,a.liftToBlock))}function Se(Ne){return a.updateSwitchStatement(Ne,At(Ne.expression,Be,Vt),$.checkDefined(At(Ne.caseBlock,Ae,_z)))}function tt(Ne){return a.updateCaseBlock(Ne,Bn(Ne.clauses,Ae,Hte))}function Qe(Ne){return a.updateCaseClause(Ne,At(Ne.expression,Be,Vt),Bn(Ne.statements,Ae,fa))}function We(Ne){return Dn(Ne,Ae,t)}function St(Ne){return Dn(Ne,Ae,t)}function Kt(Ne){return a.updateCatchClause(Ne,Ne.variableDeclaration,$.checkDefined(At(Ne.block,Ae,Vs)))}function Sr(Ne){return Ne=Dn(Ne,Ae,t),Ne}function nn(Ne){return a.updateExpressionStatement(Ne,At(Ne.expression,de,Vt))}function Nn(Ne,Y){return a.updateParenthesizedExpression(Ne,At(Ne.expression,Y?de:Be,Vt))}function $t(Ne,Y){return a.updatePartiallyEmittedExpression(Ne,At(Ne.expression,Y?de:Be,Vt))}function Dr(Ne,Y){if((Ne.operator===46||Ne.operator===47)&&ct(Ne.operand)&&!ap(Ne.operand)&&!HT(Ne.operand)&&!Ihe(Ne.operand)){let ot=er(Ne.operand);if(ot){let pe,Gt=At(Ne.operand,Be,Vt);TA(Ne)?Gt=a.updatePrefixUnaryExpression(Ne,Gt):(Gt=a.updatePostfixUnaryExpression(Ne,Gt),Y||(pe=a.createTempVariable(f),Gt=a.createAssignment(pe,Gt),qt(Gt,Ne)),Gt=a.createComma(Gt,a.cloneNode(Ne.operand)),qt(Gt,Ne));for(let mr of ot)Z[hl(Gt)]=!0,Gt=Ot(mr,Gt),qt(Gt,Ne);return pe&&(Z[hl(Gt)]=!0,Gt=a.createComma(Gt,pe),qt(Gt,Ne)),Gt}}return Dn(Ne,Be,t)}function Qn(Ne){return a.updateCallExpression(Ne,Ne.expression,void 0,Bn(Ne.arguments,Y=>Y===Ne.arguments[0]?Sl(Y)?NF(Y,y):c().createRewriteRelativeImportExtensionsHelper(Y):Be(Y),Vt))}function Ko(Ne,Y){if(C===0&&T>=7)return Dn(Ne,Be,t);let ot=kF(a,Ne,U,k,g,y),pe=At(pi(Ne.arguments),Be,Vt),Gt=ot&&(!pe||!Ic(pe)||pe.text!==ot.text)?ot:pe&&Y?Ic(pe)?NF(pe,y):c().createRewriteRelativeImportExtensionsHelper(pe):pe,mr=!!(Ne.transformFlags&16384);switch(y.module){case 2:return sr(Gt,mr);case 3:return is(Gt??a.createVoidZero(),mr);default:return uo(Gt)}}function is(Ne,Y){if(Q=!0,DP(Ne)){let ot=ap(Ne)?Ne:Ic(Ne)?a.createStringLiteralFromNode(Ne):Ai(qt(a.cloneNode(Ne),Ne),3072);return a.createConditionalExpression(a.createIdentifier("__syncRequire"),void 0,uo(Ne),void 0,sr(ot,Y))}else{let ot=a.createTempVariable(f);return a.createComma(a.createAssignment(ot,Ne),a.createConditionalExpression(a.createIdentifier("__syncRequire"),void 0,uo(ot,!0),void 0,sr(ot,Y)))}}function sr(Ne,Y){let ot=a.createUniqueName("resolve"),pe=a.createUniqueName("reject"),Gt=[a.createParameterDeclaration(void 0,void 0,ot),a.createParameterDeclaration(void 0,void 0,pe)],mr=a.createBlock([a.createExpressionStatement(a.createCallExpression(a.createIdentifier("require"),void 0,[a.createArrayLiteralExpression([Ne||a.createOmittedExpression()]),ot,pe]))]),Ge;T>=2?Ge=a.createArrowFunction(void 0,void 0,Gt,void 0,void 0,mr):(Ge=a.createFunctionExpression(void 0,void 0,void 0,void 0,Gt,void 0,mr),Y&&Ai(Ge,16));let Mt=a.createNewExpression(a.createIdentifier("Promise"),void 0,[Ge]);return kS(y)?a.createCallExpression(a.createPropertyAccessExpression(Mt,a.createIdentifier("then")),void 0,[c().createImportStarCallbackHelper()]):Mt}function uo(Ne,Y){let ot=Ne&&!FS(Ne)&&!Y,pe=a.createCallExpression(a.createPropertyAccessExpression(a.createIdentifier("Promise"),"resolve"),void 0,ot?T>=2?[a.createTemplateExpression(a.createTemplateHead(""),[a.createTemplateSpan(Ne,a.createTemplateTail(""))])]:[a.createCallExpression(a.createPropertyAccessExpression(a.createStringLiteral(""),"concat"),void 0,[Ne])]:[]),Gt=a.createCallExpression(a.createIdentifier("require"),void 0,ot?[a.createIdentifier("s")]:Ne?[Ne]:[]);kS(y)&&(Gt=c().createImportStarHelper(Gt));let mr=ot?[a.createParameterDeclaration(void 0,void 0,"s")]:[],Ge;return T>=2?Ge=a.createArrowFunction(void 0,void 0,mr,void 0,void 0,Gt):Ge=a.createFunctionExpression(void 0,void 0,void 0,void 0,mr,void 0,a.createBlock([a.createReturnStatement(Gt)])),a.createCallExpression(a.createPropertyAccessExpression(pe,"then"),void 0,[Ge])}function Wa(Ne,Y){return!kS(y)||J1(Ne)&2?Y:M8e(Ne)?c().createImportStarHelper(Y):Y}function oo(Ne,Y){return!kS(y)||J1(Ne)&2?Y:Mie(Ne)?c().createImportStarHelper(Y):r0e(Ne)?c().createImportDefaultHelper(Y):Y}function Oi(Ne){let Y,ot=HR(Ne);if(C!==2)if(Ne.importClause){let pe=[];ot&&!W4(Ne)?pe.push(a.createVariableDeclaration(a.cloneNode(ot.name),void 0,void 0,oo(Ne,$o(Ne)))):(pe.push(a.createVariableDeclaration(a.getGeneratedNameForNode(Ne),void 0,void 0,oo(Ne,$o(Ne)))),ot&&W4(Ne)&&pe.push(a.createVariableDeclaration(a.cloneNode(ot.name),void 0,void 0,a.getGeneratedNameForNode(Ne)))),Y=jt(Y,Yi(qt(a.createVariableStatement(void 0,a.createVariableDeclarationList(pe,T>=2?2:0)),Ne),Ne))}else return Yi(qt(a.createExpressionStatement($o(Ne)),Ne),Ne);else ot&&W4(Ne)&&(Y=jt(Y,a.createVariableStatement(void 0,a.createVariableDeclarationList([Yi(qt(a.createVariableDeclaration(a.cloneNode(ot.name),void 0,void 0,a.getGeneratedNameForNode(Ne)),Ne),Ne)],T>=2?2:0))));return Y=yc(Y,Ne),Ja(Y)}function $o(Ne){let Y=kF(a,Ne,U,k,g,y),ot=[];return Y&&ot.push(NF(Y,y)),a.createCallExpression(a.createIdentifier("require"),void 0,ot)}function ft(Ne){$.assert(pA(Ne),"import= for internal module references should be handled in an earlier transformer.");let Y;return C!==2?ko(Ne,32)?Y=jt(Y,Yi(qt(a.createExpressionStatement(Ot(Ne.name,$o(Ne))),Ne),Ne)):Y=jt(Y,Yi(qt(a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(a.cloneNode(Ne.name),void 0,void 0,$o(Ne))],T>=2?2:0)),Ne),Ne)):ko(Ne,32)&&(Y=jt(Y,Yi(qt(a.createExpressionStatement(Ot(a.getExportName(Ne),a.getLocalName(Ne))),Ne),Ne))),Y=Cn(Y,Ne),Ja(Y)}function Ht(Ne){if(!Ne.moduleSpecifier)return;let Y=a.getGeneratedNameForNode(Ne);if(Ne.exportClause&&k0(Ne.exportClause)){let ot=[];C!==2&&ot.push(Yi(qt(a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(Y,void 0,void 0,$o(Ne))])),Ne),Ne));for(let pe of Ne.exportClause.elements){let Gt=pe.propertyName||pe.name,Ge=!!kS(y)&&!(J1(Ne)&2)&&bb(Gt)?c().createImportDefaultHelper(Y):Y,Mt=Gt.kind===11?a.createElementAccessExpression(Ge,Gt):a.createPropertyAccessExpression(Ge,Gt);ot.push(Yi(qt(a.createExpressionStatement(Ot(pe.name.kind===11?a.cloneNode(pe.name):a.getExportName(pe),Mt,void 0,!0)),pe),pe))}return Ja(ot)}else if(Ne.exportClause){let ot=[];return ot.push(Yi(qt(a.createExpressionStatement(Ot(a.cloneNode(Ne.exportClause.name),Wa(Ne,C!==2?$o(Ne):are(Ne)||Ne.exportClause.name.kind===11?Y:a.createIdentifier(Zi(Ne.exportClause.name))))),Ne),Ne)),Ja(ot)}else return Yi(qt(a.createExpressionStatement(c().createExportStarHelper(C!==2?$o(Ne):Y)),Ne),Ne)}function Wr(Ne){if(!Ne.isExportEquals)return Ct(a.createIdentifier("default"),At(Ne.expression,Be,Vt),Ne,!0)}function ai(Ne){let Y;return ko(Ne,32)?Y=jt(Y,Yi(qt(a.createFunctionDeclaration(Bn(Ne.modifiers,ar,bc),Ne.asteriskToken,a.getDeclarationName(Ne,!0,!0),void 0,Bn(Ne.parameters,Be,wa),void 0,Dn(Ne.body,Be,t)),Ne),Ne)):Y=jt(Y,Dn(Ne,Be,t)),Ja(Y)}function vo(Ne){let Y;return ko(Ne,32)?Y=jt(Y,Yi(qt(a.createClassDeclaration(Bn(Ne.modifiers,ar,sp),a.getDeclarationName(Ne,!0,!0),void 0,Bn(Ne.heritageClauses,Be,zg),Bn(Ne.members,Be,J_)),Ne),Ne)):Y=jt(Y,Dn(Ne,Be,t)),Y=Ee(Y,Ne),Ja(Y)}function Eo(Ne){let Y,ot,pe;if(ko(Ne,32)){let Gt,mr=!1;for(let Ge of Ne.declarationList.declarations)if(ct(Ge.name)&&HT(Ge.name))if(Gt||(Gt=Bn(Ne.modifiers,ar,bc)),Ge.initializer){let Mt=a.updateVariableDeclaration(Ge,Ge.name,void 0,void 0,Ot(Ge.name,At(Ge.initializer,Be,Vt)));ot=jt(ot,Mt)}else ot=jt(ot,Ge);else if(Ge.initializer)if(!$s(Ge.name)&&(Iu(Ge.initializer)||bu(Ge.initializer)||w_(Ge.initializer))){let Mt=a.createAssignment(qt(a.createPropertyAccessExpression(a.createIdentifier("exports"),Ge.name),Ge.name),a.createIdentifier(g0(Ge.name))),Ir=a.createVariableDeclaration(Ge.name,Ge.exclamationToken,Ge.type,At(Ge.initializer,Be,Vt));ot=jt(ot,Ir),pe=jt(pe,Mt),mr=!0}else pe=jt(pe,Ls(Ge));if(ot&&(Y=jt(Y,a.updateVariableStatement(Ne,Gt,a.updateVariableDeclarationList(Ne.declarationList,ot)))),pe){let Ge=Yi(qt(a.createExpressionStatement(a.inlineExpressions(pe)),Ne),Ne);mr&&NH(Ge),Y=jt(Y,Ge)}}else Y=jt(Y,Dn(Ne,Be,t));return Y=Es(Y,Ne),Ja(Y)}function ya(Ne,Y,ot){let pe=er(Ne);if(pe){let Gt=eie(Ne)?Y:a.createAssignment(Ne,Y);for(let mr of pe)Ai(Gt,8),Gt=Ot(mr,Gt,ot);return Gt}return a.createAssignment(Ne,Y)}function Ls(Ne){return $s(Ne.name)?v3(At(Ne,Be,pH),Be,t,0,!1,ya):a.createAssignment(qt(a.createPropertyAccessExpression(a.createIdentifier("exports"),Ne.name),Ne.name),Ne.initializer?At(Ne.initializer,Be,Vt):a.createVoidZero())}function yc(Ne,Y){if(J.exportEquals)return Ne;let ot=Y.importClause;if(!ot)return Ne;let pe=new jL;ot.name&&(Ne=Bt(Ne,pe,ot));let Gt=ot.namedBindings;if(Gt)switch(Gt.kind){case 275:Ne=Bt(Ne,pe,Gt);break;case 276:for(let mr of Gt.elements)Ne=Bt(Ne,pe,mr,!0);break}return Ne}function Cn(Ne,Y){return J.exportEquals?Ne:Bt(Ne,new jL,Y)}function Es(Ne,Y){return Dt(Ne,Y.declarationList,!1)}function Dt(Ne,Y,ot){if(J.exportEquals)return Ne;for(let pe of Y.declarations)Ne=ur(Ne,pe,ot);return Ne}function ur(Ne,Y,ot){if(J.exportEquals)return Ne;if($s(Y.name))for(let pe of Y.name.elements)Id(pe)||(Ne=ur(Ne,pe,ot));else!ap(Y.name)&&(!Oo(Y)||Y.initializer||ot)&&(Ne=Bt(Ne,new jL,Y));return Ne}function Ee(Ne,Y){if(J.exportEquals)return Ne;let ot=new jL;if(ko(Y,32)){let pe=ko(Y,2048)?a.createIdentifier("default"):a.getDeclarationName(Y);Ne=ye(Ne,ot,pe,a.getLocalName(Y),Y)}return Y.name&&(Ne=Bt(Ne,ot,Y)),Ne}function Bt(Ne,Y,ot,pe){let Gt=a.getDeclarationName(ot),mr=J.exportSpecifiers.get(Gt);if(mr)for(let Ge of mr)Ne=ye(Ne,Y,Ge.name,Gt,Ge.name,void 0,pe);return Ne}function ye(Ne,Y,ot,pe,Gt,mr,Ge){if(ot.kind!==11){if(Y.has(ot))return Ne;Y.set(ot,!0)}return Ne=jt(Ne,Ct(ot,pe,Gt,mr,Ge)),Ne}function et(){let Ne=a.createExpressionStatement(a.createCallExpression(a.createPropertyAccessExpression(a.createIdentifier("Object"),"defineProperty"),void 0,[a.createIdentifier("exports"),a.createStringLiteral("__esModule"),a.createObjectLiteralExpression([a.createPropertyAssignment("value",a.createTrue())])]));return Ai(Ne,2097152),Ne}function Ct(Ne,Y,ot,pe,Gt){let mr=qt(a.createExpressionStatement(Ot(Ne,Y,void 0,Gt)),ot);return Dm(mr),pe||Ai(mr,3072),mr}function Ot(Ne,Y,ot,pe){return qt(pe?a.createCallExpression(a.createPropertyAccessExpression(a.createIdentifier("Object"),"defineProperty"),void 0,[a.createIdentifier("exports"),a.createStringLiteralFromNode(Ne),a.createObjectLiteralExpression([a.createPropertyAssignment("enumerable",a.createTrue()),a.createPropertyAssignment("get",a.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,a.createBlock([a.createReturnStatement(Y)])))])]):a.createAssignment(Ne.kind===11?a.createElementAccessExpression(a.createIdentifier("exports"),a.cloneNode(Ne)):a.createPropertyAccessExpression(a.createIdentifier("exports"),a.cloneNode(Ne)),Y),ot)}function ar(Ne){switch(Ne.kind){case 95:case 90:return}return Ne}function at(Ne,Y,ot){Y.kind===308?(U=Y,J=M[gh(U)],F(Ne,Y,ot),U=void 0,J=void 0):F(Ne,Y,ot)}function Zt(Ne,Y){return Y=O(Ne,Y),Y.id&&Z[Y.id]?Y:Ne===1?pr(Y):im(Y)?Qt(Y):Y}function Qt(Ne){let Y=Ne.name,ot=gi(Y);if(ot!==Y){if(Ne.objectAssignmentInitializer){let pe=a.createAssignment(ot,Ne.objectAssignmentInitializer);return qt(a.createPropertyAssignment(Y,pe),Ne)}return qt(a.createPropertyAssignment(Y,ot),Ne)}return Ne}function pr(Ne){switch(Ne.kind){case 80:return gi(Ne);case 214:return Et(Ne);case 216:return xr(Ne);case 227:return Ye(Ne)}return Ne}function Et(Ne){if(ct(Ne.expression)){let Y=gi(Ne.expression);if(Z[hl(Y)]=!0,!ct(Y)&&!(Xc(Ne.expression)&8192))return e3(a.updateCallExpression(Ne,Y,void 0,Ne.arguments),16)}return Ne}function xr(Ne){if(ct(Ne.tag)){let Y=gi(Ne.tag);if(Z[hl(Y)]=!0,!ct(Y)&&!(Xc(Ne.tag)&8192))return e3(a.updateTaggedTemplateExpression(Ne,Y,void 0,Ne.template),16)}return Ne}function gi(Ne){var Y,ot;if(Xc(Ne)&8192){let pe=WH(U);return pe?a.createPropertyAccessExpression(pe,Ne):Ne}else if(!(ap(Ne)&&!(Ne.emitNode.autoGenerate.flags&64))&&!HT(Ne)){let pe=g.getReferencedExportContainer(Ne,eie(Ne));if(pe&&pe.kind===308)return qt(a.createPropertyAccessExpression(a.createIdentifier("exports"),a.cloneNode(Ne)),Ne);let Gt=g.getReferencedImportDeclaration(Ne);if(Gt){if(H1(Gt))return qt(a.createPropertyAccessExpression(a.getGeneratedNameForNode(Gt.parent),a.createIdentifier("default")),Ne);if(Xm(Gt)){let mr=Gt.propertyName||Gt.name,Ge=a.getGeneratedNameForNode(((ot=(Y=Gt.parent)==null?void 0:Y.parent)==null?void 0:ot.parent)||Gt);return qt(mr.kind===11?a.createElementAccessExpression(Ge,a.cloneNode(mr)):a.createPropertyAccessExpression(Ge,a.cloneNode(mr)),Ne)}}}return Ne}function Ye(Ne){if(zT(Ne.operatorToken.kind)&&ct(Ne.left)&&(!ap(Ne.left)||sG(Ne.left))&&!HT(Ne.left)){let Y=er(Ne.left);if(Y){let ot=Ne;for(let pe of Y)Z[hl(ot)]=!0,ot=Ot(pe,ot,Ne);return ot}}return Ne}function er(Ne){if(ap(Ne)){if(sG(Ne)){let Y=J?.exportSpecifiers.get(Ne);if(Y){let ot=[];for(let pe of Y)ot.push(pe.name);return ot}}}else{let Y=g.getReferencedImportDeclaration(Ne);if(Y)return J?.exportedBindings[gh(Y)];let ot=new Set,pe=g.getReferencedValueDeclarations(Ne);if(pe){for(let Gt of pe){let mr=J?.exportedBindings[gh(Gt)];if(mr)for(let Ge of mr)ot.add(Ge)}if(ot.size)return so(ot)}}}}var bsr={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` - var __syncRequire = typeof module === "object" && typeof module.exports === "object";`};function _Oe(t){let{factory:n,startLexicalEnvironment:a,endLexicalEnvironment:c,hoistVariableDeclaration:u}=t,_=t.getCompilerOptions(),f=t.getEmitResolver(),y=t.getEmitHost(),g=t.onSubstituteNode,k=t.onEmitNode;t.onSubstituteNode=et,t.onEmitNode=ye,t.enableSubstitution(80),t.enableSubstitution(305),t.enableSubstitution(227),t.enableSubstitution(237),t.enableEmitNotification(308);let T=[],C=[],O=[],F=[],M,U,J,G,Z,Q,re;return Cv(t,ae);function ae(Ye){if(Ye.isDeclarationFile||!($R(Ye,_)||Ye.transformFlags&8388608))return Ye;let er=gh(Ye);M=Ye,Q=Ye,U=T[er]=n0e(t,Ye),J=n.createUniqueName("exports"),C[er]=J,G=F[er]=n.createUniqueName("context");let Ne=_e(U.externalImports),Y=me(Ye,Ne),ot=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,J),n.createParameterDeclaration(void 0,void 0,G)],void 0,Y),pe=GH(n,Ye,y,_),Gt=n.createArrayLiteralExpression(Cr(Ne,Ge=>Ge.name)),mr=Ai(n.updateSourceFile(Ye,qt(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("System"),"register"),void 0,pe?[pe,Gt,ot]:[Gt,ot]))]),Ye.statements)),2048);return _.outFile||T3e(mr,Y,Ge=>!Ge.scoped),re&&(O[er]=re,re=void 0),M=void 0,U=void 0,J=void 0,G=void 0,Z=void 0,Q=void 0,mr}function _e(Ye){let er=new Map,Ne=[];for(let Y of Ye){let ot=kF(n,Y,M,y,f,_);if(ot){let pe=ot.text,Gt=er.get(pe);Gt!==void 0?Ne[Gt].externalImports.push(Y):(er.set(pe,Ne.length),Ne.push({name:ot,externalImports:[Y]}))}}return Ne}function me(Ye,er){let Ne=[];a();let Y=rm(_,"alwaysStrict")||yd(M),ot=n.copyPrologue(Ye.statements,Ne,Y,ue);Ne.push(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration("__moduleName",void 0,void 0,n.createLogicalAnd(G,n.createPropertyAccessExpression(G,"id")))]))),At(U.externalHelpersImportDeclaration,ue,fa);let pe=Bn(Ye.statements,ue,fa,ot);En(Ne,Z),Px(Ne,c());let Gt=le(Ne),mr=Ye.transformFlags&2097152?n.createModifiersFromModifierFlags(1024):void 0,Ge=n.createObjectLiteralExpression([n.createPropertyAssignment("setters",be(Gt,er)),n.createPropertyAssignment("execute",n.createFunctionExpression(mr,void 0,void 0,void 0,[],void 0,n.createBlock(pe,!0)))],!0);return Ne.push(n.createReturnStatement(Ge)),n.createBlock(Ne,!0)}function le(Ye){if(!U.hasExportStarsToExportValues)return;if(!Pt(U.exportedNames)&&U.exportedFunctions.size===0&&U.exportSpecifiers.size===0){let ot=!1;for(let pe of U.externalImports)if(pe.kind===279&&pe.exportClause){ot=!0;break}if(!ot){let pe=Oe(void 0);return Ye.push(pe),pe.name}}let er=[];if(U.exportedNames)for(let ot of U.exportedNames)bb(ot)||er.push(n.createPropertyAssignment(n.createStringLiteralFromNode(ot),n.createTrue()));for(let ot of U.exportedFunctions)ko(ot,2048)||($.assert(!!ot.name),er.push(n.createPropertyAssignment(n.createStringLiteralFromNode(ot.name),n.createTrue())));let Ne=n.createUniqueName("exportedNames");Ye.push(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Ne,void 0,void 0,n.createObjectLiteralExpression(er,!0))])));let Y=Oe(Ne);return Ye.push(Y),Y.name}function Oe(Ye){let er=n.createUniqueName("exportStar"),Ne=n.createIdentifier("m"),Y=n.createIdentifier("n"),ot=n.createIdentifier("exports"),pe=n.createStrictInequality(Y,n.createStringLiteral("default"));return Ye&&(pe=n.createLogicalAnd(pe,n.createLogicalNot(n.createCallExpression(n.createPropertyAccessExpression(Ye,"hasOwnProperty"),void 0,[Y])))),n.createFunctionDeclaration(void 0,void 0,er,void 0,[n.createParameterDeclaration(void 0,void 0,Ne)],void 0,n.createBlock([n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(ot,void 0,void 0,n.createObjectLiteralExpression([]))])),n.createForInStatement(n.createVariableDeclarationList([n.createVariableDeclaration(Y)]),Ne,n.createBlock([Ai(n.createIfStatement(pe,n.createExpressionStatement(n.createAssignment(n.createElementAccessExpression(ot,Y),n.createElementAccessExpression(Ne,Y)))),1)])),n.createExpressionStatement(n.createCallExpression(J,void 0,[ot]))],!0))}function be(Ye,er){let Ne=[];for(let Y of er){let ot=X(Y.externalImports,mr=>DL(n,mr,M)),pe=ot?n.getGeneratedNameForNode(ot):n.createUniqueName(""),Gt=[];for(let mr of Y.externalImports){let Ge=DL(n,mr,M);switch(mr.kind){case 273:if(!mr.importClause)break;case 272:$.assert(Ge!==void 0),Gt.push(n.createExpressionStatement(n.createAssignment(Ge,pe))),ko(mr,32)&&Gt.push(n.createExpressionStatement(n.createCallExpression(J,void 0,[n.createStringLiteral(Zi(Ge)),pe])));break;case 279:if($.assert(Ge!==void 0),mr.exportClause)if(k0(mr.exportClause)){let Mt=[];for(let Ir of mr.exportClause.elements)Mt.push(n.createPropertyAssignment(n.createStringLiteral(aC(Ir.name)),n.createElementAccessExpression(pe,n.createStringLiteral(aC(Ir.propertyName||Ir.name)))));Gt.push(n.createExpressionStatement(n.createCallExpression(J,void 0,[n.createObjectLiteralExpression(Mt,!0)])))}else Gt.push(n.createExpressionStatement(n.createCallExpression(J,void 0,[n.createStringLiteral(aC(mr.exportClause.name)),pe])));else Gt.push(n.createExpressionStatement(n.createCallExpression(Ye,void 0,[pe])));break}}Ne.push(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,pe)],void 0,n.createBlock(Gt,!0)))}return n.createArrayLiteralExpression(Ne,!0)}function ue(Ye){switch(Ye.kind){case 273:return De(Ye);case 272:return Ae(Ye);case 279:return Ce(Ye);case 278:return Fe(Ye);default:return Sr(Ye)}}function De(Ye){let er;return Ye.importClause&&u(DL(n,Ye,M)),Ja(It(er,Ye))}function Ce(Ye){$.assertIsDefined(Ye)}function Ae(Ye){$.assert(pA(Ye),"import= for internal module references should be handled in an earlier transformer.");let er;return u(DL(n,Ye,M)),Ja(ke(er,Ye))}function Fe(Ye){if(Ye.isExportEquals)return;let er=At(Ye.expression,Eo,Vt);return St(n.createIdentifier("default"),er,!0)}function Be(Ye){ko(Ye,32)?Z=jt(Z,n.updateFunctionDeclaration(Ye,Bn(Ye.modifiers,Bt,sp),Ye.asteriskToken,n.getDeclarationName(Ye,!0,!0),void 0,Bn(Ye.parameters,Eo,wa),void 0,At(Ye.body,Eo,Vs))):Z=jt(Z,Dn(Ye,Eo,t)),Z=tt(Z,Ye)}function de(Ye){let er,Ne=n.getLocalName(Ye);return u(Ne),er=jt(er,qt(n.createExpressionStatement(n.createAssignment(Ne,qt(n.createClassExpression(Bn(Ye.modifiers,Bt,sp),Ye.name,void 0,Bn(Ye.heritageClauses,Eo,zg),Bn(Ye.members,Eo,J_)),Ye))),Ye)),er=tt(er,Ye),Ja(er)}function ze(Ye){if(!je(Ye.declarationList))return At(Ye,Eo,fa);let er;if(DG(Ye.declarationList)||CG(Ye.declarationList)){let Ne=Bn(Ye.modifiers,Bt,sp),Y=[];for(let pe of Ye.declarationList.declarations)Y.push(n.updateVariableDeclaration(pe,n.getGeneratedNameForNode(pe.name),void 0,void 0,ve(pe,!1)));let ot=n.updateVariableDeclarationList(Ye.declarationList,Y);er=jt(er,n.updateVariableStatement(Ye,Ne,ot))}else{let Ne,Y=ko(Ye,32);for(let ot of Ye.declarationList.declarations)ot.initializer?Ne=jt(Ne,ve(ot,Y)):ut(ot);Ne&&(er=jt(er,qt(n.createExpressionStatement(n.inlineExpressions(Ne)),Ye)))}return er=_t(er,Ye,!1),Ja(er)}function ut(Ye){if($s(Ye.name))for(let er of Ye.name.elements)Id(er)||ut(er);else u(n.cloneNode(Ye.name))}function je(Ye){return(Xc(Ye)&4194304)===0&&(Q.kind===308||(Ku(Ye).flags&7)===0)}function ve(Ye,er){let Ne=er?Le:Ve;return $s(Ye.name)?v3(Ye,Eo,t,0,!1,Ne):Ye.initializer?Ne(Ye.name,At(Ye.initializer,Eo,Vt)):Ye.name}function Le(Ye,er,Ne){return nt(Ye,er,Ne,!0)}function Ve(Ye,er,Ne){return nt(Ye,er,Ne,!1)}function nt(Ye,er,Ne,Y){return u(n.cloneNode(Ye)),Y?Kt(Ye,xr(qt(n.createAssignment(Ye,er),Ne))):xr(qt(n.createAssignment(Ye,er),Ne))}function It(Ye,er){if(U.exportEquals)return Ye;let Ne=er.importClause;if(!Ne)return Ye;Ne.name&&(Ye=Qe(Ye,Ne));let Y=Ne.namedBindings;if(Y)switch(Y.kind){case 275:Ye=Qe(Ye,Y);break;case 276:for(let ot of Y.elements)Ye=Qe(Ye,ot);break}return Ye}function ke(Ye,er){return U.exportEquals?Ye:Qe(Ye,er)}function _t(Ye,er,Ne){if(U.exportEquals)return Ye;for(let Y of er.declarationList.declarations)(Y.initializer||Ne)&&(Ye=Se(Ye,Y,Ne));return Ye}function Se(Ye,er,Ne){if(U.exportEquals)return Ye;if($s(er.name))for(let Y of er.name.elements)Id(Y)||(Ye=Se(Ye,Y,Ne));else if(!ap(er.name)){let Y;Ne&&(Ye=We(Ye,er.name,n.getLocalName(er)),Y=Zi(er.name)),Ye=Qe(Ye,er,Y)}return Ye}function tt(Ye,er){if(U.exportEquals)return Ye;let Ne;if(ko(er,32)){let Y=ko(er,2048)?n.createStringLiteral("default"):er.name;Ye=We(Ye,Y,n.getLocalName(er)),Ne=g0(Y)}return er.name&&(Ye=Qe(Ye,er,Ne)),Ye}function Qe(Ye,er,Ne){if(U.exportEquals)return Ye;let Y=n.getDeclarationName(er),ot=U.exportSpecifiers.get(Y);if(ot)for(let pe of ot)aC(pe.name)!==Ne&&(Ye=We(Ye,pe.name,Y));return Ye}function We(Ye,er,Ne,Y){return Ye=jt(Ye,St(er,Ne,Y)),Ye}function St(Ye,er,Ne){let Y=n.createExpressionStatement(Kt(Ye,er));return Dm(Y),Ne||Ai(Y,3072),Y}function Kt(Ye,er){let Ne=ct(Ye)?n.createStringLiteralFromNode(Ye):Ye;return Ai(er,Xc(er)|3072),Y_(n.createCallExpression(J,void 0,[Ne,er]),er)}function Sr(Ye){switch(Ye.kind){case 244:return ze(Ye);case 263:return Be(Ye);case 264:return de(Ye);case 249:return nn(Ye,!0);case 250:return Nn(Ye);case 251:return $t(Ye);case 247:return Ko(Ye);case 248:return is(Ye);case 257:return sr(Ye);case 255:return uo(Ye);case 246:return Wa(Ye);case 256:return oo(Ye);case 270:return Oi(Ye);case 297:return $o(Ye);case 298:return ft(Ye);case 259:return Ht(Ye);case 300:return Wr(Ye);case 242:return ai(Ye);default:return Eo(Ye)}}function nn(Ye,er){let Ne=Q;return Q=Ye,Ye=n.updateForStatement(Ye,At(Ye.initializer,er?Qn:ya,f0),At(Ye.condition,Eo,Vt),At(Ye.incrementor,ya,Vt),hh(Ye.statement,er?Sr:Eo,t)),Q=Ne,Ye}function Nn(Ye){let er=Q;return Q=Ye,Ye=n.updateForInStatement(Ye,Qn(Ye.initializer),At(Ye.expression,Eo,Vt),hh(Ye.statement,Sr,t)),Q=er,Ye}function $t(Ye){let er=Q;return Q=Ye,Ye=n.updateForOfStatement(Ye,Ye.awaitModifier,Qn(Ye.initializer),At(Ye.expression,Eo,Vt),hh(Ye.statement,Sr,t)),Q=er,Ye}function Dr(Ye){return Df(Ye)&&je(Ye)}function Qn(Ye){if(Dr(Ye)){let er;for(let Ne of Ye.declarations)er=jt(er,ve(Ne,!1)),Ne.initializer||ut(Ne);return er?n.inlineExpressions(er):n.createOmittedExpression()}else return At(Ye,ya,f0)}function Ko(Ye){return n.updateDoStatement(Ye,hh(Ye.statement,Sr,t),At(Ye.expression,Eo,Vt))}function is(Ye){return n.updateWhileStatement(Ye,At(Ye.expression,Eo,Vt),hh(Ye.statement,Sr,t))}function sr(Ye){return n.updateLabeledStatement(Ye,Ye.label,At(Ye.statement,Sr,fa,n.liftToBlock)??n.createExpressionStatement(n.createIdentifier("")))}function uo(Ye){return n.updateWithStatement(Ye,At(Ye.expression,Eo,Vt),$.checkDefined(At(Ye.statement,Sr,fa,n.liftToBlock)))}function Wa(Ye){return n.updateIfStatement(Ye,At(Ye.expression,Eo,Vt),At(Ye.thenStatement,Sr,fa,n.liftToBlock)??n.createBlock([]),At(Ye.elseStatement,Sr,fa,n.liftToBlock))}function oo(Ye){return n.updateSwitchStatement(Ye,At(Ye.expression,Eo,Vt),$.checkDefined(At(Ye.caseBlock,Sr,_z)))}function Oi(Ye){let er=Q;return Q=Ye,Ye=n.updateCaseBlock(Ye,Bn(Ye.clauses,Sr,Hte)),Q=er,Ye}function $o(Ye){return n.updateCaseClause(Ye,At(Ye.expression,Eo,Vt),Bn(Ye.statements,Sr,fa))}function ft(Ye){return Dn(Ye,Sr,t)}function Ht(Ye){return Dn(Ye,Sr,t)}function Wr(Ye){let er=Q;return Q=Ye,Ye=n.updateCatchClause(Ye,Ye.variableDeclaration,$.checkDefined(At(Ye.block,Sr,Vs))),Q=er,Ye}function ai(Ye){let er=Q;return Q=Ye,Ye=Dn(Ye,Sr,t),Q=er,Ye}function vo(Ye,er){if(!(Ye.transformFlags&276828160))return Ye;switch(Ye.kind){case 249:return nn(Ye,!1);case 245:return Ls(Ye);case 218:return yc(Ye,er);case 356:return Cn(Ye,er);case 227:if(dE(Ye))return Dt(Ye,er);break;case 214:if(Bh(Ye))return Es(Ye);break;case 225:case 226:return Ee(Ye,er)}return Dn(Ye,Eo,t)}function Eo(Ye){return vo(Ye,!1)}function ya(Ye){return vo(Ye,!0)}function Ls(Ye){return n.updateExpressionStatement(Ye,At(Ye.expression,ya,Vt))}function yc(Ye,er){return n.updateParenthesizedExpression(Ye,At(Ye.expression,er?ya:Eo,Vt))}function Cn(Ye,er){return n.updatePartiallyEmittedExpression(Ye,At(Ye.expression,er?ya:Eo,Vt))}function Es(Ye){let er=kF(n,Ye,M,y,f,_),Ne=At(pi(Ye.arguments),Eo,Vt),Y=er&&(!Ne||!Ic(Ne)||Ne.text!==er.text)?er:Ne;return n.createCallExpression(n.createPropertyAccessExpression(G,n.createIdentifier("import")),void 0,Y?[Y]:[])}function Dt(Ye,er){return ur(Ye.left)?v3(Ye,Eo,t,0,!er):Dn(Ye,Eo,t)}function ur(Ye){if(of(Ye,!0))return ur(Ye.left);if(E0(Ye))return ur(Ye.expression);if(Lc(Ye))return Pt(Ye.properties,ur);if(qf(Ye))return Pt(Ye.elements,ur);if(im(Ye))return ur(Ye.name);if(td(Ye))return ur(Ye.initializer);if(ct(Ye)){let er=f.getReferencedExportContainer(Ye);return er!==void 0&&er.kind===308}else return!1}function Ee(Ye,er){if((Ye.operator===46||Ye.operator===47)&&ct(Ye.operand)&&!ap(Ye.operand)&&!HT(Ye.operand)&&!Ihe(Ye.operand)){let Ne=pr(Ye.operand);if(Ne){let Y,ot=At(Ye.operand,Eo,Vt);TA(Ye)?ot=n.updatePrefixUnaryExpression(Ye,ot):(ot=n.updatePostfixUnaryExpression(Ye,ot),er||(Y=n.createTempVariable(u),ot=n.createAssignment(Y,ot),qt(ot,Ye)),ot=n.createComma(ot,n.cloneNode(Ye.operand)),qt(ot,Ye));for(let pe of Ne)ot=Kt(pe,xr(ot));return Y&&(ot=n.createComma(ot,Y),qt(ot,Ye)),ot}}return Dn(Ye,Eo,t)}function Bt(Ye){switch(Ye.kind){case 95:case 90:return}return Ye}function ye(Ye,er,Ne){if(er.kind===308){let Y=gh(er);M=er,U=T[Y],J=C[Y],re=O[Y],G=F[Y],re&&delete O[Y],k(Ye,er,Ne),M=void 0,U=void 0,J=void 0,G=void 0,re=void 0}else k(Ye,er,Ne)}function et(Ye,er){return er=g(Ye,er),gi(er)?er:Ye===1?ar(er):Ye===4?Ct(er):er}function Ct(Ye){return Ye.kind===305?Ot(Ye):Ye}function Ot(Ye){var er,Ne;let Y=Ye.name;if(!ap(Y)&&!HT(Y)){let ot=f.getReferencedImportDeclaration(Y);if(ot){if(H1(ot))return qt(n.createPropertyAssignment(n.cloneNode(Y),n.createPropertyAccessExpression(n.getGeneratedNameForNode(ot.parent),n.createIdentifier("default"))),Ye);if(Xm(ot)){let pe=ot.propertyName||ot.name,Gt=n.getGeneratedNameForNode(((Ne=(er=ot.parent)==null?void 0:er.parent)==null?void 0:Ne.parent)||ot);return qt(n.createPropertyAssignment(n.cloneNode(Y),pe.kind===11?n.createElementAccessExpression(Gt,n.cloneNode(pe)):n.createPropertyAccessExpression(Gt,n.cloneNode(pe))),Ye)}}}return Ye}function ar(Ye){switch(Ye.kind){case 80:return at(Ye);case 227:return Zt(Ye);case 237:return Qt(Ye)}return Ye}function at(Ye){var er,Ne;if(Xc(Ye)&8192){let Y=WH(M);return Y?n.createPropertyAccessExpression(Y,Ye):Ye}if(!ap(Ye)&&!HT(Ye)){let Y=f.getReferencedImportDeclaration(Ye);if(Y){if(H1(Y))return qt(n.createPropertyAccessExpression(n.getGeneratedNameForNode(Y.parent),n.createIdentifier("default")),Ye);if(Xm(Y)){let ot=Y.propertyName||Y.name,pe=n.getGeneratedNameForNode(((Ne=(er=Y.parent)==null?void 0:er.parent)==null?void 0:Ne.parent)||Y);return qt(ot.kind===11?n.createElementAccessExpression(pe,n.cloneNode(ot)):n.createPropertyAccessExpression(pe,n.cloneNode(ot)),Ye)}}}return Ye}function Zt(Ye){if(zT(Ye.operatorToken.kind)&&ct(Ye.left)&&(!ap(Ye.left)||sG(Ye.left))&&!HT(Ye.left)){let er=pr(Ye.left);if(er){let Ne=Ye;for(let Y of er)Ne=Kt(Y,xr(Ne));return Ne}}return Ye}function Qt(Ye){return qR(Ye)?n.createPropertyAccessExpression(G,n.createIdentifier("meta")):Ye}function pr(Ye){let er,Ne=Et(Ye);if(Ne){let Y=f.getReferencedExportContainer(Ye,!1);Y&&Y.kind===308&&(er=jt(er,n.getDeclarationName(Ne))),er=En(er,U?.exportedBindings[gh(Ne)])}else if(ap(Ye)&&sG(Ye)){let Y=U?.exportSpecifiers.get(Ye);if(Y){let ot=[];for(let pe of Y)ot.push(pe.name);return ot}}return er}function Et(Ye){if(!ap(Ye)){let er=f.getReferencedImportDeclaration(Ye);if(er)return er;let Ne=f.getReferencedValueDeclaration(Ye);if(Ne&&U?.exportedBindings[gh(Ne)])return Ne;let Y=f.getReferencedValueDeclarations(Ye);if(Y){for(let ot of Y)if(ot!==Ne&&U?.exportedBindings[gh(ot)])return ot}return Ne}}function xr(Ye){return re===void 0&&(re=[]),re[hl(Ye)]=!0,Ye}function gi(Ye){return re&&Ye.id&&re[Ye.id]}}function _0e(t){let{factory:n,getEmitHelperFactory:a}=t,c=t.getEmitHost(),u=t.getEmitResolver(),_=t.getCompilerOptions(),f=$c(_),y=t.onEmitNode,g=t.onSubstituteNode;t.onEmitNode=le,t.onSubstituteNode=Oe,t.enableEmitNotification(308),t.enableSubstitution(80);let k=new Set,T,C,O,F;return Cv(t,M);function M(ue){if(ue.isDeclarationFile)return ue;if(yd(ue)||a1(_)){O=ue,F=void 0,_.rewriteRelativeImportExtensions&&(O.flags&4194304||Ei(ue))&&Ine(ue,!1,!1,Ce=>{(!Sl(Ce.arguments[0])||JG(Ce.arguments[0].text,_))&&(T=jt(T,Ce))});let De=U(ue);return Ux(De,t.readEmitHelpers()),O=void 0,F&&(De=n.updateSourceFile(De,qt(n.createNodeArray(Sme(De.statements.slice(),F)),De.statements))),!yd(ue)||Km(_)===200||Pt(De.statements,dG)?De:n.updateSourceFile(De,qt(n.createNodeArray([...De.statements,qH(n)]),De.statements))}return ue}function U(ue){let De=Zge(n,a(),ue,_);if(De){let Ce=[],Ae=n.copyPrologue(ue.statements,Ce);return En(Ce,Az([De],J,fa)),En(Ce,Bn(ue.statements,J,fa,Ae)),n.updateSourceFile(ue,qt(n.createNodeArray(Ce),ue.statements))}else return Dn(ue,J,t)}function J(ue){switch(ue.kind){case 272:return Km(_)>=100?re(ue):void 0;case 278:return _e(ue);case 279:return me(ue);case 273:return G(ue);case 214:if(ue===T?.[0])return Z(T.shift());default:if(T?.length&&zh(ue,T[0]))return Dn(ue,J,t)}return ue}function G(ue){if(!_.rewriteRelativeImportExtensions)return ue;let De=NF(ue.moduleSpecifier,_);return De===ue.moduleSpecifier?ue:n.updateImportDeclaration(ue,ue.modifiers,ue.importClause,De,ue.attributes)}function Z(ue){return n.updateCallExpression(ue,ue.expression,ue.typeArguments,[Sl(ue.arguments[0])?NF(ue.arguments[0],_):a().createRewriteRelativeImportExtensionsHelper(ue.arguments[0]),...ue.arguments.slice(1)])}function Q(ue){let De=kF(n,ue,$.checkDefined(O),c,u,_),Ce=[];if(De&&Ce.push(NF(De,_)),Km(_)===200)return n.createCallExpression(n.createIdentifier("require"),void 0,Ce);if(!F){let Fe=n.createUniqueName("_createRequire",48),Be=n.createImportDeclaration(void 0,n.createImportClause(void 0,void 0,n.createNamedImports([n.createImportSpecifier(!1,n.createIdentifier("createRequire"),Fe)])),n.createStringLiteral("module"),void 0),de=n.createUniqueName("__require",48),ze=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(de,void 0,void 0,n.createCallExpression(n.cloneNode(Fe),void 0,[n.createPropertyAccessExpression(n.createMetaProperty(102,n.createIdentifier("meta")),n.createIdentifier("url"))]))],f>=2?2:0));F=[Be,ze]}let Ae=F[1].declarationList.declarations[0].name;return $.assertNode(Ae,ct),n.createCallExpression(n.cloneNode(Ae),void 0,Ce)}function re(ue){$.assert(pA(ue),"import= for internal module references should be handled in an earlier transformer.");let De;return De=jt(De,Yi(qt(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(ue.name),void 0,void 0,Q(ue))],f>=2?2:0)),ue),ue)),De=ae(De,ue),Ja(De)}function ae(ue,De){return ko(De,32)&&(ue=jt(ue,n.createExportDeclaration(void 0,De.isTypeOnly,n.createNamedExports([n.createExportSpecifier(!1,void 0,Zi(De.name))])))),ue}function _e(ue){return ue.isExportEquals?Km(_)===200?Yi(n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),ue.expression)),ue):void 0:ue}function me(ue){let De=NF(ue.moduleSpecifier,_);if(_.module!==void 0&&_.module>5||!ue.exportClause||!Db(ue.exportClause)||!ue.moduleSpecifier)return!ue.moduleSpecifier||De===ue.moduleSpecifier?ue:n.updateExportDeclaration(ue,ue.modifiers,ue.isTypeOnly,ue.exportClause,De,ue.attributes);let Ce=ue.exportClause.name,Ae=n.getGeneratedNameForNode(Ce),Fe=n.createImportDeclaration(void 0,n.createImportClause(void 0,void 0,n.createNamespaceImport(Ae)),De,ue.attributes);Yi(Fe,ue.exportClause);let Be=are(ue)?n.createExportDefault(Ae):n.createExportDeclaration(void 0,!1,n.createNamedExports([n.createExportSpecifier(!1,Ae,Ce)]));return Yi(Be,ue),[Fe,Be]}function le(ue,De,Ce){Ta(De)?((yd(De)||a1(_))&&_.importHelpers&&(C=new Map),O=De,y(ue,De,Ce),O=void 0,C=void 0):y(ue,De,Ce)}function Oe(ue,De){return De=g(ue,De),De.id&&k.has(De.id)?De:ct(De)&&Xc(De)&8192?be(De):De}function be(ue){let De=O&&WH(O);if(De)return k.add(hl(ue)),n.createPropertyAccessExpression(De,ue);if(C){let Ce=Zi(ue),Ae=C.get(Ce);return Ae||C.set(Ce,Ae=n.createUniqueName(Ce,48)),Ae}return ue}}function dOe(t){let n=t.onSubstituteNode,a=t.onEmitNode,c=_0e(t),u=t.onSubstituteNode,_=t.onEmitNode;t.onSubstituteNode=n,t.onEmitNode=a;let f=p0e(t),y=t.onSubstituteNode,g=t.onEmitNode,k=G=>t.getEmitHost().getEmitModuleFormatOfFile(G);t.onSubstituteNode=C,t.onEmitNode=O,t.enableSubstitution(308),t.enableEmitNotification(308);let T;return U;function C(G,Z){return Ta(Z)?(T=Z,n(G,Z)):T?k(T)>=5?u(G,Z):y(G,Z):n(G,Z)}function O(G,Z,Q){return Ta(Z)&&(T=Z),T?k(T)>=5?_(G,Z,Q):g(G,Z,Q):a(G,Z,Q)}function F(G){return k(G)>=5?c:f}function M(G){if(G.isDeclarationFile)return G;T=G;let Z=F(G)(G);return T=void 0,$.assert(Ta(Z)),Z}function U(G){return G.kind===308?M(G):J(G)}function J(G){return t.factory.createBundle(Cr(G.sourceFiles,M))}}function gK(t){return Oo(t)||ps(t)||Zm(t)||Vc(t)||hS(t)||Ax(t)||cz(t)||hF(t)||Ep(t)||G1(t)||i_(t)||wa(t)||Zu(t)||VT(t)||gd(t)||s1(t)||kp(t)||vC(t)||no(t)||mu(t)||wi(t)||n1(t)}function fOe(t){if(hS(t)||Ax(t))return n;return G1(t)||Ep(t)?c:RA(t);function n(_){let f=a(_);return f!==void 0?{diagnosticMessage:f,errorNode:t,typeName:t.name}:void 0}function a(_){return oc(t)?_.errorModuleName?_.accessibility===2?x.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:x.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===264?_.errorModuleName?_.accessibility===2?x.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:x.Public_property_0_of_exported_class_has_or_is_using_private_name_1:_.errorModuleName?x.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:x.Property_0_of_exported_interface_has_or_is_using_private_name_1}function c(_){let f=u(_);return f!==void 0?{diagnosticMessage:f,errorNode:t,typeName:t.name}:void 0}function u(_){return oc(t)?_.errorModuleName?_.accessibility===2?x.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:x.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===264?_.errorModuleName?_.accessibility===2?x.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:x.Public_method_0_of_exported_class_has_or_is_using_private_name_1:_.errorModuleName?x.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:x.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function RA(t){if(Oo(t)||ps(t)||Zm(t)||no(t)||mu(t)||wi(t)||Vc(t)||kp(t))return a;return hS(t)||Ax(t)?c:cz(t)||hF(t)||Ep(t)||G1(t)||i_(t)||vC(t)?u:wa(t)?ne(t,t.parent)&&ko(t.parent,2)?a:_:Zu(t)?y:VT(t)?g:gd(t)?k:s1(t)||n1(t)?T:$.assertNever(t,`Attempted to set a declaration diagnostic context for unhandled node kind: ${$.formatSyntaxKind(t.kind)}`);function n(C){if(t.kind===261||t.kind===209)return C.errorModuleName?C.accessibility===2?x.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:x.Exported_variable_0_has_or_is_using_private_name_1;if(t.kind===173||t.kind===212||t.kind===213||t.kind===227||t.kind===172||t.kind===170&&ko(t.parent,2))return oc(t)?C.errorModuleName?C.accessibility===2?x.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:x.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===264||t.kind===170?C.errorModuleName?C.accessibility===2?x.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:x.Public_property_0_of_exported_class_has_or_is_using_private_name_1:C.errorModuleName?x.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:x.Property_0_of_exported_interface_has_or_is_using_private_name_1}function a(C){let O=n(C);return O!==void 0?{diagnosticMessage:O,errorNode:t,typeName:t.name}:void 0}function c(C){let O;return t.kind===179?oc(t)?O=C.errorModuleName?x.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:x.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:O=C.errorModuleName?x.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:x.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:oc(t)?O=C.errorModuleName?C.accessibility===2?x.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:x.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:O=C.errorModuleName?C.accessibility===2?x.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:x.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:O,errorNode:t.name,typeName:t.name}}function u(C){let O;switch(t.kind){case 181:O=C.errorModuleName?x.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:x.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 180:O=C.errorModuleName?x.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:x.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 182:O=C.errorModuleName?x.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:x.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 175:case 174:oc(t)?O=C.errorModuleName?C.accessibility===2?x.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:x.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:x.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t.parent.kind===264?O=C.errorModuleName?C.accessibility===2?x.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:x.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:x.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:O=C.errorModuleName?x.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:x.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 263:O=C.errorModuleName?C.accessibility===2?x.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:x.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:x.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return $.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:O,errorNode:t.name||t}}function _(C){let O=f(C);return O!==void 0?{diagnosticMessage:O,errorNode:t,typeName:t.name}:void 0}function f(C){switch(t.parent.kind){case 177:return C.errorModuleName?C.accessibility===2?x.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:x.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 181:case 186:return C.errorModuleName?x.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:x.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 180:return C.errorModuleName?x.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:x.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 182:return C.errorModuleName?x.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:x.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 175:case 174:return oc(t.parent)?C.errorModuleName?C.accessibility===2?x.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:x.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===264?C.errorModuleName?C.accessibility===2?x.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:x.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:C.errorModuleName?x.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:x.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 263:case 185:return C.errorModuleName?C.accessibility===2?x.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:x.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 179:case 178:return C.errorModuleName?C.accessibility===2?x.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:x.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:x.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return $.fail(`Unknown parent for parameter: ${$.formatSyntaxKind(t.parent.kind)}`)}}function y(){let C;switch(t.parent.kind){case 264:C=x.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 265:C=x.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 201:C=x.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 186:case 181:C=x.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 180:C=x.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 175:case 174:oc(t.parent)?C=x.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===264?C=x.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:C=x.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 185:case 263:C=x.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 196:C=x.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 266:C=x.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return $.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:C,errorNode:t,typeName:t.name}}function g(){let C;return ed(t.parent.parent)?C=zg(t.parent)&&t.parent.token===119?x.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?x.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:x.extends_clause_of_exported_class_has_or_is_using_private_name_0:C=x.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:C,errorNode:t,typeName:cs(t.parent.parent)}}function k(){return{diagnosticMessage:x.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}function T(C){return{diagnosticMessage:C.errorModuleName?x.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:x.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:n1(t)?$.checkDefined(t.typeExpression):t.type,typeName:n1(t)?cs(t):t.name}}}function mOe(t){let n={220:x.Add_a_return_type_to_the_function_expression,219:x.Add_a_return_type_to_the_function_expression,175:x.Add_a_return_type_to_the_method,178:x.Add_a_return_type_to_the_get_accessor_declaration,179:x.Add_a_type_to_parameter_of_the_set_accessor_declaration,263:x.Add_a_return_type_to_the_function_declaration,181:x.Add_a_return_type_to_the_function_declaration,170:x.Add_a_type_annotation_to_the_parameter_0,261:x.Add_a_type_annotation_to_the_variable_0,173:x.Add_a_type_annotation_to_the_property_0,172:x.Add_a_type_annotation_to_the_property_0,278:x.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},a={219:x.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,263:x.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,220:x.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,175:x.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,181:x.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,178:x.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,179:x.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,170:x.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,261:x.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,173:x.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:x.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,168:x.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,306:x.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,305:x.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,210:x.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,278:x.Default_exports_can_t_be_inferred_with_isolatedDeclarations,231:x.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return c;function c(J){if(fn(J,zg))return xi(J,x.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((vS(J)||gP(J.parent))&&(uh(J)||ru(J)))return M(J);switch($.type(J),J.kind){case 178:case 179:return _(J);case 168:case 305:case 306:return y(J);case 210:case 231:return g(J);case 175:case 181:case 219:case 220:case 263:return k(J);case 209:return T(J);case 173:case 261:return C(J);case 170:return O(J);case 304:return U(J.initializer);case 232:return F(J);default:return U(J)}}function u(J){let G=fn(J,Z=>Xu(Z)||fa(Z)||Oo(Z)||ps(Z)||wa(Z));if(G)return Xu(G)?G:gy(G)?fn(G,Z=>lu(Z)&&!kp(Z)):fa(G)?void 0:G}function _(J){let{getAccessor:G,setAccessor:Z}=uP(J.symbol.declarations,J),Q=(hS(J)?J.parameters[0]:J)??J,re=xi(Q,a[J.kind]);return Z&&ac(re,xi(Z,n[Z.kind])),G&&ac(re,xi(G,n[G.kind])),re}function f(J,G){let Z=u(J);if(Z){let Q=Xu(Z)||!Z.name?"":Sp(Z.name,!1);ac(G,xi(Z,n[Z.kind],Q))}return G}function y(J){let G=xi(J,a[J.kind]);return f(J,G),G}function g(J){let G=xi(J,a[J.kind]);return f(J,G),G}function k(J){let G=xi(J,a[J.kind]);return f(J,G),ac(G,xi(J,n[J.kind])),G}function T(J){return xi(J,x.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}function C(J){let G=xi(J,a[J.kind]),Z=Sp(J.name,!1);return ac(G,xi(J,n[J.kind],Z)),G}function O(J){if(hS(J.parent))return _(J.parent);let G=t.requiresAddingImplicitUndefined(J,J.parent);if(!G&&J.initializer)return U(J.initializer);let Z=G?x.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:a[J.kind],Q=xi(J,Z),re=Sp(J.name,!1);return ac(Q,xi(J,n[J.kind],re)),Q}function F(J){return U(J,x.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}function M(J){let G=xi(J,x.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,Sp(J,!1));return f(J,G),G}function U(J,G){let Z=u(J),Q;if(Z){let re=Xu(Z)||!Z.name?"":Sp(Z.name,!1),ae=fn(J.parent,_e=>Xu(_e)||(fa(_e)?"quit":!mh(_e)&&!qne(_e)&&!gL(_e)));Z===ae?(Q=xi(J,G??a[Z.kind]),ac(Q,xi(Z,n[Z.kind],re))):(Q=xi(J,G??x.Expression_type_can_t_be_inferred_with_isolatedDeclarations),ac(Q,xi(Z,n[Z.kind],re)),ac(Q,xi(J,x.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else Q=xi(J,G??x.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return Q}}function hOe(t,n,a){let c=t.getCompilerOptions(),u=yr(zre(t,a),kre);return un(u,a)?bK(n,t,W,c,[a],[d0e],!1).diagnostics:void 0}var yK=531469,vK=8;function d0e(t){let n=()=>$.fail("Diagnostic emitted without context"),a=n,c=!0,u=!1,_=!1,f=!1,y=!1,g,k,T,C,{factory:O}=t,F=t.getEmitHost(),M=()=>{},U={trackSymbol:Ae,reportInaccessibleThisError:ut,reportInaccessibleUniqueSymbolError:de,reportCyclicStructureError:ze,reportPrivateInBaseOfClassExpression:Fe,reportLikelyUnsafeImportRequiredError:je,reportTruncationError:ve,moduleResolverHost:F,reportNonlocalAugmentation:Le,reportNonSerializableProperty:Ve,reportInferenceFallback:De,pushErrorFallbackNode(Ee){let Bt=G,ye=M;M=()=>{M=ye,G=Bt},G=Ee},popErrorFallbackNode(){M()}},J,G,Z,Q,re,ae,_e=t.getEmitResolver(),me=t.getCompilerOptions(),le=mOe(_e),{stripInternal:Oe,isolatedDeclarations:be}=me;return It;function ue(Ee){_e.getPropertiesOfContainerFunction(Ee).forEach(Bt=>{if(lF(Bt.valueDeclaration)){let ye=wi(Bt.valueDeclaration)?Bt.valueDeclaration.left:Bt.valueDeclaration;t.addDiagnostic(xi(ye,x.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}})}function De(Ee){!be||ph(Z)||Pn(Ee)===Z&&(Oo(Ee)&&_e.isExpandoFunctionDeclaration(Ee)?ue(Ee):t.addDiagnostic(le(Ee)))}function Ce(Ee){if(Ee.accessibility===0){if(Ee.aliasesToMakeVisible)if(!k)k=Ee.aliasesToMakeVisible;else for(let Bt of Ee.aliasesToMakeVisible)Zc(k,Bt)}else if(Ee.accessibility!==3){let Bt=a(Ee);if(Bt)return Bt.typeName?t.addDiagnostic(xi(Ee.errorNode||Bt.errorNode,Bt.diagnosticMessage,Sp(Bt.typeName),Ee.errorSymbolName,Ee.errorModuleName)):t.addDiagnostic(xi(Ee.errorNode||Bt.errorNode,Bt.diagnosticMessage,Ee.errorSymbolName,Ee.errorModuleName)),!0}return!1}function Ae(Ee,Bt,ye){return Ee.flags&262144?!1:Ce(_e.isSymbolAccessible(Ee,Bt,ye,!0))}function Fe(Ee){(J||G)&&t.addDiagnostic(ac(xi(J||G,x.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,Ee),...Oo((J||G).parent)?[xi(J||G,x.Add_a_type_annotation_to_the_variable_0,Be())]:[]))}function Be(){return J?du(J):G&&cs(G)?du(cs(G)):G&&Xu(G)?G.isExportEquals?"export=":"default":"(Missing)"}function de(){(J||G)&&t.addDiagnostic(xi(J||G,x.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Be(),"unique symbol"))}function ze(){(J||G)&&t.addDiagnostic(xi(J||G,x.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,Be()))}function ut(){(J||G)&&t.addDiagnostic(xi(J||G,x.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Be(),"this"))}function je(Ee){(J||G)&&t.addDiagnostic(xi(J||G,x.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,Be(),Ee))}function ve(){(J||G)&&t.addDiagnostic(xi(J||G,x.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Le(Ee,Bt,ye){var et;let Ct=(et=Bt.declarations)==null?void 0:et.find(ar=>Pn(ar)===Ee),Ot=yr(ye.declarations,ar=>Pn(ar)!==Ee);if(Ct&&Ot)for(let ar of Ot)t.addDiagnostic(ac(xi(ar,x.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),xi(Ct,x.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Ve(Ee){(J||G)&&t.addDiagnostic(xi(J||G,x.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,Ee))}function nt(Ee){let Bt=a;a=et=>et.errorNode&&gK(et.errorNode)?RA(et.errorNode)(et):{diagnosticMessage:et.errorModuleName?x.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:x.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:et.errorNode||Ee};let ye=_e.getDeclarationStatementsForSourceFile(Ee,yK,vK,U);return a=Bt,ye}function It(Ee){if(Ee.kind===308&&Ee.isDeclarationFile)return Ee;if(Ee.kind===309){u=!0,Q=[],re=[],ae=[];let Zt=!1,Qt=O.createBundle(Cr(Ee.sourceFiles,Et=>{if(Et.isDeclarationFile)return;if(Zt=Zt||Et.hasNoDefaultLib,Z=Et,g=Et,k=void 0,C=!1,T=new Map,a=n,f=!1,y=!1,et(Et),Lg(Et)||h0(Et)){_=!1,c=!1;let gi=ph(Et)?O.createNodeArray(nt(Et)):Bn(Et.statements,$o,fa);return O.updateSourceFile(Et,[O.createModuleDeclaration([O.createModifier(138)],O.createStringLiteral(phe(t.getEmitHost(),Et)),O.createModuleBlock(qt(O.createNodeArray(Wa(gi)),Et.statements)))],!0,[],[],!1,[])}c=!0;let xr=ph(Et)?O.createNodeArray(nt(Et)):Bn(Et.statements,$o,fa);return O.updateSourceFile(Et,Wa(xr),!0,[],[],!1,[])})),pr=mo(Z_(Lz(Ee,F,!0).declarationFilePath));return Qt.syntheticFileReferences=at(pr),Qt.syntheticTypeReferences=Ot(),Qt.syntheticLibReferences=ar(),Qt.hasNoDefaultLib=Zt,Qt}c=!0,f=!1,y=!1,g=Ee,Z=Ee,a=n,u=!1,_=!1,C=!1,k=void 0,T=new Map,Q=[],re=[],ae=[],et(Z);let Bt;if(ph(Z))Bt=O.createNodeArray(nt(Ee));else{let Zt=Bn(Ee.statements,$o,fa);Bt=qt(O.createNodeArray(Wa(Zt)),Ee.statements),yd(Ee)&&(!_||f&&!y)&&(Bt=qt(O.createNodeArray([...Bt,qH(O)]),Bt))}let ye=mo(Z_(Lz(Ee,F,!0).declarationFilePath));return O.updateSourceFile(Ee,Bt,!0,at(ye),Ot(),Ee.hasNoDefaultLib,ar());function et(Zt){Q=go(Q,Cr(Zt.referencedFiles,Qt=>[Zt,Qt])),re=go(re,Zt.typeReferenceDirectives),ae=go(ae,Zt.libReferenceDirectives)}function Ct(Zt){let Qt={...Zt};return Qt.pos=-1,Qt.end=-1,Qt}function Ot(){return Wn(re,Zt=>{if(Zt.preserve)return Ct(Zt)})}function ar(){return Wn(ae,Zt=>{if(Zt.preserve)return Ct(Zt)})}function at(Zt){return Wn(Q,([Qt,pr])=>{if(!pr.preserve)return;let Et=F.getSourceFileFromReference(Qt,pr);if(!Et)return;let xr;if(Et.isDeclarationFile)xr=Et.fileName;else{if(u&&un(Ee.sourceFiles,Et))return;let er=Lz(Et,F,!0);xr=er.declarationFilePath||er.jsFilePath||Et.fileName}if(!xr)return;let gi=FT(Zt,xr,F.getCurrentDirectory(),F.getCanonicalFileName,!1),Ye=Ct(pr);return Ye.fileName=gi,Ye})}}function ke(Ee){if(Ee.kind===80)return Ee;return Ee.kind===208?O.updateArrayBindingPattern(Ee,Bn(Ee.elements,Bt,Jte)):O.updateObjectBindingPattern(Ee,Bn(Ee.elements,Bt,Vc));function Bt(ye){return ye.kind===233?ye:(ye.propertyName&&dc(ye.propertyName)&&ru(ye.propertyName.expression)&&Dr(ye.propertyName.expression,g),O.updateBindingElement(ye,ye.dotDotDotToken,ye.propertyName,ke(ye.name),void 0))}}function _t(Ee,Bt){let ye;C||(ye=a,a=RA(Ee));let et=O.updateParameterDeclaration(Ee,Tsr(O,Ee,Bt),Ee.dotDotDotToken,ke(Ee.name),_e.isOptionalParameter(Ee)?Ee.questionToken||O.createToken(58):void 0,Qe(Ee,!0),tt(Ee));return C||(a=ye),et}function Se(Ee){return A_t(Ee)&&!!Ee.initializer&&_e.isLiteralConstDeclaration(vs(Ee))}function tt(Ee){if(Se(Ee)){let Bt=a3e(Ee.initializer);return Dne(Bt)||De(Ee),_e.createLiteralConstValue(vs(Ee,A_t),U)}}function Qe(Ee,Bt){if(!Bt&&Bg(Ee,2)||Se(Ee))return;if(!Xu(Ee)&&!Vc(Ee)&&Ee.type&&(!wa(Ee)||!_e.requiresAddingImplicitUndefined(Ee,g)))return At(Ee.type,oo,Wo);let ye=J;J=Ee.name;let et;C||(et=a,gK(Ee)&&(a=RA(Ee)));let Ct;return Ane(Ee)?Ct=_e.createTypeOfDeclaration(Ee,g,yK,vK,U):Rs(Ee)?Ct=_e.createReturnTypeOfSignatureDeclaration(Ee,g,yK,vK,U):$.assertNever(Ee),J=ye,C||(a=et),Ct??O.createKeywordTypeNode(133)}function We(Ee){switch(Ee=vs(Ee),Ee.kind){case 263:case 268:case 265:case 264:case 266:case 267:return!_e.isDeclarationVisible(Ee);case 261:return!Kt(Ee);case 272:case 273:case 279:case 278:return!1;case 176:return!0}return!1}function St(Ee){var Bt;if(Ee.body)return!0;let ye=(Bt=Ee.symbol.declarations)==null?void 0:Bt.filter(et=>i_(et)&&!et.body);return!ye||ye.indexOf(Ee)===ye.length-1}function Kt(Ee){return Id(Ee)?!1:$s(Ee.name)?Pt(Ee.name.elements,Kt):_e.isDeclarationVisible(Ee)}function Sr(Ee,Bt,ye){if(Bg(Ee,2))return O.createNodeArray();let et=Cr(Bt,Ct=>_t(Ct,ye));return et?O.createNodeArray(et,Bt.hasTrailingComma):O.createNodeArray()}function nn(Ee,Bt){let ye;if(!Bt){let et=cP(Ee);et&&(ye=[_t(et)])}if(mg(Ee)){let et;if(!Bt){let Ct=NU(Ee);Ct&&(et=_t(Ct))}et||(et=O.createParameterDeclaration(void 0,void 0,"value")),ye=jt(ye,et)}return O.createNodeArray(ye||j)}function Nn(Ee,Bt){return Bg(Ee,2)?void 0:Bn(Bt,oo,Zu)}function $t(Ee){return Ta(Ee)||s1(Ee)||I_(Ee)||ed(Ee)||Af(Ee)||Rs(Ee)||vC(Ee)||o3(Ee)}function Dr(Ee,Bt){let ye=_e.isEntityNameVisible(Ee,Bt);Ce(ye)}function Qn(Ee,Bt){return hy(Ee)&&hy(Bt)&&(Ee.jsDoc=Bt.jsDoc),Y_(Ee,DS(Bt))}function Ko(Ee,Bt){if(Bt){if(_=_||Ee.kind!==268&&Ee.kind!==206,Sl(Bt)&&u){let ye=H6e(t.getEmitHost(),_e,Ee);if(ye)return O.createStringLiteral(ye)}return Bt}}function is(Ee){if(_e.isDeclarationVisible(Ee))if(Ee.moduleReference.kind===284){let Bt=hU(Ee);return O.updateImportEqualsDeclaration(Ee,Ee.modifiers,Ee.isTypeOnly,Ee.name,O.updateExternalModuleReference(Ee.moduleReference,Ko(Ee,Bt)))}else{let Bt=a;return a=RA(Ee),Dr(Ee.moduleReference,g),a=Bt,Ee}}function sr(Ee){if(!Ee.importClause)return O.updateImportDeclaration(Ee,Ee.modifiers,Ee.importClause,Ko(Ee,Ee.moduleSpecifier),uo(Ee.attributes));let Bt=Ee.importClause.phaseModifier===166?void 0:Ee.importClause.phaseModifier,ye=Ee.importClause&&Ee.importClause.name&&_e.isDeclarationVisible(Ee.importClause)?Ee.importClause.name:void 0;if(!Ee.importClause.namedBindings)return ye&&O.updateImportDeclaration(Ee,Ee.modifiers,O.updateImportClause(Ee.importClause,Bt,ye,void 0),Ko(Ee,Ee.moduleSpecifier),uo(Ee.attributes));if(Ee.importClause.namedBindings.kind===275){let Ct=_e.isDeclarationVisible(Ee.importClause.namedBindings)?Ee.importClause.namedBindings:void 0;return ye||Ct?O.updateImportDeclaration(Ee,Ee.modifiers,O.updateImportClause(Ee.importClause,Bt,ye,Ct),Ko(Ee,Ee.moduleSpecifier),uo(Ee.attributes)):void 0}let et=Wn(Ee.importClause.namedBindings.elements,Ct=>_e.isDeclarationVisible(Ct)?Ct:void 0);if(et&&et.length||ye)return O.updateImportDeclaration(Ee,Ee.modifiers,O.updateImportClause(Ee.importClause,Bt,ye,et&&et.length?O.updateNamedImports(Ee.importClause.namedBindings,et):void 0),Ko(Ee,Ee.moduleSpecifier),uo(Ee.attributes));if(_e.isImportRequiredByAugmentation(Ee))return be&&t.addDiagnostic(xi(Ee,x.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),O.updateImportDeclaration(Ee,Ee.modifiers,void 0,Ko(Ee,Ee.moduleSpecifier),uo(Ee.attributes))}function uo(Ee){let Bt=$L(Ee);return Ee&&Bt!==void 0?Ee:void 0}function Wa(Ee){for(;te(k);){let ye=k.shift();if(!cre(ye))return $.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${$.formatSyntaxKind(ye.kind)}`);let et=c;c=ye.parent&&Ta(ye.parent)&&!(yd(ye.parent)&&u);let Ct=Wr(ye);c=et,T.set(gh(ye),Ct)}return Bn(Ee,Bt,fa);function Bt(ye){if(cre(ye)){let et=gh(ye);if(T.has(et)){let Ct=T.get(et);return T.delete(et),Ct&&((Zn(Ct)?Pt(Ct,Vte):Vte(Ct))&&(f=!0),Ta(ye.parent)&&(Zn(Ct)?Pt(Ct,dG):dG(Ct))&&(_=!0)),Ct}}return ye}}function oo(Ee){if(Ls(Ee))return;if(Vd(Ee)){if(We(Ee))return;if($T(Ee)){if(be){if(!_e.isDefinitelyReferenceToGlobalSymbolObject(Ee.name.expression)){if(ed(Ee.parent)||Lc(Ee.parent)){t.addDiagnostic(xi(Ee,x.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));return}else if((Af(Ee.parent)||fh(Ee.parent))&&!ru(Ee.name.expression)){t.addDiagnostic(xi(Ee,x.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations));return}}}else if(!_e.isLateBound(vs(Ee))||!ru(Ee.name.expression))return}}if(Rs(Ee)&&_e.isImplementationOfOverload(Ee)||q3e(Ee))return;let Bt;$t(Ee)&&(Bt=g,g=Ee);let ye=a,et=gK(Ee),Ct=C,Ot=(Ee.kind===188||Ee.kind===201)&&Ee.parent.kind!==266;if((Ep(Ee)||G1(Ee))&&Bg(Ee,2))return Ee.symbol&&Ee.symbol.declarations&&Ee.symbol.declarations[0]!==Ee?void 0:ar(O.createPropertyDeclaration(Es(Ee),Ee.name,void 0,void 0,void 0));if(et&&!C&&(a=RA(Ee)),gP(Ee)&&Dr(Ee.exprName,g),Ot&&(C=!0),ksr(Ee))switch(Ee.kind){case 234:{(uh(Ee.expression)||ru(Ee.expression))&&Dr(Ee.expression,g);let at=Dn(Ee,oo,t);return ar(O.updateExpressionWithTypeArguments(at,at.expression,at.typeArguments))}case 184:{Dr(Ee.typeName,g);let at=Dn(Ee,oo,t);return ar(O.updateTypeReferenceNode(at,at.typeName,at.typeArguments))}case 181:return ar(O.updateConstructSignature(Ee,Nn(Ee,Ee.typeParameters),Sr(Ee,Ee.parameters),Qe(Ee)));case 177:{let at=O.createConstructorDeclaration(Es(Ee),Sr(Ee,Ee.parameters,0),void 0);return ar(at)}case 175:{if(Aa(Ee.name))return ar(void 0);let at=O.createMethodDeclaration(Es(Ee),void 0,Ee.name,Ee.questionToken,Nn(Ee,Ee.typeParameters),Sr(Ee,Ee.parameters),Qe(Ee),void 0);return ar(at)}case 178:return Aa(Ee.name)?ar(void 0):ar(O.updateGetAccessorDeclaration(Ee,Es(Ee),Ee.name,nn(Ee,Bg(Ee,2)),Qe(Ee),void 0));case 179:return Aa(Ee.name)?ar(void 0):ar(O.updateSetAccessorDeclaration(Ee,Es(Ee),Ee.name,nn(Ee,Bg(Ee,2)),void 0));case 173:return Aa(Ee.name)?ar(void 0):ar(O.updatePropertyDeclaration(Ee,Es(Ee),Ee.name,Ee.questionToken,Qe(Ee),tt(Ee)));case 172:return Aa(Ee.name)?ar(void 0):ar(O.updatePropertySignature(Ee,Es(Ee),Ee.name,Ee.questionToken,Qe(Ee)));case 174:return Aa(Ee.name)?ar(void 0):ar(O.updateMethodSignature(Ee,Es(Ee),Ee.name,Ee.questionToken,Nn(Ee,Ee.typeParameters),Sr(Ee,Ee.parameters),Qe(Ee)));case 180:return ar(O.updateCallSignature(Ee,Nn(Ee,Ee.typeParameters),Sr(Ee,Ee.parameters),Qe(Ee)));case 182:return ar(O.updateIndexSignature(Ee,Es(Ee),Sr(Ee,Ee.parameters),At(Ee.type,oo,Wo)||O.createKeywordTypeNode(133)));case 261:return $s(Ee.name)?vo(Ee.name):(Ot=!0,C=!0,ar(O.updateVariableDeclaration(Ee,Ee.name,void 0,Qe(Ee),tt(Ee))));case 169:return Oi(Ee)&&(Ee.default||Ee.constraint)?ar(O.updateTypeParameterDeclaration(Ee,Ee.modifiers,Ee.name,void 0,void 0)):ar(Dn(Ee,oo,t));case 195:{let at=At(Ee.checkType,oo,Wo),Zt=At(Ee.extendsType,oo,Wo),Qt=g;g=Ee.trueType;let pr=At(Ee.trueType,oo,Wo);g=Qt;let Et=At(Ee.falseType,oo,Wo);return $.assert(at),$.assert(Zt),$.assert(pr),$.assert(Et),ar(O.updateConditionalTypeNode(Ee,at,Zt,pr,Et))}case 185:return ar(O.updateFunctionTypeNode(Ee,Bn(Ee.typeParameters,oo,Zu),Sr(Ee,Ee.parameters),$.checkDefined(At(Ee.type,oo,Wo))));case 186:return ar(O.updateConstructorTypeNode(Ee,Es(Ee),Bn(Ee.typeParameters,oo,Zu),Sr(Ee,Ee.parameters),$.checkDefined(At(Ee.type,oo,Wo))));case 206:return jT(Ee)?ar(O.updateImportTypeNode(Ee,O.updateLiteralTypeNode(Ee.argument,Ko(Ee,Ee.argument.literal)),Ee.attributes,Ee.qualifier,Bn(Ee.typeArguments,oo,Wo),Ee.isTypeOf)):ar(Ee);default:$.assertNever(Ee,`Attempted to process unhandled node kind: ${$.formatSyntaxKind(Ee.kind)}`)}return yF(Ee)&&qs(Z,Ee.pos).line===qs(Z,Ee.end).line&&Ai(Ee,1),ar(Dn(Ee,oo,t));function ar(at){return at&&et&&$T(Ee)&&ya(Ee),$t(Ee)&&(g=Bt),et&&!C&&(a=ye),Ot&&(C=Ct),at===Ee?at:at&&Yi(Qn(at,Ee),Ee)}}function Oi(Ee){return Ee.parent.kind===175&&Bg(Ee.parent,2)}function $o(Ee){if(!Esr(Ee)||Ls(Ee))return;switch(Ee.kind){case 279:return Ta(Ee.parent)&&(_=!0),y=!0,O.updateExportDeclaration(Ee,Ee.modifiers,Ee.isTypeOnly,Ee.exportClause,Ko(Ee,Ee.moduleSpecifier),uo(Ee.attributes));case 278:{if(Ta(Ee.parent)&&(_=!0),y=!0,Ee.expression.kind===80)return Ee;{let ye=O.createUniqueName("_default",16);a=()=>({diagnosticMessage:x.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:Ee}),G=Ee;let et=Qe(Ee),Ct=O.createVariableDeclaration(ye,void 0,et,void 0);G=void 0;let Ot=O.createVariableStatement(c?[O.createModifier(138)]:[],O.createVariableDeclarationList([Ct],2));return Qn(Ot,Ee),NH(Ee),[Ot,O.updateExportAssignment(Ee,Ee.modifiers,ye)]}}}let Bt=Wr(Ee);return T.set(gh(Ee),Bt),Ee}function ft(Ee){if(gd(Ee)||Bg(Ee,2048)||!l1(Ee))return Ee;let Bt=O.createModifiersFromModifierFlags(tm(Ee)&131039);return O.replaceModifiers(Ee,Bt)}function Ht(Ee,Bt,ye,et){let Ct=O.updateModuleDeclaration(Ee,Bt,ye,et);if(Gm(Ct)||Ct.flags&32)return Ct;let Ot=O.createModuleDeclaration(Ct.modifiers,Ct.name,Ct.body,Ct.flags|32);return Yi(Ot,Ct),qt(Ot,Ct),Ot}function Wr(Ee){if(k)for(;IT(k,Ee););if(Ls(Ee))return;switch(Ee.kind){case 272:return is(Ee);case 273:return sr(Ee)}if(Vd(Ee)&&We(Ee)||OS(Ee)||Rs(Ee)&&_e.isImplementationOfOverload(Ee))return;let Bt;$t(Ee)&&(Bt=g,g=Ee);let ye=gK(Ee),et=a;ye&&(a=RA(Ee));let Ct=c;switch(Ee.kind){case 266:{c=!1;let ar=Ot(O.updateTypeAliasDeclaration(Ee,Es(Ee),Ee.name,Bn(Ee.typeParameters,oo,Zu),$.checkDefined(At(Ee.type,oo,Wo))));return c=Ct,ar}case 265:return Ot(O.updateInterfaceDeclaration(Ee,Es(Ee),Ee.name,Nn(Ee,Ee.typeParameters),ur(Ee.heritageClauses),Bn(Ee.members,oo,KI)));case 263:{let ar=Ot(O.updateFunctionDeclaration(Ee,Es(Ee),void 0,Ee.name,Nn(Ee,Ee.typeParameters),Sr(Ee,Ee.parameters),Qe(Ee),void 0));if(ar&&_e.isExpandoFunctionDeclaration(Ee)&&St(Ee)){let at=_e.getPropertiesOfContainerFunction(Ee);be&&ue(Ee);let Zt=PA.createModuleDeclaration(void 0,ar.name||O.createIdentifier("_default"),O.createModuleBlock([]),32);xl(Zt,g),Zt.locals=ic(at),Zt.symbol=at[0].parent;let Qt=[],pr=Wn(at,Ne=>{if(!lF(Ne.valueDeclaration))return;let Y=oa(Ne.escapedName);if(!Jd(Y,99))return;a=RA(Ne.valueDeclaration);let ot=_e.createTypeOfDeclaration(Ne.valueDeclaration,Zt,yK,vK|2,U);a=et;let pe=HO(Y),Gt=pe?O.getGeneratedNameForNode(Ne.valueDeclaration):O.createIdentifier(Y);pe&&Qt.push([Gt,Y]);let mr=O.createVariableDeclaration(Gt,void 0,ot,void 0);return O.createVariableStatement(pe?void 0:[O.createToken(95)],O.createVariableDeclarationList([mr]))});Qt.length?pr.push(O.createExportDeclaration(void 0,!1,O.createNamedExports(Cr(Qt,([Ne,Y])=>O.createExportSpecifier(!1,Ne,Y))))):pr=Wn(pr,Ne=>O.replaceModifiers(Ne,0));let Et=O.createModuleDeclaration(Es(Ee),Ee.name,O.createModuleBlock(pr),32);if(!Bg(ar,2048))return[ar,Et];let xr=O.createModifiersFromModifierFlags(tm(ar)&-2081|128),gi=O.updateFunctionDeclaration(ar,xr,void 0,ar.name,ar.typeParameters,ar.parameters,ar.type,void 0),Ye=O.updateModuleDeclaration(Et,xr,Et.name,Et.body),er=O.createExportAssignment(void 0,!1,Et.name);return Ta(Ee.parent)&&(_=!0),y=!0,[gi,Ye,er]}else return ar}case 268:{c=!1;let ar=Ee.body;if(ar&&ar.kind===269){let at=f,Zt=y;y=!1,f=!1;let Qt=Bn(ar.statements,$o,fa),pr=Wa(Qt);Ee.flags&33554432&&(f=!1),!xb(Ee)&&!Cn(pr)&&!y&&(f?pr=O.createNodeArray([...pr,qH(O)]):pr=Bn(pr,ft,fa));let Et=O.updateModuleBlock(ar,pr);c=Ct,f=at,y=Zt;let xr=Es(Ee);return Ot(Ht(Ee,xr,eP(Ee)?Ko(Ee,Ee.name):Ee.name,Et))}else{c=Ct;let at=Es(Ee);c=!1,At(ar,$o);let Zt=gh(ar),Qt=T.get(Zt);return T.delete(Zt),Ot(Ht(Ee,at,Ee.name,Qt))}}case 264:{J=Ee.name,G=Ee;let ar=O.createNodeArray(Es(Ee)),at=Nn(Ee,Ee.typeParameters),Zt=Rx(Ee),Qt;if(Zt){let Ne=a;Qt=Bc(an(Zt.parameters,Y=>{if(!ko(Y,31)||Ls(Y))return;if(a=RA(Y),Y.name.kind===80)return Qn(O.createPropertyDeclaration(Es(Y),Y.name,Y.questionToken,Qe(Y),tt(Y)),Y);return ot(Y.name);function ot(pe){let Gt;for(let mr of pe.elements)Id(mr)||($s(mr.name)&&(Gt=go(Gt,ot(mr.name))),Gt=Gt||[],Gt.push(O.createPropertyDeclaration(Es(Y),mr.name,void 0,Qe(mr),void 0)));return Gt}})),a=Ne}let Et=Pt(Ee.members,Ne=>!!Ne.name&&Aa(Ne.name))?[O.createPropertyDeclaration(void 0,O.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,xr=_e.createLateBoundIndexSignatures(Ee,g,yK,vK,U),gi=go(go(go(Et,xr),Qt),Bn(Ee.members,oo,J_)),Ye=O.createNodeArray(gi),er=vv(Ee);if(er&&!ru(er.expression)&&er.expression.kind!==106){let Ne=Ee.name?oa(Ee.name.escapedText):"default",Y=O.createUniqueName(`${Ne}_base`,16);a=()=>({diagnosticMessage:x.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:er,typeName:Ee.name});let ot=O.createVariableDeclaration(Y,void 0,_e.createTypeOfExpression(er.expression,Ee,yK,vK,U),void 0),pe=O.createVariableStatement(c?[O.createModifier(138)]:[],O.createVariableDeclarationList([ot],2)),Gt=O.createNodeArray(Cr(Ee.heritageClauses,mr=>{if(mr.token===96){let Ge=a;a=RA(mr.types[0]);let Mt=O.updateHeritageClause(mr,Cr(mr.types,Ir=>O.updateExpressionWithTypeArguments(Ir,Y,Bn(Ir.typeArguments,oo,Wo))));return a=Ge,Mt}return O.updateHeritageClause(mr,Bn(O.createNodeArray(yr(mr.types,Ge=>ru(Ge.expression)||Ge.expression.kind===106)),oo,VT))}));return[pe,Ot(O.updateClassDeclaration(Ee,ar,Ee.name,at,Gt,Ye))]}else{let Ne=ur(Ee.heritageClauses);return Ot(O.updateClassDeclaration(Ee,ar,Ee.name,at,Ne,Ye))}}case 244:return Ot(ai(Ee));case 267:return Ot(O.updateEnumDeclaration(Ee,O.createNodeArray(Es(Ee)),Ee.name,O.createNodeArray(Wn(Ee.members,ar=>{if(Ls(ar))return;let at=_e.getEnumMemberValue(ar),Zt=at?.value;be&&ar.initializer&&at?.hasExternalReferences&&!dc(ar.name)&&t.addDiagnostic(xi(ar,x.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));let Qt=Zt===void 0?void 0:typeof Zt=="string"?O.createStringLiteral(Zt):Zt<0?O.createPrefixUnaryExpression(41,O.createNumericLiteral(-Zt)):O.createNumericLiteral(Zt);return Qn(O.updateEnumMember(ar,ar.name,Qt),ar)}))))}return $.assertNever(Ee,`Unhandled top-level node in declaration emit: ${$.formatSyntaxKind(Ee.kind)}`);function Ot(ar){return $t(Ee)&&(g=Bt),ye&&(a=et),Ee.kind===268&&(c=Ct),ar===Ee?ar:(G=void 0,J=void 0,ar&&Yi(Qn(ar,Ee),Ee))}}function ai(Ee){if(!X(Ee.declarationList.declarations,Kt))return;let Bt=Bn(Ee.declarationList.declarations,oo,Oo);if(!te(Bt))return;let ye=O.createNodeArray(Es(Ee)),et;return DG(Ee.declarationList)||CG(Ee.declarationList)?(et=O.createVariableDeclarationList(Bt,2),Yi(et,Ee.declarationList),qt(et,Ee.declarationList),Y_(et,Ee.declarationList)):et=O.updateVariableDeclarationList(Ee.declarationList,Bt),O.updateVariableStatement(Ee,ye,et)}function vo(Ee){return Rc(Wn(Ee.elements,Bt=>Eo(Bt)))}function Eo(Ee){if(Ee.kind!==233&&Ee.name)return Kt(Ee)?$s(Ee.name)?vo(Ee.name):O.createVariableDeclaration(Ee.name,void 0,Qe(Ee),void 0):void 0}function ya(Ee){let Bt;C||(Bt=a,a=fOe(Ee)),J=Ee.name,$.assert($T(Ee));let et=Ee.name.expression;Dr(et,g),C||(a=Bt),J=void 0}function Ls(Ee){return!!Oe&&!!Ee&&qPe(Ee,Z)}function yc(Ee){return Xu(Ee)||P_(Ee)}function Cn(Ee){return Pt(Ee,yc)}function Es(Ee){let Bt=tm(Ee),ye=Dt(Ee);return Bt===ye?Az(Ee.modifiers,et=>Ci(et,bc),bc):O.createModifiersFromModifierFlags(ye)}function Dt(Ee){let Bt=130030,ye=c&&!xsr(Ee)?128:0,et=Ee.parent.kind===308;return(!et||u&&et&&yd(Ee.parent))&&(Bt^=128,ye=0),D_t(Ee,Bt,ye)}function ur(Ee){return O.createNodeArray(yr(Cr(Ee,Bt=>O.updateHeritageClause(Bt,Bn(O.createNodeArray(yr(Bt.types,ye=>ru(ye.expression)||Bt.token===96&&ye.expression.kind===106)),oo,VT))),Bt=>Bt.types&&!!Bt.types.length))}}function xsr(t){return t.kind===265}function Tsr(t,n,a,c){return t.createModifiersFromModifierFlags(D_t(n,a,c))}function D_t(t,n=131070,a=0){let c=tm(t)&n|a;return c&2048&&!(c&32)&&(c^=32),c&2048&&c&128&&(c^=128),c}function A_t(t){switch(t.kind){case 173:case 172:return!Bg(t,2);case 170:case 261:return!0}return!1}function Esr(t){switch(t.kind){case 263:case 268:case 272:case 265:case 264:case 266:case 267:case 244:case 273:case 279:case 278:return!0}return!1}function ksr(t){switch(t.kind){case 181:case 177:case 175:case 178:case 179:case 173:case 172:case 174:case 180:case 182:case 261:case 169:case 234:case 184:case 195:case 185:case 186:case 206:return!0}return!1}function Csr(t){switch(t){case 200:return _0e;case 99:case 7:case 6:case 5:case 100:case 101:case 102:case 199:case 1:return dOe;case 4:return _Oe;default:return p0e}}var gOe={scriptTransformers:j,declarationTransformers:j};function yOe(t,n,a){return{scriptTransformers:Dsr(t,n,a),declarationTransformers:Asr(n)}}function Dsr(t,n,a){if(a)return j;let c=$c(t),u=Km(t),_=hH(t),f=[];return En(f,n&&Cr(n.before,I_t)),f.push(K8e),t.experimentalDecorators&&f.push(X8e),lne(t)&&f.push(cOe),c<99&&f.push(oOe),!t.experimentalDecorators&&(c<99||!_)&&f.push(Y8e),f.push(Q8e),c<8&&f.push(iOe),c<7&&f.push(nOe),c<6&&f.push(rOe),c<5&&f.push(tOe),c<4&&f.push(eOe),c<3&&f.push(lOe),c<2&&(f.push(uOe),f.push(pOe)),f.push(Csr(u)),En(f,n&&Cr(n.after,I_t)),f}function Asr(t){let n=[];return n.push(d0e),En(n,t&&Cr(t.afterDeclarations,Isr)),n}function wsr(t){return n=>K3e(n)?t.transformBundle(n):t.transformSourceFile(n)}function w_t(t,n){return a=>{let c=t(a);return typeof c=="function"?n(a,c):wsr(c)}}function I_t(t){return w_t(t,Cv)}function Isr(t){return w_t(t,(n,a)=>a)}function Rz(t,n){return n}function SK(t,n,a){a(t,n)}function bK(t,n,a,c,u,_,f){var y,g;let k=new Array(359),T,C,O,F=0,M=[],U=[],J=[],G=[],Z=0,Q=!1,re=[],ae=0,_e,me,le=Rz,Oe=SK,be=0,ue=[],De={factory:a,getCompilerOptions:()=>c,getEmitResolver:()=>t,getEmitHost:()=>n,getEmitHelperFactory:Ef(()=>w3e(De)),startLexicalEnvironment:ke,suspendLexicalEnvironment:_t,resumeLexicalEnvironment:Se,endLexicalEnvironment:tt,setLexicalEnvironmentFlags:Qe,getLexicalEnvironmentFlags:We,hoistVariableDeclaration:Ve,hoistFunctionDeclaration:nt,addInitializationStatement:It,startBlockScope:St,endBlockScope:Kt,addBlockScopedVariable:Sr,requestEmitHelper:nn,readEmitHelpers:Nn,enableSubstitution:de,enableEmitNotification:je,isSubstitutionEnabled:ze,isEmitNotificationEnabled:ve,get onSubstituteNode(){return le},set onSubstituteNode(Dr){$.assert(be<1,"Cannot modify transformation hooks after initialization has completed."),$.assert(Dr!==void 0,"Value must not be 'undefined'"),le=Dr},get onEmitNode(){return Oe},set onEmitNode(Dr){$.assert(be<1,"Cannot modify transformation hooks after initialization has completed."),$.assert(Dr!==void 0,"Value must not be 'undefined'"),Oe=Dr},addDiagnostic(Dr){ue.push(Dr)}};for(let Dr of u)Sge(Pn(vs(Dr)));jl("beforeTransform");let Ce=_.map(Dr=>Dr(De)),Ae=Dr=>{for(let Qn of Ce)Dr=Qn(Dr);return Dr};be=1;let Fe=[];for(let Dr of u)(y=hi)==null||y.push(hi.Phase.Emit,"transformNodes",Dr.kind===308?{path:Dr.path}:{kind:Dr.kind,pos:Dr.pos,end:Dr.end}),Fe.push((f?Ae:Be)(Dr)),(g=hi)==null||g.pop();return be=2,jl("afterTransform"),Jm("transformTime","beforeTransform","afterTransform"),{transformed:Fe,substituteNode:ut,emitNodeWithNotification:Le,isEmitNotificationEnabled:ve,dispose:$t,diagnostics:ue};function Be(Dr){return Dr&&(!Ta(Dr)||!Dr.isDeclarationFile)?Ae(Dr):Dr}function de(Dr){$.assert(be<2,"Cannot modify the transformation context after transformation has completed."),k[Dr]|=1}function ze(Dr){return(k[Dr.kind]&1)!==0&&(Xc(Dr)&8)===0}function ut(Dr,Qn){return $.assert(be<3,"Cannot substitute a node after the result is disposed."),Qn&&ze(Qn)&&le(Dr,Qn)||Qn}function je(Dr){$.assert(be<2,"Cannot modify the transformation context after transformation has completed."),k[Dr]|=2}function ve(Dr){return(k[Dr.kind]&2)!==0||(Xc(Dr)&4)!==0}function Le(Dr,Qn,Ko){$.assert(be<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Qn&&(ve(Qn)?Oe(Dr,Qn,Ko):Ko(Dr,Qn))}function Ve(Dr){$.assert(be>0,"Cannot modify the lexical environment during initialization."),$.assert(be<2,"Cannot modify the lexical environment after transformation has completed.");let Qn=Ai(a.createVariableDeclaration(Dr),128);T?T.push(Qn):T=[Qn],F&1&&(F|=2)}function nt(Dr){$.assert(be>0,"Cannot modify the lexical environment during initialization."),$.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),Ai(Dr,2097152),C?C.push(Dr):C=[Dr]}function It(Dr){$.assert(be>0,"Cannot modify the lexical environment during initialization."),$.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),Ai(Dr,2097152),O?O.push(Dr):O=[Dr]}function ke(){$.assert(be>0,"Cannot modify the lexical environment during initialization."),$.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),$.assert(!Q,"Lexical environment is suspended."),M[Z]=T,U[Z]=C,J[Z]=O,G[Z]=F,Z++,T=void 0,C=void 0,O=void 0,F=0}function _t(){$.assert(be>0,"Cannot modify the lexical environment during initialization."),$.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),$.assert(!Q,"Lexical environment is already suspended."),Q=!0}function Se(){$.assert(be>0,"Cannot modify the lexical environment during initialization."),$.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),$.assert(Q,"Lexical environment is not suspended."),Q=!1}function tt(){$.assert(be>0,"Cannot modify the lexical environment during initialization."),$.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),$.assert(!Q,"Lexical environment is suspended.");let Dr;if(T||C||O){if(C&&(Dr=[...C]),T){let Qn=a.createVariableStatement(void 0,a.createVariableDeclarationList(T));Ai(Qn,2097152),Dr?Dr.push(Qn):Dr=[Qn]}O&&(Dr?Dr=[...Dr,...O]:Dr=[...O])}return Z--,T=M[Z],C=U[Z],O=J[Z],F=G[Z],Z===0&&(M=[],U=[],J=[],G=[]),Dr}function Qe(Dr,Qn){F=Qn?F|Dr:F&~Dr}function We(){return F}function St(){$.assert(be>0,"Cannot start a block scope during initialization."),$.assert(be<2,"Cannot start a block scope after transformation has completed."),re[ae]=_e,ae++,_e=void 0}function Kt(){$.assert(be>0,"Cannot end a block scope during initialization."),$.assert(be<2,"Cannot end a block scope after transformation has completed.");let Dr=Pt(_e)?[a.createVariableStatement(void 0,a.createVariableDeclarationList(_e.map(Qn=>a.createVariableDeclaration(Qn)),1))]:void 0;return ae--,_e=re[ae],ae===0&&(re=[]),Dr}function Sr(Dr){$.assert(ae>0,"Cannot add a block scoped variable outside of an iteration body."),(_e||(_e=[])).push(Dr)}function nn(Dr){if($.assert(be>0,"Cannot modify the transformation context during initialization."),$.assert(be<2,"Cannot modify the transformation context after transformation has completed."),$.assert(!Dr.scoped,"Cannot request a scoped emit helper."),Dr.dependencies)for(let Qn of Dr.dependencies)nn(Qn);me=jt(me,Dr)}function Nn(){$.assert(be>0,"Cannot modify the transformation context during initialization."),$.assert(be<2,"Cannot modify the transformation context after transformation has completed.");let Dr=me;return me=void 0,Dr}function $t(){if(be<3){for(let Dr of u)Sge(Pn(vs(Dr)));T=void 0,M=void 0,C=void 0,U=void 0,le=void 0,Oe=void 0,me=void 0,be=3}}}var xK={factory:W,getCompilerOptions:()=>({}),getEmitResolver:Ts,getEmitHost:Ts,getEmitHelperFactory:Ts,startLexicalEnvironment:zs,resumeLexicalEnvironment:zs,suspendLexicalEnvironment:zs,endLexicalEnvironment:Sx,setLexicalEnvironmentFlags:zs,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:zs,hoistFunctionDeclaration:zs,addInitializationStatement:zs,startBlockScope:zs,endBlockScope:Sx,addBlockScopedVariable:zs,requestEmitHelper:zs,readEmitHelpers:Ts,enableSubstitution:zs,enableEmitNotification:zs,isSubstitutionEnabled:Ts,isEmitNotificationEnabled:Ts,onSubstituteNode:Rz,onEmitNode:SK,addDiagnostic:zs},P_t=Nsr();function vOe(t){return Au(t,".tsbuildinfo")}function f0e(t,n,a,c=!1,u,_){let f=Zn(a)?a:zre(t,a,c),y=t.getCompilerOptions();if(!u)if(y.outFile){if(f.length){let g=W.createBundle(f),k=n(Lz(g,t,c),g);if(k)return k}}else for(let g of f){let k=n(Lz(g,t,c),g);if(k)return k}if(_){let g=LA(y);if(g)return n({buildInfoPath:g},void 0)}}function LA(t){let n=t.configFilePath;if(!Psr(t))return;if(t.tsBuildInfoFile)return t.tsBuildInfoFile;let a=t.outFile,c;if(a)c=Qm(a);else{if(!n)return;let u=Qm(n);c=t.outDir?t.rootDir?mb(t.outDir,lh(t.rootDir,u,!0)):Xi(t.outDir,t_(u)):u}return c+".tsbuildinfo"}function Psr(t){return dP(t)||!!t.tscBuild}function SOe(t,n){let a=t.outFile,c=t.emitDeclarationOnly?void 0:a,u=c&&N_t(c,t),_=n||fg(t)?Qm(a)+".d.ts":void 0,f=_&&one(t)?_+".map":void 0;return{jsFilePath:c,sourceMapFilePath:u,declarationFilePath:_,declarationMapPath:f}}function Lz(t,n,a){let c=n.getCompilerOptions();if(t.kind===309)return SOe(c,a);{let u=K6e(t.fileName,n,TK(t.fileName,c)),_=h0(t),f=_&&M1(t.fileName,u,n.getCurrentDirectory(),!n.useCaseSensitiveFileNames())===0,y=c.emitDeclarationOnly||f?void 0:u,g=!y||h0(t)?void 0:N_t(y,c),k=a||fg(c)&&!_?Q6e(t.fileName,n):void 0,T=k&&one(c)?k+".map":void 0;return{jsFilePath:y,sourceMapFilePath:g,declarationFilePath:k,declarationMapPath:T}}}function N_t(t,n){return n.sourceMap&&!n.inlineSourceMap?t+".map":void 0}function TK(t,n){return Au(t,".json")?".json":n.jsx===1&&_p(t,[".jsx",".tsx"])?".jsx":_p(t,[".mts",".mjs"])?".mjs":_p(t,[".cts",".cjs"])?".cjs":".js"}function O_t(t,n,a,c){return a?mb(a,lh(c(),t,n)):t}function Mz(t,n,a,c=()=>S3(n,a)){return m0e(t,n.options,a,c)}function m0e(t,n,a,c){return hE(O_t(t,a,n.declarationDir||n.outDir,c),$re(t))}function F_t(t,n,a,c=()=>S3(n,a)){if(n.options.emitDeclarationOnly)return;let u=Au(t,".json"),_=h0e(t,n.options,a,c);return!u||M1(t,_,$.checkDefined(n.options.configFilePath),a)!==0?_:void 0}function h0e(t,n,a,c){return hE(O_t(t,a,n.outDir,c),TK(t,n))}function R_t(){let t;return{addOutput:n,getOutputs:a};function n(c){c&&(t||(t=[])).push(c)}function a(){return t||j}}function L_t(t,n){let{jsFilePath:a,sourceMapFilePath:c,declarationFilePath:u,declarationMapPath:_}=SOe(t.options,!1);n(a),n(c),n(u),n(_)}function M_t(t,n,a,c,u){if(sf(n))return;let _=F_t(n,t,a,u);if(c(_),!Au(n,".json")&&(_&&t.options.sourceMap&&c(`${_}.map`),fg(t.options))){let f=Mz(n,t,a,u);c(f),t.options.declarationMap&&c(`${f}.map`)}}function jz(t,n,a,c,u){let _;return t.rootDir?(_=za(t.rootDir,a),u?.(t.rootDir)):t.composite&&t.configFilePath?(_=mo(Z_(t.configFilePath)),u?.(_)):_=AOe(n(),a,c),_&&_[_.length-1]!==Gl&&(_+=Gl),_}function S3({options:t,fileNames:n},a){return jz(t,()=>yr(n,c=>!(t.noEmitForJsFiles&&_p(c,cL))&&!sf(c)),mo(Z_($.checkDefined(t.configFilePath))),_d(!a))}function Wie(t,n){let{addOutput:a,getOutputs:c}=R_t();if(t.options.outFile)L_t(t,a);else{let u=Ef(()=>S3(t,n));for(let _ of t.fileNames)M_t(t,_,n,a,u)}return a(LA(t.options)),c()}function j_t(t,n,a){n=Qs(n),$.assert(un(t.fileNames,n),"Expected fileName to be present in command line");let{addOutput:c,getOutputs:u}=R_t();return t.options.outFile?L_t(t,c):M_t(t,n,a,c),u()}function g0e(t,n){if(t.options.outFile){let{jsFilePath:u,declarationFilePath:_}=SOe(t.options,!1);return $.checkDefined(u||_,`project ${t.options.configFilePath} expected to have at least one output`)}let a=Ef(()=>S3(t,n));for(let u of t.fileNames){if(sf(u))continue;let _=F_t(u,t,n,a);if(_)return _;if(!Au(u,".json")&&fg(t.options))return Mz(u,t,n,a)}let c=LA(t.options);return c||$.fail(`project ${t.options.configFilePath} expected to have at least one output`)}function y0e(t,n){return!!n&&!!t}function v0e(t,n,a,{scriptTransformers:c,declarationTransformers:u},_,f,y,g){var k=n.getCompilerOptions(),T=k.sourceMap||k.inlineSourceMap||one(k)?[]:void 0,C=k.listEmittedFiles?[]:void 0,O=IU(),F=fE(k),M=nH(F),{enter:U,exit:J}=iO("printTime","beforePrint","afterPrint"),G=!1;return U(),f0e(n,Z,zre(n,a,y),y,f,!a&&!g),J(),{emitSkipped:G,diagnostics:O.getDiagnostics(),emittedFiles:C,sourceMaps:T};function Z({jsFilePath:Ce,sourceMapFilePath:Ae,declarationFilePath:Fe,declarationMapPath:Be,buildInfoPath:de},ze){var ut,je,ve,Le,Ve,nt;(ut=hi)==null||ut.push(hi.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:Ce}),re(ze,Ce,Ae),(je=hi)==null||je.pop(),(ve=hi)==null||ve.push(hi.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:Fe}),ae(ze,Fe,Be),(Le=hi)==null||Le.pop(),(Ve=hi)==null||Ve.push(hi.Phase.Emit,"emitBuildInfo",{buildInfoPath:de}),Q(de),(nt=hi)==null||nt.pop()}function Q(Ce){if(!Ce||a)return;if(n.isEmitBlocked(Ce)){G=!0;return}let Ae=n.getBuildInfo()||{version:L};Jre(n,O,Ce,bOe(Ae),!1,void 0,{buildInfo:Ae}),C?.push(Ce)}function re(Ce,Ae,Fe){if(!Ce||_||!Ae)return;if(n.isEmitBlocked(Ae)||k.noEmit){G=!0;return}(Ta(Ce)?[Ce]:yr(Ce.sourceFiles,kre)).forEach(ut=>{(k.noCheck||!GU(ut,k))&&me(ut)});let Be=bK(t,n,W,k,[Ce],c,!1),de={removeComments:k.removeComments,newLine:k.newLine,noEmitHelpers:k.noEmitHelpers,module:Km(k),moduleResolution:km(k),target:$c(k),sourceMap:k.sourceMap,inlineSourceMap:k.inlineSourceMap,inlineSources:k.inlineSources,extendedDiagnostics:k.extendedDiagnostics},ze=DC(de,{hasGlobalName:t.hasGlobalName,onEmitNode:Be.emitNodeWithNotification,isEmitNotificationEnabled:Be.isEmitNotificationEnabled,substituteNode:Be.substituteNode});$.assert(Be.transformed.length===1,"Should only see one output from the transform"),le(Ae,Fe,Be,ze,k),Be.dispose(),C&&(C.push(Ae),Fe&&C.push(Fe))}function ae(Ce,Ae,Fe){if(!Ce||_===0)return;if(!Ae){(_||k.emitDeclarationOnly)&&(G=!0);return}let Be=Ta(Ce)?[Ce]:Ce.sourceFiles,de=y?Be:yr(Be,kre),ze=k.outFile?[W.createBundle(de)]:de;de.forEach(ve=>{(_&&!fg(k)||k.noCheck||y0e(_,y)||!GU(ve,k))&&_e(ve)});let ut=bK(t,n,W,k,ze,u,!1);if(te(ut.diagnostics))for(let ve of ut.diagnostics)O.add(ve);let je=!!ut.diagnostics&&!!ut.diagnostics.length||!!n.isEmitBlocked(Ae)||!!k.noEmit;if(G=G||je,!je||y){$.assert(ut.transformed.length===1,"Should only see one output from the decl transform");let ve={removeComments:k.removeComments,newLine:k.newLine,noEmitHelpers:!0,module:k.module,moduleResolution:k.moduleResolution,target:k.target,sourceMap:_!==2&&k.declarationMap,inlineSourceMap:k.inlineSourceMap,extendedDiagnostics:k.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},Le=DC(ve,{hasGlobalName:t.hasGlobalName,onEmitNode:ut.emitNodeWithNotification,isEmitNotificationEnabled:ut.isEmitNotificationEnabled,substituteNode:ut.substituteNode}),Ve=le(Ae,Fe,ut,Le,{sourceMap:ve.sourceMap,sourceRoot:k.sourceRoot,mapRoot:k.mapRoot,extendedDiagnostics:k.extendedDiagnostics});C&&(Ve&&C.push(Ae),Fe&&C.push(Fe))}ut.dispose()}function _e(Ce){if(Xu(Ce)){Ce.expression.kind===80&&t.collectLinkedAliases(Ce.expression,!0);return}else if(Cm(Ce)){t.collectLinkedAliases(Ce.propertyName||Ce.name,!0);return}Is(Ce,_e)}function me(Ce){ph(Ce)||CF(Ce,Ae=>{if(gd(Ae)&&!(_E(Ae)&32)||fp(Ae))return"skip";t.markLinkedReferences(Ae)})}function le(Ce,Ae,Fe,Be,de){let ze=Fe.transformed[0],ut=ze.kind===309?ze:void 0,je=ze.kind===308?ze:void 0,ve=ut?ut.sourceFiles:[je],Le;Oe(de,ze)&&(Le=P8e(n,t_(Z_(Ce)),be(de),ue(de,Ce,je),de)),ut?Be.writeBundle(ut,M,Le):Be.writeFile(je,M,Le);let Ve;if(Le){T&&T.push({inputSourceFileNames:Le.getSources(),sourceMap:Le.toJSON()});let ke=De(de,Le,Ce,Ae,je);if(ke&&(M.isAtStartOfLine()||M.rawWrite(F),Ve=M.getTextPos(),M.writeComment(`//# sourceMappingURL=${ke}`)),Ae){let _t=Le.toString();Jre(n,O,Ae,_t,!1,ve)}}else M.writeLine();let nt=M.getText(),It={sourceMapUrlPos:Ve,diagnostics:Fe.diagnostics};return Jre(n,O,Ce,nt,!!k.emitBOM,ve,It),M.clear(),!It.skippedDtsWrite}function Oe(Ce,Ae){return(Ce.sourceMap||Ce.inlineSourceMap)&&(Ae.kind!==308||!Au(Ae.fileName,".json"))}function be(Ce){let Ae=Z_(Ce.sourceRoot||"");return Ae&&r_(Ae)}function ue(Ce,Ae,Fe){if(Ce.sourceRoot)return n.getCommonSourceDirectory();if(Ce.mapRoot){let Be=Z_(Ce.mapRoot);return Fe&&(Be=mo(qre(Fe.fileName,n,Be))),Fy(Be)===0&&(Be=Xi(n.getCommonSourceDirectory(),Be)),Be}return mo(Qs(Ae))}function De(Ce,Ae,Fe,Be,de){if(Ce.inlineSourceMap){let ut=Ae.toString();return`data:application/json;base64,${_4e(f_,ut)}`}let ze=t_(Z_($.checkDefined(Be)));if(Ce.mapRoot){let ut=Z_(Ce.mapRoot);return de&&(ut=mo(qre(de.fileName,n,ut))),Fy(ut)===0?(ut=Xi(n.getCommonSourceDirectory(),ut),encodeURI(FT(mo(Qs(Fe)),Xi(ut,ze),n.getCurrentDirectory(),n.getCanonicalFileName,!0))):encodeURI(Xi(ut,ze))}return encodeURI(ze)}}function bOe(t){return JSON.stringify(t)}function S0e(t,n){return Che(t,n)}var xOe={hasGlobalName:Ts,getReferencedExportContainer:Ts,getReferencedImportDeclaration:Ts,getReferencedDeclarationWithCollidingName:Ts,isDeclarationWithCollidingName:Ts,isValueAliasDeclaration:Ts,isReferencedAliasDeclaration:Ts,isTopLevelValueImportEqualsWithEntityName:Ts,hasNodeCheckFlag:Ts,isDeclarationVisible:Ts,isLateBound:t=>!1,collectLinkedAliases:Ts,markLinkedReferences:Ts,isImplementationOfOverload:Ts,requiresAddingImplicitUndefined:Ts,isExpandoFunctionDeclaration:Ts,getPropertiesOfContainerFunction:Ts,createTypeOfDeclaration:Ts,createReturnTypeOfSignatureDeclaration:Ts,createTypeOfExpression:Ts,createLiteralConstValue:Ts,isSymbolAccessible:Ts,isEntityNameVisible:Ts,getConstantValue:Ts,getEnumMemberValue:Ts,getReferencedValueDeclaration:Ts,getReferencedValueDeclarations:Ts,getTypeReferenceSerializationKind:Ts,isOptionalParameter:Ts,isArgumentsLocalBinding:Ts,getExternalModuleFileFromDeclaration:Ts,isLiteralConstDeclaration:Ts,getJsxFactoryEntity:Ts,getJsxFragmentFactoryEntity:Ts,isBindingCapturedByNode:Ts,getDeclarationStatementsForSourceFile:Ts,isImportRequiredByAugmentation:Ts,isDefinitelyReferenceToGlobalSymbolObject:Ts,createLateBoundIndexSignatures:Ts,symbolToDeclarations:Ts},TOe=Ef(()=>DC({})),wP=Ef(()=>DC({removeComments:!0})),EOe=Ef(()=>DC({removeComments:!0,neverAsciiEscape:!0})),b0e=Ef(()=>DC({removeComments:!0,omitTrailingSemicolon:!0}));function DC(t={},n={}){var{hasGlobalName:a,onEmitNode:c=SK,isEmitNotificationEnabled:u,substituteNode:_=Rz,onBeforeEmitNode:f,onAfterEmitNode:y,onBeforeEmitNodeArray:g,onAfterEmitNodeArray:k,onBeforeEmitToken:T,onAfterEmitToken:C}=n,O=!!t.extendedDiagnostics,F=!!t.omitBraceSourceMapPositions,M=fE(t),U=Km(t),J=new Map,G,Z,Q,re,ae,_e,me,le,Oe,be,ue,De,Ce,Ae,Fe,Be=t.preserveSourceNewlines,de,ze,ut,je=bM,ve,Le=!0,Ve,nt,It=-1,ke,_t=-1,Se=-1,tt=-1,Qe=-1,We,St,Kt=!1,Sr=!!t.removeComments,nn,Nn,{enter:$t,exit:Dr}=S$(O,"commentTime","beforeComment","afterComment"),Qn=W.parenthesizer,Ko={select:B=>B===0?Qn.parenthesizeLeadingTypeArgument:void 0},is=nd();return Ls(),{printNode:sr,printList:uo,printFile:oo,printBundle:Wa,writeNode:Oi,writeList:$o,writeFile:Ht,writeBundle:ft};function sr(B,Pe,Wt){switch(B){case 0:$.assert(Ta(Pe),"Expected a SourceFile node.");break;case 2:$.assert(ct(Pe),"Expected an Identifier node.");break;case 1:$.assert(Vt(Pe),"Expected an Expression node.");break}switch(Pe.kind){case 308:return oo(Pe);case 309:return Wa(Pe)}return Oi(B,Pe,Wt,Wr()),ai()}function uo(B,Pe,Wt){return $o(B,Pe,Wt,Wr()),ai()}function Wa(B){return ft(B,Wr(),void 0),ai()}function oo(B){return Ht(B,Wr(),void 0),ai()}function Oi(B,Pe,Wt,ln){let Fo=ze;ya(ln,void 0),vo(B,Pe,Wt),Ls(),ze=Fo}function $o(B,Pe,Wt,ln){let Fo=ze;ya(ln,void 0),Wt&&Eo(Wt),io(void 0,Pe,B),Ls(),ze=Fo}function ft(B,Pe,Wt){ve=!1;let ln=ze;ya(Pe,Wt),RE(B),Y1(B),xr(B),Eq(B);for(let Fo of B.sourceFiles)vo(0,Fo,Fo);Ls(),ze=ln}function Ht(B,Pe,Wt){ve=!0;let ln=ze;ya(Pe,Wt),RE(B),Y1(B),vo(0,B,B),Ls(),ze=ln}function Wr(){return ut||(ut=nH(M))}function ai(){let B=ut.getText();return ut.clear(),B}function vo(B,Pe,Wt){Wt&&Eo(Wt),ye(B,Pe,void 0)}function Eo(B){G=B,We=void 0,St=void 0,B&&QP(B)}function ya(B,Pe){B&&t.omitTrailingSemicolon&&(B=uhe(B)),ze=B,Ve=Pe,Le=!ze||!Ve}function Ls(){Z=[],Q=[],re=[],ae=new Set,_e=[],me=new Map,le=[],Oe=0,be=[],ue=0,De=[],Ce=void 0,Ae=[],Fe=void 0,G=void 0,We=void 0,St=void 0,ya(void 0,void 0)}function yc(){return We||(We=Ry($.checkDefined(G)))}function Cn(B,Pe){B!==void 0&&ye(4,B,Pe)}function Es(B){B!==void 0&&ye(2,B,void 0)}function Dt(B,Pe){B!==void 0&&ye(1,B,Pe)}function ur(B){ye(Ic(B)?6:4,B)}function Ee(B){Be&&J1(B)&4&&(Be=!1)}function Bt(B){Be=B}function ye(B,Pe,Wt){Nn=Wt,Ot(0,B,Pe)(B,Pe),Nn=void 0}function et(B){return!Sr&&!Ta(B)}function Ct(B){return!Le&&!Ta(B)&&!Ere(B)}function Ot(B,Pe,Wt){switch(B){case 0:if(c!==SK&&(!u||u(Wt)))return at;case 1:if(_!==Rz&&(nn=_(Pe,Wt)||Wt)!==Wt)return Nn&&(nn=Nn(nn)),Et;case 2:if(et(Wt))return HP;case 3:if(Ct(Wt))return Q3;case 4:return Zt;default:return $.assertNever(B)}}function ar(B,Pe,Wt){return Ot(B+1,Pe,Wt)}function at(B,Pe){let Wt=ar(0,B,Pe);c(B,Pe,Wt)}function Zt(B,Pe){if(f?.(Pe),Be){let Wt=Be;Ee(Pe),Qt(B,Pe),Bt(Wt)}else Qt(B,Pe);y?.(Pe),Nn=void 0}function Qt(B,Pe,Wt=!0){if(Wt){let ln=xge(Pe);if(ln)return Ne(B,Pe,ln)}if(B===0)return tw(Ba(Pe,Ta));if(B===2)return pe(Ba(Pe,ct));if(B===6)return er(Ba(Pe,Ic),!0);if(B===3)return pr(Ba(Pe,Zu));if(B===7)return zS(Ba(Pe,l3));if(B===5)return $.assertNode(Pe,Oge),Iv(!0);if(B===4){switch(Pe.kind){case 16:case 17:case 18:return er(Pe,!1);case 80:return pe(Pe);case 81:return Gt(Pe);case 167:return mr(Pe);case 168:return Mt(Pe);case 169:return Ir(Pe);case 170:return ii(Pe);case 171:return Rn(Pe);case 172:return zn(Pe);case 173:return Rt(Pe);case 174:return rr(Pe);case 175:return _r(Pe);case 176:return wr(Pe);case 177:return pn(Pe);case 178:case 179:return tn(Pe);case 180:return lr(Pe);case 181:return cn(Pe);case 182:return gn(Pe);case 183:return Uo(Pe);case 184:return Ys(Pe);case 185:return ec(Pe);case 186:return V_(Pe);case 187:return Nu(Pe);case 188:return kc(Pe);case 189:return o_(Pe);case 190:return _s(Pe);case 191:return sl(Pe);case 193:return Yc(Pe);case 194:return Ar(Pe);case 195:return Ql(Pe);case 196:return Gp(Pe);case 197:return N_(Pe);case 234:return uf(Pe);case 198:return lf();case 199:return Yu(Pe);case 200:return Hp(Pe);case 201:return H(Pe);case 202:return st(Pe);case 203:return sc(Pe);case 204:return zt(Pe);case 205:return bn(Pe);case 206:return Er(Pe);case 207:return jn(Pe);case 208:return So(Pe);case 209:return Di(Pe);case 240:return Wx(Pe);case 241:return $r();case 242:return Gx(Pe);case 244:return Nd(Pe);case 243:return Iv(!1);case 245:return Hy(Pe);case 246:return US(Pe);case 247:return Ft(Pe);case 248:return Nr(Pe);case 249:return Mr(Pe);case 250:return wn(Pe);case 251:return Yn(Pe);case 252:return Mo(Pe);case 253:return Ea(Pe);case 254:return Ws(Pe);case 255:return Xa(Pe);case 256:return ks(Pe);case 257:return cp(Pe);case 258:return Cc(Pe);case 259:return pf(Pe);case 260:return Kg(Pe);case 261:return Ky(Pe);case 262:return A0(Pe);case 263:return r2(Pe);case 264:return dn(Pe);case 265:return Fi(Pe);case 266:return $n(Pe);case 267:return oi(Pe);case 268:return sa(Pe);case 269:return os(Pe);case 270:return Po(Pe);case 271:return Fb(Pe);case 272:return as(Pe);case 273:return lp(Pe);case 274:return Hh(Pe);case 275:return f1(Pe);case 281:return hM(Pe);case 276:return Pf(Pe);case 277:return m1(Pe);case 278:return Qg(Pe);case 279:return GA(Pe);case 280:return xq(Pe);case 282:return gM(Pe);case 301:return Ob(Pe);case 302:return HA(Pe);case 283:return;case 284:return P3(Pe);case 12:return O3(Pe);case 287:case 290:return Tq(Pe);case 288:case 291:return t7(Pe);case 292:return yM(Pe);case 293:return QA(Pe);case 294:return F3(Pe);case 295:return n7(Pe);case 296:return i7(Pe);case 297:return RC(Pe);case 298:return OE(Pe);case 299:return i2(Pe);case 300:return o2(Pe);case 304:return LC(Pe);case 305:return ZA(Pe);case 306:return R3(Pe);case 307:return XA(Pe);case 308:return tw(Pe);case 309:return $.fail("Bundles should be printed using printBundle");case 310:return ew(Pe);case 311:return s2(Pe);case 313:return qi("*");case 314:return qi("?");case 315:return uu(Pe);case 316:return $a(Pe);case 317:return bs(Pe);case 318:return Cp(Pe);case 192:case 319:return Gy(Pe);case 320:return;case 321:return il(Pe);case 323:return eh(Pe);case 324:return Lb(Pe);case 328:case 333:case 338:return YA(Pe);case 329:case 330:return Rb(Pe);case 331:case 332:return;case 334:case 335:case 336:case 337:return;case 339:return Kh(Pe);case 340:return sm(Pe);case 342:case 349:return Sh(Pe);case 341:case 343:case 344:case 345:case 350:case 351:return L3(Pe);case 346:return tp(Pe);case 347:return am(Pe);case 348:return vM(Pe);case 352:return a2(Pe);case 354:case 355:return}if(Vt(Pe)&&(B=1,_!==Rz)){let ln=_(B,Pe)||Pe;ln!==Pe&&(Pe=ln,Nn&&(Pe=Nn(Pe)))}}if(B===1)switch(Pe.kind){case 9:case 10:return Ye(Pe);case 11:case 14:case 15:return er(Pe,!1);case 80:return pe(Pe);case 81:return Gt(Pe);case 210:return On(Pe);case 211:return ua(Pe);case 212:return va(Pe);case 213:return xc(Pe);case 214:return ep(Pe);case 215:return W_(Pe);case 216:return g_(Pe);case 217:return xu(Pe);case 218:return a_(Pe);case 219:return Gg(Pe);case 220:return Wf(Pe);case 221:return rt(Pe);case 222:return br(Pe);case 223:return Vn(Pe);case 224:return Ga(Pe);case 225:return el(Pe);case 226:return Uc(Pe);case 227:return is(Pe);case 228:return Mu(Pe);case 229:return Dp(Pe);case 230:return Kp(Pe);case 231:return vy(Pe);case 232:return If(Pe);case 233:return;case 235:return Hg(Pe);case 236:return Ym(Pe);case 234:return uf(Pe);case 239:return D0(Pe);case 237:return Pb(Pe);case 238:return $.fail("SyntheticExpression should never be printed.");case 283:return;case 285:return NE(Pe);case 286:return N3(Pe);case 289:return e7(Pe);case 353:return $.fail("SyntaxList should not be printed");case 354:return;case 356:return gt(Pe);case 357:return M3(Pe);case 358:return $.fail("SyntheticReferenceExpression should not be printed")}if(Uh(Pe.kind))return U3(Pe,gs);if(rme(Pe.kind))return U3(Pe,qi);$.fail(`Unhandled SyntaxKind: ${$.formatSyntaxKind(Pe.kind)}.`)}function pr(B){Cn(B.name),Ii(),gs("in"),Ii(),Cn(B.constraint)}function Et(B,Pe){let Wt=ar(1,B,Pe);$.assertIsDefined(nn),Pe=nn,nn=void 0,Wt(B,Pe)}function xr(B){let Pe=!1,Wt=B.kind===309?B:void 0;if(Wt&&U===0)return;let ln=Wt?Wt.sourceFiles.length:1;for(let Fo=0;Fo")}function Mp(B){Ii(),Cn(B.type)}function Cp(B){gs("function"),nw(B,B.parameters),qi(":"),Cn(B.type)}function uu(B){qi("?"),Cn(B.type)}function $a(B){qi("!"),Cn(B.type)}function bs(B){Cn(B.type),qi("=")}function V_(B){Nv(B,B.modifiers),gs("new"),Ii(),vh(B,Ss,Mp)}function Nu(B){gs("typeof"),Ii(),Cn(B.exprName),w0(B,B.typeArguments)}function kc(B){tv(B),X(B.members,GP),qi("{");let Pe=Xc(B)&1?768:32897;io(B,B.members,Pe|524288),qi("}"),p2(B)}function o_(B){Cn(B.elementType,Qn.parenthesizeNonArrayTypeOfPostfixType),qi("["),qi("]")}function Gy(B){qi("..."),Cn(B.type)}function _s(B){ee(23,B.pos,qi,B);let Pe=Xc(B)&1?528:657;io(B,B.elements,Pe|524288,Qn.parenthesizeElementTypeOfTupleType),ee(24,B.elements.end,qi,B)}function sc(B){Cn(B.dotDotDotToken),Cn(B.name),Cn(B.questionToken),ee(59,B.name.end,qi,B),Ii(),Cn(B.type)}function sl(B){Cn(B.type,Qn.parenthesizeTypeOfOptionalType),qi("?")}function Yc(B){io(B,B.types,516,Qn.parenthesizeConstituentTypeOfUnionType)}function Ar(B){io(B,B.types,520,Qn.parenthesizeConstituentTypeOfIntersectionType)}function Ql(B){Cn(B.checkType,Qn.parenthesizeCheckTypeOfConditionalType),Ii(),gs("extends"),Ii(),Cn(B.extendsType,Qn.parenthesizeExtendsTypeOfConditionalType),Ii(),qi("?"),Ii(),Cn(B.trueType),Ii(),qi(":"),Ii(),Cn(B.falseType)}function Gp(B){gs("infer"),Ii(),Cn(B.typeParameter)}function N_(B){qi("("),Cn(B.type),qi(")")}function lf(){gs("this")}function Yu(B){$C(B.operator,gs),Ii();let Pe=B.operator===148?Qn.parenthesizeOperandOfReadonlyTypeOperator:Qn.parenthesizeOperandOfTypeOperator;Cn(B.type,Pe)}function Hp(B){Cn(B.objectType,Qn.parenthesizeNonArrayTypeOfPostfixType),qi("["),Cn(B.indexType),qi("]")}function H(B){let Pe=Xc(B);qi("{"),Pe&1?Ii():(Pm(),Mb()),B.readonlyToken&&(Cn(B.readonlyToken),B.readonlyToken.kind!==148&&gs("readonly"),Ii()),qi("["),ye(3,B.typeParameter),B.nameType&&(Ii(),gs("as"),Ii(),Cn(B.nameType)),qi("]"),B.questionToken&&(Cn(B.questionToken),B.questionToken.kind!==58&&qi("?")),qi(":"),Ii(),Cn(B.type),rh(),Pe&1?Ii():(Pm(),Ov()),io(B,B.members,2),qi("}")}function st(B){Dt(B.literal)}function zt(B){Cn(B.head),io(B,B.templateSpans,262144)}function Er(B){B.isTypeOf&&(gs("typeof"),Ii()),gs("import"),qi("("),Cn(B.argument),B.attributes&&(qi(","),Ii(),ye(7,B.attributes)),qi(")"),B.qualifier&&(qi("."),Cn(B.qualifier)),w0(B,B.typeArguments)}function jn(B){qi("{"),io(B,B.elements,525136),qi("}")}function So(B){qi("["),io(B,B.elements,524880),qi("]")}function Di(B){Cn(B.dotDotDotToken),B.propertyName&&(Cn(B.propertyName),qi(":"),Ii()),Cn(B.name),rw(B.initializer,B.name.end,B,Qn.parenthesizeExpressionForDisallowedComma)}function On(B){let Pe=B.elements,Wt=B.multiLine?65536:0;Ki(B,Pe,8914|Wt,Qn.parenthesizeExpressionForDisallowedComma)}function ua(B){tv(B),X(B.properties,GP);let Pe=Xc(B)&131072;Pe&&Mb();let Wt=B.multiLine?65536:0,ln=G&&G.languageVersion>=1&&!h0(G)?64:0;io(B,B.properties,526226|ln|Wt),Pe&&Ov(),p2(B)}function va(B){Dt(B.expression,Qn.parenthesizeLeftSideOfAccess);let Pe=B.questionDotToken||xv(W.createToken(25),B.expression.end,B.name.pos),Wt=JS(B,B.expression,Pe),ln=JS(B,Pe,B.name);I0(Wt,!1),Pe.kind!==29&&Bl(B.expression)&&!ze.hasTrailingComment()&&!ze.hasTrailingWhitespace()&&qi("."),B.questionDotToken?Cn(Pe):ee(Pe.kind,B.expression.end,qi,B),I0(ln,!1),Cn(B.name),Qh(Wt,ln)}function Bl(B){if(B=q1(B),qh(B)){let Pe=qC(B,void 0,!0,!1);return!(B.numericLiteralFlags&448)&&!Pe.includes(Zs(25))&&!Pe.includes("E")&&!Pe.includes("e")}else if(wu(B)){let Pe=b3e(B);return typeof Pe=="number"&&isFinite(Pe)&&Pe>=0&&Math.floor(Pe)===Pe}}function xc(B){Dt(B.expression,Qn.parenthesizeLeftSideOfAccess),Cn(B.questionDotToken),ee(23,B.expression.end,qi,B),Dt(B.argumentExpression),ee(24,B.argumentExpression.end,qi,B)}function ep(B){let Pe=J1(B)&16;Pe&&(qi("("),l2("0"),qi(","),Ii()),Dt(B.expression,Qn.parenthesizeLeftSideOfAccess),Pe&&qi(")"),Cn(B.questionDotToken),w0(B,B.typeArguments),Ki(B,B.arguments,2576,Qn.parenthesizeExpressionForDisallowedComma)}function W_(B){ee(105,B.pos,gs,B),Ii(),Dt(B.expression,Qn.parenthesizeExpressionOfNew),w0(B,B.typeArguments),Ki(B,B.arguments,18960,Qn.parenthesizeExpressionForDisallowedComma)}function g_(B){let Pe=J1(B)&16;Pe&&(qi("("),l2("0"),qi(","),Ii()),Dt(B.tag,Qn.parenthesizeLeftSideOfAccess),Pe&&qi(")"),w0(B,B.typeArguments),Ii(),Dt(B.template)}function xu(B){qi("<"),Cn(B.type),qi(">"),Dt(B.expression,Qn.parenthesizeOperandOfPrefixUnary)}function a_(B){let Pe=ee(21,B.pos,qi,B),Wt=UC(B.expression,B);Dt(B.expression,void 0),s7(B.expression,B),Qh(Wt),ee(22,B.expression?B.expression.end:Pe,qi,B)}function Gg(B){Xx(B.name),PE(B)}function Wf(B){Nv(B,B.modifiers),vh(B,yy,Wh)}function yy(B){Qx(B,B.typeParameters),qS(B,B.parameters),g1(B.type),Ii(),Cn(B.equalsGreaterThanToken)}function Wh(B){Vs(B.body)?dt(B.body):(Ii(),Dt(B.body,Qn.parenthesizeConciseBodyOfArrowFunction))}function rt(B){ee(91,B.pos,gs,B),Ii(),Dt(B.expression,Qn.parenthesizeOperandOfPrefixUnary)}function br(B){ee(114,B.pos,gs,B),Ii(),Dt(B.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Vn(B){ee(116,B.pos,gs,B),Ii(),Dt(B.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Ga(B){ee(135,B.pos,gs,B),Ii(),Dt(B.expression,Qn.parenthesizeOperandOfPrefixUnary)}function el(B){$C(B.operator,gg),tl(B)&&Ii(),Dt(B.operand,Qn.parenthesizeOperandOfPrefixUnary)}function tl(B){let Pe=B.operand;return Pe.kind===225&&(B.operator===40&&(Pe.operator===40||Pe.operator===46)||B.operator===41&&(Pe.operator===41||Pe.operator===47))}function Uc(B){Dt(B.operand,Qn.parenthesizeOperandOfPostfixUnary),$C(B.operator,gg)}function nd(){return iie(B,Pe,Wt,ln,Fo,void 0);function B(Ya,ra){if(ra){ra.stackIndex++,ra.preserveSourceNewlinesStack[ra.stackIndex]=Be,ra.containerPosStack[ra.stackIndex]=Se,ra.containerEndStack[ra.stackIndex]=tt,ra.declarationListContainerEndStack[ra.stackIndex]=Qe;let Wc=ra.shouldEmitCommentsStack[ra.stackIndex]=et(Ya),F_=ra.shouldEmitSourceMapsStack[ra.stackIndex]=Ct(Ya);f?.(Ya),Wc&&Fv(Ya),F_&&cl(Ya),Ee(Ya)}else ra={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return ra}function Pe(Ya,ra,Wc){return na(Ya,Wc,"left")}function Wt(Ya,ra,Wc){let F_=Ya.kind!==28,cm=JS(Wc,Wc.left,Ya),bh=JS(Wc,Ya,Wc.right);I0(cm,F_),eT(Ya.pos),U3(Ya,Ya.kind===103?gs:gg),rv(Ya.end,!0),I0(bh,!0)}function ln(Ya,ra,Wc){return na(Ya,Wc,"right")}function Fo(Ya,ra){let Wc=JS(Ya,Ya.left,Ya.operatorToken),F_=JS(Ya,Ya.operatorToken,Ya.right);if(Qh(Wc,F_),ra.stackIndex>0){let cm=ra.preserveSourceNewlinesStack[ra.stackIndex],bh=ra.containerPosStack[ra.stackIndex],fw=ra.containerEndStack[ra.stackIndex],xh=ra.declarationListContainerEndStack[ra.stackIndex],WC=ra.shouldEmitCommentsStack[ra.stackIndex],y7=ra.shouldEmitSourceMapsStack[ra.stackIndex];Bt(cm),y7&&$i(Ya),WC&&VC(Ya,bh,fw,xh),y?.(Ya),ra.stackIndex--}}function na(Ya,ra,Wc){let F_=Wc==="left"?Qn.getParenthesizeLeftSideOfBinaryForOperator(ra.operatorToken.kind):Qn.getParenthesizeRightSideOfBinaryForOperator(ra.operatorToken.kind),cm=Ot(0,1,Ya);if(cm===Et&&($.assertIsDefined(nn),Ya=F_(Ba(nn,Vt)),cm=ar(1,1,Ya),nn=void 0),(cm===HP||cm===Q3||cm===Zt)&&wi(Ya))return Ya;Nn=F_,cm(1,Ya)}}function Mu(B){let Pe=JS(B,B.condition,B.questionToken),Wt=JS(B,B.questionToken,B.whenTrue),ln=JS(B,B.whenTrue,B.colonToken),Fo=JS(B,B.colonToken,B.whenFalse);Dt(B.condition,Qn.parenthesizeConditionOfConditionalExpression),I0(Pe,!0),Cn(B.questionToken),I0(Wt,!0),Dt(B.whenTrue,Qn.parenthesizeBranchOfConditionalExpression),Qh(Pe,Wt),I0(ln,!0),Cn(B.colonToken),I0(Fo,!0),Dt(B.whenFalse,Qn.parenthesizeBranchOfConditionalExpression),Qh(ln,Fo)}function Dp(B){Cn(B.head),io(B,B.templateSpans,262144)}function Kp(B){ee(127,B.pos,gs,B),Cn(B.asteriskToken),LE(B.expression&&In(B.expression),Ka)}function vy(B){ee(26,B.pos,qi,B),Dt(B.expression,Qn.parenthesizeExpressionForDisallowedComma)}function If(B){Xx(B.name),qn(B)}function uf(B){Dt(B.expression,Qn.parenthesizeLeftSideOfAccess),w0(B,B.typeArguments)}function Hg(B){Dt(B.expression,void 0),B.type&&(Ii(),gs("as"),Ii(),Cn(B.type))}function Ym(B){Dt(B.expression,Qn.parenthesizeLeftSideOfAccess),gg("!")}function D0(B){Dt(B.expression,void 0),B.type&&(Ii(),gs("satisfies"),Ii(),Cn(B.type))}function Pb(B){BC(B.keywordToken,B.pos,qi),qi("."),Cn(B.name)}function Wx(B){Dt(B.expression),Cn(B.literal)}function Gx(B){Gh(B,!B.multiLine&&zC(B))}function Gh(B,Pe){ee(19,B.pos,qi,B);let Wt=Pe||Xc(B)&1?768:129;io(B,B.statements,Wt),ee(20,B.statements.end,qi,B,!!(Wt&1))}function Nd(B){th(B,B.modifiers,!1),Cn(B.declarationList),rh()}function Iv(B){B?qi(";"):rh()}function Hy(B){Dt(B.expression,Qn.parenthesizeExpressionOfExpressionStatement),(!G||!h0(G)||fu(B.expression))&&rh()}function US(B){let Pe=ee(101,B.pos,gs,B);Ii(),ee(21,Pe,qi,B),Dt(B.expression),ee(22,B.expression.end,qi,B),c2(B,B.thenStatement),B.elseStatement&&(Zy(B,B.thenStatement,B.elseStatement),ee(93,B.thenStatement.end,gs,B),B.elseStatement.kind===246?(Ii(),Cn(B.elseStatement)):c2(B,B.elseStatement))}function xe(B,Pe){let Wt=ee(117,Pe,gs,B);Ii(),ee(21,Wt,qi,B),Dt(B.expression),ee(22,B.expression.end,qi,B)}function Ft(B){ee(92,B.pos,gs,B),c2(B,B.statement),Vs(B.statement)&&!Be?Ii():Zy(B,B.statement,B.expression),xe(B,B.statement.end),rh()}function Nr(B){xe(B,B.pos),c2(B,B.statement)}function Mr(B){let Pe=ee(99,B.pos,gs,B);Ii();let Wt=ee(21,Pe,qi,B);fo(B.initializer),Wt=ee(27,B.initializer?B.initializer.end:Wt,qi,B),LE(B.condition),Wt=ee(27,B.condition?B.condition.end:Wt,qi,B),LE(B.incrementor),ee(22,B.incrementor?B.incrementor.end:Wt,qi,B),c2(B,B.statement)}function wn(B){let Pe=ee(99,B.pos,gs,B);Ii(),ee(21,Pe,qi,B),fo(B.initializer),Ii(),ee(103,B.initializer.end,gs,B),Ii(),Dt(B.expression),ee(22,B.expression.end,qi,B),c2(B,B.statement)}function Yn(B){let Pe=ee(99,B.pos,gs,B);Ii(),j3(B.awaitModifier),ee(21,Pe,qi,B),fo(B.initializer),Ii(),ee(165,B.initializer.end,gs,B),Ii(),Dt(B.expression),ee(22,B.expression.end,qi,B),c2(B,B.statement)}function fo(B){B!==void 0&&(B.kind===262?Cn(B):Dt(B))}function Mo(B){ee(88,B.pos,gs,B),Qy(B.label),rh()}function Ea(B){ee(83,B.pos,gs,B),Qy(B.label),rh()}function ee(B,Pe,Wt,ln,Fo){let na=vs(ln),Ya=na&&na.kind===ln.kind,ra=Pe;if(Ya&&G&&(Pe=_c(G.text,Pe)),Ya&&ln.pos!==ra){let Wc=Fo&&G&&!v0(ra,Pe,G);Wc&&Mb(),eT(ra),Wc&&Ov()}if(!F&&(B===19||B===20)?Pe=BC(B,Pe,Wt,ln):Pe=$C(B,Wt,Pe),Ya&&ln.end!==Pe){let Wc=ln.kind===295;rv(Pe,!Wc,Wc)}return Pe}function it(B){return B.kind===2||!!B.hasTrailingNewLine}function cr(B){if(!G)return!1;let Pe=my(G.text,B.pos);if(Pe){let Wt=vs(B);if(Wt&&mh(Wt.parent))return!0}return Pt(Pe,it)||Pt(_L(B),it)?!0:z3e(B)?B.pos!==B.expression.pos&&Pt(hb(G.text,B.expression.pos),it)?!0:cr(B.expression):!1}function In(B){if(!Sr)switch(B.kind){case 356:if(cr(B)){let Pe=vs(B);if(Pe&&mh(Pe)){let Wt=W.createParenthesizedExpression(B.expression);return Yi(Wt,B),qt(Wt,Pe),Wt}return W.createParenthesizedExpression(B)}return W.updatePartiallyEmittedExpression(B,In(B.expression));case 212:return W.updatePropertyAccessExpression(B,In(B.expression),B.name);case 213:return W.updateElementAccessExpression(B,In(B.expression),B.argumentExpression);case 214:return W.updateCallExpression(B,In(B.expression),B.typeArguments,B.arguments);case 216:return W.updateTaggedTemplateExpression(B,In(B.tag),B.typeArguments,B.template);case 226:return W.updatePostfixUnaryExpression(B,In(B.operand));case 227:return W.updateBinaryExpression(B,In(B.left),B.operatorToken,B.right);case 228:return W.updateConditionalExpression(B,In(B.condition),B.questionToken,B.whenTrue,B.colonToken,B.whenFalse);case 235:return W.updateAsExpression(B,In(B.expression),B.type);case 239:return W.updateSatisfiesExpression(B,In(B.expression),B.type);case 236:return W.updateNonNullExpression(B,In(B.expression))}return B}function Ka(B){return In(Qn.parenthesizeExpressionForDisallowedComma(B))}function Ws(B){ee(107,B.pos,gs,B),LE(B.expression&&In(B.expression),In),rh()}function Xa(B){let Pe=ee(118,B.pos,gs,B);Ii(),ee(21,Pe,qi,B),Dt(B.expression),ee(22,B.expression.end,qi,B),c2(B,B.statement)}function ks(B){let Pe=ee(109,B.pos,gs,B);Ii(),ee(21,Pe,qi,B),Dt(B.expression),ee(22,B.expression.end,qi,B),Ii(),Cn(B.caseBlock)}function cp(B){Cn(B.label),ee(59,B.label.end,qi,B),Ii(),Cn(B.statement)}function Cc(B){ee(111,B.pos,gs,B),LE(In(B.expression),In),rh()}function pf(B){ee(113,B.pos,gs,B),Ii(),Cn(B.tryBlock),B.catchClause&&(Zy(B,B.tryBlock,B.catchClause),Cn(B.catchClause)),B.finallyBlock&&(Zy(B,B.catchClause||B.tryBlock,B.finallyBlock),ee(98,(B.catchClause||B.tryBlock).end,gs,B),Ii(),Cn(B.finallyBlock))}function Kg(B){BC(89,B.pos,gs),rh()}function Ky(B){var Pe,Wt,ln;Cn(B.name),Cn(B.exclamationToken),g1(B.type),rw(B.initializer,((Pe=B.type)==null?void 0:Pe.end)??((ln=(Wt=B.name.emitNode)==null?void 0:Wt.typeNode)==null?void 0:ln.end)??B.name.end,B,Qn.parenthesizeExpressionForDisallowedComma)}function A0(B){if(CG(B))gs("await"),Ii(),gs("using");else{let Pe=pre(B)?"let":zR(B)?"const":DG(B)?"using":"var";gs(Pe)}Ii(),io(B,B.declarations,528)}function r2(B){PE(B)}function PE(B){th(B,B.modifiers,!1),gs("function"),Cn(B.asteriskToken),Ii(),Es(B.name),vh(B,d1,Nb)}function vh(B,Pe,Wt){let ln=Xc(B)&131072;ln&&Mb(),tv(B),X(B.parameters,_f),Pe(B),Wt(B),p2(B),ln&&Ov()}function Nb(B){let Pe=B.body;Pe?dt(Pe):rh()}function Pv(B){rh()}function d1(B){Qx(B,B.typeParameters),nw(B,B.parameters),g1(B.type)}function OC(B){if(Xc(B)&1)return!0;if(B.multiLine||!fu(B)&&G&&!Z4(B,G)||jE(B,pi(B.statements),2)||a7(B,Yr(B.statements),2,B.statements))return!1;let Pe;for(let Wt of B.statements){if(ow(Pe,Wt,2)>0)return!1;Pe=Wt}return!0}function dt(B){_f(B),f?.(B),Ii(),qi("{"),Mb();let Pe=OC(B)?Lt:Tr;KP(B,B.statements,Pe),Ov(),BC(20,B.statements.end,qi,B),y?.(B)}function Lt(B){Tr(B,!0)}function Tr(B,Pe){let Wt=Kx(B.statements),ln=ze.getTextPos();xr(B),Wt===0&&ln===ze.getTextPos()&&Pe?(Ov(),io(B,B.statements,768),Mb()):io(B,B.statements,1,void 0,Wt)}function dn(B){qn(B)}function qn(B){th(B,B.modifiers,!0),ee(86,ES(B).pos,gs,B),B.name&&(Ii(),Es(B.name));let Pe=Xc(B)&131072;Pe&&Mb(),Qx(B,B.typeParameters),io(B,B.heritageClauses,0),Ii(),qi("{"),tv(B),X(B.members,GP),io(B,B.members,129),p2(B),qi("}"),Pe&&Ov()}function Fi(B){th(B,B.modifiers,!1),gs("interface"),Ii(),Cn(B.name),Qx(B,B.typeParameters),io(B,B.heritageClauses,512),Ii(),qi("{"),tv(B),X(B.members,GP),io(B,B.members,129),p2(B),qi("}")}function $n(B){th(B,B.modifiers,!1),gs("type"),Ii(),Cn(B.name),Qx(B,B.typeParameters),Ii(),qi("="),Ii(),Cn(B.type),rh()}function oi(B){th(B,B.modifiers,!1),gs("enum"),Ii(),Cn(B.name),Ii(),qi("{"),io(B,B.members,145),qi("}")}function sa(B){th(B,B.modifiers,!1),~B.flags&2048&&(gs(B.flags&32?"namespace":"module"),Ii()),Cn(B.name);let Pe=B.body;if(!Pe)return rh();for(;Pe&&I_(Pe);)qi("."),Cn(Pe.name),Pe=Pe.body;Ii(),Cn(Pe)}function os(B){tv(B),X(B.statements,_f),Gh(B,zC(B)),p2(B)}function Po(B){ee(19,B.pos,qi,B),io(B,B.clauses,129),ee(20,B.clauses.end,qi,B,!0)}function as(B){th(B,B.modifiers,!1),ee(102,B.modifiers?B.modifiers.end:B.pos,gs,B),Ii(),B.isTypeOnly&&(ee(156,B.pos,gs,B),Ii()),Cn(B.name),Ii(),ee(64,B.name.end,qi,B),Ii(),ka(B.moduleReference),rh()}function ka(B){B.kind===80?Dt(B):Cn(B)}function lp(B){th(B,B.modifiers,!1),ee(102,B.modifiers?B.modifiers.end:B.pos,gs,B),Ii(),B.importClause&&(Cn(B.importClause),Ii(),ee(161,B.importClause.end,gs,B),Ii()),Dt(B.moduleSpecifier),B.attributes&&Qy(B.attributes),rh()}function Hh(B){B.phaseModifier!==void 0&&(ee(B.phaseModifier,B.pos,gs,B),Ii()),Cn(B.name),B.name&&B.namedBindings&&(ee(28,B.name.end,qi,B),Ii()),Cn(B.namedBindings)}function f1(B){let Pe=ee(42,B.pos,qi,B);Ii(),ee(130,Pe,gs,B),Ii(),Cn(B.name)}function Pf(B){Hx(B)}function m1(B){KA(B)}function Qg(B){let Pe=ee(95,B.pos,gs,B);Ii(),B.isExportEquals?ee(64,Pe,gg,B):ee(90,Pe,gs,B),Ii(),Dt(B.expression,B.isExportEquals?Qn.getParenthesizeRightSideOfBinaryForOperator(64):Qn.parenthesizeExpressionOfExportDefault),rh()}function GA(B){th(B,B.modifiers,!1);let Pe=ee(95,B.pos,gs,B);if(Ii(),B.isTypeOnly&&(Pe=ee(156,Pe,gs,B),Ii()),B.exportClause?Cn(B.exportClause):Pe=ee(42,Pe,qi,B),B.moduleSpecifier){Ii();let Wt=B.exportClause?B.exportClause.end:Pe;ee(161,Wt,gs,B),Ii(),Dt(B.moduleSpecifier)}B.attributes&&Qy(B.attributes),rh()}function zS(B){qi("{"),Ii(),gs(B.token===132?"assert":"with"),qi(":"),Ii();let Pe=B.elements;io(B,Pe,526226),Ii(),qi("}")}function Ob(B){ee(B.token,B.pos,gs,B),Ii();let Pe=B.elements;io(B,Pe,526226)}function HA(B){Cn(B.name),qi(":"),Ii();let Pe=B.value;if((Xc(Pe)&1024)===0){let Wt=DS(Pe);rv(Wt.pos)}Cn(Pe)}function Fb(B){let Pe=ee(95,B.pos,gs,B);Ii(),Pe=ee(130,Pe,gs,B),Ii(),Pe=ee(145,Pe,gs,B),Ii(),Cn(B.name),rh()}function hM(B){let Pe=ee(42,B.pos,qi,B);Ii(),ee(130,Pe,gs,B),Ii(),Cn(B.name)}function xq(B){Hx(B)}function gM(B){KA(B)}function Hx(B){qi("{"),io(B,B.elements,525136),qi("}")}function KA(B){B.isTypeOnly&&(gs("type"),Ii()),B.propertyName&&(Cn(B.propertyName),Ii(),ee(130,B.propertyName.end,gs,B),Ii()),Cn(B.name)}function P3(B){gs("require"),qi("("),Dt(B.expression),qi(")")}function NE(B){Cn(B.openingElement),io(B,B.children,262144),Cn(B.closingElement)}function N3(B){qi("<"),zP(B.tagName),w0(B,B.typeArguments),Ii(),Cn(B.attributes),qi("/>")}function e7(B){Cn(B.openingFragment),io(B,B.children,262144),Cn(B.closingFragment)}function Tq(B){if(qi("<"),Tv(B)){let Pe=UC(B.tagName,B);zP(B.tagName),w0(B,B.typeArguments),B.attributes.properties&&B.attributes.properties.length>0&&Ii(),Cn(B.attributes),s7(B.attributes,B),Qh(Pe)}qi(">")}function O3(B){ze.writeLiteral(B.text)}function t7(B){qi("")}function QA(B){io(B,B.properties,262656)}function yM(B){Cn(B.name),zc("=",qi,B.initializer,ur)}function F3(B){qi("{..."),Dt(B.expression),qi("}")}function r7(B){let Pe=!1;return w4(G?.text||"",B+1,()=>Pe=!0),Pe}function UP(B){let Pe=!1;return A4(G?.text||"",B+1,()=>Pe=!0),Pe}function FC(B){return r7(B)||UP(B)}function n7(B){var Pe;if(B.expression||!Sr&&!fu(B)&&FC(B.pos)){let Wt=G&&!fu(B)&&qs(G,B.pos).line!==qs(G,B.end).line;Wt&&ze.increaseIndent();let ln=ee(19,B.pos,qi,B);Cn(B.dotDotDotToken),Dt(B.expression),ee(20,((Pe=B.expression)==null?void 0:Pe.end)||ln,qi,B),Wt&&ze.decreaseIndent()}}function i7(B){Es(B.namespace),qi(":"),Es(B.name)}function zP(B){B.kind===80?Dt(B):Cn(B)}function RC(B){ee(84,B.pos,gs,B),Ii(),Dt(B.expression,Qn.parenthesizeExpressionForDisallowedComma),n2(B,B.statements,B.expression.end)}function OE(B){let Pe=ee(90,B.pos,gs,B);n2(B,B.statements,Pe)}function n2(B,Pe,Wt){let ln=Pe.length===1&&(!G||fu(B)||fu(Pe[0])||Xre(B,Pe[0],G)),Fo=163969;ln?(BC(59,Wt,qi,B),Ii(),Fo&=-130):ee(59,Wt,qi,B),io(B,Pe,Fo)}function i2(B){Ii(),$C(B.token,gs),Ii(),io(B,B.types,528)}function o2(B){let Pe=ee(85,B.pos,gs,B);Ii(),B.variableDeclaration&&(ee(21,Pe,qi,B),Cn(B.variableDeclaration),ee(22,B.variableDeclaration.end,qi,B),Ii()),Cn(B.block)}function LC(B){Cn(B.name),qi(":"),Ii();let Pe=B.initializer;if((Xc(Pe)&1024)===0){let Wt=DS(Pe);rv(Wt.pos)}Dt(Pe,Qn.parenthesizeExpressionForDisallowedComma)}function ZA(B){Cn(B.name),B.objectAssignmentInitializer&&(Ii(),qi("="),Ii(),Dt(B.objectAssignmentInitializer,Qn.parenthesizeExpressionForDisallowedComma))}function R3(B){B.expression&&(ee(26,B.pos,qi,B),Dt(B.expression,Qn.parenthesizeExpressionForDisallowedComma))}function XA(B){Cn(B.name),rw(B.initializer,B.name.end,B,Qn.parenthesizeExpressionForDisallowedComma)}function il(B){if(je("/**"),B.comment){let Pe=oG(B.comment);if(Pe){let Wt=Pe.split(/\r\n?|\n/);for(let ln of Wt)Pm(),Ii(),qi("*"),Ii(),je(ln)}}B.tags&&(B.tags.length===1&&B.tags[0].kind===345&&!B.comment?(Ii(),Cn(B.tags[0])):io(B,B.tags,33)),Ii(),je("*/")}function L3(B){h1(B.tagName),ew(B.typeExpression),X1(B.comment)}function vM(B){h1(B.tagName),Cn(B.name),X1(B.comment)}function a2(B){h1(B.tagName),Ii(),B.importClause&&(Cn(B.importClause),Ii(),ee(161,B.importClause.end,gs,B),Ii()),Dt(B.moduleSpecifier),B.attributes&&Qy(B.attributes),X1(B.comment)}function s2(B){Ii(),qi("{"),Cn(B.name),qi("}")}function Rb(B){h1(B.tagName),Ii(),qi("{"),Cn(B.class),qi("}"),X1(B.comment)}function tp(B){h1(B.tagName),ew(B.constraint),Ii(),io(B,B.typeParameters,528),X1(B.comment)}function am(B){h1(B.tagName),B.typeExpression&&(B.typeExpression.kind===310?ew(B.typeExpression):(Ii(),qi("{"),je("Object"),B.typeExpression.isArrayType&&(qi("["),qi("]")),qi("}"))),B.fullName&&(Ii(),Cn(B.fullName)),X1(B.comment),B.typeExpression&&B.typeExpression.kind===323&&eh(B.typeExpression)}function Kh(B){h1(B.tagName),B.name&&(Ii(),Cn(B.name)),X1(B.comment),Lb(B.typeExpression)}function sm(B){X1(B.comment),Lb(B.typeExpression)}function YA(B){h1(B.tagName),X1(B.comment)}function eh(B){io(B,W.createNodeArray(B.jsDocPropertyTags),33)}function Lb(B){B.typeParameters&&io(B,W.createNodeArray(B.typeParameters),33),B.parameters&&io(B,W.createNodeArray(B.parameters),33),B.type&&(Pm(),Ii(),qi("*"),Ii(),Cn(B.type))}function Sh(B){h1(B.tagName),ew(B.typeExpression),Ii(),B.isBracketed&&qi("["),Cn(B.name),B.isBracketed&&qi("]"),X1(B.comment)}function h1(B){qi("@"),Cn(B)}function X1(B){let Pe=oG(B);Pe&&(Ii(),je(Pe))}function ew(B){B&&(Ii(),qi("{"),Cn(B.type),qi("}"))}function tw(B){Pm();let Pe=B.statements;if(Pe.length===0||!yS(Pe[0])||fu(Pe[0])){KP(B,Pe,qP);return}qP(B)}function Eq(B){FE(!!B.hasNoDefaultLib,B.syntheticFileReferences||[],B.syntheticTypeReferences||[],B.syntheticLibReferences||[])}function SM(B){B.isDeclarationFile&&FE(B.hasNoDefaultLib,B.referencedFiles,B.typeReferenceDirectives,B.libReferenceDirectives)}function FE(B,Pe,Wt,ln){if(B&&(jC('/// '),Pm()),G&&G.moduleName&&(jC(`/// `),Pm()),G&&G.amdDependencies)for(let na of G.amdDependencies)na.name?jC(`/// `):jC(`/// `),Pm();function Fo(na,Ya){for(let ra of Ya){let Wc=ra.resolutionMode?`resolution-mode="${ra.resolutionMode===99?"import":"require"}" `:"",F_=ra.preserve?'preserve="true" ':"";jC(`/// `),Pm()}}Fo("path",Pe),Fo("types",Wt),Fo("lib",ln)}function qP(B){let Pe=B.statements;tv(B),X(B.statements,_f),xr(B);let Wt=hr(Pe,ln=>!yS(ln));SM(B),io(B,Pe,1,void 0,Wt===-1?Pe.length:Wt),p2(B)}function gt(B){let Pe=Xc(B);!(Pe&1024)&&B.pos!==B.expression.pos&&rv(B.expression.pos),Dt(B.expression),!(Pe&2048)&&B.end!==B.expression.end&&eT(B.expression.end)}function M3(B){Ki(B,B.elements,528,void 0)}function Kx(B,Pe,Wt){let ln=!!Pe;for(let Fo=0;Fo=Wt.length||Ya===0;if(Wc&&ln&32768){g?.(Wt),k?.(Wt);return}ln&15360&&(qi(Osr(ln)),Wc&&Wt&&rv(Wt.pos,!0)),g?.(Wt),Wc?ln&1&&!(Be&&(!Pe||G&&Z4(Pe,G)))?Pm():ln&256&&!(ln&524288)&&Ii():B3(B,Pe,Wt,ln,Fo,na,Ya,Wt.hasTrailingComma,Wt),k?.(Wt),ln&15360&&(Wc&&Wt&&eT(Wt.end),qi(Fsr(ln)))}function B3(B,Pe,Wt,ln,Fo,na,Ya,ra,Wc){let F_=(ln&262144)===0,cm=F_,bh=jE(Pe,Wt[na],ln);bh?(Pm(bh),cm=!1):ln&256&&Ii(),ln&128&&Mb();let fw=jsr(B,Fo),xh,WC=!1;for(let zE=0;zE0){if((ln&131)===0&&(Mb(),WC=!0),cm&&ln&60&&!bv(nv.pos)){let ZP=DS(nv);rv(ZP.pos,!!(ln&512),!0)}Pm(qE),cm=!1}else xh&&ln&512&&Ii()}if(cm){let qE=DS(nv);rv(qE.pos)}else cm=F_;de=nv.pos,fw(nv,B,Fo,zE),WC&&(Ov(),WC=!1),xh=nv}let y7=xh?Xc(xh):0,y1=Sr||!!(y7&2048),mp=ra&&ln&64&&ln&16;mp&&(xh&&!y1?ee(28,xh.end,qi,xh):qi(",")),xh&&(Pe?Pe.end:-1)!==xh.end&&ln&60&&!y1&&eT(mp&&Wc?.end?Wc.end:xh.end),ln&128&&Ov();let Y3=a7(Pe,Wt[na+Ya-1],ln,Wc);Y3?Pm(Y3):ln&2097408&&Ii()}function l2(B){ze.writeLiteral(B)}function WP(B){ze.writeStringLiteral(B)}function bM(B){ze.write(B)}function kq(B,Pe){ze.writeSymbol(B,Pe)}function qi(B){ze.writePunctuation(B)}function rh(){ze.writeTrailingSemicolon(";")}function gs(B){ze.writeKeyword(B)}function gg(B){ze.writeOperator(B)}function $3(B){ze.writeParameter(B)}function jC(B){ze.writeComment(B)}function Ii(){ze.writeSpace(" ")}function xM(B){ze.writeProperty(B)}function o7(B){ze.nonEscapingWrite?ze.nonEscapingWrite(B):ze.write(B)}function Pm(B=1){for(let Pe=0;Pe0)}function Mb(){ze.increaseIndent()}function Ov(){ze.decreaseIndent()}function BC(B,Pe,Wt,ln){return Le?$C(B,Wt,Pe):Z3(ln,B,Wt,Pe,$C)}function U3(B,Pe){T&&T(B),Pe(Zs(B.kind)),C&&C(B)}function $C(B,Pe,Wt){let ln=Zs(B);return Pe(ln),Wt<0?Wt:Wt+ln.length}function Zy(B,Pe,Wt){if(Xc(B)&1)Ii();else if(Be){let ln=JS(B,Pe,Wt);ln?Pm(ln):Ii()}else Pm()}function ev(B){let Pe=B.split(/\r\n?|\n/),Wt=zPe(Pe);for(let ln of Pe){let Fo=Wt?ln.slice(Wt):ln;Fo.length&&(Pm(),je(Fo))}}function I0(B,Pe){B?(Mb(),Pm(B)):Pe&&Ii()}function Qh(B,Pe){B&&Ov(),Pe&&Ov()}function jE(B,Pe,Wt){if(Wt&2||Be){if(Wt&65536)return 1;if(Pe===void 0)return!B||G&&Z4(B,G)?0:1;if(Pe.pos===de||Pe.kind===12)return 0;if(G&&B&&!bv(B.pos)&&!fu(Pe)&&(!Pe.parent||Ku(Pe.parent)===Ku(B)))return Be?aw(ln=>g4e(Pe.pos,B.pos,G,ln)):Xre(B,Pe,G)?0:1;if(u2(Pe,Wt))return 1}return Wt&1?1:0}function ow(B,Pe,Wt){if(Wt&2||Be){if(B===void 0||Pe===void 0||Pe.kind===12)return 0;if(G&&!fu(B)&&!fu(Pe))return Be&&Nm(B,Pe)?aw(ln=>Ahe(B,Pe,G,ln)):!Be&&d7(B,Pe)?uH(B,Pe,G)?0:1:Wt&65536?1:0;if(u2(B,Wt)||u2(Pe,Wt))return 1}else if(rz(Pe))return 1;return Wt&1?1:0}function a7(B,Pe,Wt,ln){if(Wt&2||Be){if(Wt&65536)return 1;if(Pe===void 0)return!B||G&&Z4(B,G)?0:1;if(G&&B&&!bv(B.pos)&&!fu(Pe)&&(!Pe.parent||Pe.parent===B)){if(Be){let Fo=ln&&!bv(ln.end)?ln.end:Pe.end;return aw(na=>y4e(Fo,B.end,G,na))}return f4e(B,Pe,G)?0:1}if(u2(Pe,Wt))return 1}return Wt&1&&!(Wt&131072)?1:0}function aw(B){$.assert(!!Be);let Pe=B(!0);return Pe===0?B(!1):Pe}function UC(B,Pe){let Wt=Be&&jE(Pe,B,0);return Wt&&I0(Wt,!1),!!Wt}function s7(B,Pe){let Wt=Be&&a7(Pe,B,0,void 0);Wt&&Pm(Wt)}function u2(B,Pe){if(fu(B)){let Wt=rz(B);return Wt===void 0?(Pe&65536)!==0:Wt}return(Pe&65536)!==0}function JS(B,Pe,Wt){return Xc(B)&262144?0:(B=sw(B),Pe=sw(Pe),Wt=sw(Wt),rz(Wt)?1:G&&!fu(B)&&!fu(Pe)&&!fu(Wt)?Be?aw(ln=>Ahe(Pe,Wt,G,ln)):uH(Pe,Wt,G)?0:1:0)}function zC(B){return B.statements.length===0&&(!G||uH(B,B,G))}function sw(B){for(;B.kind===218&&fu(B);)B=B.expression;return B}function BE(B,Pe){if(ap(B)||R4(B))return cw(B);if(Ic(B)&&B.textSourceNode)return BE(B.textSourceNode,Pe);let Wt=G,ln=!!Wt&&!!B.parent&&!fu(B);if(Dx(B)){if(!ln||Pn(B)!==Ku(Wt))return Zi(B)}else if(Ev(B)){if(!ln||Pn(B)!==Ku(Wt))return ez(B)}else if($.assertNode(B,F4),!ln)return B.text;return XI(Wt,B,Pe)}function qC(B,Pe=G,Wt,ln){if(B.kind===11&&B.textSourceNode){let na=B.textSourceNode;if(ct(na)||Aa(na)||qh(na)||Ev(na)){let Ya=qh(na)?na.text:BE(na);return ln?`"${lhe(Ya)}"`:Wt||Xc(B)&16777216?`"${kb(Ya)}"`:`"${Mre(Ya)}"`}else return qC(na,Pn(na),Wt,ln)}let Fo=(Wt?1:0)|(ln?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&t.target>=8?8:0);return t6e(B,Pe,Fo)}function tv(B){le.push(Oe),Oe=0,Ae.push(Fe),!(B&&Xc(B)&1048576)&&(be.push(ue),ue=0,_e.push(me),me=void 0,De.push(Ce))}function p2(B){Oe=le.pop(),Fe=Ae.pop(),!(B&&Xc(B)&1048576)&&(ue=be.pop(),me=_e.pop(),Ce=De.pop())}function Zx(B){(!Ce||Ce===Yr(De))&&(Ce=new Set),Ce.add(B)}function JC(B){(!Fe||Fe===Yr(Ae))&&(Fe=new Set),Fe.add(B)}function _f(B){if(B)switch(B.kind){case 242:X(B.statements,_f);break;case 257:case 255:case 247:case 248:_f(B.statement);break;case 246:_f(B.thenStatement),_f(B.elseStatement);break;case 249:case 251:case 250:_f(B.initializer),_f(B.statement);break;case 256:_f(B.caseBlock);break;case 270:X(B.clauses,_f);break;case 297:case 298:X(B.statements,_f);break;case 259:_f(B.tryBlock),_f(B.catchClause),_f(B.finallyBlock);break;case 300:_f(B.variableDeclaration),_f(B.block);break;case 244:_f(B.declarationList);break;case 262:X(B.declarations,_f);break;case 261:case 170:case 209:case 264:Xx(B.name);break;case 263:Xx(B.name),Xc(B)&1048576&&(X(B.parameters,_f),_f(B.body));break;case 207:case 208:X(B.elements,_f);break;case 273:_f(B.importClause);break;case 274:Xx(B.name),_f(B.namedBindings);break;case 275:Xx(B.name);break;case 281:Xx(B.name);break;case 276:X(B.elements,_f);break;case 277:Xx(B.propertyName||B.name);break}}function GP(B){if(B)switch(B.kind){case 304:case 305:case 173:case 172:case 175:case 174:case 178:case 179:Xx(B.name);break}}function Xx(B){B&&(ap(B)||R4(B)?cw(B):$s(B)&&_f(B))}function cw(B){let Pe=B.emitNode.autoGenerate;if((Pe.flags&7)===4)return z3(QH(B),Aa(B),Pe.flags,Pe.prefix,Pe.suffix);{let Wt=Pe.id;return re[Wt]||(re[Wt]=P0(B))}}function z3(B,Pe,Wt,ln,Fo){let na=hl(B),Ya=Pe?Q:Z;return Ya[na]||(Ya[na]=Zh(B,Pe,Wt??0,wL(ln,cw),wL(Fo)))}function Yx(B,Pe){return c7(B,Pe)&&!TM(B,Pe)&&!ae.has(B)}function TM(B,Pe){let Wt,ln;if(Pe?(Wt=Fe,ln=Ae):(Wt=Ce,ln=De),Wt?.has(B))return!0;for(let Fo=ln.length-1;Fo>=0;Fo--)if(Wt!==ln[Fo]&&(Wt=ln[Fo],Wt?.has(B)))return!0;return!1}function c7(B,Pe){return G?ire(G,B,a):!0}function l7(B,Pe){for(let Wt=Pe;Wt&&oP(Wt,Pe);Wt=Wt.nextContainer)if(vb(Wt)&&Wt.locals){let ln=Wt.locals.get(dp(B));if(ln&&ln.flags&3257279)return!1}return!0}function Cq(B){switch(B){case"":return ue;case"#":return Oe;default:return me?.get(B)??0}}function u7(B,Pe){switch(B){case"":ue=Pe;break;case"#":Oe=Pe;break;default:me??(me=new Map),me.set(B,Pe);break}}function lw(B,Pe,Wt,ln,Fo){ln.length>0&&ln.charCodeAt(0)===35&&(ln=ln.slice(1));let na=IA(Wt,ln,"",Fo),Ya=Cq(na);if(B&&!(Ya&B)){let Wc=IA(Wt,ln,B===268435456?"_i":"_n",Fo);if(Yx(Wc,Wt))return Ya|=B,Wt?JC(Wc):Pe&&Zx(Wc),u7(na,Ya),Wc}for(;;){let ra=Ya&268435455;if(Ya++,ra!==8&&ra!==13){let Wc=ra<26?"_"+String.fromCharCode(97+ra):"_"+(ra-26),F_=IA(Wt,ln,Wc,Fo);if(Yx(F_,Wt))return Wt?JC(F_):Pe&&Zx(F_),u7(na,Ya),F_}}}function _2(B,Pe=Yx,Wt,ln,Fo,na,Ya){if(B.length>0&&B.charCodeAt(0)===35&&(B=B.slice(1)),na.length>0&&na.charCodeAt(0)===35&&(na=na.slice(1)),Wt){let Wc=IA(Fo,na,B,Ya);if(Pe(Wc,Fo))return Fo?JC(Wc):ln?Zx(Wc):ae.add(Wc),Wc}B.charCodeAt(B.length-1)!==95&&(B+="_");let ra=1;for(;;){let Wc=IA(Fo,na,B+ra,Ya);if(Pe(Wc,Fo))return Fo?JC(Wc):ln?Zx(Wc):ae.add(Wc),Wc;ra++}}function EM(B){return _2(B,c7,!0,!1,!1,"","")}function uw(B){let Pe=BE(B.name);return l7(Pe,Ci(B,vb))?Pe:_2(Pe,Yx,!1,!1,!1,"","")}function q3(B){let Pe=JO(B),Wt=Ic(Pe)?n6e(Pe.text):"module";return _2(Wt,Yx,!1,!1,!1,"","")}function O_(){return _2("default",Yx,!1,!1,!1,"","")}function df(){return _2("class",Yx,!1,!1,!1,"","")}function p7(B,Pe,Wt,ln){return ct(B.name)?z3(B.name,Pe):lw(0,!1,Pe,Wt,ln)}function Zh(B,Pe,Wt,ln,Fo){switch(B.kind){case 80:case 81:return _2(BE(B),Yx,!!(Wt&16),!!(Wt&8),Pe,ln,Fo);case 268:case 267:return $.assert(!ln&&!Fo&&!Pe),uw(B);case 273:case 279:return $.assert(!ln&&!Fo&&!Pe),q3(B);case 263:case 264:{$.assert(!ln&&!Fo&&!Pe);let na=B.name;return na&&!ap(na)?Zh(na,!1,Wt,ln,Fo):O_()}case 278:return $.assert(!ln&&!Fo&&!Pe),O_();case 232:return $.assert(!ln&&!Fo&&!Pe),df();case 175:case 178:case 179:return p7(B,Pe,ln,Fo);case 168:return lw(0,!0,Pe,ln,Fo);default:return lw(0,!1,Pe,ln,Fo)}}function P0(B){let Pe=B.emitNode.autoGenerate,Wt=wL(Pe.prefix,cw),ln=wL(Pe.suffix);switch(Pe.flags&7){case 1:return lw(0,!!(Pe.flags&8),Aa(B),Wt,ln);case 2:return $.assertNode(B,ct),lw(268435456,!!(Pe.flags&8),!1,Wt,ln);case 3:return _2(Zi(B),Pe.flags&32?c7:Yx,!!(Pe.flags&16),!!(Pe.flags&8),Aa(B),Wt,ln)}return $.fail(`Unsupported GeneratedIdentifierKind: ${$.formatEnum(Pe.flags&7,V9,!0)}.`)}function HP(B,Pe){let Wt=ar(2,B,Pe),ln=Se,Fo=tt,na=Qe;Fv(Pe),Wt(B,Pe),VC(Pe,ln,Fo,na)}function Fv(B){let Pe=Xc(B),Wt=DS(B);$E(B,Pe,Wt.pos,Wt.end),Pe&4096&&(Sr=!0)}function VC(B,Pe,Wt,ln){let Fo=Xc(B),na=DS(B);Fo&4096&&(Sr=!1),_7(B,Fo,na.pos,na.end,Pe,Wt,ln);let Ya=k3e(B);Ya&&_7(B,Fo,Ya.pos,Ya.end,Pe,Wt,ln)}function $E(B,Pe,Wt,ln){$t(),Kt=!1;let Fo=Wt<0||(Pe&1024)!==0||B.kind===12,na=ln<0||(Pe&2048)!==0||B.kind===12;(Wt>0||ln>0)&&Wt!==ln&&(Fo||yg(Wt,B.kind!==354),(!Fo||Wt>=0&&(Pe&1024)!==0)&&(Se=Wt),(!na||ln>=0&&(Pe&2048)!==0)&&(tt=ln,B.kind===262&&(Qe=ln))),X(_L(B),Dq),Dr()}function _7(B,Pe,Wt,ln,Fo,na,Ya){$t();let ra=ln<0||(Pe&2048)!==0||B.kind===12;X(FH(B),jp),(Wt>0||ln>0)&&Wt!==ln&&(Se=Fo,tt=na,Qe=Ya,!ra&&B.kind!==354&&f7(ln)),Dr()}function Dq(B){(B.hasLeadingNewline||B.kind===2)&&ze.writeLine(),kM(B),B.hasTrailingNewLine||B.kind===2?ze.writeLine():ze.writeSpace(" ")}function jp(B){ze.isAtStartOfLine()||ze.writeSpace(" "),kM(B),B.hasTrailingNewLine&&ze.writeLine()}function kM(B){let Pe=J3(B),Wt=B.kind===3?oE(Pe):void 0;rL(Pe,Wt,ze,0,Pe.length,M)}function J3(B){return B.kind===3?`/*${B.text}*/`:`//${B.text}`}function KP(B,Pe,Wt){$t();let{pos:ln,end:Fo}=Pe,na=Xc(B),Ya=ln<0||(na&1024)!==0,ra=Sr||Fo<0||(na&2048)!==0;Ya||Zg(Pe),Dr(),na&4096&&!Sr?(Sr=!0,Wt(B),Sr=!1):Wt(B),$t(),ra||(yg(Pe.end,!0),Kt&&!ze.isAtStartOfLine()&&ze.writeLine()),Dr()}function d7(B,Pe){return B=Ku(B),B.parent&&B.parent===Ku(Pe).parent}function Nm(B,Pe){if(Pe.pos-1&&ln.indexOf(Pe)===Fo+1}function yg(B,Pe){Kt=!1,Pe?B===0&&G?.isDeclarationFile?h7(B,pw):h7(B,W3):B===0&&h7(B,V3)}function V3(B,Pe,Wt,ln,Fo){K3(B,Pe)&&W3(B,Pe,Wt,ln,Fo)}function pw(B,Pe,Wt,ln,Fo){K3(B,Pe)||W3(B,Pe,Wt,ln,Fo)}function vg(B,Pe){return t.onlyPrintJsDocStyle?iye(B,Pe)||ore(B,Pe):!0}function W3(B,Pe,Wt,ln,Fo){!G||!vg(G.text,B)||(Kt||(e4e(yc(),ze,Fo,B),Kt=!0),Od(B),rL(G.text,yc(),ze,B,Pe,M),Od(Pe),ln?ze.writeLine():Wt===3&&ze.writeSpace(" "))}function eT(B){Sr||B===-1||yg(B,!0)}function f7(B){H3(B,G3)}function G3(B,Pe,Wt,ln){!G||!vg(G.text,B)||(ze.isAtStartOfLine()||ze.writeSpace(" "),Od(B),rL(G.text,yc(),ze,B,Pe,M),Od(Pe),ln&&ze.writeLine())}function rv(B,Pe,Wt){Sr||($t(),H3(B,Pe?G3:Wt?m7:CM),Dr())}function m7(B,Pe,Wt){G&&(Od(B),rL(G.text,yc(),ze,B,Pe,M),Od(Pe),Wt===2&&ze.writeLine())}function CM(B,Pe,Wt,ln){G&&(Od(B),rL(G.text,yc(),ze,B,Pe,M),Od(Pe),ln?ze.writeLine():ze.writeSpace(" "))}function h7(B,Pe){G&&(Se===-1||B!==Se)&&(g7(B)?UE(Pe):A4(G.text,B,Pe,B))}function H3(B,Pe){G&&(tt===-1||B!==tt&&B!==Qe)&&w4(G.text,B,Pe)}function g7(B){return St!==void 0&&Sn(St).nodePos===B}function UE(B){if(!G)return;let Pe=Sn(St).detachedCommentEndPos;St.length-1?St.pop():St=void 0,A4(G.text,Pe,B,Pe)}function Zg(B){let Pe=G&&t4e(G.text,yc(),ze,VS,B,M,Sr);Pe&&(St?St.push(Pe):St=[Pe])}function VS(B,Pe,Wt,ln,Fo,na){!G||!vg(G.text,ln)||(Od(ln),rL(B,Pe,Wt,ln,Fo,na),Od(Fo))}function K3(B,Pe){return!!G&&bme(G.text,B,Pe)}function Q3(B,Pe){let Wt=ar(3,B,Pe);cl(Pe),Wt(B,Pe),$i(Pe)}function cl(B){let Pe=Xc(B),Wt=yE(B),ln=Wt.source||nt;B.kind!==354&&(Pe&32)===0&&Wt.pos>=0&&_w(Wt.source||nt,Xy(ln,Wt.pos)),Pe&128&&(Le=!0)}function $i(B){let Pe=Xc(B),Wt=yE(B);Pe&128&&(Le=!1),B.kind!==354&&(Pe&64)===0&&Wt.end>=0&&_w(Wt.source||nt,Wt.end)}function Xy(B,Pe){return B.skipTrivia?B.skipTrivia(Pe):_c(B.text,Pe)}function Od(B){if(Le||bv(B)||X3(nt))return;let{line:Pe,character:Wt}=qs(nt,B);Ve.addMapping(ze.getLine(),ze.getColumn(),It,Pe,Wt,void 0)}function _w(B,Pe){if(B!==nt){let Wt=nt,ln=It;QP(B),Od(Pe),dw(Wt,ln)}else Od(Pe)}function Z3(B,Pe,Wt,ln,Fo){if(Le||B&&Ere(B))return Fo(Pe,Wt,ln);let na=B&&B.emitNode,Ya=na&&na.flags||0,ra=na&&na.tokenSourceMapRanges&&na.tokenSourceMapRanges[Pe],Wc=ra&&ra.source||nt;return ln=Xy(Wc,ra?ra.pos:ln),(Ya&256)===0&&ln>=0&&_w(Wc,ln),ln=Fo(Pe,Wt,ln),ra&&(ln=ra.end),(Ya&512)===0&&ln>=0&&_w(Wc,ln),ln}function QP(B){if(!Le){if(nt=B,B===ke){It=_t;return}X3(B)||(It=Ve.addSource(B.fileName),t.inlineSources&&Ve.setSourceContent(It,B.text),ke=B,_t=It)}}function dw(B,Pe){nt=B,It=Pe}function X3(B){return Au(B.fileName,".json")}}function Nsr(){let t=[];return t[1024]=["{","}"],t[2048]=["(",")"],t[4096]=["<",">"],t[8192]=["[","]"],t}function Osr(t){return P_t[t&15360][0]}function Fsr(t){return P_t[t&15360][1]}function Rsr(t,n,a,c){n(t)}function Lsr(t,n,a,c){n(t,a.select(c))}function Msr(t,n,a,c){n(t,a)}function jsr(t,n){return t.length===1?Rsr:typeof n=="object"?Lsr:Msr}function Gie(t,n,a){if(!t.getDirectories||!t.readDirectory)return;let c=new Map,u=_d(a);return{useCaseSensitiveFileNames:a,fileExists:F,readFile:(le,Oe)=>t.readFile(le,Oe),directoryExists:t.directoryExists&&M,getDirectories:J,readDirectory:G,createDirectory:t.createDirectory&&U,writeFile:t.writeFile&&O,addOrDeleteFileOrDirectory:re,addOrDeleteFile:ae,clearCache:me,realpath:t.realpath&&Z};function _(le){return wl(le,n,u)}function f(le){return c.get(r_(le))}function y(le){let Oe=f(mo(le));return Oe&&(Oe.sortedAndCanonicalizedFiles||(Oe.sortedAndCanonicalizedFiles=Oe.files.map(u).sort(),Oe.sortedAndCanonicalizedDirectories=Oe.directories.map(u).sort()),Oe)}function g(le){return t_(Qs(le))}function k(le,Oe){var be;if(!t.realpath||r_(_(t.realpath(le)))===Oe){let ue={files:Cr(t.readDirectory(le,void 0,void 0,["*.*"]),g)||[],directories:t.getDirectories(le)||[]};return c.set(r_(Oe),ue),ue}if((be=t.directoryExists)!=null&&be.call(t,le))return c.set(Oe,!1),!1}function T(le,Oe){Oe=r_(Oe);let be=f(Oe);if(be)return be;try{return k(le,Oe)}catch{$.assert(!c.has(r_(Oe)));return}}function C(le,Oe){return rs(le,Oe,vl,Su)>=0}function O(le,Oe,be){let ue=_(le),De=y(ue);return De&&_e(De,g(le),!0),t.writeFile(le,Oe,be)}function F(le){let Oe=_(le),be=y(Oe);return be&&C(be.sortedAndCanonicalizedFiles,u(g(le)))||t.fileExists(le)}function M(le){let Oe=_(le);return c.has(r_(Oe))||t.directoryExists(le)}function U(le){let Oe=_(le),be=y(Oe);if(be){let ue=g(le),De=u(ue),Ce=be.sortedAndCanonicalizedDirectories;vm(Ce,De,Su)&&be.directories.push(ue)}t.createDirectory(le)}function J(le){let Oe=_(le),be=T(le,Oe);return be?be.directories.slice():t.getDirectories(le)}function G(le,Oe,be,ue,De){let Ce=_(le),Ae=T(le,Ce),Fe;if(Ae!==void 0)return Whe(le,Oe,be,ue,a,n,De,Be,Z);return t.readDirectory(le,Oe,be,ue,De);function Be(ze){let ut=_(ze);if(ut===Ce)return Ae||de(ze,ut);let je=T(ze,ut);return je!==void 0?je||de(ze,ut):Qhe}function de(ze,ut){if(Fe&&ut===Ce)return Fe;let je={files:Cr(t.readDirectory(ze,void 0,void 0,["*.*"]),g)||j,directories:t.getDirectories(ze)||j};return ut===Ce&&(Fe=je),je}}function Z(le){return t.realpath?t.realpath(le):le}function Q(le){Ex(mo(le),Oe=>c.delete(r_(Oe))?!0:void 0)}function re(le,Oe){if(f(Oe)!==void 0){me();return}let ue=y(Oe);if(!ue){Q(Oe);return}if(!t.directoryExists){me();return}let De=g(le),Ce={fileExists:t.fileExists(le),directoryExists:t.directoryExists(le)};return Ce.directoryExists||C(ue.sortedAndCanonicalizedDirectories,u(De))?me():_e(ue,De,Ce.fileExists),Ce}function ae(le,Oe,be){if(be===1)return;let ue=y(Oe);ue?_e(ue,g(le),be===0):Q(Oe)}function _e(le,Oe,be){let ue=le.sortedAndCanonicalizedFiles,De=u(Oe);if(be)vm(ue,De,Su)&&le.files.push(Oe);else{let Ce=rs(ue,De,vl,Su);if(Ce>=0){ue.splice(Ce,1);let Ae=le.files.findIndex(Fe=>u(Fe)===De);le.files.splice(Ae,1)}}}function me(){c.clear()}}var kOe=(t=>(t[t.Update=0]="Update",t[t.RootNamesAndUpdate=1]="RootNamesAndUpdate",t[t.Full=2]="Full",t))(kOe||{});function Hie(t,n,a,c,u){var _;let f=_l(((_=n?.configFile)==null?void 0:_.extendedSourceFiles)||j,u);a.forEach((y,g)=>{f.has(g)||(y.projects.delete(t),y.close())}),f.forEach((y,g)=>{let k=a.get(g);k?k.projects.add(t):a.set(g,{projects:new Set([t]),watcher:c(y,g),close:()=>{let T=a.get(g);!T||T.projects.size!==0||(T.watcher.close(),a.delete(g))}})})}function x0e(t,n){n.forEach(a=>{a.projects.delete(t)&&a.close()})}function Kie(t,n,a){t.delete(n)&&t.forEach(({extendedResult:c},u)=>{var _;(_=c.extendedSourceFiles)!=null&&_.some(f=>a(f)===n)&&Kie(t,u,a)})}function T0e(t,n,a){BU(n,t.getMissingFilePaths(),{createNewValue:a,onDeleteValue:W1})}function EK(t,n,a){n?BU(t,new Map(Object.entries(n)),{createNewValue:c,onDeleteValue:C0,onExistingValue:u}):dg(t,C0);function c(_,f){return{watcher:a(_,f),flags:f}}function u(_,f,y){_.flags!==f&&(_.watcher.close(),t.set(y,c(y,f)))}}function kK({watchedDirPath:t,fileOrDirectory:n,fileOrDirectoryPath:a,configFileName:c,options:u,program:_,extraFileExtensions:f,currentDirectory:y,useCaseSensitiveFileNames:g,writeLog:k,toPath:T,getScriptKind:C}){let O=coe(a);if(!O)return k(`Project: ${c} Detected ignored path: ${n}`),!0;if(a=O,a===t)return!1;if(eA(a)&&!(Khe(n,u,f)||G()))return k(`Project: ${c} Detected file add/remove of non supported extension: ${n}`),!0;if(HNe(n,u.configFile.configFileSpecs,za(mo(c),y),g,y))return k(`Project: ${c} Detected excluded file: ${n}`),!0;if(!_||u.outFile||u.outDir)return!1;if(sf(a)){if(u.declarationDir)return!1}else if(!_p(a,cL))return!1;let F=Qm(a),M=Zn(_)?void 0:Y0e(_)?_.getProgramOrUndefined():_,U=!M&&!Zn(_)?_:void 0;if(J(F+".ts")||J(F+".tsx"))return k(`Project: ${c} Detected output file: ${n}`),!0;return!1;function J(Z){return M?!!M.getSourceFileByPath(Z):U?U.state.fileInfos.has(Z):!!wt(_,Q=>T(Q)===Z)}function G(){if(!C)return!1;switch(C(n)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return fC(u);case 6:return _P(u);case 0:return!1}}}function COe(t,n){return t?t.isEmittedFile(n):!1}var DOe=(t=>(t[t.None=0]="None",t[t.TriggerOnly=1]="TriggerOnly",t[t.Verbose=2]="Verbose",t))(DOe||{});function E0e(t,n,a,c){lS(n===2?a:zs);let u={watchFile:(U,J,G,Z)=>t.watchFile(U,J,G,Z),watchDirectory:(U,J,G,Z)=>t.watchDirectory(U,J,(G&1)!==0,Z)},_=n!==0?{watchFile:F("watchFile"),watchDirectory:F("watchDirectory")}:void 0,f=n===2?{watchFile:C,watchDirectory:O}:_||u,y=n===2?T:qz;return{watchFile:g("watchFile"),watchDirectory:g("watchDirectory")};function g(U){return(J,G,Z,Q,re,ae)=>{var _e;return bie(J,U==="watchFile"?Q?.excludeFiles:Q?.excludeDirectories,k(),((_e=t.getCurrentDirectory)==null?void 0:_e.call(t))||"")?y(J,Z,Q,re,ae):f[U].call(void 0,J,G,Z,Q,re,ae)}}function k(){return typeof t.useCaseSensitiveFileNames=="boolean"?t.useCaseSensitiveFileNames:t.useCaseSensitiveFileNames()}function T(U,J,G,Z,Q){return a(`ExcludeWatcher:: Added:: ${M(U,J,G,Z,Q,c)}`),{close:()=>a(`ExcludeWatcher:: Close:: ${M(U,J,G,Z,Q,c)}`)}}function C(U,J,G,Z,Q,re){a(`FileWatcher:: Added:: ${M(U,G,Z,Q,re,c)}`);let ae=_.watchFile(U,J,G,Z,Q,re);return{close:()=>{a(`FileWatcher:: Close:: ${M(U,G,Z,Q,re,c)}`),ae.close()}}}function O(U,J,G,Z,Q,re){let ae=`DirectoryWatcher:: Added:: ${M(U,G,Z,Q,re,c)}`;a(ae);let _e=Ml(),me=_.watchDirectory(U,J,G,Z,Q,re),le=Ml()-_e;return a(`Elapsed:: ${le}ms ${ae}`),{close:()=>{let Oe=`DirectoryWatcher:: Close:: ${M(U,G,Z,Q,re,c)}`;a(Oe);let be=Ml();me.close();let ue=Ml()-be;a(`Elapsed:: ${ue}ms ${Oe}`)}}}function F(U){return(J,G,Z,Q,re,ae)=>u[U].call(void 0,J,(..._e)=>{let me=`${U==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${_e[0]} ${_e[1]!==void 0?_e[1]:""}:: ${M(J,Z,Q,re,ae,c)}`;a(me);let le=Ml();G.call(void 0,..._e);let Oe=Ml()-le;a(`Elapsed:: ${Oe}ms ${me}`)},Z,Q,re,ae)}function M(U,J,G,Z,Q,re){return`WatchInfo: ${U} ${J} ${JSON.stringify(G)} ${re?re(Z,Q):Q===void 0?Z:`${Z} ${Q}`}`}}function CK(t){let n=t?.fallbackPolling;return{watchFile:n!==void 0?n:1}}function C0(t){t.watcher.close()}function k0e(t,n,a="tsconfig.json"){return Ex(t,c=>{let u=Xi(c,a);return n(u)?u:void 0})}function C0e(t,n){let a=mo(n),c=qd(t)?t:Xi(a,t);return Qs(c)}function AOe(t,n,a){let c;return X(t,_=>{let f=Jk(_,n);if(f.pop(),!c){c=f;return}let y=Math.min(c.length,f.length);for(let g=0;g{let _;try{jl("beforeIORead"),_=t(a),jl("afterIORead"),Jm("I/O Read","beforeIORead","afterIORead")}catch(f){u&&u(f.message),_=""}return _!==void 0?DF(a,_,c,n):void 0}}function A0e(t,n,a){return(c,u,_,f)=>{try{jl("beforeIOWrite"),mhe(c,u,_,t,n,a),jl("afterIOWrite"),Jm("I/O Write","beforeIOWrite","afterIOWrite")}catch(y){f&&f(y.message)}}}function Qie(t,n,a=f_){let c=new Map,u=_d(a.useCaseSensitiveFileNames);function _(T){return c.has(T)?!0:(k.directoryExists||a.directoryExists)(T)?(c.set(T,!0),!0):!1}function f(){return mo(Qs(a.getExecutingFilePath()))}let y=fE(t),g=a.realpath&&(T=>a.realpath(T)),k={getSourceFile:D0e(T=>k.readFile(T),n),getDefaultLibLocation:f,getDefaultLibFileName:T=>Xi(f(),kn(T)),writeFile:A0e((T,C,O)=>a.writeFile(T,C,O),T=>(k.createDirectory||a.createDirectory)(T),T=>_(T)),getCurrentDirectory:Ef(()=>a.getCurrentDirectory()),useCaseSensitiveFileNames:()=>a.useCaseSensitiveFileNames,getCanonicalFileName:u,getNewLine:()=>y,fileExists:T=>a.fileExists(T),readFile:T=>a.readFile(T),trace:T=>a.write(T+y),directoryExists:T=>a.directoryExists(T),getEnvironmentVariable:T=>a.getEnvironmentVariable?a.getEnvironmentVariable(T):"",getDirectories:T=>a.getDirectories(T),realpath:g,readDirectory:(T,C,O,F,M)=>a.readDirectory(T,C,O,F,M),createDirectory:T=>a.createDirectory(T),createHash:ja(a,a.createHash)};return k}function Bz(t,n,a){let c=t.readFile,u=t.fileExists,_=t.directoryExists,f=t.createDirectory,y=t.writeFile,g=new Map,k=new Map,T=new Map,C=new Map,O=U=>{let J=n(U),G=g.get(J);return G!==void 0?G!==!1?G:void 0:F(J,U)},F=(U,J)=>{let G=c.call(t,J);return g.set(U,G!==void 0?G:!1),G};t.readFile=U=>{let J=n(U),G=g.get(J);return G!==void 0?G!==!1?G:void 0:!Au(U,".json")&&!vOe(U)?c.call(t,U):F(J,U)};let M=a?(U,J,G,Z)=>{let Q=n(U),re=typeof J=="object"?J.impliedNodeFormat:void 0,ae=C.get(re),_e=ae?.get(Q);if(_e)return _e;let me=a(U,J,G,Z);return me&&(sf(U)||Au(U,".json"))&&C.set(re,(ae||new Map).set(Q,me)),me}:void 0;return t.fileExists=U=>{let J=n(U),G=k.get(J);if(G!==void 0)return G;let Z=u.call(t,U);return k.set(J,!!Z),Z},y&&(t.writeFile=(U,J,...G)=>{let Z=n(U);k.delete(Z);let Q=g.get(Z);Q!==void 0&&Q!==J?(g.delete(Z),C.forEach(re=>re.delete(Z))):M&&C.forEach(re=>{let ae=re.get(Z);ae&&ae.text!==J&&re.delete(Z)}),y.call(t,U,J,...G)}),_&&(t.directoryExists=U=>{let J=n(U),G=T.get(J);if(G!==void 0)return G;let Z=_.call(t,U);return T.set(J,!!Z),Z},f&&(t.createDirectory=U=>{let J=n(U);T.delete(J),f.call(t,U)})),{originalReadFile:c,originalFileExists:u,originalDirectoryExists:_,originalCreateDirectory:f,originalWriteFile:y,getSourceFileWithCache:M,readFileWithCache:O}}function B_t(t,n,a){let c;return c=En(c,t.getConfigFileParsingDiagnostics()),c=En(c,t.getOptionsDiagnostics(a)),c=En(c,t.getSyntacticDiagnostics(n,a)),c=En(c,t.getGlobalDiagnostics(a)),c=En(c,t.getSemanticDiagnostics(n,a)),fg(t.getCompilerOptions())&&(c=En(c,t.getDeclarationDiagnostics(n,a))),nr(c||j)}function $_t(t,n){let a="";for(let c of t)a+=w0e(c,n);return a}function w0e(t,n){let a=`${NT(t)} TS${t.code}: ${RS(t.messageText,n.getNewLine())}${n.getNewLine()}`;if(t.file){let{line:c,character:u}=qs(t.file,t.start),_=t.file.fileName;return`${BI(_,n.getCurrentDirectory(),y=>n.getCanonicalFileName(y))}(${c+1},${u+1}): `+a}return a}var IOe=(t=>(t.Grey="\x1B[90m",t.Red="\x1B[91m",t.Yellow="\x1B[93m",t.Blue="\x1B[94m",t.Cyan="\x1B[96m",t))(IOe||{}),POe="\x1B[7m",NOe=" ",U_t="\x1B[0m",z_t="...",Bsr=" ",q_t=" ";function J_t(t){switch(t){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return $.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function IP(t,n){return n+t+U_t}function V_t(t,n,a,c,u,_){let{line:f,character:y}=qs(t,n),{line:g,character:k}=qs(t,n+a),T=qs(t,t.text.length).line,C=g-f>=4,O=(g+1+"").length;C&&(O=Math.max(z_t.length,O));let F="";for(let M=f;M<=g;M++){F+=_.getNewLine(),C&&f+1a.getCanonicalFileName(g)):t.fileName,y="";return y+=c(f,"\x1B[96m"),y+=":",y+=c(`${u+1}`,"\x1B[93m"),y+=":",y+=c(`${_+1}`,"\x1B[93m"),y}function OOe(t,n){let a="";for(let c of t){if(c.file){let{file:u,start:_}=c;a+=I0e(u,_,n),a+=" - "}if(a+=IP(NT(c),J_t(c.category)),a+=IP(` TS${c.code}: `,"\x1B[90m"),a+=RS(c.messageText,n.getNewLine()),c.file&&c.code!==x.File_appears_to_be_binary.code&&(a+=n.getNewLine(),a+=V_t(c.file,c.start,c.length,"",J_t(c.category),n)),c.relatedInformation){a+=n.getNewLine();for(let{file:u,start:_,length:f,messageText:y}of c.relatedInformation)u&&(a+=n.getNewLine(),a+=Bsr+I0e(u,_,n),a+=V_t(u,_,f,q_t,"\x1B[96m",n)),a+=n.getNewLine(),a+=q_t+RS(y,n.getNewLine())}a+=n.getNewLine()}return a}function RS(t,n,a=0){if(Ni(t))return t;if(t===void 0)return"";let c="";if(a){c+=n;for(let u=0;uN0e(n,t,a)};function O0e(t,n,a,c,u){return{nameAndMode:Xie,resolve:(_,f)=>h3(_,t,a,c,u,n,f)}}function LOe(t){return Ni(t)?t:t.fileName}var K_t={getName:LOe,getMode:(t,n,a)=>FOe(t,n&&roe(n,a))};function Yie(t,n,a,c,u){return{nameAndMode:K_t,resolve:(_,f)=>n8e(_,t,a,c,n,u,f)}}function DK(t,n,a,c,u,_,f,y){if(t.length===0)return j;let g=[],k=new Map,T=y(n,a,c,_,f);for(let C of t){let O=T.nameAndMode.getName(C),F=T.nameAndMode.getMode(C,u,a?.commandLine.options||c),M=Ez(O,F),U=k.get(M);U||k.set(M,U=T.resolve(O,F)),g.push(U)}return g}var $z="__inferred type names__.ts";function eoe(t,n,a){let c=t.configFilePath?mo(t.configFilePath):n;return Xi(c,`__lib_node_modules_lookup_${a}__.ts`)}function F0e(t){let n=t.split("."),a=n[1],c=2;for(;n[c]&&n[c]!=="d";)a+=(c===2?"/":"-")+n[c],c++;return"@typescript/lib-"+a}function MA(t){switch(t?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function UL(t){return t.pos!==void 0}function Uz(t,n){var a,c,u,_;let f=$.checkDefined(t.getSourceFileByPath(n.file)),{kind:y,index:g}=n,k,T,C;switch(y){case 3:let O=IK(f,g);if(C=(c=(a=t.getResolvedModuleFromModuleSpecifier(O,f))==null?void 0:a.resolvedModule)==null?void 0:c.packageId,O.pos===-1)return{file:f,packageId:C,text:O.text};k=_c(f.text,O.pos),T=O.end;break;case 4:({pos:k,end:T}=f.referencedFiles[g]);break;case 5:({pos:k,end:T}=f.typeReferenceDirectives[g]),C=(_=(u=t.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(f.typeReferenceDirectives[g],f))==null?void 0:u.resolvedTypeReferenceDirective)==null?void 0:_.packageId;break;case 7:({pos:k,end:T}=f.libReferenceDirectives[g]);break;default:return $.assertNever(y)}return{file:f,pos:k,end:T,packageId:C}}function R0e(t,n,a,c,u,_,f,y,g,k){if(!t||y?.()||!__(t.getRootFileNames(),n))return!1;let T;if(!__(t.getProjectReferences(),k,U)||t.getSourceFiles().some(F))return!1;let C=t.getMissingFilePaths();if(C&&Ad(C,u))return!1;let O=t.getCompilerOptions();if(!Nhe(O,a)||t.resolvedLibReferences&&Ad(t.resolvedLibReferences,(G,Z)=>f(Z)))return!1;if(O.configFile&&a.configFile)return O.configFile.text===a.configFile.text;return!0;function F(G){return!M(G)||_(G.path)}function M(G){return G.version===c(G.resolvedPath,G.fileName)}function U(G,Z,Q){return gme(G,Z)&&J(t.getResolvedProjectReferences()[Q],G)}function J(G,Z){if(G){if(un(T,G))return!0;let re=RF(Z),ae=g(re);return!ae||G.commandLine.options.configFile!==ae.options.configFile||!__(G.commandLine.fileNames,ae.fileNames)?!1:((T||(T=[])).push(G),!X(G.references,(_e,me)=>!J(_e,G.commandLine.projectReferences[me])))}let Q=RF(Z);return!g(Q)}}function PP(t){return t.options.configFile?[...t.options.configFile.parseDiagnostics,...t.errors]:t.errors}function AK(t,n,a,c){let u=toe(t,n,a,c);return typeof u=="object"?u.impliedNodeFormat:u}function toe(t,n,a,c){let u=km(c),_=3<=u&&u<=99||kC(t);return _p(t,[".d.mts",".mts",".mjs"])?99:_p(t,[".d.cts",".cts",".cjs"])?1:_&&_p(t,[".d.ts",".ts",".tsx",".js",".jsx"])?f():void 0;function f(){let y=kz(n,a,c),g=[];y.failedLookupLocations=g,y.affectingLocations=g;let k=Cz(mo(t),y);return{impliedNodeFormat:k?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:g,packageJsonScope:k}}}var Q_t=new Set([x.Cannot_redeclare_block_scoped_variable_0.code,x.A_module_cannot_have_multiple_default_exports.code,x.Another_export_default_is_here.code,x.The_first_export_default_is_here.code,x.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,x.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,x.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,x.constructor_is_a_reserved_word.code,x.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,x.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,x.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,x.Invalid_use_of_0_in_strict_mode.code,x.A_label_is_not_allowed_here.code,x.with_statements_are_not_allowed_in_strict_mode.code,x.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,x.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,x.A_class_declaration_without_the_default_modifier_must_have_a_name.code,x.A_class_member_cannot_have_the_0_keyword.code,x.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,x.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,x.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,x.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,x.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,x.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,x.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,x.A_destructuring_declaration_must_have_an_initializer.code,x.A_get_accessor_cannot_have_parameters.code,x.A_rest_element_cannot_contain_a_binding_pattern.code,x.A_rest_element_cannot_have_a_property_name.code,x.A_rest_element_cannot_have_an_initializer.code,x.A_rest_element_must_be_last_in_a_destructuring_pattern.code,x.A_rest_parameter_cannot_have_an_initializer.code,x.A_rest_parameter_must_be_last_in_a_parameter_list.code,x.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,x.A_return_statement_cannot_be_used_inside_a_class_static_block.code,x.A_set_accessor_cannot_have_rest_parameter.code,x.A_set_accessor_must_have_exactly_one_parameter.code,x.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,x.An_export_declaration_cannot_have_modifiers.code,x.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,x.An_import_declaration_cannot_have_modifiers.code,x.An_object_member_cannot_be_declared_optional.code,x.Argument_of_dynamic_import_cannot_be_spread_element.code,x.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,x.Cannot_redeclare_identifier_0_in_catch_clause.code,x.Catch_clause_variable_cannot_have_an_initializer.code,x.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,x.Classes_can_only_extend_a_single_class.code,x.Classes_may_not_have_a_field_named_constructor.code,x.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,x.Duplicate_label_0.code,x.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,x.for_await_loops_cannot_be_used_inside_a_class_static_block.code,x.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,x.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,x.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,x.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,x.Jump_target_cannot_cross_function_boundary.code,x.Line_terminator_not_permitted_before_arrow.code,x.Modifiers_cannot_appear_here.code,x.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,x.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,x.Private_identifiers_are_not_allowed_outside_class_bodies.code,x.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,x.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,x.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,x.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,x.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,x.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,x.Trailing_comma_not_allowed.code,x.Variable_declaration_list_cannot_be_empty.code,x._0_and_1_operations_cannot_be_mixed_without_parentheses.code,x._0_expected.code,x._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,x._0_list_cannot_be_empty.code,x._0_modifier_already_seen.code,x._0_modifier_cannot_appear_on_a_constructor_declaration.code,x._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,x._0_modifier_cannot_appear_on_a_parameter.code,x._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,x._0_modifier_cannot_be_used_here.code,x._0_modifier_must_precede_1_modifier.code,x._0_declarations_can_only_be_declared_inside_a_block.code,x._0_declarations_must_be_initialized.code,x.extends_clause_already_seen.code,x.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,x.Class_constructor_may_not_be_a_generator.code,x.Class_constructor_may_not_be_an_accessor.code,x.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,x.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,x.Private_field_0_must_be_declared_in_an_enclosing_class.code,x.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function $sr(t,n){return t?MO(t.getCompilerOptions(),n,_ye):!1}function Usr(t,n,a,c,u,_){return{rootNames:t,options:n,host:a,oldProgram:c,configFileParsingDiagnostics:u,typeScriptVersion:_}}function wK(t,n,a,c,u){var _,f,y,g,k,T,C,O,F,M,U,J,G,Z,Q,re;let ae=Zn(t)?Usr(t,n,a,c,u):t,{rootNames:_e,options:me,configFileParsingDiagnostics:le,projectReferences:Oe,typeScriptVersion:be,host:ue}=ae,{oldProgram:De}=ae;ae=void 0,t=void 0;for(let dt of LNe)if(Ho(me,dt.name)&&typeof me[dt.name]=="string")throw new Error(`${dt.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);let Ce=Ef(()=>cr("ignoreDeprecations",x.Invalid_value_for_ignoreDeprecations)),Ae,Fe,Be,de,ze,ut,je,ve,Le,Ve=MOe(Xa),nt,It,ke,_t,Se,tt,Qe,We,St,Kt=typeof me.maxNodeModuleJsDepth=="number"?me.maxNodeModuleJsDepth:0,Sr=0,nn=new Map,Nn=new Map;(_=hi)==null||_.push(hi.Phase.Program,"createProgram",{configFilePath:me.configFilePath,rootDir:me.rootDir},!0),jl("beforeProgram");let $t=ue||wOe(me),Dr=ioe($t),Qn=me.noLib,Ko=Ef(()=>$t.getDefaultLibFileName(me)),is=$t.getDefaultLibLocation?$t.getDefaultLibLocation():mo(Ko()),sr=!1,uo=$t.getCurrentDirectory(),Wa=qU(me),oo=SH(me,Wa),Oi=new Map,$o,ft,Ht,Wr,ai=$t.hasInvalidatedResolutions||Yf;$t.resolveModuleNameLiterals?(Wr=$t.resolveModuleNameLiterals.bind($t),Ht=(f=$t.getModuleResolutionCache)==null?void 0:f.call($t)):$t.resolveModuleNames?(Wr=(dt,Lt,Tr,dn,qn,Fi)=>$t.resolveModuleNames(dt.map(ROe),Lt,Fi?.map(ROe),Tr,dn,qn).map($n=>$n?$n.extension!==void 0?{resolvedModule:$n}:{resolvedModule:{...$n,extension:VU($n.resolvedFileName)}}:H_t),Ht=(y=$t.getModuleResolutionCache)==null?void 0:y.call($t)):(Ht=FL(uo,Nd,me),Wr=(dt,Lt,Tr,dn,qn)=>DK(dt,Lt,Tr,dn,qn,$t,Ht,O0e));let vo;if($t.resolveTypeReferenceDirectiveReferences)vo=$t.resolveTypeReferenceDirectiveReferences.bind($t);else if($t.resolveTypeReferenceDirectives)vo=(dt,Lt,Tr,dn,qn)=>$t.resolveTypeReferenceDirectives(dt.map(LOe),Lt,Tr,dn,qn?.impliedNodeFormat).map(Fi=>({resolvedTypeReferenceDirective:Fi}));else{let dt=Die(uo,Nd,void 0,Ht?.getPackageJsonInfoCache(),Ht?.optionsToRedirectsKey);vo=(Lt,Tr,dn,qn,Fi)=>DK(Lt,Tr,dn,qn,Fi,$t,dt,Yie)}let Eo=$t.hasInvalidatedLibResolutions||Yf,ya;if($t.resolveLibrary)ya=$t.resolveLibrary.bind($t);else{let dt=FL(uo,Nd,me,Ht?.getPackageJsonInfoCache());ya=(Lt,Tr,dn)=>Aie(Lt,Tr,dn,$t,dt)}let Ls=new Map,yc=new Map,Cn=d_(),Es,Dt=new Map,ur=new Map,Ee=$t.useCaseSensitiveFileNames()?new Map:void 0,Bt,ye,et,Ct,Ot=!!((g=$t.useSourceOfProjectReferenceRedirect)!=null&&g.call($t))&&!me.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:ar,fileExists:at,directoryExists:Zt}=zsr({compilerHost:$t,getSymlinkCache:Ky,useSourceOfProjectReferenceRedirect:Ot,toPath:_r,getResolvedProjectReferences:ec,getRedirectFromOutput:Kp,forEachResolvedProjectReference:Dp}),Qt=$t.readFile.bind($t);(k=hi)==null||k.push(hi.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!De});let pr=$sr(De,me);(T=hi)==null||T.pop();let Et;if((C=hi)==null||C.push(hi.Phase.Program,"tryReuseStructureFromOldProgram",{}),Et=bn(),(O=hi)==null||O.pop(),Et!==2){if(Ae=[],Fe=[],Oe&&(Bt||(Bt=Oe.map(US)),_e.length&&Bt?.forEach((dt,Lt)=>{if(!dt)return;let Tr=dt.commandLine.options.outFile;if(Ot){if(Tr||Km(dt.commandLine.options)===0)for(let dn of dt.commandLine.fileNames)Wh(dn,{kind:1,index:Lt})}else if(Tr)Wh(hE(Tr,".d.ts"),{kind:2,index:Lt});else if(Km(dt.commandLine.options)===0){let dn=Ef(()=>S3(dt.commandLine,!$t.useCaseSensitiveFileNames()));for(let qn of dt.commandLine.fileNames)!sf(qn)&&!Au(qn,".json")&&Wh(Mz(qn,dt.commandLine,!$t.useCaseSensitiveFileNames(),dn),{kind:2,index:Lt})}})),(F=hi)==null||F.push(hi.Phase.Program,"processRootFiles",{count:_e.length}),X(_e,(dt,Lt)=>xc(dt,!1,!1,{kind:0,index:Lt})),(M=hi)==null||M.pop(),nt??(nt=_e.length?kie(me,$t):j),It=OL(),nt.length){(U=hi)==null||U.push(hi.Phase.Program,"processTypeReferences",{count:nt.length});let dt=me.configFilePath?mo(me.configFilePath):uo,Lt=Xi(dt,$z),Tr=lr(nt,Lt);for(let dn=0;dn{xc(Wx(Lt),!0,!1,{kind:6,index:Tr})})}Be=pu(Ae,Rt).concat(Fe),Ae=void 0,Fe=void 0,je=void 0}if(De&&$t.onReleaseOldSourceFile){let dt=De.getSourceFiles();for(let Lt of dt){let Tr=kc(Lt.resolvedPath);(pr||!Tr||Tr.impliedNodeFormat!==Lt.impliedNodeFormat||Lt.resolvedPath===Lt.path&&Tr.resolvedPath!==Lt.path)&&$t.onReleaseOldSourceFile(Lt,De.getCompilerOptions(),!!kc(Lt.path),Tr)}$t.getParsedCommandLine||De.forEachResolvedProjectReference(Lt=>{If(Lt.sourceFile.path)||$t.onReleaseOldSourceFile(Lt.sourceFile,De.getCompilerOptions(),!1,void 0)})}De&&$t.onReleaseParsedCommandLine&&tz(De.getProjectReferences(),De.getResolvedProjectReferences(),(dt,Lt,Tr)=>{let dn=Lt?.commandLine.projectReferences[Tr]||De.getProjectReferences()[Tr],qn=RF(dn);ye?.has(_r(qn))||$t.onReleaseParsedCommandLine(qn,dt,De.getCompilerOptions())}),De=void 0,_t=void 0,tt=void 0,We=void 0;let xr={getRootFileNames:()=>_e,getSourceFile:Nu,getSourceFileByPath:kc,getSourceFiles:()=>Be,getMissingFilePaths:()=>ur,getModuleResolutionCache:()=>Ht,getFilesByNameMap:()=>Dt,getCompilerOptions:()=>me,getSyntacticDiagnostics:Gy,getOptionsDiagnostics:On,getGlobalDiagnostics:va,getSemanticDiagnostics:_s,getCachedSemanticDiagnostics:sc,getSuggestionDiagnostics:st,getDeclarationDiagnostics:Ar,getBindAndCheckDiagnostics:sl,getProgramDiagnostics:Yc,getTypeChecker:uu,getClassifiableNames:pn,getCommonSourceDirectory:wr,emit:$a,getCurrentDirectory:()=>uo,getNodeCount:()=>uu().getNodeCount(),getIdentifierCount:()=>uu().getIdentifierCount(),getSymbolCount:()=>uu().getSymbolCount(),getTypeCount:()=>uu().getTypeCount(),getInstantiationCount:()=>uu().getInstantiationCount(),getRelationCacheSizes:()=>uu().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Ve.getFileProcessingDiagnostics(),getAutomaticTypeDirectiveNames:()=>nt,getAutomaticTypeDirectiveResolutions:()=>It,isSourceFileFromExternalLibrary:Mp,isSourceFileDefaultLibrary:Cp,getModeForUsageLocation:A0,getEmitSyntaxForUsageLocation:r2,getModeForResolutionAtIndex:PE,getSourceFileFromReference:Gg,getLibFileFromReference:a_,sourceFileToPackageName:yc,redirectTargetsMap:Cn,usesUriStyleNodeCoreModules:Es,resolvedModules:Se,resolvedTypeReferenceDirectiveNames:Qe,resolvedLibReferences:ke,getProgramDiagnosticsContainer:()=>Ve,getResolvedModule:gi,getResolvedModuleFromModuleSpecifier:Ye,getResolvedTypeReferenceDirective:er,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:Ne,forEachResolvedModule:Y,forEachResolvedTypeReferenceDirective:ot,getCurrentPackagesMap:()=>St,typesPackageExists:mr,packageBundlesTypes:Ge,isEmittedFile:pf,getConfigFileParsingDiagnostics:Bl,getProjectReferences:Ss,getResolvedProjectReferences:ec,getRedirectFromSourceFile:Mu,getResolvedProjectReferenceByPath:If,forEachResolvedProjectReference:Dp,isSourceOfProjectReferenceRedirect:vy,getRedirectFromOutput:Kp,getCompilerOptionsForFile:Ym,getDefaultResolutionModeForFile:vh,getEmitModuleFormatOfFile:Pv,getImpliedNodeFormatForEmit:Nb,shouldTransformImportCall:d1,emitBuildInfo:Ys,fileExists:at,readFile:Qt,directoryExists:Zt,getSymlinkCache:Ky,realpath:(Q=$t.realpath)==null?void 0:Q.bind($t),useCaseSensitiveFileNames:()=>$t.useCaseSensitiveFileNames(),getCanonicalFileName:Nd,getFileIncludeReasons:()=>Ve.getFileReasons(),structureIsReused:Et,writeFile:Uo,getGlobalTypingsCacheLocation:ja($t,$t.getGlobalTypingsCacheLocation)};return ar(),sr||xe(),jl("afterProgram"),Jm("Program","beforeProgram","afterProgram"),(re=hi)==null||re.pop(),xr;function gi(dt,Lt,Tr){var dn;return(dn=Se?.get(dt.path))==null?void 0:dn.get(Lt,Tr)}function Ye(dt,Lt){return Lt??(Lt=Pn(dt)),$.assertIsDefined(Lt,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),gi(Lt,dt.text,A0(Lt,dt))}function er(dt,Lt,Tr){var dn;return(dn=Qe?.get(dt.path))==null?void 0:dn.get(Lt,Tr)}function Ne(dt,Lt){return er(Lt,dt.fileName,OC(dt,Lt))}function Y(dt,Lt){pe(Se,dt,Lt)}function ot(dt,Lt){pe(Qe,dt,Lt)}function pe(dt,Lt,Tr){var dn;Tr?(dn=dt?.get(Tr.path))==null||dn.forEach((qn,Fi,$n)=>Lt(qn,Fi,$n,Tr.path)):dt?.forEach((qn,Fi)=>qn.forEach(($n,oi,sa)=>Lt($n,oi,sa,Fi)))}function Gt(){return St||(St=new Map,Y(({resolvedModule:dt})=>{dt?.packageId&&St.set(dt.packageId.name,dt.extension===".d.ts"||!!St.get(dt.packageId.name))}),St)}function mr(dt){return Gt().has(Pie(dt))}function Ge(dt){return!!Gt().get(dt)}function Mt(dt){var Lt;(Lt=dt.resolutionDiagnostics)!=null&&Lt.length&&Ve.addFileProcessingDiagnostic({kind:2,diagnostics:dt.resolutionDiagnostics})}function Ir(dt,Lt,Tr,dn){if($t.resolveModuleNameLiterals||!$t.resolveModuleNames)return Mt(Tr);if(!Ht||vt(Lt))return;let qn=za(dt.originalFileName,uo),Fi=mo(qn),$n=zn(dt),oi=Ht.getFromNonRelativeNameCache(Lt,dn,Fi,$n);oi&&Mt(oi)}function ii(dt,Lt,Tr){var dn,qn;let Fi=za(Lt.originalFileName,uo),$n=zn(Lt);(dn=hi)==null||dn.push(hi.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Fi}),jl("beforeResolveModule");let oi=Wr(dt,Fi,$n,me,Lt,Tr);return jl("afterResolveModule"),Jm("ResolveModule","beforeResolveModule","afterResolveModule"),(qn=hi)==null||qn.pop(),oi}function Rn(dt,Lt,Tr){var dn,qn;let Fi=Ni(Lt)?void 0:Lt,$n=Ni(Lt)?Lt:za(Lt.originalFileName,uo),oi=Fi&&zn(Fi);(dn=hi)==null||dn.push(hi.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:$n}),jl("beforeResolveTypeReference");let sa=vo(dt,$n,oi,me,Fi,Tr);return jl("afterResolveTypeReference"),Jm("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(qn=hi)==null||qn.pop(),sa}function zn(dt){var Lt,Tr;let dn=Mu(dt.originalFileName);if(dn||!sf(dt.originalFileName))return dn?.resolvedRef;let qn=(Lt=Kp(dt.path))==null?void 0:Lt.resolvedRef;if(qn)return qn;if(!$t.realpath||!me.preserveSymlinks||!dt.originalFileName.includes(Jx))return;let Fi=_r($t.realpath(dt.originalFileName));return Fi===dt.path||(Tr=Kp(Fi))==null?void 0:Tr.resolvedRef}function Rt(dt,Lt){return Br(rr(dt),rr(Lt))}function rr(dt){if(ug(is,dt.fileName,!1)){let Lt=t_(dt.fileName);if(Lt==="lib.d.ts"||Lt==="lib.es6.d.ts")return 0;let Tr=Lk(Mk(Lt,"lib."),".d.ts"),dn=cie.indexOf(Tr);if(dn!==-1)return dn+1}return cie.length+2}function _r(dt){return wl(dt,uo,Nd)}function wr(){let dt=Ve.getCommonSourceDirectory();if(dt!==void 0)return dt;let Lt=yr(Be,Tr=>sP(Tr,xr));return dt=jz(me,()=>Wn(Lt,Tr=>Tr.isDeclarationFile?void 0:Tr.fileName),uo,Nd,Tr=>Hy(Lt,Tr)),Ve.setCommonSourceDirectory(dt),dt}function pn(){var dt;if(!ut){uu(),ut=new Set;for(let Lt of Be)(dt=Lt.classifiableNames)==null||dt.forEach(Tr=>ut.add(Tr))}return ut}function tn(dt,Lt){return cn({entries:dt,containingFile:Lt,containingSourceFile:Lt,redirectedReference:zn(Lt),nameAndModeGetter:Xie,resolutionWorker:ii,getResolutionFromOldProgram:(Tr,dn)=>De?.getResolvedModule(Lt,Tr,dn),getResolved:jO,canReuseResolutionsInFile:()=>Lt===De?.getSourceFile(Lt.fileName)&&!ai(Lt.path),resolveToOwnAmbientModule:!0})}function lr(dt,Lt){let Tr=Ni(Lt)?void 0:Lt;return cn({entries:dt,containingFile:Lt,containingSourceFile:Tr,redirectedReference:Tr&&zn(Tr),nameAndModeGetter:K_t,resolutionWorker:Rn,getResolutionFromOldProgram:(dn,qn)=>{var Fi;return Tr?De?.getResolvedTypeReferenceDirective(Tr,dn,qn):(Fi=De?.getAutomaticTypeDirectiveResolutions())==null?void 0:Fi.get(dn,qn)},getResolved:tre,canReuseResolutionsInFile:()=>Tr?Tr===De?.getSourceFile(Tr.fileName)&&!ai(Tr.path):!ai(_r(Lt))})}function cn({entries:dt,containingFile:Lt,containingSourceFile:Tr,redirectedReference:dn,nameAndModeGetter:qn,resolutionWorker:Fi,getResolutionFromOldProgram:$n,getResolved:oi,canReuseResolutionsInFile:sa,resolveToOwnAmbientModule:os}){if(!dt.length)return j;if(Et===0&&(!os||!Tr.ambientModuleNames.length))return Fi(dt,Lt,void 0);let Po,as,ka,lp,Hh=sa();for(let Pf=0;Pfka[as[m1]]=Pf),ka):f1}function gn(){return!tz(De.getProjectReferences(),De.getResolvedProjectReferences(),(dt,Lt,Tr)=>{let dn=(Lt?Lt.commandLine.projectReferences:Oe)[Tr],qn=US(dn);return dt?!qn||qn.sourceFile!==dt.sourceFile||!__(dt.commandLine.fileNames,qn.commandLine.fileNames):qn!==void 0},(dt,Lt)=>{let Tr=Lt?If(Lt.sourceFile.path).commandLine.projectReferences:Oe;return!__(dt,Tr,gme)})}function bn(){var dt;if(!De)return 0;let Lt=De.getCompilerOptions();if(Yte(Lt,me))return 0;let Tr=De.getRootFileNames();if(!__(Tr,_e)||!gn())return 0;Oe&&(Bt=Oe.map(US));let dn=[],qn=[];if(Et=2,Ad(De.getMissingFilePaths(),Po=>$t.fileExists(Po)))return 0;let Fi=De.getSourceFiles(),$n;(Po=>{Po[Po.Exists=0]="Exists",Po[Po.Modified=1]="Modified"})($n||($n={}));let oi=new Map;for(let Po of Fi){let as=Ga(Po.fileName,Ht,$t,me),ka=$t.getSourceFileByPath?$t.getSourceFileByPath(Po.fileName,Po.resolvedPath,as,void 0,pr):$t.getSourceFile(Po.fileName,as,void 0,pr);if(!ka)return 0;ka.packageJsonLocations=(dt=as.packageJsonLocations)!=null&&dt.length?as.packageJsonLocations:void 0,ka.packageJsonScope=as.packageJsonScope,$.assert(!ka.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let lp;if(Po.redirectInfo){if(ka!==Po.redirectInfo.unredirected)return 0;lp=!1,ka=Po}else if(De.redirectTargetsMap.has(Po.path)){if(ka!==Po)return 0;lp=!1}else lp=ka!==Po;ka.path=Po.path,ka.originalFileName=Po.originalFileName,ka.resolvedPath=Po.resolvedPath,ka.fileName=Po.fileName;let Hh=De.sourceFileToPackageName.get(Po.path);if(Hh!==void 0){let f1=oi.get(Hh),Pf=lp?1:0;if(f1!==void 0&&Pf===1||f1===1)return 0;oi.set(Hh,Pf)}lp?(Po.impliedNodeFormat!==ka.impliedNodeFormat?Et=1:__(Po.libReferenceDirectives,ka.libReferenceDirectives,ep)?Po.hasNoDefaultLib!==ka.hasNoDefaultLib?Et=1:__(Po.referencedFiles,ka.referencedFiles,ep)?(xu(ka),__(Po.imports,ka.imports,W_)&&__(Po.moduleAugmentations,ka.moduleAugmentations,W_)?(Po.flags&12582912)!==(ka.flags&12582912)?Et=1:__(Po.typeReferenceDirectives,ka.typeReferenceDirectives,ep)||(Et=1):Et=1):Et=1:Et=1,qn.push(ka)):ai(Po.path)&&(Et=1,qn.push(ka)),dn.push(ka)}if(Et!==2)return Et;for(let Po of qn){let as=X_t(Po),ka=tn(as,Po);(tt??(tt=new Map)).set(Po.path,ka);let lp=Ym(Po);vme(as,ka,Qg=>De.getResolvedModule(Po,Qg.text,Zie(Po,Qg,lp)),HPe)&&(Et=1);let f1=Po.typeReferenceDirectives,Pf=lr(f1,Po);(We??(We=new Map)).set(Po.path,Pf),vme(f1,Pf,Qg=>De.getResolvedTypeReferenceDirective(Po,LOe(Qg),OC(Qg,Po)),KPe)&&(Et=1)}if(Et!==2)return Et;if(WPe(Lt,me)||De.resolvedLibReferences&&Ad(De.resolvedLibReferences,(Po,as)=>Gx(as).actual!==Po.actual))return 1;if($t.hasChangedAutomaticTypeDirectiveNames){if($t.hasChangedAutomaticTypeDirectiveNames())return 1}else if(nt=kie(me,$t),!__(De.getAutomaticTypeDirectiveNames(),nt))return 1;ur=De.getMissingFilePaths(),$.assert(dn.length===De.getSourceFiles().length);for(let Po of dn)Dt.set(Po.path,Po);De.getFilesByNameMap().forEach((Po,as)=>{if(!Po){Dt.set(as,Po);return}if(Po.path===as){De.isSourceFileFromExternalLibrary(Po)&&Nn.set(Po.path,!0);return}Dt.set(as,Dt.get(Po.path))});let os=Lt.configFile&&Lt.configFile===me.configFile||!Lt.configFile&&!me.configFile&&!MO(Lt,me,Q1);return Ve.reuseStateFromOldProgram(De.getProgramDiagnosticsContainer(),os),sr=os,Be=dn,nt=De.getAutomaticTypeDirectiveNames(),It=De.getAutomaticTypeDirectiveResolutions(),yc=De.sourceFileToPackageName,Cn=De.redirectTargetsMap,Es=De.usesUriStyleNodeCoreModules,Se=De.resolvedModules,Qe=De.resolvedTypeReferenceDirectiveNames,ke=De.resolvedLibReferences,St=De.getCurrentPackagesMap(),2}function $r(dt){return{getCanonicalFileName:Nd,getCommonSourceDirectory:xr.getCommonSourceDirectory,getCompilerOptions:xr.getCompilerOptions,getCurrentDirectory:()=>uo,getSourceFile:xr.getSourceFile,getSourceFileByPath:xr.getSourceFileByPath,getSourceFiles:xr.getSourceFiles,isSourceFileFromExternalLibrary:Mp,getRedirectFromSourceFile:Mu,isSourceOfProjectReferenceRedirect:vy,getSymlinkCache:Ky,writeFile:dt||Uo,isEmitBlocked:bs,shouldTransformImportCall:d1,getEmitModuleFormatOfFile:Pv,getDefaultResolutionModeForFile:vh,getModeForResolutionAtIndex:PE,readFile:Lt=>$t.readFile(Lt),fileExists:Lt=>{let Tr=_r(Lt);return kc(Tr)?!0:ur.has(Tr)?!1:$t.fileExists(Lt)},realpath:ja($t,$t.realpath),useCaseSensitiveFileNames:()=>$t.useCaseSensitiveFileNames(),getBuildInfo:()=>{var Lt;return(Lt=xr.getBuildInfo)==null?void 0:Lt.call(xr)},getSourceFileFromReference:(Lt,Tr)=>xr.getSourceFileFromReference(Lt,Tr),redirectTargetsMap:Cn,getFileIncludeReasons:xr.getFileIncludeReasons,createHash:ja($t,$t.createHash),getModuleResolutionCache:()=>xr.getModuleResolutionCache(),trace:ja($t,$t.trace),getGlobalTypingsCacheLocation:xr.getGlobalTypingsCacheLocation}}function Uo(dt,Lt,Tr,dn,qn,Fi){$t.writeFile(dt,Lt,Tr,dn,qn,Fi)}function Ys(dt){var Lt,Tr;(Lt=hi)==null||Lt.push(hi.Phase.Emit,"emitBuildInfo",{},!0),jl("beforeEmit");let dn=v0e(xOe,$r(dt),void 0,gOe,!1,!0);return jl("afterEmit"),Jm("Emit","beforeEmit","afterEmit"),(Tr=hi)==null||Tr.pop(),dn}function ec(){return Bt}function Ss(){return Oe}function Mp(dt){return!!Nn.get(dt.path)}function Cp(dt){if(!dt.isDeclarationFile)return!1;if(dt.hasNoDefaultLib)return!0;if(me.noLib)return!1;let Lt=$t.useCaseSensitiveFileNames()?qm:F1;return me.lib?Pt(me.lib,Tr=>{let dn=ke.get(Tr);return!!dn&&Lt(dt.fileName,dn.actual)}):Lt(dt.fileName,Ko())}function uu(){return ze||(ze=w8e(xr))}function $a(dt,Lt,Tr,dn,qn,Fi,$n){var oi,sa;(oi=hi)==null||oi.push(hi.Phase.Emit,"emit",{path:dt?.path},!0);let os=Gp(()=>V_(xr,dt,Lt,Tr,dn,qn,Fi,$n));return(sa=hi)==null||sa.pop(),os}function bs(dt){return Oi.has(_r(dt))}function V_(dt,Lt,Tr,dn,qn,Fi,$n,oi){if(!$n){let as=M0e(dt,Lt,Tr,dn);if(as)return as}let sa=uu(),os=sa.getEmitResolver(me.outFile?void 0:Lt,dn,y0e(qn,$n));jl("beforeEmit");let Po=sa.runWithCancellationToken(dn,()=>v0e(os,$r(Tr),Lt,yOe(me,Fi,qn),qn,!1,$n,oi));return jl("afterEmit"),Jm("Emit","beforeEmit","afterEmit"),Po}function Nu(dt){return kc(_r(dt))}function kc(dt){return Dt.get(dt)||void 0}function o_(dt,Lt,Tr){return nr(dt?Lt(dt,Tr):an(xr.getSourceFiles(),dn=>(Tr&&Tr.throwIfCancellationRequested(),Lt(dn,Tr))))}function Gy(dt,Lt){return o_(dt,Ql,Lt)}function _s(dt,Lt,Tr){return o_(dt,(dn,qn)=>N_(dn,qn,Tr),Lt)}function sc(dt){return ve?.get(dt.path)}function sl(dt,Lt){return lf(dt,Lt,void 0)}function Yc(dt){var Lt;if(lL(dt,me,xr))return j;let Tr=Ve.getCombinedDiagnostics(xr).getDiagnostics(dt.fileName);return(Lt=dt.commentDirectives)!=null&&Lt.length?H(dt,dt.commentDirectives,Tr).diagnostics:Tr}function Ar(dt,Lt){return o_(dt,Di,Lt)}function Ql(dt){return ph(dt)?(dt.additionalSyntacticDiagnostics||(dt.additionalSyntacticDiagnostics=Er(dt)),go(dt.additionalSyntacticDiagnostics,dt.parseDiagnostics)):dt.parseDiagnostics}function Gp(dt){try{return dt()}catch(Lt){throw Lt instanceof Uk&&(ze=void 0),Lt}}function N_(dt,Lt,Tr){return go(noe(lf(dt,Lt,Tr),me),Yc(dt))}function lf(dt,Lt,Tr){if(Tr)return Yu(dt,Lt,Tr);let dn=ve?.get(dt.path);return dn||(ve??(ve=new Map)).set(dt.path,dn=Yu(dt,Lt)),dn}function Yu(dt,Lt,Tr){return Gp(()=>{if(lL(dt,me,xr))return j;let dn=uu();$.assert(!!dt.bindDiagnostics);let qn=dt.scriptKind===1||dt.scriptKind===2,Fi=lU(dt,me.checkJs),$n=qn&&WU(dt,me),oi=dt.bindDiagnostics,sa=dn.getDiagnostics(dt,Lt,Tr);return Fi&&(oi=yr(oi,os=>Q_t.has(os.code)),sa=yr(sa,os=>Q_t.has(os.code))),Hp(dt,!Fi,!!Tr,oi,sa,$n?dt.jsDocDiagnostics:void 0)})}function Hp(dt,Lt,Tr,...dn){var qn;let Fi=Rc(dn);if(!Lt||!((qn=dt.commentDirectives)!=null&&qn.length))return Fi;let{diagnostics:$n,directives:oi}=H(dt,dt.commentDirectives,Fi);if(Tr)return $n;for(let sa of oi.getUnusedExpectations())$n.push(_6e(dt,sa.range,x.Unused_ts_expect_error_directive));return $n}function H(dt,Lt,Tr){let dn=XPe(dt,Lt);return{diagnostics:Tr.filter(Fi=>zt(Fi,dn)===-1),directives:dn}}function st(dt,Lt){return Gp(()=>uu().getSuggestionDiagnostics(dt,Lt))}function zt(dt,Lt){let{file:Tr,start:dn}=dt;if(!Tr)return-1;let qn=Ry(Tr),Fi=aE(qn,dn).line-1;for(;Fi>=0;){if(Lt.markUsed(Fi))return Fi;let $n=Tr.text.slice(qn[Fi],qn[Fi+1]).trim();if($n!==""&&!/^\s*\/\/.*$/.test($n))return-1;Fi--}return-1}function Er(dt){return Gp(()=>{let Lt=[];return Tr(dt,dt),CF(dt,Tr,dn),Lt;function Tr(oi,sa){switch(sa.kind){case 170:case 173:case 175:if(sa.questionToken===oi)return Lt.push($n(oi,x.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 174:case 177:case 178:case 179:case 219:case 263:case 220:case 261:if(sa.type===oi)return Lt.push($n(oi,x.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(oi.kind){case 274:if(oi.isTypeOnly)return Lt.push($n(sa,x._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 279:if(oi.isTypeOnly)return Lt.push($n(oi,x._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 277:case 282:if(oi.isTypeOnly)return Lt.push($n(oi,x._0_declarations_can_only_be_used_in_TypeScript_files,Xm(oi)?"import...type":"export...type")),"skip";break;case 272:return Lt.push($n(oi,x.import_can_only_be_used_in_TypeScript_files)),"skip";case 278:if(oi.isExportEquals)return Lt.push($n(oi,x.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 299:if(oi.token===119)return Lt.push($n(oi,x.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 265:let Po=Zs(120);return $.assertIsDefined(Po),Lt.push($n(oi,x._0_declarations_can_only_be_used_in_TypeScript_files,Po)),"skip";case 268:let as=oi.flags&32?Zs(145):Zs(144);return $.assertIsDefined(as),Lt.push($n(oi,x._0_declarations_can_only_be_used_in_TypeScript_files,as)),"skip";case 266:return Lt.push($n(oi,x.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 177:case 175:case 263:return oi.body?void 0:(Lt.push($n(oi,x.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 267:let ka=$.checkDefined(Zs(94));return Lt.push($n(oi,x._0_declarations_can_only_be_used_in_TypeScript_files,ka)),"skip";case 236:return Lt.push($n(oi,x.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return Lt.push($n(oi.type,x.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 239:return Lt.push($n(oi.type,x.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 217:$.fail()}}function dn(oi,sa){if(eye(sa)){let os=wt(sa.modifiers,hd);os&&Lt.push($n(os,x.Decorators_are_not_valid_here))}else if(kP(sa)&&sa.modifiers){let os=hr(sa.modifiers,hd);if(os>=0){if(wa(sa)&&!me.experimentalDecorators)Lt.push($n(sa.modifiers[os],x.Decorators_are_not_valid_here));else if(ed(sa)){let Po=hr(sa.modifiers,fF);if(Po>=0){let as=hr(sa.modifiers,$ne);if(os>Po&&as>=0&&os=0&&os=0&&Lt.push(ac($n(sa.modifiers[ka],x.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),$n(sa.modifiers[os],x.Decorator_used_before_export_here)))}}}}}switch(sa.kind){case 264:case 232:case 175:case 177:case 178:case 179:case 219:case 263:case 220:if(oi===sa.typeParameters)return Lt.push(Fi(oi,x.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 244:if(oi===sa.modifiers)return qn(sa.modifiers,sa.kind===244),"skip";break;case 173:if(oi===sa.modifiers){for(let os of oi)bc(os)&&os.kind!==126&&os.kind!==129&&Lt.push($n(os,x.The_0_modifier_can_only_be_used_in_TypeScript_files,Zs(os.kind)));return"skip"}break;case 170:if(oi===sa.modifiers&&Pt(oi,bc))return Lt.push(Fi(oi,x.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 214:case 215:case 234:case 286:case 287:case 216:if(oi===sa.typeArguments)return Lt.push(Fi(oi,x.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function qn(oi,sa){for(let os of oi)switch(os.kind){case 87:if(sa)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:Lt.push($n(os,x.The_0_modifier_can_only_be_used_in_TypeScript_files,Zs(os.kind)));break;case 126:case 95:case 90:case 129:}}function Fi(oi,sa,...os){let Po=oi.pos;return md(dt,Po,oi.end-Po,sa,...os)}function $n(oi,sa,...os){return m0(dt,oi,sa,...os)}})}function jn(dt,Lt){let Tr=Le?.get(dt.path);return Tr||(Le??(Le=new Map)).set(dt.path,Tr=So(dt,Lt)),Tr}function So(dt,Lt){return Gp(()=>{let Tr=uu().getEmitResolver(dt,Lt);return hOe($r(zs),Tr,dt)||j})}function Di(dt,Lt){return dt.isDeclarationFile?j:jn(dt,Lt)}function On(){return nr(go(Ve.getCombinedDiagnostics(xr).getGlobalDiagnostics(),ua()))}function ua(){if(!me.configFile)return j;let dt=Ve.getCombinedDiagnostics(xr).getDiagnostics(me.configFile.fileName);return Dp(Lt=>{dt=go(dt,Ve.getCombinedDiagnostics(xr).getDiagnostics(Lt.sourceFile.fileName))}),dt}function va(){return _e.length?nr(uu().getGlobalDiagnostics().slice()):j}function Bl(){return le||j}function xc(dt,Lt,Tr,dn){yy(Qs(dt),Lt,Tr,void 0,dn)}function ep(dt,Lt){return dt.fileName===Lt.fileName}function W_(dt,Lt){return dt.kind===80?Lt.kind===80&&dt.escapedText===Lt.escapedText:Lt.kind===11&&dt.text===Lt.text}function g_(dt,Lt){let Tr=W.createStringLiteral(dt),dn=W.createImportDeclaration(void 0,void 0,Tr);return e3(dn,2),xl(Tr,dn),xl(dn,Lt),Tr.flags&=-17,dn.flags&=-17,Tr}function xu(dt){if(dt.imports)return;let Lt=ph(dt),Tr=yd(dt),dn,qn,Fi;if(Lt||!dt.isDeclarationFile&&(a1(me)||yd(dt))){me.importHelpers&&(dn=[g_(nC,dt)]);let oi=une(yH(me,dt),me);oi&&(dn||(dn=[])).push(g_(oi,dt))}for(let oi of dt.statements)$n(oi,!1);(dt.flags&4194304||Lt)&&Ine(dt,!0,!0,(oi,sa)=>{vA(oi,!1),dn=jt(dn,sa)}),dt.imports=dn||j,dt.moduleAugmentations=qn||j,dt.ambientModuleNames=Fi||j;return;function $n(oi,sa){if(xG(oi)){let os=JO(oi);os&&Ic(os)&&os.text&&(!sa||!vt(os.text))&&(vA(oi,!1),dn=jt(dn,os),!Es&&Sr===0&&!dt.isDeclarationFile&&(Ca(os.text,"node:")&&!wne.has(os.text)?Es=!0:Es===void 0&&c3e.has(os.text)&&(Es=!1)))}else if(I_(oi)&&Gm(oi)&&(sa||ko(oi,128)||dt.isDeclarationFile)){oi.name.parent=oi;let os=g0(oi.name);if(Tr||sa&&!vt(os))(qn||(qn=[])).push(oi.name);else if(!sa){dt.isDeclarationFile&&(Fi||(Fi=[])).push(os);let Po=oi.body;if(Po)for(let as of Po.statements)$n(as,!0)}}}}function a_(dt){var Lt;let Tr=_ge(dt),dn=Tr&&((Lt=ke?.get(Tr))==null?void 0:Lt.actual);return dn!==void 0?Nu(dn):void 0}function Gg(dt,Lt){return Wf(C0e(Lt.fileName,dt.fileName),Nu)}function Wf(dt,Lt,Tr,dn){if(eA(dt)){let qn=$t.getCanonicalFileName(dt);if(!me.allowNonTsExtensions&&!X(Rc(oo),$n=>Au(qn,$n))){Tr&&(jx(qn)?Tr(x.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,dt):Tr(x.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,dt,"'"+Rc(Wa).join("', '")+"'"));return}let Fi=Lt(dt);if(Tr)if(Fi)MA(dn)&&qn===$t.getCanonicalFileName(kc(dn.file).fileName)&&Tr(x.A_file_cannot_have_a_reference_to_itself);else{let $n=Mu(dt);$n?.outputDts?Tr(x.Output_file_0_has_not_been_built_from_source_file_1,$n.outputDts,dt):Tr(x.File_0_not_found,dt)}return Fi}else{let qn=me.allowNonTsExtensions&&Lt(dt);if(qn)return qn;if(Tr&&me.allowNonTsExtensions){Tr(x.File_0_not_found,dt);return}let Fi=X(Wa[0],$n=>Lt(dt+$n));return Tr&&!Fi&&Tr(x.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,dt,"'"+Rc(Wa).join("', '")+"'"),Fi}}function yy(dt,Lt,Tr,dn,qn){Wf(dt,Fi=>Vn(Fi,Lt,Tr,qn,dn),(Fi,...$n)=>Yn(void 0,qn,Fi,$n),qn)}function Wh(dt,Lt){return yy(dt,!1,!1,void 0,Lt)}function rt(dt,Lt,Tr){!MA(Tr)&&Pt(Ve.getFileReasons().get(Lt.path),MA)?Yn(Lt,Tr,x.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Lt.fileName,dt]):Yn(Lt,Tr,x.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[dt,Lt.fileName])}function br(dt,Lt,Tr,dn,qn,Fi,$n){var oi;let sa=PA.createRedirectedSourceFile({redirectTarget:dt,unredirected:Lt});return sa.fileName=Tr,sa.path=dn,sa.resolvedPath=qn,sa.originalFileName=Fi,sa.packageJsonLocations=(oi=$n.packageJsonLocations)!=null&&oi.length?$n.packageJsonLocations:void 0,sa.packageJsonScope=$n.packageJsonScope,Nn.set(dn,Sr>0),sa}function Vn(dt,Lt,Tr,dn,qn){var Fi,$n;(Fi=hi)==null||Fi.push(hi.Phase.Program,"findSourceFile",{fileName:dt,isDefaultLib:Lt||void 0,fileIncludeKind:H9[dn.kind]});let oi=el(dt,Lt,Tr,dn,qn);return($n=hi)==null||$n.pop(),oi}function Ga(dt,Lt,Tr,dn){let qn=toe(za(dt,uo),Lt?.getPackageJsonInfoCache(),Tr,dn),Fi=$c(dn),$n=dH(dn);return typeof qn=="object"?{...qn,languageVersion:Fi,setExternalModuleIndicator:$n,jsDocParsingMode:Tr.jsDocParsingMode}:{languageVersion:Fi,impliedNodeFormat:qn,setExternalModuleIndicator:$n,jsDocParsingMode:Tr.jsDocParsingMode}}function el(dt,Lt,Tr,dn,qn){var Fi,$n;let oi=_r(dt);if(Ot){let ka=Kp(oi);if(!ka&&$t.realpath&&me.preserveSymlinks&&sf(dt)&&dt.includes(Jx)){let lp=_r($t.realpath(dt));lp!==oi&&(ka=Kp(lp))}if(ka?.source){let lp=Vn(ka.source,Lt,Tr,dn,qn);return lp&&Uc(lp,oi,dt,void 0),lp}}let sa=dt;if(Dt.has(oi)){let ka=Dt.get(oi),lp=tl(ka||void 0,dn,!0);if(ka&&lp&&me.forceConsistentCasingInFileNames!==!1){let Hh=ka.fileName;_r(Hh)!==_r(dt)&&(dt=((Fi=Mu(dt))==null?void 0:Fi.outputDts)||dt);let Pf=ER(Hh,uo),m1=ER(dt,uo);Pf!==m1&&rt(dt,ka,dn)}return ka&&Nn.get(ka.path)&&Sr===0?(Nn.set(ka.path,!1),me.noResolve||(uf(ka,Lt),Hg(ka)),me.noLib||Gh(ka),nn.set(ka.path,!1),Iv(ka)):ka&&nn.get(ka.path)&&SrYn(void 0,dn,x.Cannot_read_file_0_Colon_1,[dt,ka]),pr);if(qn){let ka=cA(qn),lp=Ls.get(ka);if(lp){let Hh=br(lp,as,dt,oi,_r(dt),sa,Po);return Cn.add(lp.path,dt),Uc(Hh,oi,dt,os),tl(Hh,dn,!1),yc.set(oi,nre(qn)),Fe.push(Hh),Hh}else as&&(Ls.set(ka,as),yc.set(oi,nre(qn)))}if(Uc(as,oi,dt,os),as){if(Nn.set(oi,Sr>0),as.fileName=dt,as.path=oi,as.resolvedPath=_r(dt),as.originalFileName=sa,as.packageJsonLocations=($n=Po.packageJsonLocations)!=null&&$n.length?Po.packageJsonLocations:void 0,as.packageJsonScope=Po.packageJsonScope,tl(as,dn,!1),$t.useCaseSensitiveFileNames()){let ka=lb(oi),lp=Ee.get(ka);lp?rt(dt,lp,dn):Ee.set(ka,as)}Qn=Qn||as.hasNoDefaultLib&&!Tr,me.noResolve||(uf(as,Lt),Hg(as)),me.noLib||Gh(as),Iv(as),Lt?Ae.push(as):Fe.push(as),(je??(je=new Set)).add(as.path)}return as}function tl(dt,Lt,Tr){return dt&&(!Tr||!MA(Lt)||!je?.has(Lt.file))?(Ve.getFileReasons().add(dt.path,Lt),!0):!1}function Uc(dt,Lt,Tr,dn){dn?(nd(Tr,dn,dt),nd(Tr,Lt,dt||!1)):nd(Tr,Lt,dt)}function nd(dt,Lt,Tr){Dt.set(Lt,Tr),Tr!==void 0?ur.delete(Lt):ur.set(Lt,dt)}function Mu(dt){return et?.get(_r(dt))}function Dp(dt){return dge(Bt,dt)}function Kp(dt){return Ct?.get(dt)}function vy(dt){return Ot&&!!Mu(dt)}function If(dt){if(ye)return ye.get(dt)||void 0}function uf(dt,Lt){X(dt.referencedFiles,(Tr,dn)=>{yy(C0e(Tr.fileName,dt.fileName),Lt,!1,void 0,{kind:4,file:dt.path,index:dn})})}function Hg(dt){let Lt=dt.typeReferenceDirectives;if(!Lt.length)return;let Tr=We?.get(dt.path)||lr(Lt,dt),dn=OL();(Qe??(Qe=new Map)).set(dt.path,dn);for(let qn=0;qn{let dn=_ge(Lt);dn?xc(Wx(dn),!0,!0,{kind:7,file:dt.path,index:Tr}):Ve.addFileProcessingDiagnostic({kind:0,reason:{kind:7,file:dt.path,index:Tr}})})}function Nd(dt){return $t.getCanonicalFileName(dt)}function Iv(dt){if(xu(dt),dt.imports.length||dt.moduleAugmentations.length){let Lt=X_t(dt),Tr=tt?.get(dt.path)||tn(Lt,dt);$.assert(Tr.length===Lt.length);let dn=Ym(dt),qn=OL();(Se??(Se=new Map)).set(dt.path,qn);for(let Fi=0;FiKt,Hh=ka&&!j0e(dn,$n,dt)&&!dn.noResolve&&FiS3($n.commandLine,!$t.useCaseSensitiveFileNames()));qn.fileNames.forEach(os=>{let Po=_r(os),as;!sf(os)&&!Au(os,".json")&&(qn.options.outFile?as=oi:(as=Mz(os,$n.commandLine,!$t.useCaseSensitiveFileNames(),sa),Ct.set(_r(as),{resolvedRef:$n,source:os}))),et.set(Po,{resolvedRef:$n,outputDts:as})})}return qn.projectReferences&&($n.references=qn.projectReferences.map(US)),$n}function xe(){me.strictPropertyInitialization&&!rm(me,"strictNullChecks")&&it(x.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),me.exactOptionalPropertyTypes&&!rm(me,"strictNullChecks")&&it(x.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(me.isolatedModules||me.verbatimModuleSyntax)&&me.outFile&&it(x.Option_0_cannot_be_specified_with_option_1,"outFile",me.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),me.isolatedDeclarations&&(fC(me)&&it(x.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),fg(me)||it(x.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite")),me.inlineSourceMap&&(me.sourceMap&&it(x.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),me.mapRoot&&it(x.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),me.composite&&(me.declaration===!1&&it(x.Composite_projects_may_not_disable_declaration_emit,"declaration"),me.incremental===!1&&it(x.Composite_projects_may_not_disable_incremental_compilation,"declaration"));let dt=me.outFile;if(!me.tsBuildInfoFile&&me.incremental&&!dt&&!me.configFilePath&&Ve.addConfigDiagnostic(bp(x.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),Mr(),fo(),me.composite){let $n=new Set(_e.map(_r));for(let oi of Be)sP(oi,xr)&&!$n.has(oi.path)&&Ve.addLazyConfigDiagnostic(oi,x.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,oi.fileName,me.configFilePath||"")}if(me.paths){for(let $n in me.paths)if(Ho(me.paths,$n))if(Uhe($n)||Ea(!0,$n,x.Pattern_0_can_have_at_most_one_Asterisk_character,$n),Zn(me.paths[$n])){let oi=me.paths[$n].length;oi===0&&Ea(!1,$n,x.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,$n);for(let sa=0;sayd($n)&&!$n.isDeclarationFile);if(me.isolatedModules||me.verbatimModuleSyntax)me.module===0&&Lt<2&&me.isolatedModules&&it(x.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),me.preserveConstEnums===!1&&it(x.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,me.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Tr&&Lt<2&&me.module===0){let $n=$4(Tr,typeof Tr.externalModuleIndicator=="boolean"?Tr:Tr.externalModuleIndicator);Ve.addConfigDiagnostic(md(Tr,$n.start,$n.length,x.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(dt&&!me.emitDeclarationOnly){if(me.module&&!(me.module===2||me.module===4))it(x.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(me.module===void 0&&Tr){let $n=$4(Tr,typeof Tr.externalModuleIndicator=="boolean"?Tr:Tr.externalModuleIndicator);Ve.addConfigDiagnostic(md(Tr,$n.start,$n.length,x.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}}if(_P(me)&&(km(me)===1?it(x.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):ane(me)||it(x.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),me.outDir||me.rootDir||me.sourceRoot||me.mapRoot||fg(me)&&me.declarationDir){let $n=wr();me.outDir&&$n===""&&Be.some(oi=>Fy(oi.fileName)>1)&&it(x.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}me.checkJs&&!fC(me)&&it(x.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"),me.emitDeclarationOnly&&(fg(me)||it(x.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite")),me.emitDecoratorMetadata&&!me.experimentalDecorators&&it(x.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),me.jsxFactory?(me.reactNamespace&&it(x.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(me.jsx===4||me.jsx===5)&&it(x.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",eK.get(""+me.jsx)),AF(me.jsxFactory,Lt)||cr("jsxFactory",x.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,me.jsxFactory)):me.reactNamespace&&!Jd(me.reactNamespace,Lt)&&cr("reactNamespace",x.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,me.reactNamespace),me.jsxFragmentFactory&&(me.jsxFactory||it(x.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(me.jsx===4||me.jsx===5)&&it(x.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",eK.get(""+me.jsx)),AF(me.jsxFragmentFactory,Lt)||cr("jsxFragmentFactory",x.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,me.jsxFragmentFactory)),me.reactNamespace&&(me.jsx===4||me.jsx===5)&&it(x.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",eK.get(""+me.jsx)),me.jsxImportSource&&me.jsx===2&&it(x.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",eK.get(""+me.jsx));let dn=Km(me);me.verbatimModuleSyntax&&(dn===2||dn===3||dn===4)&&it(x.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),me.allowImportingTsExtensions&&!(me.noEmit||me.emitDeclarationOnly||me.rewriteRelativeImportExtensions)&&cr("allowImportingTsExtensions",x.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let qn=km(me);if(me.resolvePackageJsonExports&&!sL(qn)&&it(x.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),me.resolvePackageJsonImports&&!sL(qn)&&it(x.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),me.customConditions&&!sL(qn)&&it(x.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),qn===100&&!gH(dn)&&dn!==200&&cr("moduleResolution",x.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),tE[dn]&&100<=dn&&dn<=199&&!(3<=qn&&qn<=99)){let $n=tE[dn],oi=zk[$n]?$n:"Node16";cr("moduleResolution",x.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,oi,$n)}else if(zk[qn]&&3<=qn&&qn<=99&&!(100<=dn&&dn<=199)){let $n=zk[qn];cr("module",x.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,$n,$n)}if(!me.noEmit&&!me.suppressOutputPathCheck){let $n=$r(),oi=new Set;f0e($n,sa=>{me.emitDeclarationOnly||Fi(sa.jsFilePath,oi),Fi(sa.declarationFilePath,oi)})}function Fi($n,oi){if($n){let sa=_r($n);if(Dt.has(sa)){let Po;me.configFilePath||(Po=ws(void 0,x.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),Po=ws(Po,x.Cannot_write_file_0_because_it_would_overwrite_input_file,$n),Cc($n,nne(Po))}let os=$t.useCaseSensitiveFileNames()?sa:lb(sa);oi.has(os)?Cc($n,bp(x.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,$n)):oi.add(os)}}}function Ft(){let dt=me.ignoreDeprecations;if(dt){if(dt==="5.0")return new Iy(dt);Ce()}return Iy.zero}function Nr(dt,Lt,Tr,dn){let qn=new Iy(dt),Fi=new Iy(Lt),$n=new Iy(be||A),oi=Ft(),sa=Fi.compareTo($n)!==1,os=!sa&&oi.compareTo(qn)===-1;(sa||os)&&dn((Po,as,ka)=>{sa?as===void 0?Tr(Po,as,ka,x.Option_0_has_been_removed_Please_remove_it_from_your_configuration,Po):Tr(Po,as,ka,x.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,Po,as):as===void 0?Tr(Po,as,ka,x.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,Po,Lt,dt):Tr(Po,as,ka,x.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,Po,as,Lt,dt)})}function Mr(){function dt(Lt,Tr,dn,qn,...Fi){if(dn){let $n=ws(void 0,x.Use_0_instead,dn),oi=ws($n,qn,...Fi);Ka(!Tr,Lt,void 0,oi)}else Ka(!Tr,Lt,void 0,qn,...Fi)}Nr("5.0","5.5",dt,Lt=>{me.target===0&&Lt("target","ES3"),me.noImplicitUseStrict&&Lt("noImplicitUseStrict"),me.keyofStringsOnly&&Lt("keyofStringsOnly"),me.suppressExcessPropertyErrors&&Lt("suppressExcessPropertyErrors"),me.suppressImplicitAnyIndexErrors&&Lt("suppressImplicitAnyIndexErrors"),me.noStrictGenericChecks&&Lt("noStrictGenericChecks"),me.charset&&Lt("charset"),me.out&&Lt("out",void 0,"outFile"),me.importsNotUsedAsValues&&Lt("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),me.preserveValueImports&&Lt("preserveValueImports",void 0,"verbatimModuleSyntax")})}function wn(dt,Lt,Tr){function dn(qn,Fi,$n,oi,...sa){In(Lt,Tr,oi,...sa)}Nr("5.0","5.5",dn,qn=>{dt.prepend&&qn("prepend")})}function Yn(dt,Lt,Tr,dn){Ve.addFileProcessingDiagnostic({kind:1,file:dt&&dt.path,fileProcessingReason:Lt,diagnostic:Tr,args:dn})}function fo(){let dt=me.suppressOutputPathCheck?void 0:LA(me);tz(Oe,Bt,(Lt,Tr,dn)=>{let qn=(Tr?Tr.commandLine.projectReferences:Oe)[dn],Fi=Tr&&Tr.sourceFile;if(wn(qn,Fi,dn),!Lt){In(Fi,dn,x.File_0_not_found,qn.path);return}let $n=Lt.commandLine.options;(!$n.composite||$n.noEmit)&&(Tr?Tr.commandLine.fileNames:_e).length&&($n.composite||In(Fi,dn,x.Referenced_project_0_must_have_setting_composite_Colon_true,qn.path),$n.noEmit&&In(Fi,dn,x.Referenced_project_0_may_not_disable_emit,qn.path)),!Tr&&dt&&dt===LA($n)&&(In(Fi,dn,x.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,dt,qn.path),Oi.set(_r(dt),!0))})}function Mo(dt,Lt,Tr,...dn){let qn=!0;ee(Fi=>{Lc(Fi.initializer)&&JR(Fi.initializer,dt,$n=>{let oi=$n.initializer;qf(oi)&&oi.elements.length>Lt&&(Ve.addConfigDiagnostic(m0(me.configFile,oi.elements[Lt],Tr,...dn)),qn=!1)})}),qn&&Ws(Tr,...dn)}function Ea(dt,Lt,Tr,...dn){let qn=!0;ee(Fi=>{Lc(Fi.initializer)&&cp(Fi.initializer,dt,Lt,void 0,Tr,...dn)&&(qn=!1)}),qn&&Ws(Tr,...dn)}function ee(dt){return mge(Xa(),"paths",dt)}function it(dt,Lt,Tr,dn){Ka(!0,Lt,Tr,dt,Lt,Tr,dn)}function cr(dt,Lt,...Tr){Ka(!1,dt,void 0,Lt,...Tr)}function In(dt,Lt,Tr,...dn){let qn=wG(dt||me.configFile,"references",Fi=>qf(Fi.initializer)?Fi.initializer:void 0);qn&&qn.elements.length>Lt?Ve.addConfigDiagnostic(m0(dt||me.configFile,qn.elements[Lt],Tr,...dn)):Ve.addConfigDiagnostic(bp(Tr,...dn))}function Ka(dt,Lt,Tr,dn,...qn){let Fi=Xa();(!Fi||!cp(Fi,dt,Lt,Tr,dn,...qn))&&Ws(dn,...qn)}function Ws(dt,...Lt){let Tr=ks();Tr?"messageText"in dt?Ve.addConfigDiagnostic(Nx(me.configFile,Tr.name,dt)):Ve.addConfigDiagnostic(m0(me.configFile,Tr.name,dt,...Lt)):"messageText"in dt?Ve.addConfigDiagnostic(nne(dt)):Ve.addConfigDiagnostic(bp(dt,...Lt))}function Xa(){if($o===void 0){let dt=ks();$o=dt&&Ci(dt.initializer,Lc)||!1}return $o||void 0}function ks(){return ft===void 0&&(ft=JR(fU(me.configFile),"compilerOptions",vl)||!1),ft||void 0}function cp(dt,Lt,Tr,dn,qn,...Fi){let $n=!1;return JR(dt,Tr,oi=>{"messageText"in qn?Ve.addConfigDiagnostic(Nx(me.configFile,Lt?oi.name:oi.initializer,qn)):Ve.addConfigDiagnostic(m0(me.configFile,Lt?oi.name:oi.initializer,qn,...Fi)),$n=!0},dn),$n}function Cc(dt,Lt){Oi.set(_r(dt),!0),Ve.addConfigDiagnostic(Lt)}function pf(dt){if(me.noEmit)return!1;let Lt=_r(dt);if(kc(Lt))return!1;let Tr=me.outFile;if(Tr)return Kg(Lt,Tr)||Kg(Lt,Qm(Tr)+".d.ts");if(me.declarationDir&&ug(me.declarationDir,Lt,uo,!$t.useCaseSensitiveFileNames()))return!0;if(me.outDir)return ug(me.outDir,Lt,uo,!$t.useCaseSensitiveFileNames());if(_p(Lt,cL)||sf(Lt)){let dn=Qm(Lt);return!!kc(dn+".ts")||!!kc(dn+".tsx")}return!1}function Kg(dt,Lt){return M1(dt,Lt,uo,!$t.useCaseSensitiveFileNames())===0}function Ky(){return $t.getSymlinkCache?$t.getSymlinkCache():(de||(de=zhe(uo,Nd)),Be&&!de.hasProcessedResolutions()&&de.setSymlinksFromResolutions(Y,ot,It),de)}function A0(dt,Lt){return Zie(dt,Lt,Ym(dt))}function r2(dt,Lt){return G_t(dt,Lt,Ym(dt))}function PE(dt,Lt){return A0(dt,IK(dt,Lt))}function vh(dt){return roe(dt,Ym(dt))}function Nb(dt){return b3(dt,Ym(dt))}function Pv(dt){return zz(dt,Ym(dt))}function d1(dt){return Z_t(dt,Ym(dt))}function OC(dt,Lt){return dt.resolutionMode||vh(Lt)}}function Z_t(t,n){let a=Km(n);return 100<=a&&a<=199||a===200?!1:zz(t,n)<5}function zz(t,n){return b3(t,n)??Km(n)}function b3(t,n){var a,c;let u=Km(n);if(100<=u&&u<=199)return t.impliedNodeFormat;if(t.impliedNodeFormat===1&&(((a=t.packageJsonScope)==null?void 0:a.contents.packageJsonContent.type)==="commonjs"||_p(t.fileName,[".cjs",".cts"])))return 1;if(t.impliedNodeFormat===99&&(((c=t.packageJsonScope)==null?void 0:c.contents.packageJsonContent.type)==="module"||_p(t.fileName,[".mjs",".mts"])))return 99}function roe(t,n){return Bhe(n)?b3(t,n):void 0}function zsr(t){let n,a=t.compilerHost.fileExists,c=t.compilerHost.directoryExists,u=t.compilerHost.getDirectories,_=t.compilerHost.realpath;if(!t.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:zs,fileExists:g};t.compilerHost.fileExists=g;let f;return c&&(f=t.compilerHost.directoryExists=F=>c.call(t.compilerHost,F)?(C(F),!0):t.getResolvedProjectReferences()?(n||(n=new Set,t.forEachResolvedProjectReference(M=>{let U=M.commandLine.options.outFile;if(U)n.add(mo(t.toPath(U)));else{let J=M.commandLine.options.declarationDir||M.commandLine.options.outDir;J&&n.add(t.toPath(J))}})),O(F,!1)):!1),u&&(t.compilerHost.getDirectories=F=>!t.getResolvedProjectReferences()||c&&c.call(t.compilerHost,F)?u.call(t.compilerHost,F):[]),_&&(t.compilerHost.realpath=F=>{var M;return((M=t.getSymlinkCache().getSymlinkedFiles())==null?void 0:M.get(t.toPath(F)))||_.call(t.compilerHost,F)}),{onProgramCreateComplete:y,fileExists:g,directoryExists:f};function y(){t.compilerHost.fileExists=a,t.compilerHost.directoryExists=c,t.compilerHost.getDirectories=u}function g(F){return a.call(t.compilerHost,F)?!0:!t.getResolvedProjectReferences()||!sf(F)?!1:O(F,!0)}function k(F){let M=t.getRedirectFromOutput(t.toPath(F));return M!==void 0?Ni(M.source)?a.call(t.compilerHost,M.source):!0:void 0}function T(F){let M=t.toPath(F),U=`${M}${Gl}`;return Ix(n,J=>M===J||Ca(J,U)||Ca(M,`${J}/`))}function C(F){var M;if(!t.getResolvedProjectReferences()||QU(F)||!_||!F.includes(Jx))return;let U=t.getSymlinkCache(),J=r_(t.toPath(F));if((M=U.getSymlinkedDirectories())!=null&&M.has(J))return;let G=Qs(_.call(t.compilerHost,F)),Z;if(G===F||(Z=r_(t.toPath(G)))===J){U.setSymlinkedDirectory(J,!1);return}U.setSymlinkedDirectory(F,{real:r_(G),realPath:Z})}function O(F,M){var U;let J=M?k:T,G=J(F);if(G!==void 0)return G;let Z=t.getSymlinkCache(),Q=Z.getSymlinkedDirectories();if(!Q)return!1;let re=t.toPath(F);return re.includes(Jx)?M&&((U=Z.getSymlinkedFiles())!=null&&U.has(re))?!0:pt(Q.entries(),([ae,_e])=>{if(!_e||!Ca(re,ae))return;let me=J(re.replace(ae,_e.realPath));if(M&&me){let le=za(F,t.compilerHost.getCurrentDirectory());Z.setSymlinkedFile(re,`${_e.real}${le.replace(new RegExp(ae,"i"),"")}`)}return me})||!1:!1}}var L0e={diagnostics:j,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function M0e(t,n,a,c){let u=t.getCompilerOptions();if(u.noEmit)return n?L0e:t.emitBuildInfo(a,c);if(!u.noEmitOnError)return;let _=[...t.getOptionsDiagnostics(c),...t.getSyntacticDiagnostics(n,c),...t.getGlobalDiagnostics(c),...t.getSemanticDiagnostics(n,c)];if(_.length===0&&fg(t.getCompilerOptions())&&(_=t.getDeclarationDiagnostics(void 0,c)),!_.length)return;let f;if(!n){let y=t.emitBuildInfo(a,c);y.diagnostics&&(_=[..._,...y.diagnostics]),f=y.emittedFiles}return{diagnostics:_,sourceMaps:void 0,emittedFiles:f,emitSkipped:!0}}function noe(t,n){return yr(t,a=>!a.skippedOn||!n[a.skippedOn])}function ioe(t,n=t){return{fileExists:a=>n.fileExists(a),readDirectory(a,c,u,_,f){return $.assertIsDefined(n.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),n.readDirectory(a,c,u,_,f)},readFile:a=>n.readFile(a),directoryExists:ja(n,n.directoryExists),getDirectories:ja(n,n.getDirectories),realpath:ja(n,n.realpath),useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:()=>t.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||Sx,trace:t.trace?a=>t.trace(a):void 0}}function RF(t){return d1e(t.path)}function j0e(t,{extension:n},{isDeclarationFile:a}){switch(n){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return c();case".jsx":return c()||u();case".js":case".mjs":case".cjs":return u();case".json":return _();default:return f()}function c(){return t.jsx?void 0:x.Module_0_was_resolved_to_1_but_jsx_is_not_set}function u(){return fC(t)||!rm(t,"noImplicitAny")?void 0:x.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function _(){return _P(t)?void 0:x.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function f(){return a||t.allowArbitraryExtensions?void 0:x.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function X_t({imports:t,moduleAugmentations:n}){let a=t.map(c=>c);for(let c of n)c.kind===11&&a.push(c);return a}function IK({imports:t,moduleAugmentations:n},a){if(an.add(M)),c?.forEach(M=>{switch(M.kind){case 1:return n.add(T(F,M.file&&F.getSourceFileByPath(M.file),M.fileProcessingReason,M.diagnostic,M.args||j));case 0:return n.add(k(F,M));case 2:return M.diagnostics.forEach(U=>n.add(U));default:$.assertNever(M)}}),f?.forEach(({file:M,diagnostic:U,args:J})=>n.add(T(F,M,void 0,U,J))),y=void 0,g=void 0,n)}};function k(F,{reason:M}){let{file:U,pos:J,end:G}=Uz(F,M),Z=U.libReferenceDirectives[M.index],Q=pge(Z),re=Lk(Mk(Q,"lib."),".d.ts"),ae=xx(re,cie,vl);return md(U,$.checkDefined(J),$.checkDefined(G)-J,ae?x.Cannot_find_lib_definition_for_0_Did_you_mean_1:x.Cannot_find_lib_definition_for_0,Q,ae)}function T(F,M,U,J,G){let Z,Q,re,ae,_e,me,le=M&&a.get(M.path),Oe=MA(U)?U:void 0,be=M&&y?.get(M.path);be?(be.fileIncludeReasonDetails?(Z=new Set(le),le?.forEach(Ae)):le?.forEach(Ce),_e=be.redirectInfo):(le?.forEach(Ce),_e=M&&t1e(M,F.getCompilerOptionsForFile(M))),U&&Ce(U);let ue=Z?.size!==le?.length;Oe&&Z?.size===1&&(Z=void 0),Z&&be&&(be.details&&!ue?me=ws(be.details,J,...G??j):be.fileIncludeReasonDetails&&(ue?Fe()?Q=jt(be.fileIncludeReasonDetails.next.slice(0,le.length),Q[0]):Q=[...be.fileIncludeReasonDetails.next,Q[0]]:Fe()?Q=be.fileIncludeReasonDetails.next.slice(0,le.length):ae=be.fileIncludeReasonDetails)),me||(ae||(ae=Z&&ws(Q,x.The_file_is_in_the_program_because_Colon)),me=ws(_e?ae?[ae,..._e]:_e:ae,J,...G||j)),M&&(be?(!be.fileIncludeReasonDetails||!ue&&ae)&&(be.fileIncludeReasonDetails=ae):(y??(y=new Map)).set(M.path,be={fileIncludeReasonDetails:ae,redirectInfo:_e}),!be.details&&!ue&&(be.details=me.next));let De=Oe&&Uz(F,Oe);return De&&UL(De)?ure(De.file,De.pos,De.end-De.pos,me,re):nne(me,re);function Ce(Be){Z?.has(Be)||((Z??(Z=new Set)).add(Be),(Q??(Q=[])).push(i1e(F,Be)),Ae(Be))}function Ae(Be){!Oe&&MA(Be)?Oe=Be:Oe!==Be&&(re=jt(re,C(F,Be)))}function Fe(){var Be;return((Be=be.fileIncludeReasonDetails.next)==null?void 0:Be.length)!==le?.length}}function C(F,M){let U=g?.get(M);return U===void 0&&(g??(g=new Map)).set(M,U=O(F,M)??!1),U||void 0}function O(F,M){if(MA(M)){let re=Uz(F,M),ae;switch(M.kind){case 3:ae=x.File_is_included_via_import_here;break;case 4:ae=x.File_is_included_via_reference_here;break;case 5:ae=x.File_is_included_via_type_library_reference_here;break;case 7:ae=x.File_is_included_via_library_reference_here;break;default:$.assertNever(M)}return UL(re)?md(re.file,re.pos,re.end-re.pos,ae):void 0}let U=F.getCurrentDirectory(),J=F.getRootFileNames(),G=F.getCompilerOptions();if(!G.configFile)return;let Z,Q;switch(M.kind){case 0:if(!G.configFile.configFileSpecs)return;let re=za(J[M.index],U),ae=r1e(F,re);if(ae){Z=hre(G.configFile,"files",ae),Q=x.File_is_matched_by_files_list_specified_here;break}let _e=n1e(F,re);if(!_e||!Ni(_e))return;Z=hre(G.configFile,"include",_e),Q=x.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let me=F.getResolvedProjectReferences(),le=F.getProjectReferences(),Oe=$.checkDefined(me?.[M.index]),be=tz(le,me,(Fe,Be,de)=>Fe===Oe?{sourceFile:Be?.sourceFile||G.configFile,index:de}:void 0);if(!be)return;let{sourceFile:ue,index:De}=be,Ce=wG(ue,"references",Fe=>qf(Fe.initializer)?Fe.initializer:void 0);return Ce&&Ce.elements.length>De?m0(ue,Ce.elements[De],M.kind===2?x.File_is_output_from_referenced_project_specified_here:x.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!G.types)return;Z=fge(t(),"types",M.typeReference),Q=x.File_is_entry_point_of_type_library_specified_here;break;case 6:if(M.index!==void 0){Z=fge(t(),"lib",G.lib[M.index]),Q=x.File_is_library_specified_here;break}let Ae=sne($c(G));Z=Ae?u3e(t(),"target",Ae):void 0,Q=x.File_is_default_library_for_target_specified_here;break;default:$.assertNever(M)}return Z&&m0(G.configFile,Z,Q)}}function jOe(t,n,a,c,u,_){let f=[],{emitSkipped:y,diagnostics:g}=t.emit(n,k,c,a,u,_);return{outputFiles:f,emitSkipped:y,diagnostics:g};function k(T,C,O){f.push({name:T,writeByteOrderMark:O,text:C})}}var BOe=(t=>(t[t.ComputedDts=0]="ComputedDts",t[t.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",t[t.UsedVersion=2]="UsedVersion",t))(BOe||{}),Dv;(t=>{function n(){function be(ue,De,Ce){let Ae={getKeys:Fe=>De.get(Fe),getValues:Fe=>ue.get(Fe),keys:()=>ue.keys(),size:()=>ue.size,deleteKey:Fe=>{(Ce||(Ce=new Set)).add(Fe);let Be=ue.get(Fe);return Be?(Be.forEach(de=>c(De,de,Fe)),ue.delete(Fe),!0):!1},set:(Fe,Be)=>{Ce?.delete(Fe);let de=ue.get(Fe);return ue.set(Fe,Be),de?.forEach(ze=>{Be.has(ze)||c(De,ze,Fe)}),Be.forEach(ze=>{de?.has(ze)||a(De,ze,Fe)}),Ae}};return Ae}return be(new Map,new Map,void 0)}t.createManyToManyPathMap=n;function a(be,ue,De){let Ce=be.get(ue);Ce||(Ce=new Set,be.set(ue,Ce)),Ce.add(De)}function c(be,ue,De){let Ce=be.get(ue);return Ce?.delete(De)?(Ce.size||be.delete(ue),!0):!1}function u(be){return Wn(be.declarations,ue=>{var De;return(De=Pn(ue))==null?void 0:De.resolvedPath})}function _(be,ue){let De=be.getSymbolAtLocation(ue);return De&&u(De)}function f(be,ue,De,Ce){var Ae;return wl(((Ae=be.getRedirectFromSourceFile(ue))==null?void 0:Ae.outputDts)||ue,De,Ce)}function y(be,ue,De){let Ce;if(ue.imports&&ue.imports.length>0){let de=be.getTypeChecker();for(let ze of ue.imports){let ut=_(de,ze);ut?.forEach(Be)}}let Ae=mo(ue.resolvedPath);if(ue.referencedFiles&&ue.referencedFiles.length>0)for(let de of ue.referencedFiles){let ze=f(be,de.fileName,Ae,De);Be(ze)}if(be.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:de})=>{if(!de)return;let ze=de.resolvedFileName,ut=f(be,ze,Ae,De);Be(ut)},ue),ue.moduleAugmentations.length){let de=be.getTypeChecker();for(let ze of ue.moduleAugmentations){if(!Ic(ze))continue;let ut=de.getSymbolAtLocation(ze);ut&&Fe(ut)}}for(let de of be.getTypeChecker().getAmbientModules())de.declarations&&de.declarations.length>1&&Fe(de);return Ce;function Fe(de){if(de.declarations)for(let ze of de.declarations){let ut=Pn(ze);ut&&ut!==ue&&Be(ut.resolvedPath)}}function Be(de){(Ce||(Ce=new Set)).add(de)}}function g(be,ue){return ue&&!ue.referencedMap==!be}t.canReuseOldState=g;function k(be){return be.module!==0&&!be.outFile?n():void 0}t.createReferencedMap=k;function T(be,ue,De){var Ce,Ae;let Fe=new Map,Be=be.getCompilerOptions(),de=k(Be),ze=g(de,ue);be.getTypeChecker();for(let ut of be.getSourceFiles()){let je=$.checkDefined(ut.version,"Program intended to be used with Builder should have source files with versions set"),ve=ze?(Ce=ue.oldSignatures)==null?void 0:Ce.get(ut.resolvedPath):void 0,Le=ve===void 0?ze?(Ae=ue.fileInfos.get(ut.resolvedPath))==null?void 0:Ae.signature:void 0:ve||void 0;if(de){let Ve=y(be,ut,be.getCanonicalFileName);Ve&&de.set(ut.resolvedPath,Ve)}Fe.set(ut.resolvedPath,{version:je,signature:Le,affectsGlobalScope:Be.outFile?void 0:_e(ut)||void 0,impliedFormat:ut.impliedNodeFormat})}return{fileInfos:Fe,referencedMap:de,useFileVersionAsSignature:!De&&!ze}}t.create=T;function C(be){be.allFilesExcludingDefaultLibraryFile=void 0,be.allFileNames=void 0}t.releaseCache=C;function O(be,ue,De,Ce,Ae){var Fe;let Be=F(be,ue,De,Ce,Ae);return(Fe=be.oldSignatures)==null||Fe.clear(),Be}t.getFilesAffectedBy=O;function F(be,ue,De,Ce,Ae){let Fe=ue.getSourceFileByPath(De);return Fe?J(be,ue,Fe,Ce,Ae)?(be.referencedMap?Oe:le)(be,ue,Fe,Ce,Ae):[Fe]:j}t.getFilesAffectedByWithOldState=F;function M(be,ue,De){be.fileInfos.get(De).signature=ue,(be.hasCalledUpdateShapeSignature||(be.hasCalledUpdateShapeSignature=new Set)).add(De)}t.updateSignatureOfFile=M;function U(be,ue,De,Ce,Ae){be.emit(ue,(Fe,Be,de,ze,ut,je)=>{$.assert(sf(Fe),`File extension for signature expected to be dts: Got:: ${Fe}`),Ae(U0e(be,ue,Be,Ce,je),ut)},De,2,void 0,!0)}t.computeDtsSignature=U;function J(be,ue,De,Ce,Ae,Fe=be.useFileVersionAsSignature){var Be;if((Be=be.hasCalledUpdateShapeSignature)!=null&&Be.has(De.resolvedPath))return!1;let de=be.fileInfos.get(De.resolvedPath),ze=de.signature,ut;return!De.isDeclarationFile&&!Fe&&U(ue,De,Ce,Ae,je=>{ut=je,Ae.storeSignatureInfo&&(be.signatureInfo??(be.signatureInfo=new Map)).set(De.resolvedPath,0)}),ut===void 0&&(ut=De.version,Ae.storeSignatureInfo&&(be.signatureInfo??(be.signatureInfo=new Map)).set(De.resolvedPath,2)),(be.oldSignatures||(be.oldSignatures=new Map)).set(De.resolvedPath,ze||!1),(be.hasCalledUpdateShapeSignature||(be.hasCalledUpdateShapeSignature=new Set)).add(De.resolvedPath),de.signature=ut,ut!==ze}t.updateShapeSignature=J;function G(be,ue,De){if(ue.getCompilerOptions().outFile||!be.referencedMap||_e(De))return Z(be,ue);let Ae=new Set,Fe=[De.resolvedPath];for(;Fe.length;){let Be=Fe.pop();if(!Ae.has(Be)){Ae.add(Be);let de=be.referencedMap.getValues(Be);if(de)for(let ze of de.keys())Fe.push(ze)}}return so(Na(Ae.keys(),Be=>{var de;return((de=ue.getSourceFileByPath(Be))==null?void 0:de.fileName)??Be}))}t.getAllDependencies=G;function Z(be,ue){if(!be.allFileNames){let De=ue.getSourceFiles();be.allFileNames=De===j?j:De.map(Ce=>Ce.fileName)}return be.allFileNames}function Q(be,ue){let De=be.referencedMap.getKeys(ue);return De?so(De.keys()):[]}t.getReferencedByPaths=Q;function re(be){for(let ue of be.statements)if(!sre(ue))return!1;return!0}function ae(be){return Pt(be.moduleAugmentations,ue=>xb(ue.parent))}function _e(be){return ae(be)||!Lg(be)&&!h0(be)&&!re(be)}function me(be,ue,De){if(be.allFilesExcludingDefaultLibraryFile)return be.allFilesExcludingDefaultLibraryFile;let Ce;De&&Ae(De);for(let Fe of ue.getSourceFiles())Fe!==De&&Ae(Fe);return be.allFilesExcludingDefaultLibraryFile=Ce||j,be.allFilesExcludingDefaultLibraryFile;function Ae(Fe){ue.isSourceFileDefaultLibrary(Fe)||(Ce||(Ce=[])).push(Fe)}}t.getAllFilesExcludingDefaultLibraryFile=me;function le(be,ue,De){let Ce=ue.getCompilerOptions();return Ce&&Ce.outFile?[De]:me(be,ue,De)}function Oe(be,ue,De,Ce,Ae){if(_e(De))return me(be,ue,De);let Fe=ue.getCompilerOptions();if(Fe&&(a1(Fe)||Fe.outFile))return[De];let Be=new Map;Be.set(De.resolvedPath,De);let de=Q(be,De.resolvedPath);for(;de.length>0;){let ze=de.pop();if(!Be.has(ze)){let ut=ue.getSourceFileByPath(ze);Be.set(ze,ut),ut&&J(be,ue,ut,Ce,Ae)&&de.push(...Q(be,ut.resolvedPath))}}return so(Na(Be.values(),ze=>ze))}})(Dv||(Dv={}));var $Oe=(t=>(t[t.None=0]="None",t[t.Js=1]="Js",t[t.JsMap=2]="JsMap",t[t.JsInlineMap=4]="JsInlineMap",t[t.DtsErrors=8]="DtsErrors",t[t.DtsEmit=16]="DtsEmit",t[t.DtsMap=32]="DtsMap",t[t.Dts=24]="Dts",t[t.AllJs=7]="AllJs",t[t.AllDtsEmit=48]="AllDtsEmit",t[t.AllDts=56]="AllDts",t[t.All=63]="All",t))($Oe||{});function zL(t){return t.program!==void 0}function qsr(t){return $.assert(zL(t)),t}function AC(t){let n=1;return t.sourceMap&&(n=n|2),t.inlineSourceMap&&(n=n|4),fg(t)&&(n=n|24),t.declarationMap&&(n=n|32),t.emitDeclarationOnly&&(n=n&56),n}function ooe(t,n){let a=n&&(Kn(n)?n:AC(n)),c=Kn(t)?t:AC(t);if(a===c)return 0;if(!a||!c)return c;let u=a^c,_=0;return u&7&&(_=c&7),u&8&&(_=_|c&8),u&48&&(_=_|c&48),_}function Jsr(t,n){return t===n||t!==void 0&&n!==void 0&&t.size===n.size&&!Ix(t,a=>!n.has(a))}function Vsr(t,n){var a,c;let u=Dv.create(t,n,!1);u.program=t;let _=t.getCompilerOptions();u.compilerOptions=_;let f=_.outFile;u.semanticDiagnosticsPerFile=new Map,f&&_.composite&&n?.outSignature&&f===n.compilerOptions.outFile&&(u.outSignature=n.outSignature&&Y_t(_,n.compilerOptions,n.outSignature)),u.changedFilesSet=new Set,u.latestChangedDtsFile=_.composite?n?.latestChangedDtsFile:void 0,u.checkPending=u.compilerOptions.noCheck?!0:void 0;let y=Dv.canReuseOldState(u.referencedMap,n),g=y?n.compilerOptions:void 0,k=y&&!O4e(_,g),T=_.composite&&n?.emitSignatures&&!f&&!R4e(_,n.compilerOptions),C=!0;y?((a=n.changedFilesSet)==null||a.forEach(G=>u.changedFilesSet.add(G)),!f&&((c=n.affectedFilesPendingEmit)!=null&&c.size)&&(u.affectedFilesPendingEmit=new Map(n.affectedFilesPendingEmit),u.seenAffectedFiles=new Set),u.programEmitPending=n.programEmitPending,f&&u.changedFilesSet.size&&(k=!1,C=!1),u.hasErrorsFromOldState=n.hasErrors):u.buildInfoEmitPending=dP(_);let O=u.referencedMap,F=y?n.referencedMap:void 0,M=k&&!_.skipLibCheck==!g.skipLibCheck,U=M&&!_.skipDefaultLibCheck==!g.skipDefaultLibCheck;if(u.fileInfos.forEach((G,Z)=>{var Q;let re,ae;if(!y||!(re=n.fileInfos.get(Z))||re.version!==G.version||re.impliedFormat!==G.impliedFormat||!Jsr(ae=O&&O.getValues(Z),F&&F.getValues(Z))||ae&&Ix(ae,_e=>!u.fileInfos.has(_e)&&n.fileInfos.has(_e)))J(Z);else{let _e=t.getSourceFileByPath(Z),me=C?(Q=n.emitDiagnosticsPerFile)==null?void 0:Q.get(Z):void 0;if(me&&(u.emitDiagnosticsPerFile??(u.emitDiagnosticsPerFile=new Map)).set(Z,n.hasReusableDiagnostic?tdt(me,Z,t):edt(me,t)),k){if(_e.isDeclarationFile&&!M||_e.hasNoDefaultLib&&!U)return;let le=n.semanticDiagnosticsPerFile.get(Z);le&&(u.semanticDiagnosticsPerFile.set(Z,n.hasReusableDiagnostic?tdt(le,Z,t):edt(le,t)),(u.semanticDiagnosticsFromOldState??(u.semanticDiagnosticsFromOldState=new Set)).add(Z))}}if(T){let _e=n.emitSignatures.get(Z);_e&&(u.emitSignatures??(u.emitSignatures=new Map)).set(Z,Y_t(_,n.compilerOptions,_e))}}),y&&Ad(n.fileInfos,(G,Z)=>u.fileInfos.has(Z)?!1:G.affectsGlobalScope?!0:(u.buildInfoEmitPending=!0,!!f)))Dv.getAllFilesExcludingDefaultLibraryFile(u,t,void 0).forEach(G=>J(G.resolvedPath));else if(g){let G=F4e(_,g)?AC(_):ooe(_,g);G!==0&&(f?u.changedFilesSet.size||(u.programEmitPending=u.programEmitPending?u.programEmitPending|G:G):(t.getSourceFiles().forEach(Z=>{u.changedFilesSet.has(Z.resolvedPath)||q0e(u,Z.resolvedPath,G)}),$.assert(!u.seenAffectedFiles||!u.seenAffectedFiles.size),u.seenAffectedFiles=u.seenAffectedFiles||new Set),u.buildInfoEmitPending=!0)}return y&&u.semanticDiagnosticsPerFile.size!==u.fileInfos.size&&n.checkPending!==u.checkPending&&(u.buildInfoEmitPending=!0),u;function J(G){u.changedFilesSet.add(G),f&&(k=!1,C=!1,u.semanticDiagnosticsFromOldState=void 0,u.semanticDiagnosticsPerFile.clear(),u.emitDiagnosticsPerFile=void 0),u.buildInfoEmitPending=!0,u.programEmitPending=void 0}}function Y_t(t,n,a){return!!t.declarationMap==!!n.declarationMap?a:Ni(a)?[a]:a[0]}function edt(t,n){return t.length?Zo(t,a=>{if(Ni(a.messageText))return a;let c=UOe(a.messageText,a.file,n,u=>{var _;return(_=u.repopulateInfo)==null?void 0:_.call(u)});return c===a.messageText?a:{...a,messageText:c}}):t}function UOe(t,n,a,c){let u=c(t);if(u===!0)return{...yme(n),next:zOe(t.next,n,a,c)};if(u)return{...rre(n,a,u.moduleReference,u.mode,u.packageName||u.moduleReference),next:zOe(t.next,n,a,c)};let _=zOe(t.next,n,a,c);return _===t.next?t:{...t,next:_}}function zOe(t,n,a,c){return Zo(t,u=>UOe(u,n,a,c))}function tdt(t,n,a){if(!t.length)return j;let c;return t.map(_=>{let f=rdt(_,n,a,u);f.reportsUnnecessary=_.reportsUnnecessary,f.reportsDeprecated=_.reportDeprecated,f.source=_.source,f.skippedOn=_.skippedOn;let{relatedInformation:y}=_;return f.relatedInformation=y?y.length?y.map(g=>rdt(g,n,a,u)):[]:void 0,f});function u(_){return c??(c=mo(za(LA(a.getCompilerOptions()),a.getCurrentDirectory()))),wl(_,c,a.getCanonicalFileName)}}function rdt(t,n,a,c){let{file:u}=t,_=u!==!1?a.getSourceFileByPath(u?c(u):n):void 0;return{...t,file:_,messageText:Ni(t.messageText)?t.messageText:UOe(t.messageText,_,a,f=>f.info)}}function Wsr(t){Dv.releaseCache(t),t.program=void 0}function qOe(t,n){$.assert(!n||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==n||!t.semanticDiagnosticsPerFile.has(n.resolvedPath))}function ndt(t,n,a){for(var c;;){let{affectedFiles:u}=t;if(u){let y=t.seenAffectedFiles,g=t.affectedFilesIndex;for(;g{let y=a?_&55:_&7;y?t.affectedFilesPendingEmit.set(f,y):t.affectedFilesPendingEmit.delete(f)}),t.programEmitPending)){let _=a?t.programEmitPending&55:t.programEmitPending&7;_?t.programEmitPending=_:t.programEmitPending=void 0}}function aoe(t,n,a,c){let u=ooe(t,n);return a&&(u=u&56),c&&(u=u&8),u}function B0e(t){return t?8:56}function Gsr(t,n,a){var c;if((c=t.affectedFilesPendingEmit)!=null&&c.size)return Ad(t.affectedFilesPendingEmit,(u,_)=>{var f;let y=t.program.getSourceFileByPath(_);if(!y||!sP(y,t.program)){t.affectedFilesPendingEmit.delete(_);return}let g=(f=t.seenEmittedFiles)==null?void 0:f.get(y.resolvedPath),k=aoe(u,g,n,a);if(k)return{affectedFile:y,emitKind:k}})}function Hsr(t,n){var a;if((a=t.emitDiagnosticsPerFile)!=null&&a.size)return Ad(t.emitDiagnosticsPerFile,(c,u)=>{var _;let f=t.program.getSourceFileByPath(u);if(!f||!sP(f,t.program)){t.emitDiagnosticsPerFile.delete(u);return}let y=((_=t.seenEmittedFiles)==null?void 0:_.get(f.resolvedPath))||0;if(!(y&B0e(n)))return{affectedFile:f,diagnostics:c,seenKind:y}})}function odt(t){if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;let n=t.program.getCompilerOptions();X(t.program.getSourceFiles(),a=>t.program.isSourceFileDefaultLibrary(a)&&!W4e(a,n,t.program)&&VOe(t,a.resolvedPath))}}function Ksr(t,n,a,c){if(VOe(t,n.resolvedPath),t.allFilesExcludingDefaultLibraryFile===t.affectedFiles){odt(t),Dv.updateShapeSignature(t,t.program,n,a,c);return}t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||Qsr(t,n,a,c)}function JOe(t,n,a,c,u){if(VOe(t,n),!t.changedFilesSet.has(n)){let _=t.program.getSourceFileByPath(n);_&&(Dv.updateShapeSignature(t,t.program,_,c,u,!0),a?q0e(t,n,AC(t.compilerOptions)):fg(t.compilerOptions)&&q0e(t,n,t.compilerOptions.declarationMap?56:24))}}function VOe(t,n){return t.semanticDiagnosticsFromOldState?(t.semanticDiagnosticsFromOldState.delete(n),t.semanticDiagnosticsPerFile.delete(n),!t.semanticDiagnosticsFromOldState.size):!0}function adt(t,n){let a=$.checkDefined(t.oldSignatures).get(n)||void 0;return $.checkDefined(t.fileInfos.get(n)).signature!==a}function WOe(t,n,a,c,u){var _;return(_=t.fileInfos.get(n))!=null&&_.affectsGlobalScope?(Dv.getAllFilesExcludingDefaultLibraryFile(t,t.program,void 0).forEach(f=>JOe(t,f.resolvedPath,a,c,u)),odt(t),!0):!1}function Qsr(t,n,a,c){var u,_;if(!t.referencedMap||!t.changedFilesSet.has(n.resolvedPath)||!adt(t,n.resolvedPath))return;if(a1(t.compilerOptions)){let g=new Map;g.set(n.resolvedPath,!0);let k=Dv.getReferencedByPaths(t,n.resolvedPath);for(;k.length>0;){let T=k.pop();if(!g.has(T)){if(g.set(T,!0),WOe(t,T,!1,a,c))return;if(JOe(t,T,!1,a,c),adt(t,T)){let C=t.program.getSourceFileByPath(T);k.push(...Dv.getReferencedByPaths(t,C.resolvedPath))}}}}let f=new Set,y=!!((u=n.symbol)!=null&&u.exports)&&!!Ad(n.symbol.exports,g=>{if((g.flags&128)!==0)return!0;let k=$f(g,t.program.getTypeChecker());return k===g?!1:(k.flags&128)!==0&&Pt(k.declarations,T=>Pn(T)===n)});(_=t.referencedMap.getKeys(n.resolvedPath))==null||_.forEach(g=>{if(WOe(t,g,y,a,c))return!0;let k=t.referencedMap.getKeys(g);return k&&Ix(k,T=>sdt(t,T,y,f,a,c))})}function sdt(t,n,a,c,u,_){var f;if(Us(c,n)){if(WOe(t,n,a,u,_))return!0;JOe(t,n,a,u,_),(f=t.referencedMap.getKeys(n))==null||f.forEach(y=>sdt(t,y,a,c,u,_))}}function $0e(t,n,a,c){return t.compilerOptions.noCheck?j:go(Zsr(t,n,a,c),t.program.getProgramDiagnostics(n))}function Zsr(t,n,a,c){c??(c=t.semanticDiagnosticsPerFile);let u=n.resolvedPath,_=c.get(u);if(_)return noe(_,t.compilerOptions);let f=t.program.getBindAndCheckDiagnostics(n,a);return c.set(u,f),t.buildInfoEmitPending=!0,noe(f,t.compilerOptions)}function GOe(t){var n;return!!((n=t.options)!=null&&n.outFile)}function PK(t){return!!t.fileNames}function Xsr(t){return!PK(t)&&!!t.root}function cdt(t){t.hasErrors===void 0&&(dP(t.compilerOptions)?t.hasErrors=!Pt(t.program.getSourceFiles(),n=>{var a,c;let u=t.semanticDiagnosticsPerFile.get(n.resolvedPath);return u===void 0||!!u.length||!!((c=(a=t.emitDiagnosticsPerFile)==null?void 0:a.get(n.resolvedPath))!=null&&c.length)})&&(ldt(t)||Pt(t.program.getSourceFiles(),n=>!!t.program.getProgramDiagnostics(n).length)):t.hasErrors=Pt(t.program.getSourceFiles(),n=>{var a,c;let u=t.semanticDiagnosticsPerFile.get(n.resolvedPath);return!!u?.length||!!((c=(a=t.emitDiagnosticsPerFile)==null?void 0:a.get(n.resolvedPath))!=null&&c.length)})||ldt(t))}function ldt(t){return!!t.program.getConfigFileParsingDiagnostics().length||!!t.program.getSyntacticDiagnostics().length||!!t.program.getOptionsDiagnostics().length||!!t.program.getGlobalDiagnostics().length}function udt(t){return cdt(t),t.buildInfoEmitPending??(t.buildInfoEmitPending=!!t.hasErrorsFromOldState!=!!t.hasErrors)}function Ysr(t){var n,a;let c=t.program.getCurrentDirectory(),u=mo(za(LA(t.compilerOptions),c)),_=t.latestChangedDtsFile?Z(t.latestChangedDtsFile):void 0,f=[],y=new Map,g=new Set(t.program.getRootFileNames().map(de=>wl(de,c,t.program.getCanonicalFileName)));if(cdt(t),!dP(t.compilerOptions))return{root:so(g,ze=>Q(ze)),errors:t.hasErrors?!0:void 0,checkPending:t.checkPending,version:L};let k=[];if(t.compilerOptions.outFile){let de=so(t.fileInfos.entries(),([ut,je])=>{let ve=re(ut);return _e(ut,ve),je.impliedFormat?{version:je.version,impliedFormat:je.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:je.version});return{fileNames:f,fileInfos:de,root:k,resolvedRoot:me(),options:le(t.compilerOptions),semanticDiagnosticsPerFile:t.changedFilesSet.size?void 0:be(),emitDiagnosticsPerFile:ue(),changeFileSet:Be(),outSignature:t.outSignature,latestChangedDtsFile:_,pendingEmit:t.programEmitPending?t.programEmitPending===AC(t.compilerOptions)?!1:t.programEmitPending:void 0,errors:t.hasErrors?!0:void 0,checkPending:t.checkPending,version:L}}let T,C,O,F=so(t.fileInfos.entries(),([de,ze])=>{var ut,je;let ve=re(de);_e(de,ve),$.assert(f[ve-1]===Q(de));let Le=(ut=t.oldSignatures)==null?void 0:ut.get(de),Ve=Le!==void 0?Le||void 0:ze.signature;if(t.compilerOptions.composite){let nt=t.program.getSourceFileByPath(de);if(!h0(nt)&&sP(nt,t.program)){let It=(je=t.emitSignatures)==null?void 0:je.get(de);It!==Ve&&(O=jt(O,It===void 0?ve:[ve,!Ni(It)&&It[0]===Ve?j:It]))}}return ze.version===Ve?ze.affectsGlobalScope||ze.impliedFormat?{version:ze.version,signature:void 0,affectsGlobalScope:ze.affectsGlobalScope,impliedFormat:ze.impliedFormat}:ze.version:Ve!==void 0?Le===void 0?ze:{version:ze.version,signature:Ve,affectsGlobalScope:ze.affectsGlobalScope,impliedFormat:ze.impliedFormat}:{version:ze.version,signature:!1,affectsGlobalScope:ze.affectsGlobalScope,impliedFormat:ze.impliedFormat}}),M;(n=t.referencedMap)!=null&&n.size()&&(M=so(t.referencedMap.keys()).sort(Su).map(de=>[re(de),ae(t.referencedMap.getValues(de))]));let U=be(),J;if((a=t.affectedFilesPendingEmit)!=null&&a.size){let de=AC(t.compilerOptions),ze=new Set;for(let ut of so(t.affectedFilesPendingEmit.keys()).sort(Su))if(Us(ze,ut)){let je=t.program.getSourceFileByPath(ut);if(!je||!sP(je,t.program))continue;let ve=re(ut),Le=t.affectedFilesPendingEmit.get(ut);J=jt(J,Le===de?ve:Le===24?[ve]:[ve,Le])}}return{fileNames:f,fileIdsList:T,fileInfos:F,root:k,resolvedRoot:me(),options:le(t.compilerOptions),referencedMap:M,semanticDiagnosticsPerFile:U,emitDiagnosticsPerFile:ue(),changeFileSet:Be(),affectedFilesPendingEmit:J,emitSignatures:O,latestChangedDtsFile:_,errors:t.hasErrors?!0:void 0,checkPending:t.checkPending,version:L};function Z(de){return Q(za(de,c))}function Q(de){return Tx(lh(u,de,t.program.getCanonicalFileName))}function re(de){let ze=y.get(de);return ze===void 0&&(f.push(Q(de)),y.set(de,ze=f.length)),ze}function ae(de){let ze=so(de.keys(),re).sort(Br),ut=ze.join(),je=C?.get(ut);return je===void 0&&(T=jt(T,ze),(C??(C=new Map)).set(ut,je=T.length)),je}function _e(de,ze){let ut=t.program.getSourceFile(de);if(!t.program.getFileIncludeReasons().get(ut.path).some(Ve=>Ve.kind===0))return;if(!k.length)return k.push(ze);let je=k[k.length-1],ve=Zn(je);if(ve&&je[1]===ze-1)return je[1]=ze;if(ve||k.length===1||je!==ze-1)return k.push(ze);let Le=k[k.length-2];return!Kn(Le)||Le!==je-1?k.push(ze):(k[k.length-2]=[Le,ze],k.length=k.length-1)}function me(){let de;return g.forEach(ze=>{let ut=t.program.getSourceFileByPath(ze);ut&&ze!==ut.resolvedPath&&(de=jt(de,[re(ut.resolvedPath),re(ze)]))}),de}function le(de){let ze,{optionsNameMap:ut}=PL();for(let je of Lu(de).sort(Su)){let ve=ut.get(je.toLowerCase());ve?.affectsBuildInfo&&((ze||(ze={}))[je]=Oe(ve,de[je]))}return ze}function Oe(de,ze){if(de){if($.assert(de.type!=="listOrElement"),de.type==="list"){let ut=ze;if(de.element.isFilePath&&ut.length)return ut.map(Z)}else if(de.isFilePath)return Z(ze)}return ze}function be(){let de;return t.fileInfos.forEach((ze,ut)=>{let je=t.semanticDiagnosticsPerFile.get(ut);je?je.length&&(de=jt(de,[re(ut),De(je,ut)])):t.changedFilesSet.has(ut)||(de=jt(de,re(ut)))}),de}function ue(){var de;let ze;if(!((de=t.emitDiagnosticsPerFile)!=null&&de.size))return ze;for(let ut of so(t.emitDiagnosticsPerFile.keys()).sort(Su)){let je=t.emitDiagnosticsPerFile.get(ut);ze=jt(ze,[re(ut),De(je,ut)])}return ze}function De(de,ze){return $.assert(!!de.length),de.map(ut=>{let je=Ce(ut,ze);je.reportsUnnecessary=ut.reportsUnnecessary,je.reportDeprecated=ut.reportsDeprecated,je.source=ut.source,je.skippedOn=ut.skippedOn;let{relatedInformation:ve}=ut;return je.relatedInformation=ve?ve.length?ve.map(Le=>Ce(Le,ze)):[]:void 0,je})}function Ce(de,ze){let{file:ut}=de;return{...de,file:ut?ut.resolvedPath===ze?void 0:Q(ut.resolvedPath):!1,messageText:Ni(de.messageText)?de.messageText:Ae(de.messageText)}}function Ae(de){if(de.repopulateInfo)return{info:de.repopulateInfo(),next:Fe(de.next)};let ze=Fe(de.next);return ze===de.next?de:{...de,next:ze}}function Fe(de){return de&&(X(de,(ze,ut)=>{let je=Ae(ze);if(ze===je)return;let ve=ut>0?de.slice(0,ut-1):[];ve.push(je);for(let Le=ut+1;Le(t[t.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",t[t.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",t))(HOe||{});function soe(t,n,a,c,u,_){let f,y,g;return t===void 0?($.assert(n===void 0),f=a,g=c,$.assert(!!g),y=g.getProgram()):Zn(t)?(g=c,y=wK({rootNames:t,options:n,host:a,oldProgram:g&&g.getProgramOrUndefined(),configFileParsingDiagnostics:u,projectReferences:_}),f=a):(y=t,f=n,g=a,u=c),{host:f,newProgram:y,oldProgram:g,configFileParsingDiagnostics:u||j}}function pdt(t,n){return n?.sourceMapUrlPos!==void 0?t.substring(0,n.sourceMapUrlPos):t}function U0e(t,n,a,c,u){var _;a=pdt(a,u);let f;return(_=u?.diagnostics)!=null&&_.length&&(a+=u.diagnostics.map(k=>`${g(k)}${gO[k.category]}${k.code}: ${y(k.messageText)}`).join(` -`)),(c.createHash??qk)(a);function y(k){return Ni(k)?k:k===void 0?"":k.next?k.messageText+k.next.map(y).join(` -`):k.messageText}function g(k){return k.file.resolvedPath===n.resolvedPath?`(${k.start},${k.length})`:(f===void 0&&(f=mo(n.resolvedPath)),`${Tx(lh(f,k.file.resolvedPath,t.getCanonicalFileName))}(${k.start},${k.length})`)}}function ecr(t,n,a){return(n.createHash??qk)(pdt(t,a))}function z0e(t,{newProgram:n,host:a,oldProgram:c,configFileParsingDiagnostics:u}){let _=c&&c.state;if(_&&n===_.program&&u===n.getConfigFileParsingDiagnostics())return n=void 0,_=void 0,c;let f=Vsr(n,_);n.getBuildInfo=()=>Ysr(qsr(f)),n=void 0,c=void 0,_=void 0;let y=V0e(f,u);return y.state=f,y.hasChangedEmitSignature=()=>!!f.hasChangedEmitSignature,y.getAllDependencies=Z=>Dv.getAllDependencies(f,$.checkDefined(f.program),Z),y.getSemanticDiagnostics=G,y.getDeclarationDiagnostics=U,y.emit=F,y.releaseProgram=()=>Wsr(f),t===0?y.getSemanticDiagnosticsOfNextAffectedFile=J:t===1?(y.getSemanticDiagnosticsOfNextAffectedFile=J,y.emitNextAffectedFile=C,y.emitBuildInfo=g):Ts(),y;function g(Z,Q){if($.assert(zL(f)),udt(f)){let re=f.program.emitBuildInfo(Z||ja(a,a.writeFile),Q);return f.buildInfoEmitPending=!1,re}return L0e}function k(Z,Q,re,ae,_e){var me,le,Oe,be;$.assert(zL(f));let ue=ndt(f,Q,a),De=AC(f.compilerOptions),Ce=_e?8:re?De&56:De;if(!ue){if(f.compilerOptions.outFile){if(f.programEmitPending&&(Ce=aoe(f.programEmitPending,f.seenProgramEmit,re,_e),Ce&&(ue=f.program)),!ue&&((me=f.emitDiagnosticsPerFile)!=null&&me.size)){let Be=f.seenProgramEmit||0;if(!(Be&B0e(_e))){f.seenProgramEmit=B0e(_e)|Be;let de=[];return f.emitDiagnosticsPerFile.forEach(ze=>En(de,ze)),{result:{emitSkipped:!0,diagnostics:de},affected:f.program}}}}else{let Be=Gsr(f,re,_e);if(Be)({affectedFile:ue,emitKind:Ce}=Be);else{let de=Hsr(f,_e);if(de)return(f.seenEmittedFiles??(f.seenEmittedFiles=new Map)).set(de.affectedFile.resolvedPath,de.seenKind|B0e(_e)),{result:{emitSkipped:!0,diagnostics:de.diagnostics},affected:de.affectedFile}}}if(!ue){if(_e||!udt(f))return;let Be=f.program,de=Be.emitBuildInfo(Z||ja(a,a.writeFile),Q);return f.buildInfoEmitPending=!1,{result:de,affected:Be}}}let Ae;Ce&7&&(Ae=0),Ce&56&&(Ae=Ae===void 0?1:void 0);let Fe=_e?{emitSkipped:!0,diagnostics:f.program.getDeclarationDiagnostics(ue===f.program?void 0:ue,Q)}:f.program.emit(ue===f.program?void 0:ue,O(Z,ae),Q,Ae,ae,void 0,!0);if(ue!==f.program){let Be=ue;f.seenAffectedFiles.add(Be.resolvedPath),f.affectedFilesIndex!==void 0&&f.affectedFilesIndex++,f.buildInfoEmitPending=!0;let de=((le=f.seenEmittedFiles)==null?void 0:le.get(Be.resolvedPath))||0;(f.seenEmittedFiles??(f.seenEmittedFiles=new Map)).set(Be.resolvedPath,Ce|de);let ze=((Oe=f.affectedFilesPendingEmit)==null?void 0:Oe.get(Be.resolvedPath))||De,ut=ooe(ze,Ce|de);ut?(f.affectedFilesPendingEmit??(f.affectedFilesPendingEmit=new Map)).set(Be.resolvedPath,ut):(be=f.affectedFilesPendingEmit)==null||be.delete(Be.resolvedPath),Fe.diagnostics.length&&(f.emitDiagnosticsPerFile??(f.emitDiagnosticsPerFile=new Map)).set(Be.resolvedPath,Fe.diagnostics)}else f.changedFilesSet.clear(),f.programEmitPending=f.changedFilesSet.size?ooe(De,Ce):f.programEmitPending?ooe(f.programEmitPending,Ce):void 0,f.seenProgramEmit=Ce|(f.seenProgramEmit||0),T(Fe.diagnostics),f.buildInfoEmitPending=!0;return{result:Fe,affected:ue}}function T(Z){let Q;Z.forEach(re=>{if(!re.file)return;let ae=Q?.get(re.file.resolvedPath);ae||(Q??(Q=new Map)).set(re.file.resolvedPath,ae=[]),ae.push(re)}),Q&&(f.emitDiagnosticsPerFile=Q)}function C(Z,Q,re,ae){return k(Z,Q,re,ae,!1)}function O(Z,Q){return $.assert(zL(f)),fg(f.compilerOptions)?(re,ae,_e,me,le,Oe)=>{var be,ue,De;if(sf(re))if(f.compilerOptions.outFile){if(f.compilerOptions.composite){let Ae=Ce(f.outSignature,void 0);if(!Ae)return Oe.skippedDtsWrite=!0;f.outSignature=Ae}}else{$.assert(le?.length===1);let Ae;if(!Q){let Fe=le[0],Be=f.fileInfos.get(Fe.resolvedPath);if(Be.signature===Fe.version){let de=U0e(f.program,Fe,ae,a,Oe);(be=Oe?.diagnostics)!=null&&be.length||(Ae=de),de!==Fe.version&&(a.storeSignatureInfo&&(f.signatureInfo??(f.signatureInfo=new Map)).set(Fe.resolvedPath,1),f.affectedFiles&&((ue=f.oldSignatures)==null?void 0:ue.get(Fe.resolvedPath))===void 0&&(f.oldSignatures??(f.oldSignatures=new Map)).set(Fe.resolvedPath,Be.signature||!1),Be.signature=de)}}if(f.compilerOptions.composite){let Fe=le[0].resolvedPath;if(Ae=Ce((De=f.emitSignatures)==null?void 0:De.get(Fe),Ae),!Ae)return Oe.skippedDtsWrite=!0;(f.emitSignatures??(f.emitSignatures=new Map)).set(Fe,Ae)}}Z?Z(re,ae,_e,me,le,Oe):a.writeFile?a.writeFile(re,ae,_e,me,le,Oe):f.program.writeFile(re,ae,_e,me,le,Oe);function Ce(Ae,Fe){let Be=!Ae||Ni(Ae)?Ae:Ae[0];if(Fe??(Fe=ecr(ae,a,Oe)),Fe===Be){if(Ae===Be)return;Oe?Oe.differsOnlyInMap=!0:Oe={differsOnlyInMap:!0}}else f.hasChangedEmitSignature=!0,f.latestChangedDtsFile=re;return Fe}}:Z||ja(a,a.writeFile)}function F(Z,Q,re,ae,_e){$.assert(zL(f)),t===1&&qOe(f,Z);let me=M0e(y,Z,Q,re);if(me)return me;if(!Z)if(t===1){let Oe=[],be=!1,ue,De=[],Ce;for(;Ce=C(Q,re,ae,_e);)be=be||Ce.result.emitSkipped,ue=En(ue,Ce.result.diagnostics),De=En(De,Ce.result.emittedFiles),Oe=En(Oe,Ce.result.sourceMaps);return{emitSkipped:be,diagnostics:ue||j,emittedFiles:De,sourceMaps:Oe}}else idt(f,ae,!1);let le=f.program.emit(Z,O(Q,_e),re,ae,_e);return M(Z,ae,!1,le.diagnostics),le}function M(Z,Q,re,ae){!Z&&t!==1&&(idt(f,Q,re),T(ae))}function U(Z,Q){var re;if($.assert(zL(f)),t===1){qOe(f,Z);let ae,_e;for(;ae=k(void 0,Q,void 0,void 0,!0);)Z||(_e=En(_e,ae.result.diagnostics));return(Z?(re=f.emitDiagnosticsPerFile)==null?void 0:re.get(Z.resolvedPath):_e)||j}else{let ae=f.program.getDeclarationDiagnostics(Z,Q);return M(Z,void 0,!0,ae),ae}}function J(Z,Q){for($.assert(zL(f));;){let re=ndt(f,Z,a),ae;if(re)if(re!==f.program){let _e=re;if((!Q||!Q(_e))&&(ae=$0e(f,_e,Z)),f.seenAffectedFiles.add(_e.resolvedPath),f.affectedFilesIndex++,f.buildInfoEmitPending=!0,!ae)continue}else{let _e,me=new Map;f.program.getSourceFiles().forEach(le=>_e=En(_e,$0e(f,le,Z,me))),f.semanticDiagnosticsPerFile=me,ae=_e||j,f.changedFilesSet.clear(),f.programEmitPending=AC(f.compilerOptions),f.compilerOptions.noCheck||(f.checkPending=void 0),f.buildInfoEmitPending=!0}else{f.checkPending&&!f.compilerOptions.noCheck&&(f.checkPending=void 0,f.buildInfoEmitPending=!0);return}return{result:ae,affected:re}}}function G(Z,Q){if($.assert(zL(f)),qOe(f,Z),Z)return $0e(f,Z,Q);for(;;){let ae=J(Q);if(!ae)break;if(ae.affected===f.program)return ae.result}let re;for(let ae of f.program.getSourceFiles())re=En(re,$0e(f,ae,Q));return f.checkPending&&!f.compilerOptions.noCheck&&(f.checkPending=void 0,f.buildInfoEmitPending=!0),re||j}}function q0e(t,n,a){var c,u;let _=((c=t.affectedFilesPendingEmit)==null?void 0:c.get(n))||0;(t.affectedFilesPendingEmit??(t.affectedFilesPendingEmit=new Map)).set(n,_|a),(u=t.emitDiagnosticsPerFile)==null||u.delete(n)}function KOe(t){return Ni(t)?{version:t,signature:t,affectsGlobalScope:void 0,impliedFormat:void 0}:Ni(t.signature)?t:{version:t.version,signature:t.signature===!1?void 0:t.version,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}}function QOe(t,n){return Kn(t)?n:t[1]||24}function ZOe(t,n){return t||AC(n||{})}function XOe(t,n,a){var c,u,_,f;let y=mo(za(n,a.getCurrentDirectory())),g=_d(a.useCaseSensitiveFileNames()),k,T=(c=t.fileNames)==null?void 0:c.map(U),C,O=t.latestChangedDtsFile?J(t.latestChangedDtsFile):void 0,F=new Map,M=new Set(Cr(t.changeFileSet,G));if(GOe(t))t.fileInfos.forEach((_e,me)=>{let le=G(me+1);F.set(le,Ni(_e)?{version:_e,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:_e)}),k={fileInfos:F,compilerOptions:t.options?gie(t.options,J):{},semanticDiagnosticsPerFile:re(t.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:ae(t.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:M,latestChangedDtsFile:O,outSignature:t.outSignature,programEmitPending:t.pendingEmit===void 0?void 0:ZOe(t.pendingEmit,t.options),hasErrors:t.errors,checkPending:t.checkPending};else{C=(u=t.fileIdsList)==null?void 0:u.map(le=>new Set(le.map(G)));let _e=(_=t.options)!=null&&_.composite&&!t.options.outFile?new Map:void 0;t.fileInfos.forEach((le,Oe)=>{let be=G(Oe+1),ue=KOe(le);F.set(be,ue),_e&&ue.signature&&_e.set(be,ue.signature)}),(f=t.emitSignatures)==null||f.forEach(le=>{if(Kn(le))_e.delete(G(le));else{let Oe=G(le[0]);_e.set(Oe,!Ni(le[1])&&!le[1].length?[_e.get(Oe)]:le[1])}});let me=t.affectedFilesPendingEmit?AC(t.options||{}):void 0;k={fileInfos:F,compilerOptions:t.options?gie(t.options,J):{},referencedMap:Q(t.referencedMap,t.options??{}),semanticDiagnosticsPerFile:re(t.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:ae(t.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:M,affectedFilesPendingEmit:t.affectedFilesPendingEmit&&_l(t.affectedFilesPendingEmit,le=>G(Kn(le)?le:le[0]),le=>QOe(le,me)),latestChangedDtsFile:O,emitSignatures:_e?.size?_e:void 0,hasErrors:t.errors,checkPending:t.checkPending}}return{state:k,getProgram:Ts,getProgramOrUndefined:Sx,releaseProgram:zs,getCompilerOptions:()=>k.compilerOptions,getSourceFile:Ts,getSourceFiles:Ts,getOptionsDiagnostics:Ts,getGlobalDiagnostics:Ts,getConfigFileParsingDiagnostics:Ts,getSyntacticDiagnostics:Ts,getDeclarationDiagnostics:Ts,getSemanticDiagnostics:Ts,emit:Ts,getAllDependencies:Ts,getCurrentDirectory:Ts,emitNextAffectedFile:Ts,getSemanticDiagnosticsOfNextAffectedFile:Ts,emitBuildInfo:Ts,close:zs,hasChangedEmitSignature:Yf};function U(_e){return wl(_e,y,g)}function J(_e){return za(_e,y)}function G(_e){return T[_e-1]}function Z(_e){return C[_e-1]}function Q(_e,me){let le=Dv.createReferencedMap(me);return!le||!_e||_e.forEach(([Oe,be])=>le.set(G(Oe),Z(be))),le}function re(_e){let me=new Map(Na(F.keys(),le=>M.has(le)?void 0:[le,j]));return _e?.forEach(le=>{Kn(le)?me.delete(G(le)):me.set(G(le[0]),le[1])}),me}function ae(_e){return _e&&_l(_e,me=>G(me[0]),me=>me[1])}}function J0e(t,n,a){let c=mo(za(n,a.getCurrentDirectory())),u=_d(a.useCaseSensitiveFileNames()),_=new Map,f=0,y=new Map,g=new Map(t.resolvedRoot);return t.fileInfos.forEach((T,C)=>{let O=wl(t.fileNames[C],c,u),F=Ni(T)?T:T.version;if(_.set(O,F),fwl(_,c,u))}function V0e(t,n){return{state:void 0,getProgram:a,getProgramOrUndefined:()=>t.program,releaseProgram:()=>t.program=void 0,getCompilerOptions:()=>t.compilerOptions,getSourceFile:c=>a().getSourceFile(c),getSourceFiles:()=>a().getSourceFiles(),getOptionsDiagnostics:c=>a().getOptionsDiagnostics(c),getGlobalDiagnostics:c=>a().getGlobalDiagnostics(c),getConfigFileParsingDiagnostics:()=>n,getSyntacticDiagnostics:(c,u)=>a().getSyntacticDiagnostics(c,u),getDeclarationDiagnostics:(c,u)=>a().getDeclarationDiagnostics(c,u),getSemanticDiagnostics:(c,u)=>a().getSemanticDiagnostics(c,u),emit:(c,u,_,f,y)=>a().emit(c,u,_,f,y),emitBuildInfo:(c,u)=>a().emitBuildInfo(c,u),getAllDependencies:Ts,getCurrentDirectory:()=>a().getCurrentDirectory(),close:zs};function a(){return $.checkDefined(t.program)}}function _dt(t,n,a,c,u,_){return z0e(0,soe(t,n,a,c,u,_))}function W0e(t,n,a,c,u,_){return z0e(1,soe(t,n,a,c,u,_))}function ddt(t,n,a,c,u,_){let{newProgram:f,configFileParsingDiagnostics:y}=soe(t,n,a,c,u,_);return V0e({program:f,compilerOptions:f.getCompilerOptions()},y)}function coe(t){return au(t,"/node_modules/.staging")?Lk(t,"/.staging"):Pt(b4,n=>t.includes(n))?void 0:t}function eFe(t,n){if(n<=1)return 1;let a=1,c=t[0].search(/[a-z]:/i)===0;if(t[0]!==Gl&&!c&&t[1].search(/[a-z]\$$/i)===0){if(n===2)return 2;a=2,c=!0}return c&&!t[a].match(/^users$/i)?a:t[a].match(/^workspaces$/i)?a+1:a+2}function G0e(t,n){if(n===void 0&&(n=t.length),n<=2)return!1;let a=eFe(t,n);return n>a+1}function NK(t){return G0e(Cd(t))}function tFe(t){return mdt(mo(t))}function fdt(t,n){if(n.lengthu.length+1?nFe(k,g,Math.max(u.length+1,T+1),O):{dir:a,dirPath:c,nonRecursive:!0}:hdt(k,g,g.length-1,T,C,u,O,y)}function hdt(t,n,a,c,u,_,f,y){if(u!==-1)return nFe(t,n,u+1,f);let g=!0,k=a;if(!y){for(let T=0;T=a&&c+2tcr(c,u,_,t,a,n,f)}}function tcr(t,n,a,c,u,_,f){let y=loe(t),g=h3(a,c,u,y,n,_,f);if(!t.getGlobalTypingsCacheLocation)return g;let k=t.getGlobalTypingsCacheLocation();if(k!==void 0&&!vt(a)&&!(g.resolvedModule&&vne(g.resolvedModule.extension))){let{resolvedModule:T,failedLookupLocations:C,affectingLocations:O,resolutionDiagnostics:F}=g8e($.checkDefined(t.globalCacheResolutionModuleName)(a),t.projectName,u,y,k,n);if(T)return g.resolvedModule=T,g.failedLookupLocations=NL(g.failedLookupLocations,C),g.affectingLocations=NL(g.affectingLocations,O),g.resolutionDiagnostics=NL(g.resolutionDiagnostics,F),g}return g}function K0e(t,n,a){let c,u,_,f=new Set,y=new Set,g=new Set,k=new Map,T=new Map,C=!1,O,F,M,U,J,G=!1,Z=Ef(()=>t.getCurrentDirectory()),Q=t.getCachedDirectoryStructureHost(),re=new Map,ae=FL(Z(),t.getCanonicalFileName,t.getCompilationSettings()),_e=new Map,me=Die(Z(),t.getCanonicalFileName,t.getCompilationSettings(),ae.getPackageJsonInfoCache(),ae.optionsToRedirectsKey),le=new Map,Oe=FL(Z(),t.getCanonicalFileName,Iye(t.getCompilationSettings()),ae.getPackageJsonInfoCache()),be=new Map,ue=new Map,De=oFe(n,Z),Ce=t.toPath(De),Ae=Cd(Ce),Fe=G0e(Ae),Be=new Map,de=new Map,ze=new Map,ut=new Map;return{rootDirForResolution:n,resolvedModuleNames:re,resolvedTypeReferenceDirectives:_e,resolvedLibraries:le,resolvedFileToResolution:k,resolutionsWithFailedLookups:y,resolutionsWithOnlyAffectingLocations:g,directoryWatchesOfFailedLookups:be,fileWatchesOfAffectingLocations:ue,packageDirWatchers:de,dirPathToSymlinkPackageRefCount:ze,watchFailedLookupLocationsOfExternalModuleResolutions:Dr,getModuleResolutionCache:()=>ae,startRecordingFilesWithChangedResolutions:Le,finishRecordingFilesWithChangedResolutions:Ve,startCachingPerDirectoryResolution:ke,finishCachingPerDirectoryResolution:Se,resolveModuleNameLiterals:Sr,resolveTypeReferenceDirectiveReferences:Kt,resolveLibrary:nn,resolveSingleModuleNameWithoutWatching:Nn,removeResolutionsFromProjectReferenceRedirects:Eo,removeResolutionsOfFile:ya,hasChangedAutomaticTypeDirectiveNames:()=>C,invalidateResolutionOfFile:yc,invalidateResolutionsOfFailedLookupLocations:ur,setFilesWithInvalidatedNonRelativeUnresolvedImports:Cn,createHasInvalidatedResolutions:It,isFileWithInvalidatedNonRelativeUnresolvedImports:nt,updateTypeRootsWatch:Ot,closeTypeRootsWatch:et,clear:je,onChangesAffectModuleResolution:ve};function je(){dg(be,C0),dg(ue,C0),Be.clear(),de.clear(),ze.clear(),f.clear(),et(),re.clear(),_e.clear(),k.clear(),y.clear(),g.clear(),M=void 0,U=void 0,J=void 0,F=void 0,O=void 0,G=!1,ae.clear(),me.clear(),ae.update(t.getCompilationSettings()),me.update(t.getCompilationSettings()),Oe.clear(),T.clear(),le.clear(),C=!1}function ve(){G=!0,ae.clearAllExceptPackageJsonInfoCache(),me.clearAllExceptPackageJsonInfoCache(),ae.update(t.getCompilationSettings()),me.update(t.getCompilationSettings())}function Le(){c=[]}function Ve(){let at=c;return c=void 0,at}function nt(at){if(!_)return!1;let Zt=_.get(at);return!!Zt&&!!Zt.length}function It(at,Zt){ur();let Qt=u;return u=void 0,{hasInvalidatedResolutions:pr=>at(pr)||G||!!Qt?.has(pr)||nt(pr),hasInvalidatedLibResolutions:pr=>{var Et;return Zt(pr)||!!((Et=le?.get(pr))!=null&&Et.isInvalidated)}}}function ke(){ae.isReadonly=void 0,me.isReadonly=void 0,Oe.isReadonly=void 0,ae.getPackageJsonInfoCache().isReadonly=void 0,ae.clearAllExceptPackageJsonInfoCache(),me.clearAllExceptPackageJsonInfoCache(),Oe.clearAllExceptPackageJsonInfoCache(),Wa(),Be.clear()}function _t(at){le.forEach((Zt,Qt)=>{var pr;(pr=at?.resolvedLibReferences)!=null&&pr.has(Qt)||(Ht(Zt,t.toPath(eoe(t.getCompilationSettings(),Z(),Qt)),jO),le.delete(Qt))})}function Se(at,Zt){_=void 0,G=!1,Wa(),at!==Zt&&(_t(at),at?.getSourceFiles().forEach(Qt=>{var pr;let Et=((pr=Qt.packageJsonLocations)==null?void 0:pr.length)??0,xr=T.get(Qt.resolvedPath)??j;for(let gi=xr.length;giEt)for(let gi=Et;gi{let Et=at?.getSourceFileByPath(pr);(!Et||Et.resolvedPath!==pr)&&(Qt.forEach(xr=>ue.get(xr).files--),T.delete(pr))})),be.forEach(Qe),ue.forEach(We),de.forEach(tt),C=!1,ae.isReadonly=!0,me.isReadonly=!0,Oe.isReadonly=!0,ae.getPackageJsonInfoCache().isReadonly=!0,Be.clear()}function tt(at,Zt){at.dirPathToWatcher.size===0&&de.delete(Zt)}function Qe(at,Zt){at.refCount===0&&(be.delete(Zt),at.watcher.close())}function We(at,Zt){var Qt;at.files===0&&at.resolutions===0&&!((Qt=at.symlinks)!=null&&Qt.size)&&(ue.delete(Zt),at.watcher.close())}function St({entries:at,containingFile:Zt,containingSourceFile:Qt,redirectedReference:pr,options:Et,perFileCache:xr,reusedNames:gi,loader:Ye,getResolutionWithResolvedFileName:er,deferWatchingNonRelativeResolution:Ne,shouldRetryResolution:Y,logChanges:ot}){var pe;let Gt=t.toPath(Zt),mr=xr.get(Gt)||xr.set(Gt,OL()).get(Gt),Ge=[],Mt=ot&&nt(Gt),Ir=t.getCurrentProgram(),ii=Ir&&((pe=Ir.getRedirectFromSourceFile(Zt))==null?void 0:pe.resolvedRef),Rn=ii?!pr||pr.sourceFile.path!==ii.sourceFile.path:!!pr,zn=OL();for(let rr of at){let _r=Ye.nameAndMode.getName(rr),wr=Ye.nameAndMode.getMode(rr,Qt,pr?.commandLine.options||Et),pn=mr.get(_r,wr);if(!zn.has(_r,wr)&&(G||Rn||!pn||pn.isInvalidated||Mt&&!vt(_r)&&Y(pn))){let tn=pn;pn=Ye.resolve(_r,wr),t.onDiscoveredSymlink&&rcr(pn)&&t.onDiscoveredSymlink(),mr.set(_r,wr,pn),pn!==tn&&(Dr(_r,pn,Gt,er,Ne),tn&&Ht(tn,Gt,er)),ot&&c&&!Rt(tn,pn)&&(c.push(Gt),ot=!1)}else{let tn=loe(t);if(TC(Et,tn)&&!zn.has(_r,wr)){let lr=er(pn);ns(tn,xr===re?lr?.resolvedFileName?lr.packageId?x.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:x.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:x.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:lr?.resolvedFileName?lr.packageId?x.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:x.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:x.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,_r,Zt,lr?.resolvedFileName,lr?.packageId&&cA(lr.packageId))}}$.assert(pn!==void 0&&!pn.isInvalidated),zn.set(_r,wr,!0),Ge.push(pn)}return gi?.forEach(rr=>zn.set(Ye.nameAndMode.getName(rr),Ye.nameAndMode.getMode(rr,Qt,pr?.commandLine.options||Et),!0)),mr.size()!==zn.size()&&mr.forEach((rr,_r,wr)=>{zn.has(_r,wr)||(Ht(rr,Gt,er),mr.delete(_r,wr))}),Ge;function Rt(rr,_r){if(rr===_r)return!0;if(!rr||!_r)return!1;let wr=er(rr),pn=er(_r);return wr===pn?!0:!wr||!pn?!1:wr.resolvedFileName===pn.resolvedFileName}}function Kt(at,Zt,Qt,pr,Et,xr){return St({entries:at,containingFile:Zt,containingSourceFile:Et,redirectedReference:Qt,options:pr,reusedNames:xr,perFileCache:_e,loader:Yie(Zt,Qt,pr,loe(t),me),getResolutionWithResolvedFileName:tre,shouldRetryResolution:gi=>gi.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Sr(at,Zt,Qt,pr,Et,xr){return St({entries:at,containingFile:Zt,containingSourceFile:Et,redirectedReference:Qt,options:pr,reusedNames:xr,perFileCache:re,loader:aFe(Zt,Qt,pr,t,ae),getResolutionWithResolvedFileName:jO,shouldRetryResolution:gi=>!gi.resolvedModule||!JU(gi.resolvedModule.extension),logChanges:a,deferWatchingNonRelativeResolution:!0})}function nn(at,Zt,Qt,pr){let Et=loe(t),xr=le?.get(pr);if(!xr||xr.isInvalidated){let gi=xr;xr=Aie(at,Zt,Qt,Et,Oe);let Ye=t.toPath(Zt);Dr(at,xr,Ye,jO,!1),le.set(pr,xr),gi&&Ht(gi,Ye,jO)}else if(TC(Qt,Et)){let gi=jO(xr);ns(Et,gi?.resolvedFileName?gi.packageId?x.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:x.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:x.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,at,Zt,gi?.resolvedFileName,gi?.packageId&&cA(gi.packageId))}return xr}function Nn(at,Zt){var Qt,pr;let Et=t.toPath(Zt),xr=re.get(Et),gi=xr?.get(at,void 0);if(gi&&!gi.isInvalidated)return gi;let Ye=(Qt=t.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:Qt.call(t,ae),er=loe(t),Ne=h3(at,Zt,t.getCompilationSettings(),er,ae);return(pr=t.afterResolveSingleModuleNameWithoutWatching)==null||pr.call(t,ae,at,Zt,Ne,Ye),Ne}function $t(at){return au(at,"/node_modules/@types")}function Dr(at,Zt,Qt,pr,Et){if((Zt.files??(Zt.files=new Set)).add(Qt),Zt.files.size!==1)return;!Et||vt(at)?Ko(Zt):f.add(Zt);let xr=pr(Zt);if(xr&&xr.resolvedFileName){let gi=t.toPath(xr.resolvedFileName),Ye=k.get(gi);Ye||k.set(gi,Ye=new Set),Ye.add(Zt)}}function Qn(at,Zt){let Qt=t.toPath(at),pr=H0e(at,Qt,De,Ce,Ae,Fe,Z,t.preferNonRecursiveWatch);if(pr){let{dir:Et,dirPath:xr,nonRecursive:gi,packageDir:Ye,packageDirPath:er}=pr;xr===Ce?($.assert(gi),$.assert(!Ye),Zt=!0):Oi(Et,xr,Ye,er,gi)}return Zt}function Ko(at){var Zt;$.assert(!!((Zt=at.files)!=null&&Zt.size));let{failedLookupLocations:Qt,affectingLocations:pr,alternateResult:Et}=at;if(!Qt?.length&&!pr?.length&&!Et)return;(Qt?.length||Et)&&y.add(at);let xr=!1;if(Qt)for(let gi of Qt)xr=Qn(gi,xr);Et&&(xr=Qn(Et,xr)),xr&&Oi(De,Ce,void 0,void 0,!0),is(at,!Qt?.length&&!Et)}function is(at,Zt){var Qt;$.assert(!!((Qt=at.files)!=null&&Qt.size));let{affectingLocations:pr}=at;if(pr?.length){Zt&&g.add(at);for(let Et of pr)sr(Et,!0)}}function sr(at,Zt){let Qt=ue.get(at);if(Qt){Zt?Qt.resolutions++:Qt.files++;return}let pr=at,Et=!1,xr;t.realpath&&(pr=t.realpath(at),at!==pr&&(Et=!0,xr=ue.get(pr)));let gi=Zt?1:0,Ye=Zt?0:1;if(!Et||!xr){let er={watcher:rFe(t.toPath(pr))?t.watchAffectingFileLocation(pr,(Ne,Y)=>{Q?.addOrDeleteFile(Ne,t.toPath(pr),Y),uo(pr,ae.getPackageJsonInfoCache().getInternalMap()),t.scheduleInvalidateResolutionsOfFailedLookupLocations()}):JL,resolutions:Et?0:gi,files:Et?0:Ye,symlinks:void 0};ue.set(pr,er),Et&&(xr=er)}if(Et){$.assert(!!xr);let er={watcher:{close:()=>{var Ne;let Y=ue.get(pr);(Ne=Y?.symlinks)!=null&&Ne.delete(at)&&!Y.symlinks.size&&!Y.resolutions&&!Y.files&&(ue.delete(pr),Y.watcher.close())}},resolutions:gi,files:Ye,symlinks:void 0};ue.set(at,er),(xr.symlinks??(xr.symlinks=new Set)).add(at)}}function uo(at,Zt){var Qt;let pr=ue.get(at);pr?.resolutions&&(F??(F=new Set)).add(at),pr?.files&&(O??(O=new Set)).add(at),(Qt=pr?.symlinks)==null||Qt.forEach(Et=>uo(Et,Zt)),Zt?.delete(t.toPath(at))}function Wa(){f.forEach(Ko),f.clear()}function oo(at,Zt,Qt,pr,Et){$.assert(!Et);let xr=Be.get(pr),gi=de.get(pr);if(xr===void 0){let Ne=t.realpath(Qt);xr=Ne!==Qt&&t.toPath(Ne)!==pr,Be.set(pr,xr),gi?gi.isSymlink!==xr&&(gi.dirPathToWatcher.forEach(Y=>{Wr(gi.isSymlink?pr:Zt),Y.watcher=er()}),gi.isSymlink=xr):de.set(pr,gi={dirPathToWatcher:new Map,isSymlink:xr})}else $.assertIsDefined(gi),$.assert(xr===gi.isSymlink);let Ye=gi.dirPathToWatcher.get(Zt);Ye?Ye.refCount++:(gi.dirPathToWatcher.set(Zt,{watcher:er(),refCount:1}),xr&&ze.set(Zt,(ze.get(Zt)??0)+1));function er(){return xr?$o(Qt,pr,Et):$o(at,Zt,Et)}}function Oi(at,Zt,Qt,pr,Et){!pr||!t.realpath?$o(at,Zt,Et):oo(at,Zt,Qt,pr,Et)}function $o(at,Zt,Qt){let pr=be.get(Zt);return pr?($.assert(!!Qt==!!pr.nonRecursive),pr.refCount++):be.set(Zt,pr={watcher:ai(at,Zt,Qt),refCount:1,nonRecursive:Qt}),pr}function ft(at,Zt){let Qt=t.toPath(at),pr=H0e(at,Qt,De,Ce,Ae,Fe,Z,t.preferNonRecursiveWatch);if(pr){let{dirPath:Et,packageDirPath:xr}=pr;if(Et===Ce)Zt=!0;else if(xr&&t.realpath){let gi=de.get(xr),Ye=gi.dirPathToWatcher.get(Et);if(Ye.refCount--,Ye.refCount===0&&(Wr(gi.isSymlink?xr:Et),gi.dirPathToWatcher.delete(Et),gi.isSymlink)){let er=ze.get(Et)-1;er===0?ze.delete(Et):ze.set(Et,er)}}else Wr(Et)}return Zt}function Ht(at,Zt,Qt){if($.checkDefined(at.files).delete(Zt),at.files.size)return;at.files=void 0;let pr=Qt(at);if(pr&&pr.resolvedFileName){let Ye=t.toPath(pr.resolvedFileName),er=k.get(Ye);er?.delete(at)&&!er.size&&k.delete(Ye)}let{failedLookupLocations:Et,affectingLocations:xr,alternateResult:gi}=at;if(y.delete(at)){let Ye=!1;if(Et)for(let er of Et)Ye=ft(er,Ye);gi&&(Ye=ft(gi,Ye)),Ye&&Wr(Ce)}else xr?.length&&g.delete(at);if(xr)for(let Ye of xr){let er=ue.get(Ye);er.resolutions--}}function Wr(at){let Zt=be.get(at);Zt.refCount--}function ai(at,Zt,Qt){return t.watchDirectoryOfFailedLookupLocation(at,pr=>{let Et=t.toPath(pr);Q&&Q.addOrDeleteFileOrDirectory(pr,Et),Es(Et,Zt===Et)},Qt?0:1)}function vo(at,Zt,Qt){let pr=at.get(Zt);pr&&(pr.forEach(Et=>Ht(Et,Zt,Qt)),at.delete(Zt))}function Eo(at){if(!Au(at,".json"))return;let Zt=t.getCurrentProgram();if(!Zt)return;let Qt=Zt.getResolvedProjectReferenceByPath(at);Qt&&Qt.commandLine.fileNames.forEach(pr=>ya(t.toPath(pr)))}function ya(at){vo(re,at,jO),vo(_e,at,tre)}function Ls(at,Zt){if(!at)return!1;let Qt=!1;return at.forEach(pr=>{if(!(pr.isInvalidated||!Zt(pr))){pr.isInvalidated=Qt=!0;for(let Et of $.checkDefined(pr.files))(u??(u=new Set)).add(Et),C=C||au(Et,$z)}}),Qt}function yc(at){ya(at);let Zt=C;Ls(k.get(at),AT)&&C&&!Zt&&t.onChangedAutomaticTypeDirectiveNames()}function Cn(at){$.assert(_===at||_===void 0),_=at}function Es(at,Zt){if(Zt)(J||(J=new Set)).add(at);else{let Qt=coe(at);if(!Qt||(at=Qt,t.fileIsOpen(at)))return!1;let pr=mo(at);if($t(at)||CO(at)||$t(pr)||CO(pr))(M||(M=new Set)).add(at),(U||(U=new Set)).add(at);else{if(COe(t.getCurrentProgram(),at)||Au(at,".map"))return!1;(M||(M=new Set)).add(at),(U||(U=new Set)).add(at);let Et=lK(at,!0);Et&&(U||(U=new Set)).add(Et)}}t.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Dt(){let at=ae.getPackageJsonInfoCache().getInternalMap();at&&(M||U||J)&&at.forEach((Zt,Qt)=>Bt(Qt)?at.delete(Qt):void 0)}function ur(){var at;if(G)return O=void 0,Dt(),(M||U||J||F)&&Ls(le,Ee),M=void 0,U=void 0,J=void 0,F=void 0,!0;let Zt=!1;return O&&((at=t.getCurrentProgram())==null||at.getSourceFiles().forEach(Qt=>{Pt(Qt.packageJsonLocations,pr=>O.has(pr))&&((u??(u=new Set)).add(Qt.path),Zt=!0)}),O=void 0),!M&&!U&&!J&&!F||(Zt=Ls(y,Ee)||Zt,Dt(),M=void 0,U=void 0,J=void 0,Zt=Ls(g,ye)||Zt,F=void 0),Zt}function Ee(at){var Zt;return ye(at)?!0:!M&&!U&&!J?!1:((Zt=at.failedLookupLocations)==null?void 0:Zt.some(Qt=>Bt(t.toPath(Qt))))||!!at.alternateResult&&Bt(t.toPath(at.alternateResult))}function Bt(at){return M?.has(at)||pt(U?.keys()||[],Zt=>Ca(at,Zt)?!0:void 0)||pt(J?.keys()||[],Zt=>at.length>Zt.length&&Ca(at,Zt)&&(jI(Zt)||at[Zt.length]===Gl)?!0:void 0)}function ye(at){var Zt;return!!F&&((Zt=at.affectingLocations)==null?void 0:Zt.some(Qt=>F.has(Qt)))}function et(){dg(ut,W1)}function Ct(at){return ar(at)?t.watchTypeRootsDirectory(at,Zt=>{let Qt=t.toPath(Zt);Q&&Q.addOrDeleteFileOrDirectory(Zt,Qt),C=!0,t.onChangedAutomaticTypeDirectiveNames();let pr=iFe(at,t.toPath(at),Ce,Ae,Fe,Z,t.preferNonRecursiveWatch,Et=>be.has(Et)||ze.has(Et));pr&&Es(Qt,pr===Qt)},1):JL}function Ot(){let at=t.getCompilationSettings();if(at.types){et();return}let Zt=Tz(at,{getCurrentDirectory:Z});Zt?BU(ut,new Set(Zt),{createNewValue:Ct,onDeleteValue:W1}):et()}function ar(at){return t.getCompilationSettings().typeRoots?!0:tFe(t.toPath(at))}}function rcr(t){var n,a;return!!((n=t.resolvedModule)!=null&&n.originalPath||(a=t.resolvedTypeReferenceDirective)!=null&&a.originalPath)}var gdt=f_?{getCurrentDirectory:()=>f_.getCurrentDirectory(),getNewLine:()=>f_.newLine,getCanonicalFileName:_d(f_.useCaseSensitiveFileNames)}:void 0;function LF(t,n){let a=t===f_&&gdt?gdt:{getCurrentDirectory:()=>t.getCurrentDirectory(),getNewLine:()=>t.newLine,getCanonicalFileName:_d(t.useCaseSensitiveFileNames)};if(!n)return u=>t.write(w0e(u,a));let c=new Array(1);return u=>{c[0]=u,t.write(OOe(c,a)+a.getNewLine()),c[0]=void 0}}function ydt(t,n,a){return t.clearScreen&&!a.preserveWatchOutput&&!a.extendedDiagnostics&&!a.diagnostics&&un(vdt,n.code)?(t.clearScreen(),!0):!1}var vdt=[x.Starting_compilation_in_watch_mode.code,x.File_change_detected_Starting_incremental_compilation.code];function ncr(t,n){return un(vdt,t.code)?n+n:n}function OK(t){return t.now?t.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function Q0e(t,n){return n?(a,c,u)=>{ydt(t,a,u);let _=`[${IP(OK(t),"\x1B[90m")}] `;_+=`${RS(a.messageText,t.newLine)}${c+c}`,t.write(_)}:(a,c,u)=>{let _="";ydt(t,a,u)||(_+=c),_+=`${OK(t)} - `,_+=`${RS(a.messageText,t.newLine)}${ncr(a,c)}`,t.write(_)}}function sFe(t,n,a,c,u,_){let f=u;f.onUnRecoverableConfigFileDiagnostic=g=>xdt(u,_,g);let y=rK(t,n,f,a,c);return f.onUnRecoverableConfigFileDiagnostic=void 0,y}function uoe(t){return Lo(t,n=>n.category===1)}function poe(t){return yr(t,a=>a.category===1).map(a=>{if(a.file!==void 0)return`${a.file.fileName}`}).map(a=>{if(a===void 0)return;let c=wt(t,u=>u.file!==void 0&&u.file.fileName===a);if(c!==void 0){let{line:u}=qs(c.file,c.start);return{fileName:a,line:u+1}}})}function Z0e(t){return t===1?x.Found_1_error_Watching_for_file_changes:x.Found_0_errors_Watching_for_file_changes}function Sdt(t,n){let a=IP(":"+t.line,"\x1B[90m");return YD(t.fileName)&&YD(n)?lh(n,t.fileName,!1)+a:t.fileName+a}function X0e(t,n,a,c){if(t===0)return"";let u=n.filter(T=>T!==void 0),_=u.map(T=>`${T.fileName}:${T.line}`).filter((T,C,O)=>O.indexOf(T)===C),f=u[0]&&Sdt(u[0],c.getCurrentDirectory()),y;t===1?y=n[0]!==void 0?[x.Found_1_error_in_0,f]:[x.Found_1_error]:y=_.length===0?[x.Found_0_errors,t]:_.length===1?[x.Found_0_errors_in_the_same_file_starting_at_Colon_1,t,f]:[x.Found_0_errors_in_1_files,t,_.length];let g=bp(...y),k=_.length>1?icr(u,c):"";return`${a}${RS(g.messageText,a)}${a}${a}${k}`}function icr(t,n){let a=t.filter((C,O,F)=>O===F.findIndex(M=>M?.fileName===C?.fileName));if(a.length===0)return"";let c=C=>Math.log(C)*Math.LOG10E+1,u=a.map(C=>[C,Lo(t,O=>O.fileName===C.fileName)]),_=Q2(u,0,C=>C[1]),f=x.Errors_Files.message,y=f.split(" ")[0].length,g=Math.max(y,c(_)),k=Math.max(c(_)-y,0),T="";return T+=" ".repeat(k)+f+` -`,u.forEach(C=>{let[O,F]=C,M=Math.log(F)*Math.LOG10E+1|0,U=M{n(c.fileName)})}function e1e(t,n){var a,c;let u=t.getFileIncludeReasons(),_=f=>BI(f,t.getCurrentDirectory(),t.getCanonicalFileName);for(let f of t.getSourceFiles())n(`${qL(f,_)}`),(a=u.get(f.path))==null||a.forEach(y=>n(` ${i1e(t,y,_).messageText}`)),(c=t1e(f,t.getCompilerOptionsForFile(f),_))==null||c.forEach(y=>n(` ${y.messageText}`))}function t1e(t,n,a){var c;let u;if(t.path!==t.resolvedPath&&(u??(u=[])).push(ws(void 0,x.File_is_output_of_project_reference_source_0,qL(t.originalFileName,a))),t.redirectInfo&&(u??(u=[])).push(ws(void 0,x.File_redirects_to_file_0,qL(t.redirectInfo.redirectTarget,a))),Lg(t))switch(b3(t,n)){case 99:t.packageJsonScope&&(u??(u=[])).push(ws(void 0,x.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,qL(Sn(t.packageJsonLocations),a)));break;case 1:t.packageJsonScope?(u??(u=[])).push(ws(void 0,t.packageJsonScope.contents.packageJsonContent.type?x.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:x.File_is_CommonJS_module_because_0_does_not_have_field_type,qL(Sn(t.packageJsonLocations),a))):(c=t.packageJsonLocations)!=null&&c.length&&(u??(u=[])).push(ws(void 0,x.File_is_CommonJS_module_because_package_json_was_not_found));break}return u}function r1e(t,n){var a;let c=t.getCompilerOptions().configFile;if(!((a=c?.configFileSpecs)!=null&&a.validatedFilesSpec))return;let u=t.getCanonicalFileName(n),_=mo(za(c.fileName,t.getCurrentDirectory())),f=hr(c.configFileSpecs.validatedFilesSpec,y=>t.getCanonicalFileName(za(y,_))===u);return f!==-1?c.configFileSpecs.validatedFilesSpecBeforeSubstitution[f]:void 0}function n1e(t,n){var a,c;let u=t.getCompilerOptions().configFile;if(!((a=u?.configFileSpecs)!=null&&a.validatedIncludeSpecs))return;if(u.configFileSpecs.isDefaultIncludeSpec)return!0;let _=Au(n,".json"),f=mo(za(u.fileName,t.getCurrentDirectory())),y=t.useCaseSensitiveFileNames(),g=hr((c=u?.configFileSpecs)==null?void 0:c.validatedIncludeSpecs,k=>{if(_&&!au(k,".json"))return!1;let T=Vhe(k,f,"files");return!!T&&mE(`(?:${T})$`,y).test(n)});return g!==-1?u.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[g]:void 0}function i1e(t,n,a){var c,u;let _=t.getCompilerOptions();if(MA(n)){let f=Uz(t,n),y=UL(f)?f.file.text.substring(f.pos,f.end):`"${f.text}"`,g;switch($.assert(UL(f)||n.kind===3,"Only synthetic references are imports"),n.kind){case 3:UL(f)?g=f.packageId?x.Imported_via_0_from_file_1_with_packageId_2:x.Imported_via_0_from_file_1:f.text===nC?g=f.packageId?x.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:x.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:g=f.packageId?x.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:x.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:$.assert(!f.packageId),g=x.Referenced_via_0_from_file_1;break;case 5:g=f.packageId?x.Type_library_referenced_via_0_from_file_1_with_packageId_2:x.Type_library_referenced_via_0_from_file_1;break;case 7:$.assert(!f.packageId),g=x.Library_referenced_via_0_from_file_1;break;default:$.assertNever(n)}return ws(void 0,g,y,qL(f.file,a),f.packageId&&cA(f.packageId))}switch(n.kind){case 0:if(!((c=_.configFile)!=null&&c.configFileSpecs))return ws(void 0,x.Root_file_specified_for_compilation);let f=za(t.getRootFileNames()[n.index],t.getCurrentDirectory());if(r1e(t,f))return ws(void 0,x.Part_of_files_list_in_tsconfig_json);let g=n1e(t,f);return Ni(g)?ws(void 0,x.Matched_by_include_pattern_0_in_1,g,qL(_.configFile,a)):ws(void 0,g?x.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:x.Root_file_specified_for_compilation);case 1:case 2:let k=n.kind===2,T=$.checkDefined((u=t.getResolvedProjectReferences())==null?void 0:u[n.index]);return ws(void 0,_.outFile?k?x.Output_from_referenced_project_0_included_because_1_specified:x.Source_from_referenced_project_0_included_because_1_specified:k?x.Output_from_referenced_project_0_included_because_module_is_specified_as_none:x.Source_from_referenced_project_0_included_because_module_is_specified_as_none,qL(T.sourceFile.fileName,a),_.outFile?"--outFile":"--out");case 8:{let C=_.types?n.packageId?[x.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,n.typeReference,cA(n.packageId)]:[x.Entry_point_of_type_library_0_specified_in_compilerOptions,n.typeReference]:n.packageId?[x.Entry_point_for_implicit_type_library_0_with_packageId_1,n.typeReference,cA(n.packageId)]:[x.Entry_point_for_implicit_type_library_0,n.typeReference];return ws(void 0,...C)}case 6:{if(n.index!==void 0)return ws(void 0,x.Library_0_specified_in_compilerOptions,_.lib[n.index]);let C=sne($c(_)),O=C?[x.Default_library_for_target_0,C]:[x.Default_library];return ws(void 0,...O)}default:$.assertNever(n)}}function qL(t,n){let a=Ni(t)?t:t.fileName;return n?n(a):a}function _oe(t,n,a,c,u,_,f,y){let g=t.getCompilerOptions(),k=t.getConfigFileParsingDiagnostics().slice(),T=k.length;En(k,t.getSyntacticDiagnostics(void 0,_)),k.length===T&&(En(k,t.getOptionsDiagnostics(_)),g.listFilesOnly||(En(k,t.getGlobalDiagnostics(_)),k.length===T&&En(k,t.getSemanticDiagnostics(void 0,_)),g.noEmit&&fg(g)&&k.length===T&&En(k,t.getDeclarationDiagnostics(void 0,_))));let C=g.listFilesOnly?{emitSkipped:!0,diagnostics:j}:t.emit(void 0,u,_,f,y);En(k,C.diagnostics);let O=nr(k);if(O.forEach(n),a){let F=t.getCurrentDirectory();X(C.emittedFiles,M=>{let U=za(M,F);a(`TSFILE: ${U}`)}),ocr(t,a)}return c&&c(uoe(O),poe(O)),{emitResult:C,diagnostics:O}}function o1e(t,n,a,c,u,_,f,y){let{emitResult:g,diagnostics:k}=_oe(t,n,a,c,u,_,f,y);return g.emitSkipped&&k.length>0?1:k.length>0?2:0}var JL={close:zs},qz=()=>JL;function a1e(t=f_,n){return{onWatchStatusChange:n||Q0e(t),watchFile:ja(t,t.watchFile)||qz,watchDirectory:ja(t,t.watchDirectory)||qz,setTimeout:ja(t,t.setTimeout)||zs,clearTimeout:ja(t,t.clearTimeout)||zs,preferNonRecursiveWatch:t.preferNonRecursiveWatch}}var cf={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"};function s1e(t,n){let a=t.trace?n.extendedDiagnostics?2:n.diagnostics?1:0:0,c=a!==0?_=>t.trace(_):zs,u=E0e(t,a,c);return u.writeLog=c,u}function c1e(t,n,a=t){let c=t.useCaseSensitiveFileNames(),u={getSourceFile:D0e((_,f)=>f?t.readFile(_,f):u.readFile(_),void 0),getDefaultLibLocation:ja(t,t.getDefaultLibLocation),getDefaultLibFileName:_=>t.getDefaultLibFileName(_),writeFile:A0e((_,f,y)=>t.writeFile(_,f,y),_=>t.createDirectory(_),_=>t.directoryExists(_)),getCurrentDirectory:Ef(()=>t.getCurrentDirectory()),useCaseSensitiveFileNames:()=>c,getCanonicalFileName:_d(c),getNewLine:()=>fE(n()),fileExists:_=>t.fileExists(_),readFile:_=>t.readFile(_),trace:ja(t,t.trace),directoryExists:ja(a,a.directoryExists),getDirectories:ja(a,a.getDirectories),realpath:ja(t,t.realpath),getEnvironmentVariable:ja(t,t.getEnvironmentVariable)||(()=>""),createHash:ja(t,t.createHash),readDirectory:ja(t,t.readDirectory),storeSignatureInfo:t.storeSignatureInfo,jsDocParsingMode:t.jsDocParsingMode};return u}function doe(t,n){if(n.match(N8e)){let a=n.length,c=a;for(let u=a-1;u>=0;u--){let _=n.charCodeAt(u);switch(_){case 10:u&&n.charCodeAt(u-1)===13&&u--;case 13:break;default:if(_<127||!Dd(_)){c=u;continue}break}let f=n.substring(c,a);if(f.match(Zye)){n=n.substring(0,c);break}else if(!f.match(Xye))break;a=c}}return(t.createHash||qk)(n)}function foe(t){let n=t.getSourceFile;t.getSourceFile=(...a)=>{let c=n.call(t,...a);return c&&(c.version=doe(t,c.text)),c}}function l1e(t,n){let a=Ef(()=>mo(Qs(t.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames,getNewLine:()=>t.newLine,getCurrentDirectory:Ef(()=>t.getCurrentDirectory()),getDefaultLibLocation:a,getDefaultLibFileName:c=>Xi(a(),kn(c)),fileExists:c=>t.fileExists(c),readFile:(c,u)=>t.readFile(c,u),directoryExists:c=>t.directoryExists(c),getDirectories:c=>t.getDirectories(c),readDirectory:(c,u,_,f,y)=>t.readDirectory(c,u,_,f,y),realpath:ja(t,t.realpath),getEnvironmentVariable:ja(t,t.getEnvironmentVariable),trace:c=>t.write(c+t.newLine),createDirectory:c=>t.createDirectory(c),writeFile:(c,u,_)=>t.writeFile(c,u,_),createHash:ja(t,t.createHash),createProgram:n||W0e,storeSignatureInfo:t.storeSignatureInfo,now:ja(t,t.now)}}function bdt(t=f_,n,a,c){let u=f=>t.write(f+t.newLine),_=l1e(t,n);return zm(_,a1e(t,c)),_.afterProgramCreate=f=>{let y=f.getCompilerOptions(),g=fE(y);_oe(f,a,u,k=>_.onWatchStatusChange(bp(Z0e(k),k),g,y,k))},_}function xdt(t,n,a){n(a),t.exit(1)}function u1e({configFileName:t,optionsToExtend:n,watchOptionsToExtend:a,extraFileExtensions:c,system:u,createProgram:_,reportDiagnostic:f,reportWatchStatus:y}){let g=f||LF(u),k=bdt(u,_,g,y);return k.onUnRecoverableConfigFileDiagnostic=T=>xdt(u,g,T),k.configFileName=t,k.optionsToExtend=n,k.watchOptionsToExtend=a,k.extraFileExtensions=c,k}function p1e({rootFiles:t,options:n,watchOptions:a,projectReferences:c,system:u,createProgram:_,reportDiagnostic:f,reportWatchStatus:y}){let g=bdt(u,_,f||LF(u),y);return g.rootFiles=t,g.options=n,g.watchOptions=a,g.projectReferences=c,g}function cFe(t){let n=t.system||f_,a=t.host||(t.host=hoe(t.options,n)),c=lFe(t),u=o1e(c,t.reportDiagnostic||LF(n),_=>a.trace&&a.trace(_),t.reportErrorSummary||t.options.pretty?(_,f)=>n.write(X0e(_,f,n.newLine,a)):void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(c),u}function moe(t,n){let a=LA(t);if(!a)return;let c;if(n.getBuildInfo)c=n.getBuildInfo(a,t.configFilePath);else{let u=n.readFile(a);if(!u)return;c=S0e(a,u)}if(!(!c||c.version!==L||!PK(c)))return XOe(c,a,n)}function hoe(t,n=f_){let a=Qie(t,void 0,n);return a.createHash=ja(n,n.createHash),a.storeSignatureInfo=n.storeSignatureInfo,foe(a),Bz(a,c=>wl(c,a.getCurrentDirectory(),a.getCanonicalFileName)),a}function lFe({rootNames:t,options:n,configFileParsingDiagnostics:a,projectReferences:c,host:u,createProgram:_}){u=u||hoe(n),_=_||W0e;let f=moe(n,u);return _(t,n,u,f,a,c)}function Tdt(t,n,a,c,u,_,f,y){return Zn(t)?p1e({rootFiles:t,options:n,watchOptions:y,projectReferences:f,system:a,createProgram:c,reportDiagnostic:u,reportWatchStatus:_}):u1e({configFileName:t,optionsToExtend:n,watchOptionsToExtend:f,extraFileExtensions:y,system:a,createProgram:c,reportDiagnostic:u,reportWatchStatus:_})}function _1e(t){let n,a,c,u,_=new Map([[void 0,void 0]]),f,y,g,k,T=t.extendedConfigCache,C=!1,O=new Map,F,M=!1,U=t.useCaseSensitiveFileNames(),J=t.getCurrentDirectory(),{configFileName:G,optionsToExtend:Z={},watchOptionsToExtend:Q,extraFileExtensions:re,createProgram:ae}=t,{rootFiles:_e,options:me,watchOptions:le,projectReferences:Oe}=t,be,ue,De=!1,Ce=!1,Ae=G===void 0?void 0:Gie(t,J,U),Fe=Ae||t,Be=ioe(t,Fe),de=Nn();G&&t.configFileParsingResult&&(Cn(t.configFileParsingResult),de=Nn()),oo(x.Starting_compilation_in_watch_mode),G&&!t.configFileParsingResult&&(de=fE(Z),$.assert(!_e),yc(),de=Nn()),$.assert(me),$.assert(_e);let{watchFile:ze,watchDirectory:ut,writeLog:je}=s1e(t,me),ve=_d(U);je(`Current directory: ${J} CaseSensitiveFileNames: ${U}`);let Le;G&&(Le=ze(G,ai,2e3,le,cf.ConfigFile));let Ve=c1e(t,()=>me,Fe);foe(Ve);let nt=Ve.getSourceFile;Ve.getSourceFile=(Qt,...pr)=>is(Qt,$t(Qt),...pr),Ve.getSourceFileByPath=is,Ve.getNewLine=()=>de,Ve.fileExists=Ko,Ve.onReleaseOldSourceFile=Wa,Ve.onReleaseParsedCommandLine=ur,Ve.toPath=$t,Ve.getCompilationSettings=()=>me,Ve.useSourceOfProjectReferenceRedirect=ja(t,t.useSourceOfProjectReferenceRedirect),Ve.preferNonRecursiveWatch=t.preferNonRecursiveWatch,Ve.watchDirectoryOfFailedLookupLocation=(Qt,pr,Et)=>ut(Qt,pr,Et,le,cf.FailedLookupLocations),Ve.watchAffectingFileLocation=(Qt,pr)=>ze(Qt,pr,2e3,le,cf.AffectingFileLocation),Ve.watchTypeRootsDirectory=(Qt,pr,Et)=>ut(Qt,pr,Et,le,cf.TypeRoots),Ve.getCachedDirectoryStructureHost=()=>Ae,Ve.scheduleInvalidateResolutionsOfFailedLookupLocations=ft,Ve.onInvalidatedResolution=Wr,Ve.onChangedAutomaticTypeDirectiveNames=Wr,Ve.fileIsOpen=Yf,Ve.getCurrentProgram=St,Ve.writeLog=je,Ve.getParsedCommandLine=Es;let It=K0e(Ve,G?mo(za(G,J)):J,!1);Ve.resolveModuleNameLiterals=ja(t,t.resolveModuleNameLiterals),Ve.resolveModuleNames=ja(t,t.resolveModuleNames),!Ve.resolveModuleNameLiterals&&!Ve.resolveModuleNames&&(Ve.resolveModuleNameLiterals=It.resolveModuleNameLiterals.bind(It)),Ve.resolveTypeReferenceDirectiveReferences=ja(t,t.resolveTypeReferenceDirectiveReferences),Ve.resolveTypeReferenceDirectives=ja(t,t.resolveTypeReferenceDirectives),!Ve.resolveTypeReferenceDirectiveReferences&&!Ve.resolveTypeReferenceDirectives&&(Ve.resolveTypeReferenceDirectiveReferences=It.resolveTypeReferenceDirectiveReferences.bind(It)),Ve.resolveLibrary=t.resolveLibrary?t.resolveLibrary.bind(t):It.resolveLibrary.bind(It),Ve.getModuleResolutionCache=t.resolveModuleNameLiterals||t.resolveModuleNames?ja(t,t.getModuleResolutionCache):()=>It.getModuleResolutionCache();let _t=!!t.resolveModuleNameLiterals||!!t.resolveTypeReferenceDirectiveReferences||!!t.resolveModuleNames||!!t.resolveTypeReferenceDirectives?ja(t,t.hasInvalidatedResolutions)||AT:Yf,Se=t.resolveLibrary?ja(t,t.hasInvalidatedLibResolutions)||AT:Yf;return n=moe(me,Ve),Kt(),G?{getCurrentProgram:We,getProgram:Eo,close:tt,getResolutionCache:Qe}:{getCurrentProgram:We,getProgram:Eo,updateRootFileNames:nn,close:tt,getResolutionCache:Qe};function tt(){$o(),It.clear(),dg(O,Qt=>{Qt&&Qt.fileWatcher&&(Qt.fileWatcher.close(),Qt.fileWatcher=void 0)}),Le&&(Le.close(),Le=void 0),T?.clear(),T=void 0,k&&(dg(k,C0),k=void 0),u&&(dg(u,C0),u=void 0),c&&(dg(c,W1),c=void 0),g&&(dg(g,Qt=>{var pr;(pr=Qt.watcher)==null||pr.close(),Qt.watcher=void 0,Qt.watchedDirectories&&dg(Qt.watchedDirectories,C0),Qt.watchedDirectories=void 0}),g=void 0),n=void 0}function Qe(){return It}function We(){return n}function St(){return n&&n.getProgramOrUndefined()}function Kt(){je("Synchronizing program"),$.assert(me),$.assert(_e),$o();let Qt=We();M&&(de=Nn(),Qt&&Yte(Qt.getCompilerOptions(),me)&&It.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:pr,hasInvalidatedLibResolutions:Et}=It.createHasInvalidatedResolutions(_t,Se),{originalReadFile:xr,originalFileExists:gi,originalDirectoryExists:Ye,originalCreateDirectory:er,originalWriteFile:Ne,readFileWithCache:Y}=Bz(Ve,$t);return R0e(St(),_e,me,ot=>uo(ot,Y),ot=>Ve.fileExists(ot),pr,Et,Oi,Es,Oe)?Ce&&(C&&oo(x.File_change_detected_Starting_incremental_compilation),n=ae(void 0,void 0,Ve,n,ue,Oe),Ce=!1):(C&&oo(x.File_change_detected_Starting_incremental_compilation),Sr(pr,Et)),C=!1,t.afterProgramCreate&&Qt!==n&&t.afterProgramCreate(n),Ve.readFile=xr,Ve.fileExists=gi,Ve.directoryExists=Ye,Ve.createDirectory=er,Ve.writeFile=Ne,_?.forEach((ot,pe)=>{if(!pe)Ot(),G&&at($t(G),me,le,cf.ExtendedConfigFile);else{let Gt=g?.get(pe);Gt&&Zt(ot,pe,Gt)}}),_=void 0,n}function Sr(Qt,pr){je("CreatingProgramWith::"),je(` roots: ${JSON.stringify(_e)}`),je(` options: ${JSON.stringify(me)}`),Oe&&je(` projectReferences: ${JSON.stringify(Oe)}`);let Et=M||!St();M=!1,Ce=!1,It.startCachingPerDirectoryResolution(),Ve.hasInvalidatedResolutions=Qt,Ve.hasInvalidatedLibResolutions=pr,Ve.hasChangedAutomaticTypeDirectiveNames=Oi;let xr=St();if(n=ae(_e,me,Ve,n,ue,Oe),It.finishCachingPerDirectoryResolution(n.getProgram(),xr),T0e(n.getProgram(),c||(c=new Map),et),Et&&It.updateTypeRootsWatch(),F){for(let gi of F)c.has(gi)||O.delete(gi);F=void 0}}function nn(Qt){$.assert(!G,"Cannot update root file names with config file watch mode"),_e=Qt,Wr()}function Nn(){return fE(me||Z)}function $t(Qt){return wl(Qt,J,ve)}function Dr(Qt){return typeof Qt=="boolean"}function Qn(Qt){return typeof Qt.version=="boolean"}function Ko(Qt){let pr=$t(Qt);return Dr(O.get(pr))?!1:Fe.fileExists(Qt)}function is(Qt,pr,Et,xr,gi){let Ye=O.get(pr);if(Dr(Ye))return;let er=typeof Et=="object"?Et.impliedNodeFormat:void 0;if(Ye===void 0||gi||Qn(Ye)||Ye.sourceFile.impliedNodeFormat!==er){let Ne=nt(Qt,Et,xr);if(Ye)Ne?(Ye.sourceFile=Ne,Ye.version=Ne.version,Ye.fileWatcher||(Ye.fileWatcher=Ee(pr,Qt,Bt,250,le,cf.SourceFile))):(Ye.fileWatcher&&Ye.fileWatcher.close(),O.set(pr,!1));else if(Ne){let Y=Ee(pr,Qt,Bt,250,le,cf.SourceFile);O.set(pr,{sourceFile:Ne,version:Ne.version,fileWatcher:Y})}else O.set(pr,!1);return Ne}return Ye.sourceFile}function sr(Qt){let pr=O.get(Qt);pr!==void 0&&(Dr(pr)?O.set(Qt,{version:!1}):pr.version=!1)}function uo(Qt,pr){let Et=O.get(Qt);if(!Et)return;if(Et.version)return Et.version;let xr=pr(Qt);return xr!==void 0?doe(Ve,xr):void 0}function Wa(Qt,pr,Et){let xr=O.get(Qt.resolvedPath);xr!==void 0&&(Dr(xr)?(F||(F=[])).push(Qt.path):xr.sourceFile===Qt&&(xr.fileWatcher&&xr.fileWatcher.close(),O.delete(Qt.resolvedPath),Et||It.removeResolutionsOfFile(Qt.path)))}function oo(Qt){t.onWatchStatusChange&&t.onWatchStatusChange(bp(Qt),de,me||Z)}function Oi(){return It.hasChangedAutomaticTypeDirectiveNames()}function $o(){return y?(t.clearTimeout(y),y=void 0,!0):!1}function ft(){if(!t.setTimeout||!t.clearTimeout)return It.invalidateResolutionsOfFailedLookupLocations();let Qt=$o();je(`Scheduling invalidateFailedLookup${Qt?", Cancelled earlier one":""}`),y=t.setTimeout(Ht,250,"timerToInvalidateFailedLookupResolutions")}function Ht(){y=void 0,It.invalidateResolutionsOfFailedLookupLocations()&&Wr()}function Wr(){!t.setTimeout||!t.clearTimeout||(f&&t.clearTimeout(f),je("Scheduling update"),f=t.setTimeout(vo,250,"timerToUpdateProgram"))}function ai(){$.assert(!!G),a=2,Wr()}function vo(){f=void 0,C=!0,Eo()}function Eo(){switch(a){case 1:ya();break;case 2:Ls();break;default:Kt();break}return We()}function ya(){je("Reloading new file names and options"),$.assert(me),$.assert(G),a=0,_e=bz(me.configFile.configFileSpecs,za(mo(G),J),me,Be,re),Sie(_e,za(G,J),me.configFile.configFileSpecs,ue,De)&&(Ce=!0),Kt()}function Ls(){$.assert(G),je(`Reloading config file: ${G}`),a=0,Ae&&Ae.clearCache(),yc(),M=!0,(_??(_=new Map)).set(void 0,void 0),Kt()}function yc(){$.assert(G),Cn(rK(G,Z,Be,T||(T=new Map),Q,re))}function Cn(Qt){_e=Qt.fileNames,me=Qt.options,le=Qt.watchOptions,Oe=Qt.projectReferences,be=Qt.wildcardDirectories,ue=PP(Qt).slice(),De=sK(Qt.raw),Ce=!0}function Es(Qt){let pr=$t(Qt),Et=g?.get(pr);if(Et){if(!Et.updateLevel)return Et.parsedCommandLine;if(Et.parsedCommandLine&&Et.updateLevel===1&&!t.getParsedCommandLine){je("Reloading new file names and options"),$.assert(me);let gi=bz(Et.parsedCommandLine.options.configFile.configFileSpecs,za(mo(Qt),J),me,Be);return Et.parsedCommandLine={...Et.parsedCommandLine,fileNames:gi},Et.updateLevel=void 0,Et.parsedCommandLine}}je(`Loading config file: ${Qt}`);let xr=t.getParsedCommandLine?t.getParsedCommandLine(Qt):Dt(Qt);return Et?(Et.parsedCommandLine=xr,Et.updateLevel=void 0):(g||(g=new Map)).set(pr,Et={parsedCommandLine:xr}),(_??(_=new Map)).set(pr,Qt),xr}function Dt(Qt){let pr=Be.onUnRecoverableConfigFileDiagnostic;Be.onUnRecoverableConfigFileDiagnostic=zs;let Et=rK(Qt,void 0,Be,T||(T=new Map),Q);return Be.onUnRecoverableConfigFileDiagnostic=pr,Et}function ur(Qt){var pr;let Et=$t(Qt),xr=g?.get(Et);xr&&(g.delete(Et),xr.watchedDirectories&&dg(xr.watchedDirectories,C0),(pr=xr.watcher)==null||pr.close(),x0e(Et,k))}function Ee(Qt,pr,Et,xr,gi,Ye){return ze(pr,(er,Ne)=>Et(er,Ne,Qt),xr,gi,Ye)}function Bt(Qt,pr,Et){ye(Qt,Et,pr),pr===2&&O.has(Et)&&It.invalidateResolutionOfFile(Et),sr(Et),Wr()}function ye(Qt,pr,Et){Ae&&Ae.addOrDeleteFile(Qt,pr,Et)}function et(Qt,pr){return g?.has(Qt)?JL:Ee(Qt,pr,Ct,500,le,cf.MissingFile)}function Ct(Qt,pr,Et){ye(Qt,Et,pr),pr===0&&c.has(Et)&&(c.get(Et).close(),c.delete(Et),sr(Et),Wr())}function Ot(){EK(u||(u=new Map),be,ar)}function ar(Qt,pr){return ut(Qt,Et=>{$.assert(G),$.assert(me);let xr=$t(Et);Ae&&Ae.addOrDeleteFileOrDirectory(Et,xr),sr(xr),!kK({watchedDirPath:$t(Qt),fileOrDirectory:Et,fileOrDirectoryPath:xr,configFileName:G,extraFileExtensions:re,options:me,program:We()||_e,currentDirectory:J,useCaseSensitiveFileNames:U,writeLog:je,toPath:$t})&&a!==2&&(a=1,Wr())},pr,le,cf.WildcardDirectory)}function at(Qt,pr,Et,xr){Hie(Qt,pr,k||(k=new Map),(gi,Ye)=>ze(gi,(er,Ne)=>{var Y;ye(gi,Ye,Ne),T&&Kie(T,Ye,$t);let ot=(Y=k.get(Ye))==null?void 0:Y.projects;ot?.size&&ot.forEach(pe=>{if(G&&$t(G)===pe)a=2;else{let Gt=g?.get(pe);Gt&&(Gt.updateLevel=2),It.removeResolutionsFromProjectReferenceRedirects(pe)}Wr()})},2e3,Et,xr),$t)}function Zt(Qt,pr,Et){var xr,gi,Ye,er;Et.watcher||(Et.watcher=ze(Qt,(Ne,Y)=>{ye(Qt,pr,Y);let ot=g?.get(pr);ot&&(ot.updateLevel=2),It.removeResolutionsFromProjectReferenceRedirects(pr),Wr()},2e3,((xr=Et.parsedCommandLine)==null?void 0:xr.watchOptions)||le,cf.ConfigFileOfReferencedProject)),EK(Et.watchedDirectories||(Et.watchedDirectories=new Map),(gi=Et.parsedCommandLine)==null?void 0:gi.wildcardDirectories,(Ne,Y)=>{var ot;return ut(Ne,pe=>{let Gt=$t(pe);Ae&&Ae.addOrDeleteFileOrDirectory(pe,Gt),sr(Gt);let mr=g?.get(pr);mr?.parsedCommandLine&&(kK({watchedDirPath:$t(Ne),fileOrDirectory:pe,fileOrDirectoryPath:Gt,configFileName:Qt,options:mr.parsedCommandLine.options,program:mr.parsedCommandLine.fileNames,currentDirectory:J,useCaseSensitiveFileNames:U,writeLog:je,toPath:$t})||mr.updateLevel!==2&&(mr.updateLevel=1,Wr()))},Y,((ot=Et.parsedCommandLine)==null?void 0:ot.watchOptions)||le,cf.WildcardDirectoryOfReferencedProject)}),at(pr,(Ye=Et.parsedCommandLine)==null?void 0:Ye.options,((er=Et.parsedCommandLine)==null?void 0:er.watchOptions)||le,cf.ExtendedConfigOfReferencedProject)}}var uFe=(t=>(t[t.Unbuildable=0]="Unbuildable",t[t.UpToDate=1]="UpToDate",t[t.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",t[t.OutputMissing=3]="OutputMissing",t[t.ErrorReadingFile=4]="ErrorReadingFile",t[t.OutOfDateWithSelf=5]="OutOfDateWithSelf",t[t.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",t[t.OutOfDateBuildInfoWithPendingEmit=7]="OutOfDateBuildInfoWithPendingEmit",t[t.OutOfDateBuildInfoWithErrors=8]="OutOfDateBuildInfoWithErrors",t[t.OutOfDateOptions=9]="OutOfDateOptions",t[t.OutOfDateRoots=10]="OutOfDateRoots",t[t.UpstreamOutOfDate=11]="UpstreamOutOfDate",t[t.UpstreamBlocked=12]="UpstreamBlocked",t[t.ComputingUpstream=13]="ComputingUpstream",t[t.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",t[t.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",t[t.ContainerOnly=16]="ContainerOnly",t[t.ForceBuild=17]="ForceBuild",t))(uFe||{});function d1e(t){return Au(t,".json")?t:Xi(t,"tsconfig.json")}var acr=new Date(-864e13);function scr(t,n,a){let c=t.get(n),u;return c||(u=a(),t.set(n,u)),c||u}function pFe(t,n){return scr(t,n,()=>new Map)}function f1e(t){return t.now?t.now():new Date}function MF(t){return!!t&&!!t.buildOrder}function FK(t){return MF(t)?t.buildOrder:t}function goe(t,n){return a=>{let c=n?`[${IP(OK(t),"\x1B[90m")}] `:`${OK(t)} - `;c+=`${RS(a.messageText,t.newLine)}${t.newLine+t.newLine}`,t.write(c)}}function Edt(t,n,a,c){let u=l1e(t,n);return u.getModifiedTime=t.getModifiedTime?_=>t.getModifiedTime(_):Sx,u.setModifiedTime=t.setModifiedTime?(_,f)=>t.setModifiedTime(_,f):zs,u.deleteFile=t.deleteFile?_=>t.deleteFile(_):zs,u.reportDiagnostic=a||LF(t),u.reportSolutionBuilderStatus=c||goe(t),u.now=ja(t,t.now),u}function _Fe(t=f_,n,a,c,u){let _=Edt(t,n,a,c);return _.reportErrorSummary=u,_}function dFe(t=f_,n,a,c,u){let _=Edt(t,n,a,c),f=a1e(t,u);return zm(_,f),_}function ccr(t){let n={};return lie.forEach(a=>{Ho(t,a.name)&&(n[a.name]=t[a.name])}),n.tscBuild=!0,n}function fFe(t,n,a){return Vdt(!1,t,n,a)}function mFe(t,n,a,c){return Vdt(!0,t,n,a,c)}function lcr(t,n,a,c,u){let _=n,f=n,y=ccr(c),g=c1e(_,()=>U.projectCompilerOptions);foe(g),g.getParsedCommandLine=J=>VL(U,J,Ib(U,J)),g.resolveModuleNameLiterals=ja(_,_.resolveModuleNameLiterals),g.resolveTypeReferenceDirectiveReferences=ja(_,_.resolveTypeReferenceDirectiveReferences),g.resolveLibrary=ja(_,_.resolveLibrary),g.resolveModuleNames=ja(_,_.resolveModuleNames),g.resolveTypeReferenceDirectives=ja(_,_.resolveTypeReferenceDirectives),g.getModuleResolutionCache=ja(_,_.getModuleResolutionCache);let k,T;!g.resolveModuleNameLiterals&&!g.resolveModuleNames&&(k=FL(g.getCurrentDirectory(),g.getCanonicalFileName),g.resolveModuleNameLiterals=(J,G,Z,Q,re)=>DK(J,G,Z,Q,re,_,k,O0e),g.getModuleResolutionCache=()=>k),!g.resolveTypeReferenceDirectiveReferences&&!g.resolveTypeReferenceDirectives&&(T=Die(g.getCurrentDirectory(),g.getCanonicalFileName,void 0,k?.getPackageJsonInfoCache(),k?.optionsToRedirectsKey),g.resolveTypeReferenceDirectiveReferences=(J,G,Z,Q,re)=>DK(J,G,Z,Q,re,_,T,Yie));let C;g.resolveLibrary||(C=FL(g.getCurrentDirectory(),g.getCanonicalFileName,void 0,k?.getPackageJsonInfoCache()),g.resolveLibrary=(J,G,Z)=>Aie(J,G,Z,_,C)),g.getBuildInfo=(J,G)=>Ldt(U,J,Ib(U,G),void 0);let{watchFile:O,watchDirectory:F,writeLog:M}=s1e(f,c),U={host:_,hostWithWatch:f,parseConfigFileHost:ioe(_),write:ja(_,_.trace),options:c,baseCompilerOptions:y,rootNames:a,baseWatchOptions:u,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:g,moduleResolutionCache:k,typeReferenceDirectiveResolutionCache:T,libraryResolutionCache:C,buildOrder:void 0,readFileWithCache:J=>_.readFile(J),projectCompilerOptions:y,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:t,watch:t,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:O,watchDirectory:F,writeLog:M};return U}function Z1(t,n){return wl(n,t.compilerHost.getCurrentDirectory(),t.compilerHost.getCanonicalFileName)}function Ib(t,n){let{resolvedConfigFilePaths:a}=t,c=a.get(n);if(c!==void 0)return c;let u=Z1(t,n);return a.set(n,u),u}function kdt(t){return!!t.options}function ucr(t,n){let a=t.configFileCache.get(n);return a&&kdt(a)?a:void 0}function VL(t,n,a){let{configFileCache:c}=t,u=c.get(a);if(u)return kdt(u)?u:void 0;jl("SolutionBuilder::beforeConfigFileParsing");let _,{parseConfigFileHost:f,baseCompilerOptions:y,baseWatchOptions:g,extendedConfigCache:k,host:T}=t,C;return T.getParsedCommandLine?(C=T.getParsedCommandLine(n),C||(_=bp(x.File_0_not_found,n))):(f.onUnRecoverableConfigFileDiagnostic=O=>_=O,C=rK(n,y,f,k,g),f.onUnRecoverableConfigFileDiagnostic=zs),c.set(a,C||_),jl("SolutionBuilder::afterConfigFileParsing"),Jm("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),C}function RK(t,n){return d1e(mb(t.compilerHost.getCurrentDirectory(),n))}function Cdt(t,n){let a=new Map,c=new Map,u=[],_,f;for(let g of n)y(g);return f?{buildOrder:_||j,circularDiagnostics:f}:_||j;function y(g,k){let T=Ib(t,g);if(c.has(T))return;if(a.has(T)){k||(f||(f=[])).push(bp(x.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,u.join(`\r -`)));return}a.set(T,!0),u.push(g);let C=VL(t,g,T);if(C&&C.projectReferences)for(let O of C.projectReferences){let F=RK(t,O.path);y(F,k||O.circular)}u.pop(),c.set(T,!0),(_||(_=[])).push(g)}}function yoe(t){return t.buildOrder||pcr(t)}function pcr(t){let n=Cdt(t,t.rootNames.map(u=>RK(t,u)));t.resolvedConfigFilePaths.clear();let a=new Set(FK(n).map(u=>Ib(t,u))),c={onDeleteValue:zs};return Lx(t.configFileCache,a,c),Lx(t.projectStatus,a,c),Lx(t.builderPrograms,a,c),Lx(t.diagnostics,a,c),Lx(t.projectPendingBuild,a,c),Lx(t.projectErrorsReported,a,c),Lx(t.buildInfoCache,a,c),Lx(t.outputTimeStamps,a,c),Lx(t.lastCachedPackageJsonLookups,a,c),t.watch&&(Lx(t.allWatchedConfigFiles,a,{onDeleteValue:W1}),t.allWatchedExtendedConfigFiles.forEach(u=>{u.projects.forEach(_=>{a.has(_)||u.projects.delete(_)}),u.close()}),Lx(t.allWatchedWildcardDirectories,a,{onDeleteValue:u=>u.forEach(C0)}),Lx(t.allWatchedInputFiles,a,{onDeleteValue:u=>u.forEach(W1)}),Lx(t.allWatchedPackageJsonFiles,a,{onDeleteValue:u=>u.forEach(W1)})),t.buildOrder=n}function Ddt(t,n,a){let c=n&&RK(t,n),u=yoe(t);if(MF(u))return u;if(c){let f=Ib(t,c);if(hr(u,g=>Ib(t,g)===f)===-1)return}let _=c?Cdt(t,[c]):u;return $.assert(!MF(_)),$.assert(!a||c!==void 0),$.assert(!a||_[_.length-1]===c),a?_.slice(0,_.length-1):_}function Adt(t){t.cache&&hFe(t);let{compilerHost:n,host:a}=t,c=t.readFileWithCache,u=n.getSourceFile,{originalReadFile:_,originalFileExists:f,originalDirectoryExists:y,originalCreateDirectory:g,originalWriteFile:k,getSourceFileWithCache:T,readFileWithCache:C}=Bz(a,O=>Z1(t,O),(...O)=>u.call(n,...O));t.readFileWithCache=C,n.getSourceFile=T,t.cache={originalReadFile:_,originalFileExists:f,originalDirectoryExists:y,originalCreateDirectory:g,originalWriteFile:k,originalReadFileWithCache:c,originalGetSourceFile:u}}function hFe(t){if(!t.cache)return;let{cache:n,host:a,compilerHost:c,extendedConfigCache:u,moduleResolutionCache:_,typeReferenceDirectiveResolutionCache:f,libraryResolutionCache:y}=t;a.readFile=n.originalReadFile,a.fileExists=n.originalFileExists,a.directoryExists=n.originalDirectoryExists,a.createDirectory=n.originalCreateDirectory,a.writeFile=n.originalWriteFile,c.getSourceFile=n.originalGetSourceFile,t.readFileWithCache=n.originalReadFileWithCache,u.clear(),_?.clear(),f?.clear(),y?.clear(),t.cache=void 0}function wdt(t,n){t.projectStatus.delete(n),t.diagnostics.delete(n)}function Idt({projectPendingBuild:t},n,a){let c=t.get(n);(c===void 0||ct.projectPendingBuild.set(Ib(t,c),0)),n&&n.throwIfCancellationRequested()}var gFe=(t=>(t[t.Build=0]="Build",t[t.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",t))(gFe||{});function Ndt(t,n){return t.projectPendingBuild.delete(n),t.diagnostics.has(n)?1:0}function _cr(t,n,a,c,u){let _=!0;return{kind:1,project:n,projectPath:a,buildOrder:u,getCompilerOptions:()=>c.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{jdt(t,c,a),_=!1},done:()=>(_&&jdt(t,c,a),jl("SolutionBuilder::Timestamps only updates"),Ndt(t,a))}}function dcr(t,n,a,c,u,_,f){let y=0,g,k;return{kind:0,project:n,projectPath:a,buildOrder:f,getCompilerOptions:()=>u.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>C(vl),getProgram:()=>C(J=>J.getProgramOrUndefined()),getSourceFile:J=>C(G=>G.getSourceFile(J)),getSourceFiles:()=>O(J=>J.getSourceFiles()),getOptionsDiagnostics:J=>O(G=>G.getOptionsDiagnostics(J)),getGlobalDiagnostics:J=>O(G=>G.getGlobalDiagnostics(J)),getConfigFileParsingDiagnostics:()=>O(J=>J.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(J,G)=>O(Z=>Z.getSyntacticDiagnostics(J,G)),getAllDependencies:J=>O(G=>G.getAllDependencies(J)),getSemanticDiagnostics:(J,G)=>O(Z=>Z.getSemanticDiagnostics(J,G)),getSemanticDiagnosticsOfNextAffectedFile:(J,G)=>C(Z=>Z.getSemanticDiagnosticsOfNextAffectedFile&&Z.getSemanticDiagnosticsOfNextAffectedFile(J,G)),emit:(J,G,Z,Q,re)=>J||Q?C(ae=>{var _e,me;return ae.emit(J,G,Z,Q,re||((me=(_e=t.host).getCustomTransformers)==null?void 0:me.call(_e,n)))}):(U(0,Z),M(G,Z,re)),done:T};function T(J,G,Z){return U(3,J,G,Z),jl("SolutionBuilder::Projects built"),Ndt(t,a)}function C(J){return U(0),g&&J(g)}function O(J){return C(J)||j}function F(){var J,G,Z;if($.assert(g===void 0),t.options.dry){Jg(t,x.A_non_dry_build_would_build_project_0,n),k=1,y=2;return}if(t.options.verbose&&Jg(t,x.Building_project_0,n),u.fileNames.length===0){LK(t,a,PP(u)),k=0,y=2;return}let{host:Q,compilerHost:re}=t;if(t.projectCompilerOptions=u.options,(J=t.moduleResolutionCache)==null||J.update(u.options),(G=t.typeReferenceDirectiveResolutionCache)==null||G.update(u.options),g=Q.createProgram(u.fileNames,u.options,re,fcr(t,a,u),PP(u),u.projectReferences),t.watch){let ae=(Z=t.moduleResolutionCache)==null?void 0:Z.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(a,ae&&new Set(so(ae.values(),_e=>t.host.realpath&&(Cie(_e)||_e.directoryExists)?t.host.realpath(Xi(_e.packageDirectory,"package.json")):Xi(_e.packageDirectory,"package.json")))),t.builderPrograms.set(a,g)}y++}function M(J,G,Z){var Q,re,ae;$.assertIsDefined(g),$.assert(y===1);let{host:_e,compilerHost:me}=t,le=new Map,Oe=g.getCompilerOptions(),be=dP(Oe),ue,De,{emitResult:Ce,diagnostics:Ae}=_oe(g,Fe=>_e.reportDiagnostic(Fe),t.write,void 0,(Fe,Be,de,ze,ut,je)=>{var ve;let Le=Z1(t,Fe);if(le.set(Z1(t,Fe),Fe),je?.buildInfo){De||(De=f1e(t.host));let nt=(ve=g.hasChangedEmitSignature)==null?void 0:ve.call(g),It=g1e(t,Fe,a);It?(It.buildInfo=je.buildInfo,It.modifiedTime=De,nt&&(It.latestChangedDtsTime=De)):t.buildInfoCache.set(a,{path:Z1(t,Fe),buildInfo:je.buildInfo,modifiedTime:De,latestChangedDtsTime:nt?De:void 0})}let Ve=je?.differsOnlyInMap?OT(t.host,Fe):void 0;(J||me.writeFile)(Fe,Be,de,ze,ut,je),je?.differsOnlyInMap?t.host.setModifiedTime(Fe,Ve):!be&&t.watch&&(ue||(ue=vFe(t,a))).set(Le,De||(De=f1e(t.host)))},G,void 0,Z||((re=(Q=t.host).getCustomTransformers)==null?void 0:re.call(Q,n)));return(!Oe.noEmitOnError||!Ae.length)&&(le.size||_.type!==8)&&Mdt(t,u,a,x.Updating_unchanged_output_timestamps_of_project_0,le),t.projectErrorsReported.set(a,!0),k=(ae=g.hasChangedEmitSignature)!=null&&ae.call(g)?0:2,Ae.length?(t.diagnostics.set(a,Ae),t.projectStatus.set(a,{type:0,reason:"it had errors"}),k|=4):(t.diagnostics.delete(a),t.projectStatus.set(a,{type:1,oldestOutputFileName:ia(le.values())??g0e(u,!_e.useCaseSensitiveFileNames())})),mcr(t,g),y=2,Ce}function U(J,G,Z,Q){for(;y<=J&&y<3;){let re=y;switch(y){case 0:F();break;case 1:M(Z,G,Q);break;case 2:vcr(t,n,a,c,u,f,$.checkDefined(k)),y++;break;default:}$.assert(y>re)}}}function Odt(t,n,a){if(!t.projectPendingBuild.size||MF(n))return;let{options:c,projectPendingBuild:u}=t;for(let _=0;_{let F=$.checkDefined(t.filesWatched.get(y));$.assert(m1e(F)),F.modifiedTime=O,F.callbacks.forEach(M=>M(T,C,O))},c,u,_,f);t.filesWatched.set(y,{callbacks:[a],watcher:k,modifiedTime:g})}return{close:()=>{let k=$.checkDefined(t.filesWatched.get(y));$.assert(m1e(k)),k.callbacks.length===1?(t.filesWatched.delete(y),C0(k)):pb(k.callbacks,a)}}}function vFe(t,n){if(!t.watch)return;let a=t.outputTimeStamps.get(n);return a||t.outputTimeStamps.set(n,a=new Map),a}function g1e(t,n,a){let c=Z1(t,n),u=t.buildInfoCache.get(a);return u?.path===c?u:void 0}function Ldt(t,n,a,c){let u=Z1(t,n),_=t.buildInfoCache.get(a);if(_!==void 0&&_.path===u)return _.buildInfo||void 0;let f=t.readFileWithCache(n),y=f?S0e(n,f):void 0;return t.buildInfoCache.set(a,{path:u,buildInfo:y||!1,modifiedTime:c||Wm}),y}function SFe(t,n,a,c){let u=Rdt(t,n);if(are&&(Q=Ae,re=Fe),_e.add(Be)}let le;if(J?(me||(me=J0e(J,C,T)),le=Ad(me.roots,(Ae,Fe)=>_e.has(Fe)?void 0:Fe)):le=X(YOe(U,C,T),Ae=>_e.has(Ae)?void 0:Ae),le)return{type:10,buildInfoFile:C,inputFile:le};if(!O){let Ae=Wie(n,!T.useCaseSensitiveFileNames()),Fe=vFe(t,a);for(let Be of Ae){if(Be===C)continue;let de=Z1(t,Be),ze=Fe?.get(de);if(ze||(ze=OT(t.host,Be),Fe?.set(de,ze)),ze===Wm)return{type:3,missingOutputFileName:Be};if(zeSFe(t,Ae,G,Z));if(ue)return ue;let De=t.lastCachedPackageJsonLookups.get(a),Ce=De&&Ix(De,Ae=>SFe(t,Ae,G,Z));return Ce||{type:Oe?2:ae?15:1,newestInputFileTime:re,newestInputFileName:Q,oldestOutputFileName:Z}}function gcr(t,n,a){return t.buildInfoCache.get(a).path===n.path}function bFe(t,n,a){if(n===void 0)return{type:0,reason:"config file deleted mid-build"};let c=t.projectStatus.get(a);if(c!==void 0)return c;jl("SolutionBuilder::beforeUpToDateCheck");let u=hcr(t,n,a);return jl("SolutionBuilder::afterUpToDateCheck"),Jm("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),t.projectStatus.set(a,u),u}function Mdt(t,n,a,c,u){if(n.options.noEmit)return;let _,f=LA(n.options),y=dP(n.options);if(f&&y){u?.has(Z1(t,f))||(t.options.verbose&&Jg(t,c,n.options.configFilePath),t.host.setModifiedTime(f,_=f1e(t.host)),g1e(t,f,a).modifiedTime=_),t.outputTimeStamps.delete(a);return}let{host:g}=t,k=Wie(n,!g.useCaseSensitiveFileNames()),T=vFe(t,a),C=T?new Set:void 0;if(!u||k.length!==u.size){let O=!!t.options.verbose;for(let F of k){let M=Z1(t,F);u?.has(M)||(O&&(O=!1,Jg(t,c,n.options.configFilePath)),g.setModifiedTime(F,_||(_=f1e(t.host))),F===f?g1e(t,f,a).modifiedTime=_:T&&(T.set(M,_),C.add(M)))}}T?.forEach((O,F)=>{!u?.has(F)&&!C.has(F)&&T.delete(F)})}function ycr(t,n,a){if(!n.composite)return;let c=$.checkDefined(t.buildInfoCache.get(a));if(c.latestChangedDtsTime!==void 0)return c.latestChangedDtsTime||void 0;let u=c.buildInfo&&PK(c.buildInfo)&&c.buildInfo.latestChangedDtsFile?t.host.getModifiedTime(za(c.buildInfo.latestChangedDtsFile,mo(c.path))):void 0;return c.latestChangedDtsTime=u||!1,u}function jdt(t,n,a){if(t.options.dry)return Jg(t,x.A_non_dry_build_would_update_timestamps_for_output_of_project_0,n.options.configFilePath);Mdt(t,n,a,x.Updating_output_timestamps_of_project_0),t.projectStatus.set(a,{type:1,oldestOutputFileName:g0e(n,!t.host.useCaseSensitiveFileNames())})}function vcr(t,n,a,c,u,_,f){if(!(t.options.stopBuildOnErrors&&f&4)&&u.options.composite)for(let y=c+1;y<_.length;y++){let g=_[y],k=Ib(t,g);if(t.projectPendingBuild.has(k))continue;let T=VL(t,g,k);if(!(!T||!T.projectReferences))for(let C of T.projectReferences){let O=RK(t,C.path);if(Ib(t,O)!==a)continue;let F=t.projectStatus.get(k);if(F)switch(F.type){case 1:if(f&2){F.type=2;break}case 15:case 2:f&2||t.projectStatus.set(k,{type:6,outOfDateOutputFileName:F.oldestOutputFileName,newerProjectName:n});break;case 12:Ib(t,RK(t,F.upstreamProjectName))===a&&wdt(t,k);break}Idt(t,k,0);break}}}function Bdt(t,n,a,c,u,_){jl("SolutionBuilder::beforeBuild");let f=Scr(t,n,a,c,u,_);return jl("SolutionBuilder::afterBuild"),Jm("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),f}function Scr(t,n,a,c,u,_){let f=Ddt(t,n,_);if(!f)return 3;Pdt(t,a);let y=!0,g=0;for(;;){let k=yFe(t,f,y);if(!k)break;y=!1,k.done(a,c,u?.(k.project)),t.diagnostics.has(k.projectPath)||g++}return hFe(t),Gdt(t,f),Ecr(t,f),MF(f)?4:f.some(k=>t.diagnostics.has(Ib(t,k)))?g?2:1:0}function $dt(t,n,a){jl("SolutionBuilder::beforeClean");let c=bcr(t,n,a);return jl("SolutionBuilder::afterClean"),Jm("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),c}function bcr(t,n,a){let c=Ddt(t,n,a);if(!c)return 3;if(MF(c))return y1e(t,c.circularDiagnostics),4;let{options:u,host:_}=t,f=u.dry?[]:void 0;for(let y of c){let g=Ib(t,y),k=VL(t,y,g);if(k===void 0){Wdt(t,g);continue}let T=Wie(k,!_.useCaseSensitiveFileNames());if(!T.length)continue;let C=new Set(k.fileNames.map(O=>Z1(t,O)));for(let O of T)C.has(Z1(t,O))||_.fileExists(O)&&(f?f.push(O):(_.deleteFile(O),xFe(t,g,0)))}return f&&Jg(t,x.A_non_dry_build_would_delete_the_following_files_Colon_0,f.map(y=>`\r - * ${y}`).join("")),0}function xFe(t,n,a){t.host.getParsedCommandLine&&a===1&&(a=2),a===2&&(t.configFileCache.delete(n),t.buildOrder=void 0),t.needsSummary=!0,wdt(t,n),Idt(t,n,a),Adt(t)}function voe(t,n,a){t.reportFileChangeDetected=!0,xFe(t,n,a),Udt(t,250,!0)}function Udt(t,n,a){let{hostWithWatch:c}=t;!c.setTimeout||!c.clearTimeout||(t.timerToBuildInvalidatedProject&&c.clearTimeout(t.timerToBuildInvalidatedProject),t.timerToBuildInvalidatedProject=c.setTimeout(xcr,n,"timerToBuildInvalidatedProject",t,a))}function xcr(t,n,a){jl("SolutionBuilder::beforeBuild");let c=Tcr(n,a);jl("SolutionBuilder::afterBuild"),Jm("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),c&&Gdt(n,c)}function Tcr(t,n){t.timerToBuildInvalidatedProject=void 0,t.reportFileChangeDetected&&(t.reportFileChangeDetected=!1,t.projectErrorsReported.clear(),kFe(t,x.File_change_detected_Starting_incremental_compilation));let a=0,c=yoe(t),u=yFe(t,c,!1);if(u)for(u.done(),a++;t.projectPendingBuild.size;){if(t.timerToBuildInvalidatedProject)return;let _=Odt(t,c,!1);if(!_)break;if(_.kind!==1&&(n||a===5)){Udt(t,100,!1);return}Fdt(t,_,c).done(),_.kind!==1&&a++}return hFe(t),c}function zdt(t,n,a,c){!t.watch||t.allWatchedConfigFiles.has(a)||t.allWatchedConfigFiles.set(a,h1e(t,n,()=>voe(t,a,2),2e3,c?.watchOptions,cf.ConfigFile,n))}function qdt(t,n,a){Hie(n,a?.options,t.allWatchedExtendedConfigFiles,(c,u)=>h1e(t,c,()=>{var _;return(_=t.allWatchedExtendedConfigFiles.get(u))==null?void 0:_.projects.forEach(f=>voe(t,f,2))},2e3,a?.watchOptions,cf.ExtendedConfigFile),c=>Z1(t,c))}function Jdt(t,n,a,c){t.watch&&EK(pFe(t.allWatchedWildcardDirectories,a),c.wildcardDirectories,(u,_)=>t.watchDirectory(u,f=>{var y;kK({watchedDirPath:Z1(t,u),fileOrDirectory:f,fileOrDirectoryPath:Z1(t,f),configFileName:n,currentDirectory:t.compilerHost.getCurrentDirectory(),options:c.options,program:t.builderPrograms.get(a)||((y=ucr(t,a))==null?void 0:y.fileNames),useCaseSensitiveFileNames:t.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:g=>t.writeLog(g),toPath:g=>Z1(t,g)})||voe(t,a,1)},_,c?.watchOptions,cf.WildcardDirectory,n))}function TFe(t,n,a,c){t.watch&&BU(pFe(t.allWatchedInputFiles,a),new Set(c.fileNames),{createNewValue:u=>h1e(t,u,()=>voe(t,a,0),250,c?.watchOptions,cf.SourceFile,n),onDeleteValue:W1})}function EFe(t,n,a,c){!t.watch||!t.lastCachedPackageJsonLookups||BU(pFe(t.allWatchedPackageJsonFiles,a),t.lastCachedPackageJsonLookups.get(a),{createNewValue:u=>h1e(t,u,()=>voe(t,a,0),2e3,c?.watchOptions,cf.PackageJson,n),onDeleteValue:W1})}function Ecr(t,n){if(t.watchAllProjectsPending){jl("SolutionBuilder::beforeWatcherCreation"),t.watchAllProjectsPending=!1;for(let a of FK(n)){let c=Ib(t,a),u=VL(t,a,c);zdt(t,a,c,u),qdt(t,c,u),u&&(Jdt(t,a,c,u),TFe(t,a,c,u),EFe(t,a,c,u))}jl("SolutionBuilder::afterWatcherCreation"),Jm("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function kcr(t){dg(t.allWatchedConfigFiles,W1),dg(t.allWatchedExtendedConfigFiles,C0),dg(t.allWatchedWildcardDirectories,n=>dg(n,C0)),dg(t.allWatchedInputFiles,n=>dg(n,W1)),dg(t.allWatchedPackageJsonFiles,n=>dg(n,W1))}function Vdt(t,n,a,c,u){let _=lcr(t,n,a,c,u);return{build:(f,y,g,k)=>Bdt(_,f,y,g,k),clean:f=>$dt(_,f),buildReferences:(f,y,g,k)=>Bdt(_,f,y,g,k,!0),cleanReferences:f=>$dt(_,f,!0),getNextInvalidatedProject:f=>(Pdt(_,f),yFe(_,yoe(_),!1)),getBuildOrder:()=>yoe(_),getUpToDateStatusOfProject:f=>{let y=RK(_,f),g=Ib(_,y);return bFe(_,VL(_,y,g),g)},invalidateProject:(f,y)=>xFe(_,f,y||0),close:()=>kcr(_)}}function Jf(t,n){return BI(n,t.compilerHost.getCurrentDirectory(),t.compilerHost.getCanonicalFileName)}function Jg(t,n,...a){t.host.reportSolutionBuilderStatus(bp(n,...a))}function kFe(t,n,...a){var c,u;(u=(c=t.hostWithWatch).onWatchStatusChange)==null||u.call(c,bp(n,...a),t.host.getNewLine(),t.baseCompilerOptions)}function y1e({host:t},n){n.forEach(a=>t.reportDiagnostic(a))}function LK(t,n,a){y1e(t,a),t.projectErrorsReported.set(n,!0),a.length&&t.diagnostics.set(n,a)}function Wdt(t,n){LK(t,n,[t.configFileCache.get(n)])}function Gdt(t,n){if(!t.needsSummary)return;t.needsSummary=!1;let a=t.watch||!!t.host.reportErrorSummary,{diagnostics:c}=t,u=0,_=[];MF(n)?(Hdt(t,n.buildOrder),y1e(t,n.circularDiagnostics),a&&(u+=uoe(n.circularDiagnostics)),a&&(_=[..._,...poe(n.circularDiagnostics)])):(n.forEach(f=>{let y=Ib(t,f);t.projectErrorsReported.has(y)||y1e(t,c.get(y)||j)}),a&&c.forEach(f=>u+=uoe(f)),a&&c.forEach(f=>[..._,...poe(f)])),t.watch?kFe(t,Z0e(u),u):t.host.reportErrorSummary&&t.host.reportErrorSummary(u,_)}function Hdt(t,n){t.options.verbose&&Jg(t,x.Projects_in_this_build_Colon_0,n.map(a=>`\r - * `+Jf(t,a)).join(""))}function Ccr(t,n,a){switch(a.type){case 5:return Jg(t,x.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Jf(t,n),Jf(t,a.outOfDateOutputFileName),Jf(t,a.newerInputFileName));case 6:return Jg(t,x.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Jf(t,n),Jf(t,a.outOfDateOutputFileName),Jf(t,a.newerProjectName));case 3:return Jg(t,x.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Jf(t,n),Jf(t,a.missingOutputFileName));case 4:return Jg(t,x.Project_0_is_out_of_date_because_there_was_error_reading_file_1,Jf(t,n),Jf(t,a.fileName));case 7:return Jg(t,x.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,Jf(t,n),Jf(t,a.buildInfoFile));case 8:return Jg(t,x.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,Jf(t,n),Jf(t,a.buildInfoFile));case 9:return Jg(t,x.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,Jf(t,n),Jf(t,a.buildInfoFile));case 10:return Jg(t,x.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,Jf(t,n),Jf(t,a.buildInfoFile),Jf(t,a.inputFile));case 1:if(a.newestInputFileTime!==void 0)return Jg(t,x.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,Jf(t,n),Jf(t,a.newestInputFileName||""),Jf(t,a.oldestOutputFileName||""));break;case 2:return Jg(t,x.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Jf(t,n));case 15:return Jg(t,x.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,Jf(t,n));case 11:return Jg(t,x.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Jf(t,n),Jf(t,a.upstreamProjectName));case 12:return Jg(t,a.upstreamProjectBlocked?x.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:x.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Jf(t,n),Jf(t,a.upstreamProjectName));case 0:return Jg(t,x.Project_0_is_out_of_date_because_1,Jf(t,n),a.reason);case 14:return Jg(t,x.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Jf(t,n),a.version,L);case 17:return Jg(t,x.Project_0_is_being_forcibly_rebuilt,Jf(t,n));case 16:case 13:break;default:}}function v1e(t,n,a){t.options.verbose&&Ccr(t,n,a)}var CFe=(t=>(t[t.time=0]="time",t[t.count=1]="count",t[t.memory=2]="memory",t))(CFe||{});function Dcr(t){let n=Acr();return X(t.getSourceFiles(),a=>{let c=wcr(t,a),u=Ry(a).length;n.set(c,n.get(c)+u)}),n}function Acr(){let t=new Map;return t.set("Library",0),t.set("Definitions",0),t.set("TypeScript",0),t.set("JavaScript",0),t.set("JSON",0),t.set("Other",0),t}function wcr(t,n){if(t.isSourceFileDefaultLibrary(n))return"Library";if(n.isDeclarationFile)return"Definitions";let a=n.path;return _p(a,Ghe)?"TypeScript":_p(a,cL)?"JavaScript":Au(a,".json")?"JSON":"Other"}function S1e(t,n,a){return Soe(t,a)?LF(t,!0):n}function Kdt(t){return!!t.writeOutputIsTTY&&t.writeOutputIsTTY()&&!t.getEnvironmentVariable("NO_COLOR")}function Soe(t,n){return!n||typeof n.pretty>"u"?Kdt(t):n.pretty}function Qdt(t){return t.options.all?pu(Q1.concat(f3),(n,a)=>JD(n.name,a.name)):yr(Q1.concat(f3),n=>!!n.showInSimplifiedHelpView)}function b1e(t){t.write(Jh(x.Version_0,L)+t.newLine)}function x1e(t){if(!Kdt(t))return{bold:T=>T,blue:T=>T,blueBackground:T=>T,brightWhite:T=>T};function a(T){return`\x1B[1m${T}\x1B[22m`}let c=t.getEnvironmentVariable("OS")&&t.getEnvironmentVariable("OS").toLowerCase().includes("windows"),u=t.getEnvironmentVariable("WT_SESSION"),_=t.getEnvironmentVariable("TERM_PROGRAM")&&t.getEnvironmentVariable("TERM_PROGRAM")==="vscode";function f(T){return c&&!u&&!_?k(T):`\x1B[94m${T}\x1B[39m`}let y=t.getEnvironmentVariable("COLORTERM")==="truecolor"||t.getEnvironmentVariable("TERM")==="xterm-256color";function g(T){return y?`\x1B[48;5;68m${T}\x1B[39;49m`:`\x1B[44m${T}\x1B[39;49m`}function k(T){return`\x1B[97m${T}\x1B[39m`}return{bold:a,blue:f,brightWhite:k,blueBackground:g}}function Zdt(t){return`--${t.name}${t.shortName?`, -${t.shortName}`:""}`}function Icr(t,n,a,c){var u;let _=[],f=x1e(t),y=Zdt(n),g=M(n),k=typeof n.defaultValueDescription=="object"?Jh(n.defaultValueDescription):C(n.defaultValueDescription,n.type==="list"||n.type==="listOrElement"?n.element.type:n.type),T=((u=t.getWidthOfTerminal)==null?void 0:u.call(t))??0;if(T>=80){let U="";n.description&&(U=Jh(n.description)),_.push(...F(y,U,a,c,T,!0),t.newLine),O(g,n)&&(g&&_.push(...F(g.valueType,g.possibleValues,a,c,T,!1),t.newLine),k&&_.push(...F(Jh(x.default_Colon),k,a,c,T,!1),t.newLine)),_.push(t.newLine)}else{if(_.push(f.blue(y),t.newLine),n.description){let U=Jh(n.description);_.push(U)}if(_.push(t.newLine),O(g,n)){if(g&&_.push(`${g.valueType} ${g.possibleValues}`),k){g&&_.push(t.newLine);let U=Jh(x.default_Colon);_.push(`${U} ${k}`)}_.push(t.newLine)}_.push(t.newLine)}return _;function C(U,J){return U!==void 0&&typeof J=="object"?so(J.entries()).filter(([,G])=>G===U).map(([G])=>G).join("/"):String(U)}function O(U,J){let G=["string"],Z=[void 0,"false","n/a"],Q=J.defaultValueDescription;return!(J.category===x.Command_line_Options||un(G,U?.possibleValues)&&un(Z,Q))}function F(U,J,G,Z,Q,re){let ae=[],_e=!0,me=J,le=Q-Z;for(;me.length>0;){let Oe="";_e?(Oe=U.padStart(G),Oe=Oe.padEnd(Z),Oe=re?f.blue(Oe):Oe):Oe="".padStart(Z);let be=me.substr(0,le);me=me.slice(le),ae.push(`${Oe}${be}`),_e=!1}return ae}function M(U){if(U.type==="object")return;return{valueType:J(U),possibleValues:G(U)};function J(Z){switch($.assert(Z.type!=="listOrElement"),Z.type){case"string":case"number":case"boolean":return Jh(x.type_Colon);case"list":return Jh(x.one_or_more_Colon);default:return Jh(x.one_of_Colon)}}function G(Z){let Q;switch(Z.type){case"string":case"number":case"boolean":Q=Z.type;break;case"list":case"listOrElement":Q=G(Z.element);break;case"object":Q="";break;default:let re={};return Z.type.forEach((ae,_e)=>{var me;(me=Z.deprecatedKeys)!=null&&me.has(_e)||(re[ae]||(re[ae]=[])).push(_e)}),Object.entries(re).map(([,ae])=>ae.join("/")).join(", ")}return Q}}}function Xdt(t,n){let a=0;for(let f of n){let y=Zdt(f).length;a=a>y?a:y}let c=a+2,u=c+2,_=[];for(let f of n){let y=Icr(t,f,c,u);_=[..._,...y]}return _[_.length-2]!==t.newLine&&_.push(t.newLine),_}function MK(t,n,a,c,u,_){let f=[];if(f.push(x1e(t).bold(n)+t.newLine+t.newLine),u&&f.push(u+t.newLine+t.newLine),!c)return f=[...f,...Xdt(t,a)],_&&f.push(_+t.newLine+t.newLine),f;let y=new Map;for(let g of a){if(!g.category)continue;let k=Jh(g.category),T=y.get(k)??[];T.push(g),y.set(k,T)}return y.forEach((g,k)=>{f.push(`### ${k}${t.newLine}${t.newLine}`),f=[...f,...Xdt(t,g)]}),_&&f.push(_+t.newLine+t.newLine),f}function Pcr(t,n){let a=x1e(t),c=[...T1e(t,`${Jh(x.tsc_Colon_The_TypeScript_Compiler)} - ${Jh(x.Version_0,L)}`)];c.push(a.bold(Jh(x.COMMON_COMMANDS))+t.newLine+t.newLine),f("tsc",x.Compiles_the_current_project_tsconfig_json_in_the_working_directory),f("tsc app.ts util.ts",x.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),f("tsc -b",x.Build_a_composite_project_in_the_working_directory),f("tsc --init",x.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),f("tsc -p ./path/to/tsconfig.json",x.Compiles_the_TypeScript_project_located_at_the_specified_path),f("tsc --help --all",x.An_expanded_version_of_this_information_showing_all_possible_compiler_options),f(["tsc --noEmit","tsc --target esnext"],x.Compiles_the_current_project_with_additional_settings);let u=n.filter(y=>y.isCommandLineOnly||y.category===x.Command_line_Options),_=n.filter(y=>!un(u,y));c=[...c,...MK(t,Jh(x.COMMAND_LINE_FLAGS),u,!1,void 0,void 0),...MK(t,Jh(x.COMMON_COMPILER_OPTIONS),_,!1,void 0,nF(x.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(let y of c)t.write(y);function f(y,g){let k=typeof y=="string"?[y]:y;for(let T of k)c.push(" "+a.blue(T)+t.newLine);c.push(" "+Jh(g)+t.newLine+t.newLine)}}function Ncr(t,n,a,c){let u=[...T1e(t,`${Jh(x.tsc_Colon_The_TypeScript_Compiler)} - ${Jh(x.Version_0,L)}`)];u=[...u,...MK(t,Jh(x.ALL_COMPILER_OPTIONS),n,!0,void 0,nF(x.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],u=[...u,...MK(t,Jh(x.WATCH_OPTIONS),c,!1,Jh(x.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],u=[...u,...MK(t,Jh(x.BUILD_OPTIONS),yr(a,_=>_!==f3),!1,nF(x.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(let _ of u)t.write(_)}function Ydt(t,n){let a=[...T1e(t,`${Jh(x.tsc_Colon_The_TypeScript_Compiler)} - ${Jh(x.Version_0,L)}`)];a=[...a,...MK(t,Jh(x.BUILD_OPTIONS),yr(n,c=>c!==f3),!1,nF(x.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(let c of a)t.write(c)}function T1e(t,n){var a;let c=x1e(t),u=[],_=((a=t.getWidthOfTerminal)==null?void 0:a.call(t))??0,f=5,y=c.blueBackground("".padStart(f)),g=c.blueBackground(c.brightWhite("TS ".padStart(f)));if(_>=n.length+f){let T=(_>120?120:_)-f;u.push(n.padEnd(T)+y+t.newLine),u.push("".padStart(T)+g+t.newLine)}else u.push(n+t.newLine),u.push(t.newLine);return u}function eft(t,n){n.options.all?Ncr(t,Qdt(n),dye,wF):Pcr(t,Qdt(n))}function tft(t,n,a){let c=LF(t),u;if(a.options.locale&&oA(a.options.locale,t,a.errors),a.errors.length>0)return a.errors.forEach(c),t.exit(1);if(a.options.init)return Lcr(t,c,a.options),t.exit(0);if(a.options.version)return b1e(t),t.exit(0);if(a.options.help||a.options.all)return eft(t,a),t.exit(0);if(a.options.watch&&a.options.listFilesOnly)return c(bp(x.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),t.exit(1);if(a.options.project){if(a.fileNames.length!==0)return c(bp(x.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),t.exit(1);let y=Qs(a.options.project);if(!y||t.directoryExists(y)){if(u=Xi(y,"tsconfig.json"),!t.fileExists(u))return c(bp(x.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,a.options.project)),t.exit(1)}else if(u=y,!t.fileExists(u))return c(bp(x.The_specified_path_does_not_exist_Colon_0,a.options.project)),t.exit(1)}else if(a.fileNames.length===0){let y=Qs(t.getCurrentDirectory());u=k0e(y,g=>t.fileExists(g))}if(a.fileNames.length===0&&!u)return a.options.showConfig?c(bp(x.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,Qs(t.getCurrentDirectory()))):(b1e(t),eft(t,a)),t.exit(1);let _=t.getCurrentDirectory(),f=gie(a.options,y=>za(y,_));if(u){let y=new Map,g=sFe(u,f,y,a.watchOptions,t,c);if(f.showConfig)return g.errors.length!==0?(c=S1e(t,c,g.options),g.errors.forEach(c),t.exit(1)):(t.write(JSON.stringify(Sye(g,u,t),null,4)+t.newLine),t.exit(0));if(c=S1e(t,c,g.options),Phe(g.options))return AFe(t,c)?void 0:Ocr(t,n,c,g,f,a.watchOptions,y);dP(g.options)?oft(t,n,c,g):ift(t,n,c,g)}else{if(f.showConfig)return t.write(JSON.stringify(Sye(a,Xi(_,"tsconfig.json"),t),null,4)+t.newLine),t.exit(0);if(c=S1e(t,c,f),Phe(f))return AFe(t,c)?void 0:Fcr(t,n,c,a.fileNames,f,a.watchOptions);dP(f)?oft(t,n,c,{...a,options:f}):ift(t,n,c,{...a,options:f})}}function DFe(t){if(t.length>0&&t[0].charCodeAt(0)===45){let n=t[0].slice(t[0].charCodeAt(1)===45?2:1).toLowerCase();return n===f3.name||n===f3.shortName}return!1}function rft(t,n,a){if(DFe(a)){let{buildOptions:u,watchOptions:_,projects:f,errors:y}=zNe(a);if(u.generateCpuProfile&&t.enableCPUProfiler)t.enableCPUProfiler(u.generateCpuProfile,()=>nft(t,n,u,_,f,y));else return nft(t,n,u,_,f,y)}let c=$Ne(a,u=>t.readFile(u));if(c.options.generateCpuProfile&&t.enableCPUProfiler)t.enableCPUProfiler(c.options.generateCpuProfile,()=>tft(t,n,c));else return tft(t,n,c)}function AFe(t,n){return!t.watchFile||!t.watchDirectory?(n(bp(x.The_current_host_does_not_support_the_0_option,"--watch")),t.exit(1),!0):!1}var boe=2;function nft(t,n,a,c,u,_){let f=S1e(t,LF(t),a);if(a.locale&&oA(a.locale,t,_),_.length>0)return _.forEach(f),t.exit(1);if(a.help||u.length===0)return b1e(t),Ydt(t,tK),t.exit(0);if(!t.getModifiedTime||!t.setModifiedTime||a.clean&&!t.deleteFile)return f(bp(x.The_current_host_does_not_support_the_0_option,"--build")),t.exit(1);if(a.watch){if(AFe(t,f))return;let C=dFe(t,void 0,f,goe(t,Soe(t,a)),IFe(t,a));C.jsDocParsingMode=boe;let O=lft(t,a);aft(t,n,C,O);let F=C.onWatchStatusChange,M=!1;C.onWatchStatusChange=(J,G,Z,Q)=>{F?.(J,G,Z,Q),M&&(J.code===x.Found_0_errors_Watching_for_file_changes.code||J.code===x.Found_1_error_Watching_for_file_changes.code)&&PFe(U,O)};let U=mFe(C,u,a,c);return U.build(),PFe(U,O),M=!0,U}let y=_Fe(t,void 0,f,goe(t,Soe(t,a)),wFe(t,a));y.jsDocParsingMode=boe;let g=lft(t,a);aft(t,n,y,g);let k=fFe(y,u,a),T=a.clean?k.clean():k.build();return PFe(k,g),U9(),t.exit(T)}function wFe(t,n){return Soe(t,n)?(a,c)=>t.write(X0e(a,c,t.newLine,t)):void 0}function ift(t,n,a,c){let{fileNames:u,options:_,projectReferences:f}=c,y=Qie(_,void 0,t);y.jsDocParsingMode=boe;let g=y.getCurrentDirectory(),k=_d(y.useCaseSensitiveFileNames());Bz(y,F=>wl(F,g,k)),NFe(t,_,!1);let T={rootNames:u,options:_,projectReferences:f,host:y,configFileParsingDiagnostics:PP(c)},C=wK(T),O=o1e(C,a,F=>t.write(F+t.newLine),wFe(t,_));return k1e(t,C,void 0),n(C),t.exit(O)}function oft(t,n,a,c){let{options:u,fileNames:_,projectReferences:f}=c;NFe(t,u,!1);let y=hoe(u,t);y.jsDocParsingMode=boe;let g=cFe({host:y,system:t,rootNames:_,options:u,configFileParsingDiagnostics:PP(c),projectReferences:f,reportDiagnostic:a,reportErrorSummary:wFe(t,u),afterProgramEmitAndDiagnostics:k=>{k1e(t,k.getProgram(),void 0),n(k)}});return t.exit(g)}function aft(t,n,a,c){sft(t,a,!0),a.afterProgramEmitAndDiagnostics=u=>{k1e(t,u.getProgram(),c),n(u)}}function sft(t,n,a){let c=n.createProgram;n.createProgram=(u,_,f,y,g,k)=>($.assert(u!==void 0||_===void 0&&!!y),_!==void 0&&NFe(t,_,a),c(u,_,f,y,g,k))}function cft(t,n,a){a.jsDocParsingMode=boe,sft(t,a,!1);let c=a.afterProgramCreate;a.afterProgramCreate=u=>{c(u),k1e(t,u.getProgram(),void 0),n(u)}}function IFe(t,n){return Q0e(t,Soe(t,n))}function Ocr(t,n,a,c,u,_,f){let y=u1e({configFileName:c.options.configFilePath,optionsToExtend:u,watchOptionsToExtend:_,system:t,reportDiagnostic:a,reportWatchStatus:IFe(t,c.options)});return cft(t,n,y),y.configFileParsingResult=c,y.extendedConfigCache=f,_1e(y)}function Fcr(t,n,a,c,u,_){let f=p1e({rootFiles:c,options:u,watchOptions:_,system:t,reportDiagnostic:a,reportWatchStatus:IFe(t,u)});return cft(t,n,f),_1e(f)}function lft(t,n){if(t===f_&&n.extendedDiagnostics)return aO(),Rcr()}function Rcr(){let t;return{addAggregateStatistic:n,forEachAggregateStatistics:a,clear:c};function n(u){let _=t?.get(u.name);_?_.type===2?_.value=Math.max(_.value,u.value):_.value+=u.value:(t??(t=new Map)).set(u.name,u)}function a(u){t?.forEach(u)}function c(){t=void 0}}function PFe(t,n){if(!n)return;if(!wI()){f_.write(x.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+` -`);return}let a=[];a.push({name:"Projects in scope",value:FK(t.getBuildOrder()).length,type:1}),c("SolutionBuilder::Projects built"),c("SolutionBuilder::Timestamps only updates"),c("SolutionBuilder::Bundles updated"),n.forEachAggregateStatistics(_=>{_.name=`Aggregate ${_.name}`,a.push(_)}),M9((_,f)=>{E1e(_)&&a.push({name:`${u(_)} time`,value:f,type:0})}),B9(),aO(),n.clear(),_ft(f_,a);function c(_){let f=b$(_);f&&a.push({name:u(_),value:f,type:1})}function u(_){return _.replace("SolutionBuilder::","")}}function uft(t,n){return t===f_&&(n.diagnostics||n.extendedDiagnostics)}function pft(t,n){return t===f_&&n.generateTrace}function NFe(t,n,a){uft(t,n)&&aO(t),pft(t,n)&&$9(a?"build":"project",n.generateTrace,n.configFilePath)}function E1e(t){return Ca(t,"SolutionBuilder::")}function k1e(t,n,a){var c;let u=n.getCompilerOptions();pft(t,u)&&((c=hi)==null||c.stopTracing());let _;if(uft(t,u)){_=[];let k=t.getMemoryUsage?t.getMemoryUsage():-1;y("Files",n.getSourceFiles().length);let T=Dcr(n);if(u.extendedDiagnostics)for(let[J,G]of T.entries())y("Lines of "+J,G);else y("Lines",$e(T.values(),(J,G)=>J+G,0));y("Identifiers",n.getIdentifierCount()),y("Symbols",n.getSymbolCount()),y("Types",n.getTypeCount()),y("Instantiations",n.getInstantiationCount()),k>=0&&f({name:"Memory used",value:k,type:2},!0);let C=wI(),O=C?fb("Program"):0,F=C?fb("Bind"):0,M=C?fb("Check"):0,U=C?fb("Emit"):0;if(u.extendedDiagnostics){let J=n.getRelationCacheSizes();y("Assignability cache size",J.assignable),y("Identity cache size",J.identity),y("Subtype cache size",J.subtype),y("Strict subtype cache size",J.strictSubtype),C&&M9((G,Z)=>{E1e(G)||g(`${G} time`,Z,!0)})}else C&&(g("I/O read",fb("I/O Read"),!0),g("I/O write",fb("I/O Write"),!0),g("Parse time",O,!0),g("Bind time",F,!0),g("Check time",M,!0),g("Emit time",U,!0));C&&g("Total time",O+F+M+U,!1),_ft(t,_),C?a?(M9(J=>{E1e(J)||x$(J)}),j9(J=>{E1e(J)||T$(J)})):B9():t.write(x.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+` -`)}function f(k,T){_.push(k),T&&a?.addAggregateStatistic(k)}function y(k,T){f({name:k,value:T,type:1},!0)}function g(k,T,C){f({name:k,value:T,type:0},C)}}function _ft(t,n){let a=0,c=0;for(let u of n){u.name.length>a&&(a=u.name.length);let _=dft(u);_.length>c&&(c=_.length)}for(let u of n)t.write(`${u.name}:`.padEnd(a+2)+dft(u).toString().padStart(c)+t.newLine)}function dft(t){switch(t.type){case 1:return""+t.value;case 0:return(t.value/1e3).toFixed(2)+"s";case 2:return Math.round(t.value/1e3)+"K";default:$.assertNever(t.type)}}function Lcr(t,n,a){let c=t.getCurrentDirectory(),u=Qs(Xi(c,"tsconfig.json"));if(t.fileExists(u))n(bp(x.A_tsconfig_json_file_is_already_defined_at_Colon_0,u));else{t.writeFile(u,WNe(a,t.newLine));let _=[t.newLine,...T1e(t,"Created a new tsconfig.json")];_.push("You can learn more at https://aka.ms/tsconfig"+t.newLine);for(let f of _)t.write(f)}}function LS(t,n=!0){return{type:t,reportFallback:n}}var fft=LS(void 0,!1),mft=LS(void 0,!1),Jz=LS(void 0,!0);function OFe(t,n){let a=rm(t,"strictNullChecks");return{serializeTypeOfDeclaration:T,serializeReturnTypeForSignature:O,serializeTypeOfExpression:k,serializeTypeOfAccessor:g,tryReuseExistingTypeNode(Se,tt){if(n.canReuseTypeNode(Se,tt))return u(Se,tt)}};function c(Se,tt,Qe=tt){return tt===void 0?void 0:n.markNodeReuse(Se,tt.flags&16?tt:W.cloneNode(tt),Qe??tt)}function u(Se,tt){let{finalizeBoundary:Qe,startRecoveryScope:We,hadError:St,markError:Kt}=n.createRecoveryBoundary(Se),Sr=At(tt,nn,Wo);if(!Qe())return;return Se.approximateLength+=tt.end-tt.pos,Sr;function nn(sr){if(St())return sr;let uo=We(),Wa=l3e(sr)?n.enterNewScope(Se,sr):void 0,oo=is(sr);return Wa?.(),St()?Wo(sr)&&!gF(sr)?(uo(),n.serializeExistingTypeNode(Se,sr)):sr:oo?n.markNodeReuse(Se,oo,sr):void 0}function Nn(sr){let uo=xU(sr);switch(uo.kind){case 184:return Ko(uo);case 187:return Qn(uo);case 200:return $t(uo);case 199:let Wa=uo;if(Wa.operator===143)return Dr(Wa)}return At(sr,nn,Wo)}function $t(sr){let uo=Nn(sr.objectType);if(uo!==void 0)return W.updateIndexedAccessTypeNode(sr,uo,At(sr.indexType,nn,Wo))}function Dr(sr){$.assertEqual(sr.operator,143);let uo=Nn(sr.type);if(uo!==void 0)return W.updateTypeOperatorNode(sr,uo)}function Qn(sr){let{introducesError:uo,node:Wa}=n.trackExistingEntityName(Se,sr.exprName);if(!uo)return W.updateTypeQueryNode(sr,Wa,Bn(sr.typeArguments,nn,Wo));let oo=n.serializeTypeName(Se,sr.exprName,!0);if(oo)return n.markNodeReuse(Se,oo,sr.exprName)}function Ko(sr){if(n.canReuseTypeNode(Se,sr)){let{introducesError:uo,node:Wa}=n.trackExistingEntityName(Se,sr.typeName),oo=Bn(sr.typeArguments,nn,Wo);if(uo){let Oi=n.serializeTypeName(Se,sr.typeName,!1,oo);if(Oi)return n.markNodeReuse(Se,Oi,sr.typeName)}else{let Oi=W.updateTypeReferenceNode(sr,Wa,oo);return n.markNodeReuse(Se,Oi,sr)}}}function is(sr){var uo;if(AA(sr))return At(sr.type,nn,Wo);if(X3e(sr)||sr.kind===320)return W.createKeywordTypeNode(133);if(Y3e(sr))return W.createKeywordTypeNode(159);if(xL(sr))return W.createUnionTypeNode([At(sr.type,nn,Wo),W.createLiteralTypeNode(W.createNull())]);if(Lge(sr))return W.createUnionTypeNode([At(sr.type,nn,Wo),W.createKeywordTypeNode(157)]);if(Gne(sr))return At(sr.type,nn);if(Hne(sr))return W.createArrayTypeNode(At(sr.type,nn,Wo));if(p3(sr))return W.createTypeLiteralNode(Cr(sr.jsDocPropertyTags,Ht=>{let Wr=At(ct(Ht.name)?Ht.name:Ht.name.right,nn,ct),ai=n.getJsDocPropertyOverride(Se,sr,Ht);return W.createPropertySignature(void 0,Wr,Ht.isBracketed||Ht.typeExpression&&Lge(Ht.typeExpression.type)?W.createToken(58):void 0,ai||Ht.typeExpression&&At(Ht.typeExpression.type,nn,Wo)||W.createKeywordTypeNode(133))}));if(Ug(sr)&&ct(sr.typeName)&&sr.typeName.escapedText==="")return Yi(W.createKeywordTypeNode(133),sr);if((VT(sr)||Ug(sr))&&Cre(sr))return W.createTypeLiteralNode([W.createIndexSignature(void 0,[W.createParameterDeclaration(void 0,void 0,"x",void 0,At(sr.typeArguments[0],nn,Wo))],At(sr.typeArguments[1],nn,Wo))]);if(TL(sr))if(WO(sr)){let Ht;return W.createConstructorTypeNode(void 0,Bn(sr.typeParameters,nn,Zu),Wn(sr.parameters,(Wr,ai)=>Wr.name&&ct(Wr.name)&&Wr.name.escapedText==="new"?(Ht=Wr.type,void 0):W.createParameterDeclaration(void 0,Oi(Wr),n.markNodeReuse(Se,W.createIdentifier($o(Wr,ai)),Wr),W.cloneNode(Wr.questionToken),At(Wr.type,nn,Wo),void 0)),At(Ht||sr.type,nn,Wo)||W.createKeywordTypeNode(133))}else return W.createFunctionTypeNode(Bn(sr.typeParameters,nn,Zu),Cr(sr.parameters,(Ht,Wr)=>W.createParameterDeclaration(void 0,Oi(Ht),n.markNodeReuse(Se,W.createIdentifier($o(Ht,Wr)),Ht),W.cloneNode(Ht.questionToken),At(Ht.type,nn,Wo),void 0)),At(sr.type,nn,Wo)||W.createKeywordTypeNode(133));if(lz(sr))return n.canReuseTypeNode(Se,sr)||Kt(),sr;if(Zu(sr)){let{node:Ht}=n.trackExistingEntityName(Se,sr.name);return W.updateTypeParameterDeclaration(sr,Bn(sr.modifiers,nn,bc),Ht,At(sr.constraint,nn,Wo),At(sr.default,nn,Wo))}if(vP(sr)){let Ht=$t(sr);return Ht||(Kt(),sr)}if(Ug(sr)){let Ht=Ko(sr);return Ht||(Kt(),sr)}if(jT(sr)){if(((uo=sr.attributes)==null?void 0:uo.token)===132)return Kt(),sr;if(!n.canReuseTypeNode(Se,sr))return n.serializeExistingTypeNode(Se,sr);let Ht=ft(sr,sr.argument.literal),Wr=Ht===sr.argument.literal?c(Se,sr.argument.literal):Ht;return W.updateImportTypeNode(sr,Wr===sr.argument.literal?c(Se,sr.argument):W.createLiteralTypeNode(Wr),At(sr.attributes,nn,l3),At(sr.qualifier,nn,uh),Bn(sr.typeArguments,nn,Wo),sr.isTypeOf)}if(Vp(sr)&&sr.name.kind===168&&!n.hasLateBindableName(sr)){if(!$T(sr))return Wa(sr,nn);if(n.shouldRemoveDeclaration(Se,sr))return}if(Rs(sr)&&!sr.type||ps(sr)&&!sr.type&&!sr.initializer||Zm(sr)&&!sr.type&&!sr.initializer||wa(sr)&&!sr.type&&!sr.initializer){let Ht=Wa(sr,nn);return Ht===sr&&(Ht=n.markNodeReuse(Se,W.cloneNode(sr),sr)),Ht.type=W.createKeywordTypeNode(133),wa(sr)&&(Ht.modifiers=void 0),Ht}if(gP(sr)){let Ht=Qn(sr);return Ht||(Kt(),sr)}if(dc(sr)&&ru(sr.expression)){let{node:Ht,introducesError:Wr}=n.trackExistingEntityName(Se,sr.expression);if(Wr){let ai=n.serializeTypeOfExpression(Se,sr.expression),vo;if(bE(ai))vo=ai.literal;else{let Eo=n.evaluateEntityNameExpression(sr.expression),ya=typeof Eo.value=="string"?W.createStringLiteral(Eo.value,void 0):typeof Eo.value=="number"?W.createNumericLiteral(Eo.value,0):void 0;if(!ya)return AS(ai)&&n.trackComputedName(Se,sr.expression),sr;vo=ya}return vo.kind===11&&Jd(vo.text,$c(t))?W.createIdentifier(vo.text):vo.kind===9&&!vo.text.startsWith("-")?vo:W.updateComputedPropertyName(sr,vo)}else return W.updateComputedPropertyName(sr,Ht)}if(gF(sr)){let Ht;if(ct(sr.parameterName)){let{node:Wr,introducesError:ai}=n.trackExistingEntityName(Se,sr.parameterName);ai&&Kt(),Ht=Wr}else Ht=W.cloneNode(sr.parameterName);return W.updateTypePredicateNode(sr,W.cloneNode(sr.assertsModifier),Ht,At(sr.type,nn,Wo))}if(yF(sr)||fh(sr)||o3(sr)){let Ht=Wa(sr,nn),Wr=n.markNodeReuse(Se,Ht===sr?W.cloneNode(sr):Ht,sr),ai=Xc(Wr);return Ai(Wr,ai|(Se.flags&1024&&fh(sr)?0:1)),Wr}if(Ic(sr)&&Se.flags&268435456&&!sr.singleQuote){let Ht=W.cloneNode(sr);return Ht.singleQuote=!0,Ht}if(yP(sr)){let Ht=At(sr.checkType,nn,Wo),Wr=n.enterNewScope(Se,sr),ai=At(sr.extendsType,nn,Wo),vo=At(sr.trueType,nn,Wo);Wr();let Eo=At(sr.falseType,nn,Wo);return W.updateConditionalTypeNode(sr,Ht,ai,vo,Eo)}if(bA(sr)){if(sr.operator===158&&sr.type.kind===155){if(!n.canReuseTypeNode(Se,sr))return Kt(),sr}else if(sr.operator===143){let Ht=Dr(sr);return Ht||(Kt(),sr)}}return Wa(sr,nn);function Wa(Ht,Wr){let ai=!Se.enclosingFile||Se.enclosingFile!==Pn(Ht);return Dn(Ht,Wr,void 0,ai?oo:void 0)}function oo(Ht,Wr,ai,vo,Eo){let ya=Bn(Ht,Wr,ai,vo,Eo);return ya&&(ya.pos!==-1||ya.end!==-1)&&(ya===Ht&&(ya=W.createNodeArray(Ht.slice(),Ht.hasTrailingComma)),xv(ya,-1,-1)),ya}function Oi(Ht){return Ht.dotDotDotToken||(Ht.type&&Hne(Ht.type)?W.createToken(26):void 0)}function $o(Ht,Wr){return Ht.name&&ct(Ht.name)&&Ht.name.escapedText==="this"?"this":Oi(Ht)?"args":`arg${Wr}`}function ft(Ht,Wr){let ai=n.getModuleSpecifierOverride(Se,Ht,Wr);return ai?Yi(W.createStringLiteral(ai),Wr):Wr}}}function _(Se,tt,Qe){if(!Se)return;let We;return(!Qe||nt(Se))&&n.canReuseTypeNode(tt,Se)&&(We=u(tt,Se),We!==void 0&&(We=Ve(We,Qe,void 0,tt))),We}function f(Se,tt,Qe,We,St,Kt=St!==void 0){if(!Se||!n.canReuseTypeNodeAnnotation(tt,Qe,Se,We,St)&&(!St||!n.canReuseTypeNodeAnnotation(tt,Qe,Se,We,!1)))return;let Sr;return(!St||nt(Se))&&(Sr=_(Se,tt,St)),Sr!==void 0||!Kt?Sr:(tt.tracker.reportInferenceFallback(Qe),n.serializeExistingTypeNode(tt,Se,St)??W.createKeywordTypeNode(133))}function y(Se,tt,Qe,We){if(!Se)return;let St=_(Se,tt,Qe);return St!==void 0?St:(tt.tracker.reportInferenceFallback(We??Se),n.serializeExistingTypeNode(tt,Se,Qe)??W.createKeywordTypeNode(133))}function g(Se,tt,Qe){return U(Se,tt,Qe)??me(Se,n.getAllAccessorDeclarations(Se),Qe,tt)}function k(Se,tt,Qe,We){let St=be(Se,tt,!1,Qe,We);return St.type!==void 0?St.type:ae(Se,tt,St.reportFallback)}function T(Se,tt,Qe){switch(Se.kind){case 170:case 342:return G(Se,tt,Qe);case 261:return J(Se,tt,Qe);case 172:case 349:case 173:return Q(Se,tt,Qe);case 209:return re(Se,tt,Qe);case 278:return k(Se.expression,Qe,void 0,!0);case 212:case 213:case 227:return Z(Se,tt,Qe);case 304:case 305:return C(Se,tt,Qe);default:$.assertNever(Se,`Node needs to be an inferrable node, found ${$.formatSyntaxKind(Se.kind)}`)}}function C(Se,tt,Qe){let We=X_(Se),St;if(We&&n.canReuseTypeNodeAnnotation(Qe,Se,We,tt)&&(St=_(We,Qe)),!St&&Se.kind===304){let Kt=Se.initializer,Sr=EP(Kt)?CL(Kt):Kt.kind===235||Kt.kind===217?Kt.type:void 0;Sr&&!z1(Sr)&&n.canReuseTypeNodeAnnotation(Qe,Se,Sr,tt)&&(St=_(Sr,Qe))}return St??re(Se,tt,Qe,!1)}function O(Se,tt,Qe){switch(Se.kind){case 178:return g(Se,tt,Qe);case 175:case 263:case 181:case 174:case 180:case 177:case 179:case 182:case 185:case 186:case 219:case 220:case 318:case 324:return It(Se,tt,Qe);default:$.assertNever(Se,`Node needs to be an inferrable node, found ${$.formatSyntaxKind(Se.kind)}`)}}function F(Se){if(Se)return Se.kind===178?Ei(Se)&&hv(Se)||jg(Se):ghe(Se)}function M(Se,tt){let Qe=F(Se);return!Qe&&Se!==tt.firstAccessor&&(Qe=F(tt.firstAccessor)),!Qe&&tt.secondAccessor&&Se!==tt.secondAccessor&&(Qe=F(tt.secondAccessor)),Qe}function U(Se,tt,Qe){let We=n.getAllAccessorDeclarations(Se),St=M(Se,We);if(St&&!gF(St))return le(Qe,Se,()=>f(St,Qe,Se,tt)??re(Se,tt,Qe));if(We.getAccessor)return le(Qe,We.getAccessor,()=>It(We.getAccessor,tt,Qe))}function J(Se,tt,Qe){var We;let St=X_(Se),Kt=Jz;return St?Kt=LS(f(St,Qe,Se,tt)):Se.initializer&&(((We=tt.declarations)==null?void 0:We.length)===1||Lo(tt.declarations,Oo)===1)&&!n.isExpandoFunctionDeclaration(Se)&&!_t(Se)&&(Kt=be(Se.initializer,Qe,void 0,void 0,m6e(Se))),Kt.type!==void 0?Kt.type:re(Se,tt,Qe,Kt.reportFallback)}function G(Se,tt,Qe){let We=Se.parent;if(We.kind===179)return g(We,void 0,Qe);let St=X_(Se),Kt=n.requiresAddingImplicitUndefined(Se,tt,Qe.enclosingDeclaration),Sr=Jz;return St?Sr=LS(f(St,Qe,Se,tt,Kt)):wa(Se)&&Se.initializer&&ct(Se.name)&&!_t(Se)&&(Sr=be(Se.initializer,Qe,void 0,Kt)),Sr.type!==void 0?Sr.type:re(Se,tt,Qe,Sr.reportFallback)}function Z(Se,tt,Qe){let We=X_(Se),St;We&&(St=f(We,Qe,Se,tt));let Kt=Qe.suppressReportInferenceFallback;Qe.suppressReportInferenceFallback=!0;let Sr=St??re(Se,tt,Qe,!1);return Qe.suppressReportInferenceFallback=Kt,Sr}function Q(Se,tt,Qe){let We=X_(Se),St=n.requiresAddingImplicitUndefined(Se,tt,Qe.enclosingDeclaration),Kt=Jz;if(We)Kt=LS(f(We,Qe,Se,tt,St));else{let Sr=ps(Se)?Se.initializer:void 0;if(Sr&&!_t(Se)){let nn=kG(Se);Kt=be(Sr,Qe,void 0,St,nn)}}return Kt.type!==void 0?Kt.type:re(Se,tt,Qe,Kt.reportFallback)}function re(Se,tt,Qe,We=!0){return We&&Qe.tracker.reportInferenceFallback(Se),Qe.noInferenceFallback===!0?W.createKeywordTypeNode(133):n.serializeTypeOfDeclaration(Qe,Se,tt)}function ae(Se,tt,Qe=!0,We){return $.assert(!We),Qe&&tt.tracker.reportInferenceFallback(Se),tt.noInferenceFallback===!0?W.createKeywordTypeNode(133):n.serializeTypeOfExpression(tt,Se)??W.createKeywordTypeNode(133)}function _e(Se,tt,Qe,We){return We&&tt.tracker.reportInferenceFallback(Se),tt.noInferenceFallback===!0?W.createKeywordTypeNode(133):n.serializeReturnTypeForSignature(tt,Se,Qe)??W.createKeywordTypeNode(133)}function me(Se,tt,Qe,We,St=!0){return Se.kind===178?It(Se,We,Qe,St):(St&&Qe.tracker.reportInferenceFallback(Se),(tt.getAccessor&&It(tt.getAccessor,We,Qe,St))??n.serializeTypeOfDeclaration(Qe,Se,We)??W.createKeywordTypeNode(133))}function le(Se,tt,Qe){let We=n.enterNewScope(Se,tt),St=Qe();return We(),St}function Oe(Se,tt,Qe,We){return z1(tt)?be(Se,Qe,!0,We):LS(y(tt,Qe,We))}function be(Se,tt,Qe=!1,We=!1,St=!1){switch(Se.kind){case 218:return EP(Se)?Oe(Se.expression,CL(Se),tt,We):be(Se.expression,tt,Qe,We);case 80:if(n.isUndefinedIdentifierExpression(Se))return LS(ve());break;case 106:return LS(a?Ve(W.createLiteralTypeNode(W.createNull()),We,Se,tt):W.createKeywordTypeNode(133));case 220:case 219:return $.type(Se),le(tt,Se,()=>ue(Se,tt));case 217:case 235:let Kt=Se;return Oe(Kt.expression,Kt.type,tt,We);case 225:let Sr=Se;if(Dne(Sr))return Le(Sr.operator===40?Sr.operand:Sr,Sr.operand.kind===10?163:150,tt,Qe||St,We);break;case 210:return Ce(Se,tt,Qe,We);case 211:return Fe(Se,tt,Qe,We);case 232:return LS(ae(Se,tt,!0,We));case 229:if(!Qe&&!St)return LS(W.createKeywordTypeNode(154));break;default:let nn,Nn=Se;switch(Se.kind){case 9:nn=150;break;case 15:Nn=W.createStringLiteral(Se.text),nn=154;break;case 11:nn=154;break;case 10:nn=163;break;case 112:case 97:nn=136;break}if(nn)return Le(Nn,nn,tt,Qe||St,We)}return Jz}function ue(Se,tt){let Qe=It(Se,void 0,tt),We=ze(Se.typeParameters,tt),St=Se.parameters.map(Kt=>de(Kt,tt));return LS(W.createFunctionTypeNode(We,St,Qe))}function De(Se,tt,Qe){if(!Qe)return tt.tracker.reportInferenceFallback(Se),!1;for(let We of Se.elements)if(We.kind===231)return tt.tracker.reportInferenceFallback(We),!1;return!0}function Ce(Se,tt,Qe,We){if(!De(Se,tt,Qe))return We||Vd(V1(Se).parent)?mft:LS(ae(Se,tt,!1,We));let St=tt.noInferenceFallback;tt.noInferenceFallback=!0;let Kt=[];for(let nn of Se.elements)if($.assert(nn.kind!==231),nn.kind===233)Kt.push(ve());else{let Nn=be(nn,tt,Qe),$t=Nn.type!==void 0?Nn.type:ae(nn,tt,Nn.reportFallback);Kt.push($t)}let Sr=W.createTupleTypeNode(Kt);return Sr.emitNode={flags:1,autoGenerate:void 0,internalFlags:0},tt.noInferenceFallback=St,fft}function Ae(Se,tt){let Qe=!0;for(let We of Se.properties){if(We.flags&262144){Qe=!1;break}if(We.kind===305||We.kind===306)tt.tracker.reportInferenceFallback(We),Qe=!1;else if(We.name.flags&262144){Qe=!1;break}else if(We.name.kind===81)Qe=!1;else if(We.name.kind===168){let St=We.name.expression;!Dne(St,!1)&&!n.isDefinitelyReferenceToGlobalSymbolObject(St)&&(tt.tracker.reportInferenceFallback(We.name),Qe=!1)}}return Qe}function Fe(Se,tt,Qe,We){if(!Ae(Se,tt))return We||Vd(V1(Se).parent)?mft:LS(ae(Se,tt,!1,We));let St=tt.noInferenceFallback;tt.noInferenceFallback=!0;let Kt=[],Sr=tt.flags;tt.flags|=4194304;for(let Nn of Se.properties){$.assert(!im(Nn)&&!qx(Nn));let $t=Nn.name,Dr;switch(Nn.kind){case 175:Dr=le(tt,Nn,()=>ut(Nn,$t,tt,Qe));break;case 304:Dr=Be(Nn,$t,tt,Qe);break;case 179:case 178:Dr=je(Nn,$t,tt);break}Dr&&(Y_(Dr,Nn),Kt.push(Dr))}tt.flags=Sr;let nn=W.createTypeLiteralNode(Kt);return tt.flags&1024||Ai(nn,1),tt.noInferenceFallback=St,fft}function Be(Se,tt,Qe,We){let St=We?[W.createModifier(148)]:[],Kt=be(Se.initializer,Qe,We),Sr=Kt.type!==void 0?Kt.type:re(Se,void 0,Qe,Kt.reportFallback);return W.createPropertySignature(St,c(Qe,tt),void 0,Sr)}function de(Se,tt){return W.updateParameterDeclaration(Se,void 0,c(tt,Se.dotDotDotToken),n.serializeNameOfParameter(tt,Se),n.isOptionalParameter(Se)?W.createToken(58):void 0,G(Se,void 0,tt),void 0)}function ze(Se,tt){return Se?.map(Qe=>{var We;let{node:St}=n.trackExistingEntityName(tt,Qe.name);return W.updateTypeParameterDeclaration(Qe,(We=Qe.modifiers)==null?void 0:We.map(Kt=>c(tt,Kt)),St,y(Qe.constraint,tt),y(Qe.default,tt))})}function ut(Se,tt,Qe,We){let St=It(Se,void 0,Qe),Kt=ze(Se.typeParameters,Qe),Sr=Se.parameters.map(nn=>de(nn,Qe));return We?W.createPropertySignature([W.createModifier(148)],c(Qe,tt),c(Qe,Se.questionToken),W.createFunctionTypeNode(Kt,Sr,St)):(ct(tt)&&tt.escapedText==="new"&&(tt=W.createStringLiteral("new")),W.createMethodSignature([],c(Qe,tt),c(Qe,Se.questionToken),Kt,Sr,St))}function je(Se,tt,Qe){let We=n.getAllAccessorDeclarations(Se),St=We.getAccessor&&F(We.getAccessor),Kt=We.setAccessor&&F(We.setAccessor);if(St!==void 0&&Kt!==void 0)return le(Qe,Se,()=>{let Sr=Se.parameters.map(nn=>de(nn,Qe));return Ax(Se)?W.updateGetAccessorDeclaration(Se,[],c(Qe,tt),Sr,y(St,Qe),void 0):W.updateSetAccessorDeclaration(Se,[],c(Qe,tt),Sr,void 0)});if(We.firstAccessor===Se){let nn=(St?le(Qe,We.getAccessor,()=>y(St,Qe)):Kt?le(Qe,We.setAccessor,()=>y(Kt,Qe)):void 0)??me(Se,We,Qe,void 0);return W.createPropertySignature(We.setAccessor===void 0?[W.createModifier(148)]:[],c(Qe,tt),void 0,nn)}}function ve(){return a?W.createKeywordTypeNode(157):W.createKeywordTypeNode(133)}function Le(Se,tt,Qe,We,St){let Kt;return We?(Se.kind===225&&Se.operator===40&&(Kt=W.createLiteralTypeNode(c(Qe,Se.operand))),Kt=W.createLiteralTypeNode(c(Qe,Se))):Kt=W.createKeywordTypeNode(tt),LS(Ve(Kt,St,Se,Qe))}function Ve(Se,tt,Qe,We){let St=Qe&&V1(Qe).parent,Kt=St&&Vd(St)&&sF(St);return!a||!(tt||Kt)?Se:(nt(Se)||We.tracker.reportInferenceFallback(Se),SE(Se)?W.createUnionTypeNode([...Se.types,W.createKeywordTypeNode(157)]):W.createUnionTypeNode([Se,W.createKeywordTypeNode(157)]))}function nt(Se){return!a||Uh(Se.kind)||Se.kind===202||Se.kind===185||Se.kind===186||Se.kind===189||Se.kind===190||Se.kind===188||Se.kind===204||Se.kind===198?!0:Se.kind===197?nt(Se.type):Se.kind===193||Se.kind===194?Se.types.every(nt):!1}function It(Se,tt,Qe,We=!0){let St=Jz,Kt=WO(Se)?X_(Se.parameters[0]):jg(Se);return Kt?St=LS(f(Kt,Qe,Se,tt)):G4(Se)&&(St=ke(Se,Qe)),St.type!==void 0?St.type:_e(Se,Qe,tt,We&&St.reportFallback&&!Kt)}function ke(Se,tt){let Qe;if(Se&&!Op(Se.body)){if(A_(Se)&3)return Jz;let St=Se.body;St&&Vs(St)?sC(St,Kt=>{if(Kt.parent!==St)return Qe=void 0,!0;if(!Qe)Qe=Kt.expression;else return Qe=void 0,!0}):Qe=St}if(Qe)if(_t(Qe)){let We=EP(Qe)?CL(Qe):gL(Qe)||qne(Qe)?Qe.type:void 0;if(We&&!z1(We))return LS(_(We,tt))}else return be(Qe,tt);return Jz}function _t(Se){return fn(Se.parent,tt=>Js(tt)||!lu(tt)&&!!X_(tt)||PS(tt)||SL(tt))}}var wC={};d(wC,{NameValidationResult:()=>xft,discoverTypings:()=>Bcr,isTypingUpToDate:()=>Sft,loadSafeList:()=>Mcr,loadTypesMap:()=>jcr,nonRelativeModuleNameForTypingCache:()=>bft,renderPackageNameValidationFailure:()=>Ucr,validatePackageName:()=>$cr});var xoe="action::set",Toe="action::invalidate",Eoe="action::packageInstalled",C1e="event::typesRegistry",D1e="event::beginInstallTypes",A1e="event::endInstallTypes",FFe="event::initializationFailed",jK="action::watchTypingLocations",w1e;(t=>{t.GlobalCacheLocation="--globalTypingsCacheLocation",t.LogFile="--logFile",t.EnableTelemetry="--enableTelemetry",t.TypingSafeListLocation="--typingSafeListLocation",t.TypesMapLocation="--typesMapLocation",t.NpmLocation="--npmLocation",t.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(w1e||(w1e={}));function hft(t){return f_.args.includes(t)}function gft(t){let n=f_.args.indexOf(t);return n>=0&&nt.readFile(c));return new Map(Object.entries(a.config))}function jcr(t,n){var a;let c=nK(n,u=>t.readFile(u));if((a=c.config)!=null&&a.simpleMap)return new Map(Object.entries(c.config.simpleMap))}function Bcr(t,n,a,c,u,_,f,y,g,k){if(!f||!f.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let T=new Map;a=Wn(a,re=>{let ae=Qs(re);if(jx(ae))return ae});let C=[];f.include&&G(f.include,"Explicitly included types");let O=f.exclude||[];if(!k.types){let re=new Set(a.map(mo));re.add(c),re.forEach(ae=>{Z(ae,"bower.json","bower_components",C),Z(ae,"package.json","node_modules",C)})}if(f.disableFilenameBasedTypeAcquisition||Q(a),y){let re=rf(y.map(bft),qm,Su);G(re,"Inferred typings from unresolved imports")}for(let re of O)T.delete(re)&&n&&n(`Typing for ${re} is in exclude list, will be ignored.`);_.forEach((re,ae)=>{let _e=g.get(ae);T.get(ae)===!1&&_e!==void 0&&Sft(re,_e)&&T.set(ae,re.typingLocation)});let F=[],M=[];T.forEach((re,ae)=>{re?M.push(re):F.push(ae)});let U={cachedTypingPaths:M,newTypingNames:F,filesToWatch:C};return n&&n(`Finished typings discovery:${jA(U)}`),U;function J(re){T.has(re)||T.set(re,!1)}function G(re,ae){n&&n(`${ae}: ${JSON.stringify(re)}`),X(re,J)}function Z(re,ae,_e,me){let le=Xi(re,ae),Oe,be;t.fileExists(le)&&(me.push(le),Oe=nK(le,Ae=>t.readFile(Ae)).config,be=an([Oe.dependencies,Oe.devDependencies,Oe.optionalDependencies,Oe.peerDependencies],Lu),G(be,`Typing names in '${le}' dependencies`));let ue=Xi(re,_e);if(me.push(ue),!t.directoryExists(ue))return;let De=[],Ce=be?be.map(Ae=>Xi(ue,Ae,ae)):t.readDirectory(ue,[".json"],void 0,void 0,3).filter(Ae=>{if(t_(Ae)!==ae)return!1;let Fe=Cd(Qs(Ae)),Be=Fe[Fe.length-3][0]==="@";return Be&&lb(Fe[Fe.length-4])===_e||!Be&&lb(Fe[Fe.length-3])===_e});n&&n(`Searching for typing names in ${ue}; all files: ${JSON.stringify(Ce)}`);for(let Ae of Ce){let Fe=Qs(Ae),de=nK(Fe,ut=>t.readFile(ut)).config;if(!de.name)continue;let ze=de.types||de.typings;if(ze){let ut=za(ze,mo(Fe));t.fileExists(ut)?(n&&n(` Package '${de.name}' provides its own types.`),T.set(de.name,ut)):n&&n(` Package '${de.name}' provides its own types but they are missing.`)}else De.push(de.name)}G(De," Found package names")}function Q(re){let ae=Wn(re,me=>{if(!jx(me))return;let le=Qm(lb(t_(me))),Oe=C9(le);return u.get(Oe)});ae.length&&G(ae,"Inferred typings from file names"),Pt(re,me=>Au(me,".jsx"))&&(n&&n("Inferred 'react' typings due to presence of '.jsx' extension"),J("react"))}}var xft=(t=>(t[t.Ok=0]="Ok",t[t.EmptyName=1]="EmptyName",t[t.NameTooLong=2]="NameTooLong",t[t.NameStartsWithDot=3]="NameStartsWithDot",t[t.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",t[t.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",t))(xft||{}),Tft=214;function $cr(t){return RFe(t,!0)}function RFe(t,n){if(!t)return 1;if(t.length>Tft)return 2;if(t.charCodeAt(0)===46)return 3;if(t.charCodeAt(0)===95)return 4;if(n){let a=/^@([^/]+)\/([^/]+)$/.exec(t);if(a){let c=RFe(a[1],!1);if(c!==0)return{name:a[1],isScopeName:!0,result:c};let u=RFe(a[2],!1);return u!==0?{name:a[2],isScopeName:!1,result:u}:0}}return encodeURIComponent(t)!==t?5:0}function Ucr(t,n){return typeof t=="object"?Eft(n,t.result,t.name,t.isScopeName):Eft(n,t,n,!1)}function Eft(t,n,a,c){let u=c?"Scope":"Package";switch(n){case 1:return`'${t}':: ${u} name '${a}' cannot be empty`;case 2:return`'${t}':: ${u} name '${a}' should be less than ${Tft} characters`;case 3:return`'${t}':: ${u} name '${a}' cannot start with '.'`;case 4:return`'${t}':: ${u} name '${a}' cannot start with '_'`;case 5:return`'${t}':: ${u} name '${a}' contains non URI safe characters`;case 0:return $.fail();default:$.assertNever(n)}}var koe;(t=>{class n{constructor(u){this.text=u}getText(u,_){return u===0&&_===this.text.length?this.text:this.text.substring(u,_)}getLength(){return this.text.length}getChangeRange(){}}function a(c){return new n(c)}t.fromString=a})(koe||(koe={}));var LFe=(t=>(t[t.Dependencies=1]="Dependencies",t[t.DevDependencies=2]="DevDependencies",t[t.PeerDependencies=4]="PeerDependencies",t[t.OptionalDependencies=8]="OptionalDependencies",t[t.All=15]="All",t))(LFe||{}),MFe=(t=>(t[t.Off=0]="Off",t[t.On=1]="On",t[t.Auto=2]="Auto",t))(MFe||{}),jFe=(t=>(t[t.Semantic=0]="Semantic",t[t.PartialSemantic=1]="PartialSemantic",t[t.Syntactic=2]="Syntactic",t))(jFe||{}),u1={},BFe=(t=>(t.Original="original",t.TwentyTwenty="2020",t))(BFe||{}),I1e=(t=>(t.All="All",t.SortAndCombine="SortAndCombine",t.RemoveUnused="RemoveUnused",t))(I1e||{}),P1e=(t=>(t[t.Invoked=1]="Invoked",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",t))(P1e||{}),$Fe=(t=>(t.Type="Type",t.Parameter="Parameter",t.Enum="Enum",t))($Fe||{}),UFe=(t=>(t.none="none",t.definition="definition",t.reference="reference",t.writtenReference="writtenReference",t))(UFe||{}),zFe=(t=>(t[t.None=0]="None",t[t.Block=1]="Block",t[t.Smart=2]="Smart",t))(zFe||{}),N1e=(t=>(t.Ignore="ignore",t.Insert="insert",t.Remove="remove",t))(N1e||{});function Coe(t){return{indentSize:4,tabSize:4,newLineCharacter:t||` -`,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var kft=Coe(` -`),Doe=(t=>(t[t.aliasName=0]="aliasName",t[t.className=1]="className",t[t.enumName=2]="enumName",t[t.fieldName=3]="fieldName",t[t.interfaceName=4]="interfaceName",t[t.keyword=5]="keyword",t[t.lineBreak=6]="lineBreak",t[t.numericLiteral=7]="numericLiteral",t[t.stringLiteral=8]="stringLiteral",t[t.localName=9]="localName",t[t.methodName=10]="methodName",t[t.moduleName=11]="moduleName",t[t.operator=12]="operator",t[t.parameterName=13]="parameterName",t[t.propertyName=14]="propertyName",t[t.punctuation=15]="punctuation",t[t.space=16]="space",t[t.text=17]="text",t[t.typeParameterName=18]="typeParameterName",t[t.enumMemberName=19]="enumMemberName",t[t.functionName=20]="functionName",t[t.regularExpressionLiteral=21]="regularExpressionLiteral",t[t.link=22]="link",t[t.linkName=23]="linkName",t[t.linkText=24]="linkText",t))(Doe||{}),qFe=(t=>(t[t.None=0]="None",t[t.MayIncludeAutoImports=1]="MayIncludeAutoImports",t[t.IsImportStatementCompletion=2]="IsImportStatementCompletion",t[t.IsContinuation=4]="IsContinuation",t[t.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",t[t.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",t[t.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",t))(qFe||{}),JFe=(t=>(t.Comment="comment",t.Region="region",t.Code="code",t.Imports="imports",t))(JFe||{}),VFe=(t=>(t[t.JavaScript=0]="JavaScript",t[t.SourceMap=1]="SourceMap",t[t.Declaration=2]="Declaration",t))(VFe||{}),WFe=(t=>(t[t.None=0]="None",t[t.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",t[t.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",t[t.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",t[t.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",t[t.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",t[t.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",t))(WFe||{}),GFe=(t=>(t[t.Punctuation=0]="Punctuation",t[t.Keyword=1]="Keyword",t[t.Operator=2]="Operator",t[t.Comment=3]="Comment",t[t.Whitespace=4]="Whitespace",t[t.Identifier=5]="Identifier",t[t.NumberLiteral=6]="NumberLiteral",t[t.BigIntLiteral=7]="BigIntLiteral",t[t.StringLiteral=8]="StringLiteral",t[t.RegExpLiteral=9]="RegExpLiteral",t))(GFe||{}),HFe=(t=>(t.unknown="",t.warning="warning",t.keyword="keyword",t.scriptElement="script",t.moduleElement="module",t.classElement="class",t.localClassElement="local class",t.interfaceElement="interface",t.typeElement="type",t.enumElement="enum",t.enumMemberElement="enum member",t.variableElement="var",t.localVariableElement="local var",t.variableUsingElement="using",t.variableAwaitUsingElement="await using",t.functionElement="function",t.localFunctionElement="local function",t.memberFunctionElement="method",t.memberGetAccessorElement="getter",t.memberSetAccessorElement="setter",t.memberVariableElement="property",t.memberAccessorVariableElement="accessor",t.constructorImplementationElement="constructor",t.callSignatureElement="call",t.indexSignatureElement="index",t.constructSignatureElement="construct",t.parameterElement="parameter",t.typeParameterElement="type parameter",t.primitiveType="primitive type",t.label="label",t.alias="alias",t.constElement="const",t.letElement="let",t.directory="directory",t.externalModuleName="external module name",t.jsxAttribute="JSX attribute",t.string="string",t.link="link",t.linkName="link name",t.linkText="link text",t))(HFe||{}),KFe=(t=>(t.none="",t.publicMemberModifier="public",t.privateMemberModifier="private",t.protectedMemberModifier="protected",t.exportedModifier="export",t.ambientModifier="declare",t.staticModifier="static",t.abstractModifier="abstract",t.optionalModifier="optional",t.deprecatedModifier="deprecated",t.dtsModifier=".d.ts",t.tsModifier=".ts",t.tsxModifier=".tsx",t.jsModifier=".js",t.jsxModifier=".jsx",t.jsonModifier=".json",t.dmtsModifier=".d.mts",t.mtsModifier=".mts",t.mjsModifier=".mjs",t.dctsModifier=".d.cts",t.ctsModifier=".cts",t.cjsModifier=".cjs",t))(KFe||{}),QFe=(t=>(t.comment="comment",t.identifier="identifier",t.keyword="keyword",t.numericLiteral="number",t.bigintLiteral="bigint",t.operator="operator",t.stringLiteral="string",t.whiteSpace="whitespace",t.text="text",t.punctuation="punctuation",t.className="class name",t.enumName="enum name",t.interfaceName="interface name",t.moduleName="module name",t.typeParameterName="type parameter name",t.typeAliasName="type alias name",t.parameterName="parameter name",t.docCommentTagName="doc comment tag name",t.jsxOpenTagName="jsx open tag name",t.jsxCloseTagName="jsx close tag name",t.jsxSelfClosingTagName="jsx self closing tag name",t.jsxAttribute="jsx attribute",t.jsxText="jsx text",t.jsxAttributeStringLiteralValue="jsx attribute string literal value",t))(QFe||{}),O1e=(t=>(t[t.comment=1]="comment",t[t.identifier=2]="identifier",t[t.keyword=3]="keyword",t[t.numericLiteral=4]="numericLiteral",t[t.operator=5]="operator",t[t.stringLiteral=6]="stringLiteral",t[t.regularExpressionLiteral=7]="regularExpressionLiteral",t[t.whiteSpace=8]="whiteSpace",t[t.text=9]="text",t[t.punctuation=10]="punctuation",t[t.className=11]="className",t[t.enumName=12]="enumName",t[t.interfaceName=13]="interfaceName",t[t.moduleName=14]="moduleName",t[t.typeParameterName=15]="typeParameterName",t[t.typeAliasName=16]="typeAliasName",t[t.parameterName=17]="parameterName",t[t.docCommentTagName=18]="docCommentTagName",t[t.jsxOpenTagName=19]="jsxOpenTagName",t[t.jsxCloseTagName=20]="jsxCloseTagName",t[t.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",t[t.jsxAttribute=22]="jsxAttribute",t[t.jsxText=23]="jsxText",t[t.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",t[t.bigintLiteral=25]="bigintLiteral",t))(O1e||{}),wf=B1(99,!0),ZFe=(t=>(t[t.None=0]="None",t[t.Value=1]="Value",t[t.Type=2]="Type",t[t.Namespace=4]="Namespace",t[t.All=7]="All",t))(ZFe||{});function Aoe(t){switch(t.kind){case 261:return Ei(t)&&U1(t)?7:1;case 170:case 209:case 173:case 172:case 304:case 305:case 175:case 174:case 177:case 178:case 179:case 263:case 219:case 220:case 300:case 292:return 1;case 169:case 265:case 266:case 188:return 2;case 347:return t.name===void 0?3:2;case 307:case 264:return 3;case 268:return Gm(t)||KT(t)===1?5:4;case 267:case 276:case 277:case 272:case 273:case 278:case 279:return 7;case 308:return 5}return 7}function x3(t){t=W1e(t);let n=t.parent;return t.kind===308?1:Xu(n)||Cm(n)||WT(n)||Xm(n)||H1(n)||gd(n)&&t===n.name?7:woe(t)?zcr(t):Eb(t)?Aoe(n):uh(t)&&fn(t,jf(fz,RO,wA))?7:Wcr(t)?2:qcr(t)?4:Zu(n)?($.assert(c1(n.parent)),2):bE(n)?3:1}function zcr(t){let n=t.kind===167?t:dh(t.parent)&&t.parent.right===t?t.parent:void 0;return n&&n.parent.kind===272?7:4}function woe(t){if(!t.parent)return!1;for(;t.parent.kind===167;)t=t.parent;return z4(t.parent)&&t.parent.moduleReference===t}function qcr(t){return Jcr(t)||Vcr(t)}function Jcr(t){let n=t,a=!0;if(n.parent.kind===167){for(;n.parent&&n.parent.kind===167;)n=n.parent;a=n.right===t}return n.parent.kind===184&&!a}function Vcr(t){let n=t,a=!0;if(n.parent.kind===212){for(;n.parent&&n.parent.kind===212;)n=n.parent;a=n.name===t}if(!a&&n.parent.kind===234&&n.parent.parent.kind===299){let c=n.parent.parent.parent;return c.kind===264&&n.parent.parent.token===119||c.kind===265&&n.parent.parent.token===96}return!1}function Wcr(t){switch(FU(t)&&(t=t.parent),t.kind){case 110:return!Tb(t);case 198:return!0}switch(t.parent.kind){case 184:return!0;case 206:return!t.parent.isTypeOf;case 234:return vS(t.parent)}return!1}function F1e(t,n=!1,a=!1){return BK(t,Js,L1e,n,a)}function Wz(t,n=!1,a=!1){return BK(t,SP,L1e,n,a)}function R1e(t,n=!1,a=!1){return BK(t,mS,L1e,n,a)}function XFe(t,n=!1,a=!1){return BK(t,xA,Gcr,n,a)}function YFe(t,n=!1,a=!1){return BK(t,hd,L1e,n,a)}function e7e(t,n=!1,a=!1){return BK(t,Em,Hcr,n,a)}function L1e(t){return t.expression}function Gcr(t){return t.tag}function Hcr(t){return t.tagName}function BK(t,n,a,c,u){let _=c?Kcr(t):Ioe(t);return u&&(_=Wp(_)),!!_&&!!_.parent&&n(_.parent)&&a(_.parent)===_}function Ioe(t){return WL(t)?t.parent:t}function Kcr(t){return WL(t)||$1e(t)?t.parent:t}function Poe(t,n){for(;t;){if(t.kind===257&&t.label.escapedText===n)return t.label;t=t.parent}}function $K(t,n){return no(t.expression)?t.expression.name.text===n:!1}function UK(t){var n;return ct(t)&&((n=Ci(t.parent,tU))==null?void 0:n.label)===t}function M1e(t){var n;return ct(t)&&((n=Ci(t.parent,bC))==null?void 0:n.label)===t}function j1e(t){return M1e(t)||UK(t)}function B1e(t){var n;return((n=Ci(t.parent,MR))==null?void 0:n.tagName)===t}function t7e(t){var n;return((n=Ci(t.parent,dh))==null?void 0:n.right)===t}function WL(t){var n;return((n=Ci(t.parent,no))==null?void 0:n.name)===t}function $1e(t){var n;return((n=Ci(t.parent,mu))==null?void 0:n.argumentExpression)===t}function U1e(t){var n;return((n=Ci(t.parent,I_))==null?void 0:n.name)===t}function z1e(t){var n;return ct(t)&&((n=Ci(t.parent,Rs))==null?void 0:n.name)===t}function Noe(t){switch(t.parent.kind){case 173:case 172:case 304:case 307:case 175:case 174:case 178:case 179:case 268:return cs(t.parent)===t;case 213:return t.parent.argumentExpression===t;case 168:return!0;case 202:return t.parent.parent.kind===200;default:return!1}}function r7e(t){return pA(t.parent.parent)&&hU(t.parent.parent)===t}function T3(t){for(n1(t)&&(t=t.parent.parent);;){if(t=t.parent,!t)return;switch(t.kind){case 308:case 175:case 174:case 263:case 219:case 178:case 179:case 264:case 265:case 267:case 268:return t}}}function NP(t){switch(t.kind){case 308:return yd(t)?"module":"script";case 268:return"module";case 264:case 232:return"class";case 265:return"interface";case 266:case 339:case 347:return"type";case 267:return"enum";case 261:return n(t);case 209:return n(bS(t));case 220:case 263:case 219:return"function";case 178:return"getter";case 179:return"setter";case 175:case 174:return"method";case 304:let{initializer:a}=t;return Rs(a)?"method":"property";case 173:case 172:case 305:case 306:return"property";case 182:return"index";case 181:return"construct";case 180:return"call";case 177:case 176:return"constructor";case 169:return"type parameter";case 307:return"enum member";case 170:return ko(t,31)?"property":"parameter";case 272:case 277:case 282:case 275:case 281:return"alias";case 227:let c=m_(t),{right:u}=t;switch(c){case 7:case 8:case 9:case 0:return"";case 1:case 2:let f=NP(u);return f===""?"const":f;case 3:return bu(u)?"method":"property";case 4:return"property";case 5:return bu(u)?"method":"property";case 6:return"local class";default:return""}case 80:return H1(t.parent)?"alias":"";case 278:let _=NP(t.expression);return _===""?"const":_;default:return""}function n(a){return zR(a)?"const":pre(a)?"let":"var"}}function GL(t){switch(t.kind){case 110:return!0;case 80:return hhe(t)&&t.parent.kind===170;default:return!1}}var Qcr=/^\/\/\/\s*=a}function Gz(t,n,a){return Foe(t.pos,t.end,n,a)}function Ooe(t,n,a,c){return Foe(t.getStart(n),t.end,a,c)}function Foe(t,n,a,c){let u=Math.max(t,a),_=Math.min(n,c);return u<_}function q1e(t,n,a){return $.assert(t.pos<=n),nc.kind===n)}function Roe(t){let n=wt(t.parent.getChildren(),a=>kL(a)&&zh(a,t));return $.assert(!n||un(n.getChildren(),t)),n}function Cft(t){return t.kind===90}function Zcr(t){return t.kind===86}function Xcr(t){return t.kind===100}function Ycr(t){if(Vp(t))return t.name;if(ed(t)){let n=t.modifiers&&wt(t.modifiers,Cft);if(n)return n}if(w_(t)){let n=wt(t.getChildren(),Zcr);if(n)return n}}function elr(t){if(Vp(t))return t.name;if(i_(t)){let n=wt(t.modifiers,Cft);if(n)return n}if(bu(t)){let n=wt(t.getChildren(),Xcr);if(n)return n}}function tlr(t){let n;return fn(t,a=>(Wo(a)&&(n=a),!dh(a.parent)&&!Wo(a.parent)&&!KI(a.parent))),n}function Loe(t,n){if(t.flags&16777216)return;let a=Xoe(t,n);if(a)return a;let c=tlr(t);return c&&n.getTypeAtLocation(c)}function rlr(t,n){if(!n)switch(t.kind){case 264:case 232:return Ycr(t);case 263:case 219:return elr(t);case 177:return t}if(Vp(t))return t.name}function Dft(t,n){if(t.importClause){if(t.importClause.name&&t.importClause.namedBindings)return;if(t.importClause.name)return t.importClause.name;if(t.importClause.namedBindings){if(IS(t.importClause.namedBindings)){let a=to(t.importClause.namedBindings.elements);return a?a.name:void 0}else if(zx(t.importClause.namedBindings))return t.importClause.namedBindings.name}}if(!n)return t.moduleSpecifier}function Aft(t,n){if(t.exportClause){if(k0(t.exportClause))return to(t.exportClause.elements)?t.exportClause.elements[0].name:void 0;if(Db(t.exportClause))return t.exportClause.name}if(!n)return t.moduleSpecifier}function nlr(t){if(t.types.length===1)return t.types[0].expression}function wft(t,n){let{parent:a}=t;if(bc(t)&&(n||t.kind!==90)?l1(a)&&un(a.modifiers,t):t.kind===86?ed(a)||w_(t):t.kind===100?i_(a)||bu(t):t.kind===120?Af(a):t.kind===94?CA(a):t.kind===156?s1(a):t.kind===145||t.kind===144?I_(a):t.kind===102?gd(a):t.kind===139?T0(a):t.kind===153&&mg(a)){let c=rlr(a,n);if(c)return c}if((t.kind===115||t.kind===87||t.kind===121)&&Df(a)&&a.declarations.length===1){let c=a.declarations[0];if(ct(c.name))return c.name}if(t.kind===156){if(H1(a)&&a.isTypeOnly){let c=Dft(a.parent,n);if(c)return c}if(P_(a)&&a.isTypeOnly){let c=Aft(a,n);if(c)return c}}if(t.kind===130){if(Xm(a)&&a.propertyName||Cm(a)&&a.propertyName||zx(a)||Db(a))return a.name;if(P_(a)&&a.exportClause&&Db(a.exportClause))return a.exportClause.name}if(t.kind===102&&fp(a)){let c=Dft(a,n);if(c)return c}if(t.kind===95){if(P_(a)){let c=Aft(a,n);if(c)return c}if(Xu(a))return Wp(a.expression)}if(t.kind===149&&WT(a))return a.expression;if(t.kind===161&&(fp(a)||P_(a))&&a.moduleSpecifier)return a.moduleSpecifier;if((t.kind===96||t.kind===119)&&zg(a)&&a.token===t.kind){let c=nlr(a);if(c)return c}if(t.kind===96){if(Zu(a)&&a.constraint&&Ug(a.constraint))return a.constraint.typeName;if(yP(a)&&Ug(a.extendsType))return a.extendsType.typeName}if(t.kind===140&&n3(a))return a.typeParameter.name;if(t.kind===103&&Zu(a)&&o3(a.parent))return a.name;if(t.kind===143&&bA(a)&&a.operator===143&&Ug(a.type))return a.type.typeName;if(t.kind===148&&bA(a)&&a.operator===148&&jH(a.type)&&Ug(a.type.elementType))return a.type.elementType.typeName;if(!n){if((t.kind===105&&SP(a)||t.kind===116&&SF(a)||t.kind===114&&hL(a)||t.kind===135&&SC(a)||t.kind===127&&BH(a)||t.kind===91&&U3e(a))&&a.expression)return Wp(a.expression);if((t.kind===103||t.kind===104)&&wi(a)&&a.operatorToken===t)return Wp(a.right);if(t.kind===130&&gL(a)&&Ug(a.type))return a.type.typeName;if(t.kind===103&&Vne(a)||t.kind===165&&$H(a))return Wp(a.expression)}return t}function W1e(t){return wft(t,!1)}function Moe(t){return wft(t,!0)}function Vh(t,n){return KL(t,n,a=>SS(a)||Uh(a.kind)||Aa(a))}function KL(t,n,a){return Ift(t,n,!1,a,!1)}function la(t,n){return Ift(t,n,!0,void 0,!1)}function Ift(t,n,a,c,u){let _=t,f;e:for(;;){let g=_.getChildren(t),k=Yl(g,n,(T,C)=>C,(T,C)=>{let O=g[T].getEnd();if(On?1:y(g[T],F,O)?g[T-1]&&y(g[T-1])?1:0:c&&F===n&&g[T-1]&&g[T-1].getEnd()===n&&y(g[T-1])?1:-1});if(f)return f;if(k>=0&&g[k]){_=g[k];continue e}return _}function y(g,k,T){if(T??(T=g.getEnd()),Tn))return!1;if(na.getStart(t)&&n(_.pos<=t.pos&&_.end>t.end||_.pos===t.end)&&p7e(_,a)?c(_):void 0)}}function vd(t,n,a,c){let u=_(a||n);return $.assert(!(u&&joe(u))),u;function _(f){if(Pft(f)&&f.kind!==1)return f;let y=f.getChildren(n),g=Yl(y,t,(T,C)=>C,(T,C)=>t=y[T-1].end?0:1:-1);if(g>=0&&y[g]){let T=y[g];if(t=t||!p7e(T,n)||joe(T)){let F=s7e(y,g,n,f.kind);return F?!c&&Kte(F)&&F.getChildren(n).length?_(F):a7e(F,n):void 0}else return _(T)}$.assert(a!==void 0||f.kind===308||f.kind===1||Kte(f));let k=s7e(y,y.length,n,f.kind);return k&&a7e(k,n)}}function Pft(t){return PO(t)&&!joe(t)}function a7e(t,n){if(Pft(t))return t;let a=t.getChildren(n);if(a.length===0)return t;let c=s7e(a,a.length,n,t.kind);return c&&a7e(c,n)}function s7e(t,n,a,c){for(let u=n-1;u>=0;u--){let _=t[u];if(joe(_))u===0&&(c===12||c===286)&&$.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(p7e(t[u],a))return t[u]}}function jF(t,n,a=vd(n,t)){if(a&&ime(a)){let c=a.getStart(t),u=a.getEnd();if(ca.getStart(t)}function l7e(t,n){let a=la(t,n);return!!(_F(a)||a.kind===19&&SL(a.parent)&&PS(a.parent.parent)||a.kind===30&&Em(a.parent)&&PS(a.parent.parent))}function Boe(t,n){function a(c){for(;c;)if(c.kind>=286&&c.kind<=295||c.kind===12||c.kind===30||c.kind===32||c.kind===80||c.kind===20||c.kind===19||c.kind===44)c=c.parent;else if(c.kind===285){if(n>c.getStart(t))return!0;c=c.parent}else return!1;return!1}return a(la(t,n))}function $oe(t,n,a){let c=Zs(t.kind),u=Zs(n),_=t.getFullStart(),f=a.text.lastIndexOf(u,_);if(f===-1)return;if(a.text.lastIndexOf(c,_-1)!!_.typeParameters&&_.typeParameters.length>=n)}function K1e(t,n){if(n.text.lastIndexOf("<",t?t.pos:n.text.length)===-1)return;let a=t,c=0,u=0;for(;a;){switch(a.kind){case 30:if(a=vd(a.getFullStart(),n),a&&a.kind===29&&(a=vd(a.getFullStart(),n)),!a||!ct(a))return;if(!c)return Eb(a)?void 0:{called:a,nTypeArguments:u};c--;break;case 50:c=3;break;case 49:c=2;break;case 32:c++;break;case 20:if(a=$oe(a,19,n),!a)return;break;case 22:if(a=$oe(a,21,n),!a)return;break;case 24:if(a=$oe(a,23,n),!a)return;break;case 28:u++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(Wo(a))break;return}a=vd(a.getFullStart(),n)}}function EE(t,n,a){return rd.getRangeOfEnclosingComment(t,n,void 0,a)}function u7e(t,n){let a=la(t,n);return!!fn(a,kv)}function p7e(t,n){return t.kind===1?!!t.jsDoc:t.getWidth(n)!==0}function Kz(t,n=0){let a=[],c=Vd(t)?_u(t)&~n:0;return c&2&&a.push("private"),c&4&&a.push("protected"),c&1&&a.push("public"),(c&256||n_(t))&&a.push("static"),c&64&&a.push("abstract"),c&32&&a.push("export"),c&65536&&a.push("deprecated"),t.flags&33554432&&a.push("declare"),t.kind===278&&a.push("export"),a.length>0?a.join(","):""}function _7e(t){if(t.kind===184||t.kind===214)return t.typeArguments;if(Rs(t)||t.kind===264||t.kind===265)return t.typeParameters}function Uoe(t){return t===2||t===3}function Q1e(t){return!!(t===11||t===14||Xk(t))}function Nft(t,n,a){return!!(n.flags&4)&&t.isEmptyAnonymousObjectType(a)}function d7e(t){if(!t.isIntersection())return!1;let{types:n,checker:a}=t;return n.length===2&&(Nft(a,n[0],n[1])||Nft(a,n[1],n[0]))}function VK(t,n,a){return Xk(t.kind)&&t.getStart(a){let a=hl(n);return!t[a]&&(t[a]=!0)}}function BF(t){return t.getText(0,t.getLength())}function GK(t,n){let a="";for(let c=0;c!n.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(n)&&!!(n.externalModuleIndicator||n.commonJsModuleIndicator))}function g7e(t){return t.getSourceFiles().some(n=>!n.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(n)&&!!n.externalModuleIndicator)}function ive(t){return!!t.module||$c(t)>=2||!!t.noEmit}function BA(t,n){return{fileExists:a=>t.fileExists(a),getCurrentDirectory:()=>n.getCurrentDirectory(),readFile:ja(n,n.readFile),useCaseSensitiveFileNames:ja(n,n.useCaseSensitiveFileNames)||t.useCaseSensitiveFileNames,getSymlinkCache:ja(n,n.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:ja(n,n.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var a;return(a=t.getModuleResolutionCache())==null?void 0:a.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:ja(n,n.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getRedirectFromSourceFile:a=>t.getRedirectFromSourceFile(a),isSourceOfProjectReferenceRedirect:a=>t.isSourceOfProjectReferenceRedirect(a),getNearestAncestorDirectoryWithPackageJson:ja(n,n.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>t.getFileIncludeReasons(),getCommonSourceDirectory:()=>t.getCommonSourceDirectory(),getDefaultResolutionModeForFile:a=>t.getDefaultResolutionModeForFile(a),getModeForResolutionAtIndex:(a,c)=>t.getModeForResolutionAtIndex(a,c)}}function ove(t,n){return{...BA(t,n),getCommonSourceDirectory:()=>t.getCommonSourceDirectory()}}function Voe(t){return t===2||t>=3&&t<=99||t===100}function IC(t,n,a,c,u){return W.createImportDeclaration(void 0,t||n?W.createImportClause(u?156:void 0,t,n&&n.length?W.createNamedImports(n):void 0):void 0,typeof a=="string"?Zz(a,c):a,void 0)}function Zz(t,n){return W.createStringLiteral(t,n===0)}var y7e=(t=>(t[t.Single=0]="Single",t[t.Double=1]="Double",t))(y7e||{});function ave(t,n){return Dre(t,n)?1:0}function Vg(t,n){if(n.quotePreference&&n.quotePreference!=="auto")return n.quotePreference==="single"?0:1;{let a=Ox(t)&&t.imports&&wt(t.imports,c=>Ic(c)&&!fu(c.parent));return a?ave(a,t):1}}function sve(t){switch(t){case 0:return"'";case 1:return'"';default:return $.assertNever(t)}}function cve(t){let n=Woe(t);return n===void 0?void 0:oa(n)}function Woe(t){return t.escapedName!=="default"?t.escapedName:Je(t.declarations,n=>{let a=cs(n);return a&&a.kind===80?a.escapedText:void 0})}function Goe(t){return Sl(t)&&(WT(t.parent)||fp(t.parent)||OS(t.parent)||$h(t.parent,!1)&&t.parent.arguments[0]===t||Bh(t.parent)&&t.parent.arguments[0]===t)}function KK(t){return Vc(t)&&$y(t.parent)&&ct(t.name)&&!t.propertyName}function Hoe(t,n){let a=t.getTypeAtLocation(n.parent);return a&&t.getPropertyOfType(a,n.name.text)}function QK(t,n,a){if(t)for(;t.parent;){if(Ta(t.parent)||!olr(a,t.parent,n))return t;t=t.parent}}function olr(t,n,a){return jo(t,n.getStart(a))&&n.getEnd()<=Xn(t)}function ZL(t,n){return l1(t)?wt(t.modifiers,a=>a.kind===n):void 0}function lve(t,n,a,c,u){var _;let y=(Zn(a)?a[0]:a).kind===244?LG:$O,g=yr(n.statements,y),{comparer:k,isSorted:T}=WA.getOrganizeImportsStringComparerWithDetection(g,u),C=Zn(a)?pu(a,(O,F)=>WA.compareImportsOrRequireStatements(O,F,k)):[a];if(!g?.length){if(Ox(n))t.insertNodesAtTopOfFile(n,C,c);else for(let O of C)t.insertStatementsInNewFile(n.fileName,[O],(_=Ku(O))==null?void 0:_.getSourceFile());return}if($.assert(Ox(n)),g&&T)for(let O of C){let F=WA.getImportDeclarationInsertionIndex(g,O,k);if(F===0){let M=g[0]===n.statements[0]?{leadingTriviaOption:ki.LeadingTriviaOption.Exclude}:{};t.insertNodeBefore(n,g[0],O,!1,M)}else{let M=g[F-1];t.insertNodeAfter(n,M,O)}}else{let O=Yr(g);O?t.insertNodesAfter(n,O,C):t.insertNodesAtTopOfFile(n,C,c)}}function uve(t,n){return $.assert(t.isTypeOnly),Ba(t.getChildAt(0,n),Fft)}function XL(t,n){return!!t&&!!n&&t.start===n.start&&t.length===n.length}function pve(t,n,a){return(a?qm:F1)(t.fileName,n.fileName)&&XL(t.textSpan,n.textSpan)}function _ve(t){return(n,a)=>pve(n,a,t)}function dve(t,n){if(t){for(let a=0;awa(a)?!0:Vc(a)||$y(a)||xE(a)?!1:"quit")}var S7e=new Map;function alr(t){return t=t||cU,S7e.has(t)||S7e.set(t,slr(t)),S7e.get(t)}function slr(t){let n=t*10,a,c,u,_;C();let f=O=>g(O,17);return{displayParts:()=>{let O=a.length&&a[a.length-1].text;return _>n&&O&&O!=="..."&&(p0(O.charCodeAt(O.length-1))||a.push(hg(" ",16)),a.push(hg("...",15))),a},writeKeyword:O=>g(O,5),writeOperator:O=>g(O,12),writePunctuation:O=>g(O,15),writeTrailingSemicolon:O=>g(O,15),writeSpace:O=>g(O,16),writeStringLiteral:O=>g(O,8),writeParameter:O=>g(O,13),writeProperty:O=>g(O,14),writeLiteral:O=>g(O,8),writeSymbol:k,writeLine:T,write:f,writeComment:f,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Ts,getIndent:()=>u,increaseIndent:()=>{u++},decreaseIndent:()=>{u--},clear:C};function y(){if(!(_>n)&&c){let O=jre(u);O&&(_+=O.length,a.push(hg(O,16))),c=!1}}function g(O,F){_>n||(y(),_+=O.length,a.push(hg(O,F)))}function k(O,F){_>n||(y(),_+=O.length,a.push(clr(O,F)))}function T(){_>n||(_+=1,a.push(YL()),c=!0)}function C(){a=[],c=!0,u=0,_=0}}function clr(t,n){return hg(t,a(n));function a(c){let u=c.flags;return u&3?mve(c)?13:9:u&4||u&32768||u&65536?14:u&8?19:u&16?20:u&32?1:u&64?4:u&384?2:u&1536?11:u&8192?10:u&262144?18:u&524288||u&2097152?0:17}}function hg(t,n){return{text:t,kind:Doe[n]}}function Lp(){return hg(" ",16)}function Wg(t){return hg(Zs(t),5)}function wm(t){return hg(Zs(t),15)}function Yz(t){return hg(Zs(t),12)}function b7e(t){return hg(t,13)}function x7e(t){return hg(t,14)}function hve(t){let n=kx(t);return n===void 0?Vy(t):Wg(n)}function Vy(t){return hg(t,17)}function T7e(t){return hg(t,0)}function E7e(t){return hg(t,18)}function k7e(t){return hg(t,24)}function llr(t,n){return{text:t,kind:Doe[23],target:{fileName:Pn(n).fileName,textSpan:yh(n)}}}function Rft(t){return hg(t,22)}function C7e(t,n){var a;let c=Q3e(t)?"link":Z3e(t)?"linkcode":"linkplain",u=[Rft(`{@${c} `)];if(!t.name)t.text&&u.push(k7e(t.text));else{let _=n?.getSymbolAtLocation(t.name),f=_&&n?vve(_,n):void 0,y=plr(t.text),g=Sp(t.name)+t.text.slice(0,y),k=ulr(t.text.slice(y)),T=f?.valueDeclaration||((a=f?.declarations)==null?void 0:a[0]);if(T)u.push(llr(g,T)),k&&u.push(k7e(k));else{let C=y===0||t.text.charCodeAt(y)===124&&g.charCodeAt(g.length-1)!==32?" ":"";u.push(k7e(g+C+k))}}return u.push(Rft("}")),u}function ulr(t){let n=0;if(t.charCodeAt(n++)===124){for(;n"&&a--,c++,!a)return c}return 0}var _lr=` -`;function ZT(t,n){var a;return n?.newLineCharacter||((a=t.getNewLine)==null?void 0:a.call(t))||_lr}function YL(){return hg(` -`,6)}function PC(t,n){let a=alr(n);try{return t(a),a.displayParts()}finally{a.clear()}}function ZK(t,n,a,c=0,u,_,f){return PC(y=>{t.writeType(n,a,c|1024|16384,y,u,_,f)},u)}function eq(t,n,a,c,u=0){return PC(_=>{t.writeSymbol(n,a,c,u|8,_)})}function gve(t,n,a,c=0,u,_,f){return c|=25632,PC(y=>{t.writeSignature(n,a,c,void 0,y,u,_,f)},u)}function D7e(t){return!!t.parent&&Yk(t.parent)&&t.parent.propertyName===t}function yve(t,n){return fne(t,n.getScriptKind&&n.getScriptKind(t))}function vve(t,n){let a=t;for(;dlr(a)||wx(a)&&a.links.target;)wx(a)&&a.links.target?a=a.links.target:a=$f(a,n);return a}function dlr(t){return(t.flags&2097152)!==0}function A7e(t,n){return hc($f(t,n))}function w7e(t,n){for(;p0(t.charCodeAt(n));)n+=1;return n}function Qoe(t,n){for(;n>-1&&_0(t.charCodeAt(n));)n-=1;return n+1}function E3(t,n){let a=t.getSourceFile(),c=a.text;flr(t,c)?eM(t,n,a):YK(t,n,a),tq(t,n,a)}function flr(t,n){let a=t.getFullStart(),c=t.getStart();for(let u=a;u=0),_}function eM(t,n,a,c,u){A4(a.text,t.pos,I7e(n,a,c,u,gC))}function tq(t,n,a,c,u){w4(a.text,t.end,I7e(n,a,c,u,nz))}function YK(t,n,a,c,u){w4(a.text,t.pos,I7e(n,a,c,u,gC))}function I7e(t,n,a,c,u){return(_,f,y,g)=>{y===3?(_+=2,f-=2):_+=2,u(t,a||y,n.text.slice(_,f),c!==void 0?c:g)}}function mlr(t,n){if(Ca(t,n))return 0;let a=t.indexOf(" "+n);return a===-1&&(a=t.indexOf("."+n)),a===-1&&(a=t.indexOf('"'+n)),a===-1?-1:a+1}function Zoe(t){return wi(t)&&t.operatorToken.kind===28||Lc(t)||(gL(t)||yL(t))&&Lc(t.expression)}function Xoe(t,n,a){let c=V1(t.parent);switch(c.kind){case 215:return n.getContextualType(c,a);case 227:{let{left:u,operatorToken:_,right:f}=c;return Yoe(_.kind)?n.getTypeAtLocation(t===f?u:f):n.getContextualType(t,a)}case 297:return bve(c,n);default:return n.getContextualType(t,a)}}function rq(t,n,a){let c=Vg(t,n),u=JSON.stringify(a);return c===0?`'${i1(u).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:u}function Yoe(t){switch(t){case 37:case 35:case 38:case 36:return!0;default:return!1}}function P7e(t){switch(t.kind){case 11:case 15:case 229:case 216:return!0;default:return!1}}function Sve(t){return!!t.getStringIndexType()||!!t.getNumberIndexType()}function bve(t,n){return n.getTypeAtLocation(t.parent.parent.expression)}var xve="anonymous function";function nq(t,n,a,c){let u=a.getTypeChecker(),_=!0,f=()=>_=!1,y=u.typeToTypeNode(t,n,1,8,{trackSymbol:(g,k,T)=>(_=_&&u.isSymbolAccessible(g,k,T,!1).accessibility===0,!_),reportInaccessibleThisError:f,reportPrivateInBaseOfClassExpression:f,reportInaccessibleUniqueSymbolError:f,moduleResolverHost:ove(a,c)});return _?y:void 0}function N7e(t){return t===180||t===181||t===182||t===172||t===174}function Lft(t){return t===263||t===177||t===175||t===178||t===179}function Mft(t){return t===268}function O7e(t){return t===244||t===245||t===247||t===252||t===253||t===254||t===258||t===260||t===173||t===266||t===273||t===272||t===279||t===271||t===278}var hlr=jf(N7e,Lft,Mft,O7e);function glr(t,n){let a=t.getLastToken(n);if(a&&a.kind===27)return!1;if(N7e(t.kind)){if(a&&a.kind===28)return!1}else if(Mft(t.kind)){let y=Sn(t.getChildren(n));if(y&&wS(y))return!1}else if(Lft(t.kind)){let y=Sn(t.getChildren(n));if(y&&tP(y))return!1}else if(!O7e(t.kind))return!1;if(t.kind===247)return!0;let c=fn(t,y=>!y.parent),u=OP(t,c,n);if(!u||u.kind===20)return!0;let _=n.getLineAndCharacterOfPosition(t.getEnd()).line,f=n.getLineAndCharacterOfPosition(u.getStart(n)).line;return _!==f}function eae(t,n,a){let c=fn(n,u=>u.end!==t?"quit":hlr(u.kind));return!!c&&glr(c,a)}function eQ(t){let n=0,a=0,c=5;return Is(t,function u(_){if(O7e(_.kind)){let f=_.getLastToken(t);f?.kind===27?n++:a++}else if(N7e(_.kind)){let f=_.getLastToken(t);if(f?.kind===27)n++;else if(f&&f.kind!==28){let y=qs(t,f.getStart(t)).line,g=qs(t,gS(t,f.end).start).line;y!==g&&a++}}return n+a>=c?!0:Is(_,u)}),n===0&&a<=1?!0:n/a>1/c}function tae(t,n){return F7e(t,t.getDirectories,n)||[]}function Tve(t,n,a,c,u){return F7e(t,t.readDirectory,n,a,c,u)||j}function iq(t,n){return F7e(t,t.fileExists,n)}function rae(t,n){return nae(()=>Sv(n,t))||!1}function nae(t){try{return t()}catch{return}}function F7e(t,n,...a){return nae(()=>n&&n.apply(t,a))}function Eve(t,n){let a=[];return Ab(n,t,c=>{let u=Xi(c,"package.json");iq(n,u)&&a.push(u)}),a}function R7e(t,n){let a;return Ab(n,t,c=>{if(c==="node_modules"||(a=k0e(c,u=>iq(n,u),"package.json"),a))return!0}),a}function ylr(t,n){if(!n.fileExists)return[];let a=[];return Ab(n,mo(t),c=>{let u=Xi(c,"package.json");if(n.fileExists(u)){let _=kve(u,n);_&&a.push(_)}}),a}function kve(t,n){if(!n.readFile)return;let a=["dependencies","devDependencies","optionalDependencies","peerDependencies"],c=n.readFile(t)||"",u=lH(c),_={};if(u)for(let g of a){let k=u[g];if(!k)continue;let T=new Map;for(let C in k)T.set(C,k[C]);_[g]=T}let f=[[1,_.dependencies],[2,_.devDependencies],[8,_.optionalDependencies],[4,_.peerDependencies]];return{..._,parseable:!!u,fileName:t,get:y,has(g,k){return!!y(g,k)}};function y(g,k=15){for(let[T,C]of f)if(C&&k&T){let O=C.get(g);if(O!==void 0)return O}}}function tM(t,n,a){let c=(a.getPackageJsonsVisibleToFile&&a.getPackageJsonsVisibleToFile(t.fileName)||ylr(t.fileName,a)).filter(M=>M.parseable),u,_,f;return{allowsImportingAmbientModule:g,getSourceFileInfo:k,allowsImportingSpecifier:T};function y(M){let U=F(M);for(let J of c)if(J.has(U)||J.has(Pie(U)))return!0;return!1}function g(M,U){if(!c.length||!M.valueDeclaration)return!0;if(!_)_=new Map;else{let re=_.get(M);if(re!==void 0)return re}let J=i1(M.getName());if(C(J))return _.set(M,!0),!0;let G=M.valueDeclaration.getSourceFile(),Z=O(G.fileName,U);if(typeof Z>"u")return _.set(M,!0),!0;let Q=y(Z)||y(J);return _.set(M,Q),Q}function k(M,U){if(!c.length)return{importable:!0,packageName:void 0};if(!f)f=new Map;else{let Q=f.get(M);if(Q!==void 0)return Q}let J=O(M.fileName,U);if(!J){let Q={importable:!0,packageName:J};return f.set(M,Q),Q}let Z={importable:y(J),packageName:J};return f.set(M,Z),Z}function T(M){return!c.length||C(M)||ch(M)||qd(M)?!0:y(M)}function C(M){return!!(Ox(t)&&ph(t)&&pL.has(M)&&(u===void 0&&(u=iae(t)),u))}function O(M,U){if(!M.includes("node_modules"))return;let J=QT.getNodeModulesPackageName(a.getCompilationSettings(),t,M,U,n);if(J&&!ch(J)&&!qd(J))return F(J)}function F(M){let U=Cd(Dz(M)).slice(1);return Ca(U[0],"@")?`${U[0]}/${U[1]}`:U[0]}}function iae(t){return Pt(t.imports,({text:n})=>pL.has(n))}function tQ(t){return un(Cd(t),"node_modules")}function jft(t){return t.file!==void 0&&t.start!==void 0&&t.length!==void 0}function L7e(t,n){let a=yh(t),c=Yl(n,a,vl,fy);if(c>=0){let u=n[c];return $.assertEqual(u.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),Ba(u,jft)}}function M7e(t,n){var a;let c=Yl(n,t.start,f=>f.start,Br);for(c<0&&(c=~c);((a=n[c-1])==null?void 0:a.start)===t.start;)c--;let u=[],_=Xn(t);for(;;){let f=Ci(n[c],jft);if(!f||f.start>_)break;Ha(t,f)&&u.push(f),c++}return u}function $F({startPosition:t,endPosition:n}){return Hu(t,n===void 0?t:n)}function Cve(t,n){let a=la(t,n.start);return fn(a,u=>u.getStart(t)Xn(n)?"quit":Vt(u)&&XL(n,yh(u,t)))}function Dve(t,n,a=vl){return t?Zn(t)?a(Cr(t,n)):n(t,0):void 0}function Ave(t){return Zn(t)?To(t):t}function oae(t,n,a){return t.escapedName==="export="||t.escapedName==="default"?wve(t)||rQ(vlr(t),n,!!a):t.name}function wve(t){return Je(t.declarations,n=>{var a,c,u;if(Xu(n))return(a=Ci(Wp(n.expression),ct))==null?void 0:a.text;if(Cm(n)&&n.symbol.flags===2097152)return(c=Ci(n.propertyName,ct))==null?void 0:c.text;let _=(u=Ci(cs(n),ct))==null?void 0:u.text;if(_)return _;if(t.parent&&!LO(t.parent))return t.parent.getName()})}function vlr(t){var n;return $.checkDefined(t.parent,`Symbol parent was undefined. Flags: ${$.formatSymbolFlags(t.flags)}. Declarations: ${(n=t.declarations)==null?void 0:n.map(a=>{let c=$.formatSyntaxKind(a.kind),u=Ei(a),{expression:_}=a;return(u?"[JS]":"")+c+(_?` (expression: ${$.formatSyntaxKind(_.kind)})`:"")}).join(", ")}.`)}function rQ(t,n,a){return nQ(Qm(i1(t.name)),n,a)}function nQ(t,n,a){let c=t_(Lk(Qm(t),"/index")),u="",_=!0,f=c.charCodeAt(0);pg(f,n)?(u+=String.fromCharCode(f),a&&(u=u.toUpperCase())):_=!1;for(let y=1;yt.length)return!1;for(let u=0;u(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.Namespace=2]="Namespace",t[t.CommonJS=3]="CommonJS",t))(B7e||{}),$7e=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t[t.UMD=3]="UMD",t[t.Module=4]="Module",t))($7e||{});function Ove(t){let n=1,a=d_(),c=new Map,u=new Map,_,f={isUsableByFile:F=>F===_,isEmpty:()=>!a.size,clear:()=>{a.clear(),c.clear(),_=void 0},add:(F,M,U,J,G,Z,Q,re)=>{F!==_&&(f.clear(),_=F);let ae;if(G){let Be=Tne(G.fileName);if(Be){let{topLevelNodeModulesIndex:de,topLevelPackageNameIndex:ze,packageRootIndex:ut}=Be;if(ae=pK(Dz(G.fileName.substring(ze+1,ut))),Ca(F,G.path.substring(0,de))){let je=u.get(ae),ve=G.fileName.substring(0,ze+1);if(je){let Le=je.indexOf(Jx);de>Le&&u.set(ae,ve)}else u.set(ae,ve)}}}let me=Z===1&&RU(M)||M,le=Z===0||LO(me)?oa(U):blr(me,re,void 0),Oe=typeof le=="string"?le:le[0],be=typeof le=="string"?void 0:le[1],ue=i1(J.name),De=n++,Ce=$f(M,re),Ae=M.flags&33554432?void 0:M,Fe=J.flags&33554432?void 0:J;(!Ae||!Fe)&&c.set(De,[M,J]),a.add(g(Oe,M,vt(ue)?void 0:ue,re),{id:De,symbolTableKey:U,symbolName:Oe,capitalizedSymbolName:be,moduleName:ue,moduleFile:G,moduleFileName:G?.fileName,packageName:ae,exportKind:Z,targetFlags:Ce.flags,isFromPackageJson:Q,symbol:Ae,moduleSymbol:Fe})},get:(F,M)=>{if(F!==_)return;let U=a.get(M);return U?.map(y)},search:(F,M,U,J)=>{if(F===_)return Ad(a,(G,Z)=>{let{symbolName:Q,ambientModuleName:re}=k(Z),ae=M&&G[0].capitalizedSymbolName||Q;if(U(ae,G[0].targetFlags)){let me=G.map(y).filter((le,Oe)=>O(le,G[Oe].packageName));if(me.length){let le=J(me,ae,!!re,Z);if(le!==void 0)return le}}})},releaseSymbols:()=>{c.clear()},onFileChanged:(F,M,U)=>T(F)&&T(M)?!1:_&&_!==M.path||U&&iae(F)!==iae(M)||!__(F.moduleAugmentations,M.moduleAugmentations)||!C(F,M)?(f.clear(),!0):(_=M.path,!1)};return $.isDebugging&&Object.defineProperty(f,"__cache",{value:a}),f;function y(F){if(F.symbol&&F.moduleSymbol)return F;let{id:M,exportKind:U,targetFlags:J,isFromPackageJson:G,moduleFileName:Z}=F,[Q,re]=c.get(M)||j;if(Q&&re)return{symbol:Q,moduleSymbol:re,moduleFileName:Z,exportKind:U,targetFlags:J,isFromPackageJson:G};let ae=(G?t.getPackageJsonAutoImportProvider():t.getCurrentProgram()).getTypeChecker(),_e=F.moduleSymbol||re||$.checkDefined(F.moduleFile?ae.getMergedSymbol(F.moduleFile.symbol):ae.tryFindAmbientModule(F.moduleName)),me=F.symbol||Q||$.checkDefined(U===2?ae.resolveExternalModuleSymbol(_e):ae.tryGetMemberInModuleExportsAndProperties(oa(F.symbolTableKey),_e),`Could not find symbol '${F.symbolName}' by key '${F.symbolTableKey}' in module ${_e.name}`);return c.set(M,[me,_e]),{symbol:me,moduleSymbol:_e,moduleFileName:Z,exportKind:U,targetFlags:J,isFromPackageJson:G}}function g(F,M,U,J){let G=U||"";return`${F.length} ${hc($f(M,J))} ${F} ${G}`}function k(F){let M=F.indexOf(" "),U=F.indexOf(" ",M+1),J=parseInt(F.substring(0,M),10),G=F.substring(U+1),Z=G.substring(0,J),Q=G.substring(J+1);return{symbolName:Z,ambientModuleName:Q===""?void 0:Q}}function T(F){return!F.commonJsModuleIndicator&&!F.externalModuleIndicator&&!F.moduleAugmentations&&!F.ambientModuleNames}function C(F,M){if(!__(F.ambientModuleNames,M.ambientModuleNames))return!1;let U=-1,J=-1;for(let G of M.ambientModuleNames){let Z=Q=>Cme(Q)&&Q.name.text===G;if(U=hr(F.statements,Z,U+1),J=hr(M.statements,Z,J+1),F.statements[U]!==M.statements[J])return!1}return!0}function O(F,M){if(!M||!F.moduleFileName)return!0;let U=t.getGlobalTypingsCacheLocation();if(U&&Ca(F.moduleFileName,U))return!0;let J=u.get(M);return!J||Ca(F.moduleFileName,J)}}function Fve(t,n,a,c,u,_,f,y){var g;if(!a){let F,M=i1(c.name);return pL.has(M)&&(F=sae(n,t))!==void 0?F===Ca(M,"node:"):!_||_.allowsImportingAmbientModule(c,f)||U7e(n,M)}if($.assertIsDefined(a),n===a)return!1;let k=y?.get(n.path,a.path,u,{});if(k?.isBlockedByPackageJsonDependencies!==void 0)return!k.isBlockedByPackageJsonDependencies||!!k.packageName&&U7e(n,k.packageName);let T=UT(f),C=(g=f.getGlobalTypingsCacheLocation)==null?void 0:g.call(f),O=!!QT.forEachFileNameOfModule(n.fileName,a.fileName,f,!1,F=>{let M=t.getSourceFile(F);return(M===a||!M)&&Slr(n.fileName,F,T,C,f)});if(_){let F=O?_.getSourceFileInfo(a,f):void 0;return y?.setBlockedByPackageJsonDependencies(n.path,a.path,u,{},F?.packageName,!F?.importable),!!F?.importable||O&&!!F?.packageName&&U7e(n,F.packageName)}return O}function U7e(t,n){return t.imports&&t.imports.some(a=>a.text===n||a.text.startsWith(n+"/"))}function Slr(t,n,a,c,u){let _=Ab(u,n,y=>t_(y)==="node_modules"?y:void 0),f=_&&mo(a(_));return f===void 0||Ca(a(t),f)||!!c&&Ca(a(c),f)}function Rve(t,n,a,c,u){var _,f;let y=K4(n),g=a.autoImportFileExcludePatterns&&Bft(a,y);$ft(t.getTypeChecker(),t.getSourceFiles(),g,n,(T,C)=>u(T,C,t,!1));let k=c&&((_=n.getPackageJsonAutoImportProvider)==null?void 0:_.call(n));if(k){let T=Ml(),C=t.getTypeChecker();$ft(k.getTypeChecker(),k.getSourceFiles(),g,n,(O,F)=>{(F&&!t.getSourceFile(F.fileName)||!F&&!C.resolveName(O.name,void 0,1536,!1))&&u(O,F,k,!0)}),(f=n.log)==null||f.call(n,`forEachExternalModuleToImportFrom autoImportProvider: ${Ml()-T}`)}}function Bft(t,n){return Wn(t.autoImportFileExcludePatterns,a=>{let c=_ne(a,"","exclude");return c?mE(c,n):void 0})}function $ft(t,n,a,c,u){var _;let f=a&&Uft(a,c);for(let y of t.getAmbientModules())!y.name.includes("*")&&!(a&&((_=y.declarations)!=null&&_.every(g=>f(g.getSourceFile()))))&&u(y,void 0);for(let y of n)Lg(y)&&!f?.(y)&&u(t.getMergedSymbol(y.symbol),y)}function Uft(t,n){var a;let c=(a=n.getSymlinkCache)==null?void 0:a.call(n).getSymlinkedDirectoriesByRealpath();return({fileName:u,path:_})=>{if(t.some(f=>f.test(u)))return!0;if(c?.size&&kC(u)){let f=mo(u);return Ab(n,mo(_),y=>{let g=c.get(r_(y));if(g)return g.some(k=>t.some(T=>T.test(u.replace(f,k))));f=mo(f)})??!1}return!1}}function z7e(t,n){return n.autoImportFileExcludePatterns?Uft(Bft(n,K4(t)),t):()=>!1}function oQ(t,n,a,c,u){var _,f,y,g,k;let T=Ml();(_=n.getPackageJsonAutoImportProvider)==null||_.call(n);let C=((f=n.getCachedExportInfoMap)==null?void 0:f.call(n))||Ove({getCurrentProgram:()=>a,getPackageJsonAutoImportProvider:()=>{var F;return(F=n.getPackageJsonAutoImportProvider)==null?void 0:F.call(n)},getGlobalTypingsCacheLocation:()=>{var F;return(F=n.getGlobalTypingsCacheLocation)==null?void 0:F.call(n)}});if(C.isUsableByFile(t.path))return(y=n.log)==null||y.call(n,"getExportInfoMap: cache hit"),C;(g=n.log)==null||g.call(n,"getExportInfoMap: cache miss or empty; calculating new results");let O=0;try{Rve(a,n,c,!0,(F,M,U,J)=>{++O%100===0&&u?.throwIfCancellationRequested();let G=new Set,Z=U.getTypeChecker(),Q=pae(F,Z);Q&&zft(Q.symbol,Z)&&C.add(t.path,Q.symbol,Q.exportKind===1?"default":"export=",F,M,Q.exportKind,J,Z),Z.forEachExportAndPropertyOfModule(F,(re,ae)=>{re!==Q?.symbol&&zft(re,Z)&&o1(G,ae)&&C.add(t.path,re,ae,F,M,0,J,Z)})})}catch(F){throw C.clear(),F}return(k=n.log)==null||k.call(n,`getExportInfoMap: done in ${Ml()-T} ms`),C}function pae(t,n){let a=n.resolveExternalModuleSymbol(t);if(a!==t){let u=n.tryGetMemberInModuleExports("default",a);return u?{symbol:u,exportKind:1}:{symbol:a,exportKind:2}}let c=n.tryGetMemberInModuleExports("default",t);if(c)return{symbol:c,exportKind:1}}function zft(t,n){return!n.isUndefinedSymbol(t)&&!n.isUnknownSymbol(t)&&!AU(t)&&!J6e(t)}function blr(t,n,a){let c;return _ae(t,n,a,(u,_)=>(c=_?[u,_]:u,!0)),$.checkDefined(c)}function _ae(t,n,a,c){let u,_=t,f=new Set;for(;_;){let y=wve(_);if(y){let g=c(y);if(g)return g}if(_.escapedName!=="default"&&_.escapedName!=="export="){let g=c(_.name);if(g)return g}if(u=jt(u,_),!o1(f,_))break;_=_.flags&2097152?n.getImmediateAliasedSymbol(_):void 0}for(let y of u??j)if(y.parent&&LO(y.parent)){let g=c(rQ(y.parent,a,!1),rQ(y.parent,a,!0));if(g)return g}}function qft(){let t=B1(99,!1);function n(c,u,_){return klr(a(c,u,_),c)}function a(c,u,_){let f=0,y=0,g=[],{prefix:k,pushTemplate:T}=Alr(u);c=k+c;let C=k.length;T&&g.push(16),t.setText(c);let O=0,F=[],M=0;do{f=t.scan(),XR(f)||(U(),y=f);let J=t.getTokenEnd();if(Elr(t.getTokenStart(),J,C,Plr(f),F),J>=c.length){let G=Tlr(t,f,Yr(g));G!==void 0&&(O=G)}}while(f!==1);function U(){switch(f){case 44:case 69:!xlr[y]&&t.reScanSlashToken()===14&&(f=14);break;case 30:y===80&&M++;break;case 32:M>0&&M--;break;case 133:case 154:case 150:case 136:case 155:M>0&&!_&&(f=80);break;case 16:g.push(f);break;case 19:g.length>0&&g.push(f);break;case 20:if(g.length>0){let J=Yr(g);J===16?(f=t.reScanTemplateToken(!1),f===18?g.pop():$.assertEqual(f,17,"Should have been a template middle.")):($.assertEqual(J,19,"Should have been an open brace"),g.pop())}break;default:if(!Uh(f))break;(y===25||Uh(y)&&Uh(f)&&!Dlr(y,f))&&(f=80)}}return{endOfLineState:O,spans:F}}return{getClassificationsForLine:n,getEncodedLexicalClassifications:a}}var xlr=bi([80,11,9,10,14,110,46,47,22,24,20,112,97],t=>t,()=>!0);function Tlr(t,n,a){switch(n){case 11:{if(!t.isUnterminated())return;let c=t.getTokenText(),u=c.length-1,_=0;for(;c.charCodeAt(u-_)===92;)_++;return(_&1)===0?void 0:c.charCodeAt(0)===34?3:2}case 3:return t.isUnterminated()?1:void 0;default:if(Xk(n)){if(!t.isUnterminated())return;switch(n){case 18:return 5;case 15:return 4;default:return $.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+n)}}return a===16?6:void 0}}function Elr(t,n,a,c,u){if(c===8)return;t===0&&a>0&&(t+=a);let _=n-t;_>0&&u.push(t-a,_,c)}function klr(t,n){let a=[],c=t.spans,u=0;for(let f=0;f=0){let T=y-u;T>0&&a.push({length:T,classification:4})}a.push({length:g,classification:Clr(k)}),u=y+g}let _=n.length-u;return _>0&&a.push({length:_,classification:4}),{entries:a,finalLexState:t.endOfLineState}}function Clr(t){switch(t){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function Dlr(t,n){if(!Z1e(t))return!0;switch(n){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function Alr(t){switch(t){case 3:return{prefix:`"\\ -`};case 2:return{prefix:`'\\ -`};case 1:return{prefix:`/* -`};case 4:return{prefix:"`\n"};case 5:return{prefix:`} -`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return $.assertNever(t)}}function wlr(t){switch(t){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function Ilr(t){switch(t){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function Plr(t){if(Uh(t))return 3;if(wlr(t)||Ilr(t))return 5;if(t>=19&&t<=79)return 10;switch(t){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return Xk(t)?6:2}}function q7e(t,n,a,c,u){return Wft(Lve(t,n,a,c,u))}function Jft(t,n){switch(n){case 268:case 264:case 265:case 263:case 232:case 219:case 220:t.throwIfCancellationRequested()}}function Lve(t,n,a,c,u){let _=[];return a.forEachChild(function y(g){if(!(!g||!_S(u,g.pos,g.getFullWidth()))){if(Jft(n,g.kind),ct(g)&&!Op(g)&&c.has(g.escapedText)){let k=t.getSymbolAtLocation(g),T=k&&Vft(k,x3(g),t);T&&f(g.getStart(a),g.getEnd(),T)}g.forEachChild(y)}}),{spans:_,endOfLineState:0};function f(y,g,k){let T=g-y;$.assert(T>0,`Classification had non-positive length of ${T}`),_.push(y),_.push(T),_.push(k)}}function Vft(t,n,a){let c=t.getFlags();if((c&2885600)!==0)return c&32?11:c&384?12:c&524288?16:c&1536?n&4||n&1&&Nlr(t)?14:void 0:c&2097152?Vft(a.getAliasedSymbol(t),n,a):n&2?c&64?13:c&262144?15:void 0:void 0}function Nlr(t){return Pt(t.declarations,n=>I_(n)&&KT(n)===1)}function Olr(t){switch(t){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function Wft(t){$.assert(t.spans.length%3===0);let n=t.spans,a=[];for(let c=0;c])*)(\/>)?)?/m,le=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/g,Oe=n.text.substr(ae,_e),be=me.exec(Oe);if(!be||!be[3]||!(be[3]in y4))return!1;let ue=ae;C(ue,be[1].length),ue+=be[1].length,g(ue,be[2].length,10),ue+=be[2].length,g(ue,be[3].length,21),ue+=be[3].length;let De=be[4],Ce=ue;for(;;){let Fe=le.exec(De);if(!Fe)break;let Be=ue+Fe.index+Fe[1].length;Be>Ce&&(C(Ce,Be-Ce),Ce=Be),g(Ce,Fe[2].length,22),Ce+=Fe[2].length,Fe[3].length&&(C(Ce,Fe[3].length),Ce+=Fe[3].length),g(Ce,Fe[4].length,5),Ce+=Fe[4].length,Fe[5].length&&(C(Ce,Fe[5].length),Ce+=Fe[5].length),g(Ce,Fe[6].length,24),Ce+=Fe[6].length}ue+=be[4].length,ue>Ce&&C(Ce,ue-Ce),be[5]&&(g(ue,be[5].length,10),ue+=be[5].length);let Ae=ae+_e;return ue=0),le>0){let Oe=_e||Q(ae.kind,ae);Oe&&g(me,le,Oe)}return!0}function Z(ae){switch(ae.parent&&ae.parent.kind){case 287:if(ae.parent.tagName===ae)return 19;break;case 288:if(ae.parent.tagName===ae)return 20;break;case 286:if(ae.parent.tagName===ae)return 21;break;case 292:if(ae.parent.name===ae)return 22;break}}function Q(ae,_e){if(Uh(ae))return 3;if((ae===30||ae===32)&&_e&&_7e(_e.parent))return 10;if(Yme(ae)){if(_e){let me=_e.parent;if(ae===64&&(me.kind===261||me.kind===173||me.kind===170||me.kind===292)||me.kind===227||me.kind===225||me.kind===226||me.kind===228)return 5}return 10}else{if(ae===9)return 4;if(ae===10)return 25;if(ae===11)return _e&&_e.parent.kind===292?24:6;if(ae===14)return 6;if(Xk(ae))return 6;if(ae===12)return 23;if(ae===80){if(_e){switch(_e.parent.kind){case 264:return _e.parent.name===_e?11:void 0;case 169:return _e.parent.name===_e?15:void 0;case 265:return _e.parent.name===_e?13:void 0;case 267:return _e.parent.name===_e?12:void 0;case 268:return _e.parent.name===_e?14:void 0;case 170:return _e.parent.name===_e?pC(_e)?3:17:void 0}if(z1(_e.parent))return 3}return 2}}}function re(ae){if(ae&&dS(c,u,ae.pos,ae.getFullWidth())){Jft(t,ae.kind);for(let _e of ae.getChildren(n))G(_e)||re(_e)}}}var dae;(t=>{function n(ue,De,Ce,Ae,Fe){let Be=Vh(Ce,Ae);if(Be.parent&&(Tv(Be.parent)&&Be.parent.tagName===Be||bP(Be.parent))){let{openingElement:de,closingElement:ze}=Be.parent.parent,ut=[de,ze].map(({tagName:je})=>a(je,Ce));return[{fileName:Ce.fileName,highlightSpans:ut}]}return c(Ae,Be,ue,De,Fe)||u(Be,Ce)}t.getDocumentHighlights=n;function a(ue,De){return{fileName:De.fileName,textSpan:yh(ue,De),kind:"none"}}function c(ue,De,Ce,Ae,Fe){let Be=new Set(Fe.map(je=>je.fileName)),de=Pu.getReferenceEntriesForNode(ue,De,Ce,Fe,Ae,void 0,Be);if(!de)return;let ze=tu(de.map(Pu.toHighlightSpan),je=>je.fileName,je=>je.span),ut=_d(Ce.useCaseSensitiveFileNames());return so(Na(ze.entries(),([je,ve])=>{if(!Be.has(je)){if(!Ce.redirectTargetsMap.has(wl(je,Ce.getCurrentDirectory(),ut)))return;let Le=Ce.getSourceFile(je);je=wt(Fe,nt=>!!nt.redirectInfo&&nt.redirectInfo.redirectTarget===Le).fileName,$.assert(Be.has(je))}return{fileName:je,highlightSpans:ve}}))}function u(ue,De){let Ce=_(ue,De);return Ce&&[{fileName:De.fileName,highlightSpans:Ce}]}function _(ue,De){switch(ue.kind){case 101:case 93:return EA(ue.parent)?le(ue.parent,De):void 0;case 107:return Ae(ue.parent,gy,re);case 111:return Ae(ue.parent,Rge,Q);case 113:case 85:case 98:let Be=ue.kind===85?ue.parent.parent:ue.parent;return Ae(Be,c3,Z);case 109:return Ae(ue.parent,pz,G);case 84:case 90:return dz(ue.parent)||bL(ue.parent)?Ae(ue.parent.parent.parent,pz,G):void 0;case 83:case 88:return Ae(ue.parent,tU,J);case 99:case 117:case 92:return Ae(ue.parent,de=>rC(de,!0),U);case 137:return Ce(kp,[137]);case 139:case 153:return Ce(tC,[139,153]);case 135:return Ae(ue.parent,SC,ae);case 134:return Fe(ae(ue));case 127:return Fe(_e(ue));case 103:case 147:return;default:return eC(ue.kind)&&(Vd(ue.parent)||h_(ue.parent))?Fe(O(ue.kind,ue.parent)):void 0}function Ce(Be,de){return Ae(ue.parent,Be,ze=>{var ut;return Wn((ut=Ci(ze,gv))==null?void 0:ut.symbol.declarations,je=>Be(je)?wt(je.getChildren(De),ve=>un(de,ve.kind)):void 0)})}function Ae(Be,de,ze){return de(Be)?Fe(ze(Be,De)):void 0}function Fe(Be){return Be&&Be.map(de=>a(de,De))}}function f(ue){return Rge(ue)?[ue]:c3(ue)?go(ue.catchClause?f(ue.catchClause):ue.tryBlock&&f(ue.tryBlock),ue.finallyBlock&&f(ue.finallyBlock)):Rs(ue)?void 0:k(ue,f)}function y(ue){let De=ue;for(;De.parent;){let Ce=De.parent;if(tP(Ce)||Ce.kind===308)return Ce;if(c3(Ce)&&Ce.tryBlock===De&&Ce.catchClause)return De;De=Ce}}function g(ue){return tU(ue)?[ue]:Rs(ue)?void 0:k(ue,g)}function k(ue,De){let Ce=[];return ue.forEachChild(Ae=>{let Fe=De(Ae);Fe!==void 0&&Ce.push(...Ll(Fe))}),Ce}function T(ue,De){let Ce=C(De);return!!Ce&&Ce===ue}function C(ue){return fn(ue,De=>{switch(De.kind){case 256:if(ue.kind===252)return!1;case 249:case 250:case 251:case 248:case 247:return!ue.label||be(De,ue.label.escapedText);default:return Rs(De)&&"quit"}})}function O(ue,De){return Wn(F(De,ZO(ue)),Ce=>ZL(Ce,ue))}function F(ue,De){let Ce=ue.parent;switch(Ce.kind){case 269:case 308:case 242:case 297:case 298:return De&64&&ed(ue)?[...ue.members,ue]:Ce.statements;case 177:case 175:case 263:return[...Ce.parameters,...Co(Ce.parent)?Ce.parent.members:[]];case 264:case 232:case 265:case 188:let Ae=Ce.members;if(De&15){let Fe=wt(Ce.members,kp);if(Fe)return[...Ae,...Fe.parameters]}else if(De&64)return[...Ae,Ce];return Ae;default:return}}function M(ue,De,...Ce){return De&&un(Ce,De.kind)?(ue.push(De),!0):!1}function U(ue){let De=[];if(M(De,ue.getFirstToken(),99,117,92)&&ue.kind===247){let Ce=ue.getChildren();for(let Ae=Ce.length-1;Ae>=0&&!M(De,Ce[Ae],117);Ae--);}return X(g(ue.statement),Ce=>{T(ue,Ce)&&M(De,Ce.getFirstToken(),83,88)}),De}function J(ue){let De=C(ue);if(De)switch(De.kind){case 249:case 250:case 251:case 247:case 248:return U(De);case 256:return G(De)}}function G(ue){let De=[];return M(De,ue.getFirstToken(),109),X(ue.caseBlock.clauses,Ce=>{M(De,Ce.getFirstToken(),84,90),X(g(Ce),Ae=>{T(ue,Ae)&&M(De,Ae.getFirstToken(),83)})}),De}function Z(ue,De){let Ce=[];if(M(Ce,ue.getFirstToken(),113),ue.catchClause&&M(Ce,ue.catchClause.getFirstToken(),85),ue.finallyBlock){let Ae=Kl(ue,98,De);M(Ce,Ae,98)}return Ce}function Q(ue,De){let Ce=y(ue);if(!Ce)return;let Ae=[];return X(f(Ce),Fe=>{Ae.push(Kl(Fe,111,De))}),tP(Ce)&&sC(Ce,Fe=>{Ae.push(Kl(Fe,107,De))}),Ae}function re(ue,De){let Ce=My(ue);if(!Ce)return;let Ae=[];return sC(Ba(Ce.body,Vs),Fe=>{Ae.push(Kl(Fe,107,De))}),X(f(Ce.body),Fe=>{Ae.push(Kl(Fe,111,De))}),Ae}function ae(ue){let De=My(ue);if(!De)return;let Ce=[];return De.modifiers&&De.modifiers.forEach(Ae=>{M(Ce,Ae,134)}),Is(De,Ae=>{me(Ae,Fe=>{SC(Fe)&&M(Ce,Fe.getFirstToken(),135)})}),Ce}function _e(ue){let De=My(ue);if(!De)return;let Ce=[];return Is(De,Ae=>{me(Ae,Fe=>{BH(Fe)&&M(Ce,Fe.getFirstToken(),127)})}),Ce}function me(ue,De){De(ue),!Rs(ue)&&!Co(ue)&&!Af(ue)&&!I_(ue)&&!s1(ue)&&!Wo(ue)&&Is(ue,Ce=>me(Ce,De))}function le(ue,De){let Ce=Oe(ue,De),Ae=[];for(let Fe=0;Fe=Be.end;ut--)if(!_0(De.text.charCodeAt(ut))){ze=!1;break}if(ze){Ae.push({fileName:De.fileName,textSpan:Hu(Be.getStart(),de.end),kind:"reference"}),Fe++;continue}}Ae.push(a(Ce[Fe],De))}return Ae}function Oe(ue,De){let Ce=[];for(;EA(ue.parent)&&ue.parent.elseStatement===ue;)ue=ue.parent;for(;;){let Ae=ue.getChildren(De);M(Ce,Ae[0],101);for(let Fe=Ae.length-1;Fe>=0&&!M(Ce,Ae[Fe],93);Fe--);if(!ue.elseStatement||!EA(ue.elseStatement))break;ue=ue.elseStatement}return Ce}function be(ue,De){return!!fn(ue.parent,Ce=>bC(Ce)?Ce.label.escapedText===De:"quit")}})(dae||(dae={}));function aQ(t){return!!t.sourceFile}function V7e(t,n,a){return jve(t,n,a)}function jve(t,n="",a,c){let u=new Map,_=_d(!!t);function f(){let J=so(u.keys()).filter(G=>G&&G.charAt(0)==="_").map(G=>{let Z=u.get(G),Q=[];return Z.forEach((re,ae)=>{aQ(re)?Q.push({name:ae,scriptKind:re.sourceFile.scriptKind,refCount:re.languageServiceRefCount}):re.forEach((_e,me)=>Q.push({name:ae,scriptKind:me,refCount:_e.languageServiceRefCount}))}),Q.sort((re,ae)=>ae.refCount-re.refCount),{bucket:G,sourceFiles:Q}});return JSON.stringify(J,void 0,2)}function y(J){return typeof J.getCompilationSettings=="function"?J.getCompilationSettings():J}function g(J,G,Z,Q,re,ae){let _e=wl(J,n,_),me=Bve(y(G));return k(J,_e,G,me,Z,Q,re,ae)}function k(J,G,Z,Q,re,ae,_e,me){return F(J,G,Z,Q,re,ae,!0,_e,me)}function T(J,G,Z,Q,re,ae){let _e=wl(J,n,_),me=Bve(y(G));return C(J,_e,G,me,Z,Q,re,ae)}function C(J,G,Z,Q,re,ae,_e,me){return F(J,G,y(Z),Q,re,ae,!1,_e,me)}function O(J,G){let Z=aQ(J)?J:J.get($.checkDefined(G,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return $.assert(G===void 0||!Z||Z.sourceFile.scriptKind===G,`Script kind should match provided ScriptKind:${G} and sourceFile.scriptKind: ${Z?.sourceFile.scriptKind}, !entry: ${!Z}`),Z}function F(J,G,Z,Q,re,ae,_e,me,le){var Oe,be,ue,De;me=fne(J,me);let Ce=y(Z),Ae=Z===Ce?void 0:Z,Fe=me===6?100:$c(Ce),Be=typeof le=="object"?le:{languageVersion:Fe,impliedNodeFormat:Ae&&AK(G,(De=(ue=(be=(Oe=Ae.getCompilerHost)==null?void 0:Oe.call(Ae))==null?void 0:be.getModuleResolutionCache)==null?void 0:ue.call(be))==null?void 0:De.getPackageJsonInfoCache(),Ae,Ce),setExternalModuleIndicator:dH(Ce),jsDocParsingMode:a};Be.languageVersion=Fe,$.assertEqual(a,Be.jsDocParsingMode);let de=u.size,ze=W7e(Q,Be.impliedNodeFormat),ut=hs(u,ze,()=>new Map);if(hi){u.size>de&&hi.instant(hi.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:Ce.configFilePath,key:ze});let Ve=!sf(G)&&Ad(u,(nt,It)=>It!==ze&&nt.has(G)&&It);Ve&&hi.instant(hi.Phase.Session,"documentRegistryBucketOverlap",{path:G,key1:Ve,key2:ze})}let je=ut.get(G),ve=je&&O(je,me);if(!ve&&c){let Ve=c.getDocument(ze,G);Ve&&Ve.scriptKind===me&&Ve.text===BF(re)&&($.assert(_e),ve={sourceFile:Ve,languageServiceRefCount:0},Le())}if(ve)ve.sourceFile.version!==ae&&(ve.sourceFile=ySe(ve.sourceFile,re,ae,re.getChangeRange(ve.sourceFile.scriptSnapshot)),c&&c.setDocument(ze,G,ve.sourceFile)),_e&&ve.languageServiceRefCount++;else{let Ve=wae(J,re,Be,ae,!1,me);c&&c.setDocument(ze,G,Ve),ve={sourceFile:Ve,languageServiceRefCount:1},Le()}return $.assert(ve.languageServiceRefCount!==0),ve.sourceFile;function Le(){if(!je)ut.set(G,ve);else if(aQ(je)){let Ve=new Map;Ve.set(je.sourceFile.scriptKind,je),Ve.set(me,ve),ut.set(G,Ve)}else je.set(me,ve)}}function M(J,G,Z,Q){let re=wl(J,n,_),ae=Bve(G);return U(re,ae,Z,Q)}function U(J,G,Z,Q){let re=$.checkDefined(u.get(W7e(G,Q))),ae=re.get(J),_e=O(ae,Z);_e.languageServiceRefCount--,$.assert(_e.languageServiceRefCount>=0),_e.languageServiceRefCount===0&&(aQ(ae)?re.delete(J):(ae.delete(Z),ae.size===1&&re.set(J,pt(ae.values(),vl))))}return{acquireDocument:g,acquireDocumentWithKey:k,updateDocument:T,updateDocumentWithKey:C,releaseDocument:M,releaseDocumentWithKey:U,getKeyForCompilationSettings:Bve,getDocumentRegistryBucketKeyWithMode:W7e,reportStats:f,getBuckets:()=>u}}function Bve(t){return wye(t,_ye)}function W7e(t,n){return n?`${t}|${n}`:t}function G7e(t,n,a,c,u,_,f){let y=K4(c),g=_d(y),k=$ve(n,a,g,f),T=$ve(a,n,g,f);return ki.ChangeTracker.with({host:c,formatContext:u,preferences:_},C=>{Rlr(t,C,k,n,a,c.getCurrentDirectory(),y),Llr(t,C,k,T,c,g)})}function $ve(t,n,a,c){let u=a(t);return f=>{let y=c&&c.tryGetSourcePosition({fileName:f,pos:0}),g=_(y?y.fileName:f);return y?g===void 0?void 0:Flr(y.fileName,g,f,a):g};function _(f){if(a(f)===u)return n;let y=qhe(f,u,a);return y===void 0?void 0:n+"/"+y}}function Flr(t,n,a,c){let u=Vk(t,n,c);return H7e(mo(a),u)}function Rlr(t,n,a,c,u,_,f){let{configFile:y}=t.getCompilerOptions();if(!y)return;let g=mo(y.fileName),k=fU(y);if(!k)return;K7e(k,(F,M)=>{switch(M){case"files":case"include":case"exclude":{if(T(F)||M!=="include"||!qf(F.initializer))return;let J=Wn(F.initializer.elements,Z=>Ic(Z)?Z.text:void 0);if(J.length===0)return;let G=dne(g,[],J,f,_);mE($.checkDefined(G.includeFilePattern),f).test(c)&&!mE($.checkDefined(G.includeFilePattern),f).test(u)&&n.insertNodeAfter(y,Sn(F.initializer.elements),W.createStringLiteral(O(u)));return}case"compilerOptions":K7e(F.initializer,(U,J)=>{let G=mye(J);$.assert(G?.type!=="listOrElement"),G&&(G.isFilePath||G.type==="list"&&G.element.isFilePath)?T(U):J==="paths"&&K7e(U.initializer,Z=>{if(qf(Z.initializer))for(let Q of Z.initializer.elements)C(Q)})});return}});function T(F){let M=qf(F.initializer)?F.initializer.elements:[F.initializer],U=!1;for(let J of M)U=C(J)||U;return U}function C(F){if(!Ic(F))return!1;let M=H7e(g,F.text),U=a(M);return U!==void 0?(n.replaceRangeWithText(y,Hft(F,y),O(U)),!0):!1}function O(F){return lh(g,F,!f)}}function Llr(t,n,a,c,u,_){let f=t.getSourceFiles();for(let y of f){let g=a(y.fileName),k=g??y.fileName,T=mo(k),C=c(y.fileName),O=C||y.fileName,F=mo(O),M=g!==void 0||C!==void 0;Blr(y,n,U=>{if(!ch(U))return;let J=H7e(F,U),G=a(J);return G===void 0?void 0:Tx(lh(T,G,_))},U=>{let J=t.getTypeChecker().getSymbolAtLocation(U);if(J?.declarations&&J.declarations.some(Z=>Gm(Z)))return;let G=C!==void 0?Gft(U,h3(U.text,O,t.getCompilerOptions(),u),a,f):jlr(J,U,y,t,u,a);return G!==void 0&&(G.updated||M&&ch(U.text))?QT.updateModuleSpecifier(t.getCompilerOptions(),y,k,G.newFileName,BA(t,u),U.text):void 0})}}function Mlr(t,n){return Qs(Xi(t,n))}function H7e(t,n){return Tx(Mlr(t,n))}function jlr(t,n,a,c,u,_){if(t){let f=wt(t.declarations,Ta).fileName,y=_(f);return y===void 0?{newFileName:f,updated:!1}:{newFileName:y,updated:!0}}else{let f=c.getModeForUsageLocation(a,n),y=u.resolveModuleNameLiterals||!u.resolveModuleNames?c.getResolvedModuleFromModuleSpecifier(n,a):u.getResolvedModuleWithFailedLookupLocationsFromCache&&u.getResolvedModuleWithFailedLookupLocationsFromCache(n.text,a.fileName,f);return Gft(n,y,_,c.getSourceFiles())}}function Gft(t,n,a,c){if(!n)return;if(n.resolvedModule){let g=y(n.resolvedModule.resolvedFileName);if(g)return g}let u=X(n.failedLookupLocations,_)||ch(t.text)&&X(n.failedLookupLocations,f);if(u)return u;return n.resolvedModule&&{newFileName:n.resolvedModule.resolvedFileName,updated:!1};function _(g){let k=a(g);return k&&wt(c,T=>T.fileName===k)?f(g):void 0}function f(g){return au(g,"/package.json")?void 0:y(g)}function y(g){let k=a(g);return k&&{newFileName:k,updated:!0}}}function Blr(t,n,a,c){for(let u of t.referencedFiles||j){let _=a(u.fileName);_!==void 0&&_!==t.text.slice(u.pos,u.end)&&n.replaceRangeWithText(t,u,_)}for(let u of t.imports){let _=c(u);_!==void 0&&_!==u.text&&n.replaceRangeWithText(t,Hft(u,t),_)}}function Hft(t,n){return y0(t.getStart(n)+1,t.end-1)}function K7e(t,n){if(Lc(t))for(let a of t.properties)td(a)&&Ic(a.name)&&n(a,a.name.text)}var Uve=(t=>(t[t.exact=0]="exact",t[t.prefix=1]="prefix",t[t.substring=2]="substring",t[t.camelCase=3]="camelCase",t))(Uve||{});function oq(t,n){return{kind:t,isCaseSensitive:n}}function Q7e(t){let n=new Map,a=t.trim().split(".").map(c=>qlr(c.trim()));if(a.length===1&&a[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>oq(2,!0),getFullMatch:()=>oq(2,!0),patternContainsDots:!1};if(!a.some(c=>!c.subWordTextChunks.length))return{getFullMatch:(c,u)=>$lr(c,u,a,n),getMatchForLastSegmentOfPattern:c=>Z7e(c,Sn(a),n),patternContainsDots:a.length>1}}function $lr(t,n,a,c){if(!Z7e(n,Sn(a),c)||a.length-1>t.length)return;let _;for(let f=a.length-2,y=t.length-1;f>=0;f-=1,y-=1)_=Zft(_,Z7e(t[y],a[f],c));return _}function Kft(t,n){let a=n.get(t);return a||n.set(t,a=n5e(t)),a}function Qft(t,n,a){let c=Jlr(t,n.textLowerCase);if(c===0)return oq(n.text.length===t.length?0:1,Ca(t,n.text));if(n.isLowerCase){if(c===-1)return;let u=Kft(t,a);for(let _ of u)if(X7e(t,_,n.text,!0))return oq(2,X7e(t,_,n.text,!1));if(n.text.length0)return oq(2,!0);if(n.characterSpans.length>0){let u=Kft(t,a),_=Xft(t,u,n,!1)?!0:Xft(t,u,n,!0)?!1:void 0;if(_!==void 0)return oq(3,_)}}}function Z7e(t,n,a){if(zve(n.totalTextChunk.text,_=>_!==32&&_!==42)){let _=Qft(t,n.totalTextChunk,a);if(_)return _}let c=n.subWordTextChunks,u;for(let _ of c)u=Zft(u,Qft(t,_,a));return u}function Zft(t,n){return bx([t,n],Ulr)}function Ulr(t,n){return t===void 0?1:n===void 0?-1:Br(t.kind,n.kind)||cS(!t.isCaseSensitive,!n.isCaseSensitive)}function X7e(t,n,a,c,u={start:0,length:a.length}){return u.length<=n.length&&rmt(0,u.length,_=>zlr(a.charCodeAt(u.start+_),t.charCodeAt(n.start+_),c))}function zlr(t,n,a){return a?Y7e(t)===Y7e(n):t===n}function Xft(t,n,a,c){let u=a.characterSpans,_=0,f=0,y,g;for(;;){if(f===u.length)return!0;if(_===n.length)return!1;let k=n[_],T=!1;for(;f=65&&t<=90)return!0;if(t<127||!fv(t,99))return!1;let n=String.fromCharCode(t);return n===n.toUpperCase()}function Yft(t){if(t>=97&&t<=122)return!0;if(t<127||!fv(t,99))return!1;let n=String.fromCharCode(t);return n===n.toLowerCase()}function Jlr(t,n){let a=t.length-n.length;for(let c=0;c<=a;c++)if(zve(n,(u,_)=>Y7e(t.charCodeAt(_+c))===u))return c;return-1}function Y7e(t){return t>=65&&t<=90?97+(t-65):t<127?t:String.fromCharCode(t).toLowerCase().charCodeAt(0)}function e5e(t){return t>=48&&t<=57}function Vlr(t){return nM(t)||Yft(t)||e5e(t)||t===95||t===36}function Wlr(t){let n=[],a=0,c=0;for(let u=0;u0&&(n.push(t5e(t.substr(a,c))),c=0)}return c>0&&n.push(t5e(t.substr(a,c))),n}function t5e(t){let n=t.toLowerCase();return{text:t,textLowerCase:n,isLowerCase:t===n,characterSpans:r5e(t)}}function r5e(t){return emt(t,!1)}function n5e(t){return emt(t,!0)}function emt(t,n){let a=[],c=0;for(let u=1;ui5e(c)&&c!==95,n,a)}function Glr(t,n,a){return n!==a&&n+1n(t.charCodeAt(u),u))}function nmt(t,n=!0,a=!1){let c={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},u=[],_,f,y,g=0,k=!1;function T(){return f=y,y=wf.scan(),y===19?g++:y===20&&g--,y}function C(){let ae=wf.getTokenValue(),_e=wf.getTokenStart();return{fileName:ae,pos:_e,end:_e+ae.length}}function O(){_||(_=[]),_.push({ref:C(),depth:g})}function F(){u.push(C()),M()}function M(){g===0&&(k=!0)}function U(){let ae=wf.getToken();return ae===138?(ae=T(),ae===144&&(ae=T(),ae===11&&O()),!0):!1}function J(){if(f===25)return!1;let ae=wf.getToken();if(ae===102){if(ae=T(),ae===21){if(ae=T(),ae===11||ae===15)return F(),!0}else{if(ae===11)return F(),!0;if(ae===156&&wf.lookAhead(()=>{let me=wf.scan();return me!==161&&(me===42||me===19||me===80||Uh(me))})&&(ae=T()),ae===80||Uh(ae))if(ae=T(),ae===161){if(ae=T(),ae===11)return F(),!0}else if(ae===64){if(Z(!0))return!0}else if(ae===28)ae=T();else return!0;if(ae===19){for(ae=T();ae!==20&&ae!==1;)ae=T();ae===20&&(ae=T(),ae===161&&(ae=T(),ae===11&&F()))}else ae===42&&(ae=T(),ae===130&&(ae=T(),(ae===80||Uh(ae))&&(ae=T(),ae===161&&(ae=T(),ae===11&&F()))))}return!0}return!1}function G(){let ae=wf.getToken();if(ae===95){if(M(),ae=T(),ae===156&&wf.lookAhead(()=>{let me=wf.scan();return me===42||me===19})&&(ae=T()),ae===19){for(ae=T();ae!==20&&ae!==1;)ae=T();ae===20&&(ae=T(),ae===161&&(ae=T(),ae===11&&F()))}else if(ae===42)ae=T(),ae===161&&(ae=T(),ae===11&&F());else if(ae===102&&(ae=T(),ae===156&&wf.lookAhead(()=>{let me=wf.scan();return me===80||Uh(me)})&&(ae=T()),(ae===80||Uh(ae))&&(ae=T(),ae===64&&Z(!0))))return!0;return!0}return!1}function Z(ae,_e=!1){let me=ae?T():wf.getToken();return me===149?(me=T(),me===21&&(me=T(),(me===11||_e&&me===15)&&F()),!0):!1}function Q(){let ae=wf.getToken();if(ae===80&&wf.getTokenValue()==="define"){if(ae=T(),ae!==21)return!0;if(ae=T(),ae===11||ae===15)if(ae=T(),ae===28)ae=T();else return!0;if(ae!==23)return!0;for(ae=T();ae!==24&&ae!==1;)(ae===11||ae===15)&&F(),ae=T();return!0}return!1}function re(){for(wf.setText(t),T();wf.getToken()!==1;){if(wf.getToken()===16){let ae=[wf.getToken()];e:for(;te(ae);){let _e=wf.scan();switch(_e){case 1:break e;case 102:J();break;case 16:ae.push(_e);break;case 19:te(ae)&&ae.push(_e);break;case 20:te(ae)&&(Yr(ae)===16?wf.reScanTemplateToken(!1)===18&&ae.pop():ae.pop());break}}T()}U()||J()||G()||a&&(Z(!1,!0)||Q())||T()}wf.setText(void 0)}if(n&&re(),sye(c,t),cye(c,zs),k){if(_)for(let ae of _)u.push(ae.ref);return{referencedFiles:c.referencedFiles,typeReferenceDirectives:c.typeReferenceDirectives,libReferenceDirectives:c.libReferenceDirectives,importedFiles:u,isLibFile:!!c.hasNoDefaultLib,ambientExternalModules:void 0}}else{let ae;if(_)for(let _e of _)_e.depth===0?(ae||(ae=[]),ae.push(_e.ref.fileName)):u.push(_e.ref);return{referencedFiles:c.referencedFiles,typeReferenceDirectives:c.typeReferenceDirectives,libReferenceDirectives:c.libReferenceDirectives,importedFiles:u,isLibFile:!!c.hasNoDefaultLib,ambientExternalModules:ae}}}var Klr=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function o5e(t){let n=_d(t.useCaseSensitiveFileNames()),a=t.getCurrentDirectory(),c=new Map,u=new Map;return{tryGetSourcePosition:y,tryGetGeneratedPosition:g,toLineColumnOffset:O,clearCache:F,documentPositionMappers:u};function _(M){return wl(M,a,n)}function f(M,U){let J=_(M),G=u.get(J);if(G)return G;let Z;if(t.getDocumentPositionMapper)Z=t.getDocumentPositionMapper(M,U);else if(t.readFile){let Q=C(M);Z=Q&&qve({getSourceFileLike:C,getCanonicalFileName:n,log:re=>t.log(re)},M,Yye(Q.text,Ry(Q)),re=>!t.fileExists||t.fileExists(re)?t.readFile(re):void 0)}return u.set(J,Z||t0e),Z||t0e}function y(M){if(!sf(M.fileName)||!k(M.fileName))return;let J=f(M.fileName).getSourcePosition(M);return!J||J===M?void 0:y(J)||J}function g(M){if(sf(M.fileName))return;let U=k(M.fileName);if(!U)return;let J=t.getProgram();if(J.isSourceOfProjectReferenceRedirect(U.fileName))return;let Z=J.getCompilerOptions().outFile,Q=Z?Qm(Z)+".d.ts":Bre(M.fileName,J.getCompilerOptions(),J);if(Q===void 0)return;let re=f(Q,M.fileName).getGeneratedPosition(M);return re===M?void 0:re}function k(M){let U=t.getProgram();if(!U)return;let J=_(M),G=U.getSourceFileByPath(J);return G&&G.resolvedPath===J?G:void 0}function T(M){let U=_(M),J=c.get(U);if(J!==void 0)return J||void 0;if(!t.readFile||t.fileExists&&!t.fileExists(M)){c.set(U,!1);return}let G=t.readFile(M),Z=G?Qlr(G):!1;return c.set(U,Z),Z||void 0}function C(M){return t.getSourceFileLike?t.getSourceFileLike(M):k(M)||T(M)}function O(M,U){return C(M).getLineAndCharacterOfPosition(U)}function F(){c.clear(),u.clear()}}function qve(t,n,a,c){let u=O8e(a);if(u){let y=Klr.exec(u);if(y){if(y[1]){let g=y[1];return imt(t,d4e(f_,g),n)}u=void 0}}let _=[];u&&_.push(u),_.push(n+".map");let f=u&&za(u,mo(n));for(let y of _){let g=za(y,mo(n)),k=c(g,f);if(Ni(k))return imt(t,k,g);if(k!==void 0)return k||void 0}}function imt(t,n,a){let c=F8e(n);if(!(!c||!c.sources||!c.file||!c.mappings)&&!(c.sourcesContent&&c.sourcesContent.some(Ni)))return L8e(t,c,a)}function Qlr(t,n){return{text:t,lineMap:n,getLineAndCharacterOfPosition(a){return aE(Ry(this),a)}}}var a5e=new Map;function Jve(t,n,a){var c;n.getSemanticDiagnostics(t,a);let u=[],_=n.getTypeChecker();!(n.getImpliedNodeFormatForEmit(t)===1||_p(t.fileName,[".cts",".cjs"]))&&t.commonJsModuleIndicator&&(g7e(n)||ive(n.getCompilerOptions()))&&Zlr(t)&&u.push(xi(tur(t.commonJsModuleIndicator),x.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let y=ph(t);if(a5e.clear(),g(t),iF(n.getCompilerOptions()))for(let k of t.imports){let T=bU(k);if(gd(T)&&ko(T,32))continue;let C=Xlr(T);if(!C)continue;let O=(c=n.getResolvedModuleFromModuleSpecifier(k,t))==null?void 0:c.resolvedModule,F=O&&n.getSourceFile(O.resolvedFileName);F&&F.externalModuleIndicator&&F.externalModuleIndicator!==!0&&Xu(F.externalModuleIndicator)&&F.externalModuleIndicator.isExportEquals&&u.push(xi(C,x.Import_may_be_converted_to_a_default_import))}return En(u,t.bindSuggestionDiagnostics),En(u,n.getSuggestionDiagnostics(t,a)),u.sort((k,T)=>k.start-T.start),u;function g(k){if(y)nur(k,_)&&u.push(xi(Oo(k.parent)?k.parent.name:k,x.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(h_(k)&&k.parent===t&&k.declarationList.flags&2&&k.declarationList.declarations.length===1){let C=k.declarationList.declarations[0].initializer;C&&$h(C,!0)&&u.push(xi(C,x.require_call_may_be_converted_to_an_import))}let T=Im.getJSDocTypedefNodes(k);for(let C of T)u.push(xi(C,x.JSDoc_typedef_may_be_converted_to_TypeScript_type));Im.parameterShouldGetTypeFromJSDoc(k)&&u.push(xi(k.name||k,x.JSDoc_types_may_be_moved_to_TypeScript_types))}Gve(k)&&Ylr(k,_,u),k.forEachChild(g)}}function Zlr(t){return t.statements.some(n=>{switch(n.kind){case 244:return n.declarationList.declarations.some(a=>!!a.initializer&&$h(omt(a.initializer),!0));case 245:{let{expression:a}=n;if(!wi(a))return $h(a,!0);let c=m_(a);return c===1||c===2}default:return!1}})}function omt(t){return no(t)?omt(t.expression):t}function Xlr(t){switch(t.kind){case 273:let{importClause:n,moduleSpecifier:a}=t;return n&&!n.name&&n.namedBindings&&n.namedBindings.kind===275&&Ic(a)?n.namedBindings.name:void 0;case 272:return t.name;default:return}}function Ylr(t,n,a){eur(t,n)&&!a5e.has(lmt(t))&&a.push(xi(!t.name&&Oo(t.parent)&&ct(t.parent.name)?t.parent.name:t,x.This_may_be_converted_to_an_async_function))}function eur(t,n){return!CU(t)&&t.body&&Vs(t.body)&&rur(t.body,n)&&Vve(t,n)}function Vve(t,n){let a=n.getSignatureFromDeclaration(t),c=a?n.getReturnTypeOfSignature(a):void 0;return!!c&&!!n.getPromisedTypeOfPromise(c)}function tur(t){return wi(t)?t.left:t}function rur(t,n){return!!sC(t,a=>fae(a,n))}function fae(t,n){return gy(t)&&!!t.expression&&Wve(t.expression,n)}function Wve(t,n){if(!amt(t)||!smt(t)||!t.arguments.every(c=>cmt(c,n)))return!1;let a=t.expression.expression;for(;amt(a)||no(a);)if(Js(a)){if(!smt(a)||!a.arguments.every(c=>cmt(c,n)))return!1;a=a.expression.expression}else a=a.expression;return!0}function amt(t){return Js(t)&&($K(t,"then")||$K(t,"catch")||$K(t,"finally"))}function smt(t){let n=t.expression.name.text,a=n==="then"?2:n==="catch"||n==="finally"?1:0;return t.arguments.length>a?!1:t.arguments.lengthc.kind===106||ct(c)&&c.text==="undefined")}function cmt(t,n){switch(t.kind){case 263:case 219:if(A_(t)&1)return!1;case 220:a5e.set(lmt(t),!0);case 106:return!0;case 80:case 212:{let c=n.getSymbolAtLocation(t);return c?n.isUndefinedSymbol(c)||Pt($f(c,n).declarations,u=>Rs(u)||lE(u)&&!!u.initializer&&Rs(u.initializer)):!1}default:return!1}}function lmt(t){return`${t.pos.toString()}:${t.end.toString()}`}function nur(t,n){var a,c,u,_;if(bu(t)){if(Oo(t.parent)&&((a=t.symbol.members)!=null&&a.size))return!0;let f=n.getSymbolOfExpando(t,!1);return!!(f&&((c=f.exports)!=null&&c.size||(u=f.members)!=null&&u.size))}return i_(t)?!!((_=t.symbol.members)!=null&&_.size):!1}function Gve(t){switch(t.kind){case 263:case 175:case 219:case 220:return!0;default:return!1}}var iur=new Set(["isolatedModules"]);function s5e(t,n){return pmt(t,n,!1)}function umt(t,n){return pmt(t,n,!0)}var our=`/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number {} -interface Object {} -interface RegExp {} -interface String {} -interface Array { length: number; [n: number]: T; } -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -}`,mae="lib.d.ts",c5e;function pmt(t,n,a){c5e??(c5e=DF(mae,our,{languageVersion:99}));let c=[],u=n.compilerOptions?Hve(n.compilerOptions,c):{},_=Aae();for(let U in _)Ho(_,U)&&u[U]===void 0&&(u[U]=_[U]);for(let U of RNe)u.verbatimModuleSyntax&&iur.has(U.name)||(u[U.name]=U.transpileOptionValue);u.suppressOutputPathCheck=!0,u.allowNonTsExtensions=!0,a?(u.declaration=!0,u.emitDeclarationOnly=!0,u.isolatedDeclarations=!0):(u.declaration=!1,u.declarationMap=!1);let f=fE(u),y={getSourceFile:U=>U===Qs(g)?k:U===Qs(mae)?c5e:void 0,writeFile:(U,J)=>{Au(U,".map")?($.assertEqual(C,void 0,"Unexpected multiple source map outputs, file:",U),C=J):($.assertEqual(T,void 0,"Unexpected multiple outputs, file:",U),T=J)},getDefaultLibFileName:()=>mae,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:U=>U,getCurrentDirectory:()=>"",getNewLine:()=>f,fileExists:U=>U===g||!!a&&U===mae,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},g=n.fileName||(n.compilerOptions&&n.compilerOptions.jsx?"module.tsx":"module.ts"),k=DF(g,t,{languageVersion:$c(u),impliedNodeFormat:AK(wl(g,"",y.getCanonicalFileName),void 0,y,u),setExternalModuleIndicator:dH(u),jsDocParsingMode:n.jsDocParsingMode??0});n.moduleName&&(k.moduleName=n.moduleName),n.renamedDependencies&&(k.renamedDependencies=new Map(Object.entries(n.renamedDependencies)));let T,C,F=wK(a?[g,mae]:[g],u,y);n.reportDiagnostics&&(En(c,F.getSyntacticDiagnostics(k)),En(c,F.getOptionsDiagnostics()));let M=F.emit(void 0,void 0,void 0,a,n.transformers,a);return En(c,M.diagnostics),T===void 0?$.fail("Output generation failed"):{outputText:T,diagnostics:c,sourceMapText:C}}function _mt(t,n,a,c,u){let _=s5e(t,{compilerOptions:n,fileName:a,reportDiagnostics:!!c,moduleName:u});return En(c,_.diagnostics),_.outputText}var l5e;function Hve(t,n){l5e=l5e||yr(Q1,a=>typeof a.type=="object"&&!Ad(a.type,c=>typeof c!="number")),t=X1e(t);for(let a of l5e){if(!Ho(t,a.name))continue;let c=t[a.name];Ni(c)?t[a.name]=_ie(a,c,n):Ad(a.type,u=>u===c)||n.push(MNe(a))}return t}var u5e={};d(u5e,{getNavigateToItems:()=>dmt});function dmt(t,n,a,c,u,_,f){let y=Q7e(c);if(!y)return j;let g=[],k=t.length===1?t[0]:void 0;for(let T of t)a.throwIfCancellationRequested(),!(_&&T.isDeclarationFile)&&(fmt(T,!!f,k)||T.getNamedDeclarations().forEach((C,O)=>{aur(y,O,C,n,T.fileName,!!f,k,g)}));return g.sort(uur),(u===void 0?g:g.slice(0,u)).map(pur)}function fmt(t,n,a){return t!==a&&n&&(tQ(t.path)||t.hasNoDefaultLib)}function aur(t,n,a,c,u,_,f,y){let g=t.getMatchForLastSegmentOfPattern(n);if(g){for(let k of a)if(sur(k,c,_,f))if(t.patternContainsDots){let T=t.getFullMatch(lur(k),n);T&&y.push({name:n,fileName:u,matchKind:T.kind,isCaseSensitive:T.isCaseSensitive,declaration:k})}else y.push({name:n,fileName:u,matchKind:g.kind,isCaseSensitive:g.isCaseSensitive,declaration:k})}}function sur(t,n,a,c){var u;switch(t.kind){case 274:case 277:case 272:let _=n.getSymbolAtLocation(t.name),f=n.getAliasedSymbol(_);return _.escapedName!==f.escapedName&&!((u=f.declarations)!=null&&u.every(y=>fmt(y.getSourceFile(),a,c)));default:return!0}}function cur(t,n){let a=cs(t);return!!a&&(mmt(a,n)||a.kind===168&&p5e(a.expression,n))}function p5e(t,n){return mmt(t,n)||no(t)&&(n.push(t.name.text),!0)&&p5e(t.expression,n)}function mmt(t,n){return SS(t)&&(n.push(g0(t)),!0)}function lur(t){let n=[],a=cs(t);if(a&&a.kind===168&&!p5e(a.expression,n))return j;n.shift();let c=T3(t);for(;c;){if(!cur(c,n))return j;c=T3(c)}return n.reverse(),n}function uur(t,n){return Br(t.matchKind,n.matchKind)||Rk(t.name,n.name)}function pur(t){let n=t.declaration,a=T3(n),c=a&&cs(a);return{name:t.name,kind:NP(n),kindModifiers:Kz(n),matchKind:Uve[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:yh(n),containerName:c?c.text:"",containerKind:c?NP(a):""}}var _5e={};d(_5e,{getNavigationBarItems:()=>gmt,getNavigationTree:()=>ymt});var _ur=/\s+/g,d5e=150,Kve,sQ,hae=[],DE,hmt=[],iM,f5e=[];function gmt(t,n){Kve=n,sQ=t;try{return Cr(gur(bmt(t)),yur)}finally{vmt()}}function ymt(t,n){Kve=n,sQ=t;try{return Imt(bmt(t))}finally{vmt()}}function vmt(){sQ=void 0,Kve=void 0,hae=[],DE=void 0,f5e=[]}function gae(t){return aq(t.getText(sQ))}function Qve(t){return t.node.kind}function Smt(t,n){t.children?t.children.push(n):t.children=[n]}function bmt(t){$.assert(!hae.length);let n={node:t,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};DE=n;for(let a of t.statements)zF(a);return $A(),$.assert(!DE&&!hae.length),n}function RP(t,n){Smt(DE,m5e(t,n))}function m5e(t,n){return{node:t,name:n||(Vd(t)||Vt(t)?cs(t):void 0),additionalNodes:void 0,parent:DE,children:void 0,indent:DE.indent+1}}function xmt(t){iM||(iM=new Map),iM.set(t,!0)}function Tmt(t){for(let n=0;n0;c--){let u=a[c];LP(t,u)}return[a.length-1,a[0]]}function LP(t,n){let a=m5e(t,n);Smt(DE,a),hae.push(DE),hmt.push(iM),iM=void 0,DE=a}function $A(){DE.children&&(Zve(DE.children,DE),y5e(DE.children)),DE=hae.pop(),iM=hmt.pop()}function UA(t,n,a){LP(t,a),zF(n),$A()}function kmt(t){t.initializer&&Sur(t.initializer)?(LP(t),Is(t.initializer,zF),$A()):UA(t,t.initializer)}function h5e(t){let n=cs(t);if(n===void 0)return!1;if(dc(n)){let a=n.expression;return ru(a)||qh(a)||jy(a)}return!!n}function zF(t){if(Kve.throwIfCancellationRequested(),!(!t||PO(t)))switch(t.kind){case 177:let n=t;UA(n,n.body);for(let f of n.parameters)ne(f,n)&&RP(f);break;case 175:case 178:case 179:case 174:h5e(t)&&UA(t,t.body);break;case 173:h5e(t)&&kmt(t);break;case 172:h5e(t)&&RP(t);break;case 274:let a=t;a.name&&RP(a.name);let{namedBindings:c}=a;if(c)if(c.kind===275)RP(c);else for(let f of c.elements)RP(f);break;case 305:UA(t,t.name);break;case 306:let{expression:u}=t;ct(u)?RP(t,u):RP(t);break;case 209:case 304:case 261:{let f=t;$s(f.name)?zF(f.name):kmt(f);break}case 263:let _=t.name;_&&ct(_)&&xmt(_.text),UA(t,t.body);break;case 220:case 219:UA(t,t.body);break;case 267:LP(t);for(let f of t.members)vur(f)||RP(f);$A();break;case 264:case 232:case 265:LP(t);for(let f of t.members)zF(f);$A();break;case 268:UA(t,Nmt(t).body);break;case 278:{let f=t.expression,y=Lc(f)||Js(f)?f:Iu(f)||bu(f)?f.body:void 0;y?(LP(t),zF(y),$A()):RP(t);break}case 282:case 272:case 182:case 180:case 181:case 266:RP(t);break;case 214:case 227:{let f=m_(t);switch(f){case 1:case 2:UA(t,t.right);return;case 6:case 3:{let y=t,g=y.left,k=f===3?g.expression:g,T=0,C;ct(k.expression)?(xmt(k.expression.text),C=k.expression):[T,C]=Emt(y,k.expression),f===6?Lc(y.right)&&y.right.properties.length>0&&(LP(y,C),Is(y.right,zF),$A()):bu(y.right)||Iu(y.right)?UA(t,y.right,C):(LP(y,C),UA(t,y.right,g.name),$A()),Tmt(T);return}case 7:case 9:{let y=t,g=f===7?y.arguments[0]:y.arguments[0].expression,k=y.arguments[1],[T,C]=Emt(t,g);LP(t,C),LP(t,qt(W.createIdentifier(k.text),k)),zF(t.arguments[2]),$A(),$A(),Tmt(T);return}case 5:{let y=t,g=y.left,k=g.expression;if(ct(k)&&BT(g)!=="prototype"&&iM&&iM.has(k.text)){bu(y.right)||Iu(y.right)?UA(t,y.right,k):nP(g)&&(LP(y,k),UA(y.left,y.right,$G(g)),$A());return}break}case 4:case 0:case 8:break;default:$.assertNever(f)}}default:hy(t)&&X(t.jsDoc,f=>{X(f.tags,y=>{n1(y)&&RP(y)})}),Is(t,zF)}}function Zve(t,n){let a=new Map;co(t,(c,u)=>{let _=c.name||cs(c.node),f=_&&gae(_);if(!f)return!0;let y=a.get(f);if(!y)return a.set(f,c),!0;if(y instanceof Array){for(let g of y)if(Cmt(g,c,u,n))return!1;return y.push(c),!0}else{let g=y;return Cmt(g,c,u,n)?!1:(a.set(f,[g,c]),!0)}})}var cQ={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function dur(t,n,a,c){function u(y){return bu(y)||i_(y)||Oo(y)}let _=wi(n.node)||Js(n.node)?m_(n.node):0,f=wi(t.node)||Js(t.node)?m_(t.node):0;if(cQ[_]&&cQ[f]||u(t.node)&&cQ[_]||u(n.node)&&cQ[f]||ed(t.node)&&g5e(t.node)&&cQ[_]||ed(n.node)&&cQ[f]||ed(t.node)&&g5e(t.node)&&u(n.node)||ed(n.node)&&u(t.node)&&g5e(t.node)){let y=t.additionalNodes&&Yr(t.additionalNodes)||t.node;if(!ed(t.node)&&!ed(n.node)||u(t.node)||u(n.node)){let k=u(t.node)?t.node:u(n.node)?n.node:void 0;if(k!==void 0){let T=qt(W.createConstructorDeclaration(void 0,[],void 0),k),C=m5e(T);C.indent=t.indent+1,C.children=t.node===k?t.children:n.children,t.children=t.node===k?go([C],n.children||[n]):go(t.children||[{...t}],[C])}else(t.children||n.children)&&(t.children=go(t.children||[{...t}],n.children||[n]),t.children&&(Zve(t.children,t),y5e(t.children)));y=t.node=qt(W.createClassDeclaration(void 0,t.name||W.createIdentifier("__class__"),void 0,void 0,[]),t.node)}else t.children=go(t.children,n.children),t.children&&Zve(t.children,t);let g=n.node;return c.children[a-1].node.end===y.end?qt(y,{pos:y.pos,end:g.end}):(t.additionalNodes||(t.additionalNodes=[]),t.additionalNodes.push(qt(W.createClassDeclaration(void 0,t.name||W.createIdentifier("__class__"),void 0,void 0,[]),n.node))),!0}return _!==0}function Cmt(t,n,a,c){return dur(t,n,a,c)?!0:fur(t.node,n.node,c)?(mur(t,n),!0):!1}function fur(t,n,a){if(t.kind!==n.kind||t.parent!==n.parent&&!(Dmt(t,a)&&Dmt(n,a)))return!1;switch(t.kind){case 173:case 175:case 178:case 179:return oc(t)===oc(n);case 268:return Amt(t,n)&&b5e(t)===b5e(n);default:return!0}}function g5e(t){return!!(t.flags&16)}function Dmt(t,n){if(t.parent===void 0)return!1;let a=wS(t.parent)?t.parent.parent:t.parent;return a===n.node||un(n.additionalNodes,a)}function Amt(t,n){return!t.body||!n.body?t.body===n.body:t.body.kind===n.body.kind&&(t.body.kind!==268||Amt(t.body,n.body))}function mur(t,n){t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(n.node),n.additionalNodes&&t.additionalNodes.push(...n.additionalNodes),t.children=go(t.children,n.children),t.children&&(Zve(t.children,t),y5e(t.children))}function y5e(t){t.sort(hur)}function hur(t,n){return Rk(wmt(t.node),wmt(n.node))||Br(Qve(t),Qve(n))}function wmt(t){if(t.kind===268)return Pmt(t);let n=cs(t);if(n&&q_(n)){let a=H4(n);return a&&oa(a)}switch(t.kind){case 219:case 220:case 232:return Fmt(t);default:return}}function v5e(t,n){if(t.kind===268)return aq(Pmt(t));if(n){let a=ct(n)?n.text:mu(n)?`[${gae(n.argumentExpression)}]`:gae(n);if(a.length>0)return aq(a)}switch(t.kind){case 308:let a=t;return yd(a)?`"${kb(t_(Qm(Qs(a.fileName))))}"`:"";case 278:return Xu(t)&&t.isExportEquals?"export=":"default";case 220:case 263:case 219:case 264:case 232:return _E(t)&2048?"default":Fmt(t);case 177:return"constructor";case 181:return"new()";case 180:return"()";case 182:return"[]";default:return""}}function gur(t){let n=[];function a(u){if(c(u)&&(n.push(u),u.children))for(let _ of u.children)a(_)}return a(t),n;function c(u){if(u.children)return!0;switch(Qve(u)){case 264:case 232:case 267:case 265:case 268:case 308:case 266:case 347:case 339:return!0;case 220:case 263:case 219:return _(u);default:return!1}function _(f){if(!f.node.body)return!1;switch(Qve(f.parent)){case 269:case 308:case 175:case 177:return!0;default:return!1}}}}function Imt(t){return{text:v5e(t.node,t.name),kind:NP(t.node),kindModifiers:Omt(t.node),spans:S5e(t),nameSpan:t.name&&x5e(t.name),childItems:Cr(t.children,Imt)}}function yur(t){return{text:v5e(t.node,t.name),kind:NP(t.node),kindModifiers:Omt(t.node),spans:S5e(t),childItems:Cr(t.children,n)||f5e,indent:t.indent,bolded:!1,grayed:!1};function n(a){return{text:v5e(a.node,a.name),kind:NP(a.node),kindModifiers:Kz(a.node),spans:S5e(a),childItems:f5e,indent:0,bolded:!1,grayed:!1}}}function S5e(t){let n=[x5e(t.node)];if(t.additionalNodes)for(let a of t.additionalNodes)n.push(x5e(a));return n}function Pmt(t){return Gm(t)?Sp(t.name):b5e(t)}function b5e(t){let n=[g0(t.name)];for(;t.body&&t.body.kind===268;)t=t.body,n.push(g0(t.name));return n.join(".")}function Nmt(t){return t.body&&I_(t.body)?Nmt(t.body):t}function vur(t){return!t.name||t.name.kind===168}function x5e(t){return t.kind===308?CE(t):yh(t,sQ)}function Omt(t){return t.parent&&t.parent.kind===261&&(t=t.parent),Kz(t)}function Fmt(t){let{parent:n}=t;if(t.name&&gG(t.name)>0)return aq(du(t.name));if(Oo(n))return aq(du(n.name));if(wi(n)&&n.operatorToken.kind===64)return gae(n.left).replace(_ur,"");if(td(n))return gae(n.name);if(_E(t)&2048)return"default";if(Co(t))return"";if(Js(n)){let a=Rmt(n.expression);if(a!==void 0){if(a=aq(a),a.length>d5e)return`${a} callback`;let c=aq(Wn(n.arguments,u=>Sl(u)||FO(u)?u.getText(sQ):void 0).join(", "));return`${a}(${c}) callback`}}return""}function Rmt(t){if(ct(t))return t.text;if(no(t)){let n=Rmt(t.expression),a=t.name.text;return n===void 0?a:`${n}.${a}`}else return}function Sur(t){switch(t.kind){case 220:case 219:case 232:return!0;default:return!1}}function aq(t){return t=t.length>d5e?t.substring(0,d5e)+"...":t,t.replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var qF={};d(qF,{addExportsInOldFile:()=>O5e,addImportsForMovedSymbols:()=>F5e,addNewFileToTsconfig:()=>N5e,addOrRemoveBracesToArrowFunction:()=>mpr,addTargetFileImports:()=>q5e,containsJsx:()=>M5e,convertArrowFunctionOrFunctionExpression:()=>Spr,convertParamsToDestructuredObject:()=>Ppr,convertStringOrTemplateLiteral:()=>Kpr,convertToOptionalChainExpression:()=>o_r,createNewFileName:()=>L5e,doChangeNamedToNamespaceOrDefault:()=>Umt,extractSymbol:()=>Oht,generateGetAccessorAndSetAccessor:()=>z_r,getApplicableRefactors:()=>bur,getEditsForRefactor:()=>xur,getExistingLocals:()=>U5e,getIdentifierForNode:()=>z5e,getNewStatementsAndRemoveFromOldFile:()=>P5e,getStatementsToMove:()=>lQ,getUsageInfo:()=>yae,inferFunctionReturnType:()=>q_r,isInImport:()=>aSe,isRefactorErrorInfo:()=>XT,refactorKindBeginsWith:()=>zA,registerRefactor:()=>Vx});var T5e=new Map;function Vx(t,n){T5e.set(t,n)}function bur(t,n){return so(li(T5e.values(),a=>{var c;return t.cancellationToken&&t.cancellationToken.isCancellationRequested()||!((c=a.kinds)!=null&&c.some(u=>zA(u,t.kind)))?void 0:a.getAvailableActions(t,n)}))}function xur(t,n,a,c){let u=T5e.get(n);return u&&u.getEditsForAction(t,a,c)}var E5e="Convert export",Xve={name:"Convert default export to named export",description:As(x.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},Yve={name:"Convert named export to default export",description:As(x.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};Vx(E5e,{kinds:[Xve.kind,Yve.kind],getAvailableActions:function(n){let a=Lmt(n,n.triggerReason==="invoked");if(!a)return j;if(!XT(a)){let c=a.wasDefault?Xve:Yve;return[{name:E5e,description:c.description,actions:[c]}]}return n.preferences.provideRefactorNotApplicableReason?[{name:E5e,description:As(x.Convert_default_export_to_named_export),actions:[{...Xve,notApplicableReason:a.error},{...Yve,notApplicableReason:a.error}]}]:j},getEditsForAction:function(n,a){$.assert(a===Xve.name||a===Yve.name,"Unexpected action name");let c=Lmt(n);return $.assert(c&&!XT(c),"Expected applicable refactor info"),{edits:ki.ChangeTracker.with(n,_=>Tur(n.file,n.program,c,_,n.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}});function Lmt(t,n=!0){let{file:a,program:c}=t,u=$F(t),_=la(a,u.start),f=_.parent&&_E(_.parent)&32&&n?_.parent:QK(_,a,u);if(!f||!Ta(f.parent)&&!(wS(f.parent)&&Gm(f.parent.parent)))return{error:As(x.Could_not_find_export_statement)};let y=c.getTypeChecker(),g=Aur(f.parent,y),k=_E(f)||(Xu(f)&&!f.isExportEquals?2080:0),T=!!(k&2048);if(!(k&32)||!T&&g.exports.has("default"))return{error:As(x.This_file_already_has_a_default_export)};let C=O=>ct(O)&&y.getSymbolAtLocation(O)?void 0:{error:As(x.Can_only_convert_named_export)};switch(f.kind){case 263:case 264:case 265:case 267:case 266:case 268:{let O=f;return O.name?C(O.name)||{exportNode:O,exportName:O.name,wasDefault:T,exportingModuleSymbol:g}:void 0}case 244:{let O=f;if(!(O.declarationList.flags&2)||O.declarationList.declarations.length!==1)return;let F=To(O.declarationList.declarations);return F.initializer?($.assert(!T,"Can't have a default flag here"),C(F.name)||{exportNode:O,exportName:F.name,wasDefault:T,exportingModuleSymbol:g}):void 0}case 278:{let O=f;return O.isExportEquals?void 0:C(O.expression)||{exportNode:O,exportName:O.expression,wasDefault:T,exportingModuleSymbol:g}}default:return}}function Tur(t,n,a,c,u){Eur(t,a,c,n.getTypeChecker()),kur(n,a,c,u)}function Eur(t,{wasDefault:n,exportNode:a,exportName:c},u,_){if(n)if(Xu(a)&&!a.isExportEquals){let f=a.expression,y=Mmt(f.text,f.text);u.replaceNode(t,a,W.createExportDeclaration(void 0,!1,W.createNamedExports([y])))}else u.delete(t,$.checkDefined(ZL(a,90),"Should find a default keyword in modifier list"));else{let f=$.checkDefined(ZL(a,95),"Should find an export keyword in modifier list");switch(a.kind){case 263:case 264:case 265:u.insertNodeAfter(t,f,W.createToken(90));break;case 244:let y=To(a.declarationList.declarations);if(!Pu.Core.isSymbolReferencedInFile(c,_,t)&&!y.type){u.replaceNode(t,a,W.createExportDefault($.checkDefined(y.initializer,"Initializer was previously known to be present")));break}case 267:case 266:case 268:u.deleteModifier(t,f),u.insertNodeAfter(t,a,W.createExportDefault(W.createIdentifier(c.text)));break;default:$.fail(`Unexpected exportNode kind ${a.kind}`)}}}function kur(t,{wasDefault:n,exportName:a,exportingModuleSymbol:c},u,_){let f=t.getTypeChecker(),y=$.checkDefined(f.getSymbolAtLocation(a),"Export name should resolve to a symbol");Pu.Core.eachExportReference(t.getSourceFiles(),f,_,y,c,a.text,n,g=>{if(a===g)return;let k=g.getSourceFile();n?Cur(k,g,u,a.text):Dur(k,g,u)})}function Cur(t,n,a,c){let{parent:u}=n;switch(u.kind){case 212:a.replaceNode(t,n,W.createIdentifier(c));break;case 277:case 282:{let f=u;a.replaceNode(t,f,k5e(c,f.name.text));break}case 274:{let f=u;$.assert(f.name===n,"Import clause name should match provided ref");let y=k5e(c,n.text),{namedBindings:g}=f;if(!g)a.replaceNode(t,n,W.createNamedImports([y]));else if(g.kind===275){a.deleteRange(t,{pos:n.getStart(t),end:g.getStart(t)});let k=Ic(f.parent.moduleSpecifier)?ave(f.parent.moduleSpecifier,t):1,T=IC(void 0,[k5e(c,n.text)],f.parent.moduleSpecifier,k);a.insertNodeAfter(t,f.parent,T)}else a.delete(t,n),a.insertNodeAtEndOfList(t,g.elements,y);break}case 206:let _=u;a.replaceNode(t,u,W.createImportTypeNode(_.argument,_.attributes,W.createIdentifier(c),_.typeArguments,_.isTypeOf));break;default:$.failBadSyntaxKind(u)}}function Dur(t,n,a){let c=n.parent;switch(c.kind){case 212:a.replaceNode(t,n,W.createIdentifier("default"));break;case 277:{let u=W.createIdentifier(c.name.text);c.parent.elements.length===1?a.replaceNode(t,c.parent,u):(a.delete(t,c),a.insertNodeBefore(t,c.parent,u));break}case 282:{a.replaceNode(t,c,Mmt("default",c.name.text));break}default:$.assertNever(c,`Unexpected parent kind ${c.kind}`)}}function k5e(t,n){return W.createImportSpecifier(!1,t===n?void 0:W.createIdentifier(t),W.createIdentifier(n))}function Mmt(t,n){return W.createExportSpecifier(!1,t===n?void 0:W.createIdentifier(t),W.createIdentifier(n))}function Aur(t,n){if(Ta(t))return t.symbol;let a=t.parent.symbol;return a.valueDeclaration&&eP(a.valueDeclaration)?n.getMergedSymbol(a):a}var C5e="Convert import",eSe={0:{name:"Convert namespace import to named imports",description:As(x.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:As(x.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:As(x.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};Vx(C5e,{kinds:sS(eSe).map(t=>t.kind),getAvailableActions:function(n){let a=jmt(n,n.triggerReason==="invoked");if(!a)return j;if(!XT(a)){let c=eSe[a.convertTo];return[{name:C5e,description:c.description,actions:[c]}]}return n.preferences.provideRefactorNotApplicableReason?sS(eSe).map(c=>({name:C5e,description:c.description,actions:[{...c,notApplicableReason:a.error}]})):j},getEditsForAction:function(n,a){$.assert(Pt(sS(eSe),_=>_.name===a),"Unexpected action name");let c=jmt(n);return $.assert(c&&!XT(c),"Expected applicable refactor info"),{edits:ki.ChangeTracker.with(n,_=>wur(n.file,n.program,_,c)),renameFilename:void 0,renameLocation:void 0}}});function jmt(t,n=!0){let{file:a}=t,c=$F(t),u=la(a,c.start),_=n?fn(u,jf(fp,OS)):QK(u,a,c);if(_===void 0||!(fp(_)||OS(_)))return{error:"Selection is not an import declaration."};let f=c.start+c.length,y=OP(_,_.parent,a);if(y&&f>y.getStart())return;let{importClause:g}=_;return g?g.namedBindings?g.namedBindings.kind===275?{convertTo:0,import:g.namedBindings}:Bmt(t.program,g)?{convertTo:1,import:g.namedBindings}:{convertTo:2,import:g.namedBindings}:{error:As(x.Could_not_find_namespace_import_or_named_imports)}:{error:As(x.Could_not_find_import_clause)}}function Bmt(t,n){return iF(t.getCompilerOptions())&&Nur(n.parent.moduleSpecifier,t.getTypeChecker())}function wur(t,n,a,c){let u=n.getTypeChecker();c.convertTo===0?Iur(t,u,a,c.import,iF(n.getCompilerOptions())):Umt(t,n,a,c.import,c.convertTo===1)}function Iur(t,n,a,c,u){let _=!1,f=[],y=new Map;Pu.Core.eachSymbolReferenceInFile(c.name,n,t,C=>{if(!_G(C.parent))_=!0;else{let O=$mt(C.parent).text;n.resolveName(O,C,-1,!0)&&y.set(O,!0),$.assert(Pur(C.parent)===C,"Parent expression should match id"),f.push(C.parent)}});let g=new Map;for(let C of f){let O=$mt(C).text,F=g.get(O);F===void 0&&g.set(O,F=y.has(O)?k3(O,t):O),a.replaceNode(t,C,W.createIdentifier(F))}let k=[];g.forEach((C,O)=>{k.push(W.createImportSpecifier(!1,C===O?void 0:W.createIdentifier(O),W.createIdentifier(C)))});let T=c.parent.parent;if(_&&!u&&fp(T))a.insertNodeAfter(t,T,zmt(T,void 0,k));else{let C=_?W.createIdentifier(c.name.text):void 0;a.replaceNode(t,c.parent,qmt(C,k))}}function $mt(t){return no(t)?t.name:t.right}function Pur(t){return no(t)?t.expression:t.left}function Umt(t,n,a,c,u=Bmt(n,c.parent)){let _=n.getTypeChecker(),f=c.parent.parent,{moduleSpecifier:y}=f,g=new Set;c.elements.forEach(M=>{let U=_.getSymbolAtLocation(M.name);U&&g.add(U)});let k=y&&Ic(y)?nQ(y.text,99):"module";function T(M){return!!Pu.Core.eachSymbolReferenceInFile(M.name,_,t,U=>{let J=_.resolveName(k,U,-1,!0);return J?g.has(J)?Cm(U.parent):!0:!1})}let O=c.elements.some(T)?k3(k,t):k,F=new Set;for(let M of c.elements){let U=M.propertyName||M.name;Pu.Core.eachSymbolReferenceInFile(M.name,_,t,J=>{let G=U.kind===11?W.createElementAccessExpression(W.createIdentifier(O),W.cloneNode(U)):W.createPropertyAccessExpression(W.createIdentifier(O),W.cloneNode(U));im(J.parent)?a.replaceNode(t,J.parent,W.createPropertyAssignment(J.text,G)):Cm(J.parent)?F.add(M):a.replaceNode(t,J,G)})}if(a.replaceNode(t,c,u?W.createIdentifier(O):W.createNamespaceImport(W.createIdentifier(O))),F.size&&fp(f)){let M=so(F.values(),U=>W.createImportSpecifier(U.isTypeOnly,U.propertyName&&W.cloneNode(U.propertyName),W.cloneNode(U.name)));a.insertNodeAfter(t,c.parent.parent,zmt(f,void 0,M))}}function Nur(t,n){let a=n.resolveExternalModuleName(t);if(!a)return!1;let c=n.resolveExternalModuleSymbol(a);return a!==c}function zmt(t,n,a){return W.createImportDeclaration(void 0,qmt(n,a),t.moduleSpecifier,void 0)}function qmt(t,n){return W.createImportClause(void 0,t,n&&n.length?W.createNamedImports(n):void 0)}var D5e="Extract type",tSe={name:"Extract to type alias",description:As(x.Extract_to_type_alias),kind:"refactor.extract.type"},rSe={name:"Extract to interface",description:As(x.Extract_to_interface),kind:"refactor.extract.interface"},nSe={name:"Extract to typedef",description:As(x.Extract_to_typedef),kind:"refactor.extract.typedef"};Vx(D5e,{kinds:[tSe.kind,rSe.kind,nSe.kind],getAvailableActions:function(n){let{info:a,affectedTextRange:c}=Jmt(n,n.triggerReason==="invoked");return a?XT(a)?n.preferences.provideRefactorNotApplicableReason?[{name:D5e,description:As(x.Extract_type),actions:[{...nSe,notApplicableReason:a.error},{...tSe,notApplicableReason:a.error},{...rSe,notApplicableReason:a.error}]}]:j:[{name:D5e,description:As(x.Extract_type),actions:a.isJS?[nSe]:jt([tSe],a.typeElements&&rSe)}].map(_=>({..._,actions:_.actions.map(f=>({...f,range:c?{start:{line:qs(n.file,c.pos).line,offset:qs(n.file,c.pos).character},end:{line:qs(n.file,c.end).line,offset:qs(n.file,c.end).character}}:void 0}))})):j},getEditsForAction:function(n,a){let{file:c}=n,{info:u}=Jmt(n);$.assert(u&&!XT(u),"Expected to find a range to extract");let _=k3("NewType",c),f=ki.ChangeTracker.with(n,k=>{switch(a){case tSe.name:return $.assert(!u.isJS,"Invalid actionName/JS combo"),Rur(k,c,_,u);case nSe.name:return $.assert(u.isJS,"Invalid actionName/JS combo"),Mur(k,n,c,_,u);case rSe.name:return $.assert(!u.isJS&&!!u.typeElements,"Invalid actionName/JS combo"),Lur(k,c,_,u);default:$.fail("Unexpected action name")}}),y=c.fileName,g=XK(f,y,_,!1);return{edits:f,renameFilename:y,renameLocation:g}}});function Jmt(t,n=!0){let{file:a,startPosition:c}=t,u=ph(a),_=zoe($F(t)),f=_.pos===_.end&&n,y=Our(a,c,_,f);if(!y||!Wo(y))return{info:{error:As(x.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let g=t.program.getTypeChecker(),k=jur(y,u);if(k===void 0)return{info:{error:As(x.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let T=Bur(y,k);if(!Wo(T))return{info:{error:As(x.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let C=[];(SE(T.parent)||vF(T.parent))&&_.end>y.end&&En(C,T.parent.types.filter(J=>Ooe(J,a,_.pos,_.end)));let O=C.length>1?C:T,{typeParameters:F,affectedTextRange:M}=Fur(g,O,k,a);if(!F)return{info:{error:As(x.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let U=iSe(g,O);return{info:{isJS:u,selection:O,enclosingNode:k,typeParameters:F,typeElements:U},affectedTextRange:M}}function Our(t,n,a,c){let u=[()=>la(t,n),()=>KL(t,n,()=>!0)];for(let _ of u){let f=_(),y=Ooe(f,t,a.pos,a.end),g=fn(f,k=>k.parent&&Wo(k)&&!MP(a,k.parent,t)&&(c||y));if(g)return g}}function iSe(t,n){if(n){if(Zn(n)){let a=[];for(let c of n){let u=iSe(t,c);if(!u)return;En(a,u)}return a}if(vF(n)){let a=[],c=new Set;for(let u of n.types){let _=iSe(t,u);if(!_||!_.every(f=>f.name&&o1(c,HK(f.name))))return;En(a,_)}return a}else{if(i3(n))return iSe(t,n.type);if(fh(n))return n.members}}}function MP(t,n,a){return qK(t,_c(a.text,n.pos),n.end)}function Fur(t,n,a,c){let u=[],_=Ll(n),f={pos:_[0].getStart(c),end:_[_.length-1].end};for(let g of _)if(y(g))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:u,affectedTextRange:f};function y(g){if(Ug(g)){if(ct(g.typeName)){let k=g.typeName,T=t.resolveName(k.text,k,262144,!0);for(let C of T?.declarations||j)if(Zu(C)&&C.getSourceFile()===c){if(C.name.escapedText===k.escapedText&&MP(C,f,c))return!0;if(MP(a,C,c)&&!MP(f,C,c)){Zc(u,C);break}}}}else if(n3(g)){let k=fn(g,T=>yP(T)&&MP(T.extendsType,g,c));if(!k||!MP(f,k,c))return!0}else if(gF(g)||lz(g)){let k=fn(g.parent,Rs);if(k&&k.type&&MP(k.type,g,c)&&!MP(f,k,c))return!0}else if(gP(g)){if(ct(g.exprName)){let k=t.resolveName(g.exprName.text,g.exprName,111551,!1);if(k?.valueDeclaration&&MP(a,k.valueDeclaration,c)&&!MP(f,k.valueDeclaration,c))return!0}else if(pC(g.exprName.left)&&!MP(f,g.parent,c))return!0}return c&&yF(g)&&qs(c,g.pos).line===qs(c,g.end).line&&Ai(g,1),Is(g,y)}}function Rur(t,n,a,c){let{enclosingNode:u,typeParameters:_}=c,{firstTypeNode:f,lastTypeNode:y,newTypeNode:g}=A5e(c),k=W.createTypeAliasDeclaration(void 0,a,_.map(T=>W.updateTypeParameterDeclaration(T,T.modifiers,T.name,T.constraint,void 0)),g);t.insertNodeBefore(n,u,Ege(k),!0),t.replaceNodeRange(n,f,y,W.createTypeReferenceNode(a,_.map(T=>W.createTypeReferenceNode(T.name,void 0))),{leadingTriviaOption:ki.LeadingTriviaOption.Exclude,trailingTriviaOption:ki.TrailingTriviaOption.ExcludeWhitespace})}function Lur(t,n,a,c){var u;let{enclosingNode:_,typeParameters:f,typeElements:y}=c,g=W.createInterfaceDeclaration(void 0,a,f,void 0,y);qt(g,(u=y[0])==null?void 0:u.parent),t.insertNodeBefore(n,_,Ege(g),!0);let{firstTypeNode:k,lastTypeNode:T}=A5e(c);t.replaceNodeRange(n,k,T,W.createTypeReferenceNode(a,f.map(C=>W.createTypeReferenceNode(C.name,void 0))),{leadingTriviaOption:ki.LeadingTriviaOption.Exclude,trailingTriviaOption:ki.TrailingTriviaOption.ExcludeWhitespace})}function Mur(t,n,a,c,u){var _;Ll(u.selection).forEach(M=>{Ai(M,7168)});let{enclosingNode:f,typeParameters:y}=u,{firstTypeNode:g,lastTypeNode:k,newTypeNode:T}=A5e(u),C=W.createJSDocTypedefTag(W.createIdentifier("typedef"),W.createJSDocTypeExpression(T),W.createIdentifier(c)),O=[];X(y,M=>{let U=NR(M),J=W.createTypeParameterDeclaration(void 0,M.name),G=W.createJSDocTemplateTag(W.createIdentifier("template"),U&&Ba(U,AA),[J]);O.push(G)});let F=W.createJSDocComment(void 0,W.createNodeArray(go(O,[C])));if(kv(f)){let M=f.getStart(a),U=ZT(n.host,(_=n.formatContext)==null?void 0:_.options);t.insertNodeAt(a,f.getStart(a),F,{suffix:U+U+a.text.slice(Qoe(a.text,M-1),M)})}else t.insertNodeBefore(a,f,F,!0);t.replaceNodeRange(a,g,k,W.createTypeReferenceNode(c,y.map(M=>W.createTypeReferenceNode(M.name,void 0))))}function A5e(t){return Zn(t.selection)?{firstTypeNode:t.selection[0],lastTypeNode:t.selection[t.selection.length-1],newTypeNode:SE(t.selection[0].parent)?W.createUnionTypeNode(t.selection):W.createIntersectionTypeNode(t.selection)}:{firstTypeNode:t.selection,lastTypeNode:t.selection,newTypeNode:t.selection}}function jur(t,n){return fn(t,fa)||(n?fn(t,kv):void 0)}function Bur(t,n){return fn(t,a=>a===n?"quit":!!(SE(a.parent)||vF(a.parent)))??t}var oSe="Move to file",w5e=As(x.Move_to_file),I5e={name:"Move to file",description:w5e,kind:"refactor.move.file"};Vx(oSe,{kinds:[I5e.kind],getAvailableActions:function(n,a){let c=n.file,u=lQ(n);if(!a)return j;if(n.triggerReason==="implicit"&&n.endPosition!==void 0){let _=fn(la(c,n.startPosition),UF),f=fn(la(c,n.endPosition),UF);if(_&&!Ta(_)&&f&&!Ta(f))return j}if(n.preferences.allowTextChangesInNewFiles&&u){let _={start:{line:qs(c,u.all[0].getStart(c)).line,offset:qs(c,u.all[0].getStart(c)).character},end:{line:qs(c,Sn(u.all).end).line,offset:qs(c,Sn(u.all).end).character}};return[{name:oSe,description:w5e,actions:[{...I5e,range:_}]}]}return n.preferences.provideRefactorNotApplicableReason?[{name:oSe,description:w5e,actions:[{...I5e,notApplicableReason:As(x.Selection_is_not_a_valid_statement_or_statements)}]}]:j},getEditsForAction:function(n,a,c){$.assert(a===oSe,"Wrong refactor invoked");let u=$.checkDefined(lQ(n)),{host:_,program:f}=n;$.assert(c,"No interactive refactor arguments available");let y=c.targetFile;return jx(y)||X4(y)?_.fileExists(y)&&f.getSourceFile(y)===void 0?Vmt(As(x.Cannot_move_statements_to_the_selected_file)):{edits:ki.ChangeTracker.with(n,k=>$ur(n,n.file,c.targetFile,n.program,u,k,n.host,n.preferences)),renameFilename:void 0,renameLocation:void 0}:Vmt(As(x.Cannot_move_to_file_selected_file_is_invalid))}});function Vmt(t){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:t}}function $ur(t,n,a,c,u,_,f,y){let g=c.getTypeChecker(),k=!f.fileExists(a),T=k?uae(a,n.externalModuleIndicator?99:n.commonJsModuleIndicator?1:void 0,c,f):$.checkDefined(c.getSourceFile(a)),C=Im.createImportAdder(n,t.program,t.preferences,t.host),O=Im.createImportAdder(T,t.program,t.preferences,t.host);P5e(n,T,yae(n,u.all,g,k?void 0:U5e(T,u.all,g)),_,u,c,f,y,O,C),k&&N5e(c,_,n.fileName,a,UT(f))}function P5e(t,n,a,c,u,_,f,y,g,k){let T=_.getTypeChecker(),C=eO(t.statements,yS),O=!Nve(n.fileName,_,f,!!t.commonJsModuleIndicator),F=Vg(t,y);F5e(a.oldFileImportsFromTargetFile,n.fileName,k,_),zur(t,u.all,a.unusedImportsFromOldFile,k),k.writeFixes(c,F),Uur(t,u.ranges,c),qur(c,_,f,t,a.movedSymbols,n.fileName,F),O5e(t,a.targetFileImportsFromOldFile,c,O),q5e(t,a.oldImportsNeededByTargetFile,a.targetFileImportsFromOldFile,T,_,g),!Ox(n)&&C.length&&c.insertStatementsInNewFile(n.fileName,C,t),g.writeFixes(c,F);let M=Kur(t,u.all,so(a.oldFileImportsFromTargetFile.keys()),O);Ox(n)&&n.statements.length>0?ppr(c,_,M,n,u):Ox(n)?c.insertNodesAtEndOfFile(n,M,!1):c.insertStatementsInNewFile(n.fileName,g.hasFixes()?[4,...M]:M,t)}function N5e(t,n,a,c,u){let _=t.getCompilerOptions().configFile;if(!_)return;let f=Qs(Xi(a,"..",c)),y=Vk(_.fileName,f,u),g=_.statements[0]&&Ci(_.statements[0].expression,Lc),k=g&&wt(g.properties,T=>td(T)&&Ic(T.name)&&T.name.text==="files");k&&qf(k.initializer)&&n.insertNodeInListAfter(_,Sn(k.initializer.elements),W.createStringLiteral(y),k.initializer.elements)}function Uur(t,n,a){for(let{first:c,afterLast:u}of n)a.deleteNodeRangeExcludingEnd(t,c,u)}function zur(t,n,a,c){for(let u of t.statements)un(n,u)||Gmt(u,_=>{Hmt(_,f=>{a.has(f.symbol)&&c.removeExistingImport(f)})})}function O5e(t,n,a,c){let u=QL();n.forEach((_,f)=>{if(f.declarations)for(let y of f.declarations){if(!$5e(y))continue;let g=npr(y);if(!g)continue;let k=Xmt(y);u(k)&&ipr(t,k,g,a,c)}})}function qur(t,n,a,c,u,_,f){let y=n.getTypeChecker();for(let g of n.getSourceFiles())if(g!==c)for(let k of g.statements)Gmt(k,T=>{if(y.getSymbolAtLocation(Gur(T))!==c.symbol)return;let C=J=>{let G=Vc(J.parent)?Hoe(y,J.parent):$f(y.getSymbolAtLocation(J),y);return!!G&&u.has(G)};Qur(g,T,t,C);let O=mb(mo(za(c.fileName,n.getCurrentDirectory())),_);if(ub(!n.useCaseSensitiveFileNames())(O,g.fileName)===0)return;let F=QT.getModuleSpecifier(n.getCompilerOptions(),g,g.fileName,O,BA(n,a)),M=epr(T,Zz(F,f),C);M&&t.insertNodeAfter(g,k,M);let U=Jur(T);U&&Vur(t,g,y,u,F,U,T,f)})}function Jur(t){switch(t.kind){case 273:return t.importClause&&t.importClause.namedBindings&&t.importClause.namedBindings.kind===275?t.importClause.namedBindings.name:void 0;case 272:return t.name;case 261:return Ci(t.name,ct);default:return $.assertNever(t,`Unexpected node kind ${t.kind}`)}}function Vur(t,n,a,c,u,_,f,y){let g=nQ(u,99),k=!1,T=[];if(Pu.Core.eachSymbolReferenceInFile(_,a,n,C=>{no(C.parent)&&(k=k||!!a.resolveName(g,C,-1,!0),c.has(a.getSymbolAtLocation(C.parent.name))&&T.push(C))}),T.length){let C=k?k3(g,n):g;for(let O of T)t.replaceNode(n,O,W.createIdentifier(C));t.insertNodeAfter(n,f,Wur(f,g,u,y))}}function Wur(t,n,a,c){let u=W.createIdentifier(n),_=Zz(a,c);switch(t.kind){case 273:return W.createImportDeclaration(void 0,W.createImportClause(void 0,void 0,W.createNamespaceImport(u)),_,void 0);case 272:return W.createImportEqualsDeclaration(void 0,!1,u,W.createExternalModuleReference(_));case 261:return W.createVariableDeclaration(u,void 0,void 0,Wmt(_));default:return $.assertNever(t,`Unexpected node kind ${t.kind}`)}}function Wmt(t){return W.createCallExpression(W.createIdentifier("require"),void 0,[t])}function Gur(t){return t.kind===273?t.moduleSpecifier:t.kind===272?t.moduleReference.expression:t.initializer.arguments[0]}function Gmt(t,n){if(fp(t))Ic(t.moduleSpecifier)&&n(t);else if(gd(t))WT(t.moduleReference)&&Sl(t.moduleReference.expression)&&n(t);else if(h_(t))for(let a of t.declarationList.declarations)a.initializer&&$h(a.initializer,!0)&&n(a)}function Hmt(t,n){var a,c,u,_,f;if(t.kind===273){if((a=t.importClause)!=null&&a.name&&n(t.importClause),((u=(c=t.importClause)==null?void 0:c.namedBindings)==null?void 0:u.kind)===275&&n(t.importClause.namedBindings),((f=(_=t.importClause)==null?void 0:_.namedBindings)==null?void 0:f.kind)===276)for(let y of t.importClause.namedBindings.elements)n(y)}else if(t.kind===272)n(t);else if(t.kind===261){if(t.name.kind===80)n(t);else if(t.name.kind===207)for(let y of t.name.elements)ct(y.name)&&n(y)}}function F5e(t,n,a,c){for(let[u,_]of t){let f=oae(u,$c(c.getCompilerOptions())),y=u.name==="default"&&u.parent?1:0;a.addImportForNonExistentExport(f,n,y,u.flags,_)}}function Hur(t,n,a,c=2){return W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(t,void 0,n,a)],c))}function Kur(t,n,a,c){return an(n,u=>{if(Qmt(u)&&!Kmt(t,u,c)&&B5e(u,_=>{var f;return a.includes($.checkDefined((f=Ci(_,gv))==null?void 0:f.symbol))})){let _=Zur(Il(u),c);if(_)return _}return Il(u)})}function Kmt(t,n,a,c){var u;return a?!af(n)&&ko(n,32)||!!(c&&t.symbol&&((u=t.symbol.exports)!=null&&u.has(c.escapedText))):!!t.symbol&&!!t.symbol.exports&&R5e(n).some(_=>t.symbol.exports.has(dp(_)))}function Qur(t,n,a,c){if(n.kind===273&&n.importClause){let{name:u,namedBindings:_}=n.importClause;if((!u||c(u))&&(!_||_.kind===276&&_.elements.length!==0&&_.elements.every(f=>c(f.name))))return a.delete(t,n)}Hmt(n,u=>{u.name&&ct(u.name)&&c(u.name)&&a.delete(t,u)})}function Qmt(t){return $.assert(Ta(t.parent),"Node parent should be a SourceFile"),tht(t)||h_(t)}function Zur(t,n){return n?[Xur(t)]:Yur(t)}function Xur(t){let n=l1(t)?go([W.createModifier(95)],Qk(t)):void 0;switch(t.kind){case 263:return W.updateFunctionDeclaration(t,n,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 264:let a=kP(t)?yb(t):void 0;return W.updateClassDeclaration(t,go(a,n),t.name,t.typeParameters,t.heritageClauses,t.members);case 244:return W.updateVariableStatement(t,n,t.declarationList);case 268:return W.updateModuleDeclaration(t,n,t.name,t.body);case 267:return W.updateEnumDeclaration(t,n,t.name,t.members);case 266:return W.updateTypeAliasDeclaration(t,n,t.name,t.typeParameters,t.type);case 265:return W.updateInterfaceDeclaration(t,n,t.name,t.typeParameters,t.heritageClauses,t.members);case 272:return W.updateImportEqualsDeclaration(t,n,t.isTypeOnly,t.name,t.moduleReference);case 245:return $.fail();default:return $.assertNever(t,`Unexpected declaration kind ${t.kind}`)}}function Yur(t){return[t,...R5e(t).map(Zmt)]}function Zmt(t){return W.createExpressionStatement(W.createBinaryExpression(W.createPropertyAccessExpression(W.createIdentifier("exports"),W.createIdentifier(t)),64,W.createIdentifier(t)))}function R5e(t){switch(t.kind){case 263:case 264:return[t.name.text];case 244:return Wn(t.declarationList.declarations,n=>ct(n.name)?n.name.text:void 0);case 268:case 267:case 266:case 265:case 272:return j;case 245:return $.fail("Can't export an ExpressionStatement");default:return $.assertNever(t,`Unexpected decl kind ${t.kind}`)}}function epr(t,n,a){switch(t.kind){case 273:{let c=t.importClause;if(!c)return;let u=c.name&&a(c.name)?c.name:void 0,_=c.namedBindings&&tpr(c.namedBindings,a);return u||_?W.createImportDeclaration(void 0,W.createImportClause(c.phaseModifier,u,_),Il(n),void 0):void 0}case 272:return a(t.name)?t:void 0;case 261:{let c=rpr(t.name,a);return c?Hur(c,t.type,Wmt(n),t.parent.flags):void 0}default:return $.assertNever(t,`Unexpected import kind ${t.kind}`)}}function tpr(t,n){if(t.kind===275)return n(t.name)?t:void 0;{let a=t.elements.filter(c=>n(c.name));return a.length?W.createNamedImports(a):void 0}}function rpr(t,n){switch(t.kind){case 80:return n(t)?t:void 0;case 208:return t;case 207:{let a=t.elements.filter(c=>c.propertyName||!ct(c.name)||n(c.name));return a.length?W.createObjectBindingPattern(a):void 0}}}function npr(t){return af(t)?Ci(t.expression.left.name,ct):Ci(t.name,ct)}function Xmt(t){switch(t.kind){case 261:return t.parent.parent;case 209:return Xmt(Ba(t.parent.parent,n=>Oo(n)||Vc(n)));default:return t}}function ipr(t,n,a,c,u){if(!Kmt(t,n,u,a))if(u)af(n)||c.insertExportModifier(t,n);else{let _=R5e(n);_.length!==0&&c.insertNodesAfter(t,n,_.map(Zmt))}}function L5e(t,n,a,c){let u=n.getTypeChecker();if(c){let _=yae(t,c.all,u),f=mo(t.fileName),y=VU(t.fileName);return Xi(f,cpr(lpr(_.oldFileImportsFromTargetFile,_.movedSymbols),y,f,a))+y}return""}function opr(t){let{file:n}=t,a=zoe($F(t)),{statements:c}=n,u=hr(c,k=>k.end>a.pos);if(u===-1)return;let _=c[u],f=rht(n,_);f&&(u=f.start);let y=hr(c,k=>k.end>=a.end,u);y!==-1&&a.end<=c[y].getStart()&&y--;let g=rht(n,c[y]);return g&&(y=g.end),{toMove:c.slice(u,y===-1?c.length:y+1),afterLast:y===-1?void 0:c[y+1]}}function lQ(t){let n=opr(t);if(n===void 0)return;let a=[],c=[],{toMove:u,afterLast:_}=n;return ou(u,apr,(f,y)=>{for(let g=f;g!!(n.transformFlags&2))}function apr(t){return!spr(t)&&!yS(t)}function spr(t){switch(t.kind){case 273:return!0;case 272:return!ko(t,32);case 244:return t.declarationList.declarations.every(n=>!!n.initializer&&$h(n.initializer,!0));default:return!1}}function yae(t,n,a,c=new Set,u){var _;let f=new Set,y=new Map,g=new Map,k=O(M5e(n));k&&y.set(k,[!1,Ci((_=k.declarations)==null?void 0:_[0],F=>Xm(F)||H1(F)||zx(F)||gd(F)||Vc(F)||Oo(F))]);for(let F of n)B5e(F,M=>{f.add($.checkDefined(af(M)?a.getSymbolAtLocation(M.expression.left):M.symbol,"Need a symbol here"))});let T=new Set;for(let F of n)j5e(F,a,u,(M,U)=>{if(!Pt(M.declarations))return;if(c.has($f(M,a))){T.add(M);return}let J=wt(M.declarations,aSe);if(J){let G=y.get(M);y.set(M,[(G===void 0||G)&&U,Ci(J,Z=>Xm(Z)||H1(Z)||zx(Z)||gd(Z)||Vc(Z)||Oo(Z))])}else!f.has(M)&&ht(M.declarations,G=>$5e(G)&&upr(G)===t)&&g.set(M,U)});for(let F of y.keys())T.add(F);let C=new Map;for(let F of t.statements)un(n,F)||(k&&F.transformFlags&2&&T.delete(k),j5e(F,a,u,(M,U)=>{f.has(M)&&C.set(M,U),T.delete(M)}));return{movedSymbols:f,targetFileImportsFromOldFile:g,oldFileImportsFromTargetFile:C,oldImportsNeededByTargetFile:y,unusedImportsFromOldFile:T};function O(F){if(F===void 0)return;let M=a.getJsxNamespace(F),U=a.resolveName(M,F,1920,!0);return U&&Pt(U.declarations,aSe)?U:void 0}}function cpr(t,n,a,c){let u=t;for(let _=1;;_++){let f=Xi(a,u+n);if(!c.fileExists(f))return u;u=`${t}.${_}`}}function lpr(t,n){return Ix(t,cve)||Ix(n,cve)||"newFile"}function j5e(t,n,a,c){t.forEachChild(function u(_){if(ct(_)&&!Eb(_)){if(a&&!zh(a,_))return;let f=n.getSymbolAtLocation(_);f&&c(f,yA(_))}else _.forEachChild(u)})}function B5e(t,n){switch(t.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return n(t);case 244:return Je(t.declarationList.declarations,a=>eht(a.name,n));case 245:{let{expression:a}=t;return wi(a)&&m_(a)===1?n(t):void 0}}}function aSe(t){switch(t.kind){case 272:case 277:case 274:case 275:return!0;case 261:return Ymt(t);case 209:return Oo(t.parent.parent)&&Ymt(t.parent.parent);default:return!1}}function Ymt(t){return Ta(t.parent.parent.parent)&&!!t.initializer&&$h(t.initializer,!0)}function $5e(t){return tht(t)&&Ta(t.parent)||Oo(t)&&Ta(t.parent.parent.parent)}function upr(t){return Oo(t)?t.parent.parent.parent:t.parent}function eht(t,n){switch(t.kind){case 80:return n(Ba(t.parent,a=>Oo(a)||Vc(a)));case 208:case 207:return Je(t.elements,a=>Id(a)?void 0:eht(a.name,n));default:return $.assertNever(t,`Unexpected name kind ${t.kind}`)}}function tht(t){switch(t.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return!0;default:return!1}}function ppr(t,n,a,c,u){var _;let f=new Set,y=(_=c.symbol)==null?void 0:_.exports;if(y){let k=n.getTypeChecker(),T=new Map;for(let C of u.all)Qmt(C)&&ko(C,32)&&B5e(C,O=>{var F;let M=gv(O)?(F=y.get(O.symbol.escapedName))==null?void 0:F.declarations:void 0,U=Je(M,J=>P_(J)?J:Cm(J)?Ci(J.parent.parent,P_):void 0);U&&U.moduleSpecifier&&T.set(U,(T.get(U)||new Set).add(O))});for(let[C,O]of so(T))if(C.exportClause&&k0(C.exportClause)&&te(C.exportClause.elements)){let F=C.exportClause.elements,M=yr(F,U=>wt($f(U.symbol,k).declarations,J=>$5e(J)&&O.has(J))===void 0);if(te(M)===0){t.deleteNode(c,C),f.add(C);continue}te(M)P_(k)&&!!k.moduleSpecifier&&!f.has(k));g?t.insertNodesBefore(c,g,a,!0):t.insertNodesAfter(c,c.statements[c.statements.length-1],a)}function rht(t,n){if(lu(n)){let a=n.symbol.declarations;if(a===void 0||te(a)<=1||!un(a,n))return;let c=a[0],u=a[te(a)-1],_=Wn(a,g=>Pn(g)===t&&fa(g)?g:void 0),f=hr(t.statements,g=>g.end>=u.end),y=hr(t.statements,g=>g.end>=c.end);return{toMove:_,start:y,end:f}}}function U5e(t,n,a){let c=new Set;for(let u of t.imports){let _=bU(u);if(fp(_)&&_.importClause&&_.importClause.namedBindings&&IS(_.importClause.namedBindings))for(let f of _.importClause.namedBindings.elements){let y=a.getSymbolAtLocation(f.propertyName||f.name);y&&c.add($f(y,a))}if(RG(_.parent)&&$y(_.parent.name))for(let f of _.parent.name.elements){let y=a.getSymbolAtLocation(f.propertyName||f.name);y&&c.add($f(y,a))}}for(let u of n)j5e(u,a,void 0,_=>{let f=$f(_,a);f.valueDeclaration&&Pn(f.valueDeclaration).path===t.path&&c.add(f)});return c}function XT(t){return t.error!==void 0}function zA(t,n){return n?t.substr(0,n.length)===n:!0}function z5e(t,n,a,c){return no(t)&&!Co(n)&&!a.resolveName(t.name.text,t,111551,!1)&&!Aa(t.name)&&!aA(t.name)?t.name.text:k3(Co(n)?"newProperty":"newLocal",c)}function q5e(t,n,a,c,u,_){n.forEach(([f,y],g)=>{var k;let T=$f(g,c);c.isUnknownSymbol(T)?_.addVerbatimImport($.checkDefined(y??fn((k=g.declarations)==null?void 0:k[0],a6e))):T.parent===void 0?($.assert(y!==void 0,"expected module symbol to have a declaration"),_.addImportForModuleSymbol(g,f,y)):_.addImportFromExportedSymbol(T,f,y)}),F5e(a,t.fileName,_,u)}var vae="Inline variable",J5e=As(x.Inline_variable),V5e={name:vae,description:J5e,kind:"refactor.inline.variable"};Vx(vae,{kinds:[V5e.kind],getAvailableActions(t){let{file:n,program:a,preferences:c,startPosition:u,triggerReason:_}=t,f=nht(n,u,_==="invoked",a);return f?qF.isRefactorErrorInfo(f)?c.provideRefactorNotApplicableReason?[{name:vae,description:J5e,actions:[{...V5e,notApplicableReason:f.error}]}]:j:[{name:vae,description:J5e,actions:[V5e]}]:j},getEditsForAction(t,n){$.assert(n===vae,"Unexpected refactor invoked");let{file:a,program:c,startPosition:u}=t,_=nht(a,u,!0,c);if(!_||qF.isRefactorErrorInfo(_))return;let{references:f,declaration:y,replacement:g}=_;return{edits:ki.ChangeTracker.with(t,T=>{for(let C of f){let O=Ic(g)&&ct(C)&&V1(C.parent);O&&vL(O)&&!xA(O.parent.parent)?dpr(T,a,O,g):T.replaceNode(a,C,_pr(C,g))}T.delete(a,y)})}}});function nht(t,n,a,c){var u,_;let f=c.getTypeChecker(),y=Vh(t,n),g=y.parent;if(ct(y)){if(pH(g)&&dU(g)&&ct(g.name)){if(((u=f.getMergedSymbol(g.symbol).declarations)==null?void 0:u.length)!==1)return{error:As(x.Variables_with_multiple_declarations_cannot_be_inlined)};if(iht(g))return;let k=oht(g,f,t);return k&&{references:k,declaration:g,replacement:g.initializer}}if(a){let k=f.resolveName(y.text,y,111551,!1);if(k=k&&f.getMergedSymbol(k),((_=k?.declarations)==null?void 0:_.length)!==1)return{error:As(x.Variables_with_multiple_declarations_cannot_be_inlined)};let T=k.declarations[0];if(!pH(T)||!dU(T)||!ct(T.name)||iht(T))return;let C=oht(T,f,t);return C&&{references:C,declaration:T,replacement:T.initializer}}return{error:As(x.Could_not_find_variable_to_inline)}}}function iht(t){let n=Ba(t.parent.parent,h_);return Pt(n.modifiers,fF)}function oht(t,n,a){let c=[],u=Pu.Core.eachSymbolReferenceInFile(t.name,n,a,_=>{if(Pu.isWriteAccessForReference(_)&&!im(_.parent)||Cm(_.parent)||Xu(_.parent)||gP(_.parent)||Ao(t,_.pos))return!0;c.push(_)});return c.length===0||u?void 0:c}function _pr(t,n){n=Il(n);let{parent:a}=t;return Vt(a)&&(wU(n)fpr(n.file,n.program,c,_,n.host,n,n.preferences)),renameFilename:void 0,renameLocation:void 0}}});function fpr(t,n,a,c,u,_,f){let y=n.getTypeChecker(),g=yae(t,a.all,y),k=L5e(t,n,u,a),T=uae(k,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,n,u),C=Im.createImportAdder(t,_.program,_.preferences,_.host),O=Im.createImportAdder(T,_.program,_.preferences,_.host);P5e(t,T,g,c,a,n,u,f,O,C),N5e(n,c,t.fileName,k,UT(u))}var mpr={},H5e="Convert overload list to single signature",aht=As(x.Convert_overload_list_to_single_signature),sht={name:H5e,description:aht,kind:"refactor.rewrite.function.overloadList"};Vx(H5e,{kinds:[sht.kind],getEditsForAction:gpr,getAvailableActions:hpr});function hpr(t){let{file:n,startPosition:a,program:c}=t;return lht(n,a,c)?[{name:H5e,description:aht,actions:[sht]}]:j}function gpr(t){let{file:n,startPosition:a,program:c}=t,u=lht(n,a,c);if(!u)return;let _=c.getTypeChecker(),f=u[u.length-1],y=f;switch(f.kind){case 174:{y=W.updateMethodSignature(f,f.modifiers,f.name,f.questionToken,f.typeParameters,k(u),f.type);break}case 175:{y=W.updateMethodDeclaration(f,f.modifiers,f.asteriskToken,f.name,f.questionToken,f.typeParameters,k(u),f.type,f.body);break}case 180:{y=W.updateCallSignature(f,f.typeParameters,k(u),f.type);break}case 177:{y=W.updateConstructorDeclaration(f,f.modifiers,k(u),f.body);break}case 181:{y=W.updateConstructSignature(f,f.typeParameters,k(u),f.type);break}case 263:{y=W.updateFunctionDeclaration(f,f.modifiers,f.asteriskToken,f.name,f.typeParameters,k(u),f.type,f.body);break}default:return $.failBadSyntaxKind(f,"Unhandled signature kind in overload list conversion refactoring")}if(y===f)return;return{renameFilename:void 0,renameLocation:void 0,edits:ki.ChangeTracker.with(t,O=>{O.replaceNodeRange(n,u[0],u[u.length-1],y)})};function k(O){let F=O[O.length-1];return lu(F)&&F.body&&(O=O.slice(0,O.length-1)),W.createNodeArray([W.createParameterDeclaration(void 0,W.createToken(26),"args",void 0,W.createUnionTypeNode(Cr(O,T)))])}function T(O){let F=Cr(O.parameters,C);return Ai(W.createTupleTypeNode(F),Pt(F,M=>!!te(_L(M)))?0:1)}function C(O){$.assert(ct(O.name));let F=qt(W.createNamedTupleMember(O.dotDotDotToken,O.name,O.questionToken,O.type||W.createKeywordTypeNode(133)),O),M=O.symbol&&O.symbol.getDocumentationComment(_);if(M){let U=_Q(M);U.length&&SA(F,[{text:`* -${U.split(` -`).map(J=>` * ${J}`).join(` -`)} - `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return F}}function cht(t){switch(t.kind){case 174:case 175:case 180:case 177:case 181:case 263:return!0}return!1}function lht(t,n,a){let c=la(t,n),u=fn(c,cht);if(!u||lu(u)&&u.body&&HL(u.body,n))return;let _=a.getTypeChecker(),f=u.symbol;if(!f)return;let y=f.declarations;if(te(y)<=1||!ht(y,O=>Pn(O)===t)||!cht(y[0]))return;let g=y[0].kind;if(!ht(y,O=>O.kind===g))return;let k=y;if(Pt(k,O=>!!O.typeParameters||Pt(O.parameters,F=>!!F.modifiers||!ct(F.name))))return;let T=Wn(k,O=>_.getSignatureFromDeclaration(O));if(te(T)!==te(y))return;let C=_.getReturnTypeOfSignature(T[0]);if(ht(T,O=>_.getReturnTypeOfSignature(O)===C))return k}var K5e="Add or remove braces in an arrow function",uht=As(x.Add_or_remove_braces_in_an_arrow_function),sSe={name:"Add braces to arrow function",description:As(x.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},bae={name:"Remove braces from arrow function",description:As(x.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};Vx(K5e,{kinds:[bae.kind],getEditsForAction:vpr,getAvailableActions:ypr});function ypr(t){let{file:n,startPosition:a,triggerReason:c}=t,u=pht(n,a,c==="invoked");return u?XT(u)?t.preferences.provideRefactorNotApplicableReason?[{name:K5e,description:uht,actions:[{...sSe,notApplicableReason:u.error},{...bae,notApplicableReason:u.error}]}]:j:[{name:K5e,description:uht,actions:[u.addBraces?sSe:bae]}]:j}function vpr(t,n){let{file:a,startPosition:c}=t,u=pht(a,c);$.assert(u&&!XT(u),"Expected applicable refactor info");let{expression:_,returnStatement:f,func:y}=u,g;if(n===sSe.name){let T=W.createReturnStatement(_);g=W.createBlock([T],!0),eM(_,T,a,3,!0)}else if(n===bae.name&&f){let T=_||W.createVoidZero();g=Zoe(T)?W.createParenthesizedExpression(T):T,YK(f,g,a,3,!1),eM(f,g,a,3,!1),tq(f,g,a,3,!1)}else $.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:ki.ChangeTracker.with(t,T=>{T.replaceNode(a,y.body,g)})}}function pht(t,n,a=!0,c){let u=la(t,n),_=My(u);if(!_)return{error:As(x.Could_not_find_a_containing_arrow_function)};if(!Iu(_))return{error:As(x.Containing_function_is_not_an_arrow_function)};if(!(!zh(_,u)||zh(_.body,u)&&!a)){if(zA(sSe.kind,c)&&Vt(_.body))return{func:_,addBraces:!0,expression:_.body};if(zA(bae.kind,c)&&Vs(_.body)&&_.body.statements.length===1){let f=To(_.body.statements);if(gy(f)){let y=f.expression&&Lc(aL(f.expression,!1))?W.createParenthesizedExpression(f.expression):f.expression;return{func:_,addBraces:!1,expression:y,returnStatement:f}}}}}var Spr={},_ht="Convert arrow function or function expression",bpr=As(x.Convert_arrow_function_or_function_expression),xae={name:"Convert to anonymous function",description:As(x.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},Tae={name:"Convert to named function",description:As(x.Convert_to_named_function),kind:"refactor.rewrite.function.named"},Eae={name:"Convert to arrow function",description:As(x.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};Vx(_ht,{kinds:[xae.kind,Tae.kind,Eae.kind],getEditsForAction:Tpr,getAvailableActions:xpr});function xpr(t){let{file:n,startPosition:a,program:c,kind:u}=t,_=fht(n,a,c);if(!_)return j;let{selectedVariableDeclaration:f,func:y}=_,g=[],k=[];if(zA(Tae.kind,u)){let T=f||Iu(y)&&Oo(y.parent)?void 0:As(x.Could_not_convert_to_named_function);T?k.push({...Tae,notApplicableReason:T}):g.push(Tae)}if(zA(xae.kind,u)){let T=!f&&Iu(y)?void 0:As(x.Could_not_convert_to_anonymous_function);T?k.push({...xae,notApplicableReason:T}):g.push(xae)}if(zA(Eae.kind,u)){let T=bu(y)?void 0:As(x.Could_not_convert_to_arrow_function);T?k.push({...Eae,notApplicableReason:T}):g.push(Eae)}return[{name:_ht,description:bpr,actions:g.length===0&&t.preferences.provideRefactorNotApplicableReason?k:g}]}function Tpr(t,n){let{file:a,startPosition:c,program:u}=t,_=fht(a,c,u);if(!_)return;let{func:f}=_,y=[];switch(n){case xae.name:y.push(...Dpr(t,f));break;case Tae.name:let g=Cpr(f);if(!g)return;y.push(...Apr(t,f,g));break;case Eae.name:if(!bu(f))return;y.push(...wpr(t,f));break;default:return $.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:y}}function dht(t){let n=!1;return t.forEachChild(function a(c){if(GL(c)){n=!0;return}!Co(c)&&!i_(c)&&!bu(c)&&Is(c,a)}),n}function fht(t,n,a){let c=la(t,n),u=a.getTypeChecker(),_=kpr(t,u,c.parent);if(_&&!dht(_.body)&&!u.containsArgumentsReference(_))return{selectedVariableDeclaration:!0,func:_};let f=My(c);if(f&&(bu(f)||Iu(f))&&!zh(f.body,c)&&!dht(f.body)&&!u.containsArgumentsReference(f))return bu(f)&&hht(t,u,f)?void 0:{selectedVariableDeclaration:!1,func:f}}function Epr(t){return Oo(t)||Df(t)&&t.declarations.length===1}function kpr(t,n,a){if(!Epr(a))return;let u=(Oo(a)?a:To(a.declarations)).initializer;if(u&&(Iu(u)||bu(u)&&!hht(t,n,u)))return u}function mht(t){if(Vt(t)){let n=W.createReturnStatement(t),a=t.getSourceFile();return qt(n,t),$g(n),YK(t,n,a,void 0,!0),W.createBlock([n],!0)}else return t}function Cpr(t){let n=t.parent;if(!Oo(n)||!dU(n))return;let a=n.parent,c=a.parent;if(!(!Df(a)||!h_(c)||!ct(n.name)))return{variableDeclaration:n,variableDeclarationList:a,statement:c,name:n.name}}function Dpr(t,n){let{file:a}=t,c=mht(n.body),u=W.createFunctionExpression(n.modifiers,n.asteriskToken,void 0,n.typeParameters,n.parameters,n.type,c);return ki.ChangeTracker.with(t,_=>_.replaceNode(a,n,u))}function Apr(t,n,a){let{file:c}=t,u=mht(n.body),{variableDeclaration:_,variableDeclarationList:f,statement:y,name:g}=a;gge(y);let k=Ra(_)&32|tm(n),T=W.createModifiersFromModifierFlags(k),C=W.createFunctionDeclaration(te(T)?T:void 0,n.asteriskToken,g,n.typeParameters,n.parameters,n.type,u);return f.declarations.length===1?ki.ChangeTracker.with(t,O=>O.replaceNode(c,y,C)):ki.ChangeTracker.with(t,O=>{O.delete(c,_),O.insertNodeAfter(c,y,C)})}function wpr(t,n){let{file:a}=t,u=n.body.statements[0],_;Ipr(n.body,u)?(_=u.expression,$g(_),E3(u,_)):_=n.body;let f=W.createArrowFunction(n.modifiers,n.typeParameters,n.parameters,n.type,W.createToken(39),_);return ki.ChangeTracker.with(t,y=>y.replaceNode(a,n,f))}function Ipr(t,n){return t.statements.length===1&&gy(n)&&!!n.expression}function hht(t,n,a){return!!a.name&&Pu.Core.isSymbolReferencedInFile(a.name,n,t)}var Ppr={},cSe="Convert parameters to destructured object",Npr=1,ght=As(x.Convert_parameters_to_destructured_object),yht={name:cSe,description:ght,kind:"refactor.rewrite.parameters.toDestructured"};Vx(cSe,{kinds:[yht.kind],getEditsForAction:Fpr,getAvailableActions:Opr});function Opr(t){let{file:n,startPosition:a}=t;return ph(n)||!bht(n,a,t.program.getTypeChecker())?j:[{name:cSe,description:ght,actions:[yht]}]}function Fpr(t,n){$.assert(n===cSe,"Unexpected action name");let{file:a,startPosition:c,program:u,cancellationToken:_,host:f}=t,y=bht(a,c,u.getTypeChecker());if(!y||!_)return;let g=Lpr(y,u,_);return g.valid?{renameFilename:void 0,renameLocation:void 0,edits:ki.ChangeTracker.with(t,T=>Rpr(a,u,f,T,y,g))}:{edits:[]}}function Rpr(t,n,a,c,u,_){let f=_.signature,y=Cr(kht(u,n,a),T=>Il(T));if(f){let T=Cr(kht(f,n,a),C=>Il(C));k(f,T)}k(u,y);let g=O1(_.functionCalls,(T,C)=>Br(T.pos,C.pos));for(let T of g)if(T.arguments&&T.arguments.length){let C=Il(Wpr(u,T.arguments),!0);c.replaceNodeRange(Pn(T),To(T.arguments),Sn(T.arguments),C,{leadingTriviaOption:ki.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ki.TrailingTriviaOption.Include})}function k(T,C){c.replaceNodeRangeWithNodes(t,To(T.parameters),Sn(T.parameters),C,{joiner:", ",indentation:0,leadingTriviaOption:ki.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ki.TrailingTriviaOption.Include})}}function Lpr(t,n,a){let c=Hpr(t),u=kp(t)?Gpr(t):[],_=rf([...c,...u],Ng),f=n.getTypeChecker(),y=an(_,C=>Pu.getReferenceEntriesForNode(-1,C,n,n.getSourceFiles(),a)),g=k(y);return ht(g.declarations,C=>un(_,C))||(g.valid=!1),g;function k(C){let O={accessExpressions:[],typeUsages:[]},F={functionCalls:[],declarations:[],classReferences:O,valid:!0},M=Cr(c,T),U=Cr(u,T),J=kp(t),G=Cr(c,Z=>Q5e(Z,f));for(let Z of C){if(Z.kind===Pu.EntryKind.Span){F.valid=!1;continue}if(un(G,T(Z.node))){if($pr(Z.node.parent)){F.signature=Z.node.parent;continue}let re=Sht(Z);if(re){F.functionCalls.push(re);continue}}let Q=Q5e(Z.node,f);if(Q&&un(G,Q)){let re=Z5e(Z);if(re){F.declarations.push(re);continue}}if(un(M,T(Z.node))||Wz(Z.node)){if(vht(Z))continue;let ae=Z5e(Z);if(ae){F.declarations.push(ae);continue}let _e=Sht(Z);if(_e){F.functionCalls.push(_e);continue}}if(J&&un(U,T(Z.node))){if(vht(Z))continue;let ae=Z5e(Z);if(ae){F.declarations.push(ae);continue}let _e=Mpr(Z);if(_e){O.accessExpressions.push(_e);continue}if(ed(t.parent)){let me=jpr(Z);if(me){O.typeUsages.push(me);continue}}}F.valid=!1}return F}function T(C){let O=f.getSymbolAtLocation(C);return O&&vve(O,f)}}function Q5e(t,n){let a=dQ(t);if(a){let c=n.getContextualTypeForObjectLiteralElement(a),u=c?.getSymbol();if(u&&!(Fp(u)&6))return u}}function vht(t){let n=t.node;if(Xm(n.parent)||H1(n.parent)||gd(n.parent)||zx(n.parent)||Cm(n.parent)||Xu(n.parent))return n}function Z5e(t){if(Vd(t.node.parent))return t.node}function Sht(t){if(t.node.parent){let n=t.node,a=n.parent;switch(a.kind){case 214:case 215:let c=Ci(a,mS);if(c&&c.expression===n)return c;break;case 212:let u=Ci(a,no);if(u&&u.parent&&u.name===n){let f=Ci(u.parent,mS);if(f&&f.expression===u)return f}break;case 213:let _=Ci(a,mu);if(_&&_.parent&&_.argumentExpression===n){let f=Ci(_.parent,mS);if(f&&f.expression===_)return f}break}}}function Mpr(t){if(t.node.parent){let n=t.node,a=n.parent;switch(a.kind){case 212:let c=Ci(a,no);if(c&&c.expression===n)return c;break;case 213:let u=Ci(a,mu);if(u&&u.expression===n)return u;break}}}function jpr(t){let n=t.node;if(x3(n)===2||Hre(n.parent))return n}function bht(t,n,a){let c=KL(t,n),u=T6e(c);if(!Bpr(c)&&u&&Upr(u,a)&&zh(u,c)&&!(u.body&&zh(u.body,c)))return u}function Bpr(t){let n=fn(t,LR);if(n){let a=fn(n,c=>!LR(c));return!!a&&lu(a)}return!1}function $pr(t){return G1(t)&&(Af(t.parent)||fh(t.parent))}function Upr(t,n){var a;if(!zpr(t.parameters,n))return!1;switch(t.kind){case 263:return xht(t)&&kae(t,n);case 175:if(Lc(t.parent)){let c=Q5e(t.name,n);return((a=c?.declarations)==null?void 0:a.length)===1&&kae(t,n)}return kae(t,n);case 177:return ed(t.parent)?xht(t.parent)&&kae(t,n):Tht(t.parent.parent)&&kae(t,n);case 219:case 220:return Tht(t.parent)}return!1}function kae(t,n){return!!t.body&&!n.isImplementationOfOverload(t)}function xht(t){return t.name?!0:!!ZL(t,90)}function zpr(t,n){return Jpr(t)>=Npr&&ht(t,a=>qpr(a,n))}function qpr(t,n){if(Sb(t)){let a=n.getTypeAtLocation(t);if(!n.isArrayType(a)&&!n.isTupleType(a))return!1}return!t.modifiers&&ct(t.name)}function Tht(t){return Oo(t)&&zR(t)&&ct(t.name)&&!t.type}function X5e(t){return t.length>0&&GL(t[0].name)}function Jpr(t){return X5e(t)?t.length-1:t.length}function Eht(t){return X5e(t)&&(t=W.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function Vpr(t,n){return ct(n)&&g0(n)===t?W.createShorthandPropertyAssignment(t):W.createPropertyAssignment(t,n)}function Wpr(t,n){let a=Eht(t.parameters),c=Sb(Sn(a)),u=c?n.slice(0,a.length-1):n,_=Cr(u,(y,g)=>{let k=lSe(a[g]),T=Vpr(k,y);return $g(T.name),td(T)&&$g(T.initializer),E3(y,T),T});if(c&&n.length>=a.length){let y=n.slice(a.length-1),g=W.createPropertyAssignment(lSe(Sn(a)),W.createArrayLiteralExpression(y));_.push(g)}return W.createObjectLiteralExpression(_,!1)}function kht(t,n,a){let c=n.getTypeChecker(),u=Eht(t.parameters),_=Cr(u,T),f=W.createObjectBindingPattern(_),y=C(u),g;ht(u,M)&&(g=W.createObjectLiteralExpression());let k=W.createParameterDeclaration(void 0,void 0,f,void 0,y,g);if(X5e(t.parameters)){let U=t.parameters[0],J=W.createParameterDeclaration(void 0,void 0,U.name,void 0,U.type);return $g(J.name),E3(U.name,J.name),U.type&&($g(J.type),E3(U.type,J.type)),W.createNodeArray([J,k])}return W.createNodeArray([k]);function T(U){let J=W.createBindingElement(void 0,void 0,lSe(U),Sb(U)&&M(U)?W.createArrayLiteralExpression():U.initializer);return $g(J),U.initializer&&J.initializer&&E3(U.initializer,J.initializer),J}function C(U){let J=Cr(U,O);return CS(W.createTypeLiteralNode(J),1)}function O(U){let J=U.type;!J&&(U.initializer||Sb(U))&&(J=F(U));let G=W.createPropertySignature(void 0,lSe(U),M(U)?W.createToken(58):U.questionToken,J);return $g(G),E3(U.name,G.name),U.type&&G.type&&E3(U.type,G.type),G}function F(U){let J=c.getTypeAtLocation(U);return nq(J,U,n,a)}function M(U){if(Sb(U)){let J=c.getTypeAtLocation(U);return!c.isTupleType(J)}return c.isOptionalParameter(U)}}function lSe(t){return g0(t.name)}function Gpr(t){switch(t.parent.kind){case 264:let n=t.parent;return n.name?[n.name]:[$.checkDefined(ZL(n,90),"Nameless class declaration should be a default export")];case 232:let c=t.parent,u=t.parent.parent,_=c.name;return _?[_,u.name]:[u.name]}}function Hpr(t){switch(t.kind){case 263:return t.name?[t.name]:[$.checkDefined(ZL(t,90),"Nameless function declaration should be a default export")];case 175:return[t.name];case 177:let a=$.checkDefined(Kl(t,137,t.getSourceFile()),"Constructor declaration should have constructor keyword");return t.parent.kind===232?[t.parent.parent.name,a]:[a];case 220:return[t.parent.name];case 219:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return $.assertNever(t,`Unexpected function declaration kind ${t.kind}`)}}var Kpr={},Y5e="Convert to template string",e9e=As(x.Convert_to_template_string),t9e={name:Y5e,description:e9e,kind:"refactor.rewrite.string"};Vx(Y5e,{kinds:[t9e.kind],getEditsForAction:Zpr,getAvailableActions:Qpr});function Qpr(t){let{file:n,startPosition:a}=t,c=Cht(n,a),u=r9e(c),_=Ic(u),f={name:Y5e,description:e9e,actions:[]};return _&&t.triggerReason!=="invoked"?j:Tb(u)&&(_||wi(u)&&n9e(u).isValidConcatenation)?(f.actions.push(t9e),[f]):t.preferences.provideRefactorNotApplicableReason?(f.actions.push({...t9e,notApplicableReason:As(x.Can_only_convert_string_concatenations_and_string_literals)}),[f]):j}function Cht(t,n){let a=la(t,n),c=r9e(a);return!n9e(c).isValidConcatenation&&mh(c.parent)&&wi(c.parent.parent)?c.parent.parent:a}function Zpr(t,n){let{file:a,startPosition:c}=t,u=Cht(a,c);return n===e9e?{edits:Xpr(t,u)}:$.fail("invalid action")}function Xpr(t,n){let a=r9e(n),c=t.file,u=n_r(n9e(a),c),_=hb(c.text,a.end);if(_){let f=_[_.length-1],y={pos:_[0].pos,end:f.end};return ki.ChangeTracker.with(t,g=>{g.deleteRange(c,y),g.replaceNode(c,a,u)})}else return ki.ChangeTracker.with(t,f=>f.replaceNode(c,a,u))}function Ypr(t){return!(t.operatorToken.kind===64||t.operatorToken.kind===65)}function r9e(t){return fn(t.parent,a=>{switch(a.kind){case 212:case 213:return!1;case 229:case 227:return!(wi(a.parent)&&Ypr(a.parent));default:return"quit"}})||t}function n9e(t){let n=f=>{if(!wi(f))return{nodes:[f],operators:[],validOperators:!0,hasString:Ic(f)||r3(f)};let{nodes:y,operators:g,hasString:k,validOperators:T}=n(f.left);if(!(k||Ic(f.right)||Jne(f.right)))return{nodes:[f],operators:[],hasString:!1,validOperators:!0};let C=f.operatorToken.kind===40,O=T&&C;return y.push(f.right),g.push(f.operatorToken),{nodes:y,operators:g,hasString:!0,validOperators:O}},{nodes:a,operators:c,validOperators:u,hasString:_}=n(t);return{nodes:a,operators:c,isValidConcatenation:u&&_}}var e_r=(t,n)=>(a,c)=>{a(c,u)=>{for(;c.length>0;){let _=c.shift();tq(t[_],u,n,3,!1),a(_,u)}};function r_r(t){return t.replace(/\\.|[$`]/g,n=>n[0]==="\\"?n:"\\"+n)}function Dht(t){let n=dF(t)||Cge(t)?-2:-1;return Sp(t).slice(1,n)}function Aht(t,n){let a=[],c="",u="";for(;t{wht(Q);let ae=re===O.templateSpans.length-1,_e=Q.literal.text+(ae?M:""),me=Dht(Q.literal)+(ae?U:"");return W.createTemplateSpan(Q.expression,G&&ae?W.createTemplateTail(_e,me):W.createTemplateMiddle(_e,me))});k.push(...Z)}else{let Z=G?W.createTemplateTail(M,U):W.createTemplateMiddle(M,U);u(J,Z),k.push(W.createTemplateSpan(O,Z))}}return W.createTemplateExpression(T,k)}function wht(t){let n=t.getSourceFile();tq(t,t.expression,n,3,!1),YK(t.expression,t.expression,n,3,!1)}function i_r(t){return mh(t)&&(wht(t),t=t.expression),t}var o_r={},uSe="Convert to optional chain expression",i9e=As(x.Convert_to_optional_chain_expression),o9e={name:uSe,description:i9e,kind:"refactor.rewrite.expression.optionalChain"};Vx(uSe,{kinds:[o9e.kind],getEditsForAction:s_r,getAvailableActions:a_r});function a_r(t){let n=Iht(t,t.triggerReason==="invoked");return n?XT(n)?t.preferences.provideRefactorNotApplicableReason?[{name:uSe,description:i9e,actions:[{...o9e,notApplicableReason:n.error}]}]:j:[{name:uSe,description:i9e,actions:[o9e]}]:j}function s_r(t,n){let a=Iht(t);return $.assert(a&&!XT(a),"Expected applicable refactor info"),{edits:ki.ChangeTracker.with(t,u=>m_r(t.file,t.program.getTypeChecker(),u,a,n)),renameFilename:void 0,renameLocation:void 0}}function pSe(t){return wi(t)||a3(t)}function c_r(t){return af(t)||gy(t)||h_(t)}function _Se(t){return pSe(t)||c_r(t)}function Iht(t,n=!0){let{file:a,program:c}=t,u=$F(t),_=u.length===0;if(_&&!n)return;let f=la(a,u.start),y=Hz(a,u.start+u.length),g=Hu(f.pos,y&&y.end>=f.pos?y.getEnd():f.getEnd()),k=_?d_r(f):__r(f,g),T=k&&_Se(k)?f_r(k):void 0;if(!T)return{error:As(x.Could_not_find_convertible_access_expression)};let C=c.getTypeChecker();return a3(T)?l_r(T,C):u_r(T)}function l_r(t,n){let a=t.condition,c=s9e(t.whenTrue);if(!c||n.isNullableType(n.getTypeAtLocation(c)))return{error:As(x.Could_not_find_convertible_access_expression)};if((no(a)||ct(a))&&a9e(a,c.expression))return{finalExpression:c,occurrences:[a],expression:t};if(wi(a)){let u=Pht(c.expression,a);return u?{finalExpression:c,occurrences:u,expression:t}:{error:As(x.Could_not_find_matching_access_expressions)}}}function u_r(t){if(t.operatorToken.kind!==56)return{error:As(x.Can_only_convert_logical_AND_access_chains)};let n=s9e(t.right);if(!n)return{error:As(x.Could_not_find_convertible_access_expression)};let a=Pht(n.expression,t.left);return a?{finalExpression:n,occurrences:a,expression:t}:{error:As(x.Could_not_find_matching_access_expressions)}}function Pht(t,n){let a=[];for(;wi(n)&&n.operatorToken.kind===56;){let u=a9e(bl(t),bl(n.right));if(!u)break;a.push(u),t=u,n=n.left}let c=a9e(t,n);return c&&a.push(c),a.length>0?a:void 0}function a9e(t,n){if(!(!ct(n)&&!no(n)&&!mu(n)))return p_r(t,n)?n:void 0}function p_r(t,n){for(;(Js(t)||no(t)||mu(t))&&uQ(t)!==uQ(n);)t=t.expression;for(;no(t)&&no(n)||mu(t)&&mu(n);){if(uQ(t)!==uQ(n))return!1;t=t.expression,n=n.expression}return ct(t)&&ct(n)&&t.getText()===n.getText()}function uQ(t){if(ct(t)||jy(t))return t.getText();if(no(t))return uQ(t.name);if(mu(t))return uQ(t.argumentExpression)}function __r(t,n){for(;t.parent;){if(_Se(t)&&n.length!==0&&t.end>=n.start+n.length)return t;t=t.parent}}function d_r(t){for(;t.parent;){if(_Se(t)&&!_Se(t.parent))return t;t=t.parent}}function f_r(t){if(pSe(t))return t;if(h_(t)){let n=GO(t),a=n?.initializer;return a&&pSe(a)?a:void 0}return t.expression&&pSe(t.expression)?t.expression:void 0}function s9e(t){if(t=bl(t),wi(t))return s9e(t.left);if((no(t)||mu(t)||Js(t))&&!xm(t))return t}function Nht(t,n,a){if(no(n)||mu(n)||Js(n)){let c=Nht(t,n.expression,a),u=a.length>0?a[a.length-1]:void 0,_=u?.getText()===n.expression.getText();if(_&&a.pop(),Js(n))return _?W.createCallChain(c,W.createToken(29),n.typeArguments,n.arguments):W.createCallChain(c,n.questionDotToken,n.typeArguments,n.arguments);if(no(n))return _?W.createPropertyAccessChain(c,W.createToken(29),n.name):W.createPropertyAccessChain(c,n.questionDotToken,n.name);if(mu(n))return _?W.createElementAccessChain(c,W.createToken(29),n.argumentExpression):W.createElementAccessChain(c,n.questionDotToken,n.argumentExpression)}return n}function m_r(t,n,a,c,u){let{finalExpression:_,occurrences:f,expression:y}=c,g=f[f.length-1],k=Nht(n,_,f);k&&(no(k)||mu(k)||Js(k))&&(wi(y)?a.replaceNodeRange(t,g,_,k):a3(y)&&a.replaceNode(t,y,W.createBinaryExpression(k,W.createToken(61),y.whenFalse)))}var Oht={};d(Oht,{Messages:()=>Vf,RangeFacts:()=>Lht,getRangeToExtract:()=>c9e,getRefactorActionsToExtractSymbol:()=>Fht,getRefactorEditsToExtractSymbol:()=>Rht});var sq="Extract Symbol",cq={name:"Extract Constant",description:As(x.Extract_constant),kind:"refactor.extract.constant"},lq={name:"Extract Function",description:As(x.Extract_function),kind:"refactor.extract.function"};Vx(sq,{kinds:[cq.kind,lq.kind],getEditsForAction:Rht,getAvailableActions:Fht});function Fht(t){let n=t.kind,a=c9e(t.file,$F(t),t.triggerReason==="invoked"),c=a.targetRange;if(c===void 0){if(!a.errors||a.errors.length===0||!t.preferences.provideRefactorNotApplicableReason)return j;let U=[];return zA(lq.kind,n)&&U.push({name:sq,description:lq.description,actions:[{...lq,notApplicableReason:M(a.errors)}]}),zA(cq.kind,n)&&U.push({name:sq,description:cq.description,actions:[{...cq,notApplicableReason:M(a.errors)}]}),U}let{affectedTextRange:u,extractions:_}=b_r(c,t);if(_===void 0)return j;let f=[],y=new Map,g,k=[],T=new Map,C,O=0;for(let{functionExtraction:U,constantExtraction:J}of _){if(zA(lq.kind,n)){let G=U.description;U.errors.length===0?y.has(G)||(y.set(G,!0),f.push({description:G,name:`function_scope_${O}`,kind:lq.kind,range:{start:{line:qs(t.file,u.pos).line,offset:qs(t.file,u.pos).character},end:{line:qs(t.file,u.end).line,offset:qs(t.file,u.end).character}}})):g||(g={description:G,name:`function_scope_${O}`,notApplicableReason:M(U.errors),kind:lq.kind})}if(zA(cq.kind,n)){let G=J.description;J.errors.length===0?T.has(G)||(T.set(G,!0),k.push({description:G,name:`constant_scope_${O}`,kind:cq.kind,range:{start:{line:qs(t.file,u.pos).line,offset:qs(t.file,u.pos).character},end:{line:qs(t.file,u.end).line,offset:qs(t.file,u.end).character}}})):C||(C={description:G,name:`constant_scope_${O}`,notApplicableReason:M(J.errors),kind:cq.kind})}O++}let F=[];return f.length?F.push({name:sq,description:As(x.Extract_function),actions:f}):t.preferences.provideRefactorNotApplicableReason&&g&&F.push({name:sq,description:As(x.Extract_function),actions:[g]}),k.length?F.push({name:sq,description:As(x.Extract_constant),actions:k}):t.preferences.provideRefactorNotApplicableReason&&C&&F.push({name:sq,description:As(x.Extract_constant),actions:[C]}),F.length?F:j;function M(U){let J=U[0].messageText;return typeof J!="string"&&(J=J.messageText),J}}function Rht(t,n){let c=c9e(t.file,$F(t)).targetRange,u=/^function_scope_(\d+)$/.exec(n);if(u){let f=+u[1];return $.assert(isFinite(f),"Expected to parse a finite number from the function scope index"),v_r(c,t,f)}let _=/^constant_scope_(\d+)$/.exec(n);if(_){let f=+_[1];return $.assert(isFinite(f),"Expected to parse a finite number from the constant scope index"),S_r(c,t,f)}$.fail("Unrecognized action name")}var Vf;(t=>{function n(a){return{message:a,code:0,category:3,key:a}}t.cannotExtractRange=n("Cannot extract range."),t.cannotExtractImport=n("Cannot extract import statement."),t.cannotExtractSuper=n("Cannot extract super call."),t.cannotExtractJSDoc=n("Cannot extract JSDoc."),t.cannotExtractEmpty=n("Cannot extract empty range."),t.expressionExpected=n("expression expected."),t.uselessConstantType=n("No reason to extract constant of type."),t.statementOrExpressionExpected=n("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=n("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=n("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=n("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=n("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=n("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=n("Function will not visible in the new scope."),t.cannotExtractIdentifier=n("Select more than a single identifier."),t.cannotExtractExportedEntity=n("Cannot extract exported declaration"),t.cannotWriteInExpression=n("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=n("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=n("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=n("Cannot access variables from nested scopes"),t.cannotExtractToJSClass=n("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=n("Cannot extract constant to an arrow function without a block"),t.cannotExtractFunctionsContainingThisToMethod=n("Cannot extract functions containing this to method")})(Vf||(Vf={}));var Lht=(t=>(t[t.None=0]="None",t[t.HasReturn=1]="HasReturn",t[t.IsGenerator=2]="IsGenerator",t[t.IsAsyncFunction=4]="IsAsyncFunction",t[t.UsesThis=8]="UsesThis",t[t.UsesThisInFunction=16]="UsesThisInFunction",t[t.InStaticRegion=32]="InStaticRegion",t))(Lht||{});function c9e(t,n,a=!0){let{length:c}=n;if(c===0&&!a)return{errors:[md(t,n.start,c,Vf.cannotExtractEmpty)]};let u=c===0&&a,_=o7e(t,n.start),f=Hz(t,Xn(n)),y=_&&f&&a?h_r(_,f,t):n,g=u?U_r(_):QK(_,t,y),k=u?g:QK(f,t,y),T=0,C;if(!g||!k)return{errors:[md(t,n.start,c,Vf.cannotExtractRange)]};if(g.flags&16777216)return{errors:[md(t,n.start,c,Vf.cannotExtractJSDoc)]};if(g.parent!==k.parent)return{errors:[md(t,n.start,c,Vf.cannotExtractRange)]};if(g!==k){if(!UF(g.parent))return{errors:[md(t,n.start,c,Vf.cannotExtractRange)]};let Z=[];for(let Q of g.parent.statements){if(Q===g||Z.length){let re=G(Q);if(re)return{errors:re};Z.push(Q)}if(Q===k)break}return Z.length?{targetRange:{range:Z,facts:T,thisNode:C}}:{errors:[md(t,n.start,c,Vf.cannotExtractRange)]}}if(gy(g)&&!g.expression)return{errors:[md(t,n.start,c,Vf.cannotExtractRange)]};let O=M(g),F=U(O)||G(O);if(F)return{errors:F};return{targetRange:{range:g_r(O),facts:T,thisNode:C}};function M(Z){if(gy(Z)){if(Z.expression)return Z.expression}else if(h_(Z)||Df(Z)){let Q=h_(Z)?Z.declarationList.declarations:Z.declarations,re=0,ae;for(let _e of Q)_e.initializer&&(re++,ae=_e.initializer);if(re===1)return ae}else if(Oo(Z)&&Z.initializer)return Z.initializer;return Z}function U(Z){if(ct(af(Z)?Z.expression:Z))return[xi(Z,Vf.cannotExtractIdentifier)]}function J(Z,Q){let re=Z;for(;re!==Q;){if(re.kind===173){oc(re)&&(T|=32);break}else if(re.kind===170){My(re).kind===177&&(T|=32);break}else re.kind===175&&oc(re)&&(T|=32);re=re.parent}}function G(Z){let Q;if((Oe=>{Oe[Oe.None=0]="None",Oe[Oe.Break=1]="Break",Oe[Oe.Continue=2]="Continue",Oe[Oe.Return=4]="Return"})(Q||(Q={})),$.assert(Z.pos<=Z.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),$.assert(!bv(Z.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!fa(Z)&&!(Tb(Z)&&Mht(Z))&&!d9e(Z))return[xi(Z,Vf.statementOrExpressionExpected)];if(Z.flags&33554432)return[xi(Z,Vf.cannotExtractAmbientBlock)];let re=Cf(Z);re&&J(Z,re);let ae,_e=4,me;if(le(Z),T&8){let Oe=Hm(Z,!1,!1);(Oe.kind===263||Oe.kind===175&&Oe.parent.kind===211||Oe.kind===219)&&(T|=16)}return ae;function le(Oe){if(ae)return!0;if(Vd(Oe)){let ue=Oe.kind===261?Oe.parent.parent:Oe;if(ko(ue,32))return(ae||(ae=[])).push(xi(Oe,Vf.cannotExtractExportedEntity)),!0}switch(Oe.kind){case 273:return(ae||(ae=[])).push(xi(Oe,Vf.cannotExtractImport)),!0;case 278:return(ae||(ae=[])).push(xi(Oe,Vf.cannotExtractExportedEntity)),!0;case 108:if(Oe.parent.kind===214){let ue=Cf(Oe);if(ue===void 0||ue.pos=n.start+n.length)return(ae||(ae=[])).push(xi(Oe,Vf.cannotExtractSuper)),!0}else T|=8,C=Oe;break;case 220:Is(Oe,function ue(De){if(GL(De))T|=8,C=Oe;else{if(Co(De)||Rs(De)&&!Iu(De))return!1;Is(De,ue)}});case 264:case 263:Ta(Oe.parent)&&Oe.parent.externalModuleIndicator===void 0&&(ae||(ae=[])).push(xi(Oe,Vf.functionWillNotBeVisibleInTheNewScope));case 232:case 219:case 175:case 177:case 178:case 179:return!1}let be=_e;switch(Oe.kind){case 246:_e&=-5;break;case 259:_e=0;break;case 242:Oe.parent&&Oe.parent.kind===259&&Oe.parent.finallyBlock===Oe&&(_e=4);break;case 298:case 297:_e|=1;break;default:rC(Oe,!1)&&(_e|=3);break}switch(Oe.kind){case 198:case 110:T|=8,C=Oe;break;case 257:{let ue=Oe.label;(me||(me=[])).push(ue.escapedText),Is(Oe,le),me.pop();break}case 253:case 252:{let ue=Oe.label;ue?un(me,ue.escapedText)||(ae||(ae=[])).push(xi(Oe,Vf.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):_e&(Oe.kind===253?1:2)||(ae||(ae=[])).push(xi(Oe,Vf.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 224:T|=4;break;case 230:T|=2;break;case 254:_e&4?T|=1:(ae||(ae=[])).push(xi(Oe,Vf.cannotExtractRangeContainingConditionalReturnStatement));break;default:Is(Oe,le);break}_e=be}}}function h_r(t,n,a){let c=t.getStart(a),u=n.getEnd();return a.text.charCodeAt(u)===59&&u++,{start:c,length:u-c}}function g_r(t){if(fa(t))return[t];if(Tb(t))return af(t.parent)?[t.parent]:t;if(d9e(t))return t}function l9e(t){return Iu(t)?pme(t.body):lu(t)||Ta(t)||wS(t)||Co(t)}function y_r(t){let n=AE(t.range)?To(t.range):t.range;if(t.facts&8&&!(t.facts&16)){let c=Cf(n);if(c){let u=fn(n,lu);return u?[u,c]:[c]}}let a=[];for(;;)if(n=n.parent,n.kind===170&&(n=fn(n,c=>lu(c)).parent),l9e(n)&&(a.push(n),n.kind===308))return a}function v_r(t,n,a){let{scopes:c,readsAndWrites:{target:u,usagesPerScope:_,functionErrorsPerScope:f,exposedVariableDeclarations:y}}=u9e(t,n);return $.assert(!f[a].length,"The extraction went missing? How?"),n.cancellationToken.throwIfCancellationRequested(),D_r(u,c[a],_[a],y,t,n)}function S_r(t,n,a){let{scopes:c,readsAndWrites:{target:u,usagesPerScope:_,constantErrorsPerScope:f,exposedVariableDeclarations:y}}=u9e(t,n);$.assert(!f[a].length,"The extraction went missing? How?"),$.assert(y.length===0,"Extract constant accepted a range containing a variable declaration?"),n.cancellationToken.throwIfCancellationRequested();let g=Vt(u)?u:u.statements[0].expression;return A_r(g,c[a],_[a],t.facts,n)}function b_r(t,n){let{scopes:a,affectedTextRange:c,readsAndWrites:{functionErrorsPerScope:u,constantErrorsPerScope:_}}=u9e(t,n),f=a.map((y,g)=>{let k=x_r(y),T=T_r(y),C=lu(y)?E_r(y):Co(y)?k_r(y):C_r(y),O,F;return C===1?(O=Mx(As(x.Extract_to_0_in_1_scope),[k,"global"]),F=Mx(As(x.Extract_to_0_in_1_scope),[T,"global"])):C===0?(O=Mx(As(x.Extract_to_0_in_1_scope),[k,"module"]),F=Mx(As(x.Extract_to_0_in_1_scope),[T,"module"])):(O=Mx(As(x.Extract_to_0_in_1),[k,C]),F=Mx(As(x.Extract_to_0_in_1),[T,C])),g===0&&!Co(y)&&(F=Mx(As(x.Extract_to_0_in_enclosing_scope),[T])),{functionExtraction:{description:O,errors:u[g]},constantExtraction:{description:F,errors:_[g]}}});return{affectedTextRange:c,extractions:f}}function u9e(t,n){let{file:a}=n,c=y_r(t),u=B_r(t,a),_=$_r(t,c,u,a,n.program.getTypeChecker(),n.cancellationToken);return{scopes:c,affectedTextRange:u,readsAndWrites:_}}function x_r(t){return lu(t)?"inner function":Co(t)?"method":"function"}function T_r(t){return Co(t)?"readonly field":"constant"}function E_r(t){switch(t.kind){case 177:return"constructor";case 219:case 263:return t.name?`function '${t.name.text}'`:xve;case 220:return"arrow function";case 175:return`method '${t.name.getText()}'`;case 178:return`'get ${t.name.getText()}'`;case 179:return`'set ${t.name.getText()}'`;default:$.assertNever(t,`Unexpected scope kind ${t.kind}`)}}function k_r(t){return t.kind===264?t.name?`class '${t.name.text}'`:"anonymous class declaration":t.name?`class expression '${t.name.text}'`:"anonymous class expression"}function C_r(t){return t.kind===269?`namespace '${t.parent.name.getText()}'`:t.externalModuleIndicator?0:1}function D_r(t,n,{usages:a,typeParameterUsages:c,substitutions:u},_,f,y){let g=y.program.getTypeChecker(),k=$c(y.program.getCompilerOptions()),T=Im.createImportAdder(y.file,y.program,y.preferences,y.host),C=n.getSourceFile(),O=k3(Co(n)?"newMethod":"newFunction",C),F=Ei(n),M=W.createIdentifier(O),U,J=[],G=[],Z;a.forEach((ve,Le)=>{let Ve;if(!F){let It=g.getTypeOfSymbolAtLocation(ve.symbol,ve.node);It=g.getBaseTypeOfLiteralType(It),Ve=Im.typeToAutoImportableTypeNode(g,T,It,n,k,1,8)}let nt=W.createParameterDeclaration(void 0,void 0,Le,void 0,Ve);J.push(nt),ve.usage===2&&(Z||(Z=[])).push(ve),G.push(W.createIdentifier(Le))});let Q=so(c.values(),ve=>({type:ve,declaration:I_r(ve,y.startPosition)}));Q.sort(P_r);let re=Q.length===0?void 0:Wn(Q,({declaration:ve})=>ve),ae=re!==void 0?re.map(ve=>W.createTypeReferenceNode(ve.name,void 0)):void 0;if(Vt(t)&&!F){let ve=g.getContextualType(t);U=g.typeToTypeNode(ve,n,1,8)}let{body:_e,returnValueProperty:me}=O_r(t,_,Z,u,!!(f.facts&1));$g(_e);let le,Oe=!!(f.facts&16);if(Co(n)){let ve=F?[]:[W.createModifier(123)];f.facts&32&&ve.push(W.createModifier(126)),f.facts&4&&ve.push(W.createModifier(134)),le=W.createMethodDeclaration(ve.length?ve:void 0,f.facts&2?W.createToken(42):void 0,M,void 0,re,J,U,_e)}else Oe&&J.unshift(W.createParameterDeclaration(void 0,void 0,"this",void 0,g.typeToTypeNode(g.getTypeAtLocation(f.thisNode),n,1,8),void 0)),le=W.createFunctionDeclaration(f.facts&4?[W.createToken(134)]:void 0,f.facts&2?W.createToken(42):void 0,M,re,J,U,_e);let be=ki.ChangeTracker.fromContext(y),ue=(AE(f.range)?Sn(f.range):f.range).end,De=L_r(ue,n);De?be.insertNodeBefore(y.file,De,le,!0):be.insertNodeAtEndOfScope(y.file,n,le),T.writeFixes(be);let Ce=[],Ae=N_r(n,f,O);Oe&&G.unshift(W.createIdentifier("this"));let Fe=W.createCallExpression(Oe?W.createPropertyAccessExpression(Ae,"call"):Ae,ae,G);if(f.facts&2&&(Fe=W.createYieldExpression(W.createToken(42),Fe)),f.facts&4&&(Fe=W.createAwaitExpression(Fe)),_9e(t)&&(Fe=W.createJsxExpression(void 0,Fe)),_.length&&!Z)if($.assert(!me,"Expected no returnValueProperty"),$.assert(!(f.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),_.length===1){let ve=_[0];Ce.push(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Il(ve.name),void 0,Il(ve.type),Fe)],ve.parent.flags)))}else{let ve=[],Le=[],Ve=_[0].parent.flags,nt=!1;for(let ke of _){ve.push(W.createBindingElement(void 0,void 0,Il(ke.name)));let _t=g.typeToTypeNode(g.getBaseTypeOfLiteralType(g.getTypeAtLocation(ke)),n,1,8);Le.push(W.createPropertySignature(void 0,ke.symbol.name,void 0,_t)),nt=nt||ke.type!==void 0,Ve=Ve&ke.parent.flags}let It=nt?W.createTypeLiteralNode(Le):void 0;It&&Ai(It,1),Ce.push(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(W.createObjectBindingPattern(ve),void 0,It,Fe)],Ve)))}else if(_.length||Z){if(_.length)for(let Le of _){let Ve=Le.parent.flags;Ve&2&&(Ve=Ve&-3|1),Ce.push(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Le.symbol.name,void 0,je(Le.type))],Ve)))}me&&Ce.push(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(me,void 0,je(U))],1)));let ve=p9e(_,Z);me&&ve.unshift(W.createShorthandPropertyAssignment(me)),ve.length===1?($.assert(!me,"Shouldn't have returnValueProperty here"),Ce.push(W.createExpressionStatement(W.createAssignment(ve[0].name,Fe))),f.facts&1&&Ce.push(W.createReturnStatement())):(Ce.push(W.createExpressionStatement(W.createAssignment(W.createObjectLiteralExpression(ve),Fe))),me&&Ce.push(W.createReturnStatement(W.createIdentifier(me))))}else f.facts&1?Ce.push(W.createReturnStatement(Fe)):AE(f.range)?Ce.push(W.createExpressionStatement(Fe)):Ce.push(Fe);AE(f.range)?be.replaceNodeRangeWithNodes(y.file,To(f.range),Sn(f.range),Ce):be.replaceNodeWithNodes(y.file,f.range,Ce);let Be=be.getChanges(),ze=(AE(f.range)?To(f.range):f.range).getSourceFile().fileName,ut=XK(Be,ze,O,!1);return{renameFilename:ze,renameLocation:ut,edits:Be};function je(ve){if(ve===void 0)return;let Le=Il(ve),Ve=Le;for(;i3(Ve);)Ve=Ve.type;return SE(Ve)&&wt(Ve.types,nt=>nt.kind===157)?Le:W.createUnionTypeNode([Le,W.createKeywordTypeNode(157)])}}function A_r(t,n,{substitutions:a},c,u){let _=u.program.getTypeChecker(),f=n.getSourceFile(),y=z5e(t,n,_,f),g=Ei(n),k=g||!_.isContextSensitive(t)?void 0:_.typeToTypeNode(_.getContextualType(t),n,1,8),T=F_r(bl(t),a);({variableType:k,initializer:T}=U(k,T)),$g(T);let C=ki.ChangeTracker.fromContext(u);if(Co(n)){$.assert(!g,"Cannot extract to a JS class");let J=[];J.push(W.createModifier(123)),c&32&&J.push(W.createModifier(126)),J.push(W.createModifier(148));let G=W.createPropertyDeclaration(J,y,void 0,k,T),Z=W.createPropertyAccessExpression(c&32?W.createIdentifier(n.name.getText()):W.createThis(),W.createIdentifier(y));_9e(t)&&(Z=W.createJsxExpression(void 0,Z));let Q=t.pos,re=M_r(Q,n);C.insertNodeBefore(u.file,re,G,!0),C.replaceNode(u.file,t,Z)}else{let J=W.createVariableDeclaration(y,void 0,k,T),G=w_r(t,n);if(G){C.insertNodeBefore(u.file,G,J);let Z=W.createIdentifier(y);C.replaceNode(u.file,t,Z)}else if(t.parent.kind===245&&n===fn(t,l9e)){let Z=W.createVariableStatement(void 0,W.createVariableDeclarationList([J],2));C.replaceNode(u.file,t.parent,Z)}else{let Z=W.createVariableStatement(void 0,W.createVariableDeclarationList([J],2)),Q=j_r(t,n);if(Q.pos===0?C.insertNodeAtTopOfFile(u.file,Z,!1):C.insertNodeBefore(u.file,Q,Z,!1),t.parent.kind===245)C.delete(u.file,t.parent);else{let re=W.createIdentifier(y);_9e(t)&&(re=W.createJsxExpression(void 0,re)),C.replaceNode(u.file,t,re)}}}let O=C.getChanges(),F=t.getSourceFile().fileName,M=XK(O,F,y,!0);return{renameFilename:F,renameLocation:M,edits:O};function U(J,G){if(J===void 0)return{variableType:J,initializer:G};if(!bu(G)&&!Iu(G)||G.typeParameters)return{variableType:J,initializer:G};let Z=_.getTypeAtLocation(t),Q=to(_.getSignaturesOfType(Z,0));if(!Q)return{variableType:J,initializer:G};if(Q.getTypeParameters())return{variableType:J,initializer:G};let re=[],ae=!1;for(let _e of G.parameters)if(_e.type)re.push(_e);else{let me=_.getTypeAtLocation(_e);me===_.getAnyType()&&(ae=!0),re.push(W.updateParameterDeclaration(_e,_e.modifiers,_e.dotDotDotToken,_e.name,_e.questionToken,_e.type||_.typeToTypeNode(me,n,1,8),_e.initializer))}if(ae)return{variableType:J,initializer:G};if(J=void 0,Iu(G))G=W.updateArrowFunction(G,l1(t)?Qk(t):void 0,G.typeParameters,re,G.type||_.typeToTypeNode(Q.getReturnType(),n,1,8),G.equalsGreaterThanToken,G.body);else{if(Q&&Q.thisParameter){let _e=pi(re);if(!_e||ct(_e.name)&&_e.name.escapedText!=="this"){let me=_.getTypeOfSymbolAtLocation(Q.thisParameter,t);re.splice(0,0,W.createParameterDeclaration(void 0,void 0,"this",void 0,_.typeToTypeNode(me,n,1,8)))}}G=W.updateFunctionExpression(G,l1(t)?Qk(t):void 0,G.asteriskToken,G.name,G.typeParameters,re,G.type||_.typeToTypeNode(Q.getReturnType(),n,1),G.body)}return{variableType:J,initializer:G}}}function w_r(t,n){let a;for(;t!==void 0&&t!==n;){if(Oo(t)&&t.initializer===a&&Df(t.parent)&&t.parent.declarations.length>1)return t;a=t,t=t.parent}}function I_r(t,n){let a,c=t.symbol;if(c&&c.declarations)for(let u of c.declarations)(a===void 0||u.pos0;if(Vs(t)&&!_&&c.size===0)return{body:W.createBlock(t.statements,!0),returnValueProperty:void 0};let f,y=!1,g=W.createNodeArray(Vs(t)?t.statements.slice(0):[fa(t)?t:W.createReturnStatement(bl(t))]);if(_||c.size){let T=Bn(g,k,fa).slice();if(_&&!u&&fa(t)){let C=p9e(n,a);C.length===1?T.push(W.createReturnStatement(C[0].name)):T.push(W.createReturnStatement(W.createObjectLiteralExpression(C)))}return{body:W.createBlock(T,!0),returnValueProperty:f}}else return{body:W.createBlock(g,!0),returnValueProperty:void 0};function k(T){if(!y&&gy(T)&&_){let C=p9e(n,a);return T.expression&&(f||(f="__return"),C.unshift(W.createPropertyAssignment(f,At(T.expression,k,Vt)))),C.length===1?W.createReturnStatement(C[0].name):W.createReturnStatement(W.createObjectLiteralExpression(C))}else{let C=y;y=y||lu(T)||Co(T);let O=c.get(hl(T).toString()),F=O?Il(O):Dn(T,k,void 0);return y=C,F}}}function F_r(t,n){return n.size?a(t):t;function a(c){let u=n.get(hl(c).toString());return u?Il(u):Dn(c,a,void 0)}}function R_r(t){if(lu(t)){let n=t.body;if(Vs(n))return n.statements}else{if(wS(t)||Ta(t))return t.statements;if(Co(t))return t.members;}return j}function L_r(t,n){return wt(R_r(n),a=>a.pos>=t&&lu(a)&&!kp(a))}function M_r(t,n){let a=n.members;$.assert(a.length>0,"Found no members");let c,u=!0;for(let _ of a){if(_.pos>t)return c||a[0];if(u&&!ps(_)){if(c!==void 0)return _;u=!1}c=_}return c===void 0?$.fail():c}function j_r(t,n){$.assert(!Co(n));let a;for(let c=t;c!==n;c=c.parent)l9e(c)&&(a=c);for(let c=(a||t).parent;;c=c.parent){if(UF(c)){let u;for(let _ of c.statements){if(_.pos>t.pos)break;u=_}return!u&&bL(c)?($.assert(pz(c.parent.parent),"Grandparent isn't a switch statement"),c.parent.parent):$.checkDefined(u,"prevStatement failed to get set")}$.assert(c!==n,"Didn't encounter a block-like before encountering scope")}}function p9e(t,n){let a=Cr(t,u=>W.createShorthandPropertyAssignment(u.symbol.name)),c=Cr(n,u=>W.createShorthandPropertyAssignment(u.symbol.name));return a===void 0?c:c===void 0?a:a.concat(c)}function AE(t){return Zn(t)}function B_r(t,n){return AE(t.range)?{pos:To(t.range).getStart(n),end:Sn(t.range).getEnd()}:t.range}function $_r(t,n,a,c,u,_){let f=new Map,y=[],g=[],k=[],T=[],C=[],O=new Map,F=[],M,U=AE(t.range)?t.range.length===1&&af(t.range[0])?t.range[0].expression:void 0:t.range,J;if(U===void 0){let Ce=t.range,Ae=To(Ce).getStart(),Fe=Sn(Ce).end;J=md(c,Ae,Fe-Ae,Vf.expressionExpected)}else u.getTypeAtLocation(U).flags&147456&&(J=xi(U,Vf.uselessConstantType));for(let Ce of n){y.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),g.push(new Map),k.push([]);let Ae=[];J&&Ae.push(J),Co(Ce)&&Ei(Ce)&&Ae.push(xi(Ce,Vf.cannotExtractToJSClass)),Iu(Ce)&&!Vs(Ce.body)&&Ae.push(xi(Ce,Vf.cannotExtractToExpressionArrowFunction)),T.push(Ae)}let G=new Map,Z=AE(t.range)?W.createBlock(t.range):t.range,Q=AE(t.range)?To(t.range):t.range,re=ae(Q);if(me(Z),re&&!AE(t.range)&&!NS(t.range)){let Ce=u.getContextualType(t.range);_e(Ce)}if(f.size>0){let Ce=new Map,Ae=0;for(let Fe=Q;Fe!==void 0&&Ae{y[Ae].typeParameterUsages.set(de,Be)}),Ae++),Nme(Fe))for(let Be of Zk(Fe)){let de=u.getTypeAtLocation(Be);f.has(de.id.toString())&&Ce.set(de.id.toString(),de)}$.assert(Ae===n.length,"Should have iterated all scopes")}if(C.length){let Ce=Pme(n[0],n[0].parent)?n[0]:yv(n[0]);Is(Ce,be)}for(let Ce=0;Ce0&&(Ae.usages.size>0||Ae.typeParameterUsages.size>0)){let de=AE(t.range)?t.range[0]:t.range;T[Ce].push(xi(de,Vf.cannotAccessVariablesFromNestedScopes))}t.facts&16&&Co(n[Ce])&&k[Ce].push(xi(t.thisNode,Vf.cannotExtractFunctionsContainingThisToMethod));let Fe=!1,Be;if(y[Ce].usages.forEach(de=>{de.usage===2&&(Fe=!0,de.symbol.flags&106500&&de.symbol.valueDeclaration&&Bg(de.symbol.valueDeclaration,8)&&(Be=de.symbol.valueDeclaration))}),$.assert(AE(t.range)||F.length===0,"No variable declarations expected if something was extracted"),Fe&&!AE(t.range)){let de=xi(t.range,Vf.cannotWriteInExpression);k[Ce].push(de),T[Ce].push(de)}else if(Be&&Ce>0){let de=xi(Be,Vf.cannotExtractReadonlyPropertyInitializerOutsideConstructor);k[Ce].push(de),T[Ce].push(de)}else if(M){let de=xi(M,Vf.cannotExtractExportedEntity);k[Ce].push(de),T[Ce].push(de)}}return{target:Z,usagesPerScope:y,functionErrorsPerScope:k,constantErrorsPerScope:T,exposedVariableDeclarations:F};function ae(Ce){return!!fn(Ce,Ae=>Nme(Ae)&&Zk(Ae).length!==0)}function _e(Ce){let Ae=u.getSymbolWalker(()=>(_.throwIfCancellationRequested(),!0)),{visitedTypes:Fe}=Ae.walkType(Ce);for(let Be of Fe)Be.isTypeParameter()&&f.set(Be.id.toString(),Be)}function me(Ce,Ae=1){if(re){let Fe=u.getTypeAtLocation(Ce);_e(Fe)}if(Vd(Ce)&&Ce.symbol&&C.push(Ce),of(Ce))me(Ce.left,2),me(Ce.right);else if(PPe(Ce))me(Ce.operand,2);else if(no(Ce)||mu(Ce))Is(Ce,me);else if(ct(Ce)){if(!Ce.parent||dh(Ce.parent)&&Ce!==Ce.parent.left||no(Ce.parent)&&Ce!==Ce.parent.expression)return;le(Ce,Ae,vS(Ce))}else Is(Ce,me)}function le(Ce,Ae,Fe){let Be=Oe(Ce,Ae,Fe);if(Be)for(let de=0;de=Ae)return de;if(G.set(de,Ae),ze){for(let ve of y)ve.usages.get(Ce.text)&&ve.usages.set(Ce.text,{usage:Ae,symbol:Be,node:Ce});return de}let ut=Be.getDeclarations(),je=ut&&wt(ut,ve=>ve.getSourceFile()===c);if(je&&!qK(a,je.getStart(),je.end)){if(t.facts&2&&Ae===2){let ve=xi(Ce,Vf.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let Le of k)Le.push(ve);for(let Le of T)Le.push(ve)}for(let ve=0;veBe.symbol===Ae);if(Fe)if(Oo(Fe)){let Be=Fe.symbol.id.toString();O.has(Be)||(F.push(Fe),O.set(Be,!0))}else M=M||Fe}Is(Ce,be)}function ue(Ce){return Ce.parent&&im(Ce.parent)&&Ce.parent.name===Ce?u.getShorthandAssignmentValueSymbol(Ce.parent):u.getSymbolAtLocation(Ce)}function De(Ce,Ae,Fe){if(!Ce)return;let Be=Ce.getDeclarations();if(Be&&Be.some(ze=>ze.parent===Ae))return W.createIdentifier(Ce.name);let de=De(Ce.parent,Ae,Fe);if(de!==void 0)return Fe?W.createQualifiedName(de,W.createIdentifier(Ce.name)):W.createPropertyAccessExpression(de,Ce.name)}}function U_r(t){return fn(t,n=>n.parent&&Mht(n)&&!wi(n.parent))}function Mht(t){let{parent:n}=t;if(n.kind===307)return!1;switch(t.kind){case 11:return n.kind!==273&&n.kind!==277;case 231:case 207:case 209:return!1;case 80:return n.kind!==209&&n.kind!==277&&n.kind!==282}return!0}function _9e(t){return d9e(t)||(PS(t)||u3(t)||DA(t))&&(PS(t.parent)||DA(t.parent))}function d9e(t){return Ic(t)&&t.parent&&NS(t.parent)}var z_r={},dSe="Generate 'get' and 'set' accessors",f9e=As(x.Generate_get_and_set_accessors),m9e={name:dSe,description:f9e,kind:"refactor.rewrite.property.generateAccessors"};Vx(dSe,{kinds:[m9e.kind],getEditsForAction:function(n,a){if(!n.endPosition)return;let c=Im.getAccessorConvertiblePropertyAtPosition(n.file,n.program,n.startPosition,n.endPosition);$.assert(c&&!XT(c),"Expected applicable refactor info");let u=Im.generateAccessorFromProperty(n.file,n.program,n.startPosition,n.endPosition,n,a);if(!u)return;let _=n.file.fileName,f=c.renameAccessor?c.accessorName:c.fieldName,g=(ct(f)?0:-1)+XK(u,_,f.text,wa(c.declaration));return{renameFilename:_,renameLocation:g,edits:u}},getAvailableActions(t){if(!t.endPosition)return j;let n=Im.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition,t.triggerReason==="invoked");return n?XT(n)?t.preferences.provideRefactorNotApplicableReason?[{name:dSe,description:f9e,actions:[{...m9e,notApplicableReason:n.error}]}]:j:[{name:dSe,description:f9e,actions:[m9e]}]:j}});var q_r={},fSe="Infer function return type",h9e=As(x.Infer_function_return_type),mSe={name:fSe,description:h9e,kind:"refactor.rewrite.function.returnType"};Vx(fSe,{kinds:[mSe.kind],getEditsForAction:J_r,getAvailableActions:V_r});function J_r(t){let n=jht(t);if(n&&!XT(n))return{renameFilename:void 0,renameLocation:void 0,edits:ki.ChangeTracker.with(t,c=>W_r(t.file,c,n.declaration,n.returnTypeNode))}}function V_r(t){let n=jht(t);return n?XT(n)?t.preferences.provideRefactorNotApplicableReason?[{name:fSe,description:h9e,actions:[{...mSe,notApplicableReason:n.error}]}]:j:[{name:fSe,description:h9e,actions:[mSe]}]:j}function W_r(t,n,a,c){let u=Kl(a,22,t),_=Iu(a)&&u===void 0,f=_?To(a.parameters):u;f&&(_&&(n.insertNodeBefore(t,f,W.createToken(21)),n.insertNodeAfter(t,f,W.createToken(22))),n.insertNodeAt(t,f.end,c,{prefix:": "}))}function jht(t){if(Ei(t.file)||!zA(mSe.kind,t.kind))return;let n=Vh(t.file,t.startPosition),a=fn(n,f=>Vs(f)||f.parent&&Iu(f.parent)&&(f.kind===39||f.parent.body===f)?"quit":G_r(f));if(!a||!a.body||a.type)return{error:As(x.Return_type_must_be_inferred_from_a_function)};let c=t.program.getTypeChecker(),u;if(c.isImplementationOfOverload(a)){let f=c.getTypeAtLocation(a).getCallSignatures();f.length>1&&(u=c.getUnionType(Wn(f,y=>y.getReturnType())))}if(!u){let f=c.getSignatureFromDeclaration(a);if(f){let y=c.getTypePredicateOfSignature(f);if(y&&y.type){let g=c.typePredicateToTypePredicateNode(y,a,1,8);if(g)return{declaration:a,returnTypeNode:g}}else u=c.getReturnTypeOfSignature(f)}}if(!u)return{error:As(x.Could_not_determine_function_return_type)};let _=c.typeToTypeNode(u,a,1,8);if(_)return{declaration:a,returnTypeNode:_}}function G_r(t){switch(t.kind){case 263:case 219:case 220:case 175:return!0;default:return!1}}var Bht=(t=>(t[t.typeOffset=8]="typeOffset",t[t.modifierMask=255]="modifierMask",t))(Bht||{}),$ht=(t=>(t[t.class=0]="class",t[t.enum=1]="enum",t[t.interface=2]="interface",t[t.namespace=3]="namespace",t[t.typeParameter=4]="typeParameter",t[t.type=5]="type",t[t.parameter=6]="parameter",t[t.variable=7]="variable",t[t.enumMember=8]="enumMember",t[t.property=9]="property",t[t.function=10]="function",t[t.member=11]="member",t))($ht||{}),Uht=(t=>(t[t.declaration=0]="declaration",t[t.static=1]="static",t[t.async=2]="async",t[t.readonly=3]="readonly",t[t.defaultLibrary=4]="defaultLibrary",t[t.local=5]="local",t))(Uht||{});function zht(t,n,a,c){let u=g9e(t,n,a,c);$.assert(u.spans.length%3===0);let _=u.spans,f=[];for(let y=0;y<_.length;y+=3)f.push({textSpan:Jp(_[y],_[y+1]),classificationType:_[y+2]});return f}function g9e(t,n,a,c){return{spans:H_r(t,a,c,n),endOfLineState:0}}function H_r(t,n,a,c){let u=[];return t&&n&&K_r(t,n,a,(f,y,g)=>{u.push(f.getStart(n),f.getWidth(n),(y+1<<8)+g)},c),u}function K_r(t,n,a,c,u){let _=t.getTypeChecker(),f=!1;function y(g){switch(g.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 220:u.throwIfCancellationRequested()}if(!g||!_S(a,g.pos,g.getFullWidth())||g.getFullWidth()===0)return;let k=f;if((PS(g)||u3(g))&&(f=!0),SL(g)&&(f=!1),ct(g)&&!f&&!Y_r(g)&&!ZU(g.escapedText)){let T=_.getSymbolAtLocation(g);if(T){T.flags&2097152&&(T=_.getAliasedSymbol(T));let C=Q_r(T,x3(g));if(C!==void 0){let O=0;g.parent&&(Vc(g.parent)||Vht.get(g.parent.kind)===C)&&g.parent.name===g&&(O=1),C===6&&Jht(g)&&(C=9),C=Z_r(_,g,C);let F=T.valueDeclaration;if(F){let M=Ra(F),U=dd(F);M&256&&(O|=2),M&1024&&(O|=4),C!==0&&C!==2&&(M&8||U&2||T.getFlags()&8)&&(O|=8),(C===7||C===10)&&X_r(F,n)&&(O|=32),t.isSourceFileDefaultLibrary(F.getSourceFile())&&(O|=16)}else T.declarations&&T.declarations.some(M=>t.isSourceFileDefaultLibrary(M.getSourceFile()))&&(O|=16);c(g,C,O)}}}Is(g,y),f=k}y(n)}function Q_r(t,n){let a=t.getFlags();if(a&32)return 0;if(a&384)return 1;if(a&524288)return 5;if(a&64){if(n&2)return 2}else if(a&262144)return 4;let c=t.valueDeclaration||t.declarations&&t.declarations[0];return c&&Vc(c)&&(c=qht(c)),c&&Vht.get(c.kind)}function Z_r(t,n,a){if(a===7||a===9||a===6){let c=t.getTypeAtLocation(n);if(c){let u=_=>_(c)||c.isUnion()&&c.types.some(_);if(a!==6&&u(_=>_.getConstructSignatures().length>0))return 0;if(u(_=>_.getCallSignatures().length>0)&&!u(_=>_.getProperties().length>0)||edr(n))return a===9?11:10}}return a}function X_r(t,n){return Vc(t)&&(t=qht(t)),Oo(t)?(!Ta(t.parent.parent.parent)||TP(t.parent))&&t.getSourceFile()===n:i_(t)?!Ta(t.parent)&&t.getSourceFile()===n:!1}function qht(t){for(;;)if(Vc(t.parent.parent))t=t.parent.parent;else return t.parent.parent}function Y_r(t){let n=t.parent;return n&&(H1(n)||Xm(n)||zx(n))}function edr(t){for(;Jht(t);)t=t.parent;return Js(t.parent)&&t.parent.expression===t}function Jht(t){return dh(t.parent)&&t.parent.right===t||no(t.parent)&&t.parent.name===t}var Vht=new Map([[261,7],[170,6],[173,9],[268,3],[267,1],[307,8],[264,0],[175,11],[263,10],[219,10],[174,11],[178,9],[179,9],[172,9],[265,2],[266,5],[169,4],[304,9],[305,9]]),Wht="0.8";function Ght(t,n,a,c){let u=Ute(t)?new y9e(t,n,a):t===80?new Kht(80,n,a):t===81?new Qht(81,n,a):new Hht(t,n,a);return u.parent=c,u.flags=c.flags&101441536,u}var y9e=class{constructor(t,n,a){this.pos=n,this.end=a,this.kind=t,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}assertHasRealPosition(t){$.assert(!bv(this.pos)&&!bv(this.end),t||"Node must have a real position for this operation")}getSourceFile(){return Pn(this)}getStart(t,n){return this.assertHasRealPosition(),oC(this,t,n)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(t){return this.assertHasRealPosition(),this.getEnd()-this.getStart(t)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(t){return this.assertHasRealPosition(),this.getStart(t)-this.pos}getFullText(t){return this.assertHasRealPosition(),(t||this.getSourceFile()).text.substring(this.pos,this.end)}getText(t){return this.assertHasRealPosition(),t||(t=this.getSourceFile()),t.text.substring(this.getStart(t),this.getEnd())}getChildCount(t){return this.getChildren(t).length}getChildAt(t,n){return this.getChildren(n)[t]}getChildren(t=Pn(this)){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),Jge(this,t)??rNe(this,t,tdr(this,t))}getFirstToken(t){this.assertHasRealPosition();let n=this.getChildren(t);if(!n.length)return;let a=wt(n,c=>c.kind<310||c.kind>352);return a.kind<167?a:a.getFirstToken(t)}getLastToken(t){this.assertHasRealPosition();let n=this.getChildren(t),a=Yr(n);if(a)return a.kind<167?a:a.getLastToken(t)}forEachChild(t,n){return Is(this,t,n)}};function tdr(t,n){let a=[];if(Kte(t))return t.forEachChild(f=>{a.push(f)}),a;wf.setText((n||t.getSourceFile()).text);let c=t.pos,u=f=>{Cae(a,c,f.pos,t),a.push(f),c=f.end},_=f=>{Cae(a,c,f.pos,t),a.push(rdr(f,t)),c=f.end};return X(t.jsDoc,u),c=t.pos,t.forEachChild(u,_),Cae(a,c,t.end,t),wf.setText(void 0),a}function Cae(t,n,a,c){for(wf.resetTokenState(n);nn.tagName.text==="inheritDoc"||n.tagName.text==="inheritdoc")}function hSe(t,n){if(!t)return j;let a=VA.getJsDocTagsFromDeclarations(t,n);if(n&&(a.length===0||t.some(Zht))){let c=new Set;for(let u of t){let _=Xht(n,u,f=>{var y;if(!c.has(f))return c.add(f),u.kind===178||u.kind===179?f.getContextualJsDocTags(u,n):((y=f.declarations)==null?void 0:y.length)===1?f.getJsDocTags(n):void 0});_&&(a=[..._,...a])}}return a}function Dae(t,n){if(!t)return j;let a=VA.getJsDocCommentsFromDeclarations(t,n);if(n&&(a.length===0||t.some(Zht))){let c=new Set;for(let u of t){let _=Xht(n,u,f=>{if(!c.has(f))return c.add(f),u.kind===178||u.kind===179?f.getContextualDocumentationComment(u,n):f.getDocumentationComment(n)});_&&(a=a.length===0?_.slice():_.concat(YL(),a))}}return a}function Xht(t,n,a){var c;let u=((c=n.parent)==null?void 0:c.kind)===177?n.parent.parent:n.parent;if(!u)return;let _=fd(n);return Je(EU(u),f=>{let y=t.getTypeAtLocation(f),g=_&&y.symbol?t.getTypeOfSymbol(y.symbol):y,k=t.getPropertyOfType(g,n.symbol.name);return k?a(k):void 0})}var adr=class extends y9e{constructor(t,n,a){super(t,n,a)}update(t,n){return oye(this,t,n)}getLineAndCharacterOfPosition(t){return qs(this,t)}getLineStarts(){return Ry(this)}getPositionOfLineAndCharacter(t,n,a){return AO(Ry(this),t,n,this.text,a)}getLineEndOfPosition(t){let{line:n}=this.getLineAndCharacterOfPosition(t),a=this.getLineStarts(),c;n+1>=a.length&&(c=this.getEnd()),c||(c=a[n+1]-1);let u=this.getFullText();return u[c]===` -`&&u[c-1]==="\r"?c-1:c}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let t=d_();return this.forEachChild(u),t;function n(_){let f=c(_);f&&t.add(f,_)}function a(_){let f=t.get(_);return f||t.set(_,f=[]),f}function c(_){let f=PR(_);return f&&(dc(f)&&no(f.expression)?f.expression.name.text:q_(f)?HK(f):void 0)}function u(_){switch(_.kind){case 263:case 219:case 175:case 174:let f=_,y=c(f);if(y){let T=a(y),C=Yr(T);C&&f.parent===C.parent&&f.symbol===C.symbol?f.body&&!C.body&&(T[T.length-1]=f):T.push(f)}Is(_,u);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:n(_),Is(_,u);break;case 170:if(!ko(_,31))break;case 261:case 209:{let T=_;if($s(T.name)){Is(T.name,u);break}T.initializer&&u(T.initializer)}case 307:case 173:case 172:n(_);break;case 279:let g=_;g.exportClause&&(k0(g.exportClause)?X(g.exportClause.elements,u):u(g.exportClause.name));break;case 273:let k=_.importClause;k&&(k.name&&n(k.name),k.namedBindings&&(k.namedBindings.kind===275?n(k.namedBindings):X(k.namedBindings.elements,u)));break;case 227:m_(_)!==0&&n(_);default:Is(_,u)}}}},sdr=class{constructor(t,n,a){this.fileName=t,this.text=n,this.skipTrivia=a||(c=>c)}getLineAndCharacterOfPosition(t){return qs(this,t)}};function cdr(){return{getNodeConstructor:()=>y9e,getTokenConstructor:()=>Hht,getIdentifierConstructor:()=>Kht,getPrivateIdentifierConstructor:()=>Qht,getSourceFileConstructor:()=>adr,getSymbolConstructor:()=>ndr,getTypeConstructor:()=>idr,getSignatureConstructor:()=>odr,getSourceMapSourceConstructor:()=>sdr}}function pQ(t){let n=!0;for(let c in t)if(Ho(t,c)&&!Yht(c)){n=!1;break}if(n)return t;let a={};for(let c in t)if(Ho(t,c)){let u=Yht(c)?c:c.charAt(0).toLowerCase()+c.substr(1);a[u]=t[c]}return a}function Yht(t){return!t.length||t.charAt(0)===t.charAt(0).toLowerCase()}function _Q(t){return t?Cr(t,n=>n.text).join(""):""}function Aae(){return{target:1,jsx:1}}function gSe(){return Im.getSupportedErrorCodes()}var ldr=class{constructor(t){this.host=t}getCurrentSourceFile(t){var n,a,c,u,_,f,y,g;let k=this.host.getScriptSnapshot(t);if(!k)throw new Error("Could not find file: '"+t+"'.");let T=yve(t,this.host),C=this.host.getScriptVersion(t),O;if(this.currentFileName!==t){let F={languageVersion:99,impliedNodeFormat:AK(wl(t,this.host.getCurrentDirectory(),((c=(a=(n=this.host).getCompilerHost)==null?void 0:a.call(n))==null?void 0:c.getCanonicalFileName)||UT(this.host)),(g=(y=(f=(_=(u=this.host).getCompilerHost)==null?void 0:_.call(u))==null?void 0:f.getModuleResolutionCache)==null?void 0:y.call(f))==null?void 0:g.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:dH(this.host.getCompilationSettings()),jsDocParsingMode:0};O=wae(t,k,F,C,!0,T)}else if(this.currentFileVersion!==C){let F=k.getChangeRange(this.currentFileScriptSnapshot);O=ySe(this.currentSourceFile,k,C,F)}return O&&(this.currentFileVersion=C,this.currentFileName=t,this.currentFileScriptSnapshot=k,this.currentSourceFile=O),this.currentSourceFile}};function egt(t,n,a){t.version=a,t.scriptSnapshot=n}function wae(t,n,a,c,u,_){let f=DF(t,BF(n),a,u,_);return egt(f,n,c),f}function ySe(t,n,a,c,u){if(c&&a!==t.version){let f,y=c.span.start!==0?t.text.substr(0,c.span.start):"",g=Xn(c.span)!==t.text.length?t.text.substr(Xn(c.span)):"";if(c.newLength===0)f=y&&g?y+g:y||g;else{let T=n.getText(c.span.start,c.span.start+c.newLength);f=y&&g?y+T+g:y?y+T:T+g}let k=oye(t,f,c,u);return egt(k,n,a),k.nameTable=void 0,t!==k&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),k}let _={languageVersion:t.languageVersion,impliedNodeFormat:t.impliedNodeFormat,setExternalModuleIndicator:t.setExternalModuleIndicator,jsDocParsingMode:t.jsDocParsingMode};return wae(t.fileName,n,_,a,!0,t.scriptKind)}var udr={isCancellationRequested:Yf,throwIfCancellationRequested:zs},pdr=class{constructor(t){this.cancellationToken=t}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var t;if(this.isCancellationRequested())throw(t=hi)==null||t.instant(hi.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Uk}},S9e=class{constructor(t,n=20){this.hostCancellationToken=t,this.throttleWaitMilliseconds=n,this.lastCancellationCheckTime=0}isCancellationRequested(){let t=Ml();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var t;if(this.isCancellationRequested())throw(t=hi)==null||t.instant(hi.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Uk}},tgt=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],_dr=[...tgt,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];function b9e(t,n=V7e(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory(),t.jsDocParsingMode),a){var c;let u;a===void 0?u=0:typeof a=="boolean"?u=a?2:0:u=a;let _=new ldr(t),f,y,g=0,k=t.getCancellationToken?new pdr(t.getCancellationToken()):udr,T=t.getCurrentDirectory();k4e((c=t.getLocalizedDiagnosticMessages)==null?void 0:c.bind(t));function C(Rt){t.log&&t.log(Rt)}let O=K4(t),F=_d(O),M=o5e({useCaseSensitiveFileNames:()=>O,getCurrentDirectory:()=>T,getProgram:Z,fileExists:ja(t,t.fileExists),readFile:ja(t,t.readFile),getDocumentPositionMapper:ja(t,t.getDocumentPositionMapper),getSourceFileLike:ja(t,t.getSourceFileLike),log:C});function U(Rt){let rr=f.getSourceFile(Rt);if(!rr){let _r=new Error(`Could not find source file: '${Rt}'.`);throw _r.ProgramFiles=f.getSourceFiles().map(wr=>wr.fileName),_r}return rr}function J(){t.updateFromProject&&!t.updateFromProjectInProgress?t.updateFromProject():G()}function G(){var Rt,rr,_r;if($.assert(u!==2),t.getProjectVersion){let _s=t.getProjectVersion();if(_s){if(y===_s&&!((Rt=t.hasChangedAutomaticTypeDirectiveNames)!=null&&Rt.call(t)))return;y=_s}}let wr=t.getTypeRootsVersion?t.getTypeRootsVersion():0;g!==wr&&(C("TypeRoots version has changed; provide new program"),f=void 0,g=wr);let pn=t.getScriptFileNames().slice(),tn=t.getCompilationSettings()||Aae(),lr=t.hasInvalidatedResolutions||Yf,cn=ja(t,t.hasInvalidatedLibResolutions)||Yf,gn=ja(t,t.hasChangedAutomaticTypeDirectiveNames),bn=(rr=t.getProjectReferences)==null?void 0:rr.call(t),$r,Uo={getSourceFile:o_,getSourceFileByPath:Gy,getCancellationToken:()=>k,getCanonicalFileName:F,useCaseSensitiveFileNames:()=>O,getNewLine:()=>fE(tn),getDefaultLibFileName:_s=>t.getDefaultLibFileName(_s),writeFile:zs,getCurrentDirectory:()=>T,fileExists:_s=>t.fileExists(_s),readFile:_s=>t.readFile&&t.readFile(_s),getSymlinkCache:ja(t,t.getSymlinkCache),realpath:ja(t,t.realpath),directoryExists:_s=>Sv(_s,t),getDirectories:_s=>t.getDirectories?t.getDirectories(_s):[],readDirectory:(_s,sc,sl,Yc,Ar)=>($.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(_s,sc,sl,Yc,Ar)),onReleaseOldSourceFile:kc,onReleaseParsedCommandLine:V_,hasInvalidatedResolutions:lr,hasInvalidatedLibResolutions:cn,hasChangedAutomaticTypeDirectiveNames:gn,trace:ja(t,t.trace),resolveModuleNames:ja(t,t.resolveModuleNames),getModuleResolutionCache:ja(t,t.getModuleResolutionCache),createHash:ja(t,t.createHash),resolveTypeReferenceDirectives:ja(t,t.resolveTypeReferenceDirectives),resolveModuleNameLiterals:ja(t,t.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:ja(t,t.resolveTypeReferenceDirectiveReferences),resolveLibrary:ja(t,t.resolveLibrary),useSourceOfProjectReferenceRedirect:ja(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:$a,jsDocParsingMode:t.jsDocParsingMode,getGlobalTypingsCacheLocation:ja(t,t.getGlobalTypingsCacheLocation)},Ys=Uo.getSourceFile,{getSourceFileWithCache:ec}=Bz(Uo,_s=>wl(_s,T,F),(..._s)=>Ys.call(Uo,..._s));Uo.getSourceFile=ec,(_r=t.setCompilerHost)==null||_r.call(t,Uo);let Ss={useCaseSensitiveFileNames:O,fileExists:_s=>Uo.fileExists(_s),readFile:_s=>Uo.readFile(_s),directoryExists:_s=>Uo.directoryExists(_s),getDirectories:_s=>Uo.getDirectories(_s),realpath:Uo.realpath,readDirectory:(..._s)=>Uo.readDirectory(..._s),trace:Uo.trace,getCurrentDirectory:Uo.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:zs},Mp=n.getKeyForCompilationSettings(tn),Cp=new Set;if(R0e(f,pn,tn,(_s,sc)=>t.getScriptVersion(sc),_s=>Uo.fileExists(_s),lr,cn,gn,$a,bn)){Uo=void 0,$r=void 0,Cp=void 0;return}f=wK({rootNames:pn,options:tn,host:Uo,oldProgram:f,projectReferences:bn}),Uo=void 0,$r=void 0,Cp=void 0,M.clearCache(),f.getTypeChecker();return;function $a(_s){let sc=wl(_s,T,F),sl=$r?.get(sc);if(sl!==void 0)return sl||void 0;let Yc=t.getParsedCommandLine?t.getParsedCommandLine(_s):bs(_s);return($r||($r=new Map)).set(sc,Yc||!1),Yc}function bs(_s){let sc=o_(_s,100);if(sc)return sc.path=wl(_s,T,F),sc.resolvedPath=sc.path,sc.originalFileName=sc.fileName,oK(sc,Ss,za(mo(_s),T),void 0,za(_s,T))}function V_(_s,sc,sl){var Yc;t.getParsedCommandLine?(Yc=t.onReleaseParsedCommandLine)==null||Yc.call(t,_s,sc,sl):sc&&Nu(sc.sourceFile,sl)}function Nu(_s,sc){let sl=n.getKeyForCompilationSettings(sc);n.releaseDocumentWithKey(_s.resolvedPath,sl,_s.scriptKind,_s.impliedNodeFormat)}function kc(_s,sc,sl,Yc){var Ar;Nu(_s,sc),(Ar=t.onReleaseOldSourceFile)==null||Ar.call(t,_s,sc,sl,Yc)}function o_(_s,sc,sl,Yc){return Gy(_s,wl(_s,T,F),sc,sl,Yc)}function Gy(_s,sc,sl,Yc,Ar){$.assert(Uo,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let Ql=t.getScriptSnapshot(_s);if(!Ql)return;let Gp=yve(_s,t),N_=t.getScriptVersion(_s);if(!Ar){let lf=f&&f.getSourceFileByPath(sc);if(lf){if(Gp===lf.scriptKind||Cp.has(lf.resolvedPath))return n.updateDocumentWithKey(_s,sc,t,Mp,Ql,N_,Gp,sl);n.releaseDocumentWithKey(lf.resolvedPath,n.getKeyForCompilationSettings(f.getCompilerOptions()),lf.scriptKind,lf.impliedNodeFormat),Cp.add(lf.resolvedPath)}}return n.acquireDocumentWithKey(_s,sc,t,Mp,Ql,N_,Gp,sl)}}function Z(){if(u===2){$.assert(f===void 0);return}return J(),f}function Q(){var Rt;return(Rt=t.getPackageJsonAutoImportProvider)==null?void 0:Rt.call(t)}function re(Rt,rr){let _r=f.getTypeChecker(),wr=pn();if(!wr)return!1;for(let lr of Rt)for(let cn of lr.references){let gn=tn(cn);if($.assertIsDefined(gn),rr.has(cn)||Pu.isDeclarationOfSymbol(gn,wr)){rr.add(cn),cn.isDefinition=!0;let bn=Koe(cn,M,ja(t,t.fileExists));bn&&rr.add(bn)}else cn.isDefinition=!1}return!0;function pn(){for(let lr of Rt)for(let cn of lr.references){if(rr.has(cn)){let bn=tn(cn);return $.assertIsDefined(bn),_r.getSymbolAtLocation(bn)}let gn=Koe(cn,M,ja(t,t.fileExists));if(gn&&rr.has(gn)){let bn=tn(gn);if(bn)return _r.getSymbolAtLocation(bn)}}}function tn(lr){let cn=f.getSourceFile(lr.fileName);if(!cn)return;let gn=Vh(cn,lr.textSpan.start);return Pu.Core.getAdjustedNode(gn,{use:Pu.FindReferencesUse.References})}}function ae(){if(f){let Rt=n.getKeyForCompilationSettings(f.getCompilerOptions());X(f.getSourceFiles(),rr=>n.releaseDocumentWithKey(rr.resolvedPath,Rt,rr.scriptKind,rr.impliedNodeFormat)),f=void 0}}function _e(){ae(),t=void 0}function me(Rt){return J(),f.getSyntacticDiagnostics(U(Rt),k).slice()}function le(Rt){J();let rr=U(Rt),_r=f.getSemanticDiagnostics(rr,k);if(!fg(f.getCompilerOptions()))return _r.slice();let wr=f.getDeclarationDiagnostics(rr,k);return[..._r,...wr]}function Oe(Rt,rr){J();let _r=U(Rt),wr=f.getCompilerOptions();if(lL(_r,wr,f)||!GU(_r,wr)||f.getCachedSemanticDiagnostics(_r))return;let pn=be(_r,rr);if(!pn)return;let tn=D_(pn.map(cn=>Hu(cn.getFullStart(),cn.getEnd())));return{diagnostics:f.getSemanticDiagnostics(_r,k,pn).slice(),spans:tn}}function be(Rt,rr){let _r=[],wr=D_(rr.map(pn=>CE(pn)));for(let pn of wr){let tn=ue(Rt,pn);if(!tn)return;_r.push(...tn)}if(_r.length)return _r}function ue(Rt,rr){if(su(rr,Rt))return;let _r=Hz(Rt,Xn(rr))||Rt,wr=fn(_r,tn=>Hl(tn,rr)),pn=[];if(De(rr,wr,pn),Rt.end===rr.start+rr.length&&pn.push(Rt.endOfFileToken),!Pt(pn,Ta))return pn}function De(Rt,rr,_r){return Ce(rr,Rt)?su(Rt,rr)?(Ae(rr,_r),!0):UF(rr)?Fe(Rt,rr,_r):Co(rr)?Be(Rt,rr,_r):(Ae(rr,_r),!0):!1}function Ce(Rt,rr){let _r=rr.start+rr.length;return Rt.pos<_r&&Rt.end>rr.start}function Ae(Rt,rr){for(;Rt.parent&&!i3e(Rt);)Rt=Rt.parent;rr.push(Rt)}function Fe(Rt,rr,_r){let wr=[];return rr.statements.filter(tn=>De(Rt,tn,wr)).length===rr.statements.length?(Ae(rr,_r),!0):(_r.push(...wr),!1)}function Be(Rt,rr,_r){var wr,pn,tn;let lr=bn=>Hk(bn,Rt);if((wr=rr.modifiers)!=null&&wr.some(lr)||rr.name&&lr(rr.name)||(pn=rr.typeParameters)!=null&&pn.some(lr)||(tn=rr.heritageClauses)!=null&&tn.some(lr))return Ae(rr,_r),!0;let cn=[];return rr.members.filter(bn=>De(Rt,bn,cn)).length===rr.members.length?(Ae(rr,_r),!0):(_r.push(...cn),!1)}function de(Rt){return J(),Jve(U(Rt),f,k)}function ze(){return J(),[...f.getOptionsDiagnostics(k),...f.getGlobalDiagnostics(k)]}function ut(Rt,rr,_r=u1,wr){let pn={..._r,includeCompletionsForModuleExports:_r.includeCompletionsForModuleExports||_r.includeExternalModuleExports,includeCompletionsWithInsertText:_r.includeCompletionsWithInsertText||_r.includeInsertTextCompletions};return J(),KF.getCompletionsAtPosition(t,f,C,U(Rt),rr,pn,_r.triggerCharacter,_r.triggerKind,k,wr&&rd.getFormatContext(wr,t),_r.includeSymbol)}function je(Rt,rr,_r,wr,pn,tn=u1,lr){return J(),KF.getCompletionEntryDetails(f,C,U(Rt),rr,{name:_r,source:pn,data:lr},t,wr&&rd.getFormatContext(wr,t),tn,k)}function ve(Rt,rr,_r,wr,pn=u1){return J(),KF.getCompletionEntrySymbol(f,C,U(Rt),rr,{name:_r,source:wr},t,pn)}function Le(Rt,rr,_r,wr){J();let pn=U(Rt),tn=Vh(pn,rr);if(tn===pn)return;let lr=f.getTypeChecker(),cn=It(tn),gn=hdr(cn,lr);if(!gn||lr.isUnknownSymbol(gn)){let Ss=ke(pn,cn,rr)?lr.getTypeAtLocation(cn):void 0;return Ss&&{kind:"",kindModifiers:"",textSpan:yh(cn,pn),displayParts:lr.runWithCancellationToken(k,Mp=>ZK(Mp,Ss,T3(cn),void 0,wr)),documentation:Ss.symbol?Ss.symbol.getDocumentationComment(lr):void 0,tags:Ss.symbol?Ss.symbol.getJsDocTags(lr):void 0}}let{symbolKind:bn,displayParts:$r,documentation:Uo,tags:Ys,canIncreaseVerbosityLevel:ec}=lr.runWithCancellationToken(k,Ss=>wE.getSymbolDisplayPartsDocumentationAndSymbolKind(Ss,gn,pn,T3(cn),cn,void 0,void 0,_r??JPe,wr));return{kind:bn,kindModifiers:wE.getSymbolModifiers(lr,gn),textSpan:yh(cn,pn),displayParts:$r,documentation:Uo,tags:Ys,canIncreaseVerbosityLevel:ec}}function Ve(Rt,rr){return J(),wbe.preparePasteEdits(U(Rt),rr,f.getTypeChecker())}function nt(Rt,rr){return J(),Ibe.pasteEditsProvider(U(Rt.targetFile),Rt.pastedText,Rt.pasteLocations,Rt.copiedFrom?{file:U(Rt.copiedFrom.file),range:Rt.copiedFrom.range}:void 0,t,Rt.preferences,rd.getFormatContext(rr,t),k)}function It(Rt){return SP(Rt.parent)&&Rt.pos===Rt.parent.pos?Rt.parent.expression:mL(Rt.parent)&&Rt.pos===Rt.parent.pos||qR(Rt.parent)&&Rt.parent.name===Rt||Ev(Rt.parent)?Rt.parent:Rt}function ke(Rt,rr,_r){switch(rr.kind){case 80:return rr.flags&16777216&&!Ei(rr)&&(rr.parent.kind===172&&rr.parent.name===rr||fn(rr,wr=>wr.kind===170))?!1:!j1e(rr)&&!B1e(rr)&&!z1(rr.parent);case 212:case 167:return!EE(Rt,_r);case 110:case 198:case 108:case 203:return!0;case 237:return qR(rr);default:return!1}}function _t(Rt,rr,_r,wr){return J(),cM.getDefinitionAtPosition(f,U(Rt),rr,_r,wr)}function Se(Rt,rr){return J(),cM.getDefinitionAndBoundSpan(f,U(Rt),rr)}function tt(Rt,rr){return J(),cM.getTypeDefinitionAtPosition(f.getTypeChecker(),U(Rt),rr)}function Qe(Rt,rr){return J(),Pu.getImplementationsAtPosition(f,k,f.getSourceFiles(),U(Rt),rr)}function We(Rt,rr,_r){let wr=Qs(Rt);$.assert(_r.some(lr=>Qs(lr)===wr)),J();let pn=Wn(_r,lr=>f.getSourceFile(lr)),tn=U(Rt);return dae.getDocumentHighlights(f,k,tn,rr,pn)}function St(Rt,rr,_r,wr,pn){J();let tn=U(Rt),lr=Moe(Vh(tn,rr));if(Qae.nodeIsEligibleForRename(lr))if(ct(lr)&&(Tv(lr.parent)||bP(lr.parent))&&eL(lr.escapedText)){let{openingElement:cn,closingElement:gn}=lr.parent.parent;return[cn,gn].map(bn=>{let $r=yh(bn.tagName,tn);return{fileName:tn.fileName,textSpan:$r,...Pu.toContextSpan($r,tn,bn.parent)}})}else{let cn=Vg(tn,pn??u1),gn=typeof pn=="boolean"?pn:pn?.providePrefixAndSuffixTextForRename;return Sr(lr,rr,{findInStrings:_r,findInComments:wr,providePrefixAndSuffixTextForRename:gn,use:Pu.FindReferencesUse.Rename},(bn,$r,Uo)=>Pu.toRenameLocation(bn,$r,Uo,gn||!1,cn))}}function Kt(Rt,rr){return J(),Sr(Vh(U(Rt),rr),rr,{use:Pu.FindReferencesUse.References},Pu.toReferenceEntry)}function Sr(Rt,rr,_r,wr){J();let pn=_r&&_r.use===Pu.FindReferencesUse.Rename?f.getSourceFiles().filter(tn=>!f.isSourceFileDefaultLibrary(tn)):f.getSourceFiles();return Pu.findReferenceOrRenameEntries(f,k,pn,Rt,rr,_r,wr)}function nn(Rt,rr){return J(),Pu.findReferencedSymbols(f,k,f.getSourceFiles(),U(Rt),rr)}function Nn(Rt){return J(),Pu.Core.getReferencesForFileName(Rt,f,f.getSourceFiles()).map(Pu.toReferenceEntry)}function $t(Rt,rr,_r,wr=!1,pn=!1){J();let tn=_r?[U(_r)]:f.getSourceFiles();return dmt(tn,f.getTypeChecker(),k,Rt,rr,wr,pn)}function Dr(Rt,rr,_r){J();let wr=U(Rt),pn=t.getCustomTransformers&&t.getCustomTransformers();return jOe(f,wr,!!rr,k,pn,_r)}function Qn(Rt,rr,{triggerReason:_r}=u1){J();let wr=U(Rt);return AQ.getSignatureHelpItems(f,wr,rr,_r,k)}function Ko(Rt){return _.getCurrentSourceFile(Rt)}function is(Rt,rr,_r){let wr=_.getCurrentSourceFile(Rt),pn=Vh(wr,rr);if(pn===wr)return;switch(pn.kind){case 212:case 167:case 11:case 97:case 112:case 106:case 108:case 110:case 198:case 80:break;default:return}let tn=pn;for(;;)if(WL(tn)||t7e(tn))tn=tn.parent;else if(U1e(tn))if(tn.parent.parent.kind===268&&tn.parent.parent.body===tn.parent)tn=tn.parent.parent.name;else break;else break;return Hu(tn.getStart(),pn.getEnd())}function sr(Rt,rr){let _r=_.getCurrentSourceFile(Rt);return SSe.spanInSourceFileAtLocation(_r,rr)}function uo(Rt){return gmt(_.getCurrentSourceFile(Rt),k)}function Wa(Rt){return ymt(_.getCurrentSourceFile(Rt),k)}function oo(Rt,rr,_r){return J(),(_r||"original")==="2020"?zht(f,k,U(Rt),rr):q7e(f.getTypeChecker(),k,U(Rt),f.getClassifiableNames(),rr)}function Oi(Rt,rr,_r){return J(),(_r||"original")==="original"?Lve(f.getTypeChecker(),k,U(Rt),f.getClassifiableNames(),rr):g9e(f,k,U(Rt),rr)}function $o(Rt,rr){return J7e(k,_.getCurrentSourceFile(Rt),rr)}function ft(Rt,rr){return Mve(k,_.getCurrentSourceFile(Rt),rr)}function Ht(Rt){let rr=_.getCurrentSourceFile(Rt);return fbe.collectElements(rr,k)}let Wr=new Map(Object.entries({19:20,21:22,23:24,32:30}));Wr.forEach((Rt,rr)=>Wr.set(Rt.toString(),Number(rr)));function ai(Rt,rr){let _r=_.getCurrentSourceFile(Rt),wr=KL(_r,rr),pn=wr.getStart(_r)===rr?Wr.get(wr.kind.toString()):void 0,tn=pn&&Kl(wr.parent,pn,_r);return tn?[yh(wr,_r),yh(tn,_r)].sort((lr,cn)=>lr.start-cn.start):j}function vo(Rt,rr,_r){let wr=Ml(),pn=pQ(_r),tn=_.getCurrentSourceFile(Rt);C("getIndentationAtPosition: getCurrentSourceFile: "+(Ml()-wr)),wr=Ml();let lr=rd.SmartIndenter.getIndentation(rr,tn,pn);return C("getIndentationAtPosition: computeIndentation : "+(Ml()-wr)),lr}function Eo(Rt,rr,_r,wr){let pn=_.getCurrentSourceFile(Rt);return rd.formatSelection(rr,_r,pn,rd.getFormatContext(pQ(wr),t))}function ya(Rt,rr){return rd.formatDocument(_.getCurrentSourceFile(Rt),rd.getFormatContext(pQ(rr),t))}function Ls(Rt,rr,_r,wr){let pn=_.getCurrentSourceFile(Rt),tn=rd.getFormatContext(pQ(wr),t);if(!EE(pn,rr))switch(_r){case"{":return rd.formatOnOpeningCurly(rr,pn,tn);case"}":return rd.formatOnClosingCurly(rr,pn,tn);case";":return rd.formatOnSemicolon(rr,pn,tn);case` -`:return rd.formatOnEnter(rr,pn,tn)}return[]}function yc(Rt,rr,_r,wr,pn,tn=u1){J();let lr=U(Rt),cn=Hu(rr,_r),gn=rd.getFormatContext(pn,t);return an(rf(wr,Ng,Br),bn=>(k.throwIfCancellationRequested(),Im.getFixes({errorCode:bn,sourceFile:lr,span:cn,program:f,host:t,cancellationToken:k,formatContext:gn,preferences:tn})))}function Cn(Rt,rr,_r,wr=u1){J(),$.assert(Rt.type==="file");let pn=U(Rt.fileName),tn=rd.getFormatContext(_r,t);return Im.getAllFixes({fixId:rr,sourceFile:pn,program:f,host:t,cancellationToken:k,formatContext:tn,preferences:wr})}function Es(Rt,rr,_r=u1){J(),$.assert(Rt.type==="file");let wr=U(Rt.fileName);if(BO(wr))return j;let pn=rd.getFormatContext(rr,t),tn=Rt.mode??(Rt.skipDestructiveCodeActions?"SortAndCombine":"All");return WA.organizeImports(wr,pn,t,f,_r,tn)}function Dt(Rt,rr,_r,wr=u1){return G7e(Z(),Rt,rr,t,rd.getFormatContext(_r,t),wr,M)}function ur(Rt,rr){let _r=typeof Rt=="string"?rr:Rt;return Zn(_r)?Promise.all(_r.map(wr=>Ee(wr))):Ee(_r)}function Ee(Rt){let rr=_r=>wl(_r,T,F);return $.assertEqual(Rt.type,"install package"),t.installPackage?t.installPackage({fileName:rr(Rt.file),packageName:Rt.packageName}):Promise.reject("Host does not implement `installPackage`")}function Bt(Rt,rr,_r,wr){let pn=wr?rd.getFormatContext(wr,t).options:void 0;return VA.getDocCommentTemplateAtPosition(ZT(t,pn),_.getCurrentSourceFile(Rt),rr,_r)}function ye(Rt,rr,_r){if(_r===60)return!1;let wr=_.getCurrentSourceFile(Rt);if(jF(wr,rr))return!1;if(c7e(wr,rr))return _r===123;if(G1e(wr,rr))return!1;switch(_r){case 39:case 34:case 96:return!EE(wr,rr)}return!0}function et(Rt,rr){let _r=_.getCurrentSourceFile(Rt),wr=vd(rr,_r);if(!wr)return;let pn=wr.kind===32&&Tv(wr.parent)?wr.parent.parent:_F(wr)&&PS(wr.parent)?wr.parent:void 0;if(pn&&pr(pn))return{newText:``};let tn=wr.kind===32&&K1(wr.parent)?wr.parent.parent:_F(wr)&&DA(wr.parent)?wr.parent:void 0;if(tn&&Et(tn))return{newText:""}}function Ct(Rt,rr){let _r=_.getCurrentSourceFile(Rt),wr=vd(rr,_r);if(!wr||wr.parent.kind===308)return;let pn="[a-zA-Z0-9:\\-\\._$]*";if(DA(wr.parent.parent)){let tn=wr.parent.parent.openingFragment,lr=wr.parent.parent.closingFragment;if(BO(tn)||BO(lr))return;let cn=tn.getStart(_r)+1,gn=lr.getStart(_r)+2;return rr!==cn&&rr!==gn?void 0:{ranges:[{start:cn,length:0},{start:gn,length:0}],wordPattern:pn}}else{let tn=fn(wr.parent,ec=>!!(Tv(ec)||bP(ec)));if(!tn)return;$.assert(Tv(tn)||bP(tn),"tag should be opening or closing element");let lr=tn.parent.openingElement,cn=tn.parent.closingElement,gn=lr.tagName.getStart(_r),bn=lr.tagName.end,$r=cn.tagName.getStart(_r),Uo=cn.tagName.end;return gn===lr.getStart(_r)||$r===cn.getStart(_r)||bn===lr.getEnd()||Uo===cn.getEnd()||!(gn<=rr&&rr<=bn||$r<=rr&&rr<=Uo)||lr.tagName.getText(_r)!==cn.tagName.getText(_r)?void 0:{ranges:[{start:gn,length:bn-gn},{start:$r,length:Uo-$r}],wordPattern:pn}}}function Ot(Rt,rr){return{lineStarts:Rt.getLineStarts(),firstLine:Rt.getLineAndCharacterOfPosition(rr.pos).line,lastLine:Rt.getLineAndCharacterOfPosition(rr.end).line}}function ar(Rt,rr,_r){let wr=_.getCurrentSourceFile(Rt),pn=[],{lineStarts:tn,firstLine:lr,lastLine:cn}=Ot(wr,rr),gn=_r||!1,bn=Number.MAX_VALUE,$r=new Map,Uo=new RegExp(/\S/),Ys=Boe(wr,tn[lr]),ec=Ys?"{/*":"//";for(let Ss=lr;Ss<=cn;Ss++){let Mp=wr.text.substring(tn[Ss],wr.getLineEndOfPosition(tn[Ss])),Cp=Uo.exec(Mp);Cp&&(bn=Math.min(bn,Cp.index),$r.set(Ss.toString(),Cp.index),Mp.substr(Cp.index,ec.length)!==ec&&(gn=_r===void 0||_r))}for(let Ss=lr;Ss<=cn;Ss++){if(lr!==cn&&tn[Ss]===rr.end)continue;let Mp=$r.get(Ss.toString());Mp!==void 0&&(Ys?pn.push(...at(Rt,{pos:tn[Ss]+bn,end:wr.getLineEndOfPosition(tn[Ss])},gn,Ys)):gn?pn.push({newText:ec,span:{length:0,start:tn[Ss]+bn}}):wr.text.substr(tn[Ss]+Mp,ec.length)===ec&&pn.push({newText:"",span:{length:ec.length,start:tn[Ss]+Mp}}))}return pn}function at(Rt,rr,_r,wr){var pn;let tn=_.getCurrentSourceFile(Rt),lr=[],{text:cn}=tn,gn=!1,bn=_r||!1,$r=[],{pos:Uo}=rr,Ys=wr!==void 0?wr:Boe(tn,Uo),ec=Ys?"{/*":"/*",Ss=Ys?"*/}":"*/",Mp=Ys?"\\{\\/\\*":"\\/\\*",Cp=Ys?"\\*\\/\\}":"\\*\\/";for(;Uo<=rr.end;){let uu=cn.substr(Uo,ec.length)===ec?ec.length:0,$a=EE(tn,Uo+uu);if($a)Ys&&($a.pos--,$a.end++),$r.push($a.pos),$a.kind===3&&$r.push($a.end),gn=!0,Uo=$a.end+1;else{let bs=cn.substring(Uo,rr.end).search(`(${Mp})|(${Cp})`);bn=_r!==void 0?_r:bn||!v7e(cn,Uo,bs===-1?rr.end:Uo+bs),Uo=bs===-1?rr.end+1:Uo+bs+Ss.length}}if(bn||!gn){((pn=EE(tn,rr.pos))==null?void 0:pn.kind)!==2&&vm($r,rr.pos,Br),vm($r,rr.end,Br);let uu=$r[0];cn.substr(uu,ec.length)!==ec&&lr.push({newText:ec,span:{length:0,start:uu}});for(let $a=1;$a<$r.length-1;$a++)cn.substr($r[$a]-Ss.length,Ss.length)!==Ss&&lr.push({newText:Ss,span:{length:0,start:$r[$a]}}),cn.substr($r[$a],ec.length)!==ec&&lr.push({newText:ec,span:{length:0,start:$r[$a]}});lr.length%2!==0&&lr.push({newText:Ss,span:{length:0,start:$r[$r.length-1]}})}else for(let uu of $r){let $a=uu-Ss.length>0?uu-Ss.length:0,bs=cn.substr($a,Ss.length)===Ss?Ss.length:0;lr.push({newText:"",span:{length:ec.length,start:uu-bs}})}return lr}function Zt(Rt,rr){let _r=_.getCurrentSourceFile(Rt),{firstLine:wr,lastLine:pn}=Ot(_r,rr);return wr===pn&&rr.pos!==rr.end?at(Rt,rr,!0):ar(Rt,rr,!0)}function Qt(Rt,rr){let _r=_.getCurrentSourceFile(Rt),wr=[],{pos:pn}=rr,{end:tn}=rr;pn===tn&&(tn+=Boe(_r,pn)?2:1);for(let lr=pn;lr<=tn;lr++){let cn=EE(_r,lr);if(cn){switch(cn.kind){case 2:wr.push(...ar(Rt,{end:cn.end,pos:cn.pos+1},!1));break;case 3:wr.push(...at(Rt,{end:cn.end,pos:cn.pos+1},!1))}lr=cn.end+1}}return wr}function pr({openingElement:Rt,closingElement:rr,parent:_r}){return!OA(Rt.tagName,rr.tagName)||PS(_r)&&OA(Rt.tagName,_r.openingElement.tagName)&&pr(_r)}function Et({closingFragment:Rt,parent:rr}){return!!(Rt.flags&262144)||DA(rr)&&Et(rr)}function xr(Rt,rr,_r){let wr=_.getCurrentSourceFile(Rt),pn=rd.getRangeOfEnclosingComment(wr,rr);return pn&&(!_r||pn.kind===3)?CE(pn):void 0}function gi(Rt,rr){J();let _r=U(Rt);k.throwIfCancellationRequested();let wr=_r.text,pn=[];if(rr.length>0&&!gn(_r.fileName)){let bn=lr(),$r;for(;$r=bn.exec(wr);){k.throwIfCancellationRequested();let Uo=3;$.assert($r.length===rr.length+Uo);let Ys=$r[1],ec=$r.index+Ys.length;if(!EE(_r,ec))continue;let Ss;for(let Cp=0;Cp"("+tn($a.text)+")").join("|")+")",Ss=/(?:$|\*\/)/.source,Mp=/(?:.*?)/.source,Cp="("+ec+Mp+")",uu=Ys+Cp+Ss;return new RegExp(uu,"gim")}function cn(bn){return bn>=97&&bn<=122||bn>=65&&bn<=90||bn>=48&&bn<=57}function gn(bn){return bn.includes("/node_modules/")}}function Ye(Rt,rr,_r){return J(),Qae.getRenameInfo(f,U(Rt),rr,_r||{})}function er(Rt,rr,_r,wr,pn,tn){let[lr,cn]=typeof rr=="number"?[rr,void 0]:[rr.pos,rr.end];return{file:Rt,startPosition:lr,endPosition:cn,program:Z(),host:t,formatContext:rd.getFormatContext(wr,t),cancellationToken:k,preferences:_r,triggerReason:pn,kind:tn}}function Ne(Rt,rr,_r){return{file:Rt,program:Z(),host:t,span:rr,preferences:_r,cancellationToken:k}}function Y(Rt,rr){return gbe.getSmartSelectionRange(rr,_.getCurrentSourceFile(Rt))}function ot(Rt,rr,_r=u1,wr,pn,tn){J();let lr=U(Rt);return qF.getApplicableRefactors(er(lr,rr,_r,u1,wr,pn),tn)}function pe(Rt,rr,_r=u1){J();let wr=U(Rt),pn=$.checkDefined(f.getSourceFiles()),tn=VU(Rt),lr=lQ(er(wr,rr,_r,u1)),cn=M5e(lr?.all),gn=Wn(pn,bn=>{let $r=VU(bn.fileName);return!f?.isSourceFileFromExternalLibrary(wr)&&!(wr===U(bn.fileName)||tn===".ts"&&$r===".d.ts"||tn===".d.ts"&&Ca(t_(bn.fileName),"lib.")&&$r===".d.ts")&&(tn===$r||(tn===".tsx"&&$r===".ts"||tn===".jsx"&&$r===".js")&&!cn)?bn.fileName:void 0});return{newFileName:L5e(wr,f,t,lr),files:gn}}function Gt(Rt,rr,_r,wr,pn,tn=u1,lr){J();let cn=U(Rt);return qF.getEditsForRefactor(er(cn,_r,tn,rr),wr,pn,lr)}function mr(Rt,rr){return rr===0?{line:0,character:0}:M.toLineColumnOffset(Rt,rr)}function Ge(Rt,rr){J();let _r=JF.resolveCallHierarchyDeclaration(f,Vh(U(Rt),rr));return _r&&Dve(_r,wr=>JF.createCallHierarchyItem(f,wr))}function Mt(Rt,rr){J();let _r=U(Rt),wr=Ave(JF.resolveCallHierarchyDeclaration(f,rr===0?_r:Vh(_r,rr)));return wr?JF.getIncomingCalls(f,wr,k):[]}function Ir(Rt,rr){J();let _r=U(Rt),wr=Ave(JF.resolveCallHierarchyDeclaration(f,rr===0?_r:Vh(_r,rr)));return wr?JF.getOutgoingCalls(f,wr):[]}function ii(Rt,rr,_r=u1){J();let wr=U(Rt);return pbe.provideInlayHints(Ne(wr,rr,_r))}function Rn(Rt,rr,_r,wr,pn){return _be.mapCode(_.getCurrentSourceFile(Rt),rr,_r,t,rd.getFormatContext(wr,t),pn)}let zn={dispose:_e,cleanupSemanticCache:ae,getSyntacticDiagnostics:me,getSemanticDiagnostics:le,getRegionSemanticDiagnostics:Oe,getSuggestionDiagnostics:de,getCompilerOptionsDiagnostics:ze,getSyntacticClassifications:$o,getSemanticClassifications:oo,getEncodedSyntacticClassifications:ft,getEncodedSemanticClassifications:Oi,getCompletionsAtPosition:ut,getCompletionEntryDetails:je,getCompletionEntrySymbol:ve,getSignatureHelpItems:Qn,getQuickInfoAtPosition:Le,getDefinitionAtPosition:_t,getDefinitionAndBoundSpan:Se,getImplementationAtPosition:Qe,getTypeDefinitionAtPosition:tt,getReferencesAtPosition:Kt,findReferences:nn,getFileReferences:Nn,getDocumentHighlights:We,getNameOrDottedNameSpan:is,getBreakpointStatementAtPosition:sr,getNavigateToItems:$t,getRenameInfo:Ye,getSmartSelectionRange:Y,findRenameLocations:St,getNavigationBarItems:uo,getNavigationTree:Wa,getOutliningSpans:Ht,getTodoComments:gi,getBraceMatchingAtPosition:ai,getIndentationAtPosition:vo,getFormattingEditsForRange:Eo,getFormattingEditsForDocument:ya,getFormattingEditsAfterKeystroke:Ls,getDocCommentTemplateAtPosition:Bt,isValidBraceCompletionAtPosition:ye,getJsxClosingTagAtPosition:et,getLinkedEditingRangeAtPosition:Ct,getSpanOfEnclosingComment:xr,getCodeFixesAtPosition:yc,getCombinedCodeFix:Cn,applyCodeActionCommand:ur,organizeImports:Es,getEditsForFileRename:Dt,getEmitOutput:Dr,getNonBoundSourceFile:Ko,getProgram:Z,getCurrentProgram:()=>f,getAutoImportProvider:Q,updateIsDefinitionOfReferencedSymbols:re,getApplicableRefactors:ot,getEditsForRefactor:Gt,getMoveToRefactoringFileSuggestions:pe,toLineColumnOffset:mr,getSourceMapper:()=>M,clearSourceMapperCache:()=>M.clearCache(),prepareCallHierarchy:Ge,provideCallHierarchyIncomingCalls:Mt,provideCallHierarchyOutgoingCalls:Ir,toggleLineComment:ar,toggleMultilineComment:at,commentSelection:Zt,uncommentSelection:Qt,provideInlayHints:ii,getSupportedCodeFixes:gSe,preparePasteEditsForFile:Ve,getPasteEdits:nt,mapCode:Rn};switch(u){case 0:break;case 1:tgt.forEach(Rt=>zn[Rt]=()=>{throw new Error(`LanguageService Operation: ${Rt} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:_dr.forEach(Rt=>zn[Rt]=()=>{throw new Error(`LanguageService Operation: ${Rt} not allowed in LanguageServiceMode.Syntactic`)});break;default:$.assertNever(u)}return zn}function vSe(t){return t.nameTable||ddr(t),t.nameTable}function ddr(t){let n=t.nameTable=new Map;t.forEachChild(function a(c){if(ct(c)&&!B1e(c)&&c.escapedText||jy(c)&&fdr(c)){let u=DU(c);n.set(u,n.get(u)===void 0?c.pos:-1)}else if(Aa(c)){let u=c.escapedText;n.set(u,n.get(u)===void 0?c.pos:-1)}if(Is(c,a),hy(c))for(let u of c.jsDoc)Is(u,a)})}function fdr(t){return Eb(t)||t.parent.kind===284||gdr(t)||KG(t)}function dQ(t){let n=mdr(t);return n&&(Lc(n.parent)||xP(n.parent))?n:void 0}function mdr(t){switch(t.kind){case 11:case 15:case 9:if(t.parent.kind===168)return dme(t.parent.parent)?t.parent.parent:void 0;case 80:case 296:return dme(t.parent)&&(t.parent.parent.kind===211||t.parent.parent.kind===293)&&t.parent.name===t?t.parent:void 0}}function hdr(t,n){let a=dQ(t);if(a){let c=n.getContextualType(a.parent),u=c&&Iae(a,n,c,!1);if(u&&u.length===1)return To(u)}return n.getSymbolAtLocation(t)}function Iae(t,n,a,c){let u=HK(t.name);if(!u)return j;if(!a.isUnion()){let y=a.getProperty(u);return y?[y]:j}let _=Lc(t.parent)||xP(t.parent)?yr(a.types,y=>!n.isTypeInvalidDueToUnionDiscriminant(y,t.parent)):a.types,f=Wn(_,y=>y.getProperty(u));if(c&&(f.length===0||f.length===a.types.length)){let y=a.getProperty(u);if(y)return[y]}return!_.length&&!f.length?Wn(a.types,y=>y.getProperty(u)):rf(f,Ng)}function gdr(t){return t&&t.parent&&t.parent.kind===213&&t.parent.argumentExpression===t}function x9e(t){if(f_)return Xi(mo(Qs(f_.getExecutingFilePath())),kn(t));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}T4e(cdr());function rgt(t,n,a){let c=[];a=Hve(a,c);let u=Zn(t)?t:[t],_=bK(void 0,void 0,W,a,u,n,!0);return _.diagnostics=go(_.diagnostics,c),_}var SSe={};d(SSe,{spanInSourceFileAtLocation:()=>ydr});function ydr(t,n){if(t.isDeclarationFile)return;let a=la(t,n),c=t.getLineAndCharacterOfPosition(n).line;if(t.getLineAndCharacterOfPosition(a.getStart(t)).line>c){let C=vd(a.pos,t);if(!C||t.getLineAndCharacterOfPosition(C.getEnd()).line!==c)return;a=C}if(a.flags&33554432)return;return T(a);function u(C,O){let F=kP(C)?Ut(C.modifiers,hd):void 0,M=F?_c(t.text,F.end):C.getStart(t);return Hu(M,(O||C).getEnd())}function _(C,O){return u(C,OP(O,O.parent,t))}function f(C,O){return C&&c===t.getLineAndCharacterOfPosition(C.getStart(t)).line?T(C):T(O)}function y(C,O,F){if(C){let M=C.indexOf(O);if(M>=0){let U=M,J=M+1;for(;U>0&&F(C[U-1]);)U--;for(;J0)return T(ze.declarations[0])}else return T(de.initializer)}function ae(de){if(de.initializer)return re(de);if(de.condition)return u(de.condition);if(de.incrementor)return u(de.incrementor)}function _e(de){let ze=X(de.elements,ut=>ut.kind!==233?ut:void 0);return ze?T(ze):de.parent.kind===209?u(de.parent):O(de.parent)}function me(de){$.assert(de.kind!==208&&de.kind!==207);let ze=de.kind===210?de.elements:de.properties,ut=X(ze,je=>je.kind!==233?je:void 0);return ut?T(ut):u(de.parent.kind===227?de.parent:de)}function le(de){switch(de.parent.kind){case 267:let ze=de.parent;return f(vd(de.pos,t,de.parent),ze.members.length?ze.members[0]:ze.getLastToken(t));case 264:let ut=de.parent;return f(vd(de.pos,t,de.parent),ut.members.length?ut.members[0]:ut.getLastToken(t));case 270:return f(de.parent.parent,de.parent.clauses[0])}return T(de.parent)}function Oe(de){switch(de.parent.kind){case 269:if(KT(de.parent.parent)!==1)return;case 267:case 264:return u(de);case 242:if(tP(de.parent))return u(de);case 300:return T(Yr(de.parent.statements));case 270:let ze=de.parent,ut=Yr(ze.clauses);return ut?T(Yr(ut.statements)):void 0;case 207:let je=de.parent;return T(Yr(je.elements)||je);default:if(kE(de.parent)){let ve=de.parent;return u(Yr(ve.properties)||ve)}return T(de.parent)}}function be(de){switch(de.parent.kind){case 208:let ze=de.parent;return u(Yr(ze.elements)||ze);default:if(kE(de.parent)){let ut=de.parent;return u(Yr(ut.elements)||ut)}return T(de.parent)}}function ue(de){return de.parent.kind===247||de.parent.kind===214||de.parent.kind===215?g(de):de.parent.kind===218?k(de):T(de.parent)}function De(de){switch(de.parent.kind){case 219:case 263:case 220:case 175:case 174:case 178:case 179:case 177:case 248:case 247:case 249:case 251:case 214:case 215:case 218:return g(de);default:return T(de.parent)}}function Ce(de){return Rs(de.parent)||de.parent.kind===304||de.parent.kind===170?g(de):T(de.parent)}function Ae(de){return de.parent.kind===217?k(de):T(de.parent)}function Fe(de){return de.parent.kind===247?_(de,de.parent.expression):T(de.parent)}function Be(de){return de.parent.kind===251?k(de):T(de.parent)}}}var JF={};d(JF,{createCallHierarchyItem:()=>T9e,getIncomingCalls:()=>Cdr,getOutgoingCalls:()=>Ldr,resolveCallHierarchyDeclaration:()=>ugt});function vdr(t){return(bu(t)||w_(t))&&Vp(t)}function ngt(t){return ps(t)||Oo(t)}function fQ(t){return(bu(t)||Iu(t)||w_(t))&&ngt(t.parent)&&t===t.parent.initializer&&ct(t.parent.name)&&(!!(dd(t.parent)&2)||ps(t.parent))}function igt(t){return Ta(t)||I_(t)||i_(t)||bu(t)||ed(t)||w_(t)||n_(t)||Ep(t)||G1(t)||T0(t)||mg(t)}function oM(t){return Ta(t)||I_(t)&&ct(t.name)||i_(t)||ed(t)||n_(t)||Ep(t)||G1(t)||T0(t)||mg(t)||vdr(t)||fQ(t)}function ogt(t){return Ta(t)?t:Vp(t)?t.name:fQ(t)?t.parent.name:$.checkDefined(t.modifiers&&wt(t.modifiers,agt))}function agt(t){return t.kind===90}function sgt(t,n){let a=ogt(n);return a&&t.getSymbolAtLocation(a)}function Sdr(t,n){if(Ta(n))return{text:n.fileName,pos:0,end:0};if((i_(n)||ed(n))&&!Vp(n)){let u=n.modifiers&&wt(n.modifiers,agt);if(u)return{text:"default",pos:u.getStart(),end:u.getEnd()}}if(n_(n)){let u=n.getSourceFile(),_=_c(u.text,ES(n).pos),f=_+6,y=t.getTypeChecker(),g=y.getSymbolAtLocation(n.parent);return{text:`${g?`${y.symbolToString(g,n.parent)} `:""}static {}`,pos:_,end:f}}let a=fQ(n)?n.parent.name:$.checkDefined(cs(n),"Expected call hierarchy item to have a name"),c=ct(a)?Zi(a):jy(a)?a.text:dc(a)&&jy(a.expression)?a.expression.text:void 0;if(c===void 0){let u=t.getTypeChecker(),_=u.getSymbolAtLocation(a);_&&(c=u.symbolToString(_,n))}if(c===void 0){let u=b0e();c=jR(_=>u.writeNode(4,n,n.getSourceFile(),_))}return{text:c,pos:a.getStart(),end:a.getEnd()}}function bdr(t){var n,a,c,u;if(fQ(t))return ps(t.parent)&&Co(t.parent.parent)?w_(t.parent.parent)?(n=Q$(t.parent.parent))==null?void 0:n.getText():(a=t.parent.parent.name)==null?void 0:a.getText():wS(t.parent.parent.parent.parent)&&ct(t.parent.parent.parent.parent.parent.name)?t.parent.parent.parent.parent.parent.name.getText():void 0;switch(t.kind){case 178:case 179:case 175:return t.parent.kind===211?(c=Q$(t.parent))==null?void 0:c.getText():(u=cs(t.parent))==null?void 0:u.getText();case 263:case 264:case 268:if(wS(t.parent)&&ct(t.parent.parent.name))return t.parent.parent.name.getText()}}function cgt(t,n){if(n.body)return n;if(kp(n))return Rx(n.parent);if(i_(n)||Ep(n)){let a=sgt(t,n);return a&&a.valueDeclaration&&lu(a.valueDeclaration)&&a.valueDeclaration.body?a.valueDeclaration:void 0}return n}function lgt(t,n){let a=sgt(t,n),c;if(a&&a.declarations){let u=zp(a.declarations),_=Cr(a.declarations,g=>({file:g.getSourceFile().fileName,pos:g.pos}));u.sort((g,k)=>Su(_[g].file,_[k].file)||_[g].pos-_[k].pos);let f=Cr(u,g=>a.declarations[g]),y;for(let g of f)oM(g)&&((!y||y.parent!==g.parent||y.end!==g.pos)&&(c=jt(c,g)),y=g)}return c}function bSe(t,n){return n_(n)?n:lu(n)?cgt(t,n)??lgt(t,n)??n:lgt(t,n)??n}function ugt(t,n){let a=t.getTypeChecker(),c=!1;for(;;){if(oM(n))return bSe(a,n);if(igt(n)){let u=fn(n,oM);return u&&bSe(a,u)}if(Eb(n)){if(oM(n.parent))return bSe(a,n.parent);if(igt(n.parent)){let u=fn(n.parent,oM);return u&&bSe(a,u)}return ngt(n.parent)&&n.parent.initializer&&fQ(n.parent.initializer)?n.parent.initializer:void 0}if(kp(n))return oM(n.parent)?n.parent:void 0;if(n.kind===126&&n_(n.parent)){n=n.parent;continue}if(Oo(n)&&n.initializer&&fQ(n.initializer))return n.initializer;if(!c){let u=a.getSymbolAtLocation(n);if(u&&(u.flags&2097152&&(u=a.getAliasedSymbol(u)),u.valueDeclaration)){c=!0,n=u.valueDeclaration;continue}}return}}function T9e(t,n){let a=n.getSourceFile(),c=Sdr(t,n),u=bdr(n),_=NP(n),f=Kz(n),y=Hu(_c(a.text,n.getFullStart(),!1,!0),n.getEnd()),g=Hu(c.pos,c.end);return{file:a.fileName,kind:_,kindModifiers:f,name:c.text,containerName:u,span:y,selectionSpan:g}}function xdr(t){return t!==void 0}function Tdr(t){if(t.kind===Pu.EntryKind.Node){let{node:n}=t;if(R1e(n,!0,!0)||XFe(n,!0,!0)||YFe(n,!0,!0)||e7e(n,!0,!0)||WL(n)||$1e(n)){let a=n.getSourceFile();return{declaration:fn(n,oM)||a,range:tve(n,a)}}}}function pgt(t){return hl(t.declaration)}function Edr(t,n){return{from:t,fromSpans:n}}function kdr(t,n){return Edr(T9e(t,n[0].declaration),Cr(n,a=>CE(a.range)))}function Cdr(t,n,a){if(Ta(n)||I_(n)||n_(n))return[];let c=ogt(n),u=yr(Pu.findReferenceOrRenameEntries(t,a,t.getSourceFiles(),c,0,{use:Pu.FindReferencesUse.References},Tdr),xdr);return u?Pg(u,pgt,_=>kdr(t,_)):[]}function Ddr(t,n){function a(u){let _=xA(u)?u.tag:Em(u)?u.tagName:wu(u)||n_(u)?u:u.expression,f=ugt(t,_);if(f){let y=tve(_,u.getSourceFile());if(Zn(f))for(let g of f)n.push({declaration:g,range:y});else n.push({declaration:f,range:y})}}function c(u){if(u&&!(u.flags&33554432)){if(oM(u)){if(Co(u))for(let _ of u.members)_.name&&dc(_.name)&&c(_.name.expression);return}switch(u.kind){case 80:case 272:case 273:case 279:case 265:case 266:return;case 176:a(u);return;case 217:case 235:c(u.expression);return;case 261:case 170:c(u.name),c(u.initializer);return;case 214:a(u),c(u.expression),X(u.arguments,c);return;case 215:a(u),c(u.expression),X(u.arguments,c);return;case 216:a(u),c(u.tag),c(u.template);return;case 287:case 286:a(u),c(u.tagName),c(u.attributes);return;case 171:a(u),c(u.expression);return;case 212:case 213:a(u),Is(u,c);break;case 239:c(u.expression);return}vS(u)||Is(u,c)}}return c}function Adr(t,n){X(t.statements,n)}function wdr(t,n){!ko(t,128)&&t.body&&wS(t.body)&&X(t.body.statements,n)}function Idr(t,n,a){let c=cgt(t,n);c&&(X(c.parameters,a),a(c.body))}function Pdr(t,n){n(t.body)}function Ndr(t,n){X(t.modifiers,n);let a=aP(t);a&&n(a.expression);for(let c of t.members)l1(c)&&X(c.modifiers,n),ps(c)?n(c.initializer):kp(c)&&c.body?(X(c.parameters,n),n(c.body)):n_(c)&&n(c)}function Odr(t,n){let a=[],c=Ddr(t,a);switch(n.kind){case 308:Adr(n,c);break;case 268:wdr(n,c);break;case 263:case 219:case 220:case 175:case 178:case 179:Idr(t.getTypeChecker(),n,c);break;case 264:case 232:Ndr(n,c);break;case 176:Pdr(n,c);break;default:$.assertNever(n)}return a}function Fdr(t,n){return{to:t,fromSpans:n}}function Rdr(t,n){return Fdr(T9e(t,n[0].declaration),Cr(n,a=>CE(a.range)))}function Ldr(t,n){return n.flags&33554432||G1(n)?[]:Pg(Odr(t,n),pgt,a=>Rdr(t,a))}var E9e={};d(E9e,{v2020:()=>_gt});var _gt={};d(_gt,{TokenEncodingConsts:()=>Bht,TokenModifier:()=>Uht,TokenType:()=>$ht,getEncodedSemanticClassifications:()=>g9e,getSemanticClassifications:()=>zht});var Im={};d(Im,{PreserveOptionalFlags:()=>Cvt,addNewNodeForMemberSymbol:()=>Dvt,codeFixAll:()=>Vl,createCodeFixAction:()=>Xs,createCodeFixActionMaybeFixAll:()=>D9e,createCodeFixActionWithoutFixAll:()=>wv,createCombinedCodeActions:()=>VF,createFileTextChanges:()=>dgt,createImportAdder:()=>BP,createImportSpecifierResolver:()=>Vfr,createMissingMemberNodes:()=>HRe,createSignatureDeclarationFromCallExpression:()=>KRe,createSignatureDeclarationFromSignature:()=>GSe,createStubbedBody:()=>Mae,eachDiagnostic:()=>WF,findAncestorMatchingSpan:()=>rLe,generateAccessorFromProperty:()=>Rvt,getAccessorConvertiblePropertyAtPosition:()=>jvt,getAllFixes:()=>$dr,getFixes:()=>Bdr,getImportCompletionAction:()=>Wfr,getImportKind:()=>NSe,getJSDocTypedefNodes:()=>qfr,getNoopSymbolTrackerWithResolver:()=>sM,getPromoteTypeOnlyCompletionAction:()=>Gfr,getSupportedErrorCodes:()=>Mdr,importFixName:()=>Ryt,importSymbols:()=>C3,parameterShouldGetTypeFromJSDoc:()=>Jgt,registerCodeFix:()=>gc,setJsonCompilerOptionValue:()=>eLe,setJsonCompilerOptionValues:()=>YRe,tryGetAutoImportableReferenceFromTypeNode:()=>$P,typeNodeToAutoImportableTypeNode:()=>QRe,typePredicateToAutoImportableTypeNode:()=>Ivt,typeToAutoImportableTypeNode:()=>HSe,typeToMinimizedReferenceType:()=>wvt});var k9e=d_(),C9e=new Map;function wv(t,n,a){return A9e(t,FP(a),n,void 0,void 0)}function Xs(t,n,a,c,u,_){return A9e(t,FP(a),n,c,FP(u),_)}function D9e(t,n,a,c,u,_){return A9e(t,FP(a),n,c,u&&FP(u),_)}function A9e(t,n,a,c,u,_){return{fixName:t,description:n,changes:a,fixId:c,fixAllDescription:u,commands:_?[_]:void 0}}function gc(t){for(let n of t.errorCodes)w9e=void 0,k9e.add(String(n),t);if(t.fixIds)for(let n of t.fixIds)$.assert(!C9e.has(n)),C9e.set(n,t)}var w9e;function Mdr(){return w9e??(w9e=so(k9e.keys()))}function jdr(t,n){let{errorCodes:a}=t,c=0;for(let _ of n)if(un(a,_.code)&&c++,c>1)break;let u=c<2;return({fixId:_,fixAllDescription:f,...y})=>u?y:{...y,fixId:_,fixAllDescription:f}}function Bdr(t){let n=fgt(t),a=k9e.get(String(t.errorCode));return an(a,c=>Cr(c.getCodeActions(t),jdr(c,n)))}function $dr(t){return C9e.get(Ba(t.fixId,Ni)).getAllCodeActions(t)}function VF(t,n){return{changes:t,commands:n}}function dgt(t,n){return{fileName:t,textChanges:n}}function Vl(t,n,a){let c=[],u=ki.ChangeTracker.with(t,_=>WF(t,n,f=>a(_,f,c)));return VF(u,c.length===0?void 0:c)}function WF(t,n,a){for(let c of fgt(t))un(n,c.code)&&a(c)}function fgt({program:t,sourceFile:n,cancellationToken:a}){let c=[...t.getSemanticDiagnostics(n,a),...t.getSyntacticDiagnostics(n,a),...Jve(n,t,a)];return fg(t.getCompilerOptions())&&c.push(...t.getDeclarationDiagnostics(n,a)),c}var I9e="addConvertToUnknownForNonOverlappingTypes",mgt=[x.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];gc({errorCodes:mgt,getCodeActions:function(n){let a=ggt(n.sourceFile,n.span.start);if(a===void 0)return;let c=ki.ChangeTracker.with(n,u=>hgt(u,n.sourceFile,a));return[Xs(I9e,c,x.Add_unknown_conversion_for_non_overlapping_types,I9e,x.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[I9e],getAllCodeActions:t=>Vl(t,mgt,(n,a)=>{let c=ggt(a.file,a.start);c&&hgt(n,a.file,c)})});function hgt(t,n,a){let c=gL(a)?W.createAsExpression(a.expression,W.createKeywordTypeNode(159)):W.createTypeAssertion(W.createKeywordTypeNode(159),a.expression);t.replaceNode(n,a.expression,c)}function ggt(t,n){if(!Ei(t))return fn(la(t,n),a=>gL(a)||qne(a))}gc({errorCodes:[x.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,x.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,x.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(n){let{sourceFile:a}=n,c=ki.ChangeTracker.with(n,u=>{let _=W.createExportDeclaration(void 0,!1,W.createNamedExports([]),void 0);u.insertNodeAtEndOfScope(a,a,_)});return[wv("addEmptyExportDeclaration",c,x.Add_export_to_make_this_file_into_a_module)]}});var P9e="addMissingAsync",ygt=[x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,x.Type_0_is_not_assignable_to_type_1.code,x.Type_0_is_not_comparable_to_type_1.code];gc({fixIds:[P9e],errorCodes:ygt,getCodeActions:function(n){let{sourceFile:a,errorCode:c,cancellationToken:u,program:_,span:f}=n,y=wt(_.getTypeChecker().getDiagnostics(a,u),zdr(f,c)),g=y&&y.relatedInformation&&wt(y.relatedInformation,C=>C.code===x.Did_you_mean_to_mark_this_function_as_async.code),k=Sgt(a,g);return k?[vgt(n,k,C=>ki.ChangeTracker.with(n,C))]:void 0},getAllCodeActions:t=>{let{sourceFile:n}=t,a=new Set;return Vl(t,ygt,(c,u)=>{let _=u.relatedInformation&&wt(u.relatedInformation,g=>g.code===x.Did_you_mean_to_mark_this_function_as_async.code),f=Sgt(n,_);return f?vgt(t,f,g=>(g(c),[]),a):void 0})}});function vgt(t,n,a,c){let u=a(_=>Udr(_,t.sourceFile,n,c));return Xs(P9e,u,x.Add_async_modifier_to_containing_function,P9e,x.Add_all_missing_async_modifiers)}function Udr(t,n,a,c){if(c&&c.has(hl(a)))return;c?.add(hl(a));let u=W.replaceModifiers(Il(a,!0),W.createNodeArray(W.createModifiersFromModifierFlags(_E(a)|1024)));t.replaceNode(n,a,u)}function Sgt(t,n){if(!n)return;let a=la(t,n.start);return fn(a,u=>u.getStart(t)Xn(n)?"quit":(Iu(u)||Ep(u)||bu(u)||i_(u))&&XL(n,yh(u,t)))}function zdr(t,n){return({start:a,length:c,relatedInformation:u,code:_})=>Kn(a)&&Kn(c)&&XL({start:a,length:c},t)&&_===n&&!!u&&Pt(u,f=>f.code===x.Did_you_mean_to_mark_this_function_as_async.code)}var N9e="addMissingAwait",bgt=x.Property_0_does_not_exist_on_type_1.code,xgt=[x.This_expression_is_not_callable.code,x.This_expression_is_not_constructable.code],O9e=[x.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,x.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,x.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,x.Operator_0_cannot_be_applied_to_type_1.code,x.Operator_0_cannot_be_applied_to_types_1_and_2.code,x.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,x.This_condition_will_always_return_true_since_this_0_is_always_defined.code,x.Type_0_is_not_an_array_type.code,x.Type_0_is_not_an_array_type_or_a_string_type.code,x.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,x.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,x.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,x.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,x.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,bgt,...xgt];gc({fixIds:[N9e],errorCodes:O9e,getCodeActions:function(n){let{sourceFile:a,errorCode:c,span:u,cancellationToken:_,program:f}=n,y=Tgt(a,c,u,_,f);if(!y)return;let g=n.program.getTypeChecker(),k=T=>ki.ChangeTracker.with(n,T);return Bc([Egt(n,y,c,g,k),kgt(n,y,c,g,k)])},getAllCodeActions:t=>{let{sourceFile:n,program:a,cancellationToken:c}=t,u=t.program.getTypeChecker(),_=new Set;return Vl(t,O9e,(f,y)=>{let g=Tgt(n,y.code,y,c,a);if(!g)return;let k=T=>(T(f),[]);return Egt(t,g,y.code,u,k,_)||kgt(t,g,y.code,u,k,_)})}});function Tgt(t,n,a,c,u){let _=Cve(t,a);return _&&qdr(t,n,a,c,u)&&Cgt(_)?_:void 0}function Egt(t,n,a,c,u,_){let{sourceFile:f,program:y,cancellationToken:g}=t,k=Jdr(n,f,g,y,c);if(k){let T=u(C=>{X(k.initializers,({expression:O})=>F9e(C,a,f,c,O,_)),_&&k.needsSecondPassForFixAll&&F9e(C,a,f,c,n,_)});return wv("addMissingAwaitToInitializer",T,k.initializers.length===1?[x.Add_await_to_initializer_for_0,k.initializers[0].declarationSymbol.name]:x.Add_await_to_initializers)}}function kgt(t,n,a,c,u,_){let f=u(y=>F9e(y,a,t.sourceFile,c,n,_));return Xs(N9e,f,x.Add_await,N9e,x.Fix_all_expressions_possibly_missing_await)}function qdr(t,n,a,c,u){let f=u.getTypeChecker().getDiagnostics(t,c);return Pt(f,({start:y,length:g,relatedInformation:k,code:T})=>Kn(y)&&Kn(g)&&XL({start:y,length:g},a)&&T===n&&!!k&&Pt(k,C=>C.code===x.Did_you_forget_to_use_await.code))}function Jdr(t,n,a,c,u){let _=Vdr(t,u);if(!_)return;let f=_.isCompleteFix,y;for(let g of _.identifiers){let k=u.getSymbolAtLocation(g);if(!k)continue;let T=Ci(k.valueDeclaration,Oo),C=T&&Ci(T.name,ct),O=mA(T,244);if(!T||!O||T.type||!T.initializer||O.getSourceFile()!==n||ko(O,32)||!C||!Cgt(T.initializer)){f=!1;continue}let F=c.getSemanticDiagnostics(n,a);if(Pu.Core.eachSymbolReferenceInFile(C,u,n,U=>g!==U&&!Wdr(U,F,n,u))){f=!1;continue}(y||(y=[])).push({expression:T.initializer,declarationSymbol:k})}return y&&{initializers:y,needsSecondPassForFixAll:!f}}function Vdr(t,n){if(no(t.parent)&&ct(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(ct(t))return{identifiers:[t],isCompleteFix:!0};if(wi(t)){let a,c=!0;for(let u of[t.left,t.right]){let _=n.getTypeAtLocation(u);if(n.getPromisedTypeOfPromise(_)){if(!ct(u)){c=!1;continue}(a||(a=[])).push(u)}}return a&&{identifiers:a,isCompleteFix:c}}}function Wdr(t,n,a,c){let u=no(t.parent)?t.parent.name:wi(t.parent)?t.parent:t,_=wt(n,f=>f.start===u.getStart(a)&&f.start+f.length===u.getEnd());return _&&un(O9e,_.code)||c.getTypeAtLocation(u).flags&1}function Cgt(t){return t.flags&65536||!!fn(t,n=>n.parent&&Iu(n.parent)&&n.parent.body===n||Vs(n)&&(n.parent.kind===263||n.parent.kind===219||n.parent.kind===220||n.parent.kind===175))}function F9e(t,n,a,c,u,_){if($H(u.parent)&&!u.parent.awaitModifier){let f=c.getTypeAtLocation(u),y=c.getAnyAsyncIterableType();if(y&&c.isTypeAssignableTo(f,y)){let g=u.parent;t.replaceNode(a,g,W.updateForOfStatement(g,W.createToken(135),g.initializer,g.expression,g.statement));return}}if(wi(u))for(let f of[u.left,u.right]){if(_&&ct(f)){let k=c.getSymbolAtLocation(f);if(k&&_.has(hc(k)))continue}let y=c.getTypeAtLocation(f),g=c.getPromisedTypeOfPromise(y)?W.createAwaitExpression(f):f;t.replaceNode(a,f,g)}else if(n===bgt&&no(u.parent)){if(_&&ct(u.parent.expression)){let f=c.getSymbolAtLocation(u.parent.expression);if(f&&_.has(hc(f)))return}t.replaceNode(a,u.parent.expression,W.createParenthesizedExpression(W.createAwaitExpression(u.parent.expression))),Dgt(t,u.parent.expression,a)}else if(un(xgt,n)&&mS(u.parent)){if(_&&ct(u)){let f=c.getSymbolAtLocation(u);if(f&&_.has(hc(f)))return}t.replaceNode(a,u,W.createParenthesizedExpression(W.createAwaitExpression(u))),Dgt(t,u,a)}else{if(_&&Oo(u.parent)&&ct(u.parent.name)){let f=c.getSymbolAtLocation(u.parent.name);if(f&&!Us(_,hc(f)))return}t.replaceNode(a,u,W.createAwaitExpression(u))}}function Dgt(t,n,a){let c=vd(n.pos,a);c&&eae(c.end,c.parent,a)&&t.insertText(a,n.getStart(a),";")}var R9e="addMissingConst",Agt=[x.Cannot_find_name_0.code,x.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];gc({errorCodes:Agt,getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>wgt(c,n.sourceFile,n.span.start,n.program));if(a.length>0)return[Xs(R9e,a,x.Add_const_to_unresolved_variable,R9e,x.Add_const_to_all_unresolved_variables)]},fixIds:[R9e],getAllCodeActions:t=>{let n=new Set;return Vl(t,Agt,(a,c)=>wgt(a,c.file,c.start,t.program,n))}});function wgt(t,n,a,c,u){let _=la(n,a),f=fn(_,k=>M4(k.parent)?k.parent.initializer===k:Gdr(k)?!1:"quit");if(f)return xSe(t,f,n,u);let y=_.parent;if(wi(y)&&y.operatorToken.kind===64&&af(y.parent))return xSe(t,_,n,u);if(qf(y)){let k=c.getTypeChecker();return ht(y.elements,T=>Hdr(T,k))?xSe(t,y,n,u):void 0}let g=fn(_,k=>af(k.parent)?!0:Kdr(k)?!1:"quit");if(g){let k=c.getTypeChecker();return Igt(g,k)?xSe(t,g,n,u):void 0}}function xSe(t,n,a,c){(!c||Us(c,n))&&t.insertModifierBefore(a,87,n)}function Gdr(t){switch(t.kind){case 80:case 210:case 211:case 304:case 305:return!0;default:return!1}}function Hdr(t,n){let a=ct(t)?t:of(t,!0)&&ct(t.left)?t.left:void 0;return!!a&&!n.getSymbolAtLocation(a)}function Kdr(t){switch(t.kind){case 80:case 227:case 28:return!0;default:return!1}}function Igt(t,n){return wi(t)?t.operatorToken.kind===28?ht([t.left,t.right],a=>Igt(a,n)):t.operatorToken.kind===64&&ct(t.left)&&!n.getSymbolAtLocation(t.left):!1}var L9e="addMissingDeclareProperty",Pgt=[x.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];gc({errorCodes:Pgt,getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>Ngt(c,n.sourceFile,n.span.start));if(a.length>0)return[Xs(L9e,a,x.Prefix_with_declare,L9e,x.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[L9e],getAllCodeActions:t=>{let n=new Set;return Vl(t,Pgt,(a,c)=>Ngt(a,c.file,c.start,n))}});function Ngt(t,n,a,c){let u=la(n,a);if(!ct(u))return;let _=u.parent;_.kind===173&&(!c||Us(c,_))&&t.insertModifierBefore(n,138,_)}var M9e="addMissingInvocationForDecorator",Ogt=[x._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];gc({errorCodes:Ogt,getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>Fgt(c,n.sourceFile,n.span.start));return[Xs(M9e,a,x.Call_decorator_expression,M9e,x.Add_to_all_uncalled_decorators)]},fixIds:[M9e],getAllCodeActions:t=>Vl(t,Ogt,(n,a)=>Fgt(n,a.file,a.start))});function Fgt(t,n,a){let c=la(n,a),u=fn(c,hd);$.assert(!!u,"Expected position to be owned by a decorator.");let _=W.createCallExpression(u.expression,void 0,void 0);t.replaceNode(n,u.expression,_)}var j9e="addMissingResolutionModeImportAttribute",Rgt=[x.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code,x.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code];gc({errorCodes:Rgt,getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>Lgt(c,n.sourceFile,n.span.start,n.program,n.host,n.preferences));return[Xs(j9e,a,x.Add_resolution_mode_import_attribute,j9e,x.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]},fixIds:[j9e],getAllCodeActions:t=>Vl(t,Rgt,(n,a)=>Lgt(n,a.file,a.start,t.program,t.host,t.preferences))});function Lgt(t,n,a,c,u,_){var f,y,g;let k=la(n,a),T=fn(k,jf(fp,AS));$.assert(!!T,"Expected position to be owned by an ImportDeclaration or ImportType.");let C=Vg(n,_)===0,O=qO(T),F=!O||((f=h3(O.text,n.fileName,c.getCompilerOptions(),u,c.getModuleResolutionCache(),void 0,99).resolvedModule)==null?void 0:f.resolvedFileName)===((g=(y=c.getResolvedModuleFromModuleSpecifier(O,n))==null?void 0:y.resolvedModule)==null?void 0:g.resolvedFileName),M=T.attributes?W.updateImportAttributes(T.attributes,W.createNodeArray([...T.attributes.elements,W.createImportAttribute(W.createStringLiteral("resolution-mode",C),W.createStringLiteral(F?"import":"require",C))],T.attributes.elements.hasTrailingComma),T.attributes.multiLine):W.createImportAttributes(W.createNodeArray([W.createImportAttribute(W.createStringLiteral("resolution-mode",C),W.createStringLiteral(F?"import":"require",C))]));T.kind===273?t.replaceNode(n,T,W.updateImportDeclaration(T,T.modifiers,T.importClause,T.moduleSpecifier,M)):t.replaceNode(n,T,W.updateImportTypeNode(T,T.argument,M,T.qualifier,T.typeArguments))}var B9e="addNameToNamelessParameter",Mgt=[x.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];gc({errorCodes:Mgt,getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>jgt(c,n.sourceFile,n.span.start));return[Xs(B9e,a,x.Add_parameter_name,B9e,x.Add_names_to_all_parameters_without_names)]},fixIds:[B9e],getAllCodeActions:t=>Vl(t,Mgt,(n,a)=>jgt(n,a.file,a.start))});function jgt(t,n,a){let c=la(n,a),u=c.parent;if(!wa(u))return $.fail("Tried to add a parameter name to a non-parameter: "+$.formatSyntaxKind(c.kind));let _=u.parent.parameters.indexOf(u);$.assert(!u.type,"Tried to add a parameter name to a parameter that already had one."),$.assert(_>-1,"Parameter not found in parent parameter list.");let f=u.name.getEnd(),y=W.createTypeReferenceNode(u.name,void 0),g=Bgt(n,u);for(;g;)y=W.createArrayTypeNode(y),f=g.getEnd(),g=Bgt(n,g);let k=W.createParameterDeclaration(u.modifiers,u.dotDotDotToken,"arg"+_,u.questionToken,u.dotDotDotToken&&!jH(y)?W.createArrayTypeNode(y):y,u.initializer);t.replaceRange(n,y0(u.getStart(n),f),k)}function Bgt(t,n){let a=OP(n.name,n.parent,t);if(a&&a.kind===23&&xE(a.parent)&&wa(a.parent.parent))return a.parent.parent}var $gt="addOptionalPropertyUndefined",Qdr=[x.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,x.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];gc({errorCodes:Qdr,getCodeActions(t){let n=t.program.getTypeChecker(),a=Zdr(t.sourceFile,t.span,n);if(!a.length)return;let c=ki.ChangeTracker.with(t,u=>Ydr(u,a));return[wv($gt,c,x.Add_undefined_to_optional_property_type)]},fixIds:[$gt]});function Zdr(t,n,a){var c,u;let _=Ugt(Cve(t,n),a);if(!_)return j;let{source:f,target:y}=_,g=Xdr(f,y,a)?a.getTypeAtLocation(y.expression):a.getTypeAtLocation(y);return(u=(c=g.symbol)==null?void 0:c.declarations)!=null&&u.some(k=>Pn(k).fileName.match(/\.d\.ts$/))?j:a.getExactOptionalProperties(g)}function Xdr(t,n,a){return no(n)&&!!a.getExactOptionalProperties(a.getTypeAtLocation(n.expression)).length&&a.getTypeAtLocation(t)===a.getUndefinedType()}function Ugt(t,n){var a;if(t){if(wi(t.parent)&&t.parent.operatorToken.kind===64)return{source:t.parent.right,target:t.parent.left};if(Oo(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(Js(t.parent)){let c=n.getSymbolAtLocation(t.parent.expression);if(!c?.valueDeclaration||!NO(c.valueDeclaration.kind)||!Vt(t))return;let u=t.parent.arguments.indexOf(t);if(u===-1)return;let _=c.valueDeclaration.parameters[u].name;if(ct(_))return{source:t,target:_}}else if(td(t.parent)&&ct(t.parent.name)||im(t.parent)){let c=Ugt(t.parent.parent,n);if(!c)return;let u=n.getPropertyOfType(n.getTypeAtLocation(c.target),t.parent.name.text),_=(a=u?.declarations)==null?void 0:a[0];return _?{source:td(t.parent)?t.parent.initializer:t.parent.name,target:_}:void 0}}else return}function Ydr(t,n){for(let a of n){let c=a.valueDeclaration;if(c&&(Zm(c)||ps(c))&&c.type){let u=W.createUnionTypeNode([...c.type.kind===193?c.type.types:[c.type],W.createTypeReferenceNode("undefined")]);t.replaceNode(c.getSourceFile(),c.type,u)}}}var $9e="annotateWithTypeFromJSDoc",zgt=[x.JSDoc_types_may_be_moved_to_TypeScript_types.code];gc({errorCodes:zgt,getCodeActions(t){let n=qgt(t.sourceFile,t.span.start);if(!n)return;let a=ki.ChangeTracker.with(t,c=>Wgt(c,t.sourceFile,n));return[Xs($9e,a,x.Annotate_with_type_from_JSDoc,$9e,x.Annotate_everything_with_types_from_JSDoc)]},fixIds:[$9e],getAllCodeActions:t=>Vl(t,zgt,(n,a)=>{let c=qgt(a.file,a.start);c&&Wgt(n,a.file,c)})});function qgt(t,n){let a=la(t,n);return Ci(wa(a.parent)?a.parent.parent:a.parent,Jgt)}function Jgt(t){return efr(t)&&Vgt(t)}function Vgt(t){return lu(t)?t.parameters.some(Vgt)||!t.type&&!!iG(t):!t.type&&!!hv(t)}function Wgt(t,n,a){if(lu(a)&&(iG(a)||a.parameters.some(c=>!!hv(c)))){if(!a.typeParameters){let u=Vre(a);u.length&&t.insertTypeParameters(n,a,u)}let c=Iu(a)&&!Kl(a,21,n);c&&t.insertNodeBefore(n,To(a.parameters),W.createToken(21));for(let u of a.parameters)if(!u.type){let _=hv(u);_&&t.tryInsertTypeAnnotation(n,u,At(_,jP,Wo))}if(c&&t.insertNodeAfter(n,Sn(a.parameters),W.createToken(22)),!a.type){let u=iG(a);u&&t.tryInsertTypeAnnotation(n,a,At(u,jP,Wo))}}else{let c=$.checkDefined(hv(a),"A JSDocType for this declaration should exist");$.assert(!a.type,"The JSDocType decl should have a type"),t.tryInsertTypeAnnotation(n,a,At(c,jP,Wo))}}function efr(t){return lu(t)||t.kind===261||t.kind===172||t.kind===173}function jP(t){switch(t.kind){case 313:case 314:return W.createTypeReferenceNode("any",j);case 317:return rfr(t);case 316:return jP(t.type);case 315:return nfr(t);case 319:return ifr(t);case 318:return ofr(t);case 184:return sfr(t);case 323:return tfr(t);default:let n=Dn(t,jP,void 0);return Ai(n,1),n}}function tfr(t){let n=W.createTypeLiteralNode(Cr(t.jsDocPropertyTags,a=>W.createPropertySignature(void 0,ct(a.name)?a.name:a.name.right,CH(a)?W.createToken(58):void 0,a.typeExpression&&At(a.typeExpression.type,jP,Wo)||W.createKeywordTypeNode(133))));return Ai(n,1),n}function rfr(t){return W.createUnionTypeNode([At(t.type,jP,Wo),W.createTypeReferenceNode("undefined",j)])}function nfr(t){return W.createUnionTypeNode([At(t.type,jP,Wo),W.createTypeReferenceNode("null",j)])}function ifr(t){return W.createArrayTypeNode(At(t.type,jP,Wo))}function ofr(t){return W.createFunctionTypeNode(j,t.parameters.map(afr),t.type??W.createKeywordTypeNode(133))}function afr(t){let n=t.parent.parameters.indexOf(t),a=t.type.kind===319&&n===t.parent.parameters.length-1,c=t.name||(a?"rest":"arg"+n),u=a?W.createToken(26):t.dotDotDotToken;return W.createParameterDeclaration(t.modifiers,u,c,t.questionToken,At(t.type,jP,Wo),t.initializer)}function sfr(t){let n=t.typeName,a=t.typeArguments;if(ct(t.typeName)){if(Cre(t))return cfr(t);let c=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":c=c.toLowerCase();break;case"array":case"date":case"promise":c=c[0].toUpperCase()+c.slice(1);break}n=W.createIdentifier(c),(c==="Array"||c==="Promise")&&!t.typeArguments?a=W.createNodeArray([W.createTypeReferenceNode("any",j)]):a=Bn(t.typeArguments,jP,Wo)}return W.createTypeReferenceNode(n,a)}function cfr(t){let n=W.createParameterDeclaration(void 0,void 0,t.typeArguments[0].kind===150?"n":"s",void 0,W.createTypeReferenceNode(t.typeArguments[0].kind===150?"number":"string",[]),void 0),a=W.createTypeLiteralNode([W.createIndexSignature(void 0,[n],t.typeArguments[1])]);return Ai(a,1),a}var U9e="convertFunctionToEs6Class",Ggt=[x.This_constructor_function_may_be_converted_to_a_class_declaration.code];gc({errorCodes:Ggt,getCodeActions(t){let n=ki.ChangeTracker.with(t,a=>Hgt(a,t.sourceFile,t.span.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()));return[Xs(U9e,n,x.Convert_function_to_an_ES2015_class,U9e,x.Convert_all_constructor_functions_to_classes)]},fixIds:[U9e],getAllCodeActions:t=>Vl(t,Ggt,(n,a)=>Hgt(n,a.file,a.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()))});function Hgt(t,n,a,c,u,_){let f=c.getSymbolAtLocation(la(n,a));if(!f||!f.valueDeclaration||!(f.flags&19))return;let y=f.valueDeclaration;if(i_(y)||bu(y))t.replaceNode(n,y,T(y));else if(Oo(y)){let C=k(y);if(!C)return;let O=y.parent.parent;Df(y.parent)&&y.parent.declarations.length>1?(t.delete(n,y),t.insertNodeAfter(n,O,C)):t.replaceNode(n,O,C)}function g(C){let O=[];return C.exports&&C.exports.forEach(U=>{if(U.name==="prototype"&&U.declarations){let J=U.declarations[0];if(U.declarations.length===1&&no(J)&&wi(J.parent)&&J.parent.operatorToken.kind===64&&Lc(J.parent.right)){let G=J.parent.right;M(G.symbol,void 0,O)}}else M(U,[W.createToken(126)],O)}),C.members&&C.members.forEach((U,J)=>{var G,Z,Q,re;if(J==="constructor"&&U.valueDeclaration){let ae=(re=(Q=(Z=(G=C.exports)==null?void 0:G.get("prototype"))==null?void 0:Z.declarations)==null?void 0:Q[0])==null?void 0:re.parent;ae&&wi(ae)&&Lc(ae.right)&&Pt(ae.right.properties,ESe)||t.delete(n,U.valueDeclaration.parent);return}M(U,void 0,O)}),O;function F(U,J){return wu(U)?no(U)&&ESe(U)?!0:Rs(J):ht(U.properties,G=>!!(Ep(G)||aG(G)||td(G)&&bu(G.initializer)&&G.name||ESe(G)))}function M(U,J,G){if(!(U.flags&8192)&&!(U.flags&4096))return;let Z=U.valueDeclaration,Q=Z.parent,re=Q.right;if(!F(Z,re)||Pt(G,Oe=>{let be=cs(Oe);return!!(be&&ct(be)&&Zi(be)===vp(U))}))return;let ae=Q.parent&&Q.parent.kind===245?Q.parent:Q;if(t.delete(n,ae),!re){G.push(W.createPropertyDeclaration(J,U.name,void 0,void 0,void 0));return}if(wu(Z)&&(bu(re)||Iu(re))){let Oe=Vg(n,u),be=lfr(Z,_,Oe);be&&_e(G,re,be);return}else if(Lc(re)){X(re.properties,Oe=>{(Ep(Oe)||aG(Oe))&&G.push(Oe),td(Oe)&&bu(Oe.initializer)&&_e(G,Oe.initializer,Oe.name),ESe(Oe)});return}else{if(ph(n)||!no(Z))return;let Oe=W.createPropertyDeclaration(J,Z.name,void 0,void 0,re);eM(Q.parent,Oe,n),G.push(Oe);return}function _e(Oe,be,ue){return bu(be)?me(Oe,be,ue):le(Oe,be,ue)}function me(Oe,be,ue){let De=go(J,TSe(be,134)),Ce=W.createMethodDeclaration(De,void 0,ue,void 0,void 0,be.parameters,void 0,be.body);eM(Q,Ce,n),Oe.push(Ce)}function le(Oe,be,ue){let De=be.body,Ce;De.kind===242?Ce=De:Ce=W.createBlock([W.createReturnStatement(De)]);let Ae=go(J,TSe(be,134)),Fe=W.createMethodDeclaration(Ae,void 0,ue,void 0,void 0,be.parameters,void 0,Ce);eM(Q,Fe,n),Oe.push(Fe)}}}function k(C){let O=C.initializer;if(!O||!bu(O)||!ct(C.name))return;let F=g(C.symbol);O.body&&F.unshift(W.createConstructorDeclaration(void 0,O.parameters,O.body));let M=TSe(C.parent.parent,95);return W.createClassDeclaration(M,C.name,void 0,void 0,F)}function T(C){let O=g(f);C.body&&O.unshift(W.createConstructorDeclaration(void 0,C.parameters,C.body));let F=TSe(C,95);return W.createClassDeclaration(F,C.name,void 0,void 0,O)}}function TSe(t,n){return l1(t)?yr(t.modifiers,a=>a.kind===n):void 0}function ESe(t){return t.name?!!(ct(t.name)&&t.name.text==="constructor"):!1}function lfr(t,n,a){if(no(t))return t.name;let c=t.argumentExpression;if(qh(c))return c;if(Sl(c))return Jd(c.text,$c(n))?W.createIdentifier(c.text):r3(c)?W.createStringLiteral(c.text,a===0):c}var z9e="convertToAsyncFunction",Kgt=[x.This_may_be_converted_to_an_async_function.code],kSe=!0;gc({errorCodes:Kgt,getCodeActions(t){kSe=!0;let n=ki.ChangeTracker.with(t,a=>Qgt(a,t.sourceFile,t.span.start,t.program.getTypeChecker()));return kSe?[Xs(z9e,n,x.Convert_to_async_function,z9e,x.Convert_all_to_async_functions)]:[]},fixIds:[z9e],getAllCodeActions:t=>Vl(t,Kgt,(n,a)=>Qgt(n,a.file,a.start,t.program.getTypeChecker()))});function Qgt(t,n,a,c){let u=la(n,a),_;if(ct(u)&&Oo(u.parent)&&u.parent.initializer&&lu(u.parent.initializer)?_=u.parent.initializer:_=Ci(My(la(n,a)),Gve),!_)return;let f=new Map,y=Ei(_),g=pfr(_,c),k=_fr(_,c,f);if(!Vve(k,c))return;let T=k.body&&Vs(k.body)?ufr(k.body,c):j,C={checker:c,synthNamesMap:f,setOfExpressionsToReturn:g,isInJSFile:y};if(!T.length)return;let O=_c(n.text,ES(_).pos);t.insertModifierAt(n,O,134,{suffix:" "});for(let F of T)if(Is(F,function M(U){if(Js(U)){let J=aM(U,U,C,!1);if(GF())return!0;t.replaceNodeWithNodes(n,F,J)}else if(!Rs(U)&&(Is(U,M),GF()))return!0}),GF())return}function ufr(t,n){let a=[];return sC(t,c=>{fae(c,n)&&a.push(c)}),a}function pfr(t,n){if(!t.body)return new Set;let a=new Set;return Is(t.body,function c(u){mQ(u,n,"then")?(a.add(hl(u)),X(u.arguments,c)):mQ(u,n,"catch")||mQ(u,n,"finally")?(a.add(hl(u)),Is(u,c)):Xgt(u,n)?a.add(hl(u)):Is(u,c)}),a}function mQ(t,n,a){if(!Js(t))return!1;let u=$K(t,a)&&n.getTypeAtLocation(t);return!!(u&&n.getPromisedTypeOfPromise(u))}function Zgt(t,n){return(ro(t)&4)!==0&&t.target===n}function CSe(t,n,a){if(t.expression.name.escapedText==="finally")return;let c=a.getTypeAtLocation(t.expression.expression);if(Zgt(c,a.getPromiseType())||Zgt(c,a.getPromiseLikeType()))if(t.expression.name.escapedText==="then"){if(n===Gr(t.arguments,0))return Gr(t.typeArguments,0);if(n===Gr(t.arguments,1))return Gr(t.typeArguments,1)}else return Gr(t.typeArguments,0)}function Xgt(t,n){return Vt(t)?!!n.getPromisedTypeOfPromise(n.getTypeAtLocation(t)):!1}function _fr(t,n,a){let c=new Map,u=d_();return Is(t,function _(f){if(!ct(f)){Is(f,_);return}let y=n.getSymbolAtLocation(f);if(y){let g=n.getTypeAtLocation(f),k=iyt(g,n),T=hc(y).toString();if(k&&!wa(f.parent)&&!lu(f.parent)&&!a.has(T)){let C=pi(k.parameters),O=C?.valueDeclaration&&wa(C.valueDeclaration)&&Ci(C.valueDeclaration.name,ct)||W.createUniqueName("result",16),F=Ygt(O,u);a.set(T,F),u.add(O.text,y)}else if(f.parent&&(wa(f.parent)||Oo(f.parent)||Vc(f.parent))){let C=f.text,O=u.get(C);if(O&&O.some(F=>F!==y)){let F=Ygt(f,u);c.set(T,F.identifier),a.set(T,F),u.add(C,y)}else{let F=Il(f);a.set(T,uq(F)),u.add(C,y)}}}}),wH(t,!0,_=>{if(Vc(_)&&ct(_.name)&&$y(_.parent)){let f=n.getSymbolAtLocation(_.name),y=f&&c.get(String(hc(f)));if(y&&y.text!==(_.name||_.propertyName).getText())return W.createBindingElement(_.dotDotDotToken,_.propertyName||_.name,y,_.initializer)}else if(ct(_)){let f=n.getSymbolAtLocation(_),y=f&&c.get(String(hc(f)));if(y)return W.createIdentifier(y.text)}})}function Ygt(t,n){let a=(n.get(t.text)||j).length,c=a===0?t:W.createIdentifier(t.text+"_"+a);return uq(c)}function GF(){return!kSe}function qA(){return kSe=!1,j}function aM(t,n,a,c,u){if(mQ(n,a.checker,"then"))return mfr(n,Gr(n.arguments,0),Gr(n.arguments,1),a,c,u);if(mQ(n,a.checker,"catch"))return ryt(n,Gr(n.arguments,0),a,c,u);if(mQ(n,a.checker,"finally"))return ffr(n,Gr(n.arguments,0),a,c,u);if(no(n))return aM(t,n.expression,a,c,u);let _=a.checker.getTypeAtLocation(n);return _&&a.checker.getPromisedTypeOfPromise(_)?($.assertNode(Ku(n).parent,no),hfr(t,n,a,c,u)):qA()}function DSe({checker:t},n){if(n.kind===106)return!0;if(ct(n)&&!ap(n)&&Zi(n)==="undefined"){let a=t.getSymbolAtLocation(n);return!a||t.isUndefinedSymbol(a)}return!1}function dfr(t){let n=W.createUniqueName(t.identifier.text,16);return uq(n)}function eyt(t,n,a){let c;return a&&!gQ(t,n)&&(hQ(a)?(c=a,n.synthNamesMap.forEach((u,_)=>{if(u.identifier.text===a.identifier.text){let f=dfr(a);n.synthNamesMap.set(_,f)}})):c=uq(W.createUniqueName("result",16),a.types),W9e(c)),c}function tyt(t,n,a,c,u){let _=[],f;if(c&&!gQ(t,n)){f=Il(W9e(c));let y=c.types,g=n.checker.getUnionType(y,2),k=n.isInJSFile?void 0:n.checker.typeToTypeNode(g,void 0,void 0),T=[W.createVariableDeclaration(f,void 0,k)],C=W.createVariableStatement(void 0,W.createVariableDeclarationList(T,1));_.push(C)}return _.push(a),u&&f&&vfr(u)&&_.push(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Il(cyt(u)),void 0,void 0,f)],2))),_}function ffr(t,n,a,c,u){if(!n||DSe(a,n))return aM(t,t.expression.expression,a,c,u);let _=eyt(t,a,u),f=aM(t,t.expression.expression,a,!0,_);if(GF())return qA();let y=J9e(n,c,void 0,void 0,t,a);if(GF())return qA();let g=W.createBlock(f),k=W.createBlock(y),T=W.createTryStatement(g,void 0,k);return tyt(t,a,T,_,u)}function ryt(t,n,a,c,u){if(!n||DSe(a,n))return aM(t,t.expression.expression,a,c,u);let _=ayt(n,a),f=eyt(t,a,u),y=aM(t,t.expression.expression,a,!0,f);if(GF())return qA();let g=J9e(n,c,f,_,t,a);if(GF())return qA();let k=W.createBlock(y),T=W.createCatchClause(_&&Il(Pae(_)),W.createBlock(g)),C=W.createTryStatement(k,T,void 0);return tyt(t,a,C,f,u)}function mfr(t,n,a,c,u,_){if(!n||DSe(c,n))return ryt(t,a,c,u,_);if(a&&!DSe(c,a))return qA();let f=ayt(n,c),y=aM(t.expression.expression,t.expression.expression,c,!0,f);if(GF())return qA();let g=J9e(n,u,_,f,t,c);return GF()?qA():go(y,g)}function hfr(t,n,a,c,u){if(gQ(t,a)){let _=Il(n);return c&&(_=W.createAwaitExpression(_)),[W.createReturnStatement(_)]}return ASe(u,W.createAwaitExpression(n),void 0)}function ASe(t,n,a){return!t||syt(t)?[W.createExpressionStatement(n)]:hQ(t)&&t.hasBeenDeclared?[W.createExpressionStatement(W.createAssignment(Il(V9e(t)),n))]:[W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Il(Pae(t)),void 0,a,n)],2))]}function q9e(t,n){if(n&&t){let a=W.createUniqueName("result",16);return[...ASe(uq(a),t,n),W.createReturnStatement(a)]}return[W.createReturnStatement(t)]}function J9e(t,n,a,c,u,_){var f;switch(t.kind){case 106:break;case 212:case 80:if(!c)break;let y=W.createCallExpression(Il(t),void 0,hQ(c)?[V9e(c)]:[]);if(gQ(u,_))return q9e(y,CSe(u,t,_.checker));let g=_.checker.getTypeAtLocation(t),k=_.checker.getSignaturesOfType(g,0);if(!k.length)return qA();let T=k[0].getReturnType(),C=ASe(a,W.createAwaitExpression(y),CSe(u,t,_.checker));return a&&a.types.push(_.checker.getAwaitedType(T)||T),C;case 219:case 220:{let O=t.body,F=(f=iyt(_.checker.getTypeAtLocation(t),_.checker))==null?void 0:f.getReturnType();if(Vs(O)){let M=[],U=!1;for(let J of O.statements)if(gy(J))if(U=!0,fae(J,_.checker))M=M.concat(oyt(_,J,n,a));else{let G=F&&J.expression?nyt(_.checker,F,J.expression):J.expression;M.push(...q9e(G,CSe(u,t,_.checker)))}else{if(n&&sC(J,AT))return qA();M.push(J)}return gQ(u,_)?M.map(J=>Il(J)):gfr(M,a,_,U)}else{let M=Wve(O,_.checker)?oyt(_,W.createReturnStatement(O),n,a):j;if(M.length>0)return M;if(F){let U=nyt(_.checker,F,O);if(gQ(u,_))return q9e(U,CSe(u,t,_.checker));{let J=ASe(a,U,void 0);return a&&a.types.push(_.checker.getAwaitedType(F)||F),J}}else return qA()}}default:return qA()}return j}function nyt(t,n,a){let c=Il(a);return t.getPromisedTypeOfPromise(n)?W.createAwaitExpression(c):c}function iyt(t,n){let a=n.getSignaturesOfType(t,0);return Yr(a)}function gfr(t,n,a,c){let u=[];for(let _ of t)if(gy(_)){if(_.expression){let f=Xgt(_.expression,a.checker)?W.createAwaitExpression(_.expression):_.expression;n===void 0?u.push(W.createExpressionStatement(f)):hQ(n)&&n.hasBeenDeclared?u.push(W.createExpressionStatement(W.createAssignment(V9e(n),f))):u.push(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Pae(n),void 0,void 0,f)],2)))}}else u.push(Il(_));return!c&&n!==void 0&&u.push(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Pae(n),void 0,void 0,W.createIdentifier("undefined"))],2))),u}function oyt(t,n,a,c){let u=[];return Is(n,function _(f){if(Js(f)){let y=aM(f,f,t,a,c);if(u=u.concat(y),u.length>0)return}else Rs(f)||Is(f,_)}),u}function ayt(t,n){let a=[],c;if(lu(t)){if(t.parameters.length>0){let g=t.parameters[0].name;c=u(g)}}else ct(t)?c=_(t):no(t)&&ct(t.name)&&(c=_(t.name));if(!c||"identifier"in c&&c.identifier.text==="undefined")return;return c;function u(g){if(ct(g))return _(g);let k=an(g.elements,T=>Id(T)?[]:[u(T.name)]);return yfr(g,k)}function _(g){let k=y(g),T=f(k);return T&&n.synthNamesMap.get(hc(T).toString())||uq(g,a)}function f(g){var k;return((k=Ci(g,gv))==null?void 0:k.symbol)??n.checker.getSymbolAtLocation(g)}function y(g){return g.original?g.original:g}}function syt(t){return t?hQ(t)?!t.identifier.text:ht(t.elements,syt):!0}function uq(t,n=[]){return{kind:0,identifier:t,types:n,hasBeenDeclared:!1,hasBeenReferenced:!1}}function yfr(t,n=j,a=[]){return{kind:1,bindingPattern:t,elements:n,types:a}}function V9e(t){return t.hasBeenReferenced=!0,t.identifier}function Pae(t){return hQ(t)?W9e(t):cyt(t)}function cyt(t){for(let n of t.elements)Pae(n);return t.bindingPattern}function W9e(t){return t.hasBeenDeclared=!0,t.identifier}function hQ(t){return t.kind===0}function vfr(t){return t.kind===1}function gQ(t,n){return!!t.original&&n.setOfExpressionsToReturn.has(hl(t.original))}gc({errorCodes:[x.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(t){let{sourceFile:n,program:a,preferences:c}=t,u=ki.ChangeTracker.with(t,_=>{if(bfr(n,a.getTypeChecker(),_,$c(a.getCompilerOptions()),Vg(n,c)))for(let y of a.getSourceFiles())Sfr(y,n,a,_,Vg(y,c))});return[wv("convertToEsModule",u,x.Convert_to_ES_module)]}});function Sfr(t,n,a,c,u){var _;for(let f of t.imports){let y=(_=a.getResolvedModuleFromModuleSpecifier(f,t))==null?void 0:_.resolvedModule;if(!y||y.resolvedFileName!==n.fileName)continue;let g=bU(f);switch(g.kind){case 272:c.replaceNode(t,g,IC(g.name,void 0,f,u));break;case 214:$h(g,!1)&&c.replaceNode(t,g,W.createPropertyAccessExpression(Il(g),"default"));break}}}function bfr(t,n,a,c,u){let _={original:Ffr(t),additional:new Set},f=xfr(t,n,_);Tfr(t,f,a);let y=!1,g;for(let k of yr(t.statements,h_)){let T=uyt(t,k,a,n,_,c,u);T&&ere(T,g??(g=new Map))}for(let k of yr(t.statements,T=>!h_(T))){let T=Efr(t,k,n,a,_,c,f,g,u);y=y||T}return g?.forEach((k,T)=>{a.replaceNode(t,T,k)}),y}function xfr(t,n,a){let c=new Map;return lyt(t,u=>{let{text:_}=u.name;!c.has(_)&&(the(u.name)||n.resolveName(_,u,111551,!0))&&c.set(_,wSe(`_${_}`,a))}),c}function Tfr(t,n,a){lyt(t,(c,u)=>{if(u)return;let{text:_}=c.name;a.replaceNode(t,c,W.createIdentifier(n.get(_)||_))})}function lyt(t,n){t.forEachChild(function a(c){if(no(c)&&CP(t,c.expression)&&ct(c.name)){let{parent:u}=c;n(c,wi(u)&&u.left===c&&u.operatorToken.kind===64)}c.forEachChild(a)})}function Efr(t,n,a,c,u,_,f,y,g){switch(n.kind){case 244:return uyt(t,n,c,a,u,_,g),!1;case 245:{let{expression:k}=n;switch(k.kind){case 214:return $h(k,!0)&&c.replaceNode(t,n,IC(void 0,void 0,k.arguments[0],g)),!1;case 227:{let{operatorToken:T}=k;return T.kind===64&&Cfr(t,a,k,c,f,y)}}}default:return!1}}function uyt(t,n,a,c,u,_,f){let{declarationList:y}=n,g=!1,k=Cr(y.declarations,T=>{let{name:C,initializer:O}=T;if(O){if(CP(t,O))return g=!0,pq([]);if($h(O,!0))return g=!0,Nfr(C,O.arguments[0],c,u,_,f);if(no(O)&&$h(O.expression,!0))return g=!0,kfr(C,O.name.text,O.expression.arguments[0],u,f)}return pq([W.createVariableStatement(void 0,W.createVariableDeclarationList([T],y.flags))])});if(g){a.replaceNodeWithNodes(t,n,an(k,C=>C.newImports));let T;return X(k,C=>{C.useSitesToUnqualify&&ere(C.useSitesToUnqualify,T??(T=new Map))}),T}}function kfr(t,n,a,c,u){switch(t.kind){case 207:case 208:{let _=wSe(n,c);return pq([fyt(_,n,a,u),ISe(void 0,t,W.createIdentifier(_))])}case 80:return pq([fyt(t.text,n,a,u)]);default:return $.assertNever(t,`Convert to ES module got invalid syntax form ${t.kind}`)}}function Cfr(t,n,a,c,u,_){let{left:f,right:y}=a;if(!no(f))return!1;if(CP(t,f))if(CP(t,y))c.delete(t,a.parent);else{let g=Lc(y)?Dfr(y,_):$h(y,!0)?wfr(y.arguments[0],n):void 0;return g?(c.replaceNodeWithNodes(t,a.parent,g[0]),g[1]):(c.replaceRangeWithText(t,y0(f.getStart(t),y.pos),"export default"),!0)}else CP(t,f.expression)&&Afr(t,a,c,u);return!1}function Dfr(t,n){let a=Bo(t.properties,c=>{switch(c.kind){case 178:case 179:case 305:case 306:return;case 304:return ct(c.name)?Pfr(c.name.text,c.initializer,n):void 0;case 175:return ct(c.name)?dyt(c.name.text,[W.createToken(95)],c,n):void 0;default:$.assertNever(c,`Convert to ES6 got invalid prop kind ${c.kind}`)}});return a&&[a,!1]}function Afr(t,n,a,c){let{text:u}=n.left.name,_=c.get(u);if(_!==void 0){let f=[ISe(void 0,_,n.right),K9e([W.createExportSpecifier(!1,_,u)])];a.replaceNodeWithNodes(t,n.parent,f)}else Ifr(n,t,a)}function wfr(t,n){let a=t.text,c=n.getSymbolAtLocation(t),u=c?c.exports:ie;return u.has("export=")?[[G9e(a)],!0]:u.has("default")?u.size>1?[[pyt(a),G9e(a)],!0]:[[G9e(a)],!0]:[[pyt(a)],!1]}function pyt(t){return K9e(void 0,t)}function G9e(t){return K9e([W.createExportSpecifier(!1,void 0,"default")],t)}function Ifr({left:t,right:n,parent:a},c,u){let _=t.name.text;if((bu(n)||Iu(n)||w_(n))&&(!n.name||n.name.text===_)){u.replaceRange(c,{pos:t.getStart(c),end:n.getStart(c)},W.createToken(95),{suffix:" "}),n.name||u.insertName(c,n,_);let f=Kl(a,27,c);f&&u.delete(c,f)}else u.replaceNodeRangeWithNodes(c,t.expression,Kl(t,25,c),[W.createToken(95),W.createToken(87)],{joiner:" ",suffix:" "})}function Pfr(t,n,a){let c=[W.createToken(95)];switch(n.kind){case 219:{let{name:_}=n;if(_&&_.text!==t)return u()}case 220:return dyt(t,c,n,a);case 232:return Lfr(t,c,n,a);default:return u()}function u(){return ISe(c,W.createIdentifier(t),H9e(n,a))}}function H9e(t,n){if(!n||!Pt(so(n.keys()),c=>zh(t,c)))return t;return Zn(t)?hge(t,!0,a):wH(t,!0,a);function a(c){if(c.kind===212){let u=n.get(c);return n.delete(c),u}}}function Nfr(t,n,a,c,u,_){switch(t.kind){case 207:{let f=Bo(t.elements,y=>y.dotDotDotToken||y.initializer||y.propertyName&&!ct(y.propertyName)||!ct(y.name)?void 0:myt(y.propertyName&&y.propertyName.text,y.name.text));if(f)return pq([IC(void 0,f,n,_)])}case 208:{let f=wSe(nQ(n.text,u),c);return pq([IC(W.createIdentifier(f),void 0,n,_),ISe(void 0,Il(t),W.createIdentifier(f))])}case 80:return Ofr(t,n,a,c,_);default:return $.assertNever(t,`Convert to ES module got invalid name kind ${t.kind}`)}}function Ofr(t,n,a,c,u){let _=a.getSymbolAtLocation(t),f=new Map,y=!1,g;for(let T of c.original.get(t.text)){if(a.getSymbolAtLocation(T)!==_||T===t)continue;let{parent:C}=T;if(no(C)){let{name:{text:O}}=C;if(O==="default"){y=!0;let F=T.getText();(g??(g=new Map)).set(C,W.createIdentifier(F))}else{$.assert(C.expression===T,"Didn't expect expression === use");let F=f.get(O);F===void 0&&(F=wSe(O,c),f.set(O,F)),(g??(g=new Map)).set(C,W.createIdentifier(F))}}else y=!0}let k=f.size===0?void 0:so(ol(f.entries(),([T,C])=>W.createImportSpecifier(!1,T===C?void 0:W.createIdentifier(T),W.createIdentifier(C))));return k||(y=!0),pq([IC(y?Il(t):void 0,k,n,u)],g)}function wSe(t,n){for(;n.original.has(t)||n.additional.has(t);)t=`_${t}`;return n.additional.add(t),t}function Ffr(t){let n=d_();return _yt(t,a=>n.add(a.text,a)),n}function _yt(t,n){ct(t)&&Rfr(t)&&n(t),t.forEachChild(a=>_yt(a,n))}function Rfr(t){let{parent:n}=t;switch(n.kind){case 212:return n.name!==t;case 209:return n.propertyName!==t;case 277:return n.propertyName!==t;default:return!0}}function dyt(t,n,a,c){return W.createFunctionDeclaration(go(n,hP(a.modifiers)),Il(a.asteriskToken),t,hP(a.typeParameters),hP(a.parameters),Il(a.type),W.converters.convertToFunctionBlock(H9e(a.body,c)))}function Lfr(t,n,a,c){return W.createClassDeclaration(go(n,hP(a.modifiers)),t,hP(a.typeParameters),hP(a.heritageClauses),H9e(a.members,c))}function fyt(t,n,a,c){return n==="default"?IC(W.createIdentifier(t),void 0,a,c):IC(void 0,[myt(n,t)],a,c)}function myt(t,n){return W.createImportSpecifier(!1,t!==void 0&&t!==n?W.createIdentifier(t):void 0,W.createIdentifier(n))}function ISe(t,n,a){return W.createVariableStatement(t,W.createVariableDeclarationList([W.createVariableDeclaration(n,void 0,void 0,a)],2))}function K9e(t,n){return W.createExportDeclaration(void 0,!1,t&&W.createNamedExports(t),n===void 0?void 0:W.createStringLiteral(n))}function pq(t,n){return{newImports:t,useSitesToUnqualify:n}}var Q9e="correctQualifiedNameToIndexedAccessType",hyt=[x.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];gc({errorCodes:hyt,getCodeActions(t){let n=gyt(t.sourceFile,t.span.start);if(!n)return;let a=ki.ChangeTracker.with(t,u=>yyt(u,t.sourceFile,n)),c=`${n.left.text}["${n.right.text}"]`;return[Xs(Q9e,a,[x.Rewrite_as_the_indexed_access_type_0,c],Q9e,x.Rewrite_all_as_indexed_access_types)]},fixIds:[Q9e],getAllCodeActions:t=>Vl(t,hyt,(n,a)=>{let c=gyt(a.file,a.start);c&&yyt(n,a.file,c)})});function gyt(t,n){let a=fn(la(t,n),dh);return $.assert(!!a,"Expected position to be owned by a qualified name."),ct(a.left)?a:void 0}function yyt(t,n,a){let c=a.right.text,u=W.createIndexedAccessTypeNode(W.createTypeReferenceNode(a.left,void 0),W.createLiteralTypeNode(W.createStringLiteral(c)));t.replaceNode(n,a,u)}var Z9e=[x.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],X9e="convertToTypeOnlyExport";gc({errorCodes:Z9e,getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>Syt(c,vyt(n.span,n.sourceFile),n));if(a.length)return[Xs(X9e,a,x.Convert_to_type_only_export,X9e,x.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[X9e],getAllCodeActions:function(n){let a=new Set;return Vl(n,Z9e,(c,u)=>{let _=vyt(u,n.sourceFile);_&&o1(a,hl(_.parent.parent))&&Syt(c,_,n)})}});function vyt(t,n){return Ci(la(n,t.start).parent,Cm)}function Syt(t,n,a){if(!n)return;let c=n.parent,u=c.parent,_=Mfr(n,a);if(_.length===c.elements.length)t.insertModifierBefore(a.sourceFile,156,c);else{let f=W.updateExportDeclaration(u,u.modifiers,!1,W.updateNamedExports(c,yr(c.elements,g=>!un(_,g))),u.moduleSpecifier,void 0),y=W.createExportDeclaration(void 0,!0,W.createNamedExports(_),u.moduleSpecifier,void 0);t.replaceNode(a.sourceFile,u,f,{leadingTriviaOption:ki.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ki.TrailingTriviaOption.Exclude}),t.insertNodeAfter(a.sourceFile,u,y)}}function Mfr(t,n){let a=t.parent;if(a.elements.length===1)return a.elements;let c=M7e(yh(a),n.program.getSemanticDiagnostics(n.sourceFile,n.cancellationToken));return yr(a.elements,u=>{var _;return u===t||((_=L7e(u,c))==null?void 0:_.code)===Z9e[0]})}var byt=[x._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,x._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],PSe="convertToTypeOnlyImport";gc({errorCodes:byt,getCodeActions:function(n){var a;let c=xyt(n.sourceFile,n.span.start);if(c){let u=ki.ChangeTracker.with(n,y=>Nae(y,n.sourceFile,c)),_=c.kind===277&&fp(c.parent.parent.parent)&&Tyt(c,n.sourceFile,n.program)?ki.ChangeTracker.with(n,y=>Nae(y,n.sourceFile,c.parent.parent.parent)):void 0,f=Xs(PSe,u,c.kind===277?[x.Use_type_0,((a=c.propertyName)==null?void 0:a.text)??c.name.text]:x.Use_import_type,PSe,x.Fix_all_with_type_only_imports);return Pt(_)?[wv(PSe,_,x.Use_import_type),f]:[f]}},fixIds:[PSe],getAllCodeActions:function(n){let a=new Set;return Vl(n,byt,(c,u)=>{let _=xyt(u.file,u.start);_?.kind===273&&!a.has(_)?(Nae(c,u.file,_),a.add(_)):_?.kind===277&&fp(_.parent.parent.parent)&&!a.has(_.parent.parent.parent)&&Tyt(_,u.file,n.program)?(Nae(c,u.file,_.parent.parent.parent),a.add(_.parent.parent.parent)):_?.kind===277&&Nae(c,u.file,_)})}});function xyt(t,n){let{parent:a}=la(t,n);return Xm(a)||fp(a)&&a.importClause?a:void 0}function Tyt(t,n,a){if(t.parent.parent.name)return!1;let c=t.parent.elements.filter(_=>!_.isTypeOnly);if(c.length===1)return!0;let u=a.getTypeChecker();for(let _ of c)if(Pu.Core.eachSymbolReferenceInFile(_.name,u,n,y=>{let g=u.getSymbolAtLocation(y);return!!g&&u.symbolIsValue(g)||!yA(y)}))return!1;return!0}function Nae(t,n,a){var c;if(Xm(a))t.replaceNode(n,a,W.updateImportSpecifier(a,!0,a.propertyName,a.name));else{let u=a.importClause;if(u.name&&u.namedBindings)t.replaceNodeWithNodes(n,a,[W.createImportDeclaration(hP(a.modifiers,!0),W.createImportClause(156,Il(u.name,!0),void 0),Il(a.moduleSpecifier,!0),Il(a.attributes,!0)),W.createImportDeclaration(hP(a.modifiers,!0),W.createImportClause(156,void 0,Il(u.namedBindings,!0)),Il(a.moduleSpecifier,!0),Il(a.attributes,!0))]);else{let _=((c=u.namedBindings)==null?void 0:c.kind)===276?W.updateNamedImports(u.namedBindings,Zo(u.namedBindings.elements,y=>W.updateImportSpecifier(y,!1,y.propertyName,y.name))):u.namedBindings,f=W.updateImportDeclaration(a,a.modifiers,W.updateImportClause(u,156,u.name,_),a.moduleSpecifier,a.attributes);t.replaceNode(n,a,f)}}}var Y9e="convertTypedefToType",Eyt=[x.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];gc({fixIds:[Y9e],errorCodes:Eyt,getCodeActions(t){let n=ZT(t.host,t.formatContext.options),a=la(t.sourceFile,t.span.start);if(!a)return;let c=ki.ChangeTracker.with(t,u=>kyt(u,a,t.sourceFile,n));if(c.length>0)return[Xs(Y9e,c,x.Convert_typedef_to_TypeScript_type,Y9e,x.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:t=>Vl(t,Eyt,(n,a)=>{let c=ZT(t.host,t.formatContext.options),u=la(a.file,a.start);u&&kyt(n,u,a.file,c,!0)})});function kyt(t,n,a,c,u=!1){if(!_3(n))return;let _=Bfr(n);if(!_)return;let f=n.parent,{leftSibling:y,rightSibling:g}=jfr(n),k=f.getStart(),T="";!y&&f.comment&&(k=Cyt(f,f.getStart(),n.getStart()),T=`${c} */${c}`),y&&(u&&_3(y)?(k=n.getStart(),T=""):(k=Cyt(f,y.getStart(),n.getStart()),T=`${c} */${c}`));let C=f.getEnd(),O="";g&&(u&&_3(g)?(C=g.getStart(),O=`${c}${c}`):(C=g.getStart(),O=`${c}/**${c} * `)),t.replaceRange(a,{pos:k,end:C},_,{prefix:T,suffix:O})}function jfr(t){let n=t.parent,a=n.getChildCount()-1,c=n.getChildren().findIndex(f=>f.getStart()===t.getStart()&&f.getEnd()===t.getEnd()),u=c>0?n.getChildAt(c-1):void 0,_=c0;u--)if(!/[*/\s]/.test(c.substring(u-1,u)))return n+u;return a}function Bfr(t){var n;let{typeExpression:a}=t;if(!a)return;let c=(n=t.name)==null?void 0:n.getText();if(c){if(a.kind===323)return $fr(c,a);if(a.kind===310)return Ufr(c,a)}}function $fr(t,n){let a=Dyt(n);if(Pt(a))return W.createInterfaceDeclaration(void 0,t,void 0,void 0,a)}function Ufr(t,n){let a=Il(n.type);if(a)return W.createTypeAliasDeclaration(void 0,W.createIdentifier(t),void 0,a)}function Dyt(t){let n=t.jsDocPropertyTags;return Pt(n)?Wn(n,c=>{var u;let _=zfr(c),f=(u=c.typeExpression)==null?void 0:u.type,y=c.isBracketed,g;if(f&&p3(f)){let k=Dyt(f);g=W.createTypeLiteralNode(k)}else f&&(g=Il(f));if(g&&_){let k=y?W.createToken(58):void 0;return W.createPropertySignature(void 0,_,k,g)}}):void 0}function zfr(t){return t.name.kind===80?t.name.text:t.name.right.text}function qfr(t){return hy(t)?an(t.jsDoc,n=>{var a;return(a=n.tags)==null?void 0:a.filter(c=>_3(c))}):[]}var eRe="convertLiteralTypeToMappedType",Ayt=[x._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];gc({errorCodes:Ayt,getCodeActions:function(n){let{sourceFile:a,span:c}=n,u=wyt(a,c.start);if(!u)return;let{name:_,constraint:f}=u,y=ki.ChangeTracker.with(n,g=>Iyt(g,a,u));return[Xs(eRe,y,[x.Convert_0_to_1_in_0,f,_],eRe,x.Convert_all_type_literals_to_mapped_type)]},fixIds:[eRe],getAllCodeActions:t=>Vl(t,Ayt,(n,a)=>{let c=wyt(a.file,a.start);c&&Iyt(n,a.file,c)})});function wyt(t,n){let a=la(t,n);if(ct(a)){let c=Ba(a.parent.parent,Zm),u=a.getText(t);return{container:Ba(c.parent,fh),typeNode:c.type,constraint:u,name:u==="K"?"P":"K"}}}function Iyt(t,n,{container:a,typeNode:c,constraint:u,name:_}){t.replaceNode(n,a,W.createMappedTypeNode(void 0,W.createTypeParameterDeclaration(void 0,_,W.createTypeReferenceNode(u)),void 0,void 0,c,void 0))}var Pyt=[x.Class_0_incorrectly_implements_interface_1.code,x.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],tRe="fixClassIncorrectlyImplementsInterface";gc({errorCodes:Pyt,getCodeActions(t){let{sourceFile:n,span:a}=t,c=Nyt(n,a.start);return Wn(ZR(c),u=>{let _=ki.ChangeTracker.with(t,f=>Fyt(t,u,n,c,f,t.preferences));return _.length===0?void 0:Xs(tRe,_,[x.Implement_interface_0,u.getText(n)],tRe,x.Implement_all_unimplemented_interfaces)})},fixIds:[tRe],getAllCodeActions(t){let n=new Set;return Vl(t,Pyt,(a,c)=>{let u=Nyt(c.file,c.start);if(o1(n,hl(u)))for(let _ of ZR(u))Fyt(t,_,c.file,u,a,t.preferences)})}});function Nyt(t,n){return $.checkDefined(Cf(la(t,n)),"There should be a containing class")}function Oyt(t){return!t.valueDeclaration||!(tm(t.valueDeclaration)&2)}function Fyt(t,n,a,c,u,_){let f=t.program.getTypeChecker(),y=Jfr(c,f),g=f.getTypeAtLocation(n),T=f.getPropertiesOfType(g).filter(EI(Oyt,J=>!y.has(J.escapedName))),C=f.getTypeAtLocation(c),O=wt(c.members,J=>kp(J));C.getNumberIndexType()||M(g,1),C.getStringIndexType()||M(g,0);let F=BP(a,t.program,_,t.host);HRe(c,T,a,t,_,F,J=>U(a,c,J)),F.writeFixes(u);function M(J,G){let Z=f.getIndexInfoOfType(J,G);Z&&U(a,c,f.indexInfoToIndexSignatureDeclaration(Z,c,void 0,void 0,sM(t)))}function U(J,G,Z){O?u.insertNodeAfter(J,O,Z):u.insertMemberAtStart(J,G,Z)}}function Jfr(t,n){let a=vv(t);if(!a)return ic();let c=n.getTypeAtLocation(a),u=n.getPropertiesOfType(c);return ic(u.filter(Oyt))}var Ryt="import",Lyt="fixMissingImport",Myt=[x.Cannot_find_name_0.code,x.Cannot_find_name_0_Did_you_mean_1.code,x.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,x.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,x.Cannot_find_namespace_0.code,x._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,x._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,x.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,x._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,x.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,x.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,x.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,x.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig.code,x.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,x.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig.code,x.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha.code,x.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,x.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,x.Cannot_find_namespace_0_Did_you_mean_1.code,x.Cannot_extend_an_interface_0_Did_you_mean_implements.code,x.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code];gc({errorCodes:Myt,getCodeActions(t){let{errorCode:n,preferences:a,sourceFile:c,span:u,program:_}=t,f=qyt(t,n,u.start,!0);if(f)return f.map(({fix:y,symbolName:g,errorIdentifierText:k})=>iRe(t,c,g,y,g!==k,_,a))},fixIds:[Lyt],getAllCodeActions:t=>{let{sourceFile:n,program:a,preferences:c,host:u,cancellationToken:_}=t,f=jyt(n,a,!0,c,u,_);return WF(t,Myt,y=>f.addImportFromDiagnostic(y,t)),VF(ki.ChangeTracker.with(t,f.writeFixes))}});function BP(t,n,a,c,u){return jyt(t,n,!1,a,c,u)}function jyt(t,n,a,c,u,_){let f=n.getCompilerOptions(),y=[],g=[],k=new Map,T=new Set,C=new Set,O=new Map;return{addImportFromDiagnostic:U,addImportFromExportedSymbol:J,addImportForModuleSymbol:G,writeFixes:ae,hasFixes:me,addImportForUnresolvedIdentifier:M,addImportForNonExistentExport:Z,removeExistingImport:Q,addVerbatimImport:F};function F(le){C.add(le)}function M(le,Oe,be){let ue=tmr(le,Oe,be);!ue||!ue.length||re(To(ue))}function U(le,Oe){let be=qyt(Oe,le.code,le.start,a);!be||!be.length||re(To(be))}function J(le,Oe,be){var ue,De;let Ce=$.checkDefined(le.parent,"Expected exported symbol to have module symbol as parent"),Ae=oae(le,$c(f)),Fe=n.getTypeChecker(),Be=Fe.getMergedSymbol($f(le,Fe)),de=$yt(t,Be,Ae,Ce,!1,n,u,c,_);if(!de){$.assert((ue=c.autoImportFileExcludePatterns)==null?void 0:ue.length);return}let ze=yQ(t,n),ut=rRe(t,de,n,void 0,!!Oe,ze,u,c);if(ut){let je=((De=Ci(be?.name,ct))==null?void 0:De.text)??Ae,ve,Le;be&&OR(be)&&(ut.kind===3||ut.kind===2)&&ut.addAsTypeOnly===1&&(ve=2),le.name!==je&&(Le=le.name),ut={...ut,...ve===void 0?{}:{addAsTypeOnly:ve},...Le===void 0?{}:{propertyName:Le}},re({fix:ut,symbolName:je??Ae,errorIdentifierText:void 0})}}function G(le,Oe,be){var ue,De,Ce;let Ae=n.getTypeChecker(),Fe=Ae.getAliasedSymbol(le);$.assert(Fe.flags&1536,"Expected symbol to be a module");let Be=BA(n,u),de=QT.getModuleSpecifiersWithCacheInfo(Fe,Ae,f,t,Be,c,void 0,!0),ze=yQ(t,n),ut=Fae(Oe,!0,void 0,le.flags,n.getTypeChecker(),f);ut=ut===1&&OR(be)?2:1;let je=fp(be)?W4(be)?1:2:Xm(be)?0:H1(be)&&be.name?1:2,ve=[{symbol:le,moduleSymbol:Fe,moduleFileName:(Ce=(De=(ue=Fe.declarations)==null?void 0:ue[0])==null?void 0:De.getSourceFile())==null?void 0:Ce.fileName,exportKind:4,targetFlags:le.flags,isFromPackageJson:!1}],Le=rRe(t,ve,n,void 0,!!Oe,ze,u,c),Ve;Le&&je!==2&&Le.kind!==0&&Le.kind!==1?Ve={...Le,addAsTypeOnly:ut,importKind:je}:Ve={kind:3,moduleSpecifierKind:Le!==void 0?Le.moduleSpecifierKind:de.kind,moduleSpecifier:Le!==void 0?Le.moduleSpecifier:To(de.moduleSpecifiers),importKind:je,addAsTypeOnly:ut,useRequire:ze},re({fix:Ve,symbolName:le.name,errorIdentifierText:void 0})}function Z(le,Oe,be,ue,De){let Ce=n.getSourceFile(Oe),Ae=yQ(t,n);if(Ce&&Ce.symbol){let{fixes:Fe}=Oae([{exportKind:be,isFromPackageJson:!1,moduleFileName:Oe,moduleSymbol:Ce.symbol,targetFlags:ue}],void 0,De,Ae,n,t,u,c);Fe.length&&re({fix:Fe[0],symbolName:le,errorIdentifierText:le})}else{let Fe=uae(Oe,99,n,u),Be=QT.getLocalModuleSpecifierBetweenFileNames(t,Oe,f,BA(n,u),c),de=NSe(Fe,be,n),ze=Fae(De,!0,void 0,ue,n.getTypeChecker(),f);re({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:Be,importKind:de,addAsTypeOnly:ze,useRequire:Ae},symbolName:le,errorIdentifierText:le})}}function Q(le){le.kind===274&&$.assertIsDefined(le.name,"ImportClause should have a name if it's being removed"),T.add(le)}function re(le){var Oe,be,ue;let{fix:De,symbolName:Ce}=le;switch(De.kind){case 0:y.push(De);break;case 1:g.push(De);break;case 2:{let{importClauseOrBindingPattern:de,importKind:ze,addAsTypeOnly:ut,propertyName:je}=De,ve=k.get(de);if(ve||k.set(de,ve={importClauseOrBindingPattern:de,defaultImport:void 0,namedImports:new Map}),ze===0){let Le=(Oe=ve?.namedImports.get(Ce))==null?void 0:Oe.addAsTypeOnly;ve.namedImports.set(Ce,{addAsTypeOnly:Ae(Le,ut),propertyName:je})}else $.assert(ve.defaultImport===void 0||ve.defaultImport.name===Ce,"(Add to Existing) Default import should be missing or match symbolName"),ve.defaultImport={name:Ce,addAsTypeOnly:Ae((be=ve.defaultImport)==null?void 0:be.addAsTypeOnly,ut)};break}case 3:{let{moduleSpecifier:de,importKind:ze,useRequire:ut,addAsTypeOnly:je,propertyName:ve}=De,Le=Fe(de,ze,ut,je);switch($.assert(Le.useRequire===ut,"(Add new) Tried to add an `import` and a `require` for the same module"),ze){case 1:$.assert(Le.defaultImport===void 0||Le.defaultImport.name===Ce,"(Add new) Default import should be missing or match symbolName"),Le.defaultImport={name:Ce,addAsTypeOnly:Ae((ue=Le.defaultImport)==null?void 0:ue.addAsTypeOnly,je)};break;case 0:let Ve=(Le.namedImports||(Le.namedImports=new Map)).get(Ce);Le.namedImports.set(Ce,[Ae(Ve,je),ve]);break;case 3:if(f.verbatimModuleSyntax){let nt=(Le.namedImports||(Le.namedImports=new Map)).get(Ce);Le.namedImports.set(Ce,[Ae(nt,je),ve])}else $.assert(Le.namespaceLikeImport===void 0||Le.namespaceLikeImport.name===Ce,"Namespacelike import shoudl be missing or match symbolName"),Le.namespaceLikeImport={importKind:ze,name:Ce,addAsTypeOnly:je};break;case 2:$.assert(Le.namespaceLikeImport===void 0||Le.namespaceLikeImport.name===Ce,"Namespacelike import shoudl be missing or match symbolName"),Le.namespaceLikeImport={importKind:ze,name:Ce,addAsTypeOnly:je};break}break}case 4:break;default:$.assertNever(De,`fix wasn't never - got kind ${De.kind}`)}function Ae(de,ze){return Math.max(de??0,ze)}function Fe(de,ze,ut,je){let ve=Be(de,!0),Le=Be(de,!1),Ve=O.get(ve),nt=O.get(Le),It={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:ut};return ze===1&&je===2?Ve||(O.set(ve,It),It):je===1&&(Ve||nt)?Ve||nt:nt||(O.set(Le,It),It)}function Be(de,ze){return`${ze?1:0}|${de}`}}function ae(le,Oe){var be,ue;let De;t.imports!==void 0&&t.imports.length===0&&Oe!==void 0?De=Oe:De=Vg(t,c);for(let Fe of y)oRe(le,t,Fe);for(let Fe of g)Xyt(le,t,Fe,De);let Ce;if(T.size){$.assert(Ox(t),"Cannot remove imports from a future source file");let Fe=new Set(Wn([...T],je=>fn(je,fp))),Be=new Set(Wn([...T],je=>fn(je,RG))),de=[...Fe].filter(je=>{var ve,Le,Ve;return!k.has(je.importClause)&&(!((ve=je.importClause)!=null&&ve.name)||T.has(je.importClause))&&(!Ci((Le=je.importClause)==null?void 0:Le.namedBindings,zx)||T.has(je.importClause.namedBindings))&&(!Ci((Ve=je.importClause)==null?void 0:Ve.namedBindings,IS)||ht(je.importClause.namedBindings.elements,nt=>T.has(nt)))}),ze=[...Be].filter(je=>(je.name.kind!==207||!k.has(je.name))&&(je.name.kind!==207||ht(je.name.elements,ve=>T.has(ve)))),ut=[...Fe].filter(je=>{var ve,Le;return((ve=je.importClause)==null?void 0:ve.namedBindings)&&de.indexOf(je)===-1&&!((Le=k.get(je.importClause))!=null&&Le.namedImports)&&(je.importClause.namedBindings.kind===275||ht(je.importClause.namedBindings.elements,Ve=>T.has(Ve)))});for(let je of[...de,...ze])le.delete(t,je);for(let je of ut)le.replaceNode(t,je.importClause,W.updateImportClause(je.importClause,je.importClause.phaseModifier,je.importClause.name,void 0));for(let je of T){let ve=fn(je,fp);ve&&de.indexOf(ve)===-1&&ut.indexOf(ve)===-1?je.kind===274?le.delete(t,je.name):($.assert(je.kind===277,"NamespaceImport should have been handled earlier"),(be=k.get(ve.importClause))!=null&&be.namedImports?(Ce??(Ce=new Set)).add(je):le.delete(t,je)):je.kind===209?(ue=k.get(je.parent))!=null&&ue.namedImports?(Ce??(Ce=new Set)).add(je):le.delete(t,je):je.kind===272&&le.delete(t,je)}}k.forEach(({importClauseOrBindingPattern:Fe,defaultImport:Be,namedImports:de})=>{Zyt(le,t,Fe,Be,so(de.entries(),([ze,{addAsTypeOnly:ut,propertyName:je}])=>({addAsTypeOnly:ut,propertyName:je,name:ze})),Ce,c)});let Ae;O.forEach(({useRequire:Fe,defaultImport:Be,namedImports:de,namespaceLikeImport:ze},ut)=>{let je=ut.slice(2),Le=(Fe?t0t:e0t)(je,De,Be,de&&so(de.entries(),([Ve,[nt,It]])=>({addAsTypeOnly:nt,propertyName:It,name:Ve})),ze,f,c);Ae=ea(Ae,Le)}),Ae=ea(Ae,_e()),Ae&&lve(le,t,Ae,!0,c)}function _e(){if(!C.size)return;let le=new Set(Wn([...C],be=>fn(be,fp))),Oe=new Set(Wn([...C],be=>fn(be,LG)));return[...Wn([...C],be=>be.kind===272?Il(be,!0):void 0),...[...le].map(be=>{var ue;return C.has(be)?Il(be,!0):Il(W.updateImportDeclaration(be,be.modifiers,be.importClause&&W.updateImportClause(be.importClause,be.importClause.phaseModifier,C.has(be.importClause)?be.importClause.name:void 0,C.has(be.importClause.namedBindings)?be.importClause.namedBindings:(ue=Ci(be.importClause.namedBindings,IS))!=null&&ue.elements.some(De=>C.has(De))?W.updateNamedImports(be.importClause.namedBindings,be.importClause.namedBindings.elements.filter(De=>C.has(De))):void 0),be.moduleSpecifier,be.attributes),!0)}),...[...Oe].map(be=>C.has(be)?Il(be,!0):Il(W.updateVariableStatement(be,be.modifiers,W.updateVariableDeclarationList(be.declarationList,Wn(be.declarationList.declarations,ue=>C.has(ue)?ue:W.updateVariableDeclaration(ue,ue.name.kind===207?W.updateObjectBindingPattern(ue.name,ue.name.elements.filter(De=>C.has(De))):ue.name,ue.exclamationToken,ue.type,ue.initializer)))),!0))]}function me(){return y.length>0||g.length>0||k.size>0||O.size>0||C.size>0||T.size>0}}function Vfr(t,n,a,c){let u=tM(t,c,a),_=Uyt(t,n);return{getModuleSpecifierForBestExportInfo:f};function f(y,g,k,T){let{fixes:C,computedWithoutCacheCount:O}=Oae(y,g,k,!1,n,t,a,c,_,T),F=Vyt(C,t,n,u,a,c);return F&&{...F,computedWithoutCacheCount:O}}}function Wfr(t,n,a,c,u,_,f,y,g,k,T,C){let O;a?(O=oQ(c,f,y,T,C).get(c.path,a),$.assertIsDefined(O,"Some exportInfo should match the specified exportMapKey")):(O=EO(i1(n.name))?[Hfr(t,u,n,y,f)]:$yt(c,t,u,n,_,y,f,T,C),$.assertIsDefined(O,"Some exportInfo should match the specified symbol / moduleSymbol"));let F=yQ(c,y),M=yA(la(c,k)),U=$.checkDefined(rRe(c,O,y,k,M,F,f,T));return{moduleSpecifier:U.moduleSpecifier,codeAction:Byt(iRe({host:f,formatContext:g,preferences:T},c,u,U,!1,y,T))}}function Gfr(t,n,a,c,u,_){let f=a.getCompilerOptions(),y=us(nRe(t,a.getTypeChecker(),n,f)),g=Kyt(t,n,y,a),k=y!==n.text;return g&&Byt(iRe({host:c,formatContext:u,preferences:_},t,y,g,k,a,_))}function rRe(t,n,a,c,u,_,f,y){let g=tM(t,y,f);return Vyt(Oae(n,c,u,_,a,t,f,y).fixes,t,a,g,f,y)}function Byt({description:t,changes:n,commands:a}){return{description:t,changes:n,commands:a}}function $yt(t,n,a,c,u,_,f,y,g){let k=zyt(_,f),T=y.autoImportFileExcludePatterns&&z7e(f,y),C=_.getTypeChecker().getMergedSymbol(c),O=T&&C.declarations&&Qu(C,308),F=O&&T(O);return oQ(t,f,_,y,g).search(t.path,u,M=>M===a,M=>{let U=k(M[0].isFromPackageJson);if(U.getMergedSymbol($f(M[0].symbol,U))===n&&(F||M.some(J=>U.getMergedSymbol(J.moduleSymbol)===c||J.symbol.parent===c)))return M})}function Hfr(t,n,a,c,u){var _,f;let y=k(c.getTypeChecker(),!1);if(y)return y;let g=(f=(_=u.getPackageJsonAutoImportProvider)==null?void 0:_.call(u))==null?void 0:f.getTypeChecker();return $.checkDefined(g&&k(g,!0),"Could not find symbol in specified module for code actions");function k(T,C){let O=pae(a,T);if(O&&$f(O.symbol,T)===t)return{symbol:O.symbol,moduleSymbol:a,moduleFileName:void 0,exportKind:O.exportKind,targetFlags:$f(t,T).flags,isFromPackageJson:C};let F=T.tryGetMemberInModuleExportsAndProperties(n,a);if(F&&$f(F,T)===t)return{symbol:F,moduleSymbol:a,moduleFileName:void 0,exportKind:0,targetFlags:$f(t,T).flags,isFromPackageJson:C}}}function Oae(t,n,a,c,u,_,f,y,g=Ox(_)?Uyt(_,u):void 0,k){let T=u.getTypeChecker(),C=g?an(t,g.getImportsForExportInfo):j,O=n!==void 0&&Kfr(C,n),F=Zfr(C,a,T,u.getCompilerOptions());if(F)return{computedWithoutCacheCount:0,fixes:[...O?[O]:j,F]};let{fixes:M,computedWithoutCacheCount:U=0}=Yfr(t,C,u,_,n,a,c,f,y,k);return{computedWithoutCacheCount:U,fixes:[...O?[O]:j,...M]}}function Kfr(t,n){return Je(t,({declaration:a,importKind:c})=>{var u;if(c!==0)return;let _=Qfr(a),f=_&&((u=qO(a))==null?void 0:u.text);if(f)return{kind:0,namespacePrefix:_,usagePosition:n,moduleSpecifierKind:void 0,moduleSpecifier:f}})}function Qfr(t){var n,a,c;switch(t.kind){case 261:return(n=Ci(t.name,ct))==null?void 0:n.text;case 272:return t.name.text;case 352:case 273:return(c=Ci((a=t.importClause)==null?void 0:a.namedBindings,zx))==null?void 0:c.name.text;default:return $.assertNever(t)}}function Fae(t,n,a,c,u,_){return t?a&&_.verbatimModuleSyntax&&(!(c&111551)||u.getTypeOnlyAliasDeclaration(a))?2:1:4}function Zfr(t,n,a,c){let u;for(let f of t){let y=_(f);if(!y)continue;let g=OR(y.importClauseOrBindingPattern);if(y.addAsTypeOnly!==4&&g||y.addAsTypeOnly===4&&!g)return y;u??(u=y)}return u;function _({declaration:f,importKind:y,symbol:g,targetFlags:k}){if(y===3||y===2||f.kind===272)return;if(f.kind===261)return(y===0||y===1)&&f.name.kind===207?{kind:2,importClauseOrBindingPattern:f.name,importKind:y,moduleSpecifierKind:void 0,moduleSpecifier:f.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;let{importClause:T}=f;if(!T||!Sl(f.moduleSpecifier))return;let{name:C,namedBindings:O}=T;if(T.isTypeOnly&&!(y===0&&O))return;let F=Fae(n,!1,g,k,a,c);if(!(y===1&&(C||F===2&&O))&&!(y===0&&O?.kind===275))return{kind:2,importClauseOrBindingPattern:T,importKind:y,moduleSpecifierKind:void 0,moduleSpecifier:f.moduleSpecifier.text,addAsTypeOnly:F}}}function Uyt(t,n){let a=n.getTypeChecker(),c;for(let u of t.imports){let _=bU(u);if(RG(_.parent)){let f=a.resolveExternalModuleName(u);f&&(c||(c=d_())).add(hc(f),_.parent)}else if(_.kind===273||_.kind===272||_.kind===352){let f=a.getSymbolAtLocation(u);f&&(c||(c=d_())).add(hc(f),_)}}return{getImportsForExportInfo:({moduleSymbol:u,exportKind:_,targetFlags:f,symbol:y})=>{let g=c?.get(hc(u));if(!g||ph(t)&&!(f&111551)&&!ht(g,OS))return j;let k=NSe(t,_,n);return g.map(T=>({declaration:T,importKind:k,symbol:y,targetFlags:f}))}}}function yQ(t,n){if(!jx(t.fileName))return!1;if(t.commonJsModuleIndicator&&!t.externalModuleIndicator)return!0;if(t.externalModuleIndicator&&!t.commonJsModuleIndicator)return!1;let a=n.getCompilerOptions();if(a.configFile)return Km(a)<5;if(sRe(t,n)===1)return!0;if(sRe(t,n)===99)return!1;for(let c of n.getSourceFiles())if(!(c===t||!ph(c)||n.isSourceFileFromExternalLibrary(c))){if(c.commonJsModuleIndicator&&!c.externalModuleIndicator)return!0;if(c.externalModuleIndicator&&!c.commonJsModuleIndicator)return!1}return!0}function zyt(t,n){return pd(a=>a?n.getPackageJsonAutoImportProvider().getTypeChecker():t.getTypeChecker())}function Xfr(t,n,a,c,u,_,f,y,g){let k=jx(n.fileName),T=t.getCompilerOptions(),C=BA(t,f),O=zyt(t,f),F=km(T),M=Voe(F),U=g?Z=>QT.tryGetModuleSpecifiersFromCache(Z.moduleSymbol,n,C,y):(Z,Q)=>QT.getModuleSpecifiersWithCacheInfo(Z.moduleSymbol,Q,T,n,C,y,void 0,!0),J=0,G=an(_,(Z,Q)=>{let re=O(Z.isFromPackageJson),{computedWithoutCache:ae,moduleSpecifiers:_e,kind:me}=U(Z,re)??{},le=!!(Z.targetFlags&111551),Oe=Fae(c,!0,Z.symbol,Z.targetFlags,re,T);return J+=ae?1:0,Wn(_e,be=>{if(M&&kC(be))return;if(!le&&k&&a!==void 0)return{kind:1,moduleSpecifierKind:me,moduleSpecifier:be,usagePosition:a,exportInfo:Z,isReExport:Q>0};let ue=NSe(n,Z.exportKind,t),De;if(a!==void 0&&ue===3&&Z.exportKind===0){let Ce=re.resolveExternalModuleSymbol(Z.moduleSymbol),Ae;Ce!==Z.moduleSymbol&&(Ae=_ae(Ce,re,$c(T),vl)),Ae||(Ae=rQ(Z.moduleSymbol,$c(T),!1)),De={namespacePrefix:Ae,usagePosition:a}}return{kind:3,moduleSpecifierKind:me,moduleSpecifier:be,importKind:ue,useRequire:u,addAsTypeOnly:Oe,exportInfo:Z,isReExport:Q>0,qualification:De}})});return{computedWithoutCacheCount:J,fixes:G}}function Yfr(t,n,a,c,u,_,f,y,g,k){let T=Je(n,C=>emr(C,_,f,a.getTypeChecker(),a.getCompilerOptions()));return T?{fixes:[T]}:Xfr(a,c,u,_,f,t,y,g,k)}function emr({declaration:t,importKind:n,symbol:a,targetFlags:c},u,_,f,y){var g;let k=(g=qO(t))==null?void 0:g.text;if(k){let T=_?4:Fae(u,!0,a,c,f,y);return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:k,importKind:n,addAsTypeOnly:T,useRequire:_}}}function qyt(t,n,a,c){let u=la(t.sourceFile,a),_;if(n===x._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)_=omr(t,u);else if(ct(u))if(n===x._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){let y=us(nRe(t.sourceFile,t.program.getTypeChecker(),u,t.program.getCompilerOptions())),g=Kyt(t.sourceFile,u,y,t.program);return g&&[{fix:g,symbolName:y,errorIdentifierText:u.text}]}else _=Hyt(t,u,c);else return;let f=tM(t.sourceFile,t.preferences,t.host);return _&&Jyt(_,t.sourceFile,t.program,f,t.host,t.preferences)}function Jyt(t,n,a,c,u,_){let f=y=>wl(y,u.getCurrentDirectory(),UT(u));return pu(t,(y,g)=>cS(!!y.isJsxNamespaceFix,!!g.isJsxNamespaceFix)||Br(y.fix.kind,g.fix.kind)||Wyt(y.fix,g.fix,n,a,_,c.allowsImportingSpecifier,f))}function tmr(t,n,a){let c=Hyt(t,n,a),u=tM(t.sourceFile,t.preferences,t.host);return c&&Jyt(c,t.sourceFile,t.program,u,t.host,t.preferences)}function Vyt(t,n,a,c,u,_){if(Pt(t))return t[0].kind===0||t[0].kind===2?t[0]:t.reduce((f,y)=>Wyt(y,f,n,a,_,c.allowsImportingSpecifier,g=>wl(g,u.getCurrentDirectory(),UT(u)))===-1?y:f)}function Wyt(t,n,a,c,u,_,f){return t.kind!==0&&n.kind!==0?cS(n.moduleSpecifierKind!=="node_modules"||_(n.moduleSpecifier),t.moduleSpecifierKind!=="node_modules"||_(t.moduleSpecifier))||rmr(t,n,u)||imr(t.moduleSpecifier,n.moduleSpecifier,a,c)||cS(Gyt(t,a.path,f),Gyt(n,a.path,f))||bH(t.moduleSpecifier,n.moduleSpecifier):0}function rmr(t,n,a){return a.importModuleSpecifierPreference==="non-relative"||a.importModuleSpecifierPreference==="project-relative"?cS(t.moduleSpecifierKind==="relative",n.moduleSpecifierKind==="relative"):0}function Gyt(t,n,a){var c;if(t.isReExport&&((c=t.exportInfo)!=null&&c.moduleFileName)&&nmr(t.exportInfo.moduleFileName)){let u=a(mo(t.exportInfo.moduleFileName));return Ca(n,u)}return!1}function nmr(t){return t_(t,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function imr(t,n,a,c){return Ca(t,"node:")&&!Ca(n,"node:")?sae(a,c)?-1:1:Ca(n,"node:")&&!Ca(t,"node:")?sae(a,c)?1:-1:0}function omr({sourceFile:t,program:n,host:a,preferences:c},u){let _=n.getTypeChecker(),f=amr(u,_);if(!f)return;let y=_.getAliasedSymbol(f),g=f.name,k=[{symbol:f,moduleSymbol:y,moduleFileName:void 0,exportKind:3,targetFlags:y.flags,isFromPackageJson:!1}],T=yQ(t,n);return Oae(k,void 0,!1,T,n,t,a,c).fixes.map(O=>{var F;return{fix:O,symbolName:g,errorIdentifierText:(F=Ci(u,ct))==null?void 0:F.text}})}function amr(t,n){let a=ct(t)?n.getSymbolAtLocation(t):void 0;if(ene(a))return a;let{parent:c}=t;if(Em(c)&&c.tagName===t||K1(c)){let u=n.resolveName(n.getJsxNamespace(c),Em(c)?t:c,111551,!1);if(ene(u))return u}}function NSe(t,n,a,c){if(a.getCompilerOptions().verbatimModuleSyntax&&dmr(t,a)===1)return 3;switch(n){case 0:return 0;case 1:return 1;case 2:return umr(t,a.getCompilerOptions(),!!c);case 3:return smr(t,a,!!c);case 4:return 2;default:return $.assertNever(n)}}function smr(t,n,a){if(iF(n.getCompilerOptions()))return 1;let c=Km(n.getCompilerOptions());switch(c){case 2:case 1:case 3:return jx(t.fileName)&&(t.externalModuleIndicator||a)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 101:case 102:case 199:return sRe(t,n)===99?2:3;default:return $.assertNever(c,`Unexpected moduleKind ${c}`)}}function Hyt({sourceFile:t,program:n,cancellationToken:a,host:c,preferences:u},_,f){let y=n.getTypeChecker(),g=n.getCompilerOptions();return an(nRe(t,y,_,g),k=>{if(k==="default")return;let T=yA(_),C=yQ(t,n),O=lmr(k,WR(_),x3(_),a,t,n,f,c,u);return so(li(O.values(),F=>Oae(F,_.getStart(t),T,C,n,t,c,u).fixes),F=>({fix:F,symbolName:k,errorIdentifierText:_.text,isJsxNamespaceFix:k!==_.text}))})}function Kyt(t,n,a,c){let u=c.getTypeChecker(),_=u.resolveName(a,n,111551,!0);if(!_)return;let f=u.getTypeOnlyAliasDeclaration(_);if(!(!f||Pn(f)!==t))return{kind:4,typeOnlyAliasDeclaration:f}}function nRe(t,n,a,c){let u=a.parent;if((Em(u)||bP(u))&&u.tagName===a&&Pve(c.jsx)){let _=n.getJsxNamespace(t);if(cmr(_,a,n))return!eL(a.text)&&!n.resolveName(a.text,a,111551,!1)?[a.text,_]:[_]}return[a.text]}function cmr(t,n,a){if(eL(n.text))return!0;let c=a.resolveName(t,n,111551,!0);return!c||Pt(c.declarations,cE)&&!(c.flags&111551)}function lmr(t,n,a,c,u,_,f,y,g){var k;let T=d_(),C=tM(u,g,y),O=(k=y.getModuleSpecifierCache)==null?void 0:k.call(y),F=pd(U=>BA(U?y.getPackageJsonAutoImportProvider():_,y));function M(U,J,G,Z,Q,re){let ae=F(re);if(Fve(Q,u,J,U,g,C,ae,O)){let _e=Q.getTypeChecker();T.add(A7e(G,_e).toString(),{symbol:G,moduleSymbol:U,moduleFileName:J?.fileName,exportKind:Z,targetFlags:$f(G,_e).flags,isFromPackageJson:re})}}return Rve(_,y,g,f,(U,J,G,Z)=>{let Q=G.getTypeChecker();c.throwIfCancellationRequested();let re=G.getCompilerOptions(),ae=pae(U,Q);ae&&n0t(Q.getSymbolFlags(ae.symbol),a)&&_ae(ae.symbol,Q,$c(re),(me,le)=>(n?le??me:me)===t)&&M(U,J,ae.symbol,ae.exportKind,G,Z);let _e=Q.tryGetMemberInModuleExportsAndProperties(t,U);_e&&n0t(Q.getSymbolFlags(_e),a)&&M(U,J,_e,0,G,Z)}),T}function umr(t,n,a){let c=iF(n),u=jx(t.fileName);if(!u&&Km(n)>=5)return c?1:2;if(u)return t.externalModuleIndicator||a?c?1:2:3;for(let _ of t.statements??j)if(gd(_)&&!Op(_.moduleReference))return 3;return c?1:3}function iRe(t,n,a,c,u,_,f){let y,g=ki.ChangeTracker.with(t,k=>{y=pmr(k,n,a,c,u,_,f)});return Xs(Ryt,g,y,Lyt,x.Add_all_missing_imports)}function pmr(t,n,a,c,u,_,f){let y=Vg(n,f);switch(c.kind){case 0:return oRe(t,n,c),[x.Change_0_to_1,a,`${c.namespacePrefix}.${a}`];case 1:return Xyt(t,n,c,y),[x.Change_0_to_1,a,Yyt(c.moduleSpecifier,y)+a];case 2:{let{importClauseOrBindingPattern:g,importKind:k,addAsTypeOnly:T,moduleSpecifier:C}=c;Zyt(t,n,g,k===1?{name:a,addAsTypeOnly:T}:void 0,k===0?[{name:a,addAsTypeOnly:T}]:j,void 0,f);let O=i1(C);return u?[x.Import_0_from_1,a,O]:[x.Update_import_from_0,O]}case 3:{let{importKind:g,moduleSpecifier:k,addAsTypeOnly:T,useRequire:C,qualification:O}=c,F=C?t0t:e0t,M=g===1?{name:a,addAsTypeOnly:T}:void 0,U=g===0?[{name:a,addAsTypeOnly:T}]:void 0,J=g===2||g===3?{importKind:g,name:O?.namespacePrefix||a,addAsTypeOnly:T}:void 0;return lve(t,n,F(k,y,M,U,J,_.getCompilerOptions(),f),!0,f),O&&oRe(t,n,O),u?[x.Import_0_from_1,a,k]:[x.Add_import_from_0,k]}case 4:{let{typeOnlyAliasDeclaration:g}=c,k=_mr(t,g,_,n,f);return k.kind===277?[x.Remove_type_from_import_of_0_from_1,a,Qyt(k.parent.parent)]:[x.Remove_type_from_import_declaration_from_0,Qyt(k)]}default:return $.assertNever(c,`Unexpected fix kind ${c.kind}`)}}function Qyt(t){var n,a;return t.kind===272?((a=Ci((n=Ci(t.moduleReference,WT))==null?void 0:n.expression,Sl))==null?void 0:a.text)||t.moduleReference.getText():Ba(t.parent.moduleSpecifier,Ic).text}function _mr(t,n,a,c,u){let _=a.getCompilerOptions(),f=_.verbatimModuleSyntax;switch(n.kind){case 277:if(n.isTypeOnly){if(n.parent.elements.length>1){let g=W.updateImportSpecifier(n,!1,n.propertyName,n.name),{specifierComparer:k}=WA.getNamedImportSpecifierComparerWithDetection(n.parent.parent.parent,u,c),T=WA.getImportSpecifierInsertionIndex(n.parent.elements,g,k);if(T!==n.parent.elements.indexOf(n))return t.delete(c,n),t.insertImportSpecifierAtIndex(c,g,n.parent,T),n}return t.deleteRange(c,{pos:oC(n.getFirstToken()),end:oC(n.propertyName??n.name)}),n}else return $.assert(n.parent.parent.isTypeOnly),y(n.parent.parent),n.parent.parent;case 274:return y(n),n;case 275:return y(n.parent),n.parent;case 272:return t.deleteRange(c,n.getChildAt(1)),n;default:$.failBadSyntaxKind(n)}function y(g){var k;if(t.delete(c,uve(g,c)),!_.allowImportingTsExtensions){let T=qO(g.parent),C=T&&((k=a.getResolvedModuleFromModuleSpecifier(T,c))==null?void 0:k.resolvedModule);if(C?.resolvedUsingTsExtension){let O=Og(T.text,TK(T.text,_));t.replaceNode(c,T,W.createStringLiteral(O))}}if(f){let T=Ci(g.namedBindings,IS);if(T&&T.elements.length>1){WA.getNamedImportSpecifierComparerWithDetection(g.parent,u,c).isSorted!==!1&&n.kind===277&&T.elements.indexOf(n)!==0&&(t.delete(c,n),t.insertImportSpecifierAtIndex(c,n,T,0));for(let O of T.elements)O!==n&&!O.isTypeOnly&&t.insertModifierBefore(c,156,O)}}}}function Zyt(t,n,a,c,u,_,f){var y;if(a.kind===207){if(_&&a.elements.some(C=>_.has(C))){t.replaceNode(n,a,W.createObjectBindingPattern([...a.elements.filter(C=>!_.has(C)),...c?[W.createBindingElement(void 0,"default",c.name)]:j,...u.map(C=>W.createBindingElement(void 0,C.propertyName,C.name))]));return}c&&T(a,c.name,"default");for(let C of u)T(a,C.name,C.propertyName);return}let g=a.isTypeOnly&&Pt([c,...u],C=>C?.addAsTypeOnly===4),k=a.namedBindings&&((y=Ci(a.namedBindings,IS))==null?void 0:y.elements);if(c&&($.assert(!a.name,"Cannot add a default import to an import clause that already has one"),t.insertNodeAt(n,a.getStart(n),W.createIdentifier(c.name),{suffix:", "})),u.length){let{specifierComparer:C,isSorted:O}=WA.getNamedImportSpecifierComparerWithDetection(a.parent,f,n),F=pu(u.map(M=>W.createImportSpecifier((!a.isTypeOnly||g)&&OSe(M,f),M.propertyName===void 0?void 0:W.createIdentifier(M.propertyName),W.createIdentifier(M.name))),C);if(_)t.replaceNode(n,a.namedBindings,W.updateNamedImports(a.namedBindings,pu([...k.filter(M=>!_.has(M)),...F],C)));else if(k?.length&&O!==!1){let M=g&&k?W.updateNamedImports(a.namedBindings,Zo(k,U=>W.updateImportSpecifier(U,!0,U.propertyName,U.name))).elements:k;for(let U of F){let J=WA.getImportSpecifierInsertionIndex(M,U,C);t.insertImportSpecifierAtIndex(n,U,a.namedBindings,J)}}else if(k?.length)for(let M of F)t.insertNodeInListAfter(n,Sn(k),M,k);else if(F.length){let M=W.createNamedImports(F);a.namedBindings?t.replaceNode(n,a.namedBindings,M):t.insertNodeAfter(n,$.checkDefined(a.name,"Import clause must have either named imports or a default import"),M)}}if(g&&(t.delete(n,uve(a,n)),k))for(let C of k)t.insertModifierBefore(n,156,C);function T(C,O,F){let M=W.createBindingElement(void 0,F,O);C.elements.length?t.insertNodeInListAfter(n,Sn(C.elements),M):t.replaceNode(n,C,W.createObjectBindingPattern([M]))}}function oRe(t,n,{namespacePrefix:a,usagePosition:c}){t.insertText(n,c,a+".")}function Xyt(t,n,{moduleSpecifier:a,usagePosition:c},u){t.insertText(n,c,Yyt(a,u))}function Yyt(t,n){let a=sve(n);return`import(${a}${t}${a}).`}function aRe({addAsTypeOnly:t}){return t===2}function OSe(t,n){return aRe(t)||!!n.preferTypeOnlyAutoImports&&t.addAsTypeOnly!==4}function e0t(t,n,a,c,u,_,f){let y=Zz(t,n),g;if(a!==void 0||c?.length){let k=(!a||aRe(a))&&ht(c,aRe)||(_.verbatimModuleSyntax||f.preferTypeOnlyAutoImports)&&a?.addAsTypeOnly!==4&&!Pt(c,T=>T.addAsTypeOnly===4);g=ea(g,IC(a&&W.createIdentifier(a.name),c?.map(T=>W.createImportSpecifier(!k&&OSe(T,f),T.propertyName===void 0?void 0:W.createIdentifier(T.propertyName),W.createIdentifier(T.name))),t,n,k))}if(u){let k=u.importKind===3?W.createImportEqualsDeclaration(void 0,OSe(u,f),W.createIdentifier(u.name),W.createExternalModuleReference(y)):W.createImportDeclaration(void 0,W.createImportClause(OSe(u,f)?156:void 0,void 0,W.createNamespaceImport(W.createIdentifier(u.name))),y,void 0);g=ea(g,k)}return $.checkDefined(g)}function t0t(t,n,a,c,u){let _=Zz(t,n),f;if(a||c?.length){let y=c?.map(({name:k,propertyName:T})=>W.createBindingElement(void 0,T,k))||[];a&&y.unshift(W.createBindingElement(void 0,"default",a.name));let g=r0t(W.createObjectBindingPattern(y),_);f=ea(f,g)}if(u){let y=r0t(u.name,_);f=ea(f,y)}return $.checkDefined(f)}function r0t(t,n){return W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(typeof t=="string"?W.createIdentifier(t):t,void 0,void 0,W.createCallExpression(W.createIdentifier("require"),void 0,[n]))],2))}function n0t(t,n){return n===7?!0:n&1?!!(t&111551):n&2?!!(t&788968):n&4?!!(t&1920):!1}function sRe(t,n){return Ox(t)?n.getImpliedNodeFormatForEmit(t):b3(t,n.getCompilerOptions())}function dmr(t,n){return Ox(t)?n.getEmitModuleFormatOfFile(t):zz(t,n.getCompilerOptions())}var cRe="addMissingConstraint",i0t=[x.Type_0_is_not_comparable_to_type_1.code,x.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,x.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,x.Type_0_is_not_assignable_to_type_1.code,x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,x.Property_0_is_incompatible_with_index_signature.code,x.Property_0_in_type_1_is_not_assignable_to_type_2.code,x.Type_0_does_not_satisfy_the_constraint_1.code];gc({errorCodes:i0t,getCodeActions(t){let{sourceFile:n,span:a,program:c,preferences:u,host:_}=t,f=o0t(c,n,a);if(f===void 0)return;let y=ki.ChangeTracker.with(t,g=>a0t(g,c,u,_,n,f));return[Xs(cRe,y,x.Add_extends_constraint,cRe,x.Add_extends_constraint_to_all_type_parameters)]},fixIds:[cRe],getAllCodeActions:t=>{let{program:n,preferences:a,host:c}=t,u=new Set;return VF(ki.ChangeTracker.with(t,_=>{WF(t,i0t,f=>{let y=o0t(n,f.file,Jp(f.start,f.length));if(y&&o1(u,hl(y.declaration)))return a0t(_,n,a,c,f.file,y)})}))}});function o0t(t,n,a){let c=wt(t.getSemanticDiagnostics(n),f=>f.start===a.start&&f.length===a.length);if(c===void 0||c.relatedInformation===void 0)return;let u=wt(c.relatedInformation,f=>f.code===x.This_type_parameter_might_need_an_extends_0_constraint.code);if(u===void 0||u.file===void 0||u.start===void 0||u.length===void 0)return;let _=rLe(u.file,Jp(u.start,u.length));if(_!==void 0&&(ct(_)&&Zu(_.parent)&&(_=_.parent),Zu(_))){if(o3(_.parent))return;let f=la(n,a.start),y=t.getTypeChecker();return{constraint:mmr(y,f)||fmr(u.messageText),declaration:_,token:f}}}function a0t(t,n,a,c,u,_){let{declaration:f,constraint:y}=_,g=n.getTypeChecker();if(Ni(y))t.insertText(u,f.name.end,` extends ${y}`);else{let k=$c(n.getCompilerOptions()),T=sM({program:n,host:c}),C=BP(u,n,a,c),O=HSe(g,C,y,void 0,k,void 0,void 0,T);O&&(t.replaceNode(u,f,W.updateTypeParameterDeclaration(f,void 0,f.name,O,f.default)),C.writeFixes(t))}}function fmr(t){let[,n]=RS(t,` -`,0).match(/`extends (.*)`/)||[];return n}function mmr(t,n){return Wo(n.parent)?t.getTypeArgumentConstraint(n.parent):(Vt(n)?t.getContextualType(n):void 0)||t.getTypeAtLocation(n)}var s0t="fixOverrideModifier",vQ="fixAddOverrideModifier",Rae="fixRemoveOverrideModifier",c0t=[x.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,x.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,x.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,x.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,x.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,x.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,x.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],l0t={[x.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:x.Add_override_modifier,fixId:vQ,fixAllDescriptions:x.Add_all_missing_override_modifiers},[x.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:x.Add_override_modifier,fixId:vQ,fixAllDescriptions:x.Add_all_missing_override_modifiers},[x.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:x.Remove_override_modifier,fixId:Rae,fixAllDescriptions:x.Remove_all_unnecessary_override_modifiers},[x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:x.Remove_override_modifier,fixId:Rae,fixAllDescriptions:x.Remove_override_modifier},[x.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:x.Add_override_modifier,fixId:vQ,fixAllDescriptions:x.Add_all_missing_override_modifiers},[x.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:x.Add_override_modifier,fixId:vQ,fixAllDescriptions:x.Add_all_missing_override_modifiers},[x.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:x.Add_override_modifier,fixId:vQ,fixAllDescriptions:x.Remove_all_unnecessary_override_modifiers},[x.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:x.Remove_override_modifier,fixId:Rae,fixAllDescriptions:x.Remove_all_unnecessary_override_modifiers},[x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:x.Remove_override_modifier,fixId:Rae,fixAllDescriptions:x.Remove_all_unnecessary_override_modifiers}};gc({errorCodes:c0t,getCodeActions:function(n){let{errorCode:a,span:c}=n,u=l0t[a];if(!u)return j;let{descriptions:_,fixId:f,fixAllDescriptions:y}=u,g=ki.ChangeTracker.with(n,k=>u0t(k,n,a,c.start));return[D9e(s0t,g,_,f,y)]},fixIds:[s0t,vQ,Rae],getAllCodeActions:t=>Vl(t,c0t,(n,a)=>{let{code:c,start:u}=a,_=l0t[c];!_||_.fixId!==t.fixId||u0t(n,t,c,u)})});function u0t(t,n,a,c){switch(a){case x.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case x.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case x.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case x.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case x.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return hmr(t,n.sourceFile,c);case x.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case x.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return gmr(t,n.sourceFile,c);default:$.fail("Unexpected error code: "+a)}}function hmr(t,n,a){let c=_0t(n,a);if(ph(n)){t.addJSDocTags(n,c,[W.createJSDocOverrideTag(W.createIdentifier("override"))]);return}let u=c.modifiers||j,_=wt(u,mF),f=wt(u,M3e),y=wt(u,C=>Z1e(C.kind)),g=Ut(u,hd),k=f?f.end:_?_.end:y?y.end:g?_c(n.text,g.end):c.getStart(n),T=y||_||f?{prefix:" "}:{suffix:" "};t.insertModifierAt(n,k,164,T)}function gmr(t,n,a){let c=_0t(n,a);if(ph(n)){t.filterJSDocTags(n,c,_4(Kne));return}let u=wt(c.modifiers,j3e);$.assertIsDefined(u),t.deleteModifier(n,u)}function p0t(t){switch(t.kind){case 177:case 173:case 175:case 178:case 179:return!0;case 170:return ne(t,t.parent);default:return!1}}function _0t(t,n){let a=la(t,n),c=fn(a,u=>Co(u)?"quit":p0t(u));return $.assert(c&&p0t(c)),c}var lRe="fixNoPropertyAccessFromIndexSignature",d0t=[x.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];gc({errorCodes:d0t,fixIds:[lRe],getCodeActions(t){let{sourceFile:n,span:a,preferences:c}=t,u=m0t(n,a.start),_=ki.ChangeTracker.with(t,f=>f0t(f,t.sourceFile,u,c));return[Xs(lRe,_,[x.Use_element_access_for_0,u.name.text],lRe,x.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:t=>Vl(t,d0t,(n,a)=>f0t(n,a.file,m0t(a.file,a.start),t.preferences))});function f0t(t,n,a,c){let u=Vg(n,c),_=W.createStringLiteral(a.name.text,u===0);t.replaceNode(n,a,jte(a)?W.createElementAccessChain(a.expression,a.questionDotToken,_):W.createElementAccessExpression(a.expression,_))}function m0t(t,n){return Ba(la(t,n).parent,no)}var uRe="fixImplicitThis",h0t=[x.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];gc({errorCodes:h0t,getCodeActions:function(n){let{sourceFile:a,program:c,span:u}=n,_,f=ki.ChangeTracker.with(n,y=>{_=g0t(y,a,u.start,c.getTypeChecker())});return _?[Xs(uRe,f,_,uRe,x.Fix_all_implicit_this_errors)]:j},fixIds:[uRe],getAllCodeActions:t=>Vl(t,h0t,(n,a)=>{g0t(n,a.file,a.start,t.program.getTypeChecker())})});function g0t(t,n,a,c){let u=la(n,a);if(!GL(u))return;let _=Hm(u,!1,!1);if(!(!i_(_)&&!bu(_))&&!Ta(Hm(_,!1,!1))){let f=$.checkDefined(Kl(_,100,n)),{name:y}=_,g=$.checkDefined(_.body);return bu(_)?y&&Pu.Core.isSymbolReferencedInFile(y,c,n,g)?void 0:(t.delete(n,f),y&&t.delete(n,y),t.insertText(n,g.pos," =>"),[x.Convert_function_expression_0_to_arrow_function,y?y.text:xve]):(t.replaceNode(n,f,W.createToken(87)),t.insertText(n,y.end," = "),t.insertText(n,g.pos," =>"),[x.Convert_function_declaration_0_to_arrow_function,y.text])}}var pRe="fixImportNonExportedMember",y0t=[x.Module_0_declares_1_locally_but_it_is_not_exported.code];gc({errorCodes:y0t,fixIds:[pRe],getCodeActions(t){let{sourceFile:n,span:a,program:c}=t,u=v0t(n,a.start,c);if(u===void 0)return;let _=ki.ChangeTracker.with(t,f=>ymr(f,c,u));return[Xs(pRe,_,[x.Export_0_from_module_1,u.exportName.node.text,u.moduleSpecifier],pRe,x.Export_all_referenced_locals)]},getAllCodeActions(t){let{program:n}=t;return VF(ki.ChangeTracker.with(t,a=>{let c=new Map;WF(t,y0t,u=>{let _=v0t(u.file,u.start,n);if(_===void 0)return;let{exportName:f,node:y,moduleSourceFile:g}=_;if(FSe(g,f.isTypeOnly)===void 0&&kH(y))a.insertExportModifier(g,y);else{let k=c.get(g)||{typeOnlyExports:[],exports:[]};f.isTypeOnly?k.typeOnlyExports.push(f):k.exports.push(f),c.set(g,k)}}),c.forEach((u,_)=>{let f=FSe(_,!0);f&&f.isTypeOnly?(_Re(a,n,_,u.typeOnlyExports,f),_Re(a,n,_,u.exports,FSe(_,!1))):_Re(a,n,_,[...u.exports,...u.typeOnlyExports],f)})}))}});function v0t(t,n,a){var c,u;let _=la(t,n);if(ct(_)){let f=fn(_,fp);if(f===void 0)return;let y=Ic(f.moduleSpecifier)?f.moduleSpecifier:void 0;if(y===void 0)return;let g=(c=a.getResolvedModuleFromModuleSpecifier(y,t))==null?void 0:c.resolvedModule;if(g===void 0)return;let k=a.getSourceFile(g.resolvedFileName);if(k===void 0||rM(a,k))return;let T=k.symbol,C=(u=Ci(T.valueDeclaration,vb))==null?void 0:u.locals;if(C===void 0)return;let O=C.get(_.escapedText);if(O===void 0)return;let F=vmr(O);return F===void 0?void 0:{exportName:{node:_,isTypeOnly:aF(F)},node:F,moduleSourceFile:k,moduleSpecifier:y.text}}}function ymr(t,n,{exportName:a,node:c,moduleSourceFile:u}){let _=FSe(u,a.isTypeOnly);_?S0t(t,n,u,_,[a]):kH(c)?t.insertExportModifier(u,c):b0t(t,n,u,[a])}function _Re(t,n,a,c,u){te(c)&&(u?S0t(t,n,a,u,c):b0t(t,n,a,c))}function FSe(t,n){let a=c=>P_(c)&&(n&&c.isTypeOnly||!c.isTypeOnly);return Ut(t.statements,a)}function S0t(t,n,a,c,u){let _=c.exportClause&&k0(c.exportClause)?c.exportClause.elements:W.createNodeArray([]),f=!c.isTypeOnly&&!!(a1(n.getCompilerOptions())||wt(_,y=>y.isTypeOnly));t.replaceNode(a,c,W.updateExportDeclaration(c,c.modifiers,c.isTypeOnly,W.createNamedExports(W.createNodeArray([..._,...x0t(u,f)],_.hasTrailingComma)),c.moduleSpecifier,c.attributes))}function b0t(t,n,a,c){t.insertNodeAtEndOfScope(a,a,W.createExportDeclaration(void 0,!1,W.createNamedExports(x0t(c,a1(n.getCompilerOptions()))),void 0,void 0))}function x0t(t,n){return W.createNodeArray(Cr(t,a=>W.createExportSpecifier(n&&a.isTypeOnly,void 0,a.node)))}function vmr(t){if(t.valueDeclaration===void 0)return pi(t.declarations);let n=t.valueDeclaration,a=Oo(n)?Ci(n.parent.parent,h_):void 0;return a&&te(a.declarationList.declarations)===1?a:n}var dRe="fixIncorrectNamedTupleSyntax",Smr=[x.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,x.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];gc({errorCodes:Smr,getCodeActions:function(n){let{sourceFile:a,span:c}=n,u=bmr(a,c.start),_=ki.ChangeTracker.with(n,f=>xmr(f,a,u));return[Xs(dRe,_,x.Move_labeled_tuple_element_modifiers_to_labels,dRe,x.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[dRe]});function bmr(t,n){let a=la(t,n);return fn(a,c=>c.kind===203)}function xmr(t,n,a){if(!a)return;let c=a.type,u=!1,_=!1;for(;c.kind===191||c.kind===192||c.kind===197;)c.kind===191?u=!0:c.kind===192&&(_=!0),c=c.type;let f=W.updateNamedTupleMember(a,a.dotDotDotToken||(_?W.createToken(26):void 0),a.name,a.questionToken||(u?W.createToken(58):void 0),c);f!==a&&t.replaceNode(n,a,f)}var T0t="fixSpelling",E0t=[x.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,x.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,x.Cannot_find_name_0_Did_you_mean_1.code,x.Could_not_find_name_0_Did_you_mean_1.code,x.Cannot_find_namespace_0_Did_you_mean_1.code,x.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,x.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,x._0_has_no_exported_member_named_1_Did_you_mean_2.code,x.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,x.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,x.No_overload_matches_this_call.code,x.Type_0_is_not_assignable_to_type_1.code];gc({errorCodes:E0t,getCodeActions(t){let{sourceFile:n,errorCode:a}=t,c=k0t(n,t.span.start,t,a);if(!c)return;let{node:u,suggestedSymbol:_}=c,f=$c(t.host.getCompilationSettings()),y=ki.ChangeTracker.with(t,g=>C0t(g,n,u,_,f));return[Xs("spelling",y,[x.Change_spelling_to_0,vp(_)],T0t,x.Fix_all_detected_spelling_errors)]},fixIds:[T0t],getAllCodeActions:t=>Vl(t,E0t,(n,a)=>{let c=k0t(a.file,a.start,t,a.code),u=$c(t.host.getCompilationSettings());c&&C0t(n,t.sourceFile,c.node,c.suggestedSymbol,u)})});function k0t(t,n,a,c){let u=la(t,n),_=u.parent;if((c===x.No_overload_matches_this_call.code||c===x.Type_0_is_not_assignable_to_type_1.code)&&!NS(_))return;let f=a.program.getTypeChecker(),y;if(no(_)&&_.name===u){$.assert(Dx(u),"Expected an identifier for spelling (property access)");let g=f.getTypeAtLocation(_.expression);_.flags&64&&(g=f.getNonNullableType(g)),y=f.getSuggestedSymbolForNonexistentProperty(u,g)}else if(wi(_)&&_.operatorToken.kind===103&&_.left===u&&Aa(u)){let g=f.getTypeAtLocation(_.right);y=f.getSuggestedSymbolForNonexistentProperty(u,g)}else if(dh(_)&&_.right===u){let g=f.getSymbolAtLocation(_.left);g&&g.flags&1536&&(y=f.getSuggestedSymbolForNonexistentModule(_.right,g))}else if(Xm(_)&&_.name===u){$.assertNode(u,ct,"Expected an identifier for spelling (import)");let g=fn(u,fp),k=Emr(a,g,t);k&&k.symbol&&(y=f.getSuggestedSymbolForNonexistentModule(u,k.symbol))}else if(NS(_)&&_.name===u){$.assertNode(u,ct,"Expected an identifier for JSX attribute");let g=fn(u,Em),k=f.getContextualTypeForArgumentAtIndex(g,0);y=f.getSuggestedSymbolForNonexistentJSXAttribute(u,k)}else if(Wre(_)&&J_(_)&&_.name===u){let g=fn(u,Co),k=g?vv(g):void 0,T=k?f.getTypeAtLocation(k):void 0;T&&(y=f.getSuggestedSymbolForNonexistentClassMember(Sp(u),T))}else{let g=x3(u),k=Sp(u);$.assert(k!==void 0,"name should be defined"),y=f.getSuggestedSymbolForNonexistentSymbol(u,k,Tmr(g))}return y===void 0?void 0:{node:u,suggestedSymbol:y}}function C0t(t,n,a,c,u){let _=vp(c);if(!Jd(_,u)&&no(a.parent)){let f=c.valueDeclaration;f&&Vp(f)&&Aa(f.name)?t.replaceNode(n,a,W.createIdentifier(_)):t.replaceNode(n,a.parent,W.createElementAccessExpression(a.parent.expression,W.createStringLiteral(_)))}else t.replaceNode(n,a,W.createIdentifier(_))}function Tmr(t){let n=0;return t&4&&(n|=1920),t&2&&(n|=788968),t&1&&(n|=111551),n}function Emr(t,n,a){var c;if(!n||!Sl(n.moduleSpecifier))return;let u=(c=t.program.getResolvedModuleFromModuleSpecifier(n.moduleSpecifier,a))==null?void 0:c.resolvedModule;if(u)return t.program.getSourceFile(u.resolvedFileName)}var fRe="returnValueCorrect",mRe="fixAddReturnStatement",hRe="fixRemoveBracesFromArrowFunctionBody",gRe="fixWrapTheBlockWithParen",D0t=[x.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,x.Type_0_is_not_assignable_to_type_1.code,x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];gc({errorCodes:D0t,fixIds:[mRe,hRe,gRe],getCodeActions:function(n){let{program:a,sourceFile:c,span:{start:u},errorCode:_}=n,f=w0t(a.getTypeChecker(),c,u,_);if(f)return f.kind===0?jt([Cmr(n,f.expression,f.statement)],Iu(f.declaration)?Dmr(n,f.declaration,f.expression,f.commentSource):void 0):[Amr(n,f.declaration,f.expression)]},getAllCodeActions:t=>Vl(t,D0t,(n,a)=>{let c=w0t(t.program.getTypeChecker(),a.file,a.start,a.code);if(c)switch(t.fixId){case mRe:I0t(n,a.file,c.expression,c.statement);break;case hRe:if(!Iu(c.declaration))return;P0t(n,a.file,c.declaration,c.expression,c.commentSource,!1);break;case gRe:if(!Iu(c.declaration))return;N0t(n,a.file,c.declaration,c.expression);break;default:$.fail(JSON.stringify(t.fixId))}})});function A0t(t,n,a){let c=t.createSymbol(4,n.escapedText);c.links.type=t.getTypeAtLocation(a);let u=ic([c]);return t.createAnonymousType(void 0,u,[],[],[])}function yRe(t,n,a,c){if(!n.body||!Vs(n.body)||te(n.body.statements)!==1)return;let u=To(n.body.statements);if(af(u)&&vRe(t,n,t.getTypeAtLocation(u.expression),a,c))return{declaration:n,kind:0,expression:u.expression,statement:u,commentSource:u.expression};if(bC(u)&&af(u.statement)){let _=W.createObjectLiteralExpression([W.createPropertyAssignment(u.label,u.statement.expression)]),f=A0t(t,u.label,u.statement.expression);if(vRe(t,n,f,a,c))return Iu(n)?{declaration:n,kind:1,expression:_,statement:u,commentSource:u.statement.expression}:{declaration:n,kind:0,expression:_,statement:u,commentSource:u.statement.expression}}else if(Vs(u)&&te(u.statements)===1){let _=To(u.statements);if(bC(_)&&af(_.statement)){let f=W.createObjectLiteralExpression([W.createPropertyAssignment(_.label,_.statement.expression)]),y=A0t(t,_.label,_.statement.expression);if(vRe(t,n,y,a,c))return{declaration:n,kind:0,expression:f,statement:u,commentSource:_}}}}function vRe(t,n,a,c,u){if(u){let _=t.getSignatureFromDeclaration(n);if(_){ko(n,1024)&&(a=t.createPromiseType(a));let f=t.createSignature(n,_.typeParameters,_.thisParameter,_.parameters,a,void 0,_.minArgumentCount,_.flags);a=t.createAnonymousType(void 0,ic(),[f],[],[])}else a=t.getAnyType()}return t.isTypeAssignableTo(a,c)}function w0t(t,n,a,c){let u=la(n,a);if(!u.parent)return;let _=fn(u.parent,lu);switch(c){case x.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!_||!_.body||!_.type||!zh(_.type,u)?void 0:yRe(t,_,t.getTypeFromTypeNode(_.type),!1);case x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!_||!Js(_.parent)||!_.body)return;let f=_.parent.arguments.indexOf(_);if(f===-1)return;let y=t.getContextualTypeForArgumentAtIndex(_.parent,f);return y?yRe(t,_,y,!0):void 0;case x.Type_0_is_not_assignable_to_type_1.code:if(!Eb(u)||!_U(u.parent)&&!NS(u.parent))return;let g=kmr(u.parent);return!g||!lu(g)||!g.body?void 0:yRe(t,g,t.getTypeAtLocation(u.parent),!0)}}function kmr(t){switch(t.kind){case 261:case 170:case 209:case 173:case 304:return t.initializer;case 292:return t.initializer&&(SL(t.initializer)?t.initializer.expression:void 0);case 305:case 172:case 307:case 349:case 342:return}}function I0t(t,n,a,c){$g(a);let u=eQ(n);t.replaceNode(n,c,W.createReturnStatement(a),{leadingTriviaOption:ki.LeadingTriviaOption.Exclude,trailingTriviaOption:ki.TrailingTriviaOption.Exclude,suffix:u?";":void 0})}function P0t(t,n,a,c,u,_){let f=_||Zoe(c)?W.createParenthesizedExpression(c):c;$g(u),E3(u,f),t.replaceNode(n,a.body,f)}function N0t(t,n,a,c){t.replaceNode(n,a.body,W.createParenthesizedExpression(c))}function Cmr(t,n,a){let c=ki.ChangeTracker.with(t,u=>I0t(u,t.sourceFile,n,a));return Xs(fRe,c,x.Add_a_return_statement,mRe,x.Add_all_missing_return_statement)}function Dmr(t,n,a,c){let u=ki.ChangeTracker.with(t,_=>P0t(_,t.sourceFile,n,a,c,!1));return Xs(fRe,u,x.Remove_braces_from_arrow_function_body,hRe,x.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function Amr(t,n,a){let c=ki.ChangeTracker.with(t,u=>N0t(u,t.sourceFile,n,a));return Xs(fRe,c,x.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,gRe,x.Wrap_all_object_literal_with_parentheses)}var JA="fixMissingMember",RSe="fixMissingProperties",LSe="fixMissingAttributes",MSe="fixMissingFunctionDeclaration",O0t=[x.Property_0_does_not_exist_on_type_1.code,x.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,x.Property_0_is_missing_in_type_1_but_required_in_type_2.code,x.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,x.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,x.Cannot_find_name_0.code,x.Type_0_does_not_satisfy_the_expected_type_1.code];gc({errorCodes:O0t,getCodeActions(t){let n=t.program.getTypeChecker(),a=F0t(t.sourceFile,t.span.start,t.errorCode,n,t.program);if(a){if(a.kind===3){let c=ki.ChangeTracker.with(t,u=>J0t(u,t,a));return[Xs(RSe,c,x.Add_missing_properties,RSe,x.Add_all_missing_properties)]}if(a.kind===4){let c=ki.ChangeTracker.with(t,u=>q0t(u,t,a));return[Xs(LSe,c,x.Add_missing_attributes,LSe,x.Add_all_missing_attributes)]}if(a.kind===2||a.kind===5){let c=ki.ChangeTracker.with(t,u=>z0t(u,t,a));return[Xs(MSe,c,[x.Add_missing_function_declaration_0,a.token.text],MSe,x.Add_all_missing_function_declarations)]}if(a.kind===1){let c=ki.ChangeTracker.with(t,u=>U0t(u,t.program.getTypeChecker(),a));return[Xs(JA,c,[x.Add_missing_enum_member_0,a.token.text],JA,x.Add_all_missing_members)]}return go(Omr(t,a),wmr(t,a))}},fixIds:[JA,MSe,RSe,LSe],getAllCodeActions:t=>{let{program:n,fixId:a}=t,c=n.getTypeChecker(),u=new Set,_=new Map;return VF(ki.ChangeTracker.with(t,f=>{WF(t,O0t,y=>{let g=F0t(y.file,y.start,y.code,c,t.program);if(g===void 0)return;let k=hl(g.parentDeclaration)+"#"+(g.kind===3?g.identifier||hl(g.token):g.token.text);if(o1(u,k)){if(a===MSe&&(g.kind===2||g.kind===5))z0t(f,t,g);else if(a===RSe&&g.kind===3)J0t(f,t,g);else if(a===LSe&&g.kind===4)q0t(f,t,g);else if(g.kind===1&&U0t(f,c,g),g.kind===0){let{parentDeclaration:T,token:C}=g,O=hs(_,T,()=>[]);O.some(F=>F.token.text===C.text)||O.push(g)}}}),_.forEach((y,g)=>{let k=fh(g)?void 0:jmr(g,c);for(let T of y){if(k?.some(G=>{let Z=_.get(G);return!!Z&&Z.some(({token:Q})=>Q.text===T.token.text)}))continue;let{parentDeclaration:C,declSourceFile:O,modifierFlags:F,token:M,call:U,isJSFile:J}=T;if(U&&!Aa(M))$0t(t,f,U,M,F&256,C,O);else if(J&&!Af(C)&&!fh(C))R0t(f,O,C,M,!!(F&256));else{let G=M0t(c,C,M);j0t(f,O,C,M.text,G,F&256)}}})}))}});function F0t(t,n,a,c,u){var _,f;let y=la(t,n),g=y.parent;if(a===x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(y.kind===19&&Lc(g)&&Js(g.parent)))return;let M=hr(g.parent.arguments,Z=>Z===g);if(M<0)return;let U=c.getResolvedSignature(g.parent);if(!(U&&U.declaration&&U.parameters[M]))return;let J=U.parameters[M].valueDeclaration;if(!(J&&wa(J)&&ct(J.name)))return;let G=so(c.getUnmatchedProperties(c.getTypeAtLocation(g),c.getParameterType(U,M).getNonNullableType(),!1,!1));return te(G)?{kind:3,token:J.name,identifier:J.name.text,properties:G,parentDeclaration:g}:void 0}if(y.kind===19||yL(g)||gy(g)){let M=(yL(g)||gy(g))&&g.expression?g.expression:g;if(Lc(M)){let U=yL(g)?c.getTypeFromTypeNode(g.type):c.getContextualType(M)||c.getTypeAtLocation(M),J=so(c.getUnmatchedProperties(c.getTypeAtLocation(g),U.getNonNullableType(),!1,!1));return te(J)?{kind:3,token:g,identifier:void 0,properties:J,parentDeclaration:M,indentation:gy(M.parent)||BH(M.parent)?0:void 0}:void 0}}if(!Dx(y))return;if(ct(y)&&lE(g)&&g.initializer&&Lc(g.initializer)){let M=(_=c.getContextualType(y)||c.getTypeAtLocation(y))==null?void 0:_.getNonNullableType(),U=so(c.getUnmatchedProperties(c.getTypeAtLocation(g.initializer),M,!1,!1));return te(U)?{kind:3,token:y,identifier:y.text,properties:U,parentDeclaration:g.initializer}:void 0}if(ct(y)&&Em(y.parent)){let M=$c(u.getCompilerOptions()),U=Rmr(c,M,y.parent);return te(U)?{kind:4,token:y,attributes:U,parentDeclaration:y.parent}:void 0}if(ct(y)){let M=(f=c.getContextualType(y))==null?void 0:f.getNonNullableType();if(M&&ro(M)&16){let U=pi(c.getSignaturesOfType(M,0));return U===void 0?void 0:{kind:5,token:y,signature:U,sourceFile:t,parentDeclaration:V0t(y)}}if(Js(g)&&g.expression===y)return{kind:2,token:y,call:g,sourceFile:t,modifierFlags:0,parentDeclaration:V0t(y)}}if(!no(g))return;let k=nve(c.getTypeAtLocation(g.expression)),T=k.symbol;if(!T||!T.declarations)return;if(ct(y)&&Js(g.parent)){let M=wt(T.declarations,I_),U=M?.getSourceFile();if(M&&U&&!rM(u,U))return{kind:2,token:y,call:g.parent,sourceFile:U,modifierFlags:32,parentDeclaration:M};let J=wt(T.declarations,Ta);if(t.commonJsModuleIndicator)return;if(J&&!rM(u,J))return{kind:2,token:y,call:g.parent,sourceFile:J,modifierFlags:32,parentDeclaration:J}}let C=wt(T.declarations,Co);if(!C&&Aa(y))return;let O=C||wt(T.declarations,M=>Af(M)||fh(M));if(O&&!rM(u,O.getSourceFile())){let M=!fh(O)&&(k.target||k)!==c.getDeclaredTypeOfSymbol(T);if(M&&(Aa(y)||Af(O)))return;let U=O.getSourceFile(),J=fh(O)?0:(M?256:0)|(Ive(y.text)?2:0),G=ph(U),Z=Ci(g.parent,Js);return{kind:0,token:y,call:Z,modifierFlags:J,parentDeclaration:O,declSourceFile:U,isJSFile:G}}let F=wt(T.declarations,CA);if(F&&!(k.flags&1056)&&!Aa(y)&&!rM(u,F.getSourceFile()))return{kind:1,token:y,parentDeclaration:F}}function wmr(t,n){return n.isJSFile?Z2(Imr(t,n)):Pmr(t,n)}function Imr(t,{parentDeclaration:n,declSourceFile:a,modifierFlags:c,token:u}){if(Af(n)||fh(n))return;let _=ki.ChangeTracker.with(t,y=>R0t(y,a,n,u,!!(c&256)));if(_.length===0)return;let f=c&256?x.Initialize_static_property_0:Aa(u)?x.Declare_a_private_field_named_0:x.Initialize_property_0_in_the_constructor;return Xs(JA,_,[f,u.text],JA,x.Add_all_missing_members)}function R0t(t,n,a,c,u){let _=c.text;if(u){if(a.kind===232)return;let f=a.name.getText(),y=L0t(W.createIdentifier(f),_);t.insertNodeAfter(n,a,y)}else if(Aa(c)){let f=W.createPropertyDeclaration(void 0,_,void 0,void 0,void 0),y=B0t(a);y?t.insertNodeAfter(n,y,f):t.insertMemberAtStart(n,a,f)}else{let f=Rx(a);if(!f)return;let y=L0t(W.createThis(),_);t.insertNodeAtConstructorEnd(n,f,y)}}function L0t(t,n){return W.createExpressionStatement(W.createAssignment(W.createPropertyAccessExpression(t,n),HF()))}function Pmr(t,{parentDeclaration:n,declSourceFile:a,modifierFlags:c,token:u}){let _=u.text,f=c&256,y=M0t(t.program.getTypeChecker(),n,u),g=T=>ki.ChangeTracker.with(t,C=>j0t(C,a,n,_,y,T)),k=[Xs(JA,g(c&256),[f?x.Declare_static_property_0:x.Declare_property_0,_],JA,x.Add_all_missing_members)];return f||Aa(u)||(c&2&&k.unshift(wv(JA,g(2),[x.Declare_private_property_0,_])),k.push(Nmr(t,a,n,u.text,y))),k}function M0t(t,n,a){let c;if(a.parent.parent.kind===227){let u=a.parent.parent,_=a.parent===u.left?u.right:u.left,f=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(_)));c=t.typeToTypeNode(f,n,1,8)}else{let u=t.getContextualType(a.parent);c=u?t.typeToTypeNode(u,void 0,1,8):void 0}return c||W.createKeywordTypeNode(133)}function j0t(t,n,a,c,u,_){let f=_?W.createNodeArray(W.createModifiersFromModifierFlags(_)):void 0,y=Co(a)?W.createPropertyDeclaration(f,c,void 0,u,void 0):W.createPropertySignature(void 0,c,void 0,u),g=B0t(a);g?t.insertNodeAfter(n,g,y):t.insertMemberAtStart(n,a,y)}function B0t(t){let n;for(let a of t.members){if(!ps(a))break;n=a}return n}function Nmr(t,n,a,c,u){let _=W.createKeywordTypeNode(154),f=W.createParameterDeclaration(void 0,void 0,"x",void 0,_,void 0),y=W.createIndexSignature(void 0,[f],u),g=ki.ChangeTracker.with(t,k=>k.insertMemberAtStart(n,a,y));return wv(JA,g,[x.Add_index_signature_for_property_0,c])}function Omr(t,n){let{parentDeclaration:a,declSourceFile:c,modifierFlags:u,token:_,call:f}=n;if(f===void 0)return;let y=_.text,g=T=>ki.ChangeTracker.with(t,C=>$0t(t,C,f,_,T,a,c)),k=[Xs(JA,g(u&256),[u&256?x.Declare_static_method_0:x.Declare_method_0,y],JA,x.Add_all_missing_members)];return u&2&&k.unshift(wv(JA,g(2),[x.Declare_private_method_0,y])),k}function $0t(t,n,a,c,u,_,f){let y=BP(f,t.program,t.preferences,t.host),g=Co(_)?175:174,k=KRe(g,t,y,a,c,u,_),T=Lmr(_,a);T?n.insertNodeAfter(f,T,k):n.insertMemberAtStart(f,_,k),y.writeFixes(n)}function U0t(t,n,{token:a,parentDeclaration:c}){let u=Pt(c.members,g=>{let k=n.getTypeAtLocation(g);return!!(k&&k.flags&402653316)}),_=c.getSourceFile(),f=W.createEnumMember(a,u?W.createStringLiteral(a.text):void 0),y=Yr(c.members);y?t.insertNodeInListAfter(_,y,f,c.members):t.insertMemberAtStart(_,c,f)}function z0t(t,n,a){let c=Vg(n.sourceFile,n.preferences),u=BP(n.sourceFile,n.program,n.preferences,n.host),_=a.kind===2?KRe(263,n,u,a.call,Zi(a.token),a.modifierFlags,a.parentDeclaration):GSe(263,n,c,a.signature,Mae(x.Function_not_implemented.message,c),a.token,void 0,void 0,void 0,u);_===void 0&&$.fail("fixMissingFunctionDeclaration codefix got unexpected error."),gy(a.parentDeclaration)?t.insertNodeBefore(a.sourceFile,a.parentDeclaration,_,!0):t.insertNodeAtEndOfScope(a.sourceFile,a.parentDeclaration,_),u.writeFixes(t)}function q0t(t,n,a){let c=BP(n.sourceFile,n.program,n.preferences,n.host),u=Vg(n.sourceFile,n.preferences),_=n.program.getTypeChecker(),f=a.parentDeclaration.attributes,y=Pt(f.properties,TF),g=Cr(a.attributes,C=>{let O=jSe(n,_,c,u,_.getTypeOfSymbol(C),a.parentDeclaration),F=W.createIdentifier(C.name),M=W.createJsxAttribute(F,W.createJsxExpression(void 0,O));return xl(F,M),M}),k=W.createJsxAttributes(y?[...g,...f.properties]:[...f.properties,...g]),T={prefix:f.pos===f.end?" ":void 0};t.replaceNode(n.sourceFile,f,k,T),c.writeFixes(t)}function J0t(t,n,a){let c=BP(n.sourceFile,n.program,n.preferences,n.host),u=Vg(n.sourceFile,n.preferences),_=$c(n.program.getCompilerOptions()),f=n.program.getTypeChecker(),y=Cr(a.properties,k=>{let T=jSe(n,f,c,u,f.getTypeOfSymbol(k),a.parentDeclaration);return W.createPropertyAssignment(Mmr(k,_,u,f),T)}),g={leadingTriviaOption:ki.LeadingTriviaOption.Exclude,trailingTriviaOption:ki.TrailingTriviaOption.Exclude,indentation:a.indentation};t.replaceNode(n.sourceFile,a.parentDeclaration,W.createObjectLiteralExpression([...a.parentDeclaration.properties,...y],!0),g),c.writeFixes(t)}function jSe(t,n,a,c,u,_){if(u.flags&3)return HF();if(u.flags&134217732)return W.createStringLiteral("",c===0);if(u.flags&8)return W.createNumericLiteral(0);if(u.flags&64)return W.createBigIntLiteral("0n");if(u.flags&16)return W.createFalse();if(u.flags&1056){let f=u.symbol.exports?ia(u.symbol.exports.values()):u.symbol,y=u.symbol.parent&&u.symbol.parent.flags&256?u.symbol.parent:u.symbol,g=n.symbolToExpression(y,111551,void 0,64);return f===void 0||g===void 0?W.createNumericLiteral(0):W.createPropertyAccessExpression(g,n.symbolToString(f))}if(u.flags&256)return W.createNumericLiteral(u.value);if(u.flags&2048)return W.createBigIntLiteral(u.value);if(u.flags&128)return W.createStringLiteral(u.value,c===0);if(u.flags&512)return u===n.getFalseType()||u===n.getFalseType(!0)?W.createFalse():W.createTrue();if(u.flags&65536)return W.createNull();if(u.flags&1048576)return Je(u.types,y=>jSe(t,n,a,c,y,_))??HF();if(n.isArrayLikeType(u))return W.createArrayLiteralExpression();if(Fmr(u)){let f=Cr(n.getPropertiesOfType(u),y=>{let g=jSe(t,n,a,c,n.getTypeOfSymbol(y),_);return W.createPropertyAssignment(y.name,g)});return W.createObjectLiteralExpression(f,!0)}if(ro(u)&16){if(wt(u.symbol.declarations||j,jf(Cb,G1,Ep))===void 0)return HF();let y=n.getSignaturesOfType(u,0);return y===void 0?HF():GSe(219,t,c,y[0],Mae(x.Function_not_implemented.message,c),void 0,void 0,void 0,_,a)??HF()}if(ro(u)&1){let f=JT(u.symbol);if(f===void 0||pP(f))return HF();let y=Rx(f);return y&&te(y.parameters)?HF():W.createNewExpression(W.createIdentifier(u.symbol.name),void 0,void 0)}return HF()}function HF(){return W.createIdentifier("undefined")}function Fmr(t){return t.flags&524288&&(ro(t)&128||t.symbol&&Ci(to(t.symbol.declarations),fh))}function Rmr(t,n,a){let c=t.getContextualType(a.attributes);if(c===void 0)return j;let u=c.getProperties();if(!te(u))return j;let _=new Set;for(let f of a.attributes.properties)if(NS(f)&&_.add(YU(f.name)),TF(f)){let y=t.getTypeAtLocation(f.expression);for(let g of y.getProperties())_.add(g.escapedName)}return yr(u,f=>Jd(f.name,n,1)&&!(f.flags&16777216||Fp(f)&48||_.has(f.escapedName)))}function Lmr(t,n){if(fh(t))return;let a=fn(n,c=>Ep(c)||kp(c));return a&&a.parent===t?a:void 0}function Mmr(t,n,a,c){if(wx(t)){let u=c.symbolToNode(t,111551,void 0,void 0,1);if(u&&dc(u))return u}return EH(t.name,n,a===0,!1,!1)}function V0t(t){if(fn(t,SL)){let n=fn(t.parent,gy);if(n)return n}return Pn(t)}function jmr(t,n){let a=[];for(;t;){let c=aP(t),u=c&&n.getSymbolAtLocation(c.expression);if(!u)break;let _=u.flags&2097152?n.getAliasedSymbol(u):u,f=_.declarations&&wt(_.declarations,Co);if(!f)break;a.push(f),t=f}return a}var SRe="addMissingNewOperator",W0t=[x.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];gc({errorCodes:W0t,getCodeActions(t){let{sourceFile:n,span:a}=t,c=ki.ChangeTracker.with(t,u=>G0t(u,n,a));return[Xs(SRe,c,x.Add_missing_new_operator_to_call,SRe,x.Add_missing_new_operator_to_all_calls)]},fixIds:[SRe],getAllCodeActions:t=>Vl(t,W0t,(n,a)=>G0t(n,t.sourceFile,a))});function G0t(t,n,a){let c=Ba(Bmr(n,a),Js),u=W.createNewExpression(c.expression,c.typeArguments,c.arguments);t.replaceNode(n,c,u)}function Bmr(t,n){let a=la(t,n.start),c=Xn(n);for(;a.endUSe(y,t.program,t.preferences,t.host,c,u)),[te(u)>1?x.Add_missing_parameters_to_0:x.Add_missing_parameter_to_0,a],BSe,x.Add_all_missing_parameters)),te(_)&&jt(f,Xs($Se,ki.ChangeTracker.with(t,y=>USe(y,t.program,t.preferences,t.host,c,_)),[te(_)>1?x.Add_optional_parameters_to_0:x.Add_optional_parameter_to_0,a],$Se,x.Add_all_optional_parameters)),f},getAllCodeActions:t=>Vl(t,H0t,(n,a)=>{let c=K0t(t.sourceFile,t.program,a.start);if(c){let{declarations:u,newParameters:_,newOptionalParameters:f}=c;t.fixId===BSe&&USe(n,t.program,t.preferences,t.host,u,_),t.fixId===$Se&&USe(n,t.program,t.preferences,t.host,u,f)}})});function K0t(t,n,a){let c=la(t,a),u=fn(c,Js);if(u===void 0||te(u.arguments)===0)return;let _=n.getTypeChecker(),f=_.getTypeAtLocation(u.expression),y=yr(f.symbol.declarations,Q0t);if(y===void 0)return;let g=Yr(y);if(g===void 0||g.body===void 0||rM(n,g.getSourceFile()))return;let k=$mr(g);if(k===void 0)return;let T=[],C=[],O=te(g.parameters),F=te(u.arguments);if(O>F)return;let M=[g,...zmr(g,y)];for(let U=0,J=0,G=0;U{let g=Pn(y),k=BP(g,n,a,c);te(y.parameters)?t.replaceNodeRangeWithNodes(g,To(y.parameters),Sn(y.parameters),Z0t(k,f,y,_),{joiner:", ",indentation:0,leadingTriviaOption:ki.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ki.TrailingTriviaOption.Include}):X(Z0t(k,f,y,_),(T,C)=>{te(y.parameters)===0&&C===0?t.insertNodeAt(g,y.parameters.end,T):t.insertNodeAtEndOfList(g,y.parameters,T)}),k.writeFixes(t)})}function Q0t(t){switch(t.kind){case 263:case 219:case 175:case 220:return!0;default:return!1}}function Z0t(t,n,a,c){let u=Cr(a.parameters,_=>W.createParameterDeclaration(_.modifiers,_.dotDotDotToken,_.name,_.questionToken,_.type,_.initializer));for(let{pos:_,declaration:f}of c){let y=_>0?u[_-1]:void 0;u.splice(_,0,W.updateParameterDeclaration(f,f.modifiers,f.dotDotDotToken,f.name,y&&y.questionToken?W.createToken(58):f.questionToken,Vmr(t,f.type,n),f.initializer))}return u}function zmr(t,n){let a=[];for(let c of n)if(qmr(c)){if(te(c.parameters)===te(t.parameters)){a.push(c);continue}if(te(c.parameters)>te(t.parameters))return[]}return a}function qmr(t){return Q0t(t)&&t.body===void 0}function X0t(t,n,a){return W.createParameterDeclaration(void 0,void 0,t,a,n,void 0)}function Jmr(t,n){return te(t)&&Pt(t,a=>nVl(t,t1t,(n,a,c)=>{let u=n1t(a.file,a.start);if(u!==void 0)if(t.fixId===bRe){let _=i1t(u,t.host,a.code);_&&c.push(r1t(a.file.fileName,_))}else $.fail(`Bad fixId: ${t.fixId}`)})});function r1t(t,n){return{type:"install package",file:t,packageName:n}}function n1t(t,n){let a=Ci(la(t,n),Ic);if(!a)return;let c=a.text,{packageName:u}=wie(c);return vt(u)?void 0:u}function i1t(t,n,a){var c;return a===Y0t?pL.has(t)?"@types/node":void 0:(c=n.isKnownTypesPackageName)!=null&&c.call(n,t)?Pie(t):void 0}var o1t=[x.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,x.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,x.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,x.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,x.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,x.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],xRe="fixClassDoesntImplementInheritedAbstractMember";gc({errorCodes:o1t,getCodeActions:function(n){let{sourceFile:a,span:c}=n,u=ki.ChangeTracker.with(n,_=>s1t(a1t(a,c.start),a,n,_,n.preferences));return u.length===0?void 0:[Xs(xRe,u,x.Implement_inherited_abstract_class,xRe,x.Implement_all_inherited_abstract_classes)]},fixIds:[xRe],getAllCodeActions:function(n){let a=new Set;return Vl(n,o1t,(c,u)=>{let _=a1t(u.file,u.start);o1(a,hl(_))&&s1t(_,n.sourceFile,n,c,n.preferences)})}});function a1t(t,n){let a=la(t,n);return Ba(a.parent,Co)}function s1t(t,n,a,c,u){let _=vv(t),f=a.program.getTypeChecker(),y=f.getTypeAtLocation(_),g=f.getPropertiesOfType(y).filter(Gmr),k=BP(n,a.program,u,a.host);HRe(t,g,n,a,u,k,T=>c.insertMemberAtStart(n,t,T)),k.writeFixes(c)}function Gmr(t){let n=_E(To(t.getDeclarations()));return!(n&2)&&!!(n&64)}var TRe="classSuperMustPrecedeThisAccess",c1t=[x.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];gc({errorCodes:c1t,getCodeActions(t){let{sourceFile:n,span:a}=t,c=u1t(n,a.start);if(!c)return;let{constructor:u,superCall:_}=c,f=ki.ChangeTracker.with(t,y=>l1t(y,n,u,_));return[Xs(TRe,f,x.Make_super_call_the_first_statement_in_the_constructor,TRe,x.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[TRe],getAllCodeActions(t){let{sourceFile:n}=t,a=new Set;return Vl(t,c1t,(c,u)=>{let _=u1t(u.file,u.start);if(!_)return;let{constructor:f,superCall:y}=_;o1(a,hl(f.parent))&&l1t(c,n,f,y)})}});function l1t(t,n,a,c){t.insertNodeAtConstructorStart(n,a,c),t.delete(n,c)}function u1t(t,n){let a=la(t,n);if(a.kind!==110)return;let c=My(a),u=p1t(c.body);return u&&!u.expression.arguments.some(_=>no(_)&&_.expression===a)?{constructor:c,superCall:u}:void 0}function p1t(t){return af(t)&&U4(t.expression)?t:Rs(t)?void 0:Is(t,p1t)}var ERe="constructorForDerivedNeedSuperCall",_1t=[x.Constructors_for_derived_classes_must_contain_a_super_call.code];gc({errorCodes:_1t,getCodeActions(t){let{sourceFile:n,span:a}=t,c=d1t(n,a.start),u=ki.ChangeTracker.with(t,_=>f1t(_,n,c));return[Xs(ERe,u,x.Add_missing_super_call,ERe,x.Add_all_missing_super_calls)]},fixIds:[ERe],getAllCodeActions:t=>Vl(t,_1t,(n,a)=>f1t(n,t.sourceFile,d1t(a.file,a.start)))});function d1t(t,n){let a=la(t,n);return $.assert(kp(a.parent),"token should be at the constructor declaration"),a.parent}function f1t(t,n,a){let c=W.createExpressionStatement(W.createCallExpression(W.createSuper(),void 0,j));t.insertNodeAtConstructorStart(n,a,c)}var m1t="fixEnableJsxFlag",h1t=[x.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];gc({errorCodes:h1t,getCodeActions:function(n){let{configFile:a}=n.program.getCompilerOptions();if(a===void 0)return;let c=ki.ChangeTracker.with(n,u=>g1t(u,a));return[wv(m1t,c,x.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[m1t],getAllCodeActions:t=>Vl(t,h1t,n=>{let{configFile:a}=t.program.getCompilerOptions();a!==void 0&&g1t(n,a)})});function g1t(t,n){eLe(t,n,"jsx",W.createStringLiteral("react"))}var kRe="fixNaNEquality",y1t=[x.This_condition_will_always_return_0.code];gc({errorCodes:y1t,getCodeActions(t){let{sourceFile:n,span:a,program:c}=t,u=v1t(c,n,a);if(u===void 0)return;let{suggestion:_,expression:f,arg:y}=u,g=ki.ChangeTracker.with(t,k=>S1t(k,n,y,f));return[Xs(kRe,g,[x.Use_0,_],kRe,x.Use_Number_isNaN_in_all_conditions)]},fixIds:[kRe],getAllCodeActions:t=>Vl(t,y1t,(n,a)=>{let c=v1t(t.program,a.file,Jp(a.start,a.length));c&&S1t(n,a.file,c.arg,c.expression)})});function v1t(t,n,a){let c=wt(t.getSemanticDiagnostics(n),f=>f.start===a.start&&f.length===a.length);if(c===void 0||c.relatedInformation===void 0)return;let u=wt(c.relatedInformation,f=>f.code===x.Did_you_mean_0.code);if(u===void 0||u.file===void 0||u.start===void 0||u.length===void 0)return;let _=rLe(u.file,Jp(u.start,u.length));if(_!==void 0&&Vt(_)&&wi(_.parent))return{suggestion:Hmr(u.messageText),expression:_.parent,arg:_}}function S1t(t,n,a,c){let u=W.createCallExpression(W.createPropertyAccessExpression(W.createIdentifier("Number"),W.createIdentifier("isNaN")),void 0,[a]),_=c.operatorToken.kind;t.replaceNode(n,c,_===38||_===36?W.createPrefixUnaryExpression(54,u):u)}function Hmr(t){let[,n]=RS(t,` -`,0).match(/'(.*)'/)||[];return n}gc({errorCodes:[x.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,x.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,x.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(n){let a=n.program.getCompilerOptions(),{configFile:c}=a;if(c===void 0)return;let u=[],_=Km(a);if(_>=5&&_<99){let k=ki.ChangeTracker.with(n,T=>{eLe(T,c,"module",W.createStringLiteral("esnext"))});u.push(wv("fixModuleOption",k,[x.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}let y=$c(a);if(y<4||y>99){let k=ki.ChangeTracker.with(n,T=>{if(!fU(c))return;let O=[["target",W.createStringLiteral("es2017")]];_===1&&O.push(["module",W.createStringLiteral("commonjs")]),YRe(T,c,O)});u.push(wv("fixTargetOption",k,[x.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return u.length?u:void 0}});var CRe="fixPropertyAssignment",b1t=[x.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];gc({errorCodes:b1t,fixIds:[CRe],getCodeActions(t){let{sourceFile:n,span:a}=t,c=T1t(n,a.start),u=ki.ChangeTracker.with(t,_=>x1t(_,t.sourceFile,c));return[Xs(CRe,u,[x.Change_0_to_1,"=",":"],CRe,[x.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:t=>Vl(t,b1t,(n,a)=>x1t(n,a.file,T1t(a.file,a.start)))});function x1t(t,n,a){t.replaceNode(n,a,W.createPropertyAssignment(a.name,a.objectAssignmentInitializer))}function T1t(t,n){return Ba(la(t,n).parent,im)}var DRe="extendsInterfaceBecomesImplements",E1t=[x.Cannot_extend_an_interface_0_Did_you_mean_implements.code];gc({errorCodes:E1t,getCodeActions(t){let{sourceFile:n}=t,a=k1t(n,t.span.start);if(!a)return;let{extendsToken:c,heritageClauses:u}=a,_=ki.ChangeTracker.with(t,f=>C1t(f,n,c,u));return[Xs(DRe,_,x.Change_extends_to_implements,DRe,x.Change_all_extended_interfaces_to_implements)]},fixIds:[DRe],getAllCodeActions:t=>Vl(t,E1t,(n,a)=>{let c=k1t(a.file,a.start);c&&C1t(n,a.file,c.extendsToken,c.heritageClauses)})});function k1t(t,n){let a=la(t,n),c=Cf(a).heritageClauses,u=c[0].getFirstToken();return u.kind===96?{extendsToken:u,heritageClauses:c}:void 0}function C1t(t,n,a,c){if(t.replaceNode(n,a,W.createToken(119)),c.length===2&&c[0].token===96&&c[1].token===119){let u=c[1].getFirstToken(),_=u.getFullStart();t.replaceRange(n,{pos:_,end:_},W.createToken(28));let f=n.text,y=u.end;for(;yI1t(u,n,a));return[Xs(ARe,c,[x.Add_0_to_unresolved_variable,a.className||"this"],ARe,x.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[ARe],getAllCodeActions:t=>Vl(t,A1t,(n,a)=>{let c=w1t(a.file,a.start,a.code);c&&I1t(n,t.sourceFile,c)})});function w1t(t,n,a){let c=la(t,n);if(ct(c)||Aa(c))return{node:c,className:a===D1t?Cf(c).name.text:void 0}}function I1t(t,n,{node:a,className:c}){$g(a),t.replaceNode(n,a,W.createPropertyAccessExpression(c?W.createIdentifier(c):W.createThis(),a))}var wRe="fixInvalidJsxCharacters_expression",zSe="fixInvalidJsxCharacters_htmlEntity",P1t=[x.Unexpected_token_Did_you_mean_or_gt.code,x.Unexpected_token_Did_you_mean_or_rbrace.code];gc({errorCodes:P1t,fixIds:[wRe,zSe],getCodeActions(t){let{sourceFile:n,preferences:a,span:c}=t,u=ki.ChangeTracker.with(t,f=>IRe(f,a,n,c.start,!1)),_=ki.ChangeTracker.with(t,f=>IRe(f,a,n,c.start,!0));return[Xs(wRe,u,x.Wrap_invalid_character_in_an_expression_container,wRe,x.Wrap_all_invalid_characters_in_an_expression_container),Xs(zSe,_,x.Convert_invalid_character_to_its_html_entity_code,zSe,x.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(t){return Vl(t,P1t,(n,a)=>IRe(n,t.preferences,a.file,a.start,t.fixId===zSe))}});var N1t={">":">","}":"}"};function Kmr(t){return Ho(N1t,t)}function IRe(t,n,a,c,u){let _=a.getText()[c];if(!Kmr(_))return;let f=u?N1t[_]:`{${rq(a,n,_)}}`;t.replaceRangeWithText(a,{pos:c,end:c+1},f)}var qSe="deleteUnmatchedParameter",O1t="renameUnmatchedParameter",F1t=[x.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];gc({fixIds:[qSe,O1t],errorCodes:F1t,getCodeActions:function(n){let{sourceFile:a,span:c}=n,u=[],_=R1t(a,c.start);if(_)return jt(u,Qmr(n,_)),jt(u,Zmr(n,_)),u},getAllCodeActions:function(n){let a=new Map;return VF(ki.ChangeTracker.with(n,c=>{WF(n,F1t,({file:u,start:_})=>{let f=R1t(u,_);f&&a.set(f.signature,jt(a.get(f.signature),f.jsDocParameterTag))}),a.forEach((u,_)=>{if(n.fixId===qSe){let f=new Set(u);c.filterJSDocTags(_.getSourceFile(),_,y=>!f.has(y))}})}))}});function Qmr(t,{name:n,jsDocHost:a,jsDocParameterTag:c}){let u=ki.ChangeTracker.with(t,_=>_.filterJSDocTags(t.sourceFile,a,f=>f!==c));return Xs(qSe,u,[x.Delete_unused_param_tag_0,n.getText(t.sourceFile)],qSe,x.Delete_all_unused_param_tags)}function Zmr(t,{name:n,jsDocHost:a,signature:c,jsDocParameterTag:u}){if(!te(c.parameters))return;let _=t.sourceFile,f=sA(c),y=new Set;for(let C of f)Uy(C)&&ct(C.name)&&y.add(C.name.escapedText);let g=Je(c.parameters,C=>ct(C.name)&&!y.has(C.name.escapedText)?C.name.getText(_):void 0);if(g===void 0)return;let k=W.updateJSDocParameterTag(u,u.tagName,W.createIdentifier(g),u.isBracketed,u.typeExpression,u.isNameFirst,u.comment),T=ki.ChangeTracker.with(t,C=>C.replaceJSDocComment(_,a,Cr(f,O=>O===u?k:O)));return wv(O1t,T,[x.Rename_param_tag_name_0_to_1,n.getText(_),g])}function R1t(t,n){let a=la(t,n);if(a.parent&&Uy(a.parent)&&ct(a.parent.name)){let c=a.parent,u=iP(c),_=dA(c);if(u&&_)return{jsDocHost:u,signature:_,name:a.parent.name,jsDocParameterTag:c}}}var PRe="fixUnreferenceableDecoratorMetadata",Xmr=[x.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code];gc({errorCodes:Xmr,getCodeActions:t=>{let n=Ymr(t.sourceFile,t.program,t.span.start);if(!n)return;let a=ki.ChangeTracker.with(t,_=>n.kind===277&&thr(_,t.sourceFile,n,t.program)),c=ki.ChangeTracker.with(t,_=>ehr(_,t.sourceFile,n,t.program)),u;return a.length&&(u=jt(u,wv(PRe,a,x.Convert_named_imports_to_namespace_import))),c.length&&(u=jt(u,wv(PRe,c,x.Use_import_type))),u},fixIds:[PRe]});function Ymr(t,n,a){let c=Ci(la(t,a),ct);if(!c||c.parent.kind!==184)return;let _=n.getTypeChecker().getSymbolAtLocation(c);return wt(_?.declarations||j,jf(H1,Xm,gd))}function ehr(t,n,a,c){if(a.kind===272){t.insertModifierBefore(n,156,a.name);return}let u=a.kind===274?a:a.parent.parent;if(u.name&&u.namedBindings)return;let _=c.getTypeChecker();R6e(u,y=>{if($f(y.symbol,_).flags&111551)return!0})||t.insertModifierBefore(n,156,u)}function thr(t,n,a,c){qF.doChangeNamedToNamespaceOrDefault(n,c,t,a.parent)}var Lae="unusedIdentifier",NRe="unusedIdentifier_prefix",ORe="unusedIdentifier_delete",JSe="unusedIdentifier_deleteImports",FRe="unusedIdentifier_infer",L1t=[x._0_is_declared_but_its_value_is_never_read.code,x._0_is_declared_but_never_used.code,x.Property_0_is_declared_but_its_value_is_never_read.code,x.All_imports_in_import_declaration_are_unused.code,x.All_destructured_elements_are_unused.code,x.All_variables_are_unused.code,x.All_type_parameters_are_unused.code];gc({errorCodes:L1t,getCodeActions(t){let{errorCode:n,sourceFile:a,program:c,cancellationToken:u}=t,_=c.getTypeChecker(),f=c.getSourceFiles(),y=la(a,t.span.start);if(c1(y))return[_q(ki.ChangeTracker.with(t,C=>C.delete(a,y)),x.Remove_template_tag)];if(y.kind===30){let C=ki.ChangeTracker.with(t,O=>j1t(O,a,y));return[_q(C,x.Remove_type_parameters)]}let g=B1t(y);if(g){let C=ki.ChangeTracker.with(t,O=>O.delete(a,g));return[Xs(Lae,C,[x.Remove_import_from_0,S4e(g)],JSe,x.Delete_all_unused_imports)]}else if(RRe(y)){let C=ki.ChangeTracker.with(t,O=>VSe(a,y,O,_,f,c,u,!1));if(C.length)return[Xs(Lae,C,[x.Remove_unused_declaration_for_Colon_0,y.getText(a)],JSe,x.Delete_all_unused_imports)]}if($y(y.parent)||xE(y.parent)){if(wa(y.parent.parent)){let C=y.parent.elements,O=[C.length>1?x.Remove_unused_declarations_for_Colon_0:x.Remove_unused_declaration_for_Colon_0,Cr(C,F=>F.getText(a)).join(", ")];return[_q(ki.ChangeTracker.with(t,F=>rhr(F,a,y.parent)),O)]}return[_q(ki.ChangeTracker.with(t,C=>nhr(t,C,a,y.parent)),x.Remove_unused_destructuring_declaration)]}if($1t(a,y))return[_q(ki.ChangeTracker.with(t,C=>U1t(C,a,y.parent)),x.Remove_variable_statement)];if(ct(y)&&i_(y.parent))return[_q(ki.ChangeTracker.with(t,C=>V1t(C,a,y.parent)),[x.Remove_unused_declaration_for_Colon_0,y.getText(a)])];let k=[];if(y.kind===140){let C=ki.ChangeTracker.with(t,F=>M1t(F,a,y)),O=Ba(y.parent,n3).typeParameter.name.text;k.push(Xs(Lae,C,[x.Replace_infer_0_with_unknown,O],FRe,x.Replace_all_unused_infer_with_unknown))}else{let C=ki.ChangeTracker.with(t,O=>VSe(a,y,O,_,f,c,u,!1));if(C.length){let O=dc(y.parent)?y.parent:y;k.push(_q(C,[x.Remove_unused_declaration_for_Colon_0,O.getText(a)]))}}let T=ki.ChangeTracker.with(t,C=>z1t(C,n,a,y));return T.length&&k.push(Xs(Lae,T,[x.Prefix_0_with_an_underscore,y.getText(a)],NRe,x.Prefix_all_unused_declarations_with_where_possible)),k},fixIds:[NRe,ORe,JSe,FRe],getAllCodeActions:t=>{let{sourceFile:n,program:a,cancellationToken:c}=t,u=a.getTypeChecker(),_=a.getSourceFiles();return Vl(t,L1t,(f,y)=>{let g=la(n,y.start);switch(t.fixId){case NRe:z1t(f,y.code,n,g);break;case JSe:{let k=B1t(g);k?f.delete(n,k):RRe(g)&&VSe(n,g,f,u,_,a,c,!0);break}case ORe:{if(g.kind===140||RRe(g))break;if(c1(g))f.delete(n,g);else if(g.kind===30)j1t(f,n,g);else if($y(g.parent)){if(g.parent.parent.initializer)break;(!wa(g.parent.parent)||q1t(g.parent.parent,u,_))&&f.delete(n,g.parent.parent)}else{if(xE(g.parent.parent)&&g.parent.parent.parent.initializer)break;$1t(n,g)?U1t(f,n,g.parent):ct(g)&&i_(g.parent)?V1t(f,n,g.parent):VSe(n,g,f,u,_,a,c,!0)}break}case FRe:g.kind===140&&M1t(f,n,g);break;default:$.fail(JSON.stringify(t.fixId))}})}});function M1t(t,n,a){t.replaceNode(n,a.parent,W.createKeywordTypeNode(159))}function _q(t,n){return Xs(Lae,t,n,ORe,x.Delete_all_unused_declarations)}function j1t(t,n,a){t.delete(n,$.checkDefined(Ba(a.parent,Ome).typeParameters,"The type parameter to delete should exist"))}function RRe(t){return t.kind===102||t.kind===80&&(t.parent.kind===277||t.parent.kind===274)}function B1t(t){return t.kind===102?Ci(t.parent,fp):void 0}function $1t(t,n){return Df(n.parent)&&To(n.parent.getChildren(t))===n}function U1t(t,n,a){t.delete(n,a.parent.kind===244?a.parent:a)}function rhr(t,n,a){X(a.elements,c=>t.delete(n,c))}function nhr(t,n,a,{parent:c}){if(Oo(c)&&c.initializer&&QI(c.initializer))if(Df(c.parent)&&te(c.parent.declarations)>1){let u=c.parent.parent,_=u.getStart(a),f=u.end;n.delete(a,c),n.insertNodeAt(a,f,c.initializer,{prefix:ZT(t.host,t.formatContext.options)+a.text.slice(Qoe(a.text,_-1),_),suffix:eQ(a)?";":""})}else n.replaceNode(a,c.parent,c.initializer);else n.delete(a,c)}function z1t(t,n,a,c){n!==x.Property_0_is_declared_but_its_value_is_never_read.code&&(c.kind===140&&(c=Ba(c.parent,n3).typeParameter.name),ct(c)&&ihr(c)&&(t.replaceNode(a,c,W.createIdentifier(`_${c.text}`)),wa(c.parent)&&P4(c.parent).forEach(u=>{ct(u.name)&&t.replaceNode(a,u.name,W.createIdentifier(`_${u.name.text}`))})))}function ihr(t){switch(t.parent.kind){case 170:case 169:return!0;case 261:switch(t.parent.parent.parent.kind){case 251:case 250:return!0}}return!1}function VSe(t,n,a,c,u,_,f,y){ohr(n,a,t,c,u,_,f,y),ct(n)&&Pu.Core.eachSymbolReferenceInFile(n,c,t,g=>{no(g.parent)&&g.parent.name===g&&(g=g.parent),!y&&lhr(g)&&a.delete(t,g.parent.parent)})}function ohr(t,n,a,c,u,_,f,y){let{parent:g}=t;if(wa(g))ahr(n,a,g,c,u,_,f,y);else if(!(y&&ct(t)&&Pu.Core.isSymbolReferencedInFile(t,c,a))){let k=H1(g)?t:dc(g)?g.parent:g;$.assert(k!==a,"should not delete whole source file"),n.delete(a,k)}}function ahr(t,n,a,c,u,_,f,y=!1){if(shr(c,n,a,u,_,f,y))if(a.modifiers&&a.modifiers.length>0&&(!ct(a.name)||Pu.Core.isSymbolReferencedInFile(a.name,c,n)))for(let g of a.modifiers)bc(g)&&t.deleteModifier(n,g);else!a.initializer&&q1t(a,c,u)&&t.delete(n,a)}function q1t(t,n,a){let c=t.parent.parameters.indexOf(t);return!Pu.Core.someSignatureUsage(t.parent,a,n,(u,_)=>!_||_.arguments.length>c)}function shr(t,n,a,c,u,_,f){let{parent:y}=a;switch(y.kind){case 175:case 177:let g=y.parameters.indexOf(a),k=Ep(y)?y.name:y,T=Pu.Core.getReferencedSymbolsForNode(y.pos,k,u,c,_);if(T){for(let C of T)for(let O of C.references)if(O.kind===Pu.EntryKind.Node){let F=az(O.node)&&Js(O.node.parent)&&O.node.parent.arguments.length>g,M=no(O.node.parent)&&az(O.node.parent.expression)&&Js(O.node.parent.parent)&&O.node.parent.parent.arguments.length>g,U=(Ep(O.node.parent)||G1(O.node.parent))&&O.node.parent!==a.parent&&O.node.parent.parameters.length>g;if(F||M||U)return!1}}return!0;case 263:return y.name&&chr(t,n,y.name)?J1t(y,a,f):!0;case 219:case 220:return J1t(y,a,f);case 179:return!1;case 178:return!0;default:return $.failBadSyntaxKind(y)}}function chr(t,n,a){return!!Pu.Core.eachSymbolReferenceInFile(a,t,n,c=>ct(c)&&Js(c.parent)&&c.parent.arguments.includes(c))}function J1t(t,n,a){let c=t.parameters,u=c.indexOf(n);return $.assert(u!==-1,"The parameter should already be in the list"),a?c.slice(u+1).every(_=>ct(_.name)&&!_.symbol.isReferenced):u===c.length-1}function lhr(t){return(wi(t.parent)&&t.parent.left===t||(Nge(t.parent)||TA(t.parent))&&t.parent.operand===t)&&af(t.parent.parent)}function V1t(t,n,a){let c=a.symbol.declarations;if(c)for(let u of c)t.delete(n,u)}var LRe="fixUnreachableCode",W1t=[x.Unreachable_code_detected.code];gc({errorCodes:W1t,getCodeActions(t){if(t.program.getSyntacticDiagnostics(t.sourceFile,t.cancellationToken).length)return;let a=ki.ChangeTracker.with(t,c=>G1t(c,t.sourceFile,t.span.start,t.span.length,t.errorCode));return[Xs(LRe,a,x.Remove_unreachable_code,LRe,x.Remove_all_unreachable_code)]},fixIds:[LRe],getAllCodeActions:t=>Vl(t,W1t,(n,a)=>G1t(n,a.file,a.start,a.length,a.code))});function G1t(t,n,a,c,u){let _=la(n,a),f=fn(_,fa);if(f.getStart(n)!==_.getStart(n)){let g=JSON.stringify({statementKind:$.formatSyntaxKind(f.kind),tokenKind:$.formatSyntaxKind(_.kind),errorCode:u,start:a,length:c});$.fail("Token and statement should start at the same point. "+g)}let y=(Vs(f.parent)?f.parent:f).parent;if(!Vs(f.parent)||f===To(f.parent.statements))switch(y.kind){case 246:if(y.elseStatement){if(Vs(f.parent))break;t.replaceNode(n,f,W.createBlock(j));return}case 248:case 249:t.delete(n,y);return}if(Vs(f.parent)){let g=a+c,k=$.checkDefined(uhr(Xhe(f.parent.statements,f),T=>T.posK1t(a,t.sourceFile,t.span.start));return[Xs(MRe,n,x.Remove_unused_label,MRe,x.Remove_all_unused_labels)]},fixIds:[MRe],getAllCodeActions:t=>Vl(t,H1t,(n,a)=>K1t(n,a.file,a.start))});function K1t(t,n,a){let c=la(n,a),u=Ba(c.parent,bC),_=c.getStart(n),f=u.statement.getStart(n),y=v0(_,f,n)?f:_c(n.text,Kl(u,59,n).end,!0);t.deleteRange(n,{pos:_,end:y})}var Q1t="fixJSDocTypes_plain",jRe="fixJSDocTypes_nullable",Z1t=[x.JSDoc_types_can_only_be_used_inside_documentation_comments.code,x._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,x._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];gc({errorCodes:Z1t,getCodeActions(t){let{sourceFile:n}=t,a=t.program.getTypeChecker(),c=Y1t(n,t.span.start,a);if(!c)return;let{typeNode:u,type:_}=c,f=u.getText(n),y=[g(_,Q1t,x.Change_all_jsdoc_style_types_to_TypeScript)];return u.kind===315&&y.push(g(_,jRe,x.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),y;function g(k,T,C){let O=ki.ChangeTracker.with(t,F=>X1t(F,n,u,k,a));return Xs("jdocTypes",O,[x.Change_0_to_1,f,a.typeToString(k)],T,C)}},fixIds:[Q1t,jRe],getAllCodeActions(t){let{fixId:n,program:a,sourceFile:c}=t,u=a.getTypeChecker();return Vl(t,Z1t,(_,f)=>{let y=Y1t(f.file,f.start,u);if(!y)return;let{typeNode:g,type:k}=y,T=g.kind===315&&n===jRe?u.getNullableType(k,32768):k;X1t(_,c,g,T,u)})}});function X1t(t,n,a,c,u){t.replaceNode(n,a,u.typeToTypeNode(c,a,void 0))}function Y1t(t,n,a){let c=fn(la(t,n),phr),u=c&&c.type;return u&&{typeNode:u,type:_hr(a,u)}}function phr(t){switch(t.kind){case 235:case 180:case 181:case 263:case 178:case 182:case 201:case 175:case 174:case 170:case 173:case 172:case 179:case 266:case 217:case 261:return!0;default:return!1}}function _hr(t,n){if(xL(n)){let a=t.getTypeFromTypeNode(n.type);return a===t.getNeverType()||a===t.getVoidType()?a:t.getUnionType(jt([a,t.getUndefinedType()],n.postfix?void 0:t.getNullType()))}return t.getTypeFromTypeNode(n)}var BRe="fixMissingCallParentheses",evt=[x.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];gc({errorCodes:evt,fixIds:[BRe],getCodeActions(t){let{sourceFile:n,span:a}=t,c=rvt(n,a.start);if(!c)return;let u=ki.ChangeTracker.with(t,_=>tvt(_,t.sourceFile,c));return[Xs(BRe,u,x.Add_missing_call_parentheses,BRe,x.Add_all_missing_call_parentheses)]},getAllCodeActions:t=>Vl(t,evt,(n,a)=>{let c=rvt(a.file,a.start);c&&tvt(n,a.file,c)})});function tvt(t,n,a){t.replaceNodeWithText(n,a,`${a.text}()`)}function rvt(t,n){let a=la(t,n);if(no(a.parent)){let c=a.parent;for(;no(c.parent);)c=c.parent;return c.name}if(ct(a))return a}var nvt="fixMissingTypeAnnotationOnExports",$Re="add-annotation",URe="add-type-assertion",dhr="extract-expression",ivt=[x.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,x.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,x.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,x.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,x.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,x.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,x.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,x.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,x.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,x.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,x.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,x.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,x.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,x.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,x.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,x.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,x.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,x.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,x.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code,x.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,x.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],fhr=new Set([178,175,173,263,219,220,261,170,278,264,207,208]),ovt=531469,avt=1;gc({errorCodes:ivt,fixIds:[nvt],getCodeActions(t){let n=[];return dq($Re,n,t,0,a=>a.addTypeAnnotation(t.span)),dq($Re,n,t,1,a=>a.addTypeAnnotation(t.span)),dq($Re,n,t,2,a=>a.addTypeAnnotation(t.span)),dq(URe,n,t,0,a=>a.addInlineAssertion(t.span)),dq(URe,n,t,1,a=>a.addInlineAssertion(t.span)),dq(URe,n,t,2,a=>a.addInlineAssertion(t.span)),dq(dhr,n,t,0,a=>a.extractAsVariable(t.span)),n},getAllCodeActions:t=>{let n=svt(t,0,a=>{WF(t,ivt,c=>{a.addTypeAnnotation(c)})});return VF(n.textChanges)}});function dq(t,n,a,c,u){let _=svt(a,c,u);_.result&&_.textChanges.length&&n.push(Xs(t,_.textChanges,_.result,nvt,x.Add_all_missing_type_annotations))}function svt(t,n,a){let c={typeNode:void 0,mutatedTarget:!1},u=ki.ChangeTracker.fromContext(t),_=t.sourceFile,f=t.program,y=f.getTypeChecker(),g=$c(f.getCompilerOptions()),k=BP(t.sourceFile,t.program,t.preferences,t.host),T=new Set,C=new Set,O=DC({preserveSourceNewlines:!1}),F=a({addTypeAnnotation:M,addInlineAssertion:Q,extractAsVariable:re});return k.writeFixes(u),{result:F,textChanges:u.getChanges()};function M(Se){t.cancellationToken.throwIfCancellationRequested();let tt=la(_,Se.start),Qe=ae(tt);if(Qe)return i_(Qe)?U(Qe):_e(Qe);let We=ke(tt);if(We)return _e(We)}function U(Se){var tt;if(C?.has(Se))return;C?.add(Se);let Qe=y.getTypeAtLocation(Se),We=y.getPropertiesOfType(Qe);if(!Se.name||We.length===0)return;let St=[];for(let nn of We)Jd(nn.name,$c(f.getCompilerOptions()))&&(nn.valueDeclaration&&Oo(nn.valueDeclaration)||St.push(W.createVariableStatement([W.createModifier(95)],W.createVariableDeclarationList([W.createVariableDeclaration(nn.name,void 0,Le(y.getTypeOfSymbol(nn),Se),void 0)]))));if(St.length===0)return;let Kt=[];(tt=Se.modifiers)!=null&&tt.some(nn=>nn.kind===95)&&Kt.push(W.createModifier(95)),Kt.push(W.createModifier(138));let Sr=W.createModuleDeclaration(Kt,Se.name,W.createModuleBlock(St),101441696);return u.insertNodeAfter(_,Se,Sr),[x.Annotate_types_of_properties_expando_function_in_a_namespace]}function J(Se){return!ru(Se)&&!Js(Se)&&!Lc(Se)&&!qf(Se)}function G(Se,tt){return J(Se)&&(Se=W.createParenthesizedExpression(Se)),W.createAsExpression(Se,tt)}function Z(Se,tt){return J(Se)&&(Se=W.createParenthesizedExpression(Se)),W.createAsExpression(W.createSatisfiesExpression(Se,Il(tt)),tt)}function Q(Se){t.cancellationToken.throwIfCancellationRequested();let tt=la(_,Se.start);if(ae(tt))return;let We=_t(tt,Se);if(!We||G4(We)||G4(We.parent))return;let St=Vt(We),Kt=im(We);if(!Kt&&Vd(We)||fn(We,$s)||fn(We,GT)||St&&(fn(We,zg)||fn(We,Wo))||E0(We))return;let Sr=fn(We,Oo),nn=Sr&&y.getTypeAtLocation(Sr);if(nn&&nn.flags&8192||!(St||Kt))return;let{typeNode:Nn,mutatedTarget:$t}=Fe(We,nn);if(!(!Nn||$t))return Kt?u.insertNodeAt(_,We.end,G(Il(We.name),Nn),{prefix:": "}):St?u.replaceNode(_,We,Z(Il(We),Nn)):$.assertNever(We),[x.Add_satisfies_and_an_inline_type_assertion_with_0,It(Nn)]}function re(Se){t.cancellationToken.throwIfCancellationRequested();let tt=la(_,Se.start),Qe=_t(tt,Se);if(!Qe||G4(Qe)||G4(Qe.parent)||!Vt(Qe))return;if(qf(Qe))return u.replaceNode(_,Qe,G(Qe,W.createTypeReferenceNode("const"))),[x.Mark_array_literal_as_const];let St=fn(Qe,td);if(St){if(St===Qe.parent&&ru(Qe))return;let Kt=W.createUniqueName(z5e(Qe,_,y,_),16),Sr=Qe,nn=Qe;if(E0(Sr)&&(Sr=V1(Sr.parent),je(Sr.parent)?nn=Sr=Sr.parent:nn=G(Sr,W.createTypeReferenceNode("const"))),ru(Sr))return;let Nn=W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Kt,void 0,void 0,nn)],2)),$t=fn(Qe,fa);return u.insertNodeBefore(_,$t,Nn),u.replaceNode(_,Sr,W.createAsExpression(W.cloneNode(Kt),W.createTypeQueryNode(W.cloneNode(Kt)))),[x.Extract_to_variable_and_replace_with_0_as_typeof_0,It(Kt)]}}function ae(Se){let tt=fn(Se,Qe=>fa(Qe)?"quit":lF(Qe));if(tt&&lF(tt)){let Qe=tt;if(wi(Qe)&&(Qe=Qe.left,!lF(Qe)))return;let We=y.getTypeAtLocation(Qe.expression);if(!We)return;let St=y.getPropertiesOfType(We);if(Pt(St,Kt=>Kt.valueDeclaration===tt||Kt.valueDeclaration===tt.parent)){let Kt=We.symbol.valueDeclaration;if(Kt){if(mC(Kt)&&Oo(Kt.parent))return Kt.parent;if(i_(Kt))return Kt}}}}function _e(Se){if(!T?.has(Se))switch(T?.add(Se),Se.kind){case 170:case 173:case 261:return nt(Se);case 220:case 219:case 263:case 175:case 178:return me(Se,_);case 278:return le(Se);case 264:return Oe(Se);case 207:case 208:return ue(Se);default:throw new Error(`Cannot find a fix for the given node ${Se.kind}`)}}function me(Se,tt){if(Se.type)return;let{typeNode:Qe}=Fe(Se);if(Qe)return u.tryInsertTypeAnnotation(tt,Se,Qe),[x.Add_return_type_0,It(Qe)]}function le(Se){if(Se.isExportEquals)return;let{typeNode:tt}=Fe(Se.expression);if(!tt)return;let Qe=W.createUniqueName("_default");return u.replaceNodeWithNodes(_,Se,[W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Qe,void 0,tt,Se.expression)],2)),W.updateExportAssignment(Se,Se?.modifiers,Qe)]),[x.Extract_default_export_to_variable]}function Oe(Se){var tt,Qe;let We=(tt=Se.heritageClauses)==null?void 0:tt.find(Dr=>Dr.token===96),St=We?.types[0];if(!St)return;let{typeNode:Kt}=Fe(St.expression);if(!Kt)return;let Sr=W.createUniqueName(Se.name?Se.name.text+"Base":"Anonymous",16),nn=W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Sr,void 0,Kt,St.expression)],2));u.insertNodeBefore(_,Se,nn);let Nn=hb(_.text,St.end),$t=((Qe=Nn?.[Nn.length-1])==null?void 0:Qe.end)??St.end;return u.replaceRange(_,{pos:St.getFullStart(),end:$t},Sr,{prefix:" "}),[x.Extract_base_class_to_variable]}let be;(Se=>{Se[Se.Text=0]="Text",Se[Se.Computed=1]="Computed",Se[Se.ArrayAccess=2]="ArrayAccess",Se[Se.Identifier=3]="Identifier"})(be||(be={}));function ue(Se){var tt;let Qe=Se.parent,We=Se.parent.parent.parent;if(!Qe.initializer)return;let St,Kt=[];if(ct(Qe.initializer))St={expression:{kind:3,identifier:Qe.initializer}};else{let Nn=W.createUniqueName("dest",16);St={expression:{kind:3,identifier:Nn}},Kt.push(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(Nn,void 0,void 0,Qe.initializer)],2)))}let Sr=[];xE(Se)?De(Se,Sr,St):Ce(Se,Sr,St);let nn=new Map;for(let Nn of Sr){if(Nn.element.propertyName&&dc(Nn.element.propertyName)){let Dr=Nn.element.propertyName.expression,Qn=W.getGeneratedNameForNode(Dr),Ko=W.createVariableDeclaration(Qn,void 0,void 0,Dr),is=W.createVariableDeclarationList([Ko],2),sr=W.createVariableStatement(void 0,is);Kt.push(sr),nn.set(Dr,Qn)}let $t=Nn.element.name;if(xE($t))De($t,Sr,Nn);else if($y($t))Ce($t,Sr,Nn);else{let{typeNode:Dr}=Fe($t),Qn=Ae(Nn,nn);if(Nn.element.initializer){let is=(tt=Nn.element)==null?void 0:tt.propertyName,sr=W.createUniqueName(is&&ct(is)?is.text:"temp",16);Kt.push(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(sr,void 0,void 0,Qn)],2))),Qn=W.createConditionalExpression(W.createBinaryExpression(sr,W.createToken(37),W.createIdentifier("undefined")),W.createToken(58),Nn.element.initializer,W.createToken(59),Qn)}let Ko=ko(We,32)?[W.createToken(95)]:void 0;Kt.push(W.createVariableStatement(Ko,W.createVariableDeclarationList([W.createVariableDeclaration($t,void 0,Dr,Qn)],2)))}}return We.declarationList.declarations.length>1&&Kt.push(W.updateVariableStatement(We,We.modifiers,W.updateVariableDeclarationList(We.declarationList,We.declarationList.declarations.filter(Nn=>Nn!==Se.parent)))),u.replaceNodeWithNodes(_,We,Kt),[x.Extract_binding_expressions_to_variable]}function De(Se,tt,Qe){for(let We=0;We=0;--St){let Kt=Qe[St].expression;Kt.kind===0?We=W.createPropertyAccessChain(We,void 0,W.createIdentifier(Kt.text)):Kt.kind===1?We=W.createElementAccessExpression(We,tt.get(Kt.computed)):Kt.kind===2&&(We=W.createElementAccessExpression(We,Kt.arrayIndex))}return We}function Fe(Se,tt){if(n===1)return ve(Se);let Qe;if(G4(Se)){let Kt=y.getSignatureFromDeclaration(Se);if(Kt){let Sr=y.getTypePredicateOfSignature(Kt);if(Sr)return Sr.type?{typeNode:Ve(Sr,fn(Se,Vd)??_,St(Sr.type)),mutatedTarget:!1}:c;Qe=y.getReturnTypeOfSignature(Kt)}}else Qe=y.getTypeAtLocation(Se);if(!Qe)return c;if(n===2){tt&&(Qe=tt);let Kt=y.getWidenedLiteralType(Qe);if(y.isTypeAssignableTo(Kt,Qe))return c;Qe=Kt}let We=fn(Se,Vd)??_;return wa(Se)&&y.requiresAddingImplicitUndefined(Se,We)&&(Qe=y.getUnionType([y.getUndefinedType(),Qe],0)),{typeNode:Le(Qe,We,St(Qe)),mutatedTarget:!1};function St(Kt){return(Oo(Se)||ps(Se)&&ko(Se,264))&&Kt.flags&8192?1048576:0}}function Be(Se){return W.createTypeQueryNode(Il(Se))}function de(Se,tt="temp"){let Qe=!!fn(Se,je);return Qe?ut(Se,tt,Qe,We=>We.elements,E0,W.createSpreadElement,We=>W.createArrayLiteralExpression(We,!0),We=>W.createTupleTypeNode(We.map(W.createRestTypeNode))):c}function ze(Se,tt="temp"){let Qe=!!fn(Se,je);return ut(Se,tt,Qe,We=>We.properties,qx,W.createSpreadAssignment,We=>W.createObjectLiteralExpression(We,!0),W.createIntersectionTypeNode)}function ut(Se,tt,Qe,We,St,Kt,Sr,nn){let Nn=[],$t=[],Dr,Qn=fn(Se,fa);for(let sr of We(Se))St(sr)?(is(),ru(sr.expression)?(Nn.push(Be(sr.expression)),$t.push(sr)):Ko(sr.expression)):(Dr??(Dr=[])).push(sr);if($t.length===0)return c;return is(),u.replaceNode(_,Se,Sr($t)),{typeNode:nn(Nn),mutatedTarget:!0};function Ko(sr){let uo=W.createUniqueName(tt+"_Part"+($t.length+1),16),Wa=Qe?W.createAsExpression(sr,W.createTypeReferenceNode("const")):sr,oo=W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(uo,void 0,void 0,Wa)],2));u.insertNodeBefore(_,Qn,oo),Nn.push(Be(uo)),$t.push(Kt(uo))}function is(){Dr&&(Ko(Sr(Dr)),Dr=void 0)}}function je(Se){return ZI(Se)&&z1(Se.type)}function ve(Se){if(wa(Se))return c;if(im(Se))return{typeNode:Be(Se.name),mutatedTarget:!1};if(ru(Se))return{typeNode:Be(Se),mutatedTarget:!1};if(je(Se))return ve(Se.expression);if(qf(Se)){let tt=fn(Se,Oo),Qe=tt&&ct(tt.name)?tt.name.text:void 0;return de(Se,Qe)}if(Lc(Se)){let tt=fn(Se,Oo),Qe=tt&&ct(tt.name)?tt.name.text:void 0;return ze(Se,Qe)}if(Oo(Se)&&Se.initializer)return ve(Se.initializer);if(a3(Se)){let{typeNode:tt,mutatedTarget:Qe}=ve(Se.whenTrue);if(!tt)return c;let{typeNode:We,mutatedTarget:St}=ve(Se.whenFalse);return We?{typeNode:W.createUnionTypeNode([tt,We]),mutatedTarget:Qe||St}:c}return c}function Le(Se,tt,Qe=0){let We=!1,St=wvt(y,Se,tt,ovt|Qe,avt,{moduleResolverHost:f,trackSymbol(){return!0},reportTruncationError(){We=!0}});if(!St)return;let Kt=QRe(St,k,g);return We?W.createKeywordTypeNode(133):Kt}function Ve(Se,tt,Qe=0){let We=!1,St=Ivt(y,k,Se,tt,g,ovt|Qe,avt,{moduleResolverHost:f,trackSymbol(){return!0},reportTruncationError(){We=!0}});return We?W.createKeywordTypeNode(133):St}function nt(Se){let{typeNode:tt}=Fe(Se);if(tt)return Se.type?u.replaceNode(Pn(Se),Se.type,tt):u.tryInsertTypeAnnotation(Pn(Se),Se,tt),[x.Add_annotation_of_type_0,It(tt)]}function It(Se){Ai(Se,1);let tt=O.printNode(4,Se,_);return tt.length>cU?tt.substring(0,cU-3)+"...":(Ai(Se,0),tt)}function ke(Se){return fn(Se,tt=>fhr.has(tt.kind)&&(!$y(tt)&&!xE(tt)||Oo(tt.parent)))}function _t(Se,tt){for(;Se&&Se.enduvt(_,n,c));return[Xs(zRe,u,x.Add_async_modifier_to_containing_function,zRe,x.Add_all_missing_async_modifiers)]},fixIds:[zRe],getAllCodeActions:function(n){let a=new Set;return Vl(n,cvt,(c,u)=>{let _=lvt(u.file,u.start);!_||!o1(a,hl(_.insertBefore))||uvt(c,n.sourceFile,_)})}});function mhr(t){if(t.type)return t.type;if(Oo(t.parent)&&t.parent.type&&Cb(t.parent.type))return t.parent.type.type}function lvt(t,n){let a=la(t,n),c=My(a);if(!c)return;let u;switch(c.kind){case 175:u=c.name;break;case 263:case 219:u=Kl(c,100,t);break;case 220:let _=c.typeParameters?30:21;u=Kl(c,_,t)||To(c.parameters);break;default:return}return u&&{insertBefore:u,returnType:mhr(c)}}function uvt(t,n,{insertBefore:a,returnType:c}){if(c){let u=NG(c);(!u||u.kind!==80||u.text!=="Promise")&&t.replaceNode(n,c,W.createTypeReferenceNode("Promise",W.createNodeArray([c])))}t.insertModifierBefore(n,134,a)}var pvt=[x._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,x._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],qRe="fixPropertyOverrideAccessor";gc({errorCodes:pvt,getCodeActions(t){let n=_vt(t.sourceFile,t.span.start,t.span.length,t.errorCode,t);if(n)return[Xs(qRe,n,x.Generate_get_and_set_accessors,qRe,x.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[qRe],getAllCodeActions:t=>Vl(t,pvt,(n,a)=>{let c=_vt(a.file,a.start,a.length,a.code,t);if(c)for(let u of c)n.pushRaw(t.sourceFile,u)})});function _vt(t,n,a,c,u){let _,f;if(c===x._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)_=n,f=n+a;else if(c===x._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){let y=u.program.getTypeChecker(),g=la(t,n).parent;if(dc(g))return;$.assert(tC(g),"error span of fixPropertyOverrideAccessor should only be on an accessor");let k=g.parent;$.assert(Co(k),"erroneous accessors should only be inside classes");let T=vv(k);if(!T)return;let C=bl(T.expression),O=w_(C)?C.symbol:y.getSymbolAtLocation(C);if(!O)return;let F=y.getDeclaredTypeOfSymbol(O),M=y.getPropertyOfType(F,oa(UO(g.name)));if(!M||!M.valueDeclaration)return;_=M.valueDeclaration.pos,f=M.valueDeclaration.end,t=Pn(M.valueDeclaration)}else $.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+c);return Rvt(t,u.program,_,f,u,x.Generate_get_and_set_accessors.message)}var JRe="inferFromUsage",dvt=[x.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,x.Variable_0_implicitly_has_an_1_type.code,x.Parameter_0_implicitly_has_an_1_type.code,x.Rest_parameter_0_implicitly_has_an_any_type.code,x.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,x._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,x.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,x.Member_0_implicitly_has_an_1_type.code,x.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,x.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,x.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,x.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,x.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,x._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,x.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,x.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,x.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];gc({errorCodes:dvt,getCodeActions(t){let{sourceFile:n,program:a,span:{start:c},errorCode:u,cancellationToken:_,host:f,preferences:y}=t,g=la(n,c),k,T=ki.ChangeTracker.with(t,O=>{k=fvt(O,n,g,u,a,_,AT,f,y)}),C=k&&cs(k);return!C||T.length===0?void 0:[Xs(JRe,T,[hhr(u,g),Sp(C)],JRe,x.Infer_all_types_from_usage)]},fixIds:[JRe],getAllCodeActions(t){let{sourceFile:n,program:a,cancellationToken:c,host:u,preferences:_}=t,f=QL();return Vl(t,dvt,(y,g)=>{fvt(y,n,la(g.file,g.start),g.code,a,c,f,u,_)})}});function hhr(t,n){switch(t){case x.Parameter_0_implicitly_has_an_1_type.code:case x.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return mg(My(n))?x.Infer_type_of_0_from_usage:x.Infer_parameter_types_from_usage;case x.Rest_parameter_0_implicitly_has_an_any_type.code:case x.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return x.Infer_parameter_types_from_usage;case x.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return x.Infer_this_type_of_0_from_usage;default:return x.Infer_type_of_0_from_usage}}function ghr(t){switch(t){case x.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return x.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case x.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return x.Variable_0_implicitly_has_an_1_type.code;case x.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return x.Parameter_0_implicitly_has_an_1_type.code;case x.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return x.Rest_parameter_0_implicitly_has_an_any_type.code;case x.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return x.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case x._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return x._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case x.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return x.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case x.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return x.Member_0_implicitly_has_an_1_type.code}return t}function fvt(t,n,a,c,u,_,f,y,g){if(!iU(a.kind)&&a.kind!==80&&a.kind!==26&&a.kind!==110)return;let{parent:k}=a,T=BP(n,u,g,y);switch(c=ghr(c),c){case x.Member_0_implicitly_has_an_1_type.code:case x.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Oo(k)&&f(k)||ps(k)||Zm(k))return mvt(t,T,n,k,u,y,_),T.writeFixes(t),k;if(no(k)){let F=SQ(k.name,u,_),M=nq(F,k,u,y);if(M){let U=W.createJSDocTypeTag(void 0,W.createJSDocTypeExpression(M),void 0);t.addJSDocTags(n,Ba(k.parent.parent,af),[U])}return T.writeFixes(t),k}return;case x.Variable_0_implicitly_has_an_1_type.code:{let F=u.getTypeChecker().getSymbolAtLocation(a);return F&&F.valueDeclaration&&Oo(F.valueDeclaration)&&f(F.valueDeclaration)?(mvt(t,T,Pn(F.valueDeclaration),F.valueDeclaration,u,y,_),T.writeFixes(t),F.valueDeclaration):void 0}}let C=My(a);if(C===void 0)return;let O;switch(c){case x.Parameter_0_implicitly_has_an_1_type.code:if(mg(C)){hvt(t,T,n,C,u,y,_),O=C;break}case x.Rest_parameter_0_implicitly_has_an_any_type.code:if(f(C)){let F=Ba(k,wa);yhr(t,T,n,F,C,u,y,_),O=F}break;case x.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case x._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:T0(C)&&ct(C.name)&&(WSe(t,T,n,C,SQ(C.name,u,_),u,y),O=C);break;case x.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:mg(C)&&(hvt(t,T,n,C,u,y,_),O=C);break;case x.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:ki.isThisTypeAnnotatable(C)&&f(C)&&(vhr(t,n,C,u,y,_),O=C);break;default:return $.fail(String(c))}return T.writeFixes(t),O}function mvt(t,n,a,c,u,_,f){ct(c.name)&&WSe(t,n,a,c,SQ(c.name,u,f),u,_)}function yhr(t,n,a,c,u,_,f,y){if(!ct(c.name))return;let g=xhr(u,a,_,y);if($.assert(u.parameters.length===g.length,"Parameter count and inference count should match"),Ei(u))gvt(t,a,g,_,f);else{let k=Iu(u)&&!Kl(u,21,a);k&&t.insertNodeBefore(a,To(u.parameters),W.createToken(21));for(let{declaration:T,type:C}of g)T&&!T.type&&!T.initializer&&WSe(t,n,a,T,C,_,f);k&&t.insertNodeAfter(a,Sn(u.parameters),W.createToken(22))}}function vhr(t,n,a,c,u,_){let f=yvt(a,n,c,_);if(!f||!f.length)return;let y=WRe(c,f,_).thisParameter(),g=nq(y,a,c,u);g&&(Ei(a)?Shr(t,n,a,g):t.tryInsertThisTypeAnnotation(n,a,g))}function Shr(t,n,a,c){t.addJSDocTags(n,a,[W.createJSDocThisTag(void 0,W.createJSDocTypeExpression(c))])}function hvt(t,n,a,c,u,_,f){let y=pi(c.parameters);if(y&&ct(c.name)&&ct(y.name)){let g=SQ(c.name,u,f);g===u.getTypeChecker().getAnyType()&&(g=SQ(y.name,u,f)),Ei(c)?gvt(t,a,[{declaration:y,type:g}],u,_):WSe(t,n,a,y,g,u,_)}}function WSe(t,n,a,c,u,_,f){let y=nq(u,c,_,f);if(y)if(Ei(a)&&c.kind!==172){let g=Oo(c)?Ci(c.parent.parent,h_):c;if(!g)return;let k=W.createJSDocTypeExpression(y),T=T0(c)?W.createJSDocReturnTag(void 0,k,void 0):W.createJSDocTypeTag(void 0,k,void 0);t.addJSDocTags(a,g,[T])}else bhr(y,c,a,t,n,$c(_.getCompilerOptions()))||t.tryInsertTypeAnnotation(a,c,y)}function bhr(t,n,a,c,u,_){let f=$P(t,_);return f&&c.tryInsertTypeAnnotation(a,n,f.typeNode)?(X(f.symbols,y=>u.addImportFromExportedSymbol(y,!0)),!0):!1}function gvt(t,n,a,c,u){let _=a.length&&a[0].declaration.parent;if(!_)return;let f=Wn(a,y=>{let g=y.declaration;if(g.initializer||hv(g)||!ct(g.name))return;let k=y.type&&nq(y.type,g,c,u);if(k){let T=W.cloneNode(g.name);return Ai(T,7168),{name:W.cloneNode(g.name),param:g,isOptional:!!y.isOptional,typeNode:k}}});if(f.length)if(Iu(_)||bu(_)){let y=Iu(_)&&!Kl(_,21,n);y&&t.insertNodeBefore(n,To(_.parameters),W.createToken(21)),X(f,({typeNode:g,param:k})=>{let T=W.createJSDocTypeTag(void 0,W.createJSDocTypeExpression(g)),C=W.createJSDocComment(void 0,[T]);t.insertNodeAt(n,k.getStart(n),C,{suffix:" "})}),y&&t.insertNodeAfter(n,Sn(_.parameters),W.createToken(22))}else{let y=Cr(f,({name:g,typeNode:k,isOptional:T})=>W.createJSDocParameterTag(void 0,g,!!T,W.createJSDocTypeExpression(k),!1,void 0));t.addJSDocTags(n,_,y)}}function VRe(t,n,a){return Wn(Pu.getReferenceEntriesForNode(-1,t,n,n.getSourceFiles(),a),c=>c.kind!==Pu.EntryKind.Span?Ci(c.node,ct):void 0)}function SQ(t,n,a){let c=VRe(t,n,a);return WRe(n,c,a).single()}function xhr(t,n,a,c){let u=yvt(t,n,a,c);return u&&WRe(a,u,c).parameters(t)||t.parameters.map(_=>({declaration:_,type:ct(_.name)?SQ(_.name,a,c):a.getTypeChecker().getAnyType()}))}function yvt(t,n,a,c){let u;switch(t.kind){case 177:u=Kl(t,137,n);break;case 220:case 219:let _=t.parent;u=(Oo(_)||ps(_))&&ct(_.name)?_.name:t.name;break;case 263:case 175:case 174:u=t.name;break}if(u)return VRe(u,a,c)}function WRe(t,n,a){let c=t.getTypeChecker(),u={string:()=>c.getStringType(),number:()=>c.getNumberType(),Array:Le=>c.createArrayType(Le),Promise:Le=>c.createPromiseType(Le)},_=[c.getStringType(),c.getNumberType(),c.createArrayType(c.getAnyType()),c.createPromiseType(c.getAnyType())];return{single:g,parameters:k,thisParameter:T};function f(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function y(Le){let Ve=new Map;for(let It of Le)It.properties&&It.properties.forEach((ke,_t)=>{Ve.has(_t)||Ve.set(_t,[]),Ve.get(_t).push(ke)});let nt=new Map;return Ve.forEach((It,ke)=>{nt.set(ke,y(It))}),{isNumber:Le.some(It=>It.isNumber),isString:Le.some(It=>It.isString),isNumberOrString:Le.some(It=>It.isNumberOrString),candidateTypes:an(Le,It=>It.candidateTypes),properties:nt,calls:an(Le,It=>It.calls),constructs:an(Le,It=>It.constructs),numberIndex:X(Le,It=>It.numberIndex),stringIndex:X(Le,It=>It.stringIndex),candidateThisTypes:an(Le,It=>It.candidateThisTypes),inferredTypes:void 0}}function g(){return Oe(C(n))}function k(Le){if(n.length===0||!Le.parameters)return;let Ve=f();for(let It of n)a.throwIfCancellationRequested(),O(It,Ve);let nt=[...Ve.constructs||[],...Ve.calls||[]];return Le.parameters.map((It,ke)=>{let _t=[],Se=Sb(It),tt=!1;for(let We of nt)if(We.argumentTypes.length<=ke)tt=Ei(Le),_t.push(c.getUndefinedType());else if(Se)for(let St=ke;Stnt.every(ke=>!ke(It)))}function le(Le){return Oe(ue(Le))}function Oe(Le){if(!Le.length)return c.getAnyType();let Ve=c.getUnionType([c.getStringType(),c.getNumberType()]),It=me(Le,[{high:_t=>_t===c.getStringType()||_t===c.getNumberType(),low:_t=>_t===Ve},{high:_t=>!(_t.flags&16385),low:_t=>!!(_t.flags&16385)},{high:_t=>!(_t.flags&114689)&&!(ro(_t)&16),low:_t=>!!(ro(_t)&16)}]),ke=It.filter(_t=>ro(_t)&16);return ke.length&&(It=It.filter(_t=>!(ro(_t)&16)),It.push(be(ke))),c.getWidenedType(c.getUnionType(It.map(c.getBaseTypeOfLiteralType),2))}function be(Le){if(Le.length===1)return Le[0];let Ve=[],nt=[],It=[],ke=[],_t=!1,Se=!1,tt=d_();for(let St of Le){for(let nn of c.getPropertiesOfType(St))tt.add(nn.escapedName,nn.valueDeclaration?c.getTypeOfSymbolAtLocation(nn,nn.valueDeclaration):c.getAnyType());Ve.push(...c.getSignaturesOfType(St,0)),nt.push(...c.getSignaturesOfType(St,1));let Kt=c.getIndexInfoOfType(St,0);Kt&&(It.push(Kt.type),_t=_t||Kt.isReadonly);let Sr=c.getIndexInfoOfType(St,1);Sr&&(ke.push(Sr.type),Se=Se||Sr.isReadonly)}let Qe=uc(tt,(St,Kt)=>{let Sr=Kt.lengthc.getBaseTypeOfLiteralType(tt)),Se=(It=Le.calls)!=null&&It.length?De(Le):void 0;return Se&&_t?ke.push(c.getUnionType([Se,..._t],2)):(Se&&ke.push(Se),te(_t)&&ke.push(..._t)),ke.push(...Ce(Le)),ke}function De(Le){let Ve=new Map;Le.properties&&Le.properties.forEach((_t,Se)=>{let tt=c.createSymbol(4,Se);tt.links.type=le(_t),Ve.set(Se,tt)});let nt=Le.calls?[ut(Le.calls)]:[],It=Le.constructs?[ut(Le.constructs)]:[],ke=Le.stringIndex?[c.createIndexInfo(c.getStringType(),le(Le.stringIndex),!1)]:[];return c.createAnonymousType(void 0,Ve,nt,It,ke)}function Ce(Le){if(!Le.properties||!Le.properties.size)return[];let Ve=_.filter(nt=>Ae(nt,Le));return 0Fe(nt,Le)):[]}function Ae(Le,Ve){return Ve.properties?!Ad(Ve.properties,(nt,It)=>{let ke=c.getTypeOfPropertyOfType(Le,It);return ke?nt.calls?!c.getSignaturesOfType(ke,0).length||!c.isTypeAssignableTo(ke,ze(nt.calls)):!c.isTypeAssignableTo(ke,le(nt)):!0}):!1}function Fe(Le,Ve){if(!(ro(Le)&4)||!Ve.properties)return Le;let nt=Le.target,It=to(nt.typeParameters);if(!It)return Le;let ke=[];return Ve.properties.forEach((_t,Se)=>{let tt=c.getTypeOfPropertyOfType(nt,Se);$.assert(!!tt,"generic should have all the properties of its reference."),ke.push(...Be(tt,le(_t),It))}),u[Le.symbol.escapedName](Oe(ke))}function Be(Le,Ve,nt){if(Le===nt)return[Ve];if(Le.flags&3145728)return an(Le.types,_t=>Be(_t,Ve,nt));if(ro(Le)&4&&ro(Ve)&4){let _t=c.getTypeArguments(Le),Se=c.getTypeArguments(Ve),tt=[];if(_t&&Se)for(let Qe=0;Qe<_t.length;Qe++)Se[Qe]&&tt.push(...Be(_t[Qe],Se[Qe],nt));return tt}let It=c.getSignaturesOfType(Le,0),ke=c.getSignaturesOfType(Ve,0);return It.length===1&&ke.length===1?de(It[0],ke[0],nt):[]}function de(Le,Ve,nt){var It;let ke=[];for(let tt=0;ttke.argumentTypes.length));for(let ke=0;keSe.argumentTypes[ke]||c.getUndefinedType())),Le.some(Se=>Se.argumentTypes[ke]===void 0)&&(_t.flags|=16777216),Ve.push(_t)}let It=le(y(Le.map(ke=>ke.return_)));return c.createSignature(void 0,void 0,void 0,Ve,It,void 0,nt,0)}function je(Le,Ve){Ve&&!(Ve.flags&1)&&!(Ve.flags&131072)&&(Le.candidateTypes||(Le.candidateTypes=[])).push(Ve)}function ve(Le,Ve){Ve&&!(Ve.flags&1)&&!(Ve.flags&131072)&&(Le.candidateThisTypes||(Le.candidateThisTypes=[])).push(Ve)}}var GRe="fixReturnTypeInAsyncFunction",vvt=[x.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];gc({errorCodes:vvt,fixIds:[GRe],getCodeActions:function(n){let{sourceFile:a,program:c,span:u}=n,_=c.getTypeChecker(),f=Svt(a,c.getTypeChecker(),u.start);if(!f)return;let{returnTypeNode:y,returnType:g,promisedTypeNode:k,promisedType:T}=f,C=ki.ChangeTracker.with(n,O=>bvt(O,a,y,k));return[Xs(GRe,C,[x.Replace_0_with_Promise_1,_.typeToString(g),_.typeToString(T)],GRe,x.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:t=>Vl(t,vvt,(n,a)=>{let c=Svt(a.file,t.program.getTypeChecker(),a.start);c&&bvt(n,a.file,c.returnTypeNode,c.promisedTypeNode)})});function Svt(t,n,a){if(Ei(t))return;let c=la(t,a),u=fn(c,lu),_=u?.type;if(!_)return;let f=n.getTypeFromTypeNode(_),y=n.getAwaitedType(f)||n.getVoidType(),g=n.typeToTypeNode(y,_,void 0);if(g)return{returnTypeNode:_,returnType:f,promisedTypeNode:g,promisedType:y}}function bvt(t,n,a,c){t.replaceNode(n,a,W.createTypeReferenceNode("Promise",[c]))}var xvt="disableJsDiagnostics",Tvt="disableJsDiagnostics",Evt=Wn(Object.keys(x),t=>{let n=x[t];return n.category===1?n.code:void 0});gc({errorCodes:Evt,getCodeActions:function(n){let{sourceFile:a,program:c,span:u,host:_,formatContext:f}=n;if(!Ei(a)||!WU(a,c.getCompilerOptions()))return;let y=a.checkJsDirective?"":ZT(_,f.options),g=[wv(xvt,[dgt(a.fileName,[WK(a.checkJsDirective?Hu(a.checkJsDirective.pos,a.checkJsDirective.end):Jp(0,0),`// @ts-nocheck${y}`)])],x.Disable_checking_for_this_file)];return ki.isValidLocationToAddComment(a,u.start)&&g.unshift(Xs(xvt,ki.ChangeTracker.with(n,k=>kvt(k,a,u.start)),x.Ignore_this_error_message,Tvt,x.Add_ts_ignore_to_all_error_messages)),g},fixIds:[Tvt],getAllCodeActions:t=>{let n=new Set;return Vl(t,Evt,(a,c)=>{ki.isValidLocationToAddComment(c.file,c.start)&&kvt(a,c.file,c.start,n)})}});function kvt(t,n,a,c){let{line:u}=qs(n,a);(!c||Us(c,u))&&t.insertCommentBeforeLine(n,u,a," @ts-ignore")}function HRe(t,n,a,c,u,_,f){let y=t.symbol.members;for(let g of n)y.has(g.escapedName)||Dvt(g,t,a,c,u,_,f,void 0)}function sM(t){return{trackSymbol:()=>!1,moduleResolverHost:ove(t.program,t.host)}}var Cvt=(t=>(t[t.Method=1]="Method",t[t.Property=2]="Property",t[t.All=3]="All",t))(Cvt||{});function Dvt(t,n,a,c,u,_,f,y,g=3,k=!1){let T=t.getDeclarations(),C=pi(T),O=c.program.getTypeChecker(),F=$c(c.program.getCompilerOptions()),M=C?.kind??172,U=Ae(t,C),J=C?tm(C):0,G=J&256;G|=J&1?1:J&4?4:0,C&&Mh(C)&&(G|=512);let Z=Oe(),Q=O.getWidenedType(O.getTypeOfSymbolAtLocation(t,n)),re=!!(t.flags&16777216),ae=!!(n.flags&33554432)||k,_e=Vg(a,u),me=1|(_e===0?268435456:0);switch(M){case 172:case 173:let Fe=O.typeToTypeNode(Q,n,me,8,sM(c));if(_){let de=$P(Fe,F);de&&(Fe=de.typeNode,C3(_,de.symbols))}f(W.createPropertyDeclaration(Z,C?ue(U):t.getName(),re&&g&2?W.createToken(58):void 0,Fe,void 0));break;case 178:case 179:{$.assertIsDefined(T);let de=O.typeToTypeNode(Q,n,me,void 0,sM(c)),ze=uP(T,C),ut=ze.secondAccessor?[ze.firstAccessor,ze.secondAccessor]:[ze.firstAccessor];if(_){let je=$P(de,F);je&&(de=je.typeNode,C3(_,je.symbols))}for(let je of ut)if(T0(je))f(W.createGetAccessorDeclaration(Z,ue(U),j,Ce(de),De(y,_e,ae)));else{$.assertNode(je,mg,"The counterpart to a getter should be a setter");let ve=NU(je),Le=ve&&ct(ve.name)?Zi(ve.name):void 0;f(W.createSetAccessorDeclaration(Z,ue(U),ZRe(1,[Le],[Ce(de)],1,!1),De(y,_e,ae)))}break}case 174:case 175:$.assertIsDefined(T);let Be=Q.isUnion()?an(Q.types,de=>de.getCallSignatures()):Q.getCallSignatures();if(!Pt(Be))break;if(T.length===1){$.assert(Be.length===1,"One declaration implies one signature");let de=Be[0];le(_e,de,Z,ue(U),De(y,_e,ae));break}for(let de of Be)de.declaration&&de.declaration.flags&33554432||le(_e,de,Z,ue(U));if(!ae)if(T.length>Be.length){let de=O.getSignatureFromDeclaration(T[T.length-1]);le(_e,de,Z,ue(U),De(y,_e))}else $.assert(T.length===Be.length,"Declarations and signatures should match count"),f(Dhr(O,c,n,Be,ue(U),re&&!!(g&1),Z,_e,y));break}function le(Fe,Be,de,ze,ut){let je=GSe(175,c,Fe,Be,ut,ze,de,re&&!!(g&1),n,_);je&&f(je)}function Oe(){let Fe;return G&&(Fe=ea(Fe,W.createModifiersFromModifierFlags(G))),be()&&(Fe=jt(Fe,W.createToken(164))),Fe&&W.createNodeArray(Fe)}function be(){return!!(c.program.getCompilerOptions().noImplicitOverride&&C&&pP(C))}function ue(Fe){return ct(Fe)&&Fe.escapedText==="constructor"?W.createComputedPropertyName(W.createStringLiteral(Zi(Fe),_e===0)):Il(Fe,!1)}function De(Fe,Be,de){return de?void 0:Il(Fe,!1)||XRe(Be)}function Ce(Fe){return Il(Fe,!1)}function Ae(Fe,Be){if(Fp(Fe)&262144){let de=Fe.links.nameType;if(de&&b0(de))return W.createIdentifier(oa(x0(de)))}return Il(cs(Be),!1)}}function GSe(t,n,a,c,u,_,f,y,g,k){let T=n.program,C=T.getTypeChecker(),O=$c(T.getCompilerOptions()),F=Ei(g),M=524545|(a===0?268435456:0),U=C.signatureToSignatureDeclaration(c,t,g,M,8,sM(n));if(!U)return;let J=F?void 0:U.typeParameters,G=U.parameters,Z=F?void 0:Il(U.type);if(k){if(J){let _e=Zo(J,me=>{let le=me.constraint,Oe=me.default;if(le){let be=$P(le,O);be&&(le=be.typeNode,C3(k,be.symbols))}if(Oe){let be=$P(Oe,O);be&&(Oe=be.typeNode,C3(k,be.symbols))}return W.updateTypeParameterDeclaration(me,me.modifiers,me.name,le,Oe)});J!==_e&&(J=qt(W.createNodeArray(_e,J.hasTrailingComma),J))}let ae=Zo(G,_e=>{let me=F?void 0:_e.type;if(me){let le=$P(me,O);le&&(me=le.typeNode,C3(k,le.symbols))}return W.updateParameterDeclaration(_e,_e.modifiers,_e.dotDotDotToken,_e.name,F?void 0:_e.questionToken,me,_e.initializer)});if(G!==ae&&(G=qt(W.createNodeArray(ae,G.hasTrailingComma),G)),Z){let _e=$P(Z,O);_e&&(Z=_e.typeNode,C3(k,_e.symbols))}}let Q=y?W.createToken(58):void 0,re=U.asteriskToken;if(bu(U))return W.updateFunctionExpression(U,f,U.asteriskToken,Ci(_,ct),J,G,Z,u??U.body);if(Iu(U))return W.updateArrowFunction(U,f,J,G,Z,U.equalsGreaterThanToken,u??U.body);if(Ep(U))return W.updateMethodDeclaration(U,f,re,_??W.createIdentifier(""),Q,J,G,Z,u);if(i_(U))return W.updateFunctionDeclaration(U,f,U.asteriskToken,Ci(_,ct),J,G,Z,u??U.body)}function KRe(t,n,a,c,u,_,f){let y=Vg(n.sourceFile,n.preferences),g=$c(n.program.getCompilerOptions()),k=sM(n),T=n.program.getTypeChecker(),C=Ei(f),{typeArguments:O,arguments:F,parent:M}=c,U=C?void 0:T.getContextualType(c),J=Cr(F,Oe=>ct(Oe)?Oe.text:no(Oe)&&ct(Oe.name)?Oe.name.text:void 0),G=C?[]:Cr(F,Oe=>T.getTypeAtLocation(Oe)),{argumentTypeNodes:Z,argumentTypeParameters:Q}=khr(T,a,G,f,g,1,8,k),re=_?W.createNodeArray(W.createModifiersFromModifierFlags(_)):void 0,ae=BH(M)?W.createToken(42):void 0,_e=C?void 0:Thr(T,Q,O),me=ZRe(F.length,J,Z,void 0,C),le=C||U===void 0?void 0:T.typeToTypeNode(U,f,void 0,void 0,k);switch(t){case 175:return W.createMethodDeclaration(re,ae,u,void 0,_e,me,le,XRe(y));case 174:return W.createMethodSignature(re,u,void 0,_e,me,le===void 0?W.createKeywordTypeNode(159):le);case 263:return $.assert(typeof u=="string"||ct(u),"Unexpected name"),W.createFunctionDeclaration(re,ae,u,_e,me,le,Mae(x.Function_not_implemented.message,y));default:$.fail("Unexpected kind")}}function Thr(t,n,a){let c=new Set(n.map(_=>_[0])),u=new Map(n);if(a){let _=a.filter(y=>!n.some(g=>{var k;return t.getTypeAtLocation(y)===((k=g[1])==null?void 0:k.argumentType)})),f=c.size+_.length;for(let y=0;c.size{var f;return W.createTypeParameterDeclaration(void 0,_,(f=u.get(_))==null?void 0:f.constraint)})}function Avt(t){return 84+t<=90?String.fromCharCode(84+t):`T${t}`}function HSe(t,n,a,c,u,_,f,y){let g=t.typeToTypeNode(a,c,_,f,y);if(g)return QRe(g,n,u)}function QRe(t,n,a){let c=$P(t,a);return c&&(C3(n,c.symbols),t=c.typeNode),Il(t)}function Ehr(t,n){var a;$.assert(n.typeArguments);let c=n.typeArguments,u=n.target;for(let _=0;_g===c[k]))return _}return c.length}function wvt(t,n,a,c,u,_){let f=t.typeToTypeNode(n,a,c,u,_);if(f){if(Ug(f)){let y=n;if(y.typeArguments&&f.typeArguments){let g=Ehr(t,y);if(g=c?W.createToken(58):void 0,u?void 0:a?.[y]||W.createKeywordTypeNode(159),void 0);_.push(T)}return _}function Dhr(t,n,a,c,u,_,f,y,g){let k=c[0],T=c[0].minArgumentCount,C=!1;for(let U of c)T=Math.min(U.minArgumentCount,T),Am(U)&&(C=!0),U.parameters.length>=k.parameters.length&&(!Am(U)||Am(k))&&(k=U);let O=k.parameters.length-(Am(k)?1:0),F=k.parameters.map(U=>U.name),M=ZRe(O,F,void 0,T,!1);if(C){let U=W.createParameterDeclaration(void 0,W.createToken(26),F[O]||"rest",O>=T?W.createToken(58):void 0,W.createArrayTypeNode(W.createKeywordTypeNode(159)),void 0);M.push(U)}return whr(f,u,_,void 0,M,Ahr(c,t,n,a),y,g)}function Ahr(t,n,a,c){if(te(t)){let u=n.getUnionType(Cr(t,n.getReturnTypeOfSignature));return n.typeToTypeNode(u,c,1,8,sM(a))}}function whr(t,n,a,c,u,_,f,y){return W.createMethodDeclaration(t,void 0,n,a?W.createToken(58):void 0,c,u,_,y||XRe(f))}function XRe(t){return Mae(x.Method_not_implemented.message,t)}function Mae(t,n){return W.createBlock([W.createThrowStatement(W.createNewExpression(W.createIdentifier("Error"),void 0,[W.createStringLiteral(t,n===0)]))],!0)}function YRe(t,n,a){let c=fU(n);if(!c)return;let u=Ovt(c,"compilerOptions");if(u===void 0){t.insertNodeAtObjectStart(n,c,tLe("compilerOptions",W.createObjectLiteralExpression(a.map(([f,y])=>tLe(f,y)),!0)));return}let _=u.initializer;if(Lc(_))for(let[f,y]of a){let g=Ovt(_,f);g===void 0?t.insertNodeAtObjectStart(n,_,tLe(f,y)):t.replaceNode(n,g.initializer,y)}}function eLe(t,n,a,c){YRe(t,n,[[a,c]])}function tLe(t,n){return W.createPropertyAssignment(W.createStringLiteral(t),n)}function Ovt(t,n){return wt(t.properties,a=>td(a)&&!!a.name&&Ic(a.name)&&a.name.text===n)}function $P(t,n){let a,c=At(t,u,Wo);if(a&&c)return{typeNode:c,symbols:a};function u(_){if(jT(_)&&_.qualifier){let f=_h(_.qualifier);if(!f.symbol)return Dn(_,u,void 0);let y=oae(f.symbol,n),g=y!==f.text?Fvt(_.qualifier,W.createIdentifier(y)):_.qualifier;a=jt(a,f.symbol);let k=Bn(_.typeArguments,u,Wo);return W.createTypeReferenceNode(g,k)}return Dn(_,u,void 0)}}function Fvt(t,n){return t.kind===80?n:W.createQualifiedName(Fvt(t.left,n),t.right)}function C3(t,n){n.forEach(a=>t.addImportFromExportedSymbol(a,!0))}function rLe(t,n){let a=Xn(n),c=la(t,n.start);for(;c.end_.replaceNode(n,a,c));return wv($vt,u,[x.Replace_import_with_0,u[0].textChanges[0].newText])}gc({errorCodes:[x.This_expression_is_not_callable.code,x.This_expression_is_not_constructable.code],getCodeActions:zhr});function zhr(t){let n=t.sourceFile,a=x.This_expression_is_not_callable.code===t.errorCode?214:215,c=fn(la(n,t.span.start),_=>_.kind===a);if(!c)return[];let u=c.expression;return zvt(t,u)}gc({errorCodes:[x.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,x.Type_0_does_not_satisfy_the_constraint_1.code,x.Type_0_is_not_assignable_to_type_1.code,x.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,x.Type_predicate_0_is_not_assignable_to_1.code,x.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,x._0_index_type_1_is_not_assignable_to_2_index_type_3.code,x.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,x.Property_0_in_type_1_is_not_assignable_to_type_2.code,x.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,x.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:qhr});function qhr(t){let n=t.sourceFile,a=fn(la(n,t.span.start),c=>c.getStart()===t.span.start&&c.getEnd()===t.span.start+t.span.length);return a?zvt(t,a):[]}function zvt(t,n){let a=t.program.getTypeChecker().getTypeAtLocation(n);if(!(a.symbol&&wx(a.symbol)&&a.symbol.links.originatingImport))return[];let c=[],u=a.symbol.links.originatingImport;if(Bh(u)||En(c,Uhr(t,u)),Vt(n)&&!(Vp(n.parent)&&n.parent.name===n)){let _=t.sourceFile,f=ki.ChangeTracker.with(t,y=>y.replaceNode(_,n,W.createPropertyAccessExpression(n,"default"),{}));c.push(wv($vt,f,x.Use_synthetic_default_member))}return c}var nLe="strictClassInitialization",iLe="addMissingPropertyDefiniteAssignmentAssertions",oLe="addMissingPropertyUndefinedType",aLe="addMissingPropertyInitializer",qvt=[x.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];gc({errorCodes:qvt,getCodeActions:function(n){let a=Jvt(n.sourceFile,n.span.start);if(!a)return;let c=[];return jt(c,Vhr(n,a)),jt(c,Jhr(n,a)),jt(c,Whr(n,a)),c},fixIds:[iLe,oLe,aLe],getAllCodeActions:t=>Vl(t,qvt,(n,a)=>{let c=Jvt(a.file,a.start);if(c)switch(t.fixId){case iLe:Vvt(n,a.file,c.prop);break;case oLe:Wvt(n,a.file,c);break;case aLe:let u=t.program.getTypeChecker(),_=Hvt(u,c.prop);if(!_)return;Gvt(n,a.file,c.prop,_);break;default:$.fail(JSON.stringify(t.fixId))}})});function Jvt(t,n){let a=la(t,n);if(ct(a)&&ps(a.parent)){let c=X_(a.parent);if(c)return{type:c,prop:a.parent,isJs:Ei(a.parent)}}}function Jhr(t,n){if(n.isJs)return;let a=ki.ChangeTracker.with(t,c=>Vvt(c,t.sourceFile,n.prop));return Xs(nLe,a,[x.Add_definite_assignment_assertion_to_property_0,n.prop.getText()],iLe,x.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function Vvt(t,n,a){$g(a);let c=W.updatePropertyDeclaration(a,a.modifiers,a.name,W.createToken(54),a.type,a.initializer);t.replaceNode(n,a,c)}function Vhr(t,n){let a=ki.ChangeTracker.with(t,c=>Wvt(c,t.sourceFile,n));return Xs(nLe,a,[x.Add_undefined_type_to_property_0,n.prop.name.getText()],oLe,x.Add_undefined_type_to_all_uninitialized_properties)}function Wvt(t,n,a){let c=W.createKeywordTypeNode(157),u=SE(a.type)?a.type.types.concat(c):[a.type,c],_=W.createUnionTypeNode(u);a.isJs?t.addJSDocTags(n,a.prop,[W.createJSDocTypeTag(void 0,W.createJSDocTypeExpression(_))]):t.replaceNode(n,a.type,_)}function Whr(t,n){if(n.isJs)return;let a=t.program.getTypeChecker(),c=Hvt(a,n.prop);if(!c)return;let u=ki.ChangeTracker.with(t,_=>Gvt(_,t.sourceFile,n.prop,c));return Xs(nLe,u,[x.Add_initializer_to_property_0,n.prop.name.getText()],aLe,x.Add_initializers_to_all_uninitialized_properties)}function Gvt(t,n,a,c){$g(a);let u=W.updatePropertyDeclaration(a,a.modifiers,a.name,a.questionToken,a.type,c);t.replaceNode(n,a,u)}function Hvt(t,n){return Kvt(t,t.getTypeFromTypeNode(n.type))}function Kvt(t,n){if(n.flags&512)return n===t.getFalseType()||n===t.getFalseType(!0)?W.createFalse():W.createTrue();if(n.isStringLiteral())return W.createStringLiteral(n.value);if(n.isNumberLiteral())return W.createNumericLiteral(n.value);if(n.flags&2048)return W.createBigIntLiteral(n.value);if(n.isUnion())return Je(n.types,a=>Kvt(t,a));if(n.isClass()){let a=JT(n.symbol);if(!a||ko(a,64))return;let c=Rx(a);return c&&c.parameters.length?void 0:W.createNewExpression(W.createIdentifier(n.symbol.name),void 0,void 0)}else if(t.isArrayLikeType(n))return W.createArrayLiteralExpression()}var sLe="requireInTs",Qvt=[x.require_call_may_be_converted_to_an_import.code];gc({errorCodes:Qvt,getCodeActions(t){let n=Xvt(t.sourceFile,t.program,t.span.start,t.preferences);if(!n)return;let a=ki.ChangeTracker.with(t,c=>Zvt(c,t.sourceFile,n));return[Xs(sLe,a,x.Convert_require_to_import,sLe,x.Convert_all_require_to_import)]},fixIds:[sLe],getAllCodeActions:t=>Vl(t,Qvt,(n,a)=>{let c=Xvt(a.file,t.program,a.start,t.preferences);c&&Zvt(n,t.sourceFile,c)})});function Zvt(t,n,a){let{allowSyntheticDefaults:c,defaultImportName:u,namedImports:_,statement:f,moduleSpecifier:y}=a;t.replaceNode(n,f,u&&!c?W.createImportEqualsDeclaration(void 0,!1,u,W.createExternalModuleReference(y)):W.createImportDeclaration(void 0,W.createImportClause(void 0,u,_),y,void 0))}function Xvt(t,n,a,c){let{parent:u}=la(t,a);$h(u,!0)||$.failBadSyntaxKind(u);let _=Ba(u.parent,Oo),f=Vg(t,c),y=Ci(_.name,ct),g=$y(_.name)?Ghr(_.name):void 0;if(y||g){let k=To(u.arguments);return{allowSyntheticDefaults:iF(n.getCompilerOptions()),defaultImportName:y,namedImports:g,statement:Ba(_.parent.parent,h_),moduleSpecifier:r3(k)?W.createStringLiteral(k.text,f===0):k}}}function Ghr(t){let n=[];for(let a of t.elements){if(!ct(a.name)||a.initializer)return;n.push(W.createImportSpecifier(!1,Ci(a.propertyName,ct),a.name))}if(n.length)return W.createNamedImports(n)}var cLe="useDefaultImport",Yvt=[x.Import_may_be_converted_to_a_default_import.code];gc({errorCodes:Yvt,getCodeActions(t){let{sourceFile:n,span:{start:a}}=t,c=eSt(n,a);if(!c)return;let u=ki.ChangeTracker.with(t,_=>tSt(_,n,c,t.preferences));return[Xs(cLe,u,x.Convert_to_default_import,cLe,x.Convert_all_to_default_imports)]},fixIds:[cLe],getAllCodeActions:t=>Vl(t,Yvt,(n,a)=>{let c=eSt(a.file,a.start);c&&tSt(n,a.file,c,t.preferences)})});function eSt(t,n){let a=la(t,n);if(!ct(a))return;let{parent:c}=a;if(gd(c)&&WT(c.moduleReference))return{importNode:c,name:a,moduleSpecifier:c.moduleReference.expression};if(zx(c)&&fp(c.parent.parent)){let u=c.parent.parent;return{importNode:u,name:a,moduleSpecifier:u.moduleSpecifier}}}function tSt(t,n,a,c){t.replaceNode(n,a.importNode,IC(a.name,void 0,a.moduleSpecifier,Vg(n,c)))}var lLe="useBigintLiteral",rSt=[x.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];gc({errorCodes:rSt,getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>nSt(c,n.sourceFile,n.span));if(a.length>0)return[Xs(lLe,a,x.Convert_to_a_bigint_numeric_literal,lLe,x.Convert_all_to_bigint_numeric_literals)]},fixIds:[lLe],getAllCodeActions:t=>Vl(t,rSt,(n,a)=>nSt(n,a.file,a))});function nSt(t,n,a){let c=Ci(la(n,a.start),qh);if(!c)return;let u=c.getText(n)+"n";t.replaceNode(n,c,W.createBigIntLiteral(u))}var Hhr="fixAddModuleReferTypeMissingTypeof",uLe=Hhr,iSt=[x.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];gc({errorCodes:iSt,getCodeActions:function(n){let{sourceFile:a,span:c}=n,u=oSt(a,c.start),_=ki.ChangeTracker.with(n,f=>aSt(f,a,u));return[Xs(uLe,_,x.Add_missing_typeof,uLe,x.Add_missing_typeof)]},fixIds:[uLe],getAllCodeActions:t=>Vl(t,iSt,(n,a)=>aSt(n,t.sourceFile,oSt(a.file,a.start)))});function oSt(t,n){let a=la(t,n);return $.assert(a.kind===102,"This token should be an ImportKeyword"),$.assert(a.parent.kind===206,"Token parent should be an ImportType"),a.parent}function aSt(t,n,a){let c=W.updateImportTypeNode(a,a.argument,a.attributes,a.qualifier,a.typeArguments,!0);t.replaceNode(n,a,c)}var pLe="wrapJsxInFragment",sSt=[x.JSX_expressions_must_have_one_parent_element.code];gc({errorCodes:sSt,getCodeActions:function(n){let{sourceFile:a,span:c}=n,u=cSt(a,c.start);if(!u)return;let _=ki.ChangeTracker.with(n,f=>lSt(f,a,u));return[Xs(pLe,_,x.Wrap_in_JSX_fragment,pLe,x.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[pLe],getAllCodeActions:t=>Vl(t,sSt,(n,a)=>{let c=cSt(t.sourceFile,a.start);c&&lSt(n,t.sourceFile,c)})});function cSt(t,n){let u=la(t,n).parent.parent;if(!(!wi(u)&&(u=u.parent,!wi(u)))&&Op(u.operatorToken))return u}function lSt(t,n,a){let c=Khr(a);c&&t.replaceNode(n,a,W.createJsxFragment(W.createJsxOpeningFragment(),c,W.createJsxJsxClosingFragment()))}function Khr(t){let n=[],a=t;for(;;)if(wi(a)&&Op(a.operatorToken)&&a.operatorToken.kind===28){if(n.push(a.left),hG(a.right))return n.push(a.right),n;if(wi(a.right)){a=a.right;continue}else return}else return}var _Le="wrapDecoratorInParentheses",uSt=[x.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];gc({errorCodes:uSt,getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>pSt(c,n.sourceFile,n.span.start));return[Xs(_Le,a,x.Wrap_in_parentheses,_Le,x.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[_Le],getAllCodeActions:t=>Vl(t,uSt,(n,a)=>pSt(n,a.file,a.start))});function pSt(t,n,a){let c=la(n,a),u=fn(c,hd);$.assert(!!u,"Expected position to be owned by a decorator.");let _=W.createParenthesizedExpression(u.expression);t.replaceNode(n,u.expression,_)}var dLe="fixConvertToMappedObjectType",_St=[x.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];gc({errorCodes:_St,getCodeActions:function(n){let{sourceFile:a,span:c}=n,u=dSt(a,c.start);if(!u)return;let _=ki.ChangeTracker.with(n,y=>fSt(y,a,u)),f=Zi(u.container.name);return[Xs(dLe,_,[x.Convert_0_to_mapped_object_type,f],dLe,[x.Convert_0_to_mapped_object_type,f])]},fixIds:[dLe],getAllCodeActions:t=>Vl(t,_St,(n,a)=>{let c=dSt(a.file,a.start);c&&fSt(n,a.file,c)})});function dSt(t,n){let a=la(t,n),c=Ci(a.parent.parent,vC);if(!c)return;let u=Af(c.parent)?c.parent:Ci(c.parent.parent,s1);if(u)return{indexSignature:c,container:u}}function Qhr(t,n){return W.createTypeAliasDeclaration(t.modifiers,t.name,t.typeParameters,n)}function fSt(t,n,{indexSignature:a,container:c}){let _=(Af(c)?c.members:c.type.members).filter(T=>!vC(T)),f=To(a.parameters),y=W.createTypeParameterDeclaration(void 0,Ba(f.name,ct),f.type),g=W.createMappedTypeNode(Q4(a)?W.createModifier(148):void 0,y,void 0,a.questionToken,a.type,void 0),k=W.createIntersectionTypeNode([...EU(c),g,..._.length?[W.createTypeLiteralNode(_)]:j]);t.replaceNode(n,c,Qhr(c,k))}var mSt="removeAccidentalCallParentheses",Zhr=[x.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];gc({errorCodes:Zhr,getCodeActions(t){let n=fn(la(t.sourceFile,t.span.start),Js);if(!n)return;let a=ki.ChangeTracker.with(t,c=>{c.deleteRange(t.sourceFile,{pos:n.expression.end,end:n.end})});return[wv(mSt,a,x.Remove_parentheses)]},fixIds:[mSt]});var fLe="removeUnnecessaryAwait",hSt=[x.await_has_no_effect_on_the_type_of_this_expression.code];gc({errorCodes:hSt,getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>gSt(c,n.sourceFile,n.span));if(a.length>0)return[Xs(fLe,a,x.Remove_unnecessary_await,fLe,x.Remove_all_unnecessary_uses_of_await)]},fixIds:[fLe],getAllCodeActions:t=>Vl(t,hSt,(n,a)=>gSt(n,a.file,a))});function gSt(t,n,a){let c=Ci(la(n,a.start),y=>y.kind===135),u=c&&Ci(c.parent,SC);if(!u)return;let _=u;if(mh(u.parent)){let y=aL(u.expression,!1);if(ct(y)){let g=vd(u.parent.pos,n);g&&g.kind!==105&&(_=u.parent)}}t.replaceNode(n,_,u.expression)}var ySt=[x.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],mLe="splitTypeOnlyImport";gc({errorCodes:ySt,fixIds:[mLe],getCodeActions:function(n){let a=ki.ChangeTracker.with(n,c=>SSt(c,vSt(n.sourceFile,n.span),n));if(a.length)return[Xs(mLe,a,x.Split_into_two_separate_import_declarations,mLe,x.Split_all_invalid_type_only_imports)]},getAllCodeActions:t=>Vl(t,ySt,(n,a)=>{SSt(n,vSt(t.sourceFile,a),t)})});function vSt(t,n){return fn(la(t,n.start),fp)}function SSt(t,n,a){if(!n)return;let c=$.checkDefined(n.importClause);t.replaceNode(a.sourceFile,n,W.updateImportDeclaration(n,n.modifiers,W.updateImportClause(c,c.phaseModifier,c.name,void 0),n.moduleSpecifier,n.attributes)),t.insertNodeAfter(a.sourceFile,n,W.createImportDeclaration(void 0,W.updateImportClause(c,c.phaseModifier,void 0,c.namedBindings),n.moduleSpecifier,n.attributes))}var hLe="fixConvertConstToLet",bSt=[x.Cannot_assign_to_0_because_it_is_a_constant.code];gc({errorCodes:bSt,getCodeActions:function(n){let{sourceFile:a,span:c,program:u}=n,_=xSt(a,c.start,u);if(_===void 0)return;let f=ki.ChangeTracker.with(n,y=>TSt(y,a,_.token));return[D9e(hLe,f,x.Convert_const_to_let,hLe,x.Convert_all_const_to_let)]},getAllCodeActions:t=>{let{program:n}=t,a=new Set;return VF(ki.ChangeTracker.with(t,c=>{WF(t,bSt,u=>{let _=xSt(u.file,u.start,n);if(_&&o1(a,hc(_.symbol)))return TSt(c,u.file,_.token)})}))},fixIds:[hLe]});function xSt(t,n,a){var c;let _=a.getTypeChecker().getSymbolAtLocation(la(t,n));if(_===void 0)return;let f=Ci((c=_?.valueDeclaration)==null?void 0:c.parent,Df);if(f===void 0)return;let y=Kl(f,87,t);if(y!==void 0)return{symbol:_,token:y}}function TSt(t,n,a){t.replaceNode(n,a,W.createToken(121))}var gLe="fixExpectedComma",Xhr=x._0_expected.code,ESt=[Xhr];gc({errorCodes:ESt,getCodeActions(t){let{sourceFile:n}=t,a=kSt(n,t.span.start,t.errorCode);if(!a)return;let c=ki.ChangeTracker.with(t,u=>CSt(u,n,a));return[Xs(gLe,c,[x.Change_0_to_1,";",","],gLe,[x.Change_0_to_1,";",","])]},fixIds:[gLe],getAllCodeActions:t=>Vl(t,ESt,(n,a)=>{let c=kSt(a.file,a.start,a.code);c&&CSt(n,t.sourceFile,c)})});function kSt(t,n,a){let c=la(t,n);return c.kind===27&&c.parent&&(Lc(c.parent)||qf(c.parent))?{node:c}:void 0}function CSt(t,n,{node:a}){let c=W.createToken(28);t.replaceNode(n,a,c)}var Yhr="addVoidToPromise",DSt="addVoidToPromise",ASt=[x.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,x.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];gc({errorCodes:ASt,fixIds:[DSt],getCodeActions(t){let n=ki.ChangeTracker.with(t,a=>wSt(a,t.sourceFile,t.span,t.program));if(n.length>0)return[Xs(Yhr,n,x.Add_void_to_Promise_resolved_without_a_value,DSt,x.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(t){return Vl(t,ASt,(n,a)=>wSt(n,a.file,a,t.program,new Set))}});function wSt(t,n,a,c,u){let _=la(n,a.start);if(!ct(_)||!Js(_.parent)||_.parent.expression!==_||_.parent.arguments.length!==0)return;let f=c.getTypeChecker(),y=f.getSymbolAtLocation(_),g=y?.valueDeclaration;if(!g||!wa(g)||!SP(g.parent.parent)||u?.has(g))return;u?.add(g);let k=egr(g.parent.parent);if(Pt(k)){let T=k[0],C=!SE(T)&&!i3(T)&&i3(W.createUnionTypeNode([T,W.createKeywordTypeNode(116)]).types[0]);C&&t.insertText(n,T.pos,"("),t.insertText(n,T.end,C?") | void":" | void")}else{let T=f.getResolvedSignature(_.parent),C=T?.parameters[0],O=C&&f.getTypeOfSymbolAtLocation(C,g.parent.parent);Ei(g)?(!O||O.flags&3)&&(t.insertText(n,g.parent.parent.end,")"),t.insertText(n,_c(n.text,g.parent.parent.pos),"/** @type {Promise} */(")):(!O||O.flags&2)&&t.insertText(n,g.parent.parent.expression.end,"")}}function egr(t){var n;if(Ei(t)){if(mh(t.parent)){let a=(n=mv(t.parent))==null?void 0:n.typeExpression.type;if(a&&Ug(a)&&ct(a.typeName)&&Zi(a.typeName)==="Promise")return a.typeArguments}}else return t.typeArguments}var KF={};d(KF,{CompletionKind:()=>WSt,CompletionSource:()=>PSt,SortText:()=>om,StringCompletions:()=>abe,SymbolOriginInfoKind:()=>NSt,createCompletionDetails:()=>$ae,createCompletionDetailsForSymbol:()=>CLe,getCompletionEntriesFromSymbols:()=>ELe,getCompletionEntryDetails:()=>Pgr,getCompletionEntrySymbol:()=>Ogr,getCompletionsAtPosition:()=>cgr,getDefaultCommitCharacters:()=>D3,getPropertiesForObjectExpression:()=>nbe,moduleSpecifierResolutionCacheAttemptLimit:()=>ISt,moduleSpecifierResolutionLimit:()=>yLe});var yLe=100,ISt=1e3,om={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated(t){return"z"+t},ObjectLiteralProperty(t,n){return`${t}\0${n}\0`},SortBelow(t){return t+"1"}},MS=[".",",",";"],KSe=[".",";"],PSt=(t=>(t.ThisProperty="ThisProperty/",t.ClassMemberSnippet="ClassMemberSnippet/",t.TypeOnlyAlias="TypeOnlyAlias/",t.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",t.SwitchCases="SwitchCases/",t.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",t))(PSt||{}),NSt=(t=>(t[t.ThisType=1]="ThisType",t[t.SymbolMember=2]="SymbolMember",t[t.Export=4]="Export",t[t.Promise=8]="Promise",t[t.Nullable=16]="Nullable",t[t.ResolvedExport=32]="ResolvedExport",t[t.TypeOnlyAlias=64]="TypeOnlyAlias",t[t.ObjectLiteralMethod=128]="ObjectLiteralMethod",t[t.Ignore=256]="Ignore",t[t.ComputedPropertyName=512]="ComputedPropertyName",t[t.SymbolMemberNoExport=2]="SymbolMemberNoExport",t[t.SymbolMemberExport=6]="SymbolMemberExport",t))(NSt||{});function tgr(t){return!!(t.kind&1)}function rgr(t){return!!(t.kind&2)}function jae(t){return!!(t&&t.kind&4)}function fq(t){return!!(t&&t.kind===32)}function ngr(t){return jae(t)||fq(t)||vLe(t)}function igr(t){return(jae(t)||fq(t))&&!!t.isFromPackageJson}function ogr(t){return!!(t.kind&8)}function agr(t){return!!(t.kind&16)}function OSt(t){return!!(t&&t.kind&64)}function FSt(t){return!!(t&&t.kind&128)}function sgr(t){return!!(t&&t.kind&256)}function vLe(t){return!!(t&&t.kind&512)}function RSt(t,n,a,c,u,_,f,y,g){var k,T,C,O;let F=Ml(),M=f||fH(c.getCompilerOptions())||((k=_.autoImportSpecifierExcludeRegexes)==null?void 0:k.length),U=!1,J=0,G=0,Z=0,Q=0,re=g({tryResolve:_e,skippedAny:()=>U,resolvedAny:()=>G>0,resolvedBeyondLimit:()=>G>yLe}),ae=Q?` (${(Z/Q*100).toFixed(1)}% hit rate)`:"";return(T=n.log)==null||T.call(n,`${t}: resolved ${G} module specifiers, plus ${J} ambient and ${Z} from cache${ae}`),(C=n.log)==null||C.call(n,`${t}: response is ${U?"incomplete":"complete"}`),(O=n.log)==null||O.call(n,`${t}: ${Ml()-F}`),re;function _e(me,le){if(le){let De=a.getModuleSpecifierForBestExportInfo(me,u,y);return De&&J++,De||"failed"}let Oe=M||_.allowIncompleteCompletions&&G{let M=Wn(g.entries,U=>{var J;if(!U.hasAction||!U.source||!U.data||LSt(U.data))return U;if(!cbt(U.name,T))return;let{origin:G}=$.checkDefined(HSt(U.name,U.data,c,u)),Z=C.get(n.path,U.data.exportMapKey),Q=Z&&F.tryResolve(Z,!vt(i1(G.moduleSymbol.name)));if(Q==="skipped")return U;if(!Q||Q==="failed"){(J=u.log)==null||J.call(u,`Unexpected failure resolving auto import for '${U.name}' from '${U.source}'`);return}let re={...G,kind:32,moduleSpecifier:Q.moduleSpecifier};return U.data=JSt(re),U.source=TLe(re),U.sourceDisplay=[Vy(re.moduleSpecifier)],U});return F.skippedAny()||(g.isIncomplete=void 0),M});return g.entries=O,g.flags=(g.flags||0)|4,g.optionalReplacementSpan=$St(k),g}function SLe(t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t,defaultCommitCharacters:D3(!1)}}function MSt(t,n,a,c,u,_){let f=la(t,n);if(!MR(f)&&!kv(f))return[];let y=kv(f)?f:f.parent;if(!kv(y))return[];let g=y.parent;if(!Rs(g))return[];let k=ph(t),T=u.includeCompletionsWithSnippetText||void 0,C=Lo(y.tags,O=>Uy(O)&&O.getEnd()<=n);return Wn(g.parameters,O=>{if(!P4(O).length){if(ct(O.name)){let F={tabstop:1},M=O.name.text,U=bQ(M,O.initializer,O.dotDotDotToken,k,!1,!1,a,c,u),J=T?bQ(M,O.initializer,O.dotDotDotToken,k,!1,!0,a,c,u,F):void 0;return _&&(U=U.slice(1),J&&(J=J.slice(1))),{name:U,kind:"parameter",sortText:om.LocationPriority,insertText:T?J:void 0,isSnippet:T}}else if(O.parent.parameters.indexOf(O)===C){let F=`param${C}`,M=jSt(F,O.name,O.initializer,O.dotDotDotToken,k,!1,a,c,u),U=T?jSt(F,O.name,O.initializer,O.dotDotDotToken,k,!0,a,c,u):void 0,J=M.join(fE(c)+"* "),G=U?.join(fE(c)+"* ");return _&&(J=J.slice(1),G&&(G=G.slice(1))),{name:J,kind:"parameter",sortText:om.LocationPriority,insertText:T?G:void 0,isSnippet:T}}}})}function jSt(t,n,a,c,u,_,f,y,g){if(!u)return[bQ(t,a,c,u,!1,_,f,y,g,{tabstop:1})];return k(t,n,a,c,{tabstop:1});function k(C,O,F,M,U){if($y(O)&&!M){let G={tabstop:U.tabstop},Z=bQ(C,F,M,u,!0,_,f,y,g,G),Q=[];for(let re of O.elements){let ae=T(C,re,G);if(ae)Q.push(...ae);else{Q=void 0;break}}if(Q)return U.tabstop=G.tabstop,[Z,...Q]}return[bQ(C,F,M,u,!1,_,f,y,g,U)]}function T(C,O,F){if(!O.propertyName&&ct(O.name)||ct(O.name)){let M=O.propertyName?pU(O.propertyName):O.name.text;if(!M)return;let U=`${C}.${M}`;return[bQ(U,O.initializer,O.dotDotDotToken,u,!1,_,f,y,g,F)]}else if(O.propertyName){let M=pU(O.propertyName);return M&&k(`${C}.${M}`,O.name,O.initializer,O.dotDotDotToken,F)}}}function bQ(t,n,a,c,u,_,f,y,g,k){if(_&&$.assertIsDefined(k),n&&(t=ugr(t,n)),_&&(t=mP(t)),c){let T="*";if(u)$.assert(!a,"Cannot annotate a rest parameter with type 'Object'."),T="Object";else{if(n){let F=f.getTypeAtLocation(n.parent);if(!(F.flags&16385)){let M=n.getSourceFile(),J=Vg(M,g)===0?268435456:0,G=f.typeToTypeNode(F,fn(n,Rs),J);if(G){let Z=_?XSe({removeComments:!0,module:y.module,moduleResolution:y.moduleResolution,target:y.target}):DC({removeComments:!0,module:y.module,moduleResolution:y.moduleResolution,target:y.target});Ai(G,1),T=Z.printNode(4,G,M)}}}_&&T==="*"&&(T=`\${${k.tabstop++}:${T}}`)}let C=!u&&a?"...":"",O=_?`\${${k.tabstop++}}`:"";return`@param {${C}${T}} ${t} ${O}`}else{let T=_?`\${${k.tabstop++}}`:"";return`@param ${t} ${T}`}}function ugr(t,n){let a=n.getText().trim();return a.includes(` -`)||a.length>80?`[${t}]`:`[${t}=${a}]`}function pgr(t){return{name:Zs(t),kind:"keyword",kindModifiers:"",sortText:om.GlobalsOrKeywords}}function _gr(t,n){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:n,entries:t.slice(),defaultCommitCharacters:D3(n)}}function BSt(t,n,a){return{kind:4,keywordCompletions:QSt(t,n),isNewIdentifierLocation:a}}function dgr(t){if(t===156)return 8;$.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}function $St(t){return t?.kind===80?yh(t):void 0}function fgr(t,n,a,c,u,_,f,y,g,k){let{symbols:T,contextToken:C,completionKind:O,isInSnippetScope:F,isNewIdentifierLocation:M,location:U,propertyAccessToConvert:J,keywordFilters:G,symbolToOriginInfoMap:Z,recommendedCompletion:Q,isJsxInitializer:re,isTypeOnlyLocation:ae,isJsxIdentifierExpected:_e,isRightOfOpenTag:me,isRightOfDotOrQuestionDot:le,importStatementCompletion:Oe,insideJsDocTagTypeExpression:be,symbolToSortTextMap:ue,hasUnresolvedAutoImports:De,defaultCommitCharacters:Ce}=_,Ae=_.literals,Fe=a.getTypeChecker();if(_H(t.scriptKind)===1){let ve=hgr(U,t);if(ve)return ve}let Be=fn(C,bL);if(Be&&(B3e(C)||oP(C,Be.expression))){let ve=lae(Fe,Be.parent.clauses);Ae=Ae.filter(Le=>!ve.hasValue(Le)),T.forEach((Le,Ve)=>{if(Le.valueDeclaration&>(Le.valueDeclaration)){let nt=Fe.getConstantValue(Le.valueDeclaration);nt!==void 0&&ve.hasValue(nt)&&(Z[Ve]={kind:256})}})}let de=dy(),ze=USt(t,c);if(ze&&!M&&(!T||T.length===0)&&G===0)return;let ut=ELe(T,de,void 0,C,U,g,t,n,a,$c(c),u,O,f,c,y,ae,J,_e,re,Oe,Q,Z,ue,_e,me,k);if(G!==0)for(let ve of QSt(G,!be&&ph(t)))(ae&&Qz(kx(ve.name))||!ae&&Ygr(ve.name)||!ut.has(ve.name))&&(ut.add(ve.name),vm(de,ve,Bae,void 0,!0));for(let ve of Bgr(C,g))ut.has(ve.name)||(ut.add(ve.name),vm(de,ve,Bae,void 0,!0));for(let ve of Ae){let Le=ygr(t,f,ve);ut.add(Le.name),vm(de,Le,Bae,void 0,!0)}ze||ggr(t,U.pos,ut,$c(c),de);let je;if(f.includeCompletionsWithInsertText&&C&&!me&&!le&&(je=fn(C,_z))){let ve=zSt(je,t,f,c,n,a,y);ve&&de.push(ve.entry)}return{flags:_.flags,isGlobalCompletion:F,isIncomplete:f.allowIncompleteCompletions&&De?!0:void 0,isMemberCompletion:mgr(O),isNewIdentifierLocation:M,optionalReplacementSpan:$St(U),entries:de,defaultCommitCharacters:Ce??D3(M)}}function USt(t,n){return!ph(t)||!!WU(t,n)}function zSt(t,n,a,c,u,_,f){let y=t.clauses,g=_.getTypeChecker(),k=g.getTypeAtLocation(t.parent.expression);if(k&&k.isUnion()&&ht(k.types,T=>T.isLiteral())){let T=lae(g,y),C=$c(c),O=Vg(n,a),F=Im.createImportAdder(n,_,a,u),M=[];for(let ae of k.types)if(ae.flags&1024){$.assert(ae.symbol,"An enum member type should have a symbol"),$.assert(ae.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");let _e=ae.symbol.valueDeclaration&&g.getConstantValue(ae.symbol.valueDeclaration);if(_e!==void 0){if(T.hasValue(_e))continue;T.addValue(_e)}let me=Im.typeToAutoImportableTypeNode(g,F,ae,t,C);if(!me)return;let le=QSe(me,C,O);if(!le)return;M.push(le)}else if(!T.hasValue(ae.value))switch(typeof ae.value){case"object":M.push(ae.value.negative?W.createPrefixUnaryExpression(41,W.createBigIntLiteral({negative:!1,base10Value:ae.value.base10Value})):W.createBigIntLiteral(ae.value));break;case"number":M.push(ae.value<0?W.createPrefixUnaryExpression(41,W.createNumericLiteral(-ae.value)):W.createNumericLiteral(ae.value));break;case"string":M.push(W.createStringLiteral(ae.value,O===0));break}if(M.length===0)return;let U=Cr(M,ae=>W.createCaseClause(ae,[])),J=ZT(u,f?.options),G=XSe({removeComments:!0,module:c.module,moduleResolution:c.moduleResolution,target:c.target,newLine:iQ(J)}),Z=f?ae=>G.printAndFormatNode(4,ae,n,f):ae=>G.printNode(4,ae,n),Q=Cr(U,(ae,_e)=>a.includeCompletionsWithSnippetText?`${Z(ae)}$${_e+1}`:`${Z(ae)}`).join(J);return{entry:{name:`${G.printNode(4,U[0],n)} ...`,kind:"",sortText:om.GlobalsOrKeywords,insertText:Q,hasAction:F.hasFixes()||void 0,source:"SwitchCases/",isSnippet:a.includeCompletionsWithSnippetText?!0:void 0},importAdder:F}}}function QSe(t,n,a){switch(t.kind){case 184:let c=t.typeName;return ZSe(c,n,a);case 200:let u=QSe(t.objectType,n,a),_=QSe(t.indexType,n,a);return u&&_&&W.createElementAccessExpression(u,_);case 202:let f=t.literal;switch(f.kind){case 11:return W.createStringLiteral(f.text,a===0);case 9:return W.createNumericLiteral(f.text,f.numericLiteralFlags)}return;case 197:let y=QSe(t.type,n,a);return y&&(ct(y)?y:W.createParenthesizedExpression(y));case 187:return ZSe(t.exprName,n,a);case 206:$.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function ZSe(t,n,a){if(ct(t))return t;let c=oa(t.right.escapedText);return ige(c,n)?W.createPropertyAccessExpression(ZSe(t.left,n,a),c):W.createElementAccessExpression(ZSe(t.left,n,a),W.createStringLiteral(c,a===0))}function mgr(t){switch(t){case 0:case 3:case 2:return!0;default:return!1}}function hgr(t,n){let a=fn(t,c=>{switch(c.kind){case 288:return!0;case 44:case 32:case 80:case 212:return!1;default:return"quit"}});if(a){let c=!!Kl(a,32,n),f=a.parent.openingElement.tagName.getText(n)+(c?"":">"),y=yh(a.tagName),g={name:f,kind:"class",kindModifiers:void 0,sortText:om.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:y,entries:[g],defaultCommitCharacters:D3(!1)}}}function ggr(t,n,a,c,u){vSe(t).forEach((_,f)=>{if(_===n)return;let y=oa(f);!a.has(y)&&Jd(y,c)&&(a.add(y),vm(u,{name:y,kind:"warning",kindModifiers:"",sortText:om.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},Bae))})}function bLe(t,n,a){return typeof a=="object"?fP(a)+"n":Ni(a)?rq(t,n,a):JSON.stringify(a)}function ygr(t,n,a){return{name:bLe(t,n,a),kind:"string",kindModifiers:"",sortText:om.LocationPriority,commitCharacters:[]}}function vgr(t,n,a,c,u,_,f,y,g,k,T,C,O,F,M,U,J,G,Z,Q,re,ae,_e,me){var le,Oe;let be,ue,De=Y1e(a,_),Ce,Ae,Fe=TLe(C),Be,de,ze,ut=g.getTypeChecker(),je=C&&agr(C),ve=C&&rgr(C)||T;if(C&&tgr(C))be=T?`this${je?"?.":""}[${xLe(f,Z,k)}]`:`this${je?"?.":"."}${k}`;else if((ve||je)&&F){be=ve?T?`[${xLe(f,Z,k)}]`:`[${k}]`:k,(je||F.questionDotToken)&&(be=`?.${be}`);let It=Kl(F,25,f)||Kl(F,29,f);if(!It)return;let ke=Ca(k,F.name.text)?F.name.end:It.end;De=Hu(It.getStart(f),ke)}if(M&&(be===void 0&&(be=k),be=`{${be}}`,typeof M!="boolean"&&(De=yh(M,f))),C&&ogr(C)&&F){be===void 0&&(be=k);let It=vd(F.pos,f),ke="";It&&eae(It.end,It.parent,f)&&(ke=";"),ke+=`(await ${F.expression.getText()})`,be=T?`${ke}${be}`:`${ke}${je?"?.":"."}${be}`;let Se=Ci(F.parent,SC)?F.parent:F.expression;De=Hu(Se.getStart(f),F.end)}if(fq(C)&&(Be=[Vy(C.moduleSpecifier)],U&&({insertText:be,replacementSpan:De}=Dgr(k,U,C,J,f,g,Z),Ae=Z.includeCompletionsWithSnippetText?!0:void 0)),C?.kind===64&&(de=!0),Q===0&&c&&((le=vd(c.pos,f,c))==null?void 0:le.kind)!==28&&(Ep(c.parent.parent)||T0(c.parent.parent)||mg(c.parent.parent)||qx(c.parent)||((Oe=fn(c.parent,td))==null?void 0:Oe.getLastToken(f))===c||im(c.parent)&&qs(f,c.getEnd()).line!==qs(f,_).line)&&(Fe="ObjectLiteralMemberWithComma/",de=!0),Z.includeCompletionsWithClassMemberSnippets&&Z.includeCompletionsWithInsertText&&Q===3&&bgr(t,u,f)){let It,ke=qSt(y,g,G,Z,k,t,u,_,c,re);if(ke)({insertText:be,filterText:ue,isSnippet:Ae,importAdder:It}=ke),(It?.hasFixes()||ke.eraseRange)&&(de=!0,Fe="ClassMemberSnippet/");else return}if(C&&FSt(C)&&({insertText:be,isSnippet:Ae,labelDetails:ze}=C,Z.useLabelDetailsInCompletionEntries||(k=k+ze.detail,ze=void 0),Fe="ObjectLiteralMethodSnippet/",n=om.SortBelow(n)),ae&&!_e&&Z.includeCompletionsWithSnippetText&&Z.jsxAttributeCompletionStyle&&Z.jsxAttributeCompletionStyle!=="none"&&!(NS(u.parent)&&u.parent.initializer)){let It=Z.jsxAttributeCompletionStyle==="braces",ke=ut.getTypeOfSymbolAtLocation(t,u);Z.jsxAttributeCompletionStyle==="auto"&&!(ke.flags&528)&&!(ke.flags&1048576&&wt(ke.types,_t=>!!(_t.flags&528)))&&(ke.flags&402653316||ke.flags&1048576&&ht(ke.types,_t=>!!(_t.flags&402686084||d7e(_t)))?(be=`${mP(k)}=${rq(f,Z,"$1")}`,Ae=!0):It=!0),It&&(be=`${mP(k)}={$1}`,Ae=!0)}if(be!==void 0&&!Z.includeCompletionsWithInsertText)return;(jae(C)||fq(C))&&(Ce=JSt(C),de=!U);let Le=fn(u,tne);if(Le){let It=$c(y.getCompilationSettings());if(!Jd(k,It))be=xLe(f,Z,k),Le.kind===276&&(wf.setText(f.text),wf.resetTokenState(_),wf.scan()===130&&wf.scan()===80||(be+=" as "+Sgr(k,It)));else if(Le.kind===276){let ke=kx(k);ke&&(ke===135||ehe(ke))&&(be=`${k} as ${k}_`)}}let Ve=wE.getSymbolKind(ut,t,u),nt=Ve==="warning"||Ve==="string"?[]:void 0;return{name:k,kind:Ve,kindModifiers:wE.getSymbolModifiers(ut,t),sortText:n,source:Fe,hasAction:de?!0:void 0,isRecommended:Agr(t,O,ut)||void 0,insertText:be,filterText:ue,replacementSpan:De,sourceDisplay:Be,labelDetails:ze,isSnippet:Ae,isPackageJsonImport:igr(C)||void 0,isImportStatementCompletion:!!U||void 0,data:Ce,commitCharacters:nt,...me?{symbol:t}:void 0}}function Sgr(t,n){let a=!1,c="",u;for(let _=0;_=65536?2:1)u=t.codePointAt(_),u!==void 0&&(_===0?pg(u,n):j1(u,n))?(a&&(c+="_"),c+=String.fromCodePoint(u),a=!1):a=!0;return a&&(c+="_"),c||"_"}function bgr(t,n,a){return Ei(n)?!1:!!(t.flags&106500)&&(Co(n)||n.parent&&n.parent.parent&&J_(n.parent)&&n===n.parent.name&&n.parent.getLastToken(a)===n.parent.name&&Co(n.parent.parent)||n.parent&&kL(n)&&Co(n.parent))}function qSt(t,n,a,c,u,_,f,y,g,k){let T=fn(f,Co);if(!T)return;let C,O=u,F=u,M=n.getTypeChecker(),U=f.getSourceFile(),J=XSe({removeComments:!0,module:a.module,moduleResolution:a.moduleResolution,target:a.target,omitTrailingSemicolon:!1,newLine:iQ(ZT(t,k?.options))}),G=Im.createImportAdder(U,n,c,t),Z;if(c.includeCompletionsWithSnippetText){C=!0;let Oe=W.createEmptyStatement();Z=W.createBlock([Oe],!0),Tge(Oe,{kind:0,order:0})}else Z=W.createBlock([],!0);let Q=0,{modifiers:re,range:ae,decorators:_e}=xgr(g,U,y),me=re&64&&T.modifierFlagsCache&64,le=[];if(Im.addNewNodeForMemberSymbol(_,T,U,{program:n,host:t},c,G,Oe=>{let be=0;me&&(be|=64),J_(Oe)&&M.getMemberOverrideModifierStatus(T,Oe,_)===1&&(be|=16),le.length||(Q=Oe.modifierFlagsCache|be),Oe=W.replaceModifiers(Oe,Q),le.push(Oe)},Z,Im.PreserveOptionalFlags.Property,!!me),le.length){let Oe=_.flags&8192,be=Q|16|1;Oe?be|=1024:be|=136;let ue=re&be;if(re&~be)return;if(Q&4&&ue&1&&(Q&=-5),ue!==0&&!(ue&1)&&(Q&=-2),Q|=ue,le=le.map(Ce=>W.replaceModifiers(Ce,Q)),_e?.length){let Ce=le[le.length-1];kP(Ce)&&(le[le.length-1]=W.replaceDecoratorsAndModifiers(Ce,_e.concat(Qk(Ce)||[])))}let De=131073;k?O=J.printAndFormatSnippetList(De,W.createNodeArray(le),U,k):O=J.printSnippetList(De,W.createNodeArray(le),U)}return{insertText:O,filterText:F,isSnippet:C,importAdder:G,eraseRange:ae}}function xgr(t,n,a){if(!t||qs(n,a).line>qs(n,t.getEnd()).line)return{modifiers:0};let c=0,u,_,f={pos:a,end:a};if(ps(t.parent)&&(_=Tgr(t))){t.parent.modifiers&&(c|=TS(t.parent.modifiers)&98303,u=t.parent.modifiers.filter(hd)||[],f.pos=Math.min(...t.parent.modifiers.map(g=>g.getStart(n))));let y=ZO(_);c&y||(c|=y,f.pos=Math.min(f.pos,t.getStart(n))),t.parent.name!==t&&(f.end=t.parent.name.getStart(n))}return{modifiers:c,decorators:u,range:f.posy.getSignaturesOfType(Q,0).length>0);if(Z.length===1)F=Z[0];else return}if(y.getSignaturesOfType(F,0).length!==1)return;let U=y.typeToTypeNode(F,n,O,void 0,Im.getNoopSymbolTrackerWithResolver({program:c,host:u}));if(!U||!Cb(U))return;let J;if(_.includeCompletionsWithSnippetText){let Z=W.createEmptyStatement();J=W.createBlock([Z],!0),Tge(Z,{kind:0,order:0})}else J=W.createBlock([],!0);let G=U.parameters.map(Z=>W.createParameterDeclaration(void 0,Z.dotDotDotToken,Z.name,void 0,void 0,Z.initializer));return W.createMethodDeclaration(void 0,void 0,k,void 0,void 0,G,void 0,J)}default:return}}function XSe(t){let n,a=ki.createWriter(fE(t)),c=DC(t,a),u={...a,write:O=>_(O,()=>a.write(O)),nonEscapingWrite:a.write,writeLiteral:O=>_(O,()=>a.writeLiteral(O)),writeStringLiteral:O=>_(O,()=>a.writeStringLiteral(O)),writeSymbol:(O,F)=>_(O,()=>a.writeSymbol(O,F)),writeParameter:O=>_(O,()=>a.writeParameter(O)),writeComment:O=>_(O,()=>a.writeComment(O)),writeProperty:O=>_(O,()=>a.writeProperty(O))};return{printSnippetList:f,printAndFormatSnippetList:g,printNode:k,printAndFormatNode:C};function _(O,F){let M=mP(O);if(M!==O){let U=a.getTextPos();F();let J=a.getTextPos();n=jt(n||(n=[]),{newText:M,span:{start:U,length:J-U}})}else F()}function f(O,F,M){let U=y(O,F,M);return n?ki.applyChanges(U,n):U}function y(O,F,M){return n=void 0,u.clear(),c.writeList(O,F,M,u),u.getText()}function g(O,F,M,U){let J={text:y(O,F,M),getLineAndCharacterOfPosition(re){return qs(this,re)}},G=cae(U,M),Z=an(F,re=>{let ae=ki.assignPositionsToNode(re);return rd.formatNodeGivenIndentation(ae,J,M.languageVariant,0,0,{...U,options:G})}),Q=n?pu(go(Z,n),(re,ae)=>fy(re.span,ae.span)):Z;return ki.applyChanges(J.text,Q)}function k(O,F,M){let U=T(O,F,M);return n?ki.applyChanges(U,n):U}function T(O,F,M){return n=void 0,u.clear(),c.writeNode(O,F,M,u),u.getText()}function C(O,F,M,U){let J={text:T(O,F,M),getLineAndCharacterOfPosition(ae){return qs(this,ae)}},G=cae(U,M),Z=ki.assignPositionsToNode(F),Q=rd.formatNodeGivenIndentation(Z,J,M.languageVariant,0,0,{...U,options:G}),re=n?pu(go(Q,n),(ae,_e)=>fy(ae.span,_e.span)):Q;return ki.applyChanges(J.text,re)}}function JSt(t){let n=t.fileName?void 0:i1(t.moduleSymbol.name),a=t.isFromPackageJson?!0:void 0;return fq(t)?{exportName:t.exportName,exportMapKey:t.exportMapKey,moduleSpecifier:t.moduleSpecifier,ambientModuleName:n,fileName:t.fileName,isPackageJsonImport:a}:{exportName:t.exportName,exportMapKey:t.exportMapKey,fileName:t.fileName,ambientModuleName:t.fileName?void 0:i1(t.moduleSymbol.name),isPackageJsonImport:t.isFromPackageJson?!0:void 0}}function Cgr(t,n,a){let c=t.exportName==="default",u=!!t.isPackageJsonImport;return LSt(t)?{kind:32,exportName:t.exportName,exportMapKey:t.exportMapKey,moduleSpecifier:t.moduleSpecifier,symbolName:n,fileName:t.fileName,moduleSymbol:a,isDefaultExport:c,isFromPackageJson:u}:{kind:4,exportName:t.exportName,exportMapKey:t.exportMapKey,symbolName:n,fileName:t.fileName,moduleSymbol:a,isDefaultExport:c,isFromPackageJson:u}}function Dgr(t,n,a,c,u,_,f){let y=n.replacementSpan,g=mP(rq(u,f,a.moduleSpecifier)),k=a.isDefaultExport?1:a.exportName==="export="?2:0,T=f.includeCompletionsWithSnippetText?"$1":"",C=Im.getImportKind(u,k,_,!0),O=n.couldBeTypeOnlyImportSpecifier,F=n.isTopLevelTypeOnly?` ${Zs(156)} `:" ",M=O?`${Zs(156)} `:"",U=c?";":"";switch(C){case 3:return{replacementSpan:y,insertText:`import${F}${mP(t)}${T} = require(${g})${U}`};case 1:return{replacementSpan:y,insertText:`import${F}${mP(t)}${T} from ${g}${U}`};case 2:return{replacementSpan:y,insertText:`import${F}* as ${mP(t)} from ${g}${U}`};case 0:return{replacementSpan:y,insertText:`import${F}{ ${M}${mP(t)}${T} } from ${g}${U}`}}}function xLe(t,n,a){return/^\d+$/.test(a)?a:rq(t,n,a)}function Agr(t,n,a){return t===n||!!(t.flags&1048576)&&a.getExportSymbolOfSymbol(t)===n}function TLe(t){if(jae(t))return i1(t.moduleSymbol.name);if(fq(t))return t.moduleSpecifier;if(t?.kind===1)return"ThisProperty/";if(t?.kind===64)return"TypeOnlyAlias/"}function ELe(t,n,a,c,u,_,f,y,g,k,T,C,O,F,M,U,J,G,Z,Q,re,ae,_e,me,le,Oe=!1){let be=Ml(),ue=Kgr(c,u),De=eQ(f),Ce=g.getTypeChecker(),Ae=new Map;for(let de=0;de_t.getSourceFile()===u.getSourceFile()));Ae.set(ve,ke),vm(n,It,Bae,void 0,!0)}return T("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Ml()-be)),{has:de=>Ae.has(de),add:de=>Ae.set(de,!0)};function Fe(de,ze){var ut;let je=de.flags;if(u.parent&&Xu(u.parent))return!0;if(ue&&Ci(ue,Oo)&&(de.valueDeclaration===ue||$s(ue.name)&&ue.name.elements.some(Ve=>Ve===de.valueDeclaration)))return!1;let ve=de.valueDeclaration??((ut=de.declarations)==null?void 0:ut[0]);if(ue&&ve){if(wa(ue)&&wa(ve)){let Ve=ue.parent.parameters;if(ve.pos>=ue.pos&&ve.pos=ue.pos&&ve.posbLe(a,f,Q)===u.name);return Z!==void 0?{type:"literal",literal:Z}:Je(k,(Q,re)=>{let ae=F[re],_e=ebe(Q,$c(y),ae,O,g.isJsxIdentifierExpected);return _e&&_e.name===u.name&&(u.source==="ClassMemberSnippet/"&&Q.flags&106500||u.source==="ObjectLiteralMethodSnippet/"&&Q.flags&8196||TLe(ae)===u.source||u.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:Q,location:C,origin:ae,contextToken:M,previousToken:U,isJsxInitializer:J,isTypeOnlyLocation:G}:void 0})||{type:"none"}}function Pgr(t,n,a,c,u,_,f,y,g){let k=t.getTypeChecker(),T=t.getCompilerOptions(),{name:C,source:O,data:F}=u,{previousToken:M,contextToken:U}=YSe(c,a);if(jF(a,c,M))return abe.getStringLiteralCompletionDetails(C,a,c,M,t,_,g,y);let J=VSt(t,n,a,c,u,_,y);switch(J.type){case"request":{let{request:G}=J;switch(G.kind){case 1:return VA.getJSDocTagNameCompletionDetails(C);case 2:return VA.getJSDocTagCompletionDetails(C);case 3:return VA.getJSDocParameterNameCompletionDetails(C);case 4:return Pt(G.keywordCompletions,Z=>Z.name===C)?kLe(C,"keyword",5):void 0;default:return $.assertNever(G)}}case"symbol":{let{symbol:G,location:Z,contextToken:Q,origin:re,previousToken:ae}=J,{codeActions:_e,sourceDisplay:me}=Ngr(C,Z,Q,re,G,t,_,T,a,c,ae,f,y,F,O,g),le=vLe(re)?re.symbolName:G.name;return CLe(G,le,k,a,Z,g,_e,me)}case"literal":{let{literal:G}=J;return kLe(bLe(a,y,G),"string",typeof G=="string"?8:7)}case"cases":{let G=zSt(U.parent,a,y,t.getCompilerOptions(),_,t,void 0);if(G?.importAdder.hasFixes()){let{entry:Z,importAdder:Q}=G,re=ki.ChangeTracker.with({host:_,formatContext:f,preferences:y},Q.writeFixes);return{name:Z.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:re,description:FP([x.Includes_imports_of_types_referenced_by_0,C])}]}}return{name:C,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return KSt().some(G=>G.name===C)?kLe(C,"keyword",5):void 0;default:$.assertNever(J)}}function kLe(t,n,a){return $ae(t,"",n,[hg(t,a)])}function CLe(t,n,a,c,u,_,f,y){let{displayParts:g,documentation:k,symbolKind:T,tags:C}=a.runWithCancellationToken(_,O=>wE.getSymbolDisplayPartsDocumentationAndSymbolKind(O,t,c,u,u,7));return $ae(n,wE.getSymbolModifiers(a,t),T,g,k,C,f,y)}function $ae(t,n,a,c,u,_,f,y){return{name:t,kindModifiers:n,kind:a,displayParts:c,documentation:u,tags:_,codeActions:f,source:y,sourceDisplay:y}}function Ngr(t,n,a,c,u,_,f,y,g,k,T,C,O,F,M,U){if(F?.moduleSpecifier&&T&&nbt(a||T,g).replacementSpan)return{codeActions:void 0,sourceDisplay:[Vy(F.moduleSpecifier)]};if(M==="ClassMemberSnippet/"){let{importAdder:_e,eraseRange:me}=qSt(f,_,y,O,t,u,n,k,a,C);if(_e?.hasFixes()||me)return{sourceDisplay:void 0,codeActions:[{changes:ki.ChangeTracker.with({host:f,formatContext:C,preferences:O},Oe=>{_e&&_e.writeFixes(Oe),me&&Oe.deleteRange(g,me)}),description:_e?.hasFixes()?FP([x.Includes_imports_of_types_referenced_by_0,t]):FP([x.Update_modifiers_of_0,t])}]}}if(OSt(c)){let _e=Im.getPromoteTypeOnlyCompletionAction(g,c.declaration.name,_,f,C,O);return $.assertIsDefined(_e,"Expected to have a code action for promoting type-only alias"),{codeActions:[_e],sourceDisplay:void 0}}if(M==="ObjectLiteralMemberWithComma/"&&a){let _e=ki.ChangeTracker.with({host:f,formatContext:C,preferences:O},me=>me.insertText(g,a.end,","));if(_e)return{sourceDisplay:void 0,codeActions:[{changes:_e,description:FP([x.Add_missing_comma_for_object_member_completion_0,t])}]}}if(!c||!(jae(c)||fq(c)))return{codeActions:void 0,sourceDisplay:void 0};let J=c.isFromPackageJson?f.getPackageJsonAutoImportProvider().getTypeChecker():_.getTypeChecker(),{moduleSymbol:G}=c,Z=J.getMergedSymbol($f(u.exportSymbol||u,J)),Q=a?.kind===30&&Em(a.parent),{moduleSpecifier:re,codeAction:ae}=Im.getImportCompletionAction(Z,G,F?.exportMapKey,g,t,Q,f,_,C,T&&ct(T)?T.getStart(g):k,O,U);return $.assert(!F?.moduleSpecifier||re===F.moduleSpecifier),{sourceDisplay:[Vy(re)],codeActions:[ae]}}function Ogr(t,n,a,c,u,_,f){let y=VSt(t,n,a,c,u,_,f);return y.type==="symbol"?y.symbol:void 0}var WSt=(t=>(t[t.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",t[t.Global=1]="Global",t[t.PropertyAccess=2]="PropertyAccess",t[t.MemberLike=3]="MemberLike",t[t.String=4]="String",t[t.None=5]="None",t))(WSt||{});function Fgr(t,n,a){return Je(n&&(n.isUnion()?n.types:[n]),c=>{let u=c&&c.symbol;return u&&u.flags&424&&!v4e(u)?DLe(u,t,a):void 0})}function Rgr(t,n,a,c){let{parent:u}=t;switch(t.kind){case 80:return Xoe(t,c);case 64:switch(u.kind){case 261:return c.getContextualType(u.initializer);case 227:return c.getTypeAtLocation(u.left);case 292:return c.getContextualTypeForJsxAttribute(u);default:return}case 105:return c.getContextualType(u);case 84:let _=Ci(u,bL);return _?bve(_,c):void 0;case 19:return SL(u)&&!PS(u.parent)&&!DA(u.parent)?c.getContextualTypeForJsxAttribute(u.parent):void 0;default:let f=AQ.getArgumentInfoForCompletions(t,n,a,c);return f?c.getContextualTypeForArgumentAtIndex(f.invocation,f.argumentIndex):Yoe(t.kind)&&wi(u)&&Yoe(u.operatorToken.kind)?c.getTypeAtLocation(u.left):c.getContextualType(t,4)||c.getContextualType(t)}}function DLe(t,n,a){let c=a.getAccessibleSymbolChain(t,n,-1,!1);return c?To(c):t.parent&&(Lgr(t.parent)?t:DLe(t.parent,n,a))}function Lgr(t){var n;return!!((n=t.declarations)!=null&&n.some(a=>a.kind===308))}function GSt(t,n,a,c,u,_,f,y,g,k){let T=t.getTypeChecker(),C=USt(a,c),O=Ml(),F=la(a,u);n("getCompletionData: Get current token: "+(Ml()-O)),O=Ml();let M=EE(a,u,F);n("getCompletionData: Is inside comment: "+(Ml()-O));let U=!1,J=!1,G=!1;if(M){if(u7e(a,u)){if(a.text.charCodeAt(u-1)===64)return{kind:1};{let Mt=p1(u,a);if(!/[^*|\s(/)]/.test(a.text.substring(Mt,u)))return{kind:2}}}let Ge=$gr(F,u);if(Ge){if(Ge.tagName.pos<=u&&u<=Ge.tagName.end)return{kind:1};if(OS(Ge))J=!0;else{let Mt=nn(Ge);if(Mt&&(F=la(a,u),(!F||!Eb(F)&&(F.parent.kind!==349||F.parent.name!==F))&&(U=mr(Mt))),!U&&Uy(Ge)&&(Op(Ge.name)||Ge.name.pos<=u&&u<=Ge.name.end))return{kind:3,tag:Ge}}}if(!U&&!J){n("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}O=Ml();let Z=!U&&!J&&ph(a),Q=YSe(u,a),re=Q.previousToken,ae=Q.contextToken;n("getCompletionData: Get previous token: "+(Ml()-O));let _e=F,me,le=!1,Oe=!1,be=!1,ue=!1,De=!1,Ce=!1,Ae,Fe=Vh(a,u),Be=0,de=!1,ze=0,ut;if(ae){let Ge=nbt(ae,a);if(Ge.keywordCompletion){if(Ge.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[pgr(Ge.keywordCompletion)],isNewIdentifierLocation:Ge.isNewIdentifierLocation};Be=dgr(Ge.keywordCompletion)}if(Ge.replacementSpan&&_.includeCompletionsForImportStatements&&_.includeCompletionsWithInsertText&&(ze|=2,Ae=Ge,de=Ge.isNewIdentifierLocation),!Ge.replacementSpan&&Ls(ae))return n("Returning an empty list because completion was requested in an invalid position."),Be?BSt(Be,Z,Cn().isNewIdentifierLocation):void 0;let Mt=ae.parent;if(ae.kind===25||ae.kind===29)switch(le=ae.kind===25,Oe=ae.kind===29,Mt.kind){case 212:me=Mt,_e=me.expression;let Ir=oL(me);if(Op(Ir)||(Js(_e)||Rs(_e))&&_e.end===ae.pos&&_e.getChildCount(a)&&Sn(_e.getChildren(a)).kind!==22)return;break;case 167:_e=Mt.left;break;case 268:_e=Mt.name;break;case 206:_e=Mt;break;case 237:_e=Mt.getFirstToken(a),$.assert(_e.kind===102||_e.kind===105);break;default:return}else if(!Ae){if(Mt&&Mt.kind===212&&(ae=Mt,Mt=Mt.parent),F.parent===Fe)switch(F.kind){case 32:(F.parent.kind===285||F.parent.kind===287)&&(Fe=F);break;case 44:F.parent.kind===286&&(Fe=F);break}switch(Mt.kind){case 288:ae.kind===44&&(ue=!0,Fe=ae);break;case 227:if(!rbt(Mt))break;case 286:case 285:case 287:Ce=!0,ae.kind===30&&(be=!0,Fe=ae);break;case 295:case 294:(re.kind===20||re.kind===80&&re.parent.kind===292)&&(Ce=!0);break;case 292:if(Mt.initializer===re&&re.endBA(Ge?y.getPackageJsonAutoImportProvider():t,y));if(le||Oe)Nn();else if(be)Ve=T.getJsxIntrinsicTagNamesAt(Fe),$.assertEachIsDefined(Ve,"getJsxIntrinsicTagNames() should all be defined"),Ko(),ve=1,Be=0;else if(ue){let Ge=ae.parent.parent.openingElement.tagName,Mt=T.getSymbolAtLocation(Ge);Mt&&(Ve=[Mt]),ve=1,Be=0}else if(!Ko())return Be?BSt(Be,Z,de):void 0;n("getCompletionData: Semantic work: "+(Ml()-je));let Qe=re&&Rgr(re,u,a,T),St=!Ci(re,Sl)&&!Ce?Wn(Qe&&(Qe.isUnion()?Qe.types:[Qe]),Ge=>Ge.isLiteral()&&!(Ge.flags&1024)?Ge.value:void 0):[],Kt=re&&Qe&&Fgr(re,Qe,T);return{kind:0,symbols:Ve,completionKind:ve,isInSnippetScope:G,propertyAccessToConvert:me,isNewIdentifierLocation:de,location:Fe,keywordFilters:Be,literals:St,symbolToOriginInfoMap:It,recommendedCompletion:Kt,previousToken:re,contextToken:ae,isJsxInitializer:De,insideJsDocTagTypeExpression:U,symbolToSortTextMap:ke,isTypeOnlyLocation:Se,isJsxIdentifierExpected:Ce,isRightOfOpenTag:be,isRightOfDotOrQuestionDot:le||Oe,importStatementCompletion:Ae,hasUnresolvedAutoImports:Le,flags:ze,defaultCommitCharacters:ut};function Sr(Ge){switch(Ge.kind){case 342:case 349:case 343:case 345:case 347:case 350:case 351:return!0;case 346:return!!Ge.constraint;default:return!1}}function nn(Ge){if(Sr(Ge)){let Mt=c1(Ge)?Ge.constraint:Ge.typeExpression;return Mt&&Mt.kind===310?Mt:void 0}if(EF(Ge)||Zne(Ge))return Ge.class}function Nn(){ve=2;let Ge=jT(_e),Mt=Ge&&!_e.isTypeOf||vS(_e.parent)||JK(ae,a,T),Ir=woe(_e);if(uh(_e)||Ge||no(_e)){let ii=I_(_e.parent);ii&&(de=!0,ut=[]);let Rn=T.getSymbolAtLocation(_e);if(Rn&&(Rn=$f(Rn,T),Rn.flags&1920)){let zn=T.getExportsOfModule(Rn);$.assertEachIsDefined(zn,"getExportsOfModule() should all be defined");let Rt=wr=>T.isValidPropertyAccess(Ge?_e:_e.parent,wr.name),rr=wr=>wLe(wr,T),_r=ii?wr=>{var pn;return!!(wr.flags&1920)&&!((pn=wr.declarations)!=null&&pn.every(tn=>tn.parent===_e.parent))}:Ir?(wr=>rr(wr)||Rt(wr)):Mt||U?rr:Rt;for(let wr of zn)_r(wr)&&Ve.push(wr);if(!Mt&&!U&&Rn.declarations&&Rn.declarations.some(wr=>wr.kind!==308&&wr.kind!==268&&wr.kind!==267)){let wr=T.getTypeOfSymbolAtLocation(Rn,_e).getNonOptionalType(),pn=!1;if(wr.isNullableType()){let tn=le&&!Oe&&_.includeAutomaticOptionalChainCompletions!==!1;(tn||Oe)&&(wr=wr.getNonNullableType(),tn&&(pn=!0))}$t(wr,!!(_e.flags&65536),pn)}return}}if(!Mt||KO(_e)){T.tryGetThisTypeAt(_e,!1);let ii=T.getTypeAtLocation(_e).getNonOptionalType();if(Mt)$t(ii.getNonNullableType(),!1,!1);else{let Rn=!1;if(ii.isNullableType()){let zn=le&&!Oe&&_.includeAutomaticOptionalChainCompletions!==!1;(zn||Oe)&&(ii=ii.getNonNullableType(),zn&&(Rn=!0))}$t(ii,!!(_e.flags&65536),Rn)}}}function $t(Ge,Mt,Ir){Ge.getStringIndexType()&&(de=!0,ut=[]),Oe&&Pt(Ge.getCallSignatures())&&(de=!0,ut??(ut=MS));let ii=_e.kind===206?_e:_e.parent;if(C)for(let Rn of Ge.getApparentProperties())T.isValidPropertyAccessForCompletions(ii,Ge,Rn)&&Dr(Rn,!1,Ir);else Ve.push(...yr(ibe(Ge,T),Rn=>T.isValidPropertyAccessForCompletions(ii,Ge,Rn)));if(Mt&&_.includeCompletionsWithInsertText){let Rn=T.getPromisedTypeOfPromise(Ge);if(Rn)for(let zn of Rn.getApparentProperties())T.isValidPropertyAccessForCompletions(ii,Rn,zn)&&Dr(zn,!0,Ir)}}function Dr(Ge,Mt,Ir){var ii;let Rn=Je(Ge.declarations,_r=>Ci(cs(_r),dc));if(Rn){let _r=Qn(Rn.expression),wr=_r&&T.getSymbolAtLocation(_r),pn=wr&&DLe(wr,ae,T),tn=pn&&hc(pn);if(tn&&o1(_t,tn)){let lr=Ve.length;Ve.push(pn),ke[hc(pn)]=om.GlobalsOrKeywords;let cn=pn.parent;if(!cn||!LO(cn)||T.tryGetMemberInModuleExportsAndProperties(pn.name,cn)!==pn)It[lr]={kind:rr(2)};else{let gn=vt(i1(cn.name))?(ii=yG(cn))==null?void 0:ii.fileName:void 0,{moduleSpecifier:bn}=(nt||(nt=Im.createImportSpecifierResolver(a,t,y,_))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:gn,isFromPackageJson:!1,moduleSymbol:cn,symbol:pn,targetFlags:$f(pn,T).flags}],u,yA(Fe))||{};if(bn){let $r={kind:rr(6),moduleSymbol:cn,isDefaultExport:!1,symbolName:pn.name,exportName:pn.name,fileName:gn,moduleSpecifier:bn};It[lr]=$r}}}else if(_.includeCompletionsWithInsertText){if(tn&&_t.has(tn))return;Rt(Ge),zn(Ge),Ve.push(Ge)}}else Rt(Ge),zn(Ge),Ve.push(Ge);function zn(_r){Wgr(_r)&&(ke[hc(_r)]=om.LocalDeclarationPriority)}function Rt(_r){_.includeCompletionsWithInsertText&&(Mt&&o1(_t,hc(_r))?It[Ve.length]={kind:rr(8)}:Ir&&(It[Ve.length]={kind:16}))}function rr(_r){return Ir?_r|16:_r}}function Qn(Ge){return ct(Ge)?Ge:no(Ge)?Qn(Ge.expression):void 0}function Ko(){return(Dt()||ur()||uo()||Ee()||Bt()||ye()||is()||et()||sr()||(Wa(),1))===1}function is(){return Ot(ae)?(ve=5,de=!0,Be=4,1):0}function sr(){let Ge=at(ae),Mt=Ge&&T.getContextualType(Ge.attributes);if(!Mt)return 0;let Ir=Ge&&T.getContextualType(Ge.attributes,4);return Ve=go(Ve,Gt(nbe(Mt,Ir,Ge.attributes,T),Ge.attributes.properties)),Ne(),ve=3,de=!1,1}function uo(){return Ae?(de=!0,Wr(),1):0}function Wa(){Be=ar(ae)?5:1,ve=1,{isNewIdentifierLocation:de,defaultCommitCharacters:ut}=Cn(),re!==ae&&$.assert(!!re,"Expected 'contextToken' to be defined when different from 'previousToken'.");let Ge=re!==ae?re.getStart():u,Mt=ya(ae,Ge,a)||a;G=Oi(Mt);let Ir=(Se?0:111551)|788968|1920|2097152,ii=re&&!yA(re);Ve=go(Ve,T.getSymbolsInScope(Mt,Ir)),$.assertEachIsDefined(Ve,"getSymbolsInScope() should all be defined");for(let Rn=0;RnRt.getSourceFile()===a)&&(ke[hc(zn)]=om.GlobalsOrKeywords),ii&&!(zn.flags&111551)){let Rt=zn.declarations&&wt(zn.declarations,OR);if(Rt){let rr={kind:64,declaration:Rt};It[Rn]=rr}}}if(_.includeCompletionsWithInsertText&&Mt.kind!==308){let Rn=T.tryGetThisTypeAt(Mt,!1,Co(Mt.parent)?Mt:void 0);if(Rn&&!Vgr(Rn,a,T))for(let zn of ibe(Rn,T))It[Ve.length]={kind:1},Ve.push(zn),ke[hc(zn)]=om.SuggestedClassMembers}Wr(),Se&&(Be=ae&&ZI(ae.parent)?6:7)}function oo(){var Ge;return Ae?!0:_.includeCompletionsForModuleExports?a.externalModuleIndicator||a.commonJsModuleIndicator||ive(t.getCompilerOptions())?!0:((Ge=t.getSymlinkCache)==null?void 0:Ge.call(t).hasAnySymlinks())||!!t.getCompilerOptions().paths||h7e(t):!1}function Oi(Ge){switch(Ge.kind){case 308:case 229:case 295:case 242:return!0;default:return fa(Ge)}}function $o(){return U||J||!!Ae&&cE(Fe.parent)||!ft(ae)&&(JK(ae,a,T)||vS(Fe)||Ht(ae))}function ft(Ge){return Ge&&(Ge.kind===114&&(Ge.parent.kind===187||hL(Ge.parent))||Ge.kind===131&&Ge.parent.kind===183)}function Ht(Ge){if(Ge){let Mt=Ge.parent.kind;switch(Ge.kind){case 59:return Mt===173||Mt===172||Mt===170||Mt===261||NO(Mt);case 64:return Mt===266||Mt===169;case 130:return Mt===235;case 30:return Mt===184||Mt===217;case 96:return Mt===169;case 152:return Mt===239}}return!1}function Wr(){var Ge,Mt;if(!oo()||($.assert(!f?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),f&&!f.source))return;ze|=1;let ii=re===ae&&Ae?"":re&&ct(re)?re.text.toLowerCase():"",Rn=(Ge=y.getModuleSpecifierCache)==null?void 0:Ge.call(y),zn=oQ(a,y,t,_,k),Rt=(Mt=y.getPackageJsonAutoImportProvider)==null?void 0:Mt.call(y),rr=f?void 0:tM(a,_,y);RSt("collectAutoImports",y,nt||(nt=Im.createImportSpecifierResolver(a,t,y,_)),t,u,_,!!Ae,yA(Fe),wr=>{zn.search(a.path,be,(pn,tn)=>{if(!Jd(pn,$c(y.getCompilationSettings()))||!f&&HO(pn)||!Se&&!Ae&&!(tn&111551)||Se&&!(tn&790504))return!1;let lr=pn.charCodeAt(0);return be&&(lr<65||lr>90)?!1:f?!0:cbt(pn,ii)},(pn,tn,lr,cn)=>{if(f&&!Pt(pn,ec=>f.source===i1(ec.moduleSymbol.name))||(pn=yr(pn,_r),!pn.length))return;let gn=wr.tryResolve(pn,lr)||{};if(gn==="failed")return;let bn=pn[0],$r;gn!=="skipped"&&({exportInfo:bn=pn[0],moduleSpecifier:$r}=gn);let Uo=bn.exportKind===1,Ys=Uo&&RU($.checkDefined(bn.symbol))||$.checkDefined(bn.symbol);ai(Ys,{kind:$r?32:4,moduleSpecifier:$r,symbolName:tn,exportMapKey:cn,exportName:bn.exportKind===2?"export=":$.checkDefined(bn.symbol).name,fileName:bn.moduleFileName,isDefaultExport:Uo,moduleSymbol:bn.moduleSymbol,isFromPackageJson:bn.isFromPackageJson})}),Le=wr.skippedAny(),ze|=wr.resolvedAny()?8:0,ze|=wr.resolvedBeyondLimit()?16:0});function _r(wr){return Fve(wr.isFromPackageJson?Rt:t,a,Ci(wr.moduleSymbol.valueDeclaration,Ta),wr.moduleSymbol,_,rr,tt(wr.isFromPackageJson),Rn)}}function ai(Ge,Mt){let Ir=hc(Ge);ke[Ir]!==om.GlobalsOrKeywords&&(It[Ve.length]=Mt,ke[Ir]=Ae?om.LocationPriority:om.AutoImportSuggestions,Ve.push(Ge))}function vo(Ge,Mt){Ei(Fe)||Ge.forEach(Ir=>{if(!Eo(Ir))return;let ii=ebe(Ir,$c(c),void 0,0,!1);if(!ii)return;let{name:Rn}=ii,zn=Egr(Ir,Rn,Mt,t,y,c,_,g);if(!zn)return;let Rt={kind:128,...zn};ze|=32,It[Ve.length]=Rt,Ve.push(Ir)})}function Eo(Ge){return!!(Ge.flags&8196)}function ya(Ge,Mt,Ir){let ii=Ge;for(;ii&&!q1e(ii,Mt,Ir);)ii=ii.parent;return ii}function Ls(Ge){let Mt=Ml(),Ir=Es(Ge)||Qt(Ge)||xr(Ge)||yc(Ge)||dL(Ge);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(Ml()-Mt)),Ir}function yc(Ge){if(Ge.kind===12)return!0;if(Ge.kind===32&&Ge.parent){if(Fe===Ge.parent&&(Fe.kind===287||Fe.kind===286))return!1;if(Ge.parent.kind===287)return Fe.parent.kind!==287;if(Ge.parent.kind===288||Ge.parent.kind===286)return!!Ge.parent.parent&&Ge.parent.parent.kind===285}return!1}function Cn(){if(ae){let Ge=ae.parent.kind,Mt=rbe(ae);switch(Mt){case 28:switch(Ge){case 214:case 215:{let Ir=ae.parent.expression;return qs(a,Ir.end).line!==qs(a,u).line?{defaultCommitCharacters:KSe,isNewIdentifierLocation:!0}:{defaultCommitCharacters:MS,isNewIdentifierLocation:!0}}case 227:return{defaultCommitCharacters:KSe,isNewIdentifierLocation:!0};case 177:case 185:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 210:return{defaultCommitCharacters:MS,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:MS,isNewIdentifierLocation:!1}}case 21:switch(Ge){case 214:case 215:{let Ir=ae.parent.expression;return qs(a,Ir.end).line!==qs(a,u).line?{defaultCommitCharacters:KSe,isNewIdentifierLocation:!0}:{defaultCommitCharacters:MS,isNewIdentifierLocation:!0}}case 218:return{defaultCommitCharacters:KSe,isNewIdentifierLocation:!0};case 177:case 197:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:MS,isNewIdentifierLocation:!1}}case 23:switch(Ge){case 210:case 182:case 190:case 168:return{defaultCommitCharacters:MS,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:MS,isNewIdentifierLocation:!1}}case 144:case 145:case 102:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 25:return Ge===268?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:MS,isNewIdentifierLocation:!1};case 19:switch(Ge){case 264:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:MS,isNewIdentifierLocation:!1}}case 64:switch(Ge){case 261:case 227:return{defaultCommitCharacters:MS,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:MS,isNewIdentifierLocation:!1}}case 16:return{defaultCommitCharacters:MS,isNewIdentifierLocation:Ge===229};case 17:return{defaultCommitCharacters:MS,isNewIdentifierLocation:Ge===240};case 134:return Ge===175||Ge===305?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:MS,isNewIdentifierLocation:!1};case 42:return Ge===175?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:MS,isNewIdentifierLocation:!1}}if(Uae(Mt))return{defaultCommitCharacters:[],isNewIdentifierLocation:!0}}return{defaultCommitCharacters:MS,isNewIdentifierLocation:!1}}function Es(Ge){return(kge(Ge)||ime(Ge))&&(zK(Ge,u)||u===Ge.end&&(!!Ge.isUnterminated||kge(Ge)))}function Dt(){let Ge=qgr(ae);if(!Ge)return 0;let Ir=(vF(Ge.parent)?Ge.parent:void 0)||Ge,ii=tbt(Ir,T);if(!ii)return 0;let Rn=T.getTypeFromTypeNode(Ir),zn=ibe(ii,T),Rt=ibe(Rn,T),rr=new Set;return Rt.forEach(_r=>rr.add(_r.escapedName)),Ve=go(Ve,yr(zn,_r=>!rr.has(_r.escapedName))),ve=0,de=!0,1}function ur(){if(ae?.kind===26)return 0;let Ge=Ve.length,Mt=Mgr(ae,u,a);if(!Mt)return 0;ve=0;let Ir,ii;if(Mt.kind===211){let Rn=Ggr(Mt,T);if(Rn===void 0)return Mt.flags&67108864?2:0;let zn=T.getContextualType(Mt,4),Rt=(zn||Rn).getStringIndexType(),rr=(zn||Rn).getNumberIndexType();if(de=!!Rt||!!rr,Ir=nbe(Rn,zn,Mt,T),ii=Mt.properties,Ir.length===0&&!rr)return 0}else{$.assert(Mt.kind===207),de=!1;let Rn=bS(Mt.parent);if(!_U(Rn))return $.fail("Root declaration is not variable-like.");let zn=lE(Rn)||!!X_(Rn)||Rn.parent.parent.kind===251;if(!zn&&Rn.kind===170&&(Vt(Rn.parent)?zn=!!T.getContextualType(Rn.parent):(Rn.parent.kind===175||Rn.parent.kind===179)&&(zn=Vt(Rn.parent.parent)&&!!T.getContextualType(Rn.parent.parent))),zn){let Rt=T.getTypeAtLocation(Mt);if(!Rt)return 2;Ir=T.getPropertiesOfType(Rt).filter(rr=>T.isPropertyAccessible(Mt,!1,!1,Rt,rr)),ii=Mt.elements}}if(Ir&&Ir.length>0){let Rn=Ye(Ir,$.checkDefined(ii));Ve=go(Ve,Rn),Ne(),Mt.kind===211&&_.includeCompletionsWithObjectLiteralMethodSnippets&&_.includeCompletionsWithInsertText&&(ot(Ge),vo(Rn,Mt))}return 1}function Ee(){if(!ae)return 0;let Ge=ae.kind===19||ae.kind===28?Ci(ae.parent,tne):Joe(ae)?Ci(ae.parent.parent,tne):void 0;if(!Ge)return 0;Joe(ae)||(Be=8);let{moduleSpecifier:Mt}=Ge.kind===276?Ge.parent.parent:Ge.parent;if(!Mt)return de=!0,Ge.kind===276?2:0;let Ir=T.getSymbolAtLocation(Mt);if(!Ir)return de=!0,2;ve=3,de=!1;let ii=T.getExportsAndPropertiesOfModule(Ir),Rn=new Set(Ge.elements.filter(Rt=>!mr(Rt)).map(Rt=>YI(Rt.propertyName||Rt.name))),zn=ii.filter(Rt=>Rt.escapedName!=="default"&&!Rn.has(Rt.escapedName));return Ve=go(Ve,zn),zn.length||(Be=0),1}function Bt(){if(ae===void 0)return 0;let Ge=ae.kind===19||ae.kind===28?Ci(ae.parent,l3):ae.kind===59?Ci(ae.parent.parent,l3):void 0;if(Ge===void 0)return 0;let Mt=new Set(Ge.elements.map(Cne));return Ve=yr(T.getTypeAtLocation(Ge).getApparentProperties(),Ir=>!Mt.has(Ir.escapedName)),1}function ye(){var Ge;let Mt=ae&&(ae.kind===19||ae.kind===28)?Ci(ae.parent,k0):void 0;if(!Mt)return 0;let Ir=fn(Mt,jf(Ta,I_));return ve=5,de=!1,(Ge=Ir.locals)==null||Ge.forEach((ii,Rn)=>{var zn,Rt;Ve.push(ii),(Rt=(zn=Ir.symbol)==null?void 0:zn.exports)!=null&&Rt.has(Rn)&&(ke[hc(ii)]=om.OptionalMember)}),1}function et(){let Ge=zgr(a,ae,Fe,u);if(!Ge)return 0;if(ve=3,de=!0,Be=ae.kind===42?0:Co(Ge)?2:3,!Co(Ge))return 1;let Mt=ae.kind===27?ae.parent.parent:ae.parent,Ir=J_(Mt)?tm(Mt):0;if(ae.kind===80&&!mr(ae))switch(ae.getText()){case"private":Ir=Ir|2;break;case"static":Ir=Ir|256;break;case"override":Ir=Ir|16;break}if(n_(Mt)&&(Ir|=256),!(Ir&2)){let ii=Co(Ge)&&Ir&16?Z2(vv(Ge)):EU(Ge),Rn=an(ii,zn=>{let Rt=T.getTypeAtLocation(zn);return Ir&256?Rt?.symbol&&T.getPropertiesOfType(T.getTypeOfSymbolAtLocation(Rt.symbol,Ge)):Rt&&T.getPropertiesOfType(Rt)});Ve=go(Ve,pe(Rn,Ge.members,Ir)),X(Ve,(zn,Rt)=>{let rr=zn?.valueDeclaration;if(rr&&J_(rr)&&rr.name&&dc(rr.name)){let _r={kind:512,symbolName:T.symbolToString(zn)};It[Rt]=_r}})}return 1}function Ct(Ge){return!!Ge.parent&&wa(Ge.parent)&&kp(Ge.parent.parent)&&(iU(Ge.kind)||Eb(Ge))}function Ot(Ge){if(Ge){let Mt=Ge.parent;switch(Ge.kind){case 21:case 28:return kp(Ge.parent)?Ge.parent:void 0;default:if(Ct(Ge))return Mt.parent}}}function ar(Ge){if(Ge){let Mt,Ir=fn(Ge.parent,ii=>Co(ii)?"quit":lu(ii)&&Mt===ii.body?!0:(Mt=ii,!1));return Ir&&Ir}}function at(Ge){if(Ge){let Mt=Ge.parent;switch(Ge.kind){case 32:case 31:case 44:case 80:case 212:case 293:case 292:case 294:if(Mt&&(Mt.kind===286||Mt.kind===287)){if(Ge.kind===32){let Ir=vd(Ge.pos,a,void 0);if(!Mt.typeArguments||Ir&&Ir.kind===44)break}return Mt}else if(Mt.kind===292)return Mt.parent.parent;break;case 11:if(Mt&&(Mt.kind===292||Mt.kind===294))return Mt.parent.parent;break;case 20:if(Mt&&Mt.kind===295&&Mt.parent&&Mt.parent.kind===292)return Mt.parent.parent.parent;if(Mt&&Mt.kind===294)return Mt.parent.parent;break}}}function Zt(Ge,Mt){return a.getLineEndOfPosition(Ge.getEnd())=Ge.pos;case 25:return Ir===208;case 59:return Ir===209;case 23:return Ir===208;case 21:return Ir===300||Et(Ir);case 19:return Ir===267;case 30:return Ir===264||Ir===232||Ir===265||Ir===266||NO(Ir);case 126:return Ir===173&&!Co(Mt.parent);case 26:return Ir===170||!!Mt.parent&&Mt.parent.kind===208;case 125:case 123:case 124:return Ir===170&&!kp(Mt.parent);case 130:return Ir===277||Ir===282||Ir===275;case 139:case 153:return!obe(Ge);case 80:{if((Ir===277||Ir===282)&&Ge===Mt.name&&Ge.text==="type"||fn(Ge.parent,Oo)&&Zt(Ge,u))return!1;break}case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return Ir!==277;case 42:return Rs(Ge.parent)&&!Ep(Ge.parent)}if(Uae(rbe(Ge))&&obe(Ge)||Ct(Ge)&&(!ct(Ge)||iU(rbe(Ge))||mr(Ge)))return!1;switch(rbe(Ge)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return ps(Ge.parent)}if(fn(Ge.parent,Co)&&Ge===re&&pr(Ge,u))return!1;let Rn=mA(Ge.parent,173);if(Rn&&Ge!==re&&Co(re.parent.parent)&&u<=re.end){if(pr(Ge,re.end))return!1;if(Ge.kind!==64&&(mK(Rn)||Qte(Rn)))return!0}return Eb(Ge)&&!im(Ge.parent)&&!NS(Ge.parent)&&!((Co(Ge.parent)||Af(Ge.parent)||Zu(Ge.parent))&&(Ge!==re||u>re.end))}function pr(Ge,Mt){return Ge.kind!==64&&(Ge.kind===27||!v0(Ge.end,Mt,a))}function Et(Ge){return NO(Ge)&&Ge!==177}function xr(Ge){if(Ge.kind===9){let Mt=Ge.getFullText();return Mt.charAt(Mt.length-1)==="."}return!1}function gi(Ge){return Ge.parent.kind===262&&!JK(Ge,a,T)}function Ye(Ge,Mt){if(Mt.length===0)return Ge;let Ir=new Set,ii=new Set;for(let zn of Mt){if(zn.kind!==304&&zn.kind!==305&&zn.kind!==209&&zn.kind!==175&&zn.kind!==178&&zn.kind!==179&&zn.kind!==306||mr(zn))continue;let Rt;if(qx(zn))er(zn,Ir);else if(Vc(zn)&&zn.propertyName)zn.propertyName.kind===80&&(Rt=zn.propertyName.escapedText);else{let rr=cs(zn);Rt=rr&&SS(rr)?DU(rr):void 0}Rt!==void 0&&ii.add(Rt)}let Rn=Ge.filter(zn=>!ii.has(zn.escapedName));return Y(Ir,Rn),Rn}function er(Ge,Mt){let Ir=Ge.expression,ii=T.getSymbolAtLocation(Ir),Rn=ii&&T.getTypeOfSymbolAtLocation(ii,Ir),zn=Rn&&Rn.properties;zn&&zn.forEach(Rt=>{Mt.add(Rt.name)})}function Ne(){Ve.forEach(Ge=>{if(Ge.flags&16777216){let Mt=hc(Ge);ke[Mt]=ke[Mt]??om.OptionalMember}})}function Y(Ge,Mt){if(Ge.size!==0)for(let Ir of Mt)Ge.has(Ir.name)&&(ke[hc(Ir)]=om.MemberDeclaredBySpreadAssignment)}function ot(Ge){for(let Mt=Ge;Mt!ii.has(Rn.escapedName)&&!!Rn.declarations&&!(S0(Rn)&2)&&!(Rn.valueDeclaration&&Tm(Rn.valueDeclaration)))}function Gt(Ge,Mt){let Ir=new Set,ii=new Set;for(let zn of Mt)mr(zn)||(zn.kind===292?Ir.add(YU(zn.name)):TF(zn)&&er(zn,ii));let Rn=Ge.filter(zn=>!Ir.has(zn.escapedName));return Y(ii,Rn),Rn}function mr(Ge){return Ge.getStart(a)<=u&&u<=Ge.getEnd()}}function Mgr(t,n,a){var c;if(t){let{parent:u}=t;switch(t.kind){case 19:case 28:if(Lc(u)||$y(u))return u;break;case 42:return Ep(u)?Ci(u.parent,Lc):void 0;case 134:return Ci(u.parent,Lc);case 80:if(t.text==="async"&&im(t.parent))return t.parent.parent;{if(Lc(t.parent.parent)&&(qx(t.parent)||im(t.parent)&&qs(a,t.getEnd()).line!==qs(a,n).line))return t.parent.parent;let f=fn(u,td);if(f?.getLastToken(a)===t&&Lc(f.parent))return f.parent}break;default:if((c=u.parent)!=null&&c.parent&&(Ep(u.parent)||T0(u.parent)||mg(u.parent))&&Lc(u.parent.parent))return u.parent.parent;if(qx(u)&&Lc(u.parent))return u.parent;let _=fn(u,td);if(t.kind!==59&&_?.getLastToken(a)===t&&Lc(_.parent))return _.parent}}}function YSe(t,n){let a=vd(t,n);return a&&t<=a.end&&(Dx(a)||Uh(a.kind))?{contextToken:vd(a.getFullStart(),n,void 0),previousToken:a}:{contextToken:a,previousToken:a}}function HSt(t,n,a,c){let u=n.isPackageJsonImport?c.getPackageJsonAutoImportProvider():a,_=u.getTypeChecker(),f=n.ambientModuleName?_.tryFindAmbientModule(n.ambientModuleName):n.fileName?_.getMergedSymbol($.checkDefined(u.getSourceFile(n.fileName)).symbol):void 0;if(!f)return;let y=n.exportName==="export="?_.resolveExternalModuleSymbol(f):_.tryGetMemberInModuleExportsAndProperties(n.exportName,f);return y?(y=n.exportName==="default"&&RU(y)||y,{symbol:y,origin:Cgr(n,t,f)}):void 0}function ebe(t,n,a,c,u){if(sgr(a))return;let _=ngr(a)?a.symbolName:t.name;if(_===void 0||t.flags&1536&&MG(_.charCodeAt(0))||AU(t))return;let f={name:_,needsConvertPropertyAccess:!1};if(Jd(_,n,u?1:0)||t.valueDeclaration&&Tm(t.valueDeclaration))return f;if(t.flags&2097152)return{name:_,needsConvertPropertyAccess:!0};switch(c){case 3:return vLe(a)?{name:a.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(_),needsConvertPropertyAccess:!1};case 2:case 1:return _.charCodeAt(0)===32?void 0:{name:_,needsConvertPropertyAccess:!0};case 5:case 4:return f;default:$.assertNever(c)}}var tbe=[],KSt=Ef(()=>{let t=[];for(let n=83;n<=166;n++)t.push({name:Zs(n),kind:"keyword",kindModifiers:"",sortText:om.GlobalsOrKeywords});return t});function QSt(t,n){if(!n)return ZSt(t);let a=t+8+1;return tbe[a]||(tbe[a]=ZSt(t).filter(c=>!jgr(kx(c.name))))}function ZSt(t){return tbe[t]||(tbe[t]=KSt().filter(n=>{let a=kx(n.name);switch(t){case 0:return!1;case 1:return YSt(a)||a===138||a===144||a===156||a===145||a===128||Qz(a)&&a!==157;case 5:return YSt(a);case 2:return Uae(a);case 3:return XSt(a);case 4:return iU(a);case 6:return Qz(a)||a===87;case 7:return Qz(a);case 8:return a===156;default:return $.assertNever(t)}}))}function jgr(t){switch(t){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function XSt(t){return t===148}function Uae(t){switch(t){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return ome(t)}}function YSt(t){return t===134||t===135||t===160||t===130||t===152||t===156||!Ore(t)&&!Uae(t)}function rbe(t){return ct(t)?aA(t)??0:t.kind}function Bgr(t,n){let a=[];if(t){let c=t.getSourceFile(),u=t.parent,_=c.getLineAndCharacterOfPosition(t.end).line,f=c.getLineAndCharacterOfPosition(n).line;(fp(u)||P_(u)&&u.moduleSpecifier)&&t===u.moduleSpecifier&&_===f&&a.push({name:Zs(132),kind:"keyword",kindModifiers:"",sortText:om.GlobalsOrKeywords})}return a}function $gr(t,n){return fn(t,a=>MR(a)&&HL(a,n)?!0:kv(a)?"quit":!1)}function nbe(t,n,a,c){let u=n&&n!==t,_=c.getUnionType(yr(t.flags&1048576?t.types:[t],k=>!c.getPromisedTypeOfPromise(k))),f=u&&!(n.flags&3)?c.getUnionType([_,n]):_,y=Ugr(f,a,c);return f.isClass()&&ebt(y)?[]:u?yr(y,g):y;function g(k){return te(k.declarations)?Pt(k.declarations,T=>T.parent!==a):!0}}function Ugr(t,n,a){return t.isUnion()?a.getAllPossiblePropertiesOfTypes(yr(t.types,c=>!(c.flags&402784252||a.isArrayLikeType(c)||a.isTypeInvalidDueToUnionDiscriminant(c,n)||a.typeHasCallOrConstructSignatures(c)||c.isClass()&&ebt(c.getApparentProperties())))):t.getApparentProperties()}function ebt(t){return Pt(t,n=>!!(S0(n)&6))}function ibe(t,n){return t.isUnion()?$.checkEachDefined(n.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):$.checkEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function zgr(t,n,a,c){switch(a.kind){case 353:return Ci(a.parent,eF);case 1:let u=Ci(Yr(Ba(a.parent,Ta).statements),eF);if(u&&!Kl(u,20,t))return u;break;case 81:if(Ci(a.parent,ps))return fn(a,Co);break;case 80:{if(aA(a)||ps(a.parent)&&a.parent.initializer===a)return;if(obe(a))return fn(a,eF)}}if(n){if(a.kind===137||ct(n)&&ps(n.parent)&&Co(a))return fn(n,Co);switch(n.kind){case 64:return;case 27:case 20:return obe(a)&&a.parent.name===a?a.parent.parent:Ci(a,eF);case 19:case 28:return Ci(n.parent,eF);default:if(eF(a)){if(qs(t,n.getEnd()).line!==qs(t,c).line)return a;let u=Co(n.parent.parent)?Uae:XSt;return u(n.kind)||n.kind===42||ct(n)&&u(aA(n)??0)?n.parent.parent:void 0}return}}}function qgr(t){if(!t)return;let n=t.parent;switch(t.kind){case 19:if(fh(n))return n;break;case 27:case 28:case 80:if(n.kind===172&&fh(n.parent))return n.parent;break}}function tbt(t,n){if(!t)return;if(Wo(t)&&Zte(t.parent))return n.getTypeArgumentConstraint(t);let a=tbt(t.parent,n);if(a)switch(t.kind){case 172:return n.getTypeOfPropertyOfContextualType(a,t.symbol.escapedName);case 194:case 188:case 193:return a}}function obe(t){return t.parent&&qte(t.parent)&&eF(t.parent.parent)}function Jgr(t,n,a,c){switch(n){case".":case"@":return!0;case'"':case"'":case"`":return!!a&&P7e(a)&&c===a.getStart(t)+1;case"#":return!!a&&Aa(a)&&!!Cf(a);case"<":return!!a&&a.kind===30&&(!wi(a.parent)||rbt(a.parent));case"/":return!!a&&(Sl(a)?!!qG(a):a.kind===44&&bP(a.parent));case" ":return!!a&&sz(a)&&a.parent.kind===308;default:return $.assertNever(n)}}function rbt({left:t}){return Op(t)}function Vgr(t,n,a){let c=a.resolveName("self",void 0,111551,!1);if(c&&a.getTypeOfSymbolAtLocation(c,n)===t)return!0;let u=a.resolveName("global",void 0,111551,!1);if(u&&a.getTypeOfSymbolAtLocation(u,n)===t)return!0;let _=a.resolveName("globalThis",void 0,111551,!1);return!!(_&&a.getTypeOfSymbolAtLocation(_,n)===t)}function Wgr(t){return!!(t.valueDeclaration&&tm(t.valueDeclaration)&256&&Co(t.valueDeclaration.parent))}function Ggr(t,n){let a=n.getContextualType(t);if(a)return a;let c=V1(t.parent);if(wi(c)&&c.operatorToken.kind===64&&t===c.left)return n.getTypeAtLocation(c);if(Vt(c))return n.getContextualType(c)}function nbt(t,n){var a,c,u;let _,f=!1,y=g();return{isKeywordOnlyCompletion:f,keywordCompletion:_,isNewIdentifierLocation:!!(y||_===156),isTopLevelTypeOnly:!!((c=(a=Ci(y,fp))==null?void 0:a.importClause)!=null&&c.isTypeOnly)||!!((u=Ci(y,gd))!=null&&u.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!y&&obt(y,t),replacementSpan:Hgr(y)};function g(){let k=t.parent;if(gd(k)){let T=k.getLastToken(n);if(ct(t)&&T!==t){_=161,f=!0;return}return _=t.kind===156?void 0:156,ALe(k.moduleReference)?k:void 0}if(obt(k,t)&&abt(k.parent))return k;if(IS(k)||zx(k)){if(!k.parent.isTypeOnly&&(t.kind===19||t.kind===102||t.kind===28)&&(_=156),abt(k))if(t.kind===20||t.kind===80)f=!0,_=161;else return k.parent.parent;return}if(P_(k)&&t.kind===42||k0(k)&&t.kind===20){f=!0,_=161;return}if(sz(t)&&Ta(k))return _=156,t;if(sz(t)&&fp(k))return _=156,ALe(k.moduleSpecifier)?k:void 0}}function Hgr(t){var n;if(!t)return;let a=fn(t,jf(fp,gd,OS))??t,c=a.getSourceFile();if(Z4(a,c))return yh(a,c);$.assert(a.kind!==102&&a.kind!==277);let u=a.kind===273||a.kind===352?ibt((n=a.importClause)==null?void 0:n.namedBindings)??a.moduleSpecifier:a.moduleReference,_={pos:a.getFirstToken().getStart(),end:u.pos};if(Z4(_,c))return CE(_)}function ibt(t){var n;return wt((n=Ci(t,IS))==null?void 0:n.elements,a=>{var c;return!a.propertyName&&HO(a.name.text)&&((c=vd(a.name.pos,t.getSourceFile(),t))==null?void 0:c.kind)!==28})}function obt(t,n){return Xm(t)&&(t.isTypeOnly||n===t.name&&Joe(n))}function abt(t){if(!ALe(t.parent.parent.moduleSpecifier)||t.parent.name)return!1;if(IS(t)){let n=ibt(t);return(n?t.elements.indexOf(n):t.elements.length)<2}return!0}function ALe(t){var n;return Op(t)?!0:!((n=Ci(WT(t)?t.expression:t,Sl))!=null&&n.text)}function Kgr(t,n){if(!t)return;let a=fn(t,c=>tP(c)||sbt(c)||$s(c)?"quit":(wa(c)||Zu(c))&&!vC(c.parent));return a||(a=fn(n,c=>tP(c)||sbt(c)||$s(c)?"quit":Oo(c))),a}function Qgr(t){if(!t)return!1;let n=t,a=t.parent;for(;a;){if(Zu(a))return a.default===n||n.kind===64;n=a,a=a.parent}return!1}function sbt(t){return t.parent&&Iu(t.parent)&&(t.parent.body===t||t.kind===39)}function wLe(t,n,a=new Set){return c(t)||c($f(t.exportSymbol||t,n));function c(u){return!!(u.flags&788968)||n.isUnknownSymbol(u)||!!(u.flags&1536)&&o1(a,u)&&n.getExportsOfModule(u).some(_=>wLe(_,n,a))}}function Zgr(t,n){let a=$f(t,n).declarations;return!!te(a)&&ht(a,aae)}function cbt(t,n){if(n.length===0)return!0;let a=!1,c,u=0,_=t.length;for(let f=0;f<_;f++){let y=t.charCodeAt(f),g=n.charCodeAt(u);if((y===g||y===Xgr(g))&&(a||(a=c===void 0||97<=c&&c<=122&&65<=y&&y<=90||c===95&&y!==95),a&&u++,u===n.length))return!0;c=y}return!1}function Xgr(t){return 97<=t&&t<=122?t-32:t}function Ygr(t){return t==="abstract"||t==="async"||t==="await"||t==="declare"||t==="module"||t==="namespace"||t==="type"||t==="satisfies"||t==="as"}var abe={};d(abe,{getStringLiteralCompletionDetails:()=>ryr,getStringLiteralCompletions:()=>eyr});var lbt={directory:0,script:1,"external module name":2};function ILe(){let t=new Map;function n(a){let c=t.get(a.name);(!c||lbt[c.kind]({name:kb(F.value,C),kindModifiers:"",kind:"string",sortText:om.LocationPriority,replacementSpan:Y1e(n,g),commitCharacters:[]}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,optionalReplacementSpan:T,entries:O,defaultCommitCharacters:D3(t.isNewIdentifier)}}default:return $.assertNever(t)}}function ryr(t,n,a,c,u,_,f,y){if(!c||!Sl(c))return;let g=_bt(n,c,a,u,_,y);return g&&nyr(t,c,g,n,u.getTypeChecker(),f)}function nyr(t,n,a,c,u,_){switch(a.kind){case 0:{let f=wt(a.paths,y=>y.name===t);return f&&$ae(t,pbt(f.extension),f.kind,[Vy(t)])}case 1:{let f=wt(a.symbols,y=>y.name===t);return f&&CLe(f,f.name,u,c,n,_)}case 2:return wt(a.types,f=>f.value===t)?$ae(t,"","string",[Vy(t)]):void 0;default:return $.assertNever(a)}}function ubt(t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:t.map(({name:u,kind:_,span:f,extension:y})=>({name:u,kind:_,kindModifiers:pbt(y),sortText:om.LocationPriority,replacementSpan:f})),defaultCommitCharacters:D3(!0)}}function pbt(t){switch(t){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return $.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return $.assertNever(t)}}function _bt(t,n,a,c,u,_){let f=c.getTypeChecker(),y=PLe(n.parent);switch(y.kind){case 202:{let re=PLe(y.parent);return re.kind===206?{kind:0,paths:mbt(t,n,c,u,_)}:g(re)}case 304:return Lc(y.parent)&&y.name===n?ayr(f,y.parent):k()||k(0);case 213:{let{expression:re,argumentExpression:ae}=y;return n===bl(ae)?dbt(f.getTypeAtLocation(re)):void 0}case 214:case 215:case 292:if(!xyr(n)&&!Bh(y)){let re=AQ.getArgumentInfoForCompletions(y.kind===292?y.parent:n,a,t,f);return re&&oyr(re.invocation,n,re,f)||k(0)}case 273:case 279:case 284:case 352:return{kind:0,paths:mbt(t,n,c,u,_)};case 297:let T=lae(f,y.parent.clauses),C=k();return C?{kind:2,types:C.types.filter(re=>!T.hasValue(re.value)),isNewIdentifier:!1}:void 0;case 277:case 282:let F=y;if(F.propertyName&&n!==F.propertyName)return;let M=F.parent,{moduleSpecifier:U}=M.kind===276?M.parent.parent:M.parent;if(!U)return;let J=f.getSymbolAtLocation(U);if(!J)return;let G=f.getExportsAndPropertiesOfModule(J),Z=new Set(M.elements.map(re=>YI(re.propertyName||re.name)));return{kind:1,symbols:G.filter(re=>re.escapedName!=="default"&&!Z.has(re.escapedName)),hasIndexSignature:!1};case 227:if(y.operatorToken.kind===103){let re=f.getTypeAtLocation(y.right);return{kind:1,symbols:(re.isUnion()?f.getAllPossiblePropertiesOfTypes(re.types):re.getApparentProperties()).filter(_e=>!_e.valueDeclaration||!Tm(_e.valueDeclaration)),hasIndexSignature:!1}}return k(0);default:return k()||k(0)}function g(T){switch(T.kind){case 234:case 184:{let F=fn(y,M=>M.parent===T);return F?{kind:2,types:sbe(f.getTypeArgumentConstraint(F)),isNewIdentifier:!1}:void 0}case 200:let{indexType:C,objectType:O}=T;return HL(C,a)?dbt(f.getTypeFromTypeNode(O)):void 0;case 193:{let F=g(PLe(T.parent));if(!F)return;let M=iyr(T,y);return F.kind===1?{kind:1,symbols:F.symbols.filter(U=>!un(M,U.name)),hasIndexSignature:F.hasIndexSignature}:{kind:2,types:F.types.filter(U=>!un(M,U.value)),isNewIdentifier:!1}}default:return}}function k(T=4){let C=sbe(Xoe(n,f,T));if(C.length)return{kind:2,types:C,isNewIdentifier:!1}}}function PLe(t){switch(t.kind){case 197:return HG(t);case 218:return V1(t);default:return t}}function iyr(t,n){return Wn(t.types,a=>a!==n&&bE(a)&&Ic(a.literal)?a.literal.text:void 0)}function oyr(t,n,a,c){let u=!1,_=new Set,f=Em(t)?$.checkDefined(fn(n.parent,NS)):n,y=c.getCandidateSignaturesForStringLiteralCompletions(t,f),g=an(y,k=>{if(!Am(k)&&a.argumentCount>k.parameters.length)return;let T=k.getTypeParameterAtPosition(a.argumentIndex);if(Em(t)){let C=c.getTypeOfPropertyOfType(T,DH(f.name));C&&(T=C)}return u=u||!!(T.flags&4),sbe(T,_)});return te(g)?{kind:2,types:g,isNewIdentifier:u}:void 0}function dbt(t){return t&&{kind:1,symbols:yr(t.getApparentProperties(),n=>!(n.valueDeclaration&&Tm(n.valueDeclaration))),hasIndexSignature:Sve(t)}}function ayr(t,n){let a=t.getContextualType(n);if(!a)return;let c=t.getContextualType(n,4);return{kind:1,symbols:nbe(a,c,n,t),hasIndexSignature:Sve(a)}}function sbe(t,n=new Set){return t?(t=nve(t),t.isUnion()?an(t.types,a=>sbe(a,n)):t.isStringLiteral()&&!(t.flags&1024)&&o1(n,t.value)?[t]:j):j}function mq(t,n,a){return{name:t,kind:n,extension:a}}function NLe(t){return mq(t,"directory",void 0)}function fbt(t,n,a){let c=yyr(t,n),u=t.length===0?void 0:Jp(n,t.length);return a.map(({name:_,kind:f,extension:y})=>_.includes(Gl)||_.includes(x4)?{name:_,kind:f,extension:y,span:u}:{name:_,kind:f,extension:y,span:c})}function mbt(t,n,a,c,u){return fbt(n.text,n.getStart(t)+1,syr(t,n,a,c,u))}function syr(t,n,a,c,u){let _=Z_(n.text),f=Sl(n)?a.getModeForUsageLocation(t,n):void 0,y=t.path,g=mo(y),k=a.getCompilerOptions(),T=a.getTypeChecker(),C=BA(a,c),O=OLe(k,1,t,T,u,f);return vyr(_)||!k.baseUrl&&!k.paths&&(qd(_)||TR(_))?cyr(_,g,a,c,C,y,O):_yr(_,g,f,a,c,C,O)}function OLe(t,n,a,c,u,_){return{extensionsToSearch:Rc(lyr(t,c)),referenceKind:n,importingSourceFile:a,endingPreference:u?.importModuleSpecifierEnding,resolutionMode:_}}function cyr(t,n,a,c,u,_,f){let y=a.getCompilerOptions();return y.rootDirs?pyr(y.rootDirs,t,n,f,a,c,u,_):so(xQ(t,n,f,a,c,u,!0,_).values())}function lyr(t,n){let a=n?Wn(n.getAmbientModules(),_=>{let f=_.name.slice(1,-1);if(!(!f.startsWith("*.")||f.includes("/")))return f.slice(1)}):[],c=[...qU(t),a],u=km(t);return Voe(u)?SH(t,c):c}function uyr(t,n,a,c){t=t.map(_=>r_(Qs(qd(_)?_:Xi(n,_))));let u=Je(t,_=>ug(_,a,n,c)?a.substr(_.length):void 0);return rf([...t.map(_=>Xi(_,u)),a].map(_=>dv(_)),qm,Su)}function pyr(t,n,a,c,u,_,f,y){let k=u.getCompilerOptions().project||_.getCurrentDirectory(),T=!(_.useCaseSensitiveFileNames&&_.useCaseSensitiveFileNames()),C=uyr(t,k,a,T);return rf(an(C,O=>so(xQ(n,O,c,u,_,f,!0,y).values())),(O,F)=>O.name===F.name&&O.kind===F.kind&&O.extension===F.extension)}function xQ(t,n,a,c,u,_,f,y,g=ILe()){var k;t===void 0&&(t=""),t=Z_(t),uS(t)||(t=mo(t)),t===""&&(t="."+Gl),t=r_(t);let T=mb(n,t),C=uS(T)?T:mo(T);if(!f){let U=R7e(C,u);if(U){let G=nL(U,u).typesVersions;if(typeof G=="object"){let Z=(k=Eie(G))==null?void 0:k.paths;if(Z){let Q=mo(U),re=T.slice(r_(Q).length);if(gbt(g,re,Q,a,c,u,_,Z))return g}}}}let O=!(u.useCaseSensitiveFileNames&&u.useCaseSensitiveFileNames());if(!rae(u,C))return g;let F=Tve(u,C,a.extensionsToSearch,void 0,["./*"]);if(F)for(let U of F){if(U=Qs(U),y&&M1(U,y,n,O)===0)continue;let{name:J,extension:G}=hbt(t_(U),c,a,!1);g.add(mq(J,"script",G))}let M=tae(u,C);if(M)for(let U of M){let J=t_(Qs(U));J!=="@types"&&g.add(NLe(J))}return g}function hbt(t,n,a,c){let u=QT.tryGetRealFileNameForNonJsDeclarationFileName(t);if(u)return{name:u,extension:Bx(u)};if(a.referenceKind===0)return{name:t,extension:Bx(t)};let _=QT.getModuleSpecifierPreferences({importModuleSpecifierEnding:a.endingPreference},n,n.getCompilerOptions(),a.importingSourceFile).getAllowedEndingsInPreferredOrder(a.resolutionMode);if(c&&(_=_.filter(y=>y!==0&&y!==1)),_[0]===3){if(_p(t,vH))return{name:t,extension:Bx(t)};let y=QT.tryGetJSExtensionForFile(t,n.getCompilerOptions());return y?{name:hE(t,y),extension:y}:{name:t,extension:Bx(t)}}if(!c&&(_[0]===0||_[0]===1)&&_p(t,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Qm(t),extension:Bx(t)};let f=QT.tryGetJSExtensionForFile(t,n.getCompilerOptions());return f?{name:hE(t,f),extension:f}:{name:t,extension:Bx(t)}}function gbt(t,n,a,c,u,_,f,y){let g=T=>y[T],k=(T,C)=>{let O=oF(T),F=oF(C),M=typeof O=="object"?O.prefix.length:T.length,U=typeof F=="object"?F.prefix.length:C.length;return Br(U,M)};return ybt(t,!1,!1,n,a,c,u,_,f,Lu(y),g,k)}function ybt(t,n,a,c,u,_,f,y,g,k,T,C){let O=[],F;for(let M of k){if(M===".")continue;let U=M.replace(/^\.\//,"")+((n||a)&&au(M,"/")?"*":""),J=T(M);if(J){let G=oF(U);if(!G)continue;let Z=typeof G=="object"&&L1(G,c);Z&&(F===void 0||C(U,F)===-1)&&(F=U,O=O.filter(re=>!re.matchedPattern)),(typeof G=="string"||F===void 0||C(U,F)!==1)&&O.push({matchedPattern:Z,results:dyr(U,J,c,u,_,n,a,f,y,g).map(({name:re,kind:ae,extension:_e})=>mq(re,ae,_e))})}}return O.forEach(M=>M.results.forEach(U=>t.add(U))),F!==void 0}function _yr(t,n,a,c,u,_,f){let y=c.getTypeChecker(),g=c.getCompilerOptions(),{baseUrl:k,paths:T}=g,C=ILe(),O=km(g);if(k){let U=Qs(Xi(u.getCurrentDirectory(),k));xQ(t,U,f,c,u,_,!1,void 0,C)}if(T){let U=Ure(g,u);gbt(C,t,U,f,c,u,_,T)}let F=Sbt(t);for(let U of myr(t,F,y))C.add(mq(U,"external module name",void 0));if(Tbt(c,u,_,n,F,f,C),Voe(O)){let U=!1;if(F===void 0)for(let J of gyr(u,n)){let G=mq(J,"external module name",void 0);C.has(G.name)||(U=!0,C.add(G))}if(!U){let J=fH(g),G=mH(g),Z=!1,Q=ae=>{if(G&&!Z){let _e=Xi(ae,"package.json");if(Z=iq(u,_e)){let me=nL(_e,u);M(me.imports,t,ae,!1,!0)}}},re=ae=>{let _e=Xi(ae,"node_modules");rae(u,_e)&&xQ(t,_e,f,c,u,_,!1,void 0,C),Q(ae)};if(F&&J){let ae=re;re=_e=>{let me=Cd(t);me.shift();let le=me.shift();if(!le)return ae(_e);if(Ca(le,"@")){let ue=me.shift();if(!ue)return ae(_e);le=Xi(le,ue)}if(G&&Ca(le,"#"))return Q(_e);let Oe=Xi(_e,"node_modules",le),be=Xi(Oe,"package.json");if(iq(u,be)){let ue=nL(be,u),De=me.join("/")+(me.length&&uS(t)?"/":"");M(ue.exports,De,Oe,!0,!1);return}return ae(_e)}}Ab(u,n,re)}}return so(C.values());function M(U,J,G,Z,Q){if(typeof U!="object"||U===null)return;let re=Lu(U),ae=EC(g,a);ybt(C,Z,Q,J,G,f,c,u,_,re,_e=>{let me=vbt(U[_e],ae);if(me!==void 0)return Z2(au(_e,"/")&&au(me,"/")?me+"*":me)},Mye)}}function vbt(t,n){if(typeof t=="string")return t;if(t&&typeof t=="object"&&!Zn(t)){for(let a in t)if(a==="default"||n.includes(a)||uK(n,a)){let c=t[a];return vbt(c,n)}}}function Sbt(t){return FLe(t)?uS(t)?t:mo(t):void 0}function dyr(t,n,a,c,u,_,f,y,g,k){let T=oF(t);if(!T)return j;if(typeof T=="string")return O(t,"script");let C=Y8(a,T.prefix);if(C===void 0)return au(t,"/*")?O(T.prefix,"directory"):an(n,M=>{var U;return(U=bbt("",c,M,u,_,f,y,g,k))==null?void 0:U.map(({name:J,...G})=>({name:T.prefix+J+T.suffix,...G}))});return an(n,F=>bbt(C,c,F,u,_,f,y,g,k));function O(F,M){return Ca(F,a)?[{name:dv(F),kind:M,extension:void 0}]:j}}function bbt(t,n,a,c,u,_,f,y,g){if(!y.readDirectory)return;let k=oF(a);if(k===void 0||Ni(k))return;let T=mb(k.prefix),C=uS(k.prefix)?T:mo(T),O=uS(k.prefix)?"":t_(T),F=FLe(t),M=F?uS(t)?t:mo(t):void 0,U=()=>g.getCommonSourceDirectory(),J=!K4(g),G=f.getCompilerOptions().outDir,Z=f.getCompilerOptions().declarationDir,Q=F?Xi(C,O+M):C,re=Qs(Xi(n,Q)),ae=_&&G&&fhe(re,J,G,U),_e=_&&Z&&fhe(re,J,Z,U),me=Qs(k.suffix),le=me&&$re("_"+me),Oe=me?dhe("_"+me):void 0,be=[le&&hE(me,le),...Oe?Oe.map(de=>hE(me,de)):[],me].filter(Ni),ue=me?be.map(de=>"**/*"+de):["./*"],De=(u||_)&&au(a,"/*"),Ce=Ae(re);return ae&&(Ce=go(Ce,Ae(ae))),_e&&(Ce=go(Ce,Ae(_e))),me||(Ce=go(Ce,Fe(re)),ae&&(Ce=go(Ce,Fe(ae))),_e&&(Ce=go(Ce,Fe(_e)))),Ce;function Ae(de){let ze=F?de:r_(de)+O;return Wn(Tve(y,de,c.extensionsToSearch,void 0,ue),ut=>{let je=Be(ut,ze);if(je){if(FLe(je))return NLe(Cd(xbt(je))[1]);let{name:ve,extension:Le}=hbt(je,f,c,De);return mq(ve,"script",Le)}})}function Fe(de){return Wn(tae(y,de),ze=>ze==="node_modules"?void 0:NLe(ze))}function Be(de,ze){return Je(be,ut=>{let je=fyr(Qs(de),ze,ut);return je===void 0?void 0:xbt(je)})}}function fyr(t,n,a){return Ca(t,n)&&au(t,a)?t.slice(n.length,t.length-a.length):void 0}function xbt(t){return t[0]===Gl?t.slice(1):t}function myr(t,n,a){let u=a.getAmbientModules().map(_=>i1(_.name)).filter(_=>Ca(_,t)&&!_.includes("*"));if(n!==void 0){let _=r_(n);return u.map(f=>Mk(f,_))}return u}function hyr(t,n,a,c,u){let _=a.getCompilerOptions(),f=la(t,n),y=my(t.text,f.pos),g=y&&wt(y,J=>n>=J.pos&&n<=J.end);if(!g)return;let k=t.text.slice(g.pos,n),T=Syr.exec(k);if(!T)return;let[,C,O,F]=T,M=mo(t.path),U=O==="path"?xQ(F,M,OLe(_,0,t),a,c,u,!0,t.path):O==="types"?Tbt(a,c,u,M,Sbt(F),OLe(_,1,t)):$.fail();return fbt(F,g.pos+C.length,so(U.values()))}function Tbt(t,n,a,c,u,_,f=ILe()){let y=t.getCompilerOptions(),g=new Map,k=nae(()=>Tz(y,n))||j;for(let C of k)T(C);for(let C of Eve(c,n)){let O=Xi(mo(C),"node_modules/@types");T(O)}return f;function T(C){if(rae(n,C))for(let O of tae(n,C)){let F=pK(O);if(!(y.types&&!un(y.types,F)))if(u===void 0)g.has(F)||(f.add(mq(F,"external module name",void 0)),g.set(F,!0));else{let M=Xi(C,O),U=qhe(u,F,UT(n));U!==void 0&&xQ(U,M,_,t,n,a,!1,void 0,f)}}}}function gyr(t,n){if(!t.readFile||!t.fileExists)return j;let a=[];for(let c of Eve(n,t)){let u=nL(c,t);for(let _ of byr){let f=u[_];if(f)for(let y in f)Ho(f,y)&&!Ca(y,"@types/")&&a.push(y)}}return a}function yyr(t,n){let a=Math.max(t.lastIndexOf(Gl),t.lastIndexOf(x4)),c=a!==-1?a+1:0,u=t.length-c;return u===0||Jd(t.substr(c,u),99)?void 0:Jp(n+c,u)}function vyr(t){if(t&&t.length>=2&&t.charCodeAt(0)===46){let n=t.length>=3&&t.charCodeAt(1)===46?2:1,a=t.charCodeAt(n);return a===47||a===92}return!1}var Syr=/^(\/\/\/\s*QF,DefinitionKind:()=>Ibt,EntryKind:()=>Pbt,ExportKind:()=>Ebt,FindReferencesUse:()=>Nbt,ImportExport:()=>kbt,createImportTracker:()=>RLe,findModuleReferences:()=>Cbt,findReferenceOrRenameEntries:()=>Lyr,findReferencedSymbols:()=>Oyr,getContextNode:()=>A3,getExportInfo:()=>LLe,getImplementationsAtPosition:()=>Ryr,getImportOrExportSymbol:()=>wbt,getReferenceEntriesForNode:()=>Fbt,isContextWithStartAndEndNode:()=>jLe,isDeclarationOfSymbol:()=>Bbt,isWriteAccessForReference:()=>$Le,toContextSpan:()=>BLe,toHighlightSpan:()=>qyr,toReferenceEntry:()=>Mbt,toRenameLocation:()=>jyr});function RLe(t,n,a,c){let u=Cyr(t,a,c);return(_,f,y)=>{let{directImports:g,indirectUsers:k}=Tyr(t,n,u,f,a,c);return{indirectUsers:k,...Eyr(g,_,f.exportKind,a,y)}}}var Ebt=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t))(Ebt||{}),kbt=(t=>(t[t.Import=0]="Import",t[t.Export=1]="Export",t))(kbt||{});function Tyr(t,n,a,{exportingModuleSymbol:c,exportKind:u},_,f){let y=QL(),g=QL(),k=[],T=!!c.globalExports,C=T?void 0:[];return F(c),{directImports:k,indirectUsers:O()};function O(){if(T)return t;if(c.declarations)for(let Q of c.declarations)eP(Q)&&n.has(Q.getSourceFile().fileName)&&G(Q);return C.map(Pn)}function F(Q){let re=Z(Q);if(re){for(let ae of re)if(y(ae))switch(f&&f.throwIfCancellationRequested(),ae.kind){case 214:if(Bh(ae)){M(ae);break}if(!T){let me=ae.parent;if(u===2&&me.kind===261){let{name:le}=me;if(le.kind===80){k.push(le);break}}}break;case 80:break;case 272:J(ae,ae.name,ko(ae,32),!1);break;case 273:case 352:k.push(ae);let _e=ae.importClause&&ae.importClause.namedBindings;_e&&_e.kind===275?J(ae,_e.name,!1,!0):!T&&W4(ae)&&G(zae(ae));break;case 279:ae.exportClause?ae.exportClause.kind===281?G(zae(ae),!0):k.push(ae):F(Pyr(ae,_));break;case 206:!T&&ae.isTypeOf&&!ae.qualifier&&U(ae)&&G(ae.getSourceFile(),!0),k.push(ae);break;default:$.failBadSyntaxKind(ae,"Unexpected import kind.")}}}function M(Q){let re=fn(Q,cbe)||Q.getSourceFile();G(re,!!U(Q,!0))}function U(Q,re=!1){return fn(Q,ae=>re&&cbe(ae)?"quit":l1(ae)&&Pt(ae.modifiers,fF))}function J(Q,re,ae,_e){if(u===2)_e||k.push(Q);else if(!T){let me=zae(Q);$.assert(me.kind===308||me.kind===268),ae||kyr(me,re,_)?G(me,!0):G(me)}}function G(Q,re=!1){if($.assert(!T),!g(Q)||(C.push(Q),!re))return;let _e=_.getMergedSymbol(Q.symbol);if(!_e)return;$.assert(!!(_e.flags&1536));let me=Z(_e);if(me)for(let le of me)AS(le)||G(zae(le),!0)}function Z(Q){return a.get(hc(Q).toString())}}function Eyr(t,n,a,c,u){let _=[],f=[];function y(O,F){_.push([O,F])}if(t)for(let O of t)g(O);return{importSearches:_,singleReferences:f};function g(O){if(O.kind===272){MLe(O)&&k(O.name);return}if(O.kind===80){k(O);return}if(O.kind===206){if(O.qualifier){let U=_h(O.qualifier);U.escapedText===vp(n)&&f.push(U)}else a===2&&f.push(O.argument.literal);return}if(O.moduleSpecifier.kind!==11)return;if(O.kind===279){O.exportClause&&k0(O.exportClause)&&T(O.exportClause);return}let{name:F,namedBindings:M}=O.importClause||{name:void 0,namedBindings:void 0};if(M)switch(M.kind){case 275:k(M.name);break;case 276:(a===0||a===1)&&T(M);break;default:$.assertNever(M)}if(F&&(a===1||a===2)&&(!u||F.escapedText===Woe(n))){let U=c.getSymbolAtLocation(F);y(F,U)}}function k(O){a===2&&(!u||C(O.escapedText))&&y(O,c.getSymbolAtLocation(O))}function T(O){if(O)for(let F of O.elements){let{name:M,propertyName:U}=F;if(C(YI(U||M)))if(U)f.push(U),(!u||YI(M)===n.escapedName)&&y(M,c.getSymbolAtLocation(M));else{let J=F.kind===282&&F.propertyName?c.getExportSpecifierLocalTargetSymbol(F):c.getSymbolAtLocation(M);y(M,J)}}}function C(O){return O===n.escapedName||a!==0&&O==="default"}}function kyr(t,n,a){let c=a.getSymbolAtLocation(n);return!!Dbt(t,u=>{if(!P_(u))return;let{exportClause:_,moduleSpecifier:f}=u;return!f&&_&&k0(_)&&_.elements.some(y=>a.getExportSpecifierLocalTargetSymbol(y)===c)})}function Cbt(t,n,a){var c;let u=[],_=t.getTypeChecker();for(let f of n){let y=a.valueDeclaration;if(y?.kind===308){for(let g of f.referencedFiles)t.getSourceFileFromReference(f,g)===y&&u.push({kind:"reference",referencingFile:f,ref:g});for(let g of f.typeReferenceDirectives){let k=(c=t.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(g,f))==null?void 0:c.resolvedTypeReferenceDirective;k!==void 0&&k.resolvedFileName===y.fileName&&u.push({kind:"reference",referencingFile:f,ref:g})}}Abt(f,(g,k)=>{_.getSymbolAtLocation(k)===a&&u.push(fu(g)?{kind:"implicit",literal:k,referencingFile:f}:{kind:"import",literal:k})})}return u}function Cyr(t,n,a){let c=new Map;for(let u of t)a&&a.throwIfCancellationRequested(),Abt(u,(_,f)=>{let y=n.getSymbolAtLocation(f);if(y){let g=hc(y).toString(),k=c.get(g);k||c.set(g,k=[]),k.push(_)}});return c}function Dbt(t,n){return X(t.kind===308?t.statements:t.body.statements,a=>n(a)||cbe(a)&&X(a.body&&a.body.statements,n))}function Abt(t,n){if(t.externalModuleIndicator||t.imports!==void 0)for(let a of t.imports)n(bU(a),a);else Dbt(t,a=>{switch(a.kind){case 279:case 273:{let c=a;c.moduleSpecifier&&Ic(c.moduleSpecifier)&&n(c,c.moduleSpecifier);break}case 272:{let c=a;MLe(c)&&n(c,c.moduleReference.expression);break}}})}function wbt(t,n,a,c){return c?u():u()||_();function u(){var g;let{parent:k}=t,T=k.parent;if(n.exportSymbol)return k.kind===212?(g=n.declarations)!=null&&g.some(F=>F===k)&&wi(T)?O(T,!1):void 0:f(n.exportSymbol,y(k));{let F=Ayr(k,t);if(F&&ko(F,32))return gd(F)&&F.moduleReference===t?c?void 0:{kind:0,symbol:a.getSymbolAtLocation(F.name)}:f(n,y(F));if(Db(k))return f(n,0);if(Xu(k))return C(k);if(Xu(T))return C(T);if(wi(k))return O(k,!0);if(wi(T))return O(T,!0);if(_3(k)||Mge(k))return f(n,0)}function C(F){if(!F.symbol.parent)return;let M=F.isExportEquals?2:1;return{kind:1,symbol:n,exportInfo:{exportingModuleSymbol:F.symbol.parent,exportKind:M}}}function O(F,M){let U;switch(m_(F)){case 1:U=0;break;case 2:U=2;break;default:return}let J=M?a.getSymbolAtLocation(Rhe(Ba(F.left,wu))):n;return J&&f(J,U)}}function _(){if(!wyr(t))return;let k=a.getImmediateAliasedSymbol(n);if(!k||(k=Iyr(k,a),k.escapedName==="export="&&(k=Dyr(k,a),k===void 0)))return;let T=Woe(k);if(T===void 0||T==="default"||T===n.escapedName)return{kind:0,symbol:k}}function f(g,k){let T=LLe(g,k,a);return T&&{kind:1,symbol:g,exportInfo:T}}function y(g){return ko(g,2048)?1:0}}function Dyr(t,n){var a,c;if(t.flags&2097152)return n.getImmediateAliasedSymbol(t);let u=$.checkDefined(t.valueDeclaration);if(Xu(u))return(a=Ci(u.expression,gv))==null?void 0:a.symbol;if(wi(u))return(c=Ci(u.right,gv))==null?void 0:c.symbol;if(Ta(u))return u.symbol}function Ayr(t,n){let a=Oo(t)?t:Vc(t)?Pr(t):void 0;return a?t.name!==n||TP(a.parent)?void 0:h_(a.parent.parent)?a.parent.parent:void 0:t}function wyr(t){let{parent:n}=t;switch(n.kind){case 272:return n.name===t&&MLe(n);case 277:return!n.propertyName;case 274:case 275:return $.assert(n.name===t),!0;case 209:return Ei(t)&&rP(n.parent.parent);default:return!1}}function LLe(t,n,a){let c=t.parent;if(!c)return;let u=a.getMergedSymbol(c);return LO(u)?{exportingModuleSymbol:u,exportKind:n}:void 0}function Iyr(t,n){if(t.declarations)for(let a of t.declarations){if(Cm(a)&&!a.propertyName&&!a.parent.parent.moduleSpecifier)return n.getExportSpecifierLocalTargetSymbol(a)||t;if(no(a)&&Fx(a.expression)&&!Aa(a.name))return n.getSymbolAtLocation(a);if(im(a)&&wi(a.parent.parent)&&m_(a.parent.parent)===2)return n.getExportSpecifierLocalTargetSymbol(a.name)}return t}function Pyr(t,n){return n.getMergedSymbol(zae(t).symbol)}function zae(t){if(t.kind===214||t.kind===352)return t.getSourceFile();let{parent:n}=t;return n.kind===308?n:($.assert(n.kind===269),Ba(n.parent,cbe))}function cbe(t){return t.kind===268&&t.name.kind===11}function MLe(t){return t.moduleReference.kind===284&&t.moduleReference.expression.kind===11}var Ibt=(t=>(t[t.Symbol=0]="Symbol",t[t.Label=1]="Label",t[t.Keyword=2]="Keyword",t[t.This=3]="This",t[t.String=4]="String",t[t.TripleSlashReference=5]="TripleSlashReference",t))(Ibt||{}),Pbt=(t=>(t[t.Span=0]="Span",t[t.Node=1]="Node",t[t.StringLiteral=2]="StringLiteral",t[t.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",t[t.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",t))(Pbt||{});function YT(t,n=1){return{kind:n,node:t.name||t,context:Nyr(t)}}function jLe(t){return t&&t.kind===void 0}function Nyr(t){if(Vd(t))return A3(t);if(t.parent){if(!Vd(t.parent)&&!Xu(t.parent)){if(Ei(t)){let a=wi(t.parent)?t.parent:wu(t.parent)&&wi(t.parent.parent)&&t.parent.parent.left===t.parent?t.parent.parent:void 0;if(a&&m_(a)!==0)return A3(a)}if(Tv(t.parent)||bP(t.parent))return t.parent.parent;if(u3(t.parent)||bC(t.parent)||tU(t.parent))return t.parent;if(Sl(t)){let a=qG(t);if(a){let c=fn(a,u=>Vd(u)||fa(u)||MR(u));return Vd(c)?A3(c):c}}let n=fn(t,dc);return n?A3(n.parent):void 0}if(t.parent.name===t||kp(t.parent)||Xu(t.parent)||(Yk(t.parent)||Vc(t.parent))&&t.parent.propertyName===t||t.kind===90&&ko(t.parent,2080))return A3(t.parent)}}function A3(t){if(t)switch(t.kind){case 261:return!Df(t.parent)||t.parent.declarations.length!==1?t:h_(t.parent.parent)?t.parent.parent:M4(t.parent.parent)?A3(t.parent.parent):t.parent;case 209:return A3(t.parent.parent);case 277:return t.parent.parent.parent;case 282:case 275:return t.parent.parent;case 274:case 281:return t.parent;case 227:return af(t.parent)?t.parent:t;case 251:case 250:return{start:t.initializer,end:t.expression};case 304:case 305:return kE(t.parent)?A3(fn(t.parent,n=>wi(n)||M4(n))):t;case 256:return{start:wt(t.getChildren(t.getSourceFile()),n=>n.kind===109),end:t.caseBlock};default:return t}}function BLe(t,n,a){if(!a)return;let c=jLe(a)?Jae(a.start,n,a.end):Jae(a,n);return c.start!==t.start||c.length!==t.length?{contextSpan:c}:void 0}var Nbt=(t=>(t[t.Other=0]="Other",t[t.References=1]="References",t[t.Rename=2]="Rename",t))(Nbt||{});function Oyr(t,n,a,c,u){let _=Vh(c,u),f={use:1},y=QF.getReferencedSymbolsForNode(u,_,t,a,n,f),g=t.getTypeChecker(),k=QF.getAdjustedNode(_,f),T=Fyr(k)?g.getSymbolAtLocation(k):void 0;return!y||!y.length?void 0:Wn(y,({definition:C,references:O})=>C&&{definition:g.runWithCancellationToken(n,F=>Myr(C,F,_)),references:O.map(F=>Byr(F,T))})}function Fyr(t){return t.kind===90||!!TU(t)||KG(t)||t.kind===137&&kp(t.parent)}function Ryr(t,n,a,c,u){let _=Vh(c,u),f,y=Obt(t,n,a,_,u);if(_.parent.kind===212||_.parent.kind===209||_.parent.kind===213||_.kind===108)f=y&&[...y];else if(y){let k=u0(y),T=new Set;for(;!k.isEmpty();){let C=k.dequeue();if(!o1(T,hl(C.node)))continue;f=jt(f,C);let O=Obt(t,n,a,C.node,C.node.pos);O&&k.enqueue(...O)}}let g=t.getTypeChecker();return Cr(f,k=>Uyr(k,g))}function Obt(t,n,a,c,u){if(c.kind===308)return;let _=t.getTypeChecker();if(c.parent.kind===305){let f=[];return QF.getReferenceEntriesForShorthandPropertyAssignment(c,_,y=>f.push(YT(y))),f}else if(c.kind===108||_g(c.parent)){let f=_.getSymbolAtLocation(c);return f.valueDeclaration&&[YT(f.valueDeclaration)]}else return Fbt(u,c,t,a,n,{implementations:!0,use:1})}function Lyr(t,n,a,c,u,_,f){return Cr(Rbt(QF.getReferencedSymbolsForNode(u,c,t,a,n,_)),y=>f(y,c,t.getTypeChecker()))}function Fbt(t,n,a,c,u,_={},f=new Set(c.map(y=>y.fileName))){return Rbt(QF.getReferencedSymbolsForNode(t,n,a,c,u,_,f))}function Rbt(t){return t&&an(t,n=>n.references)}function Myr(t,n,a){let c=(()=>{switch(t.type){case 0:{let{symbol:T}=t,{displayParts:C,kind:O}=Lbt(T,n,a),F=C.map(J=>J.text).join(""),M=T.declarations&&pi(T.declarations),U=M?cs(M)||M:a;return{...qae(U),name:F,kind:O,displayParts:C,context:A3(M)}}case 1:{let{node:T}=t;return{...qae(T),name:T.text,kind:"label",displayParts:[hg(T.text,17)]}}case 2:{let{node:T}=t,C=Zs(T.kind);return{...qae(T),name:C,kind:"keyword",displayParts:[{text:C,kind:"keyword"}]}}case 3:{let{node:T}=t,C=n.getSymbolAtLocation(T),O=C&&wE.getSymbolDisplayPartsDocumentationAndSymbolKind(n,C,T.getSourceFile(),T3(T),T).displayParts||[Vy("this")];return{...qae(T),name:"this",kind:"var",displayParts:O}}case 4:{let{node:T}=t;return{...qae(T),name:T.text,kind:"var",displayParts:[hg(Sp(T),8)]}}case 5:return{textSpan:CE(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[hg(`"${t.reference.fileName}"`,8)]};default:return $.assertNever(t)}})(),{sourceFile:u,textSpan:_,name:f,kind:y,displayParts:g,context:k}=c;return{containerKind:"",containerName:"",fileName:u.fileName,kind:y,name:f,textSpan:_,displayParts:g,...BLe(_,u,k)}}function qae(t){let n=t.getSourceFile();return{sourceFile:n,textSpan:Jae(dc(t)?t.expression:t,n)}}function Lbt(t,n,a){let c=QF.getIntersectingMeaningFromDeclarations(a,t),u=t.declarations&&pi(t.declarations)||a,{displayParts:_,symbolKind:f}=wE.getSymbolDisplayPartsDocumentationAndSymbolKind(n,t,u.getSourceFile(),u,u,c);return{displayParts:_,kind:f}}function jyr(t,n,a,c,u){return{...lbe(t),...c&&$yr(t,n,a,u)}}function Byr(t,n){let a=Mbt(t);return n?{...a,isDefinition:t.kind!==0&&Bbt(t.node,n)}:a}function Mbt(t){let n=lbe(t);if(t.kind===0)return{...n,isWriteAccess:!1};let{kind:a,node:c}=t;return{...n,isWriteAccess:$Le(c),isInString:a===2?!0:void 0}}function lbe(t){if(t.kind===0)return{textSpan:t.textSpan,fileName:t.fileName};{let n=t.node.getSourceFile(),a=Jae(t.node,n);return{textSpan:a,fileName:n.fileName,...BLe(a,n,t.context)}}}function $yr(t,n,a,c){if(t.kind!==0&&(ct(n)||Sl(n))){let{node:u,kind:_}=t,f=u.parent,y=n.text,g=im(f);if(g||KK(f)&&f.name===u&&f.dotDotDotToken===void 0){let k={prefixText:y+": "},T={suffixText:": "+y};if(_===3)return k;if(_===4)return T;if(g){let C=f.parent;return Lc(C)&&wi(C.parent)&&Fx(C.parent.left)?k:T}else return k}else if(Xm(f)&&!f.propertyName){let k=Cm(n.parent)?a.getExportSpecifierLocalTargetSymbol(n.parent):a.getSymbolAtLocation(n);return un(k.declarations,f)?{prefixText:y+" as "}:u1}else if(Cm(f)&&!f.propertyName)return n===t.node||a.getSymbolAtLocation(n)===a.getSymbolAtLocation(t.node)?{prefixText:y+" as "}:{suffixText:" as "+y}}if(t.kind!==0&&qh(t.node)&&wu(t.node.parent)){let u=sve(c);return{prefixText:u,suffixText:u}}return u1}function Uyr(t,n){let a=lbe(t);if(t.kind!==0){let{node:c}=t;return{...a,...zyr(c,n)}}else return{...a,kind:"",displayParts:[]}}function zyr(t,n){let a=n.getSymbolAtLocation(Vd(t)&&t.name?t.name:t);return a?Lbt(a,n,t):t.kind===211?{kind:"interface",displayParts:[wm(21),Vy("object literal"),wm(22)]}:t.kind===232?{kind:"local class",displayParts:[wm(21),Vy("anonymous local class"),wm(22)]}:{kind:NP(t),displayParts:[]}}function qyr(t){let n=lbe(t);if(t.kind===0)return{fileName:n.fileName,span:{textSpan:n.textSpan,kind:"reference"}};let a=$Le(t.node),c={textSpan:n.textSpan,kind:a?"writtenReference":"reference",isInString:t.kind===2?!0:void 0,...n.contextSpan&&{contextSpan:n.contextSpan}};return{fileName:n.fileName,span:c}}function Jae(t,n,a){let c=t.getStart(n),u=(a||t).getEnd();return Sl(t)&&u-c>2&&($.assert(a===void 0),c+=1,u-=1),a?.kind===270&&(u=a.getFullStart()),Hu(c,u)}function jbt(t){return t.kind===0?t.textSpan:Jae(t.node,t.node.getSourceFile())}function $Le(t){let n=TU(t);return!!n&&Jyr(n)||t.kind===90||YO(t)}function Bbt(t,n){var a;if(!n)return!1;let c=TU(t)||(t.kind===90?t.parent:KG(t)||t.kind===137&&kp(t.parent)?t.parent.parent:void 0),u=c&&wi(c)?c.left:void 0;return!!(c&&((a=n.declarations)!=null&&a.some(_=>_===c||_===u)))}function Jyr(t){if(t.flags&33554432)return!0;switch(t.kind){case 227:case 209:case 264:case 232:case 90:case 267:case 307:case 282:case 274:case 272:case 277:case 265:case 339:case 347:case 292:case 268:case 271:case 275:case 281:case 170:case 305:case 266:case 169:return!0;case 304:return!kE(t.parent);case 263:case 219:case 177:case 175:case 178:case 179:return!!t.body;case 261:case 173:return!!t.initializer||TP(t.parent);case 174:case 172:case 349:case 342:return!1;default:return $.failBadSyntaxKind(t)}}var QF;(t=>{function n(Dt,ur,Ee,Bt,ye,et={},Ct=new Set(Bt.map(Ot=>Ot.fileName))){var Ot,ar;if(ur=a(ur,et),Ta(ur)){let gi=cM.getReferenceAtPosition(ur,Dt,Ee);if(!gi?.file)return;let Ye=Ee.getTypeChecker().getMergedSymbol(gi.file.symbol);if(Ye)return k(Ee,Ye,!1,Bt,Ct);let er=Ee.getFileIncludeReasons();return er?[{definition:{type:5,reference:gi.reference,file:ur},references:u(gi.file,er,Ee)||j}]:void 0}if(!et.implementations){let gi=C(ur,Bt,ye);if(gi)return gi}let at=Ee.getTypeChecker(),Zt=at.getSymbolAtLocation(kp(ur)&&ur.parent.name||ur);if(!Zt){if(!et.implementations&&Sl(ur)){if(Goe(ur)){let gi=Ee.getFileIncludeReasons(),Ye=(ar=(Ot=Ee.getResolvedModuleFromModuleSpecifier(ur))==null?void 0:Ot.resolvedModule)==null?void 0:ar.resolvedFileName,er=Ye?Ee.getSourceFile(Ye):void 0;if(er)return[{definition:{type:4,node:ur},references:u(er,gi,Ee)||j}]}return oo(ur,Bt,at,ye)}return}if(Zt.escapedName==="export=")return k(Ee,Zt.parent,!1,Bt,Ct);let Qt=f(Zt,Ee,Bt,ye,et,Ct);if(Qt&&!(Zt.flags&33554432))return Qt;let pr=_(ur,Zt,at),Et=pr&&f(pr,Ee,Bt,ye,et,Ct),xr=O(Zt,ur,Bt,Ct,at,ye,et);return y(Ee,Qt,xr,Et)}t.getReferencedSymbolsForNode=n;function a(Dt,ur){return ur.use===1?Dt=W1e(Dt):ur.use===2&&(Dt=Moe(Dt)),Dt}t.getAdjustedNode=a;function c(Dt,ur,Ee,Bt=new Set(Ee.map(ye=>ye.fileName))){var ye,et;let Ct=(ye=ur.getSourceFile(Dt))==null?void 0:ye.symbol;if(Ct)return((et=k(ur,Ct,!1,Ee,Bt)[0])==null?void 0:et.references)||j;let Ot=ur.getFileIncludeReasons(),ar=ur.getSourceFile(Dt);return ar&&Ot&&u(ar,Ot,ur)||j}t.getReferencesForFileName=c;function u(Dt,ur,Ee){let Bt,ye=ur.get(Dt.path)||j;for(let et of ye)if(MA(et)){let Ct=Ee.getSourceFileByPath(et.file),Ot=Uz(Ee,et);UL(Ot)&&(Bt=jt(Bt,{kind:0,fileName:Ct.fileName,textSpan:CE(Ot)}))}return Bt}function _(Dt,ur,Ee){if(Dt.parent&&UH(Dt.parent)){let Bt=Ee.getAliasedSymbol(ur),ye=Ee.getMergedSymbol(Bt);if(Bt!==ye)return ye}}function f(Dt,ur,Ee,Bt,ye,et){let Ct=Dt.flags&1536&&Dt.declarations&&wt(Dt.declarations,Ta);if(!Ct)return;let Ot=Dt.exports.get("export="),ar=k(ur,Dt,!!Ot,Ee,et);if(!Ot||!et.has(Ct.fileName))return ar;let at=ur.getTypeChecker();return Dt=$f(Ot,at),y(ur,ar,O(Dt,void 0,Ee,et,at,Bt,ye))}function y(Dt,...ur){let Ee;for(let Bt of ur)if(!(!Bt||!Bt.length)){if(!Ee){Ee=Bt;continue}for(let ye of Bt){if(!ye.definition||ye.definition.type!==0){Ee.push(ye);continue}let et=ye.definition.symbol,Ct=hr(Ee,ar=>!!ar.definition&&ar.definition.type===0&&ar.definition.symbol===et);if(Ct===-1){Ee.push(ye);continue}let Ot=Ee[Ct];Ee[Ct]={definition:Ot.definition,references:Ot.references.concat(ye.references).sort((ar,at)=>{let Zt=g(Dt,ar),Qt=g(Dt,at);if(Zt!==Qt)return Br(Zt,Qt);let pr=jbt(ar),Et=jbt(at);return pr.start!==Et.start?Br(pr.start,Et.start):Br(pr.length,Et.length)})}}}return Ee}function g(Dt,ur){let Ee=ur.kind===0?Dt.getSourceFile(ur.fileName):ur.node.getSourceFile();return Dt.getSourceFiles().indexOf(Ee)}function k(Dt,ur,Ee,Bt,ye){$.assert(!!ur.valueDeclaration);let et=Wn(Cbt(Dt,Bt,ur),Ot=>{if(Ot.kind==="import"){let ar=Ot.literal.parent;if(bE(ar)){let at=Ba(ar.parent,AS);if(Ee&&!at.qualifier)return}return YT(Ot.literal)}else if(Ot.kind==="implicit"){let ar=Ot.literal.text!==nC&&CF(Ot.referencingFile,at=>at.transformFlags&2?PS(at)||u3(at)||DA(at)?at:void 0:"skip")||Ot.referencingFile.statements[0]||Ot.referencingFile;return YT(ar)}else return{kind:0,fileName:Ot.referencingFile.fileName,textSpan:CE(Ot.ref)}});if(ur.declarations)for(let Ot of ur.declarations)switch(Ot.kind){case 308:break;case 268:ye.has(Ot.getSourceFile().fileName)&&et.push(YT(Ot.name));break;default:$.assert(!!(ur.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}let Ct=ur.exports.get("export=");if(Ct?.declarations)for(let Ot of Ct.declarations){let ar=Ot.getSourceFile();if(ye.has(ar.fileName)){let at=wi(Ot)&&no(Ot.left)?Ot.left.expression:Xu(Ot)?$.checkDefined(Kl(Ot,95,ar)):cs(Ot)||Ot;et.push(YT(at))}}return et.length?[{definition:{type:0,symbol:ur},references:et}]:j}function T(Dt){return Dt.kind===148&&bA(Dt.parent)&&Dt.parent.operator===148}function C(Dt,ur,Ee){if(Qz(Dt.kind))return Dt.kind===116&&SF(Dt.parent)||Dt.kind===148&&!T(Dt)?void 0:ut(ur,Dt.kind,Ee,Dt.kind===148?T:void 0);if(qR(Dt.parent)&&Dt.parent.name===Dt)return ze(ur,Ee);if(mF(Dt)&&n_(Dt.parent))return[{definition:{type:2,node:Dt},references:[YT(Dt)]}];if(UK(Dt)){let Bt=Poe(Dt.parent,Dt.text);return Bt&&Be(Bt.parent,Bt)}else if(M1e(Dt))return Be(Dt.parent,Dt);if(GL(Dt))return Wa(Dt,ur,Ee);if(Dt.kind===108)return sr(Dt)}function O(Dt,ur,Ee,Bt,ye,et,Ct){let Ot=ur&&U(Dt,ur,ye,!Es(Ct))||Dt,ar=ur&&Ct.use!==2?vo(ur,Ot):7,at=[],Zt=new Z(Ee,Bt,ur?M(ur):0,ye,et,ar,Ct,at),Qt=!Es(Ct)||!Ot.declarations?void 0:wt(Ot.declarations,Cm);if(Qt)It(Qt.name,Ot,Qt,Zt.createSearch(ur,Dt,void 0),Zt,!0,!0);else if(ur&&ur.kind===90&&Ot.escapedName==="default"&&Ot.parent)Qe(ur,Ot,Zt),Q(ur,Ot,{exportingModuleSymbol:Ot.parent,exportKind:1},Zt);else{let pr=Zt.createSearch(ur,Ot,void 0,{allSearchSymbols:ur?$o(Ot,ur,ye,Ct.use===2,!!Ct.providePrefixAndSuffixTextForRename,!!Ct.implementations):[Ot]});F(Ot,Zt,pr)}return at}function F(Dt,ur,Ee){let Bt=Oe(Dt);if(Bt)ve(Bt,Bt.getSourceFile(),Ee,ur,!(Ta(Bt)&&!un(ur.sourceFiles,Bt)));else for(let ye of ur.sourceFiles)ur.cancellationToken.throwIfCancellationRequested(),me(ye,Ee,ur)}function M(Dt){switch(Dt.kind){case 177:case 137:return 1;case 80:if(Co(Dt.parent))return $.assert(Dt.parent.name===Dt),2;default:return 0}}function U(Dt,ur,Ee,Bt){let{parent:ye}=ur;return Cm(ye)&&Bt?ke(ur,Dt,ye,Ee):Je(Dt.declarations,et=>{if(!et.parent){if(Dt.flags&33554432)return;$.fail(`Unexpected symbol at ${$.formatSyntaxKind(ur.kind)}: ${$.formatSymbol(Dt)}`)}return fh(et.parent)&&SE(et.parent.parent)?Ee.getPropertyOfType(Ee.getTypeFromTypeNode(et.parent.parent),Dt.name):void 0})}let J;(Dt=>{Dt[Dt.None=0]="None",Dt[Dt.Constructor=1]="Constructor",Dt[Dt.Class=2]="Class"})(J||(J={}));function G(Dt){if(!(Dt.flags&33555968))return;let ur=Dt.declarations&&wt(Dt.declarations,Ee=>!Ta(Ee)&&!I_(Ee));return ur&&ur.symbol}class Z{constructor(ur,Ee,Bt,ye,et,Ct,Ot,ar){this.sourceFiles=ur,this.sourceFilesSet=Ee,this.specialSearchKind=Bt,this.checker=ye,this.cancellationToken=et,this.searchMeaning=Ct,this.options=Ot,this.result=ar,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=QL(),this.markSeenReExportRHS=QL(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(ur){return this.sourceFilesSet.has(ur.fileName)}getImportSearches(ur,Ee){return this.importTracker||(this.importTracker=RLe(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(ur,Ee,this.options.use===2)}createSearch(ur,Ee,Bt,ye={}){let{text:et=i1(vp(RU(Ee)||G(Ee)||Ee)),allSearchSymbols:Ct=[Ee]}=ye,Ot=dp(et),ar=this.options.implementations&&ur?Cn(ur,Ee,this.checker):void 0;return{symbol:Ee,comingFrom:Bt,text:et,escapedText:Ot,parents:ar,allSearchSymbols:Ct,includes:at=>un(Ct,at)}}referenceAdder(ur){let Ee=hc(ur),Bt=this.symbolIdToReferences[Ee];return Bt||(Bt=this.symbolIdToReferences[Ee]=[],this.result.push({definition:{type:0,symbol:ur},references:Bt})),(ye,et)=>Bt.push(YT(ye,et))}addStringOrCommentReference(ur,Ee){this.result.push({definition:void 0,references:[{kind:0,fileName:ur,textSpan:Ee}]})}markSearchedSymbols(ur,Ee){let Bt=hl(ur),ye=this.sourceFileToSeenSymbols[Bt]||(this.sourceFileToSeenSymbols[Bt]=new Set),et=!1;for(let Ct of Ee)et=Us(ye,hc(Ct))||et;return et}}function Q(Dt,ur,Ee,Bt){let{importSearches:ye,singleReferences:et,indirectUsers:Ct}=Bt.getImportSearches(ur,Ee);if(et.length){let Ot=Bt.referenceAdder(ur);for(let ar of et)ae(ar,Bt)&&Ot(ar)}for(let[Ot,ar]of ye)je(Ot.getSourceFile(),Bt.createSearch(Ot,ar,1),Bt);if(Ct.length){let Ot;switch(Ee.exportKind){case 0:Ot=Bt.createSearch(Dt,ur,1);break;case 1:Ot=Bt.options.use===2?void 0:Bt.createSearch(Dt,ur,1,{text:"default"});break;case 2:break}if(Ot)for(let ar of Ct)me(ar,Ot,Bt)}}function re(Dt,ur,Ee,Bt,ye,et,Ct,Ot){let ar=RLe(Dt,new Set(Dt.map(pr=>pr.fileName)),ur,Ee),{importSearches:at,indirectUsers:Zt,singleReferences:Qt}=ar(Bt,{exportKind:Ct?1:0,exportingModuleSymbol:ye},!1);for(let[pr]of at)Ot(pr);for(let pr of Qt)ct(pr)&&AS(pr.parent)&&Ot(pr);for(let pr of Zt)for(let Et of Ae(pr,Ct?"default":et)){let xr=ur.getSymbolAtLocation(Et),gi=Pt(xr?.declarations,Ye=>!!Ci(Ye,Xu));ct(Et)&&!Yk(Et.parent)&&(xr===Bt||gi)&&Ot(Et)}}t.eachExportReference=re;function ae(Dt,ur){return Le(Dt,ur)?ur.options.use!==2?!0:!ct(Dt)&&!Yk(Dt.parent)?!1:!(Yk(Dt.parent)&&bb(Dt)):!1}function _e(Dt,ur){if(Dt.declarations)for(let Ee of Dt.declarations){let Bt=Ee.getSourceFile();je(Bt,ur.createSearch(Ee,Dt,0),ur,ur.includesSourceFile(Bt))}}function me(Dt,ur,Ee){vSe(Dt).get(ur.escapedText)!==void 0&&je(Dt,ur,Ee)}function le(Dt,ur){return kE(Dt.parent.parent)?ur.getPropertySymbolOfDestructuringAssignment(Dt):void 0}function Oe(Dt){let{declarations:ur,flags:Ee,parent:Bt,valueDeclaration:ye}=Dt;if(ye&&(ye.kind===219||ye.kind===232))return ye;if(!ur)return;if(Ee&8196){let Ot=wt(ur,ar=>Bg(ar,2)||Tm(ar));return Ot?mA(Ot,264):void 0}if(ur.some(KK))return;let et=Bt&&!(Dt.flags&262144);if(et&&!(LO(Bt)&&!Bt.globalExports))return;let Ct;for(let Ot of ur){let ar=T3(Ot);if(Ct&&Ct!==ar||!ar||ar.kind===308&&!Lg(ar))return;if(Ct=ar,bu(Ct)){let at;for(;at=Gme(Ct);)Ct=at}}return et?Ct.getSourceFile():Ct}function be(Dt,ur,Ee,Bt=Ee){return ue(Dt,ur,Ee,()=>!0,Bt)||!1}t.isSymbolReferencedInFile=be;function ue(Dt,ur,Ee,Bt,ye=Ee){let et=ne(Dt.parent,Dt.parent.parent)?To(ur.getSymbolsOfParameterPropertyDeclaration(Dt.parent,Dt.text)):ur.getSymbolAtLocation(Dt);if(et)for(let Ct of Ae(Ee,et.name,ye)){if(!ct(Ct)||Ct===Dt||Ct.escapedText!==Dt.escapedText)continue;let Ot=ur.getSymbolAtLocation(Ct);if(Ot===et||ur.getShorthandAssignmentValueSymbol(Ct.parent)===et||Cm(Ct.parent)&&ke(Ct,Ot,Ct.parent,ur)===et){let ar=Bt(Ct);if(ar)return ar}}}t.eachSymbolReferenceInFile=ue;function De(Dt,ur){return yr(Ae(ur,Dt),ye=>!!TU(ye)).reduce((ye,et)=>{let Ct=Bt(et);return!Pt(ye.declarationNames)||Ct===ye.depth?(ye.declarationNames.push(et),ye.depth=Ct):CtZt===ye)&&Bt(Ct,ar))return!0}return!1}t.someSignatureUsage=Ce;function Ae(Dt,ur,Ee=Dt){return Wn(Fe(Dt,ur,Ee),Bt=>{let ye=Vh(Dt,Bt);return ye===Dt?void 0:ye})}function Fe(Dt,ur,Ee=Dt){let Bt=[];if(!ur||!ur.length)return Bt;let ye=Dt.text,et=ye.length,Ct=ur.length,Ot=ye.indexOf(ur,Ee.pos);for(;Ot>=0&&!(Ot>Ee.end);){let ar=Ot+Ct;(Ot===0||!j1(ye.charCodeAt(Ot-1),99))&&(ar===et||!j1(ye.charCodeAt(ar),99))&&Bt.push(Ot),Ot=ye.indexOf(ur,Ot+Ct+1)}return Bt}function Be(Dt,ur){let Ee=Dt.getSourceFile(),Bt=ur.text,ye=Wn(Ae(Ee,Bt,Dt),et=>et===ur||UK(et)&&Poe(et,Bt)===ur?YT(et):void 0);return[{definition:{type:1,node:ur},references:ye}]}function de(Dt,ur){switch(Dt.kind){case 81:if(wA(Dt.parent))return!0;case 80:return Dt.text.length===ur.length;case 15:case 11:{let Ee=Dt;return Ee.text.length===ur.length&&(Noe(Ee)||U1e(Dt)||r7e(Dt)||Js(Dt.parent)&&J4(Dt.parent)&&Dt.parent.arguments[1]===Dt||Yk(Dt.parent))}case 9:return Noe(Dt)&&Dt.text.length===ur.length;case 90:return ur.length===7;default:return!1}}function ze(Dt,ur){let Ee=an(Dt,Bt=>(ur.throwIfCancellationRequested(),Wn(Ae(Bt,"meta",Bt),ye=>{let et=ye.parent;if(qR(et))return YT(et)})));return Ee.length?[{definition:{type:2,node:Ee[0].node},references:Ee}]:void 0}function ut(Dt,ur,Ee,Bt){let ye=an(Dt,et=>(Ee.throwIfCancellationRequested(),Wn(Ae(et,Zs(ur),et),Ct=>{if(Ct.kind===ur&&(!Bt||Bt(Ct)))return YT(Ct)})));return ye.length?[{definition:{type:2,node:ye[0].node},references:ye}]:void 0}function je(Dt,ur,Ee,Bt=!0){return Ee.cancellationToken.throwIfCancellationRequested(),ve(Dt,Dt,ur,Ee,Bt)}function ve(Dt,ur,Ee,Bt,ye){if(Bt.markSearchedSymbols(ur,Ee.allSearchSymbols))for(let et of Fe(ur,Ee.text,Dt))Ve(ur,et,Ee,Bt,ye)}function Le(Dt,ur){return!!(x3(Dt)&ur.searchMeaning)}function Ve(Dt,ur,Ee,Bt,ye){let et=Vh(Dt,ur);if(!de(et,Ee.text)){!Bt.options.implementations&&(Bt.options.findInStrings&&jF(Dt,ur)||Bt.options.findInComments&&m7e(Dt,ur))&&Bt.addStringOrCommentReference(Dt.fileName,Jp(ur,Ee.text.length));return}if(!Le(et,Bt))return;let Ct=Bt.checker.getSymbolAtLocation(et);if(!Ct)return;let Ot=et.parent;if(Xm(Ot)&&Ot.propertyName===et)return;if(Cm(Ot)){$.assert(et.kind===80||et.kind===11),It(et,Ct,Ot,Ee,Bt,ye);return}if(rU(Ot)&&Ot.isNameFirst&&Ot.typeExpression&&p3(Ot.typeExpression.type)&&Ot.typeExpression.type.jsDocPropertyTags&&te(Ot.typeExpression.type.jsDocPropertyTags)){nt(Ot.typeExpression.type.jsDocPropertyTags,et,Ee,Bt);return}let ar=ai(Ee,Ct,et,Bt);if(!ar){tt(Ct,Ee,Bt);return}switch(Bt.specialSearchKind){case 0:ye&&Qe(et,ar,Bt);break;case 1:We(et,Dt,Ee,Bt);break;case 2:St(et,Ee,Bt);break;default:$.assertNever(Bt.specialSearchKind)}Ei(et)&&Vc(et.parent)&&rP(et.parent.parent.parent)&&(Ct=et.parent.symbol,!Ct)||Se(et,Ct,Ee,Bt)}function nt(Dt,ur,Ee,Bt){let ye=Bt.referenceAdder(Ee.symbol);Qe(ur,Ee.symbol,Bt),X(Dt,et=>{dh(et.name)&&ye(et.name.left)})}function It(Dt,ur,Ee,Bt,ye,et,Ct){$.assert(!Ct||!!ye.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:Ot,propertyName:ar,name:at}=Ee,Zt=Ot.parent,Qt=ke(Dt,ur,Ee,ye.checker);if(!Ct&&!Bt.includes(Qt))return;if(ar?Dt===ar?(Zt.moduleSpecifier||pr(),et&&ye.options.use!==2&&ye.markSeenReExportRHS(at)&&Qe(at,$.checkDefined(Ee.symbol),ye)):ye.markSeenReExportRHS(Dt)&&pr():ye.options.use===2&&bb(at)||pr(),!Es(ye.options)||Ct){let xr=bb(Dt)||bb(Ee.name)?1:0,gi=$.checkDefined(Ee.symbol),Ye=LLe(gi,xr,ye.checker);Ye&&Q(Dt,gi,Ye,ye)}if(Bt.comingFrom!==1&&Zt.moduleSpecifier&&!ar&&!Es(ye.options)){let Et=ye.checker.getExportSpecifierLocalTargetSymbol(Ee);Et&&_e(Et,ye)}function pr(){et&&Qe(Dt,Qt,ye)}}function ke(Dt,ur,Ee,Bt){return _t(Dt,Ee)&&Bt.getExportSpecifierLocalTargetSymbol(Ee)||ur}function _t(Dt,ur){let{parent:Ee,propertyName:Bt,name:ye}=ur;return $.assert(Bt===Dt||ye===Dt),Bt?Bt===Dt:!Ee.parent.moduleSpecifier}function Se(Dt,ur,Ee,Bt){let ye=wbt(Dt,ur,Bt.checker,Ee.comingFrom===1);if(!ye)return;let{symbol:et}=ye;ye.kind===0?Es(Bt.options)||_e(et,Bt):Q(Dt,et,ye.exportInfo,Bt)}function tt({flags:Dt,valueDeclaration:ur},Ee,Bt){let ye=Bt.checker.getShorthandAssignmentValueSymbol(ur),et=ur&&cs(ur);!(Dt&33554432)&&et&&Ee.includes(ye)&&Qe(et,ye,Bt)}function Qe(Dt,ur,Ee){let{kind:Bt,symbol:ye}="kind"in ur?ur:{kind:void 0,symbol:ur};if(Ee.options.use===2&&Dt.kind===90)return;let et=Ee.referenceAdder(ye);Ee.options.implementations?Dr(Dt,et,Ee):et(Dt,Bt)}function We(Dt,ur,Ee,Bt){Wz(Dt)&&Qe(Dt,Ee.symbol,Bt);let ye=()=>Bt.referenceAdder(Ee.symbol);if(Co(Dt.parent))$.assert(Dt.kind===90||Dt.parent.name===Dt),Kt(Ee.symbol,ur,ye());else{let et=yc(Dt);et&&(nn(et,ye()),$t(et,Bt))}}function St(Dt,ur,Ee){Qe(Dt,ur.symbol,Ee);let Bt=Dt.parent;if(Ee.options.use===2||!Co(Bt))return;$.assert(Bt.name===Dt);let ye=Ee.referenceAdder(ur.symbol);for(let et of Bt.members)OO(et)&&oc(et)&&et.body&&et.body.forEachChild(function Ct(Ot){Ot.kind===110?ye(Ot):!Rs(Ot)&&!Co(Ot)&&Ot.forEachChild(Ct)})}function Kt(Dt,ur,Ee){let Bt=Sr(Dt);if(Bt&&Bt.declarations)for(let ye of Bt.declarations){let et=Kl(ye,137,ur);$.assert(ye.kind===177&&!!et),Ee(et)}Dt.exports&&Dt.exports.forEach(ye=>{let et=ye.valueDeclaration;if(et&&et.kind===175){let Ct=et.body;Ct&&Ls(Ct,110,Ot=>{Wz(Ot)&&Ee(Ot)})}})}function Sr(Dt){return Dt.members&&Dt.members.get("__constructor")}function nn(Dt,ur){let Ee=Sr(Dt.symbol);if(Ee&&Ee.declarations)for(let Bt of Ee.declarations){$.assert(Bt.kind===177);let ye=Bt.body;ye&&Ls(ye,108,et=>{F1e(et)&&ur(et)})}}function Nn(Dt){return!!Sr(Dt.symbol)}function $t(Dt,ur){if(Nn(Dt))return;let Ee=Dt.symbol,Bt=ur.createSearch(void 0,Ee,void 0);F(Ee,ur,Bt)}function Dr(Dt,ur,Ee){if(Eb(Dt)&&Eo(Dt.parent)){ur(Dt);return}if(Dt.kind!==80)return;Dt.parent.kind===305&&ya(Dt,Ee.checker,ur);let Bt=Qn(Dt);if(Bt){ur(Bt);return}let ye=fn(Dt,Ot=>!dh(Ot.parent)&&!Wo(Ot.parent)&&!KI(Ot.parent)),et=ye.parent;if(Qte(et)&&et.type===ye&&Ee.markSeenContainingTypeReference(et))if(lE(et))Ct(et.initializer);else if(Rs(et)&&et.body){let Ot=et.body;Ot.kind===242?sC(Ot,ar=>{ar.expression&&Ct(ar.expression)}):Ct(Ot)}else(ZI(et)||yL(et))&&Ct(et.expression);function Ct(Ot){Ko(Ot)&&ur(Ot)}}function Qn(Dt){return ct(Dt)||no(Dt)?Qn(Dt.parent):VT(Dt)?Ci(Dt.parent.parent,jf(Co,Af)):void 0}function Ko(Dt){switch(Dt.kind){case 218:return Ko(Dt.expression);case 220:case 219:case 211:case 232:case 210:return!0;default:return!1}}function is(Dt,ur,Ee,Bt){if(Dt===ur)return!0;let ye=hc(Dt)+","+hc(ur),et=Ee.get(ye);if(et!==void 0)return et;Ee.set(ye,!1);let Ct=!!Dt.declarations&&Dt.declarations.some(Ot=>EU(Ot).some(ar=>{let at=Bt.getTypeAtLocation(ar);return!!at&&!!at.symbol&&is(at.symbol,ur,Ee,Bt)}));return Ee.set(ye,Ct),Ct}function sr(Dt){let ur=IG(Dt,!1);if(!ur)return;let Ee=256;switch(ur.kind){case 173:case 172:case 175:case 174:case 177:case 178:case 179:Ee&=_E(ur),ur=ur.parent;break;default:return}let Bt=ur.getSourceFile(),ye=Wn(Ae(Bt,"super",ur),et=>{if(et.kind!==108)return;let Ct=IG(et,!1);return Ct&&oc(Ct)===!!Ee&&Ct.parent.symbol===ur.symbol?YT(et):void 0});return[{definition:{type:0,symbol:ur.symbol},references:ye}]}function uo(Dt){return Dt.kind===80&&Dt.parent.kind===170&&Dt.parent.name===Dt}function Wa(Dt,ur,Ee){let Bt=Hm(Dt,!1,!1),ye=256;switch(Bt.kind){case 175:case 174:if(r1(Bt)){ye&=_E(Bt),Bt=Bt.parent;break}case 173:case 172:case 177:case 178:case 179:ye&=_E(Bt),Bt=Bt.parent;break;case 308:if(yd(Bt)||uo(Dt))return;case 263:case 219:break;default:return}let et=an(Bt.kind===308?ur:[Bt.getSourceFile()],Ot=>(Ee.throwIfCancellationRequested(),Ae(Ot,"this",Ta(Bt)?Ot:Bt).filter(ar=>{if(!GL(ar))return!1;let at=Hm(ar,!1,!1);if(!gv(at))return!1;switch(Bt.kind){case 219:case 263:return Bt.symbol===at.symbol;case 175:case 174:return r1(Bt)&&Bt.symbol===at.symbol;case 232:case 264:case 211:return at.parent&&gv(at.parent)&&Bt.symbol===at.parent.symbol&&oc(at)===!!ye;case 308:return at.kind===308&&!yd(at)&&!uo(ar)}}))).map(Ot=>YT(Ot));return[{definition:{type:3,node:Je(et,Ot=>wa(Ot.node.parent)?Ot.node:void 0)||Dt},references:et}]}function oo(Dt,ur,Ee,Bt){let ye=Loe(Dt,Ee),et=an(ur,Ct=>(Bt.throwIfCancellationRequested(),Wn(Ae(Ct,Dt.text),Ot=>{if(Sl(Ot)&&Ot.text===Dt.text)if(ye){let ar=Loe(Ot,Ee);if(ye!==Ee.getStringType()&&(ye===ar||Oi(Ot,Ee)))return YT(Ot,2)}else return r3(Ot)&&!Z4(Ot,Ct)?void 0:YT(Ot,2)})));return[{definition:{type:4,node:Dt},references:et}]}function Oi(Dt,ur){if(Zm(Dt.parent))return ur.getPropertyOfType(ur.getTypeAtLocation(Dt.parent.parent),Dt.text)}function $o(Dt,ur,Ee,Bt,ye,et){let Ct=[];return ft(Dt,ur,Ee,Bt,!(Bt&&ye),(Ot,ar,at)=>{at&&Wr(Dt)!==Wr(at)&&(at=void 0),Ct.push(at||ar||Ot)},()=>!et),Ct}function ft(Dt,ur,Ee,Bt,ye,et,Ct){let Ot=dQ(ur);if(Ot){let xr=Ee.getShorthandAssignmentValueSymbol(ur.parent);if(xr&&Bt)return et(xr,void 0,void 0,3);let gi=Ee.getContextualType(Ot.parent),Ye=gi&&Je(Iae(Ot,Ee,gi,!0),ot=>pr(ot,4));if(Ye)return Ye;let er=le(ur,Ee),Ne=er&&et(er,void 0,void 0,4);if(Ne)return Ne;let Y=xr&&et(xr,void 0,void 0,3);if(Y)return Y}let ar=_(ur,Dt,Ee);if(ar){let xr=et(ar,void 0,void 0,1);if(xr)return xr}let at=pr(Dt);if(at)return at;if(Dt.valueDeclaration&&ne(Dt.valueDeclaration,Dt.valueDeclaration.parent)){let xr=Ee.getSymbolsOfParameterPropertyDeclaration(Ba(Dt.valueDeclaration,wa),Dt.name);return $.assert(xr.length===2&&!!(xr[0].flags&1)&&!!(xr[1].flags&4)),pr(Dt.flags&1?xr[1]:xr[0])}let Zt=Qu(Dt,282);if(!Bt||Zt&&!Zt.propertyName){let xr=Zt&&Ee.getExportSpecifierLocalTargetSymbol(Zt);if(xr){let gi=et(xr,void 0,void 0,1);if(gi)return gi}}if(!Bt){let xr;return ye?xr=KK(ur.parent)?Hoe(Ee,ur.parent):void 0:xr=Et(Dt,Ee),xr&&pr(xr,4)}if($.assert(Bt),ye){let xr=Et(Dt,Ee);return xr&&pr(xr,4)}function pr(xr,gi){return Je(Ee.getRootSymbols(xr),Ye=>et(xr,Ye,void 0,gi)||(Ye.parent&&Ye.parent.flags&96&&Ct(Ye)?Ht(Ye.parent,Ye.name,Ee,er=>et(xr,Ye,er,gi)):void 0))}function Et(xr,gi){let Ye=Qu(xr,209);if(Ye&&KK(Ye))return Hoe(gi,Ye)}}function Ht(Dt,ur,Ee,Bt){let ye=new Set;return et(Dt);function et(Ct){if(!(!(Ct.flags&96)||!o1(ye,Ct)))return Je(Ct.declarations,Ot=>Je(EU(Ot),ar=>{let at=Ee.getTypeAtLocation(ar),Zt=at.symbol&&Ee.getPropertyOfType(at,ur);return Zt&&Je(Ee.getRootSymbols(Zt),Bt)||at.symbol&&et(at.symbol)}))}}function Wr(Dt){return Dt.valueDeclaration?!!(tm(Dt.valueDeclaration)&256):!1}function ai(Dt,ur,Ee,Bt){let{checker:ye}=Bt;return ft(ur,Ee,ye,!1,Bt.options.use!==2||!!Bt.options.providePrefixAndSuffixTextForRename,(et,Ct,Ot,ar)=>(Ot&&Wr(ur)!==Wr(Ot)&&(Ot=void 0),Dt.includes(Ot||Ct||et)?{symbol:Ct&&!(Fp(et)&6)?Ct:et,kind:ar}:void 0),et=>!(Dt.parents&&!Dt.parents.some(Ct=>is(et.parent,Ct,Bt.inheritsFromCache,ye))))}function vo(Dt,ur){let Ee=x3(Dt),{declarations:Bt}=ur;if(Bt){let ye;do{ye=Ee;for(let et of Bt){let Ct=Aoe(et);Ct&Ee&&(Ee|=Ct)}}while(Ee!==ye)}return Ee}t.getIntersectingMeaningFromDeclarations=vo;function Eo(Dt){return Dt.flags&33554432?!(Af(Dt)||s1(Dt)):_U(Dt)?lE(Dt):lu(Dt)?!!Dt.body:Co(Dt)||fG(Dt)}function ya(Dt,ur,Ee){let Bt=ur.getSymbolAtLocation(Dt),ye=ur.getShorthandAssignmentValueSymbol(Bt.valueDeclaration);if(ye)for(let et of ye.getDeclarations())Aoe(et)&1&&Ee(et)}t.getReferenceEntriesForShorthandPropertyAssignment=ya;function Ls(Dt,ur,Ee){Is(Dt,Bt=>{Bt.kind===ur&&Ee(Bt),Ls(Bt,ur,Ee)})}function yc(Dt){return xhe(Ioe(Dt).parent)}function Cn(Dt,ur,Ee){let Bt=WL(Dt)?Dt.parent:void 0,ye=Bt&&Ee.getTypeAtLocation(Bt.expression),et=Wn(ye&&(ye.isUnionOrIntersection()?ye.types:ye.symbol===ur.parent?void 0:[ye]),Ct=>Ct.symbol&&Ct.symbol.flags&96?Ct.symbol:void 0);return et.length===0?void 0:et}function Es(Dt){return Dt.use===2&&Dt.providePrefixAndSuffixTextForRename}})(QF||(QF={}));var cM={};d(cM,{createDefinitionInfo:()=>EQ,getDefinitionAndBoundSpan:()=>Zyr,getDefinitionAtPosition:()=>$bt,getReferenceAtPosition:()=>zbt,getTypeDefinitionAtPosition:()=>Kyr});function $bt(t,n,a,c,u){var _;let f=zbt(n,a,t),y=f&&[r0r(f.reference.fileName,f.fileName,f.unverified)]||j;if(f?.file)return y;let g=Vh(n,a);if(g===n)return;let{parent:k}=g,T=t.getTypeChecker();if(g.kind===164||ct(g)&&Kne(k)&&k.tagName===g){let G=Wyr(T,g);if(G!==void 0||g.kind!==164)return G||j}if(UK(g)){let G=Poe(g.parent,g.text);return G?[ULe(T,G,"label",g.text,void 0)]:void 0}switch(g.kind){case 90:if(!dz(g.parent))break;case 84:let G=fn(g.parent,pz);if(G)return[t0r(G,n)];break}let C;switch(g.kind){case 107:case 135:case 127:C=lu;let G=fn(g,C);return G?[qLe(T,G)]:void 0}if(mF(g)&&n_(g.parent)){let G=g.parent.parent,{symbol:Z,failedAliasResolution:Q}=ube(G,T,u),re=yr(G.members,n_),ae=Z?T.symbolToString(Z,G):"",_e=g.getSourceFile();return Cr(re,me=>{let{pos:le}=ES(me);return le=_c(_e.text,le),ULe(T,me,"constructor","static {}",ae,!1,Q,{start:le,length:6})})}let{symbol:O,failedAliasResolution:F}=ube(g,T,u),M=g;if(c&&F){let G=X([g,...O?.declarations||j],Q=>fn(Q,o6e)),Z=G&&qO(G);Z&&({symbol:O,failedAliasResolution:F}=ube(Z,T,u),M=Z)}if(!O&&Goe(M)){let G=(_=t.getResolvedModuleFromModuleSpecifier(M,n))==null?void 0:_.resolvedModule;if(G)return[{name:M.text,fileName:G.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Jp(0,0),failedAliasResolution:F,isAmbient:sf(G.resolvedFileName),unverified:M!==g}]}if(bc(g)&&(J_(k)||Vp(k))&&(O=k.symbol),!O)return go(y,Xyr(g,T));if(c&&ht(O.declarations,G=>G.getSourceFile().fileName===n.fileName))return;let U=i0r(T,g);if(U&&!(Em(g.parent)&&o0r(U))){let G=qLe(T,U,F),Z=re=>re!==U;if(T.getRootSymbols(O).some(re=>Vyr(re,U))){if(!kp(U))return[G];Z=re=>re!==U&&(ed(re)||w_(re))}let Q=hq(T,O,g,F,Z)||j;return g.kind===108?[G,...Q]:[...Q,G]}if(g.parent.kind===305){let G=T.getShorthandAssignmentValueSymbol(O.valueDeclaration),Z=G?.declarations?G.declarations.map(Q=>EQ(Q,T,G,g,!1,F)):j;return go(Z,Ubt(T,g))}if(q_(g)&&Vc(k)&&$y(k.parent)&&g===(k.propertyName||k.name)){let G=HK(g),Z=T.getTypeAtLocation(k.parent);return G===void 0?j:an(Z.isUnion()?Z.types:[Z],Q=>{let re=Q.getProperty(G);return re&&hq(T,re,g)})}let J=Ubt(T,g);return go(y,J.length?J:hq(T,O,g,F))}function Vyr(t,n){var a;return t===n.symbol||t===n.symbol.parent||of(n.parent)||!QI(n.parent)&&t===((a=Ci(n.parent,gv))==null?void 0:a.symbol)}function Ubt(t,n){let a=dQ(n);if(a){let c=a&&t.getContextualType(a.parent);if(c)return an(Iae(a,t,c,!1),u=>hq(t,u,n))}return j}function Wyr(t,n){let a=fn(n,J_);if(!(a&&a.name))return;let c=fn(a,Co);if(!c)return;let u=vv(c);if(!u)return;let _=bl(u.expression),f=w_(_)?_.symbol:t.getSymbolAtLocation(_);if(!f)return;let y=fd(a)?t.getTypeOfSymbol(f):t.getDeclaredTypeOfSymbol(f),g;if(dc(a.name)){let k=t.getSymbolAtLocation(a.name);if(!k)return;AU(k)?g=wt(t.getPropertiesOfType(y),T=>T.escapedName===k.escapedName):g=t.getPropertyOfType(y,oa(k.escapedName))}else g=t.getPropertyOfType(y,oa(UO(a.name)));if(g)return hq(t,g,n)}function zbt(t,n,a){var c,u;let _=kQ(t.referencedFiles,n);if(_){let g=a.getSourceFileFromReference(t,_);return g&&{reference:_,fileName:g.fileName,file:g,unverified:!1}}let f=kQ(t.typeReferenceDirectives,n);if(f){let g=(c=a.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(f,t))==null?void 0:c.resolvedTypeReferenceDirective,k=g&&a.getSourceFile(g.resolvedFileName);return k&&{reference:f,fileName:k.fileName,file:k,unverified:!1}}let y=kQ(t.libReferenceDirectives,n);if(y){let g=a.getLibFileFromReference(y);return g&&{reference:y,fileName:g.fileName,file:g,unverified:!1}}if(t.imports.length||t.moduleAugmentations.length){let g=KL(t,n),k;if(Goe(g)&&vt(g.text)&&(k=a.getResolvedModuleFromModuleSpecifier(g,t))){let T=(u=k.resolvedModule)==null?void 0:u.resolvedFileName,C=T||mb(mo(t.fileName),g.text);return{file:a.getSourceFile(C),fileName:C,reference:{pos:g.getStart(),end:g.getEnd(),fileName:g.text},unverified:!T}}}}var qbt=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function Gyr(t,n){let a=n.symbol.name;if(!qbt.has(a))return!1;let c=t.resolveName(a,void 0,788968,!1);return!!c&&c===n.target.symbol}function Jbt(t,n){if(!n.aliasSymbol)return!1;let a=n.aliasSymbol.name;if(!qbt.has(a))return!1;let c=t.resolveName(a,void 0,788968,!1);return!!c&&c===n.aliasSymbol}function Hyr(t,n,a,c){var u,_;if(ro(n)&4&&Gyr(t,n))return TQ(t.getTypeArguments(n)[0],t,a,c);if(Jbt(t,n)&&n.aliasTypeArguments)return TQ(n.aliasTypeArguments[0],t,a,c);if(ro(n)&32&&n.target&&Jbt(t,n.target)){let f=(_=(u=n.aliasSymbol)==null?void 0:u.declarations)==null?void 0:_[0];if(f&&s1(f)&&Ug(f.type)&&f.type.typeArguments)return TQ(t.getTypeAtLocation(f.type.typeArguments[0]),t,a,c)}return[]}function Kyr(t,n,a){let c=Vh(n,a);if(c===n)return;if(qR(c.parent)&&c.parent.name===c)return TQ(t.getTypeAtLocation(c.parent),t,c.parent,!1);let{symbol:u,failedAliasResolution:_}=ube(c,t,!1);if(bc(c)&&(J_(c.parent)||Vp(c.parent))&&(u=c.parent.symbol,_=!1),!u)return;let f=t.getTypeOfSymbolAtLocation(u,c),y=Qyr(u,f,t),g=y&&TQ(y,t,c,_),[k,T]=g&&g.length!==0?[y,g]:[f,TQ(f,t,c,_)];return T.length?[...Hyr(t,k,c,_),...T]:!(u.flags&111551)&&u.flags&788968?hq(t,$f(u,t),c,_):void 0}function TQ(t,n,a,c){return an(t.isUnion()&&!(t.flags&32)?t.types:[t],u=>u.symbol&&hq(n,u.symbol,a,c))}function Qyr(t,n,a){if(n.symbol===t||t.valueDeclaration&&n.symbol&&Oo(t.valueDeclaration)&&t.valueDeclaration.initializer===n.symbol.valueDeclaration){let c=n.getCallSignatures();if(c.length===1)return a.getReturnTypeOfSignature(To(c))}}function Zyr(t,n,a){let c=$bt(t,n,a);if(!c||c.length===0)return;let u=kQ(n.referencedFiles,a)||kQ(n.typeReferenceDirectives,a)||kQ(n.libReferenceDirectives,a);if(u)return{definitions:c,textSpan:CE(u)};let _=Vh(n,a),f=Jp(_.getStart(),_.getWidth());return{definitions:c,textSpan:f}}function Xyr(t,n){return Wn(n.getIndexInfosAtLocation(t),a=>a.declaration&&qLe(n,a.declaration))}function ube(t,n,a){let c=n.getSymbolAtLocation(t),u=!1;if(c?.declarations&&c.flags&2097152&&!a&&Yyr(t,c.declarations[0])){let _=n.getAliasedSymbol(c);if(_.declarations)return{symbol:_};u=!0}return{symbol:c,failedAliasResolution:u}}function Yyr(t,n){return t.kind!==80&&(t.kind!==11||!Yk(t.parent))?!1:t.parent===n?!0:n.kind!==275}function e0r(t){if(!yU(t))return!1;let n=fn(t,a=>of(a)?!0:yU(a)?!1:"quit");return!!n&&m_(n)===5}function hq(t,n,a,c,u){let _=u!==void 0?yr(n.declarations,u):n.declarations,f=!u&&(k()||T());if(f)return f;let y=yr(_,O=>!e0r(O)),g=Pt(y)?y:_;return Cr(g,O=>EQ(O,t,n,a,!1,c));function k(){if(n.flags&32&&!(n.flags&19)&&(Wz(a)||a.kind===137)){let O=wt(_,Co);return O&&C(O.members,!0)}}function T(){return R1e(a)||z1e(a)?C(_,!1):void 0}function C(O,F){if(!O)return;let M=O.filter(F?kp:Rs),U=M.filter(J=>!!J.body);return M.length?U.length!==0?U.map(J=>EQ(J,t,n,a)):[EQ(Sn(M),t,n,a,!1,c)]:void 0}}function EQ(t,n,a,c,u,_){let f=n.symbolToString(a),y=wE.getSymbolKind(n,a,c),g=a.parent?n.symbolToString(a.parent,c):"";return ULe(n,t,y,f,g,u,_)}function ULe(t,n,a,c,u,_,f,y){let g=n.getSourceFile();if(!y){let k=cs(n)||n;y=yh(k,g)}return{fileName:g.fileName,textSpan:y,kind:a,name:c,containerKind:void 0,containerName:u,...Pu.toContextSpan(y,g,Pu.getContextNode(n)),isLocal:!zLe(t,n),isAmbient:!!(n.flags&33554432),unverified:_,failedAliasResolution:f}}function t0r(t,n){let a=Pu.getContextNode(t),c=yh(jLe(a)?a.start:a,n);return{fileName:n.fileName,textSpan:c,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Pu.toContextSpan(c,n,a),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function zLe(t,n){if(t.isDeclarationVisible(n))return!0;if(!n.parent)return!1;if(lE(n.parent)&&n.parent.initializer===n)return zLe(t,n.parent);switch(n.kind){case 173:case 178:case 179:case 175:if(Bg(n,2))return!1;case 177:case 304:case 305:case 211:case 232:case 220:case 219:return zLe(t,n.parent);default:return!1}}function qLe(t,n,a){return EQ(n,t,n.symbol,n,!1,a)}function kQ(t,n){return wt(t,a=>Ao(a,n))}function r0r(t,n,a){return{fileName:n,textSpan:Hu(0,0),kind:"script",name:t,containerName:void 0,containerKind:void 0,unverified:a}}function n0r(t){let n=fn(t,c=>!WL(c)),a=n?.parent;return a&&QI(a)&&bre(a)===n?a:void 0}function i0r(t,n){let a=n0r(n),c=a&&t.getResolvedSignature(a);return Ci(c&&c.declaration,u=>Rs(u)&&!Cb(u))}function o0r(t){switch(t.kind){case 177:case 186:case 180:case 181:return!0;default:return!1}}var pbe={};d(pbe,{provideInlayHints:()=>l0r});var a0r=t=>new RegExp(`^\\s?/\\*\\*?\\s?${t}\\s?\\*\\/\\s?$`);function s0r(t){return t.includeInlayParameterNameHints==="literals"||t.includeInlayParameterNameHints==="all"}function c0r(t){return t.includeInlayParameterNameHints==="literals"}function JLe(t){return t.interactiveInlayHints===!0}function l0r(t){let{file:n,program:a,span:c,cancellationToken:u,preferences:_}=t,f=n.text,y=a.getCompilerOptions(),g=Vg(n,_),k=a.getTypeChecker(),T=[];return C(n),T;function C(je){if(!(!je||je.getFullWidth()===0)){switch(je.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 175:case 220:u.throwIfCancellationRequested()}if(_S(c,je.pos,je.getFullWidth())&&!(Wo(je)&&!VT(je)))return _.includeInlayVariableTypeHints&&Oo(je)||_.includeInlayPropertyDeclarationTypeHints&&ps(je)?Z(je):_.includeInlayEnumMemberValueHints&>(je)?J(je):s0r(_)&&(Js(je)||SP(je))?Q(je):(_.includeInlayFunctionParameterTypeHints&&lu(je)&&xne(je)&&Oe(je),_.includeInlayFunctionLikeReturnTypeHints&&O(je)&&me(je)),Is(je,C)}}function O(je){return Iu(je)||bu(je)||i_(je)||Ep(je)||T0(je)}function F(je,ve,Le,Ve){let nt=`${Ve?"...":""}${je}`,It;JLe(_)?(It=[ut(nt,ve),{text:":"}],nt=""):nt+=":",T.push({text:nt,position:Le,kind:"Parameter",whitespaceAfter:!0,displayParts:It})}function M(je,ve){T.push({text:typeof je=="string"?`: ${je}`:"",displayParts:typeof je=="string"?void 0:[{text:": "},...je],position:ve,kind:"Type",whitespaceBefore:!0})}function U(je,ve){T.push({text:`= ${je}`,position:ve,kind:"Enum",whitespaceBefore:!0})}function J(je){if(je.initializer)return;let ve=k.getConstantValue(je);ve!==void 0&&U(ve.toString(),je.end)}function G(je){return je.symbol&&je.symbol.flags&1536}function Z(je){if(je.initializer===void 0&&!(ps(je)&&!(k.getTypeAtLocation(je).flags&1))||$s(je.name)||Oo(je)&&!ze(je)||X_(je))return;let Le=k.getTypeAtLocation(je);if(G(Le))return;let Ve=Ae(Le);if(Ve){let nt=typeof Ve=="string"?Ve:Ve.map(ke=>ke.text).join("");if(_.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&F1(je.name.getText(),nt))return;M(Ve,je.name.end)}}function Q(je){let ve=je.arguments;if(!ve||!ve.length)return;let Le=k.getResolvedSignature(je);if(Le===void 0)return;let Ve=0;for(let nt of ve){let It=bl(nt);if(c0r(_)&&!_e(It)){Ve++;continue}let ke=0;if(E0(It)){let Se=k.getTypeAtLocation(It.expression);if(k.isTupleType(Se)){let{elementFlags:tt,fixedLength:Qe}=Se.target;if(Qe===0)continue;let We=hr(tt,Kt=>!(Kt&1));(We<0?Qe:We)>0&&(ke=We<0?Qe:We)}}let _t=k.getParameterIdentifierInfoAtPosition(Le,Ve);if(Ve=Ve+(ke||1),_t){let{parameter:Se,parameterName:tt,isRestParameter:Qe}=_t;if(!(_.includeInlayParameterNameHintsWhenArgumentMatchesName||!re(It,tt))&&!Qe)continue;let St=oa(tt);if(ae(It,St))continue;F(St,Se,nt.getStart(),Qe)}}}function re(je,ve){return ct(je)?je.text===ve:no(je)?je.name.text===ve:!1}function ae(je,ve){if(!Jd(ve,$c(y),_H(n.scriptKind)))return!1;let Le=my(f,je.pos);if(!Le?.length)return!1;let Ve=a0r(ve);return Pt(Le,nt=>Ve.test(f.substring(nt.pos,nt.end)))}function _e(je){switch(je.kind){case 225:{let ve=je.operand;return F4(ve)||ct(ve)&&ZU(ve.escapedText)}case 112:case 97:case 106:case 15:case 229:return!0;case 80:{let ve=je.escapedText;return de(ve)||ZU(ve)}}return F4(je)}function me(je){if(Iu(je)&&!Kl(je,21,n)||jg(je)||!je.body)return;let Le=k.getSignatureFromDeclaration(je);if(!Le)return;let Ve=k.getTypePredicateOfSignature(Le);if(Ve?.type){let ke=Fe(Ve);if(ke){M(ke,le(je));return}}let nt=k.getReturnTypeOfSignature(Le);if(G(nt))return;let It=Ae(nt);It&&M(It,le(je))}function le(je){let ve=Kl(je,22,n);return ve?ve.end:je.parameters.end}function Oe(je){let ve=k.getSignatureFromDeclaration(je);if(!ve)return;let Le=0;for(let Ve of je.parameters)ze(Ve)&&be(Ve,uC(Ve)?ve.thisParameter:ve.parameters[Le]),!uC(Ve)&&Le++}function be(je,ve){if(X_(je)||ve===void 0)return;let Ve=ue(ve);Ve!==void 0&&M(Ve,je.questionToken?je.questionToken.end:je.name.end)}function ue(je){let ve=je.valueDeclaration;if(!ve||!wa(ve))return;let Le=k.getTypeOfSymbolAtLocation(je,ve);if(!G(Le))return Ae(Le)}function De(je){let Le=wP();return jR(Ve=>{let nt=k.typeToTypeNode(je,void 0,71286784);$.assertIsDefined(nt,"should always get typenode"),Le.writeNode(4,nt,n,Ve)})}function Ce(je){let Le=wP();return jR(Ve=>{let nt=k.typePredicateToTypePredicateNode(je,void 0,71286784);$.assertIsDefined(nt,"should always get typePredicateNode"),Le.writeNode(4,nt,n,Ve)})}function Ae(je){if(!JLe(_))return De(je);let Le=k.typeToTypeNode(je,void 0,71286784);return $.assertIsDefined(Le,"should always get typeNode"),Be(Le)}function Fe(je){if(!JLe(_))return Ce(je);let Le=k.typePredicateToTypePredicateNode(je,void 0,71286784);return $.assertIsDefined(Le,"should always get typenode"),Be(Le)}function Be(je){let ve=[];return Le(je),ve;function Le(ke){var _t,Se;if(!ke)return;let tt=Zs(ke.kind);if(tt){ve.push({text:tt});return}if(F4(ke)){ve.push({text:It(ke)});return}switch(ke.kind){case 80:$.assertNode(ke,ct);let Qe=Zi(ke),We=ke.symbol&&ke.symbol.declarations&&ke.symbol.declarations.length&&cs(ke.symbol.declarations[0]);We?ve.push(ut(Qe,We)):ve.push({text:Qe});break;case 167:$.assertNode(ke,dh),Le(ke.left),ve.push({text:"."}),Le(ke.right);break;case 183:$.assertNode(ke,gF),ke.assertsModifier&&ve.push({text:"asserts "}),Le(ke.parameterName),ke.type&&(ve.push({text:" is "}),Le(ke.type));break;case 184:$.assertNode(ke,Ug),Le(ke.typeName),ke.typeArguments&&(ve.push({text:"<"}),nt(ke.typeArguments,", "),ve.push({text:">"}));break;case 169:$.assertNode(ke,Zu),ke.modifiers&&nt(ke.modifiers," "),Le(ke.name),ke.constraint&&(ve.push({text:" extends "}),Le(ke.constraint)),ke.default&&(ve.push({text:" = "}),Le(ke.default));break;case 170:$.assertNode(ke,wa),ke.modifiers&&nt(ke.modifiers," "),ke.dotDotDotToken&&ve.push({text:"..."}),Le(ke.name),ke.questionToken&&ve.push({text:"?"}),ke.type&&(ve.push({text:": "}),Le(ke.type));break;case 186:$.assertNode(ke,fL),ve.push({text:"new "}),Ve(ke),ve.push({text:" => "}),Le(ke.type);break;case 187:$.assertNode(ke,gP),ve.push({text:"typeof "}),Le(ke.exprName),ke.typeArguments&&(ve.push({text:"<"}),nt(ke.typeArguments,", "),ve.push({text:">"}));break;case 188:$.assertNode(ke,fh),ve.push({text:"{"}),ke.members.length&&(ve.push({text:" "}),nt(ke.members,"; "),ve.push({text:" "})),ve.push({text:"}"});break;case 189:$.assertNode(ke,jH),Le(ke.elementType),ve.push({text:"[]"});break;case 190:$.assertNode(ke,yF),ve.push({text:"["}),nt(ke.elements,", "),ve.push({text:"]"});break;case 203:$.assertNode(ke,mL),ke.dotDotDotToken&&ve.push({text:"..."}),Le(ke.name),ke.questionToken&&ve.push({text:"?"}),ve.push({text:": "}),Le(ke.type);break;case 191:$.assertNode(ke,Une),Le(ke.type),ve.push({text:"?"});break;case 192:$.assertNode(ke,zne),ve.push({text:"..."}),Le(ke.type);break;case 193:$.assertNode(ke,SE),nt(ke.types," | ");break;case 194:$.assertNode(ke,vF),nt(ke.types," & ");break;case 195:$.assertNode(ke,yP),Le(ke.checkType),ve.push({text:" extends "}),Le(ke.extendsType),ve.push({text:" ? "}),Le(ke.trueType),ve.push({text:" : "}),Le(ke.falseType);break;case 196:$.assertNode(ke,n3),ve.push({text:"infer "}),Le(ke.typeParameter);break;case 197:$.assertNode(ke,i3),ve.push({text:"("}),Le(ke.type),ve.push({text:")"});break;case 199:$.assertNode(ke,bA),ve.push({text:`${Zs(ke.operator)} `}),Le(ke.type);break;case 200:$.assertNode(ke,vP),Le(ke.objectType),ve.push({text:"["}),Le(ke.indexType),ve.push({text:"]"});break;case 201:$.assertNode(ke,o3),ve.push({text:"{ "}),ke.readonlyToken&&(ke.readonlyToken.kind===40?ve.push({text:"+"}):ke.readonlyToken.kind===41&&ve.push({text:"-"}),ve.push({text:"readonly "})),ve.push({text:"["}),Le(ke.typeParameter),ke.nameType&&(ve.push({text:" as "}),Le(ke.nameType)),ve.push({text:"]"}),ke.questionToken&&(ke.questionToken.kind===40?ve.push({text:"+"}):ke.questionToken.kind===41&&ve.push({text:"-"}),ve.push({text:"?"})),ve.push({text:": "}),ke.type&&Le(ke.type),ve.push({text:"; }"});break;case 202:$.assertNode(ke,bE),Le(ke.literal);break;case 185:$.assertNode(ke,Cb),Ve(ke),ve.push({text:" => "}),Le(ke.type);break;case 206:$.assertNode(ke,AS),ke.isTypeOf&&ve.push({text:"typeof "}),ve.push({text:"import("}),Le(ke.argument),ke.assertions&&(ve.push({text:", { assert: "}),nt(ke.assertions.assertClause.elements,", "),ve.push({text:" }"})),ve.push({text:")"}),ke.qualifier&&(ve.push({text:"."}),Le(ke.qualifier)),ke.typeArguments&&(ve.push({text:"<"}),nt(ke.typeArguments,", "),ve.push({text:">"}));break;case 172:$.assertNode(ke,Zm),(_t=ke.modifiers)!=null&&_t.length&&(nt(ke.modifiers," "),ve.push({text:" "})),Le(ke.name),ke.questionToken&&ve.push({text:"?"}),ke.type&&(ve.push({text:": "}),Le(ke.type));break;case 182:$.assertNode(ke,vC),ve.push({text:"["}),nt(ke.parameters,", "),ve.push({text:"]"}),ke.type&&(ve.push({text:": "}),Le(ke.type));break;case 174:$.assertNode(ke,G1),(Se=ke.modifiers)!=null&&Se.length&&(nt(ke.modifiers," "),ve.push({text:" "})),Le(ke.name),ke.questionToken&&ve.push({text:"?"}),Ve(ke),ke.type&&(ve.push({text:": "}),Le(ke.type));break;case 180:$.assertNode(ke,hF),Ve(ke),ke.type&&(ve.push({text:": "}),Le(ke.type));break;case 181:$.assertNode(ke,cz),ve.push({text:"new "}),Ve(ke),ke.type&&(ve.push({text:": "}),Le(ke.type));break;case 208:$.assertNode(ke,xE),ve.push({text:"["}),nt(ke.elements,", "),ve.push({text:"]"});break;case 207:$.assertNode(ke,$y),ve.push({text:"{"}),ke.elements.length&&(ve.push({text:" "}),nt(ke.elements,", "),ve.push({text:" "})),ve.push({text:"}"});break;case 209:$.assertNode(ke,Vc),Le(ke.name);break;case 225:$.assertNode(ke,TA),ve.push({text:Zs(ke.operator)}),Le(ke.operand);break;case 204:$.assertNode(ke,$3e),Le(ke.head),ke.templateSpans.forEach(Le);break;case 16:$.assertNode(ke,dF),ve.push({text:It(ke)});break;case 205:$.assertNode(ke,Pge),Le(ke.type),Le(ke.literal);break;case 17:$.assertNode(ke,Cge),ve.push({text:It(ke)});break;case 18:$.assertNode(ke,Mne),ve.push({text:It(ke)});break;case 198:$.assertNode(ke,lz),ve.push({text:"this"});break;case 168:$.assertNode(ke,dc),ve.push({text:"["}),Le(ke.expression),ve.push({text:"]"});break;default:$.failBadSyntaxKind(ke)}}function Ve(ke){ke.typeParameters&&(ve.push({text:"<"}),nt(ke.typeParameters,", "),ve.push({text:">"})),ve.push({text:"("}),nt(ke.parameters,", "),ve.push({text:")"})}function nt(ke,_t){ke.forEach((Se,tt)=>{tt>0&&ve.push({text:_t}),Le(Se)})}function It(ke){switch(ke.kind){case 11:return g===0?`'${kb(ke.text,39)}'`:`"${kb(ke.text,34)}"`;case 16:case 17:case 18:{let _t=ke.rawText??she(kb(ke.text,96));switch(ke.kind){case 16:return"`"+_t+"${";case 17:return"}"+_t+"${";case 18:return"}"+_t+"`"}}}return ke.text}}function de(je){return je==="undefined"}function ze(je){if((hA(je)||Oo(je)&&zR(je))&&je.initializer){let ve=bl(je.initializer);return!(_e(ve)||SP(ve)||Lc(ve)||ZI(ve))}return!0}function ut(je,ve){let Le=ve.getSourceFile();return{text:je,span:yh(ve,Le),file:Le.fileName}}}var VA={};d(VA,{getDocCommentTemplateAtPosition:()=>S0r,getJSDocParameterNameCompletionDetails:()=>v0r,getJSDocParameterNameCompletions:()=>y0r,getJSDocTagCompletionDetails:()=>Zbt,getJSDocTagCompletions:()=>g0r,getJSDocTagNameCompletionDetails:()=>h0r,getJSDocTagNameCompletions:()=>m0r,getJsDocCommentsFromDeclarations:()=>u0r,getJsDocTagsFromDeclarations:()=>d0r});var Vbt=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","import","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],Wbt,Gbt;function u0r(t,n){let a=[];return dve(t,c=>{for(let u of _0r(c)){let _=kv(u)&&u.tags&&wt(u.tags,y=>y.kind===328&&(y.tagName.escapedText==="inheritDoc"||y.tagName.escapedText==="inheritdoc"));if(u.comment===void 0&&!_||kv(u)&&c.kind!==347&&c.kind!==339&&u.tags&&u.tags.some(y=>y.kind===347||y.kind===339)&&!u.tags.some(y=>y.kind===342||y.kind===343))continue;let f=u.comment?lM(u.comment,n):[];_&&_.comment&&(f=f.concat(lM(_.comment,n))),un(a,f,p0r)||a.push(f)}}),Rc(tr(a,[YL()]))}function p0r(t,n){return __(t,n,(a,c)=>a.kind===c.kind&&a.text===c.text)}function _0r(t){switch(t.kind){case 342:case 349:return[t];case 339:case 347:return[t,t.parent];case 324:if(EL(t.parent))return[t.parent.parent];default:return Wme(t)}}function d0r(t,n){let a=[];return dve(t,c=>{let u=sA(c);if(!(u.some(_=>_.kind===347||_.kind===339)&&!u.some(_=>_.kind===342||_.kind===343)))for(let _ of u)a.push({name:_.tagName.text,text:Qbt(_,n)}),a.push(...Hbt(Kbt(_),n))}),a}function Hbt(t,n){return an(t,a=>go([{name:a.tagName.text,text:Qbt(a,n)}],Hbt(Kbt(a),n)))}function Kbt(t){return rU(t)&&t.isNameFirst&&t.typeExpression&&p3(t.typeExpression.type)?t.typeExpression.type.jsDocPropertyTags:void 0}function lM(t,n){return typeof t=="string"?[Vy(t)]:an(t,a=>a.kind===322?[Vy(a.text)]:C7e(a,n))}function Qbt(t,n){let{comment:a,kind:c}=t,u=f0r(c);switch(c){case 350:let y=t.typeExpression;return y?_(y):a===void 0?void 0:lM(a,n);case 330:return _(t.class);case 329:return _(t.class);case 346:let g=t,k=[];if(g.constraint&&k.push(Vy(g.constraint.getText())),te(g.typeParameters)){te(k)&&k.push(Lp());let C=g.typeParameters[g.typeParameters.length-1];X(g.typeParameters,O=>{k.push(u(O.getText())),C!==O&&k.push(wm(28),Lp())})}return a&&k.push(Lp(),...lM(a,n)),k;case 345:case 351:return _(t.typeExpression);case 347:case 339:case 349:case 342:case 348:let{name:T}=t;return T?_(T):a===void 0?void 0:lM(a,n);default:return a===void 0?void 0:lM(a,n)}function _(y){return f(y.getText())}function f(y){return a?y.match(/^https?$/)?[Vy(y),...lM(a,n)]:[u(y),Lp(),...lM(a,n)]:[Vy(y)]}}function f0r(t){switch(t){case 342:return b7e;case 349:return x7e;case 346:return E7e;case 347:case 339:return T7e;default:return Vy}}function m0r(){return Wbt||(Wbt=Cr(Vbt,t=>({name:t,kind:"keyword",kindModifiers:"",sortText:KF.SortText.LocationPriority})))}var h0r=Zbt;function g0r(){return Gbt||(Gbt=Cr(Vbt,t=>({name:`@${t}`,kind:"keyword",kindModifiers:"",sortText:KF.SortText.LocationPriority})))}function Zbt(t){return{name:t,kind:"",kindModifiers:"",displayParts:[Vy(t)],documentation:j,tags:void 0,codeActions:void 0}}function y0r(t){if(!ct(t.name))return j;let n=t.name.text,a=t.parent,c=a.parent;return Rs(c)?Wn(c.parameters,u=>{if(!ct(u.name))return;let _=u.name.text;if(!(a.tags.some(f=>f!==t&&Uy(f)&&ct(f.name)&&f.name.escapedText===_)||n!==void 0&&!Ca(_,n)))return{name:_,kind:"parameter",kindModifiers:"",sortText:KF.SortText.LocationPriority}}):[]}function v0r(t){return{name:t,kind:"parameter",kindModifiers:"",displayParts:[Vy(t)],documentation:j,tags:void 0,codeActions:void 0}}function S0r(t,n,a,c){let u=la(n,a),_=fn(u,kv);if(_&&(_.comment!==void 0||te(_.tags)))return;let f=u.getStart(n);if(!_&&f0;if(U&&!Z){let Q=J+t+F+" * ",re=f===a?t+F:"";return{newText:Q+t+U+F+G+re,caretOffset:Q.length}}return{newText:J+G,caretOffset:3}}function b0r(t,n){let{text:a}=t,c=p1(n,t),u=c;for(;u<=n&&_0(a.charCodeAt(u));u++);return a.slice(c,u)}function x0r(t,n,a,c){return t.map(({name:u,dotDotDotToken:_},f)=>{let y=u.kind===80?u.text:"param"+f;return`${a} * @param ${n?_?"{...any} ":"{any} ":""}${y}${c}`}).join("")}function T0r(t,n){return`${t} * @returns${n}`}function E0r(t,n){return GPe(t,a=>VLe(a,n))}function VLe(t,n){switch(t.kind){case 263:case 219:case 175:case 177:case 174:case 220:let a=t;return{commentOwner:t,parameters:a.parameters,hasReturn:Vae(a,n)};case 304:return VLe(t.initializer,n);case 264:case 265:case 267:case 307:case 266:return{commentOwner:t};case 172:{let u=t;return u.type&&Cb(u.type)?{commentOwner:t,parameters:u.type.parameters,hasReturn:Vae(u.type,n)}:{commentOwner:t}}case 244:{let _=t.declarationList.declarations,f=_.length===1&&_[0].initializer?k0r(_[0].initializer):void 0;return f?{commentOwner:t,parameters:f.parameters,hasReturn:Vae(f,n)}:{commentOwner:t}}case 308:return"quit";case 268:return t.parent.kind===268?void 0:{commentOwner:t};case 245:return VLe(t.expression,n);case 227:{let u=t;return m_(u)===0?"quit":Rs(u.right)?{commentOwner:t,parameters:u.right.parameters,hasReturn:Vae(u.right,n)}:{commentOwner:t}}case 173:let c=t.initializer;if(c&&(bu(c)||Iu(c)))return{commentOwner:t,parameters:c.parameters,hasReturn:Vae(c,n)}}}function Vae(t,n){return!!n?.generateReturnInDocTemplate&&(Cb(t)||Iu(t)&&Vt(t.body)||lu(t)&&t.body&&Vs(t.body)&&!!sC(t.body,a=>a))}function k0r(t){for(;t.kind===218;)t=t.expression;switch(t.kind){case 219:case 220:return t;case 232:return wt(t.members,kp)}}var _be={};d(_be,{mapCode:()=>C0r});function C0r(t,n,a,c,u,_){return ki.ChangeTracker.with({host:c,formatContext:u,preferences:_},f=>{let y=n.map(k=>D0r(t,k)),g=a&&Rc(a);for(let k of y)A0r(t,f,k,g)})}function D0r(t,n){let a=[{parse:()=>DF("__mapcode_content_nodes.ts",n,t.languageVersion,!0,t.scriptKind),body:_=>_.statements},{parse:()=>DF("__mapcode_class_content_nodes.ts",`class __class { -${n} -}`,t.languageVersion,!0,t.scriptKind),body:_=>_.statements[0].members}],c=[];for(let{parse:_,body:f}of a){let y=_(),g=f(y);if(g.length&&y.parseDiagnostics.length===0)return g;g.length&&c.push({sourceFile:y,body:g})}c.sort((_,f)=>_.sourceFile.parseDiagnostics.length-f.sourceFile.parseDiagnostics.length);let{body:u}=c[0];return u}function A0r(t,n,a,c){J_(a[0])||KI(a[0])?w0r(t,n,a,c):I0r(t,n,a,c)}function w0r(t,n,a,c){let u;if(!c||!c.length?u=wt(t.statements,jf(Co,Af)):u=X(c,f=>fn(la(t,f.start),jf(Co,Af))),!u)return;let _=u.members.find(f=>a.some(y=>Wae(y,f)));if(_){let f=Ut(u.members,y=>a.some(g=>Wae(g,y)));X(a,dbe),n.replaceNodeRangeWithNodes(t,_,f,a);return}X(a,dbe),n.insertNodesAfter(t,u.members[u.members.length-1],a)}function I0r(t,n,a,c){if(!c?.length){n.insertNodesAtEndOfFile(t,a,!1);return}for(let _ of c){let f=fn(la(t,_.start),y=>jf(Vs,Ta)(y)&&Pt(y.statements,g=>a.some(k=>Wae(k,g))));if(f){let y=f.statements.find(g=>a.some(k=>Wae(k,g)));if(y){let g=Ut(f.statements,k=>a.some(T=>Wae(T,k)));X(a,dbe),n.replaceNodeRangeWithNodes(t,y,g,a);return}}}let u=t.statements;for(let _ of c){let f=fn(la(t,_.start),Vs);if(f){u=f.statements;break}}X(a,dbe),n.insertNodesAfter(t,u[u.length-1],a)}function Wae(t,n){var a,c,u,_,f,y;return t.kind!==n.kind?!1:t.kind===177?t.kind===n.kind:Vp(t)&&Vp(n)?t.name.getText()===n.name.getText():EA(t)&&EA(n)||Fge(t)&&Fge(n)?t.expression.getText()===n.expression.getText():kA(t)&&kA(n)?((a=t.initializer)==null?void 0:a.getText())===((c=n.initializer)==null?void 0:c.getText())&&((u=t.incrementor)==null?void 0:u.getText())===((_=n.incrementor)==null?void 0:_.getText())&&((f=t.condition)==null?void 0:f.getText())===((y=n.condition)==null?void 0:y.getText()):M4(t)&&M4(n)?t.expression.getText()===n.expression.getText()&&t.initializer.getText()===n.initializer.getText():bC(t)&&bC(n)?t.label.getText()===n.label.getText():t.getText()===n.getText()}function dbe(t){Xbt(t),t.parent=void 0}function Xbt(t){t.pos=-1,t.end=-1,t.forEachChild(Xbt)}var WA={};d(WA,{compareImportsOrRequireStatements:()=>YLe,compareModuleSpecifiers:()=>K0r,getImportDeclarationInsertionIndex:()=>V0r,getImportSpecifierInsertionIndex:()=>W0r,getNamedImportSpecifierComparerWithDetection:()=>J0r,getOrganizeImportsStringComparerWithDetection:()=>q0r,organizeImports:()=>P0r,testCoalesceExports:()=>H0r,testCoalesceImports:()=>G0r});function P0r(t,n,a,c,u,_){let f=ki.ChangeTracker.fromContext({host:a,formatContext:n,preferences:u}),y=_==="SortAndCombine"||_==="All",g=y,k=_==="RemoveUnused"||_==="All",T=t.statements.filter(fp),C=GLe(t,T),{comparersToTest:O,typeOrdersToTest:F}=WLe(u),M=O[0],U={moduleSpecifierComparer:typeof u.organizeImportsIgnoreCase=="boolean"?M:void 0,namedImportComparer:typeof u.organizeImportsIgnoreCase=="boolean"?M:void 0,typeOrder:u.organizeImportsTypeOrder};if(typeof u.organizeImportsIgnoreCase!="boolean"&&({comparer:U.moduleSpecifierComparer}=txt(C,O)),!U.typeOrder||typeof u.organizeImportsIgnoreCase!="boolean"){let Q=ZLe(T,O,F);if(Q){let{namedImportComparer:re,typeOrder:ae}=Q;U.namedImportComparer=U.namedImportComparer??re,U.typeOrder=U.typeOrder??ae}}C.forEach(Q=>G(Q,U)),_!=="RemoveUnused"&&O0r(t).forEach(Q=>Z(Q,U.namedImportComparer));for(let Q of t.statements.filter(Gm)){if(!Q.body)continue;if(GLe(t,Q.body.statements.filter(fp)).forEach(ae=>G(ae,U)),_!=="RemoveUnused"){let ae=Q.body.statements.filter(P_);Z(ae,U.namedImportComparer)}}return f.getChanges();function J(Q,re){if(te(Q)===0)return;Ai(Q[0],1024);let ae=g?Pg(Q,le=>Gae(le.moduleSpecifier)):[Q],_e=y?pu(ae,(le,Oe)=>KLe(le[0].moduleSpecifier,Oe[0].moduleSpecifier,U.moduleSpecifierComparer??M)):ae,me=an(_e,le=>Gae(le[0].moduleSpecifier)||le[0].moduleSpecifier===void 0?re(le):le);if(me.length===0)f.deleteNodes(t,Q,{leadingTriviaOption:ki.LeadingTriviaOption.Exclude,trailingTriviaOption:ki.TrailingTriviaOption.Include},!0);else{let le={leadingTriviaOption:ki.LeadingTriviaOption.Exclude,trailingTriviaOption:ki.TrailingTriviaOption.Include,suffix:ZT(a,n.options)};f.replaceNodeWithNodes(t,Q[0],me,le);let Oe=f.nodeHasTrailingComment(t,Q[0],le);f.deleteNodes(t,Q.slice(1),{trailingTriviaOption:ki.TrailingTriviaOption.Include},Oe)}}function G(Q,re){let ae=re.moduleSpecifierComparer??M,_e=re.namedImportComparer??M,me=re.typeOrder??"last",le=DQ({organizeImportsTypeOrder:me},_e);J(Q,be=>(k&&(be=F0r(be,t,c)),g&&(be=Ybt(be,ae,le,t)),y&&(be=pu(be,(ue,De)=>YLe(ue,De,ae))),be))}function Z(Q,re){let ae=DQ(u,re);J(Q,_e=>ext(_e,ae))}}function WLe(t){return{comparersToTest:typeof t.organizeImportsIgnoreCase=="boolean"?[XLe(t,t.organizeImportsIgnoreCase)]:[XLe(t,!0),XLe(t,!1)],typeOrdersToTest:t.organizeImportsTypeOrder?[t.organizeImportsTypeOrder]:["last","inline","first"]}}function GLe(t,n){let a=B1(t.languageVersion,!1,t.languageVariant),c=[],u=0;for(let _ of n)c[u]&&N0r(t,_,a)&&u++,c[u]||(c[u]=[]),c[u].push(_);return c}function N0r(t,n,a){let c=n.getFullStart(),u=n.getStart();a.setText(t.text,c,u-c);let _=0;for(;a.getTokenStart()=2))return!0;return!1}function O0r(t){let n=[],a=t.statements,c=te(a),u=0,_=0;for(;uGLe(t,f))}function F0r(t,n,a){let c=a.getTypeChecker(),u=a.getCompilerOptions(),_=c.getJsxNamespace(n),f=c.getJsxFragmentFactory(n),y=!!(n.transformFlags&2),g=[];for(let T of t){let{importClause:C,moduleSpecifier:O}=T;if(!C){g.push(T);continue}let{name:F,namedBindings:M}=C;if(F&&!k(F)&&(F=void 0),M)if(zx(M))k(M.name)||(M=void 0);else{let U=M.elements.filter(J=>k(J.name));U.length{if(f.attributes){let y=f.attributes.token+" ";for(let g of pu(f.attributes.elements,(k,T)=>Su(k.name.text,T.name.text)))y+=g.name.text+":",y+=Sl(g.value)?`"${g.value.text}"`:g.value.getText()+" ";return y}return""}),_=[];for(let f in u){let y=u[f],{importWithoutClause:g,typeOnlyImports:k,regularImports:T}=R0r(y);g&&_.push(g);for(let C of[T,k]){let O=C===k,{defaultImports:F,namespaceImports:M,namedImports:U}=C;if(!O&&F.length===1&&M.length===1&&U.length===0){let le=F[0];_.push(CQ(le,le.importClause.name,M[0].importClause.namedBindings));continue}let J=pu(M,(le,Oe)=>n(le.importClause.namedBindings.name.text,Oe.importClause.namedBindings.name.text));for(let le of J)_.push(CQ(le,void 0,le.importClause.namedBindings));let G=pi(F),Z=pi(U),Q=G??Z;if(!Q)continue;let re,ae=[];if(F.length===1)re=F[0].importClause.name;else for(let le of F)ae.push(W.createImportSpecifier(!1,W.createIdentifier("default"),le.importClause.name));ae.push(...j0r(U));let _e=W.createNodeArray(pu(ae,a),Z?.importClause.namedBindings.elements.hasTrailingComma),me=_e.length===0?re?void 0:W.createNamedImports(j):Z?W.updateNamedImports(Z.importClause.namedBindings,_e):W.createNamedImports(_e);c&&me&&Z?.importClause.namedBindings&&!Z4(Z.importClause.namedBindings,c)&&Ai(me,2),O&&re&&me?(_.push(CQ(Q,re,void 0)),_.push(CQ(Z??Q,void 0,me))):_.push(CQ(Q,re,me))}}return _}function ext(t,n){if(t.length===0)return t;let{exportWithoutClause:a,namedExports:c,typeOnlyExports:u}=f(t),_=[];a&&_.push(a);for(let y of[c,u]){if(y.length===0)continue;let g=[];g.push(...an(y,C=>C.exportClause&&k0(C.exportClause)?C.exportClause.elements:j));let k=pu(g,n),T=y[0];_.push(W.updateExportDeclaration(T,T.modifiers,T.isTypeOnly,T.exportClause&&(k0(T.exportClause)?W.updateNamedExports(T.exportClause,k):W.updateNamespaceExport(T.exportClause,T.exportClause.name)),T.moduleSpecifier,T.attributes))}return _;function f(y){let g,k=[],T=[];for(let C of y)C.exportClause===void 0?g=g||C:C.isTypeOnly?T.push(C):k.push(C);return{exportWithoutClause:g,namedExports:k,typeOnlyExports:T}}}function CQ(t,n,a){return W.updateImportDeclaration(t,t.modifiers,W.updateImportClause(t.importClause,t.importClause.phaseModifier,n,a),t.moduleSpecifier,t.attributes)}function HLe(t,n,a,c){switch(c?.organizeImportsTypeOrder){case"first":return cS(n.isTypeOnly,t.isTypeOnly)||a(t.name.text,n.name.text);case"inline":return a(t.name.text,n.name.text);default:return cS(t.isTypeOnly,n.isTypeOnly)||a(t.name.text,n.name.text)}}function KLe(t,n,a){let c=t===void 0?void 0:Gae(t),u=n===void 0?void 0:Gae(n);return cS(c===void 0,u===void 0)||cS(vt(c),vt(u))||a(c,u)}function L0r(t){return t.map(n=>Gae(QLe(n))||"")}function QLe(t){var n;switch(t.kind){case 272:return(n=Ci(t.moduleReference,WT))==null?void 0:n.expression;case 273:return t.moduleSpecifier;case 244:return t.declarationList.declarations[0].initializer.arguments[0]}}function M0r(t,n){let a=Ic(n)&&n.text;return Ni(a)&&Pt(t.moduleAugmentations,c=>Ic(c)&&c.text===a)}function j0r(t){return an(t,n=>Cr(B0r(n),a=>a.name&&a.propertyName&&YI(a.name)===YI(a.propertyName)?W.updateImportSpecifier(a,a.isTypeOnly,void 0,a.name):a))}function B0r(t){var n;return(n=t.importClause)!=null&&n.namedBindings&&IS(t.importClause.namedBindings)?t.importClause.namedBindings.elements:void 0}function txt(t,n){let a=[];return t.forEach(c=>{a.push(L0r(c))}),nxt(a,n)}function ZLe(t,n,a){let c=!1,u=t.filter(g=>{var k,T;let C=(T=Ci((k=g.importClause)==null?void 0:k.namedBindings,IS))==null?void 0:T.elements;return C?.length?(!c&&C.some(O=>O.isTypeOnly)&&C.some(O=>!O.isTypeOnly)&&(c=!0),!0):!1});if(u.length===0)return;let _=u.map(g=>{var k,T;return(T=Ci((k=g.importClause)==null?void 0:k.namedBindings,IS))==null?void 0:T.elements}).filter(g=>g!==void 0);if(!c||a.length===0){let g=nxt(_.map(k=>k.map(T=>T.name.text)),n);return{namedImportComparer:g.comparer,typeOrder:a.length===1?a[0]:void 0,isSorted:g.isSorted}}let f={first:1/0,last:1/0,inline:1/0},y={first:n[0],last:n[0],inline:n[0]};for(let g of n){let k={first:0,last:0,inline:0};for(let T of _)for(let C of a)k[C]=(k[C]??0)+rxt(T,(O,F)=>HLe(O,F,g,{organizeImportsTypeOrder:C}));for(let T of a){let C=T;k[C]0&&a++;return a}function nxt(t,n){let a,c=1/0;for(let u of n){let _=0;for(let f of t){if(f.length<=1)continue;let y=rxt(f,u);_+=y}_HLe(c,u,a,t)}function J0r(t,n,a){let{comparersToTest:c,typeOrdersToTest:u}=WLe(n),_=ZLe([t],c,u),f=DQ(n,c[0]),y;if(typeof n.organizeImportsIgnoreCase!="boolean"||!n.organizeImportsTypeOrder){if(_){let{namedImportComparer:g,typeOrder:k,isSorted:T}=_;y=T,f=DQ({organizeImportsTypeOrder:k},g)}else if(a){let g=ZLe(a.statements.filter(fp),c,u);if(g){let{namedImportComparer:k,typeOrder:T,isSorted:C}=g;y=C,f=DQ({organizeImportsTypeOrder:T},k)}}}return{specifierComparer:f,isSorted:y}}function V0r(t,n,a){let c=rs(t,n,vl,(u,_)=>YLe(u,_,a));return c<0?~c:c}function W0r(t,n,a){let c=rs(t,n,vl,a);return c<0?~c:c}function YLe(t,n,a){return KLe(QLe(t),QLe(n),a)||$0r(t,n)}function G0r(t,n,a,c){let u=Hae(n),_=DQ({organizeImportsTypeOrder:c?.organizeImportsTypeOrder},u);return Ybt(t,u,_,a)}function H0r(t,n,a){return ext(t,(u,_)=>HLe(u,_,Hae(n),{organizeImportsTypeOrder:a?.organizeImportsTypeOrder??"last"}))}function K0r(t,n,a){let c=Hae(!!a);return KLe(t,n,c)}var fbe={};d(fbe,{collectElements:()=>Q0r});function Q0r(t,n){let a=[];return Z0r(t,n,a),X0r(t,a),a.sort((c,u)=>c.textSpan.start-u.textSpan.start),a}function Z0r(t,n,a){let c=40,u=0,_=t.statements,f=_.length;for(;u1&&c.push(Kae(_,f,"comment"))}}function axt(t,n,a,c){_F(t)||eMe(t.pos,n,a,c)}function Kae(t,n,a){return ZF(Hu(t,n),a)}function e1r(t,n){switch(t.kind){case 242:if(Rs(t.parent))return t1r(t.parent,t,n);switch(t.parent.kind){case 247:case 250:case 251:case 249:case 246:case 248:case 255:case 300:return T(t.parent);case 259:let F=t.parent;if(F.tryBlock===t)return T(t.parent);if(F.finallyBlock===t){let M=Kl(F,98,n);if(M)return T(M)}default:return ZF(yh(t,n),"code")}case 269:return T(t.parent);case 264:case 232:case 265:case 267:case 270:case 188:case 207:return T(t);case 190:return T(t,!1,!yF(t.parent),23);case 297:case 298:return C(t.statements);case 211:return k(t);case 210:return k(t,23);case 285:return _(t);case 289:return f(t);case 286:case 287:return y(t.attributes);case 229:case 15:return g(t);case 208:return T(t,!1,!Vc(t.parent),23);case 220:return u(t);case 214:return c(t);case 218:return O(t);case 276:case 280:case 301:return a(t)}function a(F){if(!F.elements.length)return;let M=Kl(F,19,n),U=Kl(F,20,n);if(!(!M||!U||v0(M.pos,U.pos,n)))return mbe(M,U,F,n,!1,!1)}function c(F){if(!F.arguments.length)return;let M=Kl(F,21,n),U=Kl(F,22,n);if(!(!M||!U||v0(M.pos,U.pos,n)))return mbe(M,U,F,n,!1,!0)}function u(F){if(Vs(F.body)||mh(F.body)||v0(F.body.getFullStart(),F.body.getEnd(),n))return;let M=Hu(F.body.getFullStart(),F.body.getEnd());return ZF(M,"code",yh(F))}function _(F){let M=Hu(F.openingElement.getStart(n),F.closingElement.getEnd()),U=F.openingElement.tagName.getText(n),J="<"+U+">...";return ZF(M,"code",M,!1,J)}function f(F){let M=Hu(F.openingFragment.getStart(n),F.closingFragment.getEnd());return ZF(M,"code",M,!1,"<>...")}function y(F){if(F.properties.length!==0)return Kae(F.getStart(n),F.getEnd(),"code")}function g(F){if(!(F.kind===15&&F.text.length===0))return Kae(F.getStart(n),F.getEnd(),"code")}function k(F,M=19){return T(F,!1,!qf(F.parent)&&!Js(F.parent),M)}function T(F,M=!1,U=!0,J=19,G=J===19?20:24){let Z=Kl(t,J,n),Q=Kl(t,G,n);return Z&&Q&&mbe(Z,Q,F,n,M,U)}function C(F){return F.length?ZF(CE(F),"code"):void 0}function O(F){if(v0(F.getStart(),F.getEnd(),n))return;let M=Hu(F.getStart(),F.getEnd());return ZF(M,"code",yh(F))}}function t1r(t,n,a){let c=r1r(t,n,a),u=Kl(n,20,a);return c&&u&&mbe(c,u,t,a,t.kind!==220)}function mbe(t,n,a,c,u=!1,_=!0){let f=Hu(_?t.getFullStart():t.getStart(c),n.getEnd());return ZF(f,"code",yh(a,c),u)}function ZF(t,n,a=t,c=!1,u="..."){return{textSpan:t,kind:n,hintSpan:a,bannerText:u,autoCollapse:c}}function r1r(t,n,a){if(h4e(t.parameters,a)){let c=Kl(t,21,a);if(c)return c}return Kl(n,19,a)}var Qae={};d(Qae,{getRenameInfo:()=>n1r,nodeIsEligibleForRename:()=>cxt});function n1r(t,n,a,c){let u=Moe(Vh(n,a));if(cxt(u)){let _=i1r(u,t.getTypeChecker(),n,t,c);if(_)return _}return hbe(x.You_cannot_rename_this_element)}function i1r(t,n,a,c,u){let _=n.getSymbolAtLocation(t);if(!_){if(Sl(t)){let O=Loe(t,n);if(O&&(O.flags&128||O.flags&1048576&&ht(O.types,F=>!!(F.flags&128))))return tMe(t.text,t.text,"string","",t,a)}else if(j1e(t)){let O=Sp(t);return tMe(O,O,"label","",t,a)}return}let{declarations:f}=_;if(!f||f.length===0)return;if(f.some(O=>o1r(c,O)))return hbe(x.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(ct(t)&&t.escapedText==="default"&&_.parent&&_.parent.flags&1536)return;if(Sl(t)&&qG(t))return u.allowRenameOfImportPath?s1r(t,a,_):void 0;let y=a1r(a,_,n,u);if(y)return hbe(y);let g=wE.getSymbolKind(n,_,t),k=D7e(t)||jy(t)&&t.parent.kind===168?i1(g0(t)):void 0,T=k||n.symbolToString(_),C=k||n.getFullyQualifiedName(_);return tMe(T,C,g,wE.getSymbolModifiers(n,_),t,a)}function o1r(t,n){let a=n.getSourceFile();return t.isSourceFileDefaultLibrary(a)&&Au(a.fileName,".d.ts")}function a1r(t,n,a,c){if(!c.providePrefixAndSuffixTextForRename&&n.flags&2097152){let f=n.declarations&&wt(n.declarations,y=>Xm(y));f&&!f.propertyName&&(n=a.getAliasedSymbol(n))}let{declarations:u}=n;if(!u)return;let _=sxt(t.path);if(_===void 0)return Pt(u,f=>tQ(f.getSourceFile().path))?x.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(let f of u){let y=sxt(f.getSourceFile().path);if(y){let g=Math.min(_.length,y.length);for(let k=0;k<=g;k++)if(Su(_[k],y[k])!==0)return x.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function sxt(t){let n=Cd(t),a=n.lastIndexOf("node_modules");if(a!==-1)return n.slice(0,a+2)}function s1r(t,n,a){if(!vt(t.text))return hbe(x.You_cannot_rename_a_module_via_a_global_import);let c=a.declarations&&wt(a.declarations,Ta);if(!c)return;let u=au(t.text,"/index")||au(t.text,"/index.js")?void 0:wT(Qm(c.fileName),"/index"),_=u===void 0?c.fileName:u,f=u===void 0?"module":"directory",y=t.text.lastIndexOf("/")+1,g=Jp(t.getStart(n)+1+y,t.text.length-y);return{canRename:!0,fileToRename:_,kind:f,displayName:_,fullDisplayName:t.text,kindModifiers:"",triggerSpan:g}}function tMe(t,n,a,c,u,_){return{canRename:!0,fileToRename:void 0,kind:a,displayName:t,fullDisplayName:n,kindModifiers:c,triggerSpan:c1r(u,_)}}function hbe(t){return{canRename:!1,localizedErrorMessage:As(t)}}function c1r(t,n){let a=t.getStart(n),c=t.getWidth(n);return Sl(t)&&(a+=1,c-=2),Jp(a,c)}function cxt(t){switch(t.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return Noe(t);default:return!1}}var AQ={};d(AQ,{getArgumentInfoForCompletions:()=>d1r,getSignatureHelpItems:()=>l1r});function l1r(t,n,a,c,u){let _=t.getTypeChecker(),f=Hz(n,a);if(!f)return;let y=!!c&&c.kind==="characterTyped";if(y&&(jF(n,a,f)||EE(n,a)))return;let g=!!c&&c.kind==="invoked",k=C1r(f,a,n,_,g);if(!k)return;u.throwIfCancellationRequested();let T=u1r(k,_,n,f,y);return u.throwIfCancellationRequested(),T?_.runWithCancellationToken(u,C=>T.kind===0?hxt(T.candidates,T.resolvedSignature,k,n,C):A1r(T.symbol,k,n,C)):ph(n)?_1r(k,t,u):void 0}function u1r({invocation:t,argumentCount:n},a,c,u,_){switch(t.kind){case 0:{if(_&&!p1r(u,t.node,c))return;let f=[],y=a.getResolvedSignatureForSignatureHelp(t.node,f,n);return f.length===0?void 0:{kind:0,candidates:f,resolvedSignature:y}}case 1:{let{called:f}=t;if(_&&!lxt(u,c,ct(f)?f.parent:f))return;let y=H1e(f,n,a);if(y.length!==0)return{kind:0,candidates:y,resolvedSignature:To(y)};let g=a.getSymbolAtLocation(f);return g&&{kind:1,symbol:g}}case 2:return{kind:0,candidates:[t.signature],resolvedSignature:t.signature};default:return $.assertNever(t)}}function p1r(t,n,a){if(!mS(n))return!1;let c=n.getChildren(a);switch(t.kind){case 21:return un(c,t);case 28:{let u=Roe(t);return!!u&&un(c,u)}case 30:return lxt(t,a,n.expression);default:return!1}}function _1r(t,n,a){if(t.invocation.kind===2)return;let c=fxt(t.invocation),u=no(c)?c.name.text:void 0,_=n.getTypeChecker();return u===void 0?void 0:Je(n.getSourceFiles(),f=>Je(f.getNamedDeclarations().get(u),y=>{let g=y.symbol&&_.getTypeOfSymbolAtLocation(y.symbol,y),k=g&&g.getCallSignatures();if(k&&k.length)return _.runWithCancellationToken(a,T=>hxt(k,k[0],t,f,T,!0))}))}function lxt(t,n,a){let c=t.getFullStart(),u=t.parent;for(;u;){let _=vd(c,n,u,!0);if(_)return zh(a,_);u=u.parent}return $.fail("Could not find preceding token")}function d1r(t,n,a,c){let u=pxt(t,n,a,c);return!u||u.isTypeParameterList||u.invocation.kind!==0?void 0:{invocation:u.invocation.node,argumentCount:u.argumentCount,argumentIndex:u.argumentIndex}}function uxt(t,n,a,c){let u=f1r(t,a,c);if(!u)return;let{list:_,argumentIndex:f}=u,y=x1r(c,_),g=E1r(_,a);return{list:_,argumentIndex:f,argumentCount:y,argumentsSpan:g}}function f1r(t,n,a){if(t.kind===30||t.kind===21)return{list:D1r(t.parent,t,n),argumentIndex:0};{let c=Roe(t);return c&&{list:c,argumentIndex:b1r(a,c,t)}}}function pxt(t,n,a,c){let{parent:u}=t;if(mS(u)){let _=u,f=uxt(t,n,a,c);if(!f)return;let{list:y,argumentIndex:g,argumentCount:k,argumentsSpan:T}=f;return{isTypeParameterList:!!u.typeArguments&&u.typeArguments.pos===y.pos,invocation:{kind:0,node:_},argumentsSpan:T,argumentIndex:g,argumentCount:k}}else{if(r3(t)&&xA(u))return VK(t,n,a)?nMe(u,0,a):void 0;if(dF(t)&&u.parent.kind===216){let _=u,f=_.parent;$.assert(_.kind===229);let y=VK(t,n,a)?0:1;return nMe(f,y,a)}else if(vL(u)&&xA(u.parent.parent)){let _=u,f=u.parent.parent;if(Mne(t)&&!VK(t,n,a))return;let y=_.parent.templateSpans.indexOf(_),g=T1r(y,t,n,a);return nMe(f,g,a)}else if(Em(u)){let _=u.attributes.pos,f=_c(a.text,u.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:u},argumentsSpan:Jp(_,f-_),argumentIndex:0,argumentCount:1}}else{let _=K1e(t,a);if(_){let{called:f,nTypeArguments:y}=_,g={kind:1,called:f},k=Hu(f.getStart(a),t.end);return{isTypeParameterList:!0,invocation:g,argumentsSpan:k,argumentIndex:y,argumentCount:y+1}}return}}}function m1r(t,n,a,c){return h1r(t,n,a,c)||pxt(t,n,a,c)}function _xt(t){return wi(t.parent)?_xt(t.parent):t}function rMe(t){return wi(t.left)?rMe(t.left)+1:2}function h1r(t,n,a,c){let u=g1r(t);if(u===void 0)return;let _=y1r(u,a,n,c);if(_===void 0)return;let{contextualType:f,argumentIndex:y,argumentCount:g,argumentsSpan:k}=_,T=f.getNonNullableType(),C=T.symbol;if(C===void 0)return;let O=Yr(T.getCallSignatures());return O===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:O,node:t,symbol:v1r(C)},argumentsSpan:k,argumentIndex:y,argumentCount:g}}function g1r(t){switch(t.kind){case 21:case 28:return t;default:return fn(t.parent,n=>wa(n)?!0:Vc(n)||$y(n)||xE(n)?!1:"quit")}}function y1r(t,n,a,c){let{parent:u}=t;switch(u.kind){case 218:case 175:case 219:case 220:let _=uxt(t,a,n,c);if(!_)return;let{argumentIndex:f,argumentCount:y,argumentsSpan:g}=_,k=Ep(u)?c.getContextualTypeForObjectLiteralElement(u):c.getContextualType(u);return k&&{contextualType:k,argumentIndex:f,argumentCount:y,argumentsSpan:g};case 227:{let T=_xt(u),C=c.getContextualType(T),O=t.kind===21?0:rMe(u)-1,F=rMe(T);return C&&{contextualType:C,argumentIndex:O,argumentCount:F,argumentsSpan:yh(u)}}default:return}}function v1r(t){return t.name==="__type"&&Je(t.declarations,n=>{var a;return Cb(n)?(a=Ci(n.parent,gv))==null?void 0:a.symbol:void 0})||t}function S1r(t,n){let a=n.getTypeAtLocation(t.expression);if(n.isTupleType(a)){let{elementFlags:c,fixedLength:u}=a.target;if(u===0)return 0;let _=hr(c,f=>!(f&1));return _<0?u:_}return 0}function b1r(t,n,a){return dxt(t,n,a)}function x1r(t,n){return dxt(t,n,void 0)}function dxt(t,n,a){let c=n.getChildren(),u=0,_=!1;for(let f of c){if(a&&f===a)return!_&&f.kind===28&&u++,u;if(E0(f)){u+=S1r(f,t),_=!0;continue}if(f.kind!==28){u++,_=!0;continue}if(_){_=!1;continue}u++}return a?u:c.length&&Sn(c).kind===28?u+1:u}function T1r(t,n,a,c){return $.assert(a>=n.getStart(),"Assumed 'position' could not occur before node."),TPe(n)?VK(n,a,c)?0:t+2:t+1}function nMe(t,n,a){let c=r3(t.template)?1:t.template.templateSpans.length+1;return n!==0&&$.assertLessThan(n,c),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:k1r(t,a),argumentIndex:n,argumentCount:c}}function E1r(t,n){let a=t.getFullStart(),c=_c(n.text,t.getEnd(),!1);return Jp(a,c-a)}function k1r(t,n){let a=t.template,c=a.getStart(),u=a.getEnd();return a.kind===229&&Sn(a.templateSpans).literal.getFullWidth()===0&&(u=_c(n.text,u,!1)),Jp(c,u-c)}function C1r(t,n,a,c,u){for(let _=t;!Ta(_)&&(u||!Vs(_));_=_.parent){$.assert(zh(_.parent,_),"Not a subspan",()=>`Child: ${$.formatSyntaxKind(_.kind)}, parent: ${$.formatSyntaxKind(_.parent.kind)}`);let f=m1r(_,n,a,c);if(f)return f}}function D1r(t,n,a){let c=t.getChildren(a),u=c.indexOf(n);return $.assert(u>=0&&c.length>u+1),c[u+1]}function fxt(t){return t.kind===0?bre(t.node):t.called}function mxt(t){return t.kind===0?t.node:t.kind===1?t.called:t.node}var Zae=70246400;function hxt(t,n,{isTypeParameterList:a,argumentCount:c,argumentsSpan:u,invocation:_,argumentIndex:f},y,g,k){var T;let C=mxt(_),O=_.kind===2?_.symbol:g.getSymbolAtLocation(fxt(_))||k&&((T=n.declaration)==null?void 0:T.symbol),F=O?eq(g,O,k?y:void 0,void 0):j,M=Cr(t,Q=>I1r(Q,F,a,g,C,y)),U=0,J=0;for(let Q=0;Q1)){let ae=0;for(let _e of re){if(_e.isVariadic||_e.parameters.length>=c){U=J+ae;break}ae++}}J+=re.length}$.assert(U!==-1);let G={items:Xr(M,vl),applicableSpan:u,selectedItemIndex:U,argumentIndex:f,argumentCount:c},Z=G.items[U];if(Z.isVariadic){let Q=hr(Z.parameters,re=>!!re.isRest);-1yxt(C,a,c,u,f)),g=t.getDocumentationComment(a),k=t.getJsDocTags(a);return{isVariadic:!1,prefixDisplayParts:[..._,wm(30)],suffixDisplayParts:[wm(32)],separatorDisplayParts:gxt,parameters:y,documentation:g,tags:k}}var gxt=[wm(28),Lp()];function I1r(t,n,a,c,u,_){let f=(a?N1r:O1r)(t,c,u,_);return Cr(f,({isVariadic:y,parameters:g,prefix:k,suffix:T})=>{let C=[...n,...k],O=[...T,...P1r(t,u,c)],F=t.getDocumentationComment(c),M=t.getJsDocTags();return{isVariadic:y,prefixDisplayParts:C,suffixDisplayParts:O,separatorDisplayParts:gxt,parameters:g,documentation:F,tags:M}})}function P1r(t,n,a){return PC(c=>{c.writePunctuation(":"),c.writeSpace(" ");let u=a.getTypePredicateOfSignature(t);u?a.writeTypePredicate(u,n,void 0,c):a.writeType(a.getReturnTypeOfSignature(t),n,void 0,c)})}function N1r(t,n,a,c){let u=(t.target||t).typeParameters,_=wP(),f=(u||j).map(g=>yxt(g,n,a,c,_)),y=t.thisParameter?[n.symbolToParameterDeclaration(t.thisParameter,a,Zae)]:[];return n.getExpandedParameters(t).map(g=>{let k=W.createNodeArray([...y,...Cr(g,C=>n.symbolToParameterDeclaration(C,a,Zae))]),T=PC(C=>{_.writeList(2576,k,c,C)});return{isVariadic:!1,parameters:f,prefix:[wm(30)],suffix:[wm(32),...T]}})}function O1r(t,n,a,c){let u=wP(),_=PC(g=>{if(t.typeParameters&&t.typeParameters.length){let k=W.createNodeArray(t.typeParameters.map(T=>n.typeParameterToDeclaration(T,a,Zae)));u.writeList(53776,k,c,g)}}),f=n.getExpandedParameters(t),y=n.hasEffectiveRestParameter(t)?f.length===1?g=>!0:g=>{var k;return!!(g.length&&((k=Ci(g[g.length-1],wx))==null?void 0:k.links.checkFlags)&32768)}:g=>!1;return f.map(g=>({isVariadic:y(g),parameters:g.map(k=>F1r(k,n,a,c,u)),prefix:[..._,wm(21)],suffix:[wm(22)]}))}function F1r(t,n,a,c,u){let _=PC(g=>{let k=n.symbolToParameterDeclaration(t,a,Zae);u.writeNode(4,k,c,g)}),f=n.isOptionalParameter(t.valueDeclaration),y=wx(t)&&!!(t.links.checkFlags&32768);return{name:t.name,documentation:t.getDocumentationComment(n),displayParts:_,isOptional:f,isRest:y}}function yxt(t,n,a,c,u){let _=PC(f=>{let y=n.typeParameterToDeclaration(t,a,Zae);u.writeNode(4,y,c,f)});return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(n),displayParts:_,isOptional:!1,isRest:!1}}var gbe={};d(gbe,{getSmartSelectionRange:()=>R1r});function R1r(t,n){var a,c;let u={textSpan:Hu(n.getFullStart(),n.getEnd())},_=n;e:for(;;){let g=j1r(_);if(!g.length)break;for(let k=0;kt)break e;let F=to(hb(n.text,C.end));if(F&&F.kind===2&&y(F.pos,F.end),L1r(n,t,C)){if(pme(C)&&lu(_)&&!v0(C.getStart(n),C.getEnd(),n)&&f(C.getStart(n),C.getEnd()),Vs(C)||vL(C)||dF(C)||Mne(C)||T&&dF(T)||Df(C)&&h_(_)||kL(C)&&Df(_)||Oo(C)&&kL(_)&&g.length===1||AA(C)||TE(C)||p3(C)){_=C;break}if(vL(_)&&O&&zte(O)){let G=C.getFullStart()-2,Z=O.getStart()+1;f(G,Z)}let M=kL(C)&&B1r(T)&&$1r(O)&&!v0(T.getStart(),O.getStart(),n),U=M?T.getEnd():C.getStart(),J=M?O.getStart():U1r(n,C);if(hy(C)&&((a=C.jsDoc)!=null&&a.length)&&f(To(C.jsDoc).getStart(),J),kL(C)){let G=C.getChildren()[0];G&&hy(G)&&((c=G.jsDoc)!=null&&c.length)&&G.getStart()!==C.pos&&(U=Math.min(U,To(G.jsDoc).getStart()))}f(U,J),(Ic(C)||FO(C))&&f(U+1,J-1),_=C;break}if(k===g.length-1)break e}}return u;function f(g,k){if(g!==k){let T=Hu(g,k);(!u||!XL(T,u.textSpan)&&gb(T,t))&&(u={textSpan:T,...u&&{parent:u}})}}function y(g,k){f(g,k);let T=g;for(;n.text.charCodeAt(T)===47;)T++;f(T,k)}}function L1r(t,n,a){return $.assert(a.pos<=n),ny===t.readonlyToken||y.kind===148||y===t.questionToken||y.kind===58),f=wQ(_,({kind:y})=>y===23||y===169||y===24);return[a,IQ(ybe(f,({kind:y})=>y===59)),u]}if(Zm(t)){let a=wQ(t.getChildren(),f=>f===t.name||un(t.modifiers,f)),c=((n=a[0])==null?void 0:n.kind)===321?a[0]:void 0,u=c?a.slice(1):a,_=ybe(u,({kind:f})=>f===59);return c?[c,IQ(_)]:_}if(wa(t)){let a=wQ(t.getChildren(),u=>u===t.dotDotDotToken||u===t.name),c=wQ(a,u=>u===a[0]||u===t.questionToken);return ybe(c,({kind:u})=>u===64)}return Vc(t)?ybe(t.getChildren(),({kind:a})=>a===64):t.getChildren()}function wQ(t,n){let a=[],c;for(let u of t)n(u)?(c=c||[],c.push(u)):(c&&(a.push(IQ(c)),c=void 0),a.push(u));return c&&a.push(IQ(c)),a}function ybe(t,n,a=!0){if(t.length<2)return t;let c=hr(t,n);if(c===-1)return t;let u=t.slice(0,c),_=t[c],f=Sn(t),y=a&&f.kind===27,g=t.slice(c+1,y?t.length-1:void 0),k=Bc([u.length?IQ(u):void 0,_,g.length?IQ(g):void 0]);return y?k.concat(f):k}function IQ(t){return $.assertGreaterThanOrEqual(t.length,1),xv(PA.createSyntaxList(t),t[0].pos,Sn(t).end)}function B1r(t){let n=t&&t.kind;return n===19||n===23||n===21||n===287}function $1r(t){let n=t&&t.kind;return n===20||n===24||n===22||n===288}function U1r(t,n){switch(n.kind){case 342:case 339:case 349:case 347:case 344:return t.getLineEndOfPosition(n.getStart());default:return n.getEnd()}}var wE={};d(wE,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>q1r,getSymbolKind:()=>Sxt,getSymbolModifiers:()=>z1r});var vxt=70246400;function Sxt(t,n,a){let c=bxt(t,n,a);if(c!=="")return c;let u=iL(n);return u&32?Qu(n,232)?"local class":"class":u&384?"enum":u&524288?"type":u&64?"interface":u&262144?"type parameter":u&8?"enum member":u&2097152?"alias":u&1536?"module":c}function bxt(t,n,a){let c=t.getRootSymbols(n);if(c.length===1&&To(c).flags&8192&&t.getTypeOfSymbolAtLocation(n,a).getNonNullableType().getCallSignatures().length!==0)return"method";if(t.isUndefinedSymbol(n))return"var";if(t.isArgumentsSymbol(n))return"local var";if(a.kind===110&&Vt(a)||lP(a))return"parameter";let u=iL(n);if(u&3)return mve(n)?"parameter":n.valueDeclaration&&zR(n.valueDeclaration)?"const":n.valueDeclaration&&DG(n.valueDeclaration)?"using":n.valueDeclaration&&CG(n.valueDeclaration)?"await using":X(n.declarations,pre)?"let":Ext(n)?"local var":"var";if(u&16)return Ext(n)?"local function":"function";if(u&32768)return"getter";if(u&65536)return"setter";if(u&8192)return"method";if(u&16384)return"constructor";if(u&131072)return"index";if(u&4){if(u&33554432&&n.links.checkFlags&6){let _=X(t.getRootSymbols(n),f=>{if(f.getFlags()&98311)return"property"});return _||(t.getTypeOfSymbolAtLocation(n,a).getCallSignatures().length?"method":"property")}return"property"}return""}function xxt(t){if(t.declarations&&t.declarations.length){let[n,...a]=t.declarations,c=te(a)&&aae(n)&&Pt(a,_=>!aae(_))?65536:0,u=Kz(n,c);if(u)return u.split(",")}return[]}function z1r(t,n){if(!n)return"";let a=new Set(xxt(n));if(n.flags&2097152){let c=t.getAliasedSymbol(n);c!==n&&X(xxt(c),u=>{a.add(u)})}return n.flags&16777216&&a.add("optional"),a.size>0?so(a.values()).join(","):""}function Txt(t,n,a,c,u,_,f,y,g,k){var T;let C=[],O=[],F=[],M=iL(n),U=f&1?bxt(t,n,u):"",J=!1,G=u.kind===110&&xre(u)||lP(u),Z,Q,re=!1,ae={canIncreaseExpansionDepth:!1,truncated:!1},_e=!1;if(u.kind===110&&!G)return{displayParts:[Wg(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(U!==""||M&32||M&2097152){if(U==="getter"||U==="setter"){let Le=wt(n.declarations,Ve=>Ve.name===u&&Ve.kind!==212);if(Le)switch(Le.kind){case 178:U="getter";break;case 179:U="setter";break;case 173:U="accessor";break;default:$.assertNever(Le)}else U="property"}let je;if(_??(_=G?t.getTypeAtLocation(u):t.getTypeOfSymbolAtLocation(n,u)),u.parent&&u.parent.kind===212){let Le=u.parent.name;(Le===u||Le&&Le.getFullWidth()===0)&&(u=u.parent)}let ve;if(mS(u)?ve=u:(F1e(u)||Wz(u)||u.parent&&(Em(u.parent)||xA(u.parent))&&Rs(n.valueDeclaration))&&(ve=u.parent),ve){je=t.getResolvedSignature(ve);let Le=ve.kind===215||Js(ve)&&ve.expression.kind===108,Ve=Le?_.getConstructSignatures():_.getCallSignatures();if(je&&!un(Ve,je.target)&&!un(Ve,je)&&(je=Ve.length?Ve[0]:void 0),je){switch(Le&&M&32?(U="constructor",Be(_.symbol,U)):M&2097152?(U="alias",de(U),C.push(Lp()),Le&&(je.flags&4&&(C.push(Wg(128)),C.push(Lp())),C.push(Wg(105)),C.push(Lp())),Fe(n)):Be(n,U),U){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":C.push(wm(59)),C.push(Lp()),!(ro(_)&16)&&_.symbol&&(En(C,eq(t,_.symbol,c,void 0,5)),C.push(YL())),Le&&(je.flags&4&&(C.push(Wg(128)),C.push(Lp())),C.push(Wg(105)),C.push(Lp())),ze(je,Ve,262144);break;default:ze(je,Ve)}J=!0,re=Ve.length>1}}else if(z1e(u)&&!(M&98304)||u.kind===137&&u.parent.kind===177){let Le=u.parent;if(n.declarations&&wt(n.declarations,nt=>nt===(u.kind===137?Le.parent:Le))){let nt=Le.kind===177?_.getNonNullableType().getConstructSignatures():_.getNonNullableType().getCallSignatures();t.isImplementationOfOverload(Le)?je=nt[0]:je=t.getSignatureFromDeclaration(Le),Le.kind===177?(U="constructor",Be(_.symbol,U)):Be(Le.kind===180&&!(_.symbol.flags&2048||_.symbol.flags&4096)?_.symbol:n,U),je&&ze(je,nt),J=!0,re=nt.length>1}}}if(M&32&&!J&&!G){be();let je=Qu(n,232);je&&(de("local class"),C.push(Lp())),Ae(n,f)||(je||(C.push(Wg(86)),C.push(Lp())),Fe(n),ut(n,a))}if(M&64&&f&2&&(Oe(),Ae(n,f)||(C.push(Wg(120)),C.push(Lp()),Fe(n),ut(n,a))),M&524288&&f&2&&(Oe(),C.push(Wg(156)),C.push(Lp()),Fe(n),ut(n,a),C.push(Lp()),C.push(Yz(64)),C.push(Lp()),En(C,ZK(t,u.parent&&z1(u.parent)?t.getTypeAtLocation(u.parent):t.getDeclaredTypeOfSymbol(n),c,8388608,g,k,ae))),M&384&&(Oe(),Ae(n,f)||(Pt(n.declarations,je=>CA(je)&&lA(je))&&(C.push(Wg(87)),C.push(Lp())),C.push(Wg(94)),C.push(Lp()),Fe(n,void 0))),M&1536&&!G&&(Oe(),!Ae(n,f))){let je=Qu(n,268),ve=je&&je.name&&je.name.kind===80;C.push(Wg(ve?145:144)),C.push(Lp()),Fe(n)}if(M&262144&&f&2)if(Oe(),C.push(wm(21)),C.push(Vy("type parameter")),C.push(wm(22)),C.push(Lp()),Fe(n),n.parent)ue(),Fe(n.parent,c),ut(n.parent,c);else{let je=Qu(n,169);if(je===void 0)return $.fail();let ve=je.parent;if(ve)if(Rs(ve)){ue();let Le=t.getSignatureFromDeclaration(ve);ve.kind===181?(C.push(Wg(105)),C.push(Lp())):ve.kind!==180&&ve.name&&Fe(ve.symbol),En(C,gve(t,Le,a,32))}else s1(ve)&&(ue(),C.push(Wg(156)),C.push(Lp()),Fe(ve.symbol),ut(ve.symbol,a))}if(M&8){U="enum member",Be(n,"enum member");let je=(T=n.declarations)==null?void 0:T[0];if(je?.kind===307){let ve=t.getConstantValue(je);ve!==void 0&&(C.push(Lp()),C.push(Yz(64)),C.push(Lp()),C.push(hg(r6e(ve),typeof ve=="number"?7:8)))}}if(n.flags&2097152){if(Oe(),!J||O.length===0&&F.length===0){let je=t.getAliasedSymbol(n);if(je!==n&&je.declarations&&je.declarations.length>0){let ve=je.declarations[0],Le=cs(ve);if(Le&&!J){let Ve=sre(ve)&&ko(ve,128),nt=n.name!=="default"&&!Ve,It=Txt(t,je,Pn(ve),c,Le,_,f,nt?n:je,g,k);C.push(...It.displayParts),C.push(YL()),Z=It.documentation,Q=It.tags,ae&&It.canIncreaseVerbosityLevel&&(ae.canIncreaseExpansionDepth=!0)}else Z=je.getContextualDocumentationComment(ve,t),Q=je.getJsDocTags(t)}}if(n.declarations)switch(n.declarations[0].kind){case 271:C.push(Wg(95)),C.push(Lp()),C.push(Wg(145));break;case 278:C.push(Wg(95)),C.push(Lp()),C.push(Wg(n.declarations[0].isExportEquals?64:90));break;case 282:C.push(Wg(95));break;default:C.push(Wg(102))}C.push(Lp()),Fe(n),X(n.declarations,je=>{if(je.kind===272){let ve=je;if(pA(ve))C.push(Lp()),C.push(Yz(64)),C.push(Lp()),C.push(Wg(149)),C.push(wm(21)),C.push(hg(Sp(hU(ve)),8)),C.push(wm(22));else{let Le=t.getSymbolAtLocation(ve.moduleReference);Le&&(C.push(Lp()),C.push(Yz(64)),C.push(Lp()),Fe(Le,c))}return!0}})}if(!J)if(U!==""){if(_){if(G?(Oe(),C.push(Wg(110))):Be(n,U),U==="property"||U==="accessor"||U==="getter"||U==="setter"||U==="JSX attribute"||M&3||U==="local var"||U==="index"||U==="using"||U==="await using"||G){if(C.push(wm(59)),C.push(Lp()),_.symbol&&_.symbol.flags&262144&&U!=="index"){let je=PC(ve=>{let Le=t.typeParameterToDeclaration(_,c,vxt,void 0,void 0,g,k,ae);le().writeNode(4,Le,Pn(vs(c)),ve)},g);En(C,je)}else En(C,ZK(t,_,c,void 0,g,k,ae));if(wx(n)&&n.links.target&&wx(n.links.target)&&n.links.target.links.tupleLabelDeclaration){let je=n.links.target.links.tupleLabelDeclaration;$.assertNode(je.name,ct),C.push(Lp()),C.push(wm(21)),C.push(Vy(Zi(je.name))),C.push(wm(22))}}else if(M&16||M&8192||M&16384||M&131072||M&98304||U==="method"){let je=_.getNonNullableType().getCallSignatures();je.length&&(ze(je[0],je),re=je.length>1)}}}else U=Sxt(t,n,u);if(O.length===0&&!re&&(O=n.getContextualDocumentationComment(c,t)),O.length===0&&M&4&&n.parent&&n.declarations&&X(n.parent.declarations,je=>je.kind===308))for(let je of n.declarations){if(!je.parent||je.parent.kind!==227)continue;let ve=t.getSymbolAtLocation(je.parent.right);if(ve&&(O=ve.getDocumentationComment(t),F=ve.getJsDocTags(t),O.length>0))break}if(O.length===0&&ct(u)&&n.valueDeclaration&&Vc(n.valueDeclaration)){let je=n.valueDeclaration,ve=je.parent,Le=je.propertyName||je.name;if(ct(Le)&&$y(ve)){let Ve=g0(Le),nt=t.getTypeAtLocation(ve);O=Je(nt.isUnion()?nt.types:[nt],It=>{let ke=It.getProperty(Ve);return ke?ke.getDocumentationComment(t):void 0})||j}}F.length===0&&!re&&!gU(u)&&(F=n.getContextualJsDocTags(c,t)),O.length===0&&Z&&(O=Z),F.length===0&&Q&&(F=Q);let me=!ae.truncated&&ae.canIncreaseExpansionDepth;return{displayParts:C,documentation:O,symbolKind:U,tags:F.length===0?void 0:F,canIncreaseVerbosityLevel:k!==void 0?me:void 0};function le(){return wP()}function Oe(){C.length&&C.push(YL()),be()}function be(){y&&(de("alias"),C.push(Lp()))}function ue(){C.push(Lp()),C.push(Wg(103)),C.push(Lp())}function De(je,ve){if(k===void 0)return!1;let Le=je.flags&96?t.getDeclaredTypeOfSymbol(je):t.getTypeOfSymbolAtLocation(je,u);return!Le||t.isLibType(Le)?!1:0{let It=t.getEmitResolver().symbolToDeclarations(je,Le,17408,g,k!==void 0?k-1:void 0,ae),ke=le(),_t=je.valueDeclaration&&Pn(je.valueDeclaration);It.forEach((Se,tt)=>{tt>0&&nt.writeLine(),ke.writeNode(4,Se,_t,nt)})},g);return En(C,Ve),_e=!0,!0}return!1}function Fe(je,ve){let Le;y&&je===n&&(je=y),U==="index"&&(Le=t.getIndexInfosOfIndexSymbol(je));let Ve=[];je.flags&131072&&Le?(je.parent&&(Ve=eq(t,je.parent)),Ve.push(wm(23)),Le.forEach((nt,It)=>{Ve.push(...ZK(t,nt.keyType)),It!==Le.length-1&&(Ve.push(Lp()),Ve.push(wm(52)),Ve.push(Lp()))}),Ve.push(wm(24))):Ve=eq(t,je,ve||a,void 0,7),En(C,Ve),n.flags&16777216&&C.push(wm(58))}function Be(je,ve){Oe(),ve&&(de(ve),je&&!Pt(je.declarations,Le=>Iu(Le)||(bu(Le)||w_(Le))&&!Le.name)&&(C.push(Lp()),Fe(je)))}function de(je){switch(je){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":C.push(hve(je));return;default:C.push(wm(21)),C.push(hve(je)),C.push(wm(22));return}}function ze(je,ve,Le=0){En(C,gve(t,je,c,Le|32,g,k,ae)),ve.length>1&&(C.push(Lp()),C.push(wm(21)),C.push(Yz(40)),C.push(hg((ve.length-1).toString(),7)),C.push(Lp()),C.push(Vy(ve.length===2?"overload":"overloads")),C.push(wm(22))),O=je.getDocumentationComment(t),F=je.getJsDocTags(),ve.length>1&&O.length===0&&F.length===0&&(O=ve[0].getDocumentationComment(t),F=ve[0].getJsDocTags().filter(Ve=>Ve.name!=="deprecated"))}function ut(je,ve){let Le=PC(Ve=>{let nt=t.symbolToTypeParameterDeclarations(je,ve,vxt);le().writeList(53776,nt,Pn(vs(ve)),Ve)});En(C,Le)}}function q1r(t,n,a,c,u,_=x3(u),f,y,g){return Txt(t,n,a,c,u,void 0,_,f,y,g)}function Ext(t){return t.parent?!1:X(t.declarations,n=>{if(n.kind===219)return!0;if(n.kind!==261&&n.kind!==263)return!1;for(let a=n.parent;!tP(a);a=a.parent)if(a.kind===308||a.kind===269)return!1;return!0})}var ki={};d(ki,{ChangeTracker:()=>W1r,LeadingTriviaOption:()=>Dxt,TrailingTriviaOption:()=>Axt,applyChanges:()=>cMe,assignPositionsToNode:()=>xbe,createWriter:()=>Ixt,deleteNode:()=>e2,getAdjustedEndPosition:()=>XF,isThisTypeAnnotatable:()=>V1r,isValidLocationToAddComment:()=>Pxt});function kxt(t){let n=t.__pos;return $.assert(typeof n=="number"),n}function iMe(t,n){$.assert(typeof n=="number"),t.__pos=n}function Cxt(t){let n=t.__end;return $.assert(typeof n=="number"),n}function oMe(t,n){$.assert(typeof n=="number"),t.__end=n}var Dxt=(t=>(t[t.Exclude=0]="Exclude",t[t.IncludeAll=1]="IncludeAll",t[t.JSDoc=2]="JSDoc",t[t.StartLine=3]="StartLine",t))(Dxt||{}),Axt=(t=>(t[t.Exclude=0]="Exclude",t[t.ExcludeWhitespace=1]="ExcludeWhitespace",t[t.Include=2]="Include",t))(Axt||{});function wxt(t,n){return _c(t,n,!1,!0)}function J1r(t,n){let a=n;for(;a0?1:0,O=iC(PU(t,k)+C,t);return O=wxt(t.text,O),iC(PU(t,O),t)}function aMe(t,n,a){let{end:c}=n,{trailingTriviaOption:u}=a;if(u===2){let _=hb(t.text,c);if(_){let f=PU(t,n.end);for(let y of _){if(y.kind===2||PU(t,y.pos)>f)break;if(PU(t,y.end)>f)return _c(t.text,y.end,!0,!0)}}}}function XF(t,n,a){var c;let{end:u}=n,{trailingTriviaOption:_}=a;if(_===0)return u;if(_===1){let g=go(hb(t.text,u),my(t.text,u)),k=(c=g?.[g.length-1])==null?void 0:c.end;return k||u}let f=aMe(t,n,a);if(f)return f;let y=_c(t.text,u,!0);return y!==u&&(_===2||Dd(t.text.charCodeAt(y-1)))?y:u}function vbe(t,n){return!!n&&!!t.parent&&(n.kind===28||n.kind===27&&t.parent.kind===211)}function V1r(t){return bu(t)||i_(t)}var W1r=class fct{constructor(n,a){this.newLineCharacter=n,this.formatContext=a,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(n){return new fct(ZT(n.host,n.formatContext.options),n.formatContext)}static with(n,a){let c=fct.fromContext(n);return a(c),c.getChanges()}pushRaw(n,a){$.assertEqual(n.fileName,a.fileName);for(let c of a.textChanges)this.changes.push({kind:3,sourceFile:n,text:c.newText,range:zoe(c.span)})}deleteRange(n,a){this.changes.push({kind:0,sourceFile:n,range:a})}delete(n,a){this.deletedNodes.push({sourceFile:n,node:a})}deleteNode(n,a,c={leadingTriviaOption:1}){this.deleteRange(n,NQ(n,a,a,c))}deleteNodes(n,a,c={leadingTriviaOption:1},u){for(let _ of a){let f=w3(n,_,c,u),y=XF(n,_,c);this.deleteRange(n,{pos:f,end:y}),u=!!aMe(n,_,c)}}deleteModifier(n,a){this.deleteRange(n,{pos:a.getStart(n),end:_c(n.text,a.end,!0)})}deleteNodeRange(n,a,c,u={leadingTriviaOption:1}){let _=w3(n,a,u),f=XF(n,c,u);this.deleteRange(n,{pos:_,end:f})}deleteNodeRangeExcludingEnd(n,a,c,u={leadingTriviaOption:1}){let _=w3(n,a,u),f=c===void 0?n.text.length:w3(n,c,u);this.deleteRange(n,{pos:_,end:f})}replaceRange(n,a,c,u={}){this.changes.push({kind:1,sourceFile:n,range:a,options:u,node:c})}replaceNode(n,a,c,u=PQ){this.replaceRange(n,NQ(n,a,a,u),c,u)}replaceNodeRange(n,a,c,u,_=PQ){this.replaceRange(n,NQ(n,a,c,_),u,_)}replaceRangeWithNodes(n,a,c,u={}){this.changes.push({kind:2,sourceFile:n,range:a,options:u,nodes:c})}replaceNodeWithNodes(n,a,c,u=PQ){this.replaceRangeWithNodes(n,NQ(n,a,a,u),c,u)}replaceNodeWithText(n,a,c){this.replaceRangeWithText(n,NQ(n,a,a,PQ),c)}replaceNodeRangeWithNodes(n,a,c,u,_=PQ){this.replaceRangeWithNodes(n,NQ(n,a,c,_),u,_)}nodeHasTrailingComment(n,a,c=PQ){return!!aMe(n,a,c)}nextCommaToken(n,a){let c=OP(a,a.parent,n);return c&&c.kind===28?c:void 0}replacePropertyAssignment(n,a,c){let u=this.nextCommaToken(n,a)?"":","+this.newLineCharacter;this.replaceNode(n,a,c,{suffix:u})}insertNodeAt(n,a,c,u={}){this.replaceRange(n,y0(a),c,u)}insertNodesAt(n,a,c,u={}){this.replaceRangeWithNodes(n,y0(a),c,u)}insertNodeAtTopOfFile(n,a,c){this.insertAtTopOfFile(n,a,c)}insertNodesAtTopOfFile(n,a,c){this.insertAtTopOfFile(n,a,c)}insertAtTopOfFile(n,a,c){let u=evr(n),_={prefix:u===0?void 0:this.newLineCharacter,suffix:(Dd(n.text.charCodeAt(u))?"":this.newLineCharacter)+(c?this.newLineCharacter:"")};Zn(a)?this.insertNodesAt(n,u,a,_):this.insertNodeAt(n,u,a,_)}insertNodesAtEndOfFile(n,a,c){this.insertAtEndOfFile(n,a,c)}insertAtEndOfFile(n,a,c){let u=n.end+1,_={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(c?this.newLineCharacter:"")};this.insertNodesAt(n,u,a,_)}insertStatementsInNewFile(n,a,c){this.newFileChanges||(this.newFileChanges=d_()),this.newFileChanges.add(n,{oldFile:c,statements:a})}insertFirstParameter(n,a,c){let u=pi(a);u?this.insertNodeBefore(n,u,c):this.insertNodeAt(n,a.pos,c)}insertNodeBefore(n,a,c,u=!1,_={}){this.insertNodeAt(n,w3(n,a,_),c,this.getOptionsForInsertNodeBefore(a,c,u))}insertNodesBefore(n,a,c,u=!1,_={}){this.insertNodesAt(n,w3(n,a,_),c,this.getOptionsForInsertNodeBefore(a,To(c),u))}insertModifierAt(n,a,c,u={}){this.insertNodeAt(n,a,W.createToken(c),u)}insertModifierBefore(n,a,c){return this.insertModifierAt(n,c.getStart(n),a,{suffix:" "})}insertCommentBeforeLine(n,a,c,u){let _=iC(a,n),f=w7e(n.text,_),y=Pxt(n,f),g=KL(n,y?f:c),k=n.text.slice(_,f),T=`${y?"":this.newLineCharacter}//${u}${this.newLineCharacter}${k}`;this.insertText(n,g.getStart(n),T)}insertJsdocCommentBefore(n,a,c){let u=a.getStart(n);if(a.jsDoc)for(let y of a.jsDoc)this.deleteRange(n,{pos:p1(y.getStart(n),n),end:XF(n,y,{})});let _=Qoe(n.text,u-1),f=n.text.slice(_,u);this.insertNodeAt(n,u,c,{suffix:this.newLineCharacter+f})}createJSDocText(n,a){let c=an(a.jsDoc,_=>Ni(_.comment)?W.createJSDocText(_.comment):_.comment),u=to(a.jsDoc);return u&&v0(u.pos,u.end,n)&&te(c)===0?void 0:W.createNodeArray(tr(c,W.createJSDocText(` -`)))}replaceJSDocComment(n,a,c){this.insertJsdocCommentBefore(n,G1r(a),W.createJSDocComment(this.createJSDocText(n,a),W.createNodeArray(c)))}addJSDocTags(n,a,c){let u=Xr(a.jsDoc,f=>f.tags),_=c.filter(f=>!u.some((y,g)=>{let k=H1r(y,f);return k&&(u[g]=k),!!k}));this.replaceJSDocComment(n,a,[...u,..._])}filterJSDocTags(n,a,c){this.replaceJSDocComment(n,a,yr(Xr(a.jsDoc,u=>u.tags),c))}replaceRangeWithText(n,a,c){this.changes.push({kind:3,sourceFile:n,range:a,text:c})}insertText(n,a,c){this.replaceRangeWithText(n,y0(a),c)}tryInsertTypeAnnotation(n,a,c){let u;if(Rs(a)){if(u=Kl(a,22,n),!u){if(!Iu(a))return!1;u=To(a.parameters)}}else u=(a.kind===261?a.exclamationToken:a.questionToken)??a.name;return this.insertNodeAt(n,u.end,c,{prefix:": "}),!0}tryInsertThisTypeAnnotation(n,a,c){let u=Kl(a,21,n).getStart(n)+1,_=a.parameters.length?", ":"";this.insertNodeAt(n,u,c,{prefix:"this: ",suffix:_})}insertTypeParameters(n,a,c){let u=(Kl(a,21,n)||To(a.parameters)).getStart(n);this.insertNodesAt(n,u,c,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(n,a,c){return fa(n)||J_(n)?{suffix:c?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Oo(n)?{suffix:", "}:wa(n)?wa(a)?{suffix:", "}:{}:Ic(n)&&fp(n.parent)||IS(n)?{suffix:", "}:Xm(n)?{suffix:","+(c?this.newLineCharacter:" ")}:$.failBadSyntaxKind(n)}insertNodeAtConstructorStart(n,a,c){let u=pi(a.body.statements);!u||!a.body.multiLine?this.replaceConstructorBody(n,a,[c,...a.body.statements]):this.insertNodeBefore(n,u,c)}insertNodeAtConstructorStartAfterSuperCall(n,a,c){let u=wt(a.body.statements,_=>af(_)&&U4(_.expression));!u||!a.body.multiLine?this.replaceConstructorBody(n,a,[...a.body.statements,c]):this.insertNodeAfter(n,u,c)}insertNodeAtConstructorEnd(n,a,c){let u=Yr(a.body.statements);!u||!a.body.multiLine?this.replaceConstructorBody(n,a,[...a.body.statements,c]):this.insertNodeAfter(n,u,c)}replaceConstructorBody(n,a,c){this.replaceNode(n,a.body,W.createBlock(c,!0))}insertNodeAtEndOfScope(n,a,c){let u=w3(n,a.getLastToken(),{});this.insertNodeAt(n,u,c,{prefix:Dd(n.text.charCodeAt(a.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(n,a,c){this.insertNodeAtStartWorker(n,a,c)}insertNodeAtObjectStart(n,a,c){this.insertNodeAtStartWorker(n,a,c)}insertNodeAtStartWorker(n,a,c){let u=this.guessIndentationFromExistingMembers(n,a)??this.computeIndentationForNewMember(n,a);this.insertNodeAt(n,Sbe(a).pos,c,this.getInsertNodeAtStartInsertOptions(n,a,u))}guessIndentationFromExistingMembers(n,a){let c,u=a;for(let _ of Sbe(a)){if(Xre(u,_,n))return;let f=_.getStart(n),y=rd.SmartIndenter.findFirstNonWhitespaceColumn(p1(f,n),f,n,this.formatContext.options);if(c===void 0)c=y;else if(y!==c)return;u=_}return c}computeIndentationForNewMember(n,a){let c=a.getStart(n);return rd.SmartIndenter.findFirstNonWhitespaceColumn(p1(c,n),c,n,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(n,a,c){let _=Sbe(a).length===0,f=!this.classesWithNodesInsertedAtStart.has(hl(a));f&&this.classesWithNodesInsertedAtStart.set(hl(a),{node:a,sourceFile:n});let y=Lc(a)&&(!h0(n)||!_),g=Lc(a)&&h0(n)&&_&&!f;return{indentation:c,prefix:(g?",":"")+this.newLineCharacter,suffix:y?",":Af(a)&&_?";":""}}insertNodeAfterComma(n,a,c){let u=this.insertNodeAfterWorker(n,this.nextCommaToken(n,a)||a,c);this.insertNodeAt(n,u,c,this.getInsertNodeAfterOptions(n,a))}insertNodeAfter(n,a,c){let u=this.insertNodeAfterWorker(n,a,c);this.insertNodeAt(n,u,c,this.getInsertNodeAfterOptions(n,a))}insertNodeAtEndOfList(n,a,c){this.insertNodeAt(n,a.end,c,{prefix:", "})}insertNodesAfter(n,a,c){let u=this.insertNodeAfterWorker(n,a,To(c));this.insertNodesAt(n,u,c,this.getInsertNodeAfterOptions(n,a))}insertNodeAfterWorker(n,a,c){return tvr(a,c)&&n.text.charCodeAt(a.end-1)!==59&&this.replaceRange(n,y0(a.end),W.createToken(27)),XF(n,a,{})}getInsertNodeAfterOptions(n,a){let c=this.getInsertNodeAfterOptionsWorker(a);return{...c,prefix:a.end===n.end&&fa(a)?c.prefix?` -${c.prefix}`:` -`:c.prefix}}getInsertNodeAfterOptionsWorker(n){switch(n.kind){case 264:case 268:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 261:case 11:case 80:return{prefix:", "};case 304:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 170:return{};default:return $.assert(fa(n)||qte(n)),{suffix:this.newLineCharacter}}}insertName(n,a,c){if($.assert(!a.name),a.kind===220){let u=Kl(a,39,n),_=Kl(a,21,n);_?(this.insertNodesAt(n,_.getStart(n),[W.createToken(100),W.createIdentifier(c)],{joiner:" "}),e2(this,n,u)):(this.insertText(n,To(a.parameters).getStart(n),`function ${c}(`),this.replaceRange(n,u,W.createToken(22))),a.body.kind!==242&&(this.insertNodesAt(n,a.body.getStart(n),[W.createToken(19),W.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(n,a.body.end,[W.createToken(27),W.createToken(20)],{joiner:" "}))}else{let u=Kl(a,a.kind===219?100:86,n).end;this.insertNodeAt(n,u,W.createIdentifier(c),{prefix:" "})}}insertExportModifier(n,a){this.insertText(n,a.getStart(n),"export ")}insertImportSpecifierAtIndex(n,a,c,u){let _=c.elements[u-1];_?this.insertNodeInListAfter(n,_,a):this.insertNodeBefore(n,c.elements[0],a,!v0(c.elements[0].getStart(),c.parent.parent.getStart(),n))}insertNodeInListAfter(n,a,c,u=rd.SmartIndenter.getContainingList(a,n)){if(!u){$.fail("node is not a list element");return}let _=BR(u,a);if(_<0)return;let f=a.getEnd();if(_!==u.length-1){let y=la(n,a.end);if(y&&vbe(a,y)){let g=u[_+1],k=wxt(n.text,g.getFullStart()),T=`${Zs(y.kind)}${n.text.substring(y.end,k)}`;this.insertNodesAt(n,k,[c],{suffix:T})}}else{let y=a.getStart(n),g=p1(y,n),k,T=!1;if(u.length===1)k=28;else{let C=vd(a.pos,n);k=vbe(a,C)?C.kind:28,T=p1(u[_-1].getStart(n),n)!==g}if((J1r(n.text,a.end)||!v0(u.pos,u.end,n))&&(T=!0),T){this.replaceRange(n,y0(f),W.createToken(k));let C=rd.SmartIndenter.findFirstNonWhitespaceColumn(g,y,n,this.formatContext.options),O=_c(n.text,f,!0,!1);for(;O!==f&&Dd(n.text.charCodeAt(O-1));)O--;this.replaceRange(n,y0(O),c,{indentation:C,prefix:this.newLineCharacter})}else this.replaceRange(n,y0(f),c,{prefix:`${Zs(k)} `})}}parenthesizeExpression(n,a){this.replaceRange(n,Yhe(a),W.createParenthesizedExpression(a))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:n,sourceFile:a})=>{let[c,u]=Q1r(n,a);if(c!==void 0&&u!==void 0){let _=Sbe(n).length===0,f=v0(c,u,a);_&&f&&c!==u-1&&this.deleteRange(a,y0(c,u-1)),f&&this.insertText(a,u-1,this.newLineCharacter)}})}finishDeleteDeclarations(){let n=new Set;for(let{sourceFile:a,node:c}of this.deletedNodes)this.deletedNodes.some(u=>u.sourceFile===a&&n7e(u.node,c))||(Zn(c)?this.deleteRange(a,ege(a,c)):lMe.deleteDeclaration(this,n,a,c));n.forEach(a=>{let c=a.getSourceFile(),u=rd.SmartIndenter.getContainingList(a,c);if(a!==Sn(u))return;let _=Hi(u,f=>!n.has(f),u.length-2);_!==-1&&this.deleteRange(c,{pos:u[_].end,end:sMe(c,u[_+1])})})}getChanges(n){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let a=bbe.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,n);return this.newFileChanges&&this.newFileChanges.forEach((c,u)=>{a.push(bbe.newFileChanges(u,c,this.newLineCharacter,this.formatContext))}),a}createNewFile(n,a,c){this.insertStatementsInNewFile(a,c,n)}};function G1r(t){if(t.kind!==220)return t;let n=t.parent.kind===173?t.parent:t.parent.parent;return n.jsDoc=t.jsDoc,n}function H1r(t,n){if(t.kind===n.kind)switch(t.kind){case 342:{let a=t,c=n;return ct(a.name)&&ct(c.name)&&a.name.escapedText===c.name.escapedText?W.createJSDocParameterTag(void 0,c.name,!1,c.typeExpression,c.isNameFirst,a.comment):void 0}case 343:return W.createJSDocReturnTag(void 0,n.typeExpression,t.comment);case 345:return W.createJSDocTypeTag(void 0,n.typeExpression,t.comment)}}function sMe(t,n){return _c(t.text,w3(t,n,{leadingTriviaOption:1}),!1,!0)}function K1r(t,n,a,c){let u=sMe(t,c);if(a===void 0||v0(XF(t,n,{}),u,t))return u;let _=vd(c.getStart(t),t);if(vbe(n,_)){let f=vd(n.getStart(t),t);if(vbe(a,f)){let y=_c(t.text,_.getEnd(),!0,!0);if(v0(f.getStart(t),_.getStart(t),t))return Dd(t.text.charCodeAt(y-1))?y-1:y;if(Dd(t.text.charCodeAt(y)))return y}}return u}function Q1r(t,n){let a=Kl(t,19,n),c=Kl(t,20,n);return[a?.end,c?.end]}function Sbe(t){return Lc(t)?t.properties:t.members}var bbe;(t=>{function n(y,g,k,T){return Wn(Pg(y,C=>C.sourceFile.path),C=>{let O=C[0].sourceFile,F=pu(C,(U,J)=>U.range.pos-J.range.pos||U.range.end-J.range.end);for(let U=0;U`${JSON.stringify(F[U].range)} and ${JSON.stringify(F[U+1].range)}`);let M=Wn(F,U=>{let J=CE(U.range),G=U.kind===1?Pn(Ku(U.node))??U.sourceFile:U.kind===2?Pn(Ku(U.nodes[0]))??U.sourceFile:U.sourceFile,Z=u(U,G,O,g,k,T);if(!(J.length===Z.length&&j7e(G.text,Z,J.start)))return WK(J,Z)});return M.length>0?{fileName:O.fileName,textChanges:M}:void 0})}t.getTextChangesFromChanges=n;function a(y,g,k,T){let C=c(mne(y),g,k,T);return{fileName:y,textChanges:[WK(Jp(0,0),C)],isNewFile:!0}}t.newFileChanges=a;function c(y,g,k,T){let C=an(g,M=>M.statements.map(U=>U===4?"":f(U,M.oldFile,k).text)).join(k),O=DF("any file name",C,{languageVersion:99,jsDocParsingMode:1},!0,y),F=rd.formatDocument(O,T);return cMe(C,F)+k}t.newFileChangesWorker=c;function u(y,g,k,T,C,O){var F;if(y.kind===0)return"";if(y.kind===3)return y.text;let{options:M={},range:{pos:U}}=y,J=Q=>_(Q,g,k,U,M,T,C,O),G=y.kind===2?y.nodes.map(Q=>Lk(J(Q),T)).join(((F=y.options)==null?void 0:F.joiner)||T):J(y.node),Z=M.indentation!==void 0||p1(U,g)===U?G:G.replace(/^\s+/,"");return(M.prefix||"")+Z+(!M.suffix||au(Z,M.suffix)?"":M.suffix)}function _(y,g,k,T,{indentation:C,prefix:O,delta:F},M,U,J){let{node:G,text:Z}=f(y,g,M);J&&J(G,Z);let Q=cae(U,g),re=C!==void 0?C:rd.SmartIndenter.getIndentation(T,k,Q,O===M||p1(T,g)===T);F===void 0&&(F=rd.SmartIndenter.shouldIndentChildNode(Q,y)&&Q.indentSize||0);let ae={text:Z,getLineAndCharacterOfPosition(me){return qs(this,me)}},_e=rd.formatNodeGivenIndentation(G,ae,g.languageVariant,re,F,{...U,options:Q});return cMe(Z,_e)}function f(y,g,k){let T=Ixt(k),C=iQ(k);return DC({newLine:C,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},T).writeNode(4,y,g,T),{text:T.getText(),node:xbe(y)}}t.getNonformattedText=f})(bbe||(bbe={}));function cMe(t,n){for(let a=n.length-1;a>=0;a--){let{span:c,newText:u}=n[a];t=`${t.substring(0,c.start)}${u}${t.substring(Xn(c))}`}return t}function Z1r(t){return _c(t,0)===t.length}var X1r={...xK,factory:IH(xK.factory.flags|1,xK.factory.baseFactory)};function xbe(t){let n=Dn(t,xbe,X1r,Y1r,xbe),a=fu(n)?n:Object.create(n);return xv(a,kxt(t),Cxt(t)),a}function Y1r(t,n,a,c,u){let _=Bn(t,n,a,c,u);if(!_)return _;$.assert(t);let f=_===t?W.createNodeArray(_.slice(0)):_;return xv(f,kxt(t),Cxt(t)),f}function Ixt(t){let n=0,a=nH(t),c=de=>{de&&iMe(de,n)},u=de=>{de&&oMe(de,n)},_=de=>{de&&iMe(de,n)},f=de=>{de&&oMe(de,n)},y=de=>{de&&iMe(de,n)},g=de=>{de&&oMe(de,n)};function k(de,ze){if(ze||!Z1r(de)){n=a.getTextPos();let ut=0;for(;p0(de.charCodeAt(de.length-ut-1));)ut++;n-=ut}}function T(de){a.write(de),k(de,!1)}function C(de){a.writeComment(de)}function O(de){a.writeKeyword(de),k(de,!1)}function F(de){a.writeOperator(de),k(de,!1)}function M(de){a.writePunctuation(de),k(de,!1)}function U(de){a.writeTrailingSemicolon(de),k(de,!1)}function J(de){a.writeParameter(de),k(de,!1)}function G(de){a.writeProperty(de),k(de,!1)}function Z(de){a.writeSpace(de),k(de,!1)}function Q(de){a.writeStringLiteral(de),k(de,!1)}function re(de,ze){a.writeSymbol(de,ze),k(de,!1)}function ae(de){a.writeLine(de)}function _e(){a.increaseIndent()}function me(){a.decreaseIndent()}function le(){return a.getText()}function Oe(de){a.rawWrite(de),k(de,!1)}function be(de){a.writeLiteral(de),k(de,!0)}function ue(){return a.getTextPos()}function De(){return a.getLine()}function Ce(){return a.getColumn()}function Ae(){return a.getIndent()}function Fe(){return a.isAtStartOfLine()}function Be(){a.clear(),n=0}return{onBeforeEmitNode:c,onAfterEmitNode:u,onBeforeEmitNodeArray:_,onAfterEmitNodeArray:f,onBeforeEmitToken:y,onAfterEmitToken:g,write:T,writeComment:C,writeKeyword:O,writeOperator:F,writePunctuation:M,writeTrailingSemicolon:U,writeParameter:J,writeProperty:G,writeSpace:Z,writeStringLiteral:Q,writeSymbol:re,writeLine:ae,increaseIndent:_e,decreaseIndent:me,getText:le,rawWrite:Oe,writeLiteral:be,getTextPos:ue,getLine:De,getColumn:Ce,getIndent:Ae,isAtStartOfLine:Fe,hasTrailingComment:()=>a.hasTrailingComment(),hasTrailingWhitespace:()=>a.hasTrailingWhitespace(),clear:Be}}function evr(t){let n;for(let k of t.statements)if(yS(k))n=k;else break;let a=0,c=t.text;if(n)return a=n.end,g(),a;let u=VI(c);u!==void 0&&(a=u.length,g());let _=my(c,a);if(!_)return a;let f,y;for(let k of _){if(k.kind===3){if(ore(c,k.pos)){f={range:k,pinnedOrTripleSlash:!0};continue}}else if(bme(c,k.pos,k.end)){f={range:k,pinnedOrTripleSlash:!0};continue}if(f){if(f.pinnedOrTripleSlash)break;let T=t.getLineAndCharacterOfPosition(k.pos).line,C=t.getLineAndCharacterOfPosition(f.range.end).line;if(T>=C+2)break}if(t.statements.length){y===void 0&&(y=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line);let T=t.getLineAndCharacterOfPosition(k.end).line;if(y{function n(_,f,y,g){switch(g.kind){case 170:{let F=g.parent;Iu(F)&&F.parameters.length===1&&!Kl(F,21,y)?_.replaceNodeWithText(y,g,"()"):OQ(_,f,y,g);break}case 273:case 272:let k=y.imports.length&&g===To(y.imports).parent||g===wt(y.statements,$O);e2(_,y,g,{leadingTriviaOption:k?0:hy(g)?2:3});break;case 209:let T=g.parent;T.kind===208&&g!==Sn(T.elements)?e2(_,y,g):OQ(_,f,y,g);break;case 261:u(_,f,y,g);break;case 169:OQ(_,f,y,g);break;case 277:let O=g.parent;O.elements.length===1?c(_,y,O):OQ(_,f,y,g);break;case 275:c(_,y,g);break;case 27:e2(_,y,g,{trailingTriviaOption:0});break;case 100:e2(_,y,g,{leadingTriviaOption:0});break;case 264:case 263:e2(_,y,g,{leadingTriviaOption:hy(g)?2:3});break;default:g.parent?H1(g.parent)&&g.parent.name===g?a(_,y,g.parent):Js(g.parent)&&un(g.parent.arguments,g)?OQ(_,f,y,g):e2(_,y,g):e2(_,y,g)}}t.deleteDeclaration=n;function a(_,f,y){if(!y.namedBindings)e2(_,f,y.parent);else{let g=y.name.getStart(f),k=la(f,y.name.end);if(k&&k.kind===28){let T=_c(f.text,k.end,!1,!0);_.deleteRange(f,{pos:g,end:T})}else e2(_,f,y.name)}}function c(_,f,y){if(y.parent.name){let g=$.checkDefined(la(f,y.pos-1));_.deleteRange(f,{pos:g.getStart(f),end:y.end})}else{let g=mA(y,273);e2(_,f,g)}}function u(_,f,y,g){let{parent:k}=g;if(k.kind===300){_.deleteNodeRange(y,Kl(k,21,y),Kl(k,22,y));return}if(k.declarations.length!==1){OQ(_,f,y,g);return}let T=k.parent;switch(T.kind){case 251:case 250:_.replaceNode(y,g,W.createObjectLiteralExpression());break;case 249:e2(_,y,k);break;case 244:e2(_,y,T,{leadingTriviaOption:hy(T)?2:3});break;default:$.assertNever(T)}}})(lMe||(lMe={}));function e2(t,n,a,c={leadingTriviaOption:1}){let u=w3(n,a,c),_=XF(n,a,c);t.deleteRange(n,{pos:u,end:_})}function OQ(t,n,a,c){let u=$.checkDefined(rd.SmartIndenter.getContainingList(c,a)),_=BR(u,c);if($.assert(_!==-1),u.length===1){e2(t,a,c);return}$.assert(!n.has(c),"Deleting a node twice"),n.add(c),t.deleteRange(a,{pos:sMe(a,c),end:_===u.length-1?XF(a,c,{}):K1r(a,c,u[_-1],u[_+1])})}var rd={};d(rd,{FormattingContext:()=>Oxt,FormattingRequestKind:()=>Nxt,RuleAction:()=>Fxt,RuleFlags:()=>Rxt,SmartIndenter:()=>BS,anyContext:()=>Tbe,createTextRangeWithKind:()=>Dbe,formatDocument:()=>Wvr,formatNodeGivenIndentation:()=>Yvr,formatOnClosingCurly:()=>Vvr,formatOnEnter:()=>zvr,formatOnOpeningCurly:()=>Jvr,formatOnSemicolon:()=>qvr,formatSelection:()=>Gvr,getAllRules:()=>Lxt,getFormatContext:()=>Fvr,getFormattingScanner:()=>uMe,getIndentationString:()=>EMe,getRangeOfEnclosingComment:()=>sTt});var Nxt=(t=>(t[t.FormatDocument=0]="FormatDocument",t[t.FormatSelection=1]="FormatSelection",t[t.FormatOnEnter=2]="FormatOnEnter",t[t.FormatOnSemicolon=3]="FormatOnSemicolon",t[t.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",t[t.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",t))(Nxt||{}),Oxt=class{constructor(t,n,a){this.sourceFile=t,this.formattingRequestKind=n,this.options=a}updateContext(t,n,a,c,u){this.currentTokenSpan=$.checkDefined(t),this.currentTokenParent=$.checkDefined(n),this.nextTokenSpan=$.checkDefined(a),this.nextTokenParent=$.checkDefined(c),this.contextNode=$.checkDefined(u),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){let t=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,n=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=t===n}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(t){let n=this.sourceFile.getLineAndCharacterOfPosition(t.getStart(this.sourceFile)).line,a=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line;return n===a}BlockIsOnOneLine(t){let n=Kl(t,19,this.sourceFile),a=Kl(t,20,this.sourceFile);if(n&&a){let c=this.sourceFile.getLineAndCharacterOfPosition(n.getEnd()).line,u=this.sourceFile.getLineAndCharacterOfPosition(a.getStart(this.sourceFile)).line;return c===u}return!1}},rvr=B1(99,!1,0),nvr=B1(99,!1,1);function uMe(t,n,a,c,u){let _=n===1?nvr:rvr;_.setText(t),_.resetTokenState(a);let f=!0,y,g,k,T,C,O=u({advance:F,readTokenInfo:ae,readEOFTokenRange:me,isOnToken:le,isOnEOF:Oe,getCurrentLeadingTrivia:()=>y,lastTrailingTriviaWasNewLine:()=>f,skipToEndOf:ue,skipToStartOf:De,getTokenFullStart:()=>C?.token.pos??_.getTokenStart(),getStartPos:()=>C?.token.pos??_.getTokenStart()});return C=void 0,_.setText(void 0),O;function F(){C=void 0,_.getTokenFullStart()!==a?f=!!g&&Sn(g).kind===4:_.scan(),y=void 0,g=void 0;let Ae=_.getTokenFullStart();for(;Ae(t[t.None=0]="None",t[t.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",t[t.StopProcessingTokenActions=2]="StopProcessingTokenActions",t[t.InsertSpace=4]="InsertSpace",t[t.InsertNewLine=8]="InsertNewLine",t[t.DeleteSpace=16]="DeleteSpace",t[t.DeleteToken=32]="DeleteToken",t[t.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",t[t.StopAction=3]="StopAction",t[t.ModifySpaceAction=28]="ModifySpaceAction",t[t.ModifyTokenAction=96]="ModifyTokenAction",t))(Fxt||{}),Rxt=(t=>(t[t.None=0]="None",t[t.CanDeleteNewLines=1]="CanDeleteNewLines",t))(Rxt||{});function Lxt(){let t=[];for(let _e=0;_e<=166;_e++)_e!==1&&t.push(_e);function n(..._e){return{tokens:t.filter(me=>!_e.some(le=>le===me)),isSpecific:!1}}let a={tokens:t,isSpecific:!1},c=gq([...t,3]),u=gq([...t,1]),_=jxt(83,166),f=jxt(30,79),y=[103,104,165,130,142,152],g=[46,47,55,54],k=[9,10,80,21,23,19,110,105],T=[80,21,110,105],C=[80,22,24,105],O=[80,21,110,105],F=[80,22,24,105],M=[2,3],U=[80,...rve],J=c,G=gq([80,32,3,86,95,102]),Z=gq([22,3,92,113,98,93,85]),Q=[yo("IgnoreBeforeComment",a,M,Tbe,1),yo("IgnoreAfterLineComment",2,a,Tbe,1),yo("NotSpaceBeforeColon",a,59,[Pa,Xae,Uxt],16),yo("SpaceAfterColon",59,a,[Pa,Xae,Svr],4),yo("NoSpaceBeforeQuestionMark",a,58,[Pa,Xae,Uxt],16),yo("SpaceAfterQuestionMarkInConditionalOperator",58,a,[Pa,svr],4),yo("NoSpaceAfterQuestionMark",58,a,[Pa,avr],16),yo("NoSpaceBeforeDot",a,[25,29],[Pa,Ovr],16),yo("NoSpaceAfterDot",[25,29],a,[Pa],16),yo("NoSpaceBetweenImportParenInImportType",102,21,[Pa,yvr],16),yo("NoSpaceAfterUnaryPrefixOperator",g,k,[Pa,Xae],16),yo("NoSpaceAfterUnaryPreincrementOperator",46,T,[Pa],16),yo("NoSpaceAfterUnaryPredecrementOperator",47,O,[Pa],16),yo("NoSpaceBeforeUnaryPostincrementOperator",C,46,[Pa,nTt],16),yo("NoSpaceBeforeUnaryPostdecrementOperator",F,47,[Pa,nTt],16),yo("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Pa,NC],4),yo("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Pa,NC],4),yo("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Pa,NC],4),yo("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Pa,NC],4),yo("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Pa,NC],4),yo("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Pa,NC],4),yo("NoSpaceAfterCloseBrace",20,[28,27],[Pa],16),yo("NewLineBeforeCloseBraceInBlockContext",c,20,[qxt],8),yo("SpaceAfterCloseBrace",20,n(22),[Pa,uvr],4),yo("SpaceBetweenCloseBraceAndElse",20,93,[Pa],4),yo("SpaceBetweenCloseBraceAndWhile",20,117,[Pa],4),yo("NoSpaceBetweenEmptyBraceBrackets",19,20,[Pa,Kxt],16),yo("SpaceAfterConditionalClosingParen",22,23,[Yae],4),yo("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Wxt],16),yo("SpaceAfterStarInGeneratorDeclaration",42,80,[Wxt],4),yo("SpaceAfterFunctionInFuncDecl",100,a,[I3],4),yo("NewLineAfterOpenBraceInBlockContext",19,a,[qxt],8),yo("SpaceAfterGetSetInMember",[139,153],80,[I3],4),yo("NoSpaceBetweenYieldKeywordAndStar",127,42,[Pa,rTt],16),yo("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],a,[Pa,rTt],4),yo("NoSpaceBetweenReturnAndSemicolon",107,27,[Pa],16),yo("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],a,[Pa],4),yo("SpaceAfterLetConstInVariableDeclaration",[121,87],a,[Pa,Tvr],4),yo("NoSpaceBeforeOpenParenInFuncCall",a,21,[Pa,dvr,fvr],16),yo("SpaceBeforeBinaryKeywordOperator",a,y,[Pa,NC],4),yo("SpaceAfterBinaryKeywordOperator",y,a,[Pa,NC],4),yo("SpaceAfterVoidOperator",116,a,[Pa,Avr],4),yo("SpaceBetweenAsyncAndOpenParen",134,21,[gvr,Pa],4),yo("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Pa],4),yo("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Pa],16),yo("SpaceBeforeJsxAttribute",a,80,[vvr,Pa],4),yo("SpaceBeforeSlashInJsxOpeningElement",a,44,[Yxt,Pa],4),yo("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[Yxt,Pa],16),yo("NoSpaceBeforeEqualInJsxAttribute",a,64,[Zxt,Pa],16),yo("NoSpaceAfterEqualInJsxAttribute",64,a,[Zxt,Pa],16),yo("NoSpaceBeforeJsxNamespaceColon",80,59,[Xxt],16),yo("NoSpaceAfterJsxNamespaceColon",59,80,[Xxt],16),yo("NoSpaceAfterModuleImport",[144,149],21,[Pa],16),yo("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],a,[Pa],4),yo("SpaceBeforeCertainTypeScriptKeywords",a,[96,119,161],[Pa],4),yo("SpaceAfterModuleName",11,19,[Evr],4),yo("SpaceBeforeArrow",a,39,[Pa],4),yo("SpaceAfterArrow",39,a,[Pa],4),yo("NoSpaceAfterEllipsis",26,80,[Pa],16),yo("NoSpaceAfterOptionalParameters",58,[22,28],[Pa,Xae],16),yo("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Pa,kvr],16),yo("NoSpaceBeforeOpenAngularBracket",U,30,[Pa,ese],16),yo("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Pa,ese],16),yo("NoSpaceAfterOpenAngularBracket",30,a,[Pa,ese],16),yo("NoSpaceBeforeCloseAngularBracket",a,32,[Pa,ese],16),yo("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Pa,ese,lvr,Dvr],16),yo("SpaceBeforeAt",[22,80],60,[Pa],4),yo("NoSpaceAfterAt",60,a,[Pa],16),yo("SpaceAfterDecorator",a,[128,80,95,90,86,126,125,123,124,139,153,23,42],[xvr],4),yo("NoSpaceBeforeNonNullAssertionOperator",a,54,[Pa,wvr],16),yo("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Pa,Cvr],16),yo("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Pa],4)],re=[yo("SpaceAfterConstructor",137,21,[Wy("insertSpaceAfterConstructor"),Pa],4),yo("NoSpaceAfterConstructor",137,21,[jS("insertSpaceAfterConstructor"),Pa],16),yo("SpaceAfterComma",28,a,[Wy("insertSpaceAfterCommaDelimiter"),Pa,gMe,mvr,hvr],4),yo("NoSpaceAfterComma",28,a,[jS("insertSpaceAfterCommaDelimiter"),Pa,gMe],16),yo("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Wy("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),I3],4),yo("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[jS("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),I3],16),yo("SpaceAfterKeywordInControl",_,21,[Wy("insertSpaceAfterKeywordsInControlFlowStatements"),Yae],4),yo("NoSpaceAfterKeywordInControl",_,21,[jS("insertSpaceAfterKeywordsInControlFlowStatements"),Yae],16),yo("SpaceAfterOpenParen",21,a,[Wy("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pa],4),yo("SpaceBeforeCloseParen",a,22,[Wy("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pa],4),yo("SpaceBetweenOpenParens",21,21,[Wy("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pa],4),yo("NoSpaceBetweenParens",21,22,[Pa],16),yo("NoSpaceAfterOpenParen",21,a,[jS("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pa],16),yo("NoSpaceBeforeCloseParen",a,22,[jS("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pa],16),yo("SpaceAfterOpenBracket",23,a,[Wy("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Pa],4),yo("SpaceBeforeCloseBracket",a,24,[Wy("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Pa],4),yo("NoSpaceBetweenBrackets",23,24,[Pa],16),yo("NoSpaceAfterOpenBracket",23,a,[jS("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Pa],16),yo("NoSpaceBeforeCloseBracket",a,24,[jS("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Pa],16),yo("SpaceAfterOpenBrace",19,a,[$xt("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),zxt],4),yo("SpaceBeforeCloseBrace",a,20,[$xt("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),zxt],4),yo("NoSpaceBetweenEmptyBraceBrackets",19,20,[Pa,Kxt],16),yo("NoSpaceAfterOpenBrace",19,a,[pMe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Pa],16),yo("NoSpaceBeforeCloseBrace",a,20,[pMe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Pa],16),yo("SpaceBetweenEmptyBraceBrackets",19,20,[Wy("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),yo("NoSpaceBetweenEmptyBraceBrackets",19,20,[pMe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Pa],16),yo("SpaceAfterTemplateHeadAndMiddle",[16,17],a,[Wy("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Qxt],4,1),yo("SpaceBeforeTemplateMiddleAndTail",a,[17,18],[Wy("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Pa],4),yo("NoSpaceAfterTemplateHeadAndMiddle",[16,17],a,[jS("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Qxt],16,1),yo("NoSpaceBeforeTemplateMiddleAndTail",a,[17,18],[jS("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Pa],16),yo("SpaceAfterOpenBraceInJsxExpression",19,a,[Wy("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Pa,kbe],4),yo("SpaceBeforeCloseBraceInJsxExpression",a,20,[Wy("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Pa,kbe],4),yo("NoSpaceAfterOpenBraceInJsxExpression",19,a,[jS("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Pa,kbe],16),yo("NoSpaceBeforeCloseBraceInJsxExpression",a,20,[jS("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Pa,kbe],16),yo("SpaceAfterSemicolonInFor",27,a,[Wy("insertSpaceAfterSemicolonInForStatements"),Pa,dMe],4),yo("NoSpaceAfterSemicolonInFor",27,a,[jS("insertSpaceAfterSemicolonInForStatements"),Pa,dMe],16),yo("SpaceBeforeBinaryOperator",a,f,[Wy("insertSpaceBeforeAndAfterBinaryOperators"),Pa,NC],4),yo("SpaceAfterBinaryOperator",f,a,[Wy("insertSpaceBeforeAndAfterBinaryOperators"),Pa,NC],4),yo("NoSpaceBeforeBinaryOperator",a,f,[jS("insertSpaceBeforeAndAfterBinaryOperators"),Pa,NC],16),yo("NoSpaceAfterBinaryOperator",f,a,[jS("insertSpaceBeforeAndAfterBinaryOperators"),Pa,NC],16),yo("SpaceBeforeOpenParenInFuncDecl",a,21,[Wy("insertSpaceBeforeFunctionParenthesis"),Pa,I3],4),yo("NoSpaceBeforeOpenParenInFuncDecl",a,21,[jS("insertSpaceBeforeFunctionParenthesis"),Pa,I3],16),yo("NewLineBeforeOpenBraceInControl",Z,19,[Wy("placeOpenBraceOnNewLineForControlBlocks"),Yae,hMe],8,1),yo("NewLineBeforeOpenBraceInFunction",J,19,[Wy("placeOpenBraceOnNewLineForFunctions"),I3,hMe],8,1),yo("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",G,19,[Wy("placeOpenBraceOnNewLineForFunctions"),Gxt,hMe],8,1),yo("SpaceAfterTypeAssertion",32,a,[Wy("insertSpaceAfterTypeAssertion"),Pa,vMe],4),yo("NoSpaceAfterTypeAssertion",32,a,[jS("insertSpaceAfterTypeAssertion"),Pa,vMe],16),yo("SpaceBeforeTypeAnnotation",a,[58,59],[Wy("insertSpaceBeforeTypeAnnotation"),Pa,fMe],4),yo("NoSpaceBeforeTypeAnnotation",a,[58,59],[jS("insertSpaceBeforeTypeAnnotation"),Pa,fMe],16),yo("NoOptionalSemicolon",27,u,[Bxt("semicolons","remove"),Pvr],32),yo("OptionalSemicolon",a,u,[Bxt("semicolons","insert"),Nvr],64)],ae=[yo("NoSpaceBeforeSemicolon",a,27,[Pa],16),yo("SpaceBeforeOpenBraceInControl",Z,19,[_Me("placeOpenBraceOnNewLineForControlBlocks"),Yae,yMe,mMe],4,1),yo("SpaceBeforeOpenBraceInFunction",J,19,[_Me("placeOpenBraceOnNewLineForFunctions"),I3,Ebe,yMe,mMe],4,1),yo("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",G,19,[_Me("placeOpenBraceOnNewLineForFunctions"),Gxt,yMe,mMe],4,1),yo("NoSpaceBeforeComma",a,28,[Pa],16),yo("NoSpaceBeforeOpenBracket",n(134,84),23,[Pa],16),yo("NoSpaceAfterCloseBracket",24,a,[Pa,bvr],16),yo("SpaceAfterSemicolon",27,a,[Pa],4),yo("SpaceBetweenForAndAwaitKeyword",99,135,[Pa],4),yo("SpaceBetweenDotDotDotAndTypeName",26,U,[Pa],16),yo("SpaceBetweenStatements",[22,92,93,84],a,[Pa,gMe,ivr],4),yo("SpaceAfterTryCatchFinally",[113,85,98],19,[Pa],4)];return[...Q,...re,...ae]}function yo(t,n,a,c,u,_=0){return{leftTokenRange:Mxt(n),rightTokenRange:Mxt(a),rule:{debugName:t,context:c,action:u,flags:_}}}function gq(t){return{tokens:t,isSpecific:!0}}function Mxt(t){return typeof t=="number"?gq([t]):Zn(t)?gq(t):t}function jxt(t,n,a=[]){let c=[];for(let u=t;u<=n;u++)un(a,u)||c.push(u);return gq(c)}function Bxt(t,n){return a=>a.options&&a.options[t]===n}function Wy(t){return n=>n.options&&Ho(n.options,t)&&!!n.options[t]}function pMe(t){return n=>n.options&&Ho(n.options,t)&&!n.options[t]}function jS(t){return n=>!n.options||!Ho(n.options,t)||!n.options[t]}function _Me(t){return n=>!n.options||!Ho(n.options,t)||!n.options[t]||n.TokensAreOnSameLine()}function $xt(t){return n=>!n.options||!Ho(n.options,t)||!!n.options[t]}function dMe(t){return t.contextNode.kind===249}function ivr(t){return!dMe(t)}function NC(t){switch(t.contextNode.kind){case 227:return t.contextNode.operatorToken.kind!==28;case 228:case 195:case 235:case 282:case 277:case 183:case 193:case 194:case 239:return!0;case 209:case 266:case 272:case 278:case 261:case 170:case 307:case 173:case 172:return t.currentTokenSpan.kind===64||t.nextTokenSpan.kind===64;case 250:case 169:return t.currentTokenSpan.kind===103||t.nextTokenSpan.kind===103||t.currentTokenSpan.kind===64||t.nextTokenSpan.kind===64;case 251:return t.currentTokenSpan.kind===165||t.nextTokenSpan.kind===165}return!1}function Xae(t){return!NC(t)}function Uxt(t){return!fMe(t)}function fMe(t){let n=t.contextNode.kind;return n===173||n===172||n===170||n===261||NO(n)}function ovr(t){return ps(t.contextNode)&&t.contextNode.questionToken}function avr(t){return!ovr(t)}function svr(t){return t.contextNode.kind===228||t.contextNode.kind===195}function mMe(t){return t.TokensAreOnSameLine()||Ebe(t)}function zxt(t){return t.contextNode.kind===207||t.contextNode.kind===201||cvr(t)}function hMe(t){return Ebe(t)&&!(t.NextNodeAllOnSameLine()||t.NextNodeBlockIsOnOneLine())}function qxt(t){return Jxt(t)&&!(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function cvr(t){return Jxt(t)&&(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function Jxt(t){return Vxt(t.contextNode)}function Ebe(t){return Vxt(t.nextTokenParent)}function Vxt(t){if(Hxt(t))return!0;switch(t.kind){case 242:case 270:case 211:case 269:return!0}return!1}function I3(t){switch(t.contextNode.kind){case 263:case 175:case 174:case 178:case 179:case 180:case 219:case 177:case 220:case 265:return!0}return!1}function lvr(t){return!I3(t)}function Wxt(t){return t.contextNode.kind===263||t.contextNode.kind===219}function Gxt(t){return Hxt(t.contextNode)}function Hxt(t){switch(t.kind){case 264:case 232:case 265:case 267:case 188:case 268:case 279:case 280:case 273:case 276:return!0}return!1}function uvr(t){switch(t.currentTokenParent.kind){case 264:case 268:case 267:case 300:case 269:case 256:return!0;case 242:{let n=t.currentTokenParent.parent;if(!n||n.kind!==220&&n.kind!==219)return!0}}return!1}function Yae(t){switch(t.contextNode.kind){case 246:case 256:case 249:case 250:case 251:case 248:case 259:case 247:case 255:case 300:return!0;default:return!1}}function Kxt(t){return t.contextNode.kind===211}function pvr(t){return t.contextNode.kind===214}function _vr(t){return t.contextNode.kind===215}function dvr(t){return pvr(t)||_vr(t)}function fvr(t){return t.currentTokenSpan.kind!==28}function mvr(t){return t.nextTokenSpan.kind!==24}function hvr(t){return t.nextTokenSpan.kind!==22}function gvr(t){return t.contextNode.kind===220}function yvr(t){return t.contextNode.kind===206}function Pa(t){return t.TokensAreOnSameLine()&&t.contextNode.kind!==12}function Qxt(t){return t.contextNode.kind!==12}function gMe(t){return t.contextNode.kind!==285&&t.contextNode.kind!==289}function kbe(t){return t.contextNode.kind===295||t.contextNode.kind===294}function vvr(t){return t.nextTokenParent.kind===292||t.nextTokenParent.kind===296&&t.nextTokenParent.parent.kind===292}function Zxt(t){return t.contextNode.kind===292}function Svr(t){return t.nextTokenParent.kind!==296}function Xxt(t){return t.nextTokenParent.kind===296}function Yxt(t){return t.contextNode.kind===286}function bvr(t){return!I3(t)&&!Ebe(t)}function xvr(t){return t.TokensAreOnSameLine()&&By(t.contextNode)&&eTt(t.currentTokenParent)&&!eTt(t.nextTokenParent)}function eTt(t){for(;t&&Vt(t);)t=t.parent;return t&&t.kind===171}function Tvr(t){return t.currentTokenParent.kind===262&&t.currentTokenParent.getStart(t.sourceFile)===t.currentTokenSpan.pos}function yMe(t){return t.formattingRequestKind!==2}function Evr(t){return t.contextNode.kind===268}function kvr(t){return t.contextNode.kind===188}function Cvr(t){return t.contextNode.kind===181}function tTt(t,n){if(t.kind!==30&&t.kind!==32)return!1;switch(n.kind){case 184:case 217:case 266:case 264:case 232:case 265:case 263:case 219:case 220:case 175:case 174:case 180:case 181:case 214:case 215:case 234:return!0;default:return!1}}function ese(t){return tTt(t.currentTokenSpan,t.currentTokenParent)||tTt(t.nextTokenSpan,t.nextTokenParent)}function vMe(t){return t.contextNode.kind===217}function Dvr(t){return!vMe(t)}function Avr(t){return t.currentTokenSpan.kind===116&&t.currentTokenParent.kind===223}function rTt(t){return t.contextNode.kind===230&&t.contextNode.expression!==void 0}function wvr(t){return t.contextNode.kind===236}function nTt(t){return!Ivr(t)}function Ivr(t){switch(t.contextNode.kind){case 246:case 249:case 250:case 251:case 247:case 248:return!0;default:return!1}}function Pvr(t){let n=t.nextTokenSpan.kind,a=t.nextTokenSpan.pos;if(XR(n)){let _=t.nextTokenParent===t.currentTokenParent?OP(t.currentTokenParent,fn(t.currentTokenParent,f=>!f.parent),t.sourceFile):t.nextTokenParent.getFirstToken(t.sourceFile);if(!_)return!0;n=_.kind,a=_.getStart(t.sourceFile)}let c=t.sourceFile.getLineAndCharacterOfPosition(t.currentTokenSpan.pos).line,u=t.sourceFile.getLineAndCharacterOfPosition(a).line;return c===u?n===20||n===1:n===27&&t.currentTokenSpan.kind===27?!0:n===241||n===27?!1:t.contextNode.kind===265||t.contextNode.kind===266?!Zm(t.currentTokenParent)||!!t.currentTokenParent.type||n!==21:ps(t.currentTokenParent)?!t.currentTokenParent.initializer:t.currentTokenParent.kind!==249&&t.currentTokenParent.kind!==243&&t.currentTokenParent.kind!==241&&n!==23&&n!==21&&n!==40&&n!==41&&n!==44&&n!==14&&n!==28&&n!==229&&n!==16&&n!==15&&n!==25}function Nvr(t){return eae(t.currentTokenSpan.end,t.currentTokenParent,t.sourceFile)}function Ovr(t){return!no(t.contextNode)||!qh(t.contextNode.expression)||t.contextNode.expression.getText().includes(".")}function Fvr(t,n){return{options:t,getRules:Rvr(),host:n}}var SMe;function Rvr(){return SMe===void 0&&(SMe=Mvr(Lxt())),SMe}function Lvr(t){let n=0;return t&1&&(n|=28),t&2&&(n|=96),t&28&&(n|=28),t&96&&(n|=96),n}function Mvr(t){let n=jvr(t);return a=>{let c=n[iTt(a.currentTokenSpan.kind,a.nextTokenSpan.kind)];if(c){let u=[],_=0;for(let f of c){let y=~Lvr(_);f.action&y&&ht(f.context,g=>g(a))&&(u.push(f),_|=f.action)}if(u.length)return u}}}function jvr(t){let n=new Array(bMe*bMe),a=new Array(n.length);for(let c of t){let u=c.leftTokenRange.isSpecific&&c.rightTokenRange.isSpecific;for(let _ of c.leftTokenRange.tokens)for(let f of c.rightTokenRange.tokens){let y=iTt(_,f),g=n[y];g===void 0&&(g=n[y]=[]),Bvr(g,c.rule,u,a,y)}}return n}function iTt(t,n){return $.assert(t<=166&&n<=166,"Must compute formatting context from tokens"),t*bMe+n}var yq=5,Cbe=31,bMe=167,FQ=(t=>(t[t.StopRulesSpecific=0]="StopRulesSpecific",t[t.StopRulesAny=yq*1]="StopRulesAny",t[t.ContextRulesSpecific=yq*2]="ContextRulesSpecific",t[t.ContextRulesAny=yq*3]="ContextRulesAny",t[t.NoContextRulesSpecific=yq*4]="NoContextRulesSpecific",t[t.NoContextRulesAny=yq*5]="NoContextRulesAny",t))(FQ||{});function Bvr(t,n,a,c,u){let _=n.action&3?a?0:FQ.StopRulesAny:n.context!==Tbe?a?FQ.ContextRulesSpecific:FQ.ContextRulesAny:a?FQ.NoContextRulesSpecific:FQ.NoContextRulesAny,f=c[u]||0;t.splice($vr(f,_),0,n),c[u]=Uvr(f,_)}function $vr(t,n){let a=0;for(let c=0;c<=n;c+=yq)a+=t&Cbe,t>>=yq;return a}function Uvr(t,n){let a=(t>>n&Cbe)+1;return $.assert((a&Cbe)===a,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),t&~(Cbe<$.formatSyntaxKind(a)}),c}function zvr(t,n,a){let c=n.getLineAndCharacterOfPosition(t).line;if(c===0)return[];let u=vG(c,n);for(;_0(n.text.charCodeAt(u));)u--;Dd(n.text.charCodeAt(u))&&u--;let _={pos:iC(c-1,n),end:u+1};return tse(_,n,a,2)}function qvr(t,n,a){let c=xMe(t,27,n);return oTt(TMe(c),n,a,3)}function Jvr(t,n,a){let c=xMe(t,19,n);if(!c)return[];let u=c.parent,_=TMe(u),f={pos:p1(_.getStart(n),n),end:t};return tse(f,n,a,4)}function Vvr(t,n,a){let c=xMe(t,20,n);return oTt(TMe(c),n,a,5)}function Wvr(t,n){let a={pos:0,end:t.text.length};return tse(a,t,n,0)}function Gvr(t,n,a,c){let u={pos:p1(t,a),end:n};return tse(u,a,c,1)}function xMe(t,n,a){let c=vd(t,a);return c&&c.kind===n&&t===c.getEnd()?c:void 0}function TMe(t){let n=t;for(;n&&n.parent&&n.parent.end===t.end&&!Hvr(n.parent,n);)n=n.parent;return n}function Hvr(t,n){switch(t.kind){case 264:case 265:return zh(t.members,n);case 268:let a=t.body;return!!a&&a.kind===269&&zh(a.statements,n);case 308:case 242:case 269:return zh(t.statements,n);case 300:return zh(t.block.statements,n)}return!1}function Kvr(t,n){return a(n);function a(c){let u=Is(c,_=>whe(_.getStart(n),_.end,t)&&_);if(u){let _=a(u);if(_)return _}return c}}function Qvr(t,n){if(!t.length)return u;let a=t.filter(_=>Gz(n,_.start,_.start+_.length)).sort((_,f)=>_.start-f.start);if(!a.length)return u;let c=0;return _=>{for(;;){if(c>=a.length)return!1;let f=a[c];if(_.end<=f.start)return!1;if(Foe(_.pos,_.end,f.start,f.start+f.length))return!0;c++}};function u(){return!1}}function Zvr(t,n,a){let c=t.getStart(a);if(c===n.pos&&t.end===n.end)return c;let u=vd(n.pos,a);return!u||u.end>=n.pos?t.pos:u.end}function Xvr(t,n,a){let c=-1,u;for(;t;){let _=a.getLineAndCharacterOfPosition(t.getStart(a)).line;if(c!==-1&&_!==c)break;if(BS.shouldIndentChildNode(n,t,u,a))return n.indentSize;c=_,u=t,t=t.parent}return 0}function Yvr(t,n,a,c,u,_){let f={pos:t.pos,end:t.end};return uMe(n.text,a,f.pos,f.end,y=>aTt(f,t,c,u,y,_,1,g=>!1,n))}function oTt(t,n,a,c){if(!t)return[];let u={pos:p1(t.getStart(n),n),end:t.end};return tse(u,n,a,c)}function tse(t,n,a,c){let u=Kvr(t,n);return uMe(n.text,n.languageVariant,Zvr(u,t,n),t.end,_=>aTt(t,u,BS.getIndentationForNode(u,t,n,a.options),Xvr(u,a.options,n),_,a,c,Qvr(n.parseDiagnostics,t),n))}function aTt(t,n,a,c,u,{options:_,getRules:f,host:y},g,k,T){var C;let O=new Oxt(T,g,_),F,M,U,J,G,Z=-1,Q=[];if(u.advance(),u.isOnToken()){let ke=T.getLineAndCharacterOfPosition(n.getStart(T)).line,_t=ke;By(n)&&(_t=T.getLineAndCharacterOfPosition(xme(n,T)).line),Oe(n,n,ke,_t,a,c)}let re=u.getCurrentLeadingTrivia();if(re){let ke=BS.nodeWillIndentChild(_,n,void 0,T,!1)?a+_.indentSize:a;be(re,ke,!0,_t=>{De(_t,T.getLineAndCharacterOfPosition(_t.pos),n,n,void 0),Ae(_t.pos,ke,!1)}),_.trimTrailingWhitespace!==!1&&je(re)}if(M&&u.getTokenFullStart()>=t.end){let ke=u.isOnEOF()?u.readEOFTokenRange():u.isOnToken()?u.readTokenInfo(n).token:void 0;if(ke&&ke.pos===F){let _t=((C=vd(ke.end,T,n))==null?void 0:C.parent)||U;Ce(ke,T.getLineAndCharacterOfPosition(ke.pos).line,_t,M,J,U,_t,void 0)}}return Q;function ae(ke,_t,Se,tt,Qe){if(Gz(tt,ke,_t)||qK(tt,ke,_t)){if(Qe!==-1)return Qe}else{let We=T.getLineAndCharacterOfPosition(ke).line,St=p1(ke,T),Kt=BS.findFirstNonWhitespaceColumn(St,ke,T,_);if(We!==Se||ke===Kt){let Sr=BS.getBaseIndentation(_);return Sr>Kt?Sr:Kt}}return-1}function _e(ke,_t,Se,tt,Qe,We){let St=BS.shouldIndentChildNode(_,ke)?_.indentSize:0;return We===_t?{indentation:_t===G?Z:Qe.getIndentation(),delta:Math.min(_.indentSize,Qe.getDelta(ke)+St)}:Se===-1?ke.kind===21&&_t===G?{indentation:Z,delta:Qe.getDelta(ke)}:BS.childStartsOnTheSameLineWithElseInIfStatement(tt,ke,_t,T)||BS.childIsUnindentedBranchOfConditionalExpression(tt,ke,_t,T)||BS.argumentStartsOnSameLineAsPreviousArgument(tt,ke,_t,T)?{indentation:Qe.getIndentation(),delta:St}:{indentation:Qe.getIndentation()+Qe.getDelta(ke),delta:St}:{indentation:Se,delta:St}}function me(ke){if(l1(ke)){let _t=wt(ke.modifiers,bc,hr(ke.modifiers,hd));if(_t)return _t.kind}switch(ke.kind){case 264:return 86;case 265:return 120;case 263:return 100;case 267:return 267;case 178:return 139;case 179:return 153;case 175:if(ke.asteriskToken)return 42;case 173:case 170:let _t=cs(ke);if(_t)return _t.kind}}function le(ke,_t,Se,tt){return{getIndentationForComment:(St,Kt,Sr)=>{switch(St){case 20:case 24:case 22:return Se+We(Sr)}return Kt!==-1?Kt:Se},getIndentationForToken:(St,Kt,Sr,nn)=>!nn&&Qe(St,Kt,Sr)?Se+We(Sr):Se,getIndentation:()=>Se,getDelta:We,recomputeIndentation:(St,Kt)=>{BS.shouldIndentChildNode(_,Kt,ke,T)&&(Se+=St?_.indentSize:-_.indentSize,tt=BS.shouldIndentChildNode(_,ke)?_.indentSize:0)}};function Qe(St,Kt,Sr){switch(Kt){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(Sr.kind){case 287:case 288:case 286:return!1}break;case 23:case 24:if(Sr.kind!==201)return!1;break}return _t!==St&&!(By(ke)&&Kt===me(ke))}function We(St){return BS.nodeWillIndentChild(_,ke,St,T,!0)?tt:0}}function Oe(ke,_t,Se,tt,Qe,We){if(!Gz(t,ke.getStart(T),ke.getEnd()))return;let St=le(ke,Se,Qe,We),Kt=_t;for(Is(ke,$t=>{Sr($t,-1,ke,St,Se,tt,!1)},$t=>{nn($t,ke,Se,St)});u.isOnToken()&&u.getTokenFullStart()Math.min(ke.end,t.end))break;Nn($t,ke,St,ke)}function Sr($t,Dr,Qn,Ko,is,sr,uo,Wa){if($.assert(!fu($t)),Op($t)||ZPe(Qn,$t))return Dr;let oo=$t.getStart(T),Oi=T.getLineAndCharacterOfPosition(oo).line,$o=Oi;By($t)&&($o=T.getLineAndCharacterOfPosition(xme($t,T)).line);let ft=-1;if(uo&&zh(t,Qn)&&(ft=ae(oo,$t.end,is,t,Dr),ft!==-1&&(Dr=ft)),!Gz(t,$t.pos,$t.end))return $t.endt.end)return Dr;if(ai.token.end>oo){ai.token.pos>oo&&u.skipToStartOf($t);break}Nn(ai,ke,Ko,ke)}if(!u.isOnToken()||u.getTokenFullStart()>=t.end)return Dr;if(PO($t)){let ai=u.readTokenInfo($t);if($t.kind!==12)return $.assert(ai.token.end===$t.end,"Token end is child end"),Nn(ai,ke,Ko,$t),Dr}let Ht=$t.kind===171?Oi:sr,Wr=_e($t,Oi,ft,ke,Ko,Ht);return Oe($t,Kt,Oi,$o,Wr.indentation,Wr.delta),Kt=ke,Wa&&Qn.kind===210&&Dr===-1&&(Dr=Wr.indentation),Dr}function nn($t,Dr,Qn,Ko){$.assert(HI($t)),$.assert(!fu($t));let is=eSr(Dr,$t),sr=Ko,uo=Qn;if(!Gz(t,$t.pos,$t.end)){$t.end$t.pos)break;if(Oi.token.kind===is){uo=T.getLineAndCharacterOfPosition(Oi.token.pos).line,Nn(Oi,Dr,Ko,Dr);let $o;if(Z!==-1)$o=Z;else{let ft=p1(Oi.token.pos,T);$o=BS.findFirstNonWhitespaceColumn(ft,Oi.token.pos,T,_)}sr=le(Dr,Qn,$o,_.indentSize)}else Nn(Oi,Dr,Ko,Dr)}let Wa=-1;for(let Oi=0;Oi<$t.length;Oi++){let $o=$t[Oi];Wa=Sr($o,Wa,ke,sr,uo,uo,!0,Oi===0)}let oo=tSr(is);if(oo!==0&&u.isOnToken()&&u.getTokenFullStart()Ae(Wr.pos,Ht,!1))}$o!==-1&&ft&&(Ae($t.token.pos,$o,Wa===1),G=Oi.line,Z=$o)}u.advance(),Kt=Dr}}function be(ke,_t,Se,tt){for(let Qe of ke){let We=zh(t,Qe);switch(Qe.kind){case 3:We&&de(Qe,_t,!Se),Se=!1;break;case 2:Se&&We&&tt(Qe),Se=!1;break;case 4:Se=!0;break}}return Se}function ue(ke,_t,Se,tt){for(let Qe of ke)if(Uoe(Qe.kind)&&zh(t,Qe)){let We=T.getLineAndCharacterOfPosition(Qe.pos);De(Qe,We,_t,Se,tt)}}function De(ke,_t,Se,tt,Qe){let We=k(ke),St=0;if(!We)if(M)St=Ce(ke,_t.line,Se,M,J,U,tt,Qe);else{let Kt=T.getLineAndCharacterOfPosition(t.pos);ze(Kt.line,_t.line)}return M=ke,F=ke.end,U=Se,J=_t.line,St}function Ce(ke,_t,Se,tt,Qe,We,St,Kt){O.updateContext(tt,We,ke,Se,St);let Sr=f(O),nn=O.options.trimTrailingWhitespace!==!1,Nn=0;return Sr?Re(Sr,$t=>{if(Nn=It($t,tt,Qe,ke,_t),Kt)switch(Nn){case 2:Se.getStart(T)===ke.pos&&Kt.recomputeIndentation(!1,St);break;case 1:Se.getStart(T)===ke.pos&&Kt.recomputeIndentation(!0,St);break;default:$.assert(Nn===0)}nn=nn&&!($t.action&16)&&$t.flags!==1}):nn=nn&&ke.kind!==1,_t!==Qe&&nn&&ze(Qe,_t,tt),Nn}function Ae(ke,_t,Se){let tt=EMe(_t,_);if(Se)Ve(ke,0,tt);else{let Qe=T.getLineAndCharacterOfPosition(ke),We=iC(Qe.line,T);(_t!==Fe(We,Qe.character)||Be(tt,We))&&Ve(We,Qe.character,tt)}}function Fe(ke,_t){let Se=0;for(let tt=0;tt<_t;tt++)T.text.charCodeAt(ke+tt)===9?Se+=_.tabSize-Se%_.tabSize:Se++;return Se}function Be(ke,_t){return ke!==T.text.substr(_t,ke.length)}function de(ke,_t,Se,tt=!0){let Qe=T.getLineAndCharacterOfPosition(ke.pos).line,We=T.getLineAndCharacterOfPosition(ke.end).line;if(Qe===We){Se||Ae(ke.pos,_t,!1);return}let St=[],Kt=ke.pos;for(let Dr=Qe;Dr0){let sr=EMe(is,_);Ve(Qn,Ko.character,sr)}else Le(Qn,Ko.character)}}function ze(ke,_t,Se){for(let tt=ke;tt<_t;tt++){let Qe=iC(tt,T),We=vG(tt,T);if(Se&&(Uoe(Se.kind)||Q1e(Se.kind))&&Se.pos<=We&&Se.end>We)continue;let St=ut(Qe,We);St!==-1&&($.assert(St===Qe||!_0(T.text.charCodeAt(St-1))),Le(St,We+1-St))}}function ut(ke,_t){let Se=_t;for(;Se>=ke&&_0(T.text.charCodeAt(Se));)Se--;return Se!==_t?Se+1:-1}function je(ke){let _t=M?M.end:t.pos;for(let Se of ke)Uoe(Se.kind)&&(_tzK(k,n)||n===k.end&&(k.kind===2||n===t.getFullWidth()))}function eSr(t,n){switch(t.kind){case 177:case 263:case 219:case 175:case 174:case 220:case 180:case 181:case 185:case 186:case 178:case 179:if(t.typeParameters===n)return 30;if(t.parameters===n)return 21;break;case 214:case 215:if(t.typeArguments===n)return 30;if(t.arguments===n)return 21;break;case 264:case 232:case 265:case 266:if(t.typeParameters===n)return 30;break;case 184:case 216:case 187:case 234:case 206:if(t.typeArguments===n)return 30;break;case 188:return 19}return 0}function tSr(t){switch(t){case 21:return 22;case 30:return 32;case 19:return 20}return 0}var Abe,RQ,LQ;function EMe(t,n){if((!Abe||Abe.tabSize!==n.tabSize||Abe.indentSize!==n.indentSize)&&(Abe={tabSize:n.tabSize,indentSize:n.indentSize},RQ=LQ=void 0),n.convertTabsToSpaces){let c,u=Math.floor(t/n.indentSize),_=t%n.indentSize;return LQ||(LQ=[]),LQ[u]===void 0?(c=GK(" ",n.indentSize*u),LQ[u]=c):c=LQ[u],_?c+GK(" ",_):c}else{let c=Math.floor(t/n.tabSize),u=t-c*n.tabSize,_;return RQ||(RQ=[]),RQ[c]===void 0?RQ[c]=_=GK(" ",c):_=RQ[c],u?_+GK(" ",u):_}}var BS;(t=>{let n;(de=>{de[de.Unknown=-1]="Unknown"})(n||(n={}));function a(de,ze,ut,je=!1){if(de>ze.text.length)return y(ut);if(ut.indentStyle===0)return 0;let ve=vd(de,ze,void 0,!0),Le=sTt(ze,de,ve||null);if(Le&&Le.kind===3)return c(ze,de,ut,Le);if(!ve)return y(ut);if(Q1e(ve.kind)&&ve.getStart(ze)<=de&&de=0),ve<=Le)return De(iC(Le,de),ze,de,ut);let Ve=iC(ve,de),{column:nt,character:It}=ue(Ve,ze,de,ut);return nt===0?nt:de.text.charCodeAt(Ve+It)===42?nt-1:nt}function u(de,ze,ut){let je=ze;for(;je>0;){let Le=de.text.charCodeAt(je);if(!p0(Le))break;je--}let ve=p1(je,de);return De(ve,je,de,ut)}function _(de,ze,ut,je,ve,Le){let Ve,nt=ut;for(;nt;){if(q1e(nt,ze,de)&&Fe(Le,nt,Ve,de,!0)){let ke=M(nt,de),_t=F(ut,nt,je,de),Se=_t!==0?ve&&_t===2?Le.indentSize:0:je!==ke.line?Le.indentSize:0;return g(nt,ke,void 0,Se,de,!0,Le)}let It=le(nt,de,Le,!0);if(It!==-1)return It;Ve=nt,nt=nt.parent}return y(Le)}function f(de,ze,ut,je){let ve=ut.getLineAndCharacterOfPosition(de.getStart(ut));return g(de,ve,ze,0,ut,!1,je)}t.getIndentationForNode=f;function y(de){return de.baseIndentSize||0}t.getBaseIndentation=y;function g(de,ze,ut,je,ve,Le,Ve){var nt;let It=de.parent;for(;It;){let ke=!0;if(ut){let Qe=de.getStart(ve);ke=Qeut.end}let _t=k(It,de,ve),Se=_t.line===ze.line||J(It,de,ze.line,ve);if(ke){let Qe=(nt=Q(de,ve))==null?void 0:nt[0],We=!!Qe&&M(Qe,ve).line>_t.line,St=le(de,ve,Ve,We);if(St!==-1||(St=C(de,It,ze,Se,ve,Ve),St!==-1))return St+je}Fe(Ve,It,de,ve,Le)&&!Se&&(je+=Ve.indentSize);let tt=U(It,de,ze.line,ve);de=It,It=de.parent,ze=tt?ve.getLineAndCharacterOfPosition(de.getStart(ve)):_t}return je+y(Ve)}function k(de,ze,ut){let je=Q(ze,ut),ve=je?je.pos:de.getStart(ut);return ut.getLineAndCharacterOfPosition(ve)}function T(de,ze,ut){let je=i7e(de);return je&&je.listItemIndex>0?Oe(je.list.getChildren(),je.listItemIndex-1,ze,ut):-1}function C(de,ze,ut,je,ve,Le){return(Vd(de)||mG(de))&&(ze.kind===308||!je)?be(ut,ve,Le):-1}let O;(de=>{de[de.Unknown=0]="Unknown",de[de.OpenBrace=1]="OpenBrace",de[de.CloseBrace=2]="CloseBrace"})(O||(O={}));function F(de,ze,ut,je){let ve=OP(de,ze,je);if(!ve)return 0;if(ve.kind===19)return 1;if(ve.kind===20){let Le=M(ve,je).line;return ut===Le?2:0}return 0}function M(de,ze){return ze.getLineAndCharacterOfPosition(de.getStart(ze))}function U(de,ze,ut,je){if(!(Js(de)&&un(de.arguments,ze)))return!1;let ve=de.expression.getEnd();return qs(je,ve).line===ut}t.isArgumentAndStartLineOverlapsExpressionBeingCalled=U;function J(de,ze,ut,je){if(de.kind===246&&de.elseStatement===ze){let ve=Kl(de,93,je);return $.assert(ve!==void 0),M(ve,je).line===ut}return!1}t.childStartsOnTheSameLineWithElseInIfStatement=J;function G(de,ze,ut,je){if(a3(de)&&(ze===de.whenTrue||ze===de.whenFalse)){let ve=qs(je,de.condition.end).line;if(ze===de.whenTrue)return ut===ve;{let Le=M(de.whenTrue,je).line,Ve=qs(je,de.whenTrue.end).line;return ve===Le&&Ve===ut}}return!1}t.childIsUnindentedBranchOfConditionalExpression=G;function Z(de,ze,ut,je){if(mS(de)){if(!de.arguments)return!1;let ve=wt(de.arguments,It=>It.pos===ze.pos);if(!ve)return!1;let Le=de.arguments.indexOf(ve);if(Le===0)return!1;let Ve=de.arguments[Le-1],nt=qs(je,Ve.getEnd()).line;if(ut===nt)return!0}return!1}t.argumentStartsOnSameLineAsPreviousArgument=Z;function Q(de,ze){return de.parent&&ae(de.getStart(ze),de.getEnd(),de.parent,ze)}t.getContainingList=Q;function re(de,ze,ut){return ze&&ae(de,de,ze,ut)}function ae(de,ze,ut,je){switch(ut.kind){case 184:return ve(ut.typeArguments);case 211:return ve(ut.properties);case 210:return ve(ut.elements);case 188:return ve(ut.members);case 263:case 219:case 220:case 175:case 174:case 180:case 177:case 186:case 181:return ve(ut.typeParameters)||ve(ut.parameters);case 178:return ve(ut.parameters);case 264:case 232:case 265:case 266:case 346:return ve(ut.typeParameters);case 215:case 214:return ve(ut.typeArguments)||ve(ut.arguments);case 262:return ve(ut.declarations);case 276:case 280:return ve(ut.elements);case 207:case 208:return ve(ut.elements)}function ve(Le){return Le&&qK(_e(ut,Le,je),de,ze)?Le:void 0}}function _e(de,ze,ut){let je=de.getChildren(ut);for(let ve=1;ve=0&&ze=0;Ve--){if(de[Ve].kind===28)continue;if(ut.getLineAndCharacterOfPosition(de[Ve].end).line!==Le.line)return be(Le,ut,je);Le=M(de[Ve],ut)}return-1}function be(de,ze,ut){let je=ze.getPositionOfLineAndCharacter(de.line,0);return De(je,je+de.character,ze,ut)}function ue(de,ze,ut,je){let ve=0,Le=0;for(let Ve=de;VerSr});function rSr(t,n,a){let c=!1;return n.forEach(u=>{let _=fn(la(t,u.pos),f=>zh(f,u));_&&Is(_,function f(y){var g;if(!c){if(ct(y)&&HL(u,y.getStart(t))){let k=a.resolveName(y.text,y,-1,!1);if(k&&k.declarations){for(let T of k.declarations)if(aSe(T)||y.text&&t.symbol&&((g=t.symbol.exports)!=null&&g.has(y.escapedText))){c=!0;return}}}y.forEachChild(f)}})}),c}var Ibe={};d(Ibe,{pasteEditsProvider:()=>iSr});var nSr="providePostPasteEdits";function iSr(t,n,a,c,u,_,f,y){return{edits:ki.ChangeTracker.with({host:u,formatContext:f,preferences:_},k=>oSr(t,n,a,c,u,_,f,y,k)),fixId:nSr}}function oSr(t,n,a,c,u,_,f,y,g){let k;n.length!==a.length&&(k=n.length===1?n[0]:n.join(ZT(f.host,f.options)));let T=[],C=t.text;for(let F=a.length-1;F>=0;F--){let{pos:M,end:U}=a[F];C=k?C.slice(0,M)+k+C.slice(U):C.slice(0,M)+n[F]+C.slice(U)}let O;$.checkDefined(u.runWithTemporaryFileUpdate).call(u,t.fileName,C,(F,M,U)=>{if(O=Im.createImportAdder(U,F,_,u),c?.range){$.assert(c.range.length===n.length),c.range.forEach(re=>{let ae=c.file.statements,_e=hr(ae,le=>le.end>re.pos);if(_e===-1)return;let me=hr(ae,le=>le.end>=re.end,_e);me!==-1&&re.end<=ae[me].getStart()&&me--,T.push(...ae.slice(_e,me===-1?ae.length:me+1))}),$.assertIsDefined(M,"no original program found");let J=M.getTypeChecker(),G=aSr(c),Z=yae(c.file,T,J,U5e(U,T,J),G),Q=!Nve(t.fileName,M,u,!!c.file.commonJsModuleIndicator);O5e(c.file,Z.targetFileImportsFromOldFile,g,Q),q5e(c.file,Z.oldImportsNeededByTargetFile,Z.targetFileImportsFromOldFile,J,F,O)}else{let J={sourceFile:U,program:M,cancellationToken:y,host:u,preferences:_,formatContext:f},G=0;a.forEach((Z,Q)=>{let re=Z.end-Z.pos,ae=k??n[Q],_e=Z.pos+G,me=_e+ae.length,le={pos:_e,end:me};G+=ae.length-re;let Oe=fn(la(J.sourceFile,le.pos),be=>zh(be,le));Oe&&Is(Oe,function be(ue){if(ct(ue)&&HL(le,ue.getStart(U))&&!F?.getTypeChecker().resolveName(ue.text,ue,-1,!1))return O.addImportForUnresolvedIdentifier(J,ue,!0);ue.forEachChild(be)})})}O.writeFixes(g,Vg(c?c.file:t,_))}),O.hasFixes()&&a.forEach((F,M)=>{g.replaceRangeWithText(t,{pos:F.pos,end:F.end},k??n[M])})}function aSr({file:t,range:n}){let a=n[0].pos,c=n[n.length-1].end,u=la(t,a),_=Hz(t,a)??la(t,c);return{pos:ct(u)&&a<=u.getStart(t)?u.getFullStart():a,end:ct(_)&&c===_.getEnd()?ki.getAdjustedEndPosition(t,_,{}):c}}var cTt={};d(cTt,{ANONYMOUS:()=>xve,AccessFlags:()=>X2,AssertionLevel:()=>d$,AssignmentDeclarationKind:()=>aR,AssignmentKind:()=>M6e,Associativity:()=>V6e,BreakpointResolver:()=>SSe,BuilderFileEmit:()=>$Oe,BuilderProgramKind:()=>HOe,BuilderState:()=>Dv,CallHierarchy:()=>JF,CharacterCodes:()=>fR,CheckFlags:()=>dO,CheckMode:()=>Vye,ClassificationType:()=>O1e,ClassificationTypeNames:()=>QFe,CommentDirectiveType:()=>G9,Comparison:()=>V,CompletionInfoFlags:()=>qFe,CompletionTriggerKind:()=>P1e,Completions:()=>KF,ContainerFlags:()=>S8e,ContextFlags:()=>k$,Debug:()=>$,DiagnosticCategory:()=>gO,Diagnostics:()=>x,DocumentHighlights:()=>dae,ElementFlags:()=>nf,EmitFlags:()=>SO,EmitHint:()=>rE,EmitOnly:()=>K9,EndOfLineState:()=>WFe,ExitStatus:()=>ZD,ExportKind:()=>$7e,Extension:()=>mR,ExternalEmitHelpers:()=>gR,FileIncludeKind:()=>H9,FilePreprocessingDiagnosticsKind:()=>uO,FileSystemEntryKind:()=>TO,FileWatcherEventKind:()=>v4,FindAllReferences:()=>Pu,FlattenLevel:()=>z8e,FlowFlags:()=>PI,ForegroundColorEscapeSequences:()=>IOe,FunctionFlags:()=>q6e,GeneratedIdentifierFlags:()=>V9,GetLiteralTextFlags:()=>e6e,GoToDefinition:()=>cM,HighlightSpanKind:()=>UFe,IdentifierNameMap:()=>jL,ImportKind:()=>B7e,ImportsNotUsedAsValues:()=>OI,IndentStyle:()=>zFe,IndexFlags:()=>hO,IndexKind:()=>eE,InferenceFlags:()=>w$,InferencePriority:()=>iR,InlayHintKind:()=>$Fe,InlayHints:()=>pbe,InternalEmitFlags:()=>P$,InternalNodeBuilderFlags:()=>C$,InternalSymbolName:()=>A$,IntersectionFlags:()=>X9,InvalidatedProjectKind:()=>gFe,JSDocParsingMode:()=>RI,JsDoc:()=>VA,JsTyping:()=>wC,JsxEmit:()=>I$,JsxFlags:()=>lO,JsxReferenceKind:()=>Y2,LanguageFeatureMinimumTarget:()=>C_,LanguageServiceMode:()=>jFe,LanguageVariant:()=>dR,LexicalEnvironmentFlags:()=>h4,ListFormat:()=>FI,LogLevel:()=>I9,MapCode:()=>_be,MemberOverrideStatus:()=>Q9,ModifierFlags:()=>cO,ModuleDetectionKind:()=>sR,ModuleInstanceState:()=>y8e,ModuleKind:()=>tE,ModuleResolutionKind:()=>zk,ModuleSpecifierEnding:()=>U4e,NavigateTo:()=>u5e,NavigationBar:()=>_5e,NewLineKind:()=>pR,NodeBuilderFlags:()=>Y9,NodeCheckFlags:()=>fO,NodeFactoryFlags:()=>y3e,NodeFlags:()=>sO,NodeResolutionFeatures:()=>c8e,ObjectFlags:()=>mO,OperationCanceledException:()=>Uk,OperatorPrecedence:()=>W6e,OrganizeImports:()=>WA,OrganizeImportsMode:()=>I1e,OuterExpressionKinds:()=>N$,OutliningElementsCollector:()=>fbe,OutliningSpanKind:()=>JFe,OutputFileType:()=>VFe,PackageJsonAutoImportPreference:()=>MFe,PackageJsonDependencyGroup:()=>LFe,PatternMatchKind:()=>Uve,PollingInterval:()=>yR,PollingWatchKind:()=>uR,PragmaKindFlags:()=>g4,PredicateSemantics:()=>J9,PreparePasteEdits:()=>wbe,PrivateIdentifierKind:()=>A3e,ProcessLevel:()=>W8e,ProgramUpdateLevel:()=>kOe,QuotePreference:()=>y7e,RegularExpressionFlags:()=>W9,RelationComparisonResult:()=>q9,Rename:()=>Qae,ScriptElementKind:()=>HFe,ScriptElementKindModifier:()=>KFe,ScriptKind:()=>m4,ScriptSnapshot:()=>koe,ScriptTarget:()=>_R,SemanticClassificationFormat:()=>BFe,SemanticMeaning:()=>ZFe,SemicolonPreference:()=>N1e,SignatureCheckMode:()=>Wye,SignatureFlags:()=>Vm,SignatureHelp:()=>AQ,SignatureInfo:()=>BOe,SignatureKind:()=>nR,SmartSelectionRange:()=>gbe,SnippetKind:()=>hR,StatisticType:()=>CFe,StructureIsReused:()=>d4,SymbolAccessibility:()=>tR,SymbolDisplay:()=>wE,SymbolDisplayPartKind:()=>Doe,SymbolFlags:()=>_O,SymbolFormatFlags:()=>f4,SyntaxKind:()=>z9,Ternary:()=>oR,ThrottledCancellationToken:()=>S9e,TokenClass:()=>GFe,TokenFlags:()=>E$,TransformFlags:()=>vO,TypeFacts:()=>Jye,TypeFlags:()=>NI,TypeFormatFlags:()=>eR,TypeMapKind:()=>Ny,TypePredicateKind:()=>pO,TypeReferenceSerializationKind:()=>D$,UnionReduction:()=>Z9,UpToDateStatusType:()=>uFe,VarianceFlags:()=>rR,Version:()=>Iy,VersionRange:()=>KD,WatchDirectoryFlags:()=>yO,WatchDirectoryKind:()=>lR,WatchFileKind:()=>cR,WatchLogLevel:()=>DOe,WatchType:()=>cf,accessPrivateIdentifier:()=>U8e,addEmitFlags:()=>CS,addEmitHelper:()=>pF,addEmitHelpers:()=>Ux,addInternalEmitFlags:()=>e3,addNodeFactoryPatcher:()=>klt,addObjectAllocatorPatcher:()=>llt,addRange:()=>En,addRelatedInfo:()=>ac,addSyntheticLeadingComment:()=>gC,addSyntheticTrailingComment:()=>nz,addToSeen:()=>o1,advancedAsyncSuperHelper:()=>Lne,affectsDeclarationPathOptionDeclarations:()=>ONe,affectsEmitOptionDeclarations:()=>NNe,allKeysStartWithDot:()=>Iie,altDirectorySeparator:()=>x4,and:()=>EI,append:()=>jt,appendIfUnique:()=>Jl,arrayFrom:()=>so,arrayIsEqualTo:()=>__,arrayIsHomogeneous:()=>K4e,arrayOf:()=>Jn,arrayReverseIterator:()=>Tf,arrayToMap:()=>_l,arrayToMultiMap:()=>tu,arrayToNumericMap:()=>bi,assertType:()=>h$,assign:()=>qe,asyncSuperHelper:()=>Rne,attachFileToDiagnostics:()=>rF,base64decode:()=>d4e,base64encode:()=>_4e,binarySearch:()=>rs,binarySearchKey:()=>Yl,bindSourceFile:()=>b8e,breakIntoCharacterSpans:()=>r5e,breakIntoWordSpans:()=>n5e,buildLinkParts:()=>C7e,buildOpts:()=>tK,buildOverload:()=>pTt,bundlerModuleNameResolver:()=>l8e,canBeConvertedToAsync:()=>Gve,canHaveDecorators:()=>kP,canHaveExportModifier:()=>kH,canHaveFlowNode:()=>KR,canHaveIllegalDecorators:()=>eye,canHaveIllegalModifiers:()=>dNe,canHaveIllegalType:()=>Zlt,canHaveIllegalTypeParameters:()=>_Ne,canHaveJSDoc:()=>WG,canHaveLocals:()=>vb,canHaveModifiers:()=>l1,canHaveModuleSpecifier:()=>F6e,canHaveSymbol:()=>gv,canIncludeBindAndCheckDiagnostics:()=>GU,canJsonReportNoInputFiles:()=>sK,canProduceDiagnostics:()=>gK,canUsePropertyAccess:()=>ige,canWatchAffectingLocation:()=>rFe,canWatchAtTypes:()=>tFe,canWatchDirectoryOrFile:()=>G0e,canWatchDirectoryOrFilePath:()=>NK,cartesianProduct:()=>A9,cast:()=>Ba,chainBundle:()=>Cv,chainDiagnosticMessages:()=>ws,changeAnyExtension:()=>Og,changeCompilerHostLikeToUseCache:()=>Bz,changeExtension:()=>hE,changeFullExtension:()=>T4,changesAffectModuleResolution:()=>Yte,changesAffectingProgramStructure:()=>WPe,characterCodeToRegularExpressionFlag:()=>DO,childIsDecorated:()=>mU,classElementOrClassElementParameterIsDecorated:()=>Bme,classHasClassThisAssignment:()=>s0e,classHasDeclaredOrExplicitlyAssignedName:()=>c0e,classHasExplicitlyAssignedName:()=>qie,classOrConstructorParameterIsDecorated:()=>pE,classicNameResolver:()=>h8e,classifier:()=>E9e,cleanExtendedConfigCache:()=>Kie,clear:()=>Cs,clearMap:()=>dg,clearSharedExtendedConfigFileWatcher:()=>x0e,climbPastPropertyAccess:()=>Ioe,clone:()=>qp,cloneCompilerOptions:()=>X1e,closeFileWatcher:()=>W1,closeFileWatcherOf:()=>C0,codefix:()=>Im,collapseTextChangeRangesAcrossMultipleVersions:()=>w,collectExternalModuleInfo:()=>n0e,combine:()=>ea,combinePaths:()=>Xi,commandLineOptionOfCustomType:()=>LNe,commentPragmas:()=>y4,commonOptionsWithBuild:()=>lie,compact:()=>Bc,compareBooleans:()=>cS,compareDataObjects:()=>Nhe,compareDiagnostics:()=>$U,compareEmitHelpers:()=>I3e,compareNumberOfDirectorySeparators:()=>bH,comparePaths:()=>M1,comparePathsCaseInsensitive:()=>$$,comparePathsCaseSensitive:()=>B$,comparePatternKeys:()=>Mye,compareProperties:()=>WD,compareStringsCaseInsensitive:()=>JD,compareStringsCaseInsensitiveEslintCompatible:()=>Sm,compareStringsCaseSensitive:()=>Su,compareStringsCaseSensitiveUI:()=>Rk,compareTextSpans:()=>fy,compareValues:()=>Br,compilerOptionsAffectDeclarationPath:()=>R4e,compilerOptionsAffectEmit:()=>F4e,compilerOptionsAffectSemanticDiagnostics:()=>O4e,compilerOptionsDidYouMeanDiagnostics:()=>die,compilerOptionsIndicateEsModules:()=>ive,computeCommonSourceDirectoryOfFilenames:()=>AOe,computeLineAndCharacterOfPosition:()=>aE,computeLineOfPosition:()=>nA,computeLineStarts:()=>oE,computePositionOfLineAndCharacter:()=>AO,computeSignatureWithDiagnostics:()=>U0e,computeSuggestionDiagnostics:()=>Jve,computedOptions:()=>UU,concatenate:()=>go,concatenateDiagnosticMessageChains:()=>C4e,consumesNodeCoreModules:()=>iae,contains:()=>un,containsIgnoredPath:()=>QU,containsObjectRestOrSpread:()=>ZH,containsParseError:()=>BO,containsPath:()=>ug,convertCompilerOptionsForTelemetry:()=>ZNe,convertCompilerOptionsFromJson:()=>apt,convertJsonOption:()=>m3,convertToBase64:()=>p4e,convertToJson:()=>iK,convertToObject:()=>VNe,convertToOptionsWithAbsolutePaths:()=>gie,convertToRelativePath:()=>BI,convertToTSConfig:()=>Sye,convertTypeAcquisitionFromJson:()=>spt,copyComments:()=>E3,copyEntries:()=>ere,copyLeadingComments:()=>eM,copyProperties:()=>zm,copyTrailingAsLeadingComments:()=>YK,copyTrailingComments:()=>tq,couldStartTrivia:()=>D4,countWhere:()=>Lo,createAbstractBuilder:()=>ddt,createAccessorPropertyBackingField:()=>nye,createAccessorPropertyGetRedirector:()=>bNe,createAccessorPropertySetRedirector:()=>xNe,createBaseNodeFactory:()=>d3e,createBinaryExpressionTrampoline:()=>iie,createBuilderProgram:()=>z0e,createBuilderProgramUsingIncrementalBuildInfo:()=>XOe,createBuilderStatusReporter:()=>goe,createCacheableExportInfoMap:()=>Ove,createCachedDirectoryStructureHost:()=>Gie,createClassifier:()=>qft,createCommentDirectivesMap:()=>XPe,createCompilerDiagnostic:()=>bp,createCompilerDiagnosticForInvalidCustomType:()=>MNe,createCompilerDiagnosticFromMessageChain:()=>nne,createCompilerHost:()=>wOe,createCompilerHostFromProgramHost:()=>c1e,createCompilerHostWorker:()=>Qie,createDetachedDiagnostic:()=>tF,createDiagnosticCollection:()=>IU,createDiagnosticForFileFromMessageChain:()=>Fme,createDiagnosticForNode:()=>xi,createDiagnosticForNodeArray:()=>UR,createDiagnosticForNodeArrayFromMessageChain:()=>EG,createDiagnosticForNodeFromMessageChain:()=>Nx,createDiagnosticForNodeInSourceFile:()=>m0,createDiagnosticForRange:()=>_6e,createDiagnosticMessageChainFromDiagnostic:()=>p6e,createDiagnosticReporter:()=>LF,createDocumentPositionMapper:()=>L8e,createDocumentRegistry:()=>V7e,createDocumentRegistryInternal:()=>jve,createEmitAndSemanticDiagnosticsBuilderProgram:()=>W0e,createEmitHelperFactory:()=>w3e,createEmptyExports:()=>qH,createEvaluator:()=>o3e,createExpressionForJsxElement:()=>aNe,createExpressionForJsxFragment:()=>sNe,createExpressionForObjectLiteralElementLike:()=>cNe,createExpressionForPropertyName:()=>Hge,createExpressionFromEntityName:()=>JH,createExternalHelpersImportDeclarationIfNeeded:()=>Zge,createFileDiagnostic:()=>md,createFileDiagnosticFromMessageChain:()=>ure,createFlowNode:()=>wb,createForOfBindingStatement:()=>Gge,createFutureSourceFile:()=>uae,createGetCanonicalFileName:()=>_d,createGetIsolatedDeclarationErrors:()=>mOe,createGetSourceFile:()=>D0e,createGetSymbolAccessibilityDiagnosticForNode:()=>RA,createGetSymbolAccessibilityDiagnosticForNodeName:()=>fOe,createGetSymbolWalker:()=>x8e,createIncrementalCompilerHost:()=>hoe,createIncrementalProgram:()=>lFe,createJsxFactoryExpression:()=>Wge,createLanguageService:()=>b9e,createLanguageServiceSourceFile:()=>wae,createMemberAccessForPropertyName:()=>d3,createModeAwareCache:()=>OL,createModeAwareCacheKey:()=>Ez,createModeMismatchDetails:()=>yme,createModuleNotFoundChain:()=>rre,createModuleResolutionCache:()=>FL,createModuleResolutionLoader:()=>O0e,createModuleResolutionLoaderUsingGlobalCache:()=>aFe,createModuleSpecifierResolutionHost:()=>BA,createMultiMap:()=>d_,createNameResolver:()=>lge,createNodeConverters:()=>h3e,createNodeFactory:()=>IH,createOptionNameMap:()=>pie,createOverload:()=>Pbe,createPackageJsonImportFilter:()=>tM,createPackageJsonInfo:()=>kve,createParenthesizerRules:()=>f3e,createPatternMatcher:()=>Q7e,createPrinter:()=>DC,createPrinterWithDefaults:()=>TOe,createPrinterWithRemoveComments:()=>wP,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>EOe,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>b0e,createProgram:()=>wK,createProgramDiagnostics:()=>MOe,createProgramHost:()=>l1e,createPropertyNameNodeForIdentifierOrLiteral:()=>EH,createQueue:()=>u0,createRange:()=>y0,createRedirectedBuilderProgram:()=>V0e,createResolutionCache:()=>K0e,createRuntimeTypeSerializer:()=>Z8e,createScanner:()=>B1,createSemanticDiagnosticsBuilderProgram:()=>_dt,createSet:()=>Qi,createSolutionBuilder:()=>fFe,createSolutionBuilderHost:()=>_Fe,createSolutionBuilderWithWatch:()=>mFe,createSolutionBuilderWithWatchHost:()=>dFe,createSortedArray:()=>dy,createSourceFile:()=>DF,createSourceMapGenerator:()=>P8e,createSourceMapSource:()=>wlt,createSuperAccessVariableStatement:()=>Vie,createSymbolTable:()=>ic,createSymlinkCache:()=>zhe,createSyntacticTypeNodeBuilder:()=>OFe,createSystemWatchFunctions:()=>F$,createTextChange:()=>WK,createTextChangeFromStartLength:()=>qoe,createTextChangeRange:()=>X0,createTextRangeFromNode:()=>tve,createTextRangeFromSpan:()=>zoe,createTextSpan:()=>Jp,createTextSpanFromBounds:()=>Hu,createTextSpanFromNode:()=>yh,createTextSpanFromRange:()=>CE,createTextSpanFromStringLiteralLikeContent:()=>eve,createTextWriter:()=>nH,createTokenRange:()=>Dhe,createTypeChecker:()=>w8e,createTypeReferenceDirectiveResolutionCache:()=>Die,createTypeReferenceResolutionLoader:()=>Yie,createWatchCompilerHost:()=>Tdt,createWatchCompilerHostOfConfigFile:()=>u1e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>p1e,createWatchFactory:()=>s1e,createWatchHost:()=>a1e,createWatchProgram:()=>_1e,createWatchStatusReporter:()=>Q0e,createWriteFileMeasuringIO:()=>A0e,declarationNameToString:()=>du,decodeMappings:()=>e0e,decodedTextSpanIntersectsWith:()=>dS,deduplicate:()=>rf,defaultHoverMaximumTruncationLength:()=>JPe,defaultInitCompilerOptions:()=>Cut,defaultMaximumTruncationLength:()=>cU,diagnosticCategoryName:()=>NT,diagnosticToString:()=>FP,diagnosticsEqualityComparer:()=>ine,directoryProbablyExists:()=>Sv,directorySeparator:()=>Gl,displayPart:()=>hg,displayPartsToString:()=>_Q,disposeEmitNodes:()=>Sge,documentSpansEqual:()=>pve,dumpTracingLegend:()=>U9,elementAt:()=>Gr,elideNodes:()=>SNe,emitDetachedComments:()=>t4e,emitFiles:()=>v0e,emitFilesAndReportErrors:()=>_oe,emitFilesAndReportErrorsAndGetExitStatus:()=>o1e,emitModuleKindIsNonNodeESM:()=>gH,emitNewLineBeforeLeadingCommentOfPosition:()=>e4e,emitResolverSkipsTypeChecking:()=>y0e,emitSkippedWithNoDiagnostics:()=>L0e,emptyArray:()=>j,emptyFileSystemEntries:()=>Qhe,emptyMap:()=>ie,emptyOptions:()=>u1,endsWith:()=>au,ensurePathIsNonModuleName:()=>Tx,ensureScriptKind:()=>fne,ensureTrailingDirectorySeparator:()=>r_,entityNameToString:()=>Rg,enumerateInsertsAndDeletes:()=>kI,equalOwnProperties:()=>yl,equateStringsCaseInsensitive:()=>F1,equateStringsCaseSensitive:()=>qm,equateValues:()=>Ng,escapeJsxAttributeString:()=>lhe,escapeLeadingUnderscores:()=>dp,escapeNonAsciiString:()=>Mre,escapeSnippetText:()=>mP,escapeString:()=>kb,escapeTemplateSubstitution:()=>she,evaluatorResult:()=>wd,every:()=>ht,exclusivelyPrefixedNodeCoreModules:()=>wne,executeCommandLine:()=>rft,expandPreOrPostfixIncrementOrDecrementExpression:()=>Yne,explainFiles:()=>e1e,explainIfFileIsRedirectAndImpliedFormat:()=>t1e,exportAssignmentIsAlias:()=>QG,expressionResultIsUnused:()=>Z4e,extend:()=>Lh,extensionFromPath:()=>VU,extensionIsTS:()=>vne,extensionsNotSupportingExtensionlessResolution:()=>yne,externalHelpersModuleNameText:()=>nC,factory:()=>W,fileExtensionIs:()=>Au,fileExtensionIsOneOf:()=>_p,fileIncludeReasonToDiagnostics:()=>i1e,fileShouldUseJavaScriptRequire:()=>Nve,filter:()=>yr,filterMutate:()=>co,filterSemanticDiagnostics:()=>noe,find:()=>wt,findAncestor:()=>fn,findBestPatternMatch:()=>GD,findChildOfKind:()=>Kl,findComputedPropertyNameCacheAssignment:()=>oie,findConfigFile:()=>k0e,findConstructorDeclaration:()=>AH,findContainingList:()=>Roe,findDiagnosticForNode:()=>L7e,findFirstNonJsxWhitespaceToken:()=>o7e,findIndex:()=>hr,findLast:()=>Ut,findLastIndex:()=>Hi,findListItemInfo:()=>i7e,findModifier:()=>ZL,findNextToken:()=>OP,findPackageJson:()=>R7e,findPackageJsons:()=>Eve,findPrecedingMatchingToken:()=>$oe,findPrecedingToken:()=>vd,findSuperStatementIndexPath:()=>Bie,findTokenOnLeftOfPosition:()=>Hz,findUseStrictPrologue:()=>Qge,first:()=>To,firstDefined:()=>Je,firstDefinedIterator:()=>pt,firstIterator:()=>Gu,firstOrOnly:()=>Ave,firstOrUndefined:()=>pi,firstOrUndefinedIterator:()=>ia,fixupCompilerOptions:()=>Hve,flatMap:()=>an,flatMapIterator:()=>li,flatMapToMutable:()=>Xr,flatten:()=>Rc,flattenCommaList:()=>TNe,flattenDestructuringAssignment:()=>v3,flattenDestructuringBinding:()=>AP,flattenDiagnosticMessageText:()=>RS,forEach:()=>X,forEachAncestor:()=>GPe,forEachAncestorDirectory:()=>Ex,forEachAncestorDirectoryStoppingAtGlobalCache:()=>Ab,forEachChild:()=>Is,forEachChildRecursively:()=>CF,forEachDynamicImportOrRequireCall:()=>Ine,forEachEmittedFile:()=>f0e,forEachEnclosingBlockScopeContainer:()=>c6e,forEachEntry:()=>Ad,forEachExternalModuleToImportFrom:()=>Rve,forEachImportClauseDeclaration:()=>R6e,forEachKey:()=>Ix,forEachLeadingCommentRange:()=>A4,forEachNameInAccessChainWalkingLeft:()=>b4e,forEachNameOfDefaultExport:()=>_ae,forEachOptionsSyntaxByName:()=>mge,forEachProjectReference:()=>tz,forEachPropertyAssignment:()=>JR,forEachResolvedProjectReference:()=>dge,forEachReturnStatement:()=>sC,forEachRight:()=>Re,forEachTrailingCommentRange:()=>w4,forEachTsConfigPropArray:()=>wG,forEachUnique:()=>dve,forEachYieldExpression:()=>h6e,formatColorAndReset:()=>IP,formatDiagnostic:()=>w0e,formatDiagnostics:()=>$_t,formatDiagnosticsWithColorAndContext:()=>OOe,formatGeneratedName:()=>IA,formatGeneratedNamePart:()=>wL,formatLocation:()=>I0e,formatMessage:()=>nF,formatStringFromArgs:()=>Mx,formatting:()=>rd,generateDjb2Hash:()=>qk,generateTSConfig:()=>WNe,getAdjustedReferenceLocation:()=>W1e,getAdjustedRenameLocation:()=>Moe,getAliasDeclarationFromName:()=>Zme,getAllAccessorDeclarations:()=>uP,getAllDecoratorsOfClass:()=>o0e,getAllDecoratorsOfClassElement:()=>Uie,getAllJSDocTags:()=>Mte,getAllJSDocTagsOfKind:()=>Nct,getAllKeys:()=>aS,getAllProjectOutputs:()=>Wie,getAllSuperTypeNodes:()=>EU,getAllowImportingTsExtensions:()=>A4e,getAllowJSCompilerOption:()=>fC,getAllowSyntheticDefaultImports:()=>iF,getAncestor:()=>mA,getAnyExtensionFromPath:()=>nE,getAreDeclarationMapsEnabled:()=>one,getAssignedExpandoInitializer:()=>zO,getAssignedName:()=>Q$,getAssignmentDeclarationKind:()=>m_,getAssignmentDeclarationPropertyAccessKind:()=>UG,getAssignmentTargetKind:()=>cC,getAutomaticTypeDirectiveNames:()=>kie,getBaseFileName:()=>t_,getBinaryOperatorPrecedence:()=>eH,getBuildInfo:()=>S0e,getBuildInfoFileVersionMap:()=>J0e,getBuildInfoText:()=>bOe,getBuildOrderFromAnyBuildOrder:()=>FK,getBuilderCreationParameters:()=>soe,getBuilderFileEmit:()=>AC,getCanonicalDiagnostic:()=>d6e,getCheckFlags:()=>Fp,getClassExtendsHeritageElement:()=>aP,getClassLikeDeclarationOfSymbol:()=>JT,getCombinedLocalAndExportSymbolFlags:()=>iL,getCombinedModifierFlags:()=>Ra,getCombinedNodeFlags:()=>dd,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>_u,getCommentRange:()=>DS,getCommonSourceDirectory:()=>jz,getCommonSourceDirectoryOfConfig:()=>S3,getCompilerOptionValue:()=>cne,getConditions:()=>EC,getConfigFileParsingDiagnostics:()=>PP,getConstantValue:()=>b3e,getContainerFlags:()=>Bye,getContainerNode:()=>T3,getContainingClass:()=>Cf,getContainingClassExcludingClassDecorators:()=>yre,getContainingClassStaticBlock:()=>E6e,getContainingFunction:()=>My,getContainingFunctionDeclaration:()=>T6e,getContainingFunctionOrClassStaticBlock:()=>gre,getContainingNodeArray:()=>X4e,getContainingObjectLiteralElement:()=>dQ,getContextualTypeFromParent:()=>Xoe,getContextualTypeFromParentOrAncestorTypeNode:()=>Loe,getDeclarationDiagnostics:()=>hOe,getDeclarationEmitExtensionForPath:()=>$re,getDeclarationEmitOutputFilePath:()=>Q6e,getDeclarationEmitOutputFilePathWorker:()=>Bre,getDeclarationFileExtension:()=>sie,getDeclarationFromName:()=>TU,getDeclarationModifierFlagsFromSymbol:()=>S0,getDeclarationOfKind:()=>Qu,getDeclarationsOfKind:()=>VPe,getDeclaredExpandoInitializer:()=>vU,getDecorators:()=>yb,getDefaultCompilerOptions:()=>Aae,getDefaultFormatCodeSettings:()=>Coe,getDefaultLibFileName:()=>kn,getDefaultLibFilePath:()=>x9e,getDefaultLikeExportInfo:()=>pae,getDefaultLikeExportNameFromDeclaration:()=>wve,getDefaultResolutionModeForFileWorker:()=>roe,getDiagnosticText:()=>Jh,getDiagnosticsWithinSpan:()=>M7e,getDirectoryPath:()=>mo,getDirectoryToWatchFailedLookupLocation:()=>H0e,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>iFe,getDocumentPositionMapper:()=>qve,getDocumentSpansEqualityComparer:()=>_ve,getESModuleInterop:()=>kS,getEditsForFileRename:()=>G7e,getEffectiveBaseTypeNode:()=>vv,getEffectiveConstraintOfTypeParameter:()=>NR,getEffectiveContainerForJSDocTemplateTag:()=>Ire,getEffectiveImplementsTypeNodes:()=>ZR,getEffectiveInitializer:()=>jG,getEffectiveJSDocHost:()=>fA,getEffectiveModifierFlags:()=>tm,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>o4e,getEffectiveModifierFlagsNoCache:()=>a4e,getEffectiveReturnTypeNode:()=>jg,getEffectiveSetAccessorTypeAnnotationNode:()=>ghe,getEffectiveTypeAnnotationNode:()=>X_,getEffectiveTypeParameterDeclarations:()=>Zk,getEffectiveTypeRoots:()=>Tz,getElementOrPropertyAccessArgumentExpressionOrName:()=>wre,getElementOrPropertyAccessName:()=>BT,getElementsOfBindingOrAssignmentPattern:()=>AL,getEmitDeclarations:()=>fg,getEmitFlags:()=>Xc,getEmitHelpers:()=>bge,getEmitModuleDetectionKind:()=>w4e,getEmitModuleFormatOfFileWorker:()=>zz,getEmitModuleKind:()=>Km,getEmitModuleResolutionKind:()=>km,getEmitScriptTarget:()=>$c,getEmitStandardClassFields:()=>$he,getEnclosingBlockScopeContainer:()=>yv,getEnclosingContainer:()=>lre,getEncodedSemanticClassifications:()=>Lve,getEncodedSyntacticClassifications:()=>Mve,getEndLinePosition:()=>vG,getEntityNameFromTypeNode:()=>NG,getEntrypointsFromPackageJsonInfo:()=>Fye,getErrorCountForSummary:()=>uoe,getErrorSpanForNode:()=>$4,getErrorSummaryText:()=>X0e,getEscapedTextOfIdentifierOrLiteral:()=>DU,getEscapedTextOfJsxAttributeName:()=>YU,getEscapedTextOfJsxNamespacedName:()=>cF,getExpandoInitializer:()=>_A,getExportAssignmentExpression:()=>Xme,getExportInfoMap:()=>oQ,getExportNeedsImportStarHelper:()=>M8e,getExpressionAssociativity:()=>ohe,getExpressionPrecedence:()=>wU,getExternalHelpersModuleName:()=>WH,getExternalModuleImportEqualsDeclarationExpression:()=>hU,getExternalModuleName:()=>JO,getExternalModuleNameFromDeclaration:()=>H6e,getExternalModuleNameFromPath:()=>_he,getExternalModuleNameLiteral:()=>kF,getExternalModuleRequireArgument:()=>Ume,getFallbackOptions:()=>CK,getFileEmitOutput:()=>jOe,getFileMatcherPatterns:()=>dne,getFileNamesFromConfigSpecs:()=>bz,getFileWatcherEventKind:()=>S4,getFilesInErrorForSummary:()=>poe,getFirstConstructorWithBody:()=>Rx,getFirstIdentifier:()=>_h,getFirstNonSpaceCharacterPosition:()=>w7e,getFirstProjectOutput:()=>g0e,getFixableErrorSpanExpression:()=>Cve,getFormatCodeSettingsForWriting:()=>cae,getFullWidth:()=>gG,getFunctionFlags:()=>A_,getHeritageClause:()=>ZG,getHostSignatureFromJSDoc:()=>dA,getIdentifierAutoGenerate:()=>Nlt,getIdentifierGeneratedImportReference:()=>D3e,getIdentifierTypeArguments:()=>t3,getImmediatelyInvokedFunctionExpression:()=>uA,getImpliedNodeFormatForEmitWorker:()=>b3,getImpliedNodeFormatForFile:()=>AK,getImpliedNodeFormatForFileWorker:()=>toe,getImportNeedsImportDefaultHelper:()=>r0e,getImportNeedsImportStarHelper:()=>Mie,getIndentString:()=>jre,getInferredLibraryNameResolveFrom:()=>eoe,getInitializedVariables:()=>MU,getInitializerOfBinaryExpression:()=>Vme,getInitializerOfBindingOrAssignmentElement:()=>HH,getInterfaceBaseTypeNodes:()=>kU,getInternalEmitFlags:()=>J1,getInvokedExpression:()=>bre,getIsFileExcluded:()=>z7e,getIsolatedModules:()=>a1,getJSDocAugmentsTag:()=>Ote,getJSDocClassTag:()=>X$,getJSDocCommentRanges:()=>Lme,getJSDocCommentsAndTags:()=>Wme,getJSDocDeprecatedTag:()=>cu,getJSDocDeprecatedTagNoCache:()=>kf,getJSDocEnumTag:()=>U1,getJSDocHost:()=>iP,getJSDocImplementsTags:()=>Fte,getJSDocOverloadTags:()=>Hme,getJSDocOverrideTagNoCache:()=>ml,getJSDocParameterTags:()=>P4,getJSDocParameterTagsNoCache:()=>Ite,getJSDocPrivateTag:()=>GI,getJSDocPrivateTagNoCache:()=>Ln,getJSDocProtectedTag:()=>ao,getJSDocProtectedTagNoCache:()=>lo,getJSDocPublicTag:()=>N4,getJSDocPublicTagNoCache:()=>Rte,getJSDocReadonlyTag:()=>aa,getJSDocReadonlyTagNoCache:()=>ta,getJSDocReturnTag:()=>Y0,getJSDocReturnType:()=>iG,getJSDocRoot:()=>QR,getJSDocSatisfiesExpressionType:()=>age,getJSDocSatisfiesTag:()=>IO,getJSDocTags:()=>sA,getJSDocTemplateTag:()=>LT,getJSDocThisTag:()=>d0,getJSDocType:()=>hv,getJSDocTypeAliasName:()=>Yge,getJSDocTypeAssertionType:()=>CL,getJSDocTypeParameterDeclarations:()=>Vre,getJSDocTypeParameterTags:()=>Pte,getJSDocTypeParameterTagsNoCache:()=>Z$,getJSDocTypeTag:()=>mv,getJSXImplicitImportBase:()=>yH,getJSXRuntimeImport:()=>une,getJSXTransformEnabled:()=>lne,getKeyForCompilerOptions:()=>wye,getLanguageVariant:()=>_H,getLastChild:()=>Ohe,getLeadingCommentRanges:()=>my,getLeadingCommentRangesOfNode:()=>Rme,getLeftmostAccessExpression:()=>oL,getLeftmostExpression:()=>aL,getLibFileNameFromLibReference:()=>_ge,getLibNameFromLibReference:()=>pge,getLibraryNameFromLibFileName:()=>F0e,getLineAndCharacterOfPosition:()=>qs,getLineInfo:()=>Yye,getLineOfLocalPosition:()=>PU,getLineStartPositionForPosition:()=>p1,getLineStarts:()=>Ry,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>y4e,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>g4e,getLinesBetweenPositions:()=>zI,getLinesBetweenRangeEndAndRangeStart:()=>Ahe,getLinesBetweenRangeEndPositions:()=>slt,getLiteralText:()=>t6e,getLocalNameForExternalImport:()=>DL,getLocalSymbolForExportDefault:()=>RU,getLocaleSpecificMessage:()=>As,getLocaleTimeString:()=>OK,getMappedContextSpan:()=>fve,getMappedDocumentSpan:()=>Koe,getMappedLocation:()=>Xz,getMatchedFileSpec:()=>r1e,getMatchedIncludeSpec:()=>n1e,getMeaningFromDeclaration:()=>Aoe,getMeaningFromLocation:()=>x3,getMembersOfDeclaration:()=>g6e,getModeForFileReference:()=>FOe,getModeForResolutionAtIndex:()=>W_t,getModeForUsageLocation:()=>N0e,getModifiedTime:()=>OT,getModifiers:()=>Qk,getModuleInstanceState:()=>KT,getModuleNameStringLiteralAt:()=>IK,getModuleSpecifierEndingPreference:()=>z4e,getModuleSpecifierResolverHost:()=>ove,getNameForExportedSymbol:()=>oae,getNameFromImportAttribute:()=>Cne,getNameFromIndexInfo:()=>l6e,getNameFromPropertyName:()=>HK,getNameOfAccessExpression:()=>Rhe,getNameOfCompilerOptionValue:()=>hie,getNameOfDeclaration:()=>cs,getNameOfExpando:()=>zme,getNameOfJSDocTypedef:()=>Ate,getNameOfScriptTarget:()=>sne,getNameOrArgument:()=>$G,getNameTable:()=>vSe,getNamespaceDeclarationNode:()=>HR,getNewLineCharacter:()=>fE,getNewLineKind:()=>iQ,getNewLineOrDefaultFromHost:()=>ZT,getNewTargetContainer:()=>C6e,getNextJSDocCommentLocation:()=>Gme,getNodeChildren:()=>Jge,getNodeForGeneratedName:()=>QH,getNodeId:()=>hl,getNodeKind:()=>NP,getNodeModifiers:()=>Kz,getNodeModulePathParts:()=>Tne,getNonAssignedNameOfDeclaration:()=>PR,getNonAssignmentOperatorForCompoundAssignment:()=>Pz,getNonAugmentationDeclaration:()=>Ame,getNonDecoratorTokenPosOfNode:()=>xme,getNonIncrementalBuildInfoRoots:()=>YOe,getNonModifierTokenPosOfNode:()=>YPe,getNormalizedAbsolutePath:()=>za,getNormalizedAbsolutePathWithoutRoot:()=>ER,getNormalizedPathComponents:()=>Jk,getObjectFlags:()=>ro,getOperatorAssociativity:()=>ahe,getOperatorPrecedence:()=>YG,getOptionFromName:()=>mye,getOptionsForLibraryResolution:()=>Iye,getOptionsNameMap:()=>PL,getOptionsSyntaxByArrayElementValue:()=>fge,getOptionsSyntaxByValue:()=>u3e,getOrCreateEmitNode:()=>nm,getOrUpdate:()=>hs,getOriginalNode:()=>Ku,getOriginalNodeId:()=>gh,getOutputDeclarationFileName:()=>Mz,getOutputDeclarationFileNameWorker:()=>m0e,getOutputExtension:()=>TK,getOutputFileNames:()=>j_t,getOutputJSFileNameWorker:()=>h0e,getOutputPathsFor:()=>Lz,getOwnEmitOutputFilePath:()=>K6e,getOwnKeys:()=>Lu,getOwnValues:()=>sS,getPackageJsonTypesVersionsPaths:()=>Eie,getPackageNameFromTypesPackageName:()=>Dz,getPackageScopeForPath:()=>Cz,getParameterSymbolFromJSDoc:()=>GG,getParentNodeInSpan:()=>QK,getParseTreeNode:()=>vs,getParsedCommandLineOfConfigFile:()=>rK,getPathComponents:()=>Cd,getPathFromPathComponents:()=>pS,getPathUpdater:()=>$ve,getPathsBasePath:()=>Ure,getPatternFromSpec:()=>Vhe,getPendingEmitKindWithSeen:()=>aoe,getPositionOfLineAndCharacter:()=>C4,getPossibleGenericSignatures:()=>H1e,getPossibleOriginalInputExtensionForExtension:()=>dhe,getPossibleOriginalInputPathWithoutChangingExt:()=>fhe,getPossibleTypeArgumentsInfo:()=>K1e,getPreEmitDiagnostics:()=>B_t,getPrecedingNonSpaceCharacterPosition:()=>Qoe,getPrivateIdentifier:()=>a0e,getProperties:()=>i0e,getProperty:()=>Q0,getPropertyAssignmentAliasLikeExpression:()=>z6e,getPropertyNameForPropertyNameNode:()=>H4,getPropertyNameFromType:()=>x0,getPropertyNameOfBindingOrAssignmentElement:()=>Xge,getPropertySymbolFromBindingElement:()=>Hoe,getPropertySymbolsFromContextualType:()=>Iae,getQuoteFromPreference:()=>sve,getQuotePreference:()=>Vg,getRangesWhere:()=>ou,getRefactorContextSpan:()=>$F,getReferencedFileLocation:()=>Uz,getRegexFromPattern:()=>mE,getRegularExpressionForWildcard:()=>zU,getRegularExpressionsForWildcards:()=>pne,getRelativePathFromDirectory:()=>lh,getRelativePathFromFile:()=>Vk,getRelativePathToDirectoryOrUrl:()=>FT,getRenameLocation:()=>XK,getReplacementSpanForContextToken:()=>Y1e,getResolutionDiagnostic:()=>j0e,getResolutionModeOverride:()=>$L,getResolveJsonModule:()=>_P,getResolvePackageJsonExports:()=>fH,getResolvePackageJsonImports:()=>mH,getResolvedExternalModuleName:()=>phe,getResolvedModuleFromResolution:()=>jO,getResolvedTypeReferenceDirectiveFromResolution:()=>tre,getRestIndicatorOfBindingOrAssignmentElement:()=>rie,getRestParameterElementType:()=>Mme,getRightMostAssignedExpression:()=>BG,getRootDeclaration:()=>bS,getRootDirectoryOfResolutionCache:()=>oFe,getRootLength:()=>Fy,getScriptKind:()=>yve,getScriptKindFromFileName:()=>mne,getScriptTargetFeatures:()=>Tme,getSelectedEffectiveModifierFlags:()=>QO,getSelectedSyntacticModifierFlags:()=>n4e,getSemanticClassifications:()=>q7e,getSemanticJsxChildren:()=>YR,getSetAccessorTypeAnnotationNode:()=>X6e,getSetAccessorValueParameter:()=>NU,getSetExternalModuleIndicator:()=>dH,getShebang:()=>VI,getSingleVariableOfVariableStatement:()=>GO,getSnapshotText:()=>BF,getSnippetElement:()=>xge,getSourceFileOfModule:()=>yG,getSourceFileOfNode:()=>Pn,getSourceFilePathInNewDir:()=>qre,getSourceFileVersionAsHashFromText:()=>doe,getSourceFilesToEmit:()=>zre,getSourceMapRange:()=>yE,getSourceMapper:()=>o5e,getSourceTextOfNodeFromSourceFile:()=>XI,getSpanOfTokenAtPosition:()=>gS,getSpellingSuggestion:()=>xx,getStartPositionOfLine:()=>iC,getStartPositionOfRange:()=>LU,getStartsOnNewLine:()=>rz,getStaticPropertiesAndClassStaticBlock:()=>$ie,getStrictOptionValue:()=>rm,getStringComparer:()=>ub,getSubPatternFromSpec:()=>_ne,getSuperCallFromStatement:()=>jie,getSuperContainer:()=>IG,getSupportedCodeFixes:()=>gSe,getSupportedExtensions:()=>qU,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>SH,getSwitchedType:()=>bve,getSymbolId:()=>hc,getSymbolNameForPrivateIdentifier:()=>XG,getSymbolTarget:()=>vve,getSyntacticClassifications:()=>J7e,getSyntacticModifierFlags:()=>_E,getSyntacticModifierFlagsNoCache:()=>She,getSynthesizedDeepClone:()=>Il,getSynthesizedDeepCloneWithReplacements:()=>wH,getSynthesizedDeepClones:()=>hP,getSynthesizedDeepClonesWithReplacements:()=>hge,getSyntheticLeadingComments:()=>_L,getSyntheticTrailingComments:()=>FH,getTargetLabel:()=>Poe,getTargetOfBindingOrAssignmentElement:()=>xC,getTemporaryModuleResolutionState:()=>kz,getTextOfConstantValue:()=>r6e,getTextOfIdentifierOrLiteral:()=>g0,getTextOfJSDocComment:()=>oG,getTextOfJsxAttributeName:()=>DH,getTextOfJsxNamespacedName:()=>ez,getTextOfNode:()=>Sp,getTextOfNodeFromSourceText:()=>uU,getTextOfPropertyName:()=>UO,getThisContainer:()=>Hm,getThisParameter:()=>cP,getTokenAtPosition:()=>la,getTokenPosOfNode:()=>oC,getTokenSourceMapRange:()=>Ilt,getTouchingPropertyName:()=>Vh,getTouchingToken:()=>KL,getTrailingCommentRanges:()=>hb,getTrailingSemicolonDeferringWriter:()=>uhe,getTransformers:()=>yOe,getTsBuildInfoEmitOutputFilePath:()=>LA,getTsConfigObjectLiteralExpression:()=>fU,getTsConfigPropArrayElementValue:()=>hre,getTypeAnnotationNode:()=>Y6e,getTypeArgumentOrTypeParameterList:()=>_7e,getTypeKeywordOfTypeOnlyImport:()=>uve,getTypeNode:()=>k3e,getTypeNodeIfAccessible:()=>nq,getTypeParameterFromJsDoc:()=>L6e,getTypeParameterOwner:()=>z,getTypesPackageName:()=>Pie,getUILocale:()=>Fk,getUniqueName:()=>k3,getUniqueSymbolId:()=>A7e,getUseDefineForClassFields:()=>hH,getWatchErrorSummaryDiagnosticMessage:()=>Z0e,getWatchFactory:()=>E0e,group:()=>Pg,groupBy:()=>Du,guessIndentation:()=>zPe,handleNoEmitOptions:()=>M0e,handleWatchOptionsConfigDirTemplateSubstitution:()=>yie,hasAbstractModifier:()=>pP,hasAccessorModifier:()=>xS,hasAmbientModifier:()=>vhe,hasChangesInResolutions:()=>vme,hasContextSensitiveParameters:()=>xne,hasDecorators:()=>By,hasDocComment:()=>u7e,hasDynamicName:()=>$T,hasEffectiveModifier:()=>Bg,hasEffectiveModifiers:()=>yhe,hasEffectiveReadonlyModifier:()=>Q4,hasExtension:()=>eA,hasImplementationTSFileExtension:()=>$4e,hasIndexSignature:()=>Sve,hasInferredType:()=>Ane,hasInitializer:()=>lE,hasInvalidEscape:()=>che,hasJSDocNodes:()=>hy,hasJSDocParameterTags:()=>Nte,hasJSFileExtension:()=>jx,hasJsonModuleEmitEnabled:()=>ane,hasOnlyExpressionInitializer:()=>j4,hasOverrideModifier:()=>Wre,hasPossibleExternalModuleReference:()=>s6e,hasProperty:()=>Ho,hasPropertyAccessExpressionWithName:()=>$K,hasQuestionToken:()=>VO,hasRecordedExternalHelpers:()=>pNe,hasResolutionModeOverride:()=>n3e,hasRestParameter:()=>fme,hasScopeMarker:()=>OPe,hasStaticModifier:()=>fd,hasSyntacticModifier:()=>ko,hasSyntacticModifiers:()=>r4e,hasTSFileExtension:()=>X4,hasTabstop:()=>e3e,hasTrailingDirectorySeparator:()=>uS,hasType:()=>Qte,hasTypeArguments:()=>Zct,hasZeroOrOneAsteriskCharacter:()=>Uhe,hostGetCanonicalFileName:()=>UT,hostUsesCaseSensitiveFileNames:()=>K4,idText:()=>Zi,identifierIsThisKeyword:()=>hhe,identifierToKeywordKind:()=>aA,identity:()=>vl,identitySourceMapConsumer:()=>t0e,ignoreSourceNewlines:()=>Ege,ignoredPaths:()=>b4,importFromModuleSpecifier:()=>bU,importSyntaxAffectsModuleResolution:()=>Bhe,indexOfAnyCharCode:()=>xo,indexOfNode:()=>BR,indicesOf:()=>zp,inferredTypesContainingFile:()=>$z,injectClassNamedEvaluationHelperBlockIfMissing:()=>Jie,injectClassThisAssignmentIfMissing:()=>V8e,insertImports:()=>lve,insertSorted:()=>vm,insertStatementAfterCustomPrologue:()=>B4,insertStatementAfterStandardPrologue:()=>Jct,insertStatementsAfterCustomPrologue:()=>Sme,insertStatementsAfterStandardPrologue:()=>Px,intersperse:()=>tr,intrinsicTagNameToString:()=>sge,introducesArgumentsExoticObject:()=>S6e,inverseJsxOptionMap:()=>eK,isAbstractConstructorSymbol:()=>v4e,isAbstractModifier:()=>M3e,isAccessExpression:()=>wu,isAccessibilityModifier:()=>Z1e,isAccessor:()=>tC,isAccessorModifier:()=>Ige,isAliasableExpression:()=>Pre,isAmbientModule:()=>Gm,isAmbientPropertyDeclaration:()=>Ime,isAnyDirectorySeparator:()=>XD,isAnyImportOrBareOrAccessedRequire:()=>o6e,isAnyImportOrReExport:()=>xG,isAnyImportOrRequireStatement:()=>a6e,isAnyImportSyntax:()=>$O,isAnySupportedFileExtension:()=>blt,isApplicableVersionedTypesKey:()=>uK,isArgumentExpressionOfElementAccess:()=>$1e,isArray:()=>Zn,isArrayBindingElement:()=>Jte,isArrayBindingOrAssignmentElement:()=>pG,isArrayBindingOrAssignmentPattern:()=>cme,isArrayBindingPattern:()=>xE,isArrayLiteralExpression:()=>qf,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>kE,isArrayTypeNode:()=>jH,isArrowFunction:()=>Iu,isAsExpression:()=>gL,isAssertClause:()=>V3e,isAssertEntry:()=>Ult,isAssertionExpression:()=>ZI,isAssertsKeyword:()=>R3e,isAssignmentDeclaration:()=>yU,isAssignmentExpression:()=>of,isAssignmentOperator:()=>zT,isAssignmentPattern:()=>aU,isAssignmentTarget:()=>lC,isAsteriskToken:()=>LH,isAsyncFunction:()=>CU,isAsyncModifier:()=>oz,isAutoAccessorPropertyDeclaration:()=>Mh,isAwaitExpression:()=>SC,isAwaitKeyword:()=>wge,isBigIntLiteral:()=>dL,isBinaryExpression:()=>wi,isBinaryLogicalOperator:()=>iH,isBinaryOperatorToken:()=>vNe,isBindableObjectDefinePropertyCall:()=>J4,isBindableStaticAccessExpression:()=>nP,isBindableStaticElementAccessExpression:()=>Are,isBindableStaticNameExpression:()=>V4,isBindingElement:()=>Vc,isBindingElementOfBareOrAccessedRequire:()=>w6e,isBindingName:()=>L4,isBindingOrAssignmentElement:()=>wPe,isBindingOrAssignmentPattern:()=>lG,isBindingPattern:()=>$s,isBlock:()=>Vs,isBlockLike:()=>UF,isBlockOrCatchScoped:()=>Eme,isBlockScope:()=>Pme,isBlockScopedContainerTopLevel:()=>i6e,isBooleanLiteral:()=>oU,isBreakOrContinueStatement:()=>tU,isBreakStatement:()=>jlt,isBuildCommand:()=>DFe,isBuildInfoFile:()=>vOe,isBuilderProgram:()=>Y0e,isBundle:()=>K3e,isCallChain:()=>O4,isCallExpression:()=>Js,isCallExpressionTarget:()=>F1e,isCallLikeExpression:()=>QI,isCallLikeOrFunctionLikeExpression:()=>lme,isCallOrNewExpression:()=>mS,isCallOrNewExpressionTarget:()=>R1e,isCallSignatureDeclaration:()=>hF,isCallToHelper:()=>iz,isCaseBlock:()=>_z,isCaseClause:()=>bL,isCaseKeyword:()=>B3e,isCaseOrDefaultClause:()=>Hte,isCatchClause:()=>TP,isCatchClauseVariableDeclaration:()=>Y4e,isCatchClauseVariableDeclarationOrBindingElement:()=>kme,isCheckJsEnabledForFile:()=>WU,isCircularBuildOrder:()=>MF,isClassDeclaration:()=>ed,isClassElement:()=>J_,isClassExpression:()=>w_,isClassInstanceProperty:()=>DPe,isClassLike:()=>Co,isClassMemberModifier:()=>ome,isClassNamedEvaluationHelperBlock:()=>FF,isClassOrTypeElement:()=>qte,isClassStaticBlockDeclaration:()=>n_,isClassThisAssignmentBlock:()=>Oz,isColonToken:()=>O3e,isCommaExpression:()=>VH,isCommaListExpression:()=>uz,isCommaSequence:()=>gz,isCommaToken:()=>N3e,isComment:()=>Uoe,isCommonJsExportPropertyAssignment:()=>fre,isCommonJsExportedExpression:()=>y6e,isCompoundAssignment:()=>Iz,isComputedNonLiteralName:()=>TG,isComputedPropertyName:()=>dc,isConciseBody:()=>Wte,isConditionalExpression:()=>a3,isConditionalTypeNode:()=>yP,isConstAssertion:()=>cge,isConstTypeReference:()=>z1,isConstructSignatureDeclaration:()=>cz,isConstructorDeclaration:()=>kp,isConstructorTypeNode:()=>fL,isContextualKeyword:()=>Ore,isContinueStatement:()=>Mlt,isCustomPrologue:()=>AG,isDebuggerStatement:()=>Blt,isDeclaration:()=>Vd,isDeclarationBindingElement:()=>cG,isDeclarationFileName:()=>sf,isDeclarationName:()=>Eb,isDeclarationNameOfEnumOrNamespace:()=>Ihe,isDeclarationReadonly:()=>kG,isDeclarationStatement:()=>MPe,isDeclarationWithTypeParameterChildren:()=>Ome,isDeclarationWithTypeParameters:()=>Nme,isDecorator:()=>hd,isDecoratorTarget:()=>YFe,isDefaultClause:()=>dz,isDefaultImport:()=>W4,isDefaultModifier:()=>$ne,isDefaultedExpandoInitializer:()=>I6e,isDeleteExpression:()=>U3e,isDeleteTarget:()=>Qme,isDeprecatedDeclaration:()=>aae,isDestructuringAssignment:()=>dE,isDiskPathRoot:()=>jI,isDoStatement:()=>Llt,isDocumentRegistryEntry:()=>aQ,isDotDotDotToken:()=>jne,isDottedName:()=>aH,isDynamicName:()=>Rre,isEffectiveExternalModule:()=>$R,isEffectiveStrictModeSourceFile:()=>wme,isElementAccessChain:()=>Yfe,isElementAccessExpression:()=>mu,isEmittedFileOfProgram:()=>COe,isEmptyArrayLiteral:()=>u4e,isEmptyBindingElement:()=>bt,isEmptyBindingPattern:()=>Ie,isEmptyObjectLiteral:()=>khe,isEmptyStatement:()=>Oge,isEmptyStringLiteral:()=>$me,isEntityName:()=>uh,isEntityNameExpression:()=>ru,isEnumConst:()=>lA,isEnumDeclaration:()=>CA,isEnumMember:()=>GT,isEqualityOperatorKind:()=>Yoe,isEqualsGreaterThanToken:()=>F3e,isExclamationToken:()=>MH,isExcludedFile:()=>HNe,isExclusivelyTypeOnlyImportOrExport:()=>P0e,isExpandoPropertyDeclaration:()=>lF,isExportAssignment:()=>Xu,isExportDeclaration:()=>P_,isExportModifier:()=>fF,isExportName:()=>eie,isExportNamespaceAsDefaultDeclaration:()=>are,isExportOrDefaultModifier:()=>KH,isExportSpecifier:()=>Cm,isExportsIdentifier:()=>q4,isExportsOrModuleExportsOrAlias:()=>CP,isExpression:()=>Vt,isExpressionNode:()=>Tb,isExpressionOfExternalModuleImportEqualsDeclaration:()=>r7e,isExpressionOfOptionalChainRoot:()=>Bte,isExpressionStatement:()=>af,isExpressionWithTypeArguments:()=>VT,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Hre,isExternalModule:()=>yd,isExternalModuleAugmentation:()=>eP,isExternalModuleImportEqualsDeclaration:()=>pA,isExternalModuleIndicator:()=>dG,isExternalModuleNameRelative:()=>vt,isExternalModuleReference:()=>WT,isExternalModuleSymbol:()=>LO,isExternalOrCommonJsModule:()=>Lg,isFileLevelReservedGeneratedIdentifier:()=>sG,isFileLevelUniqueName:()=>ire,isFileProbablyExternalModule:()=>XH,isFirstDeclarationOfSymbolParameter:()=>mve,isFixablePromiseHandler:()=>Wve,isForInOrOfStatement:()=>M4,isForInStatement:()=>Vne,isForInitializer:()=>f0,isForOfStatement:()=>$H,isForStatement:()=>kA,isFullSourceFile:()=>Ox,isFunctionBlock:()=>tP,isFunctionBody:()=>pme,isFunctionDeclaration:()=>i_,isFunctionExpression:()=>bu,isFunctionExpressionOrArrowFunction:()=>mC,isFunctionLike:()=>Rs,isFunctionLikeDeclaration:()=>lu,isFunctionLikeKind:()=>NO,isFunctionLikeOrClassStaticBlockDeclaration:()=>RR,isFunctionOrConstructorTypeNode:()=>APe,isFunctionOrModuleBlock:()=>ame,isFunctionSymbol:()=>O6e,isFunctionTypeNode:()=>Cb,isGeneratedIdentifier:()=>ap,isGeneratedPrivateIdentifier:()=>R4,isGetAccessor:()=>Ax,isGetAccessorDeclaration:()=>T0,isGetOrSetAccessorDeclaration:()=>aG,isGlobalScopeAugmentation:()=>xb,isGlobalSourceFile:()=>uE,isGrammarError:()=>ZPe,isHeritageClause:()=>zg,isHoistedFunction:()=>_re,isHoistedVariableStatement:()=>dre,isIdentifier:()=>ct,isIdentifierANonContextualKeyword:()=>the,isIdentifierName:()=>U6e,isIdentifierOrThisTypeNode:()=>mNe,isIdentifierPart:()=>j1,isIdentifierStart:()=>pg,isIdentifierText:()=>Jd,isIdentifierTypePredicate:()=>b6e,isIdentifierTypeReference:()=>H4e,isIfStatement:()=>EA,isIgnoredFileFromWildCardWatching:()=>kK,isImplicitGlob:()=>Jhe,isImportAttribute:()=>W3e,isImportAttributeName:()=>CPe,isImportAttributes:()=>l3,isImportCall:()=>Bh,isImportClause:()=>H1,isImportDeclaration:()=>fp,isImportEqualsDeclaration:()=>gd,isImportKeyword:()=>sz,isImportMeta:()=>qR,isImportOrExportSpecifier:()=>Yk,isImportOrExportSpecifierName:()=>D7e,isImportSpecifier:()=>Xm,isImportTypeAssertionContainer:()=>$lt,isImportTypeNode:()=>AS,isImportable:()=>Fve,isInComment:()=>EE,isInCompoundLikeAssignment:()=>Kme,isInExpressionContext:()=>xre,isInJSDoc:()=>gU,isInJSFile:()=>Ei,isInJSXText:()=>l7e,isInJsonFile:()=>Ere,isInNonReferenceComment:()=>m7e,isInReferenceComment:()=>f7e,isInRightSideOfInternalImportEqualsDeclaration:()=>woe,isInString:()=>jF,isInTemplateString:()=>G1e,isInTopLevelContext:()=>vre,isInTypeQuery:()=>KO,isIncrementalBuildInfo:()=>PK,isIncrementalBundleEmitBuildInfo:()=>GOe,isIncrementalCompilation:()=>dP,isIndexSignatureDeclaration:()=>vC,isIndexedAccessTypeNode:()=>vP,isInferTypeNode:()=>n3,isInfinityOrNaNString:()=>ZU,isInitializedProperty:()=>mK,isInitializedVariable:()=>pH,isInsideJsxElement:()=>Boe,isInsideJsxElementOrAttribute:()=>c7e,isInsideNodeModules:()=>tQ,isInsideTemplateLiteral:()=>VK,isInstanceOfExpression:()=>Kre,isInstantiatedModule:()=>Hye,isInterfaceDeclaration:()=>Af,isInternalDeclaration:()=>qPe,isInternalModuleImportEqualsDeclaration:()=>z4,isInternalName:()=>Kge,isIntersectionTypeNode:()=>vF,isIntrinsicJsxName:()=>eL,isIterationStatement:()=>rC,isJSDoc:()=>kv,isJSDocAllType:()=>X3e,isJSDocAugmentsTag:()=>EF,isJSDocAuthorTag:()=>Vlt,isJSDocCallbackTag:()=>Mge,isJSDocClassTag:()=>eNe,isJSDocCommentContainingNode:()=>Kte,isJSDocConstructSignature:()=>WO,isJSDocDeprecatedTag:()=>zge,isJSDocEnumTag:()=>zH,isJSDocFunctionType:()=>TL,isJSDocImplementsTag:()=>Zne,isJSDocImportTag:()=>OS,isJSDocIndexSignature:()=>Cre,isJSDocLikeText:()=>iye,isJSDocLink:()=>Q3e,isJSDocLinkCode:()=>Z3e,isJSDocLinkLike:()=>RO,isJSDocLinkPlain:()=>qlt,isJSDocMemberName:()=>wA,isJSDocNameReference:()=>fz,isJSDocNamepathType:()=>Jlt,isJSDocNamespaceBody:()=>Mct,isJSDocNode:()=>LR,isJSDocNonNullableType:()=>Gne,isJSDocNullableType:()=>xL,isJSDocOptionalParameter:()=>Ene,isJSDocOptionalType:()=>Lge,isJSDocOverloadTag:()=>EL,isJSDocOverrideTag:()=>Kne,isJSDocParameterTag:()=>Uy,isJSDocPrivateTag:()=>Bge,isJSDocPropertyLikeTag:()=>rU,isJSDocPropertyTag:()=>tNe,isJSDocProtectedTag:()=>$ge,isJSDocPublicTag:()=>jge,isJSDocReadonlyTag:()=>Uge,isJSDocReturnTag:()=>Qne,isJSDocSatisfiesExpression:()=>oge,isJSDocSatisfiesTag:()=>Xne,isJSDocSeeTag:()=>Wlt,isJSDocSignature:()=>TE,isJSDocTag:()=>MR,isJSDocTemplateTag:()=>c1,isJSDocThisTag:()=>qge,isJSDocThrowsTag:()=>Hlt,isJSDocTypeAlias:()=>n1,isJSDocTypeAssertion:()=>EP,isJSDocTypeExpression:()=>AA,isJSDocTypeLiteral:()=>p3,isJSDocTypeTag:()=>mz,isJSDocTypedefTag:()=>_3,isJSDocUnknownTag:()=>Glt,isJSDocUnknownType:()=>Y3e,isJSDocVariadicType:()=>Hne,isJSXTagName:()=>WR,isJsonEqual:()=>Sne,isJsonSourceFile:()=>h0,isJsxAttribute:()=>NS,isJsxAttributeLike:()=>Gte,isJsxAttributeName:()=>r3e,isJsxAttributes:()=>xP,isJsxCallLike:()=>UPe,isJsxChild:()=>hG,isJsxClosingElement:()=>bP,isJsxClosingFragment:()=>H3e,isJsxElement:()=>PS,isJsxExpression:()=>SL,isJsxFragment:()=>DA,isJsxNamespacedName:()=>Ev,isJsxOpeningElement:()=>Tv,isJsxOpeningFragment:()=>K1,isJsxOpeningLikeElement:()=>Em,isJsxOpeningLikeElementTagName:()=>e7e,isJsxSelfClosingElement:()=>u3,isJsxSpreadAttribute:()=>TF,isJsxTagNameExpression:()=>sU,isJsxText:()=>_F,isJumpStatementTarget:()=>UK,isKeyword:()=>Uh,isKeywordOrPunctuation:()=>Nre,isKnownSymbol:()=>AU,isLabelName:()=>j1e,isLabelOfLabeledStatement:()=>M1e,isLabeledStatement:()=>bC,isLateVisibilityPaintedStatement:()=>cre,isLeftHandSideExpression:()=>jh,isLet:()=>pre,isLineBreak:()=>Dd,isLiteralComputedPropertyDeclarationName:()=>KG,isLiteralExpression:()=>F4,isLiteralExpressionOfObject:()=>nme,isLiteralImportTypeNode:()=>jT,isLiteralKind:()=>nU,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>Noe,isLiteralTypeLiteral:()=>NPe,isLiteralTypeNode:()=>bE,isLocalName:()=>HT,isLogicalOperator:()=>s4e,isLogicalOrCoalescingAssignmentExpression:()=>bhe,isLogicalOrCoalescingAssignmentOperator:()=>OU,isLogicalOrCoalescingBinaryExpression:()=>oH,isLogicalOrCoalescingBinaryOperator:()=>Gre,isMappedTypeNode:()=>o3,isMemberName:()=>Dx,isMetaProperty:()=>s3,isMethodDeclaration:()=>Ep,isMethodOrAccessor:()=>OO,isMethodSignature:()=>G1,isMinusToken:()=>Age,isMissingDeclaration:()=>zlt,isMissingPackageJsonInfo:()=>o8e,isModifier:()=>bc,isModifierKind:()=>eC,isModifierLike:()=>sp,isModuleAugmentationExternal:()=>Dme,isModuleBlock:()=>wS,isModuleBody:()=>FPe,isModuleDeclaration:()=>I_,isModuleExportName:()=>Wne,isModuleExportsAccessExpression:()=>Fx,isModuleIdentifier:()=>qme,isModuleName:()=>yNe,isModuleOrEnumDeclaration:()=>fG,isModuleReference:()=>BPe,isModuleSpecifierLike:()=>Goe,isModuleWithStringLiteralName:()=>sre,isNameOfFunctionDeclaration:()=>z1e,isNameOfModuleDeclaration:()=>U1e,isNamedDeclaration:()=>Vp,isNamedEvaluation:()=>Mg,isNamedEvaluationSource:()=>rhe,isNamedExportBindings:()=>tme,isNamedExports:()=>k0,isNamedImportBindings:()=>_me,isNamedImports:()=>IS,isNamedImportsOrExports:()=>tne,isNamedTupleMember:()=>mL,isNamespaceBody:()=>Lct,isNamespaceExport:()=>Db,isNamespaceExportDeclaration:()=>UH,isNamespaceImport:()=>zx,isNamespaceReexportDeclaration:()=>A6e,isNewExpression:()=>SP,isNewExpressionTarget:()=>Wz,isNewScopeNode:()=>l3e,isNoSubstitutionTemplateLiteral:()=>r3,isNodeArray:()=>HI,isNodeArrayMultiLine:()=>h4e,isNodeDescendantOf:()=>oP,isNodeKind:()=>Ute,isNodeLikeSystem:()=>rO,isNodeModulesDirectory:()=>CO,isNodeWithPossibleHoistedDeclaration:()=>B6e,isNonContextualKeyword:()=>ehe,isNonGlobalAmbientModule:()=>Cme,isNonNullAccess:()=>t3e,isNonNullChain:()=>$te,isNonNullExpression:()=>bF,isNonStaticMethodOrAccessorWithPrivateName:()=>j8e,isNotEmittedStatement:()=>G3e,isNullishCoalesce:()=>eme,isNumber:()=>Kn,isNumericLiteral:()=>qh,isNumericLiteralName:()=>$x,isObjectBindingElementWithoutPropertyName:()=>KK,isObjectBindingOrAssignmentElement:()=>uG,isObjectBindingOrAssignmentPattern:()=>sme,isObjectBindingPattern:()=>$y,isObjectLiteralElement:()=>dme,isObjectLiteralElementLike:()=>MT,isObjectLiteralExpression:()=>Lc,isObjectLiteralMethod:()=>r1,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>mre,isObjectTypeDeclaration:()=>eF,isOmittedExpression:()=>Id,isOptionalChain:()=>xm,isOptionalChainRoot:()=>Y$,isOptionalDeclaration:()=>sF,isOptionalJSDocPropertyLikeTag:()=>CH,isOptionalTypeNode:()=>Une,isOuterExpression:()=>tie,isOutermostOptionalChain:()=>eU,isOverrideModifier:()=>j3e,isPackageJsonInfo:()=>Cie,isPackedArrayLiteral:()=>nge,isParameter:()=>wa,isParameterPropertyDeclaration:()=>ne,isParameterPropertyModifier:()=>iU,isParenthesizedExpression:()=>mh,isParenthesizedTypeNode:()=>i3,isParseTreeNode:()=>I4,isPartOfParameterDeclaration:()=>hA,isPartOfTypeNode:()=>vS,isPartOfTypeOnlyImportOrExportDeclaration:()=>kPe,isPartOfTypeQuery:()=>Tre,isPartiallyEmittedExpression:()=>z3e,isPatternMatch:()=>L1,isPinnedComment:()=>ore,isPlainJsFile:()=>lU,isPlusToken:()=>Dge,isPossiblyTypeArgumentPosition:()=>JK,isPostfixUnaryExpression:()=>Nge,isPrefixUnaryExpression:()=>TA,isPrimitiveLiteralValue:()=>Dne,isPrivateIdentifier:()=>Aa,isPrivateIdentifierClassElementDeclaration:()=>Tm,isPrivateIdentifierPropertyAccessExpression:()=>FR,isPrivateIdentifierSymbol:()=>J6e,isProgramUptoDate:()=>R0e,isPrologueDirective:()=>yS,isPropertyAccessChain:()=>jte,isPropertyAccessEntityNameExpression:()=>sH,isPropertyAccessExpression:()=>no,isPropertyAccessOrQualifiedName:()=>_G,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>IPe,isPropertyAssignment:()=>td,isPropertyDeclaration:()=>ps,isPropertyName:()=>q_,isPropertyNameLiteral:()=>SS,isPropertySignature:()=>Zm,isPrototypeAccess:()=>_C,isPrototypePropertyAssignment:()=>zG,isPunctuation:()=>Yme,isPushOrUnshiftIdentifier:()=>nhe,isQualifiedName:()=>dh,isQuestionDotToken:()=>Bne,isQuestionOrExclamationToken:()=>fNe,isQuestionOrPlusOrMinusToken:()=>gNe,isQuestionToken:()=>yC,isReadonlyKeyword:()=>L3e,isReadonlyKeywordOrPlusOrMinusToken:()=>hNe,isRecognizedTripleSlashComment:()=>bme,isReferenceFileLocation:()=>UL,isReferencedFile:()=>MA,isRegularExpressionLiteral:()=>kge,isRequireCall:()=>$h,isRequireVariableStatement:()=>LG,isRestParameter:()=>Sb,isRestTypeNode:()=>zne,isReturnStatement:()=>gy,isReturnStatementWithFixablePromiseHandler:()=>fae,isRightSideOfAccessExpression:()=>Ehe,isRightSideOfInstanceofExpression:()=>l4e,isRightSideOfPropertyAccess:()=>WL,isRightSideOfQualifiedName:()=>t7e,isRightSideOfQualifiedNameOrPropertyAccess:()=>FU,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>c4e,isRootedDiskPath:()=>qd,isSameEntityName:()=>GR,isSatisfiesExpression:()=>yL,isSemicolonClassElement:()=>q3e,isSetAccessor:()=>hS,isSetAccessorDeclaration:()=>mg,isShiftOperatorOrHigher:()=>tye,isShorthandAmbientModuleSymbol:()=>bG,isShorthandPropertyAssignment:()=>im,isSideEffectImport:()=>uge,isSignedNumericLiteral:()=>Fre,isSimpleCopiableExpression:()=>DP,isSimpleInlineableExpression:()=>FS,isSimpleParameterList:()=>hK,isSingleOrDoubleQuote:()=>MG,isSolutionConfig:()=>Eye,isSourceElement:()=>i3e,isSourceFile:()=>Ta,isSourceFileFromLibrary:()=>rM,isSourceFileJS:()=>ph,isSourceFileNotJson:()=>kre,isSourceMapping:()=>R8e,isSpecialPropertyDeclaration:()=>N6e,isSpreadAssignment:()=>qx,isSpreadElement:()=>E0,isStatement:()=>fa,isStatementButNotDeclaration:()=>mG,isStatementOrBlock:()=>jPe,isStatementWithLocals:()=>QPe,isStatic:()=>oc,isStaticModifier:()=>mF,isString:()=>Ni,isStringANonContextualKeyword:()=>HO,isStringAndEmptyAnonymousObjectIntersection:()=>d7e,isStringDoubleQuoted:()=>Dre,isStringLiteral:()=>Ic,isStringLiteralLike:()=>Sl,isStringLiteralOrJsxExpression:()=>$Pe,isStringLiteralOrTemplate:()=>P7e,isStringOrNumericLiteralLike:()=>jy,isStringOrRegularExpressionOrTemplateLiteral:()=>Q1e,isStringTextContainingNode:()=>ime,isSuperCall:()=>U4,isSuperKeyword:()=>az,isSuperProperty:()=>_g,isSupportedSourceFileName:()=>Khe,isSwitchStatement:()=>pz,isSyntaxList:()=>kL,isSyntheticExpression:()=>Rlt,isSyntheticReference:()=>xF,isTagName:()=>B1e,isTaggedTemplateExpression:()=>xA,isTaggedTemplateTag:()=>XFe,isTemplateExpression:()=>Jne,isTemplateHead:()=>dF,isTemplateLiteral:()=>FO,isTemplateLiteralKind:()=>Xk,isTemplateLiteralToken:()=>TPe,isTemplateLiteralTypeNode:()=>$3e,isTemplateLiteralTypeSpan:()=>Pge,isTemplateMiddle:()=>Cge,isTemplateMiddleOrTemplateTail:()=>zte,isTemplateSpan:()=>vL,isTemplateTail:()=>Mne,isTextWhiteSpaceLike:()=>v7e,isThis:()=>GL,isThisContainerOrFunctionBlock:()=>k6e,isThisIdentifier:()=>pC,isThisInTypeQuery:()=>lP,isThisInitializedDeclaration:()=>Sre,isThisInitializedObjectBindingExpression:()=>D6e,isThisProperty:()=>PG,isThisTypeNode:()=>lz,isThisTypeParameter:()=>XU,isThisTypePredicate:()=>x6e,isThrowStatement:()=>Rge,isToken:()=>PO,isTokenKind:()=>rme,isTraceEnabled:()=>TC,isTransientSymbol:()=>wx,isTrivia:()=>XR,isTryStatement:()=>c3,isTupleTypeNode:()=>yF,isTypeAlias:()=>VG,isTypeAliasDeclaration:()=>s1,isTypeAssertionExpression:()=>qne,isTypeDeclaration:()=>aF,isTypeElement:()=>KI,isTypeKeyword:()=>Qz,isTypeKeywordTokenOrIdentifier:()=>Joe,isTypeLiteralNode:()=>fh,isTypeNode:()=>Wo,isTypeNodeKind:()=>Fhe,isTypeOfExpression:()=>hL,isTypeOnlyExportDeclaration:()=>EPe,isTypeOnlyImportDeclaration:()=>OR,isTypeOnlyImportOrExportDeclaration:()=>cE,isTypeOperatorNode:()=>bA,isTypeParameterDeclaration:()=>Zu,isTypePredicateNode:()=>gF,isTypeQueryNode:()=>gP,isTypeReferenceNode:()=>Ug,isTypeReferenceType:()=>Zte,isTypeUsableAsPropertyName:()=>b0,isUMDExportSymbol:()=>ene,isUnaryExpression:()=>ume,isUnaryExpressionWithWrite:()=>PPe,isUnicodeIdentifierStart:()=>fv,isUnionTypeNode:()=>SE,isUrl:()=>TR,isValidBigIntString:()=>bne,isValidESSymbolDeclaration:()=>v6e,isValidTypeOnlyAliasUseSite:()=>yA,isValueSignatureDeclaration:()=>G4,isVarAwaitUsing:()=>CG,isVarConst:()=>zR,isVarConstLike:()=>m6e,isVarUsing:()=>DG,isVariableDeclaration:()=>Oo,isVariableDeclarationInVariableStatement:()=>dU,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>rP,isVariableDeclarationInitializedToRequire:()=>RG,isVariableDeclarationList:()=>Df,isVariableLike:()=>_U,isVariableStatement:()=>h_,isVoidExpression:()=>SF,isWatchSet:()=>Phe,isWhileStatement:()=>Fge,isWhiteSpaceLike:()=>p0,isWhiteSpaceSingleLine:()=>_0,isWithStatement:()=>J3e,isWriteAccess:()=>YO,isWriteOnlyAccess:()=>Yre,isYieldExpression:()=>BH,jsxModeNeedsExplicitImport:()=>Pve,keywordPart:()=>Wg,last:()=>Sn,lastOrUndefined:()=>Yr,length:()=>te,libMap:()=>lye,libs:()=>cie,lineBreakPart:()=>YL,loadModuleFromGlobalCache:()=>g8e,loadWithModeAwareCache:()=>DK,makeIdentifierFromModuleName:()=>n6e,makeImport:()=>IC,makeStringLiteral:()=>Zz,mangleScopedPackageName:()=>LL,map:()=>Cr,mapAllOrFail:()=>Bo,mapDefined:()=>Wn,mapDefinedIterator:()=>Na,mapEntries:()=>uc,mapIterator:()=>ol,mapOneOrMany:()=>Dve,mapToDisplayParts:()=>PC,matchFiles:()=>Whe,matchPatternOrExact:()=>Zhe,matchedText:()=>D9,matchesExclude:()=>bie,matchesExcludeWorker:()=>xie,maxBy:()=>Q2,maybeBind:()=>ja,maybeSetLocalizedDiagnosticMessages:()=>k4e,memoize:()=>Ef,memoizeOne:()=>pd,min:()=>bx,minAndMax:()=>V4e,missingFileModifiedTime:()=>Wm,modifierToFlag:()=>ZO,modifiersToFlags:()=>TS,moduleExportNameIsDefault:()=>bb,moduleExportNameTextEscaped:()=>YI,moduleExportNameTextUnescaped:()=>aC,moduleOptionDeclaration:()=>INe,moduleResolutionIsEqualTo:()=>HPe,moduleResolutionNameAndModeGetter:()=>Xie,moduleResolutionOptionDeclarations:()=>pye,moduleResolutionSupportsPackageJsonExportsAndImports:()=>sL,moduleResolutionUsesNodeModules:()=>Voe,moduleSpecifierToValidIdentifier:()=>nQ,moduleSpecifiers:()=>QT,moduleSupportsImportAttributes:()=>N4e,moduleSymbolToValidIdentifier:()=>rQ,moveEmitHelpers:()=>T3e,moveRangeEnd:()=>Zre,moveRangePastDecorators:()=>qT,moveRangePastModifiers:()=>ES,moveRangePos:()=>gA,moveSyntheticComments:()=>S3e,mutateMap:()=>BU,mutateMapSkippingNewValues:()=>Lx,needsParentheses:()=>Zoe,needsScopeMarker:()=>Vte,newCaseClauseTracker:()=>lae,newPrivateEnvironment:()=>$8e,noEmitNotification:()=>SK,noEmitSubstitution:()=>Rz,noTransformers:()=>gOe,noTruncationMaximumTruncationLength:()=>hme,nodeCanBeDecorated:()=>OG,nodeCoreModules:()=>pL,nodeHasName:()=>wO,nodeIsDecorated:()=>VR,nodeIsMissing:()=>Op,nodeIsPresent:()=>t1,nodeIsSynthesized:()=>fu,nodeModuleNameResolver:()=>u8e,nodeModulesPathPart:()=>Jx,nodeNextJsonConfigResolver:()=>p8e,nodeOrChildIsDecorated:()=>FG,nodeOverlapsWithStartEnd:()=>Ooe,nodePosToString:()=>$ct,nodeSeenTracker:()=>QL,nodeStartsNewLexicalEnvironment:()=>ihe,noop:()=>zs,noopFileWatcher:()=>JL,normalizePath:()=>Qs,normalizeSlashes:()=>Z_,normalizeSpans:()=>D_,not:()=>_4,notImplemented:()=>Ts,notImplementedResolver:()=>xOe,nullNodeConverters:()=>g3e,nullParenthesizerRules:()=>m3e,nullTransformationContext:()=>xK,objectAllocator:()=>Uf,operatorPart:()=>Yz,optionDeclarations:()=>Q1,optionMapToObject:()=>mie,optionsAffectingProgramStructure:()=>FNe,optionsForBuild:()=>dye,optionsForWatch:()=>wF,optionsHaveChanges:()=>MO,or:()=>jf,orderedRemoveItem:()=>IT,orderedRemoveItemAt:()=>R1,packageIdToPackageName:()=>nre,packageIdToString:()=>cA,parameterIsThisKeyword:()=>uC,parameterNamePart:()=>b7e,parseBaseNodeFactory:()=>ENe,parseBigInt:()=>G4e,parseBuildCommand:()=>zNe,parseCommandLine:()=>$Ne,parseCommandLineWorker:()=>fye,parseConfigFileTextToJson:()=>hye,parseConfigFileWithSystem:()=>sFe,parseConfigHostFromCompilerHostLike:()=>ioe,parseCustomTypeOption:()=>_ie,parseIsolatedEntityName:()=>AF,parseIsolatedJSDocComment:()=>CNe,parseJSDocTypeExpressionForTests:()=>yut,parseJsonConfigFileContent:()=>Hut,parseJsonSourceFileConfigFileContent:()=>oK,parseJsonText:()=>YH,parseListTypeOption:()=>jNe,parseNodeFactory:()=>PA,parseNodeModuleFromPath:()=>lK,parsePackageName:()=>wie,parsePseudoBigInt:()=>HU,parseValidBigInt:()=>tge,pasteEdits:()=>Ibe,patchWriteFileEnsuringDirectory:()=>bR,pathContainsNodeModules:()=>kC,pathIsAbsolute:()=>YD,pathIsBareSpecifier:()=>EO,pathIsRelative:()=>ch,patternText:()=>X8,performIncrementalCompilation:()=>cFe,performance:()=>R9,positionBelongsToNode:()=>q1e,positionIsASICandidate:()=>eae,positionIsSynthesized:()=>bv,positionsAreOnSameLine:()=>v0,preProcessFile:()=>nmt,probablyUsesSemicolons:()=>eQ,processCommentPragmas:()=>sye,processPragmasIntoFields:()=>cye,processTaggedTemplateExpression:()=>l0e,programContainsEsModules:()=>g7e,programContainsModules:()=>h7e,projectReferenceIsEqualTo:()=>gme,propertyNamePart:()=>x7e,pseudoBigIntToString:()=>fP,punctuationPart:()=>wm,pushIfUnique:()=>Zc,quote:()=>rq,quotePreferenceFromString:()=>ave,rangeContainsPosition:()=>HL,rangeContainsPositionExclusive:()=>zK,rangeContainsRange:()=>zh,rangeContainsRangeExclusive:()=>n7e,rangeContainsStartEnd:()=>qK,rangeEndIsOnSameLineAsRangeStart:()=>uH,rangeEndPositionsAreOnSameLine:()=>f4e,rangeEquals:()=>or,rangeIsOnSingleLine:()=>Z4,rangeOfNode:()=>Yhe,rangeOfTypeParameters:()=>ege,rangeOverlapsWithStartEnd:()=>Gz,rangeStartIsOnSameLineAsRangeEnd:()=>m4e,rangeStartPositionsAreOnSameLine:()=>Xre,readBuilderProgram:()=>moe,readConfigFile:()=>nK,readJson:()=>nL,readJsonConfigFile:()=>qNe,readJsonOrUndefined:()=>Che,reduceEachLeadingCommentRange:()=>G$,reduceEachTrailingCommentRange:()=>JI,reduceLeft:()=>nl,reduceLeftIterator:()=>$e,reducePathComponents:()=>iE,refactor:()=>qF,regExpEscape:()=>mlt,regularExpressionFlagToCharacterCode:()=>ZW,relativeComplement:()=>cb,removeAllComments:()=>NH,removeEmitHelper:()=>Plt,removeExtension:()=>xH,removeFileExtension:()=>Qm,removeIgnoredPath:()=>coe,removeMinAndVersionNumbers:()=>C9,removePrefix:()=>Mk,removeSuffix:()=>Lk,removeTrailingDirectorySeparator:()=>dv,repeatString:()=>GK,replaceElement:()=>pc,replaceFirstStar:()=>Y4,resolutionExtensionIsTSOrJson:()=>JU,resolveConfigFileProjectName:()=>d1e,resolveJSModule:()=>s8e,resolveLibrary:()=>Aie,resolveModuleName:()=>h3,resolveModuleNameFromCache:()=>Ept,resolvePackageNameToPackageJson:()=>Aye,resolvePath:()=>mb,resolveProjectReferencePath:()=>RF,resolveTripleslashReference:()=>C0e,resolveTypeReferenceDirective:()=>n8e,resolvingEmptyArray:()=>mme,returnFalse:()=>Yf,returnNoopFileWatcher:()=>qz,returnTrue:()=>AT,returnUndefined:()=>Sx,returnsPromise:()=>Vve,rewriteModuleSpecifier:()=>NF,sameFlatMap:()=>Wi,sameMap:()=>Zo,sameMapping:()=>f_t,scanTokenAtPosition:()=>f6e,scanner:()=>wf,semanticDiagnosticsOptionDeclarations:()=>PNe,serializeCompilerOptions:()=>bye,server:()=>_Tt,servicesVersion:()=>Wht,setCommentRange:()=>Y_,setConfigFileInOptions:()=>xye,setConstantValue:()=>x3e,setEmitFlags:()=>Ai,setGetSourceFileAsHashVersioned:()=>foe,setIdentifierAutoGenerate:()=>RH,setIdentifierGeneratedImportReference:()=>C3e,setIdentifierTypeArguments:()=>vE,setInternalEmitFlags:()=>OH,setLocalizedDiagnosticMessages:()=>E4e,setNodeChildren:()=>rNe,setNodeFlags:()=>Q4e,setObjectAllocator:()=>T4e,setOriginalNode:()=>Yi,setParent:()=>xl,setParentRecursive:()=>vA,setPrivateIdentifier:()=>y3,setSnippetElement:()=>Tge,setSourceMapRange:()=>Jc,setStackTraceLimit:()=>OW,setStartsOnNewLine:()=>One,setSyntheticLeadingComments:()=>SA,setSyntheticTrailingComments:()=>uF,setSys:()=>R$,setSysLog:()=>lS,setTextRange:()=>qt,setTextRangeEnd:()=>uL,setTextRangePos:()=>KU,setTextRangePosEnd:()=>xv,setTextRangePosWidth:()=>rge,setTokenSourceMapRange:()=>v3e,setTypeNode:()=>E3e,setUILocale:()=>f$,setValueDeclaration:()=>SU,shouldAllowImportingTsExtension:()=>ML,shouldPreserveConstEnums:()=>dC,shouldRewriteModuleSpecifier:()=>JG,shouldUseUriStyleNodeCoreModules:()=>sae,showModuleSpecifier:()=>S4e,signatureHasRestParameter:()=>Am,signatureToDisplayParts:()=>gve,single:()=>us,singleElementArray:()=>Z2,singleIterator:()=>Sc,singleOrMany:()=>Ja,singleOrUndefined:()=>to,skipAlias:()=>$f,skipConstraint:()=>nve,skipOuterExpressions:()=>Wp,skipParentheses:()=>bl,skipPartiallyEmittedExpressions:()=>q1,skipTrivia:()=>_c,skipTypeChecking:()=>lL,skipTypeCheckingIgnoringNoCheck:()=>W4e,skipTypeParentheses:()=>xU,skipWhile:()=>tO,sliceAfter:()=>Xhe,some:()=>Pt,sortAndDeduplicate:()=>O1,sortAndDeduplicateDiagnostics:()=>nr,sourceFileAffectingCompilerOptions:()=>_ye,sourceFileMayBeEmitted:()=>sP,sourceMapCommentRegExp:()=>Zye,sourceMapCommentRegExpDontCareLineStart:()=>N8e,spacePart:()=>Lp,spanMap:()=>Wu,startEndContainsRange:()=>whe,startEndOverlapsWithStartEnd:()=>Foe,startOnNewLine:()=>Dm,startTracing:()=>$9,startsWith:()=>Ca,startsWithDirectory:()=>rA,startsWithUnderscore:()=>Ive,startsWithUseStrict:()=>lNe,stringContainsAt:()=>j7e,stringToToken:()=>kx,stripQuotes:()=>i1,supportedDeclarationExtensions:()=>gne,supportedJSExtensionsFlat:()=>cL,supportedLocaleDirectories:()=>fS,supportedTSExtensionsFlat:()=>Ghe,supportedTSImplementationExtensions:()=>vH,suppressLeadingAndTrailingTrivia:()=>$g,suppressLeadingTrivia:()=>gge,suppressTrailingTrivia:()=>p3e,symbolEscapedNameNoDefault:()=>Woe,symbolName:()=>vp,symbolNameNoDefault:()=>cve,symbolToDisplayParts:()=>eq,sys:()=>f_,sysLog:()=>Oy,tagNamesAreEquivalent:()=>OA,takeWhile:()=>eO,targetOptionDeclaration:()=>uye,targetToLibMap:()=>Rr,testFormatSettings:()=>kft,textChangeRangeIsUnchanged:()=>Cx,textChangeRangeNewSpan:()=>WI,textChanges:()=>ki,textOrKeywordPart:()=>hve,textPart:()=>Vy,textRangeContainsPositionInclusive:()=>Ao,textRangeContainsTextSpan:()=>Hl,textRangeIntersectsWithTextSpan:()=>Hk,textSpanContainsPosition:()=>jo,textSpanContainsTextRange:()=>su,textSpanContainsTextSpan:()=>Ha,textSpanEnd:()=>Xn,textSpanIntersection:()=>fl,textSpanIntersectsWith:()=>_S,textSpanIntersectsWithPosition:()=>gb,textSpanIntersectsWithTextSpan:()=>Fg,textSpanIsEmpty:()=>Da,textSpanOverlap:()=>$1,textSpanOverlapsWith:()=>dl,textSpansEqual:()=>XL,textToKeywordObj:()=>UI,timestamp:()=>Ml,toArray:()=>Ll,toBuilderFileEmit:()=>QOe,toBuilderStateFileInfoForMultiEmit:()=>KOe,toEditorSettings:()=>pQ,toFileNameLowerCase:()=>lb,toPath:()=>wl,toProgramEmitPending:()=>ZOe,toSorted:()=>pu,tokenIsIdentifierOrKeyword:()=>Bf,tokenIsIdentifierOrKeywordOrGreaterThan:()=>$I,tokenToString:()=>Zs,trace:()=>ns,tracing:()=>hi,tracingEnabled:()=>II,transferSourceFileChildren:()=>nNe,transform:()=>rgt,transformClassFields:()=>Q8e,transformDeclarations:()=>d0e,transformECMAScriptModule:()=>_0e,transformES2015:()=>uOe,transformES2016:()=>lOe,transformES2017:()=>eOe,transformES2018:()=>tOe,transformES2019:()=>rOe,transformES2020:()=>nOe,transformES2021:()=>iOe,transformESDecorators:()=>Y8e,transformESNext:()=>oOe,transformGenerators:()=>pOe,transformImpliedNodeFormatDependentModule:()=>dOe,transformJsx:()=>cOe,transformLegacyDecorators:()=>X8e,transformModule:()=>p0e,transformNamedEvaluation:()=>qg,transformNodes:()=>bK,transformSystemModule:()=>_Oe,transformTypeScript:()=>K8e,transpile:()=>_mt,transpileDeclaration:()=>umt,transpileModule:()=>s5e,transpileOptionValueCompilerOptions:()=>RNe,tryAddToSet:()=>Us,tryAndIgnoreErrors:()=>nae,tryCast:()=>Ci,tryDirectoryExists:()=>rae,tryExtractTSExtension:()=>Qre,tryFileExists:()=>iq,tryGetClassExtendingExpressionWithTypeArguments:()=>xhe,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>The,tryGetDirectories:()=>tae,tryGetExtensionFromPath:()=>Bx,tryGetImportFromModuleSpecifier:()=>qG,tryGetJSDocSatisfiesTypeNode:()=>kne,tryGetModuleNameFromFile:()=>GH,tryGetModuleSpecifierFromDeclaration:()=>qO,tryGetNativePerformanceHooks:()=>nO,tryGetPropertyAccessOrIdentifierToString:()=>cH,tryGetPropertyNameOfBindingOrAssignmentElement:()=>nie,tryGetSourceMappingURL:()=>O8e,tryGetTextOfPropertyName:()=>pU,tryParseJson:()=>lH,tryParsePattern:()=>oF,tryParsePatterns:()=>TH,tryParseRawSourceMap:()=>F8e,tryReadDirectory:()=>Tve,tryReadFile:()=>Sz,tryRemoveDirectoryPrefix:()=>qhe,tryRemoveExtension:()=>J4e,tryRemovePrefix:()=>Y8,tryRemoveSuffix:()=>wT,tscBuildOption:()=>f3,typeAcquisitionDeclarations:()=>uie,typeAliasNamePart:()=>T7e,typeDirectiveIsEqualTo:()=>KPe,typeKeywords:()=>rve,typeParameterNamePart:()=>E7e,typeToDisplayParts:()=>ZK,unchangedPollThresholds:()=>LI,unchangedTextChangeRange:()=>_i,unescapeLeadingUnderscores:()=>oa,unmangleScopedPackageName:()=>pK,unorderedRemoveItem:()=>pb,unprefixedNodeCoreModules:()=>c3e,unreachableCodeIsError:()=>I4e,unsetNodeChildren:()=>Vge,unusedLabelIsError:()=>P4e,unwrapInnermostStatementOfLabel:()=>jme,unwrapParenthesizedExpression:()=>a3e,updateErrorForNoInputFiles:()=>Sie,updateLanguageServiceSourceFile:()=>ySe,updateMissingFilePathsWatch:()=>T0e,updateResolutionField:()=>NL,updateSharedExtendedConfigFileWatcher:()=>Hie,updateSourceFile:()=>oye,updateWatchingWildcardDirectories:()=>EK,usingSingleLineStringWriter:()=>jR,utf16EncodeAsString:()=>Gk,validateLocaleAndSetLanguage:()=>oA,version:()=>L,versionMajorMinor:()=>A,visitArray:()=>Az,visitCommaListElements:()=>fK,visitEachChild:()=>Dn,visitFunctionBody:()=>Jy,visitIterationBody:()=>hh,visitLexicalEnvironment:()=>Qye,visitNode:()=>At,visitNodes:()=>Bn,visitParameterList:()=>Rp,walkUpBindingElementsAndPatterns:()=>Pr,walkUpOuterExpressions:()=>uNe,walkUpParenthesizedExpressions:()=>V1,walkUpParenthesizedTypes:()=>HG,walkUpParenthesizedTypesAndGetParentAndChild:()=>$6e,whitespaceOrMapCommentRegExp:()=>Xye,writeCommentRange:()=>rL,writeFile:()=>Jre,writeFileEnsuringDirectories:()=>mhe,zipWith:()=>xt});var sSr=!0,lTt;function cSr(){return lTt??(lTt=new Iy(L))}function uTt(t,n,a,c,u){let _=n?"DeprecationError: ":"DeprecationWarning: ";return _+=`'${t}' `,_+=c?`has been deprecated since v${c}`:"is deprecated",_+=n?" and can no longer be used.":a?` and will no longer be usable after v${a}.`:".",_+=u?` ${Mx(u,[t])}`:"",_}function lSr(t,n,a,c){let u=uTt(t,!0,n,a,c);return()=>{throw new TypeError(u)}}function uSr(t,n,a,c){let u=!1;return()=>{sSr&&!u&&($.log.warn(uTt(t,!1,n,a,c)),u=!0)}}function pSr(t,n={}){let a=typeof n.typeScriptVersion=="string"?new Iy(n.typeScriptVersion):n.typeScriptVersion??cSr(),c=typeof n.errorAfter=="string"?new Iy(n.errorAfter):n.errorAfter,u=typeof n.warnAfter=="string"?new Iy(n.warnAfter):n.warnAfter,_=typeof n.since=="string"?new Iy(n.since):n.since??u,f=n.error||c&&a.compareTo(c)>=0,y=!u||a.compareTo(u)>=0;return f?lSr(t,c,_,n.message):y?uSr(t,c,_,n.message):zs}function _Sr(t,n){return function(){return t(),n.apply(this,arguments)}}function dSr(t,n){let a=pSr(n?.name??$.getFunctionName(t),n);return _Sr(a,t)}function Pbe(t,n,a,c){if(Object.defineProperty(_,"name",{...Object.getOwnPropertyDescriptor(_,"name"),value:t}),c)for(let f of Object.keys(c)){let y=+f;!isNaN(y)&&Ho(n,`${y}`)&&(n[y]=dSr(n[y],{...c[y],name:t}))}let u=fSr(n,a);return _;function _(...f){let y=u(f),g=y!==void 0?n[y]:void 0;if(typeof g=="function")return g(...f);throw new TypeError("Invalid arguments")}}function fSr(t,n){return a=>{for(let c=0;Ho(t,`${c}`)&&Ho(n,`${c}`);c++){let u=n[c];if(u(a))return c}}}function pTt(t){return{overload:n=>({bind:a=>({finish:()=>Pbe(t,n,a),deprecate:c=>({finish:()=>Pbe(t,n,a,c)})})})}}var _Tt={};d(_Tt,{ActionInvalidate:()=>Toe,ActionPackageInstalled:()=>Eoe,ActionSet:()=>xoe,ActionWatchTypingLocations:()=>jK,Arguments:()=>w1e,AutoImportProviderProject:()=>KMe,AuxiliaryProject:()=>GMe,CharRangeSection:()=>bje,CloseFileWatcherEvent:()=>Jbe,CommandNames:()=>JTt,ConfigFileDiagEvent:()=>Bbe,ConfiguredProject:()=>QMe,ConfiguredProjectLoadKind:()=>rje,CreateDirectoryWatcherEvent:()=>qbe,CreateFileWatcherEvent:()=>zbe,Errors:()=>t2,EventBeginInstallTypes:()=>D1e,EventEndInstallTypes:()=>A1e,EventInitializationFailed:()=>FFe,EventTypesRegistry:()=>C1e,ExternalProject:()=>Obe,GcTimer:()=>RMe,InferredProject:()=>WMe,LargeFileReferencedEvent:()=>jbe,LineIndex:()=>qQ,LineLeaf:()=>ose,LineNode:()=>mM,LogLevel:()=>CMe,Msg:()=>DMe,OpenFileInfoTelemetryEvent:()=>ZMe,Project:()=>YF,ProjectInfoTelemetryEvent:()=>Ube,ProjectKind:()=>Sq,ProjectLanguageServiceStateEvent:()=>$be,ProjectLoadingFinishEvent:()=>Mbe,ProjectLoadingStartEvent:()=>Lbe,ProjectService:()=>pje,ProjectsUpdatedInBackgroundEvent:()=>rse,ScriptInfo:()=>BMe,ScriptVersionCache:()=>rxe,Session:()=>XTt,TextStorage:()=>jMe,ThrottledOperations:()=>FMe,TypingsInstallerAdapter:()=>i2t,allFilesAreJsOrDts:()=>qMe,allRootFilesAreJsOrDts:()=>zMe,asNormalizedPath:()=>hTt,convertCompilerOptions:()=>nse,convertFormatOptions:()=>_M,convertScriptKindName:()=>Wbe,convertTypeAcquisition:()=>YMe,convertUserPreferences:()=>eje,convertWatchOptions:()=>UQ,countEachFileTypes:()=>MQ,createInstallTypingsRequest:()=>AMe,createModuleSpecifierCache:()=>fje,createNormalizedPathMap:()=>gTt,createPackageJsonCache:()=>mje,createSortedArray:()=>OMe,emptyArray:()=>Pd,findArgument:()=>gft,formatDiagnosticToProtocol:()=>zQ,formatMessage:()=>hje,getBaseConfigFileName:()=>Nbe,getDetailWatchInfo:()=>Qbe,getLocationInNewDocument:()=>Sje,hasArgument:()=>hft,hasNoTypeScriptSource:()=>JMe,indent:()=>Vz,isBackgroundProject:()=>BQ,isConfigFile:()=>_je,isConfiguredProject:()=>IE,isDynamicFileName:()=>vq,isExternalProject:()=>jQ,isInferredProject:()=>pM,isInferredProjectName:()=>wMe,isProjectDeferredClose:()=>$Q,makeAutoImportProviderProjectName:()=>PMe,makeAuxiliaryProjectName:()=>NMe,makeInferredProjectName:()=>IMe,maxFileSize:()=>Rbe,maxProgramSizeForNonTsFiles:()=>Fbe,normalizedPathToPath:()=>uM,nowString:()=>yft,nullCancellationToken:()=>UTt,nullTypingsInstaller:()=>ise,protocol:()=>LMe,scriptInfoIsContainedByBackgroundProject:()=>$Me,scriptInfoIsContainedByDeferredClosedProject:()=>UMe,stringifyIndented:()=>jA,toEvent:()=>gje,toNormalizedPath:()=>nu,tryConvertScriptKindName:()=>Vbe,typingsInstaller:()=>kMe,updateProjectIfDirty:()=>_1});var kMe={};d(kMe,{TypingsInstaller:()=>gSr,getNpmCommandForInstallation:()=>fTt,installNpmPackages:()=>hSr,typingsName:()=>mTt});var mSr={isEnabled:()=>!1,writeLine:zs};function dTt(t,n,a,c){try{let u=h3(n,Xi(t,"index.d.ts"),{moduleResolution:2},a);return u.resolvedModule&&u.resolvedModule.resolvedFileName}catch(u){c.isEnabled()&&c.writeLine(`Failed to resolve ${n} in folder '${t}': ${u.message}`);return}}function hSr(t,n,a,c){let u=!1;for(let _=a.length;_>0;){let f=fTt(t,n,a,_);_=f.remaining,u=c(f.command)||u}return u}function fTt(t,n,a,c){let u=a.length-c,_,f=c;for(;_=`${t} install --ignore-scripts ${(f===a.length?a:a.slice(u,u+f)).join(" ")} --save-dev --user-agent="typesInstaller/${n}"`,!(_.length<8e3);)f=f-Math.floor(f/2);return{command:_,remaining:c-f}}var gSr=class{constructor(t,n,a,c,u,_=mSr){this.installTypingHost=t,this.globalCachePath=n,this.safeListPath=a,this.typesMapLocation=c,this.throttleLimit=u,this.log=_,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${n}', safe file path '${a}', types map path ${c}`),this.processCacheLocation(this.globalCachePath)}handleRequest(t){switch(t.kind){case"discover":this.install(t);break;case"closeProject":this.closeProject(t);break;case"typesRegistry":{let n={};this.typesRegistry.forEach((c,u)=>{n[u]=c});let a={kind:C1e,typesRegistry:n};this.sendResponse(a);break}case"installPackage":{this.installPackage(t);break}default:$.assertNever(t)}}closeProject(t){this.closeWatchers(t.projectName)}closeWatchers(t){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${t}'`),!this.projectWatchers.get(t)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${t}'`);return}this.projectWatchers.delete(t),this.sendResponse({kind:jK,projectName:t,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${t}' - done.`)}install(t){this.log.isEnabled()&&this.log.writeLine(`Got install request${jA(t)}`),t.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${t.cachePath}', loading cached information...`),this.processCacheLocation(t.cachePath)),this.safeList===void 0&&this.initializeSafeList();let n=wC.discoverTypings(this.installTypingHost,this.log.isEnabled()?a=>this.log.writeLine(a):void 0,t.fileNames,t.projectRootPath,this.safeList,this.packageNameToTypingLocation,t.typeAcquisition,t.unresolvedImports,this.typesRegistry,t.compilerOptions);this.watchFiles(t.projectName,n.filesToWatch),n.newTypingNames.length?this.installTypings(t,t.cachePath||this.globalCachePath,n.cachedTypingPaths,n.newTypingNames):(this.sendResponse(this.createSetTypings(t,n.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(t){let{fileName:n,packageName:a,projectName:c,projectRootPath:u,id:_}=t,f=Ex(mo(n),y=>{if(this.installTypingHost.fileExists(Xi(y,"package.json")))return y})||u;if(f)this.installWorker(-1,[a],f,y=>{let g=y?`Package ${a} installed.`:`There was an error installing ${a}.`,k={kind:Eoe,projectName:c,id:_,success:y,message:g};this.sendResponse(k)});else{let y={kind:Eoe,projectName:c,id:_,success:!1,message:"Could not determine a project root path."};this.sendResponse(y)}}initializeSafeList(){if(this.typesMapLocation){let t=wC.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(t){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=t;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=wC.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(t){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${t}'`),this.knownCachesSet.has(t)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}let n=Xi(t,"package.json"),a=Xi(t,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${n}'...`),this.installTypingHost.fileExists(n)&&this.installTypingHost.fileExists(a)){let c=JSON.parse(this.installTypingHost.readFile(n)),u=JSON.parse(this.installTypingHost.readFile(a));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${n}':${jA(c)}`),this.log.writeLine(`Loaded content of '${a}':${jA(u)}`)),c.devDependencies&&(u.packages||u.dependencies))for(let _ in c.devDependencies){if(u.packages&&!Ho(u.packages,`node_modules/${_}`)||u.dependencies&&!Ho(u.dependencies,_))continue;let f=t_(_);if(!f)continue;let y=dTt(t,f,this.installTypingHost,this.log);if(!y){this.missingTypingsSet.add(f);continue}let g=this.packageNameToTypingLocation.get(f);if(g){if(g.typingLocation===y)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${f} from '${y}' conflicts with existing typing file '${g}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${f}' => '${y}'`);let k=u.packages&&Q0(u.packages,`node_modules/${_}`)||Q0(u.dependencies,_),T=k&&k.version;if(!T)continue;let C={typingLocation:y,version:new Iy(T)};this.packageNameToTypingLocation.set(f,C)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${t}'`),this.knownCachesSet.add(t)}filterTypings(t){return Wn(t,n=>{let a=LL(n);if(this.missingTypingsSet.has(a)){this.log.isEnabled()&&this.log.writeLine(`'${n}':: '${a}' is in missingTypingsSet - skipping...`);return}let c=wC.validatePackageName(n);if(c!==wC.NameValidationResult.Ok){this.missingTypingsSet.add(a),this.log.isEnabled()&&this.log.writeLine(wC.renderPackageNameValidationFailure(c,n));return}if(!this.typesRegistry.has(a)){this.log.isEnabled()&&this.log.writeLine(`'${n}':: Entry for package '${a}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(a)&&wC.isTypingUpToDate(this.packageNameToTypingLocation.get(a),this.typesRegistry.get(a))){this.log.isEnabled()&&this.log.writeLine(`'${n}':: '${a}' already has an up-to-date typing - skipping...`);return}return a})}ensurePackageDirectoryExists(t){let n=Xi(t,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${n}`),this.installTypingHost.fileExists(n)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${n}' is missing, creating new one...`),this.ensureDirectoryExists(t,this.installTypingHost),this.installTypingHost.writeFile(n,'{ "private": true }'))}installTypings(t,n,a,c){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(c)}`);let u=this.filterTypings(c);if(u.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(t,a));return}this.ensurePackageDirectoryExists(n);let _=this.installRunCount;this.installRunCount++,this.sendResponse({kind:D1e,eventId:_,typingsInstallerVersion:L,projectName:t.projectName});let f=u.map(mTt);this.installTypingsAsync(_,f,n,y=>{try{if(!y){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(u)}`);for(let k of u)this.missingTypingsSet.add(k);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(f)}`);let g=[];for(let k of u){let T=dTt(n,k,this.installTypingHost,this.log);if(!T){this.missingTypingsSet.add(k);continue}let C=this.typesRegistry.get(k),O=new Iy(C[`ts${A}`]||C[this.latestDistTag]),F={typingLocation:T,version:O};this.packageNameToTypingLocation.set(k,F),g.push(T)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(g)}`),this.sendResponse(this.createSetTypings(t,a.concat(g)))}finally{let g={kind:A1e,eventId:_,projectName:t.projectName,packagesToInstall:f,installSuccess:y,typingsInstallerVersion:L};this.sendResponse(g)}})}ensureDirectoryExists(t,n){let a=mo(t);n.directoryExists(a)||this.ensureDirectoryExists(a,n),n.directoryExists(t)||n.createDirectory(t)}watchFiles(t,n){if(!n.length){this.closeWatchers(t);return}let a=this.projectWatchers.get(t),c=new Set(n);!a||Ix(c,u=>!a.has(u))||Ix(a,u=>!c.has(u))?(this.projectWatchers.set(t,c),this.sendResponse({kind:jK,projectName:t,files:n})):this.sendResponse({kind:jK,projectName:t,files:void 0})}createSetTypings(t,n){return{projectName:t.projectName,typeAcquisition:t.typeAcquisition,compilerOptions:t.compilerOptions,typings:n,unresolvedImports:t.unresolvedImports,kind:xoe}}installTypingsAsync(t,n,a,c){this.pendingRunRequests.unshift({requestId:t,packageNames:n,cwd:a,onRequestCompleted:c}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,t.onRequestCompleted(n),this.executeWithThrottling()})}}};function mTt(t){return`@types/${t}@ts${A}`}var CMe=(t=>(t[t.terse=0]="terse",t[t.normal=1]="normal",t[t.requestTime=2]="requestTime",t[t.verbose=3]="verbose",t))(CMe||{}),Pd=OMe(),DMe=(t=>(t.Err="Err",t.Info="Info",t.Perf="Perf",t))(DMe||{});function AMe(t,n,a,c){return{projectName:t.getProjectName(),fileNames:t.getFileNames(!0,!0).concat(t.getExcludedFiles()),compilerOptions:t.getCompilationSettings(),typeAcquisition:n,unresolvedImports:a,projectRootPath:t.getCurrentDirectory(),cachePath:c,kind:"discover"}}var t2;(t=>{function n(){throw new Error("No Project.")}t.ThrowNoProject=n;function a(){throw new Error("The project's language service is disabled.")}t.ThrowProjectLanguageServiceDisabled=a;function c(u,_){throw new Error(`Project '${_.getProjectName()}' does not contain document '${u}'`)}t.ThrowProjectDoesNotContainDocument=c})(t2||(t2={}));function nu(t){return Qs(t)}function uM(t,n,a){let c=qd(t)?t:za(t,n);return a(c)}function hTt(t){return t}function gTt(){let t=new Map;return{get(n){return t.get(n)},set(n,a){t.set(n,a)},contains(n){return t.has(n)},remove(n){t.delete(n)}}}function wMe(t){return/dev\/null\/inferredProject\d+\*/.test(t)}function IMe(t){return`/dev/null/inferredProject${t}*`}function PMe(t){return`/dev/null/autoImportProviderProject${t}*`}function NMe(t){return`/dev/null/auxiliaryProject${t}*`}function OMe(){return[]}var FMe=class ntr{constructor(n,a){this.host=n,this.pendingTimeouts=new Map,this.logger=a.hasLevel(3)?a:void 0}schedule(n,a,c){let u=this.pendingTimeouts.get(n);u&&this.host.clearTimeout(u),this.pendingTimeouts.set(n,this.host.setTimeout(ntr.run,a,n,this,c)),this.logger&&this.logger.info(`Scheduled: ${n}${u?", Cancelled earlier one":""}`)}cancel(n){let a=this.pendingTimeouts.get(n);return a?(this.host.clearTimeout(a),this.pendingTimeouts.delete(n)):!1}static run(n,a,c){a.pendingTimeouts.delete(n),a.logger&&a.logger.info(`Running: ${n}`),c()}},RMe=class itr{constructor(n,a,c){this.host=n,this.delay=a,this.logger=c}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(itr.run,this.delay,this))}static run(n){n.timerId=void 0;let a=n.logger.hasLevel(2),c=a&&n.host.getMemoryUsage();if(n.host.gc(),a){let u=n.host.getMemoryUsage();n.logger.perftrc(`GC::before ${c}, after ${u}`)}}};function Nbe(t){let n=t_(t);return n==="tsconfig.json"||n==="jsconfig.json"?n:void 0}var LMe={};d(LMe,{ClassificationType:()=>O1e,CommandTypes:()=>MMe,CompletionTriggerKind:()=>P1e,IndentStyle:()=>bTt,JsxEmit:()=>xTt,ModuleKind:()=>TTt,ModuleResolutionKind:()=>ETt,NewLineKind:()=>kTt,OrganizeImportsMode:()=>I1e,PollingWatchKind:()=>STt,ScriptTarget:()=>CTt,SemicolonPreference:()=>N1e,WatchDirectoryKind:()=>vTt,WatchFileKind:()=>yTt});var MMe=(t=>(t.JsxClosingTag="jsxClosingTag",t.LinkedEditingRange="linkedEditingRange",t.Brace="brace",t.BraceFull="brace-full",t.BraceCompletion="braceCompletion",t.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",t.Change="change",t.Close="close",t.Completions="completions",t.CompletionInfo="completionInfo",t.CompletionsFull="completions-full",t.CompletionDetails="completionEntryDetails",t.CompletionDetailsFull="completionEntryDetails-full",t.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",t.CompileOnSaveEmitFile="compileOnSaveEmitFile",t.Configure="configure",t.Definition="definition",t.DefinitionFull="definition-full",t.DefinitionAndBoundSpan="definitionAndBoundSpan",t.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",t.Implementation="implementation",t.ImplementationFull="implementation-full",t.EmitOutput="emit-output",t.Exit="exit",t.FileReferences="fileReferences",t.FileReferencesFull="fileReferences-full",t.Format="format",t.Formatonkey="formatonkey",t.FormatFull="format-full",t.FormatonkeyFull="formatonkey-full",t.FormatRangeFull="formatRange-full",t.Geterr="geterr",t.GeterrForProject="geterrForProject",t.SemanticDiagnosticsSync="semanticDiagnosticsSync",t.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",t.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",t.NavBar="navbar",t.NavBarFull="navbar-full",t.Navto="navto",t.NavtoFull="navto-full",t.NavTree="navtree",t.NavTreeFull="navtree-full",t.DocumentHighlights="documentHighlights",t.DocumentHighlightsFull="documentHighlights-full",t.Open="open",t.Quickinfo="quickinfo",t.QuickinfoFull="quickinfo-full",t.References="references",t.ReferencesFull="references-full",t.Reload="reload",t.Rename="rename",t.RenameInfoFull="rename-full",t.RenameLocationsFull="renameLocations-full",t.Saveto="saveto",t.SignatureHelp="signatureHelp",t.SignatureHelpFull="signatureHelp-full",t.FindSourceDefinition="findSourceDefinition",t.Status="status",t.TypeDefinition="typeDefinition",t.ProjectInfo="projectInfo",t.ReloadProjects="reloadProjects",t.Unknown="unknown",t.OpenExternalProject="openExternalProject",t.OpenExternalProjects="openExternalProjects",t.CloseExternalProject="closeExternalProject",t.SynchronizeProjectList="synchronizeProjectList",t.ApplyChangedToOpenFiles="applyChangedToOpenFiles",t.UpdateOpen="updateOpen",t.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",t.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",t.Cleanup="cleanup",t.GetOutliningSpans="getOutliningSpans",t.GetOutliningSpansFull="outliningSpans",t.TodoComments="todoComments",t.Indentation="indentation",t.DocCommentTemplate="docCommentTemplate",t.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",t.NameOrDottedNameSpan="nameOrDottedNameSpan",t.BreakpointStatement="breakpointStatement",t.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",t.GetCodeFixes="getCodeFixes",t.GetCodeFixesFull="getCodeFixes-full",t.GetCombinedCodeFix="getCombinedCodeFix",t.GetCombinedCodeFixFull="getCombinedCodeFix-full",t.ApplyCodeActionCommand="applyCodeActionCommand",t.GetSupportedCodeFixes="getSupportedCodeFixes",t.GetApplicableRefactors="getApplicableRefactors",t.GetEditsForRefactor="getEditsForRefactor",t.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",t.PreparePasteEdits="preparePasteEdits",t.GetPasteEdits="getPasteEdits",t.GetEditsForRefactorFull="getEditsForRefactor-full",t.OrganizeImports="organizeImports",t.OrganizeImportsFull="organizeImports-full",t.GetEditsForFileRename="getEditsForFileRename",t.GetEditsForFileRenameFull="getEditsForFileRename-full",t.ConfigurePlugin="configurePlugin",t.SelectionRange="selectionRange",t.SelectionRangeFull="selectionRange-full",t.ToggleLineComment="toggleLineComment",t.ToggleLineCommentFull="toggleLineComment-full",t.ToggleMultilineComment="toggleMultilineComment",t.ToggleMultilineCommentFull="toggleMultilineComment-full",t.CommentSelection="commentSelection",t.CommentSelectionFull="commentSelection-full",t.UncommentSelection="uncommentSelection",t.UncommentSelectionFull="uncommentSelection-full",t.PrepareCallHierarchy="prepareCallHierarchy",t.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",t.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",t.ProvideInlayHints="provideInlayHints",t.WatchChange="watchChange",t.MapCode="mapCode",t.CopilotRelated="copilotRelated",t))(MMe||{}),yTt=(t=>(t.FixedPollingInterval="FixedPollingInterval",t.PriorityPollingInterval="PriorityPollingInterval",t.DynamicPriorityPolling="DynamicPriorityPolling",t.FixedChunkSizePolling="FixedChunkSizePolling",t.UseFsEvents="UseFsEvents",t.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",t))(yTt||{}),vTt=(t=>(t.UseFsEvents="UseFsEvents",t.FixedPollingInterval="FixedPollingInterval",t.DynamicPriorityPolling="DynamicPriorityPolling",t.FixedChunkSizePolling="FixedChunkSizePolling",t))(vTt||{}),STt=(t=>(t.FixedInterval="FixedInterval",t.PriorityInterval="PriorityInterval",t.DynamicPriority="DynamicPriority",t.FixedChunkSize="FixedChunkSize",t))(STt||{}),bTt=(t=>(t.None="None",t.Block="Block",t.Smart="Smart",t))(bTt||{}),xTt=(t=>(t.None="none",t.Preserve="preserve",t.ReactNative="react-native",t.React="react",t.ReactJSX="react-jsx",t.ReactJSXDev="react-jsxdev",t))(xTt||{}),TTt=(t=>(t.None="none",t.CommonJS="commonjs",t.AMD="amd",t.UMD="umd",t.System="system",t.ES6="es6",t.ES2015="es2015",t.ES2020="es2020",t.ES2022="es2022",t.ESNext="esnext",t.Node16="node16",t.Node18="node18",t.Node20="node20",t.NodeNext="nodenext",t.Preserve="preserve",t))(TTt||{}),ETt=(t=>(t.Classic="classic",t.Node="node",t.NodeJs="node",t.Node10="node10",t.Node16="node16",t.NodeNext="nodenext",t.Bundler="bundler",t))(ETt||{}),kTt=(t=>(t.Crlf="Crlf",t.Lf="Lf",t))(kTt||{}),CTt=(t=>(t.ES3="es3",t.ES5="es5",t.ES6="es6",t.ES2015="es2015",t.ES2016="es2016",t.ES2017="es2017",t.ES2018="es2018",t.ES2019="es2019",t.ES2020="es2020",t.ES2021="es2021",t.ES2022="es2022",t.ES2023="es2023",t.ES2024="es2024",t.ESNext="esnext",t.JSON="json",t.Latest="esnext",t))(CTt||{}),jMe=class{constructor(t,n,a){this.host=t,this.info=n,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=a||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(t){this.svc=void 0,this.text=t,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(t,n,a){this.switchToScriptVersionCache().edit(t,n-t,a),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(t){return $.assert(t!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=BF(this.svc.getSnapshot())),this.text!==t?(this.useText(t),this.ownFileText=!1,!0):!1}reloadWithFileText(t){let{text:n,fileSize:a}=t||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(t):{text:"",fileSize:void 0},c=this.reload(n);return this.fileSize=a,this.ownFileText=!t||t===this.info.fileName,this.ownFileText&&this.info.mTime===Wm.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||Wm).getTime()),c}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var t;return((t=this.tryUseScriptVersionCache())==null?void 0:t.getSnapshot())||(this.textSnapshot??(this.textSnapshot=koe.fromString($.checkDefined(this.text))))}getAbsolutePositionAndLineText(t){let n=this.tryUseScriptVersionCache();if(n)return n.getAbsolutePositionAndLineText(t);let a=this.getLineMap();return t<=a.length?{absolutePosition:a[t-1],lineText:this.text.substring(a[t-1],a[t])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(t){let n=this.tryUseScriptVersionCache();if(n)return n.lineToTextSpan(t);let a=this.getLineMap(),c=a[t],u=t+1n===void 0?n=this.host.readFile(a)||"":n;if(!X4(this.info.fileName)){let u=this.host.getFileSize?this.host.getFileSize(a):c().length;if(u>Rbe)return $.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${a} for info ${this.info.fileName}: fileSize: ${u}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(a,u),{text:"",fileSize:u}}return{text:c()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=rxe.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=rxe.fromString($.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&($.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return $.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=oE($.checkDefined(this.text)))}getLineInfo(){let t=this.tryUseScriptVersionCache();if(t)return{getLineCount:()=>t.getLineCount(),getLineText:a=>t.getAbsolutePositionAndLineText(a+1).lineText};let n=this.getLineMap();return Yye(this.text,n)}};function vq(t){return t[0]==="^"||(t.includes("walkThroughSnippet:/")||t.includes("untitled:/"))&&t_(t)[0]==="^"||t.includes(":^")&&!t.includes(Gl)}var BMe=class{constructor(t,n,a,c,u,_){this.host=t,this.fileName=n,this.scriptKind=a,this.hasMixedContent=c,this.path=u,this.containingProjects=[],this.isDynamic=vq(n),this.textStorage=new jMe(t,this,_),(c||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=a||mne(n)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(t){this.textStorage.isOpen=!0,t!==void 0&&this.textStorage.reload(t)&&this.markContainingProjectsAsDirty()}close(t=!0){this.textStorage.isOpen=!1,t&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){$.assert(!!this.containingProjects.length);let t=this.containingProjects[0],n=this.host.realpath(this.path);n&&(this.realpath=t.toPath(n),this.realpath!==this.path&&t.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(t){let n=!this.isAttached(t);return n&&(this.containingProjects.push(t),t.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),t.onFileAddedOrRemoved(this.isSymlink())),n}isAttached(t){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===t;case 2:return this.containingProjects[0]===t||this.containingProjects[1]===t;default:return un(this.containingProjects,t)}}detachFromProject(t){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===t&&(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===t?(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===t&&(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:IT(this.containingProjects,t)&&t.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let t of this.containingProjects){IE(t)&&t.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);let n=t.getRootFilesMap().get(this.path);t.removeFile(this,!1,!1),t.onFileAddedOrRemoved(this.isSymlink()),n&&!pM(t)&&t.addMissingFileRoot(n.fileName)}Cs(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return t2.ThrowNoProject();case 1:return $Q(this.containingProjects[0])||BQ(this.containingProjects[0])?t2.ThrowNoProject():this.containingProjects[0];default:let t,n,a,c;for(let u=0;u!t.isOrphan())}lineToTextSpan(t){return this.textStorage.lineToTextSpan(t)}lineOffsetToPosition(t,n,a){return this.textStorage.lineOffsetToPosition(t,n,a)}positionToLineOffset(t){ySr(t);let n=this.textStorage.positionToLineOffset(t);return vSr(n),n}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Ni(this.sourceMapFilePath)&&(C0(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function ySr(t){$.assert(typeof t=="number",`Expected position ${t} to be a number.`),$.assert(t>=0,"Expected position to be non-negative.")}function vSr(t){$.assert(typeof t.line=="number",`Expected line ${t.line} to be a number.`),$.assert(typeof t.offset=="number",`Expected offset ${t.offset} to be a number.`),$.assert(t.line>0,`Expected line to be non-${t.line===0?"zero":"negative"}`),$.assert(t.offset>0,`Expected offset to be non-${t.offset===0?"zero":"negative"}`)}function $Me(t){return Pt(t.containingProjects,BQ)}function UMe(t){return Pt(t.containingProjects,$Q)}var Sq=(t=>(t[t.Inferred=0]="Inferred",t[t.Configured=1]="Configured",t[t.External=2]="External",t[t.AutoImportProvider=3]="AutoImportProvider",t[t.Auxiliary=4]="Auxiliary",t))(Sq||{});function MQ(t,n=!1){let a={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(let c of t){let u=n?c.textStorage.getTelemetryFileSize():0;switch(c.scriptKind){case 1:a.js+=1,a.jsSize+=u;break;case 2:a.jsx+=1,a.jsxSize+=u;break;case 3:sf(c.fileName)?(a.dts+=1,a.dtsSize+=u):(a.ts+=1,a.tsSize+=u);break;case 4:a.tsx+=1,a.tsxSize+=u;break;case 7:a.deferred+=1,a.deferredSize+=u;break}}return a}function SSr(t){let n=MQ(t.getScriptInfos());return n.js>0&&n.ts===0&&n.tsx===0}function zMe(t){let n=MQ(t.getRootScriptInfos());return n.ts===0&&n.tsx===0}function qMe(t){let n=MQ(t.getScriptInfos());return n.ts===0&&n.tsx===0}function JMe(t){return!t.some(n=>Au(n,".ts")&&!sf(n)||Au(n,".tsx"))}function VMe(t){return t.generatedFilePath!==void 0}function DTt(t,n){if(t===n||(t||Pd).length===0&&(n||Pd).length===0)return!0;let a=new Map,c=0;for(let u of t)a.get(u)!==!0&&(a.set(u,!0),c++);for(let u of n){let _=a.get(u);if(_===void 0)return!1;_===!0&&(a.set(u,!1),c--)}return c===0}function bSr(t,n){return t.enable!==n.enable||!DTt(t.include,n.include)||!DTt(t.exclude,n.exclude)}function xSr(t,n){return fC(t)!==fC(n)}function TSr(t,n){return t===n?!1:!__(t,n)}var YF=class otr{constructor(n,a,c,u,_,f,y,g,k,T){switch(this.projectKind=a,this.projectService=c,this.compilerOptions=f,this.compileOnSaveEnabled=y,this.watchOptions=g,this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.initialLoadPending=!1,this.dirty=!1,this.typingFiles=Pd,this.moduleSpecifierCache=fje(this),this.createHash=ja(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=wC.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,c.logger.info(`Creating ${Sq[a]}Project: ${n}, currentDirectory: ${T}`),this.projectName=n,this.directoryStructureHost=k,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(T),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new S9e(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(u||fC(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=Aae(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),c.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:$.assertNever(c.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();let C=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=O=>this.writeLog(O):C.trace&&(this.trace=O=>C.trace(O)),this.realpath=ja(C,C.realpath),this.preferNonRecursiveWatch=this.projectService.canUseWatchEvents||C.preferNonRecursiveWatch,this.resolutionCache=K0e(this,this.currentDirectory,!0),this.languageService=b9e(this,this.projectService.documentRegistry,this.projectService.serverMode),_&&this.disableLanguageService(_),this.markAsDirty(),BQ(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getRedirectFromSourceFile(n){}isNonTsProject(){return _1(this),qMe(this)}isJsOnlyProject(){return _1(this),SSr(this)}static resolveModule(n,a,c,u){return otr.importServicePluginSync({name:n},[a],c,u).resolvedModule}static importServicePluginSync(n,a,c,u){$.assertIsDefined(c.require);let _,f;for(let y of a){let g=Z_(c.resolvePath(Xi(y,"node_modules")));u(`Loading ${n.name} from ${y} (resolved to ${g})`);let k=c.require(g,n.name);if(!k.error){f=k.module;break}let T=k.error.stack||k.error.message||JSON.stringify(k.error);(_??(_=[])).push(`Failed to load module '${n.name}' from ${g}: ${T}`)}return{pluginConfigEntry:n,resolvedModule:f,errorLogs:_}}static async importServicePluginAsync(n,a,c,u){$.assertIsDefined(c.importPlugin);let _,f;for(let y of a){let g=Xi(y,"node_modules");u(`Dynamically importing ${n.name} from ${y} (resolved to ${g})`);let k;try{k=await c.importPlugin(g,n.name)}catch(C){k={module:void 0,error:C}}if(!k.error){f=k.module;break}let T=k.error.stack||k.error.message||JSON.stringify(k.error);(_??(_=[])).push(`Failed to dynamically import module '${n.name}' from ${g}: ${T}`)}return{pluginConfigEntry:n,resolvedModule:f,errorLogs:_}}isKnownTypesPackageName(n){return this.projectService.typingsInstaller.isKnownTypesPackageName(n)}installPackage(n){return this.projectService.typingsInstaller.installPackage({...n,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}getSymlinkCache(){return this.symlinks||(this.symlinks=zhe(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFilesMap.size)return j;let n;return this.rootFilesMap.forEach(a=>{(this.languageServiceEnabled||a.info&&a.info.isScriptOpen())&&(n||(n=[])).push(a.fileName)}),En(n,this.typingFiles)||j}getOrCreateScriptInfoAndAttachToProject(n){let a=this.projectService.getOrCreateScriptInfoNotOpenedByClient(n,this.currentDirectory,this.directoryStructureHost,!1);if(a){let c=this.rootFilesMap.get(a.path);c&&c.info!==a&&(c.info=a),a.attachToProject(this)}return a}getScriptKind(n){let a=this.projectService.getScriptInfoForPath(this.toPath(n));return a&&a.scriptKind}getScriptVersion(n){let a=this.projectService.getOrCreateScriptInfoNotOpenedByClient(n,this.currentDirectory,this.directoryStructureHost,!1);return a&&a.getLatestVersion()}getScriptSnapshot(n){let a=this.getOrCreateScriptInfoAndAttachToProject(n);if(a)return a.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){let n=mo(Qs(this.projectService.getExecutingFilePath()));return Xi(n,kn(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(n,a,c,u,_){return this.directoryStructureHost.readDirectory(n,a,c,u,_)}readFile(n){return this.projectService.host.readFile(n)}writeFile(n,a){return this.projectService.host.writeFile(n,a)}fileExists(n){let a=this.toPath(n);return!!this.projectService.getScriptInfoForPath(a)||!this.isWatchedMissingFile(a)&&this.directoryStructureHost.fileExists(n)}resolveModuleNameLiterals(n,a,c,u,_,f){return this.resolutionCache.resolveModuleNameLiterals(n,a,c,u,_,f)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(n,a,c,u,_,f){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(n,a,c,u,_,f)}resolveLibrary(n,a,c,u){return this.resolutionCache.resolveLibrary(n,a,c,u)}directoryExists(n){return this.directoryStructureHost.directoryExists(n)}getDirectories(n){return this.directoryStructureHost.getDirectories(n)}getCachedDirectoryStructureHost(){}toPath(n){return wl(n,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(n,a,c){return this.projectService.watchFactory.watchDirectory(n,a,c,this.projectService.getWatchOptions(this),cf.FailedLookupLocations,this)}watchAffectingFileLocation(n,a){return this.projectService.watchFactory.watchFile(n,a,2e3,this.projectService.getWatchOptions(this),cf.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(n,a,c){return this.projectService.watchFactory.watchDirectory(n,a,c,this.projectService.getWatchOptions(this),cf.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}fileIsOpen(n){return this.projectService.openFiles.has(n)}writeLog(n){this.projectService.logger.info(n)}log(n){this.writeLog(n)}error(n){this.projectService.logger.msg(n,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return yr(this.projectErrors,n=>!n.file)||Pd}getAllProjectErrors(){return this.projectErrors||Pd}setProjectErrors(n){this.projectErrors=n}getLanguageService(n=!0){return n&&_1(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(n,a){return this.projectService.getDocumentPositionMapper(this,n,a)}getSourceFileLike(n){return this.projectService.getSourceFileLike(n,this)}shouldEmitFile(n){return n&&!n.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(n.path)}getCompileOnSaveAffectedFileList(n){return this.languageServiceEnabled?(_1(this),this.builderState=Dv.create(this.program,this.builderState,!0),Wn(Dv.getFilesAffectedBy(this.builderState,this.program,n.path,this.cancellationToken,this.projectService.host),a=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(a.path))?a.fileName:void 0)):[]}emitFile(n,a){if(!this.languageServiceEnabled||!this.shouldEmitFile(n))return{emitSkipped:!0,diagnostics:Pd};let{emitSkipped:c,diagnostics:u,outputFiles:_}=this.getLanguageService().getEmitOutput(n.fileName);if(!c){for(let f of _){let y=za(f.name,this.currentDirectory);a(y,f.text,f.writeByteOrderMark)}if(this.builderState&&fg(this.compilerOptions)){let f=_.filter(y=>sf(y.name));if(f.length===1){let y=this.program.getSourceFile(n.fileName),g=this.projectService.host.createHash?this.projectService.host.createHash(f[0].text):qk(f[0].text);Dv.updateSignatureOfFile(this.builderState,g,y.resolvedPath)}}}return{emitSkipped:c,diagnostics:u}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(let n of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(n.fileName);this.program.forEachResolvedProjectReference(n=>this.detachScriptInfoFromProject(n.sourceFile.fileName)),this.program=void 0}}disableLanguageService(n){this.languageServiceEnabled&&($.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=n,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(n){return!n.enable||!n.include?n:{...n,include:this.removeExistingTypings(n.include)}}getExternalFiles(n){return pu(an(this.plugins,a=>{if(typeof a.module.getExternalFiles=="function")try{return a.module.getExternalFiles(this,n||0)}catch(c){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${c}`),c.stack&&this.projectService.logger.info(c.stack)}}))}getSourceFile(n){if(this.program)return this.program.getSourceFileByPath(n)}getSourceFileOrConfigFile(n){let a=this.program.getCompilerOptions();return n===a.configFilePath?a.configFile:this.getSourceFile(n)}close(){var n;this.typingsCache&&this.projectService.typingsInstaller.onProjectClosed(this),this.typingsCache=void 0,this.closeWatchingTypingLocations(),this.cleanupProgram(),X(this.externalFiles,a=>this.detachScriptInfoIfNotRoot(a)),this.rootFilesMap.forEach(a=>{var c;return(c=a.info)==null?void 0:c.detachFromProject(this)}),this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(n=this.packageJsonWatches)==null||n.forEach(a=>{a.projects.delete(this),a.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(dg(this.missingFilesMap,W1),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(n){let a=this.projectService.getScriptInfo(n);a&&!this.isRoot(a)&&a.detachFromProject(this)}isClosed(){return this.rootFilesMap===void 0}hasRoots(){var n;return!!((n=this.rootFilesMap)!=null&&n.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&so(Na(this.rootFilesMap.values(),n=>{var a;return(a=n.info)==null?void 0:a.fileName}))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return so(Na(this.rootFilesMap.values(),n=>n.info))}getScriptInfos(){return this.languageServiceEnabled?Cr(this.program.getSourceFiles(),n=>{let a=this.projectService.getScriptInfoForPath(n.resolvedPath);return $.assert(!!a,"getScriptInfo",()=>`scriptInfo for a file '${n.fileName}' Path: '${n.path}' / '${n.resolvedPath}' is missing.`),a}):this.getRootScriptInfos()}getExcludedFiles(){return Pd}getFileNames(n,a){if(!this.program)return[];if(!this.languageServiceEnabled){let u=this.getRootFiles();if(this.compilerOptions){let _=x9e(this.compilerOptions);_&&(u||(u=[])).push(_)}return u}let c=[];for(let u of this.program.getSourceFiles())n&&this.program.isSourceFileFromExternalLibrary(u)||c.push(u.fileName);if(!a){let u=this.program.getCompilerOptions().configFile;if(u&&(c.push(u.fileName),u.extendedSourceFiles))for(let _ of u.extendedSourceFiles)c.push(_)}return c}getFileNamesWithRedirectInfo(n){return this.getFileNames().map(a=>({fileName:a,isSourceOfProjectReferenceRedirect:n&&this.isSourceOfProjectReferenceRedirect(a)}))}hasConfigFile(n){if(this.program&&this.languageServiceEnabled){let a=this.program.getCompilerOptions().configFile;if(a){if(n===a.fileName)return!0;if(a.extendedSourceFiles){for(let c of a.extendedSourceFiles)if(n===c)return!0}}}return!1}containsScriptInfo(n){if(this.isRoot(n))return!0;if(!this.program)return!1;let a=this.program.getSourceFileByPath(n.path);return!!a&&a.resolvedPath===n.path}containsFile(n,a){let c=this.projectService.getScriptInfoForNormalizedPath(n);return c&&(c.isScriptOpen()||!a)?this.containsScriptInfo(c):!1}isRoot(n){var a,c;return((c=(a=this.rootFilesMap)==null?void 0:a.get(n.path))==null?void 0:c.info)===n}addRoot(n,a){$.assert(!this.isRoot(n)),this.rootFilesMap.set(n.path,{fileName:a||n.fileName,info:n}),n.attachToProject(this),this.markAsDirty()}addMissingFileRoot(n){let a=this.projectService.toPath(n);this.rootFilesMap.set(a,{fileName:n}),this.markAsDirty()}removeFile(n,a,c){this.isRoot(n)&&this.removeRoot(n),a?this.resolutionCache.removeResolutionsOfFile(n.path):this.resolutionCache.invalidateResolutionOfFile(n.path),this.cachedUnresolvedImportsPerFile.delete(n.path),c&&n.detachFromProject(this),this.markAsDirty()}registerFileUpdate(n){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(n)}markFileAsDirty(n){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(n)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}markAutoImportProviderAsDirty(){var n;this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(n=this.autoImportProviderHost)==null||n.markAsDirty()}onAutoImportProviderSettingsChanged(){this.markAutoImportProviderAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.markAutoImportProviderAsDirty()}onFileAddedOrRemoved(n){this.hasAddedorRemovedFiles=!0,n&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}onReleaseOldSourceFile(n,a,c,u){(!u||n.resolvedPath===n.path&&u.resolvedPath!==n.path)&&this.detachScriptInfoFromProject(n.fileName,c)}updateFromProject(){_1(this)}updateGraph(){var n,a;(n=hi)==null||n.push(hi.Phase.Session,"updateGraph",{name:this.projectName,kind:Sq[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();let c=this.updateGraphWorker(),u=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;let _=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Pd;for(let y of _)this.cachedUnresolvedImportsPerFile.delete(y);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((c||_.length)&&(this.lastCachedUnresolvedImportsList=ESr(this.program,this.cachedUnresolvedImportsPerFile)),this.enqueueInstallTypingsForProject(u)):this.lastCachedUnresolvedImportsList=void 0;let f=this.projectProgramVersion===0&&c;return c&&this.projectProgramVersion++,u&&this.markAutoImportProviderAsDirty(),f&&this.getPackageJsonAutoImportProvider(),(a=hi)==null||a.pop(),!c}enqueueInstallTypingsForProject(n){let a=this.getTypeAcquisition();if(!a||!a.enable||this.projectService.typingsInstaller===ise)return;let c=this.typingsCache;(n||!c||bSr(a,c.typeAcquisition)||xSr(this.getCompilationSettings(),c.compilerOptions)||TSr(this.lastCachedUnresolvedImportsList,c.unresolvedImports))&&(this.typingsCache={compilerOptions:this.getCompilationSettings(),typeAcquisition:a,unresolvedImports:this.lastCachedUnresolvedImportsList},this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this,a,this.lastCachedUnresolvedImportsList))}updateTypingFiles(n,a,c,u){this.typingsCache={compilerOptions:n,typeAcquisition:a,unresolvedImports:c};let _=!a||!a.enable?Pd:pu(u);kI(_,this.typingFiles,ub(!this.useCaseSensitiveFileNames()),zs,f=>this.detachScriptInfoFromProject(f))&&(this.typingFiles=_,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&dg(this.typingWatchers,W1),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:Toe})}watchTypingLocations(n){if(!n){this.typingWatchers.isInvoked=!1;return}if(!n.length){this.closeWatchingTypingLocations();return}let a=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;let c=(u,_)=>{let f=this.toPath(u);if(a.delete(f),!this.typingWatchers.has(f)){let y=_==="FileWatcher"?cf.TypingInstallerLocationFile:cf.TypingInstallerLocationDirectory;this.typingWatchers.set(f,NK(f)?_==="FileWatcher"?this.projectService.watchFactory.watchFile(u,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),y,this):this.projectService.watchFactory.watchDirectory(u,g=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Au(g,".json"))return this.writeLog("Ignoring files that are not *.json");if(M1(g,Xi(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),y,this):(this.writeLog(`Skipping watcher creation at ${u}:: ${Qbe(y,this)}`),JL))}};for(let u of n){let _=t_(u);if(_==="package.json"||_==="bower.json"){c(u,"FileWatcher");continue}if(ug(this.currentDirectory,u,this.currentDirectory,!this.useCaseSensitiveFileNames())){let f=u.indexOf(Gl,this.currentDirectory.length+1);c(f!==-1?u.substr(0,f):u,"DirectoryWatcher");continue}if(ug(this.projectService.typingsInstaller.globalTypingsCacheLocation,u,this.currentDirectory,!this.useCaseSensitiveFileNames())){c(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}c(u,"DirectoryWatcher")}a.forEach((u,_)=>{u.close(),this.typingWatchers.delete(_)})}getCurrentProgram(){return this.program}removeExistingTypings(n){if(!n.length)return n;let a=kie(this.getCompilerOptions(),this);return yr(n,c=>!a.includes(c))}updateGraphWorker(){var n,a;let c=this.languageService.getCurrentProgram();$.assert(c===this.program),$.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);let u=Ml(),{hasInvalidatedResolutions:_,hasInvalidatedLibResolutions:f}=this.resolutionCache.createHasInvalidatedResolutions(Yf,Yf);this.hasInvalidatedResolutions=_,this.hasInvalidatedLibResolutions=f,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(n=hi)==null||n.push(hi.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,c),(a=hi)==null||a.pop(),$.assert(c===void 0||this.program!==void 0);let y=!1;if(this.program&&(!c||this.program!==c&&this.program.structureIsReused!==2)){if(y=!0,this.rootFilesMap.forEach((T,C)=>{var O;let F=this.program.getSourceFileByPath(C),M=T.info;!F||((O=T.info)==null?void 0:O.path)===F.resolvedPath||(T.info=this.projectService.getScriptInfo(F.fileName),$.assert(T.info.isAttached(this)),M?.detachFromProject(this))}),T0e(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(T,C)=>this.addMissingFileWatcher(T,C)),this.generatedFilesMap){let T=this.compilerOptions.outFile;VMe(this.generatedFilesMap)?(!T||!this.isValidGeneratedFileWatcher(Qm(T)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():T?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((C,O)=>{let F=this.program.getSourceFileByPath(O);(!F||F.resolvedPath!==O||!this.isValidGeneratedFileWatcher(Bre(F.fileName,this.compilerOptions,this.program),C))&&(C0(C),this.generatedFilesMap.delete(O))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||c&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&c&&this.program&&Ix(this.changedFilesForExportMapCache,T=>{let C=c.getSourceFileByPath(T),O=this.program.getSourceFileByPath(T);return!C||!O?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(C,O,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());let g=this.externalFiles||Pd;this.externalFiles=this.getExternalFiles(),kI(this.externalFiles,g,ub(!this.useCaseSensitiveFileNames()),T=>{let C=this.projectService.getOrCreateScriptInfoNotOpenedByClient(T,this.currentDirectory,this.directoryStructureHost,!1);C?.attachToProject(this)},T=>this.detachScriptInfoFromProject(T));let k=Ml()-u;return this.sendPerformanceEvent("UpdateGraph",k),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${y}${this.program?` structureIsReused:: ${d4[this.program.structureIsReused]}`:""} Elapsed: ${k}ms`),this.projectService.logger.isTestLogger?this.program!==c?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==c&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),y}sendPerformanceEvent(n,a){this.projectService.sendPerformanceEvent(n,a)}detachScriptInfoFromProject(n,a){let c=this.projectService.getScriptInfo(n);c&&(c.detachFromProject(this),a||this.resolutionCache.removeResolutionsOfFile(c.path))}addMissingFileWatcher(n,a){var c;if(IE(this)){let _=this.projectService.configFileExistenceInfoCache.get(n);if((c=_?.config)!=null&&c.projects.has(this.canonicalConfigFilePath))return JL}let u=this.projectService.watchFactory.watchFile(za(a,this.currentDirectory),(_,f)=>{IE(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(_,n,f),f===0&&this.missingFilesMap.has(n)&&(this.missingFilesMap.delete(n),u.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),cf.MissingFile,this);return u}isWatchedMissingFile(n){return!!this.missingFilesMap&&this.missingFilesMap.has(n)}addGeneratedFileWatch(n,a){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(n));else{let c=this.toPath(a);if(this.generatedFilesMap){if(VMe(this.generatedFilesMap)){$.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(c))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(c,this.createGeneratedFileWatcher(n))}}createGeneratedFileWatcher(n){return{generatedFilePath:this.toPath(n),watcher:this.projectService.watchFactory.watchFile(n,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),cf.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(n,a){return this.toPath(n)===a.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(VMe(this.generatedFilesMap)?C0(this.generatedFilesMap):dg(this.generatedFilesMap,C0),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(n){let a=this.projectService.getScriptInfoForPath(this.toPath(n));return a&&!a.isAttached(this)?t2.ThrowProjectDoesNotContainDocument(n,this):a}getScriptInfo(n){return this.projectService.getScriptInfo(n)}filesToString(n){return this.filesToStringWorker(n,!0,!1)}filesToStringWorker(n,a,c){if(this.initialLoadPending)return` Files (0) InitialLoadPending -`;if(!this.program)return` Files (0) NoProgram -`;let u=this.program.getSourceFiles(),_=` Files (${u.length}) -`;if(n){for(let f of u)_+=` ${f.fileName}${c?` ${f.version} ${JSON.stringify(f.text)}`:""} -`;a&&(_+=` - -`,e1e(this.program,f=>_+=` ${f} -`))}return _}print(n,a,c){var u;this.writeLog(`Project '${this.projectName}' (${Sq[this.projectKind]})`),this.writeLog(this.filesToStringWorker(n&&this.projectService.logger.hasLevel(3),a&&this.projectService.logger.hasLevel(3),c&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(u=this.noDtsResolutionProject)==null||u.print(!1,!1,!1)}setCompilerOptions(n){var a;if(n){n.allowNonTsExtensions=!0;let c=this.compilerOptions;this.compilerOptions=n,this.setInternalCompilerOptionsForEmittingJsFiles(),(a=this.noDtsResolutionProject)==null||a.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),Yte(c,n)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(n){this.watchOptions=n}getWatchOptions(){return this.watchOptions}setTypeAcquisition(n){n&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(n))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(n,a){var c,u;let _=a?g=>so(g.entries(),([k,T])=>({fileName:k,isSourceOfProjectReferenceRedirect:T})):g=>so(g.keys());this.initialLoadPending||_1(this);let f={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:pM(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},y=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&n===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!y)return{info:f,projectErrors:this.getGlobalProjectErrors()};let g=this.lastReportedFileNames,k=((c=this.externalFiles)==null?void 0:c.map(U=>({fileName:nu(U),isSourceOfProjectReferenceRedirect:!1})))||Pd,T=_l(this.getFileNamesWithRedirectInfo(!!a).concat(k),U=>U.fileName,U=>U.isSourceOfProjectReferenceRedirect),C=new Map,O=new Map,F=y?so(y.keys()):[],M=[];return Ad(T,(U,J)=>{g.has(J)?a&&U!==g.get(J)&&M.push({fileName:J,isSourceOfProjectReferenceRedirect:U}):C.set(J,U)}),Ad(g,(U,J)=>{T.has(J)||O.set(J,U)}),this.lastReportedFileNames=T,this.lastReportedVersion=this.projectProgramVersion,{info:f,changes:{added:_(C),removed:_(O),updated:a?F.map(U=>({fileName:U,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(U)})):F,updatedRedirects:a?M:void 0},projectErrors:this.getGlobalProjectErrors()}}else{let g=this.getFileNamesWithRedirectInfo(!!a),k=((u=this.externalFiles)==null?void 0:u.map(C=>({fileName:nu(C),isSourceOfProjectReferenceRedirect:!1})))||Pd,T=g.concat(k);return this.lastReportedFileNames=_l(T,C=>C.fileName,C=>C.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:f,files:a?T:T.map(C=>C.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(n){this.rootFilesMap.delete(n.path)}isSourceOfProjectReferenceRedirect(n){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(n)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Xi(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(n){if(!this.projectService.globalPlugins.length)return;let a=this.projectService.host;if(!a.require&&!a.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let c=this.getGlobalPluginSearchPaths();for(let u of this.projectService.globalPlugins)u&&(n.plugins&&n.plugins.some(_=>_.name===u)||(this.projectService.logger.info(`Loading global plugin ${u}`),this.enablePlugin({name:u,global:!0},c)))}enablePlugin(n,a){this.projectService.requestEnablePlugin(this,n,a)}enableProxy(n,a){try{if(typeof n!="function"){this.projectService.logger.info(`Skipped loading plugin ${a.name} because it did not expose a proper factory function`);return}let c={config:a,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},u=n({typescript:cTt}),_=u.create(c);for(let f of Object.keys(this.languageService))f in _||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${f} in created LS. Patching.`),_[f]=this.languageService[f]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=_,this.plugins.push({name:a.name,module:u})}catch(c){this.projectService.logger.info(`Plugin activation failed: ${c}`)}}onPluginConfigurationChanged(n,a){this.plugins.filter(c=>c.name===n).forEach(c=>{c.module.onConfigurationChanged&&c.module.onConfigurationChanged(a)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(n,a){return this.projectService.serverMode!==0?Pd:this.projectService.getPackageJsonsVisibleToFile(n,this,a)}getNearestAncestorDirectoryWithPackageJson(n){return this.projectService.getNearestAncestorDirectoryWithPackageJson(n,this)}getPackageJsonsForAutoImport(n){return this.getPackageJsonsVisibleToFile(Xi(this.currentDirectory,$z),n)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=Ove(this))}clearCachedExportInfoMap(){var n;(n=this.exportMapCache)==null||n.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||tQ(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var n,a;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((n=this.projectService.host.realpath)==null?void 0:n.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(a=this.projectService.host.trace)==null?void 0:a.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var n,a,c;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(_1(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}let u=this.includePackageJsonAutoImports();if(u){(n=hi)==null||n.push(hi.Phase.Session,"getPackageJsonAutoImportProvider");let _=Ml();if(this.autoImportProviderHost=KMe.create(u,this,this.getHostForAutoImportProvider())??!1,this.autoImportProviderHost)return _1(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Ml()-_),(a=hi)==null||a.pop(),this.autoImportProviderHost.getCurrentProgram();(c=hi)==null||c.pop()}}isDefaultProjectForOpenFiles(){return!!Ad(this.projectService.openFiles,(n,a)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(a))===this)}watchNodeModulesForPackageJsonChanges(n){return this.projectService.watchPackageJsonsInNodeModules(n,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(n){return $.assert(this.projectService.serverMode===0),this.noDtsResolutionProject??(this.noDtsResolutionProject=new GMe(this)),this.noDtsResolutionProject.rootFile!==n&&(this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[n]),this.noDtsResolutionProject.rootFile=n),this.noDtsResolutionProject}runWithTemporaryFileUpdate(n,a,c){var u,_,f,y;let g=this.program,k=$.checkDefined((u=this.program)==null?void 0:u.getSourceFile(n),"Expected file to be part of program"),T=$.checkDefined(k.getFullText());(_=this.getScriptInfo(n))==null||_.editContent(0,T.length,a),this.updateGraph();try{c(this.program,g,(f=this.program)==null?void 0:f.getSourceFile(n))}finally{(y=this.getScriptInfo(n))==null||y.editContent(0,a.length,T)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:j,lib:j,noLib:!0}}};function ESr(t,n){var a,c;let u=t.getSourceFiles();(a=hi)==null||a.push(hi.Phase.Session,"getUnresolvedImports",{count:u.length});let _=t.getTypeChecker().getAmbientModules().map(y=>i1(y.getName())),f=O1(an(u,y=>kSr(t,y,_,n)));return(c=hi)==null||c.pop(),f}function kSr(t,n,a,c){return hs(c,n.path,()=>{let u;return t.forEachResolvedModule(({resolvedModule:_},f)=>{(!_||!JU(_.extension))&&!vt(f)&&!a.some(y=>y===f)&&(u=jt(u,wie(f).packageName))},n),u||Pd})}var WMe=class extends YF{constructor(t,n,a,c,u,_){super(t.newInferredProjectName(),0,t,!1,void 0,n,!1,a,t.host,u),this._isJsInferredProject=!1,this.typeAcquisition=_,this.projectRootPath=c&&t.toCanonicalFileName(c),!c&&!t.useSingleInferredProject&&(this.canonicalCurrentDirectory=t.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(t){t!==this._isJsInferredProject&&(this._isJsInferredProject=t,this.setCompilerOptions())}setCompilerOptions(t){if(!t&&!this.getCompilationSettings())return;let n=X1e(t||this.getCompilationSettings());this._isJsInferredProject&&typeof n.maxNodeModuleJsDepth!="number"?n.maxNodeModuleJsDepth=2:this._isJsInferredProject||(n.maxNodeModuleJsDepth=void 0),n.allowJs=!0,super.setCompilerOptions(n)}addRoot(t){$.assert(t.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(t),!this._isJsInferredProject&&t.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!t.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(t)}removeRoot(t){this.projectService.stopWatchingConfigFilesForScriptInfo(t),super.removeRoot(t),!this.isOrphan()&&this._isJsInferredProject&&t.isJavaScript()&&ht(this.getRootScriptInfos(),n=>!n.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){X(this.getRootScriptInfos(),t=>this.projectService.stopWatchingConfigFilesForScriptInfo(t)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:zMe(this),include:j,exclude:j}}},GMe=class extends YF{constructor(t){super(t.projectService.newAuxiliaryProjectName(),4,t.projectService,!1,void 0,t.getCompilerOptionsForNoDtsResolutionProject(),!1,void 0,t.projectService.host,t.currentDirectory)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},HMe=class mct extends YF{constructor(n,a,c){super(n.projectService.newAutoImportProviderProjectName(),3,n.projectService,!1,void 0,c,!1,n.getWatchOptions(),n.projectService.host,n.currentDirectory),this.hostProject=n,this.rootFileNames=a,this.useSourceOfProjectReferenceRedirect=ja(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=ja(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(n,a,c,u){var _,f;if(!n)return j;let y=a.getCurrentProgram();if(!y)return j;let g=Ml(),k,T,C=Xi(a.currentDirectory,$z),O=a.getPackageJsonsForAutoImport(Xi(a.currentDirectory,C));for(let re of O)(_=re.dependencies)==null||_.forEach((ae,_e)=>G(_e)),(f=re.peerDependencies)==null||f.forEach((ae,_e)=>G(_e));let F=0;if(k){let re=a.getSymlinkCache();for(let ae of so(k.keys())){if(n===2&&F>=this.maxDependencies)return a.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),j;let _e=Aye(ae,a.currentDirectory,u,c,y.getModuleResolutionCache());if(_e){let le=Z(_e,y,re);if(le){F+=J(le);continue}}if(!X([a.currentDirectory,a.getGlobalTypingsCacheLocation()],le=>{if(le){let Oe=Aye(`@types/${ae}`,le,u,c,y.getModuleResolutionCache());if(Oe){let be=Z(Oe,y,re);return F+=J(be),!0}}})&&_e&&u.allowJs&&u.maxNodeModuleJsDepth){let le=Z(_e,y,re,!0);F+=J(le)}}}let M=y.getResolvedProjectReferences(),U=0;return M?.length&&a.projectService.getHostPreferences().includeCompletionsForModuleExports&&M.forEach(re=>{if(re?.commandLine.options.outFile)U+=J(Q([hE(re.commandLine.options.outFile,".d.ts")]));else if(re){let ae=Ef(()=>S3(re.commandLine,!a.useCaseSensitiveFileNames()));U+=J(Q(Wn(re.commandLine.fileNames,_e=>!sf(_e)&&!Au(_e,".json")&&!y.getSourceFile(_e)?Mz(_e,re.commandLine,!a.useCaseSensitiveFileNames(),ae):void 0)))}}),T?.size&&a.log(`AutoImportProviderProject: found ${T.size} root files in ${F} dependencies ${U} referenced projects in ${Ml()-g} ms`),T?so(T.values()):j;function J(re){return re?.length?(T??(T=new Set),re.forEach(ae=>T.add(ae)),1):0}function G(re){Ca(re,"@types/")||(k||(k=new Set)).add(re)}function Z(re,ae,_e,me){var le;let Oe=Fye(re,u,c,ae.getModuleResolutionCache(),me);if(Oe){let be=(le=c.realpath)==null?void 0:le.call(c,re.packageDirectory),ue=be?a.toPath(be):void 0,De=ue&&ue!==a.toPath(re.packageDirectory);return De&&_e.setSymlinkedDirectory(re.packageDirectory,{real:r_(be),realPath:r_(ue)}),Q(Oe,De?Ce=>Ce.replace(re.packageDirectory,be):void 0)}}function Q(re,ae){return Wn(re,_e=>{let me=ae?ae(_e):_e;if(!y.getSourceFile(me)&&!(ae&&y.getSourceFile(_e)))return me})}}static create(n,a,c){if(n===0)return;let u={...a.getCompilerOptions(),...this.compilerOptionsOverrides},_=this.getRootFileNames(n,a,c,u);if(_.length)return new mct(a,_,u)}isEmpty(){return!Pt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let n=this.rootFileNames;n||(n=mct.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this,n),this.rootFileNames=n;let a=this.getCurrentProgram(),c=super.updateGraph();return a&&a!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),c}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var n;return!!((n=this.rootFileNames)!=null&&n.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||j}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var n;return(n=this.hostProject.getCurrentProgram())==null?void 0:n.getModuleResolutionCache()}};HMe.maxDependencies=10,HMe.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:j,lib:j,noLib:!0};var KMe=HMe,QMe=class extends YF{constructor(t,n,a,c,u){super(t,1,a,!1,void 0,{},!1,void 0,c,mo(t)),this.canonicalConfigFilePath=n,this.openFileWatchTriggered=new Map,this.initialLoadPending=!0,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=u}setCompilerHost(t){this.compilerHost=t}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(t){let n=nu(t),a=this.projectService.toCanonicalFileName(n),c=this.projectService.configFileExistenceInfoCache.get(a);return c||this.projectService.configFileExistenceInfoCache.set(a,c={exists:this.projectService.host.fileExists(n)}),this.projectService.ensureParsedConfigUptoDate(n,a,c,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(n,c,this),c.exists?c.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(t){this.releaseParsedConfig(this.projectService.toCanonicalFileName(nu(t)))}releaseParsedConfig(t){this.projectService.stopWatchingWildCards(t,this),this.projectService.releaseParsedConfig(t,this)}updateGraph(){if(this.deferredClose)return!1;let t=this.dirty;this.initialLoadPending=!1;let n=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let a;switch(n){case 1:this.openFileWatchTriggered.clear(),a=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();let c=$.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,c),a=!0;break;default:a=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),n===2||a&&(!t||!this.triggerFileForConfigFileDiag||this.getCurrentProgram().structureIsReused===2)?this.triggerFileForConfigFileDiag=void 0:this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1),a}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(t){this.projectReferences=t,this.potentialProjectReferences=void 0}setPotentialProjectReference(t){$.assert(this.initialLoadPending),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(t)}getRedirectFromSourceFile(t){let n=this.getCurrentProgram();return n&&n.getRedirectFromSourceFile(t)}forEachResolvedProjectReference(t){var n;return(n=this.getCurrentProgram())==null?void 0:n.forEachResolvedProjectReference(t)}enablePluginsWithOptions(t){var n;if(this.plugins.length=0,!((n=t.plugins)!=null&&n.length)&&!this.projectService.globalPlugins.length)return;let a=this.projectService.host;if(!a.require&&!a.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let c=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){let u=mo(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${u} to search paths`),c.unshift(u)}if(t.plugins)for(let u of t.plugins)this.enablePlugin(u,c);return this.enableGlobalPlugins(t)}getGlobalProjectErrors(){return yr(this.projectErrors,t=>!t.file)||Pd}getAllProjectErrors(){return this.projectErrors||Pd}setProjectErrors(t){this.projectErrors=t}close(){this.projectService.configFileExistenceInfoCache.forEach((t,n)=>this.releaseParsedConfig(n)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}markAsDirty(){this.deferredClose||super.markAsDirty()}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return Tz(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(t){this.parsedCommandLine=t,Sie(t.fileNames,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,sK(t.raw))}},Obe=class extends YF{constructor(t,n,a,c,u,_,f){super(t,2,n,!0,c,a,u,f,n.host,mo(_||Z_(t))),this.externalProjectName=t,this.compileOnSaveEnabled=u,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){let t=super.updateGraph();return this.projectService.sendProjectTelemetry(this),t}getExcludedFiles(){return this.excludedFiles}};function pM(t){return t.projectKind===0}function IE(t){return t.projectKind===1}function jQ(t){return t.projectKind===2}function BQ(t){return t.projectKind===3||t.projectKind===4}function $Q(t){return IE(t)&&!!t.deferredClose}var Fbe=20*1024*1024,Rbe=4*1024*1024,rse="projectsUpdatedInBackground",Lbe="projectLoadingStart",Mbe="projectLoadingFinish",jbe="largeFileReferenced",Bbe="configFileDiag",$be="projectLanguageServiceState",Ube="projectInfo",ZMe="openFileInfo",zbe="createFileWatcher",qbe="createDirectoryWatcher",Jbe="closeFileWatcher",ATt="*ensureProjectForOpenFiles*";function wTt(t){let n=new Map;for(let a of t)if(typeof a.type=="object"){let c=a.type;c.forEach(u=>{$.assert(typeof u=="number")}),n.set(a.name,c)}return n}var CSr=wTt(Q1),DSr=wTt(wF),ASr=new Map(Object.entries({none:0,block:1,smart:2})),XMe={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}};function _M(t){return Ni(t.indentStyle)&&(t.indentStyle=ASr.get(t.indentStyle.toLowerCase()),$.assert(t.indentStyle!==void 0)),t}function nse(t){return CSr.forEach((n,a)=>{let c=t[a];Ni(c)&&(t[a]=n.get(c.toLowerCase()))}),t}function UQ(t,n){let a,c;return wF.forEach(u=>{let _=t[u.name];if(_===void 0)return;let f=DSr.get(u.name);(a||(a={}))[u.name]=f?Ni(_)?f.get(_.toLowerCase()):_:m3(u,_,n||"",c||(c=[]))}),a&&{watchOptions:a,errors:c}}function YMe(t){let n;return uie.forEach(a=>{let c=t[a.name];c!==void 0&&((n||(n={}))[a.name]=c)}),n}function Vbe(t){return Ni(t)?Wbe(t):t}function Wbe(t){switch(t){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function eje(t){let{lazyConfiguredProjectsFromExternalProject:n,...a}=t;return a}var Gbe={getFileName:t=>t,getScriptKind:(t,n)=>{let a;if(n){let c=nE(t);c&&Pt(n,u=>u.extension===c?(a=u.scriptKind,!0):!1)}return a},hasMixedContent:(t,n)=>Pt(n,a=>a.isMixedContent&&Au(t,a.extension))},Hbe={getFileName:t=>t.fileName,getScriptKind:t=>Vbe(t.scriptKind),hasMixedContent:t=>!!t.hasMixedContent};function ITt(t,n){for(let a of n)if(a.getProjectName()===t)return a}var ise={isKnownTypesPackageName:Yf,installPackage:Ts,enqueueInstallTypingsRequest:zs,attach:zs,onProjectClosed:zs,globalTypingsCacheLocation:void 0},tje={close:zs};function PTt(t,n){if(!n)return;let a=n.get(t.path);if(a!==void 0)return Kbe(t)?a&&!Ni(a)?a.get(t.fileName):void 0:Ni(a)||!a?a:a.get(!1)}function NTt(t){return!!t.containingProjects}function Kbe(t){return!!t.configFileInfo}var rje=(t=>(t[t.FindOptimized=0]="FindOptimized",t[t.Find=1]="Find",t[t.CreateReplayOptimized=2]="CreateReplayOptimized",t[t.CreateReplay=3]="CreateReplay",t[t.CreateOptimized=4]="CreateOptimized",t[t.Create=5]="Create",t[t.ReloadOptimized=6]="ReloadOptimized",t[t.Reload=7]="Reload",t))(rje||{});function OTt(t){return t-1}function FTt(t,n,a,c,u,_,f,y,g){for(var k;;){if(n.parsedCommandLine&&(y&&!n.parsedCommandLine.options.composite||n.parsedCommandLine.options.disableSolutionSearching))return;let T=n.projectService.getConfigFileNameForFile({fileName:n.getConfigFilePath(),path:t.path,configFileInfo:!0,isForDefaultProject:!y},c<=3);if(!T)return;let C=n.projectService.findCreateOrReloadConfiguredProject(T,c,u,_,y?void 0:t.fileName,f,y,g);if(!C)return;!C.project.parsedCommandLine&&((k=n.parsedCommandLine)!=null&&k.options.composite)&&C.project.setPotentialProjectReference(n.canonicalConfigFilePath);let O=a(C);if(O)return O;n=C.project}}function RTt(t,n,a,c,u,_,f,y){let g=n.options.disableReferencedProjectLoad?0:c,k;return X(n.projectReferences,T=>{var C;let O=nu(RF(T)),F=t.projectService.toCanonicalFileName(O),M=y?.get(F);if(M!==void 0&&M>=g)return;let U=t.projectService.configFileExistenceInfoCache.get(F),J=g===0?U?.exists||(C=t.resolvedChildConfigs)!=null&&C.has(F)?U.config.parsedCommandLine:void 0:t.getParsedCommandLine(O);if(J&&g!==c&&g>2&&(J=t.getParsedCommandLine(O)),!J)return;let G=t.projectService.findConfiguredProjectByProjectName(O,_);if(!(g===2&&!U&&!G)){switch(g){case 6:G&&G.projectService.reloadConfiguredProjectOptimized(G,u,f);case 4:(t.resolvedChildConfigs??(t.resolvedChildConfigs=new Set)).add(F);case 2:case 0:if(G||g!==0){let Z=a(U??t.projectService.configFileExistenceInfoCache.get(F),G,O,u,t,F);if(Z)return Z}break;default:$.assertNever(g)}(y??(y=new Map)).set(F,g),(k??(k=[])).push(J)}})||X(k,T=>T.projectReferences&&RTt(t,T,a,g,u,_,f,y))}function nje(t,n,a,c,u){let _=!1,f;switch(n){case 2:case 3:sje(t)&&(f=t.projectService.configFileExistenceInfoCache.get(t.canonicalConfigFilePath));break;case 4:if(f=aje(t),f)break;case 5:_=ISr(t,a);break;case 6:if(t.projectService.reloadConfiguredProjectOptimized(t,c,u),f=aje(t),f)break;case 7:_=t.projectService.reloadConfiguredProjectClearingSemanticCache(t,c,u);break;case 0:case 1:break;default:$.assertNever(n)}return{project:t,sentConfigFileDiag:_,configFileExistenceInfo:f,reason:c}}function LTt(t,n){return t.initialLoadPending?(t.potentialProjectReferences&&Ix(t.potentialProjectReferences,n))??(t.resolvedChildConfigs&&Ix(t.resolvedChildConfigs,n)):void 0}function wSr(t,n,a,c){return t.getCurrentProgram()?t.forEachResolvedProjectReference(n):t.initialLoadPending?LTt(t,c):X(t.getProjectReferences(),a)}function ije(t,n,a){let c=a&&t.projectService.configuredProjects.get(a);return c&&n(c)}function MTt(t,n){return wSr(t,a=>ije(t,n,a.sourceFile.path),a=>ije(t,n,t.toPath(RF(a))),a=>ije(t,n,a))}function Qbe(t,n){return`${Ni(n)?`Config: ${n} `:n?`Project: ${n.getProjectName()} `:""}WatchType: ${t}`}function oje(t){return!t.isScriptOpen()&&t.mTime!==void 0}function _1(t){return t.invalidateResolutionsOfFailedLookupLocations(),t.dirty&&!t.updateGraph()}function jTt(t,n,a){if(!a&&(t.invalidateResolutionsOfFailedLookupLocations(),!t.dirty))return!1;t.triggerFileForConfigFileDiag=n;let c=t.pendingUpdateLevel;if(t.updateGraph(),!t.triggerFileForConfigFileDiag&&!a)return c===2;let u=t.projectService.sendConfigFileDiagEvent(t,n,a);return t.triggerFileForConfigFileDiag=void 0,u}function ISr(t,n){if(n){if(jTt(t,n,!1))return!0}else _1(t);return!1}function aje(t){let n=nu(t.getConfigFilePath()),a=t.projectService.ensureParsedConfigUptoDate(n,t.canonicalConfigFilePath,t.projectService.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),c=a.config.parsedCommandLine;if(t.parsedCommandLine=c,t.resolvedChildConfigs=void 0,t.updateReferences(c.projectReferences),sje(t))return a}function sje(t){return!!t.parsedCommandLine&&(!!t.parsedCommandLine.options.composite||!!Eye(t.parsedCommandLine))}function PSr(t){return sje(t)?t.projectService.configFileExistenceInfoCache.get(t.canonicalConfigFilePath):void 0}function NSr(t){return`Creating possible configured project for ${t.fileName} to open`}function Zbe(t){return`User requested reload projects: ${t}`}function cje(t){IE(t)&&(t.projectOptions=!0)}function lje(t){let n=1;return()=>t(n++)}function uje(){return{idToCallbacks:new Map,pathToId:new Map}}function BTt(t,n){return!!n&&!!t.eventHandler&&!!t.session}function OSr(t,n){if(!BTt(t,n))return;let a=uje(),c=uje(),u=uje(),_=1;return t.session.addProtocolHandler("watchChange",F=>(k(F.arguments),{responseRequired:!1})),{watchFile:f,watchDirectory:y,getCurrentDirectory:()=>t.host.getCurrentDirectory(),useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames};function f(F,M){return g(a,F,M,U=>({eventName:zbe,data:{id:U,path:F}}))}function y(F,M,U){return g(U?u:c,F,M,J=>({eventName:qbe,data:{id:J,path:F,recursive:!!U,ignoreUpdate:F.endsWith("/node_modules")?void 0:!0}}))}function g({pathToId:F,idToCallbacks:M},U,J,G){let Z=t.toPath(U),Q=F.get(Z);Q||F.set(Z,Q=_++);let re=M.get(Q);return re||(M.set(Q,re=new Set),t.eventHandler(G(Q))),re.add(J),{close(){let ae=M.get(Q);ae?.delete(J)&&(ae.size||(M.delete(Q),F.delete(Z),t.eventHandler({eventName:Jbe,data:{id:Q}})))}}}function k(F){Zn(F)?F.forEach(T):T(F)}function T({id:F,created:M,deleted:U,updated:J}){C(F,M,0),C(F,U,2),C(F,J,1)}function C(F,M,U){M?.length&&(O(a,F,M,(J,G)=>J(G,U)),O(c,F,M,(J,G)=>J(G)),O(u,F,M,(J,G)=>J(G)))}function O(F,M,U,J){var G;(G=F.idToCallbacks.get(M))==null||G.forEach(Z=>{U.forEach(Q=>J(Z,Z_(Q)))})}}var $Tt=class hct{constructor(n){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Set,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=lje(IMe),this.newAutoImportProviderProjectName=lje(PMe),this.newAuxiliaryProjectName=lje(NMe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=XMe,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=zs,this.verifyDocumentRegistry=zs,this.verifyProgram=zs,this.onProjectCreation=zs;var a;this.host=n.host,this.logger=n.logger,this.cancellationToken=n.cancellationToken,this.useSingleInferredProject=n.useSingleInferredProject,this.useInferredProjectPerProjectRoot=n.useInferredProjectPerProjectRoot,this.typingsInstaller=n.typingsInstaller||ise,this.throttleWaitMilliseconds=n.throttleWaitMilliseconds,this.eventHandler=n.eventHandler,this.suppressDiagnosticEvents=n.suppressDiagnosticEvents,this.globalPlugins=n.globalPlugins||Pd,this.pluginProbeLocations=n.pluginProbeLocations||Pd,this.allowLocalPluginLoads=!!n.allowLocalPluginLoads,this.typesMapLocation=n.typesMapLocation===void 0?Xi(mo(this.getExecutingFilePath()),"typesMap.json"):n.typesMapLocation,this.session=n.session,this.jsDocParsingMode=n.jsDocParsingMode,n.serverMode!==void 0?this.serverMode=n.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=d_()),this.currentDirectory=nu(this.host.getCurrentDirectory()),this.toCanonicalFileName=_d(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?r_(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new FMe(this.host,this.logger),this.logger.info(`currentDirectory:: ${this.host.getCurrentDirectory()} useCaseSensitiveFileNames:: ${this.host.useCaseSensitiveFileNames}`),this.logger.info(`libs Location:: ${mo(this.host.getExecutingFilePath())}`),this.logger.info(`globalTypingsCacheLocation:: ${this.typingsInstaller.globalTypingsCacheLocation}`),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.hostConfiguration={formatCodeOptions:Coe(this.host.newLine),preferences:u1,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=jve(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);let c=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,u=c!==0?_=>this.logger.info(_):zs;this.packageJsonCache=mje(this),this.watchFactory=this.serverMode!==0?{watchFile:qz,watchDirectory:qz}:E0e(OSr(this,n.canUseWatchEvents)||this.host,c,u,Qbe),this.canUseWatchEvents=BTt(this,n.canUseWatchEvents),(a=n.incrementalVerifier)==null||a.call(n,this)}toPath(n){return wl(n,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(n){return za(n,this.host.getCurrentDirectory())}setDocument(n,a,c){let u=$.checkDefined(this.getScriptInfoForPath(a));u.cacheSourceFile={key:n,sourceFile:c}}getDocument(n,a){let c=this.getScriptInfoForPath(a);return c&&c.cacheSourceFile&&c.cacheSourceFile.key===n?c.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(n,a){if(!this.eventHandler)return;let c={eventName:$be,data:{project:n,languageServiceEnabled:a}};this.eventHandler(c)}loadTypesMap(){try{let n=this.host.readFile(this.typesMapLocation);if(n===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}let a=JSON.parse(n);for(let c of Object.keys(a.typesMap))a.typesMap[c].match=new RegExp(a.typesMap[c].match,"i");this.safelist=a.typesMap;for(let c in a.simpleMap)Ho(a.simpleMap,c)&&this.legacySafelist.set(c,a.simpleMap[c].toLowerCase())}catch(n){this.logger.info(`Error loading types map: ${n}`),this.safelist=XMe,this.legacySafelist.clear()}}updateTypingsForProject(n){let a=this.findProject(n.projectName);if(a)switch(n.kind){case xoe:a.updateTypingFiles(n.compilerOptions,n.typeAcquisition,n.unresolvedImports,n.typings);return;case Toe:a.enqueueInstallTypingsForProject(!0);return}}watchTypingLocations(n){var a;(a=this.findProject(n.projectName))==null||a.watchTypingLocations(n.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(ATt,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(n){if($Q(n)||(n.markAsDirty(),BQ(n)))return;let a=n.getProjectName();this.pendingProjectUpdates.set(a,n),this.throttledOperations.schedule(a,250,()=>{this.pendingProjectUpdates.delete(a)&&_1(n)})}hasPendingProjectUpdate(n){return this.pendingProjectUpdates.has(n.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;let n={eventName:rse,data:{openFiles:so(this.openFiles.keys(),a=>this.getScriptInfoForPath(a).fileName)}};this.eventHandler(n)}sendLargeFileReferencedEvent(n,a){if(!this.eventHandler)return;let c={eventName:jbe,data:{file:n,fileSize:a,maxFileSize:Rbe}};this.eventHandler(c)}sendProjectLoadingStartEvent(n,a){if(!this.eventHandler)return;n.sendLoadingProjectFinish=!0;let c={eventName:Lbe,data:{project:n,reason:a}};this.eventHandler(c)}sendProjectLoadingFinishEvent(n){if(!this.eventHandler||!n.sendLoadingProjectFinish)return;n.sendLoadingProjectFinish=!1;let a={eventName:Mbe,data:{project:n}};this.eventHandler(a)}sendPerformanceEvent(n,a){this.performanceEventHandler&&this.performanceEventHandler({kind:n,durationMs:a})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(n){this.delayUpdateProjectGraph(n),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(n,a){if(n.length){for(let c of n)a&&c.clearSourceMapperCache(),this.delayUpdateProjectGraph(c);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(n,a){$.assert(a===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");let c=nse(n),u=UQ(n,a),_=YMe(n);c.allowNonTsExtensions=!0;let f=a&&this.toCanonicalFileName(a);f?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(f,c),this.watchOptionsForInferredProjectsPerProjectRoot.set(f,u||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(f,_)):(this.compilerOptionsForInferredProjects=c,this.watchOptionsForInferredProjects=u,this.typeAcquisitionForInferredProjects=_);for(let y of this.inferredProjects)(f?y.projectRootPath===f:!y.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(y.projectRootPath))&&(y.setCompilerOptions(c),y.setTypeAcquisition(_),y.setWatchOptions(u?.watchOptions),y.setProjectErrors(u?.errors),y.compileOnSaveEnabled=c.compileOnSave,y.markAsDirty(),this.delayUpdateProjectGraph(y));this.delayEnsureProjectForOpenFiles()}findProject(n){if(n!==void 0)return wMe(n)?ITt(n,this.inferredProjects):this.findExternalProjectByProjectName(n)||this.findConfiguredProjectByProjectName(nu(n))}forEachProject(n){this.externalProjects.forEach(n),this.configuredProjects.forEach(n),this.inferredProjects.forEach(n)}forEachEnabledProject(n){this.forEachProject(a=>{!a.isOrphan()&&a.languageServiceEnabled&&n(a)})}getDefaultProjectForFile(n,a){return a?this.ensureDefaultProjectForFile(n):this.tryGetDefaultProjectForFile(n)}tryGetDefaultProjectForFile(n){let a=Ni(n)?this.getScriptInfoForNormalizedPath(n):n;return a&&!a.isOrphan()?a.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(n){var a;let c=Ni(n)?this.getScriptInfoForNormalizedPath(n):n;if(c)return(a=this.pendingOpenFileProjectUpdates)!=null&&a.delete(c.path)&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(c,5),c.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(c,this.openFiles.get(c.path))),this.tryGetDefaultProjectForFile(c)}ensureDefaultProjectForFile(n){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(n)||this.doEnsureDefaultProjectForFile(n)}doEnsureDefaultProjectForFile(n){this.ensureProjectStructuresUptoDate();let a=Ni(n)?this.getScriptInfoForNormalizedPath(n):n;return a?a.getDefaultProject():(this.logErrorForScriptInfoNotFound(Ni(n)?n:n.fileName),t2.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(n){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(n)}ensureProjectStructuresUptoDate(){let n=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();let a=c=>{n=_1(c)||n};this.externalProjects.forEach(a),this.configuredProjects.forEach(a),this.inferredProjects.forEach(a),n&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(n){let a=this.getScriptInfoForNormalizedPath(n);return a&&a.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(n){let a=this.getScriptInfoForNormalizedPath(n);return{...this.hostConfiguration.preferences,...a&&a.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(n,a){$.assert(!n.isScriptOpen()),a===2?this.handleDeletedFile(n,!0):(n.deferredDelete&&(n.deferredDelete=void 0),n.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(n.containingProjects,!1),this.handleSourceMapProjects(n))}handleSourceMapProjects(n){if(n.sourceMapFilePath)if(Ni(n.sourceMapFilePath)){let a=this.getScriptInfoForPath(n.sourceMapFilePath);this.delayUpdateSourceInfoProjects(a?.sourceInfos)}else this.delayUpdateSourceInfoProjects(n.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(n.sourceInfos),n.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(n.declarationInfoPath)}delayUpdateSourceInfoProjects(n){n&&n.forEach((a,c)=>this.delayUpdateProjectsOfScriptInfoPath(c))}delayUpdateProjectsOfScriptInfoPath(n){let a=this.getScriptInfoForPath(n);a&&this.delayUpdateProjectGraphs(a.containingProjects,!0)}handleDeletedFile(n,a){$.assert(!n.isScriptOpen()),this.delayUpdateProjectGraphs(n.containingProjects,!1),this.handleSourceMapProjects(n),n.detachAllProjects(),a?(n.delayReloadNonMixedContentFile(),n.deferredDelete=!0):this.deleteScriptInfo(n)}watchWildcardDirectory(n,a,c,u){let _=this.watchFactory.watchDirectory(n,y=>this.onWildCardDirectoryWatcherInvoke(n,c,u,f,y),a,this.getWatchOptionsFromProjectWatchOptions(u.parsedCommandLine.watchOptions,mo(c)),cf.WildcardDirectory,c),f={packageJsonWatches:void 0,close(){var y;_&&(_.close(),_=void 0,(y=f.packageJsonWatches)==null||y.forEach(g=>{g.projects.delete(f),g.close()}),f.packageJsonWatches=void 0)}};return f}onWildCardDirectoryWatcherInvoke(n,a,c,u,_){let f=this.toPath(_),y=c.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(_,f);if(t_(f)==="package.json"&&!tQ(f)&&(y&&y.fileExists||!y&&this.host.fileExists(_))){let k=this.getNormalizedAbsolutePath(_);this.logger.info(`Config: ${a} Detected new package.json: ${k}`),this.packageJsonCache.addOrUpdate(k,f),this.watchPackageJsonFile(k,f,u)}y?.fileExists||this.sendSourceFileChange(f);let g=this.findConfiguredProjectByProjectName(a);kK({watchedDirPath:this.toPath(n),fileOrDirectory:_,fileOrDirectoryPath:f,configFileName:a,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:c.parsedCommandLine.options,program:g?.getCurrentProgram()||c.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:k=>this.logger.info(k),toPath:k=>this.toPath(k),getScriptKind:g?k=>g.getScriptKind(k):void 0})||(c.updateLevel!==2&&(c.updateLevel=1),c.projects.forEach((k,T)=>{var C;if(!k)return;let O=this.getConfiguredProjectByCanonicalConfigFilePath(T);if(!O)return;if(g!==O&&this.getHostPreferences().includeCompletionsForModuleExports){let M=this.toPath(a);wt((C=O.getCurrentProgram())==null?void 0:C.getResolvedProjectReferences(),U=>U?.sourceFile.path===M)&&O.markAutoImportProviderAsDirty()}let F=g===O?1:0;if(!(O.pendingUpdateLevel>F))if(this.openFiles.has(f))if($.checkDefined(this.getScriptInfoForPath(f)).isAttached(O)){let U=Math.max(F,O.openFileWatchTriggered.get(f)||0);O.openFileWatchTriggered.set(f,U)}else O.pendingUpdateLevel=F,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(O);else O.pendingUpdateLevel=F,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(O)}))}delayUpdateProjectsFromParsedConfigOnConfigFileChange(n,a){let c=this.configFileExistenceInfoCache.get(n);if(!c?.config)return!1;let u=!1;return c.config.updateLevel=2,c.config.cachedDirectoryStructureHost.clearCache(),c.config.projects.forEach((_,f)=>{var y,g,k;let T=this.getConfiguredProjectByCanonicalConfigFilePath(f);if(T)if(u=!0,f===n){if(T.initialLoadPending)return;T.pendingUpdateLevel=2,T.pendingUpdateReason=a,this.delayUpdateProjectGraph(T),T.markAutoImportProviderAsDirty()}else{if(T.initialLoadPending){(g=(y=this.configFileExistenceInfoCache.get(f))==null?void 0:y.openFilesImpactedByConfigFile)==null||g.forEach(O=>{var F;(F=this.pendingOpenFileProjectUpdates)!=null&&F.has(O)||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(O,this.configFileForOpenFiles.get(O))});return}let C=this.toPath(n);T.resolutionCache.removeResolutionsFromProjectReferenceRedirects(C),this.delayUpdateProjectGraph(T),this.getHostPreferences().includeCompletionsForModuleExports&&wt((k=T.getCurrentProgram())==null?void 0:k.getResolvedProjectReferences(),O=>O?.sourceFile.path===C)&&T.markAutoImportProviderAsDirty()}}),u}onConfigFileChanged(n,a,c){let u=this.configFileExistenceInfoCache.get(a),_=this.getConfiguredProjectByCanonicalConfigFilePath(a),f=_?.deferredClose;c===2?(u.exists=!1,_&&(_.deferredClose=!0)):(u.exists=!0,f&&(_.deferredClose=void 0,_.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(a,"Change in config file detected"),this.openFiles.forEach((y,g)=>{var k,T;let C=this.configFileForOpenFiles.get(g);if(!((k=u.openFilesImpactedByConfigFile)!=null&&k.has(g)))return;this.configFileForOpenFiles.delete(g);let O=this.getScriptInfoForPath(g);this.getConfigFileNameForFile(O,!1)&&((T=this.pendingOpenFileProjectUpdates)!=null&&T.has(g)||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(g,C))}),this.delayEnsureProjectForOpenFiles()}removeProject(n){switch(this.logger.info("`remove Project::"),n.print(!0,!0,!1),n.close(),$.shouldAssert(1)&&this.filenameToScriptInfo.forEach(a=>$.assert(!a.isAttached(n),"Found script Info still attached to project",()=>`${n.projectName}: ScriptInfos still attached: ${JSON.stringify(so(Na(this.filenameToScriptInfo.values(),c=>c.isAttached(n)?{fileName:c.fileName,projects:c.containingProjects.map(u=>u.projectName),hasMixedContent:c.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(n.getProjectName()),n.projectKind){case 2:pb(this.externalProjects,n),this.projectToSizeMap.delete(n.getProjectName());break;case 1:this.configuredProjects.delete(n.canonicalConfigFilePath),this.projectToSizeMap.delete(n.canonicalConfigFilePath);break;case 0:pb(this.inferredProjects,n);break}}assignOrphanScriptInfoToInferredProject(n,a){$.assert(n.isOrphan());let c=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(n,a)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(n.isDynamic?a||this.currentDirectory:mo(qd(n.fileName)?n.fileName:za(n.fileName,a?this.getNormalizedAbsolutePath(a):this.currentDirectory)));if(c.addRoot(n),n.containingProjects[0]!==c&&(IT(n.containingProjects,c),n.containingProjects.unshift(c)),c.updateGraph(),!this.useSingleInferredProject&&!c.projectRootPath)for(let u of this.inferredProjects){if(u===c||u.isOrphan())continue;let _=u.getRootScriptInfos();$.assert(_.length===1||!!u.projectRootPath),_.length===1&&X(_[0].containingProjects,f=>f!==_[0].containingProjects[0]&&!f.isOrphan())&&u.removeFile(_[0],!0,!0)}return c}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((n,a)=>{let c=this.getScriptInfoForPath(a);c.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(c,n)})}closeOpenFile(n,a){var c;let u=n.isDynamic?!1:this.host.fileExists(n.fileName);n.close(u),this.stopWatchingConfigFilesForScriptInfo(n);let _=this.toCanonicalFileName(n.fileName);this.openFilesWithNonRootedDiskPath.get(_)===n&&this.openFilesWithNonRootedDiskPath.delete(_);let f=!1;for(let y of n.containingProjects){if(IE(y)){n.hasMixedContent&&n.registerFileUpdate();let g=y.openFileWatchTriggered.get(n.path);g!==void 0&&(y.openFileWatchTriggered.delete(n.path),y.pendingUpdateLevelthis.onConfigFileChanged(n,a,g),2e3,this.getWatchOptionsFromProjectWatchOptions((_=(u=f?.config)==null?void 0:u.parsedCommandLine)==null?void 0:_.watchOptions,mo(n)),cf.ConfigFile,c)),this.ensureConfigFileWatcherForProject(f,c)}ensureConfigFileWatcherForProject(n,a){let c=n.config.projects;c.set(a.canonicalConfigFilePath,c.get(a.canonicalConfigFilePath)||!1)}releaseParsedConfig(n,a){var c,u,_;let f=this.configFileExistenceInfoCache.get(n);(c=f.config)!=null&&c.projects.delete(a.canonicalConfigFilePath)&&((u=f.config)!=null&&u.projects.size||(f.config=void 0,x0e(n,this.sharedExtendedConfigFileWatchers),$.checkDefined(f.watcher),(_=f.openFilesImpactedByConfigFile)!=null&&_.size?f.inferredProjectRoots?NK(mo(n))||(f.watcher.close(),f.watcher=tje):(f.watcher.close(),f.watcher=void 0):(f.watcher.close(),this.configFileExistenceInfoCache.delete(n))))}stopWatchingConfigFilesForScriptInfo(n){if(this.serverMode!==0)return;let a=this.rootOfInferredProjects.delete(n),c=n.isScriptOpen();c&&!a||this.forEachConfigFileLocation(n,u=>{var _,f,y;let g=this.configFileExistenceInfoCache.get(u);if(g){if(c){if(!((_=g?.openFilesImpactedByConfigFile)!=null&&_.has(n.path)))return}else if(!((f=g.openFilesImpactedByConfigFile)!=null&&f.delete(n.path)))return;a&&(g.inferredProjectRoots--,g.watcher&&!g.config&&!g.inferredProjectRoots&&(g.watcher.close(),g.watcher=void 0)),!((y=g.openFilesImpactedByConfigFile)!=null&&y.size)&&!g.config&&($.assert(!g.watcher),this.configFileExistenceInfoCache.delete(u))}})}startWatchingConfigFilesForInferredProjectRoot(n){this.serverMode===0&&($.assert(n.isScriptOpen()),this.rootOfInferredProjects.add(n),this.forEachConfigFileLocation(n,(a,c)=>{let u=this.configFileExistenceInfoCache.get(a);u?u.inferredProjectRoots=(u.inferredProjectRoots??0)+1:(u={exists:this.host.fileExists(c),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(a,u)),(u.openFilesImpactedByConfigFile??(u.openFilesImpactedByConfigFile=new Set)).add(n.path),u.watcher||(u.watcher=NK(mo(a))?this.watchFactory.watchFile(c,(_,f)=>this.onConfigFileChanged(c,a,f),2e3,this.hostConfiguration.watchOptions,cf.ConfigFileForInferredRoot):tje)}))}forEachConfigFileLocation(n,a){if(this.serverMode!==0)return;$.assert(!NTt(n)||this.openFiles.has(n.path));let c=this.openFiles.get(n.path);if($.checkDefined(this.getScriptInfo(n.path)).isDynamic)return;let _=mo(n.fileName),f=()=>ug(c,_,this.currentDirectory,!this.host.useCaseSensitiveFileNames),y=!c||!f(),g=!0,k=!0;Kbe(n)&&(au(n.fileName,"tsconfig.json")?g=!1:g=k=!1);do{let T=uM(_,this.currentDirectory,this.toCanonicalFileName);if(g){let O=Xi(_,"tsconfig.json");if(a(Xi(T,"tsconfig.json"),O))return O}if(k){let O=Xi(_,"jsconfig.json");if(a(Xi(T,"jsconfig.json"),O))return O}if(CO(T))break;let C=mo(_);if(C===_)break;_=C,g=k=!0}while(y||f())}findDefaultConfiguredProject(n){var a;return(a=this.findDefaultConfiguredProjectWorker(n,1))==null?void 0:a.defaultProject}findDefaultConfiguredProjectWorker(n,a){return n.isScriptOpen()?this.tryFindDefaultConfiguredProjectForOpenScriptInfo(n,a):void 0}getConfigFileNameForFileFromCache(n,a){if(a){let c=PTt(n,this.pendingOpenFileProjectUpdates);if(c!==void 0)return c}return PTt(n,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(n,a){if(!this.openFiles.has(n.path))return;let c=a||!1;if(!Kbe(n))this.configFileForOpenFiles.set(n.path,c);else{let u=this.configFileForOpenFiles.get(n.path);(!u||Ni(u))&&this.configFileForOpenFiles.set(n.path,u=new Map().set(!1,u)),u.set(n.fileName,c)}}getConfigFileNameForFile(n,a){let c=this.getConfigFileNameForFileFromCache(n,a);if(c!==void 0)return c||void 0;if(a)return;let u=this.forEachConfigFileLocation(n,(_,f)=>this.configFileExists(f,_,n));return this.logger.info(`getConfigFileNameForFile:: File: ${n.fileName} ProjectRootPath: ${this.openFiles.get(n.path)}:: Result: ${u}`),this.setConfigFileNameForFileInCache(n,u),u}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(dje),this.configuredProjects.forEach(dje),this.inferredProjects.forEach(dje),this.logger.info("Open files: "),this.openFiles.forEach((n,a)=>{let c=this.getScriptInfoForPath(a);this.logger.info(` FileName: ${c.fileName} ProjectRootPath: ${n}`),this.logger.info(` Projects: ${c.containingProjects.map(u=>u.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(n,a){let c=this.toCanonicalFileName(n),u=this.getConfiguredProjectByCanonicalConfigFilePath(c);return a?u:u?.deferredClose?void 0:u}getConfiguredProjectByCanonicalConfigFilePath(n){return this.configuredProjects.get(n)}findExternalProjectByProjectName(n){return ITt(n,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(n,a,c,u){if(a&&a.disableSizeLimit||!this.host.getFileSize)return;let _=Fbe;this.projectToSizeMap.set(n,0),this.projectToSizeMap.forEach(y=>_-=y||0);let f=0;for(let y of c){let g=u.getFileName(y);if(!X4(g)&&(f+=this.host.getFileSize(g),f>Fbe||f>_)){let k=c.map(T=>u.getFileName(T)).filter(T=>!X4(T)).map(T=>({name:T,size:this.host.getFileSize(T)})).sort((T,C)=>C.size-T.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${f}). Largest files: ${k.map(T=>`${T.name}:${T.size}`).join(", ")}`),g}}this.projectToSizeMap.set(n,f)}createExternalProject(n,a,c,u,_){let f=nse(c),y=UQ(c,mo(Z_(n))),g=new Obe(n,this,f,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(n,f,a,Hbe),c.compileOnSave===void 0?!0:c.compileOnSave,void 0,y?.watchOptions);return g.setProjectErrors(y?.errors),g.excludedFiles=_,this.addFilesToNonInferredProject(g,a,Hbe,u),this.externalProjects.push(g),g}sendProjectTelemetry(n){if(this.seenProjects.has(n.projectName)){cje(n);return}if(this.seenProjects.set(n.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){cje(n);return}let a=IE(n)?n.projectOptions:void 0;cje(n);let c={projectId:this.host.createSHA256Hash(n.projectName),fileStats:MQ(n.getScriptInfos(),!0),compilerOptions:ZNe(n.getCompilationSettings()),typeAcquisition:_(n.getTypeAcquisition()),extends:a&&a.configHasExtendsProperty,files:a&&a.configHasFilesProperty,include:a&&a.configHasIncludeProperty,exclude:a&&a.configHasExcludeProperty,compileOnSave:n.compileOnSaveEnabled,configFileName:u(),projectType:n instanceof Obe?"external":"configured",languageServiceEnabled:n.languageServiceEnabled,version:L};this.eventHandler({eventName:Ube,data:c});function u(){return IE(n)&&Nbe(n.getConfigFilePath())||"other"}function _({enable:f,include:y,exclude:g}){return{enable:f,include:y!==void 0&&y.length!==0,exclude:g!==void 0&&g.length!==0}}}addFilesToNonInferredProject(n,a,c,u){this.updateNonInferredProjectFiles(n,a,c),n.setTypeAcquisition(u),n.markAsDirty()}createConfiguredProject(n,a){var c;(c=hi)==null||c.instant(hi.Phase.Session,"createConfiguredProject",{configFilePath:n});let u=this.toCanonicalFileName(n),_=this.configFileExistenceInfoCache.get(u);_?_.exists=!0:this.configFileExistenceInfoCache.set(u,_={exists:!0}),_.config||(_.config={cachedDirectoryStructureHost:Gie(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});let f=new QMe(n,u,this,_.config.cachedDirectoryStructureHost,a);return $.assert(!this.configuredProjects.has(u)),this.configuredProjects.set(u,f),this.createConfigFileWatcherForParsedConfig(n,u,f),f}loadConfiguredProject(n,a){var c,u;(c=hi)==null||c.push(hi.Phase.Session,"loadConfiguredProject",{configFilePath:n.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(n,a);let _=nu(n.getConfigFilePath()),f=this.ensureParsedConfigUptoDate(_,n.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(n.canonicalConfigFilePath),n),y=f.config.parsedCommandLine;$.assert(!!y.fileNames);let g=y.options;n.projectOptions||(n.projectOptions={configHasExtendsProperty:y.raw.extends!==void 0,configHasFilesProperty:y.raw.files!==void 0,configHasIncludeProperty:y.raw.include!==void 0,configHasExcludeProperty:y.raw.exclude!==void 0}),n.parsedCommandLine=y,n.setProjectErrors(y.options.configFile.parseDiagnostics),n.updateReferences(y.projectReferences);let k=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(n.canonicalConfigFilePath,g,y.fileNames,Gbe);k?(n.disableLanguageService(k),this.configFileExistenceInfoCache.forEach((C,O)=>this.stopWatchingWildCards(O,n))):(n.setCompilerOptions(g),n.setWatchOptions(y.watchOptions),n.enableLanguageService(),this.watchWildcards(_,f,n)),n.enablePluginsWithOptions(g);let T=y.fileNames.concat(n.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(n,T,Gbe,g,y.typeAcquisition,y.compileOnSave,y.watchOptions),(u=hi)==null||u.pop()}ensureParsedConfigUptoDate(n,a,c,u){var _,f,y;if(c.config&&(c.config.updateLevel===1&&this.reloadFileNamesOfParsedConfig(n,c.config),!c.config.updateLevel))return this.ensureConfigFileWatcherForProject(c,u),c;if(!c.exists&&c.config)return c.config.updateLevel=void 0,this.ensureConfigFileWatcherForProject(c,u),c;let g=((_=c.config)==null?void 0:_.cachedDirectoryStructureHost)||Gie(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),k=Sz(n,U=>this.host.readFile(U)),T=YH(n,Ni(k)?k:""),C=T.parseDiagnostics;Ni(k)||C.push(k);let O=mo(n),F=oK(T,g,O,void 0,n,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);F.errors.length&&C.push(...F.errors),this.logger.info(`Config: ${n} : ${JSON.stringify({rootNames:F.fileNames,options:F.options,watchOptions:F.watchOptions,projectReferences:F.projectReferences},void 0," ")}`);let M=(f=c.config)==null?void 0:f.parsedCommandLine;return c.config?(c.config.parsedCommandLine=F,c.config.watchedDirectoriesStale=!0,c.config.updateLevel=void 0):c.config={parsedCommandLine:F,cachedDirectoryStructureHost:g,projects:new Map},!M&&!Sne(this.getWatchOptionsFromProjectWatchOptions(void 0,O),this.getWatchOptionsFromProjectWatchOptions(F.watchOptions,O))&&((y=c.watcher)==null||y.close(),c.watcher=void 0),this.createConfigFileWatcherForParsedConfig(n,a,u),Hie(a,F.options,this.sharedExtendedConfigFileWatchers,(U,J)=>this.watchFactory.watchFile(U,()=>{var G;Kie(this.extendedConfigCache,J,Q=>this.toPath(Q));let Z=!1;(G=this.sharedExtendedConfigFileWatchers.get(J))==null||G.projects.forEach(Q=>{Z=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(Q,`Change in extended config file ${U} detected`)||Z}),Z&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,cf.ExtendedConfigFile,n),U=>this.toPath(U)),c}watchWildcards(n,{exists:a,config:c},u){if(c.projects.set(u.canonicalConfigFilePath,!0),a){if(c.watchedDirectories&&!c.watchedDirectoriesStale)return;c.watchedDirectoriesStale=!1,EK(c.watchedDirectories||(c.watchedDirectories=new Map),c.parsedCommandLine.wildcardDirectories,(_,f)=>this.watchWildcardDirectory(_,f,n,c))}else{if(c.watchedDirectoriesStale=!1,!c.watchedDirectories)return;dg(c.watchedDirectories,C0),c.watchedDirectories=void 0}}stopWatchingWildCards(n,a){let c=this.configFileExistenceInfoCache.get(n);!c.config||!c.config.projects.get(a.canonicalConfigFilePath)||(c.config.projects.set(a.canonicalConfigFilePath,!1),!Ad(c.config.projects,vl)&&(c.config.watchedDirectories&&(dg(c.config.watchedDirectories,C0),c.config.watchedDirectories=void 0),c.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(n,a,c){var u;let _=n.getRootFilesMap(),f=new Map;for(let y of a){let g=c.getFileName(y),k=nu(g),T=vq(k),C;if(!T&&!n.fileExists(g)){C=uM(k,this.currentDirectory,this.toCanonicalFileName);let O=_.get(C);O?(((u=O.info)==null?void 0:u.path)===C&&(n.removeFile(O.info,!1,!0),O.info=void 0),O.fileName=k):_.set(C,{fileName:k})}else{let O=c.getScriptKind(y,this.hostConfiguration.extraFileExtensions),F=c.hasMixedContent(y,this.hostConfiguration.extraFileExtensions),M=$.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(k,n.currentDirectory,O,F,n.directoryStructureHost,!1));C=M.path;let U=_.get(C);!U||U.info!==M?(n.addRoot(M,k),M.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(M)):U.fileName=k}f.set(C,!0)}_.size>f.size&&_.forEach((y,g)=>{f.has(g)||(y.info?n.removeFile(y.info,n.fileExists(y.info.fileName),!0):_.delete(g))})}updateRootAndOptionsOfNonInferredProject(n,a,c,u,_,f,y){n.setCompilerOptions(u),n.setWatchOptions(y),f!==void 0&&(n.compileOnSaveEnabled=f),this.addFilesToNonInferredProject(n,a,c,_)}reloadFileNamesOfConfiguredProject(n){let a=this.reloadFileNamesOfParsedConfig(n.getConfigFilePath(),this.configFileExistenceInfoCache.get(n.canonicalConfigFilePath).config);return n.updateErrorOnNoInputFiles(a),this.updateNonInferredProjectFiles(n,a.fileNames.concat(n.getExternalFiles(1)),Gbe),n.markAsDirty(),n.updateGraph()}reloadFileNamesOfParsedConfig(n,a){if(a.updateLevel===void 0)return a.parsedCommandLine;$.assert(a.updateLevel===1);let c=a.parsedCommandLine.options.configFile.configFileSpecs,u=bz(c,mo(n),a.parsedCommandLine.options,a.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return a.parsedCommandLine={...a.parsedCommandLine,fileNames:u},a.updateLevel=void 0,a.parsedCommandLine}setFileNamesOfAutoImportProviderOrAuxillaryProject(n,a){this.updateNonInferredProjectFiles(n,a,Gbe)}reloadConfiguredProjectOptimized(n,a,c){c.has(n)||(c.set(n,6),n.initialLoadPending||this.setProjectForReload(n,2,a))}reloadConfiguredProjectClearingSemanticCache(n,a,c){return c.get(n)===7?!1:(c.set(n,7),this.clearSemanticCache(n),this.reloadConfiguredProject(n,Zbe(a)),!0)}setProjectForReload(n,a,c){a===2&&this.clearSemanticCache(n),n.pendingUpdateReason=c&&Zbe(c),n.pendingUpdateLevel=a}reloadConfiguredProject(n,a){n.initialLoadPending=!1,this.setProjectForReload(n,0),this.loadConfiguredProject(n,a),jTt(n,n.triggerFileForConfigFileDiag??n.getConfigFilePath(),!0)}clearSemanticCache(n){n.originalConfiguredProjects=void 0,n.resolutionCache.clear(),n.getLanguageService(!1).cleanupSemanticCache(),n.cleanupProgram(),n.markAsDirty()}sendConfigFileDiagEvent(n,a,c){if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;let u=n.getLanguageService().getCompilerOptionsDiagnostics();return u.push(...n.getAllProjectErrors()),!c&&u.length===(n.configDiagDiagnosticsReported??0)?!1:(n.configDiagDiagnosticsReported=u.length,this.eventHandler({eventName:Bbe,data:{configFileName:n.getConfigFilePath(),diagnostics:u,triggerFile:a??n.getConfigFilePath()}}),!0)}getOrCreateInferredProjectForProjectRootPathIfEnabled(n,a){if(!this.useInferredProjectPerProjectRoot||n.isDynamic&&a===void 0)return;if(a){let u=this.toCanonicalFileName(a);for(let _ of this.inferredProjects)if(_.projectRootPath===u)return _;return this.createInferredProject(a,!1,a)}let c;for(let u of this.inferredProjects)u.projectRootPath&&ug(u.projectRootPath,n.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(c&&c.projectRootPath.length>u.projectRootPath.length||(c=u));return c}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject(this.currentDirectory,!0,void 0)}getOrCreateSingleInferredWithoutProjectRoot(n){$.assert(!this.useSingleInferredProject);let a=this.toCanonicalFileName(this.getNormalizedAbsolutePath(n));for(let c of this.inferredProjects)if(!c.projectRootPath&&c.isOrphan()&&c.canonicalCurrentDirectory===a)return c;return this.createInferredProject(n,!1,void 0)}createInferredProject(n,a,c){let u=c&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(c)||this.compilerOptionsForInferredProjects,_,f;c&&(_=this.watchOptionsForInferredProjectsPerProjectRoot.get(c),f=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(c)),_===void 0&&(_=this.watchOptionsForInferredProjects),f===void 0&&(f=this.typeAcquisitionForInferredProjects),_=_||void 0;let y=new WMe(this,u,_?.watchOptions,c,n,f);return y.setProjectErrors(_?.errors),a?this.inferredProjects.unshift(y):this.inferredProjects.push(y),y}getOrCreateScriptInfoNotOpenedByClient(n,a,c,u){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(nu(n),a,void 0,void 0,c,u)}getScriptInfo(n){return this.getScriptInfoForNormalizedPath(nu(n))}getScriptInfoOrConfig(n){let a=nu(n),c=this.getScriptInfoForNormalizedPath(a);if(c)return c;let u=this.configuredProjects.get(this.toPath(n));return u&&u.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(n){let a=so(Na(this.filenameToScriptInfo.entries(),c=>c[1].deferredDelete?void 0:c),([c,u])=>({path:c,fileName:u.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(n)}. -All files are: ${JSON.stringify(a)}`,"Err")}getSymlinkedProjects(n){let a;if(this.realpathToScriptInfos){let u=n.getRealpathIfDifferent();u&&X(this.realpathToScriptInfos.get(u),c),X(this.realpathToScriptInfos.get(n.path),c)}return a;function c(u){if(u!==n)for(let _ of u.containingProjects)_.languageServiceEnabled&&!_.isOrphan()&&!_.getCompilerOptions().preserveSymlinks&&!n.isAttached(_)&&(a?Ad(a,(f,y)=>y===u.path?!1:un(f,_))||a.add(u.path,_):(a=d_(),a.add(u.path,_)))}}watchClosedScriptInfo(n){if($.assert(!n.fileWatcher),!n.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!Ca(n.path,this.globalCacheLocationDirectoryPath))){let a=n.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||a===-1?n.fileWatcher=this.watchFactory.watchFile(n.fileName,(c,u)=>this.onSourceFileChanged(n,u),500,this.hostConfiguration.watchOptions,cf.ClosedScriptInfo):(n.mTime=this.getModifiedTime(n),n.fileWatcher=this.watchClosedScriptInfoInNodeModules(n.fileName.substring(0,a)))}}createNodeModulesWatcher(n,a){let c=this.watchFactory.watchDirectory(n,_=>{var f;let y=coe(this.toPath(_));if(!y)return;let g=t_(y);if((f=u.affectedModuleSpecifierCacheProjects)!=null&&f.size&&(g==="package.json"||g==="node_modules")&&u.affectedModuleSpecifierCacheProjects.forEach(k=>{var T;(T=k.getModuleSpecifierCache())==null||T.clear()}),u.refreshScriptInfoRefCount)if(a===y)this.refreshScriptInfosInDirectory(a);else{let k=this.filenameToScriptInfo.get(y);k?oje(k)&&this.refreshScriptInfo(k):eA(y)||this.refreshScriptInfosInDirectory(y)}},1,this.hostConfiguration.watchOptions,cf.NodeModules),u={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var _;c&&!u.refreshScriptInfoRefCount&&!((_=u.affectedModuleSpecifierCacheProjects)!=null&&_.size)&&(c.close(),c=void 0,this.nodeModulesWatchers.delete(a))}};return this.nodeModulesWatchers.set(a,u),u}watchPackageJsonsInNodeModules(n,a){var c;let u=this.toPath(n),_=this.nodeModulesWatchers.get(u)||this.createNodeModulesWatcher(n,u);return $.assert(!((c=_.affectedModuleSpecifierCacheProjects)!=null&&c.has(a))),(_.affectedModuleSpecifierCacheProjects||(_.affectedModuleSpecifierCacheProjects=new Set)).add(a),{close:()=>{var f;(f=_.affectedModuleSpecifierCacheProjects)==null||f.delete(a),_.close()}}}watchClosedScriptInfoInNodeModules(n){let a=n+"/node_modules",c=this.toPath(a),u=this.nodeModulesWatchers.get(c)||this.createNodeModulesWatcher(a,c);return u.refreshScriptInfoRefCount++,{close:()=>{u.refreshScriptInfoRefCount--,u.close()}}}getModifiedTime(n){return(this.host.getModifiedTime(n.fileName)||Wm).getTime()}refreshScriptInfo(n){let a=this.getModifiedTime(n);if(a!==n.mTime){let c=S4(n.mTime,a);n.mTime=a,this.onSourceFileChanged(n,c)}}refreshScriptInfosInDirectory(n){n=n+Gl,this.filenameToScriptInfo.forEach(a=>{oje(a)&&Ca(a.path,n)&&this.refreshScriptInfo(a)})}stopWatchingScriptInfo(n){n.fileWatcher&&(n.fileWatcher.close(),n.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(n,a,c,u,_,f){if(qd(n)||vq(n))return this.getOrCreateScriptInfoWorker(n,a,!1,void 0,c,!!u,_,f);let y=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(n));if(y)return y}getOrCreateScriptInfoForNormalizedPath(n,a,c,u,_,f){return this.getOrCreateScriptInfoWorker(n,this.currentDirectory,a,c,u,!!_,f,!1)}getOrCreateScriptInfoWorker(n,a,c,u,_,f,y,g){$.assert(u===void 0||c,"ScriptInfo needs to be opened by client to be able to set its user defined content");let k=uM(n,a,this.toCanonicalFileName),T=this.filenameToScriptInfo.get(k);if(T){if(T.deferredDelete){if($.assert(!T.isDynamic),!c&&!(y||this.host).fileExists(n))return g?T:void 0;T.deferredDelete=void 0}}else{let C=vq(n);if($.assert(qd(n)||C||c,"",()=>`${JSON.stringify({fileName:n,currentDirectory:a,hostCurrentDirectory:this.currentDirectory,openKeys:so(this.openFilesWithNonRootedDiskPath.keys())})} -Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),$.assert(!qd(n)||this.currentDirectory===a||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(n)),"",()=>`${JSON.stringify({fileName:n,currentDirectory:a,hostCurrentDirectory:this.currentDirectory,openKeys:so(this.openFilesWithNonRootedDiskPath.keys())})} -Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),$.assert(!C||this.currentDirectory===a||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:n,currentDirectory:a,hostCurrentDirectory:this.currentDirectory,openKeys:so(this.openFilesWithNonRootedDiskPath.keys())})} -Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!c&&!C&&!(y||this.host).fileExists(n))return;T=new BMe(this.host,n,_,f,k,this.filenameToScriptInfoVersion.get(k)),this.filenameToScriptInfo.set(T.path,T),this.filenameToScriptInfoVersion.delete(T.path),c?!qd(n)&&(!C||this.currentDirectory!==a)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(n),T):this.watchClosedScriptInfo(T)}return c&&(this.stopWatchingScriptInfo(T),T.open(u),f&&T.registerFileUpdate()),T}getScriptInfoForNormalizedPath(n){return!qd(n)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(n))||this.getScriptInfoForPath(uM(n,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(n){let a=this.filenameToScriptInfo.get(n);return!a||!a.deferredDelete?a:void 0}getDocumentPositionMapper(n,a,c){let u=this.getOrCreateScriptInfoNotOpenedByClient(a,n.currentDirectory,this.host,!1);if(!u){c&&n.addGeneratedFileWatch(a,c);return}if(u.getSnapshot(),Ni(u.sourceMapFilePath)){let k=this.getScriptInfoForPath(u.sourceMapFilePath);if(k&&(k.getSnapshot(),k.documentPositionMapper!==void 0))return k.sourceInfos=this.addSourceInfoToSourceMap(c,n,k.sourceInfos),k.documentPositionMapper?k.documentPositionMapper:void 0;u.sourceMapFilePath=void 0}else if(u.sourceMapFilePath){u.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(c,n,u.sourceMapFilePath.sourceInfos);return}else if(u.sourceMapFilePath!==void 0)return;let _,f=(k,T)=>{let C=this.getOrCreateScriptInfoNotOpenedByClient(k,n.currentDirectory,this.host,!0);if(_=C||T,!C||C.deferredDelete)return;let O=C.getSnapshot();return C.documentPositionMapper!==void 0?C.documentPositionMapper:BF(O)},y=n.projectName,g=qve({getCanonicalFileName:this.toCanonicalFileName,log:k=>this.logger.info(k),getSourceFileLike:k=>this.getSourceFileLike(k,y,u)},u.fileName,u.textStorage.getLineInfo(),f);return f=void 0,_?Ni(_)?u.sourceMapFilePath={watcher:this.addMissingSourceMapFile(n.currentDirectory===this.currentDirectory?_:za(_,n.currentDirectory),u.path),sourceInfos:this.addSourceInfoToSourceMap(c,n)}:(u.sourceMapFilePath=_.path,_.declarationInfoPath=u.path,_.deferredDelete||(_.documentPositionMapper=g||!1),_.sourceInfos=this.addSourceInfoToSourceMap(c,n,_.sourceInfos)):u.sourceMapFilePath=!1,g}addSourceInfoToSourceMap(n,a,c){if(n){let u=this.getOrCreateScriptInfoNotOpenedByClient(n,a.currentDirectory,a.directoryStructureHost,!1);(c||(c=new Set)).add(u.path)}return c}addMissingSourceMapFile(n,a){return this.watchFactory.watchFile(n,()=>{let u=this.getScriptInfoForPath(a);u&&u.sourceMapFilePath&&!Ni(u.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(u.containingProjects,!0),this.delayUpdateSourceInfoProjects(u.sourceMapFilePath.sourceInfos),u.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,cf.MissingSourceMapFile)}getSourceFileLike(n,a,c){let u=a.projectName?a:this.findProject(a);if(u){let f=u.toPath(n),y=u.getSourceFile(f);if(y&&y.resolvedPath===f)return y}let _=this.getOrCreateScriptInfoNotOpenedByClient(n,(u||this).currentDirectory,u?u.directoryStructureHost:this.host,!1);if(_){if(c&&Ni(c.sourceMapFilePath)&&_!==c){let f=this.getScriptInfoForPath(c.sourceMapFilePath);f&&(f.sourceInfos??(f.sourceInfos=new Set)).add(_.path)}return _.cacheSourceFile?_.cacheSourceFile.sourceFile:(_.sourceFileLike||(_.sourceFileLike={get text(){return $.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:f=>{let y=_.positionToLineOffset(f);return{line:y.line-1,character:y.offset-1}},getPositionOfLineAndCharacter:(f,y,g)=>_.lineOffsetToPosition(f+1,y+1,g)}),_.sourceFileLike)}}setPerformanceEventHandler(n){this.performanceEventHandler=n}setHostConfiguration(n){var a;if(n.file){let c=this.getScriptInfoForNormalizedPath(nu(n.file));c&&(c.setOptions(_M(n.formatOptions),n.preferences),this.logger.info(`Host configuration update for file ${n.file}`))}else{if(n.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=n.hostInfo,this.logger.info(`Host information ${n.hostInfo}`)),n.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,..._M(n.formatOptions)},this.logger.info("Format host information updated")),n.preferences){let{lazyConfiguredProjectsFromExternalProject:c,includePackageJsonAutoImports:u,includeCompletionsForModuleExports:_}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...n.preferences},c&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(f=>f.forEach(y=>{!y.deferredClose&&!y.isClosed()&&y.pendingUpdateLevel===2&&!this.hasPendingProjectUpdate(y)&&y.updateGraph()})),(u!==n.preferences.includePackageJsonAutoImports||!!_!=!!n.preferences.includeCompletionsForModuleExports)&&this.forEachProject(f=>{f.onAutoImportProviderSettingsChanged()})}if(n.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=n.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),n.watchOptions){let c=(a=UQ(n.watchOptions))==null?void 0:a.watchOptions,u=yie(c,this.currentDirectory);this.hostConfiguration.watchOptions=u,this.hostConfiguration.beforeSubstitution=u===c?void 0:c,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`)}}}getWatchOptions(n){return this.getWatchOptionsFromProjectWatchOptions(n.getWatchOptions(),n.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(n,a){let c=this.hostConfiguration.beforeSubstitution?yie(this.hostConfiguration.beforeSubstitution,a):this.hostConfiguration.watchOptions;return n&&c?{...c,...n}:n||c}closeLog(){this.logger.close()}sendSourceFileChange(n){this.filenameToScriptInfo.forEach(a=>{if(this.openFiles.has(a.path)||!a.fileWatcher)return;let c=Ef(()=>this.host.fileExists(a.fileName)?a.deferredDelete?0:1:2);if(n){if(oje(a)||!a.path.startsWith(n)||c()===2&&a.deferredDelete)return;this.logger.info(`Invoking sourceFileChange on ${a.fileName}:: ${c()}`)}this.onSourceFileChanged(a,c())})}reloadProjects(){this.logger.info("reload projects."),this.sendSourceFileChange(void 0),this.pendingProjectUpdates.forEach((c,u)=>{this.throttledOperations.cancel(u),this.pendingProjectUpdates.delete(u)}),this.throttledOperations.cancel(ATt),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(c=>{c.config&&(c.config.updateLevel=2,c.config.cachedDirectoryStructureHost.clearCache())}),this.configFileForOpenFiles.clear(),this.externalProjects.forEach(c=>{this.clearSemanticCache(c),c.updateGraph()});let n=new Map,a=new Set;this.externalProjectToConfiguredProjectMap.forEach((c,u)=>{let _=`Reloading configured project in external project: ${u}`;c.forEach(f=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.reloadConfiguredProjectOptimized(f,_,n):this.reloadConfiguredProjectClearingSemanticCache(f,_,n)})}),this.openFiles.forEach((c,u)=>{let _=this.getScriptInfoForPath(u);wt(_.containingProjects,jQ)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(_,7,n,a)}),a.forEach(c=>n.set(c,7)),this.inferredProjects.forEach(c=>this.clearSemanticCache(c)),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(n,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(n){$.assert(n.containingProjects.length>0);let a=n.containingProjects[0];!a.isOrphan()&&pM(a)&&a.isRoot(n)&&X(n.containingProjects,c=>c!==a&&!c.isOrphan())&&a.removeFile(n,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();let n=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,n?.forEach((a,c)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(c),5)),this.openFiles.forEach((a,c)=>{let u=this.getScriptInfoForPath(c);u.isOrphan()?this.assignOrphanScriptInfoToInferredProject(u,a):this.removeRootOfInferredProjectIfNowPartOfOtherProject(u)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(_1),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(n,a,c,u){return this.openClientFileWithNormalizedPath(nu(n),a,c,!1,u?nu(u):void 0)}getOriginalLocationEnsuringConfiguredProject(n,a){let c=n.isSourceOfProjectReferenceRedirect(a.fileName),u=c?a:n.getSourceMapper().tryGetSourcePosition(a);if(!u)return;let{fileName:_}=u,f=this.getScriptInfo(_);if(!f&&!this.host.fileExists(_))return;let y={fileName:nu(_),path:this.toPath(_)},g=this.getConfigFileNameForFile(y,!1);if(!g)return;let k=this.findConfiguredProjectByProjectName(g);if(!k){if(n.getCompilerOptions().disableReferencedProjectLoad)return c?a:f?.containingProjects.length?u:a;k=this.createConfiguredProject(g,`Creating project for original file: ${y.fileName}${a!==u?" for location: "+a.fileName:""}`)}let T=this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(y,5,nje(k,4),F=>`Creating project referenced in solution ${F.projectName} to find possible configured project for original file: ${y.fileName}${a!==u?" for location: "+a.fileName:""}`);if(!T.defaultProject)return;if(T.defaultProject===n)return u;O(T.defaultProject);let C=this.getScriptInfo(_);if(!C||!C.containingProjects.length)return;return C.containingProjects.forEach(F=>{IE(F)&&O(F)}),u;function O(F){(n.originalConfiguredProjects??(n.originalConfiguredProjects=new Set)).add(F.canonicalConfigFilePath)}}fileExists(n){return!!this.getScriptInfoForNormalizedPath(n)||this.host.fileExists(n)}findExternalProjectContainingOpenScriptInfo(n){return wt(this.externalProjects,a=>(_1(a),a.containsScriptInfo(n)))}getOrCreateOpenScriptInfo(n,a,c,u,_){let f=this.getOrCreateScriptInfoWorker(n,_?this.getNormalizedAbsolutePath(_):this.currentDirectory,!0,a,c,!!u,void 0,!0);return this.openFiles.set(f.path,_),f}assignProjectToOpenedScriptInfo(n){let a,c,u=this.findExternalProjectContainingOpenScriptInfo(n),_,f;if(!u&&this.serverMode===0){let y=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(n,5);y&&(_=y.seenProjects,f=y.sentConfigDiag,y.defaultProject&&(a=y.defaultProject.getConfigFilePath(),c=y.defaultProject.getAllProjectErrors()))}return n.containingProjects.forEach(_1),n.isOrphan()&&(_?.forEach((y,g)=>{y!==4&&!f.has(g)&&this.sendConfigFileDiagEvent(g,n.fileName,!0)}),$.assert(this.openFiles.has(n.path)),this.assignOrphanScriptInfoToInferredProject(n,this.openFiles.get(n.path))),$.assert(!n.isOrphan()),{configFileName:a,configFileErrors:c,retainProjects:_}}findCreateOrReloadConfiguredProject(n,a,c,u,_,f,y,g,k){let T=k??this.findConfiguredProjectByProjectName(n,u),C=!1,O;switch(a){case 0:case 1:case 3:if(!T)return;break;case 2:if(!T)return;O=PSr(T);break;case 4:case 5:T??(T=this.createConfiguredProject(n,c)),y||({sentConfigFileDiag:C,configFileExistenceInfo:O}=nje(T,a,_));break;case 6:if(T??(T=this.createConfiguredProject(n,Zbe(c))),T.projectService.reloadConfiguredProjectOptimized(T,c,f),O=aje(T),O)break;case 7:T??(T=this.createConfiguredProject(n,Zbe(c))),C=!g&&this.reloadConfiguredProjectClearingSemanticCache(T,c,f),g&&!g.has(T)&&!f.has(T)&&(this.setProjectForReload(T,2,c),g.add(T));break;default:$.assertNever(a)}return{project:T,sentConfigFileDiag:C,configFileExistenceInfo:O,reason:c}}tryFindDefaultConfiguredProjectForOpenScriptInfo(n,a,c,u){let _=this.getConfigFileNameForFile(n,a<=3);if(!_)return;let f=OTt(a),y=this.findCreateOrReloadConfiguredProject(_,f,NSr(n),c,n.fileName,u);return y&&this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(n,a,y,g=>`Creating project referenced in solution ${g.projectName} to find possible configured project for ${n.fileName} to open`,c,u)}isMatchedByConfig(n,a,c){if(a.fileNames.some(g=>this.toPath(g)===c.path))return!0;if(Khe(c.fileName,a.options,this.hostConfiguration.extraFileExtensions))return!1;let{validatedFilesSpec:u,validatedIncludeSpecs:_,validatedExcludeSpecs:f}=a.options.configFile.configFileSpecs,y=nu(za(mo(n),this.currentDirectory));return u?.some(g=>this.toPath(za(g,y))===c.path)?!0:!_?.length||xie(c.fileName,f,this.host.useCaseSensitiveFileNames,this.currentDirectory,y)?!1:_?.some(g=>{let k=Vhe(g,y,"files");return!!k&&mE(`(${k})$`,this.host.useCaseSensitiveFileNames).test(c.fileName)})}tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(n,a,c,u,_,f){let y=NTt(n),g=OTt(a),k=new Map,T,C=new Set,O,F,M,U;return J(c),{defaultProject:O??F,tsconfigProject:M??U,sentConfigDiag:C,seenProjects:k,seenConfigs:T};function J(_e){return Q(_e,_e.project)??re(_e.project)??ae(_e.project)}function G(_e,me,le,Oe,be,ue){if(me){if(k.has(me))return;k.set(me,g)}else{if(T?.has(ue))return;(T??(T=new Set)).add(ue)}if(!be.projectService.isMatchedByConfig(le,_e.config.parsedCommandLine,n)){be.languageServiceEnabled&&be.projectService.watchWildcards(le,_e,be);return}let De=me?nje(me,a,n.fileName,Oe,f):be.projectService.findCreateOrReloadConfiguredProject(le,a,Oe,_,n.fileName,f);if(!De){$.assert(a===3);return}return k.set(De.project,g),De.sentConfigFileDiag&&C.add(De.project),Z(De.project,be)}function Z(_e,me){if(k.get(_e)===a)return;k.set(_e,a);let le=y?n:_e.projectService.getScriptInfo(n.fileName),Oe=le&&_e.containsScriptInfo(le);if(Oe&&!_e.isSourceOfProjectReferenceRedirect(le.path))return M=me,O=_e;!F&&y&&Oe&&(U=me,F=_e)}function Q(_e,me){return _e.sentConfigFileDiag&&C.add(_e.project),_e.configFileExistenceInfo?G(_e.configFileExistenceInfo,_e.project,nu(_e.project.getConfigFilePath()),_e.reason,_e.project,_e.project.canonicalConfigFilePath):Z(_e.project,me)}function re(_e){return _e.parsedCommandLine&&RTt(_e,_e.parsedCommandLine,G,g,u(_e),_,f)}function ae(_e){return y?FTt(n,_e,J,g,`Creating possible configured project for ${n.fileName} to open`,_,f,!1):void 0}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(n,a,c,u){let _=a===1,f=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(n,a,_,c);if(!f)return;let{defaultProject:y,tsconfigProject:g,seenProjects:k}=f;return y&&FTt(n,g,T=>{k.set(T.project,a)},a,`Creating project possibly referencing default composite project ${y.getProjectName()} of open file ${n.fileName}`,_,c,!0,u),f}loadAncestorProjectTree(n){n??(n=new Set(Na(this.configuredProjects.entries(),([u,_])=>_.initialLoadPending?void 0:u)));let a=new Set,c=so(this.configuredProjects.values());for(let u of c)LTt(u,_=>n.has(_))&&_1(u),this.ensureProjectChildren(u,n,a)}ensureProjectChildren(n,a,c){var u;if(!Us(c,n.canonicalConfigFilePath)||n.getCompilerOptions().disableReferencedProjectLoad)return;let _=(u=n.getCurrentProgram())==null?void 0:u.getResolvedProjectReferences();if(_)for(let f of _){if(!f)continue;let y=dge(f.references,T=>a.has(T.sourceFile.path)?T:void 0);if(!y)continue;let g=nu(f.sourceFile.fileName),k=this.findConfiguredProjectByProjectName(g)??this.createConfiguredProject(g,`Creating project referenced by : ${n.projectName} as it references project ${y.sourceFile.fileName}`);_1(k),this.ensureProjectChildren(k,a,c)}}cleanupConfiguredProjects(n,a,c){this.getOrphanConfiguredProjects(n,c,a).forEach(u=>this.removeProject(u))}cleanupProjectsAndScriptInfos(n,a,c){this.cleanupConfiguredProjects(n,c,a);for(let u of this.inferredProjects.slice())u.isOrphan()&&this.removeProject(u);this.removeOrphanScriptInfos()}tryInvokeWildCardDirectories(n){this.configFileExistenceInfoCache.forEach((a,c)=>{var u,_;!((u=a.config)!=null&&u.parsedCommandLine)||un(a.config.parsedCommandLine.fileNames,n.fileName,this.host.useCaseSensitiveFileNames?qm:F1)||(_=a.config.watchedDirectories)==null||_.forEach((f,y)=>{ug(y,n.fileName,!this.host.useCaseSensitiveFileNames)&&(this.logger.info(`Invoking ${c}:: wildcard for open scriptInfo:: ${n.fileName}`),this.onWildCardDirectoryWatcherInvoke(y,c,a.config,f.watcher,n.fileName))})})}openClientFileWithNormalizedPath(n,a,c,u,_){let f=this.getScriptInfoForPath(uM(n,_?this.getNormalizedAbsolutePath(_):this.currentDirectory,this.toCanonicalFileName)),y=this.getOrCreateOpenScriptInfo(n,a,c,u,_);!f&&y&&!y.isDynamic&&this.tryInvokeWildCardDirectories(y);let{retainProjects:g,...k}=this.assignProjectToOpenedScriptInfo(y);return this.cleanupProjectsAndScriptInfos(g,new Set([y.path]),void 0),this.telemetryOnOpenFile(y),this.printProjects(),k}getOrphanConfiguredProjects(n,a,c){let u=new Set(this.configuredProjects.values()),_=k=>{k.originalConfiguredProjects&&(IE(k)||!k.isOrphan())&&k.originalConfiguredProjects.forEach((T,C)=>{let O=this.getConfiguredProjectByCanonicalConfigFilePath(C);return O&&g(O)})};if(n?.forEach((k,T)=>g(T)),!u.size||(this.inferredProjects.forEach(_),this.externalProjects.forEach(_),this.externalProjectToConfiguredProjectMap.forEach((k,T)=>{c?.has(T)||k.forEach(g)}),!u.size)||(Ad(this.openFiles,(k,T)=>{if(a?.has(T))return;let C=this.getScriptInfoForPath(T);if(wt(C.containingProjects,jQ))return;let O=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(C,1);if(O?.defaultProject&&(O?.seenProjects.forEach((F,M)=>g(M)),!u.size))return u}),!u.size))return u;return Ad(this.configuredProjects,k=>{if(u.has(k)&&(y(k)||MTt(k,f))&&(g(k),!u.size))return u}),u;function f(k){return!u.has(k)||y(k)}function y(k){var T,C;return(k.deferredClose||k.projectService.hasPendingProjectUpdate(k))&&!!((C=(T=k.projectService.configFileExistenceInfoCache.get(k.canonicalConfigFilePath))==null?void 0:T.openFilesImpactedByConfigFile)!=null&&C.size)}function g(k){u.delete(k)&&(_(k),MTt(k,g))}}removeOrphanScriptInfos(){let n=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(a=>{if(!a.deferredDelete){if(!a.isScriptOpen()&&a.isOrphan()&&!UMe(a)&&!$Me(a)){if(!a.sourceMapFilePath)return;let c;if(Ni(a.sourceMapFilePath)){let u=this.filenameToScriptInfo.get(a.sourceMapFilePath);c=u?.sourceInfos}else c=a.sourceMapFilePath.sourceInfos;if(!c||!Ix(c,u=>{let _=this.getScriptInfoForPath(u);return!!_&&(_.isScriptOpen()||!_.isOrphan())}))return}if(n.delete(a.path),a.sourceMapFilePath){let c;if(Ni(a.sourceMapFilePath)){let u=this.filenameToScriptInfo.get(a.sourceMapFilePath);u?.deferredDelete?a.sourceMapFilePath={watcher:this.addMissingSourceMapFile(u.fileName,a.path),sourceInfos:u.sourceInfos}:n.delete(a.sourceMapFilePath),c=u?.sourceInfos}else c=a.sourceMapFilePath.sourceInfos;c&&c.forEach((u,_)=>n.delete(_))}}}),n.forEach(a=>this.deleteScriptInfo(a))}telemetryOnOpenFile(n){if(this.serverMode!==0||!this.eventHandler||!n.isJavaScript()||!o1(this.allJsFilesForOpenFileTelemetry,n.path))return;let a=this.ensureDefaultProjectForFile(n);if(!a.languageServiceEnabled)return;let c=a.getSourceFile(n.path),u=!!c&&!!c.checkJsDirective;this.eventHandler({eventName:ZMe,data:{info:{checkJs:u}}})}closeClientFile(n,a){let c=this.getScriptInfoForNormalizedPath(nu(n)),u=c?this.closeOpenFile(c,a):!1;return a||this.printProjects(),u}collectChanges(n,a,c,u){for(let _ of a){let f=wt(n,y=>y.projectName===_.getProjectName());u.push(_.getChangesSinceVersion(f&&f.version,c))}}synchronizeProjectList(n,a){let c=[];return this.collectChanges(n,this.externalProjects,a,c),this.collectChanges(n,Na(this.configuredProjects.values(),u=>u.deferredClose?void 0:u),a,c),this.collectChanges(n,this.inferredProjects,a,c),c}applyChangesInOpenFiles(n,a,c){let u,_,f=!1;if(n)for(let g of n){(u??(u=[])).push(this.getScriptInfoForPath(uM(nu(g.fileName),g.projectRootPath?this.getNormalizedAbsolutePath(g.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));let k=this.getOrCreateOpenScriptInfo(nu(g.fileName),g.content,Vbe(g.scriptKind),g.hasMixedContent,g.projectRootPath?nu(g.projectRootPath):void 0);(_||(_=[])).push(k)}if(a)for(let g of a){let k=this.getScriptInfo(g.fileName);$.assert(!!k),this.applyChangesToFile(k,g.changes)}if(c)for(let g of c)f=this.closeClientFile(g,!0)||f;let y;X(u,(g,k)=>!g&&_[k]&&!_[k].isDynamic?this.tryInvokeWildCardDirectories(_[k]):void 0),_?.forEach(g=>{var k;return(k=this.assignProjectToOpenedScriptInfo(g).retainProjects)==null?void 0:k.forEach((T,C)=>(y??(y=new Map)).set(C,T))}),f&&this.assignOrphanScriptInfosToInferredProject(),_?(this.cleanupProjectsAndScriptInfos(y,new Set(_.map(g=>g.path)),void 0),_.forEach(g=>this.telemetryOnOpenFile(g)),this.printProjects()):te(c)&&this.printProjects()}applyChangesToFile(n,a){for(let c of a)n.editContent(c.span.start,c.span.start+c.span.length,c.newText)}closeExternalProject(n,a){let c=nu(n);if(this.externalProjectToConfiguredProjectMap.get(c))this.externalProjectToConfiguredProjectMap.delete(c);else{let _=this.findExternalProjectByProjectName(n);_&&this.removeProject(_)}a&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(n){let a=new Set(this.externalProjects.map(c=>c.getProjectName()));this.externalProjectToConfiguredProjectMap.forEach((c,u)=>a.add(u));for(let c of n)this.openExternalProject(c,!1),a.delete(c.projectFileName);a.forEach(c=>this.closeExternalProject(c,!1)),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(n){return n.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=XMe}applySafeList(n){let a=n.typeAcquisition;$.assert(!!a,"proj.typeAcquisition should be set by now");let c=this.applySafeListWorker(n,n.rootFiles,a);return c?.excludedFiles??[]}applySafeListWorker(n,a,c){if(c.enable===!1||c.disableFilenameBasedTypeAcquisition)return;let u=c.include||(c.include=[]),_=[],f=a.map(C=>Z_(C.fileName));for(let C of Object.keys(this.safelist)){let O=this.safelist[C];for(let F of f)if(O.match.test(F)){if(this.logger.info(`Excluding files based on rule ${C} matching file '${F}'`),O.types)for(let M of O.types)u.includes(M)||u.push(M);if(O.exclude)for(let M of O.exclude){let U=F.replace(O.match,(...J)=>M.map(G=>typeof G=="number"?Ni(J[G])?hct.escapeFilenameForRegex(J[G]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${C} - not enough groups`),"\\*"):G).join(""));_.includes(U)||_.push(U)}else{let M=hct.escapeFilenameForRegex(F);_.includes(M)||_.push(M)}}}let y=_.map(C=>new RegExp(C,"i")),g,k;for(let C=0;CO.test(f[C])))T(C);else{if(c.enable){let O=t_(lb(f[C]));if(Au(O,"js")){let F=Qm(O),M=C9(F),U=this.legacySafelist.get(M);if(U!==void 0){this.logger.info(`Excluded '${f[C]}' because it matched ${M} from the legacy safelist`),T(C),u.includes(U)||u.push(U);continue}}}/^.+[.-]min\.js$/.test(f[C])?T(C):g?.push(a[C])}return k?{rootFiles:g,excludedFiles:k}:void 0;function T(C){k||($.assert(!g),g=a.slice(0,C),k=[]),k.push(f[C])}}openExternalProject(n,a){let c=this.findExternalProjectByProjectName(n.projectFileName),u,_=[];for(let f of n.rootFiles){let y=nu(f.fileName);if(Nbe(y)){if(this.serverMode===0&&this.host.fileExists(y)){let g=this.findConfiguredProjectByProjectName(y);g||(g=this.createConfiguredProject(y,`Creating configured project in external project: ${n.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||g.updateGraph()),(u??(u=new Set)).add(g),$.assert(!g.isClosed())}}else _.push(f)}if(u)this.externalProjectToConfiguredProjectMap.set(n.projectFileName,u),c&&this.removeProject(c);else{this.externalProjectToConfiguredProjectMap.delete(n.projectFileName);let f=n.typeAcquisition||{};f.include=f.include||[],f.exclude=f.exclude||[],f.enable===void 0&&(f.enable=JMe(_.map(k=>k.fileName)));let y=this.applySafeListWorker(n,_,f),g=y?.excludedFiles??[];if(_=y?.rootFiles??_,c){c.excludedFiles=g;let k=nse(n.options),T=UQ(n.options,c.getCurrentDirectory()),C=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(n.projectFileName,k,_,Hbe);C?c.disableLanguageService(C):c.enableLanguageService(),c.setProjectErrors(T?.errors),this.updateRootAndOptionsOfNonInferredProject(c,_,Hbe,k,f,n.options.compileOnSave,T?.watchOptions),c.updateGraph()}else this.createExternalProject(n.projectFileName,_,n.options,f,g).updateGraph()}a&&(this.cleanupConfiguredProjects(u,new Set([n.projectFileName])),this.printProjects())}hasDeferredExtension(){for(let n of this.hostConfiguration.extraFileExtensions)if(n.scriptKind===7)return!0;return!1}requestEnablePlugin(n,a,c){if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info(`Enabling plugin ${a.name} from candidate paths: ${c.join(",")}`),!a.name||vt(a.name)||/[\\/]\.\.?(?:$|[\\/])/.test(a.name)){this.logger.info(`Skipped loading plugin ${a.name||JSON.stringify(a)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){let u=YF.importServicePluginAsync(a,c,this.host,f=>this.logger.info(f));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let _=this.pendingPluginEnablements.get(n);_||this.pendingPluginEnablements.set(n,_=[]),_.push(u);return}this.endEnablePlugin(n,YF.importServicePluginSync(a,c,this.host,u=>this.logger.info(u)))}endEnablePlugin(n,{pluginConfigEntry:a,resolvedModule:c,errorLogs:u}){var _;if(c){let f=(_=this.currentPluginConfigOverrides)==null?void 0:_.get(a.name);if(f){let y=a.name;a=f,a.name=y}n.enableProxy(c,a)}else X(u,f=>this.logger.info(f)),this.logger.info(`Couldn't find ${a.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;let n=so(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(n),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(n){$.assert(this.currentPluginEnablementPromise===void 0);let a=!1;await Promise.all(Cr(n,async([c,u])=>{let _=await Promise.all(u);if(c.isClosed()||$Q(c)){this.logger.info(`Cancelling plugin enabling for ${c.getProjectName()} as it is ${c.isClosed()?"closed":"deferred close"}`);return}a=!0;for(let f of _)this.endEnablePlugin(c,f);this.delayUpdateProjectGraph(c)})),this.currentPluginEnablementPromise=void 0,a&&this.sendProjectsUpdatedInBackgroundEvent()}configurePlugin(n){this.forEachEnabledProject(a=>a.onPluginConfigurationChanged(n.pluginName,n.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(n.pluginName,n.configuration)}getPackageJsonsVisibleToFile(n,a,c){let u=this.packageJsonCache,_=c&&this.toPath(c),f=[],y=g=>{switch(u.directoryHasPackageJson(g)){case 3:return u.searchDirectoryAndAncestors(g,a),y(g);case-1:let k=Xi(g,"package.json");this.watchPackageJsonFile(k,this.toPath(k),a);let T=u.getInDirectory(g);T&&f.push(T)}if(_&&_===g)return!0};return Ab(a,mo(n),y),f}getNearestAncestorDirectoryWithPackageJson(n,a){return Ab(a,n,c=>{switch(this.packageJsonCache.directoryHasPackageJson(c)){case-1:return c;case 0:return;case 3:return this.host.fileExists(Xi(c,"package.json"))?c:void 0}})}watchPackageJsonFile(n,a,c){$.assert(c!==void 0);let u=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(a);if(!u){let _=this.watchFactory.watchFile(n,(f,y)=>{switch(y){case 0:case 1:this.packageJsonCache.addOrUpdate(f,a),this.onPackageJsonChange(u);break;case 2:this.packageJsonCache.delete(a),this.onPackageJsonChange(u),u.projects.clear(),u.close()}},250,this.hostConfiguration.watchOptions,cf.PackageJson);u={projects:new Set,close:()=>{var f;u.projects.size||!_||(_.close(),_=void 0,(f=this.packageJsonFilesMap)==null||f.delete(a),this.packageJsonCache.invalidate(a))}},this.packageJsonFilesMap.set(a,u)}u.projects.add(c),(c.packageJsonWatches??(c.packageJsonWatches=new Set)).add(u)}onPackageJsonChange(n){n.projects.forEach(a=>{var c;return(c=a.onPackageJsonChange)==null?void 0:c.call(a)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=FSr())}};$Tt.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var pje=$Tt;function FSr(){let t;return{get(){return t},set(n){t=n},clear(){t=void 0}}}function _je(t){return t.kind!==void 0}function dje(t){t.print(!1,!1,!1)}function fje(t){let n,a,c,u={get(g,k,T,C){if(!(!a||c!==f(g,T,C)))return a.get(k)},set(g,k,T,C,O,F,M){if(_(g,T,C).set(k,y(O,F,M,void 0,!1)),M){for(let U of F)if(U.isInNodeModules){let J=U.path.substring(0,U.path.indexOf(Jx)+Jx.length-1),G=t.toPath(J);n?.has(G)||(n||(n=new Map)).set(G,t.watchNodeModulesForPackageJsonChanges(J))}}},setModulePaths(g,k,T,C,O){let F=_(g,T,C),M=F.get(k);M?M.modulePaths=O:F.set(k,y(void 0,O,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(g,k,T,C,O,F){let M=_(g,T,C),U=M.get(k);U?(U.isBlockedByPackageJsonDependencies=F,U.packageName=O):M.set(k,y(void 0,void 0,void 0,O,F))},clear(){n?.forEach(W1),a?.clear(),n?.clear(),c=void 0},count(){return a?a.size:0}};return $.isDebugging&&Object.defineProperty(u,"__cache",{get:()=>a}),u;function _(g,k,T){let C=f(g,k,T);return a&&c!==C&&u.clear(),c=C,a||(a=new Map)}function f(g,k,T){return`${g},${k.importModuleSpecifierEnding},${k.importModuleSpecifierPreference},${T.overrideImportMode}`}function y(g,k,T,C,O){return{kind:g,modulePaths:k,moduleSpecifiers:T,packageName:C,isBlockedByPackageJsonDependencies:O}}}function mje(t){let n=new Map,a=new Map;return{addOrUpdate:c,invalidate:u,delete:f=>{n.delete(f),a.set(mo(f),!0)},getInDirectory:f=>n.get(t.toPath(Xi(f,"package.json")))||void 0,directoryHasPackageJson:f=>_(t.toPath(f)),searchDirectoryAndAncestors:(f,y)=>{Ab(y,f,g=>{let k=t.toPath(g);if(_(k)!==3)return!0;let T=Xi(g,"package.json");iq(t,T)?c(T,Xi(k,"package.json")):a.set(k,!0)})}};function c(f,y){let g=$.checkDefined(kve(f,t.host));n.set(y,g),a.delete(mo(y))}function u(f){n.delete(f),a.delete(mo(f))}function _(f){return n.has(Xi(f,"package.json"))?-1:a.has(f)?0:3}}var UTt={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function RSr(t){let n=t[0],a=t[1];return(1e9*n+a)/1e6}function zTt(t,n){if((pM(t)||jQ(t))&&t.isJsOnlyProject()){let a=t.getScriptInfoForNormalizedPath(n);return a&&!a.isJavaScript()}return!1}function LSr(t){return fg(t)||!!t.emitDecoratorMetadata}function qTt(t,n,a){let c=n.getScriptInfoForNormalizedPath(t);return{start:c.positionToLineOffset(a.start),end:c.positionToLineOffset(a.start+a.length),text:RS(a.messageText,` -`),code:a.code,category:NT(a),reportsUnnecessary:a.reportsUnnecessary,reportsDeprecated:a.reportsDeprecated,source:a.source,relatedInformation:Cr(a.relatedInformation,Xbe)}}function Xbe(t){return t.file?{span:{start:dM(qs(t.file,t.start)),end:dM(qs(t.file,t.start+t.length)),file:t.file.fileName},message:RS(t.messageText,` -`),category:NT(t),code:t.code}:{message:RS(t.messageText,` -`),category:NT(t),code:t.code}}function dM(t){return{line:t.line+1,offset:t.character+1}}function zQ(t,n){let a=t.file&&dM(qs(t.file,t.start)),c=t.file&&dM(qs(t.file,t.start+t.length)),u=RS(t.messageText,` -`),{code:_,source:f}=t,y=NT(t),g={start:a,end:c,text:u,code:_,category:y,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated,source:f,relatedInformation:Cr(t.relatedInformation,Xbe)};return n?{...g,fileName:t.file&&t.file.fileName}:g}function MSr(t,n){return t.every(a=>Xn(a.span){this.immediateId=void 0,this.operationHost.executeWithRequestId(a,()=>this.executeAction(n),this.performanceData)},t))}delay(t,n,a){let c=this.requestId;$.assert(c===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(c,()=>this.executeAction(a),this.performanceData)},n,t))}executeAction(t){var n,a,c,u,_,f;let y=!1;try{this.operationHost.isCancellationRequested()?(y=!0,(n=hi)==null||n.instant(hi.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((a=hi)==null||a.push(hi.Phase.Session,"stepAction",{seq:this.requestId}),t(this),(c=hi)==null||c.pop())}catch(g){(u=hi)==null||u.popAll(),y=!0,g instanceof Uk?(_=hi)==null||_.instant(hi.Phase.Session,"stepCanceled",{seq:this.requestId}):((f=hi)==null||f.instant(hi.Phase.Session,"stepError",{seq:this.requestId,message:g.message}),this.operationHost.logError(g,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),(y||!this.hasPendingWork())&&this.complete()}setTimerHandle(t){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=t}setImmediateId(t){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=t}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}};function gje(t,n){return{seq:0,type:"event",event:t,body:n}}function BSr(t,n,a,c){let u=Xr(Zn(a)?a:a.projects,_=>c(_,t));return!Zn(a)&&a.symLinkedProjects&&a.symLinkedProjects.forEach((_,f)=>{let y=n(f);u.push(...an(_,g=>c(g,y)))}),rf(u,Ng)}function Ybe(t){return Qi(({textSpan:n})=>n.start+100003*n.length,_ve(t))}function $Sr(t,n,a,c,u,_,f){let y=yje(t,n,a,VTt(n,a,!0),HTt,(T,C)=>T.getLanguageService().findRenameLocations(C.fileName,C.pos,c,u,_),(T,C)=>C(bq(T)));if(Zn(y))return y;let g=[],k=Ybe(f);return y.forEach((T,C)=>{for(let O of T)!k.has(O)&&!exe(bq(O),C)&&(g.push(O),k.add(O))}),g}function VTt(t,n,a){let c=t.getLanguageService().getDefinitionAtPosition(n.fileName,n.pos,!1,a),u=c&&pi(c);return u&&!u.isLocal?{fileName:u.fileName,pos:u.textSpan.start}:void 0}function USr(t,n,a,c,u){var _,f;let y=yje(t,n,a,VTt(n,a,!1),HTt,(C,O)=>(u.info(`Finding references to ${O.fileName} position ${O.pos} in project ${C.getProjectName()}`),C.getLanguageService().findReferences(O.fileName,O.pos)),(C,O)=>{O(bq(C.definition));for(let F of C.references)O(bq(F))});if(Zn(y))return y;let g=y.get(n);if(((f=(_=g?.[0])==null?void 0:_.references[0])==null?void 0:f.isDefinition)===void 0)y.forEach(C=>{for(let O of C)for(let F of O.references)delete F.isDefinition});else{let C=Ybe(c);for(let F of g)for(let M of F.references)if(M.isDefinition){C.add(M);break}let O=new Set;for(;;){let F=!1;if(y.forEach((M,U)=>{if(O.has(U))return;U.getLanguageService().updateIsDefinitionOfReferencedSymbols(M,C)&&(O.add(U),F=!0)}),!F)break}y.forEach((F,M)=>{if(!O.has(M))for(let U of F)for(let J of U.references)J.isDefinition=!1})}let k=[],T=Ybe(c);return y.forEach((C,O)=>{for(let F of C){let M=exe(bq(F.definition),O),U=M===void 0?F.definition:{...F.definition,textSpan:Jp(M.pos,F.definition.textSpan.length),fileName:M.fileName,contextSpan:qSr(F.definition,O)},J=wt(k,G=>pve(G.definition,U,c));J||(J={definition:U,references:[]},k.push(J));for(let G of F.references)!T.has(G)&&!exe(bq(G),O)&&(T.add(G),J.references.push(G))}}),k.filter(C=>C.references.length!==0)}function WTt(t,n,a){for(let c of Zn(t)?t:t.projects)a(c,n);!Zn(t)&&t.symLinkedProjects&&t.symLinkedProjects.forEach((c,u)=>{for(let _ of c)a(_,u)})}function yje(t,n,a,c,u,_,f){let y=new Map,g=u0();g.enqueue({project:n,location:a}),WTt(t,a.fileName,(U,J)=>{let G={fileName:J,pos:a.pos};g.enqueue({project:U,location:G})});let k=n.projectService,T=n.getCancellationToken(),C=Ef(()=>n.isSourceOfProjectReferenceRedirect(c.fileName)?c:n.getLanguageService().getSourceMapper().tryGetGeneratedPosition(c)),O=Ef(()=>n.isSourceOfProjectReferenceRedirect(c.fileName)?c:n.getLanguageService().getSourceMapper().tryGetSourcePosition(c)),F=new Set;e:for(;!g.isEmpty();){for(;!g.isEmpty();){if(T.isCancellationRequested())break e;let{project:U,location:J}=g.dequeue();if(y.has(U)||KTt(U,J)||(_1(U),!U.containsFile(nu(J.fileName))))continue;let G=M(U,J);y.set(U,G??Pd),F.add(zSr(U))}c&&(k.loadAncestorProjectTree(F),k.forEachEnabledProject(U=>{if(T.isCancellationRequested()||y.has(U))return;let J=u(c,U,C,O);J&&g.enqueue({project:U,location:J})}))}if(y.size===1)return Gu(y.values());return y;function M(U,J){let G=_(U,J);if(!G||!f)return G;for(let Z of G)f(Z,Q=>{let re=k.getOriginalLocationEnsuringConfiguredProject(U,Q);if(!re)return;let ae=k.getScriptInfo(re.fileName);for(let me of ae.containingProjects)!me.isOrphan()&&!y.has(me)&&g.enqueue({project:me,location:re});let _e=k.getSymlinkedProjects(ae);_e&&_e.forEach((me,le)=>{for(let Oe of me)!Oe.isOrphan()&&!y.has(Oe)&&g.enqueue({project:Oe,location:{fileName:le,pos:re.pos}})})});return G}}function GTt(t,n){if(n.containsFile(nu(t.fileName))&&!KTt(n,t))return t}function HTt(t,n,a,c){let u=GTt(t,n);if(u)return u;let _=a();if(_&&n.containsFile(nu(_.fileName)))return _;let f=c();return f&&n.containsFile(nu(f.fileName))?f:void 0}function KTt(t,n){if(!n)return!1;let a=t.getLanguageService().getProgram();if(!a)return!1;let c=a.getSourceFile(n.fileName);return!!c&&c.resolvedPath!==c.path&&c.resolvedPath!==t.toPath(n.fileName)}function zSr(t){return IE(t)?t.canonicalConfigFilePath:t.getProjectName()}function bq({fileName:t,textSpan:n}){return{fileName:t,pos:n.start}}function exe(t,n){return Xz(t,n.getSourceMapper(),a=>n.projectService.fileExists(a))}function QTt(t,n){return Koe(t,n.getSourceMapper(),a=>n.projectService.fileExists(a))}function qSr(t,n){return fve(t,n.getSourceMapper(),a=>n.projectService.fileExists(a))}var ZTt=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","getPasteEdits","copilotRelated"],JSr=[...ZTt,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full","preparePasteEdits"],XTt=class yPe{constructor(n){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{let _={version:L};return this.requiredResponse(_)},openExternalProject:_=>(this.projectService.openExternalProject(_.arguments,!0),this.requiredResponse(!0)),openExternalProjects:_=>(this.projectService.openExternalProjects(_.arguments.projects),this.requiredResponse(!0)),closeExternalProject:_=>(this.projectService.closeExternalProject(_.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:_=>{let f=this.projectService.synchronizeProjectList(_.arguments.knownProjects,_.arguments.includeProjectReferenceRedirectInfo);if(!f.some(g=>g.projectErrors&&g.projectErrors.length!==0))return this.requiredResponse(f);let y=Cr(f,g=>!g.projectErrors||g.projectErrors.length===0?g:{info:g.info,changes:g.changes,files:g.files,projectErrors:this.convertToDiagnosticsWithLinePosition(g.projectErrors,void 0)});return this.requiredResponse(y)},updateOpen:_=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(_.arguments.openFiles&&ol(_.arguments.openFiles,f=>({fileName:f.file,content:f.fileContent,scriptKind:f.scriptKindName,projectRootPath:f.projectRootPath})),_.arguments.changedFiles&&ol(_.arguments.changedFiles,f=>({fileName:f.fileName,changes:Na(Tf(f.textChanges),y=>{let g=$.checkDefined(this.projectService.getScriptInfo(f.fileName)),k=g.lineOffsetToPosition(y.start.line,y.start.offset),T=g.lineOffsetToPosition(y.end.line,y.end.offset);return k>=0?{span:{start:k,length:T-k},newText:y.newText}:void 0})})),_.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:_=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(_.arguments.openFiles,_.arguments.changedFiles&&ol(_.arguments.changedFiles,f=>({fileName:f.fileName,changes:Tf(f.changes)})),_.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired(void 0)),definition:_=>this.requiredResponse(this.getDefinition(_.arguments,!0)),"definition-full":_=>this.requiredResponse(this.getDefinition(_.arguments,!1)),definitionAndBoundSpan:_=>this.requiredResponse(this.getDefinitionAndBoundSpan(_.arguments,!0)),"definitionAndBoundSpan-full":_=>this.requiredResponse(this.getDefinitionAndBoundSpan(_.arguments,!1)),findSourceDefinition:_=>this.requiredResponse(this.findSourceDefinition(_.arguments)),"emit-output":_=>this.requiredResponse(this.getEmitOutput(_.arguments)),typeDefinition:_=>this.requiredResponse(this.getTypeDefinition(_.arguments)),implementation:_=>this.requiredResponse(this.getImplementation(_.arguments,!0)),"implementation-full":_=>this.requiredResponse(this.getImplementation(_.arguments,!1)),references:_=>this.requiredResponse(this.getReferences(_.arguments,!0)),"references-full":_=>this.requiredResponse(this.getReferences(_.arguments,!1)),rename:_=>this.requiredResponse(this.getRenameLocations(_.arguments,!0)),"renameLocations-full":_=>this.requiredResponse(this.getRenameLocations(_.arguments,!1)),"rename-full":_=>this.requiredResponse(this.getRenameInfo(_.arguments)),open:_=>(this.openClientFile(nu(_.arguments.file),_.arguments.fileContent,Wbe(_.arguments.scriptKindName),_.arguments.projectRootPath?nu(_.arguments.projectRootPath):void 0),this.notRequired(_)),quickinfo:_=>this.requiredResponse(this.getQuickInfoWorker(_.arguments,!0)),"quickinfo-full":_=>this.requiredResponse(this.getQuickInfoWorker(_.arguments,!1)),getOutliningSpans:_=>this.requiredResponse(this.getOutliningSpans(_.arguments,!0)),outliningSpans:_=>this.requiredResponse(this.getOutliningSpans(_.arguments,!1)),todoComments:_=>this.requiredResponse(this.getTodoComments(_.arguments)),indentation:_=>this.requiredResponse(this.getIndentation(_.arguments)),nameOrDottedNameSpan:_=>this.requiredResponse(this.getNameOrDottedNameSpan(_.arguments)),breakpointStatement:_=>this.requiredResponse(this.getBreakpointStatement(_.arguments)),braceCompletion:_=>this.requiredResponse(this.isValidBraceCompletion(_.arguments)),docCommentTemplate:_=>this.requiredResponse(this.getDocCommentTemplate(_.arguments)),getSpanOfEnclosingComment:_=>this.requiredResponse(this.getSpanOfEnclosingComment(_.arguments)),fileReferences:_=>this.requiredResponse(this.getFileReferences(_.arguments,!0)),"fileReferences-full":_=>this.requiredResponse(this.getFileReferences(_.arguments,!1)),format:_=>this.requiredResponse(this.getFormattingEditsForRange(_.arguments)),formatonkey:_=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(_.arguments)),"format-full":_=>this.requiredResponse(this.getFormattingEditsForDocumentFull(_.arguments)),"formatonkey-full":_=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(_.arguments)),"formatRange-full":_=>this.requiredResponse(this.getFormattingEditsForRangeFull(_.arguments)),completionInfo:_=>this.requiredResponse(this.getCompletions(_.arguments,"completionInfo")),completions:_=>this.requiredResponse(this.getCompletions(_.arguments,"completions")),"completions-full":_=>this.requiredResponse(this.getCompletions(_.arguments,"completions-full")),completionEntryDetails:_=>this.requiredResponse(this.getCompletionEntryDetails(_.arguments,!1)),"completionEntryDetails-full":_=>this.requiredResponse(this.getCompletionEntryDetails(_.arguments,!0)),compileOnSaveAffectedFileList:_=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(_.arguments)),compileOnSaveEmitFile:_=>this.requiredResponse(this.emitFile(_.arguments)),signatureHelp:_=>this.requiredResponse(this.getSignatureHelpItems(_.arguments,!0)),"signatureHelp-full":_=>this.requiredResponse(this.getSignatureHelpItems(_.arguments,!1)),"compilerOptionsDiagnostics-full":_=>this.requiredResponse(this.getCompilerOptionsDiagnostics(_.arguments)),"encodedSyntacticClassifications-full":_=>this.requiredResponse(this.getEncodedSyntacticClassifications(_.arguments)),"encodedSemanticClassifications-full":_=>this.requiredResponse(this.getEncodedSemanticClassifications(_.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:_=>this.requiredResponse(this.getSemanticDiagnosticsSync(_.arguments)),syntacticDiagnosticsSync:_=>this.requiredResponse(this.getSyntacticDiagnosticsSync(_.arguments)),suggestionDiagnosticsSync:_=>this.requiredResponse(this.getSuggestionDiagnosticsSync(_.arguments)),geterr:_=>(this.errorCheck.startNew(f=>this.getDiagnostics(f,_.arguments.delay,_.arguments.files)),this.notRequired(void 0)),geterrForProject:_=>(this.errorCheck.startNew(f=>this.getDiagnosticsForProject(f,_.arguments.delay,_.arguments.file)),this.notRequired(void 0)),change:_=>(this.change(_.arguments),this.notRequired(_)),configure:_=>(this.projectService.setHostConfiguration(_.arguments),this.notRequired(_)),reload:_=>(this.reload(_.arguments),this.requiredResponse({reloadFinished:!0})),saveto:_=>{let f=_.arguments;return this.saveToTmp(f.file,f.tmpfile),this.notRequired(_)},close:_=>{let f=_.arguments;return this.closeClientFile(f.file),this.notRequired(_)},navto:_=>this.requiredResponse(this.getNavigateToItems(_.arguments,!0)),"navto-full":_=>this.requiredResponse(this.getNavigateToItems(_.arguments,!1)),brace:_=>this.requiredResponse(this.getBraceMatching(_.arguments,!0)),"brace-full":_=>this.requiredResponse(this.getBraceMatching(_.arguments,!1)),navbar:_=>this.requiredResponse(this.getNavigationBarItems(_.arguments,!0)),"navbar-full":_=>this.requiredResponse(this.getNavigationBarItems(_.arguments,!1)),navtree:_=>this.requiredResponse(this.getNavigationTree(_.arguments,!0)),"navtree-full":_=>this.requiredResponse(this.getNavigationTree(_.arguments,!1)),documentHighlights:_=>this.requiredResponse(this.getDocumentHighlights(_.arguments,!0)),"documentHighlights-full":_=>this.requiredResponse(this.getDocumentHighlights(_.arguments,!1)),compilerOptionsForInferredProjects:_=>(this.setCompilerOptionsForInferredProjects(_.arguments),this.requiredResponse(!0)),projectInfo:_=>this.requiredResponse(this.getProjectInfo(_.arguments)),reloadProjects:_=>(this.projectService.reloadProjects(),this.notRequired(_)),jsxClosingTag:_=>this.requiredResponse(this.getJsxClosingTag(_.arguments)),linkedEditingRange:_=>this.requiredResponse(this.getLinkedEditingRange(_.arguments)),getCodeFixes:_=>this.requiredResponse(this.getCodeFixes(_.arguments,!0)),"getCodeFixes-full":_=>this.requiredResponse(this.getCodeFixes(_.arguments,!1)),getCombinedCodeFix:_=>this.requiredResponse(this.getCombinedCodeFix(_.arguments,!0)),"getCombinedCodeFix-full":_=>this.requiredResponse(this.getCombinedCodeFix(_.arguments,!1)),applyCodeActionCommand:_=>this.requiredResponse(this.applyCodeActionCommand(_.arguments)),getSupportedCodeFixes:_=>this.requiredResponse(this.getSupportedCodeFixes(_.arguments)),getApplicableRefactors:_=>this.requiredResponse(this.getApplicableRefactors(_.arguments)),getEditsForRefactor:_=>this.requiredResponse(this.getEditsForRefactor(_.arguments,!0)),getMoveToRefactoringFileSuggestions:_=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(_.arguments)),preparePasteEdits:_=>this.requiredResponse(this.preparePasteEdits(_.arguments)),getPasteEdits:_=>this.requiredResponse(this.getPasteEdits(_.arguments)),"getEditsForRefactor-full":_=>this.requiredResponse(this.getEditsForRefactor(_.arguments,!1)),organizeImports:_=>this.requiredResponse(this.organizeImports(_.arguments,!0)),"organizeImports-full":_=>this.requiredResponse(this.organizeImports(_.arguments,!1)),getEditsForFileRename:_=>this.requiredResponse(this.getEditsForFileRename(_.arguments,!0)),"getEditsForFileRename-full":_=>this.requiredResponse(this.getEditsForFileRename(_.arguments,!1)),configurePlugin:_=>(this.configurePlugin(_.arguments),this.notRequired(_)),selectionRange:_=>this.requiredResponse(this.getSmartSelectionRange(_.arguments,!0)),"selectionRange-full":_=>this.requiredResponse(this.getSmartSelectionRange(_.arguments,!1)),prepareCallHierarchy:_=>this.requiredResponse(this.prepareCallHierarchy(_.arguments)),provideCallHierarchyIncomingCalls:_=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(_.arguments)),provideCallHierarchyOutgoingCalls:_=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(_.arguments)),toggleLineComment:_=>this.requiredResponse(this.toggleLineComment(_.arguments,!0)),"toggleLineComment-full":_=>this.requiredResponse(this.toggleLineComment(_.arguments,!1)),toggleMultilineComment:_=>this.requiredResponse(this.toggleMultilineComment(_.arguments,!0)),"toggleMultilineComment-full":_=>this.requiredResponse(this.toggleMultilineComment(_.arguments,!1)),commentSelection:_=>this.requiredResponse(this.commentSelection(_.arguments,!0)),"commentSelection-full":_=>this.requiredResponse(this.commentSelection(_.arguments,!1)),uncommentSelection:_=>this.requiredResponse(this.uncommentSelection(_.arguments,!0)),"uncommentSelection-full":_=>this.requiredResponse(this.uncommentSelection(_.arguments,!1)),provideInlayHints:_=>this.requiredResponse(this.provideInlayHints(_.arguments)),mapCode:_=>this.requiredResponse(this.mapCode(_.arguments)),copilotRelated:()=>this.requiredResponse(this.getCopilotRelatedInfo())})),this.host=n.host,this.cancellationToken=n.cancellationToken,this.typingsInstaller=n.typingsInstaller||ise,this.byteLength=n.byteLength,this.hrtime=n.hrtime,this.logger=n.logger,this.canUseEvents=n.canUseEvents,this.suppressDiagnosticEvents=n.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=n.noGetErrOnBackgroundUpdate;let{throttleWaitMilliseconds:a}=n;this.eventHandler=this.canUseEvents?n.eventHandler||(_=>this.defaultEventHandler(_)):void 0;let c={executeWithRequestId:(_,f,y)=>this.executeWithRequestId(_,f,y),getCurrentRequestId:()=>this.currentRequestId,getPerformanceData:()=>this.performanceData,getServerHost:()=>this.host,logError:(_,f)=>this.logError(_,f),sendRequestCompletedEvent:(_,f)=>this.sendRequestCompletedEvent(_,f),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new jSr(c);let u={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:n.useSingleInferredProject,useInferredProjectPerProjectRoot:n.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:a,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:n.globalPlugins,pluginProbeLocations:n.pluginProbeLocations,allowLocalPluginLoads:n.allowLocalPluginLoads,typesMapLocation:n.typesMapLocation,serverMode:n.serverMode,session:this,canUseWatchEvents:n.canUseWatchEvents,incrementalVerifier:n.incrementalVerifier};switch(this.projectService=new pje(u),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new RMe(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:ZTt.forEach(_=>this.handlers.set(_,f=>{throw new Error(`Request: ${f.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:JSr.forEach(_=>this.handlers.set(_,f=>{throw new Error(`Request: ${f.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:$.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(n,a){this.event({request_seq:n,performanceData:a&&YTt(a)},"requestCompleted")}addPerformanceData(n,a){this.performanceData||(this.performanceData={}),this.performanceData[n]=(this.performanceData[n]??0)+a}addDiagnosticsPerformanceData(n,a,c){var u,_;this.performanceData||(this.performanceData={});let f=(u=this.performanceData.diagnosticsDuration)==null?void 0:u.get(n);f||((_=this.performanceData).diagnosticsDuration??(_.diagnosticsDuration=new Map)).set(n,f={}),f[a]=c}performanceEventHandler(n){switch(n.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",n.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",n.durationMs);break}}defaultEventHandler(n){switch(n.eventName){case rse:this.projectsUpdatedInBackgroundEvent(n.data.openFiles);break;case Lbe:this.event({projectName:n.data.project.getProjectName(),reason:n.data.reason},n.eventName);break;case Mbe:this.event({projectName:n.data.project.getProjectName()},n.eventName);break;case jbe:case zbe:case qbe:case Jbe:this.event(n.data,n.eventName);break;case Bbe:this.event({triggerFile:n.data.triggerFile,configFile:n.data.configFileName,diagnostics:Cr(n.data.diagnostics,a=>zQ(a,!0))},n.eventName);break;case $be:{this.event({projectName:n.data.project.getProjectName(),languageServiceEnabled:n.data.languageServiceEnabled},n.eventName);break}case Ube:{this.event({telemetryEventName:n.eventName,payload:n.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(n){this.projectService.logger.info(`got projects updated in background ${n}`),n.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${n}`),this.errorCheck.startNew(a=>this.updateErrorCheck(a,n,100,!0))),this.event({openFiles:n},rse))}logError(n,a){this.logErrorWorker(n,a)}logErrorWorker(n,a,c){let u="Exception on executing command "+a;if(n.message&&(u+=`: -`+Vz(n.message),n.stack&&(u+=` -`+Vz(n.stack))),this.logger.hasLevel(3)){if(c)try{let{file:_,project:f}=this.getFileAndProject(c),y=f.getScriptInfoForNormalizedPath(_);if(y){let g=BF(y.getSnapshot());u+=` - -File text of ${c.file}:${Vz(g)} -`}}catch{}if(n.ProgramFiles){u+=` - -Program files: ${JSON.stringify(n.ProgramFiles)} -`,u+=` - -Projects:: -`;let _=0,f=y=>{u+=` -Project '${y.projectName}' (${Sq[y.projectKind]}) ${_} -`,u+=y.filesToString(!0),u+=` ------------------------------------------------ -`,_++};this.projectService.externalProjects.forEach(f),this.projectService.configuredProjects.forEach(f),this.projectService.inferredProjects.forEach(f)}}this.logger.msg(u,"Err")}send(n){if(n.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${jA(n)}`);return}this.writeMessage(n)}writeMessage(n){let a=hje(n,this.logger,this.byteLength,this.host.newLine);this.host.write(a)}event(n,a){this.send(gje(a,n))}doOutput(n,a,c,u,_,f){let y={seq:0,type:"response",command:a,request_seq:c,success:u,performanceData:_&&YTt(_)};if(u){let g;if(Zn(n))y.body=n,g=n.metadata,delete n.metadata;else if(typeof n=="object")if(n.metadata){let{metadata:k,...T}=n;y.body=T,g=k}else y.body=n;else y.body=n;g&&(y.metadata=g)}else $.assert(n===void 0);f&&(y.message=f),this.send(y)}semanticCheck(n,a){var c,u;let _=Ml();(c=hi)==null||c.push(hi.Phase.Session,"semanticCheck",{file:n,configFilePath:a.canonicalConfigFilePath});let f=zTt(a,n)?Pd:a.getLanguageService().getSemanticDiagnostics(n).filter(y=>!!y.file);this.sendDiagnosticsEvent(n,a,f,"semanticDiag",_),(u=hi)==null||u.pop()}syntacticCheck(n,a){var c,u;let _=Ml();(c=hi)==null||c.push(hi.Phase.Session,"syntacticCheck",{file:n,configFilePath:a.canonicalConfigFilePath}),this.sendDiagnosticsEvent(n,a,a.getLanguageService().getSyntacticDiagnostics(n),"syntaxDiag",_),(u=hi)==null||u.pop()}suggestionCheck(n,a){var c,u;let _=Ml();(c=hi)==null||c.push(hi.Phase.Session,"suggestionCheck",{file:n,configFilePath:a.canonicalConfigFilePath}),this.sendDiagnosticsEvent(n,a,a.getLanguageService().getSuggestionDiagnostics(n),"suggestionDiag",_),(u=hi)==null||u.pop()}regionSemanticCheck(n,a,c){var u,_,f;let y=Ml();(u=hi)==null||u.push(hi.Phase.Session,"regionSemanticCheck",{file:n,configFilePath:a.canonicalConfigFilePath});let g;if(!this.shouldDoRegionCheck(n)||!(g=a.getLanguageService().getRegionSemanticDiagnostics(n,c))){(_=hi)==null||_.pop();return}this.sendDiagnosticsEvent(n,a,g.diagnostics,"regionSemanticDiag",y,g.spans),(f=hi)==null||f.pop()}shouldDoRegionCheck(n){var a;let c=(a=this.projectService.getScriptInfoForNormalizedPath(n))==null?void 0:a.textStorage.getLineInfo().getLineCount();return!!(c&&c>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(n,a,c,u,_,f){try{let y=$.checkDefined(a.getScriptInfo(n)),g=Ml()-_,k={file:n,diagnostics:c.map(T=>qTt(n,a,T)),spans:f?.map(T=>$S(T,y))};this.event(k,u),this.addDiagnosticsPerformanceData(n,u,g)}catch(y){this.logError(y,u)}}updateErrorCheck(n,a,c,u=!0){if(a.length===0)return;$.assert(!this.suppressDiagnosticEvents);let _=this.changeSeq,f=Math.min(c,200),y=0,g=()=>{if(y++,a.length>y)return n.delay("checkOne",f,T)},k=(C,O)=>{if(this.semanticCheck(C,O),this.changeSeq===_){if(this.getPreferences(C).disableSuggestions)return g();n.immediate("suggestionCheck",()=>{this.suggestionCheck(C,O),g()})}},T=()=>{if(this.changeSeq!==_)return;let C,O=a[y];if(Ni(O)?O=this.toPendingErrorCheck(O):"ranges"in O&&(C=O.ranges,O=this.toPendingErrorCheck(O.file)),!O)return g();let{fileName:F,project:M}=O;if(_1(M),!!M.containsFile(F,u)&&(this.syntacticCheck(F,M),this.changeSeq===_)){if(M.projectService.serverMode!==0)return g();if(C)return n.immediate("regionSemanticCheck",()=>{let U=this.projectService.getScriptInfoForNormalizedPath(F);U&&this.regionSemanticCheck(F,M,C.map(J=>this.getRange({file:F,...J},U))),this.changeSeq===_&&n.immediate("semanticCheck",()=>k(F,M))});n.immediate("semanticCheck",()=>k(F,M))}};a.length>y&&this.changeSeq===_&&n.delay("checkOne",c,T)}cleanProjects(n,a){if(a){this.logger.info(`cleaning ${n}`);for(let c of a)c.getLanguageService(!1).cleanupSemanticCache(),c.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",so(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n);return c.getEncodedSyntacticClassifications(a,n)}getEncodedSemanticClassifications(n){let{file:a,project:c}=this.getFileAndProject(n),u=n.format==="2020"?"2020":"original";return c.getLanguageService().getEncodedSemanticClassifications(a,n,u)}getProject(n){return n===void 0?void 0:this.projectService.findProject(n)}getConfigFileAndProject(n){let a=this.getProject(n.projectFileName),c=nu(n.file);return{configFile:a&&a.hasConfigFile(c)?c:void 0,project:a}}getConfigFileDiagnostics(n,a,c){let u=a.getAllProjectErrors(),_=a.getLanguageService().getCompilerOptionsDiagnostics(),f=yr(go(u,_),y=>!!y.file&&y.file.fileName===n);return c?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(f):Cr(f,y=>zQ(y,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(n){return n.map(a=>({message:RS(a.messageText,this.host.newLine),start:a.start,length:a.length,category:NT(a),code:a.code,source:a.source,startLocation:a.file&&dM(qs(a.file,a.start)),endLocation:a.file&&dM(qs(a.file,a.start+a.length)),reportsUnnecessary:a.reportsUnnecessary,reportsDeprecated:a.reportsDeprecated,relatedInformation:Cr(a.relatedInformation,Xbe)}))}getCompilerOptionsDiagnostics(n){let a=this.getProject(n.projectFileName);return this.convertToDiagnosticsWithLinePosition(yr(a.getLanguageService().getCompilerOptionsDiagnostics(),c=>!c.file),void 0)}convertToDiagnosticsWithLinePosition(n,a){return n.map(c=>({message:RS(c.messageText,this.host.newLine),start:c.start,length:c.length,category:NT(c),code:c.code,source:c.source,startLocation:a&&a.positionToLineOffset(c.start),endLocation:a&&a.positionToLineOffset(c.start+c.length),reportsUnnecessary:c.reportsUnnecessary,reportsDeprecated:c.reportsDeprecated,relatedInformation:Cr(c.relatedInformation,Xbe)}))}getDiagnosticsWorker(n,a,c,u){let{project:_,file:f}=this.getFileAndProject(n);if(a&&zTt(_,f))return Pd;let y=_.getScriptInfoForNormalizedPath(f),g=c(_,f);return u?this.convertToDiagnosticsWithLinePosition(g,y):g.map(k=>qTt(f,_,k))}getDefinition(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=this.getPositionInFile(n,c),f=this.mapDefinitionInfoLocations(u.getLanguageService().getDefinitionAtPosition(c,_)||Pd,u);return a?this.mapDefinitionInfo(f,u):f.map(yPe.mapToOriginalLocation)}mapDefinitionInfoLocations(n,a){return n.map(c=>{let u=QTt(c,a);return u?{...u,containerKind:c.containerKind,containerName:c.containerName,kind:c.kind,name:c.name,failedAliasResolution:c.failedAliasResolution,...c.unverified&&{unverified:c.unverified}}:c})}getDefinitionAndBoundSpan(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=this.getPositionInFile(n,c),f=$.checkDefined(u.getScriptInfo(c)),y=u.getLanguageService().getDefinitionAndBoundSpan(c,_);if(!y||!y.definitions)return{definitions:Pd,textSpan:void 0};let g=this.mapDefinitionInfoLocations(y.definitions,u),{textSpan:k}=y;return a?{definitions:this.mapDefinitionInfo(g,u),textSpan:$S(k,f)}:{definitions:g.map(yPe.mapToOriginalLocation),textSpan:k}}findSourceDefinition(n){var a;let{file:c,project:u}=this.getFileAndProject(n),_=this.getPositionInFile(n,c),f=u.getLanguageService().getDefinitionAtPosition(c,_),y=this.mapDefinitionInfoLocations(f||Pd,u).slice();if(this.projectService.serverMode===0&&(!Pt(y,F=>nu(F.fileName)!==c&&!F.isAmbient)||Pt(y,F=>!!F.failedAliasResolution))){let F=Qi(G=>G.textSpan.start,_ve(this.host.useCaseSensitiveFileNames));y?.forEach(G=>F.add(G));let M=u.getNoDtsResolutionProject(c),U=M.getLanguageService(),J=(a=U.getDefinitionAtPosition(c,_,!0,!1))==null?void 0:a.filter(G=>nu(G.fileName)!==c);if(Pt(J))for(let G of J){if(G.unverified){let Z=C(G,u.getLanguageService().getProgram(),U.getProgram());if(Pt(Z)){for(let Q of Z)F.add(Q);continue}}F.add(G)}else{let G=y.filter(Z=>nu(Z.fileName)!==c&&Z.isAmbient);for(let Z of Pt(G)?G:T()){let Q=k(Z.fileName,c,M);if(!Q)continue;let re=this.projectService.getOrCreateScriptInfoNotOpenedByClient(Q,M.currentDirectory,M.directoryStructureHost,!1);if(!re)continue;M.containsScriptInfo(re)||(M.addRoot(re),M.updateGraph());let ae=U.getProgram(),_e=$.checkDefined(ae.getSourceFile(Q));for(let me of O(Z.name,_e,ae))F.add(me)}}y=so(F.values())}return y=y.filter(F=>!F.isAmbient&&!F.failedAliasResolution),this.mapDefinitionInfo(y,u);function k(F,M,U){var J,G,Z;let Q=Tne(F);if(Q&&F.lastIndexOf(Jx)===Q.topLevelNodeModulesIndex){let re=F.substring(0,Q.packageRootIndex),ae=(J=u.getModuleResolutionCache())==null?void 0:J.getPackageJsonInfoCache(),_e=u.getCompilationSettings(),me=Cz(za(re,u.getCurrentDirectory()),kz(ae,u,_e));if(!me)return;let le=Fye(me,{moduleResolution:2},u,u.getModuleResolutionCache()),Oe=F.substring(Q.topLevelPackageNameIndex+1,Q.packageRootIndex),be=Dz(pK(Oe)),ue=u.toPath(F);if(le&&Pt(le,De=>u.toPath(De)===ue))return(G=U.resolutionCache.resolveSingleModuleNameWithoutWatching(be,M).resolvedModule)==null?void 0:G.resolvedFileName;{let De=F.substring(Q.packageRootIndex+1),Ce=`${be}/${Qm(De)}`;return(Z=U.resolutionCache.resolveSingleModuleNameWithoutWatching(Ce,M).resolvedModule)==null?void 0:Z.resolvedFileName}}}function T(){let F=u.getLanguageService(),M=F.getProgram(),U=Vh(M.getSourceFile(c),_);return(Sl(U)||ct(U))&&wu(U.parent)&&b4e(U,J=>{var G;if(J===U)return;let Z=(G=F.getDefinitionAtPosition(c,J.getStart(),!0,!1))==null?void 0:G.filter(Q=>nu(Q.fileName)!==c&&Q.isAmbient).map(Q=>({fileName:Q.fileName,name:g0(U)}));if(Pt(Z))return Z})||Pd}function C(F,M,U){var J;let G=U.getSourceFile(F.fileName);if(!G)return;let Z=Vh(M.getSourceFile(c),_),Q=M.getTypeChecker().getSymbolAtLocation(Z),re=Q&&Qu(Q,277);if(!re)return;let ae=((J=re.propertyName)==null?void 0:J.text)||re.name.text;return O(ae,G,U)}function O(F,M,U){let J=Pu.Core.getTopMostDeclarationNamesInFile(F,M);return Wn(J,G=>{let Z=U.getTypeChecker().getSymbolAtLocation(G),Q=TU(G);if(Z&&Q)return cM.createDefinitionInfo(Q,U.getTypeChecker(),Z,Q,!0)})}}getEmitOutput(n){let{file:a,project:c}=this.getFileAndProject(n);if(!c.shouldEmitFile(c.getScriptInfo(a)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let u=c.getLanguageService().getEmitOutput(a);return n.richResponse?{...u,diagnostics:n.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(u.diagnostics):u.diagnostics.map(_=>zQ(_,!0))}:u}mapJSDocTagInfo(n,a,c){return n?n.map(u=>{var _;return{...u,text:c?this.mapDisplayParts(u.text,a):(_=u.text)==null?void 0:_.map(f=>f.text).join("")}}):[]}mapDisplayParts(n,a){return n?n.map(c=>c.kind!=="linkName"?c:{...c,target:this.toFileSpan(c.target.fileName,c.target.textSpan,a)}):[]}mapSignatureHelpItems(n,a,c){return n.map(u=>({...u,documentation:this.mapDisplayParts(u.documentation,a),parameters:u.parameters.map(_=>({..._,documentation:this.mapDisplayParts(_.documentation,a)})),tags:this.mapJSDocTagInfo(u.tags,a,c)}))}mapDefinitionInfo(n,a){return n.map(c=>({...this.toFileSpanWithContext(c.fileName,c.textSpan,c.contextSpan,a),...c.unverified&&{unverified:c.unverified}}))}static mapToOriginalLocation(n){return n.originalFileName?($.assert(n.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...n,fileName:n.originalFileName,textSpan:n.originalTextSpan,targetFileName:n.fileName,targetTextSpan:n.textSpan,contextSpan:n.originalContextSpan,targetContextSpan:n.contextSpan}):n}toFileSpan(n,a,c){let u=c.getLanguageService(),_=u.toLineColumnOffset(n,a.start),f=u.toLineColumnOffset(n,Xn(a));return{file:n,start:{line:_.line+1,offset:_.character+1},end:{line:f.line+1,offset:f.character+1}}}toFileSpanWithContext(n,a,c,u){let _=this.toFileSpan(n,a,u),f=c&&this.toFileSpan(n,c,u);return f?{..._,contextStart:f.start,contextEnd:f.end}:_}getTypeDefinition(n){let{file:a,project:c}=this.getFileAndProject(n),u=this.getPositionInFile(n,a),_=this.mapDefinitionInfoLocations(c.getLanguageService().getTypeDefinitionAtPosition(a,u)||Pd,c);return this.mapDefinitionInfo(_,c)}mapImplementationLocations(n,a){return n.map(c=>{let u=QTt(c,a);return u?{...u,kind:c.kind,displayParts:c.displayParts}:c})}getImplementation(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=this.getPositionInFile(n,c),f=this.mapImplementationLocations(u.getLanguageService().getImplementationAtPosition(c,_)||Pd,u);return a?f.map(({fileName:y,textSpan:g,contextSpan:k})=>this.toFileSpanWithContext(y,g,k,u)):f.map(yPe.mapToOriginalLocation)}getSyntacticDiagnosticsSync(n){let{configFile:a}=this.getConfigFileAndProject(n);return a?Pd:this.getDiagnosticsWorker(n,!1,(c,u)=>c.getLanguageService().getSyntacticDiagnostics(u),!!n.includeLinePosition)}getSemanticDiagnosticsSync(n){let{configFile:a,project:c}=this.getConfigFileAndProject(n);return a?this.getConfigFileDiagnostics(a,c,!!n.includeLinePosition):this.getDiagnosticsWorker(n,!0,(u,_)=>u.getLanguageService().getSemanticDiagnostics(_).filter(f=>!!f.file),!!n.includeLinePosition)}getSuggestionDiagnosticsSync(n){let{configFile:a}=this.getConfigFileAndProject(n);return a?Pd:this.getDiagnosticsWorker(n,!0,(c,u)=>c.getLanguageService().getSuggestionDiagnostics(u),!!n.includeLinePosition)}getJsxClosingTag(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,a),_=c.getJsxClosingTagAtPosition(a,u);return _===void 0?void 0:{newText:_.newText,caretOffset:0}}getLinkedEditingRange(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,a),_=c.getLinkedEditingRangeAtPosition(a,u),f=this.projectService.getScriptInfoForNormalizedPath(a);if(!(f===void 0||_===void 0))return WSr(_,f)}getDocumentHighlights(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=this.getPositionInFile(n,c),f=u.getLanguageService().getDocumentHighlights(c,_,n.filesToSearch);return f?a?f.map(({fileName:y,highlightSpans:g})=>{let k=u.getScriptInfo(y);return{file:y,highlightSpans:g.map(({textSpan:T,kind:C,contextSpan:O})=>({...vje(T,O,k),kind:C}))}}):f:Pd}provideInlayHints(n){let{file:a,project:c}=this.getFileAndProject(n),u=this.projectService.getScriptInfoForNormalizedPath(a);return c.getLanguageService().provideInlayHints(a,n,this.getPreferences(a)).map(f=>{let{position:y,displayParts:g}=f;return{...f,position:u.positionToLineOffset(y),displayParts:g?.map(({text:k,span:T,file:C})=>{if(T){$.assertIsDefined(C,"Target file should be defined together with its span.");let O=this.projectService.getScriptInfo(C);return{text:k,span:{start:O.positionToLineOffset(T.start),end:O.positionToLineOffset(T.start+T.length),file:C}}}else return{text:k}})}})}mapCode(n){var a;let c=this.getHostFormatOptions(),u=this.getHostPreferences(),{file:_,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(n),y=this.projectService.getScriptInfoForNormalizedPath(_),g=(a=n.mapping.focusLocations)==null?void 0:a.map(T=>T.map(C=>{let O=y.lineOffsetToPosition(C.start.line,C.start.offset),F=y.lineOffsetToPosition(C.end.line,C.end.offset);return{start:O,length:F-O}})),k=f.mapCode(_,n.mapping.contents,g,c,u);return this.mapTextChangesToCodeEdits(k)}getCopilotRelatedInfo(){return{relatedFiles:[]}}setCompilerOptionsForInferredProjects(n){this.projectService.setCompilerOptionsForInferredProjects(n.options,n.projectRootPath)}getProjectInfo(n){return this.getProjectInfoWorker(n.file,n.projectFileName,n.needFileNameList,n.needDefaultConfiguredProjectInfo,!1)}getProjectInfoWorker(n,a,c,u,_){let{project:f}=this.getFileAndProjectWorker(n,a);return _1(f),{configFileName:f.getProjectName(),languageServiceDisabled:!f.languageServiceEnabled,fileNames:c?f.getFileNames(!1,_):void 0,configuredProjectInfo:u?this.getDefaultConfiguredProjectInfo(n):void 0}}getDefaultConfiguredProjectInfo(n){var a;let c=this.projectService.getScriptInfo(n);if(!c)return;let u=this.projectService.findDefaultConfiguredProjectWorker(c,3);if(!u)return;let _,f;return u.seenProjects.forEach((y,g)=>{g!==u.defaultProject&&(y!==3?(_??(_=[])).push(nu(g.getConfigFilePath())):(f??(f=[])).push(nu(g.getConfigFilePath())))}),(a=u.seenConfigs)==null||a.forEach(y=>(_??(_=[])).push(y)),{notMatchedByConfig:_,notInProject:f,defaultProject:u.defaultProject&&nu(u.defaultProject.getConfigFilePath())}}getRenameInfo(n){let{file:a,project:c}=this.getFileAndProject(n),u=this.getPositionInFile(n,a),_=this.getPreferences(a);return c.getLanguageService().getRenameInfo(a,u,_)}getProjects(n,a,c){let u,_;if(n.projectFileName){let f=this.getProject(n.projectFileName);f&&(u=[f])}else{let f=a?this.projectService.getScriptInfoEnsuringProjectsUptoDate(n.file):this.projectService.getScriptInfo(n.file);if(f)a||this.projectService.ensureDefaultProjectForFile(f);else return c?Pd:(this.projectService.logErrorForScriptInfoNotFound(n.file),t2.ThrowNoProject());u=f.containingProjects,_=this.projectService.getSymlinkedProjects(f)}return u=yr(u,f=>f.languageServiceEnabled&&!f.isOrphan()),!c&&(!u||!u.length)&&!_?(this.projectService.logErrorForScriptInfoNotFound(n.file??n.projectFileName),t2.ThrowNoProject()):_?{projects:u,symLinkedProjects:_}:u}getDefaultProject(n){if(n.projectFileName){let c=this.getProject(n.projectFileName);if(c)return c;if(!n.file)return t2.ThrowNoProject()}return this.projectService.getScriptInfo(n.file).getDefaultProject()}getRenameLocations(n,a){let c=nu(n.file),u=this.getPositionInFile(n,c),_=this.getProjects(n),f=this.getDefaultProject(n),y=this.getPreferences(c),g=this.mapRenameInfo(f.getLanguageService().getRenameInfo(c,u,y),$.checkDefined(this.projectService.getScriptInfo(c)));if(!g.canRename)return a?{info:g,locs:[]}:[];let k=$Sr(_,f,{fileName:n.file,pos:u},!!n.findInStrings,!!n.findInComments,y,this.host.useCaseSensitiveFileNames);return a?{info:g,locs:this.toSpanGroups(k)}:k}mapRenameInfo(n,a){if(n.canRename){let{canRename:c,fileToRename:u,displayName:_,fullDisplayName:f,kind:y,kindModifiers:g,triggerSpan:k}=n;return{canRename:c,fileToRename:u,displayName:_,fullDisplayName:f,kind:y,kindModifiers:g,triggerSpan:$S(k,a)}}else return n}toSpanGroups(n){let a=new Map;for(let{fileName:c,textSpan:u,contextSpan:_,originalContextSpan:f,originalTextSpan:y,originalFileName:g,...k}of n){let T=a.get(c);T||a.set(c,T={file:c,locs:[]});let C=$.checkDefined(this.projectService.getScriptInfo(c));T.locs.push({...vje(u,_,C),...k})}return so(a.values())}getReferences(n,a){let c=nu(n.file),u=this.getProjects(n),_=this.getPositionInFile(n,c),f=USr(u,this.getDefaultProject(n),{fileName:n.file,pos:_},this.host.useCaseSensitiveFileNames,this.logger);if(!a)return f;let y=this.getPreferences(c),g=this.getDefaultProject(n),k=g.getScriptInfoForNormalizedPath(c),T=g.getLanguageService().getQuickInfoAtPosition(c,_),C=T?_Q(T.displayParts):"",O=T&&T.textSpan,F=O?k.positionToLineOffset(O.start).offset:0,M=O?k.getSnapshot().getText(O.start,Xn(O)):"";return{refs:an(f,J=>J.references.map(G=>t2t(this.projectService,G,y))),symbolName:M,symbolStartOffset:F,symbolDisplayString:C}}getFileReferences(n,a){let c=this.getProjects(n),u=nu(n.file),_=this.getPreferences(u),f={fileName:u,pos:0},y=yje(c,this.getDefaultProject(n),f,f,GTt,T=>(this.logger.info(`Finding references to file ${u} in project ${T.getProjectName()}`),T.getLanguageService().getFileReferences(u))),g;if(Zn(y))g=y;else{g=[];let T=Ybe(this.host.useCaseSensitiveFileNames);y.forEach(C=>{for(let O of C)T.has(O)||(g.push(O),T.add(O))})}return a?{refs:g.map(T=>t2t(this.projectService,T,_)),symbolName:`"${n.file}"`}:g}openClientFile(n,a,c,u){this.projectService.openClientFileWithNormalizedPath(n,a,c,!1,u)}getPosition(n,a){return n.position!==void 0?n.position:a.lineOffsetToPosition(n.line,n.offset)}getPositionInFile(n,a){let c=this.projectService.getScriptInfoForNormalizedPath(a);return this.getPosition(n,c)}getFileAndProject(n){return this.getFileAndProjectWorker(n.file,n.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(n){let{file:a,project:c}=this.getFileAndProject(n);return{file:a,languageService:c.getLanguageService(!1)}}getFileAndProjectWorker(n,a){let c=nu(n),u=this.getProject(a)||this.projectService.ensureDefaultProjectForFile(c);return{file:c,project:u}}getOutliningSpans(n,a){let{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),_=u.getOutliningSpans(c);if(a){let f=this.projectService.getScriptInfoForNormalizedPath(c);return _.map(y=>({textSpan:$S(y.textSpan,f),hintSpan:$S(y.hintSpan,f),bannerText:y.bannerText,autoCollapse:y.autoCollapse,kind:y.kind}))}else return _}getTodoComments(n){let{file:a,project:c}=this.getFileAndProject(n);return c.getLanguageService().getTodoComments(a,n.descriptors)}getDocCommentTemplate(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,a);return c.getDocCommentTemplateAtPosition(a,u,this.getPreferences(a),this.getFormatOptions(a))}getSpanOfEnclosingComment(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=n.onlyMultiLine,_=this.getPositionInFile(n,a);return c.getSpanOfEnclosingComment(a,_,u)}getIndentation(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,a),_=n.options?_M(n.options):this.getFormatOptions(a),f=c.getIndentationAtPosition(a,u,_);return{position:u,indentation:f}}getBreakpointStatement(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,a);return c.getBreakpointStatementAtPosition(a,u)}getNameOrDottedNameSpan(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,a);return c.getNameOrDottedNameSpan(a,u,u)}isValidBraceCompletion(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,a);return c.isValidBraceCompletionAtPosition(a,u,n.openingBrace.charCodeAt(0))}getQuickInfoWorker(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=this.projectService.getScriptInfoForNormalizedPath(c),f=this.getPreferences(c),y=u.getLanguageService().getQuickInfoAtPosition(c,this.getPosition(n,_),f.maximumHoverLength,n.verbosityLevel);if(!y)return;let g=!!f.displayPartsForJSDoc;if(a){let k=_Q(y.displayParts);return{kind:y.kind,kindModifiers:y.kindModifiers,start:_.positionToLineOffset(y.textSpan.start),end:_.positionToLineOffset(Xn(y.textSpan)),displayString:k,documentation:g?this.mapDisplayParts(y.documentation,u):_Q(y.documentation),tags:this.mapJSDocTagInfo(y.tags,u,g),canIncreaseVerbosityLevel:y.canIncreaseVerbosityLevel}}else return g?y:{...y,tags:this.mapJSDocTagInfo(y.tags,u,!1)}}getFormattingEditsForRange(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.projectService.getScriptInfoForNormalizedPath(a),_=u.lineOffsetToPosition(n.line,n.offset),f=u.lineOffsetToPosition(n.endLine,n.endOffset),y=c.getFormattingEditsForRange(a,_,f,this.getFormatOptions(a));if(y)return y.map(g=>this.convertTextChangeToCodeEdit(g,u))}getFormattingEditsForRangeFull(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=n.options?_M(n.options):this.getFormatOptions(a);return c.getFormattingEditsForRange(a,n.position,n.endPosition,u)}getFormattingEditsForDocumentFull(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=n.options?_M(n.options):this.getFormatOptions(a);return c.getFormattingEditsForDocument(a,u)}getFormattingEditsAfterKeystrokeFull(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=n.options?_M(n.options):this.getFormatOptions(a);return c.getFormattingEditsAfterKeystroke(a,n.position,n.key,u)}getFormattingEditsAfterKeystroke(n){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.projectService.getScriptInfoForNormalizedPath(a),_=u.lineOffsetToPosition(n.line,n.offset),f=this.getFormatOptions(a),y=c.getFormattingEditsAfterKeystroke(a,_,n.key,f);if(n.key===` -`&&(!y||y.length===0||MSr(y,_))){let{lineText:g,absolutePosition:k}=u.textStorage.getAbsolutePositionAndLineText(n.line);if(g&&g.search("\\S")<0){let T=c.getIndentationAtPosition(a,_,f),C=0,O,F;for(O=0,F=g.length;O({start:u.positionToLineOffset(g.span.start),end:u.positionToLineOffset(Xn(g.span)),newText:g.newText?g.newText:""}))}getCompletions(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=this.projectService.getScriptInfoForNormalizedPath(c),f=this.getPosition(n,_),y=u.getLanguageService().getCompletionsAtPosition(c,f,{...eje(this.getPreferences(c)),triggerCharacter:n.triggerCharacter,triggerKind:n.triggerKind,includeExternalModuleExports:n.includeExternalModuleExports,includeInsertTextCompletions:n.includeInsertTextCompletions},u.projectService.getFormatCodeOptions(c));if(y===void 0)return;if(a==="completions-full")return y;let g=n.prefix||"",k=Wn(y.entries,C=>{if(y.isMemberCompletion||Ca(C.name.toLowerCase(),g.toLowerCase())){let O=C.replacementSpan?$S(C.replacementSpan,_):void 0;return{...C,replacementSpan:O,hasAction:C.hasAction||void 0,symbol:void 0}}});return a==="completions"?(y.metadata&&(k.metadata=y.metadata),k):{...y,optionalReplacementSpan:y.optionalReplacementSpan&&$S(y.optionalReplacementSpan,_),entries:k}}getCompletionEntryDetails(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=this.projectService.getScriptInfoForNormalizedPath(c),f=this.getPosition(n,_),y=u.projectService.getFormatCodeOptions(c),g=!!this.getPreferences(c).displayPartsForJSDoc,k=Wn(n.entryNames,T=>{let{name:C,source:O,data:F}=typeof T=="string"?{name:T,source:void 0,data:void 0}:T;return u.getLanguageService().getCompletionEntryDetails(c,f,C,y,O,this.getPreferences(c),F?Ba(F,ZSr):void 0)});return a?g?k:k.map(T=>({...T,tags:this.mapJSDocTagInfo(T.tags,u,!1)})):k.map(T=>({...T,codeActions:Cr(T.codeActions,C=>this.mapCodeAction(C)),documentation:this.mapDisplayParts(T.documentation,u),tags:this.mapJSDocTagInfo(T.tags,u,g)}))}getCompileOnSaveAffectedFileList(n){let a=this.getProjects(n,!0,!0),c=this.projectService.getScriptInfo(n.file);return c?BSr(c,u=>this.projectService.getScriptInfoForPath(u),a,(u,_)=>{if(!u.compileOnSaveEnabled||!u.languageServiceEnabled||u.isOrphan())return;let f=u.getCompilationSettings();if(!(f.noEmit||sf(_.fileName)&&!LSr(f)))return{projectFileName:u.getProjectName(),fileNames:u.getCompileOnSaveAffectedFileList(_),projectUsesOutFile:!!f.outFile}}):Pd}emitFile(n){let{file:a,project:c}=this.getFileAndProject(n);if(c||t2.ThrowNoProject(),!c.languageServiceEnabled)return n.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let u=c.getScriptInfo(a),{emitSkipped:_,diagnostics:f}=c.emitFile(u,(y,g,k)=>this.host.writeFile(y,g,k));return n.richResponse?{emitSkipped:_,diagnostics:n.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(f):f.map(y=>zQ(y,!0))}:!_}getSignatureHelpItems(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=this.projectService.getScriptInfoForNormalizedPath(c),f=this.getPosition(n,_),y=u.getLanguageService().getSignatureHelpItems(c,f,n),g=!!this.getPreferences(c).displayPartsForJSDoc;if(y&&a){let k=y.applicableSpan;return{...y,applicableSpan:{start:_.positionToLineOffset(k.start),end:_.positionToLineOffset(k.start+k.length)},items:this.mapSignatureHelpItems(y.items,u,g)}}else return g||!y?y:{...y,items:y.items.map(k=>({...k,tags:this.mapJSDocTagInfo(k.tags,u,!1)}))}}toPendingErrorCheck(n){let a=nu(n),c=this.projectService.tryGetDefaultProjectForFile(a);return c&&{fileName:a,project:c}}getDiagnostics(n,a,c){this.suppressDiagnosticEvents||c.length>0&&this.updateErrorCheck(n,c,a)}change(n){let a=this.projectService.getScriptInfo(n.file);$.assert(!!a),a.textStorage.switchToScriptVersionCache();let c=a.lineOffsetToPosition(n.line,n.offset),u=a.lineOffsetToPosition(n.endLine,n.endOffset);c>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(a,Sc({span:{start:c,length:u-c},newText:n.insertString})))}reload(n){let a=nu(n.file),c=n.tmpfile===void 0?void 0:nu(n.tmpfile),u=this.projectService.getScriptInfoForNormalizedPath(a);u&&(this.changeSeq++,u.reloadFromFile(c))}saveToTmp(n,a){let c=this.projectService.getScriptInfo(n);c&&c.saveTo(a)}closeClientFile(n){if(!n)return;let a=Qs(n);this.projectService.closeClientFile(a)}mapLocationNavigationBarItems(n,a){return Cr(n,c=>({text:c.text,kind:c.kind,kindModifiers:c.kindModifiers,spans:c.spans.map(u=>$S(u,a)),childItems:this.mapLocationNavigationBarItems(c.childItems,a),indent:c.indent}))}getNavigationBarItems(n,a){let{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),_=u.getNavigationBarItems(c);return _?a?this.mapLocationNavigationBarItems(_,this.projectService.getScriptInfoForNormalizedPath(c)):_:void 0}toLocationNavigationTree(n,a){return{text:n.text,kind:n.kind,kindModifiers:n.kindModifiers,spans:n.spans.map(c=>$S(c,a)),nameSpan:n.nameSpan&&$S(n.nameSpan,a),childItems:Cr(n.childItems,c=>this.toLocationNavigationTree(c,a))}}getNavigationTree(n,a){let{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),_=u.getNavigationTree(c);return _?a?this.toLocationNavigationTree(_,this.projectService.getScriptInfoForNormalizedPath(c)):_:void 0}getNavigateToItems(n,a){let c=this.getFullNavigateToItems(n);return a?an(c,({project:u,navigateToItems:_})=>_.map(f=>{let y=u.getScriptInfo(f.fileName),g={name:f.name,kind:f.kind,kindModifiers:f.kindModifiers,isCaseSensitive:f.isCaseSensitive,matchKind:f.matchKind,file:f.fileName,start:y.positionToLineOffset(f.textSpan.start),end:y.positionToLineOffset(Xn(f.textSpan))};return f.kindModifiers&&f.kindModifiers!==""&&(g.kindModifiers=f.kindModifiers),f.containerName&&f.containerName.length>0&&(g.containerName=f.containerName),f.containerKind&&f.containerKind.length>0&&(g.containerKind=f.containerKind),g})):an(c,({navigateToItems:u})=>u)}getFullNavigateToItems(n){let{currentFileOnly:a,searchValue:c,maxResultCount:u,projectFileName:_}=n;if(a){$.assertIsDefined(n.file);let{file:O,project:F}=this.getFileAndProject(n);return[{project:F,navigateToItems:F.getLanguageService().getNavigateToItems(c,u,O)}]}let f=this.getHostPreferences(),y=[],g=new Map;if(!n.file&&!_)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(O=>k(O));else{let O=this.getProjects(n);WTt(O,void 0,F=>k(F))}return y;function k(O){let F=O.getLanguageService().getNavigateToItems(c,u,void 0,O.isNonTsProject(),f.excludeLibrarySymbolsInNavTo),M=yr(F,U=>T(U)&&!exe(bq(U),O));M.length&&y.push({project:O,navigateToItems:M})}function T(O){let F=O.name;if(!g.has(F))return g.set(F,[O]),!0;let M=g.get(F);for(let U of M)if(C(U,O))return!1;return M.push(O),!0}function C(O,F){return O===F?!0:!O||!F?!1:O.containerKind===F.containerKind&&O.containerName===F.containerName&&O.fileName===F.fileName&&O.isCaseSensitive===F.isCaseSensitive&&O.kind===F.kind&&O.kindModifiers===F.kindModifiers&&O.matchKind===F.matchKind&&O.name===F.name&&O.textSpan.start===F.textSpan.start&&O.textSpan.length===F.textSpan.length}}getSupportedCodeFixes(n){if(!n)return gSe();if(n.file){let{file:c,project:u}=this.getFileAndProject(n);return u.getLanguageService().getSupportedCodeFixes(c)}let a=this.getProject(n.projectFileName);return a||t2.ThrowNoProject(),a.getLanguageService().getSupportedCodeFixes()}isLocation(n){return n.line!==void 0}extractPositionOrRange(n,a){let c,u;return this.isLocation(n)?c=_(n):u=this.getRange(n,a),$.checkDefined(c===void 0?u:c);function _(f){return f.position!==void 0?f.position:a.lineOffsetToPosition(f.line,f.offset)}}getRange(n,a){let{startPosition:c,endPosition:u}=this.getStartAndEndPosition(n,a);return{pos:c,end:u}}getApplicableRefactors(n){let{file:a,project:c}=this.getFileAndProject(n),u=c.getScriptInfoForNormalizedPath(a);return c.getLanguageService().getApplicableRefactors(a,this.extractPositionOrRange(n,u),this.getPreferences(a),n.triggerReason,n.kind,n.includeInteractiveActions).map(f=>({...f,actions:f.actions.map(y=>({...y,range:y.range?{start:dM({line:y.range.start.line,character:y.range.start.offset}),end:dM({line:y.range.end.line,character:y.range.end.offset})}:void 0}))}))}getEditsForRefactor(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=u.getScriptInfoForNormalizedPath(c),f=u.getLanguageService().getEditsForRefactor(c,this.getFormatOptions(c),this.extractPositionOrRange(n,_),n.refactor,n.action,this.getPreferences(c),n.interactiveRefactorArguments);if(f===void 0)return{edits:[]};if(a){let{renameFilename:y,renameLocation:g,edits:k}=f,T;if(y!==void 0&&g!==void 0){let C=u.getScriptInfoForNormalizedPath(nu(y));T=Sje(BF(C.getSnapshot()),y,g,k)}return{renameLocation:T,renameFilename:y,edits:this.mapTextChangesToCodeEdits(k),notApplicableReason:f.notApplicableReason}}return f}getMoveToRefactoringFileSuggestions(n){let{file:a,project:c}=this.getFileAndProject(n),u=c.getScriptInfoForNormalizedPath(a);return c.getLanguageService().getMoveToRefactoringFileSuggestions(a,this.extractPositionOrRange(n,u),this.getPreferences(a))}preparePasteEdits(n){let{file:a,project:c}=this.getFileAndProject(n);return c.getLanguageService().preparePasteEditsForFile(a,n.copiedTextSpan.map(u=>this.getRange({file:a,startLine:u.start.line,startOffset:u.start.offset,endLine:u.end.line,endOffset:u.end.offset},this.projectService.getScriptInfoForNormalizedPath(a))))}getPasteEdits(n){let{file:a,project:c}=this.getFileAndProject(n);if(vq(a))return;let u=n.copiedFrom?{file:n.copiedFrom.file,range:n.copiedFrom.spans.map(f=>this.getRange({file:n.copiedFrom.file,startLine:f.start.line,startOffset:f.start.offset,endLine:f.end.line,endOffset:f.end.offset},c.getScriptInfoForNormalizedPath(nu(n.copiedFrom.file))))}:void 0,_=c.getLanguageService().getPasteEdits({targetFile:a,pastedText:n.pastedText,pasteLocations:n.pasteLocations.map(f=>this.getRange({file:a,startLine:f.start.line,startOffset:f.start.offset,endLine:f.end.line,endOffset:f.end.offset},c.getScriptInfoForNormalizedPath(a))),copiedFrom:u,preferences:this.getPreferences(a)},this.getFormatOptions(a));return _&&this.mapPasteEditsAction(_)}organizeImports(n,a){$.assert(n.scope.type==="file");let{file:c,project:u}=this.getFileAndProject(n.scope.args),_=u.getLanguageService().organizeImports({fileName:c,mode:n.mode??(n.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(c),this.getPreferences(c));return a?this.mapTextChangesToCodeEdits(_):_}getEditsForFileRename(n,a){let c=nu(n.oldFilePath),u=nu(n.newFilePath),_=this.getHostFormatOptions(),f=this.getHostPreferences(),y=new Set,g=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(k=>{let T=k.getLanguageService().getEditsForFileRename(c,u,_,f),C=[];for(let O of T)y.has(O.fileName)||(g.push(O),C.push(O.fileName));for(let O of C)y.add(O)}),a?g.map(k=>this.mapTextChangeToCodeEdit(k)):g}getCodeFixes(n,a){let{file:c,project:u}=this.getFileAndProject(n),_=u.getScriptInfoForNormalizedPath(c),{startPosition:f,endPosition:y}=this.getStartAndEndPosition(n,_),g;try{g=u.getLanguageService().getCodeFixesAtPosition(c,f,y,n.errorCodes,this.getFormatOptions(c),this.getPreferences(c))}catch(k){let T=k instanceof Error?k:new Error(k),C=u.getLanguageService(),O=[...C.getSyntacticDiagnostics(c),...C.getSemanticDiagnostics(c),...C.getSuggestionDiagnostics(c)].filter(M=>dS(f,y-f,M.start,M.length)).map(M=>M.code),F=n.errorCodes.find(M=>!O.includes(M));throw F!==void 0&&(T.message+=` -Additional information: BADCLIENT: Bad error code, ${F} not found in range ${f}..${y} (found: ${O.join(", ")})`),T}return a?g.map(k=>this.mapCodeFixAction(k)):g}getCombinedCodeFix({scope:n,fixId:a},c){$.assert(n.type==="file");let{file:u,project:_}=this.getFileAndProject(n.args),f=_.getLanguageService().getCombinedCodeFix({type:"file",fileName:u},a,this.getFormatOptions(u),this.getPreferences(u));return c?{changes:this.mapTextChangesToCodeEdits(f.changes),commands:f.commands}:f}applyCodeActionCommand(n){let a=n.command;for(let c of Ll(a)){let{file:u,project:_}=this.getFileAndProject(c);_.getLanguageService().applyCodeActionCommand(c,this.getFormatOptions(u)).then(f=>{},f=>{})}return{}}getStartAndEndPosition(n,a){let c,u;return n.startPosition!==void 0?c=n.startPosition:(c=a.lineOffsetToPosition(n.startLine,n.startOffset),n.startPosition=c),n.endPosition!==void 0?u=n.endPosition:(u=a.lineOffsetToPosition(n.endLine,n.endOffset),n.endPosition=u),{startPosition:c,endPosition:u}}mapCodeAction({description:n,changes:a,commands:c}){return{description:n,changes:this.mapTextChangesToCodeEdits(a),commands:c}}mapCodeFixAction({fixName:n,description:a,changes:c,commands:u,fixId:_,fixAllDescription:f}){return{fixName:n,description:a,changes:this.mapTextChangesToCodeEdits(c),commands:u,fixId:_,fixAllDescription:f}}mapPasteEditsAction({edits:n,fixId:a}){return{edits:this.mapTextChangesToCodeEdits(n),fixId:a}}mapTextChangesToCodeEdits(n){return n.map(a=>this.mapTextChangeToCodeEdit(a))}mapTextChangeToCodeEdit(n){let a=this.projectService.getScriptInfoOrConfig(n.fileName);return!!n.isNewFile==!!a&&(a||this.projectService.logErrorForScriptInfoNotFound(n.fileName),$.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!n.isNewFile,hasScriptInfo:!!a}))),a?{fileName:n.fileName,textChanges:n.textChanges.map(c=>VSr(c,a))}:HSr(n)}convertTextChangeToCodeEdit(n,a){return{start:a.positionToLineOffset(n.span.start),end:a.positionToLineOffset(n.span.start+n.span.length),newText:n.newText?n.newText:""}}getBraceMatching(n,a){let{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),_=this.projectService.getScriptInfoForNormalizedPath(c),f=this.getPosition(n,_),y=u.getBraceMatchingAtPosition(c,f);return y?a?y.map(g=>$S(g,_)):y:void 0}getDiagnosticsForProject(n,a,c){if(this.suppressDiagnosticEvents)return;let{fileNames:u,languageServiceDisabled:_}=this.getProjectInfoWorker(c,void 0,!0,void 0,!0);if(_)return;let f=u.filter(U=>!U.includes("lib.d.ts"));if(f.length===0)return;let y=[],g=[],k=[],T=[],C=nu(c),O=this.projectService.ensureDefaultProjectForFile(C);for(let U of f)this.getCanonicalFileName(U)===this.getCanonicalFileName(c)?y.push(U):this.projectService.getScriptInfo(U).isScriptOpen()?g.push(U):sf(U)?T.push(U):k.push(U);let M=[...y,...g,...k,...T].map(U=>({fileName:U,project:O}));this.updateErrorCheck(n,M,a,!1)}configurePlugin(n){this.projectService.configurePlugin(n)}getSmartSelectionRange(n,a){let{locations:c}=n,{file:u,languageService:_}=this.getFileAndLanguageServiceForSyntacticOperation(n),f=$.checkDefined(this.projectService.getScriptInfo(u));return Cr(c,y=>{let g=this.getPosition(y,f),k=_.getSmartSelectionRange(u,g);return a?this.mapSelectionRange(k,f):k})}toggleLineComment(n,a){let{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),_=this.projectService.getScriptInfo(c),f=this.getRange(n,_),y=u.toggleLineComment(c,f);if(a){let g=this.projectService.getScriptInfoForNormalizedPath(c);return y.map(k=>this.convertTextChangeToCodeEdit(k,g))}return y}toggleMultilineComment(n,a){let{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),_=this.projectService.getScriptInfoForNormalizedPath(c),f=this.getRange(n,_),y=u.toggleMultilineComment(c,f);if(a){let g=this.projectService.getScriptInfoForNormalizedPath(c);return y.map(k=>this.convertTextChangeToCodeEdit(k,g))}return y}commentSelection(n,a){let{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),_=this.projectService.getScriptInfoForNormalizedPath(c),f=this.getRange(n,_),y=u.commentSelection(c,f);if(a){let g=this.projectService.getScriptInfoForNormalizedPath(c);return y.map(k=>this.convertTextChangeToCodeEdit(k,g))}return y}uncommentSelection(n,a){let{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),_=this.projectService.getScriptInfoForNormalizedPath(c),f=this.getRange(n,_),y=u.uncommentSelection(c,f);if(a){let g=this.projectService.getScriptInfoForNormalizedPath(c);return y.map(k=>this.convertTextChangeToCodeEdit(k,g))}return y}mapSelectionRange(n,a){let c={textSpan:$S(n.textSpan,a)};return n.parent&&(c.parent=this.mapSelectionRange(n.parent,a)),c}getScriptInfoFromProjectService(n){let a=nu(n),c=this.projectService.getScriptInfoForNormalizedPath(a);return c||(this.projectService.logErrorForScriptInfoNotFound(a),t2.ThrowNoProject())}toProtocolCallHierarchyItem(n){let a=this.getScriptInfoFromProjectService(n.file);return{name:n.name,kind:n.kind,kindModifiers:n.kindModifiers,file:n.file,containerName:n.containerName,span:$S(n.span,a),selectionSpan:$S(n.selectionSpan,a)}}toProtocolCallHierarchyIncomingCall(n){let a=this.getScriptInfoFromProjectService(n.from.file);return{from:this.toProtocolCallHierarchyItem(n.from),fromSpans:n.fromSpans.map(c=>$S(c,a))}}toProtocolCallHierarchyOutgoingCall(n,a){return{to:this.toProtocolCallHierarchyItem(n.to),fromSpans:n.fromSpans.map(c=>$S(c,a))}}prepareCallHierarchy(n){let{file:a,project:c}=this.getFileAndProject(n),u=this.projectService.getScriptInfoForNormalizedPath(a);if(u){let _=this.getPosition(n,u),f=c.getLanguageService().prepareCallHierarchy(a,_);return f&&Dve(f,y=>this.toProtocolCallHierarchyItem(y))}}provideCallHierarchyIncomingCalls(n){let{file:a,project:c}=this.getFileAndProject(n),u=this.getScriptInfoFromProjectService(a);return c.getLanguageService().provideCallHierarchyIncomingCalls(a,this.getPosition(n,u)).map(f=>this.toProtocolCallHierarchyIncomingCall(f))}provideCallHierarchyOutgoingCalls(n){let{file:a,project:c}=this.getFileAndProject(n),u=this.getScriptInfoFromProjectService(a);return c.getLanguageService().provideCallHierarchyOutgoingCalls(a,this.getPosition(n,u)).map(f=>this.toProtocolCallHierarchyOutgoingCall(f,u))}getCanonicalFileName(n){let a=this.host.useCaseSensitiveFileNames?n:lb(n);return Qs(a)}exit(){}notRequired(n){return n&&this.doOutput(void 0,n.command,n.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(n){return{response:n,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(n,a){if(this.handlers.has(n))throw new Error(`Protocol handler already exists for command "${n}"`);this.handlers.set(n,a)}setCurrentRequest(n){$.assert(this.currentRequestId===void 0),this.currentRequestId=n,this.cancellationToken.setRequest(n)}resetCurrentRequest(n){$.assert(this.currentRequestId===n),this.currentRequestId=void 0,this.cancellationToken.resetRequest(n)}executeWithRequestId(n,a,c){let u=this.performanceData;try{return this.performanceData=c,this.setCurrentRequest(n),a()}finally{this.resetCurrentRequest(n),this.performanceData=u}}executeCommand(n){let a=this.handlers.get(n.command);if(a){let c=this.executeWithRequestId(n.seq,()=>a(n),void 0);return this.projectService.enableRequestedPlugins(),c}else return this.logger.msg(`Unrecognized JSON command:${jA(n)}`,"Err"),this.doOutput(void 0,"unknown",n.seq,!1,void 0,`Unrecognized JSON command: ${n.command}`),{responseRequired:!1}}onMessage(n){var a,c,u,_,f,y,g;this.gcTimer.scheduleCollect();let k,T=this.performanceData;this.logger.hasLevel(2)&&(k=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${Vz(this.toStringMessage(n))}`));let C,O;try{C=this.parseMessage(n),O=C.arguments&&C.arguments.file?C.arguments:void 0,(a=hi)==null||a.instant(hi.Phase.Session,"request",{seq:C.seq,command:C.command}),(c=hi)==null||c.push(hi.Phase.Session,"executeCommand",{seq:C.seq,command:C.command},!0);let{response:F,responseRequired:M,performanceData:U}=this.executeCommand(C);if((u=hi)==null||u.pop(),this.logger.hasLevel(2)){let J=RSr(this.hrtime(k)).toFixed(4);M?this.logger.perftrc(`${C.seq}::${C.command}: elapsed time (in milliseconds) ${J}`):this.logger.perftrc(`${C.seq}::${C.command}: async elapsed time (in milliseconds) ${J}`)}(_=hi)==null||_.instant(hi.Phase.Session,"response",{seq:C.seq,command:C.command,success:!!F}),F?this.doOutput(F,C.command,C.seq,!0,U):M&&this.doOutput(void 0,C.command,C.seq,!1,U,"No content available.")}catch(F){if((f=hi)==null||f.popAll(),F instanceof Uk){(y=hi)==null||y.instant(hi.Phase.Session,"commandCanceled",{seq:C?.seq,command:C?.command}),this.doOutput({canceled:!0},C.command,C.seq,!0,this.performanceData);return}this.logErrorWorker(F,this.toStringMessage(n),O),(g=hi)==null||g.instant(hi.Phase.Session,"commandError",{seq:C?.seq,command:C?.command,message:F.message}),this.doOutput(void 0,C?C.command:"unknown",C?C.seq:0,!1,this.performanceData,"Error processing request. "+F.message+` -`+F.stack)}finally{this.performanceData=T}}parseMessage(n){return JSON.parse(n)}toStringMessage(n){return n}getFormatOptions(n){return this.projectService.getFormatCodeOptions(n)}getPreferences(n){return this.projectService.getPreferences(n)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function YTt(t){let n=t.diagnosticsDuration&&so(t.diagnosticsDuration,([a,c])=>({...c,file:a}));return{...t,diagnosticsDuration:n}}function $S(t,n){return{start:n.positionToLineOffset(t.start),end:n.positionToLineOffset(Xn(t))}}function vje(t,n,a){let c=$S(t,a),u=n&&$S(n,a);return u?{...c,contextStart:u.start,contextEnd:u.end}:c}function VSr(t,n){return{start:e2t(n,t.span.start),end:e2t(n,Xn(t.span)),newText:t.newText}}function e2t(t,n){return _je(t)?GSr(t.getLineAndCharacterOfPosition(n)):t.positionToLineOffset(n)}function WSr(t,n){let a=t.ranges.map(c=>({start:n.positionToLineOffset(c.start),end:n.positionToLineOffset(c.start+c.length)}));return t.wordPattern?{ranges:a,wordPattern:t.wordPattern}:{ranges:a}}function GSr(t){return{line:t.line+1,offset:t.character+1}}function HSr(t){$.assert(t.textChanges.length===1);let n=To(t.textChanges);return $.assert(n.span.start===0&&n.span.length===0),{fileName:t.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:n.newText}]}}function Sje(t,n,a,c){let u=KSr(t,n,c),{line:_,character:f}=aE(oE(u),a);return{line:_+1,offset:f+1}}function KSr(t,n,a){for(let{fileName:c,textChanges:u}of a)if(c===n)for(let _=u.length-1;_>=0;_--){let{newText:f,span:{start:y,length:g}}=u[_];t=t.slice(0,y)+f+t.slice(y+g)}return t}function t2t(t,{fileName:n,textSpan:a,contextSpan:c,isWriteAccess:u,isDefinition:_},{disableLineTextInReferences:f}){let y=$.checkDefined(t.getScriptInfo(n)),g=vje(a,c,y),k=f?void 0:QSr(y,g);return{file:n,...g,lineText:k,isWriteAccess:u,isDefinition:_}}function QSr(t,n){let a=t.lineToTextSpan(n.start.line-1);return t.getSnapshot().getText(a.start,Xn(a)).replace(/\r|\n/g,"")}function ZSr(t){return t===void 0||t&&typeof t=="object"&&typeof t.exportName=="string"&&(t.fileName===void 0||typeof t.fileName=="string")&&(t.ambientModuleName===void 0||typeof t.ambientModuleName=="string"&&(t.isPackageJsonImport===void 0||typeof t.isPackageJsonImport=="boolean"))}var fM=4,bje=(t=>(t[t.PreStart=0]="PreStart",t[t.Start=1]="Start",t[t.Entire=2]="Entire",t[t.Mid=3]="Mid",t[t.End=4]="End",t[t.PostEnd=5]="PostEnd",t))(bje||{}),XSr=class{constructor(){this.goSubtree=!0,this.lineIndex=new qQ,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new mM,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(t,n){n&&(this.trailingText=""),t?t=this.initialText+t+this.trailingText:t=this.initialText+this.trailingText;let c=qQ.linesFromText(t).lines;c.length>1&&c[c.length-1]===""&&c.pop();let u,_;for(let y=this.endBranch.length-1;y>=0;y--)this.endBranch[y].updateCounts(),this.endBranch[y].charCount()===0&&(_=this.endBranch[y],y>0?u=this.endBranch[y-1]:u=this.branchNode);_&&u.remove(_);let f=this.startPath[this.startPath.length-1];if(c.length>0)if(f.text=c[0],c.length>1){let y=new Array(c.length-1),g=f;for(let C=1;C=0;){let C=this.startPath[k];y=C.insertAt(g,y),k--,g=C}let T=y.length;for(;T>0;){let C=new mM;C.add(this.lineIndex.root),y=C.insertAt(this.lineIndex.root,y),T=y.length,this.lineIndex.root=C}this.lineIndex.root.updateCounts()}else for(let y=this.startPath.length-2;y>=0;y--)this.startPath[y].updateCounts();else{this.startPath[this.startPath.length-2].remove(f);for(let g=this.startPath.length-2;g>=0;g--)this.startPath[g].updateCounts()}return this.lineIndex}post(t,n,a){a===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(t,n,a,c,u){let _=this.stack[this.stack.length-1];this.state===2&&u===1&&(this.state=1,this.branchNode=_,this.lineCollectionAtBranch=a);let f;function y(g){return g.isLeaf()?new ose(""):new mM}switch(u){case 0:this.goSubtree=!1,this.state!==4&&_.add(a);break;case 1:this.state===4?this.goSubtree=!1:(f=y(a),_.add(f),this.startPath.push(f));break;case 2:this.state!==4?(f=y(a),_.add(f),this.startPath.push(f)):a.isLeaf()||(f=y(a),_.add(f),this.endBranch.push(f));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:a.isLeaf()||(f=y(a),_.add(f),this.endBranch.push(f));break;case 5:this.goSubtree=!1,this.state!==1&&_.add(a);break}this.goSubtree&&this.stack.push(f)}leaf(t,n,a){this.state===1?this.initialText=a.text.substring(0,t):this.state===2?(this.initialText=a.text.substring(0,t),this.trailingText=a.text.substring(t+n)):this.trailingText=a.text.substring(t+n)}},YSr=class{constructor(t,n,a){this.pos=t,this.deleteLen=n,this.insertedText=a}getTextChangeRange(){return X0(Jp(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},txe=class q8{constructor(){this.changes=[],this.versions=new Array(q8.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(n){if(!(nthis.currentVersion))return n%q8.maxVersions}currentVersionToIndex(){return this.currentVersion%q8.maxVersions}edit(n,a,c){this.changes.push(new YSr(n,a,c)),(this.changes.length>q8.changeNumberThreshold||a>q8.changeLengthThreshold||c&&c.length>q8.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let n=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let a=n.index;for(let c of this.changes)a=a.edit(c.pos,c.deleteLen,c.insertedText);n=new r2t(this.currentVersion+1,this,a,this.changes),this.currentVersion=n.version,this.versions[this.currentVersionToIndex()]=n,this.changes=[],this.currentVersion-this.minVersion>=q8.maxVersions&&(this.minVersion=this.currentVersion-q8.maxVersions+1)}return n}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(n){return this._getSnapshot().index.lineNumberToInfo(n)}lineOffsetToPosition(n,a){return this._getSnapshot().index.absolutePositionOfStartOfLine(n)+(a-1)}positionToLineOffset(n){return this._getSnapshot().index.positionToLineOffset(n)}lineToTextSpan(n){let a=this._getSnapshot().index,{lineText:c,absolutePosition:u}=a.lineNumberToInfo(n+1),_=c!==void 0?c.length:a.absolutePositionOfStartOfLine(n+2)-u;return Jp(u,_)}getTextChangesBetweenVersions(n,a){if(n=this.minVersion){let c=[];for(let u=n+1;u<=a;u++){let _=this.versions[this.versionToIndex(u)];for(let f of _.changesSincePreviousVersion)c.push(f.getTextChangeRange())}return w(c)}else return;else return _i}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(n){let a=new q8,c=new r2t(0,a,new qQ);a.versions[a.currentVersion]=c;let u=qQ.linesFromText(n);return c.index.load(u.lines),a}};txe.changeNumberThreshold=8,txe.changeLengthThreshold=256,txe.maxVersions=8;var rxe=txe,r2t=class atr{constructor(n,a,c,u=Pd){this.version=n,this.cache=a,this.index=c,this.changesSincePreviousVersion=u}getText(n,a){return this.index.getText(n,a-n)}getLength(){return this.index.getLength()}getChangeRange(n){if(n instanceof atr&&this.cache===n.cache)return this.version<=n.version?_i:this.cache.getTextChangesBetweenVersions(n.version,this.version)}},qQ=class gct{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(n){return this.lineNumberToInfo(n).absolutePosition}positionToLineOffset(n){let{oneBasedLine:a,zeroBasedColumn:c}=this.root.charOffsetToLineInfo(1,n);return{line:a,offset:c+1}}positionToColumnAndLineText(n){return this.root.charOffsetToLineInfo(1,n)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(n){let a=this.getLineCount();if(n<=a){let{position:c,leaf:u}=this.root.lineNumberToInfo(n,0);return{absolutePosition:c,lineText:u&&u.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(n){if(n.length>0){let a=[];for(let c=0;c0&&n{c=c.concat(f.text.substring(u,u+_))}}),c}getLength(){return this.root.charCount()}every(n,a,c){c||(c=this.root.charCount());let u={goSubtree:!0,done:!1,leaf(_,f,y){n(y,_,f)||(this.done=!0)}};return this.walk(a,c-a,u),!u.done}edit(n,a,c){if(this.root.charCount()===0)return $.assert(a===0),c!==void 0?(this.load(gct.linesFromText(c).lines),this):void 0;{let u;if(this.checkEdits){let y=this.getText(0,this.root.charCount());u=y.slice(0,n)+c+y.slice(n+a)}let _=new XSr,f=!1;if(n>=this.root.charCount()){n=this.root.charCount()-1;let y=this.getText(n,1);c?c=y+c:c=y,a=0,f=!0}else if(a>0){let y=n+a,{zeroBasedColumn:g,lineText:k}=this.positionToColumnAndLineText(y);g===0&&(a+=k.length,c=c?c+k:k)}if(this.root.walk(n,a,_),_.insertLines(c,f),this.checkEdits){let y=_.lineIndex.getText(0,_.lineIndex.getLength());$.assert(u===y,"buffer edit mismatch")}return _.lineIndex}}static buildTreeFromBottom(n){if(n.length0?c[u]=_:c.pop(),{lines:c,lineMap:a}}},mM=class yct{constructor(n=[]){this.children=n,this.totalChars=0,this.totalLines=0,n.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let n of this.children)this.totalChars+=n.charCount(),this.totalLines+=n.lineCount()}execWalk(n,a,c,u,_){return c.pre&&c.pre(n,a,this.children[u],this,_),c.goSubtree?(this.children[u].walk(n,a,c),c.post&&c.post(n,a,this.children[u],this,_)):c.goSubtree=!0,c.done}skipChild(n,a,c,u,_){u.pre&&!u.done&&(u.pre(n,a,this.children[c],this,_),u.goSubtree=!0)}walk(n,a,c){if(this.children.length===0)return;let u=0,_=this.children[u].charCount(),f=n;for(;f>=_;)this.skipChild(f,a,u,c,0),f-=_,u++,_=this.children[u].charCount();if(f+a<=_){if(this.execWalk(f,a,c,u,2))return}else{if(this.execWalk(f,_-f,c,u,1))return;let y=a-(_-f);for(u++,_=this.children[u].charCount();y>_;){if(this.execWalk(0,_,c,u,3))return;y-=_,u++,_=this.children[u].charCount()}if(y>0&&this.execWalk(0,y,c,u,4))return}if(c.pre){let y=this.children.length;if(ua)return _.isLeaf()?{oneBasedLine:n,zeroBasedColumn:a,lineText:_.text}:_.charOffsetToLineInfo(n,a);a-=_.charCount(),n+=_.lineCount()}let c=this.lineCount();if(c===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let u=$.checkDefined(this.lineNumberToInfo(c,0).leaf);return{oneBasedLine:c,zeroBasedColumn:u.charCount(),lineText:void 0}}lineNumberToInfo(n,a){for(let c of this.children){let u=c.lineCount();if(u>=n)return c.isLeaf()?{position:a,leaf:c}:c.lineNumberToInfo(n,a);n-=u,a+=c.charCount()}return{position:a,leaf:void 0}}splitAfter(n){let a,c=this.children.length;n++;let u=n;if(n=0;O--)g[O].children.length===0&&g.pop()}f&&g.push(f),this.updateCounts();for(let T=0;T{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:u,reject:_})});return this.installer.send(a),c}attach(n){this.projectService=n,this.installer=this.createInstallerProcess()}onProjectClosed(n){this.installer.send({projectName:n.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(n,a,c){let u=AMe(n,a,c);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${jA(u)}`),this.activeRequestCount0?this.activeRequestCount--:$.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let u=this.requestQueue.dequeue();if(this.requestMap.get(u.projectName)===u){this.requestMap.delete(u.projectName),this.scheduleRequest(u);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${u.projectName}`)}this.projectService.updateTypingsForProject(n),this.event(n,"setTypings");break}case jK:this.projectService.watchTypingLocations(n);break;default:}}scheduleRequest(n){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${n.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${jA(n)}`),this.installer.send(n)},str.requestDelayMillis,`${n.projectName}::${n.kind}`)}};n2t.requestDelayMillis=100;var i2t=n2t,o2t={};d(o2t,{ActionInvalidate:()=>Toe,ActionPackageInstalled:()=>Eoe,ActionSet:()=>xoe,ActionWatchTypingLocations:()=>jK,Arguments:()=>w1e,AutoImportProviderProject:()=>KMe,AuxiliaryProject:()=>GMe,CharRangeSection:()=>bje,CloseFileWatcherEvent:()=>Jbe,CommandNames:()=>JTt,ConfigFileDiagEvent:()=>Bbe,ConfiguredProject:()=>QMe,ConfiguredProjectLoadKind:()=>rje,CreateDirectoryWatcherEvent:()=>qbe,CreateFileWatcherEvent:()=>zbe,Errors:()=>t2,EventBeginInstallTypes:()=>D1e,EventEndInstallTypes:()=>A1e,EventInitializationFailed:()=>FFe,EventTypesRegistry:()=>C1e,ExternalProject:()=>Obe,GcTimer:()=>RMe,InferredProject:()=>WMe,LargeFileReferencedEvent:()=>jbe,LineIndex:()=>qQ,LineLeaf:()=>ose,LineNode:()=>mM,LogLevel:()=>CMe,Msg:()=>DMe,OpenFileInfoTelemetryEvent:()=>ZMe,Project:()=>YF,ProjectInfoTelemetryEvent:()=>Ube,ProjectKind:()=>Sq,ProjectLanguageServiceStateEvent:()=>$be,ProjectLoadingFinishEvent:()=>Mbe,ProjectLoadingStartEvent:()=>Lbe,ProjectService:()=>pje,ProjectsUpdatedInBackgroundEvent:()=>rse,ScriptInfo:()=>BMe,ScriptVersionCache:()=>rxe,Session:()=>XTt,TextStorage:()=>jMe,ThrottledOperations:()=>FMe,TypingsInstallerAdapter:()=>i2t,allFilesAreJsOrDts:()=>qMe,allRootFilesAreJsOrDts:()=>zMe,asNormalizedPath:()=>hTt,convertCompilerOptions:()=>nse,convertFormatOptions:()=>_M,convertScriptKindName:()=>Wbe,convertTypeAcquisition:()=>YMe,convertUserPreferences:()=>eje,convertWatchOptions:()=>UQ,countEachFileTypes:()=>MQ,createInstallTypingsRequest:()=>AMe,createModuleSpecifierCache:()=>fje,createNormalizedPathMap:()=>gTt,createPackageJsonCache:()=>mje,createSortedArray:()=>OMe,emptyArray:()=>Pd,findArgument:()=>gft,formatDiagnosticToProtocol:()=>zQ,formatMessage:()=>hje,getBaseConfigFileName:()=>Nbe,getDetailWatchInfo:()=>Qbe,getLocationInNewDocument:()=>Sje,hasArgument:()=>hft,hasNoTypeScriptSource:()=>JMe,indent:()=>Vz,isBackgroundProject:()=>BQ,isConfigFile:()=>_je,isConfiguredProject:()=>IE,isDynamicFileName:()=>vq,isExternalProject:()=>jQ,isInferredProject:()=>pM,isInferredProjectName:()=>wMe,isProjectDeferredClose:()=>$Q,makeAutoImportProviderProjectName:()=>PMe,makeAuxiliaryProjectName:()=>NMe,makeInferredProjectName:()=>IMe,maxFileSize:()=>Rbe,maxProgramSizeForNonTsFiles:()=>Fbe,normalizedPathToPath:()=>uM,nowString:()=>yft,nullCancellationToken:()=>UTt,nullTypingsInstaller:()=>ise,protocol:()=>LMe,scriptInfoIsContainedByBackgroundProject:()=>$Me,scriptInfoIsContainedByDeferredClosedProject:()=>UMe,stringifyIndented:()=>jA,toEvent:()=>gje,toNormalizedPath:()=>nu,tryConvertScriptKindName:()=>Vbe,typingsInstaller:()=>kMe,updateProjectIfDirty:()=>_1}),typeof console<"u"&&($.loggingHost={log(t,n){switch(t){case 1:return console.error(n);case 2:return console.warn(n);case 3:return console.log(n);case 4:return console.log(n)}}})})({get exports(){return etr},set exports(e){etr=e,typeof vPe<"u"&&vPe.exports&&(vPe.exports=e)}})});import*as l_ from"effect/Schema";var W6r=l_.Struct({inputTypePreview:l_.optional(l_.String),outputTypePreview:l_.optional(l_.String),inputSchema:l_.optional(l_.Unknown),outputSchema:l_.optional(l_.Unknown),exampleInput:l_.optional(l_.Unknown),exampleOutput:l_.optional(l_.Unknown)}),V7={"~standard":{version:1,vendor:"@executor/codemode-core",validate:e=>({value:e})}},u2e=l_.Struct({path:l_.String,sourceKey:l_.String,description:l_.optional(l_.String),interaction:l_.optional(l_.Union(l_.Literal("auto"),l_.Literal("required"))),elicitation:l_.optional(l_.Unknown),contract:l_.optional(W6r),providerKind:l_.optional(l_.String),providerData:l_.optional(l_.Unknown)}),Zwt=l_.Struct({namespace:l_.String,displayName:l_.optional(l_.String),toolCount:l_.optional(l_.Number)});var U6t=fJ($6t(),1);var y7r=new U6t.default({allErrors:!0,strict:!1,validateSchema:!1,allowUnionTypes:!0}),v7r=e=>{let r=e.replaceAll("~1","/").replaceAll("~0","~");return/^\d+$/.test(r)?Number(r):r},S7r=e=>{if(!(!e||e.length===0||e==="/"))return e.split("/").slice(1).filter(r=>r.length>0).map(v7r)},b7r=e=>{let r=e.keyword.trim(),i=(e.message??"Invalid value").trim();return r.length>0?`${r}: ${i}`:i},_le=(e,r)=>{try{let i=y7r.compile(e);return{"~standard":{version:1,vendor:r?.vendor??"json-schema",validate:s=>{if(i(s))return{value:s};let d=(i.errors??[]).map(h=>({message:b7r(h),path:S7r(h.instancePath)}));return{issues:d.length>0?d:[{message:"Invalid value"}]}}}}}catch{return r?.fallback??V7}};var uX=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},x7r=e=>Array.isArray(e)?e.filter(r=>typeof r=="string"):[],dle=(e,r)=>e.length<=r?e:`${e.slice(0,Math.max(0,r-4))} ...`,T7r=/^[A-Za-z_$][A-Za-z0-9_$]*$/,E7r=e=>T7r.test(e)?e:JSON.stringify(e),hJe=(e,r,i)=>{let s=Array.isArray(r[e])?r[e].map(uX):[];if(s.length===0)return null;let l=s.map(d=>i(d)).filter(d=>d.length>0);return l.length===0?null:l.join(e==="allOf"?" & ":" | ")},q6t=e=>e.startsWith("#/")?e.slice(2).split("/").map(r=>r.replace(/~1/g,"/").replace(/~0/g,"~")):null,k7r=(e,r)=>{let i=q6t(r);if(!i||i.length===0)return null;let s=e;for(let d of i){let h=uX(s);if(!(d in h))return null;s=h[d]}let l=uX(s);return Object.keys(l).length>0?l:null},z6t=e=>q6t(e)?.at(-1)??e,C7r=(e,r={})=>{let i=uX(e),s=r.maxLength??220,l=Number.isFinite(s),d=r.maxDepth??(l?4:Number.POSITIVE_INFINITY),h=r.maxProperties??(l?6:Number.POSITIVE_INFINITY),S=(b,A,L)=>{let V=uX(b);if(L<=0){if(typeof V.title=="string"&&V.title.length>0)return V.title;if(V.type==="array")return"unknown[]";if(V.type==="object"||V.properties)return V.additionalProperties?"Record":"object"}if(typeof V.$ref=="string"){let te=V.$ref.trim();if(te.length===0)return"unknown";if(A.has(te))return z6t(te);let X=k7r(i,te);return X?S(X,new Set([...A,te]),L-1):z6t(te)}if("const"in V)return JSON.stringify(V.const);let j=Array.isArray(V.enum)?V.enum:[];if(j.length>0)return dle(j.map(te=>JSON.stringify(te)).join(" | "),s);let ie=hJe("oneOf",V,te=>S(te,A,L-1))??hJe("anyOf",V,te=>S(te,A,L-1))??hJe("allOf",V,te=>S(te,A,L-1));if(ie)return dle(ie,s);if(V.type==="array"){let te=V.items?S(V.items,A,L-1):"unknown";return dle(`${te}[]`,s)}if(V.type==="object"||V.properties){let te=uX(V.properties),X=Object.keys(te);if(X.length===0)return V.additionalProperties?"Record":"object";let Re=new Set(x7r(V.required)),Je=X.slice(0,h),pt=Je.map($e=>`${E7r($e)}${Re.has($e)?"":"?"}: ${S(te[$e],A,L-1)}`);return Je.lengthC7r(e,{maxLength:r});var S6=(e,r,i=220)=>{if(e===void 0)return r;try{return D7r(e,i)}catch{return r}};import*as bJe from"effect/Data";import*as U0 from"effect/Effect";import*as W6t from"effect/JSONSchema";import*as J6t from"effect/Data";var gJe=class extends J6t.TaggedError("KernelCoreEffectError"){},fle=(e,r)=>new gJe({module:e,message:r});var A7r=e=>e,xJe=e=>e instanceof Error?e:new Error(String(e)),w7r=e=>{if(!e||typeof e!="object"&&typeof e!="function")return null;let r=e["~standard"];if(!r||typeof r!="object")return null;let i=r.validate;return typeof i=="function"?i:null},I7r=e=>!e||e.length===0?"$":e.map(r=>typeof r=="object"&&r!==null&&"key"in r?String(r.key):String(r)).join("."),P7r=e=>e.map(r=>`${I7r(r.path)}: ${r.message}`).join("; "),G6t=e=>{let r=w7r(e.schema);return r?U0.tryPromise({try:()=>Promise.resolve(r(e.value)),catch:xJe}).pipe(U0.flatMap(i=>"issues"in i&&i.issues?U0.fail(fle("tool-map",`Input validation failed for ${e.path}: ${P7r(i.issues)}`)):U0.succeed(i.value))):U0.fail(fle("tool-map",`Tool ${e.path} has no Standard Schema validator on inputSchema`))},N7r=e=>({mode:"form",message:`Approval required before invoking ${e}`,requestedSchema:{type:"object",properties:{},additionalProperties:!1}}),O7r={kind:"execute"},F7r=e=>e.metadata?.elicitation?{kind:"elicit",elicitation:e.metadata.elicitation}:e.metadata?.interaction==="required"?{kind:"elicit",elicitation:N7r(e.path)}:null,R7r=e=>F7r(e)??O7r,SJe=class extends bJe.TaggedError("ToolInteractionPendingError"){},J2e=class extends bJe.TaggedError("ToolInteractionDeniedError"){};var L7r=e=>{let r=R7r({metadata:e.metadata,path:e.path});if(!e.onToolInteraction)return U0.succeed(r);let i={path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.metadata,context:e.context,defaultElicitation:r.kind==="elicit"?r.elicitation:null};return e.onToolInteraction(i)},M7r=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),j7r=e=>{if(!e.response.content)return U0.succeed(e.args);if(!M7r(e.args))return U0.fail(fle("tool-map",`Tool ${e.path} cannot merge elicitation content into non-object arguments`));let r={...e.args,...e.response.content};return G6t({schema:e.inputSchema,value:r,path:e.path})},B7r=e=>{let r=e.response.content&&typeof e.response.content.reason=="string"&&e.response.content.reason.trim().length>0?e.response.content.reason.trim():null;return r||(e.response.action==="cancel"?`Interaction cancelled for ${e.path}`:`Interaction declined for ${e.path}`)},$7r=e=>{if(e.decision.kind==="execute")return U0.succeed(e.args);if(e.decision.kind==="decline")return U0.fail(new J2e({path:e.path,reason:e.decision.reason}));if(!e.onElicitation)return U0.fail(new SJe({path:e.path,elicitation:e.decision.elicitation,interactionId:e.interactionId}));let r={interactionId:e.interactionId,path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.metadata,context:e.context,elicitation:e.decision.elicitation};return e.onElicitation(r).pipe(U0.mapError(xJe),U0.flatMap(i=>i.action!=="accept"?U0.fail(new J2e({path:e.path,reason:B7r({path:e.path,response:i})})):j7r({path:e.path,args:e.args,response:i,inputSchema:e.inputSchema})))};function U7r(e){return{tool:e.tool,metadata:e.metadata}}var Bw=U7r;var z7r=e=>typeof e=="object"&&e!==null&&"tool"in e,yJe=e=>{if(e!=null)try{return(typeof e=="object"||typeof e=="function")&&e!==null&&"~standard"in e?W6t.make(e):e}catch{return}},V6t=(e,r,i=240)=>S6(e,r,i);var H6t=e=>{let r=e.sourceKey??"in_memory.tools";return Object.entries(e.tools).sort(([i],[s])=>i.localeCompare(s)).map(([i,s])=>{let l=z7r(s)?s:{tool:s},d=l.metadata?{sourceKey:r,...l.metadata}:{sourceKey:r};return{path:A7r(i),tool:l.tool,metadata:d}})};function K6t(e){return H6t({tools:e.tools,sourceKey:e.sourceKey}).map(i=>{let s=i.metadata,l=i.tool,d=s?.contract?.inputSchema??yJe(l.inputSchema)??yJe(l.parameters),h=s?.contract?.outputSchema??yJe(l.outputSchema),S={inputTypePreview:s?.contract?.inputTypePreview??V6t(d,"unknown"),outputTypePreview:s?.contract?.outputTypePreview??V6t(h,"unknown"),...d!==void 0?{inputSchema:d}:{},...h!==void 0?{outputSchema:h}:{},...s?.contract?.exampleInput!==void 0?{exampleInput:s.contract.exampleInput}:{},...s?.contract?.exampleOutput!==void 0?{exampleOutput:s.contract.exampleOutput}:{}};return{path:i.path,sourceKey:s?.sourceKey??"in_memory.tools",description:l.description,interaction:s?.interaction,elicitation:s?.elicitation,contract:S,...s?.providerKind?{providerKind:s.providerKind}:{},...s?.providerData!==void 0?{providerData:s.providerData}:{}}})}var vJe=e=>e.replace(/[^a-zA-Z0-9._-]/g,"_"),q7r=()=>{let e=0;return r=>{e+=1;let i=typeof r.context?.runId=="string"&&r.context.runId.length>0?r.context.runId:"run",s=typeof r.context?.callId=="string"&&r.context.callId.length>0?r.context.callId:`call_${String(e)}`;return`${vJe(i)}:${vJe(s)}:${vJe(String(r.path))}:${String(e)}`}},Q7=e=>{let r=H6t({tools:e.tools,sourceKey:e.sourceKey}),i=new Map(r.map(l=>[l.path,l])),s=q7r();return{invoke:({path:l,args:d,context:h})=>U0.gen(function*(){let S=i.get(l);if(!S)return yield*fle("tool-map",`Unknown tool path: ${l}`);let b=yield*G6t({schema:S.tool.inputSchema,value:d,path:l}),A=yield*L7r({path:S.path,args:b,metadata:S.metadata,sourceKey:S.metadata?.sourceKey??"in_memory.tools",context:h,onToolInteraction:e.onToolInteraction}),L=A.kind==="elicit"&&A.interactionId?A.interactionId:s({path:S.path,context:h}),V=yield*$7r({path:S.path,args:b,inputSchema:S.tool.inputSchema,metadata:S.metadata,sourceKey:S.metadata?.sourceKey??"in_memory.tools",context:h,decision:A,interactionId:L,onElicitation:e.onElicitation});return yield*U0.tryPromise({try:()=>Promise.resolve(S.tool.execute(V,{path:S.path,sourceKey:S.metadata?.sourceKey??"in_memory.tools",metadata:S.metadata,invocation:h,onElicitation:e.onElicitation})),catch:xJe})})}};import*as Wv from"effect/Effect";var Q6t=e=>e.toLowerCase().split(/\W+/).map(r=>r.trim()).filter(Boolean),J7r=e=>[e.path,e.sourceKey,e.description??"",e.contract?.inputTypePreview??"",e.contract?.outputTypePreview??""].join(" ").toLowerCase(),V2e=(e,r)=>{let i=e.contract;if(i)return r?i:{...i.inputTypePreview!==void 0?{inputTypePreview:i.inputTypePreview}:{},...i.outputTypePreview!==void 0?{outputTypePreview:i.outputTypePreview}:{},...i.exampleInput!==void 0?{exampleInput:i.exampleInput}:{},...i.exampleOutput!==void 0?{exampleOutput:i.exampleOutput}:{}}},Z6t=e=>{let{descriptor:r,includeSchemas:i}=e;return i?r:{...r,...V2e(r,!1)?{contract:V2e(r,!1)}:{}}};var V7r=e=>{let[r,i]=e.split(".");return i?`${r}.${i}`:r},TJe=e=>e.namespace??V7r(e.descriptor.path),X6t=e=>e.searchText?.trim().toLowerCase()||J7r(e.descriptor),W7r=(e,r)=>{if(r.score)return r.score(e);let i=X6t(r);return e.reduce((s,l)=>s+(i.includes(l)?1:0),0)},G7r=e=>{let r=new Map;for(let i of e)for(let s of i){let l=r.get(s.namespace);r.set(s.namespace,{namespace:s.namespace,displayName:l?.displayName??s.displayName,...l?.toolCount!==void 0||s.toolCount!==void 0?{toolCount:(l?.toolCount??0)+(s.toolCount??0)}:{}})}return[...r.values()].sort((i,s)=>i.namespace.localeCompare(s.namespace))},H7r=e=>{let r=new Map;for(let i of e)for(let s of i)r.has(s.path)||r.set(s.path,s);return[...r.values()].sort((i,s)=>i.path.localeCompare(s.path))},K7r=e=>{let r=new Map;for(let i of e)for(let s of i)r.has(s.path)||r.set(s.path,s);return[...r.values()].sort((i,s)=>s.score-i.score||i.path.localeCompare(s.path))};function Z7(e){return EJe({entries:K6t({tools:e.tools}).map(r=>({descriptor:r,...e.defaultNamespace!==void 0?{namespace:e.defaultNamespace}:{}}))})}function EJe(e){let r=[...e.entries],i=new Map(r.map(l=>[l.descriptor.path,l])),s=new Map;for(let l of r){let d=TJe(l);s.set(d,(s.get(d)??0)+1)}return{listNamespaces:({limit:l})=>Wv.succeed([...s.entries()].map(([d,h])=>({namespace:d,toolCount:h})).slice(0,l)),listTools:({namespace:l,query:d,limit:h,includeSchemas:S=!1})=>Wv.succeed(r.filter(b=>!l||TJe(b)===l).filter(b=>{if(!d)return!0;let A=X6t(b);return Q6t(d).every(L=>A.includes(L))}).slice(0,h).map(b=>Z6t({descriptor:b.descriptor,includeSchemas:S}))),getToolByPath:({path:l,includeSchemas:d})=>Wv.succeed(i.get(l)?Z6t({descriptor:i.get(l).descriptor,includeSchemas:d}):null),searchTools:({query:l,namespace:d,limit:h})=>{let S=Q6t(l);return Wv.succeed(r.filter(b=>!d||TJe(b)===d).map(b=>({path:b.descriptor.path,score:W7r(S,b)})).filter(b=>b.score>0).sort((b,A)=>A.score-b.score).slice(0,h))}}}function Y6t(e){let r=[...e.catalogs];return{listNamespaces:({limit:i})=>Wv.gen(function*(){let s=yield*Wv.forEach(r,l=>l.listNamespaces({limit:Math.max(i,i*r.length)}),{concurrency:"unbounded"});return G7r(s).slice(0,i)}),listTools:({namespace:i,query:s,limit:l,includeSchemas:d=!1})=>Wv.gen(function*(){let h=yield*Wv.forEach(r,S=>S.listTools({...i!==void 0?{namespace:i}:{},...s!==void 0?{query:s}:{},limit:Math.max(l,l*r.length),includeSchemas:d}),{concurrency:"unbounded"});return H7r(h).slice(0,l)}),getToolByPath:({path:i,includeSchemas:s})=>Wv.gen(function*(){for(let l of r){let d=yield*l.getToolByPath({path:i,includeSchemas:s});if(d)return d}return null}),searchTools:({query:i,namespace:s,limit:l})=>Wv.gen(function*(){let d=yield*Wv.forEach(r,h=>h.searchTools({query:i,...s!==void 0?{namespace:s}:{},limit:Math.max(l,l*r.length)}),{concurrency:"unbounded"});return K7r(d).slice(0,l)})}}function e4t(e){let{catalog:r}=e;return{catalog:{namespaces:({limit:d=200})=>r.listNamespaces({limit:d}).pipe(Wv.map(h=>({namespaces:h}))),tools:({namespace:d,query:h,limit:S=200,includeSchemas:b=!1})=>r.listTools({...d!==void 0?{namespace:d}:{},...h!==void 0?{query:h}:{},limit:S,includeSchemas:b}).pipe(Wv.map(A=>({results:A})))},describe:{tool:({path:d,includeSchemas:h=!1})=>r.getToolByPath({path:d,includeSchemas:h})},discover:({query:d,sourceKey:h,limit:S=12,includeSchemas:b=!1})=>Wv.gen(function*(){let A=yield*r.searchTools({query:d,limit:S});if(A.length===0)return{bestPath:null,results:[],total:0};let L=yield*Wv.forEach(A,j=>r.getToolByPath({path:j.path,includeSchemas:b}),{concurrency:"unbounded"}),V=A.map((j,ie)=>{let te=L[ie];return te?{path:te.path,score:j.score,description:te.description,interaction:te.interaction??"auto",...V2e(te,b)?{contract:V2e(te,b)}:{}}:null}).filter(Boolean);return{bestPath:V[0]?.path??null,results:V,total:V.length}})}}import*as mle from"effect/Effect";import*as Eu from"effect/Schema";var Q7r=e=>e,Z7r=Eu.standardSchemaV1(Eu.Struct({limit:Eu.optional(Eu.Number)})),X7r=Eu.standardSchemaV1(Eu.Struct({namespaces:Eu.Array(Zwt)})),Y7r=Eu.standardSchemaV1(Eu.Struct({namespace:Eu.optional(Eu.String),query:Eu.optional(Eu.String),limit:Eu.optional(Eu.Number),includeSchemas:Eu.optional(Eu.Boolean)})),e5r=Eu.standardSchemaV1(Eu.Struct({results:Eu.Array(u2e)})),t5r=Eu.standardSchemaV1(Eu.Struct({path:Eu.String,includeSchemas:Eu.optional(Eu.Boolean)})),r5r=Eu.standardSchemaV1(Eu.NullOr(u2e)),n5r=Eu.standardSchemaV1(Eu.Struct({query:Eu.String,limit:Eu.optional(Eu.Number),includeSchemas:Eu.optional(Eu.Boolean)})),i5r=Eu.extend(u2e,Eu.Struct({score:Eu.Number})),o5r=Eu.standardSchemaV1(Eu.Struct({bestPath:Eu.NullOr(Eu.String),results:Eu.Array(i5r),total:Eu.Number})),t4t=e=>{let r=e.sourceKey??"system",i=()=>{if(e.catalog)return e.catalog;if(e.getCatalog)return e.getCatalog();throw new Error("createSystemToolMap requires a catalog or getCatalog")},s=()=>e4t({catalog:i()}),l={};return l["catalog.namespaces"]=Bw({tool:{description:"List available namespaces with display names and tool counts",inputSchema:Z7r,outputSchema:X7r,execute:({limit:d})=>mle.runPromise(s().catalog.namespaces(d!==void 0?{limit:d}:{}))},metadata:{sourceKey:r,interaction:"auto"}}),l["catalog.tools"]=Bw({tool:{description:"List tools with optional namespace and query filters",inputSchema:Y7r,outputSchema:e5r,execute:d=>mle.runPromise(s().catalog.tools({...d.namespace!==void 0?{namespace:d.namespace}:{},...d.query!==void 0?{query:d.query}:{},...d.limit!==void 0?{limit:d.limit}:{},...d.includeSchemas!==void 0?{includeSchemas:d.includeSchemas}:{}}))},metadata:{sourceKey:r,interaction:"auto"}}),l["describe.tool"]=Bw({tool:{description:"Get metadata and optional schemas for a tool path",inputSchema:t5r,outputSchema:r5r,execute:({path:d,includeSchemas:h})=>mle.runPromise(s().describe.tool({path:Q7r(d),...h!==void 0?{includeSchemas:h}:{}}))},metadata:{sourceKey:r,interaction:"auto"}}),l.discover=Bw({tool:{description:"Search tools by intent and return ranked matches",inputSchema:n5r,outputSchema:o5r,execute:d=>mle.runPromise(s().discover({query:d.query,...d.limit!==void 0?{limit:d.limit}:{},...d.includeSchemas!==void 0?{includeSchemas:d.includeSchemas}:{}}))},metadata:{sourceKey:r,interaction:"auto"}}),l},r4t=(e,r={})=>{let i=r.conflictMode??"throw",s={};for(let l of e)for(let[d,h]of Object.entries(l)){if(i==="throw"&&d in s)throw new Error(`Tool path conflict: ${d}`);s[d]=h}return s};var n4t=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),a5r=e=>e.replaceAll("~1","/").replaceAll("~0","~"),s5r=e=>{let r=e.trim();return r.length===0?[]:r.startsWith("/")?r.split("/").slice(1).map(a5r).filter(i=>i.length>0):r.split(".").filter(i=>i.length>0)},c5r=(e,r)=>{let i=r.toLowerCase();for(let s of Object.keys(e))if(s.toLowerCase()===i)return s;return null},l5r=e=>{let r={};for(let i of e.split(";")){let s=i.trim();if(s.length===0)continue;let l=s.indexOf("=");if(l===-1){r[s]="";continue}let d=s.slice(0,l).trim(),h=s.slice(l+1).trim();d.length>0&&(r[d]=h)}return r},u5r=(e,r,i)=>{let s=e;for(let l=0;l{let r=e.url instanceof URL?new URL(e.url.toString()):new URL(e.url);for(let[i,s]of Object.entries(e.queryParams??{}))r.searchParams.set(i,s);return r},pD=e=>{let r=e.cookies??{};if(Object.keys(r).length===0)return{...e.headers};let i=c5r(e.headers,"cookie"),s=i?e.headers[i]:null,l={...s?l5r(s):{},...r},d={...e.headers};return d[i??"cookie"]=Object.entries(l).map(([h,S])=>`${h}=${encodeURIComponent(S)}`).join("; "),d},X7=e=>{let r=e.bodyValues??{};if(Object.keys(r).length===0)return e.body;let i=e.body==null?{}:n4t(e.body)?structuredClone(e.body):null;if(i===null)throw new Error(`${e.label??"HTTP request"} auth body placements require an object JSON body`);for(let[s,l]of Object.entries(r)){let d=s5r(s);if(d.length===0)throw new Error(`${e.label??"HTTP request"} auth body placement path cannot be empty`);u5r(i,d,l)}return i};var p5r=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),IN=(e,r)=>e>>>r|e<<32-r,_5r=(e,r)=>{let i=new Uint32Array(64);for(let V=0;V<16;V++)i[V]=r[V];for(let V=16;V<64;V++){let j=IN(i[V-15],7)^IN(i[V-15],18)^i[V-15]>>>3,ie=IN(i[V-2],17)^IN(i[V-2],19)^i[V-2]>>>10;i[V]=i[V-16]+j+i[V-7]+ie|0}let s=e[0],l=e[1],d=e[2],h=e[3],S=e[4],b=e[5],A=e[6],L=e[7];for(let V=0;V<64;V++){let j=IN(S,6)^IN(S,11)^IN(S,25),ie=S&b^~S&A,te=L+j+ie+p5r[V]+i[V]|0,X=IN(s,2)^IN(s,13)^IN(s,22),Re=s&l^s&d^l&d,Je=X+Re|0;L=A,A=b,b=S,S=h+te|0,h=d,d=l,l=s,s=te+Je|0}e[0]=e[0]+s|0,e[1]=e[1]+l|0,e[2]=e[2]+d|0,e[3]=e[3]+h|0,e[4]=e[4]+S|0,e[5]=e[5]+b|0,e[6]=e[6]+A|0,e[7]=e[7]+L|0},d5r=e=>{if(typeof TextEncoder<"u")return new TextEncoder().encode(e);let r=[];for(let i=0;i>6,128|s&63);else if(s>=55296&&s<56320&&i+1>18,128|s>>12&63,128|s>>6&63,128|s&63)}else r.push(224|s>>12,128|s>>6&63,128|s&63)}return new Uint8Array(r)},f5r=e=>{let r=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),i=e.length*8,s=new Uint8Array(Math.ceil((e.length+9)/64)*64);s.set(e),s[e.length]=128;let l=new DataView(s.buffer);l.setUint32(s.length-4,i,!1),i>4294967295&&l.setUint32(s.length-8,Math.floor(i/4294967296),!1);let d=new Uint32Array(16);for(let b=0;b{let r="";for(let i=0;im5r(f5r(d5r(e)));import*as UD from"effect/Effect";import*as tPe from"effect/Option";import*as i4t from"effect/Data";import*as tg from"effect/Effect";import*as o4t from"effect/Exit";import*as pX from"effect/Scope";var W2e=class extends i4t.TaggedError("McpConnectionPoolError"){},Y7=new Map,a4t=e=>new W2e(e),h5r=(e,r,i)=>{let s=Y7.get(e);!s||s.get(r)!==i||(s.delete(r),s.size===0&&Y7.delete(e))},g5r=e=>tg.tryPromise({try:()=>Promise.resolve(e.close?.()),catch:r=>a4t({operation:"close",message:"Failed closing pooled MCP connection",cause:r})}).pipe(tg.ignore),y5r=e=>{let r=tg.runSync(pX.make()),i=tg.runSync(tg.cached(tg.acquireRelease(e.pipe(tg.mapError(s=>a4t({operation:"connect",message:"Failed creating pooled MCP connection",cause:s}))),g5r).pipe(pX.extend(r))));return{scope:r,connection:i}},v5r=e=>{let r=Y7.get(e.runId)?.get(e.sourceKey);if(r)return r;let i=Y7.get(e.runId);i||(i=new Map,Y7.set(e.runId,i));let s=y5r(e.connect);return s.connection=s.connection.pipe(tg.tapError(()=>tg.sync(()=>{h5r(e.runId,e.sourceKey,s)}).pipe(tg.zipRight(kJe(s))))),i.set(e.sourceKey,s),s},kJe=e=>pX.close(e.scope,o4t.void).pipe(tg.ignore),CJe=e=>!e.runId||!e.sourceKey?e.connect:tg.gen(function*(){return{client:(yield*v5r({runId:e.runId,sourceKey:e.sourceKey,connect:e.connect}).connection).client,close:async()=>{}}}),G2e=e=>{let r=Y7.get(e);return r?(Y7.delete(e),tg.forEach([...r.values()],kJe,{discard:!0})):tg.void},DJe=()=>{let e=[...Y7.values()].flatMap(r=>[...r.values()]);return Y7.clear(),tg.forEach(e,kJe,{discard:!0})};var Ld;(function(e){e.assertEqual=l=>{};function r(l){}e.assertIs=r;function i(l){throw new Error}e.assertNever=i,e.arrayToEnum=l=>{let d={};for(let h of l)d[h]=h;return d},e.getValidEnumValues=l=>{let d=e.objectKeys(l).filter(S=>typeof l[l[S]]!="number"),h={};for(let S of d)h[S]=l[S];return e.objectValues(h)},e.objectValues=l=>e.objectKeys(l).map(function(d){return l[d]}),e.objectKeys=typeof Object.keys=="function"?l=>Object.keys(l):l=>{let d=[];for(let h in l)Object.prototype.hasOwnProperty.call(l,h)&&d.push(h);return d},e.find=(l,d)=>{for(let h of l)if(d(h))return h},e.isInteger=typeof Number.isInteger=="function"?l=>Number.isInteger(l):l=>typeof l=="number"&&Number.isFinite(l)&&Math.floor(l)===l;function s(l,d=" | "){return l.map(h=>typeof h=="string"?`'${h}'`:h).join(d)}e.joinValues=s,e.jsonStringifyReplacer=(l,d)=>typeof d=="bigint"?d.toString():d})(Ld||(Ld={}));var s4t;(function(e){e.mergeShapes=(r,i)=>({...r,...i})})(s4t||(s4t={}));var Oc=Ld.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),e5=e=>{switch(typeof e){case"undefined":return Oc.undefined;case"string":return Oc.string;case"number":return Number.isNaN(e)?Oc.nan:Oc.number;case"boolean":return Oc.boolean;case"function":return Oc.function;case"bigint":return Oc.bigint;case"symbol":return Oc.symbol;case"object":return Array.isArray(e)?Oc.array:e===null?Oc.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Oc.promise:typeof Map<"u"&&e instanceof Map?Oc.map:typeof Set<"u"&&e instanceof Set?Oc.set:typeof Date<"u"&&e instanceof Date?Oc.date:Oc.object;default:return Oc.unknown}};var Za=Ld.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var dD=class e extends Error{get errors(){return this.issues}constructor(r){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};let i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=r}format(r){let i=r||function(d){return d.message},s={_errors:[]},l=d=>{for(let h of d.issues)if(h.code==="invalid_union")h.unionErrors.map(l);else if(h.code==="invalid_return_type")l(h.returnTypeError);else if(h.code==="invalid_arguments")l(h.argumentsError);else if(h.path.length===0)s._errors.push(i(h));else{let S=s,b=0;for(;bi.message){let i=Object.create(null),s=[];for(let l of this.issues)if(l.path.length>0){let d=l.path[0];i[d]=i[d]||[],i[d].push(r(l))}else s.push(r(l));return{formErrors:s,fieldErrors:i}}get formErrors(){return this.flatten()}};dD.create=e=>new dD(e);var S5r=(e,r)=>{let i;switch(e.code){case Za.invalid_type:e.received===Oc.undefined?i="Required":i=`Expected ${e.expected}, received ${e.received}`;break;case Za.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(e.expected,Ld.jsonStringifyReplacer)}`;break;case Za.unrecognized_keys:i=`Unrecognized key(s) in object: ${Ld.joinValues(e.keys,", ")}`;break;case Za.invalid_union:i="Invalid input";break;case Za.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${Ld.joinValues(e.options)}`;break;case Za.invalid_enum_value:i=`Invalid enum value. Expected ${Ld.joinValues(e.options)}, received '${e.received}'`;break;case Za.invalid_arguments:i="Invalid function arguments";break;case Za.invalid_return_type:i="Invalid function return type";break;case Za.invalid_date:i="Invalid date";break;case Za.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(i=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?i=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?i=`Invalid input: must end with "${e.validation.endsWith}"`:Ld.assertNever(e.validation):e.validation!=="regex"?i=`Invalid ${e.validation}`:i="Invalid";break;case Za.too_small:e.type==="array"?i=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?i=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?i=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?i=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?i=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:i="Invalid input";break;case Za.too_big:e.type==="array"?i=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?i=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?i=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?i=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?i=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:i="Invalid input";break;case Za.custom:i="Invalid input";break;case Za.invalid_intersection_types:i="Intersection results could not be merged";break;case Za.not_multiple_of:i=`Number must be a multiple of ${e.multipleOf}`;break;case Za.not_finite:i="Number must be finite";break;default:i=r.defaultError,Ld.assertNever(e)}return{message:i}},sj=S5r;var b5r=sj;function hle(){return b5r}var H2e=e=>{let{data:r,path:i,errorMaps:s,issueData:l}=e,d=[...i,...l.path||[]],h={...l,path:d};if(l.message!==void 0)return{...l,path:d,message:l.message};let S="",b=s.filter(A=>!!A).slice().reverse();for(let A of b)S=A(h,{data:r,defaultError:S}).message;return{...l,path:d,message:S}};function cc(e,r){let i=hle(),s=H2e({issueData:r,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,i,i===sj?void 0:sj].filter(l=>!!l)});e.common.issues.push(s)}var hT=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(r,i){let s=[];for(let l of i){if(l.status==="aborted")return np;l.status==="dirty"&&r.dirty(),s.push(l.value)}return{status:r.value,value:s}}static async mergeObjectAsync(r,i){let s=[];for(let l of i){let d=await l.key,h=await l.value;s.push({key:d,value:h})}return e.mergeObjectSync(r,s)}static mergeObjectSync(r,i){let s={};for(let l of i){let{key:d,value:h}=l;if(d.status==="aborted"||h.status==="aborted")return np;d.status==="dirty"&&r.dirty(),h.status==="dirty"&&r.dirty(),d.value!=="__proto__"&&(typeof h.value<"u"||l.alwaysSet)&&(s[d.value]=h.value)}return{status:r.value,value:s}}},np=Object.freeze({status:"aborted"}),_X=e=>({status:"dirty",value:e}),w2=e=>({status:"valid",value:e}),AJe=e=>e.status==="aborted",wJe=e=>e.status==="dirty",CJ=e=>e.status==="valid",gle=e=>typeof Promise<"u"&&e instanceof Promise;var Cl;(function(e){e.errToObj=r=>typeof r=="string"?{message:r}:r||{},e.toString=r=>typeof r=="string"?r:r?.message})(Cl||(Cl={}));var $w=class{constructor(r,i,s,l){this._cachedPath=[],this.parent=r,this.data=i,this._path=s,this._key=l}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},c4t=(e,r)=>{if(CJ(r))return{success:!0,data:r.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let i=new dD(e.common.issues);return this._error=i,this._error}}};function u_(e){if(!e)return{};let{errorMap:r,invalid_type_error:i,required_error:s,description:l}=e;if(r&&(i||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return r?{errorMap:r,description:l}:{errorMap:(h,S)=>{let{message:b}=e;return h.code==="invalid_enum_value"?{message:b??S.defaultError}:typeof S.data>"u"?{message:b??s??S.defaultError}:h.code!=="invalid_type"?{message:S.defaultError}:{message:b??i??S.defaultError}},description:l}}var K_=class{get description(){return this._def.description}_getType(r){return e5(r.data)}_getOrReturnCtx(r,i){return i||{common:r.parent.common,data:r.data,parsedType:e5(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}_processInputParams(r){return{status:new hT,ctx:{common:r.parent.common,data:r.data,parsedType:e5(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}}_parseSync(r){let i=this._parse(r);if(gle(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(r){let i=this._parse(r);return Promise.resolve(i)}parse(r,i){let s=this.safeParse(r,i);if(s.success)return s.data;throw s.error}safeParse(r,i){let s={common:{issues:[],async:i?.async??!1,contextualErrorMap:i?.errorMap},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:e5(r)},l=this._parseSync({data:r,path:s.path,parent:s});return c4t(s,l)}"~validate"(r){let i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:e5(r)};if(!this["~standard"].async)try{let s=this._parseSync({data:r,path:[],parent:i});return CJ(s)?{value:s.value}:{issues:i.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:r,path:[],parent:i}).then(s=>CJ(s)?{value:s.value}:{issues:i.common.issues})}async parseAsync(r,i){let s=await this.safeParseAsync(r,i);if(s.success)return s.data;throw s.error}async safeParseAsync(r,i){let s={common:{issues:[],contextualErrorMap:i?.errorMap,async:!0},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:e5(r)},l=this._parse({data:r,path:s.path,parent:s}),d=await(gle(l)?l:Promise.resolve(l));return c4t(s,d)}refine(r,i){let s=l=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(l):i;return this._refinement((l,d)=>{let h=r(l),S=()=>d.addIssue({code:Za.custom,...s(l)});return typeof Promise<"u"&&h instanceof Promise?h.then(b=>b?!0:(S(),!1)):h?!0:(S(),!1)})}refinement(r,i){return this._refinement((s,l)=>r(s)?!0:(l.addIssue(typeof i=="function"?i(s,l):i),!1))}_refinement(r){return new T6({schema:this,typeName:Ou.ZodEffects,effect:{type:"refinement",refinement:r}})}superRefine(r){return this._refinement(r)}constructor(r){this.spa=this.safeParseAsync,this._def=r,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:i=>this["~validate"](i)}}optional(){return x6.create(this,this._def)}nullable(){return n5.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return lj.create(this)}promise(){return DJ.create(this,this._def)}or(r){return gX.create([this,r],this._def)}and(r){return yX.create(this,r,this._def)}transform(r){return new T6({...u_(this._def),schema:this,typeName:Ou.ZodEffects,effect:{type:"transform",transform:r}})}default(r){let i=typeof r=="function"?r:()=>r;return new TX({...u_(this._def),innerType:this,defaultValue:i,typeName:Ou.ZodDefault})}brand(){return new K2e({typeName:Ou.ZodBranded,type:this,...u_(this._def)})}catch(r){let i=typeof r=="function"?r:()=>r;return new EX({...u_(this._def),innerType:this,catchValue:i,typeName:Ou.ZodCatch})}describe(r){let i=this.constructor;return new i({...this._def,description:r})}pipe(r){return Q2e.create(this,r)}readonly(){return kX.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},x5r=/^c[^\s-]{8,}$/i,T5r=/^[0-9a-z]+$/,E5r=/^[0-9A-HJKMNP-TV-Z]{26}$/i,k5r=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,C5r=/^[a-z0-9_-]{21}$/i,D5r=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,A5r=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,w5r=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,I5r="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",IJe,P5r=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,N5r=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,O5r=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,F5r=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,R5r=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,L5r=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,l4t="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",M5r=new RegExp(`^${l4t}$`);function u4t(e){let r="[0-5]\\d";e.precision?r=`${r}\\.\\d{${e.precision}}`:e.precision==null&&(r=`${r}(\\.\\d+)?`);let i=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${r})${i}`}function j5r(e){return new RegExp(`^${u4t(e)}$`)}function B5r(e){let r=`${l4t}T${u4t(e)}`,i=[];return i.push(e.local?"Z?":"Z"),e.offset&&i.push("([+-]\\d{2}:?\\d{2})"),r=`${r}(${i.join("|")})`,new RegExp(`^${r}$`)}function $5r(e,r){return!!((r==="v4"||!r)&&P5r.test(e)||(r==="v6"||!r)&&O5r.test(e))}function U5r(e,r){if(!D5r.test(e))return!1;try{let[i]=e.split(".");if(!i)return!1;let s=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),l=JSON.parse(atob(s));return!(typeof l!="object"||l===null||"typ"in l&&l?.typ!=="JWT"||!l.alg||r&&l.alg!==r)}catch{return!1}}function z5r(e,r){return!!((r==="v4"||!r)&&N5r.test(e)||(r==="v6"||!r)&&F5r.test(e))}var fX=class e extends K_{_parse(r){if(this._def.coerce&&(r.data=String(r.data)),this._getType(r)!==Oc.string){let d=this._getOrReturnCtx(r);return cc(d,{code:Za.invalid_type,expected:Oc.string,received:d.parsedType}),np}let s=new hT,l;for(let d of this._def.checks)if(d.kind==="min")r.data.lengthd.value&&(l=this._getOrReturnCtx(r,l),cc(l,{code:Za.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),s.dirty());else if(d.kind==="length"){let h=r.data.length>d.value,S=r.data.lengthr.test(l),{validation:i,code:Za.invalid_string,...Cl.errToObj(s)})}_addCheck(r){return new e({...this._def,checks:[...this._def.checks,r]})}email(r){return this._addCheck({kind:"email",...Cl.errToObj(r)})}url(r){return this._addCheck({kind:"url",...Cl.errToObj(r)})}emoji(r){return this._addCheck({kind:"emoji",...Cl.errToObj(r)})}uuid(r){return this._addCheck({kind:"uuid",...Cl.errToObj(r)})}nanoid(r){return this._addCheck({kind:"nanoid",...Cl.errToObj(r)})}cuid(r){return this._addCheck({kind:"cuid",...Cl.errToObj(r)})}cuid2(r){return this._addCheck({kind:"cuid2",...Cl.errToObj(r)})}ulid(r){return this._addCheck({kind:"ulid",...Cl.errToObj(r)})}base64(r){return this._addCheck({kind:"base64",...Cl.errToObj(r)})}base64url(r){return this._addCheck({kind:"base64url",...Cl.errToObj(r)})}jwt(r){return this._addCheck({kind:"jwt",...Cl.errToObj(r)})}ip(r){return this._addCheck({kind:"ip",...Cl.errToObj(r)})}cidr(r){return this._addCheck({kind:"cidr",...Cl.errToObj(r)})}datetime(r){return typeof r=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:r}):this._addCheck({kind:"datetime",precision:typeof r?.precision>"u"?null:r?.precision,offset:r?.offset??!1,local:r?.local??!1,...Cl.errToObj(r?.message)})}date(r){return this._addCheck({kind:"date",message:r})}time(r){return typeof r=="string"?this._addCheck({kind:"time",precision:null,message:r}):this._addCheck({kind:"time",precision:typeof r?.precision>"u"?null:r?.precision,...Cl.errToObj(r?.message)})}duration(r){return this._addCheck({kind:"duration",...Cl.errToObj(r)})}regex(r,i){return this._addCheck({kind:"regex",regex:r,...Cl.errToObj(i)})}includes(r,i){return this._addCheck({kind:"includes",value:r,position:i?.position,...Cl.errToObj(i?.message)})}startsWith(r,i){return this._addCheck({kind:"startsWith",value:r,...Cl.errToObj(i)})}endsWith(r,i){return this._addCheck({kind:"endsWith",value:r,...Cl.errToObj(i)})}min(r,i){return this._addCheck({kind:"min",value:r,...Cl.errToObj(i)})}max(r,i){return this._addCheck({kind:"max",value:r,...Cl.errToObj(i)})}length(r,i){return this._addCheck({kind:"length",value:r,...Cl.errToObj(i)})}nonempty(r){return this.min(1,Cl.errToObj(r))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(r=>r.kind==="datetime")}get isDate(){return!!this._def.checks.find(r=>r.kind==="date")}get isTime(){return!!this._def.checks.find(r=>r.kind==="time")}get isDuration(){return!!this._def.checks.find(r=>r.kind==="duration")}get isEmail(){return!!this._def.checks.find(r=>r.kind==="email")}get isURL(){return!!this._def.checks.find(r=>r.kind==="url")}get isEmoji(){return!!this._def.checks.find(r=>r.kind==="emoji")}get isUUID(){return!!this._def.checks.find(r=>r.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(r=>r.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(r=>r.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(r=>r.kind==="cuid2")}get isULID(){return!!this._def.checks.find(r=>r.kind==="ulid")}get isIP(){return!!this._def.checks.find(r=>r.kind==="ip")}get isCIDR(){return!!this._def.checks.find(r=>r.kind==="cidr")}get isBase64(){return!!this._def.checks.find(r=>r.kind==="base64")}get isBase64url(){return!!this._def.checks.find(r=>r.kind==="base64url")}get minLength(){let r=null;for(let i of this._def.checks)i.kind==="min"&&(r===null||i.value>r)&&(r=i.value);return r}get maxLength(){let r=null;for(let i of this._def.checks)i.kind==="max"&&(r===null||i.valuenew fX({checks:[],typeName:Ou.ZodString,coerce:e?.coerce??!1,...u_(e)});function q5r(e,r){let i=(e.toString().split(".")[1]||"").length,s=(r.toString().split(".")[1]||"").length,l=i>s?i:s,d=Number.parseInt(e.toFixed(l).replace(".","")),h=Number.parseInt(r.toFixed(l).replace(".",""));return d%h/10**l}var yle=class e extends K_{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(r){if(this._def.coerce&&(r.data=Number(r.data)),this._getType(r)!==Oc.number){let d=this._getOrReturnCtx(r);return cc(d,{code:Za.invalid_type,expected:Oc.number,received:d.parsedType}),np}let s,l=new hT;for(let d of this._def.checks)d.kind==="int"?Ld.isInteger(r.data)||(s=this._getOrReturnCtx(r,s),cc(s,{code:Za.invalid_type,expected:"integer",received:"float",message:d.message}),l.dirty()):d.kind==="min"?(d.inclusive?r.datad.value:r.data>=d.value)&&(s=this._getOrReturnCtx(r,s),cc(s,{code:Za.too_big,maximum:d.value,type:"number",inclusive:d.inclusive,exact:!1,message:d.message}),l.dirty()):d.kind==="multipleOf"?q5r(r.data,d.value)!==0&&(s=this._getOrReturnCtx(r,s),cc(s,{code:Za.not_multiple_of,multipleOf:d.value,message:d.message}),l.dirty()):d.kind==="finite"?Number.isFinite(r.data)||(s=this._getOrReturnCtx(r,s),cc(s,{code:Za.not_finite,message:d.message}),l.dirty()):Ld.assertNever(d);return{status:l.value,value:r.data}}gte(r,i){return this.setLimit("min",r,!0,Cl.toString(i))}gt(r,i){return this.setLimit("min",r,!1,Cl.toString(i))}lte(r,i){return this.setLimit("max",r,!0,Cl.toString(i))}lt(r,i){return this.setLimit("max",r,!1,Cl.toString(i))}setLimit(r,i,s,l){return new e({...this._def,checks:[...this._def.checks,{kind:r,value:i,inclusive:s,message:Cl.toString(l)}]})}_addCheck(r){return new e({...this._def,checks:[...this._def.checks,r]})}int(r){return this._addCheck({kind:"int",message:Cl.toString(r)})}positive(r){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Cl.toString(r)})}negative(r){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Cl.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Cl.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Cl.toString(r)})}multipleOf(r,i){return this._addCheck({kind:"multipleOf",value:r,message:Cl.toString(i)})}finite(r){return this._addCheck({kind:"finite",message:Cl.toString(r)})}safe(r){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Cl.toString(r)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Cl.toString(r)})}get minValue(){let r=null;for(let i of this._def.checks)i.kind==="min"&&(r===null||i.value>r)&&(r=i.value);return r}get maxValue(){let r=null;for(let i of this._def.checks)i.kind==="max"&&(r===null||i.valuer.kind==="int"||r.kind==="multipleOf"&&Ld.isInteger(r.value))}get isFinite(){let r=null,i=null;for(let s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(i===null||s.value>i)&&(i=s.value):s.kind==="max"&&(r===null||s.valuenew yle({checks:[],typeName:Ou.ZodNumber,coerce:e?.coerce||!1,...u_(e)});var vle=class e extends K_{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(r){if(this._def.coerce)try{r.data=BigInt(r.data)}catch{return this._getInvalidInput(r)}if(this._getType(r)!==Oc.bigint)return this._getInvalidInput(r);let s,l=new hT;for(let d of this._def.checks)d.kind==="min"?(d.inclusive?r.datad.value:r.data>=d.value)&&(s=this._getOrReturnCtx(r,s),cc(s,{code:Za.too_big,type:"bigint",maximum:d.value,inclusive:d.inclusive,message:d.message}),l.dirty()):d.kind==="multipleOf"?r.data%d.value!==BigInt(0)&&(s=this._getOrReturnCtx(r,s),cc(s,{code:Za.not_multiple_of,multipleOf:d.value,message:d.message}),l.dirty()):Ld.assertNever(d);return{status:l.value,value:r.data}}_getInvalidInput(r){let i=this._getOrReturnCtx(r);return cc(i,{code:Za.invalid_type,expected:Oc.bigint,received:i.parsedType}),np}gte(r,i){return this.setLimit("min",r,!0,Cl.toString(i))}gt(r,i){return this.setLimit("min",r,!1,Cl.toString(i))}lte(r,i){return this.setLimit("max",r,!0,Cl.toString(i))}lt(r,i){return this.setLimit("max",r,!1,Cl.toString(i))}setLimit(r,i,s,l){return new e({...this._def,checks:[...this._def.checks,{kind:r,value:i,inclusive:s,message:Cl.toString(l)}]})}_addCheck(r){return new e({...this._def,checks:[...this._def.checks,r]})}positive(r){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Cl.toString(r)})}negative(r){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Cl.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Cl.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Cl.toString(r)})}multipleOf(r,i){return this._addCheck({kind:"multipleOf",value:r,message:Cl.toString(i)})}get minValue(){let r=null;for(let i of this._def.checks)i.kind==="min"&&(r===null||i.value>r)&&(r=i.value);return r}get maxValue(){let r=null;for(let i of this._def.checks)i.kind==="max"&&(r===null||i.valuenew vle({checks:[],typeName:Ou.ZodBigInt,coerce:e?.coerce??!1,...u_(e)});var Sle=class extends K_{_parse(r){if(this._def.coerce&&(r.data=!!r.data),this._getType(r)!==Oc.boolean){let s=this._getOrReturnCtx(r);return cc(s,{code:Za.invalid_type,expected:Oc.boolean,received:s.parsedType}),np}return w2(r.data)}};Sle.create=e=>new Sle({typeName:Ou.ZodBoolean,coerce:e?.coerce||!1,...u_(e)});var ble=class e extends K_{_parse(r){if(this._def.coerce&&(r.data=new Date(r.data)),this._getType(r)!==Oc.date){let d=this._getOrReturnCtx(r);return cc(d,{code:Za.invalid_type,expected:Oc.date,received:d.parsedType}),np}if(Number.isNaN(r.data.getTime())){let d=this._getOrReturnCtx(r);return cc(d,{code:Za.invalid_date}),np}let s=new hT,l;for(let d of this._def.checks)d.kind==="min"?r.data.getTime()d.value&&(l=this._getOrReturnCtx(r,l),cc(l,{code:Za.too_big,message:d.message,inclusive:!0,exact:!1,maximum:d.value,type:"date"}),s.dirty()):Ld.assertNever(d);return{status:s.value,value:new Date(r.data.getTime())}}_addCheck(r){return new e({...this._def,checks:[...this._def.checks,r]})}min(r,i){return this._addCheck({kind:"min",value:r.getTime(),message:Cl.toString(i)})}max(r,i){return this._addCheck({kind:"max",value:r.getTime(),message:Cl.toString(i)})}get minDate(){let r=null;for(let i of this._def.checks)i.kind==="min"&&(r===null||i.value>r)&&(r=i.value);return r!=null?new Date(r):null}get maxDate(){let r=null;for(let i of this._def.checks)i.kind==="max"&&(r===null||i.valuenew ble({checks:[],coerce:e?.coerce||!1,typeName:Ou.ZodDate,...u_(e)});var xle=class extends K_{_parse(r){if(this._getType(r)!==Oc.symbol){let s=this._getOrReturnCtx(r);return cc(s,{code:Za.invalid_type,expected:Oc.symbol,received:s.parsedType}),np}return w2(r.data)}};xle.create=e=>new xle({typeName:Ou.ZodSymbol,...u_(e)});var mX=class extends K_{_parse(r){if(this._getType(r)!==Oc.undefined){let s=this._getOrReturnCtx(r);return cc(s,{code:Za.invalid_type,expected:Oc.undefined,received:s.parsedType}),np}return w2(r.data)}};mX.create=e=>new mX({typeName:Ou.ZodUndefined,...u_(e)});var hX=class extends K_{_parse(r){if(this._getType(r)!==Oc.null){let s=this._getOrReturnCtx(r);return cc(s,{code:Za.invalid_type,expected:Oc.null,received:s.parsedType}),np}return w2(r.data)}};hX.create=e=>new hX({typeName:Ou.ZodNull,...u_(e)});var Tle=class extends K_{constructor(){super(...arguments),this._any=!0}_parse(r){return w2(r.data)}};Tle.create=e=>new Tle({typeName:Ou.ZodAny,...u_(e)});var cj=class extends K_{constructor(){super(...arguments),this._unknown=!0}_parse(r){return w2(r.data)}};cj.create=e=>new cj({typeName:Ou.ZodUnknown,...u_(e)});var PN=class extends K_{_parse(r){let i=this._getOrReturnCtx(r);return cc(i,{code:Za.invalid_type,expected:Oc.never,received:i.parsedType}),np}};PN.create=e=>new PN({typeName:Ou.ZodNever,...u_(e)});var Ele=class extends K_{_parse(r){if(this._getType(r)!==Oc.undefined){let s=this._getOrReturnCtx(r);return cc(s,{code:Za.invalid_type,expected:Oc.void,received:s.parsedType}),np}return w2(r.data)}};Ele.create=e=>new Ele({typeName:Ou.ZodVoid,...u_(e)});var lj=class e extends K_{_parse(r){let{ctx:i,status:s}=this._processInputParams(r),l=this._def;if(i.parsedType!==Oc.array)return cc(i,{code:Za.invalid_type,expected:Oc.array,received:i.parsedType}),np;if(l.exactLength!==null){let h=i.data.length>l.exactLength.value,S=i.data.lengthl.maxLength.value&&(cc(i,{code:Za.too_big,maximum:l.maxLength.value,type:"array",inclusive:!0,exact:!1,message:l.maxLength.message}),s.dirty()),i.common.async)return Promise.all([...i.data].map((h,S)=>l.type._parseAsync(new $w(i,h,i.path,S)))).then(h=>hT.mergeArray(s,h));let d=[...i.data].map((h,S)=>l.type._parseSync(new $w(i,h,i.path,S)));return hT.mergeArray(s,d)}get element(){return this._def.type}min(r,i){return new e({...this._def,minLength:{value:r,message:Cl.toString(i)}})}max(r,i){return new e({...this._def,maxLength:{value:r,message:Cl.toString(i)}})}length(r,i){return new e({...this._def,exactLength:{value:r,message:Cl.toString(i)}})}nonempty(r){return this.min(1,r)}};lj.create=(e,r)=>new lj({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ou.ZodArray,...u_(r)});function dX(e){if(e instanceof fD){let r={};for(let i in e.shape){let s=e.shape[i];r[i]=x6.create(dX(s))}return new fD({...e._def,shape:()=>r})}else return e instanceof lj?new lj({...e._def,type:dX(e.element)}):e instanceof x6?x6.create(dX(e.unwrap())):e instanceof n5?n5.create(dX(e.unwrap())):e instanceof r5?r5.create(e.items.map(r=>dX(r))):e}var fD=class e extends K_{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let r=this._def.shape(),i=Ld.objectKeys(r);return this._cached={shape:r,keys:i},this._cached}_parse(r){if(this._getType(r)!==Oc.object){let A=this._getOrReturnCtx(r);return cc(A,{code:Za.invalid_type,expected:Oc.object,received:A.parsedType}),np}let{status:s,ctx:l}=this._processInputParams(r),{shape:d,keys:h}=this._getCached(),S=[];if(!(this._def.catchall instanceof PN&&this._def.unknownKeys==="strip"))for(let A in l.data)h.includes(A)||S.push(A);let b=[];for(let A of h){let L=d[A],V=l.data[A];b.push({key:{status:"valid",value:A},value:L._parse(new $w(l,V,l.path,A)),alwaysSet:A in l.data})}if(this._def.catchall instanceof PN){let A=this._def.unknownKeys;if(A==="passthrough")for(let L of S)b.push({key:{status:"valid",value:L},value:{status:"valid",value:l.data[L]}});else if(A==="strict")S.length>0&&(cc(l,{code:Za.unrecognized_keys,keys:S}),s.dirty());else if(A!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let A=this._def.catchall;for(let L of S){let V=l.data[L];b.push({key:{status:"valid",value:L},value:A._parse(new $w(l,V,l.path,L)),alwaysSet:L in l.data})}}return l.common.async?Promise.resolve().then(async()=>{let A=[];for(let L of b){let V=await L.key,j=await L.value;A.push({key:V,value:j,alwaysSet:L.alwaysSet})}return A}).then(A=>hT.mergeObjectSync(s,A)):hT.mergeObjectSync(s,b)}get shape(){return this._def.shape()}strict(r){return Cl.errToObj,new e({...this._def,unknownKeys:"strict",...r!==void 0?{errorMap:(i,s)=>{let l=this._def.errorMap?.(i,s).message??s.defaultError;return i.code==="unrecognized_keys"?{message:Cl.errToObj(r).message??l}:{message:l}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(r){return new e({...this._def,shape:()=>({...this._def.shape(),...r})})}merge(r){return new e({unknownKeys:r._def.unknownKeys,catchall:r._def.catchall,shape:()=>({...this._def.shape(),...r._def.shape()}),typeName:Ou.ZodObject})}setKey(r,i){return this.augment({[r]:i})}catchall(r){return new e({...this._def,catchall:r})}pick(r){let i={};for(let s of Ld.objectKeys(r))r[s]&&this.shape[s]&&(i[s]=this.shape[s]);return new e({...this._def,shape:()=>i})}omit(r){let i={};for(let s of Ld.objectKeys(this.shape))r[s]||(i[s]=this.shape[s]);return new e({...this._def,shape:()=>i})}deepPartial(){return dX(this)}partial(r){let i={};for(let s of Ld.objectKeys(this.shape)){let l=this.shape[s];r&&!r[s]?i[s]=l:i[s]=l.optional()}return new e({...this._def,shape:()=>i})}required(r){let i={};for(let s of Ld.objectKeys(this.shape))if(r&&!r[s])i[s]=this.shape[s];else{let d=this.shape[s];for(;d instanceof x6;)d=d._def.innerType;i[s]=d}return new e({...this._def,shape:()=>i})}keyof(){return p4t(Ld.objectKeys(this.shape))}};fD.create=(e,r)=>new fD({shape:()=>e,unknownKeys:"strip",catchall:PN.create(),typeName:Ou.ZodObject,...u_(r)});fD.strictCreate=(e,r)=>new fD({shape:()=>e,unknownKeys:"strict",catchall:PN.create(),typeName:Ou.ZodObject,...u_(r)});fD.lazycreate=(e,r)=>new fD({shape:e,unknownKeys:"strip",catchall:PN.create(),typeName:Ou.ZodObject,...u_(r)});var gX=class extends K_{_parse(r){let{ctx:i}=this._processInputParams(r),s=this._def.options;function l(d){for(let S of d)if(S.result.status==="valid")return S.result;for(let S of d)if(S.result.status==="dirty")return i.common.issues.push(...S.ctx.common.issues),S.result;let h=d.map(S=>new dD(S.ctx.common.issues));return cc(i,{code:Za.invalid_union,unionErrors:h}),np}if(i.common.async)return Promise.all(s.map(async d=>{let h={...i,common:{...i.common,issues:[]},parent:null};return{result:await d._parseAsync({data:i.data,path:i.path,parent:h}),ctx:h}})).then(l);{let d,h=[];for(let b of s){let A={...i,common:{...i.common,issues:[]},parent:null},L=b._parseSync({data:i.data,path:i.path,parent:A});if(L.status==="valid")return L;L.status==="dirty"&&!d&&(d={result:L,ctx:A}),A.common.issues.length&&h.push(A.common.issues)}if(d)return i.common.issues.push(...d.ctx.common.issues),d.result;let S=h.map(b=>new dD(b));return cc(i,{code:Za.invalid_union,unionErrors:S}),np}}get options(){return this._def.options}};gX.create=(e,r)=>new gX({options:e,typeName:Ou.ZodUnion,...u_(r)});var t5=e=>e instanceof vX?t5(e.schema):e instanceof T6?t5(e.innerType()):e instanceof SX?[e.value]:e instanceof bX?e.options:e instanceof xX?Ld.objectValues(e.enum):e instanceof TX?t5(e._def.innerType):e instanceof mX?[void 0]:e instanceof hX?[null]:e instanceof x6?[void 0,...t5(e.unwrap())]:e instanceof n5?[null,...t5(e.unwrap())]:e instanceof K2e||e instanceof kX?t5(e.unwrap()):e instanceof EX?t5(e._def.innerType):[],PJe=class e extends K_{_parse(r){let{ctx:i}=this._processInputParams(r);if(i.parsedType!==Oc.object)return cc(i,{code:Za.invalid_type,expected:Oc.object,received:i.parsedType}),np;let s=this.discriminator,l=i.data[s],d=this.optionsMap.get(l);return d?i.common.async?d._parseAsync({data:i.data,path:i.path,parent:i}):d._parseSync({data:i.data,path:i.path,parent:i}):(cc(i,{code:Za.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),np)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(r,i,s){let l=new Map;for(let d of i){let h=t5(d.shape[r]);if(!h.length)throw new Error(`A discriminator value for key \`${r}\` could not be extracted from all schema options`);for(let S of h){if(l.has(S))throw new Error(`Discriminator property ${String(r)} has duplicate value ${String(S)}`);l.set(S,d)}}return new e({typeName:Ou.ZodDiscriminatedUnion,discriminator:r,options:i,optionsMap:l,...u_(s)})}};function NJe(e,r){let i=e5(e),s=e5(r);if(e===r)return{valid:!0,data:e};if(i===Oc.object&&s===Oc.object){let l=Ld.objectKeys(r),d=Ld.objectKeys(e).filter(S=>l.indexOf(S)!==-1),h={...e,...r};for(let S of d){let b=NJe(e[S],r[S]);if(!b.valid)return{valid:!1};h[S]=b.data}return{valid:!0,data:h}}else if(i===Oc.array&&s===Oc.array){if(e.length!==r.length)return{valid:!1};let l=[];for(let d=0;d{if(AJe(d)||AJe(h))return np;let S=NJe(d.value,h.value);return S.valid?((wJe(d)||wJe(h))&&i.dirty(),{status:i.value,value:S.data}):(cc(s,{code:Za.invalid_intersection_types}),np)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([d,h])=>l(d,h)):l(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}};yX.create=(e,r,i)=>new yX({left:e,right:r,typeName:Ou.ZodIntersection,...u_(i)});var r5=class e extends K_{_parse(r){let{status:i,ctx:s}=this._processInputParams(r);if(s.parsedType!==Oc.array)return cc(s,{code:Za.invalid_type,expected:Oc.array,received:s.parsedType}),np;if(s.data.lengththis._def.items.length&&(cc(s,{code:Za.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());let d=[...s.data].map((h,S)=>{let b=this._def.items[S]||this._def.rest;return b?b._parse(new $w(s,h,s.path,S)):null}).filter(h=>!!h);return s.common.async?Promise.all(d).then(h=>hT.mergeArray(i,h)):hT.mergeArray(i,d)}get items(){return this._def.items}rest(r){return new e({...this._def,rest:r})}};r5.create=(e,r)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new r5({items:e,typeName:Ou.ZodTuple,rest:null,...u_(r)})};var OJe=class e extends K_{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(r){let{status:i,ctx:s}=this._processInputParams(r);if(s.parsedType!==Oc.object)return cc(s,{code:Za.invalid_type,expected:Oc.object,received:s.parsedType}),np;let l=[],d=this._def.keyType,h=this._def.valueType;for(let S in s.data)l.push({key:d._parse(new $w(s,S,s.path,S)),value:h._parse(new $w(s,s.data[S],s.path,S)),alwaysSet:S in s.data});return s.common.async?hT.mergeObjectAsync(i,l):hT.mergeObjectSync(i,l)}get element(){return this._def.valueType}static create(r,i,s){return i instanceof K_?new e({keyType:r,valueType:i,typeName:Ou.ZodRecord,...u_(s)}):new e({keyType:fX.create(),valueType:r,typeName:Ou.ZodRecord,...u_(i)})}},kle=class extends K_{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(r){let{status:i,ctx:s}=this._processInputParams(r);if(s.parsedType!==Oc.map)return cc(s,{code:Za.invalid_type,expected:Oc.map,received:s.parsedType}),np;let l=this._def.keyType,d=this._def.valueType,h=[...s.data.entries()].map(([S,b],A)=>({key:l._parse(new $w(s,S,s.path,[A,"key"])),value:d._parse(new $w(s,b,s.path,[A,"value"]))}));if(s.common.async){let S=new Map;return Promise.resolve().then(async()=>{for(let b of h){let A=await b.key,L=await b.value;if(A.status==="aborted"||L.status==="aborted")return np;(A.status==="dirty"||L.status==="dirty")&&i.dirty(),S.set(A.value,L.value)}return{status:i.value,value:S}})}else{let S=new Map;for(let b of h){let A=b.key,L=b.value;if(A.status==="aborted"||L.status==="aborted")return np;(A.status==="dirty"||L.status==="dirty")&&i.dirty(),S.set(A.value,L.value)}return{status:i.value,value:S}}}};kle.create=(e,r,i)=>new kle({valueType:r,keyType:e,typeName:Ou.ZodMap,...u_(i)});var Cle=class e extends K_{_parse(r){let{status:i,ctx:s}=this._processInputParams(r);if(s.parsedType!==Oc.set)return cc(s,{code:Za.invalid_type,expected:Oc.set,received:s.parsedType}),np;let l=this._def;l.minSize!==null&&s.data.sizel.maxSize.value&&(cc(s,{code:Za.too_big,maximum:l.maxSize.value,type:"set",inclusive:!0,exact:!1,message:l.maxSize.message}),i.dirty());let d=this._def.valueType;function h(b){let A=new Set;for(let L of b){if(L.status==="aborted")return np;L.status==="dirty"&&i.dirty(),A.add(L.value)}return{status:i.value,value:A}}let S=[...s.data.values()].map((b,A)=>d._parse(new $w(s,b,s.path,A)));return s.common.async?Promise.all(S).then(b=>h(b)):h(S)}min(r,i){return new e({...this._def,minSize:{value:r,message:Cl.toString(i)}})}max(r,i){return new e({...this._def,maxSize:{value:r,message:Cl.toString(i)}})}size(r,i){return this.min(r,i).max(r,i)}nonempty(r){return this.min(1,r)}};Cle.create=(e,r)=>new Cle({valueType:e,minSize:null,maxSize:null,typeName:Ou.ZodSet,...u_(r)});var FJe=class e extends K_{constructor(){super(...arguments),this.validate=this.implement}_parse(r){let{ctx:i}=this._processInputParams(r);if(i.parsedType!==Oc.function)return cc(i,{code:Za.invalid_type,expected:Oc.function,received:i.parsedType}),np;function s(S,b){return H2e({data:S,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,hle(),sj].filter(A=>!!A),issueData:{code:Za.invalid_arguments,argumentsError:b}})}function l(S,b){return H2e({data:S,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,hle(),sj].filter(A=>!!A),issueData:{code:Za.invalid_return_type,returnTypeError:b}})}let d={errorMap:i.common.contextualErrorMap},h=i.data;if(this._def.returns instanceof DJ){let S=this;return w2(async function(...b){let A=new dD([]),L=await S._def.args.parseAsync(b,d).catch(ie=>{throw A.addIssue(s(b,ie)),A}),V=await Reflect.apply(h,this,L);return await S._def.returns._def.type.parseAsync(V,d).catch(ie=>{throw A.addIssue(l(V,ie)),A})})}else{let S=this;return w2(function(...b){let A=S._def.args.safeParse(b,d);if(!A.success)throw new dD([s(b,A.error)]);let L=Reflect.apply(h,this,A.data),V=S._def.returns.safeParse(L,d);if(!V.success)throw new dD([l(L,V.error)]);return V.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...r){return new e({...this._def,args:r5.create(r).rest(cj.create())})}returns(r){return new e({...this._def,returns:r})}implement(r){return this.parse(r)}strictImplement(r){return this.parse(r)}static create(r,i,s){return new e({args:r||r5.create([]).rest(cj.create()),returns:i||cj.create(),typeName:Ou.ZodFunction,...u_(s)})}},vX=class extends K_{get schema(){return this._def.getter()}_parse(r){let{ctx:i}=this._processInputParams(r);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}};vX.create=(e,r)=>new vX({getter:e,typeName:Ou.ZodLazy,...u_(r)});var SX=class extends K_{_parse(r){if(r.data!==this._def.value){let i=this._getOrReturnCtx(r);return cc(i,{received:i.data,code:Za.invalid_literal,expected:this._def.value}),np}return{status:"valid",value:r.data}}get value(){return this._def.value}};SX.create=(e,r)=>new SX({value:e,typeName:Ou.ZodLiteral,...u_(r)});function p4t(e,r){return new bX({values:e,typeName:Ou.ZodEnum,...u_(r)})}var bX=class e extends K_{_parse(r){if(typeof r.data!="string"){let i=this._getOrReturnCtx(r),s=this._def.values;return cc(i,{expected:Ld.joinValues(s),received:i.parsedType,code:Za.invalid_type}),np}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(r.data)){let i=this._getOrReturnCtx(r),s=this._def.values;return cc(i,{received:i.data,code:Za.invalid_enum_value,options:s}),np}return w2(r.data)}get options(){return this._def.values}get enum(){let r={};for(let i of this._def.values)r[i]=i;return r}get Values(){let r={};for(let i of this._def.values)r[i]=i;return r}get Enum(){let r={};for(let i of this._def.values)r[i]=i;return r}extract(r,i=this._def){return e.create(r,{...this._def,...i})}exclude(r,i=this._def){return e.create(this.options.filter(s=>!r.includes(s)),{...this._def,...i})}};bX.create=p4t;var xX=class extends K_{_parse(r){let i=Ld.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(r);if(s.parsedType!==Oc.string&&s.parsedType!==Oc.number){let l=Ld.objectValues(i);return cc(s,{expected:Ld.joinValues(l),received:s.parsedType,code:Za.invalid_type}),np}if(this._cache||(this._cache=new Set(Ld.getValidEnumValues(this._def.values))),!this._cache.has(r.data)){let l=Ld.objectValues(i);return cc(s,{received:s.data,code:Za.invalid_enum_value,options:l}),np}return w2(r.data)}get enum(){return this._def.values}};xX.create=(e,r)=>new xX({values:e,typeName:Ou.ZodNativeEnum,...u_(r)});var DJ=class extends K_{unwrap(){return this._def.type}_parse(r){let{ctx:i}=this._processInputParams(r);if(i.parsedType!==Oc.promise&&i.common.async===!1)return cc(i,{code:Za.invalid_type,expected:Oc.promise,received:i.parsedType}),np;let s=i.parsedType===Oc.promise?i.data:Promise.resolve(i.data);return w2(s.then(l=>this._def.type.parseAsync(l,{path:i.path,errorMap:i.common.contextualErrorMap})))}};DJ.create=(e,r)=>new DJ({type:e,typeName:Ou.ZodPromise,...u_(r)});var T6=class extends K_{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ou.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(r){let{status:i,ctx:s}=this._processInputParams(r),l=this._def.effect||null,d={addIssue:h=>{cc(s,h),h.fatal?i.abort():i.dirty()},get path(){return s.path}};if(d.addIssue=d.addIssue.bind(d),l.type==="preprocess"){let h=l.transform(s.data,d);if(s.common.async)return Promise.resolve(h).then(async S=>{if(i.value==="aborted")return np;let b=await this._def.schema._parseAsync({data:S,path:s.path,parent:s});return b.status==="aborted"?np:b.status==="dirty"?_X(b.value):i.value==="dirty"?_X(b.value):b});{if(i.value==="aborted")return np;let S=this._def.schema._parseSync({data:h,path:s.path,parent:s});return S.status==="aborted"?np:S.status==="dirty"?_X(S.value):i.value==="dirty"?_X(S.value):S}}if(l.type==="refinement"){let h=S=>{let b=l.refinement(S,d);if(s.common.async)return Promise.resolve(b);if(b instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return S};if(s.common.async===!1){let S=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return S.status==="aborted"?np:(S.status==="dirty"&&i.dirty(),h(S.value),{status:i.value,value:S.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(S=>S.status==="aborted"?np:(S.status==="dirty"&&i.dirty(),h(S.value).then(()=>({status:i.value,value:S.value}))))}if(l.type==="transform")if(s.common.async===!1){let h=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!CJ(h))return np;let S=l.transform(h.value,d);if(S instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:S}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(h=>CJ(h)?Promise.resolve(l.transform(h.value,d)).then(S=>({status:i.value,value:S})):np);Ld.assertNever(l)}};T6.create=(e,r,i)=>new T6({schema:e,typeName:Ou.ZodEffects,effect:r,...u_(i)});T6.createWithPreprocess=(e,r,i)=>new T6({schema:r,effect:{type:"preprocess",transform:e},typeName:Ou.ZodEffects,...u_(i)});var x6=class extends K_{_parse(r){return this._getType(r)===Oc.undefined?w2(void 0):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}};x6.create=(e,r)=>new x6({innerType:e,typeName:Ou.ZodOptional,...u_(r)});var n5=class extends K_{_parse(r){return this._getType(r)===Oc.null?w2(null):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}};n5.create=(e,r)=>new n5({innerType:e,typeName:Ou.ZodNullable,...u_(r)});var TX=class extends K_{_parse(r){let{ctx:i}=this._processInputParams(r),s=i.data;return i.parsedType===Oc.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:i.path,parent:i})}removeDefault(){return this._def.innerType}};TX.create=(e,r)=>new TX({innerType:e,typeName:Ou.ZodDefault,defaultValue:typeof r.default=="function"?r.default:()=>r.default,...u_(r)});var EX=class extends K_{_parse(r){let{ctx:i}=this._processInputParams(r),s={...i,common:{...i.common,issues:[]}},l=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return gle(l)?l.then(d=>({status:"valid",value:d.status==="valid"?d.value:this._def.catchValue({get error(){return new dD(s.common.issues)},input:s.data})})):{status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new dD(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}};EX.create=(e,r)=>new EX({innerType:e,typeName:Ou.ZodCatch,catchValue:typeof r.catch=="function"?r.catch:()=>r.catch,...u_(r)});var Dle=class extends K_{_parse(r){if(this._getType(r)!==Oc.nan){let s=this._getOrReturnCtx(r);return cc(s,{code:Za.invalid_type,expected:Oc.nan,received:s.parsedType}),np}return{status:"valid",value:r.data}}};Dle.create=e=>new Dle({typeName:Ou.ZodNaN,...u_(e)});var K2e=class extends K_{_parse(r){let{ctx:i}=this._processInputParams(r),s=i.data;return this._def.type._parse({data:s,path:i.path,parent:i})}unwrap(){return this._def.type}},Q2e=class e extends K_{_parse(r){let{status:i,ctx:s}=this._processInputParams(r);if(s.common.async)return(async()=>{let d=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return d.status==="aborted"?np:d.status==="dirty"?(i.dirty(),_X(d.value)):this._def.out._parseAsync({data:d.value,path:s.path,parent:s})})();{let l=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return l.status==="aborted"?np:l.status==="dirty"?(i.dirty(),{status:"dirty",value:l.value}):this._def.out._parseSync({data:l.value,path:s.path,parent:s})}}static create(r,i){return new e({in:r,out:i,typeName:Ou.ZodPipeline})}},kX=class extends K_{_parse(r){let i=this._def.innerType._parse(r),s=l=>(CJ(l)&&(l.value=Object.freeze(l.value)),l);return gle(i)?i.then(l=>s(l)):s(i)}unwrap(){return this._def.innerType}};kX.create=(e,r)=>new kX({innerType:e,typeName:Ou.ZodReadonly,...u_(r)});var PNn={object:fD.lazycreate},Ou;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ou||(Ou={}));var NNn=fX.create,ONn=yle.create,FNn=Dle.create,RNn=vle.create,LNn=Sle.create,MNn=ble.create,jNn=xle.create,BNn=mX.create,$Nn=hX.create,UNn=Tle.create,zNn=cj.create,qNn=PN.create,JNn=Ele.create,VNn=lj.create,J5r=fD.create,WNn=fD.strictCreate,GNn=gX.create,HNn=PJe.create,KNn=yX.create,QNn=r5.create,ZNn=OJe.create,XNn=kle.create,YNn=Cle.create,e8n=FJe.create,t8n=vX.create,r8n=SX.create,n8n=bX.create,i8n=xX.create,o8n=DJ.create,a8n=T6.create,s8n=x6.create,c8n=n5.create,l8n=T6.createWithPreprocess,u8n=Q2e.create;var X2e=Object.freeze({status:"aborted"});function ni(e,r,i){function s(S,b){if(S._zod||Object.defineProperty(S,"_zod",{value:{def:b,constr:h,traits:new Set},enumerable:!1}),S._zod.traits.has(e))return;S._zod.traits.add(e),r(S,b);let A=h.prototype,L=Object.keys(A);for(let V=0;Vi?.Parent&&S instanceof i.Parent?!0:S?._zod?.traits?.has(e)}),Object.defineProperty(h,"name",{value:e}),h}var NN=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},AJ=class extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}},Z2e={};function Gv(e){return e&&Object.assign(Z2e,e),Z2e}var es={};J7(es,{BIGINT_FORMAT_RANGES:()=>JJe,Class:()=>LJe,NUMBER_FORMAT_RANGES:()=>qJe,aborted:()=>dj,allowsEval:()=>BJe,assert:()=>Z5r,assertEqual:()=>G5r,assertIs:()=>K5r,assertNever:()=>Q5r,assertNotEqual:()=>H5r,assignProp:()=>pj,base64ToUint8Array:()=>v4t,base64urlToUint8Array:()=>c9r,cached:()=>DX,captureStackTrace:()=>eEe,cleanEnum:()=>s9r,cleanRegex:()=>Ile,clone:()=>I2,cloneDef:()=>Y5r,createTransparentProxy:()=>o9r,defineLazy:()=>S_,esc:()=>Y2e,escapeRegex:()=>Uw,extend:()=>m4t,finalizeIssue:()=>lk,floatSafeRemainder:()=>MJe,getElementAtPath:()=>e9r,getEnumValues:()=>wle,getLengthableOrigin:()=>Ole,getParsedType:()=>i9r,getSizableOrigin:()=>Nle,hexToUint8Array:()=>u9r,isObject:()=>wJ,isPlainObject:()=>_j,issue:()=>AX,joinValues:()=>zu,jsonStringifyReplacer:()=>CX,merge:()=>a9r,mergeDefs:()=>i5,normalizeParams:()=>Hs,nullish:()=>uj,numKeys:()=>n9r,objectClone:()=>X5r,omit:()=>f4t,optionalKeys:()=>zJe,parsedType:()=>ip,partial:()=>g4t,pick:()=>d4t,prefixIssues:()=>mD,primitiveTypes:()=>UJe,promiseAllObject:()=>t9r,propertyKeyTypes:()=>Ple,randomString:()=>r9r,required:()=>y4t,safeExtend:()=>h4t,shallowClone:()=>$Je,slugify:()=>jJe,stringifyPrimitive:()=>qu,uint8ArrayToBase64:()=>S4t,uint8ArrayToBase64url:()=>l9r,uint8ArrayToHex:()=>p9r,unwrapMessage:()=>Ale});function G5r(e){return e}function H5r(e){return e}function K5r(e){}function Q5r(e){throw new Error("Unexpected value in exhaustive check")}function Z5r(e){}function wle(e){let r=Object.values(e).filter(s=>typeof s=="number");return Object.entries(e).filter(([s,l])=>r.indexOf(+s)===-1).map(([s,l])=>l)}function zu(e,r="|"){return e.map(i=>qu(i)).join(r)}function CX(e,r){return typeof r=="bigint"?r.toString():r}function DX(e){return{get value(){{let i=e();return Object.defineProperty(this,"value",{value:i}),i}throw new Error("cached value already set")}}}function uj(e){return e==null}function Ile(e){let r=e.startsWith("^")?1:0,i=e.endsWith("$")?e.length-1:e.length;return e.slice(r,i)}function MJe(e,r){let i=(e.toString().split(".")[1]||"").length,s=r.toString(),l=(s.split(".")[1]||"").length;if(l===0&&/\d?e-\d?/.test(s)){let b=s.match(/\d?e-(\d?)/);b?.[1]&&(l=Number.parseInt(b[1]))}let d=i>l?i:l,h=Number.parseInt(e.toFixed(d).replace(".","")),S=Number.parseInt(r.toFixed(d).replace(".",""));return h%S/10**d}var _4t=Symbol("evaluating");function S_(e,r,i){let s;Object.defineProperty(e,r,{get(){if(s!==_4t)return s===void 0&&(s=_4t,s=i()),s},set(l){Object.defineProperty(e,r,{value:l})},configurable:!0})}function X5r(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function pj(e,r,i){Object.defineProperty(e,r,{value:i,writable:!0,enumerable:!0,configurable:!0})}function i5(...e){let r={};for(let i of e){let s=Object.getOwnPropertyDescriptors(i);Object.assign(r,s)}return Object.defineProperties({},r)}function Y5r(e){return i5(e._zod.def)}function e9r(e,r){return r?r.reduce((i,s)=>i?.[s],e):e}function t9r(e){let r=Object.keys(e),i=r.map(s=>e[s]);return Promise.all(i).then(s=>{let l={};for(let d=0;d{};function wJ(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var BJe=DX(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function _j(e){if(wJ(e)===!1)return!1;let r=e.constructor;if(r===void 0||typeof r!="function")return!0;let i=r.prototype;return!(wJ(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function $Je(e){return _j(e)?{...e}:Array.isArray(e)?[...e]:e}function n9r(e){let r=0;for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&r++;return r}var i9r=e=>{let r=typeof e;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},Ple=new Set(["string","number","symbol"]),UJe=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Uw(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I2(e,r,i){let s=new e._zod.constr(r??e._zod.def);return(!r||i?.parent)&&(s._zod.parent=e),s}function Hs(e){let r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function o9r(e){let r;return new Proxy({},{get(i,s,l){return r??(r=e()),Reflect.get(r,s,l)},set(i,s,l,d){return r??(r=e()),Reflect.set(r,s,l,d)},has(i,s){return r??(r=e()),Reflect.has(r,s)},deleteProperty(i,s){return r??(r=e()),Reflect.deleteProperty(r,s)},ownKeys(i){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(i,s){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,s)},defineProperty(i,s,l){return r??(r=e()),Reflect.defineProperty(r,s,l)}})}function qu(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function zJe(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var qJe={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},JJe={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function d4t(e,r){let i=e._zod.def,s=i.checks;if(s&&s.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let d=i5(e._zod.def,{get shape(){let h={};for(let S in r){if(!(S in i.shape))throw new Error(`Unrecognized key: "${S}"`);r[S]&&(h[S]=i.shape[S])}return pj(this,"shape",h),h},checks:[]});return I2(e,d)}function f4t(e,r){let i=e._zod.def,s=i.checks;if(s&&s.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let d=i5(e._zod.def,{get shape(){let h={...e._zod.def.shape};for(let S in r){if(!(S in i.shape))throw new Error(`Unrecognized key: "${S}"`);r[S]&&delete h[S]}return pj(this,"shape",h),h},checks:[]});return I2(e,d)}function m4t(e,r){if(!_j(r))throw new Error("Invalid input to extend: expected a plain object");let i=e._zod.def.checks;if(i&&i.length>0){let d=e._zod.def.shape;for(let h in r)if(Object.getOwnPropertyDescriptor(d,h)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let l=i5(e._zod.def,{get shape(){let d={...e._zod.def.shape,...r};return pj(this,"shape",d),d}});return I2(e,l)}function h4t(e,r){if(!_j(r))throw new Error("Invalid input to safeExtend: expected a plain object");let i=i5(e._zod.def,{get shape(){let s={...e._zod.def.shape,...r};return pj(this,"shape",s),s}});return I2(e,i)}function a9r(e,r){let i=i5(e._zod.def,{get shape(){let s={...e._zod.def.shape,...r._zod.def.shape};return pj(this,"shape",s),s},get catchall(){return r._zod.def.catchall},checks:[]});return I2(e,i)}function g4t(e,r,i){let l=r._zod.def.checks;if(l&&l.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let h=i5(r._zod.def,{get shape(){let S=r._zod.def.shape,b={...S};if(i)for(let A in i){if(!(A in S))throw new Error(`Unrecognized key: "${A}"`);i[A]&&(b[A]=e?new e({type:"optional",innerType:S[A]}):S[A])}else for(let A in S)b[A]=e?new e({type:"optional",innerType:S[A]}):S[A];return pj(this,"shape",b),b},checks:[]});return I2(r,h)}function y4t(e,r,i){let s=i5(r._zod.def,{get shape(){let l=r._zod.def.shape,d={...l};if(i)for(let h in i){if(!(h in d))throw new Error(`Unrecognized key: "${h}"`);i[h]&&(d[h]=new e({type:"nonoptional",innerType:l[h]}))}else for(let h in l)d[h]=new e({type:"nonoptional",innerType:l[h]});return pj(this,"shape",d),d}});return I2(r,s)}function dj(e,r=0){if(e.aborted===!0)return!0;for(let i=r;i{var s;return(s=i).path??(s.path=[]),i.path.unshift(e),i})}function Ale(e){return typeof e=="string"?e:e?.message}function lk(e,r,i){let s={...e,path:e.path??[]};if(!e.message){let l=Ale(e.inst?._zod.def?.error?.(e))??Ale(r?.error?.(e))??Ale(i.customError?.(e))??Ale(i.localeError?.(e))??"Invalid input";s.message=l}return delete s.inst,delete s.continue,r?.reportInput||delete s.input,s}function Nle(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Ole(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ip(e){let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let i=e;if(i&&Object.getPrototypeOf(i)!==Object.prototype&&"constructor"in i&&i.constructor)return i.constructor.name}}return r}function AX(...e){let[r,i,s]=e;return typeof r=="string"?{message:r,code:"custom",input:i,inst:s}:{...r}}function s9r(e){return Object.entries(e).filter(([r,i])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function v4t(e){let r=atob(e),i=new Uint8Array(r.length);for(let s=0;sr.toString(16).padStart(2,"0")).join("")}var LJe=class{constructor(...r){}};var b4t=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,CX,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},tEe=ni("$ZodError",b4t),Fle=ni("$ZodError",b4t,{Parent:Error});function rEe(e,r=i=>i.message){let i={},s=[];for(let l of e.issues)l.path.length>0?(i[l.path[0]]=i[l.path[0]]||[],i[l.path[0]].push(r(l))):s.push(r(l));return{formErrors:s,fieldErrors:i}}function nEe(e,r=i=>i.message){let i={_errors:[]},s=l=>{for(let d of l.issues)if(d.code==="invalid_union"&&d.errors.length)d.errors.map(h=>s({issues:h}));else if(d.code==="invalid_key")s({issues:d.issues});else if(d.code==="invalid_element")s({issues:d.issues});else if(d.path.length===0)i._errors.push(r(d));else{let h=i,S=0;for(;S(r,i,s,l)=>{let d=s?Object.assign(s,{async:!1}):{async:!1},h=r._zod.run({value:i,issues:[]},d);if(h instanceof Promise)throw new NN;if(h.issues.length){let S=new(l?.Err??e)(h.issues.map(b=>lk(b,d,Gv())));throw eEe(S,l?.callee),S}return h.value},Lle=Rle(Fle),Mle=e=>async(r,i,s,l)=>{let d=s?Object.assign(s,{async:!0}):{async:!0},h=r._zod.run({value:i,issues:[]},d);if(h instanceof Promise&&(h=await h),h.issues.length){let S=new(l?.Err??e)(h.issues.map(b=>lk(b,d,Gv())));throw eEe(S,l?.callee),S}return h.value},jle=Mle(Fle),Ble=e=>(r,i,s)=>{let l=s?{...s,async:!1}:{async:!1},d=r._zod.run({value:i,issues:[]},l);if(d instanceof Promise)throw new NN;return d.issues.length?{success:!1,error:new(e??tEe)(d.issues.map(h=>lk(h,l,Gv())))}:{success:!0,data:d.value}},wX=Ble(Fle),$le=e=>async(r,i,s)=>{let l=s?Object.assign(s,{async:!0}):{async:!0},d=r._zod.run({value:i,issues:[]},l);return d instanceof Promise&&(d=await d),d.issues.length?{success:!1,error:new e(d.issues.map(h=>lk(h,l,Gv())))}:{success:!0,data:d.value}},Ule=$le(Fle),x4t=e=>(r,i,s)=>{let l=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Rle(e)(r,i,l)};var T4t=e=>(r,i,s)=>Rle(e)(r,i,s);var E4t=e=>async(r,i,s)=>{let l=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Mle(e)(r,i,l)};var k4t=e=>async(r,i,s)=>Mle(e)(r,i,s);var C4t=e=>(r,i,s)=>{let l=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Ble(e)(r,i,l)};var D4t=e=>(r,i,s)=>Ble(e)(r,i,s);var A4t=e=>async(r,i,s)=>{let l=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return $le(e)(r,i,l)};var w4t=e=>async(r,i,s)=>$le(e)(r,i,s);var zw={};J7(zw,{base64:()=>aVe,base64url:()=>iEe,bigint:()=>_Ve,boolean:()=>fVe,browserEmail:()=>S9r,cidrv4:()=>iVe,cidrv6:()=>oVe,cuid:()=>VJe,cuid2:()=>WJe,date:()=>cVe,datetime:()=>uVe,domain:()=>T9r,duration:()=>ZJe,e164:()=>sVe,email:()=>YJe,emoji:()=>eVe,extendedDuration:()=>d9r,guid:()=>XJe,hex:()=>E9r,hostname:()=>x9r,html5Email:()=>g9r,idnEmail:()=>v9r,integer:()=>dVe,ipv4:()=>tVe,ipv6:()=>rVe,ksuid:()=>KJe,lowercase:()=>gVe,mac:()=>nVe,md5_base64:()=>C9r,md5_base64url:()=>D9r,md5_hex:()=>k9r,nanoid:()=>QJe,null:()=>mVe,number:()=>oEe,rfc5322Email:()=>y9r,sha1_base64:()=>w9r,sha1_base64url:()=>I9r,sha1_hex:()=>A9r,sha256_base64:()=>N9r,sha256_base64url:()=>O9r,sha256_hex:()=>P9r,sha384_base64:()=>R9r,sha384_base64url:()=>L9r,sha384_hex:()=>F9r,sha512_base64:()=>j9r,sha512_base64url:()=>B9r,sha512_hex:()=>M9r,string:()=>pVe,time:()=>lVe,ulid:()=>GJe,undefined:()=>hVe,unicodeEmail:()=>I4t,uppercase:()=>yVe,uuid:()=>IJ,uuid4:()=>f9r,uuid6:()=>m9r,uuid7:()=>h9r,xid:()=>HJe});var VJe=/^[cC][^\s-]{8,}$/,WJe=/^[0-9a-z]+$/,GJe=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,HJe=/^[0-9a-vA-V]{20}$/,KJe=/^[A-Za-z0-9]{27}$/,QJe=/^[a-zA-Z0-9_-]{21}$/,ZJe=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,d9r=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,XJe=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,IJ=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,f9r=IJ(4),m9r=IJ(6),h9r=IJ(7),YJe=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,g9r=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,y9r=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,I4t=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,v9r=I4t,S9r=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,b9r="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function eVe(){return new RegExp(b9r,"u")}var tVe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,rVe=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,nVe=e=>{let r=Uw(e??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},iVe=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,oVe=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,aVe=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,iEe=/^[A-Za-z0-9_-]*$/,x9r=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,T9r=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,sVe=/^\+[1-9]\d{6,14}$/,P4t="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",cVe=new RegExp(`^${P4t}$`);function N4t(e){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function lVe(e){return new RegExp(`^${N4t(e)}$`)}function uVe(e){let r=N4t({precision:e.precision}),i=["Z"];e.local&&i.push(""),e.offset&&i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let s=`${r}(?:${i.join("|")})`;return new RegExp(`^${P4t}T(?:${s})$`)}var pVe=e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},_Ve=/^-?\d+n?$/,dVe=/^-?\d+$/,oEe=/^-?\d+(?:\.\d+)?$/,fVe=/^(?:true|false)$/i,mVe=/^null$/i;var hVe=/^undefined$/i;var gVe=/^[^A-Z]*$/,yVe=/^[^a-z]*$/,E9r=/^[0-9a-fA-F]*$/;function zle(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}function qle(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var k9r=/^[0-9a-fA-F]{32}$/,C9r=zle(22,"=="),D9r=qle(22),A9r=/^[0-9a-fA-F]{40}$/,w9r=zle(27,"="),I9r=qle(27),P9r=/^[0-9a-fA-F]{64}$/,N9r=zle(43,"="),O9r=qle(43),F9r=/^[0-9a-fA-F]{96}$/,R9r=zle(64,""),L9r=qle(64),M9r=/^[0-9a-fA-F]{128}$/,j9r=zle(86,"=="),B9r=qle(86);var rg=ni("$ZodCheck",(e,r)=>{var i;e._zod??(e._zod={}),e._zod.def=r,(i=e._zod).onattach??(i.onattach=[])}),F4t={number:"number",bigint:"bigint",object:"date"},vVe=ni("$ZodCheckLessThan",(e,r)=>{rg.init(e,r);let i=F4t[typeof r.value];e._zod.onattach.push(s=>{let l=s._zod.bag,d=(r.inclusive?l.maximum:l.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value{(r.inclusive?s.value<=r.value:s.value{rg.init(e,r);let i=F4t[typeof r.value];e._zod.onattach.push(s=>{let l=s._zod.bag,d=(r.inclusive?l.minimum:l.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>d&&(r.inclusive?l.minimum=r.value:l.exclusiveMinimum=r.value)}),e._zod.check=s=>{(r.inclusive?s.value>=r.value:s.value>r.value)||s.issues.push({origin:i,code:"too_small",minimum:typeof r.value=="object"?r.value.getTime():r.value,input:s.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),R4t=ni("$ZodCheckMultipleOf",(e,r)=>{rg.init(e,r),e._zod.onattach.push(i=>{var s;(s=i._zod.bag).multipleOf??(s.multipleOf=r.value)}),e._zod.check=i=>{if(typeof i.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof i.value=="bigint"?i.value%r.value===BigInt(0):MJe(i.value,r.value)===0)||i.issues.push({origin:typeof i.value,code:"not_multiple_of",divisor:r.value,input:i.value,inst:e,continue:!r.abort})}}),L4t=ni("$ZodCheckNumberFormat",(e,r)=>{rg.init(e,r),r.format=r.format||"float64";let i=r.format?.includes("int"),s=i?"int":"number",[l,d]=qJe[r.format];e._zod.onattach.push(h=>{let S=h._zod.bag;S.format=r.format,S.minimum=l,S.maximum=d,i&&(S.pattern=dVe)}),e._zod.check=h=>{let S=h.value;if(i){if(!Number.isInteger(S)){h.issues.push({expected:s,format:r.format,code:"invalid_type",continue:!1,input:S,inst:e});return}if(!Number.isSafeInteger(S)){S>0?h.issues.push({input:S,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,inclusive:!0,continue:!r.abort}):h.issues.push({input:S,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,inclusive:!0,continue:!r.abort});return}}Sd&&h.issues.push({origin:"number",input:S,code:"too_big",maximum:d,inclusive:!0,inst:e,continue:!r.abort})}}),M4t=ni("$ZodCheckBigIntFormat",(e,r)=>{rg.init(e,r);let[i,s]=JJe[r.format];e._zod.onattach.push(l=>{let d=l._zod.bag;d.format=r.format,d.minimum=i,d.maximum=s}),e._zod.check=l=>{let d=l.value;ds&&l.issues.push({origin:"bigint",input:d,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!r.abort})}}),j4t=ni("$ZodCheckMaxSize",(e,r)=>{var i;rg.init(e,r),(i=e._zod.def).when??(i.when=s=>{let l=s.value;return!uj(l)&&l.size!==void 0}),e._zod.onattach.push(s=>{let l=s._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum{let l=s.value;l.size<=r.maximum||s.issues.push({origin:Nle(l),code:"too_big",maximum:r.maximum,inclusive:!0,input:l,inst:e,continue:!r.abort})}}),B4t=ni("$ZodCheckMinSize",(e,r)=>{var i;rg.init(e,r),(i=e._zod.def).when??(i.when=s=>{let l=s.value;return!uj(l)&&l.size!==void 0}),e._zod.onattach.push(s=>{let l=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>l&&(s._zod.bag.minimum=r.minimum)}),e._zod.check=s=>{let l=s.value;l.size>=r.minimum||s.issues.push({origin:Nle(l),code:"too_small",minimum:r.minimum,inclusive:!0,input:l,inst:e,continue:!r.abort})}}),$4t=ni("$ZodCheckSizeEquals",(e,r)=>{var i;rg.init(e,r),(i=e._zod.def).when??(i.when=s=>{let l=s.value;return!uj(l)&&l.size!==void 0}),e._zod.onattach.push(s=>{let l=s._zod.bag;l.minimum=r.size,l.maximum=r.size,l.size=r.size}),e._zod.check=s=>{let l=s.value,d=l.size;if(d===r.size)return;let h=d>r.size;s.issues.push({origin:Nle(l),...h?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!r.abort})}}),U4t=ni("$ZodCheckMaxLength",(e,r)=>{var i;rg.init(e,r),(i=e._zod.def).when??(i.when=s=>{let l=s.value;return!uj(l)&&l.length!==void 0}),e._zod.onattach.push(s=>{let l=s._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum{let l=s.value;if(l.length<=r.maximum)return;let h=Ole(l);s.issues.push({origin:h,code:"too_big",maximum:r.maximum,inclusive:!0,input:l,inst:e,continue:!r.abort})}}),z4t=ni("$ZodCheckMinLength",(e,r)=>{var i;rg.init(e,r),(i=e._zod.def).when??(i.when=s=>{let l=s.value;return!uj(l)&&l.length!==void 0}),e._zod.onattach.push(s=>{let l=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>l&&(s._zod.bag.minimum=r.minimum)}),e._zod.check=s=>{let l=s.value;if(l.length>=r.minimum)return;let h=Ole(l);s.issues.push({origin:h,code:"too_small",minimum:r.minimum,inclusive:!0,input:l,inst:e,continue:!r.abort})}}),q4t=ni("$ZodCheckLengthEquals",(e,r)=>{var i;rg.init(e,r),(i=e._zod.def).when??(i.when=s=>{let l=s.value;return!uj(l)&&l.length!==void 0}),e._zod.onattach.push(s=>{let l=s._zod.bag;l.minimum=r.length,l.maximum=r.length,l.length=r.length}),e._zod.check=s=>{let l=s.value,d=l.length;if(d===r.length)return;let h=Ole(l),S=d>r.length;s.issues.push({origin:h,...S?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!r.abort})}}),Jle=ni("$ZodCheckStringFormat",(e,r)=>{var i,s;rg.init(e,r),e._zod.onattach.push(l=>{let d=l._zod.bag;d.format=r.format,r.pattern&&(d.patterns??(d.patterns=new Set),d.patterns.add(r.pattern))}),r.pattern?(i=e._zod).check??(i.check=l=>{r.pattern.lastIndex=0,!r.pattern.test(l.value)&&l.issues.push({origin:"string",code:"invalid_format",format:r.format,input:l.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(s=e._zod).check??(s.check=()=>{})}),J4t=ni("$ZodCheckRegex",(e,r)=>{Jle.init(e,r),e._zod.check=i=>{r.pattern.lastIndex=0,!r.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),V4t=ni("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=gVe),Jle.init(e,r)}),W4t=ni("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=yVe),Jle.init(e,r)}),G4t=ni("$ZodCheckIncludes",(e,r)=>{rg.init(e,r);let i=Uw(r.includes),s=new RegExp(typeof r.position=="number"?`^.{${r.position}}${i}`:i);r.pattern=s,e._zod.onattach.push(l=>{let d=l._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(s)}),e._zod.check=l=>{l.value.includes(r.includes,r.position)||l.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:l.value,inst:e,continue:!r.abort})}}),H4t=ni("$ZodCheckStartsWith",(e,r)=>{rg.init(e,r);let i=new RegExp(`^${Uw(r.prefix)}.*`);r.pattern??(r.pattern=i),e._zod.onattach.push(s=>{let l=s._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(i)}),e._zod.check=s=>{s.value.startsWith(r.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:s.value,inst:e,continue:!r.abort})}}),K4t=ni("$ZodCheckEndsWith",(e,r)=>{rg.init(e,r);let i=new RegExp(`.*${Uw(r.suffix)}$`);r.pattern??(r.pattern=i),e._zod.onattach.push(s=>{let l=s._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(i)}),e._zod.check=s=>{s.value.endsWith(r.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:s.value,inst:e,continue:!r.abort})}});function O4t(e,r,i){e.issues.length&&r.issues.push(...mD(i,e.issues))}var Q4t=ni("$ZodCheckProperty",(e,r)=>{rg.init(e,r),e._zod.check=i=>{let s=r.schema._zod.run({value:i.value[r.property],issues:[]},{});if(s instanceof Promise)return s.then(l=>O4t(l,i,r.property));O4t(s,i,r.property)}}),Z4t=ni("$ZodCheckMimeType",(e,r)=>{rg.init(e,r);let i=new Set(r.mime);e._zod.onattach.push(s=>{s._zod.bag.mime=r.mime}),e._zod.check=s=>{i.has(s.value.type)||s.issues.push({code:"invalid_value",values:r.mime,input:s.value.type,inst:e,continue:!r.abort})}}),X4t=ni("$ZodCheckOverwrite",(e,r)=>{rg.init(e,r),e._zod.check=i=>{i.value=r.tx(i.value)}});var aEe=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let s=r.split(` -`).filter(h=>h),l=Math.min(...s.map(h=>h.length-h.trimStart().length)),d=s.map(h=>h.slice(l)).map(h=>" ".repeat(this.indent*2)+h);for(let h of d)this.content.push(h)}compile(){let r=Function,i=this?.args,l=[...(this?.content??[""]).map(d=>` ${d}`)];return new r(...i,l.join(` -`))}};var e3t={major:4,minor:3,patch:6};var Ip=ni("$ZodType",(e,r)=>{var i;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=e3t;let s=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&s.unshift(e);for(let l of s)for(let d of l._zod.onattach)d(e);if(s.length===0)(i=e._zod).deferred??(i.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let l=(h,S,b)=>{let A=dj(h),L;for(let V of S){if(V._zod.def.when){if(!V._zod.def.when(h))continue}else if(A)continue;let j=h.issues.length,ie=V._zod.check(h);if(ie instanceof Promise&&b?.async===!1)throw new NN;if(L||ie instanceof Promise)L=(L??Promise.resolve()).then(async()=>{await ie,h.issues.length!==j&&(A||(A=dj(h,j)))});else{if(h.issues.length===j)continue;A||(A=dj(h,j))}}return L?L.then(()=>h):h},d=(h,S,b)=>{if(dj(h))return h.aborted=!0,h;let A=l(S,s,b);if(A instanceof Promise){if(b.async===!1)throw new NN;return A.then(L=>e._zod.parse(L,b))}return e._zod.parse(A,b)};e._zod.run=(h,S)=>{if(S.skipChecks)return e._zod.parse(h,S);if(S.direction==="backward"){let A=e._zod.parse({value:h.value,issues:[]},{...S,skipChecks:!0});return A instanceof Promise?A.then(L=>d(L,h,S)):d(A,h,S)}let b=e._zod.parse(h,S);if(b instanceof Promise){if(S.async===!1)throw new NN;return b.then(A=>l(A,s,S))}return l(b,s,S)}}S_(e,"~standard",()=>({validate:l=>{try{let d=wX(e,l);return d.success?{value:d.data}:{issues:d.error?.issues}}catch{return Ule(e,l).then(h=>h.success?{value:h.data}:{issues:h.error?.issues})}},vendor:"zod",version:1}))}),PJ=ni("$ZodString",(e,r)=>{Ip.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??pVe(e._zod.bag),e._zod.parse=(i,s)=>{if(r.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),Ah=ni("$ZodStringFormat",(e,r)=>{Jle.init(e,r),PJ.init(e,r)}),xVe=ni("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=XJe),Ah.init(e,r)}),TVe=ni("$ZodUUID",(e,r)=>{if(r.version){let s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(s===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=IJ(s))}else r.pattern??(r.pattern=IJ());Ah.init(e,r)}),EVe=ni("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=YJe),Ah.init(e,r)}),kVe=ni("$ZodURL",(e,r)=>{Ah.init(e,r),e._zod.check=i=>{try{let s=i.value.trim(),l=new URL(s);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(l.hostname)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:i.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(l.protocol.endsWith(":")?l.protocol.slice(0,-1):l.protocol)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:i.value,inst:e,continue:!r.abort})),r.normalize?i.value=l.href:i.value=s;return}catch{i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:e,continue:!r.abort})}}}),CVe=ni("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=eVe()),Ah.init(e,r)}),DVe=ni("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=QJe),Ah.init(e,r)}),AVe=ni("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=VJe),Ah.init(e,r)}),wVe=ni("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=WJe),Ah.init(e,r)}),IVe=ni("$ZodULID",(e,r)=>{r.pattern??(r.pattern=GJe),Ah.init(e,r)}),PVe=ni("$ZodXID",(e,r)=>{r.pattern??(r.pattern=HJe),Ah.init(e,r)}),NVe=ni("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=KJe),Ah.init(e,r)}),OVe=ni("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=uVe(r)),Ah.init(e,r)}),FVe=ni("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=cVe),Ah.init(e,r)}),RVe=ni("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=lVe(r)),Ah.init(e,r)}),LVe=ni("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=ZJe),Ah.init(e,r)}),MVe=ni("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=tVe),Ah.init(e,r),e._zod.bag.format="ipv4"}),jVe=ni("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=rVe),Ah.init(e,r),e._zod.bag.format="ipv6",e._zod.check=i=>{try{new URL(`http://[${i.value}]`)}catch{i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:e,continue:!r.abort})}}}),BVe=ni("$ZodMAC",(e,r)=>{r.pattern??(r.pattern=nVe(r.delimiter)),Ah.init(e,r),e._zod.bag.format="mac"}),$Ve=ni("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=iVe),Ah.init(e,r)}),UVe=ni("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=oVe),Ah.init(e,r),e._zod.check=i=>{let s=i.value.split("/");try{if(s.length!==2)throw new Error;let[l,d]=s;if(!d)throw new Error;let h=Number(d);if(`${h}`!==d)throw new Error;if(h<0||h>128)throw new Error;new URL(`http://[${l}]`)}catch{i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:e,continue:!r.abort})}}});function _3t(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var zVe=ni("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=aVe),Ah.init(e,r),e._zod.bag.contentEncoding="base64",e._zod.check=i=>{_3t(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:e,continue:!r.abort})}});function $9r(e){if(!iEe.test(e))return!1;let r=e.replace(/[-_]/g,s=>s==="-"?"+":"/"),i=r.padEnd(Math.ceil(r.length/4)*4,"=");return _3t(i)}var qVe=ni("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=iEe),Ah.init(e,r),e._zod.bag.contentEncoding="base64url",e._zod.check=i=>{$9r(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:e,continue:!r.abort})}}),JVe=ni("$ZodE164",(e,r)=>{r.pattern??(r.pattern=sVe),Ah.init(e,r)});function U9r(e,r=null){try{let i=e.split(".");if(i.length!==3)return!1;let[s]=i;if(!s)return!1;let l=JSON.parse(atob(s));return!("typ"in l&&l?.typ!=="JWT"||!l.alg||r&&(!("alg"in l)||l.alg!==r))}catch{return!1}}var VVe=ni("$ZodJWT",(e,r)=>{Ah.init(e,r),e._zod.check=i=>{U9r(i.value,r.alg)||i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:e,continue:!r.abort})}}),WVe=ni("$ZodCustomStringFormat",(e,r)=>{Ah.init(e,r),e._zod.check=i=>{r.fn(i.value)||i.issues.push({code:"invalid_format",format:r.format,input:i.value,inst:e,continue:!r.abort})}}),_Ee=ni("$ZodNumber",(e,r)=>{Ip.init(e,r),e._zod.pattern=e._zod.bag.pattern??oEe,e._zod.parse=(i,s)=>{if(r.coerce)try{i.value=Number(i.value)}catch{}let l=i.value;if(typeof l=="number"&&!Number.isNaN(l)&&Number.isFinite(l))return i;let d=typeof l=="number"?Number.isNaN(l)?"NaN":Number.isFinite(l)?void 0:"Infinity":void 0;return i.issues.push({expected:"number",code:"invalid_type",input:l,inst:e,...d?{received:d}:{}}),i}}),GVe=ni("$ZodNumberFormat",(e,r)=>{L4t.init(e,r),_Ee.init(e,r)}),Vle=ni("$ZodBoolean",(e,r)=>{Ip.init(e,r),e._zod.pattern=fVe,e._zod.parse=(i,s)=>{if(r.coerce)try{i.value=!!i.value}catch{}let l=i.value;return typeof l=="boolean"||i.issues.push({expected:"boolean",code:"invalid_type",input:l,inst:e}),i}}),dEe=ni("$ZodBigInt",(e,r)=>{Ip.init(e,r),e._zod.pattern=_Ve,e._zod.parse=(i,s)=>{if(r.coerce)try{i.value=BigInt(i.value)}catch{}return typeof i.value=="bigint"||i.issues.push({expected:"bigint",code:"invalid_type",input:i.value,inst:e}),i}}),HVe=ni("$ZodBigIntFormat",(e,r)=>{M4t.init(e,r),dEe.init(e,r)}),KVe=ni("$ZodSymbol",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{let l=i.value;return typeof l=="symbol"||i.issues.push({expected:"symbol",code:"invalid_type",input:l,inst:e}),i}}),QVe=ni("$ZodUndefined",(e,r)=>{Ip.init(e,r),e._zod.pattern=hVe,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(i,s)=>{let l=i.value;return typeof l>"u"||i.issues.push({expected:"undefined",code:"invalid_type",input:l,inst:e}),i}}),ZVe=ni("$ZodNull",(e,r)=>{Ip.init(e,r),e._zod.pattern=mVe,e._zod.values=new Set([null]),e._zod.parse=(i,s)=>{let l=i.value;return l===null||i.issues.push({expected:"null",code:"invalid_type",input:l,inst:e}),i}}),XVe=ni("$ZodAny",(e,r)=>{Ip.init(e,r),e._zod.parse=i=>i}),YVe=ni("$ZodUnknown",(e,r)=>{Ip.init(e,r),e._zod.parse=i=>i}),eWe=ni("$ZodNever",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>(i.issues.push({expected:"never",code:"invalid_type",input:i.value,inst:e}),i)}),tWe=ni("$ZodVoid",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{let l=i.value;return typeof l>"u"||i.issues.push({expected:"void",code:"invalid_type",input:l,inst:e}),i}}),rWe=ni("$ZodDate",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{if(r.coerce)try{i.value=new Date(i.value)}catch{}let l=i.value,d=l instanceof Date;return d&&!Number.isNaN(l.getTime())||i.issues.push({expected:"date",code:"invalid_type",input:l,...d?{received:"Invalid Date"}:{},inst:e}),i}});function t3t(e,r,i){e.issues.length&&r.issues.push(...mD(i,e.issues)),r.value[i]=e.value}var nWe=ni("$ZodArray",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{let l=i.value;if(!Array.isArray(l))return i.issues.push({expected:"array",code:"invalid_type",input:l,inst:e}),i;i.value=Array(l.length);let d=[];for(let h=0;ht3t(A,i,h))):t3t(b,i,h)}return d.length?Promise.all(d).then(()=>i):i}});function pEe(e,r,i,s,l){if(e.issues.length){if(l&&!(i in s))return;r.issues.push(...mD(i,e.issues))}e.value===void 0?i in s&&(r.value[i]=void 0):r.value[i]=e.value}function d3t(e){let r=Object.keys(e.shape);for(let s of r)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);let i=zJe(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(i)}}function f3t(e,r,i,s,l,d){let h=[],S=l.keySet,b=l.catchall._zod,A=b.def.type,L=b.optout==="optional";for(let V in r){if(S.has(V))continue;if(A==="never"){h.push(V);continue}let j=b.run({value:r[V],issues:[]},s);j instanceof Promise?e.push(j.then(ie=>pEe(ie,i,V,r,L))):pEe(j,i,V,r,L)}return h.length&&i.issues.push({code:"unrecognized_keys",keys:h,input:r,inst:d}),e.length?Promise.all(e).then(()=>i):i}var m3t=ni("$ZodObject",(e,r)=>{if(Ip.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let S=r.shape;Object.defineProperty(r,"shape",{get:()=>{let b={...S};return Object.defineProperty(r,"shape",{value:b}),b}})}let s=DX(()=>d3t(r));S_(e._zod,"propValues",()=>{let S=r.shape,b={};for(let A in S){let L=S[A]._zod;if(L.values){b[A]??(b[A]=new Set);for(let V of L.values)b[A].add(V)}}return b});let l=wJ,d=r.catchall,h;e._zod.parse=(S,b)=>{h??(h=s.value);let A=S.value;if(!l(A))return S.issues.push({expected:"object",code:"invalid_type",input:A,inst:e}),S;S.value={};let L=[],V=h.shape;for(let j of h.keys){let ie=V[j],te=ie._zod.optout==="optional",X=ie._zod.run({value:A[j],issues:[]},b);X instanceof Promise?L.push(X.then(Re=>pEe(Re,S,j,A,te))):pEe(X,S,j,A,te)}return d?f3t(L,A,S,b,s.value,e):L.length?Promise.all(L).then(()=>S):S}}),h3t=ni("$ZodObjectJIT",(e,r)=>{m3t.init(e,r);let i=e._zod.parse,s=DX(()=>d3t(r)),l=j=>{let ie=new aEe(["shape","payload","ctx"]),te=s.value,X=$e=>{let xt=Y2e($e);return`shape[${xt}]._zod.run({ value: input[${xt}], issues: [] }, ctx)`};ie.write("const input = payload.value;");let Re=Object.create(null),Je=0;for(let $e of te.keys)Re[$e]=`key_${Je++}`;ie.write("const newResult = {};");for(let $e of te.keys){let xt=Re[$e],tr=Y2e($e),wt=j[$e]?._zod?.optout==="optional";ie.write(`const ${xt} = ${X($e)};`),wt?ie.write(` - if (${xt}.issues.length) { - if (${tr} in input) { - payload.issues = payload.issues.concat(${xt}.issues.map(iss => ({ +`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}mc.createScalarToken=bW.createScalarToken;mc.resolveAsScalar=bW.resolveAsScalar;mc.setScalarValue=bW.setScalarValue;mc.stringify=G1t.stringify;mc.visit=H1t.visit;mc.BOM=xW;mc.DOCUMENT=EW;mc.FLOW_END=TW;mc.SCALAR=DW;mc.isCollection=Z1t;mc.isScalar=W1t;mc.prettyToken=Q1t;mc.tokenType=X1t});var IW=L(SEe=>{"use strict";var BA=GN();function ep(e){switch(e){case void 0:case" ":case` +`:case"\r":case" ":return!0;default:return!1}}var gEe=new Set("0123456789ABCDEFabcdef"),Y1t=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),HN=new Set(",[]{}"),ebt=new Set(` ,[]{} +\r `),AW=e=>!e||ebt.has(e),wW=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,r=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!r;let n=this.next??"stream";for(;n&&(r||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let t=this.pos,r=this.buffer[t];for(;r===" "||r===" ";)r=this.buffer[++t];return!r||r==="#"||r===` +`?!0:r==="\r"?this.buffer[t+1]===` +`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let r=this.buffer[t];if(this.indentNext>0){let n=0;for(;r===" ";)r=this.buffer[++n+t];if(r==="\r"){let o=this.buffer[n+t+1];if(o===` +`||!o&&!this.atEnd)return t+n+1}return r===` +`||n>=this.indentNext||!r&&!this.atEnd?t+n:-1}if(r==="-"||r==="."){let n=this.buffer.substr(t,3);if((n==="---"||n==="...")&&ep(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&tthis.indentValue&&!ep(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[t,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&ep(r)){let n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let t=this.getLine();if(t===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(t[r]){case"#":yield*this.pushCount(t.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(AW),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,r,n=-1;do t=yield*this.pushNewline(),t>0?(r=yield*this.pushSpaces(!1),this.indentValue=n=r):r=0,r+=yield*this.pushSpaces(!0);while(t+r>0);let o=this.getLine();if(o===null)return this.setNext("flow");if((n!==-1&&n"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>ep(r)||r==="#")}*parseBlockScalar(){let t=this.pos-1,r=0,n;e:for(let i=this.pos;n=this.buffer[i];++i)switch(n){case" ":r+=1;break;case` +`:t=i,r=0;break;case"\r":{let a=this.buffer[i+1];if(!a&&!this.atEnd)return this.setNext("block-scalar");if(a===` +`)break}default:break e}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let i=this.continueScalar(t+1);if(i===-1)break;t=this.buffer.indexOf(` +`,i)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let o=t+1;for(n=this.buffer[o];n===" ";)n=this.buffer[++o];if(n===" "){for(;n===" "||n===" "||n==="\r"||n===` +`;)n=this.buffer[++o];t=o-1}else if(!this.blockScalarKeep)do{let i=t-1,a=this.buffer[i];a==="\r"&&(a=this.buffer[--i]);let s=i;for(;a===" ";)a=this.buffer[--i];if(a===` +`&&i>=this.pos&&i+1+r>s)t=i;else break}while(!0);return yield BA.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let t=this.flowLevel>0,r=this.pos-1,n=this.pos-1,o;for(;o=this.buffer[++n];)if(o===":"){let i=this.buffer[n+1];if(ep(i)||t&&HN.has(i))break;r=n}else if(ep(o)){let i=this.buffer[n+1];if(o==="\r"&&(i===` +`?(n+=1,o=` +`,i=this.buffer[n+1]):r=n),i==="#"||t&&HN.has(i))break;if(o===` +`){let a=this.continueScalar(n+1);if(a===-1)break;n=Math.max(n,a-2)}}else{if(t&&HN.has(o))break;r=n}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield BA.SCALAR,yield*this.pushToIndex(r+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,r){let n=this.buffer.slice(this.pos,t);return n?(yield n,this.pos+=n.length,n.length):(r&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(AW))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let t=this.flowLevel>0,r=this.charAt(1);if(ep(r)||t&&HN.has(r))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,r=this.buffer[t];for(;!ep(r)&&r!==">";)r=this.buffer[++t];return yield*this.pushToIndex(r===">"?t+1:t,!1)}else{let t=this.pos+1,r=this.buffer[t];for(;r;)if(Y1t.has(r))r=this.buffer[++t];else if(r==="%"&&gEe.has(this.buffer[t+1])&&gEe.has(this.buffer[t+2]))r=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){let t=this.buffer[this.pos];return t===` +`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===` +`?yield*this.pushCount(2):0}*pushSpaces(t){let r=this.pos-1,n;do n=this.buffer[++r];while(n===" "||t&&n===" ");let o=r-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=r),o}*pushUntil(t){let r=this.pos,n=this.buffer[r];for(;!t(n);)n=this.buffer[++r];return yield*this.pushToIndex(r,!1)}};SEe.Lexer=wW});var CW=L(vEe=>{"use strict";var kW=class{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let r=0,n=this.lineStarts.length;for(;r>1;this.lineStarts[i]{"use strict";var tbt=_l("process"),bEe=GN(),rbt=IW();function $h(e,t){for(let r=0;r=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function EEe(e){if(e.start.type==="flow-seq-start")for(let t of e.items)t.sep&&!t.value&&!$h(t.start,"explicit-key-ind")&&!$h(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,TEe(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}var PW=class{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new rbt.Lexer,this.onNewLine=t}*parse(t,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(t,r))yield*this.next(n);r||(yield*this.end())}*next(t){if(this.source=t,tbt.env.LOG_TOKENS&&console.log("|",bEe.prettyToken(t)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}let r=bEe.tokenType(t);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{let n=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let t=this.peek(1);if(this.type==="doc-end"&&t?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){let r=t??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{let n=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in n?n.indent:0:r.type==="flow-collection"&&n.type==="document"&&(r.indent=0),r.type==="flow-collection"&&EEe(r),n.type){case"document":n.value=r;break;case"block-scalar":n.props.push(r);break;case"block-map":{let o=n.items[n.items.length-1];if(o.value){n.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=r;else{Object.assign(o,{key:r,sep:[]}),this.onKeyLine=!o.explicitKey;return}break}case"block-seq":{let o=n.items[n.items.length-1];o.value?n.items.push({start:[],value:r}):o.value=r;break}case"flow-collection":{let o=n.items[n.items.length-1];!o||o.value?n.items.push({start:[],key:r,sep:[]}):o.sep?o.value=r:Object.assign(o,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){let o=r.items[r.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&xEe(o.start)===-1&&(r.indent===0||o.start.every(i=>i.type!=="comment"||i.indent=t.indent){let n=!this.onKeyLine&&this.indent===t.indent,o=n&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind",i=[];if(o&&r.sep&&!r.value){let a=[];for(let s=0;st.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(i=r.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":o||r.value?(i.push(this.sourceToken),t.items.push({start:i}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):o||r.value?(i.push(this.sourceToken),t.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(r.explicitKey)if(r.sep)if(r.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if($h(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(TEe(r.key)&&!$h(r.sep,"newline")){let a=Y1(r.start),s=r.key,c=r.sep;c.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:s,sep:c}]})}else i.length>0?r.sep=r.sep.concat(i,this.sourceToken):r.sep.push(this.sourceToken);else if($h(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{let a=Y1(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||o?t.items.push({start:i,key:null,sep:[this.sourceToken]}):$h(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let a=this.flowScalar(this.type);o||r.value?(t.items.push({start:i,key:a,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(a):(Object.assign(r,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{let a=this.startBlockValue(t);if(a){if(a.type==="block-seq"){if(!r.explicitKey&&r.sep&&!$h(r.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else n&&t.items.push({start:i});this.stack.push(a);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){let r=t.items[t.items.length-1];switch(this.type){case"newline":if(r.value){let n="end"in r.value?r.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,t.indent)){let o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,r.start),o.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=t.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;r.value||$h(r.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>t.indent){let n=this.startBlockValue(t);if(n){this.stack.push(n);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){let r=t.items[t.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n?.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?t.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let o=this.flowScalar(this.type);!r||r.value?t.items.push({start:[],key:o,sep:[]}):r.sep?this.stack.push(o):Object.assign(r,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}let n=this.startBlockValue(t);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===t.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){let o=ZN(n),i=Y1(o);EEe(t);let a=t.end.splice(1,t.end.length);a.push(this.sourceToken);let s={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let r=this.source.indexOf(` +`)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(` +`,r)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let r=ZN(t),n=Y1(r);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let r=ZN(t),n=Y1(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,r){return this.type!=="comment"||this.indent<=r?!1:t.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};DEe.Parser=PW});var CEe=L(UA=>{"use strict";var AEe=gW(),nbt=NA(),qA=LA(),obt=hZ(),ibt=qn(),abt=CW(),wEe=OW();function IEe(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new abt.LineCounter||null,prettyErrors:t}}function sbt(e,t={}){let{lineCounter:r,prettyErrors:n}=IEe(t),o=new wEe.Parser(r?.addNewLine),i=new AEe.Composer(t),a=Array.from(i.compose(o.parse(e)));if(n&&r)for(let s of a)s.errors.forEach(qA.prettifyError(e,r)),s.warnings.forEach(qA.prettifyError(e,r));return a.length>0?a:Object.assign([],{empty:!0},i.streamInfo())}function kEe(e,t={}){let{lineCounter:r,prettyErrors:n}=IEe(t),o=new wEe.Parser(r?.addNewLine),i=new AEe.Composer(t),a=null;for(let s of i.compose(o.parse(e),!0,e.length))if(!a)a=s;else if(a.options.logLevel!=="silent"){a.errors.push(new qA.YAMLParseError(s.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&r&&(a.errors.forEach(qA.prettifyError(e,r)),a.warnings.forEach(qA.prettifyError(e,r))),a}function cbt(e,t,r){let n;typeof t=="function"?n=t:r===void 0&&t&&typeof t=="object"&&(r=t);let o=kEe(e,r);if(!o)return null;if(o.warnings.forEach(i=>obt.warn(o.options.logLevel,i)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:n},r))}function lbt(e,t,r){let n=null;if(typeof t=="function"||Array.isArray(t)?n=t:r===void 0&&t&&(r=t),typeof r=="string"&&(r=r.length),typeof r=="number"){let o=Math.round(r);r=o<1?void 0:o>8?{indent:8}:{indent:o}}if(e===void 0){let{keepUndefined:o}=r??t??{};if(!o)return}return ibt.isDocument(e)&&!n?e.toString(r):new nbt.Document(e,n,r).toString(r)}UA.parse=cbt;UA.parseAllDocuments=sbt;UA.parseDocument=kEe;UA.stringify=lbt});var OEe=L(so=>{"use strict";var ubt=gW(),pbt=NA(),dbt=XZ(),NW=LA(),_bt=hA(),Mh=qn(),fbt=Nh(),mbt=Vi(),hbt=Rh(),ybt=Lh(),gbt=GN(),Sbt=IW(),vbt=CW(),bbt=OW(),WN=CEe(),PEe=dA();so.Composer=ubt.Composer;so.Document=pbt.Document;so.Schema=dbt.Schema;so.YAMLError=NW.YAMLError;so.YAMLParseError=NW.YAMLParseError;so.YAMLWarning=NW.YAMLWarning;so.Alias=_bt.Alias;so.isAlias=Mh.isAlias;so.isCollection=Mh.isCollection;so.isDocument=Mh.isDocument;so.isMap=Mh.isMap;so.isNode=Mh.isNode;so.isPair=Mh.isPair;so.isScalar=Mh.isScalar;so.isSeq=Mh.isSeq;so.Pair=fbt.Pair;so.Scalar=mbt.Scalar;so.YAMLMap=hbt.YAMLMap;so.YAMLSeq=ybt.YAMLSeq;so.CST=gbt;so.Lexer=Sbt.Lexer;so.LineCounter=vbt.LineCounter;so.Parser=bbt.Parser;so.parse=WN.parse;so.parseAllDocuments=WN.parseAllDocuments;so.parseDocument=WN.parseDocument;so.stringify=WN.stringify;so.visit=PEe.visit;so.visitAsync=PEe.visitAsync});import*as Mr from"effect/Schema";var uIe=Mr.Struct({inputTypePreview:Mr.optional(Mr.String),outputTypePreview:Mr.optional(Mr.String),inputSchema:Mr.optional(Mr.Unknown),outputSchema:Mr.optional(Mr.Unknown),exampleInput:Mr.optional(Mr.Unknown),exampleOutput:Mr.optional(Mr.Unknown)}),Hd={"~standard":{version:1,vendor:"@executor/codemode-core",validate:e=>({value:e})}},aC=Mr.Struct({path:Mr.String,sourceKey:Mr.String,description:Mr.optional(Mr.String),interaction:Mr.optional(Mr.Union(Mr.Literal("auto"),Mr.Literal("required"))),elicitation:Mr.optional(Mr.Unknown),contract:Mr.optional(uIe),providerKind:Mr.optional(Mr.String),providerData:Mr.optional(Mr.Unknown)}),jX=Mr.Struct({namespace:Mr.String,displayName:Mr.optional(Mr.String),toolCount:Mr.optional(Mr.Number)});var kte=e0(Ite(),1);var LOe=new kte.default({allErrors:!0,strict:!1,validateSchema:!1,allowUnionTypes:!0}),$Oe=e=>{let t=e.replaceAll("~1","/").replaceAll("~0","~");return/^\d+$/.test(t)?Number(t):t},MOe=e=>{if(!(!e||e.length===0||e==="/"))return e.split("/").slice(1).filter(t=>t.length>0).map($Oe)},jOe=e=>{let t=e.keyword.trim(),r=(e.message??"Invalid value").trim();return t.length>0?`${t}: ${r}`:r},Hx=(e,t)=>{try{let r=LOe.compile(e);return{"~standard":{version:1,vendor:t?.vendor??"json-schema",validate:n=>{if(r(n))return{value:n};let i=(r.errors??[]).map(a=>({message:jOe(a),path:MOe(a.instancePath)}));return{issues:i.length>0?i:[{message:"Invalid value"}]}}}}}catch{return t?.fallback??Hd}};var g0=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},BOe=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"):[],Zx=(e,t)=>e.length<=t?e:`${e.slice(0,Math.max(0,t-4))} ...`,qOe=/^[A-Za-z_$][A-Za-z0-9_$]*$/,UOe=e=>qOe.test(e)?e:JSON.stringify(e),tL=(e,t,r)=>{let n=Array.isArray(t[e])?t[e].map(g0):[];if(n.length===0)return null;let o=n.map(i=>r(i)).filter(i=>i.length>0);return o.length===0?null:o.join(e==="allOf"?" & ":" | ")},Pte=e=>e.startsWith("#/")?e.slice(2).split("/").map(t=>t.replace(/~1/g,"/").replace(/~0/g,"~")):null,zOe=(e,t)=>{let r=Pte(t);if(!r||r.length===0)return null;let n=e;for(let i of r){let a=g0(n);if(!(i in a))return null;n=a[i]}let o=g0(n);return Object.keys(o).length>0?o:null},Cte=e=>Pte(e)?.at(-1)??e,VOe=(e,t={})=>{let r=g0(e),n=t.maxLength??220,o=Number.isFinite(n),i=t.maxDepth??(o?4:Number.POSITIVE_INFINITY),a=t.maxProperties??(o?6:Number.POSITIVE_INFINITY),s=(c,p,d)=>{let f=g0(c);if(d<=0){if(typeof f.title=="string"&&f.title.length>0)return f.title;if(f.type==="array")return"unknown[]";if(f.type==="object"||f.properties)return f.additionalProperties?"Record":"object"}if(typeof f.$ref=="string"){let g=f.$ref.trim();if(g.length===0)return"unknown";if(p.has(g))return Cte(g);let S=zOe(r,g);return S?s(S,new Set([...p,g]),d-1):Cte(g)}if("const"in f)return JSON.stringify(f.const);let m=Array.isArray(f.enum)?f.enum:[];if(m.length>0)return Zx(m.map(g=>JSON.stringify(g)).join(" | "),n);let y=tL("oneOf",f,g=>s(g,p,d-1))??tL("anyOf",f,g=>s(g,p,d-1))??tL("allOf",f,g=>s(g,p,d-1));if(y)return Zx(y,n);if(f.type==="array"){let g=f.items?s(f.items,p,d-1):"unknown";return Zx(`${g}[]`,n)}if(f.type==="object"||f.properties){let g=g0(f.properties),S=Object.keys(g);if(S.length===0)return f.additionalProperties?"Record":"object";let x=new Set(BOe(f.required)),A=S.slice(0,a),I=A.map(E=>`${UOe(E)}${x.has(E)?"":"?"}: ${s(g[E],p,d-1)}`);return A.lengthVOe(e,{maxLength:t});var hu=(e,t,r=220)=>{if(e===void 0)return t;try{return JOe(e,r)}catch{return t}};import*as aL from"effect/Data";import*as yi from"effect/Effect";import*as Fte from"effect/JSONSchema";import*as Ote from"effect/Data";var rL=class extends Ote.TaggedError("KernelCoreEffectError"){},Wx=(e,t)=>new rL({module:e,message:t});var KOe=e=>e,sL=e=>e instanceof Error?e:new Error(String(e)),GOe=e=>{if(!e||typeof e!="object"&&typeof e!="function")return null;let t=e["~standard"];if(!t||typeof t!="object")return null;let r=t.validate;return typeof r=="function"?r:null},HOe=e=>!e||e.length===0?"$":e.map(t=>typeof t=="object"&&t!==null&&"key"in t?String(t.key):String(t)).join("."),ZOe=e=>e.map(t=>`${HOe(t.path)}: ${t.message}`).join("; "),Rte=e=>{let t=GOe(e.schema);return t?yi.tryPromise({try:()=>Promise.resolve(t(e.value)),catch:sL}).pipe(yi.flatMap(r=>"issues"in r&&r.issues?yi.fail(Wx("tool-map",`Input validation failed for ${e.path}: ${ZOe(r.issues)}`)):yi.succeed(r.value))):yi.fail(Wx("tool-map",`Tool ${e.path} has no Standard Schema validator on inputSchema`))},WOe=e=>({mode:"form",message:`Approval required before invoking ${e}`,requestedSchema:{type:"object",properties:{},additionalProperties:!1}}),QOe={kind:"execute"},XOe=e=>e.metadata?.elicitation?{kind:"elicit",elicitation:e.metadata.elicitation}:e.metadata?.interaction==="required"?{kind:"elicit",elicitation:WOe(e.path)}:null,YOe=e=>XOe(e)??QOe,iL=class extends aL.TaggedError("ToolInteractionPendingError"){},BC=class extends aL.TaggedError("ToolInteractionDeniedError"){};var e4e=e=>{let t=YOe({metadata:e.metadata,path:e.path});if(!e.onToolInteraction)return yi.succeed(t);let r={path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.metadata,context:e.context,defaultElicitation:t.kind==="elicit"?t.elicitation:null};return e.onToolInteraction(r)},t4e=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),r4e=e=>{if(!e.response.content)return yi.succeed(e.args);if(!t4e(e.args))return yi.fail(Wx("tool-map",`Tool ${e.path} cannot merge elicitation content into non-object arguments`));let t={...e.args,...e.response.content};return Rte({schema:e.inputSchema,value:t,path:e.path})},n4e=e=>{let t=e.response.content&&typeof e.response.content.reason=="string"&&e.response.content.reason.trim().length>0?e.response.content.reason.trim():null;return t||(e.response.action==="cancel"?`Interaction cancelled for ${e.path}`:`Interaction declined for ${e.path}`)},o4e=e=>{if(e.decision.kind==="execute")return yi.succeed(e.args);if(e.decision.kind==="decline")return yi.fail(new BC({path:e.path,reason:e.decision.reason}));if(!e.onElicitation)return yi.fail(new iL({path:e.path,elicitation:e.decision.elicitation,interactionId:e.interactionId}));let t={interactionId:e.interactionId,path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.metadata,context:e.context,elicitation:e.decision.elicitation};return e.onElicitation(t).pipe(yi.mapError(sL),yi.flatMap(r=>r.action!=="accept"?yi.fail(new BC({path:e.path,reason:n4e({path:e.path,response:r})})):r4e({path:e.path,args:e.args,response:r,inputSchema:e.inputSchema})))};function i4e(e){return{tool:e.tool,metadata:e.metadata}}var Sl=i4e;var a4e=e=>typeof e=="object"&&e!==null&&"tool"in e,nL=e=>{if(e!=null)try{return(typeof e=="object"||typeof e=="function")&&e!==null&&"~standard"in e?Fte.make(e):e}catch{return}},Nte=(e,t,r=240)=>hu(e,t,r);var Lte=e=>{let t=e.sourceKey??"in_memory.tools";return Object.entries(e.tools).sort(([r],[n])=>r.localeCompare(n)).map(([r,n])=>{let o=a4e(n)?n:{tool:n},i=o.metadata?{sourceKey:t,...o.metadata}:{sourceKey:t};return{path:KOe(r),tool:o.tool,metadata:i}})};function $te(e){return Lte({tools:e.tools,sourceKey:e.sourceKey}).map(r=>{let n=r.metadata,o=r.tool,i=n?.contract?.inputSchema??nL(o.inputSchema)??nL(o.parameters),a=n?.contract?.outputSchema??nL(o.outputSchema),s={inputTypePreview:n?.contract?.inputTypePreview??Nte(i,"unknown"),outputTypePreview:n?.contract?.outputTypePreview??Nte(a,"unknown"),...i!==void 0?{inputSchema:i}:{},...a!==void 0?{outputSchema:a}:{},...n?.contract?.exampleInput!==void 0?{exampleInput:n.contract.exampleInput}:{},...n?.contract?.exampleOutput!==void 0?{exampleOutput:n.contract.exampleOutput}:{}};return{path:r.path,sourceKey:n?.sourceKey??"in_memory.tools",description:o.description,interaction:n?.interaction,elicitation:n?.elicitation,contract:s,...n?.providerKind?{providerKind:n.providerKind}:{},...n?.providerData!==void 0?{providerData:n.providerData}:{}}})}var oL=e=>e.replace(/[^a-zA-Z0-9._-]/g,"_"),s4e=()=>{let e=0;return t=>{e+=1;let r=typeof t.context?.runId=="string"&&t.context.runId.length>0?t.context.runId:"run",n=typeof t.context?.callId=="string"&&t.context.callId.length>0?t.context.callId:`call_${String(e)}`;return`${oL(r)}:${oL(n)}:${oL(String(t.path))}:${String(e)}`}},Yd=e=>{let t=Lte({tools:e.tools,sourceKey:e.sourceKey}),r=new Map(t.map(o=>[o.path,o])),n=s4e();return{invoke:({path:o,args:i,context:a})=>yi.gen(function*(){let s=r.get(o);if(!s)return yield*Wx("tool-map",`Unknown tool path: ${o}`);let c=yield*Rte({schema:s.tool.inputSchema,value:i,path:o}),p=yield*e4e({path:s.path,args:c,metadata:s.metadata,sourceKey:s.metadata?.sourceKey??"in_memory.tools",context:a,onToolInteraction:e.onToolInteraction}),d=p.kind==="elicit"&&p.interactionId?p.interactionId:n({path:s.path,context:a}),f=yield*o4e({path:s.path,args:c,inputSchema:s.tool.inputSchema,metadata:s.metadata,sourceKey:s.metadata?.sourceKey??"in_memory.tools",context:a,decision:p,interactionId:d,onElicitation:e.onElicitation});return yield*yi.tryPromise({try:()=>Promise.resolve(s.tool.execute(f,{path:s.path,sourceKey:s.metadata?.sourceKey??"in_memory.tools",metadata:s.metadata,invocation:a,onElicitation:e.onElicitation})),catch:sL})})}};import*as Zi from"effect/Effect";var Mte=e=>e.toLowerCase().split(/\W+/).map(t=>t.trim()).filter(Boolean),c4e=e=>[e.path,e.sourceKey,e.description??"",e.contract?.inputTypePreview??"",e.contract?.outputTypePreview??""].join(" ").toLowerCase(),qC=(e,t)=>{let r=e.contract;if(r)return t?r:{...r.inputTypePreview!==void 0?{inputTypePreview:r.inputTypePreview}:{},...r.outputTypePreview!==void 0?{outputTypePreview:r.outputTypePreview}:{},...r.exampleInput!==void 0?{exampleInput:r.exampleInput}:{},...r.exampleOutput!==void 0?{exampleOutput:r.exampleOutput}:{}}},jte=e=>{let{descriptor:t,includeSchemas:r}=e;return r?t:{...t,...qC(t,!1)?{contract:qC(t,!1)}:{}}};var l4e=e=>{let[t,r]=e.split(".");return r?`${t}.${r}`:t},cL=e=>e.namespace??l4e(e.descriptor.path),Bte=e=>e.searchText?.trim().toLowerCase()||c4e(e.descriptor),u4e=(e,t)=>{if(t.score)return t.score(e);let r=Bte(t);return e.reduce((n,o)=>n+(r.includes(o)?1:0),0)},p4e=e=>{let t=new Map;for(let r of e)for(let n of r){let o=t.get(n.namespace);t.set(n.namespace,{namespace:n.namespace,displayName:o?.displayName??n.displayName,...o?.toolCount!==void 0||n.toolCount!==void 0?{toolCount:(o?.toolCount??0)+(n.toolCount??0)}:{}})}return[...t.values()].sort((r,n)=>r.namespace.localeCompare(n.namespace))},d4e=e=>{let t=new Map;for(let r of e)for(let n of r)t.has(n.path)||t.set(n.path,n);return[...t.values()].sort((r,n)=>r.path.localeCompare(n.path))},_4e=e=>{let t=new Map;for(let r of e)for(let n of r)t.has(n.path)||t.set(n.path,n);return[...t.values()].sort((r,n)=>n.score-r.score||r.path.localeCompare(n.path))};function e_(e){return lL({entries:$te({tools:e.tools}).map(t=>({descriptor:t,...e.defaultNamespace!==void 0?{namespace:e.defaultNamespace}:{}}))})}function lL(e){let t=[...e.entries],r=new Map(t.map(o=>[o.descriptor.path,o])),n=new Map;for(let o of t){let i=cL(o);n.set(i,(n.get(i)??0)+1)}return{listNamespaces:({limit:o})=>Zi.succeed([...n.entries()].map(([i,a])=>({namespace:i,toolCount:a})).slice(0,o)),listTools:({namespace:o,query:i,limit:a,includeSchemas:s=!1})=>Zi.succeed(t.filter(c=>!o||cL(c)===o).filter(c=>{if(!i)return!0;let p=Bte(c);return Mte(i).every(d=>p.includes(d))}).slice(0,a).map(c=>jte({descriptor:c.descriptor,includeSchemas:s}))),getToolByPath:({path:o,includeSchemas:i})=>Zi.succeed(r.get(o)?jte({descriptor:r.get(o).descriptor,includeSchemas:i}):null),searchTools:({query:o,namespace:i,limit:a})=>{let s=Mte(o);return Zi.succeed(t.filter(c=>!i||cL(c)===i).map(c=>({path:c.descriptor.path,score:u4e(s,c)})).filter(c=>c.score>0).sort((c,p)=>p.score-c.score).slice(0,a))}}}function qte(e){let t=[...e.catalogs];return{listNamespaces:({limit:r})=>Zi.gen(function*(){let n=yield*Zi.forEach(t,o=>o.listNamespaces({limit:Math.max(r,r*t.length)}),{concurrency:"unbounded"});return p4e(n).slice(0,r)}),listTools:({namespace:r,query:n,limit:o,includeSchemas:i=!1})=>Zi.gen(function*(){let a=yield*Zi.forEach(t,s=>s.listTools({...r!==void 0?{namespace:r}:{},...n!==void 0?{query:n}:{},limit:Math.max(o,o*t.length),includeSchemas:i}),{concurrency:"unbounded"});return d4e(a).slice(0,o)}),getToolByPath:({path:r,includeSchemas:n})=>Zi.gen(function*(){for(let o of t){let i=yield*o.getToolByPath({path:r,includeSchemas:n});if(i)return i}return null}),searchTools:({query:r,namespace:n,limit:o})=>Zi.gen(function*(){let i=yield*Zi.forEach(t,a=>a.searchTools({query:r,...n!==void 0?{namespace:n}:{},limit:Math.max(o,o*t.length)}),{concurrency:"unbounded"});return _4e(i).slice(0,o)})}}function Ute(e){let{catalog:t}=e;return{catalog:{namespaces:({limit:i=200})=>t.listNamespaces({limit:i}).pipe(Zi.map(a=>({namespaces:a}))),tools:({namespace:i,query:a,limit:s=200,includeSchemas:c=!1})=>t.listTools({...i!==void 0?{namespace:i}:{},...a!==void 0?{query:a}:{},limit:s,includeSchemas:c}).pipe(Zi.map(p=>({results:p})))},describe:{tool:({path:i,includeSchemas:a=!1})=>t.getToolByPath({path:i,includeSchemas:a})},discover:({query:i,sourceKey:a,limit:s=12,includeSchemas:c=!1})=>Zi.gen(function*(){let p=yield*t.searchTools({query:i,limit:s});if(p.length===0)return{bestPath:null,results:[],total:0};let d=yield*Zi.forEach(p,m=>t.getToolByPath({path:m.path,includeSchemas:c}),{concurrency:"unbounded"}),f=p.map((m,y)=>{let g=d[y];return g?{path:g.path,score:m.score,description:g.description,interaction:g.interaction??"auto",...qC(g,c)?{contract:qC(g,c)}:{}}:null}).filter(Boolean);return{bestPath:f[0]?.path??null,results:f,total:f.length}})}}import*as Qx from"effect/Effect";import*as or from"effect/Schema";var f4e=e=>e,m4e=or.standardSchemaV1(or.Struct({limit:or.optional(or.Number)})),h4e=or.standardSchemaV1(or.Struct({namespaces:or.Array(jX)})),y4e=or.standardSchemaV1(or.Struct({namespace:or.optional(or.String),query:or.optional(or.String),limit:or.optional(or.Number),includeSchemas:or.optional(or.Boolean)})),g4e=or.standardSchemaV1(or.Struct({results:or.Array(aC)})),S4e=or.standardSchemaV1(or.Struct({path:or.String,includeSchemas:or.optional(or.Boolean)})),v4e=or.standardSchemaV1(or.NullOr(aC)),b4e=or.standardSchemaV1(or.Struct({query:or.String,limit:or.optional(or.Number),includeSchemas:or.optional(or.Boolean)})),x4e=or.extend(aC,or.Struct({score:or.Number})),E4e=or.standardSchemaV1(or.Struct({bestPath:or.NullOr(or.String),results:or.Array(x4e),total:or.Number})),zte=e=>{let t=e.sourceKey??"system",r=()=>{if(e.catalog)return e.catalog;if(e.getCatalog)return e.getCatalog();throw new Error("createSystemToolMap requires a catalog or getCatalog")},n=()=>Ute({catalog:r()}),o={};return o["catalog.namespaces"]=Sl({tool:{description:"List available namespaces with display names and tool counts",inputSchema:m4e,outputSchema:h4e,execute:({limit:i})=>Qx.runPromise(n().catalog.namespaces(i!==void 0?{limit:i}:{}))},metadata:{sourceKey:t,interaction:"auto"}}),o["catalog.tools"]=Sl({tool:{description:"List tools with optional namespace and query filters",inputSchema:y4e,outputSchema:g4e,execute:i=>Qx.runPromise(n().catalog.tools({...i.namespace!==void 0?{namespace:i.namespace}:{},...i.query!==void 0?{query:i.query}:{},...i.limit!==void 0?{limit:i.limit}:{},...i.includeSchemas!==void 0?{includeSchemas:i.includeSchemas}:{}}))},metadata:{sourceKey:t,interaction:"auto"}}),o["describe.tool"]=Sl({tool:{description:"Get metadata and optional schemas for a tool path",inputSchema:S4e,outputSchema:v4e,execute:({path:i,includeSchemas:a})=>Qx.runPromise(n().describe.tool({path:f4e(i),...a!==void 0?{includeSchemas:a}:{}}))},metadata:{sourceKey:t,interaction:"auto"}}),o.discover=Sl({tool:{description:"Search tools by intent and return ranked matches",inputSchema:b4e,outputSchema:E4e,execute:i=>Qx.runPromise(n().discover({query:i.query,...i.limit!==void 0?{limit:i.limit}:{},...i.includeSchemas!==void 0?{includeSchemas:i.includeSchemas}:{}}))},metadata:{sourceKey:t,interaction:"auto"}}),o},Vte=(e,t={})=>{let r=t.conflictMode??"throw",n={};for(let o of e)for(let[i,a]of Object.entries(o)){if(r==="throw"&&i in n)throw new Error(`Tool path conflict: ${i}`);n[i]=a}return n};var Jte=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),T4e=e=>e.replaceAll("~1","/").replaceAll("~0","~"),D4e=e=>{let t=e.trim();return t.length===0?[]:t.startsWith("/")?t.split("/").slice(1).map(T4e).filter(r=>r.length>0):t.split(".").filter(r=>r.length>0)},A4e=(e,t)=>{let r=t.toLowerCase();for(let n of Object.keys(e))if(n.toLowerCase()===r)return n;return null},w4e=e=>{let t={};for(let r of e.split(";")){let n=r.trim();if(n.length===0)continue;let o=n.indexOf("=");if(o===-1){t[n]="";continue}let i=n.slice(0,o).trim(),a=n.slice(o+1).trim();i.length>0&&(t[i]=a)}return t},I4e=(e,t,r)=>{let n=e;for(let o=0;o{let t=e.url instanceof URL?new URL(e.url.toString()):new URL(e.url);for(let[r,n]of Object.entries(e.queryParams??{}))t.searchParams.set(r,n);return t},Tc=e=>{let t=e.cookies??{};if(Object.keys(t).length===0)return{...e.headers};let r=A4e(e.headers,"cookie"),n=r?e.headers[r]:null,o={...n?w4e(n):{},...t},i={...e.headers};return i[r??"cookie"]=Object.entries(o).map(([a,s])=>`${a}=${encodeURIComponent(s)}`).join("; "),i},t_=e=>{let t=e.bodyValues??{};if(Object.keys(t).length===0)return e.body;let r=e.body==null?{}:Jte(e.body)?structuredClone(e.body):null;if(r===null)throw new Error(`${e.label??"HTTP request"} auth body placements require an object JSON body`);for(let[n,o]of Object.entries(t)){let i=D4e(n);if(i.length===0)throw new Error(`${e.label??"HTTP request"} auth body placement path cannot be empty`);I4e(r,i,o)}return r};var k4e=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),vp=(e,t)=>e>>>t|e<<32-t,C4e=(e,t)=>{let r=new Uint32Array(64);for(let f=0;f<16;f++)r[f]=t[f];for(let f=16;f<64;f++){let m=vp(r[f-15],7)^vp(r[f-15],18)^r[f-15]>>>3,y=vp(r[f-2],17)^vp(r[f-2],19)^r[f-2]>>>10;r[f]=r[f-16]+m+r[f-7]+y|0}let n=e[0],o=e[1],i=e[2],a=e[3],s=e[4],c=e[5],p=e[6],d=e[7];for(let f=0;f<64;f++){let m=vp(s,6)^vp(s,11)^vp(s,25),y=s&c^~s&p,g=d+m+y+k4e[f]+r[f]|0,S=vp(n,2)^vp(n,13)^vp(n,22),x=n&o^n&i^o&i,A=S+x|0;d=p,p=c,c=s,s=a+g|0,a=i,i=o,o=n,n=g+A|0}e[0]=e[0]+n|0,e[1]=e[1]+o|0,e[2]=e[2]+i|0,e[3]=e[3]+a|0,e[4]=e[4]+s|0,e[5]=e[5]+c|0,e[6]=e[6]+p|0,e[7]=e[7]+d|0},P4e=e=>{if(typeof TextEncoder<"u")return new TextEncoder().encode(e);let t=[];for(let r=0;r>6,128|n&63);else if(n>=55296&&n<56320&&r+1>18,128|n>>12&63,128|n>>6&63,128|n&63)}else t.push(224|n>>12,128|n>>6&63,128|n&63)}return new Uint8Array(t)},O4e=e=>{let t=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),r=e.length*8,n=new Uint8Array(Math.ceil((e.length+9)/64)*64);n.set(e),n[e.length]=128;let o=new DataView(n.buffer);o.setUint32(n.length-4,r,!1),r>4294967295&&o.setUint32(n.length-8,Math.floor(r/4294967296),!1);let i=new Uint32Array(16);for(let c=0;c{let t="";for(let r=0;rN4e(O4e(P4e(e)));import*as Yc from"effect/Effect";import*as zF from"effect/Option";import*as Kte from"effect/Data";import*as Ao from"effect/Effect";import*as Gte from"effect/Exit";import*as S0 from"effect/Scope";var UC=class extends Kte.TaggedError("McpConnectionPoolError"){},r_=new Map,Hte=e=>new UC(e),F4e=(e,t,r)=>{let n=r_.get(e);!n||n.get(t)!==r||(n.delete(t),n.size===0&&r_.delete(e))},R4e=e=>Ao.tryPromise({try:()=>Promise.resolve(e.close?.()),catch:t=>Hte({operation:"close",message:"Failed closing pooled MCP connection",cause:t})}).pipe(Ao.ignore),L4e=e=>{let t=Ao.runSync(S0.make()),r=Ao.runSync(Ao.cached(Ao.acquireRelease(e.pipe(Ao.mapError(n=>Hte({operation:"connect",message:"Failed creating pooled MCP connection",cause:n}))),R4e).pipe(S0.extend(t))));return{scope:t,connection:r}},$4e=e=>{let t=r_.get(e.runId)?.get(e.sourceKey);if(t)return t;let r=r_.get(e.runId);r||(r=new Map,r_.set(e.runId,r));let n=L4e(e.connect);return n.connection=n.connection.pipe(Ao.tapError(()=>Ao.sync(()=>{F4e(e.runId,e.sourceKey,n)}).pipe(Ao.zipRight(uL(n))))),r.set(e.sourceKey,n),n},uL=e=>S0.close(e.scope,Gte.void).pipe(Ao.ignore),pL=e=>!e.runId||!e.sourceKey?e.connect:Ao.gen(function*(){return{client:(yield*$4e({runId:e.runId,sourceKey:e.sourceKey,connect:e.connect}).connection).client,close:async()=>{}}}),zC=e=>{let t=r_.get(e);return t?(r_.delete(e),Ao.forEach([...t.values()],uL,{discard:!0})):Ao.void},dL=()=>{let e=[...r_.values()].flatMap(t=>[...t.values()]);return r_.clear(),Ao.forEach(e,uL,{discard:!0})};var gn;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function r(o){throw new Error}e.assertNever=r,e.arrayToEnum=o=>{let i={};for(let a of o)i[a]=a;return i},e.getValidEnumValues=o=>{let i=e.objectKeys(o).filter(s=>typeof o[o[s]]!="number"),a={};for(let s of i)a[s]=o[s];return e.objectValues(a)},e.objectValues=o=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let i=[];for(let a in o)Object.prototype.hasOwnProperty.call(o,a)&&i.push(a);return i},e.find=(o,i)=>{for(let a of o)if(i(a))return a},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function n(o,i=" | "){return o.map(a=>typeof a=="string"?`'${a}'`:a).join(i)}e.joinValues=n,e.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(gn||(gn={}));var Zte;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Zte||(Zte={}));var gt=gn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),n_=e=>{switch(typeof e){case"undefined":return gt.undefined;case"string":return gt.string;case"number":return Number.isNaN(e)?gt.nan:gt.number;case"boolean":return gt.boolean;case"function":return gt.function;case"bigint":return gt.bigint;case"symbol":return gt.symbol;case"object":return Array.isArray(e)?gt.array:e===null?gt.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?gt.promise:typeof Map<"u"&&e instanceof Map?gt.map:typeof Set<"u"&&e instanceof Set?gt.set:typeof Date<"u"&&e instanceof Date?gt.date:gt.object;default:return gt.unknown}};var Je=gn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var Ac=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(i){return i.message},n={_errors:[]},o=i=>{for(let a of i.issues)if(a.code==="invalid_union")a.unionErrors.map(o);else if(a.code==="invalid_return_type")o(a.returnTypeError);else if(a.code==="invalid_arguments")o(a.argumentsError);else if(a.path.length===0)n._errors.push(r(a));else{let s=n,c=0;for(;cr.message){let r=Object.create(null),n=[];for(let o of this.issues)if(o.path.length>0){let i=o.path[0];r[i]=r[i]||[],r[i].push(t(o))}else n.push(t(o));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Ac.create=e=>new Ac(e);var M4e=(e,t)=>{let r;switch(e.code){case Je.invalid_type:e.received===gt.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case Je.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,gn.jsonStringifyReplacer)}`;break;case Je.unrecognized_keys:r=`Unrecognized key(s) in object: ${gn.joinValues(e.keys,", ")}`;break;case Je.invalid_union:r="Invalid input";break;case Je.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${gn.joinValues(e.options)}`;break;case Je.invalid_enum_value:r=`Invalid enum value. Expected ${gn.joinValues(e.options)}, received '${e.received}'`;break;case Je.invalid_arguments:r="Invalid function arguments";break;case Je.invalid_return_type:r="Invalid function return type";break;case Je.invalid_date:r="Invalid date";break;case Je.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:gn.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case Je.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case Je.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case Je.custom:r="Invalid input";break;case Je.invalid_intersection_types:r="Intersection results could not be merged";break;case Je.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Je.not_finite:r="Number must be finite";break;default:r=t.defaultError,gn.assertNever(e)}return{message:r}},Zf=M4e;var j4e=Zf;function Xx(){return j4e}var VC=e=>{let{data:t,path:r,errorMaps:n,issueData:o}=e,i=[...r,...o.path||[]],a={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let s="",c=n.filter(p=>!!p).slice().reverse();for(let p of c)s=p(a,{data:t,defaultError:s}).message;return{...o,path:i,message:s}};function ft(e,t){let r=Xx(),n=VC({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Zf?void 0:Zf].filter(o=>!!o)});e.common.issues.push(n)}var ts=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let n=[];for(let o of r){if(o.status==="aborted")return yr;o.status==="dirty"&&t.dirty(),n.push(o.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let o of r){let i=await o.key,a=await o.value;n.push({key:i,value:a})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let o of r){let{key:i,value:a}=o;if(i.status==="aborted"||a.status==="aborted")return yr;i.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof a.value<"u"||o.alwaysSet)&&(n[i.value]=a.value)}return{status:t.value,value:n}}},yr=Object.freeze({status:"aborted"}),v0=e=>({status:"dirty",value:e}),bs=e=>({status:"valid",value:e}),_L=e=>e.status==="aborted",fL=e=>e.status==="dirty",Ny=e=>e.status==="valid",Yx=e=>typeof Promise<"u"&&e instanceof Promise;var Lt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Lt||(Lt={}));var vl=class{constructor(t,r,n,o){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Wte=(e,t)=>{if(Ny(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Ac(e.common.issues);return this._error=r,this._error}}};function jr(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(a,s)=>{let{message:c}=e;return a.code==="invalid_enum_value"?{message:c??s.defaultError}:typeof s.data>"u"?{message:c??n??s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:c??r??s.defaultError}},description:o}}var an=class{get description(){return this._def.description}_getType(t){return n_(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:n_(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ts,ctx:{common:t.parent.common,data:t.data,parsedType:n_(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(Yx(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:n_(t)},o=this._parseSync({data:t,path:n.path,parent:n});return Wte(n,o)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:n_(t)};if(!this["~standard"].async)try{let n=this._parseSync({data:t,path:[],parent:r});return Ny(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(n=>Ny(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:n_(t)},o=this._parse({data:t,path:n.path,parent:n}),i=await(Yx(o)?o:Promise.resolve(o));return Wte(n,i)}refine(t,r){let n=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,i)=>{let a=t(o),s=()=>i.addIssue({code:Je.custom,...n(o)});return typeof Promise<"u"&&a instanceof Promise?a.then(c=>c?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,r){return this._refinement((n,o)=>t(n)?!0:(o.addIssue(typeof r=="function"?r(n,o):r),!1))}_refinement(t){return new Su({schema:this,typeName:sr.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return gu.create(this,this._def)}nullable(){return a_.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Qf.create(this)}promise(){return Fy.create(this,this._def)}or(t){return D0.create([this,t],this._def)}and(t){return A0.create(this,t,this._def)}transform(t){return new Su({...jr(this._def),schema:this,typeName:sr.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new P0({...jr(this._def),innerType:this,defaultValue:r,typeName:sr.ZodDefault})}brand(){return new JC({typeName:sr.ZodBranded,type:this,...jr(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new O0({...jr(this._def),innerType:this,catchValue:r,typeName:sr.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return KC.create(this,t)}readonly(){return N0.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},B4e=/^c[^\s-]{8,}$/i,q4e=/^[0-9a-z]+$/,U4e=/^[0-9A-HJKMNP-TV-Z]{26}$/i,z4e=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,V4e=/^[a-z0-9_-]{21}$/i,J4e=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,K4e=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,G4e=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,H4e="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",mL,Z4e=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,W4e=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Q4e=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,X4e=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Y4e=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,eNe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Qte="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",tNe=new RegExp(`^${Qte}$`);function Xte(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function rNe(e){return new RegExp(`^${Xte(e)}$`)}function nNe(e){let t=`${Qte}T${Xte(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function oNe(e,t){return!!((t==="v4"||!t)&&Z4e.test(e)||(t==="v6"||!t)&&Q4e.test(e))}function iNe(e,t){if(!J4e.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function aNe(e,t){return!!((t==="v4"||!t)&&W4e.test(e)||(t==="v6"||!t)&&X4e.test(e))}var x0=class e extends an{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==gt.string){let i=this._getOrReturnCtx(t);return ft(i,{code:Je.invalid_type,expected:gt.string,received:i.parsedType}),yr}let n=new ts,o;for(let i of this._def.checks)if(i.kind==="min")t.data.lengthi.value&&(o=this._getOrReturnCtx(t,o),ft(o,{code:Je.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){let a=t.data.length>i.value,s=t.data.lengtht.test(o),{validation:r,code:Je.invalid_string,...Lt.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Lt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Lt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Lt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Lt.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Lt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Lt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Lt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Lt.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Lt.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Lt.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Lt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Lt.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Lt.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...Lt.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Lt.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Lt.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Lt.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...Lt.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Lt.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Lt.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Lt.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Lt.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Lt.errToObj(r)})}nonempty(t){return this.min(1,Lt.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew x0({checks:[],typeName:sr.ZodString,coerce:e?.coerce??!1,...jr(e)});function sNe(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n,i=Number.parseInt(e.toFixed(o).replace(".","")),a=Number.parseInt(t.toFixed(o).replace(".",""));return i%a/10**o}var eE=class e extends an{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==gt.number){let i=this._getOrReturnCtx(t);return ft(i,{code:Je.invalid_type,expected:gt.number,received:i.parsedType}),yr}let n,o=new ts;for(let i of this._def.checks)i.kind==="int"?gn.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),ft(n,{code:Je.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),ft(n,{code:Je.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?sNe(t.data,i.value)!==0&&(n=this._getOrReturnCtx(t,n),ft(n,{code:Je.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),ft(n,{code:Je.not_finite,message:i.message}),o.dirty()):gn.assertNever(i);return{status:o.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Lt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Lt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Lt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Lt.toString(r))}setLimit(t,r,n,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Lt.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Lt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Lt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Lt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Lt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Lt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Lt.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Lt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Lt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Lt.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.valuet.kind==="int"||t.kind==="multipleOf"&&gn.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.valuenew eE({checks:[],typeName:sr.ZodNumber,coerce:e?.coerce||!1,...jr(e)});var tE=class e extends an{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==gt.bigint)return this._getInvalidInput(t);let n,o=new ts;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),ft(n,{code:Je.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),ft(n,{code:Je.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):gn.assertNever(i);return{status:o.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return ft(r,{code:Je.invalid_type,expected:gt.bigint,received:r.parsedType}),yr}gte(t,r){return this.setLimit("min",t,!0,Lt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Lt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Lt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Lt.toString(r))}setLimit(t,r,n,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Lt.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Lt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Lt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Lt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Lt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Lt.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew tE({checks:[],typeName:sr.ZodBigInt,coerce:e?.coerce??!1,...jr(e)});var rE=class extends an{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==gt.boolean){let n=this._getOrReturnCtx(t);return ft(n,{code:Je.invalid_type,expected:gt.boolean,received:n.parsedType}),yr}return bs(t.data)}};rE.create=e=>new rE({typeName:sr.ZodBoolean,coerce:e?.coerce||!1,...jr(e)});var nE=class e extends an{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==gt.date){let i=this._getOrReturnCtx(t);return ft(i,{code:Je.invalid_type,expected:gt.date,received:i.parsedType}),yr}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return ft(i,{code:Je.invalid_date}),yr}let n=new ts,o;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()i.value&&(o=this._getOrReturnCtx(t,o),ft(o,{code:Je.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):gn.assertNever(i);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:Lt.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Lt.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew nE({checks:[],coerce:e?.coerce||!1,typeName:sr.ZodDate,...jr(e)});var oE=class extends an{_parse(t){if(this._getType(t)!==gt.symbol){let n=this._getOrReturnCtx(t);return ft(n,{code:Je.invalid_type,expected:gt.symbol,received:n.parsedType}),yr}return bs(t.data)}};oE.create=e=>new oE({typeName:sr.ZodSymbol,...jr(e)});var E0=class extends an{_parse(t){if(this._getType(t)!==gt.undefined){let n=this._getOrReturnCtx(t);return ft(n,{code:Je.invalid_type,expected:gt.undefined,received:n.parsedType}),yr}return bs(t.data)}};E0.create=e=>new E0({typeName:sr.ZodUndefined,...jr(e)});var T0=class extends an{_parse(t){if(this._getType(t)!==gt.null){let n=this._getOrReturnCtx(t);return ft(n,{code:Je.invalid_type,expected:gt.null,received:n.parsedType}),yr}return bs(t.data)}};T0.create=e=>new T0({typeName:sr.ZodNull,...jr(e)});var iE=class extends an{constructor(){super(...arguments),this._any=!0}_parse(t){return bs(t.data)}};iE.create=e=>new iE({typeName:sr.ZodAny,...jr(e)});var Wf=class extends an{constructor(){super(...arguments),this._unknown=!0}_parse(t){return bs(t.data)}};Wf.create=e=>new Wf({typeName:sr.ZodUnknown,...jr(e)});var bp=class extends an{_parse(t){let r=this._getOrReturnCtx(t);return ft(r,{code:Je.invalid_type,expected:gt.never,received:r.parsedType}),yr}};bp.create=e=>new bp({typeName:sr.ZodNever,...jr(e)});var aE=class extends an{_parse(t){if(this._getType(t)!==gt.undefined){let n=this._getOrReturnCtx(t);return ft(n,{code:Je.invalid_type,expected:gt.void,received:n.parsedType}),yr}return bs(t.data)}};aE.create=e=>new aE({typeName:sr.ZodVoid,...jr(e)});var Qf=class e extends an{_parse(t){let{ctx:r,status:n}=this._processInputParams(t),o=this._def;if(r.parsedType!==gt.array)return ft(r,{code:Je.invalid_type,expected:gt.array,received:r.parsedType}),yr;if(o.exactLength!==null){let a=r.data.length>o.exactLength.value,s=r.data.lengtho.maxLength.value&&(ft(r,{code:Je.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((a,s)=>o.type._parseAsync(new vl(r,a,r.path,s)))).then(a=>ts.mergeArray(n,a));let i=[...r.data].map((a,s)=>o.type._parseSync(new vl(r,a,r.path,s)));return ts.mergeArray(n,i)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:Lt.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:Lt.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:Lt.toString(r)}})}nonempty(t){return this.min(1,t)}};Qf.create=(e,t)=>new Qf({type:e,minLength:null,maxLength:null,exactLength:null,typeName:sr.ZodArray,...jr(t)});function b0(e){if(e instanceof wc){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=gu.create(b0(n))}return new wc({...e._def,shape:()=>t})}else return e instanceof Qf?new Qf({...e._def,type:b0(e.element)}):e instanceof gu?gu.create(b0(e.unwrap())):e instanceof a_?a_.create(b0(e.unwrap())):e instanceof i_?i_.create(e.items.map(t=>b0(t))):e}var wc=class e extends an{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=gn.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==gt.object){let p=this._getOrReturnCtx(t);return ft(p,{code:Je.invalid_type,expected:gt.object,received:p.parsedType}),yr}let{status:n,ctx:o}=this._processInputParams(t),{shape:i,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof bp&&this._def.unknownKeys==="strip"))for(let p in o.data)a.includes(p)||s.push(p);let c=[];for(let p of a){let d=i[p],f=o.data[p];c.push({key:{status:"valid",value:p},value:d._parse(new vl(o,f,o.path,p)),alwaysSet:p in o.data})}if(this._def.catchall instanceof bp){let p=this._def.unknownKeys;if(p==="passthrough")for(let d of s)c.push({key:{status:"valid",value:d},value:{status:"valid",value:o.data[d]}});else if(p==="strict")s.length>0&&(ft(o,{code:Je.unrecognized_keys,keys:s}),n.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let p=this._def.catchall;for(let d of s){let f=o.data[d];c.push({key:{status:"valid",value:d},value:p._parse(new vl(o,f,o.path,d)),alwaysSet:d in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let p=[];for(let d of c){let f=await d.key,m=await d.value;p.push({key:f,value:m,alwaysSet:d.alwaysSet})}return p}).then(p=>ts.mergeObjectSync(n,p)):ts.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(t){return Lt.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{let o=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:Lt.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:sr.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let n of gn.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let n of gn.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}deepPartial(){return b0(this)}partial(t){let r={};for(let n of gn.objectKeys(this.shape)){let o=this.shape[n];t&&!t[n]?r[n]=o:r[n]=o.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let n of gn.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof gu;)i=i._def.innerType;r[n]=i}return new e({...this._def,shape:()=>r})}keyof(){return Yte(gn.objectKeys(this.shape))}};wc.create=(e,t)=>new wc({shape:()=>e,unknownKeys:"strip",catchall:bp.create(),typeName:sr.ZodObject,...jr(t)});wc.strictCreate=(e,t)=>new wc({shape:()=>e,unknownKeys:"strict",catchall:bp.create(),typeName:sr.ZodObject,...jr(t)});wc.lazycreate=(e,t)=>new wc({shape:e,unknownKeys:"strip",catchall:bp.create(),typeName:sr.ZodObject,...jr(t)});var D0=class extends an{_parse(t){let{ctx:r}=this._processInputParams(t),n=this._def.options;function o(i){for(let s of i)if(s.result.status==="valid")return s.result;for(let s of i)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;let a=i.map(s=>new Ac(s.ctx.common.issues));return ft(r,{code:Je.invalid_union,unionErrors:a}),yr}if(r.common.async)return Promise.all(n.map(async i=>{let a={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(o);{let i,a=[];for(let c of n){let p={...r,common:{...r.common,issues:[]},parent:null},d=c._parseSync({data:r.data,path:r.path,parent:p});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:p}),p.common.issues.length&&a.push(p.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;let s=a.map(c=>new Ac(c));return ft(r,{code:Je.invalid_union,unionErrors:s}),yr}}get options(){return this._def.options}};D0.create=(e,t)=>new D0({options:e,typeName:sr.ZodUnion,...jr(t)});var o_=e=>e instanceof w0?o_(e.schema):e instanceof Su?o_(e.innerType()):e instanceof I0?[e.value]:e instanceof k0?e.options:e instanceof C0?gn.objectValues(e.enum):e instanceof P0?o_(e._def.innerType):e instanceof E0?[void 0]:e instanceof T0?[null]:e instanceof gu?[void 0,...o_(e.unwrap())]:e instanceof a_?[null,...o_(e.unwrap())]:e instanceof JC||e instanceof N0?o_(e.unwrap()):e instanceof O0?o_(e._def.innerType):[],hL=class e extends an{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==gt.object)return ft(r,{code:Je.invalid_type,expected:gt.object,received:r.parsedType}),yr;let n=this.discriminator,o=r.data[n],i=this.optionsMap.get(o);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(ft(r,{code:Je.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),yr)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let o=new Map;for(let i of r){let a=o_(i.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let s of a){if(o.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);o.set(s,i)}}return new e({typeName:sr.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:o,...jr(n)})}};function yL(e,t){let r=n_(e),n=n_(t);if(e===t)return{valid:!0,data:e};if(r===gt.object&&n===gt.object){let o=gn.objectKeys(t),i=gn.objectKeys(e).filter(s=>o.indexOf(s)!==-1),a={...e,...t};for(let s of i){let c=yL(e[s],t[s]);if(!c.valid)return{valid:!1};a[s]=c.data}return{valid:!0,data:a}}else if(r===gt.array&&n===gt.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let i=0;i{if(_L(i)||_L(a))return yr;let s=yL(i.value,a.value);return s.valid?((fL(i)||fL(a))&&r.dirty(),{status:r.value,value:s.data}):(ft(n,{code:Je.invalid_intersection_types}),yr)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,a])=>o(i,a)):o(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};A0.create=(e,t,r)=>new A0({left:e,right:t,typeName:sr.ZodIntersection,...jr(r)});var i_=class e extends an{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==gt.array)return ft(n,{code:Je.invalid_type,expected:gt.array,received:n.parsedType}),yr;if(n.data.lengththis._def.items.length&&(ft(n,{code:Je.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let i=[...n.data].map((a,s)=>{let c=this._def.items[s]||this._def.rest;return c?c._parse(new vl(n,a,n.path,s)):null}).filter(a=>!!a);return n.common.async?Promise.all(i).then(a=>ts.mergeArray(r,a)):ts.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};i_.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new i_({items:e,typeName:sr.ZodTuple,rest:null,...jr(t)})};var gL=class e extends an{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==gt.object)return ft(n,{code:Je.invalid_type,expected:gt.object,received:n.parsedType}),yr;let o=[],i=this._def.keyType,a=this._def.valueType;for(let s in n.data)o.push({key:i._parse(new vl(n,s,n.path,s)),value:a._parse(new vl(n,n.data[s],n.path,s)),alwaysSet:s in n.data});return n.common.async?ts.mergeObjectAsync(r,o):ts.mergeObjectSync(r,o)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof an?new e({keyType:t,valueType:r,typeName:sr.ZodRecord,...jr(n)}):new e({keyType:x0.create(),valueType:t,typeName:sr.ZodRecord,...jr(r)})}},sE=class extends an{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==gt.map)return ft(n,{code:Je.invalid_type,expected:gt.map,received:n.parsedType}),yr;let o=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([s,c],p)=>({key:o._parse(new vl(n,s,n.path,[p,"key"])),value:i._parse(new vl(n,c,n.path,[p,"value"]))}));if(n.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let c of a){let p=await c.key,d=await c.value;if(p.status==="aborted"||d.status==="aborted")return yr;(p.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(p.value,d.value)}return{status:r.value,value:s}})}else{let s=new Map;for(let c of a){let p=c.key,d=c.value;if(p.status==="aborted"||d.status==="aborted")return yr;(p.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(p.value,d.value)}return{status:r.value,value:s}}}};sE.create=(e,t,r)=>new sE({valueType:t,keyType:e,typeName:sr.ZodMap,...jr(r)});var cE=class e extends an{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==gt.set)return ft(n,{code:Je.invalid_type,expected:gt.set,received:n.parsedType}),yr;let o=this._def;o.minSize!==null&&n.data.sizeo.maxSize.value&&(ft(n,{code:Je.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());let i=this._def.valueType;function a(c){let p=new Set;for(let d of c){if(d.status==="aborted")return yr;d.status==="dirty"&&r.dirty(),p.add(d.value)}return{status:r.value,value:p}}let s=[...n.data.values()].map((c,p)=>i._parse(new vl(n,c,n.path,p)));return n.common.async?Promise.all(s).then(c=>a(c)):a(s)}min(t,r){return new e({...this._def,minSize:{value:t,message:Lt.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:Lt.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};cE.create=(e,t)=>new cE({valueType:e,minSize:null,maxSize:null,typeName:sr.ZodSet,...jr(t)});var SL=class e extends an{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==gt.function)return ft(r,{code:Je.invalid_type,expected:gt.function,received:r.parsedType}),yr;function n(s,c){return VC({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Xx(),Zf].filter(p=>!!p),issueData:{code:Je.invalid_arguments,argumentsError:c}})}function o(s,c){return VC({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Xx(),Zf].filter(p=>!!p),issueData:{code:Je.invalid_return_type,returnTypeError:c}})}let i={errorMap:r.common.contextualErrorMap},a=r.data;if(this._def.returns instanceof Fy){let s=this;return bs(async function(...c){let p=new Ac([]),d=await s._def.args.parseAsync(c,i).catch(y=>{throw p.addIssue(n(c,y)),p}),f=await Reflect.apply(a,this,d);return await s._def.returns._def.type.parseAsync(f,i).catch(y=>{throw p.addIssue(o(f,y)),p})})}else{let s=this;return bs(function(...c){let p=s._def.args.safeParse(c,i);if(!p.success)throw new Ac([n(c,p.error)]);let d=Reflect.apply(a,this,p.data),f=s._def.returns.safeParse(d,i);if(!f.success)throw new Ac([o(d,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:i_.create(t).rest(Wf.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new e({args:t||i_.create([]).rest(Wf.create()),returns:r||Wf.create(),typeName:sr.ZodFunction,...jr(n)})}},w0=class extends an{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};w0.create=(e,t)=>new w0({getter:e,typeName:sr.ZodLazy,...jr(t)});var I0=class extends an{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return ft(r,{received:r.data,code:Je.invalid_literal,expected:this._def.value}),yr}return{status:"valid",value:t.data}}get value(){return this._def.value}};I0.create=(e,t)=>new I0({value:e,typeName:sr.ZodLiteral,...jr(t)});function Yte(e,t){return new k0({values:e,typeName:sr.ZodEnum,...jr(t)})}var k0=class e extends an{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),n=this._def.values;return ft(r,{expected:gn.joinValues(n),received:r.parsedType,code:Je.invalid_type}),yr}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),n=this._def.values;return ft(r,{received:r.data,code:Je.invalid_enum_value,options:n}),yr}return bs(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}};k0.create=Yte;var C0=class extends an{_parse(t){let r=gn.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==gt.string&&n.parsedType!==gt.number){let o=gn.objectValues(r);return ft(n,{expected:gn.joinValues(o),received:n.parsedType,code:Je.invalid_type}),yr}if(this._cache||(this._cache=new Set(gn.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=gn.objectValues(r);return ft(n,{received:n.data,code:Je.invalid_enum_value,options:o}),yr}return bs(t.data)}get enum(){return this._def.values}};C0.create=(e,t)=>new C0({values:e,typeName:sr.ZodNativeEnum,...jr(t)});var Fy=class extends an{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==gt.promise&&r.common.async===!1)return ft(r,{code:Je.invalid_type,expected:gt.promise,received:r.parsedType}),yr;let n=r.parsedType===gt.promise?r.data:Promise.resolve(r.data);return bs(n.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Fy.create=(e,t)=>new Fy({type:e,typeName:sr.ZodPromise,...jr(t)});var Su=class extends an{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===sr.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:a=>{ft(n,a),a.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){let a=o.transform(n.data,i);if(n.common.async)return Promise.resolve(a).then(async s=>{if(r.value==="aborted")return yr;let c=await this._def.schema._parseAsync({data:s,path:n.path,parent:n});return c.status==="aborted"?yr:c.status==="dirty"?v0(c.value):r.value==="dirty"?v0(c.value):c});{if(r.value==="aborted")return yr;let s=this._def.schema._parseSync({data:a,path:n.path,parent:n});return s.status==="aborted"?yr:s.status==="dirty"?v0(s.value):r.value==="dirty"?v0(s.value):s}}if(o.type==="refinement"){let a=s=>{let c=o.refinement(s,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?yr:(s.status==="dirty"&&r.dirty(),a(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>s.status==="aborted"?yr:(s.status==="dirty"&&r.dirty(),a(s.value).then(()=>({status:r.value,value:s.value}))))}if(o.type==="transform")if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Ny(a))return yr;let s=o.transform(a.value,i);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:s}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>Ny(a)?Promise.resolve(o.transform(a.value,i)).then(s=>({status:r.value,value:s})):yr);gn.assertNever(o)}};Su.create=(e,t,r)=>new Su({schema:e,typeName:sr.ZodEffects,effect:t,...jr(r)});Su.createWithPreprocess=(e,t,r)=>new Su({schema:t,effect:{type:"preprocess",transform:e},typeName:sr.ZodEffects,...jr(r)});var gu=class extends an{_parse(t){return this._getType(t)===gt.undefined?bs(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};gu.create=(e,t)=>new gu({innerType:e,typeName:sr.ZodOptional,...jr(t)});var a_=class extends an{_parse(t){return this._getType(t)===gt.null?bs(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};a_.create=(e,t)=>new a_({innerType:e,typeName:sr.ZodNullable,...jr(t)});var P0=class extends an{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===gt.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};P0.create=(e,t)=>new P0({innerType:e,typeName:sr.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...jr(t)});var O0=class extends an{_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Yx(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ac(n.common.issues)},input:n.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ac(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};O0.create=(e,t)=>new O0({innerType:e,typeName:sr.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...jr(t)});var lE=class extends an{_parse(t){if(this._getType(t)!==gt.nan){let n=this._getOrReturnCtx(t);return ft(n,{code:Je.invalid_type,expected:gt.nan,received:n.parsedType}),yr}return{status:"valid",value:t.data}}};lE.create=e=>new lE({typeName:sr.ZodNaN,...jr(e)});var JC=class extends an{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},KC=class e extends an{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?yr:i.status==="dirty"?(r.dirty(),v0(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{let o=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?yr:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:sr.ZodPipeline})}},N0=class extends an{_parse(t){let r=this._def.innerType._parse(t),n=o=>(Ny(o)&&(o.value=Object.freeze(o.value)),o);return Yx(r)?r.then(o=>n(o)):n(r)}unwrap(){return this._def.innerType}};N0.create=(e,t)=>new N0({innerType:e,typeName:sr.ZodReadonly,...jr(t)});var Hkt={object:wc.lazycreate},sr;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(sr||(sr={}));var Zkt=x0.create,Wkt=eE.create,Qkt=lE.create,Xkt=tE.create,Ykt=rE.create,eCt=nE.create,tCt=oE.create,rCt=E0.create,nCt=T0.create,oCt=iE.create,iCt=Wf.create,aCt=bp.create,sCt=aE.create,cCt=Qf.create,cNe=wc.create,lCt=wc.strictCreate,uCt=D0.create,pCt=hL.create,dCt=A0.create,_Ct=i_.create,fCt=gL.create,mCt=sE.create,hCt=cE.create,yCt=SL.create,gCt=w0.create,SCt=I0.create,vCt=k0.create,bCt=C0.create,xCt=Fy.create,ECt=Su.create,TCt=gu.create,DCt=a_.create,ACt=Su.createWithPreprocess,wCt=KC.create;var HC=Object.freeze({status:"aborted"});function ne(e,t,r){function n(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);let p=a.prototype,d=Object.keys(p);for(let f=0;fr?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var xp=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ry=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},GC={};function Wi(e){return e&&Object.assign(GC,e),GC}var Ke={};YS(Ke,{BIGINT_FORMAT_RANGES:()=>kL,Class:()=>bL,NUMBER_FORMAT_RANGES:()=>IL,aborted:()=>tm,allowsEval:()=>TL,assert:()=>mNe,assertEqual:()=>pNe,assertIs:()=>_Ne,assertNever:()=>fNe,assertNotEqual:()=>dNe,assignProp:()=>Yf,base64ToUint8Array:()=>sre,base64urlToUint8Array:()=>ANe,cached:()=>R0,captureStackTrace:()=>WC,cleanEnum:()=>DNe,cleanRegex:()=>dE,clone:()=>xs,cloneDef:()=>yNe,createTransparentProxy:()=>ENe,defineLazy:()=>Ur,esc:()=>ZC,escapeRegex:()=>bl,extend:()=>nre,finalizeIssue:()=>Zs,floatSafeRemainder:()=>xL,getElementAtPath:()=>gNe,getEnumValues:()=>pE,getLengthableOrigin:()=>mE,getParsedType:()=>xNe,getSizableOrigin:()=>fE,hexToUint8Array:()=>INe,isObject:()=>Ly,isPlainObject:()=>em,issue:()=>L0,joinValues:()=>ur,jsonStringifyReplacer:()=>F0,merge:()=>TNe,mergeDefs:()=>s_,normalizeParams:()=>st,nullish:()=>Xf,numKeys:()=>bNe,objectClone:()=>hNe,omit:()=>rre,optionalKeys:()=>wL,parsedType:()=>gr,partial:()=>ire,pick:()=>tre,prefixIssues:()=>Ic,primitiveTypes:()=>AL,promiseAllObject:()=>SNe,propertyKeyTypes:()=>_E,randomString:()=>vNe,required:()=>are,safeExtend:()=>ore,shallowClone:()=>DL,slugify:()=>EL,stringifyPrimitive:()=>pr,uint8ArrayToBase64:()=>cre,uint8ArrayToBase64url:()=>wNe,uint8ArrayToHex:()=>kNe,unwrapMessage:()=>uE});function pNe(e){return e}function dNe(e){return e}function _Ne(e){}function fNe(e){throw new Error("Unexpected value in exhaustive check")}function mNe(e){}function pE(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}function ur(e,t="|"){return e.map(r=>pr(r)).join(t)}function F0(e,t){return typeof t=="bigint"?t.toString():t}function R0(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Xf(e){return e==null}function dE(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function xL(e,t){let r=(e.toString().split(".")[1]||"").length,n=t.toString(),o=(n.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(n)){let c=n.match(/\d?e-(\d?)/);c?.[1]&&(o=Number.parseInt(c[1]))}let i=r>o?r:o,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return a%s/10**i}var ere=Symbol("evaluating");function Ur(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==ere)return n===void 0&&(n=ere,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function hNe(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Yf(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function s_(...e){let t={};for(let r of e){let n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function yNe(e){return s_(e._zod.def)}function gNe(e,t){return t?t.reduce((r,n)=>r?.[n],e):e}function SNe(e){let t=Object.keys(e),r=t.map(n=>e[n]);return Promise.all(r).then(n=>{let o={};for(let i=0;i{};function Ly(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var TL=R0(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function em(e){if(Ly(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Ly(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function DL(e){return em(e)?{...e}:Array.isArray(e)?[...e]:e}function bNe(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var xNe=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},_E=new Set(["string","number","symbol"]),AL=new Set(["string","number","bigint","boolean","symbol","undefined"]);function bl(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xs(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function st(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function ENe(e){let t;return new Proxy({},{get(r,n,o){return t??(t=e()),Reflect.get(t,n,o)},set(r,n,o,i){return t??(t=e()),Reflect.set(t,n,o,i)},has(r,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(r,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(r,n,o){return t??(t=e()),Reflect.defineProperty(t,n,o)}})}function pr(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function wL(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var IL={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},kL={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function tre(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=s_(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return Yf(this,"shape",a),a},checks:[]});return xs(e,i)}function rre(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=s_(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return Yf(this,"shape",a),a},checks:[]});return xs(e,i)}function nre(e,t){if(!em(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let o=s_(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Yf(this,"shape",i),i}});return xs(e,o)}function ore(e,t){if(!em(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=s_(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Yf(this,"shape",n),n}});return xs(e,r)}function TNe(e,t){let r=s_(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Yf(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return xs(e,r)}function ire(e,t,r){let o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=s_(t._zod.def,{get shape(){let s=t._zod.def.shape,c={...s};if(r)for(let p in r){if(!(p in s))throw new Error(`Unrecognized key: "${p}"`);r[p]&&(c[p]=e?new e({type:"optional",innerType:s[p]}):s[p])}else for(let p in s)c[p]=e?new e({type:"optional",innerType:s[p]}):s[p];return Yf(this,"shape",c),c},checks:[]});return xs(t,a)}function are(e,t,r){let n=s_(t._zod.def,{get shape(){let o=t._zod.def.shape,i={...o};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:o[a]}))}else for(let a in o)i[a]=new e({type:"nonoptional",innerType:o[a]});return Yf(this,"shape",i),i}});return xs(t,n)}function tm(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function uE(e){return typeof e=="string"?e:e?.message}function Zs(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let o=uE(e.inst?._zod.def?.error?.(e))??uE(t?.error?.(e))??uE(r.customError?.(e))??uE(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function fE(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function mE(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function gr(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function L0(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}function DNe(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function sre(e){let t=atob(e),r=new Uint8Array(t.length);for(let n=0;nt.toString(16).padStart(2,"0")).join("")}var bL=class{constructor(...t){}};var lre=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,F0,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},QC=ne("$ZodError",lre),hE=ne("$ZodError",lre,{Parent:Error});function XC(e,t=r=>r.message){let r={},n=[];for(let o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):n.push(t(o));return{formErrors:n,fieldErrors:r}}function YC(e,t=r=>r.message){let r={_errors:[]},n=o=>{for(let i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>n({issues:a}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let a=r,s=0;for(;s(t,r,n,o)=>{let i=n?Object.assign(n,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new xp;if(a.issues.length){let s=new(o?.Err??e)(a.issues.map(c=>Zs(c,i,Wi())));throw WC(s,o?.callee),s}return a.value},gE=yE(hE),SE=e=>async(t,r,n,o)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(o?.Err??e)(a.issues.map(c=>Zs(c,i,Wi())));throw WC(s,o?.callee),s}return a.value},vE=SE(hE),bE=e=>(t,r,n)=>{let o=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new xp;return i.issues.length?{success:!1,error:new(e??QC)(i.issues.map(a=>Zs(a,o,Wi())))}:{success:!0,data:i.value}},$0=bE(hE),xE=e=>async(t,r,n)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>Zs(a,o,Wi())))}:{success:!0,data:i.value}},EE=xE(hE),ure=e=>(t,r,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return yE(e)(t,r,o)};var pre=e=>(t,r,n)=>yE(e)(t,r,n);var dre=e=>async(t,r,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return SE(e)(t,r,o)};var _re=e=>async(t,r,n)=>SE(e)(t,r,n);var fre=e=>(t,r,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return bE(e)(t,r,o)};var mre=e=>(t,r,n)=>bE(e)(t,r,n);var hre=e=>async(t,r,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return xE(e)(t,r,o)};var yre=e=>async(t,r,n)=>xE(e)(t,r,n);var xl={};YS(xl,{base64:()=>JL,base64url:()=>eP,bigint:()=>QL,boolean:()=>YL,browserEmail:()=>MNe,cidrv4:()=>zL,cidrv6:()=>VL,cuid:()=>CL,cuid2:()=>PL,date:()=>GL,datetime:()=>ZL,domain:()=>qNe,duration:()=>LL,e164:()=>KL,email:()=>ML,emoji:()=>jL,extendedDuration:()=>PNe,guid:()=>$L,hex:()=>UNe,hostname:()=>BNe,html5Email:()=>RNe,idnEmail:()=>$Ne,integer:()=>XL,ipv4:()=>BL,ipv6:()=>qL,ksuid:()=>FL,lowercase:()=>r$,mac:()=>UL,md5_base64:()=>VNe,md5_base64url:()=>JNe,md5_hex:()=>zNe,nanoid:()=>RL,null:()=>e$,number:()=>tP,rfc5322Email:()=>LNe,sha1_base64:()=>GNe,sha1_base64url:()=>HNe,sha1_hex:()=>KNe,sha256_base64:()=>WNe,sha256_base64url:()=>QNe,sha256_hex:()=>ZNe,sha384_base64:()=>YNe,sha384_base64url:()=>eFe,sha384_hex:()=>XNe,sha512_base64:()=>rFe,sha512_base64url:()=>nFe,sha512_hex:()=>tFe,string:()=>WL,time:()=>HL,ulid:()=>OL,undefined:()=>t$,unicodeEmail:()=>gre,uppercase:()=>n$,uuid:()=>$y,uuid4:()=>ONe,uuid6:()=>NNe,uuid7:()=>FNe,xid:()=>NL});var CL=/^[cC][^\s-]{8,}$/,PL=/^[0-9a-z]+$/,OL=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,NL=/^[0-9a-vA-V]{20}$/,FL=/^[A-Za-z0-9]{27}$/,RL=/^[a-zA-Z0-9_-]{21}$/,LL=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,PNe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,$L=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,$y=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ONe=$y(4),NNe=$y(6),FNe=$y(7),ML=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,RNe=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,LNe=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,gre=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,$Ne=gre,MNe=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,jNe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function jL(){return new RegExp(jNe,"u")}var BL=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,qL=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,UL=e=>{let t=bl(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},zL=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,VL=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,JL=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,eP=/^[A-Za-z0-9_-]*$/,BNe=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,qNe=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,KL=/^\+[1-9]\d{6,14}$/,Sre="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",GL=new RegExp(`^${Sre}$`);function vre(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function HL(e){return new RegExp(`^${vre(e)}$`)}function ZL(e){let t=vre({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${r.join("|")})`;return new RegExp(`^${Sre}T(?:${n})$`)}var WL=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},QL=/^-?\d+n?$/,XL=/^-?\d+$/,tP=/^-?\d+(?:\.\d+)?$/,YL=/^(?:true|false)$/i,e$=/^null$/i;var t$=/^undefined$/i;var r$=/^[^A-Z]*$/,n$=/^[^a-z]*$/,UNe=/^[0-9a-fA-F]*$/;function TE(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function DE(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var zNe=/^[0-9a-fA-F]{32}$/,VNe=TE(22,"=="),JNe=DE(22),KNe=/^[0-9a-fA-F]{40}$/,GNe=TE(27,"="),HNe=DE(27),ZNe=/^[0-9a-fA-F]{64}$/,WNe=TE(43,"="),QNe=DE(43),XNe=/^[0-9a-fA-F]{96}$/,YNe=TE(64,""),eFe=DE(64),tFe=/^[0-9a-fA-F]{128}$/,rFe=TE(86,"=="),nFe=DE(86);var wo=ne("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),xre={number:"number",bigint:"bigint",object:"date"},o$=ne("$ZodCheckLessThan",(e,t)=>{wo.init(e,t);let r=xre[typeof t.value];e._zod.onattach.push(n=>{let o=n._zod.bag,i=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value{(t.inclusive?n.value<=t.value:n.value{wo.init(e,t);let r=xre[typeof t.value];e._zod.onattach.push(n=>{let o=n._zod.bag,i=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ere=ne("$ZodCheckMultipleOf",(e,t)=>{wo.init(e,t),e._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):xL(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Tre=ne("$ZodCheckNumberFormat",(e,t)=>{wo.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[o,i]=IL[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=o,s.maximum=i,r&&(s.pattern=XL)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}si&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Dre=ne("$ZodCheckBigIntFormat",(e,t)=>{wo.init(e,t);let[r,n]=kL[t.format];e._zod.onattach.push(o=>{let i=o._zod.bag;i.format=t.format,i.minimum=r,i.maximum=n}),e._zod.check=o=>{let i=o.value;in&&o.issues.push({origin:"bigint",input:i,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),Are=ne("$ZodCheckMaxSize",(e,t)=>{var r;wo.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Xf(o)&&o.size!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{let o=n.value;o.size<=t.maximum||n.issues.push({origin:fE(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),wre=ne("$ZodCheckMinSize",(e,t)=>{var r;wo.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Xf(o)&&o.size!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let o=n.value;o.size>=t.minimum||n.issues.push({origin:fE(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Ire=ne("$ZodCheckSizeEquals",(e,t)=>{var r;wo.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Xf(o)&&o.size!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag;o.minimum=t.size,o.maximum=t.size,o.size=t.size}),e._zod.check=n=>{let o=n.value,i=o.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:fE(o),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),kre=ne("$ZodCheckMaxLength",(e,t)=>{var r;wo.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Xf(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{let o=n.value;if(o.length<=t.maximum)return;let a=mE(o);n.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Cre=ne("$ZodCheckMinLength",(e,t)=>{var r;wo.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Xf(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let o=n.value;if(o.length>=t.minimum)return;let a=mE(o);n.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Pre=ne("$ZodCheckLengthEquals",(e,t)=>{var r;wo.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Xf(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=n=>{let o=n.value,i=o.length;if(i===t.length)return;let a=mE(o),s=i>t.length;n.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),AE=ne("$ZodCheckStringFormat",(e,t)=>{var r,n;wo.init(e,t),e._zod.onattach.push(o=>{let i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Ore=ne("$ZodCheckRegex",(e,t)=>{AE.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Nre=ne("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=r$),AE.init(e,t)}),Fre=ne("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=n$),AE.init(e,t)}),Rre=ne("$ZodCheckIncludes",(e,t)=>{wo.init(e,t);let r=bl(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(o=>{let i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Lre=ne("$ZodCheckStartsWith",(e,t)=>{wo.init(e,t);let r=new RegExp(`^${bl(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),$re=ne("$ZodCheckEndsWith",(e,t)=>{wo.init(e,t);let r=new RegExp(`.*${bl(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function bre(e,t,r){e.issues.length&&t.issues.push(...Ic(r,e.issues))}var Mre=ne("$ZodCheckProperty",(e,t)=>{wo.init(e,t),e._zod.check=r=>{let n=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(o=>bre(o,r,t.property));bre(n,r,t.property)}}),jre=ne("$ZodCheckMimeType",(e,t)=>{wo.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=t.mime}),e._zod.check=n=>{r.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),Bre=ne("$ZodCheckOverwrite",(e,t)=>{wo.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var rP=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let n=t.split(` +`).filter(a=>a),o=Math.min(...n.map(a=>a.length-a.trimStart().length)),i=n.map(a=>a.slice(o)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,r=this?.args,o=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...r,o.join(` +`))}};var Ure={major:4,minor:3,patch:6};var Cr=ne("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ure;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let o of n)for(let i of o._zod.onattach)i(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let o=(a,s,c)=>{let p=tm(a),d;for(let f of s){if(f._zod.def.when){if(!f._zod.def.when(a))continue}else if(p)continue;let m=a.issues.length,y=f._zod.check(a);if(y instanceof Promise&&c?.async===!1)throw new xp;if(d||y instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await y,a.issues.length!==m&&(p||(p=tm(a,m)))});else{if(a.issues.length===m)continue;p||(p=tm(a,m))}}return d?d.then(()=>a):a},i=(a,s,c)=>{if(tm(a))return a.aborted=!0,a;let p=o(s,n,c);if(p instanceof Promise){if(c.async===!1)throw new xp;return p.then(d=>e._zod.parse(d,c))}return e._zod.parse(p,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let p=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return p instanceof Promise?p.then(d=>i(d,a,s)):i(p,a,s)}let c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new xp;return c.then(p=>o(p,n,s))}return o(c,n,s)}}Ur(e,"~standard",()=>({validate:o=>{try{let i=$0(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return EE(e,o).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),My=ne("$ZodString",(e,t)=>{Cr.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??WL(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),yo=ne("$ZodStringFormat",(e,t)=>{AE.init(e,t),My.init(e,t)}),s$=ne("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=$L),yo.init(e,t)}),c$=ne("$ZodUUID",(e,t)=>{if(t.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=$y(n))}else t.pattern??(t.pattern=$y());yo.init(e,t)}),l$=ne("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ML),yo.init(e,t)}),u$=ne("$ZodURL",(e,t)=>{yo.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),o=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),p$=ne("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=jL()),yo.init(e,t)}),d$=ne("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=RL),yo.init(e,t)}),_$=ne("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=CL),yo.init(e,t)}),f$=ne("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=PL),yo.init(e,t)}),m$=ne("$ZodULID",(e,t)=>{t.pattern??(t.pattern=OL),yo.init(e,t)}),h$=ne("$ZodXID",(e,t)=>{t.pattern??(t.pattern=NL),yo.init(e,t)}),y$=ne("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=FL),yo.init(e,t)}),g$=ne("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=ZL(t)),yo.init(e,t)}),S$=ne("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=GL),yo.init(e,t)}),v$=ne("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=HL(t)),yo.init(e,t)}),b$=ne("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=LL),yo.init(e,t)}),x$=ne("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=BL),yo.init(e,t),e._zod.bag.format="ipv4"}),E$=ne("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=qL),yo.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),T$=ne("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=UL(t.delimiter)),yo.init(e,t),e._zod.bag.format="mac"}),D$=ne("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=zL),yo.init(e,t)}),A$=ne("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=VL),yo.init(e,t),e._zod.check=r=>{let n=r.value.split("/");try{if(n.length!==2)throw new Error;let[o,i]=n;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function ene(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var w$=ne("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=JL),yo.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{ene(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function oFe(e){if(!eP.test(e))return!1;let t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return ene(r)}var I$=ne("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=eP),yo.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{oFe(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),k$=ne("$ZodE164",(e,t)=>{t.pattern??(t.pattern=KL),yo.init(e,t)});function iFe(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[n]=r;if(!n)return!1;let o=JSON.parse(atob(n));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}var C$=ne("$ZodJWT",(e,t)=>{yo.init(e,t),e._zod.check=r=>{iFe(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),P$=ne("$ZodCustomStringFormat",(e,t)=>{yo.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),cP=ne("$ZodNumber",(e,t)=>{Cr.init(e,t),e._zod.pattern=e._zod.bag.pattern??tP,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;let i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),r}}),O$=ne("$ZodNumberFormat",(e,t)=>{Tre.init(e,t),cP.init(e,t)}),wE=ne("$ZodBoolean",(e,t)=>{Cr.init(e,t),e._zod.pattern=YL,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let o=r.value;return typeof o=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),r}}),lP=ne("$ZodBigInt",(e,t)=>{Cr.init(e,t),e._zod.pattern=QL,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),N$=ne("$ZodBigIntFormat",(e,t)=>{Dre.init(e,t),lP.init(e,t)}),F$=ne("$ZodSymbol",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return typeof o=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:o,inst:e}),r}}),R$=ne("$ZodUndefined",(e,t)=>{Cr.init(e,t),e._zod.pattern=t$,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,n)=>{let o=r.value;return typeof o>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),r}}),L$=ne("$ZodNull",(e,t)=>{Cr.init(e,t),e._zod.pattern=e$,e._zod.values=new Set([null]),e._zod.parse=(r,n)=>{let o=r.value;return o===null||r.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),r}}),$$=ne("$ZodAny",(e,t)=>{Cr.init(e,t),e._zod.parse=r=>r}),M$=ne("$ZodUnknown",(e,t)=>{Cr.init(e,t),e._zod.parse=r=>r}),j$=ne("$ZodNever",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),B$=ne("$ZodVoid",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return typeof o>"u"||r.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),r}}),q$=ne("$ZodDate",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let o=r.value,i=o instanceof Date;return i&&!Number.isNaN(o.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:o,...i?{received:"Invalid Date"}:{},inst:e}),r}});function zre(e,t,r){e.issues.length&&t.issues.push(...Ic(r,e.issues)),t.value[r]=e.value}var U$=ne("$ZodArray",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);let i=[];for(let a=0;azre(p,r,a))):zre(c,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function sP(e,t,r,n,o){if(e.issues.length){if(o&&!(r in n))return;t.issues.push(...Ic(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function tne(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=wL(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function rne(e,t,r,n,o,i){let a=[],s=o.keySet,c=o.catchall._zod,p=c.def.type,d=c.optout==="optional";for(let f in t){if(s.has(f))continue;if(p==="never"){a.push(f);continue}let m=c.run({value:t[f],issues:[]},n);m instanceof Promise?e.push(m.then(y=>sP(y,r,f,t,d))):sP(m,r,f,t,d)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var nne=ne("$ZodObject",(e,t)=>{if(Cr.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...s};return Object.defineProperty(t,"shape",{value:c}),c}})}let n=R0(()=>tne(t));Ur(e._zod,"propValues",()=>{let s=t.shape,c={};for(let p in s){let d=s[p]._zod;if(d.values){c[p]??(c[p]=new Set);for(let f of d.values)c[p].add(f)}}return c});let o=Ly,i=t.catchall,a;e._zod.parse=(s,c)=>{a??(a=n.value);let p=s.value;if(!o(p))return s.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),s;s.value={};let d=[],f=a.shape;for(let m of a.keys){let y=f[m],g=y._zod.optout==="optional",S=y._zod.run({value:p[m],issues:[]},c);S instanceof Promise?d.push(S.then(x=>sP(x,s,m,p,g))):sP(S,s,m,p,g)}return i?rne(d,p,s,c,n.value,e):d.length?Promise.all(d).then(()=>s):s}}),one=ne("$ZodObjectJIT",(e,t)=>{nne.init(e,t);let r=e._zod.parse,n=R0(()=>tne(t)),o=m=>{let y=new rP(["shape","payload","ctx"]),g=n.value,S=E=>{let C=ZC(E);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};y.write("const input = payload.value;");let x=Object.create(null),A=0;for(let E of g.keys)x[E]=`key_${A++}`;y.write("const newResult = {};");for(let E of g.keys){let C=x[E],F=ZC(E),$=m[E]?._zod?.optout==="optional";y.write(`const ${C} = ${S(E)};`),$?y.write(` + if (${C}.issues.length) { + if (${F} in input) { + payload.issues = payload.issues.concat(${C}.issues.map(iss => ({ ...iss, - path: iss.path ? [${tr}, ...iss.path] : [${tr}] + path: iss.path ? [${F}, ...iss.path] : [${F}] }))); } } - if (${xt}.value === undefined) { - if (${tr} in input) { - newResult[${tr}] = undefined; + if (${C}.value === undefined) { + if (${F} in input) { + newResult[${F}] = undefined; } } else { - newResult[${tr}] = ${xt}.value; + newResult[${F}] = ${C}.value; } - `):ie.write(` - if (${xt}.issues.length) { - payload.issues = payload.issues.concat(${xt}.issues.map(iss => ({ + `):y.write(` + if (${C}.issues.length) { + payload.issues = payload.issues.concat(${C}.issues.map(iss => ({ ...iss, - path: iss.path ? [${tr}, ...iss.path] : [${tr}] + path: iss.path ? [${F}, ...iss.path] : [${F}] }))); } - if (${xt}.value === undefined) { - if (${tr} in input) { - newResult[${tr}] = undefined; + if (${C}.value === undefined) { + if (${F} in input) { + newResult[${F}] = undefined; } } else { - newResult[${tr}] = ${xt}.value; + newResult[${F}] = ${C}.value; } - `)}ie.write("payload.value = newResult;"),ie.write("return payload;");let pt=ie.compile();return($e,xt)=>pt(j,$e,xt)},d,h=wJ,S=!Z2e.jitless,A=S&&BJe.value,L=r.catchall,V;e._zod.parse=(j,ie)=>{V??(V=s.value);let te=j.value;return h(te)?S&&A&&ie?.async===!1&&ie.jitless!==!0?(d||(d=l(r.shape)),j=d(j,ie),L?f3t([],te,j,ie,V,e):j):i(j,ie):(j.issues.push({expected:"object",code:"invalid_type",input:te,inst:e}),j)}});function r3t(e,r,i,s){for(let d of e)if(d.issues.length===0)return r.value=d.value,r;let l=e.filter(d=>!dj(d));return l.length===1?(r.value=l[0].value,l[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:i,errors:e.map(d=>d.issues.map(h=>lk(h,s,Gv())))}),r)}var Wle=ni("$ZodUnion",(e,r)=>{Ip.init(e,r),S_(e._zod,"optin",()=>r.options.some(l=>l._zod.optin==="optional")?"optional":void 0),S_(e._zod,"optout",()=>r.options.some(l=>l._zod.optout==="optional")?"optional":void 0),S_(e._zod,"values",()=>{if(r.options.every(l=>l._zod.values))return new Set(r.options.flatMap(l=>Array.from(l._zod.values)))}),S_(e._zod,"pattern",()=>{if(r.options.every(l=>l._zod.pattern)){let l=r.options.map(d=>d._zod.pattern);return new RegExp(`^(${l.map(d=>Ile(d.source)).join("|")})$`)}});let i=r.options.length===1,s=r.options[0]._zod.run;e._zod.parse=(l,d)=>{if(i)return s(l,d);let h=!1,S=[];for(let b of r.options){let A=b._zod.run({value:l.value,issues:[]},d);if(A instanceof Promise)S.push(A),h=!0;else{if(A.issues.length===0)return A;S.push(A)}}return h?Promise.all(S).then(b=>r3t(b,l,e,d)):r3t(S,l,e,d)}});function n3t(e,r,i,s){let l=e.filter(d=>d.issues.length===0);return l.length===1?(r.value=l[0].value,r):(l.length===0?r.issues.push({code:"invalid_union",input:r.value,inst:i,errors:e.map(d=>d.issues.map(h=>lk(h,s,Gv())))}):r.issues.push({code:"invalid_union",input:r.value,inst:i,errors:[],inclusive:!1}),r)}var iWe=ni("$ZodXor",(e,r)=>{Wle.init(e,r),r.inclusive=!1;let i=r.options.length===1,s=r.options[0]._zod.run;e._zod.parse=(l,d)=>{if(i)return s(l,d);let h=!1,S=[];for(let b of r.options){let A=b._zod.run({value:l.value,issues:[]},d);A instanceof Promise?(S.push(A),h=!0):S.push(A)}return h?Promise.all(S).then(b=>n3t(b,l,e,d)):n3t(S,l,e,d)}}),oWe=ni("$ZodDiscriminatedUnion",(e,r)=>{r.inclusive=!1,Wle.init(e,r);let i=e._zod.parse;S_(e._zod,"propValues",()=>{let l={};for(let d of r.options){let h=d._zod.propValues;if(!h||Object.keys(h).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(d)}"`);for(let[S,b]of Object.entries(h)){l[S]||(l[S]=new Set);for(let A of b)l[S].add(A)}}return l});let s=DX(()=>{let l=r.options,d=new Map;for(let h of l){let S=h._zod.propValues?.[r.discriminator];if(!S||S.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(h)}"`);for(let b of S){if(d.has(b))throw new Error(`Duplicate discriminator value "${String(b)}"`);d.set(b,h)}}return d});e._zod.parse=(l,d)=>{let h=l.value;if(!wJ(h))return l.issues.push({code:"invalid_type",expected:"object",input:h,inst:e}),l;let S=s.value.get(h?.[r.discriminator]);return S?S._zod.run(l,d):r.unionFallback?i(l,d):(l.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,input:h,path:[r.discriminator],inst:e}),l)}}),aWe=ni("$ZodIntersection",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{let l=i.value,d=r.left._zod.run({value:l,issues:[]},s),h=r.right._zod.run({value:l,issues:[]},s);return d instanceof Promise||h instanceof Promise?Promise.all([d,h]).then(([b,A])=>i3t(i,b,A)):i3t(i,d,h)}});function bVe(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(_j(e)&&_j(r)){let i=Object.keys(r),s=Object.keys(e).filter(d=>i.indexOf(d)!==-1),l={...e,...r};for(let d of s){let h=bVe(e[d],r[d]);if(!h.valid)return{valid:!1,mergeErrorPath:[d,...h.mergeErrorPath]};l[d]=h.data}return{valid:!0,data:l}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let i=[];for(let s=0;sS.l&&S.r).map(([S])=>S);if(d.length&&l&&e.issues.push({...l,keys:d}),dj(e))return e;let h=bVe(r.value,i.value);if(!h.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(h.mergeErrorPath)}`);return e.value=h.data,e}var fEe=ni("$ZodTuple",(e,r)=>{Ip.init(e,r);let i=r.items;e._zod.parse=(s,l)=>{let d=s.value;if(!Array.isArray(d))return s.issues.push({input:d,inst:e,expected:"tuple",code:"invalid_type"}),s;s.value=[];let h=[],S=[...i].reverse().findIndex(L=>L._zod.optin!=="optional"),b=S===-1?0:i.length-S;if(!r.rest){let L=d.length>i.length,V=d.length=d.length&&A>=b)continue;let V=L._zod.run({value:d[A],issues:[]},l);V instanceof Promise?h.push(V.then(j=>sEe(j,s,A))):sEe(V,s,A)}if(r.rest){let L=d.slice(i.length);for(let V of L){A++;let j=r.rest._zod.run({value:V,issues:[]},l);j instanceof Promise?h.push(j.then(ie=>sEe(ie,s,A))):sEe(j,s,A)}}return h.length?Promise.all(h).then(()=>s):s}});function sEe(e,r,i){e.issues.length&&r.issues.push(...mD(i,e.issues)),r.value[i]=e.value}var sWe=ni("$ZodRecord",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{let l=i.value;if(!_j(l))return i.issues.push({expected:"record",code:"invalid_type",input:l,inst:e}),i;let d=[],h=r.keyType._zod.values;if(h){i.value={};let S=new Set;for(let A of h)if(typeof A=="string"||typeof A=="number"||typeof A=="symbol"){S.add(typeof A=="number"?A.toString():A);let L=r.valueType._zod.run({value:l[A],issues:[]},s);L instanceof Promise?d.push(L.then(V=>{V.issues.length&&i.issues.push(...mD(A,V.issues)),i.value[A]=V.value})):(L.issues.length&&i.issues.push(...mD(A,L.issues)),i.value[A]=L.value)}let b;for(let A in l)S.has(A)||(b=b??[],b.push(A));b&&b.length>0&&i.issues.push({code:"unrecognized_keys",input:l,inst:e,keys:b})}else{i.value={};for(let S of Reflect.ownKeys(l)){if(S==="__proto__")continue;let b=r.keyType._zod.run({value:S,issues:[]},s);if(b instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof S=="string"&&oEe.test(S)&&b.issues.length){let V=r.keyType._zod.run({value:Number(S),issues:[]},s);if(V instanceof Promise)throw new Error("Async schemas not supported in object keys currently");V.issues.length===0&&(b=V)}if(b.issues.length){r.mode==="loose"?i.value[S]=l[S]:i.issues.push({code:"invalid_key",origin:"record",issues:b.issues.map(V=>lk(V,s,Gv())),input:S,path:[S],inst:e});continue}let L=r.valueType._zod.run({value:l[S],issues:[]},s);L instanceof Promise?d.push(L.then(V=>{V.issues.length&&i.issues.push(...mD(S,V.issues)),i.value[b.value]=V.value})):(L.issues.length&&i.issues.push(...mD(S,L.issues)),i.value[b.value]=L.value)}}return d.length?Promise.all(d).then(()=>i):i}}),cWe=ni("$ZodMap",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{let l=i.value;if(!(l instanceof Map))return i.issues.push({expected:"map",code:"invalid_type",input:l,inst:e}),i;let d=[];i.value=new Map;for(let[h,S]of l){let b=r.keyType._zod.run({value:h,issues:[]},s),A=r.valueType._zod.run({value:S,issues:[]},s);b instanceof Promise||A instanceof Promise?d.push(Promise.all([b,A]).then(([L,V])=>{o3t(L,V,i,h,l,e,s)})):o3t(b,A,i,h,l,e,s)}return d.length?Promise.all(d).then(()=>i):i}});function o3t(e,r,i,s,l,d,h){e.issues.length&&(Ple.has(typeof s)?i.issues.push(...mD(s,e.issues)):i.issues.push({code:"invalid_key",origin:"map",input:l,inst:d,issues:e.issues.map(S=>lk(S,h,Gv()))})),r.issues.length&&(Ple.has(typeof s)?i.issues.push(...mD(s,r.issues)):i.issues.push({origin:"map",code:"invalid_element",input:l,inst:d,key:s,issues:r.issues.map(S=>lk(S,h,Gv()))})),i.value.set(e.value,r.value)}var lWe=ni("$ZodSet",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{let l=i.value;if(!(l instanceof Set))return i.issues.push({input:l,inst:e,expected:"set",code:"invalid_type"}),i;let d=[];i.value=new Set;for(let h of l){let S=r.valueType._zod.run({value:h,issues:[]},s);S instanceof Promise?d.push(S.then(b=>a3t(b,i))):a3t(S,i)}return d.length?Promise.all(d).then(()=>i):i}});function a3t(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}var uWe=ni("$ZodEnum",(e,r)=>{Ip.init(e,r);let i=wle(r.entries),s=new Set(i);e._zod.values=s,e._zod.pattern=new RegExp(`^(${i.filter(l=>Ple.has(typeof l)).map(l=>typeof l=="string"?Uw(l):l.toString()).join("|")})$`),e._zod.parse=(l,d)=>{let h=l.value;return s.has(h)||l.issues.push({code:"invalid_value",values:i,input:h,inst:e}),l}}),pWe=ni("$ZodLiteral",(e,r)=>{if(Ip.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");let i=new Set(r.values);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.values.map(s=>typeof s=="string"?Uw(s):s?Uw(s.toString()):String(s)).join("|")})$`),e._zod.parse=(s,l)=>{let d=s.value;return i.has(d)||s.issues.push({code:"invalid_value",values:r.values,input:d,inst:e}),s}}),_We=ni("$ZodFile",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{let l=i.value;return l instanceof File||i.issues.push({expected:"file",code:"invalid_type",input:l,inst:e}),i}}),dWe=ni("$ZodTransform",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{if(s.direction==="backward")throw new AJ(e.constructor.name);let l=r.transform(i.value,i);if(s.async)return(l instanceof Promise?l:Promise.resolve(l)).then(h=>(i.value=h,i));if(l instanceof Promise)throw new NN;return i.value=l,i}});function s3t(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}var mEe=ni("$ZodOptional",(e,r)=>{Ip.init(e,r),e._zod.optin="optional",e._zod.optout="optional",S_(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),S_(e._zod,"pattern",()=>{let i=r.innerType._zod.pattern;return i?new RegExp(`^(${Ile(i.source)})?$`):void 0}),e._zod.parse=(i,s)=>{if(r.innerType._zod.optin==="optional"){let l=r.innerType._zod.run(i,s);return l instanceof Promise?l.then(d=>s3t(d,i.value)):s3t(l,i.value)}return i.value===void 0?i:r.innerType._zod.run(i,s)}}),fWe=ni("$ZodExactOptional",(e,r)=>{mEe.init(e,r),S_(e._zod,"values",()=>r.innerType._zod.values),S_(e._zod,"pattern",()=>r.innerType._zod.pattern),e._zod.parse=(i,s)=>r.innerType._zod.run(i,s)}),mWe=ni("$ZodNullable",(e,r)=>{Ip.init(e,r),S_(e._zod,"optin",()=>r.innerType._zod.optin),S_(e._zod,"optout",()=>r.innerType._zod.optout),S_(e._zod,"pattern",()=>{let i=r.innerType._zod.pattern;return i?new RegExp(`^(${Ile(i.source)}|null)$`):void 0}),S_(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(i,s)=>i.value===null?i:r.innerType._zod.run(i,s)}),hWe=ni("$ZodDefault",(e,r)=>{Ip.init(e,r),e._zod.optin="optional",S_(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(i,s)=>{if(s.direction==="backward")return r.innerType._zod.run(i,s);if(i.value===void 0)return i.value=r.defaultValue,i;let l=r.innerType._zod.run(i,s);return l instanceof Promise?l.then(d=>c3t(d,r)):c3t(l,r)}});function c3t(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}var gWe=ni("$ZodPrefault",(e,r)=>{Ip.init(e,r),e._zod.optin="optional",S_(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(i,s)=>(s.direction==="backward"||i.value===void 0&&(i.value=r.defaultValue),r.innerType._zod.run(i,s))}),yWe=ni("$ZodNonOptional",(e,r)=>{Ip.init(e,r),S_(e._zod,"values",()=>{let i=r.innerType._zod.values;return i?new Set([...i].filter(s=>s!==void 0)):void 0}),e._zod.parse=(i,s)=>{let l=r.innerType._zod.run(i,s);return l instanceof Promise?l.then(d=>l3t(d,e)):l3t(l,e)}});function l3t(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}var vWe=ni("$ZodSuccess",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>{if(s.direction==="backward")throw new AJ("ZodSuccess");let l=r.innerType._zod.run(i,s);return l instanceof Promise?l.then(d=>(i.value=d.issues.length===0,i)):(i.value=l.issues.length===0,i)}}),SWe=ni("$ZodCatch",(e,r)=>{Ip.init(e,r),S_(e._zod,"optin",()=>r.innerType._zod.optin),S_(e._zod,"optout",()=>r.innerType._zod.optout),S_(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(i,s)=>{if(s.direction==="backward")return r.innerType._zod.run(i,s);let l=r.innerType._zod.run(i,s);return l instanceof Promise?l.then(d=>(i.value=d.value,d.issues.length&&(i.value=r.catchValue({...i,error:{issues:d.issues.map(h=>lk(h,s,Gv()))},input:i.value}),i.issues=[]),i)):(i.value=l.value,l.issues.length&&(i.value=r.catchValue({...i,error:{issues:l.issues.map(d=>lk(d,s,Gv()))},input:i.value}),i.issues=[]),i)}}),bWe=ni("$ZodNaN",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>((typeof i.value!="number"||!Number.isNaN(i.value))&&i.issues.push({input:i.value,inst:e,expected:"nan",code:"invalid_type"}),i)}),xWe=ni("$ZodPipe",(e,r)=>{Ip.init(e,r),S_(e._zod,"values",()=>r.in._zod.values),S_(e._zod,"optin",()=>r.in._zod.optin),S_(e._zod,"optout",()=>r.out._zod.optout),S_(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(i,s)=>{if(s.direction==="backward"){let d=r.out._zod.run(i,s);return d instanceof Promise?d.then(h=>cEe(h,r.in,s)):cEe(d,r.in,s)}let l=r.in._zod.run(i,s);return l instanceof Promise?l.then(d=>cEe(d,r.out,s)):cEe(l,r.out,s)}});function cEe(e,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},i)}var Gle=ni("$ZodCodec",(e,r)=>{Ip.init(e,r),S_(e._zod,"values",()=>r.in._zod.values),S_(e._zod,"optin",()=>r.in._zod.optin),S_(e._zod,"optout",()=>r.out._zod.optout),S_(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(i,s)=>{if((s.direction||"forward")==="forward"){let d=r.in._zod.run(i,s);return d instanceof Promise?d.then(h=>lEe(h,r,s)):lEe(d,r,s)}else{let d=r.out._zod.run(i,s);return d instanceof Promise?d.then(h=>lEe(h,r,s)):lEe(d,r,s)}}});function lEe(e,r,i){if(e.issues.length)return e.aborted=!0,e;if((i.direction||"forward")==="forward"){let l=r.transform(e.value,e);return l instanceof Promise?l.then(d=>uEe(e,d,r.out,i)):uEe(e,l,r.out,i)}else{let l=r.reverseTransform(e.value,e);return l instanceof Promise?l.then(d=>uEe(e,d,r.in,i)):uEe(e,l,r.in,i)}}function uEe(e,r,i,s){return e.issues.length?(e.aborted=!0,e):i._zod.run({value:r,issues:e.issues},s)}var TWe=ni("$ZodReadonly",(e,r)=>{Ip.init(e,r),S_(e._zod,"propValues",()=>r.innerType._zod.propValues),S_(e._zod,"values",()=>r.innerType._zod.values),S_(e._zod,"optin",()=>r.innerType?._zod?.optin),S_(e._zod,"optout",()=>r.innerType?._zod?.optout),e._zod.parse=(i,s)=>{if(s.direction==="backward")return r.innerType._zod.run(i,s);let l=r.innerType._zod.run(i,s);return l instanceof Promise?l.then(u3t):u3t(l)}});function u3t(e){return e.value=Object.freeze(e.value),e}var EWe=ni("$ZodTemplateLiteral",(e,r)=>{Ip.init(e,r);let i=[];for(let s of r.parts)if(typeof s=="object"&&s!==null){if(!s._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...s._zod.traits].shift()}`);let l=s._zod.pattern instanceof RegExp?s._zod.pattern.source:s._zod.pattern;if(!l)throw new Error(`Invalid template literal part: ${s._zod.traits}`);let d=l.startsWith("^")?1:0,h=l.endsWith("$")?l.length-1:l.length;i.push(l.slice(d,h))}else if(s===null||UJe.has(typeof s))i.push(Uw(`${s}`));else throw new Error(`Invalid template literal part: ${s}`);e._zod.pattern=new RegExp(`^${i.join("")}$`),e._zod.parse=(s,l)=>typeof s.value!="string"?(s.issues.push({input:s.value,inst:e,expected:"string",code:"invalid_type"}),s):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(s.value)||s.issues.push({input:s.value,inst:e,code:"invalid_format",format:r.format??"template_literal",pattern:e._zod.pattern.source}),s)}),kWe=ni("$ZodFunction",(e,r)=>(Ip.init(e,r),e._def=r,e._zod.def=r,e.implement=i=>{if(typeof i!="function")throw new Error("implement() must be called with a function");return function(...s){let l=e._def.input?Lle(e._def.input,s):s,d=Reflect.apply(i,this,l);return e._def.output?Lle(e._def.output,d):d}},e.implementAsync=i=>{if(typeof i!="function")throw new Error("implementAsync() must be called with a function");return async function(...s){let l=e._def.input?await jle(e._def.input,s):s,d=await Reflect.apply(i,this,l);return e._def.output?await jle(e._def.output,d):d}},e._zod.parse=(i,s)=>typeof i.value!="function"?(i.issues.push({code:"invalid_type",expected:"function",input:i.value,inst:e}),i):(e._def.output&&e._def.output._zod.def.type==="promise"?i.value=e.implementAsync(i.value):i.value=e.implement(i.value),i),e.input=(...i)=>{let s=e.constructor;return Array.isArray(i[0])?new s({type:"function",input:new fEe({type:"tuple",items:i[0],rest:i[1]}),output:e._def.output}):new s({type:"function",input:i[0],output:e._def.output})},e.output=i=>{let s=e.constructor;return new s({type:"function",input:e._def.input,output:i})},e)),CWe=ni("$ZodPromise",(e,r)=>{Ip.init(e,r),e._zod.parse=(i,s)=>Promise.resolve(i.value).then(l=>r.innerType._zod.run({value:l,issues:[]},s))}),DWe=ni("$ZodLazy",(e,r)=>{Ip.init(e,r),S_(e._zod,"innerType",()=>r.getter()),S_(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),S_(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),S_(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),S_(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(i,s)=>e._zod.innerType._zod.run(i,s)}),AWe=ni("$ZodCustom",(e,r)=>{rg.init(e,r),Ip.init(e,r),e._zod.parse=(i,s)=>i,e._zod.check=i=>{let s=i.value,l=r.fn(s);if(l instanceof Promise)return l.then(d=>p3t(d,i,s,e));p3t(l,i,s,e)}});function p3t(e,r,i,s){if(!e){let l={code:"custom",input:i,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(l.params=s._zod.def.params),r.issues.push(AX(l))}}var q9r=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function r(l){return e[l]??null}let i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},s={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let d=s[l.expected]??l.expected,h=ip(l.input),S=s[h]??h;return`Invalid input: expected ${d}, received ${S}`}case"invalid_value":return l.values.length===1?`Invalid input: expected ${qu(l.values[0])}`:`Invalid option: expected one of ${zu(l.values,"|")}`;case"too_big":{let d=l.inclusive?"<=":"<",h=r(l.origin);return h?`Too big: expected ${l.origin??"value"} to have ${d}${l.maximum.toString()} ${h.unit??"elements"}`:`Too big: expected ${l.origin??"value"} to be ${d}${l.maximum.toString()}`}case"too_small":{let d=l.inclusive?">=":">",h=r(l.origin);return h?`Too small: expected ${l.origin} to have ${d}${l.minimum.toString()} ${h.unit}`:`Too small: expected ${l.origin} to be ${d}${l.minimum.toString()}`}case"invalid_format":{let d=l;return d.format==="starts_with"?`Invalid string: must start with "${d.prefix}"`:d.format==="ends_with"?`Invalid string: must end with "${d.suffix}"`:d.format==="includes"?`Invalid string: must include "${d.includes}"`:d.format==="regex"?`Invalid string: must match pattern ${d.pattern}`:`Invalid ${i[d.format]??l.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${l.divisor}`;case"unrecognized_keys":return`Unrecognized key${l.keys.length>1?"s":""}: ${zu(l.keys,", ")}`;case"invalid_key":return`Invalid key in ${l.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${l.origin}`;default:return"Invalid input"}}};function wWe(){return{localeError:q9r()}}var g3t;var PWe=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...i){let s=i[0];return this._map.set(r,s),s&&typeof s=="object"&&"id"in s&&this._idmap.set(s.id,r),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let i=this._map.get(r);return i&&typeof i=="object"&&"id"in i&&this._idmap.delete(i.id),this._map.delete(r),this}get(r){let i=r._zod.parent;if(i){let s={...this.get(i)??{}};delete s.id;let l={...s,...this._map.get(r)};return Object.keys(l).length?l:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function NWe(){return new PWe}(g3t=globalThis).__zod_globalRegistry??(g3t.__zod_globalRegistry=NWe());var P2=globalThis.__zod_globalRegistry;function OWe(e,r){return new e({type:"string",...Hs(r)})}function FWe(e,r){return new e({type:"string",coerce:!0,...Hs(r)})}function hEe(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Hs(r)})}function Hle(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Hs(r)})}function gEe(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Hs(r)})}function yEe(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Hs(r)})}function vEe(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Hs(r)})}function SEe(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Hs(r)})}function Kle(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Hs(r)})}function bEe(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Hs(r)})}function xEe(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Hs(r)})}function TEe(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Hs(r)})}function EEe(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Hs(r)})}function kEe(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Hs(r)})}function CEe(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Hs(r)})}function DEe(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Hs(r)})}function AEe(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Hs(r)})}function wEe(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Hs(r)})}function RWe(e,r){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...Hs(r)})}function IEe(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Hs(r)})}function PEe(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Hs(r)})}function NEe(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Hs(r)})}function OEe(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Hs(r)})}function FEe(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Hs(r)})}function REe(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Hs(r)})}function LWe(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Hs(r)})}function MWe(e,r){return new e({type:"string",format:"date",check:"string_format",...Hs(r)})}function jWe(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...Hs(r)})}function BWe(e,r){return new e({type:"string",format:"duration",check:"string_format",...Hs(r)})}function $We(e,r){return new e({type:"number",checks:[],...Hs(r)})}function UWe(e,r){return new e({type:"number",coerce:!0,checks:[],...Hs(r)})}function zWe(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Hs(r)})}function qWe(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...Hs(r)})}function JWe(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...Hs(r)})}function VWe(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...Hs(r)})}function WWe(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...Hs(r)})}function GWe(e,r){return new e({type:"boolean",...Hs(r)})}function HWe(e,r){return new e({type:"boolean",coerce:!0,...Hs(r)})}function KWe(e,r){return new e({type:"bigint",...Hs(r)})}function QWe(e,r){return new e({type:"bigint",coerce:!0,...Hs(r)})}function ZWe(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...Hs(r)})}function XWe(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...Hs(r)})}function YWe(e,r){return new e({type:"symbol",...Hs(r)})}function eGe(e,r){return new e({type:"undefined",...Hs(r)})}function tGe(e,r){return new e({type:"null",...Hs(r)})}function rGe(e){return new e({type:"any"})}function nGe(e){return new e({type:"unknown"})}function iGe(e,r){return new e({type:"never",...Hs(r)})}function oGe(e,r){return new e({type:"void",...Hs(r)})}function aGe(e,r){return new e({type:"date",...Hs(r)})}function sGe(e,r){return new e({type:"date",coerce:!0,...Hs(r)})}function cGe(e,r){return new e({type:"nan",...Hs(r)})}function o5(e,r){return new vVe({check:"less_than",...Hs(r),value:e,inclusive:!1})}function hD(e,r){return new vVe({check:"less_than",...Hs(r),value:e,inclusive:!0})}function a5(e,r){return new SVe({check:"greater_than",...Hs(r),value:e,inclusive:!1})}function N2(e,r){return new SVe({check:"greater_than",...Hs(r),value:e,inclusive:!0})}function lGe(e){return a5(0,e)}function uGe(e){return o5(0,e)}function pGe(e){return hD(0,e)}function _Ge(e){return N2(0,e)}function NJ(e,r){return new R4t({check:"multiple_of",...Hs(r),value:e})}function OJ(e,r){return new j4t({check:"max_size",...Hs(r),maximum:e})}function s5(e,r){return new B4t({check:"min_size",...Hs(r),minimum:e})}function IX(e,r){return new $4t({check:"size_equals",...Hs(r),size:e})}function PX(e,r){return new U4t({check:"max_length",...Hs(r),maximum:e})}function fj(e,r){return new z4t({check:"min_length",...Hs(r),minimum:e})}function NX(e,r){return new q4t({check:"length_equals",...Hs(r),length:e})}function Qle(e,r){return new J4t({check:"string_format",format:"regex",...Hs(r),pattern:e})}function Zle(e){return new V4t({check:"string_format",format:"lowercase",...Hs(e)})}function Xle(e){return new W4t({check:"string_format",format:"uppercase",...Hs(e)})}function Yle(e,r){return new G4t({check:"string_format",format:"includes",...Hs(r),includes:e})}function eue(e,r){return new H4t({check:"string_format",format:"starts_with",...Hs(r),prefix:e})}function tue(e,r){return new K4t({check:"string_format",format:"ends_with",...Hs(r),suffix:e})}function dGe(e,r,i){return new Q4t({check:"property",property:e,schema:r,...Hs(i)})}function rue(e,r){return new Z4t({check:"mime_type",mime:e,...Hs(r)})}function ON(e){return new X4t({check:"overwrite",tx:e})}function nue(e){return ON(r=>r.normalize(e))}function iue(){return ON(e=>e.trim())}function oue(){return ON(e=>e.toLowerCase())}function aue(){return ON(e=>e.toUpperCase())}function LEe(){return ON(e=>jJe(e))}function y3t(e,r,i){return new e({type:"array",element:r,...Hs(i)})}function fGe(e,r){return new e({type:"file",...Hs(r)})}function mGe(e,r,i){let s=Hs(i);return s.abort??(s.abort=!0),new e({type:"custom",check:"custom",fn:r,...s})}function hGe(e,r,i){return new e({type:"custom",check:"custom",fn:r,...Hs(i)})}function gGe(e){let r=G9r(i=>(i.addIssue=s=>{if(typeof s=="string")i.issues.push(AX(s,i.value,r._zod.def));else{let l=s;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=i.value),l.inst??(l.inst=r),l.continue??(l.continue=!r._zod.def.abort),i.issues.push(AX(l))}},e(i.value,i)));return r}function G9r(e,r){let i=new rg({check:"custom",...Hs(r)});return i._zod.check=e,i}function yGe(e){let r=new rg({check:"describe"});return r._zod.onattach=[i=>{let s=P2.get(i)??{};P2.add(i,{...s,description:e})}],r._zod.check=()=>{},r}function vGe(e){let r=new rg({check:"meta"});return r._zod.onattach=[i=>{let s=P2.get(i)??{};P2.add(i,{...s,...e})}],r._zod.check=()=>{},r}function SGe(e,r){let i=Hs(r),s=i.truthy??["true","1","yes","on","y","enabled"],l=i.falsy??["false","0","no","off","n","disabled"];i.case!=="sensitive"&&(s=s.map(ie=>typeof ie=="string"?ie.toLowerCase():ie),l=l.map(ie=>typeof ie=="string"?ie.toLowerCase():ie));let d=new Set(s),h=new Set(l),S=e.Codec??Gle,b=e.Boolean??Vle,A=e.String??PJ,L=new A({type:"string",error:i.error}),V=new b({type:"boolean",error:i.error}),j=new S({type:"pipe",in:L,out:V,transform:((ie,te)=>{let X=ie;return i.case!=="sensitive"&&(X=X.toLowerCase()),d.has(X)?!0:h.has(X)?!1:(te.issues.push({code:"invalid_value",expected:"stringbool",values:[...d,...h],input:te.value,inst:j,continue:!1}),{})}),reverseTransform:((ie,te)=>ie===!0?s[0]||"true":l[0]||"false"),error:i.error});return j}function OX(e,r,i,s={}){let l=Hs(s),d={...Hs(s),check:"string_format",type:"string",format:r,fn:typeof i=="function"?i:S=>i.test(S),...l};return i instanceof RegExp&&(d.pattern=i),new e(d)}function MEe(e){let r=e?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??P2,target:r,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Tg(e,r,i={path:[],schemaPath:[]}){var s;let l=e._zod.def,d=r.seen.get(e);if(d)return d.count++,i.schemaPath.includes(e)&&(d.cycle=i.path),d.schema;let h={schema:{},count:1,cycle:void 0,path:i.path};r.seen.set(e,h);let S=e._zod.toJSONSchema?.();if(S)h.schema=S;else{let L={...i,schemaPath:[...i.schemaPath,e],path:i.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,h.schema,L);else{let j=h.schema,ie=r.processors[l.type];if(!ie)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${l.type}`);ie(e,r,j,L)}let V=e._zod.parent;V&&(h.ref||(h.ref=V),Tg(V,r,L),r.seen.get(V).isParent=!0)}let b=r.metadataRegistry.get(e);return b&&Object.assign(h.schema,b),r.io==="input"&&O2(e)&&(delete h.schema.examples,delete h.schema.default),r.io==="input"&&h.schema._prefault&&((s=h.schema).default??(s.default=h.schema._prefault)),delete h.schema._prefault,r.seen.get(e).schema}function jEe(e,r){let i=e.seen.get(r);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");let s=new Map;for(let h of e.seen.entries()){let S=e.metadataRegistry.get(h[0])?.id;if(S){let b=s.get(S);if(b&&b!==h[0])throw new Error(`Duplicate schema id "${S}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);s.set(S,h[0])}}let l=h=>{let S=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let V=e.external.registry.get(h[0])?.id,j=e.external.uri??(te=>te);if(V)return{ref:j(V)};let ie=h[1].defId??h[1].schema.id??`schema${e.counter++}`;return h[1].defId=ie,{defId:ie,ref:`${j("__shared")}#/${S}/${ie}`}}if(h[1]===i)return{ref:"#"};let A=`#/${S}/`,L=h[1].schema.id??`__schema${e.counter++}`;return{defId:L,ref:A+L}},d=h=>{if(h[1].schema.$ref)return;let S=h[1],{ref:b,defId:A}=l(h);S.def={...S.schema},A&&(S.defId=A);let L=S.schema;for(let V in L)delete L[V];L.$ref=b};if(e.cycles==="throw")for(let h of e.seen.entries()){let S=h[1];if(S.cycle)throw new Error(`Cycle detected: #/${S.cycle?.join("/")}/ + `)}y.write("payload.value = newResult;"),y.write("return payload;");let I=y.compile();return(E,C)=>I(m,E,C)},i,a=Ly,s=!GC.jitless,p=s&&TL.value,d=t.catchall,f;e._zod.parse=(m,y)=>{f??(f=n.value);let g=m.value;return a(g)?s&&p&&y?.async===!1&&y.jitless!==!0?(i||(i=o(t.shape)),m=i(m,y),d?rne([],g,m,y,f,e):m):r(m,y):(m.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),m)}});function Vre(e,t,r,n){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let o=e.filter(i=>!tm(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>Zs(a,n,Wi())))}),t)}var IE=ne("$ZodUnion",(e,t)=>{Cr.init(e,t),Ur(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Ur(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Ur(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Ur(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>dE(i.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(r)return n(o,i);let a=!1,s=[];for(let c of t.options){let p=c._zod.run({value:o.value,issues:[]},i);if(p instanceof Promise)s.push(p),a=!0;else{if(p.issues.length===0)return p;s.push(p)}}return a?Promise.all(s).then(c=>Vre(c,o,e,i)):Vre(s,o,e,i)}});function Jre(e,t,r,n){let o=e.filter(i=>i.issues.length===0);return o.length===1?(t.value=o[0].value,t):(o.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>Zs(a,n,Wi())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var z$=ne("$ZodXor",(e,t)=>{IE.init(e,t),t.inclusive=!1;let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(r)return n(o,i);let a=!1,s=[];for(let c of t.options){let p=c._zod.run({value:o.value,issues:[]},i);p instanceof Promise?(s.push(p),a=!0):s.push(p)}return a?Promise.all(s).then(c=>Jre(c,o,e,i)):Jre(s,o,e,i)}}),V$=ne("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,IE.init(e,t);let r=e._zod.parse;Ur(e._zod,"propValues",()=>{let o={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[s,c]of Object.entries(a)){o[s]||(o[s]=new Set);for(let p of c)o[s].add(p)}}return o});let n=R0(()=>{let o=t.options,i=new Map;for(let a of o){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of s){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,a)}}return i});e._zod.parse=(o,i)=>{let a=o.value;if(!Ly(a))return o.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),o;let s=n.value.get(a?.[t.discriminator]);return s?s._zod.run(o,i):t.unionFallback?r(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),o)}}),J$=ne("$ZodIntersection",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value,i=t.left._zod.run({value:o,issues:[]},n),a=t.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,p])=>Kre(r,c,p)):Kre(r,i,a)}});function a$(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(em(e)&&em(t)){let r=Object.keys(t),n=Object.keys(e).filter(i=>r.indexOf(i)!==-1),o={...e,...t};for(let i of n){let a=a$(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let n=0;ns.l&&s.r).map(([s])=>s);if(i.length&&o&&e.issues.push({...o,keys:i}),tm(e))return e;let a=a$(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var uP=ne("$ZodTuple",(e,t)=>{Cr.init(e,t);let r=t.items;e._zod.parse=(n,o)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let a=[],s=[...r].reverse().findIndex(d=>d._zod.optin!=="optional"),c=s===-1?0:r.length-s;if(!t.rest){let d=i.length>r.length,f=i.length=i.length&&p>=c)continue;let f=d._zod.run({value:i[p],issues:[]},o);f instanceof Promise?a.push(f.then(m=>nP(m,n,p))):nP(f,n,p)}if(t.rest){let d=i.slice(r.length);for(let f of d){p++;let m=t.rest._zod.run({value:f,issues:[]},o);m instanceof Promise?a.push(m.then(y=>nP(y,n,p))):nP(m,n,p)}}return a.length?Promise.all(a).then(()=>n):n}});function nP(e,t,r){e.issues.length&&t.issues.push(...Ic(r,e.issues)),t.value[r]=e.value}var K$=ne("$ZodRecord",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!em(o))return r.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),r;let i=[],a=t.keyType._zod.values;if(a){r.value={};let s=new Set;for(let p of a)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){s.add(typeof p=="number"?p.toString():p);let d=t.valueType._zod.run({value:o[p],issues:[]},n);d instanceof Promise?i.push(d.then(f=>{f.issues.length&&r.issues.push(...Ic(p,f.issues)),r.value[p]=f.value})):(d.issues.length&&r.issues.push(...Ic(p,d.issues)),r.value[p]=d.value)}let c;for(let p in o)s.has(p)||(c=c??[],c.push(p));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:c})}else{r.value={};for(let s of Reflect.ownKeys(o)){if(s==="__proto__")continue;let c=t.keyType._zod.run({value:s,issues:[]},n);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&tP.test(s)&&c.issues.length){let f=t.keyType._zod.run({value:Number(s),issues:[]},n);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(c=f)}if(c.issues.length){t.mode==="loose"?r.value[s]=o[s]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(f=>Zs(f,n,Wi())),input:s,path:[s],inst:e});continue}let d=t.valueType._zod.run({value:o[s],issues:[]},n);d instanceof Promise?i.push(d.then(f=>{f.issues.length&&r.issues.push(...Ic(s,f.issues)),r.value[c.value]=f.value})):(d.issues.length&&r.issues.push(...Ic(s,d.issues)),r.value[c.value]=d.value)}}return i.length?Promise.all(i).then(()=>r):r}}),G$=ne("$ZodMap",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!(o instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:o,inst:e}),r;let i=[];r.value=new Map;for(let[a,s]of o){let c=t.keyType._zod.run({value:a,issues:[]},n),p=t.valueType._zod.run({value:s,issues:[]},n);c instanceof Promise||p instanceof Promise?i.push(Promise.all([c,p]).then(([d,f])=>{Gre(d,f,r,a,o,e,n)})):Gre(c,p,r,a,o,e,n)}return i.length?Promise.all(i).then(()=>r):r}});function Gre(e,t,r,n,o,i,a){e.issues.length&&(_E.has(typeof n)?r.issues.push(...Ic(n,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:o,inst:i,issues:e.issues.map(s=>Zs(s,a,Wi()))})),t.issues.length&&(_E.has(typeof n)?r.issues.push(...Ic(n,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:o,inst:i,key:n,issues:t.issues.map(s=>Zs(s,a,Wi()))})),r.value.set(e.value,t.value)}var H$=ne("$ZodSet",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!(o instanceof Set))return r.issues.push({input:o,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of o){let s=t.valueType._zod.run({value:a,issues:[]},n);s instanceof Promise?i.push(s.then(c=>Hre(c,r))):Hre(s,r)}return i.length?Promise.all(i).then(()=>r):r}});function Hre(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Z$=ne("$ZodEnum",(e,t)=>{Cr.init(e,t);let r=pE(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>_E.has(typeof o)).map(o=>typeof o=="string"?bl(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{let a=o.value;return n.has(a)||o.issues.push({code:"invalid_value",values:r,input:a,inst:e}),o}}),W$=ne("$ZodLiteral",(e,t)=>{if(Cr.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?bl(n):n?bl(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,o)=>{let i=n.value;return r.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),Q$=ne("$ZodFile",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return o instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:o,inst:e}),r}}),X$=ne("$ZodTransform",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Ry(e.constructor.name);let o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(a=>(r.value=a,r));if(o instanceof Promise)throw new xp;return r.value=o,r}});function Zre(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var pP=ne("$ZodOptional",(e,t)=>{Cr.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ur(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ur(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${dE(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Zre(i,r.value)):Zre(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),Y$=ne("$ZodExactOptional",(e,t)=>{pP.init(e,t),Ur(e._zod,"values",()=>t.innerType._zod.values),Ur(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),eM=ne("$ZodNullable",(e,t)=>{Cr.init(e,t),Ur(e._zod,"optin",()=>t.innerType._zod.optin),Ur(e._zod,"optout",()=>t.innerType._zod.optout),Ur(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${dE(r.source)}|null)$`):void 0}),Ur(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),tM=ne("$ZodDefault",(e,t)=>{Cr.init(e,t),e._zod.optin="optional",Ur(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Wre(i,t)):Wre(o,t)}});function Wre(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var rM=ne("$ZodPrefault",(e,t)=>{Cr.init(e,t),e._zod.optin="optional",Ur(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),nM=ne("$ZodNonOptional",(e,t)=>{Cr.init(e,t),Ur(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Qre(i,e)):Qre(o,e)}});function Qre(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var oM=ne("$ZodSuccess",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Ry("ZodSuccess");let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.issues.length===0,r)):(r.value=o.issues.length===0,r)}}),iM=ne("$ZodCatch",(e,t)=>{Cr.init(e,t),Ur(e._zod,"optin",()=>t.innerType._zod.optin),Ur(e._zod,"optout",()=>t.innerType._zod.optout),Ur(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>Zs(a,n,Wi()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>Zs(i,n,Wi()))},input:r.value}),r.issues=[]),r)}}),aM=ne("$ZodNaN",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),sM=ne("$ZodPipe",(e,t)=>{Cr.init(e,t),Ur(e._zod,"values",()=>t.in._zod.values),Ur(e._zod,"optin",()=>t.in._zod.optin),Ur(e._zod,"optout",()=>t.out._zod.optout),Ur(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let i=t.out._zod.run(r,n);return i instanceof Promise?i.then(a=>oP(a,t.in,n)):oP(i,t.in,n)}let o=t.in._zod.run(r,n);return o instanceof Promise?o.then(i=>oP(i,t.out,n)):oP(o,t.out,n)}});function oP(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var kE=ne("$ZodCodec",(e,t)=>{Cr.init(e,t),Ur(e._zod,"values",()=>t.in._zod.values),Ur(e._zod,"optin",()=>t.in._zod.optin),Ur(e._zod,"optout",()=>t.out._zod.optout),Ur(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if((n.direction||"forward")==="forward"){let i=t.in._zod.run(r,n);return i instanceof Promise?i.then(a=>iP(a,t,n)):iP(i,t,n)}else{let i=t.out._zod.run(r,n);return i instanceof Promise?i.then(a=>iP(a,t,n)):iP(i,t,n)}}});function iP(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let o=t.transform(e.value,e);return o instanceof Promise?o.then(i=>aP(e,i,t.out,r)):aP(e,o,t.out,r)}else{let o=t.reverseTransform(e.value,e);return o instanceof Promise?o.then(i=>aP(e,i,t.in,r)):aP(e,o,t.in,r)}}function aP(e,t,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},n)}var cM=ne("$ZodReadonly",(e,t)=>{Cr.init(e,t),Ur(e._zod,"propValues",()=>t.innerType._zod.propValues),Ur(e._zod,"values",()=>t.innerType._zod.values),Ur(e._zod,"optin",()=>t.innerType?._zod?.optin),Ur(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(Xre):Xre(o)}});function Xre(e){return e.value=Object.freeze(e.value),e}var lM=ne("$ZodTemplateLiteral",(e,t)=>{Cr.init(e,t);let r=[];for(let n of t.parts)if(typeof n=="object"&&n!==null){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let o=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!o)throw new Error(`Invalid template literal part: ${n._zod.traits}`);let i=o.startsWith("^")?1:0,a=o.endsWith("$")?o.length-1:o.length;r.push(o.slice(i,a))}else if(n===null||AL.has(typeof n))r.push(bl(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(n,o)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)}),uM=ne("$ZodFunction",(e,t)=>(Cr.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...n){let o=e._def.input?gE(e._def.input,n):n,i=Reflect.apply(r,this,o);return e._def.output?gE(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...n){let o=e._def.input?await vE(e._def.input,n):n,i=await Reflect.apply(r,this,o);return e._def.output?await vE(e._def.output,i):i}},e._zod.parse=(r,n)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let n=e.constructor;return Array.isArray(r[0])?new n({type:"function",input:new uP({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new n({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let n=e.constructor;return new n({type:"function",input:e._def.input,output:r})},e)),pM=ne("$ZodPromise",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>Promise.resolve(r.value).then(o=>t.innerType._zod.run({value:o,issues:[]},n))}),dM=ne("$ZodLazy",(e,t)=>{Cr.init(e,t),Ur(e._zod,"innerType",()=>t.getter()),Ur(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Ur(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Ur(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Ur(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,n)=>e._zod.innerType._zod.run(r,n)}),_M=ne("$ZodCustom",(e,t)=>{wo.init(e,t),Cr.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(i=>Yre(i,r,n,e));Yre(o,r,n,e)}});function Yre(e,t,r,n){if(!e){let o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(L0(o))}}var sFe=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(o){return e[o]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=gr(o.input),s=n[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":return o.values.length===1?`Invalid input: expected ${pr(o.values[0])}`:`Invalid option: expected one of ${ur(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Too big: expected ${o.origin??"value"} to have ${i}${o.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Too small: expected ${o.origin} to have ${i}${o.minimum.toString()} ${a.unit}`:`Too small: expected ${o.origin} to be ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${ur(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function fM(){return{localeError:sFe()}}var ine;var hM=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function yM(){return new hM}(ine=globalThis).__zod_globalRegistry??(ine.__zod_globalRegistry=yM());var Es=globalThis.__zod_globalRegistry;function gM(e,t){return new e({type:"string",...st(t)})}function SM(e,t){return new e({type:"string",coerce:!0,...st(t)})}function dP(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...st(t)})}function CE(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...st(t)})}function _P(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...st(t)})}function fP(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...st(t)})}function mP(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...st(t)})}function hP(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...st(t)})}function PE(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...st(t)})}function yP(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...st(t)})}function gP(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...st(t)})}function SP(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...st(t)})}function vP(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...st(t)})}function bP(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...st(t)})}function xP(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...st(t)})}function EP(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...st(t)})}function TP(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...st(t)})}function DP(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...st(t)})}function vM(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...st(t)})}function AP(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...st(t)})}function wP(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...st(t)})}function IP(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...st(t)})}function kP(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...st(t)})}function CP(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...st(t)})}function PP(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...st(t)})}function bM(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...st(t)})}function xM(e,t){return new e({type:"string",format:"date",check:"string_format",...st(t)})}function EM(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...st(t)})}function TM(e,t){return new e({type:"string",format:"duration",check:"string_format",...st(t)})}function DM(e,t){return new e({type:"number",checks:[],...st(t)})}function AM(e,t){return new e({type:"number",coerce:!0,checks:[],...st(t)})}function wM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...st(t)})}function IM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...st(t)})}function kM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...st(t)})}function CM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...st(t)})}function PM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...st(t)})}function OM(e,t){return new e({type:"boolean",...st(t)})}function NM(e,t){return new e({type:"boolean",coerce:!0,...st(t)})}function FM(e,t){return new e({type:"bigint",...st(t)})}function RM(e,t){return new e({type:"bigint",coerce:!0,...st(t)})}function LM(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...st(t)})}function $M(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...st(t)})}function MM(e,t){return new e({type:"symbol",...st(t)})}function jM(e,t){return new e({type:"undefined",...st(t)})}function BM(e,t){return new e({type:"null",...st(t)})}function qM(e){return new e({type:"any"})}function UM(e){return new e({type:"unknown"})}function zM(e,t){return new e({type:"never",...st(t)})}function VM(e,t){return new e({type:"void",...st(t)})}function JM(e,t){return new e({type:"date",...st(t)})}function KM(e,t){return new e({type:"date",coerce:!0,...st(t)})}function GM(e,t){return new e({type:"nan",...st(t)})}function c_(e,t){return new o$({check:"less_than",...st(t),value:e,inclusive:!1})}function kc(e,t){return new o$({check:"less_than",...st(t),value:e,inclusive:!0})}function l_(e,t){return new i$({check:"greater_than",...st(t),value:e,inclusive:!1})}function Ts(e,t){return new i$({check:"greater_than",...st(t),value:e,inclusive:!0})}function HM(e){return l_(0,e)}function ZM(e){return c_(0,e)}function WM(e){return kc(0,e)}function QM(e){return Ts(0,e)}function jy(e,t){return new Ere({check:"multiple_of",...st(t),value:e})}function By(e,t){return new Are({check:"max_size",...st(t),maximum:e})}function u_(e,t){return new wre({check:"min_size",...st(t),minimum:e})}function M0(e,t){return new Ire({check:"size_equals",...st(t),size:e})}function j0(e,t){return new kre({check:"max_length",...st(t),maximum:e})}function rm(e,t){return new Cre({check:"min_length",...st(t),minimum:e})}function B0(e,t){return new Pre({check:"length_equals",...st(t),length:e})}function OE(e,t){return new Ore({check:"string_format",format:"regex",...st(t),pattern:e})}function NE(e){return new Nre({check:"string_format",format:"lowercase",...st(e)})}function FE(e){return new Fre({check:"string_format",format:"uppercase",...st(e)})}function RE(e,t){return new Rre({check:"string_format",format:"includes",...st(t),includes:e})}function LE(e,t){return new Lre({check:"string_format",format:"starts_with",...st(t),prefix:e})}function $E(e,t){return new $re({check:"string_format",format:"ends_with",...st(t),suffix:e})}function XM(e,t,r){return new Mre({check:"property",property:e,schema:t,...st(r)})}function ME(e,t){return new jre({check:"mime_type",mime:e,...st(t)})}function Ep(e){return new Bre({check:"overwrite",tx:e})}function jE(e){return Ep(t=>t.normalize(e))}function BE(){return Ep(e=>e.trim())}function qE(){return Ep(e=>e.toLowerCase())}function UE(){return Ep(e=>e.toUpperCase())}function OP(){return Ep(e=>EL(e))}function ane(e,t,r){return new e({type:"array",element:t,...st(r)})}function YM(e,t){return new e({type:"file",...st(t)})}function e7(e,t,r){let n=st(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function t7(e,t,r){return new e({type:"custom",check:"custom",fn:t,...st(r)})}function r7(e){let t=pFe(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(L0(n,r.value,t._zod.def));else{let o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(L0(o))}},e(r.value,r)));return t}function pFe(e,t){let r=new wo({check:"custom",...st(t)});return r._zod.check=e,r}function n7(e){let t=new wo({check:"describe"});return t._zod.onattach=[r=>{let n=Es.get(r)??{};Es.add(r,{...n,description:e})}],t._zod.check=()=>{},t}function o7(e){let t=new wo({check:"meta"});return t._zod.onattach=[r=>{let n=Es.get(r)??{};Es.add(r,{...n,...e})}],t._zod.check=()=>{},t}function i7(e,t){let r=st(t),n=r.truthy??["true","1","yes","on","y","enabled"],o=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(n=n.map(y=>typeof y=="string"?y.toLowerCase():y),o=o.map(y=>typeof y=="string"?y.toLowerCase():y));let i=new Set(n),a=new Set(o),s=e.Codec??kE,c=e.Boolean??wE,p=e.String??My,d=new p({type:"string",error:r.error}),f=new c({type:"boolean",error:r.error}),m=new s({type:"pipe",in:d,out:f,transform:((y,g)=>{let S=y;return r.case!=="sensitive"&&(S=S.toLowerCase()),i.has(S)?!0:a.has(S)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:g.value,inst:m,continue:!1}),{})}),reverseTransform:((y,g)=>y===!0?n[0]||"true":o[0]||"false"),error:r.error});return m}function q0(e,t,r,n={}){let o=st(n),i={...st(n),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...o};return r instanceof RegExp&&(i.pattern=r),new e(i)}function NP(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Es,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Fo(e,t,r={path:[],schemaPath:[]}){var n;let o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let d={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let m=a.schema,y=t.processors[o.type];if(!y)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);y(e,t,m,d)}let f=e._zod.parent;f&&(a.ref||(a.ref=f),Fo(f,t,d),t.seen.get(f).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&Ds(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function FP(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let c=n.get(s);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(s,a[0])}}let o=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let f=e.external.registry.get(a[0])?.id,m=e.external.uri??(g=>g);if(f)return{ref:m(f)};let y=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=y,{defId:y,ref:`${m("__shared")}#/${s}/${y}`}}if(a[1]===r)return{ref:"#"};let p=`#/${s}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:p+d}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:p}=o(a);s.def={...s.schema},p&&(s.defId=p);let d=s.schema;for(let f in d)delete d[f];d.$ref=c};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let h of e.seen.entries()){let S=h[1];if(r===h[0]){d(h);continue}if(e.external){let A=e.external.registry.get(h[0])?.id;if(r!==h[0]&&A){d(h);continue}}if(e.metadataRegistry.get(h[0])?.id){d(h);continue}if(S.cycle){d(h);continue}if(S.count>1&&e.reused==="ref"){d(h);continue}}}function BEe(e,r){let i=e.seen.get(r);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");let s=h=>{let S=e.seen.get(h);if(S.ref===null)return;let b=S.def??S.schema,A={...b},L=S.ref;if(S.ref=null,L){s(L);let j=e.seen.get(L),ie=j.schema;if(ie.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(b.allOf=b.allOf??[],b.allOf.push(ie)):Object.assign(b,ie),Object.assign(b,A),h._zod.parent===L)for(let X in b)X==="$ref"||X==="allOf"||X in A||delete b[X];if(ie.$ref&&j.def)for(let X in b)X==="$ref"||X==="allOf"||X in j.def&&JSON.stringify(b[X])===JSON.stringify(j.def[X])&&delete b[X]}let V=h._zod.parent;if(V&&V!==L){s(V);let j=e.seen.get(V);if(j?.schema.$ref&&(b.$ref=j.schema.$ref,j.def))for(let ie in b)ie==="$ref"||ie==="allOf"||ie in j.def&&JSON.stringify(b[ie])===JSON.stringify(j.def[ie])&&delete b[ie]}e.override({zodSchema:h,jsonSchema:b,path:S.path??[]})};for(let h of[...e.seen.entries()].reverse())s(h[0]);let l={};if(e.target==="draft-2020-12"?l.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?l.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?l.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let h=e.external.registry.get(r)?.id;if(!h)throw new Error("Schema is missing an `id` property");l.$id=e.external.uri(h)}Object.assign(l,i.def??i.schema);let d=e.external?.defs??{};for(let h of e.seen.entries()){let S=h[1];S.def&&S.defId&&(d[S.defId]=S.def)}e.external||Object.keys(d).length>0&&(e.target==="draft-2020-12"?l.$defs=d:l.definitions=d);try{let h=JSON.parse(JSON.stringify(l));return Object.defineProperty(h,"~standard",{value:{...r["~standard"],jsonSchema:{input:sue(r,"input",e.processors),output:sue(r,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function O2(e,r){let i=r??{seen:new Set};if(i.seen.has(e))return!1;i.seen.add(e);let s=e._zod.def;if(s.type==="transform")return!0;if(s.type==="array")return O2(s.element,i);if(s.type==="set")return O2(s.valueType,i);if(s.type==="lazy")return O2(s.getter(),i);if(s.type==="promise"||s.type==="optional"||s.type==="nonoptional"||s.type==="nullable"||s.type==="readonly"||s.type==="default"||s.type==="prefault")return O2(s.innerType,i);if(s.type==="intersection")return O2(s.left,i)||O2(s.right,i);if(s.type==="record"||s.type==="map")return O2(s.keyType,i)||O2(s.valueType,i);if(s.type==="pipe")return O2(s.in,i)||O2(s.out,i);if(s.type==="object"){for(let l in s.shape)if(O2(s.shape[l],i))return!0;return!1}if(s.type==="union"){for(let l of s.options)if(O2(l,i))return!0;return!1}if(s.type==="tuple"){for(let l of s.items)if(O2(l,i))return!0;return!!(s.rest&&O2(s.rest,i))}return!1}var v3t=(e,r={})=>i=>{let s=MEe({...i,processors:r});return Tg(e,s),jEe(s,e),BEe(s,e)},sue=(e,r,i={})=>s=>{let{libraryOptions:l,target:d}=s??{},h=MEe({...l??{},target:d,io:r,processors:i});return Tg(e,h),jEe(h,e),BEe(h,e)};var H9r={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},S3t=(e,r,i,s)=>{let l=i;l.type="string";let{minimum:d,maximum:h,format:S,patterns:b,contentEncoding:A}=e._zod.bag;if(typeof d=="number"&&(l.minLength=d),typeof h=="number"&&(l.maxLength=h),S&&(l.format=H9r[S]??S,l.format===""&&delete l.format,S==="time"&&delete l.format),A&&(l.contentEncoding=A),b&&b.size>0){let L=[...b];L.length===1?l.pattern=L[0].source:L.length>1&&(l.allOf=[...L.map(V=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:V.source}))])}},b3t=(e,r,i,s)=>{let l=i,{minimum:d,maximum:h,format:S,multipleOf:b,exclusiveMaximum:A,exclusiveMinimum:L}=e._zod.bag;typeof S=="string"&&S.includes("int")?l.type="integer":l.type="number",typeof L=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(l.minimum=L,l.exclusiveMinimum=!0):l.exclusiveMinimum=L),typeof d=="number"&&(l.minimum=d,typeof L=="number"&&r.target!=="draft-04"&&(L>=d?delete l.minimum:delete l.exclusiveMinimum)),typeof A=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(l.maximum=A,l.exclusiveMaximum=!0):l.exclusiveMaximum=A),typeof h=="number"&&(l.maximum=h,typeof A=="number"&&r.target!=="draft-04"&&(A<=h?delete l.maximum:delete l.exclusiveMaximum)),typeof b=="number"&&(l.multipleOf=b)},x3t=(e,r,i,s)=>{i.type="boolean"},T3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},E3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},k3t=(e,r,i,s)=>{r.target==="openapi-3.0"?(i.type="string",i.nullable=!0,i.enum=[null]):i.type="null"},C3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},D3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},A3t=(e,r,i,s)=>{i.not={}},w3t=(e,r,i,s)=>{},I3t=(e,r,i,s)=>{},P3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},N3t=(e,r,i,s)=>{let l=e._zod.def,d=wle(l.entries);d.every(h=>typeof h=="number")&&(i.type="number"),d.every(h=>typeof h=="string")&&(i.type="string"),i.enum=d},O3t=(e,r,i,s)=>{let l=e._zod.def,d=[];for(let h of l.values)if(h===void 0){if(r.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof h=="bigint"){if(r.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");d.push(Number(h))}else d.push(h);if(d.length!==0)if(d.length===1){let h=d[0];i.type=h===null?"null":typeof h,r.target==="draft-04"||r.target==="openapi-3.0"?i.enum=[h]:i.const=h}else d.every(h=>typeof h=="number")&&(i.type="number"),d.every(h=>typeof h=="string")&&(i.type="string"),d.every(h=>typeof h=="boolean")&&(i.type="boolean"),d.every(h=>h===null)&&(i.type="null"),i.enum=d},F3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},R3t=(e,r,i,s)=>{let l=i,d=e._zod.pattern;if(!d)throw new Error("Pattern not found in template literal");l.type="string",l.pattern=d.source},L3t=(e,r,i,s)=>{let l=i,d={type:"string",format:"binary",contentEncoding:"binary"},{minimum:h,maximum:S,mime:b}=e._zod.bag;h!==void 0&&(d.minLength=h),S!==void 0&&(d.maxLength=S),b?b.length===1?(d.contentMediaType=b[0],Object.assign(l,d)):(Object.assign(l,d),l.anyOf=b.map(A=>({contentMediaType:A}))):Object.assign(l,d)},M3t=(e,r,i,s)=>{i.type="boolean"},j3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},B3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},$3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},U3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},z3t=(e,r,i,s)=>{if(r.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},q3t=(e,r,i,s)=>{let l=i,d=e._zod.def,{minimum:h,maximum:S}=e._zod.bag;typeof h=="number"&&(l.minItems=h),typeof S=="number"&&(l.maxItems=S),l.type="array",l.items=Tg(d.element,r,{...s,path:[...s.path,"items"]})},J3t=(e,r,i,s)=>{let l=i,d=e._zod.def;l.type="object",l.properties={};let h=d.shape;for(let A in h)l.properties[A]=Tg(h[A],r,{...s,path:[...s.path,"properties",A]});let S=new Set(Object.keys(h)),b=new Set([...S].filter(A=>{let L=d.shape[A]._zod;return r.io==="input"?L.optin===void 0:L.optout===void 0}));b.size>0&&(l.required=Array.from(b)),d.catchall?._zod.def.type==="never"?l.additionalProperties=!1:d.catchall?d.catchall&&(l.additionalProperties=Tg(d.catchall,r,{...s,path:[...s.path,"additionalProperties"]})):r.io==="output"&&(l.additionalProperties=!1)},bGe=(e,r,i,s)=>{let l=e._zod.def,d=l.inclusive===!1,h=l.options.map((S,b)=>Tg(S,r,{...s,path:[...s.path,d?"oneOf":"anyOf",b]}));d?i.oneOf=h:i.anyOf=h},V3t=(e,r,i,s)=>{let l=e._zod.def,d=Tg(l.left,r,{...s,path:[...s.path,"allOf",0]}),h=Tg(l.right,r,{...s,path:[...s.path,"allOf",1]}),S=A=>"allOf"in A&&Object.keys(A).length===1,b=[...S(d)?d.allOf:[d],...S(h)?h.allOf:[h]];i.allOf=b},W3t=(e,r,i,s)=>{let l=i,d=e._zod.def;l.type="array";let h=r.target==="draft-2020-12"?"prefixItems":"items",S=r.target==="draft-2020-12"||r.target==="openapi-3.0"?"items":"additionalItems",b=d.items.map((j,ie)=>Tg(j,r,{...s,path:[...s.path,h,ie]})),A=d.rest?Tg(d.rest,r,{...s,path:[...s.path,S,...r.target==="openapi-3.0"?[d.items.length]:[]]}):null;r.target==="draft-2020-12"?(l.prefixItems=b,A&&(l.items=A)):r.target==="openapi-3.0"?(l.items={anyOf:b},A&&l.items.anyOf.push(A),l.minItems=b.length,A||(l.maxItems=b.length)):(l.items=b,A&&(l.additionalItems=A));let{minimum:L,maximum:V}=e._zod.bag;typeof L=="number"&&(l.minItems=L),typeof V=="number"&&(l.maxItems=V)},G3t=(e,r,i,s)=>{let l=i,d=e._zod.def;l.type="object";let h=d.keyType,b=h._zod.bag?.patterns;if(d.mode==="loose"&&b&&b.size>0){let L=Tg(d.valueType,r,{...s,path:[...s.path,"patternProperties","*"]});l.patternProperties={};for(let V of b)l.patternProperties[V.source]=L}else(r.target==="draft-07"||r.target==="draft-2020-12")&&(l.propertyNames=Tg(d.keyType,r,{...s,path:[...s.path,"propertyNames"]})),l.additionalProperties=Tg(d.valueType,r,{...s,path:[...s.path,"additionalProperties"]});let A=h._zod.values;if(A){let L=[...A].filter(V=>typeof V=="string"||typeof V=="number");L.length>0&&(l.required=L)}},H3t=(e,r,i,s)=>{let l=e._zod.def,d=Tg(l.innerType,r,s),h=r.seen.get(e);r.target==="openapi-3.0"?(h.ref=l.innerType,i.nullable=!0):i.anyOf=[d,{type:"null"}]},K3t=(e,r,i,s)=>{let l=e._zod.def;Tg(l.innerType,r,s);let d=r.seen.get(e);d.ref=l.innerType},Q3t=(e,r,i,s)=>{let l=e._zod.def;Tg(l.innerType,r,s);let d=r.seen.get(e);d.ref=l.innerType,i.default=JSON.parse(JSON.stringify(l.defaultValue))},Z3t=(e,r,i,s)=>{let l=e._zod.def;Tg(l.innerType,r,s);let d=r.seen.get(e);d.ref=l.innerType,r.io==="input"&&(i._prefault=JSON.parse(JSON.stringify(l.defaultValue)))},X3t=(e,r,i,s)=>{let l=e._zod.def;Tg(l.innerType,r,s);let d=r.seen.get(e);d.ref=l.innerType;let h;try{h=l.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}i.default=h},Y3t=(e,r,i,s)=>{let l=e._zod.def,d=r.io==="input"?l.in._zod.def.type==="transform"?l.out:l.in:l.out;Tg(d,r,s);let h=r.seen.get(e);h.ref=d},eNt=(e,r,i,s)=>{let l=e._zod.def;Tg(l.innerType,r,s);let d=r.seen.get(e);d.ref=l.innerType,i.readOnly=!0},tNt=(e,r,i,s)=>{let l=e._zod.def;Tg(l.innerType,r,s);let d=r.seen.get(e);d.ref=l.innerType},xGe=(e,r,i,s)=>{let l=e._zod.def;Tg(l.innerType,r,s);let d=r.seen.get(e);d.ref=l.innerType},rNt=(e,r,i,s)=>{let l=e._zod.innerType;Tg(l,r,s);let d=r.seen.get(e);d.ref=l};function FX(e){return!!e._zod}function k6(e,r){return FX(e)?wX(e,r):e.safeParse(r)}function $Ee(e){if(!e)return;let r;if(FX(e)?r=e._zod?.def?.shape:r=e.shape,!!r){if(typeof r=="function")try{return r()}catch{return}return r}}function aNt(e){if(FX(e)){let d=e._zod?.def;if(d){if(d.value!==void 0)return d.value;if(Array.isArray(d.values)&&d.values.length>0)return d.values[0]}}let i=e._def;if(i){if(i.value!==void 0)return i.value;if(Array.isArray(i.values)&&i.values.length>0)return i.values[0]}let s=e.value;if(s!==void 0)return s}var cue={};J7(cue,{ZodAny:()=>ENt,ZodArray:()=>ANt,ZodBase64:()=>GGe,ZodBase64URL:()=>HGe,ZodBigInt:()=>fue,ZodBigIntFormat:()=>ZGe,ZodBoolean:()=>due,ZodCIDRv4:()=>VGe,ZodCIDRv6:()=>WGe,ZodCUID:()=>jGe,ZodCUID2:()=>BGe,ZodCatch:()=>HNt,ZodCodec:()=>iHe,ZodCustom:()=>ZEe,ZodCustomStringFormat:()=>pue,ZodDate:()=>WEe,ZodDefault:()=>zNt,ZodDiscriminatedUnion:()=>INt,ZodE164:()=>KGe,ZodEmail:()=>FGe,ZodEmoji:()=>LGe,ZodEnum:()=>lue,ZodExactOptional:()=>BNt,ZodFile:()=>MNt,ZodFunction:()=>n8t,ZodGUID:()=>zEe,ZodIPv4:()=>qGe,ZodIPv6:()=>JGe,ZodIntersection:()=>PNt,ZodJWT:()=>QGe,ZodKSUID:()=>zGe,ZodLazy:()=>e8t,ZodLiteral:()=>LNt,ZodMAC:()=>SNt,ZodMap:()=>FNt,ZodNaN:()=>QNt,ZodNanoID:()=>MGe,ZodNever:()=>CNt,ZodNonOptional:()=>rHe,ZodNull:()=>TNt,ZodNullable:()=>UNt,ZodNumber:()=>_ue,ZodNumberFormat:()=>RX,ZodObject:()=>GEe,ZodOptional:()=>tHe,ZodPipe:()=>nHe,ZodPrefault:()=>JNt,ZodPromise:()=>r8t,ZodReadonly:()=>ZNt,ZodRecord:()=>QEe,ZodSet:()=>RNt,ZodString:()=>uue,ZodStringFormat:()=>ng,ZodSuccess:()=>GNt,ZodSymbol:()=>bNt,ZodTemplateLiteral:()=>YNt,ZodTransform:()=>jNt,ZodTuple:()=>NNt,ZodType:()=>b_,ZodULID:()=>$Ge,ZodURL:()=>VEe,ZodUUID:()=>c5,ZodUndefined:()=>xNt,ZodUnion:()=>HEe,ZodUnknown:()=>kNt,ZodVoid:()=>DNt,ZodXID:()=>UGe,ZodXor:()=>wNt,_ZodString:()=>OGe,_default:()=>qNt,_function:()=>oLr,any:()=>XGe,array:()=>Ms,base64:()=>kRr,base64url:()=>CRr,bigint:()=>MRr,boolean:()=>oh,catch:()=>KNt,check:()=>aLr,cidrv4:()=>TRr,cidrv6:()=>ERr,codec:()=>rLr,cuid:()=>mRr,cuid2:()=>hRr,custom:()=>oHe,date:()=>qRr,describe:()=>sLr,discriminatedUnion:()=>KEe,e164:()=>DRr,email:()=>aRr,emoji:()=>dRr,enum:()=>gT,exactOptional:()=>$Nt,file:()=>XRr,float32:()=>ORr,float64:()=>FRr,function:()=>oLr,guid:()=>sRr,hash:()=>NRr,hex:()=>PRr,hostname:()=>IRr,httpUrl:()=>_Rr,instanceof:()=>lLr,int:()=>NGe,int32:()=>RRr,int64:()=>jRr,intersection:()=>hue,ipv4:()=>SRr,ipv6:()=>xRr,json:()=>pLr,jwt:()=>ARr,keyof:()=>JRr,ksuid:()=>vRr,lazy:()=>t8t,literal:()=>Dl,looseObject:()=>cv,looseRecord:()=>HRr,mac:()=>bRr,map:()=>KRr,meta:()=>cLr,nan:()=>tLr,nanoid:()=>fRr,nativeEnum:()=>ZRr,never:()=>YGe,nonoptional:()=>WNt,null:()=>mue,nullable:()=>qEe,nullish:()=>YRr,number:()=>yf,object:()=>rc,optional:()=>oy,partialRecord:()=>GRr,pipe:()=>JEe,prefault:()=>VNt,preprocess:()=>XEe,promise:()=>iLr,readonly:()=>XNt,record:()=>Eg,refine:()=>i8t,set:()=>QRr,strictObject:()=>VRr,string:()=>An,stringFormat:()=>wRr,stringbool:()=>uLr,success:()=>eLr,superRefine:()=>o8t,symbol:()=>$Rr,templateLiteral:()=>nLr,transform:()=>eHe,tuple:()=>ONt,uint32:()=>LRr,uint64:()=>BRr,ulid:()=>gRr,undefined:()=>URr,union:()=>wh,unknown:()=>ig,url:()=>RGe,uuid:()=>cRr,uuidv4:()=>lRr,uuidv6:()=>uRr,uuidv7:()=>pRr,void:()=>zRr,xid:()=>yRr,xor:()=>WRr});var UEe={};J7(UEe,{endsWith:()=>tue,gt:()=>a5,gte:()=>N2,includes:()=>Yle,length:()=>NX,lowercase:()=>Zle,lt:()=>o5,lte:()=>hD,maxLength:()=>PX,maxSize:()=>OJ,mime:()=>rue,minLength:()=>fj,minSize:()=>s5,multipleOf:()=>NJ,negative:()=>uGe,nonnegative:()=>_Ge,nonpositive:()=>pGe,normalize:()=>nue,overwrite:()=>ON,positive:()=>lGe,property:()=>dGe,regex:()=>Qle,size:()=>IX,slugify:()=>LEe,startsWith:()=>eue,toLowerCase:()=>oue,toUpperCase:()=>aue,trim:()=>iue,uppercase:()=>Xle});var FJ={};J7(FJ,{ZodISODate:()=>CGe,ZodISODateTime:()=>EGe,ZodISODuration:()=>IGe,ZodISOTime:()=>AGe,date:()=>DGe,datetime:()=>kGe,duration:()=>PGe,time:()=>wGe});var EGe=ni("ZodISODateTime",(e,r)=>{OVe.init(e,r),ng.init(e,r)});function kGe(e){return LWe(EGe,e)}var CGe=ni("ZodISODate",(e,r)=>{FVe.init(e,r),ng.init(e,r)});function DGe(e){return MWe(CGe,e)}var AGe=ni("ZodISOTime",(e,r)=>{RVe.init(e,r),ng.init(e,r)});function wGe(e){return jWe(AGe,e)}var IGe=ni("ZodISODuration",(e,r)=>{LVe.init(e,r),ng.init(e,r)});function PGe(e){return BWe(IGe,e)}var sNt=(e,r)=>{tEe.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:i=>nEe(e,i)},flatten:{value:i=>rEe(e,i)},addIssue:{value:i=>{e.issues.push(i),e.message=JSON.stringify(e.issues,CX,2)}},addIssues:{value:i=>{e.issues.push(...i),e.message=JSON.stringify(e.issues,CX,2)}},isEmpty:{get(){return e.issues.length===0}}})},_5n=ni("ZodError",sNt),gD=ni("ZodError",sNt,{Parent:Error});var cNt=Rle(gD),lNt=Mle(gD),uNt=Ble(gD),pNt=$le(gD),_Nt=x4t(gD),dNt=T4t(gD),fNt=E4t(gD),mNt=k4t(gD),hNt=C4t(gD),gNt=D4t(gD),yNt=A4t(gD),vNt=w4t(gD);var b_=ni("ZodType",(e,r)=>(Ip.init(e,r),Object.assign(e["~standard"],{jsonSchema:{input:sue(e,"input"),output:sue(e,"output")}}),e.toJSONSchema=v3t(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...i)=>e.clone(es.mergeDefs(r,{checks:[...r.checks??[],...i.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),{parent:!0}),e.with=e.check,e.clone=(i,s)=>I2(e,i,s),e.brand=()=>e,e.register=((i,s)=>(i.add(e,s),e)),e.parse=(i,s)=>cNt(e,i,s,{callee:e.parse}),e.safeParse=(i,s)=>uNt(e,i,s),e.parseAsync=async(i,s)=>lNt(e,i,s,{callee:e.parseAsync}),e.safeParseAsync=async(i,s)=>pNt(e,i,s),e.spa=e.safeParseAsync,e.encode=(i,s)=>_Nt(e,i,s),e.decode=(i,s)=>dNt(e,i,s),e.encodeAsync=async(i,s)=>fNt(e,i,s),e.decodeAsync=async(i,s)=>mNt(e,i,s),e.safeEncode=(i,s)=>hNt(e,i,s),e.safeDecode=(i,s)=>gNt(e,i,s),e.safeEncodeAsync=async(i,s)=>yNt(e,i,s),e.safeDecodeAsync=async(i,s)=>vNt(e,i,s),e.refine=(i,s)=>e.check(i8t(i,s)),e.superRefine=i=>e.check(o8t(i)),e.overwrite=i=>e.check(ON(i)),e.optional=()=>oy(e),e.exactOptional=()=>$Nt(e),e.nullable=()=>qEe(e),e.nullish=()=>oy(qEe(e)),e.nonoptional=i=>WNt(e,i),e.array=()=>Ms(e),e.or=i=>wh([e,i]),e.and=i=>hue(e,i),e.transform=i=>JEe(e,eHe(i)),e.default=i=>qNt(e,i),e.prefault=i=>VNt(e,i),e.catch=i=>KNt(e,i),e.pipe=i=>JEe(e,i),e.readonly=()=>XNt(e),e.describe=i=>{let s=e.clone();return P2.add(s,{description:i}),s},Object.defineProperty(e,"description",{get(){return P2.get(e)?.description},configurable:!0}),e.meta=(...i)=>{if(i.length===0)return P2.get(e);let s=e.clone();return P2.add(s,i[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=i=>i(e),e)),OGe=ni("_ZodString",(e,r)=>{PJ.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(s,l,d)=>S3t(e,s,l,d);let i=e._zod.bag;e.format=i.format??null,e.minLength=i.minimum??null,e.maxLength=i.maximum??null,e.regex=(...s)=>e.check(Qle(...s)),e.includes=(...s)=>e.check(Yle(...s)),e.startsWith=(...s)=>e.check(eue(...s)),e.endsWith=(...s)=>e.check(tue(...s)),e.min=(...s)=>e.check(fj(...s)),e.max=(...s)=>e.check(PX(...s)),e.length=(...s)=>e.check(NX(...s)),e.nonempty=(...s)=>e.check(fj(1,...s)),e.lowercase=s=>e.check(Zle(s)),e.uppercase=s=>e.check(Xle(s)),e.trim=()=>e.check(iue()),e.normalize=(...s)=>e.check(nue(...s)),e.toLowerCase=()=>e.check(oue()),e.toUpperCase=()=>e.check(aue()),e.slugify=()=>e.check(LEe())}),uue=ni("ZodString",(e,r)=>{PJ.init(e,r),OGe.init(e,r),e.email=i=>e.check(hEe(FGe,i)),e.url=i=>e.check(Kle(VEe,i)),e.jwt=i=>e.check(REe(QGe,i)),e.emoji=i=>e.check(bEe(LGe,i)),e.guid=i=>e.check(Hle(zEe,i)),e.uuid=i=>e.check(gEe(c5,i)),e.uuidv4=i=>e.check(yEe(c5,i)),e.uuidv6=i=>e.check(vEe(c5,i)),e.uuidv7=i=>e.check(SEe(c5,i)),e.nanoid=i=>e.check(xEe(MGe,i)),e.guid=i=>e.check(Hle(zEe,i)),e.cuid=i=>e.check(TEe(jGe,i)),e.cuid2=i=>e.check(EEe(BGe,i)),e.ulid=i=>e.check(kEe($Ge,i)),e.base64=i=>e.check(NEe(GGe,i)),e.base64url=i=>e.check(OEe(HGe,i)),e.xid=i=>e.check(CEe(UGe,i)),e.ksuid=i=>e.check(DEe(zGe,i)),e.ipv4=i=>e.check(AEe(qGe,i)),e.ipv6=i=>e.check(wEe(JGe,i)),e.cidrv4=i=>e.check(IEe(VGe,i)),e.cidrv6=i=>e.check(PEe(WGe,i)),e.e164=i=>e.check(FEe(KGe,i)),e.datetime=i=>e.check(kGe(i)),e.date=i=>e.check(DGe(i)),e.time=i=>e.check(wGe(i)),e.duration=i=>e.check(PGe(i))});function An(e){return OWe(uue,e)}var ng=ni("ZodStringFormat",(e,r)=>{Ah.init(e,r),OGe.init(e,r)}),FGe=ni("ZodEmail",(e,r)=>{EVe.init(e,r),ng.init(e,r)});function aRr(e){return hEe(FGe,e)}var zEe=ni("ZodGUID",(e,r)=>{xVe.init(e,r),ng.init(e,r)});function sRr(e){return Hle(zEe,e)}var c5=ni("ZodUUID",(e,r)=>{TVe.init(e,r),ng.init(e,r)});function cRr(e){return gEe(c5,e)}function lRr(e){return yEe(c5,e)}function uRr(e){return vEe(c5,e)}function pRr(e){return SEe(c5,e)}var VEe=ni("ZodURL",(e,r)=>{kVe.init(e,r),ng.init(e,r)});function RGe(e){return Kle(VEe,e)}function _Rr(e){return Kle(VEe,{protocol:/^https?$/,hostname:zw.domain,...es.normalizeParams(e)})}var LGe=ni("ZodEmoji",(e,r)=>{CVe.init(e,r),ng.init(e,r)});function dRr(e){return bEe(LGe,e)}var MGe=ni("ZodNanoID",(e,r)=>{DVe.init(e,r),ng.init(e,r)});function fRr(e){return xEe(MGe,e)}var jGe=ni("ZodCUID",(e,r)=>{AVe.init(e,r),ng.init(e,r)});function mRr(e){return TEe(jGe,e)}var BGe=ni("ZodCUID2",(e,r)=>{wVe.init(e,r),ng.init(e,r)});function hRr(e){return EEe(BGe,e)}var $Ge=ni("ZodULID",(e,r)=>{IVe.init(e,r),ng.init(e,r)});function gRr(e){return kEe($Ge,e)}var UGe=ni("ZodXID",(e,r)=>{PVe.init(e,r),ng.init(e,r)});function yRr(e){return CEe(UGe,e)}var zGe=ni("ZodKSUID",(e,r)=>{NVe.init(e,r),ng.init(e,r)});function vRr(e){return DEe(zGe,e)}var qGe=ni("ZodIPv4",(e,r)=>{MVe.init(e,r),ng.init(e,r)});function SRr(e){return AEe(qGe,e)}var SNt=ni("ZodMAC",(e,r)=>{BVe.init(e,r),ng.init(e,r)});function bRr(e){return RWe(SNt,e)}var JGe=ni("ZodIPv6",(e,r)=>{jVe.init(e,r),ng.init(e,r)});function xRr(e){return wEe(JGe,e)}var VGe=ni("ZodCIDRv4",(e,r)=>{$Ve.init(e,r),ng.init(e,r)});function TRr(e){return IEe(VGe,e)}var WGe=ni("ZodCIDRv6",(e,r)=>{UVe.init(e,r),ng.init(e,r)});function ERr(e){return PEe(WGe,e)}var GGe=ni("ZodBase64",(e,r)=>{zVe.init(e,r),ng.init(e,r)});function kRr(e){return NEe(GGe,e)}var HGe=ni("ZodBase64URL",(e,r)=>{qVe.init(e,r),ng.init(e,r)});function CRr(e){return OEe(HGe,e)}var KGe=ni("ZodE164",(e,r)=>{JVe.init(e,r),ng.init(e,r)});function DRr(e){return FEe(KGe,e)}var QGe=ni("ZodJWT",(e,r)=>{VVe.init(e,r),ng.init(e,r)});function ARr(e){return REe(QGe,e)}var pue=ni("ZodCustomStringFormat",(e,r)=>{WVe.init(e,r),ng.init(e,r)});function wRr(e,r,i={}){return OX(pue,e,r,i)}function IRr(e){return OX(pue,"hostname",zw.hostname,e)}function PRr(e){return OX(pue,"hex",zw.hex,e)}function NRr(e,r){let i=r?.enc??"hex",s=`${e}_${i}`,l=zw[s];if(!l)throw new Error(`Unrecognized hash format: ${s}`);return OX(pue,s,l,r)}var _ue=ni("ZodNumber",(e,r)=>{_Ee.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(s,l,d)=>b3t(e,s,l,d),e.gt=(s,l)=>e.check(a5(s,l)),e.gte=(s,l)=>e.check(N2(s,l)),e.min=(s,l)=>e.check(N2(s,l)),e.lt=(s,l)=>e.check(o5(s,l)),e.lte=(s,l)=>e.check(hD(s,l)),e.max=(s,l)=>e.check(hD(s,l)),e.int=s=>e.check(NGe(s)),e.safe=s=>e.check(NGe(s)),e.positive=s=>e.check(a5(0,s)),e.nonnegative=s=>e.check(N2(0,s)),e.negative=s=>e.check(o5(0,s)),e.nonpositive=s=>e.check(hD(0,s)),e.multipleOf=(s,l)=>e.check(NJ(s,l)),e.step=(s,l)=>e.check(NJ(s,l)),e.finite=()=>e;let i=e._zod.bag;e.minValue=Math.max(i.minimum??Number.NEGATIVE_INFINITY,i.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(i.maximum??Number.POSITIVE_INFINITY,i.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(i.format??"").includes("int")||Number.isSafeInteger(i.multipleOf??.5),e.isFinite=!0,e.format=i.format??null});function yf(e){return $We(_ue,e)}var RX=ni("ZodNumberFormat",(e,r)=>{GVe.init(e,r),_ue.init(e,r)});function NGe(e){return zWe(RX,e)}function ORr(e){return qWe(RX,e)}function FRr(e){return JWe(RX,e)}function RRr(e){return VWe(RX,e)}function LRr(e){return WWe(RX,e)}var due=ni("ZodBoolean",(e,r)=>{Vle.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>x3t(e,i,s,l)});function oh(e){return GWe(due,e)}var fue=ni("ZodBigInt",(e,r)=>{dEe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(s,l,d)=>T3t(e,s,l,d),e.gte=(s,l)=>e.check(N2(s,l)),e.min=(s,l)=>e.check(N2(s,l)),e.gt=(s,l)=>e.check(a5(s,l)),e.gte=(s,l)=>e.check(N2(s,l)),e.min=(s,l)=>e.check(N2(s,l)),e.lt=(s,l)=>e.check(o5(s,l)),e.lte=(s,l)=>e.check(hD(s,l)),e.max=(s,l)=>e.check(hD(s,l)),e.positive=s=>e.check(a5(BigInt(0),s)),e.negative=s=>e.check(o5(BigInt(0),s)),e.nonpositive=s=>e.check(hD(BigInt(0),s)),e.nonnegative=s=>e.check(N2(BigInt(0),s)),e.multipleOf=(s,l)=>e.check(NJ(s,l));let i=e._zod.bag;e.minValue=i.minimum??null,e.maxValue=i.maximum??null,e.format=i.format??null});function MRr(e){return KWe(fue,e)}var ZGe=ni("ZodBigIntFormat",(e,r)=>{HVe.init(e,r),fue.init(e,r)});function jRr(e){return ZWe(ZGe,e)}function BRr(e){return XWe(ZGe,e)}var bNt=ni("ZodSymbol",(e,r)=>{KVe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>E3t(e,i,s,l)});function $Rr(e){return YWe(bNt,e)}var xNt=ni("ZodUndefined",(e,r)=>{QVe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>C3t(e,i,s,l)});function URr(e){return eGe(xNt,e)}var TNt=ni("ZodNull",(e,r)=>{ZVe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>k3t(e,i,s,l)});function mue(e){return tGe(TNt,e)}var ENt=ni("ZodAny",(e,r)=>{XVe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>w3t(e,i,s,l)});function XGe(){return rGe(ENt)}var kNt=ni("ZodUnknown",(e,r)=>{YVe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>I3t(e,i,s,l)});function ig(){return nGe(kNt)}var CNt=ni("ZodNever",(e,r)=>{eWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>A3t(e,i,s,l)});function YGe(e){return iGe(CNt,e)}var DNt=ni("ZodVoid",(e,r)=>{tWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>D3t(e,i,s,l)});function zRr(e){return oGe(DNt,e)}var WEe=ni("ZodDate",(e,r)=>{rWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(s,l,d)=>P3t(e,s,l,d),e.min=(s,l)=>e.check(N2(s,l)),e.max=(s,l)=>e.check(hD(s,l));let i=e._zod.bag;e.minDate=i.minimum?new Date(i.minimum):null,e.maxDate=i.maximum?new Date(i.maximum):null});function qRr(e){return aGe(WEe,e)}var ANt=ni("ZodArray",(e,r)=>{nWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>q3t(e,i,s,l),e.element=r.element,e.min=(i,s)=>e.check(fj(i,s)),e.nonempty=i=>e.check(fj(1,i)),e.max=(i,s)=>e.check(PX(i,s)),e.length=(i,s)=>e.check(NX(i,s)),e.unwrap=()=>e.element});function Ms(e,r){return y3t(ANt,e,r)}function JRr(e){let r=e._zod.def.shape;return gT(Object.keys(r))}var GEe=ni("ZodObject",(e,r)=>{h3t.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>J3t(e,i,s,l),es.defineLazy(e,"shape",()=>r.shape),e.keyof=()=>gT(Object.keys(e._zod.def.shape)),e.catchall=i=>e.clone({...e._zod.def,catchall:i}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ig()}),e.loose=()=>e.clone({...e._zod.def,catchall:ig()}),e.strict=()=>e.clone({...e._zod.def,catchall:YGe()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=i=>es.extend(e,i),e.safeExtend=i=>es.safeExtend(e,i),e.merge=i=>es.merge(e,i),e.pick=i=>es.pick(e,i),e.omit=i=>es.omit(e,i),e.partial=(...i)=>es.partial(tHe,e,i[0]),e.required=(...i)=>es.required(rHe,e,i[0])});function rc(e,r){let i={type:"object",shape:e??{},...es.normalizeParams(r)};return new GEe(i)}function VRr(e,r){return new GEe({type:"object",shape:e,catchall:YGe(),...es.normalizeParams(r)})}function cv(e,r){return new GEe({type:"object",shape:e,catchall:ig(),...es.normalizeParams(r)})}var HEe=ni("ZodUnion",(e,r)=>{Wle.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>bGe(e,i,s,l),e.options=r.options});function wh(e,r){return new HEe({type:"union",options:e,...es.normalizeParams(r)})}var wNt=ni("ZodXor",(e,r)=>{HEe.init(e,r),iWe.init(e,r),e._zod.processJSONSchema=(i,s,l)=>bGe(e,i,s,l),e.options=r.options});function WRr(e,r){return new wNt({type:"union",options:e,inclusive:!1,...es.normalizeParams(r)})}var INt=ni("ZodDiscriminatedUnion",(e,r)=>{HEe.init(e,r),oWe.init(e,r)});function KEe(e,r,i){return new INt({type:"union",options:r,discriminator:e,...es.normalizeParams(i)})}var PNt=ni("ZodIntersection",(e,r)=>{aWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>V3t(e,i,s,l)});function hue(e,r){return new PNt({type:"intersection",left:e,right:r})}var NNt=ni("ZodTuple",(e,r)=>{fEe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>W3t(e,i,s,l),e.rest=i=>e.clone({...e._zod.def,rest:i})});function ONt(e,r,i){let s=r instanceof Ip,l=s?i:r,d=s?r:null;return new NNt({type:"tuple",items:e,rest:d,...es.normalizeParams(l)})}var QEe=ni("ZodRecord",(e,r)=>{sWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>G3t(e,i,s,l),e.keyType=r.keyType,e.valueType=r.valueType});function Eg(e,r,i){return new QEe({type:"record",keyType:e,valueType:r,...es.normalizeParams(i)})}function GRr(e,r,i){let s=I2(e);return s._zod.values=void 0,new QEe({type:"record",keyType:s,valueType:r,...es.normalizeParams(i)})}function HRr(e,r,i){return new QEe({type:"record",keyType:e,valueType:r,mode:"loose",...es.normalizeParams(i)})}var FNt=ni("ZodMap",(e,r)=>{cWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>U3t(e,i,s,l),e.keyType=r.keyType,e.valueType=r.valueType,e.min=(...i)=>e.check(s5(...i)),e.nonempty=i=>e.check(s5(1,i)),e.max=(...i)=>e.check(OJ(...i)),e.size=(...i)=>e.check(IX(...i))});function KRr(e,r,i){return new FNt({type:"map",keyType:e,valueType:r,...es.normalizeParams(i)})}var RNt=ni("ZodSet",(e,r)=>{lWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>z3t(e,i,s,l),e.min=(...i)=>e.check(s5(...i)),e.nonempty=i=>e.check(s5(1,i)),e.max=(...i)=>e.check(OJ(...i)),e.size=(...i)=>e.check(IX(...i))});function QRr(e,r){return new RNt({type:"set",valueType:e,...es.normalizeParams(r)})}var lue=ni("ZodEnum",(e,r)=>{uWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(s,l,d)=>N3t(e,s,l,d),e.enum=r.entries,e.options=Object.values(r.entries);let i=new Set(Object.keys(r.entries));e.extract=(s,l)=>{let d={};for(let h of s)if(i.has(h))d[h]=r.entries[h];else throw new Error(`Key ${h} not found in enum`);return new lue({...r,checks:[],...es.normalizeParams(l),entries:d})},e.exclude=(s,l)=>{let d={...r.entries};for(let h of s)if(i.has(h))delete d[h];else throw new Error(`Key ${h} not found in enum`);return new lue({...r,checks:[],...es.normalizeParams(l),entries:d})}});function gT(e,r){let i=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new lue({type:"enum",entries:i,...es.normalizeParams(r)})}function ZRr(e,r){return new lue({type:"enum",entries:e,...es.normalizeParams(r)})}var LNt=ni("ZodLiteral",(e,r)=>{pWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>O3t(e,i,s,l),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function Dl(e,r){return new LNt({type:"literal",values:Array.isArray(e)?e:[e],...es.normalizeParams(r)})}var MNt=ni("ZodFile",(e,r)=>{_We.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>L3t(e,i,s,l),e.min=(i,s)=>e.check(s5(i,s)),e.max=(i,s)=>e.check(OJ(i,s)),e.mime=(i,s)=>e.check(rue(Array.isArray(i)?i:[i],s))});function XRr(e){return fGe(MNt,e)}var jNt=ni("ZodTransform",(e,r)=>{dWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>$3t(e,i,s,l),e._zod.parse=(i,s)=>{if(s.direction==="backward")throw new AJ(e.constructor.name);i.addIssue=d=>{if(typeof d=="string")i.issues.push(es.issue(d,i.value,r));else{let h=d;h.fatal&&(h.continue=!1),h.code??(h.code="custom"),h.input??(h.input=i.value),h.inst??(h.inst=e),i.issues.push(es.issue(h))}};let l=r.transform(i.value,i);return l instanceof Promise?l.then(d=>(i.value=d,i)):(i.value=l,i)}});function eHe(e){return new jNt({type:"transform",transform:e})}var tHe=ni("ZodOptional",(e,r)=>{mEe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>xGe(e,i,s,l),e.unwrap=()=>e._zod.def.innerType});function oy(e){return new tHe({type:"optional",innerType:e})}var BNt=ni("ZodExactOptional",(e,r)=>{fWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>xGe(e,i,s,l),e.unwrap=()=>e._zod.def.innerType});function $Nt(e){return new BNt({type:"optional",innerType:e})}var UNt=ni("ZodNullable",(e,r)=>{mWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>H3t(e,i,s,l),e.unwrap=()=>e._zod.def.innerType});function qEe(e){return new UNt({type:"nullable",innerType:e})}function YRr(e){return oy(qEe(e))}var zNt=ni("ZodDefault",(e,r)=>{hWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>Q3t(e,i,s,l),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function qNt(e,r){return new zNt({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():es.shallowClone(r)}})}var JNt=ni("ZodPrefault",(e,r)=>{gWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>Z3t(e,i,s,l),e.unwrap=()=>e._zod.def.innerType});function VNt(e,r){return new JNt({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():es.shallowClone(r)}})}var rHe=ni("ZodNonOptional",(e,r)=>{yWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>K3t(e,i,s,l),e.unwrap=()=>e._zod.def.innerType});function WNt(e,r){return new rHe({type:"nonoptional",innerType:e,...es.normalizeParams(r)})}var GNt=ni("ZodSuccess",(e,r)=>{vWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>M3t(e,i,s,l),e.unwrap=()=>e._zod.def.innerType});function eLr(e){return new GNt({type:"success",innerType:e})}var HNt=ni("ZodCatch",(e,r)=>{SWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>X3t(e,i,s,l),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function KNt(e,r){return new HNt({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}var QNt=ni("ZodNaN",(e,r)=>{bWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>F3t(e,i,s,l)});function tLr(e){return cGe(QNt,e)}var nHe=ni("ZodPipe",(e,r)=>{xWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>Y3t(e,i,s,l),e.in=r.in,e.out=r.out});function JEe(e,r){return new nHe({type:"pipe",in:e,out:r})}var iHe=ni("ZodCodec",(e,r)=>{nHe.init(e,r),Gle.init(e,r)});function rLr(e,r,i){return new iHe({type:"pipe",in:e,out:r,transform:i.decode,reverseTransform:i.encode})}var ZNt=ni("ZodReadonly",(e,r)=>{TWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>eNt(e,i,s,l),e.unwrap=()=>e._zod.def.innerType});function XNt(e){return new ZNt({type:"readonly",innerType:e})}var YNt=ni("ZodTemplateLiteral",(e,r)=>{EWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>R3t(e,i,s,l)});function nLr(e,r){return new YNt({type:"template_literal",parts:e,...es.normalizeParams(r)})}var e8t=ni("ZodLazy",(e,r)=>{DWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>rNt(e,i,s,l),e.unwrap=()=>e._zod.def.getter()});function t8t(e){return new e8t({type:"lazy",getter:e})}var r8t=ni("ZodPromise",(e,r)=>{CWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>tNt(e,i,s,l),e.unwrap=()=>e._zod.def.innerType});function iLr(e){return new r8t({type:"promise",innerType:e})}var n8t=ni("ZodFunction",(e,r)=>{kWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>B3t(e,i,s,l)});function oLr(e){return new n8t({type:"function",input:Array.isArray(e?.input)?ONt(e?.input):e?.input??Ms(ig()),output:e?.output??ig()})}var ZEe=ni("ZodCustom",(e,r)=>{AWe.init(e,r),b_.init(e,r),e._zod.processJSONSchema=(i,s,l)=>j3t(e,i,s,l)});function aLr(e){let r=new rg({check:"custom"});return r._zod.check=e,r}function oHe(e,r){return mGe(ZEe,e??(()=>!0),r)}function i8t(e,r={}){return hGe(ZEe,e,r)}function o8t(e){return gGe(e)}var sLr=yGe,cLr=vGe;function lLr(e,r={}){let i=new ZEe({type:"custom",check:"custom",fn:s=>s instanceof e,abort:!0,...es.normalizeParams(r)});return i._zod.bag.Class=e,i._zod.check=s=>{s.value instanceof e||s.issues.push({code:"invalid_type",expected:e.name,input:s.value,inst:i,path:[...i._zod.def.path??[]]})},i}var uLr=(...e)=>SGe({Codec:iHe,Boolean:due,String:uue},...e);function pLr(e){let r=t8t(()=>wh([An(e),yf(),oh(),mue(),Ms(r),Eg(An(),r)]));return r}function XEe(e,r){return JEe(eHe(e),r)}var s8t={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};var a8t;a8t||(a8t={});var S5n={...cue,...UEe,iso:FJ};var YEe={};J7(YEe,{bigint:()=>mLr,boolean:()=>fLr,date:()=>hLr,number:()=>dLr,string:()=>_Lr});function _Lr(e){return FWe(uue,e)}function dLr(e){return UWe(_ue,e)}function fLr(e){return HWe(due,e)}function mLr(e){return QWe(fue,e)}function hLr(e){return sGe(WEe,e)}Gv(wWe());var MX="2025-11-25";var l8t=[MX,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],mj="io.modelcontextprotocol/related-task",tke="2.0",Zb=oHe(e=>e!==null&&(typeof e=="object"||typeof e=="function")),u8t=wh([An(),yf().int()]),p8t=An(),B5n=cv({ttl:wh([yf(),mue()]).optional(),pollInterval:yf().optional()}),yLr=rc({ttl:yf().optional()}),vLr=rc({taskId:An()}),aHe=cv({progressToken:u8t.optional(),[mj]:vLr.optional()}),yD=rc({_meta:aHe.optional()}),yue=yD.extend({task:yLr.optional()}),_8t=e=>yue.safeParse(e).success,Xb=rc({method:An(),params:yD.loose().optional()}),qw=rc({_meta:aHe.optional()}),Jw=rc({method:An(),params:qw.loose().optional()}),Yb=cv({_meta:aHe.optional()}),rke=wh([An(),yf().int()]),d8t=rc({jsonrpc:Dl(tke),id:rke,...Xb.shape}).strict(),vue=e=>d8t.safeParse(e).success,f8t=rc({jsonrpc:Dl(tke),...Jw.shape}).strict(),m8t=e=>f8t.safeParse(e).success,sHe=rc({jsonrpc:Dl(tke),id:rke,result:Yb}).strict(),RJ=e=>sHe.safeParse(e).success;var yp;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(yp||(yp={}));var cHe=rc({jsonrpc:Dl(tke),id:rke.optional(),error:rc({code:yf().int(),message:An(),data:ig().optional()})}).strict();var h8t=e=>cHe.safeParse(e).success;var hj=wh([d8t,f8t,sHe,cHe]),$5n=wh([sHe,cHe]),LJ=Yb.strict(),SLr=qw.extend({requestId:rke.optional(),reason:An().optional()}),nke=Jw.extend({method:Dl("notifications/cancelled"),params:SLr}),bLr=rc({src:An(),mimeType:An().optional(),sizes:Ms(An()).optional(),theme:gT(["light","dark"]).optional()}),Sue=rc({icons:Ms(bLr).optional()}),LX=rc({name:An(),title:An().optional()}),g8t=LX.extend({...LX.shape,...Sue.shape,version:An(),websiteUrl:An().optional(),description:An().optional()}),xLr=hue(rc({applyDefaults:oh().optional()}),Eg(An(),ig())),TLr=XEe(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,hue(rc({form:xLr.optional(),url:Zb.optional()}),Eg(An(),ig()).optional())),ELr=cv({list:Zb.optional(),cancel:Zb.optional(),requests:cv({sampling:cv({createMessage:Zb.optional()}).optional(),elicitation:cv({create:Zb.optional()}).optional()}).optional()}),kLr=cv({list:Zb.optional(),cancel:Zb.optional(),requests:cv({tools:cv({call:Zb.optional()}).optional()}).optional()}),CLr=rc({experimental:Eg(An(),Zb).optional(),sampling:rc({context:Zb.optional(),tools:Zb.optional()}).optional(),elicitation:TLr.optional(),roots:rc({listChanged:oh().optional()}).optional(),tasks:ELr.optional()}),DLr=yD.extend({protocolVersion:An(),capabilities:CLr,clientInfo:g8t}),ALr=Xb.extend({method:Dl("initialize"),params:DLr});var wLr=rc({experimental:Eg(An(),Zb).optional(),logging:Zb.optional(),completions:Zb.optional(),prompts:rc({listChanged:oh().optional()}).optional(),resources:rc({subscribe:oh().optional(),listChanged:oh().optional()}).optional(),tools:rc({listChanged:oh().optional()}).optional(),tasks:kLr.optional()}),lHe=Yb.extend({protocolVersion:An(),capabilities:wLr,serverInfo:g8t,instructions:An().optional()}),y8t=Jw.extend({method:Dl("notifications/initialized"),params:qw.optional()}),v8t=e=>y8t.safeParse(e).success,ike=Xb.extend({method:Dl("ping"),params:yD.optional()}),ILr=rc({progress:yf(),total:oy(yf()),message:oy(An())}),PLr=rc({...qw.shape,...ILr.shape,progressToken:u8t}),oke=Jw.extend({method:Dl("notifications/progress"),params:PLr}),NLr=yD.extend({cursor:p8t.optional()}),bue=Xb.extend({params:NLr.optional()}),xue=Yb.extend({nextCursor:p8t.optional()}),OLr=gT(["working","input_required","completed","failed","cancelled"]),Tue=rc({taskId:An(),status:OLr,ttl:wh([yf(),mue()]),createdAt:An(),lastUpdatedAt:An(),pollInterval:oy(yf()),statusMessage:oy(An())}),MJ=Yb.extend({task:Tue}),FLr=qw.merge(Tue),Eue=Jw.extend({method:Dl("notifications/tasks/status"),params:FLr}),ake=Xb.extend({method:Dl("tasks/get"),params:yD.extend({taskId:An()})}),ske=Yb.merge(Tue),cke=Xb.extend({method:Dl("tasks/result"),params:yD.extend({taskId:An()})}),U5n=Yb.loose(),lke=bue.extend({method:Dl("tasks/list")}),uke=xue.extend({tasks:Ms(Tue)}),pke=Xb.extend({method:Dl("tasks/cancel"),params:yD.extend({taskId:An()})}),S8t=Yb.merge(Tue),b8t=rc({uri:An(),mimeType:oy(An()),_meta:Eg(An(),ig()).optional()}),x8t=b8t.extend({text:An()}),uHe=An().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),T8t=b8t.extend({blob:uHe}),kue=gT(["user","assistant"]),jX=rc({audience:Ms(kue).optional(),priority:yf().min(0).max(1).optional(),lastModified:FJ.datetime({offset:!0}).optional()}),E8t=rc({...LX.shape,...Sue.shape,uri:An(),description:oy(An()),mimeType:oy(An()),annotations:jX.optional(),_meta:oy(cv({}))}),RLr=rc({...LX.shape,...Sue.shape,uriTemplate:An(),description:oy(An()),mimeType:oy(An()),annotations:jX.optional(),_meta:oy(cv({}))}),LLr=bue.extend({method:Dl("resources/list")}),pHe=xue.extend({resources:Ms(E8t)}),MLr=bue.extend({method:Dl("resources/templates/list")}),_He=xue.extend({resourceTemplates:Ms(RLr)}),dHe=yD.extend({uri:An()}),jLr=dHe,BLr=Xb.extend({method:Dl("resources/read"),params:jLr}),fHe=Yb.extend({contents:Ms(wh([x8t,T8t]))}),mHe=Jw.extend({method:Dl("notifications/resources/list_changed"),params:qw.optional()}),$Lr=dHe,ULr=Xb.extend({method:Dl("resources/subscribe"),params:$Lr}),zLr=dHe,qLr=Xb.extend({method:Dl("resources/unsubscribe"),params:zLr}),JLr=qw.extend({uri:An()}),VLr=Jw.extend({method:Dl("notifications/resources/updated"),params:JLr}),WLr=rc({name:An(),description:oy(An()),required:oy(oh())}),GLr=rc({...LX.shape,...Sue.shape,description:oy(An()),arguments:oy(Ms(WLr)),_meta:oy(cv({}))}),HLr=bue.extend({method:Dl("prompts/list")}),hHe=xue.extend({prompts:Ms(GLr)}),KLr=yD.extend({name:An(),arguments:Eg(An(),An()).optional()}),QLr=Xb.extend({method:Dl("prompts/get"),params:KLr}),gHe=rc({type:Dl("text"),text:An(),annotations:jX.optional(),_meta:Eg(An(),ig()).optional()}),yHe=rc({type:Dl("image"),data:uHe,mimeType:An(),annotations:jX.optional(),_meta:Eg(An(),ig()).optional()}),vHe=rc({type:Dl("audio"),data:uHe,mimeType:An(),annotations:jX.optional(),_meta:Eg(An(),ig()).optional()}),ZLr=rc({type:Dl("tool_use"),name:An(),id:An(),input:Eg(An(),ig()),_meta:Eg(An(),ig()).optional()}),XLr=rc({type:Dl("resource"),resource:wh([x8t,T8t]),annotations:jX.optional(),_meta:Eg(An(),ig()).optional()}),YLr=E8t.extend({type:Dl("resource_link")}),SHe=wh([gHe,yHe,vHe,YLr,XLr]),eMr=rc({role:kue,content:SHe}),bHe=Yb.extend({description:An().optional(),messages:Ms(eMr)}),xHe=Jw.extend({method:Dl("notifications/prompts/list_changed"),params:qw.optional()}),tMr=rc({title:An().optional(),readOnlyHint:oh().optional(),destructiveHint:oh().optional(),idempotentHint:oh().optional(),openWorldHint:oh().optional()}),rMr=rc({taskSupport:gT(["required","optional","forbidden"]).optional()}),k8t=rc({...LX.shape,...Sue.shape,description:An().optional(),inputSchema:rc({type:Dl("object"),properties:Eg(An(),Zb).optional(),required:Ms(An()).optional()}).catchall(ig()),outputSchema:rc({type:Dl("object"),properties:Eg(An(),Zb).optional(),required:Ms(An()).optional()}).catchall(ig()).optional(),annotations:tMr.optional(),execution:rMr.optional(),_meta:Eg(An(),ig()).optional()}),nMr=bue.extend({method:Dl("tools/list")}),THe=xue.extend({tools:Ms(k8t)}),BX=Yb.extend({content:Ms(SHe).default([]),structuredContent:Eg(An(),ig()).optional(),isError:oh().optional()}),z5n=BX.or(Yb.extend({toolResult:ig()})),iMr=yue.extend({name:An(),arguments:Eg(An(),ig()).optional()}),oMr=Xb.extend({method:Dl("tools/call"),params:iMr}),EHe=Jw.extend({method:Dl("notifications/tools/list_changed"),params:qw.optional()}),C8t=rc({autoRefresh:oh().default(!0),debounceMs:yf().int().nonnegative().default(300)}),D8t=gT(["debug","info","notice","warning","error","critical","alert","emergency"]),aMr=yD.extend({level:D8t}),sMr=Xb.extend({method:Dl("logging/setLevel"),params:aMr}),cMr=qw.extend({level:D8t,logger:An().optional(),data:ig()}),lMr=Jw.extend({method:Dl("notifications/message"),params:cMr}),uMr=rc({name:An().optional()}),pMr=rc({hints:Ms(uMr).optional(),costPriority:yf().min(0).max(1).optional(),speedPriority:yf().min(0).max(1).optional(),intelligencePriority:yf().min(0).max(1).optional()}),_Mr=rc({mode:gT(["auto","required","none"]).optional()}),dMr=rc({type:Dl("tool_result"),toolUseId:An().describe("The unique identifier for the corresponding tool call."),content:Ms(SHe).default([]),structuredContent:rc({}).loose().optional(),isError:oh().optional(),_meta:Eg(An(),ig()).optional()}),fMr=KEe("type",[gHe,yHe,vHe]),eke=KEe("type",[gHe,yHe,vHe,ZLr,dMr]),mMr=rc({role:kue,content:wh([eke,Ms(eke)]),_meta:Eg(An(),ig()).optional()}),hMr=yue.extend({messages:Ms(mMr),modelPreferences:pMr.optional(),systemPrompt:An().optional(),includeContext:gT(["none","thisServer","allServers"]).optional(),temperature:yf().optional(),maxTokens:yf().int(),stopSequences:Ms(An()).optional(),metadata:Zb.optional(),tools:Ms(k8t).optional(),toolChoice:_Mr.optional()}),kHe=Xb.extend({method:Dl("sampling/createMessage"),params:hMr}),CHe=Yb.extend({model:An(),stopReason:oy(gT(["endTurn","stopSequence","maxTokens"]).or(An())),role:kue,content:fMr}),DHe=Yb.extend({model:An(),stopReason:oy(gT(["endTurn","stopSequence","maxTokens","toolUse"]).or(An())),role:kue,content:wh([eke,Ms(eke)])}),gMr=rc({type:Dl("boolean"),title:An().optional(),description:An().optional(),default:oh().optional()}),yMr=rc({type:Dl("string"),title:An().optional(),description:An().optional(),minLength:yf().optional(),maxLength:yf().optional(),format:gT(["email","uri","date","date-time"]).optional(),default:An().optional()}),vMr=rc({type:gT(["number","integer"]),title:An().optional(),description:An().optional(),minimum:yf().optional(),maximum:yf().optional(),default:yf().optional()}),SMr=rc({type:Dl("string"),title:An().optional(),description:An().optional(),enum:Ms(An()),default:An().optional()}),bMr=rc({type:Dl("string"),title:An().optional(),description:An().optional(),oneOf:Ms(rc({const:An(),title:An()})),default:An().optional()}),xMr=rc({type:Dl("string"),title:An().optional(),description:An().optional(),enum:Ms(An()),enumNames:Ms(An()).optional(),default:An().optional()}),TMr=wh([SMr,bMr]),EMr=rc({type:Dl("array"),title:An().optional(),description:An().optional(),minItems:yf().optional(),maxItems:yf().optional(),items:rc({type:Dl("string"),enum:Ms(An())}),default:Ms(An()).optional()}),kMr=rc({type:Dl("array"),title:An().optional(),description:An().optional(),minItems:yf().optional(),maxItems:yf().optional(),items:rc({anyOf:Ms(rc({const:An(),title:An()}))}),default:Ms(An()).optional()}),CMr=wh([EMr,kMr]),DMr=wh([xMr,TMr,CMr]),AMr=wh([DMr,gMr,yMr,vMr]),wMr=yue.extend({mode:Dl("form").optional(),message:An(),requestedSchema:rc({type:Dl("object"),properties:Eg(An(),AMr),required:Ms(An()).optional()})}),IMr=yue.extend({mode:Dl("url"),message:An(),elicitationId:An(),url:An().url()}),PMr=wh([wMr,IMr]),Cue=Xb.extend({method:Dl("elicitation/create"),params:PMr}),NMr=qw.extend({elicitationId:An()}),OMr=Jw.extend({method:Dl("notifications/elicitation/complete"),params:NMr}),AHe=Yb.extend({action:gT(["accept","decline","cancel"]),content:XEe(e=>e===null?void 0:e,Eg(An(),wh([An(),yf(),oh(),Ms(An())])).optional())}),FMr=rc({type:Dl("ref/resource"),uri:An()});var RMr=rc({type:Dl("ref/prompt"),name:An()}),LMr=yD.extend({ref:wh([RMr,FMr]),argument:rc({name:An(),value:An()}),context:rc({arguments:Eg(An(),An()).optional()}).optional()}),MMr=Xb.extend({method:Dl("completion/complete"),params:LMr});var wHe=Yb.extend({completion:cv({values:Ms(An()).max(100),total:oy(yf().int()),hasMore:oy(oh())})}),jMr=rc({uri:An().startsWith("file://"),name:An().optional(),_meta:Eg(An(),ig()).optional()}),BMr=Xb.extend({method:Dl("roots/list"),params:yD.optional()}),$Mr=Yb.extend({roots:Ms(jMr)}),UMr=Jw.extend({method:Dl("notifications/roots/list_changed"),params:qw.optional()}),q5n=wh([ike,ALr,MMr,sMr,QLr,HLr,LLr,MLr,BLr,ULr,qLr,oMr,nMr,ake,cke,lke,pke]),J5n=wh([nke,oke,y8t,UMr,Eue]),V5n=wh([LJ,CHe,DHe,AHe,$Mr,ske,uke,MJ]),W5n=wh([ike,kHe,Cue,BMr,ake,cke,lke,pke]),G5n=wh([nke,oke,lMr,VLr,mHe,EHe,xHe,Eue,OMr]),H5n=wh([LJ,lHe,wHe,bHe,hHe,pHe,_He,fHe,BX,THe,ske,uke,MJ]),vu=class e extends Error{constructor(r,i,s){super(`MCP error ${r}: ${i}`),this.code=r,this.data=s,this.name="McpError"}static fromError(r,i,s){if(r===yp.UrlElicitationRequired&&s){let l=s;if(l.elicitations)return new gue(l.elicitations,i)}return new e(r,i,s)}},gue=class extends vu{constructor(r,i=`URL elicitation${r.length>1?"s":""} required`){super(yp.UrlElicitationRequired,i,{elicitations:r})}get elicitations(){return this.data?.elicitations??[]}};function gj(e){return e==="completed"||e==="failed"||e==="cancelled"}var A9n=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function IHe(e){let i=$Ee(e)?.method;if(!i)throw new Error("Schema is missing a method literal");let s=aNt(i);if(typeof s!="string")throw new Error("Schema method literal must be a string");return s}function PHe(e,r){let i=k6(e,r);if(!i.success)throw i.error;return i.data}var GMr=6e4,_ke=class{constructor(r){this._options=r,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(nke,i=>{this._oncancel(i)}),this.setNotificationHandler(oke,i=>{this._onprogress(i)}),this.setRequestHandler(ike,i=>({})),this._taskStore=r?.taskStore,this._taskMessageQueue=r?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(ake,async(i,s)=>{let l=await this._taskStore.getTask(i.params.taskId,s.sessionId);if(!l)throw new vu(yp.InvalidParams,"Failed to retrieve task: Task not found");return{...l}}),this.setRequestHandler(cke,async(i,s)=>{let l=async()=>{let d=i.params.taskId;if(this._taskMessageQueue){let S;for(;S=await this._taskMessageQueue.dequeue(d,s.sessionId);){if(S.type==="response"||S.type==="error"){let b=S.message,A=b.id,L=this._requestResolvers.get(A);if(L)if(this._requestResolvers.delete(A),S.type==="response")L(b);else{let V=b,j=new vu(V.error.code,V.error.message,V.error.data);L(j)}else{let V=S.type==="response"?"Response":"Error";this._onerror(new Error(`${V} handler missing for request ${A}`))}continue}await this._transport?.send(S.message,{relatedRequestId:s.requestId})}}let h=await this._taskStore.getTask(d,s.sessionId);if(!h)throw new vu(yp.InvalidParams,`Task not found: ${d}`);if(!gj(h.status))return await this._waitForTaskUpdate(d,s.signal),await l();if(gj(h.status)){let S=await this._taskStore.getTaskResult(d,s.sessionId);return this._clearTaskQueue(d),{...S,_meta:{...S._meta,[mj]:{taskId:d}}}}return await l()};return await l()}),this.setRequestHandler(lke,async(i,s)=>{try{let{tasks:l,nextCursor:d}=await this._taskStore.listTasks(i.params?.cursor,s.sessionId);return{tasks:l,nextCursor:d,_meta:{}}}catch(l){throw new vu(yp.InvalidParams,`Failed to list tasks: ${l instanceof Error?l.message:String(l)}`)}}),this.setRequestHandler(pke,async(i,s)=>{try{let l=await this._taskStore.getTask(i.params.taskId,s.sessionId);if(!l)throw new vu(yp.InvalidParams,`Task not found: ${i.params.taskId}`);if(gj(l.status))throw new vu(yp.InvalidParams,`Cannot cancel task in terminal status: ${l.status}`);await this._taskStore.updateTaskStatus(i.params.taskId,"cancelled","Client cancelled task execution.",s.sessionId),this._clearTaskQueue(i.params.taskId);let d=await this._taskStore.getTask(i.params.taskId,s.sessionId);if(!d)throw new vu(yp.InvalidParams,`Task not found after cancellation: ${i.params.taskId}`);return{_meta:{},...d}}catch(l){throw l instanceof vu?l:new vu(yp.InvalidRequest,`Failed to cancel task: ${l instanceof Error?l.message:String(l)}`)}}))}async _oncancel(r){if(!r.params.requestId)return;this._requestHandlerAbortControllers.get(r.params.requestId)?.abort(r.params.reason)}_setupTimeout(r,i,s,l,d=!1){this._timeoutInfo.set(r,{timeoutId:setTimeout(l,i),startTime:Date.now(),timeout:i,maxTotalTimeout:s,resetTimeoutOnProgress:d,onTimeout:l})}_resetTimeout(r){let i=this._timeoutInfo.get(r);if(!i)return!1;let s=Date.now()-i.startTime;if(i.maxTotalTimeout&&s>=i.maxTotalTimeout)throw this._timeoutInfo.delete(r),vu.fromError(yp.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:i.maxTotalTimeout,totalElapsed:s});return clearTimeout(i.timeoutId),i.timeoutId=setTimeout(i.onTimeout,i.timeout),!0}_cleanupTimeout(r){let i=this._timeoutInfo.get(r);i&&(clearTimeout(i.timeoutId),this._timeoutInfo.delete(r))}async connect(r){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=r;let i=this.transport?.onclose;this._transport.onclose=()=>{i?.(),this._onclose()};let s=this.transport?.onerror;this._transport.onerror=d=>{s?.(d),this._onerror(d)};let l=this._transport?.onmessage;this._transport.onmessage=(d,h)=>{l?.(d,h),RJ(d)||h8t(d)?this._onresponse(d):vue(d)?this._onrequest(d,h):m8t(d)?this._onnotification(d):this._onerror(new Error(`Unknown message type: ${JSON.stringify(d)}`))},await this._transport.start()}_onclose(){let r=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let s of this._requestHandlerAbortControllers.values())s.abort();this._requestHandlerAbortControllers.clear();let i=vu.fromError(yp.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let s of r.values())s(i)}_onerror(r){this.onerror?.(r)}_onnotification(r){let i=this._notificationHandlers.get(r.method)??this.fallbackNotificationHandler;i!==void 0&&Promise.resolve().then(()=>i(r)).catch(s=>this._onerror(new Error(`Uncaught error in notification handler: ${s}`)))}_onrequest(r,i){let s=this._requestHandlers.get(r.method)??this.fallbackRequestHandler,l=this._transport,d=r.params?._meta?.[mj]?.taskId;if(s===void 0){let L={jsonrpc:"2.0",id:r.id,error:{code:yp.MethodNotFound,message:"Method not found"}};d&&this._taskMessageQueue?this._enqueueTaskMessage(d,{type:"error",message:L,timestamp:Date.now()},l?.sessionId).catch(V=>this._onerror(new Error(`Failed to enqueue error response: ${V}`))):l?.send(L).catch(V=>this._onerror(new Error(`Failed to send an error response: ${V}`)));return}let h=new AbortController;this._requestHandlerAbortControllers.set(r.id,h);let S=_8t(r.params)?r.params.task:void 0,b=this._taskStore?this.requestTaskStore(r,l?.sessionId):void 0,A={signal:h.signal,sessionId:l?.sessionId,_meta:r.params?._meta,sendNotification:async L=>{if(h.signal.aborted)return;let V={relatedRequestId:r.id};d&&(V.relatedTask={taskId:d}),await this.notification(L,V)},sendRequest:async(L,V,j)=>{if(h.signal.aborted)throw new vu(yp.ConnectionClosed,"Request was cancelled");let ie={...j,relatedRequestId:r.id};d&&!ie.relatedTask&&(ie.relatedTask={taskId:d});let te=ie.relatedTask?.taskId??d;return te&&b&&await b.updateTaskStatus(te,"input_required"),await this.request(L,V,ie)},authInfo:i?.authInfo,requestId:r.id,requestInfo:i?.requestInfo,taskId:d,taskStore:b,taskRequestedTtl:S?.ttl,closeSSEStream:i?.closeSSEStream,closeStandaloneSSEStream:i?.closeStandaloneSSEStream};Promise.resolve().then(()=>{S&&this.assertTaskHandlerCapability(r.method)}).then(()=>s(r,A)).then(async L=>{if(h.signal.aborted)return;let V={result:L,jsonrpc:"2.0",id:r.id};d&&this._taskMessageQueue?await this._enqueueTaskMessage(d,{type:"response",message:V,timestamp:Date.now()},l?.sessionId):await l?.send(V)},async L=>{if(h.signal.aborted)return;let V={jsonrpc:"2.0",id:r.id,error:{code:Number.isSafeInteger(L.code)?L.code:yp.InternalError,message:L.message??"Internal error",...L.data!==void 0&&{data:L.data}}};d&&this._taskMessageQueue?await this._enqueueTaskMessage(d,{type:"error",message:V,timestamp:Date.now()},l?.sessionId):await l?.send(V)}).catch(L=>this._onerror(new Error(`Failed to send response: ${L}`))).finally(()=>{this._requestHandlerAbortControllers.delete(r.id)})}_onprogress(r){let{progressToken:i,...s}=r.params,l=Number(i),d=this._progressHandlers.get(l);if(!d){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(r)}`));return}let h=this._responseHandlers.get(l),S=this._timeoutInfo.get(l);if(S&&h&&S.resetTimeoutOnProgress)try{this._resetTimeout(l)}catch(b){this._responseHandlers.delete(l),this._progressHandlers.delete(l),this._cleanupTimeout(l),h(b);return}d(s)}_onresponse(r){let i=Number(r.id),s=this._requestResolvers.get(i);if(s){if(this._requestResolvers.delete(i),RJ(r))s(r);else{let h=new vu(r.error.code,r.error.message,r.error.data);s(h)}return}let l=this._responseHandlers.get(i);if(l===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(r)}`));return}this._responseHandlers.delete(i),this._cleanupTimeout(i);let d=!1;if(RJ(r)&&r.result&&typeof r.result=="object"){let h=r.result;if(h.task&&typeof h.task=="object"){let S=h.task;typeof S.taskId=="string"&&(d=!0,this._taskProgressTokens.set(S.taskId,i))}}if(d||this._progressHandlers.delete(i),RJ(r))l(r);else{let h=vu.fromError(r.error.code,r.error.message,r.error.data);l(h)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(r,i,s){let{task:l}=s??{};if(!l){try{yield{type:"result",result:await this.request(r,i,s)}}catch(h){yield{type:"error",error:h instanceof vu?h:new vu(yp.InternalError,String(h))}}return}let d;try{let h=await this.request(r,MJ,s);if(h.task)d=h.task.taskId,yield{type:"taskCreated",task:h.task};else throw new vu(yp.InternalError,"Task creation did not return a task");for(;;){let S=await this.getTask({taskId:d},s);if(yield{type:"taskStatus",task:S},gj(S.status)){S.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:d},i,s)}:S.status==="failed"?yield{type:"error",error:new vu(yp.InternalError,`Task ${d} failed`)}:S.status==="cancelled"&&(yield{type:"error",error:new vu(yp.InternalError,`Task ${d} was cancelled`)});return}if(S.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:d},i,s)};return}let b=S.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(A=>setTimeout(A,b)),s?.signal?.throwIfAborted()}}catch(h){yield{type:"error",error:h instanceof vu?h:new vu(yp.InternalError,String(h))}}}request(r,i,s){let{relatedRequestId:l,resumptionToken:d,onresumptiontoken:h,task:S,relatedTask:b}=s??{};return new Promise((A,L)=>{let V=pt=>{L(pt)};if(!this._transport){V(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(r.method),S&&this.assertTaskCapability(r.method)}catch(pt){V(pt);return}s?.signal?.throwIfAborted();let j=this._requestMessageId++,ie={...r,jsonrpc:"2.0",id:j};s?.onprogress&&(this._progressHandlers.set(j,s.onprogress),ie.params={...r.params,_meta:{...r.params?._meta||{},progressToken:j}}),S&&(ie.params={...ie.params,task:S}),b&&(ie.params={...ie.params,_meta:{...ie.params?._meta||{},[mj]:b}});let te=pt=>{this._responseHandlers.delete(j),this._progressHandlers.delete(j),this._cleanupTimeout(j),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:j,reason:String(pt)}},{relatedRequestId:l,resumptionToken:d,onresumptiontoken:h}).catch(xt=>this._onerror(new Error(`Failed to send cancellation: ${xt}`)));let $e=pt instanceof vu?pt:new vu(yp.RequestTimeout,String(pt));L($e)};this._responseHandlers.set(j,pt=>{if(!s?.signal?.aborted){if(pt instanceof Error)return L(pt);try{let $e=k6(i,pt.result);$e.success?A($e.data):L($e.error)}catch($e){L($e)}}}),s?.signal?.addEventListener("abort",()=>{te(s?.signal?.reason)});let X=s?.timeout??GMr,Re=()=>te(vu.fromError(yp.RequestTimeout,"Request timed out",{timeout:X}));this._setupTimeout(j,X,s?.maxTotalTimeout,Re,s?.resetTimeoutOnProgress??!1);let Je=b?.taskId;if(Je){let pt=$e=>{let xt=this._responseHandlers.get(j);xt?xt($e):this._onerror(new Error(`Response handler missing for side-channeled request ${j}`))};this._requestResolvers.set(j,pt),this._enqueueTaskMessage(Je,{type:"request",message:ie,timestamp:Date.now()}).catch($e=>{this._cleanupTimeout(j),L($e)})}else this._transport.send(ie,{relatedRequestId:l,resumptionToken:d,onresumptiontoken:h}).catch(pt=>{this._cleanupTimeout(j),L(pt)})})}async getTask(r,i){return this.request({method:"tasks/get",params:r},ske,i)}async getTaskResult(r,i,s){return this.request({method:"tasks/result",params:r},i,s)}async listTasks(r,i){return this.request({method:"tasks/list",params:r},uke,i)}async cancelTask(r,i){return this.request({method:"tasks/cancel",params:r},S8t,i)}async notification(r,i){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(r.method);let s=i?.relatedTask?.taskId;if(s){let S={...r,jsonrpc:"2.0",params:{...r.params,_meta:{...r.params?._meta||{},[mj]:i.relatedTask}}};await this._enqueueTaskMessage(s,{type:"notification",message:S,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(r.method)&&!r.params&&!i?.relatedRequestId&&!i?.relatedTask){if(this._pendingDebouncedNotifications.has(r.method))return;this._pendingDebouncedNotifications.add(r.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(r.method),!this._transport)return;let S={...r,jsonrpc:"2.0"};i?.relatedTask&&(S={...S,params:{...S.params,_meta:{...S.params?._meta||{},[mj]:i.relatedTask}}}),this._transport?.send(S,i).catch(b=>this._onerror(b))});return}let h={...r,jsonrpc:"2.0"};i?.relatedTask&&(h={...h,params:{...h.params,_meta:{...h.params?._meta||{},[mj]:i.relatedTask}}}),await this._transport.send(h,i)}setRequestHandler(r,i){let s=IHe(r);this.assertRequestHandlerCapability(s),this._requestHandlers.set(s,(l,d)=>{let h=PHe(r,l);return Promise.resolve(i(h,d))})}removeRequestHandler(r){this._requestHandlers.delete(r)}assertCanSetRequestHandler(r){if(this._requestHandlers.has(r))throw new Error(`A request handler for ${r} already exists, which would be overridden`)}setNotificationHandler(r,i){let s=IHe(r);this._notificationHandlers.set(s,l=>{let d=PHe(r,l);return Promise.resolve(i(d))})}removeNotificationHandler(r){this._notificationHandlers.delete(r)}_cleanupTaskProgressHandler(r){let i=this._taskProgressTokens.get(r);i!==void 0&&(this._progressHandlers.delete(i),this._taskProgressTokens.delete(r))}async _enqueueTaskMessage(r,i,s){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let l=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(r,i,s,l)}async _clearTaskQueue(r,i){if(this._taskMessageQueue){let s=await this._taskMessageQueue.dequeueAll(r,i);for(let l of s)if(l.type==="request"&&vue(l.message)){let d=l.message.id,h=this._requestResolvers.get(d);h?(h(new vu(yp.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(d)):this._onerror(new Error(`Resolver missing for request ${d} during task ${r} cleanup`))}}}async _waitForTaskUpdate(r,i){let s=this._options?.defaultTaskPollInterval??1e3;try{let l=await this._taskStore?.getTask(r);l?.pollInterval&&(s=l.pollInterval)}catch{}return new Promise((l,d)=>{if(i.aborted){d(new vu(yp.InvalidRequest,"Request cancelled"));return}let h=setTimeout(l,s);i.addEventListener("abort",()=>{clearTimeout(h),d(new vu(yp.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(r,i){let s=this._taskStore;if(!s)throw new Error("No task store configured");return{createTask:async l=>{if(!r)throw new Error("No request provided");return await s.createTask(l,r.id,{method:r.method,params:r.params},i)},getTask:async l=>{let d=await s.getTask(l,i);if(!d)throw new vu(yp.InvalidParams,"Failed to retrieve task: Task not found");return d},storeTaskResult:async(l,d,h)=>{await s.storeTaskResult(l,d,h,i);let S=await s.getTask(l,i);if(S){let b=Eue.parse({method:"notifications/tasks/status",params:S});await this.notification(b),gj(S.status)&&this._cleanupTaskProgressHandler(l)}},getTaskResult:l=>s.getTaskResult(l,i),updateTaskStatus:async(l,d,h)=>{let S=await s.getTask(l,i);if(!S)throw new vu(yp.InvalidParams,`Task "${l}" not found - it may have been cleaned up`);if(gj(S.status))throw new vu(yp.InvalidParams,`Cannot update task "${l}" from terminal status "${S.status}" to "${d}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await s.updateTaskStatus(l,d,h,i);let b=await s.getTask(l,i);if(b){let A=Eue.parse({method:"notifications/tasks/status",params:b});await this.notification(A),gj(b.status)&&this._cleanupTaskProgressHandler(l)}},listTasks:l=>s.listTasks(l,i)}}};function A8t(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function w8t(e,r){let i={...e};for(let s in r){let l=s,d=r[l];if(d===void 0)continue;let h=i[l];A8t(h)&&A8t(d)?i[l]={...h,...d}:i[l]=d}return i}var G8t=fJ(FHe(),1),H8t=fJ(W8t(),1);function kjr(){let e=new G8t.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,H8t.default)(e),e}var mke=class{constructor(r){this._ajv=r??kjr()}getValidator(r){let i="$id"in r&&typeof r.$id=="string"?this._ajv.getSchema(r.$id)??this._ajv.compile(r):this._ajv.compile(r);return s=>i(s)?{valid:!0,data:s,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(i.errors)}}};var hke=class{constructor(r){this._client=r}async*callToolStream(r,i=BX,s){let l=this._client,d={...s,task:s?.task??(l.isToolTask(r.name)?{}:void 0)},h=l.requestStream({method:"tools/call",params:r},i,d),S=l.getToolOutputValidator(r.name);for await(let b of h){if(b.type==="result"&&S){let A=b.result;if(!A.structuredContent&&!A.isError){yield{type:"error",error:new vu(yp.InvalidRequest,`Tool ${r.name} has an output schema but did not return structured content`)};return}if(A.structuredContent)try{let L=S(A.structuredContent);if(!L.valid){yield{type:"error",error:new vu(yp.InvalidParams,`Structured content does not match the tool's output schema: ${L.errorMessage}`)};return}}catch(L){if(L instanceof vu){yield{type:"error",error:L};return}yield{type:"error",error:new vu(yp.InvalidParams,`Failed to validate structured content: ${L instanceof Error?L.message:String(L)}`)};return}}yield b}}async getTask(r,i){return this._client.getTask({taskId:r},i)}async getTaskResult(r,i,s){return this._client.getTaskResult({taskId:r},i,s)}async listTasks(r,i){return this._client.listTasks(r?{cursor:r}:void 0,i)}async cancelTask(r,i){return this._client.cancelTask({taskId:r},i)}requestStream(r,i,s){return this._client.requestStream(r,i,s)}};function K8t(e,r,i){if(!e)throw new Error(`${i} does not support task creation (required for ${r})`);switch(r){case"tools/call":if(!e.tools?.call)throw new Error(`${i} does not support task creation for tools/call (required for ${r})`);break;default:break}}function Q8t(e,r,i){if(!e)throw new Error(`${i} does not support task creation (required for ${r})`);switch(r){case"sampling/createMessage":if(!e.sampling?.createMessage)throw new Error(`${i} does not support task creation for sampling/createMessage (required for ${r})`);break;case"elicitation/create":if(!e.elicitation?.create)throw new Error(`${i} does not support task creation for elicitation/create (required for ${r})`);break;default:break}}function gke(e,r){if(!(!e||r===null||typeof r!="object")){if(e.type==="object"&&e.properties&&typeof e.properties=="object"){let i=r,s=e.properties;for(let l of Object.keys(s)){let d=s[l];i[l]===void 0&&Object.prototype.hasOwnProperty.call(d,"default")&&(i[l]=d.default),i[l]!==void 0&&gke(d,i[l])}}if(Array.isArray(e.anyOf))for(let i of e.anyOf)typeof i!="boolean"&&gke(i,r);if(Array.isArray(e.oneOf))for(let i of e.oneOf)typeof i!="boolean"&&gke(i,r)}}function Cjr(e){if(!e)return{supportsFormMode:!1,supportsUrlMode:!1};let r=e.form!==void 0,i=e.url!==void 0;return{supportsFormMode:r||!r&&!i,supportsUrlMode:i}}var yke=class extends _ke{constructor(r,i){super(i),this._clientInfo=r,this._cachedToolOutputValidators=new Map,this._cachedKnownTaskTools=new Set,this._cachedRequiredTaskTools=new Set,this._listChangedDebounceTimers=new Map,this._capabilities=i?.capabilities??{},this._jsonSchemaValidator=i?.jsonSchemaValidator??new mke,i?.listChanged&&(this._pendingListChangedConfig=i.listChanged)}_setupListChangedHandlers(r){r.tools&&this._serverCapabilities?.tools?.listChanged&&this._setupListChangedHandler("tools",EHe,r.tools,async()=>(await this.listTools()).tools),r.prompts&&this._serverCapabilities?.prompts?.listChanged&&this._setupListChangedHandler("prompts",xHe,r.prompts,async()=>(await this.listPrompts()).prompts),r.resources&&this._serverCapabilities?.resources?.listChanged&&this._setupListChangedHandler("resources",mHe,r.resources,async()=>(await this.listResources()).resources)}get experimental(){return this._experimental||(this._experimental={tasks:new hke(this)}),this._experimental}registerCapabilities(r){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=w8t(this._capabilities,r)}setRequestHandler(r,i){let l=$Ee(r)?.method;if(!l)throw new Error("Schema is missing a method literal");let d;if(FX(l)){let S=l;d=S._zod?.def?.value??S.value}else{let S=l;d=S._def?.value??S.value}if(typeof d!="string")throw new Error("Schema method literal must be a string");let h=d;if(h==="elicitation/create"){let S=async(b,A)=>{let L=k6(Cue,b);if(!L.success){let pt=L.error instanceof Error?L.error.message:String(L.error);throw new vu(yp.InvalidParams,`Invalid elicitation request: ${pt}`)}let{params:V}=L.data;V.mode=V.mode??"form";let{supportsFormMode:j,supportsUrlMode:ie}=Cjr(this._capabilities.elicitation);if(V.mode==="form"&&!j)throw new vu(yp.InvalidParams,"Client does not support form-mode elicitation requests");if(V.mode==="url"&&!ie)throw new vu(yp.InvalidParams,"Client does not support URL-mode elicitation requests");let te=await Promise.resolve(i(b,A));if(V.task){let pt=k6(MJ,te);if(!pt.success){let $e=pt.error instanceof Error?pt.error.message:String(pt.error);throw new vu(yp.InvalidParams,`Invalid task creation result: ${$e}`)}return pt.data}let X=k6(AHe,te);if(!X.success){let pt=X.error instanceof Error?X.error.message:String(X.error);throw new vu(yp.InvalidParams,`Invalid elicitation result: ${pt}`)}let Re=X.data,Je=V.mode==="form"?V.requestedSchema:void 0;if(V.mode==="form"&&Re.action==="accept"&&Re.content&&Je&&this._capabilities.elicitation?.form?.applyDefaults)try{gke(Je,Re.content)}catch{}return Re};return super.setRequestHandler(r,S)}if(h==="sampling/createMessage"){let S=async(b,A)=>{let L=k6(kHe,b);if(!L.success){let Re=L.error instanceof Error?L.error.message:String(L.error);throw new vu(yp.InvalidParams,`Invalid sampling request: ${Re}`)}let{params:V}=L.data,j=await Promise.resolve(i(b,A));if(V.task){let Re=k6(MJ,j);if(!Re.success){let Je=Re.error instanceof Error?Re.error.message:String(Re.error);throw new vu(yp.InvalidParams,`Invalid task creation result: ${Je}`)}return Re.data}let te=V.tools||V.toolChoice?DHe:CHe,X=k6(te,j);if(!X.success){let Re=X.error instanceof Error?X.error.message:String(X.error);throw new vu(yp.InvalidParams,`Invalid sampling result: ${Re}`)}return X.data};return super.setRequestHandler(r,S)}return super.setRequestHandler(r,i)}assertCapability(r,i){if(!this._serverCapabilities?.[r])throw new Error(`Server does not support ${r} (required for ${i})`)}async connect(r,i){if(await super.connect(r),r.sessionId===void 0)try{let s=await this.request({method:"initialize",params:{protocolVersion:MX,capabilities:this._capabilities,clientInfo:this._clientInfo}},lHe,i);if(s===void 0)throw new Error(`Server sent invalid initialize result: ${s}`);if(!l8t.includes(s.protocolVersion))throw new Error(`Server's protocol version is not supported: ${s.protocolVersion}`);this._serverCapabilities=s.capabilities,this._serverVersion=s.serverInfo,r.setProtocolVersion&&r.setProtocolVersion(s.protocolVersion),this._instructions=s.instructions,await this.notification({method:"notifications/initialized"}),this._pendingListChangedConfig&&(this._setupListChangedHandlers(this._pendingListChangedConfig),this._pendingListChangedConfig=void 0)}catch(s){throw this.close(),s}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(r){switch(r){case"logging/setLevel":if(!this._serverCapabilities?.logging)throw new Error(`Server does not support logging (required for ${r})`);break;case"prompts/get":case"prompts/list":if(!this._serverCapabilities?.prompts)throw new Error(`Server does not support prompts (required for ${r})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!this._serverCapabilities?.resources)throw new Error(`Server does not support resources (required for ${r})`);if(r==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${r})`);break;case"tools/call":case"tools/list":if(!this._serverCapabilities?.tools)throw new Error(`Server does not support tools (required for ${r})`);break;case"completion/complete":if(!this._serverCapabilities?.completions)throw new Error(`Server does not support completions (required for ${r})`);break;case"initialize":break;case"ping":break}}assertNotificationCapability(r){switch(r){case"notifications/roots/list_changed":if(!this._capabilities.roots?.listChanged)throw new Error(`Client does not support roots list changed notifications (required for ${r})`);break;case"notifications/initialized":break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(r){if(this._capabilities)switch(r){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${r})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw new Error(`Client does not support elicitation capability (required for ${r})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${r})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Client does not support tasks capability (required for ${r})`);break;case"ping":break}}assertTaskCapability(r){K8t(this._serverCapabilities?.tasks?.requests,r,"Server")}assertTaskHandlerCapability(r){this._capabilities&&Q8t(this._capabilities.tasks?.requests,r,"Client")}async ping(r){return this.request({method:"ping"},LJ,r)}async complete(r,i){return this.request({method:"completion/complete",params:r},wHe,i)}async setLoggingLevel(r,i){return this.request({method:"logging/setLevel",params:{level:r}},LJ,i)}async getPrompt(r,i){return this.request({method:"prompts/get",params:r},bHe,i)}async listPrompts(r,i){return this.request({method:"prompts/list",params:r},hHe,i)}async listResources(r,i){return this.request({method:"resources/list",params:r},pHe,i)}async listResourceTemplates(r,i){return this.request({method:"resources/templates/list",params:r},_He,i)}async readResource(r,i){return this.request({method:"resources/read",params:r},fHe,i)}async subscribeResource(r,i){return this.request({method:"resources/subscribe",params:r},LJ,i)}async unsubscribeResource(r,i){return this.request({method:"resources/unsubscribe",params:r},LJ,i)}async callTool(r,i=BX,s){if(this.isToolTaskRequired(r.name))throw new vu(yp.InvalidRequest,`Tool "${r.name}" requires task-based execution. Use client.experimental.tasks.callToolStream() instead.`);let l=await this.request({method:"tools/call",params:r},i,s),d=this.getToolOutputValidator(r.name);if(d){if(!l.structuredContent&&!l.isError)throw new vu(yp.InvalidRequest,`Tool ${r.name} has an output schema but did not return structured content`);if(l.structuredContent)try{let h=d(l.structuredContent);if(!h.valid)throw new vu(yp.InvalidParams,`Structured content does not match the tool's output schema: ${h.errorMessage}`)}catch(h){throw h instanceof vu?h:new vu(yp.InvalidParams,`Failed to validate structured content: ${h instanceof Error?h.message:String(h)}`)}}return l}isToolTask(r){return this._serverCapabilities?.tasks?.requests?.tools?.call?this._cachedKnownTaskTools.has(r):!1}isToolTaskRequired(r){return this._cachedRequiredTaskTools.has(r)}cacheToolMetadata(r){this._cachedToolOutputValidators.clear(),this._cachedKnownTaskTools.clear(),this._cachedRequiredTaskTools.clear();for(let i of r){if(i.outputSchema){let l=this._jsonSchemaValidator.getValidator(i.outputSchema);this._cachedToolOutputValidators.set(i.name,l)}let s=i.execution?.taskSupport;(s==="required"||s==="optional")&&this._cachedKnownTaskTools.add(i.name),s==="required"&&this._cachedRequiredTaskTools.add(i.name)}}getToolOutputValidator(r){return this._cachedToolOutputValidators.get(r)}async listTools(r,i){let s=await this.request({method:"tools/list",params:r},THe,i);return this.cacheToolMetadata(s.tools),s}_setupListChangedHandler(r,i,s,l){let d=C8t.safeParse(s);if(!d.success)throw new Error(`Invalid ${r} listChanged options: ${d.error.message}`);if(typeof s.onChanged!="function")throw new Error(`Invalid ${r} listChanged options: onChanged must be a function`);let{autoRefresh:h,debounceMs:S}=d.data,{onChanged:b}=s,A=async()=>{if(!h){b(null,null);return}try{let V=await l();b(null,V)}catch(V){let j=V instanceof Error?V:new Error(String(V));b(j,null)}},L=()=>{if(S){let V=this._listChangedDebounceTimers.get(r);V&&clearTimeout(V);let j=setTimeout(A,S);this._listChangedDebounceTimers.set(r,j)}else A()};this.setNotificationHandler(i,L)}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}};var vke=class extends Error{constructor(r,i){super(r),this.name="ParseError",this.type=i.type,this.field=i.field,this.value=i.value,this.line=i.line}};function zHe(e){}function Ske(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:r=zHe,onError:i=zHe,onRetry:s=zHe,onComment:l}=e,d="",h=!0,S,b="",A="";function L(X){let Re=h?X.replace(/^\xEF\xBB\xBF/,""):X,[Je,pt]=Djr(`${d}${Re}`);for(let $e of Je)V($e);d=pt,h=!1}function V(X){if(X===""){ie();return}if(X.startsWith(":")){l&&l(X.slice(X.startsWith(": ")?2:1));return}let Re=X.indexOf(":");if(Re!==-1){let Je=X.slice(0,Re),pt=X[Re+1]===" "?2:1,$e=X.slice(Re+pt);j(Je,$e,X);return}j(X,"",X)}function j(X,Re,Je){switch(X){case"event":A=Re;break;case"data":b=`${b}${Re} -`;break;case"id":S=Re.includes("\0")?void 0:Re;break;case"retry":/^\d+$/.test(Re)?s(parseInt(Re,10)):i(new vke(`Invalid \`retry\` value: "${Re}"`,{type:"invalid-retry",value:Re,line:Je}));break;default:i(new vke(`Unknown field "${X.length>20?`${X.slice(0,20)}\u2026`:X}"`,{type:"unknown-field",field:X,value:Re,line:Je}));break}}function ie(){b.length>0&&r({id:S,event:A||void 0,data:b.endsWith(` -`)?b.slice(0,-1):b}),S=void 0,b="",A=""}function te(X={}){d&&X.consume&&V(d),h=!0,S=void 0,b="",A="",d=""}return{feed:L,reset:te}}function Djr(e){let r=[],i="",s=0;for(;s{throw TypeError(e)},ZHe=(e,r,i)=>r.has(e)||Y8t("Cannot "+i),bd=(e,r,i)=>(ZHe(e,r,"read from private field"),i?i.call(e):r.get(e)),Hv=(e,r,i)=>r.has(e)?Y8t("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,i),xy=(e,r,i,s)=>(ZHe(e,r,"write to private field"),r.set(e,i),i),u5=(e,r,i)=>(ZHe(e,r,"access private method"),i),uk,jJ,JX,bke,Tke,Pue,GX,Nue,vj,VX,HX,WX,wue,D6,JHe,VHe,WHe,X8t,GHe,HHe,Iue,KHe,QHe,BJ=class extends EventTarget{constructor(r,i){var s,l;super(),Hv(this,D6),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,Hv(this,uk),Hv(this,jJ),Hv(this,JX),Hv(this,bke),Hv(this,Tke),Hv(this,Pue),Hv(this,GX),Hv(this,Nue,null),Hv(this,vj),Hv(this,VX),Hv(this,HX,null),Hv(this,WX,null),Hv(this,wue,null),Hv(this,VHe,async d=>{var h;bd(this,VX).reset();let{body:S,redirected:b,status:A,headers:L}=d;if(A===204){u5(this,D6,Iue).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(b?xy(this,JX,new URL(d.url)):xy(this,JX,void 0),A!==200){u5(this,D6,Iue).call(this,`Non-200 status code (${A})`,A);return}if(!(L.get("content-type")||"").startsWith("text/event-stream")){u5(this,D6,Iue).call(this,'Invalid content type, expected "text/event-stream"',A);return}if(bd(this,uk)===this.CLOSED)return;xy(this,uk,this.OPEN);let V=new Event("open");if((h=bd(this,wue))==null||h.call(this,V),this.dispatchEvent(V),typeof S!="object"||!S||!("getReader"in S)){u5(this,D6,Iue).call(this,"Invalid response body, expected a web ReadableStream",A),this.close();return}let j=new TextDecoder,ie=S.getReader(),te=!0;do{let{done:X,value:Re}=await ie.read();Re&&bd(this,VX).feed(j.decode(Re,{stream:!X})),X&&(te=!1,bd(this,VX).reset(),u5(this,D6,KHe).call(this))}while(te)}),Hv(this,WHe,d=>{xy(this,vj,void 0),!(d.name==="AbortError"||d.type==="aborted")&&u5(this,D6,KHe).call(this,qHe(d))}),Hv(this,GHe,d=>{typeof d.id=="string"&&xy(this,Nue,d.id);let h=new MessageEvent(d.event||"message",{data:d.data,origin:bd(this,JX)?bd(this,JX).origin:bd(this,jJ).origin,lastEventId:d.id||""});bd(this,WX)&&(!d.event||d.event==="message")&&bd(this,WX).call(this,h),this.dispatchEvent(h)}),Hv(this,HHe,d=>{xy(this,Pue,d)}),Hv(this,QHe,()=>{xy(this,GX,void 0),bd(this,uk)===this.CONNECTING&&u5(this,D6,JHe).call(this)});try{if(r instanceof URL)xy(this,jJ,r);else if(typeof r=="string")xy(this,jJ,new URL(r,wjr()));else throw new Error("Invalid URL")}catch{throw Ajr("An invalid or illegal string was specified")}xy(this,VX,Ske({onEvent:bd(this,GHe),onRetry:bd(this,HHe)})),xy(this,uk,this.CONNECTING),xy(this,Pue,3e3),xy(this,Tke,(s=i?.fetch)!=null?s:globalThis.fetch),xy(this,bke,(l=i?.withCredentials)!=null?l:!1),u5(this,D6,JHe).call(this)}get readyState(){return bd(this,uk)}get url(){return bd(this,jJ).href}get withCredentials(){return bd(this,bke)}get onerror(){return bd(this,HX)}set onerror(r){xy(this,HX,r)}get onmessage(){return bd(this,WX)}set onmessage(r){xy(this,WX,r)}get onopen(){return bd(this,wue)}set onopen(r){xy(this,wue,r)}addEventListener(r,i,s){let l=i;super.addEventListener(r,l,s)}removeEventListener(r,i,s){let l=i;super.removeEventListener(r,l,s)}close(){bd(this,GX)&&clearTimeout(bd(this,GX)),bd(this,uk)!==this.CLOSED&&(bd(this,vj)&&bd(this,vj).abort(),xy(this,uk,this.CLOSED),xy(this,vj,void 0))}};uk=new WeakMap,jJ=new WeakMap,JX=new WeakMap,bke=new WeakMap,Tke=new WeakMap,Pue=new WeakMap,GX=new WeakMap,Nue=new WeakMap,vj=new WeakMap,VX=new WeakMap,HX=new WeakMap,WX=new WeakMap,wue=new WeakMap,D6=new WeakSet,JHe=function(){xy(this,uk,this.CONNECTING),xy(this,vj,new AbortController),bd(this,Tke)(bd(this,jJ),u5(this,D6,X8t).call(this)).then(bd(this,VHe)).catch(bd(this,WHe))},VHe=new WeakMap,WHe=new WeakMap,X8t=function(){var e;let r={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...bd(this,Nue)?{"Last-Event-ID":bd(this,Nue)}:void 0},cache:"no-store",signal:(e=bd(this,vj))==null?void 0:e.signal};return"window"in globalThis&&(r.credentials=this.withCredentials?"include":"same-origin"),r},GHe=new WeakMap,HHe=new WeakMap,Iue=function(e,r){var i;bd(this,uk)!==this.CLOSED&&xy(this,uk,this.CLOSED);let s=new xke("error",{code:r,message:e});(i=bd(this,HX))==null||i.call(this,s),this.dispatchEvent(s)},KHe=function(e,r){var i;if(bd(this,uk)===this.CLOSED)return;xy(this,uk,this.CONNECTING);let s=new xke("error",{code:r,message:e});(i=bd(this,HX))==null||i.call(this,s),this.dispatchEvent(s),xy(this,GX,setTimeout(bd(this,QHe),bd(this,Pue)))},QHe=new WeakMap,BJ.CONNECTING=0,BJ.OPEN=1,BJ.CLOSED=2;function wjr(){let e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}function KX(e){return e?e instanceof Headers?Object.fromEntries(e.entries()):Array.isArray(e)?Object.fromEntries(e):{...e}:{}}function Eke(e=fetch,r){return r?async(i,s)=>{let l={...r,...s,headers:s?.headers?{...KX(r.headers),...KX(s.headers)}:r.headers};return e(i,l)}:e}var XHe;XHe=globalThis.crypto?.webcrypto??globalThis.crypto??import("node:crypto").then(e=>e.webcrypto);async function Ijr(e){return(await XHe).getRandomValues(new Uint8Array(e))}async function Pjr(e){let r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",i=Math.pow(2,8)-Math.pow(2,8)%r.length,s="";for(;s.length128)throw`Expected a length between 43 and 128. Received ${e}.`;let r=await Njr(e),i=await Ojr(r);return{code_verifier:r,code_challenge:i}}var tx=RGe().superRefine((e,r)=>{if(!URL.canParse(e))return r.addIssue({code:s8t.custom,message:"URL must be parseable",fatal:!0}),X2e}).refine(e=>{let r=new URL(e);return r.protocol!=="javascript:"&&r.protocol!=="data:"&&r.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),tOt=cv({resource:An().url(),authorization_servers:Ms(tx).optional(),jwks_uri:An().url().optional(),scopes_supported:Ms(An()).optional(),bearer_methods_supported:Ms(An()).optional(),resource_signing_alg_values_supported:Ms(An()).optional(),resource_name:An().optional(),resource_documentation:An().optional(),resource_policy_uri:An().url().optional(),resource_tos_uri:An().url().optional(),tls_client_certificate_bound_access_tokens:oh().optional(),authorization_details_types_supported:Ms(An()).optional(),dpop_signing_alg_values_supported:Ms(An()).optional(),dpop_bound_access_tokens_required:oh().optional()}),eKe=cv({issuer:An(),authorization_endpoint:tx,token_endpoint:tx,registration_endpoint:tx.optional(),scopes_supported:Ms(An()).optional(),response_types_supported:Ms(An()),response_modes_supported:Ms(An()).optional(),grant_types_supported:Ms(An()).optional(),token_endpoint_auth_methods_supported:Ms(An()).optional(),token_endpoint_auth_signing_alg_values_supported:Ms(An()).optional(),service_documentation:tx.optional(),revocation_endpoint:tx.optional(),revocation_endpoint_auth_methods_supported:Ms(An()).optional(),revocation_endpoint_auth_signing_alg_values_supported:Ms(An()).optional(),introspection_endpoint:An().optional(),introspection_endpoint_auth_methods_supported:Ms(An()).optional(),introspection_endpoint_auth_signing_alg_values_supported:Ms(An()).optional(),code_challenge_methods_supported:Ms(An()).optional(),client_id_metadata_document_supported:oh().optional()}),Fjr=cv({issuer:An(),authorization_endpoint:tx,token_endpoint:tx,userinfo_endpoint:tx.optional(),jwks_uri:tx,registration_endpoint:tx.optional(),scopes_supported:Ms(An()).optional(),response_types_supported:Ms(An()),response_modes_supported:Ms(An()).optional(),grant_types_supported:Ms(An()).optional(),acr_values_supported:Ms(An()).optional(),subject_types_supported:Ms(An()),id_token_signing_alg_values_supported:Ms(An()),id_token_encryption_alg_values_supported:Ms(An()).optional(),id_token_encryption_enc_values_supported:Ms(An()).optional(),userinfo_signing_alg_values_supported:Ms(An()).optional(),userinfo_encryption_alg_values_supported:Ms(An()).optional(),userinfo_encryption_enc_values_supported:Ms(An()).optional(),request_object_signing_alg_values_supported:Ms(An()).optional(),request_object_encryption_alg_values_supported:Ms(An()).optional(),request_object_encryption_enc_values_supported:Ms(An()).optional(),token_endpoint_auth_methods_supported:Ms(An()).optional(),token_endpoint_auth_signing_alg_values_supported:Ms(An()).optional(),display_values_supported:Ms(An()).optional(),claim_types_supported:Ms(An()).optional(),claims_supported:Ms(An()).optional(),service_documentation:An().optional(),claims_locales_supported:Ms(An()).optional(),ui_locales_supported:Ms(An()).optional(),claims_parameter_supported:oh().optional(),request_parameter_supported:oh().optional(),request_uri_parameter_supported:oh().optional(),require_request_uri_registration:oh().optional(),op_policy_uri:tx.optional(),op_tos_uri:tx.optional(),client_id_metadata_document_supported:oh().optional()}),rOt=rc({...Fjr.shape,...eKe.pick({code_challenge_methods_supported:!0}).shape}),nOt=rc({access_token:An(),id_token:An().optional(),token_type:An(),expires_in:YEe.number().optional(),scope:An().optional(),refresh_token:An().optional()}).strip(),iOt=rc({error:An(),error_description:An().optional(),error_uri:An().optional()}),eOt=tx.optional().or(Dl("").transform(()=>{})),Rjr=rc({redirect_uris:Ms(tx),token_endpoint_auth_method:An().optional(),grant_types:Ms(An()).optional(),response_types:Ms(An()).optional(),client_name:An().optional(),client_uri:tx.optional(),logo_uri:eOt,scope:An().optional(),contacts:Ms(An()).optional(),tos_uri:eOt,policy_uri:An().optional(),jwks_uri:tx.optional(),jwks:XGe().optional(),software_id:An().optional(),software_version:An().optional(),software_statement:An().optional()}).strip(),Ljr=rc({client_id:An(),client_secret:An().optional(),client_id_issued_at:yf().optional(),client_secret_expires_at:yf().optional()}).strip(),oOt=Rjr.merge(Ljr),KMn=rc({error:An(),error_description:An().optional()}).strip(),QMn=rc({token:An(),token_type_hint:An().optional()}).strip();function aOt(e){let r=typeof e=="string"?new URL(e):new URL(e.href);return r.hash="",r}function sOt({requestedResource:e,configuredResource:r}){let i=typeof e=="string"?new URL(e):new URL(e.href),s=typeof r=="string"?new URL(r):new URL(r.href);if(i.origin!==s.origin||i.pathname.length=400&&e.status<500&&r!=="/"}async function Gjr(e,r,i,s){let l=new URL(e),d=s?.protocolVersion??MX,h;if(s?.metadataUrl)h=new URL(s.metadataUrl);else{let b=Vjr(r,l.pathname);h=new URL(b,s?.metadataServerUrl??l),h.search=l.search}let S=await lOt(h,d,i);if(!s?.metadataUrl&&Wjr(S,l.pathname)){let b=new URL(`/.well-known/${r}`,l);S=await lOt(b,d,i)}return S}function Hjr(e){let r=typeof e=="string"?new URL(e):e,i=r.pathname!=="/",s=[];if(!i)return s.push({url:new URL("/.well-known/oauth-authorization-server",r.origin),type:"oauth"}),s.push({url:new URL("/.well-known/openid-configuration",r.origin),type:"oidc"}),s;let l=r.pathname;return l.endsWith("/")&&(l=l.slice(0,-1)),s.push({url:new URL(`/.well-known/oauth-authorization-server${l}`,r.origin),type:"oauth"}),s.push({url:new URL(`/.well-known/openid-configuration${l}`,r.origin),type:"oidc"}),s.push({url:new URL(`${l}/.well-known/openid-configuration`,r.origin),type:"oidc"}),s}async function _Ot(e,{fetchFn:r=fetch,protocolVersion:i=MX}={}){let s={"MCP-Protocol-Version":i,Accept:"application/json"},l=Hjr(e);for(let{url:d,type:h}of l){let S=await oKe(d,s,r);if(S){if(!S.ok){if(await S.body?.cancel(),S.status>=400&&S.status<500)continue;throw new Error(`HTTP ${S.status} trying to load ${h==="oauth"?"OAuth":"OpenID provider"} metadata from ${d}`)}return h==="oauth"?eKe.parse(await S.json()):rOt.parse(await S.json())}}}async function Kjr(e,r){let i,s;try{i=await pOt(e,{resourceMetadataUrl:r?.resourceMetadataUrl},r?.fetchFn),i.authorization_servers&&i.authorization_servers.length>0&&(s=i.authorization_servers[0])}catch{}s||(s=String(new URL("/",e)));let l=await _Ot(s,{fetchFn:r?.fetchFn});return{authorizationServerUrl:s,authorizationServerMetadata:l,resourceMetadata:i}}async function Qjr(e,{metadata:r,clientInformation:i,redirectUrl:s,scope:l,state:d,resource:h}){let S;if(r){if(S=new URL(r.authorization_endpoint),!r.response_types_supported.includes(tKe))throw new Error(`Incompatible auth server: does not support response type ${tKe}`);if(r.code_challenge_methods_supported&&!r.code_challenge_methods_supported.includes(rKe))throw new Error(`Incompatible auth server: does not support code challenge method ${rKe}`)}else S=new URL("/authorize",e);let b=await YHe(),A=b.code_verifier,L=b.code_challenge;return S.searchParams.set("response_type",tKe),S.searchParams.set("client_id",i.client_id),S.searchParams.set("code_challenge",L),S.searchParams.set("code_challenge_method",rKe),S.searchParams.set("redirect_uri",String(s)),d&&S.searchParams.set("state",d),l&&S.searchParams.set("scope",l),l?.includes("offline_access")&&S.searchParams.append("prompt","consent"),h&&S.searchParams.set("resource",h.href),{authorizationUrl:S,codeVerifier:A}}function Zjr(e,r,i){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:r,redirect_uri:String(i)})}async function dOt(e,{metadata:r,tokenRequestParams:i,clientInformation:s,addClientAuthentication:l,resource:d,fetchFn:h}){let S=r?.token_endpoint?new URL(r.token_endpoint):new URL("/token",e),b=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(d&&i.set("resource",d.href),l)await l(b,i,S,r);else if(s){let L=r?.token_endpoint_auth_methods_supported??[],V=jjr(s,L);Bjr(V,s,b,i)}let A=await(h??fetch)(S,{method:"POST",headers:b,body:i});if(!A.ok)throw await uOt(A);return nOt.parse(await A.json())}async function Xjr(e,{metadata:r,clientInformation:i,refreshToken:s,resource:l,addClientAuthentication:d,fetchFn:h}){let S=new URLSearchParams({grant_type:"refresh_token",refresh_token:s}),b=await dOt(e,{metadata:r,tokenRequestParams:S,clientInformation:i,addClientAuthentication:d,resource:l,fetchFn:h});return{refresh_token:s,...b}}async function Yjr(e,r,{metadata:i,resource:s,authorizationCode:l,fetchFn:d}={}){let h=e.clientMetadata.scope,S;if(e.prepareTokenRequest&&(S=await e.prepareTokenRequest(h)),!S){if(!l)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");let A=await e.codeVerifier();S=Zjr(l,A,e.redirectUrl)}let b=await e.clientInformation();return dOt(r,{metadata:i,tokenRequestParams:S,clientInformation:b??void 0,addClientAuthentication:e.addClientAuthentication,resource:s,fetchFn:d})}async function eBr(e,{metadata:r,clientMetadata:i,fetchFn:s}){let l;if(r){if(!r.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");l=new URL(r.registration_endpoint)}else l=new URL("/register",e);let d=await(s??fetch)(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!d.ok)throw await uOt(d);return oOt.parse(await d.json())}var aKe=class extends Error{constructor(r,i,s){super(`SSE error: ${i}`),this.code=r,this.event=s}},kke=class{constructor(r,i){this._url=r,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=i?.eventSourceInit,this._requestInit=i?.requestInit,this._authProvider=i?.authProvider,this._fetch=i?.fetch,this._fetchWithInit=Eke(i?.fetch,i?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new F2("No auth provider");let r;try{r=await Vw(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(i){throw this.onerror?.(i),i}if(r!=="AUTHORIZED")throw new F2;return await this._startOrAuth()}async _commonHeaders(){let r={};if(this._authProvider){let s=await this._authProvider.tokens();s&&(r.Authorization=`Bearer ${s.access_token}`)}this._protocolVersion&&(r["mcp-protocol-version"]=this._protocolVersion);let i=KX(this._requestInit?.headers);return new Headers({...r,...i})}_startOrAuth(){let r=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((i,s)=>{this._eventSource=new BJ(this._url.href,{...this._eventSourceInit,fetch:async(l,d)=>{let h=await this._commonHeaders();h.set("Accept","text/event-stream");let S=await r(l,{...d,headers:h});if(S.status===401&&S.headers.has("www-authenticate")){let{resourceMetadataUrl:b,scope:A}=QX(S);this._resourceMetadataUrl=b,this._scope=A}return S}}),this._abortController=new AbortController,this._eventSource.onerror=l=>{if(l.code===401&&this._authProvider){this._authThenStart().then(i,s);return}let d=new aKe(l.code,l.message,l);s(d),this.onerror?.(d)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",l=>{let d=l;try{if(this._endpoint=new URL(d.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(h){s(h),this.onerror?.(h),this.close();return}i()}),this._eventSource.onmessage=l=>{let d=l,h;try{h=hj.parse(JSON.parse(d.data))}catch(S){this.onerror?.(S);return}this.onmessage?.(h)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(r){if(!this._authProvider)throw new F2("No auth provider");if(await Vw(this._authProvider,{serverUrl:this._url,authorizationCode:r,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new F2("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(r){if(!this._endpoint)throw new Error("Not connected");try{let i=await this._commonHeaders();i.set("content-type","application/json");let s={...this._requestInit,method:"POST",headers:i,body:JSON.stringify(r),signal:this._abortController?.signal},l=await(this._fetch??fetch)(this._endpoint,s);if(!l.ok){let d=await l.text().catch(()=>null);if(l.status===401&&this._authProvider){let{resourceMetadataUrl:h,scope:S}=QX(l);if(this._resourceMetadataUrl=h,this._scope=S,await Vw(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new F2;return this.send(r)}throw new Error(`Error POSTing to endpoint (HTTP ${l.status}): ${d}`)}await l.body?.cancel()}catch(i){throw this.onerror?.(i),i}}setProtocolVersion(r){this._protocolVersion=r}};var nFt=fJ(tFt(),1);import wke from"node:process";import{PassThrough as ABr}from"node:stream";var Dke=class{append(r){this._buffer=this._buffer?Buffer.concat([this._buffer,r]):r}readMessage(){if(!this._buffer)return null;let r=this._buffer.indexOf(` -`);if(r===-1)return null;let i=this._buffer.toString("utf8",0,r).replace(/\r$/,"");return this._buffer=this._buffer.subarray(r+1),DBr(i)}clear(){this._buffer=void 0}};function DBr(e){return hj.parse(JSON.parse(e))}function rFt(e){return JSON.stringify(e)+` -`}var wBr=wke.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"];function IBr(){let e={};for(let r of wBr){let i=wke.env[r];i!==void 0&&(i.startsWith("()")||(e[r]=i))}return e}var Ake=class{constructor(r){this._readBuffer=new Dke,this._stderrStream=null,this._serverParams=r,(r.stderr==="pipe"||r.stderr==="overlapped")&&(this._stderrStream=new ABr)}async start(){if(this._process)throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((r,i)=>{this._process=(0,nFt.default)(this._serverParams.command,this._serverParams.args??[],{env:{...IBr(),...this._serverParams.env},stdio:["pipe","pipe",this._serverParams.stderr??"inherit"],shell:!1,windowsHide:wke.platform==="win32"&&PBr(),cwd:this._serverParams.cwd}),this._process.on("error",s=>{i(s),this.onerror?.(s)}),this._process.on("spawn",()=>{r()}),this._process.on("close",s=>{this._process=void 0,this.onclose?.()}),this._process.stdin?.on("error",s=>{this.onerror?.(s)}),this._process.stdout?.on("data",s=>{this._readBuffer.append(s),this.processReadBuffer()}),this._process.stdout?.on("error",s=>{this.onerror?.(s)}),this._stderrStream&&this._process.stderr&&this._process.stderr.pipe(this._stderrStream)})}get stderr(){return this._stderrStream?this._stderrStream:this._process?.stderr??null}get pid(){return this._process?.pid??null}processReadBuffer(){for(;;)try{let r=this._readBuffer.readMessage();if(r===null)break;this.onmessage?.(r)}catch(r){this.onerror?.(r)}}async close(){if(this._process){let r=this._process;this._process=void 0;let i=new Promise(s=>{r.once("close",()=>{s()})});try{r.stdin?.end()}catch{}if(await Promise.race([i,new Promise(s=>setTimeout(s,2e3).unref())]),r.exitCode===null){try{r.kill("SIGTERM")}catch{}await Promise.race([i,new Promise(s=>setTimeout(s,2e3).unref())])}if(r.exitCode===null)try{r.kill("SIGKILL")}catch{}}this._readBuffer.clear()}send(r){return new Promise(i=>{if(!this._process?.stdin)throw new Error("Not connected");let s=rFt(r);this._process.stdin.write(s)?i():this._process.stdin.once("drain",i)})}};function PBr(){return"type"in wke}var Ike=class extends TransformStream{constructor({onError:r,onRetry:i,onComment:s}={}){let l;super({start(d){l=Ske({onEvent:h=>{d.enqueue(h)},onError(h){r==="terminate"?d.error(h):typeof r=="function"&&r(h)},onRetry:i,onComment:s})},transform(d){l.feed(d)}})}};var NBr={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2},Sj=class extends Error{constructor(r,i){super(`Streamable HTTP error: ${i}`),this.code=r}},Pke=class{constructor(r,i){this._hasCompletedAuthFlow=!1,this._url=r,this._resourceMetadataUrl=void 0,this._scope=void 0,this._requestInit=i?.requestInit,this._authProvider=i?.authProvider,this._fetch=i?.fetch,this._fetchWithInit=Eke(i?.fetch,i?.requestInit),this._sessionId=i?.sessionId,this._reconnectionOptions=i?.reconnectionOptions??NBr}async _authThenStart(){if(!this._authProvider)throw new F2("No auth provider");let r;try{r=await Vw(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(i){throw this.onerror?.(i),i}if(r!=="AUTHORIZED")throw new F2;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){let r={};if(this._authProvider){let s=await this._authProvider.tokens();s&&(r.Authorization=`Bearer ${s.access_token}`)}this._sessionId&&(r["mcp-session-id"]=this._sessionId),this._protocolVersion&&(r["mcp-protocol-version"]=this._protocolVersion);let i=KX(this._requestInit?.headers);return new Headers({...r,...i})}async _startOrAuthSse(r){let{resumptionToken:i}=r;try{let s=await this._commonHeaders();s.set("Accept","text/event-stream"),i&&s.set("last-event-id",i);let l=await(this._fetch??fetch)(this._url,{method:"GET",headers:s,signal:this._abortController?.signal});if(!l.ok){if(await l.body?.cancel(),l.status===401&&this._authProvider)return await this._authThenStart();if(l.status===405)return;throw new Sj(l.status,`Failed to open SSE stream: ${l.statusText}`)}this._handleSseStream(l.body,r,!0)}catch(s){throw this.onerror?.(s),s}}_getNextReconnectionDelay(r){if(this._serverRetryMs!==void 0)return this._serverRetryMs;let i=this._reconnectionOptions.initialReconnectionDelay,s=this._reconnectionOptions.reconnectionDelayGrowFactor,l=this._reconnectionOptions.maxReconnectionDelay;return Math.min(i*Math.pow(s,r),l)}_scheduleReconnection(r,i=0){let s=this._reconnectionOptions.maxRetries;if(i>=s){this.onerror?.(new Error(`Maximum reconnection attempts (${s}) exceeded.`));return}let l=this._getNextReconnectionDelay(i);this._reconnectionTimeout=setTimeout(()=>{this._startOrAuthSse(r).catch(d=>{this.onerror?.(new Error(`Failed to reconnect SSE stream: ${d instanceof Error?d.message:String(d)}`)),this._scheduleReconnection(r,i+1)})},l)}_handleSseStream(r,i,s){if(!r)return;let{onresumptiontoken:l,replayMessageId:d}=i,h,S=!1,b=!1;(async()=>{try{let L=r.pipeThrough(new TextDecoderStream).pipeThrough(new Ike({onRetry:ie=>{this._serverRetryMs=ie}})).getReader();for(;;){let{value:ie,done:te}=await L.read();if(te)break;if(ie.id&&(h=ie.id,S=!0,l?.(ie.id)),!!ie.data&&(!ie.event||ie.event==="message"))try{let X=hj.parse(JSON.parse(ie.data));RJ(X)&&(b=!0,d!==void 0&&(X.id=d)),this.onmessage?.(X)}catch(X){this.onerror?.(X)}}(s||S)&&!b&&this._abortController&&!this._abortController.signal.aborted&&this._scheduleReconnection({resumptionToken:h,onresumptiontoken:l,replayMessageId:d},0)}catch(L){if(this.onerror?.(new Error(`SSE stream disconnected: ${L}`)),(s||S)&&!b&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:h,onresumptiontoken:l,replayMessageId:d},0)}catch(ie){this.onerror?.(new Error(`Failed to reconnect: ${ie instanceof Error?ie.message:String(ie)}`))}}})()}async start(){if(this._abortController)throw new Error("StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.");this._abortController=new AbortController}async finishAuth(r){if(!this._authProvider)throw new F2("No auth provider");if(await Vw(this._authProvider,{serverUrl:this._url,authorizationCode:r,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new F2("Failed to authorize")}async close(){this._reconnectionTimeout&&(clearTimeout(this._reconnectionTimeout),this._reconnectionTimeout=void 0),this._abortController?.abort(),this.onclose?.()}async send(r,i){try{let{resumptionToken:s,onresumptiontoken:l}=i||{};if(s){this._startOrAuthSse({resumptionToken:s,replayMessageId:vue(r)?r.id:void 0}).catch(j=>this.onerror?.(j));return}let d=await this._commonHeaders();d.set("content-type","application/json"),d.set("accept","application/json, text/event-stream");let h={...this._requestInit,method:"POST",headers:d,body:JSON.stringify(r),signal:this._abortController?.signal},S=await(this._fetch??fetch)(this._url,h),b=S.headers.get("mcp-session-id");if(b&&(this._sessionId=b),!S.ok){let j=await S.text().catch(()=>null);if(S.status===401&&this._authProvider){if(this._hasCompletedAuthFlow)throw new Sj(401,"Server returned 401 after successful authentication");let{resourceMetadataUrl:ie,scope:te}=QX(S);if(this._resourceMetadataUrl=ie,this._scope=te,await Vw(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new F2;return this._hasCompletedAuthFlow=!0,this.send(r)}if(S.status===403&&this._authProvider){let{resourceMetadataUrl:ie,scope:te,error:X}=QX(S);if(X==="insufficient_scope"){let Re=S.headers.get("WWW-Authenticate");if(this._lastUpscopingHeader===Re)throw new Sj(403,"Server returned 403 after trying upscoping");if(te&&(this._scope=te),ie&&(this._resourceMetadataUrl=ie),this._lastUpscopingHeader=Re??void 0,await Vw(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetch})!=="AUTHORIZED")throw new F2;return this.send(r)}}throw new Sj(S.status,`Error POSTing to endpoint: ${j}`)}if(this._hasCompletedAuthFlow=!1,this._lastUpscopingHeader=void 0,S.status===202){await S.body?.cancel(),v8t(r)&&this._startOrAuthSse({resumptionToken:void 0}).catch(j=>this.onerror?.(j));return}let L=(Array.isArray(r)?r:[r]).filter(j=>"method"in j&&"id"in j&&j.id!==void 0).length>0,V=S.headers.get("content-type");if(L)if(V?.includes("text/event-stream"))this._handleSseStream(S.body,{onresumptiontoken:l},!1);else if(V?.includes("application/json")){let j=await S.json(),ie=Array.isArray(j)?j.map(te=>hj.parse(te)):[hj.parse(j)];for(let te of ie)this.onmessage?.(te)}else throw await S.body?.cancel(),new Sj(-1,`Unexpected content type: ${V}`);else await S.body?.cancel()}catch(s){throw this.onerror?.(s),s}}get sessionId(){return this._sessionId}async terminateSession(){if(this._sessionId)try{let r=await this._commonHeaders(),i={...this._requestInit,method:"DELETE",headers:r,signal:this._abortController?.signal},s=await(this._fetch??fetch)(this._url,i);if(await s.body?.cancel(),!s.ok&&s.status!==405)throw new Sj(s.status,`Failed to terminate session: ${s.statusText}`);this._sessionId=void 0}catch(r){throw this.onerror?.(r),r}}setProtocolVersion(r){this._protocolVersion=r}get protocolVersion(){return this._protocolVersion}async resumeStream(r,i){await this._startOrAuthSse({resumptionToken:r,onresumptiontoken:i?.onresumptiontoken})}};import*as iFt from"effect/Data";import*as yT from"effect/Effect";var Nke=class extends iFt.TaggedError("McpConnectionError"){},JJ=e=>e.transport==="stdio"||typeof e.command=="string"&&e.command.trim().length>0,Oke=e=>new Nke(e),OBr=e=>yT.try({try:()=>{if(!e.endpoint)throw new Error("MCP endpoint is required for HTTP/SSE transports");let r=new URL(e.endpoint);for(let[i,s]of Object.entries(e.queryParams))r.searchParams.set(i,s);return r},catch:r=>Oke({transport:e.transport,message:"Failed building MCP endpoint URL",cause:r})}),FBr=(e,r,i)=>{let s=new Headers(r?.headers??{});for(let[l,d]of Object.entries(i))s.set(l,d);return fetch(e,{...r,headers:s})},RBr=e=>({client:e,close:()=>e.close()}),LBr=e=>yT.tryPromise({try:()=>e.close(),catch:r=>Oke({transport:"auto",message:"Failed closing MCP client",cause:r})}).pipe(yT.ignore),hKe=e=>yT.gen(function*(){let r=e.createClient(),i=e.createTransport();return yield*yT.tryPromise({try:()=>r.connect(i),catch:s=>Oke({transport:e.transport,message:`Failed connecting to MCP server via ${e.transport}: ${s instanceof Error?s.message:String(s)}`,cause:s})}).pipe(yT.as(RBr(r)),yT.onError(()=>LBr(r)))}),bj=e=>{let r=e.headers??{},i=JJ(e)?"stdio":e.transport??"auto",s=Object.keys(r).length>0?{headers:r}:void 0,l=()=>new yke({name:e.clientName??"executor-codemode-mcp",version:e.clientVersion??"0.1.0"},{capabilities:{elicitation:{form:{},url:{}}}});return yT.gen(function*(){if(i==="stdio"){let b=e.command?.trim();return b?yield*hKe({createClient:l,transport:"stdio",createTransport:()=>new Ake({command:b,args:e.args?[...e.args]:void 0,env:e.env,cwd:e.cwd?.trim().length?e.cwd.trim():void 0})}):yield*Oke({transport:"stdio",message:"MCP stdio transport requires a command",cause:new Error("Missing MCP stdio command")})}let d=yield*OBr({endpoint:e.endpoint,queryParams:e.queryParams??{},transport:i}),h=hKe({createClient:l,transport:"streamable-http",createTransport:()=>new Pke(d,{requestInit:s,authProvider:e.authProvider})});if(i==="streamable-http")return yield*h;let S=hKe({createClient:l,transport:"sse",createTransport:()=>new kke(d,{authProvider:e.authProvider,requestInit:s,eventSourceInit:s?{fetch:(b,A)=>FBr(b,A,r)}:void 0})});return i==="sse"?yield*S:yield*h.pipe(yT.catchAll(()=>S))})};var rx=1;import{Schema as ah}from"effect";var LN=ah.String.pipe(ah.brand("DocumentId")),MN=ah.String.pipe(ah.brand("ResourceId")),A6=ah.String.pipe(ah.brand("ScopeId")),vD=ah.String.pipe(ah.brand("CapabilityId")),pk=ah.String.pipe(ah.brand("ExecutableId")),xj=ah.String.pipe(ah.brand("ResponseSetId")),_5=ah.String.pipe(ah.brand("DiagnosticId")),xd=ah.String.pipe(ah.brand("ShapeSymbolId")),Tj=ah.String.pipe(ah.brand("ParameterSymbolId")),VJ=ah.String.pipe(ah.brand("RequestBodySymbolId")),SD=ah.String.pipe(ah.brand("ResponseSymbolId")),Ej=ah.String.pipe(ah.brand("HeaderSymbolId")),jN=ah.String.pipe(ah.brand("ExampleSymbolId")),kj=ah.String.pipe(ah.brand("SecuritySchemeSymbolId")),oFt=ah.Union(xd,Tj,VJ,SD,Ej,jN,kj);import*as sFt from"effect/Effect";var aFt=5e3,E1=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),w6=e=>typeof e=="string"&&e.length>0?e:null,BN=e=>{if(e==null)return null;let r=e.trim();return r.length>0?r:null},$N=e=>new URL(e).hostname,vT=e=>{let r=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"");return r.length>0?r:"source"},cFt=e=>{let r=e.trim();if(r.length===0)throw new Error("Source URL is required");let i=new URL(r);if(i.protocol!=="http:"&&i.protocol!=="https:")throw new Error("Source URL must use http or https");return i.toString()},YX=(e,r)=>({...r,suggestedKind:e,supported:!1}),I6=(e,r)=>({...r,suggestedKind:e,supported:!0}),WJ=e=>({suggestedKind:"unknown",confidence:"low",supported:!1,reason:e,headerName:null,prefix:null,parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}),UN=(e,r="high")=>I6("none",{confidence:r,reason:e,headerName:null,prefix:null,parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}),lFt=(e,r)=>{let i=e["www-authenticate"]??e["WWW-Authenticate"];if(!i)return WJ(r);let s=i.toLowerCase();return s.includes("bearer")?I6("bearer",{confidence:s.includes("realm=")?"medium":"low",reason:`Derived from HTTP challenge: ${i}`,headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}):s.includes("basic")?YX("basic",{confidence:"medium",reason:`Derived from HTTP challenge: ${i}`,headerName:"Authorization",prefix:"Basic ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}):WJ(r)},uFt=e=>e==null||e.kind==="none"?{}:e.kind==="headers"?{...e.headers}:e.kind==="basic"?{Authorization:`Basic ${Buffer.from(`${e.username}:${e.password}`).toString("base64")}`}:{[BN(e.headerName)??"Authorization"]:`${e.prefix??"Bearer "}${e.token}`},MBr=e=>{let r={};return e.headers.forEach((i,s)=>{r[s]=i}),r},eY=e=>sFt.tryPromise({try:async()=>{let r;try{r=await fetch(e.url,{method:e.method,headers:e.headers,body:e.body,signal:AbortSignal.timeout(aFt)})}catch(i){throw i instanceof Error&&(i.name==="AbortError"||i.name==="TimeoutError")?new Error(`Source discovery timed out after ${aFt}ms`):i}return{status:r.status,headers:MBr(r),text:await r.text()}},catch:r=>r instanceof Error?r:new Error(String(r))}),Cj=e=>/graphql/i.test(new URL(e).pathname),pFt=e=>{try{return JSON.parse(e)}catch{return null}},_Ft=e=>{let r=e,i=$N(r);return{detectedKind:"unknown",confidence:"low",endpoint:r,specUrl:null,name:i,namespace:vT(i),transport:null,authInference:WJ("Could not infer source kind or auth requirements from the provided URL"),toolCount:null,warnings:["Could not confirm whether the URL is Google Discovery, OpenAPI, GraphQL, or MCP."]}};var Wue=e=>e===null||typeof e!="object"?JSON.stringify(e):Array.isArray(e)?`[${e.map(i=>Wue(i)).join(",")}]`:`{${Object.entries(e).sort(([i],[s])=>i.localeCompare(s)).map(([i,s])=>`${JSON.stringify(i)}:${Wue(s)}`).join(",")}}`,Td=e=>_D(Wue(e)).slice(0,16),x_=e=>e,_k=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},jBr=(...e)=>{let r={};for(let i of e){let s=_k(_k(i).$defs);for(let[l,d]of Object.entries(s))r[l]=d}return Object.keys(r).length>0?r:void 0},tY=(e,...r)=>{let i=jBr(e,...r);return i?{...e,$defs:i}:e},gKe=e=>{let r=_k(e);return r.type==="object"||r.properties!==void 0},rY=e=>{switch(e.kind){case"openapi":return"openapi";case"graphql":return"graphql-schema";case"google_discovery":return"google-discovery";case"mcp":return"mcp";default:return"custom"}},d5=(e,r)=>{let i=e.namespace??vT(e.name);return(i?`${i}.${r}`:r).split(".").filter(l=>l.length>0)},ld=(e,r)=>[{relation:"declared",documentId:e,pointer:r}],f5=e=>({approval:{mayRequire:e!=="read",reasons:e==="delete"?["delete"]:e==="write"||e==="action"?["write"]:[]},elicitation:{mayRequest:!1},resume:{supported:!1}}),R2=e=>({sourceKind:rY(e.source),adapterKey:e.adapterKey,importerVersion:"ir.v1.snapshot_builder",importedAt:new Date().toISOString(),sourceConfigHash:e.source.sourceHash??Td({endpoint:e.source.endpoint,binding:e.source.binding,auth:e.source.auth?.kind??null})}),Gd=e=>{let r=e.summary??void 0,i=e.description??void 0,s=e.externalDocsUrl??void 0;if(!(!r&&!i&&!s))return{...r?{summary:r}:{},...i?{description:i}:{},...s?{externalDocsUrl:s}:{}}},Dj=e=>{let r=jN.make(`example_${Td({pointer:e.pointer,value:e.value})}`);return x_(e.catalog.symbols)[r]={id:r,kind:"example",exampleKind:"value",...e.name?{name:e.name}:{},...Gd({summary:e.summary??null,description:e.description??null})?{docs:Gd({summary:e.summary??null,description:e.description??null})}:{},value:e.value,synthetic:!1,provenance:ld(e.documentId,e.pointer)},r},Vue=(e,r)=>{let i=_k(e),s=_k(i.properties);if(s[r]!==void 0)return s[r]},Gue=(e,r,i)=>{let s=Vue(e,i);if(s!==void 0)return s;let d=Vue(e,r==="header"?"headers":r==="cookie"?"cookies":r);return d===void 0?void 0:Vue(d,i)},nY=e=>Vue(e,"body")??Vue(e,"input"),Hue=e=>{let r=e&&e.length>0?[...e]:["application/json"],i=[...r.filter(s=>s==="application/json"),...r.filter(s=>s!=="application/json"&&s.toLowerCase().includes("+json")),...r.filter(s=>s!=="application/json"&&!s.toLowerCase().includes("+json")&&s.toLowerCase().includes("json")),...r];return[...new Set(i)]},m5=e=>{let r=xj.make(`response_set_${Td({responseId:e.responseId,traits:e.traits})}`);return x_(e.catalog.responseSets)[r]={id:r,variants:[{match:{kind:"range",value:"2XX"},responseId:e.responseId,...e.traits&&e.traits.length>0?{traits:e.traits}:{}}],synthetic:!1,provenance:e.provenance},r},yKe=e=>{let r=xj.make(`response_set_${Td({variants:e.variants.map(i=>({match:i.match,responseId:i.responseId,traits:i.traits}))})}`);return x_(e.catalog.responseSets)[r]={id:r,variants:e.variants,synthetic:!1,provenance:e.provenance},r},vKe=e=>{let r=e.trim().toUpperCase();return/^\d{3}$/.test(r)?{kind:"exact",status:Number(r)}:/^[1-5]XX$/.test(r)?{kind:"range",value:r}:{kind:"default"}};var iY=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{},P6=e=>typeof e=="string"&&e.trim().length>0?e:null,dFt=e=>typeof e=="boolean"?e:null,Fke=e=>typeof e=="number"&&Number.isFinite(e)?e:null,Kue=e=>Array.isArray(e)?e:[],fFt=e=>Kue(e).flatMap(r=>{let i=P6(r);return i===null?[]:[i]}),BBr=e=>e.replace(/~1/g,"/").replace(/~0/g,"~"),$Br=e=>{if(!e.startsWith("#/"))return!1;let r=e.slice(2).split("/").map(BBr);for(let i=0;i{let i=_5.make(`diag_${Td(r)}`);return x_(e.diagnostics)[i]={id:i,...r},i},zBr=e=>({sourceKind:rY(e.source),kind:e.kind,pointer:e.pointer,encoding:"json",...e.summary?{summary:e.summary}:{},value:e.value}),mFt=e=>{let r=new Map,i=new Map,s=new Map,l=[],d=new Set,h=(b,A)=>{if(A==="#"||A.length===0)return b;let L=A.replace(/^#\//,"").split("/").map(j=>j.replace(/~1/g,"/").replace(/~0/g,"~")),V=b;for(let j of L){if(Array.isArray(V)){let ie=Number(j);V=Number.isInteger(ie)?V[ie]:void 0;continue}V=iY(V)[j]}return V},S=(b,A,L)=>{let V=`${e.resourceId}:${A}`,j=r.get(V);if(j){let te=l.indexOf(j);if(te!==-1)for(let X of l.slice(te))d.add(X);return j}let ie=xd.make(`shape_${Td({resourceId:e.resourceId,key:A})}`);r.set(V,ie),l.push(ie);try{let te=iY(b),X=P6(te.title)??void 0,Re=Gd({description:P6(te.description)}),Je=dFt(te.deprecated)??void 0,pt=X!==void 0||$Br(A),$e=(co,Cs={})=>{let Cr=Wue(co),ol=d.has(ie),Zo=ol||pt?void 0:i.get(Cr);if(Zo){let Rc=e.catalog.symbols[Zo];return Rc?.kind==="shape"&&(Rc.title===void 0&&X&&(x_(e.catalog.symbols)[Zo]={...Rc,title:X}),Rc.docs===void 0&&Re&&(x_(e.catalog.symbols)[Zo]={...x_(e.catalog.symbols)[Zo],docs:Re}),Rc.deprecated===void 0&&Je!==void 0&&(x_(e.catalog.symbols)[Zo]={...x_(e.catalog.symbols)[Zo],deprecated:Je})),s.set(ie,Zo),r.set(V,Zo),Zo}return x_(e.catalog.symbols)[ie]={id:ie,kind:"shape",resourceId:e.resourceId,...X?{title:X}:{},...Re?{docs:Re}:{},...Je!==void 0?{deprecated:Je}:{},node:co,synthetic:!1,provenance:ld(e.documentId,A),...Cs.diagnosticIds&&Cs.diagnosticIds.length>0?{diagnosticIds:Cs.diagnosticIds}:{},...Cs.native&&Cs.native.length>0?{native:Cs.native}:{}},!ol&&!pt&&i.set(Cr,ie),ie};if(typeof b=="boolean")return $e({type:"unknown",reason:b?"schema_true":"schema_false"});let xt=P6(te.$ref);if(xt!==null){let co=xt.startsWith("#")?h(L??b,xt):void 0;if(co===void 0){let Cr=UBr(e.catalog,{level:"warning",code:"unresolved_ref",message:`Unresolved JSON schema ref ${xt}`,provenance:ld(e.documentId,A),relatedSymbolIds:[ie]});return $e({type:"unknown",reason:`unresolved_ref:${xt}`},{diagnosticIds:[Cr]}),r.get(V)}let Cs=S(co,xt,L??b);return $e({type:"ref",target:Cs})}let tr=Kue(te.enum);if(tr.length===1)return $e({type:"const",value:tr[0]});if(tr.length>1)return $e({type:"enum",values:tr});if("const"in te)return $e({type:"const",value:te.const});let ht=Kue(te.anyOf);if(ht.length>0)return $e({type:"anyOf",items:ht.map((co,Cs)=>S(co,`${A}/anyOf/${Cs}`,L??b))});let wt=Kue(te.allOf);if(wt.length>0)return $e({type:"allOf",items:wt.map((co,Cs)=>S(co,`${A}/allOf/${Cs}`,L??b))});let Ut=Kue(te.oneOf);if(Ut.length>0)return $e({type:"oneOf",items:Ut.map((co,Cs)=>S(co,`${A}/oneOf/${Cs}`,L??b))});if("if"in te||"then"in te||"else"in te)return $e({type:"conditional",ifShapeId:S(te.if??{},`${A}/if`,L??b),thenShapeId:S(te.then??{},`${A}/then`,L??b),...te.else!==void 0?{elseShapeId:S(te.else,`${A}/else`,L??b)}:{}});if("not"in te)return $e({type:"not",itemShapeId:S(te.not,`${A}/not`,L??b)});let hr=te.type,Hi=Array.isArray(hr)?hr.flatMap(co=>{let Cs=P6(co);return Cs===null?[]:[Cs]}):[],un=dFt(te.nullable)===!0||Hi.includes("null"),xo=Array.isArray(hr)?Hi.find(co=>co!=="null")??null:P6(hr),Lo=co=>($e({type:"nullable",itemShapeId:co}),ie),yr={};for(let co of["format","minLength","maxLength","pattern","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","default","examples"])te[co]!==void 0&&(yr[co]=te[co]);if(xo==="object"||"properties"in te||"additionalProperties"in te||"patternProperties"in te){let co=Object.fromEntries(Object.entries(iY(te.properties)).map(([Rc,an])=>[Rc,{shapeId:S(an,`${A}/properties/${Rc}`,L??b),...Gd({description:P6(iY(an).description)})?{docs:Gd({description:P6(iY(an).description)})}:{}}])),Cs=Object.fromEntries(Object.entries(iY(te.patternProperties)).map(([Rc,an])=>[Rc,S(an,`${A}/patternProperties/${Rc}`,L??b)])),Cr=te.additionalProperties,ol=typeof Cr=="boolean"?Cr:Cr!==void 0?S(Cr,`${A}/additionalProperties`,L??b):void 0,Zo={type:"object",fields:co,...fFt(te.required).length>0?{required:fFt(te.required)}:{},...ol!==void 0?{additionalProperties:ol}:{},...Object.keys(Cs).length>0?{patternProperties:Cs}:{}};if(un){let Rc=S({...te,nullable:!1,type:"object"},`${A}:nonnull`,L??b);return Lo(Rc)}return $e(Zo)}if(xo==="array"||"items"in te||"prefixItems"in te){if(Array.isArray(te.prefixItems)&&te.prefixItems.length>0){let Cr={type:"tuple",itemShapeIds:te.prefixItems.map((ol,Zo)=>S(ol,`${A}/prefixItems/${Zo}`,L??b)),...te.items!==void 0?{additionalItems:typeof te.items=="boolean"?te.items:S(te.items,`${A}/items`,L??b)}:{}};if(un){let ol=S({...te,nullable:!1,type:"array"},`${A}:nonnull`,L??b);return Lo(ol)}return $e(Cr)}let co=te.items??{},Cs={type:"array",itemShapeId:S(co,`${A}/items`,L??b),...Fke(te.minItems)!==null?{minItems:Fke(te.minItems)}:{},...Fke(te.maxItems)!==null?{maxItems:Fke(te.maxItems)}:{}};if(un){let Cr=S({...te,nullable:!1,type:"array"},`${A}:nonnull`,L??b);return Lo(Cr)}return $e(Cs)}if(xo==="string"||xo==="number"||xo==="integer"||xo==="boolean"||xo==="null"){let co=xo==="null"?"null":xo==="integer"?"integer":xo==="number"?"number":xo==="boolean"?"boolean":P6(te.format)==="binary"?"bytes":"string",Cs={type:"scalar",scalar:co,...P6(te.format)?{format:P6(te.format)}:{},...Object.keys(yr).length>0?{constraints:yr}:{}};if(un&&co!=="null"){let Cr=S({...te,nullable:!1,type:xo},`${A}:nonnull`,L??b);return Lo(Cr)}return $e(Cs)}return $e({type:"unknown",reason:`unsupported_schema:${A}`},{native:[zBr({source:e.source,kind:"json_schema",pointer:A,value:b,summary:"Unsupported JSON schema preserved natively"})]})}finally{if(l.pop()!==ie)throw new Error(`JSON schema importer stack mismatch for ${ie}`)}};return{importSchema:(b,A,L)=>S(b,A,L??b),finalize:()=>{let b=A=>{if(typeof A!="string"&&!(!A||typeof A!="object")){if(Array.isArray(A)){for(let L=0;LA6.make(`scope_service_${Td({sourceId:e.id})}`),hFt=(e,r)=>LN.make(`doc_${Td({sourceId:e.id,key:r})}`),JBr=e=>MN.make(`res_${Td({sourceId:e.id})}`),VBr=e=>({sourceKind:rY(e.source),kind:e.kind,pointer:e.pointer,encoding:"json",...e.summary?{summary:e.summary}:{},value:e.value}),WBr=()=>({version:"ir.v1.fragment",documents:{},resources:{},scopes:{},symbols:{},capabilities:{},executables:{},responseSets:{},diagnostics:{}}),GBr=e=>({version:"ir.v1.fragment",...Object.keys(e.documents).length>0?{documents:e.documents}:{},...Object.keys(e.resources).length>0?{resources:e.resources}:{},...Object.keys(e.scopes).length>0?{scopes:e.scopes}:{},...Object.keys(e.symbols).length>0?{symbols:e.symbols}:{},...Object.keys(e.capabilities).length>0?{capabilities:e.capabilities}:{},...Object.keys(e.executables).length>0?{executables:e.executables}:{},...Object.keys(e.responseSets).length>0?{responseSets:e.responseSets}:{},...Object.keys(e.diagnostics).length>0?{diagnostics:e.diagnostics}:{}}),HBr=e=>{let r=qBr(e.source);return x_(e.catalog.scopes)[r]={id:r,kind:"service",name:e.source.name,namespace:e.source.namespace??vT(e.source.name),docs:Gd({summary:e.source.name}),...e.defaults?{defaults:e.defaults}:{},synthetic:!1,provenance:ld(e.documentId,"#/service")},r},h5=e=>{let r=WBr(),i=e.documents.length>0?e.documents:[{documentKind:"synthetic",documentKey:e.source.endpoint,fetchedAt:Date.now(),contentText:"{}"}],s=i[0],l=s.documentKey??e.source.endpoint??e.source.id,d=hFt(e.source,`${s.documentKind}:${s.documentKey}`),h=JBr(e.source);for(let A of i){let L=hFt(e.source,`${A.documentKind}:${A.documentKey}`);x_(r.documents)[L]={id:L,kind:rY(e.source),title:e.source.name,fetchedAt:new Date(A.fetchedAt??Date.now()).toISOString(),rawRef:A.documentKey,entryUri:A.documentKey.startsWith("http")?A.documentKey:void 0,native:[VBr({source:e.source,kind:"source_document",pointer:`#/${A.documentKind}`,value:A.contentText,summary:A.documentKind})]}}x_(r.resources)[h]={id:h,documentId:d,canonicalUri:l,baseUri:l,...e.resourceDialectUri?{dialectUri:e.resourceDialectUri}:{},anchors:{},dynamicAnchors:{},synthetic:!1,provenance:ld(d,"#")};let S=HBr({catalog:r,source:e.source,documentId:d,defaults:e.serviceScopeDefaults}),b=mFt({catalog:r,source:e.source,resourceId:h,documentId:d});return e.registerOperations({catalog:r,documentId:d,serviceScopeId:S,importer:b}),b.finalize(),GBr(r)};import*as TKe from"effect/ParseResult";import{Schema as EKe}from"effect";import{Schema as mt}from"effect";var SKe=mt.Literal("openapi","graphql-schema","google-discovery","mcp","custom"),KBr=mt.Literal("service","document","resource","pathItem","operation","folder"),QBr=mt.Literal("read","write","delete","action","subscribe"),ZBr=mt.Literal("path","query","header","cookie"),XBr=mt.Literal("success","redirect","stream","download","upload","longRunning"),YBr=mt.Literal("oauth2","http","apiKey","basic","bearer","custom"),e$r=mt.Literal("1XX","2XX","3XX","4XX","5XX"),t$r=mt.Literal("cursor","offset","token","unknown"),r$r=mt.Literal("info","warning","error"),n$r=mt.Literal("external_ref_bundled","relative_ref_rebased","schema_hoisted","selection_shape_synthesized","opaque_hook_imported","discriminator_lost","multi_response_union_synthesized","unsupported_link_preserved_native","unsupported_callback_preserved_native","unresolved_ref","merge_conflict_preserved_first","projection_call_shape_synthesized","projection_result_shape_synthesized","projection_collision_grouped_fields","synthetic_resource_context_created","selection_shape_missing"),i$r=mt.Literal("json","yaml","graphql","text","unknown"),o$r=mt.Literal("declared","hoisted","derived","merged","projected"),zN=mt.Struct({summary:mt.optional(mt.String),description:mt.optional(mt.String),externalDocsUrl:mt.optional(mt.String)}),yFt=mt.Struct({relation:o$r,documentId:LN,resourceId:mt.optional(MN),pointer:mt.optional(mt.String),line:mt.optional(mt.Number),column:mt.optional(mt.Number)}),vFt=mt.Struct({sourceKind:SKe,kind:mt.String,pointer:mt.optional(mt.String),encoding:mt.optional(i$r),summary:mt.optional(mt.String),value:mt.optional(mt.Unknown)}),Ww=mt.Struct({synthetic:mt.Boolean,provenance:mt.Array(yFt),diagnosticIds:mt.optional(mt.Array(_5)),native:mt.optional(mt.Array(vFt))}),a$r=mt.Struct({sourceKind:SKe,adapterKey:mt.String,importerVersion:mt.String,importedAt:mt.String,sourceConfigHash:mt.String}),SFt=mt.Struct({id:LN,kind:SKe,title:mt.optional(mt.String),versionHint:mt.optional(mt.String),fetchedAt:mt.String,rawRef:mt.String,entryUri:mt.optional(mt.String),native:mt.optional(mt.Array(vFt))}),bFt=mt.Struct({shapeId:xd,docs:mt.optional(zN),deprecated:mt.optional(mt.Boolean),exampleIds:mt.optional(mt.Array(jN))}),s$r=mt.Struct({propertyName:mt.String,mapping:mt.optional(mt.Record({key:mt.String,value:xd}))}),c$r=mt.Struct({type:mt.Literal("scalar"),scalar:mt.Literal("string","number","integer","boolean","null","bytes"),format:mt.optional(mt.String),constraints:mt.optional(mt.Record({key:mt.String,value:mt.Unknown}))}),l$r=mt.Struct({type:mt.Literal("unknown"),reason:mt.optional(mt.String)}),u$r=mt.Struct({type:mt.Literal("const"),value:mt.Unknown}),p$r=mt.Struct({type:mt.Literal("enum"),values:mt.Array(mt.Unknown)}),_$r=mt.Struct({type:mt.Literal("object"),fields:mt.Record({key:mt.String,value:bFt}),required:mt.optional(mt.Array(mt.String)),additionalProperties:mt.optional(mt.Union(mt.Boolean,xd)),patternProperties:mt.optional(mt.Record({key:mt.String,value:xd}))}),d$r=mt.Struct({type:mt.Literal("array"),itemShapeId:xd,minItems:mt.optional(mt.Number),maxItems:mt.optional(mt.Number)}),f$r=mt.Struct({type:mt.Literal("tuple"),itemShapeIds:mt.Array(xd),additionalItems:mt.optional(mt.Union(mt.Boolean,xd))}),m$r=mt.Struct({type:mt.Literal("map"),valueShapeId:xd}),h$r=mt.Struct({type:mt.Literal("allOf"),items:mt.Array(xd)}),g$r=mt.Struct({type:mt.Literal("anyOf"),items:mt.Array(xd)}),y$r=mt.Struct({type:mt.Literal("oneOf"),items:mt.Array(xd),discriminator:mt.optional(s$r)}),v$r=mt.Struct({type:mt.Literal("nullable"),itemShapeId:xd}),S$r=mt.Struct({type:mt.Literal("ref"),target:xd}),b$r=mt.Struct({type:mt.Literal("not"),itemShapeId:xd}),x$r=mt.Struct({type:mt.Literal("conditional"),ifShapeId:xd,thenShapeId:mt.optional(xd),elseShapeId:mt.optional(xd)}),T$r=mt.Struct({type:mt.Literal("graphqlInterface"),fields:mt.Record({key:mt.String,value:bFt}),possibleTypeIds:mt.Array(xd)}),E$r=mt.Struct({type:mt.Literal("graphqlUnion"),memberTypeIds:mt.Array(xd)}),k$r=mt.Union(l$r,c$r,u$r,p$r,_$r,d$r,f$r,m$r,h$r,g$r,y$r,v$r,S$r,b$r,x$r,T$r,E$r),gFt=mt.Struct({shapeId:xd,pointer:mt.optional(mt.String)}),xFt=mt.extend(mt.Struct({id:MN,documentId:LN,canonicalUri:mt.String,baseUri:mt.String,dialectUri:mt.optional(mt.String),rootShapeId:mt.optional(xd),anchors:mt.Record({key:mt.String,value:gFt}),dynamicAnchors:mt.Record({key:mt.String,value:gFt})}),Ww),C$r=mt.Union(mt.Struct({location:mt.Literal("header","query","cookie"),name:mt.String}),mt.Struct({location:mt.Literal("body"),path:mt.String})),D$r=mt.Struct({authorizationUrl:mt.optional(mt.String),tokenUrl:mt.optional(mt.String),refreshUrl:mt.optional(mt.String),scopes:mt.optional(mt.Record({key:mt.String,value:mt.String}))}),A$r=mt.Struct({in:mt.optional(mt.Literal("header","query","cookie")),name:mt.optional(mt.String)}),w$r=mt.extend(mt.Struct({id:kj,kind:mt.Literal("securityScheme"),schemeType:YBr,docs:mt.optional(zN),placement:mt.optional(A$r),http:mt.optional(mt.Struct({scheme:mt.String,bearerFormat:mt.optional(mt.String)})),apiKey:mt.optional(mt.Struct({in:mt.Literal("header","query","cookie"),name:mt.String})),oauth:mt.optional(mt.Struct({flows:mt.optional(mt.Record({key:mt.String,value:D$r})),scopes:mt.optional(mt.Record({key:mt.String,value:mt.String}))})),custom:mt.optional(mt.Struct({placementHints:mt.optional(mt.Array(C$r))}))}),Ww),I$r=mt.Struct({contentType:mt.optional(mt.String),style:mt.optional(mt.String),explode:mt.optional(mt.Boolean),allowReserved:mt.optional(mt.Boolean),headers:mt.optional(mt.Array(Ej))}),Lke=mt.Struct({mediaType:mt.String,shapeId:mt.optional(xd),exampleIds:mt.optional(mt.Array(jN)),encoding:mt.optional(mt.Record({key:mt.String,value:I$r}))}),P$r=mt.extend(mt.Struct({id:xd,kind:mt.Literal("shape"),resourceId:mt.optional(MN),title:mt.optional(mt.String),docs:mt.optional(zN),deprecated:mt.optional(mt.Boolean),node:k$r}),Ww),N$r=mt.extend(mt.Struct({id:Tj,kind:mt.Literal("parameter"),name:mt.String,location:ZBr,required:mt.optional(mt.Boolean),docs:mt.optional(zN),deprecated:mt.optional(mt.Boolean),exampleIds:mt.optional(mt.Array(jN)),schemaShapeId:mt.optional(xd),content:mt.optional(mt.Array(Lke)),style:mt.optional(mt.String),explode:mt.optional(mt.Boolean),allowReserved:mt.optional(mt.Boolean)}),Ww),O$r=mt.extend(mt.Struct({id:Ej,kind:mt.Literal("header"),name:mt.String,docs:mt.optional(zN),deprecated:mt.optional(mt.Boolean),exampleIds:mt.optional(mt.Array(jN)),schemaShapeId:mt.optional(xd),content:mt.optional(mt.Array(Lke)),style:mt.optional(mt.String),explode:mt.optional(mt.Boolean)}),Ww),F$r=mt.extend(mt.Struct({id:VJ,kind:mt.Literal("requestBody"),docs:mt.optional(zN),required:mt.optional(mt.Boolean),contents:mt.Array(Lke)}),Ww),R$r=mt.extend(mt.Struct({id:SD,kind:mt.Literal("response"),docs:mt.optional(zN),headerIds:mt.optional(mt.Array(Ej)),contents:mt.optional(mt.Array(Lke))}),Ww),L$r=mt.extend(mt.Struct({id:jN,kind:mt.Literal("example"),name:mt.optional(mt.String),docs:mt.optional(zN),exampleKind:mt.Literal("value","call"),value:mt.optional(mt.Unknown),externalValue:mt.optional(mt.String),call:mt.optional(mt.Struct({args:mt.Record({key:mt.String,value:mt.Unknown}),result:mt.optional(mt.Unknown)}))}),Ww),TFt=mt.Union(P$r,N$r,F$r,R$r,O$r,L$r,w$r),Rke=mt.suspend(()=>mt.Union(mt.Struct({kind:mt.Literal("none")}),mt.Struct({kind:mt.Literal("scheme"),schemeId:kj,scopes:mt.optional(mt.Array(mt.String))}),mt.Struct({kind:mt.Literal("allOf"),items:mt.Array(Rke)}),mt.Struct({kind:mt.Literal("anyOf"),items:mt.Array(Rke)}))),M$r=mt.Struct({url:mt.String,description:mt.optional(mt.String),variables:mt.optional(mt.Record({key:mt.String,value:mt.String}))}),j$r=mt.Struct({servers:mt.optional(mt.Array(M$r)),auth:mt.optional(Rke),parameterIds:mt.optional(mt.Array(Tj)),headerIds:mt.optional(mt.Array(Ej)),variables:mt.optional(mt.Record({key:mt.String,value:mt.String}))}),EFt=mt.extend(mt.Struct({id:A6,kind:KBr,parentId:mt.optional(A6),name:mt.optional(mt.String),namespace:mt.optional(mt.String),docs:mt.optional(zN),defaults:mt.optional(j$r)}),Ww),B$r=mt.Struct({approval:mt.Struct({mayRequire:mt.Boolean,reasons:mt.optional(mt.Array(mt.Literal("write","delete","sensitive","externalSideEffect")))}),elicitation:mt.Struct({mayRequest:mt.Boolean,shapeId:mt.optional(xd)}),resume:mt.Struct({supported:mt.Boolean})}),kFt=mt.extend(mt.Struct({id:vD,serviceScopeId:A6,surface:mt.Struct({toolPath:mt.Array(mt.String),title:mt.optional(mt.String),summary:mt.optional(mt.String),description:mt.optional(mt.String),aliases:mt.optional(mt.Array(mt.String)),tags:mt.optional(mt.Array(mt.String))}),semantics:mt.Struct({effect:QBr,safe:mt.optional(mt.Boolean),idempotent:mt.optional(mt.Boolean),destructive:mt.optional(mt.Boolean)}),docs:mt.optional(zN),auth:Rke,interaction:B$r,executableIds:mt.Array(pk),preferredExecutableId:mt.optional(pk),exampleIds:mt.optional(mt.Array(jN))}),Ww),$$r=mt.Struct({protocol:mt.optional(mt.String),method:mt.optional(mt.NullOr(mt.String)),pathTemplate:mt.optional(mt.NullOr(mt.String)),operationId:mt.optional(mt.NullOr(mt.String)),group:mt.optional(mt.NullOr(mt.String)),leaf:mt.optional(mt.NullOr(mt.String)),rawToolId:mt.optional(mt.NullOr(mt.String)),title:mt.optional(mt.NullOr(mt.String)),summary:mt.optional(mt.NullOr(mt.String))}),U$r=mt.Struct({responseSetId:xj,callShapeId:xd,resultDataShapeId:mt.optional(xd),resultErrorShapeId:mt.optional(xd),resultHeadersShapeId:mt.optional(xd),resultStatusShapeId:mt.optional(xd)}),CFt=mt.extend(mt.Struct({id:pk,capabilityId:vD,scopeId:A6,adapterKey:mt.String,bindingVersion:mt.Number,binding:mt.Unknown,projection:U$r,display:mt.optional($$r)}),Ww),z$r=mt.Struct({kind:t$r,tokenParamName:mt.optional(mt.String),nextFieldPath:mt.optional(mt.String)}),q$r=mt.Union(mt.Struct({kind:mt.Literal("exact"),status:mt.Number}),mt.Struct({kind:mt.Literal("range"),value:e$r}),mt.Struct({kind:mt.Literal("default")})),J$r=mt.Struct({match:q$r,responseId:SD,traits:mt.optional(mt.Array(XBr)),pagination:mt.optional(z$r)}),DFt=mt.extend(mt.Struct({id:xj,variants:mt.Array(J$r)}),Ww),AFt=mt.Struct({id:_5,level:r$r,code:n$r,message:mt.String,relatedSymbolIds:mt.optional(mt.Array(oFt)),provenance:mt.Array(yFt)}),bKe=mt.Struct({version:mt.Literal("ir.v1"),documents:mt.Record({key:LN,value:SFt}),resources:mt.Record({key:MN,value:xFt}),scopes:mt.Record({key:A6,value:EFt}),symbols:mt.Record({key:mt.String,value:TFt}),capabilities:mt.Record({key:vD,value:kFt}),executables:mt.Record({key:pk,value:CFt}),responseSets:mt.Record({key:xj,value:DFt}),diagnostics:mt.Record({key:_5,value:AFt})}),wFt=mt.Struct({version:mt.Literal("ir.v1.fragment"),documents:mt.optional(mt.Record({key:LN,value:SFt})),resources:mt.optional(mt.Record({key:MN,value:xFt})),scopes:mt.optional(mt.Record({key:A6,value:EFt})),symbols:mt.optional(mt.Record({key:mt.String,value:TFt})),capabilities:mt.optional(mt.Record({key:vD,value:kFt})),executables:mt.optional(mt.Record({key:pk,value:CFt})),responseSets:mt.optional(mt.Record({key:xj,value:DFt})),diagnostics:mt.optional(mt.Record({key:_5,value:AFt}))}),Que=mt.Struct({version:mt.Literal("ir.v1.snapshot"),import:a$r,catalog:bKe});var V$r=EKe.decodeUnknownSync(bKe),W$r=EKe.decodeUnknownSync(Que),bBn=EKe.decodeUnknownSync(wFt),oY=e=>e===null||typeof e!="object"?JSON.stringify(e):Array.isArray(e)?`[${e.map(i=>oY(i)).join(",")}]`:`{${Object.entries(e).sort(([i],[s])=>i.localeCompare(s)).map(([i,s])=>`${JSON.stringify(i)}:${oY(s)}`).join(",")}}`,NFt=e=>_D(oY(e)).slice(0,16),GJ=e=>[...new Set(e)],G$r=e=>({version:e.version,documents:{...e.documents},resources:{...e.resources},scopes:{...e.scopes},symbols:{...e.symbols},capabilities:{...e.capabilities},executables:{...e.executables},responseSets:{...e.responseSets},diagnostics:{...e.diagnostics}}),Mke=e=>e,kKe=(e,r,i)=>e(`${r}_${NFt(i)}`),H$r=()=>({version:"ir.v1",documents:{},resources:{},scopes:{},symbols:{},capabilities:{},executables:{},responseSets:{},diagnostics:{}}),OFt=(e,r)=>{switch(r.kind){case"none":return["none"];case"scheme":{let i=e.symbols[r.schemeId];return!i||i.kind!=="securityScheme"?["unknown"]:[i.schemeType,...(r.scopes??[]).map(s=>`scope:${s}`)]}case"allOf":case"anyOf":return GJ(r.items.flatMap(i=>OFt(e,i)))}};var K$r=(e,r)=>{let i=e.symbols[r];return i&&i.kind==="response"?i:void 0},Q$r=e=>{let r=e.trim().toLowerCase();return r==="application/json"||r.endsWith("+json")||r==="text/json"},CKe=(e,r)=>{let i=kKe(_5.make,"diag",r.idSeed);return Mke(e.diagnostics)[i]={id:i,level:r.level,code:r.code,message:r.message,...r.relatedSymbolIds?{relatedSymbolIds:r.relatedSymbolIds}:{},provenance:r.provenance},i},Z$r=(e,r)=>{let i=kKe(MN.make,"res",{kind:"projection",capabilityId:r.id});if(!e.resources[i]){let l=e.scopes[r.serviceScopeId]?.provenance[0]?.documentId??LN.make(`doc_projection_${NFt(r.id)}`);e.documents[l]||(Mke(e.documents)[l]={id:l,kind:"custom",title:`Projection resource for ${r.id}`,fetchedAt:new Date(0).toISOString(),rawRef:`synthetic://projection/${r.id}`}),Mke(e.resources)[i]={id:i,documentId:l,canonicalUri:`synthetic://projection/${r.id}`,baseUri:`synthetic://projection/${r.id}`,anchors:{},dynamicAnchors:{},synthetic:!0,provenance:r.provenance},CKe(e,{idSeed:{code:"synthetic_resource_context_created",capabilityId:r.id},level:"info",code:"synthetic_resource_context_created",message:`Created synthetic projection resource for ${r.id}`,provenance:r.provenance})}return i},Aj=(e,r)=>{let i=Z$r(e,r.capability),s=kKe(xd.make,"shape",{capabilityId:r.capability.id,label:r.label,node:r.node});if(!e.symbols[s]){let l=r.diagnostic?[CKe(e,{idSeed:{code:r.diagnostic.code,shapeId:s},level:r.diagnostic.level,code:r.diagnostic.code,message:r.diagnostic.message,...r.diagnostic.relatedSymbolIds?{relatedSymbolIds:r.diagnostic.relatedSymbolIds}:{},provenance:r.capability.provenance})]:void 0;Mke(e.symbols)[s]={id:s,kind:"shape",resourceId:i,...r.title?{title:r.title}:{},...r.docs?{docs:r.docs}:{},node:r.node,synthetic:!0,provenance:r.capability.provenance,...l?{diagnosticIds:l}:{}}}return s},X$r=(e,r,i,s)=>{let l=GJ((i??[]).map(d=>d.shapeId).filter(d=>d!==void 0));if(l.length!==0)return l.length===1?l[0]:Aj(e,{capability:r,label:s,title:`${r.surface.title??r.id} content union`,node:{type:"anyOf",items:l},diagnostic:{level:"warning",code:"projection_result_shape_synthesized",message:`Synthesized content union for ${r.id}`,relatedSymbolIds:l}})},Y$r=(e,r)=>{let i=r.preferredExecutableId;if(i){let l=e.executables[i];if(l)return l}let s=r.executableIds.map(l=>e.executables[l]).filter(l=>l!==void 0);if(s.length===0)throw new Error(`Capability ${r.id} has no executables`);return s[0]},eUr=e=>{switch(e.kind){case"exact":return e.status===200?100:e.status>=200&&e.status<300?80:10;case"range":return e.value==="2XX"?60:5;case"default":return 40}},IFt=e=>(e.contents??[]).flatMap(r=>r.shapeId?[{mediaType:r.mediaType,shapeId:r.shapeId}]:[]),FFt=(e,r)=>[...r.variants].map(i=>{let s=K$r(e,i.responseId);return s?{variant:i,response:s,score:eUr(i.match)}:null}).filter(i=>i!==null),RFt=e=>{switch(e.kind){case"exact":return e.status>=200&&e.status<300;case"range":return e.value==="2XX";case"default":return!1}},LFt=(e,r,i,s,l)=>{let d=l.flatMap(({response:S})=>IFt(S).filter(b=>Q$r(b.mediaType)));if(d.length>0)return X$r(e,r,d.map(S=>({mediaType:S.mediaType,shapeId:S.shapeId})),`${i}:json`);let h=GJ(l.flatMap(({response:S})=>IFt(S).map(b=>b.shapeId)));if(h.length!==0)return h.length===1?h[0]:Aj(e,{capability:r,label:`${i}:union`,title:s,node:{type:"anyOf",items:h},diagnostic:{level:"warning",code:"multi_response_union_synthesized",message:`Synthesized response union for ${r.id}`,relatedSymbolIds:h}})},tUr=(e,r,i)=>LFt(e,r,`responseSet:${i.id}`,`${r.surface.title??r.id} result`,FFt(e,i).filter(({variant:s})=>RFt(s.match))),rUr=(e,r,i)=>LFt(e,r,`responseSet:${i.id}:error`,`${r.surface.title??r.id} error`,FFt(e,i).filter(({variant:s})=>!RFt(s.match))),MFt=(e,r,i)=>Aj(e,{capability:r,label:i.label,title:i.title,node:{type:"scalar",scalar:i.scalar}}),nUr=(e,r,i)=>Aj(e,{capability:r,label:i,title:"null",node:{type:"const",value:null}}),PFt=(e,r,i)=>Aj(e,{capability:r,label:i.label,title:i.title,node:{type:"unknown",reason:i.reason}}),xKe=(e,r,i)=>{let s=nUr(e,r,`${i.label}:null`);return i.baseShapeId===s?s:Aj(e,{capability:r,label:`${i.label}:nullable`,title:i.title,node:{type:"anyOf",items:GJ([i.baseShapeId,s])}})},iUr=(e,r,i)=>{let s=MFt(e,r,{label:`${i}:value`,title:"Header value",scalar:"string"});return Aj(e,{capability:r,label:i,title:"Response headers",node:{type:"object",fields:{},additionalProperties:s}})},oUr=(e,r,i,s)=>{let l=PFt(e,r,{label:`executionResult:${r.id}:data:unknown`,title:"Response data",reason:`Execution result data for ${r.id} is not statically known`}),d=PFt(e,r,{label:`executionResult:${r.id}:error:unknown`,title:"Response error",reason:`Execution result error for ${r.id} is not statically known`}),h=iUr(e,r,`executionResult:${r.id}:headers`),S=MFt(e,r,{label:`executionResult:${r.id}:status`,title:"Response status",scalar:"integer"}),b,A,L=h,V=S;b=i.projection.resultDataShapeId??tUr(e,r,s),A=i.projection.resultErrorShapeId??rUr(e,r,s),L=i.projection.resultHeadersShapeId??h,V=i.projection.resultStatusShapeId??S;let j=xKe(e,r,{label:`executionResult:${r.id}:data`,title:"Result data",baseShapeId:b??l}),ie=xKe(e,r,{label:`executionResult:${r.id}:error`,title:"Result error",baseShapeId:A??d}),te=xKe(e,r,{label:`executionResult:${r.id}:status`,title:"Result status",baseShapeId:V});return Aj(e,{capability:r,label:`executionResult:${r.id}`,title:`${r.surface.title??r.id} result`,node:{type:"object",fields:{data:{shapeId:j,docs:{description:"Successful result payload when available."}},error:{shapeId:ie,docs:{description:"Error payload when the remote execution completed but failed."}},headers:{shapeId:L,docs:{description:"Response headers when available."}},status:{shapeId:te,docs:{description:"Transport status code when available."}}},required:["data","error","headers","status"],additionalProperties:!1},diagnostic:{level:"info",code:"projection_result_shape_synthesized",message:`Synthesized execution result envelope for ${r.id}`,relatedSymbolIds:GJ([j,ie,L,te])}})},aUr=(e,r)=>{let i=Y$r(e,r),s=e.responseSets[i.projection.responseSetId];if(!s)throw new Error(`Missing response set ${i.projection.responseSetId} for ${r.id}`);let l=i.projection.callShapeId,d=oUr(e,r,i,s),S=GJ([...r.diagnosticIds??[],...i.diagnosticIds??[],...s.diagnosticIds??[],...l?e.symbols[l]?.diagnosticIds??[]:[],...d?e.symbols[d]?.diagnosticIds??[]:[]]).map(b=>e.diagnostics[b]).filter(b=>b!==void 0);return{toolPath:[...r.surface.toolPath],capabilityId:r.id,...r.surface.title?{title:r.surface.title}:{},...r.surface.summary?{summary:r.surface.summary}:{},effect:r.semantics.effect,interaction:{mayRequireApproval:r.interaction.approval.mayRequire,mayElicit:r.interaction.elicitation.mayRequest},callShapeId:l,...d?{resultShapeId:d}:{},responseSetId:i.projection.responseSetId,diagnosticCounts:{warning:S.filter(b=>b.level==="warning").length,error:S.filter(b=>b.level==="error").length}}},sUr=(e,r,i)=>({capabilityId:r.id,toolPath:[...r.surface.toolPath],...r.surface.summary?{summary:r.surface.summary}:{},executableIds:[...r.executableIds],auth:r.auth,interaction:r.interaction,callShapeId:i.callShapeId,...i.resultShapeId?{resultShapeId:i.resultShapeId}:{},responseSetId:i.responseSetId,...r.diagnosticIds?{diagnosticIds:[...r.diagnosticIds]}:{}}),cUr=(e,r)=>({capabilityId:r.id,toolPath:[...r.surface.toolPath],...r.surface.title?{title:r.surface.title}:{},...r.surface.summary?{summary:r.surface.summary}:{},...r.surface.tags?{tags:[...r.surface.tags]}:{},protocolHints:GJ(r.executableIds.map(i=>e.executables[i]?.display?.protocol??e.executables[i]?.adapterKey).filter(i=>i!==void 0)),authHints:OFt(e,r.auth),effect:r.semantics.effect});var jFt=e=>{try{return V$r(e)}catch(r){throw new Error(TKe.TreeFormatter.formatErrorSync(r))}};var jke=e=>{try{let r=W$r(e);return DKe(r.catalog),r}catch(r){throw r instanceof Error?r:new Error(TKe.TreeFormatter.formatErrorSync(r))}};var lUr=e=>{let r=DKe(jFt(e.catalog));return{version:"ir.v1.snapshot",import:e.import,catalog:r}},aY=e=>lUr({import:e.import,catalog:uUr(e.fragments)}),uUr=e=>{let r=H$r(),i=new Map,s=(l,d)=>{if(!d)return;let h=r[l];for(let[S,b]of Object.entries(d)){let A=h[S];if(!A){h[S]=b,i.set(`${String(l)}:${S}`,oY(b));continue}let L=i.get(`${String(l)}:${S}`)??oY(A),V=oY(b);L!==V&&l!=="diagnostics"&&CKe(r,{idSeed:{collectionName:l,id:S,existingHash:L,nextHash:V},level:"error",code:"merge_conflict_preserved_first",message:`Conflicting ${String(l)} entry for ${S}; preserved first value`,provenance:"provenance"in A?A.provenance:[]})}};for(let l of e)s("documents",l.documents),s("resources",l.resources),s("scopes",l.scopes),s("symbols",l.symbols),s("capabilities",l.capabilities),s("executables",l.executables),s("responseSets",l.responseSets),s("diagnostics",l.diagnostics);return DKe(jFt(r))},pUr=e=>{let r=[],i=s=>{for(let l of s.provenance)e.documents[l.documentId]||r.push({code:"missing_provenance_document",entityId:s.entityId,message:`Entity ${s.entityId} references missing provenance document ${l.documentId}`})};for(let s of Object.values(e.symbols))s.provenance.length===0&&r.push({code:"missing_symbol_provenance",entityId:s.id,message:`Symbol ${s.id} is missing provenance`}),s.kind==="shape"&&(!s.resourceId&&!s.synthetic&&r.push({code:"missing_resource_context",entityId:s.id,message:`Shape ${s.id} must belong to a resource or be synthetic`}),s.node.type==="ref"&&!e.symbols[s.node.target]&&r.push({code:"missing_reference_target",entityId:s.id,message:`Shape ${s.id} references missing shape ${s.node.target}`}),s.node.type==="unknown"&&s.node.reason?.includes("unresolved")&&((s.diagnosticIds??[]).map(d=>e.diagnostics[d]).some(d=>d?.code==="unresolved_ref")||r.push({code:"missing_unresolved_ref_diagnostic",entityId:s.id,message:`Shape ${s.id} is unresolved but has no unresolved_ref diagnostic`})),s.synthetic&&s.resourceId&&!e.resources[s.resourceId]&&r.push({code:"missing_resource_context",entityId:s.id,message:`Synthetic shape ${s.id} references missing resource ${s.resourceId}`})),i({entityId:s.id,provenance:s.provenance});for(let s of[...Object.values(e.resources),...Object.values(e.scopes),...Object.values(e.capabilities),...Object.values(e.executables),...Object.values(e.responseSets)])"provenance"in s&&s.provenance.length===0&&r.push({code:"missing_entity_provenance",entityId:"id"in s?s.id:void 0,message:`Entity ${"id"in s?s.id:"unknown"} is missing provenance`}),"id"in s&&i({entityId:s.id,provenance:s.provenance});for(let s of Object.values(e.resources))e.documents[s.documentId]||r.push({code:"missing_document",entityId:s.id,message:`Resource ${s.id} references missing document ${s.documentId}`});for(let s of Object.values(e.capabilities)){e.scopes[s.serviceScopeId]||r.push({code:"missing_service_scope",entityId:s.id,message:`Capability ${s.id} references missing scope ${s.serviceScopeId}`}),s.preferredExecutableId&&!s.executableIds.includes(s.preferredExecutableId)&&r.push({code:"invalid_preferred_executable",entityId:s.id,message:`Capability ${s.id} preferred executable is not in executableIds`});for(let l of s.executableIds)e.executables[l]||r.push({code:"missing_executable",entityId:s.id,message:`Capability ${s.id} references missing executable ${l}`})}for(let s of Object.values(e.executables)){e.capabilities[s.capabilityId]||r.push({code:"missing_executable",entityId:s.id,message:`Executable ${s.id} references missing capability ${s.capabilityId}`}),e.scopes[s.scopeId]||r.push({code:"missing_scope",entityId:s.id,message:`Executable ${s.id} references missing scope ${s.scopeId}`}),e.responseSets[s.projection.responseSetId]||r.push({code:"missing_response_set",entityId:s.id,message:`Executable ${s.id} references missing response set ${s.projection.responseSetId}`});let l=[{kind:"call",shapeId:s.projection.callShapeId},{kind:"result data",shapeId:s.projection.resultDataShapeId},{kind:"result error",shapeId:s.projection.resultErrorShapeId},{kind:"result headers",shapeId:s.projection.resultHeadersShapeId},{kind:"result status",shapeId:s.projection.resultStatusShapeId}];for(let d of l)!d.shapeId||e.symbols[d.shapeId]?.kind==="shape"||r.push({code:"missing_projection_shape",entityId:s.id,message:`Executable ${s.id} references missing ${d.kind} shape ${d.shapeId}`})}return r},DKe=e=>{let r=pUr(e);if(r.length===0)return e;let i=r.slice(0,5).map(s=>`${s.code}: ${s.message}`).join(` -`);throw new Error([`Invalid IR catalog (${r.length} invariant violation${r.length===1?"":"s"}).`,i,...r.length>5?[`...and ${String(r.length-5)} more`]:[]].join(` -`))},Zue=e=>{let r=G$r(e.catalog),i={},s={},l={},d=Object.values(r.capabilities).sort((h,S)=>h.id.localeCompare(S.id));for(let h of d){let S=aUr(r,h);i[h.id]=S,s[h.id]=cUr(r,h),l[h.id]=sUr(r,h,S)}return{catalog:r,toolDescriptors:i,searchDocs:s,capabilityViews:l}};var Xue=e=>_D(e),qN=e=>e,Yue=e=>aY({import:e.importMetadata,fragments:[e.fragment]});import*as UFt from"effect/Schema";var BFt=e=>{let r=new Map(e.map(d=>[d.key,d])),i=d=>{let h=r.get(d);if(!h)throw new Error(`Unsupported source adapter: ${d}`);return h},s=d=>i(d.kind);return{adapters:e,getSourceAdapter:i,getSourceAdapterForSource:s,findSourceAdapterByProviderKey:d=>e.find(h=>h.providerKey===d)??null,sourceBindingStateFromSource:d=>s(d).bindingStateFromSource(d),sourceAdapterCatalogKind:d=>i(d).catalogKind,sourceAdapterRequiresInteractiveConnect:d=>i(d).connectStrategy==="interactive",sourceAdapterUsesCredentialManagedAuth:d=>i(d).credentialStrategy==="credential_managed",isInternalSourceAdapter:d=>i(d).catalogKind==="internal"}};var _Ur=e=>e.connectPayloadSchema!==null,dUr=e=>e.executorAddInputSchema!==null,fUr=e=>e.localConfigBindingSchema!==null,mUr=e=>e,$Ft=(e,r)=>e.length===0?(()=>{throw new Error(`Cannot create ${r} without any schemas`)})():e.length===1?e[0]:UFt.Union(...mUr(e)),zFt=e=>{let r=e.filter(_Ur),i=e.filter(dUr),s=e.filter(fUr),l=BFt(e);return{connectableSourceAdapters:r,connectPayloadSchema:$Ft(r.map(d=>d.connectPayloadSchema),"connect payload schema"),executorAddableSourceAdapters:i,executorAddInputSchema:$Ft(i.map(d=>d.executorAddInputSchema),"executor add input schema"),localConfigurableSourceAdapters:s,...l}};import*as Pl from"effect/Schema";import*as Go from"effect/Schema";var N6=Go.Struct({providerId:Go.String,handle:Go.String}),wBn=Go.Literal("runtime","import"),IBn=Go.Literal("imported","internal"),hUr=Go.String,gUr=Go.Literal("draft","probing","auth_required","connected","error"),bD=Go.Literal("auto","streamable-http","sse","stdio"),wj=Go.Literal("none","reuse_runtime","separate"),M_=Go.Record({key:Go.String,value:Go.String}),g5=Go.Array(Go.String),AKe=Go.suspend(()=>Go.Union(Go.String,Go.Number,Go.Boolean,Go.Null,Go.Array(AKe),Go.Record({key:Go.String,value:AKe}))).annotations({identifier:"JsonValue"}),JFt=Go.Record({key:Go.String,value:AKe}).annotations({identifier:"JsonObject"}),qFt=Go.Union(Go.Struct({kind:Go.Literal("none")}),Go.Struct({kind:Go.Literal("bearer"),headerName:Go.String,prefix:Go.String,token:N6}),Go.Struct({kind:Go.Literal("oauth2"),headerName:Go.String,prefix:Go.String,accessToken:N6,refreshToken:Go.NullOr(N6)}),Go.Struct({kind:Go.Literal("oauth2_authorized_user"),headerName:Go.String,prefix:Go.String,tokenEndpoint:Go.String,clientId:Go.String,clientAuthentication:Go.Literal("none","client_secret_post"),clientSecret:Go.NullOr(N6),refreshToken:N6,grantSet:Go.NullOr(Go.Array(Go.String))}),Go.Struct({kind:Go.Literal("provider_grant_ref"),grantId:Go.String,providerKey:Go.String,requiredScopes:Go.Array(Go.String),headerName:Go.String,prefix:Go.String}),Go.Struct({kind:Go.Literal("mcp_oauth"),redirectUri:Go.String,accessToken:N6,refreshToken:Go.NullOr(N6),tokenType:Go.String,expiresIn:Go.NullOr(Go.Number),scope:Go.NullOr(Go.String),resourceMetadataUrl:Go.NullOr(Go.String),authorizationServerUrl:Go.NullOr(Go.String),resourceMetadataJson:Go.NullOr(Go.String),authorizationServerMetadataJson:Go.NullOr(Go.String),clientInformationJson:Go.NullOr(Go.String)})),Bke=Go.Number,PBn=Go.Struct({version:Bke,payload:JFt}),NBn=Go.Struct({id:Go.String,scopeId:Go.String,name:Go.String,kind:hUr,endpoint:Go.String,status:gUr,enabled:Go.Boolean,namespace:Go.NullOr(Go.String),bindingVersion:Bke,binding:JFt,importAuthPolicy:wj,importAuth:qFt,auth:qFt,sourceHash:Go.NullOr(Go.String),lastError:Go.NullOr(Go.String),createdAt:Go.Number,updatedAt:Go.Number}),OBn=Go.Struct({id:Go.String,bindingConfigJson:Go.NullOr(Go.String)}),$ke=Go.Literal("app_callback","loopback"),VFt=Go.String,wKe=Go.Struct({clientId:Go.Trim.pipe(Go.nonEmptyString()),clientSecret:Go.optional(Go.NullOr(Go.Trim.pipe(Go.nonEmptyString()))),redirectMode:Go.optional($ke)});var IKe=Pl.Literal("mcp","openapi","google_discovery","graphql","unknown"),Uke=Pl.Literal("low","medium","high"),PKe=Pl.Literal("none","bearer","oauth2","apiKey","basic","unknown"),NKe=Pl.Literal("header","query","cookie"),WFt=Pl.Union(Pl.Struct({kind:Pl.Literal("none")}),Pl.Struct({kind:Pl.Literal("bearer"),headerName:Pl.optional(Pl.NullOr(Pl.String)),prefix:Pl.optional(Pl.NullOr(Pl.String)),token:Pl.String}),Pl.Struct({kind:Pl.Literal("basic"),username:Pl.String,password:Pl.String}),Pl.Struct({kind:Pl.Literal("headers"),headers:M_})),OKe=Pl.Struct({suggestedKind:PKe,confidence:Uke,supported:Pl.Boolean,reason:Pl.String,headerName:Pl.NullOr(Pl.String),prefix:Pl.NullOr(Pl.String),parameterName:Pl.NullOr(Pl.String),parameterLocation:Pl.NullOr(NKe),oauthAuthorizationUrl:Pl.NullOr(Pl.String),oauthTokenUrl:Pl.NullOr(Pl.String),oauthScopes:Pl.Array(Pl.String)}),GFt=Pl.Struct({detectedKind:IKe,confidence:Uke,endpoint:Pl.String,specUrl:Pl.NullOr(Pl.String),name:Pl.NullOr(Pl.String),namespace:Pl.NullOr(Pl.String),transport:Pl.NullOr(bD),authInference:OKe,toolCount:Pl.NullOr(Pl.Number),warnings:Pl.Array(Pl.String)});import*as HFt from"effect/Data";var FKe=class extends HFt.TaggedError("SourceCoreEffectError"){},og=(e,r)=>new FKe({module:e,message:r});import*as KFt from"effect/Data";import*as O6 from"effect/Effect";import*as Nl from"effect/Schema";var yUr=Nl.Trim.pipe(Nl.nonEmptyString()),sy=Nl.optional(Nl.NullOr(Nl.String)),vUr=Nl.Struct({kind:Nl.Literal("bearer"),headerName:sy,prefix:sy,token:sy,tokenRef:Nl.optional(Nl.NullOr(N6))}),SUr=Nl.Struct({kind:Nl.Literal("oauth2"),headerName:sy,prefix:sy,accessToken:sy,accessTokenRef:Nl.optional(Nl.NullOr(N6)),refreshToken:sy,refreshTokenRef:Nl.optional(Nl.NullOr(N6))}),v5=Nl.Union(Nl.Struct({kind:Nl.Literal("none")}),vUr,SUr),Ij=Nl.Struct({importAuthPolicy:Nl.optional(wj),importAuth:Nl.optional(v5)}),QFt=Nl.optional(Nl.NullOr(wKe)),zke=Nl.Struct({endpoint:yUr,name:sy,namespace:sy}),RKe=Nl.Struct({transport:Nl.optional(Nl.NullOr(bD)),queryParams:Nl.optional(Nl.NullOr(M_)),headers:Nl.optional(Nl.NullOr(M_)),command:Nl.optional(Nl.NullOr(Nl.String)),args:Nl.optional(Nl.NullOr(g5)),env:Nl.optional(Nl.NullOr(M_)),cwd:Nl.optional(Nl.NullOr(Nl.String))});var y5=class extends KFt.TaggedError("SourceCredentialRequiredError"){constructor(r,i){super({slot:r,message:i})}},S5=e=>e instanceof y5,JN={transport:null,queryParams:null,headers:null,command:null,args:null,env:null,cwd:null,specUrl:null,defaultHeaders:null},ZFt=(e,r)=>Nl.Struct({adapterKey:Nl.Literal(e),version:Bke,payload:r}),VN=e=>Nl.encodeSync(Nl.parseJson(ZFt(e.adapterKey,e.payloadSchema)))({adapterKey:e.adapterKey,version:e.version,payload:e.payload}),WN=e=>e.value===null?O6.fail(og("core/shared",`Missing ${e.label} binding config for ${e.sourceId}`)):O6.try({try:()=>Nl.decodeUnknownSync(Nl.parseJson(ZFt(e.adapterKey,e.payloadSchema)))(e.value),catch:r=>{let i=r instanceof Error?r.message:String(r);return new Error(`Invalid ${e.label} binding config for ${e.sourceId}: ${i}`)}}).pipe(O6.flatMap(r=>r.version===e.version?O6.succeed({version:r.version,payload:r.payload}):O6.fail(og("core/shared",`Unsupported ${e.label} binding config version ${r.version} for ${e.sourceId}; expected ${e.version}`)))),GN=e=>e.version!==e.expectedVersion?O6.fail(og("core/shared",`Unsupported ${e.label} binding version ${e.version} for ${e.sourceId}; expected ${e.expectedVersion}`)):O6.try({try:()=>{if(e.allowedKeys&&e.value!==null&&typeof e.value=="object"&&!Array.isArray(e.value)){let r=Object.keys(e.value).filter(i=>!e.allowedKeys.includes(i));if(r.length>0)throw new Error(`Unsupported fields: ${r.join(", ")}`)}return Nl.decodeUnknownSync(e.schema)(e.value)},catch:r=>{let i=r instanceof Error?r.message:String(r);return new Error(`Invalid ${e.label} binding payload for ${e.sourceId}: ${i}`)}}),Pj=e=>{if(e.version!==e.expectedVersion)throw new Error(`Unsupported ${e.label} executable binding version ${e.version} for ${e.executableId}; expected ${e.expectedVersion}`);try{return Nl.decodeUnknownSync(e.schema)(e.value)}catch(r){let i=r instanceof Error?r.message:String(r);throw new Error(`Invalid ${e.label} executable binding for ${e.executableId}: ${i}`)}};import*as cY from"effect/Effect";import*as XFt from"effect/Data";var LKe=class extends XFt.TaggedError("McpOAuthEffectError"){},MKe=(e,r)=>new LKe({module:e,message:r});var YFt=e=>e instanceof Error?e:new Error(String(e)),sY=e=>e!=null&&typeof e=="object"&&!Array.isArray(e)?e:null,e7t=e=>({redirect_uris:[e],grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none",client_name:"Executor Local"}),epe=e=>cY.gen(function*(){let r={},i={get redirectUrl(){return e.redirectUrl},get clientMetadata(){return e7t(e.redirectUrl)},state:()=>e.state,clientInformation:()=>r.clientInformation,saveClientInformation:l=>{r.clientInformation=l},tokens:()=>{},saveTokens:()=>{},redirectToAuthorization:l=>{r.authorizationUrl=l},saveCodeVerifier:l=>{r.codeVerifier=l},codeVerifier:()=>{if(!r.codeVerifier)throw new Error("OAuth code verifier was not captured");return r.codeVerifier},saveDiscoveryState:l=>{r.discoveryState=l},discoveryState:()=>r.discoveryState};return(yield*cY.tryPromise({try:()=>Vw(i,{serverUrl:e.endpoint}),catch:YFt}))!=="REDIRECT"||!r.authorizationUrl||!r.codeVerifier?yield*MKe("index","OAuth flow did not produce an authorization redirect"):{authorizationUrl:r.authorizationUrl.toString(),codeVerifier:r.codeVerifier,resourceMetadataUrl:r.discoveryState?.resourceMetadataUrl??null,authorizationServerUrl:r.discoveryState?.authorizationServerUrl??null,resourceMetadata:sY(r.discoveryState?.resourceMetadata),authorizationServerMetadata:sY(r.discoveryState?.authorizationServerMetadata),clientInformation:sY(r.clientInformation)}}),jKe=e=>cY.gen(function*(){let r={discoveryState:{authorizationServerUrl:e.session.authorizationServerUrl??new URL("/",e.session.endpoint).toString(),resourceMetadataUrl:e.session.resourceMetadataUrl??void 0,resourceMetadata:e.session.resourceMetadata,authorizationServerMetadata:e.session.authorizationServerMetadata},clientInformation:e.session.clientInformation},i={get redirectUrl(){return e.session.redirectUrl},get clientMetadata(){return e7t(e.session.redirectUrl)},clientInformation:()=>r.clientInformation,saveClientInformation:l=>{r.clientInformation=l},tokens:()=>{},saveTokens:l=>{r.tokens=l},redirectToAuthorization:()=>{throw new Error("Unexpected redirect while completing MCP OAuth")},saveCodeVerifier:()=>{},codeVerifier:()=>e.session.codeVerifier,saveDiscoveryState:l=>{r.discoveryState=l},discoveryState:()=>r.discoveryState};return(yield*cY.tryPromise({try:()=>Vw(i,{serverUrl:e.session.endpoint,authorizationCode:e.code}),catch:YFt}))!=="AUTHORIZED"||!r.tokens?yield*MKe("index","OAuth redirect did not complete MCP OAuth setup"):{tokens:r.tokens,resourceMetadataUrl:r.discoveryState?.resourceMetadataUrl??null,authorizationServerUrl:r.discoveryState?.authorizationServerUrl??null,resourceMetadata:sY(r.discoveryState?.resourceMetadata),authorizationServerMetadata:sY(r.discoveryState?.authorizationServerMetadata),clientInformation:sY(r.clientInformation)}});import*as Wke from"effect/Either";import*as T5 from"effect/Effect";import*as _7t from"effect/Data";import*as zKe from"effect/Either";import*as Pp from"effect/Effect";import*as d7t from"effect/Cause";import*as f7t from"effect/Exit";import*as m7t from"effect/PartitionedSemaphore";import*as t7t from"effect/Either";import*as r7t from"effect/Option";import*as n7t from"effect/ParseResult";import*as Ih from"effect/Schema";var i7t=Ih.Record({key:Ih.String,value:Ih.Unknown}),bUr=Ih.decodeUnknownOption(i7t),o7t=e=>{let r=bUr(e);return r7t.isSome(r)?r.value:{}},xUr=Ih.Struct({mode:Ih.optional(Ih.Union(Ih.Literal("form"),Ih.Literal("url"))),message:Ih.optional(Ih.String),requestedSchema:Ih.optional(i7t),url:Ih.optional(Ih.String),elicitationId:Ih.optional(Ih.String),id:Ih.optional(Ih.String)}),TUr=Ih.decodeUnknownEither(xUr),a7t=e=>{let r=TUr(e);if(t7t.isLeft(r))throw new Error(`Invalid MCP elicitation request params: ${n7t.TreeFormatter.formatErrorSync(r.left)}`);let i=r.right,s=i.message??"";return i.mode==="url"?{mode:"url",message:s,url:i.url??"",elicitationId:i.elicitationId??i.id??""}:{mode:"form",message:s,requestedSchema:i.requestedSchema??{}}},s7t=e=>e.action==="accept"?{action:"accept",...e.content?{content:e.content}:{}}:{action:e.action},c7t=e=>typeof e.setRequestHandler=="function",BKe=e=>e.elicitation.mode==="url"&&e.elicitation.elicitationId.length>0?e.elicitation.elicitationId:[e.invocation?.runId,e.invocation?.callId,e.path,"mcp",typeof e.sequence=="number"?String(e.sequence):void 0].filter(i=>typeof i=="string"&&i.length>0).join(":"),$Ke=e=>e instanceof gue&&Array.isArray(e.elicitations)&&e.elicitations.length>0;import*as l7t from"effect/Option";import*as ku from"effect/Schema";var EUr=e=>{let r=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"");return r.length>0?r:"tool"},kUr=(e,r)=>{let i=EUr(e),s=(r.get(i)??0)+1;return r.set(i,s),s===1?i:`${i}_${s}`},b5=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{},qke=e=>{let r=b5(e);return Object.keys(r).length>0?r:null},HN=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),x5=e=>typeof e=="string"&&e.trim().length>0?e.trim():null,Nj=e=>typeof e=="boolean"?e:null,u7t=e=>Array.isArray(e)?e:null,CUr=ku.Struct({title:ku.optional(ku.NullOr(ku.String)),readOnlyHint:ku.optional(ku.Boolean),destructiveHint:ku.optional(ku.Boolean),idempotentHint:ku.optional(ku.Boolean),openWorldHint:ku.optional(ku.Boolean)}),DUr=ku.Struct({taskSupport:ku.optional(ku.Literal("forbidden","optional","required"))}),AUr=ku.Struct({name:ku.String,title:ku.optional(ku.NullOr(ku.String)),description:ku.optional(ku.NullOr(ku.String)),inputSchema:ku.optional(ku.Unknown),parameters:ku.optional(ku.Unknown),outputSchema:ku.optional(ku.Unknown),annotations:ku.optional(CUr),execution:ku.optional(DUr),icons:ku.optional(ku.Unknown),_meta:ku.optional(ku.Unknown)}),wUr=ku.Struct({tools:ku.Array(AUr),nextCursor:ku.optional(ku.NullOr(ku.String)),_meta:ku.optional(ku.Unknown)}),IUr=ku.decodeUnknownOption(wUr),PUr=e=>{let r=IUr(e);return l7t.isNone(r)?[]:r.value.tools},NUr=e=>{let r=qke(e);if(r===null)return null;let i={title:x5(r.title),readOnlyHint:Nj(r.readOnlyHint),destructiveHint:Nj(r.destructiveHint),idempotentHint:Nj(r.idempotentHint),openWorldHint:Nj(r.openWorldHint)};return Object.values(i).some(s=>s!==null)?i:null},OUr=e=>{let r=qke(e);if(r===null)return null;let i=r.taskSupport;return i!=="forbidden"&&i!=="optional"&&i!=="required"?null:{taskSupport:i}},FUr=e=>{let r=qke(e),i=r?x5(r.name):null,s=r?x5(r.version):null;return i===null||s===null?null:{name:i,version:s,title:x5(r?.title),description:x5(r?.description),websiteUrl:x5(r?.websiteUrl),icons:u7t(r?.icons)}},RUr=e=>{let r=qke(e);if(r===null)return null;let i=b5(r.prompts),s=b5(r.resources),l=b5(r.tools),d=b5(r.tasks),h=b5(d.requests),S=b5(h.tools);return{experimental:HN(r,"experimental")?b5(r.experimental):null,logging:HN(r,"logging"),completions:HN(r,"completions"),prompts:HN(r,"prompts")?{listChanged:Nj(i.listChanged)??!1}:null,resources:HN(r,"resources")?{subscribe:Nj(s.subscribe)??!1,listChanged:Nj(s.listChanged)??!1}:null,tools:HN(r,"tools")?{listChanged:Nj(l.listChanged)??!1}:null,tasks:HN(r,"tasks")?{list:HN(d,"list"),cancel:HN(d,"cancel"),toolCall:HN(S,"call")}:null}},LUr=e=>{let r=FUr(e?.serverInfo),i=RUr(e?.serverCapabilities),s=x5(e?.instructions),l=e?.serverInfo??null,d=e?.serverCapabilities??null;return r===null&&i===null&&s===null&&l===null&&d===null?null:{info:r,capabilities:i,instructions:s,rawInfo:l,rawCapabilities:d}},UKe=(e,r)=>{let i=new Map,s=b5(e),l=Array.isArray(s.tools)?s.tools:[],d=PUr(e).map((h,S)=>{let b=h.name.trim();if(b.length===0)return null;let A=x5(h.title),L=NUr(h.annotations),V=A??L?.title??b;return{toolId:kUr(b,i),toolName:b,title:A,displayTitle:V,description:h.description??null,annotations:L,execution:OUr(h.execution),icons:u7t(h.icons),meta:h._meta??null,rawTool:l[S]??null,inputSchema:h.inputSchema??h.parameters,outputSchema:h.outputSchema}}).filter(h=>h!==null);return{version:2,server:LUr(r),listTools:{nextCursor:x5(s.nextCursor),meta:s._meta??null,rawResult:e},tools:d}},p7t=(e,r)=>!e||e.trim().length===0?r:`${e}.${r}`;var Gw=class extends _7t.TaggedError("McpToolsError"){},MUr="__EXECUTION_SUSPENDED__",jUr=e=>{if(e instanceof Error)return`${e.message} -${e.stack??""}`;if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}},Jke=e=>jUr(e).includes(MUr),HJ=e=>e instanceof Error?e.message:String(e),BUr=e=>{if(e==null)return V7;try{return _le(e,{vendor:"mcp",fallback:V7})}catch{return V7}},$Ur=e=>Pp.tryPromise({try:()=>e.close?.()??Promise.resolve(),catch:r=>r instanceof Error?r:new Error(String(r??"mcp connection close failed"))}).pipe(Pp.asVoid,Pp.catchAll(()=>Pp.void)),h7t=e=>Pp.acquireUseRelease(e.connect.pipe(Pp.mapError(e.onConnectError)),e.run,$Ur),UUr=m7t.makeUnsafe({permits:1}),g7t=(e,r)=>UUr.withPermits(e,1)(r),y7t=e=>e.onElicitation({interactionId:e.interactionId,path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.executionContext?.metadata,context:e.executionContext?.invocation,elicitation:e.elicitation}).pipe(Pp.mapError(r=>Jke(r)?r:new Gw({stage:"call_tool",message:`Failed resolving elicitation for ${e.toolName}`,details:HJ(r)}))),v7t=e=>{let r=e.client;return c7t(r)?Pp.try({try:()=>{let i=0;r.setRequestHandler(Cue,s=>(i+=1,Pp.runPromise(Pp.try({try:()=>a7t(s.params),catch:l=>new Gw({stage:"call_tool",message:`Failed parsing MCP elicitation for ${e.toolName}`,details:HJ(l)})}).pipe(Pp.flatMap(l=>y7t({toolName:e.toolName,onElicitation:e.onElicitation,interactionId:BKe({path:e.path,invocation:e.executionContext?.invocation,elicitation:l,sequence:i}),path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext,elicitation:l})),Pp.map(s7t),Pp.catchAll(l=>Jke(l)?Pp.fail(l):(console.error(`[mcp-tools] elicitation failed for ${e.toolName}, treating as cancel:`,l instanceof Error?l.message:String(l)),Pp.succeed({action:"cancel"})))))))},catch:i=>i instanceof Gw?i:new Gw({stage:"call_tool",message:`Failed installing elicitation handler for ${e.toolName}`,details:HJ(i)})}):Pp.succeed(void 0)},S7t=e=>Pp.forEach(e.cause.elicitations,r=>y7t({toolName:e.toolName,onElicitation:e.onElicitation,interactionId:BKe({path:e.path,invocation:e.executionContext?.invocation,elicitation:r}),path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext,elicitation:r}).pipe(Pp.flatMap(i=>i.action==="accept"?Pp.succeed(void 0):Pp.fail(new Gw({stage:"call_tool",message:`URL elicitation was not accepted for ${e.toolName}`,details:i.action})))),{discard:!0}),zUr=e=>Pp.tryPromise({try:()=>e.client.callTool({name:e.toolName,arguments:e.args}),catch:r=>r}),qUr=e=>e?{path:e.path,sourceKey:e.sourceKey,metadata:e.metadata,invocation:e.invocation,onElicitation:e.onElicitation}:void 0,JUr=e=>Pp.gen(function*(){let r=qUr(e.mcpDiscoveryElicitation);e.mcpDiscoveryElicitation&&(yield*v7t({client:e.connection.client,toolName:"tools/list",onElicitation:e.mcpDiscoveryElicitation.onElicitation,path:e.mcpDiscoveryElicitation.path,sourceKey:e.mcpDiscoveryElicitation.sourceKey,args:e.mcpDiscoveryElicitation.args,executionContext:r}));let i=0;for(;;){let s=yield*Pp.either(Pp.tryPromise({try:()=>e.connection.client.listTools(),catch:l=>l}));if(zKe.isRight(s))return s.right;if(Jke(s.left))return yield*s.left;if(e.mcpDiscoveryElicitation&&$Ke(s.left)&&i<2){yield*S7t({cause:s.left,toolName:"tools/list",onElicitation:e.mcpDiscoveryElicitation.onElicitation,path:e.mcpDiscoveryElicitation.path,sourceKey:e.mcpDiscoveryElicitation.sourceKey,args:e.mcpDiscoveryElicitation.args,executionContext:r}),i+=1;continue}return yield*new Gw({stage:"list_tools",message:"Failed listing MCP tools",details:HJ(s.left)})}}),VUr=e=>Pp.gen(function*(){let r=e.executionContext?.onElicitation;r&&(yield*v7t({client:e.connection.client,toolName:e.toolName,onElicitation:r,path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext}));let i=0;for(;;){let s=yield*Pp.either(zUr({client:e.connection.client,toolName:e.toolName,args:e.args}));if(zKe.isRight(s))return s.right;if(Jke(s.left))return yield*s.left;if(r&&$Ke(s.left)&&i<2){yield*S7t({cause:s.left,toolName:e.toolName,onElicitation:r,path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext}),i+=1;continue}return yield*new Gw({stage:"call_tool",message:`Failed invoking MCP tool: ${e.toolName}`,details:HJ(s.left)})}});var Vke=e=>{let r=e.sourceKey??"mcp.generated";return Object.fromEntries(e.manifest.tools.map(i=>{let s=p7t(e.namespace,i.toolId);return[s,Bw({tool:{description:i.description??`MCP tool: ${i.toolName}`,inputSchema:BUr(i.inputSchema),execute:async(l,d)=>{let h=await Pp.runPromiseExit(h7t({connect:e.connect,onConnectError:S=>new Gw({stage:"connect",message:`Failed connecting to MCP server for ${i.toolName}`,details:HJ(S)}),run:S=>{let b=o7t(l),A=VUr({connection:S,toolName:i.toolName,path:s,sourceKey:r,args:b,executionContext:d});return d?.onElicitation?g7t(S.client,A):A}}));if(f7t.isSuccess(h))return h.value;throw d7t.squash(h.cause)}},metadata:{sourceKey:r,contract:{...i.inputSchema!==void 0?{inputSchema:i.inputSchema}:{},...i.outputSchema!==void 0?{outputSchema:i.outputSchema}:{}}}})]}))},KJ=e=>Pp.gen(function*(){let r=yield*h7t({connect:e.connect,onConnectError:s=>new Gw({stage:"connect",message:"Failed connecting to MCP server",details:HJ(s)}),run:s=>{let l=JUr({connection:s,mcpDiscoveryElicitation:e.mcpDiscoveryElicitation}),d=e.mcpDiscoveryElicitation?g7t(s.client,l):l;return Pp.map(d,h=>({listed:h,serverInfo:s.client.getServerVersion?.(),serverCapabilities:s.client.getServerCapabilities?.(),instructions:s.client.getInstructions?.()}))}}),i=UKe(r.listed,{serverInfo:r.serverInfo,serverCapabilities:r.serverCapabilities,instructions:r.instructions});return{manifest:i,tools:Vke({manifest:i,connect:e.connect,namespace:e.namespace,sourceKey:e.sourceKey})}});var qKe=e=>T5.gen(function*(){let r=bj({endpoint:e.normalizedUrl,headers:e.headers,transport:"auto"}),i=yield*T5.either(KJ({connect:r,sourceKey:"discovery",namespace:vT($N(e.normalizedUrl))}));if(Wke.isRight(i)){let d=$N(e.normalizedUrl);return{detectedKind:"mcp",confidence:"high",endpoint:e.normalizedUrl,specUrl:null,name:d,namespace:vT(d),transport:"auto",authInference:UN("MCP tool discovery succeeded without an advertised auth requirement","medium"),toolCount:i.right.manifest.tools.length,warnings:[]}}let s=yield*T5.either(epe({endpoint:e.normalizedUrl,redirectUrl:"http://127.0.0.1/executor/discovery/oauth/callback",state:"source-discovery"}));if(Wke.isLeft(s))return null;let l=$N(e.normalizedUrl);return{detectedKind:"mcp",confidence:"high",endpoint:e.normalizedUrl,specUrl:null,name:l,namespace:vT(l),transport:"auto",authInference:I6("oauth2",{confidence:"high",reason:"MCP endpoint advertised OAuth during discovery",headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:s.right.authorizationUrl,oauthTokenUrl:s.right.authorizationServerUrl,oauthScopes:[]}),toolCount:null,warnings:["OAuth is required before MCP tools can be listed."]}}).pipe(T5.catchAll(()=>T5.succeed(null)));import*as k1 from"effect/Schema";var JKe=k1.Struct({transport:k1.optional(k1.NullOr(bD)),queryParams:k1.optional(k1.NullOr(M_)),headers:k1.optional(k1.NullOr(M_)),command:k1.optional(k1.NullOr(k1.String)),args:k1.optional(k1.NullOr(g5)),env:k1.optional(k1.NullOr(M_)),cwd:k1.optional(k1.NullOr(k1.String))});var WUr=e=>e?.taskSupport==="optional"||e?.taskSupport==="required",GUr=e=>{let r=e.effect==="read";return{effect:e.effect,safe:r,idempotent:r||e.annotations?.idempotentHint===!0,destructive:r?!1:e.annotations?.destructiveHint!==!1}},HUr=e=>{let r=d5(e.source,e.operation.providerData.toolId),i=vD.make(`cap_${Td({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),s=pk.make(`exec_${Td({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"mcp"})}`),l=e.operation.outputSchema!==void 0?e.importer.importSchema(e.operation.outputSchema,`#/mcp/${e.operation.providerData.toolId}/output`):void 0,d=e.operation.inputSchema===void 0?e.importer.importSchema({type:"object",properties:{},additionalProperties:!1},`#/mcp/${e.operation.providerData.toolId}/call`):gKe(e.operation.inputSchema)?e.importer.importSchema(e.operation.inputSchema,`#/mcp/${e.operation.providerData.toolId}/call`,e.operation.inputSchema):e.importer.importSchema(tY({type:"object",properties:{input:e.operation.inputSchema},required:["input"],additionalProperties:!1},e.operation.inputSchema),`#/mcp/${e.operation.providerData.toolId}/call`),h=e.importer.importSchema({type:"null"},`#/mcp/${e.operation.providerData.toolId}/status`),S=SD.make(`response_${Td({capabilityId:i})}`);x_(e.catalog.symbols)[S]={id:S,kind:"response",...Gd({description:e.operation.providerData.description??e.operation.description})?{docs:Gd({description:e.operation.providerData.description??e.operation.description})}:{},...l?{contents:[{mediaType:"application/json",shapeId:l}]}:{},synthetic:!1,provenance:ld(e.documentId,`#/mcp/${e.operation.providerData.toolId}/response`)};let b=m5({catalog:e.catalog,responseId:S,provenance:ld(e.documentId,`#/mcp/${e.operation.providerData.toolId}/responseSet`)});x_(e.catalog.executables)[s]={id:s,capabilityId:i,scopeId:e.serviceScopeId,adapterKey:"mcp",bindingVersion:rx,binding:e.operation.providerData,projection:{responseSetId:b,callShapeId:d,...l?{resultDataShapeId:l}:{},resultStatusShapeId:h},display:{protocol:"mcp",method:null,pathTemplate:null,operationId:e.operation.providerData.toolName,group:null,leaf:e.operation.providerData.toolName,rawToolId:e.operation.providerData.toolId,title:e.operation.providerData.displayTitle,summary:e.operation.providerData.description??e.operation.description??null},synthetic:!1,provenance:ld(e.documentId,`#/mcp/${e.operation.providerData.toolId}/executable`)};let A=f5(e.operation.effect);x_(e.catalog.capabilities)[i]={id:i,serviceScopeId:e.serviceScopeId,surface:{toolPath:r,title:e.operation.providerData.displayTitle,...e.operation.providerData.description?{summary:e.operation.providerData.description}:{}},semantics:GUr({effect:e.operation.effect,annotations:e.operation.providerData.annotations}),auth:{kind:"none"},interaction:{...A,resume:{supported:WUr(e.operation.providerData.execution)}},executableIds:[s],synthetic:!1,provenance:ld(e.documentId,`#/mcp/${e.operation.providerData.toolId}/capability`)}},b7t=e=>h5({source:e.source,documents:e.documents,registerOperations:({catalog:r,documentId:i,serviceScopeId:s,importer:l})=>{for(let d of e.operations)HUr({catalog:r,source:e.source,documentId:i,serviceScopeId:s,operation:d,importer:l})}});import*as C1 from"effect/Effect";import*as Al from"effect/Schema";var x7t=e=>pD({headers:{...e.headers,...e.authHeaders},cookies:e.authCookies}),VKe=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},KUr=e=>e,QUr=e=>{let r=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"");return r.length>0?r:"source"},T7t=(e,r)=>og("mcp/adapter",r===void 0?e:`${e}: ${r instanceof Error?r.message:String(r)}`),ZUr=Al.optional(Al.NullOr(g5)),XUr=Al.extend(RKe,Al.Struct({kind:Al.Literal("mcp"),endpoint:sy,name:sy,namespace:sy})),YUr=Al.extend(RKe,Al.Struct({kind:Al.optional(Al.Literal("mcp")),endpoint:sy,name:sy,namespace:sy})),E7t=Al.Struct({transport:Al.NullOr(bD),queryParams:Al.NullOr(M_),headers:Al.NullOr(M_),command:Al.NullOr(Al.String),args:Al.NullOr(g5),env:Al.NullOr(M_),cwd:Al.NullOr(Al.String)}),ezr=Al.Struct({transport:Al.optional(Al.NullOr(bD)),queryParams:Al.optional(Al.NullOr(M_)),headers:Al.optional(Al.NullOr(M_)),command:Al.optional(Al.NullOr(Al.String)),args:ZUr,env:Al.optional(Al.NullOr(M_)),cwd:Al.optional(Al.NullOr(Al.String))}),tzr=Al.Struct({toolId:Al.String,toolName:Al.String,displayTitle:Al.String,title:Al.NullOr(Al.String),description:Al.NullOr(Al.String),annotations:Al.NullOr(Al.Unknown),execution:Al.NullOr(Al.Unknown),icons:Al.NullOr(Al.Unknown),meta:Al.NullOr(Al.Unknown),rawTool:Al.NullOr(Al.Unknown),server:Al.NullOr(Al.Unknown)}),tpe=1,k7t=(e,r)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&r.some(i=>Object.prototype.hasOwnProperty.call(e,i)),WKe=e=>{if(e==null)return null;let r=e.trim();return r.length>0?r:null},rzr=e=>{if(!e||e.length===0)return null;let r=e.map(i=>i.trim()).filter(i=>i.length>0);return r.length>0?r:null},nzr=e=>C1.gen(function*(){let r=WKe(e.command);return JJ({transport:e.transport??void 0,command:r??void 0})?r===null?yield*og("mcp/adapter","MCP stdio transport requires a command"):e.queryParams&&Object.keys(e.queryParams).length>0?yield*og("mcp/adapter","MCP stdio transport does not support query params"):e.headers&&Object.keys(e.headers).length>0?yield*og("mcp/adapter","MCP stdio transport does not support request headers"):{transport:"stdio",queryParams:null,headers:null,command:r,args:rzr(e.args),env:e.env??null,cwd:WKe(e.cwd)}:r!==null||e.args||e.env||WKe(e.cwd)!==null?yield*og("mcp/adapter",'MCP process settings require transport: "stdio"'):{transport:e.transport??null,queryParams:e.queryParams??null,headers:e.headers??null,command:null,args:null,env:null,cwd:null}}),QJ=e=>C1.gen(function*(){if(k7t(e.binding,["specUrl"]))return yield*og("mcp/adapter","MCP sources cannot define specUrl");if(k7t(e.binding,["defaultHeaders"]))return yield*og("mcp/adapter","MCP sources cannot define HTTP source settings");let r=yield*GN({sourceId:e.id,label:"MCP",version:e.bindingVersion,expectedVersion:tpe,schema:ezr,value:e.binding,allowedKeys:["transport","queryParams","headers","command","args","env","cwd"]});return yield*nzr(r)}),izr=e=>e.annotations?.readOnlyHint===!0?"read":"write",ozr=e=>({toolId:e.entry.toolId,title:e.entry.displayTitle??e.entry.title??e.entry.toolName,description:e.entry.description??null,effect:izr(e.entry),inputSchema:e.entry.inputSchema,outputSchema:e.entry.outputSchema,providerData:{toolId:e.entry.toolId,toolName:e.entry.toolName,displayTitle:e.entry.displayTitle??e.entry.title??e.entry.toolName,title:e.entry.title??null,description:e.entry.description??null,annotations:e.entry.annotations??null,execution:e.entry.execution??null,icons:e.entry.icons??null,meta:e.entry.meta??null,rawTool:e.entry.rawTool??null,server:e.server??null}}),GKe=e=>{let r=Date.now(),i=JSON.stringify(e.manifest),s=Xue(i);return qN({fragment:b7t({source:e.source,documents:[{documentKind:"mcp_manifest",documentKey:e.endpoint,contentText:i,fetchedAt:r}],operations:e.manifest.tools.map(l=>ozr({entry:l,server:e.manifest.server}))}),importMetadata:R2({source:e.source,adapterKey:"mcp"}),sourceHash:s})},C7t={key:"mcp",displayName:"MCP",catalogKind:"imported",connectStrategy:"interactive",credentialStrategy:"adapter_defined",bindingConfigVersion:tpe,providerKey:"generic_mcp",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:XUr,executorAddInputSchema:YUr,executorAddHelpText:['Omit kind or set kind: "mcp". For remote servers, provide endpoint plus optional transport/queryParams/headers.','For local servers, set transport: "stdio" and provide command plus optional args/env/cwd.'],executorAddInputSignatureWidth:240,localConfigBindingSchema:JKe,localConfigBindingFromSource:e=>C1.runSync(C1.map(QJ(e),r=>({transport:r.transport,queryParams:r.queryParams,headers:r.headers,command:r.command,args:r.args,env:r.env,cwd:r.cwd}))),serializeBindingConfig:e=>VN({adapterKey:"mcp",version:tpe,payloadSchema:E7t,payload:C1.runSync(QJ(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:r})=>C1.map(WN({sourceId:e,label:"MCP",adapterKey:"mcp",version:tpe,payloadSchema:E7t,value:r}),({version:i,payload:s})=>({version:i,payload:s})),bindingStateFromSource:e=>C1.map(QJ(e),r=>({...JN,transport:r.transport,queryParams:r.queryParams,headers:r.headers,command:r.command,args:r.args,env:r.env,cwd:r.cwd})),sourceConfigFromSource:e=>C1.runSync(C1.map(QJ(e),r=>({kind:"mcp",endpoint:e.endpoint,transport:r.transport,queryParams:r.queryParams,headers:r.headers,command:r.command,args:r.args,env:r.env,cwd:r.cwd}))),validateSource:e=>C1.gen(function*(){let r=yield*QJ(e);return{...e,bindingVersion:tpe,binding:{transport:r.transport,queryParams:r.queryParams,headers:r.headers,command:r.command,args:r.args,env:r.env,cwd:r.cwd}}}),shouldAutoProbe:()=>!1,discoveryPriority:({normalizedUrl:e})=>Cj(e)?350:125,detectSource:({normalizedUrl:e,headers:r})=>qKe({normalizedUrl:e,headers:r}),syncCatalog:({source:e,resolveAuthMaterialForSlot:r})=>C1.gen(function*(){let i=yield*QJ(e),s=yield*r("import"),l=bj({endpoint:e.endpoint,transport:i.transport??void 0,queryParams:{...i.queryParams,...s.queryParams},headers:x7t({headers:i.headers??{},authHeaders:s.headers,authCookies:s.cookies}),authProvider:s.authProvider,command:i.command??void 0,args:i.args??void 0,env:i.env??void 0,cwd:i.cwd??void 0}),d=yield*KJ({connect:l,namespace:e.namespace??QUr(e.name),sourceKey:e.id}).pipe(C1.mapError(h=>new Error(`Failed discovering MCP tools for ${e.id}: ${h.message}${h.details?` (${h.details})`:""}`)));return GKe({source:e,endpoint:e.endpoint,manifest:d.manifest})}),invoke:e=>C1.gen(function*(){if(e.executable.adapterKey!=="mcp")return yield*og("mcp/adapter",`Expected MCP executable binding, got ${e.executable.adapterKey}`);let r=yield*C1.try({try:()=>Pj({executableId:e.executable.id,label:"MCP",version:e.executable.bindingVersion,expectedVersion:rx,schema:tzr,value:e.executable.binding}),catch:ie=>T7t("Failed decoding MCP executable binding",ie)}),i=yield*QJ(e.source),s=CJe({connect:bj({endpoint:e.source.endpoint,transport:i.transport??void 0,queryParams:{...i.queryParams,...e.auth.queryParams},headers:x7t({headers:i.headers??{},authHeaders:e.auth.headers,authCookies:e.auth.cookies}),authProvider:e.auth.authProvider,command:i.command??void 0,args:i.args??void 0,env:i.env??void 0,cwd:i.cwd??void 0}),runId:typeof e.context?.runId=="string"&&e.context.runId.length>0?e.context.runId:void 0,sourceKey:e.source.id}),d=Vke({manifest:{version:2,tools:[{toolId:r.toolName,toolName:r.toolName,displayTitle:e.capability.surface.title??e.executable.display?.title??r.toolName,title:e.capability.surface.title??e.executable.display?.title??null,description:e.capability.surface.summary??e.capability.surface.description??e.executable.display?.summary??`MCP tool: ${r.toolName}`,annotations:null,execution:null,icons:null,meta:null,rawTool:null,inputSchema:e.descriptor.contract?.inputSchema,outputSchema:e.descriptor.contract?.outputSchema}]},connect:s,sourceKey:e.source.id})[r.toolName],h=d&&typeof d=="object"&&d!==null&&"tool"in d?d.tool:d;if(!h)return yield*og("mcp/adapter",`Missing MCP tool definition for ${r.toolName}`);let S=e.executable.projection.callShapeId?e.catalog.symbols[e.executable.projection.callShapeId]:void 0,b=S?.kind==="shape"&&S.node.type!=="object"?VKe(e.args).input:e.args,A=e.onElicitation?{path:KUr(e.descriptor.path),sourceKey:e.source.id,metadata:{sourceKey:e.source.id,interaction:e.descriptor.interaction,contract:{...e.descriptor.contract?.inputSchema!==void 0?{inputSchema:e.descriptor.contract.inputSchema}:{},...e.descriptor.contract?.outputSchema!==void 0?{outputSchema:e.descriptor.contract.outputSchema}:{}},providerKind:e.descriptor.providerKind,providerData:e.descriptor.providerData},invocation:e.context,onElicitation:e.onElicitation}:void 0,L=yield*C1.tryPromise({try:async()=>await h.execute(VKe(b),A),catch:ie=>T7t(`Failed invoking MCP tool ${r.toolName}`,ie)}),j=VKe(L).isError===!0;return{data:j?null:L??null,error:j?L:null,headers:{},status:null}})};import*as wy from"effect/Effect";import*as Fh from"effect/Layer";import*as BYt from"effect/ManagedRuntime";import*as d5t from"effect/Context";import*as k5 from"effect/Effect";import*as f5t from"effect/Layer";import*as m5t from"effect/Option";import*as D7t from"effect/Context";var dm=class extends D7t.Tag("#runtime/ExecutorStateStore")(){};import{Schema as azr}from"effect";var Qc=azr.Number;import{Schema as Ds}from"effect";import{Schema as jm}from"effect";var Ed=jm.String.pipe(jm.brand("ScopeId")),vf=jm.String.pipe(jm.brand("SourceId")),xD=jm.String.pipe(jm.brand("SourceCatalogId")),Oj=jm.String.pipe(jm.brand("SourceCatalogRevisionId")),Fj=jm.String.pipe(jm.brand("SourceAuthSessionId")),ZJ=jm.String.pipe(jm.brand("AuthArtifactId")),lY=jm.String.pipe(jm.brand("AuthLeaseId"));var Gke=jm.String.pipe(jm.brand("ScopedSourceOauthClientId")),Rj=jm.String.pipe(jm.brand("ScopeOauthClientId")),KN=jm.String.pipe(jm.brand("ProviderAuthGrantId")),QN=jm.String.pipe(jm.brand("SecretMaterialId")),uY=jm.String.pipe(jm.brand("PolicyId")),Hw=jm.String.pipe(jm.brand("ExecutionId")),L2=jm.String.pipe(jm.brand("ExecutionInteractionId")),Hke=jm.String.pipe(jm.brand("ExecutionStepId"));import{Schema as ma}from"effect";import*as Lj from"effect/Option";var s0=ma.Struct({providerId:ma.String,handle:ma.String}),rpe=ma.Literal("runtime","import"),A7t=rpe,w7t=ma.String,szr=ma.Array(ma.String),Kke=ma.Union(ma.Struct({kind:ma.Literal("literal"),value:ma.String}),ma.Struct({kind:ma.Literal("secret_ref"),ref:s0})),I7t=ma.Union(ma.Struct({location:ma.Literal("header"),name:ma.String,parts:ma.Array(Kke)}),ma.Struct({location:ma.Literal("query"),name:ma.String,parts:ma.Array(Kke)}),ma.Struct({location:ma.Literal("cookie"),name:ma.String,parts:ma.Array(Kke)}),ma.Struct({location:ma.Literal("body"),path:ma.String,parts:ma.Array(Kke)})),czr=ma.Union(ma.Struct({location:ma.Literal("header"),name:ma.String,value:ma.String}),ma.Struct({location:ma.Literal("query"),name:ma.String,value:ma.String}),ma.Struct({location:ma.Literal("cookie"),name:ma.String,value:ma.String}),ma.Struct({location:ma.Literal("body"),path:ma.String,value:ma.String})),Qke=ma.parseJson(ma.Array(I7t)),Mj="static_bearer",jj="static_oauth2",XJ="static_placements",Kw="oauth2_authorized_user",HKe="provider_grant_ref",KKe="mcp_oauth",pY=ma.Literal("none","client_secret_post"),lzr=ma.Literal(Mj,jj,XJ,Kw),uzr=ma.Struct({headerName:ma.String,prefix:ma.String,token:s0}),pzr=ma.Struct({headerName:ma.String,prefix:ma.String,accessToken:s0,refreshToken:ma.NullOr(s0)}),_zr=ma.Struct({placements:ma.Array(I7t)}),dzr=ma.Struct({headerName:ma.String,prefix:ma.String,tokenEndpoint:ma.String,clientId:ma.String,clientAuthentication:pY,clientSecret:ma.NullOr(s0),refreshToken:s0}),fzr=ma.Struct({grantId:KN,providerKey:ma.String,requiredScopes:ma.Array(ma.String),headerName:ma.String,prefix:ma.String}),mzr=ma.Struct({redirectUri:ma.String,accessToken:s0,refreshToken:ma.NullOr(s0),tokenType:ma.String,expiresIn:ma.NullOr(ma.Number),scope:ma.NullOr(ma.String),resourceMetadataUrl:ma.NullOr(ma.String),authorizationServerUrl:ma.NullOr(ma.String),resourceMetadataJson:ma.NullOr(ma.String),authorizationServerMetadataJson:ma.NullOr(ma.String),clientInformationJson:ma.NullOr(ma.String)}),QKe=ma.parseJson(uzr),ZKe=ma.parseJson(pzr),XKe=ma.parseJson(_zr),YKe=ma.parseJson(dzr),eQe=ma.parseJson(fzr),npe=ma.parseJson(mzr),Z$n=ma.parseJson(ma.Array(czr)),tQe=ma.parseJson(szr),hzr=ma.decodeUnknownOption(QKe),gzr=ma.decodeUnknownOption(ZKe),yzr=ma.decodeUnknownOption(XKe),vzr=ma.decodeUnknownOption(YKe),Szr=ma.decodeUnknownOption(eQe),bzr=ma.decodeUnknownOption(npe),xzr=ma.decodeUnknownOption(tQe),P7t=ma.Struct({id:ZJ,scopeId:Ed,sourceId:vf,actorScopeId:ma.NullOr(Ed),slot:rpe,artifactKind:w7t,configJson:ma.String,grantSetJson:ma.NullOr(ma.String),createdAt:Qc,updatedAt:Qc}),ZN=e=>{if(e.artifactKind!==HKe)return null;let r=Szr(e.configJson);return Lj.isSome(r)?r.value:null},_Y=e=>{if(e.artifactKind!==KKe)return null;let r=bzr(e.configJson);return Lj.isSome(r)?r.value:null},Bj=e=>{switch(e.artifactKind){case Mj:{let r=hzr(e.configJson);return Lj.isSome(r)?{artifactKind:Mj,config:r.value}:null}case jj:{let r=gzr(e.configJson);return Lj.isSome(r)?{artifactKind:jj,config:r.value}:null}case XJ:{let r=yzr(e.configJson);return Lj.isSome(r)?{artifactKind:XJ,config:r.value}:null}case Kw:{let r=vzr(e.configJson);return Lj.isSome(r)?{artifactKind:Kw,config:r.value}:null}default:return null}},Tzr=e=>{let r=e!==null&&typeof e=="object"?e.grantSetJson:e;if(r===null)return null;let i=xzr(r);return Lj.isSome(i)?i.value:null},N7t=Tzr,O7t=e=>{let r=Bj(e);if(r!==null)switch(r.artifactKind){case Mj:return[r.config.token];case jj:return r.config.refreshToken?[r.config.accessToken,r.config.refreshToken]:[r.config.accessToken];case XJ:return r.config.placements.flatMap(s=>s.parts.flatMap(l=>l.kind==="secret_ref"?[l.ref]:[]));case Kw:return r.config.clientSecret?[r.config.refreshToken,r.config.clientSecret]:[r.config.refreshToken]}let i=_Y(e);return i!==null?i.refreshToken?[i.accessToken,i.refreshToken]:[i.accessToken]:[]};import{Schema as js}from"effect";var F7t=js.String,R7t=js.Literal("pending","completed","failed","cancelled"),rQe=js.suspend(()=>js.Union(js.String,js.Number,js.Boolean,js.Null,js.Array(rQe),js.Record({key:js.String,value:rQe}))).annotations({identifier:"JsonValue"}),dY=js.Record({key:js.String,value:rQe}).annotations({identifier:"JsonObject"}),Ezr=js.Struct({kind:js.Literal("mcp_oauth"),endpoint:js.String,redirectUri:js.String,scope:js.NullOr(js.String),resourceMetadataUrl:js.NullOr(js.String),authorizationServerUrl:js.NullOr(js.String),resourceMetadata:js.NullOr(dY),authorizationServerMetadata:js.NullOr(dY),clientInformation:js.NullOr(dY),codeVerifier:js.NullOr(js.String),authorizationUrl:js.NullOr(js.String)}),nQe=js.parseJson(Ezr),kzr=js.Struct({kind:js.Literal("oauth2_pkce"),providerKey:js.String,authorizationEndpoint:js.String,tokenEndpoint:js.String,redirectUri:js.String,clientId:js.String,clientAuthentication:pY,clientSecret:js.NullOr(s0),scopes:js.Array(js.String),headerName:js.String,prefix:js.String,authorizationParams:js.Record({key:js.String,value:js.String}),codeVerifier:js.NullOr(js.String),authorizationUrl:js.NullOr(js.String)}),iQe=js.parseJson(kzr),Czr=js.Struct({sourceId:vf,requiredScopes:js.Array(js.String)}),Dzr=js.Struct({kind:js.Literal("provider_oauth_batch"),providerKey:js.String,authorizationEndpoint:js.String,tokenEndpoint:js.String,redirectUri:js.String,oauthClientId:Rj,clientAuthentication:pY,scopes:js.Array(js.String),headerName:js.String,prefix:js.String,authorizationParams:js.Record({key:js.String,value:js.String}),targetSources:js.Array(Czr),codeVerifier:js.NullOr(js.String),authorizationUrl:js.NullOr(js.String)}),oQe=js.parseJson(Dzr),L7t=js.Struct({id:Fj,scopeId:Ed,sourceId:vf,actorScopeId:js.NullOr(Ed),credentialSlot:A7t,executionId:js.NullOr(Hw),interactionId:js.NullOr(L2),providerKind:F7t,status:R7t,state:js.String,sessionDataJson:js.String,errorText:js.NullOr(js.String),completedAt:js.NullOr(Qc),createdAt:Qc,updatedAt:Qc});var Zke=Ds.String,fY=Ds.Literal("draft","probing","auth_required","connected","error"),aQe=Ds.Union(Ds.Struct({kind:Ds.Literal("none")}),Ds.Struct({kind:Ds.Literal("bearer"),headerName:Ds.String,prefix:Ds.String,token:s0}),Ds.Struct({kind:Ds.Literal("oauth2"),headerName:Ds.String,prefix:Ds.String,accessToken:s0,refreshToken:Ds.NullOr(s0)}),Ds.Struct({kind:Ds.Literal("oauth2_authorized_user"),headerName:Ds.String,prefix:Ds.String,tokenEndpoint:Ds.String,clientId:Ds.String,clientAuthentication:Ds.Literal("none","client_secret_post"),clientSecret:Ds.NullOr(s0),refreshToken:s0,grantSet:Ds.NullOr(Ds.Array(Ds.String))}),Ds.Struct({kind:Ds.Literal("provider_grant_ref"),grantId:KN,providerKey:Ds.String,requiredScopes:Ds.Array(Ds.String),headerName:Ds.String,prefix:Ds.String}),Ds.Struct({kind:Ds.Literal("mcp_oauth"),redirectUri:Ds.String,accessToken:s0,refreshToken:Ds.NullOr(s0),tokenType:Ds.String,expiresIn:Ds.NullOr(Ds.Number),scope:Ds.NullOr(Ds.String),resourceMetadataUrl:Ds.NullOr(Ds.String),authorizationServerUrl:Ds.NullOr(Ds.String),resourceMetadataJson:Ds.NullOr(Ds.String),authorizationServerMetadataJson:Ds.NullOr(Ds.String),clientInformationJson:Ds.NullOr(Ds.String)})),sQe=Ds.Number,Azr=Ds.Struct({version:sQe,payload:dY}),wzr=Ds.Struct({scopeId:Ed,sourceId:vf,catalogId:xD,catalogRevisionId:Oj,name:Ds.String,kind:Zke,endpoint:Ds.String,status:fY,enabled:Ds.Boolean,namespace:Ds.NullOr(Ds.String),importAuthPolicy:wj,bindingConfigJson:Ds.String,sourceHash:Ds.NullOr(Ds.String),lastError:Ds.NullOr(Ds.String),createdAt:Qc,updatedAt:Qc}),_Un=Ds.transform(wzr,Ds.Struct({id:vf,scopeId:Ed,catalogId:xD,catalogRevisionId:Oj,name:Ds.String,kind:Zke,endpoint:Ds.String,status:fY,enabled:Ds.Boolean,namespace:Ds.NullOr(Ds.String),importAuthPolicy:wj,bindingConfigJson:Ds.String,sourceHash:Ds.NullOr(Ds.String),lastError:Ds.NullOr(Ds.String),createdAt:Qc,updatedAt:Qc}),{strict:!1,decode:e=>({id:e.sourceId,scopeId:e.scopeId,catalogId:e.catalogId,catalogRevisionId:e.catalogRevisionId,name:e.name,kind:e.kind,endpoint:e.endpoint,status:e.status,enabled:e.enabled,namespace:e.namespace,importAuthPolicy:e.importAuthPolicy,bindingConfigJson:e.bindingConfigJson,sourceHash:e.sourceHash,lastError:e.lastError,createdAt:e.createdAt,updatedAt:e.updatedAt}),encode:e=>({scopeId:e.scopeId,sourceId:e.id,catalogId:e.catalogId,catalogRevisionId:e.catalogRevisionId,name:e.name,kind:e.kind,endpoint:e.endpoint,status:e.status,enabled:e.enabled,namespace:e.namespace,importAuthPolicy:e.importAuthPolicy,bindingConfigJson:e.bindingConfigJson,sourceHash:e.sourceHash,lastError:e.lastError,createdAt:e.createdAt,updatedAt:e.updatedAt})}),XN=Ds.Struct({id:vf,scopeId:Ed,name:Ds.String,kind:Zke,endpoint:Ds.String,status:fY,enabled:Ds.Boolean,namespace:Ds.NullOr(Ds.String),bindingVersion:sQe,binding:dY,importAuthPolicy:wj,importAuth:aQe,auth:aQe,sourceHash:Ds.NullOr(Ds.String),lastError:Ds.NullOr(Ds.String),createdAt:Qc,updatedAt:Qc});import{Schema as nx}from"effect";var M7t=nx.Literal("imported","internal"),j7t=nx.String,B7t=nx.Literal("private","scope","organization","public"),yUn=nx.Struct({id:xD,kind:M7t,adapterKey:j7t,providerKey:nx.String,name:nx.String,summary:nx.NullOr(nx.String),visibility:B7t,latestRevisionId:Oj,createdAt:Qc,updatedAt:Qc}),ipe=nx.Struct({id:Oj,catalogId:xD,revisionNumber:nx.Number,sourceConfigJson:nx.String,importMetadataJson:nx.NullOr(nx.String),importMetadataHash:nx.NullOr(nx.String),snapshotHash:nx.NullOr(nx.String),createdAt:Qc,updatedAt:Qc});import{Schema as $j}from"effect";var $7t=$j.Literal("allow","deny"),U7t=$j.Literal("auto","required"),Izr=$j.Struct({id:uY,key:$j.String,scopeId:Ed,resourcePattern:$j.String,effect:$7t,approvalMode:U7t,priority:$j.Number,enabled:$j.Boolean,createdAt:Qc,updatedAt:Qc});var kUn=$j.partial(Izr);import{Schema as mY}from"effect";import*as z7t from"effect/Option";var q7t=mY.Struct({id:lY,authArtifactId:ZJ,scopeId:Ed,sourceId:vf,actorScopeId:mY.NullOr(Ed),slot:rpe,placementsTemplateJson:mY.String,expiresAt:mY.NullOr(Qc),refreshAfter:mY.NullOr(Qc),createdAt:Qc,updatedAt:Qc}),Pzr=mY.decodeUnknownOption(Qke),Nzr=e=>{let r=Pzr(e.placementsTemplateJson);return z7t.isSome(r)?r.value:null},cQe=e=>(Nzr(e)??[]).flatMap(r=>r.parts.flatMap(i=>i.kind==="secret_ref"?[i.ref]:[]));import{Schema as Qw}from"effect";var Ozr=Qw.Struct({redirectMode:Qw.optional($ke)}),lQe=Qw.parseJson(Ozr),J7t=Qw.Struct({id:Gke,scopeId:Ed,sourceId:vf,providerKey:Qw.String,clientId:Qw.String,clientSecretProviderId:Qw.NullOr(Qw.String),clientSecretHandle:Qw.NullOr(Qw.String),clientMetadataJson:Qw.NullOr(Qw.String),createdAt:Qc,updatedAt:Qc});import{Schema as F6}from"effect";var V7t=F6.Struct({id:Rj,scopeId:Ed,providerKey:F6.String,label:F6.NullOr(F6.String),clientId:F6.String,clientSecretProviderId:F6.NullOr(F6.String),clientSecretHandle:F6.NullOr(F6.String),clientMetadataJson:F6.NullOr(F6.String),createdAt:Qc,updatedAt:Qc});import{Schema as YN}from"effect";var W7t=YN.Struct({id:KN,scopeId:Ed,actorScopeId:YN.NullOr(Ed),providerKey:YN.String,oauthClientId:Rj,tokenEndpoint:YN.String,clientAuthentication:pY,headerName:YN.String,prefix:YN.String,refreshToken:s0,grantedScopes:YN.Array(YN.String),lastRefreshedAt:YN.NullOr(Qc),orphanedAt:YN.NullOr(Qc),createdAt:Qc,updatedAt:Qc});import{Schema as Uj}from"effect";var Fzr=Uj.Literal("auth_material","oauth_access_token","oauth_refresh_token","oauth_client_info"),G7t=Uj.Struct({id:QN,name:Uj.NullOr(Uj.String),purpose:Fzr,providerId:Uj.String,handle:Uj.String,value:Uj.NullOr(Uj.String),createdAt:Qc,updatedAt:Qc});import*as hY from"effect/Schema";var Rzr=hY.Struct({scopeId:Ed,actorScopeId:Ed,resolutionScopeIds:hY.Array(Ed)});var szn=hY.partial(Rzr);import{Schema as Vo}from"effect";var Lzr=Vo.Literal("quickjs","ses","deno"),Mzr=Vo.Literal("env","file","exec","params"),jzr=Vo.Struct({source:Vo.Literal("env")}),Bzr=Vo.Literal("singleValue","json"),$zr=Vo.Struct({source:Vo.Literal("file"),path:Vo.String,mode:Vo.optional(Bzr)}),Uzr=Vo.Struct({source:Vo.Literal("exec"),command:Vo.String,args:Vo.optional(Vo.Array(Vo.String)),env:Vo.optional(Vo.Record({key:Vo.String,value:Vo.String})),allowSymlinkCommand:Vo.optional(Vo.Boolean),trustedDirs:Vo.optional(Vo.Array(Vo.String))}),zzr=Vo.Union(jzr,$zr,Uzr),qzr=Vo.Struct({source:Mzr,provider:Vo.String,id:Vo.String}),Jzr=Vo.Union(Vo.String,qzr),Vzr=Vo.Struct({endpoint:Vo.String,auth:Vo.optional(Jzr)}),Xke=Vo.Struct({name:Vo.optional(Vo.String),namespace:Vo.optional(Vo.String),enabled:Vo.optional(Vo.Boolean),connection:Vzr}),Wzr=Vo.Struct({specUrl:Vo.String,defaultHeaders:Vo.optional(Vo.NullOr(M_))}),Gzr=Vo.Struct({defaultHeaders:Vo.optional(Vo.NullOr(M_))}),Hzr=Vo.Struct({service:Vo.String,version:Vo.String,discoveryUrl:Vo.optional(Vo.NullOr(Vo.String)),defaultHeaders:Vo.optional(Vo.NullOr(M_)),scopes:Vo.optional(Vo.Array(Vo.String))}),Kzr=Vo.Struct({transport:Vo.optional(Vo.NullOr(bD)),queryParams:Vo.optional(Vo.NullOr(M_)),headers:Vo.optional(Vo.NullOr(M_)),command:Vo.optional(Vo.NullOr(Vo.String)),args:Vo.optional(Vo.NullOr(g5)),env:Vo.optional(Vo.NullOr(M_)),cwd:Vo.optional(Vo.NullOr(Vo.String))}),Qzr=Vo.extend(Xke,Vo.Struct({kind:Vo.Literal("openapi"),binding:Wzr})),Zzr=Vo.extend(Xke,Vo.Struct({kind:Vo.Literal("graphql"),binding:Gzr})),Xzr=Vo.extend(Xke,Vo.Struct({kind:Vo.Literal("google_discovery"),binding:Hzr})),Yzr=Vo.extend(Xke,Vo.Struct({kind:Vo.Literal("mcp"),binding:Kzr})),eqr=Vo.Union(Qzr,Zzr,Xzr,Yzr),tqr=Vo.Literal("allow","deny"),rqr=Vo.Literal("auto","manual"),nqr=Vo.Struct({match:Vo.String,action:tqr,approval:rqr,enabled:Vo.optional(Vo.Boolean),priority:Vo.optional(Vo.Number)}),iqr=Vo.Struct({providers:Vo.optional(Vo.Record({key:Vo.String,value:zzr})),defaults:Vo.optional(Vo.Struct({env:Vo.optional(Vo.String),file:Vo.optional(Vo.String),exec:Vo.optional(Vo.String)}))}),oqr=Vo.Struct({name:Vo.optional(Vo.String)}),H7t=Vo.Struct({runtime:Vo.optional(Lzr),workspace:Vo.optional(oqr),sources:Vo.optional(Vo.Record({key:Vo.String,value:eqr})),policies:Vo.optional(Vo.Record({key:Vo.String,value:nqr})),secrets:Vo.optional(iqr)});import{Schema as Ol}from"effect";var K7t=Ol.Literal("pending","running","waiting_for_interaction","completed","failed","cancelled"),uQe=Ol.Struct({id:Hw,scopeId:Ed,createdByScopeId:Ed,status:K7t,code:Ol.String,resultJson:Ol.NullOr(Ol.String),errorText:Ol.NullOr(Ol.String),logsJson:Ol.NullOr(Ol.String),startedAt:Ol.NullOr(Qc),completedAt:Ol.NullOr(Qc),createdAt:Qc,updatedAt:Qc});var mzn=Ol.partial(Ol.Struct({status:K7t,code:Ol.String,resultJson:Ol.NullOr(Ol.String),errorText:Ol.NullOr(Ol.String),logsJson:Ol.NullOr(Ol.String),startedAt:Ol.NullOr(Qc),completedAt:Ol.NullOr(Qc),updatedAt:Qc})),Q7t=Ol.Literal("pending","resolved","cancelled"),pQe=Ol.Struct({id:L2,executionId:Hw,status:Q7t,kind:Ol.String,purpose:Ol.String,payloadJson:Ol.String,responseJson:Ol.NullOr(Ol.String),responsePrivateJson:Ol.NullOr(Ol.String),createdAt:Qc,updatedAt:Qc});var hzn=Ol.partial(Ol.Struct({status:Q7t,kind:Ol.String,purpose:Ol.String,payloadJson:Ol.String,responseJson:Ol.NullOr(Ol.String),responsePrivateJson:Ol.NullOr(Ol.String),updatedAt:Qc})),gzn=Ol.Struct({execution:uQe,pendingInteraction:Ol.NullOr(pQe)}),aqr=Ol.Literal("tool_call"),Z7t=Ol.Literal("pending","waiting","completed","failed"),X7t=Ol.Struct({id:Hke,executionId:Hw,sequence:Ol.Number,kind:aqr,status:Z7t,path:Ol.String,argsJson:Ol.String,resultJson:Ol.NullOr(Ol.String),errorText:Ol.NullOr(Ol.String),interactionId:Ol.NullOr(L2),createdAt:Qc,updatedAt:Qc});var yzn=Ol.partial(Ol.Struct({status:Z7t,resultJson:Ol.NullOr(Ol.String),errorText:Ol.NullOr(Ol.String),interactionId:Ol.NullOr(L2),updatedAt:Qc}));import{Schema as Ma}from"effect";var sqr=Ma.Literal("ir"),cqr=Ma.Struct({path:Ma.String,sourceKey:Ma.String,title:Ma.optional(Ma.String),description:Ma.optional(Ma.String),protocol:Ma.String,toolId:Ma.String,rawToolId:Ma.NullOr(Ma.String),operationId:Ma.NullOr(Ma.String),group:Ma.NullOr(Ma.String),leaf:Ma.NullOr(Ma.String),tags:Ma.Array(Ma.String),method:Ma.NullOr(Ma.String),pathTemplate:Ma.NullOr(Ma.String),inputTypePreview:Ma.optional(Ma.String),outputTypePreview:Ma.optional(Ma.String)}),lqr=Ma.Struct({label:Ma.String,value:Ma.String,mono:Ma.optional(Ma.Boolean)}),uqr=Ma.Struct({kind:Ma.Literal("facts"),title:Ma.String,items:Ma.Array(lqr)}),pqr=Ma.Struct({kind:Ma.Literal("markdown"),title:Ma.String,body:Ma.String}),_qr=Ma.Struct({kind:Ma.Literal("code"),title:Ma.String,language:Ma.String,body:Ma.String}),dqr=Ma.Union(uqr,pqr,_qr),fqr=Ma.Struct({path:Ma.String,method:Ma.NullOr(Ma.String),inputTypePreview:Ma.optional(Ma.String),outputTypePreview:Ma.optional(Ma.String)}),Y7t=Ma.Struct({shapeId:Ma.NullOr(Ma.String),typePreview:Ma.NullOr(Ma.String),typeDeclaration:Ma.NullOr(Ma.String),schemaJson:Ma.NullOr(Ma.String),exampleJson:Ma.NullOr(Ma.String)}),mqr=Ma.Struct({callSignature:Ma.String,callDeclaration:Ma.String,callShapeId:Ma.String,resultShapeId:Ma.NullOr(Ma.String),responseSetId:Ma.String,input:Y7t,output:Y7t}),xzn=Ma.Struct({source:XN,namespace:Ma.String,pipelineKind:sqr,toolCount:Ma.Number,tools:Ma.Array(fqr)}),Tzn=Ma.Struct({summary:cqr,contract:mqr,sections:Ma.Array(dqr)}),Ezn=Ma.Struct({query:Ma.String,limit:Ma.optional(Ma.Number)}),hqr=Ma.Struct({path:Ma.String,score:Ma.Number,description:Ma.optional(Ma.String),inputTypePreview:Ma.optional(Ma.String),outputTypePreview:Ma.optional(Ma.String),reasons:Ma.Array(Ma.String)}),kzn=Ma.Struct({query:Ma.String,queryTokens:Ma.Array(Ma.String),bestPath:Ma.NullOr(Ma.String),total:Ma.Number,results:Ma.Array(hqr)});import{Schema as e5t}from"effect";var wzn=e5t.Struct({id:e5t.String,appliedAt:Qc});import*as i5t from"effect/Either";import*as Zw from"effect/Effect";import*as e8 from"effect/Schema";import*as t5t from"effect/Data";var _Qe=class extends t5t.TaggedError("RuntimeEffectError"){},_a=(e,r)=>new _Qe({module:e,message:r});var r5t={placements:[],headers:{},queryParams:{},cookies:{},bodyValues:{},expiresAt:null,refreshAfter:null,authProvider:void 0},gqr=e8.encodeSync(QKe),yqr=e8.encodeSync(ZKe),eqn=e8.encodeSync(XKe),vqr=e8.encodeSync(YKe),Sqr=e8.encodeSync(eQe),bqr=e8.encodeSync(npe),xqr=e8.decodeUnknownEither(Qke),Tqr=e8.encodeSync(tQe),Eqr=(e,r)=>{switch(r.location){case"header":e.headers[r.name]=r.value;break;case"query":e.queryParams[r.name]=r.value;break;case"cookie":e.cookies[r.name]=r.value;break;case"body":e.bodyValues[r.path]=r.value;break}},Yke=(e,r={})=>{let i={headers:{},queryParams:{},cookies:{},bodyValues:{}};for(let s of e)Eqr(i,s);return{placements:e,headers:i.headers,queryParams:i.queryParams,cookies:i.cookies,bodyValues:i.bodyValues,expiresAt:r.expiresAt??null,refreshAfter:r.refreshAfter??null}},n5t=e=>Zw.map(Zw.forEach(e.parts,r=>r.kind==="literal"?Zw.succeed(r.value):e.resolveSecretMaterial({ref:r.ref,context:e.context}),{discard:!1}),r=>r.join("")),ope=e=>{if(e.auth.kind==="none")return null;let r=e.existingAuthArtifactId??`auth_art_${crypto.randomUUID()}`,i=e.auth.kind==="oauth2_authorized_user"?kqr(e.auth.grantSet):null;return e.auth.kind==="bearer"?{id:r,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:Mj,configJson:gqr({headerName:e.auth.headerName,prefix:e.auth.prefix,token:e.auth.token}),grantSetJson:i,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:e.auth.kind==="oauth2_authorized_user"?{id:r,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:Kw,configJson:vqr({headerName:e.auth.headerName,prefix:e.auth.prefix,tokenEndpoint:e.auth.tokenEndpoint,clientId:e.auth.clientId,clientAuthentication:e.auth.clientAuthentication,clientSecret:e.auth.clientSecret,refreshToken:e.auth.refreshToken}),grantSetJson:i,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:e.auth.kind==="provider_grant_ref"?{id:r,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:HKe,configJson:Sqr({grantId:e.auth.grantId,providerKey:e.auth.providerKey,requiredScopes:[...e.auth.requiredScopes],headerName:e.auth.headerName,prefix:e.auth.prefix}),grantSetJson:i,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:e.auth.kind==="mcp_oauth"?{id:r,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:KKe,configJson:bqr({redirectUri:e.auth.redirectUri,accessToken:e.auth.accessToken,refreshToken:e.auth.refreshToken,tokenType:e.auth.tokenType,expiresIn:e.auth.expiresIn,scope:e.auth.scope,resourceMetadataUrl:e.auth.resourceMetadataUrl,authorizationServerUrl:e.auth.authorizationServerUrl,resourceMetadataJson:e.auth.resourceMetadataJson,authorizationServerMetadataJson:e.auth.authorizationServerMetadataJson,clientInformationJson:e.auth.clientInformationJson}),grantSetJson:i,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:{id:r,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:jj,configJson:yqr({headerName:e.auth.headerName,prefix:e.auth.prefix,accessToken:e.auth.accessToken,refreshToken:e.auth.refreshToken}),grantSetJson:i,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}},eCe=e=>{if(e===null)return{kind:"none"};let r=ZN(e);if(r!==null)return{kind:"provider_grant_ref",grantId:r.grantId,providerKey:r.providerKey,requiredScopes:[...r.requiredScopes],headerName:r.headerName,prefix:r.prefix};let i=_Y(e);if(i!==null)return{kind:"mcp_oauth",redirectUri:i.redirectUri,accessToken:i.accessToken,refreshToken:i.refreshToken,tokenType:i.tokenType,expiresIn:i.expiresIn,scope:i.scope,resourceMetadataUrl:i.resourceMetadataUrl,authorizationServerUrl:i.authorizationServerUrl,resourceMetadataJson:i.resourceMetadataJson,authorizationServerMetadataJson:i.authorizationServerMetadataJson,clientInformationJson:i.clientInformationJson};let s=Bj(e);if(s===null)return{kind:"none"};switch(s.artifactKind){case Mj:return{kind:"bearer",headerName:s.config.headerName,prefix:s.config.prefix,token:s.config.token};case jj:return{kind:"oauth2",headerName:s.config.headerName,prefix:s.config.prefix,accessToken:s.config.accessToken,refreshToken:s.config.refreshToken};case XJ:return{kind:"none"};case Kw:return{kind:"oauth2_authorized_user",headerName:s.config.headerName,prefix:s.config.prefix,tokenEndpoint:s.config.tokenEndpoint,clientId:s.config.clientId,clientAuthentication:s.config.clientAuthentication,clientSecret:s.config.clientSecret,refreshToken:s.config.refreshToken,grantSet:N7t(e.grantSetJson)}}};var ape=e=>O7t(e);var kqr=e=>e===null?null:Tqr([...e]),zj=e=>Zw.gen(function*(){if(e.artifact===null)return r5t;let r=Bj(e.artifact);if(r!==null)switch(r.artifactKind){case Mj:{let h=yield*e.resolveSecretMaterial({ref:r.config.token,context:e.context});return Yke([{location:"header",name:r.config.headerName,value:`${r.config.prefix}${h}`}])}case jj:{let h=yield*e.resolveSecretMaterial({ref:r.config.accessToken,context:e.context});return Yke([{location:"header",name:r.config.headerName,value:`${r.config.prefix}${h}`}])}case XJ:{let h=yield*Zw.forEach(r.config.placements,S=>Zw.map(n5t({parts:S.parts,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context}),b=>S.location==="body"?{location:"body",path:S.path,value:b}:{location:S.location,name:S.name,value:b}),{discard:!1});return Yke(h)}case Kw:break}if(ZN(e.artifact)!==null&&(e.lease===null||e.lease===void 0))return yield*_a("auth/auth-artifacts",`Provider grant auth artifact ${e.artifact.id} requires a lease`);if(_Y(e.artifact)!==null)return{...r5t};if(e.lease===null||e.lease===void 0)return yield*_a("auth/auth-artifacts",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let l=xqr(e.lease.placementsTemplateJson);if(i5t.isLeft(l))return yield*_a("auth/auth-artifacts",`Invalid auth lease placements for artifact ${e.artifact.id}`);let d=yield*Zw.forEach(l.right,h=>Zw.map(n5t({parts:h.parts,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context}),S=>h.location==="body"?{location:"body",path:h.path,value:S}:{location:h.location,name:h.name,value:S}),{discard:!1});return Yke(d,{expiresAt:e.lease.expiresAt,refreshAfter:e.lease.refreshAfter})});import*as ST from"effect/Effect";import*as YJ from"effect/Option";import{createHash as Cqr,randomBytes as Dqr}from"node:crypto";import*as spe from"effect/Effect";var o5t=e=>e.toString("base64").replaceAll("+","-").replaceAll("/","_").replaceAll("=",""),dQe=()=>o5t(Dqr(48)),Aqr=e=>o5t(Cqr("sha256").update(e).digest()),fQe=e=>{let r=new URL(e.authorizationEndpoint);r.searchParams.set("client_id",e.clientId),r.searchParams.set("redirect_uri",e.redirectUri),r.searchParams.set("response_type","code"),r.searchParams.set("scope",e.scopes.join(" ")),r.searchParams.set("state",e.state),r.searchParams.set("code_challenge_method","S256"),r.searchParams.set("code_challenge",Aqr(e.codeVerifier));for(let[i,s]of Object.entries(e.extraParams??{}))r.searchParams.set(i,s);return r.toString()},wqr=async e=>{let r=await e.text(),i;try{i=JSON.parse(r)}catch{throw new Error(`OAuth token endpoint returned non-JSON response (${e.status})`)}if(i===null||typeof i!="object"||Array.isArray(i))throw new Error(`OAuth token endpoint returned invalid JSON payload (${e.status})`);let s=i,l=typeof s.access_token=="string"&&s.access_token.length>0?s.access_token:null;if(!e.ok){let d=typeof s.error_description=="string"&&s.error_description.length>0?s.error_description:typeof s.error=="string"&&s.error.length>0?s.error:`status ${e.status}`;throw new Error(`OAuth token exchange failed: ${d}`)}if(l===null)throw new Error("OAuth token endpoint did not return an access_token");return{access_token:l,token_type:typeof s.token_type=="string"?s.token_type:void 0,refresh_token:typeof s.refresh_token=="string"?s.refresh_token:void 0,expires_in:typeof s.expires_in=="number"?s.expires_in:typeof s.expires_in=="string"?Number(s.expires_in):void 0,scope:typeof s.scope=="string"?s.scope:void 0}},a5t=e=>spe.tryPromise({try:async()=>{let r=await fetch(e.tokenEndpoint,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded",accept:"application/json"},body:e.body,signal:AbortSignal.timeout(2e4)});return wqr(r)},catch:r=>r instanceof Error?r:new Error(String(r))}),mQe=e=>spe.gen(function*(){let r=new URLSearchParams({grant_type:"authorization_code",client_id:e.clientId,redirect_uri:e.redirectUri,code_verifier:e.codeVerifier,code:e.code});return e.clientAuthentication==="client_secret_post"&&e.clientSecret&&r.set("client_secret",e.clientSecret),yield*a5t({tokenEndpoint:e.tokenEndpoint,body:r})}),hQe=e=>spe.gen(function*(){let r=new URLSearchParams({grant_type:"refresh_token",client_id:e.clientId,refresh_token:e.refreshToken});return e.clientAuthentication==="client_secret_post"&&e.clientSecret&&r.set("client_secret",e.clientSecret),e.scopes&&e.scopes.length>0&&r.set("scope",e.scopes.join(" ")),yield*a5t({tokenEndpoint:e.tokenEndpoint,body:r})});import*as TD from"effect/Effect";import*as c5t from"effect/Schema";var Iqr=c5t.encodeSync(npe),gQe=e=>{if(e!==null)try{let r=JSON.parse(e);return r!==null&&typeof r=="object"&&!Array.isArray(r)?r:void 0}catch{return}},gY=e=>e==null?null:JSON.stringify(e),Pqr=e=>({redirect_uris:[e],grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none",client_name:"Executor Local"}),s5t=(e,r)=>(e?.providerId??null)===(r?.providerId??null)&&(e?.handle??null)===(r?.handle??null),Nqr=e=>TD.gen(function*(){s5t(e.previousAccessToken,e.nextAccessToken)||(yield*TD.either(e.deleteSecretMaterial(e.previousAccessToken))),e.previousRefreshToken!==null&&!s5t(e.previousRefreshToken,e.nextRefreshToken)&&(yield*TD.either(e.deleteSecretMaterial(e.previousRefreshToken)))}),l5t=e=>({kind:"mcp_oauth",redirectUri:e.redirectUri,accessToken:e.accessToken,refreshToken:e.refreshToken,tokenType:e.tokenType,expiresIn:e.expiresIn,scope:e.scope,resourceMetadataUrl:e.resourceMetadataUrl,authorizationServerUrl:e.authorizationServerUrl,resourceMetadataJson:gY(e.resourceMetadata),authorizationServerMetadataJson:gY(e.authorizationServerMetadata),clientInformationJson:gY(e.clientInformation)}),u5t=e=>{let r=e.artifact,i=e.config,s=l=>TD.gen(function*(){let d={...r,configJson:Iqr(l),updatedAt:Date.now()};yield*e.executorState.authArtifacts.upsert(d),r=d,i=l});return{get redirectUrl(){return i.redirectUri},get clientMetadata(){return Pqr(i.redirectUri)},clientInformation:()=>gQe(i.clientInformationJson),saveClientInformation:l=>TD.runPromise(s({...i,clientInformationJson:gY(l)})).then(()=>{}),tokens:async()=>{let l=await TD.runPromise(e.resolveSecretMaterial({ref:i.accessToken,context:e.context})),d=i.refreshToken?await TD.runPromise(e.resolveSecretMaterial({ref:i.refreshToken,context:e.context})):void 0;return{access_token:l,token_type:i.tokenType,...typeof i.expiresIn=="number"?{expires_in:i.expiresIn}:{},...i.scope?{scope:i.scope}:{},...d?{refresh_token:d}:{}}},saveTokens:l=>TD.runPromise(TD.gen(function*(){let d=i,h=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:l.access_token,name:`${r.sourceId} MCP Access Token`}),S=l.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:l.refresh_token,name:`${r.sourceId} MCP Refresh Token`}):i.refreshToken,b={...i,accessToken:h,refreshToken:S,tokenType:l.token_type??i.tokenType,expiresIn:typeof l.expires_in=="number"&&Number.isFinite(l.expires_in)?l.expires_in:i.expiresIn,scope:l.scope??i.scope};yield*s(b),yield*Nqr({deleteSecretMaterial:e.deleteSecretMaterial,previousAccessToken:d.accessToken,nextAccessToken:h,previousRefreshToken:d.refreshToken,nextRefreshToken:S})})).then(()=>{}),redirectToAuthorization:async l=>{throw new Error(`MCP OAuth re-authorization is required for ${r.sourceId}: ${l.toString()}`)},saveCodeVerifier:()=>{},codeVerifier:()=>{throw new Error("Persisted MCP OAuth sessions do not retain an active PKCE verifier")},saveDiscoveryState:l=>TD.runPromise(s({...i,resourceMetadataUrl:l.resourceMetadataUrl??null,authorizationServerUrl:l.authorizationServerUrl??null,resourceMetadataJson:gY(l.resourceMetadata),authorizationServerMetadataJson:gY(l.authorizationServerMetadata)})).then(()=>{}),discoveryState:()=>i.authorizationServerUrl===null?void 0:{resourceMetadataUrl:i.resourceMetadataUrl??void 0,authorizationServerUrl:i.authorizationServerUrl,resourceMetadata:gQe(i.resourceMetadataJson),authorizationServerMetadata:gQe(i.authorizationServerMetadataJson)}}};var rCe=6e4,yQe=e=>JSON.stringify(e),tCe=e=>`${e.providerId}:${e.handle}`,nCe=(e,r,i)=>ST.gen(function*(){if(r.previous===null)return;let s=new Set((r.next===null?[]:cQe(r.next)).map(tCe)),l=cQe(r.previous).filter(d=>!s.has(tCe(d)));yield*ST.forEach(l,d=>ST.either(i(d)),{discard:!0})}),p5t=(e,r)=>!(e===null||e.refreshAfter!==null&&r>=e.refreshAfter||e.expiresAt!==null&&r>=e.expiresAt-rCe),Oqr=e=>ST.gen(function*(){let r=Bj(e.artifact);if(r===null||r.artifactKind!==Kw)return yield*_a("auth/auth-leases",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let i=yield*e.resolveSecretMaterial({ref:r.config.refreshToken,context:e.context}),s=null;r.config.clientSecret&&(s=yield*e.resolveSecretMaterial({ref:r.config.clientSecret,context:e.context}));let l=yield*hQe({tokenEndpoint:r.config.tokenEndpoint,clientId:r.config.clientId,clientAuthentication:r.config.clientAuthentication,clientSecret:s,refreshToken:i}),d=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:l.access_token,name:`${r.config.clientId} Access Token`}),h=Date.now(),S=typeof l.expires_in=="number"&&Number.isFinite(l.expires_in)?Math.max(0,l.expires_in*1e3):null,b=S===null?null:h+S,A=b===null?null:Math.max(h,b-rCe),L={id:e.lease?.id??lY.make(`auth_lease_${crypto.randomUUID()}`),authArtifactId:e.artifact.id,scopeId:e.artifact.scopeId,sourceId:e.artifact.sourceId,actorScopeId:e.artifact.actorScopeId,slot:e.artifact.slot,placementsTemplateJson:yQe([{location:"header",name:r.config.headerName,parts:[{kind:"literal",value:r.config.prefix},{kind:"secret_ref",ref:d}]}]),expiresAt:b,refreshAfter:A,createdAt:e.lease?.createdAt??h,updatedAt:h};return yield*e.executorState.authLeases.upsert(L),yield*nCe(e.executorState,{previous:e.lease,next:L},e.deleteSecretMaterial),L}),Fqr=e=>e.clientSecretProviderId&&e.clientSecretHandle?{providerId:e.clientSecretProviderId,handle:e.clientSecretHandle}:null,Rqr=(e,r,i)=>tCe(r.previous)===tCe(r.next)?ST.void:i(r.previous).pipe(ST.either,ST.ignore),Lqr=e=>ST.gen(function*(){let r=ZN(e.artifact);if(r===null)return yield*_a("auth/auth-leases",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let i=yield*e.executorState.providerAuthGrants.getById(r.grantId);if(YJ.isNone(i))return yield*_a("auth/auth-leases",`Provider auth grant not found: ${r.grantId}`);let s=i.value,l=yield*e.executorState.scopeOauthClients.getById(s.oauthClientId);if(YJ.isNone(l))return yield*_a("auth/auth-leases",`Scope OAuth client not found: ${s.oauthClientId}`);let d=l.value,h=yield*e.resolveSecretMaterial({ref:s.refreshToken,context:e.context}),S=Fqr(d),b=S?yield*e.resolveSecretMaterial({ref:S,context:e.context}):null,A=yield*hQe({tokenEndpoint:s.tokenEndpoint,clientId:d.clientId,clientAuthentication:s.clientAuthentication,clientSecret:b,refreshToken:h,scopes:r.requiredScopes.length>0?r.requiredScopes:null}),L=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:A.access_token,name:`${s.providerKey} Access Token`}),V=A.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:A.refresh_token,name:`${s.providerKey} Refresh Token`}):s.refreshToken,j=Date.now(),ie={...s,refreshToken:V,lastRefreshedAt:j,updatedAt:j};yield*e.executorState.providerAuthGrants.upsert(ie),yield*Rqr(e.executorState,{previous:s.refreshToken,next:V},e.deleteSecretMaterial);let te=typeof A.expires_in=="number"&&Number.isFinite(A.expires_in)?Math.max(0,A.expires_in*1e3):null,X=te===null?null:j+te,Re=X===null?null:Math.max(j,X-rCe),Je={id:e.lease?.id??lY.make(`auth_lease_${crypto.randomUUID()}`),authArtifactId:e.artifact.id,scopeId:e.artifact.scopeId,sourceId:e.artifact.sourceId,actorScopeId:e.artifact.actorScopeId,slot:e.artifact.slot,placementsTemplateJson:yQe([{location:"header",name:r.headerName,parts:[{kind:"literal",value:r.prefix},{kind:"secret_ref",ref:L}]}]),expiresAt:X,refreshAfter:Re,createdAt:e.lease?.createdAt??j,updatedAt:j};return yield*e.executorState.authLeases.upsert(Je),yield*nCe(e.executorState,{previous:e.lease,next:Je},e.deleteSecretMaterial),Je}),E5=(e,r,i)=>ST.gen(function*(){let s=yield*e.authLeases.getByAuthArtifactId(r.authArtifactId);YJ.isNone(s)||(yield*e.authLeases.removeByAuthArtifactId(r.authArtifactId),yield*nCe(e,{previous:s.value,next:null},i))}),_5t=e=>ST.gen(function*(){let r=Bj(e.artifact);if(r===null||r.artifactKind!==Kw)return yield*_a("auth/auth-leases",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let i=yield*e.executorState.authLeases.getByAuthArtifactId(e.artifact.id),s=YJ.isSome(i)?i.value:null,l=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:e.tokenResponse.access_token,name:`${r.config.clientId} Access Token`}),d=Date.now(),h=typeof e.tokenResponse.expires_in=="number"&&Number.isFinite(e.tokenResponse.expires_in)?Math.max(0,e.tokenResponse.expires_in*1e3):null,S=h===null?null:d+h,b=S===null?null:Math.max(d,S-rCe),A={id:s?.id??lY.make(`auth_lease_${crypto.randomUUID()}`),authArtifactId:e.artifact.id,scopeId:e.artifact.scopeId,sourceId:e.artifact.sourceId,actorScopeId:e.artifact.actorScopeId,slot:e.artifact.slot,placementsTemplateJson:yQe([{location:"header",name:r.config.headerName,parts:[{kind:"literal",value:r.config.prefix},{kind:"secret_ref",ref:l}]}]),expiresAt:S,refreshAfter:b,createdAt:s?.createdAt??d,updatedAt:d};yield*e.executorState.authLeases.upsert(A),yield*nCe(e.executorState,{previous:s,next:A},e.deleteSecretMaterial)}),vQe=e=>ST.gen(function*(){if(e.artifact===null)return yield*zj({artifact:null,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context});let r=yield*e.executorState.authLeases.getByAuthArtifactId(e.artifact.id),i=YJ.isSome(r)?r.value:null,s=Bj(e.artifact),l=ZN(e.artifact),d=_Y(e.artifact);if(s!==null&&s.artifactKind===Kw){let h=p5t(i,Date.now())?i:yield*Oqr({executorState:e.executorState,artifact:e.artifact,lease:i,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,context:e.context});return yield*zj({artifact:e.artifact,lease:h,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})}if(l!==null){let h=p5t(i,Date.now())?i:yield*Lqr({executorState:e.executorState,artifact:e.artifact,lease:i,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,context:e.context});return yield*zj({artifact:e.artifact,lease:h,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})}return d!==null?{...yield*zj({artifact:e.artifact,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context}),authProvider:u5t({executorState:e.executorState,artifact:e.artifact,config:d,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,context:e.context})}:yield*zj({artifact:e.artifact,lease:i,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})});import*as yY from"effect/Context";var Xw=class extends yY.Tag("#runtime/SecretMaterialResolverService")(){},dk=class extends yY.Tag("#runtime/SecretMaterialStorerService")(){},bT=class extends yY.Tag("#runtime/SecretMaterialDeleterService")(){},t8=class extends yY.Tag("#runtime/SecretMaterialUpdaterService")(){},r8=class extends yY.Tag("#runtime/LocalInstanceConfigService")(){};var Mqr=e=>e.slot==="runtime"||e.source.importAuthPolicy==="reuse_runtime"?e.source.auth:e.source.importAuthPolicy==="none"?{kind:"none"}:e.source.importAuth,qj=class extends d5t.Tag("#runtime/RuntimeSourceAuthMaterialService")(){},jqr=e=>k5.gen(function*(){let r=e.slot??"runtime";if(e.executorState!==void 0){let s=r==="import"&&e.source.importAuthPolicy==="reuse_runtime"?["import","runtime"]:[r];for(let l of s){let d=yield*e.executorState.authArtifacts.getByScopeSourceAndActor({scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:l});if(m5t.isSome(d))return yield*vQe({executorState:e.executorState,artifact:d.value,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial??(()=>k5.dieMessage("storeSecretMaterial unavailable")),deleteSecretMaterial:e.deleteSecretMaterial??(()=>k5.dieMessage("deleteSecretMaterial unavailable")),context:e.context})}}let i=ope({source:e.source,auth:Mqr({source:e.source,slot:r}),slot:r,actorScopeId:e.actorScopeId??null});return e.executorState!==void 0?yield*vQe({executorState:e.executorState,artifact:i,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial??(()=>k5.dieMessage("storeSecretMaterial unavailable")),deleteSecretMaterial:e.deleteSecretMaterial??(()=>k5.dieMessage("deleteSecretMaterial unavailable")),context:e.context}):i?.artifactKind==="oauth2_authorized_user"||i?.artifactKind==="provider_grant_ref"||i?.artifactKind==="mcp_oauth"?yield*_a("auth/source-auth-material","Dynamic auth artifacts require persistence-backed lease resolution"):yield*zj({artifact:i,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})});var h5t=f5t.effect(qj,k5.gen(function*(){let e=yield*dm,r=yield*Xw,i=yield*dk,s=yield*bT;return qj.of({resolve:l=>jqr({...l,executorState:e,resolveSecretMaterial:r,storeSecretMaterial:i,deleteSecretMaterial:s})})}));import*as Rat from"effect/Cache";import*as uZt from"effect/Context";import*as p_ from"effect/Effect";import*as pZt from"effect/Layer";import*as $d from"effect/Match";import*as SY from"effect/Data";var iCe=class extends SY.TaggedError("RuntimeLocalScopeUnavailableError"){},vY=class extends SY.TaggedError("RuntimeLocalScopeMismatchError"){},cpe=class extends SY.TaggedError("LocalConfiguredSourceNotFoundError"){},oCe=class extends SY.TaggedError("LocalSourceArtifactMissingError"){},aCe=class extends SY.TaggedError("LocalUnsupportedSourceKindError"){};import{createHash as Bqr}from"node:crypto";var $qr=/^[A-Za-z_$][A-Za-z0-9_$]*$/,Uqr=e=>Bqr("sha256").update(e).digest("hex").slice(0,24),EQe=e=>$qr.test(e)?e:JSON.stringify(e),v5t=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2").split(/[^A-Za-z0-9]+/).filter(r=>r.length>0),zqr=e=>/^\d+$/.test(e)?e:`${e.slice(0,1).toUpperCase()}${e.slice(1).toLowerCase()}`,eV=e=>{let r=v5t(e).map(i=>zqr(i)).join("");return r.length===0?"Type":/^[A-Za-z_$]/.test(r)?r:`T${r}`},c0=(...e)=>e.map(r=>eV(r)).filter(r=>r.length>0).join(""),S5t=e=>{switch(e){case"string":case"boolean":return e;case"bytes":return"string";case"integer":case"number":return"number";case"null":return"null";case"object":return"Record";case"array":return"Array";default:throw new Error(`Unsupported JSON Schema primitive type: ${e}`)}},xY=e=>{let r=JSON.stringify(e);if(r===void 0)throw new Error(`Unsupported literal value in declaration schema: ${String(e)}`);return r},Jj=e=>e.includes(" | ")||e.includes(" & ")?`(${e})`:e,qqr=(e,r)=>e.length===0?"{}":["{",...e.flatMap(i=>i.split(` -`).map(s=>`${r}${s}`)),`${r.slice(0,-2)}}`].join(` -`),M2=(e,r)=>{let i=e.symbols[r];if(!i||i.kind!=="shape")throw new Error(`Missing shape symbol for ${r}`);return i},SQe=e=>e.type==="unknown"||e.type==="scalar"||e.type==="const"||e.type==="enum",Jqr=e=>/^shape_[a-f0-9_]+$/i.test(e),Vqr=e=>/\s/.test(e.trim()),Wqr=e=>{let r=e.title?.trim();return r&&!Jqr(r)?eV(r):void 0},Gqr=e=>e.replace(/~1/g,"/").replace(/~0/g,"~"),g5t=e=>{let r=e.trim();if(!(r.length===0||/^\d+$/.test(r)||["$defs","definitions","components","schemas","schema","properties","items","additionalProperties","patternProperties","allOf","anyOf","oneOf","not","if","then","else","input","output","graphql","scalars","responses","headers","parameters","requestBody"].includes(r)))return eV(r)},Hqr=e=>{for(let r of e){let i=r.pointer;if(!i?.startsWith("#/"))continue;let s=i.slice(2).split("/").map(Gqr),l=s.flatMap((d,h)=>["$defs","definitions","schemas","input","output"].includes(d)?[h]:[]);for(let d of l){let h=g5t(s[d+1]??"");if(h)return h}for(let d=s.length-1;d>=0;d-=1){let h=g5t(s[d]??"");if(h)return h}}},sCe=e=>{let r=e?.trim();return r&&r.length>0?r:null},b5t=e=>e.replace(/\*\//g,"*\\/"),bQe=(e,r)=>{if(r){e.length>0&&e.push("");for(let i of r.split(/\r?\n/))e.push(b5t(i.trimEnd()))}},lpe=e=>{let r=[],i=e.includeTitle&&e.title&&Vqr(e.title)?sCe(e.title):null,s=sCe(e.docs?.summary),l=sCe(e.docs?.description),d=sCe(e.docs?.externalDocsUrl);return bQe(r,i&&i!==s?i:null),bQe(r,s),bQe(r,l&&l!==s?l:null),d&&(r.length>0&&r.push(""),r.push(`@see ${b5t(d)}`)),e.deprecated&&(r.length>0&&r.push(""),r.push("@deprecated")),r.length===0?null:["/**",...r.map(h=>h.length>0?` * ${h}`:" *")," */"].join(` -`)},Kqr=e=>{let r=v5t(e);if(r.length<=5)return c0(...r);let i=r.filter((s,l)=>l>=r.length-2||!["item","member","value"].includes(s.toLowerCase()));return c0(...i.slice(-5))},y5t=e=>{switch(e.type){case"unknown":case"scalar":case"const":case"enum":return[];case"object":return[...Object.values(e.fields).map(r=>r.shapeId),...typeof e.additionalProperties=="string"?[e.additionalProperties]:[],...Object.values(e.patternProperties??{})];case"array":return[e.itemShapeId];case"tuple":return[...e.itemShapeIds,...typeof e.additionalItems=="string"?[e.additionalItems]:[]];case"map":return[e.valueShapeId];case"allOf":case"anyOf":case"oneOf":return[...e.items];case"nullable":return[e.itemShapeId];case"ref":return[e.target];case"not":return[e.itemShapeId];case"conditional":return[e.ifShapeId,...e.thenShapeId?[e.thenShapeId]:[],...e.elseShapeId?[e.elseShapeId]:[]];case"graphqlInterface":return[...Object.values(e.fields).map(r=>r.shapeId),...e.possibleTypeIds];case"graphqlUnion":return[...e.memberTypeIds]}},xQe=e=>{switch(e.type){case"unknown":return"unknown";case"scalar":return S5t(e.scalar);case"const":return xY(e.value);case"enum":return e.values.map(r=>xY(r)).join(" | ");default:throw new Error(`Cannot inline non-primitive shape node: ${e.type}`)}},Qqr=(e,r,i,s,l)=>{let d=new Set;r&&d.add("unknown");for(let h of e)d.add(l(h,{stack:s,aliasHint:i}));return[...d].sort((h,S)=>h.localeCompare(S)).join(" | ")},TQe=(e,r,i,s,l)=>{let d=new Set(e.required),h=Object.keys(e.fields).sort((L,V)=>L.localeCompare(V)).map(L=>{let V=e.fields[L],j=`${EQe(L)}${d.has(L)?"":"?"}: ${s(V.shapeId,{stack:r,aliasHint:i?c0(i,L):L})};`,ie=l?lpe({docs:V.docs,deprecated:V.deprecated}):null;return ie?`${ie} -${j}`:j}),S=Object.values(e.patternProperties??{}),b=e.additionalProperties===!0,A=typeof e.additionalProperties=="string"?[e.additionalProperties]:[];return(b||S.length>0||A.length>0)&&h.push(`[key: string]: ${Qqr([...S,...A],b,i?c0(i,"value"):"value",r,s)};`),qqr(h," ")},Zqr=(e,r,i,s,l)=>TQe({fields:e.fields,required:e.type==="object"?e.required??[]:[],additionalProperties:e.type==="object"?e.additionalProperties:!1,patternProperties:e.type==="object"?e.patternProperties??{}:{}},r,i,s,l),bY=(e,r,i,s,l,d)=>{let S=M2(e,r).node;switch(S.type){case"unknown":case"scalar":case"const":case"enum":return xQe(S);case"object":case"graphqlInterface":return Zqr(S,i,s,l,d);case"array":return`Array<${Jj(l(S.itemShapeId,{stack:i,aliasHint:s?c0(s,"item"):"item"}))}>`;case"tuple":{let b=S.itemShapeIds.map((L,V)=>l(L,{stack:i,aliasHint:s?c0(s,`item_${String(V+1)}`):`item_${String(V+1)}`})),A=S.additionalItems===!0?", ...unknown[]":typeof S.additionalItems=="string"?`, ...Array<${Jj(l(S.additionalItems,{stack:i,aliasHint:s?c0(s,"rest"):"rest"}))}>`:"";return`[${b.join(", ")}${A}]`}case"map":return`Record`;case"allOf":return S.items.map((b,A)=>Jj(l(b,{stack:i,aliasHint:s?c0(s,`member_${String(A+1)}`):`member_${String(A+1)}`}))).join(" & ");case"anyOf":case"oneOf":return S.items.map((b,A)=>Jj(l(b,{stack:i,aliasHint:s?c0(s,`member_${String(A+1)}`):`member_${String(A+1)}`}))).join(" | ");case"nullable":return`${Jj(l(S.itemShapeId,{stack:i,aliasHint:s}))} | null`;case"ref":return l(S.target,{stack:i,aliasHint:s});case"not":case"conditional":return"unknown";case"graphqlUnion":return S.memberTypeIds.map((b,A)=>Jj(l(b,{stack:i,aliasHint:s?c0(s,`member_${String(A+1)}`):`member_${String(A+1)}`}))).join(" | ")}},upe=e=>{let{catalog:r,roots:i}=e,s=new Map,l=new Set(i.map(an=>an.shapeId)),d=new Set,h=new Set,S=new Set,b=new Map,A=new Map,L=new Map,V=new Map,j=new Map,ie=new Set,te=new Set,X=(an,Xr=[])=>{let li=s.get(an);if(li)return li;if(Xr.includes(an))return{key:`cycle:${an}`,recursive:!0};let Wi=M2(r,an),Bo=[...Xr,an],Wn=(uc,Pt)=>{let ou=uc.map(go=>X(go,Bo));return Pt?ou.sort((go,mc)=>go.key.localeCompare(mc.key)):ou},Na=!1,hs=uc=>{let Pt=X(uc,Bo);return Na=Na||Pt.recursive,Pt.key},Us=(uc,Pt)=>{let ou=Wn(uc,Pt);return Na=Na||ou.some(go=>go.recursive),ou.map(go=>go.key)},Sc=(()=>{switch(Wi.node.type){case"unknown":return"unknown";case"scalar":return`scalar:${S5t(Wi.node.scalar)}`;case"const":return`const:${xY(Wi.node.value)}`;case"enum":return`enum:${Wi.node.values.map(uc=>xY(uc)).sort().join("|")}`;case"object":{let uc=Wi.node.required??[],Pt=Object.entries(Wi.node.fields).sort(([mc],[zp])=>mc.localeCompare(zp)).map(([mc,zp])=>`${mc}${uc.includes(mc)?"!":"?"}:${hs(zp.shapeId)}`).join(","),ou=Wi.node.additionalProperties===!0?"unknown":typeof Wi.node.additionalProperties=="string"?hs(Wi.node.additionalProperties):"none",go=Object.entries(Wi.node.patternProperties??{}).map(([,mc])=>X(mc,Bo)).sort((mc,zp)=>mc.key.localeCompare(zp.key)).map(mc=>(Na=Na||mc.recursive,mc.key)).join("|");return`object:${Pt}:index=${ou}:patterns=${go}`}case"array":return`array:${hs(Wi.node.itemShapeId)}`;case"tuple":return`tuple:${Us(Wi.node.itemShapeIds,!1).join(",")}:rest=${Wi.node.additionalItems===!0?"unknown":typeof Wi.node.additionalItems=="string"?hs(Wi.node.additionalItems):"none"}`;case"map":return`map:${hs(Wi.node.valueShapeId)}`;case"allOf":return`allOf:${Us(Wi.node.items,!0).join("&")}`;case"anyOf":return`anyOf:${Us(Wi.node.items,!0).join("|")}`;case"oneOf":return`oneOf:${Us(Wi.node.items,!0).join("|")}`;case"nullable":return`nullable:${hs(Wi.node.itemShapeId)}`;case"ref":return hs(Wi.node.target);case"not":case"conditional":return"unknown";case"graphqlInterface":{let uc=Object.entries(Wi.node.fields).sort(([ou],[go])=>ou.localeCompare(go)).map(([ou,go])=>`${ou}:${hs(go.shapeId)}`).join(","),Pt=Us(Wi.node.possibleTypeIds,!0).join("|");return`graphqlInterface:${uc}:possible=${Pt}`}case"graphqlUnion":return`graphqlUnion:${Us(Wi.node.memberTypeIds,!0).join("|")}`}})(),Wu={key:`sig:${Uqr(Sc)}`,recursive:Na};return s.set(an,Wu),Wu},Re=(an,Xr=[])=>X(an,Xr).key,Je=an=>{if(!d.has(an)){d.add(an);for(let Xr of y5t(M2(r,an).node))Je(Xr)}};for(let an of i)Je(an.shapeId);for(let an of d){let Xr=M2(r,an);if(Xr.synthetic)continue;let li=Wqr(Xr);li&&(V.set(an,li),j.set(li,(j.get(li)??0)+1))}let pt=an=>{let Xr=V.get(an);return Xr&&j.get(Xr)===1?Xr:void 0},$e=[],xt=new Set,tr=an=>{let Xr=$e.indexOf(an);if(Xr===-1){h.add(an);return}for(let li of $e.slice(Xr))h.add(li);h.add(an)},ht=an=>{if(!xt.has(an)){if($e.includes(an)){tr(an);return}$e.push(an);for(let Xr of y5t(M2(r,an).node)){if($e.includes(Xr)){tr(Xr);continue}ht(Xr)}$e.pop(),xt.add(an)}};for(let an of i){ht(an.shapeId);let Xr=A.get(an.shapeId);(!Xr||an.aliasHint.length{if(Xr.includes(an))return null;let li=M2(r,an);switch(li.node.type){case"ref":return wt(li.node.target,[...Xr,an]);case"object":return{shapeId:an,node:li.node};default:return null}},Ut=(an,Xr=[])=>{if(Xr.includes(an))return null;let li=M2(r,an);switch(li.node.type){case"ref":return Ut(li.node.target,[...Xr,an]);case"const":return[xY(li.node.value)];case"enum":return li.node.values.map(Wi=>xY(Wi));default:return null}},hr=an=>{let[Xr,...li]=an;return Xr?li.every(Wi=>{let Bo=Xr.node.additionalProperties,Wn=Wi.node.additionalProperties;return Bo===Wn?!0:typeof Bo=="string"&&typeof Wn=="string"&&Re(Bo)===Re(Wn)}):!1},Hi=an=>{let[Xr,...li]=an;if(!Xr)return!1;let Wi=Xr.node.patternProperties??{},Bo=Object.keys(Wi).sort();return li.every(Wn=>{let Na=Wn.node.patternProperties??{},hs=Object.keys(Na).sort();return hs.length!==Bo.length||hs.some((Us,Sc)=>Us!==Bo[Sc])?!1:hs.every(Us=>Re(Wi[Us])===Re(Na[Us]))})},un=an=>{let[Xr]=an;if(!Xr)return null;let li=["type","kind","action","status","event"];return Object.keys(Xr.node.fields).filter(Na=>an.every(hs=>(hs.node.required??[]).includes(Na))).flatMap(Na=>{let hs=an.map(Sc=>{let Wu=Sc.node.fields[Na];return Wu?Ut(Wu.shapeId):null});if(hs.some(Sc=>Sc===null||Sc.length===0))return[];let Us=new Set;for(let Sc of hs)for(let Wu of Sc){if(Us.has(Wu))return[];Us.add(Wu)}return[{key:Na,serializedValuesByVariant:hs}]}).sort((Na,hs)=>{let Us=li.indexOf(Na.key),Sc=li.indexOf(hs.key),Wu=Us===-1?Number.MAX_SAFE_INTEGER:Us,uc=Sc===-1?Number.MAX_SAFE_INTEGER:Sc;return Wu-uc||Na.key.localeCompare(hs.key)})[0]??null},xo=(an,Xr)=>{let li=an?.serializedValuesByVariant[Xr]?.[0];return li?li.startsWith('"')&&li.endsWith('"')?eV(li.slice(1,-1)):eV(li):`Variant${String(Xr+1)}`},Lo=(an,Xr,li,Wi,Bo)=>{let Wn=an.map(mc=>wt(mc));if(Wn.some(mc=>mc===null))return null;let Na=Wn;if(Na.length===0||!hr(Na)||!Hi(Na))return null;let hs=un(Na),[Us]=Na;if(!Us)return null;let Sc=Object.keys(Us.node.fields).filter(mc=>mc!==hs?.key).filter(mc=>{let zp=Us.node.fields[mc];if(!zp)return!1;let Rh=(Us.node.required??[]).includes(mc);return Na.every(K0=>{let rf=K0.node.fields[mc];return rf?(K0.node.required??[]).includes(mc)===Rh&&Re(rf.shapeId)===Re(zp.shapeId):!1})}),Wu={fields:Object.fromEntries(Sc.map(mc=>[mc,Us.node.fields[mc]])),required:Sc.filter(mc=>(Us.node.required??[]).includes(mc)),additionalProperties:Us.node.additionalProperties,patternProperties:Us.node.patternProperties??{}},uc=Sc.length>0||Wu.additionalProperties===!0||typeof Wu.additionalProperties=="string"||Object.keys(Wu.patternProperties).length>0;if(!uc&&hs===null)return null;let Pt=uc?TQe(Wu,Xr,li,Wi,Bo):null,go=Na.map((mc,zp)=>{let Rh=Object.keys(mc.node.fields).filter(rf=>!Sc.includes(rf)),K0={fields:Object.fromEntries(Rh.map(rf=>[rf,mc.node.fields[rf]])),required:Rh.filter(rf=>(mc.node.required??[]).includes(rf)),additionalProperties:!1,patternProperties:{}};return TQe(K0,Xr,li?c0(li,xo(hs,zp)):xo(hs,zp),Wi,Bo)}).map(mc=>Jj(mc)).join(" | ");return Pt?`${Jj(Pt)} & (${go})`:go},yr=(an,Xr)=>{let li=b.get(an);if(li)return li;let Wi=M2(r,an),Bo=A.get(an),Wn=Xr?Kqr(Xr):void 0,Na=pt(an),hs=[Bo,Na,Hqr(Wi.provenance),V.get(an),Wn,eV(Wi.id)].filter(uc=>uc!==void 0),[Us=eV(Wi.id)]=hs,Sc=hs.find(uc=>!ie.has(uc))??Us,Wu=2;for(;ie.has(Sc);)Sc=`${Us}_${String(Wu)}`,Wu+=1;return b.set(an,Sc),ie.add(Sc),Sc},co=an=>{let Xr=M2(r,an);return SQe(Xr.node)?!1:l.has(an)?!0:Xr.node.type==="ref"?!1:pt(an)!==void 0||S.has(an)},Cs=(an,Xr,li)=>{let Wi=M2(r,an);switch(Wi.node.type){case"anyOf":case"oneOf":return Lo(Wi.node.items,Xr,li,ol,!0)??bY(r,an,Xr,li,ol,!0);case"graphqlUnion":return Lo(Wi.node.memberTypeIds,Xr,li,ol,!0)??bY(r,an,Xr,li,ol,!0);default:return bY(r,an,Xr,li,ol,!0)}},Cr=an=>{let Xr=L.get(an);if(Xr)return Xr;let li=Cs(an,[an],yr(an));return L.set(an,li),li},ol=(an,Xr={})=>{let li=M2(r,an);if(SQe(li.node))return xQe(li.node);let Wi=Xr.stack??[];return li.node.type==="ref"&&!l.has(an)?Wi.includes(an)?ol(li.node.target,{stack:Wi,aliasHint:Xr.aliasHint}):Cs(an,[...Wi,an],Xr.aliasHint):Wi.includes(an)||co(an)?(te.add(an),yr(an,Xr.aliasHint)):Cs(an,[...Wi,an],Xr.aliasHint)},Zo=(an,Xr={})=>{let li=M2(r,an);if(SQe(li.node))return xQe(li.node);let Wi=Xr.stack??[];if(Wi.includes(an))return"unknown";switch(li.node.type){case"anyOf":case"oneOf":return Lo(li.node.items,[...Wi,an],Xr.aliasHint,Zo,!1)??bY(r,an,[...Wi,an],Xr.aliasHint,Zo,!1);case"graphqlUnion":return Lo(li.node.memberTypeIds,[...Wi,an],Xr.aliasHint,Zo,!1)??bY(r,an,[...Wi,an],Xr.aliasHint,Zo,!1)}return bY(r,an,[...Wi,an],Xr.aliasHint,Zo,!1)};return{renderSelfContainedShape:Zo,renderDeclarationShape:ol,supportingDeclarations:()=>{let an=[...te],Xr=new Set,li=0;for(;liyr(Bo).localeCompare(yr(Wn))).map(Bo=>{let Wn=yr(Bo),Na=M2(r,Bo),hs=lpe({title:Na.title,docs:Na.docs,deprecated:Na.deprecated,includeTitle:!0}),Us=Cr(Bo),Sc=`type ${Wn} = ${Us};`;return hs?`${hs} -${Sc}`:Sc})}}},cCe=e=>Object.values(e.toolDescriptors).sort((r,i)=>r.toolPath.join(".").localeCompare(i.toolPath.join("."))).flatMap(r=>[{shapeId:r.callShapeId,aliasHint:c0(...r.toolPath,"call")},...r.resultShapeId?[{shapeId:r.resultShapeId,aliasHint:c0(...r.toolPath,"result")}]:[]]),ppe=(e,r)=>{let i=M2(e,r);switch(i.node.type){case"ref":return ppe(e,i.node.target);case"object":return(i.node.required??[]).length===0;default:return!1}};var Xqr=Object.create,LQe=Object.defineProperty,Yqr=Object.getOwnPropertyDescriptor,eJr=Object.getOwnPropertyNames,tJr=Object.getPrototypeOf,rJr=Object.prototype.hasOwnProperty,nJr=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),MQe=(e,r)=>{for(var i in r)LQe(e,i,{get:r[i],enumerable:!0})},iJr=(e,r,i,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of eJr(r))!rJr.call(e,l)&&l!==i&&LQe(e,l,{get:()=>r[l],enumerable:!(s=Yqr(r,l))||s.enumerable});return e},oJr=(e,r,i)=>(i=e!=null?Xqr(tJr(e)):{},iJr(r||!e||!e.__esModule?LQe(i,"default",{value:e,enumerable:!0}):i,e)),aJr=nJr((e,r)=>{var i,s,l,d,h,S,b,A,L,V,j,ie,te,X,Re,Je,pt,$e,xt,tr;te=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,ie=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,i=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,Re=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,j=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,Je=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,xt=/[\t\v\f\ufeff\p{Zs}]+/yu,A=/\r?\n|[\r\u2028\u2029]/y,L=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,X=/\/\/.*/y,l=/[<>.:={}]|\/(?![\/*])/y,s=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,d=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,h=/[^<>{}]+/y,$e=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,pt=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,S=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,b=/^(?:return|throw|yield)$/,V=RegExp(A.source),r.exports=tr=function*(ht,{jsx:wt=!1}={}){var Ut,hr,Hi,un,xo,Lo,yr,co,Cs,Cr,ol,Zo,Rc,an;for({length:Lo}=ht,un=0,xo="",an=[{tag:"JS"}],Ut=[],ol=0,Zo=!1;un":an.pop(),xo==="/"||co.tag==="JSXTagEnd"?(Cr="?JSX",Zo=!0):an.push({tag:"JSXChildren"});break;case"{":an.push({tag:"InterpolationInJSX",nesting:Ut.length}),Cr="?InterpolationInJSX",Zo=!1;break;case"/":xo==="<"&&(an.pop(),an[an.length-1].tag==="JSXChildren"&&an.pop(),an.push({tag:"JSXTagEnd"}))}xo=Cr,yield{type:"JSXPunctuator",value:yr[0]};continue}if(s.lastIndex=un,yr=s.exec(ht)){un=s.lastIndex,xo=yr[0],yield{type:"JSXIdentifier",value:yr[0]};continue}if(d.lastIndex=un,yr=d.exec(ht)){un=d.lastIndex,xo=yr[0],yield{type:"JSXString",value:yr[0],closed:yr[2]!==void 0};continue}break;case"JSXChildren":if(h.lastIndex=un,yr=h.exec(ht)){un=h.lastIndex,xo=yr[0],yield{type:"JSXText",value:yr[0]};continue}switch(ht[un]){case"<":an.push({tag:"JSXTag"}),un++,xo="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":an.push({tag:"InterpolationInJSX",nesting:Ut.length}),un++,xo="?InterpolationInJSX",Zo=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(xt.lastIndex=un,yr=xt.exec(ht)){un=xt.lastIndex,yield{type:"WhiteSpace",value:yr[0]};continue}if(A.lastIndex=un,yr=A.exec(ht)){un=A.lastIndex,Zo=!1,b.test(xo)&&(xo="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:yr[0]};continue}if(L.lastIndex=un,yr=L.exec(ht)){un=L.lastIndex,V.test(yr[0])&&(Zo=!1,b.test(xo)&&(xo="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:yr[0],closed:yr[1]!==void 0};continue}if(X.lastIndex=un,yr=X.exec(ht)){un=X.lastIndex,Zo=!1,yield{type:"SingleLineComment",value:yr[0]};continue}hr=String.fromCodePoint(ht.codePointAt(un)),un+=hr.length,xo=hr,Zo=!1,yield{type:co.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:hr}}}}),sJr={};MQe(sJr,{__debug:()=>ZGr,check:()=>KGr,doc:()=>J9t,format:()=>bCe,formatWithCursor:()=>H9t,getSupportInfo:()=>QGr,util:()=>V9t,version:()=>xGr});var mpe=(e,r)=>(i,s,...l)=>i|1&&s==null?void 0:(r.call(s)??s[e]).apply(s,l),cJr=String.prototype.replaceAll??function(e,r){return e.global?this.replace(e,r):this.split(e).join(r)},lJr=mpe("replaceAll",function(){if(typeof this=="string")return cJr}),fCe=lJr,uJr=class{diff(e,r,i={}){let s;typeof i=="function"?(s=i,i={}):"callback"in i&&(s=i.callback);let l=this.castInput(e,i),d=this.castInput(r,i),h=this.removeEmpty(this.tokenize(l,i)),S=this.removeEmpty(this.tokenize(d,i));return this.diffWithOptionsObj(h,S,i,s)}diffWithOptionsObj(e,r,i,s){var l;let d=Je=>{if(Je=this.postProcess(Je,i),s){setTimeout(function(){s(Je)},0);return}else return Je},h=r.length,S=e.length,b=1,A=h+S;i.maxEditLength!=null&&(A=Math.min(A,i.maxEditLength));let L=(l=i.timeout)!==null&&l!==void 0?l:1/0,V=Date.now()+L,j=[{oldPos:-1,lastComponent:void 0}],ie=this.extractCommon(j[0],r,e,0,i);if(j[0].oldPos+1>=S&&ie+1>=h)return d(this.buildValues(j[0].lastComponent,r,e));let te=-1/0,X=1/0,Re=()=>{for(let Je=Math.max(te,-b);Je<=Math.min(X,b);Je+=2){let pt,$e=j[Je-1],xt=j[Je+1];$e&&(j[Je-1]=void 0);let tr=!1;if(xt){let wt=xt.oldPos-Je;tr=xt&&0<=wt&&wt=S&&ie+1>=h)return d(this.buildValues(pt.lastComponent,r,e))||!0;j[Je]=pt,pt.oldPos+1>=S&&(X=Math.min(X,Je-1)),ie+1>=h&&(te=Math.max(te,Je+1))}b++};if(s)(function Je(){setTimeout(function(){if(b>A||Date.now()>V)return s(void 0);Re()||Je()},0)})();else for(;b<=A&&Date.now()<=V;){let Je=Re();if(Je)return Je}}addToPath(e,r,i,s,l){let d=e.lastComponent;return d&&!l.oneChangePerToken&&d.added===r&&d.removed===i?{oldPos:e.oldPos+s,lastComponent:{count:d.count+1,added:r,removed:i,previousComponent:d.previousComponent}}:{oldPos:e.oldPos+s,lastComponent:{count:1,added:r,removed:i,previousComponent:d}}}extractCommon(e,r,i,s,l){let d=r.length,h=i.length,S=e.oldPos,b=S-s,A=0;for(;b+1V.length?ie:V}),A.value=this.join(L)}else A.value=this.join(r.slice(S,S+A.count));S+=A.count,A.added||(b+=A.count)}}return s}},pJr=class extends uJr{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},_Jr=new pJr;function dJr(e,r,i){return _Jr.diff(e,r,i)}var fJr=()=>{},Wj=fJr,H5t="cr",K5t="crlf",mJr="lf",hJr=mJr,jQe="\r",Q5t=`\r -`,mCe=` -`,gJr=mCe;function yJr(e){let r=e.indexOf(jQe);return r!==-1?e.charAt(r+1)===mCe?K5t:H5t:hJr}function BQe(e){return e===H5t?jQe:e===K5t?Q5t:gJr}var vJr=new Map([[mCe,/\n/gu],[jQe,/\r/gu],[Q5t,/\r\n/gu]]);function Z5t(e,r){let i=vJr.get(r);return e.match(i)?.length??0}var SJr=/\r\n?/gu;function bJr(e){return fCe(0,e,SJr,mCe)}function xJr(e){return this[e<0?this.length+e:e]}var TJr=mpe("at",function(){if(Array.isArray(this)||typeof this=="string")return xJr}),Kv=TJr,oV="string",A5="array",Hj="cursor",w5="indent",I5="align",P5="trim",mk="group",a8="fill",ED="if-break",N5="indent-if-break",O5="line-suffix",F5="line-suffix-boundary",ix="line",s8="label",Yw="break-parent",X5t=new Set([Hj,w5,I5,P5,mk,a8,ED,N5,O5,F5,ix,s8,Yw]);function EJr(e){let r=e.length;for(;r>0&&(e[r-1]==="\r"||e[r-1]===` -`);)r--;return rnew Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function DJr(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}', -Expected it to be 'string' or 'object'.`;if(aV(e))throw new Error("doc is valid.");let i=Object.prototype.toString.call(e);if(i!=="[object Object]")return`Unexpected doc '${i}'.`;let s=CJr([...X5t].map(l=>`'${l}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${s}.`}var AJr=class extends Error{name="InvalidDocError";constructor(e){super(DJr(e)),this.doc=e}},kY=AJr,x5t={};function wJr(e,r,i,s){let l=[e];for(;l.length>0;){let d=l.pop();if(d===x5t){i(l.pop());continue}i&&l.push(d,x5t);let h=aV(d);if(!h)throw new kY(d);if(r?.(d)!==!1)switch(h){case A5:case a8:{let S=h===A5?d:d.parts;for(let b=S.length,A=b-1;A>=0;--A)l.push(S[A]);break}case ED:l.push(d.flatContents,d.breakContents);break;case mk:if(s&&d.expandedStates)for(let S=d.expandedStates.length,b=S-1;b>=0;--b)l.push(d.expandedStates[b]);else l.push(d.contents);break;case I5:case w5:case N5:case s8:case O5:l.push(d.contents);break;case oV:case Hj:case P5:case F5:case ix:case Yw:break;default:throw new kY(d)}}}var $Qe=wJr;function hCe(e,r){if(typeof e=="string")return r(e);let i=new Map;return s(e);function s(d){if(i.has(d))return i.get(d);let h=l(d);return i.set(d,h),h}function l(d){switch(aV(d)){case A5:return r(d.map(s));case a8:return r({...d,parts:d.parts.map(s)});case ED:return r({...d,breakContents:s(d.breakContents),flatContents:s(d.flatContents)});case mk:{let{expandedStates:h,contents:S}=d;return h?(h=h.map(s),S=h[0]):S=s(S),r({...d,contents:S,expandedStates:h})}case I5:case w5:case N5:case s8:case O5:return r({...d,contents:s(d.contents)});case oV:case Hj:case P5:case F5:case ix:case Yw:return r(d);default:throw new kY(d)}}}function UQe(e,r,i){let s=i,l=!1;function d(h){if(l)return!1;let S=r(h);S!==void 0&&(l=!0,s=S)}return $Qe(e,d),s}function IJr(e){if(e.type===mk&&e.break||e.type===ix&&e.hard||e.type===Yw)return!0}function PJr(e){return UQe(e,IJr,!1)}function T5t(e){if(e.length>0){let r=Kv(0,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function NJr(e){let r=new Set,i=[];function s(d){if(d.type===Yw&&T5t(i),d.type===mk){if(i.push(d),r.has(d))return!1;r.add(d)}}function l(d){d.type===mk&&i.pop().break&&T5t(i)}$Qe(e,s,l,!0)}function OJr(e){return e.type===ix&&!e.hard?e.soft?"":" ":e.type===ED?e.flatContents:e}function FJr(e){return hCe(e,OJr)}function E5t(e){for(e=[...e];e.length>=2&&Kv(0,e,-2).type===ix&&Kv(0,e,-1).type===Yw;)e.length-=2;if(e.length>0){let r=_pe(Kv(0,e,-1));e[e.length-1]=r}return e}function _pe(e){switch(aV(e)){case w5:case N5:case mk:case O5:case s8:{let r=_pe(e.contents);return{...e,contents:r}}case ED:return{...e,breakContents:_pe(e.breakContents),flatContents:_pe(e.flatContents)};case a8:return{...e,parts:E5t(e.parts)};case A5:return E5t(e);case oV:return EJr(e);case I5:case Hj:case P5:case F5:case ix:case Yw:break;default:throw new kY(e)}return e}function Y5t(e){return _pe(LJr(e))}function RJr(e){switch(aV(e)){case a8:if(e.parts.every(r=>r===""))return"";break;case mk:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===mk&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case I5:case w5:case N5:case O5:if(!e.contents)return"";break;case ED:if(!e.flatContents&&!e.breakContents)return"";break;case A5:{let r=[];for(let i of e){if(!i)continue;let[s,...l]=Array.isArray(i)?i:[i];typeof s=="string"&&typeof Kv(0,r,-1)=="string"?r[r.length-1]+=s:r.push(s),r.push(...l)}return r.length===0?"":r.length===1?r[0]:r}case oV:case Hj:case P5:case F5:case ix:case s8:case Yw:break;default:throw new kY(e)}return e}function LJr(e){return hCe(e,r=>RJr(r))}function MJr(e,r=s9t){return hCe(e,i=>typeof i=="string"?i9t(r,i.split(` -`)):i)}function jJr(e){if(e.type===ix)return!0}function BJr(e){return UQe(e,jJr,!1)}function pCe(e,r){return e.type===s8?{...e,contents:r(e.contents)}:r(e)}var o8=Wj,e9t=Wj,$Jr=Wj,UJr=Wj;function dCe(e){return o8(e),{type:w5,contents:e}}function CY(e,r){return UJr(e),o8(r),{type:I5,contents:r,n:e}}function zJr(e){return CY(Number.NEGATIVE_INFINITY,e)}function t9t(e){return CY({type:"root"},e)}function qJr(e){return CY(-1,e)}function r9t(e,r,i){o8(e);let s=e;if(r>0){for(let l=0;l0?`, { ${b.join(", ")} }`:"";return`indentIfBreak(${s(d.contents)}${A})`}if(d.type===mk){let b=[];d.break&&d.break!=="propagated"&&b.push("shouldBreak: true"),d.id&&b.push(`id: ${l(d.id)}`);let A=b.length>0?`, { ${b.join(", ")} }`:"";return d.expandedStates?`conditionalGroup([${d.expandedStates.map(L=>s(L)).join(",")}]${A})`:`group(${s(d.contents)}${A})`}if(d.type===a8)return`fill([${d.parts.map(b=>s(b)).join(", ")}])`;if(d.type===O5)return"lineSuffix("+s(d.contents)+")";if(d.type===F5)return"lineSuffixBoundary";if(d.type===s8)return`label(${JSON.stringify(d.label)}, ${s(d.contents)})`;if(d.type===Hj)return"cursor";throw new Error("Unknown doc type "+d.type)}function l(d){if(typeof d!="symbol")return JSON.stringify(String(d));if(d in r)return r[d];let h=d.description||"symbol";for(let S=0;;S++){let b=h+(S>0?` #${S}`:"");if(!i.has(b))return i.add(b),r[d]=`Symbol.for(${JSON.stringify(b)})`}}}var YJr=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function eVr(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function tVr(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var rVr="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07",nVr=/[^\x20-\x7F]/u,iVr=new Set(rVr);function oVr(e){if(!e)return 0;if(!nVr.test(e))return e.length;e=e.replace(YJr(),i=>iVr.has(i)?" ":" ");let r=0;for(let i of e){let s=i.codePointAt(0);s<=31||s>=127&&s<=159||s>=768&&s<=879||s>=65024&&s<=65039||(r+=eVr(s)||tVr(s)?2:1)}return r}var qQe=oVr,aVr={type:0},sVr={type:1},c9t={value:"",length:0,queue:[],get root(){return c9t}};function l9t(e,r,i){let s=r.type===1?e.queue.slice(0,-1):[...e.queue,r],l="",d=0,h=0,S=0;for(let te of s)switch(te.type){case 0:L(),i.useTabs?b(1):A(i.tabWidth);break;case 3:{let{string:X}=te;L(),l+=X,d+=X.length;break}case 2:{let{width:X}=te;h+=1,S+=X;break}default:throw new Error(`Unexpected indent comment '${te.type}'.`)}return j(),{...e,value:l,length:d,queue:s};function b(te){l+=" ".repeat(te),d+=i.tabWidth*te}function A(te){l+=" ".repeat(te),d+=te}function L(){i.useTabs?V():j()}function V(){h>0&&b(h),ie()}function j(){S>0&&A(S),ie()}function ie(){h=0,S=0}}function cVr(e,r,i){if(!r)return e;if(r.type==="root")return{...e,root:e};if(r===Number.NEGATIVE_INFINITY)return e.root;let s;return typeof r=="number"?r<0?s=sVr:s={type:2,width:r}:s={type:3,string:r},l9t(e,s,i)}function lVr(e,r){return l9t(e,aVr,r)}function uVr(e){let r=0;for(let i=e.length-1;i>=0;i--){let s=e[i];if(s===" "||s===" ")r++;else break}return r}function u9t(e){let r=uVr(e);return{text:r===0?e:e.slice(0,e.length-r),count:r}}var fk=Symbol("MODE_BREAK"),n8=Symbol("MODE_FLAT"),OQe=Symbol("DOC_FILL_PRINTED_LENGTH");function lCe(e,r,i,s,l,d){if(i===Number.POSITIVE_INFINITY)return!0;let h=r.length,S=!1,b=[e],A="";for(;i>=0;){if(b.length===0){if(h===0)return!0;b.push(r[--h]);continue}let{mode:L,doc:V}=b.pop(),j=aV(V);switch(j){case oV:V&&(S&&(A+=" ",i-=1,S=!1),A+=V,i-=qQe(V));break;case A5:case a8:{let ie=j===A5?V:V.parts,te=V[OQe]??0;for(let X=ie.length-1;X>=te;X--)b.push({mode:L,doc:ie[X]});break}case w5:case I5:case N5:case s8:b.push({mode:L,doc:V.contents});break;case P5:{let{text:ie,count:te}=u9t(A);A=ie,i+=te;break}case mk:{if(d&&V.break)return!1;let ie=V.break?fk:L,te=V.expandedStates&&ie===fk?Kv(0,V.expandedStates,-1):V.contents;b.push({mode:ie,doc:te});break}case ED:{let ie=(V.groupId?l[V.groupId]||n8:L)===fk?V.breakContents:V.flatContents;ie&&b.push({mode:L,doc:ie});break}case ix:if(L===fk||V.hard)return!0;V.soft||(S=!0);break;case O5:s=!0;break;case F5:if(s)return!1;break}}return!1}function yCe(e,r){let i=Object.create(null),s=r.printWidth,l=BQe(r.endOfLine),d=0,h=[{indent:c9t,mode:fk,doc:e}],S="",b=!1,A=[],L=[],V=[],j=[],ie=0;for(NJr(e);h.length>0;){let{indent:pt,mode:$e,doc:xt}=h.pop();switch(aV(xt)){case oV:{let tr=l!==` -`?fCe(0,xt,` -`,l):xt;tr&&(S+=tr,h.length>0&&(d+=qQe(tr)));break}case A5:for(let tr=xt.length-1;tr>=0;tr--)h.push({indent:pt,mode:$e,doc:xt[tr]});break;case Hj:if(L.length>=2)throw new Error("There are too many 'cursor' in doc.");L.push(ie+S.length);break;case w5:h.push({indent:lVr(pt,r),mode:$e,doc:xt.contents});break;case I5:h.push({indent:cVr(pt,xt.n,r),mode:$e,doc:xt.contents});break;case P5:Je();break;case mk:switch($e){case n8:if(!b){h.push({indent:pt,mode:xt.break?fk:n8,doc:xt.contents});break}case fk:{b=!1;let tr={indent:pt,mode:n8,doc:xt.contents},ht=s-d,wt=A.length>0;if(!xt.break&&lCe(tr,h,ht,wt,i))h.push(tr);else if(xt.expandedStates){let Ut=Kv(0,xt.expandedStates,-1);if(xt.break){h.push({indent:pt,mode:fk,doc:Ut});break}else for(let hr=1;hr=xt.expandedStates.length){h.push({indent:pt,mode:fk,doc:Ut});break}else{let Hi=xt.expandedStates[hr],un={indent:pt,mode:n8,doc:Hi};if(lCe(un,h,ht,wt,i)){h.push(un);break}}}else h.push({indent:pt,mode:fk,doc:xt.contents});break}}xt.id&&(i[xt.id]=Kv(0,h,-1).mode);break;case a8:{let tr=s-d,ht=xt[OQe]??0,{parts:wt}=xt,Ut=wt.length-ht;if(Ut===0)break;let hr=wt[ht+0],Hi=wt[ht+1],un={indent:pt,mode:n8,doc:hr},xo={indent:pt,mode:fk,doc:hr},Lo=lCe(un,[],tr,A.length>0,i,!0);if(Ut===1){Lo?h.push(un):h.push(xo);break}let yr={indent:pt,mode:n8,doc:Hi},co={indent:pt,mode:fk,doc:Hi};if(Ut===2){Lo?h.push(yr,un):h.push(co,xo);break}let Cs=wt[ht+2],Cr={indent:pt,mode:$e,doc:{...xt,[OQe]:ht+2}},ol=lCe({indent:pt,mode:n8,doc:[hr,Hi,Cs]},[],tr,A.length>0,i,!0);h.push(Cr),ol?h.push(yr,un):Lo?h.push(co,un):h.push(co,xo);break}case ED:case N5:{let tr=xt.groupId?i[xt.groupId]:$e;if(tr===fk){let ht=xt.type===ED?xt.breakContents:xt.negate?xt.contents:dCe(xt.contents);ht&&h.push({indent:pt,mode:$e,doc:ht})}if(tr===n8){let ht=xt.type===ED?xt.flatContents:xt.negate?dCe(xt.contents):xt.contents;ht&&h.push({indent:pt,mode:$e,doc:ht})}break}case O5:A.push({indent:pt,mode:$e,doc:xt.contents});break;case F5:A.length>0&&h.push({indent:pt,mode:$e,doc:zQe});break;case ix:switch($e){case n8:if(xt.hard)b=!0;else{xt.soft||(S+=" ",d+=1);break}case fk:if(A.length>0){h.push({indent:pt,mode:$e,doc:xt},...A.reverse()),A.length=0;break}xt.literal?(S+=l,d=0,pt.root&&(pt.root.value&&(S+=pt.root.value),d=pt.root.length)):(Je(),S+=l+pt.value,d=pt.length);break}break;case s8:h.push({indent:pt,mode:$e,doc:xt.contents});break;case Yw:break;default:throw new kY(xt)}h.length===0&&A.length>0&&(h.push(...A.reverse()),A.length=0)}let te=V.join("")+S,X=[...j,...L];if(X.length!==2)return{formatted:te};let Re=X[0];return{formatted:te,cursorNodeStart:Re,cursorNodeText:te.slice(Re,Kv(0,X,-1))};function Je(){let{text:pt,count:$e}=u9t(S);pt&&(V.push(pt),ie+=pt.length),S="",d-=$e,L.length>0&&(j.push(...L.map(xt=>Math.min(xt,ie))),L.length=0)}}function pVr(e,r,i=0){let s=0;for(let l=i;l1?Kv(0,e,-2):null}getValue(){return Kv(0,this.stack,-1)}getNode(e=0){let r=this.#t(e);return r===-1?null:this.stack[r]}getParentNode(e=0){return this.getNode(e+1)}#t(e){let{stack:r}=this;for(let i=r.length-1;i>=0;i-=2)if(!Array.isArray(r[i])&&--e<0)return i;return-1}call(e,...r){let{stack:i}=this,{length:s}=i,l=Kv(0,i,-1);for(let d of r)l=l?.[d],i.push(d,l);try{return e(this)}finally{i.length=s}}callParent(e,r=0){let i=this.#t(r+1),s=this.stack.splice(i+1);try{return e(this)}finally{this.stack.push(...s)}}each(e,...r){let{stack:i}=this,{length:s}=i,l=Kv(0,i,-1);for(let d of r)l=l[d],i.push(d,l);try{for(let d=0;d{i[l]=e(s,l,d)},...r),i}match(...e){let r=this.stack.length-1,i=null,s=this.stack[r--];for(let l of e){if(s===void 0)return!1;let d=null;if(typeof i=="number"&&(d=i,i=this.stack[r--],s=this.stack[r--]),l&&!l(s,i,d))return!1;i=this.stack[r--],s=this.stack[r--]}return!0}findAncestor(e){for(let r of this.#r())if(e(r))return r}hasAncestor(e){for(let r of this.#r())if(e(r))return!0;return!1}*#r(){let{stack:e}=this;for(let r=e.length-3;r>=0;r-=2){let i=e[r];Array.isArray(i)||(yield i)}}},dVr=_Vr;function fVr(e){return e!==null&&typeof e=="object"}var VQe=fVr;function hpe(e){return(r,i,s)=>{let l=!!s?.backwards;if(i===!1)return!1;let{length:d}=r,h=i;for(;h>=0&&he===` -`||e==="\r"||e==="\u2028"||e==="\u2029";function hVr(e,r,i){let s=!!i?.backwards;if(r===!1)return!1;let l=e.charAt(r);if(s){if(e.charAt(r-1)==="\r"&&l===` -`)return r-2;if(k5t(l))return r-1}else{if(l==="\r"&&e.charAt(r+1)===` -`)return r+2;if(k5t(l))return r+1}return r}var iV=hVr;function gVr(e,r,i={}){let s=Gj(e,i.backwards?r-1:r,i),l=iV(e,s,i);return s!==l}var Vj=gVr;function yVr(e){return Array.isArray(e)&&e.length>0}var vVr=yVr;function*vCe(e,r){let{getVisitorKeys:i,filter:s=()=>!0}=r,l=d=>VQe(d)&&s(d);for(let d of i(e)){let h=e[d];if(Array.isArray(h))for(let S of h)l(S)&&(yield S);else l(h)&&(yield h)}}function*SVr(e,r){let i=[e];for(let s=0;s(d??(d=[e,...r]),l(A,d)?[A]:d9t(A,d,i))),{locStart:S,locEnd:b}=i;return h.sort((A,L)=>S(A)-S(L)||b(A)-b(L)),s.set(e,h),h}var f9t=d9t;function xVr(e){let r=e.type||e.kind||"(unknown type)",i=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return i.length>20&&(i=i.slice(0,19)+"\u2026"),r+(i?" "+i:"")}function WQe(e,r){(e.comments??(e.comments=[])).push(r),r.printed=!1,r.nodeDescription=xVr(e)}function dpe(e,r){r.leading=!0,r.trailing=!1,WQe(e,r)}function tV(e,r,i){r.leading=!1,r.trailing=!1,i&&(r.marker=i),WQe(e,r)}function fpe(e,r){r.leading=!1,r.trailing=!0,WQe(e,r)}var m9t=new WeakMap;function h9t(e,r,i,s,l=[]){let{locStart:d,locEnd:h}=i,S=d(r),b=h(r),A=f9t(e,l,{cache:m9t,locStart:d,locEnd:h,getVisitorKeys:i.getVisitorKeys,filter:i.printer.canAttachComment,getChildren:i.printer.getCommentChildNodes}),L,V,j=0,ie=A.length;for(;j>1,X=A[te],Re=d(X),Je=h(X);if(Re<=S&&b<=Je)return h9t(X,r,i,X,[X,...l]);if(Je<=S){L=X,j=te+1;continue}if(b<=Re){V=X,ie=te;continue}throw new Error("Comment location overlaps with node location")}if(s?.type==="TemplateLiteral"){let{quasis:te}=s,X=CQe(te,r,i);L&&CQe(te,L,i)!==X&&(L=null),V&&CQe(te,V,i)!==X&&(V=null)}return{enclosingNode:s,precedingNode:L,followingNode:V}}var kQe=()=>!1;function TVr(e,r){let{comments:i}=e;if(delete e.comments,!vVr(i)||!r.printer.canAttachComment)return;let s=[],{printer:{features:{experimental_avoidAstMutation:l},handleComments:d={}},originalText:h}=r,{ownLine:S=kQe,endOfLine:b=kQe,remaining:A=kQe}=d,L=i.map((V,j)=>({...h9t(e,V,r),comment:V,text:h,options:r,ast:e,isLastComment:i.length-1===j}));for(let[V,j]of L.entries()){let{comment:ie,precedingNode:te,enclosingNode:X,followingNode:Re,text:Je,options:pt,ast:$e,isLastComment:xt}=j,tr;if(l?tr=[j]:(ie.enclosingNode=X,ie.precedingNode=te,ie.followingNode=Re,tr=[ie,Je,pt,$e,xt]),EVr(Je,pt,L,V))ie.placement="ownLine",S(...tr)||(Re?dpe(Re,ie):te?fpe(te,ie):tV(X||$e,ie));else if(kVr(Je,pt,L,V))ie.placement="endOfLine",b(...tr)||(te?fpe(te,ie):Re?dpe(Re,ie):tV(X||$e,ie));else if(ie.placement="remaining",!A(...tr))if(te&&Re){let ht=s.length;ht>0&&s[ht-1].followingNode!==Re&&C5t(s,pt),s.push(j)}else te?fpe(te,ie):Re?dpe(Re,ie):tV(X||$e,ie)}if(C5t(s,r),!l)for(let V of i)delete V.precedingNode,delete V.enclosingNode,delete V.followingNode}var g9t=e=>!/[\S\n\u2028\u2029]/u.test(e);function EVr(e,r,i,s){let{comment:l,precedingNode:d}=i[s],{locStart:h,locEnd:S}=r,b=h(l);if(d)for(let A=s-1;A>=0;A--){let{comment:L,precedingNode:V}=i[A];if(V!==d||!g9t(e.slice(S(L),b)))break;b=h(L)}return Vj(e,b,{backwards:!0})}function kVr(e,r,i,s){let{comment:l,followingNode:d}=i[s],{locStart:h,locEnd:S}=r,b=S(l);if(d)for(let A=s+1;A0;--h){let{comment:S,precedingNode:b,followingNode:A}=e[h-1];Wj(b,s),Wj(A,l);let L=r.originalText.slice(r.locEnd(S),d);if(r.printer.isGap?.(L,r)??/^[\s(]*$/u.test(L))d=r.locStart(S);else break}for(let[S,{comment:b}]of e.entries())S1&&S.comments.sort((b,A)=>r.locStart(b)-r.locStart(A));e.length=0}function CQe(e,r,i){let s=i.locStart(r)-1;for(let l=1;l!s.has(S)).length===0)return{leading:"",trailing:""};let l=[],d=[],h;return e.each(()=>{let S=e.node;if(s?.has(S))return;let{leading:b,trailing:A}=S;b?l.push(DVr(e,r)):A&&(h=AVr(e,r,h),d.push(h.doc))},"comments"),{leading:l,trailing:d}}function IVr(e,r,i){let{leading:s,trailing:l}=wVr(e,i);return!s&&!l?r:pCe(r,d=>[s,d,l])}function PVr(e){let{[Symbol.for("comments")]:r,[Symbol.for("printedComments")]:i}=e;for(let s of r){if(!s.printed&&!i.has(s))throw new Error('Comment "'+s.value.trim()+'" was not printed. Please report this error!');delete s.printed}}var NVr=()=>Wj,v9t=class extends Error{name="ConfigError"},D5t=class extends Error{name="UndefinedParserError"},OVr={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){i(a);continue}if(e.external){let p=e.external.registry.get(a[0])?.id;if(t!==a[0]&&p){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}if(s.count>1&&e.reused==="ref"){i(a);continue}}}function RP(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=a=>{let s=e.seen.get(a);if(s.ref===null)return;let c=s.def??s.schema,p={...c},d=s.ref;if(s.ref=null,d){n(d);let m=e.seen.get(d),y=m.schema;if(y.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(y)):Object.assign(c,y),Object.assign(c,p),a._zod.parent===d)for(let S in c)S==="$ref"||S==="allOf"||S in p||delete c[S];if(y.$ref&&m.def)for(let S in c)S==="$ref"||S==="allOf"||S in m.def&&JSON.stringify(c[S])===JSON.stringify(m.def[S])&&delete c[S]}let f=a._zod.parent;if(f&&f!==d){n(f);let m=e.seen.get(f);if(m?.schema.$ref&&(c.$ref=m.schema.$ref,m.def))for(let y in c)y==="$ref"||y==="allOf"||y in m.def&&JSON.stringify(c[y])===JSON.stringify(m.def[y])&&delete c[y]}e.override({zodSchema:a,jsonSchema:c,path:s.path??[]})};for(let a of[...e.seen.entries()].reverse())n(a[0]);let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a)}Object.assign(o,r.def??r.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let s=a[1];s.def&&s.defId&&(i[s.defId]=s.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{let a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:zE(t,"input",e.processors),output:zE(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function Ds(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return Ds(n.element,r);if(n.type==="set")return Ds(n.valueType,r);if(n.type==="lazy")return Ds(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Ds(n.innerType,r);if(n.type==="intersection")return Ds(n.left,r)||Ds(n.right,r);if(n.type==="record"||n.type==="map")return Ds(n.keyType,r)||Ds(n.valueType,r);if(n.type==="pipe")return Ds(n.in,r)||Ds(n.out,r);if(n.type==="object"){for(let o in n.shape)if(Ds(n.shape[o],r))return!0;return!1}if(n.type==="union"){for(let o of n.options)if(Ds(o,r))return!0;return!1}if(n.type==="tuple"){for(let o of n.items)if(Ds(o,r))return!0;return!!(n.rest&&Ds(n.rest,r))}return!1}var sne=(e,t={})=>r=>{let n=NP({...r,processors:t});return Fo(e,n),FP(n,e),RP(n,e)},zE=(e,t,r={})=>n=>{let{libraryOptions:o,target:i}=n??{},a=NP({...o??{},target:i,io:t,processors:r});return Fo(e,a),FP(a,e),RP(a,e)};var dFe={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},cne=(e,t,r,n)=>{let o=r;o.type="string";let{minimum:i,maximum:a,format:s,patterns:c,contentEncoding:p}=e._zod.bag;if(typeof i=="number"&&(o.minLength=i),typeof a=="number"&&(o.maxLength=a),s&&(o.format=dFe[s]??s,o.format===""&&delete o.format,s==="time"&&delete o.format),p&&(o.contentEncoding=p),c&&c.size>0){let d=[...c];d.length===1?o.pattern=d[0].source:d.length>1&&(o.allOf=[...d.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},lne=(e,t,r,n)=>{let o=r,{minimum:i,maximum:a,format:s,multipleOf:c,exclusiveMaximum:p,exclusiveMinimum:d}=e._zod.bag;typeof s=="string"&&s.includes("int")?o.type="integer":o.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.minimum=d,o.exclusiveMinimum=!0):o.exclusiveMinimum=d),typeof i=="number"&&(o.minimum=i,typeof d=="number"&&t.target!=="draft-04"&&(d>=i?delete o.minimum:delete o.exclusiveMinimum)),typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.maximum=p,o.exclusiveMaximum=!0):o.exclusiveMaximum=p),typeof a=="number"&&(o.maximum=a,typeof p=="number"&&t.target!=="draft-04"&&(p<=a?delete o.maximum:delete o.exclusiveMaximum)),typeof c=="number"&&(o.multipleOf=c)},une=(e,t,r,n)=>{r.type="boolean"},pne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},dne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},_ne=(e,t,r,n)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},fne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},mne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},hne=(e,t,r,n)=>{r.not={}},yne=(e,t,r,n)=>{},gne=(e,t,r,n)=>{},Sne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},vne=(e,t,r,n)=>{let o=e._zod.def,i=pE(o.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},bne=(e,t,r,n)=>{let o=e._zod.def,i=[];for(let a of o.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},xne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Ene=(e,t,r,n)=>{let o=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");o.type="string",o.pattern=i.source},Tne=(e,t,r,n)=>{let o=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(i.minLength=a),s!==void 0&&(i.maxLength=s),c?c.length===1?(i.contentMediaType=c[0],Object.assign(o,i)):(Object.assign(o,i),o.anyOf=c.map(p=>({contentMediaType:p}))):Object.assign(o,i)},Dne=(e,t,r,n)=>{r.type="boolean"},Ane=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},wne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Ine=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},kne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Cne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Pne=(e,t,r,n)=>{let o=r,i=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(o.minItems=a),typeof s=="number"&&(o.maxItems=s),o.type="array",o.items=Fo(i.element,t,{...n,path:[...n.path,"items"]})},One=(e,t,r,n)=>{let o=r,i=e._zod.def;o.type="object",o.properties={};let a=i.shape;for(let p in a)o.properties[p]=Fo(a[p],t,{...n,path:[...n.path,"properties",p]});let s=new Set(Object.keys(a)),c=new Set([...s].filter(p=>{let d=i.shape[p]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));c.size>0&&(o.required=Array.from(c)),i.catchall?._zod.def.type==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=Fo(i.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},a7=(e,t,r,n)=>{let o=e._zod.def,i=o.inclusive===!1,a=o.options.map((s,c)=>Fo(s,t,{...n,path:[...n.path,i?"oneOf":"anyOf",c]}));i?r.oneOf=a:r.anyOf=a},Nne=(e,t,r,n)=>{let o=e._zod.def,i=Fo(o.left,t,{...n,path:[...n.path,"allOf",0]}),a=Fo(o.right,t,{...n,path:[...n.path,"allOf",1]}),s=p=>"allOf"in p&&Object.keys(p).length===1,c=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];r.allOf=c},Fne=(e,t,r,n)=>{let o=r,i=e._zod.def;o.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((m,y)=>Fo(m,t,{...n,path:[...n.path,a,y]})),p=i.rest?Fo(i.rest,t,{...n,path:[...n.path,s,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(o.prefixItems=c,p&&(o.items=p)):t.target==="openapi-3.0"?(o.items={anyOf:c},p&&o.items.anyOf.push(p),o.minItems=c.length,p||(o.maxItems=c.length)):(o.items=c,p&&(o.additionalItems=p));let{minimum:d,maximum:f}=e._zod.bag;typeof d=="number"&&(o.minItems=d),typeof f=="number"&&(o.maxItems=f)},Rne=(e,t,r,n)=>{let o=r,i=e._zod.def;o.type="object";let a=i.keyType,c=a._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let d=Fo(i.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});o.patternProperties={};for(let f of c)o.patternProperties[f.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=Fo(i.keyType,t,{...n,path:[...n.path,"propertyNames"]})),o.additionalProperties=Fo(i.valueType,t,{...n,path:[...n.path,"additionalProperties"]});let p=a._zod.values;if(p){let d=[...p].filter(f=>typeof f=="string"||typeof f=="number");d.length>0&&(o.required=d)}},Lne=(e,t,r,n)=>{let o=e._zod.def,i=Fo(o.innerType,t,n),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=o.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},$ne=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType},Mne=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType,r.default=JSON.parse(JSON.stringify(o.defaultValue))},jne=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},Bne=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType;let a;try{a=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},qne=(e,t,r,n)=>{let o=e._zod.def,i=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;Fo(i,t,n);let a=t.seen.get(e);a.ref=i},Une=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType,r.readOnly=!0},zne=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType},s7=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType},Vne=(e,t,r,n)=>{let o=e._zod.innerType;Fo(o,t,n);let i=t.seen.get(e);i.ref=o};function U0(e){return!!e._zod}function bu(e,t){return U0(e)?$0(e,t):e.safeParse(t)}function LP(e){if(!e)return;let t;if(U0(e)?t=e._zod?.def?.shape:t=e.shape,!!t){if(typeof t=="function")try{return t()}catch{return}return t}}function Hne(e){if(U0(e)){let i=e._zod?.def;if(i){if(i.value!==void 0)return i.value;if(Array.isArray(i.values)&&i.values.length>0)return i.values[0]}}let r=e._def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}let n=e.value;if(n!==void 0)return n}var VE={};YS(VE,{ZodAny:()=>doe,ZodArray:()=>hoe,ZodBase64:()=>O7,ZodBase64URL:()=>N7,ZodBigInt:()=>WE,ZodBigIntFormat:()=>L7,ZodBoolean:()=>ZE,ZodCIDRv4:()=>C7,ZodCIDRv6:()=>P7,ZodCUID:()=>E7,ZodCUID2:()=>T7,ZodCatch:()=>Loe,ZodCodec:()=>z7,ZodCustom:()=>GP,ZodCustomStringFormat:()=>GE,ZodDate:()=>UP,ZodDefault:()=>Coe,ZodDiscriminatedUnion:()=>goe,ZodE164:()=>F7,ZodEmail:()=>S7,ZodEmoji:()=>b7,ZodEnum:()=>JE,ZodExactOptional:()=>woe,ZodFile:()=>Doe,ZodFunction:()=>Joe,ZodGUID:()=>MP,ZodIPv4:()=>I7,ZodIPv6:()=>k7,ZodIntersection:()=>Soe,ZodJWT:()=>R7,ZodKSUID:()=>w7,ZodLazy:()=>Uoe,ZodLiteral:()=>Toe,ZodMAC:()=>coe,ZodMap:()=>xoe,ZodNaN:()=>Moe,ZodNanoID:()=>x7,ZodNever:()=>foe,ZodNonOptional:()=>q7,ZodNull:()=>poe,ZodNullable:()=>koe,ZodNumber:()=>HE,ZodNumberFormat:()=>z0,ZodObject:()=>zP,ZodOptional:()=>B7,ZodPipe:()=>U7,ZodPrefault:()=>Ooe,ZodPromise:()=>Voe,ZodReadonly:()=>joe,ZodRecord:()=>KP,ZodSet:()=>Eoe,ZodString:()=>KE,ZodStringFormat:()=>Io,ZodSuccess:()=>Roe,ZodSymbol:()=>loe,ZodTemplateLiteral:()=>qoe,ZodTransform:()=>Aoe,ZodTuple:()=>voe,ZodType:()=>zr,ZodULID:()=>D7,ZodURL:()=>qP,ZodUUID:()=>p_,ZodUndefined:()=>uoe,ZodUnion:()=>VP,ZodUnknown:()=>_oe,ZodVoid:()=>moe,ZodXID:()=>A7,ZodXor:()=>yoe,_ZodString:()=>g7,_default:()=>Poe,_function:()=>ERe,any:()=>$7,array:()=>ot,base64:()=>zFe,base64url:()=>VFe,bigint:()=>tRe,boolean:()=>uo,catch:()=>$oe,check:()=>TRe,cidrv4:()=>qFe,cidrv6:()=>UFe,codec:()=>vRe,cuid:()=>NFe,cuid2:()=>FFe,custom:()=>V7,date:()=>sRe,describe:()=>DRe,discriminatedUnion:()=>JP,e164:()=>JFe,email:()=>TFe,emoji:()=>PFe,enum:()=>rs,exactOptional:()=>Ioe,file:()=>hRe,float32:()=>QFe,float64:()=>XFe,function:()=>ERe,guid:()=>DFe,hash:()=>WFe,hex:()=>ZFe,hostname:()=>HFe,httpUrl:()=>CFe,instanceof:()=>wRe,int:()=>y7,int32:()=>YFe,int64:()=>rRe,intersection:()=>XE,ipv4:()=>MFe,ipv6:()=>BFe,json:()=>kRe,jwt:()=>KFe,keyof:()=>cRe,ksuid:()=>$Fe,lazy:()=>zoe,literal:()=>$t,looseObject:()=>Ui,looseRecord:()=>dRe,mac:()=>jFe,map:()=>_Re,meta:()=>ARe,nan:()=>SRe,nanoid:()=>OFe,nativeEnum:()=>mRe,never:()=>M7,nonoptional:()=>Foe,null:()=>QE,nullable:()=>jP,nullish:()=>yRe,number:()=>$n,object:()=>dt,optional:()=>Ko,partialRecord:()=>pRe,pipe:()=>BP,prefault:()=>Noe,preprocess:()=>HP,promise:()=>xRe,readonly:()=>Boe,record:()=>Ro,refine:()=>Koe,set:()=>fRe,strictObject:()=>lRe,string:()=>Y,stringFormat:()=>GFe,stringbool:()=>IRe,success:()=>gRe,superRefine:()=>Goe,symbol:()=>oRe,templateLiteral:()=>bRe,transform:()=>j7,tuple:()=>boe,uint32:()=>eRe,uint64:()=>nRe,ulid:()=>RFe,undefined:()=>iRe,union:()=>go,unknown:()=>ko,url:()=>v7,uuid:()=>AFe,uuidv4:()=>wFe,uuidv6:()=>IFe,uuidv7:()=>kFe,void:()=>aRe,xid:()=>LFe,xor:()=>uRe});var $P={};YS($P,{endsWith:()=>$E,gt:()=>l_,gte:()=>Ts,includes:()=>RE,length:()=>B0,lowercase:()=>NE,lt:()=>c_,lte:()=>kc,maxLength:()=>j0,maxSize:()=>By,mime:()=>ME,minLength:()=>rm,minSize:()=>u_,multipleOf:()=>jy,negative:()=>ZM,nonnegative:()=>QM,nonpositive:()=>WM,normalize:()=>jE,overwrite:()=>Ep,positive:()=>HM,property:()=>XM,regex:()=>OE,size:()=>M0,slugify:()=>OP,startsWith:()=>LE,toLowerCase:()=>qE,toUpperCase:()=>UE,trim:()=>BE,uppercase:()=>FE});var qy={};YS(qy,{ZodISODate:()=>p7,ZodISODateTime:()=>l7,ZodISODuration:()=>m7,ZodISOTime:()=>_7,date:()=>d7,datetime:()=>u7,duration:()=>h7,time:()=>f7});var l7=ne("ZodISODateTime",(e,t)=>{g$.init(e,t),Io.init(e,t)});function u7(e){return bM(l7,e)}var p7=ne("ZodISODate",(e,t)=>{S$.init(e,t),Io.init(e,t)});function d7(e){return xM(p7,e)}var _7=ne("ZodISOTime",(e,t)=>{v$.init(e,t),Io.init(e,t)});function f7(e){return EM(_7,e)}var m7=ne("ZodISODuration",(e,t)=>{b$.init(e,t),Io.init(e,t)});function h7(e){return TM(m7,e)}var Zne=(e,t)=>{QC.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>YC(e,r)},flatten:{value:r=>XC(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,F0,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,F0,2)}},isEmpty:{get(){return e.issues.length===0}}})},kOt=ne("ZodError",Zne),Cc=ne("ZodError",Zne,{Parent:Error});var Wne=yE(Cc),Qne=SE(Cc),Xne=bE(Cc),Yne=xE(Cc),eoe=ure(Cc),toe=pre(Cc),roe=dre(Cc),noe=_re(Cc),ooe=fre(Cc),ioe=mre(Cc),aoe=hre(Cc),soe=yre(Cc);var zr=ne("ZodType",(e,t)=>(Cr.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:zE(e,"input"),output:zE(e,"output")}}),e.toJSONSchema=sne(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(Ke.mergeDefs(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(r,n)=>xs(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>Wne(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>Xne(e,r,n),e.parseAsync=async(r,n)=>Qne(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>Yne(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>eoe(e,r,n),e.decode=(r,n)=>toe(e,r,n),e.encodeAsync=async(r,n)=>roe(e,r,n),e.decodeAsync=async(r,n)=>noe(e,r,n),e.safeEncode=(r,n)=>ooe(e,r,n),e.safeDecode=(r,n)=>ioe(e,r,n),e.safeEncodeAsync=async(r,n)=>aoe(e,r,n),e.safeDecodeAsync=async(r,n)=>soe(e,r,n),e.refine=(r,n)=>e.check(Koe(r,n)),e.superRefine=r=>e.check(Goe(r)),e.overwrite=r=>e.check(Ep(r)),e.optional=()=>Ko(e),e.exactOptional=()=>Ioe(e),e.nullable=()=>jP(e),e.nullish=()=>Ko(jP(e)),e.nonoptional=r=>Foe(e,r),e.array=()=>ot(e),e.or=r=>go([e,r]),e.and=r=>XE(e,r),e.transform=r=>BP(e,j7(r)),e.default=r=>Poe(e,r),e.prefault=r=>Noe(e,r),e.catch=r=>$oe(e,r),e.pipe=r=>BP(e,r),e.readonly=()=>Boe(e),e.describe=r=>{let n=e.clone();return Es.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return Es.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Es.get(e);let n=e.clone();return Es.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),g7=ne("_ZodString",(e,t)=>{My.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(n,o,i)=>cne(e,n,o,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(OE(...n)),e.includes=(...n)=>e.check(RE(...n)),e.startsWith=(...n)=>e.check(LE(...n)),e.endsWith=(...n)=>e.check($E(...n)),e.min=(...n)=>e.check(rm(...n)),e.max=(...n)=>e.check(j0(...n)),e.length=(...n)=>e.check(B0(...n)),e.nonempty=(...n)=>e.check(rm(1,...n)),e.lowercase=n=>e.check(NE(n)),e.uppercase=n=>e.check(FE(n)),e.trim=()=>e.check(BE()),e.normalize=(...n)=>e.check(jE(...n)),e.toLowerCase=()=>e.check(qE()),e.toUpperCase=()=>e.check(UE()),e.slugify=()=>e.check(OP())}),KE=ne("ZodString",(e,t)=>{My.init(e,t),g7.init(e,t),e.email=r=>e.check(dP(S7,r)),e.url=r=>e.check(PE(qP,r)),e.jwt=r=>e.check(PP(R7,r)),e.emoji=r=>e.check(yP(b7,r)),e.guid=r=>e.check(CE(MP,r)),e.uuid=r=>e.check(_P(p_,r)),e.uuidv4=r=>e.check(fP(p_,r)),e.uuidv6=r=>e.check(mP(p_,r)),e.uuidv7=r=>e.check(hP(p_,r)),e.nanoid=r=>e.check(gP(x7,r)),e.guid=r=>e.check(CE(MP,r)),e.cuid=r=>e.check(SP(E7,r)),e.cuid2=r=>e.check(vP(T7,r)),e.ulid=r=>e.check(bP(D7,r)),e.base64=r=>e.check(IP(O7,r)),e.base64url=r=>e.check(kP(N7,r)),e.xid=r=>e.check(xP(A7,r)),e.ksuid=r=>e.check(EP(w7,r)),e.ipv4=r=>e.check(TP(I7,r)),e.ipv6=r=>e.check(DP(k7,r)),e.cidrv4=r=>e.check(AP(C7,r)),e.cidrv6=r=>e.check(wP(P7,r)),e.e164=r=>e.check(CP(F7,r)),e.datetime=r=>e.check(u7(r)),e.date=r=>e.check(d7(r)),e.time=r=>e.check(f7(r)),e.duration=r=>e.check(h7(r))});function Y(e){return gM(KE,e)}var Io=ne("ZodStringFormat",(e,t)=>{yo.init(e,t),g7.init(e,t)}),S7=ne("ZodEmail",(e,t)=>{l$.init(e,t),Io.init(e,t)});function TFe(e){return dP(S7,e)}var MP=ne("ZodGUID",(e,t)=>{s$.init(e,t),Io.init(e,t)});function DFe(e){return CE(MP,e)}var p_=ne("ZodUUID",(e,t)=>{c$.init(e,t),Io.init(e,t)});function AFe(e){return _P(p_,e)}function wFe(e){return fP(p_,e)}function IFe(e){return mP(p_,e)}function kFe(e){return hP(p_,e)}var qP=ne("ZodURL",(e,t)=>{u$.init(e,t),Io.init(e,t)});function v7(e){return PE(qP,e)}function CFe(e){return PE(qP,{protocol:/^https?$/,hostname:xl.domain,...Ke.normalizeParams(e)})}var b7=ne("ZodEmoji",(e,t)=>{p$.init(e,t),Io.init(e,t)});function PFe(e){return yP(b7,e)}var x7=ne("ZodNanoID",(e,t)=>{d$.init(e,t),Io.init(e,t)});function OFe(e){return gP(x7,e)}var E7=ne("ZodCUID",(e,t)=>{_$.init(e,t),Io.init(e,t)});function NFe(e){return SP(E7,e)}var T7=ne("ZodCUID2",(e,t)=>{f$.init(e,t),Io.init(e,t)});function FFe(e){return vP(T7,e)}var D7=ne("ZodULID",(e,t)=>{m$.init(e,t),Io.init(e,t)});function RFe(e){return bP(D7,e)}var A7=ne("ZodXID",(e,t)=>{h$.init(e,t),Io.init(e,t)});function LFe(e){return xP(A7,e)}var w7=ne("ZodKSUID",(e,t)=>{y$.init(e,t),Io.init(e,t)});function $Fe(e){return EP(w7,e)}var I7=ne("ZodIPv4",(e,t)=>{x$.init(e,t),Io.init(e,t)});function MFe(e){return TP(I7,e)}var coe=ne("ZodMAC",(e,t)=>{T$.init(e,t),Io.init(e,t)});function jFe(e){return vM(coe,e)}var k7=ne("ZodIPv6",(e,t)=>{E$.init(e,t),Io.init(e,t)});function BFe(e){return DP(k7,e)}var C7=ne("ZodCIDRv4",(e,t)=>{D$.init(e,t),Io.init(e,t)});function qFe(e){return AP(C7,e)}var P7=ne("ZodCIDRv6",(e,t)=>{A$.init(e,t),Io.init(e,t)});function UFe(e){return wP(P7,e)}var O7=ne("ZodBase64",(e,t)=>{w$.init(e,t),Io.init(e,t)});function zFe(e){return IP(O7,e)}var N7=ne("ZodBase64URL",(e,t)=>{I$.init(e,t),Io.init(e,t)});function VFe(e){return kP(N7,e)}var F7=ne("ZodE164",(e,t)=>{k$.init(e,t),Io.init(e,t)});function JFe(e){return CP(F7,e)}var R7=ne("ZodJWT",(e,t)=>{C$.init(e,t),Io.init(e,t)});function KFe(e){return PP(R7,e)}var GE=ne("ZodCustomStringFormat",(e,t)=>{P$.init(e,t),Io.init(e,t)});function GFe(e,t,r={}){return q0(GE,e,t,r)}function HFe(e){return q0(GE,"hostname",xl.hostname,e)}function ZFe(e){return q0(GE,"hex",xl.hex,e)}function WFe(e,t){let r=t?.enc??"hex",n=`${e}_${r}`,o=xl[n];if(!o)throw new Error(`Unrecognized hash format: ${n}`);return q0(GE,n,o,t)}var HE=ne("ZodNumber",(e,t)=>{cP.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(n,o,i)=>lne(e,n,o,i),e.gt=(n,o)=>e.check(l_(n,o)),e.gte=(n,o)=>e.check(Ts(n,o)),e.min=(n,o)=>e.check(Ts(n,o)),e.lt=(n,o)=>e.check(c_(n,o)),e.lte=(n,o)=>e.check(kc(n,o)),e.max=(n,o)=>e.check(kc(n,o)),e.int=n=>e.check(y7(n)),e.safe=n=>e.check(y7(n)),e.positive=n=>e.check(l_(0,n)),e.nonnegative=n=>e.check(Ts(0,n)),e.negative=n=>e.check(c_(0,n)),e.nonpositive=n=>e.check(kc(0,n)),e.multipleOf=(n,o)=>e.check(jy(n,o)),e.step=(n,o)=>e.check(jy(n,o)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function $n(e){return DM(HE,e)}var z0=ne("ZodNumberFormat",(e,t)=>{O$.init(e,t),HE.init(e,t)});function y7(e){return wM(z0,e)}function QFe(e){return IM(z0,e)}function XFe(e){return kM(z0,e)}function YFe(e){return CM(z0,e)}function eRe(e){return PM(z0,e)}var ZE=ne("ZodBoolean",(e,t)=>{wE.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>une(e,r,n,o)});function uo(e){return OM(ZE,e)}var WE=ne("ZodBigInt",(e,t)=>{lP.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(n,o,i)=>pne(e,n,o,i),e.gte=(n,o)=>e.check(Ts(n,o)),e.min=(n,o)=>e.check(Ts(n,o)),e.gt=(n,o)=>e.check(l_(n,o)),e.gte=(n,o)=>e.check(Ts(n,o)),e.min=(n,o)=>e.check(Ts(n,o)),e.lt=(n,o)=>e.check(c_(n,o)),e.lte=(n,o)=>e.check(kc(n,o)),e.max=(n,o)=>e.check(kc(n,o)),e.positive=n=>e.check(l_(BigInt(0),n)),e.negative=n=>e.check(c_(BigInt(0),n)),e.nonpositive=n=>e.check(kc(BigInt(0),n)),e.nonnegative=n=>e.check(Ts(BigInt(0),n)),e.multipleOf=(n,o)=>e.check(jy(n,o));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function tRe(e){return FM(WE,e)}var L7=ne("ZodBigIntFormat",(e,t)=>{N$.init(e,t),WE.init(e,t)});function rRe(e){return LM(L7,e)}function nRe(e){return $M(L7,e)}var loe=ne("ZodSymbol",(e,t)=>{F$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>dne(e,r,n,o)});function oRe(e){return MM(loe,e)}var uoe=ne("ZodUndefined",(e,t)=>{R$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>fne(e,r,n,o)});function iRe(e){return jM(uoe,e)}var poe=ne("ZodNull",(e,t)=>{L$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>_ne(e,r,n,o)});function QE(e){return BM(poe,e)}var doe=ne("ZodAny",(e,t)=>{$$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>yne(e,r,n,o)});function $7(){return qM(doe)}var _oe=ne("ZodUnknown",(e,t)=>{M$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>gne(e,r,n,o)});function ko(){return UM(_oe)}var foe=ne("ZodNever",(e,t)=>{j$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>hne(e,r,n,o)});function M7(e){return zM(foe,e)}var moe=ne("ZodVoid",(e,t)=>{B$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>mne(e,r,n,o)});function aRe(e){return VM(moe,e)}var UP=ne("ZodDate",(e,t)=>{q$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(n,o,i)=>Sne(e,n,o,i),e.min=(n,o)=>e.check(Ts(n,o)),e.max=(n,o)=>e.check(kc(n,o));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function sRe(e){return JM(UP,e)}var hoe=ne("ZodArray",(e,t)=>{U$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Pne(e,r,n,o),e.element=t.element,e.min=(r,n)=>e.check(rm(r,n)),e.nonempty=r=>e.check(rm(1,r)),e.max=(r,n)=>e.check(j0(r,n)),e.length=(r,n)=>e.check(B0(r,n)),e.unwrap=()=>e.element});function ot(e,t){return ane(hoe,e,t)}function cRe(e){let t=e._zod.def.shape;return rs(Object.keys(t))}var zP=ne("ZodObject",(e,t)=>{one.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>One(e,r,n,o),Ke.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>rs(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ko()}),e.loose=()=>e.clone({...e._zod.def,catchall:ko()}),e.strict=()=>e.clone({...e._zod.def,catchall:M7()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>Ke.extend(e,r),e.safeExtend=r=>Ke.safeExtend(e,r),e.merge=r=>Ke.merge(e,r),e.pick=r=>Ke.pick(e,r),e.omit=r=>Ke.omit(e,r),e.partial=(...r)=>Ke.partial(B7,e,r[0]),e.required=(...r)=>Ke.required(q7,e,r[0])});function dt(e,t){let r={type:"object",shape:e??{},...Ke.normalizeParams(t)};return new zP(r)}function lRe(e,t){return new zP({type:"object",shape:e,catchall:M7(),...Ke.normalizeParams(t)})}function Ui(e,t){return new zP({type:"object",shape:e,catchall:ko(),...Ke.normalizeParams(t)})}var VP=ne("ZodUnion",(e,t)=>{IE.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>a7(e,r,n,o),e.options=t.options});function go(e,t){return new VP({type:"union",options:e,...Ke.normalizeParams(t)})}var yoe=ne("ZodXor",(e,t)=>{VP.init(e,t),z$.init(e,t),e._zod.processJSONSchema=(r,n,o)=>a7(e,r,n,o),e.options=t.options});function uRe(e,t){return new yoe({type:"union",options:e,inclusive:!1,...Ke.normalizeParams(t)})}var goe=ne("ZodDiscriminatedUnion",(e,t)=>{VP.init(e,t),V$.init(e,t)});function JP(e,t,r){return new goe({type:"union",options:t,discriminator:e,...Ke.normalizeParams(r)})}var Soe=ne("ZodIntersection",(e,t)=>{J$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Nne(e,r,n,o)});function XE(e,t){return new Soe({type:"intersection",left:e,right:t})}var voe=ne("ZodTuple",(e,t)=>{uP.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Fne(e,r,n,o),e.rest=r=>e.clone({...e._zod.def,rest:r})});function boe(e,t,r){let n=t instanceof Cr,o=n?r:t,i=n?t:null;return new voe({type:"tuple",items:e,rest:i,...Ke.normalizeParams(o)})}var KP=ne("ZodRecord",(e,t)=>{K$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Rne(e,r,n,o),e.keyType=t.keyType,e.valueType=t.valueType});function Ro(e,t,r){return new KP({type:"record",keyType:e,valueType:t,...Ke.normalizeParams(r)})}function pRe(e,t,r){let n=xs(e);return n._zod.values=void 0,new KP({type:"record",keyType:n,valueType:t,...Ke.normalizeParams(r)})}function dRe(e,t,r){return new KP({type:"record",keyType:e,valueType:t,mode:"loose",...Ke.normalizeParams(r)})}var xoe=ne("ZodMap",(e,t)=>{G$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>kne(e,r,n,o),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(u_(...r)),e.nonempty=r=>e.check(u_(1,r)),e.max=(...r)=>e.check(By(...r)),e.size=(...r)=>e.check(M0(...r))});function _Re(e,t,r){return new xoe({type:"map",keyType:e,valueType:t,...Ke.normalizeParams(r)})}var Eoe=ne("ZodSet",(e,t)=>{H$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Cne(e,r,n,o),e.min=(...r)=>e.check(u_(...r)),e.nonempty=r=>e.check(u_(1,r)),e.max=(...r)=>e.check(By(...r)),e.size=(...r)=>e.check(M0(...r))});function fRe(e,t){return new Eoe({type:"set",valueType:e,...Ke.normalizeParams(t)})}var JE=ne("ZodEnum",(e,t)=>{Z$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(n,o,i)=>vne(e,n,o,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(n,o)=>{let i={};for(let a of n)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new JE({...t,checks:[],...Ke.normalizeParams(o),entries:i})},e.exclude=(n,o)=>{let i={...t.entries};for(let a of n)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new JE({...t,checks:[],...Ke.normalizeParams(o),entries:i})}});function rs(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new JE({type:"enum",entries:r,...Ke.normalizeParams(t)})}function mRe(e,t){return new JE({type:"enum",entries:e,...Ke.normalizeParams(t)})}var Toe=ne("ZodLiteral",(e,t)=>{W$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>bne(e,r,n,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function $t(e,t){return new Toe({type:"literal",values:Array.isArray(e)?e:[e],...Ke.normalizeParams(t)})}var Doe=ne("ZodFile",(e,t)=>{Q$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Tne(e,r,n,o),e.min=(r,n)=>e.check(u_(r,n)),e.max=(r,n)=>e.check(By(r,n)),e.mime=(r,n)=>e.check(ME(Array.isArray(r)?r:[r],n))});function hRe(e){return YM(Doe,e)}var Aoe=ne("ZodTransform",(e,t)=>{X$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Ine(e,r,n,o),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Ry(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(Ke.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(Ke.issue(a))}};let o=t.transform(r.value,r);return o instanceof Promise?o.then(i=>(r.value=i,r)):(r.value=o,r)}});function j7(e){return new Aoe({type:"transform",transform:e})}var B7=ne("ZodOptional",(e,t)=>{pP.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>s7(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Ko(e){return new B7({type:"optional",innerType:e})}var woe=ne("ZodExactOptional",(e,t)=>{Y$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>s7(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Ioe(e){return new woe({type:"optional",innerType:e})}var koe=ne("ZodNullable",(e,t)=>{eM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Lne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function jP(e){return new koe({type:"nullable",innerType:e})}function yRe(e){return Ko(jP(e))}var Coe=ne("ZodDefault",(e,t)=>{tM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Mne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Poe(e,t){return new Coe({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Ke.shallowClone(t)}})}var Ooe=ne("ZodPrefault",(e,t)=>{rM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>jne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Noe(e,t){return new Ooe({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Ke.shallowClone(t)}})}var q7=ne("ZodNonOptional",(e,t)=>{nM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>$ne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Foe(e,t){return new q7({type:"nonoptional",innerType:e,...Ke.normalizeParams(t)})}var Roe=ne("ZodSuccess",(e,t)=>{oM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Dne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function gRe(e){return new Roe({type:"success",innerType:e})}var Loe=ne("ZodCatch",(e,t)=>{iM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Bne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function $oe(e,t){return new Loe({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Moe=ne("ZodNaN",(e,t)=>{aM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>xne(e,r,n,o)});function SRe(e){return GM(Moe,e)}var U7=ne("ZodPipe",(e,t)=>{sM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>qne(e,r,n,o),e.in=t.in,e.out=t.out});function BP(e,t){return new U7({type:"pipe",in:e,out:t})}var z7=ne("ZodCodec",(e,t)=>{U7.init(e,t),kE.init(e,t)});function vRe(e,t,r){return new z7({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var joe=ne("ZodReadonly",(e,t)=>{cM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Une(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Boe(e){return new joe({type:"readonly",innerType:e})}var qoe=ne("ZodTemplateLiteral",(e,t)=>{lM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Ene(e,r,n,o)});function bRe(e,t){return new qoe({type:"template_literal",parts:e,...Ke.normalizeParams(t)})}var Uoe=ne("ZodLazy",(e,t)=>{dM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Vne(e,r,n,o),e.unwrap=()=>e._zod.def.getter()});function zoe(e){return new Uoe({type:"lazy",getter:e})}var Voe=ne("ZodPromise",(e,t)=>{pM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>zne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function xRe(e){return new Voe({type:"promise",innerType:e})}var Joe=ne("ZodFunction",(e,t)=>{uM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>wne(e,r,n,o)});function ERe(e){return new Joe({type:"function",input:Array.isArray(e?.input)?boe(e?.input):e?.input??ot(ko()),output:e?.output??ko()})}var GP=ne("ZodCustom",(e,t)=>{_M.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Ane(e,r,n,o)});function TRe(e){let t=new wo({check:"custom"});return t._zod.check=e,t}function V7(e,t){return e7(GP,e??(()=>!0),t)}function Koe(e,t={}){return t7(GP,e,t)}function Goe(e){return r7(e)}var DRe=n7,ARe=o7;function wRe(e,t={}){let r=new GP({type:"custom",check:"custom",fn:n=>n instanceof e,abort:!0,...Ke.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=n=>{n.value instanceof e||n.issues.push({code:"invalid_type",expected:e.name,input:n.value,inst:r,path:[...r._zod.def.path??[]]})},r}var IRe=(...e)=>i7({Codec:z7,Boolean:ZE,String:KE},...e);function kRe(e){let t=zoe(()=>go([Y(e),$n(),uo(),QE(),ot(t),Ro(Y(),t)]));return t}function HP(e,t){return BP(j7(e),t)}var Zoe={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};var Hoe;Hoe||(Hoe={});var $Ot={...VE,...$P,iso:qy};var ZP={};YS(ZP,{bigint:()=>NRe,boolean:()=>ORe,date:()=>FRe,number:()=>PRe,string:()=>CRe});function CRe(e){return SM(KE,e)}function PRe(e){return AM(HE,e)}function ORe(e){return NM(ZE,e)}function NRe(e){return RM(WE,e)}function FRe(e){return KM(UP,e)}Wi(fM());var J0="2025-11-25";var Qoe=[J0,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],nm="io.modelcontextprotocol/related-task",QP="2.0",Da=V7(e=>e!==null&&(typeof e=="object"||typeof e=="function")),Xoe=go([Y(),$n().int()]),Yoe=Y(),r4t=Ui({ttl:go([$n(),QE()]).optional(),pollInterval:$n().optional()}),LRe=dt({ttl:$n().optional()}),$Re=dt({taskId:Y()}),J7=Ui({progressToken:Xoe.optional(),[nm]:$Re.optional()}),Pc=dt({_meta:J7.optional()}),eT=Pc.extend({task:LRe.optional()}),eie=e=>eT.safeParse(e).success,Aa=dt({method:Y(),params:Pc.loose().optional()}),El=dt({_meta:J7.optional()}),Tl=dt({method:Y(),params:El.loose().optional()}),wa=Ui({_meta:J7.optional()}),XP=go([Y(),$n().int()]),tie=dt({jsonrpc:$t(QP),id:XP,...Aa.shape}).strict(),tT=e=>tie.safeParse(e).success,rie=dt({jsonrpc:$t(QP),...Tl.shape}).strict(),nie=e=>rie.safeParse(e).success,K7=dt({jsonrpc:$t(QP),id:XP,result:wa}).strict(),Uy=e=>K7.safeParse(e).success;var Tr;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(Tr||(Tr={}));var G7=dt({jsonrpc:$t(QP),id:XP.optional(),error:dt({code:$n().int(),message:Y(),data:ko().optional()})}).strict();var oie=e=>G7.safeParse(e).success;var om=go([tie,rie,K7,G7]),n4t=go([K7,G7]),zy=wa.strict(),MRe=El.extend({requestId:XP.optional(),reason:Y().optional()}),YP=Tl.extend({method:$t("notifications/cancelled"),params:MRe}),jRe=dt({src:Y(),mimeType:Y().optional(),sizes:ot(Y()).optional(),theme:rs(["light","dark"]).optional()}),rT=dt({icons:ot(jRe).optional()}),V0=dt({name:Y(),title:Y().optional()}),iie=V0.extend({...V0.shape,...rT.shape,version:Y(),websiteUrl:Y().optional(),description:Y().optional()}),BRe=XE(dt({applyDefaults:uo().optional()}),Ro(Y(),ko())),qRe=HP(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,XE(dt({form:BRe.optional(),url:Da.optional()}),Ro(Y(),ko()).optional())),URe=Ui({list:Da.optional(),cancel:Da.optional(),requests:Ui({sampling:Ui({createMessage:Da.optional()}).optional(),elicitation:Ui({create:Da.optional()}).optional()}).optional()}),zRe=Ui({list:Da.optional(),cancel:Da.optional(),requests:Ui({tools:Ui({call:Da.optional()}).optional()}).optional()}),VRe=dt({experimental:Ro(Y(),Da).optional(),sampling:dt({context:Da.optional(),tools:Da.optional()}).optional(),elicitation:qRe.optional(),roots:dt({listChanged:uo().optional()}).optional(),tasks:URe.optional()}),JRe=Pc.extend({protocolVersion:Y(),capabilities:VRe,clientInfo:iie}),KRe=Aa.extend({method:$t("initialize"),params:JRe});var GRe=dt({experimental:Ro(Y(),Da).optional(),logging:Da.optional(),completions:Da.optional(),prompts:dt({listChanged:uo().optional()}).optional(),resources:dt({subscribe:uo().optional(),listChanged:uo().optional()}).optional(),tools:dt({listChanged:uo().optional()}).optional(),tasks:zRe.optional()}),H7=wa.extend({protocolVersion:Y(),capabilities:GRe,serverInfo:iie,instructions:Y().optional()}),aie=Tl.extend({method:$t("notifications/initialized"),params:El.optional()}),sie=e=>aie.safeParse(e).success,e6=Aa.extend({method:$t("ping"),params:Pc.optional()}),HRe=dt({progress:$n(),total:Ko($n()),message:Ko(Y())}),ZRe=dt({...El.shape,...HRe.shape,progressToken:Xoe}),t6=Tl.extend({method:$t("notifications/progress"),params:ZRe}),WRe=Pc.extend({cursor:Yoe.optional()}),nT=Aa.extend({params:WRe.optional()}),oT=wa.extend({nextCursor:Yoe.optional()}),QRe=rs(["working","input_required","completed","failed","cancelled"]),iT=dt({taskId:Y(),status:QRe,ttl:go([$n(),QE()]),createdAt:Y(),lastUpdatedAt:Y(),pollInterval:Ko($n()),statusMessage:Ko(Y())}),Vy=wa.extend({task:iT}),XRe=El.merge(iT),aT=Tl.extend({method:$t("notifications/tasks/status"),params:XRe}),r6=Aa.extend({method:$t("tasks/get"),params:Pc.extend({taskId:Y()})}),n6=wa.merge(iT),o6=Aa.extend({method:$t("tasks/result"),params:Pc.extend({taskId:Y()})}),o4t=wa.loose(),i6=nT.extend({method:$t("tasks/list")}),a6=oT.extend({tasks:ot(iT)}),s6=Aa.extend({method:$t("tasks/cancel"),params:Pc.extend({taskId:Y()})}),cie=wa.merge(iT),lie=dt({uri:Y(),mimeType:Ko(Y()),_meta:Ro(Y(),ko()).optional()}),uie=lie.extend({text:Y()}),Z7=Y().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),pie=lie.extend({blob:Z7}),sT=rs(["user","assistant"]),K0=dt({audience:ot(sT).optional(),priority:$n().min(0).max(1).optional(),lastModified:qy.datetime({offset:!0}).optional()}),die=dt({...V0.shape,...rT.shape,uri:Y(),description:Ko(Y()),mimeType:Ko(Y()),annotations:K0.optional(),_meta:Ko(Ui({}))}),YRe=dt({...V0.shape,...rT.shape,uriTemplate:Y(),description:Ko(Y()),mimeType:Ko(Y()),annotations:K0.optional(),_meta:Ko(Ui({}))}),e8e=nT.extend({method:$t("resources/list")}),W7=oT.extend({resources:ot(die)}),t8e=nT.extend({method:$t("resources/templates/list")}),Q7=oT.extend({resourceTemplates:ot(YRe)}),X7=Pc.extend({uri:Y()}),r8e=X7,n8e=Aa.extend({method:$t("resources/read"),params:r8e}),Y7=wa.extend({contents:ot(go([uie,pie]))}),ej=Tl.extend({method:$t("notifications/resources/list_changed"),params:El.optional()}),o8e=X7,i8e=Aa.extend({method:$t("resources/subscribe"),params:o8e}),a8e=X7,s8e=Aa.extend({method:$t("resources/unsubscribe"),params:a8e}),c8e=El.extend({uri:Y()}),l8e=Tl.extend({method:$t("notifications/resources/updated"),params:c8e}),u8e=dt({name:Y(),description:Ko(Y()),required:Ko(uo())}),p8e=dt({...V0.shape,...rT.shape,description:Ko(Y()),arguments:Ko(ot(u8e)),_meta:Ko(Ui({}))}),d8e=nT.extend({method:$t("prompts/list")}),tj=oT.extend({prompts:ot(p8e)}),_8e=Pc.extend({name:Y(),arguments:Ro(Y(),Y()).optional()}),f8e=Aa.extend({method:$t("prompts/get"),params:_8e}),rj=dt({type:$t("text"),text:Y(),annotations:K0.optional(),_meta:Ro(Y(),ko()).optional()}),nj=dt({type:$t("image"),data:Z7,mimeType:Y(),annotations:K0.optional(),_meta:Ro(Y(),ko()).optional()}),oj=dt({type:$t("audio"),data:Z7,mimeType:Y(),annotations:K0.optional(),_meta:Ro(Y(),ko()).optional()}),m8e=dt({type:$t("tool_use"),name:Y(),id:Y(),input:Ro(Y(),ko()),_meta:Ro(Y(),ko()).optional()}),h8e=dt({type:$t("resource"),resource:go([uie,pie]),annotations:K0.optional(),_meta:Ro(Y(),ko()).optional()}),y8e=die.extend({type:$t("resource_link")}),ij=go([rj,nj,oj,y8e,h8e]),g8e=dt({role:sT,content:ij}),aj=wa.extend({description:Y().optional(),messages:ot(g8e)}),sj=Tl.extend({method:$t("notifications/prompts/list_changed"),params:El.optional()}),S8e=dt({title:Y().optional(),readOnlyHint:uo().optional(),destructiveHint:uo().optional(),idempotentHint:uo().optional(),openWorldHint:uo().optional()}),v8e=dt({taskSupport:rs(["required","optional","forbidden"]).optional()}),_ie=dt({...V0.shape,...rT.shape,description:Y().optional(),inputSchema:dt({type:$t("object"),properties:Ro(Y(),Da).optional(),required:ot(Y()).optional()}).catchall(ko()),outputSchema:dt({type:$t("object"),properties:Ro(Y(),Da).optional(),required:ot(Y()).optional()}).catchall(ko()).optional(),annotations:S8e.optional(),execution:v8e.optional(),_meta:Ro(Y(),ko()).optional()}),b8e=nT.extend({method:$t("tools/list")}),cj=oT.extend({tools:ot(_ie)}),G0=wa.extend({content:ot(ij).default([]),structuredContent:Ro(Y(),ko()).optional(),isError:uo().optional()}),i4t=G0.or(wa.extend({toolResult:ko()})),x8e=eT.extend({name:Y(),arguments:Ro(Y(),ko()).optional()}),E8e=Aa.extend({method:$t("tools/call"),params:x8e}),lj=Tl.extend({method:$t("notifications/tools/list_changed"),params:El.optional()}),fie=dt({autoRefresh:uo().default(!0),debounceMs:$n().int().nonnegative().default(300)}),mie=rs(["debug","info","notice","warning","error","critical","alert","emergency"]),T8e=Pc.extend({level:mie}),D8e=Aa.extend({method:$t("logging/setLevel"),params:T8e}),A8e=El.extend({level:mie,logger:Y().optional(),data:ko()}),w8e=Tl.extend({method:$t("notifications/message"),params:A8e}),I8e=dt({name:Y().optional()}),k8e=dt({hints:ot(I8e).optional(),costPriority:$n().min(0).max(1).optional(),speedPriority:$n().min(0).max(1).optional(),intelligencePriority:$n().min(0).max(1).optional()}),C8e=dt({mode:rs(["auto","required","none"]).optional()}),P8e=dt({type:$t("tool_result"),toolUseId:Y().describe("The unique identifier for the corresponding tool call."),content:ot(ij).default([]),structuredContent:dt({}).loose().optional(),isError:uo().optional(),_meta:Ro(Y(),ko()).optional()}),O8e=JP("type",[rj,nj,oj]),WP=JP("type",[rj,nj,oj,m8e,P8e]),N8e=dt({role:sT,content:go([WP,ot(WP)]),_meta:Ro(Y(),ko()).optional()}),F8e=eT.extend({messages:ot(N8e),modelPreferences:k8e.optional(),systemPrompt:Y().optional(),includeContext:rs(["none","thisServer","allServers"]).optional(),temperature:$n().optional(),maxTokens:$n().int(),stopSequences:ot(Y()).optional(),metadata:Da.optional(),tools:ot(_ie).optional(),toolChoice:C8e.optional()}),uj=Aa.extend({method:$t("sampling/createMessage"),params:F8e}),pj=wa.extend({model:Y(),stopReason:Ko(rs(["endTurn","stopSequence","maxTokens"]).or(Y())),role:sT,content:O8e}),dj=wa.extend({model:Y(),stopReason:Ko(rs(["endTurn","stopSequence","maxTokens","toolUse"]).or(Y())),role:sT,content:go([WP,ot(WP)])}),R8e=dt({type:$t("boolean"),title:Y().optional(),description:Y().optional(),default:uo().optional()}),L8e=dt({type:$t("string"),title:Y().optional(),description:Y().optional(),minLength:$n().optional(),maxLength:$n().optional(),format:rs(["email","uri","date","date-time"]).optional(),default:Y().optional()}),$8e=dt({type:rs(["number","integer"]),title:Y().optional(),description:Y().optional(),minimum:$n().optional(),maximum:$n().optional(),default:$n().optional()}),M8e=dt({type:$t("string"),title:Y().optional(),description:Y().optional(),enum:ot(Y()),default:Y().optional()}),j8e=dt({type:$t("string"),title:Y().optional(),description:Y().optional(),oneOf:ot(dt({const:Y(),title:Y()})),default:Y().optional()}),B8e=dt({type:$t("string"),title:Y().optional(),description:Y().optional(),enum:ot(Y()),enumNames:ot(Y()).optional(),default:Y().optional()}),q8e=go([M8e,j8e]),U8e=dt({type:$t("array"),title:Y().optional(),description:Y().optional(),minItems:$n().optional(),maxItems:$n().optional(),items:dt({type:$t("string"),enum:ot(Y())}),default:ot(Y()).optional()}),z8e=dt({type:$t("array"),title:Y().optional(),description:Y().optional(),minItems:$n().optional(),maxItems:$n().optional(),items:dt({anyOf:ot(dt({const:Y(),title:Y()}))}),default:ot(Y()).optional()}),V8e=go([U8e,z8e]),J8e=go([B8e,q8e,V8e]),K8e=go([J8e,R8e,L8e,$8e]),G8e=eT.extend({mode:$t("form").optional(),message:Y(),requestedSchema:dt({type:$t("object"),properties:Ro(Y(),K8e),required:ot(Y()).optional()})}),H8e=eT.extend({mode:$t("url"),message:Y(),elicitationId:Y(),url:Y().url()}),Z8e=go([G8e,H8e]),cT=Aa.extend({method:$t("elicitation/create"),params:Z8e}),W8e=El.extend({elicitationId:Y()}),Q8e=Tl.extend({method:$t("notifications/elicitation/complete"),params:W8e}),_j=wa.extend({action:rs(["accept","decline","cancel"]),content:HP(e=>e===null?void 0:e,Ro(Y(),go([Y(),$n(),uo(),ot(Y())])).optional())}),X8e=dt({type:$t("ref/resource"),uri:Y()});var Y8e=dt({type:$t("ref/prompt"),name:Y()}),e9e=Pc.extend({ref:go([Y8e,X8e]),argument:dt({name:Y(),value:Y()}),context:dt({arguments:Ro(Y(),Y()).optional()}).optional()}),t9e=Aa.extend({method:$t("completion/complete"),params:e9e});var fj=wa.extend({completion:Ui({values:ot(Y()).max(100),total:Ko($n().int()),hasMore:Ko(uo())})}),r9e=dt({uri:Y().startsWith("file://"),name:Y().optional(),_meta:Ro(Y(),ko()).optional()}),n9e=Aa.extend({method:$t("roots/list"),params:Pc.optional()}),o9e=wa.extend({roots:ot(r9e)}),i9e=Tl.extend({method:$t("notifications/roots/list_changed"),params:El.optional()}),a4t=go([e6,KRe,t9e,D8e,f8e,d8e,e8e,t8e,n8e,i8e,s8e,E8e,b8e,r6,o6,i6,s6]),s4t=go([YP,t6,aie,i9e,aT]),c4t=go([zy,pj,dj,_j,o9e,n6,a6,Vy]),l4t=go([e6,uj,cT,n9e,r6,o6,i6,s6]),u4t=go([YP,t6,w8e,l8e,ej,lj,sj,aT,Q8e]),p4t=go([zy,H7,fj,aj,tj,W7,Q7,Y7,G0,cj,n6,a6,Vy]),rr=class e extends Error{constructor(t,r,n){super(`MCP error ${t}: ${r}`),this.code=t,this.data=n,this.name="McpError"}static fromError(t,r,n){if(t===Tr.UrlElicitationRequired&&n){let o=n;if(o.elicitations)return new YE(o.elicitations,r)}return new e(t,r,n)}},YE=class extends rr{constructor(t,r=`URL elicitation${t.length>1?"s":""} required`){super(Tr.UrlElicitationRequired,r,{elicitations:t})}get elicitations(){return this.data?.elicitations??[]}};function im(e){return e==="completed"||e==="failed"||e==="cancelled"}var J4t=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function mj(e){let r=LP(e)?.method;if(!r)throw new Error("Schema is missing a method literal");let n=Hne(r);if(typeof n!="string")throw new Error("Schema method literal must be a string");return n}function hj(e,t){let r=bu(e,t);if(!r.success)throw r.error;return r.data}var p9e=6e4,c6=class{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(YP,r=>{this._oncancel(r)}),this.setNotificationHandler(t6,r=>{this._onprogress(r)}),this.setRequestHandler(e6,r=>({})),this._taskStore=t?.taskStore,this._taskMessageQueue=t?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(r6,async(r,n)=>{let o=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!o)throw new rr(Tr.InvalidParams,"Failed to retrieve task: Task not found");return{...o}}),this.setRequestHandler(o6,async(r,n)=>{let o=async()=>{let i=r.params.taskId;if(this._taskMessageQueue){let s;for(;s=await this._taskMessageQueue.dequeue(i,n.sessionId);){if(s.type==="response"||s.type==="error"){let c=s.message,p=c.id,d=this._requestResolvers.get(p);if(d)if(this._requestResolvers.delete(p),s.type==="response")d(c);else{let f=c,m=new rr(f.error.code,f.error.message,f.error.data);d(m)}else{let f=s.type==="response"?"Response":"Error";this._onerror(new Error(`${f} handler missing for request ${p}`))}continue}await this._transport?.send(s.message,{relatedRequestId:n.requestId})}}let a=await this._taskStore.getTask(i,n.sessionId);if(!a)throw new rr(Tr.InvalidParams,`Task not found: ${i}`);if(!im(a.status))return await this._waitForTaskUpdate(i,n.signal),await o();if(im(a.status)){let s=await this._taskStore.getTaskResult(i,n.sessionId);return this._clearTaskQueue(i),{...s,_meta:{...s._meta,[nm]:{taskId:i}}}}return await o()};return await o()}),this.setRequestHandler(i6,async(r,n)=>{try{let{tasks:o,nextCursor:i}=await this._taskStore.listTasks(r.params?.cursor,n.sessionId);return{tasks:o,nextCursor:i,_meta:{}}}catch(o){throw new rr(Tr.InvalidParams,`Failed to list tasks: ${o instanceof Error?o.message:String(o)}`)}}),this.setRequestHandler(s6,async(r,n)=>{try{let o=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!o)throw new rr(Tr.InvalidParams,`Task not found: ${r.params.taskId}`);if(im(o.status))throw new rr(Tr.InvalidParams,`Cannot cancel task in terminal status: ${o.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",n.sessionId),this._clearTaskQueue(r.params.taskId);let i=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!i)throw new rr(Tr.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...i}}catch(o){throw o instanceof rr?o:new rr(Tr.InvalidRequest,`Failed to cancel task: ${o instanceof Error?o.message:String(o)}`)}}))}async _oncancel(t){if(!t.params.requestId)return;this._requestHandlerAbortControllers.get(t.params.requestId)?.abort(t.params.reason)}_setupTimeout(t,r,n,o,i=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(o,r),startTime:Date.now(),timeout:r,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:o})}_resetTimeout(t){let r=this._timeoutInfo.get(t);if(!r)return!1;let n=Date.now()-r.startTime;if(r.maxTotalTimeout&&n>=r.maxTotalTimeout)throw this._timeoutInfo.delete(t),rr.fromError(Tr.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:n});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(t){let r=this._timeoutInfo.get(t);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(t))}async connect(t){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=t;let r=this.transport?.onclose;this._transport.onclose=()=>{r?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=i=>{n?.(i),this._onerror(i)};let o=this._transport?.onmessage;this._transport.onmessage=(i,a)=>{o?.(i,a),Uy(i)||oie(i)?this._onresponse(i):tT(i)?this._onrequest(i,a):nie(i)?this._onnotification(i):this._onerror(new Error(`Unknown message type: ${JSON.stringify(i)}`))},await this._transport.start()}_onclose(){let t=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();let r=rr.fromError(Tr.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let n of t.values())n(r)}_onerror(t){this.onerror?.(t)}_onnotification(t){let r=this._notificationHandlers.get(t.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(t)).catch(n=>this._onerror(new Error(`Uncaught error in notification handler: ${n}`)))}_onrequest(t,r){let n=this._requestHandlers.get(t.method)??this.fallbackRequestHandler,o=this._transport,i=t.params?._meta?.[nm]?.taskId;if(n===void 0){let d={jsonrpc:"2.0",id:t.id,error:{code:Tr.MethodNotFound,message:"Method not found"}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:"error",message:d,timestamp:Date.now()},o?.sessionId).catch(f=>this._onerror(new Error(`Failed to enqueue error response: ${f}`))):o?.send(d).catch(f=>this._onerror(new Error(`Failed to send an error response: ${f}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(t.id,a);let s=eie(t.params)?t.params.task:void 0,c=this._taskStore?this.requestTaskStore(t,o?.sessionId):void 0,p={signal:a.signal,sessionId:o?.sessionId,_meta:t.params?._meta,sendNotification:async d=>{if(a.signal.aborted)return;let f={relatedRequestId:t.id};i&&(f.relatedTask={taskId:i}),await this.notification(d,f)},sendRequest:async(d,f,m)=>{if(a.signal.aborted)throw new rr(Tr.ConnectionClosed,"Request was cancelled");let y={...m,relatedRequestId:t.id};i&&!y.relatedTask&&(y.relatedTask={taskId:i});let g=y.relatedTask?.taskId??i;return g&&c&&await c.updateTaskStatus(g,"input_required"),await this.request(d,f,y)},authInfo:r?.authInfo,requestId:t.id,requestInfo:r?.requestInfo,taskId:i,taskStore:c,taskRequestedTtl:s?.ttl,closeSSEStream:r?.closeSSEStream,closeStandaloneSSEStream:r?.closeStandaloneSSEStream};Promise.resolve().then(()=>{s&&this.assertTaskHandlerCapability(t.method)}).then(()=>n(t,p)).then(async d=>{if(a.signal.aborted)return;let f={result:d,jsonrpc:"2.0",id:t.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:"response",message:f,timestamp:Date.now()},o?.sessionId):await o?.send(f)},async d=>{if(a.signal.aborted)return;let f={jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(d.code)?d.code:Tr.InternalError,message:d.message??"Internal error",...d.data!==void 0&&{data:d.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:"error",message:f,timestamp:Date.now()},o?.sessionId):await o?.send(f)}).catch(d=>this._onerror(new Error(`Failed to send response: ${d}`))).finally(()=>{this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){let{progressToken:r,...n}=t.params,o=Number(r),i=this._progressHandlers.get(o);if(!i){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}let a=this._responseHandlers.get(o),s=this._timeoutInfo.get(o);if(s&&a&&s.resetTimeoutOnProgress)try{this._resetTimeout(o)}catch(c){this._responseHandlers.delete(o),this._progressHandlers.delete(o),this._cleanupTimeout(o),a(c);return}i(n)}_onresponse(t){let r=Number(t.id),n=this._requestResolvers.get(r);if(n){if(this._requestResolvers.delete(r),Uy(t))n(t);else{let a=new rr(t.error.code,t.error.message,t.error.data);n(a)}return}let o=this._responseHandlers.get(r);if(o===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let i=!1;if(Uy(t)&&t.result&&typeof t.result=="object"){let a=t.result;if(a.task&&typeof a.task=="object"){let s=a.task;typeof s.taskId=="string"&&(i=!0,this._taskProgressTokens.set(s.taskId,r))}}if(i||this._progressHandlers.delete(r),Uy(t))o(t);else{let a=rr.fromError(t.error.code,t.error.message,t.error.data);o(a)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(t,r,n){let{task:o}=n??{};if(!o){try{yield{type:"result",result:await this.request(t,r,n)}}catch(a){yield{type:"error",error:a instanceof rr?a:new rr(Tr.InternalError,String(a))}}return}let i;try{let a=await this.request(t,Vy,n);if(a.task)i=a.task.taskId,yield{type:"taskCreated",task:a.task};else throw new rr(Tr.InternalError,"Task creation did not return a task");for(;;){let s=await this.getTask({taskId:i},n);if(yield{type:"taskStatus",task:s},im(s.status)){s.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:i},r,n)}:s.status==="failed"?yield{type:"error",error:new rr(Tr.InternalError,`Task ${i} failed`)}:s.status==="cancelled"&&(yield{type:"error",error:new rr(Tr.InternalError,`Task ${i} was cancelled`)});return}if(s.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:i},r,n)};return}let c=s.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(p=>setTimeout(p,c)),n?.signal?.throwIfAborted()}}catch(a){yield{type:"error",error:a instanceof rr?a:new rr(Tr.InternalError,String(a))}}}request(t,r,n){let{relatedRequestId:o,resumptionToken:i,onresumptiontoken:a,task:s,relatedTask:c}=n??{};return new Promise((p,d)=>{let f=I=>{d(I)};if(!this._transport){f(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method),s&&this.assertTaskCapability(t.method)}catch(I){f(I);return}n?.signal?.throwIfAborted();let m=this._requestMessageId++,y={...t,jsonrpc:"2.0",id:m};n?.onprogress&&(this._progressHandlers.set(m,n.onprogress),y.params={...t.params,_meta:{...t.params?._meta||{},progressToken:m}}),s&&(y.params={...y.params,task:s}),c&&(y.params={...y.params,_meta:{...y.params?._meta||{},[nm]:c}});let g=I=>{this._responseHandlers.delete(m),this._progressHandlers.delete(m),this._cleanupTimeout(m),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:m,reason:String(I)}},{relatedRequestId:o,resumptionToken:i,onresumptiontoken:a}).catch(C=>this._onerror(new Error(`Failed to send cancellation: ${C}`)));let E=I instanceof rr?I:new rr(Tr.RequestTimeout,String(I));d(E)};this._responseHandlers.set(m,I=>{if(!n?.signal?.aborted){if(I instanceof Error)return d(I);try{let E=bu(r,I.result);E.success?p(E.data):d(E.error)}catch(E){d(E)}}}),n?.signal?.addEventListener("abort",()=>{g(n?.signal?.reason)});let S=n?.timeout??p9e,x=()=>g(rr.fromError(Tr.RequestTimeout,"Request timed out",{timeout:S}));this._setupTimeout(m,S,n?.maxTotalTimeout,x,n?.resetTimeoutOnProgress??!1);let A=c?.taskId;if(A){let I=E=>{let C=this._responseHandlers.get(m);C?C(E):this._onerror(new Error(`Response handler missing for side-channeled request ${m}`))};this._requestResolvers.set(m,I),this._enqueueTaskMessage(A,{type:"request",message:y,timestamp:Date.now()}).catch(E=>{this._cleanupTimeout(m),d(E)})}else this._transport.send(y,{relatedRequestId:o,resumptionToken:i,onresumptiontoken:a}).catch(I=>{this._cleanupTimeout(m),d(I)})})}async getTask(t,r){return this.request({method:"tasks/get",params:t},n6,r)}async getTaskResult(t,r,n){return this.request({method:"tasks/result",params:t},r,n)}async listTasks(t,r){return this.request({method:"tasks/list",params:t},a6,r)}async cancelTask(t,r){return this.request({method:"tasks/cancel",params:t},cie,r)}async notification(t,r){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(t.method);let n=r?.relatedTask?.taskId;if(n){let s={...t,jsonrpc:"2.0",params:{...t.params,_meta:{...t.params?._meta||{},[nm]:r.relatedTask}}};await this._enqueueTaskMessage(n,{type:"notification",message:s,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&!r?.relatedRequestId&&!r?.relatedTask){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(t.method),!this._transport)return;let s={...t,jsonrpc:"2.0"};r?.relatedTask&&(s={...s,params:{...s.params,_meta:{...s.params?._meta||{},[nm]:r.relatedTask}}}),this._transport?.send(s,r).catch(c=>this._onerror(c))});return}let a={...t,jsonrpc:"2.0"};r?.relatedTask&&(a={...a,params:{...a.params,_meta:{...a.params?._meta||{},[nm]:r.relatedTask}}}),await this._transport.send(a,r)}setRequestHandler(t,r){let n=mj(t);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(o,i)=>{let a=hj(t,o);return Promise.resolve(r(a,i))})}removeRequestHandler(t){this._requestHandlers.delete(t)}assertCanSetRequestHandler(t){if(this._requestHandlers.has(t))throw new Error(`A request handler for ${t} already exists, which would be overridden`)}setNotificationHandler(t,r){let n=mj(t);this._notificationHandlers.set(n,o=>{let i=hj(t,o);return Promise.resolve(r(i))})}removeNotificationHandler(t){this._notificationHandlers.delete(t)}_cleanupTaskProgressHandler(t){let r=this._taskProgressTokens.get(t);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(t))}async _enqueueTaskMessage(t,r,n){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let o=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(t,r,n,o)}async _clearTaskQueue(t,r){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(t,r);for(let o of n)if(o.type==="request"&&tT(o.message)){let i=o.message.id,a=this._requestResolvers.get(i);a?(a(new rr(Tr.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(i)):this._onerror(new Error(`Resolver missing for request ${i} during task ${t} cleanup`))}}}async _waitForTaskUpdate(t,r){let n=this._options?.defaultTaskPollInterval??1e3;try{let o=await this._taskStore?.getTask(t);o?.pollInterval&&(n=o.pollInterval)}catch{}return new Promise((o,i)=>{if(r.aborted){i(new rr(Tr.InvalidRequest,"Request cancelled"));return}let a=setTimeout(o,n);r.addEventListener("abort",()=>{clearTimeout(a),i(new rr(Tr.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(t,r){let n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async o=>{if(!t)throw new Error("No request provided");return await n.createTask(o,t.id,{method:t.method,params:t.params},r)},getTask:async o=>{let i=await n.getTask(o,r);if(!i)throw new rr(Tr.InvalidParams,"Failed to retrieve task: Task not found");return i},storeTaskResult:async(o,i,a)=>{await n.storeTaskResult(o,i,a,r);let s=await n.getTask(o,r);if(s){let c=aT.parse({method:"notifications/tasks/status",params:s});await this.notification(c),im(s.status)&&this._cleanupTaskProgressHandler(o)}},getTaskResult:o=>n.getTaskResult(o,r),updateTaskStatus:async(o,i,a)=>{let s=await n.getTask(o,r);if(!s)throw new rr(Tr.InvalidParams,`Task "${o}" not found - it may have been cleaned up`);if(im(s.status))throw new rr(Tr.InvalidParams,`Cannot update task "${o}" from terminal status "${s.status}" to "${i}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(o,i,a,r);let c=await n.getTask(o,r);if(c){let p=aT.parse({method:"notifications/tasks/status",params:c});await this.notification(p),im(c.status)&&this._cleanupTaskProgressHandler(o)}},listTasks:o=>n.listTasks(o,r)}}};function hie(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function yie(e,t){let r={...e};for(let n in t){let o=n,i=t[o];if(i===void 0)continue;let a=r[o];hie(a)&&hie(i)?r[o]={...a,...i}:r[o]=i}return r}var Rie=e0(Sj(),1),Lie=e0(Fie(),1);function z9e(){let e=new Rie.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,Lie.default)(e),e}var p6=class{constructor(t){this._ajv=t??z9e()}getValidator(t){let r="$id"in t&&typeof t.$id=="string"?this._ajv.getSchema(t.$id)??this._ajv.compile(t):this._ajv.compile(t);return n=>r(n)?{valid:!0,data:n,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(r.errors)}}};var d6=class{constructor(t){this._client=t}async*callToolStream(t,r=G0,n){let o=this._client,i={...n,task:n?.task??(o.isToolTask(t.name)?{}:void 0)},a=o.requestStream({method:"tools/call",params:t},r,i),s=o.getToolOutputValidator(t.name);for await(let c of a){if(c.type==="result"&&s){let p=c.result;if(!p.structuredContent&&!p.isError){yield{type:"error",error:new rr(Tr.InvalidRequest,`Tool ${t.name} has an output schema but did not return structured content`)};return}if(p.structuredContent)try{let d=s(p.structuredContent);if(!d.valid){yield{type:"error",error:new rr(Tr.InvalidParams,`Structured content does not match the tool's output schema: ${d.errorMessage}`)};return}}catch(d){if(d instanceof rr){yield{type:"error",error:d};return}yield{type:"error",error:new rr(Tr.InvalidParams,`Failed to validate structured content: ${d instanceof Error?d.message:String(d)}`)};return}}yield c}}async getTask(t,r){return this._client.getTask({taskId:t},r)}async getTaskResult(t,r,n){return this._client.getTaskResult({taskId:t},r,n)}async listTasks(t,r){return this._client.listTasks(t?{cursor:t}:void 0,r)}async cancelTask(t,r){return this._client.cancelTask({taskId:t},r)}requestStream(t,r,n){return this._client.requestStream(t,r,n)}};function $ie(e,t,r){if(!e)throw new Error(`${r} does not support task creation (required for ${t})`);switch(t){case"tools/call":if(!e.tools?.call)throw new Error(`${r} does not support task creation for tools/call (required for ${t})`);break;default:break}}function Mie(e,t,r){if(!e)throw new Error(`${r} does not support task creation (required for ${t})`);switch(t){case"sampling/createMessage":if(!e.sampling?.createMessage)throw new Error(`${r} does not support task creation for sampling/createMessage (required for ${t})`);break;case"elicitation/create":if(!e.elicitation?.create)throw new Error(`${r} does not support task creation for elicitation/create (required for ${t})`);break;default:break}}function _6(e,t){if(!(!e||t===null||typeof t!="object")){if(e.type==="object"&&e.properties&&typeof e.properties=="object"){let r=t,n=e.properties;for(let o of Object.keys(n)){let i=n[o];r[o]===void 0&&Object.prototype.hasOwnProperty.call(i,"default")&&(r[o]=i.default),r[o]!==void 0&&_6(i,r[o])}}if(Array.isArray(e.anyOf))for(let r of e.anyOf)typeof r!="boolean"&&_6(r,t);if(Array.isArray(e.oneOf))for(let r of e.oneOf)typeof r!="boolean"&&_6(r,t)}}function V9e(e){if(!e)return{supportsFormMode:!1,supportsUrlMode:!1};let t=e.form!==void 0,r=e.url!==void 0;return{supportsFormMode:t||!t&&!r,supportsUrlMode:r}}var f6=class extends c6{constructor(t,r){super(r),this._clientInfo=t,this._cachedToolOutputValidators=new Map,this._cachedKnownTaskTools=new Set,this._cachedRequiredTaskTools=new Set,this._listChangedDebounceTimers=new Map,this._capabilities=r?.capabilities??{},this._jsonSchemaValidator=r?.jsonSchemaValidator??new p6,r?.listChanged&&(this._pendingListChangedConfig=r.listChanged)}_setupListChangedHandlers(t){t.tools&&this._serverCapabilities?.tools?.listChanged&&this._setupListChangedHandler("tools",lj,t.tools,async()=>(await this.listTools()).tools),t.prompts&&this._serverCapabilities?.prompts?.listChanged&&this._setupListChangedHandler("prompts",sj,t.prompts,async()=>(await this.listPrompts()).prompts),t.resources&&this._serverCapabilities?.resources?.listChanged&&this._setupListChangedHandler("resources",ej,t.resources,async()=>(await this.listResources()).resources)}get experimental(){return this._experimental||(this._experimental={tasks:new d6(this)}),this._experimental}registerCapabilities(t){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=yie(this._capabilities,t)}setRequestHandler(t,r){let o=LP(t)?.method;if(!o)throw new Error("Schema is missing a method literal");let i;if(U0(o)){let s=o;i=s._zod?.def?.value??s.value}else{let s=o;i=s._def?.value??s.value}if(typeof i!="string")throw new Error("Schema method literal must be a string");let a=i;if(a==="elicitation/create"){let s=async(c,p)=>{let d=bu(cT,c);if(!d.success){let I=d.error instanceof Error?d.error.message:String(d.error);throw new rr(Tr.InvalidParams,`Invalid elicitation request: ${I}`)}let{params:f}=d.data;f.mode=f.mode??"form";let{supportsFormMode:m,supportsUrlMode:y}=V9e(this._capabilities.elicitation);if(f.mode==="form"&&!m)throw new rr(Tr.InvalidParams,"Client does not support form-mode elicitation requests");if(f.mode==="url"&&!y)throw new rr(Tr.InvalidParams,"Client does not support URL-mode elicitation requests");let g=await Promise.resolve(r(c,p));if(f.task){let I=bu(Vy,g);if(!I.success){let E=I.error instanceof Error?I.error.message:String(I.error);throw new rr(Tr.InvalidParams,`Invalid task creation result: ${E}`)}return I.data}let S=bu(_j,g);if(!S.success){let I=S.error instanceof Error?S.error.message:String(S.error);throw new rr(Tr.InvalidParams,`Invalid elicitation result: ${I}`)}let x=S.data,A=f.mode==="form"?f.requestedSchema:void 0;if(f.mode==="form"&&x.action==="accept"&&x.content&&A&&this._capabilities.elicitation?.form?.applyDefaults)try{_6(A,x.content)}catch{}return x};return super.setRequestHandler(t,s)}if(a==="sampling/createMessage"){let s=async(c,p)=>{let d=bu(uj,c);if(!d.success){let x=d.error instanceof Error?d.error.message:String(d.error);throw new rr(Tr.InvalidParams,`Invalid sampling request: ${x}`)}let{params:f}=d.data,m=await Promise.resolve(r(c,p));if(f.task){let x=bu(Vy,m);if(!x.success){let A=x.error instanceof Error?x.error.message:String(x.error);throw new rr(Tr.InvalidParams,`Invalid task creation result: ${A}`)}return x.data}let g=f.tools||f.toolChoice?dj:pj,S=bu(g,m);if(!S.success){let x=S.error instanceof Error?S.error.message:String(S.error);throw new rr(Tr.InvalidParams,`Invalid sampling result: ${x}`)}return S.data};return super.setRequestHandler(t,s)}return super.setRequestHandler(t,r)}assertCapability(t,r){if(!this._serverCapabilities?.[t])throw new Error(`Server does not support ${t} (required for ${r})`)}async connect(t,r){if(await super.connect(t),t.sessionId===void 0)try{let n=await this.request({method:"initialize",params:{protocolVersion:J0,capabilities:this._capabilities,clientInfo:this._clientInfo}},H7,r);if(n===void 0)throw new Error(`Server sent invalid initialize result: ${n}`);if(!Qoe.includes(n.protocolVersion))throw new Error(`Server's protocol version is not supported: ${n.protocolVersion}`);this._serverCapabilities=n.capabilities,this._serverVersion=n.serverInfo,t.setProtocolVersion&&t.setProtocolVersion(n.protocolVersion),this._instructions=n.instructions,await this.notification({method:"notifications/initialized"}),this._pendingListChangedConfig&&(this._setupListChangedHandlers(this._pendingListChangedConfig),this._pendingListChangedConfig=void 0)}catch(n){throw this.close(),n}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(t){switch(t){case"logging/setLevel":if(!this._serverCapabilities?.logging)throw new Error(`Server does not support logging (required for ${t})`);break;case"prompts/get":case"prompts/list":if(!this._serverCapabilities?.prompts)throw new Error(`Server does not support prompts (required for ${t})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!this._serverCapabilities?.resources)throw new Error(`Server does not support resources (required for ${t})`);if(t==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${t})`);break;case"tools/call":case"tools/list":if(!this._serverCapabilities?.tools)throw new Error(`Server does not support tools (required for ${t})`);break;case"completion/complete":if(!this._serverCapabilities?.completions)throw new Error(`Server does not support completions (required for ${t})`);break;case"initialize":break;case"ping":break}}assertNotificationCapability(t){switch(t){case"notifications/roots/list_changed":if(!this._capabilities.roots?.listChanged)throw new Error(`Client does not support roots list changed notifications (required for ${t})`);break;case"notifications/initialized":break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(t){if(this._capabilities)switch(t){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${t})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw new Error(`Client does not support elicitation capability (required for ${t})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${t})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Client does not support tasks capability (required for ${t})`);break;case"ping":break}}assertTaskCapability(t){$ie(this._serverCapabilities?.tasks?.requests,t,"Server")}assertTaskHandlerCapability(t){this._capabilities&&Mie(this._capabilities.tasks?.requests,t,"Client")}async ping(t){return this.request({method:"ping"},zy,t)}async complete(t,r){return this.request({method:"completion/complete",params:t},fj,r)}async setLoggingLevel(t,r){return this.request({method:"logging/setLevel",params:{level:t}},zy,r)}async getPrompt(t,r){return this.request({method:"prompts/get",params:t},aj,r)}async listPrompts(t,r){return this.request({method:"prompts/list",params:t},tj,r)}async listResources(t,r){return this.request({method:"resources/list",params:t},W7,r)}async listResourceTemplates(t,r){return this.request({method:"resources/templates/list",params:t},Q7,r)}async readResource(t,r){return this.request({method:"resources/read",params:t},Y7,r)}async subscribeResource(t,r){return this.request({method:"resources/subscribe",params:t},zy,r)}async unsubscribeResource(t,r){return this.request({method:"resources/unsubscribe",params:t},zy,r)}async callTool(t,r=G0,n){if(this.isToolTaskRequired(t.name))throw new rr(Tr.InvalidRequest,`Tool "${t.name}" requires task-based execution. Use client.experimental.tasks.callToolStream() instead.`);let o=await this.request({method:"tools/call",params:t},r,n),i=this.getToolOutputValidator(t.name);if(i){if(!o.structuredContent&&!o.isError)throw new rr(Tr.InvalidRequest,`Tool ${t.name} has an output schema but did not return structured content`);if(o.structuredContent)try{let a=i(o.structuredContent);if(!a.valid)throw new rr(Tr.InvalidParams,`Structured content does not match the tool's output schema: ${a.errorMessage}`)}catch(a){throw a instanceof rr?a:new rr(Tr.InvalidParams,`Failed to validate structured content: ${a instanceof Error?a.message:String(a)}`)}}return o}isToolTask(t){return this._serverCapabilities?.tasks?.requests?.tools?.call?this._cachedKnownTaskTools.has(t):!1}isToolTaskRequired(t){return this._cachedRequiredTaskTools.has(t)}cacheToolMetadata(t){this._cachedToolOutputValidators.clear(),this._cachedKnownTaskTools.clear(),this._cachedRequiredTaskTools.clear();for(let r of t){if(r.outputSchema){let o=this._jsonSchemaValidator.getValidator(r.outputSchema);this._cachedToolOutputValidators.set(r.name,o)}let n=r.execution?.taskSupport;(n==="required"||n==="optional")&&this._cachedKnownTaskTools.add(r.name),n==="required"&&this._cachedRequiredTaskTools.add(r.name)}}getToolOutputValidator(t){return this._cachedToolOutputValidators.get(t)}async listTools(t,r){let n=await this.request({method:"tools/list",params:t},cj,r);return this.cacheToolMetadata(n.tools),n}_setupListChangedHandler(t,r,n,o){let i=fie.safeParse(n);if(!i.success)throw new Error(`Invalid ${t} listChanged options: ${i.error.message}`);if(typeof n.onChanged!="function")throw new Error(`Invalid ${t} listChanged options: onChanged must be a function`);let{autoRefresh:a,debounceMs:s}=i.data,{onChanged:c}=n,p=async()=>{if(!a){c(null,null);return}try{let f=await o();c(null,f)}catch(f){let m=f instanceof Error?f:new Error(String(f));c(m,null)}},d=()=>{if(s){let f=this._listChangedDebounceTimers.get(t);f&&clearTimeout(f);let m=setTimeout(p,s);this._listChangedDebounceTimers.set(t,m)}else p()};this.setNotificationHandler(r,d)}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}};var m6=class extends Error{constructor(t,r){super(t),this.name="ParseError",this.type=r.type,this.field=r.field,this.value=r.value,this.line=r.line}};function wj(e){}function h6(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:t=wj,onError:r=wj,onRetry:n=wj,onComment:o}=e,i="",a=!0,s,c="",p="";function d(S){let x=a?S.replace(/^\xEF\xBB\xBF/,""):S,[A,I]=J9e(`${i}${x}`);for(let E of A)f(E);i=I,a=!1}function f(S){if(S===""){y();return}if(S.startsWith(":")){o&&o(S.slice(S.startsWith(": ")?2:1));return}let x=S.indexOf(":");if(x!==-1){let A=S.slice(0,x),I=S[x+1]===" "?2:1,E=S.slice(x+I);m(A,E,S);return}m(S,"",S)}function m(S,x,A){switch(S){case"event":p=x;break;case"data":c=`${c}${x} +`;break;case"id":s=x.includes("\0")?void 0:x;break;case"retry":/^\d+$/.test(x)?n(parseInt(x,10)):r(new m6(`Invalid \`retry\` value: "${x}"`,{type:"invalid-retry",value:x,line:A}));break;default:r(new m6(`Unknown field "${S.length>20?`${S.slice(0,20)}\u2026`:S}"`,{type:"unknown-field",field:S,value:x,line:A}));break}}function y(){c.length>0&&t({id:s,event:p||void 0,data:c.endsWith(` +`)?c.slice(0,-1):c}),s=void 0,c="",p=""}function g(S={}){i&&S.consume&&f(i),a=!0,s=void 0,c="",p="",i=""}return{feed:d,reset:g}}function J9e(e){let t=[],r="",n=0;for(;n{throw TypeError(e)},Lj=(e,t,r)=>t.has(e)||qie("Cannot "+r),_n=(e,t,r)=>(Lj(e,t,"read from private field"),r?r.call(e):t.get(e)),Qi=(e,t,r)=>t.has(e)?qie("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ri=(e,t,r,n)=>(Lj(e,t,"write to private field"),t.set(e,r),r),__=(e,t,r)=>(Lj(e,t,"access private method"),r),Ws,Jy,X0,y6,S6,_T,tv,fT,sm,Y0,rv,ev,pT,Eu,kj,Cj,Pj,Bie,Oj,Nj,dT,Fj,Rj,Ky=class extends EventTarget{constructor(t,r){var n,o;super(),Qi(this,Eu),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,Qi(this,Ws),Qi(this,Jy),Qi(this,X0),Qi(this,y6),Qi(this,S6),Qi(this,_T),Qi(this,tv),Qi(this,fT,null),Qi(this,sm),Qi(this,Y0),Qi(this,rv,null),Qi(this,ev,null),Qi(this,pT,null),Qi(this,Cj,async i=>{var a;_n(this,Y0).reset();let{body:s,redirected:c,status:p,headers:d}=i;if(p===204){__(this,Eu,dT).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(c?ri(this,X0,new URL(i.url)):ri(this,X0,void 0),p!==200){__(this,Eu,dT).call(this,`Non-200 status code (${p})`,p);return}if(!(d.get("content-type")||"").startsWith("text/event-stream")){__(this,Eu,dT).call(this,'Invalid content type, expected "text/event-stream"',p);return}if(_n(this,Ws)===this.CLOSED)return;ri(this,Ws,this.OPEN);let f=new Event("open");if((a=_n(this,pT))==null||a.call(this,f),this.dispatchEvent(f),typeof s!="object"||!s||!("getReader"in s)){__(this,Eu,dT).call(this,"Invalid response body, expected a web ReadableStream",p),this.close();return}let m=new TextDecoder,y=s.getReader(),g=!0;do{let{done:S,value:x}=await y.read();x&&_n(this,Y0).feed(m.decode(x,{stream:!S})),S&&(g=!1,_n(this,Y0).reset(),__(this,Eu,Fj).call(this))}while(g)}),Qi(this,Pj,i=>{ri(this,sm,void 0),!(i.name==="AbortError"||i.type==="aborted")&&__(this,Eu,Fj).call(this,Ij(i))}),Qi(this,Oj,i=>{typeof i.id=="string"&&ri(this,fT,i.id);let a=new MessageEvent(i.event||"message",{data:i.data,origin:_n(this,X0)?_n(this,X0).origin:_n(this,Jy).origin,lastEventId:i.id||""});_n(this,ev)&&(!i.event||i.event==="message")&&_n(this,ev).call(this,a),this.dispatchEvent(a)}),Qi(this,Nj,i=>{ri(this,_T,i)}),Qi(this,Rj,()=>{ri(this,tv,void 0),_n(this,Ws)===this.CONNECTING&&__(this,Eu,kj).call(this)});try{if(t instanceof URL)ri(this,Jy,t);else if(typeof t=="string")ri(this,Jy,new URL(t,G9e()));else throw new Error("Invalid URL")}catch{throw K9e("An invalid or illegal string was specified")}ri(this,Y0,h6({onEvent:_n(this,Oj),onRetry:_n(this,Nj)})),ri(this,Ws,this.CONNECTING),ri(this,_T,3e3),ri(this,S6,(n=r?.fetch)!=null?n:globalThis.fetch),ri(this,y6,(o=r?.withCredentials)!=null?o:!1),__(this,Eu,kj).call(this)}get readyState(){return _n(this,Ws)}get url(){return _n(this,Jy).href}get withCredentials(){return _n(this,y6)}get onerror(){return _n(this,rv)}set onerror(t){ri(this,rv,t)}get onmessage(){return _n(this,ev)}set onmessage(t){ri(this,ev,t)}get onopen(){return _n(this,pT)}set onopen(t){ri(this,pT,t)}addEventListener(t,r,n){let o=r;super.addEventListener(t,o,n)}removeEventListener(t,r,n){let o=r;super.removeEventListener(t,o,n)}close(){_n(this,tv)&&clearTimeout(_n(this,tv)),_n(this,Ws)!==this.CLOSED&&(_n(this,sm)&&_n(this,sm).abort(),ri(this,Ws,this.CLOSED),ri(this,sm,void 0))}};Ws=new WeakMap,Jy=new WeakMap,X0=new WeakMap,y6=new WeakMap,S6=new WeakMap,_T=new WeakMap,tv=new WeakMap,fT=new WeakMap,sm=new WeakMap,Y0=new WeakMap,rv=new WeakMap,ev=new WeakMap,pT=new WeakMap,Eu=new WeakSet,kj=function(){ri(this,Ws,this.CONNECTING),ri(this,sm,new AbortController),_n(this,S6)(_n(this,Jy),__(this,Eu,Bie).call(this)).then(_n(this,Cj)).catch(_n(this,Pj))},Cj=new WeakMap,Pj=new WeakMap,Bie=function(){var e;let t={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",..._n(this,fT)?{"Last-Event-ID":_n(this,fT)}:void 0},cache:"no-store",signal:(e=_n(this,sm))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},Oj=new WeakMap,Nj=new WeakMap,dT=function(e,t){var r;_n(this,Ws)!==this.CLOSED&&ri(this,Ws,this.CLOSED);let n=new g6("error",{code:t,message:e});(r=_n(this,rv))==null||r.call(this,n),this.dispatchEvent(n)},Fj=function(e,t){var r;if(_n(this,Ws)===this.CLOSED)return;ri(this,Ws,this.CONNECTING);let n=new g6("error",{code:t,message:e});(r=_n(this,rv))==null||r.call(this,n),this.dispatchEvent(n),ri(this,tv,setTimeout(_n(this,Rj),_n(this,_T)))},Rj=new WeakMap,Ky.CONNECTING=0,Ky.OPEN=1,Ky.CLOSED=2;function G9e(){let e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}function nv(e){return e?e instanceof Headers?Object.fromEntries(e.entries()):Array.isArray(e)?Object.fromEntries(e):{...e}:{}}function v6(e=fetch,t){return t?async(r,n)=>{let o={...t,...n,headers:n?.headers?{...nv(t.headers),...nv(n.headers)}:t.headers};return e(r,o)}:e}var $j;$j=globalThis.crypto?.webcrypto??globalThis.crypto??import("node:crypto").then(e=>e.webcrypto);async function H9e(e){return(await $j).getRandomValues(new Uint8Array(e))}async function Z9e(e){let t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",r=Math.pow(2,8)-Math.pow(2,8)%t.length,n="";for(;n.length128)throw`Expected a length between 43 and 128. Received ${e}.`;let t=await W9e(e),r=await Q9e(t);return{code_verifier:t,code_challenge:r}}var ka=v7().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:Zoe.custom,message:"URL must be parseable",fatal:!0}),HC}).refine(e=>{let t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),zie=Ui({resource:Y().url(),authorization_servers:ot(ka).optional(),jwks_uri:Y().url().optional(),scopes_supported:ot(Y()).optional(),bearer_methods_supported:ot(Y()).optional(),resource_signing_alg_values_supported:ot(Y()).optional(),resource_name:Y().optional(),resource_documentation:Y().optional(),resource_policy_uri:Y().url().optional(),resource_tos_uri:Y().url().optional(),tls_client_certificate_bound_access_tokens:uo().optional(),authorization_details_types_supported:ot(Y()).optional(),dpop_signing_alg_values_supported:ot(Y()).optional(),dpop_bound_access_tokens_required:uo().optional()}),jj=Ui({issuer:Y(),authorization_endpoint:ka,token_endpoint:ka,registration_endpoint:ka.optional(),scopes_supported:ot(Y()).optional(),response_types_supported:ot(Y()),response_modes_supported:ot(Y()).optional(),grant_types_supported:ot(Y()).optional(),token_endpoint_auth_methods_supported:ot(Y()).optional(),token_endpoint_auth_signing_alg_values_supported:ot(Y()).optional(),service_documentation:ka.optional(),revocation_endpoint:ka.optional(),revocation_endpoint_auth_methods_supported:ot(Y()).optional(),revocation_endpoint_auth_signing_alg_values_supported:ot(Y()).optional(),introspection_endpoint:Y().optional(),introspection_endpoint_auth_methods_supported:ot(Y()).optional(),introspection_endpoint_auth_signing_alg_values_supported:ot(Y()).optional(),code_challenge_methods_supported:ot(Y()).optional(),client_id_metadata_document_supported:uo().optional()}),X9e=Ui({issuer:Y(),authorization_endpoint:ka,token_endpoint:ka,userinfo_endpoint:ka.optional(),jwks_uri:ka,registration_endpoint:ka.optional(),scopes_supported:ot(Y()).optional(),response_types_supported:ot(Y()),response_modes_supported:ot(Y()).optional(),grant_types_supported:ot(Y()).optional(),acr_values_supported:ot(Y()).optional(),subject_types_supported:ot(Y()),id_token_signing_alg_values_supported:ot(Y()),id_token_encryption_alg_values_supported:ot(Y()).optional(),id_token_encryption_enc_values_supported:ot(Y()).optional(),userinfo_signing_alg_values_supported:ot(Y()).optional(),userinfo_encryption_alg_values_supported:ot(Y()).optional(),userinfo_encryption_enc_values_supported:ot(Y()).optional(),request_object_signing_alg_values_supported:ot(Y()).optional(),request_object_encryption_alg_values_supported:ot(Y()).optional(),request_object_encryption_enc_values_supported:ot(Y()).optional(),token_endpoint_auth_methods_supported:ot(Y()).optional(),token_endpoint_auth_signing_alg_values_supported:ot(Y()).optional(),display_values_supported:ot(Y()).optional(),claim_types_supported:ot(Y()).optional(),claims_supported:ot(Y()).optional(),service_documentation:Y().optional(),claims_locales_supported:ot(Y()).optional(),ui_locales_supported:ot(Y()).optional(),claims_parameter_supported:uo().optional(),request_parameter_supported:uo().optional(),request_uri_parameter_supported:uo().optional(),require_request_uri_registration:uo().optional(),op_policy_uri:ka.optional(),op_tos_uri:ka.optional(),client_id_metadata_document_supported:uo().optional()}),Vie=dt({...X9e.shape,...jj.pick({code_challenge_methods_supported:!0}).shape}),Jie=dt({access_token:Y(),id_token:Y().optional(),token_type:Y(),expires_in:ZP.number().optional(),scope:Y().optional(),refresh_token:Y().optional()}).strip(),Kie=dt({error:Y(),error_description:Y().optional(),error_uri:Y().optional()}),Uie=ka.optional().or($t("").transform(()=>{})),Y9e=dt({redirect_uris:ot(ka),token_endpoint_auth_method:Y().optional(),grant_types:ot(Y()).optional(),response_types:ot(Y()).optional(),client_name:Y().optional(),client_uri:ka.optional(),logo_uri:Uie,scope:Y().optional(),contacts:ot(Y()).optional(),tos_uri:Uie,policy_uri:Y().optional(),jwks_uri:ka.optional(),jwks:$7().optional(),software_id:Y().optional(),software_version:Y().optional(),software_statement:Y().optional()}).strip(),e5e=dt({client_id:Y(),client_secret:Y().optional(),client_id_issued_at:$n().optional(),client_secret_expires_at:$n().optional()}).strip(),Gie=Y9e.merge(e5e),d8t=dt({error:Y(),error_description:Y().optional()}).strip(),_8t=dt({token:Y(),token_type_hint:Y().optional()}).strip();function Hie(e){let t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function Zie({requestedResource:e,configuredResource:t}){let r=typeof e=="string"?new URL(e):new URL(e.href),n=typeof t=="string"?new URL(t):new URL(t.href);if(r.origin!==n.origin||r.pathname.length=400&&e.status<500&&t!=="/"}async function p5e(e,t,r,n){let o=new URL(e),i=n?.protocolVersion??J0,a;if(n?.metadataUrl)a=new URL(n.metadataUrl);else{let c=l5e(t,o.pathname);a=new URL(c,n?.metadataServerUrl??o),a.search=o.search}let s=await Qie(a,i,r);if(!n?.metadataUrl&&u5e(s,o.pathname)){let c=new URL(`/.well-known/${t}`,o);s=await Qie(c,i,r)}return s}function d5e(e){let t=typeof e=="string"?new URL(e):e,r=t.pathname!=="/",n=[];if(!r)return n.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),n.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),n;let o=t.pathname;return o.endsWith("/")&&(o=o.slice(0,-1)),n.push({url:new URL(`/.well-known/oauth-authorization-server${o}`,t.origin),type:"oauth"}),n.push({url:new URL(`/.well-known/openid-configuration${o}`,t.origin),type:"oidc"}),n.push({url:new URL(`${o}/.well-known/openid-configuration`,t.origin),type:"oidc"}),n}async function eae(e,{fetchFn:t=fetch,protocolVersion:r=J0}={}){let n={"MCP-Protocol-Version":r,Accept:"application/json"},o=d5e(e);for(let{url:i,type:a}of o){let s=await Vj(i,n,t);if(s){if(!s.ok){if(await s.body?.cancel(),s.status>=400&&s.status<500)continue;throw new Error(`HTTP ${s.status} trying to load ${a==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}return a==="oauth"?jj.parse(await s.json()):Vie.parse(await s.json())}}}async function _5e(e,t){let r,n;try{r=await Yie(e,{resourceMetadataUrl:t?.resourceMetadataUrl},t?.fetchFn),r.authorization_servers&&r.authorization_servers.length>0&&(n=r.authorization_servers[0])}catch{}n||(n=String(new URL("/",e)));let o=await eae(n,{fetchFn:t?.fetchFn});return{authorizationServerUrl:n,authorizationServerMetadata:o,resourceMetadata:r}}async function f5e(e,{metadata:t,clientInformation:r,redirectUrl:n,scope:o,state:i,resource:a}){let s;if(t){if(s=new URL(t.authorization_endpoint),!t.response_types_supported.includes(Bj))throw new Error(`Incompatible auth server: does not support response type ${Bj}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(qj))throw new Error(`Incompatible auth server: does not support code challenge method ${qj}`)}else s=new URL("/authorize",e);let c=await Mj(),p=c.code_verifier,d=c.code_challenge;return s.searchParams.set("response_type",Bj),s.searchParams.set("client_id",r.client_id),s.searchParams.set("code_challenge",d),s.searchParams.set("code_challenge_method",qj),s.searchParams.set("redirect_uri",String(n)),i&&s.searchParams.set("state",i),o&&s.searchParams.set("scope",o),o?.includes("offline_access")&&s.searchParams.append("prompt","consent"),a&&s.searchParams.set("resource",a.href),{authorizationUrl:s,codeVerifier:p}}function m5e(e,t,r){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(r)})}async function tae(e,{metadata:t,tokenRequestParams:r,clientInformation:n,addClientAuthentication:o,resource:i,fetchFn:a}){let s=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e),c=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(i&&r.set("resource",i.href),o)await o(c,r,s,t);else if(n){let d=t?.token_endpoint_auth_methods_supported??[],f=r5e(n,d);n5e(f,n,c,r)}let p=await(a??fetch)(s,{method:"POST",headers:c,body:r});if(!p.ok)throw await Xie(p);return Jie.parse(await p.json())}async function h5e(e,{metadata:t,clientInformation:r,refreshToken:n,resource:o,addClientAuthentication:i,fetchFn:a}){let s=new URLSearchParams({grant_type:"refresh_token",refresh_token:n}),c=await tae(e,{metadata:t,tokenRequestParams:s,clientInformation:r,addClientAuthentication:i,resource:o,fetchFn:a});return{refresh_token:n,...c}}async function y5e(e,t,{metadata:r,resource:n,authorizationCode:o,fetchFn:i}={}){let a=e.clientMetadata.scope,s;if(e.prepareTokenRequest&&(s=await e.prepareTokenRequest(a)),!s){if(!o)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");let p=await e.codeVerifier();s=m5e(o,p,e.redirectUrl)}let c=await e.clientInformation();return tae(t,{metadata:r,tokenRequestParams:s,clientInformation:c??void 0,addClientAuthentication:e.addClientAuthentication,resource:n,fetchFn:i})}async function g5e(e,{metadata:t,clientMetadata:r,fetchFn:n}){let o;if(t){if(!t.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");o=new URL(t.registration_endpoint)}else o=new URL("/register",e);let i=await(n??fetch)(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!i.ok)throw await Xie(i);return Gie.parse(await i.json())}var Jj=class extends Error{constructor(t,r,n){super(`SSE error: ${r}`),this.code=t,this.event=n}},b6=class{constructor(t,r){this._url=t,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=r?.eventSourceInit,this._requestInit=r?.requestInit,this._authProvider=r?.authProvider,this._fetch=r?.fetch,this._fetchWithInit=v6(r?.fetch,r?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new As("No auth provider");let t;try{t=await Dl(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(r){throw this.onerror?.(r),r}if(t!=="AUTHORIZED")throw new As;return await this._startOrAuth()}async _commonHeaders(){let t={};if(this._authProvider){let n=await this._authProvider.tokens();n&&(t.Authorization=`Bearer ${n.access_token}`)}this._protocolVersion&&(t["mcp-protocol-version"]=this._protocolVersion);let r=nv(this._requestInit?.headers);return new Headers({...t,...r})}_startOrAuth(){let t=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((r,n)=>{this._eventSource=new Ky(this._url.href,{...this._eventSourceInit,fetch:async(o,i)=>{let a=await this._commonHeaders();a.set("Accept","text/event-stream");let s=await t(o,{...i,headers:a});if(s.status===401&&s.headers.has("www-authenticate")){let{resourceMetadataUrl:c,scope:p}=ov(s);this._resourceMetadataUrl=c,this._scope=p}return s}}),this._abortController=new AbortController,this._eventSource.onerror=o=>{if(o.code===401&&this._authProvider){this._authThenStart().then(r,n);return}let i=new Jj(o.code,o.message,o);n(i),this.onerror?.(i)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",o=>{let i=o;try{if(this._endpoint=new URL(i.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(a){n(a),this.onerror?.(a),this.close();return}r()}),this._eventSource.onmessage=o=>{let i=o,a;try{a=om.parse(JSON.parse(i.data))}catch(s){this.onerror?.(s);return}this.onmessage?.(a)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(t){if(!this._authProvider)throw new As("No auth provider");if(await Dl(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new As("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(t){if(!this._endpoint)throw new Error("Not connected");try{let r=await this._commonHeaders();r.set("content-type","application/json");let n={...this._requestInit,method:"POST",headers:r,body:JSON.stringify(t),signal:this._abortController?.signal},o=await(this._fetch??fetch)(this._endpoint,n);if(!o.ok){let i=await o.text().catch(()=>null);if(o.status===401&&this._authProvider){let{resourceMetadataUrl:a,scope:s}=ov(o);if(this._resourceMetadataUrl=a,this._scope=s,await Dl(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new As;return this.send(t)}throw new Error(`Error POSTing to endpoint (HTTP ${o.status}): ${i}`)}await o.body?.cancel()}catch(r){throw this.onerror?.(r),r}}setProtocolVersion(t){this._protocolVersion=t}};var Jae=e0(zae(),1);import D6 from"node:process";import{PassThrough as K5e}from"node:stream";var E6=class{append(t){this._buffer=this._buffer?Buffer.concat([this._buffer,t]):t}readMessage(){if(!this._buffer)return null;let t=this._buffer.indexOf(` +`);if(t===-1)return null;let r=this._buffer.toString("utf8",0,t).replace(/\r$/,"");return this._buffer=this._buffer.subarray(t+1),J5e(r)}clear(){this._buffer=void 0}};function J5e(e){return om.parse(JSON.parse(e))}function Vae(e){return JSON.stringify(e)+` +`}var G5e=D6.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"];function H5e(){let e={};for(let t of G5e){let r=D6.env[t];r!==void 0&&(r.startsWith("()")||(e[t]=r))}return e}var T6=class{constructor(t){this._readBuffer=new E6,this._stderrStream=null,this._serverParams=t,(t.stderr==="pipe"||t.stderr==="overlapped")&&(this._stderrStream=new K5e)}async start(){if(this._process)throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((t,r)=>{this._process=(0,Jae.default)(this._serverParams.command,this._serverParams.args??[],{env:{...H5e(),...this._serverParams.env},stdio:["pipe","pipe",this._serverParams.stderr??"inherit"],shell:!1,windowsHide:D6.platform==="win32"&&Z5e(),cwd:this._serverParams.cwd}),this._process.on("error",n=>{r(n),this.onerror?.(n)}),this._process.on("spawn",()=>{t()}),this._process.on("close",n=>{this._process=void 0,this.onclose?.()}),this._process.stdin?.on("error",n=>{this.onerror?.(n)}),this._process.stdout?.on("data",n=>{this._readBuffer.append(n),this.processReadBuffer()}),this._process.stdout?.on("error",n=>{this.onerror?.(n)}),this._stderrStream&&this._process.stderr&&this._process.stderr.pipe(this._stderrStream)})}get stderr(){return this._stderrStream?this._stderrStream:this._process?.stderr??null}get pid(){return this._process?.pid??null}processReadBuffer(){for(;;)try{let t=this._readBuffer.readMessage();if(t===null)break;this.onmessage?.(t)}catch(t){this.onerror?.(t)}}async close(){if(this._process){let t=this._process;this._process=void 0;let r=new Promise(n=>{t.once("close",()=>{n()})});try{t.stdin?.end()}catch{}if(await Promise.race([r,new Promise(n=>setTimeout(n,2e3).unref())]),t.exitCode===null){try{t.kill("SIGTERM")}catch{}await Promise.race([r,new Promise(n=>setTimeout(n,2e3).unref())])}if(t.exitCode===null)try{t.kill("SIGKILL")}catch{}}this._readBuffer.clear()}send(t){return new Promise(r=>{if(!this._process?.stdin)throw new Error("Not connected");let n=Vae(t);this._process.stdin.write(n)?r():this._process.stdin.once("drain",r)})}};function Z5e(){return"type"in D6}var A6=class extends TransformStream{constructor({onError:t,onRetry:r,onComment:n}={}){let o;super({start(i){o=h6({onEvent:a=>{i.enqueue(a)},onError(a){t==="terminate"?i.error(a):typeof t=="function"&&t(a)},onRetry:r,onComment:n})},transform(i){o.feed(i)}})}};var W5e={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2},cm=class extends Error{constructor(t,r){super(`Streamable HTTP error: ${r}`),this.code=t}},w6=class{constructor(t,r){this._hasCompletedAuthFlow=!1,this._url=t,this._resourceMetadataUrl=void 0,this._scope=void 0,this._requestInit=r?.requestInit,this._authProvider=r?.authProvider,this._fetch=r?.fetch,this._fetchWithInit=v6(r?.fetch,r?.requestInit),this._sessionId=r?.sessionId,this._reconnectionOptions=r?.reconnectionOptions??W5e}async _authThenStart(){if(!this._authProvider)throw new As("No auth provider");let t;try{t=await Dl(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(r){throw this.onerror?.(r),r}if(t!=="AUTHORIZED")throw new As;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){let t={};if(this._authProvider){let n=await this._authProvider.tokens();n&&(t.Authorization=`Bearer ${n.access_token}`)}this._sessionId&&(t["mcp-session-id"]=this._sessionId),this._protocolVersion&&(t["mcp-protocol-version"]=this._protocolVersion);let r=nv(this._requestInit?.headers);return new Headers({...t,...r})}async _startOrAuthSse(t){let{resumptionToken:r}=t;try{let n=await this._commonHeaders();n.set("Accept","text/event-stream"),r&&n.set("last-event-id",r);let o=await(this._fetch??fetch)(this._url,{method:"GET",headers:n,signal:this._abortController?.signal});if(!o.ok){if(await o.body?.cancel(),o.status===401&&this._authProvider)return await this._authThenStart();if(o.status===405)return;throw new cm(o.status,`Failed to open SSE stream: ${o.statusText}`)}this._handleSseStream(o.body,t,!0)}catch(n){throw this.onerror?.(n),n}}_getNextReconnectionDelay(t){if(this._serverRetryMs!==void 0)return this._serverRetryMs;let r=this._reconnectionOptions.initialReconnectionDelay,n=this._reconnectionOptions.reconnectionDelayGrowFactor,o=this._reconnectionOptions.maxReconnectionDelay;return Math.min(r*Math.pow(n,t),o)}_scheduleReconnection(t,r=0){let n=this._reconnectionOptions.maxRetries;if(r>=n){this.onerror?.(new Error(`Maximum reconnection attempts (${n}) exceeded.`));return}let o=this._getNextReconnectionDelay(r);this._reconnectionTimeout=setTimeout(()=>{this._startOrAuthSse(t).catch(i=>{this.onerror?.(new Error(`Failed to reconnect SSE stream: ${i instanceof Error?i.message:String(i)}`)),this._scheduleReconnection(t,r+1)})},o)}_handleSseStream(t,r,n){if(!t)return;let{onresumptiontoken:o,replayMessageId:i}=r,a,s=!1,c=!1;(async()=>{try{let d=t.pipeThrough(new TextDecoderStream).pipeThrough(new A6({onRetry:y=>{this._serverRetryMs=y}})).getReader();for(;;){let{value:y,done:g}=await d.read();if(g)break;if(y.id&&(a=y.id,s=!0,o?.(y.id)),!!y.data&&(!y.event||y.event==="message"))try{let S=om.parse(JSON.parse(y.data));Uy(S)&&(c=!0,i!==void 0&&(S.id=i)),this.onmessage?.(S)}catch(S){this.onerror?.(S)}}(n||s)&&!c&&this._abortController&&!this._abortController.signal.aborted&&this._scheduleReconnection({resumptionToken:a,onresumptiontoken:o,replayMessageId:i},0)}catch(d){if(this.onerror?.(new Error(`SSE stream disconnected: ${d}`)),(n||s)&&!c&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:a,onresumptiontoken:o,replayMessageId:i},0)}catch(y){this.onerror?.(new Error(`Failed to reconnect: ${y instanceof Error?y.message:String(y)}`))}}})()}async start(){if(this._abortController)throw new Error("StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.");this._abortController=new AbortController}async finishAuth(t){if(!this._authProvider)throw new As("No auth provider");if(await Dl(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new As("Failed to authorize")}async close(){this._reconnectionTimeout&&(clearTimeout(this._reconnectionTimeout),this._reconnectionTimeout=void 0),this._abortController?.abort(),this.onclose?.()}async send(t,r){try{let{resumptionToken:n,onresumptiontoken:o}=r||{};if(n){this._startOrAuthSse({resumptionToken:n,replayMessageId:tT(t)?t.id:void 0}).catch(m=>this.onerror?.(m));return}let i=await this._commonHeaders();i.set("content-type","application/json"),i.set("accept","application/json, text/event-stream");let a={...this._requestInit,method:"POST",headers:i,body:JSON.stringify(t),signal:this._abortController?.signal},s=await(this._fetch??fetch)(this._url,a),c=s.headers.get("mcp-session-id");if(c&&(this._sessionId=c),!s.ok){let m=await s.text().catch(()=>null);if(s.status===401&&this._authProvider){if(this._hasCompletedAuthFlow)throw new cm(401,"Server returned 401 after successful authentication");let{resourceMetadataUrl:y,scope:g}=ov(s);if(this._resourceMetadataUrl=y,this._scope=g,await Dl(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new As;return this._hasCompletedAuthFlow=!0,this.send(t)}if(s.status===403&&this._authProvider){let{resourceMetadataUrl:y,scope:g,error:S}=ov(s);if(S==="insufficient_scope"){let x=s.headers.get("WWW-Authenticate");if(this._lastUpscopingHeader===x)throw new cm(403,"Server returned 403 after trying upscoping");if(g&&(this._scope=g),y&&(this._resourceMetadataUrl=y),this._lastUpscopingHeader=x??void 0,await Dl(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetch})!=="AUTHORIZED")throw new As;return this.send(t)}}throw new cm(s.status,`Error POSTing to endpoint: ${m}`)}if(this._hasCompletedAuthFlow=!1,this._lastUpscopingHeader=void 0,s.status===202){await s.body?.cancel(),sie(t)&&this._startOrAuthSse({resumptionToken:void 0}).catch(m=>this.onerror?.(m));return}let d=(Array.isArray(t)?t:[t]).filter(m=>"method"in m&&"id"in m&&m.id!==void 0).length>0,f=s.headers.get("content-type");if(d)if(f?.includes("text/event-stream"))this._handleSseStream(s.body,{onresumptiontoken:o},!1);else if(f?.includes("application/json")){let m=await s.json(),y=Array.isArray(m)?m.map(g=>om.parse(g)):[om.parse(m)];for(let g of y)this.onmessage?.(g)}else throw await s.body?.cancel(),new cm(-1,`Unexpected content type: ${f}`);else await s.body?.cancel()}catch(n){throw this.onerror?.(n),n}}get sessionId(){return this._sessionId}async terminateSession(){if(this._sessionId)try{let t=await this._commonHeaders(),r={...this._requestInit,method:"DELETE",headers:t,signal:this._abortController?.signal},n=await(this._fetch??fetch)(this._url,r);if(await n.body?.cancel(),!n.ok&&n.status!==405)throw new cm(n.status,`Failed to terminate session: ${n.statusText}`);this._sessionId=void 0}catch(t){throw this.onerror?.(t),t}}setProtocolVersion(t){this._protocolVersion=t}get protocolVersion(){return this._protocolVersion}async resumeStream(t,r){await this._startOrAuthSse({resumptionToken:t,onresumptiontoken:r?.onresumptiontoken})}};import*as Kae from"effect/Data";import*as ns from"effect/Effect";var I6=class extends Kae.TaggedError("McpConnectionError"){},Qy=e=>e.transport==="stdio"||typeof e.command=="string"&&e.command.trim().length>0,k6=e=>new I6(e),Q5e=e=>ns.try({try:()=>{if(!e.endpoint)throw new Error("MCP endpoint is required for HTTP/SSE transports");let t=new URL(e.endpoint);for(let[r,n]of Object.entries(e.queryParams))t.searchParams.set(r,n);return t},catch:t=>k6({transport:e.transport,message:"Failed building MCP endpoint URL",cause:t})}),X5e=(e,t,r)=>{let n=new Headers(t?.headers??{});for(let[o,i]of Object.entries(r))n.set(o,i);return fetch(e,{...t,headers:n})},Y5e=e=>({client:e,close:()=>e.close()}),eLe=e=>ns.tryPromise({try:()=>e.close(),catch:t=>k6({transport:"auto",message:"Failed closing MCP client",cause:t})}).pipe(ns.ignore),tB=e=>ns.gen(function*(){let t=e.createClient(),r=e.createTransport();return yield*ns.tryPromise({try:()=>t.connect(r),catch:n=>k6({transport:e.transport,message:`Failed connecting to MCP server via ${e.transport}: ${n instanceof Error?n.message:String(n)}`,cause:n})}).pipe(ns.as(Y5e(t)),ns.onError(()=>eLe(t)))}),lm=e=>{let t=e.headers??{},r=Qy(e)?"stdio":e.transport??"auto",n=Object.keys(t).length>0?{headers:t}:void 0,o=()=>new f6({name:e.clientName??"executor-codemode-mcp",version:e.clientVersion??"0.1.0"},{capabilities:{elicitation:{form:{},url:{}}}});return ns.gen(function*(){if(r==="stdio"){let c=e.command?.trim();return c?yield*tB({createClient:o,transport:"stdio",createTransport:()=>new T6({command:c,args:e.args?[...e.args]:void 0,env:e.env,cwd:e.cwd?.trim().length?e.cwd.trim():void 0})}):yield*k6({transport:"stdio",message:"MCP stdio transport requires a command",cause:new Error("Missing MCP stdio command")})}let i=yield*Q5e({endpoint:e.endpoint,queryParams:e.queryParams??{},transport:r}),a=tB({createClient:o,transport:"streamable-http",createTransport:()=>new w6(i,{requestInit:n,authProvider:e.authProvider})});if(r==="streamable-http")return yield*a;let s=tB({createClient:o,transport:"sse",createTransport:()=>new b6(i,{authProvider:e.authProvider,requestInit:n,eventSourceInit:n?{fetch:(c,p)=>X5e(c,p,t)}:void 0})});return r==="sse"?yield*s:yield*a.pipe(ns.catchAll(()=>s))})};var Ca=1;import{Schema as po}from"effect";var Ap=po.String.pipe(po.brand("DocumentId")),wp=po.String.pipe(po.brand("ResourceId")),Tu=po.String.pipe(po.brand("ScopeId")),Oc=po.String.pipe(po.brand("CapabilityId")),Qs=po.String.pipe(po.brand("ExecutableId")),um=po.String.pipe(po.brand("ResponseSetId")),m_=po.String.pipe(po.brand("DiagnosticId")),fn=po.String.pipe(po.brand("ShapeSymbolId")),pm=po.String.pipe(po.brand("ParameterSymbolId")),Xy=po.String.pipe(po.brand("RequestBodySymbolId")),Nc=po.String.pipe(po.brand("ResponseSymbolId")),dm=po.String.pipe(po.brand("HeaderSymbolId")),Ip=po.String.pipe(po.brand("ExampleSymbolId")),_m=po.String.pipe(po.brand("SecuritySchemeSymbolId")),Gae=po.Union(fn,pm,Xy,Nc,dm,Ip,_m);import*as Zae from"effect/Effect";var Hae=5e3,Ci=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Du=e=>typeof e=="string"&&e.length>0?e:null,kp=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},Cp=e=>new URL(e).hostname,os=e=>{let t=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"");return t.length>0?t:"source"},Wae=e=>{let t=e.trim();if(t.length===0)throw new Error("Source URL is required");let r=new URL(t);if(r.protocol!=="http:"&&r.protocol!=="https:")throw new Error("Source URL must use http or https");return r.toString()},sv=(e,t)=>({...t,suggestedKind:e,supported:!1}),Au=(e,t)=>({...t,suggestedKind:e,supported:!0}),Yy=e=>({suggestedKind:"unknown",confidence:"low",supported:!1,reason:e,headerName:null,prefix:null,parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}),Pp=(e,t="high")=>Au("none",{confidence:t,reason:e,headerName:null,prefix:null,parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}),Qae=(e,t)=>{let r=e["www-authenticate"]??e["WWW-Authenticate"];if(!r)return Yy(t);let n=r.toLowerCase();return n.includes("bearer")?Au("bearer",{confidence:n.includes("realm=")?"medium":"low",reason:`Derived from HTTP challenge: ${r}`,headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}):n.includes("basic")?sv("basic",{confidence:"medium",reason:`Derived from HTTP challenge: ${r}`,headerName:"Authorization",prefix:"Basic ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}):Yy(t)},Xae=e=>e==null||e.kind==="none"?{}:e.kind==="headers"?{...e.headers}:e.kind==="basic"?{Authorization:`Basic ${Buffer.from(`${e.username}:${e.password}`).toString("base64")}`}:{[kp(e.headerName)??"Authorization"]:`${e.prefix??"Bearer "}${e.token}`},tLe=e=>{let t={};return e.headers.forEach((r,n)=>{t[n]=r}),t},cv=e=>Zae.tryPromise({try:async()=>{let t;try{t=await fetch(e.url,{method:e.method,headers:e.headers,body:e.body,signal:AbortSignal.timeout(Hae)})}catch(r){throw r instanceof Error&&(r.name==="AbortError"||r.name==="TimeoutError")?new Error(`Source discovery timed out after ${Hae}ms`):r}return{status:t.status,headers:tLe(t),text:await t.text()}},catch:t=>t instanceof Error?t:new Error(String(t))}),fm=e=>/graphql/i.test(new URL(e).pathname),Yae=e=>{try{return JSON.parse(e)}catch{return null}},ese=e=>{let t=e,r=Cp(t);return{detectedKind:"unknown",confidence:"low",endpoint:t,specUrl:null,name:r,namespace:os(r),transport:null,authInference:Yy("Could not infer source kind or auth requirements from the provided URL"),toolCount:null,warnings:["Could not confirm whether the URL is Google Discovery, OpenAPI, GraphQL, or MCP."]}};var IT=e=>e===null||typeof e!="object"?JSON.stringify(e):Array.isArray(e)?`[${e.map(r=>IT(r)).join(",")}]`:`{${Object.entries(e).sort(([r],[n])=>r.localeCompare(n)).map(([r,n])=>`${JSON.stringify(r)}:${IT(n)}`).join(",")}}`,mn=e=>Dc(IT(e)).slice(0,16),Vr=e=>e,Xs=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},rLe=(...e)=>{let t={};for(let r of e){let n=Xs(Xs(r).$defs);for(let[o,i]of Object.entries(n))t[o]=i}return Object.keys(t).length>0?t:void 0},lv=(e,...t)=>{let r=rLe(e,...t);return r?{...e,$defs:r}:e},rB=e=>{let t=Xs(e);return t.type==="object"||t.properties!==void 0},uv=e=>{switch(e.kind){case"openapi":return"openapi";case"graphql":return"graphql-schema";case"google_discovery":return"google-discovery";case"mcp":return"mcp";default:return"custom"}},h_=(e,t)=>{let r=e.namespace??os(e.name);return(r?`${r}.${t}`:t).split(".").filter(o=>o.length>0)},un=(e,t)=>[{relation:"declared",documentId:e,pointer:t}],y_=e=>({approval:{mayRequire:e!=="read",reasons:e==="delete"?["delete"]:e==="write"||e==="action"?["write"]:[]},elicitation:{mayRequest:!1},resume:{supported:!1}}),ws=e=>({sourceKind:uv(e.source),adapterKey:e.adapterKey,importerVersion:"ir.v1.snapshot_builder",importedAt:new Date().toISOString(),sourceConfigHash:e.source.sourceHash??mn({endpoint:e.source.endpoint,binding:e.source.binding,auth:e.source.auth?.kind??null})}),wn=e=>{let t=e.summary??void 0,r=e.description??void 0,n=e.externalDocsUrl??void 0;if(!(!t&&!r&&!n))return{...t?{summary:t}:{},...r?{description:r}:{},...n?{externalDocsUrl:n}:{}}},mm=e=>{let t=Ip.make(`example_${mn({pointer:e.pointer,value:e.value})}`);return Vr(e.catalog.symbols)[t]={id:t,kind:"example",exampleKind:"value",...e.name?{name:e.name}:{},...wn({summary:e.summary??null,description:e.description??null})?{docs:wn({summary:e.summary??null,description:e.description??null})}:{},value:e.value,synthetic:!1,provenance:un(e.documentId,e.pointer)},t},wT=(e,t)=>{let r=Xs(e),n=Xs(r.properties);if(n[t]!==void 0)return n[t]},kT=(e,t,r)=>{let n=wT(e,r);if(n!==void 0)return n;let i=wT(e,t==="header"?"headers":t==="cookie"?"cookies":t);return i===void 0?void 0:wT(i,r)},pv=e=>wT(e,"body")??wT(e,"input"),CT=e=>{let t=e&&e.length>0?[...e]:["application/json"],r=[...t.filter(n=>n==="application/json"),...t.filter(n=>n!=="application/json"&&n.toLowerCase().includes("+json")),...t.filter(n=>n!=="application/json"&&!n.toLowerCase().includes("+json")&&n.toLowerCase().includes("json")),...t];return[...new Set(r)]},g_=e=>{let t=um.make(`response_set_${mn({responseId:e.responseId,traits:e.traits})}`);return Vr(e.catalog.responseSets)[t]={id:t,variants:[{match:{kind:"range",value:"2XX"},responseId:e.responseId,...e.traits&&e.traits.length>0?{traits:e.traits}:{}}],synthetic:!1,provenance:e.provenance},t},nB=e=>{let t=um.make(`response_set_${mn({variants:e.variants.map(r=>({match:r.match,responseId:r.responseId,traits:r.traits}))})}`);return Vr(e.catalog.responseSets)[t]={id:t,variants:e.variants,synthetic:!1,provenance:e.provenance},t},oB=e=>{let t=e.trim().toUpperCase();return/^\d{3}$/.test(t)?{kind:"exact",status:Number(t)}:/^[1-5]XX$/.test(t)?{kind:"range",value:t}:{kind:"default"}};var dv=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{},wu=e=>typeof e=="string"&&e.trim().length>0?e:null,tse=e=>typeof e=="boolean"?e:null,C6=e=>typeof e=="number"&&Number.isFinite(e)?e:null,PT=e=>Array.isArray(e)?e:[],rse=e=>PT(e).flatMap(t=>{let r=wu(t);return r===null?[]:[r]}),nLe=e=>e.replace(/~1/g,"/").replace(/~0/g,"~"),oLe=e=>{if(!e.startsWith("#/"))return!1;let t=e.slice(2).split("/").map(nLe);for(let r=0;r{let r=m_.make(`diag_${mn(t)}`);return Vr(e.diagnostics)[r]={id:r,...t},r},aLe=e=>({sourceKind:uv(e.source),kind:e.kind,pointer:e.pointer,encoding:"json",...e.summary?{summary:e.summary}:{},value:e.value}),nse=e=>{let t=new Map,r=new Map,n=new Map,o=[],i=new Set,a=(c,p)=>{if(p==="#"||p.length===0)return c;let d=p.replace(/^#\//,"").split("/").map(m=>m.replace(/~1/g,"/").replace(/~0/g,"~")),f=c;for(let m of d){if(Array.isArray(f)){let y=Number(m);f=Number.isInteger(y)?f[y]:void 0;continue}f=dv(f)[m]}return f},s=(c,p,d)=>{let f=`${e.resourceId}:${p}`,m=t.get(f);if(m){let g=o.indexOf(m);if(g!==-1)for(let S of o.slice(g))i.add(S);return m}let y=fn.make(`shape_${mn({resourceId:e.resourceId,key:p})}`);t.set(f,y),o.push(y);try{let g=dv(c),S=wu(g.title)??void 0,x=wn({description:wu(g.description)}),A=tse(g.deprecated)??void 0,I=S!==void 0||oLe(p),E=(xe,Rt={})=>{let Vt=IT(xe),Yt=i.has(y),vt=Yt||I?void 0:r.get(Vt);if(vt){let Fr=e.catalog.symbols[vt];return Fr?.kind==="shape"&&(Fr.title===void 0&&S&&(Vr(e.catalog.symbols)[vt]={...Fr,title:S}),Fr.docs===void 0&&x&&(Vr(e.catalog.symbols)[vt]={...Vr(e.catalog.symbols)[vt],docs:x}),Fr.deprecated===void 0&&A!==void 0&&(Vr(e.catalog.symbols)[vt]={...Vr(e.catalog.symbols)[vt],deprecated:A})),n.set(y,vt),t.set(f,vt),vt}return Vr(e.catalog.symbols)[y]={id:y,kind:"shape",resourceId:e.resourceId,...S?{title:S}:{},...x?{docs:x}:{},...A!==void 0?{deprecated:A}:{},node:xe,synthetic:!1,provenance:un(e.documentId,p),...Rt.diagnosticIds&&Rt.diagnosticIds.length>0?{diagnosticIds:Rt.diagnosticIds}:{},...Rt.native&&Rt.native.length>0?{native:Rt.native}:{}},!Yt&&!I&&r.set(Vt,y),y};if(typeof c=="boolean")return E({type:"unknown",reason:c?"schema_true":"schema_false"});let C=wu(g.$ref);if(C!==null){let xe=C.startsWith("#")?a(d??c,C):void 0;if(xe===void 0){let Vt=iLe(e.catalog,{level:"warning",code:"unresolved_ref",message:`Unresolved JSON schema ref ${C}`,provenance:un(e.documentId,p),relatedSymbolIds:[y]});return E({type:"unknown",reason:`unresolved_ref:${C}`},{diagnosticIds:[Vt]}),t.get(f)}let Rt=s(xe,C,d??c);return E({type:"ref",target:Rt})}let F=PT(g.enum);if(F.length===1)return E({type:"const",value:F[0]});if(F.length>1)return E({type:"enum",values:F});if("const"in g)return E({type:"const",value:g.const});let O=PT(g.anyOf);if(O.length>0)return E({type:"anyOf",items:O.map((xe,Rt)=>s(xe,`${p}/anyOf/${Rt}`,d??c))});let $=PT(g.allOf);if($.length>0)return E({type:"allOf",items:$.map((xe,Rt)=>s(xe,`${p}/allOf/${Rt}`,d??c))});let N=PT(g.oneOf);if(N.length>0)return E({type:"oneOf",items:N.map((xe,Rt)=>s(xe,`${p}/oneOf/${Rt}`,d??c))});if("if"in g||"then"in g||"else"in g)return E({type:"conditional",ifShapeId:s(g.if??{},`${p}/if`,d??c),thenShapeId:s(g.then??{},`${p}/then`,d??c),...g.else!==void 0?{elseShapeId:s(g.else,`${p}/else`,d??c)}:{}});if("not"in g)return E({type:"not",itemShapeId:s(g.not,`${p}/not`,d??c)});let U=g.type,ge=Array.isArray(U)?U.flatMap(xe=>{let Rt=wu(xe);return Rt===null?[]:[Rt]}):[],Te=tse(g.nullable)===!0||ge.includes("null"),ke=Array.isArray(U)?ge.find(xe=>xe!=="null")??null:wu(U),Ve=xe=>(E({type:"nullable",itemShapeId:xe}),y),me={};for(let xe of["format","minLength","maxLength","pattern","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","default","examples"])g[xe]!==void 0&&(me[xe]=g[xe]);if(ke==="object"||"properties"in g||"additionalProperties"in g||"patternProperties"in g){let xe=Object.fromEntries(Object.entries(dv(g.properties)).map(([Fr,le])=>[Fr,{shapeId:s(le,`${p}/properties/${Fr}`,d??c),...wn({description:wu(dv(le).description)})?{docs:wn({description:wu(dv(le).description)})}:{}}])),Rt=Object.fromEntries(Object.entries(dv(g.patternProperties)).map(([Fr,le])=>[Fr,s(le,`${p}/patternProperties/${Fr}`,d??c)])),Vt=g.additionalProperties,Yt=typeof Vt=="boolean"?Vt:Vt!==void 0?s(Vt,`${p}/additionalProperties`,d??c):void 0,vt={type:"object",fields:xe,...rse(g.required).length>0?{required:rse(g.required)}:{},...Yt!==void 0?{additionalProperties:Yt}:{},...Object.keys(Rt).length>0?{patternProperties:Rt}:{}};if(Te){let Fr=s({...g,nullable:!1,type:"object"},`${p}:nonnull`,d??c);return Ve(Fr)}return E(vt)}if(ke==="array"||"items"in g||"prefixItems"in g){if(Array.isArray(g.prefixItems)&&g.prefixItems.length>0){let Vt={type:"tuple",itemShapeIds:g.prefixItems.map((Yt,vt)=>s(Yt,`${p}/prefixItems/${vt}`,d??c)),...g.items!==void 0?{additionalItems:typeof g.items=="boolean"?g.items:s(g.items,`${p}/items`,d??c)}:{}};if(Te){let Yt=s({...g,nullable:!1,type:"array"},`${p}:nonnull`,d??c);return Ve(Yt)}return E(Vt)}let xe=g.items??{},Rt={type:"array",itemShapeId:s(xe,`${p}/items`,d??c),...C6(g.minItems)!==null?{minItems:C6(g.minItems)}:{},...C6(g.maxItems)!==null?{maxItems:C6(g.maxItems)}:{}};if(Te){let Vt=s({...g,nullable:!1,type:"array"},`${p}:nonnull`,d??c);return Ve(Vt)}return E(Rt)}if(ke==="string"||ke==="number"||ke==="integer"||ke==="boolean"||ke==="null"){let xe=ke==="null"?"null":ke==="integer"?"integer":ke==="number"?"number":ke==="boolean"?"boolean":wu(g.format)==="binary"?"bytes":"string",Rt={type:"scalar",scalar:xe,...wu(g.format)?{format:wu(g.format)}:{},...Object.keys(me).length>0?{constraints:me}:{}};if(Te&&xe!=="null"){let Vt=s({...g,nullable:!1,type:ke},`${p}:nonnull`,d??c);return Ve(Vt)}return E(Rt)}return E({type:"unknown",reason:`unsupported_schema:${p}`},{native:[aLe({source:e.source,kind:"json_schema",pointer:p,value:c,summary:"Unsupported JSON schema preserved natively"})]})}finally{if(o.pop()!==y)throw new Error(`JSON schema importer stack mismatch for ${y}`)}};return{importSchema:(c,p,d)=>s(c,p,d??c),finalize:()=>{let c=p=>{if(typeof p!="string"&&!(!p||typeof p!="object")){if(Array.isArray(p)){for(let d=0;dTu.make(`scope_service_${mn({sourceId:e.id})}`),ose=(e,t)=>Ap.make(`doc_${mn({sourceId:e.id,key:t})}`),cLe=e=>wp.make(`res_${mn({sourceId:e.id})}`),lLe=e=>({sourceKind:uv(e.source),kind:e.kind,pointer:e.pointer,encoding:"json",...e.summary?{summary:e.summary}:{},value:e.value}),uLe=()=>({version:"ir.v1.fragment",documents:{},resources:{},scopes:{},symbols:{},capabilities:{},executables:{},responseSets:{},diagnostics:{}}),pLe=e=>({version:"ir.v1.fragment",...Object.keys(e.documents).length>0?{documents:e.documents}:{},...Object.keys(e.resources).length>0?{resources:e.resources}:{},...Object.keys(e.scopes).length>0?{scopes:e.scopes}:{},...Object.keys(e.symbols).length>0?{symbols:e.symbols}:{},...Object.keys(e.capabilities).length>0?{capabilities:e.capabilities}:{},...Object.keys(e.executables).length>0?{executables:e.executables}:{},...Object.keys(e.responseSets).length>0?{responseSets:e.responseSets}:{},...Object.keys(e.diagnostics).length>0?{diagnostics:e.diagnostics}:{}}),dLe=e=>{let t=sLe(e.source);return Vr(e.catalog.scopes)[t]={id:t,kind:"service",name:e.source.name,namespace:e.source.namespace??os(e.source.name),docs:wn({summary:e.source.name}),...e.defaults?{defaults:e.defaults}:{},synthetic:!1,provenance:un(e.documentId,"#/service")},t},S_=e=>{let t=uLe(),r=e.documents.length>0?e.documents:[{documentKind:"synthetic",documentKey:e.source.endpoint,fetchedAt:Date.now(),contentText:"{}"}],n=r[0],o=n.documentKey??e.source.endpoint??e.source.id,i=ose(e.source,`${n.documentKind}:${n.documentKey}`),a=cLe(e.source);for(let p of r){let d=ose(e.source,`${p.documentKind}:${p.documentKey}`);Vr(t.documents)[d]={id:d,kind:uv(e.source),title:e.source.name,fetchedAt:new Date(p.fetchedAt??Date.now()).toISOString(),rawRef:p.documentKey,entryUri:p.documentKey.startsWith("http")?p.documentKey:void 0,native:[lLe({source:e.source,kind:"source_document",pointer:`#/${p.documentKind}`,value:p.contentText,summary:p.documentKind})]}}Vr(t.resources)[a]={id:a,documentId:i,canonicalUri:o,baseUri:o,...e.resourceDialectUri?{dialectUri:e.resourceDialectUri}:{},anchors:{},dynamicAnchors:{},synthetic:!1,provenance:un(i,"#")};let s=dLe({catalog:t,source:e.source,documentId:i,defaults:e.serviceScopeDefaults}),c=nse({catalog:t,source:e.source,resourceId:a,documentId:i});return e.registerOperations({catalog:t,documentId:i,serviceScopeId:s,importer:c}),c.finalize(),pLe(t)};import*as cB from"effect/ParseResult";import{Schema as lB}from"effect";import{Schema as w}from"effect";var iB=w.Literal("openapi","graphql-schema","google-discovery","mcp","custom"),_Le=w.Literal("service","document","resource","pathItem","operation","folder"),fLe=w.Literal("read","write","delete","action","subscribe"),mLe=w.Literal("path","query","header","cookie"),hLe=w.Literal("success","redirect","stream","download","upload","longRunning"),yLe=w.Literal("oauth2","http","apiKey","basic","bearer","custom"),gLe=w.Literal("1XX","2XX","3XX","4XX","5XX"),SLe=w.Literal("cursor","offset","token","unknown"),vLe=w.Literal("info","warning","error"),bLe=w.Literal("external_ref_bundled","relative_ref_rebased","schema_hoisted","selection_shape_synthesized","opaque_hook_imported","discriminator_lost","multi_response_union_synthesized","unsupported_link_preserved_native","unsupported_callback_preserved_native","unresolved_ref","merge_conflict_preserved_first","projection_call_shape_synthesized","projection_result_shape_synthesized","projection_collision_grouped_fields","synthetic_resource_context_created","selection_shape_missing"),xLe=w.Literal("json","yaml","graphql","text","unknown"),ELe=w.Literal("declared","hoisted","derived","merged","projected"),Op=w.Struct({summary:w.optional(w.String),description:w.optional(w.String),externalDocsUrl:w.optional(w.String)}),ase=w.Struct({relation:ELe,documentId:Ap,resourceId:w.optional(wp),pointer:w.optional(w.String),line:w.optional(w.Number),column:w.optional(w.Number)}),sse=w.Struct({sourceKind:iB,kind:w.String,pointer:w.optional(w.String),encoding:w.optional(xLe),summary:w.optional(w.String),value:w.optional(w.Unknown)}),Al=w.Struct({synthetic:w.Boolean,provenance:w.Array(ase),diagnosticIds:w.optional(w.Array(m_)),native:w.optional(w.Array(sse))}),TLe=w.Struct({sourceKind:iB,adapterKey:w.String,importerVersion:w.String,importedAt:w.String,sourceConfigHash:w.String}),cse=w.Struct({id:Ap,kind:iB,title:w.optional(w.String),versionHint:w.optional(w.String),fetchedAt:w.String,rawRef:w.String,entryUri:w.optional(w.String),native:w.optional(w.Array(sse))}),lse=w.Struct({shapeId:fn,docs:w.optional(Op),deprecated:w.optional(w.Boolean),exampleIds:w.optional(w.Array(Ip))}),DLe=w.Struct({propertyName:w.String,mapping:w.optional(w.Record({key:w.String,value:fn}))}),ALe=w.Struct({type:w.Literal("scalar"),scalar:w.Literal("string","number","integer","boolean","null","bytes"),format:w.optional(w.String),constraints:w.optional(w.Record({key:w.String,value:w.Unknown}))}),wLe=w.Struct({type:w.Literal("unknown"),reason:w.optional(w.String)}),ILe=w.Struct({type:w.Literal("const"),value:w.Unknown}),kLe=w.Struct({type:w.Literal("enum"),values:w.Array(w.Unknown)}),CLe=w.Struct({type:w.Literal("object"),fields:w.Record({key:w.String,value:lse}),required:w.optional(w.Array(w.String)),additionalProperties:w.optional(w.Union(w.Boolean,fn)),patternProperties:w.optional(w.Record({key:w.String,value:fn}))}),PLe=w.Struct({type:w.Literal("array"),itemShapeId:fn,minItems:w.optional(w.Number),maxItems:w.optional(w.Number)}),OLe=w.Struct({type:w.Literal("tuple"),itemShapeIds:w.Array(fn),additionalItems:w.optional(w.Union(w.Boolean,fn))}),NLe=w.Struct({type:w.Literal("map"),valueShapeId:fn}),FLe=w.Struct({type:w.Literal("allOf"),items:w.Array(fn)}),RLe=w.Struct({type:w.Literal("anyOf"),items:w.Array(fn)}),LLe=w.Struct({type:w.Literal("oneOf"),items:w.Array(fn),discriminator:w.optional(DLe)}),$Le=w.Struct({type:w.Literal("nullable"),itemShapeId:fn}),MLe=w.Struct({type:w.Literal("ref"),target:fn}),jLe=w.Struct({type:w.Literal("not"),itemShapeId:fn}),BLe=w.Struct({type:w.Literal("conditional"),ifShapeId:fn,thenShapeId:w.optional(fn),elseShapeId:w.optional(fn)}),qLe=w.Struct({type:w.Literal("graphqlInterface"),fields:w.Record({key:w.String,value:lse}),possibleTypeIds:w.Array(fn)}),ULe=w.Struct({type:w.Literal("graphqlUnion"),memberTypeIds:w.Array(fn)}),zLe=w.Union(wLe,ALe,ILe,kLe,CLe,PLe,OLe,NLe,FLe,RLe,LLe,$Le,MLe,jLe,BLe,qLe,ULe),ise=w.Struct({shapeId:fn,pointer:w.optional(w.String)}),use=w.extend(w.Struct({id:wp,documentId:Ap,canonicalUri:w.String,baseUri:w.String,dialectUri:w.optional(w.String),rootShapeId:w.optional(fn),anchors:w.Record({key:w.String,value:ise}),dynamicAnchors:w.Record({key:w.String,value:ise})}),Al),VLe=w.Union(w.Struct({location:w.Literal("header","query","cookie"),name:w.String}),w.Struct({location:w.Literal("body"),path:w.String})),JLe=w.Struct({authorizationUrl:w.optional(w.String),tokenUrl:w.optional(w.String),refreshUrl:w.optional(w.String),scopes:w.optional(w.Record({key:w.String,value:w.String}))}),KLe=w.Struct({in:w.optional(w.Literal("header","query","cookie")),name:w.optional(w.String)}),GLe=w.extend(w.Struct({id:_m,kind:w.Literal("securityScheme"),schemeType:yLe,docs:w.optional(Op),placement:w.optional(KLe),http:w.optional(w.Struct({scheme:w.String,bearerFormat:w.optional(w.String)})),apiKey:w.optional(w.Struct({in:w.Literal("header","query","cookie"),name:w.String})),oauth:w.optional(w.Struct({flows:w.optional(w.Record({key:w.String,value:JLe})),scopes:w.optional(w.Record({key:w.String,value:w.String}))})),custom:w.optional(w.Struct({placementHints:w.optional(w.Array(VLe))}))}),Al),HLe=w.Struct({contentType:w.optional(w.String),style:w.optional(w.String),explode:w.optional(w.Boolean),allowReserved:w.optional(w.Boolean),headers:w.optional(w.Array(dm))}),O6=w.Struct({mediaType:w.String,shapeId:w.optional(fn),exampleIds:w.optional(w.Array(Ip)),encoding:w.optional(w.Record({key:w.String,value:HLe}))}),ZLe=w.extend(w.Struct({id:fn,kind:w.Literal("shape"),resourceId:w.optional(wp),title:w.optional(w.String),docs:w.optional(Op),deprecated:w.optional(w.Boolean),node:zLe}),Al),WLe=w.extend(w.Struct({id:pm,kind:w.Literal("parameter"),name:w.String,location:mLe,required:w.optional(w.Boolean),docs:w.optional(Op),deprecated:w.optional(w.Boolean),exampleIds:w.optional(w.Array(Ip)),schemaShapeId:w.optional(fn),content:w.optional(w.Array(O6)),style:w.optional(w.String),explode:w.optional(w.Boolean),allowReserved:w.optional(w.Boolean)}),Al),QLe=w.extend(w.Struct({id:dm,kind:w.Literal("header"),name:w.String,docs:w.optional(Op),deprecated:w.optional(w.Boolean),exampleIds:w.optional(w.Array(Ip)),schemaShapeId:w.optional(fn),content:w.optional(w.Array(O6)),style:w.optional(w.String),explode:w.optional(w.Boolean)}),Al),XLe=w.extend(w.Struct({id:Xy,kind:w.Literal("requestBody"),docs:w.optional(Op),required:w.optional(w.Boolean),contents:w.Array(O6)}),Al),YLe=w.extend(w.Struct({id:Nc,kind:w.Literal("response"),docs:w.optional(Op),headerIds:w.optional(w.Array(dm)),contents:w.optional(w.Array(O6))}),Al),e$e=w.extend(w.Struct({id:Ip,kind:w.Literal("example"),name:w.optional(w.String),docs:w.optional(Op),exampleKind:w.Literal("value","call"),value:w.optional(w.Unknown),externalValue:w.optional(w.String),call:w.optional(w.Struct({args:w.Record({key:w.String,value:w.Unknown}),result:w.optional(w.Unknown)}))}),Al),pse=w.Union(ZLe,WLe,XLe,YLe,QLe,e$e,GLe),P6=w.suspend(()=>w.Union(w.Struct({kind:w.Literal("none")}),w.Struct({kind:w.Literal("scheme"),schemeId:_m,scopes:w.optional(w.Array(w.String))}),w.Struct({kind:w.Literal("allOf"),items:w.Array(P6)}),w.Struct({kind:w.Literal("anyOf"),items:w.Array(P6)}))),t$e=w.Struct({url:w.String,description:w.optional(w.String),variables:w.optional(w.Record({key:w.String,value:w.String}))}),r$e=w.Struct({servers:w.optional(w.Array(t$e)),auth:w.optional(P6),parameterIds:w.optional(w.Array(pm)),headerIds:w.optional(w.Array(dm)),variables:w.optional(w.Record({key:w.String,value:w.String}))}),dse=w.extend(w.Struct({id:Tu,kind:_Le,parentId:w.optional(Tu),name:w.optional(w.String),namespace:w.optional(w.String),docs:w.optional(Op),defaults:w.optional(r$e)}),Al),n$e=w.Struct({approval:w.Struct({mayRequire:w.Boolean,reasons:w.optional(w.Array(w.Literal("write","delete","sensitive","externalSideEffect")))}),elicitation:w.Struct({mayRequest:w.Boolean,shapeId:w.optional(fn)}),resume:w.Struct({supported:w.Boolean})}),_se=w.extend(w.Struct({id:Oc,serviceScopeId:Tu,surface:w.Struct({toolPath:w.Array(w.String),title:w.optional(w.String),summary:w.optional(w.String),description:w.optional(w.String),aliases:w.optional(w.Array(w.String)),tags:w.optional(w.Array(w.String))}),semantics:w.Struct({effect:fLe,safe:w.optional(w.Boolean),idempotent:w.optional(w.Boolean),destructive:w.optional(w.Boolean)}),docs:w.optional(Op),auth:P6,interaction:n$e,executableIds:w.Array(Qs),preferredExecutableId:w.optional(Qs),exampleIds:w.optional(w.Array(Ip))}),Al),o$e=w.Struct({protocol:w.optional(w.String),method:w.optional(w.NullOr(w.String)),pathTemplate:w.optional(w.NullOr(w.String)),operationId:w.optional(w.NullOr(w.String)),group:w.optional(w.NullOr(w.String)),leaf:w.optional(w.NullOr(w.String)),rawToolId:w.optional(w.NullOr(w.String)),title:w.optional(w.NullOr(w.String)),summary:w.optional(w.NullOr(w.String))}),i$e=w.Struct({responseSetId:um,callShapeId:fn,resultDataShapeId:w.optional(fn),resultErrorShapeId:w.optional(fn),resultHeadersShapeId:w.optional(fn),resultStatusShapeId:w.optional(fn)}),fse=w.extend(w.Struct({id:Qs,capabilityId:Oc,scopeId:Tu,adapterKey:w.String,bindingVersion:w.Number,binding:w.Unknown,projection:i$e,display:w.optional(o$e)}),Al),a$e=w.Struct({kind:SLe,tokenParamName:w.optional(w.String),nextFieldPath:w.optional(w.String)}),s$e=w.Union(w.Struct({kind:w.Literal("exact"),status:w.Number}),w.Struct({kind:w.Literal("range"),value:gLe}),w.Struct({kind:w.Literal("default")})),c$e=w.Struct({match:s$e,responseId:Nc,traits:w.optional(w.Array(hLe)),pagination:w.optional(a$e)}),mse=w.extend(w.Struct({id:um,variants:w.Array(c$e)}),Al),hse=w.Struct({id:m_,level:vLe,code:bLe,message:w.String,relatedSymbolIds:w.optional(w.Array(Gae)),provenance:w.Array(ase)}),aB=w.Struct({version:w.Literal("ir.v1"),documents:w.Record({key:Ap,value:cse}),resources:w.Record({key:wp,value:use}),scopes:w.Record({key:Tu,value:dse}),symbols:w.Record({key:w.String,value:pse}),capabilities:w.Record({key:Oc,value:_se}),executables:w.Record({key:Qs,value:fse}),responseSets:w.Record({key:um,value:mse}),diagnostics:w.Record({key:m_,value:hse})}),yse=w.Struct({version:w.Literal("ir.v1.fragment"),documents:w.optional(w.Record({key:Ap,value:cse})),resources:w.optional(w.Record({key:wp,value:use})),scopes:w.optional(w.Record({key:Tu,value:dse})),symbols:w.optional(w.Record({key:w.String,value:pse})),capabilities:w.optional(w.Record({key:Oc,value:_se})),executables:w.optional(w.Record({key:Qs,value:fse})),responseSets:w.optional(w.Record({key:um,value:mse})),diagnostics:w.optional(w.Record({key:m_,value:hse}))}),OT=w.Struct({version:w.Literal("ir.v1.snapshot"),import:TLe,catalog:aB});var l$e=lB.decodeUnknownSync(aB),u$e=lB.decodeUnknownSync(OT),M9t=lB.decodeUnknownSync(yse),_v=e=>e===null||typeof e!="object"?JSON.stringify(e):Array.isArray(e)?`[${e.map(r=>_v(r)).join(",")}]`:`{${Object.entries(e).sort(([r],[n])=>r.localeCompare(n)).map(([r,n])=>`${JSON.stringify(r)}:${_v(n)}`).join(",")}}`,vse=e=>Dc(_v(e)).slice(0,16),eg=e=>[...new Set(e)],p$e=e=>({version:e.version,documents:{...e.documents},resources:{...e.resources},scopes:{...e.scopes},symbols:{...e.symbols},capabilities:{...e.capabilities},executables:{...e.executables},responseSets:{...e.responseSets},diagnostics:{...e.diagnostics}}),N6=e=>e,uB=(e,t,r)=>e(`${t}_${vse(r)}`),d$e=()=>({version:"ir.v1",documents:{},resources:{},scopes:{},symbols:{},capabilities:{},executables:{},responseSets:{},diagnostics:{}}),bse=(e,t)=>{switch(t.kind){case"none":return["none"];case"scheme":{let r=e.symbols[t.schemeId];return!r||r.kind!=="securityScheme"?["unknown"]:[r.schemeType,...(t.scopes??[]).map(n=>`scope:${n}`)]}case"allOf":case"anyOf":return eg(t.items.flatMap(r=>bse(e,r)))}};var _$e=(e,t)=>{let r=e.symbols[t];return r&&r.kind==="response"?r:void 0},f$e=e=>{let t=e.trim().toLowerCase();return t==="application/json"||t.endsWith("+json")||t==="text/json"},pB=(e,t)=>{let r=uB(m_.make,"diag",t.idSeed);return N6(e.diagnostics)[r]={id:r,level:t.level,code:t.code,message:t.message,...t.relatedSymbolIds?{relatedSymbolIds:t.relatedSymbolIds}:{},provenance:t.provenance},r},m$e=(e,t)=>{let r=uB(wp.make,"res",{kind:"projection",capabilityId:t.id});if(!e.resources[r]){let o=e.scopes[t.serviceScopeId]?.provenance[0]?.documentId??Ap.make(`doc_projection_${vse(t.id)}`);e.documents[o]||(N6(e.documents)[o]={id:o,kind:"custom",title:`Projection resource for ${t.id}`,fetchedAt:new Date(0).toISOString(),rawRef:`synthetic://projection/${t.id}`}),N6(e.resources)[r]={id:r,documentId:o,canonicalUri:`synthetic://projection/${t.id}`,baseUri:`synthetic://projection/${t.id}`,anchors:{},dynamicAnchors:{},synthetic:!0,provenance:t.provenance},pB(e,{idSeed:{code:"synthetic_resource_context_created",capabilityId:t.id},level:"info",code:"synthetic_resource_context_created",message:`Created synthetic projection resource for ${t.id}`,provenance:t.provenance})}return r},hm=(e,t)=>{let r=m$e(e,t.capability),n=uB(fn.make,"shape",{capabilityId:t.capability.id,label:t.label,node:t.node});if(!e.symbols[n]){let o=t.diagnostic?[pB(e,{idSeed:{code:t.diagnostic.code,shapeId:n},level:t.diagnostic.level,code:t.diagnostic.code,message:t.diagnostic.message,...t.diagnostic.relatedSymbolIds?{relatedSymbolIds:t.diagnostic.relatedSymbolIds}:{},provenance:t.capability.provenance})]:void 0;N6(e.symbols)[n]={id:n,kind:"shape",resourceId:r,...t.title?{title:t.title}:{},...t.docs?{docs:t.docs}:{},node:t.node,synthetic:!0,provenance:t.capability.provenance,...o?{diagnosticIds:o}:{}}}return n},h$e=(e,t,r,n)=>{let o=eg((r??[]).map(i=>i.shapeId).filter(i=>i!==void 0));if(o.length!==0)return o.length===1?o[0]:hm(e,{capability:t,label:n,title:`${t.surface.title??t.id} content union`,node:{type:"anyOf",items:o},diagnostic:{level:"warning",code:"projection_result_shape_synthesized",message:`Synthesized content union for ${t.id}`,relatedSymbolIds:o}})},y$e=(e,t)=>{let r=t.preferredExecutableId;if(r){let o=e.executables[r];if(o)return o}let n=t.executableIds.map(o=>e.executables[o]).filter(o=>o!==void 0);if(n.length===0)throw new Error(`Capability ${t.id} has no executables`);return n[0]},g$e=e=>{switch(e.kind){case"exact":return e.status===200?100:e.status>=200&&e.status<300?80:10;case"range":return e.value==="2XX"?60:5;case"default":return 40}},gse=e=>(e.contents??[]).flatMap(t=>t.shapeId?[{mediaType:t.mediaType,shapeId:t.shapeId}]:[]),xse=(e,t)=>[...t.variants].map(r=>{let n=_$e(e,r.responseId);return n?{variant:r,response:n,score:g$e(r.match)}:null}).filter(r=>r!==null),Ese=e=>{switch(e.kind){case"exact":return e.status>=200&&e.status<300;case"range":return e.value==="2XX";case"default":return!1}},Tse=(e,t,r,n,o)=>{let i=o.flatMap(({response:s})=>gse(s).filter(c=>f$e(c.mediaType)));if(i.length>0)return h$e(e,t,i.map(s=>({mediaType:s.mediaType,shapeId:s.shapeId})),`${r}:json`);let a=eg(o.flatMap(({response:s})=>gse(s).map(c=>c.shapeId)));if(a.length!==0)return a.length===1?a[0]:hm(e,{capability:t,label:`${r}:union`,title:n,node:{type:"anyOf",items:a},diagnostic:{level:"warning",code:"multi_response_union_synthesized",message:`Synthesized response union for ${t.id}`,relatedSymbolIds:a}})},S$e=(e,t,r)=>Tse(e,t,`responseSet:${r.id}`,`${t.surface.title??t.id} result`,xse(e,r).filter(({variant:n})=>Ese(n.match))),v$e=(e,t,r)=>Tse(e,t,`responseSet:${r.id}:error`,`${t.surface.title??t.id} error`,xse(e,r).filter(({variant:n})=>!Ese(n.match))),Dse=(e,t,r)=>hm(e,{capability:t,label:r.label,title:r.title,node:{type:"scalar",scalar:r.scalar}}),b$e=(e,t,r)=>hm(e,{capability:t,label:r,title:"null",node:{type:"const",value:null}}),Sse=(e,t,r)=>hm(e,{capability:t,label:r.label,title:r.title,node:{type:"unknown",reason:r.reason}}),sB=(e,t,r)=>{let n=b$e(e,t,`${r.label}:null`);return r.baseShapeId===n?n:hm(e,{capability:t,label:`${r.label}:nullable`,title:r.title,node:{type:"anyOf",items:eg([r.baseShapeId,n])}})},x$e=(e,t,r)=>{let n=Dse(e,t,{label:`${r}:value`,title:"Header value",scalar:"string"});return hm(e,{capability:t,label:r,title:"Response headers",node:{type:"object",fields:{},additionalProperties:n}})},E$e=(e,t,r,n)=>{let o=Sse(e,t,{label:`executionResult:${t.id}:data:unknown`,title:"Response data",reason:`Execution result data for ${t.id} is not statically known`}),i=Sse(e,t,{label:`executionResult:${t.id}:error:unknown`,title:"Response error",reason:`Execution result error for ${t.id} is not statically known`}),a=x$e(e,t,`executionResult:${t.id}:headers`),s=Dse(e,t,{label:`executionResult:${t.id}:status`,title:"Response status",scalar:"integer"}),c,p,d=a,f=s;c=r.projection.resultDataShapeId??S$e(e,t,n),p=r.projection.resultErrorShapeId??v$e(e,t,n),d=r.projection.resultHeadersShapeId??a,f=r.projection.resultStatusShapeId??s;let m=sB(e,t,{label:`executionResult:${t.id}:data`,title:"Result data",baseShapeId:c??o}),y=sB(e,t,{label:`executionResult:${t.id}:error`,title:"Result error",baseShapeId:p??i}),g=sB(e,t,{label:`executionResult:${t.id}:status`,title:"Result status",baseShapeId:f});return hm(e,{capability:t,label:`executionResult:${t.id}`,title:`${t.surface.title??t.id} result`,node:{type:"object",fields:{data:{shapeId:m,docs:{description:"Successful result payload when available."}},error:{shapeId:y,docs:{description:"Error payload when the remote execution completed but failed."}},headers:{shapeId:d,docs:{description:"Response headers when available."}},status:{shapeId:g,docs:{description:"Transport status code when available."}}},required:["data","error","headers","status"],additionalProperties:!1},diagnostic:{level:"info",code:"projection_result_shape_synthesized",message:`Synthesized execution result envelope for ${t.id}`,relatedSymbolIds:eg([m,y,d,g])}})},T$e=(e,t)=>{let r=y$e(e,t),n=e.responseSets[r.projection.responseSetId];if(!n)throw new Error(`Missing response set ${r.projection.responseSetId} for ${t.id}`);let o=r.projection.callShapeId,i=E$e(e,t,r,n),s=eg([...t.diagnosticIds??[],...r.diagnosticIds??[],...n.diagnosticIds??[],...o?e.symbols[o]?.diagnosticIds??[]:[],...i?e.symbols[i]?.diagnosticIds??[]:[]]).map(c=>e.diagnostics[c]).filter(c=>c!==void 0);return{toolPath:[...t.surface.toolPath],capabilityId:t.id,...t.surface.title?{title:t.surface.title}:{},...t.surface.summary?{summary:t.surface.summary}:{},effect:t.semantics.effect,interaction:{mayRequireApproval:t.interaction.approval.mayRequire,mayElicit:t.interaction.elicitation.mayRequest},callShapeId:o,...i?{resultShapeId:i}:{},responseSetId:r.projection.responseSetId,diagnosticCounts:{warning:s.filter(c=>c.level==="warning").length,error:s.filter(c=>c.level==="error").length}}},D$e=(e,t,r)=>({capabilityId:t.id,toolPath:[...t.surface.toolPath],...t.surface.summary?{summary:t.surface.summary}:{},executableIds:[...t.executableIds],auth:t.auth,interaction:t.interaction,callShapeId:r.callShapeId,...r.resultShapeId?{resultShapeId:r.resultShapeId}:{},responseSetId:r.responseSetId,...t.diagnosticIds?{diagnosticIds:[...t.diagnosticIds]}:{}}),A$e=(e,t)=>({capabilityId:t.id,toolPath:[...t.surface.toolPath],...t.surface.title?{title:t.surface.title}:{},...t.surface.summary?{summary:t.surface.summary}:{},...t.surface.tags?{tags:[...t.surface.tags]}:{},protocolHints:eg(t.executableIds.map(r=>e.executables[r]?.display?.protocol??e.executables[r]?.adapterKey).filter(r=>r!==void 0)),authHints:bse(e,t.auth),effect:t.semantics.effect});var Ase=e=>{try{return l$e(e)}catch(t){throw new Error(cB.TreeFormatter.formatErrorSync(t))}};var F6=e=>{try{let t=u$e(e);return dB(t.catalog),t}catch(t){throw t instanceof Error?t:new Error(cB.TreeFormatter.formatErrorSync(t))}};var w$e=e=>{let t=dB(Ase(e.catalog));return{version:"ir.v1.snapshot",import:e.import,catalog:t}},fv=e=>w$e({import:e.import,catalog:I$e(e.fragments)}),I$e=e=>{let t=d$e(),r=new Map,n=(o,i)=>{if(!i)return;let a=t[o];for(let[s,c]of Object.entries(i)){let p=a[s];if(!p){a[s]=c,r.set(`${String(o)}:${s}`,_v(c));continue}let d=r.get(`${String(o)}:${s}`)??_v(p),f=_v(c);d!==f&&o!=="diagnostics"&&pB(t,{idSeed:{collectionName:o,id:s,existingHash:d,nextHash:f},level:"error",code:"merge_conflict_preserved_first",message:`Conflicting ${String(o)} entry for ${s}; preserved first value`,provenance:"provenance"in p?p.provenance:[]})}};for(let o of e)n("documents",o.documents),n("resources",o.resources),n("scopes",o.scopes),n("symbols",o.symbols),n("capabilities",o.capabilities),n("executables",o.executables),n("responseSets",o.responseSets),n("diagnostics",o.diagnostics);return dB(Ase(t))},k$e=e=>{let t=[],r=n=>{for(let o of n.provenance)e.documents[o.documentId]||t.push({code:"missing_provenance_document",entityId:n.entityId,message:`Entity ${n.entityId} references missing provenance document ${o.documentId}`})};for(let n of Object.values(e.symbols))n.provenance.length===0&&t.push({code:"missing_symbol_provenance",entityId:n.id,message:`Symbol ${n.id} is missing provenance`}),n.kind==="shape"&&(!n.resourceId&&!n.synthetic&&t.push({code:"missing_resource_context",entityId:n.id,message:`Shape ${n.id} must belong to a resource or be synthetic`}),n.node.type==="ref"&&!e.symbols[n.node.target]&&t.push({code:"missing_reference_target",entityId:n.id,message:`Shape ${n.id} references missing shape ${n.node.target}`}),n.node.type==="unknown"&&n.node.reason?.includes("unresolved")&&((n.diagnosticIds??[]).map(i=>e.diagnostics[i]).some(i=>i?.code==="unresolved_ref")||t.push({code:"missing_unresolved_ref_diagnostic",entityId:n.id,message:`Shape ${n.id} is unresolved but has no unresolved_ref diagnostic`})),n.synthetic&&n.resourceId&&!e.resources[n.resourceId]&&t.push({code:"missing_resource_context",entityId:n.id,message:`Synthetic shape ${n.id} references missing resource ${n.resourceId}`})),r({entityId:n.id,provenance:n.provenance});for(let n of[...Object.values(e.resources),...Object.values(e.scopes),...Object.values(e.capabilities),...Object.values(e.executables),...Object.values(e.responseSets)])"provenance"in n&&n.provenance.length===0&&t.push({code:"missing_entity_provenance",entityId:"id"in n?n.id:void 0,message:`Entity ${"id"in n?n.id:"unknown"} is missing provenance`}),"id"in n&&r({entityId:n.id,provenance:n.provenance});for(let n of Object.values(e.resources))e.documents[n.documentId]||t.push({code:"missing_document",entityId:n.id,message:`Resource ${n.id} references missing document ${n.documentId}`});for(let n of Object.values(e.capabilities)){e.scopes[n.serviceScopeId]||t.push({code:"missing_service_scope",entityId:n.id,message:`Capability ${n.id} references missing scope ${n.serviceScopeId}`}),n.preferredExecutableId&&!n.executableIds.includes(n.preferredExecutableId)&&t.push({code:"invalid_preferred_executable",entityId:n.id,message:`Capability ${n.id} preferred executable is not in executableIds`});for(let o of n.executableIds)e.executables[o]||t.push({code:"missing_executable",entityId:n.id,message:`Capability ${n.id} references missing executable ${o}`})}for(let n of Object.values(e.executables)){e.capabilities[n.capabilityId]||t.push({code:"missing_executable",entityId:n.id,message:`Executable ${n.id} references missing capability ${n.capabilityId}`}),e.scopes[n.scopeId]||t.push({code:"missing_scope",entityId:n.id,message:`Executable ${n.id} references missing scope ${n.scopeId}`}),e.responseSets[n.projection.responseSetId]||t.push({code:"missing_response_set",entityId:n.id,message:`Executable ${n.id} references missing response set ${n.projection.responseSetId}`});let o=[{kind:"call",shapeId:n.projection.callShapeId},{kind:"result data",shapeId:n.projection.resultDataShapeId},{kind:"result error",shapeId:n.projection.resultErrorShapeId},{kind:"result headers",shapeId:n.projection.resultHeadersShapeId},{kind:"result status",shapeId:n.projection.resultStatusShapeId}];for(let i of o)!i.shapeId||e.symbols[i.shapeId]?.kind==="shape"||t.push({code:"missing_projection_shape",entityId:n.id,message:`Executable ${n.id} references missing ${i.kind} shape ${i.shapeId}`})}return t},dB=e=>{let t=k$e(e);if(t.length===0)return e;let r=t.slice(0,5).map(n=>`${n.code}: ${n.message}`).join(` +`);throw new Error([`Invalid IR catalog (${t.length} invariant violation${t.length===1?"":"s"}).`,r,...t.length>5?[`...and ${String(t.length-5)} more`]:[]].join(` +`))},NT=e=>{let t=p$e(e.catalog),r={},n={},o={},i=Object.values(t.capabilities).sort((a,s)=>a.id.localeCompare(s.id));for(let a of i){let s=T$e(t,a);r[a.id]=s,n[a.id]=A$e(t,a),o[a.id]=D$e(t,a,s)}return{catalog:t,toolDescriptors:r,searchDocs:n,capabilityViews:o}};var FT=e=>Dc(e),Np=e=>e,RT=e=>fv({import:e.importMetadata,fragments:[e.fragment]});import*as kse from"effect/Schema";var wse=e=>{let t=new Map(e.map(i=>[i.key,i])),r=i=>{let a=t.get(i);if(!a)throw new Error(`Unsupported source adapter: ${i}`);return a},n=i=>r(i.kind);return{adapters:e,getSourceAdapter:r,getSourceAdapterForSource:n,findSourceAdapterByProviderKey:i=>e.find(a=>a.providerKey===i)??null,sourceBindingStateFromSource:i=>n(i).bindingStateFromSource(i),sourceAdapterCatalogKind:i=>r(i).catalogKind,sourceAdapterRequiresInteractiveConnect:i=>r(i).connectStrategy==="interactive",sourceAdapterUsesCredentialManagedAuth:i=>r(i).credentialStrategy==="credential_managed",isInternalSourceAdapter:i=>r(i).catalogKind==="internal"}};var C$e=e=>e.connectPayloadSchema!==null,P$e=e=>e.executorAddInputSchema!==null,O$e=e=>e.localConfigBindingSchema!==null,N$e=e=>e,Ise=(e,t)=>e.length===0?(()=>{throw new Error(`Cannot create ${t} without any schemas`)})():e.length===1?e[0]:kse.Union(...N$e(e)),Cse=e=>{let t=e.filter(C$e),r=e.filter(P$e),n=e.filter(O$e),o=wse(e);return{connectableSourceAdapters:t,connectPayloadSchema:Ise(t.map(i=>i.connectPayloadSchema),"connect payload schema"),executorAddableSourceAdapters:r,executorAddInputSchema:Ise(r.map(i=>i.executorAddInputSchema),"executor add input schema"),localConfigurableSourceAdapters:n,...o}};import*as Bt from"effect/Schema";import*as Ie from"effect/Schema";var Iu=Ie.Struct({providerId:Ie.String,handle:Ie.String}),K9t=Ie.Literal("runtime","import"),G9t=Ie.Literal("imported","internal"),F$e=Ie.String,R$e=Ie.Literal("draft","probing","auth_required","connected","error"),Fc=Ie.Literal("auto","streamable-http","sse","stdio"),ym=Ie.Literal("none","reuse_runtime","separate"),Wr=Ie.Record({key:Ie.String,value:Ie.String}),v_=Ie.Array(Ie.String),_B=Ie.suspend(()=>Ie.Union(Ie.String,Ie.Number,Ie.Boolean,Ie.Null,Ie.Array(_B),Ie.Record({key:Ie.String,value:_B}))).annotations({identifier:"JsonValue"}),Ose=Ie.Record({key:Ie.String,value:_B}).annotations({identifier:"JsonObject"}),Pse=Ie.Union(Ie.Struct({kind:Ie.Literal("none")}),Ie.Struct({kind:Ie.Literal("bearer"),headerName:Ie.String,prefix:Ie.String,token:Iu}),Ie.Struct({kind:Ie.Literal("oauth2"),headerName:Ie.String,prefix:Ie.String,accessToken:Iu,refreshToken:Ie.NullOr(Iu)}),Ie.Struct({kind:Ie.Literal("oauth2_authorized_user"),headerName:Ie.String,prefix:Ie.String,tokenEndpoint:Ie.String,clientId:Ie.String,clientAuthentication:Ie.Literal("none","client_secret_post"),clientSecret:Ie.NullOr(Iu),refreshToken:Iu,grantSet:Ie.NullOr(Ie.Array(Ie.String))}),Ie.Struct({kind:Ie.Literal("provider_grant_ref"),grantId:Ie.String,providerKey:Ie.String,requiredScopes:Ie.Array(Ie.String),headerName:Ie.String,prefix:Ie.String}),Ie.Struct({kind:Ie.Literal("mcp_oauth"),redirectUri:Ie.String,accessToken:Iu,refreshToken:Ie.NullOr(Iu),tokenType:Ie.String,expiresIn:Ie.NullOr(Ie.Number),scope:Ie.NullOr(Ie.String),resourceMetadataUrl:Ie.NullOr(Ie.String),authorizationServerUrl:Ie.NullOr(Ie.String),resourceMetadataJson:Ie.NullOr(Ie.String),authorizationServerMetadataJson:Ie.NullOr(Ie.String),clientInformationJson:Ie.NullOr(Ie.String)})),R6=Ie.Number,H9t=Ie.Struct({version:R6,payload:Ose}),Z9t=Ie.Struct({id:Ie.String,scopeId:Ie.String,name:Ie.String,kind:F$e,endpoint:Ie.String,status:R$e,enabled:Ie.Boolean,namespace:Ie.NullOr(Ie.String),bindingVersion:R6,binding:Ose,importAuthPolicy:ym,importAuth:Pse,auth:Pse,sourceHash:Ie.NullOr(Ie.String),lastError:Ie.NullOr(Ie.String),createdAt:Ie.Number,updatedAt:Ie.Number}),W9t=Ie.Struct({id:Ie.String,bindingConfigJson:Ie.NullOr(Ie.String)}),L6=Ie.Literal("app_callback","loopback"),Nse=Ie.String,fB=Ie.Struct({clientId:Ie.Trim.pipe(Ie.nonEmptyString()),clientSecret:Ie.optional(Ie.NullOr(Ie.Trim.pipe(Ie.nonEmptyString()))),redirectMode:Ie.optional(L6)});var mB=Bt.Literal("mcp","openapi","google_discovery","graphql","unknown"),$6=Bt.Literal("low","medium","high"),hB=Bt.Literal("none","bearer","oauth2","apiKey","basic","unknown"),yB=Bt.Literal("header","query","cookie"),Fse=Bt.Union(Bt.Struct({kind:Bt.Literal("none")}),Bt.Struct({kind:Bt.Literal("bearer"),headerName:Bt.optional(Bt.NullOr(Bt.String)),prefix:Bt.optional(Bt.NullOr(Bt.String)),token:Bt.String}),Bt.Struct({kind:Bt.Literal("basic"),username:Bt.String,password:Bt.String}),Bt.Struct({kind:Bt.Literal("headers"),headers:Wr})),gB=Bt.Struct({suggestedKind:hB,confidence:$6,supported:Bt.Boolean,reason:Bt.String,headerName:Bt.NullOr(Bt.String),prefix:Bt.NullOr(Bt.String),parameterName:Bt.NullOr(Bt.String),parameterLocation:Bt.NullOr(yB),oauthAuthorizationUrl:Bt.NullOr(Bt.String),oauthTokenUrl:Bt.NullOr(Bt.String),oauthScopes:Bt.Array(Bt.String)}),Rse=Bt.Struct({detectedKind:mB,confidence:$6,endpoint:Bt.String,specUrl:Bt.NullOr(Bt.String),name:Bt.NullOr(Bt.String),namespace:Bt.NullOr(Bt.String),transport:Bt.NullOr(Fc),authInference:gB,toolCount:Bt.NullOr(Bt.Number),warnings:Bt.Array(Bt.String)});import*as Lse from"effect/Data";var SB=class extends Lse.TaggedError("SourceCoreEffectError"){},Co=(e,t)=>new SB({module:e,message:t});import*as $se from"effect/Data";import*as ku from"effect/Effect";import*as qt from"effect/Schema";var L$e=qt.Trim.pipe(qt.nonEmptyString()),Ho=qt.optional(qt.NullOr(qt.String)),$$e=qt.Struct({kind:qt.Literal("bearer"),headerName:Ho,prefix:Ho,token:Ho,tokenRef:qt.optional(qt.NullOr(Iu))}),M$e=qt.Struct({kind:qt.Literal("oauth2"),headerName:Ho,prefix:Ho,accessToken:Ho,accessTokenRef:qt.optional(qt.NullOr(Iu)),refreshToken:Ho,refreshTokenRef:qt.optional(qt.NullOr(Iu))}),x_=qt.Union(qt.Struct({kind:qt.Literal("none")}),$$e,M$e),gm=qt.Struct({importAuthPolicy:qt.optional(ym),importAuth:qt.optional(x_)}),Mse=qt.optional(qt.NullOr(fB)),M6=qt.Struct({endpoint:L$e,name:Ho,namespace:Ho}),vB=qt.Struct({transport:qt.optional(qt.NullOr(Fc)),queryParams:qt.optional(qt.NullOr(Wr)),headers:qt.optional(qt.NullOr(Wr)),command:qt.optional(qt.NullOr(qt.String)),args:qt.optional(qt.NullOr(v_)),env:qt.optional(qt.NullOr(Wr)),cwd:qt.optional(qt.NullOr(qt.String))});var b_=class extends $se.TaggedError("SourceCredentialRequiredError"){constructor(t,r){super({slot:t,message:r})}},E_=e=>e instanceof b_,Fp={transport:null,queryParams:null,headers:null,command:null,args:null,env:null,cwd:null,specUrl:null,defaultHeaders:null},jse=(e,t)=>qt.Struct({adapterKey:qt.Literal(e),version:R6,payload:t}),Rp=e=>qt.encodeSync(qt.parseJson(jse(e.adapterKey,e.payloadSchema)))({adapterKey:e.adapterKey,version:e.version,payload:e.payload}),Lp=e=>e.value===null?ku.fail(Co("core/shared",`Missing ${e.label} binding config for ${e.sourceId}`)):ku.try({try:()=>qt.decodeUnknownSync(qt.parseJson(jse(e.adapterKey,e.payloadSchema)))(e.value),catch:t=>{let r=t instanceof Error?t.message:String(t);return new Error(`Invalid ${e.label} binding config for ${e.sourceId}: ${r}`)}}).pipe(ku.flatMap(t=>t.version===e.version?ku.succeed({version:t.version,payload:t.payload}):ku.fail(Co("core/shared",`Unsupported ${e.label} binding config version ${t.version} for ${e.sourceId}; expected ${e.version}`)))),$p=e=>e.version!==e.expectedVersion?ku.fail(Co("core/shared",`Unsupported ${e.label} binding version ${e.version} for ${e.sourceId}; expected ${e.expectedVersion}`)):ku.try({try:()=>{if(e.allowedKeys&&e.value!==null&&typeof e.value=="object"&&!Array.isArray(e.value)){let t=Object.keys(e.value).filter(r=>!e.allowedKeys.includes(r));if(t.length>0)throw new Error(`Unsupported fields: ${t.join(", ")}`)}return qt.decodeUnknownSync(e.schema)(e.value)},catch:t=>{let r=t instanceof Error?t.message:String(t);return new Error(`Invalid ${e.label} binding payload for ${e.sourceId}: ${r}`)}}),Sm=e=>{if(e.version!==e.expectedVersion)throw new Error(`Unsupported ${e.label} executable binding version ${e.version} for ${e.executableId}; expected ${e.expectedVersion}`);try{return qt.decodeUnknownSync(e.schema)(e.value)}catch(t){let r=t instanceof Error?t.message:String(t);throw new Error(`Invalid ${e.label} executable binding for ${e.executableId}: ${r}`)}};import*as hv from"effect/Effect";import*as Bse from"effect/Data";var bB=class extends Bse.TaggedError("McpOAuthEffectError"){},xB=(e,t)=>new bB({module:e,message:t});var qse=e=>e instanceof Error?e:new Error(String(e)),mv=e=>e!=null&&typeof e=="object"&&!Array.isArray(e)?e:null,Use=e=>({redirect_uris:[e],grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none",client_name:"Executor Local"}),LT=e=>hv.gen(function*(){let t={},r={get redirectUrl(){return e.redirectUrl},get clientMetadata(){return Use(e.redirectUrl)},state:()=>e.state,clientInformation:()=>t.clientInformation,saveClientInformation:o=>{t.clientInformation=o},tokens:()=>{},saveTokens:()=>{},redirectToAuthorization:o=>{t.authorizationUrl=o},saveCodeVerifier:o=>{t.codeVerifier=o},codeVerifier:()=>{if(!t.codeVerifier)throw new Error("OAuth code verifier was not captured");return t.codeVerifier},saveDiscoveryState:o=>{t.discoveryState=o},discoveryState:()=>t.discoveryState};return(yield*hv.tryPromise({try:()=>Dl(r,{serverUrl:e.endpoint}),catch:qse}))!=="REDIRECT"||!t.authorizationUrl||!t.codeVerifier?yield*xB("index","OAuth flow did not produce an authorization redirect"):{authorizationUrl:t.authorizationUrl.toString(),codeVerifier:t.codeVerifier,resourceMetadataUrl:t.discoveryState?.resourceMetadataUrl??null,authorizationServerUrl:t.discoveryState?.authorizationServerUrl??null,resourceMetadata:mv(t.discoveryState?.resourceMetadata),authorizationServerMetadata:mv(t.discoveryState?.authorizationServerMetadata),clientInformation:mv(t.clientInformation)}}),EB=e=>hv.gen(function*(){let t={discoveryState:{authorizationServerUrl:e.session.authorizationServerUrl??new URL("/",e.session.endpoint).toString(),resourceMetadataUrl:e.session.resourceMetadataUrl??void 0,resourceMetadata:e.session.resourceMetadata,authorizationServerMetadata:e.session.authorizationServerMetadata},clientInformation:e.session.clientInformation},r={get redirectUrl(){return e.session.redirectUrl},get clientMetadata(){return Use(e.session.redirectUrl)},clientInformation:()=>t.clientInformation,saveClientInformation:o=>{t.clientInformation=o},tokens:()=>{},saveTokens:o=>{t.tokens=o},redirectToAuthorization:()=>{throw new Error("Unexpected redirect while completing MCP OAuth")},saveCodeVerifier:()=>{},codeVerifier:()=>e.session.codeVerifier,saveDiscoveryState:o=>{t.discoveryState=o},discoveryState:()=>t.discoveryState};return(yield*hv.tryPromise({try:()=>Dl(r,{serverUrl:e.session.endpoint,authorizationCode:e.code}),catch:qse}))!=="AUTHORIZED"||!t.tokens?yield*xB("index","OAuth redirect did not complete MCP OAuth setup"):{tokens:t.tokens,resourceMetadataUrl:t.discoveryState?.resourceMetadataUrl??null,authorizationServerUrl:t.discoveryState?.authorizationServerUrl??null,resourceMetadata:mv(t.discoveryState?.resourceMetadata),authorizationServerMetadata:mv(t.discoveryState?.authorizationServerMetadata),clientInformation:mv(t.clientInformation)}});import*as U6 from"effect/Either";import*as A_ from"effect/Effect";import*as ece from"effect/Data";import*as wB from"effect/Either";import*as Pr from"effect/Effect";import*as tce from"effect/Cause";import*as rce from"effect/Exit";import*as nce from"effect/PartitionedSemaphore";import*as zse from"effect/Either";import*as Vse from"effect/Option";import*as Jse from"effect/ParseResult";import*as So from"effect/Schema";var Kse=So.Record({key:So.String,value:So.Unknown}),j$e=So.decodeUnknownOption(Kse),Gse=e=>{let t=j$e(e);return Vse.isSome(t)?t.value:{}},B$e=So.Struct({mode:So.optional(So.Union(So.Literal("form"),So.Literal("url"))),message:So.optional(So.String),requestedSchema:So.optional(Kse),url:So.optional(So.String),elicitationId:So.optional(So.String),id:So.optional(So.String)}),q$e=So.decodeUnknownEither(B$e),Hse=e=>{let t=q$e(e);if(zse.isLeft(t))throw new Error(`Invalid MCP elicitation request params: ${Jse.TreeFormatter.formatErrorSync(t.left)}`);let r=t.right,n=r.message??"";return r.mode==="url"?{mode:"url",message:n,url:r.url??"",elicitationId:r.elicitationId??r.id??""}:{mode:"form",message:n,requestedSchema:r.requestedSchema??{}}},Zse=e=>e.action==="accept"?{action:"accept",...e.content?{content:e.content}:{}}:{action:e.action},Wse=e=>typeof e.setRequestHandler=="function",TB=e=>e.elicitation.mode==="url"&&e.elicitation.elicitationId.length>0?e.elicitation.elicitationId:[e.invocation?.runId,e.invocation?.callId,e.path,"mcp",typeof e.sequence=="number"?String(e.sequence):void 0].filter(r=>typeof r=="string"&&r.length>0).join(":"),DB=e=>e instanceof YE&&Array.isArray(e.elicitations)&&e.elicitations.length>0;import*as Qse from"effect/Option";import*as ir from"effect/Schema";var U$e=e=>{let t=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"");return t.length>0?t:"tool"},z$e=(e,t)=>{let r=U$e(e),n=(t.get(r)??0)+1;return t.set(r,n),n===1?r:`${r}_${n}`},T_=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{},j6=e=>{let t=T_(e);return Object.keys(t).length>0?t:null},Mp=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),D_=e=>typeof e=="string"&&e.trim().length>0?e.trim():null,vm=e=>typeof e=="boolean"?e:null,Xse=e=>Array.isArray(e)?e:null,V$e=ir.Struct({title:ir.optional(ir.NullOr(ir.String)),readOnlyHint:ir.optional(ir.Boolean),destructiveHint:ir.optional(ir.Boolean),idempotentHint:ir.optional(ir.Boolean),openWorldHint:ir.optional(ir.Boolean)}),J$e=ir.Struct({taskSupport:ir.optional(ir.Literal("forbidden","optional","required"))}),K$e=ir.Struct({name:ir.String,title:ir.optional(ir.NullOr(ir.String)),description:ir.optional(ir.NullOr(ir.String)),inputSchema:ir.optional(ir.Unknown),parameters:ir.optional(ir.Unknown),outputSchema:ir.optional(ir.Unknown),annotations:ir.optional(V$e),execution:ir.optional(J$e),icons:ir.optional(ir.Unknown),_meta:ir.optional(ir.Unknown)}),G$e=ir.Struct({tools:ir.Array(K$e),nextCursor:ir.optional(ir.NullOr(ir.String)),_meta:ir.optional(ir.Unknown)}),H$e=ir.decodeUnknownOption(G$e),Z$e=e=>{let t=H$e(e);return Qse.isNone(t)?[]:t.value.tools},W$e=e=>{let t=j6(e);if(t===null)return null;let r={title:D_(t.title),readOnlyHint:vm(t.readOnlyHint),destructiveHint:vm(t.destructiveHint),idempotentHint:vm(t.idempotentHint),openWorldHint:vm(t.openWorldHint)};return Object.values(r).some(n=>n!==null)?r:null},Q$e=e=>{let t=j6(e);if(t===null)return null;let r=t.taskSupport;return r!=="forbidden"&&r!=="optional"&&r!=="required"?null:{taskSupport:r}},X$e=e=>{let t=j6(e),r=t?D_(t.name):null,n=t?D_(t.version):null;return r===null||n===null?null:{name:r,version:n,title:D_(t?.title),description:D_(t?.description),websiteUrl:D_(t?.websiteUrl),icons:Xse(t?.icons)}},Y$e=e=>{let t=j6(e);if(t===null)return null;let r=T_(t.prompts),n=T_(t.resources),o=T_(t.tools),i=T_(t.tasks),a=T_(i.requests),s=T_(a.tools);return{experimental:Mp(t,"experimental")?T_(t.experimental):null,logging:Mp(t,"logging"),completions:Mp(t,"completions"),prompts:Mp(t,"prompts")?{listChanged:vm(r.listChanged)??!1}:null,resources:Mp(t,"resources")?{subscribe:vm(n.subscribe)??!1,listChanged:vm(n.listChanged)??!1}:null,tools:Mp(t,"tools")?{listChanged:vm(o.listChanged)??!1}:null,tasks:Mp(t,"tasks")?{list:Mp(i,"list"),cancel:Mp(i,"cancel"),toolCall:Mp(s,"call")}:null}},eMe=e=>{let t=X$e(e?.serverInfo),r=Y$e(e?.serverCapabilities),n=D_(e?.instructions),o=e?.serverInfo??null,i=e?.serverCapabilities??null;return t===null&&r===null&&n===null&&o===null&&i===null?null:{info:t,capabilities:r,instructions:n,rawInfo:o,rawCapabilities:i}},AB=(e,t)=>{let r=new Map,n=T_(e),o=Array.isArray(n.tools)?n.tools:[],i=Z$e(e).map((a,s)=>{let c=a.name.trim();if(c.length===0)return null;let p=D_(a.title),d=W$e(a.annotations),f=p??d?.title??c;return{toolId:z$e(c,r),toolName:c,title:p,displayTitle:f,description:a.description??null,annotations:d,execution:Q$e(a.execution),icons:Xse(a.icons),meta:a._meta??null,rawTool:o[s]??null,inputSchema:a.inputSchema??a.parameters,outputSchema:a.outputSchema}}).filter(a=>a!==null);return{version:2,server:eMe(t),listTools:{nextCursor:D_(n.nextCursor),meta:n._meta??null,rawResult:e},tools:i}},Yse=(e,t)=>!e||e.trim().length===0?t:`${e}.${t}`;var wl=class extends ece.TaggedError("McpToolsError"){},tMe="__EXECUTION_SUSPENDED__",rMe=e=>{if(e instanceof Error)return`${e.message} +${e.stack??""}`;if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}},B6=e=>rMe(e).includes(tMe),tg=e=>e instanceof Error?e.message:String(e),nMe=e=>{if(e==null)return Hd;try{return Hx(e,{vendor:"mcp",fallback:Hd})}catch{return Hd}},oMe=e=>Pr.tryPromise({try:()=>e.close?.()??Promise.resolve(),catch:t=>t instanceof Error?t:new Error(String(t??"mcp connection close failed"))}).pipe(Pr.asVoid,Pr.catchAll(()=>Pr.void)),oce=e=>Pr.acquireUseRelease(e.connect.pipe(Pr.mapError(e.onConnectError)),e.run,oMe),iMe=nce.makeUnsafe({permits:1}),ice=(e,t)=>iMe.withPermits(e,1)(t),ace=e=>e.onElicitation({interactionId:e.interactionId,path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.executionContext?.metadata,context:e.executionContext?.invocation,elicitation:e.elicitation}).pipe(Pr.mapError(t=>B6(t)?t:new wl({stage:"call_tool",message:`Failed resolving elicitation for ${e.toolName}`,details:tg(t)}))),sce=e=>{let t=e.client;return Wse(t)?Pr.try({try:()=>{let r=0;t.setRequestHandler(cT,n=>(r+=1,Pr.runPromise(Pr.try({try:()=>Hse(n.params),catch:o=>new wl({stage:"call_tool",message:`Failed parsing MCP elicitation for ${e.toolName}`,details:tg(o)})}).pipe(Pr.flatMap(o=>ace({toolName:e.toolName,onElicitation:e.onElicitation,interactionId:TB({path:e.path,invocation:e.executionContext?.invocation,elicitation:o,sequence:r}),path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext,elicitation:o})),Pr.map(Zse),Pr.catchAll(o=>B6(o)?Pr.fail(o):(console.error(`[mcp-tools] elicitation failed for ${e.toolName}, treating as cancel:`,o instanceof Error?o.message:String(o)),Pr.succeed({action:"cancel"})))))))},catch:r=>r instanceof wl?r:new wl({stage:"call_tool",message:`Failed installing elicitation handler for ${e.toolName}`,details:tg(r)})}):Pr.succeed(void 0)},cce=e=>Pr.forEach(e.cause.elicitations,t=>ace({toolName:e.toolName,onElicitation:e.onElicitation,interactionId:TB({path:e.path,invocation:e.executionContext?.invocation,elicitation:t}),path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext,elicitation:t}).pipe(Pr.flatMap(r=>r.action==="accept"?Pr.succeed(void 0):Pr.fail(new wl({stage:"call_tool",message:`URL elicitation was not accepted for ${e.toolName}`,details:r.action})))),{discard:!0}),aMe=e=>Pr.tryPromise({try:()=>e.client.callTool({name:e.toolName,arguments:e.args}),catch:t=>t}),sMe=e=>e?{path:e.path,sourceKey:e.sourceKey,metadata:e.metadata,invocation:e.invocation,onElicitation:e.onElicitation}:void 0,cMe=e=>Pr.gen(function*(){let t=sMe(e.mcpDiscoveryElicitation);e.mcpDiscoveryElicitation&&(yield*sce({client:e.connection.client,toolName:"tools/list",onElicitation:e.mcpDiscoveryElicitation.onElicitation,path:e.mcpDiscoveryElicitation.path,sourceKey:e.mcpDiscoveryElicitation.sourceKey,args:e.mcpDiscoveryElicitation.args,executionContext:t}));let r=0;for(;;){let n=yield*Pr.either(Pr.tryPromise({try:()=>e.connection.client.listTools(),catch:o=>o}));if(wB.isRight(n))return n.right;if(B6(n.left))return yield*n.left;if(e.mcpDiscoveryElicitation&&DB(n.left)&&r<2){yield*cce({cause:n.left,toolName:"tools/list",onElicitation:e.mcpDiscoveryElicitation.onElicitation,path:e.mcpDiscoveryElicitation.path,sourceKey:e.mcpDiscoveryElicitation.sourceKey,args:e.mcpDiscoveryElicitation.args,executionContext:t}),r+=1;continue}return yield*new wl({stage:"list_tools",message:"Failed listing MCP tools",details:tg(n.left)})}}),lMe=e=>Pr.gen(function*(){let t=e.executionContext?.onElicitation;t&&(yield*sce({client:e.connection.client,toolName:e.toolName,onElicitation:t,path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext}));let r=0;for(;;){let n=yield*Pr.either(aMe({client:e.connection.client,toolName:e.toolName,args:e.args}));if(wB.isRight(n))return n.right;if(B6(n.left))return yield*n.left;if(t&&DB(n.left)&&r<2){yield*cce({cause:n.left,toolName:e.toolName,onElicitation:t,path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext}),r+=1;continue}return yield*new wl({stage:"call_tool",message:`Failed invoking MCP tool: ${e.toolName}`,details:tg(n.left)})}});var q6=e=>{let t=e.sourceKey??"mcp.generated";return Object.fromEntries(e.manifest.tools.map(r=>{let n=Yse(e.namespace,r.toolId);return[n,Sl({tool:{description:r.description??`MCP tool: ${r.toolName}`,inputSchema:nMe(r.inputSchema),execute:async(o,i)=>{let a=await Pr.runPromiseExit(oce({connect:e.connect,onConnectError:s=>new wl({stage:"connect",message:`Failed connecting to MCP server for ${r.toolName}`,details:tg(s)}),run:s=>{let c=Gse(o),p=lMe({connection:s,toolName:r.toolName,path:n,sourceKey:t,args:c,executionContext:i});return i?.onElicitation?ice(s.client,p):p}}));if(rce.isSuccess(a))return a.value;throw tce.squash(a.cause)}},metadata:{sourceKey:t,contract:{...r.inputSchema!==void 0?{inputSchema:r.inputSchema}:{},...r.outputSchema!==void 0?{outputSchema:r.outputSchema}:{}}}})]}))},rg=e=>Pr.gen(function*(){let t=yield*oce({connect:e.connect,onConnectError:n=>new wl({stage:"connect",message:"Failed connecting to MCP server",details:tg(n)}),run:n=>{let o=cMe({connection:n,mcpDiscoveryElicitation:e.mcpDiscoveryElicitation}),i=e.mcpDiscoveryElicitation?ice(n.client,o):o;return Pr.map(i,a=>({listed:a,serverInfo:n.client.getServerVersion?.(),serverCapabilities:n.client.getServerCapabilities?.(),instructions:n.client.getInstructions?.()}))}}),r=AB(t.listed,{serverInfo:t.serverInfo,serverCapabilities:t.serverCapabilities,instructions:t.instructions});return{manifest:r,tools:q6({manifest:r,connect:e.connect,namespace:e.namespace,sourceKey:e.sourceKey})}});var IB=e=>A_.gen(function*(){let t=lm({endpoint:e.normalizedUrl,headers:e.headers,transport:"auto"}),r=yield*A_.either(rg({connect:t,sourceKey:"discovery",namespace:os(Cp(e.normalizedUrl))}));if(U6.isRight(r)){let i=Cp(e.normalizedUrl);return{detectedKind:"mcp",confidence:"high",endpoint:e.normalizedUrl,specUrl:null,name:i,namespace:os(i),transport:"auto",authInference:Pp("MCP tool discovery succeeded without an advertised auth requirement","medium"),toolCount:r.right.manifest.tools.length,warnings:[]}}let n=yield*A_.either(LT({endpoint:e.normalizedUrl,redirectUrl:"http://127.0.0.1/executor/discovery/oauth/callback",state:"source-discovery"}));if(U6.isLeft(n))return null;let o=Cp(e.normalizedUrl);return{detectedKind:"mcp",confidence:"high",endpoint:e.normalizedUrl,specUrl:null,name:o,namespace:os(o),transport:"auto",authInference:Au("oauth2",{confidence:"high",reason:"MCP endpoint advertised OAuth during discovery",headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:n.right.authorizationUrl,oauthTokenUrl:n.right.authorizationServerUrl,oauthScopes:[]}),toolCount:null,warnings:["OAuth is required before MCP tools can be listed."]}}).pipe(A_.catchAll(()=>A_.succeed(null)));import*as Pi from"effect/Schema";var kB=Pi.Struct({transport:Pi.optional(Pi.NullOr(Fc)),queryParams:Pi.optional(Pi.NullOr(Wr)),headers:Pi.optional(Pi.NullOr(Wr)),command:Pi.optional(Pi.NullOr(Pi.String)),args:Pi.optional(Pi.NullOr(v_)),env:Pi.optional(Pi.NullOr(Wr)),cwd:Pi.optional(Pi.NullOr(Pi.String))});var uMe=e=>e?.taskSupport==="optional"||e?.taskSupport==="required",pMe=e=>{let t=e.effect==="read";return{effect:e.effect,safe:t,idempotent:t||e.annotations?.idempotentHint===!0,destructive:t?!1:e.annotations?.destructiveHint!==!1}},dMe=e=>{let t=h_(e.source,e.operation.providerData.toolId),r=Oc.make(`cap_${mn({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),n=Qs.make(`exec_${mn({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"mcp"})}`),o=e.operation.outputSchema!==void 0?e.importer.importSchema(e.operation.outputSchema,`#/mcp/${e.operation.providerData.toolId}/output`):void 0,i=e.operation.inputSchema===void 0?e.importer.importSchema({type:"object",properties:{},additionalProperties:!1},`#/mcp/${e.operation.providerData.toolId}/call`):rB(e.operation.inputSchema)?e.importer.importSchema(e.operation.inputSchema,`#/mcp/${e.operation.providerData.toolId}/call`,e.operation.inputSchema):e.importer.importSchema(lv({type:"object",properties:{input:e.operation.inputSchema},required:["input"],additionalProperties:!1},e.operation.inputSchema),`#/mcp/${e.operation.providerData.toolId}/call`),a=e.importer.importSchema({type:"null"},`#/mcp/${e.operation.providerData.toolId}/status`),s=Nc.make(`response_${mn({capabilityId:r})}`);Vr(e.catalog.symbols)[s]={id:s,kind:"response",...wn({description:e.operation.providerData.description??e.operation.description})?{docs:wn({description:e.operation.providerData.description??e.operation.description})}:{},...o?{contents:[{mediaType:"application/json",shapeId:o}]}:{},synthetic:!1,provenance:un(e.documentId,`#/mcp/${e.operation.providerData.toolId}/response`)};let c=g_({catalog:e.catalog,responseId:s,provenance:un(e.documentId,`#/mcp/${e.operation.providerData.toolId}/responseSet`)});Vr(e.catalog.executables)[n]={id:n,capabilityId:r,scopeId:e.serviceScopeId,adapterKey:"mcp",bindingVersion:Ca,binding:e.operation.providerData,projection:{responseSetId:c,callShapeId:i,...o?{resultDataShapeId:o}:{},resultStatusShapeId:a},display:{protocol:"mcp",method:null,pathTemplate:null,operationId:e.operation.providerData.toolName,group:null,leaf:e.operation.providerData.toolName,rawToolId:e.operation.providerData.toolId,title:e.operation.providerData.displayTitle,summary:e.operation.providerData.description??e.operation.description??null},synthetic:!1,provenance:un(e.documentId,`#/mcp/${e.operation.providerData.toolId}/executable`)};let p=y_(e.operation.effect);Vr(e.catalog.capabilities)[r]={id:r,serviceScopeId:e.serviceScopeId,surface:{toolPath:t,title:e.operation.providerData.displayTitle,...e.operation.providerData.description?{summary:e.operation.providerData.description}:{}},semantics:pMe({effect:e.operation.effect,annotations:e.operation.providerData.annotations}),auth:{kind:"none"},interaction:{...p,resume:{supported:uMe(e.operation.providerData.execution)}},executableIds:[n],synthetic:!1,provenance:un(e.documentId,`#/mcp/${e.operation.providerData.toolId}/capability`)}},lce=e=>S_({source:e.source,documents:e.documents,registerOperations:({catalog:t,documentId:r,serviceScopeId:n,importer:o})=>{for(let i of e.operations)dMe({catalog:t,source:e.source,documentId:r,serviceScopeId:n,operation:i,importer:o})}});import*as Oi from"effect/Effect";import*as Mt from"effect/Schema";var uce=e=>Tc({headers:{...e.headers,...e.authHeaders},cookies:e.authCookies}),CB=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},_Me=e=>e,fMe=e=>{let t=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"");return t.length>0?t:"source"},pce=(e,t)=>Co("mcp/adapter",t===void 0?e:`${e}: ${t instanceof Error?t.message:String(t)}`),mMe=Mt.optional(Mt.NullOr(v_)),hMe=Mt.extend(vB,Mt.Struct({kind:Mt.Literal("mcp"),endpoint:Ho,name:Ho,namespace:Ho})),yMe=Mt.extend(vB,Mt.Struct({kind:Mt.optional(Mt.Literal("mcp")),endpoint:Ho,name:Ho,namespace:Ho})),dce=Mt.Struct({transport:Mt.NullOr(Fc),queryParams:Mt.NullOr(Wr),headers:Mt.NullOr(Wr),command:Mt.NullOr(Mt.String),args:Mt.NullOr(v_),env:Mt.NullOr(Wr),cwd:Mt.NullOr(Mt.String)}),gMe=Mt.Struct({transport:Mt.optional(Mt.NullOr(Fc)),queryParams:Mt.optional(Mt.NullOr(Wr)),headers:Mt.optional(Mt.NullOr(Wr)),command:Mt.optional(Mt.NullOr(Mt.String)),args:mMe,env:Mt.optional(Mt.NullOr(Wr)),cwd:Mt.optional(Mt.NullOr(Mt.String))}),SMe=Mt.Struct({toolId:Mt.String,toolName:Mt.String,displayTitle:Mt.String,title:Mt.NullOr(Mt.String),description:Mt.NullOr(Mt.String),annotations:Mt.NullOr(Mt.Unknown),execution:Mt.NullOr(Mt.Unknown),icons:Mt.NullOr(Mt.Unknown),meta:Mt.NullOr(Mt.Unknown),rawTool:Mt.NullOr(Mt.Unknown),server:Mt.NullOr(Mt.Unknown)}),$T=1,_ce=(e,t)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&t.some(r=>Object.prototype.hasOwnProperty.call(e,r)),PB=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},vMe=e=>{if(!e||e.length===0)return null;let t=e.map(r=>r.trim()).filter(r=>r.length>0);return t.length>0?t:null},bMe=e=>Oi.gen(function*(){let t=PB(e.command);return Qy({transport:e.transport??void 0,command:t??void 0})?t===null?yield*Co("mcp/adapter","MCP stdio transport requires a command"):e.queryParams&&Object.keys(e.queryParams).length>0?yield*Co("mcp/adapter","MCP stdio transport does not support query params"):e.headers&&Object.keys(e.headers).length>0?yield*Co("mcp/adapter","MCP stdio transport does not support request headers"):{transport:"stdio",queryParams:null,headers:null,command:t,args:vMe(e.args),env:e.env??null,cwd:PB(e.cwd)}:t!==null||e.args||e.env||PB(e.cwd)!==null?yield*Co("mcp/adapter",'MCP process settings require transport: "stdio"'):{transport:e.transport??null,queryParams:e.queryParams??null,headers:e.headers??null,command:null,args:null,env:null,cwd:null}}),ng=e=>Oi.gen(function*(){if(_ce(e.binding,["specUrl"]))return yield*Co("mcp/adapter","MCP sources cannot define specUrl");if(_ce(e.binding,["defaultHeaders"]))return yield*Co("mcp/adapter","MCP sources cannot define HTTP source settings");let t=yield*$p({sourceId:e.id,label:"MCP",version:e.bindingVersion,expectedVersion:$T,schema:gMe,value:e.binding,allowedKeys:["transport","queryParams","headers","command","args","env","cwd"]});return yield*bMe(t)}),xMe=e=>e.annotations?.readOnlyHint===!0?"read":"write",EMe=e=>({toolId:e.entry.toolId,title:e.entry.displayTitle??e.entry.title??e.entry.toolName,description:e.entry.description??null,effect:xMe(e.entry),inputSchema:e.entry.inputSchema,outputSchema:e.entry.outputSchema,providerData:{toolId:e.entry.toolId,toolName:e.entry.toolName,displayTitle:e.entry.displayTitle??e.entry.title??e.entry.toolName,title:e.entry.title??null,description:e.entry.description??null,annotations:e.entry.annotations??null,execution:e.entry.execution??null,icons:e.entry.icons??null,meta:e.entry.meta??null,rawTool:e.entry.rawTool??null,server:e.server??null}}),OB=e=>{let t=Date.now(),r=JSON.stringify(e.manifest),n=FT(r);return Np({fragment:lce({source:e.source,documents:[{documentKind:"mcp_manifest",documentKey:e.endpoint,contentText:r,fetchedAt:t}],operations:e.manifest.tools.map(o=>EMe({entry:o,server:e.manifest.server}))}),importMetadata:ws({source:e.source,adapterKey:"mcp"}),sourceHash:n})},fce={key:"mcp",displayName:"MCP",catalogKind:"imported",connectStrategy:"interactive",credentialStrategy:"adapter_defined",bindingConfigVersion:$T,providerKey:"generic_mcp",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:hMe,executorAddInputSchema:yMe,executorAddHelpText:['Omit kind or set kind: "mcp". For remote servers, provide endpoint plus optional transport/queryParams/headers.','For local servers, set transport: "stdio" and provide command plus optional args/env/cwd.'],executorAddInputSignatureWidth:240,localConfigBindingSchema:kB,localConfigBindingFromSource:e=>Oi.runSync(Oi.map(ng(e),t=>({transport:t.transport,queryParams:t.queryParams,headers:t.headers,command:t.command,args:t.args,env:t.env,cwd:t.cwd}))),serializeBindingConfig:e=>Rp({adapterKey:"mcp",version:$T,payloadSchema:dce,payload:Oi.runSync(ng(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:t})=>Oi.map(Lp({sourceId:e,label:"MCP",adapterKey:"mcp",version:$T,payloadSchema:dce,value:t}),({version:r,payload:n})=>({version:r,payload:n})),bindingStateFromSource:e=>Oi.map(ng(e),t=>({...Fp,transport:t.transport,queryParams:t.queryParams,headers:t.headers,command:t.command,args:t.args,env:t.env,cwd:t.cwd})),sourceConfigFromSource:e=>Oi.runSync(Oi.map(ng(e),t=>({kind:"mcp",endpoint:e.endpoint,transport:t.transport,queryParams:t.queryParams,headers:t.headers,command:t.command,args:t.args,env:t.env,cwd:t.cwd}))),validateSource:e=>Oi.gen(function*(){let t=yield*ng(e);return{...e,bindingVersion:$T,binding:{transport:t.transport,queryParams:t.queryParams,headers:t.headers,command:t.command,args:t.args,env:t.env,cwd:t.cwd}}}),shouldAutoProbe:()=>!1,discoveryPriority:({normalizedUrl:e})=>fm(e)?350:125,detectSource:({normalizedUrl:e,headers:t})=>IB({normalizedUrl:e,headers:t}),syncCatalog:({source:e,resolveAuthMaterialForSlot:t})=>Oi.gen(function*(){let r=yield*ng(e),n=yield*t("import"),o=lm({endpoint:e.endpoint,transport:r.transport??void 0,queryParams:{...r.queryParams,...n.queryParams},headers:uce({headers:r.headers??{},authHeaders:n.headers,authCookies:n.cookies}),authProvider:n.authProvider,command:r.command??void 0,args:r.args??void 0,env:r.env??void 0,cwd:r.cwd??void 0}),i=yield*rg({connect:o,namespace:e.namespace??fMe(e.name),sourceKey:e.id}).pipe(Oi.mapError(a=>new Error(`Failed discovering MCP tools for ${e.id}: ${a.message}${a.details?` (${a.details})`:""}`)));return OB({source:e,endpoint:e.endpoint,manifest:i.manifest})}),invoke:e=>Oi.gen(function*(){if(e.executable.adapterKey!=="mcp")return yield*Co("mcp/adapter",`Expected MCP executable binding, got ${e.executable.adapterKey}`);let t=yield*Oi.try({try:()=>Sm({executableId:e.executable.id,label:"MCP",version:e.executable.bindingVersion,expectedVersion:Ca,schema:SMe,value:e.executable.binding}),catch:y=>pce("Failed decoding MCP executable binding",y)}),r=yield*ng(e.source),n=pL({connect:lm({endpoint:e.source.endpoint,transport:r.transport??void 0,queryParams:{...r.queryParams,...e.auth.queryParams},headers:uce({headers:r.headers??{},authHeaders:e.auth.headers,authCookies:e.auth.cookies}),authProvider:e.auth.authProvider,command:r.command??void 0,args:r.args??void 0,env:r.env??void 0,cwd:r.cwd??void 0}),runId:typeof e.context?.runId=="string"&&e.context.runId.length>0?e.context.runId:void 0,sourceKey:e.source.id}),i=q6({manifest:{version:2,tools:[{toolId:t.toolName,toolName:t.toolName,displayTitle:e.capability.surface.title??e.executable.display?.title??t.toolName,title:e.capability.surface.title??e.executable.display?.title??null,description:e.capability.surface.summary??e.capability.surface.description??e.executable.display?.summary??`MCP tool: ${t.toolName}`,annotations:null,execution:null,icons:null,meta:null,rawTool:null,inputSchema:e.descriptor.contract?.inputSchema,outputSchema:e.descriptor.contract?.outputSchema}]},connect:n,sourceKey:e.source.id})[t.toolName],a=i&&typeof i=="object"&&i!==null&&"tool"in i?i.tool:i;if(!a)return yield*Co("mcp/adapter",`Missing MCP tool definition for ${t.toolName}`);let s=e.executable.projection.callShapeId?e.catalog.symbols[e.executable.projection.callShapeId]:void 0,c=s?.kind==="shape"&&s.node.type!=="object"?CB(e.args).input:e.args,p=e.onElicitation?{path:_Me(e.descriptor.path),sourceKey:e.source.id,metadata:{sourceKey:e.source.id,interaction:e.descriptor.interaction,contract:{...e.descriptor.contract?.inputSchema!==void 0?{inputSchema:e.descriptor.contract.inputSchema}:{},...e.descriptor.contract?.outputSchema!==void 0?{outputSchema:e.descriptor.contract.outputSchema}:{}},providerKind:e.descriptor.providerKind,providerData:e.descriptor.providerData},invocation:e.context,onElicitation:e.onElicitation}:void 0,d=yield*Oi.tryPromise({try:async()=>await a.execute(CB(c),p),catch:y=>pce(`Failed invoking MCP tool ${t.toolName}`,y)}),m=CB(d).isError===!0;return{data:m?null:d??null,error:m?d:null,headers:{},status:null}})};import*as li from"effect/Effect";import*as Eo from"effect/Layer";import*as G2e from"effect/ManagedRuntime";import*as tle from"effect/Context";import*as I_ from"effect/Effect";import*as rle from"effect/Layer";import*as nle from"effect/Option";import*as mce from"effect/Context";var Wn=class extends mce.Tag("#runtime/ExecutorStateStore")(){};import{Schema as TMe}from"effect";var wt=TMe.Number;import{Schema as tt}from"effect";import{Schema as oo}from"effect";var hn=oo.String.pipe(oo.brand("ScopeId")),Mn=oo.String.pipe(oo.brand("SourceId")),Rc=oo.String.pipe(oo.brand("SourceCatalogId")),bm=oo.String.pipe(oo.brand("SourceCatalogRevisionId")),xm=oo.String.pipe(oo.brand("SourceAuthSessionId")),og=oo.String.pipe(oo.brand("AuthArtifactId")),yv=oo.String.pipe(oo.brand("AuthLeaseId"));var z6=oo.String.pipe(oo.brand("ScopedSourceOauthClientId")),Em=oo.String.pipe(oo.brand("ScopeOauthClientId")),jp=oo.String.pipe(oo.brand("ProviderAuthGrantId")),Bp=oo.String.pipe(oo.brand("SecretMaterialId")),gv=oo.String.pipe(oo.brand("PolicyId")),Il=oo.String.pipe(oo.brand("ExecutionId")),Is=oo.String.pipe(oo.brand("ExecutionInteractionId")),V6=oo.String.pipe(oo.brand("ExecutionStepId"));import{Schema as Le}from"effect";import*as Tm from"effect/Option";var pi=Le.Struct({providerId:Le.String,handle:Le.String}),MT=Le.Literal("runtime","import"),hce=MT,yce=Le.String,DMe=Le.Array(Le.String),J6=Le.Union(Le.Struct({kind:Le.Literal("literal"),value:Le.String}),Le.Struct({kind:Le.Literal("secret_ref"),ref:pi})),gce=Le.Union(Le.Struct({location:Le.Literal("header"),name:Le.String,parts:Le.Array(J6)}),Le.Struct({location:Le.Literal("query"),name:Le.String,parts:Le.Array(J6)}),Le.Struct({location:Le.Literal("cookie"),name:Le.String,parts:Le.Array(J6)}),Le.Struct({location:Le.Literal("body"),path:Le.String,parts:Le.Array(J6)})),AMe=Le.Union(Le.Struct({location:Le.Literal("header"),name:Le.String,value:Le.String}),Le.Struct({location:Le.Literal("query"),name:Le.String,value:Le.String}),Le.Struct({location:Le.Literal("cookie"),name:Le.String,value:Le.String}),Le.Struct({location:Le.Literal("body"),path:Le.String,value:Le.String})),K6=Le.parseJson(Le.Array(gce)),Dm="static_bearer",Am="static_oauth2",ig="static_placements",kl="oauth2_authorized_user",NB="provider_grant_ref",FB="mcp_oauth",Sv=Le.Literal("none","client_secret_post"),wMe=Le.Literal(Dm,Am,ig,kl),IMe=Le.Struct({headerName:Le.String,prefix:Le.String,token:pi}),kMe=Le.Struct({headerName:Le.String,prefix:Le.String,accessToken:pi,refreshToken:Le.NullOr(pi)}),CMe=Le.Struct({placements:Le.Array(gce)}),PMe=Le.Struct({headerName:Le.String,prefix:Le.String,tokenEndpoint:Le.String,clientId:Le.String,clientAuthentication:Sv,clientSecret:Le.NullOr(pi),refreshToken:pi}),OMe=Le.Struct({grantId:jp,providerKey:Le.String,requiredScopes:Le.Array(Le.String),headerName:Le.String,prefix:Le.String}),NMe=Le.Struct({redirectUri:Le.String,accessToken:pi,refreshToken:Le.NullOr(pi),tokenType:Le.String,expiresIn:Le.NullOr(Le.Number),scope:Le.NullOr(Le.String),resourceMetadataUrl:Le.NullOr(Le.String),authorizationServerUrl:Le.NullOr(Le.String),resourceMetadataJson:Le.NullOr(Le.String),authorizationServerMetadataJson:Le.NullOr(Le.String),clientInformationJson:Le.NullOr(Le.String)}),RB=Le.parseJson(IMe),LB=Le.parseJson(kMe),$B=Le.parseJson(CMe),MB=Le.parseJson(PMe),jB=Le.parseJson(OMe),jT=Le.parseJson(NMe),fLt=Le.parseJson(Le.Array(AMe)),BB=Le.parseJson(DMe),FMe=Le.decodeUnknownOption(RB),RMe=Le.decodeUnknownOption(LB),LMe=Le.decodeUnknownOption($B),$Me=Le.decodeUnknownOption(MB),MMe=Le.decodeUnknownOption(jB),jMe=Le.decodeUnknownOption(jT),BMe=Le.decodeUnknownOption(BB),Sce=Le.Struct({id:og,scopeId:hn,sourceId:Mn,actorScopeId:Le.NullOr(hn),slot:MT,artifactKind:yce,configJson:Le.String,grantSetJson:Le.NullOr(Le.String),createdAt:wt,updatedAt:wt}),qp=e=>{if(e.artifactKind!==NB)return null;let t=MMe(e.configJson);return Tm.isSome(t)?t.value:null},vv=e=>{if(e.artifactKind!==FB)return null;let t=jMe(e.configJson);return Tm.isSome(t)?t.value:null},wm=e=>{switch(e.artifactKind){case Dm:{let t=FMe(e.configJson);return Tm.isSome(t)?{artifactKind:Dm,config:t.value}:null}case Am:{let t=RMe(e.configJson);return Tm.isSome(t)?{artifactKind:Am,config:t.value}:null}case ig:{let t=LMe(e.configJson);return Tm.isSome(t)?{artifactKind:ig,config:t.value}:null}case kl:{let t=$Me(e.configJson);return Tm.isSome(t)?{artifactKind:kl,config:t.value}:null}default:return null}},qMe=e=>{let t=e!==null&&typeof e=="object"?e.grantSetJson:e;if(t===null)return null;let r=BMe(t);return Tm.isSome(r)?r.value:null},vce=qMe,bce=e=>{let t=wm(e);if(t!==null)switch(t.artifactKind){case Dm:return[t.config.token];case Am:return t.config.refreshToken?[t.config.accessToken,t.config.refreshToken]:[t.config.accessToken];case ig:return t.config.placements.flatMap(n=>n.parts.flatMap(o=>o.kind==="secret_ref"?[o.ref]:[]));case kl:return t.config.clientSecret?[t.config.refreshToken,t.config.clientSecret]:[t.config.refreshToken]}let r=vv(e);return r!==null?r.refreshToken?[r.accessToken,r.refreshToken]:[r.accessToken]:[]};import{Schema as it}from"effect";var xce=it.String,Ece=it.Literal("pending","completed","failed","cancelled"),qB=it.suspend(()=>it.Union(it.String,it.Number,it.Boolean,it.Null,it.Array(qB),it.Record({key:it.String,value:qB}))).annotations({identifier:"JsonValue"}),bv=it.Record({key:it.String,value:qB}).annotations({identifier:"JsonObject"}),UMe=it.Struct({kind:it.Literal("mcp_oauth"),endpoint:it.String,redirectUri:it.String,scope:it.NullOr(it.String),resourceMetadataUrl:it.NullOr(it.String),authorizationServerUrl:it.NullOr(it.String),resourceMetadata:it.NullOr(bv),authorizationServerMetadata:it.NullOr(bv),clientInformation:it.NullOr(bv),codeVerifier:it.NullOr(it.String),authorizationUrl:it.NullOr(it.String)}),UB=it.parseJson(UMe),zMe=it.Struct({kind:it.Literal("oauth2_pkce"),providerKey:it.String,authorizationEndpoint:it.String,tokenEndpoint:it.String,redirectUri:it.String,clientId:it.String,clientAuthentication:Sv,clientSecret:it.NullOr(pi),scopes:it.Array(it.String),headerName:it.String,prefix:it.String,authorizationParams:it.Record({key:it.String,value:it.String}),codeVerifier:it.NullOr(it.String),authorizationUrl:it.NullOr(it.String)}),zB=it.parseJson(zMe),VMe=it.Struct({sourceId:Mn,requiredScopes:it.Array(it.String)}),JMe=it.Struct({kind:it.Literal("provider_oauth_batch"),providerKey:it.String,authorizationEndpoint:it.String,tokenEndpoint:it.String,redirectUri:it.String,oauthClientId:Em,clientAuthentication:Sv,scopes:it.Array(it.String),headerName:it.String,prefix:it.String,authorizationParams:it.Record({key:it.String,value:it.String}),targetSources:it.Array(VMe),codeVerifier:it.NullOr(it.String),authorizationUrl:it.NullOr(it.String)}),VB=it.parseJson(JMe),Tce=it.Struct({id:xm,scopeId:hn,sourceId:Mn,actorScopeId:it.NullOr(hn),credentialSlot:hce,executionId:it.NullOr(Il),interactionId:it.NullOr(Is),providerKind:xce,status:Ece,state:it.String,sessionDataJson:it.String,errorText:it.NullOr(it.String),completedAt:it.NullOr(wt),createdAt:wt,updatedAt:wt});var G6=tt.String,xv=tt.Literal("draft","probing","auth_required","connected","error"),JB=tt.Union(tt.Struct({kind:tt.Literal("none")}),tt.Struct({kind:tt.Literal("bearer"),headerName:tt.String,prefix:tt.String,token:pi}),tt.Struct({kind:tt.Literal("oauth2"),headerName:tt.String,prefix:tt.String,accessToken:pi,refreshToken:tt.NullOr(pi)}),tt.Struct({kind:tt.Literal("oauth2_authorized_user"),headerName:tt.String,prefix:tt.String,tokenEndpoint:tt.String,clientId:tt.String,clientAuthentication:tt.Literal("none","client_secret_post"),clientSecret:tt.NullOr(pi),refreshToken:pi,grantSet:tt.NullOr(tt.Array(tt.String))}),tt.Struct({kind:tt.Literal("provider_grant_ref"),grantId:jp,providerKey:tt.String,requiredScopes:tt.Array(tt.String),headerName:tt.String,prefix:tt.String}),tt.Struct({kind:tt.Literal("mcp_oauth"),redirectUri:tt.String,accessToken:pi,refreshToken:tt.NullOr(pi),tokenType:tt.String,expiresIn:tt.NullOr(tt.Number),scope:tt.NullOr(tt.String),resourceMetadataUrl:tt.NullOr(tt.String),authorizationServerUrl:tt.NullOr(tt.String),resourceMetadataJson:tt.NullOr(tt.String),authorizationServerMetadataJson:tt.NullOr(tt.String),clientInformationJson:tt.NullOr(tt.String)})),KB=tt.Number,KMe=tt.Struct({version:KB,payload:bv}),GMe=tt.Struct({scopeId:hn,sourceId:Mn,catalogId:Rc,catalogRevisionId:bm,name:tt.String,kind:G6,endpoint:tt.String,status:xv,enabled:tt.Boolean,namespace:tt.NullOr(tt.String),importAuthPolicy:ym,bindingConfigJson:tt.String,sourceHash:tt.NullOr(tt.String),lastError:tt.NullOr(tt.String),createdAt:wt,updatedAt:wt}),kLt=tt.transform(GMe,tt.Struct({id:Mn,scopeId:hn,catalogId:Rc,catalogRevisionId:bm,name:tt.String,kind:G6,endpoint:tt.String,status:xv,enabled:tt.Boolean,namespace:tt.NullOr(tt.String),importAuthPolicy:ym,bindingConfigJson:tt.String,sourceHash:tt.NullOr(tt.String),lastError:tt.NullOr(tt.String),createdAt:wt,updatedAt:wt}),{strict:!1,decode:e=>({id:e.sourceId,scopeId:e.scopeId,catalogId:e.catalogId,catalogRevisionId:e.catalogRevisionId,name:e.name,kind:e.kind,endpoint:e.endpoint,status:e.status,enabled:e.enabled,namespace:e.namespace,importAuthPolicy:e.importAuthPolicy,bindingConfigJson:e.bindingConfigJson,sourceHash:e.sourceHash,lastError:e.lastError,createdAt:e.createdAt,updatedAt:e.updatedAt}),encode:e=>({scopeId:e.scopeId,sourceId:e.id,catalogId:e.catalogId,catalogRevisionId:e.catalogRevisionId,name:e.name,kind:e.kind,endpoint:e.endpoint,status:e.status,enabled:e.enabled,namespace:e.namespace,importAuthPolicy:e.importAuthPolicy,bindingConfigJson:e.bindingConfigJson,sourceHash:e.sourceHash,lastError:e.lastError,createdAt:e.createdAt,updatedAt:e.updatedAt})}),Up=tt.Struct({id:Mn,scopeId:hn,name:tt.String,kind:G6,endpoint:tt.String,status:xv,enabled:tt.Boolean,namespace:tt.NullOr(tt.String),bindingVersion:KB,binding:bv,importAuthPolicy:ym,importAuth:JB,auth:JB,sourceHash:tt.NullOr(tt.String),lastError:tt.NullOr(tt.String),createdAt:wt,updatedAt:wt});import{Schema as Pa}from"effect";var Dce=Pa.Literal("imported","internal"),Ace=Pa.String,wce=Pa.Literal("private","scope","organization","public"),RLt=Pa.Struct({id:Rc,kind:Dce,adapterKey:Ace,providerKey:Pa.String,name:Pa.String,summary:Pa.NullOr(Pa.String),visibility:wce,latestRevisionId:bm,createdAt:wt,updatedAt:wt}),BT=Pa.Struct({id:bm,catalogId:Rc,revisionNumber:Pa.Number,sourceConfigJson:Pa.String,importMetadataJson:Pa.NullOr(Pa.String),importMetadataHash:Pa.NullOr(Pa.String),snapshotHash:Pa.NullOr(Pa.String),createdAt:wt,updatedAt:wt});import{Schema as Im}from"effect";var Ice=Im.Literal("allow","deny"),kce=Im.Literal("auto","required"),HMe=Im.Struct({id:gv,key:Im.String,scopeId:hn,resourcePattern:Im.String,effect:Ice,approvalMode:kce,priority:Im.Number,enabled:Im.Boolean,createdAt:wt,updatedAt:wt});var ULt=Im.partial(HMe);import{Schema as Ev}from"effect";import*as Cce from"effect/Option";var Pce=Ev.Struct({id:yv,authArtifactId:og,scopeId:hn,sourceId:Mn,actorScopeId:Ev.NullOr(hn),slot:MT,placementsTemplateJson:Ev.String,expiresAt:Ev.NullOr(wt),refreshAfter:Ev.NullOr(wt),createdAt:wt,updatedAt:wt}),ZMe=Ev.decodeUnknownOption(K6),WMe=e=>{let t=ZMe(e.placementsTemplateJson);return Cce.isSome(t)?t.value:null},GB=e=>(WMe(e)??[]).flatMap(t=>t.parts.flatMap(r=>r.kind==="secret_ref"?[r.ref]:[]));import{Schema as Cl}from"effect";var QMe=Cl.Struct({redirectMode:Cl.optional(L6)}),HB=Cl.parseJson(QMe),Oce=Cl.Struct({id:z6,scopeId:hn,sourceId:Mn,providerKey:Cl.String,clientId:Cl.String,clientSecretProviderId:Cl.NullOr(Cl.String),clientSecretHandle:Cl.NullOr(Cl.String),clientMetadataJson:Cl.NullOr(Cl.String),createdAt:wt,updatedAt:wt});import{Schema as Cu}from"effect";var Nce=Cu.Struct({id:Em,scopeId:hn,providerKey:Cu.String,label:Cu.NullOr(Cu.String),clientId:Cu.String,clientSecretProviderId:Cu.NullOr(Cu.String),clientSecretHandle:Cu.NullOr(Cu.String),clientMetadataJson:Cu.NullOr(Cu.String),createdAt:wt,updatedAt:wt});import{Schema as zp}from"effect";var Fce=zp.Struct({id:jp,scopeId:hn,actorScopeId:zp.NullOr(hn),providerKey:zp.String,oauthClientId:Em,tokenEndpoint:zp.String,clientAuthentication:Sv,headerName:zp.String,prefix:zp.String,refreshToken:pi,grantedScopes:zp.Array(zp.String),lastRefreshedAt:zp.NullOr(wt),orphanedAt:zp.NullOr(wt),createdAt:wt,updatedAt:wt});import{Schema as km}from"effect";var XMe=km.Literal("auth_material","oauth_access_token","oauth_refresh_token","oauth_client_info"),Rce=km.Struct({id:Bp,name:km.NullOr(km.String),purpose:XMe,providerId:km.String,handle:km.String,value:km.NullOr(km.String),createdAt:wt,updatedAt:wt});import*as Tv from"effect/Schema";var YMe=Tv.Struct({scopeId:hn,actorScopeId:hn,resolutionScopeIds:Tv.Array(hn)});var T$t=Tv.partial(YMe);import{Schema as Ae}from"effect";var e7e=Ae.Literal("quickjs","ses","deno"),t7e=Ae.Literal("env","file","exec","params"),r7e=Ae.Struct({source:Ae.Literal("env")}),n7e=Ae.Literal("singleValue","json"),o7e=Ae.Struct({source:Ae.Literal("file"),path:Ae.String,mode:Ae.optional(n7e)}),i7e=Ae.Struct({source:Ae.Literal("exec"),command:Ae.String,args:Ae.optional(Ae.Array(Ae.String)),env:Ae.optional(Ae.Record({key:Ae.String,value:Ae.String})),allowSymlinkCommand:Ae.optional(Ae.Boolean),trustedDirs:Ae.optional(Ae.Array(Ae.String))}),a7e=Ae.Union(r7e,o7e,i7e),s7e=Ae.Struct({source:t7e,provider:Ae.String,id:Ae.String}),c7e=Ae.Union(Ae.String,s7e),l7e=Ae.Struct({endpoint:Ae.String,auth:Ae.optional(c7e)}),H6=Ae.Struct({name:Ae.optional(Ae.String),namespace:Ae.optional(Ae.String),enabled:Ae.optional(Ae.Boolean),connection:l7e}),u7e=Ae.Struct({specUrl:Ae.String,defaultHeaders:Ae.optional(Ae.NullOr(Wr))}),p7e=Ae.Struct({defaultHeaders:Ae.optional(Ae.NullOr(Wr))}),d7e=Ae.Struct({service:Ae.String,version:Ae.String,discoveryUrl:Ae.optional(Ae.NullOr(Ae.String)),defaultHeaders:Ae.optional(Ae.NullOr(Wr)),scopes:Ae.optional(Ae.Array(Ae.String))}),_7e=Ae.Struct({transport:Ae.optional(Ae.NullOr(Fc)),queryParams:Ae.optional(Ae.NullOr(Wr)),headers:Ae.optional(Ae.NullOr(Wr)),command:Ae.optional(Ae.NullOr(Ae.String)),args:Ae.optional(Ae.NullOr(v_)),env:Ae.optional(Ae.NullOr(Wr)),cwd:Ae.optional(Ae.NullOr(Ae.String))}),f7e=Ae.extend(H6,Ae.Struct({kind:Ae.Literal("openapi"),binding:u7e})),m7e=Ae.extend(H6,Ae.Struct({kind:Ae.Literal("graphql"),binding:p7e})),h7e=Ae.extend(H6,Ae.Struct({kind:Ae.Literal("google_discovery"),binding:d7e})),y7e=Ae.extend(H6,Ae.Struct({kind:Ae.Literal("mcp"),binding:_7e})),g7e=Ae.Union(f7e,m7e,h7e,y7e),S7e=Ae.Literal("allow","deny"),v7e=Ae.Literal("auto","manual"),b7e=Ae.Struct({match:Ae.String,action:S7e,approval:v7e,enabled:Ae.optional(Ae.Boolean),priority:Ae.optional(Ae.Number)}),x7e=Ae.Struct({providers:Ae.optional(Ae.Record({key:Ae.String,value:a7e})),defaults:Ae.optional(Ae.Struct({env:Ae.optional(Ae.String),file:Ae.optional(Ae.String),exec:Ae.optional(Ae.String)}))}),E7e=Ae.Struct({name:Ae.optional(Ae.String)}),Lce=Ae.Struct({runtime:Ae.optional(e7e),workspace:Ae.optional(E7e),sources:Ae.optional(Ae.Record({key:Ae.String,value:g7e})),policies:Ae.optional(Ae.Record({key:Ae.String,value:b7e})),secrets:Ae.optional(x7e)});import{Schema as Ut}from"effect";var $ce=Ut.Literal("pending","running","waiting_for_interaction","completed","failed","cancelled"),ZB=Ut.Struct({id:Il,scopeId:hn,createdByScopeId:hn,status:$ce,code:Ut.String,resultJson:Ut.NullOr(Ut.String),errorText:Ut.NullOr(Ut.String),logsJson:Ut.NullOr(Ut.String),startedAt:Ut.NullOr(wt),completedAt:Ut.NullOr(wt),createdAt:wt,updatedAt:wt});var O$t=Ut.partial(Ut.Struct({status:$ce,code:Ut.String,resultJson:Ut.NullOr(Ut.String),errorText:Ut.NullOr(Ut.String),logsJson:Ut.NullOr(Ut.String),startedAt:Ut.NullOr(wt),completedAt:Ut.NullOr(wt),updatedAt:wt})),Mce=Ut.Literal("pending","resolved","cancelled"),WB=Ut.Struct({id:Is,executionId:Il,status:Mce,kind:Ut.String,purpose:Ut.String,payloadJson:Ut.String,responseJson:Ut.NullOr(Ut.String),responsePrivateJson:Ut.NullOr(Ut.String),createdAt:wt,updatedAt:wt});var N$t=Ut.partial(Ut.Struct({status:Mce,kind:Ut.String,purpose:Ut.String,payloadJson:Ut.String,responseJson:Ut.NullOr(Ut.String),responsePrivateJson:Ut.NullOr(Ut.String),updatedAt:wt})),F$t=Ut.Struct({execution:ZB,pendingInteraction:Ut.NullOr(WB)}),T7e=Ut.Literal("tool_call"),jce=Ut.Literal("pending","waiting","completed","failed"),Bce=Ut.Struct({id:V6,executionId:Il,sequence:Ut.Number,kind:T7e,status:jce,path:Ut.String,argsJson:Ut.String,resultJson:Ut.NullOr(Ut.String),errorText:Ut.NullOr(Ut.String),interactionId:Ut.NullOr(Is),createdAt:wt,updatedAt:wt});var R$t=Ut.partial(Ut.Struct({status:jce,resultJson:Ut.NullOr(Ut.String),errorText:Ut.NullOr(Ut.String),interactionId:Ut.NullOr(Is),updatedAt:wt}));import{Schema as ze}from"effect";var D7e=ze.Literal("ir"),A7e=ze.Struct({path:ze.String,sourceKey:ze.String,title:ze.optional(ze.String),description:ze.optional(ze.String),protocol:ze.String,toolId:ze.String,rawToolId:ze.NullOr(ze.String),operationId:ze.NullOr(ze.String),group:ze.NullOr(ze.String),leaf:ze.NullOr(ze.String),tags:ze.Array(ze.String),method:ze.NullOr(ze.String),pathTemplate:ze.NullOr(ze.String),inputTypePreview:ze.optional(ze.String),outputTypePreview:ze.optional(ze.String)}),w7e=ze.Struct({label:ze.String,value:ze.String,mono:ze.optional(ze.Boolean)}),I7e=ze.Struct({kind:ze.Literal("facts"),title:ze.String,items:ze.Array(w7e)}),k7e=ze.Struct({kind:ze.Literal("markdown"),title:ze.String,body:ze.String}),C7e=ze.Struct({kind:ze.Literal("code"),title:ze.String,language:ze.String,body:ze.String}),P7e=ze.Union(I7e,k7e,C7e),O7e=ze.Struct({path:ze.String,method:ze.NullOr(ze.String),inputTypePreview:ze.optional(ze.String),outputTypePreview:ze.optional(ze.String)}),qce=ze.Struct({shapeId:ze.NullOr(ze.String),typePreview:ze.NullOr(ze.String),typeDeclaration:ze.NullOr(ze.String),schemaJson:ze.NullOr(ze.String),exampleJson:ze.NullOr(ze.String)}),N7e=ze.Struct({callSignature:ze.String,callDeclaration:ze.String,callShapeId:ze.String,resultShapeId:ze.NullOr(ze.String),responseSetId:ze.String,input:qce,output:qce}),j$t=ze.Struct({source:Up,namespace:ze.String,pipelineKind:D7e,toolCount:ze.Number,tools:ze.Array(O7e)}),B$t=ze.Struct({summary:A7e,contract:N7e,sections:ze.Array(P7e)}),q$t=ze.Struct({query:ze.String,limit:ze.optional(ze.Number)}),F7e=ze.Struct({path:ze.String,score:ze.Number,description:ze.optional(ze.String),inputTypePreview:ze.optional(ze.String),outputTypePreview:ze.optional(ze.String),reasons:ze.Array(ze.String)}),U$t=ze.Struct({query:ze.String,queryTokens:ze.Array(ze.String),bestPath:ze.NullOr(ze.String),total:ze.Number,results:ze.Array(F7e)});import{Schema as Uce}from"effect";var K$t=Uce.Struct({id:Uce.String,appliedAt:wt});import*as Kce from"effect/Either";import*as Pl from"effect/Effect";import*as Vp from"effect/Schema";import*as zce from"effect/Data";var QB=class extends zce.TaggedError("RuntimeEffectError"){},Ne=(e,t)=>new QB({module:e,message:t});var Vce={placements:[],headers:{},queryParams:{},cookies:{},bodyValues:{},expiresAt:null,refreshAfter:null,authProvider:void 0},R7e=Vp.encodeSync(RB),L7e=Vp.encodeSync(LB),yMt=Vp.encodeSync($B),$7e=Vp.encodeSync(MB),M7e=Vp.encodeSync(jB),j7e=Vp.encodeSync(jT),B7e=Vp.decodeUnknownEither(K6),q7e=Vp.encodeSync(BB),U7e=(e,t)=>{switch(t.location){case"header":e.headers[t.name]=t.value;break;case"query":e.queryParams[t.name]=t.value;break;case"cookie":e.cookies[t.name]=t.value;break;case"body":e.bodyValues[t.path]=t.value;break}},Z6=(e,t={})=>{let r={headers:{},queryParams:{},cookies:{},bodyValues:{}};for(let n of e)U7e(r,n);return{placements:e,headers:r.headers,queryParams:r.queryParams,cookies:r.cookies,bodyValues:r.bodyValues,expiresAt:t.expiresAt??null,refreshAfter:t.refreshAfter??null}},Jce=e=>Pl.map(Pl.forEach(e.parts,t=>t.kind==="literal"?Pl.succeed(t.value):e.resolveSecretMaterial({ref:t.ref,context:e.context}),{discard:!1}),t=>t.join("")),qT=e=>{if(e.auth.kind==="none")return null;let t=e.existingAuthArtifactId??`auth_art_${crypto.randomUUID()}`,r=e.auth.kind==="oauth2_authorized_user"?z7e(e.auth.grantSet):null;return e.auth.kind==="bearer"?{id:t,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:Dm,configJson:R7e({headerName:e.auth.headerName,prefix:e.auth.prefix,token:e.auth.token}),grantSetJson:r,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:e.auth.kind==="oauth2_authorized_user"?{id:t,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:kl,configJson:$7e({headerName:e.auth.headerName,prefix:e.auth.prefix,tokenEndpoint:e.auth.tokenEndpoint,clientId:e.auth.clientId,clientAuthentication:e.auth.clientAuthentication,clientSecret:e.auth.clientSecret,refreshToken:e.auth.refreshToken}),grantSetJson:r,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:e.auth.kind==="provider_grant_ref"?{id:t,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:NB,configJson:M7e({grantId:e.auth.grantId,providerKey:e.auth.providerKey,requiredScopes:[...e.auth.requiredScopes],headerName:e.auth.headerName,prefix:e.auth.prefix}),grantSetJson:r,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:e.auth.kind==="mcp_oauth"?{id:t,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:FB,configJson:j7e({redirectUri:e.auth.redirectUri,accessToken:e.auth.accessToken,refreshToken:e.auth.refreshToken,tokenType:e.auth.tokenType,expiresIn:e.auth.expiresIn,scope:e.auth.scope,resourceMetadataUrl:e.auth.resourceMetadataUrl,authorizationServerUrl:e.auth.authorizationServerUrl,resourceMetadataJson:e.auth.resourceMetadataJson,authorizationServerMetadataJson:e.auth.authorizationServerMetadataJson,clientInformationJson:e.auth.clientInformationJson}),grantSetJson:r,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:{id:t,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:Am,configJson:L7e({headerName:e.auth.headerName,prefix:e.auth.prefix,accessToken:e.auth.accessToken,refreshToken:e.auth.refreshToken}),grantSetJson:r,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}},W6=e=>{if(e===null)return{kind:"none"};let t=qp(e);if(t!==null)return{kind:"provider_grant_ref",grantId:t.grantId,providerKey:t.providerKey,requiredScopes:[...t.requiredScopes],headerName:t.headerName,prefix:t.prefix};let r=vv(e);if(r!==null)return{kind:"mcp_oauth",redirectUri:r.redirectUri,accessToken:r.accessToken,refreshToken:r.refreshToken,tokenType:r.tokenType,expiresIn:r.expiresIn,scope:r.scope,resourceMetadataUrl:r.resourceMetadataUrl,authorizationServerUrl:r.authorizationServerUrl,resourceMetadataJson:r.resourceMetadataJson,authorizationServerMetadataJson:r.authorizationServerMetadataJson,clientInformationJson:r.clientInformationJson};let n=wm(e);if(n===null)return{kind:"none"};switch(n.artifactKind){case Dm:return{kind:"bearer",headerName:n.config.headerName,prefix:n.config.prefix,token:n.config.token};case Am:return{kind:"oauth2",headerName:n.config.headerName,prefix:n.config.prefix,accessToken:n.config.accessToken,refreshToken:n.config.refreshToken};case ig:return{kind:"none"};case kl:return{kind:"oauth2_authorized_user",headerName:n.config.headerName,prefix:n.config.prefix,tokenEndpoint:n.config.tokenEndpoint,clientId:n.config.clientId,clientAuthentication:n.config.clientAuthentication,clientSecret:n.config.clientSecret,refreshToken:n.config.refreshToken,grantSet:vce(e.grantSetJson)}}};var UT=e=>bce(e);var z7e=e=>e===null?null:q7e([...e]),Cm=e=>Pl.gen(function*(){if(e.artifact===null)return Vce;let t=wm(e.artifact);if(t!==null)switch(t.artifactKind){case Dm:{let a=yield*e.resolveSecretMaterial({ref:t.config.token,context:e.context});return Z6([{location:"header",name:t.config.headerName,value:`${t.config.prefix}${a}`}])}case Am:{let a=yield*e.resolveSecretMaterial({ref:t.config.accessToken,context:e.context});return Z6([{location:"header",name:t.config.headerName,value:`${t.config.prefix}${a}`}])}case ig:{let a=yield*Pl.forEach(t.config.placements,s=>Pl.map(Jce({parts:s.parts,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context}),c=>s.location==="body"?{location:"body",path:s.path,value:c}:{location:s.location,name:s.name,value:c}),{discard:!1});return Z6(a)}case kl:break}if(qp(e.artifact)!==null&&(e.lease===null||e.lease===void 0))return yield*Ne("auth/auth-artifacts",`Provider grant auth artifact ${e.artifact.id} requires a lease`);if(vv(e.artifact)!==null)return{...Vce};if(e.lease===null||e.lease===void 0)return yield*Ne("auth/auth-artifacts",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let o=B7e(e.lease.placementsTemplateJson);if(Kce.isLeft(o))return yield*Ne("auth/auth-artifacts",`Invalid auth lease placements for artifact ${e.artifact.id}`);let i=yield*Pl.forEach(o.right,a=>Pl.map(Jce({parts:a.parts,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context}),s=>a.location==="body"?{location:"body",path:a.path,value:s}:{location:a.location,name:a.name,value:s}),{discard:!1});return Z6(i,{expiresAt:e.lease.expiresAt,refreshAfter:e.lease.refreshAfter})});import*as is from"effect/Effect";import*as ag from"effect/Option";import{createHash as V7e,randomBytes as J7e}from"node:crypto";import*as zT from"effect/Effect";var Gce=e=>e.toString("base64").replaceAll("+","-").replaceAll("/","_").replaceAll("=",""),XB=()=>Gce(J7e(48)),K7e=e=>Gce(V7e("sha256").update(e).digest()),YB=e=>{let t=new URL(e.authorizationEndpoint);t.searchParams.set("client_id",e.clientId),t.searchParams.set("redirect_uri",e.redirectUri),t.searchParams.set("response_type","code"),t.searchParams.set("scope",e.scopes.join(" ")),t.searchParams.set("state",e.state),t.searchParams.set("code_challenge_method","S256"),t.searchParams.set("code_challenge",K7e(e.codeVerifier));for(let[r,n]of Object.entries(e.extraParams??{}))t.searchParams.set(r,n);return t.toString()},G7e=async e=>{let t=await e.text(),r;try{r=JSON.parse(t)}catch{throw new Error(`OAuth token endpoint returned non-JSON response (${e.status})`)}if(r===null||typeof r!="object"||Array.isArray(r))throw new Error(`OAuth token endpoint returned invalid JSON payload (${e.status})`);let n=r,o=typeof n.access_token=="string"&&n.access_token.length>0?n.access_token:null;if(!e.ok){let i=typeof n.error_description=="string"&&n.error_description.length>0?n.error_description:typeof n.error=="string"&&n.error.length>0?n.error:`status ${e.status}`;throw new Error(`OAuth token exchange failed: ${i}`)}if(o===null)throw new Error("OAuth token endpoint did not return an access_token");return{access_token:o,token_type:typeof n.token_type=="string"?n.token_type:void 0,refresh_token:typeof n.refresh_token=="string"?n.refresh_token:void 0,expires_in:typeof n.expires_in=="number"?n.expires_in:typeof n.expires_in=="string"?Number(n.expires_in):void 0,scope:typeof n.scope=="string"?n.scope:void 0}},Hce=e=>zT.tryPromise({try:async()=>{let t=await fetch(e.tokenEndpoint,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded",accept:"application/json"},body:e.body,signal:AbortSignal.timeout(2e4)});return G7e(t)},catch:t=>t instanceof Error?t:new Error(String(t))}),eq=e=>zT.gen(function*(){let t=new URLSearchParams({grant_type:"authorization_code",client_id:e.clientId,redirect_uri:e.redirectUri,code_verifier:e.codeVerifier,code:e.code});return e.clientAuthentication==="client_secret_post"&&e.clientSecret&&t.set("client_secret",e.clientSecret),yield*Hce({tokenEndpoint:e.tokenEndpoint,body:t})}),tq=e=>zT.gen(function*(){let t=new URLSearchParams({grant_type:"refresh_token",client_id:e.clientId,refresh_token:e.refreshToken});return e.clientAuthentication==="client_secret_post"&&e.clientSecret&&t.set("client_secret",e.clientSecret),e.scopes&&e.scopes.length>0&&t.set("scope",e.scopes.join(" ")),yield*Hce({tokenEndpoint:e.tokenEndpoint,body:t})});import*as Lc from"effect/Effect";import*as Wce from"effect/Schema";var H7e=Wce.encodeSync(jT),rq=e=>{if(e!==null)try{let t=JSON.parse(e);return t!==null&&typeof t=="object"&&!Array.isArray(t)?t:void 0}catch{return}},Dv=e=>e==null?null:JSON.stringify(e),Z7e=e=>({redirect_uris:[e],grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none",client_name:"Executor Local"}),Zce=(e,t)=>(e?.providerId??null)===(t?.providerId??null)&&(e?.handle??null)===(t?.handle??null),W7e=e=>Lc.gen(function*(){Zce(e.previousAccessToken,e.nextAccessToken)||(yield*Lc.either(e.deleteSecretMaterial(e.previousAccessToken))),e.previousRefreshToken!==null&&!Zce(e.previousRefreshToken,e.nextRefreshToken)&&(yield*Lc.either(e.deleteSecretMaterial(e.previousRefreshToken)))}),Qce=e=>({kind:"mcp_oauth",redirectUri:e.redirectUri,accessToken:e.accessToken,refreshToken:e.refreshToken,tokenType:e.tokenType,expiresIn:e.expiresIn,scope:e.scope,resourceMetadataUrl:e.resourceMetadataUrl,authorizationServerUrl:e.authorizationServerUrl,resourceMetadataJson:Dv(e.resourceMetadata),authorizationServerMetadataJson:Dv(e.authorizationServerMetadata),clientInformationJson:Dv(e.clientInformation)}),Xce=e=>{let t=e.artifact,r=e.config,n=o=>Lc.gen(function*(){let i={...t,configJson:H7e(o),updatedAt:Date.now()};yield*e.executorState.authArtifacts.upsert(i),t=i,r=o});return{get redirectUrl(){return r.redirectUri},get clientMetadata(){return Z7e(r.redirectUri)},clientInformation:()=>rq(r.clientInformationJson),saveClientInformation:o=>Lc.runPromise(n({...r,clientInformationJson:Dv(o)})).then(()=>{}),tokens:async()=>{let o=await Lc.runPromise(e.resolveSecretMaterial({ref:r.accessToken,context:e.context})),i=r.refreshToken?await Lc.runPromise(e.resolveSecretMaterial({ref:r.refreshToken,context:e.context})):void 0;return{access_token:o,token_type:r.tokenType,...typeof r.expiresIn=="number"?{expires_in:r.expiresIn}:{},...r.scope?{scope:r.scope}:{},...i?{refresh_token:i}:{}}},saveTokens:o=>Lc.runPromise(Lc.gen(function*(){let i=r,a=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:o.access_token,name:`${t.sourceId} MCP Access Token`}),s=o.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:o.refresh_token,name:`${t.sourceId} MCP Refresh Token`}):r.refreshToken,c={...r,accessToken:a,refreshToken:s,tokenType:o.token_type??r.tokenType,expiresIn:typeof o.expires_in=="number"&&Number.isFinite(o.expires_in)?o.expires_in:r.expiresIn,scope:o.scope??r.scope};yield*n(c),yield*W7e({deleteSecretMaterial:e.deleteSecretMaterial,previousAccessToken:i.accessToken,nextAccessToken:a,previousRefreshToken:i.refreshToken,nextRefreshToken:s})})).then(()=>{}),redirectToAuthorization:async o=>{throw new Error(`MCP OAuth re-authorization is required for ${t.sourceId}: ${o.toString()}`)},saveCodeVerifier:()=>{},codeVerifier:()=>{throw new Error("Persisted MCP OAuth sessions do not retain an active PKCE verifier")},saveDiscoveryState:o=>Lc.runPromise(n({...r,resourceMetadataUrl:o.resourceMetadataUrl??null,authorizationServerUrl:o.authorizationServerUrl??null,resourceMetadataJson:Dv(o.resourceMetadata),authorizationServerMetadataJson:Dv(o.authorizationServerMetadata)})).then(()=>{}),discoveryState:()=>r.authorizationServerUrl===null?void 0:{resourceMetadataUrl:r.resourceMetadataUrl??void 0,authorizationServerUrl:r.authorizationServerUrl,resourceMetadata:rq(r.resourceMetadataJson),authorizationServerMetadata:rq(r.authorizationServerMetadataJson)}}};var X6=6e4,nq=e=>JSON.stringify(e),Q6=e=>`${e.providerId}:${e.handle}`,Y6=(e,t,r)=>is.gen(function*(){if(t.previous===null)return;let n=new Set((t.next===null?[]:GB(t.next)).map(Q6)),o=GB(t.previous).filter(i=>!n.has(Q6(i)));yield*is.forEach(o,i=>is.either(r(i)),{discard:!0})}),Yce=(e,t)=>!(e===null||e.refreshAfter!==null&&t>=e.refreshAfter||e.expiresAt!==null&&t>=e.expiresAt-X6),Q7e=e=>is.gen(function*(){let t=wm(e.artifact);if(t===null||t.artifactKind!==kl)return yield*Ne("auth/auth-leases",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let r=yield*e.resolveSecretMaterial({ref:t.config.refreshToken,context:e.context}),n=null;t.config.clientSecret&&(n=yield*e.resolveSecretMaterial({ref:t.config.clientSecret,context:e.context}));let o=yield*tq({tokenEndpoint:t.config.tokenEndpoint,clientId:t.config.clientId,clientAuthentication:t.config.clientAuthentication,clientSecret:n,refreshToken:r}),i=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:o.access_token,name:`${t.config.clientId} Access Token`}),a=Date.now(),s=typeof o.expires_in=="number"&&Number.isFinite(o.expires_in)?Math.max(0,o.expires_in*1e3):null,c=s===null?null:a+s,p=c===null?null:Math.max(a,c-X6),d={id:e.lease?.id??yv.make(`auth_lease_${crypto.randomUUID()}`),authArtifactId:e.artifact.id,scopeId:e.artifact.scopeId,sourceId:e.artifact.sourceId,actorScopeId:e.artifact.actorScopeId,slot:e.artifact.slot,placementsTemplateJson:nq([{location:"header",name:t.config.headerName,parts:[{kind:"literal",value:t.config.prefix},{kind:"secret_ref",ref:i}]}]),expiresAt:c,refreshAfter:p,createdAt:e.lease?.createdAt??a,updatedAt:a};return yield*e.executorState.authLeases.upsert(d),yield*Y6(e.executorState,{previous:e.lease,next:d},e.deleteSecretMaterial),d}),X7e=e=>e.clientSecretProviderId&&e.clientSecretHandle?{providerId:e.clientSecretProviderId,handle:e.clientSecretHandle}:null,Y7e=(e,t,r)=>Q6(t.previous)===Q6(t.next)?is.void:r(t.previous).pipe(is.either,is.ignore),eje=e=>is.gen(function*(){let t=qp(e.artifact);if(t===null)return yield*Ne("auth/auth-leases",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let r=yield*e.executorState.providerAuthGrants.getById(t.grantId);if(ag.isNone(r))return yield*Ne("auth/auth-leases",`Provider auth grant not found: ${t.grantId}`);let n=r.value,o=yield*e.executorState.scopeOauthClients.getById(n.oauthClientId);if(ag.isNone(o))return yield*Ne("auth/auth-leases",`Scope OAuth client not found: ${n.oauthClientId}`);let i=o.value,a=yield*e.resolveSecretMaterial({ref:n.refreshToken,context:e.context}),s=X7e(i),c=s?yield*e.resolveSecretMaterial({ref:s,context:e.context}):null,p=yield*tq({tokenEndpoint:n.tokenEndpoint,clientId:i.clientId,clientAuthentication:n.clientAuthentication,clientSecret:c,refreshToken:a,scopes:t.requiredScopes.length>0?t.requiredScopes:null}),d=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:p.access_token,name:`${n.providerKey} Access Token`}),f=p.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:p.refresh_token,name:`${n.providerKey} Refresh Token`}):n.refreshToken,m=Date.now(),y={...n,refreshToken:f,lastRefreshedAt:m,updatedAt:m};yield*e.executorState.providerAuthGrants.upsert(y),yield*Y7e(e.executorState,{previous:n.refreshToken,next:f},e.deleteSecretMaterial);let g=typeof p.expires_in=="number"&&Number.isFinite(p.expires_in)?Math.max(0,p.expires_in*1e3):null,S=g===null?null:m+g,x=S===null?null:Math.max(m,S-X6),A={id:e.lease?.id??yv.make(`auth_lease_${crypto.randomUUID()}`),authArtifactId:e.artifact.id,scopeId:e.artifact.scopeId,sourceId:e.artifact.sourceId,actorScopeId:e.artifact.actorScopeId,slot:e.artifact.slot,placementsTemplateJson:nq([{location:"header",name:t.headerName,parts:[{kind:"literal",value:t.prefix},{kind:"secret_ref",ref:d}]}]),expiresAt:S,refreshAfter:x,createdAt:e.lease?.createdAt??m,updatedAt:m};return yield*e.executorState.authLeases.upsert(A),yield*Y6(e.executorState,{previous:e.lease,next:A},e.deleteSecretMaterial),A}),w_=(e,t,r)=>is.gen(function*(){let n=yield*e.authLeases.getByAuthArtifactId(t.authArtifactId);ag.isNone(n)||(yield*e.authLeases.removeByAuthArtifactId(t.authArtifactId),yield*Y6(e,{previous:n.value,next:null},r))}),ele=e=>is.gen(function*(){let t=wm(e.artifact);if(t===null||t.artifactKind!==kl)return yield*Ne("auth/auth-leases",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let r=yield*e.executorState.authLeases.getByAuthArtifactId(e.artifact.id),n=ag.isSome(r)?r.value:null,o=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:e.tokenResponse.access_token,name:`${t.config.clientId} Access Token`}),i=Date.now(),a=typeof e.tokenResponse.expires_in=="number"&&Number.isFinite(e.tokenResponse.expires_in)?Math.max(0,e.tokenResponse.expires_in*1e3):null,s=a===null?null:i+a,c=s===null?null:Math.max(i,s-X6),p={id:n?.id??yv.make(`auth_lease_${crypto.randomUUID()}`),authArtifactId:e.artifact.id,scopeId:e.artifact.scopeId,sourceId:e.artifact.sourceId,actorScopeId:e.artifact.actorScopeId,slot:e.artifact.slot,placementsTemplateJson:nq([{location:"header",name:t.config.headerName,parts:[{kind:"literal",value:t.config.prefix},{kind:"secret_ref",ref:o}]}]),expiresAt:s,refreshAfter:c,createdAt:n?.createdAt??i,updatedAt:i};yield*e.executorState.authLeases.upsert(p),yield*Y6(e.executorState,{previous:n,next:p},e.deleteSecretMaterial)}),oq=e=>is.gen(function*(){if(e.artifact===null)return yield*Cm({artifact:null,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context});let t=yield*e.executorState.authLeases.getByAuthArtifactId(e.artifact.id),r=ag.isSome(t)?t.value:null,n=wm(e.artifact),o=qp(e.artifact),i=vv(e.artifact);if(n!==null&&n.artifactKind===kl){let a=Yce(r,Date.now())?r:yield*Q7e({executorState:e.executorState,artifact:e.artifact,lease:r,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,context:e.context});return yield*Cm({artifact:e.artifact,lease:a,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})}if(o!==null){let a=Yce(r,Date.now())?r:yield*eje({executorState:e.executorState,artifact:e.artifact,lease:r,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,context:e.context});return yield*Cm({artifact:e.artifact,lease:a,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})}return i!==null?{...yield*Cm({artifact:e.artifact,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context}),authProvider:Xce({executorState:e.executorState,artifact:e.artifact,config:i,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,context:e.context})}:yield*Cm({artifact:e.artifact,lease:r,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})});import*as Av from"effect/Context";var Ol=class extends Av.Tag("#runtime/SecretMaterialResolverService")(){},Ys=class extends Av.Tag("#runtime/SecretMaterialStorerService")(){},as=class extends Av.Tag("#runtime/SecretMaterialDeleterService")(){},Jp=class extends Av.Tag("#runtime/SecretMaterialUpdaterService")(){},Kp=class extends Av.Tag("#runtime/LocalInstanceConfigService")(){};var tje=e=>e.slot==="runtime"||e.source.importAuthPolicy==="reuse_runtime"?e.source.auth:e.source.importAuthPolicy==="none"?{kind:"none"}:e.source.importAuth,Pm=class extends tle.Tag("#runtime/RuntimeSourceAuthMaterialService")(){},rje=e=>I_.gen(function*(){let t=e.slot??"runtime";if(e.executorState!==void 0){let n=t==="import"&&e.source.importAuthPolicy==="reuse_runtime"?["import","runtime"]:[t];for(let o of n){let i=yield*e.executorState.authArtifacts.getByScopeSourceAndActor({scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:o});if(nle.isSome(i))return yield*oq({executorState:e.executorState,artifact:i.value,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial??(()=>I_.dieMessage("storeSecretMaterial unavailable")),deleteSecretMaterial:e.deleteSecretMaterial??(()=>I_.dieMessage("deleteSecretMaterial unavailable")),context:e.context})}}let r=qT({source:e.source,auth:tje({source:e.source,slot:t}),slot:t,actorScopeId:e.actorScopeId??null});return e.executorState!==void 0?yield*oq({executorState:e.executorState,artifact:r,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial??(()=>I_.dieMessage("storeSecretMaterial unavailable")),deleteSecretMaterial:e.deleteSecretMaterial??(()=>I_.dieMessage("deleteSecretMaterial unavailable")),context:e.context}):r?.artifactKind==="oauth2_authorized_user"||r?.artifactKind==="provider_grant_ref"||r?.artifactKind==="mcp_oauth"?yield*Ne("auth/source-auth-material","Dynamic auth artifacts require persistence-backed lease resolution"):yield*Cm({artifact:r,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})});var ole=rle.effect(Pm,I_.gen(function*(){let e=yield*Wn,t=yield*Ol,r=yield*Ys,n=yield*as;return Pm.of({resolve:o=>rje({...o,executorState:e,resolveSecretMaterial:t,storeSecretMaterial:r,deleteSecretMaterial:n})})}));import*as gQ from"effect/Cache";import*as XTe from"effect/Context";import*as Br from"effect/Effect";import*as YTe from"effect/Layer";import*as xn from"effect/Match";import*as Iv from"effect/Data";var e3=class extends Iv.TaggedError("RuntimeLocalScopeUnavailableError"){},wv=class extends Iv.TaggedError("RuntimeLocalScopeMismatchError"){},VT=class extends Iv.TaggedError("LocalConfiguredSourceNotFoundError"){},t3=class extends Iv.TaggedError("LocalSourceArtifactMissingError"){},r3=class extends Iv.TaggedError("LocalUnsupportedSourceKindError"){};import{createHash as nje}from"node:crypto";var oje=/^[A-Za-z_$][A-Za-z0-9_$]*$/,ije=e=>nje("sha256").update(e).digest("hex").slice(0,24),lq=e=>oje.test(e)?e:JSON.stringify(e),sle=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2").split(/[^A-Za-z0-9]+/).filter(t=>t.length>0),aje=e=>/^\d+$/.test(e)?e:`${e.slice(0,1).toUpperCase()}${e.slice(1).toLowerCase()}`,sg=e=>{let t=sle(e).map(r=>aje(r)).join("");return t.length===0?"Type":/^[A-Za-z_$]/.test(t)?t:`T${t}`},di=(...e)=>e.map(t=>sg(t)).filter(t=>t.length>0).join(""),cle=e=>{switch(e){case"string":case"boolean":return e;case"bytes":return"string";case"integer":case"number":return"number";case"null":return"null";case"object":return"Record";case"array":return"Array";default:throw new Error(`Unsupported JSON Schema primitive type: ${e}`)}},Cv=e=>{let t=JSON.stringify(e);if(t===void 0)throw new Error(`Unsupported literal value in declaration schema: ${String(e)}`);return t},Om=e=>e.includes(" | ")||e.includes(" & ")?`(${e})`:e,sje=(e,t)=>e.length===0?"{}":["{",...e.flatMap(r=>r.split(` +`).map(n=>`${t}${n}`)),`${t.slice(0,-2)}}`].join(` +`),ks=(e,t)=>{let r=e.symbols[t];if(!r||r.kind!=="shape")throw new Error(`Missing shape symbol for ${t}`);return r},iq=e=>e.type==="unknown"||e.type==="scalar"||e.type==="const"||e.type==="enum",cje=e=>/^shape_[a-f0-9_]+$/i.test(e),lje=e=>/\s/.test(e.trim()),uje=e=>{let t=e.title?.trim();return t&&!cje(t)?sg(t):void 0},pje=e=>e.replace(/~1/g,"/").replace(/~0/g,"~"),ile=e=>{let t=e.trim();if(!(t.length===0||/^\d+$/.test(t)||["$defs","definitions","components","schemas","schema","properties","items","additionalProperties","patternProperties","allOf","anyOf","oneOf","not","if","then","else","input","output","graphql","scalars","responses","headers","parameters","requestBody"].includes(t)))return sg(t)},dje=e=>{for(let t of e){let r=t.pointer;if(!r?.startsWith("#/"))continue;let n=r.slice(2).split("/").map(pje),o=n.flatMap((i,a)=>["$defs","definitions","schemas","input","output"].includes(i)?[a]:[]);for(let i of o){let a=ile(n[i+1]??"");if(a)return a}for(let i=n.length-1;i>=0;i-=1){let a=ile(n[i]??"");if(a)return a}}},n3=e=>{let t=e?.trim();return t&&t.length>0?t:null},lle=e=>e.replace(/\*\//g,"*\\/"),aq=(e,t)=>{if(t){e.length>0&&e.push("");for(let r of t.split(/\r?\n/))e.push(lle(r.trimEnd()))}},JT=e=>{let t=[],r=e.includeTitle&&e.title&&lje(e.title)?n3(e.title):null,n=n3(e.docs?.summary),o=n3(e.docs?.description),i=n3(e.docs?.externalDocsUrl);return aq(t,r&&r!==n?r:null),aq(t,n),aq(t,o&&o!==n?o:null),i&&(t.length>0&&t.push(""),t.push(`@see ${lle(i)}`)),e.deprecated&&(t.length>0&&t.push(""),t.push("@deprecated")),t.length===0?null:["/**",...t.map(a=>a.length>0?` * ${a}`:" *")," */"].join(` +`)},_je=e=>{let t=sle(e);if(t.length<=5)return di(...t);let r=t.filter((n,o)=>o>=t.length-2||!["item","member","value"].includes(n.toLowerCase()));return di(...r.slice(-5))},ale=e=>{switch(e.type){case"unknown":case"scalar":case"const":case"enum":return[];case"object":return[...Object.values(e.fields).map(t=>t.shapeId),...typeof e.additionalProperties=="string"?[e.additionalProperties]:[],...Object.values(e.patternProperties??{})];case"array":return[e.itemShapeId];case"tuple":return[...e.itemShapeIds,...typeof e.additionalItems=="string"?[e.additionalItems]:[]];case"map":return[e.valueShapeId];case"allOf":case"anyOf":case"oneOf":return[...e.items];case"nullable":return[e.itemShapeId];case"ref":return[e.target];case"not":return[e.itemShapeId];case"conditional":return[e.ifShapeId,...e.thenShapeId?[e.thenShapeId]:[],...e.elseShapeId?[e.elseShapeId]:[]];case"graphqlInterface":return[...Object.values(e.fields).map(t=>t.shapeId),...e.possibleTypeIds];case"graphqlUnion":return[...e.memberTypeIds]}},sq=e=>{switch(e.type){case"unknown":return"unknown";case"scalar":return cle(e.scalar);case"const":return Cv(e.value);case"enum":return e.values.map(t=>Cv(t)).join(" | ");default:throw new Error(`Cannot inline non-primitive shape node: ${e.type}`)}},fje=(e,t,r,n,o)=>{let i=new Set;t&&i.add("unknown");for(let a of e)i.add(o(a,{stack:n,aliasHint:r}));return[...i].sort((a,s)=>a.localeCompare(s)).join(" | ")},cq=(e,t,r,n,o)=>{let i=new Set(e.required),a=Object.keys(e.fields).sort((d,f)=>d.localeCompare(f)).map(d=>{let f=e.fields[d],m=`${lq(d)}${i.has(d)?"":"?"}: ${n(f.shapeId,{stack:t,aliasHint:r?di(r,d):d})};`,y=o?JT({docs:f.docs,deprecated:f.deprecated}):null;return y?`${y} +${m}`:m}),s=Object.values(e.patternProperties??{}),c=e.additionalProperties===!0,p=typeof e.additionalProperties=="string"?[e.additionalProperties]:[];return(c||s.length>0||p.length>0)&&a.push(`[key: string]: ${fje([...s,...p],c,r?di(r,"value"):"value",t,n)};`),sje(a," ")},mje=(e,t,r,n,o)=>cq({fields:e.fields,required:e.type==="object"?e.required??[]:[],additionalProperties:e.type==="object"?e.additionalProperties:!1,patternProperties:e.type==="object"?e.patternProperties??{}:{}},t,r,n,o),kv=(e,t,r,n,o,i)=>{let s=ks(e,t).node;switch(s.type){case"unknown":case"scalar":case"const":case"enum":return sq(s);case"object":case"graphqlInterface":return mje(s,r,n,o,i);case"array":return`Array<${Om(o(s.itemShapeId,{stack:r,aliasHint:n?di(n,"item"):"item"}))}>`;case"tuple":{let c=s.itemShapeIds.map((d,f)=>o(d,{stack:r,aliasHint:n?di(n,`item_${String(f+1)}`):`item_${String(f+1)}`})),p=s.additionalItems===!0?", ...unknown[]":typeof s.additionalItems=="string"?`, ...Array<${Om(o(s.additionalItems,{stack:r,aliasHint:n?di(n,"rest"):"rest"}))}>`:"";return`[${c.join(", ")}${p}]`}case"map":return`Record`;case"allOf":return s.items.map((c,p)=>Om(o(c,{stack:r,aliasHint:n?di(n,`member_${String(p+1)}`):`member_${String(p+1)}`}))).join(" & ");case"anyOf":case"oneOf":return s.items.map((c,p)=>Om(o(c,{stack:r,aliasHint:n?di(n,`member_${String(p+1)}`):`member_${String(p+1)}`}))).join(" | ");case"nullable":return`${Om(o(s.itemShapeId,{stack:r,aliasHint:n}))} | null`;case"ref":return o(s.target,{stack:r,aliasHint:n});case"not":case"conditional":return"unknown";case"graphqlUnion":return s.memberTypeIds.map((c,p)=>Om(o(c,{stack:r,aliasHint:n?di(n,`member_${String(p+1)}`):`member_${String(p+1)}`}))).join(" | ")}},KT=e=>{let{catalog:t,roots:r}=e,n=new Map,o=new Set(r.map(le=>le.shapeId)),i=new Set,a=new Set,s=new Set,c=new Map,p=new Map,d=new Map,f=new Map,m=new Map,y=new Set,g=new Set,S=(le,K=[])=>{let ae=n.get(le);if(ae)return ae;if(K.includes(le))return{key:`cycle:${le}`,recursive:!0};let he=ks(t,le),Oe=[...K,le],pt=(It,fo)=>{let rn=It.map(Gn=>S(Gn,Oe));return fo?rn.sort((Gn,bt)=>Gn.key.localeCompare(bt.key)):rn},Ye=!1,lt=It=>{let fo=S(It,Oe);return Ye=Ye||fo.recursive,fo.key},Nt=(It,fo)=>{let rn=pt(It,fo);return Ye=Ye||rn.some(Gn=>Gn.recursive),rn.map(Gn=>Gn.key)},Ct=(()=>{switch(he.node.type){case"unknown":return"unknown";case"scalar":return`scalar:${cle(he.node.scalar)}`;case"const":return`const:${Cv(he.node.value)}`;case"enum":return`enum:${he.node.values.map(It=>Cv(It)).sort().join("|")}`;case"object":{let It=he.node.required??[],fo=Object.entries(he.node.fields).sort(([bt],[Hn])=>bt.localeCompare(Hn)).map(([bt,Hn])=>`${bt}${It.includes(bt)?"!":"?"}:${lt(Hn.shapeId)}`).join(","),rn=he.node.additionalProperties===!0?"unknown":typeof he.node.additionalProperties=="string"?lt(he.node.additionalProperties):"none",Gn=Object.entries(he.node.patternProperties??{}).map(([,bt])=>S(bt,Oe)).sort((bt,Hn)=>bt.key.localeCompare(Hn.key)).map(bt=>(Ye=Ye||bt.recursive,bt.key)).join("|");return`object:${fo}:index=${rn}:patterns=${Gn}`}case"array":return`array:${lt(he.node.itemShapeId)}`;case"tuple":return`tuple:${Nt(he.node.itemShapeIds,!1).join(",")}:rest=${he.node.additionalItems===!0?"unknown":typeof he.node.additionalItems=="string"?lt(he.node.additionalItems):"none"}`;case"map":return`map:${lt(he.node.valueShapeId)}`;case"allOf":return`allOf:${Nt(he.node.items,!0).join("&")}`;case"anyOf":return`anyOf:${Nt(he.node.items,!0).join("|")}`;case"oneOf":return`oneOf:${Nt(he.node.items,!0).join("|")}`;case"nullable":return`nullable:${lt(he.node.itemShapeId)}`;case"ref":return lt(he.node.target);case"not":case"conditional":return"unknown";case"graphqlInterface":{let It=Object.entries(he.node.fields).sort(([rn],[Gn])=>rn.localeCompare(Gn)).map(([rn,Gn])=>`${rn}:${lt(Gn.shapeId)}`).join(","),fo=Nt(he.node.possibleTypeIds,!0).join("|");return`graphqlInterface:${It}:possible=${fo}`}case"graphqlUnion":return`graphqlUnion:${Nt(he.node.memberTypeIds,!0).join("|")}`}})(),Hr={key:`sig:${ije(Ct)}`,recursive:Ye};return n.set(le,Hr),Hr},x=(le,K=[])=>S(le,K).key,A=le=>{if(!i.has(le)){i.add(le);for(let K of ale(ks(t,le).node))A(K)}};for(let le of r)A(le.shapeId);for(let le of i){let K=ks(t,le);if(K.synthetic)continue;let ae=uje(K);ae&&(f.set(le,ae),m.set(ae,(m.get(ae)??0)+1))}let I=le=>{let K=f.get(le);return K&&m.get(K)===1?K:void 0},E=[],C=new Set,F=le=>{let K=E.indexOf(le);if(K===-1){a.add(le);return}for(let ae of E.slice(K))a.add(ae);a.add(le)},O=le=>{if(!C.has(le)){if(E.includes(le)){F(le);return}E.push(le);for(let K of ale(ks(t,le).node)){if(E.includes(K)){F(K);continue}O(K)}E.pop(),C.add(le)}};for(let le of r){O(le.shapeId);let K=p.get(le.shapeId);(!K||le.aliasHint.length{if(K.includes(le))return null;let ae=ks(t,le);switch(ae.node.type){case"ref":return $(ae.node.target,[...K,le]);case"object":return{shapeId:le,node:ae.node};default:return null}},N=(le,K=[])=>{if(K.includes(le))return null;let ae=ks(t,le);switch(ae.node.type){case"ref":return N(ae.node.target,[...K,le]);case"const":return[Cv(ae.node.value)];case"enum":return ae.node.values.map(he=>Cv(he));default:return null}},U=le=>{let[K,...ae]=le;return K?ae.every(he=>{let Oe=K.node.additionalProperties,pt=he.node.additionalProperties;return Oe===pt?!0:typeof Oe=="string"&&typeof pt=="string"&&x(Oe)===x(pt)}):!1},ge=le=>{let[K,...ae]=le;if(!K)return!1;let he=K.node.patternProperties??{},Oe=Object.keys(he).sort();return ae.every(pt=>{let Ye=pt.node.patternProperties??{},lt=Object.keys(Ye).sort();return lt.length!==Oe.length||lt.some((Nt,Ct)=>Nt!==Oe[Ct])?!1:lt.every(Nt=>x(he[Nt])===x(Ye[Nt]))})},Te=le=>{let[K]=le;if(!K)return null;let ae=["type","kind","action","status","event"];return Object.keys(K.node.fields).filter(Ye=>le.every(lt=>(lt.node.required??[]).includes(Ye))).flatMap(Ye=>{let lt=le.map(Ct=>{let Hr=Ct.node.fields[Ye];return Hr?N(Hr.shapeId):null});if(lt.some(Ct=>Ct===null||Ct.length===0))return[];let Nt=new Set;for(let Ct of lt)for(let Hr of Ct){if(Nt.has(Hr))return[];Nt.add(Hr)}return[{key:Ye,serializedValuesByVariant:lt}]}).sort((Ye,lt)=>{let Nt=ae.indexOf(Ye.key),Ct=ae.indexOf(lt.key),Hr=Nt===-1?Number.MAX_SAFE_INTEGER:Nt,It=Ct===-1?Number.MAX_SAFE_INTEGER:Ct;return Hr-It||Ye.key.localeCompare(lt.key)})[0]??null},ke=(le,K)=>{let ae=le?.serializedValuesByVariant[K]?.[0];return ae?ae.startsWith('"')&&ae.endsWith('"')?sg(ae.slice(1,-1)):sg(ae):`Variant${String(K+1)}`},Ve=(le,K,ae,he,Oe)=>{let pt=le.map(bt=>$(bt));if(pt.some(bt=>bt===null))return null;let Ye=pt;if(Ye.length===0||!U(Ye)||!ge(Ye))return null;let lt=Te(Ye),[Nt]=Ye;if(!Nt)return null;let Ct=Object.keys(Nt.node.fields).filter(bt=>bt!==lt?.key).filter(bt=>{let Hn=Nt.node.fields[bt];if(!Hn)return!1;let Di=(Nt.node.required??[]).includes(bt);return Ye.every(Ga=>{let ji=Ga.node.fields[bt];return ji?(Ga.node.required??[]).includes(bt)===Di&&x(ji.shapeId)===x(Hn.shapeId):!1})}),Hr={fields:Object.fromEntries(Ct.map(bt=>[bt,Nt.node.fields[bt]])),required:Ct.filter(bt=>(Nt.node.required??[]).includes(bt)),additionalProperties:Nt.node.additionalProperties,patternProperties:Nt.node.patternProperties??{}},It=Ct.length>0||Hr.additionalProperties===!0||typeof Hr.additionalProperties=="string"||Object.keys(Hr.patternProperties).length>0;if(!It&<===null)return null;let fo=It?cq(Hr,K,ae,he,Oe):null,Gn=Ye.map((bt,Hn)=>{let Di=Object.keys(bt.node.fields).filter(ji=>!Ct.includes(ji)),Ga={fields:Object.fromEntries(Di.map(ji=>[ji,bt.node.fields[ji]])),required:Di.filter(ji=>(bt.node.required??[]).includes(ji)),additionalProperties:!1,patternProperties:{}};return cq(Ga,K,ae?di(ae,ke(lt,Hn)):ke(lt,Hn),he,Oe)}).map(bt=>Om(bt)).join(" | ");return fo?`${Om(fo)} & (${Gn})`:Gn},me=(le,K)=>{let ae=c.get(le);if(ae)return ae;let he=ks(t,le),Oe=p.get(le),pt=K?_je(K):void 0,Ye=I(le),lt=[Oe,Ye,dje(he.provenance),f.get(le),pt,sg(he.id)].filter(It=>It!==void 0),[Nt=sg(he.id)]=lt,Ct=lt.find(It=>!y.has(It))??Nt,Hr=2;for(;y.has(Ct);)Ct=`${Nt}_${String(Hr)}`,Hr+=1;return c.set(le,Ct),y.add(Ct),Ct},xe=le=>{let K=ks(t,le);return iq(K.node)?!1:o.has(le)?!0:K.node.type==="ref"?!1:I(le)!==void 0||s.has(le)},Rt=(le,K,ae)=>{let he=ks(t,le);switch(he.node.type){case"anyOf":case"oneOf":return Ve(he.node.items,K,ae,Yt,!0)??kv(t,le,K,ae,Yt,!0);case"graphqlUnion":return Ve(he.node.memberTypeIds,K,ae,Yt,!0)??kv(t,le,K,ae,Yt,!0);default:return kv(t,le,K,ae,Yt,!0)}},Vt=le=>{let K=d.get(le);if(K)return K;let ae=Rt(le,[le],me(le));return d.set(le,ae),ae},Yt=(le,K={})=>{let ae=ks(t,le);if(iq(ae.node))return sq(ae.node);let he=K.stack??[];return ae.node.type==="ref"&&!o.has(le)?he.includes(le)?Yt(ae.node.target,{stack:he,aliasHint:K.aliasHint}):Rt(le,[...he,le],K.aliasHint):he.includes(le)||xe(le)?(g.add(le),me(le,K.aliasHint)):Rt(le,[...he,le],K.aliasHint)},vt=(le,K={})=>{let ae=ks(t,le);if(iq(ae.node))return sq(ae.node);let he=K.stack??[];if(he.includes(le))return"unknown";switch(ae.node.type){case"anyOf":case"oneOf":return Ve(ae.node.items,[...he,le],K.aliasHint,vt,!1)??kv(t,le,[...he,le],K.aliasHint,vt,!1);case"graphqlUnion":return Ve(ae.node.memberTypeIds,[...he,le],K.aliasHint,vt,!1)??kv(t,le,[...he,le],K.aliasHint,vt,!1)}return kv(t,le,[...he,le],K.aliasHint,vt,!1)};return{renderSelfContainedShape:vt,renderDeclarationShape:Yt,supportingDeclarations:()=>{let le=[...g],K=new Set,ae=0;for(;aeme(Oe).localeCompare(me(pt))).map(Oe=>{let pt=me(Oe),Ye=ks(t,Oe),lt=JT({title:Ye.title,docs:Ye.docs,deprecated:Ye.deprecated,includeTitle:!0}),Nt=Vt(Oe),Ct=`type ${pt} = ${Nt};`;return lt?`${lt} +${Ct}`:Ct})}}},o3=e=>Object.values(e.toolDescriptors).sort((t,r)=>t.toolPath.join(".").localeCompare(r.toolPath.join("."))).flatMap(t=>[{shapeId:t.callShapeId,aliasHint:di(...t.toolPath,"call")},...t.resultShapeId?[{shapeId:t.resultShapeId,aliasHint:di(...t.toolPath,"result")}]:[]]),GT=(e,t)=>{let r=ks(e,t);switch(r.node.type){case"ref":return GT(e,r.node.target);case"object":return(r.node.required??[]).length===0;default:return!1}};var hje=Object.create,bq=Object.defineProperty,yje=Object.getOwnPropertyDescriptor,gje=Object.getOwnPropertyNames,Sje=Object.getPrototypeOf,vje=Object.prototype.hasOwnProperty,bje=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xq=(e,t)=>{for(var r in t)bq(e,r,{get:t[r],enumerable:!0})},xje=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of gje(t))!vje.call(e,o)&&o!==r&&bq(e,o,{get:()=>t[o],enumerable:!(n=yje(t,o))||n.enumerable});return e},Eje=(e,t,r)=>(r=e!=null?hje(Sje(e)):{},xje(t||!e||!e.__esModule?bq(r,"default",{value:e,enumerable:!0}):r,e)),Tje=bje((e,t)=>{var r,n,o,i,a,s,c,p,d,f,m,y,g,S,x,A,I,E,C,F;g=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,y=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,r=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,x=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,m=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,A=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,C=/[\t\v\f\ufeff\p{Zs}]+/yu,p=/\r?\n|[\r\u2028\u2029]/y,d=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,S=/\/\/.*/y,o=/[<>.:={}]|\/(?![\/*])/y,n=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,i=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,a=/[^<>{}]+/y,E=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,I=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,s=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,c=/^(?:return|throw|yield)$/,f=RegExp(p.source),t.exports=F=function*(O,{jsx:$=!1}={}){var N,U,ge,Te,ke,Ve,me,xe,Rt,Vt,Yt,vt,Fr,le;for({length:Ve}=O,Te=0,ke="",le=[{tag:"JS"}],N=[],Yt=0,vt=!1;Te":le.pop(),ke==="/"||xe.tag==="JSXTagEnd"?(Vt="?JSX",vt=!0):le.push({tag:"JSXChildren"});break;case"{":le.push({tag:"InterpolationInJSX",nesting:N.length}),Vt="?InterpolationInJSX",vt=!1;break;case"/":ke==="<"&&(le.pop(),le[le.length-1].tag==="JSXChildren"&&le.pop(),le.push({tag:"JSXTagEnd"}))}ke=Vt,yield{type:"JSXPunctuator",value:me[0]};continue}if(n.lastIndex=Te,me=n.exec(O)){Te=n.lastIndex,ke=me[0],yield{type:"JSXIdentifier",value:me[0]};continue}if(i.lastIndex=Te,me=i.exec(O)){Te=i.lastIndex,ke=me[0],yield{type:"JSXString",value:me[0],closed:me[2]!==void 0};continue}break;case"JSXChildren":if(a.lastIndex=Te,me=a.exec(O)){Te=a.lastIndex,ke=me[0],yield{type:"JSXText",value:me[0]};continue}switch(O[Te]){case"<":le.push({tag:"JSXTag"}),Te++,ke="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":le.push({tag:"InterpolationInJSX",nesting:N.length}),Te++,ke="?InterpolationInJSX",vt=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(C.lastIndex=Te,me=C.exec(O)){Te=C.lastIndex,yield{type:"WhiteSpace",value:me[0]};continue}if(p.lastIndex=Te,me=p.exec(O)){Te=p.lastIndex,vt=!1,c.test(ke)&&(ke="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:me[0]};continue}if(d.lastIndex=Te,me=d.exec(O)){Te=d.lastIndex,f.test(me[0])&&(vt=!1,c.test(ke)&&(ke="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:me[0],closed:me[1]!==void 0};continue}if(S.lastIndex=Te,me=S.exec(O)){Te=S.lastIndex,vt=!1,yield{type:"SingleLineComment",value:me[0]};continue}U=String.fromCodePoint(O.codePointAt(Te)),Te+=U.length,ke=U,vt=!1,yield{type:xe.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:U}}}}),Dje={};xq(Dje,{__debug:()=>mze,check:()=>_ze,doc:()=>Oue,format:()=>y3,formatWithCursor:()=>Lue,getSupportInfo:()=>fze,util:()=>Nue,version:()=>BUe});var QT=(e,t)=>(r,n,...o)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,o),Aje=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},wje=QT("replaceAll",function(){if(typeof this=="string")return Aje}),u3=wje,Ije=class{diff(e,t,r={}){let n;typeof r=="function"?(n=r,r={}):"callback"in r&&(n=r.callback);let o=this.castInput(e,r),i=this.castInput(t,r),a=this.removeEmpty(this.tokenize(o,r)),s=this.removeEmpty(this.tokenize(i,r));return this.diffWithOptionsObj(a,s,r,n)}diffWithOptionsObj(e,t,r,n){var o;let i=A=>{if(A=this.postProcess(A,r),n){setTimeout(function(){n(A)},0);return}else return A},a=t.length,s=e.length,c=1,p=a+s;r.maxEditLength!=null&&(p=Math.min(p,r.maxEditLength));let d=(o=r.timeout)!==null&&o!==void 0?o:1/0,f=Date.now()+d,m=[{oldPos:-1,lastComponent:void 0}],y=this.extractCommon(m[0],t,e,0,r);if(m[0].oldPos+1>=s&&y+1>=a)return i(this.buildValues(m[0].lastComponent,t,e));let g=-1/0,S=1/0,x=()=>{for(let A=Math.max(g,-c);A<=Math.min(S,c);A+=2){let I,E=m[A-1],C=m[A+1];E&&(m[A-1]=void 0);let F=!1;if(C){let $=C.oldPos-A;F=C&&0<=$&&$=s&&y+1>=a)return i(this.buildValues(I.lastComponent,t,e))||!0;m[A]=I,I.oldPos+1>=s&&(S=Math.min(S,A-1)),y+1>=a&&(g=Math.max(g,A+1))}c++};if(n)(function A(){setTimeout(function(){if(c>p||Date.now()>f)return n(void 0);x()||A()},0)})();else for(;c<=p&&Date.now()<=f;){let A=x();if(A)return A}}addToPath(e,t,r,n,o){let i=e.lastComponent;return i&&!o.oneChangePerToken&&i.added===t&&i.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:i.count+1,added:t,removed:r,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:i}}}extractCommon(e,t,r,n,o){let i=t.length,a=r.length,s=e.oldPos,c=s-n,p=0;for(;c+1f.length?y:f}),p.value=this.join(d)}else p.value=this.join(t.slice(s,s+p.count));s+=p.count,p.added||(c+=p.count)}}return n}},kje=class extends Ije{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},Cje=new kje;function Pje(e,t,r){return Cje.diff(e,t,r)}var Oje=()=>{},Fm=Oje,Lle="cr",$le="crlf",Nje="lf",Fje=Nje,Eq="\r",Mle=`\r +`,p3=` +`,Rje=p3;function Lje(e){let t=e.indexOf(Eq);return t!==-1?e.charAt(t+1)===p3?$le:Lle:Fje}function Tq(e){return e===Lle?Eq:e===$le?Mle:Rje}var $je=new Map([[p3,/\n/gu],[Eq,/\r/gu],[Mle,/\r\n/gu]]);function jle(e,t){let r=$je.get(t);return e.match(r)?.length??0}var Mje=/\r\n?/gu;function jje(e){return u3(0,e,Mje,p3)}function Bje(e){return this[e<0?this.length+e:e]}var qje=QT("at",function(){if(Array.isArray(this)||typeof this=="string")return Bje}),Xi=qje,dg="string",P_="array",Lm="cursor",O_="indent",N_="align",F_="trim",tc="group",Wp="fill",$c="if-break",R_="indent-if-break",L_="line-suffix",$_="line-suffix-boundary",Oa="line",Qp="label",Nl="break-parent",Ble=new Set([Lm,O_,N_,F_,tc,Wp,$c,R_,L_,$_,Oa,Qp,Nl]);function Uje(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===` +`);)t--;return tnew Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Jje(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(_g(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Vje([...Ble].map(o=>`'${o}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var Kje=class extends Error{name="InvalidDocError";constructor(e){super(Jje(e)),this.doc=e}},Nv=Kje,ule={};function Gje(e,t,r,n){let o=[e];for(;o.length>0;){let i=o.pop();if(i===ule){r(o.pop());continue}r&&o.push(i,ule);let a=_g(i);if(!a)throw new Nv(i);if(t?.(i)!==!1)switch(a){case P_:case Wp:{let s=a===P_?i:i.parts;for(let c=s.length,p=c-1;p>=0;--p)o.push(s[p]);break}case $c:o.push(i.flatContents,i.breakContents);break;case tc:if(n&&i.expandedStates)for(let s=i.expandedStates.length,c=s-1;c>=0;--c)o.push(i.expandedStates[c]);else o.push(i.contents);break;case N_:case O_:case R_:case Qp:case L_:o.push(i.contents);break;case dg:case Lm:case F_:case $_:case Oa:case Nl:break;default:throw new Nv(i)}}}var Dq=Gje;function d3(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let a=o(i);return r.set(i,a),a}function o(i){switch(_g(i)){case P_:return t(i.map(n));case Wp:return t({...i,parts:i.parts.map(n)});case $c:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case tc:{let{expandedStates:a,contents:s}=i;return a?(a=a.map(n),s=a[0]):s=n(s),t({...i,contents:s,expandedStates:a})}case N_:case O_:case R_:case Qp:case L_:return t({...i,contents:n(i.contents)});case dg:case Lm:case F_:case $_:case Oa:case Nl:return t(i);default:throw new Nv(i)}}}function Aq(e,t,r){let n=r,o=!1;function i(a){if(o)return!1;let s=t(a);s!==void 0&&(o=!0,n=s)}return Dq(e,i),n}function Hje(e){if(e.type===tc&&e.break||e.type===Oa&&e.hard||e.type===Nl)return!0}function Zje(e){return Aq(e,Hje,!1)}function ple(e){if(e.length>0){let t=Xi(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Wje(e){let t=new Set,r=[];function n(i){if(i.type===Nl&&ple(r),i.type===tc){if(r.push(i),t.has(i))return!1;t.add(i)}}function o(i){i.type===tc&&r.pop().break&&ple(r)}Dq(e,n,o,!0)}function Qje(e){return e.type===Oa&&!e.hard?e.soft?"":" ":e.type===$c?e.flatContents:e}function Xje(e){return d3(e,Qje)}function dle(e){for(e=[...e];e.length>=2&&Xi(0,e,-2).type===Oa&&Xi(0,e,-1).type===Nl;)e.length-=2;if(e.length>0){let t=HT(Xi(0,e,-1));e[e.length-1]=t}return e}function HT(e){switch(_g(e)){case O_:case R_:case tc:case L_:case Qp:{let t=HT(e.contents);return{...e,contents:t}}case $c:return{...e,breakContents:HT(e.breakContents),flatContents:HT(e.flatContents)};case Wp:return{...e,parts:dle(e.parts)};case P_:return dle(e);case dg:return Uje(e);case N_:case Lm:case F_:case $_:case Oa:case Nl:break;default:throw new Nv(e)}return e}function qle(e){return HT(eBe(e))}function Yje(e){switch(_g(e)){case Wp:if(e.parts.every(t=>t===""))return"";break;case tc:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===tc&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case N_:case O_:case R_:case L_:if(!e.contents)return"";break;case $c:if(!e.flatContents&&!e.breakContents)return"";break;case P_:{let t=[];for(let r of e){if(!r)continue;let[n,...o]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Xi(0,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...o)}return t.length===0?"":t.length===1?t[0]:t}case dg:case Lm:case F_:case $_:case Oa:case Qp:case Nl:break;default:throw new Nv(e)}return e}function eBe(e){return d3(e,t=>Yje(t))}function tBe(e,t=Zle){return d3(e,r=>typeof r=="string"?Kle(t,r.split(` +`)):r)}function rBe(e){if(e.type===Oa)return!0}function nBe(e){return Aq(e,rBe,!1)}function s3(e,t){return e.type===Qp?{...e,contents:t(e.contents)}:t(e)}var Zp=Fm,Ule=Fm,oBe=Fm,iBe=Fm;function l3(e){return Zp(e),{type:O_,contents:e}}function Fv(e,t){return iBe(e),Zp(t),{type:N_,contents:t,n:e}}function aBe(e){return Fv(Number.NEGATIVE_INFINITY,e)}function zle(e){return Fv({type:"root"},e)}function sBe(e){return Fv(-1,e)}function Vle(e,t,r){Zp(e);let n=e;if(t>0){for(let o=0;o0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${n(i.contents)}${p})`}if(i.type===tc){let c=[];i.break&&i.break!=="propagated"&&c.push("shouldBreak: true"),i.id&&c.push(`id: ${o(i.id)}`);let p=c.length>0?`, { ${c.join(", ")} }`:"";return i.expandedStates?`conditionalGroup([${i.expandedStates.map(d=>n(d)).join(",")}]${p})`:`group(${n(i.contents)}${p})`}if(i.type===Wp)return`fill([${i.parts.map(c=>n(c)).join(", ")}])`;if(i.type===L_)return"lineSuffix("+n(i.contents)+")";if(i.type===$_)return"lineSuffixBoundary";if(i.type===Qp)return`label(${JSON.stringify(i.label)}, ${n(i.contents)})`;if(i.type===Lm)return"cursor";throw new Error("Unknown doc type "+i.type)}function o(i){if(typeof i!="symbol")return JSON.stringify(String(i));if(i in t)return t[i];let a=i.description||"symbol";for(let s=0;;s++){let c=a+(s>0?` #${s}`:"");if(!r.has(c))return r.add(c),t[i]=`Symbol.for(${JSON.stringify(c)})`}}}var yBe=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function gBe(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function SBe(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var vBe="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07",bBe=/[^\x20-\x7F]/u,xBe=new Set(vBe);function EBe(e){if(!e)return 0;if(!bBe.test(e))return e.length;e=e.replace(yBe(),r=>xBe.has(r)?" ":" ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=gBe(n)||SBe(n)?2:1)}return t}var Iq=EBe,TBe={type:0},DBe={type:1},Wle={value:"",length:0,queue:[],get root(){return Wle}};function Qle(e,t,r){let n=t.type===1?e.queue.slice(0,-1):[...e.queue,t],o="",i=0,a=0,s=0;for(let g of n)switch(g.type){case 0:d(),r.useTabs?c(1):p(r.tabWidth);break;case 3:{let{string:S}=g;d(),o+=S,i+=S.length;break}case 2:{let{width:S}=g;a+=1,s+=S;break}default:throw new Error(`Unexpected indent comment '${g.type}'.`)}return m(),{...e,value:o,length:i,queue:n};function c(g){o+=" ".repeat(g),i+=r.tabWidth*g}function p(g){o+=" ".repeat(g),i+=g}function d(){r.useTabs?f():m()}function f(){a>0&&c(a),y()}function m(){s>0&&p(s),y()}function y(){a=0,s=0}}function ABe(e,t,r){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let n;return typeof t=="number"?t<0?n=DBe:n={type:2,width:t}:n={type:3,string:t},Qle(e,n,r)}function wBe(e,t){return Qle(e,TBe,t)}function IBe(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];if(n===" "||n===" ")t++;else break}return t}function Xle(e){let t=IBe(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var ec=Symbol("MODE_BREAK"),Gp=Symbol("MODE_FLAT"),gq=Symbol("DOC_FILL_PRINTED_LENGTH");function i3(e,t,r,n,o,i){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length,s=!1,c=[e],p="";for(;r>=0;){if(c.length===0){if(a===0)return!0;c.push(t[--a]);continue}let{mode:d,doc:f}=c.pop(),m=_g(f);switch(m){case dg:f&&(s&&(p+=" ",r-=1,s=!1),p+=f,r-=Iq(f));break;case P_:case Wp:{let y=m===P_?f:f.parts,g=f[gq]??0;for(let S=y.length-1;S>=g;S--)c.push({mode:d,doc:y[S]});break}case O_:case N_:case R_:case Qp:c.push({mode:d,doc:f.contents});break;case F_:{let{text:y,count:g}=Xle(p);p=y,r+=g;break}case tc:{if(i&&f.break)return!1;let y=f.break?ec:d,g=f.expandedStates&&y===ec?Xi(0,f.expandedStates,-1):f.contents;c.push({mode:y,doc:g});break}case $c:{let y=(f.groupId?o[f.groupId]||Gp:d)===ec?f.breakContents:f.flatContents;y&&c.push({mode:d,doc:y});break}case Oa:if(d===ec||f.hard)return!0;f.soft||(s=!0);break;case L_:n=!0;break;case $_:if(n)return!1;break}}return!1}function f3(e,t){let r=Object.create(null),n=t.printWidth,o=Tq(t.endOfLine),i=0,a=[{indent:Wle,mode:ec,doc:e}],s="",c=!1,p=[],d=[],f=[],m=[],y=0;for(Wje(e);a.length>0;){let{indent:I,mode:E,doc:C}=a.pop();switch(_g(C)){case dg:{let F=o!==` +`?u3(0,C,` +`,o):C;F&&(s+=F,a.length>0&&(i+=Iq(F)));break}case P_:for(let F=C.length-1;F>=0;F--)a.push({indent:I,mode:E,doc:C[F]});break;case Lm:if(d.length>=2)throw new Error("There are too many 'cursor' in doc.");d.push(y+s.length);break;case O_:a.push({indent:wBe(I,t),mode:E,doc:C.contents});break;case N_:a.push({indent:ABe(I,C.n,t),mode:E,doc:C.contents});break;case F_:A();break;case tc:switch(E){case Gp:if(!c){a.push({indent:I,mode:C.break?ec:Gp,doc:C.contents});break}case ec:{c=!1;let F={indent:I,mode:Gp,doc:C.contents},O=n-i,$=p.length>0;if(!C.break&&i3(F,a,O,$,r))a.push(F);else if(C.expandedStates){let N=Xi(0,C.expandedStates,-1);if(C.break){a.push({indent:I,mode:ec,doc:N});break}else for(let U=1;U=C.expandedStates.length){a.push({indent:I,mode:ec,doc:N});break}else{let ge=C.expandedStates[U],Te={indent:I,mode:Gp,doc:ge};if(i3(Te,a,O,$,r)){a.push(Te);break}}}else a.push({indent:I,mode:ec,doc:C.contents});break}}C.id&&(r[C.id]=Xi(0,a,-1).mode);break;case Wp:{let F=n-i,O=C[gq]??0,{parts:$}=C,N=$.length-O;if(N===0)break;let U=$[O+0],ge=$[O+1],Te={indent:I,mode:Gp,doc:U},ke={indent:I,mode:ec,doc:U},Ve=i3(Te,[],F,p.length>0,r,!0);if(N===1){Ve?a.push(Te):a.push(ke);break}let me={indent:I,mode:Gp,doc:ge},xe={indent:I,mode:ec,doc:ge};if(N===2){Ve?a.push(me,Te):a.push(xe,ke);break}let Rt=$[O+2],Vt={indent:I,mode:E,doc:{...C,[gq]:O+2}},Yt=i3({indent:I,mode:Gp,doc:[U,ge,Rt]},[],F,p.length>0,r,!0);a.push(Vt),Yt?a.push(me,Te):Ve?a.push(xe,Te):a.push(xe,ke);break}case $c:case R_:{let F=C.groupId?r[C.groupId]:E;if(F===ec){let O=C.type===$c?C.breakContents:C.negate?C.contents:l3(C.contents);O&&a.push({indent:I,mode:E,doc:O})}if(F===Gp){let O=C.type===$c?C.flatContents:C.negate?l3(C.contents):C.contents;O&&a.push({indent:I,mode:E,doc:O})}break}case L_:p.push({indent:I,mode:E,doc:C.contents});break;case $_:p.length>0&&a.push({indent:I,mode:E,doc:wq});break;case Oa:switch(E){case Gp:if(C.hard)c=!0;else{C.soft||(s+=" ",i+=1);break}case ec:if(p.length>0){a.push({indent:I,mode:E,doc:C},...p.reverse()),p.length=0;break}C.literal?(s+=o,i=0,I.root&&(I.root.value&&(s+=I.root.value),i=I.root.length)):(A(),s+=o+I.value,i=I.length);break}break;case Qp:a.push({indent:I,mode:E,doc:C.contents});break;case Nl:break;default:throw new Nv(C)}a.length===0&&p.length>0&&(a.push(...p.reverse()),p.length=0)}let g=f.join("")+s,S=[...m,...d];if(S.length!==2)return{formatted:g};let x=S[0];return{formatted:g,cursorNodeStart:x,cursorNodeText:g.slice(x,Xi(0,S,-1))};function A(){let{text:I,count:E}=Xle(s);I&&(f.push(I),y+=I.length),s="",i-=E,d.length>0&&(m.push(...d.map(C=>Math.min(C,y))),d.length=0)}}function kBe(e,t,r=0){let n=0;for(let o=r;o1?Xi(0,e,-2):null}getValue(){return Xi(0,this.stack,-1)}getNode(e=0){let t=this.#t(e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}#t(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1}call(e,...t){let{stack:r}=this,{length:n}=r,o=Xi(0,r,-1);for(let i of t)o=o?.[i],r.push(i,o);try{return e(this)}finally{r.length=n}}callParent(e,t=0){let r=this.#t(t+1),n=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...t){let{stack:r}=this,{length:n}=r,o=Xi(0,r,-1);for(let i of t)o=o[i],r.push(i,o);try{for(let i=0;i{r[o]=e(n,o,i)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(let o of e){if(n===void 0)return!1;let i=null;if(typeof r=="number"&&(i=r,r=this.stack[t--],n=this.stack[t--]),o&&!o(n,r,i))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}findAncestor(e){for(let t of this.#r())if(e(t))return t}hasAncestor(e){for(let t of this.#r())if(e(t))return!0;return!1}*#r(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}}},PBe=CBe;function OBe(e){return e!==null&&typeof e=="object"}var Cq=OBe;function XT(e){return(t,r,n)=>{let o=!!n?.backwards;if(r===!1)return!1;let{length:i}=t,a=r;for(;a>=0&&ae===` +`||e==="\r"||e==="\u2028"||e==="\u2029";function FBe(e,t,r){let n=!!r?.backwards;if(t===!1)return!1;let o=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&o===` +`)return t-2;if(_le(o))return t-1}else{if(o==="\r"&&e.charAt(t+1)===` +`)return t+2;if(_le(o))return t+1}return t}var pg=FBe;function RBe(e,t,r={}){let n=Rm(e,r.backwards?t-1:t,r),o=pg(e,n,r);return n!==o}var Nm=RBe;function LBe(e){return Array.isArray(e)&&e.length>0}var $Be=LBe;function*m3(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,o=i=>Cq(i)&&n(i);for(let i of r(e)){let a=e[i];if(Array.isArray(a))for(let s of a)o(s)&&(yield s);else o(a)&&(yield a)}}function*MBe(e,t){let r=[e];for(let n=0;n(i??(i=[e,...t]),o(p,i)?[p]:tue(p,i,r))),{locStart:s,locEnd:c}=r;return a.sort((p,d)=>s(p)-s(d)||c(p)-c(d)),n.set(e,a),a}var rue=tue;function BBe(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Pq(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=BBe(e)}function ZT(e,t){t.leading=!0,t.trailing=!1,Pq(e,t)}function cg(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Pq(e,t)}function WT(e,t){t.leading=!1,t.trailing=!0,Pq(e,t)}var nue=new WeakMap;function oue(e,t,r,n,o=[]){let{locStart:i,locEnd:a}=r,s=i(t),c=a(t),p=rue(e,o,{cache:nue,locStart:i,locEnd:a,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes}),d,f,m=0,y=p.length;for(;m>1,S=p[g],x=i(S),A=a(S);if(x<=s&&c<=A)return oue(S,t,r,S,[S,...o]);if(A<=s){d=S,m=g+1;continue}if(c<=x){f=S,y=g;continue}throw new Error("Comment location overlaps with node location")}if(n?.type==="TemplateLiteral"){let{quasis:g}=n,S=pq(g,t,r);d&&pq(g,d,r)!==S&&(d=null),f&&pq(g,f,r)!==S&&(f=null)}return{enclosingNode:n,precedingNode:d,followingNode:f}}var uq=()=>!1;function qBe(e,t){let{comments:r}=e;if(delete e.comments,!$Be(r)||!t.printer.canAttachComment)return;let n=[],{printer:{features:{experimental_avoidAstMutation:o},handleComments:i={}},originalText:a}=t,{ownLine:s=uq,endOfLine:c=uq,remaining:p=uq}=i,d=r.map((f,m)=>({...oue(e,f,t),comment:f,text:a,options:t,ast:e,isLastComment:r.length-1===m}));for(let[f,m]of d.entries()){let{comment:y,precedingNode:g,enclosingNode:S,followingNode:x,text:A,options:I,ast:E,isLastComment:C}=m,F;if(o?F=[m]:(y.enclosingNode=S,y.precedingNode=g,y.followingNode=x,F=[y,A,I,E,C]),UBe(A,I,d,f))y.placement="ownLine",s(...F)||(x?ZT(x,y):g?WT(g,y):cg(S||E,y));else if(zBe(A,I,d,f))y.placement="endOfLine",c(...F)||(g?WT(g,y):x?ZT(x,y):cg(S||E,y));else if(y.placement="remaining",!p(...F))if(g&&x){let O=n.length;O>0&&n[O-1].followingNode!==x&&fle(n,I),n.push(m)}else g?WT(g,y):x?ZT(x,y):cg(S||E,y)}if(fle(n,t),!o)for(let f of r)delete f.precedingNode,delete f.enclosingNode,delete f.followingNode}var iue=e=>!/[\S\n\u2028\u2029]/u.test(e);function UBe(e,t,r,n){let{comment:o,precedingNode:i}=r[n],{locStart:a,locEnd:s}=t,c=a(o);if(i)for(let p=n-1;p>=0;p--){let{comment:d,precedingNode:f}=r[p];if(f!==i||!iue(e.slice(s(d),c)))break;c=a(d)}return Nm(e,c,{backwards:!0})}function zBe(e,t,r,n){let{comment:o,followingNode:i}=r[n],{locStart:a,locEnd:s}=t,c=s(o);if(i)for(let p=n+1;p0;--a){let{comment:s,precedingNode:c,followingNode:p}=e[a-1];Fm(c,n),Fm(p,o);let d=t.originalText.slice(t.locEnd(s),i);if(t.printer.isGap?.(d,t)??/^[\s(]*$/u.test(d))i=t.locStart(s);else break}for(let[s,{comment:c}]of e.entries())s1&&s.comments.sort((c,p)=>t.locStart(c)-t.locStart(p));e.length=0}function pq(e,t,r){let n=r.locStart(t)-1;for(let o=1;o!n.has(s)).length===0)return{leading:"",trailing:""};let o=[],i=[],a;return e.each(()=>{let s=e.node;if(n?.has(s))return;let{leading:c,trailing:p}=s;c?o.push(JBe(e,t)):p&&(a=KBe(e,t,a),i.push(a.doc))},"comments"),{leading:o,trailing:i}}function HBe(e,t,r){let{leading:n,trailing:o}=GBe(e,r);return!n&&!o?t:s3(t,i=>[n,i,o])}function ZBe(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}var WBe=()=>Fm,sue=class extends Error{name="ConfigError"},mle=class extends Error{name="UndefinedParserError"},QBe={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing (mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. -The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function S9t({plugins:e=[],showDeprecated:r=!1}={}){let i=e.flatMap(l=>l.languages??[]),s=[];for(let l of RVr(Object.assign({},...e.map(({options:d})=>d),OVr)))!r&&l.deprecated||(Array.isArray(l.choices)&&(r||(l.choices=l.choices.filter(d=>!d.deprecated)),l.name==="parser"&&(l.choices=[...l.choices,...FVr(l.choices,i,e)])),l.pluginDefaults=Object.fromEntries(e.filter(d=>d.defaultOptions?.[l.name]!==void 0).map(d=>[d.name,d.defaultOptions[l.name]])),s.push(l));return{languages:i,options:s}}function*FVr(e,r,i){let s=new Set(e.map(l=>l.value));for(let l of r)if(l.parsers){for(let d of l.parsers)if(!s.has(d)){s.add(d);let h=i.find(b=>b.parsers&&Object.prototype.hasOwnProperty.call(b.parsers,d)),S=l.name;h?.name&&(S+=` (plugin: ${h.name})`),yield{value:d,description:S}}}}function RVr(e){let r=[];for(let[i,s]of Object.entries(e)){let l={name:i,...s};Array.isArray(l.default)&&(l.default=Kv(0,l.default,-1).value),r.push(l)}return r}var LVr=Array.prototype.toReversed??function(){return[...this].reverse()},MVr=mpe("toReversed",function(){if(Array.isArray(this))return LVr}),jVr=MVr;function BVr(){let e=globalThis,r=e.Deno?.build?.os;return typeof r=="string"?r==="windows":e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}var $Vr=BVr();function b9t(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function UVr(e){return e=b9t(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function zVr(e){e=b9t(e);let r=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(r=`\\\\${e.hostname}${r}`),r}function qVr(e){return $Vr?zVr(e):UVr(e)}var JVr=e=>String(e).split(/[/\\]/u).pop(),VVr=e=>String(e).startsWith("file:");function A5t(e,r){if(!r)return;let i=JVr(r).toLowerCase();return e.find(({filenames:s})=>s?.some(l=>l.toLowerCase()===i))??e.find(({extensions:s})=>s?.some(l=>i.endsWith(l)))}function WVr(e,r){if(r)return e.find(({name:i})=>i.toLowerCase()===r)??e.find(({aliases:i})=>i?.includes(r))??e.find(({extensions:i})=>i?.includes(`.${r}`))}var GVr=void 0;function w5t(e,r){if(r){if(VVr(r))try{r=qVr(r)}catch{return}if(typeof r=="string")return e.find(({isSupported:i})=>i?.({filepath:r}))}}function HVr(e,r){let i=jVr(0,e.plugins).flatMap(s=>s.languages??[]);return(WVr(i,r.language)??A5t(i,r.physicalFile)??A5t(i,r.file)??w5t(i,r.physicalFile)??w5t(i,r.file)??GVr?.(i,r.physicalFile))?.parsers[0]}var x9t=HVr,EY={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(i=>EY.value(i)).join(", ")}]`;let r=Object.keys(e);return r.length===0?"{}":`{ ${r.map(i=>`${EY.key(i)}: ${EY.value(e[i])}`).join(", ")} }`},pair:({key:e,value:r})=>EY.value({[e]:r})},HQe=new Proxy(String,{get:()=>HQe}),i8=HQe,T9t=()=>HQe,KVr=(e,r,{descriptor:i})=>{let s=[`${i8.yellow(typeof e=="string"?i.key(e):i.pair(e))} is deprecated`];return r&&s.push(`we now treat it as ${i8.blue(typeof r=="string"?i.key(r):i.pair(r))}`),s.join("; ")+"."},E9t=Symbol.for("vnopts.VALUE_NOT_EXIST"),_Ce=Symbol.for("vnopts.VALUE_UNCHANGED"),I5t=" ".repeat(2),QVr=(e,r,i)=>{let{text:s,list:l}=i.normalizeExpectedResult(i.schemas[e].expected(i)),d=[];return s&&d.push(P5t(e,r,s,i.descriptor)),l&&d.push([P5t(e,r,l.title,i.descriptor)].concat(l.values.map(h=>k9t(h,i.loggerPrintWidth))).join(` -`)),C9t(d,i.loggerPrintWidth)};function P5t(e,r,i,s){return[`Invalid ${i8.red(s.key(e))} value.`,`Expected ${i8.blue(i)},`,`but received ${r===E9t?i8.gray("nothing"):i8.red(s.value(r))}.`].join(" ")}function k9t({text:e,list:r},i){let s=[];return e&&s.push(`- ${i8.blue(e)}`),r&&s.push([`- ${i8.blue(r.title)}:`].concat(r.values.map(l=>k9t(l,i-I5t.length).replace(/^|\n/g,`$&${I5t}`))).join(` -`)),C9t(s,i)}function C9t(e,r){if(e.length===1)return e[0];let[i,s]=e,[l,d]=e.map(h=>h.split(` -`,1)[0].length);return l>r&&l>d?s:i}var TY=[],DQe=[];function AQe(e,r,i){if(e===r)return 0;let s=i?.maxDistance,l=e;e.length>r.length&&(e=r,r=l);let d=e.length,h=r.length;for(;d>0&&e.charCodeAt(~-d)===r.charCodeAt(~-h);)d--,h--;let S=0;for(;Ss)return s;if(d===0)return s!==void 0&&h>s?s:h;let b,A,L,V,j=0,ie=0;for(;jA?V>A?A+1:V:V>L?L+1:V;if(s!==void 0){let te=A;for(j=0;js)return s}}return TY.length=d,DQe.length=d,s!==void 0&&A>s?s:A}function ZVr(e,r,i){if(!Array.isArray(r)||r.length===0)return;let s=i?.maxDistance,l=e.length;for(let b of r)if(b===e)return b;if(s===0)return;let d,h=Number.POSITIVE_INFINITY,S=new Set;for(let b of r){if(S.has(b))continue;S.add(b);let A=Math.abs(b.length-l);if(A>=h||s!==void 0&&A>s)continue;let L=Number.isFinite(h)?s===void 0?h:Math.min(h,s):s,V=L===void 0?AQe(e,b):AQe(e,b,{maxDistance:L});if(s!==void 0&&V>s)continue;let j=V;if(L!==void 0&&V===L&&L===s&&(j=AQe(e,b)),js))return d}var D9t=(e,r,{descriptor:i,logger:s,schemas:l})=>{let d=[`Ignored unknown option ${i8.yellow(i.pair({key:e,value:r}))}.`],h=ZVr(e,Object.keys(l),{maxDistance:3});h&&d.push(`Did you mean ${i8.blue(i.key(h))}?`),s.warn(d.join(" "))},XVr=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function YVr(e,r){let i=new e(r),s=Object.create(i);for(let l of XVr)l in r&&(s[l]=eWr(r[l],i,Kj.prototype[l].length));return s}var Kj=class{static create(e){return YVr(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,r){return!1}deprecated(e,r){return!1}forward(e,r){}redirect(e,r){}overlap(e,r,i){return e}preprocess(e,r){return e}postprocess(e,r){return _Ce}};function eWr(e,r,i){return typeof e=="function"?(...s)=>e(...s.slice(0,i-1),r,...s.slice(i-1)):()=>e}var tWr=class extends Kj{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,r){return r.schemas[this._sourceName].validate(e,r)}redirect(e,r){return this._sourceName}},rWr=class extends Kj{expected(){return"anything"}validate(){return!0}},nWr=class extends Kj{constructor({valueSchema:e,name:r=e.name,...i}){super({...i,name:r}),this._valueSchema=e}expected(e){let{text:r,list:i}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:r&&`an array of ${r}`,list:i&&{title:"an array of the following values",values:[{list:i}]}}}validate(e,r){if(!Array.isArray(e))return!1;let i=[];for(let s of e){let l=r.normalizeValidateResult(this._valueSchema.validate(s,r),s);l!==!0&&i.push(l.value)}return i.length===0?!0:{value:i}}deprecated(e,r){let i=[];for(let s of e){let l=r.normalizeDeprecatedResult(this._valueSchema.deprecated(s,r),s);l!==!1&&i.push(...l.map(({value:d})=>({value:[d]})))}return i}forward(e,r){let i=[];for(let s of e){let l=r.normalizeForwardResult(this._valueSchema.forward(s,r),s);i.push(...l.map(N5t))}return i}redirect(e,r){let i=[],s=[];for(let l of e){let d=r.normalizeRedirectResult(this._valueSchema.redirect(l,r),l);"remain"in d&&i.push(d.remain),s.push(...d.redirect.map(N5t))}return i.length===0?{redirect:s}:{redirect:s,remain:i}}overlap(e,r){return e.concat(r)}};function N5t({from:e,to:r}){return{from:[e],to:r}}var iWr=class extends Kj{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function oWr(e,r){let i=Object.create(null);for(let s of e){let l=s[r];if(i[l])throw new Error(`Duplicate ${r} ${JSON.stringify(l)}`);i[l]=s}return i}function aWr(e,r){let i=new Map;for(let s of e){let l=s[r];if(i.has(l))throw new Error(`Duplicate ${r} ${JSON.stringify(l)}`);i.set(l,s)}return i}function sWr(){let e=Object.create(null);return r=>{let i=JSON.stringify(r);return e[i]?!0:(e[i]=!0,!1)}}function cWr(e,r){let i=[],s=[];for(let l of e)r(l)?i.push(l):s.push(l);return[i,s]}function lWr(e){return e===Math.floor(e)}function uWr(e,r){if(e===r)return 0;let i=typeof e,s=typeof r,l=["undefined","object","boolean","number","string"];return i!==s?l.indexOf(i)-l.indexOf(s):i!=="string"?Number(e)-Number(r):e.localeCompare(r)}function pWr(e){return(...r)=>{let i=e(...r);return typeof i=="string"?new Error(i):i}}function O5t(e){return e===void 0?{}:e}function A9t(e){if(typeof e=="string")return{text:e};let{text:r,list:i}=e;return _Wr((r||i)!==void 0,"Unexpected `expected` result, there should be at least one field."),i?{text:r,list:{title:i.title,values:i.values.map(A9t)}}:{text:r}}function F5t(e,r){return e===!0?!0:e===!1?{value:r}:e}function R5t(e,r,i=!1){return e===!1?!1:e===!0?i?!0:[{value:r}]:"value"in e?[e]:e.length===0?!1:e}function L5t(e,r){return typeof e=="string"||"key"in e?{from:r,to:e}:"from"in e?{from:e.from,to:e.to}:{from:r,to:e.to}}function FQe(e,r){return e===void 0?[]:Array.isArray(e)?e.map(i=>L5t(i,r)):[L5t(e,r)]}function M5t(e,r){let i=FQe(typeof e=="object"&&"redirect"in e?e.redirect:e,r);return i.length===0?{remain:r,redirect:i}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:i}:{redirect:i}}function _Wr(e,r){if(!e)throw new Error(r)}var dWr=class extends Kj{constructor(e){super(e),this._choices=aWr(e.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:e}){let r=Array.from(this._choices.keys()).map(l=>this._choices.get(l)).filter(({hidden:l})=>!l).map(l=>l.value).sort(uWr).map(e.value),i=r.slice(0,-2),s=r.slice(-2);return{text:i.concat(s.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(e){return this._choices.has(e)}deprecated(e){let r=this._choices.get(e);return r&&r.deprecated?{value:e}:!1}forward(e){let r=this._choices.get(e);return r?r.forward:void 0}redirect(e){let r=this._choices.get(e);return r?r.redirect:void 0}},fWr=class extends Kj{expected(){return"a number"}validate(e,r){return typeof e=="number"}},mWr=class extends fWr{expected(){return"an integer"}validate(e,r){return r.normalizeValidateResult(super.validate(e,r),e)===!0&&lWr(e)}},j5t=class extends Kj{expected(){return"a string"}validate(e){return typeof e=="string"}},hWr=EY,gWr=D9t,yWr=QVr,vWr=KVr,SWr=class{constructor(e,r){let{logger:i=console,loggerPrintWidth:s=80,descriptor:l=hWr,unknown:d=gWr,invalid:h=yWr,deprecated:S=vWr,missing:b=()=>!1,required:A=()=>!1,preprocess:L=j=>j,postprocess:V=()=>_Ce}=r||{};this._utils={descriptor:l,logger:i||{warn:()=>{}},loggerPrintWidth:s,schemas:oWr(e,"name"),normalizeDefaultResult:O5t,normalizeExpectedResult:A9t,normalizeDeprecatedResult:R5t,normalizeForwardResult:FQe,normalizeRedirectResult:M5t,normalizeValidateResult:F5t},this._unknownHandler=d,this._invalidHandler=pWr(h),this._deprecatedHandler=S,this._identifyMissing=(j,ie)=>!(j in ie)||b(j,ie),this._identifyRequired=A,this._preprocess=L,this._postprocess=V,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=sWr()}normalize(e){let r={},i=[this._preprocess(e,this._utils)],s=()=>{for(;i.length!==0;){let l=i.shift(),d=this._applyNormalization(l,r);i.push(...d)}};s();for(let l of Object.keys(this._utils.schemas)){let d=this._utils.schemas[l];if(!(l in r)){let h=O5t(d.default(this._utils));"value"in h&&i.push({[l]:h.value})}}s();for(let l of Object.keys(this._utils.schemas)){if(!(l in r))continue;let d=this._utils.schemas[l],h=r[l],S=d.postprocess(h,this._utils);S!==_Ce&&(this._applyValidation(S,l,d),r[l]=S)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(e,r){let i=[],{knownKeys:s,unknownKeys:l}=this._partitionOptionKeys(e);for(let d of s){let h=this._utils.schemas[d],S=h.preprocess(e[d],this._utils);this._applyValidation(S,d,h);let b=({from:V,to:j})=>{i.push(typeof j=="string"?{[j]:V}:{[j.key]:j.value})},A=({value:V,redirectTo:j})=>{let ie=R5t(h.deprecated(V,this._utils),S,!0);if(ie!==!1)if(ie===!0)this._hasDeprecationWarned(d)||this._utils.logger.warn(this._deprecatedHandler(d,j,this._utils));else for(let{value:te}of ie){let X={key:d,value:te};if(!this._hasDeprecationWarned(X)){let Re=typeof j=="string"?{key:j,value:te}:j;this._utils.logger.warn(this._deprecatedHandler(X,Re,this._utils))}}};FQe(h.forward(S,this._utils),S).forEach(b);let L=M5t(h.redirect(S,this._utils),S);if(L.redirect.forEach(b),"remain"in L){let V=L.remain;r[d]=d in r?h.overlap(r[d],V,this._utils):V,A({value:V})}for(let{from:V,to:j}of L.redirect)A({value:V,redirectTo:j})}for(let d of l){let h=e[d];this._applyUnknownHandler(d,h,r,(S,b)=>{i.push({[S]:b})})}return i}_applyRequiredCheck(e){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,e)&&this._identifyRequired(r))throw this._invalidHandler(r,E9t,this._utils)}_partitionOptionKeys(e){let[r,i]=cWr(Object.keys(e).filter(s=>!this._identifyMissing(s,e)),s=>s in this._utils.schemas);return{knownKeys:r,unknownKeys:i}}_applyValidation(e,r,i){let s=F5t(i.validate(e,this._utils),e);if(s!==!0)throw this._invalidHandler(r,s.value,this._utils)}_applyUnknownHandler(e,r,i,s){let l=this._unknownHandler(e,r,this._utils);if(l)for(let d of Object.keys(l)){if(this._identifyMissing(d,l))continue;let h=l[d];d in this._utils.schemas?s(d,h):i[d]=h}}_applyPostprocess(e){let r=this._postprocess(e,this._utils);if(r!==_Ce){if(r.delete)for(let i of r.delete)delete e[i];if(r.override){let{knownKeys:i,unknownKeys:s}=this._partitionOptionKeys(r.override);for(let l of i){let d=r.override[l];this._applyValidation(d,l,this._utils.schemas[l]),e[l]=d}for(let l of s){let d=r.override[l];this._applyUnknownHandler(l,d,e,(h,S)=>{let b=this._utils.schemas[h];this._applyValidation(S,h,b),e[h]=S})}}}}},wQe;function bWr(e,r,{logger:i=!1,isCLI:s=!1,passThrough:l=!1,FlagSchema:d,descriptor:h}={}){if(s){if(!d)throw new Error("'FlagSchema' option is required.");if(!h)throw new Error("'descriptor' option is required.")}else h=EY;let S=l?Array.isArray(l)?(j,ie)=>l.includes(j)?{[j]:ie}:void 0:(j,ie)=>({[j]:ie}):(j,ie,te)=>{let{_:X,...Re}=te.schemas;return D9t(j,ie,{...te,schemas:Re})},b=xWr(r,{isCLI:s,FlagSchema:d}),A=new SWr(b,{logger:i,unknown:S,descriptor:h}),L=i!==!1;L&&wQe&&(A._hasDeprecationWarned=wQe);let V=A.normalize(e);return L&&(wQe=A._hasDeprecationWarned),V}function xWr(e,{isCLI:r,FlagSchema:i}){let s=[];r&&s.push(rWr.create({name:"_"}));for(let l of e)s.push(TWr(l,{isCLI:r,optionInfos:e,FlagSchema:i})),l.alias&&r&&s.push(tWr.create({name:l.alias,sourceName:l.name}));return s}function TWr(e,{isCLI:r,optionInfos:i,FlagSchema:s}){let{name:l}=e,d={name:l},h,S={};switch(e.type){case"int":h=mWr,r&&(d.preprocess=Number);break;case"string":h=j5t;break;case"choice":h=dWr,d.choices=e.choices.map(b=>b?.redirect?{...b,redirect:{to:{key:e.name,value:b.redirect}}}:b);break;case"boolean":h=iWr;break;case"flag":h=s,d.flags=i.flatMap(b=>[b.alias,b.description&&b.name,b.oppositeDescription&&`no-${b.name}`].filter(Boolean));break;case"path":h=j5t;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?d.validate=(b,A,L)=>e.exception(b)||A.validate(b,L):d.validate=(b,A,L)=>b===void 0||A.validate(b,L),e.redirect&&(S.redirect=b=>b?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(S.deprecated=!0),r&&!e.array){let b=d.preprocess||(A=>A);d.preprocess=(A,L,V)=>L.preprocess(b(Array.isArray(A)?Kv(0,A,-1):A),V)}return e.array?nWr.create({...r?{preprocess:b=>Array.isArray(b)?b:[b]}:{},...S,valueSchema:h.create(d)}):h.create({...d,...S})}var EWr=bWr,kWr=Array.prototype.findLast??function(e){for(let r=this.length-1;r>=0;r--){let i=this[r];if(e(i,r,this))return i}},CWr=mpe("findLast",function(){if(Array.isArray(this))return kWr}),w9t=CWr,DWr=Symbol.for("PRETTIER_IS_FRONT_MATTER"),AWr=[];function wWr(e){return!!e?.[DWr]}var KQe=wWr,I9t=new Set(["yaml","toml"]),P9t=({node:e})=>KQe(e)&&I9t.has(e.language);async function IWr(e,r,i,s){let{node:l}=i,{language:d}=l;if(!I9t.has(d))return;let h=l.value.trim(),S;if(h){let b=d==="yaml"?d:x9t(s,{language:d});if(!b)return;S=h?await e(h,{parser:b}):""}else S=h;return t9t([l.startDelimiter,l.explicitLanguage??"",D5,S,S?D5:"",l.endDelimiter])}function PWr(e,r){return P9t({node:e})&&(delete r.end,delete r.raw,delete r.value),r}var NWr=PWr;function OWr({node:e}){return e.raw}var FWr=OWr,N9t=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),RWr=e=>Object.keys(e).filter(r=>!N9t.has(r));function LWr(e,r){let i=e?s=>e(s,N9t):RWr;return r?new Proxy(i,{apply:(s,l,d)=>KQe(d[0])?AWr:Reflect.apply(s,l,d)}):i}var B5t=LWr;function O9t(e,r){if(!r)throw new Error("parserName is required.");let i=w9t(0,e,l=>l.parsers&&Object.prototype.hasOwnProperty.call(l.parsers,r));if(i)return i;let s=`Couldn't resolve parser "${r}".`;throw s+=" Plugins must be explicitly added to the standalone bundle.",new v9t(s)}function MWr(e,r){if(!r)throw new Error("astFormat is required.");let i=w9t(0,e,l=>l.printers&&Object.prototype.hasOwnProperty.call(l.printers,r));if(i)return i;let s=`Couldn't find plugin for AST format "${r}".`;throw s+=" Plugins must be explicitly added to the standalone bundle.",new v9t(s)}function QQe({plugins:e,parser:r}){let i=O9t(e,r);return F9t(i,r)}function F9t(e,r){let i=e.parsers[r];return typeof i=="function"?i():i}async function jWr(e,r){let i=e.printers[r],s=typeof i=="function"?await i():i;return BWr(s)}var IQe=new WeakMap;function BWr(e){if(IQe.has(e))return IQe.get(e);let{features:r,getVisitorKeys:i,embed:s,massageAstNode:l,print:d,...h}=e;r=qWr(r);let S=r.experimental_frontMatterSupport;i=B5t(i,S.massageAstNode||S.embed||S.print);let b=l;l&&S.massageAstNode&&(b=new Proxy(l,{apply(j,ie,te){return NWr(...te),Reflect.apply(j,ie,te)}}));let A=s;if(s){let j;A=new Proxy(s,{get(ie,te,X){return te==="getVisitorKeys"?(j??(j=s.getVisitorKeys?B5t(s.getVisitorKeys,S.massageAstNode||S.embed):i),j):Reflect.get(ie,te,X)},apply:(ie,te,X)=>S.embed&&P9t(...X)?IWr:Reflect.apply(ie,te,X)})}let L=d;S.print&&(L=new Proxy(d,{apply(j,ie,te){let[X]=te;return KQe(X.node)?FWr(X):Reflect.apply(j,ie,te)}}));let V={features:r,getVisitorKeys:i,embed:A,massageAstNode:b,print:L,...h};return IQe.set(e,V),V}var $Wr=["clean","embed","print"],UWr=Object.fromEntries($Wr.map(e=>[e,!1]));function zWr(e){return{...UWr,...e}}function qWr(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:zWr(e?.experimental_frontMatterSupport)}}var $5t={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function JWr(e,r={}){let i={...e};if(!i.parser)if(i.filepath){if(i.parser=x9t(i,{physicalFile:i.filepath}),!i.parser)throw new D5t(`No parser could be inferred for file "${i.filepath}".`)}else throw new D5t("No parser and no file path given, couldn't infer a parser.");let s=S9t({plugins:e.plugins,showDeprecated:!0}).options,l={...$5t,...Object.fromEntries(s.filter(V=>V.default!==void 0).map(V=>[V.name,V.default]))},d=O9t(i.plugins,i.parser),h=await F9t(d,i.parser);i.astFormat=h.astFormat,i.locEnd=h.locEnd,i.locStart=h.locStart;let S=d.printers?.[h.astFormat]?d:MWr(i.plugins,h.astFormat),b=await jWr(S,h.astFormat);i.printer=b,i.getVisitorKeys=b.getVisitorKeys;let A=S.defaultOptions?Object.fromEntries(Object.entries(S.defaultOptions).filter(([,V])=>V!==void 0)):{},L={...l,...A};for(let[V,j]of Object.entries(L))(i[V]===null||i[V]===void 0)&&(i[V]=j);return i.parser==="json"&&(i.trailingComma="none"),EWr(i,s,{passThrough:Object.keys($5t),...r})}var DY=JWr,Eqn=oJr(aJr(),1),ZQe="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\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\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",R9t="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",kqn=new RegExp("["+ZQe+"]"),Cqn=new RegExp("["+ZQe+R9t+"]");ZQe=R9t=null;var XQe={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Dqn=new Set(XQe.keyword),Aqn=new Set(XQe.strict),wqn=new Set(XQe.strictBind),uCe=(e,r)=>i=>e(r(i));function L9t(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:uCe(uCe(e.white,e.bgRed),e.bold),gutter:e.gray,marker:uCe(e.red,e.bold),message:uCe(e.red,e.bold),reset:e.reset}}var Iqn=L9t(T9t(!0)),Pqn=L9t(T9t(!1));function VWr(){return new Proxy({},{get:()=>e=>e})}var U5t=/\r\n|[\n\r\u2028\u2029]/;function WWr(e,r,i){let s=Object.assign({column:0,line:-1},e.start),l=Object.assign({},s,e.end),{linesAbove:d=2,linesBelow:h=3}=i||{},S=s.line,b=s.column,A=l.line,L=l.column,V=Math.max(S-(d+1),0),j=Math.min(r.length,A+h);S===-1&&(V=0),A===-1&&(j=r.length);let ie=A-S,te={};if(ie)for(let X=0;X<=ie;X++){let Re=X+S;if(!b)te[Re]=!0;else if(X===0){let Je=r[Re-1].length;te[Re]=[b,Je-b+1]}else if(X===ie)te[Re]=[0,L];else{let Je=r[Re-X].length;te[Re]=[0,Je]}}else b===L?b?te[S]=[b,0]:te[S]=!0:te[S]=[b,L-b];return{start:V,end:j,markerLines:te}}function GWr(e,r,i={}){let s=VWr(!1),l=e.split(U5t),{start:d,end:h,markerLines:S}=WWr(r,l,i),b=r.start&&typeof r.start.column=="number",A=String(h).length,L=e.split(U5t,h).slice(d,h).map((V,j)=>{let ie=d+1+j,te=` ${` ${ie}`.slice(-A)} |`,X=S[ie],Re=!S[ie+1];if(X){let Je="";if(Array.isArray(X)){let pt=V.slice(0,Math.max(X[0]-1,0)).replace(/[^\t]/g," "),$e=X[1]||1;Je=[` - `,s.gutter(te.replace(/\d/g," "))," ",pt,s.marker("^").repeat($e)].join(""),Re&&i.message&&(Je+=" "+s.message(i.message))}return[s.marker(">"),s.gutter(te),V.length>0?` ${V}`:"",Je].join("")}else return` ${s.gutter(te)}${V.length>0?` ${V}`:""}`}).join(` -`);return i.message&&!b&&(L=`${" ".repeat(A+1)}${i.message} -${L}`),L}async function HWr(e,r){let i=await QQe(r),s=i.preprocess?await i.preprocess(e,r):e;r.originalText=s;let l;try{l=await i.parse(s,r,r)}catch(d){KWr(d,e)}return{text:s,ast:l}}function KWr(e,r){let{loc:i}=e;if(i){let s=GWr(r,i,{highlightCode:!0});throw e.message+=` -`+s,e.codeFrame=s,e}throw e}var gpe=HWr;async function QWr(e,r,i,s,l){if(i.embeddedLanguageFormatting!=="auto")return;let{printer:d}=i,{embed:h}=d;if(!h)return;if(h.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:S}=d,{getVisitorKeys:b}=h,A=[];j();let L=e.stack;for(let{print:ie,node:te,pathStack:X}of A)try{e.stack=X;let Re=await ie(V,r,e,i);Re&&l.set(te,Re)}catch(Re){if(globalThis.PRETTIER_DEBUG)throw Re}e.stack=L;function V(ie,te){return ZWr(ie,te,i,s)}function j(){let{node:ie}=e;if(ie===null||typeof ie!="object"||S?.(e))return;for(let X of b(ie))Array.isArray(ie[X])?e.each(j,X):e.call(j,X);let te=h(e,i);if(te){if(typeof te=="function"){A.push({print:te,node:ie,pathStack:[...e.stack]});return}l.set(ie,te)}}}async function ZWr(e,r,i,s){let l=await DY({...i,...r,parentParser:i.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:d}=await gpe(e,l),h=await s(d,l);return Y5t(h)}function XWr(e,r,i,s){let{originalText:l,[Symbol.for("comments")]:d,locStart:h,locEnd:S,[Symbol.for("printedComments")]:b}=r,{node:A}=e,L=h(A),V=S(A);for(let ie of d)h(ie)>=L&&S(ie)<=V&&b.add(ie);let{printPrettierIgnored:j}=r.printer;return j?j(e,r,i,s):l.slice(L,V)}var YWr=XWr;async function SCe(e,r){({ast:e}=await M9t(e,r));let i=new Map,s=new dVr(e),l=NVr(r),d=new Map;await QWr(s,S,r,SCe,d);let h=await z5t(s,r,S,void 0,d);if(PVr(r),r.cursorOffset>=0){if(r.nodeAfterCursor&&!r.nodeBeforeCursor)return[nV,h];if(r.nodeBeforeCursor&&!r.nodeAfterCursor)return[h,nV]}return h;function S(A,L){return A===void 0||A===s?b(L):Array.isArray(A)?s.call(()=>b(L),...A):s.call(()=>b(L),A)}function b(A){l(s);let L=s.node;if(L==null)return"";let V=VQe(L)&&A===void 0;if(V&&i.has(L))return i.get(L);let j=z5t(s,r,S,A,d);return V&&i.set(L,j),j}}function z5t(e,r,i,s,l){let{node:d}=e,{printer:h}=r,S;switch(h.hasPrettierIgnore?.(e)?S=YWr(e,r,i,s):l.has(d)?S=l.get(d):S=h.print(e,r,i,s),d){case r.cursorNode:S=pCe(S,b=>[nV,b,nV]);break;case r.nodeBeforeCursor:S=pCe(S,b=>[b,nV]);break;case r.nodeAfterCursor:S=pCe(S,b=>[nV,b]);break}return h.printComment&&!h.willPrintOwnComments?.(e,r)&&(S=IVr(e,S,r)),S}async function M9t(e,r){let i=e.comments??[];r[Symbol.for("comments")]=i,r[Symbol.for("printedComments")]=new Set,TVr(e,r);let{printer:{preprocess:s}}=r;return e=s?await s(e,r):e,{ast:e,comments:i}}function eGr(e,r){let{cursorOffset:i,locStart:s,locEnd:l,getVisitorKeys:d}=r,h=ie=>s(ie)<=i&&l(ie)>=i,S=e,b=[e];for(let ie of SVr(e,{getVisitorKeys:d,filter:h}))b.push(ie),S=ie;if(bVr(S,{getVisitorKeys:d}))return{cursorNode:S};let A,L,V=-1,j=Number.POSITIVE_INFINITY;for(;b.length>0&&(A===void 0||L===void 0);){S=b.pop();let ie=A!==void 0,te=L!==void 0;for(let X of vCe(S,{getVisitorKeys:d})){if(!ie){let Re=l(X);Re<=i&&Re>V&&(A=X,V=Re)}if(!te){let Re=s(X);Re>=i&&Reh(j,b)).filter(Boolean);let A={},L=new Set(l(S));for(let j in S)!Object.prototype.hasOwnProperty.call(S,j)||d?.has(j)||(L.has(j)?A[j]=h(S[j],S):A[j]=S[j]);let V=s(S,A,b);if(V!==null)return V??A}}var rGr=tGr,nGr=Array.prototype.findLastIndex??function(e){for(let r=this.length-1;r>=0;r--){let i=this[r];if(e(i,r,this))return r}return-1},iGr=mpe("findLastIndex",function(){if(Array.isArray(this))return nGr}),oGr=iGr,aGr=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function sGr(e,r){return r=new Set(r),e.find(i=>B9t.has(i.type)&&r.has(i))}function q5t(e){let r=oGr(0,e,i=>i.type!=="Program"&&i.type!=="File");return r===-1?e:e.slice(0,r+1)}function cGr(e,r,{locStart:i,locEnd:s}){let[l,...d]=e,[h,...S]=r;if(l===h)return[l,h];let b=i(l);for(let L of q5t(S))if(i(L)>=b)h=L;else break;let A=s(h);for(let L of q5t(d)){if(s(L)<=A)l=L;else break;if(l===h)break}return[l,h]}function RQe(e,r,i,s,l=[],d){let{locStart:h,locEnd:S}=i,b=h(e),A=S(e);if(r>A||rs);let S=e.slice(s,l).search(/\S/u),b=S===-1;if(!b)for(s+=S;l>s&&!/\S/u.test(e[l-1]);--l);let A=RQe(i,s,r,(ie,te)=>J5t(r,ie,te),[],"rangeStart");if(!A)return;let L=b?A:RQe(i,l,r,ie=>J5t(r,ie),[],"rangeEnd");if(!L)return;let V,j;if(aGr(r)){let ie=sGr(A,L);V=ie,j=ie}else[V,j]=cGr(A,L,r);return[Math.min(d(V),d(j)),Math.max(h(V),h(j))]}var $9t="\uFEFF",V5t=Symbol("cursor");async function U9t(e,r,i=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:s,text:l}=await gpe(e,r);r.cursorOffset>=0&&(r={...r,...j9t(s,r)});let d=await SCe(s,r,i);i>0&&(d=r9t([D5,d],i,r.tabWidth));let h=yCe(d,r);if(i>0){let b=h.formatted.trim();h.cursorNodeStart!==void 0&&(h.cursorNodeStart-=h.formatted.indexOf(b),h.cursorNodeStart<0&&(h.cursorNodeStart=0,h.cursorNodeText=h.cursorNodeText.trimStart()),h.cursorNodeStart+h.cursorNodeText.length>b.length&&(h.cursorNodeText=h.cursorNodeText.trimEnd())),h.formatted=b+BQe(r.endOfLine)}let S=r[Symbol.for("comments")];if(r.cursorOffset>=0){let b,A,L,V;if((r.cursorNode||r.nodeBeforeCursor||r.nodeAfterCursor)&&h.cursorNodeText)if(L=h.cursorNodeStart,V=h.cursorNodeText,r.cursorNode)b=r.locStart(r.cursorNode),A=l.slice(b,r.locEnd(r.cursorNode));else{if(!r.nodeBeforeCursor&&!r.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");b=r.nodeBeforeCursor?r.locEnd(r.nodeBeforeCursor):0;let Je=r.nodeAfterCursor?r.locStart(r.nodeAfterCursor):l.length;A=l.slice(b,Je)}else b=0,A=l,L=0,V=h.formatted;let j=r.cursorOffset-b;if(A===V)return{formatted:h.formatted,cursorOffset:L+j,comments:S};let ie=A.split("");ie.splice(j,0,V5t);let te=V.split(""),X=dJr(ie,te),Re=L;for(let Je of X)if(Je.removed){if(Je.value.includes(V5t))break}else Re+=Je.count;return{formatted:h.formatted,cursorOffset:Re,comments:S}}return{formatted:h.formatted,cursorOffset:-1,comments:S}}async function _Gr(e,r){let{ast:i,text:s}=await gpe(e,r),[l,d]=pGr(s,r,i)??[0,0],h=s.slice(l,d),S=Math.min(l,s.lastIndexOf(` -`,l)+1),b=s.slice(S,l).match(/^\s*/u)[0],A=JQe(b,r.tabWidth),L=await U9t(h,{...r,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:r.cursorOffset>l&&r.cursorOffset<=d?r.cursorOffset-l:-1,endOfLine:"lf"},A),V=L.formatted.trimEnd(),{cursorOffset:j}=r;j>d?j+=V.length-h.length:L.cursorOffset>=0&&(j=L.cursorOffset+l);let ie=s.slice(0,l)+V+s.slice(d);if(r.endOfLine!=="lf"){let te=BQe(r.endOfLine);j>=0&&te===`\r -`&&(j+=Z5t(ie.slice(0,j),` -`)),ie=fCe(0,ie,` -`,te)}return{formatted:ie,cursorOffset:j,comments:L.comments}}function PQe(e,r,i){return typeof r!="number"||Number.isNaN(r)||r<0||r>e.length?i:r}function W5t(e,r){let{cursorOffset:i,rangeStart:s,rangeEnd:l}=r;return i=PQe(e,i,-1),s=PQe(e,s,0),l=PQe(e,l,e.length),{...r,cursorOffset:i,rangeStart:s,rangeEnd:l}}function z9t(e,r){let{cursorOffset:i,rangeStart:s,rangeEnd:l,endOfLine:d}=W5t(e,r),h=e.charAt(0)===$9t;if(h&&(e=e.slice(1),i--,s--,l--),d==="auto"&&(d=yJr(e)),e.includes("\r")){let S=b=>Z5t(e.slice(0,Math.max(b,0)),`\r -`);i-=S(i),s-=S(s),l-=S(l),e=bJr(e)}return{hasBOM:h,text:e,options:W5t(e,{...r,cursorOffset:i,rangeStart:s,rangeEnd:l,endOfLine:d})}}async function G5t(e,r){let i=await QQe(r);return!i.hasPragma||i.hasPragma(e)}async function dGr(e,r){return(await QQe(r)).hasIgnorePragma?.(e)}async function q9t(e,r){let{hasBOM:i,text:s,options:l}=z9t(e,await DY(r));if(l.rangeStart>=l.rangeEnd&&s!==""||l.requirePragma&&!await G5t(s,l)||l.checkIgnorePragma&&await dGr(s,l))return{formatted:e,cursorOffset:r.cursorOffset,comments:[]};let d;return l.rangeStart>0||l.rangeEnd=0&&d.cursorOffset++),d}async function fGr(e,r,i){let{text:s,options:l}=z9t(e,await DY(r)),d=await gpe(s,l);return i&&(i.preprocessForPrint&&(d.ast=await M9t(d.ast,l)),i.massage&&(d.ast=rGr(d.ast,l))),d}async function mGr(e,r){r=await DY(r);let i=await SCe(e,r);return yCe(i,r)}async function hGr(e,r){let i=XJr(e),{formatted:s}=await q9t(i,{...r,parser:"__js_expression"});return s}async function gGr(e,r){r=await DY(r);let{ast:i}=await gpe(e,r);return r.cursorOffset>=0&&(r={...r,...j9t(i,r)}),SCe(i,r)}async function yGr(e,r){return yCe(e,await DY(r))}var J9t={};MQe(J9t,{builders:()=>vGr,printer:()=>SGr,utils:()=>bGr});var vGr={join:i9t,line:o9t,softline:KJr,hardline:D5,literalline:s9t,group:n9t,conditionalGroup:VJr,fill:JJr,lineSuffix:NQe,lineSuffixBoundary:QJr,cursor:nV,breakParent:gCe,ifBreak:WJr,trim:ZJr,indent:dCe,indentIfBreak:GJr,align:CY,addAlignmentToDoc:r9t,markAsRoot:t9t,dedentToRoot:zJr,dedent:qJr,hardlineWithoutBreakParent:zQe,literallineWithoutBreakParent:a9t,label:HJr,concat:e=>e},SGr={printDocToString:yCe},bGr={willBreak:PJr,traverseDoc:$Qe,findInDoc:UQe,mapDoc:hCe,removeLines:FJr,stripTrailingHardline:Y5t,replaceEndOfLine:MJr,canBreak:BJr},xGr="3.8.1",V9t={};MQe(V9t,{addDanglingComment:()=>tV,addLeadingComment:()=>dpe,addTrailingComment:()=>fpe,getAlignmentSize:()=>JQe,getIndentSize:()=>AGr,getMaxContinuousCount:()=>PGr,getNextNonSpaceNonCommentCharacter:()=>OGr,getNextNonSpaceNonCommentCharacterIndex:()=>qGr,getPreferredQuote:()=>MGr,getStringWidth:()=>qQe,hasNewline:()=>Vj,hasNewlineInRange:()=>BGr,hasSpaces:()=>UGr,isNextLineEmpty:()=>HGr,isNextLineEmptyAfterIndex:()=>rZe,isPreviousLineEmpty:()=>VGr,makeString:()=>GGr,skip:()=>hpe,skipEverythingButNewLine:()=>_9t,skipInlineComment:()=>YQe,skipNewline:()=>iV,skipSpaces:()=>Gj,skipToLineEnd:()=>p9t,skipTrailingComment:()=>eZe,skipWhitespace:()=>mVr});function TGr(e,r){if(r===!1)return!1;if(e.charAt(r)==="/"&&e.charAt(r+1)==="*"){for(let i=r+2;iMath.max(s,l.length),0)/r.length}var PGr=IGr;function NGr(e,r){let i=tZe(e,r);return i===!1?"":e.charAt(i)}var OGr=NGr,W9t=Object.freeze({character:"'",codePoint:39}),G9t=Object.freeze({character:'"',codePoint:34}),FGr=Object.freeze({preferred:W9t,alternate:G9t}),RGr=Object.freeze({preferred:G9t,alternate:W9t});function LGr(e,r){let{preferred:i,alternate:s}=r===!0||r==="'"?FGr:RGr,{length:l}=e,d=0,h=0;for(let S=0;Sh?s:i).character}var MGr=LGr;function jGr(e,r,i){for(let s=r;sh===s?h:S===r?"\\"+S:S||(i&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(h)?h:"\\"+h));return r+l+r}function HGr(e,r){return arguments.length===2||typeof r=="number"?rZe(e,r):WGr(...arguments)}function rV(e,r=1){return async(...i)=>{let s=i[r]??{},l=s.plugins??[];return i[r]={...s,plugins:Array.isArray(l)?l:Object.values(l)},e(...i)}}var H9t=rV(q9t);async function bCe(e,r){let{formatted:i}=await H9t(e,{...r,cursorOffset:-1});return i}async function KGr(e,r){return await bCe(e,r)===e}var QGr=rV(S9t,0),ZGr={parse:rV(fGr),formatAST:rV(mGr),formatDoc:rV(hGr),printToDoc:rV(gGr),printDocToString:rV(yGr)};var XGr=Object.defineProperty,yZe=(e,r)=>{for(var i in r)XGr(e,i,{get:r[i],enumerable:!0})},vZe={};yZe(vZe,{parsers:()=>QQr});var xRt={};yZe(xRt,{__babel_estree:()=>qQr,__js_expression:()=>SRt,__ts_expression:()=>bRt,__vue_event_binding:()=>yRt,__vue_expression:()=>SRt,__vue_ts_event_binding:()=>vRt,__vue_ts_expression:()=>bRt,babel:()=>yRt,"babel-flow":()=>XRt,"babel-ts":()=>vRt});function YGr(e,r){if(e==null)return{};var i={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(r.indexOf(s)!==-1)continue;i[s]=e[s]}return i}var Yj=class{line;column;index;constructor(e,r,i){this.line=e,this.column=r,this.index=i}},PCe=class{start;end;filename;identifierName;constructor(e,r){this.start=e,this.end=r}};function eI(e,r){let{line:i,column:s,index:l}=e;return new Yj(i,s+r,l+r)}var K9t="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",eHr={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:K9t},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:K9t}},Q9t={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"},CCe=e=>e.type==="UpdateExpression"?Q9t.UpdateExpression[`${e.prefix}`]:Q9t[e.type],tHr={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:r})=>`A string literal cannot be used as an exported binding without \`from\`. -- Did you mean \`export { '${e}' as '${r}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"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 ${e==="BreakStatement"?"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. -- 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 ${CCe(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${CCe(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${CCe(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(r=>JSON.stringify(r)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(r=>JSON.stringify(r)).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:r})=>`Unexpected token${r?` '${r}'.`:""}${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:r})=>`The only valid meta property for ${e} is ${e}.${r}.`,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."},rHr={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."},nHr={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)}\`.`},iHr=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),oHr=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 references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',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 ${CCe({type:e})}; please wrap it in parentheses.`},{}),aHr=["message"];function Z9t(e,r,i){Object.defineProperty(e,r,{enumerable:!1,configurable:!0,value:i})}function sHr({toMessage:e,code:r,reasonCode:i,syntaxPlugin:s}){let l=i==="MissingPlugin"||i==="MissingOneOfPlugins";return function d(h,S){let b=new SyntaxError;return b.code=r,b.reasonCode=i,b.loc=h,b.pos=h.index,b.syntaxPlugin=s,l&&(b.missingPlugin=S.missingPlugin),Z9t(b,"clone",function(A={}){let{line:L,column:V,index:j}=A.loc??h;return d(new Yj(L,V,j),Object.assign({},S,A.details))}),Z9t(b,"details",S),Object.defineProperty(b,"message",{configurable:!0,get(){let A=`${e(S)} (${h.line}:${h.column})`;return this.message=A,A},set(A){Object.defineProperty(this,"message",{value:A,writable:!0})}}),b}}function c8(e,r){if(Array.isArray(e))return s=>c8(s,e[0]);let i={};for(let s of Object.keys(e)){let l=e[s],d=typeof l=="string"?{message:()=>l}:typeof l=="function"?{message:l}:l,{message:h}=d,S=YGr(d,aHr),b=typeof h=="string"?()=>h:h;i[s]=sHr(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:s,toMessage:b},r?{syntaxPlugin:r}:{},S))}return i}var xn=Object.assign({},c8(eHr),c8(tHr),c8(rHr),c8(nHr),c8`pipelineOperator`(oHr));function cHr(){return{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:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function lHr(e){let r=cHr();if(e==null)return r;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let i of Object.keys(r))e[i]!=null&&(r[i]=e[i]);if(r.startLine===1)e.startIndex==null&&r.startColumn>0?r.startIndex=r.startColumn:e.startColumn==null&&r.startIndex>0&&(r.startColumn=r.startIndex);else if(e.startColumn==null||e.startIndex==null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(r.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return r}var{defineProperty:uHr}=Object,X9t=(e,r)=>{e&&uHr(e,r,{enumerable:!1,value:e[r]})};function ype(e){return X9t(e.loc.start,"index"),X9t(e.loc.end,"index"),e}var pHr=e=>class extends e{parse(){let r=ype(super.parse());return this.optionFlags&256&&(r.tokens=r.tokens.map(ype)),r}parseRegExpLiteral({pattern:r,flags:i}){let s=null;try{s=new RegExp(r,i)}catch{}let l=this.estreeParseLiteral(s);return l.regex={pattern:r,flags:i},l}parseBigIntLiteral(r){let i;try{i=BigInt(r)}catch{i=null}let s=this.estreeParseLiteral(i);return s.bigint=String(s.value||r),s}parseDecimalLiteral(r){let i=this.estreeParseLiteral(null);return i.decimal=String(i.value||r),i}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}estreeParseChainExpression(r,i){let s=this.startNodeAtNode(r);return s.expression=r,this.finishNodeAt(s,"ChainExpression",i)}directiveToStmt(r){let i=r.value;delete r.value,this.castNodeTo(i,"Literal"),i.raw=i.extra.raw,i.value=i.extra.expressionValue;let s=this.castNodeTo(r,"ExpressionStatement");return s.expression=i,s.directive=i.extra.rawValue,delete i.extra,s}fillOptionalPropertiesForTSESLint(r){}cloneEstreeStringLiteral(r){let{start:i,end:s,loc:l,range:d,raw:h,value:S}=r,b=Object.create(r.constructor.prototype);return b.type="Literal",b.start=i,b.end=s,b.loc=l,b.range=d,b.raw=h,b.value=S,b}initFunction(r,i){super.initFunction(r,i),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!r.expression.extra?.parenthesized}parseBlockBody(r,i,s,l,d){super.parseBlockBody(r,i,s,l,d);let h=r.directives.map(S=>this.directiveToStmt(S));r.body=h.concat(r.body),delete r.directives}parsePrivateName(){let r=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(r)}convertPrivateNameToPrivateIdentifier(r){let i=super.getPrivateNameSV(r);return delete r.id,r.name=i,this.castNodeTo(r,"PrivateIdentifier")}isPrivateName(r){return r.type==="PrivateIdentifier"}getPrivateNameSV(r){return r.name}parseLiteral(r,i){let s=super.parseLiteral(r,i);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(r,i,s=!1){super.parseFunctionBody(r,i,s),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,i,s,l,d,h,S=!1){let b=this.startNode();b.kind=r.kind,b=super.parseMethod(b,i,s,l,d,h,S),delete b.kind;let{typeParameters:A}=r;A&&(delete r.typeParameters,b.typeParameters=A,this.resetStartLocationFromNode(b,A));let L=this.castNodeTo(b,this.hasPlugin("typescript")&&!b.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return r.value=L,h==="ClassPrivateMethod"&&(r.computed=!1),this.hasPlugin("typescript")&&r.abstract?(delete r.abstract,this.finishNode(r,"TSAbstractMethodDefinition")):h==="ObjectMethod"?(r.kind==="method"&&(r.kind="init"),r.shorthand=!1,this.finishNode(r,"Property")):this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let i=super.parseClassProperty(...r);return i.abstract&&this.hasPlugin("typescript")?(delete i.abstract,this.castNodeTo(i,"TSAbstractPropertyDefinition")):this.castNodeTo(i,"PropertyDefinition"),i}parseClassPrivateProperty(...r){let i=super.parseClassPrivateProperty(...r);return i.abstract&&this.hasPlugin("typescript")?this.castNodeTo(i,"TSAbstractPropertyDefinition"):this.castNodeTo(i,"PropertyDefinition"),i.computed=!1,i}parseClassAccessorProperty(r){let i=super.parseClassAccessorProperty(r);return i.abstract&&this.hasPlugin("typescript")?(delete i.abstract,this.castNodeTo(i,"TSAbstractAccessorProperty")):this.castNodeTo(i,"AccessorProperty"),i}parseObjectProperty(r,i,s,l){let d=super.parseObjectProperty(r,i,s,l);return d&&(d.kind="init",this.castNodeTo(d,"Property")),d}finishObjectProperty(r){return r.kind="init",this.finishNode(r,"Property")}isValidLVal(r,i,s,l){return r==="Property"?"value":super.isValidLVal(r,i,s,l)}isAssignable(r,i){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,i):super.isAssignable(r,i)}toAssignable(r,i=!1){if(r!=null&&this.isObjectProperty(r)){let{key:s,value:l}=r;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(l,i)}else super.toAssignable(r,i)}toAssignableObjectExpressionProp(r,i,s){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(xn.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(xn.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,i,s)}finishCallExpression(r,i){let s=super.finishCallExpression(r,i);return s.callee.type==="Import"?(this.castNodeTo(s,"ImportExpression"),s.source=s.arguments[0],s.options=s.arguments[1]??null,delete s.arguments,delete s.callee):s.type==="OptionalCallExpression"?this.castNodeTo(s,"CallExpression"):s.optional=!1,s}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,i){let s=this.state.lastTokStartLoc,l=super.parseExport(r,i);switch(l.type){case"ExportAllDeclaration":l.exported=null;break;case"ExportNamedDeclaration":l.specifiers.length===1&&l.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(l,"ExportAllDeclaration"),l.exported=l.specifiers[0].exported,delete l.specifiers);case"ExportDefaultDeclaration":{let{declaration:d}=l;d?.type==="ClassDeclaration"&&d.decorators?.length>0&&d.start===l.start&&this.resetStartLocation(l,s)}break}return l}stopParseSubscript(r,i){let s=super.stopParseSubscript(r,i);return i.optionalChainMember?this.estreeParseChainExpression(s,r.loc.end):s}parseMember(r,i,s,l,d){let h=super.parseMember(r,i,s,l,d);return h.type==="OptionalMemberExpression"?this.castNodeTo(h,"MemberExpression"):h.optional=!1,h}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}castNodeTo(r,i){let s=super.castNodeTo(r,i);return this.fillOptionalPropertiesForTSESLint(s),s}cloneIdentifier(r){let i=super.cloneIdentifier(r);return this.fillOptionalPropertiesForTSESLint(i),i}cloneStringLiteral(r){return r.type==="Literal"?this.cloneEstreeStringLiteral(r):super.cloneStringLiteral(r)}finishNodeAt(r,i,s){return ype(super.finishNodeAt(r,i,s))}finishNode(r,i){let s=super.finishNode(r,i);return this.fillOptionalPropertiesForTSESLint(s),s}resetStartLocation(r,i){super.resetStartLocation(r,i),ype(r)}resetEndLocation(r,i=this.state.lastTokEndLoc){super.resetEndLocation(r,i),ype(r)}},xCe=class{constructor(e,r){this.token=e,this.preserveSpace=!!r}token;preserveSpace},kg={brace:new xCe("{"),j_oTag:new xCe("...",!0)},j_=!0,Ks=!0,nZe=!0,vpe=!0,Qj=!0,_Hr=!0,TRt=class{label;keyword;beforeExpr;startsExpr;rightAssociative;isLoop;isAssign;prefix;postfix;binop;constructor(e,r={}){this.label=e,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null}},SZe=new Map;function Hd(e,r={}){r.keyword=e;let i=ql(e,r);return SZe.set(e,i),i}function j2(e,r){return ql(e,{beforeExpr:j_,binop:r})}var Epe=-1,bZe=[],xZe=[],TZe=[],EZe=[],kZe=[],CZe=[];function ql(e,r={}){return++Epe,xZe.push(e),TZe.push(r.binop??-1),EZe.push(r.beforeExpr??!1),kZe.push(r.startsExpr??!1),CZe.push(r.prefix??!1),bZe.push(new TRt(e,r)),Epe}function Q_(e,r={}){return++Epe,SZe.set(e,Epe),xZe.push(e),TZe.push(r.binop??-1),EZe.push(r.beforeExpr??!1),kZe.push(r.startsExpr??!1),CZe.push(r.prefix??!1),bZe.push(new TRt("name",r)),Epe}var dHr={bracketL:ql("[",{beforeExpr:j_,startsExpr:Ks}),bracketHashL:ql("#[",{beforeExpr:j_,startsExpr:Ks}),bracketBarL:ql("[|",{beforeExpr:j_,startsExpr:Ks}),bracketR:ql("]"),bracketBarR:ql("|]"),braceL:ql("{",{beforeExpr:j_,startsExpr:Ks}),braceBarL:ql("{|",{beforeExpr:j_,startsExpr:Ks}),braceHashL:ql("#{",{beforeExpr:j_,startsExpr:Ks}),braceR:ql("}"),braceBarR:ql("|}"),parenL:ql("(",{beforeExpr:j_,startsExpr:Ks}),parenR:ql(")"),comma:ql(",",{beforeExpr:j_}),semi:ql(";",{beforeExpr:j_}),colon:ql(":",{beforeExpr:j_}),doubleColon:ql("::",{beforeExpr:j_}),dot:ql("."),question:ql("?",{beforeExpr:j_}),questionDot:ql("?."),arrow:ql("=>",{beforeExpr:j_}),template:ql("template"),ellipsis:ql("...",{beforeExpr:j_}),backQuote:ql("`",{startsExpr:Ks}),dollarBraceL:ql("${",{beforeExpr:j_,startsExpr:Ks}),templateTail:ql("...`",{startsExpr:Ks}),templateNonTail:ql("...${",{beforeExpr:j_,startsExpr:Ks}),at:ql("@"),hash:ql("#",{startsExpr:Ks}),interpreterDirective:ql("#!..."),eq:ql("=",{beforeExpr:j_,isAssign:vpe}),assign:ql("_=",{beforeExpr:j_,isAssign:vpe}),slashAssign:ql("_=",{beforeExpr:j_,isAssign:vpe}),xorAssign:ql("_=",{beforeExpr:j_,isAssign:vpe}),moduloAssign:ql("_=",{beforeExpr:j_,isAssign:vpe}),incDec:ql("++/--",{prefix:Qj,postfix:_Hr,startsExpr:Ks}),bang:ql("!",{beforeExpr:j_,prefix:Qj,startsExpr:Ks}),tilde:ql("~",{beforeExpr:j_,prefix:Qj,startsExpr:Ks}),doubleCaret:ql("^^",{startsExpr:Ks}),doubleAt:ql("@@",{startsExpr:Ks}),pipeline:j2("|>",0),nullishCoalescing:j2("??",1),logicalOR:j2("||",1),logicalAND:j2("&&",2),bitwiseOR:j2("|",3),bitwiseXOR:j2("^",4),bitwiseAND:j2("&",5),equality:j2("==/!=/===/!==",6),lt:j2("/<=/>=",7),gt:j2("/<=/>=",7),relational:j2("/<=/>=",7),bitShift:j2("<>/>>>",8),bitShiftL:j2("<>/>>>",8),bitShiftR:j2("<>/>>>",8),plusMin:ql("+/-",{beforeExpr:j_,binop:9,prefix:Qj,startsExpr:Ks}),modulo:ql("%",{binop:10,startsExpr:Ks}),star:ql("*",{binop:10}),slash:j2("/",10),exponent:ql("**",{beforeExpr:j_,binop:11,rightAssociative:!0}),_in:Hd("in",{beforeExpr:j_,binop:7}),_instanceof:Hd("instanceof",{beforeExpr:j_,binop:7}),_break:Hd("break"),_case:Hd("case",{beforeExpr:j_}),_catch:Hd("catch"),_continue:Hd("continue"),_debugger:Hd("debugger"),_default:Hd("default",{beforeExpr:j_}),_else:Hd("else",{beforeExpr:j_}),_finally:Hd("finally"),_function:Hd("function",{startsExpr:Ks}),_if:Hd("if"),_return:Hd("return",{beforeExpr:j_}),_switch:Hd("switch"),_throw:Hd("throw",{beforeExpr:j_,prefix:Qj,startsExpr:Ks}),_try:Hd("try"),_var:Hd("var"),_const:Hd("const"),_with:Hd("with"),_new:Hd("new",{beforeExpr:j_,startsExpr:Ks}),_this:Hd("this",{startsExpr:Ks}),_super:Hd("super",{startsExpr:Ks}),_class:Hd("class",{startsExpr:Ks}),_extends:Hd("extends",{beforeExpr:j_}),_export:Hd("export"),_import:Hd("import",{startsExpr:Ks}),_null:Hd("null",{startsExpr:Ks}),_true:Hd("true",{startsExpr:Ks}),_false:Hd("false",{startsExpr:Ks}),_typeof:Hd("typeof",{beforeExpr:j_,prefix:Qj,startsExpr:Ks}),_void:Hd("void",{beforeExpr:j_,prefix:Qj,startsExpr:Ks}),_delete:Hd("delete",{beforeExpr:j_,prefix:Qj,startsExpr:Ks}),_do:Hd("do",{isLoop:nZe,beforeExpr:j_}),_for:Hd("for",{isLoop:nZe}),_while:Hd("while",{isLoop:nZe}),_as:Q_("as",{startsExpr:Ks}),_assert:Q_("assert",{startsExpr:Ks}),_async:Q_("async",{startsExpr:Ks}),_await:Q_("await",{startsExpr:Ks}),_defer:Q_("defer",{startsExpr:Ks}),_from:Q_("from",{startsExpr:Ks}),_get:Q_("get",{startsExpr:Ks}),_let:Q_("let",{startsExpr:Ks}),_meta:Q_("meta",{startsExpr:Ks}),_of:Q_("of",{startsExpr:Ks}),_sent:Q_("sent",{startsExpr:Ks}),_set:Q_("set",{startsExpr:Ks}),_source:Q_("source",{startsExpr:Ks}),_static:Q_("static",{startsExpr:Ks}),_using:Q_("using",{startsExpr:Ks}),_yield:Q_("yield",{startsExpr:Ks}),_asserts:Q_("asserts",{startsExpr:Ks}),_checks:Q_("checks",{startsExpr:Ks}),_exports:Q_("exports",{startsExpr:Ks}),_global:Q_("global",{startsExpr:Ks}),_implements:Q_("implements",{startsExpr:Ks}),_intrinsic:Q_("intrinsic",{startsExpr:Ks}),_infer:Q_("infer",{startsExpr:Ks}),_is:Q_("is",{startsExpr:Ks}),_mixins:Q_("mixins",{startsExpr:Ks}),_proto:Q_("proto",{startsExpr:Ks}),_require:Q_("require",{startsExpr:Ks}),_satisfies:Q_("satisfies",{startsExpr:Ks}),_keyof:Q_("keyof",{startsExpr:Ks}),_readonly:Q_("readonly",{startsExpr:Ks}),_unique:Q_("unique",{startsExpr:Ks}),_abstract:Q_("abstract",{startsExpr:Ks}),_declare:Q_("declare",{startsExpr:Ks}),_enum:Q_("enum",{startsExpr:Ks}),_module:Q_("module",{startsExpr:Ks}),_namespace:Q_("namespace",{startsExpr:Ks}),_interface:Q_("interface",{startsExpr:Ks}),_type:Q_("type",{startsExpr:Ks}),_opaque:Q_("opaque",{startsExpr:Ks}),name:ql("name",{startsExpr:Ks}),placeholder:ql("%%",{startsExpr:Ks}),string:ql("string",{startsExpr:Ks}),num:ql("num",{startsExpr:Ks}),bigint:ql("bigint",{startsExpr:Ks}),decimal:ql("decimal",{startsExpr:Ks}),regexp:ql("regexp",{startsExpr:Ks}),privateName:ql("#name",{startsExpr:Ks}),eof:ql("eof"),jsxName:ql("jsxName"),jsxText:ql("jsxText",{beforeExpr:j_}),jsxTagStart:ql("jsxTagStart",{startsExpr:Ks}),jsxTagEnd:ql("jsxTagEnd")};function fm(e){return e>=93&&e<=133}function fHr(e){return e<=92}function R6(e){return e>=58&&e<=133}function ERt(e){return e>=58&&e<=137}function mHr(e){return EZe[e]}function xpe(e){return kZe[e]}function hHr(e){return e>=29&&e<=33}function Y9t(e){return e>=129&&e<=131}function gHr(e){return e>=90&&e<=92}function DZe(e){return e>=58&&e<=92}function yHr(e){return e>=39&&e<=59}function vHr(e){return e===34}function SHr(e){return CZe[e]}function bHr(e){return e>=121&&e<=123}function xHr(e){return e>=124&&e<=130}function eB(e){return xZe[e]}function DCe(e){return TZe[e]}function THr(e){return e===57}function pZe(e){return e>=24&&e<=25}function kRt(e){return bZe[e]}var AZe="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\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\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",CRt="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",EHr=new RegExp("["+AZe+"]"),kHr=new RegExp("["+AZe+CRt+"]");AZe=CRt=null;var DRt=[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],CHr=[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 _Ze(e,r){let i=65536;for(let s=0,l=r.length;se)return!1;if(i+=r[s+1],i>=e)return!0}return!1}function l8(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&EHr.test(String.fromCharCode(e)):_Ze(e,DRt)}function cV(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&kHr.test(String.fromCharCode(e)):_Ze(e,DRt)||_Ze(e,CHr)}var wZe={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},DHr=new Set(wZe.keyword),AHr=new Set(wZe.strict),wHr=new Set(wZe.strictBind);function ARt(e,r){return r&&e==="await"||e==="enum"}function wRt(e,r){return ARt(e,r)||AHr.has(e)}function IRt(e){return wHr.has(e)}function PRt(e,r){return wRt(e,r)||IRt(e)}function IHr(e){return DHr.has(e)}function PHr(e,r,i){return e===64&&r===64&&l8(i)}var NHr=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"]);function OHr(e){return NHr.has(e)}var IZe=class{flags=0;names=new Map;firstLexicalName="";constructor(e){this.flags=e}},PZe=class{parser;scopeStack=[];inModule;undefinedExports=new Map;constructor(e,r){this.parser=e,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&128)return!0;if(r&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new IZe(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,r,i){let s=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(s,e,r,i);let l=s.names.get(e)||0;r&16?l=l|4:(s.firstLexicalName||(s.firstLexicalName=e),l=l|2),s.names.set(e,l),r&8&&this.maybeExportDefined(s,e)}else if(r&4)for(let l=this.scopeStack.length-1;l>=0&&(s=this.scopeStack[l],this.checkRedeclarationInScope(s,e,r,i),s.names.set(e,(s.names.get(e)||0)|1),this.maybeExportDefined(s,e),!(s.flags&1667));--l);this.parser.inModule&&s.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,r){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(e,r,i,s){this.isRedeclaredInScope(e,r,i)&&this.parser.raise(xn.VarRedeclaration,s,{identifierName:r})}isRedeclaredInScope(e,r,i){if(!(i&1))return!1;if(i&8)return e.names.has(r);let s=e.names.get(r)||0;return i&16?(s&2)>0||!this.treatFunctionsAsVarInScope(e)&&(s&1)>0:(s&2)>0&&!(e.flags&8&&e.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(e)&&(s&4)>0}checkLocalExport(e){let{name:r}=e;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&1667)return r}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&1731&&!(r&4))return r}}},FHr=class extends IZe{declareFunctions=new Set},RHr=class extends PZe{createScope(e){return new FHr(e)}declareName(e,r,i){let s=this.currentScope();if(r&2048){this.checkRedeclarationInScope(s,e,r,i),this.maybeExportDefined(s,e),s.declareFunctions.add(e);return}super.declareName(e,r,i)}isRedeclaredInScope(e,r,i){if(super.isRedeclaredInScope(e,r,i))return!0;if(i&2048&&!e.declareFunctions.has(r)){let s=e.names.get(r);return(s&4)>0||(s&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},LHr=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),iu=c8`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:r})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${r}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:r})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${r}\`.`,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:r})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${r}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:r,explicitType:i})=>`Enum \`${e}\` has type \`${i}\`, so the initializer of \`${r}\` needs to be a ${i} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:r})=>`Symbol enum members cannot be initialized. Use \`${r},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:r})=>`The enum member initializer for \`${r}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:r,suggestion:i})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${r}\`, consider using \`${i}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:r})=>`Number enum members need to be initialized, e.g. \`${r} = 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."},{}),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 ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:r})=>`\`declare export ${e}\` is not supported. Use \`${r}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function MHr(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function eRt(e){return e.importKind==="type"||e.importKind==="typeof"}var jHr={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function BHr(e,r){let i=[],s=[];for(let l=0;lclass extends e{flowPragma=void 0;getScopeHandler(){return RHr}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,i){r!==134&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,i)}addComment(r){if(this.flowPragma===void 0){let i=$Hr.exec(r.value);if(i)if(i[1]==="flow")this.flowPragma="flow";else if(i[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let i=this.state.inType;this.state.inType=!0,this.expect(r||14);let s=this.flowParseType();return this.state.inType=i,s}flowParsePredicate(){let r=this.startNode(),i=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>i.index+1&&this.raise(iu.UnexpectedSpaceBetweenModuloChecks,i),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let i=null,s=null;return this.match(54)?(this.state.inType=r,s=this.flowParsePredicate()):(i=this.flowParseType(),this.state.inType=r,this.match(54)&&(s=this.flowParsePredicate())),[i,s]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let i=r.id=this.parseIdentifier(),s=this.startNode(),l=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);let d=this.flowParseFunctionTypeParams();return s.params=d.params,s.rest=d.rest,s.this=d._this,this.expect(11),[s.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),l.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),i.typeAnnotation=this.finishNode(l,"TypeAnnotation"),this.resetEndLocation(i),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,i){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(i&&this.raise(iu.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,i);throw this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(134)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let i=r.body=this.startNode(),s=i.body=[];for(this.expect(5);!this.match(8);){let h=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(iu.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),s.push(super.parseImport(h))):(this.expectContextual(125,iu.UnsupportedStatementInDeclareModule),s.push(this.flowParseDeclare(h,!0)))}this.scope.exit(),this.expect(8),this.finishNode(i,"BlockStatement");let l=null,d=!1;return s.forEach(h=>{MHr(h)?(l==="CommonJS"&&this.raise(iu.AmbiguousDeclareModuleKind,h),l="ES"):h.type==="DeclareModuleExports"&&(d&&this.raise(iu.DuplicateDeclareModuleExports,h),l==="ES"&&this.raise(iu.AmbiguousDeclareModuleKind,h),l="CommonJS",d=!0)}),r.kind=l||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,i){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!i){let s=this.state.value;throw this.raise(iu.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:s,suggestion:jHr[s]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"?(r.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration")):this.castNodeTo(r,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let i=this.flowParseTypeAlias(r);return this.castNodeTo(i,"DeclareTypeAlias"),i}flowParseDeclareOpaqueType(r){this.next();let i=this.flowParseOpaqueType(r,!0);return this.castNodeTo(i,"DeclareOpaqueType"),i}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,i){if(r.id=this.flowParseRestrictedIdentifier(!i,!0),this.scope.declareName(r.id.name,i?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!i&&this.eat(12));if(i){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:i,allowExact:!1,allowSpread:!1,allowProto:i,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(iu.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,i,s){LHr.has(r)&&this.raise(s?iu.AssignReservedType:iu.UnexpectedReservedType,i,{reservedType:r})}flowParseRestrictedIdentifier(r,i){return this.checkReservedType(this.state.value,this.state.startLoc,i),this.parseIdentifier(r)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,i){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,i||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=!1){let i=this.state.startLoc,s=this.startNode(),l=this.flowParseVariance(),d=this.flowParseTypeAnnotatableIdentifier();return s.name=d.name,s.variance=l,s.bound=d.typeAnnotation,this.match(29)?(this.eat(29),s.default=this.flowParseType()):r&&this.raise(iu.MissingTypeParamDefault,i),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,i=this.startNode();i.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let s=!1;do{let l=this.flowParseTypeParameter(s);i.params.push(l),l.default&&(s=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(i,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==kg.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),i=this.state.inType;return this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=s}),this.state.inType=i,!this.state.inType&&this.curContext()===kg.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let r=this.startNode(),i=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,i,s){return r.static=i,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=s,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,i){return r.static=i,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,i){let s=this.startNode();return r.static=i,r.value=this.flowParseObjectTypeMethodish(s),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:i,allowSpread:s,allowProto:l,allowInexact:d}){let h=this.state.inType;this.state.inType=!0;let S=this.startNode();S.callProperties=[],S.properties=[],S.indexers=[],S.internalSlots=[];let b,A,L=!1;for(i&&this.match(6)?(this.expect(6),b=9,A=!0):(this.expect(5),b=8,A=!1),S.exact=A;!this.match(b);){let j=!1,ie=null,te=null,X=this.startNode();if(l&&this.isContextual(118)){let Je=this.lookahead();Je.type!==14&&Je.type!==17&&(this.next(),ie=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let Je=this.lookahead();Je.type!==14&&Je.type!==17&&(this.next(),j=!0)}let Re=this.flowParseVariance();if(this.eat(0))ie!=null&&this.unexpected(ie),this.eat(0)?(Re&&this.unexpected(Re.loc.start),S.internalSlots.push(this.flowParseObjectTypeInternalSlot(X,j))):S.indexers.push(this.flowParseObjectTypeIndexer(X,j,Re));else if(this.match(10)||this.match(47))ie!=null&&this.unexpected(ie),Re&&this.unexpected(Re.loc.start),S.callProperties.push(this.flowParseObjectTypeCallProperty(X,j));else{let Je="init";if(this.isContextual(99)||this.isContextual(104)){let $e=this.lookahead();ERt($e.type)&&(Je=this.state.value,this.next())}let pt=this.flowParseObjectTypeProperty(X,j,ie,Re,Je,s,d??!A);pt===null?(L=!0,te=this.state.lastTokStartLoc):S.properties.push(pt)}this.flowObjectTypeSemicolon(),te&&!this.match(8)&&!this.match(9)&&this.raise(iu.UnexpectedExplicitInexactInObject,te)}this.expect(b),s&&(S.inexact=L);let V=this.finishNode(S,"ObjectTypeAnnotation");return this.state.inType=h,V}flowParseObjectTypeProperty(r,i,s,l,d,h,S){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(h?S||this.raise(iu.InexactInsideExact,this.state.lastTokStartLoc):this.raise(iu.InexactInsideNonObject,this.state.lastTokStartLoc),l&&this.raise(iu.InexactVariance,l),null):(h||this.raise(iu.UnexpectedSpreadType,this.state.lastTokStartLoc),s!=null&&this.unexpected(s),l&&this.raise(iu.SpreadVariance,l),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=i,r.proto=s!=null,r.kind=d;let b=!1;return this.match(47)||this.match(10)?(r.method=!0,s!=null&&this.unexpected(s),l&&this.unexpected(l.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(d==="get"||d==="set")&&this.flowCheckGetterSetterParams(r),!h&&r.key.name==="constructor"&&r.value.this&&this.raise(iu.ThisParamBannedInConstructor,r.value.this)):(d!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(b=!0),r.value=this.flowParseTypeInitialiser(),r.variance=l),r.optional=b,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let i=r.kind==="get"?0:1,s=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?iu.GetterMayNotHaveThisParam:iu.SetterMayNotHaveThisParam,r.value.this),s!==i&&this.raise(r.kind==="get"?xn.BadGetterArity:xn.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(xn.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,i){r??(r=this.state.startLoc);let s=i||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let l=this.startNodeAt(r);l.qualification=s,l.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(l,"QualifiedTypeIdentifier")}return s}flowParseGenericType(r,i){let s=this.startNodeAt(r);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(r,i),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.possuper.parseFunctionBody(r,!0,s));return}super.parseFunctionBody(r,!1,s)}parseFunctionBodyAndFinish(r,i,s=!1){if(this.match(14)){let l=this.startNode();[l.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=l.typeAnnotation?this.finishNode(l,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,i,s)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let s=this.lookahead();if(R6(s.type)){let l=this.startNode();return this.next(),this.flowParseInterface(l)}}else if(this.isContextual(126)){let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}let i=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(i)&&(this.flowPragma=null),i}parseExpressionStatement(r,i,s){if(i.type==="Identifier"){if(i.name==="declare"){if(this.match(80)||fm(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(fm(this.state.type)){if(i.name==="interface")return this.flowParseInterface(r);if(i.name==="type")return this.flowParseTypeAlias(r);if(i.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){let{type:r}=this.state;return r===126||Y9t(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||Y9t(r)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let V=this.lookaheadCharCode();if(V===44||V===61||V===58||V===41)return this.setOptionalParametersError(s),r}this.expect(17);let l=this.state.clone(),d=this.state.noArrowAt,h=this.startNodeAt(i),{consequent:S,failed:b}=this.tryParseConditionalConsequent(),[A,L]=this.getArrowLikeExpressions(S);if(b||L.length>0){let V=[...d];if(L.length>0){this.state=l,this.state.noArrowAt=V;for(let j=0;j1&&this.raise(iu.AmbiguousConditionalArrow,l.startLoc),b&&A.length===1&&(this.state=l,V.push(A[0].start),this.state.noArrowAt=V,{consequent:S,failed:b}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(S,!0),this.state.noArrowAt=d,this.expect(14),h.test=r,h.consequent=S,h.alternate=this.forwardNoArrowParamsConversionAt(h,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(h,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),i=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:i}}getArrowLikeExpressions(r,i){let s=[r],l=[];for(;s.length!==0;){let d=s.pop();d.type==="ArrowFunctionExpression"&&d.body.type!=="BlockStatement"?(d.typeParameters||!d.returnType?this.finishArrowValidation(d):l.push(d),s.push(d.body)):d.type==="ConditionalExpression"&&(s.push(d.consequent),s.push(d.alternate))}return i?(l.forEach(d=>this.finishArrowValidation(d)),[l,[]]):BHr(l,d=>d.params.every(h=>this.isAssignable(h,!0)))}finishArrowValidation(r){this.toAssignableList(r.params,r.extra?.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,i){let s;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),s=i(),this.state.noArrowParamsConversionAt.pop()):s=i(),s}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let l=this.startNodeAt(i);return l.expression=s,l.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(l,"TypeCastExpression")}return s}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let i=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(i)}else if(this.isContextual(131)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseOpaqueType(i,!1)}else if(this.isContextual(129)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseInterface(i)}else if(this.isContextual(126)){r.exportKind="value";let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:i}=this.state,s=super.maybeParseExportNamespaceSpecifier(r);return s&&r.exportKind==="type"&&this.unexpected(i),s}parseClassId(r,i,s){super.parseClassId(r,i,s),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,i,s){let{startLoc:l}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,i))return;i.declare=!0}super.parseClassMember(r,i,s),i.declare&&(i.type!=="ClassProperty"&&i.type!=="ClassPrivateProperty"&&i.type!=="PropertyDefinition"?this.raise(iu.DeclareClassElement,l):i.value&&this.raise(iu.DeclareClassFieldInitializer,i.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),i="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(xn.InvalidIdentifier,this.state.curPosition(),{identifierName:i}),this.finishToken(132,i)}getTokenFromCode(r){let i=this.input.charCodeAt(this.state.pos+1);r===123&&i===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?i===46?this.finishOp(18,2):this.finishOp(17,1):PHr(r,i,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,i){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,i):super.isAssignable(r,i)}toAssignable(r,i=!1){!i&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,i)}toAssignableList(r,i,s){for(let l=0;l1||!i)&&this.raise(iu.TypeCastInPattern,l.typeAnnotation)}return r}parseArrayLike(r,i,s){let l=super.parseArrayLike(r,i,s);return s!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(l.elements),l}isValidLVal(r,i,s,l){return r==="TypeCastExpression"||super.isValidLVal(r,i,s,l)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,i,s,l,d,h){if(i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,i,s,l,d,h),i.params&&d){let S=i.params;S.length>0&&this.isThisParam(S[0])&&this.raise(iu.ThisParamBannedInConstructor,i)}else if(i.type==="MethodDefinition"&&d&&i.value.params){let S=i.value.params;S.length>0&&this.isThisParam(S[0])&&this.raise(iu.ThisParamBannedInConstructor,i)}}pushClassPrivateMethod(r,i,s,l){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,i,s,l)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let i=r.implements=[];do{let s=this.startNode();s.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?s.typeParameters=this.flowParseTypeParameterInstantiation():s.typeParameters=null,i.push(this.finishNode(s,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let i=this.getObjectOrClassMethodParams(r);if(i.length>0){let s=i[0];this.isThisParam(s)&&r.kind==="get"?this.raise(iu.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(iu.SetterMayNotHaveThisParam,s)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,i,s,l,d,h,S){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let b;this.match(47)&&!h&&(b=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let A=super.parseObjPropValue(r,i,s,l,d,h,S);return b&&((A.value||A).typeParameters=b),A}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(iu.PatternIsOptional,r),this.isThisParam(r)&&this.raise(iu.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(iu.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(iu.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.startsuper.parseMaybeAssign(r,i),s),!l.error)return l.node;let{context:d}=this.state,h=d[d.length-1];(h===kg.j_oTag||h===kg.j_expr)&&d.pop()}if(l?.error||this.match(47)){s=s||this.state.clone();let d,h=this.tryParse(b=>{d=this.flowParseTypeParameterDeclaration();let A=this.forwardNoArrowParamsConversionAt(d,()=>{let V=super.parseMaybeAssign(r,i);return this.resetStartLocationFromNode(V,d),V});A.extra?.parenthesized&&b();let L=this.maybeUnwrapTypeCastExpression(A);return L.type!=="ArrowFunctionExpression"&&b(),L.typeParameters=d,this.resetStartLocationFromNode(L,d),A},s),S=null;if(h.node&&this.maybeUnwrapTypeCastExpression(h.node).type==="ArrowFunctionExpression"){if(!h.error&&!h.aborted)return h.node.async&&this.raise(iu.UnexpectedTypeParameterBeforeAsyncArrowFunction,d),h.node;S=h.node}if(l?.node)return this.state=l.failState,l.node;if(S)return this.state=h.failState,S;throw l?.thrown?l.error:h.thrown?h.error:this.raise(iu.UnexpectedTokenAfterTypeParameter,d)}return super.parseMaybeAssign(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(()=>{let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let l=this.startNode();return[l.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=s,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),l});if(i.thrown)return null;i.error&&(this.state=i.failState),r.returnType=i.node.typeAnnotation?this.finishNode(i.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,i){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?r.params=i:super.setArrowFunctionParameters(r,i)}checkParams(r,i,s,l=!0){if(!(s&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))){for(let d=0;d0&&this.raise(iu.ThisParamMustBeFirst,r.params[d]);super.checkParams(r,i,s,l)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,i,s){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(i.index)){this.next();let l=this.startNodeAt(i);l.callee=r,l.arguments=super.parseCallExpressionArguments(),r=this.finishNode(l,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let l=this.state.clone(),d=this.tryParse(S=>this.parseAsyncArrowWithTypeParameters(i)||S(),l);if(!d.error&&!d.aborted)return d.node;let h=this.tryParse(()=>super.parseSubscripts(r,i,s),l);if(h.node&&!h.error)return h.node;if(d.node)return this.state=d.failState,d.node;if(h.node)return this.state=h.failState,h.node;throw d.error||h.error}return super.parseSubscripts(r,i,s)}parseSubscript(r,i,s,l){if(this.match(18)&&this.isLookaheadToken_lt()){if(l.optionalChainMember=!0,s)return l.stop=!0,r;this.next();let d=this.startNodeAt(i);return d.callee=r,d.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),d.arguments=this.parseCallExpressionArguments(),d.optional=!0,this.finishCallExpression(d,!0)}else if(!s&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let d=this.startNodeAt(i);d.callee=r;let h=this.tryParse(()=>(d.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),d.arguments=super.parseCallExpressionArguments(),l.optionalChainMember&&(d.optional=!1),this.finishCallExpression(d,l.optionalChainMember)));if(h.node)return h.error&&(this.state=h.failState),h.node}return super.parseSubscript(r,i,s,l)}parseNewCallee(r){super.parseNewCallee(r);let i=null;this.shouldParseTypes()&&this.match(47)&&(i=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=i}parseAsyncArrowWithTypeParameters(r){let i=this.startNodeAt(r);if(this.parseFunctionParams(i,!1),!!this.parseArrow(i))return super.parseArrowExpression(i,void 0,!0)}readToken_mult_modulo(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===42&&i===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===124&&i===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,i){let s=super.parseTopLevel(r,i);return this.state.hasFlowComment&&this.raise(iu.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(iu.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,i=2;for(;[32,9].includes(this.input.charCodeAt(r+i));)i++;let s=this.input.charCodeAt(i+r),l=this.input.charCodeAt(i+r+1);return s===58&&l===58?i+2:this.input.slice(i+r,i+r+12)==="flow-include"?i+12:s===58&&l!==58?i:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(xn.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:i,memberName:s}){this.raise(iu.EnumBooleanMemberNotInitialized,r,{memberName:s,enumName:i})}flowEnumErrorInvalidMemberInitializer(r,i){return this.raise(i.explicitType?i.explicitType==="symbol"?iu.EnumInvalidMemberInitializerSymbolType:iu.EnumInvalidMemberInitializerPrimaryType:iu.EnumInvalidMemberInitializerUnknownType,r,i)}flowEnumErrorNumberMemberNotInitialized(r,i){this.raise(iu.EnumNumberMemberNotInitialized,r,i)}flowEnumErrorStringMemberInconsistentlyInitialized(r,i){this.raise(iu.EnumStringMemberInconsistentlyInitialized,r,i)}flowEnumMemberInit(){let r=this.state.startLoc,i=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let s=this.parseNumericLiteral(this.state.value);return i()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 134:{let s=this.parseStringLiteral(this.state.value);return i()?{type:"string",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 85:case 86:{let s=this.parseBooleanLiteral(this.match(85));return i()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,i=this.parseIdentifier(!0),s=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:i,init:s}}flowEnumCheckExplicitTypeMismatch(r,i,s){let{explicitType:l}=i;l!==null&&l!==s&&this.flowEnumErrorInvalidMemberInitializer(r,i)}flowEnumMembers({enumName:r,explicitType:i}){let s=new Set,l={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},d=!1;for(;!this.match(8);){if(this.eat(21)){d=!0;break}let h=this.startNode(),{id:S,init:b}=this.flowEnumMemberRaw(),A=S.name;if(A==="")continue;/^[a-z]/.test(A)&&this.raise(iu.EnumInvalidMemberName,S,{memberName:A,suggestion:A[0].toUpperCase()+A.slice(1),enumName:r}),s.has(A)&&this.raise(iu.EnumDuplicateMemberName,S,{memberName:A,enumName:r}),s.add(A);let L={enumName:r,explicitType:i,memberName:A};switch(h.id=S,b.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(b.loc,L,"boolean"),h.init=b.value,l.booleanMembers.push(this.finishNode(h,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(b.loc,L,"number"),h.init=b.value,l.numberMembers.push(this.finishNode(h,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(b.loc,L,"string"),h.init=b.value,l.stringMembers.push(this.finishNode(h,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(b.loc,L);case"none":switch(i){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(b.loc,L);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(b.loc,L);break;default:l.defaultedMembers.push(this.finishNode(h,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:l,hasUnknownMembers:d}}flowEnumStringMembers(r,i,{enumName:s}){if(r.length===0)return i;if(i.length===0)return r;if(i.length>r.length){for(let l of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(l,{enumName:s});return i}else{for(let l of i)this.flowEnumErrorStringMemberInconsistentlyInitialized(l,{enumName:s});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!fm(this.state.type))throw this.raise(iu.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:i}=this.state;return this.next(),i!=="boolean"&&i!=="number"&&i!=="string"&&i!=="symbol"&&this.raise(iu.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:i}),i}flowEnumBody(r,i){let s=i.name,l=i.loc.start,d=this.flowEnumParseExplicitType({enumName:s});this.expect(5);let{members:h,hasUnknownMembers:S}=this.flowEnumMembers({enumName:s,explicitType:d});switch(r.hasUnknownMembers=S,d){case"boolean":return r.explicitType=!0,r.members=h.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=h.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(h.stringMembers,h.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=h.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let b=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let A=h.booleanMembers.length,L=h.numberMembers.length,V=h.stringMembers.length,j=h.defaultedMembers.length;if(!A&&!L&&!V&&!j)return b();if(!A&&!L)return r.members=this.flowEnumStringMembers(h.stringMembers,h.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!L&&!V&&A>=j){for(let ie of h.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(ie.loc.start,{enumName:s,memberName:ie.id.name});return r.members=h.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!A&&!V&&L>=j){for(let ie of h.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(ie.loc.start,{enumName:s,memberName:ie.id.name});return r.members=h.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(iu.EnumInconsistentMemberValues,l,{enumName:s}),b()}}}flowParseEnumDeclaration(r){let i=this.parseIdentifier();return r.id=i,r.body=this.flowEnumBody(this.startNode(),i),this.finishNode(r,"EnumDeclaration")}jsxParseOpeningElementAfterName(r){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(r.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(r)}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let i=this.input.charCodeAt(r+1);return i!==60&&i!==61}return!1}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},zHr=/\r\n|[\r\n\u2028\u2029]/,TCe=new RegExp(zHr.source,"g");function IY(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function tRt(e,r,i){for(let s=r;s`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:r})=>`Unexpected token \`${e}\`. Did you mean \`${r}\` 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 Zj(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function wY(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return wY(e.object)+"."+wY(e.property);throw new Error("Node had unexpected type: "+e.type)}var JHr=e=>class extends e{jsxReadToken(){let r="",i=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(R5.UnterminatedJsxContent,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:if(this.state.pos===this.state.start){s===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(s);return}r+=this.input.slice(i,this.state.pos),this.finishToken(142,r);return;case 38:r+=this.input.slice(i,this.state.pos),r+=this.jsxReadEntity(),i=this.state.pos;break;case 62:case 125:this.raise(R5.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:s===125?"}":">"});default:IY(s)?(r+=this.input.slice(i,this.state.pos),r+=this.jsxReadNewLine(!0),i=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){let i=this.input.charCodeAt(this.state.pos),s;return++this.state.pos,i===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,s=r?` +The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function cue({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(o=>o.languages??[]),n=[];for(let o of YBe(Object.assign({},...e.map(({options:i})=>i),QBe)))!t&&o.deprecated||(Array.isArray(o.choices)&&(t||(o.choices=o.choices.filter(i=>!i.deprecated)),o.name==="parser"&&(o.choices=[...o.choices,...XBe(o.choices,r,e)])),o.pluginDefaults=Object.fromEntries(e.filter(i=>i.defaultOptions?.[o.name]!==void 0).map(i=>[i.name,i.defaultOptions[o.name]])),n.push(o));return{languages:r,options:n}}function*XBe(e,t,r){let n=new Set(e.map(o=>o.value));for(let o of t)if(o.parsers){for(let i of o.parsers)if(!n.has(i)){n.add(i);let a=r.find(c=>c.parsers&&Object.prototype.hasOwnProperty.call(c.parsers,i)),s=o.name;a?.name&&(s+=` (plugin: ${a.name})`),yield{value:i,description:s}}}}function YBe(e){let t=[];for(let[r,n]of Object.entries(e)){let o={name:r,...n};Array.isArray(o.default)&&(o.default=Xi(0,o.default,-1).value),t.push(o)}return t}var eqe=Array.prototype.toReversed??function(){return[...this].reverse()},tqe=QT("toReversed",function(){if(Array.isArray(this))return eqe}),rqe=tqe;function nqe(){let e=globalThis,t=e.Deno?.build?.os;return typeof t=="string"?t==="windows":e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}var oqe=nqe();function lue(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function iqe(e){return e=lue(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function aqe(e){e=lue(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function sqe(e){return oqe?aqe(e):iqe(e)}var cqe=e=>String(e).split(/[/\\]/u).pop(),lqe=e=>String(e).startsWith("file:");function hle(e,t){if(!t)return;let r=cqe(t).toLowerCase();return e.find(({filenames:n})=>n?.some(o=>o.toLowerCase()===r))??e.find(({extensions:n})=>n?.some(o=>r.endsWith(o)))}function uqe(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}var pqe=void 0;function yle(e,t){if(t){if(lqe(t))try{t=sqe(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function dqe(e,t){let r=rqe(0,e.plugins).flatMap(n=>n.languages??[]);return(uqe(r,t.language)??hle(r,t.physicalFile)??hle(r,t.file)??yle(r,t.physicalFile)??yle(r,t.file)??pqe?.(r,t.physicalFile))?.parsers[0]}var uue=dqe,Ov={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>Ov.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${Ov.key(r)}: ${Ov.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>Ov.value({[e]:t})},Nq=new Proxy(String,{get:()=>Nq}),Hp=Nq,pue=()=>Nq,_qe=(e,t,{descriptor:r})=>{let n=[`${Hp.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${Hp.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."},due=Symbol.for("vnopts.VALUE_NOT_EXIST"),c3=Symbol.for("vnopts.VALUE_UNCHANGED"),gle=" ".repeat(2),fqe=(e,t,r)=>{let{text:n,list:o}=r.normalizeExpectedResult(r.schemas[e].expected(r)),i=[];return n&&i.push(Sle(e,t,n,r.descriptor)),o&&i.push([Sle(e,t,o.title,r.descriptor)].concat(o.values.map(a=>_ue(a,r.loggerPrintWidth))).join(` +`)),fue(i,r.loggerPrintWidth)};function Sle(e,t,r,n){return[`Invalid ${Hp.red(n.key(e))} value.`,`Expected ${Hp.blue(r)},`,`but received ${t===due?Hp.gray("nothing"):Hp.red(n.value(t))}.`].join(" ")}function _ue({text:e,list:t},r){let n=[];return e&&n.push(`- ${Hp.blue(e)}`),t&&n.push([`- ${Hp.blue(t.title)}:`].concat(t.values.map(o=>_ue(o,r-gle.length).replace(/^|\n/g,`$&${gle}`))).join(` +`)),fue(n,r)}function fue(e,t){if(e.length===1)return e[0];let[r,n]=e,[o,i]=e.map(a=>a.split(` +`,1)[0].length);return o>t&&o>i?n:r}var Pv=[],dq=[];function _q(e,t,r){if(e===t)return 0;let n=r?.maxDistance,o=e;e.length>t.length&&(e=t,t=o);let i=e.length,a=t.length;for(;i>0&&e.charCodeAt(~-i)===t.charCodeAt(~-a);)i--,a--;let s=0;for(;sn)return n;if(i===0)return n!==void 0&&a>n?n:a;let c,p,d,f,m=0,y=0;for(;mp?f>p?p+1:f:f>d?d+1:f;if(n!==void 0){let g=p;for(m=0;mn)return n}}return Pv.length=i,dq.length=i,n!==void 0&&p>n?n:p}function mqe(e,t,r){if(!Array.isArray(t)||t.length===0)return;let n=r?.maxDistance,o=e.length;for(let c of t)if(c===e)return c;if(n===0)return;let i,a=Number.POSITIVE_INFINITY,s=new Set;for(let c of t){if(s.has(c))continue;s.add(c);let p=Math.abs(c.length-o);if(p>=a||n!==void 0&&p>n)continue;let d=Number.isFinite(a)?n===void 0?a:Math.min(a,n):n,f=d===void 0?_q(e,c):_q(e,c,{maxDistance:d});if(n!==void 0&&f>n)continue;let m=f;if(d!==void 0&&f===d&&d===n&&(m=_q(e,c)),mn))return i}var mue=(e,t,{descriptor:r,logger:n,schemas:o})=>{let i=[`Ignored unknown option ${Hp.yellow(r.pair({key:e,value:t}))}.`],a=mqe(e,Object.keys(o),{maxDistance:3});a&&i.push(`Did you mean ${Hp.blue(r.key(a))}?`),n.warn(i.join(" "))},hqe=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function yqe(e,t){let r=new e(t),n=Object.create(r);for(let o of hqe)o in t&&(n[o]=gqe(t[o],r,$m.prototype[o].length));return n}var $m=class{static create(e){return yqe(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return c3}};function gqe(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var Sqe=class extends $m{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},vqe=class extends $m{expected(){return"anything"}validate(){return!0}},bqe=class extends $m{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){let{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let o=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);o!==!0&&r.push(o.value)}return r.length===0?!0:{value:r}}deprecated(e,t){let r=[];for(let n of e){let o=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);o!==!1&&r.push(...o.map(({value:i})=>({value:[i]})))}return r}forward(e,t){let r=[];for(let n of e){let o=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...o.map(vle))}return r}redirect(e,t){let r=[],n=[];for(let o of e){let i=t.normalizeRedirectResult(this._valueSchema.redirect(o,t),o);"remain"in i&&r.push(i.remain),n.push(...i.redirect.map(vle))}return r.length===0?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function vle({from:e,to:t}){return{from:[e],to:t}}var xqe=class extends $m{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function Eqe(e,t){let r=Object.create(null);for(let n of e){let o=n[t];if(r[o])throw new Error(`Duplicate ${t} ${JSON.stringify(o)}`);r[o]=n}return r}function Tqe(e,t){let r=new Map;for(let n of e){let o=n[t];if(r.has(o))throw new Error(`Duplicate ${t} ${JSON.stringify(o)}`);r.set(o,n)}return r}function Dqe(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function Aqe(e,t){let r=[],n=[];for(let o of e)t(o)?r.push(o):n.push(o);return[r,n]}function wqe(e){return e===Math.floor(e)}function Iqe(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,o=["undefined","object","boolean","number","string"];return r!==n?o.indexOf(r)-o.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function kqe(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function ble(e){return e===void 0?{}:e}function hue(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return Cqe((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(hue)}}:{text:t}}function xle(e,t){return e===!0?!0:e===!1?{value:t}:e}function Ele(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Tle(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Sq(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>Tle(r,t)):[Tle(e,t)]}function Dle(e,t){let r=Sq(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function Cqe(e,t){if(!e)throw new Error(t)}var Pqe=class extends $m{constructor(e){super(e),this._choices=Tqe(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(o=>this._choices.get(o)).filter(({hidden:o})=>!o).map(o=>o.value).sort(Iqe).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},Oqe=class extends $m{expected(){return"a number"}validate(e,t){return typeof e=="number"}},Nqe=class extends Oqe{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&wqe(e)}},Ale=class extends $m{expected(){return"a string"}validate(e){return typeof e=="string"}},Fqe=Ov,Rqe=mue,Lqe=fqe,$qe=_qe,Mqe=class{constructor(e,t){let{logger:r=console,loggerPrintWidth:n=80,descriptor:o=Fqe,unknown:i=Rqe,invalid:a=Lqe,deprecated:s=$qe,missing:c=()=>!1,required:p=()=>!1,preprocess:d=m=>m,postprocess:f=()=>c3}=t||{};this._utils={descriptor:o,logger:r||{warn:()=>{}},loggerPrintWidth:n,schemas:Eqe(e,"name"),normalizeDefaultResult:ble,normalizeExpectedResult:hue,normalizeDeprecatedResult:Ele,normalizeForwardResult:Sq,normalizeRedirectResult:Dle,normalizeValidateResult:xle},this._unknownHandler=i,this._invalidHandler=kqe(a),this._deprecatedHandler=s,this._identifyMissing=(m,y)=>!(m in y)||c(m,y),this._identifyRequired=p,this._preprocess=d,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Dqe()}normalize(e){let t={},r=[this._preprocess(e,this._utils)],n=()=>{for(;r.length!==0;){let o=r.shift(),i=this._applyNormalization(o,t);r.push(...i)}};n();for(let o of Object.keys(this._utils.schemas)){let i=this._utils.schemas[o];if(!(o in t)){let a=ble(i.default(this._utils));"value"in a&&r.push({[o]:a.value})}}n();for(let o of Object.keys(this._utils.schemas)){if(!(o in t))continue;let i=this._utils.schemas[o],a=t[o],s=i.postprocess(a,this._utils);s!==c3&&(this._applyValidation(s,o,i),t[o]=s)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let r=[],{knownKeys:n,unknownKeys:o}=this._partitionOptionKeys(e);for(let i of n){let a=this._utils.schemas[i],s=a.preprocess(e[i],this._utils);this._applyValidation(s,i,a);let c=({from:f,to:m})=>{r.push(typeof m=="string"?{[m]:f}:{[m.key]:m.value})},p=({value:f,redirectTo:m})=>{let y=Ele(a.deprecated(f,this._utils),s,!0);if(y!==!1)if(y===!0)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,m,this._utils));else for(let{value:g}of y){let S={key:i,value:g};if(!this._hasDeprecationWarned(S)){let x=typeof m=="string"?{key:m,value:g}:m;this._utils.logger.warn(this._deprecatedHandler(S,x,this._utils))}}};Sq(a.forward(s,this._utils),s).forEach(c);let d=Dle(a.redirect(s,this._utils),s);if(d.redirect.forEach(c),"remain"in d){let f=d.remain;t[i]=i in t?a.overlap(t[i],f,this._utils):f,p({value:f})}for(let{from:f,to:m}of d.redirect)p({value:f,redirectTo:m})}for(let i of o){let a=e[i];this._applyUnknownHandler(i,a,t,(s,c)=>{r.push({[s]:c})})}return r}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,due,this._utils)}_partitionOptionKeys(e){let[t,r]=Aqe(Object.keys(e).filter(n=>!this._identifyMissing(n,e)),n=>n in this._utils.schemas);return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){let n=xle(r.validate(e,this._utils),e);if(n!==!0)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,r,n){let o=this._unknownHandler(e,t,this._utils);if(o)for(let i of Object.keys(o)){if(this._identifyMissing(i,o))continue;let a=o[i];i in this._utils.schemas?n(i,a):r[i]=a}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==c3){if(t.delete)for(let r of t.delete)delete e[r];if(t.override){let{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(t.override);for(let o of r){let i=t.override[o];this._applyValidation(i,o,this._utils.schemas[o]),e[o]=i}for(let o of n){let i=t.override[o];this._applyUnknownHandler(o,i,e,(a,s)=>{let c=this._utils.schemas[a];this._applyValidation(s,a,c),e[a]=s})}}}}},fq;function jqe(e,t,{logger:r=!1,isCLI:n=!1,passThrough:o=!1,FlagSchema:i,descriptor:a}={}){if(n){if(!i)throw new Error("'FlagSchema' option is required.");if(!a)throw new Error("'descriptor' option is required.")}else a=Ov;let s=o?Array.isArray(o)?(m,y)=>o.includes(m)?{[m]:y}:void 0:(m,y)=>({[m]:y}):(m,y,g)=>{let{_:S,...x}=g.schemas;return mue(m,y,{...g,schemas:x})},c=Bqe(t,{isCLI:n,FlagSchema:i}),p=new Mqe(c,{logger:r,unknown:s,descriptor:a}),d=r!==!1;d&&fq&&(p._hasDeprecationWarned=fq);let f=p.normalize(e);return d&&(fq=p._hasDeprecationWarned),f}function Bqe(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(vqe.create({name:"_"}));for(let o of e)n.push(qqe(o,{isCLI:t,optionInfos:e,FlagSchema:r})),o.alias&&t&&n.push(Sqe.create({name:o.alias,sourceName:o.name}));return n}function qqe(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:o}=e,i={name:o},a,s={};switch(e.type){case"int":a=Nqe,t&&(i.preprocess=Number);break;case"string":a=Ale;break;case"choice":a=Pqe,i.choices=e.choices.map(c=>c?.redirect?{...c,redirect:{to:{key:e.name,value:c.redirect}}}:c);break;case"boolean":a=xqe;break;case"flag":a=n,i.flags=r.flatMap(c=>[c.alias,c.description&&c.name,c.oppositeDescription&&`no-${c.name}`].filter(Boolean));break;case"path":a=Ale;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?i.validate=(c,p,d)=>e.exception(c)||p.validate(c,d):i.validate=(c,p,d)=>c===void 0||p.validate(c,d),e.redirect&&(s.redirect=c=>c?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let c=i.preprocess||(p=>p);i.preprocess=(p,d,f)=>d.preprocess(c(Array.isArray(p)?Xi(0,p,-1):p),f)}return e.array?bqe.create({...t?{preprocess:c=>Array.isArray(c)?c:[c]}:{},...s,valueSchema:a.create(i)}):a.create({...i,...s})}var Uqe=jqe,zqe=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},Vqe=QT("findLast",function(){if(Array.isArray(this))return zqe}),yue=Vqe,Jqe=Symbol.for("PRETTIER_IS_FRONT_MATTER"),Kqe=[];function Gqe(e){return!!e?.[Jqe]}var Fq=Gqe,gue=new Set(["yaml","toml"]),Sue=({node:e})=>Fq(e)&&gue.has(e.language);async function Hqe(e,t,r,n){let{node:o}=r,{language:i}=o;if(!gue.has(i))return;let a=o.value.trim(),s;if(a){let c=i==="yaml"?i:uue(n,{language:i});if(!c)return;s=a?await e(a,{parser:c}):""}else s=a;return zle([o.startDelimiter,o.explicitLanguage??"",C_,s,s?C_:"",o.endDelimiter])}function Zqe(e,t){return Sue({node:e})&&(delete t.end,delete t.raw,delete t.value),t}var Wqe=Zqe;function Qqe({node:e}){return e.raw}var Xqe=Qqe,vue=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Yqe=e=>Object.keys(e).filter(t=>!vue.has(t));function eUe(e,t){let r=e?n=>e(n,vue):Yqe;return t?new Proxy(r,{apply:(n,o,i)=>Fq(i[0])?Kqe:Reflect.apply(n,o,i)}):r}var wle=eUe;function bue(e,t){if(!t)throw new Error("parserName is required.");let r=yue(0,e,o=>o.parsers&&Object.prototype.hasOwnProperty.call(o.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new sue(n)}function tUe(e,t){if(!t)throw new Error("astFormat is required.");let r=yue(0,e,o=>o.printers&&Object.prototype.hasOwnProperty.call(o.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new sue(n)}function Rq({plugins:e,parser:t}){let r=bue(e,t);return xue(r,t)}function xue(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}async function rUe(e,t){let r=e.printers[t],n=typeof r=="function"?await r():r;return nUe(n)}var mq=new WeakMap;function nUe(e){if(mq.has(e))return mq.get(e);let{features:t,getVisitorKeys:r,embed:n,massageAstNode:o,print:i,...a}=e;t=sUe(t);let s=t.experimental_frontMatterSupport;r=wle(r,s.massageAstNode||s.embed||s.print);let c=o;o&&s.massageAstNode&&(c=new Proxy(o,{apply(m,y,g){return Wqe(...g),Reflect.apply(m,y,g)}}));let p=n;if(n){let m;p=new Proxy(n,{get(y,g,S){return g==="getVisitorKeys"?(m??(m=n.getVisitorKeys?wle(n.getVisitorKeys,s.massageAstNode||s.embed):r),m):Reflect.get(y,g,S)},apply:(y,g,S)=>s.embed&&Sue(...S)?Hqe:Reflect.apply(y,g,S)})}let d=i;s.print&&(d=new Proxy(i,{apply(m,y,g){let[S]=g;return Fq(S.node)?Xqe(S):Reflect.apply(m,y,g)}}));let f={features:t,getVisitorKeys:r,embed:p,massageAstNode:c,print:d,...a};return mq.set(e,f),f}var oUe=["clean","embed","print"],iUe=Object.fromEntries(oUe.map(e=>[e,!1]));function aUe(e){return{...iUe,...e}}function sUe(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:aUe(e?.experimental_frontMatterSupport)}}var Ile={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function cUe(e,t={}){let r={...e};if(!r.parser)if(r.filepath){if(r.parser=uue(r,{physicalFile:r.filepath}),!r.parser)throw new mle(`No parser could be inferred for file "${r.filepath}".`)}else throw new mle("No parser and no file path given, couldn't infer a parser.");let n=cue({plugins:e.plugins,showDeprecated:!0}).options,o={...Ile,...Object.fromEntries(n.filter(f=>f.default!==void 0).map(f=>[f.name,f.default]))},i=bue(r.plugins,r.parser),a=await xue(i,r.parser);r.astFormat=a.astFormat,r.locEnd=a.locEnd,r.locStart=a.locStart;let s=i.printers?.[a.astFormat]?i:tUe(r.plugins,a.astFormat),c=await rUe(s,a.astFormat);r.printer=c,r.getVisitorKeys=c.getVisitorKeys;let p=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,f])=>f!==void 0)):{},d={...o,...p};for(let[f,m]of Object.entries(d))(r[f]===null||r[f]===void 0)&&(r[f]=m);return r.parser==="json"&&(r.trailingComma="none"),Uqe(r,n,{passThrough:Object.keys(Ile),...t})}var Rv=cUe,qMt=Eje(Tje(),1),Lq="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\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\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",Eue="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",UMt=new RegExp("["+Lq+"]"),zMt=new RegExp("["+Lq+Eue+"]");Lq=Eue=null;var $q={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},VMt=new Set($q.keyword),JMt=new Set($q.strict),KMt=new Set($q.strictBind),a3=(e,t)=>r=>e(t(r));function Tue(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:a3(a3(e.white,e.bgRed),e.bold),gutter:e.gray,marker:a3(e.red,e.bold),message:a3(e.red,e.bold),reset:e.reset}}var GMt=Tue(pue(!0)),HMt=Tue(pue(!1));function lUe(){return new Proxy({},{get:()=>e=>e})}var kle=/\r\n|[\n\r\u2028\u2029]/;function uUe(e,t,r){let n=Object.assign({column:0,line:-1},e.start),o=Object.assign({},n,e.end),{linesAbove:i=2,linesBelow:a=3}=r||{},s=n.line,c=n.column,p=o.line,d=o.column,f=Math.max(s-(i+1),0),m=Math.min(t.length,p+a);s===-1&&(f=0),p===-1&&(m=t.length);let y=p-s,g={};if(y)for(let S=0;S<=y;S++){let x=S+s;if(!c)g[x]=!0;else if(S===0){let A=t[x-1].length;g[x]=[c,A-c+1]}else if(S===y)g[x]=[0,d];else{let A=t[x-S].length;g[x]=[0,A]}}else c===d?c?g[s]=[c,0]:g[s]=!0:g[s]=[c,d-c];return{start:f,end:m,markerLines:g}}function pUe(e,t,r={}){let n=lUe(!1),o=e.split(kle),{start:i,end:a,markerLines:s}=uUe(t,o,r),c=t.start&&typeof t.start.column=="number",p=String(a).length,d=e.split(kle,a).slice(i,a).map((f,m)=>{let y=i+1+m,g=` ${` ${y}`.slice(-p)} |`,S=s[y],x=!s[y+1];if(S){let A="";if(Array.isArray(S)){let I=f.slice(0,Math.max(S[0]-1,0)).replace(/[^\t]/g," "),E=S[1]||1;A=[` + `,n.gutter(g.replace(/\d/g," "))," ",I,n.marker("^").repeat(E)].join(""),x&&r.message&&(A+=" "+n.message(r.message))}return[n.marker(">"),n.gutter(g),f.length>0?` ${f}`:"",A].join("")}else return` ${n.gutter(g)}${f.length>0?` ${f}`:""}`}).join(` +`);return r.message&&!c&&(d=`${" ".repeat(p+1)}${r.message} +${d}`),d}async function dUe(e,t){let r=await Rq(t),n=r.preprocess?await r.preprocess(e,t):e;t.originalText=n;let o;try{o=await r.parse(n,t,t)}catch(i){_Ue(i,e)}return{text:n,ast:o}}function _Ue(e,t){let{loc:r}=e;if(r){let n=pUe(t,r,{highlightCode:!0});throw e.message+=` +`+n,e.codeFrame=n,e}throw e}var YT=dUe;async function fUe(e,t,r,n,o){if(r.embeddedLanguageFormatting!=="auto")return;let{printer:i}=r,{embed:a}=i;if(!a)return;if(a.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:s}=i,{getVisitorKeys:c}=a,p=[];m();let d=e.stack;for(let{print:y,node:g,pathStack:S}of p)try{e.stack=S;let x=await y(f,t,e,r);x&&o.set(g,x)}catch(x){if(globalThis.PRETTIER_DEBUG)throw x}e.stack=d;function f(y,g){return mUe(y,g,r,n)}function m(){let{node:y}=e;if(y===null||typeof y!="object"||s?.(e))return;for(let S of c(y))Array.isArray(y[S])?e.each(m,S):e.call(m,S);let g=a(e,r);if(g){if(typeof g=="function"){p.push({print:g,node:y,pathStack:[...e.stack]});return}o.set(y,g)}}}async function mUe(e,t,r,n){let o=await Rv({...r,...t,parentParser:r.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:i}=await YT(e,o),a=await n(i,o);return qle(a)}function hUe(e,t,r,n){let{originalText:o,[Symbol.for("comments")]:i,locStart:a,locEnd:s,[Symbol.for("printedComments")]:c}=t,{node:p}=e,d=a(p),f=s(p);for(let y of i)a(y)>=d&&s(y)<=f&&c.add(y);let{printPrettierIgnored:m}=t.printer;return m?m(e,t,r,n):o.slice(d,f)}var yUe=hUe;async function h3(e,t){({ast:e}=await Due(e,t));let r=new Map,n=new PBe(e),o=WBe(t),i=new Map;await fUe(n,s,t,h3,i);let a=await Cle(n,t,s,void 0,i);if(ZBe(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[ug,a];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[a,ug]}return a;function s(p,d){return p===void 0||p===n?c(d):Array.isArray(p)?n.call(()=>c(d),...p):n.call(()=>c(d),p)}function c(p){o(n);let d=n.node;if(d==null)return"";let f=Cq(d)&&p===void 0;if(f&&r.has(d))return r.get(d);let m=Cle(n,t,s,p,i);return f&&r.set(d,m),m}}function Cle(e,t,r,n,o){let{node:i}=e,{printer:a}=t,s;switch(a.hasPrettierIgnore?.(e)?s=yUe(e,t,r,n):o.has(i)?s=o.get(i):s=a.print(e,t,r,n),i){case t.cursorNode:s=s3(s,c=>[ug,c,ug]);break;case t.nodeBeforeCursor:s=s3(s,c=>[c,ug]);break;case t.nodeAfterCursor:s=s3(s,c=>[ug,c]);break}return a.printComment&&!a.willPrintOwnComments?.(e,t)&&(s=HBe(e,s,t)),s}async function Due(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("printedComments")]=new Set,qBe(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function gUe(e,t){let{cursorOffset:r,locStart:n,locEnd:o,getVisitorKeys:i}=t,a=y=>n(y)<=r&&o(y)>=r,s=e,c=[e];for(let y of MBe(e,{getVisitorKeys:i,filter:a}))c.push(y),s=y;if(jBe(s,{getVisitorKeys:i}))return{cursorNode:s};let p,d,f=-1,m=Number.POSITIVE_INFINITY;for(;c.length>0&&(p===void 0||d===void 0);){s=c.pop();let y=p!==void 0,g=d!==void 0;for(let S of m3(s,{getVisitorKeys:i})){if(!y){let x=o(S);x<=r&&x>f&&(p=S,f=x)}if(!g){let x=n(S);x>=r&&xa(m,c)).filter(Boolean);let p={},d=new Set(o(s));for(let m in s)!Object.prototype.hasOwnProperty.call(s,m)||i?.has(m)||(d.has(m)?p[m]=a(s[m],s):p[m]=s[m]);let f=n(s,p,c);if(f!==null)return f??p}}var vUe=SUe,bUe=Array.prototype.findLastIndex??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return t}return-1},xUe=QT("findLastIndex",function(){if(Array.isArray(this))return bUe}),EUe=xUe,TUe=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function DUe(e,t){return t=new Set(t),e.find(r=>wue.has(r.type)&&t.has(r))}function Ple(e){let t=EUe(0,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function AUe(e,t,{locStart:r,locEnd:n}){let[o,...i]=e,[a,...s]=t;if(o===a)return[o,a];let c=r(o);for(let d of Ple(s))if(r(d)>=c)a=d;else break;let p=n(a);for(let d of Ple(i)){if(n(d)<=p)o=d;else break;if(o===a)break}return[o,a]}function vq(e,t,r,n,o=[],i){let{locStart:a,locEnd:s}=r,c=a(e),p=s(e);if(t>p||tn);let s=e.slice(n,o).search(/\S/u),c=s===-1;if(!c)for(n+=s;o>n&&!/\S/u.test(e[o-1]);--o);let p=vq(r,n,t,(y,g)=>Ole(t,y,g),[],"rangeStart");if(!p)return;let d=c?p:vq(r,o,t,y=>Ole(t,y),[],"rangeEnd");if(!d)return;let f,m;if(TUe(t)){let y=DUe(p,d);f=y,m=y}else[f,m]=AUe(p,d,t);return[Math.min(i(f),i(m)),Math.max(a(f),a(m))]}var Iue="\uFEFF",Nle=Symbol("cursor");async function kue(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:o}=await YT(e,t);t.cursorOffset>=0&&(t={...t,...Aue(n,t)});let i=await h3(n,t,r);r>0&&(i=Vle([C_,i],r,t.tabWidth));let a=f3(i,t);if(r>0){let c=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(c),a.cursorNodeStart<0&&(a.cursorNodeStart=0,a.cursorNodeText=a.cursorNodeText.trimStart()),a.cursorNodeStart+a.cursorNodeText.length>c.length&&(a.cursorNodeText=a.cursorNodeText.trimEnd())),a.formatted=c+Tq(t.endOfLine)}let s=t[Symbol.for("comments")];if(t.cursorOffset>=0){let c,p,d,f;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&a.cursorNodeText)if(d=a.cursorNodeStart,f=a.cursorNodeText,t.cursorNode)c=t.locStart(t.cursorNode),p=o.slice(c,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");c=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let A=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):o.length;p=o.slice(c,A)}else c=0,p=o,d=0,f=a.formatted;let m=t.cursorOffset-c;if(p===f)return{formatted:a.formatted,cursorOffset:d+m,comments:s};let y=p.split("");y.splice(m,0,Nle);let g=f.split(""),S=Pje(y,g),x=d;for(let A of S)if(A.removed){if(A.value.includes(Nle))break}else x+=A.count;return{formatted:a.formatted,cursorOffset:x,comments:s}}return{formatted:a.formatted,cursorOffset:-1,comments:s}}async function CUe(e,t){let{ast:r,text:n}=await YT(e,t),[o,i]=kUe(n,t,r)??[0,0],a=n.slice(o,i),s=Math.min(o,n.lastIndexOf(` +`,o)+1),c=n.slice(s,o).match(/^\s*/u)[0],p=kq(c,t.tabWidth),d=await kue(a,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>o&&t.cursorOffset<=i?t.cursorOffset-o:-1,endOfLine:"lf"},p),f=d.formatted.trimEnd(),{cursorOffset:m}=t;m>i?m+=f.length-a.length:d.cursorOffset>=0&&(m=d.cursorOffset+o);let y=n.slice(0,o)+f+n.slice(i);if(t.endOfLine!=="lf"){let g=Tq(t.endOfLine);m>=0&&g===`\r +`&&(m+=jle(y.slice(0,m),` +`)),y=u3(0,y,` +`,g)}return{formatted:y,cursorOffset:m,comments:d.comments}}function hq(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function Fle(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:o}=t;return r=hq(e,r,-1),n=hq(e,n,0),o=hq(e,o,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:o}}function Cue(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:o,endOfLine:i}=Fle(e,t),a=e.charAt(0)===Iue;if(a&&(e=e.slice(1),r--,n--,o--),i==="auto"&&(i=Lje(e)),e.includes("\r")){let s=c=>jle(e.slice(0,Math.max(c,0)),`\r +`);r-=s(r),n-=s(n),o-=s(o),e=jje(e)}return{hasBOM:a,text:e,options:Fle(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:o,endOfLine:i})}}async function Rle(e,t){let r=await Rq(t);return!r.hasPragma||r.hasPragma(e)}async function PUe(e,t){return(await Rq(t)).hasIgnorePragma?.(e)}async function Pue(e,t){let{hasBOM:r,text:n,options:o}=Cue(e,await Rv(t));if(o.rangeStart>=o.rangeEnd&&n!==""||o.requirePragma&&!await Rle(n,o)||o.checkIgnorePragma&&await PUe(n,o))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let i;return o.rangeStart>0||o.rangeEnd=0&&i.cursorOffset++),i}async function OUe(e,t,r){let{text:n,options:o}=Cue(e,await Rv(t)),i=await YT(n,o);return r&&(r.preprocessForPrint&&(i.ast=await Due(i.ast,o)),r.massage&&(i.ast=vUe(i.ast,o))),i}async function NUe(e,t){t=await Rv(t);let r=await h3(e,t);return f3(r,t)}async function FUe(e,t){let r=hBe(e),{formatted:n}=await Pue(r,{...t,parser:"__js_expression"});return n}async function RUe(e,t){t=await Rv(t);let{ast:r}=await YT(e,t);return t.cursorOffset>=0&&(t={...t,...Aue(r,t)}),h3(r,t)}async function LUe(e,t){return f3(e,await Rv(t))}var Oue={};xq(Oue,{builders:()=>$Ue,printer:()=>MUe,utils:()=>jUe});var $Ue={join:Kle,line:Gle,softline:_Be,hardline:C_,literalline:Zle,group:Jle,conditionalGroup:lBe,fill:cBe,lineSuffix:yq,lineSuffixBoundary:fBe,cursor:ug,breakParent:_3,ifBreak:uBe,trim:mBe,indent:l3,indentIfBreak:pBe,align:Fv,addAlignmentToDoc:Vle,markAsRoot:zle,dedentToRoot:aBe,dedent:sBe,hardlineWithoutBreakParent:wq,literallineWithoutBreakParent:Hle,label:dBe,concat:e=>e},MUe={printDocToString:f3},jUe={willBreak:Zje,traverseDoc:Dq,findInDoc:Aq,mapDoc:d3,removeLines:Xje,stripTrailingHardline:qle,replaceEndOfLine:tBe,canBreak:nBe},BUe="3.8.1",Nue={};xq(Nue,{addDanglingComment:()=>cg,addLeadingComment:()=>ZT,addTrailingComment:()=>WT,getAlignmentSize:()=>kq,getIndentSize:()=>KUe,getMaxContinuousCount:()=>ZUe,getNextNonSpaceNonCommentCharacter:()=>QUe,getNextNonSpaceNonCommentCharacterIndex:()=>sze,getPreferredQuote:()=>tze,getStringWidth:()=>Iq,hasNewline:()=>Nm,hasNewlineInRange:()=>nze,hasSpaces:()=>ize,isNextLineEmpty:()=>dze,isNextLineEmptyAfterIndex:()=>qq,isPreviousLineEmpty:()=>lze,makeString:()=>pze,skip:()=>XT,skipEverythingButNewLine:()=>eue,skipInlineComment:()=>Mq,skipNewline:()=>pg,skipSpaces:()=>Rm,skipToLineEnd:()=>Yle,skipTrailingComment:()=>jq,skipWhitespace:()=>NBe});function qUe(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;rMath.max(n,o.length),0)/t.length}var ZUe=HUe;function WUe(e,t){let r=Bq(e,t);return r===!1?"":e.charAt(r)}var QUe=WUe,Fue=Object.freeze({character:"'",codePoint:39}),Rue=Object.freeze({character:'"',codePoint:34}),XUe=Object.freeze({preferred:Fue,alternate:Rue}),YUe=Object.freeze({preferred:Rue,alternate:Fue});function eze(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?XUe:YUe,{length:o}=e,i=0,a=0;for(let s=0;sa?n:r).character}var tze=eze;function rze(e,t,r){for(let n=t;na===n?a:s===t?"\\"+s:s||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return t+o+t}function dze(e,t){return arguments.length===2||typeof t=="number"?qq(e,t):uze(...arguments)}function lg(e,t=1){return async(...r)=>{let n=r[t]??{},o=n.plugins??[];return r[t]={...n,plugins:Array.isArray(o)?o:Object.values(o)},e(...r)}}var Lue=lg(Pue);async function y3(e,t){let{formatted:r}=await Lue(e,{...t,cursorOffset:-1});return r}async function _ze(e,t){return await y3(e,t)===e}var fze=lg(cue,0),mze={parse:lg(OUe),formatAST:lg(NUe),formatDoc:lg(FUe),printToDoc:lg(RUe),printDocToString:lg(LUe)};var hze=Object.defineProperty,nU=(e,t)=>{for(var r in t)hze(e,r,{get:t[r],enumerable:!0})},oU={};nU(oU,{parsers:()=>fKe});var upe={};nU(upe,{__babel_estree:()=>sKe,__js_expression:()=>cpe,__ts_expression:()=>lpe,__vue_event_binding:()=>ape,__vue_expression:()=>cpe,__vue_ts_event_binding:()=>spe,__vue_ts_expression:()=>lpe,babel:()=>ape,"babel-flow":()=>Bpe,"babel-ts":()=>spe});function yze(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var qm=class{line;column;index;constructor(e,t,r){this.line=e,this.column=t,this.index=r}},w3=class{start;end;filename;identifierName;constructor(e,t){this.start=e,this.end=t}};function Fl(e,t){let{line:r,column:n,index:o}=e;return new qm(r,n+t,o+t)}var $ue="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",gze={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:$ue},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:$ue}},Mue={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"},x3=e=>e.type==="UpdateExpression"?Mue.UpdateExpression[`${e.prefix}`]:Mue[e.type],Sze={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\`. +- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"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 ${e==="BreakStatement"?"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. +- 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 ${x3(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${x3(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${x3(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(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).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."},vze={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."},bze={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)}\`.`},xze=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Eze=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 references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',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 ${x3({type:e})}; please wrap it in parentheses.`},{}),Tze=["message"];function jue(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function Dze({toMessage:e,code:t,reasonCode:r,syntaxPlugin:n}){let o=r==="MissingPlugin"||r==="MissingOneOfPlugins";return function i(a,s){let c=new SyntaxError;return c.code=t,c.reasonCode=r,c.loc=a,c.pos=a.index,c.syntaxPlugin=n,o&&(c.missingPlugin=s.missingPlugin),jue(c,"clone",function(p={}){let{line:d,column:f,index:m}=p.loc??a;return i(new qm(d,f,m),Object.assign({},s,p.details))}),jue(c,"details",s),Object.defineProperty(c,"message",{configurable:!0,get(){let p=`${e(s)} (${a.line}:${a.column})`;return this.message=p,p},set(p){Object.defineProperty(this,"message",{value:p,writable:!0})}}),c}}function Xp(e,t){if(Array.isArray(e))return n=>Xp(n,e[0]);let r={};for(let n of Object.keys(e)){let o=e[n],i=typeof o=="string"?{message:()=>o}:typeof o=="function"?{message:o}:o,{message:a}=i,s=yze(i,Tze),c=typeof a=="string"?()=>a:a;r[n]=Dze(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:c},t?{syntaxPlugin:t}:{},s))}return r}var W=Object.assign({},Xp(gze),Xp(Sze),Xp(vze),Xp(bze),Xp`pipelineOperator`(Eze));function Aze(){return{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:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function wze(e){let t=Aze();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))e[r]!=null&&(t[r]=e[r]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if(e.startColumn==null||e.startIndex==null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:Ize}=Object,Bue=(e,t)=>{e&&Ize(e,t,{enumerable:!1,value:e[t]})};function eD(e){return Bue(e.loc.start,"index"),Bue(e.loc.end,"index"),e}var kze=e=>class extends e{parse(){let t=eD(super.parse());return this.optionFlags&256&&(t.tokens=t.tokens.map(eD)),t}parseRegExpLiteral({pattern:t,flags:r}){let n=null;try{n=new RegExp(t,r)}catch{}let o=this.estreeParseLiteral(n);return o.regex={pattern:t,flags:r},o}parseBigIntLiteral(t){let r;try{r=BigInt(t)}catch{r=null}let n=this.estreeParseLiteral(r);return n.bigint=String(n.value||t),n}parseDecimalLiteral(t){let r=this.estreeParseLiteral(null);return r.decimal=String(r.value||t),r}estreeParseLiteral(t){return this.parseLiteral(t,"Literal")}parseStringLiteral(t){return this.estreeParseLiteral(t)}parseNumericLiteral(t){return this.estreeParseLiteral(t)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(t){return this.estreeParseLiteral(t)}estreeParseChainExpression(t,r){let n=this.startNodeAtNode(t);return n.expression=t,this.finishNodeAt(n,"ChainExpression",r)}directiveToStmt(t){let r=t.value;delete t.value,this.castNodeTo(r,"Literal"),r.raw=r.extra.raw,r.value=r.extra.expressionValue;let n=this.castNodeTo(t,"ExpressionStatement");return n.expression=r,n.directive=r.extra.rawValue,delete r.extra,n}fillOptionalPropertiesForTSESLint(t){}cloneEstreeStringLiteral(t){let{start:r,end:n,loc:o,range:i,raw:a,value:s}=t,c=Object.create(t.constructor.prototype);return c.type="Literal",c.start=r,c.end=n,c.loc=o,c.range=i,c.raw=a,c.value=s,c}initFunction(t,r){super.initFunction(t,r),t.expression=!1}checkDeclaration(t){t!=null&&this.isObjectProperty(t)?this.checkDeclaration(t.value):super.checkDeclaration(t)}getObjectOrClassMethodParams(t){return t.value.params}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&!t.expression.extra?.parenthesized}parseBlockBody(t,r,n,o,i){super.parseBlockBody(t,r,n,o,i);let a=t.directives.map(s=>this.directiveToStmt(s));t.body=a.concat(t.body),delete t.directives}parsePrivateName(){let t=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(t)}convertPrivateNameToPrivateIdentifier(t){let r=super.getPrivateNameSV(t);return delete t.id,t.name=r,this.castNodeTo(t,"PrivateIdentifier")}isPrivateName(t){return t.type==="PrivateIdentifier"}getPrivateNameSV(t){return t.name}parseLiteral(t,r){let n=super.parseLiteral(t,r);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(t,r,n=!1){super.parseFunctionBody(t,r,n),t.expression=t.body.type!=="BlockStatement"}parseMethod(t,r,n,o,i,a,s=!1){let c=this.startNode();c.kind=t.kind,c=super.parseMethod(c,r,n,o,i,a,s),delete c.kind;let{typeParameters:p}=t;p&&(delete t.typeParameters,c.typeParameters=p,this.resetStartLocationFromNode(c,p));let d=this.castNodeTo(c,this.hasPlugin("typescript")&&!c.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return t.value=d,a==="ClassPrivateMethod"&&(t.computed=!1),this.hasPlugin("typescript")&&t.abstract?(delete t.abstract,this.finishNode(t,"TSAbstractMethodDefinition")):a==="ObjectMethod"?(t.kind==="method"&&(t.kind="init"),t.shorthand=!1,this.finishNode(t,"Property")):this.finishNode(t,"MethodDefinition")}nameIsConstructor(t){return t.type==="Literal"?t.value==="constructor":super.nameIsConstructor(t)}parseClassProperty(...t){let r=super.parseClassProperty(...t);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractPropertyDefinition")):this.castNodeTo(r,"PropertyDefinition"),r}parseClassPrivateProperty(...t){let r=super.parseClassPrivateProperty(...t);return r.abstract&&this.hasPlugin("typescript")?this.castNodeTo(r,"TSAbstractPropertyDefinition"):this.castNodeTo(r,"PropertyDefinition"),r.computed=!1,r}parseClassAccessorProperty(t){let r=super.parseClassAccessorProperty(t);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractAccessorProperty")):this.castNodeTo(r,"AccessorProperty"),r}parseObjectProperty(t,r,n,o){let i=super.parseObjectProperty(t,r,n,o);return i&&(i.kind="init",this.castNodeTo(i,"Property")),i}finishObjectProperty(t){return t.kind="init",this.finishNode(t,"Property")}isValidLVal(t,r,n,o){return t==="Property"?"value":super.isValidLVal(t,r,n,o)}isAssignable(t,r){return t!=null&&this.isObjectProperty(t)?this.isAssignable(t.value,r):super.isAssignable(t,r)}toAssignable(t,r=!1){if(t!=null&&this.isObjectProperty(t)){let{key:n,value:o}=t;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(o,r)}else super.toAssignable(t,r)}toAssignableObjectExpressionProp(t,r,n){t.type==="Property"&&(t.kind==="get"||t.kind==="set")?this.raise(W.PatternHasAccessor,t.key):t.type==="Property"&&t.method?this.raise(W.PatternHasMethod,t.key):super.toAssignableObjectExpressionProp(t,r,n)}finishCallExpression(t,r){let n=super.finishCallExpression(t,r);return n.callee.type==="Import"?(this.castNodeTo(n,"ImportExpression"),n.source=n.arguments[0],n.options=n.arguments[1]??null,delete n.arguments,delete n.callee):n.type==="OptionalCallExpression"?this.castNodeTo(n,"CallExpression"):n.optional=!1,n}toReferencedArguments(t){t.type!=="ImportExpression"&&super.toReferencedArguments(t)}parseExport(t,r){let n=this.state.lastTokStartLoc,o=super.parseExport(t,r);switch(o.type){case"ExportAllDeclaration":o.exported=null;break;case"ExportNamedDeclaration":o.specifiers.length===1&&o.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(o,"ExportAllDeclaration"),o.exported=o.specifiers[0].exported,delete o.specifiers);case"ExportDefaultDeclaration":{let{declaration:i}=o;i?.type==="ClassDeclaration"&&i.decorators?.length>0&&i.start===o.start&&this.resetStartLocation(o,n)}break}return o}stopParseSubscript(t,r){let n=super.stopParseSubscript(t,r);return r.optionalChainMember?this.estreeParseChainExpression(n,t.loc.end):n}parseMember(t,r,n,o,i){let a=super.parseMember(t,r,n,o,i);return a.type==="OptionalMemberExpression"?this.castNodeTo(a,"MemberExpression"):a.optional=!1,a}isOptionalMemberExpression(t){return t.type==="ChainExpression"?t.expression.type==="MemberExpression":super.isOptionalMemberExpression(t)}hasPropertyAsPrivateName(t){return t.type==="ChainExpression"&&(t=t.expression),super.hasPropertyAsPrivateName(t)}isObjectProperty(t){return t.type==="Property"&&t.kind==="init"&&!t.method}isObjectMethod(t){return t.type==="Property"&&(t.method||t.kind==="get"||t.kind==="set")}castNodeTo(t,r){let n=super.castNodeTo(t,r);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(t){let r=super.cloneIdentifier(t);return this.fillOptionalPropertiesForTSESLint(r),r}cloneStringLiteral(t){return t.type==="Literal"?this.cloneEstreeStringLiteral(t):super.cloneStringLiteral(t)}finishNodeAt(t,r,n){return eD(super.finishNodeAt(t,r,n))}finishNode(t,r){let n=super.finishNode(t,r);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(t,r){super.resetStartLocation(t,r),eD(t)}resetEndLocation(t,r=this.state.lastTokEndLoc){super.resetEndLocation(t,r),eD(t)}},g3=class{constructor(e,t){this.token=e,this.preserveSpace=!!t}token;preserveSpace},Lo={brace:new g3("{"),j_oTag:new g3("...",!0)},Qr=!0,ct=!0,Uq=!0,tD=!0,Mm=!0,Cze=!0,ppe=class{label;keyword;beforeExpr;startsExpr;rightAssociative;isLoop;isAssign;prefix;postfix;binop;constructor(e,t={}){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=t.binop!=null?t.binop:null}},iU=new Map;function In(e,t={}){t.keyword=e;let r=Wt(e,t);return iU.set(e,r),r}function Cs(e,t){return Wt(e,{beforeExpr:Qr,binop:t})}var aD=-1,aU=[],sU=[],cU=[],lU=[],uU=[],pU=[];function Wt(e,t={}){return++aD,sU.push(e),cU.push(t.binop??-1),lU.push(t.beforeExpr??!1),uU.push(t.startsExpr??!1),pU.push(t.prefix??!1),aU.push(new ppe(e,t)),aD}function sn(e,t={}){return++aD,iU.set(e,aD),sU.push(e),cU.push(t.binop??-1),lU.push(t.beforeExpr??!1),uU.push(t.startsExpr??!1),pU.push(t.prefix??!1),aU.push(new ppe("name",t)),aD}var Pze={bracketL:Wt("[",{beforeExpr:Qr,startsExpr:ct}),bracketHashL:Wt("#[",{beforeExpr:Qr,startsExpr:ct}),bracketBarL:Wt("[|",{beforeExpr:Qr,startsExpr:ct}),bracketR:Wt("]"),bracketBarR:Wt("|]"),braceL:Wt("{",{beforeExpr:Qr,startsExpr:ct}),braceBarL:Wt("{|",{beforeExpr:Qr,startsExpr:ct}),braceHashL:Wt("#{",{beforeExpr:Qr,startsExpr:ct}),braceR:Wt("}"),braceBarR:Wt("|}"),parenL:Wt("(",{beforeExpr:Qr,startsExpr:ct}),parenR:Wt(")"),comma:Wt(",",{beforeExpr:Qr}),semi:Wt(";",{beforeExpr:Qr}),colon:Wt(":",{beforeExpr:Qr}),doubleColon:Wt("::",{beforeExpr:Qr}),dot:Wt("."),question:Wt("?",{beforeExpr:Qr}),questionDot:Wt("?."),arrow:Wt("=>",{beforeExpr:Qr}),template:Wt("template"),ellipsis:Wt("...",{beforeExpr:Qr}),backQuote:Wt("`",{startsExpr:ct}),dollarBraceL:Wt("${",{beforeExpr:Qr,startsExpr:ct}),templateTail:Wt("...`",{startsExpr:ct}),templateNonTail:Wt("...${",{beforeExpr:Qr,startsExpr:ct}),at:Wt("@"),hash:Wt("#",{startsExpr:ct}),interpreterDirective:Wt("#!..."),eq:Wt("=",{beforeExpr:Qr,isAssign:tD}),assign:Wt("_=",{beforeExpr:Qr,isAssign:tD}),slashAssign:Wt("_=",{beforeExpr:Qr,isAssign:tD}),xorAssign:Wt("_=",{beforeExpr:Qr,isAssign:tD}),moduloAssign:Wt("_=",{beforeExpr:Qr,isAssign:tD}),incDec:Wt("++/--",{prefix:Mm,postfix:Cze,startsExpr:ct}),bang:Wt("!",{beforeExpr:Qr,prefix:Mm,startsExpr:ct}),tilde:Wt("~",{beforeExpr:Qr,prefix:Mm,startsExpr:ct}),doubleCaret:Wt("^^",{startsExpr:ct}),doubleAt:Wt("@@",{startsExpr:ct}),pipeline:Cs("|>",0),nullishCoalescing:Cs("??",1),logicalOR:Cs("||",1),logicalAND:Cs("&&",2),bitwiseOR:Cs("|",3),bitwiseXOR:Cs("^",4),bitwiseAND:Cs("&",5),equality:Cs("==/!=/===/!==",6),lt:Cs("/<=/>=",7),gt:Cs("/<=/>=",7),relational:Cs("/<=/>=",7),bitShift:Cs("<>/>>>",8),bitShiftL:Cs("<>/>>>",8),bitShiftR:Cs("<>/>>>",8),plusMin:Wt("+/-",{beforeExpr:Qr,binop:9,prefix:Mm,startsExpr:ct}),modulo:Wt("%",{binop:10,startsExpr:ct}),star:Wt("*",{binop:10}),slash:Cs("/",10),exponent:Wt("**",{beforeExpr:Qr,binop:11,rightAssociative:!0}),_in:In("in",{beforeExpr:Qr,binop:7}),_instanceof:In("instanceof",{beforeExpr:Qr,binop:7}),_break:In("break"),_case:In("case",{beforeExpr:Qr}),_catch:In("catch"),_continue:In("continue"),_debugger:In("debugger"),_default:In("default",{beforeExpr:Qr}),_else:In("else",{beforeExpr:Qr}),_finally:In("finally"),_function:In("function",{startsExpr:ct}),_if:In("if"),_return:In("return",{beforeExpr:Qr}),_switch:In("switch"),_throw:In("throw",{beforeExpr:Qr,prefix:Mm,startsExpr:ct}),_try:In("try"),_var:In("var"),_const:In("const"),_with:In("with"),_new:In("new",{beforeExpr:Qr,startsExpr:ct}),_this:In("this",{startsExpr:ct}),_super:In("super",{startsExpr:ct}),_class:In("class",{startsExpr:ct}),_extends:In("extends",{beforeExpr:Qr}),_export:In("export"),_import:In("import",{startsExpr:ct}),_null:In("null",{startsExpr:ct}),_true:In("true",{startsExpr:ct}),_false:In("false",{startsExpr:ct}),_typeof:In("typeof",{beforeExpr:Qr,prefix:Mm,startsExpr:ct}),_void:In("void",{beforeExpr:Qr,prefix:Mm,startsExpr:ct}),_delete:In("delete",{beforeExpr:Qr,prefix:Mm,startsExpr:ct}),_do:In("do",{isLoop:Uq,beforeExpr:Qr}),_for:In("for",{isLoop:Uq}),_while:In("while",{isLoop:Uq}),_as:sn("as",{startsExpr:ct}),_assert:sn("assert",{startsExpr:ct}),_async:sn("async",{startsExpr:ct}),_await:sn("await",{startsExpr:ct}),_defer:sn("defer",{startsExpr:ct}),_from:sn("from",{startsExpr:ct}),_get:sn("get",{startsExpr:ct}),_let:sn("let",{startsExpr:ct}),_meta:sn("meta",{startsExpr:ct}),_of:sn("of",{startsExpr:ct}),_sent:sn("sent",{startsExpr:ct}),_set:sn("set",{startsExpr:ct}),_source:sn("source",{startsExpr:ct}),_static:sn("static",{startsExpr:ct}),_using:sn("using",{startsExpr:ct}),_yield:sn("yield",{startsExpr:ct}),_asserts:sn("asserts",{startsExpr:ct}),_checks:sn("checks",{startsExpr:ct}),_exports:sn("exports",{startsExpr:ct}),_global:sn("global",{startsExpr:ct}),_implements:sn("implements",{startsExpr:ct}),_intrinsic:sn("intrinsic",{startsExpr:ct}),_infer:sn("infer",{startsExpr:ct}),_is:sn("is",{startsExpr:ct}),_mixins:sn("mixins",{startsExpr:ct}),_proto:sn("proto",{startsExpr:ct}),_require:sn("require",{startsExpr:ct}),_satisfies:sn("satisfies",{startsExpr:ct}),_keyof:sn("keyof",{startsExpr:ct}),_readonly:sn("readonly",{startsExpr:ct}),_unique:sn("unique",{startsExpr:ct}),_abstract:sn("abstract",{startsExpr:ct}),_declare:sn("declare",{startsExpr:ct}),_enum:sn("enum",{startsExpr:ct}),_module:sn("module",{startsExpr:ct}),_namespace:sn("namespace",{startsExpr:ct}),_interface:sn("interface",{startsExpr:ct}),_type:sn("type",{startsExpr:ct}),_opaque:sn("opaque",{startsExpr:ct}),name:Wt("name",{startsExpr:ct}),placeholder:Wt("%%",{startsExpr:ct}),string:Wt("string",{startsExpr:ct}),num:Wt("num",{startsExpr:ct}),bigint:Wt("bigint",{startsExpr:ct}),decimal:Wt("decimal",{startsExpr:ct}),regexp:Wt("regexp",{startsExpr:ct}),privateName:Wt("#name",{startsExpr:ct}),eof:Wt("eof"),jsxName:Wt("jsxName"),jsxText:Wt("jsxText",{beforeExpr:Qr}),jsxTagStart:Wt("jsxTagStart",{startsExpr:ct}),jsxTagEnd:Wt("jsxTagEnd")};function Qn(e){return e>=93&&e<=133}function Oze(e){return e<=92}function Pu(e){return e>=58&&e<=133}function dpe(e){return e>=58&&e<=137}function Nze(e){return lU[e]}function oD(e){return uU[e]}function Fze(e){return e>=29&&e<=33}function que(e){return e>=129&&e<=131}function Rze(e){return e>=90&&e<=92}function dU(e){return e>=58&&e<=92}function Lze(e){return e>=39&&e<=59}function $ze(e){return e===34}function Mze(e){return pU[e]}function jze(e){return e>=121&&e<=123}function Bze(e){return e>=124&&e<=130}function Um(e){return sU[e]}function E3(e){return cU[e]}function qze(e){return e===57}function Wq(e){return e>=24&&e<=25}function _pe(e){return aU[e]}var _U="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\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\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",fpe="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",Uze=new RegExp("["+_U+"]"),zze=new RegExp("["+_U+fpe+"]");_U=fpe=null;var mpe=[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],Vze=[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 Qq(e,t){let r=65536;for(let n=0,o=t.length;ne)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function Yp(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Uze.test(String.fromCharCode(e)):Qq(e,mpe)}function mg(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&zze.test(String.fromCharCode(e)):Qq(e,mpe)||Qq(e,Vze)}var fU={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Jze=new Set(fU.keyword),Kze=new Set(fU.strict),Gze=new Set(fU.strictBind);function hpe(e,t){return t&&e==="await"||e==="enum"}function ype(e,t){return hpe(e,t)||Kze.has(e)}function gpe(e){return Gze.has(e)}function Spe(e,t){return ype(e,t)||gpe(e)}function Hze(e){return Jze.has(e)}function Zze(e,t,r){return e===64&&t===64&&Yp(r)}var Wze=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"]);function Qze(e){return Wze.has(e)}var mU=class{flags=0;names=new Map;firstLexicalName="";constructor(e){this.flags=e}},hU=class{parser;scopeStack=[];inModule;undefinedExports=new Map;constructor(e,t){this.parser=e,this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&128)return!0;if(t&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new mU(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,t,r){let n=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(n,e,t,r);let o=n.names.get(e)||0;t&16?o=o|4:(n.firstLexicalName||(n.firstLexicalName=e),o=o|2),n.names.set(e,o),t&8&&this.maybeExportDefined(n,e)}else if(t&4)for(let o=this.scopeStack.length-1;o>=0&&(n=this.scopeStack[o],this.checkRedeclarationInScope(n,e,t,r),n.names.set(e,(n.names.get(e)||0)|1),this.maybeExportDefined(n,e),!(n.flags&1667));--o);this.parser.inModule&&n.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(W.VarRedeclaration,n,{identifierName:t})}isRedeclaredInScope(e,t,r){if(!(r&1))return!1;if(r&8)return e.names.has(t);let n=e.names.get(t)||0;return r&16?(n&2)>0||!this.treatFunctionsAsVarInScope(e)&&(n&1)>0:(n&2)>0&&!(e.flags&8&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(n&4)>0}checkLocalExport(e){let{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--){let{flags:t}=this.scopeStack[e];if(t&1667)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&1731&&!(t&4))return t}}},Xze=class extends mU{declareFunctions=new Set},Yze=class extends hU{createScope(e){return new Xze(e)}declareName(e,t,r){let n=this.currentScope();if(t&2048){this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e),n.declareFunctions.add(e);return}super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){if(super.isRedeclaredInScope(e,t,r))return!0;if(r&2048&&!e.declareFunctions.has(t)){let n=e.names.get(t);return(n&4)>0||(n&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},eVe=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Xt=Xp`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."},{}),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 ` async () => {}`, use `async () => {}`.",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 tVe(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function Uue(e){return e.importKind==="type"||e.importKind==="typeof"}var rVe={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function nVe(e,t){let r=[],n=[];for(let o=0;oclass extends e{flowPragma=void 0;getScopeHandler(){return Yze}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(t,r){t!==134&&t!==13&&t!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(t,r)}addComment(t){if(this.flowPragma===void 0){let r=oVe.exec(t.value);if(r)if(r[1]==="flow")this.flowPragma="flow";else if(r[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(t)}flowParseTypeInitialiser(t){let r=this.state.inType;this.state.inType=!0,this.expect(t||14);let n=this.flowParseType();return this.state.inType=r,n}flowParsePredicate(){let t=this.startNode(),r=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>r.index+1&&this.raise(Xt.UnexpectedSpaceBetweenModuloChecks,r),this.eat(10)?(t.value=super.parseExpression(),this.expect(11),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let t=this.state.inType;this.state.inType=!0,this.expect(14);let r=null,n=null;return this.match(54)?(this.state.inType=t,n=this.flowParsePredicate()):(r=this.flowParseType(),this.state.inType=t,this.match(54)&&(n=this.flowParsePredicate())),[r,n]}flowParseDeclareClass(t){return this.next(),this.flowParseInterfaceish(t,!0),this.finishNode(t,"DeclareClass")}flowParseDeclareFunction(t){this.next();let r=t.id=this.parseIdentifier(),n=this.startNode(),o=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);let i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),o.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),r.typeAnnotation=this.finishNode(o,"TypeAnnotation"),this.resetEndLocation(r),this.semicolon(),this.scope.declareName(t.id.name,2048,t.id.loc.start),this.finishNode(t,"DeclareFunction")}flowParseDeclare(t,r){if(this.match(80))return this.flowParseDeclareClass(t);if(this.match(68))return this.flowParseDeclareFunction(t);if(this.match(74))return this.flowParseDeclareVariable(t);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(t):(r&&this.raise(Xt.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(t));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(t);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(t);if(this.isContextual(129))return this.flowParseDeclareInterface(t);if(this.match(82))return this.flowParseDeclareExportDeclaration(t,r);throw this.unexpected()}flowParseDeclareVariable(t){return this.next(),t.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(t.id.name,5,t.id.loc.start),this.semicolon(),this.finishNode(t,"DeclareVariable")}flowParseDeclareModule(t){this.scope.enter(0),this.match(134)?t.id=super.parseExprAtom():t.id=this.parseIdentifier();let r=t.body=this.startNode(),n=r.body=[];for(this.expect(5);!this.match(8);){let a=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Xt.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),n.push(super.parseImport(a))):(this.expectContextual(125,Xt.UnsupportedStatementInDeclareModule),n.push(this.flowParseDeclare(a,!0)))}this.scope.exit(),this.expect(8),this.finishNode(r,"BlockStatement");let o=null,i=!1;return n.forEach(a=>{tVe(a)?(o==="CommonJS"&&this.raise(Xt.AmbiguousDeclareModuleKind,a),o="ES"):a.type==="DeclareModuleExports"&&(i&&this.raise(Xt.DuplicateDeclareModuleExports,a),o==="ES"&&this.raise(Xt.AmbiguousDeclareModuleKind,a),o="CommonJS",i=!0)}),t.kind=o||"CommonJS",this.finishNode(t,"DeclareModule")}flowParseDeclareExportDeclaration(t,r){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?t.declaration=this.flowParseDeclare(this.startNode()):(t.declaration=this.flowParseType(),this.semicolon()),t.default=!0,this.finishNode(t,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!r){let n=this.state.value;throw this.raise(Xt.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:n,suggestion:rVe[n]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return t.declaration=this.flowParseDeclare(this.startNode()),t.default=!1,this.finishNode(t,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return t=this.parseExport(t,null),t.type==="ExportNamedDeclaration"?(t.default=!1,delete t.exportKind,this.castNodeTo(t,"DeclareExportDeclaration")):this.castNodeTo(t,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(t){return this.next(),this.expectContextual(111),t.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(t,"DeclareModuleExports")}flowParseDeclareTypeAlias(t){this.next();let r=this.flowParseTypeAlias(t);return this.castNodeTo(r,"DeclareTypeAlias"),r}flowParseDeclareOpaqueType(t){this.next();let r=this.flowParseOpaqueType(t,!0);return this.castNodeTo(r,"DeclareOpaqueType"),r}flowParseDeclareInterface(t){return this.next(),this.flowParseInterfaceish(t,!1),this.finishNode(t,"DeclareInterface")}flowParseInterfaceish(t,r){if(t.id=this.flowParseRestrictedIdentifier(!r,!0),this.scope.declareName(t.id.name,r?17:8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.extends=[],this.eat(81))do t.extends.push(this.flowParseInterfaceExtends());while(!r&&this.eat(12));if(r){if(t.implements=[],t.mixins=[],this.eatContextual(117))do t.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do t.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}t.body=this.flowParseObjectType({allowStatic:r,allowExact:!1,allowSpread:!1,allowProto:r,allowInexact:!1})}flowParseInterfaceExtends(){let t=this.startNode();return t.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,this.finishNode(t,"InterfaceExtends")}flowParseInterface(t){return this.flowParseInterfaceish(t,!1),this.finishNode(t,"InterfaceDeclaration")}checkNotUnderscore(t){t==="_"&&this.raise(Xt.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(t,r,n){eVe.has(t)&&this.raise(n?Xt.AssignReservedType:Xt.UnexpectedReservedType,r,{reservedType:t})}flowParseRestrictedIdentifier(t,r){return this.checkReservedType(this.state.value,this.state.startLoc,r),this.parseIdentifier(t)}flowParseTypeAlias(t){return t.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(t,"TypeAlias")}flowParseOpaqueType(t,r){return this.expectContextual(130),t.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.supertype=null,this.match(14)&&(t.supertype=this.flowParseTypeInitialiser(14)),t.impltype=null,r||(t.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(t,"OpaqueType")}flowParseTypeParameter(t=!1){let r=this.state.startLoc,n=this.startNode(),o=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=o,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):t&&this.raise(Xt.MissingTypeParamDefault,r),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){let t=this.state.inType,r=this.startNode();r.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{let o=this.flowParseTypeParameter(n);r.params.push(o),o.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=t,this.finishNode(r,"TypeParameterDeclaration")}flowInTopLevelContext(t){if(this.curContext()!==Lo.brace){let r=this.state.context;this.state.context=[r[0]];try{return t()}finally{this.state.context=r}}else return t()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let t=this.startNode(),r=this.state.inType;return this.state.inType=!0,t.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)t.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=n}),this.state.inType=r,!this.state.inType&&this.curContext()===Lo.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let t=this.startNode(),r=this.state.inType;for(t.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)t.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=r,this.finishNode(t,"TypeParameterInstantiation")}flowParseInterfaceType(){let t=this.startNode();if(this.expectContextual(129),t.extends=[],this.eat(81))do t.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return t.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(t,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(t,r,n){return t.static=r,this.lookahead().type===14?(t.id=this.flowParseObjectPropertyKey(),t.key=this.flowParseTypeInitialiser()):(t.id=null,t.key=this.flowParseType()),this.expect(3),t.value=this.flowParseTypeInitialiser(),t.variance=n,this.finishNode(t,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(t,r){return t.static=r,t.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(t.method=!0,t.optional=!1,t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start))):(t.method=!1,this.eat(17)&&(t.optional=!0),t.value=this.flowParseTypeInitialiser()),this.finishNode(t,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(t){for(t.params=[],t.rest=null,t.typeParameters=null,t.this=null,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(t.this=this.flowParseFunctionTypeParam(!0),t.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),t.returnType=this.flowParseTypeInitialiser(),this.finishNode(t,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(t,r){let n=this.startNode();return t.static=r,t.value=this.flowParseObjectTypeMethodish(n),this.finishNode(t,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:t,allowExact:r,allowSpread:n,allowProto:o,allowInexact:i}){let a=this.state.inType;this.state.inType=!0;let s=this.startNode();s.callProperties=[],s.properties=[],s.indexers=[],s.internalSlots=[];let c,p,d=!1;for(r&&this.match(6)?(this.expect(6),c=9,p=!0):(this.expect(5),c=8,p=!1),s.exact=p;!this.match(c);){let m=!1,y=null,g=null,S=this.startNode();if(o&&this.isContextual(118)){let A=this.lookahead();A.type!==14&&A.type!==17&&(this.next(),y=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){let A=this.lookahead();A.type!==14&&A.type!==17&&(this.next(),m=!0)}let x=this.flowParseVariance();if(this.eat(0))y!=null&&this.unexpected(y),this.eat(0)?(x&&this.unexpected(x.loc.start),s.internalSlots.push(this.flowParseObjectTypeInternalSlot(S,m))):s.indexers.push(this.flowParseObjectTypeIndexer(S,m,x));else if(this.match(10)||this.match(47))y!=null&&this.unexpected(y),x&&this.unexpected(x.loc.start),s.callProperties.push(this.flowParseObjectTypeCallProperty(S,m));else{let A="init";if(this.isContextual(99)||this.isContextual(104)){let E=this.lookahead();dpe(E.type)&&(A=this.state.value,this.next())}let I=this.flowParseObjectTypeProperty(S,m,y,x,A,n,i??!p);I===null?(d=!0,g=this.state.lastTokStartLoc):s.properties.push(I)}this.flowObjectTypeSemicolon(),g&&!this.match(8)&&!this.match(9)&&this.raise(Xt.UnexpectedExplicitInexactInObject,g)}this.expect(c),n&&(s.inexact=d);let f=this.finishNode(s,"ObjectTypeAnnotation");return this.state.inType=a,f}flowParseObjectTypeProperty(t,r,n,o,i,a,s){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(a?s||this.raise(Xt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Xt.InexactInsideNonObject,this.state.lastTokStartLoc),o&&this.raise(Xt.InexactVariance,o),null):(a||this.raise(Xt.UnexpectedSpreadType,this.state.lastTokStartLoc),n!=null&&this.unexpected(n),o&&this.raise(Xt.SpreadVariance,o),t.argument=this.flowParseType(),this.finishNode(t,"ObjectTypeSpreadProperty"));{t.key=this.flowParseObjectPropertyKey(),t.static=r,t.proto=n!=null,t.kind=i;let c=!1;return this.match(47)||this.match(10)?(t.method=!0,n!=null&&this.unexpected(n),o&&this.unexpected(o.loc.start),t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start)),(i==="get"||i==="set")&&this.flowCheckGetterSetterParams(t),!a&&t.key.name==="constructor"&&t.value.this&&this.raise(Xt.ThisParamBannedInConstructor,t.value.this)):(i!=="init"&&this.unexpected(),t.method=!1,this.eat(17)&&(c=!0),t.value=this.flowParseTypeInitialiser(),t.variance=o),t.optional=c,this.finishNode(t,"ObjectTypeProperty")}}flowCheckGetterSetterParams(t){let r=t.kind==="get"?0:1,n=t.value.params.length+(t.value.rest?1:0);t.value.this&&this.raise(t.kind==="get"?Xt.GetterMayNotHaveThisParam:Xt.SetterMayNotHaveThisParam,t.value.this),n!==r&&this.raise(t.kind==="get"?W.BadGetterArity:W.BadSetterArity,t),t.kind==="set"&&t.value.rest&&this.raise(W.BadSetterRestParameter,t)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(t,r){t??(t=this.state.startLoc);let n=r||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let o=this.startNodeAt(t);o.qualification=n,o.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(o,"QualifiedTypeIdentifier")}return n}flowParseGenericType(t,r){let n=this.startNodeAt(t);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(t,r),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){let t=this.startNode();return this.expect(87),t.argument=this.flowParsePrimaryType(),this.finishNode(t,"TypeofTypeAnnotation")}flowParseTupleType(){let t=this.startNode();for(t.types=[],this.expect(0);this.state.possuper.parseFunctionBody(t,!0,n));return}super.parseFunctionBody(t,!1,n)}parseFunctionBodyAndFinish(t,r,n=!1){if(this.match(14)){let o=this.startNode();[o.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),t.returnType=o.typeAnnotation?this.finishNode(o,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(t,r,n)}parseStatementLike(t){if(this.state.strict&&this.isContextual(129)){let n=this.lookahead();if(Pu(n.type)){let o=this.startNode();return this.next(),this.flowParseInterface(o)}}else if(this.isContextual(126)){let n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}let r=super.parseStatementLike(t);return this.flowPragma===void 0&&!this.isValidDirective(r)&&(this.flowPragma=null),r}parseExpressionStatement(t,r,n){if(r.type==="Identifier"){if(r.name==="declare"){if(this.match(80)||Qn(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(t)}else if(Qn(this.state.type)){if(r.name==="interface")return this.flowParseInterface(t);if(r.name==="type")return this.flowParseTypeAlias(t);if(r.name==="opaque")return this.flowParseOpaqueType(t,!1)}}return super.parseExpressionStatement(t,r,n)}shouldParseExportDeclaration(){let{type:t}=this.state;return t===126||que(t)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:t}=this.state;return t===126||que(t)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDefaultExpression()}parseConditional(t,r,n){if(!this.match(17))return t;if(this.state.maybeInArrowParameters){let f=this.lookaheadCharCode();if(f===44||f===61||f===58||f===41)return this.setOptionalParametersError(n),t}this.expect(17);let o=this.state.clone(),i=this.state.noArrowAt,a=this.startNodeAt(r),{consequent:s,failed:c}=this.tryParseConditionalConsequent(),[p,d]=this.getArrowLikeExpressions(s);if(c||d.length>0){let f=[...i];if(d.length>0){this.state=o,this.state.noArrowAt=f;for(let m=0;m1&&this.raise(Xt.AmbiguousConditionalArrow,o.startLoc),c&&p.length===1&&(this.state=o,f.push(p[0].start),this.state.noArrowAt=f,{consequent:s,failed:c}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(s,!0),this.state.noArrowAt=i,this.expect(14),a.test=t,a.consequent=s,a.alternate=this.forwardNoArrowParamsConversionAt(a,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(a,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let t=this.parseMaybeAssignAllowIn(),r=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:t,failed:r}}getArrowLikeExpressions(t,r){let n=[t],o=[];for(;n.length!==0;){let i=n.pop();i.type==="ArrowFunctionExpression"&&i.body.type!=="BlockStatement"?(i.typeParameters||!i.returnType?this.finishArrowValidation(i):o.push(i),n.push(i.body)):i.type==="ConditionalExpression"&&(n.push(i.consequent),n.push(i.alternate))}return r?(o.forEach(i=>this.finishArrowValidation(i)),[o,[]]):nVe(o,i=>i.params.every(a=>this.isAssignable(a,!0)))}finishArrowValidation(t){this.toAssignableList(t.params,t.extra?.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(t,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(t,r){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=r(),this.state.noArrowParamsConversionAt.pop()):n=r(),n}parseParenItem(t,r){let n=super.parseParenItem(t,r);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(t)),this.match(14)){let o=this.startNodeAt(r);return o.expression=n,o.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(o,"TypeCastExpression")}return n}assertModuleNodeAllowed(t){t.type==="ImportDeclaration"&&(t.importKind==="type"||t.importKind==="typeof")||t.type==="ExportNamedDeclaration"&&t.exportKind==="type"||t.type==="ExportAllDeclaration"&&t.exportKind==="type"||super.assertModuleNodeAllowed(t)}parseExportDeclaration(t){if(this.isContextual(130)){t.exportKind="type";let r=this.startNode();return this.next(),this.match(5)?(t.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(t),null):this.flowParseTypeAlias(r)}else if(this.isContextual(131)){t.exportKind="type";let r=this.startNode();return this.next(),this.flowParseOpaqueType(r,!1)}else if(this.isContextual(129)){t.exportKind="type";let r=this.startNode();return this.next(),this.flowParseInterface(r)}else if(this.isContextual(126)){t.exportKind="value";let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}else return super.parseExportDeclaration(t)}eatExportStar(t){return super.eatExportStar(t)?!0:this.isContextual(130)&&this.lookahead().type===55?(t.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(t){let{startLoc:r}=this.state,n=super.maybeParseExportNamespaceSpecifier(t);return n&&t.exportKind==="type"&&this.unexpected(r),n}parseClassId(t,r,n){super.parseClassId(t,r,n),this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(t,r,n){let{startLoc:o}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(t,r))return;r.declare=!0}super.parseClassMember(t,r,n),r.declare&&(r.type!=="ClassProperty"&&r.type!=="ClassPrivateProperty"&&r.type!=="PropertyDefinition"?this.raise(Xt.DeclareClassElement,o):r.value&&this.raise(Xt.DeclareClassFieldInitializer,r.value))}isIterator(t){return t==="iterator"||t==="asyncIterator"}readIterator(){let t=super.readWord1(),r="@@"+t;(!this.isIterator(t)||!this.state.inType)&&this.raise(W.InvalidIdentifier,this.state.curPosition(),{identifierName:r}),this.finishToken(132,r)}getTokenFromCode(t){let r=this.input.charCodeAt(this.state.pos+1);t===123&&r===124?this.finishOp(6,2):this.state.inType&&(t===62||t===60)?this.finishOp(t===62?48:47,1):this.state.inType&&t===63?r===46?this.finishOp(18,2):this.finishOp(17,1):Zze(t,r,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(t)}isAssignable(t,r){return t.type==="TypeCastExpression"?this.isAssignable(t.expression,r):super.isAssignable(t,r)}toAssignable(t,r=!1){!r&&t.type==="AssignmentExpression"&&t.left.type==="TypeCastExpression"&&(t.left=this.typeCastToParameter(t.left)),super.toAssignable(t,r)}toAssignableList(t,r,n){for(let o=0;o1||!r)&&this.raise(Xt.TypeCastInPattern,o.typeAnnotation)}return t}parseArrayLike(t,r,n){let o=super.parseArrayLike(t,r,n);return n!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(o.elements),o}isValidLVal(t,r,n,o){return t==="TypeCastExpression"||super.isValidLVal(t,r,n,o)}parseClassProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(t)}parseClassPrivateProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(t){return!this.match(14)&&super.isNonstaticConstructor(t)}pushClassMethod(t,r,n,o,i,a){if(r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(t,r,n,o,i,a),r.params&&i){let s=r.params;s.length>0&&this.isThisParam(s[0])&&this.raise(Xt.ThisParamBannedInConstructor,r)}else if(r.type==="MethodDefinition"&&i&&r.value.params){let s=r.value.params;s.length>0&&this.isThisParam(s[0])&&this.raise(Xt.ThisParamBannedInConstructor,r)}}pushClassPrivateMethod(t,r,n,o){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(t,r,n,o)}parseClassSuper(t){if(super.parseClassSuper(t),t.superClass&&(this.match(47)||this.match(51))&&(t.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let r=t.implements=[];do{let n=this.startNode();n.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?n.typeParameters=this.flowParseTypeParameterInstantiation():n.typeParameters=null,r.push(this.finishNode(n,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(t){super.checkGetterSetterParams(t);let r=this.getObjectOrClassMethodParams(t);if(r.length>0){let n=r[0];this.isThisParam(n)&&t.kind==="get"?this.raise(Xt.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(Xt.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(t){t.variance=this.flowParseVariance()}parseObjPropValue(t,r,n,o,i,a,s){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance;let c;this.match(47)&&!a&&(c=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let p=super.parseObjPropValue(t,r,n,o,i,a,s);return c&&((p.value||p).typeParameters=c),p}parseFunctionParamType(t){return this.eat(17)&&(t.type!=="Identifier"&&this.raise(Xt.PatternIsOptional,t),this.isThisParam(t)&&this.raise(Xt.ThisParamMayNotBeOptional,t),t.optional=!0),this.match(14)?t.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(t)&&this.raise(Xt.ThisParamAnnotationRequired,t),this.match(29)&&this.isThisParam(t)&&this.raise(Xt.ThisParamNoDefault,t),this.resetEndLocation(t),t}parseMaybeDefault(t,r){let n=super.parseMaybeDefault(t,r);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.startsuper.parseMaybeAssign(t,r),n),!o.error)return o.node;let{context:i}=this.state,a=i[i.length-1];(a===Lo.j_oTag||a===Lo.j_expr)&&i.pop()}if(o?.error||this.match(47)){n=n||this.state.clone();let i,a=this.tryParse(c=>{i=this.flowParseTypeParameterDeclaration();let p=this.forwardNoArrowParamsConversionAt(i,()=>{let f=super.parseMaybeAssign(t,r);return this.resetStartLocationFromNode(f,i),f});p.extra?.parenthesized&&c();let d=this.maybeUnwrapTypeCastExpression(p);return d.type!=="ArrowFunctionExpression"&&c(),d.typeParameters=i,this.resetStartLocationFromNode(d,i),p},n),s=null;if(a.node&&this.maybeUnwrapTypeCastExpression(a.node).type==="ArrowFunctionExpression"){if(!a.error&&!a.aborted)return a.node.async&&this.raise(Xt.UnexpectedTypeParameterBeforeAsyncArrowFunction,i),a.node;s=a.node}if(o?.node)return this.state=o.failState,o.node;if(s)return this.state=a.failState,s;throw o?.thrown?o.error:a.thrown?a.error:this.raise(Xt.UnexpectedTokenAfterTypeParameter,i)}return super.parseMaybeAssign(t,r)}parseArrow(t){if(this.match(14)){let r=this.tryParse(()=>{let n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let o=this.startNode();return[o.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=n,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),o});if(r.thrown)return null;r.error&&(this.state=r.failState),t.returnType=r.node.typeAnnotation?this.finishNode(r.node,"TypeAnnotation"):null}return super.parseArrow(t)}shouldParseArrow(t){return this.match(14)||super.shouldParseArrow(t)}setArrowFunctionParameters(t,r){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start))?t.params=r:super.setArrowFunctionParameters(t,r)}checkParams(t,r,n,o=!0){if(!(n&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start)))){for(let i=0;i0&&this.raise(Xt.ThisParamMustBeFirst,t.params[i]);super.checkParams(t,r,n,o)}}parseParenAndDistinguishExpression(t){return super.parseParenAndDistinguishExpression(t&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(t,r,n){if(t.type==="Identifier"&&t.name==="async"&&this.state.noArrowAt.includes(r.index)){this.next();let o=this.startNodeAt(r);o.callee=t,o.arguments=super.parseCallExpressionArguments(),t=this.finishNode(o,"CallExpression")}else if(t.type==="Identifier"&&t.name==="async"&&this.match(47)){let o=this.state.clone(),i=this.tryParse(s=>this.parseAsyncArrowWithTypeParameters(r)||s(),o);if(!i.error&&!i.aborted)return i.node;let a=this.tryParse(()=>super.parseSubscripts(t,r,n),o);if(a.node&&!a.error)return a.node;if(i.node)return this.state=i.failState,i.node;if(a.node)return this.state=a.failState,a.node;throw i.error||a.error}return super.parseSubscripts(t,r,n)}parseSubscript(t,r,n,o){if(this.match(18)&&this.isLookaheadToken_lt()){if(o.optionalChainMember=!0,n)return o.stop=!0,t;this.next();let i=this.startNodeAt(r);return i.callee=t,i.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),i.arguments=this.parseCallExpressionArguments(),i.optional=!0,this.finishCallExpression(i,!0)}else if(!n&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let i=this.startNodeAt(r);i.callee=t;let a=this.tryParse(()=>(i.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),i.arguments=super.parseCallExpressionArguments(),o.optionalChainMember&&(i.optional=!1),this.finishCallExpression(i,o.optionalChainMember)));if(a.node)return a.error&&(this.state=a.failState),a.node}return super.parseSubscript(t,r,n,o)}parseNewCallee(t){super.parseNewCallee(t);let r=null;this.shouldParseTypes()&&this.match(47)&&(r=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),t.typeArguments=r}parseAsyncArrowWithTypeParameters(t){let r=this.startNodeAt(t);if(this.parseFunctionParams(r,!1),!!this.parseArrow(r))return super.parseArrowExpression(r,void 0,!0)}readToken_mult_modulo(t){let r=this.input.charCodeAt(this.state.pos+1);if(t===42&&r===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(t)}readToken_pipe_amp(t){let r=this.input.charCodeAt(this.state.pos+1);if(t===124&&r===125){this.finishOp(9,2);return}super.readToken_pipe_amp(t)}parseTopLevel(t,r){let n=super.parseTopLevel(t,r);return this.state.hasFlowComment&&this.raise(Xt.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Xt.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let t=this.skipFlowComment();t&&(this.state.pos+=t,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:t}=this.state,r=2;for(;[32,9].includes(this.input.charCodeAt(t+r));)r++;let n=this.input.charCodeAt(r+t),o=this.input.charCodeAt(r+t+1);return n===58&&o===58?r+2:this.input.slice(r+t,r+t+12)==="flow-include"?r+12:n===58&&o!==58?r:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(W.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(t,{enumName:r,memberName:n}){this.raise(Xt.EnumBooleanMemberNotInitialized,t,{memberName:n,enumName:r})}flowEnumErrorInvalidMemberInitializer(t,r){return this.raise(r.explicitType?r.explicitType==="symbol"?Xt.EnumInvalidMemberInitializerSymbolType:Xt.EnumInvalidMemberInitializerPrimaryType:Xt.EnumInvalidMemberInitializerUnknownType,t,r)}flowEnumErrorNumberMemberNotInitialized(t,r){this.raise(Xt.EnumNumberMemberNotInitialized,t,r)}flowEnumErrorStringMemberInconsistentlyInitialized(t,r){this.raise(Xt.EnumStringMemberInconsistentlyInitialized,t,r)}flowEnumMemberInit(){let t=this.state.startLoc,r=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let n=this.parseNumericLiteral(this.state.value);return r()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:t}}case 134:{let n=this.parseStringLiteral(this.state.value);return r()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:t}}case 85:case 86:{let n=this.parseBooleanLiteral(this.match(85));return r()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:t}}default:return{type:"invalid",loc:t}}}flowEnumMemberRaw(){let t=this.state.startLoc,r=this.parseIdentifier(!0),n=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:t};return{id:r,init:n}}flowEnumCheckExplicitTypeMismatch(t,r,n){let{explicitType:o}=r;o!==null&&o!==n&&this.flowEnumErrorInvalidMemberInitializer(t,r)}flowEnumMembers({enumName:t,explicitType:r}){let n=new Set,o={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}let a=this.startNode(),{id:s,init:c}=this.flowEnumMemberRaw(),p=s.name;if(p==="")continue;/^[a-z]/.test(p)&&this.raise(Xt.EnumInvalidMemberName,s,{memberName:p,suggestion:p[0].toUpperCase()+p.slice(1),enumName:t}),n.has(p)&&this.raise(Xt.EnumDuplicateMemberName,s,{memberName:p,enumName:t}),n.add(p);let d={enumName:t,explicitType:r,memberName:p};switch(a.id=s,c.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"boolean"),a.init=c.value,o.booleanMembers.push(this.finishNode(a,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"number"),a.init=c.value,o.numberMembers.push(this.finishNode(a,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"string"),a.init=c.value,o.stringMembers.push(this.finishNode(a,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,d);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,d);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,d);break;default:o.defaultedMembers.push(this.finishNode(a,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:o,hasUnknownMembers:i}}flowEnumStringMembers(t,r,{enumName:n}){if(t.length===0)return r;if(r.length===0)return t;if(r.length>t.length){for(let o of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(o,{enumName:n});return r}else{for(let o of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(o,{enumName:n});return t}}flowEnumParseExplicitType({enumName:t}){if(!this.eatContextual(102))return null;if(!Qn(this.state.type))throw this.raise(Xt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});let{value:r}=this.state;return this.next(),r!=="boolean"&&r!=="number"&&r!=="string"&&r!=="symbol"&&this.raise(Xt.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:r}),r}flowEnumBody(t,r){let n=r.name,o=r.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);let{members:a,hasUnknownMembers:s}=this.flowEnumMembers({enumName:n,explicitType:i});switch(t.hasUnknownMembers=s,i){case"boolean":return t.explicitType=!0,t.members=a.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody");case"number":return t.explicitType=!0,t.members=a.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody");case"string":return t.explicitType=!0,t.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(t,"EnumStringBody");case"symbol":return t.members=a.defaultedMembers,this.expect(8),this.finishNode(t,"EnumSymbolBody");default:{let c=()=>(t.members=[],this.expect(8),this.finishNode(t,"EnumStringBody"));t.explicitType=!1;let p=a.booleanMembers.length,d=a.numberMembers.length,f=a.stringMembers.length,m=a.defaultedMembers.length;if(!p&&!d&&!f&&!m)return c();if(!p&&!d)return t.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(t,"EnumStringBody");if(!d&&!f&&p>=m){for(let y of a.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(y.loc.start,{enumName:n,memberName:y.id.name});return t.members=a.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody")}else if(!p&&!f&&d>=m){for(let y of a.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(y.loc.start,{enumName:n,memberName:y.id.name});return t.members=a.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody")}else return this.raise(Xt.EnumInconsistentMemberValues,o,{enumName:n}),c()}}}flowParseEnumDeclaration(t){let r=this.parseIdentifier();return t.id=r,t.body=this.flowEnumBody(this.startNode(),r),this.finishNode(t,"EnumDeclaration")}jsxParseOpeningElementAfterName(t){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(t.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(t)}isLookaheadToken_lt(){let t=this.nextTokenStart();if(this.input.charCodeAt(t)===60){let r=this.input.charCodeAt(t+1);return r!==60&&r!==61}return!1}reScan_lt_gt(){let{type:t}=this.state;t===47?(this.state.pos-=1,this.readToken_lt()):t===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:t}=this.state;return t===51?(this.state.pos-=2,this.finishOp(47,1),47):t}maybeUnwrapTypeCastExpression(t){return t.type==="TypeCastExpression"?t.expression:t}},aVe=/\r\n|[\r\n\u2028\u2029]/,S3=new RegExp(aVe.source,"g");function Mv(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function zue(e,t,r){for(let n=t;n`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 jm(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function $v(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return $v(e.object)+"."+$v(e.property);throw new Error("Node had unexpected type: "+e.type)}var cVe=e=>class extends e{jsxReadToken(){let t="",r=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(M_.UnterminatedJsxContent,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n);return}t+=this.input.slice(r,this.state.pos),this.finishToken(142,t);return;case 38:t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos;break;case 62:case 125:this.raise(M_.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:n===125?"}":">"});default:Mv(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}}jsxReadNewLine(t){let r=this.input.charCodeAt(this.state.pos),n;return++this.state.pos,r===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=t?` `:`\r -`):s=String.fromCharCode(i),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(r){let i="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(xn.UnterminatedString,this.state.startLoc);let l=this.input.charCodeAt(this.state.pos);if(l===r)break;l===38?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadEntity(),s=this.state.pos):IY(l)?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}i+=this.input.slice(s,this.state.pos++),this.finishToken(134,i)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let i=10;this.codePointAtPos(this.state.pos)===120&&(i=16,++this.state.pos);let s=this.readInt(i,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let i=0,s=!1;for(;i++<10&&this.state.pos1){for(let s=0;s0){if(i&256){let l=!!(i&512),d=(s&4)>0;return l!==d}return!0}return i&128&&(s&8)>0?e.names.get(r)&2?!!(i&1):!1:i&2&&(s&1)>0?!0:super.isRedeclaredInScope(e,r,i)}checkLocalExport(e){let{name:r}=e;if(this.hasImport(r))return;let i=this.scopeStack.length;for(let s=i-1;s>=0;s--){let l=this.scopeStack[s].tsNames.get(r);if((l&1)>0||(l&16)>0)return}super.checkLocalExport(e)}},GHr=class{stacks=[];enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function ACe(e,r){return(e?2:0)|(r?1:0)}var HHr=class{sawUnambiguousESM=!1;ambiguousScriptDifferentAst=!1;sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[r,i]=e;if(!this.hasPlugin(r))return!1;let s=this.plugins.get(r);for(let l of Object.keys(i))if(s?.[l]!==i[l])return!1;return!0}}getPluginOption(e,r){return this.plugins.get(e)?.[r]}};function NRt(e,r){e.trailingComments===void 0?e.trailingComments=r:e.trailingComments.unshift(...r)}function KHr(e,r){e.leadingComments===void 0?e.leadingComments=r:e.leadingComments.unshift(...r)}function PY(e,r){e.innerComments===void 0?e.innerComments=r:e.innerComments.unshift(...r)}function sV(e,r,i){let s=null,l=r.length;for(;s===null&&l>0;)s=r[--l];s===null||s.start>i.start?PY(e,i.comments):NRt(s,i.comments)}var QHr=class extends HHr{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let s=i-1,l=r[s];l.start===e.end&&(l.leadingNode=e,s--);let{start:d}=e;for(;s>=0;s--){let h=r[s],S=h.end;if(S>d)h.containingNode=e,this.finalizeComment(h),r.splice(s,1);else{S===d&&(h.trailingNode=e);break}}}finalizeComment(e){let{comments:r}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&NRt(e.leadingNode,r),e.trailingNode!==null&&KHr(e.trailingNode,r);else{let i=e.containingNode,s=e.start;if(this.input.charCodeAt(this.offsetToSourcePos(s)-1)===44)switch(i.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":sV(i,i.properties,e);break;case"CallExpression":case"OptionalCallExpression":sV(i,i.arguments,e);break;case"ImportExpression":sV(i,[i.source,i.options??null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":sV(i,i.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":sV(i,i.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":sV(i,i.specifiers,e);break;case"TSEnumDeclaration":PY(i,r);break;case"TSEnumBody":sV(i,i.members,e);break;default:PY(i,r)}else PY(i,r)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let r=e.length-1;r>=0;r--)this.finalizeComment(e[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:r}=this.state,{length:i}=r;if(i===0)return;let s=r[i-1];s.leadingNode===e&&(s.leadingNode=null)}takeSurroundingComments(e,r,i){let{commentStack:s}=this.state,l=s.length;if(l===0)return;let d=l-1;for(;d>=0;d--){let h=s[d],S=h.end;if(h.start===i)h.leadingNode=e;else if(S===r)h.trailingNode=e;else if(S0}set strict(r){r?this.flags|=1:this.flags&=-2}startIndex;curLine;lineStart;startLoc;endLoc;init({strictMode:r,sourceType:i,startIndex:s,startLine:l,startColumn:d}){this.strict=r===!1?!1:r===!0?!0:i==="module",this.startIndex=s,this.curLine=l,this.lineStart=-d,this.startLoc=this.endLoc=new Yj(l,d,s)}errors=[];potentialArrowAt=-1;noArrowAt=[];noArrowParamsConversionAt=[];get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(r){r?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(r){r?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(r){r?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(r){r?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(r){r?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(r){r?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(r){r?this.flags|=128:this.flags&=-129}topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};get soloAwait(){return(this.flags&256)>0}set soloAwait(r){r?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(r){r?this.flags|=512:this.flags&=-513}labels=[];commentsLen=0;commentStack=[];pos=0;type=140;value=null;start=0;end=0;lastTokEndLoc=null;lastTokStartLoc=null;context=[kg.brace];get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(r){r?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(r){r?this.flags|=2048:this.flags&=-2049}firstInvalidTemplateEscapePos=null;get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(r){r?this.flags|=4096:this.flags&=-4097}strictErrors=new Map;tokensLength=0;curPosition(){return new Yj(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let r=new ORt;return r.flags=this.flags,r.startIndex=this.startIndex,r.curLine=this.curLine,r.lineStart=this.lineStart,r.startLoc=this.startLoc,r.endLoc=this.endLoc,r.errors=this.errors.slice(),r.potentialArrowAt=this.potentialArrowAt,r.noArrowAt=this.noArrowAt.slice(),r.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),r.topicContext=this.topicContext,r.labels=this.labels.slice(),r.commentsLen=this.commentsLen,r.commentStack=this.commentStack.slice(),r.pos=this.pos,r.type=this.type,r.value=this.value,r.start=this.start,r.end=this.end,r.lastTokEndLoc=this.lastTokEndLoc,r.lastTokStartLoc=this.lastTokStartLoc,r.context=this.context.slice(),r.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,r.strictErrors=this.strictErrors,r.tokensLength=this.tokensLength,r}},XHr=function(e){return e>=48&&e<=57},rRt={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},ECe={bin:e=>e===48||e===49,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 nRt(e,r,i,s,l,d){let h=i,S=s,b=l,A="",L=null,V=i,{length:j}=r;for(;;){if(i>=j){d.unterminated(h,S,b),A+=r.slice(V,i);break}let ie=r.charCodeAt(i);if(YHr(e,ie,r,i)){A+=r.slice(V,i);break}if(ie===92){A+=r.slice(V,i);let te=eKr(r,i,s,l,e==="template",d);te.ch===null&&!L?L={pos:i,lineStart:s,curLine:l}:A+=te.ch,{pos:i,lineStart:s,curLine:l}=te,V=i}else ie===8232||ie===8233?(++i,++l,s=i):ie===10||ie===13?e==="template"?(A+=r.slice(V,i)+` -`,++i,ie===13&&r.charCodeAt(i)===10&&++i,++l,V=s=i):d.unterminated(h,S,b):++i}return{pos:i,str:A,firstInvalidLoc:L,lineStart:s,curLine:l}}function YHr(e,r,i,s){return e==="template"?r===96||r===36&&i.charCodeAt(s+1)===123:r===(e==="double"?34:39)}function eKr(e,r,i,s,l,d){let h=!l;r++;let S=A=>({pos:r,ch:A,lineStart:i,curLine:s}),b=e.charCodeAt(r++);switch(b){case 110:return S(` -`);case 114:return S("\r");case 120:{let A;return{code:A,pos:r}=dZe(e,r,i,s,2,!1,h,d),S(A===null?null:String.fromCharCode(A))}case 117:{let A;return{code:A,pos:r}=RRt(e,r,i,s,h,d),S(A===null?null:String.fromCodePoint(A))}case 116:return S(" ");case 98:return S("\b");case 118:return S("\v");case 102:return S("\f");case 13:e.charCodeAt(r)===10&&++r;case 10:i=r,++s;case 8232:case 8233:return S("");case 56:case 57:if(l)return S(null);d.strictNumericEscape(r-1,i,s);default:if(b>=48&&b<=55){let A=r-1,L=/^[0-7]+/.exec(e.slice(A,r+2))[0],V=parseInt(L,8);V>255&&(L=L.slice(0,-1),V=parseInt(L,8)),r+=L.length-1;let j=e.charCodeAt(r);if(L!=="0"||j===56||j===57){if(l)return S(null);d.strictNumericEscape(A,i,s)}return S(String.fromCharCode(V))}return S(String.fromCharCode(b))}}function dZe(e,r,i,s,l,d,h,S){let b=r,A;return{n:A,pos:r}=FRt(e,r,i,s,16,l,d,!1,S,!h),A===null&&(h?S.invalidEscapeSequence(b,i,s):r=b-1),{code:A,pos:r}}function FRt(e,r,i,s,l,d,h,S,b,A){let L=r,V=l===16?rRt.hex:rRt.decBinOct,j=l===16?ECe.hex:l===10?ECe.dec:l===8?ECe.oct:ECe.bin,ie=!1,te=0;for(let X=0,Re=d??1/0;X=97?pt=Je-97+10:Je>=65?pt=Je-65+10:XHr(Je)?pt=Je-48:pt=1/0,pt>=l){if(pt<=9&&A)return{n:null,pos:r};if(pt<=9&&b.invalidDigit(r,i,s,l))pt=0;else if(h)pt=0,ie=!0;else break}++r,te=te*l+pt}return r===L||d!=null&&r-L!==d||ie?{n:null,pos:r}:{n:te,pos:r}}function RRt(e,r,i,s,l,d){let h=e.charCodeAt(r),S;if(h===123){if(++r,{code:S,pos:r}=dZe(e,r,i,s,e.indexOf("}",r)-r,!0,l,d),++r,S!==null&&S>1114111)if(l)d.invalidCodePoint(r,i,s);else return{code:null,pos:r}}else({code:S,pos:r}=dZe(e,r,i,s,4,!1,l,d));return{code:S,pos:r}}function Spe(e,r,i){return new Yj(i,e-r,e)}var tKr=new Set([103,109,115,105,121,117,100,118]),rKr=class{constructor(e){let r=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=r+e.start,this.end=r+e.end,this.loc=new PCe(e.startLoc,e.endLoc)}},nKr=class extends QHr{isLookahead;tokens=[];constructor(e,r){super(),this.state=new ZHr,this.state.init(e),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new rKr(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):!1}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(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=e,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return iZe.lastIndex=e,iZe.test(this.input)?iZe.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 oZe.lastIndex=e,oZe.test(this.input)?oZe.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let r=this.input.charCodeAt(e);if((r&64512)===55296&&++ethis.raise(r,i)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let r;this.isLookahead||(r=this.state.curPosition());let i=this.state.pos,s=this.input.indexOf(e,i+2);if(s===-1)throw this.raise(xn.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+e.length,TCe.lastIndex=i+2;TCe.test(this.input)&&TCe.lastIndex<=s;)++this.state.curLine,this.state.lineStart=TCe.lastIndex;if(this.isLookahead)return;let l={type:"CommentBlock",value:this.input.slice(i+2,s),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(s+e.length),loc:new PCe(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(l),l}skipLineComment(e){let r=this.state.pos,i;this.isLookahead||(i=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=e);if(this.state.pose)){let l=this.skipLineComment(3);l!==void 0&&(this.addComment(l),r?.push(l))}else break e}else if(i===60&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===33&&this.input.charCodeAt(s+2)===45&&this.input.charCodeAt(s+3)===45){let l=this.skipLineComment(4);l!==void 0&&(this.addComment(l),r?.push(l))}else break e}else break e}}if(r?.length>0){let i=this.state.pos,s={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(i),comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(e,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let i=this.state.type;this.state.type=e,this.state.value=r,this.isLookahead||this.updateContext(i)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,r=this.codePointAtPos(e);if(r>=48&&r<=57)throw this.raise(xn.UnexpectedDigitAfterHash,this.state.curPosition());l8(r)?(++this.state.pos,this.finishToken(139,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!IY(e)&&++this.state.pos=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(l8(e)){this.readWord(e);return}}throw this.raise(xn.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,r){let i=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(e,i)}readRegexp(){let e=this.state.startLoc,r=this.state.start+1,i,s,{pos:l}=this.state;for(;;++l){if(l>=this.length)throw this.raise(xn.UnterminatedRegExp,eI(e,1));let b=this.input.charCodeAt(l);if(IY(b))throw this.raise(xn.UnterminatedRegExp,eI(e,1));if(i)i=!1;else{if(b===91)s=!0;else if(b===93&&s)s=!1;else if(b===47&&!s)break;i=b===92}}let d=this.input.slice(r,l);++l;let h="",S=()=>eI(e,l+2-r);for(;l=2&&this.input.charCodeAt(r)===48;if(h){let L=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(xn.StrictOctalLiteral,i),!this.state.strict){let V=L.indexOf("_");V>0&&this.raise(xn.ZeroDigitNumericSeparator,eI(i,V))}d=h&&!/[89]/.test(L)}let S=this.input.charCodeAt(this.state.pos);if(S===46&&!d&&(++this.state.pos,this.readInt(10),s=!0,S=this.input.charCodeAt(this.state.pos)),(S===69||S===101)&&!d&&(S=this.input.charCodeAt(++this.state.pos),(S===43||S===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(xn.InvalidOrMissingExponent,i),s=!0,S=this.input.charCodeAt(this.state.pos)),S===110&&((s||h)&&this.raise(xn.InvalidBigIntLiteral,i),++this.state.pos,l=!0),l8(this.codePointAtPos(this.state.pos)))throw this.raise(xn.NumberIdentifier,this.state.curPosition());let b=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(l){this.finishToken(136,b);return}let A=d?parseInt(b,8):parseFloat(b);this.finishToken(135,A)}readCodePoint(e){let{code:r,pos:i}=RRt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=i,r}readString(e){let{str:r,pos:i,curLine:s,lineStart:l}=nRt(e===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=i+1,this.state.lineStart=l,this.state.curLine=s,this.finishToken(134,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:r,firstInvalidLoc:i,pos:s,curLine:l,lineStart:d}=nRt("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1,this.state.lineStart=d,this.state.curLine=l,i&&(this.state.firstInvalidTemplateEscapePos=new Yj(i.curLine,i.pos-i.lineStart,this.sourceToOffsetPos(i.pos))),this.input.codePointAt(s)===96?this.finishToken(24,i?null:e+r+"`"):(this.state.pos++,this.finishToken(25,i?null:e+r+"${"))}recordStrictModeErrors(e,r){let i=r.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(e,r):this.state.strictErrors.set(i,[e,r])}readWord1(e){this.state.containsEsc=!1;let r="",i=this.state.pos,s=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos=0;h--){let S=d[h];if(S.loc.index===l)return d[h]=e(s,i);if(S.loc.indexthis.hasPlugin(r)))throw this.raise(xn.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(r,i,s)=>{this.raise(e,Spe(r,i,s))}}errorHandlers_readInt={invalidDigit:(e,r,i,s)=>this.optionFlags&2048?(this.raise(xn.InvalidDigit,Spe(e,r,i),{radix:s}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(xn.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(xn.UnexpectedNumericSeparator)};errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(xn.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(xn.InvalidCodePoint)});errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,r,i)=>{this.recordStrictModeErrors(xn.StrictNumericEscape,Spe(e,r,i))},unterminated:(e,r,i)=>{throw this.raise(xn.UnterminatedString,Spe(e-1,r,i))}});errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(xn.StrictNumericEscape),unterminated:(e,r,i)=>{throw this.raise(xn.UnterminatedTemplate,Spe(e,r,i))}})},iKr=class{privateNames=new Set;loneAccessors=new Map;undefinedPrivateNames=new Map},oKr=class{parser;stack=[];undefinedPrivateNames=new Map;constructor(e){this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new iKr)}exit(){let e=this.stack.pop(),r=this.current();for(let[i,s]of Array.from(e.undefinedPrivateNames))r?r.undefinedPrivateNames.has(i)||r.undefinedPrivateNames.set(i,s):this.parser.raise(xn.InvalidPrivateFieldResolution,s,{identifierName:i})}declarePrivateName(e,r,i){let{privateNames:s,loneAccessors:l,undefinedPrivateNames:d}=this.current(),h=s.has(e);if(r&3){let S=h&&l.get(e);if(S){let b=S&4,A=r&4,L=S&3,V=r&3;h=L===V||b!==A,h||l.delete(e)}else h||l.set(e,r)}h&&this.parser.raise(xn.PrivateNameRedeclaration,i,{identifierName:e}),s.add(e),d.delete(e)}usePrivateName(e,r){let i;for(i of this.stack)if(i.privateNames.has(e))return;i?i.undefinedPrivateNames.set(e,r):this.parser.raise(xn.InvalidPrivateFieldResolution,r,{identifierName:e})}},NCe=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},LRt=class extends NCe{declarationErrors=new Map;constructor(e){super(e)}recordDeclarationError(e,r){let i=r.index;this.declarationErrors.set(i,[e,r])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},aKr=class{parser;stack=[new NCe];constructor(e){this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,r){let i=r.loc.start,{stack:s}=this,l=s.length-1,d=s[l];for(;!d.isCertainlyParameterDeclaration();){if(d.canBeArrowParameterDeclaration())d.recordDeclarationError(e,i);else return;d=s[--l]}this.parser.raise(e,i)}recordArrowParameterBindingError(e,r){let{stack:i}=this,s=i[i.length-1],l=r.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(e,l);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(e,l);else return}recordAsyncArrowParametersError(e){let{stack:r}=this,i=r.length-1,s=r[i];for(;s.canBeArrowParameterDeclaration();)s.type===2&&s.recordDeclarationError(xn.AwaitBindingIdentifier,e),s=r[--i]}validateAsPattern(){let{stack:e}=this,r=e[e.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([i,s])=>{this.parser.raise(i,s);let l=e.length-2,d=e[l];for(;d.canBeArrowParameterDeclaration();)d.clearDeclarationError(s.index),d=e[--l]})}};function sKr(){return new NCe(3)}function cKr(){return new LRt(1)}function lKr(){return new LRt(2)}function MRt(){return new NCe}var uKr=class extends nKr{addExtra(e,r,i,s=!0){if(!e)return;let{extra:l}=e;l==null&&(l={},e.extra=l),s?l[r]=i:Object.defineProperty(l,r,{enumerable:s,value:i})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,r){if(this.input.startsWith(r,e)){let i=this.input.charCodeAt(e+r.length);return!(cV(i)||(i&64512)===55296)}return!1}isLookaheadContextual(e){let r=this.nextTokenStart();return this.isUnparsedContextual(r,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,r){if(!this.eatContextual(e)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return tRt(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return tRt(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(xn.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,r){this.eat(e)||this.unexpected(r,e)}tryParse(e,r=this.state.clone()){let i={node:null};try{let s=e((l=null)=>{throw i.node=l,i});if(this.state.errors.length>r.errors.length){let l=this.state;return this.state=r,this.state.tokensLength=l.tokensLength,{node:s,error:l.errors[r.errors.length],thrown:!1,aborted:!1,failState:l}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let l=this.state;if(this.state=r,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:l};if(s===i)return{node:i.node,error:null,thrown:!1,aborted:!0,failState:l};throw s}}checkExpressionErrors(e,r){if(!e)return!1;let{shorthandAssignLoc:i,doubleProtoLoc:s,privateKeyLoc:l,optionalParametersLoc:d,voidPatternLoc:h}=e,S=!!i||!!s||!!d||!!l||!!h;if(!r)return S;i!=null&&this.raise(xn.InvalidCoverInitializedName,i),s!=null&&this.raise(xn.DuplicateProto,s),l!=null&&this.raise(xn.UnexpectedPrivateField,l),d!=null&&this.unexpected(d),h!=null&&this.raise(xn.InvalidCoverDiscardElement,h)}isLiteralPropertyName(){return ERt(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let i=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let s=this.inModule;this.inModule=e;let l=this.scope,d=this.getScopeHandler();this.scope=new d(this,e);let h=this.prodParam;this.prodParam=new GHr;let S=this.classScope;this.classScope=new oKr(this);let b=this.expressionScope;return this.expressionScope=new aKr(this),()=>{this.state.labels=r,this.exportedIdentifiers=i,this.inModule=s,this.scope=l,this.prodParam=h,this.classScope=S,this.expressionScope=b}}enterInitialScopes(){let e=0;(this.inModule||this.optionFlags&1)&&(e|=2),this.optionFlags&32&&(e|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(e|=4),this.prodParam.enter(e);let i=r?514:1;this.optionFlags&4&&(i|=512),this.optionFlags&16&&(i|=48),this.scope.enter(i)}checkDestructuringPrivate(e){let{privateKeyLoc:r}=e;r!==null&&this.expectPlugin("destructuringPrivate",r)}},wCe=class{shorthandAssignLoc=null;doubleProtoLoc=null;privateKeyLoc=null;optionalParametersLoc=null;voidPatternLoc=null},fZe=class{constructor(e,r,i){this.start=r,this.end=0,this.loc=new PCe(i),e?.optionFlags&128&&(this.range=[r,0]),e?.filename&&(this.loc.filename=e.filename)}type=""},iRt=fZe.prototype,pKr=class extends uKr{startNode(){let e=this.state.startLoc;return new fZe(this,e.index,e)}startNodeAt(e){return new fZe(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,r){return this.finishNodeAt(e,r,this.state.lastTokEndLoc)}finishNodeAt(e,r,i){return e.type=r,e.end=i.index,e.loc.end=i,this.optionFlags&128&&(e.range[1]=i.index),this.optionFlags&4096&&this.processComment(e),e}resetStartLocation(e,r){e.start=r.index,e.loc.start=r,this.optionFlags&128&&(e.range[0]=r.index)}resetEndLocation(e,r=this.state.lastTokEndLoc){e.end=r.index,e.loc.end=r,this.optionFlags&128&&(e.range[1]=r.index)}resetStartLocationFromNode(e,r){this.resetStartLocation(e,r.loc.start)}castNodeTo(e,r){return e.type=r,e}cloneIdentifier(e){let{type:r,start:i,end:s,loc:l,range:d,name:h}=e,S=Object.create(iRt);return S.type=r,S.start=i,S.end=s,S.loc=l,S.range=d,S.name=h,e.extra&&(S.extra=e.extra),S}cloneStringLiteral(e){let{type:r,start:i,end:s,loc:l,range:d,extra:h}=e,S=Object.create(iRt);return S.type=r,S.start=i,S.end=s,S.loc=l,S.range=d,S.extra=h,S.value=e.value,S}},mZe=e=>e.type==="ParenthesizedExpression"?mZe(e.expression):e,_Kr=class extends pKr{toAssignable(e,r=!1){let i;switch((e.type==="ParenthesizedExpression"||e.extra?.parenthesized)&&(i=mZe(e),r?i.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(xn.InvalidParenthesizedAssignment,e):i.type!=="CallExpression"&&i.type!=="MemberExpression"&&!this.isOptionalMemberExpression(i)&&this.raise(xn.InvalidParenthesizedAssignment,e):this.raise(xn.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 s=0,l=e.properties.length,d=l-1;ss.type!=="ObjectMethod"&&(l===i||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(i=>i===null||this.isAssignable(i));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(e,r){return e}toReferencedListDeep(e,r){this.toReferencedList(e,r);for(let i of e)i?.type==="ArrayExpression"&&this.toReferencedListDeep(i.elements)}parseSpread(e){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let e=this.startNode();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(xn.UnexpectedVoidPattern,r),e.argument=r,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let 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,r,i){let s=i&1,l=[],d=!0;for(;!this.eat(e);)if(d?d=!1:this.expect(12),s&&this.match(12))l.push(null);else{if(this.eat(e))break;if(this.match(21)){let h=this.parseRestBinding();if(i&2&&(h=this.parseFunctionParamType(h)),l.push(h),!this.checkCommaAfterRest(r)){this.expect(e);break}}else{let h=[];if(i&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(xn.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)h.push(this.parseDecorator());l.push(this.parseBindingElement(i,h))}}return l}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(xn.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:r}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let i=this.startNode();return e===139?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),i.key=this.parsePrivateName()):this.parsePropertyName(i),i.method=!1,this.parseObjPropValue(i,r,!1,!1,!0,!1)}parseBindingElement(e,r){let i=this.parseMaybeDefault();return e&2&&this.parseFunctionParamType(i),r.length&&(i.decorators=r,this.resetStartLocationFromNode(i,r[0])),this.parseMaybeDefault(i.loc.start,i)}parseFunctionParamType(e){return e}parseMaybeDefault(e,r){if(e??(e=this.state.startLoc),r=r??this.parseBindingAtom(),!this.eat(29))return r;let i=this.startNodeAt(e);return r.type==="VoidPattern"&&this.raise(xn.VoidPatternInitializer,r),i.left=r,i.right=this.parseMaybeAssignAllowIn(),this.finishNode(i,"AssignmentPattern")}isValidLVal(e,r,i,s){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(!r&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,r,i=64,s=!1,l=!1,d=!1,h=!1){let S=e.type;if(this.isObjectMethod(e))return;let b=this.isOptionalMemberExpression(e);if(b||S==="MemberExpression"){b&&(this.expectPlugin("optionalChainingAssign",e.loc.start),r.type!=="AssignmentExpression"&&this.raise(xn.InvalidLhsOptionalChaining,e,{ancestor:r})),i!==64&&this.raise(xn.InvalidPropertyBindingPattern,e);return}if(S==="Identifier"){this.checkIdentifier(e,i,l);let{name:X}=e;s&&(s.has(X)?this.raise(xn.ParamDupe,e):s.add(X));return}else S==="VoidPattern"&&r.type==="CatchClause"&&this.raise(xn.VoidPatternCatchClauseParam,e);let A=mZe(e);h||(h=A.type==="CallExpression"&&(A.callee.type==="Import"||A.callee.type==="Super"));let L=this.isValidLVal(S,h,!(d||e.extra?.parenthesized)&&r.type==="AssignmentExpression",i);if(L===!0)return;if(L===!1){let X=i===64?xn.InvalidLhs:xn.InvalidLhsBinding;this.raise(X,e,{ancestor:r});return}let V,j;typeof L=="string"?(V=L,j=S==="ParenthesizedExpression"):[V,j]=L;let ie=S==="ArrayPattern"||S==="ObjectPattern"?{type:S}:r,te=e[V];if(Array.isArray(te))for(let X of te)X&&this.checkLVal(X,ie,i,s,l,j,!0);else te&&this.checkLVal(te,ie,i,s,l,j,h)}checkIdentifier(e,r,i=!1){this.state.strict&&(i?PRt(e.name,this.inModule):IRt(e.name))&&(r===64?this.raise(xn.StrictEvalArguments,e,{referenceName:e.name}):this.raise(xn.StrictEvalArgumentsBinding,e,{bindingName:e.name})),r&8192&&e.name==="let"&&this.raise(xn.LetInLexicalBinding,e),r&64||this.declareNameFromIdentifier(e,r)}declareNameFromIdentifier(e,r){this.scope.declareName(e.name,r,e.loc.start)}checkToRestConversion(e,r){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(xn.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?xn.RestTrailingComma:xn.ElementAfterRest,this.state.startLoc),!0):!1}},aZe=/in(?:stanceof)?|as|satisfies/y;function dKr(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function oRt(e){if(!e)throw new Error("Assert fail")}var jc=c8`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 `() => ...`.",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 fKr(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}}function aRt(e){return e==="private"||e==="public"||e==="protected"}function mKr(e){return e==="in"||e==="out"}function hZe(e){if(e.extra?.parenthesized)return!1;switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&hZe(e.object);case"TSInstantiationExpression":return hZe(e.expression);default:return!1}}var hKr=e=>class extends e{getScopeHandler(){return WHr}tsIsIdentifier(){return fm(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()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,i,s){if(!fm(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let l=this.state.value;if(r.includes(l)){if(s&&this.match(106)||i&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return l}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:i,stopOnStartOfClassStaticBlock:s,errorTemplate:l=jc.InvalidModifierOnTypeMember},d){let h=(b,A,L,V)=>{A===L&&d[V]&&this.raise(jc.InvalidModifiersOrder,b,{orderedModifiers:[L,V]})},S=(b,A,L,V)=>{(d[L]&&A===V||d[V]&&A===L)&&this.raise(jc.IncompatibleModifiers,b,{modifiers:[L,V]})};for(;;){let{startLoc:b}=this.state,A=this.tsParseModifier(r.concat(i??[]),s,d.static);if(!A)break;aRt(A)?d.accessibility?this.raise(jc.DuplicateAccessibilityModifier,b,{modifier:A}):(h(b,A,A,"override"),h(b,A,A,"static"),h(b,A,A,"readonly"),d.accessibility=A):mKr(A)?(d[A]&&this.raise(jc.DuplicateModifier,b,{modifier:A}),d[A]=!0,h(b,A,"in","out")):(Object.prototype.hasOwnProperty.call(d,A)?this.raise(jc.DuplicateModifier,b,{modifier:A}):(h(b,A,"static","readonly"),h(b,A,"static","override"),h(b,A,"override","readonly"),h(b,A,"abstract","override"),S(b,A,"declare","override"),S(b,A,"static","abstract")),d[A]=!0),i?.includes(A)&&this.raise(l,b,{modifier:A})}}tsIsListTerminator(r){switch(r){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(r,i){let s=[];for(;!this.tsIsListTerminator(r);)s.push(i());return s}tsParseDelimitedList(r,i,s){return dKr(this.tsParseDelimitedListWorker(r,i,!0,s))}tsParseDelimitedListWorker(r,i,s,l){let d=[],h=-1;for(;!this.tsIsListTerminator(r);){h=-1;let S=i();if(S==null)return;if(d.push(S),this.eat(12)){h=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;s&&this.expect(12);return}return l&&(l.value=h),d}tsParseBracketedList(r,i,s,l,d){l||(s?this.expect(0):this.expect(47));let h=this.tsParseDelimitedList(r,i,d);return s?this.expect(3):this.expect(48),h}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(134)?r.argument=this.tsParseLiteralTypeNode():(this.raise(jc.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=this.tsParseNonConditionalType()),this.eat(12)?r.options=this.tsParseImportTypeOptions():r.options=null,this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName(3)),this.match(47)&&(r.typeArguments=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){let r=this.startNode();this.expect(5);let i=this.startNode();return this.isContextual(76)?(i.method=!1,i.key=this.parseIdentifier(!0),i.computed=!1,i.shorthand=!1):this.unexpected(null,76),this.expect(14),i.value=this.tsParseImportTypeWithPropertyValue(),r.properties=[this.finishObjectProperty(i)],this.eat(12),this.expect(8),this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let r=this.startNode(),i=[];for(this.expect(5);!this.match(8);){let s=this.state.type;fm(s)||s===134?i.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return r.properties=i,this.next(),this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let i;if(r&1&&this.match(78))if(r&2)i=this.parseIdentifier(!0);else{let s=this.startNode();this.next(),i=this.finishNode(s,"ThisExpression")}else i=this.parseIdentifier(!!(r&1));for(;this.eat(16);){let s=this.startNodeAtNode(i);s.left=i,s.right=this.parseIdentifier(!!(r&1)),i=this.finishNode(s,"TSQualifiedName")}return i}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeArguments=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let i=this.startNodeAtNode(r);return i.parameterName=r,i.typeAnnotation=this.tsParseTypeAnnotation(!1),i.asserts=!1,this.finishNode(i,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeArguments=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:jc.InvalidModifierOnTypeParameter});tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:jc.InvalidModifierOnTypeParameterPositions});tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:jc.InvalidModifierOnTypeParameter});tsParseTypeParameter(r){let i=this.startNode();return r(i),i.name=this.tsParseTypeParameterName(),i.constraint=this.tsEatThenParseType(81),i.default=this.tsEatThenParseType(29),this.finishNode(i,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let i=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let s={value:-1};return i.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,s),i.params.length===0&&this.raise(jc.EmptyTypeParameters,i),s.value!==-1&&this.addExtra(i,"trailingComma",s.value),this.finishNode(i,"TSTypeParameterDeclaration")}tsFillSignature(r,i){let s=r===19,l="params",d="returnType";i.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),i[l]=this.tsParseBindingListForSignature(),s?i[d]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(i[d]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let i of r){let{type:s}=i;(s==="AssignmentPattern"||s==="TSParameterProperty")&&this.raise(jc.UnsupportedSignatureParameterKind,i,{type:s})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,i){return this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon(),this.finishNode(i,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),fm(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let i=this.parseIdentifier();i.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(i),this.expect(3),r.parameters=[i];let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,i){if(this.eat(17)&&(r.optional=!0),this.match(10)||this.match(47)){i&&this.raise(jc.ReadonlyForMethodSignature,r);let s=r;s.kind&&this.match(47)&&this.raise(jc.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon();let l="params",d="returnType";if(s.kind==="get")s[l].length>0&&(this.raise(xn.BadGetterArity,this.state.curPosition()),this.isThisParam(s[l][0])&&this.raise(jc.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s[l].length!==1)this.raise(xn.BadSetterArity,this.state.curPosition());else{let h=s[l][0];this.isThisParam(h)&&this.raise(jc.AccessorCannotDeclareThisParameter,this.state.curPosition()),h.type==="Identifier"&&h.optional&&this.raise(jc.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),h.type==="RestElement"&&this.raise(jc.SetAccessorCannotHaveRestParameter,this.state.curPosition())}s[d]&&this.raise(jc.SetAccessorCannotHaveReturnType,s[d])}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else{let s=r;i&&(s.readonly=!0);let l=this.tsTryParseTypeAnnotation();return l&&(s.typeAnnotation=l),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let s=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(s,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r),this.tsTryParseIndexSignature(r)||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let r=this.startNode();return this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0),r.key=this.tsParseTypeParameterName(),r.constraint=this.tsExpectThenParseType(58),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let i=!1;return r.elementTypes.forEach(s=>{let{type:l}=s;i&&l!=="TSRestType"&&l!=="TSOptionalType"&&!(l==="TSNamedTupleMember"&&s.optional)&&this.raise(jc.OptionalTypeBeforeRequired,s),i||(i=l==="TSNamedTupleMember"&&s.optional||l==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let r=this.state.startLoc,i=this.eat(21),{startLoc:s}=this.state,l,d,h,S,b=R6(this.state.type)?this.lookaheadCharCode():null;if(b===58)l=!0,h=!1,d=this.parseIdentifier(!0),this.expect(14),S=this.tsParseType();else if(b===63){h=!0;let A=this.state.value,L=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(l=!0,d=this.createIdentifier(this.startNodeAt(s),A),this.expect(17),this.expect(14),S=this.tsParseType()):(l=!1,S=L,this.expect(17))}else S=this.tsParseType(),h=this.eat(17),l=this.eat(14);if(l){let A;d?(A=this.startNodeAt(s),A.optional=h,A.label=d,A.elementType=S,this.eat(17)&&(A.optional=!0,this.raise(jc.TupleOptionalAfterType,this.state.lastTokStartLoc))):(A=this.startNodeAt(s),A.optional=h,this.raise(jc.InvalidTupleMemberLabel,S),A.label=S,A.elementType=this.tsParseType()),S=this.finishNode(A,"TSNamedTupleMember")}else if(h){let A=this.startNodeAt(s);A.typeAnnotation=S,S=this.finishNode(A,"TSOptionalType")}if(i){let A=this.startNodeAt(r);A.typeAnnotation=S,S=this.finishNode(A,"TSRestType")}return S}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,i){let s=this.startNode();return r==="TSConstructorType"&&(s.abstract=!!i,i&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,s)),this.finishNode(s,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){{let r=this.state.startLoc,i=this.parseTemplateElement(!1),s=[i];if(i.tail){let l=this.startNodeAt(r),d=this.startNodeAt(r);return d.expressions=[],d.quasis=s,l.literal=this.finishNode(d,"TemplateLiteral"),this.finishNode(l,"TSLiteralType")}else{let l=[];for(;!i.tail;)l.push(this.tsParseType()),this.readTemplateContinuation(),s.push(i=this.parseTemplateElement(!1));let d=this.startNodeAt(r);return d.types=l,d.quasis=s,this.finishNode(d,"TSTemplateLiteralType")}}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),i=this.lookahead();return i.type!==135&&i.type!==136&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"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:if(!(this.optionFlags&1024)){let r=this.state.startLoc;this.next();let i=this.tsParseType();return this.expect(11),this.addExtra(i,"parenthesized",!0),this.addExtra(i,"parenStart",r.index),i}return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(fm(r)||r===88||r===84){let i=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":fKr(this.state.value);if(i!==void 0&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,i)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:r}=this.state,i=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAt(r);s.elementType=i,this.expect(3),i=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAt(r);s.objectType=i,s.indexType=this.tsParseType(),this.expect(3),i=this.finishNode(s,"TSIndexedAccessType")}return i}tsParseTypeOperator(){let r=this.startNode(),i=this.state.value;return this.next(),r.operator=i,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),i==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(jc.UnexpectedReadonly,r)}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(i,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return bHr(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,i,s){let l=this.startNode(),d=this.eat(s),h=[];do h.push(i());while(this.eat(s));return h.length===1&&!d?h[0]:(l.types=h,this.finishNode(l,r))}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)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(fm(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,i=r.length;try{return this.parseObjectLike(8,!0),r.length===i}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,i=r.length;try{return super.parseBindingList(3,93,1),r.length===i}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let i=this.startNode();this.expect(r);let s=this.startNode(),l=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(l&&this.match(78)){let S=this.tsParseThisTypeOrThisTypePredicate();return S.type==="TSThisType"?(s.parameterName=S,s.asserts=!0,s.typeAnnotation=null,S=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(S,s),S.asserts=!0),i.typeAnnotation=S,this.finishNode(i,"TSTypeAnnotation")}let d=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!d)return l?(s.parameterName=this.parseIdentifier(),s.asserts=l,s.typeAnnotation=null,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,i);let h=this.tsParseTypeAnnotation(!1);return s.parameterName=d,s.typeAnnotation=h,s.asserts=l,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;return this.next(),!fm(this.state.type)&&!this.match(78)?!1:(r&&this.raise(xn.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,i=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),i.typeAnnotation=this.tsParseType()}),this.finishNode(i,"TSTypeAnnotation")}tsParseType(){oRt(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let i=this.startNodeAtNode(r);return i.checkType=r,i.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),i.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),i.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(i,"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(jc.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let i=this.state.startLoc,s=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let l=super.parseExprSubscripts();hZe(l)||this.raise(jc.InvalidHeritageClauseType,l.loc.start,{token:r});let d=r==="extends"?"TSInterfaceHeritage":"TSClassImplements";if(l.type==="TSInstantiationExpression")return l.type=d,l;let h=this.startNodeAtNode(l);return h.expression=l,(this.match(47)||this.match(51))&&(h.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(h,d)}});return s.length||this.raise(jc.EmptyHeritageClauseType,i,{token:r}),s}tsParseInterfaceDeclaration(r,i={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),i.declare&&(r.declare=!0),fm(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(jc.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let s=this.startNode();return s.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(s,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInTopLevelContext(r){if(this.curContext()!==kg.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}tsInType(r){let i=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=i}}tsInDisallowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsInAllowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,i={}){return i.const&&(r.const=!0),i.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),r.body=this.tsParseEnumBody(),this.finishNode(r,"TSEnumDeclaration")}tsParseEnumBody(){let r=this.startNode();return this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,i=!1){return r.id=this.tsParseEntityName(1),r.id.type==="Identifier"&&this.checkIdentifier(r.id,1024),this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit(),this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.kind="global",r.id=this.parseIdentifier()):this.match(134)?(r.kind="module",r.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,i,s){r.id=i||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let l=this.tsParseModuleReference();return r.importKind==="type"&&l.type!=="TSExternalModuleReference"&&this.raise(jc.ImportAliasHasImportType,l),r.moduleReference=l,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let i=this.state.clone(),s=r();return this.state=i,s}tsTryParseAndCatch(r){let i=this.tryParse(s=>r()||s());if(!(i.aborted||!i.node))return i.error&&(this.state=i.failState),i.node}tsTryParse(r){let i=this.state.clone(),s=r();if(s!==void 0&&s!==!1)return s;this.state=i}tsTryParseDeclare(r){if(this.isLineTerminator())return;let i=this.state.type;return this.tsInAmbientContext(()=>{switch(i){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(jc.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(jc.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.next(),this.parseVarStatement(r,"await using",!0);break;case 129:{let s=this.tsParseInterfaceDeclaration(r,{declare:!0});if(s)return s}default:if(fm(i))return this.tsParseDeclaration(r,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(r,i,s,l){switch(i){case 124:if(this.tsCheckLineTerminator(s)&&(this.match(80)||fm(this.state.type)))return this.tsParseAbstractDeclaration(r,l);break;case 127:if(this.tsCheckLineTerminator(s)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(fm(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case 128:if(this.tsCheckLineTerminator(s)&&fm(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case 130:if(this.tsCheckLineTerminator(s)&&fm(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let s=this.tsTryParseAndCatch(()=>{let l=this.startNodeAt(r);return l.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(l),l.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),l});if(this.state.maybeInArrowParameters=i,!!s)return super.parseArrowExpression(s,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(jc.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===kg.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return xHr(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(r,i){let s=i.length?i[0].loc.start:this.state.startLoc,l={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},l);let d=l.accessibility,h=l.override,S=l.readonly;!(r&4)&&(d||S||h)&&this.raise(jc.UnexpectedParameterModifier,s);let b=this.parseMaybeDefault();r&2&&this.parseFunctionParamType(b);let A=this.parseMaybeDefault(b.loc.start,b);if(d||S||h){let L=this.startNodeAt(s);return i.length&&(L.decorators=i),d&&(L.accessibility=d),S&&(L.readonly=S),h&&(L.override=h),A.type!=="Identifier"&&A.type!=="AssignmentPattern"&&this.raise(jc.UnsupportedParameterPropertyKind,L),L.parameter=A,this.finishNode(L,"TSParameterProperty")}return i.length&&(b.decorators=i),A}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let i of r.params)i.type!=="Identifier"&&i.optional&&!this.state.isAmbientContext&&this.raise(jc.PatternIsOptional,i)}setArrowFunctionParameters(r,i,s){super.setArrowFunctionParameters(r,i,s),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,i,s=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let l=i==="FunctionDeclaration"?"TSDeclareFunction":i==="ClassMethod"||i==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return l&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,l):l==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(jc.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,l,s):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,i,s))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(i=>{i?.type==="TSTypeCastExpression"&&this.raise(jc.UnexpectedTypeAnnotation,i.typeAnnotation)})}toReferencedList(r,i){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,i,s){let l=super.parseArrayLike(r,i,s);return l.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(l.elements),l}parseSubscript(r,i,s,l){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let h=this.startNodeAt(i);return h.expression=r,this.finishNode(h,"TSNonNullExpression")}let d=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return l.stop=!0,r;l.optionalChainMember=d=!0,this.next()}if(this.match(47)||this.match(51)){let h,S=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(r)){let V=this.tsTryParseGenericAsyncArrowFunction(i);if(V)return l.stop=!0,V}let b=this.tsParseTypeArgumentsInExpression();if(!b)return;if(d&&!this.match(10)){h=this.state.curPosition();return}if(pZe(this.state.type)){let V=super.parseTaggedTemplateExpression(r,i,l);return V.typeArguments=b,V}if(!s&&this.eat(10)){let V=this.startNodeAt(i);return V.callee=r,V.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(V.arguments),V.typeArguments=b,l.optionalChainMember&&(V.optional=d),this.finishCallExpression(V,l.optionalChainMember)}let A=this.state.type;if(A===48||A===52||A!==10&&xpe(A)&&!this.hasPrecedingLineBreak())return;let L=this.startNodeAt(i);return L.expression=r,L.typeArguments=b,this.finishNode(L,"TSInstantiationExpression")});if(h&&this.unexpected(h,10),S)return S.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(jc.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(S.expression=super.stopParseSubscript(r,l))),S}return super.parseSubscript(r,i,s,l)}parseNewCallee(r){super.parseNewCallee(r);let{callee:i}=r;i.type==="TSInstantiationExpression"&&!i.extra?.parenthesized&&(r.typeArguments=i.typeArguments,r.callee=i.expression)}parseExprOp(r,i,s){let l;if(DCe(58)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(l=this.isContextual(120)))){let d=this.startNodeAt(i);return d.expression=r,d.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(l&&this.raise(xn.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(d,l?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(d,i,s)}return super.parseExprOp(r,i,s)}checkReservedWord(r,i,s,l){this.state.isAmbientContext||super.checkReservedWord(r,i,s,l)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(jc.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let i=this.lookaheadCharCode();return r?i===123||i===42:i!==61}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,l){super.applyImportPhase(r,i,s,l),i?r.exportKind=s==="type"?"type":"value":r.importKind=s==="type"||s==="typeof"?s:"value"}parseImport(r){if(this.match(134))return r.importKind="value",super.parseImport(r);let i;if(fm(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let s=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,s);i=super.parseImportSpecifiersAndAfter(r,s)}else i=super.parseImport(r);return i.importKind==="type"&&i.specifiers.length>1&&i.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(jc.TypeImportCannotSpecifyDefaultAndNamed,i),i}parseExport(r,i){if(this.match(83)){let s=this.startNode();this.next();let l=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?l=this.parseMaybeImportPhase(s,!1):s.importKind="value";let d=this.tsParseImportEqualsDeclaration(s,l,!0);return r.attributes=[],r.declaration=d,r.exportKind="value",r.source=null,r.specifiers=[],this.finishNode(r,"ExportNamedDeclaration")}else if(this.eat(29)){let s=r;return s.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}else if(this.eatContextual(93)){let s=r;return this.expectContextual(128),s.id=this.parseIdentifier(),this.semicolon(),this.finishNode(s,"TSNamespaceExportDeclaration")}else return super.parseExport(r,i)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,i,s=!1){let{isAmbientContext:l}=this.state,d=super.parseVarStatement(r,i,s||l);if(!l)return d;if(!r.declare&&(i==="using"||i==="await using"))return this.raiseOverwrite(jc.UsingDeclarationInAmbientContext,r,i),d;for(let{id:h,init:S}of d.declarations)S&&(i==="var"||i==="let"||h.typeAnnotation?this.raise(jc.InitializerNotAllowedInAmbientContext,S):yKr(S,this.hasPlugin("estree"))||this.raise(jc.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,S));return d}parseStatementContent(r,i){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let s=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(s,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let s=this.state.type,l=this.startNode();this.next();let d=s===125?this.tsTryParseDeclare(l):this.tsParseAbstractDeclaration(l,i);return d?(s===125&&(d.declare=!0),d):(l.expression=this.createIdentifier(this.startNodeAt(l.loc.start),s===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(l,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let s=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(s)}break}case 129:{let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let s=this.startNode();return this.next(),this.tsParseDeclaration(s,127,!1,i)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let s=this.startNode();return this.next(),this.tsParseDeclaration(s,128,!1,i)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let s=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(s)}break}}return super.parseStatementContent(r,i)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,i){return i.some(s=>aRt(s)?r.accessibility===s:!!r[s])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,i,s){let l=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:l,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:jc.InvalidModifierOnTypeParameterPositions},i);let d=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(i,l)&&this.raise(jc.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,i)):this.parseClassMemberWithIsStatic(r,i,s,!!i.static)};i.declare?this.tsInAmbientContext(d):d()}parseClassMemberWithIsStatic(r,i,s,l){let d=this.tsTryParseIndexSignature(i);if(d){r.body.push(d),i.abstract&&this.raise(jc.IndexSignatureHasAbstract,i),i.accessibility&&this.raise(jc.IndexSignatureHasAccessibility,i,{modifier:i.accessibility}),i.declare&&this.raise(jc.IndexSignatureHasDeclare,i),i.override&&this.raise(jc.IndexSignatureHasOverride,i);return}!this.state.inAbstractClass&&i.abstract&&this.raise(jc.NonAbstractClassHasAbstractMethod,i),i.override&&(s.hadSuperClass||this.raise(jc.OverrideNotInSubClass,i)),super.parseClassMemberWithIsStatic(r,i,s,l)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(jc.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(jc.ClassMethodHasDeclare,r)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let l=this.lookaheadCharCode();if(l===44||l===61||l===58||l===41)return this.setOptionalParametersError(s),r}return super.parseConditional(r,i,s)}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let l=this.startNodeAt(i);return l.expression=r,l.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(l,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let i=this.state.startLoc,s=this.eatContextual(125);if(s&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(jc.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let l=fm(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return l?((l.type==="TSInterfaceDeclaration"||l.type==="TSTypeAliasDeclaration"||s)&&(r.exportKind="type"),s&&l.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(l,i),l.declare=!0),l):null}parseClassId(r,i,s,l){if((!i||s)&&this.isContextual(113))return;super.parseClassId(r,i,s,r.declare?1024:8331);let d=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);d&&(r.typeParameters=d)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let i=this.tsTryParseTypeAnnotation();i&&(r.typeAnnotation=i)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(jc.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:i}=r;this.raise(jc.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:i.type==="Identifier"&&!r.computed?i.name:`[${this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end))}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(jc.PrivateElementHasAbstract,r),r.accessibility&&this.raise(jc.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(jc.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,i,s,l,d,h){let S=this.tsTryParseTypeParameters(this.tsParseConstModifier);S&&d&&this.raise(jc.ConstructorHasTypeParameters,S);let{declare:b=!1,kind:A}=i;b&&(A==="get"||A==="set")&&this.raise(jc.DeclareAccessor,i,{kind:A}),S&&(i.typeParameters=S),super.pushClassMethod(r,i,s,l,d,h)}pushClassPrivateMethod(r,i,s,l){let d=this.tsTryParseTypeParameters(this.tsParseConstModifier);d&&(i.typeParameters=d),super.pushClassPrivateMethod(r,i,s,l)}declareClassPrivateMethodInScope(r,i){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&r.value.body==null||super.declareClassPrivateMethodInScope(r,i))}parseClassSuper(r){super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeArguments=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,i,s,l,d,h,S){let b=this.tsTryParseTypeParameters(this.tsParseConstModifier);return b&&(r.typeParameters=b),super.parseObjPropValue(r,i,s,l,d,h,S)}parseFunctionParams(r,i){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(r.typeParameters=s),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let s=this.tsTryParseTypeAnnotation();s&&(r.id.typeAnnotation=s,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,i)}parseMaybeAssign(r,i){let s,l,d;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(s=this.state.clone(),l=this.tryParse(()=>super.parseMaybeAssign(r,i),s),!l.error)return l.node;let{context:b}=this.state,A=b[b.length-1];(A===kg.j_oTag||A===kg.j_expr)&&b.pop()}if(!l?.error&&!this.match(47))return super.parseMaybeAssign(r,i);(!s||s===this.state)&&(s=this.state.clone());let h,S=this.tryParse(b=>{h=this.tsParseTypeParameters(this.tsParseConstModifier);let A=super.parseMaybeAssign(r,i);if((A.type!=="ArrowFunctionExpression"||A.extra?.parenthesized)&&b(),h?.params.length!==0&&this.resetStartLocationFromNode(A,h),A.typeParameters=h,this.hasPlugin("jsx")&&A.typeParameters.params.length===1&&!A.typeParameters.extra?.trailingComma){let L=A.typeParameters.params[0];L.constraint||this.raise(jc.SingleTypeParameterWithoutTrailingComma,eI(L.loc.end,1),{typeParameterName:L.name.name})}return A},s);if(!S.error&&!S.aborted)return h&&this.reportReservedArrowTypeParam(h),S.node;if(!l&&(oRt(!this.hasPlugin("jsx")),d=this.tryParse(()=>super.parseMaybeAssign(r,i),s),!d.error))return d.node;if(l?.node)return this.state=l.failState,l.node;if(S.node)return this.state=S.failState,h&&this.reportReservedArrowTypeParam(h),S.node;if(d?.node)return this.state=d.failState,d.node;throw l?.error||S.error||d?.error}reportReservedArrowTypeParam(r){r.params.length===1&&!r.params[0].constraint&&!r.extra?.trailingComma&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(jc.ReservedArrowTypeParam,r)}parseMaybeUnary(r,i){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(s=>{let l=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&s(),l});if(i.aborted)return;i.thrown||(i.error&&(this.state=i.failState),r.returnType=i.node)}return super.parseArrow(r)}parseFunctionParamType(r){this.eat(17)&&(r.optional=!0);let i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.resetEndLocation(r),r}isAssignable(r,i){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,i);case"TSParameterProperty":return!0;default:return super.isAssignable(r,i)}}toAssignable(r,i=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,i);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":i?this.expressionScope.recordArrowParameterBindingError(jc.UnexpectedTypeCastInParameter,r):this.raise(jc.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,i);break;case"AssignmentExpression":!i&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,i)}}toAssignableParenthesizedExpression(r,i){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,i);break;default:super.toAssignable(r,i)}}checkToRestConversion(r,i){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,i)}}isValidLVal(r,i,s,l){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(l!==64||!s)&&["expression",!0];default:return super.isValidLVal(r,i,s,l)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r,i){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let l=super.parseMaybeDecoratorArguments(r,i);return l.typeArguments=s,l}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,i)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.startthis.isAssignable(i,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let i=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());i&&(r.typeArguments=i)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let i=super.getGetterSetterExpectedParamCount(r),s=this.getObjectOrClassMethodParams(r)[0];return s&&this.isThisParam(s)?i+1:i}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i,this.resetEndLocation(r)),r}tsInAmbientContext(r){let{isAmbientContext:i,strict:s}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=i,this.state.strict=s}}parseClass(r,i,s){let l=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,i,s)}finally{this.state.inAbstractClass=l}}tsParseAbstractDeclaration(r,i){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(i,this.parseClass(r,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(r.abstract=!0,this.raise(jc.NonClassMethodPropertyHasAbstractModifier,r),this.tsParseInterfaceDeclaration(r));throw this.unexpected(null,80)}parseMethod(r,i,s,l,d,h,S){let b=super.parseMethod(r,i,s,l,d,h,S);if((b.abstract||b.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?b.value:b).body){let{key:A}=b;this.raise(jc.AbstractMethodHasImplementation,b,{methodName:A.type==="Identifier"&&!b.computed?A.name:`[${this.input.slice(this.offsetToSourcePos(A.start),this.offsetToSourcePos(A.end))}]`})}return b}tsParseTypeParameterName(){return this.parseIdentifier()}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(r,i,s,l){return!i&&l?(this.parseTypeOnlyImportExportSpecifier(r,!1,s),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,i,s,l))}parseImportSpecifier(r,i,s,l,d){return!i&&l?(this.parseTypeOnlyImportExportSpecifier(r,!0,s),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,i,s,l,s?4098:4096))}parseTypeOnlyImportExportSpecifier(r,i,s){let l=i?"imported":"local",d=i?"local":"exported",h=r[l],S,b=!1,A=!0,L=h.loc.start;if(this.isContextual(93)){let j=this.parseIdentifier();if(this.isContextual(93)){let ie=this.parseIdentifier();R6(this.state.type)?(b=!0,h=j,S=i?this.parseIdentifier():this.parseModuleExportName(),A=!1):(S=ie,A=!1)}else R6(this.state.type)?(A=!1,S=i?this.parseIdentifier():this.parseModuleExportName()):(b=!0,h=j)}else R6(this.state.type)&&(b=!0,i?(h=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(h.name,h.loc.start,!0,!0)):h=this.parseModuleExportName());b&&s&&this.raise(i?jc.TypeModifierIsUsedInTypeImports:jc.TypeModifierIsUsedInTypeExports,L),r[l]=h,r[d]=S;let V=i?"importKind":"exportKind";r[V]=b?"type":"value",A&&this.eatContextual(93)&&(r[d]=i?this.parseIdentifier():this.parseModuleExportName()),r[d]||(r[d]=this.cloneIdentifier(r[l])),i&&this.checkIdentifier(r[d],b?4098:4096)}fillOptionalPropertiesForTSESLint(r){switch(r.type){case"ExpressionStatement":r.directive??(r.directive=void 0);return;case"RestElement":r.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":r.decorators??(r.decorators=[]),r.optional??(r.optional=!1),r.typeAnnotation??(r.typeAnnotation=void 0);return;case"TSParameterProperty":r.accessibility??(r.accessibility=void 0),r.decorators??(r.decorators=[]),r.override??(r.override=!1),r.readonly??(r.readonly=!1),r.static??(r.static=!1);return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":r.declare??(r.declare=!1),r.returnType??(r.returnType=void 0),r.typeParameters??(r.typeParameters=void 0);return;case"Property":r.optional??(r.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":r.optional??(r.optional=!1);case"TSIndexSignature":r.accessibility??(r.accessibility=void 0),r.readonly??(r.readonly=!1),r.static??(r.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":r.declare??(r.declare=!1),r.definite??(r.definite=!1),r.readonly??(r.readonly=!1),r.typeAnnotation??(r.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":r.accessibility??(r.accessibility=void 0),r.decorators??(r.decorators=[]),r.override??(r.override=!1),r.optional??(r.optional=!1);return;case"ClassExpression":r.id??(r.id=null);case"ClassDeclaration":r.abstract??(r.abstract=!1),r.declare??(r.declare=!1),r.decorators??(r.decorators=[]),r.implements??(r.implements=[]),r.superTypeArguments??(r.superTypeArguments=void 0),r.typeParameters??(r.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":r.declare??(r.declare=!1);return;case"VariableDeclarator":r.definite??(r.definite=!1);return;case"TSEnumDeclaration":r.const??(r.const=!1),r.declare??(r.declare=!1);return;case"TSEnumMember":r.computed??(r.computed=!1);return;case"TSImportType":r.qualifier??(r.qualifier=null),r.options??(r.options=null),r.typeArguments??(r.typeArguments=null);return;case"TSInterfaceDeclaration":r.declare??(r.declare=!1),r.extends??(r.extends=[]);return;case"TSMappedType":r.optional??(r.optional=!1),r.readonly??(r.readonly=void 0);return;case"TSModuleDeclaration":r.declare??(r.declare=!1),r.global??(r.global=r.kind==="global");return;case"TSTypeParameter":r.const??(r.const=!1),r.in??(r.in=!1),r.out??(r.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(r,i){if(l8(r)){if(aZe.lastIndex=i,aZe.test(this.input)){let s=this.codePointAtPos(aZe.lastIndex);if(!cV(s)&&s!==92)return!1}return!0}else return r===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let r=this.nextTokenInLineStart(),i=this.codePointAtPos(r);return this.chStartsBindingIdentifierAndNotRelationalOperator(i,r)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let r=this.nextTokenInLineStart(),i=this.codePointAtPos(r);return this.chStartsBindingIdentifier(i,r)||i===34||i===39}};function gKr(e){if(e.type!=="MemberExpression")return!1;let{computed:r,property:i}=e;return r&&i.type!=="StringLiteral"&&(i.type!=="TemplateLiteral"||i.expressions.length>0)?!1:BRt(e.object)}function yKr(e,r){let{type:i}=e;if(e.extra?.parenthesized)return!1;if(r){if(i==="Literal"){let{value:s}=e;if(typeof s=="string"||typeof s=="boolean")return!0}}else if(i==="StringLiteral"||i==="BooleanLiteral")return!0;return!!(jRt(e,r)||vKr(e,r)||i==="TemplateLiteral"&&e.expressions.length===0||gKr(e))}function jRt(e,r){return r?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function vKr(e,r){if(e.type==="UnaryExpression"){let{operator:i,argument:s}=e;if(i==="-"&&jRt(s,r))return!0}return!1}function BRt(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:BRt(e.object)}var sRt=c8`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),SKr=e=>class extends e{parsePlaceholder(r){if(this.match(133)){let i=this.startNode();return this.next(),this.assertNoSpace(),i.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(i,r)}}finishPlaceholder(r,i){let s=r;return(!s.expectedNode||!s.type)&&(s=this.finishNode(s,"Placeholder")),s.expectedNode=i,s}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,i,s,l){r!==void 0&&super.checkReservedWord(r,i,s,l)}cloneIdentifier(r){let i=super.cloneIdentifier(r);return i.type==="Placeholder"&&(i.expectedNode=r.expectedNode),i}cloneStringLiteral(r){return r.type==="Placeholder"?this.cloneIdentifier(r):super.cloneStringLiteral(r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,i,s,l){return r==="Placeholder"||super.isValidLVal(r,i,s,l)}toAssignable(r,i){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,i)}chStartsBindingIdentifier(r,i){if(super.chStartsBindingIdentifier(r,i))return!0;let s=this.nextTokenStart();return this.input.charCodeAt(s)===37&&this.input.charCodeAt(s+1)===37}verifyBreakContinue(r,i){r.label&&r.label.type==="Placeholder"||super.verifyBreakContinue(r,i)}parseExpressionStatement(r,i){if(i.type!=="Placeholder"||i.extra?.parenthesized)return super.parseExpressionStatement(r,i);if(this.match(14)){let l=r;return l.label=this.finishPlaceholder(i,"Identifier"),this.next(),l.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(l,"LabeledStatement")}this.semicolon();let s=r;return s.name=i.name,this.finishPlaceholder(s,"Statement")}parseBlock(r,i,s){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,i,s)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,i,s){let l=i?"ClassDeclaration":"ClassExpression";this.next();let d=this.state.strict,h=this.parsePlaceholder("Identifier");if(h)if(this.match(81)||this.match(133)||this.match(5))r.id=h;else{if(s||!i)return r.id=null,r.body=this.finishPlaceholder(h,"ClassBody"),this.finishNode(r,l);throw this.raise(sRt.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(r,i,s);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,d),this.finishNode(r,l)}parseExport(r,i){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(r,i);let l=r;if(!this.isContextual(98)&&!this.match(12))return l.specifiers=[],l.source=null,l.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(l,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let d=this.startNode();return d.exported=s,l.specifiers=[this.finishNode(d,"ExportDefaultSpecifier")],super.parseExport(l,i)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(eB(133),this.nextTokenStartSince(r+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,i){return r.specifiers?.length?!0:super.maybeParseExportDefaultSpecifier(r,i)}checkExport(r){let{specifiers:i}=r;i?.length&&(r.specifiers=i.filter(s=>s.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=i}parseImport(r){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(i,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let s=this.startNodeAtNode(i);return s.local=i,r.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(sRt.UnexpectedSpace,this.state.lastTokEndLoc)}},bKr=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,i=this.startNode();if(this.next(),fm(this.state.type)){let s=this.parseIdentifierName(),l=this.createIdentifier(i,s);if(this.castNodeTo(l,"V8IntrinsicIdentifier"),this.match(10))return l}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}},cRt=["fsharp","hack"],lRt=["^^","@@","^","%","#"];function xKr(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let r=e.get("decorators").decoratorsBeforeExport;if(r!=null&&typeof r!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let i=e.get("decorators").allowCallParenthesized;if(i!=null&&typeof i!="boolean")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")){let r=e.get("pipelineOperator").proposal;if(!cRt.includes(r)){let i=cRt.map(s=>`"${s}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${i}.`)}if(r==="hack"){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.");let i=e.get("pipelineOperator").topicToken;if(!lRt.includes(i)){let s=lRt.map(l=>`"${l}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${s}.`)}}}if(e.has("moduleAttributes"))throw new Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(e.has("importAssertions"))throw new Error("`importAssertions` has been removed in Babel 8, please use import attributes instead. To use the non-standard `assert` syntax you can enable the `deprecatedImportAssert` parser plugin.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax)throw new Error("The 'importAttributes' plugin has been removed in Babel 8. If you need to enable support for the deprecated `assert` syntax, you can enable the `deprecatedImportAssert` parser plugin.");if(e.has("recordAndTuple"))throw new Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let r=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw r.missingPlugins="doExpressions",r}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")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")&&e.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");{if(e.has("decimal"))throw new Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("importReflection"))throw new Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}}var $Rt={estree:pHr,jsx:JHr,flow:UHr,typescript:hKr,v8intrinsic:bKr,placeholders:SKr},TKr=Object.keys($Rt),EKr=class extends _Kr{checkProto(e,r,i,s){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return i;let l=e.key;return(l.type==="Identifier"?l.name:l.value)==="__proto__"?r?(this.raise(xn.RecordNoProto,l),!0):(i&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=l.loc.start):this.raise(xn.DuplicateProto,l)),!0):i}shouldExitDescending(e,r){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===r}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(xn.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(xn.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&256&&(e.tokens=this.tokens),e}parseExpression(e,r){return e?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(e){let r=this.state.startLoc,i=this.parseMaybeAssign(e);if(this.match(12)){let s=this.startNodeAt(r);for(s.expressions=[i];this.eat(12);)s.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(e,r){return this.disallowInAnd(()=>this.parseMaybeAssign(e,r))}parseMaybeAssignAllowIn(e,r){return this.allowInAnd(()=>this.parseMaybeAssign(e,r))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,r){let i=this.state.startLoc,s=this.isContextual(108);if(s&&this.prodParam.hasYield){this.next();let S=this.parseYield(i);return r&&(S=r.call(this,S,i)),S}let l;e?l=!1:(e=new wCe,l=!0);let{type:d}=this.state;(d===10||fm(d))&&(this.state.potentialArrowAt=this.state.start);let h=this.parseMaybeConditional(e);if(r&&(h=r.call(this,h,i)),hHr(this.state.type)){let S=this.startNodeAt(i),b=this.state.value;if(S.operator=b,this.match(29)){this.toAssignable(h,!0),S.left=h;let A=i.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=A&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=A&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=A&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),e.voidPatternLoc!=null&&e.voidPatternLoc.index>=A&&(e.voidPatternLoc=null)}else S.left=h;return this.next(),S.right=this.parseMaybeAssign(),this.checkLVal(h,this.finishNode(S,"AssignmentExpression"),void 0,void 0,void 0,void 0,b==="||="||b==="&&="||b==="??="),S}else l&&this.checkExpressionErrors(e,!0);if(s){let{type:S}=this.state;if((this.hasPlugin("v8intrinsic")?xpe(S):xpe(S)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(xn.YieldNotInGeneratorFunction,i),this.parseYield(i)}return h}parseMaybeConditional(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprOps(e);return this.shouldExitDescending(s,i)?s:this.parseConditional(s,r,e)}parseConditional(e,r,i){if(this.eat(17)){let s=this.startNodeAt(r);return s.test=e,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(s,i)?s:this.parseExprOp(s,r,-1)}parseExprOp(e,r,i){if(this.isPrivateName(e)){let l=this.getPrivateNameSV(e);(i>=DCe(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(xn.PrivateInExpectedIn,e,{identifierName:l}),this.classScope.usePrivateName(l,e.loc.start)}let s=this.state.type;if(yHr(s)&&(this.prodParam.hasIn||!this.match(58))){let l=DCe(s);if(l>i){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,r)}let d=this.startNodeAt(r);d.left=e,d.operator=this.state.value;let h=s===41||s===42,S=s===40;S&&(l=DCe(42)),this.next(),d.right=this.parseExprOpRightExpr(s,l);let b=this.finishNode(d,h||S?"LogicalExpression":"BinaryExpression"),A=this.state.type;if(S&&(A===41||A===42)||h&&A===40)throw this.raise(xn.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(b,r,i)}}return e}parseExprOpRightExpr(e,r){switch(this.state.startLoc,e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}default:return this.parseExprOpBaseRightExpr(e,r)}}parseExprOpBaseRightExpr(e,r){let i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,THr(e)?r-1:r)}parseHackPipeBody(){let{startLoc:e}=this.state,r=this.parseMaybeAssign();return iHr.has(r.type)&&!r.extra?.parenthesized&&this.raise(xn.PipeUnparenthesizedBody,e,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(xn.PipeTopicUnused,e),r}checkExponentialAfterUnary(e){this.match(57)&&this.raise(xn.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,r){let i=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();let S=this.parseAwait(i);return r||this.checkExponentialAfterUnary(S),S}let l=this.match(34),d=this.startNode();if(SHr(this.state.type)){d.operator=this.state.value,d.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let S=this.match(89);if(this.next(),d.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&S){let b=d.argument;b.type==="Identifier"?this.raise(xn.StrictDelete,d):this.hasPropertyAsPrivateName(b)&&this.raise(xn.DeletePrivateField,d)}if(!l)return r||this.checkExponentialAfterUnary(d),this.finishNode(d,"UnaryExpression")}let h=this.parseUpdate(d,l,e);if(s){let{type:S}=this.state;if((this.hasPlugin("v8intrinsic")?xpe(S):xpe(S)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(xn.AwaitNotInAsyncContext,i),this.parseAwait(i)}return h}parseUpdate(e,r,i){if(r){let d=e;return this.checkLVal(d.argument,this.finishNode(d,"UpdateExpression")),e}let s=this.state.startLoc,l=this.parseExprSubscripts(i);if(this.checkExpressionErrors(i,!1))return l;for(;vHr(this.state.type)&&!this.canInsertSemicolon();){let d=this.startNodeAt(s);d.operator=this.state.value,d.prefix=!1,d.argument=l,this.next(),this.checkLVal(l,l=this.finishNode(d,"UpdateExpression"))}return l}parseExprSubscripts(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprAtom(e);return this.shouldExitDescending(s,i)?s:this.parseSubscripts(s,r)}parseSubscripts(e,r,i){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,r,i,s),s.maybeAsyncArrow=!1;while(!s.stop);return e}parseSubscript(e,r,i,s){let{type:l}=this.state;if(!i&&l===15)return this.parseBind(e,r,i,s);if(pZe(l))return this.parseTaggedTemplateExpression(e,r,s);let d=!1;if(l===18){if(i&&(this.raise(xn.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(e,s);s.optionalChainMember=d=!0,this.next()}if(!i&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,r,s,d);{let h=this.eat(0);return h||d||this.eat(16)?this.parseMember(e,r,s,h,d):this.stopParseSubscript(e,s)}}stopParseSubscript(e,r){return r.stop=!0,e}parseMember(e,r,i,s,l){let d=this.startNodeAt(r);return d.object=e,d.computed=s,s?(d.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type==="Super"&&this.raise(xn.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),d.property=this.parsePrivateName()):d.property=this.parseIdentifier(!0),i.optionalChainMember?(d.optional=l,this.finishNode(d,"OptionalMemberExpression")):this.finishNode(d,"MemberExpression")}parseBind(e,r,i,s){let l=this.startNodeAt(r);return l.object=e,this.next(),l.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(l,"BindExpression"),r,i)}parseCoverCallAndAsyncArrowHead(e,r,i,s){let l=this.state.maybeInArrowParameters,d=null;this.state.maybeInArrowParameters=!0,this.next();let h=this.startNodeAt(r);h.callee=e;let{maybeAsyncArrow:S,optionalChainMember:b}=i;S&&(this.expressionScope.enter(lKr()),d=new wCe),b&&(h.optional=s),s?h.arguments=this.parseCallExpressionArguments():h.arguments=this.parseCallExpressionArguments(e.type!=="Super",h,d);let A=this.finishCallExpression(h,b);return S&&this.shouldParseAsyncArrow()&&!s?(i.stop=!0,this.checkDestructuringPrivate(d),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),A=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),A)):(S&&(this.checkExpressionErrors(d,!0),this.expressionScope.exit()),this.toReferencedArguments(A)),this.state.maybeInArrowParameters=l,A}toReferencedArguments(e,r){this.toReferencedListDeep(e.arguments,r)}parseTaggedTemplateExpression(e,r,i){let s=this.startNodeAt(r);return s.tag=e,s.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(xn.OptionalChainingNoTemplate,r),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,r){if(e.callee.type==="Import")if(e.arguments.length===0||e.arguments.length>2)this.raise(xn.ImportCallArity,e);else for(let i of e.arguments)i.type==="SpreadElement"&&this.raise(xn.ImportCallSpreadArgument,i);return this.finishNode(e,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,r,i){let s=[],l=!0,d=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(l)l=!1;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}s.push(this.parseExprListItem(11,!1,i,e))}return this.state.inFSharpPipelineDirectBody=d,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,r){return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(e,r.arguments,!0,r.extra?.trailingCommaLoc),r.innerComments&&PY(e,r.innerComments),r.callee.trailingComments&&PY(e,r.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let r,i=null,{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(r):this.match(10)?this.optionFlags&512?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(xn.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"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:{let l=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(l)}case 0:return this.parseArrayLike(3,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:i=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(i,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let l=r.callee=this.parseNoCallExpr();if(l.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(xn.UnsupportedBind,l)}case 139:return this.raise(xn.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:{let l=this.getPluginOption("pipelineOperator","proposal");if(l)return this.parseTopicReference(l);throw this.unexpected()}case 47:{let l=this.input.codePointAt(this.nextTokenStart());throw l8(l)||l===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(fm(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let l=this.state.potentialArrowAt===this.state.start,d=this.state.containsEsc,h=this.parseIdentifier();if(!d&&h.name==="async"&&!this.canInsertSemicolon()){let{type:S}=this.state;if(S===68)return this.resetPreviousNodeTrailingComments(h),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(h));if(fm(S))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(h)):h;if(S===90)return this.resetPreviousNodeTrailingComments(h),this.parseDo(this.startNodeAtNode(h),!0)}return l&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(h),[h],!1)):h}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,r){let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.state.type=e,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=eI(this.state.endLoc,-1),this.parseTopicReference(i);throw this.unexpected()}parseTopicReference(e){let r=this.startNode(),i=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(r,i,e,s)}finishTopicReference(e,r,i,s){if(this.testTopicReferenceConfiguration(i,r,s))return this.topicReferenceIsAllowedInCurrentContext()||this.raise(xn.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(e,"TopicReference");throw this.raise(xn.PipeTopicUnconfiguredToken,r,{token:eB(s)})}testTopicReferenceConfiguration(e,r,i){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:eB(i)}]);case"smart":return i===27;default:throw this.raise(xn.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(ACe(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(xn.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,r,!0)}parseDo(e,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),e.async=r,this.next();let i=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=i,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.raise(xn.SuperNotAllowed,e):this.scope.allowSuper||this.raise(xn.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(xn.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),r=this.startNodeAt(eI(this.state.startLoc,1)),i=this.state.value;return this.next(),e.id=this.createIdentifier(r,i),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,r,"sent")}return this.parseFunction(e)}parseMetaProperty(e,r,i){e.meta=r;let s=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==i||s)&&this.raise(xn.UnsupportedMetaProperty,e.property,{target:r.name,onlyValidPropertyName:i}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let r=this.isContextual(105);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=r?"source":"defer",this.parseImportCall(e)}else{let r=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(xn.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,r,"meta")}}parseLiteralAtNode(e,r,i){return this.addExtra(i,"rawValue",e),this.addExtra(i,"raw",this.input.slice(this.offsetToSourcePos(i.start),this.state.end)),i.value=e,this.next(),this.finishNode(i,r)}parseLiteral(e,r){let i=this.startNode();return this.parseLiteralAtNode(e,r,i)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){{let r;try{r=BigInt(e)}catch{r=null}return this.parseLiteral(r,"BigIntLiteral")}}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=e.pattern,r.flags=e.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(e){let r=this.startNode();return r.value=e,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let r=this.state.startLoc,i;this.next(),this.expressionScope.enter(cKr());let s=this.state.maybeInArrowParameters,l=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let d=this.state.startLoc,h=[],S=new wCe,b=!0,A,L;for(;!this.match(11);){if(b)b=!1;else if(this.expect(12,S.optionalParametersLoc===null?null:S.optionalParametersLoc),this.match(11)){L=this.state.startLoc;break}if(this.match(21)){let ie=this.state.startLoc;if(A=this.state.startLoc,h.push(this.parseParenItem(this.parseRestBinding(),ie)),!this.checkCommaAfterRest(41))break}else h.push(this.parseMaybeAssignAllowInOrVoidPattern(11,S,this.parseParenItem))}let V=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=l;let j=this.startNodeAt(r);return e&&this.shouldParseArrow(h)&&(j=this.parseArrow(j))?(this.checkDestructuringPrivate(S),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(j,h,!1),j):(this.expressionScope.exit(),h.length||this.unexpected(this.state.lastTokStartLoc),L&&this.unexpected(L),A&&this.unexpected(A),this.checkExpressionErrors(S,!0),this.toReferencedListDeep(h,!0),h.length>1?(i=this.startNodeAt(d),i.expressions=h,this.finishNode(i,"SequenceExpression"),this.resetEndLocation(i,V)):i=h[0],this.wrapParenthesis(r,i))}wrapParenthesis(e,r){if(!(this.optionFlags&1024))return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",e.index),this.takeSurroundingComments(r,e.index,this.state.lastTokEndLoc.index),r;let i=this.startNodeAt(e);return i.expression=r,this.finishNode(i,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,r){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let i=this.parseMetaProperty(e,r,"target");return this.scope.allowNewTarget||this.raise(xn.UnexpectedNewTarget,i),i}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),e.arguments=r}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let r=this.match(83),i=this.parseNoCallExpr();e.callee=i,r&&(i.type==="Import"||i.type==="ImportExpression")&&this.raise(xn.ImportCallNotNewExpression,i)}parseTemplateElement(e){let{start:r,startLoc:i,end:s,value:l}=this.state,d=r+1,h=this.startNodeAt(eI(i,1));l===null&&(e||this.raise(xn.InvalidEscapeSequenceTemplate,eI(this.state.firstInvalidTemplateEscapePos,1)));let S=this.match(24),b=S?-1:-2,A=s+b;h.value={raw:this.input.slice(d,A).replace(/\r\n?/g,` -`),cooked:l===null?null:l.slice(1,b)},h.tail=S,this.next();let L=this.finishNode(h,"TemplateElement");return this.resetEndLocation(L,eI(this.state.lastTokEndLoc,b)),L}parseTemplate(e){let r=this.startNode(),i=this.parseTemplateElement(e),s=[i],l=[];for(;!i.tail;)l.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(i=this.parseTemplateElement(e));return r.expressions=l,r.quasis=s,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,r,i,s){i&&this.expectPlugin("recordAndTuple");let l=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let d=!1,h=!0,S=this.startNode();for(S.properties=[],this.next();!this.match(e);){if(h)h=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(S);break}let A;r?A=this.parseBindingProperty():(A=this.parsePropertyDefinition(s),d=this.checkProto(A,i,d,s)),i&&!this.isObjectProperty(A)&&A.type!=="SpreadElement"&&this.raise(xn.InvalidRecordProperty,A),S.properties.push(A)}this.next(),this.state.inFSharpPipelineDirectBody=l;let b="ObjectExpression";return r?b="ObjectPattern":i&&(b="RecordExpression"),this.finishNode(S,b)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(xn.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let i=this.startNode(),s=!1,l=!1,d;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,e&&(d=this.state.startLoc);let h=this.eat(55);this.parsePropertyNamePrefixOperator(i);let S=this.state.containsEsc;if(this.parsePropertyName(i,e),!h&&!S&&this.maybeAsyncOrAccessorProp(i)){let{key:b}=i,A=b.name;A==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(b),h=this.eat(55),this.parsePropertyName(i)),(A==="get"||A==="set")&&(l=!0,this.resetPreviousNodeTrailingComments(b),i.kind=A,this.match(55)&&(h=!0,this.raise(xn.AccessorIsGenerator,this.state.curPosition(),{kind:A}),this.next()),this.parsePropertyName(i))}return this.parseObjPropValue(i,d,h,s,!1,l,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){let r=this.getGetterSetterExpectedParamCount(e),i=this.getObjectOrClassMethodParams(e);i.length!==r&&this.raise(e.kind==="get"?xn.BadGetterArity:xn.BadSetterArity,e),e.kind==="set"&&i[i.length-1]?.type==="RestElement"&&this.raise(xn.BadSetterRestParameter,e)}parseObjectMethod(e,r,i,s,l){if(l){let d=this.parseMethod(e,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(d),d}if(i||r||this.match(10))return s&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,r,i,!1,!1,"ObjectMethod")}parseObjectProperty(e,r,i,s){if(e.shorthand=!1,this.eat(14))return e.value=i?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(e);if(!e.computed&&e.key.type==="Identifier"){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),i)e.value=this.parseMaybeDefault(r,this.cloneIdentifier(e.key));else if(this.match(29)){let l=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=l):this.raise(xn.InvalidCoverInitializedName,l),e.value=this.parseMaybeDefault(r,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,r,i,s,l,d,h){let S=this.parseObjectMethod(e,i,s,l,d)||this.parseObjectProperty(e,r,l,h);return S||this.unexpected(),S}parsePropertyName(e,r){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:i,value:s}=this.state,l;if(R6(i))l=this.parseIdentifier(!0);else switch(i){case 135:l=this.parseNumericLiteral(s);break;case 134:l=this.parseStringLiteral(s);break;case 136:l=this.parseBigIntLiteral(s);break;case 139:{let d=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=d):this.raise(xn.UnexpectedPrivateField,d),l=this.parsePrivateName();break}default:this.unexpected()}e.key=l,i!==139&&(e.computed=!1)}}initFunction(e,r){e.id=null,e.generator=!1,e.async=r}parseMethod(e,r,i,s,l,d,h=!1){this.initFunction(e,i),e.generator=r,this.scope.enter(530|(h?576:0)|(l?32:0)),this.prodParam.enter(ACe(i,e.generator)),this.parseFunctionParams(e,s);let S=this.parseFunctionBodyAndFinish(e,d,!0);return this.prodParam.exit(),this.scope.exit(),S}parseArrayLike(e,r,i){r&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let l=this.startNode();return this.next(),l.elements=this.parseExprList(e,!r,i,l),this.state.inFSharpPipelineDirectBody=s,this.finishNode(l,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,r,i,s){this.scope.enter(518);let l=ACe(i,!1);!this.match(5)&&this.prodParam.hasIn&&(l|=8),this.prodParam.enter(l),this.initFunction(e,i);let d=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,r,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=d,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,r,i){this.toAssignableList(r,i,!1),e.params=r}parseFunctionBodyAndFinish(e,r,i=!1){return this.parseFunctionBody(e,!1,i),this.finishNode(e,r)}parseFunctionBody(e,r,i=!1){let s=r&&!this.match(5);if(this.expressionScope.enter(MRt()),s)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,r,!1);else{let l=this.state.strict,d=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,h=>{let S=!this.isSimpleParamList(e.params);h&&S&&this.raise(xn.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&e.key?e.key.loc.end:e);let b=!l&&this.state.strict;this.checkParams(e,!this.state.strict&&!r&&!i&&!S,r,b),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,b)}),this.prodParam.exit(),this.state.labels=d}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let r=0,i=e.length;r10||!OHr(e))){if(i&&IHr(e)){this.raise(xn.UnexpectedKeyword,r,{keyword:e});return}if((this.state.strict?s?PRt:wRt:ARt)(e,this.inModule)){this.raise(xn.UnexpectedReservedWord,r,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(xn.YieldBindingIdentifier,r);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(xn.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(xn.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(e==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(xn.ArgumentsInClass,r);return}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let r=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(xn.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(xn.ObsoleteAwaitStar,r),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||pZe(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(e){let r=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(xn.YieldInParameter,r);let i=!1,s=null;if(!this.hasPrecedingLineBreak())switch(i=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!i)break;default:s=this.parseMaybeAssign()}return r.delegate=i,r.argument=s,this.finishNode(r,"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(xn.ImportCallArity,e)}}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&e.type==="SequenceExpression"&&this.raise(xn.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(e,r){if(this.isSimpleReference(e)){let i=this.startNodeAt(r);return i.callee=e,this.finishNode(i,"PipelineBareFunction")}else{let i=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),i.expression=e,this.finishNode(i,"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(xn.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(xn.PipelineTopicUnused,e)}withTopicBindingContext(e){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(e){return e()}withSoloAwaitPermittingContext(e){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=r}}allowInAnd(e){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,e);return this.state.inFSharpPipelineDirectBody=i,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let i=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(r,8,"module")}finally{i()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");let r=this.startNode();return e!=null&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,r,i){if(r!=null&&this.match(88)){let s=this.lookaheadCharCode();if(s===44||s===(e===3?93:e===8?125:41)||s===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,i)}parsePropertyNamePrefixOperator(e){}},sZe={kind:1},kKr={kind:2},CKr=/[\uD800-\uDFFF]/u,cZe=/in(?:stanceof)?/y;function DKr(e,r,i){for(let s=0;s0)for(let[l,d]of Array.from(this.scope.undefinedExports))this.raise(xn.ModuleExportUndefined,d,{localName:l});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let s;return r===140?s=this.finishNode(e,"Program"):s=this.finishNodeAt(e,"Program",eI(this.state.startLoc,-1)),s}stmtToDirective(e){let r=this.castNodeTo(e,"Directive"),i=this.castNodeTo(e.expression,"DirectiveLiteral"),s=i.value,l=this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end)),d=i.value=l.slice(1,-1);return this.addExtra(i,"raw",l),this.addExtra(i,"rawValue",d),this.addExtra(i,"expressionValue",s),r.value=i,delete e.expression,r}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){let i=this.lookaheadCharCodeSince(e+2);if(i!==61&&i!==58&&i!==59)return!1}return!!(this.chStartsBindingIdentifier(r,e)||this.isUnparsedContextual(e,"void"))}nextTokenIsIdentifierOnSameLine(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return this.chStartsBindingIdentifier(r,e)}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let r=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(r,e))return!0}return!1}chStartsBindingIdentifier(e,r){if(l8(e)){if(cZe.lastIndex=r,cZe.test(this.input)){let i=this.codePointAtPos(cZe.lastIndex);if(!cV(i)&&i!==92)return!1}return!0}else return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),r=this.codePointAtPos(e);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return r===123||this.chStartsBindingIdentifier(r,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 r=0;return this.options.annexB&&!this.state.strict&&(r|=4,e&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(e,r)}parseStatementContent(e,r){let i=this.state.type,s=this.startNode(),l=!!(e&2),d=!!(e&4),h=e&1;switch(i){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;return d||this.raise(this.state.strict?xn.StrictFunction:this.options.annexB?xn.SloppyFunctionAnnexB:xn.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!l&&d);case 80:return l||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(this.isAwaitUsing())return this.allowsUsing()?l?this.recordAwaitIfAllowed()||this.raise(xn.AwaitUsingNotInAsyncContext,s):this.raise(xn.UnexpectedLexicalDeclaration,s):this.raise(xn.UnexpectedUsingDeclaration,s),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?l||this.raise(xn.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(xn.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let A=this.nextTokenStart(),L=this.codePointAtPos(A);if(L!==91&&(!l&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(L,A)&&L!==123))break}case 75:l||this.raise(xn.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let A=this.state.value;return this.parseVarStatement(s,A)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{let A=this.lookaheadCharCode();if(A===40||A===46)break}case 82:{!(this.optionFlags&8)&&!h&&this.raise(xn.UnexpectedImportExport,this.state.startLoc),this.next();let A;return i===83?A=this.parseImport(s):A=this.parseExport(s,r),this.assertModuleNodeAllowed(A),A}default:if(this.isAsyncFunction())return l||this.raise(xn.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!l&&d)}let S=this.state.value,b=this.parseExpression();return fm(i)&&b.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,S,b,e):this.parseExpressionStatement(s,b,r)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(xn.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(e,r,i){return e&&(r.decorators?.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(xn.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...e)):r.decorators=e,this.resetStartLocationFromNode(r,e[0]),i&&this.resetStartLocationFromNode(i,r)),r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(xn.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(xn.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,i;if(this.match(10)){let s=this.state.startLoc;this.next(),i=this.parseExpression(),this.expect(11),i=this.wrapParenthesis(s,i);let l=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(i,s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&e.expression!==i&&this.raise(xn.DecoratorArgumentsOutsideParentheses,l)}else{for(i=this.parseIdentifier(!1);this.eat(16);){let s=this.startNodeAt(r);s.object=i,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,i=this.finishNode(s,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(i,r)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,r){if(this.eat(10)){let i=this.startNodeAt(r);return i.callee=e,i.arguments=this.parseCallExpressionArguments(),this.toReferencedList(i.arguments),this.finishNode(i,"CallExpression")}return e}parseBreakContinueStatement(e,r){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,r),this.finishNode(e,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,r){let i;for(i=0;ithis.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(sZe);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(e,null);let i=this.isContextual(100);{let S=this.isAwaitUsing(),b=S||this.isForUsing(),A=i&&this.hasFollowingBindingAtom()||b;if(this.match(74)||this.match(75)||A){let L=this.startNode(),V;S?(V="await using",this.recordAwaitIfAllowed()||this.raise(xn.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):V=this.state.value,this.next(),this.parseVar(L,!0,V);let j=this.finishNode(L,"VariableDeclaration"),ie=this.match(58);return ie&&b&&this.raise(xn.ForInUsing,j),(ie||this.isContextual(102))&&j.declarations.length===1?this.parseForIn(e,j,r):(r!==null&&this.unexpected(r),this.parseFor(e,j))}}let s=this.isContextual(95),l=new wCe,d=this.parseExpression(!0,l),h=this.isContextual(102);if(h&&(i&&this.raise(xn.ForOfLet,d),r===null&&s&&d.type==="Identifier"&&this.raise(xn.ForOfAsync,d)),h||this.match(58)){this.checkDestructuringPrivate(l),this.toAssignable(d,!0);let S=h?"ForOfStatement":"ForInStatement";return this.checkLVal(d,{type:S}),this.parseForIn(e,d,r)}else this.checkExpressionErrors(l,!0);return r!==null&&this.unexpected(r),this.parseFor(e,d)}parseFunctionStatement(e,r,i){return this.next(),this.parseFunction(e,1|(i?2:0)|(r?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(xn.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();let r=e.cases=[];this.expect(5),this.state.labels.push(kKr),this.scope.enter(256);let i;for(let s;!this.match(8);)if(this.match(61)||this.match(65)){let l=this.match(61);i&&this.finishNode(i,"SwitchCase"),r.push(i=this.startNode()),i.consequent=[],this.next(),l?i.test=this.parseExpression():(s&&this.raise(xn.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),s=!0,i.test=null),this.expect(14)}else i?i.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),i&&this.finishNode(i,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(xn.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(r,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(xn.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,r,i=!1){return this.next(),this.parseVar(e,!1,r,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(sZe),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(xn.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,r,i,s){for(let d of this.state.labels)d.name===r&&this.raise(xn.LabelRedeclaration,i,{labelName:r});let l=gHr(this.state.type)?1:this.match(71)?2:null;for(let d=this.state.labels.length-1;d>=0;d--){let h=this.state.labels[d];if(h.statementStart===e.start)h.statementStart=this.sourceToOffsetPos(this.state.start),h.kind=l;else break}return this.state.labels.push({name:r,kind:l,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,r,i){return e.expression=r,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,r=!0,i){let s=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(s,e,!1,8,i),r&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,r,i,s,l){let d=e.body=[],h=e.directives=[];this.parseBlockOrModuleBlockBody(d,r?h:void 0,i,s,l)}parseBlockOrModuleBlockBody(e,r,i,s,l){let d=this.state.strict,h=!1,S=!1;for(;!this.match(s);){let b=i?this.parseModuleItem():this.parseStatementListItem();if(r&&!S){if(this.isValidDirective(b)){let A=this.stmtToDirective(b);r.push(A),!h&&A.value.value==="use strict"&&(h=!0,this.setStrict(!0));continue}S=!0,this.state.strictErrors.clear()}e.push(b)}l?.call(this,h),d||this.setStrict(!1),this.next()}parseFor(e,r){return e.init=r,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,r,i){let s=this.match(58);return this.next(),s?i!==null&&this.unexpected(i):e.await=i!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(xn.ForInOfLoopInitializer,r,{type:s?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(xn.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),e.left=r,e.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")}parseVar(e,r,i,s=!1){let l=e.declarations=[];for(e.kind=i;;){let d=this.startNode();if(this.parseVarId(d,i),d.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,d.init===null&&!s&&(d.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(xn.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(i==="const"||i==="using"||i==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(xn.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:i})),l.push(this.finishNode(d,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,r){let i=this.parseBindingAtom();r==="using"||r==="await using"?(i.type==="ArrayPattern"||i.type==="ObjectPattern")&&this.raise(xn.UsingDeclarationHasBindingPattern,i.loc.start):i.type==="VoidPattern"&&this.raise(xn.UnexpectedVoidPattern,i.loc.start),this.checkLVal(i,{type:"VariableDeclarator"},r==="var"?5:8201),e.id=i}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,r=0){let i=r&2,s=!!(r&1),l=s&&!(r&4),d=!!(r&8);this.initFunction(e,d),this.match(55)&&(i&&this.raise(xn.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),s&&(e.id=this.parseFunctionId(l));let h=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(ACe(d,e.generator)),s||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!i&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=h,e}parseFunctionId(e){return e||fm(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,r){this.expect(10),this.expressionScope.enter(sKr()),e.params=this.parseBindingList(11,41,2|(r?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,r,i){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(e,r,i),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,s),this.finishNode(e,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,r){this.classScope.enter();let i={hadConstructor:!1,hadSuperClass:e},s=[],l=this.startNode();if(l.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(xn.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}let d=this.startNode();s.length&&(d.decorators=s,this.resetStartLocationFromNode(d,s[0]),s=[]),this.parseClassMember(l,d,i),d.kind==="constructor"&&d.decorators&&d.decorators.length>0&&this.raise(xn.DecoratorConstructor,d)}}),this.state.strict=r,this.next(),s.length)throw this.raise(xn.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(l,"ClassBody")}parseClassMemberFromModifier(e,r){let i=this.parseIdentifier(!0);if(this.isClassMethod()){let s=r;return s.kind="method",s.computed=!1,s.key=i,s.static=!1,this.pushClassMethod(e,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=r;return s.computed=!1,s.key=i,s.static=!1,e.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(i),!1}parseClassMember(e,r,i){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(e,r))return;if(this.eat(5)){this.parseClassStaticBlock(e,r);return}}this.parseClassMemberWithIsStatic(e,r,i,s)}parseClassMemberWithIsStatic(e,r,i,s){let l=r,d=r,h=r,S=r,b=r,A=l,L=l;if(r.static=s,this.parsePropertyNamePrefixOperator(r),this.eat(55)){A.kind="method";let Re=this.match(139);if(this.parseClassElementName(A),this.parsePostMemberNameModifiers(A),Re){this.pushClassPrivateMethod(e,d,!0,!1);return}this.isNonstaticConstructor(l)&&this.raise(xn.ConstructorIsGenerator,l.key),this.pushClassMethod(e,l,!0,!1,!1,!1);return}let V=!this.state.containsEsc&&fm(this.state.type),j=this.parseClassElementName(r),ie=V?j.name:null,te=this.isPrivateName(j),X=this.state.startLoc;if(this.parsePostMemberNameModifiers(L),this.isClassMethod()){if(A.kind="method",te){this.pushClassPrivateMethod(e,d,!1,!1);return}let Re=this.isNonstaticConstructor(l),Je=!1;Re&&(l.kind="constructor",i.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(xn.DuplicateConstructor,j),Re&&this.hasPlugin("typescript")&&r.override&&this.raise(xn.OverrideOnConstructor,j),i.hadConstructor=!0,Je=i.hadSuperClass),this.pushClassMethod(e,l,!1,!1,Re,Je)}else if(this.isClassProperty())te?this.pushClassPrivateProperty(e,S):this.pushClassProperty(e,h);else if(ie==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(j);let Re=this.eat(55);L.optional&&this.unexpected(X),A.kind="method";let Je=this.match(139);this.parseClassElementName(A),this.parsePostMemberNameModifiers(L),Je?this.pushClassPrivateMethod(e,d,Re,!0):(this.isNonstaticConstructor(l)&&this.raise(xn.ConstructorIsAsync,l.key),this.pushClassMethod(e,l,Re,!0,!1,!1))}else if((ie==="get"||ie==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(j),A.kind=ie;let Re=this.match(139);this.parseClassElementName(l),Re?this.pushClassPrivateMethod(e,d,!1,!1):(this.isNonstaticConstructor(l)&&this.raise(xn.ConstructorIsAccessor,l.key),this.pushClassMethod(e,l,!1,!1,!1,!1)),this.checkGetterSetterParams(l)}else if(ie==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(j);let Re=this.match(139);this.parseClassElementName(h),this.pushClassAccessorProperty(e,b,Re)}else this.isLineTerminator()?te?this.pushClassPrivateProperty(e,S):this.pushClassProperty(e,h):this.unexpected()}parseClassElementName(e){let{type:r,value:i}=this.state;if((r===132||r===134)&&e.static&&i==="prototype"&&this.raise(xn.StaticPrototype,this.state.startLoc),r===139){i==="constructor"&&this.raise(xn.ConstructorClassPrivateField,this.state.startLoc);let s=this.parsePrivateName();return e.key=s,s}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,r){this.scope.enter(720);let i=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let s=r.body=[];this.parseBlockOrModuleBlockBody(s,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,e.body.push(this.finishNode(r,"StaticBlock")),r.decorators?.length&&this.raise(xn.DecoratorStaticBlock,r)}pushClassProperty(e,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(xn.ConstructorClassField,r.key),e.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(e,r){let i=this.parseClassPrivateProperty(r);e.body.push(i),this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassAccessorProperty(e,r,i){!i&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(xn.ConstructorClassField,r.key);let s=this.parseClassAccessorProperty(r);e.body.push(s),i&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(e,r,i,s,l,d){e.body.push(this.parseMethod(r,i,s,l,d,"ClassMethod",!0))}pushClassPrivateMethod(e,r,i,s){let l=this.parseMethod(r,i,s,!1,!1,"ClassPrivateMethod",!0);e.body.push(l);let d=l.kind==="get"?l.static?6:2:l.kind==="set"?l.static?5:1:0;this.declareClassPrivateMethodInScope(l,d)}declareClassPrivateMethodInScope(e,r){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),r,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(MRt()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,r,i,s=8331){if(fm(this.state.type))e.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(e.id,s);else if(i||!r)e.id=null;else throw this.raise(xn.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,r){let i=this.parseMaybeImportPhase(e,!0),s=this.maybeParseExportDefaultSpecifier(e,i),l=!s||this.eat(12),d=l&&this.eatExportStar(e),h=d&&this.maybeParseExportNamespaceSpecifier(e),S=l&&(!h||this.eat(12)),b=s||d;if(d&&!h){if(s&&this.unexpected(),r)throw this.raise(xn.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let A=this.maybeParseExportNamedSpecifiers(e);s&&l&&!d&&!A&&this.unexpected(null,5),h&&S&&this.unexpected(null,98);let L;if(b||A){if(L=!1,r)throw this.raise(xn.UnsupportedDecoratorExport,e);this.parseExportFrom(e,b)}else L=this.maybeParseExportDeclaration(e);if(b||A||L){let V=e;if(this.checkExport(V,!0,!1,!!V.source),V.declaration?.type==="ClassDeclaration")this.maybeTakeDecorators(r,V.declaration,V);else if(r)throw this.raise(xn.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(V,"ExportNamedDeclaration")}if(this.eat(65)){let V=e,j=this.parseExportDefaultExpression();if(V.declaration=j,j.type==="ClassDeclaration")this.maybeTakeDecorators(r,j,V);else if(r)throw this.raise(xn.UnsupportedDecoratorExport,e);return this.checkExport(V,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(V,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r?.loc.start);let i=r||this.parseIdentifier(!0),s=this.startNodeAtNode(i);return s.exported=i,e.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){e.specifiers??(e.specifiers=[]);let 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)){let r=e;r.specifiers||(r.specifiers=[]);let i=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(i)),r.source=null,r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let 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")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(xn.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(xn.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(fm(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let s=this.nextTokenStart(),l=this.input.charCodeAt(s);if(l===123||this.chStartsBindingIdentifier(l,s)&&!this.input.startsWith("from",s))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),i=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||fm(this.state.type)&&i)return!0;if(this.match(65)&&i){let s=this.input.charCodeAt(this.nextTokenStartSince(r+4));return s===34||s===39}return!1}parseExportFrom(e,r){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(xn.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(xn.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(xn.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,r,i,s){if(r){if(i){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){let l=e.declaration;l.type==="Identifier"&&l.name==="from"&&l.end-l.start===4&&!l.extra?.parenthesized&&this.raise(xn.ExportDefaultFromAsIdentifier,l)}}else if(e.specifiers?.length)for(let l of e.specifiers){let{exported:d}=l,h=d.type==="Identifier"?d.name:d.value;if(this.checkDuplicateExports(l,h),!s&&l.local){let{local:S}=l;S.type!=="Identifier"?this.raise(xn.ExportBindingIsString,l,{localName:S.value,exportName:h}):(this.checkReservedWord(S.name,S.loc.start,!0,!1),this.scope.checkLocalExport(S))}}else if(e.declaration){let l=e.declaration;if(l.type==="FunctionDeclaration"||l.type==="ClassDeclaration"){let{id:d}=l;if(!d)throw new Error("Assertion failure");this.checkDuplicateExports(e,d.name)}else if(l.type==="VariableDeclaration")for(let d of l.declarations)this.checkDeclaration(d.id)}}}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let r of e.properties)this.checkDeclaration(r);else if(e.type==="ArrayPattern")for(let r of e.elements)r&&this.checkDeclaration(r);else e.type==="ObjectProperty"?this.checkDeclaration(e.value):e.type==="RestElement"?this.checkDeclaration(e.argument):e.type==="AssignmentPattern"&&this.checkDeclaration(e.left)}checkDuplicateExports(e,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(xn.DuplicateDefaultExport,e):this.raise(xn.DuplicateExport,e,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(e){let r=[],i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else if(this.expect(12),this.eat(8))break;let s=this.isContextual(130),l=this.match(134),d=this.startNode();d.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(d,l,e,s))}return r}parseExportSpecifier(e,r,i,s){return this.eatContextual(93)?e.exported=this.parseModuleExportName():r?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),r=CKr.exec(e.value);return r&&this.raise(xn.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:r[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions!=null?e.assertions.some(({key:r,value:i})=>i.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(e){let{specifiers:r}=e,i=r.length===1?r[0].type:null;e.phase==="source"?i!=="ImportDefaultSpecifier"&&this.raise(xn.SourcePhaseImportRequiresDefault,r[0].loc.start):e.phase==="defer"?i!=="ImportNamespaceSpecifier"&&this.raise(xn.DeferImportRequiresNamespace,r[0].loc.start):e.module&&(i!=="ImportDefaultSpecifier"&&this.raise(xn.ImportReflectionNotBinding,r[0].loc.start),e.assertions?.length>0&&this.raise(xn.ImportReflectionHasAssertion,r[0].loc.start))}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){let{specifiers:r}=e;if(r!=null){let i=r.find(s=>{let l;if(s.type==="ExportSpecifier"?l=s.local:s.type==="ImportSpecifier"&&(l=s.imported),l!==void 0)return l.type==="Identifier"?l.name!=="default":l.value!=="default"});i!==void 0&&this.raise(xn.ImportJSONBindingNotDefault,i.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)}applyImportPhase(e,r,i,s){r||(this.hasPlugin("importReflection")&&(e.module=!1),i==="source"?(this.expectPlugin("sourcePhaseImports",s),e.phase="source"):i==="defer"?(this.expectPlugin("deferredImportEvaluation",s),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(e,r,null),null;let i=this.startNode(),s=this.parseIdentifierName(!0),{type:l}=this.state;return(R6(l)?l!==98||this.lookaheadCharCode()===102:l!==12)?(this.applyImportPhase(e,r,s,i.loc.start),null):(this.applyImportPhase(e,r,null),this.createIdentifier(i,s))}isPrecedingIdImportPhase(e){let{type:r}=this.state;return fm(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,r){e.specifiers=[];let i=!this.maybeParseDefaultImportSpecifier(e,r)||this.eat(12),s=i&&this.maybeParseStarImportSpecifier(e);return i&&!s&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return 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,r,i){r.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(r,i))}finishImportSpecifier(e,r,i=8201){return this.checkLVal(e.local,{type:r},i),this.finishNode(e,r)}parseImportAttributes(){this.expect(5);let e=[],r=new Set;do{if(this.match(8))break;let i=this.startNode(),s=this.state.value;if(r.has(s)&&this.raise(xn.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),r.add(s),this.match(134)?i.key=this.parseStringLiteral(s):i.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(xn.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],r=new Set;do{let i=this.startNode();if(i.key=this.parseIdentifier(!0),i.key.name!=="type"&&this.raise(xn.ModuleAttributeDifferentFromType,i.key),r.has(i.key.name)&&this.raise(xn.ModuleAttributesWithDuplicateKeys,i.key,{key:i.key.name}),r.add(i.key.name),this.expect(14),!this.match(134))throw this.raise(xn.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let r;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),r=this.parseImportAttributes()}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.raise(xn.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),r=this.parseImportAttributes()):r=[];e.attributes=r}maybeParseDefaultImportSpecifier(e,r){if(r){let i=this.startNodeAtNode(r);return i.local=r,e.specifiers.push(this.finishImportSpecifier(i,"ImportDefaultSpecifier")),!0}else if(R6(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(xn.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let i=this.startNode(),s=this.match(134),l=this.isContextual(130);i.imported=this.parseModuleExportName();let d=this.parseImportSpecifier(i,s,e.importKind==="type"||e.importKind==="typeof",l,void 0);e.specifiers.push(d)}}parseImportSpecifier(e,r,i,s,l){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:d}=e;if(r)throw this.raise(xn.ImportBindingIsString,e,{importName:d.value});this.checkReservedWord(d.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(d))}return this.finishImportSpecifier(e,"ImportSpecifier",l)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}},URt=class extends AKr{constructor(e,r,i){let s=lHr(e);super(s,r),this.options=s,this.initializeScopes(),this.plugins=i,this.filename=s.sourceFilename,this.startIndex=s.startIndex;let l=0;s.allowAwaitOutsideFunction&&(l|=1),s.allowReturnOutsideFunction&&(l|=2),s.allowImportExportEverywhere&&(l|=8),s.allowSuperOutsideMethod&&(l|=16),s.allowUndeclaredExports&&(l|=64),s.allowNewTargetOutsideFunction&&(l|=4),s.allowYieldOutsideFunction&&(l|=32),s.ranges&&(l|=128),s.tokens&&(l|=256),s.createImportExpressions&&(l|=512),s.createParenthesizedExpressions&&(l|=1024),s.errorRecovery&&(l|=2048),s.attachComment&&(l|=4096),s.annexB&&(l|=8192),this.optionFlags=l}getScopeHandler(){return PZe}parse(){this.enterInitialScopes();let e=this.startNode(),r=this.startNode();this.nextToken(),e.errors=null;let i=this.parseTopLevel(e,r);return i.errors=this.state.errors,i.comments.length=this.state.commentsLen,i}};function zRt(e,r){if(r?.sourceType==="unambiguous"){r=Object.assign({},r);try{r.sourceType="module";let i=Tpe(r,e),s=i.parse();if(i.sawUnambiguousESM)return s;if(i.ambiguousScriptDifferentAst)try{return r.sourceType="script",Tpe(r,e).parse()}catch{}else s.program.sourceType="script";return s}catch(i){try{return r.sourceType="script",Tpe(r,e).parse()}catch{}throw i}}else return Tpe(r,e).parse()}function qRt(e,r){let i=Tpe(r,e);return i.options.strictMode&&(i.state.strict=!0),i.getExpression()}function wKr(e){let r={};for(let i of Object.keys(e))r[i]=kRt(e[i]);return r}var Kqn=wKr(dHr);function Tpe(e,r){let i=URt,s=new Map;if(e?.plugins){for(let l of e.plugins){let d,h;typeof l=="string"?d=l:[d,h]=l,s.has(d)||s.set(d,h||{})}xKr(s),i=IKr(s)}return new i(e,r,s)}var uRt=new Map;function IKr(e){let r=[];for(let l of TKr)e.has(l)&&r.push(l);let i=r.join("|"),s=uRt.get(i);if(!s){s=URt;for(let l of r)s=$Rt[l](s);uRt.set(i,s)}return s}function OCe(e){return(r,i,s)=>{let l=!!s?.backwards;if(i===!1)return!1;let{length:d}=r,h=i;for(;h>=0&&he===` -`||e==="\r"||e==="\u2028"||e==="\u2029";function RKr(e,r,i){let s=!!i?.backwards;if(r===!1)return!1;let l=e.charAt(r);if(s){if(e.charAt(r-1)==="\r"&&l===` -`)return r-2;if(pRt(l))return r-1}else{if(l==="\r"&&e.charAt(r+1)===` -`)return r+2;if(pRt(l))return r+1}return r}var LKr=RKr;function MKr(e,r){return r===!1?!1:e.charAt(r)==="/"&&e.charAt(r+1)==="/"?NKr(e,r):r}var jKr=MKr;function BKr(e,r){let i=null,s=r;for(;s!==i;)i=s,s=PKr(e,s),s=FKr(e,s),s=jKr(e,s),s=LKr(e,s);return s}var $Kr=BKr;function UKr(e){let r=[];for(let i of e)try{return i()}catch(s){r.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:r})}function zKr(e){if(!e.startsWith("#!"))return"";let r=e.indexOf(` -`);return r===-1?e:e.slice(0,r)}var JRt=zKr,NZe=(e,r)=>(i,s,...l)=>i|1&&s==null?void 0:(r.call(s)??s[e]).apply(s,l),qKr=Array.prototype.findLast??function(e){for(let r=this.length-1;r>=0;r--){let i=this[r];if(e(i,r,this))return i}},JKr=NZe("findLast",function(){if(Array.isArray(this))return qKr}),VKr=JKr;function WKr(e){return this[e<0?this.length+e:e]}var GKr=NZe("at",function(){if(Array.isArray(this)||typeof this=="string")return WKr}),HKr=GKr;function L5(e){let r=e.range?.[0]??e.start,i=(e.declaration?.decorators??e.decorators)?.[0];return i?Math.min(L5(i),r):r}function u8(e){return e.range?.[1]??e.end}function KKr(e){let r=new Set(e);return i=>r.has(i?.type)}var OZe=KKr,QKr=OZe(["Block","CommentBlock","MultiLine"]),FZe=QKr,ZKr=OZe(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),XKr=ZKr,lZe=new WeakMap;function YKr(e){return lZe.has(e)||lZe.set(e,FZe(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),lZe.get(e)}var eQr=YKr;function tQr(e){if(!FZe(e))return!1;let r=`*${e.value}*`.split(` -`);return r.length>1&&r.every(i=>i.trimStart()[0]==="*")}var uZe=new WeakMap;function rQr(e){return uZe.has(e)||uZe.set(e,tQr(e)),uZe.get(e)}var _Rt=rQr;function nQr(e){if(e.length<2)return;let r;for(let i=e.length-1;i>=0;i--){let s=e[i];if(r&&u8(s)===L5(r)&&_Rt(s)&&_Rt(r)&&(e.splice(i+1,1),s.value+="*//*"+r.value,s.range=[L5(s),u8(r)]),!XKr(s)&&!FZe(s))throw new TypeError(`Unknown comment type: "${s.type}".`);r=s}}var iQr=nQr;function oQr(e){return e!==null&&typeof e=="object"}var aQr=oQr,bpe=null;function kpe(e){if(bpe!==null&&typeof bpe.property){let r=bpe;return bpe=kpe.prototype=null,r}return bpe=kpe.prototype=e??Object.create(null),new kpe}var sQr=10;for(let e=0;e<=sQr;e++)kpe();function cQr(e){return kpe(e)}function lQr(e,r="type"){cQr(e);function i(s){let l=s[r],d=e[l];if(!Array.isArray(d))throw Object.assign(new Error(`Missing visitor keys for '${l}'.`),{node:s});return d}return i}var uQr=lQr,Hr=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],pQr={AccessorProperty:Hr[0],AnyTypeAnnotation:Hr[1],ArgumentPlaceholder:Hr[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:Hr[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:Hr[3],AsExpression:Hr[4],AssignmentExpression:Hr[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:Hr[6],BigIntLiteral:Hr[1],BigIntLiteralTypeAnnotation:Hr[1],BigIntTypeAnnotation:Hr[1],BinaryExpression:Hr[5],BindExpression:["object","callee"],BlockStatement:Hr[7],BooleanLiteral:Hr[1],BooleanLiteralTypeAnnotation:Hr[1],BooleanTypeAnnotation:Hr[1],BreakStatement:Hr[8],CallExpression:Hr[9],CatchClause:["param","body"],ChainExpression:Hr[3],ClassAccessorProperty:Hr[0],ClassBody:Hr[10],ClassDeclaration:Hr[11],ClassExpression:Hr[11],ClassImplements:Hr[12],ClassMethod:Hr[13],ClassPrivateMethod:Hr[13],ClassPrivateProperty:Hr[14],ClassProperty:Hr[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:Hr[15],ConditionalExpression:Hr[16],ConditionalTypeAnnotation:Hr[17],ContinueStatement:Hr[8],DebuggerStatement:Hr[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:Hr[18],DeclareEnum:Hr[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:Hr[20],DeclareFunction:["id","predicate"],DeclareHook:Hr[21],DeclareInterface:Hr[22],DeclareModule:Hr[19],DeclareModuleExports:Hr[23],DeclareNamespace:Hr[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:Hr[24],DeclareVariable:Hr[21],Decorator:Hr[3],Directive:Hr[18],DirectiveLiteral:Hr[1],DoExpression:Hr[10],DoWhileStatement:Hr[25],EmptyStatement:Hr[1],EmptyTypeAnnotation:Hr[1],EnumBigIntBody:Hr[26],EnumBigIntMember:Hr[27],EnumBooleanBody:Hr[26],EnumBooleanMember:Hr[27],EnumDeclaration:Hr[19],EnumDefaultedMember:Hr[21],EnumNumberBody:Hr[26],EnumNumberMember:Hr[27],EnumStringBody:Hr[26],EnumStringMember:Hr[27],EnumSymbolBody:Hr[26],ExistsTypeAnnotation:Hr[1],ExperimentalRestProperty:Hr[6],ExperimentalSpreadProperty:Hr[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:Hr[28],ExportNamedDeclaration:Hr[20],ExportNamespaceSpecifier:Hr[28],ExportSpecifier:["local","exported"],ExpressionStatement:Hr[3],File:["program"],ForInStatement:Hr[29],ForOfStatement:Hr[29],ForStatement:["init","test","update","body"],FunctionDeclaration:Hr[30],FunctionExpression:Hr[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:Hr[15],GenericTypeAnnotation:Hr[12],HookDeclaration:Hr[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:Hr[16],ImportAttribute:Hr[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:Hr[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:Hr[33],ImportSpecifier:["imported","local"],IndexedAccessType:Hr[34],InferredPredicate:Hr[1],InferTypeAnnotation:Hr[35],InterfaceDeclaration:Hr[22],InterfaceExtends:Hr[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:Hr[1],IntersectionTypeAnnotation:Hr[36],JsExpressionRoot:Hr[37],JsonRoot:Hr[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:Hr[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:Hr[1],JSXExpressionContainer:Hr[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:Hr[1],JSXMemberExpression:Hr[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:Hr[1],JSXSpreadAttribute:Hr[6],JSXSpreadChild:Hr[3],JSXText:Hr[1],KeyofTypeAnnotation:Hr[6],LabeledStatement:["label","body"],Literal:Hr[1],LogicalExpression:Hr[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:Hr[21],MatchExpression:Hr[39],MatchExpressionCase:Hr[40],MatchIdentifierPattern:Hr[21],MatchLiteralPattern:Hr[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:Hr[6],MatchStatement:Hr[39],MatchStatementCase:Hr[40],MatchUnaryPattern:Hr[6],MatchWildcardPattern:Hr[1],MemberExpression:Hr[38],MetaProperty:["meta","property"],MethodDefinition:Hr[42],MixedTypeAnnotation:Hr[1],ModuleExpression:Hr[10],NeverTypeAnnotation:Hr[1],NewExpression:Hr[9],NGChainedExpression:Hr[43],NGEmptyExpression:Hr[1],NGMicrosyntax:Hr[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:Hr[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:Hr[32],NGPipeExpression:["left","right","arguments"],NGRoot:Hr[37],NullableTypeAnnotation:Hr[23],NullLiteral:Hr[1],NullLiteralTypeAnnotation:Hr[1],NumberLiteralTypeAnnotation:Hr[1],NumberTypeAnnotation:Hr[1],NumericLiteral:Hr[1],ObjectExpression:["properties"],ObjectMethod:Hr[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:Hr[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:Hr[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:Hr[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:Hr[9],OptionalIndexedAccessType:Hr[34],OptionalMemberExpression:Hr[38],ParenthesizedExpression:Hr[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:Hr[1],PipelineTopicExpression:Hr[3],Placeholder:Hr[1],PrivateIdentifier:Hr[1],PrivateName:Hr[21],Program:Hr[7],Property:Hr[32],PropertyDefinition:Hr[14],QualifiedTypeIdentifier:Hr[44],QualifiedTypeofIdentifier:Hr[44],RegExpLiteral:Hr[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:Hr[6],SatisfiesExpression:Hr[4],SequenceExpression:Hr[43],SpreadElement:Hr[6],StaticBlock:Hr[10],StringLiteral:Hr[1],StringLiteralTypeAnnotation:Hr[1],StringTypeAnnotation:Hr[1],Super:Hr[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:Hr[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:Hr[1],TemplateLiteral:["quasis","expressions"],ThisExpression:Hr[1],ThisTypeAnnotation:Hr[1],ThrowStatement:Hr[6],TopicReference:Hr[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:Hr[45],TSAbstractKeyword:Hr[1],TSAbstractMethodDefinition:Hr[32],TSAbstractPropertyDefinition:Hr[45],TSAnyKeyword:Hr[1],TSArrayType:Hr[2],TSAsExpression:Hr[4],TSAsyncKeyword:Hr[1],TSBigIntKeyword:Hr[1],TSBooleanKeyword:Hr[1],TSCallSignatureDeclaration:Hr[46],TSClassImplements:Hr[47],TSConditionalType:Hr[17],TSConstructorType:Hr[46],TSConstructSignatureDeclaration:Hr[46],TSDeclareFunction:Hr[31],TSDeclareKeyword:Hr[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:Hr[26],TSEnumDeclaration:Hr[19],TSEnumMember:["id","initializer"],TSExportAssignment:Hr[3],TSExportKeyword:Hr[1],TSExternalModuleReference:Hr[3],TSFunctionType:Hr[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:Hr[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:Hr[35],TSInstantiationExpression:Hr[47],TSInterfaceBody:Hr[10],TSInterfaceDeclaration:Hr[22],TSInterfaceHeritage:Hr[47],TSIntersectionType:Hr[36],TSIntrinsicKeyword:Hr[1],TSJSDocAllType:Hr[1],TSJSDocNonNullableType:Hr[23],TSJSDocNullableType:Hr[23],TSJSDocUnknownType:Hr[1],TSLiteralType:Hr[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:Hr[10],TSModuleDeclaration:Hr[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:Hr[21],TSNeverKeyword:Hr[1],TSNonNullExpression:Hr[3],TSNullKeyword:Hr[1],TSNumberKeyword:Hr[1],TSObjectKeyword:Hr[1],TSOptionalType:Hr[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:Hr[23],TSPrivateKeyword:Hr[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:Hr[1],TSPublicKeyword:Hr[1],TSQualifiedName:Hr[5],TSReadonlyKeyword:Hr[1],TSRestType:Hr[23],TSSatisfiesExpression:Hr[4],TSStaticKeyword:Hr[1],TSStringKeyword:Hr[1],TSSymbolKeyword:Hr[1],TSTemplateLiteralType:["quasis","types"],TSThisType:Hr[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:Hr[23],TSTypeAssertion:Hr[4],TSTypeLiteral:Hr[26],TSTypeOperator:Hr[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:Hr[48],TSTypeParameterInstantiation:Hr[48],TSTypePredicate:Hr[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:Hr[1],TSUnionType:Hr[36],TSUnknownKeyword:Hr[1],TSVoidKeyword:Hr[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:Hr[24],TypeAnnotation:Hr[23],TypeCastExpression:Hr[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:Hr[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:Hr[48],TypeParameterInstantiation:Hr[48],TypePredicate:Hr[49],UnaryExpression:Hr[6],UndefinedTypeAnnotation:Hr[1],UnionTypeAnnotation:Hr[36],UnknownTypeAnnotation:Hr[1],UpdateExpression:Hr[6],V8IntrinsicIdentifier:Hr[1],VariableDeclaration:["declarations"],VariableDeclarator:Hr[27],Variance:Hr[1],VoidPattern:Hr[1],VoidTypeAnnotation:Hr[1],WhileStatement:Hr[25],WithStatement:["object","body"],YieldExpression:Hr[6]},_Qr=uQr(pQr),dQr=_Qr;function ICe(e,r){if(!aQr(e))return e;if(Array.isArray(e)){for(let s=0;sie<=L);V=j&&s.slice(j,L).trim().length===0}return V?void 0:(A.extra={...A.extra,parenthesized:!0},A)}case"TemplateLiteral":if(b.expressions.length!==b.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(i==="flow"||i==="hermes"||i==="espree"||i==="typescript"||d){let A=L5(b)+1,L=u8(b)-(b.tail?1:2);b.range=[A,L]}break;case"VariableDeclaration":{let A=HKr(0,b.declarations,-1);A?.init&&s[u8(A)]!==";"&&(b.range=[L5(b),u8(A)]);break}case"TSParenthesizedType":return b.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(b.types.length===1)return b.types[0];break;case"ImportExpression":i==="hermes"&&b.attributes&&!b.options&&(b.options=b.attributes);break}},onLeave(b){switch(b.type){case"LogicalExpression":if(VRt(b))return gZe(b);break;case"TSImportType":!b.source&&b.argument.type==="TSLiteralType"&&(b.source=b.argument.literal,delete b.argument);break}}}),e}function VRt(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function gZe(e){return VRt(e)?gZe({type:"LogicalExpression",operator:e.operator,left:gZe({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[L5(e.left),u8(e.right.left)]}),right:e.right.right,range:[L5(e),u8(e)]}):e}var hQr=mQr;function gQr(e,r){let i=new SyntaxError(e+" ("+r.loc.start.line+":"+r.loc.start.column+")");return Object.assign(i,r)}var WRt=gQr,dRt="Unexpected parseExpression() input: ";function yQr(e){let{message:r,loc:i,reasonCode:s}=e;if(!i)return e;let{line:l,column:d}=i,h=e;(s==="MissingPlugin"||s==="MissingOneOfPlugins")&&(r="Unexpected token.",h=void 0);let S=` (${l}:${d})`;return r.endsWith(S)&&(r=r.slice(0,-S.length)),r.startsWith(dRt)&&(r=r.slice(dRt.length)),WRt(r,{loc:{start:{line:l,column:d+1}},cause:h})}var GRt=yQr,vQr=String.prototype.replaceAll??function(e,r){return e.global?this.replace(e,r):this.split(e).join(r)},SQr=NZe("replaceAll",function(){if(typeof this=="string")return vQr}),kCe=SQr,bQr=/\*\/$/,xQr=/^\/\*\*?/,TQr=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,EQr=/(^|\s+)\/\/([^\n\r]*)/g,fRt=/^(\r?\n)+/,kQr=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,mRt=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,CQr=/(\r?\n|^) *\* ?/g,DQr=[];function AQr(e){let r=e.match(TQr);return r?r[0].trimStart():""}function wQr(e){e=kCe(0,e.replace(xQr,"").replace(bQr,""),CQr,"$1");let r="";for(;r!==e;)r=e,e=kCe(0,e,kQr,` +`):n=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(t){let r="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(W.UnterminatedString,this.state.startLoc);let o=this.input.charCodeAt(this.state.pos);if(o===t)break;o===38?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadEntity(),n=this.state.pos):Mv(o)?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}r+=this.input.slice(n,this.state.pos++),this.finishToken(134,r)}jsxReadEntity(){let t=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let r=10;this.codePointAtPos(this.state.pos)===120&&(r=16,++this.state.pos);let n=this.readInt(r,void 0,!1,"bail");if(n!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(n)}else{let r=0,n=!1;for(;r++<10&&this.state.pos1){for(let n=0;n0){if(r&256){let o=!!(r&512),i=(n&4)>0;return o!==i}return!0}return r&128&&(n&8)>0?e.names.get(t)&2?!!(r&1):!1:r&2&&(n&1)>0?!0:super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let r=this.scopeStack.length;for(let n=r-1;n>=0;n--){let o=this.scopeStack[n].tsNames.get(t);if((o&1)>0||(o&16)>0)return}super.checkLocalExport(e)}},pVe=class{stacks=[];enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function T3(e,t){return(e?2:0)|(t?1:0)}var dVe=class{sawUnambiguousESM=!1;ambiguousScriptDifferentAst=!1;sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[t,r]=e;if(!this.hasPlugin(t))return!1;let n=this.plugins.get(t);for(let o of Object.keys(r))if(n?.[o]!==r[o])return!1;return!0}}getPluginOption(e,t){return this.plugins.get(e)?.[t]}};function vpe(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function _Ve(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function jv(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function fg(e,t,r){let n=null,o=t.length;for(;n===null&&o>0;)n=t[--o];n===null||n.start>r.start?jv(e,r.comments):vpe(n,r.comments)}var fVe=class extends dVe{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,r=t.length;if(r===0)return;let n=r-1,o=t[n];o.start===e.end&&(o.leadingNode=e,n--);let{start:i}=e;for(;n>=0;n--){let a=t[n],s=a.end;if(s>i)a.containingNode=e,this.finalizeComment(a),t.splice(n,1);else{s===i&&(a.trailingNode=e);break}}}finalizeComment(e){let{comments:t}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&vpe(e.leadingNode,t),e.trailingNode!==null&&_Ve(e.trailingNode,t);else{let r=e.containingNode,n=e.start;if(this.input.charCodeAt(this.offsetToSourcePos(n)-1)===44)switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":fg(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":fg(r,r.arguments,e);break;case"ImportExpression":fg(r,[r.source,r.options??null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":fg(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":fg(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":fg(r,r.specifiers,e);break;case"TSEnumDeclaration":jv(r,t);break;case"TSEnumBody":fg(r,r.members,e);break;default:jv(r,t)}else jv(r,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:r}=t;if(r===0)return;let n=t[r-1];n.leadingNode===e&&(n.leadingNode=null)}takeSurroundingComments(e,t,r){let{commentStack:n}=this.state,o=n.length;if(o===0)return;let i=o-1;for(;i>=0;i--){let a=n[i],s=a.end;if(a.start===r)a.leadingNode=e;else if(s===t)a.trailingNode=e;else if(s0}set strict(t){t?this.flags|=1:this.flags&=-2}startIndex;curLine;lineStart;startLoc;endLoc;init({strictMode:t,sourceType:r,startIndex:n,startLine:o,startColumn:i}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.startIndex=n,this.curLine=o,this.lineStart=-i,this.startLoc=this.endLoc=new qm(o,i,n)}errors=[];potentialArrowAt=-1;noArrowAt=[];noArrowParamsConversionAt=[];get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}labels=[];commentsLen=0;commentStack=[];pos=0;type=140;value=null;start=0;end=0;lastTokEndLoc=null;lastTokStartLoc=null;context=[Lo.brace];get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}firstInvalidTemplateEscapePos=null;get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}strictErrors=new Map;tokensLength=0;curPosition(){return new qm(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new bpe;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},hVe=function(e){return e>=48&&e<=57},Vue={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},v3={bin:e=>e===48||e===49,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 Jue(e,t,r,n,o,i){let a=r,s=n,c=o,p="",d=null,f=r,{length:m}=t;for(;;){if(r>=m){i.unterminated(a,s,c),p+=t.slice(f,r);break}let y=t.charCodeAt(r);if(yVe(e,y,t,r)){p+=t.slice(f,r);break}if(y===92){p+=t.slice(f,r);let g=gVe(t,r,n,o,e==="template",i);g.ch===null&&!d?d={pos:r,lineStart:n,curLine:o}:p+=g.ch,{pos:r,lineStart:n,curLine:o}=g,f=r}else y===8232||y===8233?(++r,++o,n=r):y===10||y===13?e==="template"?(p+=t.slice(f,r)+` +`,++r,y===13&&t.charCodeAt(r)===10&&++r,++o,f=n=r):i.unterminated(a,s,c):++r}return{pos:r,str:p,firstInvalidLoc:d,lineStart:n,curLine:o}}function yVe(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function gVe(e,t,r,n,o,i){let a=!o;t++;let s=p=>({pos:t,ch:p,lineStart:r,curLine:n}),c=e.charCodeAt(t++);switch(c){case 110:return s(` +`);case 114:return s("\r");case 120:{let p;return{code:p,pos:t}=Xq(e,t,r,n,2,!1,a,i),s(p===null?null:String.fromCharCode(p))}case 117:{let p;return{code:p,pos:t}=Epe(e,t,r,n,a,i),s(p===null?null:String.fromCodePoint(p))}case 116:return s(" ");case 98:return s("\b");case 118:return s("\v");case 102:return s("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return s("");case 56:case 57:if(o)return s(null);i.strictNumericEscape(t-1,r,n);default:if(c>=48&&c<=55){let p=t-1,d=/^[0-7]+/.exec(e.slice(p,t+2))[0],f=parseInt(d,8);f>255&&(d=d.slice(0,-1),f=parseInt(d,8)),t+=d.length-1;let m=e.charCodeAt(t);if(d!=="0"||m===56||m===57){if(o)return s(null);i.strictNumericEscape(p,r,n)}return s(String.fromCharCode(f))}return s(String.fromCharCode(c))}}function Xq(e,t,r,n,o,i,a,s){let c=t,p;return{n:p,pos:t}=xpe(e,t,r,n,16,o,i,!1,s,!a),p===null&&(a?s.invalidEscapeSequence(c,r,n):t=c-1),{code:p,pos:t}}function xpe(e,t,r,n,o,i,a,s,c,p){let d=t,f=o===16?Vue.hex:Vue.decBinOct,m=o===16?v3.hex:o===10?v3.dec:o===8?v3.oct:v3.bin,y=!1,g=0;for(let S=0,x=i??1/0;S=97?I=A-97+10:A>=65?I=A-65+10:hVe(A)?I=A-48:I=1/0,I>=o){if(I<=9&&p)return{n:null,pos:t};if(I<=9&&c.invalidDigit(t,r,n,o))I=0;else if(a)I=0,y=!0;else break}++t,g=g*o+I}return t===d||i!=null&&t-d!==i||y?{n:null,pos:t}:{n:g,pos:t}}function Epe(e,t,r,n,o,i){let a=e.charCodeAt(t),s;if(a===123){if(++t,{code:s,pos:t}=Xq(e,t,r,n,e.indexOf("}",t)-t,!0,o,i),++t,s!==null&&s>1114111)if(o)i.invalidCodePoint(t,r,n);else return{code:null,pos:t}}else({code:s,pos:t}=Xq(e,t,r,n,4,!1,o,i));return{code:s,pos:t}}function rD(e,t,r){return new qm(r,e-t,e)}var SVe=new Set([103,109,115,105,121,117,100,118]),vVe=class{constructor(e){let 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 w3(e.startLoc,e.endLoc)}},bVe=class extends fVe{isLookahead;tokens=[];constructor(e,t){super(),this.state=new mVe,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(),this.optionFlags&256&&this.pushToken(new vVe(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):!1}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(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return zq.lastIndex=e,zq.test(this.input)?zq.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 Vq.lastIndex=e,Vq.test(this.input)?Vq.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)===55296&&++ethis.raise(t,r)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let r=this.state.pos,n=this.input.indexOf(e,r+2);if(n===-1)throw this.raise(W.UnterminatedComment,this.state.curPosition());for(this.state.pos=n+e.length,S3.lastIndex=r+2;S3.test(this.input)&&S3.lastIndex<=n;)++this.state.curLine,this.state.lineStart=S3.lastIndex;if(this.isLookahead)return;let o={type:"CommentBlock",value:this.input.slice(r+2,n),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(n+e.length),loc:new w3(t,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(o),o}skipLineComment(e){let t=this.state.pos,r;this.isLookahead||(r=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pose)){let o=this.skipLineComment(3);o!==void 0&&(this.addComment(o),t?.push(o))}else break e}else if(r===60&&!this.inModule&&this.optionFlags&8192){let n=this.state.pos;if(this.input.charCodeAt(n+1)===33&&this.input.charCodeAt(n+2)===45&&this.input.charCodeAt(n+3)===45){let o=this.skipLineComment(4);o!==void 0&&(this.addComment(o),t?.push(o))}else break e}else break e}}if(t?.length>0){let 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();let 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(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(W.UnexpectedDigitAfterHash,this.state.curPosition());Yp(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):t===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let t=this.state.pos;for(this.state.pos+=1;!Mv(e)&&++this.state.pos=48&&t<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let t=this.input.charCodeAt(this.state.pos+1);if(t===120||t===88){this.readRadixNumber(16);return}if(t===111||t===79){this.readRadixNumber(8);return}if(t===98||t===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Yp(e)){this.readWord(e);return}}throw this.raise(W.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){let e=this.state.startLoc,t=this.state.start+1,r,n,{pos:o}=this.state;for(;;++o){if(o>=this.length)throw this.raise(W.UnterminatedRegExp,Fl(e,1));let c=this.input.charCodeAt(o);if(Mv(c))throw this.raise(W.UnterminatedRegExp,Fl(e,1));if(r)r=!1;else{if(c===91)n=!0;else if(c===93&&n)n=!1;else if(c===47&&!n)break;r=c===92}}let i=this.input.slice(t,o);++o;let a="",s=()=>Fl(e,o+2-t);for(;o=2&&this.input.charCodeAt(t)===48;if(a){let d=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(W.StrictOctalLiteral,r),!this.state.strict){let f=d.indexOf("_");f>0&&this.raise(W.ZeroDigitNumericSeparator,Fl(r,f))}i=a&&!/[89]/.test(d)}let s=this.input.charCodeAt(this.state.pos);if(s===46&&!i&&(++this.state.pos,this.readInt(10),n=!0,s=this.input.charCodeAt(this.state.pos)),(s===69||s===101)&&!i&&(s=this.input.charCodeAt(++this.state.pos),(s===43||s===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(W.InvalidOrMissingExponent,r),n=!0,s=this.input.charCodeAt(this.state.pos)),s===110&&((n||a)&&this.raise(W.InvalidBigIntLiteral,r),++this.state.pos,o=!0),Yp(this.codePointAtPos(this.state.pos)))throw this.raise(W.NumberIdentifier,this.state.curPosition());let c=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(o){this.finishToken(136,c);return}let p=i?parseInt(c,8):parseFloat(c);this.finishToken(135,p)}readCodePoint(e){let{code:t,pos:r}=Epe(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,t}readString(e){let{str:t,pos:r,curLine:n,lineStart:o}=Jue(e===34?"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=o,this.state.curLine=n,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:r,pos:n,curLine:o,lineStart:i}=Jue("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=o,r&&(this.state.firstInvalidTemplateEscapePos=new qm(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))),this.input.codePointAt(n)===96?this.finishToken(24,r?null:e+t+"`"):(this.state.pos++,this.finishToken(25,r?null:e+t+"${"))}recordStrictModeErrors(e,t){let 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="",r=this.state.pos,n=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos=0;a--){let s=i[a];if(s.loc.index===o)return i[a]=e(n,r);if(s.loc.indexthis.hasPlugin(t)))throw this.raise(W.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,r,n)=>{this.raise(e,rD(t,r,n))}}errorHandlers_readInt={invalidDigit:(e,t,r,n)=>this.optionFlags&2048?(this.raise(W.InvalidDigit,rD(e,t,r),{radix:n}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(W.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(W.UnexpectedNumericSeparator)};errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(W.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(W.InvalidCodePoint)});errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,r)=>{this.recordStrictModeErrors(W.StrictNumericEscape,rD(e,t,r))},unterminated:(e,t,r)=>{throw this.raise(W.UnterminatedString,rD(e-1,t,r))}});errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(W.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(W.UnterminatedTemplate,rD(e,t,r))}})},xVe=class{privateNames=new Set;loneAccessors=new Map;undefinedPrivateNames=new Map},EVe=class{parser;stack=[];undefinedPrivateNames=new Map;constructor(e){this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new xVe)}exit(){let e=this.stack.pop(),t=this.current();for(let[r,n]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(r)||t.undefinedPrivateNames.set(r,n):this.parser.raise(W.InvalidPrivateFieldResolution,n,{identifierName:r})}declarePrivateName(e,t,r){let{privateNames:n,loneAccessors:o,undefinedPrivateNames:i}=this.current(),a=n.has(e);if(t&3){let s=a&&o.get(e);if(s){let c=s&4,p=t&4,d=s&3,f=t&3;a=d===f||c!==p,a||o.delete(e)}else a||o.set(e,t)}a&&this.parser.raise(W.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(W.InvalidPrivateFieldResolution,t,{identifierName:e})}},I3=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Tpe=class extends I3{declarationErrors=new Map;constructor(e){super(e)}recordDeclarationError(e,t){let r=t.index;this.declarationErrors.set(r,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},TVe=class{parser;stack=[new I3];constructor(e){this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let r=t.loc.start,{stack:n}=this,o=n.length-1,i=n[o];for(;!i.isCertainlyParameterDeclaration();){if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(e,r);else return;i=n[--o]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,t){let{stack:r}=this,n=r[r.length-1],o=t.loc.start;if(n.isCertainlyParameterDeclaration())this.parser.raise(e,o);else if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(e,o);else return}recordAsyncArrowParametersError(e){let{stack:t}=this,r=t.length-1,n=t[r];for(;n.canBeArrowParameterDeclaration();)n.type===2&&n.recordDeclarationError(W.AwaitBindingIdentifier,e),n=t[--r]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([r,n])=>{this.parser.raise(r,n);let o=e.length-2,i=e[o];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n.index),i=e[--o]})}};function DVe(){return new I3(3)}function AVe(){return new Tpe(1)}function wVe(){return new Tpe(2)}function Dpe(){return new I3}var IVe=class extends bVe{addExtra(e,t,r,n=!0){if(!e)return;let{extra:o}=e;o==null&&(o={},e.extra=o),n?o[t]=r:Object.defineProperty(o,t,{enumerable:n,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){let r=this.input.charCodeAt(e+t.length);return!(mg(r)||(r&64512)===55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,t){if(!this.eatContextual(e)){if(t!=null)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return zue(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return zue(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(W.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let r={node:null};try{let n=e((o=null)=>{throw r.node=o,r});if(this.state.errors.length>t.errors.length){let o=this.state;return this.state=t,this.state.tokensLength=o.tokensLength,{node:n,error:o.errors[t.errors.length],thrown:!1,aborted:!1,failState:o}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(n){let o=this.state;if(this.state=t,n instanceof SyntaxError)return{node:null,error:n,thrown:!0,aborted:!1,failState:o};if(n===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:o};throw n}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:r,doubleProtoLoc:n,privateKeyLoc:o,optionalParametersLoc:i,voidPatternLoc:a}=e,s=!!r||!!n||!!i||!!o||!!a;if(!t)return s;r!=null&&this.raise(W.InvalidCoverInitializedName,r),n!=null&&this.raise(W.DuplicateProto,n),o!=null&&this.raise(W.UnexpectedPrivateField,o),i!=null&&this.unexpected(i),a!=null&&this.raise(W.InvalidCoverDiscardElement,a)}isLiteralPropertyName(){return dpe(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){let t=this.state.labels;this.state.labels=[];let r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let n=this.inModule;this.inModule=e;let o=this.scope,i=this.getScopeHandler();this.scope=new i(this,e);let a=this.prodParam;this.prodParam=new pVe;let s=this.classScope;this.classScope=new EVe(this);let c=this.expressionScope;return this.expressionScope=new TVe(this),()=>{this.state.labels=t,this.exportedIdentifiers=r,this.inModule=n,this.scope=o,this.prodParam=a,this.classScope=s,this.expressionScope=c}}enterInitialScopes(){let e=0;(this.inModule||this.optionFlags&1)&&(e|=2),this.optionFlags&32&&(e|=1);let t=!this.inModule&&this.options.sourceType==="commonjs";(t||this.optionFlags&2)&&(e|=4),this.prodParam.enter(e);let r=t?514:1;this.optionFlags&4&&(r|=512),this.optionFlags&16&&(r|=48),this.scope.enter(r)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;t!==null&&this.expectPlugin("destructuringPrivate",t)}},D3=class{shorthandAssignLoc=null;doubleProtoLoc=null;privateKeyLoc=null;optionalParametersLoc=null;voidPatternLoc=null},Yq=class{constructor(e,t,r){this.start=t,this.end=0,this.loc=new w3(r),e?.optionFlags&128&&(this.range=[t,0]),e?.filename&&(this.loc.filename=e.filename)}type=""},Kue=Yq.prototype,kVe=class extends IVe{startNode(){let e=this.state.startLoc;return new Yq(this,e.index,e)}startNodeAt(e){return new Yq(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,this.optionFlags&128&&(e.range[1]=r.index),this.optionFlags&4096&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.optionFlags&128&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,this.optionFlags&128&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}castNodeTo(e,t){return e.type=t,e}cloneIdentifier(e){let{type:t,start:r,end:n,loc:o,range:i,name:a}=e,s=Object.create(Kue);return s.type=t,s.start=r,s.end=n,s.loc=o,s.range=i,s.name=a,e.extra&&(s.extra=e.extra),s}cloneStringLiteral(e){let{type:t,start:r,end:n,loc:o,range:i,extra:a}=e,s=Object.create(Kue);return s.type=t,s.start=r,s.end=n,s.loc=o,s.range=i,s.extra=a,s.value=e.value,s}},eU=e=>e.type==="ParenthesizedExpression"?eU(e.expression):e,CVe=class extends kVe{toAssignable(e,t=!1){let r;switch((e.type==="ParenthesizedExpression"||e.extra?.parenthesized)&&(r=eU(e),t?r.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(W.InvalidParenthesizedAssignment,e):r.type!=="CallExpression"&&r.type!=="MemberExpression"&&!this.isOptionalMemberExpression(r)&&this.raise(W.InvalidParenthesizedAssignment,e):this.raise(W.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 n=0,o=e.properties.length,i=o-1;nn.type!=="ObjectMethod"&&(o===r||n.type!=="SpreadElement")&&this.isAssignable(n))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(r=>r===null||this.isAssignable(r));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(let r of e)r?.type==="ArrayExpression"&&this.toReferencedListDeep(r.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){let e=this.startNode();this.next();let t=this.parseBindingAtom();return t.type==="VoidPattern"&&this.raise(W.UnexpectedVoidPattern,t),e.argument=t,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let 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){let n=r&1,o=[],i=!0;for(;!this.eat(e);)if(i?i=!1:this.expect(12),n&&this.match(12))o.push(null);else{if(this.eat(e))break;if(this.match(21)){let a=this.parseRestBinding();if(r&2&&(a=this.parseFunctionParamType(a)),o.push(a),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let a=[];if(r&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(W.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)a.push(this.parseDecorator());o.push(this.parseBindingElement(r,a))}}return o}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(W.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let r=this.startNode();return e===139?(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){let r=this.parseMaybeDefault();return e&2&&this.parseFunctionParamType(r),t.length&&(r.decorators=t,this.resetStartLocationFromNode(r,t[0])),this.parseMaybeDefault(r.loc.start,r)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(e??(e=this.state.startLoc),t=t??this.parseBindingAtom(),!this.eat(29))return t;let r=this.startNodeAt(e);return t.type==="VoidPattern"&&this.raise(W.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&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,t,r=64,n=!1,o=!1,i=!1,a=!1){let s=e.type;if(this.isObjectMethod(e))return;let c=this.isOptionalMemberExpression(e);if(c||s==="MemberExpression"){c&&(this.expectPlugin("optionalChainingAssign",e.loc.start),t.type!=="AssignmentExpression"&&this.raise(W.InvalidLhsOptionalChaining,e,{ancestor:t})),r!==64&&this.raise(W.InvalidPropertyBindingPattern,e);return}if(s==="Identifier"){this.checkIdentifier(e,r,o);let{name:S}=e;n&&(n.has(S)?this.raise(W.ParamDupe,e):n.add(S));return}else s==="VoidPattern"&&t.type==="CatchClause"&&this.raise(W.VoidPatternCatchClauseParam,e);let p=eU(e);a||(a=p.type==="CallExpression"&&(p.callee.type==="Import"||p.callee.type==="Super"));let d=this.isValidLVal(s,a,!(i||e.extra?.parenthesized)&&t.type==="AssignmentExpression",r);if(d===!0)return;if(d===!1){let S=r===64?W.InvalidLhs:W.InvalidLhsBinding;this.raise(S,e,{ancestor:t});return}let f,m;typeof d=="string"?(f=d,m=s==="ParenthesizedExpression"):[f,m]=d;let y=s==="ArrayPattern"||s==="ObjectPattern"?{type:s}:t,g=e[f];if(Array.isArray(g))for(let S of g)S&&this.checkLVal(S,y,r,n,o,m,!0);else g&&this.checkLVal(g,y,r,n,o,m,a)}checkIdentifier(e,t,r=!1){this.state.strict&&(r?Spe(e.name,this.inModule):gpe(e.name))&&(t===64?this.raise(W.StrictEvalArguments,e,{referenceName:e.name}):this.raise(W.StrictEvalArgumentsBinding,e,{bindingName:e.name})),t&8192&&e.name==="let"&&this.raise(W.LetInLexicalBinding,e),t&64||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(W.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?W.RestTrailingComma:W.ElementAfterRest,this.state.startLoc),!0):!1}},Jq=/in(?:stanceof)?|as|satisfies/y;function PVe(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function Gue(e){if(!e)throw new Error("Assert fail")}var xt=Xp`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 `() => ...`.",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 OVe(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}}function Hue(e){return e==="private"||e==="public"||e==="protected"}function NVe(e){return e==="in"||e==="out"}function tU(e){if(e.extra?.parenthesized)return!1;switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&tU(e.object);case"TSInstantiationExpression":return tU(e.expression);default:return!1}}var FVe=e=>class extends e{getScopeHandler(){return uVe}tsIsIdentifier(){return Qn(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()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(t,r,n){if(!Qn(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let o=this.state.value;if(t.includes(o)){if(n&&this.match(106)||r&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return o}}tsParseModifiers({allowedModifiers:t,disallowedModifiers:r,stopOnStartOfClassStaticBlock:n,errorTemplate:o=xt.InvalidModifierOnTypeMember},i){let a=(c,p,d,f)=>{p===d&&i[f]&&this.raise(xt.InvalidModifiersOrder,c,{orderedModifiers:[d,f]})},s=(c,p,d,f)=>{(i[d]&&p===f||i[f]&&p===d)&&this.raise(xt.IncompatibleModifiers,c,{modifiers:[d,f]})};for(;;){let{startLoc:c}=this.state,p=this.tsParseModifier(t.concat(r??[]),n,i.static);if(!p)break;Hue(p)?i.accessibility?this.raise(xt.DuplicateAccessibilityModifier,c,{modifier:p}):(a(c,p,p,"override"),a(c,p,p,"static"),a(c,p,p,"readonly"),i.accessibility=p):NVe(p)?(i[p]&&this.raise(xt.DuplicateModifier,c,{modifier:p}),i[p]=!0,a(c,p,"in","out")):(Object.prototype.hasOwnProperty.call(i,p)?this.raise(xt.DuplicateModifier,c,{modifier:p}):(a(c,p,"static","readonly"),a(c,p,"static","override"),a(c,p,"override","readonly"),a(c,p,"abstract","override"),s(c,p,"declare","override"),s(c,p,"static","abstract")),i[p]=!0),r?.includes(p)&&this.raise(o,c,{modifier:p})}}tsIsListTerminator(t){switch(t){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(t,r){let n=[];for(;!this.tsIsListTerminator(t);)n.push(r());return n}tsParseDelimitedList(t,r,n){return PVe(this.tsParseDelimitedListWorker(t,r,!0,n))}tsParseDelimitedListWorker(t,r,n,o){let i=[],a=-1;for(;!this.tsIsListTerminator(t);){a=-1;let s=r();if(s==null)return;if(i.push(s),this.eat(12)){a=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(t))break;n&&this.expect(12);return}return o&&(o.value=a),i}tsParseBracketedList(t,r,n,o,i){o||(n?this.expect(0):this.expect(47));let a=this.tsParseDelimitedList(t,r,i);return n?this.expect(3):this.expect(48),a}tsParseImportType(){let t=this.startNode();return this.expect(83),this.expect(10),this.match(134)?t.argument=this.tsParseLiteralTypeNode():(this.raise(xt.UnsupportedImportTypeArgument,this.state.startLoc),t.argument=this.tsParseNonConditionalType()),this.eat(12)?t.options=this.tsParseImportTypeOptions():t.options=null,this.expect(11),this.eat(16)&&(t.qualifier=this.tsParseEntityName(3)),this.match(47)&&(t.typeArguments=this.tsParseTypeArguments()),this.finishNode(t,"TSImportType")}tsParseImportTypeOptions(){let t=this.startNode();this.expect(5);let r=this.startNode();return this.isContextual(76)?(r.method=!1,r.key=this.parseIdentifier(!0),r.computed=!1,r.shorthand=!1):this.unexpected(null,76),this.expect(14),r.value=this.tsParseImportTypeWithPropertyValue(),t.properties=[this.finishObjectProperty(r)],this.eat(12),this.expect(8),this.finishNode(t,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let t=this.startNode(),r=[];for(this.expect(5);!this.match(8);){let n=this.state.type;Qn(n)||n===134?r.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return t.properties=r,this.next(),this.finishNode(t,"ObjectExpression")}tsParseEntityName(t){let r;if(t&1&&this.match(78))if(t&2)r=this.parseIdentifier(!0);else{let n=this.startNode();this.next(),r=this.finishNode(n,"ThisExpression")}else r=this.parseIdentifier(!!(t&1));for(;this.eat(16);){let n=this.startNodeAtNode(r);n.left=r,n.right=this.parseIdentifier(!!(t&1)),r=this.finishNode(n,"TSQualifiedName")}return r}tsParseTypeReference(){let t=this.startNode();return t.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeArguments=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeReference")}tsParseThisTypePredicate(t){this.next();let r=this.startNodeAtNode(t);return r.parameterName=t,r.typeAnnotation=this.tsParseTypeAnnotation(!1),r.asserts=!1,this.finishNode(r,"TSTypePredicate")}tsParseThisTypeNode(){let t=this.startNode();return this.next(),this.finishNode(t,"TSThisType")}tsParseTypeQuery(){let t=this.startNode();return this.expect(87),this.match(83)?t.exprName=this.tsParseImportType():t.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeArguments=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeQuery")}tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:xt.InvalidModifierOnTypeParameter});tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:xt.InvalidModifierOnTypeParameterPositions});tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:xt.InvalidModifierOnTypeParameter});tsParseTypeParameter(t){let r=this.startNode();return t(r),r.name=this.tsParseTypeParameterName(),r.constraint=this.tsEatThenParseType(81),r.default=this.tsEatThenParseType(29),this.finishNode(r,"TSTypeParameter")}tsTryParseTypeParameters(t){if(this.match(47))return this.tsParseTypeParameters(t)}tsParseTypeParameters(t){let r=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let n={value:-1};return r.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,t),!1,!0,n),r.params.length===0&&this.raise(xt.EmptyTypeParameters,r),n.value!==-1&&this.addExtra(r,"trailingComma",n.value),this.finishNode(r,"TSTypeParameterDeclaration")}tsFillSignature(t,r){let n=t===19,o="params",i="returnType";r.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),r[o]=this.tsParseBindingListForSignature(),n?r[i]=this.tsParseTypeOrTypePredicateAnnotation(t):this.match(t)&&(r[i]=this.tsParseTypeOrTypePredicateAnnotation(t))}tsParseBindingListForSignature(){let t=super.parseBindingList(11,41,2);for(let r of t){let{type:n}=r;(n==="AssignmentPattern"||n==="TSParameterProperty")&&this.raise(xt.UnsupportedSignatureParameterKind,r,{type:n})}return t}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(t,r){return this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon(),this.finishNode(r,t)}tsIsUnambiguouslyIndexSignature(){return this.next(),Qn(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(t){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let r=this.parseIdentifier();r.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(r),this.expect(3),t.parameters=[r];let n=this.tsTryParseTypeAnnotation();return n&&(t.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSIndexSignature")}tsParsePropertyOrMethodSignature(t,r){if(this.eat(17)&&(t.optional=!0),this.match(10)||this.match(47)){r&&this.raise(xt.ReadonlyForMethodSignature,t);let n=t;n.kind&&this.match(47)&&this.raise(xt.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();let o="params",i="returnType";if(n.kind==="get")n[o].length>0&&(this.raise(W.BadGetterArity,this.state.curPosition()),this.isThisParam(n[o][0])&&this.raise(xt.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(n.kind==="set"){if(n[o].length!==1)this.raise(W.BadSetterArity,this.state.curPosition());else{let a=n[o][0];this.isThisParam(a)&&this.raise(xt.AccessorCannotDeclareThisParameter,this.state.curPosition()),a.type==="Identifier"&&a.optional&&this.raise(xt.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),a.type==="RestElement"&&this.raise(xt.SetAccessorCannotHaveRestParameter,this.state.curPosition())}n[i]&&this.raise(xt.SetAccessorCannotHaveReturnType,n[i])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}else{let n=t;r&&(n.readonly=!0);let o=this.tsTryParseTypeAnnotation();return o&&(n.typeAnnotation=o),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"TSPropertySignature")}}tsParseTypeMember(){let t=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(77)){let n=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(n,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},t),this.tsTryParseIndexSignature(t)||(super.parsePropertyName(t),!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.tsTokenCanFollowModifier()&&(t.kind=t.key.name,super.parsePropertyName(t),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(t,!!t.readonly))}tsParseTypeLiteral(){let t=this.startNode();return t.members=this.tsParseObjectTypeMembers(),this.finishNode(t,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let t=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),t}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let t=this.startNode();return this.expect(5),this.match(53)?(t.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(t.readonly=!0),this.expect(0),t.key=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),t.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(t.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(t.optional=!0),t.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(t,"TSMappedType")}tsParseTupleType(){let t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let r=!1;return t.elementTypes.forEach(n=>{let{type:o}=n;r&&o!=="TSRestType"&&o!=="TSOptionalType"&&!(o==="TSNamedTupleMember"&&n.optional)&&this.raise(xt.OptionalTypeBeforeRequired,n),r||(r=o==="TSNamedTupleMember"&&n.optional||o==="TSOptionalType")}),this.finishNode(t,"TSTupleType")}tsParseTupleElementType(){let t=this.state.startLoc,r=this.eat(21),{startLoc:n}=this.state,o,i,a,s,c=Pu(this.state.type)?this.lookaheadCharCode():null;if(c===58)o=!0,a=!1,i=this.parseIdentifier(!0),this.expect(14),s=this.tsParseType();else if(c===63){a=!0;let p=this.state.value,d=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(o=!0,i=this.createIdentifier(this.startNodeAt(n),p),this.expect(17),this.expect(14),s=this.tsParseType()):(o=!1,s=d,this.expect(17))}else s=this.tsParseType(),a=this.eat(17),o=this.eat(14);if(o){let p;i?(p=this.startNodeAt(n),p.optional=a,p.label=i,p.elementType=s,this.eat(17)&&(p.optional=!0,this.raise(xt.TupleOptionalAfterType,this.state.lastTokStartLoc))):(p=this.startNodeAt(n),p.optional=a,this.raise(xt.InvalidTupleMemberLabel,s),p.label=s,p.elementType=this.tsParseType()),s=this.finishNode(p,"TSNamedTupleMember")}else if(a){let p=this.startNodeAt(n);p.typeAnnotation=s,s=this.finishNode(p,"TSOptionalType")}if(r){let p=this.startNodeAt(t);p.typeAnnotation=s,s=this.finishNode(p,"TSRestType")}return s}tsParseParenthesizedType(){let t=this.startNode();return this.expect(10),t.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(t,"TSParenthesizedType")}tsParseFunctionOrConstructorType(t,r){let n=this.startNode();return t==="TSConstructorType"&&(n.abstract=!!r,r&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,t)}tsParseLiteralTypeNode(){let t=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:t.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(t,"TSLiteralType")}tsParseTemplateLiteralType(){{let t=this.state.startLoc,r=this.parseTemplateElement(!1),n=[r];if(r.tail){let o=this.startNodeAt(t),i=this.startNodeAt(t);return i.expressions=[],i.quasis=n,o.literal=this.finishNode(i,"TemplateLiteral"),this.finishNode(o,"TSLiteralType")}else{let o=[];for(;!r.tail;)o.push(this.tsParseType()),this.readTemplateContinuation(),n.push(r=this.parseTemplateElement(!1));let i=this.startNodeAt(t);return i.types=o,i.quasis=n,this.finishNode(i,"TSTemplateLiteralType")}}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let t=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(t):t}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let t=this.startNode(),r=this.lookahead();return r.type!==135&&r.type!==136&&this.unexpected(),t.literal=this.parseMaybeUnary(),this.finishNode(t,"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:if(!(this.optionFlags&1024)){let t=this.state.startLoc;this.next();let r=this.tsParseType();return this.expect(11),this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),r}return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:t}=this.state;if(Qn(t)||t===88||t===84){let r=t===88?"TSVoidKeyword":t===84?"TSNullKeyword":OVe(this.state.value);if(r!==void 0&&this.lookaheadCharCode()!==46){let n=this.startNode();return this.next(),this.finishNode(n,r)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:t}=this.state,r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let n=this.startNodeAt(t);n.elementType=r,this.expect(3),r=this.finishNode(n,"TSArrayType")}else{let n=this.startNodeAt(t);n.objectType=r,n.indexType=this.tsParseType(),this.expect(3),r=this.finishNode(n,"TSIndexedAccessType")}return r}tsParseTypeOperator(){let t=this.startNode(),r=this.state.value;return this.next(),t.operator=r,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),r==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(t){switch(t.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(xt.UnexpectedReadonly,t)}}tsParseInferType(){let t=this.startNode();this.expectContextual(115);let r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),t.typeParameter=this.finishNode(r,"TSTypeParameter"),this.finishNode(t,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let t=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return t}}tsParseTypeOperatorOrHigher(){return jze(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(t,r,n){let o=this.startNode(),i=this.eat(n),a=[];do a.push(r());while(this.eat(n));return a.length===1&&!i?a[0]:(o.types=a,this.finishNode(o,t))}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)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Qn(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:t}=this.state,r=t.length;try{return this.parseObjectLike(8,!0),t.length===r}catch{return!1}}if(this.match(0)){this.next();let{errors:t}=this.state,r=t.length;try{return super.parseBindingList(3,93,1),t.length===r}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(t){return this.tsInType(()=>{let r=this.startNode();this.expect(t);let n=this.startNode(),o=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(o&&this.match(78)){let s=this.tsParseThisTypeOrThisTypePredicate();return s.type==="TSThisType"?(n.parameterName=s,n.asserts=!0,n.typeAnnotation=null,s=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(s,n),s.asserts=!0),r.typeAnnotation=s,this.finishNode(r,"TSTypeAnnotation")}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return o?(n.parameterName=this.parseIdentifier(),n.asserts=o,n.typeAnnotation=null,r.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,r);let a=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=a,n.asserts=o,r.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let t=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),t}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let t=this.state.containsEsc;return this.next(),!Qn(this.state.type)&&!this.match(78)?!1:(t&&this.raise(W.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(t=!0,r=this.startNode()){return this.tsInType(()=>{t&&this.expect(14),r.typeAnnotation=this.tsParseType()}),this.finishNode(r,"TSTypeAnnotation")}tsParseType(){Gue(this.state.inType);let t=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return t;let r=this.startNodeAtNode(t);return r.checkType=t,r.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),r.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),r.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(r,"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(xt.ReservedTypeAssertion,this.state.startLoc);let t=this.startNode();return t.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")}tsParseHeritageClause(t){let r=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let o=super.parseExprSubscripts();tU(o)||this.raise(xt.InvalidHeritageClauseType,o.loc.start,{token:t});let i=t==="extends"?"TSInterfaceHeritage":"TSClassImplements";if(o.type==="TSInstantiationExpression")return o.type=i,o;let a=this.startNodeAtNode(o);return a.expression=o,(this.match(47)||this.match(51))&&(a.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(a,i)}});return n.length||this.raise(xt.EmptyHeritageClauseType,r,{token:t}),n}tsParseInterfaceDeclaration(t,r={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),r.declare&&(t.declare=!0),Qn(this.state.type)?(t.id=this.parseIdentifier(),this.checkIdentifier(t.id,130)):(t.id=null,this.raise(xt.MissingInterfaceName,this.state.startLoc)),t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(t.extends=this.tsParseHeritageClause("extends"));let n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),t.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(t,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(t){return t.id=this.parseIdentifier(),this.checkIdentifier(t.id,2),t.typeAnnotation=this.tsInType(()=>{if(t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let r=this.startNode();return this.next(),this.finishNode(r,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(t,"TSTypeAliasDeclaration")}tsInTopLevelContext(t){if(this.curContext()!==Lo.brace){let r=this.state.context;this.state.context=[r[0]];try{return t()}finally{this.state.context=r}}else return t()}tsInType(t){let r=this.state.inType;this.state.inType=!0;try{return t()}finally{this.state.inType=r}}tsInDisallowConditionalTypesContext(t){let r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return t()}finally{this.state.inDisallowConditionalTypesContext=r}}tsInAllowConditionalTypesContext(t){let r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return t()}finally{this.state.inDisallowConditionalTypesContext=r}}tsEatThenParseType(t){if(this.match(t))return this.tsNextThenParseType()}tsExpectThenParseType(t){return this.tsInType(()=>(this.expect(t),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let t=this.startNode();return t.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(t.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(t,"TSEnumMember")}tsParseEnumDeclaration(t,r={}){return r.const&&(t.const=!0),r.declare&&(t.declare=!0),this.expectContextual(126),t.id=this.parseIdentifier(),this.checkIdentifier(t.id,t.const?8971:8459),t.body=this.tsParseEnumBody(),this.finishNode(t,"TSEnumDeclaration")}tsParseEnumBody(){let t=this.startNode();return this.expect(5),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(t,"TSEnumBody")}tsParseModuleBlock(){let t=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(t,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(t,r=!1){return t.id=this.tsParseEntityName(1),t.id.type==="Identifier"&&this.checkIdentifier(t.id,1024),this.scope.enter(1024),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit(),this.finishNode(t,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(t){return this.isContextual(112)?(t.kind="global",t.id=this.parseIdentifier()):this.match(134)?(t.kind="module",t.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(t,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(t,r,n){t.id=r||this.parseIdentifier(),this.checkIdentifier(t.id,4096),this.expect(29);let o=this.tsParseModuleReference();return t.importKind==="type"&&o.type!=="TSExternalModuleReference"&&this.raise(xt.ImportAliasHasImportType,o),t.moduleReference=o,this.semicolon(),this.finishNode(t,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let t=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),t.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExternalModuleReference")}tsLookAhead(t){let r=this.state.clone(),n=t();return this.state=r,n}tsTryParseAndCatch(t){let r=this.tryParse(n=>t()||n());if(!(r.aborted||!r.node))return r.error&&(this.state=r.failState),r.node}tsTryParse(t){let r=this.state.clone(),n=t();if(n!==void 0&&n!==!1)return n;this.state=r}tsTryParseDeclare(t){if(this.isLineTerminator())return;let r=this.state.type;return this.tsInAmbientContext(()=>{switch(r){case 68:return t.declare=!0,super.parseFunctionStatement(t,!1,!1);case 80:return t.declare=!0,this.parseClass(t,!0,!1);case 126:return this.tsParseEnumDeclaration(t,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(t);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(t.declare=!0,this.parseVarStatement(t,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(t,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(xt.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),t.declare=!0,this.parseVarStatement(t,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(xt.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),t.declare=!0,this.next(),this.parseVarStatement(t,"await using",!0);break;case 129:{let n=this.tsParseInterfaceDeclaration(t,{declare:!0});if(n)return n}default:if(Qn(r))return this.tsParseDeclaration(t,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(t,r,n,o){switch(r){case 124:if(this.tsCheckLineTerminator(n)&&(this.match(80)||Qn(this.state.type)))return this.tsParseAbstractDeclaration(t,o);break;case 127:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(t);if(Qn(this.state.type))return t.kind="module",this.tsParseModuleOrNamespaceDeclaration(t)}break;case 128:if(this.tsCheckLineTerminator(n)&&Qn(this.state.type))return t.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(t);break;case 130:if(this.tsCheckLineTerminator(n)&&Qn(this.state.type))return this.tsParseTypeAliasDeclaration(t);break}}tsCheckLineTerminator(t){return t?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(t){if(!this.match(47))return;let r=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let n=this.tsTryParseAndCatch(()=>{let o=this.startNodeAt(t);return o.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(o),o.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),o});if(this.state.maybeInArrowParameters=r,!!n)return super.parseArrowExpression(n,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let t=this.startNode();return t.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),t.params.length===0?this.raise(xt.EmptyTypeArguments,t):!this.state.inType&&this.curContext()===Lo.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return Bze(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(t,r){let n=r.length?r[0].loc.start:this.state.startLoc,o={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},o);let i=o.accessibility,a=o.override,s=o.readonly;!(t&4)&&(i||s||a)&&this.raise(xt.UnexpectedParameterModifier,n);let c=this.parseMaybeDefault();t&2&&this.parseFunctionParamType(c);let p=this.parseMaybeDefault(c.loc.start,c);if(i||s||a){let d=this.startNodeAt(n);return r.length&&(d.decorators=r),i&&(d.accessibility=i),s&&(d.readonly=s),a&&(d.override=a),p.type!=="Identifier"&&p.type!=="AssignmentPattern"&&this.raise(xt.UnsupportedParameterPropertyKind,d),d.parameter=p,this.finishNode(d,"TSParameterProperty")}return r.length&&(c.decorators=r),p}isSimpleParameter(t){return t.type==="TSParameterProperty"&&super.isSimpleParameter(t.parameter)||super.isSimpleParameter(t)}tsDisallowOptionalPattern(t){for(let r of t.params)r.type!=="Identifier"&&r.optional&&!this.state.isAmbientContext&&this.raise(xt.PatternIsOptional,r)}setArrowFunctionParameters(t,r,n){super.setArrowFunctionParameters(t,r,n),this.tsDisallowOptionalPattern(t)}parseFunctionBodyAndFinish(t,r,n=!1){this.match(14)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let o=r==="FunctionDeclaration"?"TSDeclareFunction":r==="ClassMethod"||r==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return o&&!this.match(5)&&this.isLineTerminator()?this.finishNode(t,o):o==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(xt.DeclareFunctionHasImplementation,t),t.declare)?super.parseFunctionBodyAndFinish(t,o,n):(this.tsDisallowOptionalPattern(t),super.parseFunctionBodyAndFinish(t,r,n))}registerFunctionStatementId(t){!t.body&&t.id?this.checkIdentifier(t.id,1024):super.registerFunctionStatementId(t)}tsCheckForInvalidTypeCasts(t){t.forEach(r=>{r?.type==="TSTypeCastExpression"&&this.raise(xt.UnexpectedTypeAnnotation,r.typeAnnotation)})}toReferencedList(t,r){return this.tsCheckForInvalidTypeCasts(t),t}parseArrayLike(t,r,n){let o=super.parseArrayLike(t,r,n);return o.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(o.elements),o}parseSubscript(t,r,n,o){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let a=this.startNodeAt(r);return a.expression=t,this.finishNode(a,"TSNonNullExpression")}let i=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(n)return o.stop=!0,t;o.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let a,s=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(t)){let f=this.tsTryParseGenericAsyncArrowFunction(r);if(f)return o.stop=!0,f}let c=this.tsParseTypeArgumentsInExpression();if(!c)return;if(i&&!this.match(10)){a=this.state.curPosition();return}if(Wq(this.state.type)){let f=super.parseTaggedTemplateExpression(t,r,o);return f.typeArguments=c,f}if(!n&&this.eat(10)){let f=this.startNodeAt(r);return f.callee=t,f.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(f.arguments),f.typeArguments=c,o.optionalChainMember&&(f.optional=i),this.finishCallExpression(f,o.optionalChainMember)}let p=this.state.type;if(p===48||p===52||p!==10&&oD(p)&&!this.hasPrecedingLineBreak())return;let d=this.startNodeAt(r);return d.expression=t,d.typeArguments=c,this.finishNode(d,"TSInstantiationExpression")});if(a&&this.unexpected(a,10),s)return s.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(xt.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(s.expression=super.stopParseSubscript(t,o))),s}return super.parseSubscript(t,r,n,o)}parseNewCallee(t){super.parseNewCallee(t);let{callee:r}=t;r.type==="TSInstantiationExpression"&&!r.extra?.parenthesized&&(t.typeArguments=r.typeArguments,t.callee=r.expression)}parseExprOp(t,r,n){let o;if(E3(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(o=this.isContextual(120)))){let i=this.startNodeAt(r);return i.expression=t,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(o&&this.raise(W.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(i,o?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,r,n)}return super.parseExprOp(t,r,n)}checkReservedWord(t,r,n,o){this.state.isAmbientContext||super.checkReservedWord(t,r,n,o)}checkImportReflection(t){super.checkImportReflection(t),t.module&&t.importKind!=="value"&&this.raise(xt.ImportReflectionHasImportType,t.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(t){if(super.isPotentialImportPhase(t))return!0;if(this.isContextual(130)){let r=this.lookaheadCharCode();return t?r===123||r===42:r!==61}return!t&&this.isContextual(87)}applyImportPhase(t,r,n,o){super.applyImportPhase(t,r,n,o),r?t.exportKind=n==="type"?"type":"value":t.importKind=n==="type"||n==="typeof"?n:"value"}parseImport(t){if(this.match(134))return t.importKind="value",super.parseImport(t);let r;if(Qn(this.state.type)&&this.lookaheadCharCode()===61)return t.importKind="value",this.tsParseImportEqualsDeclaration(t);if(this.isContextual(130)){let n=this.parseMaybeImportPhase(t,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(t,n);r=super.parseImportSpecifiersAndAfter(t,n)}else r=super.parseImport(t);return r.importKind==="type"&&r.specifiers.length>1&&r.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(xt.TypeImportCannotSpecifyDefaultAndNamed,r),r}parseExport(t,r){if(this.match(83)){let n=this.startNode();this.next();let o=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?o=this.parseMaybeImportPhase(n,!1):n.importKind="value";let i=this.tsParseImportEqualsDeclaration(n,o,!0);return t.attributes=[],t.declaration=i,t.exportKind="value",t.source=null,t.specifiers=[],this.finishNode(t,"ExportNamedDeclaration")}else if(this.eat(29)){let n=t;return n.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(n,"TSExportAssignment")}else if(this.eatContextual(93)){let n=t;return this.expectContextual(128),n.id=this.parseIdentifier(),this.semicolon(),this.finishNode(n,"TSNamespaceExportDeclaration")}else return super.parseExport(t,r)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0,!0)}if(this.match(129)){let t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return super.parseExportDefaultExpression()}parseVarStatement(t,r,n=!1){let{isAmbientContext:o}=this.state,i=super.parseVarStatement(t,r,n||o);if(!o)return i;if(!t.declare&&(r==="using"||r==="await using"))return this.raiseOverwrite(xt.UsingDeclarationInAmbientContext,t,r),i;for(let{id:a,init:s}of i.declarations)s&&(r==="var"||r==="let"||a.typeAnnotation?this.raise(xt.InitializerNotAllowedInAmbientContext,s):LVe(s,this.hasPlugin("estree"))||this.raise(xt.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,s));return i}parseStatementContent(t,r){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let n=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(n,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let n=this.state.type,o=this.startNode();this.next();let i=n===125?this.tsTryParseDeclare(o):this.tsParseAbstractDeclaration(o,r);return i?(n===125&&(i.declare=!0),i):(o.expression=this.createIdentifier(this.startNodeAt(o.loc.start),n===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(o,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let n=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(n)}break}case 129:{let n=this.tsParseInterfaceDeclaration(this.startNode());if(n)return n;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let n=this.startNode();return this.next(),this.tsParseDeclaration(n,127,!1,r)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let n=this.startNode();return this.next(),this.tsParseDeclaration(n,128,!1,r)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let n=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(n)}break}}return super.parseStatementContent(t,r)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(t,r){return r.some(n=>Hue(n)?t.accessibility===n:!!t[n])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(t,r,n){let o=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:o,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:xt.InvalidModifierOnTypeParameterPositions},r);let i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(r,o)&&this.raise(xt.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(t,r)):this.parseClassMemberWithIsStatic(t,r,n,!!r.static)};r.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(t,r,n,o){let i=this.tsTryParseIndexSignature(r);if(i){t.body.push(i),r.abstract&&this.raise(xt.IndexSignatureHasAbstract,r),r.accessibility&&this.raise(xt.IndexSignatureHasAccessibility,r,{modifier:r.accessibility}),r.declare&&this.raise(xt.IndexSignatureHasDeclare,r),r.override&&this.raise(xt.IndexSignatureHasOverride,r);return}!this.state.inAbstractClass&&r.abstract&&this.raise(xt.NonAbstractClassHasAbstractMethod,r),r.override&&(n.hadSuperClass||this.raise(xt.OverrideNotInSubClass,r)),super.parseClassMemberWithIsStatic(t,r,n,o)}parsePostMemberNameModifiers(t){this.eat(17)&&(t.optional=!0),t.readonly&&this.match(10)&&this.raise(xt.ClassMethodHasReadonly,t),t.declare&&this.match(10)&&this.raise(xt.ClassMethodHasDeclare,t)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(t,r,n){if(!this.match(17))return t;if(this.state.maybeInArrowParameters){let o=this.lookaheadCharCode();if(o===44||o===61||o===58||o===41)return this.setOptionalParametersError(n),t}return super.parseConditional(t,r,n)}parseParenItem(t,r){let n=super.parseParenItem(t,r);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(t)),this.match(14)){let o=this.startNodeAt(r);return o.expression=t,o.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(o,"TSTypeCastExpression")}return t}parseExportDeclaration(t){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(t));let r=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(xt.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let o=Qn(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(t);return o?((o.type==="TSInterfaceDeclaration"||o.type==="TSTypeAliasDeclaration"||n)&&(t.exportKind="type"),n&&o.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(o,r),o.declare=!0),o):null}parseClassId(t,r,n,o){if((!r||n)&&this.isContextual(113))return;super.parseClassId(t,r,n,t.declare?1024:8331);let i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(t.typeParameters=i)}parseClassPropertyAnnotation(t){t.optional||(this.eat(35)?t.definite=!0:this.eat(17)&&(t.optional=!0));let r=this.tsTryParseTypeAnnotation();r&&(t.typeAnnotation=r)}parseClassProperty(t){if(this.parseClassPropertyAnnotation(t),this.state.isAmbientContext&&!(t.readonly&&!t.typeAnnotation)&&this.match(29)&&this.raise(xt.DeclareClassFieldHasInitializer,this.state.startLoc),t.abstract&&this.match(29)){let{key:r}=t;this.raise(xt.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:r.type==="Identifier"&&!t.computed?r.name:`[${this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end))}]`})}return super.parseClassProperty(t)}parseClassPrivateProperty(t){return t.abstract&&this.raise(xt.PrivateElementHasAbstract,t),t.accessibility&&this.raise(xt.PrivateElementHasAccessibility,t,{modifier:t.accessibility}),this.parseClassPropertyAnnotation(t),super.parseClassPrivateProperty(t)}parseClassAccessorProperty(t){return this.parseClassPropertyAnnotation(t),t.optional&&this.raise(xt.AccessorCannotBeOptional,t),super.parseClassAccessorProperty(t)}pushClassMethod(t,r,n,o,i,a){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&i&&this.raise(xt.ConstructorHasTypeParameters,s);let{declare:c=!1,kind:p}=r;c&&(p==="get"||p==="set")&&this.raise(xt.DeclareAccessor,r,{kind:p}),s&&(r.typeParameters=s),super.pushClassMethod(t,r,n,o,i,a)}pushClassPrivateMethod(t,r,n,o){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(r.typeParameters=i),super.pushClassPrivateMethod(t,r,n,o)}declareClassPrivateMethodInScope(t,r){t.type!=="TSDeclareMethod"&&(t.type==="MethodDefinition"&&t.value.body==null||super.declareClassPrivateMethodInScope(t,r))}parseClassSuper(t){super.parseClassSuper(t),t.superClass&&(this.match(47)||this.match(51))&&(t.superTypeArguments=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(t.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(t,r,n,o,i,a,s){let c=this.tsTryParseTypeParameters(this.tsParseConstModifier);return c&&(t.typeParameters=c),super.parseObjPropValue(t,r,n,o,i,a,s)}parseFunctionParams(t,r){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(t.typeParameters=n),super.parseFunctionParams(t,r)}parseVarId(t,r){super.parseVarId(t,r),t.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(t.definite=!0);let n=this.tsTryParseTypeAnnotation();n&&(t.id.typeAnnotation=n,this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,r){return this.match(14)&&(t.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(t,r)}parseMaybeAssign(t,r){let n,o,i;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),o=this.tryParse(()=>super.parseMaybeAssign(t,r),n),!o.error)return o.node;let{context:c}=this.state,p=c[c.length-1];(p===Lo.j_oTag||p===Lo.j_expr)&&c.pop()}if(!o?.error&&!this.match(47))return super.parseMaybeAssign(t,r);(!n||n===this.state)&&(n=this.state.clone());let a,s=this.tryParse(c=>{a=this.tsParseTypeParameters(this.tsParseConstModifier);let p=super.parseMaybeAssign(t,r);if((p.type!=="ArrowFunctionExpression"||p.extra?.parenthesized)&&c(),a?.params.length!==0&&this.resetStartLocationFromNode(p,a),p.typeParameters=a,this.hasPlugin("jsx")&&p.typeParameters.params.length===1&&!p.typeParameters.extra?.trailingComma){let d=p.typeParameters.params[0];d.constraint||this.raise(xt.SingleTypeParameterWithoutTrailingComma,Fl(d.loc.end,1),{typeParameterName:d.name.name})}return p},n);if(!s.error&&!s.aborted)return a&&this.reportReservedArrowTypeParam(a),s.node;if(!o&&(Gue(!this.hasPlugin("jsx")),i=this.tryParse(()=>super.parseMaybeAssign(t,r),n),!i.error))return i.node;if(o?.node)return this.state=o.failState,o.node;if(s.node)return this.state=s.failState,a&&this.reportReservedArrowTypeParam(a),s.node;if(i?.node)return this.state=i.failState,i.node;throw o?.error||s.error||i?.error}reportReservedArrowTypeParam(t){t.params.length===1&&!t.params[0].constraint&&!t.extra?.trailingComma&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(xt.ReservedArrowTypeParam,t)}parseMaybeUnary(t,r){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(t,r)}parseArrow(t){if(this.match(14)){let r=this.tryParse(n=>{let o=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&n(),o});if(r.aborted)return;r.thrown||(r.error&&(this.state=r.failState),t.returnType=r.node)}return super.parseArrow(t)}parseFunctionParamType(t){this.eat(17)&&(t.optional=!0);let r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r),this.resetEndLocation(t),t}isAssignable(t,r){switch(t.type){case"TSTypeCastExpression":return this.isAssignable(t.expression,r);case"TSParameterProperty":return!0;default:return super.isAssignable(t,r)}}toAssignable(t,r=!1){switch(t.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(t,r);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":r?this.expressionScope.recordArrowParameterBindingError(xt.UnexpectedTypeCastInParameter,t):this.raise(xt.UnexpectedTypeCastInParameter,t),this.toAssignable(t.expression,r);break;case"AssignmentExpression":!r&&t.left.type==="TSTypeCastExpression"&&(t.left=this.typeCastToParameter(t.left));default:super.toAssignable(t,r)}}toAssignableParenthesizedExpression(t,r){switch(t.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(t.expression,r);break;default:super.toAssignable(t,r)}}checkToRestConversion(t,r){switch(t.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(t.expression,!1);break;default:super.checkToRestConversion(t,r)}}isValidLVal(t,r,n,o){switch(t){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(o!==64||!n)&&["expression",!0];default:return super.isValidLVal(t,r,n,o)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(t,r){if(this.match(47)||this.match(51)){let n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let o=super.parseMaybeDecoratorArguments(t,r);return o.typeArguments=n,o}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(t,r)}checkCommaAfterRest(t){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===t?(this.next(),!1):super.checkCommaAfterRest(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(t,r){let n=super.parseMaybeDefault(t,r);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.startthis.isAssignable(r,!0)):super.shouldParseArrow(t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(t){if(this.match(47)||this.match(51)){let r=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());r&&(t.typeArguments=r)}return super.jsxParseOpeningElementAfterName(t)}getGetterSetterExpectedParamCount(t){let r=super.getGetterSetterExpectedParamCount(t),n=this.getObjectOrClassMethodParams(t)[0];return n&&this.isThisParam(n)?r+1:r}parseCatchClauseParam(){let t=super.parseCatchClauseParam(),r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r,this.resetEndLocation(t)),t}tsInAmbientContext(t){let{isAmbientContext:r,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return t()}finally{this.state.isAmbientContext=r,this.state.strict=n}}parseClass(t,r,n){let o=this.state.inAbstractClass;this.state.inAbstractClass=!!t.abstract;try{return super.parseClass(t,r,n)}finally{this.state.inAbstractClass=o}}tsParseAbstractDeclaration(t,r){if(this.match(80))return t.abstract=!0,this.maybeTakeDecorators(r,this.parseClass(t,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(t.abstract=!0,this.raise(xt.NonClassMethodPropertyHasAbstractModifier,t),this.tsParseInterfaceDeclaration(t));throw this.unexpected(null,80)}parseMethod(t,r,n,o,i,a,s){let c=super.parseMethod(t,r,n,o,i,a,s);if((c.abstract||c.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?c.value:c).body){let{key:p}=c;this.raise(xt.AbstractMethodHasImplementation,c,{methodName:p.type==="Identifier"&&!c.computed?p.name:`[${this.input.slice(this.offsetToSourcePos(p.start),this.offsetToSourcePos(p.end))}]`})}return c}tsParseTypeParameterName(){return this.parseIdentifier()}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(t,r,n,o){return!r&&o?(this.parseTypeOnlyImportExportSpecifier(t,!1,n),this.finishNode(t,"ExportSpecifier")):(t.exportKind="value",super.parseExportSpecifier(t,r,n,o))}parseImportSpecifier(t,r,n,o,i){return!r&&o?(this.parseTypeOnlyImportExportSpecifier(t,!0,n),this.finishNode(t,"ImportSpecifier")):(t.importKind="value",super.parseImportSpecifier(t,r,n,o,n?4098:4096))}parseTypeOnlyImportExportSpecifier(t,r,n){let o=r?"imported":"local",i=r?"local":"exported",a=t[o],s,c=!1,p=!0,d=a.loc.start;if(this.isContextual(93)){let m=this.parseIdentifier();if(this.isContextual(93)){let y=this.parseIdentifier();Pu(this.state.type)?(c=!0,a=m,s=r?this.parseIdentifier():this.parseModuleExportName(),p=!1):(s=y,p=!1)}else Pu(this.state.type)?(p=!1,s=r?this.parseIdentifier():this.parseModuleExportName()):(c=!0,a=m)}else Pu(this.state.type)&&(c=!0,r?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());c&&n&&this.raise(r?xt.TypeModifierIsUsedInTypeImports:xt.TypeModifierIsUsedInTypeExports,d),t[o]=a,t[i]=s;let f=r?"importKind":"exportKind";t[f]=c?"type":"value",p&&this.eatContextual(93)&&(t[i]=r?this.parseIdentifier():this.parseModuleExportName()),t[i]||(t[i]=this.cloneIdentifier(t[o])),r&&this.checkIdentifier(t[i],c?4098:4096)}fillOptionalPropertiesForTSESLint(t){switch(t.type){case"ExpressionStatement":t.directive??(t.directive=void 0);return;case"RestElement":t.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":t.decorators??(t.decorators=[]),t.optional??(t.optional=!1),t.typeAnnotation??(t.typeAnnotation=void 0);return;case"TSParameterProperty":t.accessibility??(t.accessibility=void 0),t.decorators??(t.decorators=[]),t.override??(t.override=!1),t.readonly??(t.readonly=!1),t.static??(t.static=!1);return;case"TSEmptyBodyFunctionExpression":t.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":t.declare??(t.declare=!1),t.returnType??(t.returnType=void 0),t.typeParameters??(t.typeParameters=void 0);return;case"Property":t.optional??(t.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":t.optional??(t.optional=!1);case"TSIndexSignature":t.accessibility??(t.accessibility=void 0),t.readonly??(t.readonly=!1),t.static??(t.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":t.declare??(t.declare=!1),t.definite??(t.definite=!1),t.readonly??(t.readonly=!1),t.typeAnnotation??(t.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":t.accessibility??(t.accessibility=void 0),t.decorators??(t.decorators=[]),t.override??(t.override=!1),t.optional??(t.optional=!1);return;case"ClassExpression":t.id??(t.id=null);case"ClassDeclaration":t.abstract??(t.abstract=!1),t.declare??(t.declare=!1),t.decorators??(t.decorators=[]),t.implements??(t.implements=[]),t.superTypeArguments??(t.superTypeArguments=void 0),t.typeParameters??(t.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":t.declare??(t.declare=!1);return;case"VariableDeclarator":t.definite??(t.definite=!1);return;case"TSEnumDeclaration":t.const??(t.const=!1),t.declare??(t.declare=!1);return;case"TSEnumMember":t.computed??(t.computed=!1);return;case"TSImportType":t.qualifier??(t.qualifier=null),t.options??(t.options=null),t.typeArguments??(t.typeArguments=null);return;case"TSInterfaceDeclaration":t.declare??(t.declare=!1),t.extends??(t.extends=[]);return;case"TSMappedType":t.optional??(t.optional=!1),t.readonly??(t.readonly=void 0);return;case"TSModuleDeclaration":t.declare??(t.declare=!1),t.global??(t.global=t.kind==="global");return;case"TSTypeParameter":t.const??(t.const=!1),t.in??(t.in=!1),t.out??(t.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(t,r){if(Yp(t)){if(Jq.lastIndex=r,Jq.test(this.input)){let n=this.codePointAtPos(Jq.lastIndex);if(!mg(n)&&n!==92)return!1}return!0}else return t===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifierAndNotRelationalOperator(r,t)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifier(r,t)||r===34||r===39}};function RVe(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:wpe(e.object)}function LVe(e,t){let{type:r}=e;if(e.extra?.parenthesized)return!1;if(t){if(r==="Literal"){let{value:n}=e;if(typeof n=="string"||typeof n=="boolean")return!0}}else if(r==="StringLiteral"||r==="BooleanLiteral")return!0;return!!(Ape(e,t)||$Ve(e,t)||r==="TemplateLiteral"&&e.expressions.length===0||RVe(e))}function Ape(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function $Ve(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:n}=e;if(r==="-"&&Ape(n,t))return!0}return!1}function wpe(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:wpe(e.object)}var Zue=Xp`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),MVe=e=>class extends e{parsePlaceholder(t){if(this.match(133)){let r=this.startNode();return this.next(),this.assertNoSpace(),r.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(r,t)}}finishPlaceholder(t,r){let n=t;return(!n.expectedNode||!n.type)&&(n=this.finishNode(n,"Placeholder")),n.expectedNode=r,n}getTokenFromCode(t){t===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(t)}parseExprAtom(t){return this.parsePlaceholder("Expression")||super.parseExprAtom(t)}parseIdentifier(t){return this.parsePlaceholder("Identifier")||super.parseIdentifier(t)}checkReservedWord(t,r,n,o){t!==void 0&&super.checkReservedWord(t,r,n,o)}cloneIdentifier(t){let r=super.cloneIdentifier(t);return r.type==="Placeholder"&&(r.expectedNode=t.expectedNode),r}cloneStringLiteral(t){return t.type==="Placeholder"?this.cloneIdentifier(t):super.cloneStringLiteral(t)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(t,r,n,o){return t==="Placeholder"||super.isValidLVal(t,r,n,o)}toAssignable(t,r){t&&t.type==="Placeholder"&&t.expectedNode==="Expression"?t.expectedNode="Pattern":super.toAssignable(t,r)}chStartsBindingIdentifier(t,r){if(super.chStartsBindingIdentifier(t,r))return!0;let n=this.nextTokenStart();return this.input.charCodeAt(n)===37&&this.input.charCodeAt(n+1)===37}verifyBreakContinue(t,r){t.label&&t.label.type==="Placeholder"||super.verifyBreakContinue(t,r)}parseExpressionStatement(t,r){if(r.type!=="Placeholder"||r.extra?.parenthesized)return super.parseExpressionStatement(t,r);if(this.match(14)){let o=t;return o.label=this.finishPlaceholder(r,"Identifier"),this.next(),o.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(o,"LabeledStatement")}this.semicolon();let n=t;return n.name=r.name,this.finishPlaceholder(n,"Statement")}parseBlock(t,r,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(t,r,n)}parseFunctionId(t){return this.parsePlaceholder("Identifier")||super.parseFunctionId(t)}parseClass(t,r,n){let o=r?"ClassDeclaration":"ClassExpression";this.next();let i=this.state.strict,a=this.parsePlaceholder("Identifier");if(a)if(this.match(81)||this.match(133)||this.match(5))t.id=a;else{if(n||!r)return t.id=null,t.body=this.finishPlaceholder(a,"ClassBody"),this.finishNode(t,o);throw this.raise(Zue.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(t,r,n);return super.parseClassSuper(t),t.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!t.superClass,i),this.finishNode(t,o)}parseExport(t,r){let n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(t,r);let o=t;if(!this.isContextual(98)&&!this.match(12))return o.specifiers=[],o.source=null,o.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(o,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let i=this.startNode();return i.exported=n,o.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],super.parseExport(o,r)}isExportDefaultSpecifier(){if(this.match(65)){let t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(Um(133),this.nextTokenStartSince(t+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(t,r){return t.specifiers?.length?!0:super.maybeParseExportDefaultSpecifier(t,r)}checkExport(t){let{specifiers:r}=t;r?.length&&(t.specifiers=r.filter(n=>n.exported.type==="Placeholder")),super.checkExport(t),t.specifiers=r}parseImport(t){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseImport(t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");let n=this.startNodeAtNode(r);return n.local=r,t.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Zue.UnexpectedSpace,this.state.lastTokEndLoc)}},jVe=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let t=this.state.startLoc,r=this.startNode();if(this.next(),Qn(this.state.type)){let n=this.parseIdentifierName(),o=this.createIdentifier(r,n);if(this.castNodeTo(o,"V8IntrinsicIdentifier"),this.match(10))return o}this.unexpected(t)}}parseExprAtom(t){return this.parseV8Intrinsic()||super.parseExprAtom(t)}},Wue=["fsharp","hack"],Que=["^^","@@","^","%","#"];function BVe(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=e.get("decorators").decoratorsBeforeExport;if(t!=null&&typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=e.get("decorators").allowCallParenthesized;if(r!=null&&typeof r!="boolean")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")){let t=e.get("pipelineOperator").proposal;if(!Wue.includes(t)){let r=Wue.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${r}.`)}if(t==="hack"){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.");let r=e.get("pipelineOperator").topicToken;if(!Que.includes(r)){let n=Que.map(o=>`"${o}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}}}if(e.has("moduleAttributes"))throw new Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(e.has("importAssertions"))throw new Error("`importAssertions` has been removed in Babel 8, please use import attributes instead. To use the non-standard `assert` syntax you can enable the `deprecatedImportAssert` parser plugin.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax)throw new Error("The 'importAttributes' plugin has been removed in Babel 8. If you need to enable support for the deprecated `assert` syntax, you can enable the `deprecatedImportAssert` parser plugin.");if(e.has("recordAndTuple"))throw new Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")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")&&e.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");{if(e.has("decimal"))throw new Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("importReflection"))throw new Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}}var Ipe={estree:kze,jsx:cVe,flow:iVe,typescript:FVe,v8intrinsic:jVe,placeholders:MVe},qVe=Object.keys(Ipe),UVe=class extends CVe{checkProto(e,t,r,n){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return r;let o=e.key;return(o.type==="Identifier"?o.name:o.value)==="__proto__"?t?(this.raise(W.RecordNoProto,o),!0):(r&&(n?n.doubleProtoLoc===null&&(n.doubleProtoLoc=o.loc.start):this.raise(W.DuplicateProto,o)),!0):r}shouldExitDescending(e,t){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(W.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(W.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&256&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){let t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){let 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){let r=this.state.startLoc,n=this.isContextual(108);if(n&&this.prodParam.hasYield){this.next();let s=this.parseYield(r);return t&&(s=t.call(this,s,r)),s}let o;e?o=!1:(e=new D3,o=!0);let{type:i}=this.state;(i===10||Qn(i))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e);if(t&&(a=t.call(this,a,r)),Fze(this.state.type)){let s=this.startNodeAt(r),c=this.state.value;if(s.operator=c,this.match(29)){this.toAssignable(a,!0),s.left=a;let p=r.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=p&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=p&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=p&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),e.voidPatternLoc!=null&&e.voidPatternLoc.index>=p&&(e.voidPatternLoc=null)}else s.left=a;return this.next(),s.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(s,"AssignmentExpression"),void 0,void 0,void 0,void 0,c==="||="||c==="&&="||c==="??="),s}else o&&this.checkExpressionErrors(e,!0);if(n){let{type:s}=this.state;if((this.hasPlugin("v8intrinsic")?oD(s):oD(s)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(W.YieldNotInGeneratorFunction,r),this.parseYield(r)}return a}parseMaybeConditional(e){let 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)){let n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let 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)){let o=this.getPrivateNameSV(e);(r>=E3(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(W.PrivateInExpectedIn,e,{identifierName:o}),this.classScope.usePrivateName(o,e.loc.start)}let n=this.state.type;if(Lze(n)&&(this.prodParam.hasIn||!this.match(58))){let o=E3(n);if(o>r){if(n===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let i=this.startNodeAt(t);i.left=e,i.operator=this.state.value;let a=n===41||n===42,s=n===40;s&&(o=E3(42)),this.next(),i.right=this.parseExprOpRightExpr(n,o);let c=this.finishNode(i,a||s?"LogicalExpression":"BinaryExpression"),p=this.state.type;if(s&&(p===41||p===42)||a&&p===40)throw this.raise(W.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,t,r)}}return e}parseExprOpRightExpr(e,t){switch(this.state.startLoc,e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){let r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,qze(e)?t-1:t)}parseHackPipeBody(){let{startLoc:e}=this.state,t=this.parseMaybeAssign();return xze.has(t.type)&&!t.extra?.parenthesized&&this.raise(W.PipeUnparenthesizedBody,e,{type:t.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(W.PipeTopicUnused,e),t}checkExponentialAfterUnary(e){this.match(57)&&this.raise(W.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let r=this.state.startLoc,n=this.isContextual(96);if(n&&this.recordAwaitIfAllowed()){this.next();let s=this.parseAwait(r);return t||this.checkExponentialAfterUnary(s),s}let o=this.match(34),i=this.startNode();if(Mze(this.state.type)){i.operator=this.state.value,i.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let s=this.match(89);if(this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&s){let c=i.argument;c.type==="Identifier"?this.raise(W.StrictDelete,i):this.hasPropertyAsPrivateName(c)&&this.raise(W.DeletePrivateField,i)}if(!o)return t||this.checkExponentialAfterUnary(i),this.finishNode(i,"UnaryExpression")}let a=this.parseUpdate(i,o,e);if(n){let{type:s}=this.state;if((this.hasPlugin("v8intrinsic")?oD(s):oD(s)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(W.AwaitNotInAsyncContext,r),this.parseAwait(r)}return a}parseUpdate(e,t,r){if(t){let i=e;return this.checkLVal(i.argument,this.finishNode(i,"UpdateExpression")),e}let n=this.state.startLoc,o=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return o;for(;$ze(this.state.type)&&!this.canInsertSemicolon();){let i=this.startNodeAt(n);i.operator=this.state.value,i.prefix=!1,i.argument=o,this.next(),this.checkLVal(o,o=this.finishNode(i,"UpdateExpression"))}return o}parseExprSubscripts(e){let 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){let 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){let{type:o}=this.state;if(!r&&o===15)return this.parseBind(e,t,r,n);if(Wq(o))return this.parseTaggedTemplateExpression(e,t,n);let i=!1;if(o===18){if(r&&(this.raise(W.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(e,n);n.optionalChainMember=i=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,n,i);{let a=this.eat(0);return a||i||this.eat(16)?this.parseMember(e,t,n,a,i):this.stopParseSubscript(e,n)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,r,n,o){let i=this.startNodeAt(t);return i.object=e,i.computed=n,n?(i.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type==="Super"&&this.raise(W.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),r.optionalChainMember?(i.optional=o,this.finishNode(i,"OptionalMemberExpression")):this.finishNode(i,"MemberExpression")}parseBind(e,t,r,n){let o=this.startNodeAt(t);return o.object=e,this.next(),o.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(o,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,n){let o=this.state.maybeInArrowParameters,i=null;this.state.maybeInArrowParameters=!0,this.next();let a=this.startNodeAt(t);a.callee=e;let{maybeAsyncArrow:s,optionalChainMember:c}=r;s&&(this.expressionScope.enter(wVe()),i=new D3),c&&(a.optional=n),n?a.arguments=this.parseCallExpressionArguments():a.arguments=this.parseCallExpressionArguments(e.type!=="Super",a,i);let p=this.finishCallExpression(a,c);return s&&this.shouldParseAsyncArrow()&&!n?(r.stop=!0,this.checkDestructuringPrivate(i),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),p=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),p)):(s&&(this.checkExpressionErrors(i,!0),this.expressionScope.exit()),this.toReferencedArguments(p)),this.state.maybeInArrowParameters=o,p}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){let n=this.startNodeAt(t);return n.tag=e,n.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(W.OptionalChainingNoTemplate,t),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type==="Import")if(e.arguments.length===0||e.arguments.length>2)this.raise(W.ImportCallArity,e);else for(let r of e.arguments)r.type==="SpreadElement"&&this.raise(W.ImportCallSpreadArgument,r);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r){let n=[],o=!0,i=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(o)o=!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){return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,t.extra?.trailingCommaLoc),t.innerComments&&jv(e,t.innerComments),t.callee.trailingComments&&jv(e,t.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,r=null,{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)?this.optionFlags&512?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(W.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:{let o=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(o)}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;let o=t.callee=this.parseNoCallExpr();if(o.type==="MemberExpression")return this.finishNode(t,"BindExpression");throw this.raise(W.UnsupportedBind,o)}case 139:return this.raise(W.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:{let o=this.getPluginOption("pipelineOperator","proposal");if(o)return this.parseTopicReference(o);throw this.unexpected()}case 47:{let o=this.input.codePointAt(this.nextTokenStart());throw Yp(o)||o===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(Qn(n)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let o=this.state.potentialArrowAt===this.state.start,i=this.state.containsEsc,a=this.parseIdentifier();if(!i&&a.name==="async"&&!this.canInsertSemicolon()){let{type:s}=this.state;if(s===68)return this.resetPreviousNodeTrailingComments(a),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(a));if(Qn(s))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(a)):a;if(s===90)return this.resetPreviousNodeTrailingComments(a),this.parseDo(this.startNodeAtNode(a),!0)}return o&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(a),[a],!1)):a}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let 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=Fl(this.state.endLoc,-1),this.parseTopicReference(r);throw this.unexpected()}parseTopicReference(e){let 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 this.topicReferenceIsAllowedInCurrentContext()||this.raise(W.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,"TopicReference");throw this.raise(W.PipeTopicUnconfiguredToken,t,{token:Um(n)})}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Um(r)}]);case"smart":return r===27;default:throw this.raise(W.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(T3(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(W.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();let 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(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.raise(W.SuperNotAllowed,e):this.scope.allowSuper||this.raise(W.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(W.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(Fl(this.state.startLoc,1)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let 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;let n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(W.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let t=this.isContextual(105);return this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}else{let t=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(W.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){let 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){{let t;try{t=BigInt(e)}catch{t=null}return this.parseLiteral(t,"BigIntLiteral")}}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let 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){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let t=this.state.startLoc,r;this.next(),this.expressionScope.enter(AVe());let n=this.state.maybeInArrowParameters,o=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let i=this.state.startLoc,a=[],s=new D3,c=!0,p,d;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,s.optionalParametersLoc===null?null:s.optionalParametersLoc),this.match(11)){d=this.state.startLoc;break}if(this.match(21)){let y=this.state.startLoc;if(p=this.state.startLoc,a.push(this.parseParenItem(this.parseRestBinding(),y)),!this.checkCommaAfterRest(41))break}else a.push(this.parseMaybeAssignAllowInOrVoidPattern(11,s,this.parseParenItem))}let f=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=o;let m=this.startNodeAt(t);return e&&this.shouldParseArrow(a)&&(m=this.parseArrow(m))?(this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(m,a,!1),m):(this.expressionScope.exit(),a.length||this.unexpected(this.state.lastTokStartLoc),d&&this.unexpected(d),p&&this.unexpected(p),this.checkExpressionErrors(s,!0),this.toReferencedListDeep(a,!0),a.length>1?(r=this.startNodeAt(i),r.expressions=a,this.finishNode(r,"SequenceExpression"),this.resetEndLocation(r,f)):r=a[0],this.wrapParenthesis(t,r))}wrapParenthesis(e,t){if(!(this.optionFlags&1024))return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let 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(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let r=this.parseMetaProperty(e,t,"target");return this.scope.allowNewTarget||this.raise(W.UnexpectedNewTarget,r),r}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let t=this.match(83),r=this.parseNoCallExpr();e.callee=r,t&&(r.type==="Import"||r.type==="ImportExpression")&&this.raise(W.ImportCallNotNewExpression,r)}parseTemplateElement(e){let{start:t,startLoc:r,end:n,value:o}=this.state,i=t+1,a=this.startNodeAt(Fl(r,1));o===null&&(e||this.raise(W.InvalidEscapeSequenceTemplate,Fl(this.state.firstInvalidTemplateEscapePos,1)));let s=this.match(24),c=s?-1:-2,p=n+c;a.value={raw:this.input.slice(i,p).replace(/\r\n?/g,` +`),cooked:o===null?null:o.slice(1,c)},a.tail=s,this.next();let d=this.finishNode(a,"TemplateElement");return this.resetEndLocation(d,Fl(this.state.lastTokEndLoc,c)),d}parseTemplate(e){let t=this.startNode(),r=this.parseTemplateElement(e),n=[r],o=[];for(;!r.tail;)o.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),n.push(r=this.parseTemplateElement(e));return t.expressions=o,t.quasis=n,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");let o=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let i=!1,a=!0,s=this.startNode();for(s.properties=[],this.next();!this.match(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(s);break}let p;t?p=this.parseBindingProperty():(p=this.parsePropertyDefinition(n),i=this.checkProto(p,r,i,n)),r&&!this.isObjectProperty(p)&&p.type!=="SpreadElement"&&this.raise(W.InvalidRecordProperty,p),s.properties.push(p)}this.next(),this.state.inFSharpPipelineDirectBody=o;let c="ObjectExpression";return t?c="ObjectPattern":r&&(c="RecordExpression"),this.finishNode(s,c)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(W.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());let r=this.startNode(),n=!1,o=!1,i;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(r.decorators=t,t=[]),r.method=!1,e&&(i=this.state.startLoc);let a=this.eat(55);this.parsePropertyNamePrefixOperator(r);let s=this.state.containsEsc;if(this.parsePropertyName(r,e),!a&&!s&&this.maybeAsyncOrAccessorProp(r)){let{key:c}=r,p=c.name;p==="async"&&!this.hasPrecedingLineBreak()&&(n=!0,this.resetPreviousNodeTrailingComments(c),a=this.eat(55),this.parsePropertyName(r)),(p==="get"||p==="set")&&(o=!0,this.resetPreviousNodeTrailingComments(c),r.kind=p,this.match(55)&&(a=!0,this.raise(W.AccessorIsGenerator,this.state.curPosition(),{kind:p}),this.next()),this.parsePropertyName(r))}return this.parseObjPropValue(r,i,a,n,!1,o,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){let t=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e);r.length!==t&&this.raise(e.kind==="get"?W.BadGetterArity:W.BadSetterArity,e),e.kind==="set"&&r[r.length-1]?.type==="RestElement"&&this.raise(W.BadSetterRestParameter,e)}parseObjectMethod(e,t,r,n,o){if(o){let i=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(i),i}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&&e.key.type==="Identifier"){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)){let o=this.state.startLoc;n!=null?n.shorthandAssignLoc===null&&(n.shorthandAssignLoc=o):this.raise(W.InvalidCoverInitializedName,o),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,o,i,a){let s=this.parseObjectMethod(e,r,n,o,i)||this.parseObjectProperty(e,t,o,a);return s||this.unexpected(),s}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:r,value:n}=this.state,o;if(Pu(r))o=this.parseIdentifier(!0);else switch(r){case 135:o=this.parseNumericLiteral(n);break;case 134:o=this.parseStringLiteral(n);break;case 136:o=this.parseBigIntLiteral(n);break;case 139:{let i=this.state.startLoc;t!=null?t.privateKeyLoc===null&&(t.privateKeyLoc=i):this.raise(W.UnexpectedPrivateField,i),o=this.parsePrivateName();break}default:this.unexpected()}e.key=o,r!==139&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,r,n,o,i,a=!1){this.initFunction(e,r),e.generator=t,this.scope.enter(530|(a?576:0)|(o?32:0)),this.prodParam.enter(T3(r,e.generator)),this.parseFunctionParams(e,n);let s=this.parseFunctionBodyAndFinish(e,i,!0);return this.prodParam.exit(),this.scope.exit(),s}parseArrayLike(e,t,r){t&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let o=this.startNode();return this.next(),o.elements=this.parseExprList(e,!t,r,o),this.state.inFSharpPipelineDirectBody=n,this.finishNode(o,t?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,n){this.scope.enter(518);let o=T3(r,!1);!this.match(5)&&this.prodParam.hasIn&&(o|=8),this.prodParam.enter(o),this.initFunction(e,r);let 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){let n=t&&!this.match(5);if(this.expressionScope.enter(Dpe()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let o=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,a=>{let s=!this.isSimpleParamList(e.params);a&&s&&this.raise(W.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&e.key?e.key.loc.end:e);let c=!o&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!r&&!s,t,c),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,c)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let t=0,r=e.length;t10||!Qze(e))){if(r&&Hze(e)){this.raise(W.UnexpectedKeyword,t,{keyword:e});return}if((this.state.strict?n?Spe:ype:hpe)(e,this.inModule)){this.raise(W.UnexpectedReservedWord,t,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(W.YieldBindingIdentifier,t);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(W.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(W.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(W.ArgumentsInClass,t);return}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(W.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(W.ObsoleteAwaitStar,t),!this.scope.inFunction&&!(this.optionFlags&1)&&(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;let{type:e}=this.state;return e===53||e===10||e===0||Wq(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(e){let t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(W.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(W.ImportCallArity,e)}}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&e.type==="SequenceExpression"&&this.raise(W.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}else{let 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(W.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(W.PipelineTopicUnused,e)}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){return e()}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(t&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let n=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,n}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let 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");let t=this.startNode();return e!=null&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,t,r){if(t!=null&&this.match(88)){let n=this.lookaheadCharCode();if(n===44||n===(e===3?93:e===8?125:41)||n===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,r)}parsePropertyNamePrefixOperator(e){}},Kq={kind:1},zVe={kind:2},VVe=/[\uD800-\uDFFF]/u,Gq=/in(?:stanceof)?/y;function JVe(e,t,r){for(let n=0;n0)for(let[o,i]of Array.from(this.scope.undefinedExports))this.raise(W.ModuleExportUndefined,i,{localName:o});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let n;return t===140?n=this.finishNode(e,"Program"):n=this.finishNodeAt(e,"Program",Fl(this.state.startLoc,-1)),n}stmtToDirective(e){let t=this.castNodeTo(e,"Directive"),r=this.castNodeTo(e.expression,"DirectiveLiteral"),n=r.value,o=this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end)),i=r.value=o.slice(1,-1);return this.addExtra(r,"raw",o),this.addExtra(r,"rawValue",i),this.addExtra(r,"expressionValue",n),t.value=r,delete e.expression,t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){let r=this.lookaheadCharCodeSince(e+2);if(r!==61&&r!==58&&r!==59)return!1}return!!(this.chStartsBindingIdentifier(t,e)||this.isUnparsedContextual(e,"void"))}nextTokenIsIdentifierOnSameLine(){let 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);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(Yp(e)){if(Gq.lastIndex=t,Gq.test(this.input)){let r=this.codePointAtPos(Gq.lastIndex);if(!mg(r)&&r!==92)return!1}return!0}else return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return t===123||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){let r=this.state.type,n=this.startNode(),o=!!(e&2),i=!!(e&4),a=e&1;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(this.lookaheadCharCode()===46)break;return i||this.raise(this.state.strict?W.StrictFunction:this.options.annexB?W.SloppyFunctionAnnexB:W.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(n,!1,!o&&i);case 80:return o||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()?o?this.recordAwaitIfAllowed()||this.raise(W.AwaitUsingNotInAsyncContext,n):this.raise(W.UnexpectedLexicalDeclaration,n):this.raise(W.UnexpectedUsingDeclaration,n),this.next(),this.parseVarStatement(n,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?o||this.raise(W.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(W.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(n,"using");case 100:{if(this.state.containsEsc)break;let p=this.nextTokenStart(),d=this.codePointAtPos(p);if(d!==91&&(!o&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(d,p)&&d!==123))break}case 75:o||this.raise(W.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let p=this.state.value;return this.parseVarStatement(n,p)}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:{let p=this.lookaheadCharCode();if(p===40||p===46)break}case 82:{!(this.optionFlags&8)&&!a&&this.raise(W.UnexpectedImportExport,this.state.startLoc),this.next();let p;return r===83?p=this.parseImport(n):p=this.parseExport(n,t),this.assertModuleNodeAllowed(p),p}default:if(this.isAsyncFunction())return o||this.raise(W.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(n,!0,!o&&i)}let s=this.state.value,c=this.parseExpression();return Qn(r)&&c.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(n,s,c,e):this.parseExpressionStatement(n,c,t)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(W.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(e,t,r){return e&&(t.decorators?.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(W.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do t.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(W.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(W.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let t=this.state.startLoc,r;if(this.match(10)){let n=this.state.startLoc;this.next(),r=this.parseExpression(),this.expect(11),r=this.wrapParenthesis(n,r);let o=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(r,n),this.getPluginOption("decorators","allowCallParenthesized")===!1&&e.expression!==r&&this.raise(W.DecoratorArgumentsOutsideParentheses,o)}else{for(r=this.parseIdentifier(!1);this.eat(16);){let n=this.startNodeAt(t);n.object=r,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),n.computed=!1,r=this.finishNode(n,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(r,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){let 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;rthis.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(Kq);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 t!==null&&this.unexpected(t),this.parseFor(e,null);let r=this.isContextual(100);{let s=this.isAwaitUsing(),c=s||this.isForUsing(),p=r&&this.hasFollowingBindingAtom()||c;if(this.match(74)||this.match(75)||p){let d=this.startNode(),f;s?(f="await using",this.recordAwaitIfAllowed()||this.raise(W.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):f=this.state.value,this.next(),this.parseVar(d,!0,f);let m=this.finishNode(d,"VariableDeclaration"),y=this.match(58);return y&&c&&this.raise(W.ForInUsing,m),(y||this.isContextual(102))&&m.declarations.length===1?this.parseForIn(e,m,t):(t!==null&&this.unexpected(t),this.parseFor(e,m))}}let n=this.isContextual(95),o=new D3,i=this.parseExpression(!0,o),a=this.isContextual(102);if(a&&(r&&this.raise(W.ForOfLet,i),t===null&&n&&i.type==="Identifier"&&this.raise(W.ForOfAsync,i)),a||this.match(58)){this.checkDestructuringPrivate(o),this.toAssignable(i,!0);let s=a?"ForOfStatement":"ForInStatement";return this.checkLVal(i,{type:s}),this.parseForIn(e,i,t)}else this.checkExpressionErrors(o,!0);return t!==null&&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(W.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();let t=e.cases=[];this.expect(5),this.state.labels.push(zVe),this.scope.enter(256);let r;for(let n;!this.match(8);)if(this.match(61)||this.match(65)){let o=this.match(61);r&&this.finishNode(r,"SwitchCase"),t.push(r=this.startNode()),r.consequent=[],this.next(),o?r.test=this.parseExpression():(n&&this.raise(W.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),n=!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(W.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let 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(W.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(Kq),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(W.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(let i of this.state.labels)i.name===t&&this.raise(W.LabelRedeclaration,r,{labelName:t});let o=Rze(this.state.type)?1:this.match(71)?2:null;for(let i=this.state.labels.length-1;i>=0;i--){let a=this.state.labels[i];if(a.statementStart===e.start)a.statementStart=this.sourceToOffsetPos(this.state.start),a.kind=o;else break}return this.state.labels.push({name:t,kind:o,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=n&8?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){let 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 e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,n,o){let i=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(i,t?a:void 0,r,n,o)}parseBlockOrModuleBlockBody(e,t,r,n,o){let i=this.state.strict,a=!1,s=!1;for(;!this.match(n);){let c=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!s){if(this.isValidDirective(c)){let p=this.stmtToDirective(c);t.push(p),!a&&p.value.value==="use strict"&&(a=!0,this.setStrict(!0));continue}s=!0,this.state.strictErrors.clear()}e.push(c)}o?.call(this,a),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){let n=this.match(58);return this.next(),n?r!==null&&this.unexpected(r):e.await=r!==null,t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!n||!this.options.annexB||this.state.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(W.ForInOfLoopInitializer,t,{type:n?"ForInStatement":"ForOfStatement"}),t.type==="AssignmentPattern"&&this.raise(W.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){let o=e.declarations=[];for(e.kind=r;;){let i=this.startNode();if(this.parseVarId(i,r),i.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,i.init===null&&!n&&(i.id.type!=="Identifier"&&!(t&&(this.match(58)||this.isContextual(102)))?this.raise(W.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(r==="const"||r==="using"||r==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(W.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r})),o.push(this.finishNode(i,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){let r=this.parseBindingAtom();t==="using"||t==="await using"?(r.type==="ArrayPattern"||r.type==="ObjectPattern")&&this.raise(W.UsingDeclarationHasBindingPattern,r.loc.start):r.type==="VoidPattern"&&this.raise(W.UnexpectedVoidPattern,r.loc.start),this.checkLVal(r,{type:"VariableDeclarator"},t==="var"?5:8201),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let r=t&2,n=!!(t&1),o=n&&!(t&4),i=!!(t&8);this.initFunction(e,i),this.match(55)&&(r&&this.raise(W.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),n&&(e.id=this.parseFunctionId(o));let a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(T3(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=a,e}parseFunctionId(e){return e||Qn(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(DVe()),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();let 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 e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let r={hadConstructor:!1,hadSuperClass:e},n=[],o=this.startNode();if(o.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(n.length>0)throw this.raise(W.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){n.push(this.parseDecorator());continue}let i=this.startNode();n.length&&(i.decorators=n,this.resetStartLocationFromNode(i,n[0]),n=[]),this.parseClassMember(o,i,r),i.kind==="constructor"&&i.decorators&&i.decorators.length>0&&this.raise(W.DecoratorConstructor,i)}}),this.state.strict=t,this.next(),n.length)throw this.raise(W.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(o,"ClassBody")}parseClassMemberFromModifier(e,t){let r=this.parseIdentifier(!0);if(this.isClassMethod()){let n=t;return n.kind="method",n.computed=!1,n.key=r,n.static=!1,this.pushClassMethod(e,n,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let 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){let n=this.isContextual(106);if(n){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,r,n)}parseClassMemberWithIsStatic(e,t,r,n){let o=t,i=t,a=t,s=t,c=t,p=o,d=o;if(t.static=n,this.parsePropertyNamePrefixOperator(t),this.eat(55)){p.kind="method";let x=this.match(139);if(this.parseClassElementName(p),this.parsePostMemberNameModifiers(p),x){this.pushClassPrivateMethod(e,i,!0,!1);return}this.isNonstaticConstructor(o)&&this.raise(W.ConstructorIsGenerator,o.key),this.pushClassMethod(e,o,!0,!1,!1,!1);return}let f=!this.state.containsEsc&&Qn(this.state.type),m=this.parseClassElementName(t),y=f?m.name:null,g=this.isPrivateName(m),S=this.state.startLoc;if(this.parsePostMemberNameModifiers(d),this.isClassMethod()){if(p.kind="method",g){this.pushClassPrivateMethod(e,i,!1,!1);return}let x=this.isNonstaticConstructor(o),A=!1;x&&(o.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(W.DuplicateConstructor,m),x&&this.hasPlugin("typescript")&&t.override&&this.raise(W.OverrideOnConstructor,m),r.hadConstructor=!0,A=r.hadSuperClass),this.pushClassMethod(e,o,!1,!1,x,A)}else if(this.isClassProperty())g?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,a);else if(y==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(m);let x=this.eat(55);d.optional&&this.unexpected(S),p.kind="method";let A=this.match(139);this.parseClassElementName(p),this.parsePostMemberNameModifiers(d),A?this.pushClassPrivateMethod(e,i,x,!0):(this.isNonstaticConstructor(o)&&this.raise(W.ConstructorIsAsync,o.key),this.pushClassMethod(e,o,x,!0,!1,!1))}else if((y==="get"||y==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(m),p.kind=y;let x=this.match(139);this.parseClassElementName(o),x?this.pushClassPrivateMethod(e,i,!1,!1):(this.isNonstaticConstructor(o)&&this.raise(W.ConstructorIsAccessor,o.key),this.pushClassMethod(e,o,!1,!1,!1,!1)),this.checkGetterSetterParams(o)}else if(y==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(m);let x=this.match(139);this.parseClassElementName(a),this.pushClassAccessorProperty(e,c,x)}else this.isLineTerminator()?g?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,a):this.unexpected()}parseClassElementName(e){let{type:t,value:r}=this.state;if((t===132||t===134)&&e.static&&r==="prototype"&&this.raise(W.StaticPrototype,this.state.startLoc),t===139){r==="constructor"&&this.raise(W.ConstructorClassPrivateField,this.state.startLoc);let n=this.parsePrivateName();return e.key=n,n}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){this.scope.enter(720);let r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let n=t.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,"StaticBlock")),t.decorators?.length&&this.raise(W.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(W.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let 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(W.ConstructorClassField,t.key);let 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,o,i){e.body.push(this.parseMethod(t,r,n,o,i,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,n){let o=this.parseMethod(t,r,n,!1,!1,"ClassPrivateMethod",!0);e.body.push(o);let i=o.kind==="get"?o.static?6:2:o.kind==="set"?o.static?5:1:0;this.declareClassPrivateMethodInScope(o,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(Dpe()),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(Qn(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,n);else if(r||!t)e.id=null;else throw this.raise(W.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let r=this.parseMaybeImportPhase(e,!0),n=this.maybeParseExportDefaultSpecifier(e,r),o=!n||this.eat(12),i=o&&this.eatExportStar(e),a=i&&this.maybeParseExportNamespaceSpecifier(e),s=o&&(!a||this.eat(12)),c=n||i;if(i&&!a){if(n&&this.unexpected(),t)throw this.raise(W.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let p=this.maybeParseExportNamedSpecifiers(e);n&&o&&!i&&!p&&this.unexpected(null,5),a&&s&&this.unexpected(null,98);let d;if(c||p){if(d=!1,t)throw this.raise(W.UnsupportedDecoratorExport,e);this.parseExportFrom(e,c)}else d=this.maybeParseExportDeclaration(e);if(c||p||d){let f=e;if(this.checkExport(f,!0,!1,!!f.source),f.declaration?.type==="ClassDeclaration")this.maybeTakeDecorators(t,f.declaration,f);else if(t)throw this.raise(W.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(f,"ExportNamedDeclaration")}if(this.eat(65)){let f=e,m=this.parseExportDefaultExpression();if(f.declaration=m,m.type==="ClassDeclaration")this.maybeTakeDecorators(t,m,f);else if(t)throw this.raise(W.UnsupportedDecoratorExport,e);return this.checkExport(f,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(f,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",t?.loc.start);let 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)){e.specifiers??(e.specifiers=[]);let t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let t=e;t.specifiers||(t.specifiers=[]);let r=t.exportKind==="type";return t.specifiers.push(...this.parseExportSpecifiers(r)),t.source=null,t.attributes=[],t.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let 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")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(W.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(W.UnsupportedDefaultExport,this.state.startLoc);let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(Qn(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let n=this.nextTokenStart(),o=this.input.charCodeAt(n);if(o===123||this.chStartsBindingIdentifier(o,n)&&!this.input.startsWith("from",n))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),r=this.isUnparsedContextual(t,"from");if(this.input.charCodeAt(t)===44||Qn(this.state.type)&&r)return!0;if(this.match(65)&&r){let n=this.input.charCodeAt(this.nextTokenStartSince(t+4));return n===34||n===39}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(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(W.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(W.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(W.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,n){if(t){if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){let o=e.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!o.extra?.parenthesized&&this.raise(W.ExportDefaultFromAsIdentifier,o)}}else if(e.specifiers?.length)for(let o of e.specifiers){let{exported:i}=o,a=i.type==="Identifier"?i.name:i.value;if(this.checkDuplicateExports(o,a),!n&&o.local){let{local:s}=o;s.type!=="Identifier"?this.raise(W.ExportBindingIsString,o,{localName:s.value,exportName:a}):(this.checkReservedWord(s.name,s.loc.start,!0,!1),this.scope.checkLocalExport(s))}}else if(e.declaration){let o=e.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:i}=o;if(!i)throw new Error("Assertion failure");this.checkDuplicateExports(e,i.name)}else if(o.type==="VariableDeclaration")for(let i of o.declarations)this.checkDeclaration(i.id)}}}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let t of e.properties)this.checkDeclaration(t);else if(e.type==="ArrayPattern")for(let t of e.elements)t&&this.checkDeclaration(t);else e.type==="ObjectProperty"?this.checkDeclaration(e.value):e.type==="RestElement"?this.checkDeclaration(e.argument):e.type==="AssignmentPattern"&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&(t==="default"?this.raise(W.DuplicateDefaultExport,e):this.raise(W.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;let n=this.isContextual(130),o=this.match(134),i=this.startNode();i.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(i,o,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)){let e=this.parseStringLiteral(this.state.value),t=VVe.exec(e.value);return t&&this.raise(W.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions!=null?e.assertions.some(({key:t,value:r})=>r.value==="json"&&(t.type==="Identifier"?t.name==="type":t.value==="type")):!1}checkImportReflection(e){let{specifiers:t}=e,r=t.length===1?t[0].type:null;e.phase==="source"?r!=="ImportDefaultSpecifier"&&this.raise(W.SourcePhaseImportRequiresDefault,t[0].loc.start):e.phase==="defer"?r!=="ImportNamespaceSpecifier"&&this.raise(W.DeferImportRequiresNamespace,t[0].loc.start):e.module&&(r!=="ImportDefaultSpecifier"&&this.raise(W.ImportReflectionNotBinding,t[0].loc.start),e.assertions?.length>0&&this.raise(W.ImportReflectionHasAssertion,t[0].loc.start))}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){let{specifiers:t}=e;if(t!=null){let r=t.find(n=>{let o;if(n.type==="ExportSpecifier"?o=n.local:n.type==="ImportSpecifier"&&(o=n.imported),o!==void 0)return o.type==="Identifier"?o.name!=="default":o.value!=="default"});r!==void 0&&this.raise(W.ImportJSONBindingNotDefault,r.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)}applyImportPhase(e,t,r,n){t||(this.hasPlugin("importReflection")&&(e.module=!1),r==="source"?(this.expectPlugin("sourcePhaseImports",n),e.phase="source"):r==="defer"?(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;let r=this.startNode(),n=this.parseIdentifierName(!0),{type:o}=this.state;return(Pu(o)?o!==98||this.lookaheadCharCode()===102:o!==12)?(this.applyImportPhase(e,t,n,r.loc.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(r,n))}isPrecedingIdImportPhase(e){let{type:t}=this.state;return Qn(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let 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 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);let e=[],t=new Set;do{if(this.match(8))break;let r=this.startNode(),n=this.state.value;if(t.has(n)&&this.raise(W.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(W.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(){let e=[],t=new Set;do{let r=this.startNode();if(r.key=this.parseIdentifier(!0),r.key.name!=="type"&&this.raise(W.ModuleAttributeDifferentFromType,r.key),t.has(r.key.name)&&this.raise(W.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(134))throw this.raise(W.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;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),t=this.parseImportAttributes()}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.raise(W.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}else if(Pu(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let 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(W.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let r=this.startNode(),n=this.match(134),o=this.isContextual(130);r.imported=this.parseModuleExportName();let i=this.parseImportSpecifier(r,n,e.importKind==="type"||e.importKind==="typeof",o,void 0);e.specifiers.push(i)}}parseImportSpecifier(e,t,r,n,o){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:i}=e;if(t)throw this.raise(W.ImportBindingIsString,e,{importName:i.value});this.checkReservedWord(i.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(i))}return this.finishImportSpecifier(e,"ImportSpecifier",o)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}},kpe=class extends KVe{constructor(e,t,r){let n=wze(e);super(n,t),this.options=n,this.initializeScopes(),this.plugins=r,this.filename=n.sourceFilename,this.startIndex=n.startIndex;let o=0;n.allowAwaitOutsideFunction&&(o|=1),n.allowReturnOutsideFunction&&(o|=2),n.allowImportExportEverywhere&&(o|=8),n.allowSuperOutsideMethod&&(o|=16),n.allowUndeclaredExports&&(o|=64),n.allowNewTargetOutsideFunction&&(o|=4),n.allowYieldOutsideFunction&&(o|=32),n.ranges&&(o|=128),n.tokens&&(o|=256),n.createImportExpressions&&(o|=512),n.createParenthesizedExpressions&&(o|=1024),n.errorRecovery&&(o|=2048),n.attachComment&&(o|=4096),n.annexB&&(o|=8192),this.optionFlags=o}getScopeHandler(){return hU}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=null;let r=this.parseTopLevel(e,t);return r.errors=this.state.errors,r.comments.length=this.state.commentsLen,r}};function Cpe(e,t){if(t?.sourceType==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let r=iD(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",iD(t,e).parse()}catch{}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",iD(t,e).parse()}catch{}throw r}}else return iD(t,e).parse()}function Ppe(e,t){let r=iD(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function GVe(e){let t={};for(let r of Object.keys(e))t[r]=_pe(e[r]);return t}var d7t=GVe(Pze);function iD(e,t){let r=kpe,n=new Map;if(e?.plugins){for(let o of e.plugins){let i,a;typeof o=="string"?i=o:[i,a]=o,n.has(i)||n.set(i,a||{})}BVe(n),r=HVe(n)}return new r(e,t,n)}var Xue=new Map;function HVe(e){let t=[];for(let o of qVe)e.has(o)&&t.push(o);let r=t.join("|"),n=Xue.get(r);if(!n){n=kpe;for(let o of t)n=Ipe[o](n);Xue.set(r,n)}return n}function k3(e){return(t,r,n)=>{let o=!!n?.backwards;if(r===!1)return!1;let{length:i}=t,a=r;for(;a>=0&&ae===` +`||e==="\r"||e==="\u2028"||e==="\u2029";function YVe(e,t,r){let n=!!r?.backwards;if(t===!1)return!1;let o=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&o===` +`)return t-2;if(Yue(o))return t-1}else{if(o==="\r"&&e.charAt(t+1)===` +`)return t+2;if(Yue(o))return t+1}return t}var eJe=YVe;function tJe(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?WVe(e,t):t}var rJe=tJe;function nJe(e,t){let r=null,n=t;for(;n!==r;)r=n,n=ZVe(e,n),n=XVe(e,n),n=rJe(e,n),n=eJe(e,n);return n}var oJe=nJe;function iJe(e){let t=[];for(let r of e)try{return r()}catch(n){t.push(n)}throw Object.assign(new Error("All combinations failed"),{errors:t})}function aJe(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var Ope=aJe,yU=(e,t)=>(r,n,...o)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,o),sJe=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},cJe=yU("findLast",function(){if(Array.isArray(this))return sJe}),lJe=cJe;function uJe(e){return this[e<0?this.length+e:e]}var pJe=yU("at",function(){if(Array.isArray(this)||typeof this=="string")return uJe}),dJe=pJe;function j_(e){let t=e.range?.[0]??e.start,r=(e.declaration?.decorators??e.decorators)?.[0];return r?Math.min(j_(r),t):t}function ed(e){return e.range?.[1]??e.end}function _Je(e){let t=new Set(e);return r=>t.has(r?.type)}var gU=_Je,fJe=gU(["Block","CommentBlock","MultiLine"]),SU=fJe,mJe=gU(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),hJe=mJe,Hq=new WeakMap;function yJe(e){return Hq.has(e)||Hq.set(e,SU(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),Hq.get(e)}var gJe=yJe;function SJe(e){if(!SU(e))return!1;let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var Zq=new WeakMap;function vJe(e){return Zq.has(e)||Zq.set(e,SJe(e)),Zq.get(e)}var epe=vJe;function bJe(e){if(e.length<2)return;let t;for(let r=e.length-1;r>=0;r--){let n=e[r];if(t&&ed(n)===j_(t)&&epe(n)&&epe(t)&&(e.splice(r+1,1),n.value+="*//*"+t.value,n.range=[j_(n),ed(t)]),!hJe(n)&&!SU(n))throw new TypeError(`Unknown comment type: "${n.type}".`);t=n}}var xJe=bJe;function EJe(e){return e!==null&&typeof e=="object"}var TJe=EJe,nD=null;function sD(e){if(nD!==null&&typeof nD.property){let t=nD;return nD=sD.prototype=null,t}return nD=sD.prototype=e??Object.create(null),new sD}var DJe=10;for(let e=0;e<=DJe;e++)sD();function AJe(e){return sD(e)}function wJe(e,t="type"){AJe(e);function r(n){let o=n[t],i=e[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:n});return i}return r}var IJe=wJe,z=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],kJe={AccessorProperty:z[0],AnyTypeAnnotation:z[1],ArgumentPlaceholder:z[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:z[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:z[3],AsExpression:z[4],AssignmentExpression:z[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:z[6],BigIntLiteral:z[1],BigIntLiteralTypeAnnotation:z[1],BigIntTypeAnnotation:z[1],BinaryExpression:z[5],BindExpression:["object","callee"],BlockStatement:z[7],BooleanLiteral:z[1],BooleanLiteralTypeAnnotation:z[1],BooleanTypeAnnotation:z[1],BreakStatement:z[8],CallExpression:z[9],CatchClause:["param","body"],ChainExpression:z[3],ClassAccessorProperty:z[0],ClassBody:z[10],ClassDeclaration:z[11],ClassExpression:z[11],ClassImplements:z[12],ClassMethod:z[13],ClassPrivateMethod:z[13],ClassPrivateProperty:z[14],ClassProperty:z[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:z[15],ConditionalExpression:z[16],ConditionalTypeAnnotation:z[17],ContinueStatement:z[8],DebuggerStatement:z[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:z[18],DeclareEnum:z[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:z[20],DeclareFunction:["id","predicate"],DeclareHook:z[21],DeclareInterface:z[22],DeclareModule:z[19],DeclareModuleExports:z[23],DeclareNamespace:z[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:z[24],DeclareVariable:z[21],Decorator:z[3],Directive:z[18],DirectiveLiteral:z[1],DoExpression:z[10],DoWhileStatement:z[25],EmptyStatement:z[1],EmptyTypeAnnotation:z[1],EnumBigIntBody:z[26],EnumBigIntMember:z[27],EnumBooleanBody:z[26],EnumBooleanMember:z[27],EnumDeclaration:z[19],EnumDefaultedMember:z[21],EnumNumberBody:z[26],EnumNumberMember:z[27],EnumStringBody:z[26],EnumStringMember:z[27],EnumSymbolBody:z[26],ExistsTypeAnnotation:z[1],ExperimentalRestProperty:z[6],ExperimentalSpreadProperty:z[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:z[28],ExportNamedDeclaration:z[20],ExportNamespaceSpecifier:z[28],ExportSpecifier:["local","exported"],ExpressionStatement:z[3],File:["program"],ForInStatement:z[29],ForOfStatement:z[29],ForStatement:["init","test","update","body"],FunctionDeclaration:z[30],FunctionExpression:z[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:z[15],GenericTypeAnnotation:z[12],HookDeclaration:z[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:z[16],ImportAttribute:z[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:z[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:z[33],ImportSpecifier:["imported","local"],IndexedAccessType:z[34],InferredPredicate:z[1],InferTypeAnnotation:z[35],InterfaceDeclaration:z[22],InterfaceExtends:z[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:z[1],IntersectionTypeAnnotation:z[36],JsExpressionRoot:z[37],JsonRoot:z[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:z[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:z[1],JSXExpressionContainer:z[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:z[1],JSXMemberExpression:z[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:z[1],JSXSpreadAttribute:z[6],JSXSpreadChild:z[3],JSXText:z[1],KeyofTypeAnnotation:z[6],LabeledStatement:["label","body"],Literal:z[1],LogicalExpression:z[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:z[21],MatchExpression:z[39],MatchExpressionCase:z[40],MatchIdentifierPattern:z[21],MatchLiteralPattern:z[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:z[6],MatchStatement:z[39],MatchStatementCase:z[40],MatchUnaryPattern:z[6],MatchWildcardPattern:z[1],MemberExpression:z[38],MetaProperty:["meta","property"],MethodDefinition:z[42],MixedTypeAnnotation:z[1],ModuleExpression:z[10],NeverTypeAnnotation:z[1],NewExpression:z[9],NGChainedExpression:z[43],NGEmptyExpression:z[1],NGMicrosyntax:z[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:z[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:z[32],NGPipeExpression:["left","right","arguments"],NGRoot:z[37],NullableTypeAnnotation:z[23],NullLiteral:z[1],NullLiteralTypeAnnotation:z[1],NumberLiteralTypeAnnotation:z[1],NumberTypeAnnotation:z[1],NumericLiteral:z[1],ObjectExpression:["properties"],ObjectMethod:z[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:z[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:z[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:z[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:z[9],OptionalIndexedAccessType:z[34],OptionalMemberExpression:z[38],ParenthesizedExpression:z[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:z[1],PipelineTopicExpression:z[3],Placeholder:z[1],PrivateIdentifier:z[1],PrivateName:z[21],Program:z[7],Property:z[32],PropertyDefinition:z[14],QualifiedTypeIdentifier:z[44],QualifiedTypeofIdentifier:z[44],RegExpLiteral:z[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:z[6],SatisfiesExpression:z[4],SequenceExpression:z[43],SpreadElement:z[6],StaticBlock:z[10],StringLiteral:z[1],StringLiteralTypeAnnotation:z[1],StringTypeAnnotation:z[1],Super:z[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:z[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:z[1],TemplateLiteral:["quasis","expressions"],ThisExpression:z[1],ThisTypeAnnotation:z[1],ThrowStatement:z[6],TopicReference:z[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:z[45],TSAbstractKeyword:z[1],TSAbstractMethodDefinition:z[32],TSAbstractPropertyDefinition:z[45],TSAnyKeyword:z[1],TSArrayType:z[2],TSAsExpression:z[4],TSAsyncKeyword:z[1],TSBigIntKeyword:z[1],TSBooleanKeyword:z[1],TSCallSignatureDeclaration:z[46],TSClassImplements:z[47],TSConditionalType:z[17],TSConstructorType:z[46],TSConstructSignatureDeclaration:z[46],TSDeclareFunction:z[31],TSDeclareKeyword:z[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:z[26],TSEnumDeclaration:z[19],TSEnumMember:["id","initializer"],TSExportAssignment:z[3],TSExportKeyword:z[1],TSExternalModuleReference:z[3],TSFunctionType:z[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:z[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:z[35],TSInstantiationExpression:z[47],TSInterfaceBody:z[10],TSInterfaceDeclaration:z[22],TSInterfaceHeritage:z[47],TSIntersectionType:z[36],TSIntrinsicKeyword:z[1],TSJSDocAllType:z[1],TSJSDocNonNullableType:z[23],TSJSDocNullableType:z[23],TSJSDocUnknownType:z[1],TSLiteralType:z[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:z[10],TSModuleDeclaration:z[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:z[21],TSNeverKeyword:z[1],TSNonNullExpression:z[3],TSNullKeyword:z[1],TSNumberKeyword:z[1],TSObjectKeyword:z[1],TSOptionalType:z[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:z[23],TSPrivateKeyword:z[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:z[1],TSPublicKeyword:z[1],TSQualifiedName:z[5],TSReadonlyKeyword:z[1],TSRestType:z[23],TSSatisfiesExpression:z[4],TSStaticKeyword:z[1],TSStringKeyword:z[1],TSSymbolKeyword:z[1],TSTemplateLiteralType:["quasis","types"],TSThisType:z[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:z[23],TSTypeAssertion:z[4],TSTypeLiteral:z[26],TSTypeOperator:z[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:z[48],TSTypeParameterInstantiation:z[48],TSTypePredicate:z[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:z[1],TSUnionType:z[36],TSUnknownKeyword:z[1],TSVoidKeyword:z[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:z[24],TypeAnnotation:z[23],TypeCastExpression:z[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:z[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:z[48],TypeParameterInstantiation:z[48],TypePredicate:z[49],UnaryExpression:z[6],UndefinedTypeAnnotation:z[1],UnionTypeAnnotation:z[36],UnknownTypeAnnotation:z[1],UpdateExpression:z[6],V8IntrinsicIdentifier:z[1],VariableDeclaration:["declarations"],VariableDeclarator:z[27],Variance:z[1],VoidPattern:z[1],VoidTypeAnnotation:z[1],WhileStatement:z[25],WithStatement:["object","body"],YieldExpression:z[6]},CJe=IJe(kJe),PJe=CJe;function A3(e,t){if(!TJe(e))return e;if(Array.isArray(e)){for(let n=0;ny<=d);f=m&&n.slice(m,d).trim().length===0}return f?void 0:(p.extra={...p.extra,parenthesized:!0},p)}case"TemplateLiteral":if(c.expressions.length!==c.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(r==="flow"||r==="hermes"||r==="espree"||r==="typescript"||i){let p=j_(c)+1,d=ed(c)-(c.tail?1:2);c.range=[p,d]}break;case"VariableDeclaration":{let p=dJe(0,c.declarations,-1);p?.init&&n[ed(p)]!==";"&&(c.range=[j_(c),ed(p)]);break}case"TSParenthesizedType":return c.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(c.types.length===1)return c.types[0];break;case"ImportExpression":r==="hermes"&&c.attributes&&!c.options&&(c.options=c.attributes);break}},onLeave(c){switch(c.type){case"LogicalExpression":if(Npe(c))return rU(c);break;case"TSImportType":!c.source&&c.argument.type==="TSLiteralType"&&(c.source=c.argument.literal,delete c.argument);break}}}),e}function Npe(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function rU(e){return Npe(e)?rU({type:"LogicalExpression",operator:e.operator,left:rU({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[j_(e.left),ed(e.right.left)]}),right:e.right.right,range:[j_(e),ed(e)]}):e}var FJe=NJe;function RJe(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var Fpe=RJe,tpe="Unexpected parseExpression() input: ";function LJe(e){let{message:t,loc:r,reasonCode:n}=e;if(!r)return e;let{line:o,column:i}=r,a=e;(n==="MissingPlugin"||n==="MissingOneOfPlugins")&&(t="Unexpected token.",a=void 0);let s=` (${o}:${i})`;return t.endsWith(s)&&(t=t.slice(0,-s.length)),t.startsWith(tpe)&&(t=t.slice(tpe.length)),Fpe(t,{loc:{start:{line:o,column:i+1}},cause:a})}var Rpe=LJe,$Je=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},MJe=yU("replaceAll",function(){if(typeof this=="string")return $Je}),b3=MJe,jJe=/\*\/$/,BJe=/^\/\*\*?/,qJe=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,UJe=/(^|\s+)\/\/([^\n\r]*)/g,rpe=/^(\r?\n)+/,zJe=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,npe=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,VJe=/(\r?\n|^) *\* ?/g,JJe=[];function KJe(e){let t=e.match(qJe);return t?t[0].trimStart():""}function GJe(e){e=b3(0,e.replace(BJe,"").replace(jJe,""),VJe,"$1");let t="";for(;t!==e;)t=e,e=b3(0,e,zJe,` $1 $2 -`);e=e.replace(fRt,"").trimEnd();let i=Object.create(null),s=kCe(0,e,mRt,"").replace(fRt,"").trimEnd(),l;for(;l=mRt.exec(e);){let d=kCe(0,l[2],EQr,"");if(typeof i[l[1]]=="string"||Array.isArray(i[l[1]])){let h=i[l[1]];i[l[1]]=[...DQr,...Array.isArray(h)?h:[h],d]}else i[l[1]]=d}return{comments:s,pragmas:i}}var IQr=["noformat","noprettier"],PQr=["format","prettier"];function HRt(e){let r=JRt(e);r&&(e=e.slice(r.length+1));let i=AQr(e),{pragmas:s,comments:l}=wQr(i);return{shebang:r,text:e,pragmas:s,comments:l}}function NQr(e){let{pragmas:r}=HRt(e);return PQr.some(i=>Object.prototype.hasOwnProperty.call(r,i))}function OQr(e){let{pragmas:r}=HRt(e);return IQr.some(i=>Object.prototype.hasOwnProperty.call(r,i))}function FQr(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:NQr,hasIgnorePragma:OQr,locStart:L5,locEnd:u8,...e}}var Cpe=FQr,RZe="module",KRt="commonjs";function RQr(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return RZe;if(/\.(?:cjs|cts)$/iu.test(e))return KRt}}function LQr(e,r){let{type:i="JsExpressionRoot",rootMarker:s,text:l}=r,{tokens:d,comments:h}=e;return delete e.tokens,delete e.comments,{tokens:d,comments:h,type:i,node:e,range:[0,l.length],rootMarker:s}}var QRt=LQr,NY=e=>Cpe(UQr(e)),MQr={sourceType:RZe,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],["discardBinding",{syntaxType:"void"}]],tokens:!1,ranges:!1},hRt="v8intrinsic",gRt=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],M5=(e,r=MQr)=>({...r,plugins:[...r.plugins,...e]}),jQr=/@(?:no)?flow\b/u;function BQr(e,r){if(r?.endsWith(".js.flow"))return!0;let i=JRt(e);i&&(e=e.slice(i.length));let s=$Kr(e,0);return s!==!1&&(e=e.slice(0,s)),jQr.test(e)}function $Qr(e,r,i){let s=e(r,i),l=s.errors.find(d=>!zQr.has(d.reasonCode));if(l)throw l;return s}function UQr({isExpression:e=!1,optionsCombinations:r}){return(i,s={})=>{let{filepath:l}=s;if(typeof l!="string"&&(l=void 0),(s.parser==="babel"||s.parser==="__babel_estree")&&BQr(i,l))return s.parser="babel-flow",XRt.parse(i,s);let d=r,h=s.__babelSourceType??RQr(l);h&&h!==RZe&&(d=d.map(L=>({...L,sourceType:h,...h===KRt?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let S=/%[A-Z]/u.test(i);i.includes("|>")?d=(S?[...gRt,hRt]:gRt).flatMap(L=>d.map(V=>M5([L],V))):S&&(d=d.map(L=>M5([hRt],L)));let b=e?qRt:zRt,A;try{A=UKr(d.map(L=>()=>$Qr(b,i,L)))}catch({errors:[L]}){throw GRt(L)}return e&&(A=QRt(A,{text:i,rootMarker:s.rootMarker})),hQr(A,{text:i})}}var zQr=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert","DeclarationMissingInitializer"]),ZRt=[M5(["jsx"])],yRt=NY({optionsCombinations:ZRt}),vRt=NY({optionsCombinations:[M5(["jsx","typescript"]),M5(["typescript"])]}),SRt=NY({isExpression:!0,optionsCombinations:[M5(["jsx"])]}),bRt=NY({isExpression:!0,optionsCombinations:[M5(["typescript"])]}),XRt=NY({optionsCombinations:[M5(["jsx",["flow",{all:!0}],"flowComments"])]}),qQr=NY({optionsCombinations:ZRt.map(e=>M5(["estree"],e))}),YRt={};yZe(YRt,{json:()=>WQr,"json-stringify":()=>KQr,json5:()=>GQr,jsonc:()=>HQr});function JQr(e){return Array.isArray(e)&&e.length>0}var eLt=JQr,tLt={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function VQr(e){let r=zRt(e,tLt),{program:i}=r;if(i.body.length===0&&i.directives.length===0&&!i.interpreter)return r}function FCe(e,r={}){let{allowComments:i=!0,allowEmpty:s=!1}=r,l;try{l=qRt(e,tLt)}catch(d){if(s&&d.code==="BABEL_PARSER_SYNTAX_ERROR"&&d.reasonCode==="ParseExpressionEmptyInput")try{l=VQr(e)}catch{}if(!l)throw GRt(d)}if(!i&&eLt(l.comments))throw Xj(l.comments[0],"Comment");return l=QRt(l,{type:"JsonRoot",text:e}),l.node.type==="File"?delete l.node:AY(l.node),l}function Xj(e,r){let[i,s]=[e.loc.start,e.loc.end].map(({line:l,column:d})=>({line:l,column:d+1}));return WRt(`${r} is not allowed in JSON.`,{loc:{start:i,end:s}})}function AY(e){switch(e.type){case"ArrayExpression":for(let r of e.elements)r!==null&&AY(r);return;case"ObjectExpression":for(let r of e.properties)AY(r);return;case"ObjectProperty":if(e.computed)throw Xj(e.key,"Computed key");if(e.shorthand)throw Xj(e.key,"Shorthand property");e.key.type!=="Identifier"&&AY(e.key),AY(e.value);return;case"UnaryExpression":{let{operator:r,argument:i}=e;if(r!=="+"&&r!=="-")throw Xj(e,`Operator '${e.operator}'`);if(i.type==="NumericLiteral"||i.type==="Identifier"&&(i.name==="Infinity"||i.name==="NaN"))return;throw Xj(i,`Operator '${r}' before '${i.type}'`)}case"Identifier":if(e.name!=="Infinity"&&e.name!=="NaN"&&e.name!=="undefined")throw Xj(e,`Identifier '${e.name}'`);return;case"TemplateLiteral":if(eLt(e.expressions))throw Xj(e.expressions[0],"'TemplateLiteral' with expression");for(let r of e.quasis)AY(r);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw Xj(e,`'${e.type}'`)}}var WQr=Cpe({parse:e=>FCe(e),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),GQr=Cpe(e=>FCe(e)),HQr=Cpe(e=>FCe(e,{allowEmpty:!0})),KQr=Cpe({parse:e=>FCe(e,{allowComments:!1}),astFormat:"estree-json"}),QQr={...xRt,...YRt};var ZQr=Object.defineProperty,uXe=(e,r)=>{for(var i in r)ZQr(e,i,{get:r[i],enumerable:!0})},pXe={};uXe(pXe,{languages:()=>ein,options:()=>Xnn,printers:()=>Ynn});var XQr=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],NLt={};uXe(NLt,{canAttachComment:()=>yXr,embed:()=>uen,features:()=>Jnn,getVisitorKeys:()=>BLt,handleComments:()=>YXr,hasPrettierIgnore:()=>MXe,insertPragma:()=>Een,isBlockComment:()=>z6,isGap:()=>tYr,massageAstNode:()=>_Xr,print:()=>ILt,printComment:()=>Aen,printPrettierIgnored:()=>ILt,willPrintOwnComments:()=>iYr});var _Xe=(e,r)=>(i,s,...l)=>i|1&&s==null?void 0:(r.call(s)??s[e]).apply(s,l),YQr=String.prototype.replaceAll??function(e,r){return e.global?this.replace(e,r):this.split(e).join(r)},eZr=_Xe("replaceAll",function(){if(typeof this=="string")return YQr}),YS=eZr;function tZr(e){return this[e<0?this.length+e:e]}var rZr=_Xe("at",function(){if(Array.isArray(this)||typeof this=="string")return tZr}),Zf=rZr;function nZr(e){return e!==null&&typeof e=="object"}var OLt=nZr;function*iZr(e,r){let{getVisitorKeys:i,filter:s=()=>!0}=r,l=d=>OLt(d)&&s(d);for(let d of i(e)){let h=e[d];if(Array.isArray(h))for(let S of h)l(S)&&(yield S);else l(h)&&(yield h)}}function*oZr(e,r){let i=[e];for(let s=0;s/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function cZr(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function lZr(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var uZr="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07",pZr=/[^\x20-\x7F]/u,_Zr=new Set(uZr);function dZr(e){if(!e)return 0;if(!pZr.test(e))return e.length;e=e.replace(sZr(),i=>_Zr.has(i)?" ":" ");let r=0;for(let i of e){let s=i.codePointAt(0);s<=31||s>=127&&s<=159||s>=768&&s<=879||s>=65024&&s<=65039||(r+=cZr(s)||lZr(s)?2:1)}return r}var LY=dZr;function GCe(e){return(r,i,s)=>{let l=!!s?.backwards;if(i===!1)return!1;let{length:d}=r,h=i;for(;h>=0&&he===` -`||e==="\r"||e==="\u2028"||e==="\u2029";function hZr(e,r,i){let s=!!i?.backwards;if(r===!1)return!1;let l=e.charAt(r);if(s){if(e.charAt(r-1)==="\r"&&l===` -`)return r-2;if(rLt(l))return r-1}else{if(l==="\r"&&e.charAt(r+1)===` -`)return r+2;if(rLt(l))return r+1}return r}var jY=hZr;function gZr(e,r,i={}){let s=MY(e,i.backwards?r-1:r,i),l=jY(e,s,i);return s!==l}var gk=gZr;function yZr(e,r){if(r===!1)return!1;if(e.charAt(r)==="/"&&e.charAt(r+1)==="*"){for(let i=r+2;i0}var Ag=bZr,xZr=()=>{},_V=xZr,FLt=Object.freeze({character:"'",codePoint:39}),RLt=Object.freeze({character:'"',codePoint:34}),TZr=Object.freeze({preferred:FLt,alternate:RLt}),EZr=Object.freeze({preferred:RLt,alternate:FLt});function kZr(e,r){let{preferred:i,alternate:s}=r===!0||r==="'"?TZr:EZr,{length:l}=e,d=0,h=0;for(let S=0;Sh?s:i).character}var LLt=kZr,CZr=/\\(["'\\])|(["'])/gu;function DZr(e,r){let i=r==='"'?"'":'"',s=YS(0,e,CZr,(l,d,h)=>d?d===i?i:l:h===r?"\\"+h:h);return r+s+r}var AZr=DZr;function wZr(e,r){_V(/^(?["']).*\k$/su.test(e));let i=e.slice(1,-1),s=r.parser==="json"||r.parser==="jsonc"||r.parser==="json5"&&r.quoteProps==="preserve"&&!r.singleQuote?'"':r.__isInHtmlAttribute?"'":LLt(i,r.singleQuote);return e.charAt(0)===s?e:AZr(i,s)}var BY=wZr,MLt=e=>Number.isInteger(e)&&e>=0;function B_(e){let r=e.range?.[0]??e.start,i=(e.declaration?.decorators??e.decorators)?.[0];return i?Math.min(B_(i),r):r}function T_(e){return e.range?.[1]??e.end}function HCe(e,r){let i=B_(e);return MLt(i)&&i===B_(r)}function IZr(e,r){let i=T_(e);return MLt(i)&&i===T_(r)}function PZr(e,r){return HCe(e,r)&&IZr(e,r)}var Dpe=null;function Ipe(e){if(Dpe!==null&&typeof Dpe.property){let r=Dpe;return Dpe=Ipe.prototype=null,r}return Dpe=Ipe.prototype=e??Object.create(null),new Ipe}var NZr=10;for(let e=0;e<=NZr;e++)Ipe();function OZr(e){return Ipe(e)}function FZr(e,r="type"){OZr(e);function i(s){let l=s[r],d=e[l];if(!Array.isArray(d))throw Object.assign(new Error(`Missing visitor keys for '${l}'.`),{node:s});return d}return i}var jLt=FZr,Kr=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],RZr={AccessorProperty:Kr[0],AnyTypeAnnotation:Kr[1],ArgumentPlaceholder:Kr[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:Kr[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:Kr[3],AsExpression:Kr[4],AssignmentExpression:Kr[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:Kr[6],BigIntLiteral:Kr[1],BigIntLiteralTypeAnnotation:Kr[1],BigIntTypeAnnotation:Kr[1],BinaryExpression:Kr[5],BindExpression:["object","callee"],BlockStatement:Kr[7],BooleanLiteral:Kr[1],BooleanLiteralTypeAnnotation:Kr[1],BooleanTypeAnnotation:Kr[1],BreakStatement:Kr[8],CallExpression:Kr[9],CatchClause:["param","body"],ChainExpression:Kr[3],ClassAccessorProperty:Kr[0],ClassBody:Kr[10],ClassDeclaration:Kr[11],ClassExpression:Kr[11],ClassImplements:Kr[12],ClassMethod:Kr[13],ClassPrivateMethod:Kr[13],ClassPrivateProperty:Kr[14],ClassProperty:Kr[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:Kr[15],ConditionalExpression:Kr[16],ConditionalTypeAnnotation:Kr[17],ContinueStatement:Kr[8],DebuggerStatement:Kr[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:Kr[18],DeclareEnum:Kr[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:Kr[20],DeclareFunction:["id","predicate"],DeclareHook:Kr[21],DeclareInterface:Kr[22],DeclareModule:Kr[19],DeclareModuleExports:Kr[23],DeclareNamespace:Kr[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:Kr[24],DeclareVariable:Kr[21],Decorator:Kr[3],Directive:Kr[18],DirectiveLiteral:Kr[1],DoExpression:Kr[10],DoWhileStatement:Kr[25],EmptyStatement:Kr[1],EmptyTypeAnnotation:Kr[1],EnumBigIntBody:Kr[26],EnumBigIntMember:Kr[27],EnumBooleanBody:Kr[26],EnumBooleanMember:Kr[27],EnumDeclaration:Kr[19],EnumDefaultedMember:Kr[21],EnumNumberBody:Kr[26],EnumNumberMember:Kr[27],EnumStringBody:Kr[26],EnumStringMember:Kr[27],EnumSymbolBody:Kr[26],ExistsTypeAnnotation:Kr[1],ExperimentalRestProperty:Kr[6],ExperimentalSpreadProperty:Kr[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:Kr[28],ExportNamedDeclaration:Kr[20],ExportNamespaceSpecifier:Kr[28],ExportSpecifier:["local","exported"],ExpressionStatement:Kr[3],File:["program"],ForInStatement:Kr[29],ForOfStatement:Kr[29],ForStatement:["init","test","update","body"],FunctionDeclaration:Kr[30],FunctionExpression:Kr[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:Kr[15],GenericTypeAnnotation:Kr[12],HookDeclaration:Kr[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:Kr[16],ImportAttribute:Kr[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:Kr[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:Kr[33],ImportSpecifier:["imported","local"],IndexedAccessType:Kr[34],InferredPredicate:Kr[1],InferTypeAnnotation:Kr[35],InterfaceDeclaration:Kr[22],InterfaceExtends:Kr[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:Kr[1],IntersectionTypeAnnotation:Kr[36],JsExpressionRoot:Kr[37],JsonRoot:Kr[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:Kr[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:Kr[1],JSXExpressionContainer:Kr[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:Kr[1],JSXMemberExpression:Kr[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:Kr[1],JSXSpreadAttribute:Kr[6],JSXSpreadChild:Kr[3],JSXText:Kr[1],KeyofTypeAnnotation:Kr[6],LabeledStatement:["label","body"],Literal:Kr[1],LogicalExpression:Kr[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:Kr[21],MatchExpression:Kr[39],MatchExpressionCase:Kr[40],MatchIdentifierPattern:Kr[21],MatchLiteralPattern:Kr[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:Kr[6],MatchStatement:Kr[39],MatchStatementCase:Kr[40],MatchUnaryPattern:Kr[6],MatchWildcardPattern:Kr[1],MemberExpression:Kr[38],MetaProperty:["meta","property"],MethodDefinition:Kr[42],MixedTypeAnnotation:Kr[1],ModuleExpression:Kr[10],NeverTypeAnnotation:Kr[1],NewExpression:Kr[9],NGChainedExpression:Kr[43],NGEmptyExpression:Kr[1],NGMicrosyntax:Kr[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:Kr[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:Kr[32],NGPipeExpression:["left","right","arguments"],NGRoot:Kr[37],NullableTypeAnnotation:Kr[23],NullLiteral:Kr[1],NullLiteralTypeAnnotation:Kr[1],NumberLiteralTypeAnnotation:Kr[1],NumberTypeAnnotation:Kr[1],NumericLiteral:Kr[1],ObjectExpression:["properties"],ObjectMethod:Kr[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:Kr[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:Kr[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:Kr[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:Kr[9],OptionalIndexedAccessType:Kr[34],OptionalMemberExpression:Kr[38],ParenthesizedExpression:Kr[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:Kr[1],PipelineTopicExpression:Kr[3],Placeholder:Kr[1],PrivateIdentifier:Kr[1],PrivateName:Kr[21],Program:Kr[7],Property:Kr[32],PropertyDefinition:Kr[14],QualifiedTypeIdentifier:Kr[44],QualifiedTypeofIdentifier:Kr[44],RegExpLiteral:Kr[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:Kr[6],SatisfiesExpression:Kr[4],SequenceExpression:Kr[43],SpreadElement:Kr[6],StaticBlock:Kr[10],StringLiteral:Kr[1],StringLiteralTypeAnnotation:Kr[1],StringTypeAnnotation:Kr[1],Super:Kr[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:Kr[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:Kr[1],TemplateLiteral:["quasis","expressions"],ThisExpression:Kr[1],ThisTypeAnnotation:Kr[1],ThrowStatement:Kr[6],TopicReference:Kr[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:Kr[45],TSAbstractKeyword:Kr[1],TSAbstractMethodDefinition:Kr[32],TSAbstractPropertyDefinition:Kr[45],TSAnyKeyword:Kr[1],TSArrayType:Kr[2],TSAsExpression:Kr[4],TSAsyncKeyword:Kr[1],TSBigIntKeyword:Kr[1],TSBooleanKeyword:Kr[1],TSCallSignatureDeclaration:Kr[46],TSClassImplements:Kr[47],TSConditionalType:Kr[17],TSConstructorType:Kr[46],TSConstructSignatureDeclaration:Kr[46],TSDeclareFunction:Kr[31],TSDeclareKeyword:Kr[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:Kr[26],TSEnumDeclaration:Kr[19],TSEnumMember:["id","initializer"],TSExportAssignment:Kr[3],TSExportKeyword:Kr[1],TSExternalModuleReference:Kr[3],TSFunctionType:Kr[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:Kr[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:Kr[35],TSInstantiationExpression:Kr[47],TSInterfaceBody:Kr[10],TSInterfaceDeclaration:Kr[22],TSInterfaceHeritage:Kr[47],TSIntersectionType:Kr[36],TSIntrinsicKeyword:Kr[1],TSJSDocAllType:Kr[1],TSJSDocNonNullableType:Kr[23],TSJSDocNullableType:Kr[23],TSJSDocUnknownType:Kr[1],TSLiteralType:Kr[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:Kr[10],TSModuleDeclaration:Kr[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:Kr[21],TSNeverKeyword:Kr[1],TSNonNullExpression:Kr[3],TSNullKeyword:Kr[1],TSNumberKeyword:Kr[1],TSObjectKeyword:Kr[1],TSOptionalType:Kr[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:Kr[23],TSPrivateKeyword:Kr[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:Kr[1],TSPublicKeyword:Kr[1],TSQualifiedName:Kr[5],TSReadonlyKeyword:Kr[1],TSRestType:Kr[23],TSSatisfiesExpression:Kr[4],TSStaticKeyword:Kr[1],TSStringKeyword:Kr[1],TSSymbolKeyword:Kr[1],TSTemplateLiteralType:["quasis","types"],TSThisType:Kr[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:Kr[23],TSTypeAssertion:Kr[4],TSTypeLiteral:Kr[26],TSTypeOperator:Kr[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:Kr[48],TSTypeParameterInstantiation:Kr[48],TSTypePredicate:Kr[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:Kr[1],TSUnionType:Kr[36],TSUnknownKeyword:Kr[1],TSVoidKeyword:Kr[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:Kr[24],TypeAnnotation:Kr[23],TypeCastExpression:Kr[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:Kr[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:Kr[48],TypeParameterInstantiation:Kr[48],TypePredicate:Kr[49],UnaryExpression:Kr[6],UndefinedTypeAnnotation:Kr[1],UnionTypeAnnotation:Kr[36],UnknownTypeAnnotation:Kr[1],UpdateExpression:Kr[6],V8IntrinsicIdentifier:Kr[1],VariableDeclaration:["declarations"],VariableDeclarator:Kr[27],Variance:Kr[1],VoidPattern:Kr[1],VoidTypeAnnotation:Kr[1],WhileStatement:Kr[25],WithStatement:["object","body"],YieldExpression:Kr[6]},LZr=jLt(RZr),BLt=LZr;function MZr(e){let r=new Set(e);return i=>r.has(i?.type)}var Tp=MZr;function jZr(e){return e.extra?.raw??e.raw}var yk=jZr,BZr=Tp(["Block","CommentBlock","MultiLine"]),z6=BZr,$Zr=Tp(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),$Lt=$Zr,UZr=Tp(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),Bpe=UZr;function zZr(e,r){let i=r.split(".");for(let s=i.length-1;s>=0;s--){let l=i[s];if(s===0)return e.type==="Identifier"&&e.name===l;if(s===1&&e.type==="MetaProperty"&&e.property.type==="Identifier"&&e.property.name===l){e=e.meta;continue}if(e.type==="MemberExpression"&&!e.optional&&!e.computed&&e.property.type==="Identifier"&&e.property.name===l){e=e.object;continue}return!1}}function qZr(e,r){return r.some(i=>zZr(e,i))}var hXe=qZr;function JZr({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var ULt=JZr;function VZr({node:e,parent:r}){return e?.type!=="EmptyStatement"?!1:r.type==="IfStatement"?r.consequent===e||r.alternate===e:r.type==="DoWhileStatement"||r.type==="ForInStatement"||r.type==="ForOfStatement"||r.type==="ForStatement"||r.type==="LabeledStatement"||r.type==="WithStatement"||r.type==="WhileStatement"?r.body===e:!1}var gXe=VZr;function KZe(e,r){return r(e)||aZr(e,{getVisitorKeys:BLt,predicate:r})}function yXe(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||Sf(e)||Dg(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||M6(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function WZr(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function zLt(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var GZr=Tp(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),ax=Tp(["ArrayExpression"]),B6=Tp(["ObjectExpression"]);function HZr(e){return e.type==="LogicalExpression"&&e.operator==="??"}function d8(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function KZr(e){return e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean"}function qLt(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&d8(e.argument)}function tb(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function JLt(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var vXe=Tp(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),QZr=Tp(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),nB=Tp(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),Fpe=Tp(["FunctionExpression","ArrowFunctionExpression"]);function ZZr(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function LZe(e){return Sf(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var eb=Tp(["JSXElement","JSXFragment"]);function $pe(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function VLt(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function XZr(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!HCe(e,e.typeAnnotation)}var B5=Tp(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function RY(e){return Dg(e)||e.type==="BindExpression"&&!!e.object}var YZr=Tp(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function SXe(e){return ULt(e)||$Lt(e)||YZr(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function eXr(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var tXr=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function rXr(e){return hXe(e,tXr)}function KCe(e,r){if(e?.type!=="CallExpression"||e.optional)return!1;let i=AD(e);if(i.length===1){if(LZe(e)&&KCe(r))return Fpe(i[0]);if(eXr(e.callee))return LZe(i[0])}else if((i.length===2||i.length===3)&&(i[0].type==="TemplateLiteral"||tb(i[0]))&&rXr(e.callee))return i[2]&&!d8(i[2])?!1:(i.length===2?Fpe(i[1]):ZZr(i[1])&&xT(i[1]).length<=1)||LZe(i[1]);return!1}var WLt=e=>r=>(r?.type==="ChainExpression"&&(r=r.expression),e(r)),Sf=WLt(Tp(["CallExpression","OptionalCallExpression"])),Dg=WLt(Tp(["MemberExpression","OptionalMemberExpression"]));function nLt(e,r=5){return GLt(e,r)<=r}function GLt(e,r){let i=0;for(let s in e){let l=e[s];if(OLt(l)&&typeof l.type=="string"&&(i++,i+=GLt(l,r-i)),i>r)return i}return i}var nXr=.25;function bXe(e,r){let{printWidth:i}=r;if(Os(e))return!1;let s=i*nXr;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=s||qLt(e)&&!Os(e.argument))return!0;let l=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return l?l.length<=s:tb(e)?BY(yk(e),r).length<=s:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=s&&!e.quasis[0].value.raw.includes(` -`):e.type==="UnaryExpression"?bXe(e.argument,{printWidth:i}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=s-2:vXe(e)}function j6(e,r){return eb(r)?QCe(r):Os(r,Fc.Leading,i=>gk(e,T_(i)))}function iLt(e){return e.quasis.some(r=>r.value.raw.includes(` -`))}function HLt(e,r){return(e.type==="TemplateLiteral"&&iLt(e)||e.type==="TaggedTemplateExpression"&&iLt(e.quasi))&&!gk(r,B_(e),{backwards:!0})}function KLt(e){if(!Os(e))return!1;let r=Zf(0,uV(e,Fc.Dangling),-1);return r&&!z6(r)}function iXr(e){if(e.length<=1)return!1;let r=0;for(let i of e)if(Fpe(i)){if(r+=1,r>1)return!0}else if(Sf(i)){for(let s of AD(i))if(Fpe(s))return!0}return!1}function QLt(e){let{node:r,parent:i,key:s}=e;return s==="callee"&&Sf(r)&&Sf(i)&&i.arguments.length>0&&r.arguments.length>i.arguments.length}var oXr=new Set(["!","-","+","~"]);function L6(e,r=2){if(r<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return L6(e.expression,r);let i=s=>L6(s,r-1);if(JLt(e))return LY(e.pattern??e.regex.pattern)<=5;if(vXe(e)||QZr(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(s=>!s.value.raw.includes(` -`))&&e.expressions.every(i);if(B6(e))return e.properties.every(s=>!s.computed&&(s.shorthand||s.value&&i(s.value)));if(ax(e))return e.elements.every(s=>s===null||i(s));if(UY(e)){if(e.type==="ImportExpression"||L6(e.callee,r)){let s=AD(e);return s.length<=r&&s.every(i)}return!1}return Dg(e)?L6(e.object,r)&&L6(e.property,r):e.type==="UnaryExpression"&&oXr.has(e.operator)||e.type==="UpdateExpression"?L6(e.argument,r):!1}function g8(e,r="es5"){return e.trailingComma==="es5"&&r==="es5"||e.trailingComma==="all"&&(r==="all"||r==="es5")}function B2(e,r){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return B2(e.left,r);case"MemberExpression":case"OptionalMemberExpression":return B2(e.object,r);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:B2(e.tag,r);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:B2(e.callee,r);case"ConditionalExpression":return B2(e.test,r);case"UpdateExpression":return!e.prefix&&B2(e.argument,r);case"BindExpression":return e.object&&B2(e.object,r);case"SequenceExpression":return B2(e.expressions[0],r);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return B2(e.expression,r);default:return r(e)}}var oLt={"==":!0,"!=":!0,"===":!0,"!==":!0},RCe={"*":!0,"/":!0,"%":!0},QZe={">>":!0,">>>":!0,"<<":!0};function xXe(e,r){return!(zCe(r)!==zCe(e)||e==="**"||oLt[e]&&oLt[r]||r==="%"&&RCe[e]||e==="%"&&RCe[r]||r!==e&&RCe[r]&&RCe[e]||QZe[e]&&QZe[r])}var aXr=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,r)=>e.map(i=>[i,r])));function zCe(e){return aXr.get(e)}function sXr(e){return!!QZe[e]||e==="|"||e==="^"||e==="&"}function cXr(e){if(e.rest)return!0;let r=xT(e);return Zf(0,r,-1)?.type==="RestElement"}var MZe=new WeakMap;function xT(e){if(MZe.has(e))return MZe.get(e);let r=[];return e.this&&r.push(e.this),r.push(...e.params),e.rest&&r.push(e.rest),MZe.set(e,r),r}function lXr(e,r){let{node:i}=e,s=0,l=()=>r(e,s++);i.this&&e.call(l,"this"),e.each(l,"params"),i.rest&&e.call(l,"rest")}var jZe=new WeakMap;function AD(e){if(jZe.has(e))return jZe.get(e);if(e.type==="ChainExpression")return AD(e.expression);let r;return e.type==="ImportExpression"||e.type==="TSImportType"?(r=[e.source],e.options&&r.push(e.options)):e.type==="TSExternalModuleReference"?r=[e.expression]:r=e.arguments,jZe.set(e,r),r}function qCe(e,r){let{node:i}=e;if(i.type==="ChainExpression")return e.call(()=>qCe(e,r),"expression");i.type==="ImportExpression"||i.type==="TSImportType"?(e.call(()=>r(e,0),"source"),i.options&&e.call(()=>r(e,1),"options")):i.type==="TSExternalModuleReference"?e.call(()=>r(e,0),"expression"):e.each(r,"arguments")}function aLt(e,r){let i=[];if(e.type==="ChainExpression"&&(e=e.expression,i.push("expression")),e.type==="ImportExpression"||e.type==="TSImportType"){if(r===0||r===(e.options?-2:-1))return[...i,"source"];if(e.options&&(r===1||r===-1))return[...i,"options"];throw new RangeError("Invalid argument index")}else if(e.type==="TSExternalModuleReference"){if(r===0||r===-1)return[...i,"expression"]}else if(r<0&&(r=e.arguments.length+r),r>=0&&r{if(typeof e=="function"&&(r=e,e=0),e||r)return(i,s,l)=>!(e&Fc.Leading&&!i.leading||e&Fc.Trailing&&!i.trailing||e&Fc.Dangling&&(i.leading||i.trailing)||e&Fc.Block&&!z6(i)||e&Fc.Line&&!Bpe(i)||e&Fc.First&&s!==0||e&Fc.Last&&s!==l.length-1||e&Fc.PrettierIgnore&&!$Y(i)||r&&!r(i))};function Os(e,r,i){if(!Ag(e?.comments))return!1;let s=ZLt(r,i);return s?e.comments.some(s):!0}function uV(e,r,i){if(!Array.isArray(e?.comments))return[];let s=ZLt(r,i);return s?e.comments.filter(s):e.comments}var y8=(e,{originalText:r})=>mXe(r,T_(e));function UY(e){return Sf(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function oB(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!$pe(e))}var M6=Tp(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),f8=Tp(["TSUnionType","UnionTypeAnnotation"]),Upe=Tp(["TSIntersectionType","IntersectionTypeAnnotation"]),iB=Tp(["TSConditionalType","ConditionalTypeAnnotation"]),uXr=e=>e?.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const",ZZe=Tp(["TSTypeAliasDeclaration","TypeAlias"]);function XLt({key:e,parent:r}){return!(e==="types"&&f8(r)||e==="types"&&Upe(r))}var pXr=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),OY=e=>{for(let r of e.quasis)delete r.value};function YLt(e,r,i){if(e.type==="Program"&&delete r.sourceType,(e.type==="BigIntLiteral"||e.type==="Literal")&&e.bigint&&(r.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"&&!gXe({node:e,parent:i})||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute")&&e.key&&!e.computed){let{key:l}=e;tb(l)||d8(l)?r.key=String(l.value):l.type==="Identifier"&&(r.key=l.name)}if(e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(l=>l.type==="JSXAttribute"&&l.name.name==="jsx"))for(let{type:l,expression:d}of r.children)l==="JSXExpressionContainer"&&d.type==="TemplateLiteral"&&OY(d);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&OY(r.value.expression),e.type==="JSXAttribute"&&e.value?.type==="Literal"&&/["']|"|'/u.test(e.value.value)&&(r.value.value=YS(0,e.value.value,/["']|"|'/gu,'"'));let s=e.expression||e.callee;if(e.type==="Decorator"&&s.type==="CallExpression"&&s.callee.name==="Component"&&s.arguments.length===1){let l=e.expression.arguments[0].properties;for(let[d,h]of r.expression.arguments[0].properties.entries())switch(l[d].key.name){case"styles":ax(h.value)&&OY(h.value.elements[0]);break;case"template":h.value.type==="TemplateLiteral"&&OY(h.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&OY(r.quasi),e.type==="TemplateLiteral"&&OY(r),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(r.type="TSNonNullExpression",r.expression.type="ChainExpression")}YLt.ignoredProperties=pXr;var _Xr=YLt,dXr=Tp(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),fXr=(e,[r])=>r?.type==="ComponentParameter"&&r.shorthand&&r.name===e&&r.local!==r.name||r?.type==="MatchObjectPatternProperty"&&r.shorthand&&r.key===e&&r.value!==r.key||r?.type==="ObjectProperty"&&r.shorthand&&r.key===e&&r.value!==r.key||r?.type==="Property"&&r.shorthand&&r.key===e&&!$pe(r)&&r.value!==r.key,mXr=(e,[r])=>!!(e.type==="FunctionExpression"&&r.type==="MethodDefinition"&&r.value===e&&xT(e).length===0&&!e.returnType&&!Ag(e.typeParameters)&&e.body),sLt=(e,[r])=>r?.typeAnnotation===e&&uXr(r),hXr=(e,[r,...i])=>sLt(e,[r])||r?.typeName===e&&sLt(r,i);function gXr(e,r){return dXr(e)||fXr(e,r)||mXr(e,r)?!1:e.type==="EmptyStatement"?gXe({node:e,parent:r[0]}):!(hXr(e,r)||e.type==="TSTypeAnnotation"&&r[0].type==="TSPropertySignature")}var yXr=gXr;function vXr(e){let r=e.type||e.kind||"(unknown type)",i=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return i.length>20&&(i=i.slice(0,19)+"\u2026"),r+(i?" "+i:"")}function TXe(e,r){(e.comments??(e.comments=[])).push(r),r.printed=!1,r.nodeDescription=vXr(e)}function D1(e,r){r.leading=!0,r.trailing=!1,TXe(e,r)}function kD(e,r,i){r.leading=!1,r.trailing=!1,i&&(r.marker=i),TXe(e,r)}function Ty(e,r){r.leading=!1,r.trailing=!0,TXe(e,r)}function SXr(e,r){let i=null,s=r;for(;s!==i;)i=s,s=MY(e,s),s=dXe(e,s),s=fXe(e,s),s=jY(e,s);return s}var qY=SXr;function bXr(e,r){let i=qY(e,r);return i===!1?"":e.charAt(i)}var $6=bXr;function xXr(e,r,i){for(let s=r;sBpe(e)||!CD(r,B_(e),T_(e));function EXr(e){return[lMt,rMt,aMt,RXr,AXr,kXe,CXe,tMt,nMt,$Xr,MXr,jXr,AXe,cMt,UXr,iMt,sMt,DXe,wXr,HXr,uMt,wXe].some(r=>r(e))}function kXr(e){return[DXr,aMt,rMt,cMt,kXe,CXe,tMt,nMt,sMt,LXr,BXr,AXe,JXr,DXe,WXr,GXr,KXr,uMt,ZXr,QXr,wXe].some(r=>r(e))}function CXr(e){return[lMt,kXe,CXe,FXr,iMt,AXe,OXr,NXr,DXe,VXr,wXe].some(r=>r(e))}function dV(e,r){let i=(e.body||e.properties).find(({type:s})=>s!=="EmptyStatement");i?D1(i,r):kD(e,r)}function XZe(e,r){e.type==="BlockStatement"?dV(e,r):D1(e,r)}function DXr({comment:e,followingNode:r}){return r&&eMt(e)?(D1(r,e),!0):!1}function kXe({comment:e,precedingNode:r,enclosingNode:i,followingNode:s,text:l}){if(i?.type!=="IfStatement"||!s)return!1;if($6(l,T_(e))===")")return Ty(r,e),!0;if(s.type==="BlockStatement"&&s===i.consequent&&B_(e)>=T_(r)&&T_(e)<=B_(s))return D1(s,e),!0;if(r===i.consequent&&s===i.alternate){let d=qY(l,T_(i.consequent));if(s.type==="BlockStatement"&&B_(e)>=d&&T_(e)<=B_(s))return D1(s,e),!0;if(B_(e)"?(kD(r,e),!0):!1}function FXr({comment:e,enclosingNode:r,text:i}){return $6(i,T_(e))!==")"?!1:r&&(pMt(r)&&xT(r).length===0||UY(r)&&AD(r).length===0)?(kD(r,e),!0):(r?.type==="MethodDefinition"||r?.type==="TSAbstractMethodDefinition")&&xT(r.value).length===0?(kD(r.value,e),!0):!1}function RXr({comment:e,precedingNode:r,enclosingNode:i,followingNode:s,text:l}){return r?.type==="ComponentTypeParameter"&&(i?.type==="DeclareComponent"||i?.type==="ComponentTypeAnnotation")&&s?.type!=="ComponentTypeParameter"||(r?.type==="ComponentParameter"||r?.type==="RestElement")&&i?.type==="ComponentDeclaration"&&$6(l,T_(e))===")"?(Ty(r,e),!0):!1}function aMt({comment:e,precedingNode:r,enclosingNode:i,followingNode:s,text:l}){return r?.type==="FunctionTypeParam"&&i?.type==="FunctionTypeAnnotation"&&s?.type!=="FunctionTypeParam"||(r?.type==="Identifier"||r?.type==="AssignmentPattern"||r?.type==="ObjectPattern"||r?.type==="ArrayPattern"||r?.type==="RestElement"||r?.type==="TSParameterProperty")&&pMt(i)&&$6(l,T_(e))===")"?(Ty(r,e),!0):!z6(e)&&s?.type==="BlockStatement"&&oMt(i)&&(i.type==="MethodDefinition"?i.value.body:i.body)===s&&qY(l,T_(e))===B_(s)?(dV(s,e),!0):!1}function sMt({comment:e,enclosingNode:r}){return r?.type==="LabeledStatement"?(D1(r,e),!0):!1}function DXe({comment:e,enclosingNode:r}){return(r?.type==="ContinueStatement"||r?.type==="BreakStatement")&&!r.label?(Ty(r,e),!0):!1}function LXr({comment:e,precedingNode:r,enclosingNode:i}){return Sf(i)&&r&&i.callee===r&&i.arguments.length>0?(D1(i.arguments[0],e),!0):!1}function MXr({comment:e,precedingNode:r,enclosingNode:i,followingNode:s}){return f8(i)?($Y(e)&&(s.prettierIgnore=!0,e.unignore=!0),r?(Ty(r,e),!0):!1):(f8(s)&&$Y(e)&&(s.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function jXr({comment:e,precedingNode:r,enclosingNode:i,followingNode:s}){return i&&i.type==="MatchOrPattern"?($Y(e)&&(s.prettierIgnore=!0,e.unignore=!0),r?(Ty(r,e),!0):!1):(s&&s.type==="MatchOrPattern"&&$Y(e)&&(s.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function BXr({comment:e,enclosingNode:r}){return oB(r)?(D1(r,e),!0):!1}function AXe({comment:e,enclosingNode:r,ast:i,isLastComment:s}){return i?.body?.length===0?(s?kD(i,e):D1(i,e),!0):r?.type==="Program"&&r.body.length===0&&!Ag(r.directives)?(s?kD(r,e):D1(r,e),!0):!1}function $Xr({comment:e,enclosingNode:r,followingNode:i}){return(r?.type==="ForInStatement"||r?.type==="ForOfStatement")&&i!==r.body?(D1(r,e),!0):!1}function cMt({comment:e,precedingNode:r,enclosingNode:i,text:s}){if(i?.type==="ImportSpecifier"||i?.type==="ExportSpecifier")return D1(i,e),!0;let l=r?.type==="ImportSpecifier"&&i?.type==="ImportDeclaration",d=r?.type==="ExportSpecifier"&&i?.type==="ExportNamedDeclaration";return(l||d)&&gk(s,T_(e))?(Ty(r,e),!0):!1}function UXr({comment:e,enclosingNode:r}){return r?.type==="AssignmentPattern"?(D1(r,e),!0):!1}var zXr=Tp(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),qXr=Tp(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function JXr({comment:e,enclosingNode:r,followingNode:i}){return zXr(r)&&i&&(qXr(i)||z6(e))?(D1(i,e),!0):!1}function VXr({comment:e,enclosingNode:r,precedingNode:i,followingNode:s,text:l}){return!s&&(r?.type==="TSMethodSignature"||r?.type==="TSDeclareFunction"||r?.type==="TSAbstractMethodDefinition")&&(!i||i!==r.returnType)&&$6(l,T_(e))===";"?(Ty(r,e),!0):!1}function lMt({comment:e,enclosingNode:r,followingNode:i}){if($Y(e)&&r?.type==="TSMappedType"&&i===r.key)return r.prettierIgnore=!0,e.unignore=!0,!0}function uMt({comment:e,precedingNode:r,enclosingNode:i}){if(i?.type==="TSMappedType"&&!r)return kD(i,e),!0}function WXr({comment:e,enclosingNode:r,followingNode:i}){return!r||r.type!=="SwitchCase"||r.test||!i||i!==r.consequent[0]?!1:(i.type==="BlockStatement"&&Bpe(e)?dV(i,e):kD(r,e),!0)}function GXr({comment:e,precedingNode:r,enclosingNode:i,followingNode:s}){return f8(r)&&((i.type==="TSArrayType"||i.type==="ArrayTypeAnnotation")&&!s||Upe(i))?(Ty(Zf(0,r.types,-1),e),!0):!1}function HXr({comment:e,enclosingNode:r,precedingNode:i,followingNode:s}){if((r?.type==="ObjectPattern"||r?.type==="ArrayPattern")&&s?.type==="TSTypeAnnotation")return i?Ty(i,e):kD(r,e),!0}function KXr({comment:e,precedingNode:r,enclosingNode:i,followingNode:s,text:l}){return!s&&i?.type==="UnaryExpression"&&(r?.type==="LogicalExpression"||r?.type==="BinaryExpression")&&CD(l,B_(i.argument),B_(r.right))&&EXe(e,l)&&!CD(l,B_(r.right),B_(e))?(Ty(r.right,e),!0):!1}function QXr({enclosingNode:e,followingNode:r,comment:i}){if(e&&(e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&(f8(r)||Upe(r)))return D1(r,i),!0}function wXe({enclosingNode:e,precedingNode:r,followingNode:i,comment:s,text:l}){if(M6(e)&&r===e.expression&&!EXe(s,l))return i?D1(i,s):Ty(e,s),!0}function ZXr({comment:e,enclosingNode:r,followingNode:i,precedingNode:s}){return r&&i&&s&&r.type==="ArrowFunctionExpression"&&r.returnType===s&&(s.type==="TSTypeAnnotation"||s.type==="TypeAnnotation")?(D1(i,e),!0):!1}var pMt=Tp(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),XXr={endOfLine:kXr,ownLine:EXr,remaining:CXr},YXr=XXr;function eYr(e,{parser:r}){if(r==="flow"||r==="hermes"||r==="babel-flow")return e=YS(0,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}var tYr=eYr,rYr=Tp(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function nYr(e){let{key:r,parent:i}=e;if(r==="types"&&f8(i)||r==="argument"&&i.type==="JSXSpreadAttribute"||r==="expression"&&i.type==="JSXSpreadChild"||r==="superClass"&&(i.type==="ClassDeclaration"||i.type==="ClassExpression")||(r==="id"||r==="typeParameters")&&rYr(i)||r==="patterns"&&i.type==="MatchOrPattern")return!0;let{node:s}=e;return QCe(s)?!1:f8(s)?XLt(e):!!eb(s)}var iYr=nYr,fV="string",$5="array",JY="cursor",mV="indent",hV="align",gV="trim",rI="group",aB="fill",_8="if-break",yV="indent-if-break",vV="line-suffix",sB="line-suffix-boundary",vk="line",z5="label",q5="break-parent",_Mt=new Set([JY,mV,hV,gV,rI,aB,_8,yV,vV,sB,vk,z5,q5]);function oYr(e){if(typeof e=="string")return fV;if(Array.isArray(e))return $5;if(!e)return;let{type:r}=e;if(_Mt.has(r))return r}var cB=oYr,aYr=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function sYr(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}', -Expected it to be 'string' or 'object'.`;if(cB(e))throw new Error("doc is valid.");let i=Object.prototype.toString.call(e);if(i!=="[object Object]")return`Unexpected doc '${i}'.`;let s=aYr([..._Mt].map(l=>`'${l}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${s}.`}var cYr=class extends Error{name="InvalidDocError";constructor(e){super(sYr(e)),this.doc=e}},Rpe=cYr,cLt={};function lYr(e,r,i,s){let l=[e];for(;l.length>0;){let d=l.pop();if(d===cLt){i(l.pop());continue}i&&l.push(d,cLt);let h=cB(d);if(!h)throw new Rpe(d);if(r?.(d)!==!1)switch(h){case $5:case aB:{let S=h===$5?d:d.parts;for(let b=S.length,A=b-1;A>=0;--A)l.push(S[A]);break}case _8:l.push(d.flatContents,d.breakContents);break;case rI:if(s&&d.expandedStates)for(let S=d.expandedStates.length,b=S-1;b>=0;--b)l.push(d.expandedStates[b]);else l.push(d.contents);break;case hV:case mV:case yV:case z5:case vV:l.push(d.contents);break;case fV:case JY:case gV:case sB:case vk:case q5:break;default:throw new Rpe(d)}}}var IXe=lYr;function VY(e,r){if(typeof e=="string")return r(e);let i=new Map;return s(e);function s(d){if(i.has(d))return i.get(d);let h=l(d);return i.set(d,h),h}function l(d){switch(cB(d)){case $5:return r(d.map(s));case aB:return r({...d,parts:d.parts.map(s)});case _8:return r({...d,breakContents:s(d.breakContents),flatContents:s(d.flatContents)});case rI:{let{expandedStates:h,contents:S}=d;return h?(h=h.map(s),S=h[0]):S=s(S),r({...d,contents:S,expandedStates:h})}case hV:case mV:case yV:case z5:case vV:return r({...d,contents:s(d.contents)});case fV:case JY:case gV:case sB:case vk:case q5:return r(d);default:throw new Rpe(d)}}}function dMt(e,r,i){let s=i,l=!1;function d(h){if(l)return!1;let S=r(h);S!==void 0&&(l=!0,s=S)}return IXe(e,d),s}function uYr(e){if(e.type===rI&&e.break||e.type===vk&&e.hard||e.type===q5)return!0}function $2(e){return dMt(e,uYr,!1)}function lLt(e){if(e.length>0){let r=Zf(0,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function pYr(e){let r=new Set,i=[];function s(d){if(d.type===q5&&lLt(i),d.type===rI){if(i.push(d),r.has(d))return!1;r.add(d)}}function l(d){d.type===rI&&i.pop().break&&lLt(i)}IXe(e,s,l,!0)}function _Yr(e){return e.type===vk&&!e.hard?e.soft?"":" ":e.type===_8?e.flatContents:e}function JCe(e){return VY(e,_Yr)}function dYr(e){switch(cB(e)){case aB:if(e.parts.every(r=>r===""))return"";break;case rI:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===rI&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case hV:case mV:case yV:case vV:if(!e.contents)return"";break;case _8:if(!e.flatContents&&!e.breakContents)return"";break;case $5:{let r=[];for(let i of e){if(!i)continue;let[s,...l]=Array.isArray(i)?i:[i];typeof s=="string"&&typeof Zf(0,r,-1)=="string"?r[r.length-1]+=s:r.push(s),r.push(...l)}return r.length===0?"":r.length===1?r[0]:r}case fV:case JY:case gV:case sB:case vk:case z5:case q5:break;default:throw new Rpe(e)}return e}function PXe(e){return VY(e,r=>dYr(r))}function pV(e,r=yMt){return VY(e,i=>typeof i=="string"?ud(r,i.split(` -`)):i)}function fYr(e){if(e.type===vk)return!0}function mYr(e){return dMt(e,fYr,!1)}function YZe(e,r){return e.type===z5?{...e,contents:r(e.contents)}:r(e)}function hYr(e){let r=!0;return IXe(e,i=>{switch(cB(i)){case fV:if(i==="")break;case gV:case sB:case vk:case q5:return r=!1,!1}}),r}var m8=_V,fMt=_V,gYr=_V,yYr=_V;function da(e){return m8(e),{type:mV,contents:e}}function U6(e,r){return yYr(e),m8(r),{type:hV,contents:r,n:e}}function vYr(e){return U6(Number.NEGATIVE_INFINITY,e)}function mMt(e){return U6(-1,e)}function SYr(e,r,i){m8(e);let s=e;if(r>0){for(let l=0;l0&&b(h),ie()}function j(){S>0&&A(S),ie()}function ie(){h=0,S=0}}function PYr(e,r,i){if(!r)return e;if(r.type==="root")return{...e,root:e};if(r===Number.NEGATIVE_INFINITY)return e.root;let s;return typeof r=="number"?r<0?s=IYr:s={type:2,width:r}:s={type:3,string:r},SMt(e,s,i)}function NYr(e,r){return SMt(e,wYr,r)}function OYr(e){let r=0;for(let i=e.length-1;i>=0;i--){let s=e[i];if(s===" "||s===" ")r++;else break}return r}function bMt(e){let r=OYr(e);return{text:r===0?e:e.slice(0,e.length-r),count:r}}var hk=Symbol("MODE_BREAK"),p8=Symbol("MODE_FLAT"),eXe=Symbol("DOC_FILL_PRINTED_LENGTH");function MCe(e,r,i,s,l,d){if(i===Number.POSITIVE_INFINITY)return!0;let h=r.length,S=!1,b=[e],A="";for(;i>=0;){if(b.length===0){if(h===0)return!0;b.push(r[--h]);continue}let{mode:L,doc:V}=b.pop(),j=cB(V);switch(j){case fV:V&&(S&&(A+=" ",i-=1,S=!1),A+=V,i-=LY(V));break;case $5:case aB:{let ie=j===$5?V:V.parts,te=V[eXe]??0;for(let X=ie.length-1;X>=te;X--)b.push({mode:L,doc:ie[X]});break}case mV:case hV:case yV:case z5:b.push({mode:L,doc:V.contents});break;case gV:{let{text:ie,count:te}=bMt(A);A=ie,i+=te;break}case rI:{if(d&&V.break)return!1;let ie=V.break?hk:L,te=V.expandedStates&&ie===hk?Zf(0,V.expandedStates,-1):V.contents;b.push({mode:ie,doc:te});break}case _8:{let ie=(V.groupId?l[V.groupId]||p8:L)===hk?V.breakContents:V.flatContents;ie&&b.push({mode:L,doc:ie});break}case vk:if(L===hk||V.hard)return!0;V.soft||(S=!0);break;case vV:s=!0;break;case sB:if(s)return!1;break}}return!1}function xMt(e,r){let i=Object.create(null),s=r.printWidth,l=AYr(r.endOfLine),d=0,h=[{indent:vMt,mode:hk,doc:e}],S="",b=!1,A=[],L=[],V=[],j=[],ie=0;for(pYr(e);h.length>0;){let{indent:pt,mode:$e,doc:xt}=h.pop();switch(cB(xt)){case fV:{let tr=l!==` -`?YS(0,xt,` -`,l):xt;tr&&(S+=tr,h.length>0&&(d+=LY(tr)));break}case $5:for(let tr=xt.length-1;tr>=0;tr--)h.push({indent:pt,mode:$e,doc:xt[tr]});break;case JY:if(L.length>=2)throw new Error("There are too many 'cursor' in doc.");L.push(ie+S.length);break;case mV:h.push({indent:NYr(pt,r),mode:$e,doc:xt.contents});break;case hV:h.push({indent:PYr(pt,xt.n,r),mode:$e,doc:xt.contents});break;case gV:Je();break;case rI:switch($e){case p8:if(!b){h.push({indent:pt,mode:xt.break?hk:p8,doc:xt.contents});break}case hk:{b=!1;let tr={indent:pt,mode:p8,doc:xt.contents},ht=s-d,wt=A.length>0;if(!xt.break&&MCe(tr,h,ht,wt,i))h.push(tr);else if(xt.expandedStates){let Ut=Zf(0,xt.expandedStates,-1);if(xt.break){h.push({indent:pt,mode:hk,doc:Ut});break}else for(let hr=1;hr=xt.expandedStates.length){h.push({indent:pt,mode:hk,doc:Ut});break}else{let Hi=xt.expandedStates[hr],un={indent:pt,mode:p8,doc:Hi};if(MCe(un,h,ht,wt,i)){h.push(un);break}}}else h.push({indent:pt,mode:hk,doc:xt.contents});break}}xt.id&&(i[xt.id]=Zf(0,h,-1).mode);break;case aB:{let tr=s-d,ht=xt[eXe]??0,{parts:wt}=xt,Ut=wt.length-ht;if(Ut===0)break;let hr=wt[ht+0],Hi=wt[ht+1],un={indent:pt,mode:p8,doc:hr},xo={indent:pt,mode:hk,doc:hr},Lo=MCe(un,[],tr,A.length>0,i,!0);if(Ut===1){Lo?h.push(un):h.push(xo);break}let yr={indent:pt,mode:p8,doc:Hi},co={indent:pt,mode:hk,doc:Hi};if(Ut===2){Lo?h.push(yr,un):h.push(co,xo);break}let Cs=wt[ht+2],Cr={indent:pt,mode:$e,doc:{...xt,[eXe]:ht+2}},ol=MCe({indent:pt,mode:p8,doc:[hr,Hi,Cs]},[],tr,A.length>0,i,!0);h.push(Cr),ol?h.push(yr,un):Lo?h.push(co,un):h.push(co,xo);break}case _8:case yV:{let tr=xt.groupId?i[xt.groupId]:$e;if(tr===hk){let ht=xt.type===_8?xt.breakContents:xt.negate?xt.contents:da(xt.contents);ht&&h.push({indent:pt,mode:$e,doc:ht})}if(tr===p8){let ht=xt.type===_8?xt.flatContents:xt.negate?da(xt.contents):xt.contents;ht&&h.push({indent:pt,mode:$e,doc:ht})}break}case vV:A.push({indent:pt,mode:$e,doc:xt.contents});break;case sB:A.length>0&&h.push({indent:pt,mode:$e,doc:gMt});break;case vk:switch($e){case p8:if(xt.hard)b=!0;else{xt.soft||(S+=" ",d+=1);break}case hk:if(A.length>0){h.push({indent:pt,mode:$e,doc:xt},...A.reverse()),A.length=0;break}xt.literal?(S+=l,d=0,pt.root&&(pt.root.value&&(S+=pt.root.value),d=pt.root.length)):(Je(),S+=l+pt.value,d=pt.length);break}break;case z5:h.push({indent:pt,mode:$e,doc:xt.contents});break;case q5:break;default:throw new Rpe(xt)}h.length===0&&A.length>0&&(h.push(...A.reverse()),A.length=0)}let te=V.join("")+S,X=[...j,...L];if(X.length!==2)return{formatted:te};let Re=X[0];return{formatted:te,cursorNodeStart:Re,cursorNodeText:te.slice(Re,Zf(0,X,-1))};function Je(){let{text:pt,count:$e}=bMt(S);pt&&(V.push(pt),ie+=pt.length),S="",d-=$e,L.length>0&&(j.push(...L.map(xt=>Math.min(xt,ie))),L.length=0)}}function FYr(e,r,i=0){let s=0;for(let l=i;l{if(d.push(i()),A.tail)return;let{tabWidth:L}=r,V=A.value.raw,j=V.includes(` -`)?MYr(V,L):S;S=j;let ie=h[b],te=s[l][b],X=CD(r.originalText,T_(A),B_(s.quasis[b+1]));if(!X){let Je=xMt(ie,{...r,printWidth:Number.POSITIVE_INFINITY}).formatted;Je.includes(` -`)?X=!0:ie=Je}X&&(Os(te)||te.type==="Identifier"||Dg(te)||te.type==="ConditionalExpression"||te.type==="SequenceExpression"||M6(te)||B5(te))&&(ie=[da([Qo,ie]),Qo]);let Re=j===0&&V.endsWith(` -`)?U6(Number.NEGATIVE_INFINITY,ie):SYr(ie,j,L);d.push(Bi(["${",Re,h8,"}"]))},"quasis"),d.push("`"),d}function jYr(e,r,i){let s=i("quasi"),{node:l}=e,d="",h=uV(l.quasi,Fc.Leading)[0];return h&&(CD(r.originalText,T_(l.typeArguments??l.tag),B_(h))?d=Qo:d=" "),zpe(s.label&&{tagged:!0,...s.label},[i("tag"),i("typeArguments"),d,h8,s])}function BYr(e,r,i){let{node:s}=e,l=s.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(l.length>1||l.some(d=>d.length>0)){r.__inJestEach=!0;let d=e.map(i,"expressions");r.__inJestEach=!1;let h=d.map(V=>"${"+xMt(V,{...r,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),S=[{hasLineBreak:!1,cells:[]}];for(let V=1;VV.cells.length)),A=Array.from({length:b}).fill(0),L=[{cells:l},...S.filter(V=>V.cells.length>0)];for(let{cells:V}of L.filter(j=>!j.hasLineBreak))for(let[j,ie]of V.entries())A[j]=Math.max(A[j],LY(ie));return[h8,"`",da([Ia,ud(Ia,L.map(V=>ud(" | ",V.cells.map((j,ie)=>V.hasLineBreak?j:j+" ".repeat(A[ie]-LY(j))))))]),Ia,"`"]}}function $Yr(e,r){let{node:i}=e,s=r();return Os(i)&&(s=Bi([da([Qo,s]),Qo])),["${",s,h8,"}"]}function NXe(e,r){return e.map(()=>$Yr(e,r),"expressions")}function EMt(e,r){return VY(e,i=>typeof i=="string"?r?YS(0,i,/(\\*)`/gu,"$1$1\\`"):kMt(i):i)}function kMt(e){return YS(0,e,/([\\`]|\$\{)/gu,"\\$1")}function UYr({node:e,parent:r}){let i=/^[fx]?(?:describe|it|test)$/u;return r.type==="TaggedTemplateExpression"&&r.quasi===e&&r.tag.type==="MemberExpression"&&r.tag.property.type==="Identifier"&&r.tag.property.name==="each"&&(r.tag.object.type==="Identifier"&&i.test(r.tag.object.name)||r.tag.object.type==="MemberExpression"&&r.tag.object.property.type==="Identifier"&&(r.tag.object.property.name==="only"||r.tag.object.property.name==="skip")&&r.tag.object.object.type==="Identifier"&&i.test(r.tag.object.object.name))}var tXe=[(e,r)=>e.type==="ObjectExpression"&&r==="properties",(e,r)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&r==="arguments",(e,r)=>e.type==="Decorator"&&r==="expression"];function zYr(e){let r=s=>s.type==="TemplateLiteral",i=(s,l)=>oB(s)&&!s.computed&&s.key.type==="Identifier"&&s.key.name==="styles"&&l==="value";return e.match(r,(s,l)=>ax(s)&&l==="elements",i,...tXe)||e.match(r,i,...tXe)}function qYr(e){return e.match(r=>r.type==="TemplateLiteral",(r,i)=>oB(r)&&!r.computed&&r.key.type==="Identifier"&&r.key.name==="template"&&i==="value",...tXe)}function $Ze(e,r){return Os(e,Fc.Block|Fc.Leading,({value:i})=>i===` ${r} `)}function CMt({node:e,parent:r},i){return $Ze(e,i)||JYr(r)&&$Ze(r,i)||r.type==="ExpressionStatement"&&$Ze(r,i)}function JYr(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function VYr(e,r,i){let{node:s}=i,l="";for(let[b,A]of s.quasis.entries()){let{raw:L}=A.value;b>0&&(l+="@prettier-placeholder-"+(b-1)+"-id"),l+=L}let d=await e(l,{parser:"scss"}),h=NXe(i,r),S=WYr(d,h);if(!S)throw new Error("Couldn't insert all the expressions");return["`",da([Ia,S]),Qo,"`"]}function WYr(e,r){if(!Ag(r))return e;let i=0,s=VY(PXe(e),l=>typeof l!="string"||!l.includes("@prettier-placeholder")?l:l.split(/@prettier-placeholder-(\d+)-id/u).map((d,h)=>h%2===0?pV(d):(i++,r[d])));return r.length===i?s:null}function GYr(e){return e.match(void 0,(r,i)=>i==="quasi"&&r.type==="TaggedTemplateExpression"&&hXe(r.tag,["css","css.global","css.resolve"]))||e.match(void 0,(r,i)=>i==="expression"&&r.type==="JSXExpressionContainer",(r,i)=>i==="children"&&r.type==="JSXElement"&&r.openingElement.name.type==="JSXIdentifier"&&r.openingElement.name.name==="style"&&r.openingElement.attributes.some(s=>s.type==="JSXAttribute"&&s.name.type==="JSXIdentifier"&&s.name.name==="jsx"))}function jCe(e){return e.type==="Identifier"&&e.name==="styled"}function pLt(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function HYr({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let r=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(r.type){case"MemberExpression":return jCe(r.object)||pLt(r);case"CallExpression":return jCe(r.callee)||r.callee.type==="MemberExpression"&&(r.callee.object.type==="MemberExpression"&&(jCe(r.callee.object.object)||pLt(r.callee.object))||r.callee.object.type==="CallExpression"&&jCe(r.callee.object.callee));case"Identifier":return r.name==="css";default:return!1}}function KYr({parent:e,grandparent:r}){return r?.type==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&r.name.type==="JSXIdentifier"&&r.name.name==="css"}var QYr=e=>GYr(e)||HYr(e)||KYr(e)||zYr(e);async function ZYr(e,r,i){let{node:s}=i,l=s.quasis.length,d=NXe(i,r),h=[];for(let S=0;S2&&j[0].trim()===""&&j[1].trim()==="",Re=ie>2&&j[ie-1].trim()===""&&j[ie-2].trim()==="",Je=j.every($e=>/^\s*(?:#[^\n\r]*)?$/u.test($e));if(!L&&/#[^\n\r]*$/u.test(j[ie-1]))return null;let pt=null;Je?pt=XYr(j):pt=await e(V,{parser:"graphql"}),pt?(pt=EMt(pt,!1),!A&&X&&h.push(""),h.push(pt),!L&&Re&&h.push("")):!A&&!L&&X&&h.push(""),te&&h.push(te)}return["`",da([Ia,ud(Ia,h)]),Ia,"`"]}function XYr(e){let r=[],i=!1,s=e.map(l=>l.trim());for(let[l,d]of s.entries())d!==""&&(s[l-1]===""&&i?r.push([Ia,d]):r.push(d),i=!0);return r.length===0?null:ud(Ia,r)}function YYr({node:e,parent:r}){return CMt({node:e,parent:r},"GraphQL")||r&&(r.type==="TaggedTemplateExpression"&&(r.tag.type==="MemberExpression"&&r.tag.object.name==="graphql"&&r.tag.property.name==="experimental"||r.tag.type==="Identifier"&&(r.tag.name==="gql"||r.tag.name==="graphql"))||r.type==="CallExpression"&&r.callee.type==="Identifier"&&r.callee.name==="graphql")}var UZe=0;async function DMt(e,r,i,s,l){let{node:d}=s,h=UZe;UZe=UZe+1>>>0;let S=Je=>`PRETTIER_HTML_PLACEHOLDER_${Je}_${h}_IN_JS`,b=d.quasis.map((Je,pt,$e)=>pt===$e.length-1?Je.value.cooked:Je.value.cooked+S(pt)).join(""),A=NXe(s,i),L=new RegExp(S("(\\d+)"),"gu"),V=0,j=await r(b,{parser:e,__onHtmlRoot(Je){V=Je.children.length}}),ie=VY(j,Je=>{if(typeof Je!="string")return Je;let pt=[],$e=Je.split(L);for(let xt=0;xt<$e.length;xt++){let tr=$e[xt];if(xt%2===0){tr&&(tr=kMt(tr),l.__embeddedInHtml&&(tr=YS(0,tr,/<\/(?=script\b)/giu,"<\\/")),pt.push(tr));continue}let ht=Number(tr);pt.push(A[ht])}return pt}),te=/^\s/u.test(b)?" ":"",X=/\s$/u.test(b)?" ":"",Re=l.htmlWhitespaceSensitivity==="ignore"?Ia:te&&X?Bs:null;return Re?Bi(["`",da([Re,Bi(ie)]),Re,"`"]):zpe({hug:!1},Bi(["`",te,V>1?da(Bi(ie)):Bi(ie),X,"`"]))}function een(e){return CMt(e,"HTML")||e.match(r=>r.type==="TemplateLiteral",(r,i)=>r.type==="TaggedTemplateExpression"&&r.tag.type==="Identifier"&&r.tag.name==="html"&&i==="quasi")}var ten=DMt.bind(void 0,"html"),ren=DMt.bind(void 0,"angular");async function nen(e,r,i){let{node:s}=i,l=YS(0,s.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(b,A)=>"\\".repeat(A.length/2)+"`"),d=ien(l),h=d!=="";h&&(l=YS(0,l,new RegExp(`^${d}`,"gmu"),""));let S=EMt(await e(l,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",h?da([Qo,S]):[yMt,vYr(S)],Qo,"`"]}function ien(e){let r=e.match(/^([^\S\n]*)\S/mu);return r===null?"":r[1]}function oen({node:e,parent:r}){return r?.type==="TaggedTemplateExpression"&&e.quasis.length===1&&r.tag.type==="Identifier"&&(r.tag.name==="md"||r.tag.name==="markdown")}var aen=[{test:QYr,print:VYr},{test:YYr,print:ZYr},{test:een,print:ten},{test:qYr,print:ren},{test:oen,print:nen}].map(({test:e,print:r})=>({test:e,print:cen(r)}));function sen(e){let{node:r}=e;if(r.type!=="TemplateLiteral"||len(r))return;let i=aen.find(({test:s})=>s(e));if(i)return r.quasis.length===1&&r.quasis[0].value.raw.trim()===""?"``":i.print}function cen(e){return async(...r)=>{let i=await e(...r);return i&&zpe({embed:!0,...i.label},i)}}function len({quasis:e}){return e.some(({value:{cooked:r}})=>r===null)}var uen=sen,pen=/\*\/$/,_en=/^\/\*\*?/,AMt=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,den=/(^|\s+)\/\/([^\n\r]*)/g,_Lt=/^(\r?\n)+/,fen=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,dLt=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,men=/(\r?\n|^) *\* ?/g,wMt=[];function hen(e){let r=e.match(AMt);return r?r[0].trimStart():""}function gen(e){let r=e.match(AMt)?.[0];return r==null?e:e.slice(r.length)}function yen(e){e=YS(0,e.replace(_en,"").replace(pen,""),men,"$1");let r="";for(;r!==e;)r=e,e=YS(0,e,fen,` +`);e=e.replace(rpe,"").trimEnd();let r=Object.create(null),n=b3(0,e,npe,"").replace(rpe,"").trimEnd(),o;for(;o=npe.exec(e);){let i=b3(0,o[2],UJe,"");if(typeof r[o[1]]=="string"||Array.isArray(r[o[1]])){let a=r[o[1]];r[o[1]]=[...JJe,...Array.isArray(a)?a:[a],i]}else r[o[1]]=i}return{comments:n,pragmas:r}}var HJe=["noformat","noprettier"],ZJe=["format","prettier"];function Lpe(e){let t=Ope(e);t&&(e=e.slice(t.length+1));let r=KJe(e),{pragmas:n,comments:o}=GJe(r);return{shebang:t,text:e,pragmas:n,comments:o}}function WJe(e){let{pragmas:t}=Lpe(e);return ZJe.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function QJe(e){let{pragmas:t}=Lpe(e);return HJe.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function XJe(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:WJe,hasIgnorePragma:QJe,locStart:j_,locEnd:ed,...e}}var cD=XJe,vU="module",$pe="commonjs";function YJe(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return vU;if(/\.(?:cjs|cts)$/iu.test(e))return $pe}}function eKe(e,t){let{type:r="JsExpressionRoot",rootMarker:n,text:o}=t,{tokens:i,comments:a}=e;return delete e.tokens,delete e.comments,{tokens:i,comments:a,type:r,node:e,range:[0,o.length],rootMarker:n}}var Mpe=eKe,Bv=e=>cD(iKe(e)),tKe={sourceType:vU,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],["discardBinding",{syntaxType:"void"}]],tokens:!1,ranges:!1},ope="v8intrinsic",ipe=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],B_=(e,t=tKe)=>({...t,plugins:[...t.plugins,...e]}),rKe=/@(?:no)?flow\b/u;function nKe(e,t){if(t?.endsWith(".js.flow"))return!0;let r=Ope(e);r&&(e=e.slice(r.length));let n=oJe(e,0);return n!==!1&&(e=e.slice(0,n)),rKe.test(e)}function oKe(e,t,r){let n=e(t,r),o=n.errors.find(i=>!aKe.has(i.reasonCode));if(o)throw o;return n}function iKe({isExpression:e=!1,optionsCombinations:t}){return(r,n={})=>{let{filepath:o}=n;if(typeof o!="string"&&(o=void 0),(n.parser==="babel"||n.parser==="__babel_estree")&&nKe(r,o))return n.parser="babel-flow",Bpe.parse(r,n);let i=t,a=n.__babelSourceType??YJe(o);a&&a!==vU&&(i=i.map(d=>({...d,sourceType:a,...a===$pe?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let s=/%[A-Z]/u.test(r);r.includes("|>")?i=(s?[...ipe,ope]:ipe).flatMap(d=>i.map(f=>B_([d],f))):s&&(i=i.map(d=>B_([ope],d)));let c=e?Ppe:Cpe,p;try{p=iJe(i.map(d=>()=>oKe(c,r,d)))}catch({errors:[d]}){throw Rpe(d)}return e&&(p=Mpe(p,{text:r,rootMarker:n.rootMarker})),FJe(p,{text:r})}}var aKe=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert","DeclarationMissingInitializer"]),jpe=[B_(["jsx"])],ape=Bv({optionsCombinations:jpe}),spe=Bv({optionsCombinations:[B_(["jsx","typescript"]),B_(["typescript"])]}),cpe=Bv({isExpression:!0,optionsCombinations:[B_(["jsx"])]}),lpe=Bv({isExpression:!0,optionsCombinations:[B_(["typescript"])]}),Bpe=Bv({optionsCombinations:[B_(["jsx",["flow",{all:!0}],"flowComments"])]}),sKe=Bv({optionsCombinations:jpe.map(e=>B_(["estree"],e))}),qpe={};nU(qpe,{json:()=>uKe,"json-stringify":()=>_Ke,json5:()=>pKe,jsonc:()=>dKe});function cKe(e){return Array.isArray(e)&&e.length>0}var Upe=cKe,zpe={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function lKe(e){let t=Cpe(e,zpe),{program:r}=t;if(r.body.length===0&&r.directives.length===0&&!r.interpreter)return t}function C3(e,t={}){let{allowComments:r=!0,allowEmpty:n=!1}=t,o;try{o=Ppe(e,zpe)}catch(i){if(n&&i.code==="BABEL_PARSER_SYNTAX_ERROR"&&i.reasonCode==="ParseExpressionEmptyInput")try{o=lKe(e)}catch{}if(!o)throw Rpe(i)}if(!r&&Upe(o.comments))throw Bm(o.comments[0],"Comment");return o=Mpe(o,{type:"JsonRoot",text:e}),o.node.type==="File"?delete o.node:Lv(o.node),o}function Bm(e,t){let[r,n]=[e.loc.start,e.loc.end].map(({line:o,column:i})=>({line:o,column:i+1}));return Fpe(`${t} is not allowed in JSON.`,{loc:{start:r,end:n}})}function Lv(e){switch(e.type){case"ArrayExpression":for(let t of e.elements)t!==null&&Lv(t);return;case"ObjectExpression":for(let t of e.properties)Lv(t);return;case"ObjectProperty":if(e.computed)throw Bm(e.key,"Computed key");if(e.shorthand)throw Bm(e.key,"Shorthand property");e.key.type!=="Identifier"&&Lv(e.key),Lv(e.value);return;case"UnaryExpression":{let{operator:t,argument:r}=e;if(t!=="+"&&t!=="-")throw Bm(e,`Operator '${e.operator}'`);if(r.type==="NumericLiteral"||r.type==="Identifier"&&(r.name==="Infinity"||r.name==="NaN"))return;throw Bm(r,`Operator '${t}' before '${r.type}'`)}case"Identifier":if(e.name!=="Infinity"&&e.name!=="NaN"&&e.name!=="undefined")throw Bm(e,`Identifier '${e.name}'`);return;case"TemplateLiteral":if(Upe(e.expressions))throw Bm(e.expressions[0],"'TemplateLiteral' with expression");for(let t of e.quasis)Lv(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw Bm(e,`'${e.type}'`)}}var uKe=cD({parse:e=>C3(e),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),pKe=cD(e=>C3(e)),dKe=cD(e=>C3(e,{allowEmpty:!0})),_Ke=cD({parse:e=>C3(e,{allowComments:!1}),astFormat:"estree-json"}),fKe={...upe,...qpe};var mKe=Object.defineProperty,ZU=(e,t)=>{for(var r in t)mKe(e,r,{get:t[r],enumerable:!0})},WU={};ZU(WU,{languages:()=>gYe,options:()=>hYe,printers:()=>yYe});var hKe=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],vde={};ZU(vde,{canAttachComment:()=>LGe,embed:()=>IZe,features:()=>cYe,getVisitorKeys:()=>wde,handleComments:()=>yHe,hasPrettierIgnore:()=>xz,insertPragma:()=>UZe,isBlockComment:()=>Mu,isGap:()=>SHe,massageAstNode:()=>CGe,print:()=>gde,printComment:()=>KZe,printPrettierIgnored:()=>gde,willPrintOwnComments:()=>xHe});var QU=(e,t)=>(r,n,...o)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,o),yKe=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},gKe=QU("replaceAll",function(){if(typeof this=="string")return yKe}),da=gKe;function SKe(e){return this[e<0?this.length+e:e]}var vKe=QU("at",function(){if(Array.isArray(this)||typeof this=="string")return SKe}),Jn=vKe;function bKe(e){return e!==null&&typeof e=="object"}var bde=bKe;function*xKe(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,o=i=>bde(i)&&n(i);for(let i of r(e)){let a=e[i];if(Array.isArray(a))for(let s of a)o(s)&&(yield s);else o(a)&&(yield a)}}function*EKe(e,t){let r=[e];for(let n=0;n/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function AKe(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function wKe(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var IKe="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07",kKe=/[^\x20-\x7F]/u,CKe=new Set(IKe);function PKe(e){if(!e)return 0;if(!kKe.test(e))return e.length;e=e.replace(DKe(),r=>CKe.has(r)?" ":" ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=AKe(n)||wKe(n)?2:1)}return t}var Vv=PKe;function z3(e){return(t,r,n)=>{let o=!!n?.backwards;if(r===!1)return!1;let{length:i}=t,a=r;for(;a>=0&&ae===` +`||e==="\r"||e==="\u2028"||e==="\u2029";function FKe(e,t,r){let n=!!r?.backwards;if(t===!1)return!1;let o=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&o===` +`)return t-2;if(Vpe(o))return t-1}else{if(o==="\r"&&e.charAt(t+1)===` +`)return t+2;if(Vpe(o))return t+1}return t}var Kv=FKe;function RKe(e,t,r={}){let n=Jv(e,r.backwards?t-1:t,r),o=Kv(e,n,r);return n!==o}var nc=RKe;function LKe(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r0}var jo=jKe,BKe=()=>{},Sg=BKe,xde=Object.freeze({character:"'",codePoint:39}),Ede=Object.freeze({character:'"',codePoint:34}),qKe=Object.freeze({preferred:xde,alternate:Ede}),UKe=Object.freeze({preferred:Ede,alternate:xde});function zKe(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?qKe:UKe,{length:o}=e,i=0,a=0;for(let s=0;sa?n:r).character}var Tde=zKe,VKe=/\\(["'\\])|(["'])/gu;function JKe(e,t){let r=t==='"'?"'":'"',n=da(0,e,VKe,(o,i,a)=>i?i===r?r:o:a===t?"\\"+a:a);return t+n+t}var KKe=JKe;function GKe(e,t){Sg(/^(?["']).*\k$/su.test(e));let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":Tde(r,t.singleQuote);return e.charAt(0)===n?e:KKe(r,n)}var Gv=GKe,Dde=e=>Number.isInteger(e)&&e>=0;function Xr(e){let t=e.range?.[0]??e.start,r=(e.declaration?.decorators??e.decorators)?.[0];return r?Math.min(Xr(r),t):t}function Jr(e){return e.range?.[1]??e.end}function V3(e,t){let r=Xr(e);return Dde(r)&&r===Xr(t)}function HKe(e,t){let r=Jr(e);return Dde(r)&&r===Jr(t)}function ZKe(e,t){return V3(e,t)&&HKe(e,t)}var lD=null;function dD(e){if(lD!==null&&typeof lD.property){let t=lD;return lD=dD.prototype=null,t}return lD=dD.prototype=e??Object.create(null),new dD}var WKe=10;for(let e=0;e<=WKe;e++)dD();function QKe(e){return dD(e)}function XKe(e,t="type"){QKe(e);function r(n){let o=n[t],i=e[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:n});return i}return r}var Ade=XKe,V=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],YKe={AccessorProperty:V[0],AnyTypeAnnotation:V[1],ArgumentPlaceholder:V[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:V[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:V[3],AsExpression:V[4],AssignmentExpression:V[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:V[6],BigIntLiteral:V[1],BigIntLiteralTypeAnnotation:V[1],BigIntTypeAnnotation:V[1],BinaryExpression:V[5],BindExpression:["object","callee"],BlockStatement:V[7],BooleanLiteral:V[1],BooleanLiteralTypeAnnotation:V[1],BooleanTypeAnnotation:V[1],BreakStatement:V[8],CallExpression:V[9],CatchClause:["param","body"],ChainExpression:V[3],ClassAccessorProperty:V[0],ClassBody:V[10],ClassDeclaration:V[11],ClassExpression:V[11],ClassImplements:V[12],ClassMethod:V[13],ClassPrivateMethod:V[13],ClassPrivateProperty:V[14],ClassProperty:V[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:V[15],ConditionalExpression:V[16],ConditionalTypeAnnotation:V[17],ContinueStatement:V[8],DebuggerStatement:V[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:V[18],DeclareEnum:V[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:V[20],DeclareFunction:["id","predicate"],DeclareHook:V[21],DeclareInterface:V[22],DeclareModule:V[19],DeclareModuleExports:V[23],DeclareNamespace:V[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:V[24],DeclareVariable:V[21],Decorator:V[3],Directive:V[18],DirectiveLiteral:V[1],DoExpression:V[10],DoWhileStatement:V[25],EmptyStatement:V[1],EmptyTypeAnnotation:V[1],EnumBigIntBody:V[26],EnumBigIntMember:V[27],EnumBooleanBody:V[26],EnumBooleanMember:V[27],EnumDeclaration:V[19],EnumDefaultedMember:V[21],EnumNumberBody:V[26],EnumNumberMember:V[27],EnumStringBody:V[26],EnumStringMember:V[27],EnumSymbolBody:V[26],ExistsTypeAnnotation:V[1],ExperimentalRestProperty:V[6],ExperimentalSpreadProperty:V[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:V[28],ExportNamedDeclaration:V[20],ExportNamespaceSpecifier:V[28],ExportSpecifier:["local","exported"],ExpressionStatement:V[3],File:["program"],ForInStatement:V[29],ForOfStatement:V[29],ForStatement:["init","test","update","body"],FunctionDeclaration:V[30],FunctionExpression:V[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:V[15],GenericTypeAnnotation:V[12],HookDeclaration:V[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:V[16],ImportAttribute:V[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:V[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:V[33],ImportSpecifier:["imported","local"],IndexedAccessType:V[34],InferredPredicate:V[1],InferTypeAnnotation:V[35],InterfaceDeclaration:V[22],InterfaceExtends:V[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:V[1],IntersectionTypeAnnotation:V[36],JsExpressionRoot:V[37],JsonRoot:V[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:V[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:V[1],JSXExpressionContainer:V[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:V[1],JSXMemberExpression:V[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:V[1],JSXSpreadAttribute:V[6],JSXSpreadChild:V[3],JSXText:V[1],KeyofTypeAnnotation:V[6],LabeledStatement:["label","body"],Literal:V[1],LogicalExpression:V[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:V[21],MatchExpression:V[39],MatchExpressionCase:V[40],MatchIdentifierPattern:V[21],MatchLiteralPattern:V[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:V[6],MatchStatement:V[39],MatchStatementCase:V[40],MatchUnaryPattern:V[6],MatchWildcardPattern:V[1],MemberExpression:V[38],MetaProperty:["meta","property"],MethodDefinition:V[42],MixedTypeAnnotation:V[1],ModuleExpression:V[10],NeverTypeAnnotation:V[1],NewExpression:V[9],NGChainedExpression:V[43],NGEmptyExpression:V[1],NGMicrosyntax:V[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:V[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:V[32],NGPipeExpression:["left","right","arguments"],NGRoot:V[37],NullableTypeAnnotation:V[23],NullLiteral:V[1],NullLiteralTypeAnnotation:V[1],NumberLiteralTypeAnnotation:V[1],NumberTypeAnnotation:V[1],NumericLiteral:V[1],ObjectExpression:["properties"],ObjectMethod:V[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:V[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:V[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:V[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:V[9],OptionalIndexedAccessType:V[34],OptionalMemberExpression:V[38],ParenthesizedExpression:V[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:V[1],PipelineTopicExpression:V[3],Placeholder:V[1],PrivateIdentifier:V[1],PrivateName:V[21],Program:V[7],Property:V[32],PropertyDefinition:V[14],QualifiedTypeIdentifier:V[44],QualifiedTypeofIdentifier:V[44],RegExpLiteral:V[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:V[6],SatisfiesExpression:V[4],SequenceExpression:V[43],SpreadElement:V[6],StaticBlock:V[10],StringLiteral:V[1],StringLiteralTypeAnnotation:V[1],StringTypeAnnotation:V[1],Super:V[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:V[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:V[1],TemplateLiteral:["quasis","expressions"],ThisExpression:V[1],ThisTypeAnnotation:V[1],ThrowStatement:V[6],TopicReference:V[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:V[45],TSAbstractKeyword:V[1],TSAbstractMethodDefinition:V[32],TSAbstractPropertyDefinition:V[45],TSAnyKeyword:V[1],TSArrayType:V[2],TSAsExpression:V[4],TSAsyncKeyword:V[1],TSBigIntKeyword:V[1],TSBooleanKeyword:V[1],TSCallSignatureDeclaration:V[46],TSClassImplements:V[47],TSConditionalType:V[17],TSConstructorType:V[46],TSConstructSignatureDeclaration:V[46],TSDeclareFunction:V[31],TSDeclareKeyword:V[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:V[26],TSEnumDeclaration:V[19],TSEnumMember:["id","initializer"],TSExportAssignment:V[3],TSExportKeyword:V[1],TSExternalModuleReference:V[3],TSFunctionType:V[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:V[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:V[35],TSInstantiationExpression:V[47],TSInterfaceBody:V[10],TSInterfaceDeclaration:V[22],TSInterfaceHeritage:V[47],TSIntersectionType:V[36],TSIntrinsicKeyword:V[1],TSJSDocAllType:V[1],TSJSDocNonNullableType:V[23],TSJSDocNullableType:V[23],TSJSDocUnknownType:V[1],TSLiteralType:V[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:V[10],TSModuleDeclaration:V[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:V[21],TSNeverKeyword:V[1],TSNonNullExpression:V[3],TSNullKeyword:V[1],TSNumberKeyword:V[1],TSObjectKeyword:V[1],TSOptionalType:V[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:V[23],TSPrivateKeyword:V[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:V[1],TSPublicKeyword:V[1],TSQualifiedName:V[5],TSReadonlyKeyword:V[1],TSRestType:V[23],TSSatisfiesExpression:V[4],TSStaticKeyword:V[1],TSStringKeyword:V[1],TSSymbolKeyword:V[1],TSTemplateLiteralType:["quasis","types"],TSThisType:V[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:V[23],TSTypeAssertion:V[4],TSTypeLiteral:V[26],TSTypeOperator:V[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:V[48],TSTypeParameterInstantiation:V[48],TSTypePredicate:V[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:V[1],TSUnionType:V[36],TSUnknownKeyword:V[1],TSVoidKeyword:V[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:V[24],TypeAnnotation:V[23],TypeCastExpression:V[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:V[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:V[48],TypeParameterInstantiation:V[48],TypePredicate:V[49],UnaryExpression:V[6],UndefinedTypeAnnotation:V[1],UnionTypeAnnotation:V[36],UnknownTypeAnnotation:V[1],UpdateExpression:V[6],V8IntrinsicIdentifier:V[1],VariableDeclaration:["declarations"],VariableDeclarator:V[27],Variance:V[1],VoidPattern:V[1],VoidTypeAnnotation:V[1],WhileStatement:V[25],WithStatement:["object","body"],YieldExpression:V[6]},eGe=Ade(YKe),wde=eGe;function tGe(e){let t=new Set(e);return r=>t.has(r?.type)}var wr=tGe;function rGe(e){return e.extra?.raw??e.raw}var oc=rGe,nGe=wr(["Block","CommentBlock","MultiLine"]),Mu=nGe,oGe=wr(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Ide=oGe,iGe=wr(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),bD=iGe;function aGe(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let o=r[n];if(n===0)return e.type==="Identifier"&&e.name===o;if(n===1&&e.type==="MetaProperty"&&e.property.type==="Identifier"&&e.property.name===o){e=e.meta;continue}if(e.type==="MemberExpression"&&!e.optional&&!e.computed&&e.property.type==="Identifier"&&e.property.name===o){e=e.object;continue}return!1}}function sGe(e,t){return t.some(r=>aGe(e,r))}var tz=sGe;function cGe({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var kde=cGe;function lGe({node:e,parent:t}){return e?.type!=="EmptyStatement"?!1:t.type==="IfStatement"?t.consequent===e||t.alternate===e:t.type==="DoWhileStatement"||t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"||t.type==="LabeledStatement"||t.type==="WithStatement"||t.type==="WhileStatement"?t.body===e:!1}var rz=lGe;function FU(e,t){return t(e)||TKe(e,{getVisitorKeys:wde,predicate:t})}function nz(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||jn(e)||Mo(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||Nu(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function uGe(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function Cde(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var pGe=wr(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),Fa=wr(["ArrayExpression"]),Ru=wr(["ObjectExpression"]);function dGe(e){return e.type==="LogicalExpression"&&e.operator==="??"}function nd(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function _Ge(e){return e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean"}function Pde(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&nd(e.argument)}function fa(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function Ode(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var oz=wr(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),fGe=wr(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),Jm=wr(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),hD=wr(["FunctionExpression","ArrowFunctionExpression"]);function mGe(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function bU(e){return jn(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var _a=wr(["JSXElement","JSXFragment"]);function xD(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function Nde(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function hGe(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!V3(e,e.typeAnnotation)}var U_=wr(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function zv(e){return Mo(e)||e.type==="BindExpression"&&!!e.object}var yGe=wr(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function iz(e){return kde(e)||Ide(e)||yGe(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function gGe(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var SGe=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function vGe(e){return tz(e,SGe)}function J3(e,t){if(e?.type!=="CallExpression"||e.optional)return!1;let r=qc(e);if(r.length===1){if(bU(e)&&J3(t))return hD(r[0]);if(gGe(e.callee))return bU(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||fa(r[0]))&&vGe(e.callee))return r[2]&&!nd(r[2])?!1:(r.length===2?hD(r[1]):mGe(r[1])&&ss(r[1]).length<=1)||bU(r[1]);return!1}var Fde=e=>t=>(t?.type==="ChainExpression"&&(t=t.expression),e(t)),jn=Fde(wr(["CallExpression","OptionalCallExpression"])),Mo=Fde(wr(["MemberExpression","OptionalMemberExpression"]));function Jpe(e,t=5){return Rde(e,t)<=t}function Rde(e,t){let r=0;for(let n in e){let o=e[n];if(bde(o)&&typeof o.type=="string"&&(r++,r+=Rde(o,t-r)),r>t)return r}return r}var bGe=.25;function az(e,t){let{printWidth:r}=t;if(rt(e))return!1;let n=r*bGe;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=n||Pde(e)&&!rt(e.argument))return!0;let o=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return o?o.length<=n:fa(e)?Gv(oc(e),t).length<=n:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes(` +`):e.type==="UnaryExpression"?az(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=n-2:oz(e)}function Fu(e,t){return _a(t)?K3(t):rt(t,St.Leading,r=>nc(e,Jr(r)))}function Kpe(e){return e.quasis.some(t=>t.value.raw.includes(` +`))}function Lde(e,t){return(e.type==="TemplateLiteral"&&Kpe(e)||e.type==="TaggedTemplateExpression"&&Kpe(e.quasi))&&!nc(t,Xr(e),{backwards:!0})}function $de(e){if(!rt(e))return!1;let t=Jn(0,yg(e,St.Dangling),-1);return t&&!Mu(t)}function xGe(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(hD(r)){if(t+=1,t>1)return!0}else if(jn(r)){for(let n of qc(r))if(hD(n))return!0}return!1}function Mde(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&jn(t)&&jn(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var EGe=new Set(["!","-","+","~"]);function Ou(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return Ou(e.expression,t);let r=n=>Ou(n,t-1);if(Ode(e))return Vv(e.pattern??e.regex.pattern)<=5;if(oz(e)||fGe(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(` +`))&&e.expressions.every(r);if(Ru(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(Fa(e))return e.elements.every(n=>n===null||r(n));if(Zv(e)){if(e.type==="ImportExpression"||Ou(e.callee,t)){let n=qc(e);return n.length<=t&&n.every(r)}return!1}return Mo(e)?Ou(e.object,t)&&Ou(e.property,t):e.type==="UnaryExpression"&&EGe.has(e.operator)||e.type==="UpdateExpression"?Ou(e.argument,t):!1}function sd(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function Ps(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return Ps(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return Ps(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:Ps(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:Ps(e.callee,t);case"ConditionalExpression":return Ps(e.test,t);case"UpdateExpression":return!e.prefix&&Ps(e.argument,t);case"BindExpression":return e.object&&Ps(e.object,t);case"SequenceExpression":return Ps(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Ps(e.expression,t);default:return t(e)}}var Gpe={"==":!0,"!=":!0,"===":!0,"!==":!0},P3={"*":!0,"/":!0,"%":!0},RU={">>":!0,">>>":!0,"<<":!0};function sz(e,t){return!(M3(t)!==M3(e)||e==="**"||Gpe[e]&&Gpe[t]||t==="%"&&P3[e]||e==="%"&&P3[t]||t!==e&&P3[t]&&P3[e]||RU[e]&&RU[t])}var TGe=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function M3(e){return TGe.get(e)}function DGe(e){return!!RU[e]||e==="|"||e==="^"||e==="&"}function AGe(e){if(e.rest)return!0;let t=ss(e);return Jn(0,t,-1)?.type==="RestElement"}var xU=new WeakMap;function ss(e){if(xU.has(e))return xU.get(e);let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),xU.set(e,t),t}function wGe(e,t){let{node:r}=e,n=0,o=()=>t(e,n++);r.this&&e.call(o,"this"),e.each(o,"params"),r.rest&&e.call(o,"rest")}var EU=new WeakMap;function qc(e){if(EU.has(e))return EU.get(e);if(e.type==="ChainExpression")return qc(e.expression);let t;return e.type==="ImportExpression"||e.type==="TSImportType"?(t=[e.source],e.options&&t.push(e.options)):e.type==="TSExternalModuleReference"?t=[e.expression]:t=e.arguments,EU.set(e,t),t}function j3(e,t){let{node:r}=e;if(r.type==="ChainExpression")return e.call(()=>j3(e,t),"expression");r.type==="ImportExpression"||r.type==="TSImportType"?(e.call(()=>t(e,0),"source"),r.options&&e.call(()=>t(e,1),"options")):r.type==="TSExternalModuleReference"?e.call(()=>t(e,0),"expression"):e.each(t,"arguments")}function Hpe(e,t){let r=[];if(e.type==="ChainExpression"&&(e=e.expression,r.push("expression")),e.type==="ImportExpression"||e.type==="TSImportType"){if(t===0||t===(e.options?-2:-1))return[...r,"source"];if(e.options&&(t===1||t===-1))return[...r,"options"];throw new RangeError("Invalid argument index")}else if(e.type==="TSExternalModuleReference"){if(t===0||t===-1)return[...r,"expression"]}else if(t<0&&(t=e.arguments.length+t),t>=0&&t{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,o)=>!(e&St.Leading&&!r.leading||e&St.Trailing&&!r.trailing||e&St.Dangling&&(r.leading||r.trailing)||e&St.Block&&!Mu(r)||e&St.Line&&!bD(r)||e&St.First&&n!==0||e&St.Last&&n!==o.length-1||e&St.PrettierIgnore&&!Hv(r)||t&&!t(r))};function rt(e,t,r){if(!jo(e?.comments))return!1;let n=jde(t,r);return n?e.comments.some(n):!0}function yg(e,t,r){if(!Array.isArray(e?.comments))return[];let n=jde(t,r);return n?e.comments.filter(n):e.comments}var cd=(e,{originalText:t})=>ez(t,Jr(e));function Zv(e){return jn(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function Gm(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!xD(e))}var Nu=wr(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),od=wr(["TSUnionType","UnionTypeAnnotation"]),ED=wr(["TSIntersectionType","IntersectionTypeAnnotation"]),Km=wr(["TSConditionalType","ConditionalTypeAnnotation"]),IGe=e=>e?.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const",LU=wr(["TSTypeAliasDeclaration","TypeAlias"]);function Bde({key:e,parent:t}){return!(e==="types"&&od(t)||e==="types"&&ED(t))}var kGe=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),qv=e=>{for(let t of e.quasis)delete t.value};function qde(e,t,r){if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="Literal")&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"&&!rz({node:e,parent:r})||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute")&&e.key&&!e.computed){let{key:o}=e;fa(o)||nd(o)?t.key=String(o.value):o.type==="Identifier"&&(t.key=o.name)}if(e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(o=>o.type==="JSXAttribute"&&o.name.name==="jsx"))for(let{type:o,expression:i}of t.children)o==="JSXExpressionContainer"&&i.type==="TemplateLiteral"&&qv(i);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&qv(t.value.expression),e.type==="JSXAttribute"&&e.value?.type==="Literal"&&/["']|"|'/u.test(e.value.value)&&(t.value.value=da(0,e.value.value,/["']|"|'/gu,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let o=e.expression.arguments[0].properties;for(let[i,a]of t.expression.arguments[0].properties.entries())switch(o[i].key.name){case"styles":Fa(a.value)&&qv(a.value.elements[0]);break;case"template":a.value.type==="TemplateLiteral"&&qv(a.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&qv(t.quasi),e.type==="TemplateLiteral"&&qv(t),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression")}qde.ignoredProperties=kGe;var CGe=qde,PGe=wr(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),OGe=(e,[t])=>t?.type==="ComponentParameter"&&t.shorthand&&t.name===e&&t.local!==t.name||t?.type==="MatchObjectPatternProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type==="ObjectProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type==="Property"&&t.shorthand&&t.key===e&&!xD(t)&&t.value!==t.key,NGe=(e,[t])=>!!(e.type==="FunctionExpression"&&t.type==="MethodDefinition"&&t.value===e&&ss(e).length===0&&!e.returnType&&!jo(e.typeParameters)&&e.body),Zpe=(e,[t])=>t?.typeAnnotation===e&&IGe(t),FGe=(e,[t,...r])=>Zpe(e,[t])||t?.typeName===e&&Zpe(t,r);function RGe(e,t){return PGe(e)||OGe(e,t)||NGe(e,t)?!1:e.type==="EmptyStatement"?rz({node:e,parent:t[0]}):!(FGe(e,t)||e.type==="TSTypeAnnotation"&&t[0].type==="TSPropertySignature")}var LGe=RGe;function $Ge(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function cz(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=$Ge(e)}function Ni(e,t){t.leading=!0,t.trailing=!1,cz(e,t)}function Mc(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),cz(e,t)}function ni(e,t){t.leading=!1,t.trailing=!0,cz(e,t)}function MGe(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Jv(e,n),n=XU(e,n),n=YU(e,n),n=Kv(e,n);return n}var Qv=MGe;function jGe(e,t){let r=Qv(e,t);return r===!1?"":e.charAt(r)}var Lu=jGe;function BGe(e,t,r){for(let n=t;nbD(e)||!jc(t,Xr(e),Jr(e));function UGe(e){return[Qde,Vde,Hde,YGe,KGe,uz,pz,zde,Jde,oHe,tHe,rHe,_z,Wde,iHe,Kde,Zde,dz,GGe,dHe,Xde,fz].some(t=>t(e))}function zGe(e){return[JGe,Hde,Vde,Wde,uz,pz,zde,Jde,Zde,eHe,nHe,_z,cHe,dz,uHe,pHe,_He,Xde,mHe,fHe,fz].some(t=>t(e))}function VGe(e){return[Qde,uz,pz,XGe,Kde,_z,QGe,WGe,dz,lHe,fz].some(t=>t(e))}function vg(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?Ni(r,t):Mc(e,t)}function $U(e,t){e.type==="BlockStatement"?vg(e,t):Ni(e,t)}function JGe({comment:e,followingNode:t}){return t&&Ude(e)?(Ni(t,e),!0):!1}function uz({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o}){if(r?.type!=="IfStatement"||!n)return!1;if(Lu(o,Jr(e))===")")return ni(t,e),!0;if(n.type==="BlockStatement"&&n===r.consequent&&Xr(e)>=Jr(t)&&Jr(e)<=Xr(n))return Ni(n,e),!0;if(t===r.consequent&&n===r.alternate){let i=Qv(o,Jr(r.consequent));if(n.type==="BlockStatement"&&Xr(e)>=i&&Jr(e)<=Xr(n))return Ni(n,e),!0;if(Xr(e)"?(Mc(t,e),!0):!1}function XGe({comment:e,enclosingNode:t,text:r}){return Lu(r,Jr(e))!==")"?!1:t&&(Yde(t)&&ss(t).length===0||Zv(t)&&qc(t).length===0)?(Mc(t,e),!0):(t?.type==="MethodDefinition"||t?.type==="TSAbstractMethodDefinition")&&ss(t.value).length===0?(Mc(t.value,e),!0):!1}function YGe({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o}){return t?.type==="ComponentTypeParameter"&&(r?.type==="DeclareComponent"||r?.type==="ComponentTypeAnnotation")&&n?.type!=="ComponentTypeParameter"||(t?.type==="ComponentParameter"||t?.type==="RestElement")&&r?.type==="ComponentDeclaration"&&Lu(o,Jr(e))===")"?(ni(t,e),!0):!1}function Hde({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o}){return t?.type==="FunctionTypeParam"&&r?.type==="FunctionTypeAnnotation"&&n?.type!=="FunctionTypeParam"||(t?.type==="Identifier"||t?.type==="AssignmentPattern"||t?.type==="ObjectPattern"||t?.type==="ArrayPattern"||t?.type==="RestElement"||t?.type==="TSParameterProperty")&&Yde(r)&&Lu(o,Jr(e))===")"?(ni(t,e),!0):!Mu(e)&&n?.type==="BlockStatement"&&Gde(r)&&(r.type==="MethodDefinition"?r.value.body:r.body)===n&&Qv(o,Jr(e))===Xr(n)?(vg(n,e),!0):!1}function Zde({comment:e,enclosingNode:t}){return t?.type==="LabeledStatement"?(Ni(t,e),!0):!1}function dz({comment:e,enclosingNode:t}){return(t?.type==="ContinueStatement"||t?.type==="BreakStatement")&&!t.label?(ni(t,e),!0):!1}function eHe({comment:e,precedingNode:t,enclosingNode:r}){return jn(r)&&t&&r.callee===t&&r.arguments.length>0?(Ni(r.arguments[0],e),!0):!1}function tHe({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return od(r)?(Hv(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(ni(t,e),!0):!1):(od(n)&&Hv(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function rHe({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return r&&r.type==="MatchOrPattern"?(Hv(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(ni(t,e),!0):!1):(n&&n.type==="MatchOrPattern"&&Hv(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function nHe({comment:e,enclosingNode:t}){return Gm(t)?(Ni(t,e),!0):!1}function _z({comment:e,enclosingNode:t,ast:r,isLastComment:n}){return r?.body?.length===0?(n?Mc(r,e):Ni(r,e),!0):t?.type==="Program"&&t.body.length===0&&!jo(t.directives)?(n?Mc(t,e):Ni(t,e),!0):!1}function oHe({comment:e,enclosingNode:t,followingNode:r}){return(t?.type==="ForInStatement"||t?.type==="ForOfStatement")&&r!==t.body?(Ni(t,e),!0):!1}function Wde({comment:e,precedingNode:t,enclosingNode:r,text:n}){if(r?.type==="ImportSpecifier"||r?.type==="ExportSpecifier")return Ni(r,e),!0;let o=t?.type==="ImportSpecifier"&&r?.type==="ImportDeclaration",i=t?.type==="ExportSpecifier"&&r?.type==="ExportNamedDeclaration";return(o||i)&&nc(n,Jr(e))?(ni(t,e),!0):!1}function iHe({comment:e,enclosingNode:t}){return t?.type==="AssignmentPattern"?(Ni(t,e),!0):!1}var aHe=wr(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),sHe=wr(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function cHe({comment:e,enclosingNode:t,followingNode:r}){return aHe(t)&&r&&(sHe(r)||Mu(e))?(Ni(r,e),!0):!1}function lHe({comment:e,enclosingNode:t,precedingNode:r,followingNode:n,text:o}){return!n&&(t?.type==="TSMethodSignature"||t?.type==="TSDeclareFunction"||t?.type==="TSAbstractMethodDefinition")&&(!r||r!==t.returnType)&&Lu(o,Jr(e))===";"?(ni(t,e),!0):!1}function Qde({comment:e,enclosingNode:t,followingNode:r}){if(Hv(e)&&t?.type==="TSMappedType"&&r===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function Xde({comment:e,precedingNode:t,enclosingNode:r}){if(r?.type==="TSMappedType"&&!t)return Mc(r,e),!0}function uHe({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&bD(e)?vg(r,e):Mc(t,e),!0)}function pHe({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return od(t)&&((r.type==="TSArrayType"||r.type==="ArrayTypeAnnotation")&&!n||ED(r))?(ni(Jn(0,t.types,-1),e),!0):!1}function dHe({comment:e,enclosingNode:t,precedingNode:r,followingNode:n}){if((t?.type==="ObjectPattern"||t?.type==="ArrayPattern")&&n?.type==="TSTypeAnnotation")return r?ni(r,e):Mc(t,e),!0}function _He({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o}){return!n&&r?.type==="UnaryExpression"&&(t?.type==="LogicalExpression"||t?.type==="BinaryExpression")&&jc(o,Xr(r.argument),Xr(t.right))&&lz(e,o)&&!jc(o,Xr(t.right),Xr(e))?(ni(t.right,e),!0):!1}function fHe({enclosingNode:e,followingNode:t,comment:r}){if(e&&(e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&(od(t)||ED(t)))return Ni(t,r),!0}function fz({enclosingNode:e,precedingNode:t,followingNode:r,comment:n,text:o}){if(Nu(e)&&t===e.expression&&!lz(n,o))return r?Ni(r,n):ni(e,n),!0}function mHe({comment:e,enclosingNode:t,followingNode:r,precedingNode:n}){return t&&r&&n&&t.type==="ArrowFunctionExpression"&&t.returnType===n&&(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation")?(Ni(r,e),!0):!1}var Yde=wr(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),hHe={endOfLine:zGe,ownLine:UGe,remaining:VGe},yHe=hHe;function gHe(e,{parser:t}){if(t==="flow"||t==="hermes"||t==="babel-flow")return e=da(0,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}var SHe=gHe,vHe=wr(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function bHe(e){let{key:t,parent:r}=e;if(t==="types"&&od(r)||t==="argument"&&r.type==="JSXSpreadAttribute"||t==="expression"&&r.type==="JSXSpreadChild"||t==="superClass"&&(r.type==="ClassDeclaration"||r.type==="ClassExpression")||(t==="id"||t==="typeParameters")&&vHe(r)||t==="patterns"&&r.type==="MatchOrPattern")return!0;let{node:n}=e;return K3(n)?!1:od(n)?Bde(e):!!_a(n)}var xHe=bHe,bg="string",z_="array",Xv="cursor",xg="indent",Eg="align",Tg="trim",Ll="group",Hm="fill",rd="if-break",Dg="indent-if-break",Ag="line-suffix",Zm="line-suffix-boundary",ic="line",J_="label",K_="break-parent",e_e=new Set([Xv,xg,Eg,Tg,Ll,Hm,rd,Dg,Ag,Zm,ic,J_,K_]);function EHe(e){if(typeof e=="string")return bg;if(Array.isArray(e))return z_;if(!e)return;let{type:t}=e;if(e_e.has(t))return t}var Wm=EHe,THe=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function DHe(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(Wm(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=THe([...e_e].map(o=>`'${o}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var AHe=class extends Error{name="InvalidDocError";constructor(e){super(DHe(e)),this.doc=e}},yD=AHe,Wpe={};function wHe(e,t,r,n){let o=[e];for(;o.length>0;){let i=o.pop();if(i===Wpe){r(o.pop());continue}r&&o.push(i,Wpe);let a=Wm(i);if(!a)throw new yD(i);if(t?.(i)!==!1)switch(a){case z_:case Hm:{let s=a===z_?i:i.parts;for(let c=s.length,p=c-1;p>=0;--p)o.push(s[p]);break}case rd:o.push(i.flatContents,i.breakContents);break;case Ll:if(n&&i.expandedStates)for(let s=i.expandedStates.length,c=s-1;c>=0;--c)o.push(i.expandedStates[c]);else o.push(i.contents);break;case Eg:case xg:case Dg:case J_:case Ag:o.push(i.contents);break;case bg:case Xv:case Tg:case Zm:case ic:case K_:break;default:throw new yD(i)}}}var mz=wHe;function Yv(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let a=o(i);return r.set(i,a),a}function o(i){switch(Wm(i)){case z_:return t(i.map(n));case Hm:return t({...i,parts:i.parts.map(n)});case rd:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case Ll:{let{expandedStates:a,contents:s}=i;return a?(a=a.map(n),s=a[0]):s=n(s),t({...i,contents:s,expandedStates:a})}case Eg:case xg:case Dg:case J_:case Ag:return t({...i,contents:n(i.contents)});case bg:case Xv:case Tg:case Zm:case ic:case K_:return t(i);default:throw new yD(i)}}}function t_e(e,t,r){let n=r,o=!1;function i(a){if(o)return!1;let s=t(a);s!==void 0&&(o=!0,n=s)}return mz(e,i),n}function IHe(e){if(e.type===Ll&&e.break||e.type===ic&&e.hard||e.type===K_)return!0}function Os(e){return t_e(e,IHe,!1)}function Qpe(e){if(e.length>0){let t=Jn(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function kHe(e){let t=new Set,r=[];function n(i){if(i.type===K_&&Qpe(r),i.type===Ll){if(r.push(i),t.has(i))return!1;t.add(i)}}function o(i){i.type===Ll&&r.pop().break&&Qpe(r)}mz(e,n,o,!0)}function CHe(e){return e.type===ic&&!e.hard?e.soft?"":" ":e.type===rd?e.flatContents:e}function B3(e){return Yv(e,CHe)}function PHe(e){switch(Wm(e)){case Hm:if(e.parts.every(t=>t===""))return"";break;case Ll:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Ll&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Eg:case xg:case Dg:case Ag:if(!e.contents)return"";break;case rd:if(!e.flatContents&&!e.breakContents)return"";break;case z_:{let t=[];for(let r of e){if(!r)continue;let[n,...o]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Jn(0,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...o)}return t.length===0?"":t.length===1?t[0]:t}case bg:case Xv:case Tg:case Zm:case ic:case J_:case K_:break;default:throw new yD(e)}return e}function hz(e){return Yv(e,t=>PHe(t))}function gg(e,t=a_e){return Yv(e,r=>typeof r=="string"?pn(t,r.split(` +`)):r)}function OHe(e){if(e.type===ic)return!0}function NHe(e){return t_e(e,OHe,!1)}function MU(e,t){return e.type===J_?{...e,contents:t(e.contents)}:t(e)}function FHe(e){let t=!0;return mz(e,r=>{switch(Wm(r)){case bg:if(r==="")break;case Tg:case Zm:case ic:case K_:return t=!1,!1}}),t}var id=Sg,r_e=Sg,RHe=Sg,LHe=Sg;function Fe(e){return id(e),{type:xg,contents:e}}function $u(e,t){return LHe(e),id(t),{type:Eg,contents:t,n:e}}function $He(e){return $u(Number.NEGATIVE_INFINITY,e)}function n_e(e){return $u(-1,e)}function MHe(e,t,r){id(e);let n=e;if(t>0){for(let o=0;o0&&c(a),y()}function m(){s>0&&p(s),y()}function y(){a=0,s=0}}function ZHe(e,t,r){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let n;return typeof t=="number"?t<0?n=HHe:n={type:2,width:t}:n={type:3,string:t},c_e(e,n,r)}function WHe(e,t){return c_e(e,GHe,t)}function QHe(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];if(n===" "||n===" ")t++;else break}return t}function l_e(e){let t=QHe(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var rc=Symbol("MODE_BREAK"),td=Symbol("MODE_FLAT"),jU=Symbol("DOC_FILL_PRINTED_LENGTH");function N3(e,t,r,n,o,i){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length,s=!1,c=[e],p="";for(;r>=0;){if(c.length===0){if(a===0)return!0;c.push(t[--a]);continue}let{mode:d,doc:f}=c.pop(),m=Wm(f);switch(m){case bg:f&&(s&&(p+=" ",r-=1,s=!1),p+=f,r-=Vv(f));break;case z_:case Hm:{let y=m===z_?f:f.parts,g=f[jU]??0;for(let S=y.length-1;S>=g;S--)c.push({mode:d,doc:y[S]});break}case xg:case Eg:case Dg:case J_:c.push({mode:d,doc:f.contents});break;case Tg:{let{text:y,count:g}=l_e(p);p=y,r+=g;break}case Ll:{if(i&&f.break)return!1;let y=f.break?rc:d,g=f.expandedStates&&y===rc?Jn(0,f.expandedStates,-1):f.contents;c.push({mode:y,doc:g});break}case rd:{let y=(f.groupId?o[f.groupId]||td:d)===rc?f.breakContents:f.flatContents;y&&c.push({mode:d,doc:y});break}case ic:if(d===rc||f.hard)return!0;f.soft||(s=!0);break;case Ag:n=!0;break;case Zm:if(n)return!1;break}}return!1}function u_e(e,t){let r=Object.create(null),n=t.printWidth,o=KHe(t.endOfLine),i=0,a=[{indent:s_e,mode:rc,doc:e}],s="",c=!1,p=[],d=[],f=[],m=[],y=0;for(kHe(e);a.length>0;){let{indent:I,mode:E,doc:C}=a.pop();switch(Wm(C)){case bg:{let F=o!==` +`?da(0,C,` +`,o):C;F&&(s+=F,a.length>0&&(i+=Vv(F)));break}case z_:for(let F=C.length-1;F>=0;F--)a.push({indent:I,mode:E,doc:C[F]});break;case Xv:if(d.length>=2)throw new Error("There are too many 'cursor' in doc.");d.push(y+s.length);break;case xg:a.push({indent:WHe(I,t),mode:E,doc:C.contents});break;case Eg:a.push({indent:ZHe(I,C.n,t),mode:E,doc:C.contents});break;case Tg:A();break;case Ll:switch(E){case td:if(!c){a.push({indent:I,mode:C.break?rc:td,doc:C.contents});break}case rc:{c=!1;let F={indent:I,mode:td,doc:C.contents},O=n-i,$=p.length>0;if(!C.break&&N3(F,a,O,$,r))a.push(F);else if(C.expandedStates){let N=Jn(0,C.expandedStates,-1);if(C.break){a.push({indent:I,mode:rc,doc:N});break}else for(let U=1;U=C.expandedStates.length){a.push({indent:I,mode:rc,doc:N});break}else{let ge=C.expandedStates[U],Te={indent:I,mode:td,doc:ge};if(N3(Te,a,O,$,r)){a.push(Te);break}}}else a.push({indent:I,mode:rc,doc:C.contents});break}}C.id&&(r[C.id]=Jn(0,a,-1).mode);break;case Hm:{let F=n-i,O=C[jU]??0,{parts:$}=C,N=$.length-O;if(N===0)break;let U=$[O+0],ge=$[O+1],Te={indent:I,mode:td,doc:U},ke={indent:I,mode:rc,doc:U},Ve=N3(Te,[],F,p.length>0,r,!0);if(N===1){Ve?a.push(Te):a.push(ke);break}let me={indent:I,mode:td,doc:ge},xe={indent:I,mode:rc,doc:ge};if(N===2){Ve?a.push(me,Te):a.push(xe,ke);break}let Rt=$[O+2],Vt={indent:I,mode:E,doc:{...C,[jU]:O+2}},Yt=N3({indent:I,mode:td,doc:[U,ge,Rt]},[],F,p.length>0,r,!0);a.push(Vt),Yt?a.push(me,Te):Ve?a.push(xe,Te):a.push(xe,ke);break}case rd:case Dg:{let F=C.groupId?r[C.groupId]:E;if(F===rc){let O=C.type===rd?C.breakContents:C.negate?C.contents:Fe(C.contents);O&&a.push({indent:I,mode:E,doc:O})}if(F===td){let O=C.type===rd?C.flatContents:C.negate?Fe(C.contents):C.contents;O&&a.push({indent:I,mode:E,doc:O})}break}case Ag:p.push({indent:I,mode:E,doc:C.contents});break;case Zm:p.length>0&&a.push({indent:I,mode:E,doc:i_e});break;case ic:switch(E){case td:if(C.hard)c=!0;else{C.soft||(s+=" ",i+=1);break}case rc:if(p.length>0){a.push({indent:I,mode:E,doc:C},...p.reverse()),p.length=0;break}C.literal?(s+=o,i=0,I.root&&(I.root.value&&(s+=I.root.value),i=I.root.length)):(A(),s+=o+I.value,i=I.length);break}break;case J_:a.push({indent:I,mode:E,doc:C.contents});break;case K_:break;default:throw new yD(C)}a.length===0&&p.length>0&&(a.push(...p.reverse()),p.length=0)}let g=f.join("")+s,S=[...m,...d];if(S.length!==2)return{formatted:g};let x=S[0];return{formatted:g,cursorNodeStart:x,cursorNodeText:g.slice(x,Jn(0,S,-1))};function A(){let{text:I,count:E}=l_e(s);I&&(f.push(I),y+=I.length),s="",i-=E,d.length>0&&(m.push(...d.map(C=>Math.min(C,y))),d.length=0)}}function XHe(e,t,r=0){let n=0;for(let o=r;o{if(i.push(r()),p.tail)return;let{tabWidth:d}=t,f=p.value.raw,m=f.includes(` +`)?tZe(f,d):s;s=m;let y=a[c],g=n[o][c],S=jc(t.originalText,Jr(p),Xr(n.quasis[c+1]));if(!S){let A=u_e(y,{...t,printWidth:Number.POSITIVE_INFINITY}).formatted;A.includes(` +`)?S=!0:y=A}S&&(rt(g)||g.type==="Identifier"||Mo(g)||g.type==="ConditionalExpression"||g.type==="SequenceExpression"||Nu(g)||U_(g))&&(y=[Fe([Pe,y]),Pe]);let x=m===0&&f.endsWith(` +`)?$u(Number.NEGATIVE_INFINITY,y):MHe(y,m,d);i.push(de(["${",x,ad,"}"]))},"quasis"),i.push("`"),i}function rZe(e,t,r){let n=r("quasi"),{node:o}=e,i="",a=yg(o.quasi,St.Leading)[0];return a&&(jc(t.originalText,Jr(o.typeArguments??o.tag),Xr(a))?i=Pe:i=" "),TD(n.label&&{tagged:!0,...n.label},[r("tag"),r("typeArguments"),i,ad,n])}function nZe(e,t,r){let{node:n}=e,o=n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(o.length>1||o.some(i=>i.length>0)){t.__inJestEach=!0;let i=e.map(r,"expressions");t.__inJestEach=!1;let a=i.map(f=>"${"+u_e(f,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),s=[{hasLineBreak:!1,cells:[]}];for(let f=1;ff.cells.length)),p=Array.from({length:c}).fill(0),d=[{cells:o},...s.filter(f=>f.cells.length>0)];for(let{cells:f}of d.filter(m=>!m.hasLineBreak))for(let[m,y]of f.entries())p[m]=Math.max(p[m],Vv(y));return[ad,"`",Fe([Be,pn(Be,d.map(f=>pn(" | ",f.cells.map((m,y)=>f.hasLineBreak?m:m+" ".repeat(p[y]-Vv(m))))))]),Be,"`"]}}function oZe(e,t){let{node:r}=e,n=t();return rt(r)&&(n=de([Fe([Pe,n]),Pe])),["${",n,ad,"}"]}function yz(e,t){return e.map(()=>oZe(e,t),"expressions")}function d_e(e,t){return Yv(e,r=>typeof r=="string"?t?da(0,r,/(\\*)`/gu,"$1$1\\`"):__e(r):r)}function __e(e){return da(0,e,/([\\`]|\$\{)/gu,"\\$1")}function iZe({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/u;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}var BU=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function aZe(e){let t=n=>n.type==="TemplateLiteral",r=(n,o)=>Gm(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&o==="value";return e.match(t,(n,o)=>Fa(n)&&o==="elements",r,...BU)||e.match(t,r,...BU)}function sZe(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>Gm(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...BU)}function DU(e,t){return rt(e,St.Block|St.Leading,({value:r})=>r===` ${t} `)}function f_e({node:e,parent:t},r){return DU(e,r)||cZe(t)&&DU(t,r)||t.type==="ExpressionStatement"&&DU(t,r)}function cZe(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function lZe(e,t,r){let{node:n}=r,o="";for(let[c,p]of n.quasis.entries()){let{raw:d}=p.value;c>0&&(o+="@prettier-placeholder-"+(c-1)+"-id"),o+=d}let i=await e(o,{parser:"scss"}),a=yz(r,t),s=uZe(i,a);if(!s)throw new Error("Couldn't insert all the expressions");return["`",Fe([Be,s]),Pe,"`"]}function uZe(e,t){if(!jo(t))return e;let r=0,n=Yv(hz(e),o=>typeof o!="string"||!o.includes("@prettier-placeholder")?o:o.split(/@prettier-placeholder-(\d+)-id/u).map((i,a)=>a%2===0?gg(i):(r++,t[i])));return t.length===r?n:null}function pZe(e){return e.match(void 0,(t,r)=>r==="quasi"&&t.type==="TaggedTemplateExpression"&&tz(t.tag,["css","css.global","css.resolve"]))||e.match(void 0,(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer",(t,r)=>r==="children"&&t.type==="JSXElement"&&t.openingElement.name.type==="JSXIdentifier"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.type==="JSXIdentifier"&&n.name.name==="jsx"))}function F3(e){return e.type==="Identifier"&&e.name==="styled"}function Ype(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function dZe({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return F3(t.object)||Ype(t);case"CallExpression":return F3(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(F3(t.callee.object.object)||Ype(t.callee.object))||t.callee.object.type==="CallExpression"&&F3(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function _Ze({parent:e,grandparent:t}){return t?.type==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}var fZe=e=>pZe(e)||dZe(e)||_Ze(e)||aZe(e);async function mZe(e,t,r){let{node:n}=r,o=n.quasis.length,i=yz(r,t),a=[];for(let s=0;s2&&m[0].trim()===""&&m[1].trim()==="",x=y>2&&m[y-1].trim()===""&&m[y-2].trim()==="",A=m.every(E=>/^\s*(?:#[^\n\r]*)?$/u.test(E));if(!d&&/#[^\n\r]*$/u.test(m[y-1]))return null;let I=null;A?I=hZe(m):I=await e(f,{parser:"graphql"}),I?(I=d_e(I,!1),!p&&S&&a.push(""),a.push(I),!d&&x&&a.push("")):!p&&!d&&S&&a.push(""),g&&a.push(g)}return["`",Fe([Be,pn(Be,a)]),Be,"`"]}function hZe(e){let t=[],r=!1,n=e.map(o=>o.trim());for(let[o,i]of n.entries())i!==""&&(n[o-1]===""&&r?t.push([Be,i]):t.push(i),r=!0);return t.length===0?null:pn(Be,t)}function yZe({node:e,parent:t}){return f_e({node:e,parent:t},"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}var AU=0;async function m_e(e,t,r,n,o){let{node:i}=n,a=AU;AU=AU+1>>>0;let s=A=>`PRETTIER_HTML_PLACEHOLDER_${A}_${a}_IN_JS`,c=i.quasis.map((A,I,E)=>I===E.length-1?A.value.cooked:A.value.cooked+s(I)).join(""),p=yz(n,r),d=new RegExp(s("(\\d+)"),"gu"),f=0,m=await t(c,{parser:e,__onHtmlRoot(A){f=A.children.length}}),y=Yv(m,A=>{if(typeof A!="string")return A;let I=[],E=A.split(d);for(let C=0;C1?Fe(de(y)):de(y),S,"`"]))}function gZe(e){return f_e(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var SZe=m_e.bind(void 0,"html"),vZe=m_e.bind(void 0,"angular");async function bZe(e,t,r){let{node:n}=r,o=da(0,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(c,p)=>"\\".repeat(p.length/2)+"`"),i=xZe(o),a=i!=="";a&&(o=da(0,o,new RegExp(`^${i}`,"gmu"),""));let s=d_e(await e(o,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",a?Fe([Pe,s]):[a_e,$He(s)],Pe,"`"]}function xZe(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function EZe({node:e,parent:t}){return t?.type==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var TZe=[{test:fZe,print:lZe},{test:yZe,print:mZe},{test:gZe,print:SZe},{test:sZe,print:vZe},{test:EZe,print:bZe}].map(({test:e,print:t})=>({test:e,print:AZe(t)}));function DZe(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||wZe(t))return;let r=TZe.find(({test:n})=>n(e));if(r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":r.print}function AZe(e){return async(...t)=>{let r=await e(...t);return r&&TD({embed:!0,...r.label},r)}}function wZe({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var IZe=DZe,kZe=/\*\/$/,CZe=/^\/\*\*?/,h_e=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,PZe=/(^|\s+)\/\/([^\n\r]*)/g,ede=/^(\r?\n)+/,OZe=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,tde=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,NZe=/(\r?\n|^) *\* ?/g,y_e=[];function FZe(e){let t=e.match(h_e);return t?t[0].trimStart():""}function RZe(e){let t=e.match(h_e)?.[0];return t==null?e:e.slice(t.length)}function LZe(e){e=da(0,e.replace(CZe,"").replace(kZe,""),NZe,"$1");let t="";for(;t!==e;)t=e,e=da(0,e,OZe,` $1 $2 -`);e=e.replace(_Lt,"").trimEnd();let i=Object.create(null),s=YS(0,e,dLt,"").replace(_Lt,"").trimEnd(),l;for(;l=dLt.exec(e);){let d=YS(0,l[2],den,"");if(typeof i[l[1]]=="string"||Array.isArray(i[l[1]])){let h=i[l[1]];i[l[1]]=[...wMt,...Array.isArray(h)?h:[h],d]}else i[l[1]]=d}return{comments:s,pragmas:i}}function ven({comments:e="",pragmas:r={}}){let i=Object.keys(r),s=i.flatMap(d=>fLt(d,r[d])).map(d=>` * ${d} -`).join("");if(!e){if(i.length===0)return"";if(i.length===1&&!Array.isArray(r[i[0]])){let d=r[i[0]];return`/** ${fLt(i[0],d)[0]} */`}}let l=e.split(` -`).map(d=>` * ${d}`).join(` +`);e=e.replace(ede,"").trimEnd();let r=Object.create(null),n=da(0,e,tde,"").replace(ede,"").trimEnd(),o;for(;o=tde.exec(e);){let i=da(0,o[2],PZe,"");if(typeof r[o[1]]=="string"||Array.isArray(r[o[1]])){let a=r[o[1]];r[o[1]]=[...y_e,...Array.isArray(a)?a:[a],i]}else r[o[1]]=i}return{comments:n,pragmas:r}}function $Ze({comments:e="",pragmas:t={}}){let r=Object.keys(t),n=r.flatMap(i=>rde(i,t[i])).map(i=>` * ${i} +`).join("");if(!e){if(r.length===0)return"";if(r.length===1&&!Array.isArray(t[r[0]])){let i=t[r[0]];return`/** ${rde(r[0],i)[0]} */`}}let o=e.split(` +`).map(i=>` * ${i}`).join(` `)+` `;return`/** -`+(e?l:"")+(e&&i.length>0?` * -`:"")+s+" */"}function fLt(e,r){return[...wMt,...Array.isArray(r)?r:[r]].map(i=>`@${e} ${i}`.trim())}var Sen="format";function ben(e){if(!e.startsWith("#!"))return"";let r=e.indexOf(` -`);return r===-1?e:e.slice(0,r)}var xen=ben;function Ten(e){let r=xen(e);r&&(e=e.slice(r.length+1));let i=hen(e),{pragmas:s,comments:l}=yen(i);return{shebang:r,text:e,pragmas:s,comments:l}}function Een(e){let{shebang:r,text:i,pragmas:s,comments:l}=Ten(e),d=gen(i),h=ven({pragmas:{[Sen]:"",...s},comments:l.trimStart()});return(r?`${r} -`:"")+h+(d.startsWith(` +`+(e?o:"")+(e&&r.length>0?` * +`:"")+n+" */"}function rde(e,t){return[...y_e,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}var MZe="format";function jZe(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var BZe=jZe;function qZe(e){let t=BZe(e);t&&(e=e.slice(t.length+1));let r=FZe(e),{pragmas:n,comments:o}=LZe(r);return{shebang:t,text:e,pragmas:n,comments:o}}function UZe(e){let{shebang:t,text:r,pragmas:n,comments:o}=qZe(e),i=RZe(r),a=$Ze({pragmas:{[MZe]:"",...n},comments:o.trimStart()});return(t?`${t} +`:"")+a+(i.startsWith(` `)?` `:` -`)+d}function ken(e){if(!z6(e))return!1;let r=`*${e.value}*`.split(` -`);return r.length>1&&r.every(i=>i.trimStart()[0]==="*")}var zZe=new WeakMap;function Cen(e){return zZe.has(e)||zZe.set(e,ken(e)),zZe.get(e)}var Den=Cen;function Aen(e,r){let i=e.node;if(Bpe(i))return r.originalText.slice(B_(i),T_(i)).trimEnd();if(Den(i))return wen(i);if(z6(i))return["/*",pV(i.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(i))}function wen(e){let r=e.value.split(` -`);return["/*",ud(Ia,r.map((i,s)=>s===0?i.trimEnd():" "+(sh.type==="ForOfStatement")?.left;if(d&&B2(d,h=>h===i))return!0}if(s==="object"&&i.name==="let"&&l.type==="MemberExpression"&&l.computed&&!l.optional){let d=e.findAncestor(S=>S.type==="ExpressionStatement"||S.type==="ForStatement"||S.type==="ForInStatement"),h=d?d.type==="ExpressionStatement"?d.expression:d.type==="ForStatement"?d.init:d.left:void 0;if(h&&B2(h,S=>S===i))return!0}if(s==="expression")switch(i.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let d=e.findAncestor(h=>!M6(h));if(d!==l&&d.type==="ExpressionStatement")return!0}}return!1}if(i.type==="ObjectExpression"||i.type==="FunctionExpression"||i.type==="ClassExpression"||i.type==="DoExpression"){let d=e.findAncestor(h=>h.type==="ExpressionStatement")?.expression;if(d&&B2(d,h=>h===i))return!0}if(i.type==="ObjectExpression"){let d=e.findAncestor(h=>h.type==="ArrowFunctionExpression")?.body;if(d&&d.type!=="SequenceExpression"&&d.type!=="AssignmentExpression"&&B2(d,h=>h===i))return!0}switch(l.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(s==="superClass"&&(i.type==="ArrowFunctionExpression"||i.type==="AssignmentExpression"||i.type==="AwaitExpression"||i.type==="BinaryExpression"||i.type==="ConditionalExpression"||i.type==="LogicalExpression"||i.type==="NewExpression"||i.type==="ObjectExpression"||i.type==="SequenceExpression"||i.type==="TaggedTemplateExpression"||i.type==="UnaryExpression"||i.type==="UpdateExpression"||i.type==="YieldExpression"||i.type==="TSNonNullExpression"||i.type==="ClassExpression"&&Ag(i.decorators)))return!0;break;case"ExportDefaultDeclaration":return IMt(e,r)||i.type==="SequenceExpression";case"Decorator":if(s==="expression"&&!Ren(i))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(d,h)=>h==="returnType"&&d.type==="ArrowFunctionExpression")&&Nen(i))return!0;break;case"BinaryExpression":if(s==="left"&&(l.operator==="in"||l.operator==="instanceof")&&i.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(s==="init"&&e.match(void 0,void 0,(d,h)=>h==="declarations"&&d.type==="VariableDeclaration",(d,h)=>h==="left"&&d.type==="ForInStatement"))return!0;break}switch(i.type){case"UpdateExpression":if(l.type==="UnaryExpression")return i.prefix&&(i.operator==="++"&&l.operator==="+"||i.operator==="--"&&l.operator==="-");case"UnaryExpression":switch(l.type){case"UnaryExpression":return i.operator===l.operator&&(i.operator==="+"||i.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return s==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"BinaryExpression":return s==="left"&&l.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(l.type==="UpdateExpression"||i.operator==="in"&&Pen(e))return!0;if(i.operator==="|>"&&i.extra?.parenthesized){let d=e.grandparent;if(d.type==="BinaryExpression"&&d.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(l.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!M6(i);case"ConditionalExpression":return M6(i)||HZr(i);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return s==="callee";case"ClassExpression":case"ClassDeclaration":return s==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return s==="object";case"AssignmentExpression":case"AssignmentPattern":return s==="left"&&(i.type==="TSTypeAssertion"||M6(i));case"LogicalExpression":if(i.type==="LogicalExpression")return l.operator!==i.operator;case"BinaryExpression":{let{operator:d,type:h}=i;if(!d&&h!=="TSTypeAssertion")return!0;let S=zCe(d),b=l.operator,A=zCe(b);return!!(A>S||s==="right"&&A===S||A===S&&!xXe(b,d)||A");default:return!1}case"TSFunctionType":if(e.match(d=>d.type==="TSFunctionType",(d,h)=>h==="typeAnnotation"&&d.type==="TSTypeAnnotation",(d,h)=>h==="returnType"&&d.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(s==="extendsType"&&iB(i)&&l.type===i.type||s==="checkType"&&iB(l))return!0;if(s==="extendsType"&&l.type==="TSConditionalType"){let{typeAnnotation:d}=i.returnType||i.typeAnnotation;if(d.type==="TSTypePredicate"&&d.typeAnnotation&&(d=d.typeAnnotation.typeAnnotation),d.type==="TSInferType"&&d.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(f8(l)||Upe(l))return!0;case"TSInferType":if(i.type==="TSInferType"){if(l.type==="TSRestType")return!1;if(s==="types"&&(l.type==="TSUnionType"||l.type==="TSIntersectionType")&&i.typeParameter.type==="TSTypeParameter"&&i.typeParameter.constraint)return!0}case"TSTypeOperator":return l.type==="TSArrayType"||l.type==="TSOptionalType"||l.type==="TSRestType"||s==="objectType"&&l.type==="TSIndexedAccessType"||l.type==="TSTypeOperator"||l.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return s==="objectType"&&l.type==="TSIndexedAccessType"||s==="elementType"&&l.type==="TSArrayType";case"TypeOperator":return l.type==="ArrayTypeAnnotation"||l.type==="NullableTypeAnnotation"||s==="objectType"&&(l.type==="IndexedAccessType"||l.type==="OptionalIndexedAccessType")||l.type==="TypeOperator";case"TypeofTypeAnnotation":return s==="objectType"&&(l.type==="IndexedAccessType"||l.type==="OptionalIndexedAccessType")||s==="elementType"&&l.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return l.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return l.type==="TypeOperator"||l.type==="KeyofTypeAnnotation"||l.type==="ArrayTypeAnnotation"||l.type==="NullableTypeAnnotation"||l.type==="IntersectionTypeAnnotation"||l.type==="UnionTypeAnnotation"||s==="objectType"&&(l.type==="IndexedAccessType"||l.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return l.type==="ArrayTypeAnnotation"||s==="objectType"&&(l.type==="IndexedAccessType"||l.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(i.type==="ComponentTypeAnnotation"&&(i.rendersType===null||i.rendersType===void 0))return!1;if(e.match(void 0,(h,S)=>S==="typeAnnotation"&&h.type==="TypeAnnotation",(h,S)=>S==="returnType"&&h.type==="ArrowFunctionExpression")||e.match(void 0,(h,S)=>S==="typeAnnotation"&&h.type==="TypePredicate",(h,S)=>S==="typeAnnotation"&&h.type==="TypeAnnotation",(h,S)=>S==="returnType"&&h.type==="ArrowFunctionExpression"))return!0;let d=l.type==="NullableTypeAnnotation"?e.grandparent:l;return d.type==="UnionTypeAnnotation"||d.type==="IntersectionTypeAnnotation"||d.type==="ArrayTypeAnnotation"||s==="objectType"&&(d.type==="IndexedAccessType"||d.type==="OptionalIndexedAccessType")||s==="checkType"&&l.type==="ConditionalTypeAnnotation"||s==="extendsType"&&l.type==="ConditionalTypeAnnotation"&&i.returnType?.type==="InferTypeAnnotation"&&i.returnType?.typeParameter.bound||d.type==="NullableTypeAnnotation"||l.type==="FunctionTypeParam"&&l.name===null&&xT(i).some(h=>h.typeAnnotation?.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return s==="objectType"&&l.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof i.value=="string"&&l.type==="ExpressionStatement"&&typeof l.directive!="string"){let d=e.grandparent;return d.type==="Program"||d.type==="BlockStatement"}return s==="object"&&Dg(l)&&d8(i);case"AssignmentExpression":return!((s==="init"||s==="update")&&l.type==="ForStatement"||s==="expression"&&i.left.type!=="ObjectPattern"&&l.type==="ExpressionStatement"||s==="key"&&l.type==="TSPropertySignature"||l.type==="AssignmentExpression"||s==="expressions"&&l.type==="SequenceExpression"&&e.match(void 0,void 0,(d,h)=>(h==="init"||h==="update")&&d.type==="ForStatement")||s==="value"&&l.type==="Property"&&e.match(void 0,void 0,(d,h)=>h==="properties"&&d.type==="ObjectPattern")||l.type==="NGChainedExpression"||s==="node"&&l.type==="JsExpressionRoot");case"ConditionalExpression":switch(l.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"ConditionalExpression":return r.experimentalTernaries?!1:s==="test";case"MemberExpression":case"OptionalMemberExpression":return s==="object";default:return!1}case"FunctionExpression":switch(l.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(l.type){case"BinaryExpression":return l.operator!=="|>"||i.extra?.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"MemberExpression":case"OptionalMemberExpression":return s==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":case"MatchExpressionCase":return!0;case"TSInstantiationExpression":return s==="expression";case"ConditionalExpression":return s==="test";default:return!1}case"ClassExpression":return l.type==="NewExpression"?s==="callee":!1;case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(Fen(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(s==="callee"&&(l.type==="BindExpression"||l.type==="NewExpression")){let d=i;for(;d;)switch(d.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":d=d.object;break;case"TaggedTemplateExpression":d=d.tag;break;case"TSNonNullExpression":d=d.expression;break;default:return!1}}return!1;case"BindExpression":return s==="callee"&&(l.type==="BindExpression"||l.type==="NewExpression")||s==="object"&&Dg(l);case"NGPipeExpression":return!(l.type==="NGRoot"||l.type==="NGMicrosyntaxExpression"||l.type==="ObjectProperty"&&!i.extra?.parenthesized||ax(l)||s==="arguments"&&Sf(l)||s==="right"&&l.type==="NGPipeExpression"||s==="property"&&l.type==="MemberExpression"||l.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return s==="callee"||s==="left"&&l.type==="BinaryExpression"&&l.operator==="<"||!ax(l)&&l.type!=="ArrowFunctionExpression"&&l.type!=="AssignmentExpression"&&l.type!=="AssignmentPattern"&&l.type!=="BinaryExpression"&&l.type!=="NewExpression"&&l.type!=="ConditionalExpression"&&l.type!=="ExpressionStatement"&&l.type!=="JsExpressionRoot"&&l.type!=="JSXAttribute"&&l.type!=="JSXElement"&&l.type!=="JSXExpressionContainer"&&l.type!=="JSXFragment"&&l.type!=="LogicalExpression"&&!Sf(l)&&!oB(l)&&l.type!=="ReturnStatement"&&l.type!=="ThrowStatement"&&l.type!=="TypeCastExpression"&&l.type!=="VariableDeclarator"&&l.type!=="YieldExpression"&&l.type!=="MatchExpressionCase";case"TSInstantiationExpression":return s==="object"&&Dg(l);case"MatchOrPattern":return l.type==="MatchAsPattern"}return!1}var Ien=Tp(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function Pen(e){let r=0,{node:i}=e;for(;i;){let s=e.getParentNode(r++);if(s?.type==="ForStatement"&&s.init===i)return!0;i=s}return!1}function Nen(e){return KZe(e,r=>r.type==="ObjectTypeAnnotation"&&KZe(r,i=>i.type==="FunctionTypeAnnotation"))}function Oen(e){return B6(e)}function wpe(e){let{parent:r,key:i}=e;switch(r.type){case"NGPipeExpression":if(i==="arguments"&&e.isLast)return e.callParent(wpe);break;case"ObjectProperty":if(i==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(i==="right")return e.callParent(wpe);break;case"ConditionalExpression":if(i==="alternate")return e.callParent(wpe);break;case"UnaryExpression":if(r.prefix)return e.callParent(wpe);break}return!1}function IMt(e,r){let{node:i,parent:s}=e;return i.type==="FunctionExpression"||i.type==="ClassExpression"?s.type==="ExportDefaultDeclaration"||!rXe(e,r):!yXe(i)||s.type!=="ExportDefaultDeclaration"&&rXe(e,r)?!1:e.call(()=>IMt(e,r),...zLt(i))}function Fen(e){return!!(e.match(void 0,(r,i)=>i==="expression"&&r.type==="ChainExpression",(r,i)=>i==="tag"&&r.type==="TaggedTemplateExpression")||e.match(r=>r.type==="OptionalCallExpression"||r.type==="OptionalMemberExpression",(r,i)=>i==="tag"&&r.type==="TaggedTemplateExpression")||e.match(r=>r.type==="OptionalCallExpression"||r.type==="OptionalMemberExpression",(r,i)=>i==="expression"&&r.type==="TSNonNullExpression",(r,i)=>i==="tag"&&r.type==="TaggedTemplateExpression")||e.match(void 0,(r,i)=>i==="expression"&&r.type==="ChainExpression",(r,i)=>i==="expression"&&r.type==="TSNonNullExpression",(r,i)=>i==="tag"&&r.type==="TaggedTemplateExpression")||e.match(void 0,(r,i)=>i==="expression"&&r.type==="TSNonNullExpression",(r,i)=>i==="expression"&&r.type==="ChainExpression",(r,i)=>i==="tag"&&r.type==="TaggedTemplateExpression")||e.match(r=>r.type==="OptionalMemberExpression"||r.type==="OptionalCallExpression",(r,i)=>i==="object"&&r.type==="MemberExpression"||i==="callee"&&(r.type==="CallExpression"||r.type==="NewExpression"))||e.match(r=>r.type==="OptionalMemberExpression"||r.type==="OptionalCallExpression",(r,i)=>i==="expression"&&r.type==="TSNonNullExpression",(r,i)=>i==="object"&&r.type==="MemberExpression"||i==="callee"&&r.type==="CallExpression")||e.match(r=>r.type==="CallExpression"||r.type==="MemberExpression",(r,i)=>i==="expression"&&r.type==="ChainExpression")&&(e.match(void 0,void 0,(r,i)=>i==="callee"&&(r.type==="CallExpression"&&!r.optional||r.type==="NewExpression")||i==="object"&&r.type==="MemberExpression"&&!r.optional)||e.match(void 0,void 0,(r,i)=>i==="expression"&&r.type==="TSNonNullExpression",(r,i)=>i==="object"&&r.type==="MemberExpression"||i==="callee"&&r.type==="CallExpression"))||e.match(r=>r.type==="CallExpression"||r.type==="MemberExpression",(r,i)=>i==="expression"&&r.type==="TSNonNullExpression",(r,i)=>i==="expression"&&r.type==="ChainExpression",(r,i)=>i==="object"&&r.type==="MemberExpression"||i==="callee"&&r.type==="CallExpression"))}function nXe(e){return e.type==="Identifier"?!0:Dg(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&nXe(e.object):!1}function Ren(e){return e.type==="ChainExpression"&&(e=e.expression),nXe(e)||Sf(e)&&!e.optional&&nXe(e.callee)}var lB=rXe;function Len(e,r){let i=r-1;i=MY(e,i,{backwards:!0}),i=jY(e,i,{backwards:!0}),i=MY(e,i,{backwards:!0});let s=jY(e,i,{backwards:!0});return i!==s}var Men=Len,jen=()=>!0;function OXe(e,r){let i=e.node;return i.printed=!0,r.printer.printComment(e,r)}function Ben(e,r){let i=e.node,s=[OXe(e,r)],{printer:l,originalText:d,locStart:h,locEnd:S}=r;if(l.isBlockComment?.(i)){let A=gk(d,S(i))?gk(d,h(i),{backwards:!0})?Ia:Bs:" ";s.push(A)}else s.push(Ia);let b=jY(d,MY(d,S(i)));return b!==!1&&gk(d,b)&&s.push(Ia),s}function $en(e,r,i){let s=e.node,l=OXe(e,r),{printer:d,originalText:h,locStart:S}=r,b=d.isBlockComment?.(s);if(i?.hasLineSuffix&&!i?.isBlock||gk(h,S(s),{backwards:!0})){let A=Men(h,S(s));return{doc:uLt([Ia,A?Ia:"",l]),isBlock:b,hasLineSuffix:!0}}return!b||i?.hasLineSuffix?{doc:[uLt([" ",l]),U5],isBlock:b,hasLineSuffix:!0}:{doc:[" ",l],isBlock:b,hasLineSuffix:!1}}function Cg(e,r,i={}){let{node:s}=e;if(!Ag(s?.comments))return"";let{indent:l=!1,marker:d,filter:h=jen}=i,S=[];if(e.each(({node:A})=>{A.leading||A.trailing||A.marker!==d||!h(A)||S.push(OXe(e,r))},"comments"),S.length===0)return"";let b=ud(Ia,S);return l?da([Ia,b]):b}function ZCe(e,r){let i=e.node;if(!i)return{};let s=r[Symbol.for("printedComments")];if((i.comments||[]).filter(S=>!s.has(S)).length===0)return{leading:"",trailing:""};let l=[],d=[],h;return e.each(()=>{let S=e.node;if(s?.has(S))return;let{leading:b,trailing:A}=S;b?l.push(Ben(e,r)):A&&(h=$en(e,r,h),d.push(h.doc))},"comments"),{leading:l,trailing:d}}function tI(e,r,i){let{leading:s,trailing:l}=ZCe(e,i);return!s&&!l?r:YZe(r,d=>[s,d,l])}var VCe=class extends Error{name="ArgExpansionBailout"};function SV(e,r,i,s,l){let d=e.node,h=xT(d),S=l&&d.typeParameters?i("typeParameters"):"";if(h.length===0)return[S,"(",Cg(e,r,{filter:ie=>$6(r.originalText,T_(ie))===")"}),")"];let{parent:b}=e,A=KCe(b),L=PMt(d),V=[];if(lXr(e,(ie,te)=>{let X=te===h.length-1;X&&d.rest&&V.push("..."),V.push(i()),!X&&(V.push(","),A||L?V.push(" "):y8(h[te],r)?V.push(Ia,Ia):V.push(Bs))}),s&&!zen(e)){if($2(S)||$2(V))throw new VCe;return Bi([JCe(S),"(",JCe(V),")"])}let j=h.every(ie=>!Ag(ie.decorators));return L&&j?[S,"(",...V,")"]:A?[S,"(",...V,")"]:(VLt(b)||XZr(b)||b.type==="TypeAlias"||b.type==="UnionTypeAnnotation"||b.type==="IntersectionTypeAnnotation"||b.type==="FunctionTypeAnnotation"&&b.returnType===d)&&h.length===1&&h[0].name===null&&d.this!==h[0]&&h[0].typeAnnotation&&d.typeParameters===null&&SXe(h[0].typeAnnotation)&&!d.rest?r.arrowParens==="always"||d.type==="HookTypeAnnotation"?["(",...V,")"]:V:[S,"(",da([Qo,...V]),op(!cXr(d)&&g8(r,"all")?",":""),Qo,")"]}function PMt(e){if(!e)return!1;let r=xT(e);if(r.length!==1)return!1;let[i]=r;return!Os(i)&&(i.type==="ObjectPattern"||i.type==="ArrayPattern"||i.type==="Identifier"&&i.typeAnnotation&&(i.typeAnnotation.type==="TypeAnnotation"||i.typeAnnotation.type==="TSTypeAnnotation")&&nB(i.typeAnnotation.typeAnnotation)||i.type==="FunctionTypeParam"&&nB(i.typeAnnotation)&&i!==e.rest||i.type==="AssignmentPattern"&&(i.left.type==="ObjectPattern"||i.left.type==="ArrayPattern")&&(i.right.type==="Identifier"||B6(i.right)&&i.right.properties.length===0||ax(i.right)&&i.right.elements.length===0))}function Uen(e){let r;return e.returnType?(r=e.returnType,r.typeAnnotation&&(r=r.typeAnnotation)):e.typeAnnotation&&(r=e.typeAnnotation),r}function WY(e,r){let i=Uen(e);if(!i)return!1;let s=e.typeParameters?.params;if(s){if(s.length>1)return!1;if(s.length===1){let l=s[0];if(l.constraint||l.default)return!1}}return xT(e).length===1&&(nB(i)||$2(r))}function zen(e){return e.match(r=>r.type==="ArrowFunctionExpression"&&r.body.type==="BlockStatement",(r,i)=>{if(r.type==="CallExpression"&&i==="arguments"&&r.arguments.length===1&&r.callee.type==="CallExpression"){let s=r.callee.callee;return s.type==="Identifier"||s.type==="MemberExpression"&&!s.computed&&s.object.type==="Identifier"&&s.property.type==="Identifier"}return!1},(r,i)=>r.type==="VariableDeclarator"&&i==="init"||r.type==="ExportDefaultDeclaration"&&i==="declaration"||r.type==="TSExportAssignment"&&i==="expression"||r.type==="AssignmentExpression"&&i==="right"&&r.left.type==="MemberExpression"&&r.left.object.type==="Identifier"&&r.left.object.name==="module"&&r.left.property.type==="Identifier"&&r.left.property.name==="exports",r=>r.type!=="VariableDeclaration"||r.kind==="const"&&r.declarations.length===1)}function qen(e){let r=xT(e);return r.length>1&&r.some(i=>i.type==="TSParameterProperty")}function Ppe(e,r){return(r==="params"||r==="this"||r==="rest")&&PMt(e)}function U2(e){let{node:r}=e;return!r.optional||r.type==="Identifier"&&r===e.parent.key?"":Sf(r)||Dg(r)&&r.computed||r.type==="OptionalIndexedAccessType"?"?.":"?"}function NMt(e){return e.node.definite||e.match(void 0,(r,i)=>i==="id"&&r.type==="VariableDeclarator"&&r.definite)?"!":""}var Jen=Tp(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function DD(e){let{node:r}=e;return r.declare||Jen(r)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var Ven=Tp(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function XCe({node:e}){return e.abstract||Ven(e)?"abstract ":""}function tB(e,r,i){return e.type==="EmptyStatement"?Os(e,Fc.Leading)?[" ",r]:r:e.type==="BlockStatement"||i?[" ",r]:da([Bs,r])}function YCe(e){return e.accessibility?e.accessibility+" ":""}var Wen=/^[\$A-Z_a-z\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\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\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\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][\$0-9A-Z_a-z\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\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\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\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\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\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-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\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\u200C\u200D\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\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]*$/,Gen=e=>Wen.test(e),Hen=Gen;function Ken(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var zY=Ken,Qen=0;function OMt(e,r,i){let{node:s,parent:l,grandparent:d,key:h}=e,S=h!=="body"&&(l.type==="IfStatement"||l.type==="WhileStatement"||l.type==="SwitchStatement"||l.type==="DoWhileStatement"),b=s.operator==="|>"&&e.root.extra?.__isUsingHackPipeline,A=iXe(e,r,i,!1,S);if(S)return A;if(b)return Bi(A);if(h==="callee"&&(Sf(l)||l.type==="NewExpression")||l.type==="UnaryExpression"||Dg(l)&&!l.computed)return Bi([da([Qo,...A]),Qo]);let L=l.type==="ReturnStatement"||l.type==="ThrowStatement"||l.type==="JSXExpressionContainer"&&d.type==="JSXAttribute"||s.operator!=="|"&&l.type==="JsExpressionRoot"||s.type!=="NGPipeExpression"&&(l.type==="NGRoot"&&r.parser==="__ng_binding"||l.type==="NGMicrosyntaxExpression"&&d.type==="NGMicrosyntax"&&d.body.length===1)||s===l.body&&l.type==="ArrowFunctionExpression"||s!==l.body&&l.type==="ForStatement"||l.type==="ConditionalExpression"&&d.type!=="ReturnStatement"&&d.type!=="ThrowStatement"&&!Sf(d)&&d.type!=="NewExpression"||l.type==="TemplateLiteral"||Xen(e),V=l.type==="AssignmentExpression"||l.type==="VariableDeclarator"||l.type==="ClassProperty"||l.type==="PropertyDefinition"||l.type==="TSAbstractPropertyDefinition"||l.type==="ClassPrivateProperty"||oB(l),j=B5(s.left)&&xXe(s.operator,s.left.operator);if(L||Mpe(s)&&!j||!Mpe(s)&&V)return Bi(A);if(A.length===0)return"";let ie=eb(s.right),te=A.findIndex(xt=>typeof xt!="string"&&!Array.isArray(xt)&&xt.type===rI),X=A.slice(0,te===-1?1:te+1),Re=A.slice(X.length,ie?-1:void 0),Je=Symbol("logicalChain-"+ ++Qen),pt=Bi([...X,da(Re)],{id:Je});if(!ie)return pt;let $e=Zf(0,A,-1);return Bi([pt,Lpe($e,{groupId:Je})])}function iXe(e,r,i,s,l){let{node:d}=e;if(!B5(d))return[Bi(i())];let h=[];xXe(d.operator,d.left.operator)?h=e.call(()=>iXe(e,r,i,!0,l),"left"):h.push(Bi(i("left")));let S=Mpe(d),b=d.right.type==="ChainExpression"?d.right.expression:d.right,A=(d.operator==="|>"||d.type==="NGPipeExpression"||Zen(e,r))&&!j6(r.originalText,b),L=!Os(b,Fc.Leading,eMt)&&j6(r.originalText,b),V=d.type==="NGPipeExpression"?"|":d.operator,j=d.type==="NGPipeExpression"&&d.arguments.length>0?Bi(da([Qo,": ",ud([Bs,": "],e.map(()=>U6(2,Bi(i())),"arguments"))])):"",ie;if(S)ie=[V,j6(r.originalText,b)?da([Bs,i("right"),j]):[" ",i("right"),j]];else{let Re=V==="|>"&&e.root.extra?.__isUsingHackPipeline?e.call(()=>iXe(e,r,i,!0,l),"right"):i("right");if(r.experimentalOperatorPosition==="start"){let Je="";if(L)switch(cB(Re)){case $5:Je=Re.splice(0,1)[0];break;case z5:Je=Re.contents.splice(0,1)[0];break}ie=[Bs,Je,V," ",Re,j]}else ie=[A?Bs:"",V,A?" ":Bs,Re,j]}let{parent:te}=e,X=Os(d.left,Fc.Trailing|Fc.Line);if((X||!(l&&d.type==="LogicalExpression")&&te.type!==d.type&&d.left.type!==d.type&&d.right.type!==d.type)&&(ie=Bi(ie,{shouldBreak:X})),r.experimentalOperatorPosition==="start"?h.push(S||L?" ":"",ie):h.push(A?"":" ",ie),s&&Os(d)){let Re=PXe(tI(e,h,r));return Re.type===aB?Re.parts:Array.isArray(Re)?Re:[Re]}return h}function Mpe(e){return e.type!=="LogicalExpression"?!1:!!(B6(e.right)&&e.right.properties.length>0||ax(e.right)&&e.right.elements.length>0||eb(e.right))}var mLt=e=>e.type==="BinaryExpression"&&e.operator==="|";function Zen(e,r){return(r.parser==="__vue_expression"||r.parser==="__vue_ts_expression")&&mLt(e.node)&&!e.hasAncestor(i=>!mLt(i)&&i.type!=="JsExpressionRoot")}function Xen(e){if(e.key!=="arguments")return!1;let{parent:r}=e;if(!(Sf(r)&&!r.optional&&r.arguments.length===1))return!1;let{callee:i}=r;return i.type==="Identifier"&&i.name==="Boolean"}function FMt(e,r,i){let{node:s}=e,{parent:l}=e,d=l.type!=="TypeParameterInstantiation"&&(!iB(l)||!r.experimentalTernaries)&&l.type!=="TSTypeParameterInstantiation"&&l.type!=="GenericTypeAnnotation"&&l.type!=="TSTypeReference"&&l.type!=="TSTypeAssertion"&&l.type!=="TupleTypeAnnotation"&&l.type!=="TSTupleType"&&!(l.type==="FunctionTypeParam"&&!l.name&&e.grandparent.this!==l)&&!((ZZe(l)||l.type==="VariableDeclarator")&&j6(r.originalText,s))&&!(ZZe(l)&&Os(l.id,Fc.Trailing|Fc.Line)),h=RMt(s),S=e.map(()=>{let ie=i();return h||(ie=U6(2,ie)),tI(e,ie,r)},"types"),b="",A="";if(XLt(e)&&({leading:b,trailing:A}=ZCe(e,r)),h)return[b,ud(" | ",S),A];let L=d&&!j6(r.originalText,s),V=[op([L?Bs:"","| "]),ud([Bs,"| "],S)];if(lB(e,r))return[b,Bi([da(V),Qo]),A];let j=[b,Bi(V)];return(l.type==="TupleTypeAnnotation"||l.type==="TSTupleType")&&l[l.type==="TupleTypeAnnotation"&&l.types?"types":"elementTypes"].length>1?[Bi([da([op(["(",Qo]),j]),Qo,op(")")]),A]:[Bi(d?da(j):j),A]}var Yen=Tp(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),etn=Tp(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function RMt(e){let{types:r}=e;if(r.some(s=>Os(s)))return!1;let i=r.find(s=>etn(s));return i?r.every(s=>s===i||Yen(s)):!1}function ttn(e){return SXe(e)||nB(e)?!0:f8(e)?RMt(e):!1}var rtn=new WeakSet;function ox(e,r,i="typeAnnotation"){let{node:{[i]:s}}=e;if(!s)return"";let l=!1;if(s.type==="TSTypeAnnotation"||s.type==="TypeAnnotation"){let d=e.call(LMt,i);(d==="=>"||d===":"&&Os(s,Fc.Leading))&&(l=!0),rtn.add(s)}return l?[" ",r(i)]:r(i)}var LMt=e=>e.match(r=>r.type==="TSTypeAnnotation",(r,i)=>(i==="returnType"||i==="typeAnnotation")&&(r.type==="TSFunctionType"||r.type==="TSConstructorType"))?"=>":e.match(r=>r.type==="TSTypeAnnotation",(r,i)=>i==="typeAnnotation"&&(r.type==="TSJSDocNullableType"||r.type==="TSJSDocNonNullableType"||r.type==="TSTypePredicate"))||e.match(r=>r.type==="TypeAnnotation",(r,i)=>i==="typeAnnotation"&&r.type==="Identifier",(r,i)=>i==="id"&&r.type==="DeclareFunction")||e.match(r=>r.type==="TypeAnnotation",(r,i)=>i==="typeAnnotation"&&r.type==="Identifier",(r,i)=>i==="id"&&r.type==="DeclareHook")||e.match(r=>r.type==="TypeAnnotation",(r,i)=>i==="bound"&&r.type==="TypeParameter"&&r.usesExtendsBound)?"":":";function MMt(e,r,i){let s=LMt(e);return s?[s," ",i("typeAnnotation")]:i("typeAnnotation")}function ntn(e,r,i,s){let{node:l}=e,d=l.inexact?"...":"";return Os(l,Fc.Dangling)?Bi([i,d,Cg(e,r,{indent:!0}),Qo,s]):[i,d,s]}function FXe(e,r,i){let{node:s}=e,l=[],d="[",h="]",S=s.type==="TupleTypeAnnotation"&&s.types?"types":s.type==="TSTupleType"||s.type==="TupleTypeAnnotation"?"elementTypes":"elements",b=s[S];if(b.length===0)l.push(ntn(e,r,d,h));else{let A=Zf(0,b,-1),L=A?.type!=="RestElement"&&!s.inexact,V=A===null,j=Symbol("array"),ie=!r.__inJestEach&&b.length>1&&b.every((Re,Je,pt)=>{let $e=Re?.type;if(!ax(Re)&&!B6(Re))return!1;let xt=pt[Je+1];if(xt&&$e!==xt.type)return!1;let tr=ax(Re)?"elements":"properties";return Re[tr]&&Re[tr].length>1}),te=jMt(s,r),X=L?V?",":g8(r)?te?op(",","",{groupId:j}):op(","):"":"";l.push(Bi([d,da([Qo,te?otn(e,r,i,X):[itn(e,r,i,S,s.inexact),X],Cg(e,r)]),Qo,h],{shouldBreak:ie,id:j}))}return l.push(U2(e),ox(e,i)),l}function jMt(e,r){return ax(e)&&e.elements.length>0&&e.elements.every(i=>i&&(d8(i)||qLt(i)&&!Os(i.argument))&&!Os(i,Fc.Trailing|Fc.Line,s=>!gk(r.originalText,B_(s),{backwards:!0})))}function BMt({node:e},{originalText:r}){let i=T_(e);if(i===B_(e))return!1;let{length:s}=r;for(;i{d.push(h?Bi(i()):""),(!S||l)&&d.push([",",Bs,h&&BMt(e,r)?Qo:""])},s),l&&d.push("..."),d}function otn(e,r,i,s){let l=[];return e.each(({isLast:d,next:h})=>{l.push([i(),d?s:","]),d||l.push(BMt(e,r)?[Ia,Ia]:Os(h,Fc.Leading|Fc.Line)?Ia:Bs)},"elements"),hMt(l)}function atn(e,r,i){let{node:s}=e,l=AD(s);if(l.length===0)return["(",Cg(e,r),")"];let d=l.length-1;if(ltn(l)){let V=["("];return qCe(e,(j,ie)=>{V.push(i()),ie!==d&&V.push(", ")}),V.push(")"),V}let h=!1,S=[];qCe(e,({node:V},j)=>{let ie=i();j===d||(y8(V,r)?(h=!0,ie=[ie,",",Ia,Ia]):ie=[ie,",",Bs]),S.push(ie)});let b=!r.parser.startsWith("__ng_")&&s.type!=="ImportExpression"&&s.type!=="TSImportType"&&s.type!=="TSExternalModuleReference"&&g8(r,"all")?",":"";function A(){return Bi(["(",da([Bs,...S]),b,Bs,")"],{shouldBreak:!0})}if(h||e.parent.type!=="Decorator"&&iXr(l))return A();if(ctn(l)){let V=S.slice(1);if(V.some($2))return A();let j;try{j=i(aLt(s,0),{expandFirstArg:!0})}catch(ie){if(ie instanceof VCe)return A();throw ie}return $2(j)?[U5,lV([["(",Bi(j,{shouldBreak:!0}),", ",...V,")"],A()])]:lV([["(",j,", ",...V,")"],["(",Bi(j,{shouldBreak:!0}),", ",...V,")"],A()])}if(stn(l,S,r)){let V=S.slice(0,-1);if(V.some($2))return A();let j;try{j=i(aLt(s,-1),{expandLastArg:!0})}catch(ie){if(ie instanceof VCe)return A();throw ie}return $2(j)?[U5,lV([["(",...V,Bi(j,{shouldBreak:!0}),")"],A()])]:lV([["(",...V,j,")"],["(",...V,Bi(j,{shouldBreak:!0}),")"],A()])}let L=["(",da([Qo,...S]),op(b),Qo,")"];return QLt(e)?L:Bi(L,{shouldBreak:S.some($2)||h})}function Npe(e,r=!1){return B6(e)&&(e.properties.length>0||Os(e))||ax(e)&&(e.elements.length>0||Os(e))||e.type==="TSTypeAssertion"&&Npe(e.expression)||M6(e)&&Npe(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||utn(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&Npe(e.body,!0)||B6(e.body)||ax(e.body)||!r&&(Sf(e.body)||e.body.type==="ConditionalExpression")||eb(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function stn(e,r,i){let s=Zf(0,e,-1);if(e.length===1){let d=Zf(0,r,-1);if(d.label?.embed&&d.label?.hug!==!1)return!0}let l=Zf(0,e,-2);return!Os(s,Fc.Leading)&&!Os(s,Fc.Trailing)&&Npe(s)&&(!l||l.type!==s.type)&&(e.length!==2||l.type!=="ArrowFunctionExpression"||!ax(s))&&!(e.length>1&&jMt(s,i))}function ctn(e){if(e.length!==2)return!1;let[r,i]=e;return r.type==="ModuleExpression"&&ptn(i)?!0:!Os(r)&&(r.type==="FunctionExpression"||r.type==="ArrowFunctionExpression"&&r.body.type==="BlockStatement")&&i.type!=="FunctionExpression"&&i.type!=="ArrowFunctionExpression"&&i.type!=="ConditionalExpression"&&$Mt(i)&&!Npe(i)}function $Mt(e){if(e.type==="ParenthesizedExpression")return $Mt(e.expression);if(M6(e)||e.type==="TypeCastExpression"){let{typeAnnotation:r}=e;if(r.type==="TypeAnnotation"&&(r=r.typeAnnotation),r.type==="TSArrayType"&&(r=r.elementType,r.type==="TSArrayType"&&(r=r.elementType)),r.type==="GenericTypeAnnotation"||r.type==="TSTypeReference"){let i=r.type==="GenericTypeAnnotation"?r.typeParameters:r.typeArguments;i?.params.length===1&&(r=i.params[0])}return SXe(r)&&L6(e.expression,1)}return UY(e)&&AD(e).length>1?!1:B5(e)?L6(e.left,1)&&L6(e.right,1):JLt(e)||L6(e)}function ltn(e){return e.length===2?hLt(e,0):e.length===3?e[0].type==="Identifier"&&hLt(e,1):!1}function hLt(e,r){let i=e[r],s=e[r+1];return i.type==="ArrowFunctionExpression"&&xT(i).length===0&&i.body.type==="BlockStatement"&&s.type==="ArrayExpression"&&!e.some(l=>Os(l))}function utn(e){return e.type==="BlockStatement"&&(e.body.some(r=>r.type!=="EmptyStatement")||Os(e,Fc.Dangling))}function ptn(e){if(!(e.type==="ObjectExpression"&&e.properties.length===1))return!1;let[r]=e.properties;return oB(r)?!r.computed&&(r.key.type==="Identifier"&&r.key.name==="type"||tb(r.key)&&r.key.value==="type")&&tb(r.value)&&r.value.value==="module":!1}var oXe=atn;function _tn(e,r,i){return[i("object"),Bi(da([Qo,UMt(e,r,i)]))]}function UMt(e,r,i){return["::",i("callee")]}var dtn=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),Sf(e)&&AD(e).length>0);function ftn(e){let{node:r,ancestors:i}=e;for(let s of i){if(!(Dg(s)&&s.object===r||s.type==="TSNonNullExpression"&&s.expression===r))return s.type==="NewExpression"&&s.callee===r;r=s}return!1}function mtn(e,r,i){let s=i("object"),l=zMt(e,r,i),{node:d}=e,h=e.findAncestor(A=>!(Dg(A)||A.type==="TSNonNullExpression")),S=e.findAncestor(A=>!(A.type==="ChainExpression"||A.type==="TSNonNullExpression")),b=h.type==="BindExpression"||h.type==="AssignmentExpression"&&h.left.type!=="Identifier"||ftn(e)||d.computed||d.object.type==="Identifier"&&d.property.type==="Identifier"&&!Dg(S)||(S.type==="AssignmentExpression"||S.type==="VariableDeclarator")&&(dtn(d.object)||s.label?.memberChain);return zpe(s.label,[s,b?l:Bi(da([Qo,l]))])}function zMt(e,r,i){let s=i("property"),{node:l}=e,d=U2(e);return l.computed?!l.property||d8(l.property)?[d,"[",s,"]"]:Bi([d,"[",da([Qo,s]),Qo,"]"]):[d,".",s]}function qMt(e,r,i){if(e.node.type==="ChainExpression")return e.call(()=>qMt(e,r,i),"expression");let s=(e.parent.type==="ChainExpression"?e.grandparent:e.parent).type==="ExpressionStatement",l=[];function d(Lo){let{originalText:yr}=r,co=qY(yr,T_(Lo));return yr.charAt(co)===")"?co!==!1&&mXe(yr,co+1):y8(Lo,r)}function h(){let{node:Lo}=e;if(Lo.type==="ChainExpression")return e.call(h,"expression");if(Sf(Lo)&&(RY(Lo.callee)||Sf(Lo.callee))){let yr=d(Lo);l.unshift({node:Lo,hasTrailingEmptyLine:yr,printed:[tI(e,[U2(e),i("typeArguments"),oXe(e,r,i)],r),yr?Ia:""]}),e.call(h,"callee")}else RY(Lo)?(l.unshift({node:Lo,needsParens:lB(e,r),printed:tI(e,Dg(Lo)?zMt(e,r,i):UMt(e,r,i),r)}),e.call(h,"object")):Lo.type==="TSNonNullExpression"?(l.unshift({node:Lo,printed:tI(e,"!",r)}),e.call(h,"expression")):l.unshift({node:Lo,printed:i()})}let{node:S}=e;l.unshift({node:S,printed:[U2(e),i("typeArguments"),oXe(e,r,i)]}),S.callee&&e.call(h,"callee");let b=[],A=[l[0]],L=1;for(;L0&&b.push(A);function j(Lo){return/^[A-Z]|^[$_]+$/u.test(Lo)}function ie(Lo){return Lo.length<=r.tabWidth}function te(Lo){let yr=Lo[1][0]?.node.computed;if(Lo[0].length===1){let Cs=Lo[0][0].node;return Cs.type==="ThisExpression"||Cs.type==="Identifier"&&(j(Cs.name)||s&&ie(Cs.name)||yr)}let co=Zf(0,Lo[0],-1).node;return Dg(co)&&co.property.type==="Identifier"&&(j(co.property.name)||yr)}let X=b.length>=2&&!Os(b[1][0].node)&&te(b);function Re(Lo){let yr=Lo.map(co=>co.printed);return Lo.length>0&&Zf(0,Lo,-1).needsParens?["(",...yr,")"]:yr}function Je(Lo){return Lo.length===0?"":da([Ia,ud(Ia,Lo.map(Re))])}let pt=b.map(Re),$e=pt,xt=X?3:2,tr=b.flat(),ht=tr.slice(1,-1).some(Lo=>Os(Lo.node,Fc.Leading))||tr.slice(0,-1).some(Lo=>Os(Lo.node,Fc.Trailing))||b[xt]&&Os(b[xt][0].node,Fc.Leading);if(b.length<=xt&&!ht&&!b.some(Lo=>Zf(0,Lo,-1).hasTrailingEmptyLine))return QLt(e)?$e:Bi($e);let wt=Zf(0,b[X?1:0],-1).node,Ut=!Sf(wt)&&d(wt),hr=[Re(b[0]),X?b.slice(1,2).map(Re):"",Ut?Ia:"",Je(b.slice(X?2:1))],Hi=l.map(({node:Lo})=>Lo).filter(Sf);function un(){let Lo=Zf(0,Zf(0,b,-1),-1).node,yr=Zf(0,pt,-1);return Sf(Lo)&&$2(yr)&&Hi.slice(0,-1).some(co=>co.arguments.some(Fpe))}let xo;return ht||Hi.length>2&&Hi.some(Lo=>!Lo.arguments.every(yr=>L6(yr)))||pt.slice(0,-1).some($2)||un()?xo=Bi(hr):xo=[$2($e)||Ut?U5:"",lV([$e,hr])],zpe({memberChain:!0},xo)}var htn=qMt;function WCe(e,r,i){let{node:s}=e,l=s.type==="NewExpression",d=U2(e),h=AD(s),S=s.type!=="TSImportType"&&s.typeArguments?i("typeArguments"):"",b=h.length===1&&HLt(h[0],r.originalText);if(b||ytn(e)||vtn(e)||KCe(s,e.parent)){let V=[];if(qCe(e,()=>{V.push(i())}),!(b&&V[0].label?.embed))return[l?"new ":"",gLt(e,i),d,S,"(",ud(", ",V),")"]}let A=s.type==="ImportExpression"||s.type==="TSImportType"||s.type==="TSExternalModuleReference";if(!A&&!l&&RY(s.callee)&&!e.call(()=>lB(e,r),"callee",...s.callee.type==="ChainExpression"?["expression"]:[]))return htn(e,r,i);let L=[l?"new ":"",gLt(e,i),d,S,oXe(e,r,i)];return A||Sf(s.callee)?Bi(L):L}function gLt(e,r){let{node:i}=e;return i.type==="ImportExpression"?`import${i.phase?`.${i.phase}`:""}`:i.type==="TSImportType"?"import":i.type==="TSExternalModuleReference"?"require":r("callee")}var gtn=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function ytn(e){let{node:r}=e;if(!(r.type==="ImportExpression"||r.type==="TSImportType"||r.type==="TSExternalModuleReference"||r.type==="CallExpression"&&!r.optional&&hXe(r.callee,gtn)))return!1;let i=AD(r);return i.length===1&&tb(i[0])&&!Os(i[0])}function vtn(e){let{node:r}=e;if(r.type!=="CallExpression"||r.optional||r.callee.type!=="Identifier")return!1;let i=AD(r);return r.callee.name==="require"?(i.length===1&&tb(i[0])||i.length>1)&&!Os(i[0]):r.callee.name==="define"&&e.parent.type==="ExpressionStatement"?i.length===1||i.length===2&&i[0].type==="ArrayExpression"||i.length===3&&tb(i[0])&&i[1].type==="ArrayExpression":!1}function qpe(e,r,i,s,l,d){let h=xtn(e,r,i,s,d),S=d?i(d,{assignmentLayout:h}):"";switch(h){case"break-after-operator":return Bi([Bi(s),l,Bi(da([Bs,S]))]);case"never-break-after-operator":return Bi([Bi(s),l," ",S]);case"fluid":{let b=Symbol("assignment");return Bi([Bi(s),l,Bi(da(Bs),{id:b}),h8,Lpe(S,{groupId:b})])}case"break-lhs":return Bi([s,l," ",Bi(S)]);case"chain":return[Bi(s),l,Bs,S];case"chain-tail":return[Bi(s),l,da([Bs,S])];case"chain-tail-arrow-chain":return[Bi(s),l,S];case"only-left":return s}}function Stn(e,r,i){let{node:s}=e;return qpe(e,r,i,i("left"),[" ",s.operator],"right")}function btn(e,r,i){return qpe(e,r,i,i("id")," =","init")}function xtn(e,r,i,s,l){let{node:d}=e,h=d[l];if(!h)return"only-left";let S=!BCe(h);if(e.match(BCe,JMt,L=>!S||L.type!=="ExpressionStatement"&&L.type!=="VariableDeclaration"))return S?h.type==="ArrowFunctionExpression"&&h.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!S&&BCe(h.right)||j6(r.originalText,h))return"break-after-operator";if(d.type==="ImportAttribute"||h.type==="CallExpression"&&h.callee.name==="require"||r.parser==="json5"||r.parser==="jsonc"||r.parser==="json")return"never-break-after-operator";let b=mYr(s);if(Etn(d)||Dtn(d)||VMt(d)&&b)return"break-lhs";let A=Atn(d,s,r);return e.call(()=>Ttn(e,r,i,A),l)?"break-after-operator":ktn(d)?"break-lhs":!b&&(A||h.type==="TemplateLiteral"||h.type==="TaggedTemplateExpression"||KZr(h)||d8(h)||h.type==="ClassExpression")?"never-break-after-operator":"fluid"}function Ttn(e,r,i,s){let l=e.node;if(B5(l)&&!Mpe(l))return!0;switch(l.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!r.experimentalTernaries&&!Ptn(l))break;return!0;case"ConditionalExpression":{if(!r.experimentalTernaries){let{test:A}=l;return B5(A)&&!Mpe(A)}let{consequent:S,alternate:b}=l;return S.type==="ConditionalExpression"||b.type==="ConditionalExpression"}case"ClassExpression":return Ag(l.decorators)}if(s)return!1;let d=l,h=[];for(;;)if(d.type==="UnaryExpression"||d.type==="AwaitExpression"||d.type==="YieldExpression"&&d.argument!==null)d=d.argument,h.push("argument");else if(d.type==="TSNonNullExpression")d=d.expression,h.push("expression");else break;return!!(tb(d)||e.call(()=>WMt(e,r,i),...h))}function Etn(e){if(JMt(e)){let r=e.left||e.id;return r.type==="ObjectPattern"&&r.properties.length>2&&r.properties.some(i=>oB(i)&&(!i.shorthand||i.value?.type==="AssignmentPattern"))}return!1}function BCe(e){return e.type==="AssignmentExpression"}function JMt(e){return BCe(e)||e.type==="VariableDeclarator"}function ktn(e){let r=Ctn(e);if(Ag(r)){let i=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(r.length>1&&r.some(s=>s[i]||s.default))return!0}return!1}function Ctn(e){if(ZZe(e))return e.typeParameters?.params}function Dtn(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:r}=e.id;if(!r||!r.typeAnnotation)return!1;let i=yLt(r.typeAnnotation);return Ag(i)&&i.length>1&&i.some(s=>Ag(yLt(s))||s.type==="TSConditionalType")}function VMt(e){return e.type==="VariableDeclarator"&&e.init?.type==="ArrowFunctionExpression"}function yLt(e){let r;switch(e.type){case"GenericTypeAnnotation":r=e.typeParameters;break;case"TSTypeReference":r=e.typeArguments;break}return r?.params}function WMt(e,r,i,s=!1){let{node:l}=e,d=()=>WMt(e,r,i,!0);if(l.type==="ChainExpression"||l.type==="TSNonNullExpression")return e.call(d,"expression");if(Sf(l)){if(WCe(e,r,i).label?.memberChain)return!1;let h=AD(l);return!(h.length===0||h.length===1&&bXe(h[0],r))||wtn(l,i)?!1:e.call(d,"callee")}return Dg(l)?e.call(d,"object"):s&&(l.type==="Identifier"||l.type==="ThisExpression")}function Atn(e,r,i){return oB(e)?(r=PXe(r),typeof r=="string"&&LY(r)1)return!0;if(i.length===1){let l=i[0];if(f8(l)||Upe(l)||l.type==="TSTypeLiteral"||l.type==="ObjectTypeAnnotation")return!0}let s=e.typeParameters?"typeParameters":"typeArguments";if($2(r(s)))return!0}return!1}function Itn(e){return(e.typeParameters??e.typeArguments)?.params}function vLt(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!e.typeArguments;default:return!1}}function Ptn(e){return vLt(e.checkType)||vLt(e.extendsType)}var $Ce=new WeakMap;function GMt(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function SLt(e,r){return r.parser==="json"||r.parser==="jsonc"||!tb(e.key)||BY(yk(e.key),r).slice(1,-1)!==e.key.value?!1:!!(Hen(e.key.value)&&!(r.parser==="babel-ts"&&e.type==="ClassProperty"||(r.parser==="typescript"||r.parser==="oxc-ts")&&e.type==="PropertyDefinition")||GMt(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!=="ImportAttribute"&&(r.parser==="babel"||r.parser==="acorn"||r.parser==="oxc"||r.parser==="espree"||r.parser==="meriyah"||r.parser==="__babel_estree"))}function Ntn(e,r){let{key:i}=e.node;return(i.type==="Identifier"||d8(i)&&GMt(zY(yk(i)))&&String(i.value)===zY(yk(i))&&!(r.parser==="typescript"||r.parser==="babel-ts"||r.parser==="oxc-ts"))&&(r.parser==="json"||r.parser==="jsonc"||r.quoteProps==="consistent"&&$Ce.get(e.parent))}function Jpe(e,r,i){let{node:s}=e;if(s.computed)return["[",i("key"),"]"];let{parent:l}=e,{key:d}=s;if(r.quoteProps==="consistent"&&!$Ce.has(l)){let h=e.siblings.some(S=>!S.computed&&tb(S.key)&&!SLt(S,r));$Ce.set(l,h)}if(Ntn(e,r)){let h=BY(JSON.stringify(d.type==="Identifier"?d.name:d.value.toString()),r);return e.call(()=>tI(e,h,r),"key")}return SLt(s,r)&&(r.quoteProps==="as-needed"||r.quoteProps==="consistent"&&!$Ce.get(l))?e.call(()=>tI(e,/^\d/u.test(d.value)?zY(d.value):d.value,r),"key"):i("key")}function qZe(e,r,i){let{node:s}=e;return s.shorthand?i("value"):qpe(e,r,i,Jpe(e,r,i),":","value")}var Otn=({node:e,key:r,parent:i})=>r==="value"&&e.type==="FunctionExpression"&&(i.type==="ObjectMethod"||i.type==="ClassMethod"||i.type==="ClassPrivateMethod"||i.type==="MethodDefinition"||i.type==="TSAbstractMethodDefinition"||i.type==="TSDeclareMethod"||i.type==="Property"&&$pe(i));function HMt(e,r,i,s){if(Otn(e))return RXe(e,r,i);let{node:l}=e,d=!1;if((l.type==="FunctionDeclaration"||l.type==="FunctionExpression")&&s?.expandLastArg){let{parent:L}=e;Sf(L)&&(AD(L).length>1||xT(l).every(V=>V.type==="Identifier"&&!V.typeAnnotation))&&(d=!0)}let h=[DD(e),l.async?"async ":"",`function${l.generator?"*":""} `,l.id?i("id"):""],S=SV(e,r,i,d),b=eDe(e,i),A=WY(l,b);return h.push(i("typeParameters"),Bi([A?Bi(S):S,b]),l.body?" ":"",i("body")),r.semi&&(l.declare||!l.body)&&h.push(";"),h}function aXe(e,r,i){let{node:s}=e,{kind:l}=s,d=s.value||s,h=[];return!l||l==="init"||l==="method"||l==="constructor"?d.async&&h.push("async "):(_V(l==="get"||l==="set"),h.push(l," ")),d.generator&&h.push("*"),h.push(Jpe(e,r,i),s.optional?"?":"",s===d?RXe(e,r,i):i("value")),h}function RXe(e,r,i){let{node:s}=e,l=SV(e,r,i),d=eDe(e,i),h=qen(s),S=WY(s,d),b=[i("typeParameters"),Bi([h?Bi(l,{shouldBreak:!0}):S?Bi(l):l,d])];return s.body?b.push(" ",i("body")):b.push(r.semi?";":""),b}function Ftn(e){let r=xT(e);return r.length===1&&!e.typeParameters&&!Os(e,Fc.Dangling)&&r[0].type==="Identifier"&&!r[0].typeAnnotation&&!Os(r[0])&&!r[0].optional&&!e.predicate&&!e.returnType}function KMt(e,r){if(r.arrowParens==="always")return!1;if(r.arrowParens==="avoid"){let{node:i}=e;return Ftn(i)}return!1}function eDe(e,r){let{node:i}=e,s=[ox(e,r,"returnType")];return i.predicate&&s.push(r("predicate")),s}function QMt(e,r,i){let{node:s}=e,l=[];if(s.argument){let S=i("argument");Mtn(r,s.argument)?S=["(",da([Ia,S]),Ia,")"]:(B5(s.argument)||r.experimentalTernaries&&s.argument.type==="ConditionalExpression"&&(s.argument.consequent.type==="ConditionalExpression"||s.argument.alternate.type==="ConditionalExpression"))&&(S=Bi([op("("),da([Qo,S]),Qo,op(")")])),l.push(" ",S)}let d=Os(s,Fc.Dangling),h=r.semi&&d&&Os(s,Fc.Last|Fc.Line);return h&&l.push(";"),d&&l.push(" ",Cg(e,r)),!h&&r.semi&&l.push(";"),l}function Rtn(e,r,i){return["return",QMt(e,r,i)]}function Ltn(e,r,i){return["throw",QMt(e,r,i)]}function Mtn(e,r){if(j6(e.originalText,r)||Os(r,Fc.Leading,i=>CD(e.originalText,B_(i),T_(i)))&&!eb(r))return!0;if(yXe(r)){let i=r,s;for(;s=WZr(i);)if(i=s,j6(e.originalText,i))return!0}return!1}function jtn(e,r){if(r.semi||XMt(e,r)||ejt(e,r)||YMt(e,r))return!1;let{node:i,key:s,parent:l}=e;return!!(i.type==="ExpressionStatement"&&(s==="body"&&(l.type==="Program"||l.type==="BlockStatement"||l.type==="StaticBlock"||l.type==="TSModuleBlock")||s==="consequent"&&l.type==="SwitchCase")&&e.call(()=>ZMt(e,r),"expression"))}function ZMt(e,r){let{node:i}=e;switch(i.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!KMt(e,r))return!0;break;case"UnaryExpression":{let{prefix:s,operator:l}=i;if(s&&(l==="+"||l==="-"))return!0;break}case"BindExpression":if(!i.object)return!0;break;case"Literal":if(i.regex)return!0;break;default:if(eb(i))return!0}return lB(e,r)?!0:yXe(i)?e.call(()=>ZMt(e,r),...zLt(i)):!1}var LXe=({node:e,parent:r})=>e.type==="ExpressionStatement"&&r.type==="Program"&&r.body.length===1&&(Array.isArray(r.directives)&&r.directives.length===0||!r.directives);function XMt(e,r){return(r.parentParser==="markdown"||r.parentParser==="mdx")&&LXe(e)&&eb(e.node.expression)}function YMt(e,r){return r.__isHtmlInlineEventHandler&&LXe(e)}function ejt(e,r){return(r.parser==="__vue_event_binding"||r.parser==="__vue_ts_event_binding")&&LXe(e)}var Btn=class extends Error{name="UnexpectedNodeError";constructor(e,r,i="type"){super(`Unexpected ${r} node ${i}: ${JSON.stringify(e[i])}.`),this.node=e}},GY=Btn;function $tn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Utn=class{#t;constructor(e){this.#t=new Set(e)}getLeadingWhitespaceCount(e){let r=this.#t,i=0;for(let s=0;s=0&&r.has(e.charAt(s));s--)i++;return i}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return this.#t.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#t.has(Zf(0,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let i=`[${$tn([...this.#t].join(""))}]+`,s=new RegExp(r?`(${i})`:i,"u");return e.split(s)}hasWhitespaceCharacter(e){let r=this.#t;return Array.prototype.some.call(e,i=>r.has(i))}hasNonWhitespaceCharacter(e){let r=this.#t;return Array.prototype.some.call(e,i=>!r.has(i))}isWhitespaceOnly(e){let r=this.#t;return Array.prototype.every.call(e,i=>r.has(i))}#r(e){let r=Number.POSITIVE_INFINITY;for(let i of e.split(` -`)){if(i.length===0)continue;let s=this.getLeadingWhitespaceCount(i);if(s===0)return 0;i.length!==s&&si.slice(r)).join(` -`)}},ztn=Utn,UCe=new ztn(` -\r `),JZe=e=>e===""||e===Bs||e===Ia||e===Qo;function qtn(e,r,i){let{node:s}=e;if(s.type==="JSXElement"&&orn(s))return[i("openingElement"),i("closingElement")];let l=s.type==="JSXElement"?i("openingElement"):i("openingFragment"),d=s.type==="JSXElement"?i("closingElement"):i("closingFragment");if(s.children.length===1&&s.children[0].type==="JSXExpressionContainer"&&(s.children[0].expression.type==="TemplateLiteral"||s.children[0].expression.type==="TaggedTemplateExpression"))return[l,...e.map(i,"children"),d];s.children=s.children.map($e=>arn($e)?{type:"JSXText",value:" ",raw:" "}:$e);let h=s.children.some(eb),S=s.children.filter($e=>$e.type==="JSXExpressionContainer").length>1,b=s.type==="JSXElement"&&s.openingElement.attributes.length>1,A=$2(l)||h||b||S,L=e.parent.rootMarker==="mdx",V=r.singleQuote?"{' '}":'{" "}',j=L?Bs:op([V,Qo]," "),ie=s.openingElement?.name?.name==="fbt",te=Jtn(e,r,i,j,ie),X=s.children.some($e=>jpe($e));for(let $e=te.length-2;$e>=0;$e--){let xt=te[$e]===""&&te[$e+1]==="",tr=te[$e]===Ia&&te[$e+1]===""&&te[$e+2]===Ia,ht=(te[$e]===Qo||te[$e]===Ia)&&te[$e+1]===""&&te[$e+2]===j,wt=te[$e]===j&&te[$e+1]===""&&(te[$e+2]===Qo||te[$e+2]===Ia),Ut=te[$e]===j&&te[$e+1]===""&&te[$e+2]===j,hr=te[$e]===Qo&&te[$e+1]===""&&te[$e+2]===Ia||te[$e]===Ia&&te[$e+1]===""&&te[$e+2]===Qo;tr&&X||xt||ht||Ut||hr?te.splice($e,2):wt&&te.splice($e+1,2)}for(;te.length>0&&JZe(Zf(0,te,-1));)te.pop();for(;te.length>1&&JZe(te[0])&&JZe(te[1]);)te.shift(),te.shift();let Re=[""];for(let[$e,xt]of te.entries()){if(xt===j){if($e===1&&hYr(te[$e-1])){if(te.length===2){Re.push([Re.pop(),V]);continue}Re.push([V,Ia],"");continue}else if($e===te.length-1){Re.push([Re.pop(),V]);continue}else if(te[$e-1]===""&&te[$e-2]===Ia){Re.push([Re.pop(),V]);continue}}$e%2===0?Re.push([Re.pop(),xt]):Re.push(xt,""),$2(xt)&&(A=!0)}let Je=X?hMt(Re):Bi(Re,{shouldBreak:!0});if(r.cursorNode?.type==="JSXText"&&s.children.includes(r.cursorNode)?Je=[LCe,Je,LCe]:r.nodeBeforeCursor?.type==="JSXText"&&s.children.includes(r.nodeBeforeCursor)?Je=[LCe,Je]:r.nodeAfterCursor?.type==="JSXText"&&s.children.includes(r.nodeAfterCursor)&&(Je=[Je,LCe]),L)return Je;let pt=Bi([l,da([Ia,Je]),Ia,d]);return A?pt:lV([Bi([l,...te,d]),pt])}function Jtn(e,r,i,s,l){let d="",h=[d];function S(A){d=A,h.push([h.pop(),A])}function b(A){A!==""&&(d=A,h.push(A,""))}return e.each(({node:A,next:L})=>{if(A.type==="JSXText"){let V=yk(A);if(jpe(A)){let j=UCe.split(V,!0);j[0]===""&&(j.shift(),/\n/u.test(j[0])?b(xLt(l,j[1],A,L)):b(s),j.shift());let ie;if(Zf(0,j,-1)===""&&(j.pop(),ie=j.pop()),j.length===0)return;for(let[te,X]of j.entries())te%2===1?b(Bs):S(X);ie!==void 0?/\n/u.test(ie)?b(xLt(l,d,A,L)):b(s):b(bLt(l,d,A,L))}else/\n/u.test(V)?V.match(/\n/gu).length>1&&b(Ia):b(s)}else{let V=i();if(S(V),L&&jpe(L)){let j=UCe.trim(yk(L)),[ie]=UCe.split(j);b(bLt(l,ie,A,L))}else b(Ia)}},"children"),h}function bLt(e,r,i,s){return e?"":i.type==="JSXElement"&&!i.closingElement||s?.type==="JSXElement"&&!s.closingElement?r.length===1?Qo:Ia:Qo}function xLt(e,r,i,s){return e?Ia:r.length===1?i.type==="JSXElement"&&!i.closingElement||s?.type==="JSXElement"&&!s.closingElement?Ia:Qo:Ia}var Vtn=Tp(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function Wtn(e,r,i){let{parent:s}=e;if(Vtn(s))return r;let l=Gtn(e),d=lB(e,i);return Bi([d?"":op("("),da([Qo,r]),Qo,d?"":op(")")],{shouldBreak:l})}function Gtn(e){return e.match(void 0,(r,i)=>i==="body"&&r.type==="ArrowFunctionExpression",(r,i)=>i==="arguments"&&Sf(r))&&(e.match(void 0,void 0,void 0,(r,i)=>i==="expression"&&r.type==="JSXExpressionContainer")||e.match(void 0,void 0,void 0,(r,i)=>i==="expression"&&r.type==="ChainExpression",(r,i)=>i==="expression"&&r.type==="JSXExpressionContainer"))}function Htn(e,r,i){let{node:s}=e,l=[i("name")];if(s.value){let d;if(tb(s.value)){let h=yk(s.value),S=YS(0,YS(0,h.slice(1,-1),"'","'"),""",'"'),b=LLt(S,r.jsxSingleQuote);S=b==='"'?YS(0,S,'"',"""):YS(0,S,"'","'"),d=e.call(()=>tI(e,pV(b+S+b),r),"value")}else d=i("value");l.push("=",d)}return l}function Ktn(e,r,i){let{node:s}=e,l=(d,h)=>d.type==="JSXEmptyExpression"||!Os(d)&&(ax(d)||B6(d)||d.type==="ArrowFunctionExpression"||d.type==="AwaitExpression"&&(l(d.argument,d)||d.argument.type==="JSXElement")||Sf(d)||d.type==="ChainExpression"&&Sf(d.expression)||d.type==="FunctionExpression"||d.type==="TemplateLiteral"||d.type==="TaggedTemplateExpression"||d.type==="DoExpression"||eb(h)&&(d.type==="ConditionalExpression"||B5(d)));return l(s.expression,e.parent)?Bi(["{",i("expression"),h8,"}"]):Bi(["{",da([Qo,i("expression")]),Qo,h8,"}"])}function Qtn(e,r,i){let{node:s}=e,l=Os(s.name)||Os(s.typeArguments);if(s.selfClosing&&s.attributes.length===0&&!l)return["<",i("name"),i("typeArguments")," />"];if(s.attributes?.length===1&&tb(s.attributes[0].value)&&!s.attributes[0].value.value.includes(` -`)&&!l&&!Os(s.attributes[0]))return Bi(["<",i("name"),i("typeArguments")," ",...e.map(i,"attributes"),s.selfClosing?" />":">"]);let d=s.attributes?.some(S=>tb(S.value)&&S.value.value.includes(` -`)),h=r.singleAttributePerLine&&s.attributes.length>1?Ia:Bs;return Bi(["<",i("name"),i("typeArguments"),da(e.map(()=>[h,i()],"attributes")),...Ztn(s,r,l)],{shouldBreak:d})}function Ztn(e,r,i){return e.selfClosing?[Bs,"/>"]:Xtn(e,r,i)?[">"]:[Qo,">"]}function Xtn(e,r,i){let s=e.attributes.length>0&&Os(Zf(0,e.attributes,-1),Fc.Trailing);return e.attributes.length===0&&!i||(r.bracketSameLine||r.jsxBracketSameLine)&&(!i||e.attributes.length>0)&&!s}function Ytn(e,r,i){let{node:s}=e,l=[""),l}function ern(e,r){let{node:i}=e,s=Os(i),l=Os(i,Fc.Line),d=i.type==="JSXOpeningFragment";return[d?"<":""]}function trn(e,r,i){let s=tI(e,qtn(e,r,i),r);return Wtn(e,s,r)}function rrn(e,r){let{node:i}=e,s=Os(i,Fc.Line);return[Cg(e,r,{indent:s}),s?Ia:""]}function nrn(e,r,i){let{node:s}=e;return["{",e.call(({node:l})=>{let d=["...",i()];return Os(l)?[da([Qo,tI(e,d,r)]),Qo]:d},s.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function irn(e,r,i){let{node:s}=e;if(s.type.startsWith("JSX"))switch(s.type){case"JSXAttribute":return Htn(e,r,i);case"JSXIdentifier":return s.name;case"JSXNamespacedName":return ud(":",[i("namespace"),i("name")]);case"JSXMemberExpression":return ud(".",[i("object"),i("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return nrn(e,r,i);case"JSXExpressionContainer":return Ktn(e,r,i);case"JSXFragment":case"JSXElement":return trn(e,r,i);case"JSXOpeningElement":return Qtn(e,r,i);case"JSXClosingElement":return Ytn(e,r,i);case"JSXOpeningFragment":case"JSXClosingFragment":return ern(e,r);case"JSXEmptyExpression":return rrn(e,r);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new GY(s,"JSX")}}function orn(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let r=e.children[0];return r.type==="JSXText"&&!jpe(r)}function jpe(e){return e.type==="JSXText"&&(UCe.hasNonWhitespaceCharacter(yk(e))||!/\n/u.test(yk(e)))}function arn(e){return e.type==="JSXExpressionContainer"&&tb(e.expression)&&e.expression.value===" "&&!Os(e.expression)}function srn(e){let{node:r,parent:i}=e;if(!eb(r)||!eb(i))return!1;let{index:s,siblings:l}=e,d;for(let h=s;h>0;h--){let S=l[h-1];if(!(S.type==="JSXText"&&!jpe(S))){d=S;break}}return d?.type==="JSXExpressionContainer"&&d.expression.type==="JSXEmptyExpression"&&QCe(d.expression)}function crn(e){return QCe(e.node)||srn(e)}var MXe=crn;function lrn(e,r,i){let{node:s}=e;if(s.type.startsWith("NG"))switch(s.type){case"NGRoot":return i("node");case"NGPipeExpression":return OMt(e,r,i);case"NGChainedExpression":return Bi(ud([";",Bs],e.map(()=>_rn(e)?i():["(",i(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":TLt(e)?" ":[";",Bs],i()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(s.name)?s.name:JSON.stringify(s.name);case"NGMicrosyntaxExpression":return[i("expression"),s.alias===null?"":[" as ",i("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:l,parent:d}=e,h=TLt(e)||urn(e)||(l===1&&(s.key.name==="then"||s.key.name==="else"||s.key.name==="as")||l===2&&(s.key.name==="else"&&d.body[l-1].type==="NGMicrosyntaxKeyedExpression"&&d.body[l-1].key.name==="then"||s.key.name==="track"))&&d.body[0].type==="NGMicrosyntaxExpression";return[i("key"),h?" ":": ",i("expression")]}case"NGMicrosyntaxLet":return["let ",i("key"),s.value===null?"":[" = ",i("value")]];case"NGMicrosyntaxAs":return[i("key")," as ",i("alias")];default:throw new GY(s,"Angular")}}function TLt({node:e,index:r}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&r===1}function urn(e){let{node:r}=e;return e.parent.body[1].key.name==="of"&&r.type==="NGMicrosyntaxKeyedExpression"&&r.key.name==="track"&&r.key.type==="NGMicrosyntaxKey"}var prn=Tp(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function _rn({node:e}){return KZe(e,prn)}function tjt(e,r,i){let{node:s}=e;return Bi([ud(Bs,e.map(i,"decorators")),rjt(s,r)?Ia:Bs])}function drn(e,r,i){return njt(e.node)?[ud(Ia,e.map(i,"declaration","decorators")),Ia]:""}function frn(e,r,i){let{node:s,parent:l}=e,{decorators:d}=s;if(!Ag(d)||njt(l)||MXe(e))return"";let h=s.type==="ClassExpression"||s.type==="ClassDeclaration"||rjt(s,r);return[e.key==="declaration"&&GZr(l)?Ia:h?U5:"",ud(Bs,e.map(i,"decorators")),Bs]}function rjt(e,r){return e.decorators.some(i=>gk(r.originalText,T_(i)))}function njt(e){if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let r=e.declaration?.decorators;return Ag(r)&&HCe(e,r[0])}var VZe=new WeakMap;function ijt(e){return VZe.has(e)||VZe.set(e,e.type==="ConditionalExpression"&&!B2(e,r=>r.type==="ObjectExpression")),VZe.get(e)}var mrn=e=>e.type==="SequenceExpression";function hrn(e,r,i,s={}){let l=[],d,h=[],S=!1,b=!s.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",A;(function Je(){let{node:pt}=e,$e=grn(e,r,i,s);if(l.length===0)l.push($e);else{let{leading:xt,trailing:tr}=ZCe(e,r);l.push([xt,$e]),h.unshift(tr)}b&&(S||(S=pt.returnType&&xT(pt).length>0||pt.typeParameters||xT(pt).some(xt=>xt.type!=="Identifier"))),!b||pt.body.type!=="ArrowFunctionExpression"?(d=i("body",s),A=pt.body):e.call(Je,"body")})();let L=!j6(r.originalText,A)&&(mrn(A)||yrn(A,d,r)||!S&&ijt(A)),V=e.key==="callee"&&UY(e.parent),j=Symbol("arrow-chain"),ie=vrn(e,s,{signatureDocs:l,shouldBreak:S}),te=!1,X=!1,Re=!1;return b&&(V||s.assignmentLayout)&&(X=!0,Re=!Os(e.node,Fc.Leading&Fc.Line),te=s.assignmentLayout==="chain-tail-arrow-chain"||V&&!L),d=Srn(e,r,s,{bodyDoc:d,bodyComments:h,functionBody:A,shouldPutBodyOnSameLine:L}),Bi([Bi(X?da([Re?Qo:"",ie]):ie,{shouldBreak:te,id:j})," =>",b?Lpe(d,{groupId:j}):Bi(d),b&&V?op(Qo,"",{groupId:j}):""])}function grn(e,r,i,s){let{node:l}=e,d=[];if(l.async&&d.push("async "),KMt(e,r))d.push(i(["params",0]));else{let S=s.expandLastArg||s.expandFirstArg,b=eDe(e,i);if(S){if($2(b))throw new VCe;b=Bi(JCe(b))}d.push(Bi([SV(e,r,i,S,!0),b]))}let h=Cg(e,r,{filter(S){let b=qY(r.originalText,T_(S));return b!==!1&&r.originalText.slice(b,b+2)==="=>"}});return h&&d.push(" ",h),d}function yrn(e,r,i){return ax(e)||B6(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||eb(e)||r.label?.hug!==!1&&(r.label?.embed||HLt(e,i.originalText))}function vrn(e,r,{signatureDocs:i,shouldBreak:s}){if(i.length===1)return i[0];let{parent:l,key:d}=e;return d!=="callee"&&UY(l)||B5(l)?Bi([i[0]," =>",da([Bs,ud([" =>",Bs],i.slice(1))])],{shouldBreak:s}):d==="callee"&&UY(l)||r.assignmentLayout?Bi(ud([" =>",Bs],i),{shouldBreak:s}):Bi(da(ud([" =>",Bs],i)),{shouldBreak:s})}function Srn(e,r,i,{bodyDoc:s,bodyComments:l,functionBody:d,shouldPutBodyOnSameLine:h}){let{node:S,parent:b}=e,A=i.expandLastArg&&g8(r,"all")?op(","):"",L=(i.expandLastArg||b.type==="JSXExpressionContainer")&&!Os(S)?Qo:"";return h&&ijt(d)?[" ",Bi([op("","("),da([Qo,s]),op("",")"),A,L]),l]:h?[" ",s,l]:[da([Bs,s,l]),A,L]}var brn=Array.prototype.findLast??function(e){for(let r=this.length-1;r>=0;r--){let i=this[r];if(e(i,r,this))return i}},xrn=_Xe("findLast",function(){if(Array.isArray(this))return brn}),Trn=xrn;function sXe(e,r,i,s){let{node:l}=e,d=[],h=Trn(0,l[s],S=>S.type!=="EmptyStatement");return e.each(({node:S})=>{S.type!=="EmptyStatement"&&(d.push(i()),S!==h&&(d.push(Ia),y8(S,r)&&d.push(Ia)))},s),d}function ojt(e,r,i){let s=Ern(e,r,i),{node:l,parent:d}=e;if(l.type==="Program"&&d?.type!=="ModuleExpression")return s?[s,Ia]:"";let h=[];if(l.type==="StaticBlock"&&h.push("static "),h.push("{"),s)h.push(da([Ia,s]),Ia);else{let S=e.grandparent;d.type==="ArrowFunctionExpression"||d.type==="FunctionExpression"||d.type==="FunctionDeclaration"||d.type==="ComponentDeclaration"||d.type==="HookDeclaration"||d.type==="ObjectMethod"||d.type==="ClassMethod"||d.type==="ClassPrivateMethod"||d.type==="ForStatement"||d.type==="WhileStatement"||d.type==="DoWhileStatement"||d.type==="DoExpression"||d.type==="ModuleExpression"||d.type==="CatchClause"&&!S.finalizer||d.type==="TSModuleDeclaration"||d.type==="MatchStatementCase"||l.type==="StaticBlock"||h.push(Ia)}return h.push("}"),h}function Ern(e,r,i){let{node:s}=e,l=Ag(s.directives),d=s.body.some(b=>b.type!=="EmptyStatement"),h=Os(s,Fc.Dangling);if(!l&&!d&&!h)return"";let S=[];return l&&(S.push(sXe(e,r,i,"directives")),(d||h)&&(S.push(Ia),y8(Zf(0,s.directives,-1),r)&&S.push(Ia))),d&&S.push(sXe(e,r,i,"body")),h&&S.push(Cg(e,r)),S}function krn(e){let r=new WeakMap;return function(i){return r.has(i)||r.set(i,Symbol(e)),r.get(i)}}var Crn=krn;function jXe(e,r,i){let{node:s}=e,l=[],d=s.type==="ObjectTypeAnnotation",h=!ajt(e),S=h?Bs:Ia,b=Os(s,Fc.Dangling),[A,L]=d&&s.exact?["{|","|}"]:"{}",V;if(Drn(e,({node:j,next:ie,isLast:te})=>{if(V??(V=j),l.push(i()),h&&d){let{parent:X}=e;X.inexact||!te?l.push(","):g8(r)&&l.push(op(","))}!h&&(Arn({node:j,next:ie},r)||cjt({node:j,next:ie},r))&&l.push(";"),te||(l.push(S),y8(j,r)&&l.push(Ia))}),b&&l.push(Cg(e,r)),s.type==="ObjectTypeAnnotation"&&s.inexact){let j;Os(s,Fc.Dangling)?j=[Os(s,Fc.Line)||gk(r.originalText,T_(Zf(0,uV(s),-1)))?Ia:Bs,"..."]:j=[V?Bs:"","..."],l.push(j)}if(h){let j=b||r.objectWrap==="preserve"&&V&&CD(r.originalText,B_(s),B_(V)),ie;if(l.length===0)ie=A+L;else{let te=r.bracketSpacing?Bs:Qo;ie=[A,da([te,...l]),te,L]}return e.match(void 0,(te,X)=>X==="typeAnnotation",(te,X)=>X==="typeAnnotation",Ppe)||e.match(void 0,(te,X)=>te.type==="FunctionTypeParam"&&X==="typeAnnotation",Ppe)?ie:Bi(ie,{shouldBreak:j})}return[A,l.length>0?[da([Ia,l]),Ia]:"",L]}function ajt(e){let{node:r}=e;if(r.type==="ObjectTypeAnnotation"){let{key:i,parent:s}=e;return i==="body"&&(s.type==="InterfaceDeclaration"||s.type==="DeclareInterface"||s.type==="DeclareClass")}return r.type==="ClassBody"||r.type==="TSInterfaceBody"}function Drn(e,r){let{node:i}=e;if(i.type==="ClassBody"||i.type==="TSInterfaceBody"){e.each(r,"body");return}if(i.type==="TSTypeLiteral"){e.each(r,"members");return}if(i.type==="ObjectTypeAnnotation"){let s=["properties","indexers","callProperties","internalSlots"].flatMap(l=>e.map(({node:d,index:h})=>({node:d,loc:B_(d),selector:[l,h]}),l)).sort((l,d)=>l.loc-d.loc);for(let[l,{node:d,selector:h}]of s.entries())e.call(()=>r({node:d,next:s[l+1]?.node,isLast:l===s.length-1}),...h)}}function j5(e,r){let{parent:i}=e;return e.callParent(ajt)?r.semi||i.type==="ObjectTypeAnnotation"?";":"":i.type==="TSTypeLiteral"?e.isLast?r.semi?op(";"):"":r.semi||cjt({node:e.node,next:e.next},r)?";":op("",";"):""}var ELt=Tp(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),sjt=e=>{if(e.computed||e.typeAnnotation)return!1;let{type:r,name:i}=e.key;return r==="Identifier"&&(i==="static"||i==="get"||i==="set")};function Arn({node:e,next:r},i){if(i.semi||!ELt(e))return!1;if(!e.value&&sjt(e))return!0;if(!r||r.static||r.accessibility||r.readonly)return!1;if(!r.computed){let s=r.key?.name;if(s==="in"||s==="instanceof")return!0}if(ELt(r)&&r.variance&&!r.static&&!r.declare)return!0;switch(r.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return r.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((r.value?r.value.async:r.async)||r.kind==="get"||r.kind==="set")return!1;let s=r.value?r.value.generator:r.generator;return!!(r.computed||s)}case"TSIndexSignature":return!0}return!1}var wrn=Tp(["TSPropertySignature"]);function cjt({node:e,next:r},i){return i.semi||!wrn(e)?!1:sjt(e)?!0:r?r.type==="TSCallSignatureDeclaration":!1}var Irn=Crn("heritageGroup"),Prn=Tp(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function BXe(e,r,i){let{node:s}=e,l=Prn(s),d=[DD(e),XCe(e),l?"interface":"class"],h=ujt(e),S=[],b=[];if(s.type!=="InterfaceTypeAnnotation"){s.id&&S.push(" ");for(let L of["id","typeParameters"])if(s[L]){let{leading:V,trailing:j}=e.call(()=>ZCe(e,r),L);S.push(V,i(L),da(j))}}if(s.superClass){let L=[Frn(e,r,i),i(s.superTypeArguments?"superTypeArguments":"superTypeParameters")],V=e.call(()=>["extends ",tI(e,L,r)],"superClass");h?b.push(Bs,Bi(V)):b.push(" ",V)}else b.push(GZe(e,r,i,"extends"));b.push(GZe(e,r,i,"mixins"),GZe(e,r,i,"implements"));let A;return h?(A=Irn(s),d.push(Bi([...S,da(b)],{id:A}))):d.push(...S,...b),!l&&h&&Nrn(s.body)?d.push(op(Ia," ",{groupId:A})):d.push(" "),d.push(i("body")),d}function Nrn(e){return e.type==="ObjectTypeAnnotation"?["properties","indexers","callProperties","internalSlots"].some(r=>Ag(e[r])):Ag(e.body)}function ljt(e){let r=e.superClass?1:0;for(let i of["extends","mixins","implements"])if(Array.isArray(e[i])&&(r+=e[i].length),r>1)return!0;return r>1}function Orn(e){let{node:r}=e;if(Os(r.id,Fc.Trailing)||Os(r.typeParameters,Fc.Trailing)||Os(r.superClass)||ljt(r))return!0;if(r.superClass)return e.parent.type==="AssignmentExpression"?!1:!(r.superTypeArguments??r.superTypeParameters)&&Dg(r.superClass);let i=r.extends?.[0]??r.mixins?.[0]??r.implements?.[0];return i?i.type==="InterfaceExtends"&&i.id.type==="QualifiedTypeIdentifier"&&!i.typeParameters||(i.type==="TSClassImplements"||i.type==="TSInterfaceHeritage")&&Dg(i.expression)&&!i.typeArguments:!1}var WZe=new WeakMap;function ujt(e){let{node:r}=e;return WZe.has(r)||WZe.set(r,Orn(e)),WZe.get(r)}function GZe(e,r,i,s){let{node:l}=e;if(!Ag(l[s]))return"";let d=Cg(e,r,{marker:s}),h=ud([",",Bs],e.map(i,s));if(!ljt(l)){let S=[`${s} `,d,h];return ujt(e)?[Bs,Bi(S)]:[" ",S]}return[Bs,d,d&&Ia,s,Bi(da([Bs,h]))]}function Frn(e,r,i){let s=i("superClass"),{parent:l}=e;return l.type==="AssignmentExpression"?Bi(op(["(",da([Qo,s]),Qo,")"],s)):s}function pjt(e,r,i){let{node:s}=e,l=[];return Ag(s.decorators)&&l.push(tjt(e,r,i)),l.push(YCe(s)),s.static&&l.push("static "),l.push(XCe(e)),s.override&&l.push("override "),l.push(aXe(e,r,i)),l}function _jt(e,r,i){let{node:s}=e,l=[];Ag(s.decorators)&&l.push(tjt(e,r,i)),l.push(DD(e),YCe(s)),s.static&&l.push("static "),l.push(XCe(e)),s.override&&l.push("override "),s.readonly&&l.push("readonly "),s.variance&&l.push(i("variance")),(s.type==="ClassAccessorProperty"||s.type==="AccessorProperty"||s.type==="TSAbstractAccessorProperty")&&l.push("accessor "),l.push(Jpe(e,r,i),U2(e),NMt(e),ox(e,i));let d=s.type==="TSAbstractPropertyDefinition"||s.type==="TSAbstractAccessorProperty";return[qpe(e,r,i,l," =",d?void 0:"value"),r.semi?";":""]}var Rrn=Tp(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function djt(e){return Rrn(e)?djt(e.expression):e}var Lrn=Tp(["FunctionExpression","ArrowFunctionExpression"]);function Mrn(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function jrn(e,r){if(ejt(e,r)){let i=djt(e.node.expression);return Lrn(i)||Mrn(i)}return!(!r.semi||XMt(e,r)||YMt(e,r))}function Brn(e,r,i){return[i("expression"),jrn(e,r)?";":""]}function $rn(e,r,i){if(r.__isVueBindings||r.__isVueForBindingLeft){let s=e.map(i,"program","body",0,"params");if(s.length===1)return s[0];let l=ud([",",Bs],s);return r.__isVueForBindingLeft?["(",da([Qo,Bi(l)]),Qo,")"]:l}if(r.__isEmbeddedTypescriptGenericParameters){let s=e.map(i,"program","body",0,"typeParameters","params");return ud([",",Bs],s)}}function Urn(e,r){let{node:i}=e;switch(i.type){case"RegExpLiteral":return kLt(i);case"BigIntLiteral":return cXe(i.extra.raw);case"NumericLiteral":return zY(i.extra.raw);case"StringLiteral":return pV(BY(i.extra.raw,r));case"NullLiteral":return"null";case"BooleanLiteral":return String(i.value);case"DirectiveLiteral":return CLt(i.extra.raw,r);case"Literal":{if(i.regex)return kLt(i.regex);if(i.bigint)return cXe(i.raw);let{value:s}=i;return typeof s=="number"?zY(i.raw):typeof s=="string"?zrn(e)?CLt(i.raw,r):pV(BY(i.raw,r)):String(s)}}}function zrn(e){if(e.key!=="expression")return;let{parent:r}=e;return r.type==="ExpressionStatement"&&typeof r.directive=="string"}function cXe(e){return e.toLowerCase()}function kLt({pattern:e,flags:r}){return r=[...r].sort().join(""),`/${e}/${r}`}var qrn="use strict";function CLt(e,r){let i=e.slice(1,-1);if(i===qrn||!(i.includes('"')||i.includes("'"))){let s=r.singleQuote?"'":'"';return s+i+s}return e}function Jrn(e,r,i){let s=e.originalText.slice(r,i);for(let l of e[Symbol.for("comments")]){let d=B_(l);if(d>i)break;let h=T_(l);if(hRe.value&&(Re.value.type==="ObjectPattern"||Re.value.type==="ArrayPattern"))||s.type!=="ObjectPattern"&&r.objectWrap==="preserve"&&L.length>0&&Wrn(s,L[0],r),j=[],ie=e.map(({node:Re})=>{let Je=[...j,Bi(i())];return j=[",",Bs],y8(Re,r)&&j.push(Ia),Je},A);if(b){let Re;if(Os(s,Fc.Dangling)){let Je=Os(s,Fc.Line);Re=[Cg(e,r),Je||gk(r.originalText,T_(Zf(0,uV(s),-1)))?Ia:Bs,"..."]}else Re=["..."];ie.push([...j,...Re])}let te=!(b||Zf(0,L,-1)?.type==="RestElement"),X;if(ie.length===0){if(!Os(s,Fc.Dangling))return["{}",ox(e,i)];X=Bi(["{",Cg(e,r,{indent:!0}),Qo,"}",U2(e),ox(e,i)])}else{let Re=r.bracketSpacing?Bs:Qo;X=["{",da([Re,...ie]),op(te&&g8(r)?",":""),Re,"}",U2(e),ox(e,i)]}return e.match(Re=>Re.type==="ObjectPattern"&&!Ag(Re.decorators),Ppe)||nB(s)&&(e.match(void 0,(Re,Je)=>Je==="typeAnnotation",(Re,Je)=>Je==="typeAnnotation",Ppe)||e.match(void 0,(Re,Je)=>Re.type==="FunctionTypeParam"&&Je==="typeAnnotation",Ppe))||!V&&e.match(Re=>Re.type==="ObjectPattern",Re=>Re.type==="AssignmentExpression"||Re.type==="VariableDeclarator")?X:Bi(X,{shouldBreak:V})}function Wrn(e,r,i){let s=i.originalText,l=B_(e),d=B_(r);if(fjt(e)){let h=B_(e),S=tDe(i,h,d);l=h+S.lastIndexOf("{")}return CD(s,l,d)}function Grn(e,r,i){let{node:s}=e;return["import",s.phase?` ${s.phase}`:"",gjt(s),vjt(e,r,i),yjt(e,r,i),bjt(e,r,i),r.semi?";":""]}var mjt=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function hjt(e,r,i){let{node:s}=e,l=[drn(e,r,i),DD(e),"export",mjt(s)?" default":""],{declaration:d,exported:h}=s;return Os(s,Fc.Dangling)&&(l.push(" ",Cg(e,r)),KLt(s)&&l.push(Ia)),d?l.push(" ",i("declaration")):(l.push(Qrn(s)),s.type==="ExportAllDeclaration"||s.type==="DeclareExportAllDeclaration"?(l.push(" *"),h&&l.push(" as ",i("exported"))):l.push(vjt(e,r,i)),l.push(yjt(e,r,i),bjt(e,r,i))),l.push(Krn(s,r)),l}var Hrn=Tp(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function Krn(e,r){return r.semi&&(!e.declaration||mjt(e)&&!Hrn(e.declaration))?";":""}function UXe(e,r=!0){return e&&e!=="value"?`${r?" ":""}${e}${r?"":" "}`:""}function gjt(e,r){return UXe(e.importKind,r)}function Qrn(e){return UXe(e.exportKind)}function yjt(e,r,i){let{node:s}=e;return s.source?[Sjt(s,r)?" from":""," ",i("source")]:""}function vjt(e,r,i){let{node:s}=e;if(!Sjt(s,r))return"";let l=[" "];if(Ag(s.specifiers)){let d=[],h=[];e.each(()=>{let S=e.node.type;if(S==="ExportNamespaceSpecifier"||S==="ExportDefaultSpecifier"||S==="ImportNamespaceSpecifier"||S==="ImportDefaultSpecifier")d.push(i());else if(S==="ExportSpecifier"||S==="ImportSpecifier")h.push(i());else throw new GY(s,"specifier")},"specifiers"),l.push(ud(", ",d)),h.length>0&&(d.length>0&&l.push(", "),h.length>1||d.length>0||s.specifiers.some(S=>Os(S))?l.push(Bi(["{",da([r.bracketSpacing?Bs:Qo,ud([",",Bs],h)]),op(g8(r)?",":""),r.bracketSpacing?Bs:Qo,"}"])):l.push(["{",r.bracketSpacing?" ":"",...h,r.bracketSpacing?" ":"","}"]))}else l.push("{}");return l}function Sjt(e,r){return e.type!=="ImportDeclaration"||Ag(e.specifiers)||e.importKind==="type"?!0:tDe(r,B_(e),B_(e.source)).trimEnd().endsWith("from")}function Zrn(e,r){if(e.extra?.deprecatedAssertSyntax)return"assert";let i=tDe(r,T_(e.source),e.attributes?.[0]?B_(e.attributes[0]):T_(e)).trimStart();return i.startsWith("assert")?"assert":i.startsWith("with")||Ag(e.attributes)?"with":void 0}var Xrn=e=>{let{attributes:r}=e;if(r.length!==1)return!1;let[i]=r,{type:s,key:l,value:d}=i;return s==="ImportAttribute"&&(l.type==="Identifier"&&l.name==="type"||tb(l)&&l.value==="type")&&tb(d)&&!Os(i)&&!Os(l)&&!Os(d)};function bjt(e,r,i){let{node:s}=e;if(!s.source)return"";let l=Zrn(s,r);if(!l)return"";let d=$Xe(e,r,i);return Xrn(s)&&(d=JCe(d)),[` ${l} `,d]}function Yrn(e,r,i){let{node:s}=e,{type:l}=s,d=l.startsWith("Import"),h=d?"imported":"local",S=d?"local":"exported",b=s[h],A=s[S],L="",V="";return l==="ExportNamespaceSpecifier"||l==="ImportNamespaceSpecifier"?L="*":b&&(L=i(h)),A&&!enn(s)&&(V=i(S)),[UXe(l==="ImportSpecifier"?s.importKind:s.exportKind,!1),L,L&&V?" as ":"",V]}function enn(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:r,[e.type==="ImportSpecifier"?"imported":"exported"]:i}=e;return r.type!==i.type||!PZr(r,i)?!1:tb(r)?r.value===i.value&&yk(r)===yk(i):r.type==="Identifier"?r.name===i.name:!1}function lXe(e,r){return["...",r("argument"),ox(e,r)]}function tnn(e){let r=[e];for(let i=0;ij[Ut]===s),te=j.type===s.type&&!ie,X,Re,Je=0;do Re=X||s,X=e.getParentNode(Je),Je++;while(X&&X.type===s.type&&S.every(Ut=>X[Ut]!==Re));let pt=X||j,$e=Re;if(l&&(eb(s[S[0]])||eb(b)||eb(A)||tnn($e))){V=!0,te=!0;let Ut=Hi=>[op("("),da([Qo,Hi]),Qo,op(")")],hr=Hi=>Hi.type==="NullLiteral"||Hi.type==="Literal"&&Hi.value===null||Hi.type==="Identifier"&&Hi.name==="undefined";L.push(" ? ",hr(b)?i(d):Ut(i(d))," : ",A.type===s.type||hr(A)?i(h):Ut(i(h)))}else{let Ut=Hi=>r.useTabs?da(i(Hi)):U6(2,i(Hi)),hr=[Bs,"? ",b.type===s.type?op("","("):"",Ut(d),b.type===s.type?op("",")"):"",Bs,": ",Ut(h)];L.push(j.type!==s.type||j[h]===s||ie?hr:r.useTabs?mMt(da(hr)):U6(Math.max(0,r.tabWidth-2),hr))}let xt=Ut=>j===pt?Bi(Ut):Ut,tr=!V&&(Dg(j)||j.type==="NGPipeExpression"&&j.left===s)&&!j.computed,ht=inn(e),wt=xt([rnn(e,r,i),te?L:da(L),l&&tr&&!ht?Qo:""]);return ie||ht?Bi([da([Qo,wt]),Qo]):wt}function ann(e,r){return(Dg(r)||r.type==="NGPipeExpression"&&r.left===e)&&!r.computed}function snn(e,r,i,s){return[...e.map(l=>uV(l)),uV(r),uV(i)].flat().some(l=>z6(l)&&CD(s.originalText,B_(l),T_(l)))}var cnn=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function lnn(e){let{node:r}=e;if(r.type!=="ConditionalExpression")return!1;let i,s=r;for(let l=0;!i;l++){let d=e.getParentNode(l);if(d.type==="ChainExpression"&&d.expression===s||Sf(d)&&d.callee===s||Dg(d)&&d.object===s||d.type==="TSNonNullExpression"&&d.expression===s){s=d;continue}d.type==="NewExpression"&&d.callee===s||M6(d)&&d.expression===s?(i=e.getParentNode(l+1),s=d):i=d}return s===r?!1:i[cnn.get(i.type)]===s}var HZe=e=>[op("("),da([Qo,e]),Qo,op(")")];function zXe(e,r,i,s){if(!r.experimentalTernaries)return onn(e,r,i);let{node:l}=e,d=l.type==="ConditionalExpression",h=iB(l),S=d?"consequent":"trueType",b=d?"alternate":"falseType",A=d?["test"]:["checkType","extendsType"],L=l[S],V=l[b],j=A.map(uc=>l[uc]),{parent:ie}=e,te=ie.type===l.type,X=te&&A.some(uc=>ie[uc]===l),Re=te&&ie[b]===l,Je=L.type===l.type,pt=V.type===l.type,$e=pt||Re,xt=r.tabWidth>2||r.useTabs,tr,ht,wt=0;do ht=tr||l,tr=e.getParentNode(wt),wt++;while(tr&&tr.type===l.type&&A.every(uc=>tr[uc]!==ht));let Ut=tr||ie,hr=s&&s.assignmentLayout&&s.assignmentLayout!=="break-after-operator"&&(ie.type==="AssignmentExpression"||ie.type==="VariableDeclarator"||ie.type==="ClassProperty"||ie.type==="PropertyDefinition"||ie.type==="ClassPrivateProperty"||ie.type==="ObjectProperty"||ie.type==="Property"),Hi=(ie.type==="ReturnStatement"||ie.type==="ThrowStatement")&&!(Je||pt),un=d&&Ut.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",xo=lnn(e),Lo=ann(l,ie),yr=h&&lB(e,r),co=xt?r.useTabs?" ":" ".repeat(r.tabWidth-1):"",Cs=snn(j,L,V,r)||Je||pt,Cr=!$e&&!te&&!h&&(un?L.type==="NullLiteral"||L.type==="Literal"&&L.value===null:bXe(L,r)&&nLt(l.test,3)),ol=$e||Re||h&&!te||te&&d&&nLt(l.test,1)||Cr,Zo=[];!Je&&Os(L,Fc.Dangling)&&e.call(()=>{Zo.push(Cg(e,r),Ia)},"consequent");let Rc=[];Os(l.test,Fc.Dangling)&&e.call(()=>{Rc.push(Cg(e,r))},"test"),!pt&&Os(V,Fc.Dangling)&&e.call(()=>{Rc.push(Cg(e,r))},"alternate"),Os(l,Fc.Dangling)&&Rc.push(Cg(e,r));let an=Symbol("test"),Xr=Symbol("consequent"),li=Symbol("test-and-consequent"),Wi=d?[HZe(i("test")),l.test.type==="ConditionalExpression"?U5:""]:[i("checkType")," ","extends"," ",iB(l.extendsType)||l.extendsType.type==="TSMappedType"?i("extendsType"):Bi(HZe(i("extendsType")))],Bo=Bi([Wi," ?"],{id:an}),Wn=i(S),Na=da([Je||un&&(eb(L)||te||$e)?Ia:Bs,Zo,Wn]),hs=ol?Bi([Bo,$e?Na:op(Na,Bi(Na,{id:Xr}),{groupId:an})],{id:li}):[Bo,Na],Us=i(b),Sc=Cr?op(Us,mMt(HZe(Us)),{groupId:li}):Us,Wu=[hs,Rc.length>0?[da([Ia,Rc]),Ia]:pt?Ia:Cr?op(Bs," ",{groupId:li}):Bs,":",pt?" ":xt?ol?op(co,op($e||Cr?" ":co," "),{groupId:li}):op(co," "):" ",pt?Sc:Bi([da(Sc),un&&!Cr?Qo:""]),Lo&&!xo?Qo:"",Cs?U5:""];return hr&&!Cs?Bi(da([Qo,Bi(Wu)])):hr||Hi?Bi(da(Wu)):xo||h&&X?Bi([da([Qo,Wu]),yr?Qo:""]):ie===Ut?Bi(Wu):Wu}function unn(e,r,i,s){let{node:l}=e;if(vXe(l))return Urn(e,r);switch(l.type){case"JsExpressionRoot":return i("node");case"JsonRoot":return[Cg(e,r),i("node"),Ia];case"File":return $rn(e,r,i)??i("program");case"ExpressionStatement":return Brn(e,r,i);case"ChainExpression":return i("expression");case"ParenthesizedExpression":return!Os(l.expression)&&(B6(l.expression)||ax(l.expression))?["(",i("expression"),")"]:Bi(["(",da([Qo,i("expression")]),Qo,")"]);case"AssignmentExpression":return Stn(e,r,i);case"VariableDeclarator":return btn(e,r,i);case"BinaryExpression":case"LogicalExpression":return OMt(e,r,i);case"AssignmentPattern":return[i("left")," = ",i("right")];case"OptionalMemberExpression":case"MemberExpression":return mtn(e,r,i);case"MetaProperty":return[i("meta"),".",i("property")];case"BindExpression":return _tn(e,r,i);case"Identifier":return[l.name,U2(e),NMt(e),ox(e,i)];case"V8IntrinsicIdentifier":return["%",l.name];case"SpreadElement":return lXe(e,i);case"RestElement":return lXe(e,i);case"FunctionDeclaration":case"FunctionExpression":return HMt(e,r,i,s);case"ArrowFunctionExpression":return hrn(e,r,i,s);case"YieldExpression":return[`yield${l.delegate?"*":""}`,l.argument?[" ",i("argument")]:""];case"AwaitExpression":{let d=["await"];if(l.argument){d.push(" ",i("argument"));let{parent:h}=e;if(Sf(h)&&h.callee===l||Dg(h)&&h.object===l){d=[da([Qo,...d]),Qo];let S=e.findAncestor(b=>b.type==="AwaitExpression"||b.type==="BlockStatement");if(S?.type!=="AwaitExpression"||!B2(S.argument,b=>b===l))return Bi(d)}}return d}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return hjt(e,r,i);case"ImportDeclaration":return Grn(e,r,i);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Yrn(e,r,i);case"ImportAttribute":return qZe(e,r,i);case"Program":case"BlockStatement":case"StaticBlock":return ojt(e,r,i);case"ClassBody":return jXe(e,r,i);case"ThrowStatement":return Ltn(e,r,i);case"ReturnStatement":return Rtn(e,r,i);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return WCe(e,r,i);case"ObjectExpression":case"ObjectPattern":return $Xe(e,r,i);case"Property":return $pe(l)?aXe(e,r,i):qZe(e,r,i);case"ObjectProperty":return qZe(e,r,i);case"ObjectMethod":return aXe(e,r,i);case"Decorator":return["@",i("expression")];case"ArrayExpression":case"ArrayPattern":return FXe(e,r,i);case"SequenceExpression":{let{parent:d}=e;if(d.type==="ExpressionStatement"||d.type==="ForStatement"){let S=[];return e.each(({isFirst:b})=>{b?S.push(i()):S.push(",",da([Bs,i()]))},"expressions"),Bi(S)}let h=ud([",",Bs],e.map(i,"expressions"));return(d.type==="ReturnStatement"||d.type==="ThrowStatement")&&e.key==="argument"||d.type==="ArrowFunctionExpression"&&e.key==="body"?Bi(op([da([Qo,h]),Qo],h)):Bi(h)}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[i("value"),r.semi?";":""];case"UnaryExpression":{let d=[l.operator];return/[a-z]$/u.test(l.operator)&&d.push(" "),Os(l.argument)?d.push(Bi(["(",da([Qo,i("argument")]),Qo,")"])):d.push(i("argument")),d}case"UpdateExpression":return[l.prefix?l.operator:"",i("argument"),l.prefix?"":l.operator];case"ConditionalExpression":return zXe(e,r,i,s);case"VariableDeclaration":{let d=e.map(i,"declarations"),h=e.parent,S=h.type==="ForStatement"||h.type==="ForInStatement"||h.type==="ForOfStatement",b=l.declarations.some(L=>L.init),A;return d.length===1&&!Os(l.declarations[0])?A=d[0]:d.length>0&&(A=da(d[0])),Bi([DD(e),l.kind,A?[" ",A]:"",da(d.slice(1).map(L=>[",",b&&!S?Ia:Bs,L])),r.semi&&!(S&&h.body!==l)?";":""])}case"WithStatement":return Bi(["with (",i("object"),")",tB(l.body,i("body"))]);case"IfStatement":{let d=tB(l.consequent,i("consequent")),h=[Bi(["if (",Bi([da([Qo,i("test")]),Qo]),")",d])];if(l.alternate){let S=Os(l.consequent,Fc.Trailing|Fc.Line)||KLt(l),b=l.consequent.type==="BlockStatement"&&!S;h.push(b?" ":Ia),Os(l,Fc.Dangling)&&h.push(Cg(e,r),S?Ia:" "),h.push("else",Bi(tB(l.alternate,i("alternate"),l.alternate.type==="IfStatement")))}return h}case"ForStatement":{let d=tB(l.body,i("body")),h=Cg(e,r),S=h?[h,Qo]:"";return!l.init&&!l.test&&!l.update?[S,Bi(["for (;;)",d])]:[S,Bi(["for (",Bi([da([Qo,i("init"),";",Bs,i("test"),";",l.update?[Bs,i("update")]:op("",Bs)]),Qo]),")",d])]}case"WhileStatement":return Bi(["while (",Bi([da([Qo,i("test")]),Qo]),")",tB(l.body,i("body"))]);case"ForInStatement":return Bi(["for (",i("left")," in ",i("right"),")",tB(l.body,i("body"))]);case"ForOfStatement":return Bi(["for",l.await?" await":""," (",i("left")," of ",i("right"),")",tB(l.body,i("body"))]);case"DoWhileStatement":{let d=tB(l.body,i("body"));return[Bi(["do",d]),l.body.type==="BlockStatement"?" ":Ia,"while (",Bi([da([Qo,i("test")]),Qo]),")",r.semi?";":""]}case"DoExpression":return[l.async?"async ":"","do ",i("body")];case"BreakStatement":case"ContinueStatement":return[l.type==="BreakStatement"?"break":"continue",l.label?[" ",i("label")]:"",r.semi?";":""];case"LabeledStatement":return[i("label"),`:${l.body.type==="EmptyStatement"&&!Os(l.body,Fc.Leading)?"":" "}`,i("body")];case"TryStatement":return["try ",i("block"),l.handler?[" ",i("handler")]:"",l.finalizer?[" finally ",i("finalizer")]:""];case"CatchClause":if(l.param){let d=Os(l.param,S=>!z6(S)||S.leading&&gk(r.originalText,T_(S))||S.trailing&&gk(r.originalText,B_(S),{backwards:!0})),h=i("param");return["catch ",d?["(",da([Qo,h]),Qo,") "]:["(",h,") "],i("body")]}return["catch ",i("body")];case"SwitchStatement":return[Bi(["switch (",da([Qo,i("discriminant")]),Qo,")"])," {",l.cases.length>0?da([Ia,ud(Ia,e.map(({node:d,isLast:h})=>[i(),!h&&y8(d,r)?Ia:""],"cases"))]):"",Ia,"}"];case"SwitchCase":{let d=[];l.test?d.push("case ",i("test"),":"):d.push("default:"),Os(l,Fc.Dangling)&&d.push(" ",Cg(e,r));let h=l.consequent.filter(S=>S.type!=="EmptyStatement");if(h.length>0){let S=sXe(e,r,i,"consequent");d.push(h.length===1&&h[0].type==="BlockStatement"?[" ",S]:da([Ia,S]))}return d}case"DebuggerStatement":return["debugger",r.semi?";":""];case"ClassDeclaration":case"ClassExpression":return BXe(e,r,i);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return pjt(e,r,i);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return _jt(e,r,i);case"TemplateElement":return pV(l.value.raw);case"TemplateLiteral":return TMt(e,r,i);case"TaggedTemplateExpression":return jYr(e,r,i);case"PrivateIdentifier":return["#",l.name];case"PrivateName":return["#",i("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",i("body")];case"VoidPattern":return"void";case"EmptyStatement":if(gXe(e))return";";default:throw new GY(l,"ESTree")}}function xjt(e){return[e("elementType"),"[]"]}var pnn=Tp(["SatisfiesExpression","TSSatisfiesExpression"]);function Tjt(e,r,i){let{parent:s,node:l,key:d}=e,h=l.type==="AsConstExpression"?"const":i("typeAnnotation"),S=[i("expression")," ",pnn(l)?"satisfies":"as"," ",h];return d==="callee"&&Sf(s)||d==="object"&&Dg(s)?Bi([da([Qo,...S]),Qo]):S}function _nn(e,r,i){let{node:s}=e,l=[DD(e),"component"];s.id&&l.push(" ",i("id")),l.push(i("typeParameters"));let d=dnn(e,r,i);return s.rendersType?l.push(Bi([d," ",i("rendersType")])):l.push(Bi([d])),s.body&&l.push(" ",i("body")),r.semi&&s.type==="DeclareComponent"&&l.push(";"),l}function dnn(e,r,i){let{node:s}=e,l=s.params;if(s.rest&&(l=[...l,s.rest]),l.length===0)return["(",Cg(e,r,{filter:h=>$6(r.originalText,T_(h))===")"}),")"];let d=[];return mnn(e,(h,S)=>{let b=S===l.length-1;b&&s.rest&&d.push("..."),d.push(i()),!b&&(d.push(","),y8(l[S],r)?d.push(Ia,Ia):d.push(Bs))}),["(",da([Qo,...d]),op(g8(r,"all")&&!fnn(s,l)?",":""),Qo,")"]}function fnn(e,r){return e.rest||Zf(0,r,-1)?.type==="RestElement"}function mnn(e,r){let{node:i}=e,s=0,l=d=>r(d,s++);e.each(l,"params"),i.rest&&e.call(l,"rest")}function hnn(e,r,i){let{node:s}=e;return s.shorthand?i("local"):[i("name")," as ",i("local")]}function gnn(e,r,i){let{node:s}=e,l=[];return s.name&&l.push(i("name"),s.optional?"?: ":": "),l.push(i("typeAnnotation")),l}function Ejt(e,r,i){return $Xe(e,r,i)}function ynn(e,r,i){let{node:s}=e;return[s.type==="EnumSymbolBody"||s.explicitType?`of ${s.type.slice(4,-4).toLowerCase()} `:"",Ejt(e,r,i)]}function kjt(e,r){let{node:i}=e,s=r("id");i.computed&&(s=["[",s,"]"]);let l="";return i.initializer&&(l=r("initializer")),i.init&&(l=r("init")),l?[s," = ",l]:s}function Cjt(e,r){let{node:i}=e;return[DD(e),i.const?"const ":"","enum ",r("id")," ",r("body")]}function Djt(e,r,i){let{node:s}=e,l=[XCe(e)];(s.type==="TSConstructorType"||s.type==="TSConstructSignatureDeclaration")&&l.push("new ");let d=SV(e,r,i,!1,!0),h=[];return s.type==="FunctionTypeAnnotation"?h.push(vnn(e)?" => ":": ",i("returnType")):h.push(ox(e,i,"returnType")),WY(s,h)&&(d=Bi(d)),l.push(d,h),[Bi(l),s.type==="TSConstructSignatureDeclaration"||s.type==="TSCallSignatureDeclaration"?j5(e,r):""]}function vnn(e){let{node:r,parent:i}=e;return r.type==="FunctionTypeAnnotation"&&(VLt(i)||!((i.type==="ObjectTypeProperty"||i.type==="ObjectTypeInternalSlot")&&!i.variance&&!i.optional&&HCe(i,r)||i.type==="ObjectTypeCallProperty"||e.getParentNode(2)?.type==="DeclareFunction"))}function Snn(e,r,i){let{node:s}=e,l=["hook"];s.id&&l.push(" ",i("id"));let d=SV(e,r,i,!1,!0),h=eDe(e,i),S=WY(s,h);return l.push(Bi([S?Bi(d):d,h]),s.body?" ":"",i("body")),l}function bnn(e,r,i){let{node:s}=e,l=[DD(e),"hook"];return s.id&&l.push(" ",i("id")),r.semi&&l.push(";"),l}function DLt(e){let{node:r}=e;return r.type==="HookTypeAnnotation"&&e.getParentNode(2)?.type==="DeclareHook"}function xnn(e,r,i){let{node:s}=e,l=SV(e,r,i,!1,!0),d=[DLt(e)?": ":" => ",i("returnType")];return Bi([DLt(e)?"":"hook ",WY(s,d)?Bi(l):l,d])}function Ajt(e,r,i){return[i("objectType"),U2(e),"[",i("indexType"),"]"]}function wjt(e,r,i){return["infer ",i("typeParameter")]}function Ijt(e,r,i){let s=!1;return Bi(e.map(({isFirst:l,previous:d,node:h,index:S})=>{let b=i();if(l)return b;let A=nB(h),L=nB(d);return L&&A?[" & ",s?da(b):b]:!L&&!A||j6(r.originalText,h)?r.experimentalOperatorPosition==="start"?da([Bs,"& ",b]):da([" &",Bs,b]):(S>1&&(s=!0),[" & ",S>1?da(b):b])},"types"))}function Tnn(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function Enn(e,r,i){let{node:s}=e;return[Bi([s.variance?i("variance"):"","[",da([i("keyTparam")," in ",i("sourceType")]),"]",Tnn(s.optional),": ",i("propType")]),j5(e,r)]}function ALt(e,r){return e==="+"||e==="-"?e+r:r}function knn(e,r,i){let{node:s}=e,l=!1;if(r.objectWrap==="preserve"){let d=B_(s),h=tDe(r,d+1,B_(s.key)),S=d+1+h.search(/\S/u);CD(r.originalText,d,S)&&(l=!0)}return Bi(["{",da([r.bracketSpacing?Bs:Qo,Os(s,Fc.Dangling)?Bi([Cg(e,r),Ia]):"",Bi([s.readonly?[ALt(s.readonly,"readonly")," "]:"","[",i("key")," in ",i("constraint"),s.nameType?[" as ",i("nameType")]:"","]",s.optional?ALt(s.optional,"?"):"",s.typeAnnotation?": ":"",i("typeAnnotation")]),r.semi?op(";"):""]),r.bracketSpacing?Bs:Qo,"}"],{shouldBreak:l})}function Cnn(e,r,i){let{node:s}=e;return[Bi(["match (",da([Qo,i("argument")]),Qo,")"])," {",s.cases.length>0?da([Ia,ud(Ia,e.map(({node:l,isLast:d})=>[i(),!d&&y8(l,r)?Ia:""],"cases"))]):"",Ia,"}"]}function Dnn(e,r,i){let{node:s}=e,l=Os(s,Fc.Dangling)?[" ",Cg(e,r)]:[],d=s.type==="MatchStatementCase"?[" ",i("body")]:da([Bs,i("body"),","]);return[i("pattern"),s.guard?Bi([da([Bs,"if (",i("guard"),")"])]):"",Bi([" =>",l,d])]}function Ann(e,r,i){let{node:s}=e;switch(s.type){case"MatchOrPattern":return Pnn(e,r,i);case"MatchAsPattern":return[i("pattern")," as ",i("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return i("literal");case"MatchUnaryPattern":return[s.operator,i("argument")];case"MatchIdentifierPattern":return i("id");case"MatchMemberPattern":{let l=s.property.type==="Identifier"?[".",i("property")]:["[",da([Qo,i("property")]),Qo,"]"];return Bi([i("base"),l])}case"MatchBindingPattern":return[s.kind," ",i("id")];case"MatchObjectPattern":{let l=e.map(i,"properties");return s.rest&&l.push(i("rest")),Bi(["{",da([Qo,ud([",",Bs],l)]),s.rest?"":op(","),Qo,"}"])}case"MatchArrayPattern":{let l=e.map(i,"elements");return s.rest&&l.push(i("rest")),Bi(["[",da([Qo,ud([",",Bs],l)]),s.rest?"":op(","),Qo,"]"])}case"MatchObjectPatternProperty":return s.shorthand?i("pattern"):Bi([i("key"),":",da([Bs,i("pattern")])]);case"MatchRestPattern":{let l=["..."];return s.argument&&l.push(i("argument")),l}}}var Pjt=Tp(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function wnn(e){let{patterns:r}=e;if(r.some(s=>Os(s)))return!1;let i=r.find(s=>s.type==="MatchObjectPattern");return i?r.every(s=>s===i||Pjt(s)):!1}function Inn(e){return Pjt(e)||e.type==="MatchObjectPattern"?!0:e.type==="MatchOrPattern"?wnn(e):!1}function Pnn(e,r,i){let{node:s}=e,{parent:l}=e,d=l.type!=="MatchStatementCase"&&l.type!=="MatchExpressionCase"&&l.type!=="MatchArrayPattern"&&l.type!=="MatchObjectPatternProperty"&&!j6(r.originalText,s),h=Inn(s),S=e.map(()=>{let A=i();return h||(A=U6(2,A)),tI(e,A,r)},"patterns");if(h)return ud(" | ",S);let b=[op(["| "]),ud([Bs,"| "],S)];return lB(e,r)?Bi([da([op([Qo]),b]),Qo]):l.type==="MatchArrayPattern"&&l.elements.length>1?Bi([da([op(["(",Qo]),b]),Qo,op(")")]):Bi(d?da(b):b)}function Nnn(e,r,i){let{node:s}=e,l=[DD(e),"opaque type ",i("id"),i("typeParameters")];if(s.supertype&&l.push(": ",i("supertype")),s.lowerBound||s.upperBound){let d=[];s.lowerBound&&d.push(da([Bs,"super ",i("lowerBound")])),s.upperBound&&d.push(da([Bs,"extends ",i("upperBound")])),l.push(Bi(d))}return s.impltype&&l.push(" = ",i("impltype")),l.push(r.semi?";":""),l}function Njt(e,r,i){let{node:s}=e;return["...",...s.type==="TupleTypeSpreadElement"&&s.label?[i("label"),": "]:[],i("typeAnnotation")]}function Ojt(e,r,i){let{node:s}=e;return[s.variance?i("variance"):"",i("label"),s.optional?"?":"",": ",i("elementType")]}function Fjt(e,r,i){let{node:s}=e,l=[DD(e),"type ",i("id"),i("typeParameters")],d=s.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[qpe(e,r,i,l," =",d),r.semi?";":""]}function Onn(e,r,i){let{node:s}=e;return xT(s).length===1&&s.type.startsWith("TS")&&!s[i][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(r.filepath&&/\.ts$/u.test(r.filepath))}function Ope(e,r,i,s){let{node:l}=e;if(!l[s])return"";if(!Array.isArray(l[s]))return i(s);let d=KCe(e.grandparent),h=e.match(b=>!(b[s].length===1&&nB(b[s][0])),void 0,(b,A)=>A==="typeAnnotation",b=>b.type==="Identifier",VMt);if(l[s].length===0||!h&&(d||l[s].length===1&&(l[s][0].type==="NullableTypeAnnotation"||ttn(l[s][0]))))return["<",ud(", ",e.map(i,s)),Fnn(e,r),">"];let S=l.type==="TSTypeParameterInstantiation"?"":Onn(e,r,s)?",":g8(r)?op(","):"";return Bi(["<",da([Qo,ud([",",Bs],e.map(i,s))]),S,Qo,">"])}function Fnn(e,r){let{node:i}=e;if(!Os(i,Fc.Dangling))return"";let s=!Os(i,Fc.Line),l=Cg(e,r,{indent:!s});return s?l:[l,Ia]}function Rjt(e,r,i){let{node:s}=e,l=[s.const?"const ":""],d=s.type==="TSTypeParameter"?i("name"):s.name;if(s.variance&&l.push(i("variance")),s.in&&l.push("in "),s.out&&l.push("out "),l.push(d),s.bound&&(s.usesExtendsBound&&l.push(" extends "),l.push(ox(e,i,"bound"))),s.constraint){let h=Symbol("constraint");l.push(" extends",Bi(da(Bs),{id:h}),h8,Lpe(i("constraint"),{groupId:h}))}if(s.default){let h=Symbol("default");l.push(" =",Bi(da(Bs),{id:h}),h8,Lpe(i("default"),{groupId:h}))}return Bi(l)}function Ljt(e,r){let{node:i}=e;return[i.type==="TSTypePredicate"&&i.asserts?"asserts ":i.type==="TypePredicate"&&i.kind?`${i.kind} `:"",r("parameterName"),i.typeAnnotation?[" is ",ox(e,r)]:""]}function Mjt({node:e},r){let i=e.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",r(i),r("typeArguments")]}function Rnn(e,r,i){let{node:s}=e;if($Lt(s))return s.type.slice(0,-14).toLowerCase();switch(s.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return _nn(e,r,i);case"ComponentParameter":return hnn(e,r,i);case"ComponentTypeParameter":return gnn(e,r,i);case"HookDeclaration":return Snn(e,r,i);case"DeclareHook":return bnn(e,r,i);case"HookTypeAnnotation":return xnn(e,r,i);case"DeclareFunction":return[DD(e),"function ",i("id"),i("predicate"),r.semi?";":""];case"DeclareModule":return["declare module ",i("id")," ",i("body")];case"DeclareModuleExports":return["declare module.exports",ox(e,i),r.semi?";":""];case"DeclareNamespace":return["declare namespace ",i("id")," ",i("body")];case"DeclareVariable":return[DD(e),s.kind??"var"," ",i("id"),r.semi?";":""];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return hjt(e,r,i);case"DeclareOpaqueType":case"OpaqueType":return Nnn(e,r,i);case"DeclareTypeAlias":case"TypeAlias":return Fjt(e,r,i);case"IntersectionTypeAnnotation":return Ijt(e,r,i);case"UnionTypeAnnotation":return FMt(e,r,i);case"ConditionalTypeAnnotation":return zXe(e,r,i);case"InferTypeAnnotation":return wjt(e,r,i);case"FunctionTypeAnnotation":return Djt(e,r,i);case"TupleTypeAnnotation":return FXe(e,r,i);case"TupleTypeLabeledElement":return Ojt(e,r,i);case"TupleTypeSpreadElement":return Njt(e,r,i);case"GenericTypeAnnotation":return[i("id"),Ope(e,r,i,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return Ajt(e,r,i);case"TypeAnnotation":return MMt(e,r,i);case"TypeParameter":return Rjt(e,r,i);case"TypeofTypeAnnotation":return Mjt(e,i);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return xjt(i);case"DeclareEnum":case"EnumDeclaration":return Cjt(e,i);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return ynn(e,r,i);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return kjt(e,i);case"FunctionTypeParam":{let l=s.name?i("name"):e.parent.this===s?"this":"";return[l,U2(e),l?": ":"",i("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return BXe(e,r,i);case"ObjectTypeAnnotation":return jXe(e,r,i);case"ClassImplements":case"InterfaceExtends":return[i("id"),i("typeParameters")];case"NullableTypeAnnotation":return["?",i("typeAnnotation")];case"Variance":{let{kind:l}=s;return _V(l==="plus"||l==="minus"),l==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",i("argument")];case"ObjectTypeCallProperty":return[s.static?"static ":"",i("value"),j5(e,r)];case"ObjectTypeMappedTypeProperty":return Enn(e,r,i);case"ObjectTypeIndexer":return[s.static?"static ":"",s.variance?i("variance"):"","[",i("id"),s.id?": ":"",i("key"),"]: ",i("value"),j5(e,r)];case"ObjectTypeProperty":{let l="";return s.proto?l="proto ":s.static&&(l="static "),[l,s.kind!=="init"?s.kind+" ":"",s.variance?i("variance"):"",Jpe(e,r,i),U2(e),$pe(s)?"":": ",i("value"),j5(e,r)]}case"ObjectTypeInternalSlot":return[s.static?"static ":"","[[",i("id"),"]]",U2(e),s.method?"":": ",i("value"),j5(e,r)];case"ObjectTypeSpreadProperty":return lXe(e,i);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[i("qualification"),".",i("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(s.value);case"StringLiteralTypeAnnotation":return pV(BY(yk(s),r));case"NumberLiteralTypeAnnotation":return zY(yk(s));case"BigIntLiteralTypeAnnotation":return cXe(yk(s));case"TypeCastExpression":return["(",i("expression"),ox(e,i),")"];case"TypePredicate":return Ljt(e,i);case"TypeOperator":return[s.operator," ",i("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return Ope(e,r,i,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...s.type==="DeclaredPredicate"?["(",i("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Tjt(e,r,i);case"MatchExpression":case"MatchStatement":return Cnn(e,r,i);case"MatchExpressionCase":case"MatchStatementCase":return Dnn(e,r,i);case"MatchOrPattern":case"MatchAsPattern":case"MatchWildcardPattern":case"MatchLiteralPattern":case"MatchUnaryPattern":case"MatchIdentifierPattern":case"MatchMemberPattern":case"MatchBindingPattern":case"MatchObjectPattern":case"MatchObjectPatternProperty":case"MatchRestPattern":case"MatchArrayPattern":return Ann(e,r,i)}}function Lnn(e,r,i){let{node:s}=e,l=s.parameters.length>1?op(g8(r)?",":""):"",d=Bi([da([Qo,ud([", ",Qo],e.map(i,"parameters"))]),l,Qo]);return[e.key==="body"&&e.parent.type==="ClassBody"&&s.static?"static ":"",s.readonly?"readonly ":"","[",s.parameters?d:"","]",ox(e,i),j5(e,r)]}function wLt(e,r,i){let{node:s}=e;return[s.postfix?"":i,ox(e,r),s.postfix?i:""]}function Mnn(e,r,i){let{node:s}=e,l=[],d=s.kind&&s.kind!=="method"?`${s.kind} `:"";l.push(YCe(s),d,s.computed?"[":"",i("key"),s.computed?"]":"",U2(e));let h=SV(e,r,i,!1,!0),S=ox(e,i,"returnType"),b=WY(s,S);return l.push(b?Bi(h):h),s.returnType&&l.push(Bi(S)),[Bi(l),j5(e,r)]}function jnn(e,r,i){let{node:s}=e;return[DD(e),s.kind==="global"?"":`${s.kind} `,i("id"),s.body?[" ",Bi(i("body"))]:r.semi?";":""]}function Bnn(e,r,i){let{node:s}=e,l=!(ax(s.expression)||B6(s.expression)),d=Bi(["<",da([Qo,i("typeAnnotation")]),Qo,">"]),h=[op("("),da([Qo,i("expression")]),Qo,op(")")];return l?lV([[d,i("expression")],[d,Bi(h,{shouldBreak:!0})],[d,i("expression")]]):Bi([d,i("expression")])}function $nn(e,r,i){let{node:s}=e;if(s.type.startsWith("TS")){if(ULt(s))return s.type.slice(2,-7).toLowerCase();switch(s.type){case"TSThisType":return"this";case"TSTypeAssertion":return Bnn(e,r,i);case"TSDeclareFunction":return HMt(e,r,i);case"TSExportAssignment":return["export = ",i("expression"),r.semi?";":""];case"TSModuleBlock":return ojt(e,r,i);case"TSInterfaceBody":case"TSTypeLiteral":return jXe(e,r,i);case"TSTypeAliasDeclaration":return Fjt(e,r,i);case"TSQualifiedName":return[i("left"),".",i("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return pjt(e,r,i);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return _jt(e,r,i);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[i("expression"),i("typeArguments")];case"TSTemplateLiteralType":return TMt(e,r,i);case"TSNamedTupleMember":return Ojt(e,r,i);case"TSRestType":return Njt(e,r,i);case"TSOptionalType":return[i("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return BXe(e,r,i);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Ope(e,r,i,"params");case"TSTypeParameter":return Rjt(e,r,i);case"TSAsExpression":case"TSSatisfiesExpression":return Tjt(e,r,i);case"TSArrayType":return xjt(i);case"TSPropertySignature":return[s.readonly?"readonly ":"",Jpe(e,r,i),U2(e),ox(e,i),j5(e,r)];case"TSParameterProperty":return[YCe(s),s.static?"static ":"",s.override?"override ":"",s.readonly?"readonly ":"",i("parameter")];case"TSTypeQuery":return Mjt(e,i);case"TSIndexSignature":return Lnn(e,r,i);case"TSTypePredicate":return Ljt(e,i);case"TSNonNullExpression":return[i("expression"),"!"];case"TSImportType":return[WCe(e,r,i),s.qualifier?[".",i("qualifier")]:"",Ope(e,r,i,"typeArguments")];case"TSLiteralType":return i("literal");case"TSIndexedAccessType":return Ajt(e,r,i);case"TSTypeOperator":return[s.operator," ",i("typeAnnotation")];case"TSMappedType":return knn(e,r,i);case"TSMethodSignature":return Mnn(e,r,i);case"TSNamespaceExportDeclaration":return["export as namespace ",i("id"),r.semi?";":""];case"TSEnumDeclaration":return Cjt(e,i);case"TSEnumBody":return Ejt(e,r,i);case"TSEnumMember":return kjt(e,i);case"TSImportEqualsDeclaration":return["import ",gjt(s,!1),i("id")," = ",i("moduleReference"),r.semi?";":""];case"TSExternalModuleReference":return WCe(e,r,i);case"TSModuleDeclaration":return jnn(e,r,i);case"TSConditionalType":return zXe(e,r,i);case"TSInferType":return wjt(e,r,i);case"TSIntersectionType":return Ijt(e,r,i);case"TSUnionType":return FMt(e,r,i);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return Djt(e,r,i);case"TSTupleType":return FXe(e,r,i);case"TSTypeReference":return[i("typeName"),Ope(e,r,i,"typeArguments")];case"TSTypeAnnotation":return MMt(e,r,i);case"TSEmptyBodyFunctionExpression":return RXe(e,r,i);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return wLt(e,i,"?");case"TSJSDocNonNullableType":return wLt(e,i,"!");default:throw new GY(s,"TypeScript")}}}function Unn(e,r,i,s){for(let l of[lrn,irn,Rnn,$nn,unn]){let d=l(e,r,i,s);if(d!==void 0)return d}}var znn=Tp(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function qnn(e,r,i,s){e.isRoot&&r.__onHtmlBindingRoot?.(e.node,r);let{node:l}=e,d=MXe(e)?r.originalText.slice(B_(l),T_(l)):Unn(e,r,i,s);if(!d)return"";if(znn(l))return d;let h=Ag(l.decorators),S=frn(e,r,i),b=l.type==="ClassExpression";if(h&&!b)return YZe(d,V=>Bi([S,V]));let A=lB(e,r),L=jtn(e,r);return!S&&!A&&!L?d:YZe(d,V=>[L?";":"",A?"(":"",A&&b&&h?[da([Bs,S,V]),Bs]:[S,V],A?")":""])}var ILt=qnn,Jnn={experimental_avoidAstMutation:!0},Vnn=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],jjt={};uXe(jjt,{getVisitorKeys:()=>Hnn,massageAstNode:()=>Bjt,print:()=>Knn});var FY=[[]],Wnn={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:FY[0],BooleanLiteral:FY[0],StringLiteral:FY[0],NumericLiteral:FY[0],Identifier:FY[0],TemplateLiteral:["quasis"],TemplateElement:FY[0]},Gnn=jLt(Wnn),Hnn=Gnn;function Knn(e,r,i){let{node:s}=e;switch(s.type){case"JsonRoot":return[i("node"),Ia];case"ArrayExpression":{if(s.elements.length===0)return"[]";let l=e.map(()=>e.node===null?"null":i(),"elements");return["[",da([Ia,ud([",",Ia],l)]),Ia,"]"]}case"ObjectExpression":return s.properties.length===0?"{}":["{",da([Ia,ud([",",Ia],e.map(i,"properties"))]),Ia,"}"];case"ObjectProperty":return[i("key"),": ",i("value")];case"UnaryExpression":return[s.operator==="+"?"":s.operator,i("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return s.value?"true":"false";case"StringLiteral":return JSON.stringify(s.value);case"NumericLiteral":return PLt(e)?JSON.stringify(String(s.value)):JSON.stringify(s.value);case"Identifier":return PLt(e)?JSON.stringify(s.name):s.name;case"TemplateLiteral":return i(["quasis",0]);case"TemplateElement":return JSON.stringify(s.value.cooked);default:throw new GY(s,"JSON")}}function PLt(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var Qnn=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function Bjt(e,r){let{type:i}=e;if(i==="ObjectProperty"){let{key:s}=e;s.type==="Identifier"?r.key={type:"StringLiteral",value:s.name}:s.type==="NumericLiteral"&&(r.key={type:"StringLiteral",value:String(s.value)});return}if(i==="UnaryExpression"&&e.operator==="+")return r.argument;if(i==="ArrayExpression"){for(let[s,l]of e.elements.entries())l===null&&r.elements.splice(s,0,{type:"NullLiteral"});return}if(i==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}Bjt.ignoredProperties=Qnn;var Ape={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},rB="JavaScript",Znn={arrowParens:{category:rB,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:Ape.bracketSameLine,objectWrap:Ape.objectWrap,bracketSpacing:Ape.bracketSpacing,jsxBracketSameLine:{category:rB,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:rB,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:rB,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:rB,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:Ape.singleQuote,jsxSingleQuote:{category:rB,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:rB,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:rB,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:Ape.singleAttributePerLine},Xnn=Znn,Ynn={estree:NLt,"estree-json":jjt},ein=[...XQr,...Vnn];var tin=Object.defineProperty,QBt=(e,r)=>{for(var i in r)tin(e,i,{get:r[i],enumerable:!0})},CYe={};QBt(CYe,{parsers:()=>ZBt});var ZBt={};QBt(ZBt,{typescript:()=>f_n});var rin=()=>()=>{},DYe=rin,AYe=(e,r)=>(i,s,...l)=>i|1&&s==null?void 0:(r.call(s)??s[e]).apply(s,l),nin=String.prototype.replaceAll??function(e,r){return e.global?this.replace(e,r):this.split(e).join(r)},iin=AYe("replaceAll",function(){if(typeof this=="string")return nin}),ree=iin,oin="5.9",ky=[],ain=new Map;function Zpe(e){return e!==void 0?e.length:0}function ND(e,r){if(e!==void 0)for(let i=0;i0;return!1}function IYe(e,r){return r===void 0||r.length===0?e:e===void 0||e.length===0?r:[...e,...r]}function pin(e,r,i=NYe){if(e===void 0||r===void 0)return e===r;if(e.length!==r.length)return!1;for(let s=0;se?.at(r):(e,r)=>{if(e!==void 0&&(r=aYe(e,r),r>1),b=i(e[S],S);switch(s(b,r)){case-1:d=S+1;break;case 0:return S;case 1:h=S-1;break}}return~d}function vin(e,r,i,s,l){if(e&&e.length>0){let d=e.length;if(d>0){let h=s===void 0||s<0?0:s,S=l===void 0||h+l>d-1?d-1:h+l,b;for(arguments.length<=2?(b=e[h],h++):b=i;h<=S;)b=r(b,e[h],h),h++;return b}}return i}var t$t=Object.prototype.hasOwnProperty;function T8(e,r){return t$t.call(e,r)}function Sin(e){let r=[];for(let i in e)t$t.call(e,i)&&r.push(i);return r}function bin(){let e=new Map;return e.add=xin,e.remove=Tin,e}function xin(e,r){let i=this.get(e);return i!==void 0?i.push(r):this.set(e,i=[r]),i}function Tin(e,r){let i=this.get(e);i!==void 0&&(Nin(i,r),i.length||this.delete(e))}function Z5(e){return Array.isArray(e)}function JXe(e){return Z5(e)?e:[e]}function Ein(e,r){return e!==void 0&&r(e)?e:void 0}function S8(e,r){return e!==void 0&&r(e)?e:Pi.fail(`Invalid cast. The supplied value ${e} did not pass the test '${Pi.getFunctionName(r)}'.`)}function pee(e){}function kin(){return!0}function wg(e){return e}function Ujt(e){let r;return()=>(e&&(r=e(),e=void 0),r)}function nI(e){let r=new Map;return i=>{let s=`${typeof i}:${i}`,l=r.get(s);return l===void 0&&!r.has(s)&&(l=e(i),r.set(s,l)),l}}function NYe(e,r){return e===r}function OYe(e,r){return e===r||e!==void 0&&r!==void 0&&e.toUpperCase()===r.toUpperCase()}function Cin(e,r){return NYe(e,r)}function Din(e,r){return e===r?0:e===void 0?-1:r===void 0?1:ei?S-i:1),L=Math.floor(r.length>i+S?i+S:r.length);l[0]=S;let V=S;for(let ie=1;iei)return;let j=s;s=l,l=j}let h=s[r.length];return h>i?void 0:h}function Iin(e,r,i){let s=e.length-r.length;return s>=0&&(i?OYe(e.slice(s),r):e.indexOf(r,s)===s)}function Pin(e,r){e[r]=e[e.length-1],e.pop()}function Nin(e,r){return Oin(e,i=>i===r)}function Oin(e,r){for(let i=0;i{let r=0;e.currentLogLevel=2,e.isDebugging=!1;function i(jt){return e.currentLogLevel<=jt}e.shouldLog=i;function s(jt,ea){e.loggingHost&&i(jt)&&e.loggingHost.log(jt,ea)}function l(jt){s(3,jt)}e.log=l,(jt=>{function ea(Jl){s(1,Jl)}jt.error=ea;function Ti(Jl){s(2,Jl)}jt.warn=Ti;function En(Jl){s(3,Jl)}jt.log=En;function Zc(Jl){s(4,Jl)}jt.trace=Zc})(l=e.log||(e.log={}));let d={};function h(){return r}e.getAssertionLevel=h;function S(jt){let ea=r;if(r=jt,jt>ea)for(let Ti of Sin(d)){let En=d[Ti];En!==void 0&&e[Ti]!==En.assertion&&jt>=En.level&&(e[Ti]=En,d[Ti]=void 0)}}e.setAssertionLevel=S;function b(jt){return r>=jt}e.shouldAssert=b;function A(jt,ea){return b(jt)?!0:(d[ea]={level:jt,assertion:e[ea]},e[ea]=pee,!1)}function L(jt,ea){debugger;let Ti=new Error(jt?`Debug Failure. ${jt}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Ti,ea||L),Ti}e.fail=L;function V(jt,ea,Ti){return L(`${ea||"Unexpected node."}\r -Node ${ol(jt.kind)} was unexpected.`,Ti||V)}e.failBadSyntaxKind=V;function j(jt,ea,Ti,En){jt||(ea=ea?`False expression: ${ea}`:"False expression.",Ti&&(ea+=`\r -Verbose Debug Information: `+(typeof Ti=="string"?Ti:Ti())),L(ea,En||j))}e.assert=j;function ie(jt,ea,Ti,En,Zc){if(jt!==ea){let Jl=Ti?En?`${Ti} ${En}`:Ti:"";L(`Expected ${jt} === ${ea}. ${Jl}`,Zc||ie)}}e.assertEqual=ie;function te(jt,ea,Ti,En){jt>=ea&&L(`Expected ${jt} < ${ea}. ${Ti||""}`,En||te)}e.assertLessThan=te;function X(jt,ea,Ti){jt>ea&&L(`Expected ${jt} <= ${ea}`,Ti||X)}e.assertLessThanOrEqual=X;function Re(jt,ea,Ti){jt= ${ea}`,Ti||Re)}e.assertGreaterThanOrEqual=Re;function Je(jt,ea,Ti){jt==null&&L(ea,Ti||Je)}e.assertIsDefined=Je;function pt(jt,ea,Ti){return Je(jt,ea,Ti||pt),jt}e.checkDefined=pt;function $e(jt,ea,Ti){for(let En of jt)Je(En,ea,Ti||$e)}e.assertEachIsDefined=$e;function xt(jt,ea,Ti){return $e(jt,ea,Ti||xt),jt}e.checkEachDefined=xt;function tr(jt,ea="Illegal value:",Ti){let En=typeof jt=="object"&&T8(jt,"kind")&&T8(jt,"pos")?"SyntaxKind: "+ol(jt.kind):JSON.stringify(jt);return L(`${ea} ${En}`,Ti||tr)}e.assertNever=tr;function ht(jt,ea,Ti,En){A(1,"assertEachNode")&&j(ea===void 0||wYe(jt,ea),Ti||"Unexpected node.",()=>`Node array did not pass test '${Lo(ea)}'.`,En||ht)}e.assertEachNode=ht;function wt(jt,ea,Ti,En){A(1,"assertNode")&&j(jt!==void 0&&(ea===void 0||ea(jt)),Ti||"Unexpected node.",()=>`Node ${ol(jt?.kind)} did not pass test '${Lo(ea)}'.`,En||wt)}e.assertNode=wt;function Ut(jt,ea,Ti,En){A(1,"assertNotNode")&&j(jt===void 0||ea===void 0||!ea(jt),Ti||"Unexpected node.",()=>`Node ${ol(jt.kind)} should not have passed test '${Lo(ea)}'.`,En||Ut)}e.assertNotNode=Ut;function hr(jt,ea,Ti,En){A(1,"assertOptionalNode")&&j(ea===void 0||jt===void 0||ea(jt),Ti||"Unexpected node.",()=>`Node ${ol(jt?.kind)} did not pass test '${Lo(ea)}'.`,En||hr)}e.assertOptionalNode=hr;function Hi(jt,ea,Ti,En){A(1,"assertOptionalToken")&&j(ea===void 0||jt===void 0||jt.kind===ea,Ti||"Unexpected node.",()=>`Node ${ol(jt?.kind)} was not a '${ol(ea)}' token.`,En||Hi)}e.assertOptionalToken=Hi;function un(jt,ea,Ti){A(1,"assertMissingNode")&&j(jt===void 0,ea||"Unexpected node.",()=>`Node ${ol(jt.kind)} was unexpected'.`,Ti||un)}e.assertMissingNode=un;function xo(jt){}e.type=xo;function Lo(jt){if(typeof jt!="function")return"";if(T8(jt,"name"))return jt.name;{let ea=Function.prototype.toString.call(jt),Ti=/^function\s+([\w$]+)\s*\(/.exec(ea);return Ti?Ti[1]:""}}e.getFunctionName=Lo;function yr(jt){return`{ name: ${l_e(jt.escapedName)}; flags: ${Wn(jt.flags)}; declarations: ${oYe(jt.declarations,ea=>ol(ea.kind))} }`}e.formatSymbol=yr;function co(jt=0,ea,Ti){let En=Cr(ea);if(jt===0)return En.length>0&&En[0][0]===0?En[0][1]:"0";if(Ti){let Zc=[],Jl=jt;for(let[zd,pu]of En){if(zd>jt)break;zd!==0&&zd&jt&&(Zc.push(pu),Jl&=~zd)}if(Jl===0)return Zc.join("|")}else for(let[Zc,Jl]of En)if(Zc===jt)return Jl;return jt.toString()}e.formatEnum=co;let Cs=new Map;function Cr(jt){let ea=Cs.get(jt);if(ea)return ea;let Ti=[];for(let Zc in jt){let Jl=jt[Zc];typeof Jl=="number"&&Ti.push([Jl,Zc])}let En=fin(Ti,(Zc,Jl)=>r$t(Zc[0],Jl[0]));return Cs.set(jt,En),En}function ol(jt){return co(jt,Xl,!1)}e.formatSyntaxKind=ol;function Zo(jt){return co(jt,p$t,!1)}e.formatSnippetKind=Zo;function Rc(jt){return co(jt,G5,!1)}e.formatScriptKind=Rc;function an(jt){return co(jt,PD,!0)}e.formatNodeFlags=an;function Xr(jt){return co(jt,a$t,!0)}e.formatNodeCheckFlags=Xr;function li(jt){return co(jt,n$t,!0)}e.formatModifierFlags=li;function Wi(jt){return co(jt,u$t,!0)}e.formatTransformFlags=Wi;function Bo(jt){return co(jt,_$t,!0)}e.formatEmitFlags=Bo;function Wn(jt){return co(jt,o$t,!0)}e.formatSymbolFlags=Wn;function Na(jt){return co(jt,TT,!0)}e.formatTypeFlags=Na;function hs(jt){return co(jt,c$t,!0)}e.formatSignatureFlags=hs;function Us(jt){return co(jt,s$t,!0)}e.formatObjectFlags=Us;function Sc(jt){return co(jt,cYe,!0)}e.formatFlowFlags=Sc;function Wu(jt){return co(jt,i$t,!0)}e.formatRelationComparisonResult=Wu;function uc(jt){return co(jt,CheckMode,!0)}e.formatCheckMode=uc;function Pt(jt){return co(jt,SignatureCheckMode,!0)}e.formatSignatureCheckMode=Pt;function ou(jt){return co(jt,TypeFacts,!0)}e.formatTypeFacts=ou;let go=!1,mc;function zp(jt){"__debugFlowFlags"in jt||Object.defineProperties(jt,{__tsDebuggerDisplay:{value(){let ea=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",Ti=this.flags&-2048;return`${ea}${Ti?` (${Sc(Ti)})`:""}`}},__debugFlowFlags:{get(){return co(this.flags,cYe,!0)}},__debugToString:{value(){return cb(this)}}})}function Rh(jt){return go&&(typeof Object.setPrototypeOf=="function"?(mc||(mc=Object.create(Object.prototype),zp(mc)),Object.setPrototypeOf(jt,mc)):zp(jt)),jt}e.attachFlowNodeDebugInfo=Rh;let K0;function rf(jt){"__tsDebuggerDisplay"in jt||Object.defineProperties(jt,{__tsDebuggerDisplay:{value(ea){return ea=String(ea).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${ea}`}}})}function vx(jt){go&&(typeof Object.setPrototypeOf=="function"?(K0||(K0=Object.create(Array.prototype),rf(K0)),Object.setPrototypeOf(jt,K0)):rf(jt))}e.attachNodeArrayDebugInfo=vx;function dy(){if(go)return;let jt=new WeakMap,ea=new WeakMap;Object.defineProperties(Ey.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let En=this.flags&33554432?"TransientSymbol":"Symbol",Zc=this.flags&-33554433;return`${En} '${pYe(this)}'${Zc?` (${Wn(Zc)})`:""}`}},__debugFlags:{get(){return Wn(this.flags)}}}),Object.defineProperties(Ey.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let En=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Zc=this.flags&524288?this.objectFlags&-1344:0;return`${En}${this.symbol?` '${pYe(this.symbol)}'`:""}${Zc?` (${Us(Zc)})`:""}`}},__debugFlags:{get(){return Na(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Us(this.objectFlags):""}},__debugTypeToString:{value(){let En=jt.get(this);return En===void 0&&(En=this.checker.typeToString(this),jt.set(this,En)),En}}}),Object.defineProperties(Ey.getSignatureConstructor().prototype,{__debugFlags:{get(){return hs(this.flags)}},__debugSignatureToString:{value(){var En;return(En=this.checker)==null?void 0:En.signatureToString(this)}}});let Ti=[Ey.getNodeConstructor(),Ey.getIdentifierConstructor(),Ey.getTokenConstructor(),Ey.getSourceFileConstructor()];for(let En of Ti)T8(En.prototype,"__debugKind")||Object.defineProperties(En.prototype,{__tsDebuggerDisplay:{value(){return`${iee(this)?"GeneratedIdentifier":Kd(this)?`Identifier '${Ek(this)}'`:NV(this)?`PrivateIdentifier '${Ek(this)}'`:uee(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:dee(this)?`NumericLiteral ${this.text}`:Hsn(this)?`BigIntLiteral ${this.text}n`:aUt(this)?"TypeParameterDeclaration":xDe(this)?"ParameterDeclaration":sUt(this)?"ConstructorDeclaration":yYe(this)?"GetAccessorDeclaration":EDe(this)?"SetAccessorDeclaration":rcn(this)?"CallSignatureDeclaration":ncn(this)?"ConstructSignatureDeclaration":cUt(this)?"IndexSignatureDeclaration":icn(this)?"TypePredicateNode":lUt(this)?"TypeReferenceNode":uUt(this)?"FunctionTypeNode":pUt(this)?"ConstructorTypeNode":ocn(this)?"TypeQueryNode":acn(this)?"TypeLiteralNode":scn(this)?"ArrayTypeNode":ccn(this)?"TupleTypeNode":ucn(this)?"OptionalTypeNode":pcn(this)?"RestTypeNode":_cn(this)?"UnionTypeNode":dcn(this)?"IntersectionTypeNode":fcn(this)?"ConditionalTypeNode":mcn(this)?"InferTypeNode":hcn(this)?"ParenthesizedTypeNode":gcn(this)?"ThisTypeNode":ycn(this)?"TypeOperatorNode":vcn(this)?"IndexedAccessTypeNode":Scn(this)?"MappedTypeNode":bcn(this)?"LiteralTypeNode":lcn(this)?"NamedTupleMember":xcn(this)?"ImportTypeNode":ol(this.kind)}${this.flags?` (${an(this.flags)})`:""}`}},__debugKind:{get(){return ol(this.kind)}},__debugNodeFlags:{get(){return an(this.flags)}},__debugModifierFlags:{get(){return li(isn(this))}},__debugTransformFlags:{get(){return Wi(this.transformFlags)}},__debugIsParseTreeNode:{get(){return vDe(this)}},__debugEmitFlags:{get(){return Bo(lee(this))}},__debugGetText:{value(Zc){if(YY(this))return"";let Jl=ea.get(this);if(Jl===void 0){let zd=yon(this),pu=zd&&hB(zd);Jl=pu?rBt(pu,zd,Zc):"",ea.set(this,Jl)}return Jl}}});go=!0}e.enableDebugInfo=dy;function vm(jt){let ea=jt&7,Ti=ea===0?"in out":ea===3?"[bivariant]":ea===2?"in":ea===1?"out":ea===4?"[independent]":"";return jt&8?Ti+=" (unmeasurable)":jt&16&&(Ti+=" (unreliable)"),Ti}e.formatVariance=vm;class O1{__debugToString(){var ea;switch(this.kind){case 3:return((ea=this.debugInfo)==null?void 0:ea.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return $jt(this.sources,this.targets||oYe(this.sources,()=>"any"),(Ti,En)=>`${Ti.__debugTypeToString()} -> ${typeof En=="string"?En:En.__debugTypeToString()}`).join(", ");case 2:return $jt(this.sources,this.targets,(Ti,En)=>`${Ti.__debugTypeToString()} -> ${En().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +`)+i}function zZe(e){if(!Mu(e))return!1;let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var wU=new WeakMap;function VZe(e){return wU.has(e)||wU.set(e,zZe(e)),wU.get(e)}var JZe=VZe;function KZe(e,t){let r=e.node;if(bD(r))return t.originalText.slice(Xr(r),Jr(r)).trimEnd();if(JZe(r))return GZe(r);if(Mu(r))return["/*",gg(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function GZe(e){let t=e.value.split(` +`);return["/*",pn(Be,t.map((r,n)=>n===0?r.trimEnd():" "+(na.type==="ForOfStatement")?.left;if(i&&Ps(i,a=>a===r))return!0}if(n==="object"&&r.name==="let"&&o.type==="MemberExpression"&&o.computed&&!o.optional){let i=e.findAncestor(s=>s.type==="ExpressionStatement"||s.type==="ForStatement"||s.type==="ForInStatement"),a=i?i.type==="ExpressionStatement"?i.expression:i.type==="ForStatement"?i.init:i.left:void 0;if(a&&Ps(a,s=>s===r))return!0}if(n==="expression")switch(r.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let i=e.findAncestor(a=>!Nu(a));if(i!==o&&i.type==="ExpressionStatement")return!0}}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let i=e.findAncestor(a=>a.type==="ExpressionStatement")?.expression;if(i&&Ps(i,a=>a===r))return!0}if(r.type==="ObjectExpression"){let i=e.findAncestor(a=>a.type==="ArrowFunctionExpression")?.body;if(i&&i.type!=="SequenceExpression"&&i.type!=="AssignmentExpression"&&Ps(i,a=>a===r))return!0}switch(o.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&&jo(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return g_e(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"&&!YZe(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(i,a)=>a==="returnType"&&i.type==="ArrowFunctionExpression")&&WZe(r))return!0;break;case"BinaryExpression":if(n==="left"&&(o.operator==="in"||o.operator==="instanceof")&&r.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(n==="init"&&e.match(void 0,void 0,(i,a)=>a==="declarations"&&i.type==="VariableDeclaration",(i,a)=>a==="left"&&i.type==="ForInStatement"))return!0;break}switch(r.type){case"UpdateExpression":if(o.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&o.operator==="+"||r.operator==="--"&&o.operator==="-");case"UnaryExpression":switch(o.type){case"UnaryExpression":return r.operator===o.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&o.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(o.type==="UpdateExpression"||r.operator==="in"&&ZZe(e))return!0;if(r.operator==="|>"&&r.extra?.parenthesized){let i=e.grandparent;if(i.type==="BinaryExpression"&&i.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(o.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!Nu(r);case"ConditionalExpression":return Nu(r)||dGe(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||Nu(r));case"LogicalExpression":if(r.type==="LogicalExpression")return o.operator!==r.operator;case"BinaryExpression":{let{operator:i,type:a}=r;if(!i&&a!=="TSTypeAssertion")return!0;let s=M3(i),c=o.operator,p=M3(c);return!!(p>s||n==="right"&&p===s||p===s&&!sz(c,i)||p");default:return!1}case"TSFunctionType":if(e.match(i=>i.type==="TSFunctionType",(i,a)=>a==="typeAnnotation"&&i.type==="TSTypeAnnotation",(i,a)=>a==="returnType"&&i.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(n==="extendsType"&&Km(r)&&o.type===r.type||n==="checkType"&&Km(o))return!0;if(n==="extendsType"&&o.type==="TSConditionalType"){let{typeAnnotation:i}=r.returnType||r.typeAnnotation;if(i.type==="TSTypePredicate"&&i.typeAnnotation&&(i=i.typeAnnotation.typeAnnotation),i.type==="TSInferType"&&i.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(od(o)||ED(o))return!0;case"TSInferType":if(r.type==="TSInferType"){if(o.type==="TSRestType")return!1;if(n==="types"&&(o.type==="TSUnionType"||o.type==="TSIntersectionType")&&r.typeParameter.type==="TSTypeParameter"&&r.typeParameter.constraint)return!0}case"TSTypeOperator":return o.type==="TSArrayType"||o.type==="TSOptionalType"||o.type==="TSRestType"||n==="objectType"&&o.type==="TSIndexedAccessType"||o.type==="TSTypeOperator"||o.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&o.type==="TSIndexedAccessType"||n==="elementType"&&o.type==="TSArrayType";case"TypeOperator":return o.type==="ArrayTypeAnnotation"||o.type==="NullableTypeAnnotation"||n==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType")||o.type==="TypeOperator";case"TypeofTypeAnnotation":return n==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType")||n==="elementType"&&o.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return o.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return o.type==="TypeOperator"||o.type==="KeyofTypeAnnotation"||o.type==="ArrayTypeAnnotation"||o.type==="NullableTypeAnnotation"||o.type==="IntersectionTypeAnnotation"||o.type==="UnionTypeAnnotation"||n==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return o.type==="ArrayTypeAnnotation"||n==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(r.type==="ComponentTypeAnnotation"&&(r.rendersType===null||r.rendersType===void 0))return!1;if(e.match(void 0,(a,s)=>s==="typeAnnotation"&&a.type==="TypeAnnotation",(a,s)=>s==="returnType"&&a.type==="ArrowFunctionExpression")||e.match(void 0,(a,s)=>s==="typeAnnotation"&&a.type==="TypePredicate",(a,s)=>s==="typeAnnotation"&&a.type==="TypeAnnotation",(a,s)=>s==="returnType"&&a.type==="ArrowFunctionExpression"))return!0;let i=o.type==="NullableTypeAnnotation"?e.grandparent:o;return i.type==="UnionTypeAnnotation"||i.type==="IntersectionTypeAnnotation"||i.type==="ArrayTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType")||n==="checkType"&&o.type==="ConditionalTypeAnnotation"||n==="extendsType"&&o.type==="ConditionalTypeAnnotation"&&r.returnType?.type==="InferTypeAnnotation"&&r.returnType?.typeParameter.bound||i.type==="NullableTypeAnnotation"||o.type==="FunctionTypeParam"&&o.name===null&&ss(r).some(a=>a.typeAnnotation?.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return n==="objectType"&&o.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&o.type==="ExpressionStatement"&&typeof o.directive!="string"){let i=e.grandparent;return i.type==="Program"||i.type==="BlockStatement"}return n==="object"&&Mo(o)&&nd(r);case"AssignmentExpression":return!((n==="init"||n==="update")&&o.type==="ForStatement"||n==="expression"&&r.left.type!=="ObjectPattern"&&o.type==="ExpressionStatement"||n==="key"&&o.type==="TSPropertySignature"||o.type==="AssignmentExpression"||n==="expressions"&&o.type==="SequenceExpression"&&e.match(void 0,void 0,(i,a)=>(a==="init"||a==="update")&&i.type==="ForStatement")||n==="value"&&o.type==="Property"&&e.match(void 0,void 0,(i,a)=>a==="properties"&&i.type==="ObjectPattern")||o.type==="NGChainedExpression"||n==="node"&&o.type==="JsExpressionRoot");case"ConditionalExpression":switch(o.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(o.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(o.type){case"BinaryExpression":return o.operator!=="|>"||r.extra?.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":case"MatchExpressionCase":return!0;case"TSInstantiationExpression":return n==="expression";case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":return o.type==="NewExpression"?n==="callee":!1;case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(XZe(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(o.type==="BindExpression"||o.type==="NewExpression")){let i=r;for(;i;)switch(i.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":i=i.object;break;case"TaggedTemplateExpression":i=i.tag;break;case"TSNonNullExpression":i=i.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(o.type==="BindExpression"||o.type==="NewExpression")||n==="object"&&Mo(o);case"NGPipeExpression":return!(o.type==="NGRoot"||o.type==="NGMicrosyntaxExpression"||o.type==="ObjectProperty"&&!r.extra?.parenthesized||Fa(o)||n==="arguments"&&jn(o)||n==="right"&&o.type==="NGPipeExpression"||n==="property"&&o.type==="MemberExpression"||o.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&o.type==="BinaryExpression"&&o.operator==="<"||!Fa(o)&&o.type!=="ArrowFunctionExpression"&&o.type!=="AssignmentExpression"&&o.type!=="AssignmentPattern"&&o.type!=="BinaryExpression"&&o.type!=="NewExpression"&&o.type!=="ConditionalExpression"&&o.type!=="ExpressionStatement"&&o.type!=="JsExpressionRoot"&&o.type!=="JSXAttribute"&&o.type!=="JSXElement"&&o.type!=="JSXExpressionContainer"&&o.type!=="JSXFragment"&&o.type!=="LogicalExpression"&&!jn(o)&&!Gm(o)&&o.type!=="ReturnStatement"&&o.type!=="ThrowStatement"&&o.type!=="TypeCastExpression"&&o.type!=="VariableDeclarator"&&o.type!=="YieldExpression"&&o.type!=="MatchExpressionCase";case"TSInstantiationExpression":return n==="object"&&Mo(o);case"MatchOrPattern":return o.type==="MatchAsPattern"}return!1}var HZe=wr(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function ZZe(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if(n?.type==="ForStatement"&&n.init===r)return!0;r=n}return!1}function WZe(e){return FU(e,t=>t.type==="ObjectTypeAnnotation"&&FU(t,r=>r.type==="FunctionTypeAnnotation"))}function QZe(e){return Ru(e)}function pD(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(pD);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(pD);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(pD);break;case"UnaryExpression":if(t.prefix)return e.callParent(pD);break}return!1}function g_e(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!qU(e,t):!nz(r)||n.type!=="ExportDefaultDeclaration"&&qU(e,t)?!1:e.call(()=>g_e(e,t),...Cde(r))}function XZe(e){return!!(e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&(t.type==="CallExpression"||t.type==="NewExpression"))||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression")||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression")&&(e.match(void 0,void 0,(t,r)=>r==="callee"&&(t.type==="CallExpression"&&!t.optional||t.type==="NewExpression")||r==="object"&&t.type==="MemberExpression"&&!t.optional)||e.match(void 0,void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))}function UU(e){return e.type==="Identifier"?!0:Mo(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&UU(e.object):!1}function YZe(e){return e.type==="ChainExpression"&&(e=e.expression),UU(e)||jn(e)&&!e.optional&&UU(e.callee)}var Qm=qU;function eWe(e,t){let r=t-1;r=Jv(e,r,{backwards:!0}),r=Kv(e,r,{backwards:!0}),r=Jv(e,r,{backwards:!0});let n=Kv(e,r,{backwards:!0});return r!==n}var tWe=eWe,rWe=()=>!0;function gz(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function nWe(e,t){let r=e.node,n=[gz(e,t)],{printer:o,originalText:i,locStart:a,locEnd:s}=t;if(o.isBlockComment?.(r)){let p=nc(i,s(r))?nc(i,a(r),{backwards:!0})?Be:at:" ";n.push(p)}else n.push(Be);let c=Kv(i,Jv(i,s(r)));return c!==!1&&nc(i,c)&&n.push(Be),n}function oWe(e,t,r){let n=e.node,o=gz(e,t),{printer:i,originalText:a,locStart:s}=t,c=i.isBlockComment?.(n);if(r?.hasLineSuffix&&!r?.isBlock||nc(a,s(n),{backwards:!0})){let p=tWe(a,s(n));return{doc:Xpe([Be,p?Be:"",o]),isBlock:c,hasLineSuffix:!0}}return!c||r?.hasLineSuffix?{doc:[Xpe([" ",o]),V_],isBlock:c,hasLineSuffix:!0}:{doc:[" ",o],isBlock:c,hasLineSuffix:!1}}function $o(e,t,r={}){let{node:n}=e;if(!jo(n?.comments))return"";let{indent:o=!1,marker:i,filter:a=rWe}=r,s=[];if(e.each(({node:p})=>{p.leading||p.trailing||p.marker!==i||!a(p)||s.push(gz(e,t))},"comments"),s.length===0)return"";let c=pn(Be,s);return o?Fe([Be,c]):c}function G3(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(s=>!n.has(s)).length===0)return{leading:"",trailing:""};let o=[],i=[],a;return e.each(()=>{let s=e.node;if(n?.has(s))return;let{leading:c,trailing:p}=s;c?o.push(nWe(e,t)):p&&(a=oWe(e,t,a),i.push(a.doc))},"comments"),{leading:o,trailing:i}}function Rl(e,t,r){let{leading:n,trailing:o}=G3(e,r);return!n&&!o?t:MU(t,i=>[n,i,o])}var q3=class extends Error{name="ArgExpansionBailout"};function wg(e,t,r,n,o){let i=e.node,a=ss(i),s=o&&i.typeParameters?r("typeParameters"):"";if(a.length===0)return[s,"(",$o(e,t,{filter:y=>Lu(t.originalText,Jr(y))===")"}),")"];let{parent:c}=e,p=J3(c),d=S_e(i),f=[];if(wGe(e,(y,g)=>{let S=g===a.length-1;S&&i.rest&&f.push("..."),f.push(r()),!S&&(f.push(","),p||d?f.push(" "):cd(a[g],t)?f.push(Be,Be):f.push(at))}),n&&!aWe(e)){if(Os(s)||Os(f))throw new q3;return de([B3(s),"(",B3(f),")"])}let m=a.every(y=>!jo(y.decorators));return d&&m?[s,"(",...f,")"]:p?[s,"(",...f,")"]:(Nde(c)||hGe(c)||c.type==="TypeAlias"||c.type==="UnionTypeAnnotation"||c.type==="IntersectionTypeAnnotation"||c.type==="FunctionTypeAnnotation"&&c.returnType===i)&&a.length===1&&a[0].name===null&&i.this!==a[0]&&a[0].typeAnnotation&&i.typeParameters===null&&iz(a[0].typeAnnotation)&&!i.rest?t.arrowParens==="always"||i.type==="HookTypeAnnotation"?["(",...f,")"]:f:[s,"(",Fe([Pe,...f]),Sr(!AGe(i)&&sd(t,"all")?",":""),Pe,")"]}function S_e(e){if(!e)return!1;let t=ss(e);if(t.length!==1)return!1;let[r]=t;return!rt(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&Jm(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&Jm(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||Ru(r.right)&&r.right.properties.length===0||Fa(r.right)&&r.right.elements.length===0))}function iWe(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function e1(e,t){let r=iWe(e);if(!r)return!1;let n=e.typeParameters?.params;if(n){if(n.length>1)return!1;if(n.length===1){let o=n[0];if(o.constraint||o.default)return!1}}return ss(e).length===1&&(Jm(r)||Os(t))}function aWe(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function sWe(e){let t=ss(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}function _D(e,t){return(t==="params"||t==="this"||t==="rest")&&S_e(e)}function Ns(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":jn(t)||Mo(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function v_e(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var cWe=wr(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function Bc(e){let{node:t}=e;return t.declare||cWe(t)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var lWe=wr(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function H3({node:e}){return e.abstract||lWe(e)?"abstract ":""}function zm(e,t,r){return e.type==="EmptyStatement"?rt(e,St.Leading)?[" ",t]:t:e.type==="BlockStatement"||r?[" ",t]:Fe([at,t])}function Z3(e){return e.accessibility?e.accessibility+" ":""}var uWe=/^[\$A-Z_a-z\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\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\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\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][\$0-9A-Z_a-z\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\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\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\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\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\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-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\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\u200C\u200D\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\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]*$/,pWe=e=>uWe.test(e),dWe=pWe;function _We(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var Wv=_We,fWe=0;function b_e(e,t,r){let{node:n,parent:o,grandparent:i,key:a}=e,s=a!=="body"&&(o.type==="IfStatement"||o.type==="WhileStatement"||o.type==="SwitchStatement"||o.type==="DoWhileStatement"),c=n.operator==="|>"&&e.root.extra?.__isUsingHackPipeline,p=zU(e,t,r,!1,s);if(s)return p;if(c)return de(p);if(a==="callee"&&(jn(o)||o.type==="NewExpression")||o.type==="UnaryExpression"||Mo(o)&&!o.computed)return de([Fe([Pe,...p]),Pe]);let d=o.type==="ReturnStatement"||o.type==="ThrowStatement"||o.type==="JSXExpressionContainer"&&i.type==="JSXAttribute"||n.operator!=="|"&&o.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(o.type==="NGRoot"&&t.parser==="__ng_binding"||o.type==="NGMicrosyntaxExpression"&&i.type==="NGMicrosyntax"&&i.body.length===1)||n===o.body&&o.type==="ArrowFunctionExpression"||n!==o.body&&o.type==="ForStatement"||o.type==="ConditionalExpression"&&i.type!=="ReturnStatement"&&i.type!=="ThrowStatement"&&!jn(i)&&i.type!=="NewExpression"||o.type==="TemplateLiteral"||hWe(e),f=o.type==="AssignmentExpression"||o.type==="VariableDeclarator"||o.type==="ClassProperty"||o.type==="PropertyDefinition"||o.type==="TSAbstractPropertyDefinition"||o.type==="ClassPrivateProperty"||Gm(o),m=U_(n.left)&&sz(n.operator,n.left.operator);if(d||SD(n)&&!m||!SD(n)&&f)return de(p);if(p.length===0)return"";let y=_a(n.right),g=p.findIndex(C=>typeof C!="string"&&!Array.isArray(C)&&C.type===Ll),S=p.slice(0,g===-1?1:g+1),x=p.slice(S.length,y?-1:void 0),A=Symbol("logicalChain-"+ ++fWe),I=de([...S,Fe(x)],{id:A});if(!y)return I;let E=Jn(0,p,-1);return de([I,gD(E,{groupId:A})])}function zU(e,t,r,n,o){let{node:i}=e;if(!U_(i))return[de(r())];let a=[];sz(i.operator,i.left.operator)?a=e.call(()=>zU(e,t,r,!0,o),"left"):a.push(de(r("left")));let s=SD(i),c=i.right.type==="ChainExpression"?i.right.expression:i.right,p=(i.operator==="|>"||i.type==="NGPipeExpression"||mWe(e,t))&&!Fu(t.originalText,c),d=!rt(c,St.Leading,Ude)&&Fu(t.originalText,c),f=i.type==="NGPipeExpression"?"|":i.operator,m=i.type==="NGPipeExpression"&&i.arguments.length>0?de(Fe([Pe,": ",pn([at,": "],e.map(()=>$u(2,de(r())),"arguments"))])):"",y;if(s)y=[f,Fu(t.originalText,c)?Fe([at,r("right"),m]):[" ",r("right"),m]];else{let x=f==="|>"&&e.root.extra?.__isUsingHackPipeline?e.call(()=>zU(e,t,r,!0,o),"right"):r("right");if(t.experimentalOperatorPosition==="start"){let A="";if(d)switch(Wm(x)){case z_:A=x.splice(0,1)[0];break;case J_:A=x.contents.splice(0,1)[0];break}y=[at,A,f," ",x,m]}else y=[p?at:"",f,p?" ":at,x,m]}let{parent:g}=e,S=rt(i.left,St.Trailing|St.Line);if((S||!(o&&i.type==="LogicalExpression")&&g.type!==i.type&&i.left.type!==i.type&&i.right.type!==i.type)&&(y=de(y,{shouldBreak:S})),t.experimentalOperatorPosition==="start"?a.push(s||d?" ":"",y):a.push(p?"":" ",y),n&&rt(i)){let x=hz(Rl(e,a,t));return x.type===Hm?x.parts:Array.isArray(x)?x:[x]}return a}function SD(e){return e.type!=="LogicalExpression"?!1:!!(Ru(e.right)&&e.right.properties.length>0||Fa(e.right)&&e.right.elements.length>0||_a(e.right))}var nde=e=>e.type==="BinaryExpression"&&e.operator==="|";function mWe(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&nde(e.node)&&!e.hasAncestor(r=>!nde(r)&&r.type!=="JsExpressionRoot")}function hWe(e){if(e.key!=="arguments")return!1;let{parent:t}=e;if(!(jn(t)&&!t.optional&&t.arguments.length===1))return!1;let{callee:r}=t;return r.type==="Identifier"&&r.name==="Boolean"}function x_e(e,t,r){let{node:n}=e,{parent:o}=e,i=o.type!=="TypeParameterInstantiation"&&(!Km(o)||!t.experimentalTernaries)&&o.type!=="TSTypeParameterInstantiation"&&o.type!=="GenericTypeAnnotation"&&o.type!=="TSTypeReference"&&o.type!=="TSTypeAssertion"&&o.type!=="TupleTypeAnnotation"&&o.type!=="TSTupleType"&&!(o.type==="FunctionTypeParam"&&!o.name&&e.grandparent.this!==o)&&!((LU(o)||o.type==="VariableDeclarator")&&Fu(t.originalText,n))&&!(LU(o)&&rt(o.id,St.Trailing|St.Line)),a=E_e(n),s=e.map(()=>{let y=r();return a||(y=$u(2,y)),Rl(e,y,t)},"types"),c="",p="";if(Bde(e)&&({leading:c,trailing:p}=G3(e,t)),a)return[c,pn(" | ",s),p];let d=i&&!Fu(t.originalText,n),f=[Sr([d?at:"","| "]),pn([at,"| "],s)];if(Qm(e,t))return[c,de([Fe(f),Pe]),p];let m=[c,de(f)];return(o.type==="TupleTypeAnnotation"||o.type==="TSTupleType")&&o[o.type==="TupleTypeAnnotation"&&o.types?"types":"elementTypes"].length>1?[de([Fe([Sr(["(",Pe]),m]),Pe,Sr(")")]),p]:[de(i?Fe(m):m),p]}var yWe=wr(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),gWe=wr(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function E_e(e){let{types:t}=e;if(t.some(n=>rt(n)))return!1;let r=t.find(n=>gWe(n));return r?t.every(n=>n===r||yWe(n)):!1}function SWe(e){return iz(e)||Jm(e)?!0:od(e)?E_e(e):!1}var vWe=new WeakSet;function Na(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let o=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let i=e.call(T_e,r);(i==="=>"||i===":"&&rt(n,St.Leading))&&(o=!0),vWe.add(n)}return o?[" ",t(r)]:t(r)}var T_e=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function D_e(e,t,r){let n=T_e(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function bWe(e,t,r,n){let{node:o}=e,i=o.inexact?"...":"";return rt(o,St.Dangling)?de([r,i,$o(e,t,{indent:!0}),Pe,n]):[r,i,n]}function Sz(e,t,r){let{node:n}=e,o=[],i="[",a="]",s=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",c=n[s];if(c.length===0)o.push(bWe(e,t,i,a));else{let p=Jn(0,c,-1),d=p?.type!=="RestElement"&&!n.inexact,f=p===null,m=Symbol("array"),y=!t.__inJestEach&&c.length>1&&c.every((x,A,I)=>{let E=x?.type;if(!Fa(x)&&!Ru(x))return!1;let C=I[A+1];if(C&&E!==C.type)return!1;let F=Fa(x)?"elements":"properties";return x[F]&&x[F].length>1}),g=A_e(n,t),S=d?f?",":sd(t)?g?Sr(",","",{groupId:m}):Sr(","):"":"";o.push(de([i,Fe([Pe,g?EWe(e,t,r,S):[xWe(e,t,r,s,n.inexact),S],$o(e,t)]),Pe,a],{shouldBreak:y,id:m}))}return o.push(Ns(e),Na(e,r)),o}function A_e(e,t){return Fa(e)&&e.elements.length>0&&e.elements.every(r=>r&&(nd(r)||Pde(r)&&!rt(r.argument))&&!rt(r,St.Trailing|St.Line,n=>!nc(t.originalText,Xr(n),{backwards:!0})))}function w_e({node:e},{originalText:t}){let r=Jr(e);if(r===Xr(e))return!1;let{length:n}=t;for(;r{i.push(a?de(r()):""),(!s||o)&&i.push([",",at,a&&w_e(e,t)?Pe:""])},n),o&&i.push("..."),i}function EWe(e,t,r,n){let o=[];return e.each(({isLast:i,next:a})=>{o.push([r(),i?n:","]),i||o.push(w_e(e,t)?[Be,Be]:rt(a,St.Leading|St.Line)?Be:at)},"elements"),o_e(o)}function TWe(e,t,r){let{node:n}=e,o=qc(n);if(o.length===0)return["(",$o(e,t),")"];let i=o.length-1;if(wWe(o)){let f=["("];return j3(e,(m,y)=>{f.push(r()),y!==i&&f.push(", ")}),f.push(")"),f}let a=!1,s=[];j3(e,({node:f},m)=>{let y=r();m===i||(cd(f,t)?(a=!0,y=[y,",",Be,Be]):y=[y,",",at]),s.push(y)});let c=!t.parser.startsWith("__ng_")&&n.type!=="ImportExpression"&&n.type!=="TSImportType"&&n.type!=="TSExternalModuleReference"&&sd(t,"all")?",":"";function p(){return de(["(",Fe([at,...s]),c,at,")"],{shouldBreak:!0})}if(a||e.parent.type!=="Decorator"&&xGe(o))return p();if(AWe(o)){let f=s.slice(1);if(f.some(Os))return p();let m;try{m=r(Hpe(n,0),{expandFirstArg:!0})}catch(y){if(y instanceof q3)return p();throw y}return Os(m)?[V_,hg([["(",de(m,{shouldBreak:!0}),", ",...f,")"],p()])]:hg([["(",m,", ",...f,")"],["(",de(m,{shouldBreak:!0}),", ",...f,")"],p()])}if(DWe(o,s,t)){let f=s.slice(0,-1);if(f.some(Os))return p();let m;try{m=r(Hpe(n,-1),{expandLastArg:!0})}catch(y){if(y instanceof q3)return p();throw y}return Os(m)?[V_,hg([["(",...f,de(m,{shouldBreak:!0}),")"],p()])]:hg([["(",...f,m,")"],["(",...f,de(m,{shouldBreak:!0}),")"],p()])}let d=["(",Fe([Pe,...s]),Sr(c),Pe,")"];return Mde(e)?d:de(d,{shouldBreak:s.some(Os)||a})}function fD(e,t=!1){return Ru(e)&&(e.properties.length>0||rt(e))||Fa(e)&&(e.elements.length>0||rt(e))||e.type==="TSTypeAssertion"&&fD(e.expression)||Nu(e)&&fD(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||IWe(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&fD(e.body,!0)||Ru(e.body)||Fa(e.body)||!t&&(jn(e.body)||e.body.type==="ConditionalExpression")||_a(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function DWe(e,t,r){let n=Jn(0,e,-1);if(e.length===1){let i=Jn(0,t,-1);if(i.label?.embed&&i.label?.hug!==!1)return!0}let o=Jn(0,e,-2);return!rt(n,St.Leading)&&!rt(n,St.Trailing)&&fD(n)&&(!o||o.type!==n.type)&&(e.length!==2||o.type!=="ArrowFunctionExpression"||!Fa(n))&&!(e.length>1&&A_e(n,r))}function AWe(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&kWe(r)?!0:!rt(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&I_e(r)&&!fD(r)}function I_e(e){if(e.type==="ParenthesizedExpression")return I_e(e.expression);if(Nu(e)||e.type==="TypeCastExpression"){let{typeAnnotation:t}=e;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let r=t.type==="GenericTypeAnnotation"?t.typeParameters:t.typeArguments;r?.params.length===1&&(t=r.params[0])}return iz(t)&&Ou(e.expression,1)}return Zv(e)&&qc(e).length>1?!1:U_(e)?Ou(e.left,1)&&Ou(e.right,1):Ode(e)||Ou(e)}function wWe(e){return e.length===2?ode(e,0):e.length===3?e[0].type==="Identifier"&&ode(e,1):!1}function ode(e,t){let r=e[t],n=e[t+1];return r.type==="ArrowFunctionExpression"&&ss(r).length===0&&r.body.type==="BlockStatement"&&n.type==="ArrayExpression"&&!e.some(o=>rt(o))}function IWe(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||rt(e,St.Dangling))}function kWe(e){if(!(e.type==="ObjectExpression"&&e.properties.length===1))return!1;let[t]=e.properties;return Gm(t)?!t.computed&&(t.key.type==="Identifier"&&t.key.name==="type"||fa(t.key)&&t.key.value==="type")&&fa(t.value)&&t.value.value==="module":!1}var VU=TWe;function CWe(e,t,r){return[r("object"),de(Fe([Pe,k_e(e,t,r)]))]}function k_e(e,t,r){return["::",r("callee")]}var PWe=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),jn(e)&&qc(e).length>0);function OWe(e){let{node:t,ancestors:r}=e;for(let n of r){if(!(Mo(n)&&n.object===t||n.type==="TSNonNullExpression"&&n.expression===t))return n.type==="NewExpression"&&n.callee===t;t=n}return!1}function NWe(e,t,r){let n=r("object"),o=C_e(e,t,r),{node:i}=e,a=e.findAncestor(p=>!(Mo(p)||p.type==="TSNonNullExpression")),s=e.findAncestor(p=>!(p.type==="ChainExpression"||p.type==="TSNonNullExpression")),c=a.type==="BindExpression"||a.type==="AssignmentExpression"&&a.left.type!=="Identifier"||OWe(e)||i.computed||i.object.type==="Identifier"&&i.property.type==="Identifier"&&!Mo(s)||(s.type==="AssignmentExpression"||s.type==="VariableDeclarator")&&(PWe(i.object)||n.label?.memberChain);return TD(n.label,[n,c?o:de(Fe([Pe,o]))])}function C_e(e,t,r){let n=r("property"),{node:o}=e,i=Ns(e);return o.computed?!o.property||nd(o.property)?[i,"[",n,"]"]:de([i,"[",Fe([Pe,n]),Pe,"]"]):[i,".",n]}function P_e(e,t,r){if(e.node.type==="ChainExpression")return e.call(()=>P_e(e,t,r),"expression");let n=(e.parent.type==="ChainExpression"?e.grandparent:e.parent).type==="ExpressionStatement",o=[];function i(Ve){let{originalText:me}=t,xe=Qv(me,Jr(Ve));return me.charAt(xe)===")"?xe!==!1&&ez(me,xe+1):cd(Ve,t)}function a(){let{node:Ve}=e;if(Ve.type==="ChainExpression")return e.call(a,"expression");if(jn(Ve)&&(zv(Ve.callee)||jn(Ve.callee))){let me=i(Ve);o.unshift({node:Ve,hasTrailingEmptyLine:me,printed:[Rl(e,[Ns(e),r("typeArguments"),VU(e,t,r)],t),me?Be:""]}),e.call(a,"callee")}else zv(Ve)?(o.unshift({node:Ve,needsParens:Qm(e,t),printed:Rl(e,Mo(Ve)?C_e(e,t,r):k_e(e,t,r),t)}),e.call(a,"object")):Ve.type==="TSNonNullExpression"?(o.unshift({node:Ve,printed:Rl(e,"!",t)}),e.call(a,"expression")):o.unshift({node:Ve,printed:r()})}let{node:s}=e;o.unshift({node:s,printed:[Ns(e),r("typeArguments"),VU(e,t,r)]}),s.callee&&e.call(a,"callee");let c=[],p=[o[0]],d=1;for(;d0&&c.push(p);function m(Ve){return/^[A-Z]|^[$_]+$/u.test(Ve)}function y(Ve){return Ve.length<=t.tabWidth}function g(Ve){let me=Ve[1][0]?.node.computed;if(Ve[0].length===1){let Rt=Ve[0][0].node;return Rt.type==="ThisExpression"||Rt.type==="Identifier"&&(m(Rt.name)||n&&y(Rt.name)||me)}let xe=Jn(0,Ve[0],-1).node;return Mo(xe)&&xe.property.type==="Identifier"&&(m(xe.property.name)||me)}let S=c.length>=2&&!rt(c[1][0].node)&&g(c);function x(Ve){let me=Ve.map(xe=>xe.printed);return Ve.length>0&&Jn(0,Ve,-1).needsParens?["(",...me,")"]:me}function A(Ve){return Ve.length===0?"":Fe([Be,pn(Be,Ve.map(x))])}let I=c.map(x),E=I,C=S?3:2,F=c.flat(),O=F.slice(1,-1).some(Ve=>rt(Ve.node,St.Leading))||F.slice(0,-1).some(Ve=>rt(Ve.node,St.Trailing))||c[C]&&rt(c[C][0].node,St.Leading);if(c.length<=C&&!O&&!c.some(Ve=>Jn(0,Ve,-1).hasTrailingEmptyLine))return Mde(e)?E:de(E);let $=Jn(0,c[S?1:0],-1).node,N=!jn($)&&i($),U=[x(c[0]),S?c.slice(1,2).map(x):"",N?Be:"",A(c.slice(S?2:1))],ge=o.map(({node:Ve})=>Ve).filter(jn);function Te(){let Ve=Jn(0,Jn(0,c,-1),-1).node,me=Jn(0,I,-1);return jn(Ve)&&Os(me)&&ge.slice(0,-1).some(xe=>xe.arguments.some(hD))}let ke;return O||ge.length>2&&ge.some(Ve=>!Ve.arguments.every(me=>Ou(me)))||I.slice(0,-1).some(Os)||Te()?ke=de(U):ke=[Os(E)||N?V_:"",hg([E,U])],TD({memberChain:!0},ke)}var FWe=P_e;function U3(e,t,r){let{node:n}=e,o=n.type==="NewExpression",i=Ns(e),a=qc(n),s=n.type!=="TSImportType"&&n.typeArguments?r("typeArguments"):"",c=a.length===1&&Lde(a[0],t.originalText);if(c||LWe(e)||$We(e)||J3(n,e.parent)){let f=[];if(j3(e,()=>{f.push(r())}),!(c&&f[0].label?.embed))return[o?"new ":"",ide(e,r),i,s,"(",pn(", ",f),")"]}let p=n.type==="ImportExpression"||n.type==="TSImportType"||n.type==="TSExternalModuleReference";if(!p&&!o&&zv(n.callee)&&!e.call(()=>Qm(e,t),"callee",...n.callee.type==="ChainExpression"?["expression"]:[]))return FWe(e,t,r);let d=[o?"new ":"",ide(e,r),i,s,VU(e,t,r)];return p||jn(n.callee)?de(d):d}function ide(e,t){let{node:r}=e;return r.type==="ImportExpression"?`import${r.phase?`.${r.phase}`:""}`:r.type==="TSImportType"?"import":r.type==="TSExternalModuleReference"?"require":t("callee")}var RWe=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function LWe(e){let{node:t}=e;if(!(t.type==="ImportExpression"||t.type==="TSImportType"||t.type==="TSExternalModuleReference"||t.type==="CallExpression"&&!t.optional&&tz(t.callee,RWe)))return!1;let r=qc(t);return r.length===1&&fa(r[0])&&!rt(r[0])}function $We(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let r=qc(t);return t.callee.name==="require"?(r.length===1&&fa(r[0])||r.length>1)&&!rt(r[0]):t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&fa(r[0])&&r[1].type==="ArrayExpression":!1}function DD(e,t,r,n,o,i){let a=BWe(e,t,r,n,i),s=i?r(i,{assignmentLayout:a}):"";switch(a){case"break-after-operator":return de([de(n),o,de(Fe([at,s]))]);case"never-break-after-operator":return de([de(n),o," ",s]);case"fluid":{let c=Symbol("assignment");return de([de(n),o,de(Fe(at),{id:c}),ad,gD(s,{groupId:c})])}case"break-lhs":return de([n,o," ",de(s)]);case"chain":return[de(n),o,at,s];case"chain-tail":return[de(n),o,Fe([at,s])];case"chain-tail-arrow-chain":return[de(n),o,s];case"only-left":return n}}function MWe(e,t,r){let{node:n}=e;return DD(e,t,r,r("left"),[" ",n.operator],"right")}function jWe(e,t,r){return DD(e,t,r,r("id")," =","init")}function BWe(e,t,r,n,o){let{node:i}=e,a=i[o];if(!a)return"only-left";let s=!R3(a);if(e.match(R3,O_e,d=>!s||d.type!=="ExpressionStatement"&&d.type!=="VariableDeclaration"))return s?a.type==="ArrowFunctionExpression"&&a.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!s&&R3(a.right)||Fu(t.originalText,a))return"break-after-operator";if(i.type==="ImportAttribute"||a.type==="CallExpression"&&a.callee.name==="require"||t.parser==="json5"||t.parser==="jsonc"||t.parser==="json")return"never-break-after-operator";let c=NHe(n);if(UWe(i)||JWe(i)||N_e(i)&&c)return"break-lhs";let p=KWe(i,n,t);return e.call(()=>qWe(e,t,r,p),o)?"break-after-operator":zWe(i)?"break-lhs":!c&&(p||a.type==="TemplateLiteral"||a.type==="TaggedTemplateExpression"||_Ge(a)||nd(a)||a.type==="ClassExpression")?"never-break-after-operator":"fluid"}function qWe(e,t,r,n){let o=e.node;if(U_(o)&&!SD(o))return!0;switch(o.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!ZWe(o))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:p}=o;return U_(p)&&!SD(p)}let{consequent:s,alternate:c}=o;return s.type==="ConditionalExpression"||c.type==="ConditionalExpression"}case"ClassExpression":return jo(o.decorators)}if(n)return!1;let i=o,a=[];for(;;)if(i.type==="UnaryExpression"||i.type==="AwaitExpression"||i.type==="YieldExpression"&&i.argument!==null)i=i.argument,a.push("argument");else if(i.type==="TSNonNullExpression")i=i.expression,a.push("expression");else break;return!!(fa(i)||e.call(()=>F_e(e,t,r),...a))}function UWe(e){if(O_e(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>Gm(r)&&(!r.shorthand||r.value?.type==="AssignmentPattern"))}return!1}function R3(e){return e.type==="AssignmentExpression"}function O_e(e){return R3(e)||e.type==="VariableDeclarator"}function zWe(e){let t=VWe(e);if(jo(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}function VWe(e){if(LU(e))return e.typeParameters?.params}function JWe(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=ade(t.typeAnnotation);return jo(r)&&r.length>1&&r.some(n=>jo(ade(n))||n.type==="TSConditionalType")}function N_e(e){return e.type==="VariableDeclarator"&&e.init?.type==="ArrowFunctionExpression"}function ade(e){let t;switch(e.type){case"GenericTypeAnnotation":t=e.typeParameters;break;case"TSTypeReference":t=e.typeArguments;break}return t?.params}function F_e(e,t,r,n=!1){let{node:o}=e,i=()=>F_e(e,t,r,!0);if(o.type==="ChainExpression"||o.type==="TSNonNullExpression")return e.call(i,"expression");if(jn(o)){if(U3(e,t,r).label?.memberChain)return!1;let a=qc(o);return!(a.length===0||a.length===1&&az(a[0],t))||GWe(o,r)?!1:e.call(i,"callee")}return Mo(o)?e.call(i,"object"):n&&(o.type==="Identifier"||o.type==="ThisExpression")}function KWe(e,t,r){return Gm(e)?(t=hz(t),typeof t=="string"&&Vv(t)1)return!0;if(r.length===1){let o=r[0];if(od(o)||ED(o)||o.type==="TSTypeLiteral"||o.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(Os(t(n)))return!0}return!1}function HWe(e){return(e.typeParameters??e.typeArguments)?.params}function sde(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!e.typeArguments;default:return!1}}function ZWe(e){return sde(e.checkType)||sde(e.extendsType)}var L3=new WeakMap;function R_e(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function cde(e,t){return t.parser==="json"||t.parser==="jsonc"||!fa(e.key)||Gv(oc(e.key),t).slice(1,-1)!==e.key.value?!1:!!(dWe(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||(t.parser==="typescript"||t.parser==="oxc-ts")&&e.type==="PropertyDefinition")||R_e(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!=="ImportAttribute"&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="oxc"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function WWe(e,t){let{key:r}=e.node;return(r.type==="Identifier"||nd(r)&&R_e(Wv(oc(r)))&&String(r.value)===Wv(oc(r))&&!(t.parser==="typescript"||t.parser==="babel-ts"||t.parser==="oxc-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&L3.get(e.parent))}function AD(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:o}=e,{key:i}=n;if(t.quoteProps==="consistent"&&!L3.has(o)){let a=e.siblings.some(s=>!s.computed&&fa(s.key)&&!cde(s,t));L3.set(o,a)}if(WWe(e,t)){let a=Gv(JSON.stringify(i.type==="Identifier"?i.name:i.value.toString()),t);return e.call(()=>Rl(e,a,t),"key")}return cde(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!L3.get(o))?e.call(()=>Rl(e,/^\d/u.test(i.value)?Wv(i.value):i.value,t),"key"):r("key")}function IU(e,t,r){let{node:n}=e;return n.shorthand?r("value"):DD(e,t,r,AD(e,t,r),":","value")}var QWe=({node:e,key:t,parent:r})=>t==="value"&&e.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&&xD(r));function L_e(e,t,r,n){if(QWe(e))return vz(e,t,r);let{node:o}=e,i=!1;if((o.type==="FunctionDeclaration"||o.type==="FunctionExpression")&&n?.expandLastArg){let{parent:d}=e;jn(d)&&(qc(d).length>1||ss(o).every(f=>f.type==="Identifier"&&!f.typeAnnotation))&&(i=!0)}let a=[Bc(e),o.async?"async ":"",`function${o.generator?"*":""} `,o.id?r("id"):""],s=wg(e,t,r,i),c=W3(e,r),p=e1(o,c);return a.push(r("typeParameters"),de([p?de(s):s,c]),o.body?" ":"",r("body")),t.semi&&(o.declare||!o.body)&&a.push(";"),a}function JU(e,t,r){let{node:n}=e,{kind:o}=n,i=n.value||n,a=[];return!o||o==="init"||o==="method"||o==="constructor"?i.async&&a.push("async "):(Sg(o==="get"||o==="set"),a.push(o," ")),i.generator&&a.push("*"),a.push(AD(e,t,r),n.optional?"?":"",n===i?vz(e,t,r):r("value")),a}function vz(e,t,r){let{node:n}=e,o=wg(e,t,r),i=W3(e,r),a=sWe(n),s=e1(n,i),c=[r("typeParameters"),de([a?de(o,{shouldBreak:!0}):s?de(o):o,i])];return n.body?c.push(" ",r("body")):c.push(t.semi?";":""),c}function XWe(e){let t=ss(e);return t.length===1&&!e.typeParameters&&!rt(e,St.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!rt(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function $_e(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return XWe(r)}return!1}function W3(e,t){let{node:r}=e,n=[Na(e,t,"returnType")];return r.predicate&&n.push(t("predicate")),n}function M_e(e,t,r){let{node:n}=e,o=[];if(n.argument){let s=r("argument");tQe(t,n.argument)?s=["(",Fe([Be,s]),Be,")"]:(U_(n.argument)||t.experimentalTernaries&&n.argument.type==="ConditionalExpression"&&(n.argument.consequent.type==="ConditionalExpression"||n.argument.alternate.type==="ConditionalExpression"))&&(s=de([Sr("("),Fe([Pe,s]),Pe,Sr(")")])),o.push(" ",s)}let i=rt(n,St.Dangling),a=t.semi&&i&&rt(n,St.Last|St.Line);return a&&o.push(";"),i&&o.push(" ",$o(e,t)),!a&&t.semi&&o.push(";"),o}function YWe(e,t,r){return["return",M_e(e,t,r)]}function eQe(e,t,r){return["throw",M_e(e,t,r)]}function tQe(e,t){if(Fu(e.originalText,t)||rt(t,St.Leading,r=>jc(e.originalText,Xr(r),Jr(r)))&&!_a(t))return!0;if(nz(t)){let r=t,n;for(;n=uGe(r);)if(r=n,Fu(e.originalText,r))return!0}return!1}function rQe(e,t){if(t.semi||B_e(e,t)||U_e(e,t)||q_e(e,t))return!1;let{node:r,key:n,parent:o}=e;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(o.type==="Program"||o.type==="BlockStatement"||o.type==="StaticBlock"||o.type==="TSModuleBlock")||n==="consequent"&&o.type==="SwitchCase")&&e.call(()=>j_e(e,t),"expression"))}function j_e(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!$_e(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:o}=r;if(n&&(o==="+"||o==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(_a(r))return!0}return Qm(e,t)?!0:nz(r)?e.call(()=>j_e(e,t),...Cde(r)):!1}var bz=({node:e,parent:t})=>e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1&&(Array.isArray(t.directives)&&t.directives.length===0||!t.directives);function B_e(e,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&bz(e)&&_a(e.node.expression)}function q_e(e,t){return t.__isHtmlInlineEventHandler&&bz(e)}function U_e(e,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&bz(e)}var nQe=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},t1=nQe;function oQe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var iQe=class{#t;constructor(e){this.#t=new Set(e)}getLeadingWhitespaceCount(e){let t=this.#t,r=0;for(let n=0;n=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return this.#t.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#t.has(Jn(0,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${oQe([...this.#t].join(""))}]+`,n=new RegExp(t?`(${r})`:r,"u");return e.split(n)}hasWhitespaceCharacter(e){let t=this.#t;return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=this.#t;return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=this.#t;return Array.prototype.every.call(e,r=>t.has(r))}#r(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split(` +`)){if(r.length===0)continue;let n=this.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&nr.slice(t)).join(` +`)}},aQe=iQe,$3=new aQe(` +\r `),kU=e=>e===""||e===at||e===Be||e===Pe;function sQe(e,t,r){let{node:n}=e;if(n.type==="JSXElement"&&EQe(n))return[r("openingElement"),r("closingElement")];let o=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),i=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[o,...e.map(r,"children"),i];n.children=n.children.map(E=>TQe(E)?{type:"JSXText",value:" ",raw:" "}:E);let a=n.children.some(_a),s=n.children.filter(E=>E.type==="JSXExpressionContainer").length>1,c=n.type==="JSXElement"&&n.openingElement.attributes.length>1,p=Os(o)||a||c||s,d=e.parent.rootMarker==="mdx",f=t.singleQuote?"{' '}":'{" "}',m=d?at:Sr([f,Pe]," "),y=n.openingElement?.name?.name==="fbt",g=cQe(e,t,r,m,y),S=n.children.some(E=>vD(E));for(let E=g.length-2;E>=0;E--){let C=g[E]===""&&g[E+1]==="",F=g[E]===Be&&g[E+1]===""&&g[E+2]===Be,O=(g[E]===Pe||g[E]===Be)&&g[E+1]===""&&g[E+2]===m,$=g[E]===m&&g[E+1]===""&&(g[E+2]===Pe||g[E+2]===Be),N=g[E]===m&&g[E+1]===""&&g[E+2]===m,U=g[E]===Pe&&g[E+1]===""&&g[E+2]===Be||g[E]===Be&&g[E+1]===""&&g[E+2]===Pe;F&&S||C||O||N||U?g.splice(E,2):$&&g.splice(E+1,2)}for(;g.length>0&&kU(Jn(0,g,-1));)g.pop();for(;g.length>1&&kU(g[0])&&kU(g[1]);)g.shift(),g.shift();let x=[""];for(let[E,C]of g.entries()){if(C===m){if(E===1&&FHe(g[E-1])){if(g.length===2){x.push([x.pop(),f]);continue}x.push([f,Be],"");continue}else if(E===g.length-1){x.push([x.pop(),f]);continue}else if(g[E-1]===""&&g[E-2]===Be){x.push([x.pop(),f]);continue}}E%2===0?x.push([x.pop(),C]):x.push(C,""),Os(C)&&(p=!0)}let A=S?o_e(x):de(x,{shouldBreak:!0});if(t.cursorNode?.type==="JSXText"&&n.children.includes(t.cursorNode)?A=[O3,A,O3]:t.nodeBeforeCursor?.type==="JSXText"&&n.children.includes(t.nodeBeforeCursor)?A=[O3,A]:t.nodeAfterCursor?.type==="JSXText"&&n.children.includes(t.nodeAfterCursor)&&(A=[A,O3]),d)return A;let I=de([o,Fe([Be,A]),Be,i]);return p?I:hg([de([o,...g,i]),I])}function cQe(e,t,r,n,o){let i="",a=[i];function s(p){i=p,a.push([a.pop(),p])}function c(p){p!==""&&(i=p,a.push(p,""))}return e.each(({node:p,next:d})=>{if(p.type==="JSXText"){let f=oc(p);if(vD(p)){let m=$3.split(f,!0);m[0]===""&&(m.shift(),/\n/u.test(m[0])?c(ude(o,m[1],p,d)):c(n),m.shift());let y;if(Jn(0,m,-1)===""&&(m.pop(),y=m.pop()),m.length===0)return;for(let[g,S]of m.entries())g%2===1?c(at):s(S);y!==void 0?/\n/u.test(y)?c(ude(o,i,p,d)):c(n):c(lde(o,i,p,d))}else/\n/u.test(f)?f.match(/\n/gu).length>1&&c(Be):c(n)}else{let f=r();if(s(f),d&&vD(d)){let m=$3.trim(oc(d)),[y]=$3.split(m);c(lde(o,y,p,d))}else c(Be)}},"children"),a}function lde(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||n?.type==="JSXElement"&&!n.closingElement?t.length===1?Pe:Be:Pe}function ude(e,t,r,n){return e?Be:t.length===1?r.type==="JSXElement"&&!r.closingElement||n?.type==="JSXElement"&&!n.closingElement?Be:Pe:Be}var lQe=wr(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function uQe(e,t,r){let{parent:n}=e;if(lQe(n))return t;let o=pQe(e),i=Qm(e,r);return de([i?"":Sr("("),Fe([Pe,t]),Pe,i?"":Sr(")")],{shouldBreak:o})}function pQe(e){return e.match(void 0,(t,r)=>r==="body"&&t.type==="ArrowFunctionExpression",(t,r)=>r==="arguments"&&jn(t))&&(e.match(void 0,void 0,void 0,(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer")||e.match(void 0,void 0,void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer"))}function dQe(e,t,r){let{node:n}=e,o=[r("name")];if(n.value){let i;if(fa(n.value)){let a=oc(n.value),s=da(0,da(0,a.slice(1,-1),"'","'"),""",'"'),c=Tde(s,t.jsxSingleQuote);s=c==='"'?da(0,s,'"',"""):da(0,s,"'","'"),i=e.call(()=>Rl(e,gg(c+s+c),t),"value")}else i=r("value");o.push("=",i)}return o}function _Qe(e,t,r){let{node:n}=e,o=(i,a)=>i.type==="JSXEmptyExpression"||!rt(i)&&(Fa(i)||Ru(i)||i.type==="ArrowFunctionExpression"||i.type==="AwaitExpression"&&(o(i.argument,i)||i.argument.type==="JSXElement")||jn(i)||i.type==="ChainExpression"&&jn(i.expression)||i.type==="FunctionExpression"||i.type==="TemplateLiteral"||i.type==="TaggedTemplateExpression"||i.type==="DoExpression"||_a(a)&&(i.type==="ConditionalExpression"||U_(i)));return o(n.expression,e.parent)?de(["{",r("expression"),ad,"}"]):de(["{",Fe([Pe,r("expression")]),Pe,ad,"}"])}function fQe(e,t,r){let{node:n}=e,o=rt(n.name)||rt(n.typeArguments);if(n.selfClosing&&n.attributes.length===0&&!o)return["<",r("name"),r("typeArguments")," />"];if(n.attributes?.length===1&&fa(n.attributes[0].value)&&!n.attributes[0].value.value.includes(` +`)&&!o&&!rt(n.attributes[0]))return de(["<",r("name"),r("typeArguments")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let i=n.attributes?.some(s=>fa(s.value)&&s.value.value.includes(` +`)),a=t.singleAttributePerLine&&n.attributes.length>1?Be:at;return de(["<",r("name"),r("typeArguments"),Fe(e.map(()=>[a,r()],"attributes")),...mQe(n,t,o)],{shouldBreak:i})}function mQe(e,t,r){return e.selfClosing?[at,"/>"]:hQe(e,t,r)?[">"]:[Pe,">"]}function hQe(e,t,r){let n=e.attributes.length>0&&rt(Jn(0,e.attributes,-1),St.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function yQe(e,t,r){let{node:n}=e,o=[""),o}function gQe(e,t){let{node:r}=e,n=rt(r),o=rt(r,St.Line),i=r.type==="JSXOpeningFragment";return[i?"<":""]}function SQe(e,t,r){let n=Rl(e,sQe(e,t,r),t);return uQe(e,n,t)}function vQe(e,t){let{node:r}=e,n=rt(r,St.Line);return[$o(e,t,{indent:n}),n?Be:""]}function bQe(e,t,r){let{node:n}=e;return["{",e.call(({node:o})=>{let i=["...",r()];return rt(o)?[Fe([Pe,Rl(e,i,t)]),Pe]:i},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function xQe(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return dQe(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return pn(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return pn(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return bQe(e,t,r);case"JSXExpressionContainer":return _Qe(e,t,r);case"JSXFragment":case"JSXElement":return SQe(e,t,r);case"JSXOpeningElement":return fQe(e,t,r);case"JSXClosingElement":return yQe(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return gQe(e,t);case"JSXEmptyExpression":return vQe(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new t1(n,"JSX")}}function EQe(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!vD(t)}function vD(e){return e.type==="JSXText"&&($3.hasNonWhitespaceCharacter(oc(e))||!/\n/u.test(oc(e)))}function TQe(e){return e.type==="JSXExpressionContainer"&&fa(e.expression)&&e.expression.value===" "&&!rt(e.expression)}function DQe(e){let{node:t,parent:r}=e;if(!_a(t)||!_a(r))return!1;let{index:n,siblings:o}=e,i;for(let a=n;a>0;a--){let s=o[a-1];if(!(s.type==="JSXText"&&!vD(s))){i=s;break}}return i?.type==="JSXExpressionContainer"&&i.expression.type==="JSXEmptyExpression"&&K3(i.expression)}function AQe(e){return K3(e.node)||DQe(e)}var xz=AQe;function wQe(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return r("node");case"NGPipeExpression":return b_e(e,t,r);case"NGChainedExpression":return de(pn([";",at],e.map(()=>CQe(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":pde(e)?" ":[";",at],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:o,parent:i}=e,a=pde(e)||IQe(e)||(o===1&&(n.key.name==="then"||n.key.name==="else"||n.key.name==="as")||o===2&&(n.key.name==="else"&&i.body[o-1].type==="NGMicrosyntaxKeyedExpression"&&i.body[o-1].key.name==="then"||n.key.name==="track"))&&i.body[0].type==="NGMicrosyntaxExpression";return[r("key"),a?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new t1(n,"Angular")}}function pde({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}function IQe(e){let{node:t}=e;return e.parent.body[1].key.name==="of"&&t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="track"&&t.key.type==="NGMicrosyntaxKey"}var kQe=wr(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function CQe({node:e}){return FU(e,kQe)}function z_e(e,t,r){let{node:n}=e;return de([pn(at,e.map(r,"decorators")),V_e(n,t)?Be:at])}function PQe(e,t,r){return J_e(e.node)?[pn(Be,e.map(r,"declaration","decorators")),Be]:""}function OQe(e,t,r){let{node:n,parent:o}=e,{decorators:i}=n;if(!jo(i)||J_e(o)||xz(e))return"";let a=n.type==="ClassExpression"||n.type==="ClassDeclaration"||V_e(n,t);return[e.key==="declaration"&&pGe(o)?Be:a?V_:"",pn(at,e.map(r,"decorators")),at]}function V_e(e,t){return e.decorators.some(r=>nc(t.originalText,Jr(r)))}function J_e(e){if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=e.declaration?.decorators;return jo(t)&&V3(e,t[0])}var CU=new WeakMap;function K_e(e){return CU.has(e)||CU.set(e,e.type==="ConditionalExpression"&&!Ps(e,t=>t.type==="ObjectExpression")),CU.get(e)}var NQe=e=>e.type==="SequenceExpression";function FQe(e,t,r,n={}){let o=[],i,a=[],s=!1,c=!n.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",p;(function A(){let{node:I}=e,E=RQe(e,t,r,n);if(o.length===0)o.push(E);else{let{leading:C,trailing:F}=G3(e,t);o.push([C,E]),a.unshift(F)}c&&(s||(s=I.returnType&&ss(I).length>0||I.typeParameters||ss(I).some(C=>C.type!=="Identifier"))),!c||I.body.type!=="ArrowFunctionExpression"?(i=r("body",n),p=I.body):e.call(A,"body")})();let d=!Fu(t.originalText,p)&&(NQe(p)||LQe(p,i,t)||!s&&K_e(p)),f=e.key==="callee"&&Zv(e.parent),m=Symbol("arrow-chain"),y=$Qe(e,n,{signatureDocs:o,shouldBreak:s}),g=!1,S=!1,x=!1;return c&&(f||n.assignmentLayout)&&(S=!0,x=!rt(e.node,St.Leading&St.Line),g=n.assignmentLayout==="chain-tail-arrow-chain"||f&&!d),i=MQe(e,t,n,{bodyDoc:i,bodyComments:a,functionBody:p,shouldPutBodyOnSameLine:d}),de([de(S?Fe([x?Pe:"",y]):y,{shouldBreak:g,id:m})," =>",c?gD(i,{groupId:m}):de(i),c&&f?Sr(Pe,"",{groupId:m}):""])}function RQe(e,t,r,n){let{node:o}=e,i=[];if(o.async&&i.push("async "),$_e(e,t))i.push(r(["params",0]));else{let s=n.expandLastArg||n.expandFirstArg,c=W3(e,r);if(s){if(Os(c))throw new q3;c=de(B3(c))}i.push(de([wg(e,t,r,s,!0),c]))}let a=$o(e,t,{filter(s){let c=Qv(t.originalText,Jr(s));return c!==!1&&t.originalText.slice(c,c+2)==="=>"}});return a&&i.push(" ",a),i}function LQe(e,t,r){return Fa(e)||Ru(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||_a(e)||t.label?.hug!==!1&&(t.label?.embed||Lde(e,r.originalText))}function $Qe(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:o,key:i}=e;return i!=="callee"&&Zv(o)||U_(o)?de([r[0]," =>",Fe([at,pn([" =>",at],r.slice(1))])],{shouldBreak:n}):i==="callee"&&Zv(o)||t.assignmentLayout?de(pn([" =>",at],r),{shouldBreak:n}):de(Fe(pn([" =>",at],r)),{shouldBreak:n})}function MQe(e,t,r,{bodyDoc:n,bodyComments:o,functionBody:i,shouldPutBodyOnSameLine:a}){let{node:s,parent:c}=e,p=r.expandLastArg&&sd(t,"all")?Sr(","):"",d=(r.expandLastArg||c.type==="JSXExpressionContainer")&&!rt(s)?Pe:"";return a&&K_e(i)?[" ",de([Sr("","("),Fe([Pe,n]),Sr("",")"),p,d]),o]:a?[" ",n,o]:[Fe([at,n,o]),p,d]}var jQe=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},BQe=QU("findLast",function(){if(Array.isArray(this))return jQe}),qQe=BQe;function KU(e,t,r,n){let{node:o}=e,i=[],a=qQe(0,o[n],s=>s.type!=="EmptyStatement");return e.each(({node:s})=>{s.type!=="EmptyStatement"&&(i.push(r()),s!==a&&(i.push(Be),cd(s,t)&&i.push(Be)))},n),i}function G_e(e,t,r){let n=UQe(e,t,r),{node:o,parent:i}=e;if(o.type==="Program"&&i?.type!=="ModuleExpression")return n?[n,Be]:"";let a=[];if(o.type==="StaticBlock"&&a.push("static "),a.push("{"),n)a.push(Fe([Be,n]),Be);else{let s=e.grandparent;i.type==="ArrowFunctionExpression"||i.type==="FunctionExpression"||i.type==="FunctionDeclaration"||i.type==="ComponentDeclaration"||i.type==="HookDeclaration"||i.type==="ObjectMethod"||i.type==="ClassMethod"||i.type==="ClassPrivateMethod"||i.type==="ForStatement"||i.type==="WhileStatement"||i.type==="DoWhileStatement"||i.type==="DoExpression"||i.type==="ModuleExpression"||i.type==="CatchClause"&&!s.finalizer||i.type==="TSModuleDeclaration"||i.type==="MatchStatementCase"||o.type==="StaticBlock"||a.push(Be)}return a.push("}"),a}function UQe(e,t,r){let{node:n}=e,o=jo(n.directives),i=n.body.some(c=>c.type!=="EmptyStatement"),a=rt(n,St.Dangling);if(!o&&!i&&!a)return"";let s=[];return o&&(s.push(KU(e,t,r,"directives")),(i||a)&&(s.push(Be),cd(Jn(0,n.directives,-1),t)&&s.push(Be))),i&&s.push(KU(e,t,r,"body")),a&&s.push($o(e,t)),s}function zQe(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var VQe=zQe;function Ez(e,t,r){let{node:n}=e,o=[],i=n.type==="ObjectTypeAnnotation",a=!H_e(e),s=a?at:Be,c=rt(n,St.Dangling),[p,d]=i&&n.exact?["{|","|}"]:"{}",f;if(JQe(e,({node:m,next:y,isLast:g})=>{if(f??(f=m),o.push(r()),a&&i){let{parent:S}=e;S.inexact||!g?o.push(","):sd(t)&&o.push(Sr(","))}!a&&(KQe({node:m,next:y},t)||W_e({node:m,next:y},t))&&o.push(";"),g||(o.push(s),cd(m,t)&&o.push(Be))}),c&&o.push($o(e,t)),n.type==="ObjectTypeAnnotation"&&n.inexact){let m;rt(n,St.Dangling)?m=[rt(n,St.Line)||nc(t.originalText,Jr(Jn(0,yg(n),-1)))?Be:at,"..."]:m=[f?at:"","..."],o.push(m)}if(a){let m=c||t.objectWrap==="preserve"&&f&&jc(t.originalText,Xr(n),Xr(f)),y;if(o.length===0)y=p+d;else{let g=t.bracketSpacing?at:Pe;y=[p,Fe([g,...o]),g,d]}return e.match(void 0,(g,S)=>S==="typeAnnotation",(g,S)=>S==="typeAnnotation",_D)||e.match(void 0,(g,S)=>g.type==="FunctionTypeParam"&&S==="typeAnnotation",_D)?y:de(y,{shouldBreak:m})}return[p,o.length>0?[Fe([Be,o]),Be]:"",d]}function H_e(e){let{node:t}=e;if(t.type==="ObjectTypeAnnotation"){let{key:r,parent:n}=e;return r==="body"&&(n.type==="InterfaceDeclaration"||n.type==="DeclareInterface"||n.type==="DeclareClass")}return t.type==="ClassBody"||t.type==="TSInterfaceBody"}function JQe(e,t){let{node:r}=e;if(r.type==="ClassBody"||r.type==="TSInterfaceBody"){e.each(t,"body");return}if(r.type==="TSTypeLiteral"){e.each(t,"members");return}if(r.type==="ObjectTypeAnnotation"){let n=["properties","indexers","callProperties","internalSlots"].flatMap(o=>e.map(({node:i,index:a})=>({node:i,loc:Xr(i),selector:[o,a]}),o)).sort((o,i)=>o.loc-i.loc);for(let[o,{node:i,selector:a}]of n.entries())e.call(()=>t({node:i,next:n[o+1]?.node,isLast:o===n.length-1}),...a)}}function q_(e,t){let{parent:r}=e;return e.callParent(H_e)?t.semi||r.type==="ObjectTypeAnnotation"?";":"":r.type==="TSTypeLiteral"?e.isLast?t.semi?Sr(";"):"":t.semi||W_e({node:e.node,next:e.next},t)?";":Sr("",";"):""}var dde=wr(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),Z_e=e=>{if(e.computed||e.typeAnnotation)return!1;let{type:t,name:r}=e.key;return t==="Identifier"&&(r==="static"||r==="get"||r==="set")};function KQe({node:e,next:t},r){if(r.semi||!dde(e))return!1;if(!e.value&&Z_e(e))return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let n=t.key?.name;if(n==="in"||n==="instanceof")return!0}if(dde(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let n=t.value?t.value.generator:t.generator;return!!(t.computed||n)}case"TSIndexSignature":return!0}return!1}var GQe=wr(["TSPropertySignature"]);function W_e({node:e,next:t},r){return r.semi||!GQe(e)?!1:Z_e(e)?!0:t?t.type==="TSCallSignatureDeclaration":!1}var HQe=VQe("heritageGroup"),ZQe=wr(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function Tz(e,t,r){let{node:n}=e,o=ZQe(n),i=[Bc(e),H3(e),o?"interface":"class"],a=X_e(e),s=[],c=[];if(n.type!=="InterfaceTypeAnnotation"){n.id&&s.push(" ");for(let d of["id","typeParameters"])if(n[d]){let{leading:f,trailing:m}=e.call(()=>G3(e,t),d);s.push(f,r(d),Fe(m))}}if(n.superClass){let d=[XQe(e,t,r),r(n.superTypeArguments?"superTypeArguments":"superTypeParameters")],f=e.call(()=>["extends ",Rl(e,d,t)],"superClass");a?c.push(at,de(f)):c.push(" ",f)}else c.push(OU(e,t,r,"extends"));c.push(OU(e,t,r,"mixins"),OU(e,t,r,"implements"));let p;return a?(p=HQe(n),i.push(de([...s,Fe(c)],{id:p}))):i.push(...s,...c),!o&&a&&WQe(n.body)?i.push(Sr(Be," ",{groupId:p})):i.push(" "),i.push(r("body")),i}function WQe(e){return e.type==="ObjectTypeAnnotation"?["properties","indexers","callProperties","internalSlots"].some(t=>jo(e[t])):jo(e.body)}function Q_e(e){let t=e.superClass?1:0;for(let r of["extends","mixins","implements"])if(Array.isArray(e[r])&&(t+=e[r].length),t>1)return!0;return t>1}function QQe(e){let{node:t}=e;if(rt(t.id,St.Trailing)||rt(t.typeParameters,St.Trailing)||rt(t.superClass)||Q_e(t))return!0;if(t.superClass)return e.parent.type==="AssignmentExpression"?!1:!(t.superTypeArguments??t.superTypeParameters)&&Mo(t.superClass);let r=t.extends?.[0]??t.mixins?.[0]??t.implements?.[0];return r?r.type==="InterfaceExtends"&&r.id.type==="QualifiedTypeIdentifier"&&!r.typeParameters||(r.type==="TSClassImplements"||r.type==="TSInterfaceHeritage")&&Mo(r.expression)&&!r.typeArguments:!1}var PU=new WeakMap;function X_e(e){let{node:t}=e;return PU.has(t)||PU.set(t,QQe(e)),PU.get(t)}function OU(e,t,r,n){let{node:o}=e;if(!jo(o[n]))return"";let i=$o(e,t,{marker:n}),a=pn([",",at],e.map(r,n));if(!Q_e(o)){let s=[`${n} `,i,a];return X_e(e)?[at,de(s)]:[" ",s]}return[at,i,i&&Be,n,de(Fe([at,a]))]}function XQe(e,t,r){let n=r("superClass"),{parent:o}=e;return o.type==="AssignmentExpression"?de(Sr(["(",Fe([Pe,n]),Pe,")"],n)):n}function Y_e(e,t,r){let{node:n}=e,o=[];return jo(n.decorators)&&o.push(z_e(e,t,r)),o.push(Z3(n)),n.static&&o.push("static "),o.push(H3(e)),n.override&&o.push("override "),o.push(JU(e,t,r)),o}function efe(e,t,r){let{node:n}=e,o=[];jo(n.decorators)&&o.push(z_e(e,t,r)),o.push(Bc(e),Z3(n)),n.static&&o.push("static "),o.push(H3(e)),n.override&&o.push("override "),n.readonly&&o.push("readonly "),n.variance&&o.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&o.push("accessor "),o.push(AD(e,t,r),Ns(e),v_e(e),Na(e,r));let i=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[DD(e,t,r,o," =",i?void 0:"value"),t.semi?";":""]}var YQe=wr(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function tfe(e){return YQe(e)?tfe(e.expression):e}var eXe=wr(["FunctionExpression","ArrowFunctionExpression"]);function tXe(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function rXe(e,t){if(U_e(e,t)){let r=tfe(e.node.expression);return eXe(r)||tXe(r)}return!(!t.semi||B_e(e,t)||q_e(e,t))}function nXe(e,t,r){return[r("expression"),rXe(e,t)?";":""]}function oXe(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(n.length===1)return n[0];let o=pn([",",at],n);return t.__isVueForBindingLeft?["(",Fe([Pe,de(o)]),Pe,")"]:o}if(t.__isEmbeddedTypescriptGenericParameters){let n=e.map(r,"program","body",0,"typeParameters","params");return pn([",",at],n)}}function iXe(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return _de(r);case"BigIntLiteral":return GU(r.extra.raw);case"NumericLiteral":return Wv(r.extra.raw);case"StringLiteral":return gg(Gv(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return fde(r.extra.raw,t);case"Literal":{if(r.regex)return _de(r.regex);if(r.bigint)return GU(r.raw);let{value:n}=r;return typeof n=="number"?Wv(r.raw):typeof n=="string"?aXe(e)?fde(r.raw,t):gg(Gv(r.raw,t)):String(n)}}}function aXe(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&typeof t.directive=="string"}function GU(e){return e.toLowerCase()}function _de({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}var sXe="use strict";function fde(e,t){let r=e.slice(1,-1);if(r===sXe||!(r.includes('"')||r.includes("'"))){let n=t.singleQuote?"'":'"';return n+r+n}return e}function cXe(e,t,r){let n=e.originalText.slice(t,r);for(let o of e[Symbol.for("comments")]){let i=Xr(o);if(i>r)break;let a=Jr(o);if(ax.value&&(x.value.type==="ObjectPattern"||x.value.type==="ArrayPattern"))||n.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&d.length>0&&uXe(n,d[0],t),m=[],y=e.map(({node:x})=>{let A=[...m,de(r())];return m=[",",at],cd(x,t)&&m.push(Be),A},p);if(c){let x;if(rt(n,St.Dangling)){let A=rt(n,St.Line);x=[$o(e,t),A||nc(t.originalText,Jr(Jn(0,yg(n),-1)))?Be:at,"..."]}else x=["..."];y.push([...m,...x])}let g=!(c||Jn(0,d,-1)?.type==="RestElement"),S;if(y.length===0){if(!rt(n,St.Dangling))return["{}",Na(e,r)];S=de(["{",$o(e,t,{indent:!0}),Pe,"}",Ns(e),Na(e,r)])}else{let x=t.bracketSpacing?at:Pe;S=["{",Fe([x,...y]),Sr(g&&sd(t)?",":""),x,"}",Ns(e),Na(e,r)]}return e.match(x=>x.type==="ObjectPattern"&&!jo(x.decorators),_D)||Jm(n)&&(e.match(void 0,(x,A)=>A==="typeAnnotation",(x,A)=>A==="typeAnnotation",_D)||e.match(void 0,(x,A)=>x.type==="FunctionTypeParam"&&A==="typeAnnotation",_D))||!f&&e.match(x=>x.type==="ObjectPattern",x=>x.type==="AssignmentExpression"||x.type==="VariableDeclarator")?S:de(S,{shouldBreak:f})}function uXe(e,t,r){let n=r.originalText,o=Xr(e),i=Xr(t);if(rfe(e)){let a=Xr(e),s=Q3(r,a,i);o=a+s.lastIndexOf("{")}return jc(n,o,i)}function pXe(e,t,r){let{node:n}=e;return["import",n.phase?` ${n.phase}`:"",ife(n),sfe(e,t,r),afe(e,t,r),lfe(e,t,r),t.semi?";":""]}var nfe=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function ofe(e,t,r){let{node:n}=e,o=[PQe(e,t,r),Bc(e),"export",nfe(n)?" default":""],{declaration:i,exported:a}=n;return rt(n,St.Dangling)&&(o.push(" ",$o(e,t)),$de(n)&&o.push(Be)),i?o.push(" ",r("declaration")):(o.push(fXe(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(o.push(" *"),a&&o.push(" as ",r("exported"))):o.push(sfe(e,t,r)),o.push(afe(e,t,r),lfe(e,t,r))),o.push(_Xe(n,t)),o}var dXe=wr(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function _Xe(e,t){return t.semi&&(!e.declaration||nfe(e)&&!dXe(e.declaration))?";":""}function Az(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function ife(e,t){return Az(e.importKind,t)}function fXe(e){return Az(e.exportKind)}function afe(e,t,r){let{node:n}=e;return n.source?[cfe(n,t)?" from":""," ",r("source")]:""}function sfe(e,t,r){let{node:n}=e;if(!cfe(n,t))return"";let o=[" "];if(jo(n.specifiers)){let i=[],a=[];e.each(()=>{let s=e.node.type;if(s==="ExportNamespaceSpecifier"||s==="ExportDefaultSpecifier"||s==="ImportNamespaceSpecifier"||s==="ImportDefaultSpecifier")i.push(r());else if(s==="ExportSpecifier"||s==="ImportSpecifier")a.push(r());else throw new t1(n,"specifier")},"specifiers"),o.push(pn(", ",i)),a.length>0&&(i.length>0&&o.push(", "),a.length>1||i.length>0||n.specifiers.some(s=>rt(s))?o.push(de(["{",Fe([t.bracketSpacing?at:Pe,pn([",",at],a)]),Sr(sd(t)?",":""),t.bracketSpacing?at:Pe,"}"])):o.push(["{",t.bracketSpacing?" ":"",...a,t.bracketSpacing?" ":"","}"]))}else o.push("{}");return o}function cfe(e,t){return e.type!=="ImportDeclaration"||jo(e.specifiers)||e.importKind==="type"?!0:Q3(t,Xr(e),Xr(e.source)).trimEnd().endsWith("from")}function mXe(e,t){if(e.extra?.deprecatedAssertSyntax)return"assert";let r=Q3(t,Jr(e.source),e.attributes?.[0]?Xr(e.attributes[0]):Jr(e)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||jo(e.attributes)?"with":void 0}var hXe=e=>{let{attributes:t}=e;if(t.length!==1)return!1;let[r]=t,{type:n,key:o,value:i}=r;return n==="ImportAttribute"&&(o.type==="Identifier"&&o.name==="type"||fa(o)&&o.value==="type")&&fa(i)&&!rt(r)&&!rt(o)&&!rt(i)};function lfe(e,t,r){let{node:n}=e;if(!n.source)return"";let o=mXe(n,t);if(!o)return"";let i=Dz(e,t,r);return hXe(n)&&(i=B3(i)),[` ${o} `,i]}function yXe(e,t,r){let{node:n}=e,{type:o}=n,i=o.startsWith("Import"),a=i?"imported":"local",s=i?"local":"exported",c=n[a],p=n[s],d="",f="";return o==="ExportNamespaceSpecifier"||o==="ImportNamespaceSpecifier"?d="*":c&&(d=r(a)),p&&!gXe(n)&&(f=r(s)),[Az(o==="ImportSpecifier"?n.importKind:n.exportKind,!1),d,d&&f?" as ":"",f]}function gXe(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;return t.type!==r.type||!ZKe(t,r)?!1:fa(t)?t.value===r.value&&oc(t)===oc(r):t.type==="Identifier"?t.name===r.name:!1}function HU(e,t){return["...",t("argument"),Na(e,t)]}function SXe(e){let t=[e];for(let r=0;rm[N]===n),g=m.type===n.type&&!y,S,x,A=0;do x=S||n,S=e.getParentNode(A),A++;while(S&&S.type===n.type&&s.every(N=>S[N]!==x));let I=S||m,E=x;if(o&&(_a(n[s[0]])||_a(c)||_a(p)||SXe(E))){f=!0,g=!0;let N=ge=>[Sr("("),Fe([Pe,ge]),Pe,Sr(")")],U=ge=>ge.type==="NullLiteral"||ge.type==="Literal"&&ge.value===null||ge.type==="Identifier"&&ge.name==="undefined";d.push(" ? ",U(c)?r(i):N(r(i))," : ",p.type===n.type||U(p)?r(a):N(r(a)))}else{let N=ge=>t.useTabs?Fe(r(ge)):$u(2,r(ge)),U=[at,"? ",c.type===n.type?Sr("","("):"",N(i),c.type===n.type?Sr("",")"):"",at,": ",N(a)];d.push(m.type!==n.type||m[a]===n||y?U:t.useTabs?n_e(Fe(U)):$u(Math.max(0,t.tabWidth-2),U))}let C=N=>m===I?de(N):N,F=!f&&(Mo(m)||m.type==="NGPipeExpression"&&m.left===n)&&!m.computed,O=xXe(e),$=C([vXe(e,t,r),g?d:Fe(d),o&&F&&!O?Pe:""]);return y||O?de([Fe([Pe,$]),Pe]):$}function TXe(e,t){return(Mo(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function DXe(e,t,r,n){return[...e.map(o=>yg(o)),yg(t),yg(r)].flat().some(o=>Mu(o)&&jc(n.originalText,Xr(o),Jr(o)))}var AXe=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function wXe(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let o=0;!r;o++){let i=e.getParentNode(o);if(i.type==="ChainExpression"&&i.expression===n||jn(i)&&i.callee===n||Mo(i)&&i.object===n||i.type==="TSNonNullExpression"&&i.expression===n){n=i;continue}i.type==="NewExpression"&&i.callee===n||Nu(i)&&i.expression===n?(r=e.getParentNode(o+1),n=i):r=i}return n===t?!1:r[AXe.get(r.type)]===n}var NU=e=>[Sr("("),Fe([Pe,e]),Pe,Sr(")")];function wz(e,t,r,n){if(!t.experimentalTernaries)return EXe(e,t,r);let{node:o}=e,i=o.type==="ConditionalExpression",a=Km(o),s=i?"consequent":"trueType",c=i?"alternate":"falseType",p=i?["test"]:["checkType","extendsType"],d=o[s],f=o[c],m=p.map(It=>o[It]),{parent:y}=e,g=y.type===o.type,S=g&&p.some(It=>y[It]===o),x=g&&y[c]===o,A=d.type===o.type,I=f.type===o.type,E=I||x,C=t.tabWidth>2||t.useTabs,F,O,$=0;do O=F||o,F=e.getParentNode($),$++;while(F&&F.type===o.type&&p.every(It=>F[It]!==O));let N=F||y,U=n&&n.assignmentLayout&&n.assignmentLayout!=="break-after-operator"&&(y.type==="AssignmentExpression"||y.type==="VariableDeclarator"||y.type==="ClassProperty"||y.type==="PropertyDefinition"||y.type==="ClassPrivateProperty"||y.type==="ObjectProperty"||y.type==="Property"),ge=(y.type==="ReturnStatement"||y.type==="ThrowStatement")&&!(A||I),Te=i&&N.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",ke=wXe(e),Ve=TXe(o,y),me=a&&Qm(e,t),xe=C?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",Rt=DXe(m,d,f,t)||A||I,Vt=!E&&!g&&!a&&(Te?d.type==="NullLiteral"||d.type==="Literal"&&d.value===null:az(d,t)&&Jpe(o.test,3)),Yt=E||x||a&&!g||g&&i&&Jpe(o.test,1)||Vt,vt=[];!A&&rt(d,St.Dangling)&&e.call(()=>{vt.push($o(e,t),Be)},"consequent");let Fr=[];rt(o.test,St.Dangling)&&e.call(()=>{Fr.push($o(e,t))},"test"),!I&&rt(f,St.Dangling)&&e.call(()=>{Fr.push($o(e,t))},"alternate"),rt(o,St.Dangling)&&Fr.push($o(e,t));let le=Symbol("test"),K=Symbol("consequent"),ae=Symbol("test-and-consequent"),he=i?[NU(r("test")),o.test.type==="ConditionalExpression"?V_:""]:[r("checkType")," ","extends"," ",Km(o.extendsType)||o.extendsType.type==="TSMappedType"?r("extendsType"):de(NU(r("extendsType")))],Oe=de([he," ?"],{id:le}),pt=r(s),Ye=Fe([A||Te&&(_a(d)||g||E)?Be:at,vt,pt]),lt=Yt?de([Oe,E?Ye:Sr(Ye,de(Ye,{id:K}),{groupId:le})],{id:ae}):[Oe,Ye],Nt=r(c),Ct=Vt?Sr(Nt,n_e(NU(Nt)),{groupId:ae}):Nt,Hr=[lt,Fr.length>0?[Fe([Be,Fr]),Be]:I?Be:Vt?Sr(at," ",{groupId:ae}):at,":",I?" ":C?Yt?Sr(xe,Sr(E||Vt?" ":xe," "),{groupId:ae}):Sr(xe," "):" ",I?Ct:de([Fe(Ct),Te&&!Vt?Pe:""]),Ve&&!ke?Pe:"",Rt?V_:""];return U&&!Rt?de(Fe([Pe,de(Hr)])):U||ge?de(Fe(Hr)):ke||a&&S?de([Fe([Pe,Hr]),me?Pe:""]):y===N?de(Hr):Hr}function IXe(e,t,r,n){let{node:o}=e;if(oz(o))return iXe(e,t);switch(o.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[$o(e,t),r("node"),Be];case"File":return oXe(e,t,r)??r("program");case"ExpressionStatement":return nXe(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!rt(o.expression)&&(Ru(o.expression)||Fa(o.expression))?["(",r("expression"),")"]:de(["(",Fe([Pe,r("expression")]),Pe,")"]);case"AssignmentExpression":return MWe(e,t,r);case"VariableDeclarator":return jWe(e,t,r);case"BinaryExpression":case"LogicalExpression":return b_e(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return NWe(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return CWe(e,t,r);case"Identifier":return[o.name,Ns(e),v_e(e),Na(e,r)];case"V8IntrinsicIdentifier":return["%",o.name];case"SpreadElement":return HU(e,r);case"RestElement":return HU(e,r);case"FunctionDeclaration":case"FunctionExpression":return L_e(e,t,r,n);case"ArrowFunctionExpression":return FQe(e,t,r,n);case"YieldExpression":return[`yield${o.delegate?"*":""}`,o.argument?[" ",r("argument")]:""];case"AwaitExpression":{let i=["await"];if(o.argument){i.push(" ",r("argument"));let{parent:a}=e;if(jn(a)&&a.callee===o||Mo(a)&&a.object===o){i=[Fe([Pe,...i]),Pe];let s=e.findAncestor(c=>c.type==="AwaitExpression"||c.type==="BlockStatement");if(s?.type!=="AwaitExpression"||!Ps(s.argument,c=>c===o))return de(i)}}return i}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return ofe(e,t,r);case"ImportDeclaration":return pXe(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return yXe(e,t,r);case"ImportAttribute":return IU(e,t,r);case"Program":case"BlockStatement":case"StaticBlock":return G_e(e,t,r);case"ClassBody":return Ez(e,t,r);case"ThrowStatement":return eQe(e,t,r);case"ReturnStatement":return YWe(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return U3(e,t,r);case"ObjectExpression":case"ObjectPattern":return Dz(e,t,r);case"Property":return xD(o)?JU(e,t,r):IU(e,t,r);case"ObjectProperty":return IU(e,t,r);case"ObjectMethod":return JU(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":return Sz(e,t,r);case"SequenceExpression":{let{parent:i}=e;if(i.type==="ExpressionStatement"||i.type==="ForStatement"){let s=[];return e.each(({isFirst:c})=>{c?s.push(r()):s.push(",",Fe([at,r()]))},"expressions"),de(s)}let a=pn([",",at],e.map(r,"expressions"));return(i.type==="ReturnStatement"||i.type==="ThrowStatement")&&e.key==="argument"||i.type==="ArrowFunctionExpression"&&e.key==="body"?de(Sr([Fe([Pe,a]),Pe],a)):de(a)}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),t.semi?";":""];case"UnaryExpression":{let i=[o.operator];return/[a-z]$/u.test(o.operator)&&i.push(" "),rt(o.argument)?i.push(de(["(",Fe([Pe,r("argument")]),Pe,")"])):i.push(r("argument")),i}case"UpdateExpression":return[o.prefix?o.operator:"",r("argument"),o.prefix?"":o.operator];case"ConditionalExpression":return wz(e,t,r,n);case"VariableDeclaration":{let i=e.map(r,"declarations"),a=e.parent,s=a.type==="ForStatement"||a.type==="ForInStatement"||a.type==="ForOfStatement",c=o.declarations.some(d=>d.init),p;return i.length===1&&!rt(o.declarations[0])?p=i[0]:i.length>0&&(p=Fe(i[0])),de([Bc(e),o.kind,p?[" ",p]:"",Fe(i.slice(1).map(d=>[",",c&&!s?Be:at,d])),t.semi&&!(s&&a.body!==o)?";":""])}case"WithStatement":return de(["with (",r("object"),")",zm(o.body,r("body"))]);case"IfStatement":{let i=zm(o.consequent,r("consequent")),a=[de(["if (",de([Fe([Pe,r("test")]),Pe]),")",i])];if(o.alternate){let s=rt(o.consequent,St.Trailing|St.Line)||$de(o),c=o.consequent.type==="BlockStatement"&&!s;a.push(c?" ":Be),rt(o,St.Dangling)&&a.push($o(e,t),s?Be:" "),a.push("else",de(zm(o.alternate,r("alternate"),o.alternate.type==="IfStatement")))}return a}case"ForStatement":{let i=zm(o.body,r("body")),a=$o(e,t),s=a?[a,Pe]:"";return!o.init&&!o.test&&!o.update?[s,de(["for (;;)",i])]:[s,de(["for (",de([Fe([Pe,r("init"),";",at,r("test"),";",o.update?[at,r("update")]:Sr("",at)]),Pe]),")",i])]}case"WhileStatement":return de(["while (",de([Fe([Pe,r("test")]),Pe]),")",zm(o.body,r("body"))]);case"ForInStatement":return de(["for (",r("left")," in ",r("right"),")",zm(o.body,r("body"))]);case"ForOfStatement":return de(["for",o.await?" await":""," (",r("left")," of ",r("right"),")",zm(o.body,r("body"))]);case"DoWhileStatement":{let i=zm(o.body,r("body"));return[de(["do",i]),o.body.type==="BlockStatement"?" ":Be,"while (",de([Fe([Pe,r("test")]),Pe]),")",t.semi?";":""]}case"DoExpression":return[o.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return[o.type==="BreakStatement"?"break":"continue",o.label?[" ",r("label")]:"",t.semi?";":""];case"LabeledStatement":return[r("label"),`:${o.body.type==="EmptyStatement"&&!rt(o.body,St.Leading)?"":" "}`,r("body")];case"TryStatement":return["try ",r("block"),o.handler?[" ",r("handler")]:"",o.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(o.param){let i=rt(o.param,s=>!Mu(s)||s.leading&&nc(t.originalText,Jr(s))||s.trailing&&nc(t.originalText,Xr(s),{backwards:!0})),a=r("param");return["catch ",i?["(",Fe([Pe,a]),Pe,") "]:["(",a,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[de(["switch (",Fe([Pe,r("discriminant")]),Pe,")"])," {",o.cases.length>0?Fe([Be,pn(Be,e.map(({node:i,isLast:a})=>[r(),!a&&cd(i,t)?Be:""],"cases"))]):"",Be,"}"];case"SwitchCase":{let i=[];o.test?i.push("case ",r("test"),":"):i.push("default:"),rt(o,St.Dangling)&&i.push(" ",$o(e,t));let a=o.consequent.filter(s=>s.type!=="EmptyStatement");if(a.length>0){let s=KU(e,t,r,"consequent");i.push(a.length===1&&a[0].type==="BlockStatement"?[" ",s]:Fe([Be,s]))}return i}case"DebuggerStatement":return["debugger",t.semi?";":""];case"ClassDeclaration":case"ClassExpression":return Tz(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return Y_e(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return efe(e,t,r);case"TemplateElement":return gg(o.value.raw);case"TemplateLiteral":return p_e(e,t,r);case"TaggedTemplateExpression":return rZe(e,t,r);case"PrivateIdentifier":return["#",o.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];case"VoidPattern":return"void";case"EmptyStatement":if(rz(e))return";";default:throw new t1(o,"ESTree")}}function ufe(e){return[e("elementType"),"[]"]}var kXe=wr(["SatisfiesExpression","TSSatisfiesExpression"]);function pfe(e,t,r){let{parent:n,node:o,key:i}=e,a=o.type==="AsConstExpression"?"const":r("typeAnnotation"),s=[r("expression")," ",kXe(o)?"satisfies":"as"," ",a];return i==="callee"&&jn(n)||i==="object"&&Mo(n)?de([Fe([Pe,...s]),Pe]):s}function CXe(e,t,r){let{node:n}=e,o=[Bc(e),"component"];n.id&&o.push(" ",r("id")),o.push(r("typeParameters"));let i=PXe(e,t,r);return n.rendersType?o.push(de([i," ",r("rendersType")])):o.push(de([i])),n.body&&o.push(" ",r("body")),t.semi&&n.type==="DeclareComponent"&&o.push(";"),o}function PXe(e,t,r){let{node:n}=e,o=n.params;if(n.rest&&(o=[...o,n.rest]),o.length===0)return["(",$o(e,t,{filter:a=>Lu(t.originalText,Jr(a))===")"}),")"];let i=[];return NXe(e,(a,s)=>{let c=s===o.length-1;c&&n.rest&&i.push("..."),i.push(r()),!c&&(i.push(","),cd(o[s],t)?i.push(Be,Be):i.push(at))}),["(",Fe([Pe,...i]),Sr(sd(t,"all")&&!OXe(n,o)?",":""),Pe,")"]}function OXe(e,t){return e.rest||Jn(0,t,-1)?.type==="RestElement"}function NXe(e,t){let{node:r}=e,n=0,o=i=>t(i,n++);e.each(o,"params"),r.rest&&e.call(o,"rest")}function FXe(e,t,r){let{node:n}=e;return n.shorthand?r("local"):[r("name")," as ",r("local")]}function RXe(e,t,r){let{node:n}=e,o=[];return n.name&&o.push(r("name"),n.optional?"?: ":": "),o.push(r("typeAnnotation")),o}function dfe(e,t,r){return Dz(e,t,r)}function LXe(e,t,r){let{node:n}=e;return[n.type==="EnumSymbolBody"||n.explicitType?`of ${n.type.slice(4,-4).toLowerCase()} `:"",dfe(e,t,r)]}function _fe(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let o="";return r.initializer&&(o=t("initializer")),r.init&&(o=t("init")),o?[n," = ",o]:n}function ffe(e,t){let{node:r}=e;return[Bc(e),r.const?"const ":"","enum ",t("id")," ",t("body")]}function mfe(e,t,r){let{node:n}=e,o=[H3(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&o.push("new ");let i=wg(e,t,r,!1,!0),a=[];return n.type==="FunctionTypeAnnotation"?a.push($Xe(e)?" => ":": ",r("returnType")):a.push(Na(e,r,"returnType")),e1(n,a)&&(i=de(i)),o.push(i,a),[de(o),n.type==="TSConstructSignatureDeclaration"||n.type==="TSCallSignatureDeclaration"?q_(e,t):""]}function $Xe(e){let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(Nde(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&V3(r,t)||r.type==="ObjectTypeCallProperty"||e.getParentNode(2)?.type==="DeclareFunction"))}function MXe(e,t,r){let{node:n}=e,o=["hook"];n.id&&o.push(" ",r("id"));let i=wg(e,t,r,!1,!0),a=W3(e,r),s=e1(n,a);return o.push(de([s?de(i):i,a]),n.body?" ":"",r("body")),o}function jXe(e,t,r){let{node:n}=e,o=[Bc(e),"hook"];return n.id&&o.push(" ",r("id")),t.semi&&o.push(";"),o}function mde(e){let{node:t}=e;return t.type==="HookTypeAnnotation"&&e.getParentNode(2)?.type==="DeclareHook"}function BXe(e,t,r){let{node:n}=e,o=wg(e,t,r,!1,!0),i=[mde(e)?": ":" => ",r("returnType")];return de([mde(e)?"":"hook ",e1(n,i)?de(o):o,i])}function hfe(e,t,r){return[r("objectType"),Ns(e),"[",r("indexType"),"]"]}function yfe(e,t,r){return["infer ",r("typeParameter")]}function gfe(e,t,r){let n=!1;return de(e.map(({isFirst:o,previous:i,node:a,index:s})=>{let c=r();if(o)return c;let p=Jm(a),d=Jm(i);return d&&p?[" & ",n?Fe(c):c]:!d&&!p||Fu(t.originalText,a)?t.experimentalOperatorPosition==="start"?Fe([at,"& ",c]):Fe([" &",at,c]):(s>1&&(n=!0),[" & ",s>1?Fe(c):c])},"types"))}function qXe(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function UXe(e,t,r){let{node:n}=e;return[de([n.variance?r("variance"):"","[",Fe([r("keyTparam")," in ",r("sourceType")]),"]",qXe(n.optional),": ",r("propType")]),q_(e,t)]}function hde(e,t){return e==="+"||e==="-"?e+t:t}function zXe(e,t,r){let{node:n}=e,o=!1;if(t.objectWrap==="preserve"){let i=Xr(n),a=Q3(t,i+1,Xr(n.key)),s=i+1+a.search(/\S/u);jc(t.originalText,i,s)&&(o=!0)}return de(["{",Fe([t.bracketSpacing?at:Pe,rt(n,St.Dangling)?de([$o(e,t),Be]):"",de([n.readonly?[hde(n.readonly,"readonly")," "]:"","[",r("key")," in ",r("constraint"),n.nameType?[" as ",r("nameType")]:"","]",n.optional?hde(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?Sr(";"):""]),t.bracketSpacing?at:Pe,"}"],{shouldBreak:o})}function VXe(e,t,r){let{node:n}=e;return[de(["match (",Fe([Pe,r("argument")]),Pe,")"])," {",n.cases.length>0?Fe([Be,pn(Be,e.map(({node:o,isLast:i})=>[r(),!i&&cd(o,t)?Be:""],"cases"))]):"",Be,"}"]}function JXe(e,t,r){let{node:n}=e,o=rt(n,St.Dangling)?[" ",$o(e,t)]:[],i=n.type==="MatchStatementCase"?[" ",r("body")]:Fe([at,r("body"),","]);return[r("pattern"),n.guard?de([Fe([at,"if (",r("guard"),")"])]):"",de([" =>",o,i])]}function KXe(e,t,r){let{node:n}=e;switch(n.type){case"MatchOrPattern":return ZXe(e,t,r);case"MatchAsPattern":return[r("pattern")," as ",r("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return r("literal");case"MatchUnaryPattern":return[n.operator,r("argument")];case"MatchIdentifierPattern":return r("id");case"MatchMemberPattern":{let o=n.property.type==="Identifier"?[".",r("property")]:["[",Fe([Pe,r("property")]),Pe,"]"];return de([r("base"),o])}case"MatchBindingPattern":return[n.kind," ",r("id")];case"MatchObjectPattern":{let o=e.map(r,"properties");return n.rest&&o.push(r("rest")),de(["{",Fe([Pe,pn([",",at],o)]),n.rest?"":Sr(","),Pe,"}"])}case"MatchArrayPattern":{let o=e.map(r,"elements");return n.rest&&o.push(r("rest")),de(["[",Fe([Pe,pn([",",at],o)]),n.rest?"":Sr(","),Pe,"]"])}case"MatchObjectPatternProperty":return n.shorthand?r("pattern"):de([r("key"),":",Fe([at,r("pattern")])]);case"MatchRestPattern":{let o=["..."];return n.argument&&o.push(r("argument")),o}}}var Sfe=wr(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function GXe(e){let{patterns:t}=e;if(t.some(n=>rt(n)))return!1;let r=t.find(n=>n.type==="MatchObjectPattern");return r?t.every(n=>n===r||Sfe(n)):!1}function HXe(e){return Sfe(e)||e.type==="MatchObjectPattern"?!0:e.type==="MatchOrPattern"?GXe(e):!1}function ZXe(e,t,r){let{node:n}=e,{parent:o}=e,i=o.type!=="MatchStatementCase"&&o.type!=="MatchExpressionCase"&&o.type!=="MatchArrayPattern"&&o.type!=="MatchObjectPatternProperty"&&!Fu(t.originalText,n),a=HXe(n),s=e.map(()=>{let p=r();return a||(p=$u(2,p)),Rl(e,p,t)},"patterns");if(a)return pn(" | ",s);let c=[Sr(["| "]),pn([at,"| "],s)];return Qm(e,t)?de([Fe([Sr([Pe]),c]),Pe]):o.type==="MatchArrayPattern"&&o.elements.length>1?de([Fe([Sr(["(",Pe]),c]),Pe,Sr(")")]):de(i?Fe(c):c)}function WXe(e,t,r){let{node:n}=e,o=[Bc(e),"opaque type ",r("id"),r("typeParameters")];if(n.supertype&&o.push(": ",r("supertype")),n.lowerBound||n.upperBound){let i=[];n.lowerBound&&i.push(Fe([at,"super ",r("lowerBound")])),n.upperBound&&i.push(Fe([at,"extends ",r("upperBound")])),o.push(de(i))}return n.impltype&&o.push(" = ",r("impltype")),o.push(t.semi?";":""),o}function vfe(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function bfe(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}function xfe(e,t,r){let{node:n}=e,o=[Bc(e),"type ",r("id"),r("typeParameters")],i=n.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[DD(e,t,r,o," =",i),t.semi?";":""]}function QXe(e,t,r){let{node:n}=e;return ss(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function mD(e,t,r,n){let{node:o}=e;if(!o[n])return"";if(!Array.isArray(o[n]))return r(n);let i=J3(e.grandparent),a=e.match(c=>!(c[n].length===1&&Jm(c[n][0])),void 0,(c,p)=>p==="typeAnnotation",c=>c.type==="Identifier",N_e);if(o[n].length===0||!a&&(i||o[n].length===1&&(o[n][0].type==="NullableTypeAnnotation"||SWe(o[n][0]))))return["<",pn(", ",e.map(r,n)),XXe(e,t),">"];let s=o.type==="TSTypeParameterInstantiation"?"":QXe(e,t,n)?",":sd(t)?Sr(","):"";return de(["<",Fe([Pe,pn([",",at],e.map(r,n))]),s,Pe,">"])}function XXe(e,t){let{node:r}=e;if(!rt(r,St.Dangling))return"";let n=!rt(r,St.Line),o=$o(e,t,{indent:!n});return n?o:[o,Be]}function Efe(e,t,r){let{node:n}=e,o=[n.const?"const ":""],i=n.type==="TSTypeParameter"?r("name"):n.name;if(n.variance&&o.push(r("variance")),n.in&&o.push("in "),n.out&&o.push("out "),o.push(i),n.bound&&(n.usesExtendsBound&&o.push(" extends "),o.push(Na(e,r,"bound"))),n.constraint){let a=Symbol("constraint");o.push(" extends",de(Fe(at),{id:a}),ad,gD(r("constraint"),{groupId:a}))}if(n.default){let a=Symbol("default");o.push(" =",de(Fe(at),{id:a}),ad,gD(r("default"),{groupId:a}))}return de(o)}function Tfe(e,t){let{node:r}=e;return[r.type==="TSTypePredicate"&&r.asserts?"asserts ":r.type==="TypePredicate"&&r.kind?`${r.kind} `:"",t("parameterName"),r.typeAnnotation?[" is ",Na(e,t)]:""]}function Dfe({node:e},t){let r=e.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",t(r),t("typeArguments")]}function YXe(e,t,r){let{node:n}=e;if(Ide(n))return n.type.slice(0,-14).toLowerCase();switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return CXe(e,t,r);case"ComponentParameter":return FXe(e,t,r);case"ComponentTypeParameter":return RXe(e,t,r);case"HookDeclaration":return MXe(e,t,r);case"DeclareHook":return jXe(e,t,r);case"HookTypeAnnotation":return BXe(e,t,r);case"DeclareFunction":return[Bc(e),"function ",r("id"),r("predicate"),t.semi?";":""];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",Na(e,r),t.semi?";":""];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[Bc(e),n.kind??"var"," ",r("id"),t.semi?";":""];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return ofe(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return WXe(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return xfe(e,t,r);case"IntersectionTypeAnnotation":return gfe(e,t,r);case"UnionTypeAnnotation":return x_e(e,t,r);case"ConditionalTypeAnnotation":return wz(e,t,r);case"InferTypeAnnotation":return yfe(e,t,r);case"FunctionTypeAnnotation":return mfe(e,t,r);case"TupleTypeAnnotation":return Sz(e,t,r);case"TupleTypeLabeledElement":return bfe(e,t,r);case"TupleTypeSpreadElement":return vfe(e,t,r);case"GenericTypeAnnotation":return[r("id"),mD(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return hfe(e,t,r);case"TypeAnnotation":return D_e(e,t,r);case"TypeParameter":return Efe(e,t,r);case"TypeofTypeAnnotation":return Dfe(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return ufe(r);case"DeclareEnum":case"EnumDeclaration":return ffe(e,r);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return LXe(e,t,r);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return _fe(e,r);case"FunctionTypeParam":{let o=n.name?r("name"):e.parent.this===n?"this":"";return[o,Ns(e),o?": ":"",r("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Tz(e,t,r);case"ObjectTypeAnnotation":return Ez(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:o}=n;return Sg(o==="plus"||o==="minus"),o==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value"),q_(e,t)];case"ObjectTypeMappedTypeProperty":return UXe(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value"),q_(e,t)];case"ObjectTypeProperty":{let o="";return n.proto?o="proto ":n.static&&(o="static "),[o,n.kind!=="init"?n.kind+" ":"",n.variance?r("variance"):"",AD(e,t,r),Ns(e),xD(n)?"":": ",r("value"),q_(e,t)]}case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",Ns(e),n.method?"":": ",r("value"),q_(e,t)];case"ObjectTypeSpreadProperty":return HU(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return gg(Gv(oc(n),t));case"NumberLiteralTypeAnnotation":return Wv(oc(n));case"BigIntLiteralTypeAnnotation":return GU(oc(n));case"TypeCastExpression":return["(",r("expression"),Na(e,r),")"];case"TypePredicate":return Tfe(e,r);case"TypeOperator":return[n.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return mD(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return pfe(e,t,r);case"MatchExpression":case"MatchStatement":return VXe(e,t,r);case"MatchExpressionCase":case"MatchStatementCase":return JXe(e,t,r);case"MatchOrPattern":case"MatchAsPattern":case"MatchWildcardPattern":case"MatchLiteralPattern":case"MatchUnaryPattern":case"MatchIdentifierPattern":case"MatchMemberPattern":case"MatchBindingPattern":case"MatchObjectPattern":case"MatchObjectPatternProperty":case"MatchRestPattern":case"MatchArrayPattern":return KXe(e,t,r)}}function eYe(e,t,r){let{node:n}=e,o=n.parameters.length>1?Sr(sd(t)?",":""):"",i=de([Fe([Pe,pn([", ",Pe],e.map(r,"parameters"))]),o,Pe]);return[e.key==="body"&&e.parent.type==="ClassBody"&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?i:"","]",Na(e,r),q_(e,t)]}function yde(e,t,r){let{node:n}=e;return[n.postfix?"":r,Na(e,t),n.postfix?r:""]}function tYe(e,t,r){let{node:n}=e,o=[],i=n.kind&&n.kind!=="method"?`${n.kind} `:"";o.push(Z3(n),i,n.computed?"[":"",r("key"),n.computed?"]":"",Ns(e));let a=wg(e,t,r,!1,!0),s=Na(e,r,"returnType"),c=e1(n,s);return o.push(c?de(a):a),n.returnType&&o.push(de(s)),[de(o),q_(e,t)]}function rYe(e,t,r){let{node:n}=e;return[Bc(e),n.kind==="global"?"":`${n.kind} `,r("id"),n.body?[" ",de(r("body"))]:t.semi?";":""]}function nYe(e,t,r){let{node:n}=e,o=!(Fa(n.expression)||Ru(n.expression)),i=de(["<",Fe([Pe,r("typeAnnotation")]),Pe,">"]),a=[Sr("("),Fe([Pe,r("expression")]),Pe,Sr(")")];return o?hg([[i,r("expression")],[i,de(a,{shouldBreak:!0})],[i,r("expression")]]):de([i,r("expression")])}function oYe(e,t,r){let{node:n}=e;if(n.type.startsWith("TS")){if(kde(n))return n.type.slice(2,-7).toLowerCase();switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":return nYe(e,t,r);case"TSDeclareFunction":return L_e(e,t,r);case"TSExportAssignment":return["export = ",r("expression"),t.semi?";":""];case"TSModuleBlock":return G_e(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return Ez(e,t,r);case"TSTypeAliasDeclaration":return xfe(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return Y_e(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return efe(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[r("expression"),r("typeArguments")];case"TSTemplateLiteralType":return p_e(e,t,r);case"TSNamedTupleMember":return bfe(e,t,r);case"TSRestType":return vfe(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Tz(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return mD(e,t,r,"params");case"TSTypeParameter":return Efe(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":return pfe(e,t,r);case"TSArrayType":return ufe(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",AD(e,t,r),Ns(e),Na(e,r),q_(e,t)];case"TSParameterProperty":return[Z3(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return Dfe(e,r);case"TSIndexSignature":return eYe(e,t,r);case"TSTypePredicate":return Tfe(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[U3(e,t,r),n.qualifier?[".",r("qualifier")]:"",mD(e,t,r,"typeArguments")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return hfe(e,t,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return zXe(e,t,r);case"TSMethodSignature":return tYe(e,t,r);case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return ffe(e,r);case"TSEnumBody":return dfe(e,t,r);case"TSEnumMember":return _fe(e,r);case"TSImportEqualsDeclaration":return["import ",ife(n,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return U3(e,t,r);case"TSModuleDeclaration":return rYe(e,t,r);case"TSConditionalType":return wz(e,t,r);case"TSInferType":return yfe(e,t,r);case"TSIntersectionType":return gfe(e,t,r);case"TSUnionType":return x_e(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return mfe(e,t,r);case"TSTupleType":return Sz(e,t,r);case"TSTypeReference":return[r("typeName"),mD(e,t,r,"typeArguments")];case"TSTypeAnnotation":return D_e(e,t,r);case"TSEmptyBodyFunctionExpression":return vz(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return yde(e,r,"?");case"TSJSDocNonNullableType":return yde(e,r,"!");default:throw new t1(n,"TypeScript")}}}function iYe(e,t,r,n){for(let o of[wQe,xQe,YXe,oYe,IXe]){let i=o(e,t,r,n);if(i!==void 0)return i}}var aYe=wr(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function sYe(e,t,r,n){e.isRoot&&t.__onHtmlBindingRoot?.(e.node,t);let{node:o}=e,i=xz(e)?t.originalText.slice(Xr(o),Jr(o)):iYe(e,t,r,n);if(!i)return"";if(aYe(o))return i;let a=jo(o.decorators),s=OQe(e,t,r),c=o.type==="ClassExpression";if(a&&!c)return MU(i,f=>de([s,f]));let p=Qm(e,t),d=rQe(e,t);return!s&&!p&&!d?i:MU(i,f=>[d?";":"",p?"(":"",p&&c&&a?[Fe([at,s,f]),at]:[s,f],p?")":""])}var gde=sYe,cYe={experimental_avoidAstMutation:!0},lYe=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],Afe={};ZU(Afe,{getVisitorKeys:()=>dYe,massageAstNode:()=>wfe,print:()=>_Ye});var Uv=[[]],uYe={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:Uv[0],BooleanLiteral:Uv[0],StringLiteral:Uv[0],NumericLiteral:Uv[0],Identifier:Uv[0],TemplateLiteral:["quasis"],TemplateElement:Uv[0]},pYe=Ade(uYe),dYe=pYe;function _Ye(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),Be];case"ArrayExpression":{if(n.elements.length===0)return"[]";let o=e.map(()=>e.node===null?"null":r(),"elements");return["[",Fe([Be,pn([",",Be],o)]),Be,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",Fe([Be,pn([",",Be],e.map(r,"properties"))]),Be,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return Sde(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return Sde(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new t1(n,"JSON")}}function Sde(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var fYe=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function wfe(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,o]of e.elements.entries())o===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}wfe.ignoredProperties=fYe;var uD={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Vm="JavaScript",mYe={arrowParens:{category:Vm,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:uD.bracketSameLine,objectWrap:uD.objectWrap,bracketSpacing:uD.bracketSpacing,jsxBracketSameLine:{category:Vm,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Vm,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:Vm,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:Vm,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:uD.singleQuote,jsxSingleQuote:{category:Vm,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Vm,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:Vm,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:uD.singleAttributePerLine},hYe=mYe,yYe={estree:vde,"estree-json":Afe},gYe=[...hKe,...lYe];var SYe=Object.defineProperty,Mme=(e,t)=>{for(var r in t)SYe(e,r,{get:t[r],enumerable:!0})},pV={};Mme(pV,{parsers:()=>jme});var jme={};Mme(jme,{typescript:()=>Fst});var vYe=()=>()=>{},dV=vYe,_V=(e,t)=>(r,n,...o)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,o),bYe=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},xYe=_V("replaceAll",function(){if(typeof this=="string")return bYe}),u1=xYe,EYe="5.9",ii=[],TYe=new Map;function ND(e){return e!==void 0?e.length:0}function Jc(e,t){if(e!==void 0)for(let r=0;r0;return!1}function mV(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function kYe(e,t,r=yV){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let n=0;ne?.at(t):(e,t)=>{if(e!==void 0&&(t=Jz(e,t),t>1),c=r(e[s],s);switch(n(c,t)){case-1:i=s+1;break;case 0:return s;case 1:a=s-1;break}}return~i}function $Ye(e,t,r,n,o){if(e&&e.length>0){let i=e.length;if(i>0){let a=n===void 0||n<0?0:n,s=o===void 0||a+o>i-1?i-1:a+o,c;for(arguments.length<=2?(c=e[a],a++):c=r;a<=s;)c=t(c,e[a],a),a++;return c}}return r}var zme=Object.prototype.hasOwnProperty;function _d(e,t){return zme.call(e,t)}function MYe(e){let t=[];for(let r in e)zme.call(e,r)&&t.push(r);return t}function jYe(){let e=new Map;return e.add=BYe,e.remove=qYe,e}function BYe(e,t){let r=this.get(e);return r!==void 0?r.push(t):this.set(e,r=[t]),r}function qYe(e,t){let r=this.get(e);r!==void 0&&(WYe(r,t),r.length||this.delete(e))}function ef(e){return Array.isArray(e)}function kz(e){return ef(e)?e:[e]}function UYe(e,t){return e!==void 0&&t(e)?e:void 0}function ud(e,t){return e!==void 0&&t(e)?e:pe.fail(`Invalid cast. The supplied value ${e} did not pass the test '${pe.getFunctionName(t)}'.`)}function S1(e){}function zYe(){return!0}function Bo(e){return e}function kfe(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function $l(e){let t=new Map;return r=>{let n=`${typeof r}:${r}`,o=t.get(n);return o===void 0&&!t.has(n)&&(o=e(r),t.set(n,o)),o}}function yV(e,t){return e===t}function gV(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function VYe(e,t){return yV(e,t)}function JYe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:er?s-r:1),d=Math.floor(t.length>r+s?r+s:t.length);o[0]=s;let f=s;for(let y=1;yr)return;let m=n;n=o,o=m}let a=n[t.length];return a>r?void 0:a}function HYe(e,t,r){let n=e.length-t.length;return n>=0&&(r?gV(e.slice(n),t):e.indexOf(t,n)===n)}function ZYe(e,t){e[t]=e[e.length-1],e.pop()}function WYe(e,t){return QYe(e,r=>r===t)}function QYe(e,t){for(let r=0;r{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(oe){return e.currentLogLevel<=oe}e.shouldLog=r;function n(oe,qe){e.loggingHost&&r(oe)&&e.loggingHost.log(oe,qe)}function o(oe){n(3,oe)}e.log=o,(oe=>{function qe(dn){n(1,dn)}oe.error=qe;function et(dn){n(2,dn)}oe.warn=et;function Et(dn){n(3,dn)}oe.log=Et;function Zr(dn){n(4,dn)}oe.trace=Zr})(o=e.log||(e.log={}));let i={};function a(){return t}e.getAssertionLevel=a;function s(oe){let qe=t;if(t=oe,oe>qe)for(let et of MYe(i)){let Et=i[et];Et!==void 0&&e[et]!==Et.assertion&&oe>=Et.level&&(e[et]=Et,i[et]=void 0)}}e.setAssertionLevel=s;function c(oe){return t>=oe}e.shouldAssert=c;function p(oe,qe){return c(oe)?!0:(i[qe]={level:oe,assertion:e[qe]},e[qe]=S1,!1)}function d(oe,qe){debugger;let et=new Error(oe?`Debug Failure. ${oe}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(et,qe||d),et}e.fail=d;function f(oe,qe,et){return d(`${qe||"Unexpected node."}\r +Node ${Yt(oe.kind)} was unexpected.`,et||f)}e.failBadSyntaxKind=f;function m(oe,qe,et,Et){oe||(qe=qe?`False expression: ${qe}`:"False expression.",et&&(qe+=`\r +Verbose Debug Information: `+(typeof et=="string"?et:et())),d(qe,Et||m))}e.assert=m;function y(oe,qe,et,Et,Zr){if(oe!==qe){let dn=et?Et?`${et} ${Et}`:et:"";d(`Expected ${oe} === ${qe}. ${dn}`,Zr||y)}}e.assertEqual=y;function g(oe,qe,et,Et){oe>=qe&&d(`Expected ${oe} < ${qe}. ${et||""}`,Et||g)}e.assertLessThan=g;function S(oe,qe,et){oe>qe&&d(`Expected ${oe} <= ${qe}`,et||S)}e.assertLessThanOrEqual=S;function x(oe,qe,et){oe= ${qe}`,et||x)}e.assertGreaterThanOrEqual=x;function A(oe,qe,et){oe==null&&d(qe,et||A)}e.assertIsDefined=A;function I(oe,qe,et){return A(oe,qe,et||I),oe}e.checkDefined=I;function E(oe,qe,et){for(let Et of oe)A(Et,qe,et||E)}e.assertEachIsDefined=E;function C(oe,qe,et){return E(oe,qe,et||C),oe}e.checkEachDefined=C;function F(oe,qe="Illegal value:",et){let Et=typeof oe=="object"&&_d(oe,"kind")&&_d(oe,"pos")?"SyntaxKind: "+Yt(oe.kind):JSON.stringify(oe);return d(`${qe} ${Et}`,et||F)}e.assertNever=F;function O(oe,qe,et,Et){p(1,"assertEachNode")&&m(qe===void 0||fV(oe,qe),et||"Unexpected node.",()=>`Node array did not pass test '${Ve(qe)}'.`,Et||O)}e.assertEachNode=O;function $(oe,qe,et,Et){p(1,"assertNode")&&m(oe!==void 0&&(qe===void 0||qe(oe)),et||"Unexpected node.",()=>`Node ${Yt(oe?.kind)} did not pass test '${Ve(qe)}'.`,Et||$)}e.assertNode=$;function N(oe,qe,et,Et){p(1,"assertNotNode")&&m(oe===void 0||qe===void 0||!qe(oe),et||"Unexpected node.",()=>`Node ${Yt(oe.kind)} should not have passed test '${Ve(qe)}'.`,Et||N)}e.assertNotNode=N;function U(oe,qe,et,Et){p(1,"assertOptionalNode")&&m(qe===void 0||oe===void 0||qe(oe),et||"Unexpected node.",()=>`Node ${Yt(oe?.kind)} did not pass test '${Ve(qe)}'.`,Et||U)}e.assertOptionalNode=U;function ge(oe,qe,et,Et){p(1,"assertOptionalToken")&&m(qe===void 0||oe===void 0||oe.kind===qe,et||"Unexpected node.",()=>`Node ${Yt(oe?.kind)} was not a '${Yt(qe)}' token.`,Et||ge)}e.assertOptionalToken=ge;function Te(oe,qe,et){p(1,"assertMissingNode")&&m(oe===void 0,qe||"Unexpected node.",()=>`Node ${Yt(oe.kind)} was unexpected'.`,et||Te)}e.assertMissingNode=Te;function ke(oe){}e.type=ke;function Ve(oe){if(typeof oe!="function")return"";if(_d(oe,"name"))return oe.name;{let qe=Function.prototype.toString.call(oe),et=/^function\s+([\w$]+)\s*\(/.exec(qe);return et?et[1]:""}}e.getFunctionName=Ve;function me(oe){return`{ name: ${JD(oe.escapedName)}; flags: ${pt(oe.flags)}; declarations: ${Vz(oe.declarations,qe=>Yt(qe.kind))} }`}e.formatSymbol=me;function xe(oe=0,qe,et){let Et=Vt(qe);if(oe===0)return Et.length>0&&Et[0][0]===0?Et[0][1]:"0";if(et){let Zr=[],dn=oe;for(let[ro,fi]of Et){if(ro>oe)break;ro!==0&&ro&oe&&(Zr.push(fi),dn&=~ro)}if(dn===0)return Zr.join("|")}else for(let[Zr,dn]of Et)if(Zr===oe)return dn;return oe.toString()}e.formatEnum=xe;let Rt=new Map;function Vt(oe){let qe=Rt.get(oe);if(qe)return qe;let et=[];for(let Zr in oe){let dn=oe[Zr];typeof dn=="number"&&et.push([dn,Zr])}let Et=OYe(et,(Zr,dn)=>Vme(Zr[0],dn[0]));return Rt.set(oe,Et),Et}function Yt(oe){return xe(oe,Qt,!1)}e.formatSyntaxKind=Yt;function vt(oe){return xe(oe,Yme,!1)}e.formatSnippetKind=vt;function Fr(oe){return xe(oe,W_,!1)}e.formatScriptKind=Fr;function le(oe){return xe(oe,Vc,!0)}e.formatNodeFlags=le;function K(oe){return xe(oe,Hme,!0)}e.formatNodeCheckFlags=K;function ae(oe){return xe(oe,Jme,!0)}e.formatModifierFlags=ae;function he(oe){return xe(oe,Xme,!0)}e.formatTransformFlags=he;function Oe(oe){return xe(oe,ehe,!0)}e.formatEmitFlags=Oe;function pt(oe){return xe(oe,Gme,!0)}e.formatSymbolFlags=pt;function Ye(oe){return xe(oe,cs,!0)}e.formatTypeFlags=Ye;function lt(oe){return xe(oe,Wme,!0)}e.formatSignatureFlags=lt;function Nt(oe){return xe(oe,Zme,!0)}e.formatObjectFlags=Nt;function Ct(oe){return xe(oe,Gz,!0)}e.formatFlowFlags=Ct;function Hr(oe){return xe(oe,Kme,!0)}e.formatRelationComparisonResult=Hr;function It(oe){return xe(oe,CheckMode,!0)}e.formatCheckMode=It;function fo(oe){return xe(oe,SignatureCheckMode,!0)}e.formatSignatureCheckMode=fo;function rn(oe){return xe(oe,TypeFacts,!0)}e.formatTypeFacts=rn;let Gn=!1,bt;function Hn(oe){"__debugFlowFlags"in oe||Object.defineProperties(oe,{__tsDebuggerDisplay:{value(){let qe=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",et=this.flags&-2048;return`${qe}${et?` (${Ct(et)})`:""}`}},__debugFlowFlags:{get(){return xe(this.flags,Gz,!0)}},__debugToString:{value(){return cp(this)}}})}function Di(oe){return Gn&&(typeof Object.setPrototypeOf=="function"?(bt||(bt=Object.create(Object.prototype),Hn(bt)),Object.setPrototypeOf(oe,bt)):Hn(oe)),oe}e.attachFlowNodeDebugInfo=Di;let Ga;function ji(oe){"__tsDebuggerDisplay"in oe||Object.defineProperties(oe,{__tsDebuggerDisplay:{value(qe){return qe=String(qe).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${qe}`}}})}function ou(oe){Gn&&(typeof Object.setPrototypeOf=="function"?(Ga||(Ga=Object.create(Array.prototype),ji(Ga)),Object.setPrototypeOf(oe,Ga)):ji(oe))}e.attachNodeArrayDebugInfo=ou;function nl(){if(Gn)return;let oe=new WeakMap,qe=new WeakMap;Object.defineProperties(oi.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Et=this.flags&33554432?"TransientSymbol":"Symbol",Zr=this.flags&-33554433;return`${Et} '${Wz(this)}'${Zr?` (${pt(Zr)})`:""}`}},__debugFlags:{get(){return pt(this.flags)}}}),Object.defineProperties(oi.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Et=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Zr=this.flags&524288?this.objectFlags&-1344:0;return`${Et}${this.symbol?` '${Wz(this.symbol)}'`:""}${Zr?` (${Nt(Zr)})`:""}`}},__debugFlags:{get(){return Ye(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Nt(this.objectFlags):""}},__debugTypeToString:{value(){let Et=oe.get(this);return Et===void 0&&(Et=this.checker.typeToString(this),oe.set(this,Et)),Et}}}),Object.defineProperties(oi.getSignatureConstructor().prototype,{__debugFlags:{get(){return lt(this.flags)}},__debugSignatureToString:{value(){var Et;return(Et=this.checker)==null?void 0:Et.signatureToString(this)}}});let et=[oi.getNodeConstructor(),oi.getIdentifierConstructor(),oi.getTokenConstructor(),oi.getSourceFileConstructor()];for(let Et of et)_d(Et.prototype,"__debugKind")||Object.defineProperties(Et.prototype,{__tsDebuggerDisplay:{value(){return`${d1(this)?"GeneratedIdentifier":kn(this)?`Identifier '${uc(this)}'`:jg(this)?`PrivateIdentifier '${uc(this)}'`:g1(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:b1(this)?`NumericLiteral ${this.text}`:fnt(this)?`BigIntLiteral ${this.text}n`:Hhe(this)?"TypeParameterDeclaration":gO(this)?"ParameterDeclaration":Zhe(this)?"ConstructorDeclaration":nV(this)?"GetAccessorDeclaration":vO(this)?"SetAccessorDeclaration":xnt(this)?"CallSignatureDeclaration":Ent(this)?"ConstructSignatureDeclaration":Whe(this)?"IndexSignatureDeclaration":Tnt(this)?"TypePredicateNode":Qhe(this)?"TypeReferenceNode":Xhe(this)?"FunctionTypeNode":Yhe(this)?"ConstructorTypeNode":Dnt(this)?"TypeQueryNode":Ant(this)?"TypeLiteralNode":wnt(this)?"ArrayTypeNode":Int(this)?"TupleTypeNode":Cnt(this)?"OptionalTypeNode":Pnt(this)?"RestTypeNode":Ont(this)?"UnionTypeNode":Nnt(this)?"IntersectionTypeNode":Fnt(this)?"ConditionalTypeNode":Rnt(this)?"InferTypeNode":Lnt(this)?"ParenthesizedTypeNode":$nt(this)?"ThisTypeNode":Mnt(this)?"TypeOperatorNode":jnt(this)?"IndexedAccessTypeNode":Bnt(this)?"MappedTypeNode":qnt(this)?"LiteralTypeNode":knt(this)?"NamedTupleMember":Unt(this)?"ImportTypeNode":Yt(this.kind)}${this.flags?` (${le(this.flags)})`:""}`}},__debugKind:{get(){return Yt(this.kind)}},__debugNodeFlags:{get(){return le(this.flags)}},__debugModifierFlags:{get(){return ae(Trt(this))}},__debugTransformFlags:{get(){return he(this.transformFlags)}},__debugIsParseTreeNode:{get(){return mO(this)}},__debugEmitFlags:{get(){return Oe(y1(this))}},__debugGetText:{value(Zr){if(s1(this))return"";let dn=qe.get(this);if(dn===void 0){let ro=Met(this),fi=ro&&oh(ro);dn=fi?Vfe(fi,ro,Zr):"",qe.set(this,dn)}return dn}}});Gn=!0}e.enableDebugInfo=nl;function ol(oe){let qe=oe&7,et=qe===0?"in out":qe===3?"[bivariant]":qe===2?"in":qe===1?"out":qe===4?"[independent]":"";return oe&8?et+=" (unmeasurable)":oe&16&&(et+=" (unreliable)"),et}e.formatVariance=ol;class Ld{__debugToString(){var qe;switch(this.kind){case 3:return((qe=this.debugInfo)==null?void 0:qe.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Ife(this.sources,this.targets||Vz(this.sources,()=>"any"),(et,Et)=>`${et.__debugTypeToString()} -> ${typeof Et=="string"?Et:Et.__debugTypeToString()}`).join(", ");case 2:return Ife(this.sources,this.targets,(et,Et)=>`${et.__debugTypeToString()} -> ${Et().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` - `)}`;default:return tr(this)}}}e.DebugTypeMapper=O1;function __(jt){return e.isDebugging?Object.setPrototypeOf(jt,O1.prototype):jt}e.attachDebugPrototypeIfDebug=__;function Bc(jt){return console.log(cb(jt))}e.printControlFlowGraph=Bc;function cb(jt){let ea=-1;function Ti(qe){return qe.id||(qe.id=ea,ea--),qe.id}let En;(qe=>{qe.lr="\u2500",qe.ud="\u2502",qe.dr="\u256D",qe.dl="\u256E",qe.ul="\u256F",qe.ur="\u2570",qe.udr="\u251C",qe.udl="\u2524",qe.dlr="\u252C",qe.ulr="\u2534",qe.udlr="\u256B"})(En||(En={}));let Zc;(qe=>{qe[qe.None=0]="None",qe[qe.Up=1]="Up",qe[qe.Down=2]="Down",qe[qe.Left=4]="Left",qe[qe.Right=8]="Right",qe[qe.UpDown=3]="UpDown",qe[qe.LeftRight=12]="LeftRight",qe[qe.UpLeft=5]="UpLeft",qe[qe.UpRight=9]="UpRight",qe[qe.DownLeft=6]="DownLeft",qe[qe.DownRight=10]="DownRight",qe[qe.UpDownLeft=7]="UpDownLeft",qe[qe.UpDownRight=11]="UpDownRight",qe[qe.UpLeftRight=13]="UpLeftRight",qe[qe.DownLeftRight=14]="DownLeftRight",qe[qe.UpDownLeftRight=15]="UpDownLeftRight",qe[qe.NoChildren=16]="NoChildren"})(Zc||(Zc={}));let Jl=2032,zd=882,pu=Object.create(null),Tf=[],or=[],Gr=Ja(jt,new Set);for(let qe of Tf)qe.text=Lu(qe.flowNode,qe.circular),rs(qe);let pi=Yl(Gr),ia=nl(pi);return eu(Gr,0),aS();function To(qe){return!!(qe.flags&128)}function Gu(qe){return!!(qe.flags&12)&&!!qe.antecedent}function Yr(qe){return!!(qe.flags&Jl)}function Sn(qe){return!!(qe.flags&zd)}function to(qe){let yl=[];for(let _l of qe.edges)_l.source===qe&&yl.push(_l.target);return yl}function us(qe){let yl=[];for(let _l of qe.edges)_l.target===qe&&yl.push(_l.source);return yl}function Ja(qe,yl){let _l=Ti(qe),bi=pu[_l];if(bi&&yl.has(qe))return bi.circular=!0,bi={id:-1,flowNode:qe,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Tf.push(bi),bi;if(yl.add(qe),!bi)if(pu[_l]=bi={id:_l,flowNode:qe,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Tf.push(bi),Gu(qe))for(let tu of qe.antecedent)pc(bi,tu,yl);else Yr(qe)&&pc(bi,qe.antecedent,yl);return yl.delete(qe),bi}function pc(qe,yl,_l){let bi=Ja(yl,_l),tu={source:qe,target:bi};or.push(tu),qe.edges.push(tu),bi.edges.push(tu)}function rs(qe){if(qe.level!==-1)return qe.level;let yl=0;for(let _l of us(qe))yl=Math.max(yl,rs(_l)+1);return qe.level=yl}function Yl(qe){let yl=0;for(let _l of to(qe))yl=Math.max(yl,Yl(_l));return yl+1}function nl(qe){let yl=Jn(Array(qe),0);for(let _l of Tf)yl[_l.level]=Math.max(yl[_l.level],_l.text.length);return yl}function eu(qe,yl){if(qe.lane===-1){qe.lane=yl,qe.endLane=yl;let _l=to(qe);for(let bi=0;bi<_l.length;bi++){bi>0&&yl++;let tu=_l[bi];eu(tu,yl),tu.endLane>qe.endLane&&(yl=tu.endLane)}qe.endLane=yl}}function Ho(qe){if(qe&2)return"Start";if(qe&4)return"Branch";if(qe&8)return"Loop";if(qe&16)return"Assignment";if(qe&32)return"True";if(qe&64)return"False";if(qe&128)return"SwitchClause";if(qe&256)return"ArrayMutation";if(qe&512)return"Call";if(qe&1024)return"ReduceLabel";if(qe&1)return"Unreachable";throw new Error}function Q0(qe){let yl=hB(qe);return rBt(yl,qe,!1)}function Lu(qe,yl){let _l=Ho(qe.flags);if(yl&&(_l=`${_l}#${Ti(qe)}`),To(qe)){let bi=[],{switchStatement:tu,clauseStart:Pg,clauseEnd:Du}=qe.node;for(let qp=Pg;qpDu.lane)+1,_l=Jn(Array(yl),""),bi=ia.map(()=>Array(yl)),tu=ia.map(()=>Jn(Array(yl),0));for(let Du of Tf){bi[Du.level][Du.lane]=Du;let qp=to(Du);for(let zm=0;zm0&&(d_|=1),zm0&&(d_|=1),zm0?tu[Du-1][qp]:0,zm=qp>0?tu[Du][qp-1]:0,ja=tu[Du][qp];ja||(Lh&8&&(ja|=12),zm&2&&(ja|=3),tu[Du][qp]=ja)}for(let Du=0;Du{T.lr="\u2500",T.ud="\u2502",T.dr="\u256D",T.dl="\u256E",T.ul="\u256F",T.ur="\u2570",T.udr="\u251C",T.udl="\u2524",T.dlr="\u252C",T.ulr="\u2534",T.udlr="\u256B"})(Et||(Et={}));let Zr;(T=>{T[T.None=0]="None",T[T.Up=1]="Up",T[T.Down=2]="Down",T[T.Left=4]="Left",T[T.Right=8]="Right",T[T.UpDown=3]="UpDown",T[T.LeftRight=12]="LeftRight",T[T.UpLeft=5]="UpLeft",T[T.UpRight=9]="UpRight",T[T.DownLeft=6]="DownLeft",T[T.DownRight=10]="DownRight",T[T.UpDownLeft=7]="UpDownLeft",T[T.UpDownRight=11]="UpDownRight",T[T.UpLeftRight=13]="UpLeftRight",T[T.DownLeftRight=14]="DownLeftRight",T[T.UpDownLeftRight=15]="UpDownLeftRight",T[T.NoChildren=16]="NoChildren"})(Zr||(Zr={}));let dn=2032,ro=882,fi=Object.create(null),Uo=[],co=[],$d=At(oe,new Set);for(let T of Uo)T.text=Zn(T.flowNode,T.circular),ut(T);let lp=Ir($d),vc=Tn(lp);return $r($d,0),_s();function al(T){return!!(T.flags&128)}function Yh(T){return!!(T.flags&12)&&!!T.antecedent}function ue(T){return!!(T.flags&dn)}function Ee(T){return!!(T.flags&ro)}function we(T){let Ht=[];for(let er of T.edges)er.source===T&&Ht.push(er.target);return Ht}function Tt(T){let Ht=[];for(let er of T.edges)er.target===T&&Ht.push(er.source);return Ht}function At(T,Ht){let er=et(T),ce=fi[er];if(ce&&Ht.has(T))return ce.circular=!0,ce={id:-1,flowNode:T,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Uo.push(ce),ce;if(Ht.add(T),!ce)if(fi[er]=ce={id:er,flowNode:T,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Uo.push(ce),Yh(T))for(let vr of T.antecedent)kt(ce,vr,Ht);else ue(T)&&kt(ce,T.antecedent,Ht);return Ht.delete(T),ce}function kt(T,Ht,er){let ce=At(Ht,er),vr={source:T,target:ce};co.push(vr),T.edges.push(vr),ce.edges.push(vr)}function ut(T){if(T.level!==-1)return T.level;let Ht=0;for(let er of Tt(T))Ht=Math.max(Ht,ut(er)+1);return T.level=Ht}function Ir(T){let Ht=0;for(let er of we(T))Ht=Math.max(Ht,Ir(er));return Ht+1}function Tn(T){let Ht=re(Array(T),0);for(let er of Uo)Ht[er.level]=Math.max(Ht[er.level],er.text.length);return Ht}function $r(T,Ht){if(T.lane===-1){T.lane=Ht,T.endLane=Ht;let er=we(T);for(let ce=0;ce0&&Ht++;let vr=er[ce];$r(vr,Ht),vr.endLane>T.endLane&&(Ht=vr.endLane)}T.endLane=Ht}}function Ft(T){if(T&2)return"Start";if(T&4)return"Branch";if(T&8)return"Loop";if(T&16)return"Assignment";if(T&32)return"True";if(T&64)return"False";if(T&128)return"SwitchClause";if(T&256)return"ArrayMutation";if(T&512)return"Call";if(T&1024)return"ReduceLabel";if(T&1)return"Unreachable";throw new Error}function Bs(T){let Ht=oh(T);return Vfe(Ht,T,!1)}function Zn(T,Ht){let er=Ft(T.flags);if(Ht&&(er=`${er}#${et(T)}`),al(T)){let ce=[],{switchStatement:vr,clauseStart:Ha,clauseEnd:Dr}=T.node;for(let nn=Ha;nnDr.lane)+1,er=re(Array(Ht),""),ce=vc.map(()=>Array(Ht)),vr=vc.map(()=>re(Array(Ht),0));for(let Dr of Uo){ce[Dr.level][Dr.lane]=Dr;let nn=we(Dr);for(let ei=0;ei0&&(Gi|=1),ei0&&(Gi|=1),ei0?vr[Dr-1][nn]:0,ei=nn>0?vr[Dr][nn-1]:0,hi=vr[Dr][nn];hi||(mi&8&&(hi|=12),ei&2&&(hi|=3),vr[Dr][nn]=hi)}for(let Dr=0;Dr0?qe.repeat(yl):"";let _l="";for(;_l.length{},Fin=()=>{},lDe,Xl=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.AssertClause=301]="AssertClause",e[e.AssertEntry=302]="AssertEntry",e[e.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",e[e.PropertyAssignment=304]="PropertyAssignment",e[e.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",e[e.SpreadAssignment=306]="SpreadAssignment",e[e.EnumMember=307]="EnumMember",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.JSDocTypeExpression=310]="JSDocTypeExpression",e[e.JSDocNameReference=311]="JSDocNameReference",e[e.JSDocMemberName=312]="JSDocMemberName",e[e.JSDocAllType=313]="JSDocAllType",e[e.JSDocUnknownType=314]="JSDocUnknownType",e[e.JSDocNullableType=315]="JSDocNullableType",e[e.JSDocNonNullableType=316]="JSDocNonNullableType",e[e.JSDocOptionalType=317]="JSDocOptionalType",e[e.JSDocFunctionType=318]="JSDocFunctionType",e[e.JSDocVariadicType=319]="JSDocVariadicType",e[e.JSDocNamepathType=320]="JSDocNamepathType",e[e.JSDoc=321]="JSDoc",e[e.JSDocComment=321]="JSDocComment",e[e.JSDocText=322]="JSDocText",e[e.JSDocTypeLiteral=323]="JSDocTypeLiteral",e[e.JSDocSignature=324]="JSDocSignature",e[e.JSDocLink=325]="JSDocLink",e[e.JSDocLinkCode=326]="JSDocLinkCode",e[e.JSDocLinkPlain=327]="JSDocLinkPlain",e[e.JSDocTag=328]="JSDocTag",e[e.JSDocAugmentsTag=329]="JSDocAugmentsTag",e[e.JSDocImplementsTag=330]="JSDocImplementsTag",e[e.JSDocAuthorTag=331]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",e[e.JSDocClassTag=333]="JSDocClassTag",e[e.JSDocPublicTag=334]="JSDocPublicTag",e[e.JSDocPrivateTag=335]="JSDocPrivateTag",e[e.JSDocProtectedTag=336]="JSDocProtectedTag",e[e.JSDocReadonlyTag=337]="JSDocReadonlyTag",e[e.JSDocOverrideTag=338]="JSDocOverrideTag",e[e.JSDocCallbackTag=339]="JSDocCallbackTag",e[e.JSDocOverloadTag=340]="JSDocOverloadTag",e[e.JSDocEnumTag=341]="JSDocEnumTag",e[e.JSDocParameterTag=342]="JSDocParameterTag",e[e.JSDocReturnTag=343]="JSDocReturnTag",e[e.JSDocThisTag=344]="JSDocThisTag",e[e.JSDocTypeTag=345]="JSDocTypeTag",e[e.JSDocTemplateTag=346]="JSDocTemplateTag",e[e.JSDocTypedefTag=347]="JSDocTypedefTag",e[e.JSDocSeeTag=348]="JSDocSeeTag",e[e.JSDocPropertyTag=349]="JSDocPropertyTag",e[e.JSDocThrowsTag=350]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",e[e.JSDocImportTag=352]="JSDocImportTag",e[e.SyntaxList=353]="SyntaxList",e[e.NotEmittedStatement=354]="NotEmittedStatement",e[e.NotEmittedTypeElement=355]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",e[e.Count=359]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=166]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=310]="FirstJSDocNode",e[e.LastJSDocNode=352]="LastJSDocNode",e[e.FirstJSDocTagNode=328]="FirstJSDocTagNode",e[e.LastJSDocTagNode=352]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e))(Xl||{}),PD=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(PD||{}),n$t=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(n$t||{}),i$t=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(i$t||{}),cYe=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(cYe||{}),o$t=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(o$t||{}),a$t=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(a$t||{}),TT=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(TT||{}),s$t=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(s$t||{}),c$t=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(c$t||{}),G5=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(G5||{}),FYe=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(FYe||{}),l$t=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(l$t||{}),iI=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(iI||{}),u$t=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(u$t||{}),p$t=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(p$t||{}),_$t=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(_$t||{}),Vpe={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},d$t={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},Ype=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(Ype||{}),K5="/",Rin="\\",qjt="://",Lin=/\\/g;function Min(e){return e===47||e===92}function jin(e,r){return e.length>r.length&&Iin(e,r)}function RYe(e){return e.length>0&&Min(e.charCodeAt(e.length-1))}function Jjt(e){return e>=97&&e<=122||e>=65&&e<=90}function Bin(e,r){let i=e.charCodeAt(r);if(i===58)return r+1;if(i===37&&e.charCodeAt(r+1)===51){let s=e.charCodeAt(r+2);if(s===97||s===65)return r+3}return-1}function $in(e){if(!e)return 0;let r=e.charCodeAt(0);if(r===47||r===92){if(e.charCodeAt(1)!==r)return 1;let s=e.indexOf(r===47?K5:Rin,2);return s<0?e.length:s+1}if(Jjt(r)&&e.charCodeAt(1)===58){let s=e.charCodeAt(2);if(s===47||s===92)return 3;if(e.length===2)return 2}let i=e.indexOf(qjt);if(i!==-1){let s=i+qjt.length,l=e.indexOf(K5,s);if(l!==-1){let d=e.slice(0,i),h=e.slice(s,l);if(d==="file"&&(h===""||h==="localhost")&&Jjt(e.charCodeAt(l+1))){let S=Bin(e,l+2);if(S!==-1){if(e.charCodeAt(S)===47)return~(S+1);if(S===e.length)return~S}}return~(l+1)}return~e.length}return 0}function s_e(e){let r=$in(e);return r<0?~r:r}function f$t(e,r,i){if(e=c_e(e),s_e(e)===e.length)return"";e=gDe(e);let s=e.slice(Math.max(s_e(e),e.lastIndexOf(K5)+1)),l=r!==void 0&&i!==void 0?m$t(s,r,i):void 0;return l?s.slice(0,s.length-l.length):s}function Vjt(e,r,i){if(hDe(r,".")||(r="."+r),e.length>=r.length&&e.charCodeAt(e.length-r.length)===46){let s=e.slice(e.length-r.length);if(i(s,r))return s}}function Uin(e,r,i){if(typeof r=="string")return Vjt(e,r,i)||"";for(let s of r){let l=Vjt(e,s,i);if(l)return l}return""}function m$t(e,r,i){if(r)return Uin(gDe(e),r,i?OYe:Cin);let s=f$t(e),l=s.lastIndexOf(".");return l>=0?s.substring(l):""}function c_e(e){return e.includes("\\")?e.replace(Lin,K5):e}function zin(e,...r){e&&(e=c_e(e));for(let i of r)i&&(i=c_e(i),!e||s_e(i)!==0?e=i:e=g$t(e)+i);return e}function qin(e,r){let i=s_e(e);i===0&&r?(e=zin(r,e),i=s_e(e)):e=c_e(e);let s=h$t(e);if(s!==void 0)return s.length>i?gDe(s):s;let l=e.length,d=e.substring(0,i),h,S=i,b=S,A=S,L=i!==0;for(;Sb&&(h??(h=e.substring(0,b-1)),b=S);let j=e.indexOf(K5,S+1);j===-1&&(j=l);let ie=j-b;if(ie===1&&e.charCodeAt(S)===46)h??(h=e.substring(0,A));else if(ie===2&&e.charCodeAt(S)===46&&e.charCodeAt(S+1)===46)if(!L)h!==void 0?h+=h.length===i?"..":"/..":A=S+2;else if(h===void 0)A-2>=0?h=e.substring(0,Math.max(i,e.lastIndexOf(K5,A-2))):h=e.substring(0,A);else{let te=h.lastIndexOf(K5);te!==-1?h=h.substring(0,Math.max(i,te)):h=d,h.length===i&&(L=i!==0)}else h!==void 0?(h.length!==i&&(h+=K5),L=!0,h+=e.substring(b,j)):(L=!0,A=j);S=j+1}return h??(l>i?gDe(e):e)}function Jin(e){e=c_e(e);let r=h$t(e);return r!==void 0?r:(r=qin(e,""),r&&RYe(e)?g$t(r):r)}function h$t(e){if(!Wjt.test(e))return e;let r=e.replace(/\/\.\//g,"/");if(r.startsWith("./")&&(r=r.slice(2)),r!==e&&(e=r,!Wjt.test(e)))return e}function gDe(e){return RYe(e)?e.substr(0,e.length-1):e}function g$t(e){return RYe(e)?e:e+K5}var Wjt=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function N(e,r,i,s,l,d,h){return{code:e,category:r,key:i,message:s,reportsUnnecessary:l,elidedInCompatabilityPyramid:d,reportsDeprecated:h}}var _n={Unterminated_string_literal:N(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:N(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:N(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:N(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:N(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:N(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:N(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:N(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:N(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:N(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:N(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:N(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:N(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:N(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:N(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:N(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:N(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:N(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:N(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:N(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:N(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:N(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:N(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:N(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:N(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:N(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:N(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:N(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:N(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:N(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:N(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:N(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:N(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:N(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:N(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:N(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:N(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:N(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:N(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:N(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:N(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:N(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:N(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:N(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:N(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:N(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:N(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:N(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:N(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:N(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:N(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:N(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:N(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:N(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:N(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:N(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:N(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:N(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:N(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:N(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:N(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:N(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:N(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:N(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:N(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:N(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:N(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:N(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:N(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:N(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:N(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:N(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:N(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:N(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:N(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:N(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:N(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:N(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:N(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:N(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:N(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:N(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:N(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:N(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:N(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:N(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:N(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:N(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:N(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:N(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:N(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:N(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:N(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:N(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:N(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:N(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:N(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:N(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:N(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:N(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:N(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:N(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:N(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:N(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:N(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:N(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:N(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:N(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:N(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:N(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:N(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:N(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:N(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:N(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:N(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:N(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:N(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:N(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:N(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:N(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:N(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:N(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:N(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:N(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:N(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:N(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:N(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:N(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:N(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:N(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:N(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:N(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:N(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:N(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:N(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:N(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:N(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:N(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:N(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:N(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:N(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:N(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:N(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:N(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:N(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:N(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:N(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:N(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:N(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:N(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:N(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:N(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:N(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:N(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:N(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:N(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:N(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:N(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:N(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:N(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:N(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:N(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:N(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:N(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:N(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:N(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:N(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:N(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:N(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:N(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:N(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:N(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:N(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:N(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:N(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:N(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:N(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:N(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:N(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:N(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:N(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:N(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:N(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:N(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:N(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:N(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:N(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:N(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:N(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:N(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:N(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:N(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:N(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:N(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:N(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:N(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:N(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:N(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:N(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:N(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:N(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:N(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:N(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:N(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:N(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:N(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:N(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:N(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:N(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:N(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:N(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:N(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:N(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:N(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:N(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:N(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:N(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:N(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:N(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:N(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:N(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:N(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:N(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:N(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:N(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:N(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:N(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:N(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:N(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:N(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:N(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:N(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:N(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:N(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:N(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:N(1286,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:N(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:N(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:N(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:N(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:N(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:N(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:N(1293,1,"ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:N(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:N(1295,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript."),with_statements_are_not_allowed_in_an_async_function_block:N(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:N(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:N(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:N(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:N(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:N(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:N(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:N(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:N(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:N(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:N(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:N(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:N(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:N(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext:N(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:N(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:N(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:N(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:N(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:N(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:N(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:N(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:N(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:N(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:N(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:N(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:N(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:N(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:N(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:N(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:N(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:N(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext:N(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'."),A_label_is_not_allowed_here:N(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:N(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:N(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:N(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:N(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:N(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:N(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:N(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:N(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:N(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:N(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:N(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:N(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:N(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:N(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:N(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:N(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:N(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:N(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:N(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:N(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:N(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:N(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:N(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:N(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:N(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:N(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:N(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:N(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:N(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:N(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:N(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:N(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:N(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:N(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:N(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:N(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:N(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:N(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:N(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:N(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:N(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:N(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:N(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:N(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:N(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:N(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:N(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:N(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:N(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:N(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:N(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:N(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:N(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:N(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:N(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:N(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:N(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:N(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:N(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:N(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:N(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:N(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:N(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:N(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:N(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:N(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:N(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:N(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:N(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:N(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:N(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:N(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:N(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:N(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:N(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:N(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:N(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:N(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:N(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:N(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:N(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:N(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:N(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:N(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:N(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:N(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:N(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:N(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:N(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:N(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:N(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:N(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:N(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:N(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:N(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:N(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:N(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:N(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:N(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:N(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:N(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:N(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:N(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:N(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:N(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:N(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:N(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:N(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:N(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:N(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:N(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:N(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:N(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:N(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:N(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:N(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:N(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:N(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:N(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:N(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:N(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:N(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:N(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:N(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:N(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:N(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:N(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:N(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:N(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:N(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:N(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:N(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:N(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:N(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:N(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:N(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:N(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:N(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:N(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:N(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:N(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:N(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:N(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:N(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:N(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:N(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:N(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:N(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:N(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:N(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:N(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:N(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:N(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:N(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:N(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:N(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:N(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:N(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:N(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:N(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:N(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:N(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:N(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:N(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:N(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:N(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:N(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:N(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:N(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:N(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:N(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:N(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:N(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:N(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:N(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:N(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:N(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:N(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:N(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:N(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:N(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),using_declarations_are_not_allowed_in_ambient_contexts:N(1545,1,"using_declarations_are_not_allowed_in_ambient_contexts_1545","'using' declarations are not allowed in ambient contexts."),await_using_declarations_are_not_allowed_in_ambient_contexts:N(1546,1,"await_using_declarations_are_not_allowed_in_ambient_contexts_1546","'await using' declarations are not allowed in ambient contexts."),The_types_of_0_are_incompatible_between_these_types:N(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:N(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:N(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:N(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:N(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:N(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:N(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:N(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:N(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:N(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:N(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:N(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:N(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:N(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:N(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:N(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:N(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:N(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:N(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:N(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:N(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:N(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:N(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:N(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:N(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:N(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:N(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:N(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:N(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:N(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:N(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:N(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:N(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:N(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:N(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:N(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:N(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:N(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:N(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:N(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:N(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:N(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:N(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:N(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:N(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:N(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:N(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:N(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:N(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:N(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:N(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:N(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:N(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:N(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:N(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:N(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:N(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:N(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:N(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:N(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:N(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:N(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:N(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:N(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:N(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:N(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:N(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:N(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:N(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:N(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:N(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:N(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:N(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:N(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:N(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:N(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:N(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:N(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:N(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:N(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:N(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:N(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:N(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:N(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:N(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:N(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:N(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:N(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:N(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:N(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:N(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:N(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:N(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:N(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:N(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:N(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:N(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:N(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:N(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:N(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:N(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:N(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:N(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:N(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:N(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:N(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:N(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:N(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:N(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:N(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:N(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:N(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:N(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:N(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:N(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:N(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:N(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:N(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:N(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:N(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:N(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:N(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:N(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:N(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:N(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:N(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:N(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:N(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:N(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:N(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:N(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:N(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:N(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:N(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:N(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:N(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:N(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:N(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:N(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:N(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:N(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:N(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:N(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:N(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:N(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:N(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:N(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:N(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:N(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:N(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:N(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:N(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:N(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:N(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:N(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:N(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:N(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:N(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:N(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:N(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:N(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:N(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:N(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:N(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:N(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:N(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:N(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:N(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:N(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:N(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:N(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:N(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:N(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:N(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:N(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:N(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:N(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:N(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:N(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:N(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:N(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:N(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:N(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:N(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:N(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:N(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:N(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:N(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:N(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:N(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:N(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:N(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:N(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:N(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:N(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:N(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:N(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:N(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:N(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:N(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:N(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:N(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:N(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:N(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:N(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:N(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:N(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:N(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:N(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:N(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:N(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:N(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:N(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:N(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:N(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:N(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:N(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:N(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:N(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:N(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:N(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:N(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:N(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:N(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:N(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:N(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:N(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:N(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:N(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:N(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:N(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:N(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:N(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:N(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:N(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:N(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:N(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:N(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:N(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:N(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:N(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:N(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:N(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:N(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:N(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:N(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:N(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:N(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:N(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:N(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:N(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:N(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:N(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:N(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:N(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:N(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:N(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:N(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:N(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:N(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:N(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:N(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:N(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:N(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:N(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:N(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:N(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:N(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:N(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:N(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:N(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:N(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:N(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:N(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:N(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:N(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:N(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:N(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:N(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:N(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:N(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:N(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:N(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:N(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:N(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:N(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:N(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:N(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:N(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:N(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:N(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:N(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:N(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:N(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:N(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:N(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:N(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:N(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:N(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:N(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:N(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:N(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:N(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:N(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:N(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:N(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:N(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:N(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:N(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:N(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:N(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:N(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:N(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:N(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:N(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:N(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:N(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:N(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:N(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:N(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:N(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:N(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:N(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:N(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:N(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:N(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:N(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:N(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:N(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:N(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:N(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:N(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:N(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:N(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:N(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:N(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:N(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:N(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:N(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:N(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:N(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:N(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:N(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:N(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:N(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:N(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:N(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:N(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:N(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:N(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:N(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:N(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:N(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:N(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:N(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:N(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:N(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:N(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:N(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:N(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:N(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:N(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:N(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:N(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:N(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:N(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:N(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:N(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:N(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:N(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:N(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:N(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:N(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:N(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:N(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:N(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:N(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:N(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:N(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:N(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:N(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:N(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:N(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:N(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:N(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:N(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:N(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:N(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:N(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:N(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:N(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:N(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0:N(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 and above with module {0}."),Cannot_find_lib_definition_for_0:N(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:N(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:N(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:N(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:N(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:N(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:N(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:N(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:N(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:N(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:N(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:N(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:N(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:N(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:N(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:N(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:N(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:N(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:N(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:N(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:N(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:N(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:N(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:N(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:N(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:N(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:N(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:N(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:N(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:N(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:N(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:N(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:N(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:N(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:N(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:N(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:N(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:N(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:N(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:N(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:N(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:N(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:N(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:N(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:N(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:N(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:N(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:N(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:N(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:N(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:N(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:N(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:N(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:N(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:N(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:N(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:N(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:N(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:N(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:N(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:N(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:N(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:N(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:N(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:N(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:N(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:N(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:N(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:N(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:N(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:N(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:N(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:N(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:N(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:N(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:N(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:N(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:N(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:N(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:N(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:N(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:N(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:N(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:N(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:N(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:N(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:N(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:N(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks:N(2815,1,"arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815","'arguments' cannot be referenced in property initializers or class static initialization blocks."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:N(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:N(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:N(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:N(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:N(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:N(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:N(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:N(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:N(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:N(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:N(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:N(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:N(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:N(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:N(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:N(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:N(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:N(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:N(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:N(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:N(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:N(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:N(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:N(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:N(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:N(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:N(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:N(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:N(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:N(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:N(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:N(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:N(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:N(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:N(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:N(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:N(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:N(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:N(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:N(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:N(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:N(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:N(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:N(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:N(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:N(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:N(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:N(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:N(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:N(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:N(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:N(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:N(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:N(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),This_expression_is_never_nullish:N(2881,1,"This_expression_is_never_nullish_2881","This expression is never nullish."),Import_declaration_0_is_using_private_name_1:N(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:N(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:N(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:N(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:N(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:N(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:N(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:N(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:N(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:N(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:N(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:N(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:N(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:N(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:N(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:N(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:N(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:N(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:N(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:N(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:N(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:N(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:N(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:N(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:N(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:N(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:N(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:N(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:N(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:N(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:N(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:N(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:N(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:N(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:N(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:N(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:N(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:N(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:N(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:N(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:N(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:N(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:N(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:N(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:N(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:N(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:N(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:N(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:N(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:N(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:N(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:N(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:N(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:N(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:N(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:N(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:N(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:N(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:N(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:N(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:N(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:N(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:N(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:N(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:N(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:N(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:N(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:N(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:N(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:N(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:N(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:N(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:N(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:N(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:N(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:N(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:N(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:N(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:N(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:N(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),The_current_host_does_not_support_the_0_option:N(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:N(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:N(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:N(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:N(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:N(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:N(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:N(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:N(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:N(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:N(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:N(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:N(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:N(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:N(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:N(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:N(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:N(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:N(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:N(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:N(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:N(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:N(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:N(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:N(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:N(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:N(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:N(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:N(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:N(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:N(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:N(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:N(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:N(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:N(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:N(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:N(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:N(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:N(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:N(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:N(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:N(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:N(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:N(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:N(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:N(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:N(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:N(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:N(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:N(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:N(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:N(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:N(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:N(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:N(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:N(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:N(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:N(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:N(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:N(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:N(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:N(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:N(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:N(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:N(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:N(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:N(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:N(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:N(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:N(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:N(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:N(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:N(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:N(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:N(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:N(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:N(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:N(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:N(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:N(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:N(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:N(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:N(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:N(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:N(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:N(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:N(6024,3,"options_6024","options"),file:N(6025,3,"file_6025","file"),Examples_Colon_0:N(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:N(6027,3,"Options_Colon_6027","Options:"),Version_0:N(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:N(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:N(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:N(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:N(6034,3,"KIND_6034","KIND"),FILE:N(6035,3,"FILE_6035","FILE"),VERSION:N(6036,3,"VERSION_6036","VERSION"),LOCATION:N(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:N(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:N(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:N(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:N(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:N(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:N(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:N(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:N(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:N(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:N(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:N(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:N(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:N(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:N(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:N(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:N(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:N(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:N(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:N(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:N(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:N(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:N(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:N(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:N(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:N(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:N(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:N(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:N(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:N(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:N(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:N(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:N(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:N(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:N(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:N(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:N(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:N(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:N(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:N(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:N(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:N(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:N(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:N(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:N(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:N(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:N(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:N(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:N(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:N(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:N(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:N(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:N(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:N(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:N(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:N(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:N(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:N(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:N(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:N(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:N(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:N(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:N(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:N(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:N(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:N(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:N(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:N(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:N(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:N(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:N(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:N(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:N(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:N(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:N(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:N(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:N(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:N(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:N(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:N(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:N(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:N(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:N(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:N(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:N(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:N(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:N(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:N(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:N(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:N(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:N(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:N(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:N(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:N(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:N(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:N(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:N(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:N(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:N(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:N(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:N(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:N(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:N(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:N(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:N(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:N(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:N(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:N(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:N(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:N(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:N(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:N(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:N(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:N(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:N(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:N(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:N(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:N(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:N(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:N(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:N(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:N(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:N(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:N(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:N(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:N(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:N(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:N(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:N(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:N(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:N(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:N(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:N(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:N(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:N(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:N(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:N(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:N(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:N(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:N(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:N(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:N(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:N(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:N(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:N(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:N(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:N(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:N(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:N(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:N(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:N(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:N(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:N(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:N(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:N(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:N(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:N(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:N(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:N(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:N(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:N(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:N(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:N(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:N(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:N(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:N(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:N(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:N(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:N(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:N(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:N(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:N(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:N(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:N(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:N(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:N(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:N(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:N(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:N(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:N(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:N(6244,3,"Modules_6244","Modules"),File_Management:N(6245,3,"File_Management_6245","File Management"),Emit:N(6246,3,"Emit_6246","Emit"),JavaScript_Support:N(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:N(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:N(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:N(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:N(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:N(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:N(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:N(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:N(6255,3,"Projects_6255","Projects"),Output_Formatting:N(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:N(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:N(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:N(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:N(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:N(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:N(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:N(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:N(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:N(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:N(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:N(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:N(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:N(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:N(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:N(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:N(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:N(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:N(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:N(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:N(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:N(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:N(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:N(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:N(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),File_Layout:N(6284,3,"File_Layout_6284","File Layout"),Environment_Settings:N(6285,3,"Environment_Settings_6285","Environment Settings"),See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule:N(6286,3,"See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286","See also https://aka.ms/tsconfig/module"),For_nodejs_Colon:N(6287,3,"For_nodejs_Colon_6287","For nodejs:"),and_npm_install_D_types_Slashnode:N(6290,3,"and_npm_install_D_types_Slashnode_6290","and npm install -D @types/node"),Other_Outputs:N(6291,3,"Other_Outputs_6291","Other Outputs"),Stricter_Typechecking_Options:N(6292,3,"Stricter_Typechecking_Options_6292","Stricter Typechecking Options"),Style_Options:N(6293,3,"Style_Options_6293","Style Options"),Recommended_Options:N(6294,3,"Recommended_Options_6294","Recommended Options"),Enable_project_compilation:N(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:N(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:N(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:N(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:N(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:N(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:N(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:N(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:N(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:N(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:N(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:N(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:N(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:N(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:N(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:N(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:N(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:N(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:N(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:N(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:N(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:N(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:N(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:N(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:N(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:N(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:N(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:N(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:N(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:N(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:N(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:N(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:N(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:N(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:N(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:N(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:N(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:N(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:N(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:N(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:N(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:N(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:N(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:N(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:N(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:N(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:N(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:N(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:N(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:N(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:N(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:N(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:N(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:N(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:N(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:N(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:N(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:N(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:N(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:N(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:N(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:N(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:N(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:N(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:N(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:N(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:N(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:N(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:N(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:N(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:N(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:N(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:N(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:N(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:N(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:N(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:N(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files:N(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:N(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:N(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:N(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:N(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:N(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:N(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:N(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:N(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:N(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:N(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:N(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:N(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:N(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:N(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:N(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:N(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:N(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:N(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:N(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:N(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:N(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:N(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:N(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:N(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:N(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:N(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:N(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:N(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:N(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:N(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:N(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:N(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:N(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:N(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:N(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:N(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:N(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:N(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:N(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:N(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:N(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:N(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:N(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:N(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:N(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:N(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:N(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:N(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:N(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:N(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:N(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:N(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:N(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:N(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:N(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:N(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:N(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:N(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:N(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:N(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:N(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:N(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:N(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:N(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:N(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:N(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:N(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:N(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:N(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:N(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:N(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:N(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:N(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:N(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:N(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:N(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:N(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:N(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:N(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:N(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:N(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:N(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:N(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:N(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:N(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:N(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:N(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:N(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:N(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:N(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:N(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:N(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:N(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:N(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:N(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:N(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:N(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:N(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:N(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:N(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:N(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:N(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:N(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:N(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:N(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:N(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:N(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:N(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:N(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:N(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:N(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:N(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:N(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:N(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:N(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:N(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:N(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),Default_catch_clause_variables_as_unknown_instead_of_any:N(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:N(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:N(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:N(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:N(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:N(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),one_of_Colon:N(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:N(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:N(6902,3,"type_Colon_6902","type:"),default_Colon:N(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:N(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:N(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:N(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:N(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:N(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:N(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:N(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:N(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:N(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:N(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:N(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:N(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:N(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:N(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:N(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:N(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:N(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:N(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:N(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:N(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:N(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:N(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:N(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:N(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:N(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:N(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:N(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:N(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:N(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:N(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:N(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:N(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:N(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:N(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:N(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:N(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:N(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:N(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:N(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:N(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:N(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:N(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:N(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:N(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:N(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:N(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:N(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:N(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:N(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:N(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:N(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:N(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:N(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:N(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:N(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:N(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:N(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:N(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:N(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:N(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:N(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:N(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:N(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:N(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:N(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:N(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:N(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:N(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:N(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:N(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:N(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:N(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:N(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:N(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:N(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:N(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:N(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:N(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:N(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:N(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:N(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:N(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:N(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:N(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:N(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:N(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:N(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:N(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:N(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:N(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:N(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:N(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:N(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:N(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:N(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:N(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:N(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:N(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:N(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:N(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:N(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:N(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:N(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:N(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:N(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:N(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:N(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:N(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:N(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:N(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:N(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:N(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:N(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:N(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:N(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:N(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:N(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:N(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:N(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:N(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:N(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:N(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:N(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:N(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:N(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:N(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:N(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:N(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:N(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:N(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:N(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:N(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:N(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:N(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:N(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:N(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:N(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:N(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:N(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:N(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:N(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:N(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:N(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:N(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:N(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:N(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:N(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:N(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:N(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:N(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:N(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:N(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:N(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:N(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:N(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:N(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:N(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:N(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:N(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:N(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:N(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:N(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:N(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:N(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:N(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:N(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:N(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:N(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:N(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:N(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:N(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:N(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:N(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:N(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:N(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:N(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:N(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:N(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:N(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:N(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:N(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:N(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:N(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:N(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:N(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:N(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:N(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:N(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:N(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:N(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:N(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:N(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:N(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:N(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:N(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:N(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:N(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:N(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:N(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:N(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:N(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:N(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:N(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:N(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:N(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:N(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:N(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:N(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:N(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:N(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:N(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:N(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:N(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:N(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:N(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:N(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:N(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:N(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:N(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:N(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:N(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:N(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:N(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:N(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:N(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:N(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:N(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:N(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:N(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:N(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:N(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:N(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:N(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:N(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:N(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:N(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:N(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:N(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:N(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:N(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:N(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:N(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:N(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:N(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:N(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:N(95005,3,"Extract_function_95005","Extract function"),Extract_constant:N(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:N(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:N(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:N(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:N(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:N(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:N(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:N(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:N(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:N(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:N(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:N(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:N(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:N(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:N(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:N(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:N(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:N(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:N(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:N(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:N(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:N(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:N(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:N(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:N(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:N(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:N(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:N(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:N(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:N(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:N(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:N(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:N(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:N(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:N(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:N(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:N(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:N(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:N(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:N(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:N(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:N(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:N(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:N(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:N(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:N(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:N(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:N(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:N(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:N(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:N(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:N(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:N(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:N(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:N(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:N(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:N(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:N(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:N(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:N(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:N(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:N(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:N(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:N(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:N(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:N(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:N(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:N(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:N(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:N(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:N(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:N(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:N(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:N(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:N(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:N(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:N(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:N(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:N(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:N(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:N(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:N(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:N(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:N(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:N(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:N(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:N(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:N(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:N(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:N(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:N(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:N(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:N(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:N(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:N(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:N(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:N(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:N(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:N(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:N(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:N(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:N(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:N(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:N(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:N(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:N(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:N(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:N(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:N(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:N(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:N(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:N(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:N(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:N(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:N(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:N(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:N(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:N(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:N(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:N(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:N(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:N(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:N(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:N(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:N(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:N(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:N(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:N(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:N(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:N(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:N(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:N(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:N(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:N(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:N(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:N(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:N(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:N(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:N(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:N(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:N(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:N(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:N(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:N(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:N(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:N(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:N(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:N(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:N(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:N(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:N(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:N(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:N(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:N(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:N(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:N(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:N(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:N(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:N(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:N(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:N(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:N(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:N(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:N(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:N(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:N(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:N(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:N(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:N(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:N(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:N(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:N(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:N(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:N(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:N(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:N(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:N(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:N(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:N(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:N(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:N(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:N(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:N(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:N(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:N(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:N(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:N(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:N(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:N(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:N(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:N(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:N(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:N(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:N(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:N(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:N(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:N(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:N(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:N(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:N(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:N(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:N(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:N(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:N(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:N(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:N(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:N(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:N(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:N(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:N(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:N(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:N(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:N(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:N(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:N(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:N(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:N(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:N(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:N(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:N(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:N(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:N(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:N(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:N(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:N(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:N(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:N(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:N(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:N(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:N(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:N(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:N(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:N(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'."),Default_imports_are_not_allowed_in_a_deferred_import:N(18058,1,"Default_imports_are_not_allowed_in_a_deferred_import_18058","Default imports are not allowed in a deferred import."),Named_imports_are_not_allowed_in_a_deferred_import:N(18059,1,"Named_imports_are_not_allowed_in_a_deferred_import_18059","Named imports are not allowed in a deferred import."),Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:N(18060,1,"Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060","Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'."),_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:N(18061,1,"_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061","'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?")};function cy(e){return e>=80}function Vin(e){return e===32||cy(e)}var LYe={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,defer:166,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},Win=new Map(Object.entries(LYe)),y$t=new Map(Object.entries({...LYe,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),v$t=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),Gin=new Map([[1,Vpe.RegularExpressionFlagsHasIndices],[16,Vpe.RegularExpressionFlagsDotAll],[32,Vpe.RegularExpressionFlagsUnicode],[64,Vpe.RegularExpressionFlagsUnicodeSets],[128,Vpe.RegularExpressionFlagsSticky]]),Hin=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Kin=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Qin=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],Zin=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],Xin=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Yin=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,eon=/@(?:see|link)/i;function yDe(e,r){if(e=2?yDe(e,Qin):yDe(e,Hin)}function ron(e,r){return r>=2?yDe(e,Zin):yDe(e,Kin)}function S$t(e){let r=[];return e.forEach((i,s)=>{r[i]=s}),r}var non=S$t(y$t);function Bm(e){return non[e]}function b$t(e){return y$t.get(e)}var zJn=S$t(v$t);function Gjt(e){return v$t.get(e)}function x$t(e){let r=[],i=0,s=0;for(;i127&&xk(l)&&(r.push(s),s=i);break}}return r.push(s),r}function ion(e,r,i,s,l){(r<0||r>=e.length)&&(l?r=r<0?0:r>=e.length?e.length-1:r:Pi.fail(`Bad line number. Line: ${r}, lineStarts.length: ${e.length} , line map is correct? ${s!==void 0?pin(e,x$t(s)):"unknown"}`));let d=e[r]+i;return l?d>e[r+1]?e[r+1]:typeof s=="string"&&d>s.length?s.length:d:(r=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function xk(e){return e===10||e===13||e===8232||e===8233}function _B(e){return e>=48&&e<=57}function VXe(e){return _B(e)||e>=65&&e<=70||e>=97&&e<=102}function MYe(e){return e>=65&&e<=90||e>=97&&e<=122}function E$t(e){return MYe(e)||_B(e)||e===95}function WXe(e){return e>=48&&e<=55}function b8(e,r,i,s,l){if(d_e(r))return r;let d=!1;for(;;){let h=e.charCodeAt(r);switch(h){case 13:e.charCodeAt(r+1)===10&&r++;case 10:if(r++,i)return r;d=!!l;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(s)break;if(e.charCodeAt(r+1)===47){for(r+=2;r127&&aee(h)){r++;continue}break}return r}}var uDe=7;function kV(e,r){if(Pi.assert(r>=0),r===0||xk(e.charCodeAt(r-1))){let i=e.charCodeAt(r);if(r+uDe=0&&i127&&aee(te)){V&&xk(te)&&(L=!0),i++;continue}break e}}return V&&(ie=l(S,b,A,L,d,ie)),ie}function son(e,r,i,s){return DDe(!1,e,r,!1,i,s)}function con(e,r,i,s){return DDe(!1,e,r,!0,i,s)}function lon(e,r,i,s,l){return DDe(!0,e,r,!1,i,s,l)}function uon(e,r,i,s,l){return DDe(!0,e,r,!0,i,s,l)}function D$t(e,r,i,s,l,d=[]){return d.push({kind:i,pos:e,end:r,hasTrailingNewLine:s}),d}function uYe(e,r){return lon(e,r,D$t,void 0,void 0)}function pon(e,r){return uon(e,r,D$t,void 0,void 0)}function A$t(e){let r=jYe.exec(e);if(r)return r[0]}function J6(e,r){return MYe(e)||e===36||e===95||e>127&&ton(e,r)}function V5(e,r,i){return E$t(e)||e===36||(i===1?e===45||e===58:!1)||e>127&&ron(e,r)}function _on(e,r,i){let s=CV(e,0);if(!J6(s,r))return!1;for(let l=Qv(s);lL,getStartPos:()=>L,getTokenEnd:()=>b,getTextPos:()=>b,getToken:()=>j,getTokenStart:()=>V,getTokenPos:()=>V,getTokenText:()=>S.substring(V,b),getTokenValue:()=>ie,hasUnicodeEscape:()=>(te&1024)!==0,hasExtendedUnicodeEscape:()=>(te&8)!==0,hasPrecedingLineBreak:()=>(te&1)!==0,hasPrecedingJSDocComment:()=>(te&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(te&32768)!==0,isIdentifier:()=>j===80||j>118,isReservedWord:()=>j>=83&&j<=118,isUnterminated:()=>(te&4)!==0,getCommentDirectives:()=>X,getNumericLiteralFlags:()=>te&25584,getTokenFlags:()=>te,reScanGreaterToken:Sc,reScanAsteriskEqualsToken:Wu,reScanSlashToken:uc,reScanTemplateToken:zp,reScanTemplateHeadOrNoSubstitutionTemplate:Rh,scanJsxIdentifier:O1,scanJsxAttributeValue:__,reScanJsxAttributeValue:Bc,reScanJsxToken:K0,reScanLessThanToken:rf,reScanHashToken:vx,reScanQuestionToken:dy,reScanInvalidIdentifier:hs,scanJsxToken:vm,scanJsDocToken:jt,scanJSDocCommentTextToken:cb,scan:Wn,getText:Jl,clearCommentDirectives:zd,setText:pu,setScriptTarget:or,setLanguageVariant:Gr,setScriptKind:pi,setJSDocParsingMode:ia,setOnError:Tf,resetTokenState:To,setTextPos:To,setSkipJsDocLeadingAsterisks:Gu,tryScan:Zc,lookAhead:En,scanRange:Ti};return Pi.isDebugging&&Object.defineProperty($e,"__debugShowCurrentPositionInText",{get:()=>{let Yr=$e.getText();return Yr.slice(0,$e.getTokenFullStart())+"\u2551"+Yr.slice($e.getTokenFullStart())}}),$e;function xt(Yr){return CV(S,Yr)}function tr(Yr){return Yr>=0&&Yr=0&&Yr=65&&rs<=70)rs+=32;else if(!(rs>=48&&rs<=57||rs>=97&&rs<=102))break;us.push(rs),b++,pc=!1}return us.length=A){to+=S.substring(us,b),te|=4,Ut(_n.Unterminated_string_literal);break}let Ja=ht(b);if(Ja===Sn){to+=S.substring(us,b),b++;break}if(Ja===92&&!Yr){to+=S.substring(us,b),to+=ol(3),us=b;continue}if((Ja===10||Ja===13)&&!Yr){to+=S.substring(us,b),te|=4,Ut(_n.Unterminated_string_literal);break}b++}return to}function Cr(Yr){let Sn=ht(b)===96;b++;let to=b,us="",Ja;for(;;){if(b>=A){us+=S.substring(to,b),te|=4,Ut(_n.Unterminated_template_literal),Ja=Sn?15:18;break}let pc=ht(b);if(pc===96){us+=S.substring(to,b),b++,Ja=Sn?15:18;break}if(pc===36&&b+1=A)return Ut(_n.Unexpected_end_of_text),"";let to=ht(b);switch(b++,to){case 48:if(b>=A||!_B(ht(b)))return"\0";case 49:case 50:case 51:b=55296&&us<=56319&&b+6=56320&&Yl<=57343)return b=rs,Ja+String.fromCharCode(Yl)}return Ja;case 120:for(;b1114111&&(Yr&&Ut(_n.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,to,b-to),pc=!0),b>=A?(Yr&&Ut(_n.Unexpected_end_of_text),pc=!0):ht(b)===125?b++:(Yr&&Ut(_n.Unterminated_Unicode_escape_sequence),pc=!0),pc?(te|=2048,S.substring(Sn,b)):(te|=8,Hjt(Ja))}function Rc(){if(b+5=0&&V5(to,e)){Yr+=Zo(!0),Sn=b;continue}if(to=Rc(),!(to>=0&&V5(to,e)))break;te|=1024,Yr+=S.substring(Sn,b),Yr+=Hjt(to),b+=6,Sn=b}else break}return Yr+=S.substring(Sn,b),Yr}function li(){let Yr=ie.length;if(Yr>=2&&Yr<=12){let Sn=ie.charCodeAt(0);if(Sn>=97&&Sn<=122){let to=Win.get(ie);if(to!==void 0)return j=to}}return j=80}function Wi(Yr){let Sn="",to=!1,us=!1;for(;;){let Ja=ht(b);if(Ja===95){te|=512,to?(to=!1,us=!0):Ut(us?_n.Multiple_consecutive_numeric_separators_are_not_permitted:_n.Numeric_separators_are_not_allowed_here,b,1),b++;continue}if(to=!0,!_B(Ja)||Ja-48>=Yr)break;Sn+=S[b],b++,us=!1}return ht(b-1)===95&&Ut(_n.Numeric_separators_are_not_allowed_here,b-1,1),Sn}function Bo(){return ht(b)===110?(ie+="n",te&384&&(ie=Isn(ie)+"n"),b++,10):(ie=""+(te&128?parseInt(ie.slice(2),2):te&256?parseInt(ie.slice(2),8):+ie),9)}function Wn(){for(L=b,te=0;;){if(V=b,b>=A)return j=1;let Yr=xt(b);if(b===0&&Yr===35&&k$t(S,b)){if(b=C$t(S,b),r)continue;return j=6}switch(Yr){case 10:case 13:if(te|=1,r){b++;continue}else return Yr===13&&b+1=0&&J6(Sn,e))return ie=Zo(!0)+Xr(),j=li();let to=Rc();return to>=0&&J6(to,e)?(b+=6,te|=1024,ie=String.fromCharCode(to)+Xr(),j=li()):(Ut(_n.Invalid_character),b++,j=0);case 35:if(b!==0&&S[b+1]==="!")return Ut(_n.can_only_be_used_at_the_start_of_a_file,b,2),b++,j=0;let us=xt(b+1);if(us===92){b++;let rs=an();if(rs>=0&&J6(rs,e))return ie="#"+Zo(!0)+Xr(),j=81;let Yl=Rc();if(Yl>=0&&J6(Yl,e))return b+=6,te|=1024,ie="#"+String.fromCharCode(Yl)+Xr(),j=81;b--}return J6(us,e)?(b++,Us(us,e)):(ie="#",Ut(_n.Invalid_character,b++,Qv(Yr))),j=81;case 65533:return Ut(_n.File_appears_to_be_binary,0,0),b=A,j=8;default:let Ja=Us(Yr,e);if(Ja)return j=Ja;if(e_e(Yr)){b+=Qv(Yr);continue}else if(xk(Yr)){te|=1,b+=Qv(Yr);continue}let pc=Qv(Yr);return Ut(_n.Invalid_character,b,pc),b+=pc,j=0}}}function Na(){switch(pt){case 0:return!0;case 1:return!1}return Je!==3&&Je!==4?!0:pt===3?!1:eon.test(S.slice(L,b))}function hs(){Pi.assert(j===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),b=V=L,te=0;let Yr=xt(b),Sn=Us(Yr,99);return Sn?j=Sn:(b+=Qv(Yr),j)}function Us(Yr,Sn){let to=Yr;if(J6(to,Sn)){for(b+=Qv(to);b=A)return j=1;let Sn=ht(b);if(Sn===60)return ht(b+1)===47?(b+=2,j=31):(b++,j=30);if(Sn===123)return b++,j=19;let to=0;for(;b0)break;aee(Sn)||(to=b)}b++}return ie=S.substring(L,b),to===-1?13:12}function O1(){if(cy(j)){for(;b=A)return j=1;for(let Sn=ht(b);b=0&&e_e(ht(b-1))&&!(b+1=A)return j=1;let Yr=xt(b);switch(b+=Qv(Yr),Yr){case 9:case 11:case 12:case 32:for(;b=0&&J6(Sn,e))return ie=Zo(!0)+Xr(),j=li();let to=Rc();return to>=0&&J6(to,e)?(b+=6,te|=1024,ie=String.fromCharCode(to)+Xr(),j=li()):(b++,j=0)}if(J6(Yr,e)){let Sn=Yr;for(;b=0),b=Yr,L=Yr,V=Yr,j=0,ie=void 0,te=0}function Gu(Yr){Re+=Yr?1:-1}}function CV(e,r){return e.codePointAt(r)}function Qv(e){return e>=65536?2:e===-1?0:1}function don(e){if(Pi.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let r=Math.floor((e-65536)/1024)+55296,i=(e-65536)%1024+56320;return String.fromCharCode(r,i)}var fon=String.fromCodePoint?e=>String.fromCodePoint(e):don;function Hjt(e){return fon(e)}var Kjt=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),Qjt=new Set(["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","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","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"]),Zjt=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),nee={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};nee.Script_Extensions=nee.Script;function v8(e){return e.start+e.length}function mon(e){return e.length===0}function $Ye(e,r){if(e<0)throw new Error("start < 0");if(r<0)throw new Error("length < 0");return{start:e,length:r}}function hon(e,r){return $Ye(e,r-e)}function Wpe(e){return $Ye(e.span.start,e.newLength)}function gon(e){return mon(e.span)&&e.newLength===0}function w$t(e,r){if(r<0)throw new Error("newLength < 0");return{span:e,newLength:r}}var qJn=w$t($Ye(0,0),0);function I$t(e,r){for(;e;){let i=r(e);if(i==="quit")return;if(i)return e;e=e.parent}}function vDe(e){return(e.flags&16)===0}function yon(e,r){if(e===void 0||vDe(e))return e;for(e=e.original;e;){if(vDe(e))return!r||r(e)?e:void 0;e=e.original}}function XY(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function l_e(e){let r=e;return r.length>=3&&r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===95?r.substr(1):r}function Ek(e){return l_e(e.escapedText)}function von(e){let r=b$t(e.escapedText);return r?Ein(r,dB):void 0}function pYe(e){return e.valueDeclaration&&Von(e.valueDeclaration)?Ek(e.valueDeclaration.name):l_e(e.escapedName)}function P$t(e){let r=e.parent.parent;if(r){if(eBt(r))return rDe(r);switch(r.kind){case 244:if(r.declarationList&&r.declarationList.declarations[0])return rDe(r.declarationList.declarations[0]);break;case 245:let i=r.expression;switch(i.kind===227&&i.operatorToken.kind===64&&(i=i.left),i.kind){case 212:return i.name;case 213:let s=i.argumentExpression;if(Kd(s))return s}break;case 218:return rDe(r.expression);case 257:{if(eBt(r.statement)||ian(r.statement))return rDe(r.statement);break}}}}function rDe(e){let r=N$t(e);return r&&Kd(r)?r:void 0}function Son(e){return e.name||P$t(e)}function bon(e){return!!e.name}function UYe(e){switch(e.kind){case 80:return e;case 349:case 342:{let{name:i}=e;if(i.kind===167)return i.right;break}case 214:case 227:{let i=e;switch(WYe(i)){case 1:case 4:case 5:case 3:return GYe(i.left);case 7:case 8:case 9:return i.arguments[1];default:return}}case 347:return Son(e);case 341:return P$t(e);case 278:{let{expression:i}=e;return Kd(i)?i:void 0}case 213:let r=e;if(H$t(r))return r.argumentExpression}return e.name}function N$t(e){if(e!==void 0)return UYe(e)||(fUt(e)||mUt(e)||vYe(e)?xon(e):void 0)}function xon(e){if(e.parent){if($cn(e.parent)||Tcn(e.parent))return e.parent.name;if(_ee(e.parent)&&e===e.parent.right){if(Kd(e.parent.left))return e.parent.left;if(eUt(e.parent.left))return GYe(e.parent.left)}else if(gUt(e.parent)&&Kd(e.parent.name))return e.parent.name}else return}function Ton(e){if(Xan(e))return H5(e.modifiers,eet)}function Eon(e){if(h_e(e,98303))return H5(e.modifiers,Hon)}function O$t(e,r){if(e.name)if(Kd(e.name)){let i=e.name.escapedText;return u_e(e.parent,r).filter(s=>hBt(s)&&Kd(s.name)&&s.name.escapedText===i)}else{let i=e.parent.parameters.indexOf(e);Pi.assert(i>-1,"Parameters should always be in their parents' parameter list");let s=u_e(e.parent,r).filter(hBt);if(itln(s)&&s.typeParameters.some(l=>l.name.escapedText===i))}function Don(e){return F$t(e,!1)}function Aon(e){return F$t(e,!0)}function won(e){return yB(e,Wcn)}function Ion(e){return jon(e,rln)}function Pon(e){return yB(e,Gcn,!0)}function Non(e){return yB(e,Hcn,!0)}function Oon(e){return yB(e,Kcn,!0)}function Fon(e){return yB(e,Qcn,!0)}function Ron(e){return yB(e,Zcn,!0)}function Lon(e){return yB(e,Ycn,!0)}function Mon(e){let r=yB(e,net);if(r&&r.typeExpression&&r.typeExpression.type)return r}function u_e(e,r){var i;if(!HYe(e))return ky;let s=(i=e.jsDoc)==null?void 0:i.jsDocCache;if(s===void 0||r){let l=Lan(e,r);Pi.assert(l.length<2||l[0]!==l[1]),s=e$t(l,d=>CUt(d)?d.tags:d),r||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=s)}return s}function R$t(e){return u_e(e,!1)}function yB(e,r,i){return XBt(u_e(e,i),r)}function jon(e,r){return R$t(e).filter(r)}function _Ye(e){return e.kind===80||e.kind===81}function Bon(e){return X5(e)&&!!(e.flags&64)}function $on(e){return g_e(e)&&!!(e.flags&64)}function Xjt(e){return dUt(e)&&!!(e.flags&64)}function Uon(e){let r=e.kind;return!!(e.flags&64)&&(r===212||r===213||r===214||r===236)}function zYe(e){return iet(e,8)}function zon(e){return _De(e)&&!!(e.flags&64)}function qYe(e){return e>=167}function L$t(e){return e>=0&&e<=166}function qon(e){return L$t(e.kind)}function fB(e){return T8(e,"pos")&&T8(e,"end")}function Jon(e){return 9<=e&&e<=15}function Yjt(e){return 15<=e&&e<=18}function iee(e){var r;return Kd(e)&&((r=e.emitNode)==null?void 0:r.autoGenerate)!==void 0}function M$t(e){var r;return NV(e)&&((r=e.emitNode)==null?void 0:r.autoGenerate)!==void 0}function Von(e){return(TDe(e)||Zon(e))&&NV(e.name)}function W5(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function Won(e){return!!(X$t(e)&31)}function Gon(e){return Won(e)||e===126||e===164||e===129}function Hon(e){return W5(e.kind)}function j$t(e){let r=e.kind;return r===80||r===81||r===11||r===9||r===168}function B$t(e){return!!e&&Qon(e.kind)}function Kon(e){switch(e){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function Qon(e){switch(e){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return Kon(e)}}function see(e){return e&&(e.kind===264||e.kind===232)}function Zon(e){switch(e.kind){case 175:case 178:case 179:return!0;default:return!1}}function Xon(e){let r=e.kind;return r===304||r===305||r===306||r===175||r===178||r===179}function Yon(e){return lsn(e.kind)}function ean(e){if(e){let r=e.kind;return r===208||r===207}return!1}function tan(e){let r=e.kind;return r===210||r===211}function ran(e){switch(e.kind){case 261:case 170:case 209:return!0}return!1}function cee(e){return $$t(zYe(e).kind)}function $$t(e){switch(e){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function nan(e){return U$t(zYe(e).kind)}function U$t(e){switch(e){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return $$t(e)}}function ian(e){return oan(zYe(e).kind)}function oan(e){switch(e){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return U$t(e)}}function aan(e){return e===220||e===209||e===264||e===232||e===176||e===177||e===267||e===307||e===282||e===263||e===219||e===178||e===274||e===272||e===277||e===265||e===292||e===175||e===174||e===268||e===271||e===275||e===281||e===170||e===304||e===173||e===172||e===179||e===305||e===266||e===169||e===261||e===347||e===339||e===349||e===203}function z$t(e){return e===263||e===283||e===264||e===265||e===266||e===267||e===268||e===273||e===272||e===279||e===278||e===271}function q$t(e){return e===253||e===252||e===260||e===247||e===245||e===243||e===250||e===251||e===249||e===246||e===257||e===254||e===256||e===258||e===259||e===244||e===248||e===255||e===354}function eBt(e){return e.kind===169?e.parent&&e.parent.kind!==346||OV(e):aan(e.kind)}function san(e){let r=e.kind;return q$t(r)||z$t(r)||can(e)}function can(e){return e.kind!==242||e.parent!==void 0&&(e.parent.kind===259||e.parent.kind===300)?!1:!Tan(e)}function lan(e){let r=e.kind;return q$t(r)||z$t(r)||r===242}function J$t(e){return e.kind>=310&&e.kind<=352}function uan(e){return e.kind===321||e.kind===320||e.kind===322||dan(e)||pan(e)||Vcn(e)||DUt(e)}function pan(e){return e.kind>=328&&e.kind<=352}function nDe(e){return e.kind===179}function iDe(e){return e.kind===178}function AV(e){if(!HYe(e))return!1;let{jsDoc:r}=e;return!!r&&r.length>0}function _an(e){return!!e.initializer}function JYe(e){return e.kind===11||e.kind===15}function dan(e){return e.kind===325||e.kind===326||e.kind===327}function tBt(e){return(e.flags&33554432)!==0}var JJn=fan();function fan(){var e="";let r=i=>e+=i;return{getText:()=>e,write:r,rawWrite:r,writeKeyword:r,writeOperator:r,writePunctuation:r,writeSpace:r,writeStringLiteral:r,writeLiteral:r,writeParameter:r,writeProperty:r,writeSymbol:(i,s)=>r(i),writeTrailingSemicolon:r,writeComment:r,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&aee(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:pee,decreaseIndent:pee,clear:()=>e=""}}function man(e,r){let i=e.entries();for(let[s,l]of i){let d=r(l,s);if(d)return d}}function han(e){return e.end-e.pos}function V$t(e){return gan(e),(e.flags&1048576)!==0}function gan(e){e.flags&2097152||(((e.flags&262144)!==0||cx(e,V$t))&&(e.flags|=1048576),e.flags|=2097152)}function hB(e){for(;e&&e.kind!==308;)e=e.parent;return e}function wV(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function dYe(e){return!wV(e)}function SDe(e,r,i){if(wV(e))return e.pos;if(J$t(e)||e.kind===12)return b8((r??hB(e)).text,e.pos,!1,!0);if(i&&AV(e))return SDe(e.jsDoc[0],r);if(e.kind===353){r??(r=hB(e));let s=PYe(AUt(e,r));if(s)return SDe(s,r,i)}return b8((r??hB(e)).text,e.pos,!1,!1,Ean(e))}function rBt(e,r,i=!1){return t_e(e.text,r,i)}function yan(e){return!!I$t(e,zcn)}function t_e(e,r,i=!1){if(wV(r))return"";let s=e.substring(i?r.pos:b8(e,r.pos),r.end);return yan(r)&&(s=s.split(/\r\n|\n|\r/).map(l=>l.replace(/^\s*\*/,"").trimStart()).join(` -`)),s}function lee(e){let r=e.emitNode;return r&&r.flags||0}function van(e,r,i){Pi.assertGreaterThanOrEqual(r,0),Pi.assertGreaterThanOrEqual(i,0),Pi.assertLessThanOrEqual(r,e.length),Pi.assertLessThanOrEqual(r+i,e.length)}function pDe(e){return e.kind===245&&e.expression.kind===11}function VYe(e){return!!(lee(e)&2097152)}function nBt(e){return VYe(e)&&yUt(e)}function San(e){return Kd(e.name)&&!e.initializer}function iBt(e){return VYe(e)&&wDe(e)&&wYe(e.declarationList.declarations,San)}function ban(e,r){let i=e.kind===170||e.kind===169||e.kind===219||e.kind===220||e.kind===218||e.kind===261||e.kind===282?IYe(pon(r,e.pos),uYe(r,e.pos)):uYe(r,e.pos);return H5(i,s=>s.end<=e.end&&r.charCodeAt(s.pos+1)===42&&r.charCodeAt(s.pos+2)===42&&r.charCodeAt(s.pos+3)!==47)}function xan(e){if(e)switch(e.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function Tan(e){return e&&e.kind===242&&B$t(e.parent)}function oBt(e){let r=e.kind;return(r===212||r===213)&&e.expression.kind===108}function OV(e){return!!e&&!!(e.flags&524288)}function Ean(e){return!!e&&!!(e.flags&16777216)}function kan(e){for(;bDe(e,!0);)e=e.right;return e}function Can(e){return Kd(e)&&e.escapedText==="exports"}function Dan(e){return Kd(e)&&e.escapedText==="module"}function W$t(e){return(X5(e)||G$t(e))&&Dan(e.expression)&&__e(e)==="exports"}function WYe(e){let r=wan(e);return r===5||OV(e)?r:0}function Aan(e){return Zpe(e.arguments)===3&&X5(e.expression)&&Kd(e.expression.expression)&&Ek(e.expression.expression)==="Object"&&Ek(e.expression.name)==="defineProperty"&&ADe(e.arguments[1])&&p_e(e.arguments[0],!0)}function G$t(e){return g_e(e)&&ADe(e.argumentExpression)}function m_e(e,r){return X5(e)&&(!r&&e.expression.kind===110||Kd(e.name)&&p_e(e.expression,!0))||H$t(e,r)}function H$t(e,r){return G$t(e)&&(!r&&e.expression.kind===110||ZYe(e.expression)||m_e(e.expression,!0))}function p_e(e,r){return ZYe(e)||m_e(e,r)}function wan(e){if(dUt(e)){if(!Aan(e))return 0;let r=e.arguments[0];return Can(r)||W$t(r)?8:m_e(r)&&__e(r)==="prototype"?9:7}return e.operatorToken.kind!==64||!eUt(e.left)||Ian(kan(e))?0:p_e(e.left.expression,!0)&&__e(e.left)==="prototype"&&_Ut(Nan(e))?6:Pan(e.left)}function Ian(e){return Ccn(e)&&dee(e.expression)&&e.expression.text==="0"}function GYe(e){if(X5(e))return e.name;let r=KYe(e.argumentExpression);return dee(r)||JYe(r)?r:e}function __e(e){let r=GYe(e);if(r){if(Kd(r))return r.escapedText;if(JYe(r)||dee(r))return XY(r.text)}}function Pan(e){if(e.expression.kind===110)return 4;if(W$t(e))return 2;if(p_e(e.expression,!0)){if(ssn(e.expression))return 3;let r=e;for(;!Kd(r.expression);)r=r.expression;let i=r.expression;if((i.escapedText==="exports"||i.escapedText==="module"&&__e(r)==="exports")&&m_e(e))return 1;if(p_e(e,!0)||g_e(e)&&Wan(e))return 5}return 0}function Nan(e){for(;_ee(e.right);)e=e.right;return e.right}function Oan(e){return hUt(e)&&_ee(e.expression)&&WYe(e.expression)!==0&&_ee(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function Fan(e){switch(e.kind){case 244:let r=fYe(e);return r&&r.initializer;case 173:return e.initializer;case 304:return e.initializer}}function fYe(e){return wDe(e)?PYe(e.declarationList.declarations):void 0}function Ran(e){return f_e(e)&&e.body&&e.body.kind===268?e.body:void 0}function HYe(e){switch(e.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function Lan(e,r){let i;xan(e)&&_an(e)&&AV(e.initializer)&&(i=Tk(i,aBt(e,e.initializer.jsDoc)));let s=e;for(;s&&s.parent;){if(AV(s)&&(i=Tk(i,aBt(e,s.jsDoc))),s.kind===170){i=Tk(i,(r?Con:kon)(s));break}if(s.kind===169){i=Tk(i,(r?Aon:Don)(s));break}s=jan(s)}return i||ky}function aBt(e,r){let i=min(r);return e$t(r,s=>{if(s===i){let l=H5(s.tags,d=>Man(e,d));return s.tags===l?[s]:l}else return H5(s.tags,Xcn)})}function Man(e,r){return!(net(r)||nln(r))||!r.parent||!CUt(r.parent)||!tet(r.parent.parent)||r.parent.parent===e}function jan(e){let r=e.parent;if(r.kind===304||r.kind===278||r.kind===173||r.kind===245&&e.kind===212||r.kind===254||Ran(r)||bDe(e))return r;if(r.parent&&(fYe(r.parent)===e||bDe(r)))return r.parent;if(r.parent&&r.parent.parent&&(fYe(r.parent.parent)||Fan(r.parent.parent)===e||Oan(r.parent.parent)))return r.parent.parent}function KYe(e,r){return iet(e,r?-2147483647:1)}function Ban(e){let r=$an(e);if(r&&OV(e)){let i=won(e);if(i)return i.class}return r}function $an(e){let r=QYe(e.heritageClauses,96);return r&&r.types.length>0?r.types[0]:void 0}function Uan(e){return OV(e)?Ion(e).map(r=>r.class):QYe(e.heritageClauses,119)?.types}function zan(e){return ret(e)?qan(e)||ky:see(e)&&IYe(sYe(Ban(e)),Uan(e))||ky}function qan(e){let r=QYe(e.heritageClauses,96);return r?r.types:void 0}function QYe(e,r){if(e){for(let i of e)if(i.token===r)return i}}function dB(e){return 83<=e&&e<=166}function Jan(e){return 19<=e&&e<=79}function GXe(e){return dB(e)||Jan(e)}function ADe(e){return JYe(e)||dee(e)}function Van(e){return Dcn(e)&&(e.operator===40||e.operator===41)&&dee(e.operand)}function Wan(e){if(!(e.kind===168||e.kind===213))return!1;let r=g_e(e)?KYe(e.argumentExpression):e.expression;return!ADe(r)&&!Van(r)}function Gan(e){return _Ye(e)?Ek(e):kUt(e)?Lsn(e):e.text}function YY(e){return d_e(e.pos)||d_e(e.end)}function HXe(e){switch(e){case 61:return 5;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function KXe(e){return!!((e.templateFlags||0)&2048)}function Han(e){return e&&!!(Ksn(e)?KXe(e):KXe(e.head)||sx(e.templateSpans,r=>KXe(r.literal)))}var VJn=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),WJn=new Map(Object.entries({'"':""","'":"'"}));function Kan(e){return!!e&&e.kind===80&&Qan(e)}function Qan(e){return e.escapedText==="this"}function h_e(e,r){return!!Yan(e,r)}function Zan(e){return h_e(e,256)}function Xan(e){return h_e(e,32768)}function Yan(e,r){return tsn(e)&r}function esn(e,r,i){return e.kind>=0&&e.kind<=166?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=Z$t(e)|536870912),i||r&&OV(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=K$t(e)|268435456),Q$t(e.modifierFlagsCache)):rsn(e.modifierFlagsCache))}function tsn(e){return esn(e,!1)}function K$t(e){let r=0;return e.parent&&!xDe(e)&&(OV(e)&&(Pon(e)&&(r|=8388608),Non(e)&&(r|=16777216),Oon(e)&&(r|=33554432),Fon(e)&&(r|=67108864),Ron(e)&&(r|=134217728)),Lon(e)&&(r|=65536)),r}function rsn(e){return e&65535}function Q$t(e){return e&131071|(e&260046848)>>>23}function nsn(e){return Q$t(K$t(e))}function isn(e){return Z$t(e)|nsn(e)}function Z$t(e){let r=oet(e)?ID(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(r|=32),r}function ID(e){let r=0;if(e)for(let i of e)r|=X$t(i.kind);return r}function X$t(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 171:return 32768}return 0}function osn(e){return e===76||e===77||e===78}function Y$t(e){return e>=64&&e<=79}function bDe(e,r){return _ee(e)&&(r?e.operatorToken.kind===64:Y$t(e.operatorToken.kind))&&cee(e.left)}function ZYe(e){return e.kind===80||asn(e)}function asn(e){return X5(e)&&Kd(e.name)&&ZYe(e.expression)}function ssn(e){return m_e(e)&&__e(e)==="prototype"}function QXe(e){return e.flags&3899393?e.objectFlags:0}function csn(e){let r;return cx(e,i=>{dYe(i)&&(r=i)},i=>{for(let s=i.length-1;s>=0;s--)if(dYe(i[s])){r=i[s];break}}),r}function lsn(e){return e>=183&&e<=206||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===234||e===313||e===314||e===315||e===316||e===317||e===318||e===319}function eUt(e){return e.kind===212||e.kind===213}function usn(e,r){this.flags=e,this.escapedName=r,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function psn(e,r){this.flags=r,(Pi.isDebugging||lDe)&&(this.checker=e)}function _sn(e,r){this.flags=r,Pi.isDebugging&&(this.checker=e)}function ZXe(e,r,i){this.pos=r,this.end=i,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function dsn(e,r,i){this.pos=r,this.end=i,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function fsn(e,r,i){this.pos=r,this.end=i,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function msn(e,r,i){this.fileName=e,this.text=r,this.skipTrivia=i||(s=>s)}var Ey={getNodeConstructor:()=>ZXe,getTokenConstructor:()=>dsn,getIdentifierConstructor:()=>fsn,getPrivateIdentifierConstructor:()=>ZXe,getSourceFileConstructor:()=>ZXe,getSymbolConstructor:()=>usn,getTypeConstructor:()=>psn,getSignatureConstructor:()=>_sn,getSourceMapSourceConstructor:()=>msn},hsn=[];function gsn(e){Object.assign(Ey,e),ND(hsn,r=>r(Ey))}function ysn(e,r){return e.replace(/\{(\d+)\}/g,(i,s)=>""+Pi.checkDefined(r[+s]))}var sBt;function vsn(e){return sBt&&sBt[e.key]||e.message}function HY(e,r,i,s,l,...d){i+s>r.length&&(s=r.length-i),van(r,i,s);let h=vsn(l);return sx(d)&&(h=ysn(h,d)),{file:void 0,start:i,length:s,messageText:h,category:l.category,code:l.code,reportsUnnecessary:l.reportsUnnecessary,fileName:e}}function Ssn(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function tUt(e,r){let i=r.fileName||"",s=r.text.length;Pi.assertEqual(e.fileName,i),Pi.assertLessThanOrEqual(e.start,s),Pi.assertLessThanOrEqual(e.start+e.length,s);let l={file:r,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){l.relatedInformation=[];for(let d of e.relatedInformation)Ssn(d)&&d.fileName===i?(Pi.assertLessThanOrEqual(d.start,s),Pi.assertLessThanOrEqual(d.start+d.length,s),l.relatedInformation.push(tUt(d,r))):l.relatedInformation.push(d)}return l}function bV(e,r){let i=[];for(let s of e)i.push(tUt(s,r));return i}function cBt(e){return e===4||e===2||e===1||e===6?1:0}var mm={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!!(e.allowImportingTsExtensions||e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===101&&9||e.module===102&&10||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:mm.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let r=e.moduleResolution;if(r===void 0)switch(mm.module.computeValue(e)){case 1:r=2;break;case 100:case 101:case 102:r=3;break;case 199:r=99;break;case 200:r=100;break;default:r=1;break}return r}},moduleDetection:{dependencies:["module","target"],computeValue:e=>{if(e.moduleDetection!==void 0)return e.moduleDetection;let r=mm.module.computeValue(e);return 100<=r&&r<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(mm.module.computeValue(e)){case 100:case 101:case 102:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:mm.esModuleInterop.computeValue(e)||mm.module.computeValue(e)===4||mm.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let r=mm.moduleResolution.computeValue(e);if(!lBt(r))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(r){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let r=mm.moduleResolution.computeValue(e);if(!lBt(r))return!1;if(e.resolvePackageJsonImports!==void 0)return e.resolvePackageJsonImports;switch(r){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>{if(e.resolveJsonModule!==void 0)return e.resolveJsonModule;switch(mm.module.computeValue(e)){case 102:case 199:return!0}return mm.moduleResolution.computeValue(e)===100}},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||mm.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&mm.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?mm.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>J5(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>J5(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>J5(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>J5(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>J5(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>J5(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>J5(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>J5(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>J5(e,"useUnknownInCatchVariables")}},GJn=mm.allowImportingTsExtensions.computeValue,HJn=mm.target.computeValue,KJn=mm.module.computeValue,QJn=mm.moduleResolution.computeValue,ZJn=mm.moduleDetection.computeValue,XJn=mm.isolatedModules.computeValue,YJn=mm.esModuleInterop.computeValue,eVn=mm.allowSyntheticDefaultImports.computeValue,tVn=mm.resolvePackageJsonExports.computeValue,rVn=mm.resolvePackageJsonImports.computeValue,nVn=mm.resolveJsonModule.computeValue,iVn=mm.declaration.computeValue,oVn=mm.preserveConstEnums.computeValue,aVn=mm.incremental.computeValue,sVn=mm.declarationMap.computeValue,cVn=mm.allowJs.computeValue,lVn=mm.useDefineForClassFields.computeValue;function lBt(e){return e>=3&&e<=99||e===100}function J5(e,r){return e[r]===void 0?!!e.strict:!!e[r]}function bsn(e){return man(targetOptionDeclaration.type,(r,i)=>r===e?i:void 0)}var xsn=["node_modules","bower_components","jspm_packages"],rUt=`(?!(?:${xsn.join("|")})(?:/|$))`,Tsn={singleAsteriskRegexFragment:"(?:[^./]|(?:\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(?:/${rUt}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>nUt(e,Tsn.singleAsteriskRegexFragment)},Esn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(?:/${rUt}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>nUt(e,Esn.singleAsteriskRegexFragment)};function nUt(e,r){return e==="*"?r:e==="?"?"[^/]":"\\"+e}function ksn(e,r){return r||Csn(e)||3}function Csn(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var iUt=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],uVn=YBt(iUt),pVn=[...iUt,[".json"]],Dsn=[[".js",".jsx"],[".mjs"],[".cjs"]],_Vn=YBt(Dsn),Asn=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],dVn=[...Asn,[".json"]],wsn=[".d.ts",".d.cts",".d.mts"];function d_e(e){return!(e>=0)}function oDe(e,...r){return r.length&&(e.relatedInformation||(e.relatedInformation=[]),Pi.assert(e.relatedInformation!==ky,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...r)),e}function Isn(e){let r;switch(e.charCodeAt(1)){case 98:case 66:r=1;break;case 111:case 79:r=3;break;case 120:case 88:r=4;break;default:let A=e.length-1,L=0;for(;e.charCodeAt(L)===48;)L++;return e.slice(L,A)||"0"}let i=2,s=e.length-1,l=(s-i)*r,d=new Uint16Array((l>>>4)+(l&15?1:0));for(let A=s-1,L=0;A>=i;A--,L+=r){let V=L>>>4,j=e.charCodeAt(A),ie=(j<=57?j-48:10+j-(j<=70?65:97))<<(L&15);d[V]|=ie;let te=ie>>>16;te&&(d[V+1]|=te)}let h="",S=d.length-1,b=!0;for(;b;){let A=0;b=!1;for(let L=S;L>=0;L--){let V=A<<16|d[L],j=V/10|0;d[L]=j,A=V-j*10,j&&!b&&(S=L,b=!0)}h=A+h}return h}function Psn({negative:e,base10Value:r}){return(e&&r!=="0"?"-":"")+r}function mYe(e,r){return e.pos=r,e}function Nsn(e,r){return e.end=r,e}function gB(e,r,i){return Nsn(mYe(e,r),i)}function uBt(e,r,i){return gB(e,r,r+i)}function XYe(e,r){return e&&r&&(e.parent=r),e}function Osn(e,r){if(!e)return e;return BBt(e,J$t(e)?i:l),e;function i(d,h){if(r&&d.parent===h)return"skip";XYe(d,h)}function s(d){if(AV(d))for(let h of d.jsDoc)i(h,d),BBt(h,i)}function l(d,h){return i(d,h)||s(d)}}function Fsn(e){return!!(e.flags&262144&&e.isThisType)}function Rsn(e){var r;return((r=getSnippetElement(e))==null?void 0:r.kind)===0}function Lsn(e){return`${Ek(e.namespace)}:${Ek(e.name)}`}var fVn=String.prototype.replace,hYe=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],mVn=new Set(hYe),Msn=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),hVn=new Set([...hYe,...hYe.map(e=>`node:${e}`),...Msn]);function jsn(){let e,r,i,s,l;return{createBaseSourceFileNode:d,createBaseIdentifierNode:h,createBasePrivateIdentifierNode:S,createBaseTokenNode:b,createBaseNode:A};function d(L){return new(l||(l=Ey.getSourceFileConstructor()))(L,-1,-1)}function h(L){return new(i||(i=Ey.getIdentifierConstructor()))(L,-1,-1)}function S(L){return new(s||(s=Ey.getPrivateIdentifierConstructor()))(L,-1,-1)}function b(L){return new(r||(r=Ey.getTokenConstructor()))(L,-1,-1)}function A(L){return new(e||(e=Ey.getNodeConstructor()))(L,-1,-1)}}var Bsn={getParenthesizeLeftSideOfBinaryForOperator:e=>wg,getParenthesizeRightSideOfBinaryForOperator:e=>wg,parenthesizeLeftSideOfBinary:(e,r)=>r,parenthesizeRightSideOfBinary:(e,r,i)=>i,parenthesizeExpressionOfComputedPropertyName:wg,parenthesizeConditionOfConditionalExpression:wg,parenthesizeBranchOfConditionalExpression:wg,parenthesizeExpressionOfExportDefault:wg,parenthesizeExpressionOfNew:e=>S8(e,cee),parenthesizeLeftSideOfAccess:e=>S8(e,cee),parenthesizeOperandOfPostfixUnary:e=>S8(e,cee),parenthesizeOperandOfPrefixUnary:e=>S8(e,nan),parenthesizeExpressionsOfCommaDelimitedList:e=>S8(e,fB),parenthesizeExpressionForDisallowedComma:wg,parenthesizeExpressionOfExpressionStatement:wg,parenthesizeConciseBodyOfArrowFunction:wg,parenthesizeCheckTypeOfConditionalType:wg,parenthesizeExtendsTypeOfConditionalType:wg,parenthesizeConstituentTypesOfUnionType:e=>S8(e,fB),parenthesizeConstituentTypeOfUnionType:wg,parenthesizeConstituentTypesOfIntersectionType:e=>S8(e,fB),parenthesizeConstituentTypeOfIntersectionType:wg,parenthesizeOperandOfTypeOperator:wg,parenthesizeOperandOfReadonlyTypeOperator:wg,parenthesizeNonArrayTypeOfPostfixType:wg,parenthesizeElementTypesOfTupleType:e=>S8(e,fB),parenthesizeElementTypeOfTupleType:wg,parenthesizeTypeOfOptionalType:wg,parenthesizeTypeArguments:e=>e&&S8(e,fB),parenthesizeLeadingTypeArgument:wg},aDe=0,$sn=[];function YYe(e,r){let i=e&8?wg:Vsn,s=Ujt(()=>e&1?Bsn:createParenthesizerRules(Je)),l=Ujt(()=>e&2?nullNodeConverters:createNodeConverters(Je)),d=nI(w=>(z,ne)=>KD(z,w,ne)),h=nI(w=>z=>Bk(w,z)),S=nI(w=>z=>CI(z,w)),b=nI(w=>()=>bO(w)),A=nI(w=>z=>LI(w,z)),L=nI(w=>(z,ne)=>FW(w,z,ne)),V=nI(w=>(z,ne)=>xO(w,z,ne)),j=nI(w=>(z,ne)=>Ste(w,z,ne)),ie=nI(w=>(z,ne)=>mo(w,z,ne)),te=nI(w=>(z,ne,Ie)=>t_(w,z,ne,Ie)),X=nI(w=>(z,ne,Ie)=>M$(w,z,ne,Ie)),Re=nI(w=>(z,ne,Ie,bt)=>xte(w,z,ne,Ie,bt)),Je={get parenthesizer(){return s()},get converters(){return l()},baseFactory:r,flags:e,createNodeArray:pt,createNumericLiteral:ht,createBigIntLiteral:wt,createStringLiteral:hr,createStringLiteralFromNode:Hi,createRegularExpressionLiteral:un,createLiteralLikeNode:xo,createIdentifier:co,createTempVariable:Cs,createLoopVariable:Cr,createUniqueName:ol,getGeneratedNameForNode:Zo,createPrivateIdentifier:an,createUniquePrivateName:li,getGeneratedPrivateNameForNode:Wi,createToken:Wn,createSuper:Na,createThis:hs,createNull:Us,createTrue:Sc,createFalse:Wu,createModifier:uc,createModifiersFromModifierFlags:Pt,createQualifiedName:ou,updateQualifiedName:go,createComputedPropertyName:mc,updateComputedPropertyName:zp,createTypeParameterDeclaration:Rh,updateTypeParameterDeclaration:K0,createParameterDeclaration:rf,updateParameterDeclaration:vx,createDecorator:dy,updateDecorator:vm,createPropertySignature:O1,updatePropertySignature:__,createPropertyDeclaration:cb,updatePropertyDeclaration:jt,createMethodSignature:ea,updateMethodSignature:Ti,createMethodDeclaration:En,updateMethodDeclaration:Zc,createConstructorDeclaration:or,updateConstructorDeclaration:Gr,createGetAccessorDeclaration:ia,updateGetAccessorDeclaration:To,createSetAccessorDeclaration:Yr,updateSetAccessorDeclaration:Sn,createCallSignature:us,updateCallSignature:Ja,createConstructSignature:pc,updateConstructSignature:rs,createIndexSignature:Yl,updateIndexSignature:nl,createClassStaticBlockDeclaration:zd,updateClassStaticBlockDeclaration:pu,createTemplateLiteralTypeSpan:eu,updateTemplateLiteralTypeSpan:Ho,createKeywordTypeNode:Q0,createTypePredicateNode:Lu,updateTypePredicateNode:aS,createTypeReferenceNode:sS,updateTypeReferenceNode:Jn,createFunctionTypeNode:so,updateFunctionTypeNode:qe,createConstructorTypeNode:_l,updateConstructorTypeNode:Pg,createTypeQueryNode:Lh,updateTypeQueryNode:zm,createTypeLiteralNode:ja,updateTypeLiteralNode:d_,createArrayTypeNode:K2,updateArrayTypeNode:K8,createTupleTypeNode:u0,updateTupleTypeNode:Qi,createNamedTupleMember:Zn,updateNamedTupleMember:Ll,createOptionalTypeNode:Ni,updateOptionalTypeNode:Kn,createRestTypeNode:Ci,updateRestTypeNode:Ba,createUnionTypeNode:AT,updateUnionTypeNode:Sx,createIntersectionTypeNode:vl,updateIntersectionTypeNode:Wl,createConditionalTypeNode:em,updateConditionalTypeNode:lb,createInferTypeNode:Ts,updateInferTypeNode:Ef,createImportTypeNode:Ng,updateImportTypeNode:F1,createParenthesizedType:qm,updateParenthesizedType:cg,createThisTypeNode:Br,createTypeOperatorNode:fy,updateTypeOperatorNode:Q2,createIndexedAccessTypeNode:bx,updateIndexedAccessTypeNode:JD,createMappedTypeNode:Sm,updateMappedTypeNode:Su,createLiteralTypeNode:ub,updateLiteralTypeNode:VD,createTemplateLiteralType:pd,updateTemplateLiteralType:d$,createObjectBindingPattern:Q8,updateObjectBindingPattern:k9,createArrayBindingPattern:Fk,updateArrayBindingPattern:f$,createBindingElement:Rk,updateBindingElement:WD,createArrayLiteralExpression:cS,updateArrayLiteralExpression:xx,createObjectLiteralExpression:Z8,updateObjectLiteralExpression:au,createPropertyAccessExpression:e&4?(w,z)=>setEmitFlags(wT(w,z),262144):wT,updatePropertyAccessExpression:C9,createPropertyAccessChain:e&4?(w,z,ne)=>setEmitFlags(IT(w,z,ne),262144):IT,updatePropertyAccessChain:R1,createElementAccessExpression:pb,updateElementAccessExpression:dte,createElementAccessChain:_d,updateElementAccessChain:X8,createCallExpression:GD,updateCallExpression:Ca,createCallChain:Mk,updateCallChain:Y8,createNewExpression:L1,updateNewExpression:EI,createTaggedTemplateExpression:jf,updateTaggedTemplateExpression:_4,createTypeAssertion:h$,updateTypeAssertion:Z2,createParenthesizedExpression:kI,updateParenthesizedExpression:A9,createFunctionExpression:w9,updateFunctionExpression:eO,createArrowFunction:tO,updateArrowFunction:rO,createDeleteExpression:I9,updateDeleteExpression:$,createTypeOfExpression:P9,updateTypeOfExpression:_b,createVoidExpression:g$,updateVoidExpression:jk,createAwaitExpression:kW,updateAwaitExpression:HD,createPrefixUnaryExpression:Bk,updatePrefixUnaryExpression:Iy,createPostfixUnaryExpression:CI,updatePostfixUnaryExpression:fte,createBinaryExpression:KD,updateBinaryExpression:mte,createConditionalExpression:DW,updateConditionalExpression:AW,createTemplateExpression:wW,updateTemplateExpression:PT,createTemplateHead:PW,createTemplateMiddle:N9,createTemplateTail:y$,createNoSubstitutionTemplateLiteral:gte,createTemplateLiteralLikeNode:lg,createYieldExpression:v$,updateYieldExpression:yte,createSpreadElement:NW,updateSpreadElement:vte,createClassExpression:O9,updateClassExpression:F9,createOmittedExpression:nO,createExpressionWithTypeArguments:Ml,updateExpressionWithTypeArguments:R9,createAsExpression:Py,updateAsExpression:db,createNonNullExpression:S$,updateNonNullExpression:iO,createSatisfiesExpression:oO,updateSatisfiesExpression:QD,createNonNullChain:L9,updateNonNullChain:Z0,createMetaProperty:AI,updateMetaProperty:$k,createTemplateSpan:jl,updateTemplateSpan:Jm,createSemicolonClassElement:b$,createBlock:fb,updateBlock:M9,createVariableStatement:j9,updateVariableStatement:x$,createEmptyStatement:T$,createExpressionStatement:wI,updateExpressionStatement:aO,createIfStatement:B9,updateIfStatement:hi,createDoStatement:II,updateDoStatement:$9,createWhileStatement:U9,updateWhileStatement:z9,createForStatement:sO,updateForStatement:cO,createForInStatement:lO,updateForInStatement:q9,createForOfStatement:J9,updateForOfStatement:V9,createContinueStatement:W9,updateContinueStatement:E$,createBreakStatement:PI,updateBreakStatement:G9,createReturnStatement:Uk,updateReturnStatement:H9,createWithStatement:uO,updateWithStatement:K9,createSwitchStatement:d4,updateSwitchStatement:ZD,createLabeledStatement:Q9,updateLabeledStatement:Z9,createThrowStatement:X9,updateThrowStatement:k$,createTryStatement:Y9,updateTryStatement:C$,createDebuggerStatement:eR,createVariableDeclaration:f4,updateVariableDeclaration:tR,createVariableDeclarationList:pO,updateVariableDeclarationList:D$,createFunctionDeclaration:_O,updateFunctionDeclaration:dO,createClassDeclaration:fO,updateClassDeclaration:NI,createInterfaceDeclaration:mO,updateInterfaceDeclaration:rR,createTypeAliasDeclaration:nf,updateTypeAliasDeclaration:X2,createEnumDeclaration:hO,updateEnumDeclaration:Y2,createModuleDeclaration:nR,updateModuleDeclaration:Vm,createModuleBlock:eE,updateModuleBlock:Ny,createCaseBlock:iR,updateCaseBlock:w$,createNamespaceExportDeclaration:oR,updateNamespaceExportDeclaration:aR,createImportEqualsDeclaration:NT,updateImportEqualsDeclaration:zk,createImportDeclaration:sR,updateImportDeclaration:cR,createImportClause:lR,updateImportClause:uR,createAssertClause:tE,updateAssertClause:I$,createAssertEntry:OI,updateAssertEntry:pR,createImportTypeAssertionContainer:m4,updateImportTypeAssertionContainer:_R,createImportAttributes:dR,updateImportAttributes:yO,createImportAttribute:fR,updateImportAttribute:mR,createNamespaceImport:vO,updateNamespaceImport:hR,createNamespaceExport:SO,updateNamespaceExport:P$,createNamedImports:C_,updateNamedImports:gR,createImportSpecifier:rE,updateImportSpecifier:N$,createExportAssignment:h4,updateExportAssignment:FI,createExportDeclaration:g4,updateExportDeclaration:y4,createNamedExports:qk,updateNamedExports:OW,createExportSpecifier:v4,updateExportSpecifier:yR,createMissingDeclaration:Wm,createExternalModuleReference:OT,updateExternalModuleReference:O$,get createJSDocAllType(){return b(313)},get createJSDocUnknownType(){return b(314)},get createJSDocNonNullableType(){return V(316)},get updateJSDocNonNullableType(){return j(316)},get createJSDocNullableType(){return V(315)},get updateJSDocNullableType(){return j(315)},get createJSDocOptionalType(){return A(317)},get updateJSDocOptionalType(){return L(317)},get createJSDocVariadicType(){return A(319)},get updateJSDocVariadicType(){return L(319)},get createJSDocNamepathType(){return A(320)},get updateJSDocNamepathType(){return L(320)},createJSDocFunctionType:RW,updateJSDocFunctionType:bte,createJSDocTypeLiteral:LW,updateJSDocTypeLiteral:MW,createJSDocTypeExpression:jW,updateJSDocTypeExpression:S4,createJSDocSignature:b4,updateJSDocSignature:BW,createJSDocTemplateTag:TO,updateJSDocTemplateTag:$W,createJSDocTypedefTag:vR,updateJSDocTypedefTag:UW,createJSDocParameterTag:SR,updateJSDocParameterTag:F$,createJSDocPropertyTag:bR,updateJSDocPropertyTag:f_,createJSDocCallbackTag:R$,updateJSDocCallbackTag:Gl,createJSDocOverloadTag:x4,updateJSDocOverloadTag:xR,createJSDocAugmentsTag:L$,updateJSDocAugmentsTag:XD,createJSDocImplementsTag:TR,updateJSDocImplementsTag:Fy,createJSDocSeeTag:qd,updateJSDocSeeTag:jI,createJSDocImportTag:Z_,updateJSDocImportTag:iE,createJSDocNameReference:YD,updateJSDocNameReference:ch,createJSDocMemberName:EO,updateJSDocMemberName:eA,createJSDocLink:Au,updateJSDocLink:_p,createJSDocLinkCode:uS,updateJSDocLinkCode:zW,createJSDocLinkPlain:qW,updateJSDocLinkPlain:kO,get createJSDocTypeTag(){return X(345)},get updateJSDocTypeTag(){return Re(345)},get createJSDocReturnTag(){return X(343)},get updateJSDocReturnTag(){return Re(343)},get createJSDocThisTag(){return X(344)},get updateJSDocThisTag(){return Re(344)},get createJSDocAuthorTag(){return ie(331)},get updateJSDocAuthorTag(){return te(331)},get createJSDocClassTag(){return ie(333)},get updateJSDocClassTag(){return te(333)},get createJSDocPublicTag(){return ie(334)},get updateJSDocPublicTag(){return te(334)},get createJSDocPrivateTag(){return ie(335)},get updateJSDocPrivateTag(){return te(335)},get createJSDocProtectedTag(){return ie(336)},get updateJSDocProtectedTag(){return te(336)},get createJSDocReadonlyTag(){return ie(337)},get updateJSDocReadonlyTag(){return te(337)},get createJSDocOverrideTag(){return ie(338)},get updateJSDocOverrideTag(){return te(338)},get createJSDocDeprecatedTag(){return ie(332)},get updateJSDocDeprecatedTag(){return te(332)},get createJSDocThrowsTag(){return X(350)},get updateJSDocThrowsTag(){return Re(350)},get createJSDocSatisfiesTag(){return X(351)},get updateJSDocSatisfiesTag(){return Re(351)},createJSDocEnumTag:Cd,updateJSDocEnumTag:pS,createJSDocUnknownTag:nE,updateJSDocUnknownTag:Tte,createJSDocText:Xi,updateJSDocText:mb,createJSDocComment:Jk,updateJSDocComment:za,createJsxElement:Qs,updateJsxElement:JW,createJsxSelfClosingElement:VW,updateJsxSelfClosingElement:ER,createJsxOpeningElement:wl,updateJsxOpeningElement:dv,createJsxClosingElement:r_,updateJsxClosingElement:Tx,createJsxFragment:Og,createJsxText:tA,updateJsxText:j$,createJsxOpeningFragment:B$,createJsxJsxClosingFragment:$$,updateJsxFragment:T4,createJsxAttribute:M1,updateJsxAttribute:ug,createJsxAttributes:rA,updateJsxAttributes:WW,createJsxSpreadAttribute:lh,updateJsxSpreadAttribute:BI,createJsxExpression:Vk,updateJsxExpression:FT,createJsxNamespacedName:Ex,updateJsxNamespacedName:CO,createCaseClause:I,updateCaseClause:x,createDefaultClause:Bf,updateDefaultClause:$I,createHeritageClause:UI,updateHeritageClause:Ete,createCatchClause:U$,updateCatchClause:z$,createPropertyAssignment:kR,updatePropertyAssignment:q$,createShorthandPropertyAssignment:GW,updateShorthandPropertyAssignment:kte,createSpreadAssignment:HW,updateSpreadAssignment:KW,createEnumMember:k4,updateEnumMember:fv,createSourceFile:QW,updateSourceFile:ZW,createRedirectedSourceFile:J$,createBundle:DO,updateBundle:oE,createSyntheticExpression:C4,createSyntaxList:AO,createNotEmittedStatement:Ry,createNotEmittedTypeElement:zI,createPartiallyEmittedExpression:aE,updatePartiallyEmittedExpression:nA,createCommaListExpression:p0,updateCommaListExpression:_0,createSyntheticReferenceExpression:Dd,updateSyntheticReferenceExpression:Wk,cloneNode:D4,get createComma(){return d(28)},get createAssignment(){return d(64)},get createLogicalOr(){return d(57)},get createLogicalAnd(){return d(56)},get createBitwiseOr(){return d(52)},get createBitwiseXor(){return d(53)},get createBitwiseAnd(){return d(51)},get createStrictEquality(){return d(37)},get createStrictInequality(){return d(38)},get createEquality(){return d(35)},get createInequality(){return d(36)},get createLessThan(){return d(30)},get createLessThanEquals(){return d(33)},get createGreaterThan(){return d(32)},get createGreaterThanEquals(){return d(34)},get createLeftShift(){return d(48)},get createRightShift(){return d(49)},get createUnsignedRightShift(){return d(50)},get createAdd(){return d(40)},get createSubtract(){return d(41)},get createMultiply(){return d(42)},get createDivide(){return d(44)},get createModulo(){return d(45)},get createExponent(){return d(43)},get createPrefixPlus(){return h(40)},get createPrefixMinus(){return h(41)},get createPrefixIncrement(){return h(46)},get createPrefixDecrement(){return h(47)},get createBitwiseNot(){return h(55)},get createLogicalNot(){return h(54)},get createPostfixIncrement(){return S(46)},get createPostfixDecrement(){return S(47)},createImmediatelyInvokedFunctionExpression:_c,createImmediatelyInvokedArrowFunction:AR,createVoidZero:RT,createExportDefault:qI,createExternalModuleExport:wR,createTypeCheck:YW,createIsNotTypeCheck:IR,createMethodCall:sE,createGlobalMethodCall:JI,createFunctionBindCall:A4,createFunctionCallCall:w4,createFunctionApplyCall:G$,createArraySliceCall:eG,createArrayConcatCall:my,createObjectDefinePropertyCall:hb,createObjectGetOwnPropertyDescriptorCall:VI,createReflectGetCall:pg,createReflectSetCall:j1,createPropertyDescriptor:B1,createCallBinding:H$,createAssignmentTargetWrapper:K$,inlineExpressions:ge,getInternalName:vt,getLocalName:nr,getExportName:Rr,getDeclarationName:kn,getNamespaceMemberName:Xn,getExternalModuleOrNamespaceExportName:Da,restoreOuterExpressions:tG,restoreEnclosingLabel:rG,createUseStrictPrologue:Ha,copyPrologue:jo,copyStandardPrologue:su,copyCustomPrologue:Hl,ensureUseStrict:dl,liftToBlock:$1,mergeLexicalEnvironment:_S,replaceModifiers:dS,replaceDecoratorsAndModifiers:gb,replacePropertyName:Hk};return ND($sn,w=>w(Je)),Je;function pt(w,z){if(w===void 0||w===ky)w=[];else if(fB(w)){if(z===void 0||w.hasTrailingComma===z)return w.transformFlags===void 0&&_Bt(w),Pi.attachNodeArrayDebugInfo(w),w;let bt=w.slice();return bt.pos=w.pos,bt.end=w.end,bt.hasTrailingComma=z,bt.transformFlags=w.transformFlags,Pi.attachNodeArrayDebugInfo(bt),bt}let ne=w.length,Ie=ne>=1&&ne<=4?w.slice():w;return Ie.pos=-1,Ie.end=-1,Ie.hasTrailingComma=!!z,Ie.transformFlags=0,_Bt(Ie),Pi.attachNodeArrayDebugInfo(Ie),Ie}function $e(w){return r.createBaseNode(w)}function xt(w){let z=$e(w);return z.symbol=void 0,z.localSymbol=void 0,z}function tr(w,z){return w!==z&&(w.typeArguments=z.typeArguments),_i(w,z)}function ht(w,z=0){let ne=typeof w=="number"?w+"":w;Pi.assert(ne.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let Ie=xt(9);return Ie.text=ne,Ie.numericLiteralFlags=z,z&384&&(Ie.transformFlags|=1024),Ie}function wt(w){let z=Bo(10);return z.text=typeof w=="string"?w:Psn(w)+"n",z.transformFlags|=32,z}function Ut(w,z){let ne=xt(11);return ne.text=w,ne.singleQuote=z,ne}function hr(w,z,ne){let Ie=Ut(w,z);return Ie.hasExtendedUnicodeEscape=ne,ne&&(Ie.transformFlags|=1024),Ie}function Hi(w){let z=Ut(Gan(w),void 0);return z.textSourceNode=w,z}function un(w){let z=Bo(14);return z.text=w,z}function xo(w,z){switch(w){case 9:return ht(z,0);case 10:return wt(z);case 11:return hr(z,void 0);case 12:return tA(z,!1);case 13:return tA(z,!0);case 14:return un(z);case 15:return lg(w,z,void 0,0)}}function Lo(w){let z=r.createBaseIdentifierNode(80);return z.escapedText=w,z.jsDoc=void 0,z.flowNode=void 0,z.symbol=void 0,z}function yr(w,z,ne,Ie){let bt=Lo(XY(w));return setIdentifierAutoGenerate(bt,{flags:z,id:aDe,prefix:ne,suffix:Ie}),aDe++,bt}function co(w,z,ne){z===void 0&&w&&(z=b$t(w)),z===80&&(z=void 0);let Ie=Lo(XY(w));return ne&&(Ie.flags|=256),Ie.escapedText==="await"&&(Ie.transformFlags|=67108864),Ie.flags&256&&(Ie.transformFlags|=1024),Ie}function Cs(w,z,ne,Ie){let bt=1;z&&(bt|=8);let Pr=yr("",bt,ne,Ie);return w&&w(Pr),Pr}function Cr(w){let z=2;return w&&(z|=8),yr("",z,void 0,void 0)}function ol(w,z=0,ne,Ie){return Pi.assert(!(z&7),"Argument out of range: flags"),Pi.assert((z&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),yr(w,3|z,ne,Ie)}function Zo(w,z=0,ne,Ie){Pi.assert(!(z&7),"Argument out of range: flags");let bt=w?_Ye(w)?SYe(!1,ne,w,Ie,Ek):`generated@${getNodeId(w)}`:"";(ne||Ie)&&(z|=16);let Pr=yr(bt,4|z,ne,Ie);return Pr.original=w,Pr}function Rc(w){let z=r.createBasePrivateIdentifierNode(81);return z.escapedText=w,z.transformFlags|=16777216,z}function an(w){return hDe(w,"#")||Pi.fail("First character of private identifier must be #: "+w),Rc(XY(w))}function Xr(w,z,ne,Ie){let bt=Rc(XY(w));return setIdentifierAutoGenerate(bt,{flags:z,id:aDe,prefix:ne,suffix:Ie}),aDe++,bt}function li(w,z,ne){w&&!hDe(w,"#")&&Pi.fail("First character of private identifier must be #: "+w);let Ie=8|(w?3:1);return Xr(w??"",Ie,z,ne)}function Wi(w,z,ne){let Ie=_Ye(w)?SYe(!0,z,w,ne,Ek):`#generated@${getNodeId(w)}`,bt=Xr(Ie,4|(z||ne?16:0),z,ne);return bt.original=w,bt}function Bo(w){return r.createBaseTokenNode(w)}function Wn(w){Pi.assert(w>=0&&w<=166,"Invalid token"),Pi.assert(w<=15||w>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),Pi.assert(w<=9||w>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),Pi.assert(w!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let z=Bo(w),ne=0;switch(w){case 134:ne=384;break;case 160:ne=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:ne=1;break;case 108:ne=134218752,z.flowNode=void 0;break;case 126:ne=1024;break;case 129:ne=16777216;break;case 110:ne=16384,z.flowNode=void 0;break}return ne&&(z.transformFlags|=ne),z}function Na(){return Wn(108)}function hs(){return Wn(110)}function Us(){return Wn(106)}function Sc(){return Wn(112)}function Wu(){return Wn(97)}function uc(w){return Wn(w)}function Pt(w){let z=[];return w&32&&z.push(uc(95)),w&128&&z.push(uc(138)),w&2048&&z.push(uc(90)),w&4096&&z.push(uc(87)),w&1&&z.push(uc(125)),w&2&&z.push(uc(123)),w&4&&z.push(uc(124)),w&64&&z.push(uc(128)),w&256&&z.push(uc(126)),w&16&&z.push(uc(164)),w&8&&z.push(uc(148)),w&512&&z.push(uc(129)),w&1024&&z.push(uc(134)),w&8192&&z.push(uc(103)),w&16384&&z.push(uc(147)),z.length?z:void 0}function ou(w,z){let ne=$e(167);return ne.left=w,ne.right=D_(z),ne.transformFlags|=Ji(ne.left)|eee(ne.right),ne.flowNode=void 0,ne}function go(w,z,ne){return w.left!==z||w.right!==ne?_i(ou(z,ne),w):w}function mc(w){let z=$e(168);return z.expression=s().parenthesizeExpressionOfComputedPropertyName(w),z.transformFlags|=Ji(z.expression)|1024|131072,z}function zp(w,z){return w.expression!==z?_i(mc(z),w):w}function Rh(w,z,ne,Ie){let bt=xt(169);return bt.modifiers=fl(w),bt.name=D_(z),bt.constraint=ne,bt.default=Ie,bt.transformFlags=1,bt.expression=void 0,bt.jsDoc=void 0,bt}function K0(w,z,ne,Ie,bt){return w.modifiers!==z||w.name!==ne||w.constraint!==Ie||w.default!==bt?_i(Rh(z,ne,Ie,bt),w):w}function rf(w,z,ne,Ie,bt,Pr){let Ri=xt(170);return Ri.modifiers=fl(w),Ri.dotDotDotToken=z,Ri.name=D_(ne),Ri.questionToken=Ie,Ri.type=bt,Ri.initializer=Hu(Pr),Kan(Ri.name)?Ri.transformFlags=1:Ri.transformFlags=ul(Ri.modifiers)|Ji(Ri.dotDotDotToken)|wD(Ri.name)|Ji(Ri.questionToken)|Ji(Ri.initializer)|(Ri.questionToken??Ri.type?1:0)|(Ri.dotDotDotToken??Ri.initializer?1024:0)|(ID(Ri.modifiers)&31?8192:0),Ri.jsDoc=void 0,Ri}function vx(w,z,ne,Ie,bt,Pr,Ri){return w.modifiers!==z||w.dotDotDotToken!==ne||w.name!==Ie||w.questionToken!==bt||w.type!==Pr||w.initializer!==Ri?_i(rf(z,ne,Ie,bt,Pr,Ri),w):w}function dy(w){let z=$e(171);return z.expression=s().parenthesizeLeftSideOfAccess(w,!1),z.transformFlags|=Ji(z.expression)|1|8192|33554432,z}function vm(w,z){return w.expression!==z?_i(dy(z),w):w}function O1(w,z,ne,Ie){let bt=xt(172);return bt.modifiers=fl(w),bt.name=D_(z),bt.type=Ie,bt.questionToken=ne,bt.transformFlags=1,bt.initializer=void 0,bt.jsDoc=void 0,bt}function __(w,z,ne,Ie,bt){return w.modifiers!==z||w.name!==ne||w.questionToken!==Ie||w.type!==bt?Bc(O1(z,ne,Ie,bt),w):w}function Bc(w,z){return w!==z&&(w.initializer=z.initializer),_i(w,z)}function cb(w,z,ne,Ie,bt){let Pr=xt(173);Pr.modifiers=fl(w),Pr.name=D_(z),Pr.questionToken=ne&&fBt(ne)?ne:void 0,Pr.exclamationToken=ne&&dBt(ne)?ne:void 0,Pr.type=Ie,Pr.initializer=Hu(bt);let Ri=Pr.flags&33554432||ID(Pr.modifiers)&128;return Pr.transformFlags=ul(Pr.modifiers)|wD(Pr.name)|Ji(Pr.initializer)|(Ri||Pr.questionToken||Pr.exclamationToken||Pr.type?1:0)|(oUt(Pr.name)||ID(Pr.modifiers)&256&&Pr.initializer?8192:0)|16777216,Pr.jsDoc=void 0,Pr}function jt(w,z,ne,Ie,bt,Pr){return w.modifiers!==z||w.name!==ne||w.questionToken!==(Ie!==void 0&&fBt(Ie)?Ie:void 0)||w.exclamationToken!==(Ie!==void 0&&dBt(Ie)?Ie:void 0)||w.type!==bt||w.initializer!==Pr?_i(cb(z,ne,Ie,bt,Pr),w):w}function ea(w,z,ne,Ie,bt,Pr){let Ri=xt(174);return Ri.modifiers=fl(w),Ri.name=D_(z),Ri.questionToken=ne,Ri.typeParameters=fl(Ie),Ri.parameters=fl(bt),Ri.type=Pr,Ri.transformFlags=1,Ri.jsDoc=void 0,Ri.locals=void 0,Ri.nextContainer=void 0,Ri.typeArguments=void 0,Ri}function Ti(w,z,ne,Ie,bt,Pr,Ri){return w.modifiers!==z||w.name!==ne||w.questionToken!==Ie||w.typeParameters!==bt||w.parameters!==Pr||w.type!==Ri?tr(ea(z,ne,Ie,bt,Pr,Ri),w):w}function En(w,z,ne,Ie,bt,Pr,Ri,Ra){let _u=xt(175);if(_u.modifiers=fl(w),_u.asteriskToken=z,_u.name=D_(ne),_u.questionToken=Ie,_u.exclamationToken=void 0,_u.typeParameters=fl(bt),_u.parameters=pt(Pr),_u.type=Ri,_u.body=Ra,!_u.body)_u.transformFlags=1;else{let dd=ID(_u.modifiers)&1024,Kk=!!_u.asteriskToken,fS=dd&&Kk;_u.transformFlags=ul(_u.modifiers)|Ji(_u.asteriskToken)|wD(_u.name)|Ji(_u.questionToken)|ul(_u.typeParameters)|ul(_u.parameters)|Ji(_u.type)|Ji(_u.body)&-67108865|(fS?128:dd?256:Kk?2048:0)|(_u.questionToken||_u.typeParameters||_u.type?1:0)|1024}return _u.typeArguments=void 0,_u.jsDoc=void 0,_u.locals=void 0,_u.nextContainer=void 0,_u.flowNode=void 0,_u.endFlowNode=void 0,_u.returnFlowNode=void 0,_u}function Zc(w,z,ne,Ie,bt,Pr,Ri,Ra,_u){return w.modifiers!==z||w.asteriskToken!==ne||w.name!==Ie||w.questionToken!==bt||w.typeParameters!==Pr||w.parameters!==Ri||w.type!==Ra||w.body!==_u?Jl(En(z,ne,Ie,bt,Pr,Ri,Ra,_u),w):w}function Jl(w,z){return w!==z&&(w.exclamationToken=z.exclamationToken),_i(w,z)}function zd(w){let z=xt(176);return z.body=w,z.transformFlags=Ji(w)|16777216,z.modifiers=void 0,z.jsDoc=void 0,z.locals=void 0,z.nextContainer=void 0,z.endFlowNode=void 0,z.returnFlowNode=void 0,z}function pu(w,z){return w.body!==z?Tf(zd(z),w):w}function Tf(w,z){return w!==z&&(w.modifiers=z.modifiers),_i(w,z)}function or(w,z,ne){let Ie=xt(177);return Ie.modifiers=fl(w),Ie.parameters=pt(z),Ie.body=ne,Ie.body?Ie.transformFlags=ul(Ie.modifiers)|ul(Ie.parameters)|Ji(Ie.body)&-67108865|1024:Ie.transformFlags=1,Ie.typeParameters=void 0,Ie.type=void 0,Ie.typeArguments=void 0,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.endFlowNode=void 0,Ie.returnFlowNode=void 0,Ie}function Gr(w,z,ne,Ie){return w.modifiers!==z||w.parameters!==ne||w.body!==Ie?pi(or(z,ne,Ie),w):w}function pi(w,z){return w!==z&&(w.typeParameters=z.typeParameters,w.type=z.type),tr(w,z)}function ia(w,z,ne,Ie,bt){let Pr=xt(178);return Pr.modifiers=fl(w),Pr.name=D_(z),Pr.parameters=pt(ne),Pr.type=Ie,Pr.body=bt,Pr.body?Pr.transformFlags=ul(Pr.modifiers)|wD(Pr.name)|ul(Pr.parameters)|Ji(Pr.type)|Ji(Pr.body)&-67108865|(Pr.type?1:0):Pr.transformFlags=1,Pr.typeArguments=void 0,Pr.typeParameters=void 0,Pr.jsDoc=void 0,Pr.locals=void 0,Pr.nextContainer=void 0,Pr.flowNode=void 0,Pr.endFlowNode=void 0,Pr.returnFlowNode=void 0,Pr}function To(w,z,ne,Ie,bt,Pr){return w.modifiers!==z||w.name!==ne||w.parameters!==Ie||w.type!==bt||w.body!==Pr?Gu(ia(z,ne,Ie,bt,Pr),w):w}function Gu(w,z){return w!==z&&(w.typeParameters=z.typeParameters),tr(w,z)}function Yr(w,z,ne,Ie){let bt=xt(179);return bt.modifiers=fl(w),bt.name=D_(z),bt.parameters=pt(ne),bt.body=Ie,bt.body?bt.transformFlags=ul(bt.modifiers)|wD(bt.name)|ul(bt.parameters)|Ji(bt.body)&-67108865|(bt.type?1:0):bt.transformFlags=1,bt.typeArguments=void 0,bt.typeParameters=void 0,bt.type=void 0,bt.jsDoc=void 0,bt.locals=void 0,bt.nextContainer=void 0,bt.flowNode=void 0,bt.endFlowNode=void 0,bt.returnFlowNode=void 0,bt}function Sn(w,z,ne,Ie,bt){return w.modifiers!==z||w.name!==ne||w.parameters!==Ie||w.body!==bt?to(Yr(z,ne,Ie,bt),w):w}function to(w,z){return w!==z&&(w.typeParameters=z.typeParameters,w.type=z.type),tr(w,z)}function us(w,z,ne){let Ie=xt(180);return Ie.typeParameters=fl(w),Ie.parameters=fl(z),Ie.type=ne,Ie.transformFlags=1,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.typeArguments=void 0,Ie}function Ja(w,z,ne,Ie){return w.typeParameters!==z||w.parameters!==ne||w.type!==Ie?tr(us(z,ne,Ie),w):w}function pc(w,z,ne){let Ie=xt(181);return Ie.typeParameters=fl(w),Ie.parameters=fl(z),Ie.type=ne,Ie.transformFlags=1,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.typeArguments=void 0,Ie}function rs(w,z,ne,Ie){return w.typeParameters!==z||w.parameters!==ne||w.type!==Ie?tr(pc(z,ne,Ie),w):w}function Yl(w,z,ne){let Ie=xt(182);return Ie.modifiers=fl(w),Ie.parameters=fl(z),Ie.type=ne,Ie.transformFlags=1,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.typeArguments=void 0,Ie}function nl(w,z,ne,Ie){return w.parameters!==ne||w.type!==Ie||w.modifiers!==z?tr(Yl(z,ne,Ie),w):w}function eu(w,z){let ne=$e(205);return ne.type=w,ne.literal=z,ne.transformFlags=1,ne}function Ho(w,z,ne){return w.type!==z||w.literal!==ne?_i(eu(z,ne),w):w}function Q0(w){return Wn(w)}function Lu(w,z,ne){let Ie=$e(183);return Ie.assertsModifier=w,Ie.parameterName=D_(z),Ie.type=ne,Ie.transformFlags=1,Ie}function aS(w,z,ne,Ie){return w.assertsModifier!==z||w.parameterName!==ne||w.type!==Ie?_i(Lu(z,ne,Ie),w):w}function sS(w,z){let ne=$e(184);return ne.typeName=D_(w),ne.typeArguments=z&&s().parenthesizeTypeArguments(pt(z)),ne.transformFlags=1,ne}function Jn(w,z,ne){return w.typeName!==z||w.typeArguments!==ne?_i(sS(z,ne),w):w}function so(w,z,ne){let Ie=xt(185);return Ie.typeParameters=fl(w),Ie.parameters=fl(z),Ie.type=ne,Ie.transformFlags=1,Ie.modifiers=void 0,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.typeArguments=void 0,Ie}function qe(w,z,ne,Ie){return w.typeParameters!==z||w.parameters!==ne||w.type!==Ie?yl(so(z,ne,Ie),w):w}function yl(w,z){return w!==z&&(w.modifiers=z.modifiers),tr(w,z)}function _l(...w){return w.length===4?bi(...w):w.length===3?tu(...w):Pi.fail("Incorrect number of arguments specified.")}function bi(w,z,ne,Ie){let bt=xt(186);return bt.modifiers=fl(w),bt.typeParameters=fl(z),bt.parameters=fl(ne),bt.type=Ie,bt.transformFlags=1,bt.jsDoc=void 0,bt.locals=void 0,bt.nextContainer=void 0,bt.typeArguments=void 0,bt}function tu(w,z,ne){return bi(void 0,w,z,ne)}function Pg(...w){return w.length===5?Du(...w):w.length===4?qp(...w):Pi.fail("Incorrect number of arguments specified.")}function Du(w,z,ne,Ie,bt){return w.modifiers!==z||w.typeParameters!==ne||w.parameters!==Ie||w.type!==bt?tr(_l(z,ne,Ie,bt),w):w}function qp(w,z,ne,Ie){return Du(w,w.modifiers,z,ne,Ie)}function Lh(w,z){let ne=$e(187);return ne.exprName=w,ne.typeArguments=z&&s().parenthesizeTypeArguments(z),ne.transformFlags=1,ne}function zm(w,z,ne){return w.exprName!==z||w.typeArguments!==ne?_i(Lh(z,ne),w):w}function ja(w){let z=xt(188);return z.members=pt(w),z.transformFlags=1,z}function d_(w,z){return w.members!==z?_i(ja(z),w):w}function K2(w){let z=$e(189);return z.elementType=s().parenthesizeNonArrayTypeOfPostfixType(w),z.transformFlags=1,z}function K8(w,z){return w.elementType!==z?_i(K2(z),w):w}function u0(w){let z=$e(190);return z.elements=pt(s().parenthesizeElementTypesOfTupleType(w)),z.transformFlags=1,z}function Qi(w,z){return w.elements!==z?_i(u0(z),w):w}function Zn(w,z,ne,Ie){let bt=xt(203);return bt.dotDotDotToken=w,bt.name=z,bt.questionToken=ne,bt.type=Ie,bt.transformFlags=1,bt.jsDoc=void 0,bt}function Ll(w,z,ne,Ie,bt){return w.dotDotDotToken!==z||w.name!==ne||w.questionToken!==Ie||w.type!==bt?_i(Zn(z,ne,Ie,bt),w):w}function Ni(w){let z=$e(191);return z.type=s().parenthesizeTypeOfOptionalType(w),z.transformFlags=1,z}function Kn(w,z){return w.type!==z?_i(Ni(z),w):w}function Ci(w){let z=$e(192);return z.type=w,z.transformFlags=1,z}function Ba(w,z){return w.type!==z?_i(Ci(z),w):w}function zs(w,z,ne){let Ie=$e(w);return Ie.types=Je.createNodeArray(ne(z)),Ie.transformFlags=1,Ie}function Yf(w,z,ne){return w.types!==z?_i(zs(w.kind,z,ne),w):w}function AT(w){return zs(193,w,s().parenthesizeConstituentTypesOfUnionType)}function Sx(w,z){return Yf(w,z,s().parenthesizeConstituentTypesOfUnionType)}function vl(w){return zs(194,w,s().parenthesizeConstituentTypesOfIntersectionType)}function Wl(w,z){return Yf(w,z,s().parenthesizeConstituentTypesOfIntersectionType)}function em(w,z,ne,Ie){let bt=$e(195);return bt.checkType=s().parenthesizeCheckTypeOfConditionalType(w),bt.extendsType=s().parenthesizeExtendsTypeOfConditionalType(z),bt.trueType=ne,bt.falseType=Ie,bt.transformFlags=1,bt.locals=void 0,bt.nextContainer=void 0,bt}function lb(w,z,ne,Ie,bt){return w.checkType!==z||w.extendsType!==ne||w.trueType!==Ie||w.falseType!==bt?_i(em(z,ne,Ie,bt),w):w}function Ts(w){let z=$e(196);return z.typeParameter=w,z.transformFlags=1,z}function Ef(w,z){return w.typeParameter!==z?_i(Ts(z),w):w}function pd(w,z){let ne=$e(204);return ne.head=w,ne.templateSpans=pt(z),ne.transformFlags=1,ne}function d$(w,z,ne){return w.head!==z||w.templateSpans!==ne?_i(pd(z,ne),w):w}function Ng(w,z,ne,Ie,bt=!1){let Pr=$e(206);return Pr.argument=w,Pr.attributes=z,Pr.assertions&&Pr.assertions.assertClause&&Pr.attributes&&(Pr.assertions.assertClause=Pr.attributes),Pr.qualifier=ne,Pr.typeArguments=Ie&&s().parenthesizeTypeArguments(Ie),Pr.isTypeOf=bt,Pr.transformFlags=1,Pr}function F1(w,z,ne,Ie,bt,Pr=w.isTypeOf){return w.argument!==z||w.attributes!==ne||w.qualifier!==Ie||w.typeArguments!==bt||w.isTypeOf!==Pr?_i(Ng(z,ne,Ie,bt,Pr),w):w}function qm(w){let z=$e(197);return z.type=w,z.transformFlags=1,z}function cg(w,z){return w.type!==z?_i(qm(z),w):w}function Br(){let w=$e(198);return w.transformFlags=1,w}function fy(w,z){let ne=$e(199);return ne.operator=w,ne.type=w===148?s().parenthesizeOperandOfReadonlyTypeOperator(z):s().parenthesizeOperandOfTypeOperator(z),ne.transformFlags=1,ne}function Q2(w,z){return w.type!==z?_i(fy(w.operator,z),w):w}function bx(w,z){let ne=$e(200);return ne.objectType=s().parenthesizeNonArrayTypeOfPostfixType(w),ne.indexType=z,ne.transformFlags=1,ne}function JD(w,z,ne){return w.objectType!==z||w.indexType!==ne?_i(bx(z,ne),w):w}function Sm(w,z,ne,Ie,bt,Pr){let Ri=xt(201);return Ri.readonlyToken=w,Ri.typeParameter=z,Ri.nameType=ne,Ri.questionToken=Ie,Ri.type=bt,Ri.members=Pr&&pt(Pr),Ri.transformFlags=1,Ri.locals=void 0,Ri.nextContainer=void 0,Ri}function Su(w,z,ne,Ie,bt,Pr,Ri){return w.readonlyToken!==z||w.typeParameter!==ne||w.nameType!==Ie||w.questionToken!==bt||w.type!==Pr||w.members!==Ri?_i(Sm(z,ne,Ie,bt,Pr,Ri),w):w}function ub(w){let z=$e(202);return z.literal=w,z.transformFlags=1,z}function VD(w,z){return w.literal!==z?_i(ub(z),w):w}function Q8(w){let z=$e(207);return z.elements=pt(w),z.transformFlags|=ul(z.elements)|1024|524288,z.transformFlags&32768&&(z.transformFlags|=65664),z}function k9(w,z){return w.elements!==z?_i(Q8(z),w):w}function Fk(w){let z=$e(208);return z.elements=pt(w),z.transformFlags|=ul(z.elements)|1024|524288,z}function f$(w,z){return w.elements!==z?_i(Fk(z),w):w}function Rk(w,z,ne,Ie){let bt=xt(209);return bt.dotDotDotToken=w,bt.propertyName=D_(z),bt.name=D_(ne),bt.initializer=Hu(Ie),bt.transformFlags|=Ji(bt.dotDotDotToken)|wD(bt.propertyName)|wD(bt.name)|Ji(bt.initializer)|(bt.dotDotDotToken?32768:0)|1024,bt.flowNode=void 0,bt}function WD(w,z,ne,Ie,bt){return w.propertyName!==ne||w.dotDotDotToken!==z||w.name!==Ie||w.initializer!==bt?_i(Rk(z,ne,Ie,bt),w):w}function cS(w,z){let ne=$e(210),Ie=w&&oee(w),bt=pt(w,Ie&&wcn(Ie)?!0:void 0);return ne.elements=s().parenthesizeExpressionsOfCommaDelimitedList(bt),ne.multiLine=z,ne.transformFlags|=ul(ne.elements),ne}function xx(w,z){return w.elements!==z?_i(cS(z,w.multiLine),w):w}function Z8(w,z){let ne=xt(211);return ne.properties=pt(w),ne.multiLine=z,ne.transformFlags|=ul(ne.properties),ne.jsDoc=void 0,ne}function au(w,z){return w.properties!==z?_i(Z8(z,w.multiLine),w):w}function Lk(w,z,ne){let Ie=xt(212);return Ie.expression=w,Ie.questionDotToken=z,Ie.name=ne,Ie.transformFlags=Ji(Ie.expression)|Ji(Ie.questionDotToken)|(Kd(Ie.name)?eee(Ie.name):Ji(Ie.name)|536870912),Ie.jsDoc=void 0,Ie.flowNode=void 0,Ie}function wT(w,z){let ne=Lk(s().parenthesizeLeftSideOfAccess(w,!1),void 0,D_(z));return XXe(w)&&(ne.transformFlags|=384),ne}function C9(w,z,ne){return Bon(w)?R1(w,z,w.questionDotToken,S8(ne,Kd)):w.expression!==z||w.name!==ne?_i(wT(z,ne),w):w}function IT(w,z,ne){let Ie=Lk(s().parenthesizeLeftSideOfAccess(w,!0),z,D_(ne));return Ie.flags|=64,Ie.transformFlags|=32,Ie}function R1(w,z,ne,Ie){return Pi.assert(!!(w.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),w.expression!==z||w.questionDotToken!==ne||w.name!==Ie?_i(IT(z,ne,Ie),w):w}function m$(w,z,ne){let Ie=xt(213);return Ie.expression=w,Ie.questionDotToken=z,Ie.argumentExpression=ne,Ie.transformFlags|=Ji(Ie.expression)|Ji(Ie.questionDotToken)|Ji(Ie.argumentExpression),Ie.jsDoc=void 0,Ie.flowNode=void 0,Ie}function pb(w,z){let ne=m$(s().parenthesizeLeftSideOfAccess(w,!1),void 0,Jp(z));return XXe(w)&&(ne.transformFlags|=384),ne}function dte(w,z,ne){return $on(w)?X8(w,z,w.questionDotToken,ne):w.expression!==z||w.argumentExpression!==ne?_i(pb(z,ne),w):w}function _d(w,z,ne){let Ie=m$(s().parenthesizeLeftSideOfAccess(w,!0),z,Jp(ne));return Ie.flags|=64,Ie.transformFlags|=32,Ie}function X8(w,z,ne,Ie){return Pi.assert(!!(w.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),w.expression!==z||w.questionDotToken!==ne||w.argumentExpression!==Ie?_i(_d(z,ne,Ie),w):w}function D9(w,z,ne,Ie){let bt=xt(214);return bt.expression=w,bt.questionDotToken=z,bt.typeArguments=ne,bt.arguments=Ie,bt.transformFlags|=Ji(bt.expression)|Ji(bt.questionDotToken)|ul(bt.typeArguments)|ul(bt.arguments),bt.typeArguments&&(bt.transformFlags|=1),oBt(bt.expression)&&(bt.transformFlags|=16384),bt}function GD(w,z,ne){let Ie=D9(s().parenthesizeLeftSideOfAccess(w,!1),void 0,fl(z),s().parenthesizeExpressionsOfCommaDelimitedList(pt(ne)));return Xsn(Ie.expression)&&(Ie.transformFlags|=8388608),Ie}function Ca(w,z,ne,Ie){return Xjt(w)?Y8(w,z,w.questionDotToken,ne,Ie):w.expression!==z||w.typeArguments!==ne||w.arguments!==Ie?_i(GD(z,ne,Ie),w):w}function Mk(w,z,ne,Ie){let bt=D9(s().parenthesizeLeftSideOfAccess(w,!0),z,fl(ne),s().parenthesizeExpressionsOfCommaDelimitedList(pt(Ie)));return bt.flags|=64,bt.transformFlags|=32,bt}function Y8(w,z,ne,Ie,bt){return Pi.assert(!!(w.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),w.expression!==z||w.questionDotToken!==ne||w.typeArguments!==Ie||w.arguments!==bt?_i(Mk(z,ne,Ie,bt),w):w}function L1(w,z,ne){let Ie=xt(215);return Ie.expression=s().parenthesizeExpressionOfNew(w),Ie.typeArguments=fl(z),Ie.arguments=ne?s().parenthesizeExpressionsOfCommaDelimitedList(ne):void 0,Ie.transformFlags|=Ji(Ie.expression)|ul(Ie.typeArguments)|ul(Ie.arguments)|32,Ie.typeArguments&&(Ie.transformFlags|=1),Ie}function EI(w,z,ne,Ie){return w.expression!==z||w.typeArguments!==ne||w.arguments!==Ie?_i(L1(z,ne,Ie),w):w}function jf(w,z,ne){let Ie=$e(216);return Ie.tag=s().parenthesizeLeftSideOfAccess(w,!1),Ie.typeArguments=fl(z),Ie.template=ne,Ie.transformFlags|=Ji(Ie.tag)|ul(Ie.typeArguments)|Ji(Ie.template)|1024,Ie.typeArguments&&(Ie.transformFlags|=1),Han(Ie.template)&&(Ie.transformFlags|=128),Ie}function _4(w,z,ne,Ie){return w.tag!==z||w.typeArguments!==ne||w.template!==Ie?_i(jf(z,ne,Ie),w):w}function h$(w,z){let ne=$e(217);return ne.expression=s().parenthesizeOperandOfPrefixUnary(z),ne.type=w,ne.transformFlags|=Ji(ne.expression)|Ji(ne.type)|1,ne}function Z2(w,z,ne){return w.type!==z||w.expression!==ne?_i(h$(z,ne),w):w}function kI(w){let z=$e(218);return z.expression=w,z.transformFlags=Ji(z.expression),z.jsDoc=void 0,z}function A9(w,z){return w.expression!==z?_i(kI(z),w):w}function w9(w,z,ne,Ie,bt,Pr,Ri){let Ra=xt(219);Ra.modifiers=fl(w),Ra.asteriskToken=z,Ra.name=D_(ne),Ra.typeParameters=fl(Ie),Ra.parameters=pt(bt),Ra.type=Pr,Ra.body=Ri;let _u=ID(Ra.modifiers)&1024,dd=!!Ra.asteriskToken,Kk=_u&ⅆreturn Ra.transformFlags=ul(Ra.modifiers)|Ji(Ra.asteriskToken)|wD(Ra.name)|ul(Ra.typeParameters)|ul(Ra.parameters)|Ji(Ra.type)|Ji(Ra.body)&-67108865|(Kk?128:_u?256:dd?2048:0)|(Ra.typeParameters||Ra.type?1:0)|4194304,Ra.typeArguments=void 0,Ra.jsDoc=void 0,Ra.locals=void 0,Ra.nextContainer=void 0,Ra.flowNode=void 0,Ra.endFlowNode=void 0,Ra.returnFlowNode=void 0,Ra}function eO(w,z,ne,Ie,bt,Pr,Ri,Ra){return w.name!==Ie||w.modifiers!==z||w.asteriskToken!==ne||w.typeParameters!==bt||w.parameters!==Pr||w.type!==Ri||w.body!==Ra?tr(w9(z,ne,Ie,bt,Pr,Ri,Ra),w):w}function tO(w,z,ne,Ie,bt,Pr){let Ri=xt(220);Ri.modifiers=fl(w),Ri.typeParameters=fl(z),Ri.parameters=pt(ne),Ri.type=Ie,Ri.equalsGreaterThanToken=bt??Wn(39),Ri.body=s().parenthesizeConciseBodyOfArrowFunction(Pr);let Ra=ID(Ri.modifiers)&1024;return Ri.transformFlags=ul(Ri.modifiers)|ul(Ri.typeParameters)|ul(Ri.parameters)|Ji(Ri.type)|Ji(Ri.equalsGreaterThanToken)|Ji(Ri.body)&-67108865|(Ri.typeParameters||Ri.type?1:0)|(Ra?16640:0)|1024,Ri.typeArguments=void 0,Ri.jsDoc=void 0,Ri.locals=void 0,Ri.nextContainer=void 0,Ri.flowNode=void 0,Ri.endFlowNode=void 0,Ri.returnFlowNode=void 0,Ri}function rO(w,z,ne,Ie,bt,Pr,Ri){return w.modifiers!==z||w.typeParameters!==ne||w.parameters!==Ie||w.type!==bt||w.equalsGreaterThanToken!==Pr||w.body!==Ri?tr(tO(z,ne,Ie,bt,Pr,Ri),w):w}function I9(w){let z=$e(221);return z.expression=s().parenthesizeOperandOfPrefixUnary(w),z.transformFlags|=Ji(z.expression),z}function $(w,z){return w.expression!==z?_i(I9(z),w):w}function P9(w){let z=$e(222);return z.expression=s().parenthesizeOperandOfPrefixUnary(w),z.transformFlags|=Ji(z.expression),z}function _b(w,z){return w.expression!==z?_i(P9(z),w):w}function g$(w){let z=$e(223);return z.expression=s().parenthesizeOperandOfPrefixUnary(w),z.transformFlags|=Ji(z.expression),z}function jk(w,z){return w.expression!==z?_i(g$(z),w):w}function kW(w){let z=$e(224);return z.expression=s().parenthesizeOperandOfPrefixUnary(w),z.transformFlags|=Ji(z.expression)|256|128|2097152,z}function HD(w,z){return w.expression!==z?_i(kW(z),w):w}function Bk(w,z){let ne=$e(225);return ne.operator=w,ne.operand=s().parenthesizeOperandOfPrefixUnary(z),ne.transformFlags|=Ji(ne.operand),(w===46||w===47)&&Kd(ne.operand)&&!iee(ne.operand)&&!yBt(ne.operand)&&(ne.transformFlags|=268435456),ne}function Iy(w,z){return w.operand!==z?_i(Bk(w.operator,z),w):w}function CI(w,z){let ne=$e(226);return ne.operator=z,ne.operand=s().parenthesizeOperandOfPostfixUnary(w),ne.transformFlags|=Ji(ne.operand),Kd(ne.operand)&&!iee(ne.operand)&&!yBt(ne.operand)&&(ne.transformFlags|=268435456),ne}function fte(w,z){return w.operand!==z?_i(CI(z,w.operator),w):w}function KD(w,z,ne){let Ie=xt(227),bt=WI(z),Pr=bt.kind;return Ie.left=s().parenthesizeLeftSideOfBinary(Pr,w),Ie.operatorToken=bt,Ie.right=s().parenthesizeRightSideOfBinary(Pr,Ie.left,ne),Ie.transformFlags|=Ji(Ie.left)|Ji(Ie.operatorToken)|Ji(Ie.right),Pr===61?Ie.transformFlags|=32:Pr===64?_Ut(Ie.left)?Ie.transformFlags|=5248|CW(Ie.left):Ecn(Ie.left)&&(Ie.transformFlags|=5120|CW(Ie.left)):Pr===43||Pr===68?Ie.transformFlags|=512:osn(Pr)&&(Ie.transformFlags|=16),Pr===103&&NV(Ie.left)&&(Ie.transformFlags|=536870912),Ie.jsDoc=void 0,Ie}function CW(w){return IUt(w)?65536:0}function mte(w,z,ne,Ie){return w.left!==z||w.operatorToken!==ne||w.right!==Ie?_i(KD(z,ne,Ie),w):w}function DW(w,z,ne,Ie,bt){let Pr=$e(228);return Pr.condition=s().parenthesizeConditionOfConditionalExpression(w),Pr.questionToken=z??Wn(58),Pr.whenTrue=s().parenthesizeBranchOfConditionalExpression(ne),Pr.colonToken=Ie??Wn(59),Pr.whenFalse=s().parenthesizeBranchOfConditionalExpression(bt),Pr.transformFlags|=Ji(Pr.condition)|Ji(Pr.questionToken)|Ji(Pr.whenTrue)|Ji(Pr.colonToken)|Ji(Pr.whenFalse),Pr.flowNodeWhenFalse=void 0,Pr.flowNodeWhenTrue=void 0,Pr}function AW(w,z,ne,Ie,bt,Pr){return w.condition!==z||w.questionToken!==ne||w.whenTrue!==Ie||w.colonToken!==bt||w.whenFalse!==Pr?_i(DW(z,ne,Ie,bt,Pr),w):w}function wW(w,z){let ne=$e(229);return ne.head=w,ne.templateSpans=pt(z),ne.transformFlags|=Ji(ne.head)|ul(ne.templateSpans)|1024,ne}function PT(w,z,ne){return w.head!==z||w.templateSpans!==ne?_i(wW(z,ne),w):w}function DI(w,z,ne,Ie=0){Pi.assert(!(Ie&-7177),"Unsupported template flags.");let bt;if(ne!==void 0&&ne!==z&&(bt=Usn(w,ne),typeof bt=="object"))return Pi.fail("Invalid raw text");if(z===void 0){if(bt===void 0)return Pi.fail("Arguments 'text' and 'rawText' may not both be undefined.");z=bt}else bt!==void 0&&Pi.assert(z===bt,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return z}function IW(w){let z=1024;return w&&(z|=128),z}function hte(w,z,ne,Ie){let bt=Bo(w);return bt.text=z,bt.rawText=ne,bt.templateFlags=Ie&7176,bt.transformFlags=IW(bt.templateFlags),bt}function bm(w,z,ne,Ie){let bt=xt(w);return bt.text=z,bt.rawText=ne,bt.templateFlags=Ie&7176,bt.transformFlags=IW(bt.templateFlags),bt}function lg(w,z,ne,Ie){return w===15?bm(w,z,ne,Ie):hte(w,z,ne,Ie)}function PW(w,z,ne){return w=DI(16,w,z,ne),lg(16,w,z,ne)}function N9(w,z,ne){return w=DI(16,w,z,ne),lg(17,w,z,ne)}function y$(w,z,ne){return w=DI(16,w,z,ne),lg(18,w,z,ne)}function gte(w,z,ne){return w=DI(16,w,z,ne),bm(15,w,z,ne)}function v$(w,z){Pi.assert(!w||!!z,"A `YieldExpression` with an asteriskToken must have an expression.");let ne=$e(230);return ne.expression=z&&s().parenthesizeExpressionForDisallowedComma(z),ne.asteriskToken=w,ne.transformFlags|=Ji(ne.expression)|Ji(ne.asteriskToken)|1024|128|1048576,ne}function yte(w,z,ne){return w.expression!==ne||w.asteriskToken!==z?_i(v$(z,ne),w):w}function NW(w){let z=$e(231);return z.expression=s().parenthesizeExpressionForDisallowedComma(w),z.transformFlags|=Ji(z.expression)|1024|32768,z}function vte(w,z){return w.expression!==z?_i(NW(z),w):w}function O9(w,z,ne,Ie,bt){let Pr=xt(232);return Pr.modifiers=fl(w),Pr.name=D_(z),Pr.typeParameters=fl(ne),Pr.heritageClauses=fl(Ie),Pr.members=pt(bt),Pr.transformFlags|=ul(Pr.modifiers)|wD(Pr.name)|ul(Pr.typeParameters)|ul(Pr.heritageClauses)|ul(Pr.members)|(Pr.typeParameters?1:0)|1024,Pr.jsDoc=void 0,Pr}function F9(w,z,ne,Ie,bt,Pr){return w.modifiers!==z||w.name!==ne||w.typeParameters!==Ie||w.heritageClauses!==bt||w.members!==Pr?_i(O9(z,ne,Ie,bt,Pr),w):w}function nO(){return $e(233)}function Ml(w,z){let ne=$e(234);return ne.expression=s().parenthesizeLeftSideOfAccess(w,!1),ne.typeArguments=z&&s().parenthesizeTypeArguments(z),ne.transformFlags|=Ji(ne.expression)|ul(ne.typeArguments)|1024,ne}function R9(w,z,ne){return w.expression!==z||w.typeArguments!==ne?_i(Ml(z,ne),w):w}function Py(w,z){let ne=$e(235);return ne.expression=w,ne.type=z,ne.transformFlags|=Ji(ne.expression)|Ji(ne.type)|1,ne}function db(w,z,ne){return w.expression!==z||w.type!==ne?_i(Py(z,ne),w):w}function S$(w){let z=$e(236);return z.expression=s().parenthesizeLeftSideOfAccess(w,!1),z.transformFlags|=Ji(z.expression)|1,z}function iO(w,z){return zon(w)?Z0(w,z):w.expression!==z?_i(S$(z),w):w}function oO(w,z){let ne=$e(239);return ne.expression=w,ne.type=z,ne.transformFlags|=Ji(ne.expression)|Ji(ne.type)|1,ne}function QD(w,z,ne){return w.expression!==z||w.type!==ne?_i(oO(z,ne),w):w}function L9(w){let z=$e(236);return z.flags|=64,z.expression=s().parenthesizeLeftSideOfAccess(w,!0),z.transformFlags|=Ji(z.expression)|1,z}function Z0(w,z){return Pi.assert(!!(w.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),w.expression!==z?_i(L9(z),w):w}function AI(w,z){let ne=$e(237);switch(ne.keywordToken=w,ne.name=z,ne.transformFlags|=Ji(ne.name),w){case 105:ne.transformFlags|=1024;break;case 102:ne.transformFlags|=32;break;default:return Pi.assertNever(w)}return ne.flowNode=void 0,ne}function $k(w,z){return w.name!==z?_i(AI(w.keywordToken,z),w):w}function jl(w,z){let ne=$e(240);return ne.expression=w,ne.literal=z,ne.transformFlags|=Ji(ne.expression)|Ji(ne.literal)|1024,ne}function Jm(w,z,ne){return w.expression!==z||w.literal!==ne?_i(jl(z,ne),w):w}function b$(){let w=$e(241);return w.transformFlags|=1024,w}function fb(w,z){let ne=$e(242);return ne.statements=pt(w),ne.multiLine=z,ne.transformFlags|=ul(ne.statements),ne.jsDoc=void 0,ne.locals=void 0,ne.nextContainer=void 0,ne}function M9(w,z){return w.statements!==z?_i(fb(z,w.multiLine),w):w}function j9(w,z){let ne=$e(244);return ne.modifiers=fl(w),ne.declarationList=Z5(z)?pO(z):z,ne.transformFlags|=ul(ne.modifiers)|Ji(ne.declarationList),ID(ne.modifiers)&128&&(ne.transformFlags=1),ne.jsDoc=void 0,ne.flowNode=void 0,ne}function x$(w,z,ne){return w.modifiers!==z||w.declarationList!==ne?_i(j9(z,ne),w):w}function T$(){let w=$e(243);return w.jsDoc=void 0,w}function wI(w){let z=$e(245);return z.expression=s().parenthesizeExpressionOfExpressionStatement(w),z.transformFlags|=Ji(z.expression),z.jsDoc=void 0,z.flowNode=void 0,z}function aO(w,z){return w.expression!==z?_i(wI(z),w):w}function B9(w,z,ne){let Ie=$e(246);return Ie.expression=w,Ie.thenStatement=Cx(z),Ie.elseStatement=Cx(ne),Ie.transformFlags|=Ji(Ie.expression)|Ji(Ie.thenStatement)|Ji(Ie.elseStatement),Ie.jsDoc=void 0,Ie.flowNode=void 0,Ie}function hi(w,z,ne,Ie){return w.expression!==z||w.thenStatement!==ne||w.elseStatement!==Ie?_i(B9(z,ne,Ie),w):w}function II(w,z){let ne=$e(247);return ne.statement=Cx(w),ne.expression=z,ne.transformFlags|=Ji(ne.statement)|Ji(ne.expression),ne.jsDoc=void 0,ne.flowNode=void 0,ne}function $9(w,z,ne){return w.statement!==z||w.expression!==ne?_i(II(z,ne),w):w}function U9(w,z){let ne=$e(248);return ne.expression=w,ne.statement=Cx(z),ne.transformFlags|=Ji(ne.expression)|Ji(ne.statement),ne.jsDoc=void 0,ne.flowNode=void 0,ne}function z9(w,z,ne){return w.expression!==z||w.statement!==ne?_i(U9(z,ne),w):w}function sO(w,z,ne,Ie){let bt=$e(249);return bt.initializer=w,bt.condition=z,bt.incrementor=ne,bt.statement=Cx(Ie),bt.transformFlags|=Ji(bt.initializer)|Ji(bt.condition)|Ji(bt.incrementor)|Ji(bt.statement),bt.jsDoc=void 0,bt.locals=void 0,bt.nextContainer=void 0,bt.flowNode=void 0,bt}function cO(w,z,ne,Ie,bt){return w.initializer!==z||w.condition!==ne||w.incrementor!==Ie||w.statement!==bt?_i(sO(z,ne,Ie,bt),w):w}function lO(w,z,ne){let Ie=$e(250);return Ie.initializer=w,Ie.expression=z,Ie.statement=Cx(ne),Ie.transformFlags|=Ji(Ie.initializer)|Ji(Ie.expression)|Ji(Ie.statement),Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie.flowNode=void 0,Ie}function q9(w,z,ne,Ie){return w.initializer!==z||w.expression!==ne||w.statement!==Ie?_i(lO(z,ne,Ie),w):w}function J9(w,z,ne,Ie){let bt=$e(251);return bt.awaitModifier=w,bt.initializer=z,bt.expression=s().parenthesizeExpressionForDisallowedComma(ne),bt.statement=Cx(Ie),bt.transformFlags|=Ji(bt.awaitModifier)|Ji(bt.initializer)|Ji(bt.expression)|Ji(bt.statement)|1024,w&&(bt.transformFlags|=128),bt.jsDoc=void 0,bt.locals=void 0,bt.nextContainer=void 0,bt.flowNode=void 0,bt}function V9(w,z,ne,Ie,bt){return w.awaitModifier!==z||w.initializer!==ne||w.expression!==Ie||w.statement!==bt?_i(J9(z,ne,Ie,bt),w):w}function W9(w){let z=$e(252);return z.label=D_(w),z.transformFlags|=Ji(z.label)|4194304,z.jsDoc=void 0,z.flowNode=void 0,z}function E$(w,z){return w.label!==z?_i(W9(z),w):w}function PI(w){let z=$e(253);return z.label=D_(w),z.transformFlags|=Ji(z.label)|4194304,z.jsDoc=void 0,z.flowNode=void 0,z}function G9(w,z){return w.label!==z?_i(PI(z),w):w}function Uk(w){let z=$e(254);return z.expression=w,z.transformFlags|=Ji(z.expression)|128|4194304,z.jsDoc=void 0,z.flowNode=void 0,z}function H9(w,z){return w.expression!==z?_i(Uk(z),w):w}function uO(w,z){let ne=$e(255);return ne.expression=w,ne.statement=Cx(z),ne.transformFlags|=Ji(ne.expression)|Ji(ne.statement),ne.jsDoc=void 0,ne.flowNode=void 0,ne}function K9(w,z,ne){return w.expression!==z||w.statement!==ne?_i(uO(z,ne),w):w}function d4(w,z){let ne=$e(256);return ne.expression=s().parenthesizeExpressionForDisallowedComma(w),ne.caseBlock=z,ne.transformFlags|=Ji(ne.expression)|Ji(ne.caseBlock),ne.jsDoc=void 0,ne.flowNode=void 0,ne.possiblyExhaustive=!1,ne}function ZD(w,z,ne){return w.expression!==z||w.caseBlock!==ne?_i(d4(z,ne),w):w}function Q9(w,z){let ne=$e(257);return ne.label=D_(w),ne.statement=Cx(z),ne.transformFlags|=Ji(ne.label)|Ji(ne.statement),ne.jsDoc=void 0,ne.flowNode=void 0,ne}function Z9(w,z,ne){return w.label!==z||w.statement!==ne?_i(Q9(z,ne),w):w}function X9(w){let z=$e(258);return z.expression=w,z.transformFlags|=Ji(z.expression),z.jsDoc=void 0,z.flowNode=void 0,z}function k$(w,z){return w.expression!==z?_i(X9(z),w):w}function Y9(w,z,ne){let Ie=$e(259);return Ie.tryBlock=w,Ie.catchClause=z,Ie.finallyBlock=ne,Ie.transformFlags|=Ji(Ie.tryBlock)|Ji(Ie.catchClause)|Ji(Ie.finallyBlock),Ie.jsDoc=void 0,Ie.flowNode=void 0,Ie}function C$(w,z,ne,Ie){return w.tryBlock!==z||w.catchClause!==ne||w.finallyBlock!==Ie?_i(Y9(z,ne,Ie),w):w}function eR(){let w=$e(260);return w.jsDoc=void 0,w.flowNode=void 0,w}function f4(w,z,ne,Ie){let bt=xt(261);return bt.name=D_(w),bt.exclamationToken=z,bt.type=ne,bt.initializer=Hu(Ie),bt.transformFlags|=wD(bt.name)|Ji(bt.initializer)|(bt.exclamationToken??bt.type?1:0),bt.jsDoc=void 0,bt}function tR(w,z,ne,Ie,bt){return w.name!==z||w.type!==Ie||w.exclamationToken!==ne||w.initializer!==bt?_i(f4(z,ne,Ie,bt),w):w}function pO(w,z=0){let ne=$e(262);return ne.flags|=z&7,ne.declarations=pt(w),ne.transformFlags|=ul(ne.declarations)|4194304,z&7&&(ne.transformFlags|=263168),z&4&&(ne.transformFlags|=4),ne}function D$(w,z){return w.declarations!==z?_i(pO(z,w.flags),w):w}function _O(w,z,ne,Ie,bt,Pr,Ri){let Ra=xt(263);if(Ra.modifiers=fl(w),Ra.asteriskToken=z,Ra.name=D_(ne),Ra.typeParameters=fl(Ie),Ra.parameters=pt(bt),Ra.type=Pr,Ra.body=Ri,!Ra.body||ID(Ra.modifiers)&128)Ra.transformFlags=1;else{let _u=ID(Ra.modifiers)&1024,dd=!!Ra.asteriskToken,Kk=_u&ⅆRa.transformFlags=ul(Ra.modifiers)|Ji(Ra.asteriskToken)|wD(Ra.name)|ul(Ra.typeParameters)|ul(Ra.parameters)|Ji(Ra.type)|Ji(Ra.body)&-67108865|(Kk?128:_u?256:dd?2048:0)|(Ra.typeParameters||Ra.type?1:0)|4194304}return Ra.typeArguments=void 0,Ra.jsDoc=void 0,Ra.locals=void 0,Ra.nextContainer=void 0,Ra.endFlowNode=void 0,Ra.returnFlowNode=void 0,Ra}function dO(w,z,ne,Ie,bt,Pr,Ri,Ra){return w.modifiers!==z||w.asteriskToken!==ne||w.name!==Ie||w.typeParameters!==bt||w.parameters!==Pr||w.type!==Ri||w.body!==Ra?A$(_O(z,ne,Ie,bt,Pr,Ri,Ra),w):w}function A$(w,z){return w!==z&&w.modifiers===z.modifiers&&(w.modifiers=z.modifiers),tr(w,z)}function fO(w,z,ne,Ie,bt){let Pr=xt(264);return Pr.modifiers=fl(w),Pr.name=D_(z),Pr.typeParameters=fl(ne),Pr.heritageClauses=fl(Ie),Pr.members=pt(bt),ID(Pr.modifiers)&128?Pr.transformFlags=1:(Pr.transformFlags|=ul(Pr.modifiers)|wD(Pr.name)|ul(Pr.typeParameters)|ul(Pr.heritageClauses)|ul(Pr.members)|(Pr.typeParameters?1:0)|1024,Pr.transformFlags&8192&&(Pr.transformFlags|=1)),Pr.jsDoc=void 0,Pr}function NI(w,z,ne,Ie,bt,Pr){return w.modifiers!==z||w.name!==ne||w.typeParameters!==Ie||w.heritageClauses!==bt||w.members!==Pr?_i(fO(z,ne,Ie,bt,Pr),w):w}function mO(w,z,ne,Ie,bt){let Pr=xt(265);return Pr.modifiers=fl(w),Pr.name=D_(z),Pr.typeParameters=fl(ne),Pr.heritageClauses=fl(Ie),Pr.members=pt(bt),Pr.transformFlags=1,Pr.jsDoc=void 0,Pr}function rR(w,z,ne,Ie,bt,Pr){return w.modifiers!==z||w.name!==ne||w.typeParameters!==Ie||w.heritageClauses!==bt||w.members!==Pr?_i(mO(z,ne,Ie,bt,Pr),w):w}function nf(w,z,ne,Ie){let bt=xt(266);return bt.modifiers=fl(w),bt.name=D_(z),bt.typeParameters=fl(ne),bt.type=Ie,bt.transformFlags=1,bt.jsDoc=void 0,bt.locals=void 0,bt.nextContainer=void 0,bt}function X2(w,z,ne,Ie,bt){return w.modifiers!==z||w.name!==ne||w.typeParameters!==Ie||w.type!==bt?_i(nf(z,ne,Ie,bt),w):w}function hO(w,z,ne){let Ie=xt(267);return Ie.modifiers=fl(w),Ie.name=D_(z),Ie.members=pt(ne),Ie.transformFlags|=ul(Ie.modifiers)|Ji(Ie.name)|ul(Ie.members)|1,Ie.transformFlags&=-67108865,Ie.jsDoc=void 0,Ie}function Y2(w,z,ne,Ie){return w.modifiers!==z||w.name!==ne||w.members!==Ie?_i(hO(z,ne,Ie),w):w}function nR(w,z,ne,Ie=0){let bt=xt(268);return bt.modifiers=fl(w),bt.flags|=Ie&2088,bt.name=z,bt.body=ne,ID(bt.modifiers)&128?bt.transformFlags=1:bt.transformFlags|=ul(bt.modifiers)|Ji(bt.name)|Ji(bt.body)|1,bt.transformFlags&=-67108865,bt.jsDoc=void 0,bt.locals=void 0,bt.nextContainer=void 0,bt}function Vm(w,z,ne,Ie){return w.modifiers!==z||w.name!==ne||w.body!==Ie?_i(nR(z,ne,Ie,w.flags),w):w}function eE(w){let z=$e(269);return z.statements=pt(w),z.transformFlags|=ul(z.statements),z.jsDoc=void 0,z}function Ny(w,z){return w.statements!==z?_i(eE(z),w):w}function iR(w){let z=$e(270);return z.clauses=pt(w),z.transformFlags|=ul(z.clauses),z.locals=void 0,z.nextContainer=void 0,z}function w$(w,z){return w.clauses!==z?_i(iR(z),w):w}function oR(w){let z=xt(271);return z.name=D_(w),z.transformFlags|=eee(z.name)|1,z.modifiers=void 0,z.jsDoc=void 0,z}function aR(w,z){return w.name!==z?gO(oR(z),w):w}function gO(w,z){return w!==z&&(w.modifiers=z.modifiers),_i(w,z)}function NT(w,z,ne,Ie){let bt=xt(272);return bt.modifiers=fl(w),bt.name=D_(ne),bt.isTypeOnly=z,bt.moduleReference=Ie,bt.transformFlags|=ul(bt.modifiers)|eee(bt.name)|Ji(bt.moduleReference),EUt(bt.moduleReference)||(bt.transformFlags|=1),bt.transformFlags&=-67108865,bt.jsDoc=void 0,bt}function zk(w,z,ne,Ie,bt){return w.modifiers!==z||w.isTypeOnly!==ne||w.name!==Ie||w.moduleReference!==bt?_i(NT(z,ne,Ie,bt),w):w}function sR(w,z,ne,Ie){let bt=$e(273);return bt.modifiers=fl(w),bt.importClause=z,bt.moduleSpecifier=ne,bt.attributes=bt.assertClause=Ie,bt.transformFlags|=Ji(bt.importClause)|Ji(bt.moduleSpecifier),bt.transformFlags&=-67108865,bt.jsDoc=void 0,bt}function cR(w,z,ne,Ie,bt){return w.modifiers!==z||w.importClause!==ne||w.moduleSpecifier!==Ie||w.attributes!==bt?_i(sR(z,ne,Ie,bt),w):w}function lR(w,z,ne){let Ie=xt(274);return typeof w=="boolean"&&(w=w?156:void 0),Ie.isTypeOnly=w===156,Ie.phaseModifier=w,Ie.name=z,Ie.namedBindings=ne,Ie.transformFlags|=Ji(Ie.name)|Ji(Ie.namedBindings),w===156&&(Ie.transformFlags|=1),Ie.transformFlags&=-67108865,Ie}function uR(w,z,ne,Ie){return typeof z=="boolean"&&(z=z?156:void 0),w.phaseModifier!==z||w.name!==ne||w.namedBindings!==Ie?_i(lR(z,ne,Ie),w):w}function tE(w,z){let ne=$e(301);return ne.elements=pt(w),ne.multiLine=z,ne.token=132,ne.transformFlags|=4,ne}function I$(w,z,ne){return w.elements!==z||w.multiLine!==ne?_i(tE(z,ne),w):w}function OI(w,z){let ne=$e(302);return ne.name=w,ne.value=z,ne.transformFlags|=4,ne}function pR(w,z,ne){return w.name!==z||w.value!==ne?_i(OI(z,ne),w):w}function m4(w,z){let ne=$e(303);return ne.assertClause=w,ne.multiLine=z,ne}function _R(w,z,ne){return w.assertClause!==z||w.multiLine!==ne?_i(m4(z,ne),w):w}function dR(w,z,ne){let Ie=$e(301);return Ie.token=ne??118,Ie.elements=pt(w),Ie.multiLine=z,Ie.transformFlags|=4,Ie}function yO(w,z,ne){return w.elements!==z||w.multiLine!==ne?_i(dR(z,ne,w.token),w):w}function fR(w,z){let ne=$e(302);return ne.name=w,ne.value=z,ne.transformFlags|=4,ne}function mR(w,z,ne){return w.name!==z||w.value!==ne?_i(fR(z,ne),w):w}function vO(w){let z=xt(275);return z.name=w,z.transformFlags|=Ji(z.name),z.transformFlags&=-67108865,z}function hR(w,z){return w.name!==z?_i(vO(z),w):w}function SO(w){let z=xt(281);return z.name=w,z.transformFlags|=Ji(z.name)|32,z.transformFlags&=-67108865,z}function P$(w,z){return w.name!==z?_i(SO(z),w):w}function C_(w){let z=$e(276);return z.elements=pt(w),z.transformFlags|=ul(z.elements),z.transformFlags&=-67108865,z}function gR(w,z){return w.elements!==z?_i(C_(z),w):w}function rE(w,z,ne){let Ie=xt(277);return Ie.isTypeOnly=w,Ie.propertyName=z,Ie.name=ne,Ie.transformFlags|=Ji(Ie.propertyName)|Ji(Ie.name),Ie.transformFlags&=-67108865,Ie}function N$(w,z,ne,Ie){return w.isTypeOnly!==z||w.propertyName!==ne||w.name!==Ie?_i(rE(z,ne,Ie),w):w}function h4(w,z,ne){let Ie=xt(278);return Ie.modifiers=fl(w),Ie.isExportEquals=z,Ie.expression=z?s().parenthesizeRightSideOfBinary(64,void 0,ne):s().parenthesizeExpressionOfExportDefault(ne),Ie.transformFlags|=ul(Ie.modifiers)|Ji(Ie.expression),Ie.transformFlags&=-67108865,Ie.jsDoc=void 0,Ie}function FI(w,z,ne){return w.modifiers!==z||w.expression!==ne?_i(h4(z,w.isExportEquals,ne),w):w}function g4(w,z,ne,Ie,bt){let Pr=xt(279);return Pr.modifiers=fl(w),Pr.isTypeOnly=z,Pr.exportClause=ne,Pr.moduleSpecifier=Ie,Pr.attributes=Pr.assertClause=bt,Pr.transformFlags|=ul(Pr.modifiers)|Ji(Pr.exportClause)|Ji(Pr.moduleSpecifier),Pr.transformFlags&=-67108865,Pr.jsDoc=void 0,Pr}function y4(w,z,ne,Ie,bt,Pr){return w.modifiers!==z||w.isTypeOnly!==ne||w.exportClause!==Ie||w.moduleSpecifier!==bt||w.attributes!==Pr?RI(g4(z,ne,Ie,bt,Pr),w):w}function RI(w,z){return w!==z&&w.modifiers===z.modifiers&&(w.modifiers=z.modifiers),_i(w,z)}function qk(w){let z=$e(280);return z.elements=pt(w),z.transformFlags|=ul(z.elements),z.transformFlags&=-67108865,z}function OW(w,z){return w.elements!==z?_i(qk(z),w):w}function v4(w,z,ne){let Ie=$e(282);return Ie.isTypeOnly=w,Ie.propertyName=D_(z),Ie.name=D_(ne),Ie.transformFlags|=Ji(Ie.propertyName)|Ji(Ie.name),Ie.transformFlags&=-67108865,Ie.jsDoc=void 0,Ie}function yR(w,z,ne,Ie){return w.isTypeOnly!==z||w.propertyName!==ne||w.name!==Ie?_i(v4(z,ne,Ie),w):w}function Wm(){let w=xt(283);return w.jsDoc=void 0,w}function OT(w){let z=$e(284);return z.expression=w,z.transformFlags|=Ji(z.expression),z.transformFlags&=-67108865,z}function O$(w,z){return w.expression!==z?_i(OT(z),w):w}function bO(w){return $e(w)}function xO(w,z,ne=!1){let Ie=LI(w,ne?z&&s().parenthesizeNonArrayTypeOfPostfixType(z):z);return Ie.postfix=ne,Ie}function LI(w,z){let ne=$e(w);return ne.type=z,ne}function Ste(w,z,ne){return z.type!==ne?_i(xO(w,ne,z.postfix),z):z}function FW(w,z,ne){return z.type!==ne?_i(LI(w,ne),z):z}function RW(w,z){let ne=xt(318);return ne.parameters=fl(w),ne.type=z,ne.transformFlags=ul(ne.parameters)|(ne.type?1:0),ne.jsDoc=void 0,ne.locals=void 0,ne.nextContainer=void 0,ne.typeArguments=void 0,ne}function bte(w,z,ne){return w.parameters!==z||w.type!==ne?_i(RW(z,ne),w):w}function LW(w,z=!1){let ne=xt(323);return ne.jsDocPropertyTags=fl(w),ne.isArrayType=z,ne}function MW(w,z,ne){return w.jsDocPropertyTags!==z||w.isArrayType!==ne?_i(LW(z,ne),w):w}function jW(w){let z=$e(310);return z.type=w,z}function S4(w,z){return w.type!==z?_i(jW(z),w):w}function b4(w,z,ne){let Ie=xt(324);return Ie.typeParameters=fl(w),Ie.parameters=pt(z),Ie.type=ne,Ie.jsDoc=void 0,Ie.locals=void 0,Ie.nextContainer=void 0,Ie}function BW(w,z,ne,Ie){return w.typeParameters!==z||w.parameters!==ne||w.type!==Ie?_i(b4(z,ne,Ie),w):w}function Oy(w){let z=sDe(w.kind);return w.tagName.escapedText===XY(z)?w.tagName:co(z)}function lS(w,z,ne){let Ie=$e(w);return Ie.tagName=z,Ie.comment=ne,Ie}function MI(w,z,ne){let Ie=xt(w);return Ie.tagName=z,Ie.comment=ne,Ie}function TO(w,z,ne,Ie){let bt=lS(346,w??co("template"),Ie);return bt.constraint=z,bt.typeParameters=pt(ne),bt}function $W(w,z=Oy(w),ne,Ie,bt){return w.tagName!==z||w.constraint!==ne||w.typeParameters!==Ie||w.comment!==bt?_i(TO(z,ne,Ie,bt),w):w}function vR(w,z,ne,Ie){let bt=MI(347,w??co("typedef"),Ie);return bt.typeExpression=z,bt.fullName=ne,bt.name=vBt(ne),bt.locals=void 0,bt.nextContainer=void 0,bt}function UW(w,z=Oy(w),ne,Ie,bt){return w.tagName!==z||w.typeExpression!==ne||w.fullName!==Ie||w.comment!==bt?_i(vR(z,ne,Ie,bt),w):w}function SR(w,z,ne,Ie,bt,Pr){let Ri=MI(342,w??co("param"),Pr);return Ri.typeExpression=Ie,Ri.name=z,Ri.isNameFirst=!!bt,Ri.isBracketed=ne,Ri}function F$(w,z=Oy(w),ne,Ie,bt,Pr,Ri){return w.tagName!==z||w.name!==ne||w.isBracketed!==Ie||w.typeExpression!==bt||w.isNameFirst!==Pr||w.comment!==Ri?_i(SR(z,ne,Ie,bt,Pr,Ri),w):w}function bR(w,z,ne,Ie,bt,Pr){let Ri=MI(349,w??co("prop"),Pr);return Ri.typeExpression=Ie,Ri.name=z,Ri.isNameFirst=!!bt,Ri.isBracketed=ne,Ri}function f_(w,z=Oy(w),ne,Ie,bt,Pr,Ri){return w.tagName!==z||w.name!==ne||w.isBracketed!==Ie||w.typeExpression!==bt||w.isNameFirst!==Pr||w.comment!==Ri?_i(bR(z,ne,Ie,bt,Pr,Ri),w):w}function R$(w,z,ne,Ie){let bt=MI(339,w??co("callback"),Ie);return bt.typeExpression=z,bt.fullName=ne,bt.name=vBt(ne),bt.locals=void 0,bt.nextContainer=void 0,bt}function Gl(w,z=Oy(w),ne,Ie,bt){return w.tagName!==z||w.typeExpression!==ne||w.fullName!==Ie||w.comment!==bt?_i(R$(z,ne,Ie,bt),w):w}function x4(w,z,ne){let Ie=lS(340,w??co("overload"),ne);return Ie.typeExpression=z,Ie}function xR(w,z=Oy(w),ne,Ie){return w.tagName!==z||w.typeExpression!==ne||w.comment!==Ie?_i(x4(z,ne,Ie),w):w}function L$(w,z,ne){let Ie=lS(329,w??co("augments"),ne);return Ie.class=z,Ie}function XD(w,z=Oy(w),ne,Ie){return w.tagName!==z||w.class!==ne||w.comment!==Ie?_i(L$(z,ne,Ie),w):w}function TR(w,z,ne){let Ie=lS(330,w??co("implements"),ne);return Ie.class=z,Ie}function qd(w,z,ne){let Ie=lS(348,w??co("see"),ne);return Ie.name=z,Ie}function jI(w,z,ne,Ie){return w.tagName!==z||w.name!==ne||w.comment!==Ie?_i(qd(z,ne,Ie),w):w}function YD(w){let z=$e(311);return z.name=w,z}function ch(w,z){return w.name!==z?_i(YD(z),w):w}function EO(w,z){let ne=$e(312);return ne.left=w,ne.right=z,ne.transformFlags|=Ji(ne.left)|Ji(ne.right),ne}function eA(w,z,ne){return w.left!==z||w.right!==ne?_i(EO(z,ne),w):w}function Au(w,z){let ne=$e(325);return ne.name=w,ne.text=z,ne}function _p(w,z,ne){return w.name!==z?_i(Au(z,ne),w):w}function uS(w,z){let ne=$e(326);return ne.name=w,ne.text=z,ne}function zW(w,z,ne){return w.name!==z?_i(uS(z,ne),w):w}function qW(w,z){let ne=$e(327);return ne.name=w,ne.text=z,ne}function kO(w,z,ne){return w.name!==z?_i(qW(z,ne),w):w}function Fy(w,z=Oy(w),ne,Ie){return w.tagName!==z||w.class!==ne||w.comment!==Ie?_i(TR(z,ne,Ie),w):w}function mo(w,z,ne){return lS(w,z??co(sDe(w)),ne)}function t_(w,z,ne=Oy(z),Ie){return z.tagName!==ne||z.comment!==Ie?_i(mo(w,ne,Ie),z):z}function M$(w,z,ne,Ie){let bt=lS(w,z??co(sDe(w)),Ie);return bt.typeExpression=ne,bt}function xte(w,z,ne=Oy(z),Ie,bt){return z.tagName!==ne||z.typeExpression!==Ie||z.comment!==bt?_i(M$(w,ne,Ie,bt),z):z}function nE(w,z){return lS(328,w,z)}function Tte(w,z,ne){return w.tagName!==z||w.comment!==ne?_i(nE(z,ne),w):w}function Cd(w,z,ne){let Ie=MI(341,w??co(sDe(341)),ne);return Ie.typeExpression=z,Ie.locals=void 0,Ie.nextContainer=void 0,Ie}function pS(w,z=Oy(w),ne,Ie){return w.tagName!==z||w.typeExpression!==ne||w.comment!==Ie?_i(Cd(z,ne,Ie),w):w}function Z_(w,z,ne,Ie,bt){let Pr=lS(352,w??co("import"),bt);return Pr.importClause=z,Pr.moduleSpecifier=ne,Pr.attributes=Ie,Pr.comment=bt,Pr}function iE(w,z,ne,Ie,bt,Pr){return w.tagName!==z||w.comment!==Pr||w.importClause!==ne||w.moduleSpecifier!==Ie||w.attributes!==bt?_i(Z_(z,ne,Ie,bt,Pr),w):w}function Xi(w){let z=$e(322);return z.text=w,z}function mb(w,z){return w.text!==z?_i(Xi(z),w):w}function Jk(w,z){let ne=$e(321);return ne.comment=w,ne.tags=fl(z),ne}function za(w,z,ne){return w.comment!==z||w.tags!==ne?_i(Jk(z,ne),w):w}function Qs(w,z,ne){let Ie=$e(285);return Ie.openingElement=w,Ie.children=pt(z),Ie.closingElement=ne,Ie.transformFlags|=Ji(Ie.openingElement)|ul(Ie.children)|Ji(Ie.closingElement)|2,Ie}function JW(w,z,ne,Ie){return w.openingElement!==z||w.children!==ne||w.closingElement!==Ie?_i(Qs(z,ne,Ie),w):w}function VW(w,z,ne){let Ie=$e(286);return Ie.tagName=w,Ie.typeArguments=fl(z),Ie.attributes=ne,Ie.transformFlags|=Ji(Ie.tagName)|ul(Ie.typeArguments)|Ji(Ie.attributes)|2,Ie.typeArguments&&(Ie.transformFlags|=1),Ie}function ER(w,z,ne,Ie){return w.tagName!==z||w.typeArguments!==ne||w.attributes!==Ie?_i(VW(z,ne,Ie),w):w}function wl(w,z,ne){let Ie=$e(287);return Ie.tagName=w,Ie.typeArguments=fl(z),Ie.attributes=ne,Ie.transformFlags|=Ji(Ie.tagName)|ul(Ie.typeArguments)|Ji(Ie.attributes)|2,z&&(Ie.transformFlags|=1),Ie}function dv(w,z,ne,Ie){return w.tagName!==z||w.typeArguments!==ne||w.attributes!==Ie?_i(wl(z,ne,Ie),w):w}function r_(w){let z=$e(288);return z.tagName=w,z.transformFlags|=Ji(z.tagName)|2,z}function Tx(w,z){return w.tagName!==z?_i(r_(z),w):w}function Og(w,z,ne){let Ie=$e(289);return Ie.openingFragment=w,Ie.children=pt(z),Ie.closingFragment=ne,Ie.transformFlags|=Ji(Ie.openingFragment)|ul(Ie.children)|Ji(Ie.closingFragment)|2,Ie}function T4(w,z,ne,Ie){return w.openingFragment!==z||w.children!==ne||w.closingFragment!==Ie?_i(Og(z,ne,Ie),w):w}function tA(w,z){let ne=$e(12);return ne.text=w,ne.containsOnlyTriviaWhiteSpaces=!!z,ne.transformFlags|=2,ne}function j$(w,z,ne){return w.text!==z||w.containsOnlyTriviaWhiteSpaces!==ne?_i(tA(z,ne),w):w}function B$(){let w=$e(290);return w.transformFlags|=2,w}function $$(){let w=$e(291);return w.transformFlags|=2,w}function M1(w,z){let ne=xt(292);return ne.name=w,ne.initializer=z,ne.transformFlags|=Ji(ne.name)|Ji(ne.initializer)|2,ne}function ug(w,z,ne){return w.name!==z||w.initializer!==ne?_i(M1(z,ne),w):w}function rA(w){let z=xt(293);return z.properties=pt(w),z.transformFlags|=ul(z.properties)|2,z}function WW(w,z){return w.properties!==z?_i(rA(z),w):w}function lh(w){let z=$e(294);return z.expression=w,z.transformFlags|=Ji(z.expression)|2,z}function BI(w,z){return w.expression!==z?_i(lh(z),w):w}function Vk(w,z){let ne=$e(295);return ne.dotDotDotToken=w,ne.expression=z,ne.transformFlags|=Ji(ne.dotDotDotToken)|Ji(ne.expression)|2,ne}function FT(w,z){return w.expression!==z?_i(Vk(w.dotDotDotToken,z),w):w}function Ex(w,z){let ne=$e(296);return ne.namespace=w,ne.name=z,ne.transformFlags|=Ji(ne.namespace)|Ji(ne.name)|2,ne}function CO(w,z,ne){return w.namespace!==z||w.name!==ne?_i(Ex(z,ne),w):w}function I(w,z){let ne=$e(297);return ne.expression=s().parenthesizeExpressionForDisallowedComma(w),ne.statements=pt(z),ne.transformFlags|=Ji(ne.expression)|ul(ne.statements),ne.jsDoc=void 0,ne}function x(w,z,ne){return w.expression!==z||w.statements!==ne?_i(I(z,ne),w):w}function Bf(w){let z=$e(298);return z.statements=pt(w),z.transformFlags=ul(z.statements),z}function $I(w,z){return w.statements!==z?_i(Bf(z),w):w}function UI(w,z){let ne=$e(299);switch(ne.token=w,ne.types=pt(z),ne.transformFlags|=ul(ne.types),w){case 96:ne.transformFlags|=1024;break;case 119:ne.transformFlags|=1;break;default:return Pi.assertNever(w)}return ne}function Ete(w,z){return w.types!==z?_i(UI(w.token,z),w):w}function U$(w,z){let ne=$e(300);return ne.variableDeclaration=X0(w),ne.block=z,ne.transformFlags|=Ji(ne.variableDeclaration)|Ji(ne.block)|(w?0:64),ne.locals=void 0,ne.nextContainer=void 0,ne}function z$(w,z,ne){return w.variableDeclaration!==z||w.block!==ne?_i(U$(z,ne),w):w}function kR(w,z){let ne=xt(304);return ne.name=D_(w),ne.initializer=s().parenthesizeExpressionForDisallowedComma(z),ne.transformFlags|=wD(ne.name)|Ji(ne.initializer),ne.modifiers=void 0,ne.questionToken=void 0,ne.exclamationToken=void 0,ne.jsDoc=void 0,ne}function q$(w,z,ne){return w.name!==z||w.initializer!==ne?E4(kR(z,ne),w):w}function E4(w,z){return w!==z&&(w.modifiers=z.modifiers,w.questionToken=z.questionToken,w.exclamationToken=z.exclamationToken),_i(w,z)}function GW(w,z){let ne=xt(305);return ne.name=D_(w),ne.objectAssignmentInitializer=z&&s().parenthesizeExpressionForDisallowedComma(z),ne.transformFlags|=eee(ne.name)|Ji(ne.objectAssignmentInitializer)|1024,ne.equalsToken=void 0,ne.modifiers=void 0,ne.questionToken=void 0,ne.exclamationToken=void 0,ne.jsDoc=void 0,ne}function kte(w,z,ne){return w.name!==z||w.objectAssignmentInitializer!==ne?Cte(GW(z,ne),w):w}function Cte(w,z){return w!==z&&(w.modifiers=z.modifiers,w.questionToken=z.questionToken,w.exclamationToken=z.exclamationToken,w.equalsToken=z.equalsToken),_i(w,z)}function HW(w){let z=xt(306);return z.expression=s().parenthesizeExpressionForDisallowedComma(w),z.transformFlags|=Ji(z.expression)|128|65536,z.jsDoc=void 0,z}function KW(w,z){return w.expression!==z?_i(HW(z),w):w}function k4(w,z){let ne=xt(307);return ne.name=D_(w),ne.initializer=z&&s().parenthesizeExpressionForDisallowedComma(z),ne.transformFlags|=Ji(ne.name)|Ji(ne.initializer)|1,ne.jsDoc=void 0,ne}function fv(w,z,ne){return w.name!==z||w.initializer!==ne?_i(k4(z,ne),w):w}function QW(w,z,ne){let Ie=r.createBaseSourceFileNode(308);return Ie.statements=pt(w),Ie.endOfFileToken=z,Ie.flags|=ne,Ie.text="",Ie.fileName="",Ie.path="",Ie.resolvedPath="",Ie.originalFileName="",Ie.languageVersion=1,Ie.languageVariant=0,Ie.scriptKind=0,Ie.isDeclarationFile=!1,Ie.hasNoDefaultLib=!1,Ie.transformFlags|=ul(Ie.statements)|Ji(Ie.endOfFileToken),Ie.locals=void 0,Ie.nextContainer=void 0,Ie.endFlowNode=void 0,Ie.nodeCount=0,Ie.identifierCount=0,Ie.symbolCount=0,Ie.parseDiagnostics=void 0,Ie.bindDiagnostics=void 0,Ie.bindSuggestionDiagnostics=void 0,Ie.lineMap=void 0,Ie.externalModuleIndicator=void 0,Ie.setExternalModuleIndicator=void 0,Ie.pragmas=void 0,Ie.checkJsDirective=void 0,Ie.referencedFiles=void 0,Ie.typeReferenceDirectives=void 0,Ie.libReferenceDirectives=void 0,Ie.amdDependencies=void 0,Ie.commentDirectives=void 0,Ie.identifiers=void 0,Ie.packageJsonLocations=void 0,Ie.packageJsonScope=void 0,Ie.imports=void 0,Ie.moduleAugmentations=void 0,Ie.ambientModuleNames=void 0,Ie.classifiableNames=void 0,Ie.impliedNodeFormat=void 0,Ie}function J$(w){let z=Object.create(w.redirectTarget);return Object.defineProperties(z,{id:{get(){return this.redirectInfo.redirectTarget.id},set(ne){this.redirectInfo.redirectTarget.id=ne}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(ne){this.redirectInfo.redirectTarget.symbol=ne}}}),z.redirectInfo=w,z}function Dte(w){let z=J$(w.redirectInfo);return z.flags|=w.flags&-17,z.fileName=w.fileName,z.path=w.path,z.resolvedPath=w.resolvedPath,z.originalFileName=w.originalFileName,z.packageJsonLocations=w.packageJsonLocations,z.packageJsonScope=w.packageJsonScope,z.emitNode=void 0,z}function Zs(w){let z=r.createBaseSourceFileNode(308);z.flags|=w.flags&-17;for(let ne in w)if(!(T8(z,ne)||!T8(w,ne))){if(ne==="emitNode"){z.emitNode=void 0;continue}z[ne]=w[ne]}return z}function kx(w){let z=w.redirectInfo?Dte(w):Zs(w);return i(z,w),z}function V$(w,z,ne,Ie,bt,Pr,Ri){let Ra=kx(w);return Ra.statements=pt(z),Ra.isDeclarationFile=ne,Ra.referencedFiles=Ie,Ra.typeReferenceDirectives=bt,Ra.hasNoDefaultLib=Pr,Ra.libReferenceDirectives=Ri,Ra.transformFlags=ul(Ra.statements)|Ji(Ra.endOfFileToken),Ra}function ZW(w,z,ne=w.isDeclarationFile,Ie=w.referencedFiles,bt=w.typeReferenceDirectives,Pr=w.hasNoDefaultLib,Ri=w.libReferenceDirectives){return w.statements!==z||w.isDeclarationFile!==ne||w.referencedFiles!==Ie||w.typeReferenceDirectives!==bt||w.hasNoDefaultLib!==Pr||w.libReferenceDirectives!==Ri?_i(V$(w,z,ne,Ie,bt,Pr,Ri),w):w}function DO(w){let z=$e(309);return z.sourceFiles=w,z.syntheticFileReferences=void 0,z.syntheticTypeReferences=void 0,z.syntheticLibReferences=void 0,z.hasNoDefaultLib=void 0,z}function oE(w,z){return w.sourceFiles!==z?_i(DO(z),w):w}function C4(w,z=!1,ne){let Ie=$e(238);return Ie.type=w,Ie.isSpread=z,Ie.tupleNameSource=ne,Ie}function AO(w){let z=$e(353);return z._children=w,z}function Ry(w){let z=$e(354);return z.original=w,z2(z,w),z}function aE(w,z){let ne=$e(356);return ne.expression=w,ne.original=z,ne.transformFlags|=Ji(ne.expression)|1,z2(ne,z),ne}function nA(w,z){return w.expression!==z?_i(aE(z,w.original),w):w}function zI(){return $e(355)}function qs(w){if(YY(w)&&!vDe(w)&&!w.original&&!w.emitNode&&!w.id){if(Ncn(w))return w.elements;if(_ee(w)&&Qsn(w.operatorToken))return[w.left,w.right]}return w}function p0(w){let z=$e(357);return z.elements=pt(lin(w,qs)),z.transformFlags|=ul(z.elements),z}function _0(w,z){return w.elements!==z?_i(p0(z),w):w}function Dd(w,z){let ne=$e(358);return ne.expression=w,ne.thisArg=z,ne.transformFlags|=Ji(ne.expression)|Ji(ne.thisArg),ne}function Wk(w,z,ne){return w.expression!==z||w.thisArg!==ne?_i(Dd(z,ne),w):w}function CR(w){let z=Lo(w.escapedText);return z.flags|=w.flags&-17,z.transformFlags=w.transformFlags,i(z,w),setIdentifierAutoGenerate(z,{...w.emitNode.autoGenerate}),z}function W$(w){let z=Lo(w.escapedText);z.flags|=w.flags&-17,z.jsDoc=w.jsDoc,z.flowNode=w.flowNode,z.symbol=w.symbol,z.transformFlags=w.transformFlags,i(z,w);let ne=getIdentifierTypeArguments(w);return ne&&setIdentifierTypeArguments(z,ne),z}function XW(w){let z=Rc(w.escapedText);return z.flags|=w.flags&-17,z.transformFlags=w.transformFlags,i(z,w),setIdentifierAutoGenerate(z,{...w.emitNode.autoGenerate}),z}function DR(w){let z=Rc(w.escapedText);return z.flags|=w.flags&-17,z.transformFlags=w.transformFlags,i(z,w),z}function D4(w){if(w===void 0)return w;if(Ucn(w))return kx(w);if(iee(w))return CR(w);if(Kd(w))return W$(w);if(M$t(w))return XW(w);if(NV(w))return DR(w);let z=qYe(w.kind)?r.createBaseNode(w.kind):r.createBaseTokenNode(w.kind);z.flags|=w.flags&-17,z.transformFlags=w.transformFlags,i(z,w);for(let ne in w)T8(z,ne)||!T8(w,ne)||(z[ne]=w[ne]);return z}function _c(w,z,ne){return GD(w9(void 0,void 0,void 0,void 0,z?[z]:[],void 0,fb(w,!0)),void 0,ne?[ne]:[])}function AR(w,z,ne){return GD(tO(void 0,void 0,z?[z]:[],void 0,void 0,fb(w,!0)),void 0,ne?[ne]:[])}function RT(){return g$(ht("0"))}function qI(w){return h4(void 0,!1,w)}function wR(w){return g4(void 0,!1,qk([v4(!1,void 0,w)]))}function YW(w,z){return z==="null"?Je.createStrictEquality(w,Us()):z==="undefined"?Je.createStrictEquality(w,RT()):Je.createStrictEquality(P9(w),hr(z))}function IR(w,z){return z==="null"?Je.createStrictInequality(w,Us()):z==="undefined"?Je.createStrictInequality(w,RT()):Je.createStrictInequality(P9(w),hr(z))}function sE(w,z,ne){return Xjt(w)?Mk(IT(w,void 0,z),void 0,void 0,ne):GD(wT(w,z),void 0,ne)}function A4(w,z,ne){return sE(w,"bind",[z,...ne])}function w4(w,z,ne){return sE(w,"call",[z,...ne])}function G$(w,z,ne){return sE(w,"apply",[z,ne])}function JI(w,z,ne){return sE(co(w),z,ne)}function eG(w,z){return sE(w,"slice",z===void 0?[]:[Jp(z)])}function my(w,z){return sE(w,"concat",z)}function hb(w,z,ne){return JI("Object","defineProperty",[w,Jp(z),ne])}function VI(w,z){return JI("Object","getOwnPropertyDescriptor",[w,Jp(z)])}function pg(w,z,ne){return JI("Reflect","get",ne?[w,z,ne]:[w,z])}function j1(w,z,ne,Ie){return JI("Reflect","set",Ie?[w,z,ne,Ie]:[w,z,ne])}function Jd(w,z,ne){return ne?(w.push(kR(z,ne)),!0):!1}function B1(w,z){let ne=[];Jd(ne,"enumerable",Jp(w.enumerable)),Jd(ne,"configurable",Jp(w.configurable));let Ie=Jd(ne,"writable",Jp(w.writable));Ie=Jd(ne,"value",w.value)||Ie;let bt=Jd(ne,"get",w.get);return bt=Jd(ne,"set",w.set)||bt,Pi.assert(!(Ie&&bt),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Z8(ne,!z)}function iA(w,z){switch(w.kind){case 218:return A9(w,z);case 217:return Z2(w,w.type,z);case 235:return db(w,z,w.type);case 239:return QD(w,z,w.type);case 236:return iO(w,z);case 234:return R9(w,z,w.typeArguments);case 356:return nA(w,z)}}function Ly(w){return tet(w)&&YY(w)&&YY(getSourceMapRange(w))&&YY(getCommentRange(w))&&!sx(getSyntheticLeadingComments(w))&&!sx(getSyntheticTrailingComments(w))}function tG(w,z,ne=63){return w&&wUt(w,ne)&&!Ly(w)?iA(w,tG(w.expression,z)):z}function rG(w,z,ne){if(!z)return w;let Ie=Z9(z,z.label,Ocn(z.statement)?rG(w,z.statement):w);return ne&&ne(z),Ie}function Gk(w,z){let ne=KYe(w);switch(ne.kind){case 80:return z;case 110:case 9:case 10:case 11:return!1;case 210:return ne.elements.length!==0;case 211:return ne.properties.length>0;default:return!0}}function H$(w,z,ne,Ie=!1){let bt=iet(w,63),Pr,Ri;return oBt(bt)?(Pr=hs(),Ri=bt):XXe(bt)?(Pr=hs(),Ri=ne!==void 0&&ne<2?z2(co("_super"),bt):bt):lee(bt)&8192?(Pr=RT(),Ri=s().parenthesizeLeftSideOfAccess(bt,!1)):X5(bt)?Gk(bt.expression,Ie)?(Pr=Cs(z),Ri=wT(z2(Je.createAssignment(Pr,bt.expression),bt.expression),bt.name),z2(Ri,bt)):(Pr=bt.expression,Ri=bt):g_e(bt)?Gk(bt.expression,Ie)?(Pr=Cs(z),Ri=pb(z2(Je.createAssignment(Pr,bt.expression),bt.expression),bt.argumentExpression),z2(Ri,bt)):(Pr=bt.expression,Ri=bt):(Pr=RT(),Ri=s().parenthesizeLeftSideOfAccess(w,!1)),{target:Ri,thisArg:Pr}}function K$(w,z){return wT(kI(Z8([Yr(void 0,"value",[rf(void 0,void 0,w,void 0,void 0,void 0)],fb([wI(z)]))])),"value")}function ge(w){return w.length>10?p0(w):vin(w,Je.createComma)}function Ke(w,z,ne,Ie=0,bt){let Pr=bt?w&&UYe(w):N$t(w);if(Pr&&Kd(Pr)&&!iee(Pr)){let Ri=XYe(z2(D4(Pr),Pr),Pr.parent);return Ie|=lee(Pr),ne||(Ie|=96),z||(Ie|=3072),Ie&&setEmitFlags(Ri,Ie),Ri}return Zo(w)}function vt(w,z,ne){return Ke(w,z,ne,98304)}function nr(w,z,ne,Ie){return Ke(w,z,ne,32768,Ie)}function Rr(w,z,ne){return Ke(w,z,ne,16384)}function kn(w,z,ne){return Ke(w,z,ne)}function Xn(w,z,ne,Ie){let bt=wT(w,YY(z)?z:D4(z));z2(bt,z);let Pr=0;return Ie||(Pr|=96),ne||(Pr|=3072),Pr&&setEmitFlags(bt,Pr),bt}function Da(w,z,ne,Ie){return w&&h_e(z,32)?Xn(w,Ke(z),ne,Ie):Rr(z,ne,Ie)}function jo(w,z,ne,Ie){let bt=su(w,z,0,ne);return Hl(w,z,bt,Ie)}function Ao(w){return uee(w.expression)&&w.expression.text==="use strict"}function Ha(){return lln(wI(hr("use strict")))}function su(w,z,ne=0,Ie){Pi.assert(z.length===0,"Prologue directives should be at the first statement in the target statements array");let bt=!1,Pr=w.length;for(;neRa&&dd.splice(bt,0,...z.slice(Ra,_u)),Ra>Ri&&dd.splice(Ie,0,...z.slice(Ri,Ra)),Ri>Pr&&dd.splice(ne,0,...z.slice(Pr,Ri)),Pr>0)if(ne===0)dd.splice(0,0,...z.slice(0,Pr));else{let Kk=new Map;for(let fS=0;fS=0;fS--){let oA=z[fS];Kk.has(oA.expression.text)||dd.unshift(oA)}}return fB(w)?z2(pt(dd,w.hasTrailingComma),w):w}function dS(w,z){let ne;return typeof z=="number"?ne=Pt(z):ne=z,aUt(w)?K0(w,ne,w.name,w.constraint,w.default):xDe(w)?vx(w,ne,w.dotDotDotToken,w.name,w.questionToken,w.type,w.initializer):pUt(w)?Du(w,ne,w.typeParameters,w.parameters,w.type):ecn(w)?__(w,ne,w.name,w.questionToken,w.type):TDe(w)?jt(w,ne,w.name,w.questionToken??w.exclamationToken,w.type,w.initializer):tcn(w)?Ti(w,ne,w.name,w.questionToken,w.typeParameters,w.parameters,w.type):gYe(w)?Zc(w,ne,w.asteriskToken,w.name,w.questionToken,w.typeParameters,w.parameters,w.type,w.body):sUt(w)?Gr(w,ne,w.parameters,w.body):yYe(w)?To(w,ne,w.name,w.parameters,w.type,w.body):EDe(w)?Sn(w,ne,w.name,w.parameters,w.body):cUt(w)?nl(w,ne,w.parameters,w.type):fUt(w)?eO(w,ne,w.asteriskToken,w.name,w.typeParameters,w.parameters,w.type,w.body):mUt(w)?rO(w,ne,w.typeParameters,w.parameters,w.type,w.equalsGreaterThanToken,w.body):vYe(w)?F9(w,ne,w.name,w.typeParameters,w.heritageClauses,w.members):wDe(w)?x$(w,ne,w.declarationList):yUt(w)?dO(w,ne,w.asteriskToken,w.name,w.typeParameters,w.parameters,w.type,w.body):kDe(w)?NI(w,ne,w.name,w.typeParameters,w.heritageClauses,w.members):ret(w)?rR(w,ne,w.name,w.typeParameters,w.heritageClauses,w.members):vUt(w)?X2(w,ne,w.name,w.typeParameters,w.type):Rcn(w)?Y2(w,ne,w.name,w.members):f_e(w)?Vm(w,ne,w.name,w.body):SUt(w)?zk(w,ne,w.isTypeOnly,w.name,w.moduleReference):bUt(w)?cR(w,ne,w.importClause,w.moduleSpecifier,w.attributes):xUt(w)?FI(w,ne,w.expression):TUt(w)?y4(w,ne,w.isTypeOnly,w.exportClause,w.moduleSpecifier,w.attributes):Pi.assertNever(w)}function gb(w,z){return xDe(w)?vx(w,z,w.dotDotDotToken,w.name,w.questionToken,w.type,w.initializer):TDe(w)?jt(w,z,w.name,w.questionToken??w.exclamationToken,w.type,w.initializer):gYe(w)?Zc(w,z,w.asteriskToken,w.name,w.questionToken,w.typeParameters,w.parameters,w.type,w.body):yYe(w)?To(w,z,w.name,w.parameters,w.type,w.body):EDe(w)?Sn(w,z,w.name,w.parameters,w.body):vYe(w)?F9(w,z,w.name,w.typeParameters,w.heritageClauses,w.members):kDe(w)?NI(w,z,w.name,w.typeParameters,w.heritageClauses,w.members):Pi.assertNever(w)}function Hk(w,z){switch(w.kind){case 178:return To(w,w.modifiers,z,w.parameters,w.type,w.body);case 179:return Sn(w,w.modifiers,z,w.parameters,w.body);case 175:return Zc(w,w.modifiers,w.asteriskToken,z,w.questionToken,w.typeParameters,w.parameters,w.type,w.body);case 174:return Ti(w,w.modifiers,z,w.questionToken,w.typeParameters,w.parameters,w.type);case 173:return jt(w,w.modifiers,z,w.questionToken??w.exclamationToken,w.type,w.initializer);case 172:return __(w,w.modifiers,z,w.questionToken,w.type);case 304:return q$(w,z,w.initializer)}}function fl(w){return w?pt(w):void 0}function D_(w){return typeof w=="string"?co(w):w}function Jp(w){return typeof w=="string"?hr(w):typeof w=="number"?ht(w):typeof w=="boolean"?w?Sc():Wu():w}function Hu(w){return w&&s().parenthesizeExpressionForDisallowedComma(w)}function WI(w){return typeof w=="number"?Wn(w):w}function Cx(w){return w&&Mcn(w)?z2(i(T$(),w),w):w}function X0(w){return typeof w=="string"||w&&!gUt(w)?f4(w,void 0,void 0,void 0):w}function _i(w,z){return w!==z&&(i(w,z),z2(w,z)),w}}function sDe(e){switch(e){case 345:return"type";case 343:return"returns";case 344:return"this";case 341:return"enum";case 331:return"author";case 333:return"class";case 334:return"public";case 335:return"private";case 336:return"protected";case 337:return"readonly";case 338:return"override";case 346:return"template";case 347:return"typedef";case 342:return"param";case 349:return"prop";case 339:return"callback";case 340:return"overload";case 329:return"augments";case 330:return"implements";case 352:return"import";default:return Pi.fail(`Unsupported kind: ${Pi.formatSyntaxKind(e)}`)}}var Sk,pBt={};function Usn(e,r){switch(Sk||(Sk=BYe(99,!1,0)),e){case 15:Sk.setText("`"+r+"`");break;case 16:Sk.setText("`"+r+"${");break;case 17:Sk.setText("}"+r+"${");break;case 18:Sk.setText("}"+r+"`");break}let i=Sk.scan();if(i===20&&(i=Sk.reScanTemplateToken(!1)),Sk.isUnterminated())return Sk.setText(void 0),pBt;let s;switch(i){case 15:case 16:case 17:case 18:s=Sk.getTokenValue();break}return s===void 0||Sk.scan()!==1?(Sk.setText(void 0),pBt):(Sk.setText(void 0),s)}function wD(e){return e&&Kd(e)?eee(e):Ji(e)}function eee(e){return Ji(e)&-67108865}function zsn(e,r){return r|e.transformFlags&134234112}function Ji(e){if(!e)return 0;let r=e.transformFlags&~qsn(e.kind);return bon(e)&&j$t(e.name)?zsn(e.name,r):r}function ul(e){return e?e.transformFlags:0}function _Bt(e){let r=0;for(let i of e)r|=Ji(i);e.transformFlags=r}function qsn(e){if(e>=183&&e<=206)return-2;switch(e){case 214:case 215:case 210:return-2147450880;case 268:return-1941676032;case 170:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112;case 207:case 208:return-2147450880;case 217:case 239:case 235:case 356:case 218:case 108:return-2147483648;case 212:case 213:return-2147483648;default:return-2147483648}}var Gpe=jsn();function Hpe(e){return e.flags|=16,e}var Jsn={createBaseSourceFileNode:e=>Hpe(Gpe.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>Hpe(Gpe.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>Hpe(Gpe.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>Hpe(Gpe.createBaseTokenNode(e)),createBaseNode:e=>Hpe(Gpe.createBaseNode(e))},gVn=YYe(4,Jsn);function Vsn(e,r){if(e.original!==r&&(e.original=r,r)){let i=r.emitNode;i&&(e.emitNode=Wsn(i,e.emitNode))}return e}function Wsn(e,r){let{flags:i,internalFlags:s,leadingComments:l,trailingComments:d,commentRange:h,sourceMapRange:S,tokenSourceMapRanges:b,constantValue:A,helpers:L,startsOnNewLine:V,snippetElement:j,classThis:ie,assignedName:te}=e;if(r||(r={}),i&&(r.flags=i),s&&(r.internalFlags=s&-9),l&&(r.leadingComments=Tk(l.slice(),r.leadingComments)),d&&(r.trailingComments=Tk(d.slice(),r.trailingComments)),h&&(r.commentRange=h),S&&(r.sourceMapRange=S),b&&(r.tokenSourceMapRanges=Gsn(b,r.tokenSourceMapRanges)),A!==void 0&&(r.constantValue=A),L)for(let X of L)r.helpers=din(r.helpers,X);return V!==void 0&&(r.startsOnNewLine=V),j!==void 0&&(r.snippetElement=j),ie&&(r.classThis=ie),te&&(r.assignedName=te),r}function Gsn(e,r){r||(r=[]);for(let i in e)r[i]=e[i];return r}function dee(e){return e.kind===9}function Hsn(e){return e.kind===10}function uee(e){return e.kind===11}function Ksn(e){return e.kind===15}function Qsn(e){return e.kind===28}function dBt(e){return e.kind===54}function fBt(e){return e.kind===58}function Kd(e){return e.kind===80}function NV(e){return e.kind===81}function Zsn(e){return e.kind===95}function cDe(e){return e.kind===134}function XXe(e){return e.kind===108}function Xsn(e){return e.kind===102}function Ysn(e){return e.kind===167}function oUt(e){return e.kind===168}function aUt(e){return e.kind===169}function xDe(e){return e.kind===170}function eet(e){return e.kind===171}function ecn(e){return e.kind===172}function TDe(e){return e.kind===173}function tcn(e){return e.kind===174}function gYe(e){return e.kind===175}function sUt(e){return e.kind===177}function yYe(e){return e.kind===178}function EDe(e){return e.kind===179}function rcn(e){return e.kind===180}function ncn(e){return e.kind===181}function cUt(e){return e.kind===182}function icn(e){return e.kind===183}function lUt(e){return e.kind===184}function uUt(e){return e.kind===185}function pUt(e){return e.kind===186}function ocn(e){return e.kind===187}function acn(e){return e.kind===188}function scn(e){return e.kind===189}function ccn(e){return e.kind===190}function lcn(e){return e.kind===203}function ucn(e){return e.kind===191}function pcn(e){return e.kind===192}function _cn(e){return e.kind===193}function dcn(e){return e.kind===194}function fcn(e){return e.kind===195}function mcn(e){return e.kind===196}function hcn(e){return e.kind===197}function gcn(e){return e.kind===198}function ycn(e){return e.kind===199}function vcn(e){return e.kind===200}function Scn(e){return e.kind===201}function bcn(e){return e.kind===202}function xcn(e){return e.kind===206}function Tcn(e){return e.kind===209}function Ecn(e){return e.kind===210}function _Ut(e){return e.kind===211}function X5(e){return e.kind===212}function g_e(e){return e.kind===213}function dUt(e){return e.kind===214}function kcn(e){return e.kind===216}function tet(e){return e.kind===218}function fUt(e){return e.kind===219}function mUt(e){return e.kind===220}function Ccn(e){return e.kind===223}function Dcn(e){return e.kind===225}function _ee(e){return e.kind===227}function Acn(e){return e.kind===231}function vYe(e){return e.kind===232}function wcn(e){return e.kind===233}function Icn(e){return e.kind===234}function _De(e){return e.kind===236}function Pcn(e){return e.kind===237}function Ncn(e){return e.kind===357}function wDe(e){return e.kind===244}function hUt(e){return e.kind===245}function Ocn(e){return e.kind===257}function gUt(e){return e.kind===261}function Fcn(e){return e.kind===262}function yUt(e){return e.kind===263}function kDe(e){return e.kind===264}function ret(e){return e.kind===265}function vUt(e){return e.kind===266}function Rcn(e){return e.kind===267}function f_e(e){return e.kind===268}function SUt(e){return e.kind===272}function bUt(e){return e.kind===273}function xUt(e){return e.kind===278}function TUt(e){return e.kind===279}function Lcn(e){return e.kind===280}function Mcn(e){return e.kind===354}function EUt(e){return e.kind===284}function mBt(e){return e.kind===287}function jcn(e){return e.kind===290}function kUt(e){return e.kind===296}function Bcn(e){return e.kind===298}function $cn(e){return e.kind===304}function Ucn(e){return e.kind===308}function zcn(e){return e.kind===310}function qcn(e){return e.kind===315}function Jcn(e){return e.kind===318}function CUt(e){return e.kind===321}function Vcn(e){return e.kind===323}function DUt(e){return e.kind===324}function Wcn(e){return e.kind===329}function Gcn(e){return e.kind===334}function Hcn(e){return e.kind===335}function Kcn(e){return e.kind===336}function Qcn(e){return e.kind===337}function Zcn(e){return e.kind===338}function Xcn(e){return e.kind===340}function Ycn(e){return e.kind===332}function hBt(e){return e.kind===342}function eln(e){return e.kind===343}function net(e){return e.kind===345}function tln(e){return e.kind===346}function rln(e){return e.kind===330}function nln(e){return e.kind===351}var IV=new WeakMap;function AUt(e,r){var i;let s=e.kind;return qYe(s)?s===353?e._children:(i=IV.get(r))==null?void 0:i.get(e):ky}function iln(e,r,i){e.kind===353&&Pi.fail("Should not need to re-set the children of a SyntaxList.");let s=IV.get(r);return s===void 0&&(s=new WeakMap,IV.set(r,s)),s.set(e,i),i}function gBt(e,r){var i;e.kind===353&&Pi.fail("Did not expect to unset the children of a SyntaxList."),(i=IV.get(r))==null||i.delete(e)}function oln(e,r){let i=IV.get(e);i!==void 0&&(IV.delete(e),IV.set(r,i))}function yBt(e){return(lee(e)&32768)!==0}function aln(e){return uee(e.expression)&&e.expression.text==="use strict"}function sln(e){for(let r of e)if(pDe(r)){if(aln(r))return r}else break}function cln(e){return tet(e)&&OV(e)&&!!Mon(e)}function wUt(e,r=63){switch(e.kind){case 218:return r&-2147483648&&cln(e)?!1:(r&1)!==0;case 217:case 235:return(r&2)!==0;case 239:return(r&34)!==0;case 234:return(r&16)!==0;case 236:return(r&4)!==0;case 356:return(r&8)!==0}return!1}function iet(e,r=63){for(;wUt(e,r);)e=e.expression;return e}function lln(e){return setStartsOnNewLine(e,!0)}function r_e(e){if(ran(e))return e.name;if(Xon(e)){switch(e.kind){case 304:return r_e(e.initializer);case 305:return e.name;case 306:return r_e(e.expression)}return}return bDe(e,!0)?r_e(e.left):Acn(e)?r_e(e.expression):e}function uln(e){switch(e.kind){case 207:case 208:case 210:return e.elements;case 211:return e.properties}}function vBt(e){if(e){let r=e;for(;;){if(Kd(r)||!r.body)return Kd(r)?r:r.name;r=r.body}}}var SBt;(e=>{function r(L,V,j,ie,te,X,Re){let Je=V>0?te[V-1]:void 0;return Pi.assertEqual(j[V],r),te[V]=L.onEnter(ie[V],Je,Re),j[V]=S(L,r),V}e.enter=r;function i(L,V,j,ie,te,X,Re){Pi.assertEqual(j[V],i),Pi.assertIsDefined(L.onLeft),j[V]=S(L,i);let Je=L.onLeft(ie[V].left,te[V],ie[V]);return Je?(A(V,ie,Je),b(V,j,ie,te,Je)):V}e.left=i;function s(L,V,j,ie,te,X,Re){return Pi.assertEqual(j[V],s),Pi.assertIsDefined(L.onOperator),j[V]=S(L,s),L.onOperator(ie[V].operatorToken,te[V],ie[V]),V}e.operator=s;function l(L,V,j,ie,te,X,Re){Pi.assertEqual(j[V],l),Pi.assertIsDefined(L.onRight),j[V]=S(L,l);let Je=L.onRight(ie[V].right,te[V],ie[V]);return Je?(A(V,ie,Je),b(V,j,ie,te,Je)):V}e.right=l;function d(L,V,j,ie,te,X,Re){Pi.assertEqual(j[V],d),j[V]=S(L,d);let Je=L.onExit(ie[V],te[V]);if(V>0){if(V--,L.foldState){let pt=j[V]===d?"right":"left";te[V]=L.foldState(te[V],Je,pt)}}else X.value=Je;return V}e.exit=d;function h(L,V,j,ie,te,X,Re){return Pi.assertEqual(j[V],h),V}e.done=h;function S(L,V){switch(V){case r:if(L.onLeft)return i;case i:if(L.onOperator)return s;case s:if(L.onRight)return l;case l:return d;case d:return h;case h:return h;default:Pi.fail("Invalid state")}}e.nextState=S;function b(L,V,j,ie,te){return L++,V[L]=r,j[L]=te,ie[L]=void 0,L}function A(L,V,j){if(Pi.shouldAssert(2))for(;L>=0;)Pi.assert(V[L]!==j,"Circular traversal detected."),L--}})(SBt||(SBt={}));function bBt(e,r){return typeof e=="object"?SYe(!1,e.prefix,e.node,e.suffix,r):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function pln(e,r){return typeof e=="string"?e:_ln(e,Pi.checkDefined(r))}function _ln(e,r){return M$t(e)?r(e).slice(1):iee(e)?r(e):NV(e)?e.escapedText.slice(1):Ek(e)}function SYe(e,r,i,s,l){return r=bBt(r,l),s=bBt(s,l),i=pln(i,l),`${e?"#":""}${r}${i}${s}`}function IUt(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let r of uln(e)){let i=r_e(r);if(i&&tan(i)&&(i.transformFlags&65536||i.transformFlags&128&&IUt(i)))return!0}return!1}function z2(e,r){return r?gB(e,r.pos,r.end):e}function oet(e){let r=e.kind;return r===169||r===170||r===172||r===173||r===174||r===175||r===177||r===178||r===179||r===182||r===186||r===219||r===220||r===232||r===244||r===263||r===264||r===265||r===266||r===267||r===268||r===272||r===273||r===278||r===279}function dln(e){let r=e.kind;return r===170||r===173||r===175||r===178||r===179||r===232||r===264}var xBt,TBt,EBt,kBt,CBt,fln={createBaseSourceFileNode:e=>new(CBt||(CBt=Ey.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(EBt||(EBt=Ey.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(kBt||(kBt=Ey.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(TBt||(TBt=Ey.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(xBt||(xBt=Ey.getNodeConstructor()))(e,-1,-1)},yVn=YYe(1,fln);function qr(e,r){return r&&e(r)}function xa(e,r,i){if(i){if(r)return r(i);for(let s of i){let l=e(s);if(l)return l}}}function mln(e,r){return e.charCodeAt(r+1)===42&&e.charCodeAt(r+2)===42&&e.charCodeAt(r+3)!==47}function hln(e){return ND(e.statements,gln)||yln(e)}function gln(e){return oet(e)&&vln(e,95)||SUt(e)&&EUt(e.moduleReference)||bUt(e)||xUt(e)||TUt(e)?e:void 0}function yln(e){return e.flags&8388608?PUt(e):void 0}function PUt(e){return Sln(e)?e:cx(e,PUt)}function vln(e,r){return sx(e.modifiers,i=>i.kind===r)}function Sln(e){return Pcn(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var bln={167:function(e,r,i){return qr(r,e.left)||qr(r,e.right)},169:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||qr(r,e.constraint)||qr(r,e.default)||qr(r,e.expression)},305:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||qr(r,e.questionToken)||qr(r,e.exclamationToken)||qr(r,e.equalsToken)||qr(r,e.objectAssignmentInitializer)},306:function(e,r,i){return qr(r,e.expression)},170:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.dotDotDotToken)||qr(r,e.name)||qr(r,e.questionToken)||qr(r,e.type)||qr(r,e.initializer)},173:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||qr(r,e.questionToken)||qr(r,e.exclamationToken)||qr(r,e.type)||qr(r,e.initializer)},172:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||qr(r,e.questionToken)||qr(r,e.type)||qr(r,e.initializer)},304:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||qr(r,e.questionToken)||qr(r,e.exclamationToken)||qr(r,e.initializer)},261:function(e,r,i){return qr(r,e.name)||qr(r,e.exclamationToken)||qr(r,e.type)||qr(r,e.initializer)},209:function(e,r,i){return qr(r,e.dotDotDotToken)||qr(r,e.propertyName)||qr(r,e.name)||qr(r,e.initializer)},182:function(e,r,i){return xa(r,i,e.modifiers)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)},186:function(e,r,i){return xa(r,i,e.modifiers)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)},185:function(e,r,i){return xa(r,i,e.modifiers)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)},180:DBt,181:DBt,175:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.asteriskToken)||qr(r,e.name)||qr(r,e.questionToken)||qr(r,e.exclamationToken)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)||qr(r,e.body)},174:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||qr(r,e.questionToken)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)},177:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)||qr(r,e.body)},178:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)||qr(r,e.body)},179:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)||qr(r,e.body)},263:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.asteriskToken)||qr(r,e.name)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)||qr(r,e.body)},219:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.asteriskToken)||qr(r,e.name)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)||qr(r,e.body)},220:function(e,r,i){return xa(r,i,e.modifiers)||xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)||qr(r,e.equalsGreaterThanToken)||qr(r,e.body)},176:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.body)},184:function(e,r,i){return qr(r,e.typeName)||xa(r,i,e.typeArguments)},183:function(e,r,i){return qr(r,e.assertsModifier)||qr(r,e.parameterName)||qr(r,e.type)},187:function(e,r,i){return qr(r,e.exprName)||xa(r,i,e.typeArguments)},188:function(e,r,i){return xa(r,i,e.members)},189:function(e,r,i){return qr(r,e.elementType)},190:function(e,r,i){return xa(r,i,e.elements)},193:ABt,194:ABt,195:function(e,r,i){return qr(r,e.checkType)||qr(r,e.extendsType)||qr(r,e.trueType)||qr(r,e.falseType)},196:function(e,r,i){return qr(r,e.typeParameter)},206:function(e,r,i){return qr(r,e.argument)||qr(r,e.attributes)||qr(r,e.qualifier)||xa(r,i,e.typeArguments)},303:function(e,r,i){return qr(r,e.assertClause)},197:wBt,199:wBt,200:function(e,r,i){return qr(r,e.objectType)||qr(r,e.indexType)},201:function(e,r,i){return qr(r,e.readonlyToken)||qr(r,e.typeParameter)||qr(r,e.nameType)||qr(r,e.questionToken)||qr(r,e.type)||xa(r,i,e.members)},202:function(e,r,i){return qr(r,e.literal)},203:function(e,r,i){return qr(r,e.dotDotDotToken)||qr(r,e.name)||qr(r,e.questionToken)||qr(r,e.type)},207:IBt,208:IBt,210:function(e,r,i){return xa(r,i,e.elements)},211:function(e,r,i){return xa(r,i,e.properties)},212:function(e,r,i){return qr(r,e.expression)||qr(r,e.questionDotToken)||qr(r,e.name)},213:function(e,r,i){return qr(r,e.expression)||qr(r,e.questionDotToken)||qr(r,e.argumentExpression)},214:PBt,215:PBt,216:function(e,r,i){return qr(r,e.tag)||qr(r,e.questionDotToken)||xa(r,i,e.typeArguments)||qr(r,e.template)},217:function(e,r,i){return qr(r,e.type)||qr(r,e.expression)},218:function(e,r,i){return qr(r,e.expression)},221:function(e,r,i){return qr(r,e.expression)},222:function(e,r,i){return qr(r,e.expression)},223:function(e,r,i){return qr(r,e.expression)},225:function(e,r,i){return qr(r,e.operand)},230:function(e,r,i){return qr(r,e.asteriskToken)||qr(r,e.expression)},224:function(e,r,i){return qr(r,e.expression)},226:function(e,r,i){return qr(r,e.operand)},227:function(e,r,i){return qr(r,e.left)||qr(r,e.operatorToken)||qr(r,e.right)},235:function(e,r,i){return qr(r,e.expression)||qr(r,e.type)},236:function(e,r,i){return qr(r,e.expression)},239:function(e,r,i){return qr(r,e.expression)||qr(r,e.type)},237:function(e,r,i){return qr(r,e.name)},228:function(e,r,i){return qr(r,e.condition)||qr(r,e.questionToken)||qr(r,e.whenTrue)||qr(r,e.colonToken)||qr(r,e.whenFalse)},231:function(e,r,i){return qr(r,e.expression)},242:NBt,269:NBt,308:function(e,r,i){return xa(r,i,e.statements)||qr(r,e.endOfFileToken)},244:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.declarationList)},262:function(e,r,i){return xa(r,i,e.declarations)},245:function(e,r,i){return qr(r,e.expression)},246:function(e,r,i){return qr(r,e.expression)||qr(r,e.thenStatement)||qr(r,e.elseStatement)},247:function(e,r,i){return qr(r,e.statement)||qr(r,e.expression)},248:function(e,r,i){return qr(r,e.expression)||qr(r,e.statement)},249:function(e,r,i){return qr(r,e.initializer)||qr(r,e.condition)||qr(r,e.incrementor)||qr(r,e.statement)},250:function(e,r,i){return qr(r,e.initializer)||qr(r,e.expression)||qr(r,e.statement)},251:function(e,r,i){return qr(r,e.awaitModifier)||qr(r,e.initializer)||qr(r,e.expression)||qr(r,e.statement)},252:OBt,253:OBt,254:function(e,r,i){return qr(r,e.expression)},255:function(e,r,i){return qr(r,e.expression)||qr(r,e.statement)},256:function(e,r,i){return qr(r,e.expression)||qr(r,e.caseBlock)},270:function(e,r,i){return xa(r,i,e.clauses)},297:function(e,r,i){return qr(r,e.expression)||xa(r,i,e.statements)},298:function(e,r,i){return xa(r,i,e.statements)},257:function(e,r,i){return qr(r,e.label)||qr(r,e.statement)},258:function(e,r,i){return qr(r,e.expression)},259:function(e,r,i){return qr(r,e.tryBlock)||qr(r,e.catchClause)||qr(r,e.finallyBlock)},300:function(e,r,i){return qr(r,e.variableDeclaration)||qr(r,e.block)},171:function(e,r,i){return qr(r,e.expression)},264:FBt,232:FBt,265:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||xa(r,i,e.typeParameters)||xa(r,i,e.heritageClauses)||xa(r,i,e.members)},266:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||xa(r,i,e.typeParameters)||qr(r,e.type)},267:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||xa(r,i,e.members)},307:function(e,r,i){return qr(r,e.name)||qr(r,e.initializer)},268:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||qr(r,e.body)},272:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||qr(r,e.moduleReference)},273:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.importClause)||qr(r,e.moduleSpecifier)||qr(r,e.attributes)},274:function(e,r,i){return qr(r,e.name)||qr(r,e.namedBindings)},301:function(e,r,i){return xa(r,i,e.elements)},302:function(e,r,i){return qr(r,e.name)||qr(r,e.value)},271:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)},275:function(e,r,i){return qr(r,e.name)},281:function(e,r,i){return qr(r,e.name)},276:RBt,280:RBt,279:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.exportClause)||qr(r,e.moduleSpecifier)||qr(r,e.attributes)},277:LBt,282:LBt,278:function(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.expression)},229:function(e,r,i){return qr(r,e.head)||xa(r,i,e.templateSpans)},240:function(e,r,i){return qr(r,e.expression)||qr(r,e.literal)},204:function(e,r,i){return qr(r,e.head)||xa(r,i,e.templateSpans)},205:function(e,r,i){return qr(r,e.type)||qr(r,e.literal)},168:function(e,r,i){return qr(r,e.expression)},299:function(e,r,i){return xa(r,i,e.types)},234:function(e,r,i){return qr(r,e.expression)||xa(r,i,e.typeArguments)},284:function(e,r,i){return qr(r,e.expression)},283:function(e,r,i){return xa(r,i,e.modifiers)},357:function(e,r,i){return xa(r,i,e.elements)},285:function(e,r,i){return qr(r,e.openingElement)||xa(r,i,e.children)||qr(r,e.closingElement)},289:function(e,r,i){return qr(r,e.openingFragment)||xa(r,i,e.children)||qr(r,e.closingFragment)},286:MBt,287:MBt,293:function(e,r,i){return xa(r,i,e.properties)},292:function(e,r,i){return qr(r,e.name)||qr(r,e.initializer)},294:function(e,r,i){return qr(r,e.expression)},295:function(e,r,i){return qr(r,e.dotDotDotToken)||qr(r,e.expression)},288:function(e,r,i){return qr(r,e.tagName)},296:function(e,r,i){return qr(r,e.namespace)||qr(r,e.name)},191:xV,192:xV,310:xV,316:xV,315:xV,317:xV,319:xV,318:function(e,r,i){return xa(r,i,e.parameters)||qr(r,e.type)},321:function(e,r,i){return(typeof e.comment=="string"?void 0:xa(r,i,e.comment))||xa(r,i,e.tags)},348:function(e,r,i){return qr(r,e.tagName)||qr(r,e.name)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))},311:function(e,r,i){return qr(r,e.name)},312:function(e,r,i){return qr(r,e.left)||qr(r,e.right)},342:jBt,349:jBt,331:function(e,r,i){return qr(r,e.tagName)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))},330:function(e,r,i){return qr(r,e.tagName)||qr(r,e.class)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))},329:function(e,r,i){return qr(r,e.tagName)||qr(r,e.class)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))},346:function(e,r,i){return qr(r,e.tagName)||qr(r,e.constraint)||xa(r,i,e.typeParameters)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))},347:function(e,r,i){return qr(r,e.tagName)||(e.typeExpression&&e.typeExpression.kind===310?qr(r,e.typeExpression)||qr(r,e.fullName)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment)):qr(r,e.fullName)||qr(r,e.typeExpression)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment)))},339:function(e,r,i){return qr(r,e.tagName)||qr(r,e.fullName)||qr(r,e.typeExpression)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))},343:TV,345:TV,344:TV,341:TV,351:TV,350:TV,340:TV,324:function(e,r,i){return ND(e.typeParameters,r)||ND(e.parameters,r)||qr(r,e.type)},325:YXe,326:YXe,327:YXe,323:function(e,r,i){return ND(e.jsDocPropertyTags,r)},328:uB,333:uB,334:uB,335:uB,336:uB,337:uB,332:uB,338:uB,352:xln,356:Tln};function DBt(e,r,i){return xa(r,i,e.typeParameters)||xa(r,i,e.parameters)||qr(r,e.type)}function ABt(e,r,i){return xa(r,i,e.types)}function wBt(e,r,i){return qr(r,e.type)}function IBt(e,r,i){return xa(r,i,e.elements)}function PBt(e,r,i){return qr(r,e.expression)||qr(r,e.questionDotToken)||xa(r,i,e.typeArguments)||xa(r,i,e.arguments)}function NBt(e,r,i){return xa(r,i,e.statements)}function OBt(e,r,i){return qr(r,e.label)}function FBt(e,r,i){return xa(r,i,e.modifiers)||qr(r,e.name)||xa(r,i,e.typeParameters)||xa(r,i,e.heritageClauses)||xa(r,i,e.members)}function RBt(e,r,i){return xa(r,i,e.elements)}function LBt(e,r,i){return qr(r,e.propertyName)||qr(r,e.name)}function MBt(e,r,i){return qr(r,e.tagName)||xa(r,i,e.typeArguments)||qr(r,e.attributes)}function xV(e,r,i){return qr(r,e.type)}function jBt(e,r,i){return qr(r,e.tagName)||(e.isNameFirst?qr(r,e.name)||qr(r,e.typeExpression):qr(r,e.typeExpression)||qr(r,e.name))||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))}function TV(e,r,i){return qr(r,e.tagName)||qr(r,e.typeExpression)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))}function YXe(e,r,i){return qr(r,e.name)}function uB(e,r,i){return qr(r,e.tagName)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))}function xln(e,r,i){return qr(r,e.tagName)||qr(r,e.importClause)||qr(r,e.moduleSpecifier)||qr(r,e.attributes)||(typeof e.comment=="string"?void 0:xa(r,i,e.comment))}function Tln(e,r,i){return qr(r,e.expression)}function cx(e,r,i){if(e===void 0||e.kind<=166)return;let s=bln[e.kind];return s===void 0?void 0:s(e,r,i)}function BBt(e,r,i){let s=$Bt(e),l=[];for(;l.length=0;--S)s.push(d[S]),l.push(h)}else{let S=r(d,h);if(S){if(S==="skip")continue;return S}if(d.kind>=167)for(let b of $Bt(d))s.push(b),l.push(d)}}}function $Bt(e){let r=[];return cx(e,i,i),r;function i(s){r.unshift(s)}}function NUt(e){e.externalModuleIndicator=hln(e)}function Eln(e,r,i,s=!1,l){var d,h;(d=lDe)==null||d.push(lDe.Phase.Parse,"createSourceFile",{path:e},!0),zjt("beforeParse");let S,{languageVersion:b,setExternalModuleIndicator:A,impliedNodeFormat:L,jsDocParsingMode:V}=typeof i=="object"?i:{languageVersion:i};if(b===100)S=PV.parseSourceFile(e,r,b,void 0,s,6,pee,V);else{let j=L===void 0?A:ie=>(ie.impliedNodeFormat=L,(A||NUt)(ie));S=PV.parseSourceFile(e,r,b,void 0,s,l,j,V)}return zjt("afterParse"),Fin("Parse","beforeParse","afterParse"),(h=lDe)==null||h.pop(),S}function kln(e){return e.externalModuleIndicator!==void 0}function Cln(e,r,i,s=!1){let l=CDe.updateSourceFile(e,r,i,s);return l.flags|=e.flags&12582912,l}var PV;(e=>{var r=BYe(99,!0),i=40960,s,l,d,h,S;function b(ge){return Wu++,ge}var A={createBaseSourceFileNode:ge=>b(new S(ge,0,0)),createBaseIdentifierNode:ge=>b(new d(ge,0,0)),createBasePrivateIdentifierNode:ge=>b(new h(ge,0,0)),createBaseTokenNode:ge=>b(new l(ge,0,0)),createBaseNode:ge=>b(new s(ge,0,0))},L=YYe(11,A),{createNodeArray:V,createNumericLiteral:j,createStringLiteral:ie,createLiteralLikeNode:te,createIdentifier:X,createPrivateIdentifier:Re,createToken:Je,createArrayLiteralExpression:pt,createObjectLiteralExpression:$e,createPropertyAccessExpression:xt,createPropertyAccessChain:tr,createElementAccessExpression:ht,createElementAccessChain:wt,createCallExpression:Ut,createCallChain:hr,createNewExpression:Hi,createParenthesizedExpression:un,createBlock:xo,createVariableStatement:Lo,createExpressionStatement:yr,createIfStatement:co,createWhileStatement:Cs,createForStatement:Cr,createForOfStatement:ol,createVariableDeclaration:Zo,createVariableDeclarationList:Rc}=L,an,Xr,li,Wi,Bo,Wn,Na,hs,Us,Sc,Wu,uc,Pt,ou,go,mc,zp=!0,Rh=!1;function K0(ge,Ke,vt,nr,Rr=!1,kn,Xn,Da=0){var jo;if(kn=ksn(ge,kn),kn===6){let Ha=vx(ge,Ke,vt,nr,Rr);return convertToJson(Ha,(jo=Ha.statements[0])==null?void 0:jo.expression,Ha.parseDiagnostics,!1,void 0),Ha.referencedFiles=ky,Ha.typeReferenceDirectives=ky,Ha.libReferenceDirectives=ky,Ha.amdDependencies=ky,Ha.hasNoDefaultLib=!1,Ha.pragmas=ain,Ha}dy(ge,Ke,vt,nr,kn,Da);let Ao=O1(vt,Rr,kn,Xn||NUt,Da);return vm(),Ao}e.parseSourceFile=K0;function rf(ge,Ke){dy("",ge,Ke,void 0,1,0),bi();let vt=Bk(!0),nr=qe()===1&&!Na.length;return vm(),nr?vt:void 0}e.parseIsolatedEntityName=rf;function vx(ge,Ke,vt=2,nr,Rr=!1){dy(ge,Ke,vt,nr,6,0),Xr=mc,bi();let kn=Jn(),Xn,Da;if(qe()===1)Xn=cg([],kn,kn),Da=pd();else{let Ha;for(;qe()!==1;){let dl;switch(qe()){case 23:dl=Gl();break;case 112:case 97:case 106:dl=pd();break;case 41:Qi(()=>bi()===9&&bi()!==59)?dl=mR():dl=xR();break;case 9:case 11:if(Qi(()=>bi()!==59)){dl=PT();break}default:dl=xR();break}Ha&&Z5(Ha)?Ha.push(dl):Ha?Ha=[Ha,dl]:(Ha=dl,qe()!==1&&Ho(_n.Unexpected_token))}let su=Z5(Ha)?Br(pt(Ha),kn):Pi.checkDefined(Ha),Hl=yr(su);Br(Hl,kn),Xn=cg([Hl],kn),Da=Ts(1,_n.Unexpected_token)}let jo=ea(ge,2,6,!1,Xn,Da,Xr,pee);Rr&&jt(jo),jo.nodeCount=Wu,jo.identifierCount=Pt,jo.identifiers=uc,jo.parseDiagnostics=bV(Na,jo),hs&&(jo.jsDocDiagnostics=bV(hs,jo));let Ao=jo;return vm(),Ao}e.parseJsonText=vx;function dy(ge,Ke,vt,nr,Rr,kn){switch(s=Ey.getNodeConstructor(),l=Ey.getTokenConstructor(),d=Ey.getIdentifierConstructor(),h=Ey.getPrivateIdentifierConstructor(),S=Ey.getSourceFileConstructor(),an=Jin(ge),li=Ke,Wi=vt,Us=nr,Bo=Rr,Wn=cBt(Rr),Na=[],ou=0,uc=new Map,Pt=0,Wu=0,Xr=0,zp=!0,Bo){case 1:case 2:mc=524288;break;case 6:mc=134742016;break;default:mc=0;break}Rh=!1,r.setText(li),r.setOnError(sS),r.setScriptTarget(Wi),r.setLanguageVariant(Wn),r.setScriptKind(Bo),r.setJSDocParsingMode(kn)}function vm(){r.clearCommentDirectives(),r.setText(""),r.setOnError(void 0),r.setScriptKind(0),r.setJSDocParsingMode(0),li=void 0,Wi=void 0,Us=void 0,Bo=void 0,Wn=void 0,Xr=0,Na=void 0,hs=void 0,ou=0,uc=void 0,go=void 0,zp=!0}function O1(ge,Ke,vt,nr,Rr){let kn=wln(an);kn&&(mc|=33554432),Xr=mc,bi();let Xn=L1(0,Og);Pi.assert(qe()===1);let Da=so(),jo=Bc(pd(),Da),Ao=ea(an,ge,vt,kn,Xn,jo,Xr,nr);return Nln(Ao,li),Oln(Ao,Ha),Ao.commentDirectives=r.getCommentDirectives(),Ao.nodeCount=Wu,Ao.identifierCount=Pt,Ao.identifiers=uc,Ao.parseDiagnostics=bV(Na,Ao),Ao.jsDocParsingMode=Rr,hs&&(Ao.jsDocDiagnostics=bV(hs,Ao)),Ke&&jt(Ao),Ao;function Ha(su,Hl,dl){Na.push(HY(an,li,su,Hl,dl))}}let __=!1;function Bc(ge,Ke){if(!Ke)return ge;Pi.assert(!ge.jsDoc);let vt=uin(ban(ge,li),nr=>K$.parseJSDocComment(ge,nr.pos,nr.end-nr.pos));return vt.length&&(ge.jsDoc=vt),__&&(__=!1,ge.flags|=536870912),ge}function cb(ge){let Ke=Us,vt=CDe.createSyntaxCursor(ge);Us={currentNode:Ha};let nr=[],Rr=Na;Na=[];let kn=0,Xn=jo(ge.statements,0);for(;Xn!==-1;){let su=ge.statements[kn],Hl=ge.statements[Xn];Tk(nr,ge.statements,kn,Xn),kn=Ao(ge.statements,Xn);let dl=qXe(Rr,Fg=>Fg.start>=su.pos),$1=dl>=0?qXe(Rr,Fg=>Fg.start>=Hl.pos,dl):-1;dl>=0&&Tk(Na,Rr,dl,$1>=0?$1:void 0),u0(()=>{let Fg=mc;for(mc|=65536,r.resetTokenState(Hl.pos),bi();qe()!==1;){let _S=r.getTokenFullStart(),dS=EI(0,Og);if(nr.push(dS),_S===r.getTokenFullStart()&&bi(),kn>=0){let gb=ge.statements[kn];if(dS.end===gb.pos)break;dS.end>gb.pos&&(kn=Ao(ge.statements,kn+1))}}mc=Fg},2),Xn=kn>=0?jo(ge.statements,kn):-1}if(kn>=0){let su=ge.statements[kn];Tk(nr,ge.statements,kn);let Hl=qXe(Rr,dl=>dl.start>=su.pos);Hl>=0&&Tk(Na,Rr,Hl)}return Us=Ke,L.updateSourceFile(ge,z2(V(nr),ge.statements));function Da(su){return!(su.flags&65536)&&!!(su.transformFlags&67108864)}function jo(su,Hl){for(let dl=Hl;dl118}function Ni(){return qe()===80?!0:qe()===127&&pc()||qe()===135&&eu()?!1:qe()>118}function Kn(ge,Ke,vt=!0){return qe()===ge?(vt&&bi(),!0):(Ke?Ho(Ke):Ho(_n._0_expected,Bm(ge)),!1)}let Ci=Object.keys(LYe).filter(ge=>ge.length>2);function Ba(ge){if(kcn(ge)){Lu(b8(li,ge.template.pos),ge.template.end,_n.Module_declaration_names_may_only_use_or_quoted_strings);return}let Ke=Kd(ge)?Ek(ge):void 0;if(!Ke||!_on(Ke,Wi)){Ho(_n._0_expected,Bm(27));return}let vt=b8(li,ge.pos);switch(Ke){case"const":case"let":case"var":Lu(vt,ge.end,_n.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":zs(_n.Interface_name_cannot_be_0,_n.Interface_must_be_given_a_name,19);return;case"is":Lu(vt,r.getTokenStart(),_n.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":zs(_n.Namespace_name_cannot_be_0,_n.Namespace_must_be_given_a_name,19);return;case"type":zs(_n.Type_alias_name_cannot_be_0,_n.Type_alias_must_be_given_a_name,64);return}let nr=Xpe(Ke,Ci,wg)??Yf(Ke);if(nr){Lu(vt,ge.end,_n.Unknown_keyword_or_identifier_Did_you_mean_0,nr);return}qe()!==0&&Lu(vt,ge.end,_n.Unexpected_keyword_or_identifier)}function zs(ge,Ke,vt){qe()===vt?Ho(Ke):Ho(ge,r.getTokenValue())}function Yf(ge){for(let Ke of Ci)if(ge.length>Ke.length+2&&hDe(ge,Ke))return`${Ke} ${ge.slice(Ke.length)}`}function AT(ge,Ke,vt){if(qe()===60&&!r.hasPrecedingLineBreak()){Ho(_n.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(qe()===21){Ho(_n.Cannot_start_a_function_call_in_a_type_annotation),bi();return}if(Ke&&!Ng()){vt?Ho(_n._0_expected,Bm(27)):Ho(_n.Expected_for_property_initializer);return}if(!F1()){if(vt){Ho(_n._0_expected,Bm(27));return}Ba(ge)}}function Sx(ge){return qe()===ge?(tu(),!0):(Pi.assert(GXe(ge)),Ho(_n._0_expected,Bm(ge)),!1)}function vl(ge,Ke,vt,nr){if(qe()===Ke){bi();return}let Rr=Ho(_n._0_expected,Bm(Ke));vt&&Rr&&oDe(Rr,HY(an,li,nr,1,_n.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Bm(ge),Bm(Ke)))}function Wl(ge){return qe()===ge?(bi(),!0):!1}function em(ge){if(qe()===ge)return pd()}function lb(ge){if(qe()===ge)return d$()}function Ts(ge,Ke,vt){return em(ge)||fy(ge,!1,Ke||_n._0_expected,vt||Bm(ge))}function Ef(ge){return lb(ge)||(Pi.assert(GXe(ge)),fy(ge,!1,_n._0_expected,Bm(ge)))}function pd(){let ge=Jn(),Ke=qe();return bi(),Br(Je(Ke),ge)}function d$(){let ge=Jn(),Ke=qe();return tu(),Br(Je(Ke),ge)}function Ng(){return qe()===27?!0:qe()===20||qe()===1||r.hasPrecedingLineBreak()}function F1(){return Ng()?(qe()===27&&bi(),!0):!1}function qm(){return F1()||Kn(27)}function cg(ge,Ke,vt,nr){let Rr=V(ge,nr);return gB(Rr,Ke,vt??r.getTokenFullStart()),Rr}function Br(ge,Ke,vt){return gB(ge,Ke,vt??r.getTokenFullStart()),mc&&(ge.flags|=mc),Rh&&(Rh=!1,ge.flags|=262144),ge}function fy(ge,Ke,vt,...nr){Ke?Q0(r.getTokenFullStart(),0,vt,...nr):vt&&Ho(vt,...nr);let Rr=Jn(),kn=ge===80?X("",void 0):Yjt(ge)?L.createTemplateLiteralLikeNode(ge,"","",void 0):ge===9?j("",void 0):ge===11?ie("",void 0):ge===283?L.createMissingDeclaration():Je(ge);return Br(kn,Rr)}function Q2(ge){let Ke=uc.get(ge);return Ke===void 0&&uc.set(ge,Ke=ge),Ke}function bx(ge,Ke,vt){if(ge){Pt++;let Da=r.hasPrecedingJSDocLeadingAsterisks()?r.getTokenStart():Jn(),jo=qe(),Ao=Q2(r.getTokenValue()),Ha=r.hasExtendedUnicodeEscape();return yl(),Br(X(Ao,jo,Ha),Da)}if(qe()===81)return Ho(vt||_n.Private_identifiers_are_not_allowed_outside_class_bodies),bx(!0);if(qe()===0&&r.tryScan(()=>r.reScanInvalidIdentifier()===80))return bx(!0);Pt++;let nr=qe()===1,Rr=r.isReservedWord(),kn=r.getTokenText(),Xn=Rr?_n.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:_n.Identifier_expected;return fy(80,nr,Ke||Xn,kn)}function JD(ge){return bx(Ll(),void 0,ge)}function Sm(ge,Ke){return bx(Ni(),ge,Ke)}function Su(ge){return bx(cy(qe()),ge)}function ub(){return(r.hasUnicodeEscape()||r.hasExtendedUnicodeEscape())&&Ho(_n.Unicode_escape_sequence_cannot_appear_here),bx(cy(qe()))}function VD(){return cy(qe())||qe()===11||qe()===9||qe()===10}function Q8(){return cy(qe())||qe()===11}function k9(ge){if(qe()===11||qe()===9||qe()===10){let Ke=PT();return Ke.text=Q2(Ke.text),Ke}return ge&&qe()===23?f$():qe()===81?Rk():Su()}function Fk(){return k9(!0)}function f$(){let ge=Jn();Kn(23);let Ke=or(Vm);return Kn(24),Br(L.createComputedPropertyName(Ke),ge)}function Rk(){let ge=Jn(),Ke=Re(Q2(r.getTokenValue()));return bi(),Br(Ke,ge)}function WD(ge){return qe()===ge&&Zn(xx)}function cS(){return bi(),r.hasPrecedingLineBreak()?!1:wT()}function xx(){switch(qe()){case 87:return bi()===94;case 95:return bi(),qe()===90?Qi(IT):qe()===156?Qi(au):Z8();case 90:return IT();case 126:return bi(),wT();case 139:case 153:return bi(),C9();default:return cS()}}function Z8(){return qe()===60||qe()!==42&&qe()!==130&&qe()!==19&&wT()}function au(){return bi(),Z8()}function Lk(){return W5(qe())&&Zn(xx)}function wT(){return qe()===23||qe()===19||qe()===42||qe()===26||VD()}function C9(){return qe()===23||VD()}function IT(){return bi(),qe()===86||qe()===100||qe()===120||qe()===60||qe()===128&&Qi(Z_)||qe()===134&&Qi(iE)}function R1(ge,Ke){if(jf(ge))return!0;switch(ge){case 0:case 1:case 3:return!(qe()===27&&Ke)&&za();case 2:return qe()===84||qe()===90;case 4:return Qi(T$);case 5:return Qi(GW)||qe()===27&&!Ke;case 6:return qe()===23||VD();case 12:switch(qe()){case 23:case 42:case 26:case 25:return!0;default:return VD()}case 18:return VD();case 9:return qe()===23||qe()===26||VD();case 24:return Q8();case 7:return qe()===19?Qi(m$):Ke?Ni()&&!X8():hO()&&!X8();case 8:return FT();case 10:return qe()===28||qe()===26||FT();case 19:return qe()===103||qe()===87||Ni();case 15:switch(qe()){case 28:case 25:return!0}case 11:return qe()===26||Y2();case 16:return db(!1);case 17:return db(!0);case 20:case 21:return qe()===28||ZD();case 22:return aE();case 23:return qe()===161&&Qi($$)?!1:qe()===11?!0:cy(qe());case 13:return cy(qe())||qe()===19;case 14:return!0;case 25:return!0;case 26:return Pi.fail("ParsingContext.Count used as a context");default:Pi.assertNever(ge,"Non-exhaustive case in 'isListElement'.")}}function m$(){if(Pi.assert(qe()===19),bi()===20){let ge=bi();return ge===28||ge===19||ge===96||ge===119}return!0}function pb(){return bi(),Ni()}function dte(){return bi(),cy(qe())}function _d(){return bi(),Vin(qe())}function X8(){return qe()===119||qe()===96?Qi(D9):!1}function D9(){return bi(),Y2()}function GD(){return bi(),ZD()}function Ca(ge){if(qe()===1)return!0;switch(ge){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return qe()===20;case 3:return qe()===20||qe()===84||qe()===90;case 7:return qe()===19||qe()===96||qe()===119;case 8:return Mk();case 19:return qe()===32||qe()===21||qe()===19||qe()===96||qe()===119;case 11:return qe()===22||qe()===27;case 15:case 21:case 10:return qe()===24;case 17:case 16:case 18:return qe()===22||qe()===24;case 20:return qe()!==28;case 22:return qe()===19||qe()===20;case 13:return qe()===32||qe()===44;case 14:return qe()===30&&Qi(_c);default:return!1}}function Mk(){return!!(Ng()||pR(qe())||qe()===39)}function Y8(){Pi.assert(ou,"Missing parsing context");for(let ge=0;ge<26;ge++)if(ou&1<=0)}function g$(ge){return ge===6?_n.An_enum_member_name_must_be_followed_by_a_or:void 0}function jk(){let ge=cg([],Jn());return ge.isMissingList=!0,ge}function kW(ge){return!!ge.isMissingList}function HD(ge,Ke,vt,nr){if(Kn(vt)){let Rr=_b(ge,Ke);return Kn(nr),Rr}return jk()}function Bk(ge,Ke){let vt=Jn(),nr=ge?Su(Ke):Sm(Ke);for(;Wl(25)&&qe()!==30;)nr=Br(L.createQualifiedName(nr,CI(ge,!1,!0)),vt);return nr}function Iy(ge,Ke){return Br(L.createQualifiedName(ge,Ke),ge.pos)}function CI(ge,Ke,vt){if(r.hasPrecedingLineBreak()&&cy(qe())&&Qi(pS))return fy(80,!0,_n.Identifier_expected);if(qe()===81){let nr=Rk();return Ke?nr:fy(80,!0,_n.Identifier_expected)}return ge?vt?Su():ub():Sm()}function fte(ge){let Ke=Jn(),vt=[],nr;do nr=wW(ge),vt.push(nr);while(nr.literal.kind===17);return cg(vt,Ke)}function KD(ge){let Ke=Jn();return Br(L.createTemplateExpression(DI(ge),fte(ge)),Ke)}function CW(){let ge=Jn();return Br(L.createTemplateLiteralType(DI(!1),mte()),ge)}function mte(){let ge=Jn(),Ke=[],vt;do vt=DW(),Ke.push(vt);while(vt.literal.kind===17);return cg(Ke,ge)}function DW(){let ge=Jn();return Br(L.createTemplateLiteralTypeSpan(nf(),AW(!1)),ge)}function AW(ge){return qe()===20?(Lh(ge),IW()):Ts(18,_n._0_expected,Bm(20))}function wW(ge){let Ke=Jn();return Br(L.createTemplateSpan(or(Vm),AW(ge)),Ke)}function PT(){return bm(qe())}function DI(ge){!ge&&r.getTokenFlags()&26656&&Lh(!1);let Ke=bm(qe());return Pi.assert(Ke.kind===16,"Template head has wrong token kind"),Ke}function IW(){let ge=bm(qe());return Pi.assert(ge.kind===17||ge.kind===18,"Template fragment has wrong token kind"),ge}function hte(ge){let Ke=ge===15||ge===18,vt=r.getTokenText();return vt.substring(1,vt.length-(r.isUnterminated()?0:Ke?1:2))}function bm(ge){let Ke=Jn(),vt=Yjt(ge)?L.createTemplateLiteralLikeNode(ge,r.getTokenValue(),hte(ge),r.getTokenFlags()&7176):ge===9?j(r.getTokenValue(),r.getNumericLiteralFlags()):ge===11?ie(r.getTokenValue(),void 0,r.hasExtendedUnicodeEscape()):Jon(ge)?te(ge,r.getTokenValue()):Pi.fail();return r.hasExtendedUnicodeEscape()&&(vt.hasExtendedUnicodeEscape=!0),r.isUnterminated()&&(vt.isUnterminated=!0),bi(),Br(vt,Ke)}function lg(){return Bk(!0,_n.Type_expected)}function PW(){if(!r.hasPrecedingLineBreak()&&zm()===30)return HD(20,nf,30,32)}function N9(){let ge=Jn();return Br(L.createTypeReferenceNode(lg(),PW()),ge)}function y$(ge){switch(ge.kind){case 184:return wV(ge.typeName);case 185:case 186:{let{parameters:Ke,type:vt}=ge;return kW(Ke)||y$(vt)}case 197:return y$(ge.type);default:return!1}}function gte(ge){return bi(),Br(L.createTypePredicateNode(void 0,ge,nf()),ge.pos)}function v$(){let ge=Jn();return bi(),Br(L.createThisTypeNode(),ge)}function yte(){let ge=Jn();return bi(),Br(L.createJSDocAllType(),ge)}function NW(){let ge=Jn();return bi(),Br(L.createJSDocNonNullableType(d4(),!1),ge)}function vte(){let ge=Jn();return bi(),qe()===28||qe()===20||qe()===22||qe()===32||qe()===64||qe()===52?Br(L.createJSDocUnknownType(),ge):Br(L.createJSDocNullableType(nf(),!1),ge)}function O9(){let ge=Jn(),Ke=so();if(Zn(DR)){let vt=jl(36),nr=Z0(59,!1);return Bc(Br(L.createJSDocFunctionType(vt,nr),ge),Ke)}return Br(L.createTypeReferenceNode(Su(),void 0),ge)}function F9(){let ge=Jn(),Ke;return(qe()===110||qe()===105)&&(Ke=Su(),Kn(59)),Br(L.createParameterDeclaration(void 0,void 0,Ke,void 0,nO(),void 0),ge)}function nO(){r.setSkipJsDocLeadingAsterisks(!0);let ge=Jn();if(Wl(144)){let nr=L.createJSDocNamepathType(void 0);e:for(;;)switch(qe()){case 20:case 1:case 28:case 5:break e;default:tu()}return r.setSkipJsDocLeadingAsterisks(!1),Br(nr,ge)}let Ke=Wl(26),vt=NI();return r.setSkipJsDocLeadingAsterisks(!1),Ke&&(vt=Br(L.createJSDocVariadicType(vt),ge)),qe()===64?(bi(),Br(L.createJSDocOptionalType(vt),ge)):vt}function Ml(){let ge=Jn();Kn(114);let Ke=Bk(!0),vt=r.hasPrecedingLineBreak()?void 0:Ry();return Br(L.createTypeQueryNode(Ke,vt),ge)}function R9(){let ge=Jn(),Ke=fv(!1,!0),vt=Sm(),nr,Rr;Wl(96)&&(ZD()||!Y2()?nr=nf():Rr=gR());let kn=Wl(64)?nf():void 0,Xn=L.createTypeParameterDeclaration(Ke,vt,nr,kn);return Xn.expression=Rr,Br(Xn,ge)}function Py(){if(qe()===30)return HD(19,R9,30,32)}function db(ge){return qe()===26||FT()||W5(qe())||qe()===60||ZD(!ge)}function S$(ge){let Ke=Ex(_n.Private_identifiers_cannot_be_used_as_parameters);return han(Ke)===0&&!sx(ge)&&W5(qe())&&bi(),Ke}function iO(){return Ll()||qe()===23||qe()===19}function oO(ge){return L9(ge)}function QD(ge){return L9(ge,!1)}function L9(ge,Ke=!0){let vt=Jn(),nr=so(),Rr=ge?Yr(()=>fv(!0)):Sn(()=>fv(!0));if(qe()===110){let jo=L.createParameterDeclaration(Rr,void 0,bx(!0),void 0,X2(),void 0),Ao=PYe(Rr);return Ao&&aS(Ao,_n.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Bc(Br(jo,vt),nr)}let kn=zp;zp=!1;let Xn=em(26);if(!Ke&&!iO())return;let Da=Bc(Br(L.createParameterDeclaration(Rr,Xn,S$(Rr),em(58),X2(),eE()),vt),nr);return zp=kn,Da}function Z0(ge,Ke){if(AI(ge,Ke))return pi(NI)}function AI(ge,Ke){return ge===39?(Kn(ge),!0):Wl(59)?!0:Ke&&qe()===39?(Ho(_n._0_expected,Bm(59)),bi(),!0):!1}function $k(ge,Ke){let vt=pc(),nr=eu();Zc(!!(ge&1)),zd(!!(ge&2));let Rr=ge&32?_b(17,F9):_b(16,()=>Ke?oO(nr):QD(nr));return Zc(vt),zd(nr),Rr}function jl(ge){if(!Kn(21))return jk();let Ke=$k(ge,!0);return Kn(22),Ke}function Jm(){Wl(28)||qm()}function b$(ge){let Ke=Jn(),vt=so();ge===181&&Kn(105);let nr=Py(),Rr=jl(4),kn=Z0(59,!0);Jm();let Xn=ge===180?L.createCallSignature(nr,Rr,kn):L.createConstructSignature(nr,Rr,kn);return Bc(Br(Xn,Ke),vt)}function fb(){return qe()===23&&Qi(M9)}function M9(){if(bi(),qe()===26||qe()===24)return!0;if(W5(qe())){if(bi(),Ni())return!0}else if(Ni())bi();else return!1;return qe()===59||qe()===28?!0:qe()!==58?!1:(bi(),qe()===59||qe()===28||qe()===24)}function j9(ge,Ke,vt){let nr=HD(16,()=>oO(!1),23,24),Rr=X2();Jm();let kn=L.createIndexSignature(vt,nr,Rr);return Bc(Br(kn,ge),Ke)}function x$(ge,Ke,vt){let nr=Fk(),Rr=em(58),kn;if(qe()===21||qe()===30){let Xn=Py(),Da=jl(4),jo=Z0(59,!0);kn=L.createMethodSignature(vt,nr,Rr,Xn,Da,jo)}else{let Xn=X2();kn=L.createPropertySignature(vt,nr,Rr,Xn),qe()===64&&(kn.initializer=eE())}return Jm(),Bc(Br(kn,ge),Ke)}function T$(){if(qe()===21||qe()===30||qe()===139||qe()===153)return!0;let ge=!1;for(;W5(qe());)ge=!0,bi();return qe()===23?!0:(VD()&&(ge=!0,bi()),ge?qe()===21||qe()===30||qe()===58||qe()===59||qe()===28||Ng():!1)}function wI(){if(qe()===21||qe()===30)return b$(180);if(qe()===105&&Qi(aO))return b$(181);let ge=Jn(),Ke=so(),vt=fv(!1);return WD(139)?E4(ge,Ke,vt,178,4):WD(153)?E4(ge,Ke,vt,179,4):fb()?j9(ge,Ke,vt):x$(ge,Ke,vt)}function aO(){return bi(),qe()===21||qe()===30}function B9(){return bi()===25}function hi(){switch(bi()){case 21:case 30:case 25:return!0}return!1}function II(){let ge=Jn();return Br(L.createTypeLiteralNode($9()),ge)}function $9(){let ge;return Kn(19)?(ge=L1(4,wI),Kn(20)):ge=jk(),ge}function U9(){return bi(),qe()===40||qe()===41?bi()===148:(qe()===148&&bi(),qe()===23&&pb()&&bi()===103)}function z9(){let ge=Jn(),Ke=Su();Kn(103);let vt=nf();return Br(L.createTypeParameterDeclaration(void 0,Ke,vt,void 0),ge)}function sO(){let ge=Jn();Kn(19);let Ke;(qe()===148||qe()===40||qe()===41)&&(Ke=pd(),Ke.kind!==148&&Kn(148)),Kn(23);let vt=z9(),nr=Wl(130)?nf():void 0;Kn(24);let Rr;(qe()===58||qe()===40||qe()===41)&&(Rr=pd(),Rr.kind!==58&&Kn(58));let kn=X2();qm();let Xn=L1(4,wI);return Kn(20),Br(L.createMappedTypeNode(Ke,vt,nr,Rr,kn,Xn),ge)}function cO(){let ge=Jn();if(Wl(26))return Br(L.createRestTypeNode(nf()),ge);let Ke=nf();if(qcn(Ke)&&Ke.pos===Ke.type.pos){let vt=L.createOptionalTypeNode(Ke.type);return z2(vt,Ke),vt.flags=Ke.flags,vt}return Ke}function lO(){return bi()===59||qe()===58&&bi()===59}function q9(){return qe()===26?cy(bi())&&lO():cy(qe())&&lO()}function J9(){if(Qi(q9)){let ge=Jn(),Ke=so(),vt=em(26),nr=Su(),Rr=em(58);Kn(59);let kn=cO(),Xn=L.createNamedTupleMember(vt,nr,Rr,kn);return Bc(Br(Xn,ge),Ke)}return cO()}function V9(){let ge=Jn();return Br(L.createTupleTypeNode(HD(21,J9,23,24)),ge)}function W9(){let ge=Jn();Kn(21);let Ke=nf();return Kn(22),Br(L.createParenthesizedType(Ke),ge)}function E$(){let ge;if(qe()===128){let Ke=Jn();bi();let vt=Br(Je(128),Ke);ge=cg([vt],Ke)}return ge}function PI(){let ge=Jn(),Ke=so(),vt=E$(),nr=Wl(105);Pi.assert(!vt||nr,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let Rr=Py(),kn=jl(4),Xn=Z0(39,!1),Da=nr?L.createConstructorTypeNode(vt,Rr,kn,Xn):L.createFunctionTypeNode(Rr,kn,Xn);return Bc(Br(Da,ge),Ke)}function G9(){let ge=pd();return qe()===25?void 0:ge}function Uk(ge){let Ke=Jn();ge&&bi();let vt=qe()===112||qe()===97||qe()===106?pd():bm(qe());return ge&&(vt=Br(L.createPrefixUnaryExpression(41,vt),Ke)),Br(L.createLiteralTypeNode(vt),Ke)}function H9(){return bi(),qe()===102}function uO(){Xr|=4194304;let ge=Jn(),Ke=Wl(114);Kn(102),Kn(21);let vt=nf(),nr;if(Wl(28)){let Xn=r.getTokenStart();Kn(19);let Da=qe();if(Da===118||Da===132?bi():Ho(_n._0_expected,Bm(118)),Kn(59),nr=IR(Da,!0),Wl(28),!Kn(20)){let jo=oee(Na);jo&&jo.code===_n._0_expected.code&&oDe(jo,HY(an,li,Xn,1,_n.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}Kn(22);let Rr=Wl(25)?lg():void 0,kn=PW();return Br(L.createImportTypeNode(vt,nr,Rr,kn,Ke),ge)}function K9(){return bi(),qe()===9||qe()===10}function d4(){switch(qe()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Zn(G9)||N9();case 67:r.reScanAsteriskEqualsToken();case 42:return yte();case 61:r.reScanQuestionToken();case 58:return vte();case 100:return O9();case 54:return NW();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return Uk();case 41:return Qi(K9)?Uk(!0):N9();case 116:return pd();case 110:{let ge=v$();return qe()===142&&!r.hasPrecedingLineBreak()?gte(ge):ge}case 114:return Qi(H9)?uO():Ml();case 19:return Qi(U9)?sO():II();case 23:return V9();case 21:return W9();case 102:return uO();case 131:return Qi(pS)?rR():N9();case 16:return CW();default:return N9()}}function ZD(ge){switch(qe()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!ge;case 41:return!ge&&Qi(K9);case 21:return!ge&&Qi(Q9);default:return Ni()}}function Q9(){return bi(),qe()===22||db(!1)||ZD()}function Z9(){let ge=Jn(),Ke=d4();for(;!r.hasPrecedingLineBreak();)switch(qe()){case 54:bi(),Ke=Br(L.createJSDocNonNullableType(Ke,!0),ge);break;case 58:if(Qi(GD))return Ke;bi(),Ke=Br(L.createJSDocNullableType(Ke,!0),ge);break;case 23:if(Kn(23),ZD()){let vt=nf();Kn(24),Ke=Br(L.createIndexedAccessTypeNode(Ke,vt),ge)}else Kn(24),Ke=Br(L.createArrayTypeNode(Ke),ge);break;default:return Ke}return Ke}function X9(ge){let Ke=Jn();return Kn(ge),Br(L.createTypeOperatorNode(ge,eR()),Ke)}function k$(){if(Wl(96)){let ge=ia(nf);if(Yl()||qe()!==58)return ge}}function Y9(){let ge=Jn(),Ke=Sm(),vt=Zn(k$),nr=L.createTypeParameterDeclaration(void 0,Ke,vt);return Br(nr,ge)}function C$(){let ge=Jn();return Kn(140),Br(L.createInferTypeNode(Y9()),ge)}function eR(){let ge=qe();switch(ge){case 143:case 158:case 148:return X9(ge);case 140:return C$()}return pi(Z9)}function f4(ge){if(dO()){let Ke=PI(),vt;return uUt(Ke)?vt=ge?_n.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:_n.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:vt=ge?_n.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:_n.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,aS(Ke,vt),Ke}}function tR(ge,Ke,vt){let nr=Jn(),Rr=ge===52,kn=Wl(ge),Xn=kn&&f4(Rr)||Ke();if(qe()===ge||kn){let Da=[Xn];for(;Wl(ge);)Da.push(f4(Rr)||Ke());Xn=Br(vt(cg(Da,nr)),nr)}return Xn}function pO(){return tR(51,eR,L.createIntersectionTypeNode)}function D$(){return tR(52,pO,L.createUnionTypeNode)}function _O(){return bi(),qe()===105}function dO(){return qe()===30||qe()===21&&Qi(fO)?!0:qe()===105||qe()===128&&Qi(_O)}function A$(){if(W5(qe())&&fv(!1),Ni()||qe()===110)return bi(),!0;if(qe()===23||qe()===19){let ge=Na.length;return Ex(),ge===Na.length}return!1}function fO(){return bi(),!!(qe()===22||qe()===26||A$()&&(qe()===59||qe()===28||qe()===58||qe()===64||qe()===22&&(bi(),qe()===39)))}function NI(){let ge=Jn(),Ke=Ni()&&Zn(mO),vt=nf();return Ke?Br(L.createTypePredicateNode(void 0,Ke,vt),ge):vt}function mO(){let ge=Sm();if(qe()===142&&!r.hasPrecedingLineBreak())return bi(),ge}function rR(){let ge=Jn(),Ke=Ts(131),vt=qe()===110?v$():Sm(),nr=Wl(142)?nf():void 0;return Br(L.createTypePredicateNode(Ke,vt,nr),ge)}function nf(){if(mc&81920)return pu(81920,nf);if(dO())return PI();let ge=Jn(),Ke=D$();if(!Yl()&&!r.hasPrecedingLineBreak()&&Wl(96)){let vt=ia(nf);Kn(58);let nr=pi(nf);Kn(59);let Rr=pi(nf);return Br(L.createConditionalTypeNode(Ke,vt,nr,Rr),ge)}return Ke}function X2(){return Wl(59)?nf():void 0}function hO(){switch(qe()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Qi(hi);default:return Ni()}}function Y2(){if(hO())return!0;switch(qe()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return _R()?!0:Ni()}}function nR(){return qe()!==19&&qe()!==100&&qe()!==86&&qe()!==60&&Y2()}function Vm(){let ge=nl();ge&&Jl(!1);let Ke=Jn(),vt=Ny(!0),nr;for(;nr=em(28);)vt=yO(vt,nr,Ny(!0),Ke);return ge&&Jl(!0),vt}function eE(){return Wl(64)?Ny(!0):void 0}function Ny(ge){if(iR())return oR();let Ke=gO(ge)||cR(ge);if(Ke)return Ke;let vt=Jn(),nr=so(),Rr=OI(0);return Rr.kind===80&&qe()===39?aR(vt,Rr,ge,nr,void 0):cee(Rr)&&Y$t(Du())?yO(Rr,pd(),Ny(ge),vt):I$(Rr,vt,ge)}function iR(){return qe()===127?pc()?!0:Qi(Xi):!1}function w$(){return bi(),!r.hasPrecedingLineBreak()&&Ni()}function oR(){let ge=Jn();return bi(),!r.hasPrecedingLineBreak()&&(qe()===42||Y2())?Br(L.createYieldExpression(em(42),Ny(!0)),ge):Br(L.createYieldExpression(void 0,void 0),ge)}function aR(ge,Ke,vt,nr,Rr){Pi.assert(qe()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let kn=L.createParameterDeclaration(void 0,void 0,Ke,void 0,void 0,void 0);Br(kn,Ke.pos);let Xn=cg([kn],kn.pos,kn.end),Da=Ts(39),jo=tE(!!Rr,vt),Ao=L.createArrowFunction(Rr,void 0,Xn,void 0,Da,jo);return Bc(Br(Ao,ge),nr)}function gO(ge){let Ke=NT();if(Ke!==0)return Ke===1?uR(!0,!0):Zn(()=>sR(ge))}function NT(){return qe()===21||qe()===30||qe()===134?Qi(zk):qe()===39?1:0}function zk(){if(qe()===134&&(bi(),r.hasPrecedingLineBreak()||qe()!==21&&qe()!==30))return 0;let ge=qe(),Ke=bi();if(ge===21){if(Ke===22)switch(bi()){case 39:case 59:case 19:return 1;default:return 0}if(Ke===23||Ke===19)return 2;if(Ke===26)return 1;if(W5(Ke)&&Ke!==134&&Qi(pb))return bi()===130?0:1;if(!Ni()&&Ke!==110)return 0;switch(bi()){case 59:return 1;case 58:return bi(),qe()===59||qe()===28||qe()===64||qe()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return Pi.assert(ge===30),!Ni()&&qe()!==87?0:Wn===1?Qi(()=>{Wl(87);let vt=bi();if(vt===96)switch(bi()){case 64:case 32:case 44:return!1;default:return!0}else if(vt===28||vt===64)return!0;return!1})?1:0:2}function sR(ge){let Ke=r.getTokenStart();if(go?.has(Ke))return;let vt=uR(!1,ge);return vt||(go||(go=new Set)).add(Ke),vt}function cR(ge){if(qe()===134&&Qi(lR)===1){let Ke=Jn(),vt=so(),nr=QW(),Rr=OI(0);return aR(Ke,Rr,ge,vt,nr)}}function lR(){if(qe()===134){if(bi(),r.hasPrecedingLineBreak()||qe()===39)return 0;let ge=OI(0);if(!r.hasPrecedingLineBreak()&&ge.kind===80&&qe()===39)return 1}return 0}function uR(ge,Ke){let vt=Jn(),nr=so(),Rr=QW(),kn=sx(Rr,cDe)?2:0,Xn=Py(),Da;if(Kn(21)){if(ge)Da=$k(kn,ge);else{let _S=$k(kn,ge);if(!_S)return;Da=_S}if(!Kn(22)&&!ge)return}else{if(!ge)return;Da=jk()}let jo=qe()===59,Ao=Z0(59,!1);if(Ao&&!ge&&y$(Ao))return;let Ha=Ao;for(;Ha?.kind===197;)Ha=Ha.type;let su=Ha&&Jcn(Ha);if(!ge&&qe()!==39&&(su||qe()!==19))return;let Hl=qe(),dl=Ts(39),$1=Hl===39||Hl===19?tE(sx(Rr,cDe),Ke):Sm();if(!Ke&&jo&&qe()!==59)return;let Fg=L.createArrowFunction(Rr,Xn,Da,Ao,dl,$1);return Bc(Br(Fg,vt),nr)}function tE(ge,Ke){if(qe()===19)return jI(ge?2:0);if(qe()!==27&&qe()!==100&&qe()!==86&&za()&&!nR())return jI(16|(ge?2:0));let vt=pc();Zc(!1);let nr=zp;zp=!1;let Rr=ge?Yr(()=>Ny(Ke)):Sn(()=>Ny(Ke));return zp=nr,Zc(vt),Rr}function I$(ge,Ke,vt){let nr=em(58);if(!nr)return ge;let Rr;return Br(L.createConditionalExpression(ge,nr,pu(i,()=>Ny(!1)),Rr=Ts(59),dYe(Rr)?Ny(vt):fy(80,!1,_n._0_expected,Bm(59))),Ke)}function OI(ge){let Ke=Jn(),vt=gR();return m4(ge,vt,Ke)}function pR(ge){return ge===103||ge===165}function m4(ge,Ke,vt){for(;;){Du();let nr=HXe(qe());if(!(qe()===43?nr>=ge:nr>ge)||qe()===103&&rs())break;if(qe()===130||qe()===152){if(r.hasPrecedingLineBreak())break;{let Rr=qe();bi(),Ke=Rr===152?dR(Ke,nf()):fR(Ke,nf())}}else Ke=yO(Ke,pd(),OI(nr),vt)}return Ke}function _R(){return rs()&&qe()===103?!1:HXe(qe())>0}function dR(ge,Ke){return Br(L.createSatisfiesExpression(ge,Ke),ge.pos)}function yO(ge,Ke,vt,nr){return Br(L.createBinaryExpression(ge,Ke,vt),nr)}function fR(ge,Ke){return Br(L.createAsExpression(ge,Ke),ge.pos)}function mR(){let ge=Jn();return Br(L.createPrefixUnaryExpression(qe(),_l(rE)),ge)}function vO(){let ge=Jn();return Br(L.createDeleteExpression(_l(rE)),ge)}function hR(){let ge=Jn();return Br(L.createTypeOfExpression(_l(rE)),ge)}function SO(){let ge=Jn();return Br(L.createVoidExpression(_l(rE)),ge)}function P$(){return qe()===135?eu()?!0:Qi(Xi):!1}function C_(){let ge=Jn();return Br(L.createAwaitExpression(_l(rE)),ge)}function gR(){if(N$()){let vt=Jn(),nr=h4();return qe()===43?m4(HXe(qe()),nr,vt):nr}let ge=qe(),Ke=rE();if(qe()===43){let vt=b8(li,Ke.pos),{end:nr}=Ke;Ke.kind===217?Lu(vt,nr,_n.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(Pi.assert(GXe(ge)),Lu(vt,nr,_n.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,Bm(ge)))}return Ke}function rE(){switch(qe()){case 40:case 41:case 55:case 54:return mR();case 91:return vO();case 114:return hR();case 116:return SO();case 30:return Wn===1?RI(!0,void 0,void 0,!0):LW();case 135:if(P$())return C_();default:return h4()}}function N$(){switch(qe()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(Wn!==1)return!1;default:return!0}}function h4(){if(qe()===46||qe()===47){let Ke=Jn();return Br(L.createPrefixUnaryExpression(qe(),_l(FI)),Ke)}else if(Wn===1&&qe()===30&&Qi(_d))return RI(!0);let ge=FI();if(Pi.assert(cee(ge)),(qe()===46||qe()===47)&&!r.hasPrecedingLineBreak()){let Ke=qe();return bi(),Br(L.createPostfixUnaryExpression(ge,Ke),ge.pos)}return ge}function FI(){let ge=Jn(),Ke;return qe()===102?Qi(aO)?(Xr|=4194304,Ke=pd()):Qi(B9)?(bi(),bi(),Ke=Br(L.createMetaProperty(102,Su()),ge),Ke.name.escapedText==="defer"?(qe()===21||qe()===30)&&(Xr|=4194304):Xr|=8388608):Ke=g4():Ke=qe()===108?y4():g4(),TO(ge,Ke)}function g4(){let ge=Jn(),Ke=SR();return Oy(ge,Ke,!0)}function y4(){let ge=Jn(),Ke=pd();if(qe()===30){let vt=Jn(),nr=Zn(vR);nr!==void 0&&(Lu(vt,Jn(),_n.super_may_not_use_type_arguments),lS()||(Ke=L.createExpressionWithTypeArguments(Ke,nr)))}return qe()===21||qe()===25||qe()===23?Ke:(Ts(25,_n.super_must_be_followed_by_an_argument_list_or_member_access),Br(xt(Ke,CI(!0,!0,!0)),ge))}function RI(ge,Ke,vt,nr=!1){let Rr=Jn(),kn=Wm(ge),Xn;if(kn.kind===287){let Da=v4(kn),jo,Ao=Da[Da.length-1];if(Ao?.kind===285&&!pB(Ao.openingElement.tagName,Ao.closingElement.tagName)&&pB(kn.tagName,Ao.closingElement.tagName)){let Ha=Ao.children.end,su=Br(L.createJsxElement(Ao.openingElement,Ao.children,Br(L.createJsxClosingElement(Br(X(""),Ha,Ha)),Ha,Ha)),Ao.openingElement.pos,Ha);Da=cg([...Da.slice(0,Da.length-1),su],Da.pos,Ha),jo=Ao.closingElement}else jo=RW(kn,ge),pB(kn.tagName,jo.tagName)||(vt&&mBt(vt)&&pB(jo.tagName,vt.tagName)?aS(kn.tagName,_n.JSX_element_0_has_no_corresponding_closing_tag,t_e(li,kn.tagName)):aS(jo.tagName,_n.Expected_corresponding_JSX_closing_tag_for_0,t_e(li,kn.tagName)));Xn=Br(L.createJsxElement(kn,Da,jo),Rr)}else kn.kind===290?Xn=Br(L.createJsxFragment(kn,v4(kn),bte(ge)),Rr):(Pi.assert(kn.kind===286),Xn=kn);if(!nr&&ge&&qe()===30){let Da=typeof Ke>"u"?Xn.pos:Ke,jo=Zn(()=>RI(!0,Da));if(jo){let Ao=fy(28,!1);return uBt(Ao,jo.pos,0),Lu(b8(li,Da),jo.end,_n.JSX_expressions_must_have_one_parent_element),Br(L.createBinaryExpression(Xn,Ao,jo),Rr)}}return Xn}function qk(){let ge=Jn(),Ke=L.createJsxText(r.getTokenValue(),Sc===13);return Sc=r.scanJsxToken(),Br(Ke,ge)}function OW(ge,Ke){switch(Ke){case 1:if(jcn(ge))aS(ge,_n.JSX_fragment_has_no_corresponding_closing_tag);else{let vt=ge.tagName,nr=Math.min(b8(li,vt.pos),vt.end);Lu(nr,vt.end,_n.JSX_element_0_has_no_corresponding_closing_tag,t_e(li,ge.tagName))}return;case 31:case 7:return;case 12:case 13:return qk();case 19:return bO(!1);case 30:return RI(!1,void 0,ge);default:return Pi.assertNever(Ke)}}function v4(ge){let Ke=[],vt=Jn(),nr=ou;for(ou|=16384;;){let Rr=OW(ge,Sc=r.reScanJsxToken());if(!Rr||(Ke.push(Rr),mBt(ge)&&Rr?.kind===285&&!pB(Rr.openingElement.tagName,Rr.closingElement.tagName)&&pB(ge.tagName,Rr.closingElement.tagName)))break}return ou=nr,cg(Ke,vt)}function yR(){let ge=Jn();return Br(L.createJsxAttributes(L1(13,xO)),ge)}function Wm(ge){let Ke=Jn();if(Kn(30),qe()===32)return K2(),Br(L.createJsxOpeningFragment(),Ke);let vt=OT(),nr=(mc&524288)===0?Ry():void 0,Rr=yR(),kn;return qe()===32?(K2(),kn=L.createJsxOpeningElement(vt,nr,Rr)):(Kn(44),Kn(32,void 0,!1)&&(ge?bi():K2()),kn=L.createJsxSelfClosingElement(vt,nr,Rr)),Br(kn,Ke)}function OT(){let ge=Jn(),Ke=O$();if(kUt(Ke))return Ke;let vt=Ke;for(;Wl(25);)vt=Br(xt(vt,CI(!0,!1,!1)),ge);return vt}function O$(){let ge=Jn();d_();let Ke=qe()===110,vt=ub();return Wl(59)?(d_(),Br(L.createJsxNamespacedName(vt,ub()),ge)):Ke?Br(L.createToken(110),ge):vt}function bO(ge){let Ke=Jn();if(!Kn(19))return;let vt,nr;return qe()!==20&&(ge||(vt=em(26)),nr=Vm()),ge?Kn(20):Kn(20,void 0,!1)&&K2(),Br(L.createJsxExpression(vt,nr),Ke)}function xO(){if(qe()===19)return FW();let ge=Jn();return Br(L.createJsxAttribute(Ste(),LI()),ge)}function LI(){if(qe()===64){if(K8()===11)return PT();if(qe()===19)return bO(!0);if(qe()===30)return RI(!0);Ho(_n.or_JSX_element_expected)}}function Ste(){let ge=Jn();d_();let Ke=ub();return Wl(59)?(d_(),Br(L.createJsxNamespacedName(Ke,ub()),ge)):Ke}function FW(){let ge=Jn();Kn(19),Kn(26);let Ke=Vm();return Kn(20),Br(L.createJsxSpreadAttribute(Ke),ge)}function RW(ge,Ke){let vt=Jn();Kn(31);let nr=OT();return Kn(32,void 0,!1)&&(Ke||!pB(ge.tagName,nr)?bi():K2()),Br(L.createJsxClosingElement(nr),vt)}function bte(ge){let Ke=Jn();return Kn(31),Kn(32,_n.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(ge?bi():K2()),Br(L.createJsxJsxClosingFragment(),Ke)}function LW(){Pi.assert(Wn!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let ge=Jn();Kn(30);let Ke=nf();Kn(32);let vt=rE();return Br(L.createTypeAssertion(Ke,vt),ge)}function MW(){return bi(),cy(qe())||qe()===23||lS()}function jW(){return qe()===29&&Qi(MW)}function S4(ge){if(ge.flags&64)return!0;if(_De(ge)){let Ke=ge.expression;for(;_De(Ke)&&!(Ke.flags&64);)Ke=Ke.expression;if(Ke.flags&64){for(;_De(ge);)ge.flags|=64,ge=ge.expression;return!0}}return!1}function b4(ge,Ke,vt){let nr=CI(!0,!0,!0),Rr=vt||S4(Ke),kn=Rr?tr(Ke,vt,nr):xt(Ke,nr);if(Rr&&NV(kn.name)&&aS(kn.name,_n.An_optional_chain_cannot_contain_private_identifiers),Icn(Ke)&&Ke.typeArguments){let Xn=Ke.typeArguments.pos-1,Da=b8(li,Ke.typeArguments.end)+1;Lu(Xn,Da,_n.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Br(kn,ge)}function BW(ge,Ke,vt){let nr;if(qe()===24)nr=fy(80,!0,_n.An_element_access_expression_should_take_an_argument);else{let kn=or(Vm);ADe(kn)&&(kn.text=Q2(kn.text)),nr=kn}Kn(24);let Rr=vt||S4(Ke)?wt(Ke,vt,nr):ht(Ke,nr);return Br(Rr,ge)}function Oy(ge,Ke,vt){for(;;){let nr,Rr=!1;if(vt&&jW()?(nr=Ts(29),Rr=cy(qe())):Rr=Wl(25),Rr){Ke=b4(ge,Ke,nr);continue}if((nr||!nl())&&Wl(23)){Ke=BW(ge,Ke,nr);continue}if(lS()){Ke=!nr&&Ke.kind===234?MI(ge,Ke.expression,nr,Ke.typeArguments):MI(ge,Ke,nr,void 0);continue}if(!nr){if(qe()===54&&!r.hasPrecedingLineBreak()){bi(),Ke=Br(L.createNonNullExpression(Ke),ge);continue}let kn=Zn(vR);if(kn){Ke=Br(L.createExpressionWithTypeArguments(Ke,kn),ge);continue}}return Ke}}function lS(){return qe()===15||qe()===16}function MI(ge,Ke,vt,nr){let Rr=L.createTaggedTemplateExpression(Ke,nr,qe()===15?(Lh(!0),PT()):KD(!0));return(vt||Ke.flags&64)&&(Rr.flags|=64),Rr.questionDotToken=vt,Br(Rr,ge)}function TO(ge,Ke){for(;;){Ke=Oy(ge,Ke,!0);let vt,nr=em(29);if(nr&&(vt=Zn(vR),lS())){Ke=MI(ge,Ke,nr,vt);continue}if(vt||qe()===21){!nr&&Ke.kind===234&&(vt=Ke.typeArguments,Ke=Ke.expression);let Rr=$W(),kn=nr||S4(Ke)?hr(Ke,nr,vt,Rr):Ut(Ke,vt,Rr);Ke=Br(kn,ge);continue}if(nr){let Rr=fy(80,!1,_n.Identifier_expected);Ke=Br(tr(Ke,nr,Rr),ge)}break}return Ke}function $W(){Kn(21);let ge=_b(11,R$);return Kn(22),ge}function vR(){if((mc&524288)!==0||zm()!==30)return;bi();let ge=_b(20,nf);if(Du()===32)return bi(),ge&&UW()?ge:void 0}function UW(){switch(qe()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return r.hasPrecedingLineBreak()||_R()||!Y2()}function SR(){switch(qe()){case 15:r.getTokenFlags()&26656&&Lh(!1);case 9:case 10:case 11:return PT();case 110:case 108:case 106:case 112:case 97:return pd();case 21:return F$();case 23:return Gl();case 19:return xR();case 134:if(!Qi(iE))break;return L$();case 60:return Dte();case 86:return Zs();case 100:return L$();case 105:return TR();case 44:case 69:if(qp()===14)return PT();break;case 16:return KD(!1);case 81:return Rk()}return Sm(_n.Expression_expected)}function F$(){let ge=Jn(),Ke=so();Kn(21);let vt=or(Vm);return Kn(22),Bc(Br(un(vt),ge),Ke)}function bR(){let ge=Jn();Kn(26);let Ke=Ny(!0);return Br(L.createSpreadElement(Ke),ge)}function f_(){return qe()===26?bR():qe()===28?Br(L.createOmittedExpression(),Jn()):Ny(!0)}function R$(){return pu(i,f_)}function Gl(){let ge=Jn(),Ke=r.getTokenStart(),vt=Kn(23),nr=r.hasPrecedingLineBreak(),Rr=_b(15,f_);return vl(23,24,vt,Ke),Br(pt(Rr,nr),ge)}function x4(){let ge=Jn(),Ke=so();if(em(26)){let Ao=Ny(!0);return Bc(Br(L.createSpreadAssignment(Ao),ge),Ke)}let vt=fv(!0);if(WD(139))return E4(ge,Ke,vt,178,0);if(WD(153))return E4(ge,Ke,vt,179,0);let nr=em(42),Rr=Ni(),kn=Fk(),Xn=em(58),Da=em(54);if(nr||qe()===21||qe()===30)return z$(ge,Ke,vt,nr,kn,Xn,Da);let jo;if(Rr&&qe()!==59){let Ao=em(64),Ha=Ao?or(()=>Ny(!0)):void 0;jo=L.createShorthandPropertyAssignment(kn,Ha),jo.equalsToken=Ao}else{Kn(59);let Ao=or(()=>Ny(!0));jo=L.createPropertyAssignment(kn,Ao)}return jo.modifiers=vt,jo.questionToken=Xn,jo.exclamationToken=Da,Bc(Br(jo,ge),Ke)}function xR(){let ge=Jn(),Ke=r.getTokenStart(),vt=Kn(19),nr=r.hasPrecedingLineBreak(),Rr=_b(12,x4,!0);return vl(19,20,vt,Ke),Br($e(Rr,nr),ge)}function L$(){let ge=nl();Jl(!1);let Ke=Jn(),vt=so(),nr=fv(!1);Kn(100);let Rr=em(42),kn=Rr?1:0,Xn=sx(nr,cDe)?2:0,Da=kn&&Xn?to(XD):kn?To(XD):Xn?Yr(XD):XD(),jo=Py(),Ao=jl(kn|Xn),Ha=Z0(59,!1),su=jI(kn|Xn);Jl(ge);let Hl=L.createFunctionExpression(nr,Rr,Da,jo,Ao,Ha,su);return Bc(Br(Hl,Ke),vt)}function XD(){return Ll()?JD():void 0}function TR(){let ge=Jn();if(Kn(105),Wl(25)){let kn=Su();return Br(L.createMetaProperty(105,kn),ge)}let Ke=Jn(),vt=Oy(Ke,SR(),!1),nr;vt.kind===234&&(nr=vt.typeArguments,vt=vt.expression),qe()===29&&Ho(_n.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,t_e(li,vt));let Rr=qe()===21?$W():void 0;return Br(Hi(vt,nr,Rr),ge)}function qd(ge,Ke){let vt=Jn(),nr=so(),Rr=r.getTokenStart(),kn=Kn(19,Ke);if(kn||ge){let Xn=r.hasPrecedingLineBreak(),Da=L1(1,Og);vl(19,20,kn,Rr);let jo=Bc(Br(xo(Da,Xn),vt),nr);return qe()===64&&(Ho(_n.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),bi()),jo}else{let Xn=jk();return Bc(Br(xo(Xn,void 0),vt),nr)}}function jI(ge,Ke){let vt=pc();Zc(!!(ge&1));let nr=eu();zd(!!(ge&2));let Rr=zp;zp=!1;let kn=nl();kn&&Jl(!1);let Xn=qd(!!(ge&16),Ke);return kn&&Jl(!0),zp=Rr,Zc(vt),zd(nr),Xn}function YD(){let ge=Jn(),Ke=so();return Kn(27),Bc(Br(L.createEmptyStatement(),ge),Ke)}function ch(){let ge=Jn(),Ke=so();Kn(101);let vt=r.getTokenStart(),nr=Kn(21),Rr=or(Vm);vl(21,22,nr,vt);let kn=Og(),Xn=Wl(93)?Og():void 0;return Bc(Br(co(Rr,kn,Xn),ge),Ke)}function EO(){let ge=Jn(),Ke=so();Kn(92);let vt=Og();Kn(117);let nr=r.getTokenStart(),Rr=Kn(21),kn=or(Vm);return vl(21,22,Rr,nr),Wl(27),Bc(Br(L.createDoStatement(vt,kn),ge),Ke)}function eA(){let ge=Jn(),Ke=so();Kn(117);let vt=r.getTokenStart(),nr=Kn(21),Rr=or(Vm);vl(21,22,nr,vt);let kn=Og();return Bc(Br(Cs(Rr,kn),ge),Ke)}function Au(){let ge=Jn(),Ke=so();Kn(99);let vt=em(135);Kn(21);let nr;qe()!==27&&(qe()===115||qe()===121||qe()===87||qe()===160&&Qi(VW)||qe()===135&&Qi(r_)?nr=x(!0):nr=Gr(Vm));let Rr;if(vt?Kn(165):Wl(165)){let kn=or(()=>Ny(!0));Kn(22),Rr=ol(vt,nr,kn,Og())}else if(Wl(103)){let kn=or(Vm);Kn(22),Rr=L.createForInStatement(nr,kn,Og())}else{Kn(27);let kn=qe()!==27&&qe()!==22?or(Vm):void 0;Kn(27);let Xn=qe()!==22?or(Vm):void 0;Kn(22),Rr=Cr(nr,kn,Xn,Og())}return Bc(Br(Rr,ge),Ke)}function _p(ge){let Ke=Jn(),vt=so();Kn(ge===253?83:88);let nr=Ng()?void 0:Sm();qm();let Rr=ge===253?L.createBreakStatement(nr):L.createContinueStatement(nr);return Bc(Br(Rr,Ke),vt)}function uS(){let ge=Jn(),Ke=so();Kn(107);let vt=Ng()?void 0:or(Vm);return qm(),Bc(Br(L.createReturnStatement(vt),ge),Ke)}function zW(){let ge=Jn(),Ke=so();Kn(118);let vt=r.getTokenStart(),nr=Kn(21),Rr=or(Vm);vl(21,22,nr,vt);let kn=Tf(67108864,Og);return Bc(Br(L.createWithStatement(Rr,kn),ge),Ke)}function qW(){let ge=Jn(),Ke=so();Kn(84);let vt=or(Vm);Kn(59);let nr=L1(3,Og);return Bc(Br(L.createCaseClause(vt,nr),ge),Ke)}function kO(){let ge=Jn();Kn(90),Kn(59);let Ke=L1(3,Og);return Br(L.createDefaultClause(Ke),ge)}function Fy(){return qe()===84?qW():kO()}function mo(){let ge=Jn();Kn(19);let Ke=L1(2,Fy);return Kn(20),Br(L.createCaseBlock(Ke),ge)}function t_(){let ge=Jn(),Ke=so();Kn(109),Kn(21);let vt=or(Vm);Kn(22);let nr=mo();return Bc(Br(L.createSwitchStatement(vt,nr),ge),Ke)}function M$(){let ge=Jn(),Ke=so();Kn(111);let vt=r.hasPrecedingLineBreak()?void 0:or(Vm);return vt===void 0&&(Pt++,vt=Br(X(""),Jn())),F1()||Ba(vt),Bc(Br(L.createThrowStatement(vt),ge),Ke)}function xte(){let ge=Jn(),Ke=so();Kn(113);let vt=qd(!1),nr=qe()===85?nE():void 0,Rr;return(!nr||qe()===98)&&(Kn(98,_n.catch_or_finally_expected),Rr=qd(!1)),Bc(Br(L.createTryStatement(vt,nr,Rr),ge),Ke)}function nE(){let ge=Jn();Kn(85);let Ke;Wl(21)?(Ke=I(),Kn(22)):Ke=void 0;let vt=qd(!1);return Br(L.createCatchClause(Ke,vt),ge)}function Tte(){let ge=Jn(),Ke=so();return Kn(89),qm(),Bc(Br(L.createDebuggerStatement(),ge),Ke)}function Cd(){let ge=Jn(),Ke=so(),vt,nr=qe()===21,Rr=or(Vm);return Kd(Rr)&&Wl(59)?vt=L.createLabeledStatement(Rr,Og()):(F1()||Ba(Rr),vt=yr(Rr),nr&&(Ke=!1)),Bc(Br(vt,ge),Ke)}function pS(){return bi(),cy(qe())&&!r.hasPrecedingLineBreak()}function Z_(){return bi(),qe()===86&&!r.hasPrecedingLineBreak()}function iE(){return bi(),qe()===100&&!r.hasPrecedingLineBreak()}function Xi(){return bi(),(cy(qe())||qe()===9||qe()===10||qe()===11)&&!r.hasPrecedingLineBreak()}function mb(){for(;;)switch(qe()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return dv();case 135:return Tx();case 120:case 156:case 166:return w$();case 144:case 145:return ug();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let ge=qe();if(bi(),r.hasPrecedingLineBreak())return!1;if(ge===138&&qe()===156)return!0;continue;case 162:return bi(),qe()===19||qe()===80||qe()===95;case 102:return bi(),qe()===166||qe()===11||qe()===42||qe()===19||cy(qe());case 95:let Ke=bi();if(Ke===156&&(Ke=Qi(bi)),Ke===64||Ke===42||Ke===19||Ke===90||Ke===130||Ke===60)return!0;continue;case 126:bi();continue;default:return!1}}function Jk(){return Qi(mb)}function za(){switch(qe()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return Jk()||Qi(hi);case 87:case 95:return Jk();case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return Jk()||!Qi(pS);default:return Y2()}}function Qs(){return bi(),Ll()||qe()===19||qe()===23}function JW(){return Qi(Qs)}function VW(){return wl(!0)}function ER(){return bi(),qe()===64||qe()===27||qe()===59}function wl(ge){return bi(),ge&&qe()===165?Qi(ER):(Ll()||qe()===19)&&!r.hasPrecedingLineBreak()}function dv(){return Qi(wl)}function r_(ge){return bi()===160?wl(ge):!1}function Tx(){return Qi(r_)}function Og(){switch(qe()){case 27:return YD();case 19:return qd(!1);case 115:return $I(Jn(),so(),void 0);case 121:if(JW())return $I(Jn(),so(),void 0);break;case 135:if(Tx())return $I(Jn(),so(),void 0);break;case 160:if(dv())return $I(Jn(),so(),void 0);break;case 100:return UI(Jn(),so(),void 0);case 86:return kx(Jn(),so(),void 0);case 101:return ch();case 92:return EO();case 117:return eA();case 99:return Au();case 88:return _p(252);case 83:return _p(253);case 107:return uS();case 118:return zW();case 109:return t_();case 111:return M$();case 113:case 85:case 98:return xte();case 89:return Tte();case 60:return tA();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(Jk())return tA();break}return Cd()}function T4(ge){return ge.kind===138}function tA(){let ge=Jn(),Ke=so(),vt=fv(!0);if(sx(vt,T4)){let nr=j$(ge);if(nr)return nr;for(let Rr of vt)Rr.flags|=33554432;return Tf(33554432,()=>B$(ge,Ke,vt))}else return B$(ge,Ke,vt)}function j$(ge){return Tf(33554432,()=>{let Ke=jf(ou,ge);if(Ke)return _4(Ke)})}function B$(ge,Ke,vt){switch(qe()){case 115:case 121:case 87:case 160:case 135:return $I(ge,Ke,vt);case 100:return UI(ge,Ke,vt);case 86:return kx(ge,Ke,vt);case 120:return zI(ge,Ke,vt);case 156:return qs(ge,Ke,vt);case 94:return _0(ge,Ke,vt);case 162:case 144:case 145:return W$(ge,Ke,vt);case 102:return RT(ge,Ke,vt);case 95:switch(bi(),qe()){case 90:case 64:return rG(ge,Ke,vt);case 130:return AR(ge,Ke,vt);default:return tG(ge,Ke,vt)}default:if(vt){let nr=fy(283,!0,_n.Declaration_expected);return mYe(nr,ge),nr.modifiers=vt,nr}return}}function $$(){return bi()===11}function M1(){return bi(),qe()===161||qe()===64}function ug(){return bi(),!r.hasPrecedingLineBreak()&&(Ni()||qe()===11)}function rA(ge,Ke){if(qe()!==19){if(ge&4){Jm();return}if(Ng()){qm();return}}return jI(ge,Ke)}function WW(){let ge=Jn();if(qe()===28)return Br(L.createOmittedExpression(),ge);let Ke=em(26),vt=Ex(),nr=eE();return Br(L.createBindingElement(Ke,void 0,vt,nr),ge)}function lh(){let ge=Jn(),Ke=em(26),vt=Ll(),nr=Fk(),Rr;vt&&qe()!==59?(Rr=nr,nr=void 0):(Kn(59),Rr=Ex());let kn=eE();return Br(L.createBindingElement(Ke,nr,Rr,kn),ge)}function BI(){let ge=Jn();Kn(19);let Ke=or(()=>_b(9,lh));return Kn(20),Br(L.createObjectBindingPattern(Ke),ge)}function Vk(){let ge=Jn();Kn(23);let Ke=or(()=>_b(10,WW));return Kn(24),Br(L.createArrayBindingPattern(Ke),ge)}function FT(){return qe()===19||qe()===23||qe()===81||Ll()}function Ex(ge){return qe()===23?Vk():qe()===19?BI():JD(ge)}function CO(){return I(!0)}function I(ge){let Ke=Jn(),vt=so(),nr=Ex(_n.Private_identifiers_are_not_allowed_in_variable_declarations),Rr;ge&&nr.kind===80&&qe()===54&&!r.hasPrecedingLineBreak()&&(Rr=pd());let kn=X2(),Xn=pR(qe())?void 0:eE(),Da=Zo(nr,Rr,kn,Xn);return Bc(Br(Da,Ke),vt)}function x(ge){let Ke=Jn(),vt=0;switch(qe()){case 115:break;case 121:vt|=1;break;case 87:vt|=2;break;case 160:vt|=4;break;case 135:Pi.assert(Tx()),vt|=6,bi();break;default:Pi.fail()}bi();let nr;if(qe()===165&&Qi(Bf))nr=jk();else{let Rr=rs();En(ge),nr=_b(8,ge?I:CO),En(Rr)}return Br(Rc(nr,vt),Ke)}function Bf(){return pb()&&bi()===22}function $I(ge,Ke,vt){let nr=x(!1);qm();let Rr=Lo(vt,nr);return Bc(Br(Rr,ge),Ke)}function UI(ge,Ke,vt){let nr=eu(),Rr=ID(vt);Kn(100);let kn=em(42),Xn=Rr&2048?XD():JD(),Da=kn?1:0,jo=Rr&1024?2:0,Ao=Py();Rr&32&&zd(!0);let Ha=jl(Da|jo),su=Z0(59,!1),Hl=rA(Da|jo,_n.or_expected);zd(nr);let dl=L.createFunctionDeclaration(vt,kn,Xn,Ao,Ha,su,Hl);return Bc(Br(dl,ge),Ke)}function Ete(){if(qe()===137)return Kn(137);if(qe()===11&&Qi(bi)===21)return Zn(()=>{let ge=PT();return ge.text==="constructor"?ge:void 0})}function U$(ge,Ke,vt){return Zn(()=>{if(Ete()){let nr=Py(),Rr=jl(0),kn=Z0(59,!1),Xn=rA(0,_n.or_expected),Da=L.createConstructorDeclaration(vt,Rr,Xn);return Da.typeParameters=nr,Da.type=kn,Bc(Br(Da,ge),Ke)}})}function z$(ge,Ke,vt,nr,Rr,kn,Xn,Da){let jo=nr?1:0,Ao=sx(vt,cDe)?2:0,Ha=Py(),su=jl(jo|Ao),Hl=Z0(59,!1),dl=rA(jo|Ao,Da),$1=L.createMethodDeclaration(vt,nr,Rr,kn,Ha,su,Hl,dl);return $1.exclamationToken=Xn,Bc(Br($1,ge),Ke)}function kR(ge,Ke,vt,nr,Rr){let kn=!Rr&&!r.hasPrecedingLineBreak()?em(54):void 0,Xn=X2(),Da=pu(90112,eE);AT(nr,Xn,Da);let jo=L.createPropertyDeclaration(vt,nr,Rr||kn,Xn,Da);return Bc(Br(jo,ge),Ke)}function q$(ge,Ke,vt){let nr=em(42),Rr=Fk(),kn=em(58);return nr||qe()===21||qe()===30?z$(ge,Ke,vt,nr,Rr,kn,void 0,_n.or_expected):kR(ge,Ke,vt,Rr,kn)}function E4(ge,Ke,vt,nr,Rr){let kn=Fk(),Xn=Py(),Da=jl(0),jo=Z0(59,!1),Ao=rA(Rr),Ha=nr===178?L.createGetAccessorDeclaration(vt,kn,Da,jo,Ao):L.createSetAccessorDeclaration(vt,kn,Da,Ao);return Ha.typeParameters=Xn,EDe(Ha)&&(Ha.type=jo),Bc(Br(Ha,ge),Ke)}function GW(){let ge;if(qe()===60)return!0;for(;W5(qe());){if(ge=qe(),Gon(ge))return!0;bi()}if(qe()===42||(VD()&&(ge=qe(),bi()),qe()===23))return!0;if(ge!==void 0){if(!dB(ge)||ge===153||ge===139)return!0;switch(qe()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return Ng()}}return!1}function kte(ge,Ke,vt){Ts(126);let nr=Cte(),Rr=Bc(Br(L.createClassStaticBlockDeclaration(nr),ge),Ke);return Rr.modifiers=vt,Rr}function Cte(){let ge=pc(),Ke=eu();Zc(!1),zd(!0);let vt=qd(!1);return Zc(ge),zd(Ke),vt}function HW(){if(eu()&&qe()===135){let ge=Jn(),Ke=Sm(_n.Expression_expected);bi();let vt=Oy(ge,Ke,!0);return TO(ge,vt)}return FI()}function KW(){let ge=Jn();if(!Wl(60))return;let Ke=Gu(HW);return Br(L.createDecorator(Ke),ge)}function k4(ge,Ke,vt){let nr=Jn(),Rr=qe();if(qe()===87&&Ke){if(!Zn(cS))return}else if(vt&&qe()===126&&Qi(D4)||ge&&qe()===126||!Lk())return;return Br(Je(Rr),nr)}function fv(ge,Ke,vt){let nr=Jn(),Rr,kn,Xn,Da=!1,jo=!1,Ao=!1;if(ge&&qe()===60)for(;kn=KW();)Rr=bk(Rr,kn);for(;Xn=k4(Da,Ke,vt);)Xn.kind===126&&(Da=!0),Rr=bk(Rr,Xn),jo=!0;if(jo&&ge&&qe()===60)for(;kn=KW();)Rr=bk(Rr,kn),Ao=!0;if(Ao)for(;Xn=k4(Da,Ke,vt);)Xn.kind===126&&(Da=!0),Rr=bk(Rr,Xn);return Rr&&cg(Rr,nr)}function QW(){let ge;if(qe()===134){let Ke=Jn();bi();let vt=Br(Je(134),Ke);ge=cg([vt],Ke)}return ge}function J$(){let ge=Jn(),Ke=so();if(qe()===27)return bi(),Bc(Br(L.createSemicolonClassElement(),ge),Ke);let vt=fv(!0,!0,!0);if(qe()===126&&Qi(D4))return kte(ge,Ke,vt);if(WD(139))return E4(ge,Ke,vt,178,0);if(WD(153))return E4(ge,Ke,vt,179,0);if(qe()===137||qe()===11){let nr=U$(ge,Ke,vt);if(nr)return nr}if(fb())return j9(ge,Ke,vt);if(cy(qe())||qe()===11||qe()===9||qe()===10||qe()===42||qe()===23)if(sx(vt,T4)){for(let nr of vt)nr.flags|=33554432;return Tf(33554432,()=>q$(ge,Ke,vt))}else return q$(ge,Ke,vt);if(vt){let nr=fy(80,!0,_n.Declaration_expected);return kR(ge,Ke,vt,nr,void 0)}return Pi.fail("Should not have attempted to parse class member declaration.")}function Dte(){let ge=Jn(),Ke=so(),vt=fv(!0);if(qe()===86)return V$(ge,Ke,vt,232);let nr=fy(283,!0,_n.Expression_expected);return mYe(nr,ge),nr.modifiers=vt,nr}function Zs(){return V$(Jn(),so(),void 0,232)}function kx(ge,Ke,vt){return V$(ge,Ke,vt,264)}function V$(ge,Ke,vt,nr){let Rr=eu();Kn(86);let kn=ZW(),Xn=Py();sx(vt,Zsn)&&zd(!0);let Da=oE(),jo;Kn(19)?(jo=nA(),Kn(20)):jo=jk(),zd(Rr);let Ao=nr===264?L.createClassDeclaration(vt,kn,Xn,Da,jo):L.createClassExpression(vt,kn,Xn,Da,jo);return Bc(Br(Ao,ge),Ke)}function ZW(){return Ll()&&!DO()?bx(Ll()):void 0}function DO(){return qe()===119&&Qi(dte)}function oE(){if(aE())return L1(22,C4)}function C4(){let ge=Jn(),Ke=qe();Pi.assert(Ke===96||Ke===119),bi();let vt=_b(7,AO);return Br(L.createHeritageClause(Ke,vt),ge)}function AO(){let ge=Jn(),Ke=FI();if(Ke.kind===234)return Ke;let vt=Ry();return Br(L.createExpressionWithTypeArguments(Ke,vt),ge)}function Ry(){return qe()===30?HD(20,nf,30,32):void 0}function aE(){return qe()===96||qe()===119}function nA(){return L1(5,J$)}function zI(ge,Ke,vt){Kn(120);let nr=Sm(),Rr=Py(),kn=oE(),Xn=$9(),Da=L.createInterfaceDeclaration(vt,nr,Rr,kn,Xn);return Bc(Br(Da,ge),Ke)}function qs(ge,Ke,vt){Kn(156),r.hasPrecedingLineBreak()&&Ho(_n.Line_break_not_permitted_here);let nr=Sm(),Rr=Py();Kn(64);let kn=qe()===141&&Zn(G9)||nf();qm();let Xn=L.createTypeAliasDeclaration(vt,nr,Rr,kn);return Bc(Br(Xn,ge),Ke)}function p0(){let ge=Jn(),Ke=so(),vt=Fk(),nr=or(eE);return Bc(Br(L.createEnumMember(vt,nr),ge),Ke)}function _0(ge,Ke,vt){Kn(94);let nr=Sm(),Rr;Kn(19)?(Rr=us(()=>_b(6,p0)),Kn(20)):Rr=jk();let kn=L.createEnumDeclaration(vt,nr,Rr);return Bc(Br(kn,ge),Ke)}function Dd(){let ge=Jn(),Ke;return Kn(19)?(Ke=L1(1,Og),Kn(20)):Ke=jk(),Br(L.createModuleBlock(Ke),ge)}function Wk(ge,Ke,vt,nr){let Rr=nr&32,kn=nr&8?Su():Sm(),Xn=Wl(25)?Wk(Jn(),!1,void 0,8|Rr):Dd(),Da=L.createModuleDeclaration(vt,kn,Xn,nr);return Bc(Br(Da,ge),Ke)}function CR(ge,Ke,vt){let nr=0,Rr;qe()===162?(Rr=Sm(),nr|=2048):(Rr=PT(),Rr.text=Q2(Rr.text));let kn;qe()===19?kn=Dd():qm();let Xn=L.createModuleDeclaration(vt,Rr,kn,nr);return Bc(Br(Xn,ge),Ke)}function W$(ge,Ke,vt){let nr=0;if(qe()===162)return CR(ge,Ke,vt);if(Wl(145))nr|=32;else if(Kn(144),qe()===11)return CR(ge,Ke,vt);return Wk(ge,Ke,vt,nr)}function XW(){return qe()===149&&Qi(DR)}function DR(){return bi()===21}function D4(){return bi()===19}function _c(){return bi()===44}function AR(ge,Ke,vt){Kn(130),Kn(145);let nr=Sm();qm();let Rr=L.createNamespaceExportDeclaration(nr);return Rr.modifiers=vt,Bc(Br(Rr,ge),Ke)}function RT(ge,Ke,vt){Kn(102);let nr=r.getTokenFullStart(),Rr;Ni()&&(Rr=Sm());let kn;if(Rr?.escapedText==="type"&&(qe()!==161||Ni()&&Qi(M1))&&(Ni()||sE())?(kn=156,Rr=Ni()?Sm():void 0):Rr?.escapedText==="defer"&&(qe()===161?!Qi($$):qe()!==28&&qe()!==64)&&(kn=166,Rr=Ni()?Sm():void 0),Rr&&!A4()&&kn!==166)return w4(ge,Ke,vt,Rr,kn===156);let Xn=qI(Rr,nr,kn,void 0),Da=my(),jo=wR();qm();let Ao=L.createImportDeclaration(vt,Xn,Da,jo);return Bc(Br(Ao,ge),Ke)}function qI(ge,Ke,vt,nr=!1){let Rr;return(ge||qe()===42||qe()===19)&&(Rr=G$(ge,Ke,vt,nr),Kn(161)),Rr}function wR(){let ge=qe();if((ge===118||ge===132)&&!r.hasPrecedingLineBreak())return IR(ge)}function YW(){let ge=Jn(),Ke=cy(qe())?Su():bm(11);Kn(59);let vt=Ny(!0);return Br(L.createImportAttribute(Ke,vt),ge)}function IR(ge,Ke){let vt=Jn();Ke||Kn(ge);let nr=r.getTokenStart();if(Kn(19)){let Rr=r.hasPrecedingLineBreak(),kn=_b(24,YW,!0);if(!Kn(20)){let Xn=oee(Na);Xn&&Xn.code===_n._0_expected.code&&oDe(Xn,HY(an,li,nr,1,_n.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Br(L.createImportAttributes(kn,Rr,ge),vt)}else{let Rr=cg([],Jn(),void 0,!1);return Br(L.createImportAttributes(Rr,!1,ge),vt)}}function sE(){return qe()===42||qe()===19}function A4(){return qe()===28||qe()===161}function w4(ge,Ke,vt,nr,Rr){Kn(64);let kn=JI();qm();let Xn=L.createImportEqualsDeclaration(vt,Rr,nr,kn);return Bc(Br(Xn,ge),Ke)}function G$(ge,Ke,vt,nr){let Rr;return(!ge||Wl(28))&&(nr&&r.setSkipJsDocLeadingAsterisks(!0),qe()===42?Rr=hb():Rr=j1(276),nr&&r.setSkipJsDocLeadingAsterisks(!1)),Br(L.createImportClause(vt,ge,Rr),Ke)}function JI(){return XW()?eG():Bk(!1)}function eG(){let ge=Jn();Kn(149),Kn(21);let Ke=my();return Kn(22),Br(L.createExternalModuleReference(Ke),ge)}function my(){if(qe()===11){let ge=PT();return ge.text=Q2(ge.text),ge}else return Vm()}function hb(){let ge=Jn();Kn(42),Kn(130);let Ke=Sm();return Br(L.createNamespaceImport(Ke),ge)}function VI(){return cy(qe())||qe()===11}function pg(ge){return qe()===11?PT():ge()}function j1(ge){let Ke=Jn(),vt=ge===276?L.createNamedImports(HD(23,B1,19,20)):L.createNamedExports(HD(23,Jd,19,20));return Br(vt,Ke)}function Jd(){let ge=so();return Bc(iA(282),ge)}function B1(){return iA(277)}function iA(ge){let Ke=Jn(),vt=dB(qe())&&!Ni(),nr=r.getTokenStart(),Rr=r.getTokenEnd(),kn=!1,Xn,Da=!0,jo=pg(Su);if(jo.kind===80&&jo.escapedText==="type")if(qe()===130){let su=Su();if(qe()===130){let Hl=Su();VI()?(kn=!0,Xn=su,jo=pg(Ha),Da=!1):(Xn=jo,jo=Hl,Da=!1)}else VI()?(Xn=jo,Da=!1,jo=pg(Ha)):(kn=!0,jo=su)}else VI()&&(kn=!0,jo=pg(Ha));Da&&qe()===130&&(Xn=jo,Kn(130),jo=pg(Ha)),ge===277&&(jo.kind!==80?(Lu(b8(li,jo.pos),jo.end,_n.Identifier_expected),jo=gB(fy(80,!1),jo.pos,jo.pos)):vt&&Lu(nr,Rr,_n.Identifier_expected));let Ao=ge===277?L.createImportSpecifier(kn,Xn,jo):L.createExportSpecifier(kn,Xn,jo);return Br(Ao,Ke);function Ha(){return vt=dB(qe())&&!Ni(),nr=r.getTokenStart(),Rr=r.getTokenEnd(),Su()}}function Ly(ge){return Br(L.createNamespaceExport(pg(Su)),ge)}function tG(ge,Ke,vt){let nr=eu();zd(!0);let Rr,kn,Xn,Da=Wl(156),jo=Jn();Wl(42)?(Wl(130)&&(Rr=Ly(jo)),Kn(161),kn=my()):(Rr=j1(280),(qe()===161||qe()===11&&!r.hasPrecedingLineBreak())&&(Kn(161),kn=my()));let Ao=qe();kn&&(Ao===118||Ao===132)&&!r.hasPrecedingLineBreak()&&(Xn=IR(Ao)),qm(),zd(nr);let Ha=L.createExportDeclaration(vt,Da,Rr,kn,Xn);return Bc(Br(Ha,ge),Ke)}function rG(ge,Ke,vt){let nr=eu();zd(!0);let Rr;Wl(64)?Rr=!0:Kn(90);let kn=Ny(!0);qm(),zd(nr);let Xn=L.createExportAssignment(vt,Rr,kn);return Bc(Br(Xn,ge),Ke)}let Gk;(ge=>{ge[ge.SourceElements=0]="SourceElements",ge[ge.BlockStatements=1]="BlockStatements",ge[ge.SwitchClauses=2]="SwitchClauses",ge[ge.SwitchClauseStatements=3]="SwitchClauseStatements",ge[ge.TypeMembers=4]="TypeMembers",ge[ge.ClassMembers=5]="ClassMembers",ge[ge.EnumMembers=6]="EnumMembers",ge[ge.HeritageClauseElement=7]="HeritageClauseElement",ge[ge.VariableDeclarations=8]="VariableDeclarations",ge[ge.ObjectBindingElements=9]="ObjectBindingElements",ge[ge.ArrayBindingElements=10]="ArrayBindingElements",ge[ge.ArgumentExpressions=11]="ArgumentExpressions",ge[ge.ObjectLiteralMembers=12]="ObjectLiteralMembers",ge[ge.JsxAttributes=13]="JsxAttributes",ge[ge.JsxChildren=14]="JsxChildren",ge[ge.ArrayLiteralMembers=15]="ArrayLiteralMembers",ge[ge.Parameters=16]="Parameters",ge[ge.JSDocParameters=17]="JSDocParameters",ge[ge.RestProperties=18]="RestProperties",ge[ge.TypeParameters=19]="TypeParameters",ge[ge.TypeArguments=20]="TypeArguments",ge[ge.TupleElementTypes=21]="TupleElementTypes",ge[ge.HeritageClauses=22]="HeritageClauses",ge[ge.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",ge[ge.ImportAttributes=24]="ImportAttributes",ge[ge.JSDocComment=25]="JSDocComment",ge[ge.Count=26]="Count"})(Gk||(Gk={}));let H$;(ge=>{ge[ge.False=0]="False",ge[ge.True=1]="True",ge[ge.Unknown=2]="Unknown"})(H$||(H$={}));let K$;(ge=>{function Ke(Ao,Ha,su){dy("file.js",Ao,99,void 0,1,0),r.setText(Ao,Ha,su),Sc=r.scan();let Hl=vt(),dl=ea("file.js",99,1,!1,[],Je(1),0,pee),$1=bV(Na,dl);return hs&&(dl.jsDocDiagnostics=bV(hs,dl)),vm(),Hl?{jsDocTypeExpression:Hl,diagnostics:$1}:void 0}ge.parseJSDocTypeExpressionForTests=Ke;function vt(Ao){let Ha=Jn(),su=(Ao?Wl:Kn)(19),Hl=Tf(16777216,nO);(!Ao||su)&&Sx(20);let dl=L.createJSDocTypeExpression(Hl);return jt(dl),Br(dl,Ha)}ge.parseJSDocTypeExpression=vt;function nr(){let Ao=Jn(),Ha=Wl(19),su=Jn(),Hl=Bk(!1);for(;qe()===81;)ja(),tu(),Hl=Br(L.createJSDocMemberName(Hl,Sm()),su);Ha&&Sx(20);let dl=L.createJSDocNameReference(Hl);return jt(dl),Br(dl,Ao)}ge.parseJSDocNameReference=nr;function Rr(Ao,Ha,su){dy("",Ao,99,void 0,1,0);let Hl=Tf(16777216,()=>jo(Ha,su)),dl=bV(Na,{languageVariant:0,text:Ao});return vm(),Hl?{jsDoc:Hl,diagnostics:dl}:void 0}ge.parseIsolatedJSDocComment=Rr;function kn(Ao,Ha,su){let Hl=Sc,dl=Na.length,$1=Rh,Fg=Tf(16777216,()=>jo(Ha,su));return XYe(Fg,Ao),mc&524288&&(hs||(hs=[]),Tk(hs,Na,dl)),Sc=Hl,Na.length=dl,Rh=$1,Fg}ge.parseJSDocComment=kn;let Xn;(Ao=>{Ao[Ao.BeginningOfLine=0]="BeginningOfLine",Ao[Ao.SawAsterisk=1]="SawAsterisk",Ao[Ao.SavingComments=2]="SavingComments",Ao[Ao.SavingBackticks=3]="SavingBackticks"})(Xn||(Xn={}));let Da;(Ao=>{Ao[Ao.Property=1]="Property",Ao[Ao.Parameter=2]="Parameter",Ao[Ao.CallbackParameter=4]="CallbackParameter"})(Da||(Da={}));function jo(Ao=0,Ha){let su=li,Hl=Ha===void 0?su.length:Ao+Ha;if(Ha=Hl-Ao,Pi.assert(Ao>=0),Pi.assert(Ao<=Hl),Pi.assert(Hl<=su.length),!mln(su,Ao))return;let dl,$1,Fg,_S,dS,gb=[],Hk=[],fl=ou;ou|=1<<25;let D_=r.scanRange(Ao+3,Ha-5,Jp);return ou=fl,D_;function Jp(){let Ln=1,ao,lo=Ao-(su.lastIndexOf(` -`,Ao)+1)+4;function aa(cu){ao||(ao=lo),gb.push(cu),lo+=cu.length}for(tu();N4(5););N4(4)&&(Ln=0,lo=0);e:for(;;){switch(qe()){case 60:WI(gb),dS||(dS=Jn()),_u(w(lo)),Ln=0,ao=void 0;break;case 4:gb.push(r.getTokenText()),Ln=0,lo=0;break;case 42:let cu=r.getTokenText();Ln===1?(Ln=2,aa(cu)):(Pi.assert(Ln===0),Ln=1,lo+=cu.length);break;case 5:Pi.assert(Ln!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let kf=r.getTokenText();ao!==void 0&&lo+kf.length>ao&&gb.push(kf.slice(ao-lo)),lo+=kf.length;break;case 1:break e;case 82:Ln=2,aa(r.getTokenValue());break;case 19:Ln=2;let U1=r.getTokenFullStart(),d0=r.getTokenEnd()-1,Y0=Ie(d0);if(Y0){_S||Hu(gb),Hk.push(Br(L.createJSDocText(gb.join("")),_S??Ao,U1)),Hk.push(Y0),gb=[],_S=r.getTokenEnd();break}default:Ln=2,aa(r.getTokenText());break}Ln===2?Pg(!1):tu()}let ta=gb.join("").trimEnd();Hk.length&&ta.length&&Hk.push(Br(L.createJSDocText(ta),_S??Ao,dS)),Hk.length&&dl&&Pi.assertIsDefined(dS,"having parsed tags implies that the end of the comment span should be set");let ml=dl&&cg(dl,$1,Fg);return Br(L.createJSDocComment(Hk.length?cg(Hk,Ao,dS):ta.length?ta:void 0,ml),Ao,Hl)}function Hu(Ln){for(;Ln.length&&(Ln[0]===` -`||Ln[0]==="\r");)Ln.shift()}function WI(Ln){for(;Ln.length;){let ao=Ln[Ln.length-1].trimEnd();if(ao==="")Ln.pop();else if(ao.lengthkf&&(aa.push(LT.slice(kf-Ln)),cu=2),Ln+=LT.length;break;case 19:cu=2;let IO=r.getTokenFullStart(),mv=r.getTokenEnd()-1,hv=Ie(mv);hv?(ta.push(Br(L.createJSDocText(aa.join("")),ml??lo,IO)),ta.push(hv),aa=[],ml=r.getTokenEnd()):U1(r.getTokenText());break;case 62:cu===3?cu=2:cu=3,U1(r.getTokenText());break;case 82:cu!==3&&(cu=2),U1(r.getTokenValue());break;case 42:if(cu===0){cu=1,Ln+=1;break}default:cu!==3&&(cu=2),U1(r.getTokenText());break}cu===2||cu===3?d0=Pg(cu===3):d0=tu()}Hu(aa);let Y0=aa.join("").trimEnd();if(ta.length)return Y0.length&&ta.push(Br(L.createJSDocText(Y0),ml??lo)),cg(ta,lo,r.getTokenEnd());if(Y0.length)return Y0}function Ie(Ln){let ao=Zn(Pr);if(!ao)return;tu(),X0();let lo=bt(),aa=[];for(;qe()!==20&&qe()!==4&&qe()!==1;)aa.push(r.getTokenText()),tu();let ta=ao==="link"?L.createJSDocLink:ao==="linkcode"?L.createJSDocLinkCode:L.createJSDocLinkPlain;return Br(ta(lo,aa.join("")),Ln,r.getTokenEnd())}function bt(){if(cy(qe())){let Ln=Jn(),ao=Su();for(;Wl(25);)ao=Br(L.createQualifiedName(ao,qe()===81?fy(80,!1):Su()),Ln);for(;qe()===81;)ja(),tu(),ao=Br(L.createJSDocMemberName(ao,Sm()),Ln);return ao}}function Pr(){if(_i(),qe()===19&&tu()===60&&cy(tu())){let Ln=r.getTokenValue();if(Ri(Ln))return Ln}}function Ri(Ln){return Ln==="link"||Ln==="linkcode"||Ln==="linkplain"}function Ra(Ln,ao,lo,aa){return Br(L.createJSDocUnknownTag(ao,z(Ln,Jn(),lo,aa)),Ln)}function _u(Ln){Ln&&(dl?dl.push(Ln):(dl=[Ln],$1=Ln.pos),Fg=Ln.end)}function dd(){return _i(),qe()===19?vt():void 0}function Kk(){let Ln=N4(23);Ln&&X0();let ao=N4(62),lo=Rte();return ao&&Ef(62),Ln&&(X0(),em(64)&&Vm(),Kn(24)),{name:lo,isBracketed:Ln}}function fS(Ln){switch(Ln.kind){case 151:return!0;case 189:return fS(Ln.elementType);default:return lUt(Ln)&&Kd(Ln.typeName)&&Ln.typeName.escapedText==="Object"&&!Ln.typeArguments}}function oA(Ln,ao,lo,aa){let ta=dd(),ml=!ta;_i();let{name:cu,isBracketed:kf}=Kk(),U1=_i();ml&&!Qi(Pr)&&(ta=dd());let d0=z(Ln,Jn(),aa,U1),Y0=Ku(ta,cu,lo,aa);Y0&&(ta=Y0,ml=!0);let LT=lo===1?L.createJSDocPropertyTag(ao,cu,kf,ta,ml,d0):L.createJSDocParameterTag(ao,cu,kf,ta,ml,d0);return Br(LT,Ln)}function Ku(Ln,ao,lo,aa){if(Ln&&fS(Ln.type)){let ta=Jn(),ml,cu;for(;ml=Zn(()=>Z$(lo,aa,ao));)ml.kind===342||ml.kind===349?cu=bk(cu,ml):ml.kind===346&&aS(ml.tagName,_n.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(cu){let kf=Br(L.createJSDocTypeLiteral(cu,Ln.type.kind===189),ta);return Br(L.createJSDocTypeExpression(kf),ta)}}}function fn(Ln,ao,lo,aa){sx(dl,eln)&&Lu(ao.pos,r.getTokenStart(),_n._0_tag_already_specified,l_e(ao.escapedText));let ta=dd();return Br(L.createJSDocReturnTag(ao,ta,z(Ln,Jn(),lo,aa)),Ln)}function I4(Ln,ao,lo,aa){sx(dl,net)&&Lu(ao.pos,r.getTokenStart(),_n._0_tag_already_specified,l_e(ao.escapedText));let ta=vt(!0),ml=lo!==void 0&&aa!==void 0?z(Ln,Jn(),lo,aa):void 0;return Br(L.createJSDocTypeTag(ao,ta,ml),Ln)}function vs(Ln,ao,lo,aa){let ta=qe()===23||Qi(()=>tu()===60&&cy(tu())&&Ri(r.getTokenValue()))?void 0:nr(),ml=lo!==void 0&&aa!==void 0?z(Ln,Jn(),lo,aa):void 0;return Br(L.createJSDocSeeTag(ao,ta,ml),Ln)}function dp(Ln,ao,lo,aa){let ta=dd(),ml=z(Ln,Jn(),lo,aa);return Br(L.createJSDocThrowsTag(ao,ta,ml),Ln)}function oa(Ln,ao,lo,aa){let ta=Jn(),ml=Zi(),cu=r.getTokenFullStart(),kf=z(Ln,cu,lo,aa);kf||(cu=r.getTokenFullStart());let U1=typeof kf!="string"?cg(IYe([Br(ml,ta,cu)],kf),ta):ml.text+kf;return Br(L.createJSDocAuthorTag(ao,U1),Ln)}function Zi(){let Ln=[],ao=!1,lo=r.getToken();for(;lo!==1&&lo!==4;){if(lo===30)ao=!0;else{if(lo===60&&!ao)break;if(lo===32&&ao){Ln.push(r.getTokenText()),r.resetTokenState(r.getTokenEnd());break}}Ln.push(r.getTokenText()),lo=tu()}return L.createJSDocText(Ln.join(""))}function aA(Ln,ao,lo,aa){let ta=wO();return Br(L.createJSDocImplementsTag(ao,ta,z(Ln,Jn(),lo,aa)),Ln)}function vp(Ln,ao,lo,aa){let ta=wO();return Br(L.createJSDocAugmentsTag(ao,ta,z(Ln,Jn(),lo,aa)),Ln)}function Zfe(Ln,ao,lo,aa){let ta=vt(!1),ml=lo!==void 0&&aa!==void 0?z(Ln,Jn(),lo,aa):void 0;return Br(L.createJSDocSatisfiesTag(ao,ta,ml),Ln)}function nG(Ln,ao,lo,aa){let ta=r.getTokenFullStart(),ml;Ni()&&(ml=Sm());let cu=qI(ml,ta,156,!0),kf=my(),U1=wR(),d0=lo!==void 0&&aa!==void 0?z(Ln,Jn(),lo,aa):void 0;return Br(L.createJSDocImportTag(ao,cu,kf,U1,d0),Ln)}function wO(){let Ln=Wl(19),ao=Jn(),lo=Ate();r.setSkipJsDocLeadingAsterisks(!0);let aa=Ry();r.setSkipJsDocLeadingAsterisks(!1);let ta=L.createExpressionWithTypeArguments(lo,aa),ml=Br(ta,ao);return Ln&&(X0(),Kn(20)),ml}function Ate(){let Ln=Jn(),ao=GI();for(;Wl(25);){let lo=GI();ao=Br(xt(ao,lo),Ln)}return ao}function Vp(Ln,ao,lo,aa,ta){return Br(ao(lo,z(Ln,Jn(),aa,ta)),Ln)}function PR(Ln,ao,lo,aa){let ta=vt(!0);return X0(),Br(L.createJSDocThisTag(ao,ta,z(Ln,Jn(),lo,aa)),Ln)}function cs(Ln,ao,lo,aa){let ta=vt(!0);return X0(),Br(L.createJSDocEnumTag(ao,ta,z(Ln,Jn(),lo,aa)),Ln)}function Q$(Ln,ao,lo,aa){let ta=dd();_i();let ml=yb();X0();let cu=ne(lo),kf;if(!ta||fS(ta.type)){let d0,Y0,LT,IO=!1;for(;(d0=Zn(()=>Pte(lo)))&&d0.kind!==346;)if(IO=!0,d0.kind===345)if(Y0){let mv=Ho(_n.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);mv&&oDe(mv,HY(an,li,0,0,_n.The_tag_was_first_specified_here));break}else Y0=d0;else LT=bk(LT,d0);if(IO){let mv=ta&&ta.type.kind===189,hv=L.createJSDocTypeLiteral(LT,mv);ta=Y0&&Y0.typeExpression&&!fS(Y0.typeExpression.type)?Y0.typeExpression:Br(hv,Ln),kf=ta.end}}kf=kf||cu!==void 0?Jn():(ml??ta??ao).end,cu||(cu=z(Ln,kf,lo,aa));let U1=L.createJSDocTypedefTag(ao,ta,ml,cu);return Br(U1,Ln,kf)}function yb(Ln){let ao=r.getTokenStart();if(!cy(qe()))return;let lo=GI();if(Wl(25)){let aa=yb(!0),ta=L.createModuleDeclaration(void 0,lo,aa,Ln?8:void 0);return Br(ta,ao)}return Ln&&(lo.flags|=4096),lo}function Qk(Ln){let ao=Jn(),lo,aa;for(;lo=Zn(()=>Z$(4,Ln));){if(lo.kind===346){aS(lo.tagName,_n.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}aa=bk(aa,lo)}return cg(aa||[],ao)}function wte(Ln,ao){let lo=Qk(ao),aa=Zn(()=>{if(N4(60)){let ta=w(ao);if(ta&&ta.kind===343)return ta}});return Br(L.createJSDocSignature(void 0,lo,aa),Ln)}function P4(Ln,ao,lo,aa){let ta=yb();X0();let ml=ne(lo),cu=wte(Ln,lo);ml||(ml=z(Ln,Jn(),lo,aa));let kf=ml!==void 0?Jn():cu.end;return Br(L.createJSDocCallbackTag(ao,cu,ta,ml),Ln,kf)}function Ite(Ln,ao,lo,aa){X0();let ta=ne(lo),ml=wte(Ln,lo);ta||(ta=z(Ln,Jn(),lo,aa));let cu=ta!==void 0?Jn():ml.end;return Br(L.createJSDocOverloadTag(ao,ml,ta),Ln,cu)}function Xfe(Ln,ao){for(;!Kd(Ln)||!Kd(ao);)if(!Kd(Ln)&&!Kd(ao)&&Ln.right.escapedText===ao.right.escapedText)Ln=Ln.left,ao=ao.left;else return!1;return Ln.escapedText===ao.escapedText}function Pte(Ln){return Z$(1,Ln)}function Z$(Ln,ao,lo){let aa=!0,ta=!1;for(;;)switch(tu()){case 60:if(aa){let ml=Nte(Ln,ao);return ml&&(ml.kind===342||ml.kind===349)&&lo&&(Kd(ml.name)||!Xfe(lo,ml.name.left))?!1:ml}ta=!1;break;case 4:aa=!0,ta=!1;break;case 42:ta&&(aa=!1),ta=!0;break;case 80:aa=!1;break;case 1:return!1}}function Nte(Ln,ao){Pi.assert(qe()===60);let lo=r.getTokenFullStart();tu();let aa=GI(),ta=_i(),ml;switch(aa.escapedText){case"type":return Ln===1&&I4(lo,aa);case"prop":case"property":ml=1;break;case"arg":case"argument":case"param":ml=6;break;case"template":return X$(lo,aa,ao,ta);case"this":return PR(lo,aa,ao,ta);default:return!1}return Ln&ml?oA(lo,aa,Ln,ao):!1}function Ote(){let Ln=Jn(),ao=N4(23);ao&&X0();let lo=fv(!1,!0),aa=GI(_n.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),ta;if(ao&&(X0(),Kn(64),ta=Tf(16777216,nO),Kn(24)),!wV(aa))return Br(L.createTypeParameterDeclaration(lo,aa,void 0,ta),Ln)}function Fte(){let Ln=Jn(),ao=[];do{X0();let lo=Ote();lo!==void 0&&ao.push(lo),_i()}while(N4(28));return cg(ao,Ln)}function X$(Ln,ao,lo,aa){let ta=qe()===19?vt():void 0,ml=Fte();return Br(L.createJSDocTemplateTag(ao,ta,ml,z(Ln,Jn(),lo,aa)),Ln)}function N4(Ln){return qe()===Ln?(tu(),!0):!1}function Rte(){let Ln=GI();for(Wl(23)&&Kn(24);Wl(25);){let ao=GI();Wl(23)&&Kn(24),Ln=Iy(Ln,ao)}return Ln}function GI(Ln){if(!cy(qe()))return fy(80,!Ln,Ln||_n.Identifier_expected);Pt++;let ao=r.getTokenStart(),lo=r.getTokenEnd(),aa=qe(),ta=Q2(r.getTokenValue()),ml=Br(X(ta,aa),ao,lo);return tu(),ml}}})(K$=e.JSDocParser||(e.JSDocParser={}))})(PV||(PV={}));var UBt=new WeakSet;function Dln(e){UBt.has(e)&&Pi.fail("Source file has already been incrementally parsed"),UBt.add(e)}var OUt=new WeakSet;function Aln(e){return OUt.has(e)}function bYe(e){OUt.add(e)}var CDe;(e=>{function r(ie,te,X,Re){if(Re=Re||Pi.shouldAssert(2),L(ie,te,X,Re),gon(X))return ie;if(ie.statements.length===0)return PV.parseSourceFile(ie.fileName,te,ie.languageVersion,void 0,!0,ie.scriptKind,ie.setExternalModuleIndicator,ie.jsDocParsingMode);Dln(ie),PV.fixupParentReferences(ie);let Je=ie.text,pt=V(ie),$e=b(ie,X);L(ie,te,$e,Re),Pi.assert($e.span.start<=X.span.start),Pi.assert(v8($e.span)===v8(X.span)),Pi.assert(v8(Wpe($e))===v8(Wpe(X)));let xt=Wpe($e).length-$e.span.length;S(ie,$e.span.start,v8($e.span),v8(Wpe($e)),xt,Je,te,Re);let tr=PV.parseSourceFile(ie.fileName,te,ie.languageVersion,pt,!0,ie.scriptKind,ie.setExternalModuleIndicator,ie.jsDocParsingMode);return tr.commentDirectives=i(ie.commentDirectives,tr.commentDirectives,$e.span.start,v8($e.span),xt,Je,te,Re),tr.impliedNodeFormat=ie.impliedNodeFormat,oln(ie,tr),tr}e.updateSourceFile=r;function i(ie,te,X,Re,Je,pt,$e,xt){if(!ie)return te;let tr,ht=!1;for(let Ut of ie){let{range:hr,type:Hi}=Ut;if(hr.endRe){wt();let un={range:{pos:hr.pos+Je,end:hr.end+Je},type:Hi};tr=bk(tr,un),xt&&Pi.assert(pt.substring(hr.pos,hr.end)===$e.substring(un.range.pos,un.range.end))}}return wt(),tr;function wt(){ht||(ht=!0,tr?te&&tr.push(...te):tr=te)}}function s(ie,te,X,Re,Je,pt,$e){X?tr(ie):xt(ie);return;function xt(ht){let wt="";if($e&&l(ht)&&(wt=Je.substring(ht.pos,ht.end)),gBt(ht,te),gB(ht,ht.pos+Re,ht.end+Re),$e&&l(ht)&&Pi.assert(wt===pt.substring(ht.pos,ht.end)),cx(ht,xt,tr),AV(ht))for(let Ut of ht.jsDoc)xt(Ut);h(ht,$e)}function tr(ht){gB(ht,ht.pos+Re,ht.end+Re);for(let wt of ht)xt(wt)}}function l(ie){switch(ie.kind){case 11:case 9:case 80:return!0}return!1}function d(ie,te,X,Re,Je){Pi.assert(ie.end>=te,"Adjusting an element that was entirely before the change range"),Pi.assert(ie.pos<=X,"Adjusting an element that was entirely after the change range"),Pi.assert(ie.pos<=ie.end);let pt=Math.min(ie.pos,Re),$e=ie.end>=X?ie.end+Je:Math.min(ie.end,Re);if(Pi.assert(pt<=$e),ie.parent){let xt=ie.parent;Pi.assertGreaterThanOrEqual(pt,xt.pos),Pi.assertLessThanOrEqual($e,xt.end)}gB(ie,pt,$e)}function h(ie,te){if(te){let X=ie.pos,Re=Je=>{Pi.assert(Je.pos>=X),X=Je.end};if(AV(ie))for(let Je of ie.jsDoc)Re(Je);cx(ie,Re),Pi.assert(X<=ie.end)}}function S(ie,te,X,Re,Je,pt,$e,xt){tr(ie);return;function tr(wt){if(Pi.assert(wt.pos<=wt.end),wt.pos>X){s(wt,ie,!1,Je,pt,$e,xt);return}let Ut=wt.end;if(Ut>=te){if(bYe(wt),gBt(wt,ie),d(wt,te,X,Re,Je),cx(wt,tr,ht),AV(wt))for(let hr of wt.jsDoc)tr(hr);h(wt,xt);return}Pi.assert(UtX){s(wt,ie,!0,Je,pt,$e,xt);return}let Ut=wt.end;if(Ut>=te){bYe(wt),d(wt,te,X,Re,Je);for(let hr of wt)tr(hr);return}Pi.assert(Ut0&&pt<=1;pt++){let $e=A(ie,X);Pi.assert($e.pos<=X);let xt=$e.pos;X=Math.max(0,xt-1)}let Re=hon(X,v8(te.span)),Je=te.newLength+(te.span.start-X);return w$t(Re,Je)}function A(ie,te){let X=ie,Re;if(cx(ie,pt),Re){let $e=Je(Re);$e.pos>X.pos&&(X=$e)}return X;function Je($e){for(;;){let xt=csn($e);if(xt)$e=xt;else return $e}}function pt($e){if(!wV($e))if($e.pos<=te){if($e.pos>=X.pos&&(X=$e),te<$e.end)return cx($e,pt),!0;Pi.assert($e.end<=te),Re=$e}else return Pi.assert($e.pos>te),!0}}function L(ie,te,X,Re){let Je=ie.text;if(X&&(Pi.assert(Je.length-X.span.length+X.newLength===te.length),Re||Pi.shouldAssert(3))){let pt=Je.substr(0,X.span.start),$e=te.substr(0,X.span.start);Pi.assert(pt===$e);let xt=Je.substring(v8(X.span),Je.length),tr=te.substring(v8(Wpe(X)),te.length);Pi.assert(xt===tr)}}function V(ie){let te=ie.statements,X=0;Pi.assert(X=ht.pos&&$e=ht.pos&&$e{ie[ie.Value=-1]="Value"})(j||(j={}))})(CDe||(CDe={}));function wln(e){return Iln(e)!==void 0}function Iln(e){let r=m$t(e,wsn,!1);if(r)return r;if(jin(e,".ts")){let i=f$t(e),s=i.lastIndexOf(".d.");if(s>=0)return i.substring(s)}}function Pln(e,r,i,s){if(e){if(e==="import")return 99;if(e==="require")return 1;s(r,i-r,_n.resolution_mode_should_be_either_require_or_import)}}function Nln(e,r){let i=[];for(let s of uYe(r,0)||ky){let l=r.substring(s.pos,s.end);Mln(i,s,l)}e.pragmas=new Map;for(let s of i){if(e.pragmas.has(s.name)){let l=e.pragmas.get(s.name);l instanceof Array?l.push(s.args):e.pragmas.set(s.name,[l,s.args]);continue}e.pragmas.set(s.name,s.args)}}function Oln(e,r){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((i,s)=>{switch(s){case"reference":{let l=e.referencedFiles,d=e.typeReferenceDirectives,h=e.libReferenceDirectives;ND(JXe(i),S=>{let{types:b,lib:A,path:L,["resolution-mode"]:V,preserve:j}=S.arguments,ie=j==="true"?!0:void 0;if(S.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(b){let te=Pln(V,b.pos,b.end,r);d.push({pos:b.pos,end:b.end,fileName:b.value,...te?{resolutionMode:te}:{},...ie?{preserve:ie}:{}})}else A?h.push({pos:A.pos,end:A.end,fileName:A.value,...ie?{preserve:ie}:{}}):L?l.push({pos:L.pos,end:L.end,fileName:L.value,...ie?{preserve:ie}:{}}):r(S.range.pos,S.range.end-S.range.pos,_n.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=oYe(JXe(i),l=>({name:l.arguments.name,path:l.arguments.path}));break}case"amd-module":{if(i instanceof Array)for(let l of i)e.moduleName&&r(l.range.pos,l.range.end-l.range.pos,_n.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=l.arguments.name;else e.moduleName=i.arguments.name;break}case"ts-nocheck":case"ts-check":{ND(JXe(i),l=>{(!e.checkJsDirective||l.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:s==="ts-check",end:l.range.end,pos:l.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:Pi.fail("Unhandled pragma kind")}})}var eYe=new Map;function Fln(e){if(eYe.has(e))return eYe.get(e);let r=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return eYe.set(e,r),r}var Rln=/^\/\/\/\s*<(\S+)\s.*?\/>/m,Lln=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function Mln(e,r,i){let s=r.kind===2&&Rln.exec(i);if(s){let d=s[1].toLowerCase(),h=d$t[d];if(!h||!(h.kind&1))return;if(h.args){let S={};for(let b of h.args){let A=Fln(b.name).exec(i);if(!A&&!b.optional)return;if(A){let L=A[2]||A[3];if(b.captureSpan){let V=r.pos+A.index+A[1].length+1;S[b.name]={value:L,pos:V,end:V+L.length}}else S[b.name]=L}}e.push({name:d,args:{arguments:S,range:r}})}else e.push({name:d,args:{arguments:{},range:r}});return}let l=r.kind===2&&Lln.exec(i);if(l)return zBt(e,r,2,l);if(r.kind===3){let d=/@(\S+)(\s+(?:\S.*)?)?$/gm,h;for(;h=d.exec(i);)zBt(e,r,4,h)}}function zBt(e,r,i,s){if(!s)return;let l=s[1].toLowerCase(),d=d$t[l];if(!d||!(d.kind&i))return;let h=s[2],S=jln(d,h);S!=="fail"&&e.push({name:l,args:{arguments:S,range:r}})}function jln(e,r){if(!r)return{};if(!e.args)return{};let i=r.trim().split(/\s+/),s={};for(let l=0;ls.kind<310||s.kind>352);return i.kind<167?i:i.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let r=this.getChildren(e),i=oee(r);if(i)return i.kind<167?i:i.getLastToken(e)}forEachChild(e,r){return cx(this,e,r)}};function Bln(e,r){let i=[];if(uan(e))return e.forEachChild(h=>{i.push(h)}),i;i_e.setText((r||e.getSourceFile()).text);let s=e.pos,l=h=>{o_e(i,s,h.pos,e),i.push(h),s=h.end},d=h=>{o_e(i,s,h.pos,e),i.push($ln(h,e)),s=h.end};return ND(e.jsDoc,l),s=e.pos,e.forEachChild(l,d),o_e(i,s,e.end,e),i_e.setText(void 0),i}function o_e(e,r,i,s){for(i_e.resetTokenState(r);rr.tagName.text==="inheritDoc"||r.tagName.text==="inheritdoc")}function dDe(e,r){if(!e)return ky;let i=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,r);if(r&&(i.length===0||e.some(jUt))){let s=new Set;for(let l of e){let d=BUt(r,l,h=>{var S;if(!s.has(h))return s.add(h),l.kind===178||l.kind===179?h.getContextualJsDocTags(l,r):((S=h.declarations)==null?void 0:S.length)===1?h.getJsDocTags(r):void 0});d&&(i=[...d,...i])}}return i}function n_e(e,r){if(!e)return ky;let i=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,r);if(r&&(i.length===0||e.some(jUt))){let s=new Set;for(let l of e){let d=BUt(r,l,h=>{if(!s.has(h))return s.add(h),l.kind===178||l.kind===179?h.getContextualDocumentationComment(l,r):h.getDocumentationComment(r)});d&&(i=i.length===0?d.slice():d.concat(lineBreakPart(),i))}}return i}function BUt(e,r,i){var s;let l=((s=r.parent)==null?void 0:s.kind)===177?r.parent.parent:r.parent;if(!l)return;let d=Zan(r);return sin(zan(l),h=>{let S=e.getTypeAtLocation(h),b=d&&S.symbol?e.getTypeOfSymbol(S.symbol):S,A=e.getPropertyOfType(b,r.symbol.name);return A?i(A):void 0})}var Jln=class extends aet{constructor(e,r,i){super(e,r,i)}update(e,r){return Cln(this,e,r)}getLineAndCharacterOfPosition(e){return T$t(this,e)}getLineStarts(){return lYe(this)}getPositionOfLineAndCharacter(e,r,i){return ion(lYe(this),e,r,this.text,i)}getLineEndOfPosition(e){let{line:r}=this.getLineAndCharacterOfPosition(e),i=this.getLineStarts(),s;r+1>=i.length&&(s=this.getEnd()),s||(s=i[r+1]-1);let l=this.getFullText();return l[s]===` -`&&l[s-1]==="\r"?s-1:s}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=bin();return this.forEachChild(l),e;function r(d){let h=s(d);h&&e.add(h,d)}function i(d){let h=e.get(d);return h||e.set(d,h=[]),h}function s(d){let h=UYe(d);return h&&(oUt(h)&&X5(h.expression)?h.expression.name.text:j$t(h)?getNameFromPropertyName(h):void 0)}function l(d){switch(d.kind){case 263:case 219:case 175:case 174:let h=d,S=s(h);if(S){let L=i(S),V=oee(L);V&&h.parent===V.parent&&h.symbol===V.symbol?h.body&&!V.body&&(L[L.length-1]=h):L.push(h)}cx(d,l);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:r(d),cx(d,l);break;case 170:if(!h_e(d,31))break;case 261:case 209:{let L=d;if(ean(L.name)){cx(L.name,l);break}L.initializer&&l(L.initializer)}case 307:case 173:case 172:r(d);break;case 279:let b=d;b.exportClause&&(Lcn(b.exportClause)?ND(b.exportClause.elements,l):l(b.exportClause.name));break;case 273:let A=d.importClause;A&&(A.name&&r(A.name),A.namedBindings&&(A.namedBindings.kind===275?r(A.namedBindings):ND(A.namedBindings.elements,l)));break;case 227:WYe(d)!==0&&r(d);default:cx(d,l)}}}},Vln=class{constructor(e,r,i){this.fileName=e,this.text=r,this.skipTrivia=i||(s=>s)}getLineAndCharacterOfPosition(e){return T$t(this,e)}};function Wln(){return{getNodeConstructor:()=>aet,getTokenConstructor:()=>RUt,getIdentifierConstructor:()=>LUt,getPrivateIdentifierConstructor:()=>MUt,getSourceFileConstructor:()=>Jln,getSymbolConstructor:()=>Uln,getTypeConstructor:()=>zln,getSignatureConstructor:()=>qln,getSourceMapSourceConstructor:()=>Vln}}var Gln=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],vVn=[...Gln,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];gsn(Wln());var $Ut=new Proxy({},{get:()=>!0}),UUt=$Ut["4.8"];function E8(e,r=!1){if(e!=null){if(UUt){if(r||oet(e)){let i=Eon(e);return i?[...i]:void 0}return}return e.modifiers?.filter(i=>!eet(i))}}function tee(e,r=!1){if(e!=null){if(UUt){if(r||dln(e)){let i=Ton(e);return i?[...i]:void 0}return}return e.decorators?.filter(eet)}}var Hln={},zUt=new Proxy({},{get:(e,r)=>r}),Kln=zUt,Qln=zUt,yn=Kln,rb=Qln,Zln=$Ut["5.0"],nc=Xl,Xln=new Set([nc.AmpersandAmpersandToken,nc.BarBarToken,nc.QuestionQuestionToken]),Yln=new Set([Xl.AmpersandAmpersandEqualsToken,Xl.AmpersandEqualsToken,Xl.AsteriskAsteriskEqualsToken,Xl.AsteriskEqualsToken,Xl.BarBarEqualsToken,Xl.BarEqualsToken,Xl.CaretEqualsToken,Xl.EqualsToken,Xl.GreaterThanGreaterThanEqualsToken,Xl.GreaterThanGreaterThanGreaterThanEqualsToken,Xl.LessThanLessThanEqualsToken,Xl.MinusEqualsToken,Xl.PercentEqualsToken,Xl.PlusEqualsToken,Xl.QuestionQuestionEqualsToken,Xl.SlashEqualsToken]),eun=new Set([nc.AmpersandAmpersandToken,nc.AmpersandToken,nc.AsteriskAsteriskToken,nc.AsteriskToken,nc.BarBarToken,nc.BarToken,nc.CaretToken,nc.EqualsEqualsEqualsToken,nc.EqualsEqualsToken,nc.ExclamationEqualsEqualsToken,nc.ExclamationEqualsToken,nc.GreaterThanEqualsToken,nc.GreaterThanGreaterThanGreaterThanToken,nc.GreaterThanGreaterThanToken,nc.GreaterThanToken,nc.InKeyword,nc.InstanceOfKeyword,nc.LessThanEqualsToken,nc.LessThanLessThanToken,nc.LessThanToken,nc.MinusToken,nc.PercentToken,nc.PlusToken,nc.SlashToken]);function tun(e){return Yln.has(e.kind)}function run(e){return Xln.has(e.kind)}function nun(e){return eun.has(e.kind)}function mB(e){return Bm(e)}function iun(e){return e.kind!==nc.SemicolonClassElement}function E_(e,r){return E8(r)?.some(i=>i.kind===e)===!0}function oun(e){let r=E8(e);return r==null?null:r[r.length-1]??null}function aun(e){return e.kind===nc.CommaToken}function sun(e){return e.kind===nc.SingleLineCommentTrivia||e.kind===nc.MultiLineCommentTrivia}function cun(e){return e.kind===nc.JSDocComment}function lun(e){if(tun(e))return{type:yn.AssignmentExpression,operator:mB(e.kind)};if(run(e))return{type:yn.LogicalExpression,operator:mB(e.kind)};if(nun(e))return{type:yn.BinaryExpression,operator:mB(e.kind)};throw new Error(`Unexpected binary operator ${Bm(e.kind)}`)}function fDe(e,r){let i=r.getLineAndCharacterOfPosition(e);return{column:i.character,line:i.line+1}}function DV(e,r){let[i,s]=e.map(l=>fDe(l,r));return{end:s,start:i}}function uun(e){if(e.kind===Xl.Block)switch(e.parent.kind){case Xl.Constructor:case Xl.GetAccessor:case Xl.SetAccessor:case Xl.ArrowFunction:case Xl.FunctionExpression:case Xl.FunctionDeclaration:case Xl.MethodDeclaration:return!0;default:return!1}return!0}function KY(e,r){return[e.getStart(r),e.getEnd()]}function pun(e){return e.kind>=nc.FirstToken&&e.kind<=nc.LastToken}function qUt(e){return e.kind>=nc.JsxElement&&e.kind<=nc.JsxAttribute}function xYe(e){return e.flags&PD.Let?"let":(e.flags&PD.AwaitUsing)===PD.AwaitUsing?"await using":e.flags&PD.Const?"const":e.flags&PD.Using?"using":"var"}function EV(e){let r=E8(e);if(r!=null)for(let i of r)switch(i.kind){case nc.PublicKeyword:return"public";case nc.ProtectedKeyword:return"protected";case nc.PrivateKeyword:return"private";default:break}}function q6(e,r,i){return s(r);function s(l){return qon(l)&&l.pos===e.end?l:Sun(l.getChildren(i),d=>(d.pos<=e.pos&&d.end>e.end||d.pos===e.end)&&vun(d,i)?s(d):void 0)}}function _un(e,r){let i=e;for(;i;){if(r(i))return i;i=i.parent}}function dun(e){return!!_un(e,qUt)}function qBt(e){return ree(0,e,/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,r=>{let i=r.slice(1,-1);if(i[0]==="#"){let s=i[1]==="x"?parseInt(i.slice(2),16):parseInt(i.slice(1),10);return s>1114111?r:String.fromCodePoint(s)}return Hln[i]||r})}function QY(e){return e.kind===nc.ComputedPropertyName}function JBt(e){return!!e.questionToken}function JUt(e){return e.type===yn.ChainExpression}function fun(e,r){return JUt(r)&&e.expression.kind!==Xl.ParenthesizedExpression}function mun(e){if(e.kind===nc.NullKeyword)return rb.Null;if(e.kind>=nc.FirstKeyword&&e.kind<=nc.LastFutureReservedWord)return e.kind===nc.FalseKeyword||e.kind===nc.TrueKeyword?rb.Boolean:rb.Keyword;if(e.kind>=nc.FirstPunctuation&&e.kind<=nc.LastPunctuation)return rb.Punctuator;if(e.kind>=nc.NoSubstitutionTemplateLiteral&&e.kind<=nc.TemplateTail)return rb.Template;switch(e.kind){case nc.NumericLiteral:case nc.BigIntLiteral:return rb.Numeric;case nc.PrivateIdentifier:return rb.PrivateIdentifier;case nc.JsxText:return rb.JSXText;case nc.StringLiteral:return e.parent.kind===nc.JsxAttribute||e.parent.kind===nc.JsxElement?rb.JSXText:rb.String;case nc.RegularExpressionLiteral:return rb.RegularExpression;case nc.Identifier:case nc.ConstructorKeyword:case nc.GetKeyword:case nc.SetKeyword:default:}return e.kind===nc.Identifier&&(qUt(e.parent)||e.parent.kind===nc.PropertyAccessExpression&&dun(e))?rb.JSXIdentifier:rb.Identifier}function hun(e,r){let i=e.kind===nc.JsxText?e.getFullStart():e.getStart(r),s=e.getEnd(),l=r.text.slice(i,s),d=mun(e),h=[i,s],S=DV(h,r);return d===rb.RegularExpression?{type:d,loc:S,range:h,regex:{flags:l.slice(l.lastIndexOf("/")+1),pattern:l.slice(1,l.lastIndexOf("/"))},value:l}:d===rb.PrivateIdentifier?{type:d,loc:S,range:h,value:l.slice(1)}:{type:d,loc:S,range:h,value:l}}function gun(e){let r=[];function i(s){sun(s)||cun(s)||(pun(s)&&s.kind!==nc.EndOfFileToken?r.push(hun(s,e)):s.getChildren(e).forEach(i))}return i(e),r}var yun=class extends Error{fileName;location;constructor(e,r,i){super(e),this.fileName=r,this.location=i,Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:new.target.name})}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};function cet(e,r,i,s=i){let[l,d]=[i,s].map(h=>{let{character:S,line:b}=r.getLineAndCharacterOfPosition(h);return{column:S,line:b+1,offset:h}});return new yun(e,r.fileName,{end:d,start:l})}function vun(e,r){return e.kind===nc.EndOfFileToken?!!e.jsDoc:e.getWidth(r)!==0}function Sun(e,r){if(e!==void 0)for(let i=0;i=0&&e.kind!==lc.EndOfFileToken}function VBt(e){return!kun(e)}function Cun(e){return E_(lc.AbstractKeyword,e)}function Dun(e){if(e.parameters.length&&!DUt(e)){let r=e.parameters[0];if(Aun(r))return r}return null}function Aun(e){return VUt(e.name)}function wun(e){return I$t(e.parent,B$t)}function Iun(e){switch(e.kind){case lc.ClassDeclaration:return!0;case lc.ClassExpression:return!0;case lc.PropertyDeclaration:{let{parent:r}=e;return!!(kDe(r)||see(r)&&!Cun(e))}case lc.GetAccessor:case lc.SetAccessor:case lc.MethodDeclaration:{let{parent:r}=e;return!!e.body&&(kDe(r)||see(r))}case lc.Parameter:{let{parent:r}=e,i=r.parent;return!!r&&"body"in r&&!!r.body&&(r.kind===lc.Constructor||r.kind===lc.MethodDeclaration||r.kind===lc.SetAccessor)&&Dun(r)!==e&&!!i&&i.kind===lc.ClassDeclaration}}return!1}function Pun(e){return!!("illegalDecorators"in e&&e.illegalDecorators?.length)}function lv(e,r){let i=e.getSourceFile(),s=e.getStart(i),l=e.getEnd();throw cet(r,i,s,l)}function Nun(e){Pun(e)&&lv(e.illegalDecorators[0],"Decorators are not valid here.");for(let r of tee(e,!0)??[])Iun(e)||(gYe(e)&&!VBt(e.body)?lv(r,"A decorator can only decorate a method implementation, not an overload."):lv(r,"Decorators are not valid here."));for(let r of E8(e,!0)??[]){if(r.kind!==lc.ReadonlyKeyword&&((e.kind===lc.PropertySignature||e.kind===lc.MethodSignature)&&lv(r,`'${Bm(r.kind)}' modifier cannot appear on a type member`),e.kind===lc.IndexSignature&&(r.kind!==lc.StaticKeyword||!see(e.parent))&&lv(r,`'${Bm(r.kind)}' modifier cannot appear on an index signature`)),r.kind!==lc.InKeyword&&r.kind!==lc.OutKeyword&&r.kind!==lc.ConstKeyword&&e.kind===lc.TypeParameter&&lv(r,`'${Bm(r.kind)}' modifier cannot appear on a type parameter`),(r.kind===lc.InKeyword||r.kind===lc.OutKeyword)&&(e.kind!==lc.TypeParameter||!(ret(e.parent)||see(e.parent)||vUt(e.parent)))&&lv(r,`'${Bm(r.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),r.kind===lc.ReadonlyKeyword&&e.kind!==lc.PropertyDeclaration&&e.kind!==lc.PropertySignature&&e.kind!==lc.IndexSignature&&e.kind!==lc.Parameter&&lv(r,"'readonly' modifier can only appear on a property declaration or index signature."),r.kind===lc.DeclareKeyword&&see(e.parent)&&!TDe(e)&&lv(r,`'${Bm(r.kind)}' modifier cannot appear on class elements of this kind.`),r.kind===lc.DeclareKeyword&&wDe(e)){let i=xYe(e.declarationList);(i==="using"||i==="await using")&&lv(r,`'declare' modifier cannot appear on a '${i}' declaration.`)}if(r.kind===lc.AbstractKeyword&&e.kind!==lc.ClassDeclaration&&e.kind!==lc.ConstructorType&&e.kind!==lc.MethodDeclaration&&e.kind!==lc.PropertyDeclaration&&e.kind!==lc.GetAccessor&&e.kind!==lc.SetAccessor&&lv(r,`'${Bm(r.kind)}' modifier can only appear on a class, method, or property declaration.`),(r.kind===lc.StaticKeyword||r.kind===lc.PublicKeyword||r.kind===lc.ProtectedKeyword||r.kind===lc.PrivateKeyword)&&(e.parent.kind===lc.ModuleBlock||e.parent.kind===lc.SourceFile)&&lv(r,`'${Bm(r.kind)}' modifier cannot appear on a module or namespace element.`),r.kind===lc.AccessorKeyword&&e.kind!==lc.PropertyDeclaration&&lv(r,"'accessor' modifier can only appear on a property declaration."),r.kind===lc.AsyncKeyword&&e.kind!==lc.MethodDeclaration&&e.kind!==lc.FunctionDeclaration&&e.kind!==lc.FunctionExpression&&e.kind!==lc.ArrowFunction&&lv(r,"'async' modifier cannot be used here."),e.kind===lc.Parameter&&(r.kind===lc.StaticKeyword||r.kind===lc.ExportKeyword||r.kind===lc.DeclareKeyword||r.kind===lc.AsyncKeyword)&&lv(r,`'${Bm(r.kind)}' modifier cannot appear on a parameter.`),r.kind===lc.PublicKeyword||r.kind===lc.ProtectedKeyword||r.kind===lc.PrivateKeyword)for(let i of E8(e)??[])i!==r&&(i.kind===lc.PublicKeyword||i.kind===lc.ProtectedKeyword||i.kind===lc.PrivateKeyword)&&lv(i,"Accessibility modifier already seen.");if(e.kind===lc.Parameter&&(r.kind===lc.PublicKeyword||r.kind===lc.PrivateKeyword||r.kind===lc.ProtectedKeyword||r.kind===lc.ReadonlyKeyword||r.kind===lc.OverrideKeyword)){let i=wun(e);i?.kind===lc.Constructor&&VBt(i.body)||lv(r,"A parameter property is only allowed in a constructor implementation.");let s=e;s.dotDotDotToken&&lv(r,"A parameter property cannot be a rest parameter."),(s.name.kind===lc.ArrayBindingPattern||s.name.kind===lc.ObjectBindingPattern)&&lv(r,"A parameter property may not be declared using a binding pattern.")}r.kind!==lc.AsyncKeyword&&e.kind===lc.MethodDeclaration&&e.parent.kind===lc.ObjectLiteralExpression&&lv(r,`'${Bm(r.kind)}' modifier cannot be used here.`)}}var Ur=Xl;function Oun(e){return cet("message"in e&&e.message||e.messageText,e.file,e.start)}function Fun(e){return X5(e)&&Kd(e.name)&&WUt(e.expression)}function WUt(e){return e.kind===Ur.Identifier||Fun(e)}var Run=class{allowPattern=!1;ast;esTreeNodeToTSNodeMap=new WeakMap;options;tsNodeToESTreeNodeMap=new WeakMap;constructor(e,r){this.ast=e,this.options={...r}}#t(e,r){let i=r===Xl.ForInStatement?"for...in":"for...of";if(Fcn(e)){e.declarations.length!==1&&this.#e(e,`Only a single variable declaration is allowed in a '${i}' statement.`);let s=e.declarations[0];s.initializer?this.#e(s,`The variable declaration of a '${i}' statement cannot have an initializer.`):s.type&&this.#e(s,`The variable declaration of a '${i}' statement cannot have a type annotation.`),r===Xl.ForInStatement&&e.flags&PD.Using&&this.#e(e,"The left-hand side of a 'for...in' statement cannot be a 'using' declaration.")}else!TYe(e)&&e.kind!==Xl.ObjectLiteralExpression&&e.kind!==Xl.ArrayLiteralExpression&&this.#e(e,`The left-hand side of a '${i}' statement must be a variable or a property access.`)}#r(e){this.options.allowInvalidAST||Nun(e)}#e(e,r){if(this.options.allowInvalidAST)return;let i,s;throw Array.isArray(e)?[i,s]=e:typeof e=="number"?i=s=e:(i=e.getStart(this.ast),s=e.getEnd()),cet(r,this.ast,i,s)}#n(e,r,i,s=!1){let l=s;return Object.defineProperty(e,r,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>e[i]:()=>(l||((void 0)(`The '${r}' property is deprecated on ${e.type} nodes. Use '${i}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),l=!0),e[i]),set(d){Object.defineProperty(e,r,{enumerable:!0,value:d,writable:!0})}}),e}#i(e,r,i,s){let l=!1;return Object.defineProperty(e,r,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>s:()=>{if(!l){let d=`The '${r}' property is deprecated on ${e.type} nodes.`;i&&(d+=` Use ${i} instead.`),d+=" See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.",(void 0)(d,"DeprecationWarning"),l=!0}return s},set(d){Object.defineProperty(e,r,{enumerable:!0,value:d,writable:!0})}}),e}assertModuleSpecifier(e,r){!r&&e.moduleSpecifier==null&&this.#e(e,"Module specifier must be a string literal."),e.moduleSpecifier&&e.moduleSpecifier?.kind!==Ur.StringLiteral&&this.#e(e.moduleSpecifier,"Module specifier must be a string literal.")}convertBindingNameWithTypeAnnotation(e,r,i){let s=this.convertPattern(e);return r&&(s.typeAnnotation=this.convertTypeAnnotation(r,i),this.fixParentLocation(s,s.typeAnnotation.range)),s}convertBodyExpressions(e,r){let i=uun(r);return e.map(s=>{let l=this.convertChild(s);if(i){if(l?.expression&&hUt(s)&&uee(s.expression)){let d=l.expression.raw;return l.directive=d.slice(1,-1),l}i=!1}return l}).filter(s=>s)}convertChainExpression(e,r){let{child:i,isOptional:s}=e.type===yn.MemberExpression?{child:e.object,isOptional:e.optional}:e.type===yn.CallExpression?{child:e.callee,isOptional:e.optional}:{child:e.expression,isOptional:!1},l=fun(r,i);if(!l&&!s)return e;if(l&&JUt(i)){let d=i.expression;e.type===yn.MemberExpression?e.object=d:e.type===yn.CallExpression?e.callee=d:e.expression=d}return this.createNode(r,{type:yn.ChainExpression,expression:e})}convertChild(e,r){return this.converter(e,r,!1)}convertChildren(e,r){return e.map(i=>this.converter(i,r,!1))}convertPattern(e,r){return this.converter(e,r,!0)}convertTypeAnnotation(e,r){let i=r?.kind===Ur.FunctionType||r?.kind===Ur.ConstructorType?2:1,s=[e.getFullStart()-i,e.end],l=DV(s,this.ast);return{type:yn.TSTypeAnnotation,loc:l,range:s,typeAnnotation:this.convertChild(e)}}convertTypeArgumentsToTypeParameterInstantiation(e,r){let i=q6(e,this.ast,this.ast),s=[e.pos-1,i.end];return e.length===0&&this.#e(s,"Type argument list cannot be empty."),this.createNode(r,{type:yn.TSTypeParameterInstantiation,range:s,params:this.convertChildren(e)})}convertTSTypeParametersToTypeParametersDeclaration(e){let r=q6(e,this.ast,this.ast),i=[e.pos-1,r.end];return e.length===0&&this.#e(i,"Type parameter list cannot be empty."),{type:yn.TSTypeParameterDeclaration,loc:DV(i,this.ast),range:i,params:this.convertChildren(e)}}convertParameters(e){return e?.length?e.map(r=>{let i=this.convertChild(r);return i.decorators=this.convertChildren(tee(r)??[]),i}):[]}converter(e,r,i){if(!e)return null;this.#r(e);let s=this.allowPattern;i!=null&&(this.allowPattern=i);let l=this.convertNode(e,r??e.parent);return this.registerTSNodeInNodeMap(e,l),this.allowPattern=s,l}convertImportAttributes(e){let r=e.attributes??e.assertClause;return this.convertChildren(r?.elements??[])}convertJSXIdentifier(e){let r=this.createNode(e,{type:yn.JSXIdentifier,name:e.getText()});return this.registerTSNodeInNodeMap(e,r),r}convertJSXNamespaceOrIdentifier(e){if(e.kind===Xl.JsxNamespacedName){let s=this.createNode(e,{type:yn.JSXNamespacedName,name:this.createNode(e.name,{type:yn.JSXIdentifier,name:e.name.text}),namespace:this.createNode(e.namespace,{type:yn.JSXIdentifier,name:e.namespace.text})});return this.registerTSNodeInNodeMap(e,s),s}let r=e.getText(),i=r.indexOf(":");if(i>0){let s=KY(e,this.ast),l=this.createNode(e,{type:yn.JSXNamespacedName,range:s,name:this.createNode(e,{type:yn.JSXIdentifier,range:[s[0]+i+1,s[1]],name:r.slice(i+1)}),namespace:this.createNode(e,{type:yn.JSXIdentifier,range:[s[0],s[0]+i],name:r.slice(0,i)})});return this.registerTSNodeInNodeMap(e,l),l}return this.convertJSXIdentifier(e)}convertJSXTagName(e,r){let i;switch(e.kind){case Ur.PropertyAccessExpression:e.name.kind===Ur.PrivateIdentifier&&this.#e(e.name,"Non-private identifier expected."),i=this.createNode(e,{type:yn.JSXMemberExpression,object:this.convertJSXTagName(e.expression,r),property:this.convertJSXIdentifier(e.name)});break;case Ur.ThisKeyword:case Ur.Identifier:default:return this.convertJSXNamespaceOrIdentifier(e)}return this.registerTSNodeInNodeMap(e,i),i}convertMethodSignature(e){return this.createNode(e,{type:yn.TSMethodSignature,accessibility:EV(e),computed:QY(e.name),key:this.convertChild(e.name),kind:(()=>{switch(e.kind){case Ur.GetAccessor:return"get";case Ur.SetAccessor:return"set";case Ur.MethodSignature:return"method"}})(),optional:JBt(e),params:this.convertParameters(e.parameters),readonly:E_(Ur.ReadonlyKeyword,e),returnType:e.type&&this.convertTypeAnnotation(e.type,e),static:E_(Ur.StaticKeyword,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)})}fixParentLocation(e,r){r[0]e.range[1]&&(e.range[1]=r[1],e.loc.end=fDe(e.range[1],this.ast))}convertNode(e,r){switch(e.kind){case Ur.SourceFile:return this.createNode(e,{type:yn.Program,range:[e.getStart(this.ast),e.endOfFileToken.end],body:this.convertBodyExpressions(e.statements,e),comments:void 0,sourceType:e.externalModuleIndicator?"module":"script",tokens:void 0});case Ur.Block:return this.createNode(e,{type:yn.BlockStatement,body:this.convertBodyExpressions(e.statements,e)});case Ur.Identifier:return xun(e)?this.createNode(e,{type:yn.ThisExpression}):this.createNode(e,{type:yn.Identifier,decorators:[],name:e.text,optional:!1,typeAnnotation:void 0});case Ur.PrivateIdentifier:return this.createNode(e,{type:yn.PrivateIdentifier,name:e.text.slice(1)});case Ur.WithStatement:return this.createNode(e,{type:yn.WithStatement,body:this.convertChild(e.statement),object:this.convertChild(e.expression)});case Ur.ReturnStatement:return this.createNode(e,{type:yn.ReturnStatement,argument:this.convertChild(e.expression)});case Ur.LabeledStatement:return this.createNode(e,{type:yn.LabeledStatement,body:this.convertChild(e.statement),label:this.convertChild(e.label)});case Ur.ContinueStatement:return this.createNode(e,{type:yn.ContinueStatement,label:this.convertChild(e.label)});case Ur.BreakStatement:return this.createNode(e,{type:yn.BreakStatement,label:this.convertChild(e.label)});case Ur.IfStatement:return this.createNode(e,{type:yn.IfStatement,alternate:this.convertChild(e.elseStatement),consequent:this.convertChild(e.thenStatement),test:this.convertChild(e.expression)});case Ur.SwitchStatement:return e.caseBlock.clauses.filter(i=>i.kind===Ur.DefaultClause).length>1&&this.#e(e,"A 'default' clause cannot appear more than once in a 'switch' statement."),this.createNode(e,{type:yn.SwitchStatement,cases:this.convertChildren(e.caseBlock.clauses),discriminant:this.convertChild(e.expression)});case Ur.CaseClause:case Ur.DefaultClause:return this.createNode(e,{type:yn.SwitchCase,consequent:this.convertChildren(e.statements),test:e.kind===Ur.CaseClause?this.convertChild(e.expression):null});case Ur.ThrowStatement:return e.expression.end===e.expression.pos&&this.#e(e,"A throw statement must throw an expression."),this.createNode(e,{type:yn.ThrowStatement,argument:this.convertChild(e.expression)});case Ur.TryStatement:return this.createNode(e,{type:yn.TryStatement,block:this.convertChild(e.tryBlock),finalizer:this.convertChild(e.finallyBlock),handler:this.convertChild(e.catchClause)});case Ur.CatchClause:return e.variableDeclaration?.initializer&&this.#e(e.variableDeclaration.initializer,"Catch clause variable cannot have an initializer."),this.createNode(e,{type:yn.CatchClause,body:this.convertChild(e.block),param:e.variableDeclaration?this.convertBindingNameWithTypeAnnotation(e.variableDeclaration.name,e.variableDeclaration.type):null});case Ur.WhileStatement:return this.createNode(e,{type:yn.WhileStatement,body:this.convertChild(e.statement),test:this.convertChild(e.expression)});case Ur.DoStatement:return this.createNode(e,{type:yn.DoWhileStatement,body:this.convertChild(e.statement),test:this.convertChild(e.expression)});case Ur.ForStatement:return this.createNode(e,{type:yn.ForStatement,body:this.convertChild(e.statement),init:this.convertChild(e.initializer),test:this.convertChild(e.condition),update:this.convertChild(e.incrementor)});case Ur.ForInStatement:return this.#t(e.initializer,e.kind),this.createNode(e,{type:yn.ForInStatement,body:this.convertChild(e.statement),left:this.convertPattern(e.initializer),right:this.convertChild(e.expression)});case Ur.ForOfStatement:return this.#t(e.initializer,e.kind),this.createNode(e,{type:yn.ForOfStatement,await:!!(e.awaitModifier&&e.awaitModifier.kind===Ur.AwaitKeyword),body:this.convertChild(e.statement),left:this.convertPattern(e.initializer),right:this.convertChild(e.expression)});case Ur.FunctionDeclaration:{let i=E_(Ur.DeclareKeyword,e),s=E_(Ur.AsyncKeyword,e),l=!!e.asteriskToken;i?e.body?this.#e(e,"An implementation cannot be declared in ambient contexts."):s?this.#e(e,"'async' modifier cannot be used in an ambient context."):l&&this.#e(e,"Generators are not allowed in an ambient context."):!e.body&&l&&this.#e(e,"A function signature cannot be declared as a generator.");let d=this.createNode(e,{type:e.body?yn.FunctionDeclaration:yn.TSDeclareFunction,async:s,body:this.convertChild(e.body)||void 0,declare:i,expression:!1,generator:l,id:this.convertChild(e.name),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,d)}case Ur.VariableDeclaration:{let i=!!e.exclamationToken,s=this.convertChild(e.initializer),l=this.convertBindingNameWithTypeAnnotation(e.name,e.type,e);return i&&(s?this.#e(e,"Declarations with initializers cannot also have definite assignment assertions."):(l.type!==yn.Identifier||!l.typeAnnotation)&&this.#e(e,"Declarations with definite assignment assertions must also have type annotations.")),this.createNode(e,{type:yn.VariableDeclarator,definite:i,id:l,init:s})}case Ur.VariableStatement:{let i=this.createNode(e,{type:yn.VariableDeclaration,declarations:this.convertChildren(e.declarationList.declarations),declare:E_(Ur.DeclareKeyword,e),kind:xYe(e.declarationList)});return i.declarations.length||this.#e(e,"A variable declaration list must have at least one variable declarator."),(i.kind==="using"||i.kind==="await using")&&e.declarationList.declarations.forEach((s,l)=>{i.declarations[l].init==null&&this.#e(s,`'${i.kind}' declarations must be initialized.`),i.declarations[l].id.type!==yn.Identifier&&this.#e(s.name,`'${i.kind}' declarations may not have binding patterns.`)}),(i.declare||["await using","const","using"].includes(i.kind))&&e.declarationList.declarations.forEach((s,l)=>{i.declarations[l].definite&&this.#e(s,"A definite assignment assertion '!' is not permitted in this context.")}),i.declare&&e.declarationList.declarations.forEach((s,l)=>{i.declarations[l].init&&(["let","var"].includes(i.kind)||i.declarations[l].id.typeAnnotation)&&this.#e(s,"Initializers are not permitted in ambient contexts.")}),this.fixExports(e,i)}case Ur.VariableDeclarationList:{let i=this.createNode(e,{type:yn.VariableDeclaration,declarations:this.convertChildren(e.declarations),declare:!1,kind:xYe(e)});return(i.kind==="using"||i.kind==="await using")&&e.declarations.forEach((s,l)=>{i.declarations[l].init!=null&&this.#e(s,`'${i.kind}' declarations may not be initialized in for statement.`),i.declarations[l].id.type!==yn.Identifier&&this.#e(s.name,`'${i.kind}' declarations may not have binding patterns.`)}),i}case Ur.ExpressionStatement:return this.createNode(e,{type:yn.ExpressionStatement,directive:void 0,expression:this.convertChild(e.expression)});case Ur.ThisKeyword:return this.createNode(e,{type:yn.ThisExpression});case Ur.ArrayLiteralExpression:return this.allowPattern?this.createNode(e,{type:yn.ArrayPattern,decorators:[],elements:e.elements.map(i=>this.convertPattern(i)),optional:!1,typeAnnotation:void 0}):this.createNode(e,{type:yn.ArrayExpression,elements:this.convertChildren(e.elements)});case Ur.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(e,{type:yn.ObjectPattern,decorators:[],optional:!1,properties:e.properties.map(s=>this.convertPattern(s)),typeAnnotation:void 0});let i=[];for(let s of e.properties)(s.kind===Ur.GetAccessor||s.kind===Ur.SetAccessor||s.kind===Ur.MethodDeclaration)&&!s.body&&this.#e(s.end-1,"'{' expected."),i.push(this.convertChild(s));return this.createNode(e,{type:yn.ObjectExpression,properties:i})}case Ur.PropertyAssignment:{let{exclamationToken:i,questionToken:s}=e;return s&&this.#e(s,"A property assignment cannot have a question token."),i&&this.#e(i,"A property assignment cannot have an exclamation token."),this.createNode(e,{type:yn.Property,computed:QY(e.name),key:this.convertChild(e.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.converter(e.initializer,e,this.allowPattern)})}case Ur.ShorthandPropertyAssignment:{let{exclamationToken:i,modifiers:s,questionToken:l}=e;return s&&this.#e(s[0],"A shorthand property assignment cannot have modifiers."),l&&this.#e(l,"A shorthand property assignment cannot have a question token."),i&&this.#e(i,"A shorthand property assignment cannot have an exclamation token."),e.objectAssignmentInitializer?this.createNode(e,{type:yn.Property,computed:!1,key:this.convertChild(e.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.createNode(e,{type:yn.AssignmentPattern,decorators:[],left:this.convertPattern(e.name),optional:!1,right:this.convertChild(e.objectAssignmentInitializer),typeAnnotation:void 0})}):this.createNode(e,{type:yn.Property,computed:!1,key:this.convertChild(e.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.convertChild(e.name)})}case Ur.ComputedPropertyName:return this.convertChild(e.expression);case Ur.PropertyDeclaration:{let i=E_(Ur.AbstractKeyword,e);i&&e.initializer&&this.#e(e.initializer,"Abstract property cannot have an initializer."),e.name.kind===Ur.StringLiteral&&e.name.text==="constructor"&&this.#e(e.name,"Classes may not have a field named 'constructor'.");let s=E_(Ur.AccessorKeyword,e),l=s?i?yn.TSAbstractAccessorProperty:yn.AccessorProperty:i?yn.TSAbstractPropertyDefinition:yn.PropertyDefinition,d=this.convertChild(e.name);return this.createNode(e,{type:l,accessibility:EV(e),computed:QY(e.name),declare:E_(Ur.DeclareKeyword,e),decorators:this.convertChildren(tee(e)??[]),definite:!!e.exclamationToken,key:d,optional:(d.type===yn.Literal||e.name.kind===Ur.Identifier||e.name.kind===Ur.ComputedPropertyName||e.name.kind===Ur.PrivateIdentifier)&&!!e.questionToken,override:E_(Ur.OverrideKeyword,e),readonly:E_(Ur.ReadonlyKeyword,e),static:E_(Ur.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e),value:i?null:this.convertChild(e.initializer)})}case Ur.GetAccessor:case Ur.SetAccessor:if(e.parent.kind===Ur.InterfaceDeclaration||e.parent.kind===Ur.TypeLiteral)return this.convertMethodSignature(e);case Ur.MethodDeclaration:{let i=E_(Ur.AbstractKeyword,e);i&&e.body&&this.#e(e.name,e.kind===Ur.GetAccessor||e.kind===Ur.SetAccessor?"An abstract accessor cannot have an implementation.":`Method '${Eun(e.name,this.ast)}' cannot have an implementation because it is marked abstract.`);let s=this.createNode(e,{type:e.body?yn.FunctionExpression:yn.TSEmptyBodyFunctionExpression,range:[e.parameters.pos-1,e.end],async:E_(Ur.AsyncKeyword,e),body:this.convertChild(e.body),declare:!1,expression:!1,generator:!!e.asteriskToken,id:null,params:[],returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});s.typeParameters&&this.fixParentLocation(s,s.typeParameters.range);let l;if(r.kind===Ur.ObjectLiteralExpression)s.params=this.convertChildren(e.parameters),l=this.createNode(e,{type:yn.Property,computed:QY(e.name),key:this.convertChild(e.name),kind:"init",method:e.kind===Ur.MethodDeclaration,optional:!!e.questionToken,shorthand:!1,value:s});else{s.params=this.convertParameters(e.parameters);let d=i?yn.TSAbstractMethodDefinition:yn.MethodDefinition;l=this.createNode(e,{type:d,accessibility:EV(e),computed:QY(e.name),decorators:this.convertChildren(tee(e)??[]),key:this.convertChild(e.name),kind:"method",optional:!!e.questionToken,override:E_(Ur.OverrideKeyword,e),static:E_(Ur.StaticKeyword,e),value:s})}return e.kind===Ur.GetAccessor?l.kind="get":e.kind===Ur.SetAccessor?l.kind="set":!l.static&&e.name.kind===Ur.StringLiteral&&e.name.text==="constructor"&&l.type!==yn.Property&&(l.kind="constructor"),l}case Ur.Constructor:{let i=oun(e),s=(i&&q6(i,e,this.ast))??e.getFirstToken(),l=this.createNode(e,{type:e.body?yn.FunctionExpression:yn.TSEmptyBodyFunctionExpression,range:[e.parameters.pos-1,e.end],async:!1,body:this.convertChild(e.body),declare:!1,expression:!1,generator:!1,id:null,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});l.typeParameters&&this.fixParentLocation(l,l.typeParameters.range);let d=s.kind===Ur.StringLiteral?this.createNode(s,{type:yn.Literal,raw:s.getText(),value:"constructor"}):this.createNode(e,{type:yn.Identifier,range:[s.getStart(this.ast),s.end],decorators:[],name:"constructor",optional:!1,typeAnnotation:void 0}),h=E_(Ur.StaticKeyword,e);return this.createNode(e,{type:E_(Ur.AbstractKeyword,e)?yn.TSAbstractMethodDefinition:yn.MethodDefinition,accessibility:EV(e),computed:!1,decorators:[],key:d,kind:h?"method":"constructor",optional:!1,override:!1,static:h,value:l})}case Ur.FunctionExpression:return this.createNode(e,{type:yn.FunctionExpression,async:E_(Ur.AsyncKeyword,e),body:this.convertChild(e.body),declare:!1,expression:!1,generator:!!e.asteriskToken,id:this.convertChild(e.name),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case Ur.SuperKeyword:return this.createNode(e,{type:yn.Super});case Ur.ArrayBindingPattern:return this.createNode(e,{type:yn.ArrayPattern,decorators:[],elements:e.elements.map(i=>this.convertPattern(i)),optional:!1,typeAnnotation:void 0});case Ur.OmittedExpression:return null;case Ur.ObjectBindingPattern:return this.createNode(e,{type:yn.ObjectPattern,decorators:[],optional:!1,properties:e.elements.map(i=>this.convertPattern(i)),typeAnnotation:void 0});case Ur.BindingElement:{if(r.kind===Ur.ArrayBindingPattern){let s=this.convertChild(e.name,r);return e.initializer?this.createNode(e,{type:yn.AssignmentPattern,decorators:[],left:s,optional:!1,right:this.convertChild(e.initializer),typeAnnotation:void 0}):e.dotDotDotToken?this.createNode(e,{type:yn.RestElement,argument:s,decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):s}let i;return e.dotDotDotToken?i=this.createNode(e,{type:yn.RestElement,argument:this.convertChild(e.propertyName??e.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):i=this.createNode(e,{type:yn.Property,computed:!!(e.propertyName&&e.propertyName.kind===Ur.ComputedPropertyName),key:this.convertChild(e.propertyName??e.name),kind:"init",method:!1,optional:!1,shorthand:!e.propertyName,value:this.convertChild(e.name)}),e.initializer&&(i.value=this.createNode(e,{type:yn.AssignmentPattern,range:[e.name.getStart(this.ast),e.initializer.end],decorators:[],left:this.convertChild(e.name),optional:!1,right:this.convertChild(e.initializer),typeAnnotation:void 0})),i}case Ur.ArrowFunction:return this.createNode(e,{type:yn.ArrowFunctionExpression,async:E_(Ur.AsyncKeyword,e),body:this.convertChild(e.body),expression:e.body.kind!==Ur.Block,generator:!1,id:null,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case Ur.YieldExpression:return this.createNode(e,{type:yn.YieldExpression,argument:this.convertChild(e.expression),delegate:!!e.asteriskToken});case Ur.AwaitExpression:return this.createNode(e,{type:yn.AwaitExpression,argument:this.convertChild(e.expression)});case Ur.NoSubstitutionTemplateLiteral:return this.createNode(e,{type:yn.TemplateLiteral,expressions:[],quasis:[this.createNode(e,{type:yn.TemplateElement,tail:!0,value:{cooked:e.text,raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-1)}})]});case Ur.TemplateExpression:{let i=this.createNode(e,{type:yn.TemplateLiteral,expressions:[],quasis:[this.convertChild(e.head)]});return e.templateSpans.forEach(s=>{i.expressions.push(this.convertChild(s.expression)),i.quasis.push(this.convertChild(s.literal))}),i}case Ur.TaggedTemplateExpression:return e.tag.flags&PD.OptionalChain&&this.#e(e,"Tagged template expressions are not permitted in an optional chain."),this.createNode(e,{type:yn.TaggedTemplateExpression,quasi:this.convertChild(e.template),tag:this.convertChild(e.tag),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case Ur.TemplateHead:case Ur.TemplateMiddle:case Ur.TemplateTail:{let i=e.kind===Ur.TemplateTail;return this.createNode(e,{type:yn.TemplateElement,tail:i,value:{cooked:e.text,raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-(i?1:2))}})}case Ur.SpreadAssignment:case Ur.SpreadElement:return this.allowPattern?this.createNode(e,{type:yn.RestElement,argument:this.convertPattern(e.expression),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):this.createNode(e,{type:yn.SpreadElement,argument:this.convertChild(e.expression)});case Ur.Parameter:{let i,s;return e.dotDotDotToken?i=s=this.createNode(e,{type:yn.RestElement,argument:this.convertChild(e.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):e.initializer?(i=this.convertChild(e.name),s=this.createNode(e,{type:yn.AssignmentPattern,range:[e.name.getStart(this.ast),e.initializer.end],decorators:[],left:i,optional:!1,right:this.convertChild(e.initializer),typeAnnotation:void 0}),E8(e)&&(s.range[0]=i.range[0],s.loc=DV(s.range,this.ast))):i=s=this.convertChild(e.name,r),e.type&&(i.typeAnnotation=this.convertTypeAnnotation(e.type,e),this.fixParentLocation(i,i.typeAnnotation.range)),e.questionToken&&(e.questionToken.end>i.range[1]&&(i.range[1]=e.questionToken.end,i.loc.end=fDe(i.range[1],this.ast)),i.optional=!0),E8(e)?this.createNode(e,{type:yn.TSParameterProperty,accessibility:EV(e),decorators:[],override:E_(Ur.OverrideKeyword,e),parameter:s,readonly:E_(Ur.ReadonlyKeyword,e),static:E_(Ur.StaticKeyword,e)}):s}case Ur.ClassDeclaration:!e.name&&(!E_(Xl.ExportKeyword,e)||!E_(Xl.DefaultKeyword,e))&&this.#e(e,"A class declaration without the 'default' modifier must have a name.");case Ur.ClassExpression:{let i=e.heritageClauses??[],s=e.kind===Ur.ClassDeclaration?yn.ClassDeclaration:yn.ClassExpression,l,d;for(let S of i){let{token:b,types:A}=S;A.length===0&&this.#e(S,`'${Bm(b)}' list cannot be empty.`),b===Ur.ExtendsKeyword?(l&&this.#e(S,"'extends' clause already seen."),d&&this.#e(S,"'extends' clause must precede 'implements' clause."),A.length>1&&this.#e(A[1],"Classes can only extend a single class."),l??(l=S)):b===Ur.ImplementsKeyword&&(d&&this.#e(S,"'implements' clause already seen."),d??(d=S))}let h=this.createNode(e,{type:s,abstract:E_(Ur.AbstractKeyword,e),body:this.createNode(e,{type:yn.ClassBody,range:[e.members.pos-1,e.end],body:this.convertChildren(e.members.filter(iun))}),declare:E_(Ur.DeclareKeyword,e),decorators:this.convertChildren(tee(e)??[]),id:this.convertChild(e.name),implements:this.convertChildren(d?.types??[]),superClass:l?.types[0]?this.convertChild(l.types[0].expression):null,superTypeArguments:void 0,typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return l?.types[0]?.typeArguments&&(h.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(l.types[0].typeArguments,l.types[0])),this.fixExports(e,h)}case Ur.ModuleBlock:return this.createNode(e,{type:yn.TSModuleBlock,body:this.convertBodyExpressions(e.statements,e)});case Ur.ImportDeclaration:{this.assertModuleSpecifier(e,!1);let i=this.createNode(e,this.#n({type:yn.ImportDeclaration,attributes:this.convertImportAttributes(e),importKind:"value",source:this.convertChild(e.moduleSpecifier),specifiers:[]},"assertions","attributes",!0));if(e.importClause&&(e.importClause.isTypeOnly&&(i.importKind="type"),e.importClause.name&&i.specifiers.push(this.convertChild(e.importClause)),e.importClause.namedBindings))switch(e.importClause.namedBindings.kind){case Ur.NamespaceImport:i.specifiers.push(this.convertChild(e.importClause.namedBindings));break;case Ur.NamedImports:i.specifiers.push(...this.convertChildren(e.importClause.namedBindings.elements));break}return i}case Ur.NamespaceImport:return this.createNode(e,{type:yn.ImportNamespaceSpecifier,local:this.convertChild(e.name)});case Ur.ImportSpecifier:return this.createNode(e,{type:yn.ImportSpecifier,imported:this.convertChild(e.propertyName??e.name),importKind:e.isTypeOnly?"type":"value",local:this.convertChild(e.name)});case Ur.ImportClause:{let i=this.convertChild(e.name);return this.createNode(e,{type:yn.ImportDefaultSpecifier,range:i.range,local:i})}case Ur.ExportDeclaration:return e.exportClause?.kind===Ur.NamedExports?(this.assertModuleSpecifier(e,!0),this.createNode(e,this.#n({type:yn.ExportNamedDeclaration,attributes:this.convertImportAttributes(e),declaration:null,exportKind:e.isTypeOnly?"type":"value",source:this.convertChild(e.moduleSpecifier),specifiers:this.convertChildren(e.exportClause.elements,e)},"assertions","attributes",!0))):(this.assertModuleSpecifier(e,!1),this.createNode(e,this.#n({type:yn.ExportAllDeclaration,attributes:this.convertImportAttributes(e),exported:e.exportClause?.kind===Ur.NamespaceExport?this.convertChild(e.exportClause.name):null,exportKind:e.isTypeOnly?"type":"value",source:this.convertChild(e.moduleSpecifier)},"assertions","attributes",!0)));case Ur.ExportSpecifier:{let i=e.propertyName??e.name;return i.kind===Ur.StringLiteral&&r.kind===Ur.ExportDeclaration&&r.moduleSpecifier?.kind!==Ur.StringLiteral&&this.#e(i,"A string literal cannot be used as a local exported binding without `from`."),this.createNode(e,{type:yn.ExportSpecifier,exported:this.convertChild(e.name),exportKind:e.isTypeOnly?"type":"value",local:this.convertChild(i)})}case Ur.ExportAssignment:return e.isExportEquals?this.createNode(e,{type:yn.TSExportAssignment,expression:this.convertChild(e.expression)}):this.createNode(e,{type:yn.ExportDefaultDeclaration,declaration:this.convertChild(e.expression),exportKind:"value"});case Ur.PrefixUnaryExpression:case Ur.PostfixUnaryExpression:{let i=mB(e.operator);return i==="++"||i==="--"?(TYe(e.operand)||this.#e(e.operand,"Invalid left-hand side expression in unary operation"),this.createNode(e,{type:yn.UpdateExpression,argument:this.convertChild(e.operand),operator:i,prefix:e.kind===Ur.PrefixUnaryExpression})):this.createNode(e,{type:yn.UnaryExpression,argument:this.convertChild(e.operand),operator:i,prefix:e.kind===Ur.PrefixUnaryExpression})}case Ur.DeleteExpression:return this.createNode(e,{type:yn.UnaryExpression,argument:this.convertChild(e.expression),operator:"delete",prefix:!0});case Ur.VoidExpression:return this.createNode(e,{type:yn.UnaryExpression,argument:this.convertChild(e.expression),operator:"void",prefix:!0});case Ur.TypeOfExpression:return this.createNode(e,{type:yn.UnaryExpression,argument:this.convertChild(e.expression),operator:"typeof",prefix:!0});case Ur.TypeOperator:return this.createNode(e,{type:yn.TSTypeOperator,operator:mB(e.operator),typeAnnotation:this.convertChild(e.type)});case Ur.BinaryExpression:{if(e.operatorToken.kind!==Ur.InKeyword&&e.left.kind===Ur.PrivateIdentifier?this.#e(e.left,"Private identifiers cannot appear on the right-hand-side of an 'in' expression."):e.right.kind===Ur.PrivateIdentifier&&this.#e(e.right,"Private identifiers are only allowed on the left-hand-side of an 'in' expression."),aun(e.operatorToken)){let s=this.createNode(e,{type:yn.SequenceExpression,expressions:[]}),l=this.convertChild(e.left);return l.type===yn.SequenceExpression&&e.left.kind!==Ur.ParenthesizedExpression?s.expressions.push(...l.expressions):s.expressions.push(l),s.expressions.push(this.convertChild(e.right)),s}let i=lun(e.operatorToken);return this.allowPattern&&i.type===yn.AssignmentExpression?this.createNode(e,{type:yn.AssignmentPattern,decorators:[],left:this.convertPattern(e.left,e),optional:!1,right:this.convertChild(e.right),typeAnnotation:void 0}):this.createNode(e,{...i,left:this.converter(e.left,e,i.type===yn.AssignmentExpression),right:this.convertChild(e.right)})}case Ur.PropertyAccessExpression:{let i=this.convertChild(e.expression),s=this.convertChild(e.name),l=this.createNode(e,{type:yn.MemberExpression,computed:!1,object:i,optional:e.questionDotToken!=null,property:s});return this.convertChainExpression(l,e)}case Ur.ElementAccessExpression:{let i=this.convertChild(e.expression),s=this.convertChild(e.argumentExpression),l=this.createNode(e,{type:yn.MemberExpression,computed:!0,object:i,optional:e.questionDotToken!=null,property:s});return this.convertChainExpression(l,e)}case Ur.CallExpression:{if(e.expression.kind===Ur.ImportKeyword)return e.arguments.length!==1&&e.arguments.length!==2&&this.#e(e.arguments[2]??e,"Dynamic import requires exactly one or two arguments."),this.createNode(e,this.#n({type:yn.ImportExpression,options:e.arguments[1]?this.convertChild(e.arguments[1]):null,source:this.convertChild(e.arguments[0])},"attributes","options",!0));let i=this.convertChild(e.expression),s=this.convertChildren(e.arguments),l=e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e),d=this.createNode(e,{type:yn.CallExpression,arguments:s,callee:i,optional:e.questionDotToken!=null,typeArguments:l});return this.convertChainExpression(d,e)}case Ur.NewExpression:{let i=e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e);return this.createNode(e,{type:yn.NewExpression,arguments:this.convertChildren(e.arguments??[]),callee:this.convertChild(e.expression),typeArguments:i})}case Ur.ConditionalExpression:return this.createNode(e,{type:yn.ConditionalExpression,alternate:this.convertChild(e.whenFalse),consequent:this.convertChild(e.whenTrue),test:this.convertChild(e.condition)});case Ur.MetaProperty:return this.createNode(e,{type:yn.MetaProperty,meta:this.createNode(e.getFirstToken(),{type:yn.Identifier,decorators:[],name:mB(e.keywordToken),optional:!1,typeAnnotation:void 0}),property:this.convertChild(e.name)});case Ur.Decorator:return this.createNode(e,{type:yn.Decorator,expression:this.convertChild(e.expression)});case Ur.StringLiteral:return this.createNode(e,{type:yn.Literal,raw:e.getText(),value:r.kind===Ur.JsxAttribute?qBt(e.text):e.text});case Ur.NumericLiteral:return this.createNode(e,{type:yn.Literal,raw:e.getText(),value:Number(e.text)});case Ur.BigIntLiteral:{let i=KY(e,this.ast),s=this.ast.text.slice(i[0],i[1]),l=ree(0,s.slice(0,-1),"_",""),d=typeof BigInt<"u"?BigInt(l):null;return this.createNode(e,{type:yn.Literal,range:i,bigint:d==null?l:String(d),raw:s,value:d})}case Ur.RegularExpressionLiteral:{let i=e.text.slice(1,e.text.lastIndexOf("/")),s=e.text.slice(e.text.lastIndexOf("/")+1),l=null;try{l=new RegExp(i,s)}catch{}return this.createNode(e,{type:yn.Literal,raw:e.text,regex:{flags:s,pattern:i},value:l})}case Ur.TrueKeyword:return this.createNode(e,{type:yn.Literal,raw:"true",value:!0});case Ur.FalseKeyword:return this.createNode(e,{type:yn.Literal,raw:"false",value:!1});case Ur.NullKeyword:return this.createNode(e,{type:yn.Literal,raw:"null",value:null});case Ur.EmptyStatement:return this.createNode(e,{type:yn.EmptyStatement});case Ur.DebuggerStatement:return this.createNode(e,{type:yn.DebuggerStatement});case Ur.JsxElement:return this.createNode(e,{type:yn.JSXElement,children:this.convertChildren(e.children),closingElement:this.convertChild(e.closingElement),openingElement:this.convertChild(e.openingElement)});case Ur.JsxFragment:return this.createNode(e,{type:yn.JSXFragment,children:this.convertChildren(e.children),closingFragment:this.convertChild(e.closingFragment),openingFragment:this.convertChild(e.openingFragment)});case Ur.JsxSelfClosingElement:return this.createNode(e,{type:yn.JSXElement,children:[],closingElement:null,openingElement:this.createNode(e,{type:yn.JSXOpeningElement,range:KY(e,this.ast),attributes:this.convertChildren(e.attributes.properties),name:this.convertJSXTagName(e.tagName,e),selfClosing:!0,typeArguments:e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):void 0})});case Ur.JsxOpeningElement:return this.createNode(e,{type:yn.JSXOpeningElement,attributes:this.convertChildren(e.attributes.properties),name:this.convertJSXTagName(e.tagName,e),selfClosing:!1,typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case Ur.JsxClosingElement:return this.createNode(e,{type:yn.JSXClosingElement,name:this.convertJSXTagName(e.tagName,e)});case Ur.JsxOpeningFragment:return this.createNode(e,{type:yn.JSXOpeningFragment});case Ur.JsxClosingFragment:return this.createNode(e,{type:yn.JSXClosingFragment});case Ur.JsxExpression:{let i=e.expression?this.convertChild(e.expression):this.createNode(e,{type:yn.JSXEmptyExpression,range:[e.getStart(this.ast)+1,e.getEnd()-1]});return e.dotDotDotToken?this.createNode(e,{type:yn.JSXSpreadChild,expression:i}):this.createNode(e,{type:yn.JSXExpressionContainer,expression:i})}case Ur.JsxAttribute:return this.createNode(e,{type:yn.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(e.name),value:this.convertChild(e.initializer)});case Ur.JsxText:{let i=e.getFullStart(),s=e.getEnd(),l=this.ast.text.slice(i,s);return this.createNode(e,{type:yn.JSXText,range:[i,s],raw:l,value:qBt(l)})}case Ur.JsxSpreadAttribute:return this.createNode(e,{type:yn.JSXSpreadAttribute,argument:this.convertChild(e.expression)});case Ur.QualifiedName:return this.createNode(e,{type:yn.TSQualifiedName,left:this.convertChild(e.left),right:this.convertChild(e.right)});case Ur.TypeReference:return this.createNode(e,{type:yn.TSTypeReference,typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e),typeName:this.convertChild(e.typeName)});case Ur.TypeParameter:return this.createNode(e,{type:yn.TSTypeParameter,const:E_(Ur.ConstKeyword,e),constraint:e.constraint&&this.convertChild(e.constraint),default:e.default?this.convertChild(e.default):void 0,in:E_(Ur.InKeyword,e),name:this.convertChild(e.name),out:E_(Ur.OutKeyword,e)});case Ur.ThisType:return this.createNode(e,{type:yn.TSThisType});case Ur.AnyKeyword:case Ur.BigIntKeyword:case Ur.BooleanKeyword:case Ur.NeverKeyword:case Ur.NumberKeyword:case Ur.ObjectKeyword:case Ur.StringKeyword:case Ur.SymbolKeyword:case Ur.UnknownKeyword:case Ur.VoidKeyword:case Ur.UndefinedKeyword:case Ur.IntrinsicKeyword:return this.createNode(e,{type:yn[`TS${Ur[e.kind]}`]});case Ur.NonNullExpression:{let i=this.createNode(e,{type:yn.TSNonNullExpression,expression:this.convertChild(e.expression)});return this.convertChainExpression(i,e)}case Ur.TypeLiteral:return this.createNode(e,{type:yn.TSTypeLiteral,members:this.convertChildren(e.members)});case Ur.ArrayType:return this.createNode(e,{type:yn.TSArrayType,elementType:this.convertChild(e.elementType)});case Ur.IndexedAccessType:return this.createNode(e,{type:yn.TSIndexedAccessType,indexType:this.convertChild(e.indexType),objectType:this.convertChild(e.objectType)});case Ur.ConditionalType:return this.createNode(e,{type:yn.TSConditionalType,checkType:this.convertChild(e.checkType),extendsType:this.convertChild(e.extendsType),falseType:this.convertChild(e.falseType),trueType:this.convertChild(e.trueType)});case Ur.TypeQuery:return this.createNode(e,{type:yn.TSTypeQuery,exprName:this.convertChild(e.exprName),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case Ur.MappedType:return e.members&&e.members.length>0&&this.#e(e.members[0],"A mapped type may not declare properties or methods."),this.createNode(e,this.#i({type:yn.TSMappedType,constraint:this.convertChild(e.typeParameter.constraint),key:this.convertChild(e.typeParameter.name),nameType:this.convertChild(e.nameType)??null,optional:e.questionToken?e.questionToken.kind===Ur.QuestionToken||mB(e.questionToken.kind):!1,readonly:e.readonlyToken?e.readonlyToken.kind===Ur.ReadonlyKeyword||mB(e.readonlyToken.kind):void 0,typeAnnotation:e.type&&this.convertChild(e.type)},"typeParameter","'constraint' and 'key'",this.convertChild(e.typeParameter)));case Ur.ParenthesizedExpression:return this.convertChild(e.expression,r);case Ur.TypeAliasDeclaration:{let i=this.createNode(e,{type:yn.TSTypeAliasDeclaration,declare:E_(Ur.DeclareKeyword,e),id:this.convertChild(e.name),typeAnnotation:this.convertChild(e.type),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,i)}case Ur.MethodSignature:return this.convertMethodSignature(e);case Ur.PropertySignature:{let{initializer:i}=e;return i&&this.#e(i,"A property signature cannot have an initializer."),this.createNode(e,{type:yn.TSPropertySignature,accessibility:EV(e),computed:QY(e.name),key:this.convertChild(e.name),optional:JBt(e),readonly:E_(Ur.ReadonlyKeyword,e),static:E_(Ur.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e)})}case Ur.IndexSignature:return this.createNode(e,{type:yn.TSIndexSignature,accessibility:EV(e),parameters:this.convertChildren(e.parameters),readonly:E_(Ur.ReadonlyKeyword,e),static:E_(Ur.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e)});case Ur.ConstructorType:return this.createNode(e,{type:yn.TSConstructorType,abstract:E_(Ur.AbstractKeyword,e),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case Ur.FunctionType:{let{modifiers:i}=e;i&&this.#e(i[0],"A function type cannot have modifiers.")}case Ur.ConstructSignature:case Ur.CallSignature:{let i=e.kind===Ur.ConstructSignature?yn.TSConstructSignatureDeclaration:e.kind===Ur.CallSignature?yn.TSCallSignatureDeclaration:yn.TSFunctionType;return this.createNode(e,{type:i,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)})}case Ur.ExpressionWithTypeArguments:{let i=r.kind,s=i===Ur.InterfaceDeclaration?yn.TSInterfaceHeritage:i===Ur.HeritageClause?yn.TSClassImplements:yn.TSInstantiationExpression;return this.createNode(e,{type:s,expression:this.convertChild(e.expression),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)})}case Ur.InterfaceDeclaration:{let i=e.heritageClauses??[],s=[],l=!1;for(let h of i){h.token!==Ur.ExtendsKeyword&&this.#e(h,h.token===Ur.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token."),l&&this.#e(h,"'extends' clause already seen."),l=!0;for(let S of h.types)(!WUt(S.expression)||Uon(S.expression))&&this.#e(S,"Interface declaration can only extend an identifier/qualified name with optional type arguments."),s.push(this.convertChild(S,e))}let d=this.createNode(e,{type:yn.TSInterfaceDeclaration,body:this.createNode(e,{type:yn.TSInterfaceBody,range:[e.members.pos-1,e.end],body:this.convertChildren(e.members)}),declare:E_(Ur.DeclareKeyword,e),extends:s,id:this.convertChild(e.name),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,d)}case Ur.TypePredicate:{let i=this.createNode(e,{type:yn.TSTypePredicate,asserts:e.assertsModifier!=null,parameterName:this.convertChild(e.parameterName),typeAnnotation:null});return e.type&&(i.typeAnnotation=this.convertTypeAnnotation(e.type,e),i.typeAnnotation.loc=i.typeAnnotation.typeAnnotation.loc,i.typeAnnotation.range=i.typeAnnotation.typeAnnotation.range),i}case Ur.ImportType:{let i=KY(e,this.ast);if(e.isTypeOf){let S=q6(e.getFirstToken(),e,this.ast);i[0]=S.getStart(this.ast)}let s=null;if(e.attributes){let S=this.createNode(e.attributes,{type:yn.ObjectExpression,properties:e.attributes.elements.map(X=>this.createNode(X,{type:yn.Property,computed:!1,key:this.convertChild(X.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.convertChild(X.value)}))}),b=q6(e.argument,e,this.ast),A=q6(b,e,this.ast),L=q6(e.attributes,e,this.ast),V=L.kind===Xl.CommaToken?q6(L,e,this.ast):L,j=q6(A,e,this.ast),ie=KY(j,this.ast),te=j.kind===Xl.AssertKeyword?"assert":"with";s=this.createNode(e,{type:yn.ObjectExpression,range:[A.getStart(this.ast),V.end],properties:[this.createNode(e,{type:yn.Property,range:[ie[0],e.attributes.end],computed:!1,key:this.createNode(e,{type:yn.Identifier,range:ie,decorators:[],name:te,optional:!1,typeAnnotation:void 0}),kind:"init",method:!1,optional:!1,shorthand:!1,value:S})]})}let l=this.convertChild(e.argument),d=l.literal,h=this.createNode(e,this.#i({type:yn.TSImportType,range:i,options:s,qualifier:this.convertChild(e.qualifier),source:d,typeArguments:e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):null},"argument","source",l));return e.isTypeOf?this.createNode(e,{type:yn.TSTypeQuery,exprName:h,typeArguments:void 0}):h}case Ur.EnumDeclaration:{let i=this.convertChildren(e.members),s=this.createNode(e,this.#i({type:yn.TSEnumDeclaration,body:this.createNode(e,{type:yn.TSEnumBody,range:[e.members.pos-1,e.end],members:i}),const:E_(Ur.ConstKeyword,e),declare:E_(Ur.DeclareKeyword,e),id:this.convertChild(e.name)},"members","'body.members'",this.convertChildren(e.members)));return this.fixExports(e,s)}case Ur.EnumMember:{let i=e.name.kind===Xl.ComputedPropertyName;return i&&this.#e(e.name,"Computed property names are not allowed in enums."),(e.name.kind===Ur.NumericLiteral||e.name.kind===Ur.BigIntLiteral)&&this.#e(e.name,"An enum member cannot have a numeric name."),this.createNode(e,this.#i({type:yn.TSEnumMember,id:this.convertChild(e.name),initializer:e.initializer&&this.convertChild(e.initializer)},"computed",void 0,i))}case Ur.ModuleDeclaration:{let i=E_(Ur.DeclareKeyword,e),s=this.createNode(e,{type:yn.TSModuleDeclaration,...(()=>{if(e.flags&PD.GlobalAugmentation){let d=this.convertChild(e.name),h=this.convertChild(e.body);return(h==null||h.type===yn.TSModuleDeclaration)&&this.#e(e.body??e,"Expected a valid module body"),d.type!==yn.Identifier&&this.#e(e.name,"global module augmentation must have an Identifier id"),{body:h,declare:!1,global:!1,id:d,kind:"global"}}if(uee(e.name)){let d=this.convertChild(e.body);return{kind:"module",...d!=null?{body:d}:{},declare:!1,global:!1,id:this.convertChild(e.name)}}e.body==null&&this.#e(e,"Expected a module body"),e.name.kind!==Xl.Identifier&&this.#e(e.name,"`namespace`s must have an Identifier id");let l=this.createNode(e.name,{type:yn.Identifier,range:[e.name.getStart(this.ast),e.name.getEnd()],decorators:[],name:e.name.text,optional:!1,typeAnnotation:void 0});for(;e.body&&f_e(e.body)&&e.body.name;){e=e.body,i||(i=E_(Ur.DeclareKeyword,e));let d=e.name,h=this.createNode(d,{type:yn.Identifier,range:[d.getStart(this.ast),d.getEnd()],decorators:[],name:d.text,optional:!1,typeAnnotation:void 0});l=this.createNode(d,{type:yn.TSQualifiedName,range:[l.range[0],h.range[1]],left:l,right:h})}return{body:this.convertChild(e.body),declare:!1,global:!1,id:l,kind:e.flags&PD.Namespace?"namespace":"module"}})()});return s.declare=i,e.flags&PD.GlobalAugmentation&&(s.global=!0),this.fixExports(e,s)}case Ur.ParenthesizedType:return this.convertChild(e.type);case Ur.UnionType:return this.createNode(e,{type:yn.TSUnionType,types:this.convertChildren(e.types)});case Ur.IntersectionType:return this.createNode(e,{type:yn.TSIntersectionType,types:this.convertChildren(e.types)});case Ur.AsExpression:return this.createNode(e,{type:yn.TSAsExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});case Ur.InferType:return this.createNode(e,{type:yn.TSInferType,typeParameter:this.convertChild(e.typeParameter)});case Ur.LiteralType:return e.literal.kind===Ur.NullKeyword?this.createNode(e.literal,{type:yn.TSNullKeyword}):this.createNode(e,{type:yn.TSLiteralType,literal:this.convertChild(e.literal)});case Ur.TypeAssertionExpression:return this.createNode(e,{type:yn.TSTypeAssertion,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});case Ur.ImportEqualsDeclaration:return this.fixExports(e,this.createNode(e,{type:yn.TSImportEqualsDeclaration,id:this.convertChild(e.name),importKind:e.isTypeOnly?"type":"value",moduleReference:this.convertChild(e.moduleReference)}));case Ur.ExternalModuleReference:return e.expression.kind!==Ur.StringLiteral&&this.#e(e.expression,"String literal expected."),this.createNode(e,{type:yn.TSExternalModuleReference,expression:this.convertChild(e.expression)});case Ur.NamespaceExportDeclaration:return this.createNode(e,{type:yn.TSNamespaceExportDeclaration,id:this.convertChild(e.name)});case Ur.AbstractKeyword:return this.createNode(e,{type:yn.TSAbstractKeyword});case Ur.TupleType:{let i=this.convertChildren(e.elements);return this.createNode(e,{type:yn.TSTupleType,elementTypes:i})}case Ur.NamedTupleMember:{let i=this.createNode(e,{type:yn.TSNamedTupleMember,elementType:this.convertChild(e.type,e),label:this.convertChild(e.name,e),optional:e.questionToken!=null});return e.dotDotDotToken?(i.range[0]=i.label.range[0],i.loc.start=i.label.loc.start,this.createNode(e,{type:yn.TSRestType,typeAnnotation:i})):i}case Ur.OptionalType:return this.createNode(e,{type:yn.TSOptionalType,typeAnnotation:this.convertChild(e.type)});case Ur.RestType:return this.createNode(e,{type:yn.TSRestType,typeAnnotation:this.convertChild(e.type)});case Ur.TemplateLiteralType:{let i=this.createNode(e,{type:yn.TSTemplateLiteralType,quasis:[this.convertChild(e.head)],types:[]});return e.templateSpans.forEach(s=>{i.types.push(this.convertChild(s.type)),i.quasis.push(this.convertChild(s.literal))}),i}case Ur.ClassStaticBlockDeclaration:return this.createNode(e,{type:yn.StaticBlock,body:this.convertBodyExpressions(e.body.statements,e)});case Ur.AssertEntry:case Ur.ImportAttribute:return this.createNode(e,{type:yn.ImportAttribute,key:this.convertChild(e.name),value:this.convertChild(e.value)});case Ur.SatisfiesExpression:return this.createNode(e,{type:yn.TSSatisfiesExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});default:return this.deeplyCopy(e)}}createNode(e,r){let i=r;return i.range??(i.range=KY(e,this.ast)),i.loc??(i.loc=DV(i.range,this.ast)),i&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(i,e),i}convertProgram(){return this.converter(this.ast)}deeplyCopy(e){e.kind===Xl.JSDocFunctionType&&this.#e(e,"JSDoc types can only be used inside documentation comments.");let r=`TS${Ur[e.kind]}`;if(this.options.errorOnUnknownASTType&&!yn[r])throw new Error(`Unknown AST_NODE_TYPE: "${r}"`);let i=this.createNode(e,{type:r});"type"in e&&(i.typeAnnotation=e.type&&"kind"in e.type&&Yon(e.type)?this.convertTypeAnnotation(e.type,e):null),"typeArguments"in e&&(i.typeArguments=e.typeArguments&&"pos"in e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):null),"typeParameters"in e&&(i.typeParameters=e.typeParameters&&"pos"in e.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters):null);let s=tee(e);s?.length&&(i.decorators=this.convertChildren(s));let l=new Set(["_children","decorators","end","flags","heritageClauses","illegalDecorators","jsDoc","kind","locals","localSymbol","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(e).filter(([d])=>!l.has(d)).forEach(([d,h])=>{Array.isArray(h)?i[d]=this.convertChildren(h):h&&typeof h=="object"&&h.kind?i[d]=this.convertChild(h):i[d]=h}),i}fixExports(e,r){let i=f_e(e)&&!uee(e.name)?Tun(e):E8(e);if(i?.[0].kind===Ur.ExportKeyword){this.registerTSNodeInNodeMap(e,r);let s=i[0],l=i[1],d=l?.kind===Ur.DefaultKeyword,h=d?q6(l,this.ast,this.ast):q6(s,this.ast,this.ast);if(r.range[0]=h.getStart(this.ast),r.loc=DV(r.range,this.ast),d)return this.createNode(e,{type:yn.ExportDefaultDeclaration,range:[s.getStart(this.ast),r.range[1]],declaration:r,exportKind:"value"});let S=r.type===yn.TSInterfaceDeclaration||r.type===yn.TSTypeAliasDeclaration,b="declare"in r&&r.declare;return this.createNode(e,this.#n({type:yn.ExportNamedDeclaration,range:[s.getStart(this.ast),r.range[1]],attributes:[],declaration:r,exportKind:S||b?"type":"value",source:null,specifiers:[]},"assertions","attributes",!0))}return r}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}registerTSNodeInNodeMap(e,r){r&&this.options.shouldPreserveNodeMaps&&!this.tsNodeToESTreeNodeMap.has(e)&&this.tsNodeToESTreeNodeMap.set(e,r)}};function Lun(e,r,i=e.getSourceFile()){let s=[];for(;;){if(L$t(e.kind))r(e);else{let l=e.getChildren(i);if(l.length===1){e=l[0];continue}for(let d=l.length-1;d>=0;--d)s.push(l[d])}if(s.length===0)break;e=s.pop()}}function Mun(e,r,i=e.getSourceFile()){let s=i.text,l=i.languageVariant!==l$t.JSX;return Lun(e,h=>{if(h.pos!==h.end&&(h.kind!==Xl.JsxText&&son(s,h.pos===0?(A$t(s)??"").length:h.pos,d),l||jun(h)))return con(s,h.end,d)},i);function d(h,S,b){r(s,{end:S,kind:b,pos:h})}}function jun(e){switch(e.kind){case Xl.CloseBraceToken:return e.parent.kind!==Xl.JsxExpression||!tYe(e.parent.parent);case Xl.GreaterThanToken:switch(e.parent.kind){case Xl.JsxClosingElement:case Xl.JsxClosingFragment:return!tYe(e.parent.parent.parent);case Xl.JsxOpeningElement:return e.end!==e.parent.end;case Xl.JsxOpeningFragment:return!1;case Xl.JsxSelfClosingElement:return e.end!==e.parent.end||!tYe(e.parent.parent)}}return!0}function tYe(e){return e.kind===Xl.JsxElement||e.kind===Xl.JsxFragment}var[SVn,bVn]=oin.split(".").map(e=>Number.parseInt(e,10)),xVn=TT.Intrinsic??TT.Any|TT.Unknown|TT.String|TT.Number|TT.BigInt|TT.Boolean|TT.BooleanLiteral|TT.ESSymbol|TT.Void|TT.Undefined|TT.Null|TT.Never|TT.NonPrimitive;function Bun(e,r){let i=[];return Mun(e,(s,l)=>{let d=l.kind===Xl.SingleLineCommentTrivia?rb.Line:rb.Block,h=[l.pos,l.end],S=DV(h,e),b=h[0]+2,A=l.kind===Xl.SingleLineCommentTrivia?h[1]:h[1]-2;i.push({type:d,loc:S,range:h,value:r.slice(b,A)})},e),i}var $un=()=>{};function Uun(e,r,i){let{parseDiagnostics:s}=e;if(s.length)throw Oun(s[0]);let l=new Run(e,{allowInvalidAST:r.allowInvalidAST,errorOnUnknownASTType:r.errorOnUnknownASTType,shouldPreserveNodeMaps:i,suppressDeprecatedPropertyWarnings:r.suppressDeprecatedPropertyWarnings}),d=l.convertProgram();return(!r.range||!r.loc)&&$un(d,{enter:h=>{r.range||delete h.range,r.loc||delete h.loc}}),r.tokens&&(d.tokens=gun(e)),r.comment&&(d.comments=Bun(e,r.codeFullText)),{astMaps:l.getASTMaps(),estree:d}}function GUt(e){if(typeof e!="object"||e==null)return!1;let r=e;return r.kind===Xl.SourceFile&&typeof r.getFullText=="function"}var zun=function(e){return e&&e.__esModule?e:{default:e}},qun=zun({extname:e=>"."+e.split(".").pop()});function Jun(e,r){switch(qun.default.extname(e).toLowerCase()){case iI.Cjs:case iI.Js:case iI.Mjs:return G5.JS;case iI.Cts:case iI.Mts:case iI.Ts:return G5.TS;case iI.Json:return G5.JSON;case iI.Jsx:return G5.JSX;case iI.Tsx:return G5.TSX;default:return r?G5.TSX:G5.TS}}var Vun={default:DYe},Wun=(0,Vun.default)("typescript-eslint:typescript-estree:create-program:createSourceFile");function Gun(e){return Wun("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),GUt(e.code)?e.code:Eln(e.filePath,e.codeFullText,{jsDocParsingMode:e.jsDocParsingMode,languageVersion:FYe.Latest,setExternalModuleIndicator:e.setExternalModuleIndicator},!0,Jun(e.filePath,e.jsx))}var Hun=e=>e,Kun=()=>{},Qun=class{},Zun=()=>!1,Xun=()=>{},Yun=function(e){return e&&e.__esModule?e:{default:e}},epn={},EYe={default:DYe},tpn=Yun({extname:e=>"."+e.split(".").pop()}),rpn=(0,EYe.default)("typescript-eslint:typescript-estree:parseSettings:createParseSettings"),WBt,rYe=null,Kpe={ParseAll:Ype?.ParseAll,ParseForTypeErrors:Ype?.ParseForTypeErrors,ParseForTypeInfo:Ype?.ParseForTypeInfo,ParseNone:Ype?.ParseNone};function npn(e,r={}){let i=ipn(e),s=Zun(r),l,d=typeof r.loggerFn=="function",h=Hun(typeof r.filePath=="string"&&r.filePath!==""?r.filePath:opn(r.jsx),l),S=tpn.default.extname(h).toLowerCase(),b=(()=>{switch(r.jsDocParsingMode){case"all":return Kpe.ParseAll;case"none":return Kpe.ParseNone;case"type-info":return Kpe.ParseForTypeInfo;default:return Kpe.ParseAll}})(),A={loc:r.loc===!0,range:r.range===!0,allowInvalidAST:r.allowInvalidAST===!0,code:e,codeFullText:i,comment:r.comment===!0,comments:[],debugLevel:r.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(r.debugLevel)?new Set(r.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:r.errorOnUnknownASTType===!0,extraFileExtensions:Array.isArray(r.extraFileExtensions)&&r.extraFileExtensions.every(L=>typeof L=="string")?r.extraFileExtensions:[],filePath:h,jsDocParsingMode:b,jsx:r.jsx===!0,log:typeof r.loggerFn=="function"?r.loggerFn:r.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:r.preserveNodeMaps!==!1,programs:Array.isArray(r.programs)?r.programs:null,projects:new Map,projectService:r.projectService||r.project&&r.projectService!==!1&&(void 0).env.TYPESCRIPT_ESLINT_PROJECT_SERVICE==="true"?apn(r.projectService,{jsDocParsingMode:b,tsconfigRootDir:l}):void 0,setExternalModuleIndicator:r.sourceType==="module"||r.sourceType==null&&S===iI.Mjs||r.sourceType==null&&S===iI.Mts?L=>{L.externalModuleIndicator=!0}:void 0,singleRun:s,suppressDeprecatedPropertyWarnings:r.suppressDeprecatedPropertyWarnings??!0,tokens:r.tokens===!0?[]:null,tsconfigMatchCache:WBt??(WBt=new Qun(s?"Infinity":r.cacheLifetime?.glob??void 0)),tsconfigRootDir:l};if(A.projectService&&r.project&&(void 0).env.TYPESCRIPT_ESLINT_IGNORE_PROJECT_AND_PROJECT_SERVICE_ERROR!=="true")throw new Error('Enabling "project" does nothing when "projectService" is enabled. You can remove the "project" setting.');if(A.debugLevel.size>0){let L=[];A.debugLevel.has("typescript-eslint")&&L.push("typescript-eslint:*"),(A.debugLevel.has("eslint")||EYe.default.enabled("eslint:*,-eslint:code-path"))&&L.push("eslint:*,-eslint:code-path"),EYe.default.enable(L.join(","))}if(Array.isArray(r.programs)){if(!r.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");rpn("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!A.programs&&!A.projectService&&(A.projects=new Map),r.jsDocParsingMode==null&&A.projects.size===0&&A.programs==null&&A.projectService==null&&(A.jsDocParsingMode=Kpe.ParseNone),Xun(A,d),A}function ipn(e){return GUt(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function opn(e){return e?"estree.tsx":"estree.ts"}function apn(e,r){let i=typeof e=="object"?e:{};return Kun(i.allowDefaultProject),rYe??(rYe=(0,epn.createProjectService)({options:i,...r})),rYe}var spn={default:DYe},TVn=(0,spn.default)("typescript-eslint:typescript-estree:parser");function cpn(e,r){let{ast:i}=lpn(e,r,!1);return i}function lpn(e,r,i){let s=npn(e,r);if(r?.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let l=Gun(s),{astMaps:d,estree:h}=Uun(l,s,i);return{ast:h,esTreeNodeToTSNodeMap:d.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:d.tsNodeToESTreeNodeMap}}function upn(e,r){let i=new SyntaxError(e+" ("+r.loc.start.line+":"+r.loc.start.column+")");return Object.assign(i,r)}var ppn=upn;function _pn(e){let r=[];for(let i of e)try{return i()}catch(s){r.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:r})}var dpn=Array.prototype.findLast??function(e){for(let r=this.length-1;r>=0;r--){let i=this[r];if(e(i,r,this))return i}},fpn=AYe("findLast",function(){if(Array.isArray(this))return dpn}),mpn=fpn;function hpn(e){return this[e<0?this.length+e:e]}var gpn=AYe("at",function(){if(Array.isArray(this)||typeof this=="string")return hpn}),ypn=gpn;function Q5(e){let r=e.range?.[0]??e.start,i=(e.declaration?.decorators??e.decorators)?.[0];return i?Math.min(Q5(i),r):r}function x8(e){return e.range?.[1]??e.end}function vpn(e){let r=new Set(e);return i=>r.has(i?.type)}var uet=vpn,Spn=uet(["Block","CommentBlock","MultiLine"]),pet=Spn,bpn=uet(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),xpn=bpn,nYe=new WeakMap;function Tpn(e){return nYe.has(e)||nYe.set(e,pet(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),nYe.get(e)}var Epn=Tpn;function kpn(e){if(!pet(e))return!1;let r=`*${e.value}*`.split(` -`);return r.length>1&&r.every(i=>i.trimStart()[0]==="*")}var iYe=new WeakMap;function Cpn(e){return iYe.has(e)||iYe.set(e,kpn(e)),iYe.get(e)}var GBt=Cpn;function Dpn(e){if(e.length<2)return;let r;for(let i=e.length-1;i>=0;i--){let s=e[i];if(r&&x8(s)===Q5(r)&&GBt(s)&&GBt(r)&&(e.splice(i+1,1),s.value+="*//*"+r.value,s.range=[Q5(s),x8(r)]),!xpn(s)&&!pet(s))throw new TypeError(`Unknown comment type: "${s.type}".`);r=s}}var Apn=Dpn;function wpn(e){return e!==null&&typeof e=="object"}var Ipn=wpn,Qpe=null;function a_e(e){if(Qpe!==null&&typeof Qpe.property){let r=Qpe;return Qpe=a_e.prototype=null,r}return Qpe=a_e.prototype=e??Object.create(null),new a_e}var Ppn=10;for(let e=0;e<=Ppn;e++)a_e();function Npn(e){return a_e(e)}function Opn(e,r="type"){Npn(e);function i(s){let l=s[r],d=e[l];if(!Array.isArray(d))throw Object.assign(new Error(`Missing visitor keys for '${l}'.`),{node:s});return d}return i}var Fpn=Opn,Qr=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],Rpn={AccessorProperty:Qr[0],AnyTypeAnnotation:Qr[1],ArgumentPlaceholder:Qr[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:Qr[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:Qr[3],AsExpression:Qr[4],AssignmentExpression:Qr[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:Qr[6],BigIntLiteral:Qr[1],BigIntLiteralTypeAnnotation:Qr[1],BigIntTypeAnnotation:Qr[1],BinaryExpression:Qr[5],BindExpression:["object","callee"],BlockStatement:Qr[7],BooleanLiteral:Qr[1],BooleanLiteralTypeAnnotation:Qr[1],BooleanTypeAnnotation:Qr[1],BreakStatement:Qr[8],CallExpression:Qr[9],CatchClause:["param","body"],ChainExpression:Qr[3],ClassAccessorProperty:Qr[0],ClassBody:Qr[10],ClassDeclaration:Qr[11],ClassExpression:Qr[11],ClassImplements:Qr[12],ClassMethod:Qr[13],ClassPrivateMethod:Qr[13],ClassPrivateProperty:Qr[14],ClassProperty:Qr[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:Qr[15],ConditionalExpression:Qr[16],ConditionalTypeAnnotation:Qr[17],ContinueStatement:Qr[8],DebuggerStatement:Qr[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:Qr[18],DeclareEnum:Qr[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:Qr[20],DeclareFunction:["id","predicate"],DeclareHook:Qr[21],DeclareInterface:Qr[22],DeclareModule:Qr[19],DeclareModuleExports:Qr[23],DeclareNamespace:Qr[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:Qr[24],DeclareVariable:Qr[21],Decorator:Qr[3],Directive:Qr[18],DirectiveLiteral:Qr[1],DoExpression:Qr[10],DoWhileStatement:Qr[25],EmptyStatement:Qr[1],EmptyTypeAnnotation:Qr[1],EnumBigIntBody:Qr[26],EnumBigIntMember:Qr[27],EnumBooleanBody:Qr[26],EnumBooleanMember:Qr[27],EnumDeclaration:Qr[19],EnumDefaultedMember:Qr[21],EnumNumberBody:Qr[26],EnumNumberMember:Qr[27],EnumStringBody:Qr[26],EnumStringMember:Qr[27],EnumSymbolBody:Qr[26],ExistsTypeAnnotation:Qr[1],ExperimentalRestProperty:Qr[6],ExperimentalSpreadProperty:Qr[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:Qr[28],ExportNamedDeclaration:Qr[20],ExportNamespaceSpecifier:Qr[28],ExportSpecifier:["local","exported"],ExpressionStatement:Qr[3],File:["program"],ForInStatement:Qr[29],ForOfStatement:Qr[29],ForStatement:["init","test","update","body"],FunctionDeclaration:Qr[30],FunctionExpression:Qr[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:Qr[15],GenericTypeAnnotation:Qr[12],HookDeclaration:Qr[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:Qr[16],ImportAttribute:Qr[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:Qr[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:Qr[33],ImportSpecifier:["imported","local"],IndexedAccessType:Qr[34],InferredPredicate:Qr[1],InferTypeAnnotation:Qr[35],InterfaceDeclaration:Qr[22],InterfaceExtends:Qr[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:Qr[1],IntersectionTypeAnnotation:Qr[36],JsExpressionRoot:Qr[37],JsonRoot:Qr[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:Qr[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:Qr[1],JSXExpressionContainer:Qr[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:Qr[1],JSXMemberExpression:Qr[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:Qr[1],JSXSpreadAttribute:Qr[6],JSXSpreadChild:Qr[3],JSXText:Qr[1],KeyofTypeAnnotation:Qr[6],LabeledStatement:["label","body"],Literal:Qr[1],LogicalExpression:Qr[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:Qr[21],MatchExpression:Qr[39],MatchExpressionCase:Qr[40],MatchIdentifierPattern:Qr[21],MatchLiteralPattern:Qr[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:Qr[6],MatchStatement:Qr[39],MatchStatementCase:Qr[40],MatchUnaryPattern:Qr[6],MatchWildcardPattern:Qr[1],MemberExpression:Qr[38],MetaProperty:["meta","property"],MethodDefinition:Qr[42],MixedTypeAnnotation:Qr[1],ModuleExpression:Qr[10],NeverTypeAnnotation:Qr[1],NewExpression:Qr[9],NGChainedExpression:Qr[43],NGEmptyExpression:Qr[1],NGMicrosyntax:Qr[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:Qr[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:Qr[32],NGPipeExpression:["left","right","arguments"],NGRoot:Qr[37],NullableTypeAnnotation:Qr[23],NullLiteral:Qr[1],NullLiteralTypeAnnotation:Qr[1],NumberLiteralTypeAnnotation:Qr[1],NumberTypeAnnotation:Qr[1],NumericLiteral:Qr[1],ObjectExpression:["properties"],ObjectMethod:Qr[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:Qr[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:Qr[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:Qr[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:Qr[9],OptionalIndexedAccessType:Qr[34],OptionalMemberExpression:Qr[38],ParenthesizedExpression:Qr[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:Qr[1],PipelineTopicExpression:Qr[3],Placeholder:Qr[1],PrivateIdentifier:Qr[1],PrivateName:Qr[21],Program:Qr[7],Property:Qr[32],PropertyDefinition:Qr[14],QualifiedTypeIdentifier:Qr[44],QualifiedTypeofIdentifier:Qr[44],RegExpLiteral:Qr[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:Qr[6],SatisfiesExpression:Qr[4],SequenceExpression:Qr[43],SpreadElement:Qr[6],StaticBlock:Qr[10],StringLiteral:Qr[1],StringLiteralTypeAnnotation:Qr[1],StringTypeAnnotation:Qr[1],Super:Qr[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:Qr[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:Qr[1],TemplateLiteral:["quasis","expressions"],ThisExpression:Qr[1],ThisTypeAnnotation:Qr[1],ThrowStatement:Qr[6],TopicReference:Qr[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:Qr[45],TSAbstractKeyword:Qr[1],TSAbstractMethodDefinition:Qr[32],TSAbstractPropertyDefinition:Qr[45],TSAnyKeyword:Qr[1],TSArrayType:Qr[2],TSAsExpression:Qr[4],TSAsyncKeyword:Qr[1],TSBigIntKeyword:Qr[1],TSBooleanKeyword:Qr[1],TSCallSignatureDeclaration:Qr[46],TSClassImplements:Qr[47],TSConditionalType:Qr[17],TSConstructorType:Qr[46],TSConstructSignatureDeclaration:Qr[46],TSDeclareFunction:Qr[31],TSDeclareKeyword:Qr[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:Qr[26],TSEnumDeclaration:Qr[19],TSEnumMember:["id","initializer"],TSExportAssignment:Qr[3],TSExportKeyword:Qr[1],TSExternalModuleReference:Qr[3],TSFunctionType:Qr[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:Qr[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:Qr[35],TSInstantiationExpression:Qr[47],TSInterfaceBody:Qr[10],TSInterfaceDeclaration:Qr[22],TSInterfaceHeritage:Qr[47],TSIntersectionType:Qr[36],TSIntrinsicKeyword:Qr[1],TSJSDocAllType:Qr[1],TSJSDocNonNullableType:Qr[23],TSJSDocNullableType:Qr[23],TSJSDocUnknownType:Qr[1],TSLiteralType:Qr[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:Qr[10],TSModuleDeclaration:Qr[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:Qr[21],TSNeverKeyword:Qr[1],TSNonNullExpression:Qr[3],TSNullKeyword:Qr[1],TSNumberKeyword:Qr[1],TSObjectKeyword:Qr[1],TSOptionalType:Qr[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:Qr[23],TSPrivateKeyword:Qr[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:Qr[1],TSPublicKeyword:Qr[1],TSQualifiedName:Qr[5],TSReadonlyKeyword:Qr[1],TSRestType:Qr[23],TSSatisfiesExpression:Qr[4],TSStaticKeyword:Qr[1],TSStringKeyword:Qr[1],TSSymbolKeyword:Qr[1],TSTemplateLiteralType:["quasis","types"],TSThisType:Qr[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:Qr[23],TSTypeAssertion:Qr[4],TSTypeLiteral:Qr[26],TSTypeOperator:Qr[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:Qr[48],TSTypeParameterInstantiation:Qr[48],TSTypePredicate:Qr[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:Qr[1],TSUnionType:Qr[36],TSUnknownKeyword:Qr[1],TSVoidKeyword:Qr[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:Qr[24],TypeAnnotation:Qr[23],TypeCastExpression:Qr[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:Qr[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:Qr[48],TypeParameterInstantiation:Qr[48],TypePredicate:Qr[49],UnaryExpression:Qr[6],UndefinedTypeAnnotation:Qr[1],UnionTypeAnnotation:Qr[36],UnknownTypeAnnotation:Qr[1],UpdateExpression:Qr[6],V8IntrinsicIdentifier:Qr[1],VariableDeclaration:["declarations"],VariableDeclarator:Qr[27],Variance:Qr[1],VoidPattern:Qr[1],VoidTypeAnnotation:Qr[1],WhileStatement:Qr[25],WithStatement:["object","body"],YieldExpression:Qr[6]},Lpn=Fpn(Rpn),Mpn=Lpn;function mDe(e,r){if(!Ipn(e))return e;if(Array.isArray(e)){for(let s=0;sie<=L);V=j&&s.slice(j,L).trim().length===0}return V?void 0:(A.extra={...A.extra,parenthesized:!0},A)}case"TemplateLiteral":if(b.expressions.length!==b.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(i==="flow"||i==="hermes"||i==="espree"||i==="typescript"||d){let A=Q5(b)+1,L=x8(b)-(b.tail?1:2);b.range=[A,L]}break;case"VariableDeclaration":{let A=ypn(0,b.declarations,-1);A?.init&&s[x8(A)]!==";"&&(b.range=[Q5(b),x8(A)]);break}case"TSParenthesizedType":return b.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(b.types.length===1)return b.types[0];break;case"ImportExpression":i==="hermes"&&b.attributes&&!b.options&&(b.options=b.attributes);break}},onLeave(b){switch(b.type){case"LogicalExpression":if(HUt(b))return kYe(b);break;case"TSImportType":!b.source&&b.argument.type==="TSLiteralType"&&(b.source=b.argument.literal,delete b.argument);break}}}),e}function HUt(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function kYe(e){return HUt(e)?kYe({type:"LogicalExpression",operator:e.operator,left:kYe({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[Q5(e.left),x8(e.right.left)]}),right:e.right.right,range:[Q5(e),x8(e)]}):e}var $pn=Bpn,Upn=/\*\/$/,zpn=/^\/\*\*?/,qpn=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Jpn=/(^|\s+)\/\/([^\n\r]*)/g,HBt=/^(\r?\n)+/,Vpn=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,KBt=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Wpn=/(\r?\n|^) *\* ?/g,Gpn=[];function Hpn(e){let r=e.match(qpn);return r?r[0].trimStart():""}function Kpn(e){e=ree(0,e.replace(zpn,"").replace(Upn,""),Wpn,"$1");let r="";for(;r!==e;)r=e,e=ree(0,e,Vpn,` +`;function Ha(Dr,nn){er[Dr]+=nn}}function kf(T){switch(T){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function re(T,Ht){if(T.fill)T.fill(Ht);else for(let er=0;er0?T.repeat(Ht):"";let er="";for(;er.length{},XYe=()=>{},iO,Qt=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.AssertClause=301]="AssertClause",e[e.AssertEntry=302]="AssertEntry",e[e.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",e[e.PropertyAssignment=304]="PropertyAssignment",e[e.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",e[e.SpreadAssignment=306]="SpreadAssignment",e[e.EnumMember=307]="EnumMember",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.JSDocTypeExpression=310]="JSDocTypeExpression",e[e.JSDocNameReference=311]="JSDocNameReference",e[e.JSDocMemberName=312]="JSDocMemberName",e[e.JSDocAllType=313]="JSDocAllType",e[e.JSDocUnknownType=314]="JSDocUnknownType",e[e.JSDocNullableType=315]="JSDocNullableType",e[e.JSDocNonNullableType=316]="JSDocNonNullableType",e[e.JSDocOptionalType=317]="JSDocOptionalType",e[e.JSDocFunctionType=318]="JSDocFunctionType",e[e.JSDocVariadicType=319]="JSDocVariadicType",e[e.JSDocNamepathType=320]="JSDocNamepathType",e[e.JSDoc=321]="JSDoc",e[e.JSDocComment=321]="JSDocComment",e[e.JSDocText=322]="JSDocText",e[e.JSDocTypeLiteral=323]="JSDocTypeLiteral",e[e.JSDocSignature=324]="JSDocSignature",e[e.JSDocLink=325]="JSDocLink",e[e.JSDocLinkCode=326]="JSDocLinkCode",e[e.JSDocLinkPlain=327]="JSDocLinkPlain",e[e.JSDocTag=328]="JSDocTag",e[e.JSDocAugmentsTag=329]="JSDocAugmentsTag",e[e.JSDocImplementsTag=330]="JSDocImplementsTag",e[e.JSDocAuthorTag=331]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",e[e.JSDocClassTag=333]="JSDocClassTag",e[e.JSDocPublicTag=334]="JSDocPublicTag",e[e.JSDocPrivateTag=335]="JSDocPrivateTag",e[e.JSDocProtectedTag=336]="JSDocProtectedTag",e[e.JSDocReadonlyTag=337]="JSDocReadonlyTag",e[e.JSDocOverrideTag=338]="JSDocOverrideTag",e[e.JSDocCallbackTag=339]="JSDocCallbackTag",e[e.JSDocOverloadTag=340]="JSDocOverloadTag",e[e.JSDocEnumTag=341]="JSDocEnumTag",e[e.JSDocParameterTag=342]="JSDocParameterTag",e[e.JSDocReturnTag=343]="JSDocReturnTag",e[e.JSDocThisTag=344]="JSDocThisTag",e[e.JSDocTypeTag=345]="JSDocTypeTag",e[e.JSDocTemplateTag=346]="JSDocTemplateTag",e[e.JSDocTypedefTag=347]="JSDocTypedefTag",e[e.JSDocSeeTag=348]="JSDocSeeTag",e[e.JSDocPropertyTag=349]="JSDocPropertyTag",e[e.JSDocThrowsTag=350]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",e[e.JSDocImportTag=352]="JSDocImportTag",e[e.SyntaxList=353]="SyntaxList",e[e.NotEmittedStatement=354]="NotEmittedStatement",e[e.NotEmittedTypeElement=355]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",e[e.Count=359]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=166]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=310]="FirstJSDocNode",e[e.LastJSDocNode=352]="LastJSDocNode",e[e.FirstJSDocTagNode=328]="FirstJSDocTagNode",e[e.LastJSDocTagNode=352]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e))(Qt||{}),Vc=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(Vc||{}),Jme=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(Jme||{}),Kme=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(Kme||{}),Gz=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Gz||{}),Gme=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(Gme||{}),Hme=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(Hme||{}),cs=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(cs||{}),Zme=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(Zme||{}),Wme=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(Wme||{}),W_=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(W_||{}),SV=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(SV||{}),Qme=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(Qme||{}),Ml=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Ml||{}),Xme=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Xme||{}),Yme=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Yme||{}),ehe=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(ehe||{}),wD={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},the={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},RD=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(RD||{}),X_="/",YYe="\\",Pfe="://",eet=/\\/g;function tet(e){return e===47||e===92}function ret(e,t){return e.length>t.length&&HYe(e,t)}function vV(e){return e.length>0&&tet(e.charCodeAt(e.length-1))}function Ofe(e){return e>=97&&e<=122||e>=65&&e<=90}function net(e,t){let r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){let n=e.charCodeAt(t+2);if(n===97||n===65)return t+3}return-1}function oet(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let n=e.indexOf(t===47?X_:YYe,2);return n<0?e.length:n+1}if(Ofe(t)&&e.charCodeAt(1)===58){let n=e.charCodeAt(2);if(n===47||n===92)return 3;if(e.length===2)return 2}let r=e.indexOf(Pfe);if(r!==-1){let n=r+Pfe.length,o=e.indexOf(X_,n);if(o!==-1){let i=e.slice(0,r),a=e.slice(n,o);if(i==="file"&&(a===""||a==="localhost")&&Ofe(e.charCodeAt(o+1))){let s=net(e,o+2);if(s!==-1){if(e.charCodeAt(s)===47)return~(s+1);if(s===e.length)return~s}}return~(o+1)}return~e.length}return 0}function zD(e){let t=oet(e);return t<0?~t:t}function rhe(e,t,r){if(e=VD(e),zD(e)===e.length)return"";e=_O(e);let n=e.slice(Math.max(zD(e),e.lastIndexOf(X_)+1)),o=t!==void 0&&r!==void 0?nhe(n,t,r):void 0;return o?n.slice(0,n.length-o.length):n}function Nfe(e,t,r){if(dO(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let n=e.slice(e.length-t.length);if(r(n,t))return n}}function iet(e,t,r){if(typeof t=="string")return Nfe(e,t,r)||"";for(let n of t){let o=Nfe(e,n,r);if(o)return o}return""}function nhe(e,t,r){if(t)return iet(_O(e),t,r?gV:VYe);let n=rhe(e),o=n.lastIndexOf(".");return o>=0?n.substring(o):""}function VD(e){return e.includes("\\")?e.replace(eet,X_):e}function aet(e,...t){e&&(e=VD(e));for(let r of t)r&&(r=VD(r),!e||zD(r)!==0?e=r:e=ihe(e)+r);return e}function set(e,t){let r=zD(e);r===0&&t?(e=aet(t,e),r=zD(e)):e=VD(e);let n=ohe(e);if(n!==void 0)return n.length>r?_O(n):n;let o=e.length,i=e.substring(0,r),a,s=r,c=s,p=s,d=r!==0;for(;sc&&(a??(a=e.substring(0,c-1)),c=s);let m=e.indexOf(X_,s+1);m===-1&&(m=o);let y=m-c;if(y===1&&e.charCodeAt(s)===46)a??(a=e.substring(0,p));else if(y===2&&e.charCodeAt(s)===46&&e.charCodeAt(s+1)===46)if(!d)a!==void 0?a+=a.length===r?"..":"/..":p=s+2;else if(a===void 0)p-2>=0?a=e.substring(0,Math.max(r,e.lastIndexOf(X_,p-2))):a=e.substring(0,p);else{let g=a.lastIndexOf(X_);g!==-1?a=a.substring(0,Math.max(r,g)):a=i,a.length===r&&(d=r!==0)}else a!==void 0?(a.length!==r&&(a+=X_),d=!0,a+=e.substring(c,m)):(d=!0,p=m);s=m+1}return a??(o>r?_O(e):e)}function cet(e){e=VD(e);let t=ohe(e);return t!==void 0?t:(t=set(e,""),t&&vV(e)?ihe(t):t)}function ohe(e){if(!Ffe.test(e))return e;let t=e.replace(/\/\.\//g,"/");if(t.startsWith("./")&&(t=t.slice(2)),t!==e&&(e=t,!Ffe.test(e)))return e}function _O(e){return vV(e)?e.substr(0,e.length-1):e}function ihe(e){return vV(e)?e:e+X_}var Ffe=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function u(e,t,r,n,o,i,a){return{code:e,category:t,key:r,message:n,reportsUnnecessary:o,elidedInCompatabilityPyramid:i,reportsDeprecated:a}}var G={Unterminated_string_literal:u(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:u(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:u(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:u(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:u(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:u(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:u(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:u(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:u(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:u(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:u(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:u(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:u(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:u(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:u(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:u(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:u(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:u(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:u(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:u(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:u(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:u(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:u(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:u(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:u(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:u(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:u(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:u(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:u(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:u(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:u(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:u(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:u(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:u(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:u(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:u(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:u(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:u(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:u(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:u(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:u(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:u(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:u(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:u(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:u(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:u(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:u(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:u(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:u(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:u(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:u(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:u(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:u(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:u(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:u(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:u(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:u(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:u(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:u(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:u(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:u(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:u(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:u(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:u(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:u(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:u(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:u(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:u(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:u(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:u(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:u(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:u(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:u(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:u(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:u(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:u(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:u(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:u(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:u(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:u(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:u(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:u(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:u(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:u(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:u(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:u(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:u(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:u(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:u(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:u(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:u(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:u(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:u(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:u(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:u(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:u(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:u(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:u(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:u(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:u(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:u(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:u(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:u(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:u(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:u(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:u(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:u(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:u(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:u(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:u(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:u(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:u(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:u(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:u(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:u(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:u(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:u(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:u(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:u(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:u(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:u(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:u(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:u(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:u(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:u(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:u(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:u(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:u(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:u(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:u(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:u(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:u(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:u(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:u(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:u(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:u(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:u(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:u(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:u(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:u(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:u(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:u(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:u(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:u(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:u(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:u(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:u(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:u(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:u(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:u(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:u(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:u(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:u(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:u(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:u(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:u(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:u(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:u(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:u(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:u(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:u(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:u(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:u(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:u(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:u(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:u(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:u(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:u(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:u(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:u(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:u(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:u(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:u(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:u(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:u(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:u(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:u(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:u(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:u(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:u(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:u(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:u(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:u(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:u(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:u(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:u(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:u(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:u(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:u(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:u(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:u(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:u(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:u(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:u(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:u(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:u(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:u(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:u(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:u(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:u(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:u(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:u(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:u(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:u(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:u(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:u(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:u(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:u(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:u(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:u(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:u(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:u(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:u(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:u(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:u(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:u(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:u(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:u(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:u(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:u(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:u(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:u(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:u(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:u(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:u(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:u(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:u(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:u(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:u(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:u(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:u(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:u(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:u(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:u(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:u(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:u(1286,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:u(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:u(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:u(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:u(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:u(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:u(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:u(1293,1,"ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:u(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:u(1295,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript."),with_statements_are_not_allowed_in_an_async_function_block:u(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:u(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:u(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:u(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:u(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:u(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:u(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:u(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:u(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:u(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:u(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:u(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:u(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:u(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext:u(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:u(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:u(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:u(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:u(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:u(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:u(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:u(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:u(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:u(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:u(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:u(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:u(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:u(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:u(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:u(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:u(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:u(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext:u(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'."),A_label_is_not_allowed_here:u(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:u(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:u(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:u(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:u(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:u(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:u(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:u(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:u(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:u(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:u(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:u(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:u(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:u(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:u(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:u(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:u(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:u(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:u(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:u(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:u(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:u(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:u(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:u(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:u(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:u(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:u(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:u(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:u(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:u(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:u(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:u(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:u(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:u(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:u(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:u(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:u(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:u(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:u(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:u(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:u(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:u(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:u(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:u(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:u(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:u(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:u(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:u(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:u(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:u(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:u(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:u(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:u(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:u(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:u(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:u(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:u(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:u(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:u(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:u(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:u(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:u(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:u(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:u(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:u(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:u(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:u(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:u(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:u(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:u(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:u(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:u(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:u(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:u(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:u(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:u(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:u(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:u(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:u(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:u(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:u(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:u(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:u(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:u(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:u(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:u(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:u(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:u(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:u(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:u(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:u(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:u(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:u(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:u(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:u(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:u(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:u(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:u(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:u(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:u(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:u(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:u(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:u(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:u(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:u(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:u(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:u(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:u(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:u(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:u(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:u(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:u(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:u(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:u(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:u(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:u(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:u(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:u(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:u(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:u(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:u(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:u(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:u(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:u(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:u(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:u(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:u(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:u(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:u(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:u(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:u(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:u(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:u(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:u(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:u(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:u(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:u(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:u(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:u(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:u(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:u(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:u(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:u(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:u(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:u(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:u(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:u(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:u(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:u(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:u(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:u(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:u(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:u(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:u(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:u(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:u(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:u(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:u(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:u(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:u(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:u(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:u(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:u(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:u(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:u(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:u(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:u(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:u(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:u(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:u(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:u(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:u(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:u(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:u(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:u(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:u(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:u(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:u(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:u(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:u(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:u(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:u(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),using_declarations_are_not_allowed_in_ambient_contexts:u(1545,1,"using_declarations_are_not_allowed_in_ambient_contexts_1545","'using' declarations are not allowed in ambient contexts."),await_using_declarations_are_not_allowed_in_ambient_contexts:u(1546,1,"await_using_declarations_are_not_allowed_in_ambient_contexts_1546","'await using' declarations are not allowed in ambient contexts."),The_types_of_0_are_incompatible_between_these_types:u(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:u(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:u(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:u(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:u(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:u(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:u(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:u(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:u(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:u(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:u(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:u(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:u(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:u(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:u(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:u(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:u(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:u(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:u(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:u(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:u(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:u(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:u(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:u(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:u(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:u(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:u(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:u(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:u(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:u(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:u(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:u(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:u(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:u(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:u(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:u(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:u(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:u(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:u(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:u(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:u(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:u(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:u(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:u(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:u(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:u(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:u(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:u(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:u(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:u(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:u(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:u(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:u(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:u(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:u(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:u(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:u(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:u(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:u(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:u(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:u(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:u(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:u(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:u(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:u(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:u(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:u(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:u(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:u(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:u(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:u(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:u(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:u(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:u(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:u(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:u(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:u(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:u(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:u(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:u(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:u(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:u(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:u(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:u(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:u(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:u(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:u(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:u(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:u(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:u(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:u(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:u(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:u(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:u(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:u(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:u(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:u(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:u(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:u(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:u(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:u(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:u(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:u(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:u(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:u(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:u(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:u(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:u(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:u(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:u(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:u(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:u(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:u(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:u(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:u(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:u(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:u(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:u(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:u(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:u(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:u(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:u(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:u(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:u(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:u(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:u(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:u(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:u(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:u(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:u(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:u(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:u(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:u(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:u(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:u(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:u(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:u(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:u(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:u(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:u(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:u(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:u(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:u(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:u(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:u(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:u(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:u(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:u(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:u(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:u(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:u(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:u(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:u(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:u(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:u(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:u(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:u(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:u(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:u(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:u(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:u(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:u(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:u(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:u(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:u(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:u(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:u(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:u(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:u(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:u(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:u(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:u(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:u(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:u(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:u(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:u(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:u(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:u(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:u(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:u(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:u(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:u(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:u(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:u(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:u(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:u(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:u(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:u(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:u(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:u(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:u(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:u(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:u(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:u(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:u(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:u(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:u(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:u(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:u(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:u(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:u(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:u(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:u(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:u(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:u(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:u(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:u(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:u(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:u(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:u(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:u(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:u(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:u(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:u(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:u(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:u(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:u(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:u(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:u(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:u(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:u(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:u(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:u(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:u(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:u(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:u(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:u(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:u(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:u(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:u(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:u(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:u(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:u(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:u(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:u(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:u(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:u(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:u(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:u(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:u(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:u(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:u(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:u(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:u(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:u(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:u(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:u(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:u(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:u(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:u(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:u(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:u(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:u(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:u(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:u(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:u(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:u(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:u(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:u(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:u(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:u(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:u(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:u(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:u(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:u(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:u(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:u(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:u(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:u(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:u(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:u(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:u(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:u(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:u(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:u(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:u(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:u(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:u(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:u(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:u(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:u(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:u(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:u(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:u(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:u(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:u(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:u(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:u(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:u(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:u(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:u(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:u(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:u(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:u(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:u(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:u(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:u(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:u(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:u(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:u(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:u(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:u(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:u(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:u(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:u(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:u(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:u(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:u(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:u(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:u(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:u(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:u(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:u(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:u(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:u(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:u(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:u(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:u(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:u(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:u(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:u(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:u(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:u(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:u(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:u(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:u(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:u(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:u(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:u(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:u(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:u(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:u(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:u(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:u(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:u(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:u(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:u(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:u(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:u(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:u(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:u(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:u(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:u(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:u(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:u(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:u(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:u(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:u(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:u(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:u(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:u(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:u(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:u(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:u(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:u(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:u(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:u(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:u(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:u(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:u(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:u(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:u(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:u(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:u(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:u(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:u(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:u(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:u(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:u(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:u(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:u(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:u(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:u(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:u(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:u(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:u(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:u(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:u(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:u(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:u(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:u(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:u(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:u(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:u(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:u(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:u(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:u(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:u(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:u(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:u(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:u(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:u(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0:u(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 and above with module {0}."),Cannot_find_lib_definition_for_0:u(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:u(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:u(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:u(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:u(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:u(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:u(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:u(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:u(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:u(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:u(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:u(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:u(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:u(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:u(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:u(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:u(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:u(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:u(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:u(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:u(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:u(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:u(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:u(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:u(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:u(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:u(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:u(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:u(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:u(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:u(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:u(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:u(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:u(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:u(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:u(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:u(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:u(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:u(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:u(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:u(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:u(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:u(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:u(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:u(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:u(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:u(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:u(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:u(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:u(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:u(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:u(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:u(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:u(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:u(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:u(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:u(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:u(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:u(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:u(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:u(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:u(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:u(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:u(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:u(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:u(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:u(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:u(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:u(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:u(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:u(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:u(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:u(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:u(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:u(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:u(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:u(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:u(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:u(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:u(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:u(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:u(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:u(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:u(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:u(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:u(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:u(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:u(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks:u(2815,1,"arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815","'arguments' cannot be referenced in property initializers or class static initialization blocks."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:u(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:u(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:u(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:u(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:u(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:u(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:u(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:u(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:u(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:u(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:u(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:u(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:u(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:u(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:u(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:u(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:u(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:u(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:u(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:u(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:u(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:u(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:u(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:u(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:u(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:u(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:u(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:u(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:u(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:u(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:u(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:u(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:u(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:u(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:u(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:u(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:u(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:u(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:u(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:u(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:u(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:u(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:u(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:u(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:u(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:u(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:u(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:u(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:u(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:u(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:u(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:u(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:u(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:u(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),This_expression_is_never_nullish:u(2881,1,"This_expression_is_never_nullish_2881","This expression is never nullish."),Import_declaration_0_is_using_private_name_1:u(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:u(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:u(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:u(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:u(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:u(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:u(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:u(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:u(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:u(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:u(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:u(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:u(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:u(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:u(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:u(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:u(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:u(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:u(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:u(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:u(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:u(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:u(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:u(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:u(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:u(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:u(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:u(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:u(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:u(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:u(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:u(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:u(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:u(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:u(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:u(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:u(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:u(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:u(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:u(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:u(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:u(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:u(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:u(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:u(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:u(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:u(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:u(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:u(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:u(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:u(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:u(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:u(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:u(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:u(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:u(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:u(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:u(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:u(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:u(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:u(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:u(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:u(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:u(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:u(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:u(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:u(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:u(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:u(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:u(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:u(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:u(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:u(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:u(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:u(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:u(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:u(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:u(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:u(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:u(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:u(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:u(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:u(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:u(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:u(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:u(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:u(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:u(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:u(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:u(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:u(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:u(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),The_current_host_does_not_support_the_0_option:u(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:u(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:u(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:u(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:u(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:u(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:u(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:u(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:u(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:u(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:u(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:u(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:u(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:u(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:u(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:u(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:u(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:u(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:u(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:u(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:u(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:u(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:u(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:u(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:u(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:u(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:u(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:u(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:u(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:u(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:u(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:u(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:u(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:u(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:u(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:u(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:u(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:u(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:u(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:u(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:u(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:u(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:u(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:u(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:u(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:u(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:u(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:u(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:u(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:u(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:u(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:u(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:u(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:u(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:u(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:u(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:u(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:u(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:u(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:u(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:u(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:u(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:u(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:u(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:u(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:u(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:u(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:u(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:u(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:u(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:u(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:u(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:u(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:u(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:u(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:u(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:u(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:u(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:u(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:u(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:u(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:u(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:u(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:u(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:u(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:u(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:u(6024,3,"options_6024","options"),file:u(6025,3,"file_6025","file"),Examples_Colon_0:u(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:u(6027,3,"Options_Colon_6027","Options:"),Version_0:u(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:u(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:u(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:u(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:u(6034,3,"KIND_6034","KIND"),FILE:u(6035,3,"FILE_6035","FILE"),VERSION:u(6036,3,"VERSION_6036","VERSION"),LOCATION:u(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:u(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:u(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:u(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:u(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:u(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:u(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:u(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:u(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:u(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:u(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:u(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:u(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:u(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:u(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:u(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:u(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:u(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:u(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:u(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:u(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:u(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:u(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:u(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:u(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:u(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:u(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:u(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:u(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:u(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:u(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:u(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:u(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:u(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:u(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:u(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:u(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:u(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:u(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:u(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:u(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:u(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:u(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:u(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:u(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:u(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:u(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:u(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:u(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:u(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:u(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:u(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:u(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:u(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:u(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:u(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:u(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:u(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:u(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:u(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:u(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:u(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:u(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:u(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:u(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:u(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:u(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:u(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:u(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:u(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:u(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:u(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:u(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:u(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:u(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:u(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:u(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:u(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:u(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:u(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:u(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:u(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:u(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:u(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:u(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:u(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:u(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:u(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:u(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:u(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:u(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:u(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:u(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:u(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:u(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:u(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:u(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:u(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:u(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:u(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:u(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:u(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:u(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:u(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:u(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:u(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:u(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:u(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:u(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:u(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:u(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:u(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:u(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:u(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:u(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:u(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:u(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:u(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:u(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:u(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:u(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:u(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:u(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:u(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:u(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:u(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:u(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:u(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:u(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:u(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:u(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:u(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:u(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:u(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:u(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:u(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:u(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:u(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:u(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:u(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:u(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:u(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:u(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:u(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:u(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:u(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:u(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:u(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:u(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:u(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:u(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:u(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:u(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:u(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:u(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:u(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:u(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:u(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:u(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:u(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:u(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:u(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:u(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:u(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:u(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:u(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:u(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:u(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:u(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:u(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:u(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:u(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:u(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:u(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:u(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:u(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:u(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:u(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:u(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:u(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:u(6244,3,"Modules_6244","Modules"),File_Management:u(6245,3,"File_Management_6245","File Management"),Emit:u(6246,3,"Emit_6246","Emit"),JavaScript_Support:u(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:u(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:u(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:u(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:u(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:u(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:u(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:u(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:u(6255,3,"Projects_6255","Projects"),Output_Formatting:u(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:u(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:u(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:u(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:u(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:u(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:u(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:u(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:u(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:u(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:u(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:u(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:u(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:u(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:u(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:u(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:u(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:u(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:u(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:u(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:u(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:u(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:u(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:u(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:u(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),File_Layout:u(6284,3,"File_Layout_6284","File Layout"),Environment_Settings:u(6285,3,"Environment_Settings_6285","Environment Settings"),See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule:u(6286,3,"See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286","See also https://aka.ms/tsconfig/module"),For_nodejs_Colon:u(6287,3,"For_nodejs_Colon_6287","For nodejs:"),and_npm_install_D_types_Slashnode:u(6290,3,"and_npm_install_D_types_Slashnode_6290","and npm install -D @types/node"),Other_Outputs:u(6291,3,"Other_Outputs_6291","Other Outputs"),Stricter_Typechecking_Options:u(6292,3,"Stricter_Typechecking_Options_6292","Stricter Typechecking Options"),Style_Options:u(6293,3,"Style_Options_6293","Style Options"),Recommended_Options:u(6294,3,"Recommended_Options_6294","Recommended Options"),Enable_project_compilation:u(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:u(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:u(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:u(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:u(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:u(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:u(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:u(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:u(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:u(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:u(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:u(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:u(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:u(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:u(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:u(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:u(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:u(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:u(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:u(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:u(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:u(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:u(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:u(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:u(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:u(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:u(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:u(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:u(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:u(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:u(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:u(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:u(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:u(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:u(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:u(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:u(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:u(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:u(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:u(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:u(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:u(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:u(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:u(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:u(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:u(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:u(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:u(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:u(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:u(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:u(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:u(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:u(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:u(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:u(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:u(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:u(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:u(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:u(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:u(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:u(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:u(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:u(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:u(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:u(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:u(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:u(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:u(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:u(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:u(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:u(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:u(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:u(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:u(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:u(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:u(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:u(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files:u(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:u(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:u(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:u(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:u(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:u(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:u(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:u(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:u(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:u(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:u(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:u(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:u(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:u(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:u(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:u(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:u(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:u(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:u(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:u(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:u(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:u(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:u(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:u(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:u(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:u(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:u(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:u(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:u(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:u(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:u(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:u(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:u(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:u(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:u(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:u(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:u(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:u(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:u(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:u(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:u(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:u(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:u(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:u(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:u(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:u(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:u(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:u(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:u(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:u(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:u(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:u(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:u(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:u(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:u(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:u(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:u(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:u(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:u(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:u(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:u(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:u(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:u(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:u(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:u(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:u(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:u(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:u(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:u(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:u(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:u(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:u(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:u(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:u(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:u(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:u(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:u(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:u(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:u(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:u(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:u(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:u(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:u(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:u(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:u(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:u(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:u(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:u(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:u(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:u(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:u(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:u(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:u(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:u(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:u(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:u(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:u(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:u(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:u(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:u(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:u(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:u(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:u(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:u(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:u(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:u(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:u(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:u(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:u(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:u(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:u(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:u(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:u(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:u(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:u(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:u(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:u(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:u(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),Default_catch_clause_variables_as_unknown_instead_of_any:u(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:u(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:u(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:u(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:u(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:u(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),one_of_Colon:u(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:u(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:u(6902,3,"type_Colon_6902","type:"),default_Colon:u(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:u(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:u(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:u(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:u(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:u(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:u(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:u(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:u(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:u(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:u(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:u(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:u(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:u(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:u(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:u(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:u(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:u(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:u(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:u(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:u(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:u(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:u(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:u(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:u(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:u(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:u(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:u(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:u(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:u(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:u(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:u(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:u(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:u(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:u(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:u(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:u(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:u(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:u(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:u(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:u(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:u(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:u(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:u(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:u(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:u(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:u(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:u(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:u(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:u(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:u(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:u(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:u(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:u(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:u(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:u(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:u(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:u(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:u(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:u(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:u(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:u(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:u(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:u(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:u(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:u(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:u(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:u(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:u(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:u(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:u(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:u(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:u(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:u(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:u(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:u(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:u(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:u(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:u(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:u(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:u(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:u(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:u(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:u(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:u(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:u(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:u(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:u(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:u(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:u(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:u(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:u(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:u(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:u(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:u(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:u(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:u(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:u(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:u(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:u(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:u(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:u(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:u(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:u(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:u(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:u(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:u(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:u(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:u(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:u(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:u(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:u(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:u(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:u(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:u(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:u(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:u(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:u(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:u(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:u(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:u(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:u(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:u(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:u(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:u(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:u(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:u(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:u(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:u(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:u(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:u(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:u(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:u(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:u(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:u(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:u(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:u(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:u(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:u(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:u(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:u(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:u(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:u(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:u(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:u(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:u(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:u(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:u(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:u(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:u(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:u(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:u(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:u(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:u(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:u(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:u(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:u(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:u(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:u(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:u(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:u(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:u(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:u(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:u(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:u(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:u(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:u(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:u(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:u(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:u(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:u(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:u(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:u(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:u(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:u(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:u(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:u(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:u(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:u(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:u(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:u(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:u(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:u(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:u(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:u(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:u(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:u(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:u(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:u(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:u(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:u(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:u(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:u(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:u(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:u(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:u(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:u(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:u(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:u(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:u(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:u(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:u(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:u(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:u(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:u(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:u(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:u(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:u(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:u(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:u(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:u(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:u(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:u(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:u(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:u(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:u(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:u(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:u(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:u(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:u(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:u(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:u(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:u(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:u(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:u(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:u(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:u(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:u(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:u(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:u(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:u(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:u(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:u(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:u(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:u(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:u(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:u(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:u(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:u(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:u(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:u(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:u(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:u(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:u(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:u(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:u(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:u(95005,3,"Extract_function_95005","Extract function"),Extract_constant:u(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:u(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:u(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:u(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:u(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:u(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:u(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:u(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:u(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:u(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:u(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:u(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:u(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:u(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:u(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:u(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:u(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:u(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:u(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:u(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:u(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:u(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:u(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:u(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:u(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:u(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:u(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:u(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:u(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:u(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:u(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:u(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:u(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:u(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:u(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:u(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:u(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:u(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:u(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:u(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:u(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:u(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:u(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:u(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:u(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:u(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:u(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:u(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:u(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:u(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:u(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:u(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:u(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:u(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:u(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:u(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:u(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:u(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:u(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:u(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:u(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:u(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:u(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:u(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:u(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:u(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:u(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:u(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:u(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:u(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:u(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:u(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:u(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:u(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:u(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:u(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:u(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:u(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:u(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:u(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:u(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:u(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:u(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:u(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:u(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:u(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:u(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:u(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:u(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:u(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:u(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:u(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:u(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:u(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:u(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:u(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:u(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:u(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:u(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:u(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:u(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:u(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:u(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:u(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:u(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:u(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:u(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:u(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:u(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:u(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:u(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:u(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:u(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:u(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:u(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:u(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:u(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:u(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:u(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:u(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:u(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:u(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:u(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:u(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:u(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:u(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:u(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:u(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:u(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:u(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:u(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:u(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:u(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:u(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:u(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:u(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:u(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:u(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:u(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:u(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:u(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:u(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:u(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:u(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:u(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:u(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:u(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:u(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:u(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:u(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:u(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:u(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:u(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:u(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:u(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:u(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:u(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:u(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:u(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:u(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:u(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:u(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:u(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:u(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:u(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:u(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:u(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:u(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:u(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:u(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:u(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:u(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:u(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:u(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:u(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:u(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:u(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:u(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:u(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:u(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:u(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:u(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:u(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:u(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:u(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:u(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:u(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:u(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:u(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:u(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:u(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:u(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:u(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:u(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:u(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:u(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:u(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:u(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:u(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:u(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:u(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:u(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:u(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:u(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:u(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:u(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:u(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:u(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:u(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:u(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:u(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:u(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:u(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:u(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:u(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:u(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:u(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:u(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:u(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:u(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:u(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:u(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:u(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:u(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:u(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:u(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:u(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:u(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:u(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:u(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:u(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:u(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:u(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'."),Default_imports_are_not_allowed_in_a_deferred_import:u(18058,1,"Default_imports_are_not_allowed_in_a_deferred_import_18058","Default imports are not allowed in a deferred import."),Named_imports_are_not_allowed_in_a_deferred_import:u(18059,1,"Named_imports_are_not_allowed_in_a_deferred_import_18059","Named imports are not allowed in a deferred import."),Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:u(18060,1,"Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060","Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'."),_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:u(18061,1,"_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061","'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?")};function Zo(e){return e>=80}function uet(e){return e===32||Zo(e)}var bV={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,defer:166,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},pet=new Map(Object.entries(bV)),ahe=new Map(Object.entries({...bV,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),she=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),det=new Map([[1,wD.RegularExpressionFlagsHasIndices],[16,wD.RegularExpressionFlagsDotAll],[32,wD.RegularExpressionFlagsUnicode],[64,wD.RegularExpressionFlagsUnicodeSets],[128,wD.RegularExpressionFlagsSticky]]),_et=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],fet=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],met=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],het=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],yet=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,get=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,vet=/@(?:see|link)/i;function fO(e,t){if(e=2?fO(e,met):fO(e,_et)}function xet(e,t){return t>=2?fO(e,het):fO(e,fet)}function che(e){let t=[];return e.forEach((r,n)=>{t[r]=n}),t}var Eet=che(ahe);function io(e){return Eet[e]}function lhe(e){return ahe.get(e)}var ijt=che(she);function Rfe(e){return she.get(e)}function uhe(e){let t=[],r=0,n=0;for(;r127&&cc(o)&&(t.push(n),n=r);break}}return t.push(n),t}function Tet(e,t,r,n,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:pe.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${n!==void 0?kYe(e,uhe(n)):"unknown"}`));let i=e[t]+r;return o?i>e[t+1]?e[t+1]:typeof n=="string"&&i>n.length?n.length:i:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function cc(e){return e===10||e===13||e===8232||e===8233}function eh(e){return e>=48&&e<=57}function Cz(e){return eh(e)||e>=65&&e<=70||e>=97&&e<=102}function xV(e){return e>=65&&e<=90||e>=97&&e<=122}function dhe(e){return xV(e)||eh(e)||e===95}function Pz(e){return e>=48&&e<=55}function pd(e,t,r,n,o){if(ZD(t))return t;let i=!1;for(;;){let a=e.charCodeAt(t);switch(a){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;i=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(n)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&f1(a)){t++;continue}break}return t}}var aO=7;function Og(e,t){if(pe.assert(t>=0),t===0||cc(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+aO=0&&r127&&f1(g)){f&&cc(g)&&(d=!0),r++;continue}break e}}return f&&(y=o(s,c,p,d,i,y)),y}function wet(e,t,r,n){return EO(!1,e,t,!1,r,n)}function Iet(e,t,r,n){return EO(!1,e,t,!0,r,n)}function ket(e,t,r,n,o){return EO(!0,e,t,!1,r,n,o)}function Cet(e,t,r,n,o){return EO(!0,e,t,!0,r,n,o)}function mhe(e,t,r,n,o,i=[]){return i.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),i}function Zz(e,t){return ket(e,t,mhe,void 0,void 0)}function Pet(e,t){return Cet(e,t,mhe,void 0,void 0)}function hhe(e){let t=EV.exec(e);if(t)return t[0]}function Bu(e,t){return xV(e)||e===36||e===95||e>127&&bet(e,t)}function H_(e,t,r){return dhe(e)||e===36||(r===1?e===45||e===58:!1)||e>127&&xet(e,t)}function Oet(e,t,r){let n=Ng(e,0);if(!Bu(n,t))return!1;for(let o=Yi(n);od,getStartPos:()=>d,getTokenEnd:()=>c,getTextPos:()=>c,getToken:()=>m,getTokenStart:()=>f,getTokenPos:()=>f,getTokenText:()=>s.substring(f,c),getTokenValue:()=>y,hasUnicodeEscape:()=>(g&1024)!==0,hasExtendedUnicodeEscape:()=>(g&8)!==0,hasPrecedingLineBreak:()=>(g&1)!==0,hasPrecedingJSDocComment:()=>(g&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(g&32768)!==0,isIdentifier:()=>m===80||m>118,isReservedWord:()=>m>=83&&m<=118,isUnterminated:()=>(g&4)!==0,getCommentDirectives:()=>S,getNumericLiteralFlags:()=>g&25584,getTokenFlags:()=>g,reScanGreaterToken:Ct,reScanAsteriskEqualsToken:Hr,reScanSlashToken:It,reScanTemplateToken:Hn,reScanTemplateHeadOrNoSubstitutionTemplate:Di,scanJsxIdentifier:Ld,scanJsxAttributeValue:il,reScanJsxAttributeValue:Jt,reScanJsxToken:Ga,reScanLessThanToken:ji,reScanHashToken:ou,reScanQuestionToken:nl,reScanInvalidIdentifier:lt,scanJsxToken:ol,scanJsDocToken:oe,scanJSDocCommentTextToken:cp,scan:pt,getText:dn,clearCommentDirectives:ro,setText:fi,setScriptTarget:co,setLanguageVariant:$d,setScriptKind:lp,setJSDocParsingMode:vc,setOnError:Uo,resetTokenState:al,setTextPos:al,setSkipJsDocLeadingAsterisks:Yh,tryScan:Zr,lookAhead:Et,scanRange:et};return pe.isDebugging&&Object.defineProperty(E,"__debugShowCurrentPositionInText",{get:()=>{let ue=E.getText();return ue.slice(0,E.getTokenFullStart())+"\u2551"+ue.slice(E.getTokenFullStart())}}),E;function C(ue){return Ng(s,ue)}function F(ue){return ue>=0&&ue=0&&ue=65&&ut<=70)ut+=32;else if(!(ut>=48&&ut<=57||ut>=97&&ut<=102))break;Tt.push(ut),c++,kt=!1}return Tt.length=p){we+=s.substring(Tt,c),g|=4,N(G.Unterminated_string_literal);break}let At=O(c);if(At===Ee){we+=s.substring(Tt,c),c++;break}if(At===92&&!ue){we+=s.substring(Tt,c),we+=Yt(3),Tt=c;continue}if((At===10||At===13)&&!ue){we+=s.substring(Tt,c),g|=4,N(G.Unterminated_string_literal);break}c++}return we}function Vt(ue){let Ee=O(c)===96;c++;let we=c,Tt="",At;for(;;){if(c>=p){Tt+=s.substring(we,c),g|=4,N(G.Unterminated_template_literal),At=Ee?15:18;break}let kt=O(c);if(kt===96){Tt+=s.substring(we,c),c++,At=Ee?15:18;break}if(kt===36&&c+1=p)return N(G.Unexpected_end_of_text),"";let we=O(c);switch(c++,we){case 48:if(c>=p||!eh(O(c)))return"\0";case 49:case 50:case 51:c=55296&&Tt<=56319&&c+6=56320&&Ir<=57343)return c=ut,At+String.fromCharCode(Ir)}return At;case 120:for(;c1114111&&(ue&&N(G.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,we,c-we),kt=!0),c>=p?(ue&&N(G.Unexpected_end_of_text),kt=!0):O(c)===125?c++:(ue&&N(G.Unterminated_Unicode_escape_sequence),kt=!0),kt?(g|=2048,s.substring(Ee,c)):(g|=8,Lfe(At))}function Fr(){if(c+5=0&&H_(we,e)){ue+=vt(!0),Ee=c;continue}if(we=Fr(),!(we>=0&&H_(we,e)))break;g|=1024,ue+=s.substring(Ee,c),ue+=Lfe(we),c+=6,Ee=c}else break}return ue+=s.substring(Ee,c),ue}function ae(){let ue=y.length;if(ue>=2&&ue<=12){let Ee=y.charCodeAt(0);if(Ee>=97&&Ee<=122){let we=pet.get(y);if(we!==void 0)return m=we}}return m=80}function he(ue){let Ee="",we=!1,Tt=!1;for(;;){let At=O(c);if(At===95){g|=512,we?(we=!1,Tt=!0):N(Tt?G.Multiple_consecutive_numeric_separators_are_not_permitted:G.Numeric_separators_are_not_allowed_here,c,1),c++;continue}if(we=!0,!eh(At)||At-48>=ue)break;Ee+=s[c],c++,Tt=!1}return O(c-1)===95&&N(G.Numeric_separators_are_not_allowed_here,c-1,1),Ee}function Oe(){return O(c)===110?(y+="n",g&384&&(y=Wrt(y)+"n"),c++,10):(y=""+(g&128?parseInt(y.slice(2),2):g&256?parseInt(y.slice(2),8):+y),9)}function pt(){for(d=c,g=0;;){if(f=c,c>=p)return m=1;let ue=C(c);if(c===0&&ue===35&&_he(s,c)){if(c=fhe(s,c),t)continue;return m=6}switch(ue){case 10:case 13:if(g|=1,t){c++;continue}else return ue===13&&c+1=0&&Bu(Ee,e))return y=vt(!0)+K(),m=ae();let we=Fr();return we>=0&&Bu(we,e)?(c+=6,g|=1024,y=String.fromCharCode(we)+K(),m=ae()):(N(G.Invalid_character),c++,m=0);case 35:if(c!==0&&s[c+1]==="!")return N(G.can_only_be_used_at_the_start_of_a_file,c,2),c++,m=0;let Tt=C(c+1);if(Tt===92){c++;let ut=le();if(ut>=0&&Bu(ut,e))return y="#"+vt(!0)+K(),m=81;let Ir=Fr();if(Ir>=0&&Bu(Ir,e))return c+=6,g|=1024,y="#"+String.fromCharCode(Ir)+K(),m=81;c--}return Bu(Tt,e)?(c++,Nt(Tt,e)):(y="#",N(G.Invalid_character,c++,Yi(ue))),m=81;case 65533:return N(G.File_appears_to_be_binary,0,0),c=p,m=8;default:let At=Nt(ue,e);if(At)return m=At;if(LD(ue)){c+=Yi(ue);continue}else if(cc(ue)){g|=1,c+=Yi(ue);continue}let kt=Yi(ue);return N(G.Invalid_character,c,kt),c+=kt,m=0}}}function Ye(){switch(I){case 0:return!0;case 1:return!1}return A!==3&&A!==4?!0:I===3?!1:vet.test(s.slice(d,c))}function lt(){pe.assert(m===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),c=f=d,g=0;let ue=C(c),Ee=Nt(ue,99);return Ee?m=Ee:(c+=Yi(ue),m)}function Nt(ue,Ee){let we=ue;if(Bu(we,Ee)){for(c+=Yi(we);c=p)return m=1;let Ee=O(c);if(Ee===60)return O(c+1)===47?(c+=2,m=31):(c++,m=30);if(Ee===123)return c++,m=19;let we=0;for(;c0)break;f1(Ee)||(we=c)}c++}return y=s.substring(d,c),we===-1?13:12}function Ld(){if(Zo(m)){for(;c=p)return m=1;for(let Ee=O(c);c=0&&LD(O(c-1))&&!(c+1=p)return m=1;let ue=C(c);switch(c+=Yi(ue),ue){case 9:case 11:case 12:case 32:for(;c=0&&Bu(Ee,e))return y=vt(!0)+K(),m=ae();let we=Fr();return we>=0&&Bu(we,e)?(c+=6,g|=1024,y=String.fromCharCode(we)+K(),m=ae()):(c++,m=0)}if(Bu(ue,e)){let Ee=ue;for(;c=0),c=ue,d=ue,f=ue,m=0,y=void 0,g=0}function Yh(ue){x+=ue?1:-1}}function Ng(e,t){return e.codePointAt(t)}function Yi(e){return e>=65536?2:e===-1?0:1}function Net(e){if(pe.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}var Fet=String.fromCodePoint?e=>String.fromCodePoint(e):Net;function Lfe(e){return Fet(e)}var $fe=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),Mfe=new Set(["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","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","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"]),jfe=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),p1={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};p1.Script_Extensions=p1.Script;function ld(e){return e.start+e.length}function Ret(e){return e.length===0}function DV(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Let(e,t){return DV(e,t-e)}function ID(e){return DV(e.span.start,e.newLength)}function $et(e){return Ret(e.span)&&e.newLength===0}function yhe(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}var ajt=yhe(DV(0,0),0);function ghe(e,t){for(;e;){let r=t(e);if(r==="quit")return;if(r)return e;e=e.parent}}function mO(e){return(e.flags&16)===0}function Met(e,t){if(e===void 0||mO(e))return e;for(e=e.original;e;){if(mO(e))return!t||t(e)?e:void 0;e=e.original}}function a1(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function JD(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function uc(e){return JD(e.escapedText)}function jet(e){let t=lhe(e.escapedText);return t?UYe(t,th):void 0}function Wz(e){return e.valueDeclaration&&ptt(e.valueDeclaration)?uc(e.valueDeclaration.name):JD(e.escapedName)}function She(e){let t=e.parent.parent;if(t){if(Ufe(t))return X3(t);switch(t.kind){case 244:if(t.declarationList&&t.declarationList.declarations[0])return X3(t.declarationList.declarations[0]);break;case 245:let r=t.expression;switch(r.kind===227&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 212:return r.name;case 213:let n=r.argumentExpression;if(kn(n))return n}break;case 218:return X3(t.expression);case 257:{if(Ufe(t.statement)||Ttt(t.statement))return X3(t.statement);break}}}}function X3(e){let t=vhe(e);return t&&kn(t)?t:void 0}function Bet(e){return e.name||She(e)}function qet(e){return!!e.name}function AV(e){switch(e.kind){case 80:return e;case 349:case 342:{let{name:r}=e;if(r.kind===167)return r.right;break}case 214:case 227:{let r=e;switch(PV(r)){case 1:case 4:case 5:case 3:return OV(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 347:return Bet(e);case 341:return She(e);case 278:{let{expression:r}=e;return kn(r)?r:void 0}case 213:let t=e;if(Lhe(t))return t.argumentExpression}return e.name}function vhe(e){if(e!==void 0)return AV(e)||(rye(e)||nye(e)||oV(e)?Uet(e):void 0)}function Uet(e){if(e.parent){if(aot(e.parent)||znt(e.parent))return e.parent.name;if(v1(e.parent)&&e===e.parent.right){if(kn(e.parent.left))return e.parent.left;if(Uhe(e.parent.left))return OV(e.parent.left)}else if(iye(e.parent)&&kn(e.parent.name))return e.parent.name}else return}function zet(e){if(grt(e))return Q_(e.modifiers,jV)}function Vet(e){if(XD(e,98303))return Q_(e.modifiers,ftt)}function bhe(e,t){if(e.name)if(kn(e.name)){let r=e.name.escapedText;return KD(e.parent,t).filter(n=>ome(n)&&kn(n.name)&&n.name.escapedText===r)}else{let r=e.parent.parameters.indexOf(e);pe.assert(r>-1,"Parameters should always be in their parents' parameter list");let n=KD(e.parent,t).filter(ome);if(rbot(n)&&n.typeParameters.some(o=>o.name.escapedText===r))}function Get(e){return xhe(e,!1)}function Het(e){return xhe(e,!0)}function Zet(e){return ah(e,dot)}function Wet(e){return ott(e,xot)}function Qet(e){return ah(e,_ot,!0)}function Xet(e){return ah(e,fot,!0)}function Yet(e){return ah(e,mot,!0)}function ett(e){return ah(e,hot,!0)}function ttt(e){return ah(e,yot,!0)}function rtt(e){return ah(e,Sot,!0)}function ntt(e){let t=ah(e,UV);if(t&&t.typeExpression&&t.typeExpression.type)return t}function KD(e,t){var r;if(!NV(e))return ii;let n=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(n===void 0||t){let o=rrt(e,t);pe.assert(o.length<2||o[0]!==o[1]),n=Ume(o,i=>fye(i)?i.tags:i),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=n)}return n}function Ehe(e){return KD(e,!1)}function ah(e,t,r){return Bme(KD(e,r),t)}function ott(e,t){return Ehe(e).filter(t)}function Qz(e){return e.kind===80||e.kind===81}function itt(e){return tf(e)&&!!(e.flags&64)}function att(e){return YD(e)&&!!(e.flags&64)}function Bfe(e){return tye(e)&&!!(e.flags&64)}function stt(e){let t=e.kind;return!!(e.flags&64)&&(t===212||t===213||t===214||t===236)}function wV(e){return zV(e,8)}function ctt(e){return cO(e)&&!!(e.flags&64)}function IV(e){return e>=167}function The(e){return e>=0&&e<=166}function ltt(e){return The(e.kind)}function rh(e){return _d(e,"pos")&&_d(e,"end")}function utt(e){return 9<=e&&e<=15}function qfe(e){return 15<=e&&e<=18}function d1(e){var t;return kn(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function Dhe(e){var t;return jg(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function ptt(e){return(SO(e)||ytt(e))&&jg(e.name)}function Z_(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function dtt(e){return!!(Bhe(e)&31)}function _tt(e){return dtt(e)||e===126||e===164||e===129}function ftt(e){return Z_(e.kind)}function Ahe(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===168}function whe(e){return!!e&&htt(e.kind)}function mtt(e){switch(e){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function htt(e){switch(e){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return mtt(e)}}function m1(e){return e&&(e.kind===264||e.kind===232)}function ytt(e){switch(e.kind){case 175:case 178:case 179:return!0;default:return!1}}function gtt(e){let t=e.kind;return t===304||t===305||t===306||t===175||t===178||t===179}function Stt(e){return krt(e.kind)}function vtt(e){if(e){let t=e.kind;return t===208||t===207}return!1}function btt(e){let t=e.kind;return t===210||t===211}function xtt(e){switch(e.kind){case 261:case 170:case 209:return!0}return!1}function h1(e){return Ihe(wV(e).kind)}function Ihe(e){switch(e){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function Ett(e){return khe(wV(e).kind)}function khe(e){switch(e){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return Ihe(e)}}function Ttt(e){return Dtt(wV(e).kind)}function Dtt(e){switch(e){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return khe(e)}}function Att(e){return e===220||e===209||e===264||e===232||e===176||e===177||e===267||e===307||e===282||e===263||e===219||e===178||e===274||e===272||e===277||e===265||e===292||e===175||e===174||e===268||e===271||e===275||e===281||e===170||e===304||e===173||e===172||e===179||e===305||e===266||e===169||e===261||e===347||e===339||e===349||e===203}function Che(e){return e===263||e===283||e===264||e===265||e===266||e===267||e===268||e===273||e===272||e===279||e===278||e===271}function Phe(e){return e===253||e===252||e===260||e===247||e===245||e===243||e===250||e===251||e===249||e===246||e===257||e===254||e===256||e===258||e===259||e===244||e===248||e===255||e===354}function Ufe(e){return e.kind===169?e.parent&&e.parent.kind!==346||Bg(e):Att(e.kind)}function wtt(e){let t=e.kind;return Phe(t)||Che(t)||Itt(e)}function Itt(e){return e.kind!==242||e.parent!==void 0&&(e.parent.kind===259||e.parent.kind===300)?!1:!ztt(e)}function ktt(e){let t=e.kind;return Phe(t)||Che(t)||t===242}function Ohe(e){return e.kind>=310&&e.kind<=352}function Ctt(e){return e.kind===321||e.kind===320||e.kind===322||Ntt(e)||Ptt(e)||pot(e)||mye(e)}function Ptt(e){return e.kind>=328&&e.kind<=352}function Y3(e){return e.kind===179}function eO(e){return e.kind===178}function Rg(e){if(!NV(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function Ott(e){return!!e.initializer}function kV(e){return e.kind===11||e.kind===15}function Ntt(e){return e.kind===325||e.kind===326||e.kind===327}function zfe(e){return(e.flags&33554432)!==0}var sjt=Ftt();function Ftt(){var e="";let t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,n)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&f1(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:S1,decreaseIndent:S1,clear:()=>e=""}}function Rtt(e,t){let r=e.entries();for(let[n,o]of r){let i=t(o,n);if(i)return i}}function Ltt(e){return e.end-e.pos}function Nhe(e){return $tt(e),(e.flags&1048576)!==0}function $tt(e){e.flags&2097152||(((e.flags&262144)!==0||La(e,Nhe))&&(e.flags|=1048576),e.flags|=2097152)}function oh(e){for(;e&&e.kind!==308;)e=e.parent;return e}function Lg(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Xz(e){return!Lg(e)}function hO(e,t,r){if(Lg(e))return e.pos;if(Ohe(e)||e.kind===12)return pd((t??oh(e)).text,e.pos,!1,!0);if(r&&Rg(e))return hO(e.jsDoc[0],t);if(e.kind===353){t??(t=oh(e));let n=hV(hye(e,t));if(n)return hO(n,t,r)}return pd((t??oh(e)).text,e.pos,!1,!1,Vtt(e))}function Vfe(e,t,r=!1){return $D(e.text,t,r)}function Mtt(e){return!!ghe(e,cot)}function $D(e,t,r=!1){if(Lg(t))return"";let n=e.substring(r?t.pos:pd(e,t.pos),t.end);return Mtt(t)&&(n=n.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(` +`)),n}function y1(e){let t=e.emitNode;return t&&t.flags||0}function jtt(e,t,r){pe.assertGreaterThanOrEqual(t,0),pe.assertGreaterThanOrEqual(r,0),pe.assertLessThanOrEqual(t,e.length),pe.assertLessThanOrEqual(t+r,e.length)}function sO(e){return e.kind===245&&e.expression.kind===11}function CV(e){return!!(y1(e)&2097152)}function Jfe(e){return CV(e)&&aye(e)}function Btt(e){return kn(e.name)&&!e.initializer}function Kfe(e){return CV(e)&&DO(e)&&fV(e.declarationList.declarations,Btt)}function qtt(e,t){let r=e.kind===170||e.kind===169||e.kind===219||e.kind===220||e.kind===218||e.kind===261||e.kind===282?mV(Pet(t,e.pos),Zz(t,e.pos)):Zz(t,e.pos);return Q_(r,n=>n.end<=e.end&&t.charCodeAt(n.pos+1)===42&&t.charCodeAt(n.pos+2)===42&&t.charCodeAt(n.pos+3)!==47)}function Utt(e){if(e)switch(e.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function ztt(e){return e&&e.kind===242&&whe(e.parent)}function Gfe(e){let t=e.kind;return(t===212||t===213)&&e.expression.kind===108}function Bg(e){return!!e&&!!(e.flags&524288)}function Vtt(e){return!!e&&!!(e.flags&16777216)}function Jtt(e){for(;yO(e,!0);)e=e.right;return e}function Ktt(e){return kn(e)&&e.escapedText==="exports"}function Gtt(e){return kn(e)&&e.escapedText==="module"}function Fhe(e){return(tf(e)||Rhe(e))&&Gtt(e.expression)&&HD(e)==="exports"}function PV(e){let t=Ztt(e);return t===5||Bg(e)?t:0}function Htt(e){return ND(e.arguments)===3&&tf(e.expression)&&kn(e.expression.expression)&&uc(e.expression.expression)==="Object"&&uc(e.expression.name)==="defineProperty"&&TO(e.arguments[1])&&GD(e.arguments[0],!0)}function Rhe(e){return YD(e)&&TO(e.argumentExpression)}function QD(e,t){return tf(e)&&(!t&&e.expression.kind===110||kn(e.name)&&GD(e.expression,!0))||Lhe(e,t)}function Lhe(e,t){return Rhe(e)&&(!t&&e.expression.kind===110||LV(e.expression)||QD(e.expression,!0))}function GD(e,t){return LV(e)||QD(e,t)}function Ztt(e){if(tye(e)){if(!Htt(e))return 0;let t=e.arguments[0];return Ktt(t)||Fhe(t)?8:QD(t)&&HD(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Uhe(e.left)||Wtt(Jtt(e))?0:GD(e.left.expression,!0)&&HD(e.left)==="prototype"&&eye(Xtt(e))?6:Qtt(e.left)}function Wtt(e){return Knt(e)&&b1(e.expression)&&e.expression.text==="0"}function OV(e){if(tf(e))return e.name;let t=FV(e.argumentExpression);return b1(t)||kV(t)?t:e}function HD(e){let t=OV(e);if(t){if(kn(t))return t.escapedText;if(kV(t)||b1(t))return a1(t.text)}}function Qtt(e){if(e.expression.kind===110)return 4;if(Fhe(e))return 2;if(GD(e.expression,!0)){if(wrt(e.expression))return 3;let t=e;for(;!kn(t.expression);)t=t.expression;let r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&HD(t)==="exports")&&QD(e))return 1;if(GD(e,!0)||YD(e)&&drt(e))return 5}return 0}function Xtt(e){for(;v1(e.right);)e=e.right;return e.right}function Ytt(e){return oye(e)&&v1(e.expression)&&PV(e.expression)!==0&&v1(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function ert(e){switch(e.kind){case 244:let t=Yz(e);return t&&t.initializer;case 173:return e.initializer;case 304:return e.initializer}}function Yz(e){return DO(e)?hV(e.declarationList.declarations):void 0}function trt(e){return WD(e)&&e.body&&e.body.kind===268?e.body:void 0}function NV(e){switch(e.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function rrt(e,t){let r;Utt(e)&&Ott(e)&&Rg(e.initializer)&&(r=lc(r,Hfe(e,e.initializer.jsDoc)));let n=e;for(;n&&n.parent;){if(Rg(n)&&(r=lc(r,Hfe(e,n.jsDoc))),n.kind===170){r=lc(r,(t?Ket:Jet)(n));break}if(n.kind===169){r=lc(r,(t?Het:Get)(n));break}n=ort(n)}return r||ii}function Hfe(e,t){let r=NYe(t);return Ume(t,n=>{if(n===r){let o=Q_(n.tags,i=>nrt(e,i));return n.tags===o?[n]:o}else return Q_(n.tags,got)})}function nrt(e,t){return!(UV(t)||Eot(t))||!t.parent||!fye(t.parent)||!BV(t.parent.parent)||t.parent.parent===e}function ort(e){let t=e.parent;if(t.kind===304||t.kind===278||t.kind===173||t.kind===245&&e.kind===212||t.kind===254||trt(t)||yO(e))return t;if(t.parent&&(Yz(t.parent)===e||yO(t)))return t.parent;if(t.parent&&t.parent.parent&&(Yz(t.parent.parent)||ert(t.parent.parent)===e||Ytt(t.parent.parent)))return t.parent.parent}function FV(e,t){return zV(e,t?-2147483647:1)}function irt(e){let t=art(e);if(t&&Bg(e)){let r=Zet(e);if(r)return r.class}return t}function art(e){let t=RV(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function srt(e){return Bg(e)?Wet(e).map(t=>t.class):RV(e.heritageClauses,119)?.types}function crt(e){return qV(e)?lrt(e)||ii:m1(e)&&mV(Kz(irt(e)),srt(e))||ii}function lrt(e){let t=RV(e.heritageClauses,96);return t?t.types:void 0}function RV(e,t){if(e){for(let r of e)if(r.token===t)return r}}function th(e){return 83<=e&&e<=166}function urt(e){return 19<=e&&e<=79}function Oz(e){return th(e)||urt(e)}function TO(e){return kV(e)||b1(e)}function prt(e){return Gnt(e)&&(e.operator===40||e.operator===41)&&b1(e.operand)}function drt(e){if(!(e.kind===168||e.kind===213))return!1;let t=YD(e)?FV(e.argumentExpression):e.expression;return!TO(t)&&!prt(t)}function _rt(e){return Qz(e)?uc(e):_ye(e)?rnt(e):e.text}function s1(e){return ZD(e.pos)||ZD(e.end)}function Nz(e){switch(e){case 61:return 5;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function Fz(e){return!!((e.templateFlags||0)&2048)}function frt(e){return e&&!!(mnt(e)?Fz(e):Fz(e.head)||Ra(e.templateSpans,t=>Fz(t.literal)))}var cjt=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),ljt=new Map(Object.entries({'"':""","'":"'"}));function mrt(e){return!!e&&e.kind===80&&hrt(e)}function hrt(e){return e.escapedText==="this"}function XD(e,t){return!!Srt(e,t)}function yrt(e){return XD(e,256)}function grt(e){return XD(e,32768)}function Srt(e,t){return brt(e)&t}function vrt(e,t,r){return e.kind>=0&&e.kind<=166?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=jhe(e)|536870912),r||t&&Bg(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=$he(e)|268435456),Mhe(e.modifierFlagsCache)):xrt(e.modifierFlagsCache))}function brt(e){return vrt(e,!1)}function $he(e){let t=0;return e.parent&&!gO(e)&&(Bg(e)&&(Qet(e)&&(t|=8388608),Xet(e)&&(t|=16777216),Yet(e)&&(t|=33554432),ett(e)&&(t|=67108864),ttt(e)&&(t|=134217728)),rtt(e)&&(t|=65536)),t}function xrt(e){return e&65535}function Mhe(e){return e&131071|(e&260046848)>>>23}function Ert(e){return Mhe($he(e))}function Trt(e){return jhe(e)|Ert(e)}function jhe(e){let t=VV(e)?zc(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function zc(e){let t=0;if(e)for(let r of e)t|=Bhe(r.kind);return t}function Bhe(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 171:return 32768}return 0}function Drt(e){return e===76||e===77||e===78}function qhe(e){return e>=64&&e<=79}function yO(e,t){return v1(e)&&(t?e.operatorToken.kind===64:qhe(e.operatorToken.kind))&&h1(e.left)}function LV(e){return e.kind===80||Art(e)}function Art(e){return tf(e)&&kn(e.name)&&LV(e.expression)}function wrt(e){return QD(e)&&HD(e)==="prototype"}function Rz(e){return e.flags&3899393?e.objectFlags:0}function Irt(e){let t;return La(e,r=>{Xz(r)&&(t=r)},r=>{for(let n=r.length-1;n>=0;n--)if(Xz(r[n])){t=r[n];break}}),t}function krt(e){return e>=183&&e<=206||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===234||e===313||e===314||e===315||e===316||e===317||e===318||e===319}function Uhe(e){return e.kind===212||e.kind===213}function Crt(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function Prt(e,t){this.flags=t,(pe.isDebugging||iO)&&(this.checker=e)}function Ort(e,t){this.flags=t,pe.isDebugging&&(this.checker=e)}function Lz(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Nrt(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function Frt(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Rrt(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(n=>n)}var oi={getNodeConstructor:()=>Lz,getTokenConstructor:()=>Nrt,getIdentifierConstructor:()=>Frt,getPrivateIdentifierConstructor:()=>Lz,getSourceFileConstructor:()=>Lz,getSymbolConstructor:()=>Crt,getTypeConstructor:()=>Prt,getSignatureConstructor:()=>Ort,getSourceMapSourceConstructor:()=>Rrt},Lrt=[];function $rt(e){Object.assign(oi,e),Jc(Lrt,t=>t(oi))}function Mrt(e,t){return e.replace(/\{(\d+)\}/g,(r,n)=>""+pe.checkDefined(t[+n]))}var Zfe;function jrt(e){return Zfe&&Zfe[e.key]||e.message}function r1(e,t,r,n,o,...i){r+n>t.length&&(n=t.length-r),jtt(t,r,n);let a=jrt(o);return Ra(i)&&(a=Mrt(a,i)),{file:void 0,start:r,length:n,messageText:a,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function Brt(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function zhe(e,t){let r=t.fileName||"",n=t.text.length;pe.assertEqual(e.fileName,r),pe.assertLessThanOrEqual(e.start,n),pe.assertLessThanOrEqual(e.start+e.length,n);let o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(let i of e.relatedInformation)Brt(i)&&i.fileName===r?(pe.assertLessThanOrEqual(i.start,n),pe.assertLessThanOrEqual(i.start+i.length,n),o.relatedInformation.push(zhe(i,t))):o.relatedInformation.push(i)}return o}function Ig(e,t){let r=[];for(let n of e)r.push(zhe(n,t));return r}function Wfe(e){return e===4||e===2||e===1||e===6?1:0}var Xn={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!!(e.allowImportingTsExtensions||e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===101&&9||e.module===102&&10||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:Xn.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(Xn.module.computeValue(e)){case 1:t=2;break;case 100:case 101:case 102:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>{if(e.moduleDetection!==void 0)return e.moduleDetection;let t=Xn.module.computeValue(e);return 100<=t&&t<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Xn.module.computeValue(e)){case 100:case 101:case 102:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:Xn.esModuleInterop.computeValue(e)||Xn.module.computeValue(e)===4||Xn.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=Xn.moduleResolution.computeValue(e);if(!Qfe(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=Xn.moduleResolution.computeValue(e);if(!Qfe(t))return!1;if(e.resolvePackageJsonImports!==void 0)return e.resolvePackageJsonImports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>{if(e.resolveJsonModule!==void 0)return e.resolveJsonModule;switch(Xn.module.computeValue(e)){case 102:case 199:return!0}return Xn.moduleResolution.computeValue(e)===100}},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||Xn.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&Xn.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?Xn.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>G_(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>G_(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>G_(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>G_(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>G_(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>G_(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>G_(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>G_(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>G_(e,"useUnknownInCatchVariables")}},ujt=Xn.allowImportingTsExtensions.computeValue,pjt=Xn.target.computeValue,djt=Xn.module.computeValue,_jt=Xn.moduleResolution.computeValue,fjt=Xn.moduleDetection.computeValue,mjt=Xn.isolatedModules.computeValue,hjt=Xn.esModuleInterop.computeValue,yjt=Xn.allowSyntheticDefaultImports.computeValue,gjt=Xn.resolvePackageJsonExports.computeValue,Sjt=Xn.resolvePackageJsonImports.computeValue,vjt=Xn.resolveJsonModule.computeValue,bjt=Xn.declaration.computeValue,xjt=Xn.preserveConstEnums.computeValue,Ejt=Xn.incremental.computeValue,Tjt=Xn.declarationMap.computeValue,Djt=Xn.allowJs.computeValue,Ajt=Xn.useDefineForClassFields.computeValue;function Qfe(e){return e>=3&&e<=99||e===100}function G_(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function qrt(e){return Rtt(targetOptionDeclaration.type,(t,r)=>t===e?r:void 0)}var Urt=["node_modules","bower_components","jspm_packages"],Vhe=`(?!(?:${Urt.join("|")})(?:/|$))`,zrt={singleAsteriskRegexFragment:"(?:[^./]|(?:\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(?:/${Vhe}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Jhe(e,zrt.singleAsteriskRegexFragment)},Vrt={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(?:/${Vhe}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Jhe(e,Vrt.singleAsteriskRegexFragment)};function Jhe(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function Jrt(e,t){return t||Krt(e)||3}function Krt(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var Khe=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],wjt=qme(Khe),Ijt=[...Khe,[".json"]],Grt=[[".js",".jsx"],[".mjs"],[".cjs"]],kjt=qme(Grt),Hrt=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Cjt=[...Hrt,[".json"]],Zrt=[".d.ts",".d.cts",".d.mts"];function ZD(e){return!(e>=0)}function tO(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),pe.assert(e.relatedInformation!==ii,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Wrt(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let p=e.length-1,d=0;for(;e.charCodeAt(d)===48;)d++;return e.slice(d,p)||"0"}let r=2,n=e.length-1,o=(n-r)*t,i=new Uint16Array((o>>>4)+(o&15?1:0));for(let p=n-1,d=0;p>=r;p--,d+=t){let f=d>>>4,m=e.charCodeAt(p),y=(m<=57?m-48:10+m-(m<=70?65:97))<<(d&15);i[f]|=y;let g=y>>>16;g&&(i[f+1]|=g)}let a="",s=i.length-1,c=!0;for(;c;){let p=0;c=!1;for(let d=s;d>=0;d--){let f=p<<16|i[d],m=f/10|0;i[d]=m,p=f-m*10,m&&!c&&(s=d,c=!0)}a=p+a}return a}function Qrt({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function eV(e,t){return e.pos=t,e}function Xrt(e,t){return e.end=t,e}function ih(e,t,r){return Xrt(eV(e,t),r)}function Xfe(e,t,r){return ih(e,t,t+r)}function $V(e,t){return e&&t&&(e.parent=t),e}function Yrt(e,t){if(!e)return e;return wme(e,Ohe(e)?r:o),e;function r(i,a){if(t&&i.parent===a)return"skip";$V(i,a)}function n(i){if(Rg(i))for(let a of i.jsDoc)r(a,i),wme(a,r)}function o(i,a){return r(i,a)||n(i)}}function ent(e){return!!(e.flags&262144&&e.isThisType)}function tnt(e){var t;return((t=getSnippetElement(e))==null?void 0:t.kind)===0}function rnt(e){return`${uc(e.namespace)}:${uc(e.name)}`}var Pjt=String.prototype.replace,tV=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],Ojt=new Set(tV),nnt=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),Njt=new Set([...tV,...tV.map(e=>`node:${e}`),...nnt]);function ont(){let e,t,r,n,o;return{createBaseSourceFileNode:i,createBaseIdentifierNode:a,createBasePrivateIdentifierNode:s,createBaseTokenNode:c,createBaseNode:p};function i(d){return new(o||(o=oi.getSourceFileConstructor()))(d,-1,-1)}function a(d){return new(r||(r=oi.getIdentifierConstructor()))(d,-1,-1)}function s(d){return new(n||(n=oi.getPrivateIdentifierConstructor()))(d,-1,-1)}function c(d){return new(t||(t=oi.getTokenConstructor()))(d,-1,-1)}function p(d){return new(e||(e=oi.getNodeConstructor()))(d,-1,-1)}}var int={getParenthesizeLeftSideOfBinaryForOperator:e=>Bo,getParenthesizeRightSideOfBinaryForOperator:e=>Bo,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:Bo,parenthesizeConditionOfConditionalExpression:Bo,parenthesizeBranchOfConditionalExpression:Bo,parenthesizeExpressionOfExportDefault:Bo,parenthesizeExpressionOfNew:e=>ud(e,h1),parenthesizeLeftSideOfAccess:e=>ud(e,h1),parenthesizeOperandOfPostfixUnary:e=>ud(e,h1),parenthesizeOperandOfPrefixUnary:e=>ud(e,Ett),parenthesizeExpressionsOfCommaDelimitedList:e=>ud(e,rh),parenthesizeExpressionForDisallowedComma:Bo,parenthesizeExpressionOfExpressionStatement:Bo,parenthesizeConciseBodyOfArrowFunction:Bo,parenthesizeCheckTypeOfConditionalType:Bo,parenthesizeExtendsTypeOfConditionalType:Bo,parenthesizeConstituentTypesOfUnionType:e=>ud(e,rh),parenthesizeConstituentTypeOfUnionType:Bo,parenthesizeConstituentTypesOfIntersectionType:e=>ud(e,rh),parenthesizeConstituentTypeOfIntersectionType:Bo,parenthesizeOperandOfTypeOperator:Bo,parenthesizeOperandOfReadonlyTypeOperator:Bo,parenthesizeNonArrayTypeOfPostfixType:Bo,parenthesizeElementTypesOfTupleType:e=>ud(e,rh),parenthesizeElementTypeOfTupleType:Bo,parenthesizeTypeOfOptionalType:Bo,parenthesizeTypeArguments:e=>e&&ud(e,rh),parenthesizeLeadingTypeArgument:Bo},rO=0,ant=[];function MV(e,t){let r=e&8?Bo:pnt,n=kfe(()=>e&1?int:createParenthesizerRules(A)),o=kfe(()=>e&2?nullNodeConverters:createNodeConverters(A)),i=$l(l=>(_,h)=>LS(_,l,h)),a=$l(l=>_=>Ud(l,_)),s=$l(l=>_=>Of(_,l)),c=$l(l=>()=>ek(l)),p=$l(l=>_=>Wb(l,_)),d=$l(l=>(_,h)=>e8(l,_,h)),f=$l(l=>(_,h)=>tk(l,_,h)),m=$l(l=>(_,h)=>YR(l,_,h)),y=$l(l=>(_,h)=>Sk(l,_,h)),g=$l(l=>(_,h,b)=>p8(l,_,h,b)),S=$l(l=>(_,h,b)=>vk(l,_,h,b)),x=$l(l=>(_,h,b,k)=>d8(l,_,h,b,k)),A={get parenthesizer(){return n()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:I,createNumericLiteral:O,createBigIntLiteral:$,createStringLiteral:U,createStringLiteralFromNode:ge,createRegularExpressionLiteral:Te,createLiteralLikeNode:ke,createIdentifier:xe,createTempVariable:Rt,createLoopVariable:Vt,createUniqueName:Yt,getGeneratedNameForNode:vt,createPrivateIdentifier:le,createUniquePrivateName:ae,getGeneratedPrivateNameForNode:he,createToken:pt,createSuper:Ye,createThis:lt,createNull:Nt,createTrue:Ct,createFalse:Hr,createModifier:It,createModifiersFromModifierFlags:fo,createQualifiedName:rn,updateQualifiedName:Gn,createComputedPropertyName:bt,updateComputedPropertyName:Hn,createTypeParameterDeclaration:Di,updateTypeParameterDeclaration:Ga,createParameterDeclaration:ji,updateParameterDeclaration:ou,createDecorator:nl,updateDecorator:ol,createPropertySignature:Ld,updatePropertySignature:il,createPropertyDeclaration:cp,updatePropertyDeclaration:oe,createMethodSignature:qe,updateMethodSignature:et,createMethodDeclaration:Et,updateMethodDeclaration:Zr,createConstructorDeclaration:co,updateConstructorDeclaration:$d,createGetAccessorDeclaration:vc,updateGetAccessorDeclaration:al,createSetAccessorDeclaration:ue,updateSetAccessorDeclaration:Ee,createCallSignature:Tt,updateCallSignature:At,createConstructSignature:kt,updateConstructSignature:ut,createIndexSignature:Ir,updateIndexSignature:Tn,createClassStaticBlockDeclaration:ro,updateClassStaticBlockDeclaration:fi,createTemplateLiteralTypeSpan:$r,updateTemplateLiteralTypeSpan:Ft,createKeywordTypeNode:Bs,createTypePredicateNode:Zn,updateTypePredicateNode:_s,createTypeReferenceNode:kf,updateTypeReferenceNode:re,createFunctionTypeNode:fr,updateFunctionTypeNode:T,createConstructorTypeNode:er,updateConstructorTypeNode:Ha,createTypeQueryNode:mi,updateTypeQueryNode:ei,createTypeLiteralNode:hi,updateTypeLiteralNode:Gi,createArrayTypeNode:sl,updateArrayTypeNode:ey,createTupleTypeNode:fs,updateTupleTypeNode:ye,createNamedTupleMember:We,updateNamedTupleMember:br,createOptionalTypeNode:ht,updateOptionalTypeNode:ie,createRestTypeNode:To,updateRestTypeNode:zo,createUnionTypeNode:yR,updateUnionTypeNode:Ow,createIntersectionTypeNode:Md,updateIntersectionTypeNode:tr,createConditionalTypeNode:mo,updateConditionalTypeNode:gR,createInferTypeNode:cl,updateInferTypeNode:SR,createImportTypeNode:iu,updateImportTypeNode:CS,createParenthesizedType:ba,updateParenthesizedType:ui,createThisTypeNode:X,createTypeOperatorNode:ua,updateTypeOperatorNode:jd,createIndexedAccessTypeNode:au,updateIndexedAccessTypeNode:vb,createMappedTypeNode:No,updateMappedTypeNode:qi,createLiteralTypeNode:Cf,updateLiteralTypeNode:up,createTemplateLiteralType:la,updateTemplateLiteralType:vR,createObjectBindingPattern:Nw,updateObjectBindingPattern:bR,createArrayBindingPattern:Bd,updateArrayBindingPattern:xR,createBindingElement:PS,updateBindingElement:Pf,createArrayLiteralExpression:bb,updateArrayLiteralExpression:Fw,createObjectLiteralExpression:ty,updateObjectLiteralExpression:ER,createPropertyAccessExpression:e&4?(l,_)=>setEmitFlags(su(l,_),262144):su,updatePropertyAccessExpression:TR,createPropertyAccessChain:e&4?(l,_,h)=>setEmitFlags(ry(l,_,h),262144):ry,updatePropertyAccessChain:OS,createElementAccessExpression:ny,updateElementAccessExpression:DR,createElementAccessChain:$w,updateElementAccessChain:xb,createCallExpression:oy,updateCallExpression:NS,createCallChain:Eb,updateCallChain:jw,createNewExpression:qs,updateNewExpression:Tb,createTaggedTemplateExpression:FS,updateTaggedTemplateExpression:Bw,createTypeAssertion:qw,updateTypeAssertion:Uw,createParenthesizedExpression:Db,updateParenthesizedExpression:zw,createFunctionExpression:Ab,updateFunctionExpression:Vw,createArrowFunction:wb,updateArrowFunction:Jw,createDeleteExpression:Kw,updateDeleteExpression:Gw,createTypeOfExpression:RS,updateTypeOfExpression:hs,createVoidExpression:Ib,updateVoidExpression:cu,createAwaitExpression:Hw,updateAwaitExpression:qd,createPrefixUnaryExpression:Ud,updatePrefixUnaryExpression:AR,createPostfixUnaryExpression:Of,updatePostfixUnaryExpression:wR,createBinaryExpression:LS,updateBinaryExpression:IR,createConditionalExpression:Ww,updateConditionalExpression:Qw,createTemplateExpression:Xw,updateTemplateExpression:ll,createTemplateHead:eI,createTemplateMiddle:$S,createTemplateTail:kb,createNoSubstitutionTemplateLiteral:CR,createTemplateLiteralLikeNode:Ff,createYieldExpression:Cb,updateYieldExpression:PR,createSpreadElement:tI,updateSpreadElement:OR,createClassExpression:rI,updateClassExpression:Pb,createOmittedExpression:Ob,createExpressionWithTypeArguments:nI,updateExpressionWithTypeArguments:oI,createAsExpression:ys,updateAsExpression:MS,createNonNullExpression:iI,updateNonNullExpression:aI,createSatisfiesExpression:Nb,updateSatisfiesExpression:sI,createNonNullChain:Fb,updateNonNullChain:bc,createMetaProperty:cI,updateMetaProperty:Rb,createTemplateSpan:ul,updateTemplateSpan:jS,createSemicolonClassElement:lI,createBlock:zd,updateBlock:NR,createVariableStatement:Lb,updateVariableStatement:uI,createEmptyStatement:pI,createExpressionStatement:ay,updateExpressionStatement:dI,createIfStatement:_I,updateIfStatement:fI,createDoStatement:mI,updateDoStatement:hI,createWhileStatement:yI,updateWhileStatement:FR,createForStatement:gI,updateForStatement:SI,createForInStatement:$b,updateForInStatement:RR,createForOfStatement:vI,updateForOfStatement:LR,createContinueStatement:bI,updateContinueStatement:$R,createBreakStatement:Mb,updateBreakStatement:xI,createReturnStatement:jb,updateReturnStatement:MR,createWithStatement:Bb,updateWithStatement:EI,createSwitchStatement:qb,updateSwitchStatement:Rf,createLabeledStatement:TI,updateLabeledStatement:DI,createThrowStatement:AI,updateThrowStatement:jR,createTryStatement:wI,updateTryStatement:BR,createDebuggerStatement:II,createVariableDeclaration:BS,updateVariableDeclaration:kI,createVariableDeclarationList:Ub,updateVariableDeclarationList:qR,createFunctionDeclaration:CI,updateFunctionDeclaration:zb,createClassDeclaration:PI,updateClassDeclaration:qS,createInterfaceDeclaration:OI,updateInterfaceDeclaration:NI,createTypeAliasDeclaration:no,updateTypeAliasDeclaration:pp,createEnumDeclaration:Vb,updateEnumDeclaration:dp,createModuleDeclaration:FI,updateModuleDeclaration:ti,createModuleBlock:_p,updateModuleBlock:Hi,createCaseBlock:RI,updateCaseBlock:zR,createNamespaceExportDeclaration:LI,updateNamespaceExportDeclaration:$I,createImportEqualsDeclaration:MI,updateImportEqualsDeclaration:jI,createImportDeclaration:BI,updateImportDeclaration:qI,createImportClause:UI,updateImportClause:zI,createAssertClause:Jb,updateAssertClause:JR,createAssertEntry:sy,updateAssertEntry:VI,createImportTypeAssertionContainer:Kb,updateImportTypeAssertionContainer:JI,createImportAttributes:KI,updateImportAttributes:Gb,createImportAttribute:GI,updateImportAttribute:HI,createNamespaceImport:ZI,updateNamespaceImport:KR,createNamespaceExport:WI,updateNamespaceExport:GR,createNamedImports:QI,updateNamedImports:XI,createImportSpecifier:fp,updateImportSpecifier:HR,createExportAssignment:US,updateExportAssignment:cy,createExportDeclaration:zS,updateExportDeclaration:YI,createNamedExports:Hb,updateNamedExports:ZR,createExportSpecifier:VS,updateExportSpecifier:WR,createMissingDeclaration:QR,createExternalModuleReference:Zb,updateExternalModuleReference:XR,get createJSDocAllType(){return c(313)},get createJSDocUnknownType(){return c(314)},get createJSDocNonNullableType(){return f(316)},get updateJSDocNonNullableType(){return m(316)},get createJSDocNullableType(){return f(315)},get updateJSDocNullableType(){return m(315)},get createJSDocOptionalType(){return p(317)},get updateJSDocOptionalType(){return d(317)},get createJSDocVariadicType(){return p(319)},get updateJSDocVariadicType(){return d(319)},get createJSDocNamepathType(){return p(320)},get updateJSDocNamepathType(){return d(320)},createJSDocFunctionType:rk,updateJSDocFunctionType:t8,createJSDocTypeLiteral:nk,updateJSDocTypeLiteral:r8,createJSDocTypeExpression:ok,updateJSDocTypeExpression:Qb,createJSDocSignature:ik,updateJSDocSignature:n8,createJSDocTemplateTag:Xb,updateJSDocTemplateTag:ak,createJSDocTypedefTag:JS,updateJSDocTypedefTag:o8,createJSDocParameterTag:Yb,updateJSDocParameterTag:i8,createJSDocPropertyTag:sk,updateJSDocPropertyTag:ck,createJSDocCallbackTag:lk,updateJSDocCallbackTag:uk,createJSDocOverloadTag:pk,updateJSDocOverloadTag:ex,createJSDocAugmentsTag:tx,updateJSDocAugmentsTag:uy,createJSDocImplementsTag:dk,updateJSDocImplementsTag:u8,createJSDocSeeTag:Jd,updateJSDocSeeTag:KS,createJSDocImportTag:Ek,updateJSDocImportTag:Tk,createJSDocNameReference:_k,updateJSDocNameReference:a8,createJSDocMemberName:fk,updateJSDocMemberName:s8,createJSDocLink:mk,updateJSDocLink:hk,createJSDocLinkCode:yk,updateJSDocLinkCode:c8,createJSDocLinkPlain:gk,updateJSDocLinkPlain:l8,get createJSDocTypeTag(){return S(345)},get updateJSDocTypeTag(){return x(345)},get createJSDocReturnTag(){return S(343)},get updateJSDocReturnTag(){return x(343)},get createJSDocThisTag(){return S(344)},get updateJSDocThisTag(){return x(344)},get createJSDocAuthorTag(){return y(331)},get updateJSDocAuthorTag(){return g(331)},get createJSDocClassTag(){return y(333)},get updateJSDocClassTag(){return g(333)},get createJSDocPublicTag(){return y(334)},get updateJSDocPublicTag(){return g(334)},get createJSDocPrivateTag(){return y(335)},get updateJSDocPrivateTag(){return g(335)},get createJSDocProtectedTag(){return y(336)},get updateJSDocProtectedTag(){return g(336)},get createJSDocReadonlyTag(){return y(337)},get updateJSDocReadonlyTag(){return g(337)},get createJSDocOverrideTag(){return y(338)},get updateJSDocOverrideTag(){return g(338)},get createJSDocDeprecatedTag(){return y(332)},get updateJSDocDeprecatedTag(){return g(332)},get createJSDocThrowsTag(){return S(350)},get updateJSDocThrowsTag(){return x(350)},get createJSDocSatisfiesTag(){return S(351)},get updateJSDocSatisfiesTag(){return x(351)},createJSDocEnumTag:xk,updateJSDocEnumTag:rx,createJSDocUnknownTag:bk,updateJSDocUnknownTag:_8,createJSDocText:nx,updateJSDocText:f8,createJSDocComment:py,updateJSDocComment:Dk,createJsxElement:Ak,updateJsxElement:m8,createJsxSelfClosingElement:wk,updateJsxSelfClosingElement:h8,createJsxOpeningElement:GS,updateJsxOpeningElement:Ik,createJsxClosingElement:ox,updateJsxClosingElement:ix,createJsxFragment:pa,createJsxText:dy,updateJsxText:y8,createJsxOpeningFragment:Ck,createJsxJsxClosingFragment:Pk,updateJsxFragment:kk,createJsxAttribute:Ok,updateJsxAttribute:g8,createJsxAttributes:_y,updateJsxAttributes:S8,createJsxSpreadAttribute:Nk,updateJsxSpreadAttribute:v8,createJsxExpression:Fk,updateJsxExpression:ax,createJsxNamespacedName:Lf,updateJsxNamespacedName:b8,createCaseClause:HS,updateCaseClause:Rk,createDefaultClause:Lk,updateDefaultClause:fy,createHeritageClause:sx,updateHeritageClause:x8,createCatchClause:$k,updateCatchClause:Mk,createPropertyAssignment:ZS,updatePropertyAssignment:cx,createShorthandPropertyAssignment:jk,updateShorthandPropertyAssignment:E8,createSpreadAssignment:Bk,updateSpreadAssignment:qk,createEnumMember:lx,updateEnumMember:xc,createSourceFile:Uk,updateSourceFile:w8,createRedirectedSourceFile:zk,createBundle:Vk,updateBundle:Jk,createSyntheticExpression:I8,createSyntaxList:k8,createNotEmittedStatement:WS,createNotEmittedTypeElement:C8,createPartiallyEmittedExpression:dx,updatePartiallyEmittedExpression:Kk,createCommaListExpression:_x,updateCommaListExpression:O8,createSyntheticReferenceExpression:fx,updateSyntheticReferenceExpression:Gk,cloneNode:QS,get createComma(){return i(28)},get createAssignment(){return i(64)},get createLogicalOr(){return i(57)},get createLogicalAnd(){return i(56)},get createBitwiseOr(){return i(52)},get createBitwiseXor(){return i(53)},get createBitwiseAnd(){return i(51)},get createStrictEquality(){return i(37)},get createStrictInequality(){return i(38)},get createEquality(){return i(35)},get createInequality(){return i(36)},get createLessThan(){return i(30)},get createLessThanEquals(){return i(33)},get createGreaterThan(){return i(32)},get createGreaterThanEquals(){return i(34)},get createLeftShift(){return i(48)},get createRightShift(){return i(49)},get createUnsignedRightShift(){return i(50)},get createAdd(){return i(40)},get createSubtract(){return i(41)},get createMultiply(){return i(42)},get createDivide(){return i(44)},get createModulo(){return i(45)},get createExponent(){return i(43)},get createPrefixPlus(){return a(40)},get createPrefixMinus(){return a(41)},get createPrefixIncrement(){return a(46)},get createPrefixDecrement(){return a(47)},get createBitwiseNot(){return a(55)},get createLogicalNot(){return a(54)},get createPostfixIncrement(){return s(46)},get createPostfixDecrement(){return s(47)},createImmediatelyInvokedFunctionExpression:R8,createImmediatelyInvokedArrowFunction:L8,createVoidZero:my,createExportDefault:Wk,createExternalModuleExport:Qk,createTypeCheck:$8,createIsNotTypeCheck:mx,createMethodCall:Kd,createGlobalMethodCall:hy,createFunctionBindCall:M8,createFunctionCallCall:j8,createFunctionApplyCall:B8,createArraySliceCall:q8,createArrayConcatCall:yy,createObjectDefinePropertyCall:U8,createObjectGetOwnPropertyDescriptorCall:hx,createReflectGetCall:Mf,createReflectSetCall:Xk,createPropertyDescriptor:z8,createCallBinding:rC,createAssignmentTargetWrapper:nC,inlineExpressions:v,getInternalName:P,getLocalName:R,getExportName:M,getDeclarationName:ee,getNamespaceMemberName:be,getExternalModuleOrNamespaceExportName:Ue,restoreOuterExpressions:eC,restoreEnclosingLabel:tC,createUseStrictPrologue:He,copyPrologue:Ce,copyStandardPrologue:mr,copyCustomPrologue:nr,ensureUseStrict:jt,liftToBlock:Wa,mergeLexicalEnvironment:lu,replaceModifiers:uu,replaceDecoratorsAndModifiers:Ec,replacePropertyName:Gd};return Jc(ant,l=>l(A)),A;function I(l,_){if(l===void 0||l===ii)l=[];else if(rh(l)){if(_===void 0||l.hasTrailingComma===_)return l.transformFlags===void 0&&eme(l),pe.attachNodeArrayDebugInfo(l),l;let k=l.slice();return k.pos=l.pos,k.end=l.end,k.hasTrailingComma=_,k.transformFlags=l.transformFlags,pe.attachNodeArrayDebugInfo(k),k}let h=l.length,b=h>=1&&h<=4?l.slice():l;return b.pos=-1,b.end=-1,b.hasTrailingComma=!!_,b.transformFlags=0,eme(b),pe.attachNodeArrayDebugInfo(b),b}function E(l){return t.createBaseNode(l)}function C(l){let _=E(l);return _.symbol=void 0,_.localSymbol=void 0,_}function F(l,_){return l!==_&&(l.typeArguments=_.typeArguments),se(l,_)}function O(l,_=0){let h=typeof l=="number"?l+"":l;pe.assert(h.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let b=C(9);return b.text=h,b.numericLiteralFlags=_,_&384&&(b.transformFlags|=1024),b}function $(l){let _=Oe(10);return _.text=typeof l=="string"?l:Qrt(l)+"n",_.transformFlags|=32,_}function N(l,_){let h=C(11);return h.text=l,h.singleQuote=_,h}function U(l,_,h){let b=N(l,_);return b.hasExtendedUnicodeEscape=h,h&&(b.transformFlags|=1024),b}function ge(l){let _=N(_rt(l),void 0);return _.textSourceNode=l,_}function Te(l){let _=Oe(14);return _.text=l,_}function ke(l,_){switch(l){case 9:return O(_,0);case 10:return $(_);case 11:return U(_,void 0);case 12:return dy(_,!1);case 13:return dy(_,!0);case 14:return Te(_);case 15:return Ff(l,_,void 0,0)}}function Ve(l){let _=t.createBaseIdentifierNode(80);return _.escapedText=l,_.jsDoc=void 0,_.flowNode=void 0,_.symbol=void 0,_}function me(l,_,h,b){let k=Ve(a1(l));return setIdentifierAutoGenerate(k,{flags:_,id:rO,prefix:h,suffix:b}),rO++,k}function xe(l,_,h){_===void 0&&l&&(_=lhe(l)),_===80&&(_=void 0);let b=Ve(a1(l));return h&&(b.flags|=256),b.escapedText==="await"&&(b.transformFlags|=67108864),b.flags&256&&(b.transformFlags|=1024),b}function Rt(l,_,h,b){let k=1;_&&(k|=8);let j=me("",k,h,b);return l&&l(j),j}function Vt(l){let _=2;return l&&(_|=8),me("",_,void 0,void 0)}function Yt(l,_=0,h,b){return pe.assert(!(_&7),"Argument out of range: flags"),pe.assert((_&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),me(l,3|_,h,b)}function vt(l,_=0,h,b){pe.assert(!(_&7),"Argument out of range: flags");let k=l?Qz(l)?iV(!1,h,l,b,uc):`generated@${getNodeId(l)}`:"";(h||b)&&(_|=16);let j=me(k,4|_,h,b);return j.original=l,j}function Fr(l){let _=t.createBasePrivateIdentifierNode(81);return _.escapedText=l,_.transformFlags|=16777216,_}function le(l){return dO(l,"#")||pe.fail("First character of private identifier must be #: "+l),Fr(a1(l))}function K(l,_,h,b){let k=Fr(a1(l));return setIdentifierAutoGenerate(k,{flags:_,id:rO,prefix:h,suffix:b}),rO++,k}function ae(l,_,h){l&&!dO(l,"#")&&pe.fail("First character of private identifier must be #: "+l);let b=8|(l?3:1);return K(l??"",b,_,h)}function he(l,_,h){let b=Qz(l)?iV(!0,_,l,h,uc):`#generated@${getNodeId(l)}`,k=K(b,4|(_||h?16:0),_,h);return k.original=l,k}function Oe(l){return t.createBaseTokenNode(l)}function pt(l){pe.assert(l>=0&&l<=166,"Invalid token"),pe.assert(l<=15||l>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),pe.assert(l<=9||l>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),pe.assert(l!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let _=Oe(l),h=0;switch(l){case 134:h=384;break;case 160:h=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:h=1;break;case 108:h=134218752,_.flowNode=void 0;break;case 126:h=1024;break;case 129:h=16777216;break;case 110:h=16384,_.flowNode=void 0;break}return h&&(_.transformFlags|=h),_}function Ye(){return pt(108)}function lt(){return pt(110)}function Nt(){return pt(106)}function Ct(){return pt(112)}function Hr(){return pt(97)}function It(l){return pt(l)}function fo(l){let _=[];return l&32&&_.push(It(95)),l&128&&_.push(It(138)),l&2048&&_.push(It(90)),l&4096&&_.push(It(87)),l&1&&_.push(It(125)),l&2&&_.push(It(123)),l&4&&_.push(It(124)),l&64&&_.push(It(128)),l&256&&_.push(It(126)),l&16&&_.push(It(164)),l&8&&_.push(It(148)),l&512&&_.push(It(129)),l&1024&&_.push(It(134)),l&8192&&_.push(It(103)),l&16384&&_.push(It(147)),_.length?_:void 0}function rn(l,_){let h=E(167);return h.left=l,h.right=Dn(_),h.transformFlags|=fe(h.left)|c1(h.right),h.flowNode=void 0,h}function Gn(l,_,h){return l.left!==_||l.right!==h?se(rn(_,h),l):l}function bt(l){let _=E(168);return _.expression=n().parenthesizeExpressionOfComputedPropertyName(l),_.transformFlags|=fe(_.expression)|1024|131072,_}function Hn(l,_){return l.expression!==_?se(bt(_),l):l}function Di(l,_,h,b){let k=C(169);return k.modifiers=Kt(l),k.name=Dn(_),k.constraint=h,k.default=b,k.transformFlags=1,k.expression=void 0,k.jsDoc=void 0,k}function Ga(l,_,h,b,k){return l.modifiers!==_||l.name!==h||l.constraint!==b||l.default!==k?se(Di(_,h,b,k),l):l}function ji(l,_,h,b,k,j){let _e=C(170);return _e.modifiers=Kt(l),_e.dotDotDotToken=_,_e.name=Dn(h),_e.questionToken=b,_e.type=k,_e.initializer=gy(j),mrt(_e.name)?_e.transformFlags=1:_e.transformFlags=Pt(_e.modifiers)|fe(_e.dotDotDotToken)|Uc(_e.name)|fe(_e.questionToken)|fe(_e.initializer)|(_e.questionToken??_e.type?1:0)|(_e.dotDotDotToken??_e.initializer?1024:0)|(zc(_e.modifiers)&31?8192:0),_e.jsDoc=void 0,_e}function ou(l,_,h,b,k,j,_e){return l.modifiers!==_||l.dotDotDotToken!==h||l.name!==b||l.questionToken!==k||l.type!==j||l.initializer!==_e?se(ji(_,h,b,k,j,_e),l):l}function nl(l){let _=E(171);return _.expression=n().parenthesizeLeftSideOfAccess(l,!1),_.transformFlags|=fe(_.expression)|1|8192|33554432,_}function ol(l,_){return l.expression!==_?se(nl(_),l):l}function Ld(l,_,h,b){let k=C(172);return k.modifiers=Kt(l),k.name=Dn(_),k.type=b,k.questionToken=h,k.transformFlags=1,k.initializer=void 0,k.jsDoc=void 0,k}function il(l,_,h,b,k){return l.modifiers!==_||l.name!==h||l.questionToken!==b||l.type!==k?Jt(Ld(_,h,b,k),l):l}function Jt(l,_){return l!==_&&(l.initializer=_.initializer),se(l,_)}function cp(l,_,h,b,k){let j=C(173);j.modifiers=Kt(l),j.name=Dn(_),j.questionToken=h&&rme(h)?h:void 0,j.exclamationToken=h&&tme(h)?h:void 0,j.type=b,j.initializer=gy(k);let _e=j.flags&33554432||zc(j.modifiers)&128;return j.transformFlags=Pt(j.modifiers)|Uc(j.name)|fe(j.initializer)|(_e||j.questionToken||j.exclamationToken||j.type?1:0)|(Ghe(j.name)||zc(j.modifiers)&256&&j.initializer?8192:0)|16777216,j.jsDoc=void 0,j}function oe(l,_,h,b,k,j){return l.modifiers!==_||l.name!==h||l.questionToken!==(b!==void 0&&rme(b)?b:void 0)||l.exclamationToken!==(b!==void 0&&tme(b)?b:void 0)||l.type!==k||l.initializer!==j?se(cp(_,h,b,k,j),l):l}function qe(l,_,h,b,k,j){let _e=C(174);return _e.modifiers=Kt(l),_e.name=Dn(_),_e.questionToken=h,_e.typeParameters=Kt(b),_e.parameters=Kt(k),_e.type=j,_e.transformFlags=1,_e.jsDoc=void 0,_e.locals=void 0,_e.nextContainer=void 0,_e.typeArguments=void 0,_e}function et(l,_,h,b,k,j,_e){return l.modifiers!==_||l.name!==h||l.questionToken!==b||l.typeParameters!==k||l.parameters!==j||l.type!==_e?F(qe(_,h,b,k,j,_e),l):l}function Et(l,_,h,b,k,j,_e,Qe){let xr=C(175);if(xr.modifiers=Kt(l),xr.asteriskToken=_,xr.name=Dn(h),xr.questionToken=b,xr.exclamationToken=void 0,xr.typeParameters=Kt(k),xr.parameters=I(j),xr.type=_e,xr.body=Qe,!xr.body)xr.transformFlags=1;else{let wi=zc(xr.modifiers)&1024,pu=!!xr.asteriskToken,Vs=wi&&pu;xr.transformFlags=Pt(xr.modifiers)|fe(xr.asteriskToken)|Uc(xr.name)|fe(xr.questionToken)|Pt(xr.typeParameters)|Pt(xr.parameters)|fe(xr.type)|fe(xr.body)&-67108865|(Vs?128:wi?256:pu?2048:0)|(xr.questionToken||xr.typeParameters||xr.type?1:0)|1024}return xr.typeArguments=void 0,xr.jsDoc=void 0,xr.locals=void 0,xr.nextContainer=void 0,xr.flowNode=void 0,xr.endFlowNode=void 0,xr.returnFlowNode=void 0,xr}function Zr(l,_,h,b,k,j,_e,Qe,xr){return l.modifiers!==_||l.asteriskToken!==h||l.name!==b||l.questionToken!==k||l.typeParameters!==j||l.parameters!==_e||l.type!==Qe||l.body!==xr?dn(Et(_,h,b,k,j,_e,Qe,xr),l):l}function dn(l,_){return l!==_&&(l.exclamationToken=_.exclamationToken),se(l,_)}function ro(l){let _=C(176);return _.body=l,_.transformFlags=fe(l)|16777216,_.modifiers=void 0,_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_.endFlowNode=void 0,_.returnFlowNode=void 0,_}function fi(l,_){return l.body!==_?Uo(ro(_),l):l}function Uo(l,_){return l!==_&&(l.modifiers=_.modifiers),se(l,_)}function co(l,_,h){let b=C(177);return b.modifiers=Kt(l),b.parameters=I(_),b.body=h,b.body?b.transformFlags=Pt(b.modifiers)|Pt(b.parameters)|fe(b.body)&-67108865|1024:b.transformFlags=1,b.typeParameters=void 0,b.type=void 0,b.typeArguments=void 0,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.endFlowNode=void 0,b.returnFlowNode=void 0,b}function $d(l,_,h,b){return l.modifiers!==_||l.parameters!==h||l.body!==b?lp(co(_,h,b),l):l}function lp(l,_){return l!==_&&(l.typeParameters=_.typeParameters,l.type=_.type),F(l,_)}function vc(l,_,h,b,k){let j=C(178);return j.modifiers=Kt(l),j.name=Dn(_),j.parameters=I(h),j.type=b,j.body=k,j.body?j.transformFlags=Pt(j.modifiers)|Uc(j.name)|Pt(j.parameters)|fe(j.type)|fe(j.body)&-67108865|(j.type?1:0):j.transformFlags=1,j.typeArguments=void 0,j.typeParameters=void 0,j.jsDoc=void 0,j.locals=void 0,j.nextContainer=void 0,j.flowNode=void 0,j.endFlowNode=void 0,j.returnFlowNode=void 0,j}function al(l,_,h,b,k,j){return l.modifiers!==_||l.name!==h||l.parameters!==b||l.type!==k||l.body!==j?Yh(vc(_,h,b,k,j),l):l}function Yh(l,_){return l!==_&&(l.typeParameters=_.typeParameters),F(l,_)}function ue(l,_,h,b){let k=C(179);return k.modifiers=Kt(l),k.name=Dn(_),k.parameters=I(h),k.body=b,k.body?k.transformFlags=Pt(k.modifiers)|Uc(k.name)|Pt(k.parameters)|fe(k.body)&-67108865|(k.type?1:0):k.transformFlags=1,k.typeArguments=void 0,k.typeParameters=void 0,k.type=void 0,k.jsDoc=void 0,k.locals=void 0,k.nextContainer=void 0,k.flowNode=void 0,k.endFlowNode=void 0,k.returnFlowNode=void 0,k}function Ee(l,_,h,b,k){return l.modifiers!==_||l.name!==h||l.parameters!==b||l.body!==k?we(ue(_,h,b,k),l):l}function we(l,_){return l!==_&&(l.typeParameters=_.typeParameters,l.type=_.type),F(l,_)}function Tt(l,_,h){let b=C(180);return b.typeParameters=Kt(l),b.parameters=Kt(_),b.type=h,b.transformFlags=1,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.typeArguments=void 0,b}function At(l,_,h,b){return l.typeParameters!==_||l.parameters!==h||l.type!==b?F(Tt(_,h,b),l):l}function kt(l,_,h){let b=C(181);return b.typeParameters=Kt(l),b.parameters=Kt(_),b.type=h,b.transformFlags=1,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.typeArguments=void 0,b}function ut(l,_,h,b){return l.typeParameters!==_||l.parameters!==h||l.type!==b?F(kt(_,h,b),l):l}function Ir(l,_,h){let b=C(182);return b.modifiers=Kt(l),b.parameters=Kt(_),b.type=h,b.transformFlags=1,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.typeArguments=void 0,b}function Tn(l,_,h,b){return l.parameters!==h||l.type!==b||l.modifiers!==_?F(Ir(_,h,b),l):l}function $r(l,_){let h=E(205);return h.type=l,h.literal=_,h.transformFlags=1,h}function Ft(l,_,h){return l.type!==_||l.literal!==h?se($r(_,h),l):l}function Bs(l){return pt(l)}function Zn(l,_,h){let b=E(183);return b.assertsModifier=l,b.parameterName=Dn(_),b.type=h,b.transformFlags=1,b}function _s(l,_,h,b){return l.assertsModifier!==_||l.parameterName!==h||l.type!==b?se(Zn(_,h,b),l):l}function kf(l,_){let h=E(184);return h.typeName=Dn(l),h.typeArguments=_&&n().parenthesizeTypeArguments(I(_)),h.transformFlags=1,h}function re(l,_,h){return l.typeName!==_||l.typeArguments!==h?se(kf(_,h),l):l}function fr(l,_,h){let b=C(185);return b.typeParameters=Kt(l),b.parameters=Kt(_),b.type=h,b.transformFlags=1,b.modifiers=void 0,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.typeArguments=void 0,b}function T(l,_,h,b){return l.typeParameters!==_||l.parameters!==h||l.type!==b?Ht(fr(_,h,b),l):l}function Ht(l,_){return l!==_&&(l.modifiers=_.modifiers),F(l,_)}function er(...l){return l.length===4?ce(...l):l.length===3?vr(...l):pe.fail("Incorrect number of arguments specified.")}function ce(l,_,h,b){let k=C(186);return k.modifiers=Kt(l),k.typeParameters=Kt(_),k.parameters=Kt(h),k.type=b,k.transformFlags=1,k.jsDoc=void 0,k.locals=void 0,k.nextContainer=void 0,k.typeArguments=void 0,k}function vr(l,_,h){return ce(void 0,l,_,h)}function Ha(...l){return l.length===5?Dr(...l):l.length===4?nn(...l):pe.fail("Incorrect number of arguments specified.")}function Dr(l,_,h,b,k){return l.modifiers!==_||l.typeParameters!==h||l.parameters!==b||l.type!==k?F(er(_,h,b,k),l):l}function nn(l,_,h,b){return Dr(l,l.modifiers,_,h,b)}function mi(l,_){let h=E(187);return h.exprName=l,h.typeArguments=_&&n().parenthesizeTypeArguments(_),h.transformFlags=1,h}function ei(l,_,h){return l.exprName!==_||l.typeArguments!==h?se(mi(_,h),l):l}function hi(l){let _=C(188);return _.members=I(l),_.transformFlags=1,_}function Gi(l,_){return l.members!==_?se(hi(_),l):l}function sl(l){let _=E(189);return _.elementType=n().parenthesizeNonArrayTypeOfPostfixType(l),_.transformFlags=1,_}function ey(l,_){return l.elementType!==_?se(sl(_),l):l}function fs(l){let _=E(190);return _.elements=I(n().parenthesizeElementTypesOfTupleType(l)),_.transformFlags=1,_}function ye(l,_){return l.elements!==_?se(fs(_),l):l}function We(l,_,h,b){let k=C(203);return k.dotDotDotToken=l,k.name=_,k.questionToken=h,k.type=b,k.transformFlags=1,k.jsDoc=void 0,k}function br(l,_,h,b,k){return l.dotDotDotToken!==_||l.name!==h||l.questionToken!==b||l.type!==k?se(We(_,h,b,k),l):l}function ht(l){let _=E(191);return _.type=n().parenthesizeTypeOfOptionalType(l),_.transformFlags=1,_}function ie(l,_){return l.type!==_?se(ht(_),l):l}function To(l){let _=E(192);return _.type=l,_.transformFlags=1,_}function zo(l,_){return l.type!==_?se(To(_),l):l}function Bi(l,_,h){let b=E(l);return b.types=A.createNodeArray(h(_)),b.transformFlags=1,b}function ms(l,_,h){return l.types!==_?se(Bi(l.kind,_,h),l):l}function yR(l){return Bi(193,l,n().parenthesizeConstituentTypesOfUnionType)}function Ow(l,_){return ms(l,_,n().parenthesizeConstituentTypesOfUnionType)}function Md(l){return Bi(194,l,n().parenthesizeConstituentTypesOfIntersectionType)}function tr(l,_){return ms(l,_,n().parenthesizeConstituentTypesOfIntersectionType)}function mo(l,_,h,b){let k=E(195);return k.checkType=n().parenthesizeCheckTypeOfConditionalType(l),k.extendsType=n().parenthesizeExtendsTypeOfConditionalType(_),k.trueType=h,k.falseType=b,k.transformFlags=1,k.locals=void 0,k.nextContainer=void 0,k}function gR(l,_,h,b,k){return l.checkType!==_||l.extendsType!==h||l.trueType!==b||l.falseType!==k?se(mo(_,h,b,k),l):l}function cl(l){let _=E(196);return _.typeParameter=l,_.transformFlags=1,_}function SR(l,_){return l.typeParameter!==_?se(cl(_),l):l}function la(l,_){let h=E(204);return h.head=l,h.templateSpans=I(_),h.transformFlags=1,h}function vR(l,_,h){return l.head!==_||l.templateSpans!==h?se(la(_,h),l):l}function iu(l,_,h,b,k=!1){let j=E(206);return j.argument=l,j.attributes=_,j.assertions&&j.assertions.assertClause&&j.attributes&&(j.assertions.assertClause=j.attributes),j.qualifier=h,j.typeArguments=b&&n().parenthesizeTypeArguments(b),j.isTypeOf=k,j.transformFlags=1,j}function CS(l,_,h,b,k,j=l.isTypeOf){return l.argument!==_||l.attributes!==h||l.qualifier!==b||l.typeArguments!==k||l.isTypeOf!==j?se(iu(_,h,b,k,j),l):l}function ba(l){let _=E(197);return _.type=l,_.transformFlags=1,_}function ui(l,_){return l.type!==_?se(ba(_),l):l}function X(){let l=E(198);return l.transformFlags=1,l}function ua(l,_){let h=E(199);return h.operator=l,h.type=l===148?n().parenthesizeOperandOfReadonlyTypeOperator(_):n().parenthesizeOperandOfTypeOperator(_),h.transformFlags=1,h}function jd(l,_){return l.type!==_?se(ua(l.operator,_),l):l}function au(l,_){let h=E(200);return h.objectType=n().parenthesizeNonArrayTypeOfPostfixType(l),h.indexType=_,h.transformFlags=1,h}function vb(l,_,h){return l.objectType!==_||l.indexType!==h?se(au(_,h),l):l}function No(l,_,h,b,k,j){let _e=C(201);return _e.readonlyToken=l,_e.typeParameter=_,_e.nameType=h,_e.questionToken=b,_e.type=k,_e.members=j&&I(j),_e.transformFlags=1,_e.locals=void 0,_e.nextContainer=void 0,_e}function qi(l,_,h,b,k,j,_e){return l.readonlyToken!==_||l.typeParameter!==h||l.nameType!==b||l.questionToken!==k||l.type!==j||l.members!==_e?se(No(_,h,b,k,j,_e),l):l}function Cf(l){let _=E(202);return _.literal=l,_.transformFlags=1,_}function up(l,_){return l.literal!==_?se(Cf(_),l):l}function Nw(l){let _=E(207);return _.elements=I(l),_.transformFlags|=Pt(_.elements)|1024|524288,_.transformFlags&32768&&(_.transformFlags|=65664),_}function bR(l,_){return l.elements!==_?se(Nw(_),l):l}function Bd(l){let _=E(208);return _.elements=I(l),_.transformFlags|=Pt(_.elements)|1024|524288,_}function xR(l,_){return l.elements!==_?se(Bd(_),l):l}function PS(l,_,h,b){let k=C(209);return k.dotDotDotToken=l,k.propertyName=Dn(_),k.name=Dn(h),k.initializer=gy(b),k.transformFlags|=fe(k.dotDotDotToken)|Uc(k.propertyName)|Uc(k.name)|fe(k.initializer)|(k.dotDotDotToken?32768:0)|1024,k.flowNode=void 0,k}function Pf(l,_,h,b,k){return l.propertyName!==h||l.dotDotDotToken!==_||l.name!==b||l.initializer!==k?se(PS(_,h,b,k),l):l}function bb(l,_){let h=E(210),b=l&&_1(l),k=I(l,b&&Znt(b)?!0:void 0);return h.elements=n().parenthesizeExpressionsOfCommaDelimitedList(k),h.multiLine=_,h.transformFlags|=Pt(h.elements),h}function Fw(l,_){return l.elements!==_?se(bb(_,l.multiLine),l):l}function ty(l,_){let h=C(211);return h.properties=I(l),h.multiLine=_,h.transformFlags|=Pt(h.properties),h.jsDoc=void 0,h}function ER(l,_){return l.properties!==_?se(ty(_,l.multiLine),l):l}function Rw(l,_,h){let b=C(212);return b.expression=l,b.questionDotToken=_,b.name=h,b.transformFlags=fe(b.expression)|fe(b.questionDotToken)|(kn(b.name)?c1(b.name):fe(b.name)|536870912),b.jsDoc=void 0,b.flowNode=void 0,b}function su(l,_){let h=Rw(n().parenthesizeLeftSideOfAccess(l,!1),void 0,Dn(_));return $z(l)&&(h.transformFlags|=384),h}function TR(l,_,h){return itt(l)?OS(l,_,l.questionDotToken,ud(h,kn)):l.expression!==_||l.name!==h?se(su(_,h),l):l}function ry(l,_,h){let b=Rw(n().parenthesizeLeftSideOfAccess(l,!0),_,Dn(h));return b.flags|=64,b.transformFlags|=32,b}function OS(l,_,h,b){return pe.assert(!!(l.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),l.expression!==_||l.questionDotToken!==h||l.name!==b?se(ry(_,h,b),l):l}function Lw(l,_,h){let b=C(213);return b.expression=l,b.questionDotToken=_,b.argumentExpression=h,b.transformFlags|=fe(b.expression)|fe(b.questionDotToken)|fe(b.argumentExpression),b.jsDoc=void 0,b.flowNode=void 0,b}function ny(l,_){let h=Lw(n().parenthesizeLeftSideOfAccess(l,!1),void 0,mp(_));return $z(l)&&(h.transformFlags|=384),h}function DR(l,_,h){return att(l)?xb(l,_,l.questionDotToken,h):l.expression!==_||l.argumentExpression!==h?se(ny(_,h),l):l}function $w(l,_,h){let b=Lw(n().parenthesizeLeftSideOfAccess(l,!0),_,mp(h));return b.flags|=64,b.transformFlags|=32,b}function xb(l,_,h,b){return pe.assert(!!(l.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),l.expression!==_||l.questionDotToken!==h||l.argumentExpression!==b?se($w(_,h,b),l):l}function Mw(l,_,h,b){let k=C(214);return k.expression=l,k.questionDotToken=_,k.typeArguments=h,k.arguments=b,k.transformFlags|=fe(k.expression)|fe(k.questionDotToken)|Pt(k.typeArguments)|Pt(k.arguments),k.typeArguments&&(k.transformFlags|=1),Gfe(k.expression)&&(k.transformFlags|=16384),k}function oy(l,_,h){let b=Mw(n().parenthesizeLeftSideOfAccess(l,!1),void 0,Kt(_),n().parenthesizeExpressionsOfCommaDelimitedList(I(h)));return gnt(b.expression)&&(b.transformFlags|=8388608),b}function NS(l,_,h,b){return Bfe(l)?jw(l,_,l.questionDotToken,h,b):l.expression!==_||l.typeArguments!==h||l.arguments!==b?se(oy(_,h,b),l):l}function Eb(l,_,h,b){let k=Mw(n().parenthesizeLeftSideOfAccess(l,!0),_,Kt(h),n().parenthesizeExpressionsOfCommaDelimitedList(I(b)));return k.flags|=64,k.transformFlags|=32,k}function jw(l,_,h,b,k){return pe.assert(!!(l.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),l.expression!==_||l.questionDotToken!==h||l.typeArguments!==b||l.arguments!==k?se(Eb(_,h,b,k),l):l}function qs(l,_,h){let b=C(215);return b.expression=n().parenthesizeExpressionOfNew(l),b.typeArguments=Kt(_),b.arguments=h?n().parenthesizeExpressionsOfCommaDelimitedList(h):void 0,b.transformFlags|=fe(b.expression)|Pt(b.typeArguments)|Pt(b.arguments)|32,b.typeArguments&&(b.transformFlags|=1),b}function Tb(l,_,h,b){return l.expression!==_||l.typeArguments!==h||l.arguments!==b?se(qs(_,h,b),l):l}function FS(l,_,h){let b=E(216);return b.tag=n().parenthesizeLeftSideOfAccess(l,!1),b.typeArguments=Kt(_),b.template=h,b.transformFlags|=fe(b.tag)|Pt(b.typeArguments)|fe(b.template)|1024,b.typeArguments&&(b.transformFlags|=1),frt(b.template)&&(b.transformFlags|=128),b}function Bw(l,_,h,b){return l.tag!==_||l.typeArguments!==h||l.template!==b?se(FS(_,h,b),l):l}function qw(l,_){let h=E(217);return h.expression=n().parenthesizeOperandOfPrefixUnary(_),h.type=l,h.transformFlags|=fe(h.expression)|fe(h.type)|1,h}function Uw(l,_,h){return l.type!==_||l.expression!==h?se(qw(_,h),l):l}function Db(l){let _=E(218);return _.expression=l,_.transformFlags=fe(_.expression),_.jsDoc=void 0,_}function zw(l,_){return l.expression!==_?se(Db(_),l):l}function Ab(l,_,h,b,k,j,_e){let Qe=C(219);Qe.modifiers=Kt(l),Qe.asteriskToken=_,Qe.name=Dn(h),Qe.typeParameters=Kt(b),Qe.parameters=I(k),Qe.type=j,Qe.body=_e;let xr=zc(Qe.modifiers)&1024,wi=!!Qe.asteriskToken,pu=xr&&wi;return Qe.transformFlags=Pt(Qe.modifiers)|fe(Qe.asteriskToken)|Uc(Qe.name)|Pt(Qe.typeParameters)|Pt(Qe.parameters)|fe(Qe.type)|fe(Qe.body)&-67108865|(pu?128:xr?256:wi?2048:0)|(Qe.typeParameters||Qe.type?1:0)|4194304,Qe.typeArguments=void 0,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.flowNode=void 0,Qe.endFlowNode=void 0,Qe.returnFlowNode=void 0,Qe}function Vw(l,_,h,b,k,j,_e,Qe){return l.name!==b||l.modifiers!==_||l.asteriskToken!==h||l.typeParameters!==k||l.parameters!==j||l.type!==_e||l.body!==Qe?F(Ab(_,h,b,k,j,_e,Qe),l):l}function wb(l,_,h,b,k,j){let _e=C(220);_e.modifiers=Kt(l),_e.typeParameters=Kt(_),_e.parameters=I(h),_e.type=b,_e.equalsGreaterThanToken=k??pt(39),_e.body=n().parenthesizeConciseBodyOfArrowFunction(j);let Qe=zc(_e.modifiers)&1024;return _e.transformFlags=Pt(_e.modifiers)|Pt(_e.typeParameters)|Pt(_e.parameters)|fe(_e.type)|fe(_e.equalsGreaterThanToken)|fe(_e.body)&-67108865|(_e.typeParameters||_e.type?1:0)|(Qe?16640:0)|1024,_e.typeArguments=void 0,_e.jsDoc=void 0,_e.locals=void 0,_e.nextContainer=void 0,_e.flowNode=void 0,_e.endFlowNode=void 0,_e.returnFlowNode=void 0,_e}function Jw(l,_,h,b,k,j,_e){return l.modifiers!==_||l.typeParameters!==h||l.parameters!==b||l.type!==k||l.equalsGreaterThanToken!==j||l.body!==_e?F(wb(_,h,b,k,j,_e),l):l}function Kw(l){let _=E(221);return _.expression=n().parenthesizeOperandOfPrefixUnary(l),_.transformFlags|=fe(_.expression),_}function Gw(l,_){return l.expression!==_?se(Kw(_),l):l}function RS(l){let _=E(222);return _.expression=n().parenthesizeOperandOfPrefixUnary(l),_.transformFlags|=fe(_.expression),_}function hs(l,_){return l.expression!==_?se(RS(_),l):l}function Ib(l){let _=E(223);return _.expression=n().parenthesizeOperandOfPrefixUnary(l),_.transformFlags|=fe(_.expression),_}function cu(l,_){return l.expression!==_?se(Ib(_),l):l}function Hw(l){let _=E(224);return _.expression=n().parenthesizeOperandOfPrefixUnary(l),_.transformFlags|=fe(_.expression)|256|128|2097152,_}function qd(l,_){return l.expression!==_?se(Hw(_),l):l}function Ud(l,_){let h=E(225);return h.operator=l,h.operand=n().parenthesizeOperandOfPrefixUnary(_),h.transformFlags|=fe(h.operand),(l===46||l===47)&&kn(h.operand)&&!d1(h.operand)&&!ame(h.operand)&&(h.transformFlags|=268435456),h}function AR(l,_){return l.operand!==_?se(Ud(l.operator,_),l):l}function Of(l,_){let h=E(226);return h.operator=_,h.operand=n().parenthesizeOperandOfPostfixUnary(l),h.transformFlags|=fe(h.operand),kn(h.operand)&&!d1(h.operand)&&!ame(h.operand)&&(h.transformFlags|=268435456),h}function wR(l,_){return l.operand!==_?se(Of(_,l.operator),l):l}function LS(l,_,h){let b=C(227),k=J8(_),j=k.kind;return b.left=n().parenthesizeLeftSideOfBinary(j,l),b.operatorToken=k,b.right=n().parenthesizeRightSideOfBinary(j,b.left,h),b.transformFlags|=fe(b.left)|fe(b.operatorToken)|fe(b.right),j===61?b.transformFlags|=32:j===64?eye(b.left)?b.transformFlags|=5248|Zw(b.left):Vnt(b.left)&&(b.transformFlags|=5120|Zw(b.left)):j===43||j===68?b.transformFlags|=512:Drt(j)&&(b.transformFlags|=16),j===103&&jg(b.left)&&(b.transformFlags|=536870912),b.jsDoc=void 0,b}function Zw(l){return gye(l)?65536:0}function IR(l,_,h,b){return l.left!==_||l.operatorToken!==h||l.right!==b?se(LS(_,h,b),l):l}function Ww(l,_,h,b,k){let j=E(228);return j.condition=n().parenthesizeConditionOfConditionalExpression(l),j.questionToken=_??pt(58),j.whenTrue=n().parenthesizeBranchOfConditionalExpression(h),j.colonToken=b??pt(59),j.whenFalse=n().parenthesizeBranchOfConditionalExpression(k),j.transformFlags|=fe(j.condition)|fe(j.questionToken)|fe(j.whenTrue)|fe(j.colonToken)|fe(j.whenFalse),j.flowNodeWhenFalse=void 0,j.flowNodeWhenTrue=void 0,j}function Qw(l,_,h,b,k,j){return l.condition!==_||l.questionToken!==h||l.whenTrue!==b||l.colonToken!==k||l.whenFalse!==j?se(Ww(_,h,b,k,j),l):l}function Xw(l,_){let h=E(229);return h.head=l,h.templateSpans=I(_),h.transformFlags|=fe(h.head)|Pt(h.templateSpans)|1024,h}function ll(l,_,h){return l.head!==_||l.templateSpans!==h?se(Xw(_,h),l):l}function iy(l,_,h,b=0){pe.assert(!(b&-7177),"Unsupported template flags.");let k;if(h!==void 0&&h!==_&&(k=snt(l,h),typeof k=="object"))return pe.fail("Invalid raw text");if(_===void 0){if(k===void 0)return pe.fail("Arguments 'text' and 'rawText' may not both be undefined.");_=k}else k!==void 0&&pe.assert(_===k,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return _}function Yw(l){let _=1024;return l&&(_|=128),_}function kR(l,_,h,b){let k=Oe(l);return k.text=_,k.rawText=h,k.templateFlags=b&7176,k.transformFlags=Yw(k.templateFlags),k}function Nf(l,_,h,b){let k=C(l);return k.text=_,k.rawText=h,k.templateFlags=b&7176,k.transformFlags=Yw(k.templateFlags),k}function Ff(l,_,h,b){return l===15?Nf(l,_,h,b):kR(l,_,h,b)}function eI(l,_,h){return l=iy(16,l,_,h),Ff(16,l,_,h)}function $S(l,_,h){return l=iy(16,l,_,h),Ff(17,l,_,h)}function kb(l,_,h){return l=iy(16,l,_,h),Ff(18,l,_,h)}function CR(l,_,h){return l=iy(16,l,_,h),Nf(15,l,_,h)}function Cb(l,_){pe.assert(!l||!!_,"A `YieldExpression` with an asteriskToken must have an expression.");let h=E(230);return h.expression=_&&n().parenthesizeExpressionForDisallowedComma(_),h.asteriskToken=l,h.transformFlags|=fe(h.expression)|fe(h.asteriskToken)|1024|128|1048576,h}function PR(l,_,h){return l.expression!==h||l.asteriskToken!==_?se(Cb(_,h),l):l}function tI(l){let _=E(231);return _.expression=n().parenthesizeExpressionForDisallowedComma(l),_.transformFlags|=fe(_.expression)|1024|32768,_}function OR(l,_){return l.expression!==_?se(tI(_),l):l}function rI(l,_,h,b,k){let j=C(232);return j.modifiers=Kt(l),j.name=Dn(_),j.typeParameters=Kt(h),j.heritageClauses=Kt(b),j.members=I(k),j.transformFlags|=Pt(j.modifiers)|Uc(j.name)|Pt(j.typeParameters)|Pt(j.heritageClauses)|Pt(j.members)|(j.typeParameters?1:0)|1024,j.jsDoc=void 0,j}function Pb(l,_,h,b,k,j){return l.modifiers!==_||l.name!==h||l.typeParameters!==b||l.heritageClauses!==k||l.members!==j?se(rI(_,h,b,k,j),l):l}function Ob(){return E(233)}function nI(l,_){let h=E(234);return h.expression=n().parenthesizeLeftSideOfAccess(l,!1),h.typeArguments=_&&n().parenthesizeTypeArguments(_),h.transformFlags|=fe(h.expression)|Pt(h.typeArguments)|1024,h}function oI(l,_,h){return l.expression!==_||l.typeArguments!==h?se(nI(_,h),l):l}function ys(l,_){let h=E(235);return h.expression=l,h.type=_,h.transformFlags|=fe(h.expression)|fe(h.type)|1,h}function MS(l,_,h){return l.expression!==_||l.type!==h?se(ys(_,h),l):l}function iI(l){let _=E(236);return _.expression=n().parenthesizeLeftSideOfAccess(l,!1),_.transformFlags|=fe(_.expression)|1,_}function aI(l,_){return ctt(l)?bc(l,_):l.expression!==_?se(iI(_),l):l}function Nb(l,_){let h=E(239);return h.expression=l,h.type=_,h.transformFlags|=fe(h.expression)|fe(h.type)|1,h}function sI(l,_,h){return l.expression!==_||l.type!==h?se(Nb(_,h),l):l}function Fb(l){let _=E(236);return _.flags|=64,_.expression=n().parenthesizeLeftSideOfAccess(l,!0),_.transformFlags|=fe(_.expression)|1,_}function bc(l,_){return pe.assert(!!(l.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),l.expression!==_?se(Fb(_),l):l}function cI(l,_){let h=E(237);switch(h.keywordToken=l,h.name=_,h.transformFlags|=fe(h.name),l){case 105:h.transformFlags|=1024;break;case 102:h.transformFlags|=32;break;default:return pe.assertNever(l)}return h.flowNode=void 0,h}function Rb(l,_){return l.name!==_?se(cI(l.keywordToken,_),l):l}function ul(l,_){let h=E(240);return h.expression=l,h.literal=_,h.transformFlags|=fe(h.expression)|fe(h.literal)|1024,h}function jS(l,_,h){return l.expression!==_||l.literal!==h?se(ul(_,h),l):l}function lI(){let l=E(241);return l.transformFlags|=1024,l}function zd(l,_){let h=E(242);return h.statements=I(l),h.multiLine=_,h.transformFlags|=Pt(h.statements),h.jsDoc=void 0,h.locals=void 0,h.nextContainer=void 0,h}function NR(l,_){return l.statements!==_?se(zd(_,l.multiLine),l):l}function Lb(l,_){let h=E(244);return h.modifiers=Kt(l),h.declarationList=ef(_)?Ub(_):_,h.transformFlags|=Pt(h.modifiers)|fe(h.declarationList),zc(h.modifiers)&128&&(h.transformFlags=1),h.jsDoc=void 0,h.flowNode=void 0,h}function uI(l,_,h){return l.modifiers!==_||l.declarationList!==h?se(Lb(_,h),l):l}function pI(){let l=E(243);return l.jsDoc=void 0,l}function ay(l){let _=E(245);return _.expression=n().parenthesizeExpressionOfExpressionStatement(l),_.transformFlags|=fe(_.expression),_.jsDoc=void 0,_.flowNode=void 0,_}function dI(l,_){return l.expression!==_?se(ay(_),l):l}function _I(l,_,h){let b=E(246);return b.expression=l,b.thenStatement=pl(_),b.elseStatement=pl(h),b.transformFlags|=fe(b.expression)|fe(b.thenStatement)|fe(b.elseStatement),b.jsDoc=void 0,b.flowNode=void 0,b}function fI(l,_,h,b){return l.expression!==_||l.thenStatement!==h||l.elseStatement!==b?se(_I(_,h,b),l):l}function mI(l,_){let h=E(247);return h.statement=pl(l),h.expression=_,h.transformFlags|=fe(h.statement)|fe(h.expression),h.jsDoc=void 0,h.flowNode=void 0,h}function hI(l,_,h){return l.statement!==_||l.expression!==h?se(mI(_,h),l):l}function yI(l,_){let h=E(248);return h.expression=l,h.statement=pl(_),h.transformFlags|=fe(h.expression)|fe(h.statement),h.jsDoc=void 0,h.flowNode=void 0,h}function FR(l,_,h){return l.expression!==_||l.statement!==h?se(yI(_,h),l):l}function gI(l,_,h,b){let k=E(249);return k.initializer=l,k.condition=_,k.incrementor=h,k.statement=pl(b),k.transformFlags|=fe(k.initializer)|fe(k.condition)|fe(k.incrementor)|fe(k.statement),k.jsDoc=void 0,k.locals=void 0,k.nextContainer=void 0,k.flowNode=void 0,k}function SI(l,_,h,b,k){return l.initializer!==_||l.condition!==h||l.incrementor!==b||l.statement!==k?se(gI(_,h,b,k),l):l}function $b(l,_,h){let b=E(250);return b.initializer=l,b.expression=_,b.statement=pl(h),b.transformFlags|=fe(b.initializer)|fe(b.expression)|fe(b.statement),b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.flowNode=void 0,b}function RR(l,_,h,b){return l.initializer!==_||l.expression!==h||l.statement!==b?se($b(_,h,b),l):l}function vI(l,_,h,b){let k=E(251);return k.awaitModifier=l,k.initializer=_,k.expression=n().parenthesizeExpressionForDisallowedComma(h),k.statement=pl(b),k.transformFlags|=fe(k.awaitModifier)|fe(k.initializer)|fe(k.expression)|fe(k.statement)|1024,l&&(k.transformFlags|=128),k.jsDoc=void 0,k.locals=void 0,k.nextContainer=void 0,k.flowNode=void 0,k}function LR(l,_,h,b,k){return l.awaitModifier!==_||l.initializer!==h||l.expression!==b||l.statement!==k?se(vI(_,h,b,k),l):l}function bI(l){let _=E(252);return _.label=Dn(l),_.transformFlags|=fe(_.label)|4194304,_.jsDoc=void 0,_.flowNode=void 0,_}function $R(l,_){return l.label!==_?se(bI(_),l):l}function Mb(l){let _=E(253);return _.label=Dn(l),_.transformFlags|=fe(_.label)|4194304,_.jsDoc=void 0,_.flowNode=void 0,_}function xI(l,_){return l.label!==_?se(Mb(_),l):l}function jb(l){let _=E(254);return _.expression=l,_.transformFlags|=fe(_.expression)|128|4194304,_.jsDoc=void 0,_.flowNode=void 0,_}function MR(l,_){return l.expression!==_?se(jb(_),l):l}function Bb(l,_){let h=E(255);return h.expression=l,h.statement=pl(_),h.transformFlags|=fe(h.expression)|fe(h.statement),h.jsDoc=void 0,h.flowNode=void 0,h}function EI(l,_,h){return l.expression!==_||l.statement!==h?se(Bb(_,h),l):l}function qb(l,_){let h=E(256);return h.expression=n().parenthesizeExpressionForDisallowedComma(l),h.caseBlock=_,h.transformFlags|=fe(h.expression)|fe(h.caseBlock),h.jsDoc=void 0,h.flowNode=void 0,h.possiblyExhaustive=!1,h}function Rf(l,_,h){return l.expression!==_||l.caseBlock!==h?se(qb(_,h),l):l}function TI(l,_){let h=E(257);return h.label=Dn(l),h.statement=pl(_),h.transformFlags|=fe(h.label)|fe(h.statement),h.jsDoc=void 0,h.flowNode=void 0,h}function DI(l,_,h){return l.label!==_||l.statement!==h?se(TI(_,h),l):l}function AI(l){let _=E(258);return _.expression=l,_.transformFlags|=fe(_.expression),_.jsDoc=void 0,_.flowNode=void 0,_}function jR(l,_){return l.expression!==_?se(AI(_),l):l}function wI(l,_,h){let b=E(259);return b.tryBlock=l,b.catchClause=_,b.finallyBlock=h,b.transformFlags|=fe(b.tryBlock)|fe(b.catchClause)|fe(b.finallyBlock),b.jsDoc=void 0,b.flowNode=void 0,b}function BR(l,_,h,b){return l.tryBlock!==_||l.catchClause!==h||l.finallyBlock!==b?se(wI(_,h,b),l):l}function II(){let l=E(260);return l.jsDoc=void 0,l.flowNode=void 0,l}function BS(l,_,h,b){let k=C(261);return k.name=Dn(l),k.exclamationToken=_,k.type=h,k.initializer=gy(b),k.transformFlags|=Uc(k.name)|fe(k.initializer)|(k.exclamationToken??k.type?1:0),k.jsDoc=void 0,k}function kI(l,_,h,b,k){return l.name!==_||l.type!==b||l.exclamationToken!==h||l.initializer!==k?se(BS(_,h,b,k),l):l}function Ub(l,_=0){let h=E(262);return h.flags|=_&7,h.declarations=I(l),h.transformFlags|=Pt(h.declarations)|4194304,_&7&&(h.transformFlags|=263168),_&4&&(h.transformFlags|=4),h}function qR(l,_){return l.declarations!==_?se(Ub(_,l.flags),l):l}function CI(l,_,h,b,k,j,_e){let Qe=C(263);if(Qe.modifiers=Kt(l),Qe.asteriskToken=_,Qe.name=Dn(h),Qe.typeParameters=Kt(b),Qe.parameters=I(k),Qe.type=j,Qe.body=_e,!Qe.body||zc(Qe.modifiers)&128)Qe.transformFlags=1;else{let xr=zc(Qe.modifiers)&1024,wi=!!Qe.asteriskToken,pu=xr&&wi;Qe.transformFlags=Pt(Qe.modifiers)|fe(Qe.asteriskToken)|Uc(Qe.name)|Pt(Qe.typeParameters)|Pt(Qe.parameters)|fe(Qe.type)|fe(Qe.body)&-67108865|(pu?128:xr?256:wi?2048:0)|(Qe.typeParameters||Qe.type?1:0)|4194304}return Qe.typeArguments=void 0,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.endFlowNode=void 0,Qe.returnFlowNode=void 0,Qe}function zb(l,_,h,b,k,j,_e,Qe){return l.modifiers!==_||l.asteriskToken!==h||l.name!==b||l.typeParameters!==k||l.parameters!==j||l.type!==_e||l.body!==Qe?UR(CI(_,h,b,k,j,_e,Qe),l):l}function UR(l,_){return l!==_&&l.modifiers===_.modifiers&&(l.modifiers=_.modifiers),F(l,_)}function PI(l,_,h,b,k){let j=C(264);return j.modifiers=Kt(l),j.name=Dn(_),j.typeParameters=Kt(h),j.heritageClauses=Kt(b),j.members=I(k),zc(j.modifiers)&128?j.transformFlags=1:(j.transformFlags|=Pt(j.modifiers)|Uc(j.name)|Pt(j.typeParameters)|Pt(j.heritageClauses)|Pt(j.members)|(j.typeParameters?1:0)|1024,j.transformFlags&8192&&(j.transformFlags|=1)),j.jsDoc=void 0,j}function qS(l,_,h,b,k,j){return l.modifiers!==_||l.name!==h||l.typeParameters!==b||l.heritageClauses!==k||l.members!==j?se(PI(_,h,b,k,j),l):l}function OI(l,_,h,b,k){let j=C(265);return j.modifiers=Kt(l),j.name=Dn(_),j.typeParameters=Kt(h),j.heritageClauses=Kt(b),j.members=I(k),j.transformFlags=1,j.jsDoc=void 0,j}function NI(l,_,h,b,k,j){return l.modifiers!==_||l.name!==h||l.typeParameters!==b||l.heritageClauses!==k||l.members!==j?se(OI(_,h,b,k,j),l):l}function no(l,_,h,b){let k=C(266);return k.modifiers=Kt(l),k.name=Dn(_),k.typeParameters=Kt(h),k.type=b,k.transformFlags=1,k.jsDoc=void 0,k.locals=void 0,k.nextContainer=void 0,k}function pp(l,_,h,b,k){return l.modifiers!==_||l.name!==h||l.typeParameters!==b||l.type!==k?se(no(_,h,b,k),l):l}function Vb(l,_,h){let b=C(267);return b.modifiers=Kt(l),b.name=Dn(_),b.members=I(h),b.transformFlags|=Pt(b.modifiers)|fe(b.name)|Pt(b.members)|1,b.transformFlags&=-67108865,b.jsDoc=void 0,b}function dp(l,_,h,b){return l.modifiers!==_||l.name!==h||l.members!==b?se(Vb(_,h,b),l):l}function FI(l,_,h,b=0){let k=C(268);return k.modifiers=Kt(l),k.flags|=b&2088,k.name=_,k.body=h,zc(k.modifiers)&128?k.transformFlags=1:k.transformFlags|=Pt(k.modifiers)|fe(k.name)|fe(k.body)|1,k.transformFlags&=-67108865,k.jsDoc=void 0,k.locals=void 0,k.nextContainer=void 0,k}function ti(l,_,h,b){return l.modifiers!==_||l.name!==h||l.body!==b?se(FI(_,h,b,l.flags),l):l}function _p(l){let _=E(269);return _.statements=I(l),_.transformFlags|=Pt(_.statements),_.jsDoc=void 0,_}function Hi(l,_){return l.statements!==_?se(_p(_),l):l}function RI(l){let _=E(270);return _.clauses=I(l),_.transformFlags|=Pt(_.clauses),_.locals=void 0,_.nextContainer=void 0,_}function zR(l,_){return l.clauses!==_?se(RI(_),l):l}function LI(l){let _=C(271);return _.name=Dn(l),_.transformFlags|=c1(_.name)|1,_.modifiers=void 0,_.jsDoc=void 0,_}function $I(l,_){return l.name!==_?VR(LI(_),l):l}function VR(l,_){return l!==_&&(l.modifiers=_.modifiers),se(l,_)}function MI(l,_,h,b){let k=C(272);return k.modifiers=Kt(l),k.name=Dn(h),k.isTypeOnly=_,k.moduleReference=b,k.transformFlags|=Pt(k.modifiers)|c1(k.name)|fe(k.moduleReference),dye(k.moduleReference)||(k.transformFlags|=1),k.transformFlags&=-67108865,k.jsDoc=void 0,k}function jI(l,_,h,b,k){return l.modifiers!==_||l.isTypeOnly!==h||l.name!==b||l.moduleReference!==k?se(MI(_,h,b,k),l):l}function BI(l,_,h,b){let k=E(273);return k.modifiers=Kt(l),k.importClause=_,k.moduleSpecifier=h,k.attributes=k.assertClause=b,k.transformFlags|=fe(k.importClause)|fe(k.moduleSpecifier),k.transformFlags&=-67108865,k.jsDoc=void 0,k}function qI(l,_,h,b,k){return l.modifiers!==_||l.importClause!==h||l.moduleSpecifier!==b||l.attributes!==k?se(BI(_,h,b,k),l):l}function UI(l,_,h){let b=C(274);return typeof l=="boolean"&&(l=l?156:void 0),b.isTypeOnly=l===156,b.phaseModifier=l,b.name=_,b.namedBindings=h,b.transformFlags|=fe(b.name)|fe(b.namedBindings),l===156&&(b.transformFlags|=1),b.transformFlags&=-67108865,b}function zI(l,_,h,b){return typeof _=="boolean"&&(_=_?156:void 0),l.phaseModifier!==_||l.name!==h||l.namedBindings!==b?se(UI(_,h,b),l):l}function Jb(l,_){let h=E(301);return h.elements=I(l),h.multiLine=_,h.token=132,h.transformFlags|=4,h}function JR(l,_,h){return l.elements!==_||l.multiLine!==h?se(Jb(_,h),l):l}function sy(l,_){let h=E(302);return h.name=l,h.value=_,h.transformFlags|=4,h}function VI(l,_,h){return l.name!==_||l.value!==h?se(sy(_,h),l):l}function Kb(l,_){let h=E(303);return h.assertClause=l,h.multiLine=_,h}function JI(l,_,h){return l.assertClause!==_||l.multiLine!==h?se(Kb(_,h),l):l}function KI(l,_,h){let b=E(301);return b.token=h??118,b.elements=I(l),b.multiLine=_,b.transformFlags|=4,b}function Gb(l,_,h){return l.elements!==_||l.multiLine!==h?se(KI(_,h,l.token),l):l}function GI(l,_){let h=E(302);return h.name=l,h.value=_,h.transformFlags|=4,h}function HI(l,_,h){return l.name!==_||l.value!==h?se(GI(_,h),l):l}function ZI(l){let _=C(275);return _.name=l,_.transformFlags|=fe(_.name),_.transformFlags&=-67108865,_}function KR(l,_){return l.name!==_?se(ZI(_),l):l}function WI(l){let _=C(281);return _.name=l,_.transformFlags|=fe(_.name)|32,_.transformFlags&=-67108865,_}function GR(l,_){return l.name!==_?se(WI(_),l):l}function QI(l){let _=E(276);return _.elements=I(l),_.transformFlags|=Pt(_.elements),_.transformFlags&=-67108865,_}function XI(l,_){return l.elements!==_?se(QI(_),l):l}function fp(l,_,h){let b=C(277);return b.isTypeOnly=l,b.propertyName=_,b.name=h,b.transformFlags|=fe(b.propertyName)|fe(b.name),b.transformFlags&=-67108865,b}function HR(l,_,h,b){return l.isTypeOnly!==_||l.propertyName!==h||l.name!==b?se(fp(_,h,b),l):l}function US(l,_,h){let b=C(278);return b.modifiers=Kt(l),b.isExportEquals=_,b.expression=_?n().parenthesizeRightSideOfBinary(64,void 0,h):n().parenthesizeExpressionOfExportDefault(h),b.transformFlags|=Pt(b.modifiers)|fe(b.expression),b.transformFlags&=-67108865,b.jsDoc=void 0,b}function cy(l,_,h){return l.modifiers!==_||l.expression!==h?se(US(_,l.isExportEquals,h),l):l}function zS(l,_,h,b,k){let j=C(279);return j.modifiers=Kt(l),j.isTypeOnly=_,j.exportClause=h,j.moduleSpecifier=b,j.attributes=j.assertClause=k,j.transformFlags|=Pt(j.modifiers)|fe(j.exportClause)|fe(j.moduleSpecifier),j.transformFlags&=-67108865,j.jsDoc=void 0,j}function YI(l,_,h,b,k,j){return l.modifiers!==_||l.isTypeOnly!==h||l.exportClause!==b||l.moduleSpecifier!==k||l.attributes!==j?ly(zS(_,h,b,k,j),l):l}function ly(l,_){return l!==_&&l.modifiers===_.modifiers&&(l.modifiers=_.modifiers),se(l,_)}function Hb(l){let _=E(280);return _.elements=I(l),_.transformFlags|=Pt(_.elements),_.transformFlags&=-67108865,_}function ZR(l,_){return l.elements!==_?se(Hb(_),l):l}function VS(l,_,h){let b=E(282);return b.isTypeOnly=l,b.propertyName=Dn(_),b.name=Dn(h),b.transformFlags|=fe(b.propertyName)|fe(b.name),b.transformFlags&=-67108865,b.jsDoc=void 0,b}function WR(l,_,h,b){return l.isTypeOnly!==_||l.propertyName!==h||l.name!==b?se(VS(_,h,b),l):l}function QR(){let l=C(283);return l.jsDoc=void 0,l}function Zb(l){let _=E(284);return _.expression=l,_.transformFlags|=fe(_.expression),_.transformFlags&=-67108865,_}function XR(l,_){return l.expression!==_?se(Zb(_),l):l}function ek(l){return E(l)}function tk(l,_,h=!1){let b=Wb(l,h?_&&n().parenthesizeNonArrayTypeOfPostfixType(_):_);return b.postfix=h,b}function Wb(l,_){let h=E(l);return h.type=_,h}function YR(l,_,h){return _.type!==h?se(tk(l,h,_.postfix),_):_}function e8(l,_,h){return _.type!==h?se(Wb(l,h),_):_}function rk(l,_){let h=C(318);return h.parameters=Kt(l),h.type=_,h.transformFlags=Pt(h.parameters)|(h.type?1:0),h.jsDoc=void 0,h.locals=void 0,h.nextContainer=void 0,h.typeArguments=void 0,h}function t8(l,_,h){return l.parameters!==_||l.type!==h?se(rk(_,h),l):l}function nk(l,_=!1){let h=C(323);return h.jsDocPropertyTags=Kt(l),h.isArrayType=_,h}function r8(l,_,h){return l.jsDocPropertyTags!==_||l.isArrayType!==h?se(nk(_,h),l):l}function ok(l){let _=E(310);return _.type=l,_}function Qb(l,_){return l.type!==_?se(ok(_),l):l}function ik(l,_,h){let b=C(324);return b.typeParameters=Kt(l),b.parameters=I(_),b.type=h,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b}function n8(l,_,h,b){return l.typeParameters!==_||l.parameters!==h||l.type!==b?se(ik(_,h,b),l):l}function Za(l){let _=nO(l.kind);return l.tagName.escapedText===a1(_)?l.tagName:xe(_)}function Us(l,_,h){let b=E(l);return b.tagName=_,b.comment=h,b}function Vd(l,_,h){let b=C(l);return b.tagName=_,b.comment=h,b}function Xb(l,_,h,b){let k=Us(346,l??xe("template"),b);return k.constraint=_,k.typeParameters=I(h),k}function ak(l,_=Za(l),h,b,k){return l.tagName!==_||l.constraint!==h||l.typeParameters!==b||l.comment!==k?se(Xb(_,h,b,k),l):l}function JS(l,_,h,b){let k=Vd(347,l??xe("typedef"),b);return k.typeExpression=_,k.fullName=h,k.name=sme(h),k.locals=void 0,k.nextContainer=void 0,k}function o8(l,_=Za(l),h,b,k){return l.tagName!==_||l.typeExpression!==h||l.fullName!==b||l.comment!==k?se(JS(_,h,b,k),l):l}function Yb(l,_,h,b,k,j){let _e=Vd(342,l??xe("param"),j);return _e.typeExpression=b,_e.name=_,_e.isNameFirst=!!k,_e.isBracketed=h,_e}function i8(l,_=Za(l),h,b,k,j,_e){return l.tagName!==_||l.name!==h||l.isBracketed!==b||l.typeExpression!==k||l.isNameFirst!==j||l.comment!==_e?se(Yb(_,h,b,k,j,_e),l):l}function sk(l,_,h,b,k,j){let _e=Vd(349,l??xe("prop"),j);return _e.typeExpression=b,_e.name=_,_e.isNameFirst=!!k,_e.isBracketed=h,_e}function ck(l,_=Za(l),h,b,k,j,_e){return l.tagName!==_||l.name!==h||l.isBracketed!==b||l.typeExpression!==k||l.isNameFirst!==j||l.comment!==_e?se(sk(_,h,b,k,j,_e),l):l}function lk(l,_,h,b){let k=Vd(339,l??xe("callback"),b);return k.typeExpression=_,k.fullName=h,k.name=sme(h),k.locals=void 0,k.nextContainer=void 0,k}function uk(l,_=Za(l),h,b,k){return l.tagName!==_||l.typeExpression!==h||l.fullName!==b||l.comment!==k?se(lk(_,h,b,k),l):l}function pk(l,_,h){let b=Us(340,l??xe("overload"),h);return b.typeExpression=_,b}function ex(l,_=Za(l),h,b){return l.tagName!==_||l.typeExpression!==h||l.comment!==b?se(pk(_,h,b),l):l}function tx(l,_,h){let b=Us(329,l??xe("augments"),h);return b.class=_,b}function uy(l,_=Za(l),h,b){return l.tagName!==_||l.class!==h||l.comment!==b?se(tx(_,h,b),l):l}function dk(l,_,h){let b=Us(330,l??xe("implements"),h);return b.class=_,b}function Jd(l,_,h){let b=Us(348,l??xe("see"),h);return b.name=_,b}function KS(l,_,h,b){return l.tagName!==_||l.name!==h||l.comment!==b?se(Jd(_,h,b),l):l}function _k(l){let _=E(311);return _.name=l,_}function a8(l,_){return l.name!==_?se(_k(_),l):l}function fk(l,_){let h=E(312);return h.left=l,h.right=_,h.transformFlags|=fe(h.left)|fe(h.right),h}function s8(l,_,h){return l.left!==_||l.right!==h?se(fk(_,h),l):l}function mk(l,_){let h=E(325);return h.name=l,h.text=_,h}function hk(l,_,h){return l.name!==_?se(mk(_,h),l):l}function yk(l,_){let h=E(326);return h.name=l,h.text=_,h}function c8(l,_,h){return l.name!==_?se(yk(_,h),l):l}function gk(l,_){let h=E(327);return h.name=l,h.text=_,h}function l8(l,_,h){return l.name!==_?se(gk(_,h),l):l}function u8(l,_=Za(l),h,b){return l.tagName!==_||l.class!==h||l.comment!==b?se(dk(_,h,b),l):l}function Sk(l,_,h){return Us(l,_??xe(nO(l)),h)}function p8(l,_,h=Za(_),b){return _.tagName!==h||_.comment!==b?se(Sk(l,h,b),_):_}function vk(l,_,h,b){let k=Us(l,_??xe(nO(l)),b);return k.typeExpression=h,k}function d8(l,_,h=Za(_),b,k){return _.tagName!==h||_.typeExpression!==b||_.comment!==k?se(vk(l,h,b,k),_):_}function bk(l,_){return Us(328,l,_)}function _8(l,_,h){return l.tagName!==_||l.comment!==h?se(bk(_,h),l):l}function xk(l,_,h){let b=Vd(341,l??xe(nO(341)),h);return b.typeExpression=_,b.locals=void 0,b.nextContainer=void 0,b}function rx(l,_=Za(l),h,b){return l.tagName!==_||l.typeExpression!==h||l.comment!==b?se(xk(_,h,b),l):l}function Ek(l,_,h,b,k){let j=Us(352,l??xe("import"),k);return j.importClause=_,j.moduleSpecifier=h,j.attributes=b,j.comment=k,j}function Tk(l,_,h,b,k,j){return l.tagName!==_||l.comment!==j||l.importClause!==h||l.moduleSpecifier!==b||l.attributes!==k?se(Ek(_,h,b,k,j),l):l}function nx(l){let _=E(322);return _.text=l,_}function f8(l,_){return l.text!==_?se(nx(_),l):l}function py(l,_){let h=E(321);return h.comment=l,h.tags=Kt(_),h}function Dk(l,_,h){return l.comment!==_||l.tags!==h?se(py(_,h),l):l}function Ak(l,_,h){let b=E(285);return b.openingElement=l,b.children=I(_),b.closingElement=h,b.transformFlags|=fe(b.openingElement)|Pt(b.children)|fe(b.closingElement)|2,b}function m8(l,_,h,b){return l.openingElement!==_||l.children!==h||l.closingElement!==b?se(Ak(_,h,b),l):l}function wk(l,_,h){let b=E(286);return b.tagName=l,b.typeArguments=Kt(_),b.attributes=h,b.transformFlags|=fe(b.tagName)|Pt(b.typeArguments)|fe(b.attributes)|2,b.typeArguments&&(b.transformFlags|=1),b}function h8(l,_,h,b){return l.tagName!==_||l.typeArguments!==h||l.attributes!==b?se(wk(_,h,b),l):l}function GS(l,_,h){let b=E(287);return b.tagName=l,b.typeArguments=Kt(_),b.attributes=h,b.transformFlags|=fe(b.tagName)|Pt(b.typeArguments)|fe(b.attributes)|2,_&&(b.transformFlags|=1),b}function Ik(l,_,h,b){return l.tagName!==_||l.typeArguments!==h||l.attributes!==b?se(GS(_,h,b),l):l}function ox(l){let _=E(288);return _.tagName=l,_.transformFlags|=fe(_.tagName)|2,_}function ix(l,_){return l.tagName!==_?se(ox(_),l):l}function pa(l,_,h){let b=E(289);return b.openingFragment=l,b.children=I(_),b.closingFragment=h,b.transformFlags|=fe(b.openingFragment)|Pt(b.children)|fe(b.closingFragment)|2,b}function kk(l,_,h,b){return l.openingFragment!==_||l.children!==h||l.closingFragment!==b?se(pa(_,h,b),l):l}function dy(l,_){let h=E(12);return h.text=l,h.containsOnlyTriviaWhiteSpaces=!!_,h.transformFlags|=2,h}function y8(l,_,h){return l.text!==_||l.containsOnlyTriviaWhiteSpaces!==h?se(dy(_,h),l):l}function Ck(){let l=E(290);return l.transformFlags|=2,l}function Pk(){let l=E(291);return l.transformFlags|=2,l}function Ok(l,_){let h=C(292);return h.name=l,h.initializer=_,h.transformFlags|=fe(h.name)|fe(h.initializer)|2,h}function g8(l,_,h){return l.name!==_||l.initializer!==h?se(Ok(_,h),l):l}function _y(l){let _=C(293);return _.properties=I(l),_.transformFlags|=Pt(_.properties)|2,_}function S8(l,_){return l.properties!==_?se(_y(_),l):l}function Nk(l){let _=E(294);return _.expression=l,_.transformFlags|=fe(_.expression)|2,_}function v8(l,_){return l.expression!==_?se(Nk(_),l):l}function Fk(l,_){let h=E(295);return h.dotDotDotToken=l,h.expression=_,h.transformFlags|=fe(h.dotDotDotToken)|fe(h.expression)|2,h}function ax(l,_){return l.expression!==_?se(Fk(l.dotDotDotToken,_),l):l}function Lf(l,_){let h=E(296);return h.namespace=l,h.name=_,h.transformFlags|=fe(h.namespace)|fe(h.name)|2,h}function b8(l,_,h){return l.namespace!==_||l.name!==h?se(Lf(_,h),l):l}function HS(l,_){let h=E(297);return h.expression=n().parenthesizeExpressionForDisallowedComma(l),h.statements=I(_),h.transformFlags|=fe(h.expression)|Pt(h.statements),h.jsDoc=void 0,h}function Rk(l,_,h){return l.expression!==_||l.statements!==h?se(HS(_,h),l):l}function Lk(l){let _=E(298);return _.statements=I(l),_.transformFlags=Pt(_.statements),_}function fy(l,_){return l.statements!==_?se(Lk(_),l):l}function sx(l,_){let h=E(299);switch(h.token=l,h.types=I(_),h.transformFlags|=Pt(h.types),l){case 96:h.transformFlags|=1024;break;case 119:h.transformFlags|=1;break;default:return pe.assertNever(l)}return h}function x8(l,_){return l.types!==_?se(sx(l.token,_),l):l}function $k(l,_){let h=E(300);return h.variableDeclaration=zs(l),h.block=_,h.transformFlags|=fe(h.variableDeclaration)|fe(h.block)|(l?0:64),h.locals=void 0,h.nextContainer=void 0,h}function Mk(l,_,h){return l.variableDeclaration!==_||l.block!==h?se($k(_,h),l):l}function ZS(l,_){let h=C(304);return h.name=Dn(l),h.initializer=n().parenthesizeExpressionForDisallowedComma(_),h.transformFlags|=Uc(h.name)|fe(h.initializer),h.modifiers=void 0,h.questionToken=void 0,h.exclamationToken=void 0,h.jsDoc=void 0,h}function cx(l,_,h){return l.name!==_||l.initializer!==h?$f(ZS(_,h),l):l}function $f(l,_){return l!==_&&(l.modifiers=_.modifiers,l.questionToken=_.questionToken,l.exclamationToken=_.exclamationToken),se(l,_)}function jk(l,_){let h=C(305);return h.name=Dn(l),h.objectAssignmentInitializer=_&&n().parenthesizeExpressionForDisallowedComma(_),h.transformFlags|=c1(h.name)|fe(h.objectAssignmentInitializer)|1024,h.equalsToken=void 0,h.modifiers=void 0,h.questionToken=void 0,h.exclamationToken=void 0,h.jsDoc=void 0,h}function E8(l,_,h){return l.name!==_||l.objectAssignmentInitializer!==h?T8(jk(_,h),l):l}function T8(l,_){return l!==_&&(l.modifiers=_.modifiers,l.questionToken=_.questionToken,l.exclamationToken=_.exclamationToken,l.equalsToken=_.equalsToken),se(l,_)}function Bk(l){let _=C(306);return _.expression=n().parenthesizeExpressionForDisallowedComma(l),_.transformFlags|=fe(_.expression)|128|65536,_.jsDoc=void 0,_}function qk(l,_){return l.expression!==_?se(Bk(_),l):l}function lx(l,_){let h=C(307);return h.name=Dn(l),h.initializer=_&&n().parenthesizeExpressionForDisallowedComma(_),h.transformFlags|=fe(h.name)|fe(h.initializer)|1,h.jsDoc=void 0,h}function xc(l,_,h){return l.name!==_||l.initializer!==h?se(lx(_,h),l):l}function Uk(l,_,h){let b=t.createBaseSourceFileNode(308);return b.statements=I(l),b.endOfFileToken=_,b.flags|=h,b.text="",b.fileName="",b.path="",b.resolvedPath="",b.originalFileName="",b.languageVersion=1,b.languageVariant=0,b.scriptKind=0,b.isDeclarationFile=!1,b.hasNoDefaultLib=!1,b.transformFlags|=Pt(b.statements)|fe(b.endOfFileToken),b.locals=void 0,b.nextContainer=void 0,b.endFlowNode=void 0,b.nodeCount=0,b.identifierCount=0,b.symbolCount=0,b.parseDiagnostics=void 0,b.bindDiagnostics=void 0,b.bindSuggestionDiagnostics=void 0,b.lineMap=void 0,b.externalModuleIndicator=void 0,b.setExternalModuleIndicator=void 0,b.pragmas=void 0,b.checkJsDirective=void 0,b.referencedFiles=void 0,b.typeReferenceDirectives=void 0,b.libReferenceDirectives=void 0,b.amdDependencies=void 0,b.commentDirectives=void 0,b.identifiers=void 0,b.packageJsonLocations=void 0,b.packageJsonScope=void 0,b.imports=void 0,b.moduleAugmentations=void 0,b.ambientModuleNames=void 0,b.classifiableNames=void 0,b.impliedNodeFormat=void 0,b}function zk(l){let _=Object.create(l.redirectTarget);return Object.defineProperties(_,{id:{get(){return this.redirectInfo.redirectTarget.id},set(h){this.redirectInfo.redirectTarget.id=h}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(h){this.redirectInfo.redirectTarget.symbol=h}}}),_.redirectInfo=l,_}function D8(l){let _=zk(l.redirectInfo);return _.flags|=l.flags&-17,_.fileName=l.fileName,_.path=l.path,_.resolvedPath=l.resolvedPath,_.originalFileName=l.originalFileName,_.packageJsonLocations=l.packageJsonLocations,_.packageJsonScope=l.packageJsonScope,_.emitNode=void 0,_}function A8(l){let _=t.createBaseSourceFileNode(308);_.flags|=l.flags&-17;for(let h in l)if(!(_d(_,h)||!_d(l,h))){if(h==="emitNode"){_.emitNode=void 0;continue}_[h]=l[h]}return _}function ux(l){let _=l.redirectInfo?D8(l):A8(l);return r(_,l),_}function px(l,_,h,b,k,j,_e){let Qe=ux(l);return Qe.statements=I(_),Qe.isDeclarationFile=h,Qe.referencedFiles=b,Qe.typeReferenceDirectives=k,Qe.hasNoDefaultLib=j,Qe.libReferenceDirectives=_e,Qe.transformFlags=Pt(Qe.statements)|fe(Qe.endOfFileToken),Qe}function w8(l,_,h=l.isDeclarationFile,b=l.referencedFiles,k=l.typeReferenceDirectives,j=l.hasNoDefaultLib,_e=l.libReferenceDirectives){return l.statements!==_||l.isDeclarationFile!==h||l.referencedFiles!==b||l.typeReferenceDirectives!==k||l.hasNoDefaultLib!==j||l.libReferenceDirectives!==_e?se(px(l,_,h,b,k,j,_e),l):l}function Vk(l){let _=E(309);return _.sourceFiles=l,_.syntheticFileReferences=void 0,_.syntheticTypeReferences=void 0,_.syntheticLibReferences=void 0,_.hasNoDefaultLib=void 0,_}function Jk(l,_){return l.sourceFiles!==_?se(Vk(_),l):l}function I8(l,_=!1,h){let b=E(238);return b.type=l,b.isSpread=_,b.tupleNameSource=h,b}function k8(l){let _=E(353);return _._children=l,_}function WS(l){let _=E(354);return _.original=l,Fs(_,l),_}function dx(l,_){let h=E(356);return h.expression=l,h.original=_,h.transformFlags|=fe(h.expression)|1,Fs(h,_),h}function Kk(l,_){return l.expression!==_?se(dx(_,l.original),l):l}function C8(){return E(355)}function P8(l){if(s1(l)&&!mO(l)&&!l.original&&!l.emitNode&&!l.id){if(Xnt(l))return l.elements;if(v1(l)&&hnt(l.operatorToken))return[l.left,l.right]}return l}function _x(l){let _=E(357);return _.elements=I(wYe(l,P8)),_.transformFlags|=Pt(_.elements),_}function O8(l,_){return l.elements!==_?se(_x(_),l):l}function fx(l,_){let h=E(358);return h.expression=l,h.thisArg=_,h.transformFlags|=fe(h.expression)|fe(h.thisArg),h}function Gk(l,_,h){return l.expression!==_||l.thisArg!==h?se(fx(_,h),l):l}function Hk(l){let _=Ve(l.escapedText);return _.flags|=l.flags&-17,_.transformFlags=l.transformFlags,r(_,l),setIdentifierAutoGenerate(_,{...l.emitNode.autoGenerate}),_}function N8(l){let _=Ve(l.escapedText);_.flags|=l.flags&-17,_.jsDoc=l.jsDoc,_.flowNode=l.flowNode,_.symbol=l.symbol,_.transformFlags=l.transformFlags,r(_,l);let h=getIdentifierTypeArguments(l);return h&&setIdentifierTypeArguments(_,h),_}function F8(l){let _=Fr(l.escapedText);return _.flags|=l.flags&-17,_.transformFlags=l.transformFlags,r(_,l),setIdentifierAutoGenerate(_,{...l.emitNode.autoGenerate}),_}function Zk(l){let _=Fr(l.escapedText);return _.flags|=l.flags&-17,_.transformFlags=l.transformFlags,r(_,l),_}function QS(l){if(l===void 0)return l;if(sot(l))return ux(l);if(d1(l))return Hk(l);if(kn(l))return N8(l);if(Dhe(l))return F8(l);if(jg(l))return Zk(l);let _=IV(l.kind)?t.createBaseNode(l.kind):t.createBaseTokenNode(l.kind);_.flags|=l.flags&-17,_.transformFlags=l.transformFlags,r(_,l);for(let h in l)_d(_,h)||!_d(l,h)||(_[h]=l[h]);return _}function R8(l,_,h){return oy(Ab(void 0,void 0,void 0,void 0,_?[_]:[],void 0,zd(l,!0)),void 0,h?[h]:[])}function L8(l,_,h){return oy(wb(void 0,void 0,_?[_]:[],void 0,void 0,zd(l,!0)),void 0,h?[h]:[])}function my(){return Ib(O("0"))}function Wk(l){return US(void 0,!1,l)}function Qk(l){return zS(void 0,!1,Hb([VS(!1,void 0,l)]))}function $8(l,_){return _==="null"?A.createStrictEquality(l,Nt()):_==="undefined"?A.createStrictEquality(l,my()):A.createStrictEquality(RS(l),U(_))}function mx(l,_){return _==="null"?A.createStrictInequality(l,Nt()):_==="undefined"?A.createStrictInequality(l,my()):A.createStrictInequality(RS(l),U(_))}function Kd(l,_,h){return Bfe(l)?Eb(ry(l,void 0,_),void 0,void 0,h):oy(su(l,_),void 0,h)}function M8(l,_,h){return Kd(l,"bind",[_,...h])}function j8(l,_,h){return Kd(l,"call",[_,...h])}function B8(l,_,h){return Kd(l,"apply",[_,h])}function hy(l,_,h){return Kd(xe(l),_,h)}function q8(l,_){return Kd(l,"slice",_===void 0?[]:[mp(_)])}function yy(l,_){return Kd(l,"concat",_)}function U8(l,_,h){return hy("Object","defineProperty",[l,mp(_),h])}function hx(l,_){return hy("Object","getOwnPropertyDescriptor",[l,mp(_)])}function Mf(l,_,h){return hy("Reflect","get",h?[l,_,h]:[l,_])}function Xk(l,_,h,b){return hy("Reflect","set",b?[l,_,h,b]:[l,_,h])}function jf(l,_,h){return h?(l.push(ZS(_,h)),!0):!1}function z8(l,_){let h=[];jf(h,"enumerable",mp(l.enumerable)),jf(h,"configurable",mp(l.configurable));let b=jf(h,"writable",mp(l.writable));b=jf(h,"value",l.value)||b;let k=jf(h,"get",l.get);return k=jf(h,"set",l.set)||k,pe.assert(!(b&&k),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),ty(h,!_)}function Yk(l,_){switch(l.kind){case 218:return zw(l,_);case 217:return Uw(l,l.type,_);case 235:return MS(l,_,l.type);case 239:return sI(l,_,l.type);case 236:return aI(l,_);case 234:return oI(l,_,l.typeArguments);case 356:return Kk(l,_)}}function V8(l){return BV(l)&&s1(l)&&s1(getSourceMapRange(l))&&s1(getCommentRange(l))&&!Ra(getSyntheticLeadingComments(l))&&!Ra(getSyntheticTrailingComments(l))}function eC(l,_,h=63){return l&&yye(l,h)&&!V8(l)?Yk(l,eC(l.expression,_)):_}function tC(l,_,h){if(!_)return l;let b=DI(_,_.label,Ynt(_.statement)?tC(l,_.statement):l);return h&&h(_),b}function yx(l,_){let h=FV(l);switch(h.kind){case 80:return _;case 110:case 9:case 10:case 11:return!1;case 210:return h.elements.length!==0;case 211:return h.properties.length>0;default:return!0}}function rC(l,_,h,b=!1){let k=zV(l,63),j,_e;return Gfe(k)?(j=lt(),_e=k):$z(k)?(j=lt(),_e=h!==void 0&&h<2?Fs(xe("_super"),k):k):y1(k)&8192?(j=my(),_e=n().parenthesizeLeftSideOfAccess(k,!1)):tf(k)?yx(k.expression,b)?(j=Rt(_),_e=su(Fs(A.createAssignment(j,k.expression),k.expression),k.name),Fs(_e,k)):(j=k.expression,_e=k):YD(k)?yx(k.expression,b)?(j=Rt(_),_e=ny(Fs(A.createAssignment(j,k.expression),k.expression),k.argumentExpression),Fs(_e,k)):(j=k.expression,_e=k):(j=my(),_e=n().parenthesizeLeftSideOfAccess(l,!1)),{target:_e,thisArg:j}}function nC(l,_){return su(Db(ty([ue(void 0,"value",[ji(void 0,void 0,l,void 0,void 0,void 0)],zd([ay(_)]))])),"value")}function v(l){return l.length>10?_x(l):$Ye(l,A.createComma)}function D(l,_,h,b=0,k){let j=k?l&&AV(l):vhe(l);if(j&&kn(j)&&!d1(j)){let _e=$V(Fs(QS(j),j),j.parent);return b|=y1(j),h||(b|=96),_||(b|=3072),b&&setEmitFlags(_e,b),_e}return vt(l)}function P(l,_,h){return D(l,_,h,98304)}function R(l,_,h,b){return D(l,_,h,32768,b)}function M(l,_,h){return D(l,_,h,16384)}function ee(l,_,h){return D(l,_,h)}function be(l,_,h,b){let k=su(l,s1(_)?_:QS(_));Fs(k,_);let j=0;return b||(j|=96),h||(j|=3072),j&&setEmitFlags(k,j),k}function Ue(l,_,h,b){return l&&XD(_,32)?be(l,D(_),h,b):M(_,h,b)}function Ce(l,_,h,b){let k=mr(l,_,0,h);return nr(l,_,k,b)}function De(l){return g1(l.expression)&&l.expression.text==="use strict"}function He(){return kot(ay(U("use strict")))}function mr(l,_,h=0,b){pe.assert(_.length===0,"Prologue directives should be at the first statement in the target statements array");let k=!1,j=l.length;for(;hQe&&wi.splice(k,0,..._.slice(Qe,xr)),Qe>_e&&wi.splice(b,0,..._.slice(_e,Qe)),_e>j&&wi.splice(h,0,..._.slice(j,_e)),j>0)if(h===0)wi.splice(0,0,..._.slice(0,j));else{let pu=new Map;for(let Vs=0;Vs=0;Vs--){let Sy=_[Vs];pu.has(Sy.expression.text)||wi.unshift(Sy)}}return rh(l)?Fs(I(wi,l.hasTrailingComma),l):l}function uu(l,_){let h;return typeof _=="number"?h=fo(_):h=_,Hhe(l)?Ga(l,h,l.name,l.constraint,l.default):gO(l)?ou(l,h,l.dotDotDotToken,l.name,l.questionToken,l.type,l.initializer):Yhe(l)?Dr(l,h,l.typeParameters,l.parameters,l.type):vnt(l)?il(l,h,l.name,l.questionToken,l.type):SO(l)?oe(l,h,l.name,l.questionToken??l.exclamationToken,l.type,l.initializer):bnt(l)?et(l,h,l.name,l.questionToken,l.typeParameters,l.parameters,l.type):rV(l)?Zr(l,h,l.asteriskToken,l.name,l.questionToken,l.typeParameters,l.parameters,l.type,l.body):Zhe(l)?$d(l,h,l.parameters,l.body):nV(l)?al(l,h,l.name,l.parameters,l.type,l.body):vO(l)?Ee(l,h,l.name,l.parameters,l.body):Whe(l)?Tn(l,h,l.parameters,l.type):rye(l)?Vw(l,h,l.asteriskToken,l.name,l.typeParameters,l.parameters,l.type,l.body):nye(l)?Jw(l,h,l.typeParameters,l.parameters,l.type,l.equalsGreaterThanToken,l.body):oV(l)?Pb(l,h,l.name,l.typeParameters,l.heritageClauses,l.members):DO(l)?uI(l,h,l.declarationList):aye(l)?zb(l,h,l.asteriskToken,l.name,l.typeParameters,l.parameters,l.type,l.body):bO(l)?qS(l,h,l.name,l.typeParameters,l.heritageClauses,l.members):qV(l)?NI(l,h,l.name,l.typeParameters,l.heritageClauses,l.members):sye(l)?pp(l,h,l.name,l.typeParameters,l.type):tot(l)?dp(l,h,l.name,l.members):WD(l)?ti(l,h,l.name,l.body):cye(l)?jI(l,h,l.isTypeOnly,l.name,l.moduleReference):lye(l)?qI(l,h,l.importClause,l.moduleSpecifier,l.attributes):uye(l)?cy(l,h,l.expression):pye(l)?YI(l,h,l.isTypeOnly,l.exportClause,l.moduleSpecifier,l.attributes):pe.assertNever(l)}function Ec(l,_){return gO(l)?ou(l,_,l.dotDotDotToken,l.name,l.questionToken,l.type,l.initializer):SO(l)?oe(l,_,l.name,l.questionToken??l.exclamationToken,l.type,l.initializer):rV(l)?Zr(l,_,l.asteriskToken,l.name,l.questionToken,l.typeParameters,l.parameters,l.type,l.body):nV(l)?al(l,_,l.name,l.parameters,l.type,l.body):vO(l)?Ee(l,_,l.name,l.parameters,l.body):oV(l)?Pb(l,_,l.name,l.typeParameters,l.heritageClauses,l.members):bO(l)?qS(l,_,l.name,l.typeParameters,l.heritageClauses,l.members):pe.assertNever(l)}function Gd(l,_){switch(l.kind){case 178:return al(l,l.modifiers,_,l.parameters,l.type,l.body);case 179:return Ee(l,l.modifiers,_,l.parameters,l.body);case 175:return Zr(l,l.modifiers,l.asteriskToken,_,l.questionToken,l.typeParameters,l.parameters,l.type,l.body);case 174:return et(l,l.modifiers,_,l.questionToken,l.typeParameters,l.parameters,l.type);case 173:return oe(l,l.modifiers,_,l.questionToken??l.exclamationToken,l.type,l.initializer);case 172:return il(l,l.modifiers,_,l.questionToken,l.type);case 304:return cx(l,_,l.initializer)}}function Kt(l){return l?I(l):void 0}function Dn(l){return typeof l=="string"?xe(l):l}function mp(l){return typeof l=="string"?U(l):typeof l=="number"?O(l):typeof l=="boolean"?l?Ct():Hr():l}function gy(l){return l&&n().parenthesizeExpressionForDisallowedComma(l)}function J8(l){return typeof l=="number"?pt(l):l}function pl(l){return l&¬(l)?Fs(r(pI(),l),l):l}function zs(l){return typeof l=="string"||l&&!iye(l)?BS(l,void 0,void 0,void 0):l}function se(l,_){return l!==_&&(r(l,_),Fs(l,_)),l}}function nO(e){switch(e){case 345:return"type";case 343:return"returns";case 344:return"this";case 341:return"enum";case 331:return"author";case 333:return"class";case 334:return"public";case 335:return"private";case 336:return"protected";case 337:return"readonly";case 338:return"override";case 346:return"template";case 347:return"typedef";case 342:return"param";case 349:return"prop";case 339:return"callback";case 340:return"overload";case 329:return"augments";case 330:return"implements";case 352:return"import";default:return pe.fail(`Unsupported kind: ${pe.formatSyntaxKind(e)}`)}}var ac,Yfe={};function snt(e,t){switch(ac||(ac=TV(99,!1,0)),e){case 15:ac.setText("`"+t+"`");break;case 16:ac.setText("`"+t+"${");break;case 17:ac.setText("}"+t+"${");break;case 18:ac.setText("}"+t+"`");break}let r=ac.scan();if(r===20&&(r=ac.reScanTemplateToken(!1)),ac.isUnterminated())return ac.setText(void 0),Yfe;let n;switch(r){case 15:case 16:case 17:case 18:n=ac.getTokenValue();break}return n===void 0||ac.scan()!==1?(ac.setText(void 0),Yfe):(ac.setText(void 0),n)}function Uc(e){return e&&kn(e)?c1(e):fe(e)}function c1(e){return fe(e)&-67108865}function cnt(e,t){return t|e.transformFlags&134234112}function fe(e){if(!e)return 0;let t=e.transformFlags&~lnt(e.kind);return qet(e)&&Ahe(e.name)?cnt(e.name,t):t}function Pt(e){return e?e.transformFlags:0}function eme(e){let t=0;for(let r of e)t|=fe(r);e.transformFlags=t}function lnt(e){if(e>=183&&e<=206)return-2;switch(e){case 214:case 215:case 210:return-2147450880;case 268:return-1941676032;case 170:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112;case 207:case 208:return-2147450880;case 217:case 239:case 235:case 356:case 218:case 108:return-2147483648;case 212:case 213:return-2147483648;default:return-2147483648}}var kD=ont();function CD(e){return e.flags|=16,e}var unt={createBaseSourceFileNode:e=>CD(kD.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>CD(kD.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>CD(kD.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>CD(kD.createBaseTokenNode(e)),createBaseNode:e=>CD(kD.createBaseNode(e))},Fjt=MV(4,unt);function pnt(e,t){if(e.original!==t&&(e.original=t,t)){let r=t.emitNode;r&&(e.emitNode=dnt(r,e.emitNode))}return e}function dnt(e,t){let{flags:r,internalFlags:n,leadingComments:o,trailingComments:i,commentRange:a,sourceMapRange:s,tokenSourceMapRanges:c,constantValue:p,helpers:d,startsOnNewLine:f,snippetElement:m,classThis:y,assignedName:g}=e;if(t||(t={}),r&&(t.flags=r),n&&(t.internalFlags=n&-9),o&&(t.leadingComments=lc(o.slice(),t.leadingComments)),i&&(t.trailingComments=lc(i.slice(),t.trailingComments)),a&&(t.commentRange=a),s&&(t.sourceMapRange=s),c&&(t.tokenSourceMapRanges=_nt(c,t.tokenSourceMapRanges)),p!==void 0&&(t.constantValue=p),d)for(let S of d)t.helpers=PYe(t.helpers,S);return f!==void 0&&(t.startsOnNewLine=f),m!==void 0&&(t.snippetElement=m),y&&(t.classThis=y),g&&(t.assignedName=g),t}function _nt(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}function b1(e){return e.kind===9}function fnt(e){return e.kind===10}function g1(e){return e.kind===11}function mnt(e){return e.kind===15}function hnt(e){return e.kind===28}function tme(e){return e.kind===54}function rme(e){return e.kind===58}function kn(e){return e.kind===80}function jg(e){return e.kind===81}function ynt(e){return e.kind===95}function oO(e){return e.kind===134}function $z(e){return e.kind===108}function gnt(e){return e.kind===102}function Snt(e){return e.kind===167}function Ghe(e){return e.kind===168}function Hhe(e){return e.kind===169}function gO(e){return e.kind===170}function jV(e){return e.kind===171}function vnt(e){return e.kind===172}function SO(e){return e.kind===173}function bnt(e){return e.kind===174}function rV(e){return e.kind===175}function Zhe(e){return e.kind===177}function nV(e){return e.kind===178}function vO(e){return e.kind===179}function xnt(e){return e.kind===180}function Ent(e){return e.kind===181}function Whe(e){return e.kind===182}function Tnt(e){return e.kind===183}function Qhe(e){return e.kind===184}function Xhe(e){return e.kind===185}function Yhe(e){return e.kind===186}function Dnt(e){return e.kind===187}function Ant(e){return e.kind===188}function wnt(e){return e.kind===189}function Int(e){return e.kind===190}function knt(e){return e.kind===203}function Cnt(e){return e.kind===191}function Pnt(e){return e.kind===192}function Ont(e){return e.kind===193}function Nnt(e){return e.kind===194}function Fnt(e){return e.kind===195}function Rnt(e){return e.kind===196}function Lnt(e){return e.kind===197}function $nt(e){return e.kind===198}function Mnt(e){return e.kind===199}function jnt(e){return e.kind===200}function Bnt(e){return e.kind===201}function qnt(e){return e.kind===202}function Unt(e){return e.kind===206}function znt(e){return e.kind===209}function Vnt(e){return e.kind===210}function eye(e){return e.kind===211}function tf(e){return e.kind===212}function YD(e){return e.kind===213}function tye(e){return e.kind===214}function Jnt(e){return e.kind===216}function BV(e){return e.kind===218}function rye(e){return e.kind===219}function nye(e){return e.kind===220}function Knt(e){return e.kind===223}function Gnt(e){return e.kind===225}function v1(e){return e.kind===227}function Hnt(e){return e.kind===231}function oV(e){return e.kind===232}function Znt(e){return e.kind===233}function Wnt(e){return e.kind===234}function cO(e){return e.kind===236}function Qnt(e){return e.kind===237}function Xnt(e){return e.kind===357}function DO(e){return e.kind===244}function oye(e){return e.kind===245}function Ynt(e){return e.kind===257}function iye(e){return e.kind===261}function eot(e){return e.kind===262}function aye(e){return e.kind===263}function bO(e){return e.kind===264}function qV(e){return e.kind===265}function sye(e){return e.kind===266}function tot(e){return e.kind===267}function WD(e){return e.kind===268}function cye(e){return e.kind===272}function lye(e){return e.kind===273}function uye(e){return e.kind===278}function pye(e){return e.kind===279}function rot(e){return e.kind===280}function not(e){return e.kind===354}function dye(e){return e.kind===284}function nme(e){return e.kind===287}function oot(e){return e.kind===290}function _ye(e){return e.kind===296}function iot(e){return e.kind===298}function aot(e){return e.kind===304}function sot(e){return e.kind===308}function cot(e){return e.kind===310}function lot(e){return e.kind===315}function uot(e){return e.kind===318}function fye(e){return e.kind===321}function pot(e){return e.kind===323}function mye(e){return e.kind===324}function dot(e){return e.kind===329}function _ot(e){return e.kind===334}function fot(e){return e.kind===335}function mot(e){return e.kind===336}function hot(e){return e.kind===337}function yot(e){return e.kind===338}function got(e){return e.kind===340}function Sot(e){return e.kind===332}function ome(e){return e.kind===342}function vot(e){return e.kind===343}function UV(e){return e.kind===345}function bot(e){return e.kind===346}function xot(e){return e.kind===330}function Eot(e){return e.kind===351}var $g=new WeakMap;function hye(e,t){var r;let n=e.kind;return IV(n)?n===353?e._children:(r=$g.get(t))==null?void 0:r.get(e):ii}function Tot(e,t,r){e.kind===353&&pe.fail("Should not need to re-set the children of a SyntaxList.");let n=$g.get(t);return n===void 0&&(n=new WeakMap,$g.set(t,n)),n.set(e,r),r}function ime(e,t){var r;e.kind===353&&pe.fail("Did not expect to unset the children of a SyntaxList."),(r=$g.get(t))==null||r.delete(e)}function Dot(e,t){let r=$g.get(e);r!==void 0&&($g.delete(e),$g.set(t,r))}function ame(e){return(y1(e)&32768)!==0}function Aot(e){return g1(e.expression)&&e.expression.text==="use strict"}function wot(e){for(let t of e)if(sO(t)){if(Aot(t))return t}else break}function Iot(e){return BV(e)&&Bg(e)&&!!ntt(e)}function yye(e,t=63){switch(e.kind){case 218:return t&-2147483648&&Iot(e)?!1:(t&1)!==0;case 217:case 235:return(t&2)!==0;case 239:return(t&34)!==0;case 234:return(t&16)!==0;case 236:return(t&4)!==0;case 356:return(t&8)!==0}return!1}function zV(e,t=63){for(;yye(e,t);)e=e.expression;return e}function kot(e){return setStartsOnNewLine(e,!0)}function MD(e){if(xtt(e))return e.name;if(gtt(e)){switch(e.kind){case 304:return MD(e.initializer);case 305:return e.name;case 306:return MD(e.expression)}return}return yO(e,!0)?MD(e.left):Hnt(e)?MD(e.expression):e}function Cot(e){switch(e.kind){case 207:case 208:case 210:return e.elements;case 211:return e.properties}}function sme(e){if(e){let t=e;for(;;){if(kn(t)||!t.body)return kn(t)?t:t.name;t=t.body}}}var cme;(e=>{function t(d,f,m,y,g,S,x){let A=f>0?g[f-1]:void 0;return pe.assertEqual(m[f],t),g[f]=d.onEnter(y[f],A,x),m[f]=s(d,t),f}e.enter=t;function r(d,f,m,y,g,S,x){pe.assertEqual(m[f],r),pe.assertIsDefined(d.onLeft),m[f]=s(d,r);let A=d.onLeft(y[f].left,g[f],y[f]);return A?(p(f,y,A),c(f,m,y,g,A)):f}e.left=r;function n(d,f,m,y,g,S,x){return pe.assertEqual(m[f],n),pe.assertIsDefined(d.onOperator),m[f]=s(d,n),d.onOperator(y[f].operatorToken,g[f],y[f]),f}e.operator=n;function o(d,f,m,y,g,S,x){pe.assertEqual(m[f],o),pe.assertIsDefined(d.onRight),m[f]=s(d,o);let A=d.onRight(y[f].right,g[f],y[f]);return A?(p(f,y,A),c(f,m,y,g,A)):f}e.right=o;function i(d,f,m,y,g,S,x){pe.assertEqual(m[f],i),m[f]=s(d,i);let A=d.onExit(y[f],g[f]);if(f>0){if(f--,d.foldState){let I=m[f]===i?"right":"left";g[f]=d.foldState(g[f],A,I)}}else S.value=A;return f}e.exit=i;function a(d,f,m,y,g,S,x){return pe.assertEqual(m[f],a),f}e.done=a;function s(d,f){switch(f){case t:if(d.onLeft)return r;case r:if(d.onOperator)return n;case n:if(d.onRight)return o;case o:return i;case i:return a;case a:return a;default:pe.fail("Invalid state")}}e.nextState=s;function c(d,f,m,y,g){return d++,f[d]=t,m[d]=g,y[d]=void 0,d}function p(d,f,m){if(pe.shouldAssert(2))for(;d>=0;)pe.assert(f[d]!==m,"Circular traversal detected."),d--}})(cme||(cme={}));function lme(e,t){return typeof e=="object"?iV(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function Pot(e,t){return typeof e=="string"?e:Oot(e,pe.checkDefined(t))}function Oot(e,t){return Dhe(e)?t(e).slice(1):d1(e)?t(e):jg(e)?e.escapedText.slice(1):uc(e)}function iV(e,t,r,n,o){return t=lme(t,o),n=lme(n,o),r=Pot(r,o),`${e?"#":""}${t}${r}${n}`}function gye(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of Cot(e)){let r=MD(t);if(r&&btt(r)&&(r.transformFlags&65536||r.transformFlags&128&&gye(r)))return!0}return!1}function Fs(e,t){return t?ih(e,t.pos,t.end):e}function VV(e){let t=e.kind;return t===169||t===170||t===172||t===173||t===174||t===175||t===177||t===178||t===179||t===182||t===186||t===219||t===220||t===232||t===244||t===263||t===264||t===265||t===266||t===267||t===268||t===272||t===273||t===278||t===279}function Not(e){let t=e.kind;return t===170||t===173||t===175||t===178||t===179||t===232||t===264}var ume,pme,dme,_me,fme,Fot={createBaseSourceFileNode:e=>new(fme||(fme=oi.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(dme||(dme=oi.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(_me||(_me=oi.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(pme||(pme=oi.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(ume||(ume=oi.getNodeConstructor()))(e,-1,-1)},Rjt=MV(1,Fot);function q(e,t){return t&&e(t)}function je(e,t,r){if(r){if(t)return t(r);for(let n of r){let o=e(n);if(o)return o}}}function Rot(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function Lot(e){return Jc(e.statements,$ot)||Mot(e)}function $ot(e){return VV(e)&&jot(e,95)||cye(e)&&dye(e.moduleReference)||lye(e)||uye(e)||pye(e)?e:void 0}function Mot(e){return e.flags&8388608?Sye(e):void 0}function Sye(e){return Bot(e)?e:La(e,Sye)}function jot(e,t){return Ra(e.modifiers,r=>r.kind===t)}function Bot(e){return Qnt(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var qot={167:function(e,t,r){return q(t,e.left)||q(t,e.right)},169:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.constraint)||q(t,e.default)||q(t,e.expression)},305:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.questionToken)||q(t,e.exclamationToken)||q(t,e.equalsToken)||q(t,e.objectAssignmentInitializer)},306:function(e,t,r){return q(t,e.expression)},170:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.dotDotDotToken)||q(t,e.name)||q(t,e.questionToken)||q(t,e.type)||q(t,e.initializer)},173:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.questionToken)||q(t,e.exclamationToken)||q(t,e.type)||q(t,e.initializer)},172:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.questionToken)||q(t,e.type)||q(t,e.initializer)},304:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.questionToken)||q(t,e.exclamationToken)||q(t,e.initializer)},261:function(e,t,r){return q(t,e.name)||q(t,e.exclamationToken)||q(t,e.type)||q(t,e.initializer)},209:function(e,t,r){return q(t,e.dotDotDotToken)||q(t,e.propertyName)||q(t,e.name)||q(t,e.initializer)},182:function(e,t,r){return je(t,r,e.modifiers)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)},186:function(e,t,r){return je(t,r,e.modifiers)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)},185:function(e,t,r){return je(t,r,e.modifiers)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)},180:mme,181:mme,175:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.asteriskToken)||q(t,e.name)||q(t,e.questionToken)||q(t,e.exclamationToken)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.body)},174:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.questionToken)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)},177:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.body)},178:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.body)},179:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.body)},263:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.asteriskToken)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.body)},219:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.asteriskToken)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.body)},220:function(e,t,r){return je(t,r,e.modifiers)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.equalsGreaterThanToken)||q(t,e.body)},176:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.body)},184:function(e,t,r){return q(t,e.typeName)||je(t,r,e.typeArguments)},183:function(e,t,r){return q(t,e.assertsModifier)||q(t,e.parameterName)||q(t,e.type)},187:function(e,t,r){return q(t,e.exprName)||je(t,r,e.typeArguments)},188:function(e,t,r){return je(t,r,e.members)},189:function(e,t,r){return q(t,e.elementType)},190:function(e,t,r){return je(t,r,e.elements)},193:hme,194:hme,195:function(e,t,r){return q(t,e.checkType)||q(t,e.extendsType)||q(t,e.trueType)||q(t,e.falseType)},196:function(e,t,r){return q(t,e.typeParameter)},206:function(e,t,r){return q(t,e.argument)||q(t,e.attributes)||q(t,e.qualifier)||je(t,r,e.typeArguments)},303:function(e,t,r){return q(t,e.assertClause)},197:yme,199:yme,200:function(e,t,r){return q(t,e.objectType)||q(t,e.indexType)},201:function(e,t,r){return q(t,e.readonlyToken)||q(t,e.typeParameter)||q(t,e.nameType)||q(t,e.questionToken)||q(t,e.type)||je(t,r,e.members)},202:function(e,t,r){return q(t,e.literal)},203:function(e,t,r){return q(t,e.dotDotDotToken)||q(t,e.name)||q(t,e.questionToken)||q(t,e.type)},207:gme,208:gme,210:function(e,t,r){return je(t,r,e.elements)},211:function(e,t,r){return je(t,r,e.properties)},212:function(e,t,r){return q(t,e.expression)||q(t,e.questionDotToken)||q(t,e.name)},213:function(e,t,r){return q(t,e.expression)||q(t,e.questionDotToken)||q(t,e.argumentExpression)},214:Sme,215:Sme,216:function(e,t,r){return q(t,e.tag)||q(t,e.questionDotToken)||je(t,r,e.typeArguments)||q(t,e.template)},217:function(e,t,r){return q(t,e.type)||q(t,e.expression)},218:function(e,t,r){return q(t,e.expression)},221:function(e,t,r){return q(t,e.expression)},222:function(e,t,r){return q(t,e.expression)},223:function(e,t,r){return q(t,e.expression)},225:function(e,t,r){return q(t,e.operand)},230:function(e,t,r){return q(t,e.asteriskToken)||q(t,e.expression)},224:function(e,t,r){return q(t,e.expression)},226:function(e,t,r){return q(t,e.operand)},227:function(e,t,r){return q(t,e.left)||q(t,e.operatorToken)||q(t,e.right)},235:function(e,t,r){return q(t,e.expression)||q(t,e.type)},236:function(e,t,r){return q(t,e.expression)},239:function(e,t,r){return q(t,e.expression)||q(t,e.type)},237:function(e,t,r){return q(t,e.name)},228:function(e,t,r){return q(t,e.condition)||q(t,e.questionToken)||q(t,e.whenTrue)||q(t,e.colonToken)||q(t,e.whenFalse)},231:function(e,t,r){return q(t,e.expression)},242:vme,269:vme,308:function(e,t,r){return je(t,r,e.statements)||q(t,e.endOfFileToken)},244:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.declarationList)},262:function(e,t,r){return je(t,r,e.declarations)},245:function(e,t,r){return q(t,e.expression)},246:function(e,t,r){return q(t,e.expression)||q(t,e.thenStatement)||q(t,e.elseStatement)},247:function(e,t,r){return q(t,e.statement)||q(t,e.expression)},248:function(e,t,r){return q(t,e.expression)||q(t,e.statement)},249:function(e,t,r){return q(t,e.initializer)||q(t,e.condition)||q(t,e.incrementor)||q(t,e.statement)},250:function(e,t,r){return q(t,e.initializer)||q(t,e.expression)||q(t,e.statement)},251:function(e,t,r){return q(t,e.awaitModifier)||q(t,e.initializer)||q(t,e.expression)||q(t,e.statement)},252:bme,253:bme,254:function(e,t,r){return q(t,e.expression)},255:function(e,t,r){return q(t,e.expression)||q(t,e.statement)},256:function(e,t,r){return q(t,e.expression)||q(t,e.caseBlock)},270:function(e,t,r){return je(t,r,e.clauses)},297:function(e,t,r){return q(t,e.expression)||je(t,r,e.statements)},298:function(e,t,r){return je(t,r,e.statements)},257:function(e,t,r){return q(t,e.label)||q(t,e.statement)},258:function(e,t,r){return q(t,e.expression)},259:function(e,t,r){return q(t,e.tryBlock)||q(t,e.catchClause)||q(t,e.finallyBlock)},300:function(e,t,r){return q(t,e.variableDeclaration)||q(t,e.block)},171:function(e,t,r){return q(t,e.expression)},264:xme,232:xme,265:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.heritageClauses)||je(t,r,e.members)},266:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.typeParameters)||q(t,e.type)},267:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.members)},307:function(e,t,r){return q(t,e.name)||q(t,e.initializer)},268:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.body)},272:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.moduleReference)},273:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.importClause)||q(t,e.moduleSpecifier)||q(t,e.attributes)},274:function(e,t,r){return q(t,e.name)||q(t,e.namedBindings)},301:function(e,t,r){return je(t,r,e.elements)},302:function(e,t,r){return q(t,e.name)||q(t,e.value)},271:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)},275:function(e,t,r){return q(t,e.name)},281:function(e,t,r){return q(t,e.name)},276:Eme,280:Eme,279:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.exportClause)||q(t,e.moduleSpecifier)||q(t,e.attributes)},277:Tme,282:Tme,278:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.expression)},229:function(e,t,r){return q(t,e.head)||je(t,r,e.templateSpans)},240:function(e,t,r){return q(t,e.expression)||q(t,e.literal)},204:function(e,t,r){return q(t,e.head)||je(t,r,e.templateSpans)},205:function(e,t,r){return q(t,e.type)||q(t,e.literal)},168:function(e,t,r){return q(t,e.expression)},299:function(e,t,r){return je(t,r,e.types)},234:function(e,t,r){return q(t,e.expression)||je(t,r,e.typeArguments)},284:function(e,t,r){return q(t,e.expression)},283:function(e,t,r){return je(t,r,e.modifiers)},357:function(e,t,r){return je(t,r,e.elements)},285:function(e,t,r){return q(t,e.openingElement)||je(t,r,e.children)||q(t,e.closingElement)},289:function(e,t,r){return q(t,e.openingFragment)||je(t,r,e.children)||q(t,e.closingFragment)},286:Dme,287:Dme,293:function(e,t,r){return je(t,r,e.properties)},292:function(e,t,r){return q(t,e.name)||q(t,e.initializer)},294:function(e,t,r){return q(t,e.expression)},295:function(e,t,r){return q(t,e.dotDotDotToken)||q(t,e.expression)},288:function(e,t,r){return q(t,e.tagName)},296:function(e,t,r){return q(t,e.namespace)||q(t,e.name)},191:kg,192:kg,310:kg,316:kg,315:kg,317:kg,319:kg,318:function(e,t,r){return je(t,r,e.parameters)||q(t,e.type)},321:function(e,t,r){return(typeof e.comment=="string"?void 0:je(t,r,e.comment))||je(t,r,e.tags)},348:function(e,t,r){return q(t,e.tagName)||q(t,e.name)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))},311:function(e,t,r){return q(t,e.name)},312:function(e,t,r){return q(t,e.left)||q(t,e.right)},342:Ame,349:Ame,331:function(e,t,r){return q(t,e.tagName)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))},330:function(e,t,r){return q(t,e.tagName)||q(t,e.class)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))},329:function(e,t,r){return q(t,e.tagName)||q(t,e.class)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))},346:function(e,t,r){return q(t,e.tagName)||q(t,e.constraint)||je(t,r,e.typeParameters)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))},347:function(e,t,r){return q(t,e.tagName)||(e.typeExpression&&e.typeExpression.kind===310?q(t,e.typeExpression)||q(t,e.fullName)||(typeof e.comment=="string"?void 0:je(t,r,e.comment)):q(t,e.fullName)||q(t,e.typeExpression)||(typeof e.comment=="string"?void 0:je(t,r,e.comment)))},339:function(e,t,r){return q(t,e.tagName)||q(t,e.fullName)||q(t,e.typeExpression)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))},343:Cg,345:Cg,344:Cg,341:Cg,351:Cg,350:Cg,340:Cg,324:function(e,t,r){return Jc(e.typeParameters,t)||Jc(e.parameters,t)||q(t,e.type)},325:Mz,326:Mz,327:Mz,323:function(e,t,r){return Jc(e.jsDocPropertyTags,t)},328:Xm,333:Xm,334:Xm,335:Xm,336:Xm,337:Xm,332:Xm,338:Xm,352:Uot,356:zot};function mme(e,t,r){return je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)}function hme(e,t,r){return je(t,r,e.types)}function yme(e,t,r){return q(t,e.type)}function gme(e,t,r){return je(t,r,e.elements)}function Sme(e,t,r){return q(t,e.expression)||q(t,e.questionDotToken)||je(t,r,e.typeArguments)||je(t,r,e.arguments)}function vme(e,t,r){return je(t,r,e.statements)}function bme(e,t,r){return q(t,e.label)}function xme(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.heritageClauses)||je(t,r,e.members)}function Eme(e,t,r){return je(t,r,e.elements)}function Tme(e,t,r){return q(t,e.propertyName)||q(t,e.name)}function Dme(e,t,r){return q(t,e.tagName)||je(t,r,e.typeArguments)||q(t,e.attributes)}function kg(e,t,r){return q(t,e.type)}function Ame(e,t,r){return q(t,e.tagName)||(e.isNameFirst?q(t,e.name)||q(t,e.typeExpression):q(t,e.typeExpression)||q(t,e.name))||(typeof e.comment=="string"?void 0:je(t,r,e.comment))}function Cg(e,t,r){return q(t,e.tagName)||q(t,e.typeExpression)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))}function Mz(e,t,r){return q(t,e.name)}function Xm(e,t,r){return q(t,e.tagName)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))}function Uot(e,t,r){return q(t,e.tagName)||q(t,e.importClause)||q(t,e.moduleSpecifier)||q(t,e.attributes)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))}function zot(e,t,r){return q(t,e.expression)}function La(e,t,r){if(e===void 0||e.kind<=166)return;let n=qot[e.kind];return n===void 0?void 0:n(e,t,r)}function wme(e,t,r){let n=Ime(e),o=[];for(;o.length=0;--s)n.push(i[s]),o.push(a)}else{let s=t(i,a);if(s){if(s==="skip")continue;return s}if(i.kind>=167)for(let c of Ime(i))n.push(c),o.push(i)}}}function Ime(e){let t=[];return La(e,r,r),t;function r(n){t.unshift(n)}}function vye(e){e.externalModuleIndicator=Lot(e)}function Vot(e,t,r,n=!1,o){var i,a;(i=iO)==null||i.push(iO.Phase.Parse,"createSourceFile",{path:e},!0),Cfe("beforeParse");let s,{languageVersion:c,setExternalModuleIndicator:p,impliedNodeFormat:d,jsDocParsingMode:f}=typeof r=="object"?r:{languageVersion:r};if(c===100)s=Mg.parseSourceFile(e,t,c,void 0,n,6,S1,f);else{let m=d===void 0?p:y=>(y.impliedNodeFormat=d,(p||vye)(y));s=Mg.parseSourceFile(e,t,c,void 0,n,o,m,f)}return Cfe("afterParse"),XYe("Parse","beforeParse","afterParse"),(a=iO)==null||a.pop(),s}function Jot(e){return e.externalModuleIndicator!==void 0}function Kot(e,t,r,n=!1){let o=xO.updateSourceFile(e,t,r,n);return o.flags|=e.flags&12582912,o}var Mg;(e=>{var t=TV(99,!0),r=40960,n,o,i,a,s;function c(v){return Hr++,v}var p={createBaseSourceFileNode:v=>c(new s(v,0,0)),createBaseIdentifierNode:v=>c(new i(v,0,0)),createBasePrivateIdentifierNode:v=>c(new a(v,0,0)),createBaseTokenNode:v=>c(new o(v,0,0)),createBaseNode:v=>c(new n(v,0,0))},d=MV(11,p),{createNodeArray:f,createNumericLiteral:m,createStringLiteral:y,createLiteralLikeNode:g,createIdentifier:S,createPrivateIdentifier:x,createToken:A,createArrayLiteralExpression:I,createObjectLiteralExpression:E,createPropertyAccessExpression:C,createPropertyAccessChain:F,createElementAccessExpression:O,createElementAccessChain:$,createCallExpression:N,createCallChain:U,createNewExpression:ge,createParenthesizedExpression:Te,createBlock:ke,createVariableStatement:Ve,createExpressionStatement:me,createIfStatement:xe,createWhileStatement:Rt,createForStatement:Vt,createForOfStatement:Yt,createVariableDeclaration:vt,createVariableDeclarationList:Fr}=d,le,K,ae,he,Oe,pt,Ye,lt,Nt,Ct,Hr,It,fo,rn,Gn,bt,Hn=!0,Di=!1;function Ga(v,D,P,R,M=!1,ee,be,Ue=0){var Ce;if(ee=Jrt(v,ee),ee===6){let He=ou(v,D,P,R,M);return convertToJson(He,(Ce=He.statements[0])==null?void 0:Ce.expression,He.parseDiagnostics,!1,void 0),He.referencedFiles=ii,He.typeReferenceDirectives=ii,He.libReferenceDirectives=ii,He.amdDependencies=ii,He.hasNoDefaultLib=!1,He.pragmas=TYe,He}nl(v,D,P,R,ee,Ue);let De=Ld(P,M,ee,be||vye,Ue);return ol(),De}e.parseSourceFile=Ga;function ji(v,D){nl("",v,D,void 0,1,0),ce();let P=Ud(!0),R=T()===1&&!Ye.length;return ol(),R?P:void 0}e.parseIsolatedEntityName=ji;function ou(v,D,P=2,R,M=!1){nl(v,D,P,R,6,0),K=bt,ce();let ee=re(),be,Ue;if(T()===1)be=ui([],ee,ee),Ue=la();else{let He;for(;T()!==1;){let jt;switch(T()){case 23:jt=uk();break;case 112:case 97:case 106:jt=la();break;case 41:ye(()=>ce()===9&&ce()!==59)?jt=HI():jt=ex();break;case 9:case 11:if(ye(()=>ce()!==59)){jt=ll();break}default:jt=ex();break}He&&ef(He)?He.push(jt):He?He=[He,jt]:(He=jt,T()!==1&&Ft(G.Unexpected_token))}let mr=ef(He)?X(I(He),ee):pe.checkDefined(He),nr=me(mr);X(nr,ee),be=ui([nr],ee),Ue=cl(1,G.Unexpected_token)}let Ce=qe(v,2,6,!1,be,Ue,K,S1);M&&oe(Ce),Ce.nodeCount=Hr,Ce.identifierCount=fo,Ce.identifiers=It,Ce.parseDiagnostics=Ig(Ye,Ce),lt&&(Ce.jsDocDiagnostics=Ig(lt,Ce));let De=Ce;return ol(),De}e.parseJsonText=ou;function nl(v,D,P,R,M,ee){switch(n=oi.getNodeConstructor(),o=oi.getTokenConstructor(),i=oi.getIdentifierConstructor(),a=oi.getPrivateIdentifierConstructor(),s=oi.getSourceFileConstructor(),le=cet(v),ae=D,he=P,Nt=R,Oe=M,pt=Wfe(M),Ye=[],rn=0,It=new Map,fo=0,Hr=0,K=0,Hn=!0,Oe){case 1:case 2:bt=524288;break;case 6:bt=134742016;break;default:bt=0;break}Di=!1,t.setText(ae),t.setOnError(kf),t.setScriptTarget(he),t.setLanguageVariant(pt),t.setScriptKind(Oe),t.setJSDocParsingMode(ee)}function ol(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),ae=void 0,he=void 0,Nt=void 0,Oe=void 0,pt=void 0,K=0,Ye=void 0,lt=void 0,rn=0,It=void 0,Gn=void 0,Hn=!0}function Ld(v,D,P,R,M){let ee=Zot(le);ee&&(bt|=33554432),K=bt,ce();let be=qs(0,pa);pe.assert(T()===1);let Ue=fr(),Ce=Jt(la(),Ue),De=qe(le,v,P,ee,be,Ce,K,R);return Xot(De,ae),Yot(De,He),De.commentDirectives=t.getCommentDirectives(),De.nodeCount=Hr,De.identifierCount=fo,De.identifiers=It,De.parseDiagnostics=Ig(Ye,De),De.jsDocParsingMode=M,lt&&(De.jsDocDiagnostics=Ig(lt,De)),D&&oe(De),De;function He(mr,nr,jt){Ye.push(r1(le,ae,mr,nr,jt))}}let il=!1;function Jt(v,D){if(!D)return v;pe.assert(!v.jsDoc);let P=IYe(qtt(v,ae),R=>nC.parseJSDocComment(v,R.pos,R.end-R.pos));return P.length&&(v.jsDoc=P),il&&(il=!1,v.flags|=536870912),v}function cp(v){let D=Nt,P=xO.createSyntaxCursor(v);Nt={currentNode:He};let R=[],M=Ye;Ye=[];let ee=0,be=Ce(v.statements,0);for(;be!==-1;){let mr=v.statements[ee],nr=v.statements[be];lc(R,v.statements,ee,be),ee=De(v.statements,be);let jt=Iz(M,Ai=>Ai.start>=mr.pos),Wa=jt>=0?Iz(M,Ai=>Ai.start>=nr.pos,jt):-1;jt>=0&&lc(Ye,M,jt,Wa>=0?Wa:void 0),fs(()=>{let Ai=bt;for(bt|=65536,t.resetTokenState(nr.pos),ce();T()!==1;){let lu=t.getTokenFullStart(),uu=Tb(0,pa);if(R.push(uu),lu===t.getTokenFullStart()&&ce(),ee>=0){let Ec=v.statements[ee];if(uu.end===Ec.pos)break;uu.end>Ec.pos&&(ee=De(v.statements,ee+1))}}bt=Ai},2),be=ee>=0?Ce(v.statements,ee):-1}if(ee>=0){let mr=v.statements[ee];lc(R,v.statements,ee);let nr=Iz(M,jt=>jt.start>=mr.pos);nr>=0&&lc(Ye,M,nr)}return Nt=D,d.updateSourceFile(v,Fs(f(R),v.statements));function Ue(mr){return!(mr.flags&65536)&&!!(mr.transformFlags&67108864)}function Ce(mr,nr){for(let jt=nr;jt118}function ht(){return T()===80?!0:T()===127&&kt()||T()===135&&$r()?!1:T()>118}function ie(v,D,P=!0){return T()===v?(P&&ce(),!0):(D?Ft(D):Ft(G._0_expected,io(v)),!1)}let To=Object.keys(bV).filter(v=>v.length>2);function zo(v){if(Jnt(v)){Zn(pd(ae,v.template.pos),v.template.end,G.Module_declaration_names_may_only_use_or_quoted_strings);return}let D=kn(v)?uc(v):void 0;if(!D||!Oet(D,he)){Ft(G._0_expected,io(27));return}let P=pd(ae,v.pos);switch(D){case"const":case"let":case"var":Zn(P,v.end,G.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Bi(G.Interface_name_cannot_be_0,G.Interface_must_be_given_a_name,19);return;case"is":Zn(P,t.getTokenStart(),G.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Bi(G.Namespace_name_cannot_be_0,G.Namespace_must_be_given_a_name,19);return;case"type":Bi(G.Type_alias_name_cannot_be_0,G.Type_alias_must_be_given_a_name,64);return}let R=FD(D,To,Bo)??ms(D);if(R){Zn(P,v.end,G.Unknown_keyword_or_identifier_Did_you_mean_0,R);return}T()!==0&&Zn(P,v.end,G.Unexpected_keyword_or_identifier)}function Bi(v,D,P){T()===P?Ft(D):Ft(v,t.getTokenValue())}function ms(v){for(let D of To)if(v.length>D.length+2&&dO(v,D))return`${D} ${v.slice(D.length)}`}function yR(v,D,P){if(T()===60&&!t.hasPrecedingLineBreak()){Ft(G.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(T()===21){Ft(G.Cannot_start_a_function_call_in_a_type_annotation),ce();return}if(D&&!iu()){P?Ft(G._0_expected,io(27)):Ft(G.Expected_for_property_initializer);return}if(!CS()){if(P){Ft(G._0_expected,io(27));return}zo(v)}}function Ow(v){return T()===v?(vr(),!0):(pe.assert(Oz(v)),Ft(G._0_expected,io(v)),!1)}function Md(v,D,P,R){if(T()===D){ce();return}let M=Ft(G._0_expected,io(D));P&&M&&tO(M,r1(le,ae,R,1,G.The_parser_expected_to_find_a_1_to_match_the_0_token_here,io(v),io(D)))}function tr(v){return T()===v?(ce(),!0):!1}function mo(v){if(T()===v)return la()}function gR(v){if(T()===v)return vR()}function cl(v,D,P){return mo(v)||ua(v,!1,D||G._0_expected,P||io(v))}function SR(v){return gR(v)||(pe.assert(Oz(v)),ua(v,!1,G._0_expected,io(v)))}function la(){let v=re(),D=T();return ce(),X(A(D),v)}function vR(){let v=re(),D=T();return vr(),X(A(D),v)}function iu(){return T()===27?!0:T()===20||T()===1||t.hasPrecedingLineBreak()}function CS(){return iu()?(T()===27&&ce(),!0):!1}function ba(){return CS()||ie(27)}function ui(v,D,P,R){let M=f(v,R);return ih(M,D,P??t.getTokenFullStart()),M}function X(v,D,P){return ih(v,D,P??t.getTokenFullStart()),bt&&(v.flags|=bt),Di&&(Di=!1,v.flags|=262144),v}function ua(v,D,P,...R){D?Bs(t.getTokenFullStart(),0,P,...R):P&&Ft(P,...R);let M=re(),ee=v===80?S("",void 0):qfe(v)?d.createTemplateLiteralLikeNode(v,"","",void 0):v===9?m("",void 0):v===11?y("",void 0):v===283?d.createMissingDeclaration():A(v);return X(ee,M)}function jd(v){let D=It.get(v);return D===void 0&&It.set(v,D=v),D}function au(v,D,P){if(v){fo++;let Ue=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():re(),Ce=T(),De=jd(t.getTokenValue()),He=t.hasExtendedUnicodeEscape();return Ht(),X(S(De,Ce,He),Ue)}if(T()===81)return Ft(P||G.Private_identifiers_are_not_allowed_outside_class_bodies),au(!0);if(T()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return au(!0);fo++;let R=T()===1,M=t.isReservedWord(),ee=t.getTokenText(),be=M?G.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:G.Identifier_expected;return ua(80,R,D||be,ee)}function vb(v){return au(br(),void 0,v)}function No(v,D){return au(ht(),v,D)}function qi(v){return au(Zo(T()),v)}function Cf(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Ft(G.Unicode_escape_sequence_cannot_appear_here),au(Zo(T()))}function up(){return Zo(T())||T()===11||T()===9||T()===10}function Nw(){return Zo(T())||T()===11}function bR(v){if(T()===11||T()===9||T()===10){let D=ll();return D.text=jd(D.text),D}return v&&T()===23?xR():T()===81?PS():qi()}function Bd(){return bR(!0)}function xR(){let v=re();ie(23);let D=co(ti);return ie(24),X(d.createComputedPropertyName(D),v)}function PS(){let v=re(),D=x(jd(t.getTokenValue()));return ce(),X(D,v)}function Pf(v){return T()===v&&We(Fw)}function bb(){return ce(),t.hasPrecedingLineBreak()?!1:su()}function Fw(){switch(T()){case 87:return ce()===94;case 95:return ce(),T()===90?ye(ry):T()===156?ye(ER):ty();case 90:return ry();case 126:return ce(),su();case 139:case 153:return ce(),TR();default:return bb()}}function ty(){return T()===60||T()!==42&&T()!==130&&T()!==19&&su()}function ER(){return ce(),ty()}function Rw(){return Z_(T())&&We(Fw)}function su(){return T()===23||T()===19||T()===42||T()===26||up()}function TR(){return T()===23||up()}function ry(){return ce(),T()===86||T()===100||T()===120||T()===60||T()===128&&ye(Ek)||T()===134&&ye(Tk)}function OS(v,D){if(FS(v))return!0;switch(v){case 0:case 1:case 3:return!(T()===27&&D)&&Dk();case 2:return T()===84||T()===90;case 4:return ye(pI);case 5:return ye(jk)||T()===27&&!D;case 6:return T()===23||up();case 12:switch(T()){case 23:case 42:case 26:case 25:return!0;default:return up()}case 18:return up();case 9:return T()===23||T()===26||up();case 24:return Nw();case 7:return T()===19?ye(Lw):D?ht()&&!xb():Vb()&&!xb();case 8:return ax();case 10:return T()===28||T()===26||ax();case 19:return T()===103||T()===87||ht();case 15:switch(T()){case 28:case 25:return!0}case 11:return T()===26||dp();case 16:return MS(!1);case 17:return MS(!0);case 20:case 21:return T()===28||Rf();case 22:return dx();case 23:return T()===161&&ye(Pk)?!1:T()===11?!0:Zo(T());case 13:return Zo(T())||T()===19;case 14:return!0;case 25:return!0;case 26:return pe.fail("ParsingContext.Count used as a context");default:pe.assertNever(v,"Non-exhaustive case in 'isListElement'.")}}function Lw(){if(pe.assert(T()===19),ce()===20){let v=ce();return v===28||v===19||v===96||v===119}return!0}function ny(){return ce(),ht()}function DR(){return ce(),Zo(T())}function $w(){return ce(),uet(T())}function xb(){return T()===119||T()===96?ye(Mw):!1}function Mw(){return ce(),dp()}function oy(){return ce(),Rf()}function NS(v){if(T()===1)return!0;switch(v){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return T()===20;case 3:return T()===20||T()===84||T()===90;case 7:return T()===19||T()===96||T()===119;case 8:return Eb();case 19:return T()===32||T()===21||T()===19||T()===96||T()===119;case 11:return T()===22||T()===27;case 15:case 21:case 10:return T()===24;case 17:case 16:case 18:return T()===22||T()===24;case 20:return T()!==28;case 22:return T()===19||T()===20;case 13:return T()===32||T()===44;case 14:return T()===30&&ye(R8);default:return!1}}function Eb(){return!!(iu()||VI(T())||T()===39)}function jw(){pe.assert(rn,"Missing parsing context");for(let v=0;v<26;v++)if(rn&1<=0)}function Ib(v){return v===6?G.An_enum_member_name_must_be_followed_by_a_or:void 0}function cu(){let v=ui([],re());return v.isMissingList=!0,v}function Hw(v){return!!v.isMissingList}function qd(v,D,P,R){if(ie(P)){let M=hs(v,D);return ie(R),M}return cu()}function Ud(v,D){let P=re(),R=v?qi(D):No(D);for(;tr(25)&&T()!==30;)R=X(d.createQualifiedName(R,Of(v,!1,!0)),P);return R}function AR(v,D){return X(d.createQualifiedName(v,D),v.pos)}function Of(v,D,P){if(t.hasPrecedingLineBreak()&&Zo(T())&&ye(rx))return ua(80,!0,G.Identifier_expected);if(T()===81){let R=PS();return D?R:ua(80,!0,G.Identifier_expected)}return v?P?qi():Cf():No()}function wR(v){let D=re(),P=[],R;do R=Xw(v),P.push(R);while(R.literal.kind===17);return ui(P,D)}function LS(v){let D=re();return X(d.createTemplateExpression(iy(v),wR(v)),D)}function Zw(){let v=re();return X(d.createTemplateLiteralType(iy(!1),IR()),v)}function IR(){let v=re(),D=[],P;do P=Ww(),D.push(P);while(P.literal.kind===17);return ui(D,v)}function Ww(){let v=re();return X(d.createTemplateLiteralTypeSpan(no(),Qw(!1)),v)}function Qw(v){return T()===20?(mi(v),Yw()):cl(18,G._0_expected,io(20))}function Xw(v){let D=re();return X(d.createTemplateSpan(co(ti),Qw(v)),D)}function ll(){return Nf(T())}function iy(v){!v&&t.getTokenFlags()&26656&&mi(!1);let D=Nf(T());return pe.assert(D.kind===16,"Template head has wrong token kind"),D}function Yw(){let v=Nf(T());return pe.assert(v.kind===17||v.kind===18,"Template fragment has wrong token kind"),v}function kR(v){let D=v===15||v===18,P=t.getTokenText();return P.substring(1,P.length-(t.isUnterminated()?0:D?1:2))}function Nf(v){let D=re(),P=qfe(v)?d.createTemplateLiteralLikeNode(v,t.getTokenValue(),kR(v),t.getTokenFlags()&7176):v===9?m(t.getTokenValue(),t.getNumericLiteralFlags()):v===11?y(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):utt(v)?g(v,t.getTokenValue()):pe.fail();return t.hasExtendedUnicodeEscape()&&(P.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(P.isUnterminated=!0),ce(),X(P,D)}function Ff(){return Ud(!0,G.Type_expected)}function eI(){if(!t.hasPrecedingLineBreak()&&ei()===30)return qd(20,no,30,32)}function $S(){let v=re();return X(d.createTypeReferenceNode(Ff(),eI()),v)}function kb(v){switch(v.kind){case 184:return Lg(v.typeName);case 185:case 186:{let{parameters:D,type:P}=v;return Hw(D)||kb(P)}case 197:return kb(v.type);default:return!1}}function CR(v){return ce(),X(d.createTypePredicateNode(void 0,v,no()),v.pos)}function Cb(){let v=re();return ce(),X(d.createThisTypeNode(),v)}function PR(){let v=re();return ce(),X(d.createJSDocAllType(),v)}function tI(){let v=re();return ce(),X(d.createJSDocNonNullableType(qb(),!1),v)}function OR(){let v=re();return ce(),T()===28||T()===20||T()===22||T()===32||T()===64||T()===52?X(d.createJSDocUnknownType(),v):X(d.createJSDocNullableType(no(),!1),v)}function rI(){let v=re(),D=fr();if(We(Zk)){let P=ul(36),R=bc(59,!1);return Jt(X(d.createJSDocFunctionType(P,R),v),D)}return X(d.createTypeReferenceNode(qi(),void 0),v)}function Pb(){let v=re(),D;return(T()===110||T()===105)&&(D=qi(),ie(59)),X(d.createParameterDeclaration(void 0,void 0,D,void 0,Ob(),void 0),v)}function Ob(){t.setSkipJsDocLeadingAsterisks(!0);let v=re();if(tr(144)){let R=d.createJSDocNamepathType(void 0);e:for(;;)switch(T()){case 20:case 1:case 28:case 5:break e;default:vr()}return t.setSkipJsDocLeadingAsterisks(!1),X(R,v)}let D=tr(26),P=qS();return t.setSkipJsDocLeadingAsterisks(!1),D&&(P=X(d.createJSDocVariadicType(P),v)),T()===64?(ce(),X(d.createJSDocOptionalType(P),v)):P}function nI(){let v=re();ie(114);let D=Ud(!0),P=t.hasPrecedingLineBreak()?void 0:WS();return X(d.createTypeQueryNode(D,P),v)}function oI(){let v=re(),D=xc(!1,!0),P=No(),R,M;tr(96)&&(Rf()||!dp()?R=no():M=XI());let ee=tr(64)?no():void 0,be=d.createTypeParameterDeclaration(D,P,R,ee);return be.expression=M,X(be,v)}function ys(){if(T()===30)return qd(19,oI,30,32)}function MS(v){return T()===26||ax()||Z_(T())||T()===60||Rf(!v)}function iI(v){let D=Lf(G.Private_identifiers_cannot_be_used_as_parameters);return Ltt(D)===0&&!Ra(v)&&Z_(T())&&ce(),D}function aI(){return br()||T()===23||T()===19}function Nb(v){return Fb(v)}function sI(v){return Fb(v,!1)}function Fb(v,D=!0){let P=re(),R=fr(),M=v?ue(()=>xc(!0)):Ee(()=>xc(!0));if(T()===110){let Ce=d.createParameterDeclaration(M,void 0,au(!0),void 0,pp(),void 0),De=hV(M);return De&&_s(De,G.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Jt(X(Ce,P),R)}let ee=Hn;Hn=!1;let be=mo(26);if(!D&&!aI())return;let Ue=Jt(X(d.createParameterDeclaration(M,be,iI(M),mo(58),pp(),_p()),P),R);return Hn=ee,Ue}function bc(v,D){if(cI(v,D))return lp(qS)}function cI(v,D){return v===39?(ie(v),!0):tr(59)?!0:D&&T()===39?(Ft(G._0_expected,io(59)),ce(),!0):!1}function Rb(v,D){let P=kt(),R=$r();Zr(!!(v&1)),ro(!!(v&2));let M=v&32?hs(17,Pb):hs(16,()=>D?Nb(R):sI(R));return Zr(P),ro(R),M}function ul(v){if(!ie(21))return cu();let D=Rb(v,!0);return ie(22),D}function jS(){tr(28)||ba()}function lI(v){let D=re(),P=fr();v===181&&ie(105);let R=ys(),M=ul(4),ee=bc(59,!0);jS();let be=v===180?d.createCallSignature(R,M,ee):d.createConstructSignature(R,M,ee);return Jt(X(be,D),P)}function zd(){return T()===23&&ye(NR)}function NR(){if(ce(),T()===26||T()===24)return!0;if(Z_(T())){if(ce(),ht())return!0}else if(ht())ce();else return!1;return T()===59||T()===28?!0:T()!==58?!1:(ce(),T()===59||T()===28||T()===24)}function Lb(v,D,P){let R=qd(16,()=>Nb(!1),23,24),M=pp();jS();let ee=d.createIndexSignature(P,R,M);return Jt(X(ee,v),D)}function uI(v,D,P){let R=Bd(),M=mo(58),ee;if(T()===21||T()===30){let be=ys(),Ue=ul(4),Ce=bc(59,!0);ee=d.createMethodSignature(P,R,M,be,Ue,Ce)}else{let be=pp();ee=d.createPropertySignature(P,R,M,be),T()===64&&(ee.initializer=_p())}return jS(),Jt(X(ee,v),D)}function pI(){if(T()===21||T()===30||T()===139||T()===153)return!0;let v=!1;for(;Z_(T());)v=!0,ce();return T()===23?!0:(up()&&(v=!0,ce()),v?T()===21||T()===30||T()===58||T()===59||T()===28||iu():!1)}function ay(){if(T()===21||T()===30)return lI(180);if(T()===105&&ye(dI))return lI(181);let v=re(),D=fr(),P=xc(!1);return Pf(139)?$f(v,D,P,178,4):Pf(153)?$f(v,D,P,179,4):zd()?Lb(v,D,P):uI(v,D,P)}function dI(){return ce(),T()===21||T()===30}function _I(){return ce()===25}function fI(){switch(ce()){case 21:case 30:case 25:return!0}return!1}function mI(){let v=re();return X(d.createTypeLiteralNode(hI()),v)}function hI(){let v;return ie(19)?(v=qs(4,ay),ie(20)):v=cu(),v}function yI(){return ce(),T()===40||T()===41?ce()===148:(T()===148&&ce(),T()===23&&ny()&&ce()===103)}function FR(){let v=re(),D=qi();ie(103);let P=no();return X(d.createTypeParameterDeclaration(void 0,D,P,void 0),v)}function gI(){let v=re();ie(19);let D;(T()===148||T()===40||T()===41)&&(D=la(),D.kind!==148&&ie(148)),ie(23);let P=FR(),R=tr(130)?no():void 0;ie(24);let M;(T()===58||T()===40||T()===41)&&(M=la(),M.kind!==58&&ie(58));let ee=pp();ba();let be=qs(4,ay);return ie(20),X(d.createMappedTypeNode(D,P,R,M,ee,be),v)}function SI(){let v=re();if(tr(26))return X(d.createRestTypeNode(no()),v);let D=no();if(lot(D)&&D.pos===D.type.pos){let P=d.createOptionalTypeNode(D.type);return Fs(P,D),P.flags=D.flags,P}return D}function $b(){return ce()===59||T()===58&&ce()===59}function RR(){return T()===26?Zo(ce())&&$b():Zo(T())&&$b()}function vI(){if(ye(RR)){let v=re(),D=fr(),P=mo(26),R=qi(),M=mo(58);ie(59);let ee=SI(),be=d.createNamedTupleMember(P,R,M,ee);return Jt(X(be,v),D)}return SI()}function LR(){let v=re();return X(d.createTupleTypeNode(qd(21,vI,23,24)),v)}function bI(){let v=re();ie(21);let D=no();return ie(22),X(d.createParenthesizedType(D),v)}function $R(){let v;if(T()===128){let D=re();ce();let P=X(A(128),D);v=ui([P],D)}return v}function Mb(){let v=re(),D=fr(),P=$R(),R=tr(105);pe.assert(!P||R,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let M=ys(),ee=ul(4),be=bc(39,!1),Ue=R?d.createConstructorTypeNode(P,M,ee,be):d.createFunctionTypeNode(M,ee,be);return Jt(X(Ue,v),D)}function xI(){let v=la();return T()===25?void 0:v}function jb(v){let D=re();v&&ce();let P=T()===112||T()===97||T()===106?la():Nf(T());return v&&(P=X(d.createPrefixUnaryExpression(41,P),D)),X(d.createLiteralTypeNode(P),D)}function MR(){return ce(),T()===102}function Bb(){K|=4194304;let v=re(),D=tr(114);ie(102),ie(21);let P=no(),R;if(tr(28)){let be=t.getTokenStart();ie(19);let Ue=T();if(Ue===118||Ue===132?ce():Ft(G._0_expected,io(118)),ie(59),R=mx(Ue,!0),tr(28),!ie(20)){let Ce=_1(Ye);Ce&&Ce.code===G._0_expected.code&&tO(Ce,r1(le,ae,be,1,G.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}ie(22);let M=tr(25)?Ff():void 0,ee=eI();return X(d.createImportTypeNode(P,R,M,ee,D),v)}function EI(){return ce(),T()===9||T()===10}function qb(){switch(T()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return We(xI)||$S();case 67:t.reScanAsteriskEqualsToken();case 42:return PR();case 61:t.reScanQuestionToken();case 58:return OR();case 100:return rI();case 54:return tI();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return jb();case 41:return ye(EI)?jb(!0):$S();case 116:return la();case 110:{let v=Cb();return T()===142&&!t.hasPrecedingLineBreak()?CR(v):v}case 114:return ye(MR)?Bb():nI();case 19:return ye(yI)?gI():mI();case 23:return LR();case 21:return bI();case 102:return Bb();case 131:return ye(rx)?NI():$S();case 16:return Zw();default:return $S()}}function Rf(v){switch(T()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!v;case 41:return!v&&ye(EI);case 21:return!v&&ye(TI);default:return ht()}}function TI(){return ce(),T()===22||MS(!1)||Rf()}function DI(){let v=re(),D=qb();for(;!t.hasPrecedingLineBreak();)switch(T()){case 54:ce(),D=X(d.createJSDocNonNullableType(D,!0),v);break;case 58:if(ye(oy))return D;ce(),D=X(d.createJSDocNullableType(D,!0),v);break;case 23:if(ie(23),Rf()){let P=no();ie(24),D=X(d.createIndexedAccessTypeNode(D,P),v)}else ie(24),D=X(d.createArrayTypeNode(D),v);break;default:return D}return D}function AI(v){let D=re();return ie(v),X(d.createTypeOperatorNode(v,II()),D)}function jR(){if(tr(96)){let v=vc(no);if(Ir()||T()!==58)return v}}function wI(){let v=re(),D=No(),P=We(jR),R=d.createTypeParameterDeclaration(void 0,D,P);return X(R,v)}function BR(){let v=re();return ie(140),X(d.createInferTypeNode(wI()),v)}function II(){let v=T();switch(v){case 143:case 158:case 148:return AI(v);case 140:return BR()}return lp(DI)}function BS(v){if(zb()){let D=Mb(),P;return Xhe(D)?P=v?G.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:G.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:P=v?G.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:G.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,_s(D,P),D}}function kI(v,D,P){let R=re(),M=v===52,ee=tr(v),be=ee&&BS(M)||D();if(T()===v||ee){let Ue=[be];for(;tr(v);)Ue.push(BS(M)||D());be=X(P(ui(Ue,R)),R)}return be}function Ub(){return kI(51,II,d.createIntersectionTypeNode)}function qR(){return kI(52,Ub,d.createUnionTypeNode)}function CI(){return ce(),T()===105}function zb(){return T()===30||T()===21&&ye(PI)?!0:T()===105||T()===128&&ye(CI)}function UR(){if(Z_(T())&&xc(!1),ht()||T()===110)return ce(),!0;if(T()===23||T()===19){let v=Ye.length;return Lf(),v===Ye.length}return!1}function PI(){return ce(),!!(T()===22||T()===26||UR()&&(T()===59||T()===28||T()===58||T()===64||T()===22&&(ce(),T()===39)))}function qS(){let v=re(),D=ht()&&We(OI),P=no();return D?X(d.createTypePredicateNode(void 0,D,P),v):P}function OI(){let v=No();if(T()===142&&!t.hasPrecedingLineBreak())return ce(),v}function NI(){let v=re(),D=cl(131),P=T()===110?Cb():No(),R=tr(142)?no():void 0;return X(d.createTypePredicateNode(D,P,R),v)}function no(){if(bt&81920)return fi(81920,no);if(zb())return Mb();let v=re(),D=qR();if(!Ir()&&!t.hasPrecedingLineBreak()&&tr(96)){let P=vc(no);ie(58);let R=lp(no);ie(59);let M=lp(no);return X(d.createConditionalTypeNode(D,P,R,M),v)}return D}function pp(){return tr(59)?no():void 0}function Vb(){switch(T()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return ye(fI);default:return ht()}}function dp(){if(Vb())return!0;switch(T()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return JI()?!0:ht()}}function FI(){return T()!==19&&T()!==100&&T()!==86&&T()!==60&&dp()}function ti(){let v=Tn();v&&dn(!1);let D=re(),P=Hi(!0),R;for(;R=mo(28);)P=Gb(P,R,Hi(!0),D);return v&&dn(!0),P}function _p(){return tr(64)?Hi(!0):void 0}function Hi(v){if(RI())return LI();let D=VR(v)||qI(v);if(D)return D;let P=re(),R=fr(),M=sy(0);return M.kind===80&&T()===39?$I(P,M,v,R,void 0):h1(M)&&qhe(Dr())?Gb(M,la(),Hi(v),P):JR(M,P,v)}function RI(){return T()===127?kt()?!0:ye(nx):!1}function zR(){return ce(),!t.hasPrecedingLineBreak()&&ht()}function LI(){let v=re();return ce(),!t.hasPrecedingLineBreak()&&(T()===42||dp())?X(d.createYieldExpression(mo(42),Hi(!0)),v):X(d.createYieldExpression(void 0,void 0),v)}function $I(v,D,P,R,M){pe.assert(T()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let ee=d.createParameterDeclaration(void 0,void 0,D,void 0,void 0,void 0);X(ee,D.pos);let be=ui([ee],ee.pos,ee.end),Ue=cl(39),Ce=Jb(!!M,P),De=d.createArrowFunction(M,void 0,be,void 0,Ue,Ce);return Jt(X(De,v),R)}function VR(v){let D=MI();if(D!==0)return D===1?zI(!0,!0):We(()=>BI(v))}function MI(){return T()===21||T()===30||T()===134?ye(jI):T()===39?1:0}function jI(){if(T()===134&&(ce(),t.hasPrecedingLineBreak()||T()!==21&&T()!==30))return 0;let v=T(),D=ce();if(v===21){if(D===22)switch(ce()){case 39:case 59:case 19:return 1;default:return 0}if(D===23||D===19)return 2;if(D===26)return 1;if(Z_(D)&&D!==134&&ye(ny))return ce()===130?0:1;if(!ht()&&D!==110)return 0;switch(ce()){case 59:return 1;case 58:return ce(),T()===59||T()===28||T()===64||T()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return pe.assert(v===30),!ht()&&T()!==87?0:pt===1?ye(()=>{tr(87);let P=ce();if(P===96)switch(ce()){case 64:case 32:case 44:return!1;default:return!0}else if(P===28||P===64)return!0;return!1})?1:0:2}function BI(v){let D=t.getTokenStart();if(Gn?.has(D))return;let P=zI(!1,v);return P||(Gn||(Gn=new Set)).add(D),P}function qI(v){if(T()===134&&ye(UI)===1){let D=re(),P=fr(),R=Uk(),M=sy(0);return $I(D,M,v,P,R)}}function UI(){if(T()===134){if(ce(),t.hasPrecedingLineBreak()||T()===39)return 0;let v=sy(0);if(!t.hasPrecedingLineBreak()&&v.kind===80&&T()===39)return 1}return 0}function zI(v,D){let P=re(),R=fr(),M=Uk(),ee=Ra(M,oO)?2:0,be=ys(),Ue;if(ie(21)){if(v)Ue=Rb(ee,v);else{let lu=Rb(ee,v);if(!lu)return;Ue=lu}if(!ie(22)&&!v)return}else{if(!v)return;Ue=cu()}let Ce=T()===59,De=bc(59,!1);if(De&&!v&&kb(De))return;let He=De;for(;He?.kind===197;)He=He.type;let mr=He&&uot(He);if(!v&&T()!==39&&(mr||T()!==19))return;let nr=T(),jt=cl(39),Wa=nr===39||nr===19?Jb(Ra(M,oO),D):No();if(!D&&Ce&&T()!==59)return;let Ai=d.createArrowFunction(M,be,Ue,De,jt,Wa);return Jt(X(Ai,P),R)}function Jb(v,D){if(T()===19)return KS(v?2:0);if(T()!==27&&T()!==100&&T()!==86&&Dk()&&!FI())return KS(16|(v?2:0));let P=kt();Zr(!1);let R=Hn;Hn=!1;let M=v?ue(()=>Hi(D)):Ee(()=>Hi(D));return Hn=R,Zr(P),M}function JR(v,D,P){let R=mo(58);if(!R)return v;let M;return X(d.createConditionalExpression(v,R,fi(r,()=>Hi(!1)),M=cl(59),Xz(M)?Hi(P):ua(80,!1,G._0_expected,io(59))),D)}function sy(v){let D=re(),P=XI();return Kb(v,P,D)}function VI(v){return v===103||v===165}function Kb(v,D,P){for(;;){Dr();let R=Nz(T());if(!(T()===43?R>=v:R>v)||T()===103&&ut())break;if(T()===130||T()===152){if(t.hasPrecedingLineBreak())break;{let M=T();ce(),D=M===152?KI(D,no()):GI(D,no())}}else D=Gb(D,la(),sy(R),P)}return D}function JI(){return ut()&&T()===103?!1:Nz(T())>0}function KI(v,D){return X(d.createSatisfiesExpression(v,D),v.pos)}function Gb(v,D,P,R){return X(d.createBinaryExpression(v,D,P),R)}function GI(v,D){return X(d.createAsExpression(v,D),v.pos)}function HI(){let v=re();return X(d.createPrefixUnaryExpression(T(),er(fp)),v)}function ZI(){let v=re();return X(d.createDeleteExpression(er(fp)),v)}function KR(){let v=re();return X(d.createTypeOfExpression(er(fp)),v)}function WI(){let v=re();return X(d.createVoidExpression(er(fp)),v)}function GR(){return T()===135?$r()?!0:ye(nx):!1}function QI(){let v=re();return X(d.createAwaitExpression(er(fp)),v)}function XI(){if(HR()){let P=re(),R=US();return T()===43?Kb(Nz(T()),R,P):R}let v=T(),D=fp();if(T()===43){let P=pd(ae,D.pos),{end:R}=D;D.kind===217?Zn(P,R,G.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(pe.assert(Oz(v)),Zn(P,R,G.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,io(v)))}return D}function fp(){switch(T()){case 40:case 41:case 55:case 54:return HI();case 91:return ZI();case 114:return KR();case 116:return WI();case 30:return pt===1?ly(!0,void 0,void 0,!0):nk();case 135:if(GR())return QI();default:return US()}}function HR(){switch(T()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(pt!==1)return!1;default:return!0}}function US(){if(T()===46||T()===47){let D=re();return X(d.createPrefixUnaryExpression(T(),er(cy)),D)}else if(pt===1&&T()===30&&ye($w))return ly(!0);let v=cy();if(pe.assert(h1(v)),(T()===46||T()===47)&&!t.hasPrecedingLineBreak()){let D=T();return ce(),X(d.createPostfixUnaryExpression(v,D),v.pos)}return v}function cy(){let v=re(),D;return T()===102?ye(dI)?(K|=4194304,D=la()):ye(_I)?(ce(),ce(),D=X(d.createMetaProperty(102,qi()),v),D.name.escapedText==="defer"?(T()===21||T()===30)&&(K|=4194304):K|=8388608):D=zS():D=T()===108?YI():zS(),Xb(v,D)}function zS(){let v=re(),D=Yb();return Za(v,D,!0)}function YI(){let v=re(),D=la();if(T()===30){let P=re(),R=We(JS);R!==void 0&&(Zn(P,re(),G.super_may_not_use_type_arguments),Us()||(D=d.createExpressionWithTypeArguments(D,R)))}return T()===21||T()===25||T()===23?D:(cl(25,G.super_must_be_followed_by_an_argument_list_or_member_access),X(C(D,Of(!0,!0,!0)),v))}function ly(v,D,P,R=!1){let M=re(),ee=QR(v),be;if(ee.kind===287){let Ue=VS(ee),Ce,De=Ue[Ue.length-1];if(De?.kind===285&&!Ym(De.openingElement.tagName,De.closingElement.tagName)&&Ym(ee.tagName,De.closingElement.tagName)){let He=De.children.end,mr=X(d.createJsxElement(De.openingElement,De.children,X(d.createJsxClosingElement(X(S(""),He,He)),He,He)),De.openingElement.pos,He);Ue=ui([...Ue.slice(0,Ue.length-1),mr],Ue.pos,He),Ce=De.closingElement}else Ce=rk(ee,v),Ym(ee.tagName,Ce.tagName)||(P&&nme(P)&&Ym(Ce.tagName,P.tagName)?_s(ee.tagName,G.JSX_element_0_has_no_corresponding_closing_tag,$D(ae,ee.tagName)):_s(Ce.tagName,G.Expected_corresponding_JSX_closing_tag_for_0,$D(ae,ee.tagName)));be=X(d.createJsxElement(ee,Ue,Ce),M)}else ee.kind===290?be=X(d.createJsxFragment(ee,VS(ee),t8(v)),M):(pe.assert(ee.kind===286),be=ee);if(!R&&v&&T()===30){let Ue=typeof D>"u"?be.pos:D,Ce=We(()=>ly(!0,Ue));if(Ce){let De=ua(28,!1);return Xfe(De,Ce.pos,0),Zn(pd(ae,Ue),Ce.end,G.JSX_expressions_must_have_one_parent_element),X(d.createBinaryExpression(be,De,Ce),M)}}return be}function Hb(){let v=re(),D=d.createJsxText(t.getTokenValue(),Ct===13);return Ct=t.scanJsxToken(),X(D,v)}function ZR(v,D){switch(D){case 1:if(oot(v))_s(v,G.JSX_fragment_has_no_corresponding_closing_tag);else{let P=v.tagName,R=Math.min(pd(ae,P.pos),P.end);Zn(R,P.end,G.JSX_element_0_has_no_corresponding_closing_tag,$D(ae,v.tagName))}return;case 31:case 7:return;case 12:case 13:return Hb();case 19:return ek(!1);case 30:return ly(!1,void 0,v);default:return pe.assertNever(D)}}function VS(v){let D=[],P=re(),R=rn;for(rn|=16384;;){let M=ZR(v,Ct=t.reScanJsxToken());if(!M||(D.push(M),nme(v)&&M?.kind===285&&!Ym(M.openingElement.tagName,M.closingElement.tagName)&&Ym(v.tagName,M.closingElement.tagName)))break}return rn=R,ui(D,P)}function WR(){let v=re();return X(d.createJsxAttributes(qs(13,tk)),v)}function QR(v){let D=re();if(ie(30),T()===32)return sl(),X(d.createJsxOpeningFragment(),D);let P=Zb(),R=(bt&524288)===0?WS():void 0,M=WR(),ee;return T()===32?(sl(),ee=d.createJsxOpeningElement(P,R,M)):(ie(44),ie(32,void 0,!1)&&(v?ce():sl()),ee=d.createJsxSelfClosingElement(P,R,M)),X(ee,D)}function Zb(){let v=re(),D=XR();if(_ye(D))return D;let P=D;for(;tr(25);)P=X(C(P,Of(!0,!1,!1)),v);return P}function XR(){let v=re();Gi();let D=T()===110,P=Cf();return tr(59)?(Gi(),X(d.createJsxNamespacedName(P,Cf()),v)):D?X(d.createToken(110),v):P}function ek(v){let D=re();if(!ie(19))return;let P,R;return T()!==20&&(v||(P=mo(26)),R=ti()),v?ie(20):ie(20,void 0,!1)&&sl(),X(d.createJsxExpression(P,R),D)}function tk(){if(T()===19)return e8();let v=re();return X(d.createJsxAttribute(YR(),Wb()),v)}function Wb(){if(T()===64){if(ey()===11)return ll();if(T()===19)return ek(!0);if(T()===30)return ly(!0);Ft(G.or_JSX_element_expected)}}function YR(){let v=re();Gi();let D=Cf();return tr(59)?(Gi(),X(d.createJsxNamespacedName(D,Cf()),v)):D}function e8(){let v=re();ie(19),ie(26);let D=ti();return ie(20),X(d.createJsxSpreadAttribute(D),v)}function rk(v,D){let P=re();ie(31);let R=Zb();return ie(32,void 0,!1)&&(D||!Ym(v.tagName,R)?ce():sl()),X(d.createJsxClosingElement(R),P)}function t8(v){let D=re();return ie(31),ie(32,G.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(v?ce():sl()),X(d.createJsxJsxClosingFragment(),D)}function nk(){pe.assert(pt!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let v=re();ie(30);let D=no();ie(32);let P=fp();return X(d.createTypeAssertion(D,P),v)}function r8(){return ce(),Zo(T())||T()===23||Us()}function ok(){return T()===29&&ye(r8)}function Qb(v){if(v.flags&64)return!0;if(cO(v)){let D=v.expression;for(;cO(D)&&!(D.flags&64);)D=D.expression;if(D.flags&64){for(;cO(v);)v.flags|=64,v=v.expression;return!0}}return!1}function ik(v,D,P){let R=Of(!0,!0,!0),M=P||Qb(D),ee=M?F(D,P,R):C(D,R);if(M&&jg(ee.name)&&_s(ee.name,G.An_optional_chain_cannot_contain_private_identifiers),Wnt(D)&&D.typeArguments){let be=D.typeArguments.pos-1,Ue=pd(ae,D.typeArguments.end)+1;Zn(be,Ue,G.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return X(ee,v)}function n8(v,D,P){let R;if(T()===24)R=ua(80,!0,G.An_element_access_expression_should_take_an_argument);else{let ee=co(ti);TO(ee)&&(ee.text=jd(ee.text)),R=ee}ie(24);let M=P||Qb(D)?$(D,P,R):O(D,R);return X(M,v)}function Za(v,D,P){for(;;){let R,M=!1;if(P&&ok()?(R=cl(29),M=Zo(T())):M=tr(25),M){D=ik(v,D,R);continue}if((R||!Tn())&&tr(23)){D=n8(v,D,R);continue}if(Us()){D=!R&&D.kind===234?Vd(v,D.expression,R,D.typeArguments):Vd(v,D,R,void 0);continue}if(!R){if(T()===54&&!t.hasPrecedingLineBreak()){ce(),D=X(d.createNonNullExpression(D),v);continue}let ee=We(JS);if(ee){D=X(d.createExpressionWithTypeArguments(D,ee),v);continue}}return D}}function Us(){return T()===15||T()===16}function Vd(v,D,P,R){let M=d.createTaggedTemplateExpression(D,R,T()===15?(mi(!0),ll()):LS(!0));return(P||D.flags&64)&&(M.flags|=64),M.questionDotToken=P,X(M,v)}function Xb(v,D){for(;;){D=Za(v,D,!0);let P,R=mo(29);if(R&&(P=We(JS),Us())){D=Vd(v,D,R,P);continue}if(P||T()===21){!R&&D.kind===234&&(P=D.typeArguments,D=D.expression);let M=ak(),ee=R||Qb(D)?U(D,R,P,M):N(D,P,M);D=X(ee,v);continue}if(R){let M=ua(80,!1,G.Identifier_expected);D=X(F(D,R,M),v)}break}return D}function ak(){ie(21);let v=hs(11,lk);return ie(22),v}function JS(){if((bt&524288)!==0||ei()!==30)return;ce();let v=hs(20,no);if(Dr()===32)return ce(),v&&o8()?v:void 0}function o8(){switch(T()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||JI()||!dp()}function Yb(){switch(T()){case 15:t.getTokenFlags()&26656&&mi(!1);case 9:case 10:case 11:return ll();case 110:case 108:case 106:case 112:case 97:return la();case 21:return i8();case 23:return uk();case 19:return ex();case 134:if(!ye(Tk))break;return tx();case 60:return D8();case 86:return A8();case 100:return tx();case 105:return dk();case 44:case 69:if(nn()===14)return ll();break;case 16:return LS(!1);case 81:return PS()}return No(G.Expression_expected)}function i8(){let v=re(),D=fr();ie(21);let P=co(ti);return ie(22),Jt(X(Te(P),v),D)}function sk(){let v=re();ie(26);let D=Hi(!0);return X(d.createSpreadElement(D),v)}function ck(){return T()===26?sk():T()===28?X(d.createOmittedExpression(),re()):Hi(!0)}function lk(){return fi(r,ck)}function uk(){let v=re(),D=t.getTokenStart(),P=ie(23),R=t.hasPrecedingLineBreak(),M=hs(15,ck);return Md(23,24,P,D),X(I(M,R),v)}function pk(){let v=re(),D=fr();if(mo(26)){let De=Hi(!0);return Jt(X(d.createSpreadAssignment(De),v),D)}let P=xc(!0);if(Pf(139))return $f(v,D,P,178,0);if(Pf(153))return $f(v,D,P,179,0);let R=mo(42),M=ht(),ee=Bd(),be=mo(58),Ue=mo(54);if(R||T()===21||T()===30)return Mk(v,D,P,R,ee,be,Ue);let Ce;if(M&&T()!==59){let De=mo(64),He=De?co(()=>Hi(!0)):void 0;Ce=d.createShorthandPropertyAssignment(ee,He),Ce.equalsToken=De}else{ie(59);let De=co(()=>Hi(!0));Ce=d.createPropertyAssignment(ee,De)}return Ce.modifiers=P,Ce.questionToken=be,Ce.exclamationToken=Ue,Jt(X(Ce,v),D)}function ex(){let v=re(),D=t.getTokenStart(),P=ie(19),R=t.hasPrecedingLineBreak(),M=hs(12,pk,!0);return Md(19,20,P,D),X(E(M,R),v)}function tx(){let v=Tn();dn(!1);let D=re(),P=fr(),R=xc(!1);ie(100);let M=mo(42),ee=M?1:0,be=Ra(R,oO)?2:0,Ue=ee&&be?we(uy):ee?al(uy):be?ue(uy):uy(),Ce=ys(),De=ul(ee|be),He=bc(59,!1),mr=KS(ee|be);dn(v);let nr=d.createFunctionExpression(R,M,Ue,Ce,De,He,mr);return Jt(X(nr,D),P)}function uy(){return br()?vb():void 0}function dk(){let v=re();if(ie(105),tr(25)){let ee=qi();return X(d.createMetaProperty(105,ee),v)}let D=re(),P=Za(D,Yb(),!1),R;P.kind===234&&(R=P.typeArguments,P=P.expression),T()===29&&Ft(G.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,$D(ae,P));let M=T()===21?ak():void 0;return X(ge(P,R,M),v)}function Jd(v,D){let P=re(),R=fr(),M=t.getTokenStart(),ee=ie(19,D);if(ee||v){let be=t.hasPrecedingLineBreak(),Ue=qs(1,pa);Md(19,20,ee,M);let Ce=Jt(X(ke(Ue,be),P),R);return T()===64&&(Ft(G.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),ce()),Ce}else{let be=cu();return Jt(X(ke(be,void 0),P),R)}}function KS(v,D){let P=kt();Zr(!!(v&1));let R=$r();ro(!!(v&2));let M=Hn;Hn=!1;let ee=Tn();ee&&dn(!1);let be=Jd(!!(v&16),D);return ee&&dn(!0),Hn=M,Zr(P),ro(R),be}function _k(){let v=re(),D=fr();return ie(27),Jt(X(d.createEmptyStatement(),v),D)}function a8(){let v=re(),D=fr();ie(101);let P=t.getTokenStart(),R=ie(21),M=co(ti);Md(21,22,R,P);let ee=pa(),be=tr(93)?pa():void 0;return Jt(X(xe(M,ee,be),v),D)}function fk(){let v=re(),D=fr();ie(92);let P=pa();ie(117);let R=t.getTokenStart(),M=ie(21),ee=co(ti);return Md(21,22,M,R),tr(27),Jt(X(d.createDoStatement(P,ee),v),D)}function s8(){let v=re(),D=fr();ie(117);let P=t.getTokenStart(),R=ie(21),M=co(ti);Md(21,22,R,P);let ee=pa();return Jt(X(Rt(M,ee),v),D)}function mk(){let v=re(),D=fr();ie(99);let P=mo(135);ie(21);let R;T()!==27&&(T()===115||T()===121||T()===87||T()===160&&ye(wk)||T()===135&&ye(ox)?R=Rk(!0):R=$d(ti));let M;if(P?ie(165):tr(165)){let ee=co(()=>Hi(!0));ie(22),M=Yt(P,R,ee,pa())}else if(tr(103)){let ee=co(ti);ie(22),M=d.createForInStatement(R,ee,pa())}else{ie(27);let ee=T()!==27&&T()!==22?co(ti):void 0;ie(27);let be=T()!==22?co(ti):void 0;ie(22),M=Vt(R,ee,be,pa())}return Jt(X(M,v),D)}function hk(v){let D=re(),P=fr();ie(v===253?83:88);let R=iu()?void 0:No();ba();let M=v===253?d.createBreakStatement(R):d.createContinueStatement(R);return Jt(X(M,D),P)}function yk(){let v=re(),D=fr();ie(107);let P=iu()?void 0:co(ti);return ba(),Jt(X(d.createReturnStatement(P),v),D)}function c8(){let v=re(),D=fr();ie(118);let P=t.getTokenStart(),R=ie(21),M=co(ti);Md(21,22,R,P);let ee=Uo(67108864,pa);return Jt(X(d.createWithStatement(M,ee),v),D)}function gk(){let v=re(),D=fr();ie(84);let P=co(ti);ie(59);let R=qs(3,pa);return Jt(X(d.createCaseClause(P,R),v),D)}function l8(){let v=re();ie(90),ie(59);let D=qs(3,pa);return X(d.createDefaultClause(D),v)}function u8(){return T()===84?gk():l8()}function Sk(){let v=re();ie(19);let D=qs(2,u8);return ie(20),X(d.createCaseBlock(D),v)}function p8(){let v=re(),D=fr();ie(109),ie(21);let P=co(ti);ie(22);let R=Sk();return Jt(X(d.createSwitchStatement(P,R),v),D)}function vk(){let v=re(),D=fr();ie(111);let P=t.hasPrecedingLineBreak()?void 0:co(ti);return P===void 0&&(fo++,P=X(S(""),re())),CS()||zo(P),Jt(X(d.createThrowStatement(P),v),D)}function d8(){let v=re(),D=fr();ie(113);let P=Jd(!1),R=T()===85?bk():void 0,M;return(!R||T()===98)&&(ie(98,G.catch_or_finally_expected),M=Jd(!1)),Jt(X(d.createTryStatement(P,R,M),v),D)}function bk(){let v=re();ie(85);let D;tr(21)?(D=HS(),ie(22)):D=void 0;let P=Jd(!1);return X(d.createCatchClause(D,P),v)}function _8(){let v=re(),D=fr();return ie(89),ba(),Jt(X(d.createDebuggerStatement(),v),D)}function xk(){let v=re(),D=fr(),P,R=T()===21,M=co(ti);return kn(M)&&tr(59)?P=d.createLabeledStatement(M,pa()):(CS()||zo(M),P=me(M),R&&(D=!1)),Jt(X(P,v),D)}function rx(){return ce(),Zo(T())&&!t.hasPrecedingLineBreak()}function Ek(){return ce(),T()===86&&!t.hasPrecedingLineBreak()}function Tk(){return ce(),T()===100&&!t.hasPrecedingLineBreak()}function nx(){return ce(),(Zo(T())||T()===9||T()===10||T()===11)&&!t.hasPrecedingLineBreak()}function f8(){for(;;)switch(T()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Ik();case 135:return ix();case 120:case 156:case 166:return zR();case 144:case 145:return g8();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let v=T();if(ce(),t.hasPrecedingLineBreak())return!1;if(v===138&&T()===156)return!0;continue;case 162:return ce(),T()===19||T()===80||T()===95;case 102:return ce(),T()===166||T()===11||T()===42||T()===19||Zo(T());case 95:let D=ce();if(D===156&&(D=ye(ce)),D===64||D===42||D===19||D===90||D===130||D===60)return!0;continue;case 126:ce();continue;default:return!1}}function py(){return ye(f8)}function Dk(){switch(T()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return py()||ye(fI);case 87:case 95:return py();case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return py()||!ye(rx);default:return dp()}}function Ak(){return ce(),br()||T()===19||T()===23}function m8(){return ye(Ak)}function wk(){return GS(!0)}function h8(){return ce(),T()===64||T()===27||T()===59}function GS(v){return ce(),v&&T()===165?ye(h8):(br()||T()===19)&&!t.hasPrecedingLineBreak()}function Ik(){return ye(GS)}function ox(v){return ce()===160?GS(v):!1}function ix(){return ye(ox)}function pa(){switch(T()){case 27:return _k();case 19:return Jd(!1);case 115:return fy(re(),fr(),void 0);case 121:if(m8())return fy(re(),fr(),void 0);break;case 135:if(ix())return fy(re(),fr(),void 0);break;case 160:if(Ik())return fy(re(),fr(),void 0);break;case 100:return sx(re(),fr(),void 0);case 86:return ux(re(),fr(),void 0);case 101:return a8();case 92:return fk();case 117:return s8();case 99:return mk();case 88:return hk(252);case 83:return hk(253);case 107:return yk();case 118:return c8();case 109:return p8();case 111:return vk();case 113:case 85:case 98:return d8();case 89:return _8();case 60:return dy();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(py())return dy();break}return xk()}function kk(v){return v.kind===138}function dy(){let v=re(),D=fr(),P=xc(!0);if(Ra(P,kk)){let R=y8(v);if(R)return R;for(let M of P)M.flags|=33554432;return Uo(33554432,()=>Ck(v,D,P))}else return Ck(v,D,P)}function y8(v){return Uo(33554432,()=>{let D=FS(rn,v);if(D)return Bw(D)})}function Ck(v,D,P){switch(T()){case 115:case 121:case 87:case 160:case 135:return fy(v,D,P);case 100:return sx(v,D,P);case 86:return ux(v,D,P);case 120:return C8(v,D,P);case 156:return P8(v,D,P);case 94:return O8(v,D,P);case 162:case 144:case 145:return N8(v,D,P);case 102:return my(v,D,P);case 95:switch(ce(),T()){case 90:case 64:return tC(v,D,P);case 130:return L8(v,D,P);default:return eC(v,D,P)}default:if(P){let R=ua(283,!0,G.Declaration_expected);return eV(R,v),R.modifiers=P,R}return}}function Pk(){return ce()===11}function Ok(){return ce(),T()===161||T()===64}function g8(){return ce(),!t.hasPrecedingLineBreak()&&(ht()||T()===11)}function _y(v,D){if(T()!==19){if(v&4){jS();return}if(iu()){ba();return}}return KS(v,D)}function S8(){let v=re();if(T()===28)return X(d.createOmittedExpression(),v);let D=mo(26),P=Lf(),R=_p();return X(d.createBindingElement(D,void 0,P,R),v)}function Nk(){let v=re(),D=mo(26),P=br(),R=Bd(),M;P&&T()!==59?(M=R,R=void 0):(ie(59),M=Lf());let ee=_p();return X(d.createBindingElement(D,R,M,ee),v)}function v8(){let v=re();ie(19);let D=co(()=>hs(9,Nk));return ie(20),X(d.createObjectBindingPattern(D),v)}function Fk(){let v=re();ie(23);let D=co(()=>hs(10,S8));return ie(24),X(d.createArrayBindingPattern(D),v)}function ax(){return T()===19||T()===23||T()===81||br()}function Lf(v){return T()===23?Fk():T()===19?v8():vb(v)}function b8(){return HS(!0)}function HS(v){let D=re(),P=fr(),R=Lf(G.Private_identifiers_are_not_allowed_in_variable_declarations),M;v&&R.kind===80&&T()===54&&!t.hasPrecedingLineBreak()&&(M=la());let ee=pp(),be=VI(T())?void 0:_p(),Ue=vt(R,M,ee,be);return Jt(X(Ue,D),P)}function Rk(v){let D=re(),P=0;switch(T()){case 115:break;case 121:P|=1;break;case 87:P|=2;break;case 160:P|=4;break;case 135:pe.assert(ix()),P|=6,ce();break;default:pe.fail()}ce();let R;if(T()===165&&ye(Lk))R=cu();else{let M=ut();Et(v),R=hs(8,v?HS:b8),Et(M)}return X(Fr(R,P),D)}function Lk(){return ny()&&ce()===22}function fy(v,D,P){let R=Rk(!1);ba();let M=Ve(P,R);return Jt(X(M,v),D)}function sx(v,D,P){let R=$r(),M=zc(P);ie(100);let ee=mo(42),be=M&2048?uy():vb(),Ue=ee?1:0,Ce=M&1024?2:0,De=ys();M&32&&ro(!0);let He=ul(Ue|Ce),mr=bc(59,!1),nr=_y(Ue|Ce,G.or_expected);ro(R);let jt=d.createFunctionDeclaration(P,ee,be,De,He,mr,nr);return Jt(X(jt,v),D)}function x8(){if(T()===137)return ie(137);if(T()===11&&ye(ce)===21)return We(()=>{let v=ll();return v.text==="constructor"?v:void 0})}function $k(v,D,P){return We(()=>{if(x8()){let R=ys(),M=ul(0),ee=bc(59,!1),be=_y(0,G.or_expected),Ue=d.createConstructorDeclaration(P,M,be);return Ue.typeParameters=R,Ue.type=ee,Jt(X(Ue,v),D)}})}function Mk(v,D,P,R,M,ee,be,Ue){let Ce=R?1:0,De=Ra(P,oO)?2:0,He=ys(),mr=ul(Ce|De),nr=bc(59,!1),jt=_y(Ce|De,Ue),Wa=d.createMethodDeclaration(P,R,M,ee,He,mr,nr,jt);return Wa.exclamationToken=be,Jt(X(Wa,v),D)}function ZS(v,D,P,R,M){let ee=!M&&!t.hasPrecedingLineBreak()?mo(54):void 0,be=pp(),Ue=fi(90112,_p);yR(R,be,Ue);let Ce=d.createPropertyDeclaration(P,R,M||ee,be,Ue);return Jt(X(Ce,v),D)}function cx(v,D,P){let R=mo(42),M=Bd(),ee=mo(58);return R||T()===21||T()===30?Mk(v,D,P,R,M,ee,void 0,G.or_expected):ZS(v,D,P,M,ee)}function $f(v,D,P,R,M){let ee=Bd(),be=ys(),Ue=ul(0),Ce=bc(59,!1),De=_y(M),He=R===178?d.createGetAccessorDeclaration(P,ee,Ue,Ce,De):d.createSetAccessorDeclaration(P,ee,Ue,De);return He.typeParameters=be,vO(He)&&(He.type=Ce),Jt(X(He,v),D)}function jk(){let v;if(T()===60)return!0;for(;Z_(T());){if(v=T(),_tt(v))return!0;ce()}if(T()===42||(up()&&(v=T(),ce()),T()===23))return!0;if(v!==void 0){if(!th(v)||v===153||v===139)return!0;switch(T()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return iu()}}return!1}function E8(v,D,P){cl(126);let R=T8(),M=Jt(X(d.createClassStaticBlockDeclaration(R),v),D);return M.modifiers=P,M}function T8(){let v=kt(),D=$r();Zr(!1),ro(!0);let P=Jd(!1);return Zr(v),ro(D),P}function Bk(){if($r()&&T()===135){let v=re(),D=No(G.Expression_expected);ce();let P=Za(v,D,!0);return Xb(v,P)}return cy()}function qk(){let v=re();if(!tr(60))return;let D=Yh(Bk);return X(d.createDecorator(D),v)}function lx(v,D,P){let R=re(),M=T();if(T()===87&&D){if(!We(bb))return}else if(P&&T()===126&&ye(QS)||v&&T()===126||!Rw())return;return X(A(M),R)}function xc(v,D,P){let R=re(),M,ee,be,Ue=!1,Ce=!1,De=!1;if(v&&T()===60)for(;ee=qk();)M=sc(M,ee);for(;be=lx(Ue,D,P);)be.kind===126&&(Ue=!0),M=sc(M,be),Ce=!0;if(Ce&&v&&T()===60)for(;ee=qk();)M=sc(M,ee),De=!0;if(De)for(;be=lx(Ue,D,P);)be.kind===126&&(Ue=!0),M=sc(M,be);return M&&ui(M,R)}function Uk(){let v;if(T()===134){let D=re();ce();let P=X(A(134),D);v=ui([P],D)}return v}function zk(){let v=re(),D=fr();if(T()===27)return ce(),Jt(X(d.createSemicolonClassElement(),v),D);let P=xc(!0,!0,!0);if(T()===126&&ye(QS))return E8(v,D,P);if(Pf(139))return $f(v,D,P,178,0);if(Pf(153))return $f(v,D,P,179,0);if(T()===137||T()===11){let R=$k(v,D,P);if(R)return R}if(zd())return Lb(v,D,P);if(Zo(T())||T()===11||T()===9||T()===10||T()===42||T()===23)if(Ra(P,kk)){for(let R of P)R.flags|=33554432;return Uo(33554432,()=>cx(v,D,P))}else return cx(v,D,P);if(P){let R=ua(80,!0,G.Declaration_expected);return ZS(v,D,P,R,void 0)}return pe.fail("Should not have attempted to parse class member declaration.")}function D8(){let v=re(),D=fr(),P=xc(!0);if(T()===86)return px(v,D,P,232);let R=ua(283,!0,G.Expression_expected);return eV(R,v),R.modifiers=P,R}function A8(){return px(re(),fr(),void 0,232)}function ux(v,D,P){return px(v,D,P,264)}function px(v,D,P,R){let M=$r();ie(86);let ee=w8(),be=ys();Ra(P,ynt)&&ro(!0);let Ue=Jk(),Ce;ie(19)?(Ce=Kk(),ie(20)):Ce=cu(),ro(M);let De=R===264?d.createClassDeclaration(P,ee,be,Ue,Ce):d.createClassExpression(P,ee,be,Ue,Ce);return Jt(X(De,v),D)}function w8(){return br()&&!Vk()?au(br()):void 0}function Vk(){return T()===119&&ye(DR)}function Jk(){if(dx())return qs(22,I8)}function I8(){let v=re(),D=T();pe.assert(D===96||D===119),ce();let P=hs(7,k8);return X(d.createHeritageClause(D,P),v)}function k8(){let v=re(),D=cy();if(D.kind===234)return D;let P=WS();return X(d.createExpressionWithTypeArguments(D,P),v)}function WS(){return T()===30?qd(20,no,30,32):void 0}function dx(){return T()===96||T()===119}function Kk(){return qs(5,zk)}function C8(v,D,P){ie(120);let R=No(),M=ys(),ee=Jk(),be=hI(),Ue=d.createInterfaceDeclaration(P,R,M,ee,be);return Jt(X(Ue,v),D)}function P8(v,D,P){ie(156),t.hasPrecedingLineBreak()&&Ft(G.Line_break_not_permitted_here);let R=No(),M=ys();ie(64);let ee=T()===141&&We(xI)||no();ba();let be=d.createTypeAliasDeclaration(P,R,M,ee);return Jt(X(be,v),D)}function _x(){let v=re(),D=fr(),P=Bd(),R=co(_p);return Jt(X(d.createEnumMember(P,R),v),D)}function O8(v,D,P){ie(94);let R=No(),M;ie(19)?(M=Tt(()=>hs(6,_x)),ie(20)):M=cu();let ee=d.createEnumDeclaration(P,R,M);return Jt(X(ee,v),D)}function fx(){let v=re(),D;return ie(19)?(D=qs(1,pa),ie(20)):D=cu(),X(d.createModuleBlock(D),v)}function Gk(v,D,P,R){let M=R&32,ee=R&8?qi():No(),be=tr(25)?Gk(re(),!1,void 0,8|M):fx(),Ue=d.createModuleDeclaration(P,ee,be,R);return Jt(X(Ue,v),D)}function Hk(v,D,P){let R=0,M;T()===162?(M=No(),R|=2048):(M=ll(),M.text=jd(M.text));let ee;T()===19?ee=fx():ba();let be=d.createModuleDeclaration(P,M,ee,R);return Jt(X(be,v),D)}function N8(v,D,P){let R=0;if(T()===162)return Hk(v,D,P);if(tr(145))R|=32;else if(ie(144),T()===11)return Hk(v,D,P);return Gk(v,D,P,R)}function F8(){return T()===149&&ye(Zk)}function Zk(){return ce()===21}function QS(){return ce()===19}function R8(){return ce()===44}function L8(v,D,P){ie(130),ie(145);let R=No();ba();let M=d.createNamespaceExportDeclaration(R);return M.modifiers=P,Jt(X(M,v),D)}function my(v,D,P){ie(102);let R=t.getTokenFullStart(),M;ht()&&(M=No());let ee;if(M?.escapedText==="type"&&(T()!==161||ht()&&ye(Ok))&&(ht()||Kd())?(ee=156,M=ht()?No():void 0):M?.escapedText==="defer"&&(T()===161?!ye(Pk):T()!==28&&T()!==64)&&(ee=166,M=ht()?No():void 0),M&&!M8()&&ee!==166)return j8(v,D,P,M,ee===156);let be=Wk(M,R,ee,void 0),Ue=yy(),Ce=Qk();ba();let De=d.createImportDeclaration(P,be,Ue,Ce);return Jt(X(De,v),D)}function Wk(v,D,P,R=!1){let M;return(v||T()===42||T()===19)&&(M=B8(v,D,P,R),ie(161)),M}function Qk(){let v=T();if((v===118||v===132)&&!t.hasPrecedingLineBreak())return mx(v)}function $8(){let v=re(),D=Zo(T())?qi():Nf(11);ie(59);let P=Hi(!0);return X(d.createImportAttribute(D,P),v)}function mx(v,D){let P=re();D||ie(v);let R=t.getTokenStart();if(ie(19)){let M=t.hasPrecedingLineBreak(),ee=hs(24,$8,!0);if(!ie(20)){let be=_1(Ye);be&&be.code===G._0_expected.code&&tO(be,r1(le,ae,R,1,G.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return X(d.createImportAttributes(ee,M,v),P)}else{let M=ui([],re(),void 0,!1);return X(d.createImportAttributes(M,!1,v),P)}}function Kd(){return T()===42||T()===19}function M8(){return T()===28||T()===161}function j8(v,D,P,R,M){ie(64);let ee=hy();ba();let be=d.createImportEqualsDeclaration(P,M,R,ee);return Jt(X(be,v),D)}function B8(v,D,P,R){let M;return(!v||tr(28))&&(R&&t.setSkipJsDocLeadingAsterisks(!0),T()===42?M=U8():M=Xk(276),R&&t.setSkipJsDocLeadingAsterisks(!1)),X(d.createImportClause(P,v,M),D)}function hy(){return F8()?q8():Ud(!1)}function q8(){let v=re();ie(149),ie(21);let D=yy();return ie(22),X(d.createExternalModuleReference(D),v)}function yy(){if(T()===11){let v=ll();return v.text=jd(v.text),v}else return ti()}function U8(){let v=re();ie(42),ie(130);let D=No();return X(d.createNamespaceImport(D),v)}function hx(){return Zo(T())||T()===11}function Mf(v){return T()===11?ll():v()}function Xk(v){let D=re(),P=v===276?d.createNamedImports(qd(23,z8,19,20)):d.createNamedExports(qd(23,jf,19,20));return X(P,D)}function jf(){let v=fr();return Jt(Yk(282),v)}function z8(){return Yk(277)}function Yk(v){let D=re(),P=th(T())&&!ht(),R=t.getTokenStart(),M=t.getTokenEnd(),ee=!1,be,Ue=!0,Ce=Mf(qi);if(Ce.kind===80&&Ce.escapedText==="type")if(T()===130){let mr=qi();if(T()===130){let nr=qi();hx()?(ee=!0,be=mr,Ce=Mf(He),Ue=!1):(be=Ce,Ce=nr,Ue=!1)}else hx()?(be=Ce,Ue=!1,Ce=Mf(He)):(ee=!0,Ce=mr)}else hx()&&(ee=!0,Ce=Mf(He));Ue&&T()===130&&(be=Ce,ie(130),Ce=Mf(He)),v===277&&(Ce.kind!==80?(Zn(pd(ae,Ce.pos),Ce.end,G.Identifier_expected),Ce=ih(ua(80,!1),Ce.pos,Ce.pos)):P&&Zn(R,M,G.Identifier_expected));let De=v===277?d.createImportSpecifier(ee,be,Ce):d.createExportSpecifier(ee,be,Ce);return X(De,D);function He(){return P=th(T())&&!ht(),R=t.getTokenStart(),M=t.getTokenEnd(),qi()}}function V8(v){return X(d.createNamespaceExport(Mf(qi)),v)}function eC(v,D,P){let R=$r();ro(!0);let M,ee,be,Ue=tr(156),Ce=re();tr(42)?(tr(130)&&(M=V8(Ce)),ie(161),ee=yy()):(M=Xk(280),(T()===161||T()===11&&!t.hasPrecedingLineBreak())&&(ie(161),ee=yy()));let De=T();ee&&(De===118||De===132)&&!t.hasPrecedingLineBreak()&&(be=mx(De)),ba(),ro(R);let He=d.createExportDeclaration(P,Ue,M,ee,be);return Jt(X(He,v),D)}function tC(v,D,P){let R=$r();ro(!0);let M;tr(64)?M=!0:ie(90);let ee=Hi(!0);ba(),ro(R);let be=d.createExportAssignment(P,M,ee);return Jt(X(be,v),D)}let yx;(v=>{v[v.SourceElements=0]="SourceElements",v[v.BlockStatements=1]="BlockStatements",v[v.SwitchClauses=2]="SwitchClauses",v[v.SwitchClauseStatements=3]="SwitchClauseStatements",v[v.TypeMembers=4]="TypeMembers",v[v.ClassMembers=5]="ClassMembers",v[v.EnumMembers=6]="EnumMembers",v[v.HeritageClauseElement=7]="HeritageClauseElement",v[v.VariableDeclarations=8]="VariableDeclarations",v[v.ObjectBindingElements=9]="ObjectBindingElements",v[v.ArrayBindingElements=10]="ArrayBindingElements",v[v.ArgumentExpressions=11]="ArgumentExpressions",v[v.ObjectLiteralMembers=12]="ObjectLiteralMembers",v[v.JsxAttributes=13]="JsxAttributes",v[v.JsxChildren=14]="JsxChildren",v[v.ArrayLiteralMembers=15]="ArrayLiteralMembers",v[v.Parameters=16]="Parameters",v[v.JSDocParameters=17]="JSDocParameters",v[v.RestProperties=18]="RestProperties",v[v.TypeParameters=19]="TypeParameters",v[v.TypeArguments=20]="TypeArguments",v[v.TupleElementTypes=21]="TupleElementTypes",v[v.HeritageClauses=22]="HeritageClauses",v[v.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",v[v.ImportAttributes=24]="ImportAttributes",v[v.JSDocComment=25]="JSDocComment",v[v.Count=26]="Count"})(yx||(yx={}));let rC;(v=>{v[v.False=0]="False",v[v.True=1]="True",v[v.Unknown=2]="Unknown"})(rC||(rC={}));let nC;(v=>{function D(De,He,mr){nl("file.js",De,99,void 0,1,0),t.setText(De,He,mr),Ct=t.scan();let nr=P(),jt=qe("file.js",99,1,!1,[],A(1),0,S1),Wa=Ig(Ye,jt);return lt&&(jt.jsDocDiagnostics=Ig(lt,jt)),ol(),nr?{jsDocTypeExpression:nr,diagnostics:Wa}:void 0}v.parseJSDocTypeExpressionForTests=D;function P(De){let He=re(),mr=(De?tr:ie)(19),nr=Uo(16777216,Ob);(!De||mr)&&Ow(20);let jt=d.createJSDocTypeExpression(nr);return oe(jt),X(jt,He)}v.parseJSDocTypeExpression=P;function R(){let De=re(),He=tr(19),mr=re(),nr=Ud(!1);for(;T()===81;)hi(),vr(),nr=X(d.createJSDocMemberName(nr,No()),mr);He&&Ow(20);let jt=d.createJSDocNameReference(nr);return oe(jt),X(jt,De)}v.parseJSDocNameReference=R;function M(De,He,mr){nl("",De,99,void 0,1,0);let nr=Uo(16777216,()=>Ce(He,mr)),jt=Ig(Ye,{languageVariant:0,text:De});return ol(),nr?{jsDoc:nr,diagnostics:jt}:void 0}v.parseIsolatedJSDocComment=M;function ee(De,He,mr){let nr=Ct,jt=Ye.length,Wa=Di,Ai=Uo(16777216,()=>Ce(He,mr));return $V(Ai,De),bt&524288&&(lt||(lt=[]),lc(lt,Ye,jt)),Ct=nr,Ye.length=jt,Di=Wa,Ai}v.parseJSDocComment=ee;let be;(De=>{De[De.BeginningOfLine=0]="BeginningOfLine",De[De.SawAsterisk=1]="SawAsterisk",De[De.SavingComments=2]="SavingComments",De[De.SavingBackticks=3]="SavingBackticks"})(be||(be={}));let Ue;(De=>{De[De.Property=1]="Property",De[De.Parameter=2]="Parameter",De[De.CallbackParameter=4]="CallbackParameter"})(Ue||(Ue={}));function Ce(De=0,He){let mr=ae,nr=He===void 0?mr.length:De+He;if(He=nr-De,pe.assert(De>=0),pe.assert(De<=nr),pe.assert(nr<=mr.length),!Rot(mr,De))return;let jt,Wa,Ai,lu,uu,Ec=[],Gd=[],Kt=rn;rn|=1<<25;let Dn=t.scanRange(De+3,He-5,mp);return rn=Kt,Dn;function mp(){let te=1,Se,ve=De-(mr.lastIndexOf(` +`,De)+1)+4;function $e(hr){Se||(Se=ve),Ec.push(hr),ve+=hr.length}for(vr();by(5););by(4)&&(te=0,ve=0);e:for(;;){switch(T()){case 60:J8(Ec),uu||(uu=re()),xr(l(ve)),te=0,Se=void 0;break;case 4:Ec.push(t.getTokenText()),te=0,ve=0;break;case 42:let hr=t.getTokenText();te===1?(te=2,$e(hr)):(pe.assert(te===0),te=1,ve+=hr.length);break;case 5:pe.assert(te!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let lo=t.getTokenText();Se!==void 0&&ve+lo.length>Se&&Ec.push(lo.slice(Se-ve)),ve+=lo.length;break;case 1:break e;case 82:te=2,$e(t.getTokenValue());break;case 19:te=2;let gs=t.getTokenFullStart(),Qa=t.getTokenEnd()-1,xa=b(Qa);if(xa){lu||gy(Ec),Gd.push(X(d.createJSDocText(Ec.join("")),lu??De,gs)),Gd.push(xa),Ec=[],lu=t.getTokenEnd();break}default:te=2,$e(t.getTokenText());break}te===2?Ha(!1):vr()}let Re=Ec.join("").trimEnd();Gd.length&&Re.length&&Gd.push(X(d.createJSDocText(Re),lu??De,uu)),Gd.length&&jt&&pe.assertIsDefined(uu,"having parsed tags implies that the end of the comment span should be set");let Gt=jt&&ui(jt,Wa,Ai);return X(d.createJSDocComment(Gd.length?ui(Gd,De,uu):Re.length?Re:void 0,Gt),De,nr)}function gy(te){for(;te.length&&(te[0]===` +`||te[0]==="\r");)te.shift()}function J8(te){for(;te.length;){let Se=te[te.length-1].trimEnd();if(Se==="")te.pop();else if(Se.lengthlo&&($e.push(dl.slice(lo-te)),hr=2),te+=dl.length;break;case 19:hr=2;let oC=t.getTokenFullStart(),XS=t.getTokenEnd()-1,iC=b(XS);iC?(Re.push(X(d.createJSDocText($e.join("")),Gt??ve,oC)),Re.push(iC),$e=[],Gt=t.getTokenEnd()):gs(t.getTokenText());break;case 62:hr===3?hr=2:hr=3,gs(t.getTokenText());break;case 82:hr!==3&&(hr=2),gs(t.getTokenValue());break;case 42:if(hr===0){hr=1,te+=1;break}default:hr!==3&&(hr=2),gs(t.getTokenText());break}hr===2||hr===3?Qa=Ha(hr===3):Qa=vr()}gy($e);let xa=$e.join("").trimEnd();if(Re.length)return xa.length&&Re.push(X(d.createJSDocText(xa),Gt??ve)),ui(Re,ve,t.getTokenEnd());if(xa.length)return xa}function b(te){let Se=We(j);if(!Se)return;vr(),zs();let ve=k(),$e=[];for(;T()!==20&&T()!==4&&T()!==1;)$e.push(t.getTokenText()),vr();let Re=Se==="link"?d.createJSDocLink:Se==="linkcode"?d.createJSDocLinkCode:d.createJSDocLinkPlain;return X(Re(ve,$e.join("")),te,t.getTokenEnd())}function k(){if(Zo(T())){let te=re(),Se=qi();for(;tr(25);)Se=X(d.createQualifiedName(Se,T()===81?ua(80,!1):qi()),te);for(;T()===81;)hi(),vr(),Se=X(d.createJSDocMemberName(Se,No()),te);return Se}}function j(){if(se(),T()===19&&vr()===60&&Zo(vr())){let te=t.getTokenValue();if(_e(te))return te}}function _e(te){return te==="link"||te==="linkcode"||te==="linkplain"}function Qe(te,Se,ve,$e){return X(d.createJSDocUnknownTag(Se,_(te,re(),ve,$e)),te)}function xr(te){te&&(jt?jt.push(te):(jt=[te],Wa=te.pos),Ai=te.end)}function wi(){return se(),T()===19?P():void 0}function pu(){let te=by(23);te&&zs();let Se=by(62),ve=nIe();return Se&&SR(62),te&&(zs(),mo(64)&&ti(),ie(24)),{name:ve,isBracketed:te}}function Vs(te){switch(te.kind){case 151:return!0;case 189:return Vs(te.elementType);default:return Qhe(te)&&kn(te.typeName)&&te.typeName.escapedText==="Object"&&!te.typeArguments}}function Sy(te,Se,ve,$e){let Re=wi(),Gt=!Re;se();let{name:hr,isBracketed:lo}=pu(),gs=se();Gt&&!ye(j)&&(Re=wi());let Qa=_(te,re(),$e,gs),xa=Lwe(Re,hr,ve,$e);xa&&(Re=xa,Gt=!0);let dl=ve===1?d.createJSDocPropertyTag(Se,hr,lo,Re,Gt,Qa):d.createJSDocParameterTag(Se,hr,lo,Re,Gt,Qa);return X(dl,te)}function Lwe(te,Se,ve,$e){if(te&&Vs(te.type)){let Re=re(),Gt,hr;for(;Gt=We(()=>G8(ve,$e,Se));)Gt.kind===342||Gt.kind===349?hr=sc(hr,Gt):Gt.kind===346&&_s(Gt.tagName,G.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(hr){let lo=X(d.createJSDocTypeLiteral(hr,te.type.kind===189),Re);return X(d.createJSDocTypeExpression(lo),Re)}}}function $we(te,Se,ve,$e){Ra(jt,vot)&&Zn(Se.pos,t.getTokenStart(),G._0_tag_already_specified,JD(Se.escapedText));let Re=wi();return X(d.createJSDocReturnTag(Se,Re,_(te,re(),ve,$e)),te)}function FX(te,Se,ve,$e){Ra(jt,UV)&&Zn(Se.pos,t.getTokenStart(),G._0_tag_already_specified,JD(Se.escapedText));let Re=P(!0),Gt=ve!==void 0&&$e!==void 0?_(te,re(),ve,$e):void 0;return X(d.createJSDocTypeTag(Se,Re,Gt),te)}function Mwe(te,Se,ve,$e){let Re=T()===23||ye(()=>vr()===60&&Zo(vr())&&_e(t.getTokenValue()))?void 0:R(),Gt=ve!==void 0&&$e!==void 0?_(te,re(),ve,$e):void 0;return X(d.createJSDocSeeTag(Se,Re,Gt),te)}function jwe(te,Se,ve,$e){let Re=wi(),Gt=_(te,re(),ve,$e);return X(d.createJSDocThrowsTag(Se,Re,Gt),te)}function Bwe(te,Se,ve,$e){let Re=re(),Gt=qwe(),hr=t.getTokenFullStart(),lo=_(te,hr,ve,$e);lo||(hr=t.getTokenFullStart());let gs=typeof lo!="string"?ui(mV([X(Gt,Re,hr)],lo),Re):Gt.text+lo;return X(d.createJSDocAuthorTag(Se,gs),te)}function qwe(){let te=[],Se=!1,ve=t.getToken();for(;ve!==1&&ve!==4;){if(ve===30)Se=!0;else{if(ve===60&&!Se)break;if(ve===32&&Se){te.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}te.push(t.getTokenText()),ve=vr()}return d.createJSDocText(te.join(""))}function Uwe(te,Se,ve,$e){let Re=RX();return X(d.createJSDocImplementsTag(Se,Re,_(te,re(),ve,$e)),te)}function zwe(te,Se,ve,$e){let Re=RX();return X(d.createJSDocAugmentsTag(Se,Re,_(te,re(),ve,$e)),te)}function Vwe(te,Se,ve,$e){let Re=P(!1),Gt=ve!==void 0&&$e!==void 0?_(te,re(),ve,$e):void 0;return X(d.createJSDocSatisfiesTag(Se,Re,Gt),te)}function Jwe(te,Se,ve,$e){let Re=t.getTokenFullStart(),Gt;ht()&&(Gt=No());let hr=Wk(Gt,Re,156,!0),lo=yy(),gs=Qk(),Qa=ve!==void 0&&$e!==void 0?_(te,re(),ve,$e):void 0;return X(d.createJSDocImportTag(Se,hr,lo,gs,Qa),te)}function RX(){let te=tr(19),Se=re(),ve=Kwe();t.setSkipJsDocLeadingAsterisks(!0);let $e=WS();t.setSkipJsDocLeadingAsterisks(!1);let Re=d.createExpressionWithTypeArguments(ve,$e),Gt=X(Re,Se);return te&&(zs(),ie(20)),Gt}function Kwe(){let te=re(),Se=Bf();for(;tr(25);){let ve=Bf();Se=X(C(Se,ve),te)}return Se}function vy(te,Se,ve,$e,Re){return X(Se(ve,_(te,re(),$e,Re)),te)}function LX(te,Se,ve,$e){let Re=P(!0);return zs(),X(d.createJSDocThisTag(Se,Re,_(te,re(),ve,$e)),te)}function Gwe(te,Se,ve,$e){let Re=P(!0);return zs(),X(d.createJSDocEnumTag(Se,Re,_(te,re(),ve,$e)),te)}function Hwe(te,Se,ve,$e){let Re=wi();se();let Gt=K8();zs();let hr=h(ve),lo;if(!Re||Vs(Re.type)){let Qa,xa,dl,oC=!1;for(;(Qa=We(()=>Ywe(ve)))&&Qa.kind!==346;)if(oC=!0,Qa.kind===345)if(xa){let XS=Ft(G.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);XS&&tO(XS,r1(le,ae,0,0,G.The_tag_was_first_specified_here));break}else xa=Qa;else dl=sc(dl,Qa);if(oC){let XS=Re&&Re.type.kind===189,iC=d.createJSDocTypeLiteral(dl,XS);Re=xa&&xa.typeExpression&&!Vs(xa.typeExpression.type)?xa.typeExpression:X(iC,te),lo=Re.end}}lo=lo||hr!==void 0?re():(Gt??Re??Se).end,hr||(hr=_(te,lo,ve,$e));let gs=d.createJSDocTypedefTag(Se,Re,Gt,hr);return X(gs,te,lo)}function K8(te){let Se=t.getTokenStart();if(!Zo(T()))return;let ve=Bf();if(tr(25)){let $e=K8(!0),Re=d.createModuleDeclaration(void 0,ve,$e,te?8:void 0);return X(Re,Se)}return te&&(ve.flags|=4096),ve}function Zwe(te){let Se=re(),ve,$e;for(;ve=We(()=>G8(4,te));){if(ve.kind===346){_s(ve.tagName,G.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}$e=sc($e,ve)}return ui($e||[],Se)}function $X(te,Se){let ve=Zwe(Se),$e=We(()=>{if(by(60)){let Re=l(Se);if(Re&&Re.kind===343)return Re}});return X(d.createJSDocSignature(void 0,ve,$e),te)}function Wwe(te,Se,ve,$e){let Re=K8();zs();let Gt=h(ve),hr=$X(te,ve);Gt||(Gt=_(te,re(),ve,$e));let lo=Gt!==void 0?re():hr.end;return X(d.createJSDocCallbackTag(Se,hr,Re,Gt),te,lo)}function Qwe(te,Se,ve,$e){zs();let Re=h(ve),Gt=$X(te,ve);Re||(Re=_(te,re(),ve,$e));let hr=Re!==void 0?re():Gt.end;return X(d.createJSDocOverloadTag(Se,Gt,Re),te,hr)}function Xwe(te,Se){for(;!kn(te)||!kn(Se);)if(!kn(te)&&!kn(Se)&&te.right.escapedText===Se.right.escapedText)te=te.left,Se=Se.left;else return!1;return te.escapedText===Se.escapedText}function Ywe(te){return G8(1,te)}function G8(te,Se,ve){let $e=!0,Re=!1;for(;;)switch(vr()){case 60:if($e){let Gt=eIe(te,Se);return Gt&&(Gt.kind===342||Gt.kind===349)&&ve&&(kn(Gt.name)||!Xwe(ve,Gt.name.left))?!1:Gt}Re=!1;break;case 4:$e=!0,Re=!1;break;case 42:Re&&($e=!1),Re=!0;break;case 80:$e=!1;break;case 1:return!1}}function eIe(te,Se){pe.assert(T()===60);let ve=t.getTokenFullStart();vr();let $e=Bf(),Re=se(),Gt;switch($e.escapedText){case"type":return te===1&&FX(ve,$e);case"prop":case"property":Gt=1;break;case"arg":case"argument":case"param":Gt=6;break;case"template":return MX(ve,$e,Se,Re);case"this":return LX(ve,$e,Se,Re);default:return!1}return te&Gt?Sy(ve,$e,te,Se):!1}function tIe(){let te=re(),Se=by(23);Se&&zs();let ve=xc(!1,!0),$e=Bf(G.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Re;if(Se&&(zs(),ie(64),Re=Uo(16777216,Ob),ie(24)),!Lg($e))return X(d.createTypeParameterDeclaration(ve,$e,void 0,Re),te)}function rIe(){let te=re(),Se=[];do{zs();let ve=tIe();ve!==void 0&&Se.push(ve),se()}while(by(28));return ui(Se,te)}function MX(te,Se,ve,$e){let Re=T()===19?P():void 0,Gt=rIe();return X(d.createJSDocTemplateTag(Se,Re,Gt,_(te,re(),ve,$e)),te)}function by(te){return T()===te?(vr(),!0):!1}function nIe(){let te=Bf();for(tr(23)&&ie(24);tr(25);){let Se=Bf();tr(23)&&ie(24),te=AR(te,Se)}return te}function Bf(te){if(!Zo(T()))return ua(80,!te,te||G.Identifier_expected);fo++;let Se=t.getTokenStart(),ve=t.getTokenEnd(),$e=T(),Re=jd(t.getTokenValue()),Gt=X(S(Re,$e),Se,ve);return vr(),Gt}}})(nC=e.JSDocParser||(e.JSDocParser={}))})(Mg||(Mg={}));var kme=new WeakSet;function Got(e){kme.has(e)&&pe.fail("Source file has already been incrementally parsed"),kme.add(e)}var bye=new WeakSet;function Hot(e){return bye.has(e)}function aV(e){bye.add(e)}var xO;(e=>{function t(y,g,S,x){if(x=x||pe.shouldAssert(2),d(y,g,S,x),$et(S))return y;if(y.statements.length===0)return Mg.parseSourceFile(y.fileName,g,y.languageVersion,void 0,!0,y.scriptKind,y.setExternalModuleIndicator,y.jsDocParsingMode);Got(y),Mg.fixupParentReferences(y);let A=y.text,I=f(y),E=c(y,S);d(y,g,E,x),pe.assert(E.span.start<=S.span.start),pe.assert(ld(E.span)===ld(S.span)),pe.assert(ld(ID(E))===ld(ID(S)));let C=ID(E).length-E.span.length;s(y,E.span.start,ld(E.span),ld(ID(E)),C,A,g,x);let F=Mg.parseSourceFile(y.fileName,g,y.languageVersion,I,!0,y.scriptKind,y.setExternalModuleIndicator,y.jsDocParsingMode);return F.commentDirectives=r(y.commentDirectives,F.commentDirectives,E.span.start,ld(E.span),C,A,g,x),F.impliedNodeFormat=y.impliedNodeFormat,Dot(y,F),F}e.updateSourceFile=t;function r(y,g,S,x,A,I,E,C){if(!y)return g;let F,O=!1;for(let N of y){let{range:U,type:ge}=N;if(U.endx){$();let Te={range:{pos:U.pos+A,end:U.end+A},type:ge};F=sc(F,Te),C&&pe.assert(I.substring(U.pos,U.end)===E.substring(Te.range.pos,Te.range.end))}}return $(),F;function $(){O||(O=!0,F?g&&F.push(...g):F=g)}}function n(y,g,S,x,A,I,E){S?F(y):C(y);return;function C(O){let $="";if(E&&o(O)&&($=A.substring(O.pos,O.end)),ime(O,g),ih(O,O.pos+x,O.end+x),E&&o(O)&&pe.assert($===I.substring(O.pos,O.end)),La(O,C,F),Rg(O))for(let N of O.jsDoc)C(N);a(O,E)}function F(O){ih(O,O.pos+x,O.end+x);for(let $ of O)C($)}}function o(y){switch(y.kind){case 11:case 9:case 80:return!0}return!1}function i(y,g,S,x,A){pe.assert(y.end>=g,"Adjusting an element that was entirely before the change range"),pe.assert(y.pos<=S,"Adjusting an element that was entirely after the change range"),pe.assert(y.pos<=y.end);let I=Math.min(y.pos,x),E=y.end>=S?y.end+A:Math.min(y.end,x);if(pe.assert(I<=E),y.parent){let C=y.parent;pe.assertGreaterThanOrEqual(I,C.pos),pe.assertLessThanOrEqual(E,C.end)}ih(y,I,E)}function a(y,g){if(g){let S=y.pos,x=A=>{pe.assert(A.pos>=S),S=A.end};if(Rg(y))for(let A of y.jsDoc)x(A);La(y,x),pe.assert(S<=y.end)}}function s(y,g,S,x,A,I,E,C){F(y);return;function F($){if(pe.assert($.pos<=$.end),$.pos>S){n($,y,!1,A,I,E,C);return}let N=$.end;if(N>=g){if(aV($),ime($,y),i($,g,S,x,A),La($,F,O),Rg($))for(let U of $.jsDoc)F(U);a($,C);return}pe.assert(NS){n($,y,!0,A,I,E,C);return}let N=$.end;if(N>=g){aV($),i($,g,S,x,A);for(let U of $)F(U);return}pe.assert(N0&&I<=1;I++){let E=p(y,S);pe.assert(E.pos<=S);let C=E.pos;S=Math.max(0,C-1)}let x=Let(S,ld(g.span)),A=g.newLength+(g.span.start-S);return yhe(x,A)}function p(y,g){let S=y,x;if(La(y,I),x){let E=A(x);E.pos>S.pos&&(S=E)}return S;function A(E){for(;;){let C=Irt(E);if(C)E=C;else return E}}function I(E){if(!Lg(E))if(E.pos<=g){if(E.pos>=S.pos&&(S=E),gg),!0}}function d(y,g,S,x){let A=y.text;if(S&&(pe.assert(A.length-S.span.length+S.newLength===g.length),x||pe.shouldAssert(3))){let I=A.substr(0,S.span.start),E=g.substr(0,S.span.start);pe.assert(I===E);let C=A.substring(ld(S.span),A.length),F=g.substring(ld(ID(S)),g.length);pe.assert(C===F)}}function f(y){let g=y.statements,S=0;pe.assert(S=O.pos&&E=O.pos&&E{y[y.Value=-1]="Value"})(m||(m={}))})(xO||(xO={}));function Zot(e){return Wot(e)!==void 0}function Wot(e){let t=nhe(e,Zrt,!1);if(t)return t;if(ret(e,".ts")){let r=rhe(e),n=r.lastIndexOf(".d.");if(n>=0)return r.substring(n)}}function Qot(e,t,r,n){if(e){if(e==="import")return 99;if(e==="require")return 1;n(t,r-t,G.resolution_mode_should_be_either_require_or_import)}}function Xot(e,t){let r=[];for(let n of Zz(t,0)||ii){let o=t.substring(n.pos,n.end);nit(r,n,o)}e.pragmas=new Map;for(let n of r){if(e.pragmas.has(n.name)){let o=e.pragmas.get(n.name);o instanceof Array?o.push(n.args):e.pragmas.set(n.name,[o,n.args]);continue}e.pragmas.set(n.name,n.args)}}function Yot(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,n)=>{switch(n){case"reference":{let o=e.referencedFiles,i=e.typeReferenceDirectives,a=e.libReferenceDirectives;Jc(kz(r),s=>{let{types:c,lib:p,path:d,["resolution-mode"]:f,preserve:m}=s.arguments,y=m==="true"?!0:void 0;if(s.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(c){let g=Qot(f,c.pos,c.end,t);i.push({pos:c.pos,end:c.end,fileName:c.value,...g?{resolutionMode:g}:{},...y?{preserve:y}:{}})}else p?a.push({pos:p.pos,end:p.end,fileName:p.value,...y?{preserve:y}:{}}):d?o.push({pos:d.pos,end:d.end,fileName:d.value,...y?{preserve:y}:{}}):t(s.range.pos,s.range.end-s.range.pos,G.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Vz(kz(r),o=>({name:o.arguments.name,path:o.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(let o of r)e.moduleName&&t(o.range.pos,o.range.end-o.range.pos,G.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=o.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{Jc(kz(r),o=>{(!e.checkJsDirective||o.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:n==="ts-check",end:o.range.end,pos:o.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:pe.fail("Unhandled pragma kind")}})}var jz=new Map;function eit(e){if(jz.has(e))return jz.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return jz.set(e,t),t}var tit=/^\/\/\/\s*<(\S+)\s.*?\/>/m,rit=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function nit(e,t,r){let n=t.kind===2&&tit.exec(r);if(n){let i=n[1].toLowerCase(),a=the[i];if(!a||!(a.kind&1))return;if(a.args){let s={};for(let c of a.args){let p=eit(c.name).exec(r);if(!p&&!c.optional)return;if(p){let d=p[2]||p[3];if(c.captureSpan){let f=t.pos+p.index+p[1].length+1;s[c.name]={value:d,pos:f,end:f+d.length}}else s[c.name]=d}}e.push({name:i,args:{arguments:s,range:t}})}else e.push({name:i,args:{arguments:{},range:t}});return}let o=t.kind===2&&rit.exec(r);if(o)return Cme(e,t,2,o);if(t.kind===3){let i=/@(\S+)(\s+(?:\S.*)?)?$/gm,a;for(;a=i.exec(r);)Cme(e,t,4,a)}}function Cme(e,t,r,n){if(!n)return;let o=n[1].toLowerCase(),i=the[o];if(!i||!(i.kind&r))return;let a=n[2],s=oit(i,a);s!=="fail"&&e.push({name:o,args:{arguments:s,range:t}})}function oit(e,t){if(!t)return{};if(!e.args)return{};let r=t.trim().split(/\s+/),n={};for(let o=0;on.kind<310||n.kind>352);return r.kind<167?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),r=_1(t);if(r)return r.kind<167?r:r.getLastToken(e)}forEachChild(e,t){return La(this,e,t)}};function iit(e,t){let r=[];if(Ctt(e))return e.forEachChild(a=>{r.push(a)}),r;BD.setText((t||e.getSourceFile()).text);let n=e.pos,o=a=>{qD(r,n,a.pos,e),r.push(a),n=a.end},i=a=>{qD(r,n,a.pos,e),r.push(ait(a,e)),n=a.end};return Jc(e.jsDoc,o),n=e.pos,e.forEachChild(o,i),qD(r,n,e.end,e),BD.setText(void 0),r}function qD(e,t,r,n){for(BD.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function lO(e,t){if(!e)return ii;let r=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(Aye))){let n=new Set;for(let o of e){let i=wye(t,o,a=>{var s;if(!n.has(a))return n.add(a),o.kind===178||o.kind===179?a.getContextualJsDocTags(o,t):((s=a.declarations)==null?void 0:s.length)===1?a.getJsDocTags(t):void 0});i&&(r=[...i,...r])}}return r}function jD(e,t){if(!e)return ii;let r=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(Aye))){let n=new Set;for(let o of e){let i=wye(t,o,a=>{if(!n.has(a))return n.add(a),o.kind===178||o.kind===179?a.getContextualDocumentationComment(o,t):a.getDocumentationComment(t)});i&&(r=r.length===0?i.slice():i.concat(lineBreakPart(),r))}}return r}function wye(e,t,r){var n;let o=((n=t.parent)==null?void 0:n.kind)===177?t.parent.parent:t.parent;if(!o)return;let i=yrt(t);return DYe(crt(o),a=>{let s=e.getTypeAtLocation(a),c=i&&s.symbol?e.getTypeOfSymbol(s.symbol):s,p=e.getPropertyOfType(c,t.symbol.name);return p?r(p):void 0})}var uit=class extends JV{constructor(e,t,r){super(e,t,r)}update(e,t){return Kot(this,e,t)}getLineAndCharacterOfPosition(e){return phe(this,e)}getLineStarts(){return Hz(this)}getPositionOfLineAndCharacter(e,t,r){return Tet(Hz(this),e,t,this.text,r)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts(),n;t+1>=r.length&&(n=this.getEnd()),n||(n=r[t+1]-1);let o=this.getFullText();return o[n]===` +`&&o[n-1]==="\r"?n-1:n}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=jYe();return this.forEachChild(o),e;function t(i){let a=n(i);a&&e.add(a,i)}function r(i){let a=e.get(i);return a||e.set(i,a=[]),a}function n(i){let a=AV(i);return a&&(Ghe(a)&&tf(a.expression)?a.expression.name.text:Ahe(a)?getNameFromPropertyName(a):void 0)}function o(i){switch(i.kind){case 263:case 219:case 175:case 174:let a=i,s=n(a);if(s){let d=r(s),f=_1(d);f&&a.parent===f.parent&&a.symbol===f.symbol?a.body&&!f.body&&(d[d.length-1]=a):d.push(a)}La(i,o);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:t(i),La(i,o);break;case 170:if(!XD(i,31))break;case 261:case 209:{let d=i;if(vtt(d.name)){La(d.name,o);break}d.initializer&&o(d.initializer)}case 307:case 173:case 172:t(i);break;case 279:let c=i;c.exportClause&&(rot(c.exportClause)?Jc(c.exportClause.elements,o):o(c.exportClause.name));break;case 273:let p=i.importClause;p&&(p.name&&t(p.name),p.namedBindings&&(p.namedBindings.kind===275?t(p.namedBindings):Jc(p.namedBindings.elements,o)));break;case 227:PV(i)!==0&&t(i);default:La(i,o)}}}},pit=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(n=>n)}getLineAndCharacterOfPosition(e){return phe(this,e)}};function dit(){return{getNodeConstructor:()=>JV,getTokenConstructor:()=>Eye,getIdentifierConstructor:()=>Tye,getPrivateIdentifierConstructor:()=>Dye,getSourceFileConstructor:()=>uit,getSymbolConstructor:()=>sit,getTypeConstructor:()=>cit,getSignatureConstructor:()=>lit,getSourceMapSourceConstructor:()=>pit}}var _it=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],Ljt=[..._it,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];$rt(dit());var Iye=new Proxy({},{get:()=>!0}),kye=Iye["4.8"];function fd(e,t=!1){if(e!=null){if(kye){if(t||VV(e)){let r=Vet(e);return r?[...r]:void 0}return}return e.modifiers?.filter(r=>!jV(r))}}function l1(e,t=!1){if(e!=null){if(kye){if(t||Not(e)){let r=zet(e);return r?[...r]:void 0}return}return e.decorators?.filter(jV)}}var fit={},Cye=new Proxy({},{get:(e,t)=>t}),mit=Cye,hit=Cye,H=mit,ma=hit,yit=Iye["5.0"],_t=Qt,git=new Set([_t.AmpersandAmpersandToken,_t.BarBarToken,_t.QuestionQuestionToken]),Sit=new Set([Qt.AmpersandAmpersandEqualsToken,Qt.AmpersandEqualsToken,Qt.AsteriskAsteriskEqualsToken,Qt.AsteriskEqualsToken,Qt.BarBarEqualsToken,Qt.BarEqualsToken,Qt.CaretEqualsToken,Qt.EqualsToken,Qt.GreaterThanGreaterThanEqualsToken,Qt.GreaterThanGreaterThanGreaterThanEqualsToken,Qt.LessThanLessThanEqualsToken,Qt.MinusEqualsToken,Qt.PercentEqualsToken,Qt.PlusEqualsToken,Qt.QuestionQuestionEqualsToken,Qt.SlashEqualsToken]),vit=new Set([_t.AmpersandAmpersandToken,_t.AmpersandToken,_t.AsteriskAsteriskToken,_t.AsteriskToken,_t.BarBarToken,_t.BarToken,_t.CaretToken,_t.EqualsEqualsEqualsToken,_t.EqualsEqualsToken,_t.ExclamationEqualsEqualsToken,_t.ExclamationEqualsToken,_t.GreaterThanEqualsToken,_t.GreaterThanGreaterThanGreaterThanToken,_t.GreaterThanGreaterThanToken,_t.GreaterThanToken,_t.InKeyword,_t.InstanceOfKeyword,_t.LessThanEqualsToken,_t.LessThanLessThanToken,_t.LessThanToken,_t.MinusToken,_t.PercentToken,_t.PlusToken,_t.SlashToken]);function bit(e){return Sit.has(e.kind)}function xit(e){return git.has(e.kind)}function Eit(e){return vit.has(e.kind)}function nh(e){return io(e)}function Tit(e){return e.kind!==_t.SemicolonClassElement}function Kr(e,t){return fd(t)?.some(r=>r.kind===e)===!0}function Dit(e){let t=fd(e);return t==null?null:t[t.length-1]??null}function Ait(e){return e.kind===_t.CommaToken}function wit(e){return e.kind===_t.SingleLineCommentTrivia||e.kind===_t.MultiLineCommentTrivia}function Iit(e){return e.kind===_t.JSDocComment}function kit(e){if(bit(e))return{type:H.AssignmentExpression,operator:nh(e.kind)};if(xit(e))return{type:H.LogicalExpression,operator:nh(e.kind)};if(Eit(e))return{type:H.BinaryExpression,operator:nh(e.kind)};throw new Error(`Unexpected binary operator ${io(e.kind)}`)}function uO(e,t){let r=t.getLineAndCharacterOfPosition(e);return{column:r.character,line:r.line+1}}function Fg(e,t){let[r,n]=e.map(o=>uO(o,t));return{end:n,start:r}}function Cit(e){if(e.kind===Qt.Block)switch(e.parent.kind){case Qt.Constructor:case Qt.GetAccessor:case Qt.SetAccessor:case Qt.ArrowFunction:case Qt.FunctionExpression:case Qt.FunctionDeclaration:case Qt.MethodDeclaration:return!0;default:return!1}return!0}function n1(e,t){return[e.getStart(t),e.getEnd()]}function Pit(e){return e.kind>=_t.FirstToken&&e.kind<=_t.LastToken}function Pye(e){return e.kind>=_t.JsxElement&&e.kind<=_t.JsxAttribute}function sV(e){return e.flags&Vc.Let?"let":(e.flags&Vc.AwaitUsing)===Vc.AwaitUsing?"await using":e.flags&Vc.Const?"const":e.flags&Vc.Using?"using":"var"}function Pg(e){let t=fd(e);if(t!=null)for(let r of t)switch(r.kind){case _t.PublicKeyword:return"public";case _t.ProtectedKeyword:return"protected";case _t.PrivateKeyword:return"private";default:break}}function ju(e,t,r){return n(t);function n(o){return ltt(o)&&o.pos===e.end?o:Bit(o.getChildren(r),i=>(i.pos<=e.pos&&i.end>e.end||i.pos===e.end)&&jit(i,r)?n(i):void 0)}}function Oit(e,t){let r=e;for(;r;){if(t(r))return r;r=r.parent}}function Nit(e){return!!Oit(e,Pye)}function Pme(e){return u1(0,e,/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,t=>{let r=t.slice(1,-1);if(r[0]==="#"){let n=r[1]==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return n>1114111?t:String.fromCodePoint(n)}return fit[r]||t})}function o1(e){return e.kind===_t.ComputedPropertyName}function Ome(e){return!!e.questionToken}function Oye(e){return e.type===H.ChainExpression}function Fit(e,t){return Oye(t)&&e.expression.kind!==Qt.ParenthesizedExpression}function Rit(e){if(e.kind===_t.NullKeyword)return ma.Null;if(e.kind>=_t.FirstKeyword&&e.kind<=_t.LastFutureReservedWord)return e.kind===_t.FalseKeyword||e.kind===_t.TrueKeyword?ma.Boolean:ma.Keyword;if(e.kind>=_t.FirstPunctuation&&e.kind<=_t.LastPunctuation)return ma.Punctuator;if(e.kind>=_t.NoSubstitutionTemplateLiteral&&e.kind<=_t.TemplateTail)return ma.Template;switch(e.kind){case _t.NumericLiteral:case _t.BigIntLiteral:return ma.Numeric;case _t.PrivateIdentifier:return ma.PrivateIdentifier;case _t.JsxText:return ma.JSXText;case _t.StringLiteral:return e.parent.kind===_t.JsxAttribute||e.parent.kind===_t.JsxElement?ma.JSXText:ma.String;case _t.RegularExpressionLiteral:return ma.RegularExpression;case _t.Identifier:case _t.ConstructorKeyword:case _t.GetKeyword:case _t.SetKeyword:default:}return e.kind===_t.Identifier&&(Pye(e.parent)||e.parent.kind===_t.PropertyAccessExpression&&Nit(e))?ma.JSXIdentifier:ma.Identifier}function Lit(e,t){let r=e.kind===_t.JsxText?e.getFullStart():e.getStart(t),n=e.getEnd(),o=t.text.slice(r,n),i=Rit(e),a=[r,n],s=Fg(a,t);return i===ma.RegularExpression?{type:i,loc:s,range:a,regex:{flags:o.slice(o.lastIndexOf("/")+1),pattern:o.slice(1,o.lastIndexOf("/"))},value:o}:i===ma.PrivateIdentifier?{type:i,loc:s,range:a,value:o.slice(1)}:{type:i,loc:s,range:a,value:o}}function $it(e){let t=[];function r(n){wit(n)||Iit(n)||(Pit(n)&&n.kind!==_t.EndOfFileToken?t.push(Lit(n,e)):n.getChildren(e).forEach(r))}return r(e),t}var Mit=class extends Error{fileName;location;constructor(e,t,r){super(e),this.fileName=t,this.location=r,Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:new.target.name})}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};function GV(e,t,r,n=r){let[o,i]=[r,n].map(a=>{let{character:s,line:c}=t.getLineAndCharacterOfPosition(a);return{column:s,line:c+1,offset:a}});return new Mit(e,t.fileName,{end:i,start:o})}function jit(e,t){return e.kind===_t.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}function Bit(e,t){if(e!==void 0)for(let r=0;r=0&&e.kind!==mt.EndOfFileToken}function Nme(e){return!Jit(e)}function Kit(e){return Kr(mt.AbstractKeyword,e)}function Git(e){if(e.parameters.length&&!mye(e)){let t=e.parameters[0];if(Hit(t))return t}return null}function Hit(e){return Nye(e.name)}function Zit(e){return ghe(e.parent,whe)}function Wit(e){switch(e.kind){case mt.ClassDeclaration:return!0;case mt.ClassExpression:return!0;case mt.PropertyDeclaration:{let{parent:t}=e;return!!(bO(t)||m1(t)&&!Kit(e))}case mt.GetAccessor:case mt.SetAccessor:case mt.MethodDeclaration:{let{parent:t}=e;return!!e.body&&(bO(t)||m1(t))}case mt.Parameter:{let{parent:t}=e,r=t.parent;return!!t&&"body"in t&&!!t.body&&(t.kind===mt.Constructor||t.kind===mt.MethodDeclaration||t.kind===mt.SetAccessor)&&Git(t)!==e&&!!r&&r.kind===mt.ClassDeclaration}}return!1}function Qit(e){return!!("illegalDecorators"in e&&e.illegalDecorators?.length)}function zi(e,t){let r=e.getSourceFile(),n=e.getStart(r),o=e.getEnd();throw GV(t,r,n,o)}function Xit(e){Qit(e)&&zi(e.illegalDecorators[0],"Decorators are not valid here.");for(let t of l1(e,!0)??[])Wit(e)||(rV(e)&&!Nme(e.body)?zi(t,"A decorator can only decorate a method implementation, not an overload."):zi(t,"Decorators are not valid here."));for(let t of fd(e,!0)??[]){if(t.kind!==mt.ReadonlyKeyword&&((e.kind===mt.PropertySignature||e.kind===mt.MethodSignature)&&zi(t,`'${io(t.kind)}' modifier cannot appear on a type member`),e.kind===mt.IndexSignature&&(t.kind!==mt.StaticKeyword||!m1(e.parent))&&zi(t,`'${io(t.kind)}' modifier cannot appear on an index signature`)),t.kind!==mt.InKeyword&&t.kind!==mt.OutKeyword&&t.kind!==mt.ConstKeyword&&e.kind===mt.TypeParameter&&zi(t,`'${io(t.kind)}' modifier cannot appear on a type parameter`),(t.kind===mt.InKeyword||t.kind===mt.OutKeyword)&&(e.kind!==mt.TypeParameter||!(qV(e.parent)||m1(e.parent)||sye(e.parent)))&&zi(t,`'${io(t.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),t.kind===mt.ReadonlyKeyword&&e.kind!==mt.PropertyDeclaration&&e.kind!==mt.PropertySignature&&e.kind!==mt.IndexSignature&&e.kind!==mt.Parameter&&zi(t,"'readonly' modifier can only appear on a property declaration or index signature."),t.kind===mt.DeclareKeyword&&m1(e.parent)&&!SO(e)&&zi(t,`'${io(t.kind)}' modifier cannot appear on class elements of this kind.`),t.kind===mt.DeclareKeyword&&DO(e)){let r=sV(e.declarationList);(r==="using"||r==="await using")&&zi(t,`'declare' modifier cannot appear on a '${r}' declaration.`)}if(t.kind===mt.AbstractKeyword&&e.kind!==mt.ClassDeclaration&&e.kind!==mt.ConstructorType&&e.kind!==mt.MethodDeclaration&&e.kind!==mt.PropertyDeclaration&&e.kind!==mt.GetAccessor&&e.kind!==mt.SetAccessor&&zi(t,`'${io(t.kind)}' modifier can only appear on a class, method, or property declaration.`),(t.kind===mt.StaticKeyword||t.kind===mt.PublicKeyword||t.kind===mt.ProtectedKeyword||t.kind===mt.PrivateKeyword)&&(e.parent.kind===mt.ModuleBlock||e.parent.kind===mt.SourceFile)&&zi(t,`'${io(t.kind)}' modifier cannot appear on a module or namespace element.`),t.kind===mt.AccessorKeyword&&e.kind!==mt.PropertyDeclaration&&zi(t,"'accessor' modifier can only appear on a property declaration."),t.kind===mt.AsyncKeyword&&e.kind!==mt.MethodDeclaration&&e.kind!==mt.FunctionDeclaration&&e.kind!==mt.FunctionExpression&&e.kind!==mt.ArrowFunction&&zi(t,"'async' modifier cannot be used here."),e.kind===mt.Parameter&&(t.kind===mt.StaticKeyword||t.kind===mt.ExportKeyword||t.kind===mt.DeclareKeyword||t.kind===mt.AsyncKeyword)&&zi(t,`'${io(t.kind)}' modifier cannot appear on a parameter.`),t.kind===mt.PublicKeyword||t.kind===mt.ProtectedKeyword||t.kind===mt.PrivateKeyword)for(let r of fd(e)??[])r!==t&&(r.kind===mt.PublicKeyword||r.kind===mt.ProtectedKeyword||r.kind===mt.PrivateKeyword)&&zi(r,"Accessibility modifier already seen.");if(e.kind===mt.Parameter&&(t.kind===mt.PublicKeyword||t.kind===mt.PrivateKeyword||t.kind===mt.ProtectedKeyword||t.kind===mt.ReadonlyKeyword||t.kind===mt.OverrideKeyword)){let r=Zit(e);r?.kind===mt.Constructor&&Nme(r.body)||zi(t,"A parameter property is only allowed in a constructor implementation.");let n=e;n.dotDotDotToken&&zi(t,"A parameter property cannot be a rest parameter."),(n.name.kind===mt.ArrayBindingPattern||n.name.kind===mt.ObjectBindingPattern)&&zi(t,"A parameter property may not be declared using a binding pattern.")}t.kind!==mt.AsyncKeyword&&e.kind===mt.MethodDeclaration&&e.parent.kind===mt.ObjectLiteralExpression&&zi(t,`'${io(t.kind)}' modifier cannot be used here.`)}}var B=Qt;function Yit(e){return GV("message"in e&&e.message||e.messageText,e.file,e.start)}function eat(e){return tf(e)&&kn(e.name)&&Fye(e.expression)}function Fye(e){return e.kind===B.Identifier||eat(e)}var tat=class{allowPattern=!1;ast;esTreeNodeToTSNodeMap=new WeakMap;options;tsNodeToESTreeNodeMap=new WeakMap;constructor(e,t){this.ast=e,this.options={...t}}#t(e,t){let r=t===Qt.ForInStatement?"for...in":"for...of";if(eot(e)){e.declarations.length!==1&&this.#e(e,`Only a single variable declaration is allowed in a '${r}' statement.`);let n=e.declarations[0];n.initializer?this.#e(n,`The variable declaration of a '${r}' statement cannot have an initializer.`):n.type&&this.#e(n,`The variable declaration of a '${r}' statement cannot have a type annotation.`),t===Qt.ForInStatement&&e.flags&Vc.Using&&this.#e(e,"The left-hand side of a 'for...in' statement cannot be a 'using' declaration.")}else!cV(e)&&e.kind!==Qt.ObjectLiteralExpression&&e.kind!==Qt.ArrayLiteralExpression&&this.#e(e,`The left-hand side of a '${r}' statement must be a variable or a property access.`)}#r(e){this.options.allowInvalidAST||Xit(e)}#e(e,t){if(this.options.allowInvalidAST)return;let r,n;throw Array.isArray(e)?[r,n]=e:typeof e=="number"?r=n=e:(r=e.getStart(this.ast),n=e.getEnd()),GV(t,this.ast,r,n)}#n(e,t,r,n=!1){let o=n;return Object.defineProperty(e,t,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>e[r]:()=>(o||((void 0)(`The '${t}' property is deprecated on ${e.type} nodes. Use '${r}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),o=!0),e[r]),set(i){Object.defineProperty(e,t,{enumerable:!0,value:i,writable:!0})}}),e}#o(e,t,r,n){let o=!1;return Object.defineProperty(e,t,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>n:()=>{if(!o){let i=`The '${t}' property is deprecated on ${e.type} nodes.`;r&&(i+=` Use ${r} instead.`),i+=" See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.",(void 0)(i,"DeprecationWarning"),o=!0}return n},set(i){Object.defineProperty(e,t,{enumerable:!0,value:i,writable:!0})}}),e}assertModuleSpecifier(e,t){!t&&e.moduleSpecifier==null&&this.#e(e,"Module specifier must be a string literal."),e.moduleSpecifier&&e.moduleSpecifier?.kind!==B.StringLiteral&&this.#e(e.moduleSpecifier,"Module specifier must be a string literal.")}convertBindingNameWithTypeAnnotation(e,t,r){let n=this.convertPattern(e);return t&&(n.typeAnnotation=this.convertTypeAnnotation(t,r),this.fixParentLocation(n,n.typeAnnotation.range)),n}convertBodyExpressions(e,t){let r=Cit(t);return e.map(n=>{let o=this.convertChild(n);if(r){if(o?.expression&&oye(n)&&g1(n.expression)){let i=o.expression.raw;return o.directive=i.slice(1,-1),o}r=!1}return o}).filter(n=>n)}convertChainExpression(e,t){let{child:r,isOptional:n}=e.type===H.MemberExpression?{child:e.object,isOptional:e.optional}:e.type===H.CallExpression?{child:e.callee,isOptional:e.optional}:{child:e.expression,isOptional:!1},o=Fit(t,r);if(!o&&!n)return e;if(o&&Oye(r)){let i=r.expression;e.type===H.MemberExpression?e.object=i:e.type===H.CallExpression?e.callee=i:e.expression=i}return this.createNode(t,{type:H.ChainExpression,expression:e})}convertChild(e,t){return this.converter(e,t,!1)}convertChildren(e,t){return e.map(r=>this.converter(r,t,!1))}convertPattern(e,t){return this.converter(e,t,!0)}convertTypeAnnotation(e,t){let r=t?.kind===B.FunctionType||t?.kind===B.ConstructorType?2:1,n=[e.getFullStart()-r,e.end],o=Fg(n,this.ast);return{type:H.TSTypeAnnotation,loc:o,range:n,typeAnnotation:this.convertChild(e)}}convertTypeArgumentsToTypeParameterInstantiation(e,t){let r=ju(e,this.ast,this.ast),n=[e.pos-1,r.end];return e.length===0&&this.#e(n,"Type argument list cannot be empty."),this.createNode(t,{type:H.TSTypeParameterInstantiation,range:n,params:this.convertChildren(e)})}convertTSTypeParametersToTypeParametersDeclaration(e){let t=ju(e,this.ast,this.ast),r=[e.pos-1,t.end];return e.length===0&&this.#e(r,"Type parameter list cannot be empty."),{type:H.TSTypeParameterDeclaration,loc:Fg(r,this.ast),range:r,params:this.convertChildren(e)}}convertParameters(e){return e?.length?e.map(t=>{let r=this.convertChild(t);return r.decorators=this.convertChildren(l1(t)??[]),r}):[]}converter(e,t,r){if(!e)return null;this.#r(e);let n=this.allowPattern;r!=null&&(this.allowPattern=r);let o=this.convertNode(e,t??e.parent);return this.registerTSNodeInNodeMap(e,o),this.allowPattern=n,o}convertImportAttributes(e){let t=e.attributes??e.assertClause;return this.convertChildren(t?.elements??[])}convertJSXIdentifier(e){let t=this.createNode(e,{type:H.JSXIdentifier,name:e.getText()});return this.registerTSNodeInNodeMap(e,t),t}convertJSXNamespaceOrIdentifier(e){if(e.kind===Qt.JsxNamespacedName){let n=this.createNode(e,{type:H.JSXNamespacedName,name:this.createNode(e.name,{type:H.JSXIdentifier,name:e.name.text}),namespace:this.createNode(e.namespace,{type:H.JSXIdentifier,name:e.namespace.text})});return this.registerTSNodeInNodeMap(e,n),n}let t=e.getText(),r=t.indexOf(":");if(r>0){let n=n1(e,this.ast),o=this.createNode(e,{type:H.JSXNamespacedName,range:n,name:this.createNode(e,{type:H.JSXIdentifier,range:[n[0]+r+1,n[1]],name:t.slice(r+1)}),namespace:this.createNode(e,{type:H.JSXIdentifier,range:[n[0],n[0]+r],name:t.slice(0,r)})});return this.registerTSNodeInNodeMap(e,o),o}return this.convertJSXIdentifier(e)}convertJSXTagName(e,t){let r;switch(e.kind){case B.PropertyAccessExpression:e.name.kind===B.PrivateIdentifier&&this.#e(e.name,"Non-private identifier expected."),r=this.createNode(e,{type:H.JSXMemberExpression,object:this.convertJSXTagName(e.expression,t),property:this.convertJSXIdentifier(e.name)});break;case B.ThisKeyword:case B.Identifier:default:return this.convertJSXNamespaceOrIdentifier(e)}return this.registerTSNodeInNodeMap(e,r),r}convertMethodSignature(e){return this.createNode(e,{type:H.TSMethodSignature,accessibility:Pg(e),computed:o1(e.name),key:this.convertChild(e.name),kind:(()=>{switch(e.kind){case B.GetAccessor:return"get";case B.SetAccessor:return"set";case B.MethodSignature:return"method"}})(),optional:Ome(e),params:this.convertParameters(e.parameters),readonly:Kr(B.ReadonlyKeyword,e),returnType:e.type&&this.convertTypeAnnotation(e.type,e),static:Kr(B.StaticKeyword,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)})}fixParentLocation(e,t){t[0]e.range[1]&&(e.range[1]=t[1],e.loc.end=uO(e.range[1],this.ast))}convertNode(e,t){switch(e.kind){case B.SourceFile:return this.createNode(e,{type:H.Program,range:[e.getStart(this.ast),e.endOfFileToken.end],body:this.convertBodyExpressions(e.statements,e),comments:void 0,sourceType:e.externalModuleIndicator?"module":"script",tokens:void 0});case B.Block:return this.createNode(e,{type:H.BlockStatement,body:this.convertBodyExpressions(e.statements,e)});case B.Identifier:return Uit(e)?this.createNode(e,{type:H.ThisExpression}):this.createNode(e,{type:H.Identifier,decorators:[],name:e.text,optional:!1,typeAnnotation:void 0});case B.PrivateIdentifier:return this.createNode(e,{type:H.PrivateIdentifier,name:e.text.slice(1)});case B.WithStatement:return this.createNode(e,{type:H.WithStatement,body:this.convertChild(e.statement),object:this.convertChild(e.expression)});case B.ReturnStatement:return this.createNode(e,{type:H.ReturnStatement,argument:this.convertChild(e.expression)});case B.LabeledStatement:return this.createNode(e,{type:H.LabeledStatement,body:this.convertChild(e.statement),label:this.convertChild(e.label)});case B.ContinueStatement:return this.createNode(e,{type:H.ContinueStatement,label:this.convertChild(e.label)});case B.BreakStatement:return this.createNode(e,{type:H.BreakStatement,label:this.convertChild(e.label)});case B.IfStatement:return this.createNode(e,{type:H.IfStatement,alternate:this.convertChild(e.elseStatement),consequent:this.convertChild(e.thenStatement),test:this.convertChild(e.expression)});case B.SwitchStatement:return e.caseBlock.clauses.filter(r=>r.kind===B.DefaultClause).length>1&&this.#e(e,"A 'default' clause cannot appear more than once in a 'switch' statement."),this.createNode(e,{type:H.SwitchStatement,cases:this.convertChildren(e.caseBlock.clauses),discriminant:this.convertChild(e.expression)});case B.CaseClause:case B.DefaultClause:return this.createNode(e,{type:H.SwitchCase,consequent:this.convertChildren(e.statements),test:e.kind===B.CaseClause?this.convertChild(e.expression):null});case B.ThrowStatement:return e.expression.end===e.expression.pos&&this.#e(e,"A throw statement must throw an expression."),this.createNode(e,{type:H.ThrowStatement,argument:this.convertChild(e.expression)});case B.TryStatement:return this.createNode(e,{type:H.TryStatement,block:this.convertChild(e.tryBlock),finalizer:this.convertChild(e.finallyBlock),handler:this.convertChild(e.catchClause)});case B.CatchClause:return e.variableDeclaration?.initializer&&this.#e(e.variableDeclaration.initializer,"Catch clause variable cannot have an initializer."),this.createNode(e,{type:H.CatchClause,body:this.convertChild(e.block),param:e.variableDeclaration?this.convertBindingNameWithTypeAnnotation(e.variableDeclaration.name,e.variableDeclaration.type):null});case B.WhileStatement:return this.createNode(e,{type:H.WhileStatement,body:this.convertChild(e.statement),test:this.convertChild(e.expression)});case B.DoStatement:return this.createNode(e,{type:H.DoWhileStatement,body:this.convertChild(e.statement),test:this.convertChild(e.expression)});case B.ForStatement:return this.createNode(e,{type:H.ForStatement,body:this.convertChild(e.statement),init:this.convertChild(e.initializer),test:this.convertChild(e.condition),update:this.convertChild(e.incrementor)});case B.ForInStatement:return this.#t(e.initializer,e.kind),this.createNode(e,{type:H.ForInStatement,body:this.convertChild(e.statement),left:this.convertPattern(e.initializer),right:this.convertChild(e.expression)});case B.ForOfStatement:return this.#t(e.initializer,e.kind),this.createNode(e,{type:H.ForOfStatement,await:!!(e.awaitModifier&&e.awaitModifier.kind===B.AwaitKeyword),body:this.convertChild(e.statement),left:this.convertPattern(e.initializer),right:this.convertChild(e.expression)});case B.FunctionDeclaration:{let r=Kr(B.DeclareKeyword,e),n=Kr(B.AsyncKeyword,e),o=!!e.asteriskToken;r?e.body?this.#e(e,"An implementation cannot be declared in ambient contexts."):n?this.#e(e,"'async' modifier cannot be used in an ambient context."):o&&this.#e(e,"Generators are not allowed in an ambient context."):!e.body&&o&&this.#e(e,"A function signature cannot be declared as a generator.");let i=this.createNode(e,{type:e.body?H.FunctionDeclaration:H.TSDeclareFunction,async:n,body:this.convertChild(e.body)||void 0,declare:r,expression:!1,generator:o,id:this.convertChild(e.name),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,i)}case B.VariableDeclaration:{let r=!!e.exclamationToken,n=this.convertChild(e.initializer),o=this.convertBindingNameWithTypeAnnotation(e.name,e.type,e);return r&&(n?this.#e(e,"Declarations with initializers cannot also have definite assignment assertions."):(o.type!==H.Identifier||!o.typeAnnotation)&&this.#e(e,"Declarations with definite assignment assertions must also have type annotations.")),this.createNode(e,{type:H.VariableDeclarator,definite:r,id:o,init:n})}case B.VariableStatement:{let r=this.createNode(e,{type:H.VariableDeclaration,declarations:this.convertChildren(e.declarationList.declarations),declare:Kr(B.DeclareKeyword,e),kind:sV(e.declarationList)});return r.declarations.length||this.#e(e,"A variable declaration list must have at least one variable declarator."),(r.kind==="using"||r.kind==="await using")&&e.declarationList.declarations.forEach((n,o)=>{r.declarations[o].init==null&&this.#e(n,`'${r.kind}' declarations must be initialized.`),r.declarations[o].id.type!==H.Identifier&&this.#e(n.name,`'${r.kind}' declarations may not have binding patterns.`)}),(r.declare||["await using","const","using"].includes(r.kind))&&e.declarationList.declarations.forEach((n,o)=>{r.declarations[o].definite&&this.#e(n,"A definite assignment assertion '!' is not permitted in this context.")}),r.declare&&e.declarationList.declarations.forEach((n,o)=>{r.declarations[o].init&&(["let","var"].includes(r.kind)||r.declarations[o].id.typeAnnotation)&&this.#e(n,"Initializers are not permitted in ambient contexts.")}),this.fixExports(e,r)}case B.VariableDeclarationList:{let r=this.createNode(e,{type:H.VariableDeclaration,declarations:this.convertChildren(e.declarations),declare:!1,kind:sV(e)});return(r.kind==="using"||r.kind==="await using")&&e.declarations.forEach((n,o)=>{r.declarations[o].init!=null&&this.#e(n,`'${r.kind}' declarations may not be initialized in for statement.`),r.declarations[o].id.type!==H.Identifier&&this.#e(n.name,`'${r.kind}' declarations may not have binding patterns.`)}),r}case B.ExpressionStatement:return this.createNode(e,{type:H.ExpressionStatement,directive:void 0,expression:this.convertChild(e.expression)});case B.ThisKeyword:return this.createNode(e,{type:H.ThisExpression});case B.ArrayLiteralExpression:return this.allowPattern?this.createNode(e,{type:H.ArrayPattern,decorators:[],elements:e.elements.map(r=>this.convertPattern(r)),optional:!1,typeAnnotation:void 0}):this.createNode(e,{type:H.ArrayExpression,elements:this.convertChildren(e.elements)});case B.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(e,{type:H.ObjectPattern,decorators:[],optional:!1,properties:e.properties.map(n=>this.convertPattern(n)),typeAnnotation:void 0});let r=[];for(let n of e.properties)(n.kind===B.GetAccessor||n.kind===B.SetAccessor||n.kind===B.MethodDeclaration)&&!n.body&&this.#e(n.end-1,"'{' expected."),r.push(this.convertChild(n));return this.createNode(e,{type:H.ObjectExpression,properties:r})}case B.PropertyAssignment:{let{exclamationToken:r,questionToken:n}=e;return n&&this.#e(n,"A property assignment cannot have a question token."),r&&this.#e(r,"A property assignment cannot have an exclamation token."),this.createNode(e,{type:H.Property,computed:o1(e.name),key:this.convertChild(e.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.converter(e.initializer,e,this.allowPattern)})}case B.ShorthandPropertyAssignment:{let{exclamationToken:r,modifiers:n,questionToken:o}=e;return n&&this.#e(n[0],"A shorthand property assignment cannot have modifiers."),o&&this.#e(o,"A shorthand property assignment cannot have a question token."),r&&this.#e(r,"A shorthand property assignment cannot have an exclamation token."),e.objectAssignmentInitializer?this.createNode(e,{type:H.Property,computed:!1,key:this.convertChild(e.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.createNode(e,{type:H.AssignmentPattern,decorators:[],left:this.convertPattern(e.name),optional:!1,right:this.convertChild(e.objectAssignmentInitializer),typeAnnotation:void 0})}):this.createNode(e,{type:H.Property,computed:!1,key:this.convertChild(e.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.convertChild(e.name)})}case B.ComputedPropertyName:return this.convertChild(e.expression);case B.PropertyDeclaration:{let r=Kr(B.AbstractKeyword,e);r&&e.initializer&&this.#e(e.initializer,"Abstract property cannot have an initializer."),e.name.kind===B.StringLiteral&&e.name.text==="constructor"&&this.#e(e.name,"Classes may not have a field named 'constructor'.");let n=Kr(B.AccessorKeyword,e),o=n?r?H.TSAbstractAccessorProperty:H.AccessorProperty:r?H.TSAbstractPropertyDefinition:H.PropertyDefinition,i=this.convertChild(e.name);return this.createNode(e,{type:o,accessibility:Pg(e),computed:o1(e.name),declare:Kr(B.DeclareKeyword,e),decorators:this.convertChildren(l1(e)??[]),definite:!!e.exclamationToken,key:i,optional:(i.type===H.Literal||e.name.kind===B.Identifier||e.name.kind===B.ComputedPropertyName||e.name.kind===B.PrivateIdentifier)&&!!e.questionToken,override:Kr(B.OverrideKeyword,e),readonly:Kr(B.ReadonlyKeyword,e),static:Kr(B.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e),value:r?null:this.convertChild(e.initializer)})}case B.GetAccessor:case B.SetAccessor:if(e.parent.kind===B.InterfaceDeclaration||e.parent.kind===B.TypeLiteral)return this.convertMethodSignature(e);case B.MethodDeclaration:{let r=Kr(B.AbstractKeyword,e);r&&e.body&&this.#e(e.name,e.kind===B.GetAccessor||e.kind===B.SetAccessor?"An abstract accessor cannot have an implementation.":`Method '${Vit(e.name,this.ast)}' cannot have an implementation because it is marked abstract.`);let n=this.createNode(e,{type:e.body?H.FunctionExpression:H.TSEmptyBodyFunctionExpression,range:[e.parameters.pos-1,e.end],async:Kr(B.AsyncKeyword,e),body:this.convertChild(e.body),declare:!1,expression:!1,generator:!!e.asteriskToken,id:null,params:[],returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});n.typeParameters&&this.fixParentLocation(n,n.typeParameters.range);let o;if(t.kind===B.ObjectLiteralExpression)n.params=this.convertChildren(e.parameters),o=this.createNode(e,{type:H.Property,computed:o1(e.name),key:this.convertChild(e.name),kind:"init",method:e.kind===B.MethodDeclaration,optional:!!e.questionToken,shorthand:!1,value:n});else{n.params=this.convertParameters(e.parameters);let i=r?H.TSAbstractMethodDefinition:H.MethodDefinition;o=this.createNode(e,{type:i,accessibility:Pg(e),computed:o1(e.name),decorators:this.convertChildren(l1(e)??[]),key:this.convertChild(e.name),kind:"method",optional:!!e.questionToken,override:Kr(B.OverrideKeyword,e),static:Kr(B.StaticKeyword,e),value:n})}return e.kind===B.GetAccessor?o.kind="get":e.kind===B.SetAccessor?o.kind="set":!o.static&&e.name.kind===B.StringLiteral&&e.name.text==="constructor"&&o.type!==H.Property&&(o.kind="constructor"),o}case B.Constructor:{let r=Dit(e),n=(r&&ju(r,e,this.ast))??e.getFirstToken(),o=this.createNode(e,{type:e.body?H.FunctionExpression:H.TSEmptyBodyFunctionExpression,range:[e.parameters.pos-1,e.end],async:!1,body:this.convertChild(e.body),declare:!1,expression:!1,generator:!1,id:null,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});o.typeParameters&&this.fixParentLocation(o,o.typeParameters.range);let i=n.kind===B.StringLiteral?this.createNode(n,{type:H.Literal,raw:n.getText(),value:"constructor"}):this.createNode(e,{type:H.Identifier,range:[n.getStart(this.ast),n.end],decorators:[],name:"constructor",optional:!1,typeAnnotation:void 0}),a=Kr(B.StaticKeyword,e);return this.createNode(e,{type:Kr(B.AbstractKeyword,e)?H.TSAbstractMethodDefinition:H.MethodDefinition,accessibility:Pg(e),computed:!1,decorators:[],key:i,kind:a?"method":"constructor",optional:!1,override:!1,static:a,value:o})}case B.FunctionExpression:return this.createNode(e,{type:H.FunctionExpression,async:Kr(B.AsyncKeyword,e),body:this.convertChild(e.body),declare:!1,expression:!1,generator:!!e.asteriskToken,id:this.convertChild(e.name),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case B.SuperKeyword:return this.createNode(e,{type:H.Super});case B.ArrayBindingPattern:return this.createNode(e,{type:H.ArrayPattern,decorators:[],elements:e.elements.map(r=>this.convertPattern(r)),optional:!1,typeAnnotation:void 0});case B.OmittedExpression:return null;case B.ObjectBindingPattern:return this.createNode(e,{type:H.ObjectPattern,decorators:[],optional:!1,properties:e.elements.map(r=>this.convertPattern(r)),typeAnnotation:void 0});case B.BindingElement:{if(t.kind===B.ArrayBindingPattern){let n=this.convertChild(e.name,t);return e.initializer?this.createNode(e,{type:H.AssignmentPattern,decorators:[],left:n,optional:!1,right:this.convertChild(e.initializer),typeAnnotation:void 0}):e.dotDotDotToken?this.createNode(e,{type:H.RestElement,argument:n,decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):n}let r;return e.dotDotDotToken?r=this.createNode(e,{type:H.RestElement,argument:this.convertChild(e.propertyName??e.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):r=this.createNode(e,{type:H.Property,computed:!!(e.propertyName&&e.propertyName.kind===B.ComputedPropertyName),key:this.convertChild(e.propertyName??e.name),kind:"init",method:!1,optional:!1,shorthand:!e.propertyName,value:this.convertChild(e.name)}),e.initializer&&(r.value=this.createNode(e,{type:H.AssignmentPattern,range:[e.name.getStart(this.ast),e.initializer.end],decorators:[],left:this.convertChild(e.name),optional:!1,right:this.convertChild(e.initializer),typeAnnotation:void 0})),r}case B.ArrowFunction:return this.createNode(e,{type:H.ArrowFunctionExpression,async:Kr(B.AsyncKeyword,e),body:this.convertChild(e.body),expression:e.body.kind!==B.Block,generator:!1,id:null,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case B.YieldExpression:return this.createNode(e,{type:H.YieldExpression,argument:this.convertChild(e.expression),delegate:!!e.asteriskToken});case B.AwaitExpression:return this.createNode(e,{type:H.AwaitExpression,argument:this.convertChild(e.expression)});case B.NoSubstitutionTemplateLiteral:return this.createNode(e,{type:H.TemplateLiteral,expressions:[],quasis:[this.createNode(e,{type:H.TemplateElement,tail:!0,value:{cooked:e.text,raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-1)}})]});case B.TemplateExpression:{let r=this.createNode(e,{type:H.TemplateLiteral,expressions:[],quasis:[this.convertChild(e.head)]});return e.templateSpans.forEach(n=>{r.expressions.push(this.convertChild(n.expression)),r.quasis.push(this.convertChild(n.literal))}),r}case B.TaggedTemplateExpression:return e.tag.flags&Vc.OptionalChain&&this.#e(e,"Tagged template expressions are not permitted in an optional chain."),this.createNode(e,{type:H.TaggedTemplateExpression,quasi:this.convertChild(e.template),tag:this.convertChild(e.tag),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case B.TemplateHead:case B.TemplateMiddle:case B.TemplateTail:{let r=e.kind===B.TemplateTail;return this.createNode(e,{type:H.TemplateElement,tail:r,value:{cooked:e.text,raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-(r?1:2))}})}case B.SpreadAssignment:case B.SpreadElement:return this.allowPattern?this.createNode(e,{type:H.RestElement,argument:this.convertPattern(e.expression),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):this.createNode(e,{type:H.SpreadElement,argument:this.convertChild(e.expression)});case B.Parameter:{let r,n;return e.dotDotDotToken?r=n=this.createNode(e,{type:H.RestElement,argument:this.convertChild(e.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):e.initializer?(r=this.convertChild(e.name),n=this.createNode(e,{type:H.AssignmentPattern,range:[e.name.getStart(this.ast),e.initializer.end],decorators:[],left:r,optional:!1,right:this.convertChild(e.initializer),typeAnnotation:void 0}),fd(e)&&(n.range[0]=r.range[0],n.loc=Fg(n.range,this.ast))):r=n=this.convertChild(e.name,t),e.type&&(r.typeAnnotation=this.convertTypeAnnotation(e.type,e),this.fixParentLocation(r,r.typeAnnotation.range)),e.questionToken&&(e.questionToken.end>r.range[1]&&(r.range[1]=e.questionToken.end,r.loc.end=uO(r.range[1],this.ast)),r.optional=!0),fd(e)?this.createNode(e,{type:H.TSParameterProperty,accessibility:Pg(e),decorators:[],override:Kr(B.OverrideKeyword,e),parameter:n,readonly:Kr(B.ReadonlyKeyword,e),static:Kr(B.StaticKeyword,e)}):n}case B.ClassDeclaration:!e.name&&(!Kr(Qt.ExportKeyword,e)||!Kr(Qt.DefaultKeyword,e))&&this.#e(e,"A class declaration without the 'default' modifier must have a name.");case B.ClassExpression:{let r=e.heritageClauses??[],n=e.kind===B.ClassDeclaration?H.ClassDeclaration:H.ClassExpression,o,i;for(let s of r){let{token:c,types:p}=s;p.length===0&&this.#e(s,`'${io(c)}' list cannot be empty.`),c===B.ExtendsKeyword?(o&&this.#e(s,"'extends' clause already seen."),i&&this.#e(s,"'extends' clause must precede 'implements' clause."),p.length>1&&this.#e(p[1],"Classes can only extend a single class."),o??(o=s)):c===B.ImplementsKeyword&&(i&&this.#e(s,"'implements' clause already seen."),i??(i=s))}let a=this.createNode(e,{type:n,abstract:Kr(B.AbstractKeyword,e),body:this.createNode(e,{type:H.ClassBody,range:[e.members.pos-1,e.end],body:this.convertChildren(e.members.filter(Tit))}),declare:Kr(B.DeclareKeyword,e),decorators:this.convertChildren(l1(e)??[]),id:this.convertChild(e.name),implements:this.convertChildren(i?.types??[]),superClass:o?.types[0]?this.convertChild(o.types[0].expression):null,superTypeArguments:void 0,typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return o?.types[0]?.typeArguments&&(a.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(o.types[0].typeArguments,o.types[0])),this.fixExports(e,a)}case B.ModuleBlock:return this.createNode(e,{type:H.TSModuleBlock,body:this.convertBodyExpressions(e.statements,e)});case B.ImportDeclaration:{this.assertModuleSpecifier(e,!1);let r=this.createNode(e,this.#n({type:H.ImportDeclaration,attributes:this.convertImportAttributes(e),importKind:"value",source:this.convertChild(e.moduleSpecifier),specifiers:[]},"assertions","attributes",!0));if(e.importClause&&(e.importClause.isTypeOnly&&(r.importKind="type"),e.importClause.name&&r.specifiers.push(this.convertChild(e.importClause)),e.importClause.namedBindings))switch(e.importClause.namedBindings.kind){case B.NamespaceImport:r.specifiers.push(this.convertChild(e.importClause.namedBindings));break;case B.NamedImports:r.specifiers.push(...this.convertChildren(e.importClause.namedBindings.elements));break}return r}case B.NamespaceImport:return this.createNode(e,{type:H.ImportNamespaceSpecifier,local:this.convertChild(e.name)});case B.ImportSpecifier:return this.createNode(e,{type:H.ImportSpecifier,imported:this.convertChild(e.propertyName??e.name),importKind:e.isTypeOnly?"type":"value",local:this.convertChild(e.name)});case B.ImportClause:{let r=this.convertChild(e.name);return this.createNode(e,{type:H.ImportDefaultSpecifier,range:r.range,local:r})}case B.ExportDeclaration:return e.exportClause?.kind===B.NamedExports?(this.assertModuleSpecifier(e,!0),this.createNode(e,this.#n({type:H.ExportNamedDeclaration,attributes:this.convertImportAttributes(e),declaration:null,exportKind:e.isTypeOnly?"type":"value",source:this.convertChild(e.moduleSpecifier),specifiers:this.convertChildren(e.exportClause.elements,e)},"assertions","attributes",!0))):(this.assertModuleSpecifier(e,!1),this.createNode(e,this.#n({type:H.ExportAllDeclaration,attributes:this.convertImportAttributes(e),exported:e.exportClause?.kind===B.NamespaceExport?this.convertChild(e.exportClause.name):null,exportKind:e.isTypeOnly?"type":"value",source:this.convertChild(e.moduleSpecifier)},"assertions","attributes",!0)));case B.ExportSpecifier:{let r=e.propertyName??e.name;return r.kind===B.StringLiteral&&t.kind===B.ExportDeclaration&&t.moduleSpecifier?.kind!==B.StringLiteral&&this.#e(r,"A string literal cannot be used as a local exported binding without `from`."),this.createNode(e,{type:H.ExportSpecifier,exported:this.convertChild(e.name),exportKind:e.isTypeOnly?"type":"value",local:this.convertChild(r)})}case B.ExportAssignment:return e.isExportEquals?this.createNode(e,{type:H.TSExportAssignment,expression:this.convertChild(e.expression)}):this.createNode(e,{type:H.ExportDefaultDeclaration,declaration:this.convertChild(e.expression),exportKind:"value"});case B.PrefixUnaryExpression:case B.PostfixUnaryExpression:{let r=nh(e.operator);return r==="++"||r==="--"?(cV(e.operand)||this.#e(e.operand,"Invalid left-hand side expression in unary operation"),this.createNode(e,{type:H.UpdateExpression,argument:this.convertChild(e.operand),operator:r,prefix:e.kind===B.PrefixUnaryExpression})):this.createNode(e,{type:H.UnaryExpression,argument:this.convertChild(e.operand),operator:r,prefix:e.kind===B.PrefixUnaryExpression})}case B.DeleteExpression:return this.createNode(e,{type:H.UnaryExpression,argument:this.convertChild(e.expression),operator:"delete",prefix:!0});case B.VoidExpression:return this.createNode(e,{type:H.UnaryExpression,argument:this.convertChild(e.expression),operator:"void",prefix:!0});case B.TypeOfExpression:return this.createNode(e,{type:H.UnaryExpression,argument:this.convertChild(e.expression),operator:"typeof",prefix:!0});case B.TypeOperator:return this.createNode(e,{type:H.TSTypeOperator,operator:nh(e.operator),typeAnnotation:this.convertChild(e.type)});case B.BinaryExpression:{if(e.operatorToken.kind!==B.InKeyword&&e.left.kind===B.PrivateIdentifier?this.#e(e.left,"Private identifiers cannot appear on the right-hand-side of an 'in' expression."):e.right.kind===B.PrivateIdentifier&&this.#e(e.right,"Private identifiers are only allowed on the left-hand-side of an 'in' expression."),Ait(e.operatorToken)){let n=this.createNode(e,{type:H.SequenceExpression,expressions:[]}),o=this.convertChild(e.left);return o.type===H.SequenceExpression&&e.left.kind!==B.ParenthesizedExpression?n.expressions.push(...o.expressions):n.expressions.push(o),n.expressions.push(this.convertChild(e.right)),n}let r=kit(e.operatorToken);return this.allowPattern&&r.type===H.AssignmentExpression?this.createNode(e,{type:H.AssignmentPattern,decorators:[],left:this.convertPattern(e.left,e),optional:!1,right:this.convertChild(e.right),typeAnnotation:void 0}):this.createNode(e,{...r,left:this.converter(e.left,e,r.type===H.AssignmentExpression),right:this.convertChild(e.right)})}case B.PropertyAccessExpression:{let r=this.convertChild(e.expression),n=this.convertChild(e.name),o=this.createNode(e,{type:H.MemberExpression,computed:!1,object:r,optional:e.questionDotToken!=null,property:n});return this.convertChainExpression(o,e)}case B.ElementAccessExpression:{let r=this.convertChild(e.expression),n=this.convertChild(e.argumentExpression),o=this.createNode(e,{type:H.MemberExpression,computed:!0,object:r,optional:e.questionDotToken!=null,property:n});return this.convertChainExpression(o,e)}case B.CallExpression:{if(e.expression.kind===B.ImportKeyword)return e.arguments.length!==1&&e.arguments.length!==2&&this.#e(e.arguments[2]??e,"Dynamic import requires exactly one or two arguments."),this.createNode(e,this.#n({type:H.ImportExpression,options:e.arguments[1]?this.convertChild(e.arguments[1]):null,source:this.convertChild(e.arguments[0])},"attributes","options",!0));let r=this.convertChild(e.expression),n=this.convertChildren(e.arguments),o=e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e),i=this.createNode(e,{type:H.CallExpression,arguments:n,callee:r,optional:e.questionDotToken!=null,typeArguments:o});return this.convertChainExpression(i,e)}case B.NewExpression:{let r=e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e);return this.createNode(e,{type:H.NewExpression,arguments:this.convertChildren(e.arguments??[]),callee:this.convertChild(e.expression),typeArguments:r})}case B.ConditionalExpression:return this.createNode(e,{type:H.ConditionalExpression,alternate:this.convertChild(e.whenFalse),consequent:this.convertChild(e.whenTrue),test:this.convertChild(e.condition)});case B.MetaProperty:return this.createNode(e,{type:H.MetaProperty,meta:this.createNode(e.getFirstToken(),{type:H.Identifier,decorators:[],name:nh(e.keywordToken),optional:!1,typeAnnotation:void 0}),property:this.convertChild(e.name)});case B.Decorator:return this.createNode(e,{type:H.Decorator,expression:this.convertChild(e.expression)});case B.StringLiteral:return this.createNode(e,{type:H.Literal,raw:e.getText(),value:t.kind===B.JsxAttribute?Pme(e.text):e.text});case B.NumericLiteral:return this.createNode(e,{type:H.Literal,raw:e.getText(),value:Number(e.text)});case B.BigIntLiteral:{let r=n1(e,this.ast),n=this.ast.text.slice(r[0],r[1]),o=u1(0,n.slice(0,-1),"_",""),i=typeof BigInt<"u"?BigInt(o):null;return this.createNode(e,{type:H.Literal,range:r,bigint:i==null?o:String(i),raw:n,value:i})}case B.RegularExpressionLiteral:{let r=e.text.slice(1,e.text.lastIndexOf("/")),n=e.text.slice(e.text.lastIndexOf("/")+1),o=null;try{o=new RegExp(r,n)}catch{}return this.createNode(e,{type:H.Literal,raw:e.text,regex:{flags:n,pattern:r},value:o})}case B.TrueKeyword:return this.createNode(e,{type:H.Literal,raw:"true",value:!0});case B.FalseKeyword:return this.createNode(e,{type:H.Literal,raw:"false",value:!1});case B.NullKeyword:return this.createNode(e,{type:H.Literal,raw:"null",value:null});case B.EmptyStatement:return this.createNode(e,{type:H.EmptyStatement});case B.DebuggerStatement:return this.createNode(e,{type:H.DebuggerStatement});case B.JsxElement:return this.createNode(e,{type:H.JSXElement,children:this.convertChildren(e.children),closingElement:this.convertChild(e.closingElement),openingElement:this.convertChild(e.openingElement)});case B.JsxFragment:return this.createNode(e,{type:H.JSXFragment,children:this.convertChildren(e.children),closingFragment:this.convertChild(e.closingFragment),openingFragment:this.convertChild(e.openingFragment)});case B.JsxSelfClosingElement:return this.createNode(e,{type:H.JSXElement,children:[],closingElement:null,openingElement:this.createNode(e,{type:H.JSXOpeningElement,range:n1(e,this.ast),attributes:this.convertChildren(e.attributes.properties),name:this.convertJSXTagName(e.tagName,e),selfClosing:!0,typeArguments:e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):void 0})});case B.JsxOpeningElement:return this.createNode(e,{type:H.JSXOpeningElement,attributes:this.convertChildren(e.attributes.properties),name:this.convertJSXTagName(e.tagName,e),selfClosing:!1,typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case B.JsxClosingElement:return this.createNode(e,{type:H.JSXClosingElement,name:this.convertJSXTagName(e.tagName,e)});case B.JsxOpeningFragment:return this.createNode(e,{type:H.JSXOpeningFragment});case B.JsxClosingFragment:return this.createNode(e,{type:H.JSXClosingFragment});case B.JsxExpression:{let r=e.expression?this.convertChild(e.expression):this.createNode(e,{type:H.JSXEmptyExpression,range:[e.getStart(this.ast)+1,e.getEnd()-1]});return e.dotDotDotToken?this.createNode(e,{type:H.JSXSpreadChild,expression:r}):this.createNode(e,{type:H.JSXExpressionContainer,expression:r})}case B.JsxAttribute:return this.createNode(e,{type:H.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(e.name),value:this.convertChild(e.initializer)});case B.JsxText:{let r=e.getFullStart(),n=e.getEnd(),o=this.ast.text.slice(r,n);return this.createNode(e,{type:H.JSXText,range:[r,n],raw:o,value:Pme(o)})}case B.JsxSpreadAttribute:return this.createNode(e,{type:H.JSXSpreadAttribute,argument:this.convertChild(e.expression)});case B.QualifiedName:return this.createNode(e,{type:H.TSQualifiedName,left:this.convertChild(e.left),right:this.convertChild(e.right)});case B.TypeReference:return this.createNode(e,{type:H.TSTypeReference,typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e),typeName:this.convertChild(e.typeName)});case B.TypeParameter:return this.createNode(e,{type:H.TSTypeParameter,const:Kr(B.ConstKeyword,e),constraint:e.constraint&&this.convertChild(e.constraint),default:e.default?this.convertChild(e.default):void 0,in:Kr(B.InKeyword,e),name:this.convertChild(e.name),out:Kr(B.OutKeyword,e)});case B.ThisType:return this.createNode(e,{type:H.TSThisType});case B.AnyKeyword:case B.BigIntKeyword:case B.BooleanKeyword:case B.NeverKeyword:case B.NumberKeyword:case B.ObjectKeyword:case B.StringKeyword:case B.SymbolKeyword:case B.UnknownKeyword:case B.VoidKeyword:case B.UndefinedKeyword:case B.IntrinsicKeyword:return this.createNode(e,{type:H[`TS${B[e.kind]}`]});case B.NonNullExpression:{let r=this.createNode(e,{type:H.TSNonNullExpression,expression:this.convertChild(e.expression)});return this.convertChainExpression(r,e)}case B.TypeLiteral:return this.createNode(e,{type:H.TSTypeLiteral,members:this.convertChildren(e.members)});case B.ArrayType:return this.createNode(e,{type:H.TSArrayType,elementType:this.convertChild(e.elementType)});case B.IndexedAccessType:return this.createNode(e,{type:H.TSIndexedAccessType,indexType:this.convertChild(e.indexType),objectType:this.convertChild(e.objectType)});case B.ConditionalType:return this.createNode(e,{type:H.TSConditionalType,checkType:this.convertChild(e.checkType),extendsType:this.convertChild(e.extendsType),falseType:this.convertChild(e.falseType),trueType:this.convertChild(e.trueType)});case B.TypeQuery:return this.createNode(e,{type:H.TSTypeQuery,exprName:this.convertChild(e.exprName),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case B.MappedType:return e.members&&e.members.length>0&&this.#e(e.members[0],"A mapped type may not declare properties or methods."),this.createNode(e,this.#o({type:H.TSMappedType,constraint:this.convertChild(e.typeParameter.constraint),key:this.convertChild(e.typeParameter.name),nameType:this.convertChild(e.nameType)??null,optional:e.questionToken?e.questionToken.kind===B.QuestionToken||nh(e.questionToken.kind):!1,readonly:e.readonlyToken?e.readonlyToken.kind===B.ReadonlyKeyword||nh(e.readonlyToken.kind):void 0,typeAnnotation:e.type&&this.convertChild(e.type)},"typeParameter","'constraint' and 'key'",this.convertChild(e.typeParameter)));case B.ParenthesizedExpression:return this.convertChild(e.expression,t);case B.TypeAliasDeclaration:{let r=this.createNode(e,{type:H.TSTypeAliasDeclaration,declare:Kr(B.DeclareKeyword,e),id:this.convertChild(e.name),typeAnnotation:this.convertChild(e.type),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,r)}case B.MethodSignature:return this.convertMethodSignature(e);case B.PropertySignature:{let{initializer:r}=e;return r&&this.#e(r,"A property signature cannot have an initializer."),this.createNode(e,{type:H.TSPropertySignature,accessibility:Pg(e),computed:o1(e.name),key:this.convertChild(e.name),optional:Ome(e),readonly:Kr(B.ReadonlyKeyword,e),static:Kr(B.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e)})}case B.IndexSignature:return this.createNode(e,{type:H.TSIndexSignature,accessibility:Pg(e),parameters:this.convertChildren(e.parameters),readonly:Kr(B.ReadonlyKeyword,e),static:Kr(B.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e)});case B.ConstructorType:return this.createNode(e,{type:H.TSConstructorType,abstract:Kr(B.AbstractKeyword,e),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case B.FunctionType:{let{modifiers:r}=e;r&&this.#e(r[0],"A function type cannot have modifiers.")}case B.ConstructSignature:case B.CallSignature:{let r=e.kind===B.ConstructSignature?H.TSConstructSignatureDeclaration:e.kind===B.CallSignature?H.TSCallSignatureDeclaration:H.TSFunctionType;return this.createNode(e,{type:r,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)})}case B.ExpressionWithTypeArguments:{let r=t.kind,n=r===B.InterfaceDeclaration?H.TSInterfaceHeritage:r===B.HeritageClause?H.TSClassImplements:H.TSInstantiationExpression;return this.createNode(e,{type:n,expression:this.convertChild(e.expression),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)})}case B.InterfaceDeclaration:{let r=e.heritageClauses??[],n=[],o=!1;for(let a of r){a.token!==B.ExtendsKeyword&&this.#e(a,a.token===B.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token."),o&&this.#e(a,"'extends' clause already seen."),o=!0;for(let s of a.types)(!Fye(s.expression)||stt(s.expression))&&this.#e(s,"Interface declaration can only extend an identifier/qualified name with optional type arguments."),n.push(this.convertChild(s,e))}let i=this.createNode(e,{type:H.TSInterfaceDeclaration,body:this.createNode(e,{type:H.TSInterfaceBody,range:[e.members.pos-1,e.end],body:this.convertChildren(e.members)}),declare:Kr(B.DeclareKeyword,e),extends:n,id:this.convertChild(e.name),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,i)}case B.TypePredicate:{let r=this.createNode(e,{type:H.TSTypePredicate,asserts:e.assertsModifier!=null,parameterName:this.convertChild(e.parameterName),typeAnnotation:null});return e.type&&(r.typeAnnotation=this.convertTypeAnnotation(e.type,e),r.typeAnnotation.loc=r.typeAnnotation.typeAnnotation.loc,r.typeAnnotation.range=r.typeAnnotation.typeAnnotation.range),r}case B.ImportType:{let r=n1(e,this.ast);if(e.isTypeOf){let s=ju(e.getFirstToken(),e,this.ast);r[0]=s.getStart(this.ast)}let n=null;if(e.attributes){let s=this.createNode(e.attributes,{type:H.ObjectExpression,properties:e.attributes.elements.map(S=>this.createNode(S,{type:H.Property,computed:!1,key:this.convertChild(S.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.convertChild(S.value)}))}),c=ju(e.argument,e,this.ast),p=ju(c,e,this.ast),d=ju(e.attributes,e,this.ast),f=d.kind===Qt.CommaToken?ju(d,e,this.ast):d,m=ju(p,e,this.ast),y=n1(m,this.ast),g=m.kind===Qt.AssertKeyword?"assert":"with";n=this.createNode(e,{type:H.ObjectExpression,range:[p.getStart(this.ast),f.end],properties:[this.createNode(e,{type:H.Property,range:[y[0],e.attributes.end],computed:!1,key:this.createNode(e,{type:H.Identifier,range:y,decorators:[],name:g,optional:!1,typeAnnotation:void 0}),kind:"init",method:!1,optional:!1,shorthand:!1,value:s})]})}let o=this.convertChild(e.argument),i=o.literal,a=this.createNode(e,this.#o({type:H.TSImportType,range:r,options:n,qualifier:this.convertChild(e.qualifier),source:i,typeArguments:e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):null},"argument","source",o));return e.isTypeOf?this.createNode(e,{type:H.TSTypeQuery,exprName:a,typeArguments:void 0}):a}case B.EnumDeclaration:{let r=this.convertChildren(e.members),n=this.createNode(e,this.#o({type:H.TSEnumDeclaration,body:this.createNode(e,{type:H.TSEnumBody,range:[e.members.pos-1,e.end],members:r}),const:Kr(B.ConstKeyword,e),declare:Kr(B.DeclareKeyword,e),id:this.convertChild(e.name)},"members","'body.members'",this.convertChildren(e.members)));return this.fixExports(e,n)}case B.EnumMember:{let r=e.name.kind===Qt.ComputedPropertyName;return r&&this.#e(e.name,"Computed property names are not allowed in enums."),(e.name.kind===B.NumericLiteral||e.name.kind===B.BigIntLiteral)&&this.#e(e.name,"An enum member cannot have a numeric name."),this.createNode(e,this.#o({type:H.TSEnumMember,id:this.convertChild(e.name),initializer:e.initializer&&this.convertChild(e.initializer)},"computed",void 0,r))}case B.ModuleDeclaration:{let r=Kr(B.DeclareKeyword,e),n=this.createNode(e,{type:H.TSModuleDeclaration,...(()=>{if(e.flags&Vc.GlobalAugmentation){let i=this.convertChild(e.name),a=this.convertChild(e.body);return(a==null||a.type===H.TSModuleDeclaration)&&this.#e(e.body??e,"Expected a valid module body"),i.type!==H.Identifier&&this.#e(e.name,"global module augmentation must have an Identifier id"),{body:a,declare:!1,global:!1,id:i,kind:"global"}}if(g1(e.name)){let i=this.convertChild(e.body);return{kind:"module",...i!=null?{body:i}:{},declare:!1,global:!1,id:this.convertChild(e.name)}}e.body==null&&this.#e(e,"Expected a module body"),e.name.kind!==Qt.Identifier&&this.#e(e.name,"`namespace`s must have an Identifier id");let o=this.createNode(e.name,{type:H.Identifier,range:[e.name.getStart(this.ast),e.name.getEnd()],decorators:[],name:e.name.text,optional:!1,typeAnnotation:void 0});for(;e.body&&WD(e.body)&&e.body.name;){e=e.body,r||(r=Kr(B.DeclareKeyword,e));let i=e.name,a=this.createNode(i,{type:H.Identifier,range:[i.getStart(this.ast),i.getEnd()],decorators:[],name:i.text,optional:!1,typeAnnotation:void 0});o=this.createNode(i,{type:H.TSQualifiedName,range:[o.range[0],a.range[1]],left:o,right:a})}return{body:this.convertChild(e.body),declare:!1,global:!1,id:o,kind:e.flags&Vc.Namespace?"namespace":"module"}})()});return n.declare=r,e.flags&Vc.GlobalAugmentation&&(n.global=!0),this.fixExports(e,n)}case B.ParenthesizedType:return this.convertChild(e.type);case B.UnionType:return this.createNode(e,{type:H.TSUnionType,types:this.convertChildren(e.types)});case B.IntersectionType:return this.createNode(e,{type:H.TSIntersectionType,types:this.convertChildren(e.types)});case B.AsExpression:return this.createNode(e,{type:H.TSAsExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});case B.InferType:return this.createNode(e,{type:H.TSInferType,typeParameter:this.convertChild(e.typeParameter)});case B.LiteralType:return e.literal.kind===B.NullKeyword?this.createNode(e.literal,{type:H.TSNullKeyword}):this.createNode(e,{type:H.TSLiteralType,literal:this.convertChild(e.literal)});case B.TypeAssertionExpression:return this.createNode(e,{type:H.TSTypeAssertion,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});case B.ImportEqualsDeclaration:return this.fixExports(e,this.createNode(e,{type:H.TSImportEqualsDeclaration,id:this.convertChild(e.name),importKind:e.isTypeOnly?"type":"value",moduleReference:this.convertChild(e.moduleReference)}));case B.ExternalModuleReference:return e.expression.kind!==B.StringLiteral&&this.#e(e.expression,"String literal expected."),this.createNode(e,{type:H.TSExternalModuleReference,expression:this.convertChild(e.expression)});case B.NamespaceExportDeclaration:return this.createNode(e,{type:H.TSNamespaceExportDeclaration,id:this.convertChild(e.name)});case B.AbstractKeyword:return this.createNode(e,{type:H.TSAbstractKeyword});case B.TupleType:{let r=this.convertChildren(e.elements);return this.createNode(e,{type:H.TSTupleType,elementTypes:r})}case B.NamedTupleMember:{let r=this.createNode(e,{type:H.TSNamedTupleMember,elementType:this.convertChild(e.type,e),label:this.convertChild(e.name,e),optional:e.questionToken!=null});return e.dotDotDotToken?(r.range[0]=r.label.range[0],r.loc.start=r.label.loc.start,this.createNode(e,{type:H.TSRestType,typeAnnotation:r})):r}case B.OptionalType:return this.createNode(e,{type:H.TSOptionalType,typeAnnotation:this.convertChild(e.type)});case B.RestType:return this.createNode(e,{type:H.TSRestType,typeAnnotation:this.convertChild(e.type)});case B.TemplateLiteralType:{let r=this.createNode(e,{type:H.TSTemplateLiteralType,quasis:[this.convertChild(e.head)],types:[]});return e.templateSpans.forEach(n=>{r.types.push(this.convertChild(n.type)),r.quasis.push(this.convertChild(n.literal))}),r}case B.ClassStaticBlockDeclaration:return this.createNode(e,{type:H.StaticBlock,body:this.convertBodyExpressions(e.body.statements,e)});case B.AssertEntry:case B.ImportAttribute:return this.createNode(e,{type:H.ImportAttribute,key:this.convertChild(e.name),value:this.convertChild(e.value)});case B.SatisfiesExpression:return this.createNode(e,{type:H.TSSatisfiesExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});default:return this.deeplyCopy(e)}}createNode(e,t){let r=t;return r.range??(r.range=n1(e,this.ast)),r.loc??(r.loc=Fg(r.range,this.ast)),r&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(r,e),r}convertProgram(){return this.converter(this.ast)}deeplyCopy(e){e.kind===Qt.JSDocFunctionType&&this.#e(e,"JSDoc types can only be used inside documentation comments.");let t=`TS${B[e.kind]}`;if(this.options.errorOnUnknownASTType&&!H[t])throw new Error(`Unknown AST_NODE_TYPE: "${t}"`);let r=this.createNode(e,{type:t});"type"in e&&(r.typeAnnotation=e.type&&"kind"in e.type&&Stt(e.type)?this.convertTypeAnnotation(e.type,e):null),"typeArguments"in e&&(r.typeArguments=e.typeArguments&&"pos"in e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):null),"typeParameters"in e&&(r.typeParameters=e.typeParameters&&"pos"in e.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters):null);let n=l1(e);n?.length&&(r.decorators=this.convertChildren(n));let o=new Set(["_children","decorators","end","flags","heritageClauses","illegalDecorators","jsDoc","kind","locals","localSymbol","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(e).filter(([i])=>!o.has(i)).forEach(([i,a])=>{Array.isArray(a)?r[i]=this.convertChildren(a):a&&typeof a=="object"&&a.kind?r[i]=this.convertChild(a):r[i]=a}),r}fixExports(e,t){let r=WD(e)&&!g1(e.name)?zit(e):fd(e);if(r?.[0].kind===B.ExportKeyword){this.registerTSNodeInNodeMap(e,t);let n=r[0],o=r[1],i=o?.kind===B.DefaultKeyword,a=i?ju(o,this.ast,this.ast):ju(n,this.ast,this.ast);if(t.range[0]=a.getStart(this.ast),t.loc=Fg(t.range,this.ast),i)return this.createNode(e,{type:H.ExportDefaultDeclaration,range:[n.getStart(this.ast),t.range[1]],declaration:t,exportKind:"value"});let s=t.type===H.TSInterfaceDeclaration||t.type===H.TSTypeAliasDeclaration,c="declare"in t&&t.declare;return this.createNode(e,this.#n({type:H.ExportNamedDeclaration,range:[n.getStart(this.ast),t.range[1]],attributes:[],declaration:t,exportKind:s||c?"type":"value",source:null,specifiers:[]},"assertions","attributes",!0))}return t}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}registerTSNodeInNodeMap(e,t){t&&this.options.shouldPreserveNodeMaps&&!this.tsNodeToESTreeNodeMap.has(e)&&this.tsNodeToESTreeNodeMap.set(e,t)}};function rat(e,t,r=e.getSourceFile()){let n=[];for(;;){if(The(e.kind))t(e);else{let o=e.getChildren(r);if(o.length===1){e=o[0];continue}for(let i=o.length-1;i>=0;--i)n.push(o[i])}if(n.length===0)break;e=n.pop()}}function nat(e,t,r=e.getSourceFile()){let n=r.text,o=r.languageVariant!==Qme.JSX;return rat(e,a=>{if(a.pos!==a.end&&(a.kind!==Qt.JsxText&&wet(n,a.pos===0?(hhe(n)??"").length:a.pos,i),o||oat(a)))return Iet(n,a.end,i)},r);function i(a,s,c){t(n,{end:s,kind:c,pos:a})}}function oat(e){switch(e.kind){case Qt.CloseBraceToken:return e.parent.kind!==Qt.JsxExpression||!Bz(e.parent.parent);case Qt.GreaterThanToken:switch(e.parent.kind){case Qt.JsxClosingElement:case Qt.JsxClosingFragment:return!Bz(e.parent.parent.parent);case Qt.JsxOpeningElement:return e.end!==e.parent.end;case Qt.JsxOpeningFragment:return!1;case Qt.JsxSelfClosingElement:return e.end!==e.parent.end||!Bz(e.parent.parent)}}return!0}function Bz(e){return e.kind===Qt.JsxElement||e.kind===Qt.JsxFragment}var[$jt,Mjt]=EYe.split(".").map(e=>Number.parseInt(e,10)),jjt=cs.Intrinsic??cs.Any|cs.Unknown|cs.String|cs.Number|cs.BigInt|cs.Boolean|cs.BooleanLiteral|cs.ESSymbol|cs.Void|cs.Undefined|cs.Null|cs.Never|cs.NonPrimitive;function iat(e,t){let r=[];return nat(e,(n,o)=>{let i=o.kind===Qt.SingleLineCommentTrivia?ma.Line:ma.Block,a=[o.pos,o.end],s=Fg(a,e),c=a[0]+2,p=o.kind===Qt.SingleLineCommentTrivia?a[1]:a[1]-2;r.push({type:i,loc:s,range:a,value:t.slice(c,p)})},e),r}var aat=()=>{};function sat(e,t,r){let{parseDiagnostics:n}=e;if(n.length)throw Yit(n[0]);let o=new tat(e,{allowInvalidAST:t.allowInvalidAST,errorOnUnknownASTType:t.errorOnUnknownASTType,shouldPreserveNodeMaps:r,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings}),i=o.convertProgram();return(!t.range||!t.loc)&&aat(i,{enter:a=>{t.range||delete a.range,t.loc||delete a.loc}}),t.tokens&&(i.tokens=$it(e)),t.comment&&(i.comments=iat(e,t.codeFullText)),{astMaps:o.getASTMaps(),estree:i}}function Rye(e){if(typeof e!="object"||e==null)return!1;let t=e;return t.kind===Qt.SourceFile&&typeof t.getFullText=="function"}var cat=function(e){return e&&e.__esModule?e:{default:e}},lat=cat({extname:e=>"."+e.split(".").pop()});function uat(e,t){switch(lat.default.extname(e).toLowerCase()){case Ml.Cjs:case Ml.Js:case Ml.Mjs:return W_.JS;case Ml.Cts:case Ml.Mts:case Ml.Ts:return W_.TS;case Ml.Json:return W_.JSON;case Ml.Jsx:return W_.JSX;case Ml.Tsx:return W_.TSX;default:return t?W_.TSX:W_.TS}}var pat={default:dV},dat=(0,pat.default)("typescript-eslint:typescript-estree:create-program:createSourceFile");function _at(e){return dat("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),Rye(e.code)?e.code:Vot(e.filePath,e.codeFullText,{jsDocParsingMode:e.jsDocParsingMode,languageVersion:SV.Latest,setExternalModuleIndicator:e.setExternalModuleIndicator},!0,uat(e.filePath,e.jsx))}var fat=e=>e,mat=()=>{},hat=class{},yat=()=>!1,gat=()=>{},Sat=function(e){return e&&e.__esModule?e:{default:e}},vat={},lV={default:dV},bat=Sat({extname:e=>"."+e.split(".").pop()}),xat=(0,lV.default)("typescript-eslint:typescript-estree:parseSettings:createParseSettings"),Fme,qz=null,PD={ParseAll:RD?.ParseAll,ParseForTypeErrors:RD?.ParseForTypeErrors,ParseForTypeInfo:RD?.ParseForTypeInfo,ParseNone:RD?.ParseNone};function Eat(e,t={}){let r=Tat(e),n=yat(t),o,i=typeof t.loggerFn=="function",a=fat(typeof t.filePath=="string"&&t.filePath!==""?t.filePath:Dat(t.jsx),o),s=bat.default.extname(a).toLowerCase(),c=(()=>{switch(t.jsDocParsingMode){case"all":return PD.ParseAll;case"none":return PD.ParseNone;case"type-info":return PD.ParseForTypeInfo;default:return PD.ParseAll}})(),p={loc:t.loc===!0,range:t.range===!0,allowInvalidAST:t.allowInvalidAST===!0,code:e,codeFullText:r,comment:t.comment===!0,comments:[],debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every(d=>typeof d=="string")?t.extraFileExtensions:[],filePath:a,jsDocParsingMode:c,jsx:t.jsx===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:new Map,projectService:t.projectService||t.project&&t.projectService!==!1&&(void 0).env.TYPESCRIPT_ESLINT_PROJECT_SERVICE==="true"?Aat(t.projectService,{jsDocParsingMode:c,tsconfigRootDir:o}):void 0,setExternalModuleIndicator:t.sourceType==="module"||t.sourceType==null&&s===Ml.Mjs||t.sourceType==null&&s===Ml.Mts?d=>{d.externalModuleIndicator=!0}:void 0,singleRun:n,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings??!0,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:Fme??(Fme=new hat(n?"Infinity":t.cacheLifetime?.glob??void 0)),tsconfigRootDir:o};if(p.projectService&&t.project&&(void 0).env.TYPESCRIPT_ESLINT_IGNORE_PROJECT_AND_PROJECT_SERVICE_ERROR!=="true")throw new Error('Enabling "project" does nothing when "projectService" is enabled. You can remove the "project" setting.');if(p.debugLevel.size>0){let d=[];p.debugLevel.has("typescript-eslint")&&d.push("typescript-eslint:*"),(p.debugLevel.has("eslint")||lV.default.enabled("eslint:*,-eslint:code-path"))&&d.push("eslint:*,-eslint:code-path"),lV.default.enable(d.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");xat("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!p.programs&&!p.projectService&&(p.projects=new Map),t.jsDocParsingMode==null&&p.projects.size===0&&p.programs==null&&p.projectService==null&&(p.jsDocParsingMode=PD.ParseNone),gat(p,i),p}function Tat(e){return Rye(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function Dat(e){return e?"estree.tsx":"estree.ts"}function Aat(e,t){let r=typeof e=="object"?e:{};return mat(r.allowDefaultProject),qz??(qz=(0,vat.createProjectService)({options:r,...t})),qz}var wat={default:dV},Bjt=(0,wat.default)("typescript-eslint:typescript-estree:parser");function Iat(e,t){let{ast:r}=kat(e,t,!1);return r}function kat(e,t,r){let n=Eat(e,t);if(t?.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let o=_at(n),{astMaps:i,estree:a}=sat(o,n,r);return{ast:a,esTreeNodeToTSNodeMap:i.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:i.tsNodeToESTreeNodeMap}}function Cat(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var Pat=Cat;function Oat(e){let t=[];for(let r of e)try{return r()}catch(n){t.push(n)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var Nat=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},Fat=_V("findLast",function(){if(Array.isArray(this))return Nat}),Rat=Fat;function Lat(e){return this[e<0?this.length+e:e]}var $at=_V("at",function(){if(Array.isArray(this)||typeof this=="string")return Lat}),Mat=$at;function Y_(e){let t=e.range?.[0]??e.start,r=(e.declaration?.decorators??e.decorators)?.[0];return r?Math.min(Y_(r),t):t}function dd(e){return e.range?.[1]??e.end}function jat(e){let t=new Set(e);return r=>t.has(r?.type)}var HV=jat,Bat=HV(["Block","CommentBlock","MultiLine"]),ZV=Bat,qat=HV(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),Uat=qat,Uz=new WeakMap;function zat(e){return Uz.has(e)||Uz.set(e,ZV(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),Uz.get(e)}var Vat=zat;function Jat(e){if(!ZV(e))return!1;let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var zz=new WeakMap;function Kat(e){return zz.has(e)||zz.set(e,Jat(e)),zz.get(e)}var Rme=Kat;function Gat(e){if(e.length<2)return;let t;for(let r=e.length-1;r>=0;r--){let n=e[r];if(t&&dd(n)===Y_(t)&&Rme(n)&&Rme(t)&&(e.splice(r+1,1),n.value+="*//*"+t.value,n.range=[Y_(n),dd(t)]),!Uat(n)&&!ZV(n))throw new TypeError(`Unknown comment type: "${n.type}".`);t=n}}var Hat=Gat;function Zat(e){return e!==null&&typeof e=="object"}var Wat=Zat,OD=null;function UD(e){if(OD!==null&&typeof OD.property){let t=OD;return OD=UD.prototype=null,t}return OD=UD.prototype=e??Object.create(null),new UD}var Qat=10;for(let e=0;e<=Qat;e++)UD();function Xat(e){return UD(e)}function Yat(e,t="type"){Xat(e);function r(n){let o=n[t],i=e[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:n});return i}return r}var est=Yat,J=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],tst={AccessorProperty:J[0],AnyTypeAnnotation:J[1],ArgumentPlaceholder:J[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:J[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:J[3],AsExpression:J[4],AssignmentExpression:J[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:J[6],BigIntLiteral:J[1],BigIntLiteralTypeAnnotation:J[1],BigIntTypeAnnotation:J[1],BinaryExpression:J[5],BindExpression:["object","callee"],BlockStatement:J[7],BooleanLiteral:J[1],BooleanLiteralTypeAnnotation:J[1],BooleanTypeAnnotation:J[1],BreakStatement:J[8],CallExpression:J[9],CatchClause:["param","body"],ChainExpression:J[3],ClassAccessorProperty:J[0],ClassBody:J[10],ClassDeclaration:J[11],ClassExpression:J[11],ClassImplements:J[12],ClassMethod:J[13],ClassPrivateMethod:J[13],ClassPrivateProperty:J[14],ClassProperty:J[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:J[15],ConditionalExpression:J[16],ConditionalTypeAnnotation:J[17],ContinueStatement:J[8],DebuggerStatement:J[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:J[18],DeclareEnum:J[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:J[20],DeclareFunction:["id","predicate"],DeclareHook:J[21],DeclareInterface:J[22],DeclareModule:J[19],DeclareModuleExports:J[23],DeclareNamespace:J[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:J[24],DeclareVariable:J[21],Decorator:J[3],Directive:J[18],DirectiveLiteral:J[1],DoExpression:J[10],DoWhileStatement:J[25],EmptyStatement:J[1],EmptyTypeAnnotation:J[1],EnumBigIntBody:J[26],EnumBigIntMember:J[27],EnumBooleanBody:J[26],EnumBooleanMember:J[27],EnumDeclaration:J[19],EnumDefaultedMember:J[21],EnumNumberBody:J[26],EnumNumberMember:J[27],EnumStringBody:J[26],EnumStringMember:J[27],EnumSymbolBody:J[26],ExistsTypeAnnotation:J[1],ExperimentalRestProperty:J[6],ExperimentalSpreadProperty:J[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:J[28],ExportNamedDeclaration:J[20],ExportNamespaceSpecifier:J[28],ExportSpecifier:["local","exported"],ExpressionStatement:J[3],File:["program"],ForInStatement:J[29],ForOfStatement:J[29],ForStatement:["init","test","update","body"],FunctionDeclaration:J[30],FunctionExpression:J[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:J[15],GenericTypeAnnotation:J[12],HookDeclaration:J[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:J[16],ImportAttribute:J[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:J[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:J[33],ImportSpecifier:["imported","local"],IndexedAccessType:J[34],InferredPredicate:J[1],InferTypeAnnotation:J[35],InterfaceDeclaration:J[22],InterfaceExtends:J[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:J[1],IntersectionTypeAnnotation:J[36],JsExpressionRoot:J[37],JsonRoot:J[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:J[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:J[1],JSXExpressionContainer:J[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:J[1],JSXMemberExpression:J[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:J[1],JSXSpreadAttribute:J[6],JSXSpreadChild:J[3],JSXText:J[1],KeyofTypeAnnotation:J[6],LabeledStatement:["label","body"],Literal:J[1],LogicalExpression:J[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:J[21],MatchExpression:J[39],MatchExpressionCase:J[40],MatchIdentifierPattern:J[21],MatchLiteralPattern:J[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:J[6],MatchStatement:J[39],MatchStatementCase:J[40],MatchUnaryPattern:J[6],MatchWildcardPattern:J[1],MemberExpression:J[38],MetaProperty:["meta","property"],MethodDefinition:J[42],MixedTypeAnnotation:J[1],ModuleExpression:J[10],NeverTypeAnnotation:J[1],NewExpression:J[9],NGChainedExpression:J[43],NGEmptyExpression:J[1],NGMicrosyntax:J[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:J[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:J[32],NGPipeExpression:["left","right","arguments"],NGRoot:J[37],NullableTypeAnnotation:J[23],NullLiteral:J[1],NullLiteralTypeAnnotation:J[1],NumberLiteralTypeAnnotation:J[1],NumberTypeAnnotation:J[1],NumericLiteral:J[1],ObjectExpression:["properties"],ObjectMethod:J[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:J[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:J[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:J[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:J[9],OptionalIndexedAccessType:J[34],OptionalMemberExpression:J[38],ParenthesizedExpression:J[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:J[1],PipelineTopicExpression:J[3],Placeholder:J[1],PrivateIdentifier:J[1],PrivateName:J[21],Program:J[7],Property:J[32],PropertyDefinition:J[14],QualifiedTypeIdentifier:J[44],QualifiedTypeofIdentifier:J[44],RegExpLiteral:J[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:J[6],SatisfiesExpression:J[4],SequenceExpression:J[43],SpreadElement:J[6],StaticBlock:J[10],StringLiteral:J[1],StringLiteralTypeAnnotation:J[1],StringTypeAnnotation:J[1],Super:J[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:J[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:J[1],TemplateLiteral:["quasis","expressions"],ThisExpression:J[1],ThisTypeAnnotation:J[1],ThrowStatement:J[6],TopicReference:J[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:J[45],TSAbstractKeyword:J[1],TSAbstractMethodDefinition:J[32],TSAbstractPropertyDefinition:J[45],TSAnyKeyword:J[1],TSArrayType:J[2],TSAsExpression:J[4],TSAsyncKeyword:J[1],TSBigIntKeyword:J[1],TSBooleanKeyword:J[1],TSCallSignatureDeclaration:J[46],TSClassImplements:J[47],TSConditionalType:J[17],TSConstructorType:J[46],TSConstructSignatureDeclaration:J[46],TSDeclareFunction:J[31],TSDeclareKeyword:J[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:J[26],TSEnumDeclaration:J[19],TSEnumMember:["id","initializer"],TSExportAssignment:J[3],TSExportKeyword:J[1],TSExternalModuleReference:J[3],TSFunctionType:J[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:J[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:J[35],TSInstantiationExpression:J[47],TSInterfaceBody:J[10],TSInterfaceDeclaration:J[22],TSInterfaceHeritage:J[47],TSIntersectionType:J[36],TSIntrinsicKeyword:J[1],TSJSDocAllType:J[1],TSJSDocNonNullableType:J[23],TSJSDocNullableType:J[23],TSJSDocUnknownType:J[1],TSLiteralType:J[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:J[10],TSModuleDeclaration:J[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:J[21],TSNeverKeyword:J[1],TSNonNullExpression:J[3],TSNullKeyword:J[1],TSNumberKeyword:J[1],TSObjectKeyword:J[1],TSOptionalType:J[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:J[23],TSPrivateKeyword:J[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:J[1],TSPublicKeyword:J[1],TSQualifiedName:J[5],TSReadonlyKeyword:J[1],TSRestType:J[23],TSSatisfiesExpression:J[4],TSStaticKeyword:J[1],TSStringKeyword:J[1],TSSymbolKeyword:J[1],TSTemplateLiteralType:["quasis","types"],TSThisType:J[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:J[23],TSTypeAssertion:J[4],TSTypeLiteral:J[26],TSTypeOperator:J[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:J[48],TSTypeParameterInstantiation:J[48],TSTypePredicate:J[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:J[1],TSUnionType:J[36],TSUnknownKeyword:J[1],TSVoidKeyword:J[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:J[24],TypeAnnotation:J[23],TypeCastExpression:J[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:J[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:J[48],TypeParameterInstantiation:J[48],TypePredicate:J[49],UnaryExpression:J[6],UndefinedTypeAnnotation:J[1],UnionTypeAnnotation:J[36],UnknownTypeAnnotation:J[1],UpdateExpression:J[6],V8IntrinsicIdentifier:J[1],VariableDeclaration:["declarations"],VariableDeclarator:J[27],Variance:J[1],VoidPattern:J[1],VoidTypeAnnotation:J[1],WhileStatement:J[25],WithStatement:["object","body"],YieldExpression:J[6]},rst=est(tst),nst=rst;function pO(e,t){if(!Wat(e))return e;if(Array.isArray(e)){for(let n=0;ny<=d);f=m&&n.slice(m,d).trim().length===0}return f?void 0:(p.extra={...p.extra,parenthesized:!0},p)}case"TemplateLiteral":if(c.expressions.length!==c.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(r==="flow"||r==="hermes"||r==="espree"||r==="typescript"||i){let p=Y_(c)+1,d=dd(c)-(c.tail?1:2);c.range=[p,d]}break;case"VariableDeclaration":{let p=Mat(0,c.declarations,-1);p?.init&&n[dd(p)]!==";"&&(c.range=[Y_(c),dd(p)]);break}case"TSParenthesizedType":return c.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(c.types.length===1)return c.types[0];break;case"ImportExpression":r==="hermes"&&c.attributes&&!c.options&&(c.options=c.attributes);break}},onLeave(c){switch(c.type){case"LogicalExpression":if(Lye(c))return uV(c);break;case"TSImportType":!c.source&&c.argument.type==="TSLiteralType"&&(c.source=c.argument.literal,delete c.argument);break}}}),e}function Lye(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function uV(e){return Lye(e)?uV({type:"LogicalExpression",operator:e.operator,left:uV({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[Y_(e.left),dd(e.right.left)]}),right:e.right.right,range:[Y_(e),dd(e)]}):e}var ast=ist,sst=/\*\/$/,cst=/^\/\*\*?/,lst=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,ust=/(^|\s+)\/\/([^\n\r]*)/g,Lme=/^(\r?\n)+/,pst=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,$me=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,dst=/(\r?\n|^) *\* ?/g,_st=[];function fst(e){let t=e.match(lst);return t?t[0].trimStart():""}function mst(e){e=u1(0,e.replace(cst,"").replace(sst,""),dst,"$1");let t="";for(;t!==e;)t=e,e=u1(0,e,pst,` $1 $2 -`);e=e.replace(HBt,"").trimEnd();let i=Object.create(null),s=ree(0,e,KBt,"").replace(HBt,"").trimEnd(),l;for(;l=KBt.exec(e);){let d=ree(0,l[2],Jpn,"");if(typeof i[l[1]]=="string"||Array.isArray(i[l[1]])){let h=i[l[1]];i[l[1]]=[...Gpn,...Array.isArray(h)?h:[h],d]}else i[l[1]]=d}return{comments:s,pragmas:i}}var Qpn=["noformat","noprettier"],Zpn=["format","prettier"];function Xpn(e){if(!e.startsWith("#!"))return"";let r=e.indexOf(` -`);return r===-1?e:e.slice(0,r)}var Ypn=Xpn;function KUt(e){let r=Ypn(e);r&&(e=e.slice(r.length+1));let i=Hpn(e),{pragmas:s,comments:l}=Kpn(i);return{shebang:r,text:e,pragmas:s,comments:l}}function e_n(e){let{pragmas:r}=KUt(e);return Zpn.some(i=>Object.prototype.hasOwnProperty.call(r,i))}function t_n(e){let{pragmas:r}=KUt(e);return Qpn.some(i=>Object.prototype.hasOwnProperty.call(r,i))}function r_n(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:e_n,hasIgnorePragma:t_n,locStart:Q5,locEnd:x8,...e}}var n_n=r_n,i_n=/^[^"'`]*<\/|^[^/]{2}.*\/>/mu;function o_n(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var a_n=o_n,QUt="module",ZUt="commonjs",s_n=[QUt,ZUt];function c_n(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return QUt;if(/\.(?:cjs|cts)$/iu.test(e))return ZUt}}var l_n={loc:!0,range:!0,comment:!0,tokens:!1,loggerFn:!1,project:!1,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:!0};function u_n(e){let{message:r,location:i}=e;if(!i)return e;let{start:s,end:l}=i;return ppn(r,{loc:{start:{line:s.line,column:s.column+1},end:{line:l.line,column:l.column+1}},cause:e})}var p_n=e=>e&&/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function __n(e,r){let i=[{...l_n,filePath:r}],s=c_n(r);if(s?i=i.map(d=>({...d,sourceType:s})):i=s_n.flatMap(d=>i.map(h=>({...h,sourceType:d}))),p_n(r))return i;let l=i_n.test(e);return[l,!l].flatMap(d=>i.map(h=>({...h,jsx:d})))}function d_n(e,r){let i=r?.filepath;typeof i!="string"&&(i=void 0);let s=a_n(e),l=__n(e,i),d;try{d=_pn(l.map(h=>()=>cpn(s,h)))}catch({errors:[h]}){throw u_n(h)}return $pn(d,{parser:"typescript",text:e})}var f_n=n_n(d_n);var m_n=[vZe,pXe,CYe],XUt=new Map;function h_n(e,r){return`${r}::${e.length}::${e}`}async function y_e(e,r){let i=h_n(e,r),s=XUt.get(i);if(s)return s;try{let l=e,d=!1;r==="typescript"&&(l=`type __T = ${e}`,d=!0);let S=(await bCe(l,{parser:r==="typescript-module"?"typescript":r,plugins:m_n,printWidth:60,tabWidth:2,semi:!0,singleQuote:!1,trailingComma:"all"})).trimEnd();return d&&(S=S.replace(/^type __T =\s*/,"").replace(/;$/,"").trimEnd()),XUt.set(i,S),S}catch{return e}}import*as IDe from"effect/Context";import*as vB from"effect/Effect";import*as YUt from"effect/Layer";import*as ezt from"effect/Option";var q2=class extends IDe.Tag("#runtime/RuntimeLocalScopeService")(){},_et=e=>YUt.succeed(q2,e),SB=(e,r)=>r==null?e:e.pipe(vB.provide(_et(r))),bB=()=>vB.contextWith(e=>IDe.getOption(e,q2)).pipe(vB.map(e=>ezt.isSome(e)?e.value:null)),fee=e=>vB.gen(function*(){let r=yield*bB();return r===null?yield*new iCe({message:"Runtime local scope is unavailable"}):e!==void 0&&r.installation.scopeId!==e?yield*new vY({message:`Scope ${e} is not the active local scope ${r.installation.scopeId}`,requestedScopeId:e,activeScopeId:r.installation.scopeId}):r});import*as v_e from"effect/Context";import*as xB from"effect/Layer";var FV=class extends v_e.Tag("#runtime/InstallationStore")(){},OD=class extends v_e.Tag("#runtime/ScopeConfigStore")(){},lx=class extends v_e.Tag("#runtime/ScopeStateStore")(){},ux=class extends v_e.Tag("#runtime/SourceArtifactStore")(){},S_e=e=>xB.mergeAll(xB.succeed(OD,e.scopeConfigStore),xB.succeed(lx,e.scopeStateStore),xB.succeed(ux,e.sourceArtifactStore)),b_e=e=>xB.mergeAll(xB.succeed(FV,e.installationStore),S_e(e));import*as nZt from"effect/Context";import*as Fat from"effect/Effect";import*as iZt from"effect/Layer";import*as tzt from"effect/Context";var k8=class extends tzt.Tag("#runtime/SourceTypeDeclarationsRefresherService")(){};import*as rzt from"effect/Effect";var RV=(e,r)=>rzt.gen(function*(){if(e.runtimeLocalScope.installation.scopeId!==r)return yield*new vY({message:`Runtime local scope mismatch: expected ${r}, got ${e.runtimeLocalScope.installation.scopeId}`,requestedScopeId:r,activeScopeId:e.runtimeLocalScope.installation.scopeId});let i=yield*e.scopeConfigStore.load(),s=yield*e.scopeStateStore.load();return{installation:e.runtimeLocalScope.installation,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,loadedConfig:i,scopeState:s}});import*as N1 from"effect/Effect";import*as szt from"effect/Effect";var sh=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},Ph=e=>typeof e=="string"&&e.trim().length>0?e.trim():null,czt=e=>typeof e=="boolean"?e:null,PDe=e=>Array.isArray(e)?e.flatMap(r=>{let i=Ph(r);return i?[i]:[]}):[],nzt=e=>{if(e)try{return JSON.parse(e)}catch{return}},g_n=e=>_D(e),y_n=e=>e.replaceAll("~","~0").replaceAll("/","~1"),NDe=e=>`#/$defs/google/${y_n(e)}`,v_n=e=>{let r=Ph(e)?.toLowerCase();switch(r){case"get":case"put":case"post":case"delete":case"patch":case"head":case"options":return r;default:throw new Error(`Unsupported Google Discovery HTTP method: ${String(e)}`)}},LV=e=>{let r=sh(e.schema),i=Ph(r.$ref);if(i)return{$ref:NDe(i)};let s=Ph(r.description),l=Ph(r.format),d=Ph(r.type),h=PDe(r.enum),S=typeof r.default=="string"||typeof r.default=="number"||typeof r.default=="boolean"?r.default:void 0,b=czt(r.readOnly),A={...s?{description:s}:{},...l?{format:l}:{},...h.length>0?{enum:[...h]}:{},...S!==void 0?{default:S}:{},...b===!0?{readOnly:!0}:{}};if(d==="any")return A;if(d==="array"){let j=LV({schema:r.items,topLevelSchemas:e.topLevelSchemas});return{...A,type:"array",items:j??{}}}let L=sh(r.properties),V=r.additionalProperties;if(d==="object"||Object.keys(L).length>0||V!==void 0){let j=Object.fromEntries(Object.entries(L).map(([te,X])=>[te,LV({schema:X,topLevelSchemas:e.topLevelSchemas})])),ie=V===void 0?void 0:V===!0?!0:LV({schema:V,topLevelSchemas:e.topLevelSchemas});return{...A,type:"object",...Object.keys(j).length>0?{properties:j}:{},...ie!==void 0?{additionalProperties:ie}:{}}}return d==="boolean"||d==="number"||d==="integer"||d==="string"?{...A,type:d}:Object.keys(A).length>0?A:{}},S_n=e=>{let r=LV({schema:e.parameter,topLevelSchemas:e.topLevelSchemas});return e.parameter.repeated===!0?{type:"array",items:r}:r},izt=e=>{let r=sh(e.method),i=sh(r.parameters),s={},l=[];for(let[h,S]of Object.entries(i)){let b=sh(S);s[h]=S_n({parameter:b,topLevelSchemas:e.topLevelSchemas}),b.required===!0&&l.push(h)}let d=Ph(sh(r.request).$ref);if(d){let h=e.topLevelSchemas[d];h?s.body=LV({schema:h,topLevelSchemas:e.topLevelSchemas}):s.body={$ref:NDe(d)}}if(Object.keys(s).length!==0)return JSON.stringify({type:"object",properties:s,...l.length>0?{required:l}:{},additionalProperties:!1})},ozt=e=>{let r=Ph(sh(sh(e.method).response).$ref);if(!r)return;let i=e.topLevelSchemas[r],s=i?LV({schema:i,topLevelSchemas:e.topLevelSchemas}):{$ref:NDe(r)};return JSON.stringify(s)},b_n=e=>Object.entries(sh(sh(e).parameters)).flatMap(([r,i])=>{let s=sh(i),l=Ph(s.location);return l!=="path"&&l!=="query"&&l!=="header"?[]:[{name:r,location:l,required:s.required===!0,repeated:s.repeated===!0,description:Ph(s.description),type:Ph(s.type)??Ph(s.$ref),...PDe(s.enum).length>0?{enum:[...PDe(s.enum)]}:{},...Ph(s.default)?{default:Ph(s.default)}:{}}]}),azt=e=>{let r=sh(sh(sh(e.auth).oauth2).scopes),i=Object.fromEntries(Object.entries(r).flatMap(([s,l])=>{let d=Ph(sh(l).description)??"";return[[s,d]]}));return Object.keys(i).length>0?i:void 0},lzt=e=>{let r=Ph(e.method.id),i=Ph(e.method.path);if(!r||!i)return null;let s=v_n(e.method.httpMethod),l=r,d=l.startsWith(`${e.service}.`)?l.slice(e.service.length+1):l,h=d.split(".").filter(j=>j.length>0),S=h.at(-1)??d,b=h.length>1?h.slice(0,-1).join("."):null,A=Ph(sh(sh(e.method).response).$ref),L=Ph(sh(sh(e.method).request).$ref),V=sh(e.method.mediaUpload);return{toolId:d,rawToolId:l,methodId:r,name:d,description:Ph(e.method.description),group:b,leaf:S,method:s,path:i,flatPath:Ph(e.method.flatPath),parameters:b_n(e.method),requestSchemaId:L,responseSchemaId:A,scopes:[...PDe(e.method.scopes)],supportsMediaUpload:Object.keys(V).length>0,supportsMediaDownload:czt(e.method.supportsMediaDownload)===!0,...izt({method:e.method,topLevelSchemas:e.topLevelSchemas})?{inputSchema:nzt(izt({method:e.method,topLevelSchemas:e.topLevelSchemas}))}:{},...ozt({method:e.method,topLevelSchemas:e.topLevelSchemas})?{outputSchema:nzt(ozt({method:e.method,topLevelSchemas:e.topLevelSchemas}))}:{}}},uzt=e=>{let r=sh(e.resource),i=Object.values(sh(r.methods)).flatMap(l=>{try{let d=lzt({service:e.service,version:e.version,rootUrl:e.rootUrl,servicePath:e.servicePath,topLevelSchemas:e.topLevelSchemas,method:sh(l)});return d?[d]:[]}catch{return[]}}),s=Object.values(sh(r.resources)).flatMap(l=>uzt({...e,resource:l}));return[...i,...s]},mee=(e,r)=>szt.try({try:()=>{let i=typeof r=="string"?JSON.parse(r):r,s=Ph(i.name),l=Ph(i.version),d=Ph(i.rootUrl),h=typeof i.servicePath=="string"?i.servicePath:"";if(!s||!l||!d)throw new Error(`Invalid Google Discovery document for ${e}`);let S=Object.fromEntries(Object.entries(sh(i.schemas)).map(([V,j])=>[V,sh(j)])),b=Object.fromEntries(Object.entries(S).map(([V,j])=>[NDe(V),JSON.stringify(LV({schema:j,topLevelSchemas:S}))])),A=[...Object.values(sh(i.methods)).flatMap(V=>{let j=lzt({service:s,version:l,rootUrl:d,servicePath:h,topLevelSchemas:S,method:sh(V)});return j?[j]:[]}),...Object.values(sh(i.resources)).flatMap(V=>uzt({service:s,version:l,rootUrl:d,servicePath:h,topLevelSchemas:S,resource:V}))].sort((V,j)=>V.toolId.localeCompare(j.toolId));return{version:1,sourceHash:g_n(typeof r=="string"?r:JSON.stringify(r)),service:s,versionName:l,title:Ph(i.title),description:Ph(i.description),rootUrl:d,servicePath:h,batchPath:Ph(i.batchPath),documentationLink:Ph(i.documentationLink),...Object.keys(b).length>0?{schemaRefTable:b}:{},...azt(i)?{oauthScopes:azt(i)}:{},methods:A}},catch:i=>i instanceof Error?i:new Error(`Failed to extract Google Discovery manifest: ${String(i)}`)}),det=e=>[...e.methods];import*as fet from"effect/Either";import*as Y5 from"effect/Effect";var x_n=e=>{try{return new URL(e.servicePath||"",e.rootUrl).toString()}catch{return e.rootUrl}},T_n=e=>e.scopes.length>0?I6("oauth2",{confidence:"high",reason:"Google Discovery document declares OAuth scopes",headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:"https://accounts.google.com/o/oauth2/v2/auth",oauthTokenUrl:"https://oauth2.googleapis.com/token",oauthScopes:[...e.scopes]}):UN("Google Discovery document does not declare OAuth scopes","medium"),met=e=>Y5.gen(function*(){let r=yield*Y5.either(eY({method:"GET",url:e.normalizedUrl,headers:e.headers}));if(fet.isLeft(r)||r.right.status<200||r.right.status>=300)return null;let i=yield*Y5.either(mee(e.normalizedUrl,r.right.text));if(fet.isLeft(i))return null;let s=x_n({rootUrl:i.right.rootUrl,servicePath:i.right.servicePath}),l=BN(i.right.title)??`${i.right.service}.${i.right.versionName}.googleapis.com`,d=Object.keys(i.right.oauthScopes??{});return{detectedKind:"google_discovery",confidence:"high",endpoint:s,specUrl:e.normalizedUrl,name:l,namespace:vT(i.right.service),transport:null,authInference:T_n({scopes:d}),toolCount:i.right.methods.length,warnings:[]}}).pipe(Y5.catchAll(()=>Y5.succeed(null)));import*as ET from"effect/Schema";var het=ET.Struct({service:ET.String,version:ET.String,discoveryUrl:ET.optional(ET.NullOr(ET.String)),defaultHeaders:ET.optional(ET.NullOr(M_)),scopes:ET.optional(ET.Array(ET.String))});var E_n=e=>{let r=e?.providerData.invocation.rootUrl;if(!r)return;let i=e?.providerData.invocation.servicePath??"";return[{url:new URL(i||"",r).toString()}]},k_n=e=>{let r=d5(e.source,e.operation.providerData.toolId),i=vD.make(`cap_${Td({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),s=pk.make(`exec_${Td({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"http"})}`),l=e.operation.inputSchema??{},d=e.operation.outputSchema??{},h=e.operation.providerData.invocation.scopes.length>0?kj.make(`security_${Td({sourceId:e.source.id,scopes:e.operation.providerData.invocation.scopes})}`):void 0;if(h&&!e.catalog.symbols[h]){let te=Object.fromEntries(e.operation.providerData.invocation.scopes.map(X=>[X,e.operation.providerData.invocation.scopeDescriptions?.[X]??X]));x_(e.catalog.symbols)[h]={id:h,kind:"securityScheme",schemeType:"oauth2",docs:Gd({summary:"OAuth 2.0",description:"Imported from Google Discovery scopes."}),oauth:{flows:{},scopes:te},synthetic:!1,provenance:ld(e.documentId,"#/googleDiscovery/security")}}e.operation.providerData.invocation.parameters.forEach(te=>{let X=Tj.make(`param_${Td({capabilityId:i,location:te.location,name:te.name})}`),Re=Gue(l,te.location,te.name)??(te.repeated?{type:"array",items:{type:te.type==="integer"?"integer":"string",...te.enum?{enum:te.enum}:{}}}:{type:te.type==="integer"?"integer":"string",...te.enum?{enum:te.enum}:{}});x_(e.catalog.symbols)[X]={id:X,kind:"parameter",name:te.name,location:te.location,required:te.required,...Gd({description:te.description})?{docs:Gd({description:te.description})}:{},schemaShapeId:e.importer.importSchema(Re,`#/googleDiscovery/${e.operation.providerData.toolId}/parameter/${te.location}/${te.name}`,l),synthetic:!1,provenance:ld(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/parameter/${te.location}/${te.name}`)}});let S=e.operation.providerData.invocation.requestSchemaId||nY(l)!==void 0?VJ.make(`request_body_${Td({capabilityId:i})}`):void 0;if(S){let te=nY(l)??l;x_(e.catalog.symbols)[S]={id:S,kind:"requestBody",contents:[{mediaType:"application/json",shapeId:e.importer.importSchema(te,`#/googleDiscovery/${e.operation.providerData.toolId}/requestBody`,l)}],synthetic:!1,provenance:ld(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/requestBody`)}}let b=SD.make(`response_${Td({capabilityId:i})}`);x_(e.catalog.symbols)[b]={id:b,kind:"response",...Gd({description:e.operation.description})?{docs:Gd({description:e.operation.description})}:{},...e.operation.outputSchema!==void 0?{contents:[{mediaType:"application/json",shapeId:e.importer.importSchema(d,`#/googleDiscovery/${e.operation.providerData.toolId}/response`,d)}]}:{},synthetic:!1,provenance:ld(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/response`)};let A=[];e.operation.providerData.invocation.supportsMediaUpload&&A.push("upload"),e.operation.providerData.invocation.supportsMediaDownload&&A.push("download");let L=m5({catalog:e.catalog,responseId:b,provenance:ld(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/responseSet`),traits:A}),V=e.operation.inputSchema!==void 0?e.importer.importSchema(e.operation.inputSchema,`#/googleDiscovery/${e.operation.providerData.toolId}/call`,e.operation.inputSchema):e.importer.importSchema({type:"object",additionalProperties:!1},`#/googleDiscovery/${e.operation.providerData.toolId}/call`);x_(e.catalog.executables)[s]={id:s,capabilityId:i,scopeId:e.serviceScopeId,adapterKey:"google_discovery",bindingVersion:rx,binding:e.operation.providerData,projection:{responseSetId:L,callShapeId:V},display:{protocol:"http",method:e.operation.providerData.invocation.method.toUpperCase(),pathTemplate:e.operation.providerData.invocation.path,operationId:e.operation.providerData.methodId,group:e.operation.providerData.group,leaf:e.operation.providerData.leaf,rawToolId:e.operation.providerData.rawToolId,title:e.operation.title??null,summary:e.operation.description??null},synthetic:!1,provenance:ld(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/executable`)};let j=e.operation.effect,ie=h?{kind:"scheme",schemeId:h,scopes:e.operation.providerData.invocation.scopes}:{kind:"none"};x_(e.catalog.capabilities)[i]={id:i,serviceScopeId:e.serviceScopeId,surface:{toolPath:r,...e.operation.title?{title:e.operation.title}:{},...e.operation.description?{summary:e.operation.description}:{},tags:["google",e.operation.providerData.service,e.operation.providerData.version]},semantics:{effect:j,safe:j==="read",idempotent:j==="read"||j==="delete",destructive:j==="delete"},auth:ie,interaction:f5(j),executableIds:[s],synthetic:!1,provenance:ld(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/capability`)}},pzt=e=>h5({source:e.source,documents:e.documents,serviceScopeDefaults:(()=>{let r=E_n(e.operations[0]);return r?{servers:r}:void 0})(),registerOperations:({catalog:r,documentId:i,serviceScopeId:s,importer:l})=>{for(let d of e.operations)k_n({catalog:r,source:e.source,documentId:i,serviceScopeId:s,operation:d,importer:l})}});import{FetchHttpClient as hWn,HttpClient as gWn,HttpClientRequest as yWn}from"@effect/platform";import*as ODe from"effect/Effect";import*as V6 from"effect/Schema";import{Schema as ts}from"effect";var C_n=["get","put","post","delete","patch","head","options"],get=ts.Literal(...C_n),_zt=ts.Literal("path","query","header"),yet=ts.Struct({name:ts.String,location:_zt,required:ts.Boolean,repeated:ts.Boolean,description:ts.NullOr(ts.String),type:ts.NullOr(ts.String),enum:ts.optional(ts.Array(ts.String)),default:ts.optional(ts.String)}),dzt=ts.Struct({method:get,path:ts.String,flatPath:ts.NullOr(ts.String),rootUrl:ts.String,servicePath:ts.String,parameters:ts.Array(yet),requestSchemaId:ts.NullOr(ts.String),responseSchemaId:ts.NullOr(ts.String),scopes:ts.Array(ts.String),scopeDescriptions:ts.optional(ts.Record({key:ts.String,value:ts.String})),supportsMediaUpload:ts.Boolean,supportsMediaDownload:ts.Boolean}),x_e=ts.Struct({kind:ts.Literal("google_discovery"),service:ts.String,version:ts.String,toolId:ts.String,rawToolId:ts.String,methodId:ts.String,group:ts.NullOr(ts.String),leaf:ts.String,invocation:dzt}),fzt=ts.Struct({toolId:ts.String,rawToolId:ts.String,methodId:ts.String,name:ts.String,description:ts.NullOr(ts.String),group:ts.NullOr(ts.String),leaf:ts.String,method:get,path:ts.String,flatPath:ts.NullOr(ts.String),parameters:ts.Array(yet),requestSchemaId:ts.NullOr(ts.String),responseSchemaId:ts.NullOr(ts.String),scopes:ts.Array(ts.String),supportsMediaUpload:ts.Boolean,supportsMediaDownload:ts.Boolean,inputSchema:ts.optional(ts.Unknown),outputSchema:ts.optional(ts.Unknown)}),mzt=ts.Record({key:ts.String,value:ts.String}),D_n=ts.Struct({version:ts.Literal(1),sourceHash:ts.String,service:ts.String,versionName:ts.String,title:ts.NullOr(ts.String),description:ts.NullOr(ts.String),rootUrl:ts.String,servicePath:ts.String,batchPath:ts.NullOr(ts.String),documentationLink:ts.NullOr(ts.String),oauthScopes:ts.optional(ts.Record({key:ts.String,value:ts.String})),schemaRefTable:ts.optional(mzt),methods:ts.Array(fzt)});import*as A_n from"effect/Either";var xWn=V6.decodeUnknownEither(x_e),gzt=e=>({kind:"google_discovery",service:e.service,version:e.version,toolId:e.definition.toolId,rawToolId:e.definition.rawToolId,methodId:e.definition.methodId,group:e.definition.group,leaf:e.definition.leaf,invocation:{method:e.definition.method,path:e.definition.path,flatPath:e.definition.flatPath,rootUrl:e.rootUrl,servicePath:e.servicePath,parameters:e.definition.parameters,requestSchemaId:e.definition.requestSchemaId,responseSchemaId:e.definition.responseSchemaId,scopes:e.definition.scopes,...e.oauthScopes?{scopeDescriptions:Object.fromEntries(e.definition.scopes.flatMap(r=>e.oauthScopes?.[r]!==void 0?[[r,e.oauthScopes[r]]]:[]))}:{},supportsMediaUpload:e.definition.supportsMediaUpload,supportsMediaDownload:e.definition.supportsMediaDownload}}),w_n=V6.decodeUnknownEither(V6.parseJson(V6.Record({key:V6.String,value:V6.Unknown}))),vet=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{};var yzt=(e,r,i)=>{if(r.length===0)return;let[s,...l]=r;if(!s)return;if(l.length===0){e[s]=i;return}let d=vet(e[s]);e[s]=d,yzt(d,l,i)},hzt=e=>{if(e.schema===void 0||e.schema===null)return{};let r=vet(e.schema);if(!e.refTable||Object.keys(e.refTable).length===0)return r;let i=vet(r.$defs);for(let[s,l]of Object.entries(e.refTable)){if(!s.startsWith("#/$defs/"))continue;let d=typeof l=="string"?(()=>{try{return JSON.parse(l)}catch{return l}})():l,h=s.slice(8).split("/").filter(S=>S.length>0);yzt(i,h,d)}return Object.keys(i).length>0?{...r,$defs:i}:r};var bet=e=>{let r=Object.fromEntries(Object.entries(e.manifest.schemaRefTable??{}).map(([l,d])=>{try{return[l,JSON.parse(d)]}catch{return[l,d]}})),i=e.definition.inputSchema===void 0?void 0:hzt({schema:e.definition.inputSchema,refTable:r}),s=e.definition.outputSchema===void 0?void 0:hzt({schema:e.definition.outputSchema,refTable:r});return{inputTypePreview:S6(i,"unknown",1/0),outputTypePreview:S6(s,"unknown",1/0),...i!==void 0?{inputSchema:i}:{},...s!==void 0?{outputSchema:s}:{},providerData:gzt({service:e.manifest.service,version:e.manifest.versionName,rootUrl:e.manifest.rootUrl,servicePath:e.manifest.servicePath,oauthScopes:e.manifest.oauthScopes,definition:e.definition})}};import{FetchHttpClient as I_n,HttpClient as P_n,HttpClientRequest as vzt}from"@effect/platform";import*as hm from"effect/Effect";import*as Ju from"effect/Schema";var bzt=Ju.extend(Ij,Ju.Struct({kind:Ju.Literal("google_discovery"),service:Ju.Trim.pipe(Ju.nonEmptyString()),version:Ju.Trim.pipe(Ju.nonEmptyString()),discoveryUrl:Ju.optional(Ju.NullOr(Ju.Trim.pipe(Ju.nonEmptyString()))),scopes:Ju.optional(Ju.Array(Ju.Trim.pipe(Ju.nonEmptyString()))),scopeOauthClientId:Ju.optional(Ju.NullOr(VFt)),oauthClient:QFt,name:sy,namespace:sy,auth:Ju.optional(v5)})),N_n=bzt,Szt=Ju.Struct({service:Ju.Trim.pipe(Ju.nonEmptyString()),version:Ju.Trim.pipe(Ju.nonEmptyString()),discoveryUrl:Ju.Trim.pipe(Ju.nonEmptyString()),defaultHeaders:Ju.optional(Ju.NullOr(M_)),scopes:Ju.optional(Ju.Array(Ju.Trim.pipe(Ju.nonEmptyString())))}),O_n=Ju.Struct({service:Ju.String,version:Ju.String,discoveryUrl:Ju.optional(Ju.String),defaultHeaders:Ju.optional(Ju.NullOr(M_)),scopes:Ju.optional(Ju.Array(Ju.String))}),T_e=1,F_n=(e,r)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&r.some(i=>Object.prototype.hasOwnProperty.call(e,i)),R_n=(e,r)=>`https://www.googleapis.com/discovery/v1/apis/${encodeURIComponent(e)}/${encodeURIComponent(r)}/rest`,TB=e=>hm.gen(function*(){if(F_n(e.binding,["transport","queryParams","headers","specUrl"]))return yield*og("google-discovery/adapter","Google Discovery sources cannot define MCP or OpenAPI binding fields");let r=yield*GN({sourceId:e.id,label:"Google Discovery",version:e.bindingVersion,expectedVersion:T_e,schema:O_n,value:e.binding,allowedKeys:["service","version","discoveryUrl","defaultHeaders","scopes"]}),i=r.service.trim(),s=r.version.trim();if(i.length===0||s.length===0)return yield*og("google-discovery/adapter","Google Discovery sources require service and version");let l=typeof r.discoveryUrl=="string"&&r.discoveryUrl.trim().length>0?r.discoveryUrl.trim():null;return{service:i,version:s,discoveryUrl:l??R_n(i,s),defaultHeaders:r.defaultHeaders??null,scopes:(r.scopes??[]).map(d=>d.trim()).filter(d=>d.length>0)}}),xzt=e=>hm.gen(function*(){let r=yield*P_n.HttpClient,i=vzt.get(e.url).pipe(vzt.setHeaders({...e.headers,...e.cookies?{cookie:Object.entries(e.cookies).map(([l,d])=>`${l}=${encodeURIComponent(d)}`).join("; ")}:{}})),s=yield*r.execute(i).pipe(hm.mapError(l=>l instanceof Error?l:new Error(String(l))));return s.status===401||s.status===403?yield*new y5("import",`Google Discovery fetch requires credentials (status ${s.status})`):s.status<200||s.status>=300?yield*og("google-discovery/adapter",`Google Discovery fetch failed with status ${s.status}`):yield*s.text.pipe(hm.mapError(l=>l instanceof Error?l:new Error(String(l))))}).pipe(hm.provide(I_n.layer)),L_n=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},Tzt=(e,r)=>{if(e==null)return[];if(Array.isArray(e)){let i=e.flatMap(s=>s==null?[]:[String(s)]);return r?i:[i.join(",")]}return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?[String(e)]:[JSON.stringify(e)]},M_n=e=>e.pathTemplate.replaceAll(/\{([^}]+)\}/g,(r,i)=>{let s=e.parameters.find(h=>h.location==="path"&&h.name===i),l=e.args[i];if(l==null&&s?.required)throw new Error(`Missing required path parameter: ${i}`);let d=Tzt(l,!1);return d.length===0?"":encodeURIComponent(d[0])}),j_n=e=>new URL(e.providerData.invocation.servicePath||"",e.providerData.invocation.rootUrl).toString(),B_n=e=>{let r={};return e.headers.forEach((i,s)=>{r[s]=i}),r},$_n=async e=>{let r=e.headers.get("content-type")?.toLowerCase()??"",i=await e.text();if(i.trim().length===0)return null;if(r.includes("application/json")||r.includes("+json"))try{return JSON.parse(i)}catch{return i}return i},U_n=e=>{let r=bet({manifest:e.manifest,definition:e.definition});return{toolId:e.definition.toolId,title:e.definition.name,description:e.definition.description,effect:e.definition.method==="get"||e.definition.method==="head"?"read":e.definition.method==="delete"?"delete":"write",inputSchema:r.inputSchema,outputSchema:r.outputSchema,providerData:r.providerData}},z_n=e=>{let r=Object.keys(e.oauthScopes??{});if(r.length===0)return[];let i=new Map;for(let l of r)i.set(l,new Set);for(let l of e.methods)for(let d of l.scopes)i.get(d)?.add(l.methodId);return r.filter(l=>{let d=i.get(l);return!d||d.size===0?!0:!r.some(h=>{if(h===l)return!1;let S=i.get(h);if(!S||S.size<=d.size)return!1;for(let b of d)if(!S.has(b))return!1;return!0})})},q_n=e=>hm.gen(function*(){let r=yield*TB(e),i=r.scopes??[],s=yield*xzt({url:r.discoveryUrl,headers:r.defaultHeaders??void 0}).pipe(hm.flatMap(h=>mee(e.name,h)),hm.catchAll(()=>hm.succeed(null))),l=s?z_n(s):[],d=l.length>0?[...new Set([...l,...i])]:i;return d.length===0?null:{providerKey:"google_workspace",authorizationEndpoint:"https://accounts.google.com/o/oauth2/v2/auth",tokenEndpoint:"https://oauth2.googleapis.com/token",scopes:d,headerName:"Authorization",prefix:"Bearer ",clientAuthentication:"client_secret_post",authorizationParams:{access_type:"offline",prompt:"consent",include_granted_scopes:"true"}}}),Ezt={key:"google_discovery",displayName:"Google Discovery",catalogKind:"imported",connectStrategy:"direct",credentialStrategy:"credential_managed",bindingConfigVersion:T_e,providerKey:"google_workspace",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:bzt,executorAddInputSchema:N_n,executorAddHelpText:["service is the Discovery service name, e.g. sheets or drive. version is the API version, e.g. v4 or v3."],executorAddInputSignatureWidth:420,localConfigBindingSchema:het,localConfigBindingFromSource:e=>hm.runSync(hm.map(TB(e),r=>({service:r.service,version:r.version,discoveryUrl:r.discoveryUrl,defaultHeaders:r.defaultHeaders??null,scopes:r.scopes}))),serializeBindingConfig:e=>VN({adapterKey:"google_discovery",version:T_e,payloadSchema:Szt,payload:hm.runSync(TB(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:r})=>hm.map(WN({sourceId:e,label:"Google Discovery",adapterKey:"google_discovery",version:T_e,payloadSchema:Szt,value:r}),({version:i,payload:s})=>({version:i,payload:{service:s.service,version:s.version,discoveryUrl:s.discoveryUrl,defaultHeaders:s.defaultHeaders??null,scopes:s.scopes??[]}})),bindingStateFromSource:e=>hm.map(TB(e),r=>({...JN,defaultHeaders:r.defaultHeaders??null})),sourceConfigFromSource:e=>hm.runSync(hm.map(TB(e),r=>({kind:"google_discovery",service:r.service,version:r.version,discoveryUrl:r.discoveryUrl,defaultHeaders:r.defaultHeaders,scopes:r.scopes}))),validateSource:e=>hm.gen(function*(){let r=yield*TB(e);return{...e,bindingVersion:T_e,binding:{service:r.service,version:r.version,discoveryUrl:r.discoveryUrl,defaultHeaders:r.defaultHeaders??null,scopes:[...r.scopes??[]]}}}),shouldAutoProbe:e=>e.enabled&&(e.status==="draft"||e.status==="probing"),discoveryPriority:({normalizedUrl:e})=>e.includes("$discovery/rest")||e.includes("/discovery/v1/apis/")?500:300,detectSource:({normalizedUrl:e,headers:r})=>met({normalizedUrl:e,headers:r}),syncCatalog:({source:e,resolveAuthMaterialForSlot:r})=>hm.gen(function*(){let i=yield*TB(e),s=yield*r("import"),l=yield*xzt({url:i.discoveryUrl,headers:{...i.defaultHeaders,...s.headers},cookies:s.cookies,queryParams:s.queryParams}).pipe(hm.mapError(b=>S5(b)?b:new Error(`Failed fetching Google Discovery document for ${e.id}: ${b.message}`))),d=yield*mee(e.name,l),h=det(d),S=Date.now();return qN({fragment:pzt({source:e,documents:[{documentKind:"google_discovery",documentKey:i.discoveryUrl,contentText:l,fetchedAt:S}],operations:h.map(b=>U_n({manifest:d,definition:b}))}),importMetadata:R2({source:e,adapterKey:"google_discovery"}),sourceHash:d.sourceHash})}),getOauth2SetupConfig:({source:e})=>q_n(e),normalizeOauthClientInput:e=>hm.succeed({...e,redirectMode:e.redirectMode??"loopback"}),invoke:e=>hm.tryPromise({try:async()=>{let r=hm.runSync(TB(e.source)),i=Pj({executableId:e.executable.id,label:"Google Discovery",version:e.executable.bindingVersion,expectedVersion:rx,schema:x_e,value:e.executable.binding}),s=L_n(e.args),l=M_n({pathTemplate:i.invocation.path,args:s,parameters:i.invocation.parameters}),d=new URL(l.replace(/^\//,""),j_n({providerData:i})),h={...r.defaultHeaders};for(let ie of i.invocation.parameters){if(ie.location==="path")continue;let te=s[ie.name];if(te==null&&ie.required)throw new Error(`Missing required ${ie.location} parameter: ${ie.name}`);let X=Tzt(te,ie.repeated);if(X.length!==0){if(ie.location==="query"){for(let Re of X)d.searchParams.append(ie.name,Re);continue}ie.location==="header"&&(h[ie.name]=ie.repeated?X.join(","):X[0])}}let S=b6({url:d,queryParams:e.auth.queryParams}),b=pD({headers:{...h,...e.auth.headers},cookies:e.auth.cookies}),A,L=Object.keys(e.auth.bodyValues).length>0;i.invocation.requestSchemaId!==null&&(s.body!==void 0||L)&&(A=JSON.stringify(X7({body:s.body!==void 0?s.body:{},bodyValues:e.auth.bodyValues,label:`${i.invocation.method.toUpperCase()} ${i.invocation.path}`})),"content-type"in b||(b["content-type"]="application/json"));let V=await fetch(S.toString(),{method:i.invocation.method.toUpperCase(),headers:b,...A!==void 0?{body:A}:{}}),j=await $_n(V);return{data:V.ok?j:null,error:V.ok?null:j,headers:B_n(V),status:V.status}},catch:r=>r instanceof Error?r:new Error(String(r))})};import*as Nh from"effect/Schema";var kzt=Nh.Literal("request","field"),Czt=Nh.Literal("query","mutation"),E_e=Nh.Struct({kind:Nh.Literal("graphql"),toolKind:kzt,toolId:Nh.String,rawToolId:Nh.NullOr(Nh.String),group:Nh.NullOr(Nh.String),leaf:Nh.NullOr(Nh.String),fieldName:Nh.NullOr(Nh.String),operationType:Nh.NullOr(Czt),operationName:Nh.NullOr(Nh.String),operationDocument:Nh.NullOr(Nh.String),queryTypeName:Nh.NullOr(Nh.String),mutationTypeName:Nh.NullOr(Nh.String),subscriptionTypeName:Nh.NullOr(Nh.String)});import*as KWt from"effect/Either";import*as $B from"effect/Effect";var Np=fJ(RWt(),1);import*as JSn from"effect/Either";import*as Cde from"effect/Effect";import*as r4 from"effect/Schema";import*as nwe from"effect/HashMap";import*as UWt from"effect/Option";var LWt=320;var VSn=["id","identifier","key","slug","name","title","number","url","state","status","success"],WSn=["node","nodes","edge","edges","pageInfo","viewer","user","users","team","teams","project","projects","organization","issue","issues","creator","assignee","items"];var pit=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},GSn=e=>typeof e=="string"&&e.trim().length>0?e:null;var zWt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1 $2").replace(/[^a-zA-Z0-9]+/g," ").trim().split(/\s+/).filter(r=>r.length>0),qWt=e=>{let r=zWt(e).map(l=>l.toLowerCase());if(r.length===0)return"tool";let[i,...s]=r;return`${i}${s.map(l=>`${l[0]?.toUpperCase()??""}${l.slice(1)}`).join("")}`},twe=e=>{let r=qWt(e);return`${r[0]?.toUpperCase()??""}${r.slice(1)}`},HSn=e=>zWt(e).map(r=>`${r[0]?.toUpperCase()??""}${r.slice(1)}`).join(" "),rwe=(e,r)=>{let i=r?.trim();return i?{...e,description:i}:e},JWt=(e,r)=>r!==void 0?{...e,default:r}:e,_it=(e,r)=>{let i=r?.trim();return i?{...e,deprecated:!0,"x-deprecationReason":i}:e},KSn=e=>{let r;try{r=JSON.parse(e)}catch(l){throw new Error(`GraphQL document is not valid JSON: ${l instanceof Error?l.message:String(l)}`)}let i=pit(r);if(Array.isArray(i.errors)&&i.errors.length>0){let l=i.errors.map(d=>GSn(pit(d).message)).filter(d=>d!==null);throw new Error(l.length>0?`GraphQL introspection returned errors: ${l.join("; ")}`:"GraphQL introspection returned errors")}let s=i.data;if(!s||typeof s!="object"||!("__schema"in s))throw new Error("GraphQL introspection document is missing data.__schema");return s},QSn={type:"object",properties:{query:{type:"string",description:"GraphQL query or mutation document."},variables:{type:"object",description:"Optional GraphQL variables.",additionalProperties:!0},operationName:{type:"string",description:"Optional GraphQL operation name."},headers:{type:"object",description:"Optional per-request headers.",additionalProperties:{type:"string"}}},required:["query"],additionalProperties:!1},ZSn={type:"object",properties:{status:{type:"number"},headers:{type:"object",additionalProperties:{type:"string"}},body:{}},required:["status","headers","body"],additionalProperties:!1},iwe=(0,Np.getIntrospectionQuery)({descriptions:!0,inputValueDeprecation:!0,schemaDescription:!0}),XSn=e=>{switch(e){case"String":case"ID":case"Date":case"DateTime":case"DateTimeOrDuration":case"Duration":case"UUID":case"TimelessDate":case"TimelessDateOrDuration":case"URI":return{type:"string"};case"Int":case"Float":return{type:"number"};case"Boolean":return{type:"boolean"};case"JSONObject":return{type:"object",additionalProperties:!0};case"JSONString":return{type:"string"};case"JSON":return{};default:return{}}},YSn=e=>{switch(e){case"String":return"value";case"ID":return"id";case"Date":return"2026-03-08";case"DateTime":case"DateTimeOrDuration":return"2026-03-08T00:00:00.000Z";case"UUID":return"00000000-0000-0000-0000-000000000000";case"TimelessDate":case"TimelessDateOrDuration":return"2026-03-08";case"Duration":return"P1D";case"URI":return"https://example.com";case"Int":return 1;case"Float":return 1.5;case"Boolean":return!0;case"JSONObject":return{};case"JSONString":return"{}";default:return{}}},Dde="#/$defs/graphql",ebn=e=>`${Dde}/scalars/${e}`,tbn=e=>`${Dde}/enums/${e}`,rbn=e=>`${Dde}/input/${e}`,nbn=(e,r)=>`${Dde}/output/${r===0?e:`${e}__depth${r}`}`,ibn=()=>`${Dde}/output/GraphqlTypenameOnly`,kde=e=>({$ref:e}),obn=()=>({type:"object",properties:{__typename:{type:"string"}},required:["__typename"],additionalProperties:!1}),abn=()=>{let e={},r=new Map,i=(L,V)=>{e[L]=JSON.stringify(V)},s=()=>{let L=ibn();return L in e||i(L,obn()),kde(L)},l=L=>{let V=ebn(L);return V in e||i(V,XSn(L)),kde(V)},d=(L,V)=>{let j=tbn(L);return j in e||i(j,{type:"string",enum:[...V]}),kde(j)},h=L=>{let V=rbn(L.name);if(!(V in e)){i(V,{});let j=Object.values(L.getFields()),ie=Object.fromEntries(j.map(X=>{let Re=S(X.type),Je=_it(JWt(rwe(Re,X.description),X.defaultValue),X.deprecationReason);return[X.name,Je]})),te=j.filter(X=>(0,Np.isNonNullType)(X.type)&&X.defaultValue===void 0).map(X=>X.name);i(V,{type:"object",properties:ie,...te.length>0?{required:te}:{},additionalProperties:!1})}return kde(V)},S=L=>{if((0,Np.isNonNullType)(L))return S(L.ofType);if((0,Np.isListType)(L))return{type:"array",items:S(L.ofType)};let V=(0,Np.getNamedType)(L);return(0,Np.isScalarType)(V)?l(V.name):(0,Np.isEnumType)(V)?d(V.name,V.getValues().map(j=>j.name)):(0,Np.isInputObjectType)(V)?h(V):{}},b=(L,V)=>{if((0,Np.isScalarType)(L))return{selectionSet:"",schema:l(L.name)};if((0,Np.isEnumType)(L))return{selectionSet:"",schema:d(L.name,L.getValues().map(hr=>hr.name))};let j=nbn(L.name,V),ie=r.get(j);if(ie)return ie;if((0,Np.isUnionType)(L)){let hr={selectionSet:"{ __typename }",schema:s()};return r.set(j,hr),hr}if(!(0,Np.isObjectType)(L)&&!(0,Np.isInterfaceType)(L))return{selectionSet:"{ __typename }",schema:s()};let te={selectionSet:"{ __typename }",schema:s()};if(r.set(j,te),V>=2)return te;let X=Object.values(L.getFields()).filter(hr=>!hr.name.startsWith("__")),Re=X.filter(hr=>(0,Np.isLeafType)((0,Np.getNamedType)(hr.type))),Je=X.filter(hr=>!(0,Np.isLeafType)((0,Np.getNamedType)(hr.type))),pt=MWt({fields:Re,preferredNames:VSn,limit:3}),$e=MWt({fields:Je,preferredNames:WSn,limit:2}),xt=dit([...pt,...$e]);if(xt.length===0)return te;let tr=[],ht={},wt=[];for(let hr of xt){let Hi=A(hr.type,V+1),un=_it(rwe(Hi.schema,hr.description),hr.deprecationReason);ht[hr.name]=un,wt.push(hr.name),tr.push(Hi.selectionSet.length>0?`${hr.name} ${Hi.selectionSet}`:hr.name)}ht.__typename={type:"string"},wt.push("__typename"),tr.push("__typename"),i(j,{type:"object",properties:ht,required:wt,additionalProperties:!1});let Ut={selectionSet:`{ ${tr.join(" ")} }`,schema:kde(j)};return r.set(j,Ut),Ut},A=(L,V=0)=>{if((0,Np.isNonNullType)(L))return A(L.ofType,V);if((0,Np.isListType)(L)){let j=A(L.ofType,V);return{selectionSet:j.selectionSet,schema:{type:"array",items:j.schema}}}return b((0,Np.getNamedType)(L),V)};return{refTable:e,inputSchemaForType:S,selectedOutputForType:A}},ewe=(e,r=0)=>{if((0,Np.isNonNullType)(e))return ewe(e.ofType,r);if((0,Np.isListType)(e))return[ewe(e.ofType,r+1)];let i=(0,Np.getNamedType)(e);if((0,Np.isScalarType)(i))return YSn(i.name);if((0,Np.isEnumType)(i))return i.getValues()[0]?.name??"VALUE";if((0,Np.isInputObjectType)(i)){if(r>=2)return{};let s=Object.values(i.getFields()),l=s.filter(h=>(0,Np.isNonNullType)(h.type)&&h.defaultValue===void 0),d=l.length>0?l:s.slice(0,1);return Object.fromEntries(d.map(h=>[h.name,h.defaultValue??ewe(h.type,r+1)]))}return{}},dit=e=>{let r=new Set,i=[];for(let s of e)r.has(s.name)||(r.add(s.name),i.push(s));return i},MWt=e=>{let r=e.preferredNames.map(i=>e.fields.find(s=>s.name===i)).filter(i=>i!==void 0);return r.length>=e.limit?dit(r).slice(0,e.limit):dit([...r,...e.fields]).slice(0,e.limit)},fit=e=>(0,Np.isNonNullType)(e)?`${fit(e.ofType)}!`:(0,Np.isListType)(e)?`[${fit(e.ofType)}]`:e.name,sbn=(e,r)=>{let i=Object.fromEntries(e.map(l=>{let d=r.inputSchemaForType(l.type),h=_it(JWt(rwe(d,l.description),l.defaultValue),l.deprecationReason);return[l.name,h]})),s=e.filter(l=>(0,Np.isNonNullType)(l.type)&&l.defaultValue===void 0).map(l=>l.name);return{type:"object",properties:{...i,headers:{type:"object",description:"Optional per-request headers.",additionalProperties:{type:"string"}}},...s.length>0?{required:s}:{},additionalProperties:!1}},cbn=(e,r)=>{let i=r.selectedOutputForType(e);return{type:"object",properties:{data:rwe(i.schema,"Value returned for the selected GraphQL field."),errors:{type:"array",items:{type:"object",properties:{message:{type:"string",description:"GraphQL error message."},path:{type:"array",description:"Path to the field that produced the error.",items:{anyOf:[{type:"string"},{type:"number"}]}},locations:{type:"array",description:"Source locations for the error in the GraphQL document.",items:{type:"object",properties:{line:{type:"number"},column:{type:"number"}},required:["line","column"],additionalProperties:!1}},extensions:{type:"object",description:"Additional provider-specific GraphQL error metadata.",additionalProperties:!0}},required:["message"],additionalProperties:!0}}},required:["data","errors"],additionalProperties:!1}},lbn=e=>{if(e.length===0)return{};let r=e.filter(l=>(0,Np.isNonNullType)(l.type)&&l.defaultValue===void 0),i=r.length>0?r:e.slice(0,1);return Object.fromEntries(i.map(l=>[l.name,l.defaultValue??ewe(l.type)]))},ubn=e=>{let r=e.bundleBuilder.selectedOutputForType(e.fieldType),i=`${twe(e.operationType)}${twe(e.fieldName)}`,s=e.args.map(S=>`$${S.name}: ${fit(S.type)}`).join(", "),l=e.args.map(S=>`${S.name}: $${S.name}`).join(", "),d=l.length>0?`${e.fieldName}(${l})`:e.fieldName,h=r.selectionSet.length>0?` ${r.selectionSet}`:"";return{operationName:i,operationDocument:`${e.operationType} ${i}${s.length>0?`(${s})`:""} { ${d}${h} }`}},pbn=e=>{let r=e.description?.trim();return r||`Execute the GraphQL ${e.operationType} field '${e.fieldName}'.`},_bn=e=>({kind:"request",toolId:"request",rawToolId:"request",toolName:"GraphQL request",description:`Execute a raw GraphQL request against ${e}.`,inputSchema:QSn,outputSchema:ZSn,exampleInput:{query:"query { __typename }"}}),dbn=e=>{let r=e.map(l=>({...l})),i="request",s=l=>{let d=new Map;for(let h of r){let S=d.get(h.toolId)??[];S.push(h),d.set(h.toolId,S)}for(let[h,S]of d.entries())if(!(S.length<2&&h!==i))for(let b of S)b.toolId=l(b)};return s(l=>`${l.leaf}${twe(l.operationType)}`),s(l=>`${l.leaf}${twe(l.operationType)}${_D(`${l.group}:${l.fieldName}`).slice(0,6)}`),r.sort((l,d)=>l.toolId.localeCompare(d.toolId)||l.fieldName.localeCompare(d.fieldName)||l.operationType.localeCompare(d.operationType)).map(l=>({...l}))},jWt=e=>e.rootType?Object.values(e.rootType.getFields()).filter(r=>!r.name.startsWith("__")).map(r=>{let i=qWt(r.name),s=cbn(r.type,e.bundleBuilder),l=sbn(r.args,e.bundleBuilder),{operationName:d,operationDocument:h}=ubn({operationType:e.operationType,fieldName:r.name,args:r.args,fieldType:r.type,bundleBuilder:e.bundleBuilder});return{kind:"field",toolId:i,rawToolId:r.name,toolName:HSn(r.name),description:pbn({operationType:e.operationType,fieldName:r.name,description:r.description}),group:e.operationType,leaf:i,fieldName:r.name,operationType:e.operationType,operationName:d,operationDocument:h,inputSchema:l,outputSchema:s,exampleInput:lbn(r.args),searchTerms:[e.operationType,r.name,...r.args.map(S=>S.name),(0,Np.getNamedType)(r.type).name]}}):[],fbn=e=>_D(e),VWt=(e,r)=>Cde.try({try:()=>{let i=KSn(r),s=(0,Np.buildClientSchema)(i),l=fbn(r),d=abn(),h=dbn([...jWt({rootType:s.getQueryType(),operationType:"query",bundleBuilder:d}),...jWt({rootType:s.getMutationType(),operationType:"mutation",bundleBuilder:d})]);return{version:2,sourceHash:l,queryTypeName:s.getQueryType()?.name??null,mutationTypeName:s.getMutationType()?.name??null,subscriptionTypeName:s.getSubscriptionType()?.name??null,...Object.keys(d.refTable).length>0?{schemaRefTable:d.refTable}:{},tools:[...h,_bn(e)]}},catch:i=>i instanceof Error?i:new Error(String(i))}),WWt=e=>e.tools.map(r=>({toolId:r.toolId,rawToolId:r.rawToolId,name:r.toolName,description:r.description??`Execute ${r.toolName}.`,group:r.kind==="field"?r.group:null,leaf:r.kind==="field"?r.leaf:null,fieldName:r.kind==="field"?r.fieldName:null,operationType:r.kind==="field"?r.operationType:null,operationName:r.kind==="field"?r.operationName:null,operationDocument:r.kind==="field"?r.operationDocument:null,searchTerms:r.kind==="field"?r.searchTerms:["request","graphql","query","mutation"]})),mbn=e=>{if(!e||Object.keys(e).length===0)return;let r={};for(let[i,s]of Object.entries(e)){if(!i.startsWith("#/$defs/"))continue;let l=typeof s=="string"?(()=>{try{return JSON.parse(s)}catch{return s}})():s,d=i.slice(8).split("/").filter(h=>h.length>0);HWt(r,d,l)}return Object.keys(r).length>0?r:void 0},BWt=e=>{if(e.schema===void 0)return;if(e.defsRoot===void 0)return e.schema;let r=e.cache.get(e.schema);if(r)return r;let i=e.schema.$defs,s=i&&typeof i=="object"&&!Array.isArray(i)?{...e.schema,$defs:{...e.defsRoot,...i}}:{...e.schema,$defs:e.defsRoot};return e.cache.set(e.schema,s),s},$Wt=new WeakMap,hbn=e=>{let r=$Wt.get(e);if(r)return r;let i=nwe.fromIterable(e.tools.map(S=>[S.toolId,S])),s=mbn(e.schemaRefTable),l=new WeakMap,d=new Map,h={resolve(S){let b=d.get(S.toolId);if(b)return b;let A=UWt.getOrUndefined(nwe.get(i,S.toolId)),L=BWt({schema:A?.inputSchema,defsRoot:s,cache:l}),V=BWt({schema:A?.outputSchema,defsRoot:s,cache:l}),j={inputTypePreview:S6(L,"unknown",LWt),outputTypePreview:S6(V,"unknown",LWt),...L!==void 0?{inputSchema:L}:{},...V!==void 0?{outputSchema:V}:{},...A?.exampleInput!==void 0?{exampleInput:A.exampleInput}:{},providerData:{kind:"graphql",toolKind:A?.kind??"request",toolId:S.toolId,rawToolId:S.rawToolId,group:S.group,leaf:S.leaf,fieldName:S.fieldName,operationType:S.operationType,operationName:S.operationName,operationDocument:S.operationDocument,queryTypeName:e.queryTypeName,mutationTypeName:e.mutationTypeName,subscriptionTypeName:e.subscriptionTypeName}};return d.set(S.toolId,j),j}};return $Wt.set(e,h),h},GWt=e=>hbn(e.manifest).resolve(e.definition),pKn=r4.decodeUnknownEither(E_e),_Kn=r4.decodeUnknownEither(r4.parseJson(r4.Record({key:r4.String,value:r4.Unknown}))),HWt=(e,r,i)=>{if(r.length===0)return;let[s,...l]=r;if(!s)return;if(l.length===0){e[s]=i;return}let d=pit(e[s]);e[s]=d,HWt(d,l,i)};var mit=e=>$B.gen(function*(){let r=yield*$B.either(eY({method:"POST",url:e.normalizedUrl,headers:{accept:"application/graphql-response+json, application/json","content-type":"application/json",...e.headers},body:JSON.stringify({query:iwe})}));if(KWt.isLeft(r))return null;let i=pFt(r.right.text),s=(r.right.headers["content-type"]??"").toLowerCase(),l=E1(i)&&E1(i.data)?i.data:null;if(l&&E1(l.__schema)){let A=$N(e.normalizedUrl);return{detectedKind:"graphql",confidence:"high",endpoint:e.normalizedUrl,specUrl:null,name:A,namespace:vT(A),transport:null,authInference:UN("GraphQL introspection succeeded without an advertised auth requirement","medium"),toolCount:null,warnings:[]}}let h=(E1(i)&&Array.isArray(i.errors)?i.errors:[]).map(A=>E1(A)&&typeof A.message=="string"?A.message:null).filter(A=>A!==null);if(!(s.includes("application/graphql-response+json")||Cj(e.normalizedUrl)&&r.right.status>=400&&r.right.status<500||h.some(A=>/introspection|graphql|query/i.test(A))))return null;let b=$N(e.normalizedUrl);return{detectedKind:"graphql",confidence:l?"high":"medium",endpoint:e.normalizedUrl,specUrl:null,name:b,namespace:vT(b),transport:null,authInference:r.right.status===401||r.right.status===403?lFt(r.right.headers,"GraphQL endpoint rejected introspection and did not advertise a concrete auth scheme"):UN(h.length>0?`GraphQL endpoint responded with errors during introspection: ${h[0]}`:"GraphQL endpoint shape detected","medium"),toolCount:null,warnings:h.length>0?[h[0]]:[]}}).pipe($B.catchAll(()=>$B.succeed(null)));import*as Fee from"effect/Schema";var hit=Fee.Struct({defaultHeaders:Fee.optional(Fee.NullOr(M_))});var QWt=()=>({type:"array",items:{type:"object",properties:{message:{type:"string",description:"GraphQL error message."},path:{type:"array",description:"Path to the field that produced the error.",items:{anyOf:[{type:"string"},{type:"number"}]}},locations:{type:"array",description:"Source locations for the error in the GraphQL document.",items:{type:"object",properties:{line:{type:"number"},column:{type:"number"}},required:["line","column"],additionalProperties:!1}},extensions:{type:"object",description:"Additional provider-specific GraphQL error metadata.",additionalProperties:!0}},required:["message"],additionalProperties:!0}}),gbn=e=>{if(e.toolKind!=="field")return _k(e.outputSchema);let r=_k(e.outputSchema),i=_k(_k(r.properties).data);return Object.keys(i).length>0?tY(i,e.outputSchema):r},ybn=e=>{if(e.toolKind!=="field")return QWt();let r=_k(e.outputSchema),i=_k(_k(r.properties).errors);return Object.keys(i).length>0?tY(i,e.outputSchema):QWt()},vbn=e=>{let r=d5(e.source,e.operation.providerData.toolId),i=vD.make(`cap_${Td({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),s=pk.make(`exec_${Td({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"graphql"})}`),l=e.operation.inputSchema!==void 0?e.importer.importSchema(e.operation.inputSchema,`#/graphql/${e.operation.providerData.toolId}/call`):e.importer.importSchema({type:"object",additionalProperties:!0},`#/graphql/${e.operation.providerData.toolId}/call`),d=e.operation.outputSchema!==void 0?e.importer.importSchema(gbn({toolKind:e.operation.providerData.toolKind,outputSchema:e.operation.outputSchema}),`#/graphql/${e.operation.providerData.toolId}/data`):e.importer.importSchema({type:"object",additionalProperties:!0},`#/graphql/${e.operation.providerData.toolId}/data`),h=e.importer.importSchema(ybn({toolKind:e.operation.providerData.toolKind,outputSchema:e.operation.outputSchema}),`#/graphql/${e.operation.providerData.toolId}/errors`),S=SD.make(`response_${Td({capabilityId:i})}`);x_(e.catalog.symbols)[S]={id:S,kind:"response",...Gd({description:e.operation.description})?{docs:Gd({description:e.operation.description})}:{},contents:[{mediaType:"application/json",shapeId:d}],synthetic:!1,provenance:ld(e.documentId,`#/graphql/${e.operation.providerData.toolId}/response`)};let b=m5({catalog:e.catalog,responseId:S,provenance:ld(e.documentId,`#/graphql/${e.operation.providerData.toolId}/responseSet`)});x_(e.catalog.executables)[s]={id:s,capabilityId:i,scopeId:e.serviceScopeId,adapterKey:"graphql",bindingVersion:rx,binding:e.operation.providerData,projection:{responseSetId:b,callShapeId:l,resultDataShapeId:d,resultErrorShapeId:h},display:{protocol:"graphql",method:e.operation.providerData.operationType??"query",pathTemplate:e.operation.providerData.fieldName??e.operation.providerData.leaf??e.operation.providerData.toolId,operationId:e.operation.providerData.fieldName??e.operation.providerData.leaf??e.operation.providerData.toolId,group:e.operation.providerData.group,leaf:e.operation.providerData.leaf,rawToolId:e.operation.providerData.toolId,title:e.operation.title??null,summary:e.operation.description??null},synthetic:!1,provenance:ld(e.documentId,`#/graphql/${e.operation.providerData.toolId}/executable`)};let A=e.operation.effect;x_(e.catalog.capabilities)[i]={id:i,serviceScopeId:e.serviceScopeId,surface:{toolPath:r,...e.operation.title?{title:e.operation.title}:{},...e.operation.description?{summary:e.operation.description}:{},...e.operation.providerData.group?{tags:[e.operation.providerData.group]}:{}},semantics:{effect:A,safe:A==="read",idempotent:A==="read",destructive:!1},auth:{kind:"none"},interaction:f5(A),executableIds:[s],synthetic:!1,provenance:ld(e.documentId,`#/graphql/${e.operation.providerData.toolId}/capability`)}},ZWt=e=>h5({source:e.source,documents:e.documents,resourceDialectUri:"https://spec.graphql.org/",registerOperations:({catalog:r,documentId:i,serviceScopeId:s,importer:l})=>{for(let d of e.operations)vbn({catalog:r,source:e.source,documentId:i,serviceScopeId:s,operation:d,importer:l})}});import*as bf from"effect/Effect";import*as I1 from"effect/Schema";var Sbn=I1.extend(zke,I1.extend(Ij,I1.Struct({kind:I1.Literal("graphql"),auth:I1.optional(v5)}))),bbn=I1.extend(Ij,I1.Struct({kind:I1.Literal("graphql"),endpoint:I1.String,name:sy,namespace:sy,auth:I1.optional(v5)})),XWt=I1.Struct({defaultHeaders:I1.NullOr(M_)}),xbn=I1.Struct({defaultHeaders:I1.optional(I1.NullOr(M_))}),Ade=1,YWt=15e3,eGt=(e,r)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&r.some(i=>Object.prototype.hasOwnProperty.call(e,i)),tW=e=>bf.gen(function*(){return eGt(e.binding,["transport","queryParams","headers"])?yield*og("graphql/adapter","GraphQL sources cannot define MCP transport settings"):eGt(e.binding,["specUrl"])?yield*og("graphql/adapter","GraphQL sources cannot define specUrl"):{defaultHeaders:(yield*GN({sourceId:e.id,label:"GraphQL",version:e.bindingVersion,expectedVersion:Ade,schema:xbn,value:e.binding,allowedKeys:["defaultHeaders"]})).defaultHeaders??null}}),Tbn=e=>bf.tryPromise({try:async()=>{let r;try{r=await fetch(b6({url:e.url,queryParams:e.queryParams}).toString(),{method:"POST",headers:pD({headers:{"content-type":"application/json",...e.headers},cookies:e.cookies}),body:JSON.stringify(X7({body:{query:iwe,operationName:"IntrospectionQuery"},bodyValues:e.bodyValues,label:`GraphQL introspection ${e.url}`})),signal:AbortSignal.timeout(YWt)})}catch(l){throw l instanceof Error&&(l.name==="AbortError"||l.name==="TimeoutError")?new Error(`GraphQL introspection timed out after ${YWt}ms`):l}let i=await r.text(),s;try{s=JSON.parse(i)}catch(l){throw new Error(`GraphQL introspection endpoint did not return JSON: ${l instanceof Error?l.message:String(l)}`)}if(!r.ok)throw r.status===401||r.status===403?new y5("import",`GraphQL introspection requires credentials (status ${r.status})`):new Error(`GraphQL introspection failed with status ${r.status}`);return JSON.stringify(s,null,2)},catch:r=>r instanceof Error?r:new Error(String(r))}),Ebn=e=>{let r=GWt({manifest:e.manifest,definition:e.definition});return{toolId:e.definition.toolId,title:e.definition.name,description:e.definition.description,effect:e.definition.operationType==="query"?"read":"write",inputSchema:r.inputSchema,outputSchema:r.outputSchema,providerData:r.providerData}},wde=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},tGt=e=>typeof e=="string"&&e.trim().length>0?e:null,kbn=e=>Object.fromEntries(Object.entries(wde(e)).flatMap(([r,i])=>typeof i=="string"?[[r,i]]:[])),Cbn=e=>{let r={};return e.headers.forEach((i,s)=>{r[s]=i}),r},Dbn=async e=>(e.headers.get("content-type")?.toLowerCase()??"").includes("application/json")?e.json():e.text(),Abn=e=>Object.fromEntries(Object.entries(e).filter(([,r])=>r!==void 0)),rGt={key:"graphql",displayName:"GraphQL",catalogKind:"imported",connectStrategy:"direct",credentialStrategy:"credential_managed",bindingConfigVersion:Ade,providerKey:"generic_graphql",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:Sbn,executorAddInputSchema:bbn,executorAddHelpText:["endpoint is the GraphQL HTTP endpoint."],executorAddInputSignatureWidth:320,localConfigBindingSchema:hit,localConfigBindingFromSource:e=>bf.runSync(bf.map(tW(e),r=>({defaultHeaders:r.defaultHeaders}))),serializeBindingConfig:e=>VN({adapterKey:"graphql",version:Ade,payloadSchema:XWt,payload:bf.runSync(tW(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:r})=>bf.map(WN({sourceId:e,label:"GraphQL",adapterKey:"graphql",version:Ade,payloadSchema:XWt,value:r}),({version:i,payload:s})=>({version:i,payload:s})),bindingStateFromSource:e=>bf.map(tW(e),r=>({...JN,defaultHeaders:r.defaultHeaders})),sourceConfigFromSource:e=>bf.runSync(bf.map(tW(e),r=>({kind:"graphql",endpoint:e.endpoint,defaultHeaders:r.defaultHeaders}))),validateSource:e=>bf.gen(function*(){let r=yield*tW(e);return{...e,bindingVersion:Ade,binding:{defaultHeaders:r.defaultHeaders}}}),shouldAutoProbe:e=>e.enabled&&(e.status==="draft"||e.status==="probing"),discoveryPriority:({normalizedUrl:e})=>Cj(e)?400:150,detectSource:({normalizedUrl:e,headers:r})=>mit({normalizedUrl:e,headers:r}),syncCatalog:({source:e,resolveAuthMaterialForSlot:r})=>bf.gen(function*(){let i=yield*tW(e),s=yield*r("import"),l=yield*Tbn({url:e.endpoint,headers:{...i.defaultHeaders,...s.headers},queryParams:s.queryParams,cookies:s.cookies,bodyValues:s.bodyValues}).pipe(bf.withSpan("graphql.introspection.fetch",{kind:"client",attributes:{"executor.source.id":e.id,"executor.source.endpoint":e.endpoint}}),bf.mapError(L=>S5(L)?L:new Error(`Failed fetching GraphQL introspection for ${e.id}: ${L.message}`))),d=yield*VWt(e.name,l).pipe(bf.withSpan("graphql.manifest.extract",{attributes:{"executor.source.id":e.id}}),bf.mapError(L=>L instanceof Error?L:new Error(String(L))));yield*bf.annotateCurrentSpan("graphql.tool.count",d.tools.length);let h=yield*bf.sync(()=>WWt(d)).pipe(bf.withSpan("graphql.definitions.compile",{attributes:{"executor.source.id":e.id,"graphql.tool.count":d.tools.length}}));yield*bf.annotateCurrentSpan("graphql.definition.count",h.length);let S=yield*bf.sync(()=>h.map(L=>Ebn({definition:L,manifest:d}))).pipe(bf.withSpan("graphql.operations.build",{attributes:{"executor.source.id":e.id,"graphql.definition.count":h.length}})),b=Date.now(),A=yield*bf.sync(()=>ZWt({source:e,documents:[{documentKind:"graphql_introspection",documentKey:e.endpoint,contentText:l,fetchedAt:b}],operations:S})).pipe(bf.withSpan("graphql.snapshot.build",{attributes:{"executor.source.id":e.id,"graphql.operation.count":S.length}}));return qN({fragment:A,importMetadata:R2({source:e,adapterKey:"graphql"}),sourceHash:d.sourceHash})}).pipe(bf.withSpan("graphql.syncCatalog",{attributes:{"executor.source.id":e.id,"executor.source.endpoint":e.endpoint}})),invoke:e=>bf.tryPromise({try:async()=>{let r=bf.runSync(tW(e.source)),i=Pj({executableId:e.executable.id,label:"GraphQL",version:e.executable.bindingVersion,expectedVersion:rx,schema:E_e,value:e.executable.binding}),s=wde(e.args),l=pD({headers:{"content-type":"application/json",...r.defaultHeaders,...e.auth.headers,...kbn(s.headers)},cookies:e.auth.cookies}),d=b6({url:e.source.endpoint,queryParams:e.auth.queryParams}).toString(),h=i.toolKind==="request"||typeof i.operationDocument!="string"||i.operationDocument.trim().length===0,S=h?(()=>{let Re=tGt(s.query);if(Re===null)throw new Error("GraphQL request tools require args.query");return Re})():i.operationDocument,b=h?s.variables!==void 0?wde(s.variables):void 0:Abn(Object.fromEntries(Object.entries(s).filter(([Re])=>Re!=="headers"))),A=h?tGt(s.operationName)??void 0:i.operationName??void 0,L=await fetch(d,{method:"POST",headers:l,body:JSON.stringify({query:S,...b?{variables:b}:{},...A?{operationName:A}:{}})}),V=await Dbn(L),j=wde(V),ie=Array.isArray(j.errors)?j.errors:[],te=i.fieldName??i.leaf??i.toolId,X=wde(j.data);return{data:h?V:X[te]??null,error:ie.length>0?ie:L.status>=400?V:null,headers:Cbn(L),status:L.status}},catch:r=>r instanceof Error?r:new Error(String(r))})};var VKt=fJ(JKt(),1),rkn=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),nkn=e=>JSON.parse(e),ikn=e=>(0,VKt.parse)(e),okn=e=>{try{return nkn(e)}catch{return ikn(e)}},sfe=e=>{let r=e.trim();if(r.length===0)throw new Error("OpenAPI document is empty");try{let i=okn(r);if(!rkn(i))throw new Error("OpenAPI document must parse to an object");return i}catch(i){throw new Error(`Unable to parse OpenAPI document as JSON or YAML: ${i instanceof Error?i.message:String(i)}`)}};import*as dQt from"effect/Data";import*as a4 from"effect/Effect";import{pipe as gkn}from"effect/Function";import*as sIe from"effect/ParseResult";import*as cIe from"effect/Schema";function GKt(e,r){let i,s;try{let h=WKt(e,W2.__wbindgen_malloc,W2.__wbindgen_realloc),S=nIe,b=WKt(r,W2.__wbindgen_malloc,W2.__wbindgen_realloc),A=nIe,L=W2.extract_manifest_json_wasm(h,S,b,A);var l=L[0],d=L[1];if(L[3])throw l=0,d=0,skn(L[2]);return i=l,s=d,HKt(l,d)}finally{W2.__wbindgen_free(i,s,1)}}function akn(){return{__proto__:null,"./openapi_extractor_bg.js":{__proto__:null,__wbindgen_cast_0000000000000001:function(r,i){return HKt(r,i)},__wbindgen_init_externref_table:function(){let r=W2.__wbindgen_externrefs,i=r.grow(4);r.set(0,void 0),r.set(i+0,void 0),r.set(i+1,null),r.set(i+2,!0),r.set(i+3,!1)}}}}function HKt(e,r){return e=e>>>0,lkn(e,r)}var cfe=null;function tIe(){return(cfe===null||cfe.byteLength===0)&&(cfe=new Uint8Array(W2.memory.buffer)),cfe}function WKt(e,r,i){if(i===void 0){let S=lfe.encode(e),b=r(S.length,1)>>>0;return tIe().subarray(b,b+S.length).set(S),nIe=S.length,b}let s=e.length,l=r(s,1)>>>0,d=tIe(),h=0;for(;h127)break;d[l+h]=S}if(h!==s){h!==0&&(e=e.slice(h)),l=i(l,s,s=h+e.length*3,1)>>>0;let S=tIe().subarray(l+h,l+s),b=lfe.encodeInto(e,S);h+=b.written,l=i(l,s,h,1)>>>0}return nIe=h,l}function skn(e){let r=W2.__wbindgen_externrefs.get(e);return W2.__externref_table_dealloc(e),r}var rIe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});rIe.decode();var ckn=2146435072,Zot=0;function lkn(e,r){return Zot+=r,Zot>=ckn&&(rIe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),rIe.decode(),Zot=r),rIe.decode(tIe().subarray(e,e+r))}var lfe=new TextEncoder;"encodeInto"in lfe||(lfe.encodeInto=function(e,r){let i=lfe.encode(e);return r.set(i),{read:e.length,written:i.length}});var nIe=0,ukn,W2;function pkn(e,r){return W2=e.exports,ukn=r,cfe=null,W2.__wbindgen_start(),W2}async function _kn(e,r){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,r)}catch(l){if(e.ok&&i(e.type)&&e.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",l);else throw l}let s=await e.arrayBuffer();return await WebAssembly.instantiate(s,r)}else{let s=await WebAssembly.instantiate(e,r);return s instanceof WebAssembly.Instance?{instance:s,module:e}:s}function i(s){switch(s){case"basic":case"cors":case"default":return!0}return!1}}async function Xot(e){if(W2!==void 0)return W2;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),e===void 0&&(e=new URL("openapi_extractor_bg.wasm",import.meta.url));let r=akn();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:i,module:s}=await _kn(await e,r);return pkn(i,s)}var iIe,QKt=new URL("./openapi-extractor-wasm/openapi_extractor_bg.wasm",import.meta.url),KKt=e=>e instanceof Error?e.message:String(e),dkn=async()=>{await Xot({module_or_path:QKt})},fkn=async()=>{let[{readFile:e},{fileURLToPath:r}]=await Promise.all([import("node:fs/promises"),import("node:url")]),i=r(QKt),s=await e(i);await Xot({module_or_path:s})},mkn=()=>(iIe||(iIe=(async()=>{let e;try{await dkn();return}catch(r){e=r}try{await fkn();return}catch(r){throw new Error(["Unable to initialize OpenAPI extractor wasm.",`runtime-url failed: ${KKt(e)}`,`node-fs fallback failed: ${KKt(r)}`].join(" "))}})().catch(e=>{throw iIe=void 0,e})),iIe),ZKt=(e,r)=>mkn().then(()=>GKt(e,r));import{Schema as vn}from"effect";var XKt=["get","put","post","delete","patch","head","options","trace"],YKt=["path","query","header","cookie"],Wee=vn.Literal(...XKt),Yot=vn.Literal(...YKt),eQt=vn.Struct({name:vn.String,location:Yot,required:vn.Boolean,style:vn.optional(vn.String),explode:vn.optional(vn.Boolean),allowReserved:vn.optional(vn.Boolean),content:vn.optional(vn.Array(vn.suspend(()=>ufe)))}),ufe=vn.Struct({mediaType:vn.String,schema:vn.optional(vn.Unknown),examples:vn.optional(vn.Array(vn.suspend(()=>lW)))}),tQt=vn.Struct({name:vn.String,description:vn.optional(vn.String),required:vn.optional(vn.Boolean),deprecated:vn.optional(vn.Boolean),schema:vn.optional(vn.Unknown),content:vn.optional(vn.Array(ufe)),style:vn.optional(vn.String),explode:vn.optional(vn.Boolean),examples:vn.optional(vn.Array(vn.suspend(()=>lW)))}),rQt=vn.Struct({required:vn.Boolean,contentTypes:vn.Array(vn.String),contents:vn.optional(vn.Array(ufe))}),ZB=vn.Struct({url:vn.String,description:vn.optional(vn.String),variables:vn.optional(vn.Record({key:vn.String,value:vn.String}))}),pfe=vn.Struct({method:Wee,pathTemplate:vn.String,parameters:vn.Array(eQt),requestBody:vn.NullOr(rQt)}),oIe=vn.Struct({inputSchema:vn.optional(vn.Unknown),outputSchema:vn.optional(vn.Unknown),refHintKeys:vn.optional(vn.Array(vn.String))}),nQt=vn.Union(vn.String,vn.Record({key:vn.String,value:vn.Unknown})),hkn=vn.Record({key:vn.String,value:nQt}),lW=vn.Struct({valueJson:vn.String,mediaType:vn.optional(vn.String),label:vn.optional(vn.String)}),iQt=vn.Struct({name:vn.String,location:Yot,required:vn.Boolean,description:vn.optional(vn.String),examples:vn.optional(vn.Array(lW))}),oQt=vn.Struct({description:vn.optional(vn.String),examples:vn.optional(vn.Array(lW))}),aQt=vn.Struct({statusCode:vn.String,description:vn.optional(vn.String),contentTypes:vn.Array(vn.String),examples:vn.optional(vn.Array(lW))}),_fe=vn.Struct({statusCode:vn.String,description:vn.optional(vn.String),contentTypes:vn.Array(vn.String),schema:vn.optional(vn.Unknown),examples:vn.optional(vn.Array(lW)),contents:vn.optional(vn.Array(ufe)),headers:vn.optional(vn.Array(tQt))}),dfe=vn.Struct({summary:vn.optional(vn.String),deprecated:vn.optional(vn.Boolean),parameters:vn.Array(iQt),requestBody:vn.optional(oQt),response:vn.optional(aQt)}),cW=vn.suspend(()=>vn.Union(vn.Struct({kind:vn.Literal("none")}),vn.Struct({kind:vn.Literal("scheme"),schemeName:vn.String,scopes:vn.optional(vn.Array(vn.String))}),vn.Struct({kind:vn.Literal("allOf"),items:vn.Array(cW)}),vn.Struct({kind:vn.Literal("anyOf"),items:vn.Array(cW)}))),sQt=vn.Literal("apiKey","http","oauth2","openIdConnect"),cQt=vn.Struct({authorizationUrl:vn.optional(vn.String),tokenUrl:vn.optional(vn.String),refreshUrl:vn.optional(vn.String),scopes:vn.optional(vn.Record({key:vn.String,value:vn.String}))}),ffe=vn.Struct({schemeName:vn.String,schemeType:sQt,description:vn.optional(vn.String),placementIn:vn.optional(vn.Literal("header","query","cookie")),placementName:vn.optional(vn.String),scheme:vn.optional(vn.String),bearerFormat:vn.optional(vn.String),openIdConnectUrl:vn.optional(vn.String),flows:vn.optional(vn.Record({key:vn.String,value:cQt}))}),eat=vn.Struct({kind:vn.Literal("openapi"),toolId:vn.String,rawToolId:vn.String,operationId:vn.optional(vn.String),group:vn.String,leaf:vn.String,tags:vn.Array(vn.String),versionSegment:vn.optional(vn.String),method:Wee,path:vn.String,operationHash:vn.String,invocation:pfe,documentation:vn.optional(dfe),responses:vn.optional(vn.Array(_fe)),authRequirement:vn.optional(cW),securitySchemes:vn.optional(vn.Array(ffe)),documentServers:vn.optional(vn.Array(ZB)),servers:vn.optional(vn.Array(ZB))}),lQt=vn.Struct({toolId:vn.String,operationId:vn.optional(vn.String),tags:vn.Array(vn.String),name:vn.String,description:vn.NullOr(vn.String),method:Wee,path:vn.String,invocation:pfe,operationHash:vn.String,typing:vn.optional(oIe),documentation:vn.optional(dfe),responses:vn.optional(vn.Array(_fe)),authRequirement:vn.optional(cW),securitySchemes:vn.optional(vn.Array(ffe)),documentServers:vn.optional(vn.Array(ZB)),servers:vn.optional(vn.Array(ZB))}),tat=vn.Struct({version:vn.Literal(2),sourceHash:vn.String,tools:vn.Array(lQt),refHintTable:vn.optional(vn.Record({key:vn.String,value:vn.String}))});var Gee=class extends dQt.TaggedError("OpenApiExtractionError"){},ykn=cIe.parseJson(tat),vkn=cIe.decodeUnknown(ykn),rat=(e,r,i)=>i instanceof Gee?i:new Gee({sourceName:e,stage:r,message:"OpenAPI extraction failed",details:sIe.isParseError(i)?sIe.TreeFormatter.formatErrorSync(i):String(i)}),Skn=(e,r)=>typeof r=="string"?a4.succeed(r):a4.try({try:()=>JSON.stringify(r),catch:i=>new Gee({sourceName:e,stage:"validate",message:"Unable to serialize OpenAPI input",details:String(i)})}),Yd=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{},mfe=e=>Array.isArray(e)?e:[],Xd=e=>typeof e=="string"&&e.trim().length>0?e.trim():void 0,nat=e=>Array.isArray(e)?e.map(r=>nat(r)):e!==null&&typeof e=="object"?Object.fromEntries(Object.entries(e).sort(([r],[i])=>r.localeCompare(i)).map(([r,i])=>[r,nat(i)])):e,iat=e=>JSON.stringify(nat(e)),p9=(e,r)=>{if(Array.isArray(e)){for(let s of e)p9(s,r);return}if(e===null||typeof e!="object")return;let i=e;typeof i.$ref=="string"&&i.$ref.startsWith("#/")&&r.add(i.$ref);for(let s of Object.values(i))p9(s,r)},bkn=e=>e.replaceAll("~1","/").replaceAll("~0","~"),o4=(e,r,i=new Set)=>{let s=Yd(r),l=typeof s.$ref=="string"?s.$ref:null;if(!l||!l.startsWith("#/")||i.has(l))return r;let d=l.slice(2).split("/").reduce((L,V)=>{if(L!=null)return Yd(L)[bkn(V)]},e);if(d===void 0)return r;let h=new Set(i);h.add(l);let S=Yd(o4(e,d,h)),{$ref:b,...A}=s;return Object.keys(A).length>0?{...S,...A}:S},uQt=e=>/^2\d\d$/.test(e)?0:e==="default"?1:2,fQt=e=>{let r=Object.entries(Yd(e)).sort(([i],[s])=>i.localeCompare(s)).map(([i,s])=>[i,Yd(s)]);return r.find(([i])=>i==="application/json")??r.find(([i])=>i.toLowerCase().includes("+json"))??r.find(([i])=>i.toLowerCase().includes("json"))??r[0]},aIe=e=>fQt(e)?.[1].schema,lIe=(e,r)=>Object.entries(Yd(r)).sort(([s],[l])=>s.localeCompare(l)).map(([s,l])=>{let d=Yd(o4(e,l)),h=mQt(s,d);return{mediaType:s,...d.schema!==void 0?{schema:d.schema}:{},...h.length>0?{examples:h}:{}}}),sat=(e,r={})=>{let i=Yd(e),s=[];i.example!==void 0&&s.push({valueJson:iat(i.example),...r.mediaType?{mediaType:r.mediaType}:{},...r.label?{label:r.label}:{}});let l=Object.entries(Yd(i.examples)).sort(([d],[h])=>d.localeCompare(h));for(let[d,h]of l){let S=Yd(h);s.push({valueJson:iat(S.value!==void 0?S.value:h),...r.mediaType?{mediaType:r.mediaType}:{},label:d})}return s},xkn=e=>sat(e),mQt=(e,r)=>{let i=sat(r,{mediaType:e});return i.length>0?i:xkn(r.schema).map(s=>({...s,mediaType:e}))},Tkn=(e,r,i)=>{let s=Yd(o4(e,i));if(Object.keys(s).length===0)return;let l=lIe(e,s.content),d=l.length>0?[]:sat(s);return{name:r,...Xd(s.description)?{description:Xd(s.description)}:{},...typeof s.required=="boolean"?{required:s.required}:{},...typeof s.deprecated=="boolean"?{deprecated:s.deprecated}:{},...s.schema!==void 0?{schema:s.schema}:{},...l.length>0?{content:l}:{},...Xd(s.style)?{style:Xd(s.style)}:{},...typeof s.explode=="boolean"?{explode:s.explode}:{},...d.length>0?{examples:d}:{}}},Ekn=(e,r)=>Object.entries(Yd(r)).sort(([i],[s])=>i.localeCompare(s)).flatMap(([i,s])=>{let l=Tkn(e,i,s);return l?[l]:[]}),oat=e=>mfe(e).map(r=>Yd(r)).flatMap(r=>{let i=Xd(r.url);if(!i)return[];let s=Object.fromEntries(Object.entries(Yd(r.variables)).sort(([l],[d])=>l.localeCompare(d)).flatMap(([l,d])=>{let h=Yd(d),S=Xd(h.default);return S?[[l,S]]:[]}));return[{url:i,...Xd(r.description)?{description:Xd(r.description)}:{},...Object.keys(s).length>0?{variables:s}:{}}]}),hQt=(e,r)=>Yd(Yd(e.paths)[r.path]),aat=e=>`${e.location}:${e.name}`,kkn=(e,r)=>{let i=new Map,s=hQt(e,r),l=uW(e,r);for(let d of mfe(s.parameters)){let h=Yd(o4(e,d)),S=Xd(h.name),b=Xd(h.in);!S||!b||i.set(aat({location:b,name:S}),h)}for(let d of mfe(l.parameters)){let h=Yd(o4(e,d)),S=Xd(h.name),b=Xd(h.in);!S||!b||i.set(aat({location:b,name:S}),h)}return i},uW=(e,r)=>Yd(Yd(Yd(e.paths)[r.path])[r.method]),Ckn=(e,r)=>{let i=uW(e,r);if(Object.keys(i).length===0)return;let s=o4(e,i.requestBody);return aIe(Yd(s).content)},Dkn=(e,r)=>{let i=uW(e,r);if(Object.keys(i).length===0)return r.invocation.requestBody;let s=Yd(o4(e,i.requestBody));if(Object.keys(s).length===0)return r.invocation.requestBody;let l=lIe(e,s.content),d=l.map(h=>h.mediaType);return{required:typeof s.required=="boolean"?s.required:r.invocation.requestBody?.required??!1,contentTypes:d,...l.length>0?{contents:l}:{}}},Akn=(e,r)=>{let i=uW(e,r);if(Object.keys(i).length===0)return;let s=Object.entries(Yd(i.responses)),l=s.filter(([h])=>/^2\d\d$/.test(h)).sort(([h],[S])=>h.localeCompare(S)),d=s.filter(([h])=>h==="default");for(let[,h]of[...l,...d]){let S=o4(e,h),b=aIe(Yd(S).content);if(b!==void 0)return b}},wkn=(e,r)=>{let i=uW(e,r);if(Object.keys(i).length===0)return;let l=Object.entries(Yd(i.responses)).sort(([d],[h])=>uQt(d)-uQt(h)||d.localeCompare(h)).map(([d,h])=>{let S=Yd(o4(e,h)),b=lIe(e,S.content),A=b.map(ie=>ie.mediaType),L=fQt(S.content),V=L?mQt(L[0],L[1]):[],j=Ekn(e,S.headers);return{statusCode:d,...Xd(S.description)?{description:Xd(S.description)}:{},contentTypes:A,...aIe(S.content)!==void 0?{schema:aIe(S.content)}:{},...V.length>0?{examples:V}:{},...b.length>0?{contents:b}:{},...j.length>0?{headers:j}:{}}});return l.length>0?l:void 0},Ikn=e=>{let r=oat(e.servers);return r.length>0?r:void 0},Pkn=(e,r)=>{let i=uW(e,r);if(Object.keys(i).length===0)return;let s=oat(i.servers);if(s.length>0)return s;let l=oat(hQt(e,r).servers);return l.length>0?l:void 0},pQt=e=>{let r=mfe(e);if(r.length===0)return{kind:"none"};let i=r.flatMap(s=>{let l=Object.entries(Yd(s)).sort(([d],[h])=>d.localeCompare(h)).map(([d,h])=>{let S=mfe(h).flatMap(b=>typeof b=="string"&&b.trim().length>0?[b.trim()]:[]);return{kind:"scheme",schemeName:d,...S.length>0?{scopes:S}:{}}});return l.length===0?[]:[l.length===1?l[0]:{kind:"allOf",items:l}]});if(i.length!==0)return i.length===1?i[0]:{kind:"anyOf",items:i}},Nkn=(e,r)=>{let i=uW(e,r);if(Object.keys(i).length!==0)return Object.prototype.hasOwnProperty.call(i,"security")?pQt(i.security):pQt(e.security)},gQt=(e,r)=>{if(e)switch(e.kind){case"none":return;case"scheme":r.add(e.schemeName);return;case"allOf":case"anyOf":for(let i of e.items)gQt(i,r)}},_Qt=e=>{let r=Object.fromEntries(Object.entries(Yd(e)).sort(([i],[s])=>i.localeCompare(s)).map(([i,s])=>{let l=Yd(s),d=Object.fromEntries(Object.entries(Yd(l.scopes)).sort(([h],[S])=>h.localeCompare(S)).map(([h,S])=>[h,Xd(S)??""]));return[i,{...Xd(l.authorizationUrl)?{authorizationUrl:Xd(l.authorizationUrl)}:{},...Xd(l.tokenUrl)?{tokenUrl:Xd(l.tokenUrl)}:{},...Xd(l.refreshUrl)?{refreshUrl:Xd(l.refreshUrl)}:{},...Object.keys(d).length>0?{scopes:d}:{}}]}));return Object.keys(r).length>0?r:void 0},Okn=(e,r)=>{if(!r||r.kind==="none")return;let i=new Set;gQt(r,i);let s=Yd(Yd(e.components).securitySchemes),l=[...i].sort((d,h)=>d.localeCompare(h)).flatMap(d=>{let h=s[d];if(h===void 0)return[];let S=Yd(o4(e,h)),b=Xd(S.type);if(!b)return[];let A=b==="apiKey"||b==="http"||b==="oauth2"||b==="openIdConnect"?b:"http",L=Xd(S.in),V=L==="header"||L==="query"||L==="cookie"?L:void 0;return[{schemeName:d,schemeType:A,...Xd(S.description)?{description:Xd(S.description)}:{},...V?{placementIn:V}:{},...Xd(S.name)?{placementName:Xd(S.name)}:{},...Xd(S.scheme)?{scheme:Xd(S.scheme)}:{},...Xd(S.bearerFormat)?{bearerFormat:Xd(S.bearerFormat)}:{},...Xd(S.openIdConnectUrl)?{openIdConnectUrl:Xd(S.openIdConnectUrl)}:{},..._Qt(S.flows)?{flows:_Qt(S.flows)}:{}}]});return l.length>0?l:void 0},Fkn=(e,r,i)=>{let s={...r.refHintTable},l=[...i].sort((h,S)=>h.localeCompare(S)),d=new Set(Object.keys(s));for(;l.length>0;){let h=l.shift();if(d.has(h))continue;d.add(h);let S=o4(e,{$ref:h});s[h]=iat(S);let b=new Set;p9(S,b);for(let A of[...b].sort((L,V)=>L.localeCompare(V)))d.has(A)||l.push(A)}return Object.keys(s).length>0?s:void 0},Rkn=(e,r)=>{let i=new Set,s=Ikn(e),l=r.tools.map(d=>{let h=kkn(e,d),S=d.invocation.parameters.map(X=>{let Re=h.get(aat({location:X.location,name:X.name})),Je=lIe(e,Re?.content);return{...X,...Xd(Re?.style)?{style:Xd(Re?.style)}:{},...typeof Re?.explode=="boolean"?{explode:Re.explode}:{},...typeof Re?.allowReserved=="boolean"?{allowReserved:Re.allowReserved}:{},...Je.length>0?{content:Je}:{}}}),b=Dkn(e,d),A=d.typing?.inputSchema??Ckn(e,d),L=d.typing?.outputSchema??Akn(e,d),V=wkn(e,d),j=Nkn(e,d),ie=Okn(e,j),te=Pkn(e,d);for(let X of S)for(let Re of X.content??[])p9(Re.schema,i);for(let X of b?.contents??[])p9(X.schema,i);for(let X of V??[]){p9(X.schema,i);for(let Re of X.contents??[])p9(Re.schema,i);for(let Re of X.headers??[]){p9(Re.schema,i);for(let Je of Re.content??[])p9(Je.schema,i)}}return{...d,invocation:{...d.invocation,parameters:S,requestBody:b},...A!==void 0||L!==void 0?{typing:{...d.typing,...A!==void 0?{inputSchema:A}:{},...L!==void 0?{outputSchema:L}:{}}}:{},...V?{responses:V}:{},...j?{authRequirement:j}:{},...ie?{securitySchemes:ie}:{},...s?{documentServers:s}:{},...te?{servers:te}:{}}});return{...r,tools:l,refHintTable:Fkn(e,r,i)}},Hee=(e,r)=>a4.gen(function*(){let i=yield*Skn(e,r),s=yield*a4.tryPromise({try:()=>ZKt(e,i),catch:h=>rat(e,"extract",h)}),l=yield*gkn(vkn(s),a4.mapError(h=>rat(e,"extract",h))),d=yield*a4.try({try:()=>sfe(i),catch:h=>rat(e,"validate",h)});return Rkn(d,l)});import*as hfe from"effect/Either";import*as gI from"effect/Effect";var Lkn=(e,r)=>{if(!r.startsWith("#/"))return;let i=e;for(let s of r.slice(2).split("/")){let l=s.replaceAll("~1","/").replaceAll("~0","~");if(!E1(i))return;i=i[l]}return i},cat=(e,r,i=0)=>{if(!E1(r))return null;let s=w6(r.$ref);return s&&i<5?cat(e,Lkn(e,s),i+1):r},Mkn=e=>{let r=new Set,i=[],s=d=>{if(Array.isArray(d)){for(let h of d)if(E1(h))for(let[S,b]of Object.entries(h))S.length===0||r.has(S)||(r.add(S),i.push({name:S,scopes:Array.isArray(b)?b.filter(A=>typeof A=="string"):[]}))}};s(e.security);let l=e.paths;if(!E1(l))return i;for(let d of Object.values(l))if(E1(d)){s(d.security);for(let h of Object.values(d))E1(h)&&s(h.security)}return i},yQt=e=>{let r=w6(e.scheme.type)?.toLowerCase()??"";if(r==="oauth2"){let i=E1(e.scheme.flows)?e.scheme.flows:{},s=Object.values(i).find(E1)??null,l=s&&E1(s.scopes)?Object.keys(s.scopes).filter(h=>h.length>0):[],d=[...new Set([...e.scopes,...l])].sort();return{name:e.name,kind:"oauth2",supported:!0,headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:s?BN(w6(s.authorizationUrl)):null,oauthTokenUrl:s?BN(w6(s.tokenUrl)):null,oauthScopes:d,reason:`OpenAPI security scheme "${e.name}" declares OAuth2`}}if(r==="http"){let i=w6(e.scheme.scheme)?.toLowerCase()??"";if(i==="bearer")return{name:e.name,kind:"bearer",supported:!0,headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" declares HTTP bearer auth`};if(i==="basic")return{name:e.name,kind:"basic",supported:!1,headerName:"Authorization",prefix:"Basic ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" declares HTTP basic auth`}}if(r==="apiKey"){let i=w6(e.scheme.in),s=i==="header"||i==="query"||i==="cookie"?i:null;return{name:e.name,kind:"apiKey",supported:!1,headerName:s==="header"?BN(w6(e.scheme.name)):null,prefix:null,parameterName:BN(w6(e.scheme.name)),parameterLocation:s,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" declares API key auth`}}return{name:e.name,kind:"unknown",supported:!1,headerName:null,prefix:null,parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" uses unsupported type ${r||"unknown"}`}},jkn=e=>{let r=E1(e.components)?e.components:{},i=E1(r.securitySchemes)?r.securitySchemes:{},s=Mkn(e);if(s.length===0){if(Object.keys(i).length===0)return UN("OpenAPI document does not declare security requirements");let h=Object.entries(i).map(([b,A])=>yQt({name:b,scopes:[],scheme:cat(e,A)??{}})).sort((b,A)=>{let L={oauth2:0,bearer:1,apiKey:2,basic:3,unknown:4};return L[b.kind]-L[A.kind]||b.name.localeCompare(A.name)})[0];if(!h)return UN("OpenAPI document does not declare security requirements");let S=h.kind==="unknown"?"low":"medium";return h.kind==="oauth2"?I6("oauth2",{confidence:S,reason:`${h.reason}; scheme is defined but not explicitly applied to operations`,headerName:h.headerName,prefix:h.prefix,parameterName:h.parameterName,parameterLocation:h.parameterLocation,oauthAuthorizationUrl:h.oauthAuthorizationUrl,oauthTokenUrl:h.oauthTokenUrl,oauthScopes:h.oauthScopes}):h.kind==="bearer"?I6("bearer",{confidence:S,reason:`${h.reason}; scheme is defined but not explicitly applied to operations`,headerName:h.headerName,prefix:h.prefix,parameterName:h.parameterName,parameterLocation:h.parameterLocation,oauthAuthorizationUrl:h.oauthAuthorizationUrl,oauthTokenUrl:h.oauthTokenUrl,oauthScopes:h.oauthScopes}):h.kind==="apiKey"?YX("apiKey",{confidence:S,reason:`${h.reason}; scheme is defined but not explicitly applied to operations`,headerName:h.headerName,prefix:h.prefix,parameterName:h.parameterName,parameterLocation:h.parameterLocation,oauthAuthorizationUrl:h.oauthAuthorizationUrl,oauthTokenUrl:h.oauthTokenUrl,oauthScopes:h.oauthScopes}):h.kind==="basic"?YX("basic",{confidence:S,reason:`${h.reason}; scheme is defined but not explicitly applied to operations`,headerName:h.headerName,prefix:h.prefix,parameterName:h.parameterName,parameterLocation:h.parameterLocation,oauthAuthorizationUrl:h.oauthAuthorizationUrl,oauthTokenUrl:h.oauthTokenUrl,oauthScopes:h.oauthScopes}):WJ(`${h.reason}; scheme is defined but not explicitly applied to operations`)}let d=s.map(({name:h,scopes:S})=>{let b=cat(e,i[h]);return b==null?null:yQt({name:h,scopes:S,scheme:b})}).filter(h=>h!==null).sort((h,S)=>{let b={oauth2:0,bearer:1,apiKey:2,basic:3,unknown:4};return b[h.kind]-b[S.kind]||h.name.localeCompare(S.name)})[0];return d?d.kind==="oauth2"?I6("oauth2",{confidence:"high",reason:d.reason,headerName:d.headerName,prefix:d.prefix,parameterName:d.parameterName,parameterLocation:d.parameterLocation,oauthAuthorizationUrl:d.oauthAuthorizationUrl,oauthTokenUrl:d.oauthTokenUrl,oauthScopes:d.oauthScopes}):d.kind==="bearer"?I6("bearer",{confidence:"high",reason:d.reason,headerName:d.headerName,prefix:d.prefix,parameterName:d.parameterName,parameterLocation:d.parameterLocation,oauthAuthorizationUrl:d.oauthAuthorizationUrl,oauthTokenUrl:d.oauthTokenUrl,oauthScopes:d.oauthScopes}):d.kind==="apiKey"?YX("apiKey",{confidence:"high",reason:d.reason,headerName:d.headerName,prefix:d.prefix,parameterName:d.parameterName,parameterLocation:d.parameterLocation,oauthAuthorizationUrl:d.oauthAuthorizationUrl,oauthTokenUrl:d.oauthTokenUrl,oauthScopes:d.oauthScopes}):d.kind==="basic"?YX("basic",{confidence:"high",reason:d.reason,headerName:d.headerName,prefix:d.prefix,parameterName:d.parameterName,parameterLocation:d.parameterLocation,oauthAuthorizationUrl:d.oauthAuthorizationUrl,oauthTokenUrl:d.oauthTokenUrl,oauthScopes:d.oauthScopes}):WJ(d.reason):WJ("OpenAPI security requirements reference schemes that could not be resolved")},Bkn=e=>{let r=e.document.servers;if(Array.isArray(r)){let i=r.find(E1),s=i?BN(w6(i.url)):null;if(s)try{return new URL(s,e.normalizedUrl).toString()}catch{return e.normalizedUrl}}return new URL(e.normalizedUrl).origin},lat=e=>gI.gen(function*(){let r=yield*gI.either(eY({method:"GET",url:e.normalizedUrl,headers:e.headers}));if(hfe.isLeft(r))return console.warn(`[discovery] OpenAPI probe HTTP fetch failed for ${e.normalizedUrl}:`,r.left.message),null;if(r.right.status<200||r.right.status>=300)return console.warn(`[discovery] OpenAPI probe got status ${r.right.status} for ${e.normalizedUrl}`),null;let i=yield*gI.either(Hee(e.normalizedUrl,r.right.text));if(hfe.isLeft(i))return console.warn(`[discovery] OpenAPI manifest extraction failed for ${e.normalizedUrl}:`,i.left instanceof Error?i.left.message:String(i.left)),null;let s=yield*gI.either(gI.try({try:()=>sfe(r.right.text),catch:S=>S instanceof Error?S:new Error(String(S))})),l=hfe.isRight(s)&&E1(s.right)?s.right:{},d=Bkn({normalizedUrl:e.normalizedUrl,document:l}),h=BN(w6(l.info&&E1(l.info)?l.info.title:null))??$N(d);return{detectedKind:"openapi",confidence:"high",endpoint:d,specUrl:e.normalizedUrl,name:h,namespace:vT(h),transport:null,authInference:jkn(l),toolCount:i.right.tools.length,warnings:[]}}).pipe(gI.catchAll(r=>(console.warn(`[discovery] OpenAPI detection unexpected error for ${e.normalizedUrl}:`,r instanceof Error?r.message:String(r)),gI.succeed(null))));import*as XB from"effect/Schema";var uat=XB.Struct({specUrl:XB.String,defaultHeaders:XB.optional(XB.NullOr(M_))});import{Schema as Ig}from"effect";var _at=/^v\d+(?:[._-]\d+)?$/i,vQt=new Set(["api"]),$kn=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1 $2").replace(/[^a-zA-Z0-9]+/g," ").trim().split(/\s+/).filter(r=>r.length>0),Ukn=e=>e.toLowerCase(),uIe=e=>{let r=$kn(e).map(Ukn);if(r.length===0)return"tool";let[i,...s]=r;return`${i}${s.map(l=>`${l[0]?.toUpperCase()??""}${l.slice(1)}`).join("")}`},pat=e=>{let r=uIe(e);return`${r[0]?.toUpperCase()??""}${r.slice(1)}`},pIe=e=>{let r=e?.trim();return r?uIe(r):null},dat=e=>e.split("/").map(r=>r.trim()).filter(r=>r.length>0),SQt=e=>e.startsWith("{")&&e.endsWith("}"),zkn=e=>dat(e).map(r=>r.toLowerCase()).find(r=>_at.test(r)),qkn=e=>{for(let r of dat(e)){let i=r.toLowerCase();if(!_at.test(i)&&!vQt.has(i)&&!SQt(r))return pIe(r)??"root"}return"root"},Jkn=e=>e.split(/[/.]+/).map(r=>r.trim()).filter(r=>r.length>0),Vkn=(e,r)=>{let i=e.operationId??e.toolId,s=Jkn(i);if(s.length>1){let[l,...d]=s;if((pIe(l)??l)===r&&d.length>0)return d.join(" ")}return i},Wkn=(e,r)=>{let s=dat(e.path).filter(l=>!_at.test(l.toLowerCase())).filter(l=>!vQt.has(l.toLowerCase())).filter(l=>!SQt(l)).map(l=>pIe(l)??l).filter(l=>l!==r).map(l=>pat(l)).join("");return`${e.method}${s||"Operation"}`},Gkn=(e,r)=>{let i=uIe(Vkn(e,r));return i.length>0&&i!==r?i:uIe(Wkn(e,r))},Hkn=e=>e.description??`${e.method.toUpperCase()} ${e.path}`,Kkn=Ig.Struct({toolId:Ig.String,rawToolId:Ig.String,operationId:Ig.optional(Ig.String),name:Ig.String,description:Ig.String,group:Ig.String,leaf:Ig.String,tags:Ig.Array(Ig.String),versionSegment:Ig.optional(Ig.String),method:Wee,path:Ig.String,invocation:pfe,operationHash:Ig.String,typing:Ig.optional(oIe),documentation:Ig.optional(dfe),responses:Ig.optional(Ig.Array(_fe)),authRequirement:Ig.optional(cW),securitySchemes:Ig.optional(Ig.Array(ffe)),documentServers:Ig.optional(Ig.Array(ZB)),servers:Ig.optional(Ig.Array(ZB))}),Qkn=e=>{let r=e.map(s=>({...s,toolId:`${s.group}.${s.leaf}`})),i=(s,l)=>{let d=new Map;for(let h of s){let S=d.get(h.toolId)??[];S.push(h),d.set(h.toolId,S)}for(let h of d.values())if(!(h.length<2))for(let S of h)S.toolId=l(S)};return i(r,s=>s.versionSegment?`${s.group}.${s.versionSegment}.${s.leaf}`:s.toolId),i(r,s=>`${s.versionSegment?`${s.group}.${s.versionSegment}`:s.group}.${s.leaf}${pat(s.method)}`),i(r,s=>`${s.versionSegment?`${s.group}.${s.versionSegment}`:s.group}.${s.leaf}${pat(s.method)}${s.operationHash.slice(0,8)}`),r},_Ie=e=>{let r=e.tools.map(i=>{let s=pIe(i.tags[0])??qkn(i.path),l=Gkn(i,s);return{rawToolId:i.toolId,operationId:i.operationId,name:i.name,description:Hkn(i),group:s,leaf:l,tags:[...i.tags],versionSegment:zkn(i.path),method:i.method,path:i.path,invocation:i.invocation,operationHash:i.operationHash,typing:i.typing,documentation:i.documentation,responses:i.responses,authRequirement:i.authRequirement,securitySchemes:i.securitySchemes,documentServers:i.documentServers,servers:i.servers}});return Qkn(r).sort((i,s)=>i.toolId.localeCompare(s.toolId)||i.rawToolId.localeCompare(s.rawToolId)||i.operationHash.localeCompare(s.operationHash))},fat=e=>({kind:"openapi",toolId:e.toolId,rawToolId:e.rawToolId,operationId:e.operationId,group:e.group,leaf:e.leaf,tags:e.tags,versionSegment:e.versionSegment,method:e.method,path:e.path,operationHash:e.operationHash,invocation:e.invocation,documentation:e.documentation,responses:e.responses,authRequirement:e.authRequirement,securitySchemes:e.securitySchemes,documentServers:e.documentServers,servers:e.servers});import*as Kee from"effect/Match";var dIe=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Zkn=e=>{try{return JSON.parse(e)}catch{return null}},gfe=(e,r,i,s)=>{if(Array.isArray(e))return e.map(h=>gfe(h,r,i,s));if(!dIe(e))return e;let l=typeof e.$ref=="string"?e.$ref:null;if(l&&l.startsWith("#/")&&!s.has(l)){let h=i.get(l);if(h===void 0){let S=r[l];h=typeof S=="string"?Zkn(S):dIe(S)?S:null,i.set(l,h)}if(h!=null){let S=new Set(s);S.add(l);let{$ref:b,...A}=e,L=gfe(h,r,i,S);if(Object.keys(A).length===0)return L;let V=gfe(A,r,i,s);return dIe(L)&&dIe(V)?{...L,...V}:L}}let d={};for(let[h,S]of Object.entries(e))d[h]=gfe(S,r,i,s);return d},YB=(e,r)=>e==null?null:!r||Object.keys(r).length===0?e:gfe(e,r,new Map,new Set),mat=(e,r)=>({inputSchema:YB(e?.inputSchema,r),outputSchema:YB(e?.outputSchema,r)});var vfe=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},Xkn=e=>{let r=vfe(e);if(r.type!=="object"&&r.properties===void 0)return!1;let i=vfe(r.properties);return Object.keys(i).length===0&&r.additionalProperties===!1},TQt=(e,r=320)=>e==null?"void":Xkn(e)?"{}":S6(e,"unknown",r),gat=e=>e?.[0],yfe=(e,r)=>{let i=vfe(e);return vfe(i.properties)[r]},Ykn=(e,r,i)=>{let s=yfe(e,i);if(s!==void 0)return s;let d=yfe(e,r==="header"?"headers":r==="cookie"?"cookies":r);return d===void 0?void 0:yfe(d,i)},bQt=e=>!e||e.length===0?void 0:([...e].sort((i,s)=>i.mediaType.localeCompare(s.mediaType)).find(i=>i.mediaType==="application/json")??[...e].find(i=>i.mediaType.toLowerCase().includes("+json"))??[...e].find(i=>i.mediaType.toLowerCase().includes("json"))??e[0])?.schema,xQt=(e,r)=>{if(!r)return e;let i=vfe(e);return Object.keys(i).length===0?e:{...i,description:r}},eCn=e=>{let r=e.invocation,i={},s=[];for(let l of r.parameters){let d=e.documentation?.parameters.find(S=>S.name===l.name&&S.location===l.location),h=Ykn(e.parameterSourceSchema,l.location,l.name)??bQt(l.content)??{type:"string"};i[l.name]=xQt(h,d?.description),l.required&&s.push(l.name)}return r.requestBody&&(i.body=xQt(e.requestBodySchema??bQt(r.requestBody.contents)??{type:"object"},e.documentation?.requestBody?.description),r.requestBody.required&&s.push("body")),Object.keys(i).length>0?{type:"object",properties:i,...s.length>0?{required:s}:{},additionalProperties:!1}:void 0},hat=e=>typeof e=="string"&&e.length>0?{$ref:e}:void 0,tCn=e=>{let r=e.typing?.refHintKeys??[];return Kee.value(e.invocation.requestBody).pipe(Kee.when(null,()=>({outputSchema:hat(r[0])})),Kee.orElse(()=>({requestBodySchema:hat(r[0]),outputSchema:hat(r[1])})))},rCn=e=>{let r=mat(e.definition.typing,e.refHintTable),i=tCn(e.definition),s=YB(i.requestBodySchema,e.refHintTable),l=yfe(r.inputSchema,"body")??yfe(r.inputSchema,"input")??s??void 0,d=eCn({invocation:e.definition.invocation,documentation:e.definition.documentation,parameterSourceSchema:r.inputSchema,...l!==void 0?{requestBodySchema:l}:{}})??r.inputSchema??void 0,h=r.outputSchema??YB(i.outputSchema,e.refHintTable);return{...d!=null?{inputSchema:d}:{},...h!=null?{outputSchema:h}:{}}},nCn=e=>{if(!(!e.variants||e.variants.length===0))return e.variants.map(r=>{let i=YB(r.schema,e.refHintTable);return{...r,...i!==void 0?{schema:i}:{}}})},iCn=e=>{if(!e)return;let r={};for(let s of e.parameters){let l=gat(s.examples);l&&(r[s.name]=JSON.parse(l.valueJson))}let i=gat(e.requestBody?.examples);return i&&(r.body=JSON.parse(i.valueJson)),Object.keys(r).length>0?r:void 0},oCn=e=>{let r=gat(e?.response?.examples)?.valueJson;return r?JSON.parse(r):void 0},fIe=e=>{let{inputSchema:r,outputSchema:i}=rCn(e),s=nCn({variants:e.definition.responses,refHintTable:e.refHintTable}),l=iCn(e.definition.documentation),d=oCn(e.definition.documentation);return{inputTypePreview:S6(r,"unknown",1/0),outputTypePreview:TQt(i,1/0),...r!==void 0?{inputSchema:r}:{},...i!==void 0?{outputSchema:i}:{},...l!==void 0?{exampleInput:l}:{},...d!==void 0?{exampleOutput:d}:{},providerData:{...fat(e.definition),...s?{responses:s}:{}}}};var Sfe=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),aCn=new TextEncoder,yat=e=>(e??"").split(";",1)[0]?.trim().toLowerCase()??"",P1=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean"||typeof e=="bigint")return String(e);if(e==null)return"";try{return JSON.stringify(e)}catch{return String(e)}},EQt=e=>{let r=yat(e);return r==="application/json"||r.endsWith("+json")||r.includes("json")},kQt=e=>{let r=yat(e);return r.length===0?!1:r.startsWith("text/")||r==="application/xml"||r.endsWith("+xml")||r.endsWith("/xml")||r==="application/x-www-form-urlencoded"||r==="application/javascript"||r==="application/ecmascript"||r==="application/graphql"||r==="application/sql"||r==="application/x-yaml"||r==="application/yaml"||r==="application/toml"||r==="application/csv"||r==="image/svg+xml"||r.endsWith("+yaml")||r.endsWith("+toml")},bfe=e=>EQt(e)?"json":kQt(e)||yat(e).length===0?"text":"bytes",xfe=e=>Object.entries(Sfe(e)?e:{}).sort(([r],[i])=>r.localeCompare(i)),sCn=e=>{switch(e){case"path":case"header":return"simple";case"cookie":case"query":return"form"}},cCn=(e,r)=>e==="query"||e==="cookie"?r==="form":!1,vat=e=>e.style??sCn(e.location),mIe=e=>e.explode??cCn(e.location,vat(e)),rS=e=>encodeURIComponent(P1(e)),lCn=(e,r)=>{let i=encodeURIComponent(e);return r?i.replace(/%3A/gi,":").replace(/%2F/gi,"/").replace(/%3F/gi,"?").replace(/%23/gi,"#").replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%40/gi,"@").replace(/%21/gi,"!").replace(/%24/gi,"$").replace(/%26/gi,"&").replace(/%27/gi,"'").replace(/%28/gi,"(").replace(/%29/gi,")").replace(/%2A/gi,"*").replace(/%2B/gi,"+").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%3D/gi,"="):i},Tfe=e=>{let r=[...(e.contents??[]).map(i=>i.mediaType),...e.contentTypes??[]];if(r.length!==0)return r.find(i=>i==="application/json")??r.find(i=>i.toLowerCase().includes("+json"))??r.find(i=>i.toLowerCase().includes("json"))??r[0]},uCn=e=>{if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);if(typeof e=="string")return aCn.encode(e);if(Array.isArray(e)&&e.every(r=>typeof r=="number"&&Number.isInteger(r)&&r>=0&&r<=255))return Uint8Array.from(e);throw new Error("Binary OpenAPI request bodies must be bytes, a string, or an array of byte values")},Efe=(e,r)=>{let i=r.toLowerCase();if(i==="application/json"||i.includes("+json")||i.includes("json"))return JSON.stringify(e);if(i==="application/x-www-form-urlencoded"){let s=new URLSearchParams;for(let[l,d]of xfe(e)){if(Array.isArray(d)){for(let h of d)s.append(l,P1(h));continue}s.append(l,P1(d))}return s.toString()}return P1(e)},pCn=(e,r)=>{let i=vat(e),s=mIe(e),l=e.allowReserved===!0,d=Tfe({contents:e.content});if(d)return{kind:"query",entries:[{name:e.name,value:Efe(r,d),allowReserved:l}]};if(Array.isArray(r))return i==="spaceDelimited"?{kind:"query",entries:[{name:e.name,value:r.map(h=>P1(h)).join(" "),allowReserved:l}]}:i==="pipeDelimited"?{kind:"query",entries:[{name:e.name,value:r.map(h=>P1(h)).join("|"),allowReserved:l}]}:{kind:"query",entries:s?r.map(h=>({name:e.name,value:P1(h),allowReserved:l})):[{name:e.name,value:r.map(h=>P1(h)).join(","),allowReserved:l}]};if(Sfe(r)){let h=xfe(r);return i==="deepObject"?{kind:"query",entries:h.map(([S,b])=>({name:`${e.name}[${S}]`,value:P1(b),allowReserved:l}))}:{kind:"query",entries:s?h.map(([S,b])=>({name:S,value:P1(b),allowReserved:l})):[{name:e.name,value:h.flatMap(([S,b])=>[S,P1(b)]).join(","),allowReserved:l}]}}return{kind:"query",entries:[{name:e.name,value:P1(r),allowReserved:l}]}},_Cn=(e,r)=>{let i=mIe(e),s=Tfe({contents:e.content});if(s)return{kind:"header",value:Efe(r,s)};if(Array.isArray(r))return{kind:"header",value:r.map(l=>P1(l)).join(",")};if(Sfe(r)){let l=xfe(r);return{kind:"header",value:i?l.map(([d,h])=>`${d}=${P1(h)}`).join(","):l.flatMap(([d,h])=>[d,P1(h)]).join(",")}}return{kind:"header",value:P1(r)}},dCn=(e,r)=>{let i=mIe(e),s=Tfe({contents:e.content});if(s)return{kind:"cookie",pairs:[{name:e.name,value:Efe(r,s)}]};if(Array.isArray(r))return{kind:"cookie",pairs:i?r.map(l=>({name:e.name,value:P1(l)})):[{name:e.name,value:r.map(l=>P1(l)).join(",")}]};if(Sfe(r)){let l=xfe(r);return{kind:"cookie",pairs:i?l.map(([d,h])=>({name:d,value:P1(h)})):[{name:e.name,value:l.flatMap(([d,h])=>[d,P1(h)]).join(",")}]}}return{kind:"cookie",pairs:[{name:e.name,value:P1(r)}]}},fCn=(e,r)=>{let i=vat(e),s=mIe(e),l=Tfe({contents:e.content});if(l)return{kind:"path",value:rS(Efe(r,l))};if(Array.isArray(r))return i==="label"?{kind:"path",value:`.${r.map(d=>rS(d)).join(s?".":",")}`}:i==="matrix"?{kind:"path",value:s?r.map(d=>`;${encodeURIComponent(e.name)}=${rS(d)}`).join(""):`;${encodeURIComponent(e.name)}=${r.map(d=>rS(d)).join(",")}`}:{kind:"path",value:r.map(d=>rS(d)).join(",")};if(Sfe(r)){let d=xfe(r);return i==="label"?{kind:"path",value:s?`.${d.map(([h,S])=>`${rS(h)}=${rS(S)}`).join(".")}`:`.${d.flatMap(([h,S])=>[rS(h),rS(S)]).join(",")}`}:i==="matrix"?{kind:"path",value:s?d.map(([h,S])=>`;${encodeURIComponent(h)}=${rS(S)}`).join(""):`;${encodeURIComponent(e.name)}=${d.flatMap(([h,S])=>[rS(h),rS(S)]).join(",")}`}:{kind:"path",value:s?d.map(([h,S])=>`${rS(h)}=${rS(S)}`).join(","):d.flatMap(([h,S])=>[rS(h),rS(S)]).join(",")}}return i==="label"?{kind:"path",value:`.${rS(r)}`}:i==="matrix"?{kind:"path",value:`;${encodeURIComponent(e.name)}=${rS(r)}`}:{kind:"path",value:rS(r)}},kfe=(e,r)=>{switch(e.location){case"path":return fCn(e,r);case"query":return pCn(e,r);case"header":return _Cn(e,r);case"cookie":return dCn(e,r)}},hIe=(e,r)=>{if(r.length===0)return e.toString();let i=r.map(S=>`${encodeURIComponent(S.name)}=${lCn(S.value,S.allowReserved===!0)}`).join("&"),s=e.toString(),[l,d]=s.split("#",2),h=l.includes("?")?l.endsWith("?")||l.endsWith("&")?"":"&":"?";return`${l}${h}${i}${d?`#${d}`:""}`},gIe=e=>{let r=Tfe(e.requestBody)??"application/json";return bfe(r)==="bytes"?{contentType:r,body:uCn(e.body)}:{contentType:r,body:Efe(e.body,r)}};import{FetchHttpClient as NZn,HttpClient as OZn,HttpClientRequest as FZn}from"@effect/platform";import*as CQt from"effect/Data";import*as Qee from"effect/Effect";var Sat=class extends CQt.TaggedError("OpenApiToolInvocationError"){};var DQt=e=>{if(!(!e||e.length===0))return e.map(r=>({url:r.url,...r.description?{description:r.description}:{},...r.variables?{variables:r.variables}:{}}))},mCn=e=>{let r=A6.make(`scope_${Td({sourceId:e.source.id,toolId:e.operation.providerData.toolId,kind:"operation"})}`);return x_(e.catalog.scopes)[r]={id:r,kind:"operation",parentId:e.parentScopeId,name:e.operation.title??e.operation.providerData.toolId,docs:Gd({summary:e.operation.title??e.operation.providerData.toolId,description:e.operation.description??void 0}),defaults:e.defaults,synthetic:!1,provenance:ld(e.documentId,`#/openapi/${e.operation.providerData.toolId}/scope`)},r},hCn=e=>{let r=kj.make(`security_${Td({sourceId:e.source.id,provider:"openapi",schemeName:e.schemeName})}`);if(e.catalog.symbols[r])return r;let i=e.scheme,s=i?.scheme?.toLowerCase(),l=i?.schemeType==="apiKey"?"apiKey":i?.schemeType==="oauth2"?"oauth2":i?.schemeType==="http"&&s==="basic"?"basic":i?.schemeType==="http"&&s==="bearer"?"bearer":i?.schemeType==="openIdConnect"?"custom":i?.schemeType==="http"?"http":"custom",d=Object.fromEntries(Object.entries(i?.flows??{}).map(([b,A])=>[b,A])),h=Object.fromEntries(Object.entries(i?.flows??{}).flatMap(([,b])=>Object.entries(b.scopes??{}))),S=i?.description??(i?.openIdConnectUrl?`OpenID Connect: ${i.openIdConnectUrl}`:null);return x_(e.catalog.symbols)[r]={id:r,kind:"securityScheme",schemeType:l,...Gd({summary:e.schemeName,description:S})?{docs:Gd({summary:e.schemeName,description:S})}:{},...i?.placementIn||i?.placementName?{placement:{...i?.placementIn?{in:i.placementIn}:{},...i?.placementName?{name:i.placementName}:{}}}:{},...l==="apiKey"&&i?.placementIn&&i?.placementName?{apiKey:{in:i.placementIn,name:i.placementName}}:{},...(l==="basic"||l==="bearer"||l==="http")&&i?.scheme?{http:{scheme:i.scheme,...i.bearerFormat?{bearerFormat:i.bearerFormat}:{}}}:{},...l==="oauth2"?{oauth:{...Object.keys(d).length>0?{flows:d}:{},...Object.keys(h).length>0?{scopes:h}:{}}}:{},...l==="custom"?{custom:{}}:{},synthetic:!1,provenance:ld(e.documentId,`#/openapi/securitySchemes/${e.schemeName}`)},r},AQt=e=>{let r=e.authRequirement;if(!r)return{kind:"none"};switch(r.kind){case"none":return{kind:"none"};case"scheme":return{kind:"scheme",schemeId:hCn({catalog:e.catalog,source:e.source,documentId:e.documentId,schemeName:r.schemeName,scheme:e.schemesByName.get(r.schemeName)}),...r.scopes&&r.scopes.length>0?{scopes:[...r.scopes]}:{}};case"allOf":case"anyOf":return{kind:r.kind,items:r.items.map(i=>AQt({catalog:e.catalog,source:e.source,documentId:e.documentId,authRequirement:i,schemesByName:e.schemesByName}))}}},yIe=e=>e.contents.map((r,i)=>{let s=(r.examples??[]).map((l,d)=>Dj({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`${e.pointerBase}/content/${i}/example/${d}`,name:l.label,summary:l.label,value:JSON.parse(l.valueJson)}));return{mediaType:r.mediaType,...r.schema!==void 0?{shapeId:e.importer.importSchema(r.schema,`${e.pointerBase}/content/${i}`,e.rootSchema)}:{},...s.length>0?{exampleIds:s}:{}}}),gCn=e=>{let r=Ej.make(`header_${Td(e.idSeed)}`),i=(e.header.examples??[]).map((l,d)=>Dj({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`${e.pointer}/example/${d}`,name:l.label,summary:l.label,value:JSON.parse(l.valueJson)})),s=e.header.content?yIe({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:e.header.content,pointerBase:e.pointer}):void 0;return x_(e.catalog.symbols)[r]={id:r,kind:"header",name:e.header.name,...Gd({description:e.header.description})?{docs:Gd({description:e.header.description})}:{},...typeof e.header.deprecated=="boolean"?{deprecated:e.header.deprecated}:{},...e.header.schema!==void 0?{schemaShapeId:e.importer.importSchema(e.header.schema,e.pointer,e.rootSchema)}:{},...s&&s.length>0?{content:s}:{},...i.length>0?{exampleIds:i}:{},...e.header.style?{style:e.header.style}:{},...typeof e.header.explode=="boolean"?{explode:e.header.explode}:{},synthetic:!1,provenance:ld(e.documentId,e.pointer)},r},yCn=e=>{let r=d5(e.source,e.operation.providerData.toolId),i=vD.make(`cap_${Td({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),s=pk.make(`exec_${Td({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"http"})}`),l=e.operation.inputSchema??{},d=e.operation.outputSchema??{},h=[],S=new Map((e.operation.providerData.securitySchemes??[]).map(X=>[X.schemeName,X]));e.operation.providerData.invocation.parameters.forEach(X=>{let Re=Tj.make(`param_${Td({capabilityId:i,location:X.location,name:X.name})}`),Je=Gue(l,X.location,X.name),pt=e.operation.providerData.documentation?.parameters.find(tr=>tr.name===X.name&&tr.location===X.location),$e=(pt?.examples??[]).map((tr,ht)=>{let wt=JSON.parse(tr.valueJson);return Dj({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/parameter/${X.location}/${X.name}/example/${ht}`,name:tr.label,summary:tr.label,value:wt})});h.push(...$e);let xt=X.content?yIe({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:X.content,pointerBase:`#/openapi/${e.operation.providerData.toolId}/parameter/${X.location}/${X.name}`}):void 0;x_(e.catalog.symbols)[Re]={id:Re,kind:"parameter",name:X.name,location:X.location,required:X.required,...Gd({description:pt?.description??null})?{docs:Gd({description:pt?.description??null})}:{},...Je!==void 0&&(!xt||xt.length===0)?{schemaShapeId:e.importer.importSchema(Je,`#/openapi/${e.operation.providerData.toolId}/parameter/${X.location}/${X.name}`,e.rootSchema)}:{},...xt&&xt.length>0?{content:xt}:{},...$e.length>0?{exampleIds:$e}:{},...X.style?{style:X.style}:{},...typeof X.explode=="boolean"?{explode:X.explode}:{},...typeof X.allowReserved=="boolean"?{allowReserved:X.allowReserved}:{},synthetic:!1,provenance:ld(e.documentId,`#/openapi/${e.operation.providerData.toolId}/parameter/${X.location}/${X.name}`)}});let b=e.operation.providerData.invocation.requestBody?VJ.make(`request_body_${Td({capabilityId:i})}`):void 0;if(b){let X=nY(l),Re=e.operation.providerData.invocation.requestBody?.contents?yIe({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:e.operation.providerData.invocation.requestBody.contents,pointerBase:`#/openapi/${e.operation.providerData.toolId}/requestBody`}):void 0,Je=Re?.flatMap($e=>$e.exampleIds??[])??(e.operation.providerData.documentation?.requestBody?.examples??[]).map(($e,xt)=>Dj({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/requestBody/example/${xt}`,name:$e.label,summary:$e.label,value:JSON.parse($e.valueJson)}));h.push(...Je);let pt=Re&&Re.length>0?Re:Hue(e.operation.providerData.invocation.requestBody?.contentTypes).map($e=>({mediaType:$e,...X!==void 0?{shapeId:e.importer.importSchema(X,`#/openapi/${e.operation.providerData.toolId}/requestBody`,e.rootSchema)}:{},...Je.length>0?{exampleIds:Je}:{}}));x_(e.catalog.symbols)[b]={id:b,kind:"requestBody",...Gd({description:e.operation.providerData.documentation?.requestBody?.description??null})?{docs:Gd({description:e.operation.providerData.documentation?.requestBody?.description??null})}:{},required:e.operation.providerData.invocation.requestBody?.required??!1,contents:pt,synthetic:!1,provenance:ld(e.documentId,`#/openapi/${e.operation.providerData.toolId}/requestBody`)}}let A=e.operation.providerData.responses??[],L=A.length>0?yKe({catalog:e.catalog,variants:A.map((X,Re)=>{let Je=SD.make(`response_${Td({capabilityId:i,statusCode:X.statusCode,responseIndex:Re})}`),pt=(X.examples??[]).map((tr,ht)=>Dj({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/responses/${X.statusCode}/example/${ht}`,name:tr.label,summary:tr.label,value:JSON.parse(tr.valueJson)}));h.push(...pt);let $e=X.contents&&X.contents.length>0?yIe({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:X.contents,pointerBase:`#/openapi/${e.operation.providerData.toolId}/responses/${X.statusCode}`}):(()=>{let tr=X.schema!==void 0?e.importer.importSchema(X.schema,`#/openapi/${e.operation.providerData.toolId}/responses/${X.statusCode}`,e.rootSchema):void 0,ht=Hue(X.contentTypes);return ht.length>0?ht.map((wt,Ut)=>({mediaType:wt,...tr!==void 0&&Ut===0?{shapeId:tr}:{},...pt.length>0&&Ut===0?{exampleIds:pt}:{}})):void 0})(),xt=(X.headers??[]).map((tr,ht)=>gCn({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,pointer:`#/openapi/${e.operation.providerData.toolId}/responses/${X.statusCode}/headers/${tr.name}`,idSeed:{capabilityId:i,responseId:Je,headerIndex:ht,headerName:tr.name},header:tr}));return x_(e.catalog.symbols)[Je]={id:Je,kind:"response",...Gd({description:X.description??(Re===0?e.operation.description:null)})?{docs:Gd({description:X.description??(Re===0?e.operation.description:null)})}:{},...xt.length>0?{headerIds:xt}:{},...$e&&$e.length>0?{contents:$e}:{},synthetic:!1,provenance:ld(e.documentId,`#/openapi/${e.operation.providerData.toolId}/responses/${X.statusCode}`)},{match:vKe(X.statusCode),responseId:Je}}),provenance:ld(e.documentId,`#/openapi/${e.operation.providerData.toolId}/responseSet`)}):(()=>{let X=SD.make(`response_${Td({capabilityId:i})}`),Re=(e.operation.providerData.documentation?.response?.examples??[]).map((Je,pt)=>Dj({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/response/example/${pt}`,name:Je.label,summary:Je.label,value:JSON.parse(Je.valueJson)}));return h.push(...Re),x_(e.catalog.symbols)[X]={id:X,kind:"response",...Gd({description:e.operation.providerData.documentation?.response?.description??e.operation.description})?{docs:Gd({description:e.operation.providerData.documentation?.response?.description??e.operation.description})}:{},contents:[{mediaType:Hue(e.operation.providerData.documentation?.response?.contentTypes)[0]??"application/json",...e.operation.outputSchema!==void 0?{shapeId:e.importer.importSchema(d,`#/openapi/${e.operation.providerData.toolId}/response`)}:{},...Re.length>0?{exampleIds:Re}:{}}],synthetic:!1,provenance:ld(e.documentId,`#/openapi/${e.operation.providerData.toolId}/response`)},m5({catalog:e.catalog,responseId:X,provenance:ld(e.documentId,`#/openapi/${e.operation.providerData.toolId}/responseSet`)})})(),V=e.operation.inputSchema!==void 0?e.importer.importSchema(e.operation.inputSchema,`#/openapi/${e.operation.providerData.toolId}/call`,e.operation.inputSchema):e.importer.importSchema({type:"object",additionalProperties:!1},`#/openapi/${e.operation.providerData.toolId}/call`),j={id:s,capabilityId:i,scopeId:(()=>{let X=DQt(e.operation.providerData.servers);return!X||X.length===0?e.serviceScopeId:mCn({catalog:e.catalog,source:e.source,documentId:e.documentId,parentScopeId:e.serviceScopeId,operation:e.operation,defaults:{servers:X}})})(),adapterKey:"openapi",bindingVersion:rx,binding:e.operation.providerData,projection:{responseSetId:L,callShapeId:V},display:{protocol:"http",method:e.operation.providerData.invocation.method.toUpperCase(),pathTemplate:e.operation.providerData.invocation.pathTemplate,operationId:e.operation.providerData.operationId??null,group:e.operation.providerData.group,leaf:e.operation.providerData.leaf,rawToolId:e.operation.providerData.rawToolId,title:e.operation.title??null,summary:e.operation.description??null},synthetic:!1,provenance:ld(e.documentId,`#/openapi/${e.operation.providerData.toolId}/executable`)};x_(e.catalog.executables)[s]=j;let ie=e.operation.effect,te=AQt({catalog:e.catalog,source:e.source,documentId:e.documentId,authRequirement:e.operation.providerData.authRequirement,schemesByName:S});x_(e.catalog.capabilities)[i]={id:i,serviceScopeId:e.serviceScopeId,surface:{toolPath:r,...e.operation.title?{title:e.operation.title}:{},...e.operation.description?{summary:e.operation.description}:{},...e.operation.providerData.tags.length>0?{tags:e.operation.providerData.tags}:{}},semantics:{effect:ie,safe:ie==="read",idempotent:ie==="read"||ie==="delete",destructive:ie==="delete"},auth:te,interaction:f5(ie),executableIds:[s],...h.length>0?{exampleIds:h}:{},synthetic:!1,provenance:ld(e.documentId,`#/openapi/${e.operation.providerData.toolId}/capability`)}},wQt=e=>{let r=(()=>{let i=e.documents[0]?.contentText;if(i)try{return JSON.parse(i)}catch{return}})();return h5({source:e.source,documents:e.documents,resourceDialectUri:"https://json-schema.org/draft/2020-12/schema",serviceScopeDefaults:(()=>{let i=DQt(e.operations.find(s=>(s.providerData.documentServers??[]).length>0)?.providerData.documentServers);return i?{servers:i}:void 0})(),registerOperations:({catalog:i,documentId:s,serviceScopeId:l,importer:d})=>{for(let h of e.operations)yCn({catalog:i,source:e.source,documentId:s,serviceScopeId:l,operation:h,importer:d,rootSchema:r})}})};import{FetchHttpClient as vCn,HttpClient as SCn,HttpClientRequest as IQt}from"@effect/platform";import*as Ay from"effect/Effect";import*as ym from"effect/Schema";var bCn=ym.extend(zke,ym.extend(Ij,ym.Struct({kind:ym.Literal("openapi"),specUrl:ym.Trim.pipe(ym.nonEmptyString()),auth:ym.optional(v5)}))),xCn=ym.extend(Ij,ym.Struct({kind:ym.Literal("openapi"),endpoint:ym.String,specUrl:ym.String,name:sy,namespace:sy,auth:ym.optional(v5)})),PQt=ym.Struct({specUrl:ym.Trim.pipe(ym.nonEmptyString()),defaultHeaders:ym.optional(ym.NullOr(M_))}),TCn=ym.Struct({specUrl:ym.optional(ym.String),defaultHeaders:ym.optional(ym.NullOr(M_))}),Cfe=1,ECn=(e,r)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&r.some(i=>Object.prototype.hasOwnProperty.call(e,i)),pW=e=>Ay.gen(function*(){if(ECn(e.binding,["transport","queryParams","headers"]))return yield*og("openapi/adapter","OpenAPI sources cannot define MCP transport settings");let r=yield*GN({sourceId:e.id,label:"OpenAPI",version:e.bindingVersion,expectedVersion:Cfe,schema:TCn,value:e.binding,allowedKeys:["specUrl","defaultHeaders"]}),i=typeof r.specUrl=="string"?r.specUrl.trim():"";return i.length===0?yield*og("openapi/adapter","OpenAPI sources require specUrl"):{specUrl:i,defaultHeaders:r.defaultHeaders??null}}),kCn=e=>Ay.gen(function*(){let r=yield*SCn.HttpClient,i=IQt.get(b6({url:e.url,queryParams:e.queryParams}).toString()).pipe(IQt.setHeaders(pD({headers:e.headers??{},cookies:e.cookies}))),s=yield*r.execute(i).pipe(Ay.mapError(l=>l instanceof Error?l:new Error(String(l))));return s.status===401||s.status===403?yield*new y5("import",`OpenAPI spec fetch requires credentials (status ${s.status})`):s.status<200||s.status>=300?yield*og("openapi/adapter",`OpenAPI spec fetch failed with status ${s.status}`):yield*s.text.pipe(Ay.mapError(l=>l instanceof Error?l:new Error(String(l))))}).pipe(Ay.provide(vCn.layer)),CCn=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},DCn={path:["path","pathParams","params"],query:["query","queryParams","params"],header:["headers","header"],cookie:["cookies","cookie"]},NQt=(e,r)=>{let i=e[r.name];if(i!==void 0)return i;for(let s of DCn[r.location]){let l=e[s];if(typeof l!="object"||l===null||Array.isArray(l))continue;let d=l[r.name];if(d!==void 0)return d}},ACn=(e,r,i)=>{let s=e;for(let h of i.parameters){if(h.location!=="path")continue;let S=NQt(r,h);if(S==null){if(h.required)throw new Error(`Missing required path parameter: ${h.name}`);continue}let b=kfe(h,S);s=s.replaceAll(`{${h.name}}`,b.kind==="path"?b.value:encodeURIComponent(String(S)))}let l=[...s.matchAll(/\{([^{}]+)\}/g)].map(h=>h[1]).filter(h=>typeof h=="string"&&h.length>0);for(let h of l){let S=r[h]??(typeof r.path=="object"&&r.path!==null&&!Array.isArray(r.path)?r.path[h]:void 0)??(typeof r.pathParams=="object"&&r.pathParams!==null&&!Array.isArray(r.pathParams)?r.pathParams[h]:void 0)??(typeof r.params=="object"&&r.params!==null&&!Array.isArray(r.params)?r.params[h]:void 0);S!=null&&(s=s.replaceAll(`{${h}}`,encodeURIComponent(String(S))))}let d=[...s.matchAll(/\{([^{}]+)\}/g)].map(h=>h[1]).filter(h=>typeof h=="string"&&h.length>0);if(d.length>0){let h=[...new Set(d)].sort().join(", ");throw new Error(`Unresolved path parameters after substitution: ${h}`)}return s},wCn=e=>{let r={};return e.headers.forEach((i,s)=>{r[s]=i}),r},ICn=async e=>{if(e.status===204)return null;let r=bfe(e.headers.get("content-type"));return r==="json"?e.json():r==="bytes"?new Uint8Array(await e.arrayBuffer()):e.text()},PCn=e=>{let r=e.providerData.servers?.[0]??e.providerData.documentServers?.[0];if(!r)return new URL(e.endpoint).toString();let i=Object.entries(r.variables??{}).reduce((s,[l,d])=>s.replaceAll(`{${l}}`,d),r.url);return new URL(i,e.endpoint).toString()},NCn=(e,r)=>{try{return new URL(r)}catch{let i=new URL(e),s=i.pathname==="/"?"":i.pathname.endsWith("/")?i.pathname.slice(0,-1):i.pathname,l=r.startsWith("/")?r:`/${r}`;return i.pathname=`${s}${l}`.replace(/\/{2,}/g,"/"),i.search="",i.hash="",i}},OCn=e=>{let r=fIe({definition:e.definition,refHintTable:e.refHintTable}),i=e.definition.method.toUpperCase();return{toolId:e.definition.toolId,title:e.definition.name,description:e.definition.description,effect:i==="GET"||i==="HEAD"?"read":i==="DELETE"?"delete":"write",inputSchema:r.inputSchema,outputSchema:r.outputSchema,providerData:r.providerData}},OQt={key:"openapi",displayName:"OpenAPI",catalogKind:"imported",connectStrategy:"direct",credentialStrategy:"credential_managed",bindingConfigVersion:Cfe,providerKey:"generic_http",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:bCn,executorAddInputSchema:xCn,executorAddHelpText:["endpoint is the base API URL. specUrl is the OpenAPI document URL."],executorAddInputSignatureWidth:420,localConfigBindingSchema:uat,localConfigBindingFromSource:e=>Ay.runSync(Ay.map(pW(e),r=>({specUrl:r.specUrl,defaultHeaders:r.defaultHeaders}))),serializeBindingConfig:e=>VN({adapterKey:"openapi",version:Cfe,payloadSchema:PQt,payload:Ay.runSync(pW(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:r})=>Ay.map(WN({sourceId:e,label:"OpenAPI",adapterKey:"openapi",version:Cfe,payloadSchema:PQt,value:r}),({version:i,payload:s})=>({version:i,payload:{specUrl:s.specUrl,defaultHeaders:s.defaultHeaders??null}})),bindingStateFromSource:e=>Ay.map(pW(e),r=>({...JN,specUrl:r.specUrl,defaultHeaders:r.defaultHeaders})),sourceConfigFromSource:e=>Ay.runSync(Ay.map(pW(e),r=>({kind:"openapi",endpoint:e.endpoint,specUrl:r.specUrl,defaultHeaders:r.defaultHeaders}))),validateSource:e=>Ay.gen(function*(){let r=yield*pW(e);return{...e,bindingVersion:Cfe,binding:{specUrl:r.specUrl,defaultHeaders:r.defaultHeaders}}}),shouldAutoProbe:e=>e.enabled&&(e.status==="draft"||e.status==="probing"),discoveryPriority:({normalizedUrl:e})=>Cj(e)?50:250,detectSource:({normalizedUrl:e,headers:r})=>lat({normalizedUrl:e,headers:r}),syncCatalog:({source:e,resolveAuthMaterialForSlot:r})=>Ay.gen(function*(){let i=yield*pW(e),s=yield*r("import"),l=yield*kCn({url:i.specUrl,headers:{...i.defaultHeaders,...s.headers},queryParams:s.queryParams,cookies:s.cookies}).pipe(Ay.mapError(b=>S5(b)?b:new Error(`Failed fetching OpenAPI spec for ${e.id}: ${b.message}`))),d=yield*Hee(e.name,l).pipe(Ay.mapError(b=>b instanceof Error?b:new Error(String(b)))),h=_Ie(d),S=Date.now();return qN({fragment:wQt({source:e,documents:[{documentKind:"openapi",documentKey:i.specUrl,contentText:l,fetchedAt:S}],operations:h.map(b=>OCn({definition:b,refHintTable:d.refHintTable}))}),importMetadata:R2({source:e,adapterKey:"openapi"}),sourceHash:d.sourceHash})}),invoke:e=>Ay.tryPromise({try:async()=>{let r=Ay.runSync(pW(e.source)),i=Pj({executableId:e.executable.id,label:"OpenAPI",version:e.executable.bindingVersion,expectedVersion:rx,schema:eat,value:e.executable.binding}),s=CCn(e.args),l=ACn(i.invocation.pathTemplate,s,i.invocation),d={...r.defaultHeaders},h=[],S=[];for(let X of i.invocation.parameters){if(X.location==="path")continue;let Re=NQt(s,X);if(Re==null){if(X.required)throw new Error(`Missing required ${X.location} parameter ${X.name}`);continue}let Je=kfe(X,Re);if(Je.kind==="query"){h.push(...Je.entries);continue}if(Je.kind==="header"){d[X.name]=Je.value;continue}Je.kind==="cookie"&&S.push(...Je.pairs.map(pt=>`${pt.name}=${encodeURIComponent(pt.value)}`))}let b;if(i.invocation.requestBody){let X=s.body??s.input;if(X!==void 0){let Re=gIe({requestBody:i.invocation.requestBody,body:X7({body:X,bodyValues:e.auth.bodyValues,label:`${i.method.toUpperCase()} ${i.path}`})});d["content-type"]=Re.contentType,b=Re.body}}let A=NCn(PCn({endpoint:e.source.endpoint,providerData:i}),l),L=b6({url:A,queryParams:e.auth.queryParams}),V=hIe(L,h),j=pD({headers:{...d,...e.auth.headers},cookies:{...e.auth.cookies}});if(S.length>0){let X=j.cookie;j.cookie=X?`${X}; ${S.join("; ")}`:S.join("; ")}let ie=await fetch(V.toString(),{method:i.method.toUpperCase(),headers:j,...b!==void 0?{body:typeof b=="string"?b:new Uint8Array(b).buffer}:{}}),te=await ICn(ie);return{data:ie.ok?te:null,error:ie.ok?null:te,headers:wCn(ie),status:ie.status}},catch:r=>r instanceof Error?r:new Error(String(r))})};var FQt=[OQt,rGt,Ezt,C7t];import*as yI from"effect/Effect";import*as LQt from"effect/Schema";var bat=LQt.Struct({}),Dfe=1,FCn=(e,r)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&r.some(i=>Object.prototype.hasOwnProperty.call(e,i)),RQt=e=>yI.gen(function*(){return FCn(e.binding,["specUrl","defaultHeaders","transport","queryParams","headers"])?yield*_a("sources/source-adapters/internal","internal sources cannot define HTTP source settings"):yield*GN({sourceId:e.id,label:"internal",version:e.bindingVersion,expectedVersion:Dfe,schema:bat,value:e.binding,allowedKeys:[]})}),MQt={key:"internal",displayName:"Internal",catalogKind:"internal",connectStrategy:"none",credentialStrategy:"none",bindingConfigVersion:Dfe,providerKey:"generic_internal",defaultImportAuthPolicy:"none",connectPayloadSchema:null,executorAddInputSchema:null,executorAddHelpText:null,executorAddInputSignatureWidth:null,localConfigBindingSchema:null,localConfigBindingFromSource:()=>null,serializeBindingConfig:e=>VN({adapterKey:e.kind,version:Dfe,payloadSchema:bat,payload:yI.runSync(RQt(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:r})=>yI.map(WN({sourceId:e,label:"internal",adapterKey:"internal",version:Dfe,payloadSchema:bat,value:r}),({version:i,payload:s})=>({version:i,payload:s})),bindingStateFromSource:()=>yI.succeed(JN),sourceConfigFromSource:e=>({kind:"internal",endpoint:e.endpoint}),validateSource:e=>yI.gen(function*(){return yield*RQt(e),{...e,bindingVersion:Dfe,binding:{}}}),shouldAutoProbe:()=>!1,syncCatalog:({source:e})=>yI.succeed(qN({fragment:{version:"ir.v1.fragment"},importMetadata:{...R2({source:e,adapterKey:"internal"}),importerVersion:"ir.v1.internal",sourceConfigHash:"internal"},sourceHash:null})),invoke:()=>yI.fail(_a("sources/source-adapters/internal","Internal sources do not support persisted adapter invocation"))};var vIe=[...FQt,MQt],jD=zFt(vIe),RCn=jD.connectableSourceAdapters,FXn=jD.connectPayloadSchema,xat=jD.executorAddableSourceAdapters,SIe=jD.executorAddInputSchema,LCn=jD.localConfigurableSourceAdapters,_9=jD.getSourceAdapter,l0=jD.getSourceAdapterForSource,Tat=jD.findSourceAdapterByProviderKey,e$=jD.sourceBindingStateFromSource,MCn=jD.sourceAdapterCatalogKind,t$=jD.sourceAdapterRequiresInteractiveConnect,_W=jD.sourceAdapterUsesCredentialManagedAuth,jCn=jD.isInternalSourceAdapter;import*as d9 from"effect/Effect";var jQt=e=>`${e.providerId}:${e.handle}`,bIe=(e,r,i)=>d9.gen(function*(){if(r.previous===null)return;let s=new Set((r.next===null?[]:ape(r.next)).map(jQt)),l=ape(r.previous).filter(d=>!s.has(jQt(d)));yield*d9.forEach(l,d=>d9.either(i(d)),{discard:!0})}),xIe=e=>new Set(e.flatMap(r=>r?[ZN(r)]:[]).flatMap(r=>r?[r.grantId]:[])),Eat=e=>{let r=e.authArtifacts.filter(i=>i.slot===e.slot);if(e.actorScopeId!==void 0){let i=r.find(s=>s.actorScopeId===e.actorScopeId);if(i)return i}return r.find(i=>i.actorScopeId===null)??null},kat=e=>e.authArtifacts.find(r=>r.slot===e.slot&&r.actorScopeId===(e.actorScopeId??null))??null,BQt=(e,r,i)=>d9.gen(function*(){let s=yield*e.authArtifacts.listByScopeAndSourceId({scopeId:r.scopeId,sourceId:r.sourceId});return yield*e.authArtifacts.removeByScopeAndSourceId({scopeId:r.scopeId,sourceId:r.sourceId}),yield*d9.forEach(s,l=>E5(e,{authArtifactId:l.id},i),{discard:!0}),yield*d9.forEach(s,l=>bIe(e,{previous:l,next:null},i),{discard:!0}),s.length});var Cat="config:",Dat=e=>`${Cat}${e}`,Afe=e=>e.startsWith(Cat)?e.slice(Cat.length):null;var BCn=/[^a-z0-9]+/g,$Qt=e=>e.trim().toLowerCase().replace(BCn,"-").replace(/^-+/,"").replace(/-+$/,"");var vI=e=>{if(e==null)return null;let r=e.trim();return r.length>0?r:null},TIe=e=>JSON.parse(JSON.stringify(e)),UQt=(e,r)=>{let i=vI(e.namespace)??vI(e.name)??"source",s=$Qt(i)||"source",l=s,d=2;for(;r.has(l);)l=`${s}-${d}`,d+=1;return vf.make(l)},$Cn=e=>{let r=vI(e?.secrets?.defaults?.env);return r!==null&&e?.secrets?.providers?.[r]?r:e?.secrets?.providers?.default?"default":null},zQt=e=>{if(e.auth===void 0)return e.existing??{kind:"none"};if(typeof e.auth=="string"){let r=$Cn(e.config);return{kind:"bearer",headerName:"Authorization",prefix:"Bearer ",token:{providerId:r?Dat(r):"env",handle:e.auth}}}if(typeof e.auth=="object"&&e.auth!==null){let r=e.auth,i=vI(r.provider),s=i?i==="params"?"params":Dat(i):r.source==="env"?"env":r.source==="params"?"params":null,l=vI(r.id);if(s&&l)return{kind:"bearer",headerName:"Authorization",prefix:"Bearer ",token:{providerId:s,handle:l}}}return e.existing??{kind:"none"}},UCn=e=>{if(e.source.auth.kind!=="bearer")return e.existingConfigAuth;if(e.source.auth.token.providerId==="env")return e.source.auth.token.handle;if(e.source.auth.token.providerId==="params")return{source:"params",provider:"params",id:e.source.auth.token.handle};let r=Afe(e.source.auth.token.providerId);if(r!==null){let i=e.config?.secrets?.providers?.[r];if(i)return{source:i.source,provider:r,id:e.source.auth.token.handle}}return e.existingConfigAuth},qQt=e=>{let r=UCn({source:e.source,existingConfigAuth:e.existingConfigAuth,config:e.config}),i={...vI(e.source.name)!==vI(e.source.id)?{name:e.source.name}:{},...vI(e.source.namespace)!==vI(e.source.id)?{namespace:e.source.namespace??void 0}:{},...e.source.enabled===!1?{enabled:!1}:{},connection:{endpoint:e.source.endpoint,...r!==void 0?{auth:r}:{}}},s=l0(e.source);if(s.localConfigBindingSchema===null)throw new aCe({message:`Unsupported source kind for local config: ${e.source.kind}`,kind:e.source.kind});return{kind:e.source.kind,...i,binding:TIe(s.localConfigBindingFromSource(e.source))}};var Aat=e=>N1.gen(function*(){let r=e.loadedConfig.config?.sources?.[e.sourceId];if(!r)return yield*new cpe({message:`Configured source not found for id ${e.sourceId}`,sourceId:e.sourceId});let i=e.scopeState.sources[e.sourceId],s=_9(r.kind),l=yield*s.validateSource({id:vf.make(e.sourceId),scopeId:e.scopeId,name:vI(r.name)??e.sourceId,kind:r.kind,endpoint:r.connection.endpoint.trim(),status:i?.status??(r.enabled??!0?"connected":"draft"),enabled:r.enabled??!0,namespace:vI(r.namespace)??e.sourceId,bindingVersion:s.bindingConfigVersion,binding:r.binding,importAuthPolicy:s.defaultImportAuthPolicy,importAuth:{kind:"none"},auth:zQt({auth:r.connection.auth,config:e.loadedConfig.config,existing:null}),sourceHash:i?.sourceHash??null,lastError:i?.lastError??null,createdAt:i?.createdAt??Date.now(),updatedAt:i?.updatedAt??Date.now()}),d=Eat({authArtifacts:e.authArtifacts.filter(b=>b.sourceId===l.id),actorScopeId:e.actorScopeId,slot:"runtime"}),h=Eat({authArtifacts:e.authArtifacts.filter(b=>b.sourceId===l.id),actorScopeId:e.actorScopeId,slot:"import"});return{source:{...l,auth:d===null?l.auth:eCe(d),importAuth:l.importAuthPolicy==="separate"?h===null?l.importAuth:eCe(h):{kind:"none"}},sourceId:e.sourceId}}),EIe=(e,r,i={})=>N1.gen(function*(){let s=yield*RV(e,r),l=yield*e.executorState.authArtifacts.listByScopeId(r),d=yield*N1.forEach(Object.keys(s.loadedConfig.config?.sources??{}),h=>N1.map(Aat({scopeId:r,loadedConfig:s.loadedConfig,scopeState:s.scopeState,sourceId:vf.make(h),actorScopeId:i.actorScopeId,authArtifacts:l}),({source:S})=>S));return yield*N1.annotateCurrentSpan("executor.source.count",d.length),d}).pipe(N1.withSpan("source.store.load_scope",{attributes:{"executor.scope.id":r}})),wat=(e,r,i={})=>N1.gen(function*(){let s=yield*RV(e,r),l=yield*EIe(e,r,i),d=yield*N1.forEach(l,h=>N1.map(e.sourceArtifactStore.read({sourceId:h.id}),S=>S===null?null:{source:h,snapshot:S.snapshot}));yield*e.sourceTypeDeclarationsRefresher.refreshWorkspaceInBackground({entries:d.filter(h=>h!==null)})}).pipe(N1.withSpan("source.types.refresh_scope.schedule",{attributes:{"executor.scope.id":r}})),JQt=e=>e.enabled===!1||e.status==="auth_required"||e.status==="error"||e.status==="draft",VQt=(e,r,i={})=>N1.gen(function*(){let[s,l,d]=yield*N1.all([EIe(e,r,{actorScopeId:i.actorScopeId}),e.executorState.authArtifacts.listByScopeId(r),e.executorState.secretMaterials.listAll().pipe(N1.map(b=>new Set(b.map(A=>String(A.id)))))]),h=new Map(s.map(b=>[b.id,b.name])),S=new Map;for(let b of l)for(let A of ape(b)){if(!d.has(A.handle))continue;let L=S.get(A.handle)??[];L.some(V=>V.sourceId===b.sourceId)||(L.push({sourceId:b.sourceId,sourceName:h.get(b.sourceId)??b.sourceId}),S.set(A.handle,L))}return S}),kIe=(e,r)=>N1.gen(function*(){let i=yield*RV(e,r.scopeId),s=yield*e.executorState.authArtifacts.listByScopeId(r.scopeId);return i.loadedConfig.config?.sources?.[r.sourceId]?(yield*Aat({scopeId:r.scopeId,loadedConfig:i.loadedConfig,scopeState:i.scopeState,sourceId:r.sourceId,actorScopeId:r.actorScopeId,authArtifacts:s})).source:yield*new cpe({message:`Source not found: scopeId=${r.scopeId} sourceId=${r.sourceId}`,sourceId:r.sourceId})}).pipe(N1.withSpan("source.store.load_by_id",{attributes:{"executor.scope.id":r.scopeId,"executor.source.id":r.sourceId}}));import*as m9 from"effect/Effect";import*as M8 from"effect/Effect";import*as Iat from"effect/Option";var zCn=e=>ZN(e),qCn=e=>zCn(e)?.grantId??null,Pat=(e,r)=>M8.map(e.authArtifacts.listByScopeId(r.scopeId),i=>i.filter(s=>{let l=qCn(s);return l!==null&&(r.grantId==null||l===r.grantId)})),WQt=(e,r)=>M8.gen(function*(){let i=yield*e.providerAuthGrants.getById(r.grantId);return Iat.isNone(i)||i.value.orphanedAt===null?!1:(yield*e.providerAuthGrants.upsert({...i.value,orphanedAt:null,updatedAt:Date.now()}),!0)}),Nat=(e,r)=>M8.gen(function*(){if((yield*Pat(e,r)).length>0)return!1;let s=yield*e.providerAuthGrants.getById(r.grantId);if(Iat.isNone(s)||s.value.scopeId!==r.scopeId)return!1;let l=s.value;return l.orphanedAt!==null?!1:(yield*e.providerAuthGrants.upsert({...l,orphanedAt:Date.now(),updatedAt:Date.now()}),!0)}),GQt=(e,r,i)=>M8.gen(function*(){yield*i(r.grant.refreshToken).pipe(M8.either,M8.ignore)});import*as s4 from"effect/Effect";var Bd=e=>{if(e==null)return null;let r=e.trim();return r.length>0?r:null},HQt=e=>l0(e).sourceConfigFromSource(e),JCn=e=>l0(e).catalogKind,VCn=e=>l0(e).key,WCn=e=>l0(e).providerKey,KQt=e=>_D(e).slice(0,24),GCn=e=>JSON.stringify({catalogKind:JCn(e),adapterKey:VCn(e),providerKey:WCn(e),sourceConfig:HQt(e)}),QQt=e=>JSON.stringify(HQt(e)),DIe=e=>xD.make(`src_catalog_${KQt(GCn(e))}`),Oat=e=>Oj.make(`src_catalog_rev_${KQt(QQt(e))}`),CIe=e=>s4.gen(function*(){if(e===void 0||e.kind==="none")return{kind:"none"};if(e.kind==="bearer"){let h=Bd(e.headerName)??"Authorization",S=e.prefix??"Bearer ",b=Bd(e.token.providerId),A=Bd(e.token.handle);return b===null||A===null?yield*_a("sources/source-definitions","Bearer auth requires a token secret ref"):{kind:"bearer",headerName:h,prefix:S,token:{providerId:b,handle:A}}}if(e.kind==="oauth2_authorized_user"){let h=Bd(e.headerName)??"Authorization",S=e.prefix??"Bearer ",b=Bd(e.refreshToken.providerId),A=Bd(e.refreshToken.handle);if(b===null||A===null)return yield*_a("sources/source-definitions","OAuth2 authorized-user auth requires a refresh token secret ref");let L=null;if(e.clientSecret!==null){let ie=Bd(e.clientSecret.providerId),te=Bd(e.clientSecret.handle);if(ie===null||te===null)return yield*_a("sources/source-definitions","OAuth2 authorized-user client secret ref must include providerId and handle");L={providerId:ie,handle:te}}let V=Bd(e.tokenEndpoint),j=Bd(e.clientId);return V===null||j===null?yield*_a("sources/source-definitions","OAuth2 authorized-user auth requires tokenEndpoint and clientId"):{kind:"oauth2_authorized_user",headerName:h,prefix:S,tokenEndpoint:V,clientId:j,clientAuthentication:e.clientAuthentication,clientSecret:L,refreshToken:{providerId:b,handle:A},grantSet:e.grantSet??null}}if(e.kind==="provider_grant_ref"){let h=Bd(e.headerName)??"Authorization",S=e.prefix??"Bearer ",b=Bd(e.grantId);return b===null?yield*_a("sources/source-definitions","Provider grant auth requires a grantId"):{kind:"provider_grant_ref",grantId:KN.make(b),providerKey:Bd(e.providerKey)??"",requiredScopes:e.requiredScopes.map(A=>A.trim()).filter(A=>A.length>0),headerName:h,prefix:S}}if(e.kind==="mcp_oauth"){let h=Bd(e.redirectUri),S=Bd(e.accessToken.providerId),b=Bd(e.accessToken.handle);if(h===null||S===null||b===null)return yield*_a("sources/source-definitions","MCP OAuth auth requires redirectUri and access token secret ref");let A=null;if(e.refreshToken!==null){let V=Bd(e.refreshToken.providerId),j=Bd(e.refreshToken.handle);if(V===null||j===null)return yield*_a("sources/source-definitions","MCP OAuth refresh token ref must include providerId and handle");A={providerId:V,handle:j}}let L=Bd(e.tokenType)??"Bearer";return{kind:"mcp_oauth",redirectUri:h,accessToken:{providerId:S,handle:b},refreshToken:A,tokenType:L,expiresIn:e.expiresIn??null,scope:Bd(e.scope),resourceMetadataUrl:Bd(e.resourceMetadataUrl),authorizationServerUrl:Bd(e.authorizationServerUrl),resourceMetadataJson:Bd(e.resourceMetadataJson),authorizationServerMetadataJson:Bd(e.authorizationServerMetadataJson),clientInformationJson:Bd(e.clientInformationJson)}}let r=Bd(e.headerName)??"Authorization",i=e.prefix??"Bearer ",s=Bd(e.accessToken.providerId),l=Bd(e.accessToken.handle);if(s===null||l===null)return yield*_a("sources/source-definitions","OAuth2 auth requires an access token secret ref");let d=null;if(e.refreshToken!==null){let h=Bd(e.refreshToken.providerId),S=Bd(e.refreshToken.handle);if(h===null||S===null)return yield*_a("sources/source-definitions","OAuth2 refresh token ref must include providerId and handle");d={providerId:h,handle:S}}return{kind:"oauth2",headerName:r,prefix:i,accessToken:{providerId:s,handle:l},refreshToken:d}}),ZQt=(e,r)=>r??_9(e).defaultImportAuthPolicy,HCn=e=>s4.gen(function*(){return e.importAuthPolicy!=="separate"&&e.importAuth.kind!=="none"?yield*_a("sources/source-definitions","importAuth must be none unless importAuthPolicy is separate"):e}),XQt=e=>s4.flatMap(HCn(e),r=>s4.map(l0(r).validateSource(r),i=>i)),dW=e=>s4.gen(function*(){let r=yield*CIe(e.payload.auth),i=yield*CIe(e.payload.importAuth),s=ZQt(e.payload.kind,e.payload.importAuthPolicy);return yield*XQt({id:e.sourceId,scopeId:e.scopeId,name:e.payload.name.trim(),kind:e.payload.kind,endpoint:e.payload.endpoint.trim(),status:e.payload.status??"draft",enabled:e.payload.enabled??!0,namespace:Bd(e.payload.namespace),bindingVersion:_9(e.payload.kind).bindingConfigVersion,binding:e.payload.binding??{},importAuthPolicy:s,importAuth:i,auth:r,sourceHash:Bd(e.payload.sourceHash),lastError:Bd(e.payload.lastError),createdAt:e.now,updatedAt:e.now})}),f9=e=>s4.gen(function*(){let r=e.payload.auth===void 0?e.source.auth:yield*CIe(e.payload.auth),i=e.payload.importAuth===void 0?e.source.importAuth:yield*CIe(e.payload.importAuth),s=ZQt(e.source.kind,e.payload.importAuthPolicy??e.source.importAuthPolicy);return yield*XQt({...e.source,name:e.payload.name!==void 0?e.payload.name.trim():e.source.name,endpoint:e.payload.endpoint!==void 0?e.payload.endpoint.trim():e.source.endpoint,status:e.payload.status??e.source.status,enabled:e.payload.enabled??e.source.enabled,namespace:e.payload.namespace!==void 0?Bd(e.payload.namespace):e.source.namespace,bindingVersion:e.payload.binding!==void 0?_9(e.source.kind).bindingConfigVersion:e.source.bindingVersion,binding:e.payload.binding!==void 0?e.payload.binding:e.source.binding,importAuthPolicy:s,importAuth:i,auth:r,sourceHash:e.payload.sourceHash!==void 0?Bd(e.payload.sourceHash):e.source.sourceHash,lastError:e.payload.lastError!==void 0?Bd(e.payload.lastError):e.source.lastError,updatedAt:e.now})});var YQt=e=>({id:e.catalogRevisionId??Oat(e.source),catalogId:e.catalogId,revisionNumber:e.revisionNumber,sourceConfigJson:QQt(e.source),importMetadataJson:e.importMetadataJson??null,importMetadataHash:e.importMetadataHash??null,snapshotHash:e.snapshotHash??null,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}),eZt=e=>({sourceRecord:{id:e.source.id,scopeId:e.source.scopeId,catalogId:e.catalogId,catalogRevisionId:e.catalogRevisionId,name:e.source.name,kind:e.source.kind,endpoint:e.source.endpoint,status:e.source.status,enabled:e.source.enabled,namespace:e.source.namespace,importAuthPolicy:e.source.importAuthPolicy,bindingConfigJson:l0(e.source).serializeBindingConfig(e.source),sourceHash:e.source.sourceHash,lastError:e.source.lastError,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt},runtimeAuthArtifact:ope({source:e.source,auth:e.source.auth,slot:"runtime",actorScopeId:e.actorScopeId,existingAuthArtifactId:e.existingRuntimeAuthArtifactId??ZJ.make(`auth_art_${crypto.randomUUID()}`)}),importAuthArtifact:e.source.importAuthPolicy==="separate"?ope({source:e.source,auth:e.source.importAuth,slot:"import",actorScopeId:e.actorScopeId,existingAuthArtifactId:e.existingImportAuthArtifactId??ZJ.make(`auth_art_${crypto.randomUUID()}`)}):null});var tZt=(e,r,i)=>m9.gen(function*(){let s=yield*RV(e,r.scopeId);if(!s.loadedConfig.config?.sources?.[r.sourceId])return!1;let l=TIe(s.loadedConfig.projectConfig??{}),d={...l.sources};delete d[r.sourceId],yield*s.scopeConfigStore.writeProject({config:{...l,sources:d}});let{[r.sourceId]:h,...S}=s.scopeState.sources,b={...s.scopeState,sources:S};yield*s.scopeStateStore.write({state:b}),yield*s.sourceArtifactStore.remove({sourceId:r.sourceId});let A=yield*e.executorState.authArtifacts.listByScopeAndSourceId({scopeId:r.scopeId,sourceId:r.sourceId}),L=xIe(A);return yield*e.executorState.sourceAuthSessions.removeByScopeAndSourceId(r.scopeId,r.sourceId),yield*e.executorState.sourceOauthClients.removeByScopeAndSourceId({scopeId:r.scopeId,sourceId:r.sourceId}),yield*BQt(e.executorState,r,i),yield*m9.forEach([...L],V=>Nat(e.executorState,{scopeId:r.scopeId,grantId:V}),{discard:!0}),yield*wat(e,r.scopeId),!0}),rZt=(e,r,i={},s)=>m9.gen(function*(){let l=yield*RV(e,r.scopeId),d={...r,id:l.loadedConfig.config?.sources?.[r.id]||l.scopeState.sources[r.id]?r.id:UQt(r,new Set(Object.keys(l.loadedConfig.config?.sources??{})))},h=yield*e.executorState.authArtifacts.listByScopeAndSourceId({scopeId:d.scopeId,sourceId:d.id}),S=kat({authArtifacts:h,actorScopeId:i.actorScopeId,slot:"runtime"}),b=kat({authArtifacts:h,actorScopeId:i.actorScopeId,slot:"import"}),A=TIe(l.loadedConfig.projectConfig??{}),L={...A.sources},V=L[d.id];L[d.id]=qQt({source:d,existingConfigAuth:V?.connection.auth,config:l.loadedConfig.config}),yield*l.scopeConfigStore.writeProject({config:{...A,sources:L}});let{runtimeAuthArtifact:j,importAuthArtifact:ie}=eZt({source:d,catalogId:DIe(d),catalogRevisionId:Oat(d),actorScopeId:i.actorScopeId,existingRuntimeAuthArtifactId:S?.id??null,existingImportAuthArtifactId:b?.id??null});j===null?(S!==null&&(yield*E5(e.executorState,{authArtifactId:S.id},s)),yield*e.executorState.authArtifacts.removeByScopeSourceAndActor({scopeId:d.scopeId,sourceId:d.id,actorScopeId:i.actorScopeId??null,slot:"runtime"})):(yield*e.executorState.authArtifacts.upsert(j),S!==null&&S.id!==j.id&&(yield*E5(e.executorState,{authArtifactId:S.id},s))),yield*bIe(e.executorState,{previous:S??null,next:j},s),ie===null?(b!==null&&(yield*E5(e.executorState,{authArtifactId:b.id},s)),yield*e.executorState.authArtifacts.removeByScopeSourceAndActor({scopeId:d.scopeId,sourceId:d.id,actorScopeId:i.actorScopeId??null,slot:"import"})):(yield*e.executorState.authArtifacts.upsert(ie),b!==null&&b.id!==ie.id&&(yield*E5(e.executorState,{authArtifactId:b.id},s))),yield*bIe(e.executorState,{previous:b??null,next:ie},s);let te=xIe([S,b]),X=xIe([j,ie]);yield*m9.forEach([...X],pt=>WQt(e.executorState,{grantId:pt}),{discard:!0}),yield*m9.forEach([...te].filter(pt=>!X.has(pt)),pt=>Nat(e.executorState,{scopeId:d.scopeId,grantId:pt}),{discard:!0});let Re=l.scopeState.sources[d.id],Je={...l.scopeState,sources:{...l.scopeState.sources,[d.id]:{status:d.status,lastError:d.lastError,sourceHash:d.sourceHash,createdAt:Re?.createdAt??d.createdAt,updatedAt:d.updatedAt}}};return yield*l.scopeStateStore.write({state:Je}),JQt(d)&&(yield*wat(e,d.scopeId,i)),yield*kIe(e,{scopeId:d.scopeId,sourceId:d.id,actorScopeId:i.actorScopeId})}).pipe(m9.withSpan("source.store.persist",{attributes:{"executor.scope.id":r.scopeId,"executor.source.id":r.id,"executor.source.kind":r.kind,"executor.source.status":r.status}}));var uy=class extends nZt.Tag("#runtime/RuntimeSourceStoreService")(){},oZt=iZt.effect(uy,Fat.gen(function*(){let e=yield*dm,r=yield*q2,i=yield*OD,s=yield*lx,l=yield*ux,d=yield*k8,h=yield*bT,S={executorState:e,runtimeLocalScope:r,scopeConfigStore:i,scopeStateStore:s,sourceArtifactStore:l,sourceTypeDeclarationsRefresher:d};return uy.of({loadSourcesInScope:(b,A={})=>EIe(S,b,A),listLinkedSecretSourcesInScope:(b,A={})=>VQt(S,b,A),loadSourceById:b=>kIe(S,b),removeSourceById:b=>tZt(S,b,h),persistSource:(b,A={})=>rZt(S,b,A,h)})}));var _Zt=e=>({descriptor:e.tool.descriptor,namespace:e.tool.searchNamespace,searchText:e.tool.searchText,score:e.score}),KCn=e=>{let[r,i]=e.split(".");return i?`${r}.${i}`:r},QCn=e=>e.path,ZCn=e=>({path:e.path,searchNamespace:e.searchNamespace,searchText:e.searchText,source:e.source,sourceRecord:e.sourceRecord,capabilityId:e.capabilityId,executableId:e.executableId,capability:e.capability,executable:e.executable,descriptor:e.descriptor,projectedCatalog:e.projectedCatalog}),XCn=e=>e==null?null:JSON.stringify(e,null,2),YCn=(e,r)=>e.toolDescriptors[r.id]?.toolPath.join(".")??"",eDn=(e,r)=>{let i=r.preferredExecutableId!==void 0?e.executables[r.preferredExecutableId]:void 0;if(i)return i;let s=r.executableIds.map(l=>e.executables[l]).find(l=>l!==void 0);if(!s)throw new Error(`Capability ${r.id} has no executable`);return s},Zee=(e,r)=>{if(!r)return;let i=e.symbols[r];return i?.kind==="shape"?i:void 0},AIe=(e,r)=>{let i={},s=new Set,l=new Set,d=new Set,h=new Map,S=new Set,b=$e=>{let xt=$e.trim();if(xt.length===0)return null;let tr=xt.replace(/[^A-Za-z0-9_]+/g,"_").replace(/_+/g,"_").replace(/^_+|_+$/g,"");return tr.length===0?null:/^[A-Za-z_]/.test(tr)?tr:`shape_${tr}`},A=($e,xt)=>{let tr=Zee(e,$e);return[...xt,tr?.title,$e].flatMap(ht=>typeof ht=="string"&&ht.trim().length>0?[ht]:[])},L=($e,xt)=>{let tr=h.get($e);if(tr)return tr;let ht=A($e,xt);for(let Hi of ht){let un=b(Hi);if(un&&!S.has(un))return h.set($e,un),S.add(un),un}let wt=b($e)??"shape",Ut=wt,hr=2;for(;S.has(Ut);)Ut=`${wt}_${String(hr)}`,hr+=1;return h.set($e,Ut),S.add(Ut),Ut},V=($e,xt,tr)=>A($e,xt)[0]??tr,j=($e,xt,tr)=>{let ht=Zee(e,$e);if(!ht)return!0;if(xt<0||tr.has($e))return!1;let wt=new Set(tr);return wt.add($e),$d.value(ht.node).pipe($d.when({type:"unknown"},()=>!0),$d.when({type:"const"},()=>!0),$d.when({type:"enum"},()=>!0),$d.when({type:"scalar"},()=>!0),$d.when({type:"ref"},Ut=>j(Ut.target,xt,wt)),$d.when({type:"nullable"},Ut=>j(Ut.itemShapeId,xt-1,wt)),$d.when({type:"array"},Ut=>j(Ut.itemShapeId,xt-1,wt)),$d.when({type:"object"},Ut=>{let hr=Object.values(Ut.fields);return hr.length<=8&&hr.every(Hi=>j(Hi.shapeId,xt-1,wt))}),$d.orElse(()=>!1))},ie=$e=>j($e,2,new Set),te=($e,xt=[])=>{if(s.has($e))return X($e,xt);if(!Zee(e,$e))return{};s.add($e);try{return Re($e,xt)}finally{s.delete($e)}},X=($e,xt=[])=>{let tr=L($e,xt);if(d.has($e)||l.has($e))return{$ref:`#/$defs/${tr}`};let ht=Zee(e,$e);l.add($e);let wt=s.has($e);wt||s.add($e);try{i[tr]=ht?Re($e,xt):{},d.add($e)}finally{l.delete($e),wt||s.delete($e)}return{$ref:`#/$defs/${tr}`}},Re=($e,xt=[])=>{let tr=Zee(e,$e);if(!tr)return{};let ht=V($e,xt,"shape"),wt=Ut=>({...tr.title?{title:tr.title}:{},...tr.docs?.description?{description:tr.docs.description}:{},...Ut});return $d.value(tr.node).pipe($d.when({type:"unknown"},()=>wt({})),$d.when({type:"const"},Ut=>wt({const:Ut.value})),$d.when({type:"enum"},Ut=>wt({enum:Ut.values})),$d.when({type:"scalar"},Ut=>wt({type:Ut.scalar==="bytes"?"string":Ut.scalar,...Ut.scalar==="bytes"?{format:"binary"}:{},...Ut.format?{format:Ut.format}:{},...Ut.constraints})),$d.when({type:"ref"},Ut=>ie(Ut.target)?te(Ut.target,xt):X(Ut.target,xt)),$d.when({type:"nullable"},Ut=>wt({anyOf:[te(Ut.itemShapeId,xt),{type:"null"}]})),$d.when({type:"allOf"},Ut=>wt({allOf:Ut.items.map((hr,Hi)=>te(hr,[`${ht}_allOf_${String(Hi+1)}`]))})),$d.when({type:"anyOf"},Ut=>wt({anyOf:Ut.items.map((hr,Hi)=>te(hr,[`${ht}_anyOf_${String(Hi+1)}`]))})),$d.when({type:"oneOf"},Ut=>wt({oneOf:Ut.items.map((hr,Hi)=>te(hr,[`${ht}_option_${String(Hi+1)}`])),...Ut.discriminator?{discriminator:{propertyName:Ut.discriminator.propertyName,...Ut.discriminator.mapping?{mapping:Object.fromEntries(Object.entries(Ut.discriminator.mapping).map(([hr,Hi])=>[hr,X(Hi,[hr,`${ht}_${hr}`]).$ref]))}:{}}}:{}})),$d.when({type:"not"},Ut=>wt({not:te(Ut.itemShapeId,[`${ht}_not`])})),$d.when({type:"conditional"},Ut=>wt({if:te(Ut.ifShapeId,[`${ht}_if`]),...Ut.thenShapeId?{then:te(Ut.thenShapeId,[`${ht}_then`])}:{},...Ut.elseShapeId?{else:te(Ut.elseShapeId,[`${ht}_else`])}:{}})),$d.when({type:"array"},Ut=>wt({type:"array",items:te(Ut.itemShapeId,[`${ht}_item`]),...Ut.minItems!==void 0?{minItems:Ut.minItems}:{},...Ut.maxItems!==void 0?{maxItems:Ut.maxItems}:{}})),$d.when({type:"tuple"},Ut=>wt({type:"array",prefixItems:Ut.itemShapeIds.map((hr,Hi)=>te(hr,[`${ht}_item_${String(Hi+1)}`])),...Ut.additionalItems!==void 0?{items:typeof Ut.additionalItems=="boolean"?Ut.additionalItems:te(Ut.additionalItems,[`${ht}_item_rest`])}:{}})),$d.when({type:"map"},Ut=>wt({type:"object",additionalProperties:te(Ut.valueShapeId,[`${ht}_value`])})),$d.when({type:"object"},Ut=>wt({type:"object",properties:Object.fromEntries(Object.entries(Ut.fields).map(([hr,Hi])=>[hr,{...te(Hi.shapeId,[hr]),...Hi.docs?.description?{description:Hi.docs.description}:{}}])),...Ut.required&&Ut.required.length>0?{required:Ut.required}:{},...Ut.additionalProperties!==void 0?{additionalProperties:typeof Ut.additionalProperties=="boolean"?Ut.additionalProperties:te(Ut.additionalProperties,[`${ht}_additionalProperty`])}:{},...Ut.patternProperties?{patternProperties:Object.fromEntries(Object.entries(Ut.patternProperties).map(([hr,Hi])=>[hr,te(Hi,[`${ht}_patternProperty`])]))}:{}})),$d.when({type:"graphqlInterface"},Ut=>wt({type:"object",properties:Object.fromEntries(Object.entries(Ut.fields).map(([hr,Hi])=>[hr,te(Hi.shapeId,[hr])]))})),$d.when({type:"graphqlUnion"},Ut=>wt({oneOf:Ut.memberTypeIds.map((hr,Hi)=>te(hr,[`${ht}_member_${String(Hi+1)}`]))})),$d.exhaustive)},Je=($e,xt=[])=>{let tr=Zee(e,$e);return tr?$d.value(tr.node).pipe($d.when({type:"ref"},ht=>Je(ht.target,xt)),$d.orElse(()=>te($e,xt))):{}},pt=Je(r,["input"]);return Object.keys(i).length>0?{...pt,$defs:i}:pt},dZt=e=>upe({catalog:e.catalog,roots:cCe(e)}),tDn=e=>{let r=e.projected.toolDescriptors[e.capability.id],i=r.toolPath.join("."),s=r.interaction.mayRequireApproval||r.interaction.mayElicit?"required":"auto",l=e.includeSchemas?AIe(e.projected.catalog,r.callShapeId):void 0,h=e.includeSchemas&&r.resultShapeId?AIe(e.projected.catalog,r.resultShapeId):void 0,S=e.includeTypePreviews?e.typeProjector.renderSelfContainedShape(r.callShapeId,{aliasHint:c0(...r.toolPath,"call")}):void 0,b=e.includeTypePreviews&&r.resultShapeId?e.typeProjector.renderSelfContainedShape(r.resultShapeId,{aliasHint:c0(...r.toolPath,"result")}):void 0;return{path:i,sourceKey:e.source.id,description:e.capability.surface.summary??e.capability.surface.description,interaction:s,contract:{inputTypePreview:S,...b!==void 0?{outputTypePreview:b}:{},...l!==void 0?{inputSchema:l}:{},...h!==void 0?{outputSchema:h}:{}},providerKind:e.executable.adapterKey,providerData:{capabilityId:e.capability.id,executableId:e.executable.id,adapterKey:e.executable.adapterKey,display:e.executable.display}}},fZt=e=>{let r=eDn(e.catalogEntry.projected.catalog,e.capability),i=e.catalogEntry.projected.toolDescriptors[e.capability.id],s=tDn({source:e.catalogEntry.source,projected:e.catalogEntry.projected,capability:e.capability,executable:r,typeProjector:e.catalogEntry.typeProjector,includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews}),l=QCn(s),d=e.catalogEntry.projected.searchDocs[e.capability.id],h=KCn(l),S=[l,h,e.catalogEntry.source.name,e.capability.surface.title,e.capability.surface.summary,e.capability.surface.description,s.contract?.inputTypePreview,s.contract?.outputTypePreview,...d?.tags??[],...d?.protocolHints??[],...d?.authHints??[]].filter(b=>typeof b=="string"&&b.length>0).join(" ").toLowerCase();return{path:l,searchNamespace:h,searchText:S,source:e.catalogEntry.source,sourceRecord:e.catalogEntry.sourceRecord,revision:e.catalogEntry.revision,capabilityId:e.capability.id,executableId:r.id,capability:e.capability,executable:r,projectedDescriptor:i,descriptor:s,projectedCatalog:e.catalogEntry.projected.catalog,typeProjector:e.catalogEntry.typeProjector}},mZt=e=>({id:e.source.id,scopeId:e.source.scopeId,catalogId:e.artifact.catalogId,catalogRevisionId:e.artifact.revision.id,name:e.source.name,kind:e.source.kind,endpoint:e.source.endpoint,status:e.source.status,enabled:e.source.enabled,namespace:e.source.namespace,importAuthPolicy:e.source.importAuthPolicy,bindingConfigJson:JSON.stringify(e.source.binding),sourceHash:e.source.sourceHash,lastError:e.source.lastError,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}),r$=class extends uZt.Tag("#runtime/RuntimeSourceCatalogStoreService")(){},rDn=e=>e??null,nDn=e=>JSON.stringify([...e].sort((r,i)=>String(r.id).localeCompare(String(i.id)))),hZt=(e,r)=>p_.gen(function*(){if(e.runtimeLocalScope.installation.scopeId!==r)return yield*p_.fail(_a("catalog/source/runtime",`Runtime local scope mismatch: expected ${r}, got ${e.runtimeLocalScope.installation.scopeId}`))}),gZt=e=>jke(e.artifact.snapshot),yZt=(e,r)=>p_.gen(function*(){return yield*hZt(e,r.scopeId),yield*e.sourceStore.loadSourcesInScope(r.scopeId,{actorScopeId:r.actorScopeId})}),aZt=(e,r)=>p_.map(yZt(e,r),i=>({scopeId:r.scopeId,actorScopeId:rDn(r.actorScopeId),sourceFingerprint:nDn(i)})),iDn=(e,r)=>p_.gen(function*(){return(yield*p_.forEach(r,s=>p_.gen(function*(){let l=yield*e.sourceArtifactStore.read({sourceId:s.id});if(l===null)return null;let d=gZt({source:s,artifact:l}),h=Zue({catalog:d.catalog}),S=dZt(h);return{source:s,sourceRecord:mZt({source:s,artifact:l}),revision:l.revision,snapshot:d,catalog:d.catalog,projected:h,typeProjector:S,importMetadata:d.import}}))).filter(s=>s!==null)}),vZt=(e,r)=>p_.gen(function*(){let i=yield*yZt(e,r);return yield*iDn(e,i)}),SZt=(e,r)=>p_.gen(function*(){yield*hZt(e,r.scopeId);let i=yield*e.sourceStore.loadSourceById({scopeId:r.scopeId,sourceId:r.sourceId,actorScopeId:r.actorScopeId}),s=yield*e.sourceArtifactStore.read({sourceId:i.id});if(s===null)return yield*new oCe({message:`Catalog artifact missing for source ${r.sourceId}`,sourceId:r.sourceId});let l=gZt({source:i,artifact:s}),d=Zue({catalog:l.catalog}),h=dZt(d);return{source:i,sourceRecord:mZt({source:i,artifact:s}),revision:s.revision,snapshot:l,catalog:l.catalog,projected:d,typeProjector:h,importMetadata:l.import}}),oDn=e=>p_.gen(function*(){let r=yield*q2,i=yield*uy,s=yield*ux;return yield*vZt({runtimeLocalScope:r,sourceStore:i,sourceArtifactStore:s},e)}),bZt=e=>p_.gen(function*(){let r=yield*q2,i=yield*uy,s=yield*ux;return yield*SZt({runtimeLocalScope:r,sourceStore:i,sourceArtifactStore:s},e)}),Lat=e=>p_.succeed(e.catalogs.flatMap(r=>Object.values(r.catalog.capabilities).map(i=>fZt({catalogEntry:r,capability:i,includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews??!0})))),sZt=e=>p_.tryPromise({try:async()=>{let r=upe({catalog:e.catalog,roots:[{shapeId:e.shapeId,aliasHint:e.aliasHint}]}),i=r.renderDeclarationShape(e.shapeId,{aliasHint:e.aliasHint}),s=r.supportingDeclarations(),l=`type ${e.aliasHint} =`;return s.some(h=>h.includes(l))?s.join(` - -`):[...s,sDn({catalog:e.catalog,shapeId:e.shapeId,aliasHint:e.aliasHint,body:i})].join(` +`);e=e.replace(Lme,"").trimEnd();let r=Object.create(null),n=u1(0,e,$me,"").replace(Lme,"").trimEnd(),o;for(;o=$me.exec(e);){let i=u1(0,o[2],ust,"");if(typeof r[o[1]]=="string"||Array.isArray(r[o[1]])){let a=r[o[1]];r[o[1]]=[..._st,...Array.isArray(a)?a:[a],i]}else r[o[1]]=i}return{comments:n,pragmas:r}}var hst=["noformat","noprettier"],yst=["format","prettier"];function gst(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var Sst=gst;function $ye(e){let t=Sst(e);t&&(e=e.slice(t.length+1));let r=fst(e),{pragmas:n,comments:o}=mst(r);return{shebang:t,text:e,pragmas:n,comments:o}}function vst(e){let{pragmas:t}=$ye(e);return yst.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function bst(e){let{pragmas:t}=$ye(e);return hst.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function xst(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:vst,hasIgnorePragma:bst,locStart:Y_,locEnd:dd,...e}}var Est=xst,Tst=/^[^"'`]*<\/|^[^/]{2}.*\/>/mu;function Dst(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var Ast=Dst,Mye="module",jye="commonjs",wst=[Mye,jye];function Ist(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return Mye;if(/\.(?:cjs|cts)$/iu.test(e))return jye}}var kst={loc:!0,range:!0,comment:!0,tokens:!1,loggerFn:!1,project:!1,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:!0};function Cst(e){let{message:t,location:r}=e;if(!r)return e;let{start:n,end:o}=r;return Pat(t,{loc:{start:{line:n.line,column:n.column+1},end:{line:o.line,column:o.column+1}},cause:e})}var Pst=e=>e&&/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function Ost(e,t){let r=[{...kst,filePath:t}],n=Ist(t);if(n?r=r.map(i=>({...i,sourceType:n})):r=wst.flatMap(i=>r.map(a=>({...a,sourceType:i}))),Pst(t))return r;let o=Tst.test(e);return[o,!o].flatMap(i=>r.map(a=>({...a,jsx:i})))}function Nst(e,t){let r=t?.filepath;typeof r!="string"&&(r=void 0);let n=Ast(e),o=Ost(e,r),i;try{i=Oat(o.map(a=>()=>Iat(n,a)))}catch({errors:[a]}){throw Cst(a)}return ast(i,{parser:"typescript",text:e})}var Fst=Est(Nst);var Rst=[oU,WU,pV],Bye=new Map;function Lst(e,t){return`${t}::${e.length}::${e}`}async function e2(e,t){let r=Lst(e,t),n=Bye.get(r);if(n)return n;try{let o=e,i=!1;t==="typescript"&&(o=`type __T = ${e}`,i=!0);let s=(await y3(o,{parser:t==="typescript-module"?"typescript":t,plugins:Rst,printWidth:60,tabWidth:2,semi:!0,singleQuote:!1,trailingComma:"all"})).trimEnd();return i&&(s=s.replace(/^type __T =\s*/,"").replace(/;$/,"").trimEnd()),Bye.set(r,s),s}catch{return e}}import*as AO from"effect/Context";import*as sh from"effect/Effect";import*as qye from"effect/Layer";import*as Uye from"effect/Option";var Rs=class extends AO.Tag("#runtime/RuntimeLocalScopeService")(){},WV=e=>qye.succeed(Rs,e),ch=(e,t)=>t==null?e:e.pipe(sh.provide(WV(t))),lh=()=>sh.contextWith(e=>AO.getOption(e,Rs)).pipe(sh.map(e=>Uye.isSome(e)?e.value:null)),x1=e=>sh.gen(function*(){let t=yield*lh();return t===null?yield*new e3({message:"Runtime local scope is unavailable"}):e!==void 0&&t.installation.scopeId!==e?yield*new wv({message:`Scope ${e} is not the active local scope ${t.installation.scopeId}`,requestedScopeId:e,activeScopeId:t.installation.scopeId}):t});import*as t2 from"effect/Context";import*as uh from"effect/Layer";var qg=class extends t2.Tag("#runtime/InstallationStore")(){},Kc=class extends t2.Tag("#runtime/ScopeConfigStore")(){},$a=class extends t2.Tag("#runtime/ScopeStateStore")(){},Ma=class extends t2.Tag("#runtime/SourceArtifactStore")(){},r2=e=>uh.mergeAll(uh.succeed(Kc,e.scopeConfigStore),uh.succeed($a,e.scopeStateStore),uh.succeed(Ma,e.sourceArtifactStore)),n2=e=>uh.mergeAll(uh.succeed(qg,e.installationStore),r2(e));import*as JTe from"effect/Context";import*as yQ from"effect/Effect";import*as KTe from"effect/Layer";import*as zye from"effect/Context";var md=class extends zye.Tag("#runtime/SourceTypeDeclarationsRefresherService")(){};import*as Vye from"effect/Effect";var Ug=(e,t)=>Vye.gen(function*(){if(e.runtimeLocalScope.installation.scopeId!==t)return yield*new wv({message:`Runtime local scope mismatch: expected ${t}, got ${e.runtimeLocalScope.installation.scopeId}`,requestedScopeId:t,activeScopeId:e.runtimeLocalScope.installation.scopeId});let r=yield*e.scopeConfigStore.load(),n=yield*e.scopeStateStore.load();return{installation:e.runtimeLocalScope.installation,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,loadedConfig:r,scopeState:n}});import*as Mi from"effect/Effect";import*as Zye from"effect/Effect";var _o=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},vo=e=>typeof e=="string"&&e.trim().length>0?e.trim():null,Wye=e=>typeof e=="boolean"?e:null,wO=e=>Array.isArray(e)?e.flatMap(t=>{let r=vo(t);return r?[r]:[]}):[],Jye=e=>{if(e)try{return JSON.parse(e)}catch{return}},$st=e=>Dc(e),Mst=e=>e.replaceAll("~","~0").replaceAll("/","~1"),IO=e=>`#/$defs/google/${Mst(e)}`,jst=e=>{let t=vo(e)?.toLowerCase();switch(t){case"get":case"put":case"post":case"delete":case"patch":case"head":case"options":return t;default:throw new Error(`Unsupported Google Discovery HTTP method: ${String(e)}`)}},zg=e=>{let t=_o(e.schema),r=vo(t.$ref);if(r)return{$ref:IO(r)};let n=vo(t.description),o=vo(t.format),i=vo(t.type),a=wO(t.enum),s=typeof t.default=="string"||typeof t.default=="number"||typeof t.default=="boolean"?t.default:void 0,c=Wye(t.readOnly),p={...n?{description:n}:{},...o?{format:o}:{},...a.length>0?{enum:[...a]}:{},...s!==void 0?{default:s}:{},...c===!0?{readOnly:!0}:{}};if(i==="any")return p;if(i==="array"){let m=zg({schema:t.items,topLevelSchemas:e.topLevelSchemas});return{...p,type:"array",items:m??{}}}let d=_o(t.properties),f=t.additionalProperties;if(i==="object"||Object.keys(d).length>0||f!==void 0){let m=Object.fromEntries(Object.entries(d).map(([g,S])=>[g,zg({schema:S,topLevelSchemas:e.topLevelSchemas})])),y=f===void 0?void 0:f===!0?!0:zg({schema:f,topLevelSchemas:e.topLevelSchemas});return{...p,type:"object",...Object.keys(m).length>0?{properties:m}:{},...y!==void 0?{additionalProperties:y}:{}}}return i==="boolean"||i==="number"||i==="integer"||i==="string"?{...p,type:i}:Object.keys(p).length>0?p:{}},Bst=e=>{let t=zg({schema:e.parameter,topLevelSchemas:e.topLevelSchemas});return e.parameter.repeated===!0?{type:"array",items:t}:t},Kye=e=>{let t=_o(e.method),r=_o(t.parameters),n={},o=[];for(let[a,s]of Object.entries(r)){let c=_o(s);n[a]=Bst({parameter:c,topLevelSchemas:e.topLevelSchemas}),c.required===!0&&o.push(a)}let i=vo(_o(t.request).$ref);if(i){let a=e.topLevelSchemas[i];a?n.body=zg({schema:a,topLevelSchemas:e.topLevelSchemas}):n.body={$ref:IO(i)}}if(Object.keys(n).length!==0)return JSON.stringify({type:"object",properties:n,...o.length>0?{required:o}:{},additionalProperties:!1})},Gye=e=>{let t=vo(_o(_o(e.method).response).$ref);if(!t)return;let r=e.topLevelSchemas[t],n=r?zg({schema:r,topLevelSchemas:e.topLevelSchemas}):{$ref:IO(t)};return JSON.stringify(n)},qst=e=>Object.entries(_o(_o(e).parameters)).flatMap(([t,r])=>{let n=_o(r),o=vo(n.location);return o!=="path"&&o!=="query"&&o!=="header"?[]:[{name:t,location:o,required:n.required===!0,repeated:n.repeated===!0,description:vo(n.description),type:vo(n.type)??vo(n.$ref),...wO(n.enum).length>0?{enum:[...wO(n.enum)]}:{},...vo(n.default)?{default:vo(n.default)}:{}}]}),Hye=e=>{let t=_o(_o(_o(e.auth).oauth2).scopes),r=Object.fromEntries(Object.entries(t).flatMap(([n,o])=>{let i=vo(_o(o).description)??"";return[[n,i]]}));return Object.keys(r).length>0?r:void 0},Qye=e=>{let t=vo(e.method.id),r=vo(e.method.path);if(!t||!r)return null;let n=jst(e.method.httpMethod),o=t,i=o.startsWith(`${e.service}.`)?o.slice(e.service.length+1):o,a=i.split(".").filter(m=>m.length>0),s=a.at(-1)??i,c=a.length>1?a.slice(0,-1).join("."):null,p=vo(_o(_o(e.method).response).$ref),d=vo(_o(_o(e.method).request).$ref),f=_o(e.method.mediaUpload);return{toolId:i,rawToolId:o,methodId:t,name:i,description:vo(e.method.description),group:c,leaf:s,method:n,path:r,flatPath:vo(e.method.flatPath),parameters:qst(e.method),requestSchemaId:d,responseSchemaId:p,scopes:[...wO(e.method.scopes)],supportsMediaUpload:Object.keys(f).length>0,supportsMediaDownload:Wye(e.method.supportsMediaDownload)===!0,...Kye({method:e.method,topLevelSchemas:e.topLevelSchemas})?{inputSchema:Jye(Kye({method:e.method,topLevelSchemas:e.topLevelSchemas}))}:{},...Gye({method:e.method,topLevelSchemas:e.topLevelSchemas})?{outputSchema:Jye(Gye({method:e.method,topLevelSchemas:e.topLevelSchemas}))}:{}}},Xye=e=>{let t=_o(e.resource),r=Object.values(_o(t.methods)).flatMap(o=>{try{let i=Qye({service:e.service,version:e.version,rootUrl:e.rootUrl,servicePath:e.servicePath,topLevelSchemas:e.topLevelSchemas,method:_o(o)});return i?[i]:[]}catch{return[]}}),n=Object.values(_o(t.resources)).flatMap(o=>Xye({...e,resource:o}));return[...r,...n]},E1=(e,t)=>Zye.try({try:()=>{let r=typeof t=="string"?JSON.parse(t):t,n=vo(r.name),o=vo(r.version),i=vo(r.rootUrl),a=typeof r.servicePath=="string"?r.servicePath:"";if(!n||!o||!i)throw new Error(`Invalid Google Discovery document for ${e}`);let s=Object.fromEntries(Object.entries(_o(r.schemas)).map(([f,m])=>[f,_o(m)])),c=Object.fromEntries(Object.entries(s).map(([f,m])=>[IO(f),JSON.stringify(zg({schema:m,topLevelSchemas:s}))])),p=[...Object.values(_o(r.methods)).flatMap(f=>{let m=Qye({service:n,version:o,rootUrl:i,servicePath:a,topLevelSchemas:s,method:_o(f)});return m?[m]:[]}),...Object.values(_o(r.resources)).flatMap(f=>Xye({service:n,version:o,rootUrl:i,servicePath:a,topLevelSchemas:s,resource:f}))].sort((f,m)=>f.toolId.localeCompare(m.toolId));return{version:1,sourceHash:$st(typeof t=="string"?t:JSON.stringify(t)),service:n,versionName:o,title:vo(r.title),description:vo(r.description),rootUrl:i,servicePath:a,batchPath:vo(r.batchPath),documentationLink:vo(r.documentationLink),...Object.keys(c).length>0?{schemaRefTable:c}:{},...Hye(r)?{oauthScopes:Hye(r)}:{},methods:p}},catch:r=>r instanceof Error?r:new Error(`Failed to extract Google Discovery manifest: ${String(r)}`)}),QV=e=>[...e.methods];import*as XV from"effect/Either";import*as rf from"effect/Effect";var Ust=e=>{try{return new URL(e.servicePath||"",e.rootUrl).toString()}catch{return e.rootUrl}},zst=e=>e.scopes.length>0?Au("oauth2",{confidence:"high",reason:"Google Discovery document declares OAuth scopes",headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:"https://accounts.google.com/o/oauth2/v2/auth",oauthTokenUrl:"https://oauth2.googleapis.com/token",oauthScopes:[...e.scopes]}):Pp("Google Discovery document does not declare OAuth scopes","medium"),YV=e=>rf.gen(function*(){let t=yield*rf.either(cv({method:"GET",url:e.normalizedUrl,headers:e.headers}));if(XV.isLeft(t)||t.right.status<200||t.right.status>=300)return null;let r=yield*rf.either(E1(e.normalizedUrl,t.right.text));if(XV.isLeft(r))return null;let n=Ust({rootUrl:r.right.rootUrl,servicePath:r.right.servicePath}),o=kp(r.right.title)??`${r.right.service}.${r.right.versionName}.googleapis.com`,i=Object.keys(r.right.oauthScopes??{});return{detectedKind:"google_discovery",confidence:"high",endpoint:n,specUrl:e.normalizedUrl,name:o,namespace:os(r.right.service),transport:null,authInference:zst({scopes:i}),toolCount:r.right.methods.length,warnings:[]}}).pipe(rf.catchAll(()=>rf.succeed(null)));import*as ls from"effect/Schema";var eJ=ls.Struct({service:ls.String,version:ls.String,discoveryUrl:ls.optional(ls.NullOr(ls.String)),defaultHeaders:ls.optional(ls.NullOr(Wr)),scopes:ls.optional(ls.Array(ls.String))});var Vst=e=>{let t=e?.providerData.invocation.rootUrl;if(!t)return;let r=e?.providerData.invocation.servicePath??"";return[{url:new URL(r||"",t).toString()}]},Jst=e=>{let t=h_(e.source,e.operation.providerData.toolId),r=Oc.make(`cap_${mn({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),n=Qs.make(`exec_${mn({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"http"})}`),o=e.operation.inputSchema??{},i=e.operation.outputSchema??{},a=e.operation.providerData.invocation.scopes.length>0?_m.make(`security_${mn({sourceId:e.source.id,scopes:e.operation.providerData.invocation.scopes})}`):void 0;if(a&&!e.catalog.symbols[a]){let g=Object.fromEntries(e.operation.providerData.invocation.scopes.map(S=>[S,e.operation.providerData.invocation.scopeDescriptions?.[S]??S]));Vr(e.catalog.symbols)[a]={id:a,kind:"securityScheme",schemeType:"oauth2",docs:wn({summary:"OAuth 2.0",description:"Imported from Google Discovery scopes."}),oauth:{flows:{},scopes:g},synthetic:!1,provenance:un(e.documentId,"#/googleDiscovery/security")}}e.operation.providerData.invocation.parameters.forEach(g=>{let S=pm.make(`param_${mn({capabilityId:r,location:g.location,name:g.name})}`),x=kT(o,g.location,g.name)??(g.repeated?{type:"array",items:{type:g.type==="integer"?"integer":"string",...g.enum?{enum:g.enum}:{}}}:{type:g.type==="integer"?"integer":"string",...g.enum?{enum:g.enum}:{}});Vr(e.catalog.symbols)[S]={id:S,kind:"parameter",name:g.name,location:g.location,required:g.required,...wn({description:g.description})?{docs:wn({description:g.description})}:{},schemaShapeId:e.importer.importSchema(x,`#/googleDiscovery/${e.operation.providerData.toolId}/parameter/${g.location}/${g.name}`,o),synthetic:!1,provenance:un(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/parameter/${g.location}/${g.name}`)}});let s=e.operation.providerData.invocation.requestSchemaId||pv(o)!==void 0?Xy.make(`request_body_${mn({capabilityId:r})}`):void 0;if(s){let g=pv(o)??o;Vr(e.catalog.symbols)[s]={id:s,kind:"requestBody",contents:[{mediaType:"application/json",shapeId:e.importer.importSchema(g,`#/googleDiscovery/${e.operation.providerData.toolId}/requestBody`,o)}],synthetic:!1,provenance:un(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/requestBody`)}}let c=Nc.make(`response_${mn({capabilityId:r})}`);Vr(e.catalog.symbols)[c]={id:c,kind:"response",...wn({description:e.operation.description})?{docs:wn({description:e.operation.description})}:{},...e.operation.outputSchema!==void 0?{contents:[{mediaType:"application/json",shapeId:e.importer.importSchema(i,`#/googleDiscovery/${e.operation.providerData.toolId}/response`,i)}]}:{},synthetic:!1,provenance:un(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/response`)};let p=[];e.operation.providerData.invocation.supportsMediaUpload&&p.push("upload"),e.operation.providerData.invocation.supportsMediaDownload&&p.push("download");let d=g_({catalog:e.catalog,responseId:c,provenance:un(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/responseSet`),traits:p}),f=e.operation.inputSchema!==void 0?e.importer.importSchema(e.operation.inputSchema,`#/googleDiscovery/${e.operation.providerData.toolId}/call`,e.operation.inputSchema):e.importer.importSchema({type:"object",additionalProperties:!1},`#/googleDiscovery/${e.operation.providerData.toolId}/call`);Vr(e.catalog.executables)[n]={id:n,capabilityId:r,scopeId:e.serviceScopeId,adapterKey:"google_discovery",bindingVersion:Ca,binding:e.operation.providerData,projection:{responseSetId:d,callShapeId:f},display:{protocol:"http",method:e.operation.providerData.invocation.method.toUpperCase(),pathTemplate:e.operation.providerData.invocation.path,operationId:e.operation.providerData.methodId,group:e.operation.providerData.group,leaf:e.operation.providerData.leaf,rawToolId:e.operation.providerData.rawToolId,title:e.operation.title??null,summary:e.operation.description??null},synthetic:!1,provenance:un(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/executable`)};let m=e.operation.effect,y=a?{kind:"scheme",schemeId:a,scopes:e.operation.providerData.invocation.scopes}:{kind:"none"};Vr(e.catalog.capabilities)[r]={id:r,serviceScopeId:e.serviceScopeId,surface:{toolPath:t,...e.operation.title?{title:e.operation.title}:{},...e.operation.description?{summary:e.operation.description}:{},tags:["google",e.operation.providerData.service,e.operation.providerData.version]},semantics:{effect:m,safe:m==="read",idempotent:m==="read"||m==="delete",destructive:m==="delete"},auth:y,interaction:y_(m),executableIds:[n],synthetic:!1,provenance:un(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/capability`)}},Yye=e=>S_({source:e.source,documents:e.documents,serviceScopeDefaults:(()=>{let t=Vst(e.operations[0]);return t?{servers:t}:void 0})(),registerOperations:({catalog:t,documentId:r,serviceScopeId:n,importer:o})=>{for(let i of e.operations)Jst({catalog:t,source:e.source,documentId:r,serviceScopeId:n,operation:i,importer:o})}});import{FetchHttpClient as NBt,HttpClient as FBt,HttpClientRequest as RBt}from"@effect/platform";import*as kO from"effect/Effect";import*as qu from"effect/Schema";import{Schema as Ge}from"effect";var Kst=["get","put","post","delete","patch","head","options"],tJ=Ge.Literal(...Kst),ege=Ge.Literal("path","query","header"),rJ=Ge.Struct({name:Ge.String,location:ege,required:Ge.Boolean,repeated:Ge.Boolean,description:Ge.NullOr(Ge.String),type:Ge.NullOr(Ge.String),enum:Ge.optional(Ge.Array(Ge.String)),default:Ge.optional(Ge.String)}),tge=Ge.Struct({method:tJ,path:Ge.String,flatPath:Ge.NullOr(Ge.String),rootUrl:Ge.String,servicePath:Ge.String,parameters:Ge.Array(rJ),requestSchemaId:Ge.NullOr(Ge.String),responseSchemaId:Ge.NullOr(Ge.String),scopes:Ge.Array(Ge.String),scopeDescriptions:Ge.optional(Ge.Record({key:Ge.String,value:Ge.String})),supportsMediaUpload:Ge.Boolean,supportsMediaDownload:Ge.Boolean}),o2=Ge.Struct({kind:Ge.Literal("google_discovery"),service:Ge.String,version:Ge.String,toolId:Ge.String,rawToolId:Ge.String,methodId:Ge.String,group:Ge.NullOr(Ge.String),leaf:Ge.String,invocation:tge}),rge=Ge.Struct({toolId:Ge.String,rawToolId:Ge.String,methodId:Ge.String,name:Ge.String,description:Ge.NullOr(Ge.String),group:Ge.NullOr(Ge.String),leaf:Ge.String,method:tJ,path:Ge.String,flatPath:Ge.NullOr(Ge.String),parameters:Ge.Array(rJ),requestSchemaId:Ge.NullOr(Ge.String),responseSchemaId:Ge.NullOr(Ge.String),scopes:Ge.Array(Ge.String),supportsMediaUpload:Ge.Boolean,supportsMediaDownload:Ge.Boolean,inputSchema:Ge.optional(Ge.Unknown),outputSchema:Ge.optional(Ge.Unknown)}),nge=Ge.Record({key:Ge.String,value:Ge.String}),Gst=Ge.Struct({version:Ge.Literal(1),sourceHash:Ge.String,service:Ge.String,versionName:Ge.String,title:Ge.NullOr(Ge.String),description:Ge.NullOr(Ge.String),rootUrl:Ge.String,servicePath:Ge.String,batchPath:Ge.NullOr(Ge.String),documentationLink:Ge.NullOr(Ge.String),oauthScopes:Ge.optional(Ge.Record({key:Ge.String,value:Ge.String})),schemaRefTable:Ge.optional(nge),methods:Ge.Array(rge)});import*as Hst from"effect/Either";var jBt=qu.decodeUnknownEither(o2),ige=e=>({kind:"google_discovery",service:e.service,version:e.version,toolId:e.definition.toolId,rawToolId:e.definition.rawToolId,methodId:e.definition.methodId,group:e.definition.group,leaf:e.definition.leaf,invocation:{method:e.definition.method,path:e.definition.path,flatPath:e.definition.flatPath,rootUrl:e.rootUrl,servicePath:e.servicePath,parameters:e.definition.parameters,requestSchemaId:e.definition.requestSchemaId,responseSchemaId:e.definition.responseSchemaId,scopes:e.definition.scopes,...e.oauthScopes?{scopeDescriptions:Object.fromEntries(e.definition.scopes.flatMap(t=>e.oauthScopes?.[t]!==void 0?[[t,e.oauthScopes[t]]]:[]))}:{},supportsMediaUpload:e.definition.supportsMediaUpload,supportsMediaDownload:e.definition.supportsMediaDownload}}),Zst=qu.decodeUnknownEither(qu.parseJson(qu.Record({key:qu.String,value:qu.Unknown}))),nJ=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{};var age=(e,t,r)=>{if(t.length===0)return;let[n,...o]=t;if(!n)return;if(o.length===0){e[n]=r;return}let i=nJ(e[n]);e[n]=i,age(i,o,r)},oge=e=>{if(e.schema===void 0||e.schema===null)return{};let t=nJ(e.schema);if(!e.refTable||Object.keys(e.refTable).length===0)return t;let r=nJ(t.$defs);for(let[n,o]of Object.entries(e.refTable)){if(!n.startsWith("#/$defs/"))continue;let i=typeof o=="string"?(()=>{try{return JSON.parse(o)}catch{return o}})():o,a=n.slice(8).split("/").filter(s=>s.length>0);age(r,a,i)}return Object.keys(r).length>0?{...t,$defs:r}:t};var oJ=e=>{let t=Object.fromEntries(Object.entries(e.manifest.schemaRefTable??{}).map(([o,i])=>{try{return[o,JSON.parse(i)]}catch{return[o,i]}})),r=e.definition.inputSchema===void 0?void 0:oge({schema:e.definition.inputSchema,refTable:t}),n=e.definition.outputSchema===void 0?void 0:oge({schema:e.definition.outputSchema,refTable:t});return{inputTypePreview:hu(r,"unknown",1/0),outputTypePreview:hu(n,"unknown",1/0),...r!==void 0?{inputSchema:r}:{},...n!==void 0?{outputSchema:n}:{},providerData:ige({service:e.manifest.service,version:e.manifest.versionName,rootUrl:e.manifest.rootUrl,servicePath:e.manifest.servicePath,oauthScopes:e.manifest.oauthScopes,definition:e.definition})}};import{FetchHttpClient as Wst,HttpClient as Qst,HttpClientRequest as sge}from"@effect/platform";import*as Yn from"effect/Effect";import*as dr from"effect/Schema";var lge=dr.extend(gm,dr.Struct({kind:dr.Literal("google_discovery"),service:dr.Trim.pipe(dr.nonEmptyString()),version:dr.Trim.pipe(dr.nonEmptyString()),discoveryUrl:dr.optional(dr.NullOr(dr.Trim.pipe(dr.nonEmptyString()))),scopes:dr.optional(dr.Array(dr.Trim.pipe(dr.nonEmptyString()))),scopeOauthClientId:dr.optional(dr.NullOr(Nse)),oauthClient:Mse,name:Ho,namespace:Ho,auth:dr.optional(x_)})),Xst=lge,cge=dr.Struct({service:dr.Trim.pipe(dr.nonEmptyString()),version:dr.Trim.pipe(dr.nonEmptyString()),discoveryUrl:dr.Trim.pipe(dr.nonEmptyString()),defaultHeaders:dr.optional(dr.NullOr(Wr)),scopes:dr.optional(dr.Array(dr.Trim.pipe(dr.nonEmptyString())))}),Yst=dr.Struct({service:dr.String,version:dr.String,discoveryUrl:dr.optional(dr.String),defaultHeaders:dr.optional(dr.NullOr(Wr)),scopes:dr.optional(dr.Array(dr.String))}),i2=1,ect=(e,t)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&t.some(r=>Object.prototype.hasOwnProperty.call(e,r)),tct=(e,t)=>`https://www.googleapis.com/discovery/v1/apis/${encodeURIComponent(e)}/${encodeURIComponent(t)}/rest`,ph=e=>Yn.gen(function*(){if(ect(e.binding,["transport","queryParams","headers","specUrl"]))return yield*Co("google-discovery/adapter","Google Discovery sources cannot define MCP or OpenAPI binding fields");let t=yield*$p({sourceId:e.id,label:"Google Discovery",version:e.bindingVersion,expectedVersion:i2,schema:Yst,value:e.binding,allowedKeys:["service","version","discoveryUrl","defaultHeaders","scopes"]}),r=t.service.trim(),n=t.version.trim();if(r.length===0||n.length===0)return yield*Co("google-discovery/adapter","Google Discovery sources require service and version");let o=typeof t.discoveryUrl=="string"&&t.discoveryUrl.trim().length>0?t.discoveryUrl.trim():null;return{service:r,version:n,discoveryUrl:o??tct(r,n),defaultHeaders:t.defaultHeaders??null,scopes:(t.scopes??[]).map(i=>i.trim()).filter(i=>i.length>0)}}),uge=e=>Yn.gen(function*(){let t=yield*Qst.HttpClient,r=sge.get(e.url).pipe(sge.setHeaders({...e.headers,...e.cookies?{cookie:Object.entries(e.cookies).map(([o,i])=>`${o}=${encodeURIComponent(i)}`).join("; ")}:{}})),n=yield*t.execute(r).pipe(Yn.mapError(o=>o instanceof Error?o:new Error(String(o))));return n.status===401||n.status===403?yield*new b_("import",`Google Discovery fetch requires credentials (status ${n.status})`):n.status<200||n.status>=300?yield*Co("google-discovery/adapter",`Google Discovery fetch failed with status ${n.status}`):yield*n.text.pipe(Yn.mapError(o=>o instanceof Error?o:new Error(String(o))))}).pipe(Yn.provide(Wst.layer)),rct=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},pge=(e,t)=>{if(e==null)return[];if(Array.isArray(e)){let r=e.flatMap(n=>n==null?[]:[String(n)]);return t?r:[r.join(",")]}return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?[String(e)]:[JSON.stringify(e)]},nct=e=>e.pathTemplate.replaceAll(/\{([^}]+)\}/g,(t,r)=>{let n=e.parameters.find(a=>a.location==="path"&&a.name===r),o=e.args[r];if(o==null&&n?.required)throw new Error(`Missing required path parameter: ${r}`);let i=pge(o,!1);return i.length===0?"":encodeURIComponent(i[0])}),oct=e=>new URL(e.providerData.invocation.servicePath||"",e.providerData.invocation.rootUrl).toString(),ict=e=>{let t={};return e.headers.forEach((r,n)=>{t[n]=r}),t},act=async e=>{let t=e.headers.get("content-type")?.toLowerCase()??"",r=await e.text();if(r.trim().length===0)return null;if(t.includes("application/json")||t.includes("+json"))try{return JSON.parse(r)}catch{return r}return r},sct=e=>{let t=oJ({manifest:e.manifest,definition:e.definition});return{toolId:e.definition.toolId,title:e.definition.name,description:e.definition.description,effect:e.definition.method==="get"||e.definition.method==="head"?"read":e.definition.method==="delete"?"delete":"write",inputSchema:t.inputSchema,outputSchema:t.outputSchema,providerData:t.providerData}},cct=e=>{let t=Object.keys(e.oauthScopes??{});if(t.length===0)return[];let r=new Map;for(let o of t)r.set(o,new Set);for(let o of e.methods)for(let i of o.scopes)r.get(i)?.add(o.methodId);return t.filter(o=>{let i=r.get(o);return!i||i.size===0?!0:!t.some(a=>{if(a===o)return!1;let s=r.get(a);if(!s||s.size<=i.size)return!1;for(let c of i)if(!s.has(c))return!1;return!0})})},lct=e=>Yn.gen(function*(){let t=yield*ph(e),r=t.scopes??[],n=yield*uge({url:t.discoveryUrl,headers:t.defaultHeaders??void 0}).pipe(Yn.flatMap(a=>E1(e.name,a)),Yn.catchAll(()=>Yn.succeed(null))),o=n?cct(n):[],i=o.length>0?[...new Set([...o,...r])]:r;return i.length===0?null:{providerKey:"google_workspace",authorizationEndpoint:"https://accounts.google.com/o/oauth2/v2/auth",tokenEndpoint:"https://oauth2.googleapis.com/token",scopes:i,headerName:"Authorization",prefix:"Bearer ",clientAuthentication:"client_secret_post",authorizationParams:{access_type:"offline",prompt:"consent",include_granted_scopes:"true"}}}),dge={key:"google_discovery",displayName:"Google Discovery",catalogKind:"imported",connectStrategy:"direct",credentialStrategy:"credential_managed",bindingConfigVersion:i2,providerKey:"google_workspace",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:lge,executorAddInputSchema:Xst,executorAddHelpText:["service is the Discovery service name, e.g. sheets or drive. version is the API version, e.g. v4 or v3."],executorAddInputSignatureWidth:420,localConfigBindingSchema:eJ,localConfigBindingFromSource:e=>Yn.runSync(Yn.map(ph(e),t=>({service:t.service,version:t.version,discoveryUrl:t.discoveryUrl,defaultHeaders:t.defaultHeaders??null,scopes:t.scopes}))),serializeBindingConfig:e=>Rp({adapterKey:"google_discovery",version:i2,payloadSchema:cge,payload:Yn.runSync(ph(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:t})=>Yn.map(Lp({sourceId:e,label:"Google Discovery",adapterKey:"google_discovery",version:i2,payloadSchema:cge,value:t}),({version:r,payload:n})=>({version:r,payload:{service:n.service,version:n.version,discoveryUrl:n.discoveryUrl,defaultHeaders:n.defaultHeaders??null,scopes:n.scopes??[]}})),bindingStateFromSource:e=>Yn.map(ph(e),t=>({...Fp,defaultHeaders:t.defaultHeaders??null})),sourceConfigFromSource:e=>Yn.runSync(Yn.map(ph(e),t=>({kind:"google_discovery",service:t.service,version:t.version,discoveryUrl:t.discoveryUrl,defaultHeaders:t.defaultHeaders,scopes:t.scopes}))),validateSource:e=>Yn.gen(function*(){let t=yield*ph(e);return{...e,bindingVersion:i2,binding:{service:t.service,version:t.version,discoveryUrl:t.discoveryUrl,defaultHeaders:t.defaultHeaders??null,scopes:[...t.scopes??[]]}}}),shouldAutoProbe:e=>e.enabled&&(e.status==="draft"||e.status==="probing"),discoveryPriority:({normalizedUrl:e})=>e.includes("$discovery/rest")||e.includes("/discovery/v1/apis/")?500:300,detectSource:({normalizedUrl:e,headers:t})=>YV({normalizedUrl:e,headers:t}),syncCatalog:({source:e,resolveAuthMaterialForSlot:t})=>Yn.gen(function*(){let r=yield*ph(e),n=yield*t("import"),o=yield*uge({url:r.discoveryUrl,headers:{...r.defaultHeaders,...n.headers},cookies:n.cookies,queryParams:n.queryParams}).pipe(Yn.mapError(c=>E_(c)?c:new Error(`Failed fetching Google Discovery document for ${e.id}: ${c.message}`))),i=yield*E1(e.name,o),a=QV(i),s=Date.now();return Np({fragment:Yye({source:e,documents:[{documentKind:"google_discovery",documentKey:r.discoveryUrl,contentText:o,fetchedAt:s}],operations:a.map(c=>sct({manifest:i,definition:c}))}),importMetadata:ws({source:e,adapterKey:"google_discovery"}),sourceHash:i.sourceHash})}),getOauth2SetupConfig:({source:e})=>lct(e),normalizeOauthClientInput:e=>Yn.succeed({...e,redirectMode:e.redirectMode??"loopback"}),invoke:e=>Yn.tryPromise({try:async()=>{let t=Yn.runSync(ph(e.source)),r=Sm({executableId:e.executable.id,label:"Google Discovery",version:e.executable.bindingVersion,expectedVersion:Ca,schema:o2,value:e.executable.binding}),n=rct(e.args),o=nct({pathTemplate:r.invocation.path,args:n,parameters:r.invocation.parameters}),i=new URL(o.replace(/^\//,""),oct({providerData:r})),a={...t.defaultHeaders};for(let y of r.invocation.parameters){if(y.location==="path")continue;let g=n[y.name];if(g==null&&y.required)throw new Error(`Missing required ${y.location} parameter: ${y.name}`);let S=pge(g,y.repeated);if(S.length!==0){if(y.location==="query"){for(let x of S)i.searchParams.append(y.name,x);continue}y.location==="header"&&(a[y.name]=y.repeated?S.join(","):S[0])}}let s=yu({url:i,queryParams:e.auth.queryParams}),c=Tc({headers:{...a,...e.auth.headers},cookies:e.auth.cookies}),p,d=Object.keys(e.auth.bodyValues).length>0;r.invocation.requestSchemaId!==null&&(n.body!==void 0||d)&&(p=JSON.stringify(t_({body:n.body!==void 0?n.body:{},bodyValues:e.auth.bodyValues,label:`${r.invocation.method.toUpperCase()} ${r.invocation.path}`})),"content-type"in c||(c["content-type"]="application/json"));let f=await fetch(s.toString(),{method:r.invocation.method.toUpperCase(),headers:c,...p!==void 0?{body:p}:{}}),m=await act(f);return{data:f.ok?m:null,error:f.ok?null:m,headers:ict(f),status:f.status}},catch:t=>t instanceof Error?t:new Error(String(t))})};import*as bo from"effect/Schema";var _ge=bo.Literal("request","field"),fge=bo.Literal("query","mutation"),a2=bo.Struct({kind:bo.Literal("graphql"),toolKind:_ge,toolId:bo.String,rawToolId:bo.NullOr(bo.String),group:bo.NullOr(bo.String),leaf:bo.NullOr(bo.String),fieldName:bo.NullOr(bo.String),operationType:bo.NullOr(fge),operationName:bo.NullOr(bo.String),operationDocument:bo.NullOr(bo.String),queryTypeName:bo.NullOr(bo.String),mutationTypeName:bo.NullOr(bo.String),subscriptionTypeName:bo.NullOr(bo.String)});import*as $1e from"effect/Either";import*as Ih from"effect/Effect";var Or=e0(E1e(),1);import*as ugt from"effect/Either";import*as cA from"effect/Effect";import*as Xu from"effect/Schema";import*as Y4 from"effect/HashMap";import*as k1e from"effect/Option";var T1e=320;var pgt=["id","identifier","key","slug","name","title","number","url","state","status","success"],dgt=["node","nodes","edge","edges","pageInfo","viewer","user","users","team","teams","project","projects","organization","issue","issues","creator","assignee","items"];var HH=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},_gt=e=>typeof e=="string"&&e.trim().length>0?e:null;var C1e=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1 $2").replace(/[^a-zA-Z0-9]+/g," ").trim().split(/\s+/).filter(t=>t.length>0),P1e=e=>{let t=C1e(e).map(o=>o.toLowerCase());if(t.length===0)return"tool";let[r,...n]=t;return`${r}${n.map(o=>`${o[0]?.toUpperCase()??""}${o.slice(1)}`).join("")}`},Q4=e=>{let t=P1e(e);return`${t[0]?.toUpperCase()??""}${t.slice(1)}`},fgt=e=>C1e(e).map(t=>`${t[0]?.toUpperCase()??""}${t.slice(1)}`).join(" "),X4=(e,t)=>{let r=t?.trim();return r?{...e,description:r}:e},O1e=(e,t)=>t!==void 0?{...e,default:t}:e,ZH=(e,t)=>{let r=t?.trim();return r?{...e,deprecated:!0,"x-deprecationReason":r}:e},mgt=e=>{let t;try{t=JSON.parse(e)}catch(o){throw new Error(`GraphQL document is not valid JSON: ${o instanceof Error?o.message:String(o)}`)}let r=HH(t);if(Array.isArray(r.errors)&&r.errors.length>0){let o=r.errors.map(i=>_gt(HH(i).message)).filter(i=>i!==null);throw new Error(o.length>0?`GraphQL introspection returned errors: ${o.join("; ")}`:"GraphQL introspection returned errors")}let n=r.data;if(!n||typeof n!="object"||!("__schema"in n))throw new Error("GraphQL introspection document is missing data.__schema");return n},hgt={type:"object",properties:{query:{type:"string",description:"GraphQL query or mutation document."},variables:{type:"object",description:"Optional GraphQL variables.",additionalProperties:!0},operationName:{type:"string",description:"Optional GraphQL operation name."},headers:{type:"object",description:"Optional per-request headers.",additionalProperties:{type:"string"}}},required:["query"],additionalProperties:!1},ygt={type:"object",properties:{status:{type:"number"},headers:{type:"object",additionalProperties:{type:"string"}},body:{}},required:["status","headers","body"],additionalProperties:!1},eN=(0,Or.getIntrospectionQuery)({descriptions:!0,inputValueDeprecation:!0,schemaDescription:!0}),ggt=e=>{switch(e){case"String":case"ID":case"Date":case"DateTime":case"DateTimeOrDuration":case"Duration":case"UUID":case"TimelessDate":case"TimelessDateOrDuration":case"URI":return{type:"string"};case"Int":case"Float":return{type:"number"};case"Boolean":return{type:"boolean"};case"JSONObject":return{type:"object",additionalProperties:!0};case"JSONString":return{type:"string"};case"JSON":return{};default:return{}}},Sgt=e=>{switch(e){case"String":return"value";case"ID":return"id";case"Date":return"2026-03-08";case"DateTime":case"DateTimeOrDuration":return"2026-03-08T00:00:00.000Z";case"UUID":return"00000000-0000-0000-0000-000000000000";case"TimelessDate":case"TimelessDateOrDuration":return"2026-03-08";case"Duration":return"P1D";case"URI":return"https://example.com";case"Int":return 1;case"Float":return 1.5;case"Boolean":return!0;case"JSONObject":return{};case"JSONString":return"{}";default:return{}}},lA="#/$defs/graphql",vgt=e=>`${lA}/scalars/${e}`,bgt=e=>`${lA}/enums/${e}`,xgt=e=>`${lA}/input/${e}`,Egt=(e,t)=>`${lA}/output/${t===0?e:`${e}__depth${t}`}`,Tgt=()=>`${lA}/output/GraphqlTypenameOnly`,sA=e=>({$ref:e}),Dgt=()=>({type:"object",properties:{__typename:{type:"string"}},required:["__typename"],additionalProperties:!1}),Agt=()=>{let e={},t=new Map,r=(d,f)=>{e[d]=JSON.stringify(f)},n=()=>{let d=Tgt();return d in e||r(d,Dgt()),sA(d)},o=d=>{let f=vgt(d);return f in e||r(f,ggt(d)),sA(f)},i=(d,f)=>{let m=bgt(d);return m in e||r(m,{type:"string",enum:[...f]}),sA(m)},a=d=>{let f=xgt(d.name);if(!(f in e)){r(f,{});let m=Object.values(d.getFields()),y=Object.fromEntries(m.map(S=>{let x=s(S.type),A=ZH(O1e(X4(x,S.description),S.defaultValue),S.deprecationReason);return[S.name,A]})),g=m.filter(S=>(0,Or.isNonNullType)(S.type)&&S.defaultValue===void 0).map(S=>S.name);r(f,{type:"object",properties:y,...g.length>0?{required:g}:{},additionalProperties:!1})}return sA(f)},s=d=>{if((0,Or.isNonNullType)(d))return s(d.ofType);if((0,Or.isListType)(d))return{type:"array",items:s(d.ofType)};let f=(0,Or.getNamedType)(d);return(0,Or.isScalarType)(f)?o(f.name):(0,Or.isEnumType)(f)?i(f.name,f.getValues().map(m=>m.name)):(0,Or.isInputObjectType)(f)?a(f):{}},c=(d,f)=>{if((0,Or.isScalarType)(d))return{selectionSet:"",schema:o(d.name)};if((0,Or.isEnumType)(d))return{selectionSet:"",schema:i(d.name,d.getValues().map(U=>U.name))};let m=Egt(d.name,f),y=t.get(m);if(y)return y;if((0,Or.isUnionType)(d)){let U={selectionSet:"{ __typename }",schema:n()};return t.set(m,U),U}if(!(0,Or.isObjectType)(d)&&!(0,Or.isInterfaceType)(d))return{selectionSet:"{ __typename }",schema:n()};let g={selectionSet:"{ __typename }",schema:n()};if(t.set(m,g),f>=2)return g;let S=Object.values(d.getFields()).filter(U=>!U.name.startsWith("__")),x=S.filter(U=>(0,Or.isLeafType)((0,Or.getNamedType)(U.type))),A=S.filter(U=>!(0,Or.isLeafType)((0,Or.getNamedType)(U.type))),I=D1e({fields:x,preferredNames:pgt,limit:3}),E=D1e({fields:A,preferredNames:dgt,limit:2}),C=WH([...I,...E]);if(C.length===0)return g;let F=[],O={},$=[];for(let U of C){let ge=p(U.type,f+1),Te=ZH(X4(ge.schema,U.description),U.deprecationReason);O[U.name]=Te,$.push(U.name),F.push(ge.selectionSet.length>0?`${U.name} ${ge.selectionSet}`:U.name)}O.__typename={type:"string"},$.push("__typename"),F.push("__typename"),r(m,{type:"object",properties:O,required:$,additionalProperties:!1});let N={selectionSet:`{ ${F.join(" ")} }`,schema:sA(m)};return t.set(m,N),N},p=(d,f=0)=>{if((0,Or.isNonNullType)(d))return p(d.ofType,f);if((0,Or.isListType)(d)){let m=p(d.ofType,f);return{selectionSet:m.selectionSet,schema:{type:"array",items:m.schema}}}return c((0,Or.getNamedType)(d),f)};return{refTable:e,inputSchemaForType:s,selectedOutputForType:p}},W4=(e,t=0)=>{if((0,Or.isNonNullType)(e))return W4(e.ofType,t);if((0,Or.isListType)(e))return[W4(e.ofType,t+1)];let r=(0,Or.getNamedType)(e);if((0,Or.isScalarType)(r))return Sgt(r.name);if((0,Or.isEnumType)(r))return r.getValues()[0]?.name??"VALUE";if((0,Or.isInputObjectType)(r)){if(t>=2)return{};let n=Object.values(r.getFields()),o=n.filter(a=>(0,Or.isNonNullType)(a.type)&&a.defaultValue===void 0),i=o.length>0?o:n.slice(0,1);return Object.fromEntries(i.map(a=>[a.name,a.defaultValue??W4(a.type,t+1)]))}return{}},WH=e=>{let t=new Set,r=[];for(let n of e)t.has(n.name)||(t.add(n.name),r.push(n));return r},D1e=e=>{let t=e.preferredNames.map(r=>e.fields.find(n=>n.name===r)).filter(r=>r!==void 0);return t.length>=e.limit?WH(t).slice(0,e.limit):WH([...t,...e.fields]).slice(0,e.limit)},QH=e=>(0,Or.isNonNullType)(e)?`${QH(e.ofType)}!`:(0,Or.isListType)(e)?`[${QH(e.ofType)}]`:e.name,wgt=(e,t)=>{let r=Object.fromEntries(e.map(o=>{let i=t.inputSchemaForType(o.type),a=ZH(O1e(X4(i,o.description),o.defaultValue),o.deprecationReason);return[o.name,a]})),n=e.filter(o=>(0,Or.isNonNullType)(o.type)&&o.defaultValue===void 0).map(o=>o.name);return{type:"object",properties:{...r,headers:{type:"object",description:"Optional per-request headers.",additionalProperties:{type:"string"}}},...n.length>0?{required:n}:{},additionalProperties:!1}},Igt=(e,t)=>{let r=t.selectedOutputForType(e);return{type:"object",properties:{data:X4(r.schema,"Value returned for the selected GraphQL field."),errors:{type:"array",items:{type:"object",properties:{message:{type:"string",description:"GraphQL error message."},path:{type:"array",description:"Path to the field that produced the error.",items:{anyOf:[{type:"string"},{type:"number"}]}},locations:{type:"array",description:"Source locations for the error in the GraphQL document.",items:{type:"object",properties:{line:{type:"number"},column:{type:"number"}},required:["line","column"],additionalProperties:!1}},extensions:{type:"object",description:"Additional provider-specific GraphQL error metadata.",additionalProperties:!0}},required:["message"],additionalProperties:!0}}},required:["data","errors"],additionalProperties:!1}},kgt=e=>{if(e.length===0)return{};let t=e.filter(o=>(0,Or.isNonNullType)(o.type)&&o.defaultValue===void 0),r=t.length>0?t:e.slice(0,1);return Object.fromEntries(r.map(o=>[o.name,o.defaultValue??W4(o.type)]))},Cgt=e=>{let t=e.bundleBuilder.selectedOutputForType(e.fieldType),r=`${Q4(e.operationType)}${Q4(e.fieldName)}`,n=e.args.map(s=>`$${s.name}: ${QH(s.type)}`).join(", "),o=e.args.map(s=>`${s.name}: $${s.name}`).join(", "),i=o.length>0?`${e.fieldName}(${o})`:e.fieldName,a=t.selectionSet.length>0?` ${t.selectionSet}`:"";return{operationName:r,operationDocument:`${e.operationType} ${r}${n.length>0?`(${n})`:""} { ${i}${a} }`}},Pgt=e=>{let t=e.description?.trim();return t||`Execute the GraphQL ${e.operationType} field '${e.fieldName}'.`},Ogt=e=>({kind:"request",toolId:"request",rawToolId:"request",toolName:"GraphQL request",description:`Execute a raw GraphQL request against ${e}.`,inputSchema:hgt,outputSchema:ygt,exampleInput:{query:"query { __typename }"}}),Ngt=e=>{let t=e.map(o=>({...o})),r="request",n=o=>{let i=new Map;for(let a of t){let s=i.get(a.toolId)??[];s.push(a),i.set(a.toolId,s)}for(let[a,s]of i.entries())if(!(s.length<2&&a!==r))for(let c of s)c.toolId=o(c)};return n(o=>`${o.leaf}${Q4(o.operationType)}`),n(o=>`${o.leaf}${Q4(o.operationType)}${Dc(`${o.group}:${o.fieldName}`).slice(0,6)}`),t.sort((o,i)=>o.toolId.localeCompare(i.toolId)||o.fieldName.localeCompare(i.fieldName)||o.operationType.localeCompare(i.operationType)).map(o=>({...o}))},A1e=e=>e.rootType?Object.values(e.rootType.getFields()).filter(t=>!t.name.startsWith("__")).map(t=>{let r=P1e(t.name),n=Igt(t.type,e.bundleBuilder),o=wgt(t.args,e.bundleBuilder),{operationName:i,operationDocument:a}=Cgt({operationType:e.operationType,fieldName:t.name,args:t.args,fieldType:t.type,bundleBuilder:e.bundleBuilder});return{kind:"field",toolId:r,rawToolId:t.name,toolName:fgt(t.name),description:Pgt({operationType:e.operationType,fieldName:t.name,description:t.description}),group:e.operationType,leaf:r,fieldName:t.name,operationType:e.operationType,operationName:i,operationDocument:a,inputSchema:o,outputSchema:n,exampleInput:kgt(t.args),searchTerms:[e.operationType,t.name,...t.args.map(s=>s.name),(0,Or.getNamedType)(t.type).name]}}):[],Fgt=e=>Dc(e),N1e=(e,t)=>cA.try({try:()=>{let r=mgt(t),n=(0,Or.buildClientSchema)(r),o=Fgt(t),i=Agt(),a=Ngt([...A1e({rootType:n.getQueryType(),operationType:"query",bundleBuilder:i}),...A1e({rootType:n.getMutationType(),operationType:"mutation",bundleBuilder:i})]);return{version:2,sourceHash:o,queryTypeName:n.getQueryType()?.name??null,mutationTypeName:n.getMutationType()?.name??null,subscriptionTypeName:n.getSubscriptionType()?.name??null,...Object.keys(i.refTable).length>0?{schemaRefTable:i.refTable}:{},tools:[...a,Ogt(e)]}},catch:r=>r instanceof Error?r:new Error(String(r))}),F1e=e=>e.tools.map(t=>({toolId:t.toolId,rawToolId:t.rawToolId,name:t.toolName,description:t.description??`Execute ${t.toolName}.`,group:t.kind==="field"?t.group:null,leaf:t.kind==="field"?t.leaf:null,fieldName:t.kind==="field"?t.fieldName:null,operationType:t.kind==="field"?t.operationType:null,operationName:t.kind==="field"?t.operationName:null,operationDocument:t.kind==="field"?t.operationDocument:null,searchTerms:t.kind==="field"?t.searchTerms:["request","graphql","query","mutation"]})),Rgt=e=>{if(!e||Object.keys(e).length===0)return;let t={};for(let[r,n]of Object.entries(e)){if(!r.startsWith("#/$defs/"))continue;let o=typeof n=="string"?(()=>{try{return JSON.parse(n)}catch{return n}})():n,i=r.slice(8).split("/").filter(a=>a.length>0);L1e(t,i,o)}return Object.keys(t).length>0?t:void 0},w1e=e=>{if(e.schema===void 0)return;if(e.defsRoot===void 0)return e.schema;let t=e.cache.get(e.schema);if(t)return t;let r=e.schema.$defs,n=r&&typeof r=="object"&&!Array.isArray(r)?{...e.schema,$defs:{...e.defsRoot,...r}}:{...e.schema,$defs:e.defsRoot};return e.cache.set(e.schema,n),n},I1e=new WeakMap,Lgt=e=>{let t=I1e.get(e);if(t)return t;let r=Y4.fromIterable(e.tools.map(s=>[s.toolId,s])),n=Rgt(e.schemaRefTable),o=new WeakMap,i=new Map,a={resolve(s){let c=i.get(s.toolId);if(c)return c;let p=k1e.getOrUndefined(Y4.get(r,s.toolId)),d=w1e({schema:p?.inputSchema,defsRoot:n,cache:o}),f=w1e({schema:p?.outputSchema,defsRoot:n,cache:o}),m={inputTypePreview:hu(d,"unknown",T1e),outputTypePreview:hu(f,"unknown",T1e),...d!==void 0?{inputSchema:d}:{},...f!==void 0?{outputSchema:f}:{},...p?.exampleInput!==void 0?{exampleInput:p.exampleInput}:{},providerData:{kind:"graphql",toolKind:p?.kind??"request",toolId:s.toolId,rawToolId:s.rawToolId,group:s.group,leaf:s.leaf,fieldName:s.fieldName,operationType:s.operationType,operationName:s.operationName,operationDocument:s.operationDocument,queryTypeName:e.queryTypeName,mutationTypeName:e.mutationTypeName,subscriptionTypeName:e.subscriptionTypeName}};return i.set(s.toolId,m),m}};return I1e.set(e,a),a},R1e=e=>Lgt(e.manifest).resolve(e.definition),Izt=Xu.decodeUnknownEither(a2),kzt=Xu.decodeUnknownEither(Xu.parseJson(Xu.Record({key:Xu.String,value:Xu.Unknown}))),L1e=(e,t,r)=>{if(t.length===0)return;let[n,...o]=t;if(!n)return;if(o.length===0){e[n]=r;return}let i=HH(e[n]);e[n]=i,L1e(i,o,r)};var XH=e=>Ih.gen(function*(){let t=yield*Ih.either(cv({method:"POST",url:e.normalizedUrl,headers:{accept:"application/graphql-response+json, application/json","content-type":"application/json",...e.headers},body:JSON.stringify({query:eN})}));if($1e.isLeft(t))return null;let r=Yae(t.right.text),n=(t.right.headers["content-type"]??"").toLowerCase(),o=Ci(r)&&Ci(r.data)?r.data:null;if(o&&Ci(o.__schema)){let p=Cp(e.normalizedUrl);return{detectedKind:"graphql",confidence:"high",endpoint:e.normalizedUrl,specUrl:null,name:p,namespace:os(p),transport:null,authInference:Pp("GraphQL introspection succeeded without an advertised auth requirement","medium"),toolCount:null,warnings:[]}}let a=(Ci(r)&&Array.isArray(r.errors)?r.errors:[]).map(p=>Ci(p)&&typeof p.message=="string"?p.message:null).filter(p=>p!==null);if(!(n.includes("application/graphql-response+json")||fm(e.normalizedUrl)&&t.right.status>=400&&t.right.status<500||a.some(p=>/introspection|graphql|query/i.test(p))))return null;let c=Cp(e.normalizedUrl);return{detectedKind:"graphql",confidence:o?"high":"medium",endpoint:e.normalizedUrl,specUrl:null,name:c,namespace:os(c),transport:null,authInference:t.right.status===401||t.right.status===403?Qae(t.right.headers,"GraphQL endpoint rejected introspection and did not advertise a concrete auth scheme"):Pp(a.length>0?`GraphQL endpoint responded with errors during introspection: ${a[0]}`:"GraphQL endpoint shape detected","medium"),toolCount:null,warnings:a.length>0?[a[0]]:[]}}).pipe(Ih.catchAll(()=>Ih.succeed(null)));import*as U1 from"effect/Schema";var YH=U1.Struct({defaultHeaders:U1.optional(U1.NullOr(Wr))});var M1e=()=>({type:"array",items:{type:"object",properties:{message:{type:"string",description:"GraphQL error message."},path:{type:"array",description:"Path to the field that produced the error.",items:{anyOf:[{type:"string"},{type:"number"}]}},locations:{type:"array",description:"Source locations for the error in the GraphQL document.",items:{type:"object",properties:{line:{type:"number"},column:{type:"number"}},required:["line","column"],additionalProperties:!1}},extensions:{type:"object",description:"Additional provider-specific GraphQL error metadata.",additionalProperties:!0}},required:["message"],additionalProperties:!0}}),$gt=e=>{if(e.toolKind!=="field")return Xs(e.outputSchema);let t=Xs(e.outputSchema),r=Xs(Xs(t.properties).data);return Object.keys(r).length>0?lv(r,e.outputSchema):t},Mgt=e=>{if(e.toolKind!=="field")return M1e();let t=Xs(e.outputSchema),r=Xs(Xs(t.properties).errors);return Object.keys(r).length>0?lv(r,e.outputSchema):M1e()},jgt=e=>{let t=h_(e.source,e.operation.providerData.toolId),r=Oc.make(`cap_${mn({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),n=Qs.make(`exec_${mn({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"graphql"})}`),o=e.operation.inputSchema!==void 0?e.importer.importSchema(e.operation.inputSchema,`#/graphql/${e.operation.providerData.toolId}/call`):e.importer.importSchema({type:"object",additionalProperties:!0},`#/graphql/${e.operation.providerData.toolId}/call`),i=e.operation.outputSchema!==void 0?e.importer.importSchema($gt({toolKind:e.operation.providerData.toolKind,outputSchema:e.operation.outputSchema}),`#/graphql/${e.operation.providerData.toolId}/data`):e.importer.importSchema({type:"object",additionalProperties:!0},`#/graphql/${e.operation.providerData.toolId}/data`),a=e.importer.importSchema(Mgt({toolKind:e.operation.providerData.toolKind,outputSchema:e.operation.outputSchema}),`#/graphql/${e.operation.providerData.toolId}/errors`),s=Nc.make(`response_${mn({capabilityId:r})}`);Vr(e.catalog.symbols)[s]={id:s,kind:"response",...wn({description:e.operation.description})?{docs:wn({description:e.operation.description})}:{},contents:[{mediaType:"application/json",shapeId:i}],synthetic:!1,provenance:un(e.documentId,`#/graphql/${e.operation.providerData.toolId}/response`)};let c=g_({catalog:e.catalog,responseId:s,provenance:un(e.documentId,`#/graphql/${e.operation.providerData.toolId}/responseSet`)});Vr(e.catalog.executables)[n]={id:n,capabilityId:r,scopeId:e.serviceScopeId,adapterKey:"graphql",bindingVersion:Ca,binding:e.operation.providerData,projection:{responseSetId:c,callShapeId:o,resultDataShapeId:i,resultErrorShapeId:a},display:{protocol:"graphql",method:e.operation.providerData.operationType??"query",pathTemplate:e.operation.providerData.fieldName??e.operation.providerData.leaf??e.operation.providerData.toolId,operationId:e.operation.providerData.fieldName??e.operation.providerData.leaf??e.operation.providerData.toolId,group:e.operation.providerData.group,leaf:e.operation.providerData.leaf,rawToolId:e.operation.providerData.toolId,title:e.operation.title??null,summary:e.operation.description??null},synthetic:!1,provenance:un(e.documentId,`#/graphql/${e.operation.providerData.toolId}/executable`)};let p=e.operation.effect;Vr(e.catalog.capabilities)[r]={id:r,serviceScopeId:e.serviceScopeId,surface:{toolPath:t,...e.operation.title?{title:e.operation.title}:{},...e.operation.description?{summary:e.operation.description}:{},...e.operation.providerData.group?{tags:[e.operation.providerData.group]}:{}},semantics:{effect:p,safe:p==="read",idempotent:p==="read",destructive:!1},auth:{kind:"none"},interaction:y_(p),executableIds:[n],synthetic:!1,provenance:un(e.documentId,`#/graphql/${e.operation.providerData.toolId}/capability`)}},j1e=e=>S_({source:e.source,documents:e.documents,resourceDialectUri:"https://spec.graphql.org/",registerOperations:({catalog:t,documentId:r,serviceScopeId:n,importer:o})=>{for(let i of e.operations)jgt({catalog:t,source:e.source,documentId:r,serviceScopeId:n,operation:i,importer:o})}});import*as Bn from"effect/Effect";import*as Li from"effect/Schema";var Bgt=Li.extend(M6,Li.extend(gm,Li.Struct({kind:Li.Literal("graphql"),auth:Li.optional(x_)}))),qgt=Li.extend(gm,Li.Struct({kind:Li.Literal("graphql"),endpoint:Li.String,name:Ho,namespace:Ho,auth:Li.optional(x_)})),B1e=Li.Struct({defaultHeaders:Li.NullOr(Wr)}),Ugt=Li.Struct({defaultHeaders:Li.optional(Li.NullOr(Wr))}),uA=1,q1e=15e3,U1e=(e,t)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&t.some(r=>Object.prototype.hasOwnProperty.call(e,r)),cS=e=>Bn.gen(function*(){return U1e(e.binding,["transport","queryParams","headers"])?yield*Co("graphql/adapter","GraphQL sources cannot define MCP transport settings"):U1e(e.binding,["specUrl"])?yield*Co("graphql/adapter","GraphQL sources cannot define specUrl"):{defaultHeaders:(yield*$p({sourceId:e.id,label:"GraphQL",version:e.bindingVersion,expectedVersion:uA,schema:Ugt,value:e.binding,allowedKeys:["defaultHeaders"]})).defaultHeaders??null}}),zgt=e=>Bn.tryPromise({try:async()=>{let t;try{t=await fetch(yu({url:e.url,queryParams:e.queryParams}).toString(),{method:"POST",headers:Tc({headers:{"content-type":"application/json",...e.headers},cookies:e.cookies}),body:JSON.stringify(t_({body:{query:eN,operationName:"IntrospectionQuery"},bodyValues:e.bodyValues,label:`GraphQL introspection ${e.url}`})),signal:AbortSignal.timeout(q1e)})}catch(o){throw o instanceof Error&&(o.name==="AbortError"||o.name==="TimeoutError")?new Error(`GraphQL introspection timed out after ${q1e}ms`):o}let r=await t.text(),n;try{n=JSON.parse(r)}catch(o){throw new Error(`GraphQL introspection endpoint did not return JSON: ${o instanceof Error?o.message:String(o)}`)}if(!t.ok)throw t.status===401||t.status===403?new b_("import",`GraphQL introspection requires credentials (status ${t.status})`):new Error(`GraphQL introspection failed with status ${t.status}`);return JSON.stringify(n,null,2)},catch:t=>t instanceof Error?t:new Error(String(t))}),Vgt=e=>{let t=R1e({manifest:e.manifest,definition:e.definition});return{toolId:e.definition.toolId,title:e.definition.name,description:e.definition.description,effect:e.definition.operationType==="query"?"read":"write",inputSchema:t.inputSchema,outputSchema:t.outputSchema,providerData:t.providerData}},pA=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},z1e=e=>typeof e=="string"&&e.trim().length>0?e:null,Jgt=e=>Object.fromEntries(Object.entries(pA(e)).flatMap(([t,r])=>typeof r=="string"?[[t,r]]:[])),Kgt=e=>{let t={};return e.headers.forEach((r,n)=>{t[n]=r}),t},Ggt=async e=>(e.headers.get("content-type")?.toLowerCase()??"").includes("application/json")?e.json():e.text(),Hgt=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0)),V1e={key:"graphql",displayName:"GraphQL",catalogKind:"imported",connectStrategy:"direct",credentialStrategy:"credential_managed",bindingConfigVersion:uA,providerKey:"generic_graphql",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:Bgt,executorAddInputSchema:qgt,executorAddHelpText:["endpoint is the GraphQL HTTP endpoint."],executorAddInputSignatureWidth:320,localConfigBindingSchema:YH,localConfigBindingFromSource:e=>Bn.runSync(Bn.map(cS(e),t=>({defaultHeaders:t.defaultHeaders}))),serializeBindingConfig:e=>Rp({adapterKey:"graphql",version:uA,payloadSchema:B1e,payload:Bn.runSync(cS(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:t})=>Bn.map(Lp({sourceId:e,label:"GraphQL",adapterKey:"graphql",version:uA,payloadSchema:B1e,value:t}),({version:r,payload:n})=>({version:r,payload:n})),bindingStateFromSource:e=>Bn.map(cS(e),t=>({...Fp,defaultHeaders:t.defaultHeaders})),sourceConfigFromSource:e=>Bn.runSync(Bn.map(cS(e),t=>({kind:"graphql",endpoint:e.endpoint,defaultHeaders:t.defaultHeaders}))),validateSource:e=>Bn.gen(function*(){let t=yield*cS(e);return{...e,bindingVersion:uA,binding:{defaultHeaders:t.defaultHeaders}}}),shouldAutoProbe:e=>e.enabled&&(e.status==="draft"||e.status==="probing"),discoveryPriority:({normalizedUrl:e})=>fm(e)?400:150,detectSource:({normalizedUrl:e,headers:t})=>XH({normalizedUrl:e,headers:t}),syncCatalog:({source:e,resolveAuthMaterialForSlot:t})=>Bn.gen(function*(){let r=yield*cS(e),n=yield*t("import"),o=yield*zgt({url:e.endpoint,headers:{...r.defaultHeaders,...n.headers},queryParams:n.queryParams,cookies:n.cookies,bodyValues:n.bodyValues}).pipe(Bn.withSpan("graphql.introspection.fetch",{kind:"client",attributes:{"executor.source.id":e.id,"executor.source.endpoint":e.endpoint}}),Bn.mapError(d=>E_(d)?d:new Error(`Failed fetching GraphQL introspection for ${e.id}: ${d.message}`))),i=yield*N1e(e.name,o).pipe(Bn.withSpan("graphql.manifest.extract",{attributes:{"executor.source.id":e.id}}),Bn.mapError(d=>d instanceof Error?d:new Error(String(d))));yield*Bn.annotateCurrentSpan("graphql.tool.count",i.tools.length);let a=yield*Bn.sync(()=>F1e(i)).pipe(Bn.withSpan("graphql.definitions.compile",{attributes:{"executor.source.id":e.id,"graphql.tool.count":i.tools.length}}));yield*Bn.annotateCurrentSpan("graphql.definition.count",a.length);let s=yield*Bn.sync(()=>a.map(d=>Vgt({definition:d,manifest:i}))).pipe(Bn.withSpan("graphql.operations.build",{attributes:{"executor.source.id":e.id,"graphql.definition.count":a.length}})),c=Date.now(),p=yield*Bn.sync(()=>j1e({source:e,documents:[{documentKind:"graphql_introspection",documentKey:e.endpoint,contentText:o,fetchedAt:c}],operations:s})).pipe(Bn.withSpan("graphql.snapshot.build",{attributes:{"executor.source.id":e.id,"graphql.operation.count":s.length}}));return Np({fragment:p,importMetadata:ws({source:e,adapterKey:"graphql"}),sourceHash:i.sourceHash})}).pipe(Bn.withSpan("graphql.syncCatalog",{attributes:{"executor.source.id":e.id,"executor.source.endpoint":e.endpoint}})),invoke:e=>Bn.tryPromise({try:async()=>{let t=Bn.runSync(cS(e.source)),r=Sm({executableId:e.executable.id,label:"GraphQL",version:e.executable.bindingVersion,expectedVersion:Ca,schema:a2,value:e.executable.binding}),n=pA(e.args),o=Tc({headers:{"content-type":"application/json",...t.defaultHeaders,...e.auth.headers,...Jgt(n.headers)},cookies:e.auth.cookies}),i=yu({url:e.source.endpoint,queryParams:e.auth.queryParams}).toString(),a=r.toolKind==="request"||typeof r.operationDocument!="string"||r.operationDocument.trim().length===0,s=a?(()=>{let x=z1e(n.query);if(x===null)throw new Error("GraphQL request tools require args.query");return x})():r.operationDocument,c=a?n.variables!==void 0?pA(n.variables):void 0:Hgt(Object.fromEntries(Object.entries(n).filter(([x])=>x!=="headers"))),p=a?z1e(n.operationName)??void 0:r.operationName??void 0,d=await fetch(i,{method:"POST",headers:o,body:JSON.stringify({query:s,...c?{variables:c}:{},...p?{operationName:p}:{}})}),f=await Ggt(d),m=pA(f),y=Array.isArray(m.errors)?m.errors:[],g=r.fieldName??r.leaf??r.toolId,S=pA(m.data);return{data:a?f:S[g]??null,error:y.length>0?y:d.status>=400?f:null,headers:Kgt(d),status:d.status}},catch:t=>t instanceof Error?t:new Error(String(t))})};var NEe=e0(OEe(),1),xbt=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Ebt=e=>JSON.parse(e),Tbt=e=>(0,NEe.parse)(e),Dbt=e=>{try{return Ebt(e)}catch{return Tbt(e)}},zA=e=>{let t=e.trim();if(t.length===0)throw new Error("OpenAPI document is empty");try{let r=Dbt(t);if(!xbt(r))throw new Error("OpenAPI document must parse to an object");return r}catch(r){throw new Error(`Unable to parse OpenAPI document as JSON or YAML: ${r instanceof Error?r.message:String(r)}`)}};import*as tTe from"effect/Data";import*as rp from"effect/Effect";import{pipe as $bt}from"effect/Function";import*as nF from"effect/ParseResult";import*as oF from"effect/Schema";function REe(e,t){let r,n;try{let a=FEe(e,Ms.__wbindgen_malloc,Ms.__wbindgen_realloc),s=YN,c=FEe(t,Ms.__wbindgen_malloc,Ms.__wbindgen_realloc),p=YN,d=Ms.extract_manifest_json_wasm(a,s,c,p);var o=d[0],i=d[1];if(d[3])throw o=0,i=0,wbt(d[2]);return r=o,n=i,LEe(o,i)}finally{Ms.__wbindgen_free(r,n,1)}}function Abt(){return{__proto__:null,"./openapi_extractor_bg.js":{__proto__:null,__wbindgen_cast_0000000000000001:function(t,r){return LEe(t,r)},__wbindgen_init_externref_table:function(){let t=Ms.__wbindgen_externrefs,r=t.grow(4);t.set(0,void 0),t.set(r+0,void 0),t.set(r+1,null),t.set(r+2,!0),t.set(r+3,!1)}}}}function LEe(e,t){return e=e>>>0,kbt(e,t)}var VA=null;function QN(){return(VA===null||VA.byteLength===0)&&(VA=new Uint8Array(Ms.memory.buffer)),VA}function FEe(e,t,r){if(r===void 0){let s=JA.encode(e),c=t(s.length,1)>>>0;return QN().subarray(c,c+s.length).set(s),YN=s.length,c}let n=e.length,o=t(n,1)>>>0,i=QN(),a=0;for(;a127)break;i[o+a]=s}if(a!==n){a!==0&&(e=e.slice(a)),o=r(o,n,n=a+e.length*3,1)>>>0;let s=QN().subarray(o+a,o+n),c=JA.encodeInto(e,s);a+=c.written,o=r(o,n,a,1)>>>0}return YN=a,o}function wbt(e){let t=Ms.__wbindgen_externrefs.get(e);return Ms.__externref_table_dealloc(e),t}var XN=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});XN.decode();var Ibt=2146435072,FW=0;function kbt(e,t){return FW+=t,FW>=Ibt&&(XN=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),XN.decode(),FW=t),XN.decode(QN().subarray(e,e+t))}var JA=new TextEncoder;"encodeInto"in JA||(JA.encodeInto=function(e,t){let r=JA.encode(e);return t.set(r),{read:e.length,written:r.length}});var YN=0,Cbt,Ms;function Pbt(e,t){return Ms=e.exports,Cbt=t,VA=null,Ms.__wbindgen_start(),Ms}async function Obt(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(o){if(e.ok&&r(e.type)&&e.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",o);else throw o}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}function r(n){switch(n){case"basic":case"cors":case"default":return!0}return!1}}async function RW(e){if(Ms!==void 0)return Ms;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),e===void 0&&(e=new URL("openapi_extractor_bg.wasm",import.meta.url));let t=Abt();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:r,module:n}=await Obt(await e,t);return Pbt(r,n)}var eF,MEe=new URL("./openapi-extractor-wasm/openapi_extractor_bg.wasm",import.meta.url),$Ee=e=>e instanceof Error?e.message:String(e),Nbt=async()=>{await RW({module_or_path:MEe})},Fbt=async()=>{let[{readFile:e},{fileURLToPath:t}]=await Promise.all([import("node:fs/promises"),import("node:url")]),r=t(MEe),n=await e(r);await RW({module_or_path:n})},Rbt=()=>(eF||(eF=(async()=>{let e;try{await Nbt();return}catch(t){e=t}try{await Fbt();return}catch(t){throw new Error(["Unable to initialize OpenAPI extractor wasm.",`runtime-url failed: ${$Ee(e)}`,`node-fs fallback failed: ${$Ee(t)}`].join(" "))}})().catch(e=>{throw eF=void 0,e})),eF),jEe=(e,t)=>Rbt().then(()=>REe(e,t));import{Schema as Z}from"effect";var BEe=["get","put","post","delete","patch","head","options","trace"],qEe=["path","query","header","cookie"],eb=Z.Literal(...BEe),LW=Z.Literal(...qEe),UEe=Z.Struct({name:Z.String,location:LW,required:Z.Boolean,style:Z.optional(Z.String),explode:Z.optional(Z.Boolean),allowReserved:Z.optional(Z.Boolean),content:Z.optional(Z.Array(Z.suspend(()=>KA)))}),KA=Z.Struct({mediaType:Z.String,schema:Z.optional(Z.Unknown),examples:Z.optional(Z.Array(Z.suspend(()=>hS)))}),zEe=Z.Struct({name:Z.String,description:Z.optional(Z.String),required:Z.optional(Z.Boolean),deprecated:Z.optional(Z.Boolean),schema:Z.optional(Z.Unknown),content:Z.optional(Z.Array(KA)),style:Z.optional(Z.String),explode:Z.optional(Z.Boolean),examples:Z.optional(Z.Array(Z.suspend(()=>hS)))}),VEe=Z.Struct({required:Z.Boolean,contentTypes:Z.Array(Z.String),contents:Z.optional(Z.Array(KA))}),jh=Z.Struct({url:Z.String,description:Z.optional(Z.String),variables:Z.optional(Z.Record({key:Z.String,value:Z.String}))}),GA=Z.Struct({method:eb,pathTemplate:Z.String,parameters:Z.Array(UEe),requestBody:Z.NullOr(VEe)}),tF=Z.Struct({inputSchema:Z.optional(Z.Unknown),outputSchema:Z.optional(Z.Unknown),refHintKeys:Z.optional(Z.Array(Z.String))}),JEe=Z.Union(Z.String,Z.Record({key:Z.String,value:Z.Unknown})),Lbt=Z.Record({key:Z.String,value:JEe}),hS=Z.Struct({valueJson:Z.String,mediaType:Z.optional(Z.String),label:Z.optional(Z.String)}),KEe=Z.Struct({name:Z.String,location:LW,required:Z.Boolean,description:Z.optional(Z.String),examples:Z.optional(Z.Array(hS))}),GEe=Z.Struct({description:Z.optional(Z.String),examples:Z.optional(Z.Array(hS))}),HEe=Z.Struct({statusCode:Z.String,description:Z.optional(Z.String),contentTypes:Z.Array(Z.String),examples:Z.optional(Z.Array(hS))}),HA=Z.Struct({statusCode:Z.String,description:Z.optional(Z.String),contentTypes:Z.Array(Z.String),schema:Z.optional(Z.Unknown),examples:Z.optional(Z.Array(hS)),contents:Z.optional(Z.Array(KA)),headers:Z.optional(Z.Array(zEe))}),ZA=Z.Struct({summary:Z.optional(Z.String),deprecated:Z.optional(Z.Boolean),parameters:Z.Array(KEe),requestBody:Z.optional(GEe),response:Z.optional(HEe)}),mS=Z.suspend(()=>Z.Union(Z.Struct({kind:Z.Literal("none")}),Z.Struct({kind:Z.Literal("scheme"),schemeName:Z.String,scopes:Z.optional(Z.Array(Z.String))}),Z.Struct({kind:Z.Literal("allOf"),items:Z.Array(mS)}),Z.Struct({kind:Z.Literal("anyOf"),items:Z.Array(mS)}))),ZEe=Z.Literal("apiKey","http","oauth2","openIdConnect"),WEe=Z.Struct({authorizationUrl:Z.optional(Z.String),tokenUrl:Z.optional(Z.String),refreshUrl:Z.optional(Z.String),scopes:Z.optional(Z.Record({key:Z.String,value:Z.String}))}),WA=Z.Struct({schemeName:Z.String,schemeType:ZEe,description:Z.optional(Z.String),placementIn:Z.optional(Z.Literal("header","query","cookie")),placementName:Z.optional(Z.String),scheme:Z.optional(Z.String),bearerFormat:Z.optional(Z.String),openIdConnectUrl:Z.optional(Z.String),flows:Z.optional(Z.Record({key:Z.String,value:WEe}))}),$W=Z.Struct({kind:Z.Literal("openapi"),toolId:Z.String,rawToolId:Z.String,operationId:Z.optional(Z.String),group:Z.String,leaf:Z.String,tags:Z.Array(Z.String),versionSegment:Z.optional(Z.String),method:eb,path:Z.String,operationHash:Z.String,invocation:GA,documentation:Z.optional(ZA),responses:Z.optional(Z.Array(HA)),authRequirement:Z.optional(mS),securitySchemes:Z.optional(Z.Array(WA)),documentServers:Z.optional(Z.Array(jh)),servers:Z.optional(Z.Array(jh))}),QEe=Z.Struct({toolId:Z.String,operationId:Z.optional(Z.String),tags:Z.Array(Z.String),name:Z.String,description:Z.NullOr(Z.String),method:eb,path:Z.String,invocation:GA,operationHash:Z.String,typing:Z.optional(tF),documentation:Z.optional(ZA),responses:Z.optional(Z.Array(HA)),authRequirement:Z.optional(mS),securitySchemes:Z.optional(Z.Array(WA)),documentServers:Z.optional(Z.Array(jh)),servers:Z.optional(Z.Array(jh))}),MW=Z.Struct({version:Z.Literal(2),sourceHash:Z.String,tools:Z.Array(QEe),refHintTable:Z.optional(Z.Record({key:Z.String,value:Z.String}))});var tb=class extends tTe.TaggedError("OpenApiExtractionError"){},Mbt=oF.parseJson(MW),jbt=oF.decodeUnknown(Mbt),jW=(e,t,r)=>r instanceof tb?r:new tb({sourceName:e,stage:t,message:"OpenAPI extraction failed",details:nF.isParseError(r)?nF.TreeFormatter.formatErrorSync(r):String(r)}),Bbt=(e,t)=>typeof t=="string"?rp.succeed(t):rp.try({try:()=>JSON.stringify(t),catch:r=>new tb({sourceName:e,stage:"validate",message:"Unable to serialize OpenAPI input",details:String(r)})}),Nn=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{},QA=e=>Array.isArray(e)?e:[],On=e=>typeof e=="string"&&e.trim().length>0?e.trim():void 0,BW=e=>Array.isArray(e)?e.map(t=>BW(t)):e!==null&&typeof e=="object"?Object.fromEntries(Object.entries(e).sort(([t],[r])=>t.localeCompare(r)).map(([t,r])=>[t,BW(r)])):e,qW=e=>JSON.stringify(BW(e)),mf=(e,t)=>{if(Array.isArray(e)){for(let n of e)mf(n,t);return}if(e===null||typeof e!="object")return;let r=e;typeof r.$ref=="string"&&r.$ref.startsWith("#/")&&t.add(r.$ref);for(let n of Object.values(r))mf(n,t)},qbt=e=>e.replaceAll("~1","/").replaceAll("~0","~"),tp=(e,t,r=new Set)=>{let n=Nn(t),o=typeof n.$ref=="string"?n.$ref:null;if(!o||!o.startsWith("#/")||r.has(o))return t;let i=o.slice(2).split("/").reduce((d,f)=>{if(d!=null)return Nn(d)[qbt(f)]},e);if(i===void 0)return t;let a=new Set(r);a.add(o);let s=Nn(tp(e,i,a)),{$ref:c,...p}=n;return Object.keys(p).length>0?{...s,...p}:s},XEe=e=>/^2\d\d$/.test(e)?0:e==="default"?1:2,rTe=e=>{let t=Object.entries(Nn(e)).sort(([r],[n])=>r.localeCompare(n)).map(([r,n])=>[r,Nn(n)]);return t.find(([r])=>r==="application/json")??t.find(([r])=>r.toLowerCase().includes("+json"))??t.find(([r])=>r.toLowerCase().includes("json"))??t[0]},rF=e=>rTe(e)?.[1].schema,iF=(e,t)=>Object.entries(Nn(t)).sort(([n],[o])=>n.localeCompare(o)).map(([n,o])=>{let i=Nn(tp(e,o)),a=nTe(n,i);return{mediaType:n,...i.schema!==void 0?{schema:i.schema}:{},...a.length>0?{examples:a}:{}}}),VW=(e,t={})=>{let r=Nn(e),n=[];r.example!==void 0&&n.push({valueJson:qW(r.example),...t.mediaType?{mediaType:t.mediaType}:{},...t.label?{label:t.label}:{}});let o=Object.entries(Nn(r.examples)).sort(([i],[a])=>i.localeCompare(a));for(let[i,a]of o){let s=Nn(a);n.push({valueJson:qW(s.value!==void 0?s.value:a),...t.mediaType?{mediaType:t.mediaType}:{},label:i})}return n},Ubt=e=>VW(e),nTe=(e,t)=>{let r=VW(t,{mediaType:e});return r.length>0?r:Ubt(t.schema).map(n=>({...n,mediaType:e}))},zbt=(e,t,r)=>{let n=Nn(tp(e,r));if(Object.keys(n).length===0)return;let o=iF(e,n.content),i=o.length>0?[]:VW(n);return{name:t,...On(n.description)?{description:On(n.description)}:{},...typeof n.required=="boolean"?{required:n.required}:{},...typeof n.deprecated=="boolean"?{deprecated:n.deprecated}:{},...n.schema!==void 0?{schema:n.schema}:{},...o.length>0?{content:o}:{},...On(n.style)?{style:On(n.style)}:{},...typeof n.explode=="boolean"?{explode:n.explode}:{},...i.length>0?{examples:i}:{}}},Vbt=(e,t)=>Object.entries(Nn(t)).sort(([r],[n])=>r.localeCompare(n)).flatMap(([r,n])=>{let o=zbt(e,r,n);return o?[o]:[]}),UW=e=>QA(e).map(t=>Nn(t)).flatMap(t=>{let r=On(t.url);if(!r)return[];let n=Object.fromEntries(Object.entries(Nn(t.variables)).sort(([o],[i])=>o.localeCompare(i)).flatMap(([o,i])=>{let a=Nn(i),s=On(a.default);return s?[[o,s]]:[]}));return[{url:r,...On(t.description)?{description:On(t.description)}:{},...Object.keys(n).length>0?{variables:n}:{}}]}),oTe=(e,t)=>Nn(Nn(e.paths)[t.path]),zW=e=>`${e.location}:${e.name}`,Jbt=(e,t)=>{let r=new Map,n=oTe(e,t),o=yS(e,t);for(let i of QA(n.parameters)){let a=Nn(tp(e,i)),s=On(a.name),c=On(a.in);!s||!c||r.set(zW({location:c,name:s}),a)}for(let i of QA(o.parameters)){let a=Nn(tp(e,i)),s=On(a.name),c=On(a.in);!s||!c||r.set(zW({location:c,name:s}),a)}return r},yS=(e,t)=>Nn(Nn(Nn(e.paths)[t.path])[t.method]),Kbt=(e,t)=>{let r=yS(e,t);if(Object.keys(r).length===0)return;let n=tp(e,r.requestBody);return rF(Nn(n).content)},Gbt=(e,t)=>{let r=yS(e,t);if(Object.keys(r).length===0)return t.invocation.requestBody;let n=Nn(tp(e,r.requestBody));if(Object.keys(n).length===0)return t.invocation.requestBody;let o=iF(e,n.content),i=o.map(a=>a.mediaType);return{required:typeof n.required=="boolean"?n.required:t.invocation.requestBody?.required??!1,contentTypes:i,...o.length>0?{contents:o}:{}}},Hbt=(e,t)=>{let r=yS(e,t);if(Object.keys(r).length===0)return;let n=Object.entries(Nn(r.responses)),o=n.filter(([a])=>/^2\d\d$/.test(a)).sort(([a],[s])=>a.localeCompare(s)),i=n.filter(([a])=>a==="default");for(let[,a]of[...o,...i]){let s=tp(e,a),c=rF(Nn(s).content);if(c!==void 0)return c}},Zbt=(e,t)=>{let r=yS(e,t);if(Object.keys(r).length===0)return;let o=Object.entries(Nn(r.responses)).sort(([i],[a])=>XEe(i)-XEe(a)||i.localeCompare(a)).map(([i,a])=>{let s=Nn(tp(e,a)),c=iF(e,s.content),p=c.map(y=>y.mediaType),d=rTe(s.content),f=d?nTe(d[0],d[1]):[],m=Vbt(e,s.headers);return{statusCode:i,...On(s.description)?{description:On(s.description)}:{},contentTypes:p,...rF(s.content)!==void 0?{schema:rF(s.content)}:{},...f.length>0?{examples:f}:{},...c.length>0?{contents:c}:{},...m.length>0?{headers:m}:{}}});return o.length>0?o:void 0},Wbt=e=>{let t=UW(e.servers);return t.length>0?t:void 0},Qbt=(e,t)=>{let r=yS(e,t);if(Object.keys(r).length===0)return;let n=UW(r.servers);if(n.length>0)return n;let o=UW(oTe(e,t).servers);return o.length>0?o:void 0},YEe=e=>{let t=QA(e);if(t.length===0)return{kind:"none"};let r=t.flatMap(n=>{let o=Object.entries(Nn(n)).sort(([i],[a])=>i.localeCompare(a)).map(([i,a])=>{let s=QA(a).flatMap(c=>typeof c=="string"&&c.trim().length>0?[c.trim()]:[]);return{kind:"scheme",schemeName:i,...s.length>0?{scopes:s}:{}}});return o.length===0?[]:[o.length===1?o[0]:{kind:"allOf",items:o}]});if(r.length!==0)return r.length===1?r[0]:{kind:"anyOf",items:r}},Xbt=(e,t)=>{let r=yS(e,t);if(Object.keys(r).length!==0)return Object.prototype.hasOwnProperty.call(r,"security")?YEe(r.security):YEe(e.security)},iTe=(e,t)=>{if(e)switch(e.kind){case"none":return;case"scheme":t.add(e.schemeName);return;case"allOf":case"anyOf":for(let r of e.items)iTe(r,t)}},eTe=e=>{let t=Object.fromEntries(Object.entries(Nn(e)).sort(([r],[n])=>r.localeCompare(n)).map(([r,n])=>{let o=Nn(n),i=Object.fromEntries(Object.entries(Nn(o.scopes)).sort(([a],[s])=>a.localeCompare(s)).map(([a,s])=>[a,On(s)??""]));return[r,{...On(o.authorizationUrl)?{authorizationUrl:On(o.authorizationUrl)}:{},...On(o.tokenUrl)?{tokenUrl:On(o.tokenUrl)}:{},...On(o.refreshUrl)?{refreshUrl:On(o.refreshUrl)}:{},...Object.keys(i).length>0?{scopes:i}:{}}]}));return Object.keys(t).length>0?t:void 0},Ybt=(e,t)=>{if(!t||t.kind==="none")return;let r=new Set;iTe(t,r);let n=Nn(Nn(e.components).securitySchemes),o=[...r].sort((i,a)=>i.localeCompare(a)).flatMap(i=>{let a=n[i];if(a===void 0)return[];let s=Nn(tp(e,a)),c=On(s.type);if(!c)return[];let p=c==="apiKey"||c==="http"||c==="oauth2"||c==="openIdConnect"?c:"http",d=On(s.in),f=d==="header"||d==="query"||d==="cookie"?d:void 0;return[{schemeName:i,schemeType:p,...On(s.description)?{description:On(s.description)}:{},...f?{placementIn:f}:{},...On(s.name)?{placementName:On(s.name)}:{},...On(s.scheme)?{scheme:On(s.scheme)}:{},...On(s.bearerFormat)?{bearerFormat:On(s.bearerFormat)}:{},...On(s.openIdConnectUrl)?{openIdConnectUrl:On(s.openIdConnectUrl)}:{},...eTe(s.flows)?{flows:eTe(s.flows)}:{}}]});return o.length>0?o:void 0},ext=(e,t,r)=>{let n={...t.refHintTable},o=[...r].sort((a,s)=>a.localeCompare(s)),i=new Set(Object.keys(n));for(;o.length>0;){let a=o.shift();if(i.has(a))continue;i.add(a);let s=tp(e,{$ref:a});n[a]=qW(s);let c=new Set;mf(s,c);for(let p of[...c].sort((d,f)=>d.localeCompare(f)))i.has(p)||o.push(p)}return Object.keys(n).length>0?n:void 0},txt=(e,t)=>{let r=new Set,n=Wbt(e),o=t.tools.map(i=>{let a=Jbt(e,i),s=i.invocation.parameters.map(S=>{let x=a.get(zW({location:S.location,name:S.name})),A=iF(e,x?.content);return{...S,...On(x?.style)?{style:On(x?.style)}:{},...typeof x?.explode=="boolean"?{explode:x.explode}:{},...typeof x?.allowReserved=="boolean"?{allowReserved:x.allowReserved}:{},...A.length>0?{content:A}:{}}}),c=Gbt(e,i),p=i.typing?.inputSchema??Kbt(e,i),d=i.typing?.outputSchema??Hbt(e,i),f=Zbt(e,i),m=Xbt(e,i),y=Ybt(e,m),g=Qbt(e,i);for(let S of s)for(let x of S.content??[])mf(x.schema,r);for(let S of c?.contents??[])mf(S.schema,r);for(let S of f??[]){mf(S.schema,r);for(let x of S.contents??[])mf(x.schema,r);for(let x of S.headers??[]){mf(x.schema,r);for(let A of x.content??[])mf(A.schema,r)}}return{...i,invocation:{...i.invocation,parameters:s,requestBody:c},...p!==void 0||d!==void 0?{typing:{...i.typing,...p!==void 0?{inputSchema:p}:{},...d!==void 0?{outputSchema:d}:{}}}:{},...f?{responses:f}:{},...m?{authRequirement:m}:{},...y?{securitySchemes:y}:{},...n?{documentServers:n}:{},...g?{servers:g}:{}}});return{...t,tools:o,refHintTable:ext(e,t,r)}},rb=(e,t)=>rp.gen(function*(){let r=yield*Bbt(e,t),n=yield*rp.tryPromise({try:()=>jEe(e,r),catch:a=>jW(e,"extract",a)}),o=yield*$bt(jbt(n),rp.mapError(a=>jW(e,"extract",a))),i=yield*rp.try({try:()=>zA(r),catch:a=>jW(e,"validate",a)});return txt(i,o)});import*as XA from"effect/Either";import*as Ql from"effect/Effect";var rxt=(e,t)=>{if(!t.startsWith("#/"))return;let r=e;for(let n of t.slice(2).split("/")){let o=n.replaceAll("~1","/").replaceAll("~0","~");if(!Ci(r))return;r=r[o]}return r},JW=(e,t,r=0)=>{if(!Ci(t))return null;let n=Du(t.$ref);return n&&r<5?JW(e,rxt(e,n),r+1):t},nxt=e=>{let t=new Set,r=[],n=i=>{if(Array.isArray(i)){for(let a of i)if(Ci(a))for(let[s,c]of Object.entries(a))s.length===0||t.has(s)||(t.add(s),r.push({name:s,scopes:Array.isArray(c)?c.filter(p=>typeof p=="string"):[]}))}};n(e.security);let o=e.paths;if(!Ci(o))return r;for(let i of Object.values(o))if(Ci(i)){n(i.security);for(let a of Object.values(i))Ci(a)&&n(a.security)}return r},aTe=e=>{let t=Du(e.scheme.type)?.toLowerCase()??"";if(t==="oauth2"){let r=Ci(e.scheme.flows)?e.scheme.flows:{},n=Object.values(r).find(Ci)??null,o=n&&Ci(n.scopes)?Object.keys(n.scopes).filter(a=>a.length>0):[],i=[...new Set([...e.scopes,...o])].sort();return{name:e.name,kind:"oauth2",supported:!0,headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:n?kp(Du(n.authorizationUrl)):null,oauthTokenUrl:n?kp(Du(n.tokenUrl)):null,oauthScopes:i,reason:`OpenAPI security scheme "${e.name}" declares OAuth2`}}if(t==="http"){let r=Du(e.scheme.scheme)?.toLowerCase()??"";if(r==="bearer")return{name:e.name,kind:"bearer",supported:!0,headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" declares HTTP bearer auth`};if(r==="basic")return{name:e.name,kind:"basic",supported:!1,headerName:"Authorization",prefix:"Basic ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" declares HTTP basic auth`}}if(t==="apiKey"){let r=Du(e.scheme.in),n=r==="header"||r==="query"||r==="cookie"?r:null;return{name:e.name,kind:"apiKey",supported:!1,headerName:n==="header"?kp(Du(e.scheme.name)):null,prefix:null,parameterName:kp(Du(e.scheme.name)),parameterLocation:n,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" declares API key auth`}}return{name:e.name,kind:"unknown",supported:!1,headerName:null,prefix:null,parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" uses unsupported type ${t||"unknown"}`}},oxt=e=>{let t=Ci(e.components)?e.components:{},r=Ci(t.securitySchemes)?t.securitySchemes:{},n=nxt(e);if(n.length===0){if(Object.keys(r).length===0)return Pp("OpenAPI document does not declare security requirements");let a=Object.entries(r).map(([c,p])=>aTe({name:c,scopes:[],scheme:JW(e,p)??{}})).sort((c,p)=>{let d={oauth2:0,bearer:1,apiKey:2,basic:3,unknown:4};return d[c.kind]-d[p.kind]||c.name.localeCompare(p.name)})[0];if(!a)return Pp("OpenAPI document does not declare security requirements");let s=a.kind==="unknown"?"low":"medium";return a.kind==="oauth2"?Au("oauth2",{confidence:s,reason:`${a.reason}; scheme is defined but not explicitly applied to operations`,headerName:a.headerName,prefix:a.prefix,parameterName:a.parameterName,parameterLocation:a.parameterLocation,oauthAuthorizationUrl:a.oauthAuthorizationUrl,oauthTokenUrl:a.oauthTokenUrl,oauthScopes:a.oauthScopes}):a.kind==="bearer"?Au("bearer",{confidence:s,reason:`${a.reason}; scheme is defined but not explicitly applied to operations`,headerName:a.headerName,prefix:a.prefix,parameterName:a.parameterName,parameterLocation:a.parameterLocation,oauthAuthorizationUrl:a.oauthAuthorizationUrl,oauthTokenUrl:a.oauthTokenUrl,oauthScopes:a.oauthScopes}):a.kind==="apiKey"?sv("apiKey",{confidence:s,reason:`${a.reason}; scheme is defined but not explicitly applied to operations`,headerName:a.headerName,prefix:a.prefix,parameterName:a.parameterName,parameterLocation:a.parameterLocation,oauthAuthorizationUrl:a.oauthAuthorizationUrl,oauthTokenUrl:a.oauthTokenUrl,oauthScopes:a.oauthScopes}):a.kind==="basic"?sv("basic",{confidence:s,reason:`${a.reason}; scheme is defined but not explicitly applied to operations`,headerName:a.headerName,prefix:a.prefix,parameterName:a.parameterName,parameterLocation:a.parameterLocation,oauthAuthorizationUrl:a.oauthAuthorizationUrl,oauthTokenUrl:a.oauthTokenUrl,oauthScopes:a.oauthScopes}):Yy(`${a.reason}; scheme is defined but not explicitly applied to operations`)}let i=n.map(({name:a,scopes:s})=>{let c=JW(e,r[a]);return c==null?null:aTe({name:a,scopes:s,scheme:c})}).filter(a=>a!==null).sort((a,s)=>{let c={oauth2:0,bearer:1,apiKey:2,basic:3,unknown:4};return c[a.kind]-c[s.kind]||a.name.localeCompare(s.name)})[0];return i?i.kind==="oauth2"?Au("oauth2",{confidence:"high",reason:i.reason,headerName:i.headerName,prefix:i.prefix,parameterName:i.parameterName,parameterLocation:i.parameterLocation,oauthAuthorizationUrl:i.oauthAuthorizationUrl,oauthTokenUrl:i.oauthTokenUrl,oauthScopes:i.oauthScopes}):i.kind==="bearer"?Au("bearer",{confidence:"high",reason:i.reason,headerName:i.headerName,prefix:i.prefix,parameterName:i.parameterName,parameterLocation:i.parameterLocation,oauthAuthorizationUrl:i.oauthAuthorizationUrl,oauthTokenUrl:i.oauthTokenUrl,oauthScopes:i.oauthScopes}):i.kind==="apiKey"?sv("apiKey",{confidence:"high",reason:i.reason,headerName:i.headerName,prefix:i.prefix,parameterName:i.parameterName,parameterLocation:i.parameterLocation,oauthAuthorizationUrl:i.oauthAuthorizationUrl,oauthTokenUrl:i.oauthTokenUrl,oauthScopes:i.oauthScopes}):i.kind==="basic"?sv("basic",{confidence:"high",reason:i.reason,headerName:i.headerName,prefix:i.prefix,parameterName:i.parameterName,parameterLocation:i.parameterLocation,oauthAuthorizationUrl:i.oauthAuthorizationUrl,oauthTokenUrl:i.oauthTokenUrl,oauthScopes:i.oauthScopes}):Yy(i.reason):Yy("OpenAPI security requirements reference schemes that could not be resolved")},ixt=e=>{let t=e.document.servers;if(Array.isArray(t)){let r=t.find(Ci),n=r?kp(Du(r.url)):null;if(n)try{return new URL(n,e.normalizedUrl).toString()}catch{return e.normalizedUrl}}return new URL(e.normalizedUrl).origin},KW=e=>Ql.gen(function*(){let t=yield*Ql.either(cv({method:"GET",url:e.normalizedUrl,headers:e.headers}));if(XA.isLeft(t))return console.warn(`[discovery] OpenAPI probe HTTP fetch failed for ${e.normalizedUrl}:`,t.left.message),null;if(t.right.status<200||t.right.status>=300)return console.warn(`[discovery] OpenAPI probe got status ${t.right.status} for ${e.normalizedUrl}`),null;let r=yield*Ql.either(rb(e.normalizedUrl,t.right.text));if(XA.isLeft(r))return console.warn(`[discovery] OpenAPI manifest extraction failed for ${e.normalizedUrl}:`,r.left instanceof Error?r.left.message:String(r.left)),null;let n=yield*Ql.either(Ql.try({try:()=>zA(t.right.text),catch:s=>s instanceof Error?s:new Error(String(s))})),o=XA.isRight(n)&&Ci(n.right)?n.right:{},i=ixt({normalizedUrl:e.normalizedUrl,document:o}),a=kp(Du(o.info&&Ci(o.info)?o.info.title:null))??Cp(i);return{detectedKind:"openapi",confidence:"high",endpoint:i,specUrl:e.normalizedUrl,name:a,namespace:os(a),transport:null,authInference:oxt(o),toolCount:r.right.tools.length,warnings:[]}}).pipe(Ql.catchAll(t=>(console.warn(`[discovery] OpenAPI detection unexpected error for ${e.normalizedUrl}:`,t instanceof Error?t.message:String(t)),Ql.succeed(null))));import*as Bh from"effect/Schema";var GW=Bh.Struct({specUrl:Bh.String,defaultHeaders:Bh.optional(Bh.NullOr(Wr))});import{Schema as qo}from"effect";var ZW=/^v\d+(?:[._-]\d+)?$/i,sTe=new Set(["api"]),axt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1 $2").replace(/[^a-zA-Z0-9]+/g," ").trim().split(/\s+/).filter(t=>t.length>0),sxt=e=>e.toLowerCase(),aF=e=>{let t=axt(e).map(sxt);if(t.length===0)return"tool";let[r,...n]=t;return`${r}${n.map(o=>`${o[0]?.toUpperCase()??""}${o.slice(1)}`).join("")}`},HW=e=>{let t=aF(e);return`${t[0]?.toUpperCase()??""}${t.slice(1)}`},sF=e=>{let t=e?.trim();return t?aF(t):null},WW=e=>e.split("/").map(t=>t.trim()).filter(t=>t.length>0),cTe=e=>e.startsWith("{")&&e.endsWith("}"),cxt=e=>WW(e).map(t=>t.toLowerCase()).find(t=>ZW.test(t)),lxt=e=>{for(let t of WW(e)){let r=t.toLowerCase();if(!ZW.test(r)&&!sTe.has(r)&&!cTe(t))return sF(t)??"root"}return"root"},uxt=e=>e.split(/[/.]+/).map(t=>t.trim()).filter(t=>t.length>0),pxt=(e,t)=>{let r=e.operationId??e.toolId,n=uxt(r);if(n.length>1){let[o,...i]=n;if((sF(o)??o)===t&&i.length>0)return i.join(" ")}return r},dxt=(e,t)=>{let n=WW(e.path).filter(o=>!ZW.test(o.toLowerCase())).filter(o=>!sTe.has(o.toLowerCase())).filter(o=>!cTe(o)).map(o=>sF(o)??o).filter(o=>o!==t).map(o=>HW(o)).join("");return`${e.method}${n||"Operation"}`},_xt=(e,t)=>{let r=aF(pxt(e,t));return r.length>0&&r!==t?r:aF(dxt(e,t))},fxt=e=>e.description??`${e.method.toUpperCase()} ${e.path}`,mxt=qo.Struct({toolId:qo.String,rawToolId:qo.String,operationId:qo.optional(qo.String),name:qo.String,description:qo.String,group:qo.String,leaf:qo.String,tags:qo.Array(qo.String),versionSegment:qo.optional(qo.String),method:eb,path:qo.String,invocation:GA,operationHash:qo.String,typing:qo.optional(tF),documentation:qo.optional(ZA),responses:qo.optional(qo.Array(HA)),authRequirement:qo.optional(mS),securitySchemes:qo.optional(qo.Array(WA)),documentServers:qo.optional(qo.Array(jh)),servers:qo.optional(qo.Array(jh))}),hxt=e=>{let t=e.map(n=>({...n,toolId:`${n.group}.${n.leaf}`})),r=(n,o)=>{let i=new Map;for(let a of n){let s=i.get(a.toolId)??[];s.push(a),i.set(a.toolId,s)}for(let a of i.values())if(!(a.length<2))for(let s of a)s.toolId=o(s)};return r(t,n=>n.versionSegment?`${n.group}.${n.versionSegment}.${n.leaf}`:n.toolId),r(t,n=>`${n.versionSegment?`${n.group}.${n.versionSegment}`:n.group}.${n.leaf}${HW(n.method)}`),r(t,n=>`${n.versionSegment?`${n.group}.${n.versionSegment}`:n.group}.${n.leaf}${HW(n.method)}${n.operationHash.slice(0,8)}`),t},cF=e=>{let t=e.tools.map(r=>{let n=sF(r.tags[0])??lxt(r.path),o=_xt(r,n);return{rawToolId:r.toolId,operationId:r.operationId,name:r.name,description:fxt(r),group:n,leaf:o,tags:[...r.tags],versionSegment:cxt(r.path),method:r.method,path:r.path,invocation:r.invocation,operationHash:r.operationHash,typing:r.typing,documentation:r.documentation,responses:r.responses,authRequirement:r.authRequirement,securitySchemes:r.securitySchemes,documentServers:r.documentServers,servers:r.servers}});return hxt(t).sort((r,n)=>r.toolId.localeCompare(n.toolId)||r.rawToolId.localeCompare(n.rawToolId)||r.operationHash.localeCompare(n.operationHash))},QW=e=>({kind:"openapi",toolId:e.toolId,rawToolId:e.rawToolId,operationId:e.operationId,group:e.group,leaf:e.leaf,tags:e.tags,versionSegment:e.versionSegment,method:e.method,path:e.path,operationHash:e.operationHash,invocation:e.invocation,documentation:e.documentation,responses:e.responses,authRequirement:e.authRequirement,securitySchemes:e.securitySchemes,documentServers:e.documentServers,servers:e.servers});import*as nb from"effect/Match";var lF=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),yxt=e=>{try{return JSON.parse(e)}catch{return null}},YA=(e,t,r,n)=>{if(Array.isArray(e))return e.map(a=>YA(a,t,r,n));if(!lF(e))return e;let o=typeof e.$ref=="string"?e.$ref:null;if(o&&o.startsWith("#/")&&!n.has(o)){let a=r.get(o);if(a===void 0){let s=t[o];a=typeof s=="string"?yxt(s):lF(s)?s:null,r.set(o,a)}if(a!=null){let s=new Set(n);s.add(o);let{$ref:c,...p}=e,d=YA(a,t,r,s);if(Object.keys(p).length===0)return d;let f=YA(p,t,r,n);return lF(d)&&lF(f)?{...d,...f}:d}}let i={};for(let[a,s]of Object.entries(e))i[a]=YA(s,t,r,n);return i},qh=(e,t)=>e==null?null:!t||Object.keys(t).length===0?e:YA(e,t,new Map,new Set),XW=(e,t)=>({inputSchema:qh(e?.inputSchema,t),outputSchema:qh(e?.outputSchema,t)});var tw=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},gxt=e=>{let t=tw(e);if(t.type!=="object"&&t.properties===void 0)return!1;let r=tw(t.properties);return Object.keys(r).length===0&&t.additionalProperties===!1},pTe=(e,t=320)=>e==null?"void":gxt(e)?"{}":hu(e,"unknown",t),eQ=e=>e?.[0],ew=(e,t)=>{let r=tw(e);return tw(r.properties)[t]},Sxt=(e,t,r)=>{let n=ew(e,r);if(n!==void 0)return n;let i=ew(e,t==="header"?"headers":t==="cookie"?"cookies":t);return i===void 0?void 0:ew(i,r)},lTe=e=>!e||e.length===0?void 0:([...e].sort((r,n)=>r.mediaType.localeCompare(n.mediaType)).find(r=>r.mediaType==="application/json")??[...e].find(r=>r.mediaType.toLowerCase().includes("+json"))??[...e].find(r=>r.mediaType.toLowerCase().includes("json"))??e[0])?.schema,uTe=(e,t)=>{if(!t)return e;let r=tw(e);return Object.keys(r).length===0?e:{...r,description:t}},vxt=e=>{let t=e.invocation,r={},n=[];for(let o of t.parameters){let i=e.documentation?.parameters.find(s=>s.name===o.name&&s.location===o.location),a=Sxt(e.parameterSourceSchema,o.location,o.name)??lTe(o.content)??{type:"string"};r[o.name]=uTe(a,i?.description),o.required&&n.push(o.name)}return t.requestBody&&(r.body=uTe(e.requestBodySchema??lTe(t.requestBody.contents)??{type:"object"},e.documentation?.requestBody?.description),t.requestBody.required&&n.push("body")),Object.keys(r).length>0?{type:"object",properties:r,...n.length>0?{required:n}:{},additionalProperties:!1}:void 0},YW=e=>typeof e=="string"&&e.length>0?{$ref:e}:void 0,bxt=e=>{let t=e.typing?.refHintKeys??[];return nb.value(e.invocation.requestBody).pipe(nb.when(null,()=>({outputSchema:YW(t[0])})),nb.orElse(()=>({requestBodySchema:YW(t[0]),outputSchema:YW(t[1])})))},xxt=e=>{let t=XW(e.definition.typing,e.refHintTable),r=bxt(e.definition),n=qh(r.requestBodySchema,e.refHintTable),o=ew(t.inputSchema,"body")??ew(t.inputSchema,"input")??n??void 0,i=vxt({invocation:e.definition.invocation,documentation:e.definition.documentation,parameterSourceSchema:t.inputSchema,...o!==void 0?{requestBodySchema:o}:{}})??t.inputSchema??void 0,a=t.outputSchema??qh(r.outputSchema,e.refHintTable);return{...i!=null?{inputSchema:i}:{},...a!=null?{outputSchema:a}:{}}},Ext=e=>{if(!(!e.variants||e.variants.length===0))return e.variants.map(t=>{let r=qh(t.schema,e.refHintTable);return{...t,...r!==void 0?{schema:r}:{}}})},Txt=e=>{if(!e)return;let t={};for(let n of e.parameters){let o=eQ(n.examples);o&&(t[n.name]=JSON.parse(o.valueJson))}let r=eQ(e.requestBody?.examples);return r&&(t.body=JSON.parse(r.valueJson)),Object.keys(t).length>0?t:void 0},Dxt=e=>{let t=eQ(e?.response?.examples)?.valueJson;return t?JSON.parse(t):void 0},uF=e=>{let{inputSchema:t,outputSchema:r}=xxt(e),n=Ext({variants:e.definition.responses,refHintTable:e.refHintTable}),o=Txt(e.definition.documentation),i=Dxt(e.definition.documentation);return{inputTypePreview:hu(t,"unknown",1/0),outputTypePreview:pTe(r,1/0),...t!==void 0?{inputSchema:t}:{},...r!==void 0?{outputSchema:r}:{},...o!==void 0?{exampleInput:o}:{},...i!==void 0?{exampleOutput:i}:{},providerData:{...QW(e.definition),...n?{responses:n}:{}}}};var rw=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Axt=new TextEncoder,tQ=e=>(e??"").split(";",1)[0]?.trim().toLowerCase()??"",$i=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean"||typeof e=="bigint")return String(e);if(e==null)return"";try{return JSON.stringify(e)}catch{return String(e)}},dTe=e=>{let t=tQ(e);return t==="application/json"||t.endsWith("+json")||t.includes("json")},_Te=e=>{let t=tQ(e);return t.length===0?!1:t.startsWith("text/")||t==="application/xml"||t.endsWith("+xml")||t.endsWith("/xml")||t==="application/x-www-form-urlencoded"||t==="application/javascript"||t==="application/ecmascript"||t==="application/graphql"||t==="application/sql"||t==="application/x-yaml"||t==="application/yaml"||t==="application/toml"||t==="application/csv"||t==="image/svg+xml"||t.endsWith("+yaml")||t.endsWith("+toml")},nw=e=>dTe(e)?"json":_Te(e)||tQ(e).length===0?"text":"bytes",ow=e=>Object.entries(rw(e)?e:{}).sort(([t],[r])=>t.localeCompare(r)),wxt=e=>{switch(e){case"path":case"header":return"simple";case"cookie":case"query":return"form"}},Ixt=(e,t)=>e==="query"||e==="cookie"?t==="form":!1,rQ=e=>e.style??wxt(e.location),pF=e=>e.explode??Ixt(e.location,rQ(e)),ia=e=>encodeURIComponent($i(e)),kxt=(e,t)=>{let r=encodeURIComponent(e);return t?r.replace(/%3A/gi,":").replace(/%2F/gi,"/").replace(/%3F/gi,"?").replace(/%23/gi,"#").replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%40/gi,"@").replace(/%21/gi,"!").replace(/%24/gi,"$").replace(/%26/gi,"&").replace(/%27/gi,"'").replace(/%28/gi,"(").replace(/%29/gi,")").replace(/%2A/gi,"*").replace(/%2B/gi,"+").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%3D/gi,"="):r},iw=e=>{let t=[...(e.contents??[]).map(r=>r.mediaType),...e.contentTypes??[]];if(t.length!==0)return t.find(r=>r==="application/json")??t.find(r=>r.toLowerCase().includes("+json"))??t.find(r=>r.toLowerCase().includes("json"))??t[0]},Cxt=e=>{if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);if(typeof e=="string")return Axt.encode(e);if(Array.isArray(e)&&e.every(t=>typeof t=="number"&&Number.isInteger(t)&&t>=0&&t<=255))return Uint8Array.from(e);throw new Error("Binary OpenAPI request bodies must be bytes, a string, or an array of byte values")},aw=(e,t)=>{let r=t.toLowerCase();if(r==="application/json"||r.includes("+json")||r.includes("json"))return JSON.stringify(e);if(r==="application/x-www-form-urlencoded"){let n=new URLSearchParams;for(let[o,i]of ow(e)){if(Array.isArray(i)){for(let a of i)n.append(o,$i(a));continue}n.append(o,$i(i))}return n.toString()}return $i(e)},Pxt=(e,t)=>{let r=rQ(e),n=pF(e),o=e.allowReserved===!0,i=iw({contents:e.content});if(i)return{kind:"query",entries:[{name:e.name,value:aw(t,i),allowReserved:o}]};if(Array.isArray(t))return r==="spaceDelimited"?{kind:"query",entries:[{name:e.name,value:t.map(a=>$i(a)).join(" "),allowReserved:o}]}:r==="pipeDelimited"?{kind:"query",entries:[{name:e.name,value:t.map(a=>$i(a)).join("|"),allowReserved:o}]}:{kind:"query",entries:n?t.map(a=>({name:e.name,value:$i(a),allowReserved:o})):[{name:e.name,value:t.map(a=>$i(a)).join(","),allowReserved:o}]};if(rw(t)){let a=ow(t);return r==="deepObject"?{kind:"query",entries:a.map(([s,c])=>({name:`${e.name}[${s}]`,value:$i(c),allowReserved:o}))}:{kind:"query",entries:n?a.map(([s,c])=>({name:s,value:$i(c),allowReserved:o})):[{name:e.name,value:a.flatMap(([s,c])=>[s,$i(c)]).join(","),allowReserved:o}]}}return{kind:"query",entries:[{name:e.name,value:$i(t),allowReserved:o}]}},Oxt=(e,t)=>{let r=pF(e),n=iw({contents:e.content});if(n)return{kind:"header",value:aw(t,n)};if(Array.isArray(t))return{kind:"header",value:t.map(o=>$i(o)).join(",")};if(rw(t)){let o=ow(t);return{kind:"header",value:r?o.map(([i,a])=>`${i}=${$i(a)}`).join(","):o.flatMap(([i,a])=>[i,$i(a)]).join(",")}}return{kind:"header",value:$i(t)}},Nxt=(e,t)=>{let r=pF(e),n=iw({contents:e.content});if(n)return{kind:"cookie",pairs:[{name:e.name,value:aw(t,n)}]};if(Array.isArray(t))return{kind:"cookie",pairs:r?t.map(o=>({name:e.name,value:$i(o)})):[{name:e.name,value:t.map(o=>$i(o)).join(",")}]};if(rw(t)){let o=ow(t);return{kind:"cookie",pairs:r?o.map(([i,a])=>({name:i,value:$i(a)})):[{name:e.name,value:o.flatMap(([i,a])=>[i,$i(a)]).join(",")}]}}return{kind:"cookie",pairs:[{name:e.name,value:$i(t)}]}},Fxt=(e,t)=>{let r=rQ(e),n=pF(e),o=iw({contents:e.content});if(o)return{kind:"path",value:ia(aw(t,o))};if(Array.isArray(t))return r==="label"?{kind:"path",value:`.${t.map(i=>ia(i)).join(n?".":",")}`}:r==="matrix"?{kind:"path",value:n?t.map(i=>`;${encodeURIComponent(e.name)}=${ia(i)}`).join(""):`;${encodeURIComponent(e.name)}=${t.map(i=>ia(i)).join(",")}`}:{kind:"path",value:t.map(i=>ia(i)).join(",")};if(rw(t)){let i=ow(t);return r==="label"?{kind:"path",value:n?`.${i.map(([a,s])=>`${ia(a)}=${ia(s)}`).join(".")}`:`.${i.flatMap(([a,s])=>[ia(a),ia(s)]).join(",")}`}:r==="matrix"?{kind:"path",value:n?i.map(([a,s])=>`;${encodeURIComponent(a)}=${ia(s)}`).join(""):`;${encodeURIComponent(e.name)}=${i.flatMap(([a,s])=>[ia(a),ia(s)]).join(",")}`}:{kind:"path",value:n?i.map(([a,s])=>`${ia(a)}=${ia(s)}`).join(","):i.flatMap(([a,s])=>[ia(a),ia(s)]).join(",")}}return r==="label"?{kind:"path",value:`.${ia(t)}`}:r==="matrix"?{kind:"path",value:`;${encodeURIComponent(e.name)}=${ia(t)}`}:{kind:"path",value:ia(t)}},sw=(e,t)=>{switch(e.location){case"path":return Fxt(e,t);case"query":return Pxt(e,t);case"header":return Oxt(e,t);case"cookie":return Nxt(e,t)}},dF=(e,t)=>{if(t.length===0)return e.toString();let r=t.map(s=>`${encodeURIComponent(s.name)}=${kxt(s.value,s.allowReserved===!0)}`).join("&"),n=e.toString(),[o,i]=n.split("#",2),a=o.includes("?")?o.endsWith("?")||o.endsWith("&")?"":"&":"?";return`${o}${a}${r}${i?`#${i}`:""}`},_F=e=>{let t=iw(e.requestBody)??"application/json";return nw(t)==="bytes"?{contentType:t,body:Cxt(e.body)}:{contentType:t,body:aw(e.body,t)}};import{FetchHttpClient as ZJt,HttpClient as WJt,HttpClientRequest as QJt}from"@effect/platform";import*as fTe from"effect/Data";import*as ob from"effect/Effect";var nQ=class extends fTe.TaggedError("OpenApiToolInvocationError"){};var mTe=e=>{if(!(!e||e.length===0))return e.map(t=>({url:t.url,...t.description?{description:t.description}:{},...t.variables?{variables:t.variables}:{}}))},Rxt=e=>{let t=Tu.make(`scope_${mn({sourceId:e.source.id,toolId:e.operation.providerData.toolId,kind:"operation"})}`);return Vr(e.catalog.scopes)[t]={id:t,kind:"operation",parentId:e.parentScopeId,name:e.operation.title??e.operation.providerData.toolId,docs:wn({summary:e.operation.title??e.operation.providerData.toolId,description:e.operation.description??void 0}),defaults:e.defaults,synthetic:!1,provenance:un(e.documentId,`#/openapi/${e.operation.providerData.toolId}/scope`)},t},Lxt=e=>{let t=_m.make(`security_${mn({sourceId:e.source.id,provider:"openapi",schemeName:e.schemeName})}`);if(e.catalog.symbols[t])return t;let r=e.scheme,n=r?.scheme?.toLowerCase(),o=r?.schemeType==="apiKey"?"apiKey":r?.schemeType==="oauth2"?"oauth2":r?.schemeType==="http"&&n==="basic"?"basic":r?.schemeType==="http"&&n==="bearer"?"bearer":r?.schemeType==="openIdConnect"?"custom":r?.schemeType==="http"?"http":"custom",i=Object.fromEntries(Object.entries(r?.flows??{}).map(([c,p])=>[c,p])),a=Object.fromEntries(Object.entries(r?.flows??{}).flatMap(([,c])=>Object.entries(c.scopes??{}))),s=r?.description??(r?.openIdConnectUrl?`OpenID Connect: ${r.openIdConnectUrl}`:null);return Vr(e.catalog.symbols)[t]={id:t,kind:"securityScheme",schemeType:o,...wn({summary:e.schemeName,description:s})?{docs:wn({summary:e.schemeName,description:s})}:{},...r?.placementIn||r?.placementName?{placement:{...r?.placementIn?{in:r.placementIn}:{},...r?.placementName?{name:r.placementName}:{}}}:{},...o==="apiKey"&&r?.placementIn&&r?.placementName?{apiKey:{in:r.placementIn,name:r.placementName}}:{},...(o==="basic"||o==="bearer"||o==="http")&&r?.scheme?{http:{scheme:r.scheme,...r.bearerFormat?{bearerFormat:r.bearerFormat}:{}}}:{},...o==="oauth2"?{oauth:{...Object.keys(i).length>0?{flows:i}:{},...Object.keys(a).length>0?{scopes:a}:{}}}:{},...o==="custom"?{custom:{}}:{},synthetic:!1,provenance:un(e.documentId,`#/openapi/securitySchemes/${e.schemeName}`)},t},hTe=e=>{let t=e.authRequirement;if(!t)return{kind:"none"};switch(t.kind){case"none":return{kind:"none"};case"scheme":return{kind:"scheme",schemeId:Lxt({catalog:e.catalog,source:e.source,documentId:e.documentId,schemeName:t.schemeName,scheme:e.schemesByName.get(t.schemeName)}),...t.scopes&&t.scopes.length>0?{scopes:[...t.scopes]}:{}};case"allOf":case"anyOf":return{kind:t.kind,items:t.items.map(r=>hTe({catalog:e.catalog,source:e.source,documentId:e.documentId,authRequirement:r,schemesByName:e.schemesByName}))}}},fF=e=>e.contents.map((t,r)=>{let n=(t.examples??[]).map((o,i)=>mm({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`${e.pointerBase}/content/${r}/example/${i}`,name:o.label,summary:o.label,value:JSON.parse(o.valueJson)}));return{mediaType:t.mediaType,...t.schema!==void 0?{shapeId:e.importer.importSchema(t.schema,`${e.pointerBase}/content/${r}`,e.rootSchema)}:{},...n.length>0?{exampleIds:n}:{}}}),$xt=e=>{let t=dm.make(`header_${mn(e.idSeed)}`),r=(e.header.examples??[]).map((o,i)=>mm({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`${e.pointer}/example/${i}`,name:o.label,summary:o.label,value:JSON.parse(o.valueJson)})),n=e.header.content?fF({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:e.header.content,pointerBase:e.pointer}):void 0;return Vr(e.catalog.symbols)[t]={id:t,kind:"header",name:e.header.name,...wn({description:e.header.description})?{docs:wn({description:e.header.description})}:{},...typeof e.header.deprecated=="boolean"?{deprecated:e.header.deprecated}:{},...e.header.schema!==void 0?{schemaShapeId:e.importer.importSchema(e.header.schema,e.pointer,e.rootSchema)}:{},...n&&n.length>0?{content:n}:{},...r.length>0?{exampleIds:r}:{},...e.header.style?{style:e.header.style}:{},...typeof e.header.explode=="boolean"?{explode:e.header.explode}:{},synthetic:!1,provenance:un(e.documentId,e.pointer)},t},Mxt=e=>{let t=h_(e.source,e.operation.providerData.toolId),r=Oc.make(`cap_${mn({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),n=Qs.make(`exec_${mn({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"http"})}`),o=e.operation.inputSchema??{},i=e.operation.outputSchema??{},a=[],s=new Map((e.operation.providerData.securitySchemes??[]).map(S=>[S.schemeName,S]));e.operation.providerData.invocation.parameters.forEach(S=>{let x=pm.make(`param_${mn({capabilityId:r,location:S.location,name:S.name})}`),A=kT(o,S.location,S.name),I=e.operation.providerData.documentation?.parameters.find(F=>F.name===S.name&&F.location===S.location),E=(I?.examples??[]).map((F,O)=>{let $=JSON.parse(F.valueJson);return mm({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/parameter/${S.location}/${S.name}/example/${O}`,name:F.label,summary:F.label,value:$})});a.push(...E);let C=S.content?fF({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:S.content,pointerBase:`#/openapi/${e.operation.providerData.toolId}/parameter/${S.location}/${S.name}`}):void 0;Vr(e.catalog.symbols)[x]={id:x,kind:"parameter",name:S.name,location:S.location,required:S.required,...wn({description:I?.description??null})?{docs:wn({description:I?.description??null})}:{},...A!==void 0&&(!C||C.length===0)?{schemaShapeId:e.importer.importSchema(A,`#/openapi/${e.operation.providerData.toolId}/parameter/${S.location}/${S.name}`,e.rootSchema)}:{},...C&&C.length>0?{content:C}:{},...E.length>0?{exampleIds:E}:{},...S.style?{style:S.style}:{},...typeof S.explode=="boolean"?{explode:S.explode}:{},...typeof S.allowReserved=="boolean"?{allowReserved:S.allowReserved}:{},synthetic:!1,provenance:un(e.documentId,`#/openapi/${e.operation.providerData.toolId}/parameter/${S.location}/${S.name}`)}});let c=e.operation.providerData.invocation.requestBody?Xy.make(`request_body_${mn({capabilityId:r})}`):void 0;if(c){let S=pv(o),x=e.operation.providerData.invocation.requestBody?.contents?fF({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:e.operation.providerData.invocation.requestBody.contents,pointerBase:`#/openapi/${e.operation.providerData.toolId}/requestBody`}):void 0,A=x?.flatMap(E=>E.exampleIds??[])??(e.operation.providerData.documentation?.requestBody?.examples??[]).map((E,C)=>mm({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/requestBody/example/${C}`,name:E.label,summary:E.label,value:JSON.parse(E.valueJson)}));a.push(...A);let I=x&&x.length>0?x:CT(e.operation.providerData.invocation.requestBody?.contentTypes).map(E=>({mediaType:E,...S!==void 0?{shapeId:e.importer.importSchema(S,`#/openapi/${e.operation.providerData.toolId}/requestBody`,e.rootSchema)}:{},...A.length>0?{exampleIds:A}:{}}));Vr(e.catalog.symbols)[c]={id:c,kind:"requestBody",...wn({description:e.operation.providerData.documentation?.requestBody?.description??null})?{docs:wn({description:e.operation.providerData.documentation?.requestBody?.description??null})}:{},required:e.operation.providerData.invocation.requestBody?.required??!1,contents:I,synthetic:!1,provenance:un(e.documentId,`#/openapi/${e.operation.providerData.toolId}/requestBody`)}}let p=e.operation.providerData.responses??[],d=p.length>0?nB({catalog:e.catalog,variants:p.map((S,x)=>{let A=Nc.make(`response_${mn({capabilityId:r,statusCode:S.statusCode,responseIndex:x})}`),I=(S.examples??[]).map((F,O)=>mm({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/responses/${S.statusCode}/example/${O}`,name:F.label,summary:F.label,value:JSON.parse(F.valueJson)}));a.push(...I);let E=S.contents&&S.contents.length>0?fF({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:S.contents,pointerBase:`#/openapi/${e.operation.providerData.toolId}/responses/${S.statusCode}`}):(()=>{let F=S.schema!==void 0?e.importer.importSchema(S.schema,`#/openapi/${e.operation.providerData.toolId}/responses/${S.statusCode}`,e.rootSchema):void 0,O=CT(S.contentTypes);return O.length>0?O.map(($,N)=>({mediaType:$,...F!==void 0&&N===0?{shapeId:F}:{},...I.length>0&&N===0?{exampleIds:I}:{}})):void 0})(),C=(S.headers??[]).map((F,O)=>$xt({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,pointer:`#/openapi/${e.operation.providerData.toolId}/responses/${S.statusCode}/headers/${F.name}`,idSeed:{capabilityId:r,responseId:A,headerIndex:O,headerName:F.name},header:F}));return Vr(e.catalog.symbols)[A]={id:A,kind:"response",...wn({description:S.description??(x===0?e.operation.description:null)})?{docs:wn({description:S.description??(x===0?e.operation.description:null)})}:{},...C.length>0?{headerIds:C}:{},...E&&E.length>0?{contents:E}:{},synthetic:!1,provenance:un(e.documentId,`#/openapi/${e.operation.providerData.toolId}/responses/${S.statusCode}`)},{match:oB(S.statusCode),responseId:A}}),provenance:un(e.documentId,`#/openapi/${e.operation.providerData.toolId}/responseSet`)}):(()=>{let S=Nc.make(`response_${mn({capabilityId:r})}`),x=(e.operation.providerData.documentation?.response?.examples??[]).map((A,I)=>mm({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/response/example/${I}`,name:A.label,summary:A.label,value:JSON.parse(A.valueJson)}));return a.push(...x),Vr(e.catalog.symbols)[S]={id:S,kind:"response",...wn({description:e.operation.providerData.documentation?.response?.description??e.operation.description})?{docs:wn({description:e.operation.providerData.documentation?.response?.description??e.operation.description})}:{},contents:[{mediaType:CT(e.operation.providerData.documentation?.response?.contentTypes)[0]??"application/json",...e.operation.outputSchema!==void 0?{shapeId:e.importer.importSchema(i,`#/openapi/${e.operation.providerData.toolId}/response`)}:{},...x.length>0?{exampleIds:x}:{}}],synthetic:!1,provenance:un(e.documentId,`#/openapi/${e.operation.providerData.toolId}/response`)},g_({catalog:e.catalog,responseId:S,provenance:un(e.documentId,`#/openapi/${e.operation.providerData.toolId}/responseSet`)})})(),f=e.operation.inputSchema!==void 0?e.importer.importSchema(e.operation.inputSchema,`#/openapi/${e.operation.providerData.toolId}/call`,e.operation.inputSchema):e.importer.importSchema({type:"object",additionalProperties:!1},`#/openapi/${e.operation.providerData.toolId}/call`),m={id:n,capabilityId:r,scopeId:(()=>{let S=mTe(e.operation.providerData.servers);return!S||S.length===0?e.serviceScopeId:Rxt({catalog:e.catalog,source:e.source,documentId:e.documentId,parentScopeId:e.serviceScopeId,operation:e.operation,defaults:{servers:S}})})(),adapterKey:"openapi",bindingVersion:Ca,binding:e.operation.providerData,projection:{responseSetId:d,callShapeId:f},display:{protocol:"http",method:e.operation.providerData.invocation.method.toUpperCase(),pathTemplate:e.operation.providerData.invocation.pathTemplate,operationId:e.operation.providerData.operationId??null,group:e.operation.providerData.group,leaf:e.operation.providerData.leaf,rawToolId:e.operation.providerData.rawToolId,title:e.operation.title??null,summary:e.operation.description??null},synthetic:!1,provenance:un(e.documentId,`#/openapi/${e.operation.providerData.toolId}/executable`)};Vr(e.catalog.executables)[n]=m;let y=e.operation.effect,g=hTe({catalog:e.catalog,source:e.source,documentId:e.documentId,authRequirement:e.operation.providerData.authRequirement,schemesByName:s});Vr(e.catalog.capabilities)[r]={id:r,serviceScopeId:e.serviceScopeId,surface:{toolPath:t,...e.operation.title?{title:e.operation.title}:{},...e.operation.description?{summary:e.operation.description}:{},...e.operation.providerData.tags.length>0?{tags:e.operation.providerData.tags}:{}},semantics:{effect:y,safe:y==="read",idempotent:y==="read"||y==="delete",destructive:y==="delete"},auth:g,interaction:y_(y),executableIds:[n],...a.length>0?{exampleIds:a}:{},synthetic:!1,provenance:un(e.documentId,`#/openapi/${e.operation.providerData.toolId}/capability`)}},yTe=e=>{let t=(()=>{let r=e.documents[0]?.contentText;if(r)try{return JSON.parse(r)}catch{return}})();return S_({source:e.source,documents:e.documents,resourceDialectUri:"https://json-schema.org/draft/2020-12/schema",serviceScopeDefaults:(()=>{let r=mTe(e.operations.find(n=>(n.providerData.documentServers??[]).length>0)?.providerData.documentServers);return r?{servers:r}:void 0})(),registerOperations:({catalog:r,documentId:n,serviceScopeId:o,importer:i})=>{for(let a of e.operations)Mxt({catalog:r,source:e.source,documentId:n,serviceScopeId:o,operation:a,importer:i,rootSchema:t})}})};import{FetchHttpClient as jxt,HttpClient as Bxt,HttpClientRequest as gTe}from"@effect/platform";import*as ci from"effect/Effect";import*as to from"effect/Schema";var qxt=to.extend(M6,to.extend(gm,to.Struct({kind:to.Literal("openapi"),specUrl:to.Trim.pipe(to.nonEmptyString()),auth:to.optional(x_)}))),Uxt=to.extend(gm,to.Struct({kind:to.Literal("openapi"),endpoint:to.String,specUrl:to.String,name:Ho,namespace:Ho,auth:to.optional(x_)})),STe=to.Struct({specUrl:to.Trim.pipe(to.nonEmptyString()),defaultHeaders:to.optional(to.NullOr(Wr))}),zxt=to.Struct({specUrl:to.optional(to.String),defaultHeaders:to.optional(to.NullOr(Wr))}),cw=1,Vxt=(e,t)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&t.some(r=>Object.prototype.hasOwnProperty.call(e,r)),gS=e=>ci.gen(function*(){if(Vxt(e.binding,["transport","queryParams","headers"]))return yield*Co("openapi/adapter","OpenAPI sources cannot define MCP transport settings");let t=yield*$p({sourceId:e.id,label:"OpenAPI",version:e.bindingVersion,expectedVersion:cw,schema:zxt,value:e.binding,allowedKeys:["specUrl","defaultHeaders"]}),r=typeof t.specUrl=="string"?t.specUrl.trim():"";return r.length===0?yield*Co("openapi/adapter","OpenAPI sources require specUrl"):{specUrl:r,defaultHeaders:t.defaultHeaders??null}}),Jxt=e=>ci.gen(function*(){let t=yield*Bxt.HttpClient,r=gTe.get(yu({url:e.url,queryParams:e.queryParams}).toString()).pipe(gTe.setHeaders(Tc({headers:e.headers??{},cookies:e.cookies}))),n=yield*t.execute(r).pipe(ci.mapError(o=>o instanceof Error?o:new Error(String(o))));return n.status===401||n.status===403?yield*new b_("import",`OpenAPI spec fetch requires credentials (status ${n.status})`):n.status<200||n.status>=300?yield*Co("openapi/adapter",`OpenAPI spec fetch failed with status ${n.status}`):yield*n.text.pipe(ci.mapError(o=>o instanceof Error?o:new Error(String(o))))}).pipe(ci.provide(jxt.layer)),Kxt=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},Gxt={path:["path","pathParams","params"],query:["query","queryParams","params"],header:["headers","header"],cookie:["cookies","cookie"]},vTe=(e,t)=>{let r=e[t.name];if(r!==void 0)return r;for(let n of Gxt[t.location]){let o=e[n];if(typeof o!="object"||o===null||Array.isArray(o))continue;let i=o[t.name];if(i!==void 0)return i}},Hxt=(e,t,r)=>{let n=e;for(let a of r.parameters){if(a.location!=="path")continue;let s=vTe(t,a);if(s==null){if(a.required)throw new Error(`Missing required path parameter: ${a.name}`);continue}let c=sw(a,s);n=n.replaceAll(`{${a.name}}`,c.kind==="path"?c.value:encodeURIComponent(String(s)))}let o=[...n.matchAll(/\{([^{}]+)\}/g)].map(a=>a[1]).filter(a=>typeof a=="string"&&a.length>0);for(let a of o){let s=t[a]??(typeof t.path=="object"&&t.path!==null&&!Array.isArray(t.path)?t.path[a]:void 0)??(typeof t.pathParams=="object"&&t.pathParams!==null&&!Array.isArray(t.pathParams)?t.pathParams[a]:void 0)??(typeof t.params=="object"&&t.params!==null&&!Array.isArray(t.params)?t.params[a]:void 0);s!=null&&(n=n.replaceAll(`{${a}}`,encodeURIComponent(String(s))))}let i=[...n.matchAll(/\{([^{}]+)\}/g)].map(a=>a[1]).filter(a=>typeof a=="string"&&a.length>0);if(i.length>0){let a=[...new Set(i)].sort().join(", ");throw new Error(`Unresolved path parameters after substitution: ${a}`)}return n},Zxt=e=>{let t={};return e.headers.forEach((r,n)=>{t[n]=r}),t},Wxt=async e=>{if(e.status===204)return null;let t=nw(e.headers.get("content-type"));return t==="json"?e.json():t==="bytes"?new Uint8Array(await e.arrayBuffer()):e.text()},Qxt=e=>{let t=e.providerData.servers?.[0]??e.providerData.documentServers?.[0];if(!t)return new URL(e.endpoint).toString();let r=Object.entries(t.variables??{}).reduce((n,[o,i])=>n.replaceAll(`{${o}}`,i),t.url);return new URL(r,e.endpoint).toString()},Xxt=(e,t)=>{try{return new URL(t)}catch{let r=new URL(e),n=r.pathname==="/"?"":r.pathname.endsWith("/")?r.pathname.slice(0,-1):r.pathname,o=t.startsWith("/")?t:`/${t}`;return r.pathname=`${n}${o}`.replace(/\/{2,}/g,"/"),r.search="",r.hash="",r}},Yxt=e=>{let t=uF({definition:e.definition,refHintTable:e.refHintTable}),r=e.definition.method.toUpperCase();return{toolId:e.definition.toolId,title:e.definition.name,description:e.definition.description,effect:r==="GET"||r==="HEAD"?"read":r==="DELETE"?"delete":"write",inputSchema:t.inputSchema,outputSchema:t.outputSchema,providerData:t.providerData}},bTe={key:"openapi",displayName:"OpenAPI",catalogKind:"imported",connectStrategy:"direct",credentialStrategy:"credential_managed",bindingConfigVersion:cw,providerKey:"generic_http",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:qxt,executorAddInputSchema:Uxt,executorAddHelpText:["endpoint is the base API URL. specUrl is the OpenAPI document URL."],executorAddInputSignatureWidth:420,localConfigBindingSchema:GW,localConfigBindingFromSource:e=>ci.runSync(ci.map(gS(e),t=>({specUrl:t.specUrl,defaultHeaders:t.defaultHeaders}))),serializeBindingConfig:e=>Rp({adapterKey:"openapi",version:cw,payloadSchema:STe,payload:ci.runSync(gS(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:t})=>ci.map(Lp({sourceId:e,label:"OpenAPI",adapterKey:"openapi",version:cw,payloadSchema:STe,value:t}),({version:r,payload:n})=>({version:r,payload:{specUrl:n.specUrl,defaultHeaders:n.defaultHeaders??null}})),bindingStateFromSource:e=>ci.map(gS(e),t=>({...Fp,specUrl:t.specUrl,defaultHeaders:t.defaultHeaders})),sourceConfigFromSource:e=>ci.runSync(ci.map(gS(e),t=>({kind:"openapi",endpoint:e.endpoint,specUrl:t.specUrl,defaultHeaders:t.defaultHeaders}))),validateSource:e=>ci.gen(function*(){let t=yield*gS(e);return{...e,bindingVersion:cw,binding:{specUrl:t.specUrl,defaultHeaders:t.defaultHeaders}}}),shouldAutoProbe:e=>e.enabled&&(e.status==="draft"||e.status==="probing"),discoveryPriority:({normalizedUrl:e})=>fm(e)?50:250,detectSource:({normalizedUrl:e,headers:t})=>KW({normalizedUrl:e,headers:t}),syncCatalog:({source:e,resolveAuthMaterialForSlot:t})=>ci.gen(function*(){let r=yield*gS(e),n=yield*t("import"),o=yield*Jxt({url:r.specUrl,headers:{...r.defaultHeaders,...n.headers},queryParams:n.queryParams,cookies:n.cookies}).pipe(ci.mapError(c=>E_(c)?c:new Error(`Failed fetching OpenAPI spec for ${e.id}: ${c.message}`))),i=yield*rb(e.name,o).pipe(ci.mapError(c=>c instanceof Error?c:new Error(String(c)))),a=cF(i),s=Date.now();return Np({fragment:yTe({source:e,documents:[{documentKind:"openapi",documentKey:r.specUrl,contentText:o,fetchedAt:s}],operations:a.map(c=>Yxt({definition:c,refHintTable:i.refHintTable}))}),importMetadata:ws({source:e,adapterKey:"openapi"}),sourceHash:i.sourceHash})}),invoke:e=>ci.tryPromise({try:async()=>{let t=ci.runSync(gS(e.source)),r=Sm({executableId:e.executable.id,label:"OpenAPI",version:e.executable.bindingVersion,expectedVersion:Ca,schema:$W,value:e.executable.binding}),n=Kxt(e.args),o=Hxt(r.invocation.pathTemplate,n,r.invocation),i={...t.defaultHeaders},a=[],s=[];for(let S of r.invocation.parameters){if(S.location==="path")continue;let x=vTe(n,S);if(x==null){if(S.required)throw new Error(`Missing required ${S.location} parameter ${S.name}`);continue}let A=sw(S,x);if(A.kind==="query"){a.push(...A.entries);continue}if(A.kind==="header"){i[S.name]=A.value;continue}A.kind==="cookie"&&s.push(...A.pairs.map(I=>`${I.name}=${encodeURIComponent(I.value)}`))}let c;if(r.invocation.requestBody){let S=n.body??n.input;if(S!==void 0){let x=_F({requestBody:r.invocation.requestBody,body:t_({body:S,bodyValues:e.auth.bodyValues,label:`${r.method.toUpperCase()} ${r.path}`})});i["content-type"]=x.contentType,c=x.body}}let p=Xxt(Qxt({endpoint:e.source.endpoint,providerData:r}),o),d=yu({url:p,queryParams:e.auth.queryParams}),f=dF(d,a),m=Tc({headers:{...i,...e.auth.headers},cookies:{...e.auth.cookies}});if(s.length>0){let S=m.cookie;m.cookie=S?`${S}; ${s.join("; ")}`:s.join("; ")}let y=await fetch(f.toString(),{method:r.method.toUpperCase(),headers:m,...c!==void 0?{body:typeof c=="string"?c:new Uint8Array(c).buffer}:{}}),g=await Wxt(y);return{data:y.ok?g:null,error:y.ok?null:g,headers:Zxt(y),status:y.status}},catch:t=>t instanceof Error?t:new Error(String(t))})};var xTe=[bTe,V1e,dge,fce];import*as Xl from"effect/Effect";import*as TTe from"effect/Schema";var oQ=TTe.Struct({}),lw=1,eEt=(e,t)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&t.some(r=>Object.prototype.hasOwnProperty.call(e,r)),ETe=e=>Xl.gen(function*(){return eEt(e.binding,["specUrl","defaultHeaders","transport","queryParams","headers"])?yield*Ne("sources/source-adapters/internal","internal sources cannot define HTTP source settings"):yield*$p({sourceId:e.id,label:"internal",version:e.bindingVersion,expectedVersion:lw,schema:oQ,value:e.binding,allowedKeys:[]})}),DTe={key:"internal",displayName:"Internal",catalogKind:"internal",connectStrategy:"none",credentialStrategy:"none",bindingConfigVersion:lw,providerKey:"generic_internal",defaultImportAuthPolicy:"none",connectPayloadSchema:null,executorAddInputSchema:null,executorAddHelpText:null,executorAddInputSignatureWidth:null,localConfigBindingSchema:null,localConfigBindingFromSource:()=>null,serializeBindingConfig:e=>Rp({adapterKey:e.kind,version:lw,payloadSchema:oQ,payload:Xl.runSync(ETe(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:t})=>Xl.map(Lp({sourceId:e,label:"internal",adapterKey:"internal",version:lw,payloadSchema:oQ,value:t}),({version:r,payload:n})=>({version:r,payload:n})),bindingStateFromSource:()=>Xl.succeed(Fp),sourceConfigFromSource:e=>({kind:"internal",endpoint:e.endpoint}),validateSource:e=>Xl.gen(function*(){return yield*ETe(e),{...e,bindingVersion:lw,binding:{}}}),shouldAutoProbe:()=>!1,syncCatalog:({source:e})=>Xl.succeed(Np({fragment:{version:"ir.v1.fragment"},importMetadata:{...ws({source:e,adapterKey:"internal"}),importerVersion:"ir.v1.internal",sourceConfigHash:"internal"},sourceHash:null})),invoke:()=>Xl.fail(Ne("sources/source-adapters/internal","Internal sources do not support persisted adapter invocation"))};var mF=[...xTe,DTe],Qc=Cse(mF),tEt=Qc.connectableSourceAdapters,QKt=Qc.connectPayloadSchema,iQ=Qc.executorAddableSourceAdapters,hF=Qc.executorAddInputSchema,rEt=Qc.localConfigurableSourceAdapters,hf=Qc.getSourceAdapter,_i=Qc.getSourceAdapterForSource,aQ=Qc.findSourceAdapterByProviderKey,Uh=Qc.sourceBindingStateFromSource,nEt=Qc.sourceAdapterCatalogKind,zh=Qc.sourceAdapterRequiresInteractiveConnect,SS=Qc.sourceAdapterUsesCredentialManagedAuth,oEt=Qc.isInternalSourceAdapter;import*as yf from"effect/Effect";var ATe=e=>`${e.providerId}:${e.handle}`,yF=(e,t,r)=>yf.gen(function*(){if(t.previous===null)return;let n=new Set((t.next===null?[]:UT(t.next)).map(ATe)),o=UT(t.previous).filter(i=>!n.has(ATe(i)));yield*yf.forEach(o,i=>yf.either(r(i)),{discard:!0})}),gF=e=>new Set(e.flatMap(t=>t?[qp(t)]:[]).flatMap(t=>t?[t.grantId]:[])),sQ=e=>{let t=e.authArtifacts.filter(r=>r.slot===e.slot);if(e.actorScopeId!==void 0){let r=t.find(n=>n.actorScopeId===e.actorScopeId);if(r)return r}return t.find(r=>r.actorScopeId===null)??null},cQ=e=>e.authArtifacts.find(t=>t.slot===e.slot&&t.actorScopeId===(e.actorScopeId??null))??null,wTe=(e,t,r)=>yf.gen(function*(){let n=yield*e.authArtifacts.listByScopeAndSourceId({scopeId:t.scopeId,sourceId:t.sourceId});return yield*e.authArtifacts.removeByScopeAndSourceId({scopeId:t.scopeId,sourceId:t.sourceId}),yield*yf.forEach(n,o=>w_(e,{authArtifactId:o.id},r),{discard:!0}),yield*yf.forEach(n,o=>yF(e,{previous:o,next:null},r),{discard:!0}),n.length});var lQ="config:",uQ=e=>`${lQ}${e}`,uw=e=>e.startsWith(lQ)?e.slice(lQ.length):null;var iEt=/[^a-z0-9]+/g,ITe=e=>e.trim().toLowerCase().replace(iEt,"-").replace(/^-+/,"").replace(/-+$/,"");var Yl=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},SF=e=>JSON.parse(JSON.stringify(e)),kTe=(e,t)=>{let r=Yl(e.namespace)??Yl(e.name)??"source",n=ITe(r)||"source",o=n,i=2;for(;t.has(o);)o=`${n}-${i}`,i+=1;return Mn.make(o)},aEt=e=>{let t=Yl(e?.secrets?.defaults?.env);return t!==null&&e?.secrets?.providers?.[t]?t:e?.secrets?.providers?.default?"default":null},CTe=e=>{if(e.auth===void 0)return e.existing??{kind:"none"};if(typeof e.auth=="string"){let t=aEt(e.config);return{kind:"bearer",headerName:"Authorization",prefix:"Bearer ",token:{providerId:t?uQ(t):"env",handle:e.auth}}}if(typeof e.auth=="object"&&e.auth!==null){let t=e.auth,r=Yl(t.provider),n=r?r==="params"?"params":uQ(r):t.source==="env"?"env":t.source==="params"?"params":null,o=Yl(t.id);if(n&&o)return{kind:"bearer",headerName:"Authorization",prefix:"Bearer ",token:{providerId:n,handle:o}}}return e.existing??{kind:"none"}},sEt=e=>{if(e.source.auth.kind!=="bearer")return e.existingConfigAuth;if(e.source.auth.token.providerId==="env")return e.source.auth.token.handle;if(e.source.auth.token.providerId==="params")return{source:"params",provider:"params",id:e.source.auth.token.handle};let t=uw(e.source.auth.token.providerId);if(t!==null){let r=e.config?.secrets?.providers?.[t];if(r)return{source:r.source,provider:t,id:e.source.auth.token.handle}}return e.existingConfigAuth},PTe=e=>{let t=sEt({source:e.source,existingConfigAuth:e.existingConfigAuth,config:e.config}),r={...Yl(e.source.name)!==Yl(e.source.id)?{name:e.source.name}:{},...Yl(e.source.namespace)!==Yl(e.source.id)?{namespace:e.source.namespace??void 0}:{},...e.source.enabled===!1?{enabled:!1}:{},connection:{endpoint:e.source.endpoint,...t!==void 0?{auth:t}:{}}},n=_i(e.source);if(n.localConfigBindingSchema===null)throw new r3({message:`Unsupported source kind for local config: ${e.source.kind}`,kind:e.source.kind});return{kind:e.source.kind,...r,binding:SF(n.localConfigBindingFromSource(e.source))}};var pQ=e=>Mi.gen(function*(){let t=e.loadedConfig.config?.sources?.[e.sourceId];if(!t)return yield*new VT({message:`Configured source not found for id ${e.sourceId}`,sourceId:e.sourceId});let r=e.scopeState.sources[e.sourceId],n=hf(t.kind),o=yield*n.validateSource({id:Mn.make(e.sourceId),scopeId:e.scopeId,name:Yl(t.name)??e.sourceId,kind:t.kind,endpoint:t.connection.endpoint.trim(),status:r?.status??(t.enabled??!0?"connected":"draft"),enabled:t.enabled??!0,namespace:Yl(t.namespace)??e.sourceId,bindingVersion:n.bindingConfigVersion,binding:t.binding,importAuthPolicy:n.defaultImportAuthPolicy,importAuth:{kind:"none"},auth:CTe({auth:t.connection.auth,config:e.loadedConfig.config,existing:null}),sourceHash:r?.sourceHash??null,lastError:r?.lastError??null,createdAt:r?.createdAt??Date.now(),updatedAt:r?.updatedAt??Date.now()}),i=sQ({authArtifacts:e.authArtifacts.filter(c=>c.sourceId===o.id),actorScopeId:e.actorScopeId,slot:"runtime"}),a=sQ({authArtifacts:e.authArtifacts.filter(c=>c.sourceId===o.id),actorScopeId:e.actorScopeId,slot:"import"});return{source:{...o,auth:i===null?o.auth:W6(i),importAuth:o.importAuthPolicy==="separate"?a===null?o.importAuth:W6(a):{kind:"none"}},sourceId:e.sourceId}}),vF=(e,t,r={})=>Mi.gen(function*(){let n=yield*Ug(e,t),o=yield*e.executorState.authArtifacts.listByScopeId(t),i=yield*Mi.forEach(Object.keys(n.loadedConfig.config?.sources??{}),a=>Mi.map(pQ({scopeId:t,loadedConfig:n.loadedConfig,scopeState:n.scopeState,sourceId:Mn.make(a),actorScopeId:r.actorScopeId,authArtifacts:o}),({source:s})=>s));return yield*Mi.annotateCurrentSpan("executor.source.count",i.length),i}).pipe(Mi.withSpan("source.store.load_scope",{attributes:{"executor.scope.id":t}})),dQ=(e,t,r={})=>Mi.gen(function*(){let n=yield*Ug(e,t),o=yield*vF(e,t,r),i=yield*Mi.forEach(o,a=>Mi.map(e.sourceArtifactStore.read({sourceId:a.id}),s=>s===null?null:{source:a,snapshot:s.snapshot}));yield*e.sourceTypeDeclarationsRefresher.refreshWorkspaceInBackground({entries:i.filter(a=>a!==null)})}).pipe(Mi.withSpan("source.types.refresh_scope.schedule",{attributes:{"executor.scope.id":t}})),OTe=e=>e.enabled===!1||e.status==="auth_required"||e.status==="error"||e.status==="draft",NTe=(e,t,r={})=>Mi.gen(function*(){let[n,o,i]=yield*Mi.all([vF(e,t,{actorScopeId:r.actorScopeId}),e.executorState.authArtifacts.listByScopeId(t),e.executorState.secretMaterials.listAll().pipe(Mi.map(c=>new Set(c.map(p=>String(p.id)))))]),a=new Map(n.map(c=>[c.id,c.name])),s=new Map;for(let c of o)for(let p of UT(c)){if(!i.has(p.handle))continue;let d=s.get(p.handle)??[];d.some(f=>f.sourceId===c.sourceId)||(d.push({sourceId:c.sourceId,sourceName:a.get(c.sourceId)??c.sourceId}),s.set(p.handle,d))}return s}),bF=(e,t)=>Mi.gen(function*(){let r=yield*Ug(e,t.scopeId),n=yield*e.executorState.authArtifacts.listByScopeId(t.scopeId);return r.loadedConfig.config?.sources?.[t.sourceId]?(yield*pQ({scopeId:t.scopeId,loadedConfig:r.loadedConfig,scopeState:r.scopeState,sourceId:t.sourceId,actorScopeId:t.actorScopeId,authArtifacts:n})).source:yield*new VT({message:`Source not found: scopeId=${t.scopeId} sourceId=${t.sourceId}`,sourceId:t.sourceId})}).pipe(Mi.withSpan("source.store.load_by_id",{attributes:{"executor.scope.id":t.scopeId,"executor.source.id":t.sourceId}}));import*as Sf from"effect/Effect";import*as wd from"effect/Effect";import*as _Q from"effect/Option";var cEt=e=>qp(e),lEt=e=>cEt(e)?.grantId??null,fQ=(e,t)=>wd.map(e.authArtifacts.listByScopeId(t.scopeId),r=>r.filter(n=>{let o=lEt(n);return o!==null&&(t.grantId==null||o===t.grantId)})),FTe=(e,t)=>wd.gen(function*(){let r=yield*e.providerAuthGrants.getById(t.grantId);return _Q.isNone(r)||r.value.orphanedAt===null?!1:(yield*e.providerAuthGrants.upsert({...r.value,orphanedAt:null,updatedAt:Date.now()}),!0)}),mQ=(e,t)=>wd.gen(function*(){if((yield*fQ(e,t)).length>0)return!1;let n=yield*e.providerAuthGrants.getById(t.grantId);if(_Q.isNone(n)||n.value.scopeId!==t.scopeId)return!1;let o=n.value;return o.orphanedAt!==null?!1:(yield*e.providerAuthGrants.upsert({...o,orphanedAt:Date.now(),updatedAt:Date.now()}),!0)}),RTe=(e,t,r)=>wd.gen(function*(){yield*r(t.grant.refreshToken).pipe(wd.either,wd.ignore)});import*as np from"effect/Effect";var bn=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},LTe=e=>_i(e).sourceConfigFromSource(e),uEt=e=>_i(e).catalogKind,pEt=e=>_i(e).key,dEt=e=>_i(e).providerKey,$Te=e=>Dc(e).slice(0,24),_Et=e=>JSON.stringify({catalogKind:uEt(e),adapterKey:pEt(e),providerKey:dEt(e),sourceConfig:LTe(e)}),MTe=e=>JSON.stringify(LTe(e)),EF=e=>Rc.make(`src_catalog_${$Te(_Et(e))}`),hQ=e=>bm.make(`src_catalog_rev_${$Te(MTe(e))}`),xF=e=>np.gen(function*(){if(e===void 0||e.kind==="none")return{kind:"none"};if(e.kind==="bearer"){let a=bn(e.headerName)??"Authorization",s=e.prefix??"Bearer ",c=bn(e.token.providerId),p=bn(e.token.handle);return c===null||p===null?yield*Ne("sources/source-definitions","Bearer auth requires a token secret ref"):{kind:"bearer",headerName:a,prefix:s,token:{providerId:c,handle:p}}}if(e.kind==="oauth2_authorized_user"){let a=bn(e.headerName)??"Authorization",s=e.prefix??"Bearer ",c=bn(e.refreshToken.providerId),p=bn(e.refreshToken.handle);if(c===null||p===null)return yield*Ne("sources/source-definitions","OAuth2 authorized-user auth requires a refresh token secret ref");let d=null;if(e.clientSecret!==null){let y=bn(e.clientSecret.providerId),g=bn(e.clientSecret.handle);if(y===null||g===null)return yield*Ne("sources/source-definitions","OAuth2 authorized-user client secret ref must include providerId and handle");d={providerId:y,handle:g}}let f=bn(e.tokenEndpoint),m=bn(e.clientId);return f===null||m===null?yield*Ne("sources/source-definitions","OAuth2 authorized-user auth requires tokenEndpoint and clientId"):{kind:"oauth2_authorized_user",headerName:a,prefix:s,tokenEndpoint:f,clientId:m,clientAuthentication:e.clientAuthentication,clientSecret:d,refreshToken:{providerId:c,handle:p},grantSet:e.grantSet??null}}if(e.kind==="provider_grant_ref"){let a=bn(e.headerName)??"Authorization",s=e.prefix??"Bearer ",c=bn(e.grantId);return c===null?yield*Ne("sources/source-definitions","Provider grant auth requires a grantId"):{kind:"provider_grant_ref",grantId:jp.make(c),providerKey:bn(e.providerKey)??"",requiredScopes:e.requiredScopes.map(p=>p.trim()).filter(p=>p.length>0),headerName:a,prefix:s}}if(e.kind==="mcp_oauth"){let a=bn(e.redirectUri),s=bn(e.accessToken.providerId),c=bn(e.accessToken.handle);if(a===null||s===null||c===null)return yield*Ne("sources/source-definitions","MCP OAuth auth requires redirectUri and access token secret ref");let p=null;if(e.refreshToken!==null){let f=bn(e.refreshToken.providerId),m=bn(e.refreshToken.handle);if(f===null||m===null)return yield*Ne("sources/source-definitions","MCP OAuth refresh token ref must include providerId and handle");p={providerId:f,handle:m}}let d=bn(e.tokenType)??"Bearer";return{kind:"mcp_oauth",redirectUri:a,accessToken:{providerId:s,handle:c},refreshToken:p,tokenType:d,expiresIn:e.expiresIn??null,scope:bn(e.scope),resourceMetadataUrl:bn(e.resourceMetadataUrl),authorizationServerUrl:bn(e.authorizationServerUrl),resourceMetadataJson:bn(e.resourceMetadataJson),authorizationServerMetadataJson:bn(e.authorizationServerMetadataJson),clientInformationJson:bn(e.clientInformationJson)}}let t=bn(e.headerName)??"Authorization",r=e.prefix??"Bearer ",n=bn(e.accessToken.providerId),o=bn(e.accessToken.handle);if(n===null||o===null)return yield*Ne("sources/source-definitions","OAuth2 auth requires an access token secret ref");let i=null;if(e.refreshToken!==null){let a=bn(e.refreshToken.providerId),s=bn(e.refreshToken.handle);if(a===null||s===null)return yield*Ne("sources/source-definitions","OAuth2 refresh token ref must include providerId and handle");i={providerId:a,handle:s}}return{kind:"oauth2",headerName:t,prefix:r,accessToken:{providerId:n,handle:o},refreshToken:i}}),jTe=(e,t)=>t??hf(e).defaultImportAuthPolicy,fEt=e=>np.gen(function*(){return e.importAuthPolicy!=="separate"&&e.importAuth.kind!=="none"?yield*Ne("sources/source-definitions","importAuth must be none unless importAuthPolicy is separate"):e}),BTe=e=>np.flatMap(fEt(e),t=>np.map(_i(t).validateSource(t),r=>r)),vS=e=>np.gen(function*(){let t=yield*xF(e.payload.auth),r=yield*xF(e.payload.importAuth),n=jTe(e.payload.kind,e.payload.importAuthPolicy);return yield*BTe({id:e.sourceId,scopeId:e.scopeId,name:e.payload.name.trim(),kind:e.payload.kind,endpoint:e.payload.endpoint.trim(),status:e.payload.status??"draft",enabled:e.payload.enabled??!0,namespace:bn(e.payload.namespace),bindingVersion:hf(e.payload.kind).bindingConfigVersion,binding:e.payload.binding??{},importAuthPolicy:n,importAuth:r,auth:t,sourceHash:bn(e.payload.sourceHash),lastError:bn(e.payload.lastError),createdAt:e.now,updatedAt:e.now})}),gf=e=>np.gen(function*(){let t=e.payload.auth===void 0?e.source.auth:yield*xF(e.payload.auth),r=e.payload.importAuth===void 0?e.source.importAuth:yield*xF(e.payload.importAuth),n=jTe(e.source.kind,e.payload.importAuthPolicy??e.source.importAuthPolicy);return yield*BTe({...e.source,name:e.payload.name!==void 0?e.payload.name.trim():e.source.name,endpoint:e.payload.endpoint!==void 0?e.payload.endpoint.trim():e.source.endpoint,status:e.payload.status??e.source.status,enabled:e.payload.enabled??e.source.enabled,namespace:e.payload.namespace!==void 0?bn(e.payload.namespace):e.source.namespace,bindingVersion:e.payload.binding!==void 0?hf(e.source.kind).bindingConfigVersion:e.source.bindingVersion,binding:e.payload.binding!==void 0?e.payload.binding:e.source.binding,importAuthPolicy:n,importAuth:r,auth:t,sourceHash:e.payload.sourceHash!==void 0?bn(e.payload.sourceHash):e.source.sourceHash,lastError:e.payload.lastError!==void 0?bn(e.payload.lastError):e.source.lastError,updatedAt:e.now})});var qTe=e=>({id:e.catalogRevisionId??hQ(e.source),catalogId:e.catalogId,revisionNumber:e.revisionNumber,sourceConfigJson:MTe(e.source),importMetadataJson:e.importMetadataJson??null,importMetadataHash:e.importMetadataHash??null,snapshotHash:e.snapshotHash??null,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}),UTe=e=>({sourceRecord:{id:e.source.id,scopeId:e.source.scopeId,catalogId:e.catalogId,catalogRevisionId:e.catalogRevisionId,name:e.source.name,kind:e.source.kind,endpoint:e.source.endpoint,status:e.source.status,enabled:e.source.enabled,namespace:e.source.namespace,importAuthPolicy:e.source.importAuthPolicy,bindingConfigJson:_i(e.source).serializeBindingConfig(e.source),sourceHash:e.source.sourceHash,lastError:e.source.lastError,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt},runtimeAuthArtifact:qT({source:e.source,auth:e.source.auth,slot:"runtime",actorScopeId:e.actorScopeId,existingAuthArtifactId:e.existingRuntimeAuthArtifactId??og.make(`auth_art_${crypto.randomUUID()}`)}),importAuthArtifact:e.source.importAuthPolicy==="separate"?qT({source:e.source,auth:e.source.importAuth,slot:"import",actorScopeId:e.actorScopeId,existingAuthArtifactId:e.existingImportAuthArtifactId??og.make(`auth_art_${crypto.randomUUID()}`)}):null});var zTe=(e,t,r)=>Sf.gen(function*(){let n=yield*Ug(e,t.scopeId);if(!n.loadedConfig.config?.sources?.[t.sourceId])return!1;let o=SF(n.loadedConfig.projectConfig??{}),i={...o.sources};delete i[t.sourceId],yield*n.scopeConfigStore.writeProject({config:{...o,sources:i}});let{[t.sourceId]:a,...s}=n.scopeState.sources,c={...n.scopeState,sources:s};yield*n.scopeStateStore.write({state:c}),yield*n.sourceArtifactStore.remove({sourceId:t.sourceId});let p=yield*e.executorState.authArtifacts.listByScopeAndSourceId({scopeId:t.scopeId,sourceId:t.sourceId}),d=gF(p);return yield*e.executorState.sourceAuthSessions.removeByScopeAndSourceId(t.scopeId,t.sourceId),yield*e.executorState.sourceOauthClients.removeByScopeAndSourceId({scopeId:t.scopeId,sourceId:t.sourceId}),yield*wTe(e.executorState,t,r),yield*Sf.forEach([...d],f=>mQ(e.executorState,{scopeId:t.scopeId,grantId:f}),{discard:!0}),yield*dQ(e,t.scopeId),!0}),VTe=(e,t,r={},n)=>Sf.gen(function*(){let o=yield*Ug(e,t.scopeId),i={...t,id:o.loadedConfig.config?.sources?.[t.id]||o.scopeState.sources[t.id]?t.id:kTe(t,new Set(Object.keys(o.loadedConfig.config?.sources??{})))},a=yield*e.executorState.authArtifacts.listByScopeAndSourceId({scopeId:i.scopeId,sourceId:i.id}),s=cQ({authArtifacts:a,actorScopeId:r.actorScopeId,slot:"runtime"}),c=cQ({authArtifacts:a,actorScopeId:r.actorScopeId,slot:"import"}),p=SF(o.loadedConfig.projectConfig??{}),d={...p.sources},f=d[i.id];d[i.id]=PTe({source:i,existingConfigAuth:f?.connection.auth,config:o.loadedConfig.config}),yield*o.scopeConfigStore.writeProject({config:{...p,sources:d}});let{runtimeAuthArtifact:m,importAuthArtifact:y}=UTe({source:i,catalogId:EF(i),catalogRevisionId:hQ(i),actorScopeId:r.actorScopeId,existingRuntimeAuthArtifactId:s?.id??null,existingImportAuthArtifactId:c?.id??null});m===null?(s!==null&&(yield*w_(e.executorState,{authArtifactId:s.id},n)),yield*e.executorState.authArtifacts.removeByScopeSourceAndActor({scopeId:i.scopeId,sourceId:i.id,actorScopeId:r.actorScopeId??null,slot:"runtime"})):(yield*e.executorState.authArtifacts.upsert(m),s!==null&&s.id!==m.id&&(yield*w_(e.executorState,{authArtifactId:s.id},n))),yield*yF(e.executorState,{previous:s??null,next:m},n),y===null?(c!==null&&(yield*w_(e.executorState,{authArtifactId:c.id},n)),yield*e.executorState.authArtifacts.removeByScopeSourceAndActor({scopeId:i.scopeId,sourceId:i.id,actorScopeId:r.actorScopeId??null,slot:"import"})):(yield*e.executorState.authArtifacts.upsert(y),c!==null&&c.id!==y.id&&(yield*w_(e.executorState,{authArtifactId:c.id},n))),yield*yF(e.executorState,{previous:c??null,next:y},n);let g=gF([s,c]),S=gF([m,y]);yield*Sf.forEach([...S],I=>FTe(e.executorState,{grantId:I}),{discard:!0}),yield*Sf.forEach([...g].filter(I=>!S.has(I)),I=>mQ(e.executorState,{scopeId:i.scopeId,grantId:I}),{discard:!0});let x=o.scopeState.sources[i.id],A={...o.scopeState,sources:{...o.scopeState.sources,[i.id]:{status:i.status,lastError:i.lastError,sourceHash:i.sourceHash,createdAt:x?.createdAt??i.createdAt,updatedAt:i.updatedAt}}};return yield*o.scopeStateStore.write({state:A}),OTe(i)&&(yield*dQ(e,i.scopeId,r)),yield*bF(e,{scopeId:i.scopeId,sourceId:i.id,actorScopeId:r.actorScopeId})}).pipe(Sf.withSpan("source.store.persist",{attributes:{"executor.scope.id":t.scopeId,"executor.source.id":t.id,"executor.source.kind":t.kind,"executor.source.status":t.status}}));var Qo=class extends JTe.Tag("#runtime/RuntimeSourceStoreService")(){},GTe=KTe.effect(Qo,yQ.gen(function*(){let e=yield*Wn,t=yield*Rs,r=yield*Kc,n=yield*$a,o=yield*Ma,i=yield*md,a=yield*as,s={executorState:e,runtimeLocalScope:t,scopeConfigStore:r,scopeStateStore:n,sourceArtifactStore:o,sourceTypeDeclarationsRefresher:i};return Qo.of({loadSourcesInScope:(c,p={})=>vF(s,c,p),listLinkedSecretSourcesInScope:(c,p={})=>NTe(s,c,p),loadSourceById:c=>bF(s,c),removeSourceById:c=>zTe(s,c,a),persistSource:(c,p={})=>VTe(s,c,p,a)})}));var eDe=e=>({descriptor:e.tool.descriptor,namespace:e.tool.searchNamespace,searchText:e.tool.searchText,score:e.score}),mEt=e=>{let[t,r]=e.split(".");return r?`${t}.${r}`:t},hEt=e=>e.path,yEt=e=>({path:e.path,searchNamespace:e.searchNamespace,searchText:e.searchText,source:e.source,sourceRecord:e.sourceRecord,capabilityId:e.capabilityId,executableId:e.executableId,capability:e.capability,executable:e.executable,descriptor:e.descriptor,projectedCatalog:e.projectedCatalog}),gEt=e=>e==null?null:JSON.stringify(e,null,2),SEt=(e,t)=>e.toolDescriptors[t.id]?.toolPath.join(".")??"",vEt=(e,t)=>{let r=t.preferredExecutableId!==void 0?e.executables[t.preferredExecutableId]:void 0;if(r)return r;let n=t.executableIds.map(o=>e.executables[o]).find(o=>o!==void 0);if(!n)throw new Error(`Capability ${t.id} has no executable`);return n},ib=(e,t)=>{if(!t)return;let r=e.symbols[t];return r?.kind==="shape"?r:void 0},TF=(e,t)=>{let r={},n=new Set,o=new Set,i=new Set,a=new Map,s=new Set,c=E=>{let C=E.trim();if(C.length===0)return null;let F=C.replace(/[^A-Za-z0-9_]+/g,"_").replace(/_+/g,"_").replace(/^_+|_+$/g,"");return F.length===0?null:/^[A-Za-z_]/.test(F)?F:`shape_${F}`},p=(E,C)=>{let F=ib(e,E);return[...C,F?.title,E].flatMap(O=>typeof O=="string"&&O.trim().length>0?[O]:[])},d=(E,C)=>{let F=a.get(E);if(F)return F;let O=p(E,C);for(let ge of O){let Te=c(ge);if(Te&&!s.has(Te))return a.set(E,Te),s.add(Te),Te}let $=c(E)??"shape",N=$,U=2;for(;s.has(N);)N=`${$}_${String(U)}`,U+=1;return a.set(E,N),s.add(N),N},f=(E,C,F)=>p(E,C)[0]??F,m=(E,C,F)=>{let O=ib(e,E);if(!O)return!0;if(C<0||F.has(E))return!1;let $=new Set(F);return $.add(E),xn.value(O.node).pipe(xn.when({type:"unknown"},()=>!0),xn.when({type:"const"},()=>!0),xn.when({type:"enum"},()=>!0),xn.when({type:"scalar"},()=>!0),xn.when({type:"ref"},N=>m(N.target,C,$)),xn.when({type:"nullable"},N=>m(N.itemShapeId,C-1,$)),xn.when({type:"array"},N=>m(N.itemShapeId,C-1,$)),xn.when({type:"object"},N=>{let U=Object.values(N.fields);return U.length<=8&&U.every(ge=>m(ge.shapeId,C-1,$))}),xn.orElse(()=>!1))},y=E=>m(E,2,new Set),g=(E,C=[])=>{if(n.has(E))return S(E,C);if(!ib(e,E))return{};n.add(E);try{return x(E,C)}finally{n.delete(E)}},S=(E,C=[])=>{let F=d(E,C);if(i.has(E)||o.has(E))return{$ref:`#/$defs/${F}`};let O=ib(e,E);o.add(E);let $=n.has(E);$||n.add(E);try{r[F]=O?x(E,C):{},i.add(E)}finally{o.delete(E),$||n.delete(E)}return{$ref:`#/$defs/${F}`}},x=(E,C=[])=>{let F=ib(e,E);if(!F)return{};let O=f(E,C,"shape"),$=N=>({...F.title?{title:F.title}:{},...F.docs?.description?{description:F.docs.description}:{},...N});return xn.value(F.node).pipe(xn.when({type:"unknown"},()=>$({})),xn.when({type:"const"},N=>$({const:N.value})),xn.when({type:"enum"},N=>$({enum:N.values})),xn.when({type:"scalar"},N=>$({type:N.scalar==="bytes"?"string":N.scalar,...N.scalar==="bytes"?{format:"binary"}:{},...N.format?{format:N.format}:{},...N.constraints})),xn.when({type:"ref"},N=>y(N.target)?g(N.target,C):S(N.target,C)),xn.when({type:"nullable"},N=>$({anyOf:[g(N.itemShapeId,C),{type:"null"}]})),xn.when({type:"allOf"},N=>$({allOf:N.items.map((U,ge)=>g(U,[`${O}_allOf_${String(ge+1)}`]))})),xn.when({type:"anyOf"},N=>$({anyOf:N.items.map((U,ge)=>g(U,[`${O}_anyOf_${String(ge+1)}`]))})),xn.when({type:"oneOf"},N=>$({oneOf:N.items.map((U,ge)=>g(U,[`${O}_option_${String(ge+1)}`])),...N.discriminator?{discriminator:{propertyName:N.discriminator.propertyName,...N.discriminator.mapping?{mapping:Object.fromEntries(Object.entries(N.discriminator.mapping).map(([U,ge])=>[U,S(ge,[U,`${O}_${U}`]).$ref]))}:{}}}:{}})),xn.when({type:"not"},N=>$({not:g(N.itemShapeId,[`${O}_not`])})),xn.when({type:"conditional"},N=>$({if:g(N.ifShapeId,[`${O}_if`]),...N.thenShapeId?{then:g(N.thenShapeId,[`${O}_then`])}:{},...N.elseShapeId?{else:g(N.elseShapeId,[`${O}_else`])}:{}})),xn.when({type:"array"},N=>$({type:"array",items:g(N.itemShapeId,[`${O}_item`]),...N.minItems!==void 0?{minItems:N.minItems}:{},...N.maxItems!==void 0?{maxItems:N.maxItems}:{}})),xn.when({type:"tuple"},N=>$({type:"array",prefixItems:N.itemShapeIds.map((U,ge)=>g(U,[`${O}_item_${String(ge+1)}`])),...N.additionalItems!==void 0?{items:typeof N.additionalItems=="boolean"?N.additionalItems:g(N.additionalItems,[`${O}_item_rest`])}:{}})),xn.when({type:"map"},N=>$({type:"object",additionalProperties:g(N.valueShapeId,[`${O}_value`])})),xn.when({type:"object"},N=>$({type:"object",properties:Object.fromEntries(Object.entries(N.fields).map(([U,ge])=>[U,{...g(ge.shapeId,[U]),...ge.docs?.description?{description:ge.docs.description}:{}}])),...N.required&&N.required.length>0?{required:N.required}:{},...N.additionalProperties!==void 0?{additionalProperties:typeof N.additionalProperties=="boolean"?N.additionalProperties:g(N.additionalProperties,[`${O}_additionalProperty`])}:{},...N.patternProperties?{patternProperties:Object.fromEntries(Object.entries(N.patternProperties).map(([U,ge])=>[U,g(ge,[`${O}_patternProperty`])]))}:{}})),xn.when({type:"graphqlInterface"},N=>$({type:"object",properties:Object.fromEntries(Object.entries(N.fields).map(([U,ge])=>[U,g(ge.shapeId,[U])]))})),xn.when({type:"graphqlUnion"},N=>$({oneOf:N.memberTypeIds.map((U,ge)=>g(U,[`${O}_member_${String(ge+1)}`]))})),xn.exhaustive)},A=(E,C=[])=>{let F=ib(e,E);return F?xn.value(F.node).pipe(xn.when({type:"ref"},O=>A(O.target,C)),xn.orElse(()=>g(E,C))):{}},I=A(t,["input"]);return Object.keys(r).length>0?{...I,$defs:r}:I},tDe=e=>KT({catalog:e.catalog,roots:o3(e)}),bEt=e=>{let t=e.projected.toolDescriptors[e.capability.id],r=t.toolPath.join("."),n=t.interaction.mayRequireApproval||t.interaction.mayElicit?"required":"auto",o=e.includeSchemas?TF(e.projected.catalog,t.callShapeId):void 0,a=e.includeSchemas&&t.resultShapeId?TF(e.projected.catalog,t.resultShapeId):void 0,s=e.includeTypePreviews?e.typeProjector.renderSelfContainedShape(t.callShapeId,{aliasHint:di(...t.toolPath,"call")}):void 0,c=e.includeTypePreviews&&t.resultShapeId?e.typeProjector.renderSelfContainedShape(t.resultShapeId,{aliasHint:di(...t.toolPath,"result")}):void 0;return{path:r,sourceKey:e.source.id,description:e.capability.surface.summary??e.capability.surface.description,interaction:n,contract:{inputTypePreview:s,...c!==void 0?{outputTypePreview:c}:{},...o!==void 0?{inputSchema:o}:{},...a!==void 0?{outputSchema:a}:{}},providerKind:e.executable.adapterKey,providerData:{capabilityId:e.capability.id,executableId:e.executable.id,adapterKey:e.executable.adapterKey,display:e.executable.display}}},rDe=e=>{let t=vEt(e.catalogEntry.projected.catalog,e.capability),r=e.catalogEntry.projected.toolDescriptors[e.capability.id],n=bEt({source:e.catalogEntry.source,projected:e.catalogEntry.projected,capability:e.capability,executable:t,typeProjector:e.catalogEntry.typeProjector,includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews}),o=hEt(n),i=e.catalogEntry.projected.searchDocs[e.capability.id],a=mEt(o),s=[o,a,e.catalogEntry.source.name,e.capability.surface.title,e.capability.surface.summary,e.capability.surface.description,n.contract?.inputTypePreview,n.contract?.outputTypePreview,...i?.tags??[],...i?.protocolHints??[],...i?.authHints??[]].filter(c=>typeof c=="string"&&c.length>0).join(" ").toLowerCase();return{path:o,searchNamespace:a,searchText:s,source:e.catalogEntry.source,sourceRecord:e.catalogEntry.sourceRecord,revision:e.catalogEntry.revision,capabilityId:e.capability.id,executableId:t.id,capability:e.capability,executable:t,projectedDescriptor:r,descriptor:n,projectedCatalog:e.catalogEntry.projected.catalog,typeProjector:e.catalogEntry.typeProjector}},nDe=e=>({id:e.source.id,scopeId:e.source.scopeId,catalogId:e.artifact.catalogId,catalogRevisionId:e.artifact.revision.id,name:e.source.name,kind:e.source.kind,endpoint:e.source.endpoint,status:e.source.status,enabled:e.source.enabled,namespace:e.source.namespace,importAuthPolicy:e.source.importAuthPolicy,bindingConfigJson:JSON.stringify(e.source.binding),sourceHash:e.source.sourceHash,lastError:e.source.lastError,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}),Vh=class extends XTe.Tag("#runtime/RuntimeSourceCatalogStoreService")(){},xEt=e=>e??null,EEt=e=>JSON.stringify([...e].sort((t,r)=>String(t.id).localeCompare(String(r.id)))),oDe=(e,t)=>Br.gen(function*(){if(e.runtimeLocalScope.installation.scopeId!==t)return yield*Br.fail(Ne("catalog/source/runtime",`Runtime local scope mismatch: expected ${t}, got ${e.runtimeLocalScope.installation.scopeId}`))}),iDe=e=>F6(e.artifact.snapshot),aDe=(e,t)=>Br.gen(function*(){return yield*oDe(e,t.scopeId),yield*e.sourceStore.loadSourcesInScope(t.scopeId,{actorScopeId:t.actorScopeId})}),HTe=(e,t)=>Br.map(aDe(e,t),r=>({scopeId:t.scopeId,actorScopeId:xEt(t.actorScopeId),sourceFingerprint:EEt(r)})),TEt=(e,t)=>Br.gen(function*(){return(yield*Br.forEach(t,n=>Br.gen(function*(){let o=yield*e.sourceArtifactStore.read({sourceId:n.id});if(o===null)return null;let i=iDe({source:n,artifact:o}),a=NT({catalog:i.catalog}),s=tDe(a);return{source:n,sourceRecord:nDe({source:n,artifact:o}),revision:o.revision,snapshot:i,catalog:i.catalog,projected:a,typeProjector:s,importMetadata:i.import}}))).filter(n=>n!==null)}),sDe=(e,t)=>Br.gen(function*(){let r=yield*aDe(e,t);return yield*TEt(e,r)}),cDe=(e,t)=>Br.gen(function*(){yield*oDe(e,t.scopeId);let r=yield*e.sourceStore.loadSourceById({scopeId:t.scopeId,sourceId:t.sourceId,actorScopeId:t.actorScopeId}),n=yield*e.sourceArtifactStore.read({sourceId:r.id});if(n===null)return yield*new t3({message:`Catalog artifact missing for source ${t.sourceId}`,sourceId:t.sourceId});let o=iDe({source:r,artifact:n}),i=NT({catalog:o.catalog}),a=tDe(i);return{source:r,sourceRecord:nDe({source:r,artifact:n}),revision:n.revision,snapshot:o,catalog:o.catalog,projected:i,typeProjector:a,importMetadata:o.import}}),DEt=e=>Br.gen(function*(){let t=yield*Rs,r=yield*Qo,n=yield*Ma;return yield*sDe({runtimeLocalScope:t,sourceStore:r,sourceArtifactStore:n},e)}),lDe=e=>Br.gen(function*(){let t=yield*Rs,r=yield*Qo,n=yield*Ma;return yield*cDe({runtimeLocalScope:t,sourceStore:r,sourceArtifactStore:n},e)}),SQ=e=>Br.succeed(e.catalogs.flatMap(t=>Object.values(t.catalog.capabilities).map(r=>rDe({catalogEntry:t,capability:r,includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews??!0})))),ZTe=e=>Br.tryPromise({try:async()=>{let t=KT({catalog:e.catalog,roots:[{shapeId:e.shapeId,aliasHint:e.aliasHint}]}),r=t.renderDeclarationShape(e.shapeId,{aliasHint:e.aliasHint}),n=t.supportingDeclarations(),o=`type ${e.aliasHint} =`;return n.some(a=>a.includes(o))?n.join(` -`)},catch:r=>r instanceof Error?r:new Error(String(r))}),cZt=e=>e===void 0?p_.succeed(null):p_.tryPromise({try:()=>y_e(e,"typescript"),catch:r=>r instanceof Error?r:new Error(String(r))}),lZt=e=>{let r=XCn(e);return r===null?p_.succeed(null):p_.tryPromise({try:()=>y_e(r,"json"),catch:i=>i instanceof Error?i:new Error(String(i))})},aDn=e=>e.length===0?"tool":`${e.slice(0,1).toLowerCase()}${e.slice(1)}`,sDn=e=>{let r=e.catalog.symbols[e.shapeId],i=r?.kind==="shape"?lpe({title:r.title,docs:r.docs,deprecated:r.deprecated,includeTitle:!0}):null,s=`type ${e.aliasHint} = ${e.body};`;return i?`${i} -${s}`:s},xZt=e=>{let r=c0(...e.projectedDescriptor.toolPath,"call"),i=c0(...e.projectedDescriptor.toolPath,"result"),s=e.projectedDescriptor.callShapeId,l=e.projectedDescriptor.resultShapeId??null,d=ppe(e.projectedCatalog,s),h=l?i:"unknown",S=aDn(c0(...e.projectedDescriptor.toolPath)),b=lpe({title:e.capability.surface.title,docs:{...e.capability.surface.summary?{summary:e.capability.surface.summary}:{},...e.capability.surface.description?{description:e.capability.surface.description}:{}},includeTitle:!0});return p_.gen(function*(){let[A,L,V,j,ie,te,X,Re]=yield*p_.all([cZt(e.descriptor.contract?.inputTypePreview),cZt(e.descriptor.contract?.outputTypePreview),sZt({catalog:e.projectedCatalog,shapeId:s,aliasHint:r}),l?sZt({catalog:e.projectedCatalog,shapeId:l,aliasHint:i}):p_.succeed(null),lZt(e.descriptor.contract?.inputSchema??AIe(e.projectedCatalog,s)),l?lZt(e.descriptor.contract?.outputSchema??AIe(e.projectedCatalog,l)):p_.succeed(null),p_.tryPromise({try:()=>y_e(`(${d?"args?":"args"}: ${r}) => Promise<${h}>`,"typescript"),catch:Je=>Je instanceof Error?Je:new Error(String(Je))}),p_.tryPromise({try:()=>y_e([...b?[b]:[],`declare function ${S}(${d?"args?":"args"}: ${r}): Promise<${h}>;`].join(` -`),"typescript-module"),catch:Je=>Je instanceof Error?Je:new Error(String(Je))})]);return{callSignature:X,callDeclaration:Re,callShapeId:s,resultShapeId:l,responseSetId:e.projectedDescriptor.responseSetId,input:{shapeId:s,typePreview:A,typeDeclaration:V,schemaJson:ie,exampleJson:null},output:{shapeId:l,typePreview:L,typeDeclaration:j,schemaJson:te,exampleJson:null}}})},Mat=e=>p_.succeed(e.catalogs.flatMap(r=>Object.values(r.catalog.capabilities).flatMap(i=>YCn(r.projected,i)===e.path?[fZt({catalogEntry:r,capability:i,includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews??!0})]:[])).at(0)??null);var cDn=e=>p_.gen(function*(){let r=yield*oDn({scopeId:e.scopeId,actorScopeId:e.actorScopeId}),i=yield*Mat({catalogs:r,path:e.path,includeSchemas:e.includeSchemas});return i?{path:i.path,searchNamespace:i.searchNamespace,searchText:i.searchText,source:i.source,sourceRecord:i.sourceRecord,capabilityId:i.capabilityId,executableId:i.executableId,capability:i.capability,executable:i.executable,descriptor:i.descriptor,projectedCatalog:i.projectedCatalog}:null}),TZt=pZt.effect(r$,p_.gen(function*(){let e=yield*q2,r=yield*uy,i=yield*ux,s={runtimeLocalScope:e,sourceStore:r,sourceArtifactStore:i},l=yield*Rat.make({capacity:32,timeToLive:"10 minutes",lookup:b=>vZt(s,{scopeId:b.scopeId,actorScopeId:b.actorScopeId})}),d=yield*Rat.make({capacity:32,timeToLive:"10 minutes",lookup:b=>p_.gen(function*(){let A=yield*l.get(b);return(yield*Lat({catalogs:A,includeSchemas:!1,includeTypePreviews:!1})).map(ZCn)})}),h=b=>p_.flatMap(aZt(s,b),A=>l.get(A)),S=b=>p_.flatMap(aZt(s,b),A=>d.get(A));return r$.of({loadWorkspaceSourceCatalogs:b=>h(b),loadSourceWithCatalog:b=>SZt(s,b),loadWorkspaceSourceCatalogToolIndex:b=>S({scopeId:b.scopeId,actorScopeId:b.actorScopeId}),loadWorkspaceSourceCatalogToolByPath:b=>b.includeSchemas?cDn(b).pipe(p_.provideService(q2,e),p_.provideService(uy,r),p_.provideService(ux,i)):p_.map(S({scopeId:b.scopeId,actorScopeId:b.actorScopeId}),A=>A.find(L=>L.path===b.path)??null)})}));import*as n$ from"effect/Effect";import*as EZt from"effect/Context";import*as h9 from"effect/Effect";import*as kZt from"effect/Layer";var lDn=e=>e.enabled&&e.status==="connected"&&l0(e).catalogKind!=="internal",SI=class extends EZt.Tag("#runtime/RuntimeSourceCatalogSyncService")(){},CZt=(e,r)=>h9.gen(function*(){if(e.runtimeLocalScope.installation.scopeId!==r)return yield*h9.fail(_a("catalog/source/sync",`Runtime local scope mismatch: expected ${r}, got ${e.runtimeLocalScope.installation.scopeId}`))}),uDn=(e,r)=>h9.gen(function*(){if(yield*CZt(e,r.source.scopeId),!lDn(r.source)){let b=yield*e.scopeStateStore.load(),A=b.sources[r.source.id],L={...b,sources:{...b.sources,[r.source.id]:{status:r.source.enabled?r.source.status:"draft",lastError:null,sourceHash:r.source.sourceHash,createdAt:A?.createdAt??r.source.createdAt,updatedAt:Date.now()}}};yield*e.scopeStateStore.write({state:L}),yield*e.sourceTypeDeclarationsRefresher.refreshSourceInBackground({source:r.source,snapshot:null});return}let s=yield*l0(r.source).syncCatalog({source:r.source,resolveSecretMaterial:e.resolveSecretMaterial,resolveAuthMaterialForSlot:b=>e.sourceAuthMaterialService.resolve({source:r.source,slot:b,actorScopeId:r.actorScopeId})}),l=Yue(s);yield*e.sourceArtifactStore.write({sourceId:r.source.id,artifact:e.sourceArtifactStore.build({source:r.source,syncResult:s})});let d=yield*e.scopeStateStore.load(),h=d.sources[r.source.id],S={...d,sources:{...d.sources,[r.source.id]:{status:"connected",lastError:null,sourceHash:s.sourceHash,createdAt:h?.createdAt??r.source.createdAt,updatedAt:Date.now()}}};yield*e.scopeStateStore.write({state:S}),yield*e.sourceTypeDeclarationsRefresher.refreshSourceInBackground({source:r.source,snapshot:l})}).pipe(h9.withSpan("source.catalog.sync",{attributes:{"executor.source.id":r.source.id,"executor.source.kind":r.source.kind,"executor.source.namespace":r.source.namespace,"executor.source.endpoint":r.source.endpoint}})),pDn=(e,r)=>h9.gen(function*(){yield*CZt(e,r.source.scopeId);let i=GKe({source:r.source,endpoint:r.source.endpoint,manifest:r.manifest}),s=Yue(i);yield*e.sourceArtifactStore.write({sourceId:r.source.id,artifact:e.sourceArtifactStore.build({source:r.source,syncResult:i})}),yield*e.sourceTypeDeclarationsRefresher.refreshSourceInBackground({source:r.source,snapshot:s})});var DZt=kZt.effect(SI,h9.gen(function*(){let e=yield*q2,r=yield*lx,i=yield*ux,s=yield*k8,l=yield*Xw,d=yield*qj,h={runtimeLocalScope:e,scopeStateStore:r,sourceArtifactStore:i,sourceTypeDeclarationsRefresher:s,resolveSecretMaterial:l,sourceAuthMaterialService:d};return SI.of({sync:S=>uDn(h,S),persistMcpCatalogSnapshotFromManifest:S=>pDn(h,S)})}));var _Dn=e=>e.enabled&&e.status==="connected"&&l0(e).catalogKind!=="internal",AZt=e=>n$.gen(function*(){let r=yield*q2,i=yield*uy,s=yield*ux,l=yield*SI,d=yield*i.loadSourcesInScope(e.scopeId,{actorScopeId:e.actorScopeId});for(let h of d)!_Dn(h)||(yield*s.read({sourceId:h.id}))!==null||(yield*l.sync({source:h,actorScopeId:e.actorScopeId}).pipe(n$.catchAll(()=>n$.void)))}).pipe(n$.withSpan("source.catalog.reconcile_missing",{attributes:{"executor.scope.id":e.scopeId}}));import*as wZt from"effect/Context";import*as i$ from"effect/Deferred";import*as ob from"effect/Effect";import*as IZt from"effect/Layer";var dDn=()=>({stateWaiters:[],currentInteraction:null}),jat=e=>e===void 0?null:JSON.stringify(e),fDn=new Set(["tokenRef","tokenSecretMaterialId"]),Bat=e=>{if(Array.isArray(e))return e.map(Bat);if(!e||typeof e!="object")return e;let r=Object.entries(e).filter(([i])=>!fDn.has(i)).map(([i,s])=>[i,Bat(s)]);return Object.fromEntries(r)},wfe=e=>{if(e.content===void 0)return e;let r=Bat(e.content);return{...e,content:r}},mDn=e=>{let r=e.context?.interactionPurpose;return typeof r=="string"&&r.length>0?r:e.path==="executor.sources.add"?e.elicitation.mode==="url"?"source_connect_oauth2":"source_connect_secret":"elicitation"},$at=()=>{let e=new Map,r=l=>{let d=e.get(l);if(d)return d;let h=dDn();return e.set(l,h),h},i=l=>ob.gen(function*(){let d=r(l.executionId),h=[...d.stateWaiters];d.stateWaiters=[],yield*ob.forEach(h,S=>i$.succeed(S,l.state),{discard:!0})});return{publishState:i,registerStateWaiter:l=>ob.gen(function*(){let d=yield*i$.make();return r(l).stateWaiters.push(d),d}),createOnElicitation:({executorState:l,executionId:d})=>h=>ob.gen(function*(){let S=r(d),b=yield*i$.make(),A=Date.now(),L={id:L2.make(`${d}:${h.interactionId}`),executionId:d,status:"pending",kind:h.elicitation.mode==="url"?"url":"form",purpose:mDn(h),payloadJson:jat({path:h.path,sourceKey:h.sourceKey,args:h.args,context:h.context,elicitation:h.elicitation})??"{}",responseJson:null,responsePrivateJson:null,createdAt:A,updatedAt:A};return yield*l.executionInteractions.insert(L),yield*l.executions.update(d,{status:"waiting_for_interaction",updatedAt:A}),S.currentInteraction={interactionId:L.id,response:b},yield*ob.gen(function*(){yield*i({executionId:d,state:"waiting_for_interaction"});let V=yield*i$.await(b),j=Date.now();return yield*l.executionInteractions.update(L.id,{status:V.action==="cancel"?"cancelled":"resolved",responseJson:jat(wfe(V)),responsePrivateJson:jat(V),updatedAt:j}),yield*l.executions.update(d,{status:"running",updatedAt:j}),yield*i({executionId:d,state:"running"}),V}).pipe(ob.ensuring(ob.sync(()=>{S.currentInteraction?.interactionId===L.id&&(S.currentInteraction=null)})))}),resolveInteraction:({executionId:l,response:d})=>ob.gen(function*(){let S=e.get(l)?.currentInteraction;return S?(yield*i$.succeed(S.response,d),!0):!1}),finishRun:({executionId:l,state:d})=>i({executionId:l,state:d}).pipe(ob.zipRight(G2e(l)),ob.ensuring(ob.sync(()=>{e.delete(l)}))),clearRun:l=>G2e(l).pipe(ob.ensuring(ob.sync(()=>{e.delete(l)})))}},BD=class extends wZt.Tag("#runtime/LiveExecutionManagerService")(){},aei=IZt.sync(BD,$at);import*as dYt from"effect/Context";import*as Nst from"effect/Effect";import*as KIe from"effect/Layer";import{spawnSync as vDn}from"node:child_process";import{fileURLToPath as SDn}from"node:url";import*as $D from"effect/Effect";import{spawn as hDn}from"node:child_process";var gDn=e=>e instanceof Error?e:new Error(String(e)),yDn=e=>{if(!e)return["--deny-net","--deny-read","--deny-write","--deny-env","--deny-run","--deny-ffi"];let r=[],i=(s,l)=>{l===!0?r.push(`--allow-${s}`):Array.isArray(l)&&l.length>0?r.push(`--allow-${s}=${l.join(",")}`):r.push(`--deny-${s}`)};return i("net",e.allowNet),i("read",e.allowRead),i("write",e.allowWrite),i("env",e.allowEnv),i("run",e.allowRun),i("ffi",e.allowFfi),r},PZt=(e,r)=>{let i=yDn(e.permissions),s=hDn(e.executable,["run","--quiet","--no-prompt","--no-check",...i,e.scriptPath],{stdio:["pipe","pipe","pipe"]});if(!s.stdin||!s.stdout||!s.stderr)throw new Error("Failed to create piped stdio for Deno worker subprocess");s.stdout.setEncoding("utf8"),s.stderr.setEncoding("utf8");let l="",d=V=>{for(l+=V;;){let j=l.indexOf(` -`);if(j===-1)break;let ie=l.slice(0,j);l=l.slice(j+1),r.onStdoutLine(ie)}},h=V=>{r.onStderr(V)},S=V=>{r.onError(gDn(V))},b=(V,j)=>{r.onExit(V,j)};s.stdout.on("data",d),s.stderr.on("data",h),s.on("error",S),s.on("exit",b);let A=!1,L=()=>{A||(A=!0,s.stdout.removeListener("data",d),s.stderr.removeListener("data",h),s.removeListener("error",S),s.removeListener("exit",b),s.killed||s.kill("SIGKILL"))};return{stdin:s.stdin,dispose:L}};var NZt="@@executor-ipc@@",bDn=5*6e4,xDn=()=>{let e=process.env.DENO_BIN?.trim();if(e)return e;let r=process.env.HOME?.trim();if(r){let i=`${r}/.deno/bin/deno`,s=vDn(i,["--version"],{stdio:"ignore",timeout:5e3});if(s.error===void 0&&s.status===0)return i}return"deno"},OZt=(e,r)=>(typeof e=="object"&&e!==null&&"code"in e?String(e.code):null)==="ENOENT"?`Failed to spawn Deno subprocess: Deno executable "${r}" was not found. Install Deno or set DENO_BIN.`:`Failed to spawn Deno subprocess: ${e instanceof Error?e.message:String(e)}`,TDn=()=>{let e=String(import.meta.url);if(e.startsWith("/"))return e;try{let r=new URL("./deno-subprocess-worker.mjs",e);return r.protocol==="file:"?SDn(r):r.pathname.length>0?r.pathname:r.toString()}catch{return e}},Uat,EDn=()=>(Uat||(Uat=TDn()),Uat),zat=(e,r)=>{e.write(`${JSON.stringify(r)} -`)},kDn=e=>typeof e=="object"&&e!==null&&"type"in e&&typeof e.type=="string",CDn=(e,r,i)=>$D.gen(function*(){let s=i.denoExecutable??xDn(),l=Math.max(100,i.timeoutMs??bDn);return yield*$D.async(h=>{let S=!1,b="",A=null,L=te=>{S||(S=!0,clearTimeout(j),A?.dispose(),h($D.succeed(te)))},V=(te,X)=>{L({result:null,error:te,logs:X})},j=setTimeout(()=>{V(`Deno subprocess execution timed out after ${l}ms`)},l),ie=te=>{let X=te.trim();if(X.length===0||!X.startsWith(NZt))return;let Re=X.slice(NZt.length),Je;try{let pt=JSON.parse(Re);if(!kDn(pt)){V(`Invalid worker message: ${Re}`);return}Je=pt}catch(pt){V(`Failed to decode worker message: ${Re} -${String(pt)}`);return}if(Je.type==="tool_call"){if(!A){V("Deno subprocess unavailable while handling worker tool_call");return}let pt=A;$D.runPromise($D.match($D.tryPromise({try:()=>$D.runPromise(r.invoke({path:Je.toolPath,args:Je.args})),catch:$e=>$e instanceof Error?$e:new Error(String($e))}),{onSuccess:$e=>{zat(pt.stdin,{type:"tool_result",requestId:Je.requestId,ok:!0,value:$e})},onFailure:$e=>{zat(pt.stdin,{type:"tool_result",requestId:Je.requestId,ok:!1,error:$e.message})}})).catch($e=>{V(`Failed handling worker tool_call: ${String($e)}`)});return}if(Je.type==="completed"){L({result:Je.result,logs:Je.logs});return}V(Je.error,Je.logs)};try{A=PZt({executable:s,scriptPath:EDn(),permissions:i.permissions},{onStdoutLine:ie,onStderr:te=>{b+=te},onError:te=>{V(OZt(te,s))},onExit:(te,X)=>{S||V(`Deno subprocess exited before returning terminal message (code=${String(te)} signal=${String(X)} stderr=${b})`)}})}catch(te){V(OZt(te,s));return}zat(A.stdin,{type:"start",code:e})})});var FZt=(e={})=>({execute:(r,i)=>CDn(r,i,e)});import*as FIe from"effect/Effect";IIe();async function YZt(e){let r=tst(await e),[i,s,{QuickJSWASMModule:l}]=await Promise.all([r.importModuleLoader().then(tst),r.importFFI(),Promise.resolve().then(()=>(XZt(),ZZt)).then(tst)]),d=await i();d.type="sync";let h=new s(d);return new l(d,h)}function tst(e){return e&&"default"in e&&e.default?e.default&&"default"in e.default&&e.default.default?e.default.default:e.default:e}function eXt(e){let r=typeof e=="number"?e:e.getTime();return function(){return Date.now()>r}}var QDn={type:"sync",importFFI:()=>Promise.resolve().then(()=>(rXt(),tXt)).then(e=>e.QuickJSFFI),importModuleLoader:()=>Promise.resolve().then(()=>(iXt(),nXt)).then(e=>e.default)},rst=QDn;async function oXt(e=rst){return YZt(e)}var ZDn,nst;async function aXt(){return nst??(nst=oXt().then(e=>(ZDn=e,e))),await nst}var XDn=5*6e4,YDn="executor-quickjs-runtime.js",RIe=e=>e instanceof Error?e:new Error(String(e)),sXt=e=>{if(typeof e=="object"&&e!==null){let i="stack"in e&&typeof e.stack=="string"?e.stack:void 0,s="message"in e&&typeof e.message=="string"?e.message:void 0;if(i)return i;if(s)return s}let r=RIe(e);return r.stack??r.message},eAn=(e,r)=>{if(!(typeof e>"u"))try{return JSON.stringify(e)}catch(i){throw new Error(`${r} is not JSON serializable: ${RIe(i).message}`)}},tAn=e=>/\binterrupted\b/i.test(e),Nfe=e=>`QuickJS execution timed out after ${e}ms`,OIe=(e,r,i)=>{let s=sXt(e);return Date.now()>=r&&tAn(s)?Nfe(i):s},rAn=e=>{let r=e.trim();return['"use strict";',"const __formatLogArg = (value) => {"," if (typeof value === 'string') return value;"," try {"," return JSON.stringify(value);"," } catch {"," return String(value);"," }","};","const __formatLogLine = (args) => args.map(__formatLogArg).join(' ');","const __makeToolsProxy = (path = []) => new Proxy(() => undefined, {"," get(_target, prop) {"," if (prop === 'then' || typeof prop === 'symbol') {"," return undefined;"," }"," return __makeToolsProxy([...path, String(prop)]);"," },"," apply(_target, _thisArg, args) {"," const toolPath = path.join('.');"," if (!toolPath) {"," throw new Error('Tool path missing in invocation');"," }"," return Promise.resolve(__executor_invokeTool(toolPath, args[0])).then((raw) => raw === undefined ? undefined : JSON.parse(raw));"," },","});","const tools = __makeToolsProxy();","const console = {"," log: (...args) => __executor_log('log', __formatLogLine(args)),"," warn: (...args) => __executor_log('warn', __formatLogLine(args)),"," error: (...args) => __executor_log('error', __formatLogLine(args)),"," info: (...args) => __executor_log('info', __formatLogLine(args)),"," debug: (...args) => __executor_log('debug', __formatLogLine(args)),","};","const fetch = (..._args) => {"," throw new Error('fetch is disabled in QuickJS executor');","};","(async () => {",(r.startsWith("async")||r.startsWith("("))&&r.includes("=>")?[`const __fn = (${r});`,"if (typeof __fn !== 'function') throw new Error('Code must evaluate to a function');","return await __fn();"].join(` -`):e,"})()"].join(` -`)},ist=(e,r,i)=>{let s=e.getProp(r,i);try{return e.dump(s)}finally{s.dispose()}},nAn=(e,r)=>({settled:ist(e,r,"settled")===!0,value:ist(e,r,"v"),error:ist(e,r,"e")}),iAn=(e,r)=>e.newFunction("__executor_log",(i,s)=>{let l=e.getString(i),d=e.getString(s);return r.push(`[${l}] ${d}`),e.undefined}),oAn=(e,r,i)=>e.newFunction("__executor_invokeTool",(s,l)=>{let d=e.getString(s),h=l===void 0||e.typeof(l)==="undefined"?void 0:e.dump(l),S=e.newPromise();return i.add(S),S.settled.finally(()=>{i.delete(S)}),FIe.runPromise(r.invoke({path:d,args:h})).then(b=>{if(!S.alive)return;let A=eAn(b,`Tool result for ${d}`);if(typeof A>"u"){S.resolve();return}let L=e.newString(A);S.resolve(L),L.dispose()},b=>{if(!S.alive)return;let A=e.newError(sXt(b));S.reject(A),A.dispose()}),S.handle}),ost=(e,r,i,s)=>{for(;r.hasPendingJob();){if(Date.now()>=i)throw new Error(Nfe(s));let l=r.executePendingJobs();if(l.error){let d=e.dump(l.error);throw l.error.dispose(),RIe(d)}}},aAn=async(e,r,i)=>{let s=r-Date.now();if(s<=0)throw new Error(Nfe(i));let l;try{await Promise.race([Promise.race([...e].map(d=>d.settled)),new Promise((d,h)=>{l=setTimeout(()=>h(new Error(Nfe(i))),s)})])}finally{l!==void 0&&clearTimeout(l)}},sAn=async(e,r,i,s,l)=>{for(ost(e,r,s,l);i.size>0;)await aAn(i,s,l),ost(e,r,s,l);ost(e,r,s,l)},cAn=async(e,r,i)=>{let s=Math.max(100,e.timeoutMs??XDn),l=Date.now()+s,d=[],h=new Set,b=(await aXt()).newRuntime();try{e.memoryLimitBytes!==void 0&&b.setMemoryLimit(e.memoryLimitBytes),e.maxStackSizeBytes!==void 0&&b.setMaxStackSize(e.maxStackSizeBytes),b.setInterruptHandler(eXt(l));let A=b.newContext();try{let L=iAn(A,d);A.setProp(A.global,"__executor_log",L),L.dispose();let V=oAn(A,i,h);A.setProp(A.global,"__executor_invokeTool",V),V.dispose();let j=A.evalCode(rAn(r),YDn);if(j.error){let X=A.dump(j.error);return j.error.dispose(),{result:null,error:OIe(X,l,s),logs:d}}A.setProp(A.global,"__executor_result",j.value),j.value.dispose();let ie=A.evalCode("(function(p){ var s = { v: void 0, e: void 0, settled: false }; var formatError = function(e){ if (e && typeof e === 'object') { var message = typeof e.message === 'string' ? e.message : ''; var stack = typeof e.stack === 'string' ? e.stack : ''; if (message && stack) { return stack.indexOf(message) === -1 ? message + '\\n' + stack : stack; } if (message) return message; if (stack) return stack; } return String(e); }; p.then(function(v){ s.v = v; s.settled = true; }, function(e){ s.e = formatError(e); s.settled = true; }); return s; })(__executor_result)");if(ie.error){let X=A.dump(ie.error);return ie.error.dispose(),{result:null,error:OIe(X,l,s),logs:d}}let te=ie.value;try{await sAn(A,b,h,l,s);let X=nAn(A,te);return X.settled?typeof X.error<"u"?{result:null,error:OIe(X.error,l,s),logs:d}:{result:X.value,logs:d}:{result:null,error:Nfe(s),logs:d}}finally{te.dispose()}}finally{for(let L of h)L.alive&&L.dispose();h.clear(),A.dispose()}}catch(A){return{result:null,error:OIe(A,l,s),logs:d}}finally{b.dispose()}},lAn=(e,r,i)=>FIe.tryPromise({try:()=>cAn(e,r,i),catch:RIe}),cXt=(e={})=>({execute:(r,i)=>lAn(e,r,i)});import{fork as uAn}from"node:child_process";import{fileURLToPath as pAn}from"node:url";import*as LIe from"effect/Effect";var _An=5*6e4,dAn="evaluation",fAn=pAn(new URL("./sandbox-worker.mjs",import.meta.url)),lXt=e=>e instanceof Error?e:new Error(String(e)),mAn=()=>uAn(fAn,[],{silent:!0}),hAn=(e,r,i)=>{let s=i.trim().length>0?` -${i.trim()}`:"";return r?new Error(`SES worker exited from signal ${r}${s}`):typeof e=="number"?new Error(`SES worker exited with code ${e}${s}`):new Error(`SES worker exited before returning a result${s}`)},ast=(e,r)=>{if(typeof e.send!="function")throw new Error("SES worker IPC channel is unavailable");e.send(r)},gAn=async(e,r,i)=>{let s=mAn(),l=e.timeoutMs??_An,d=[];return s.stderr&&s.stderr.on("data",h=>{d.push(h.toString())}),new Promise((h,S)=>{let b=!1,A,L=()=>{A&&(clearTimeout(A),A=void 0),s.off("error",ie),s.off("exit",te),s.off("message",X),s.killed||s.kill()},V=Re=>{b||(b=!0,L(),Re())},j=()=>{A&&clearTimeout(A),A=setTimeout(()=>{V(()=>{S(new Error(`Execution timed out after ${l}ms`))})},l)},ie=Re=>{V(()=>{S(Re)})},te=(Re,Je)=>{V(()=>{S(hAn(Re,Je,d.join("")))})},X=Re=>{if(Re.type==="ready"){j(),ast(s,{type:"evaluate",id:dAn,code:r,allowFetch:e.allowFetch===!0});return}if(Re.type==="tool-call"){j(),LIe.runPromise(i.invoke({path:Re.path,args:Re.args})).then(Je=>{b||(j(),ast(s,{type:"tool-response",callId:Re.callId,value:Je}))}).catch(Je=>{if(b)return;j();let pt=lXt(Je);ast(s,{type:"tool-response",callId:Re.callId,error:pt.stack??pt.message})});return}Re.type==="result"&&V(()=>{if(Re.error){h({result:null,error:Re.error,logs:Re.logs??[]});return}h({result:Re.value,logs:Re.logs??[]})})};s.on("error",ie),s.on("exit",te),s.on("message",X),j()})},yAn=(e,r,i)=>LIe.tryPromise({try:()=>gAn(e,r,i),catch:lXt}),uXt=(e={})=>({execute:(r,i)=>yAn(e,r,i)});var vAn="quickjs",sst=e=>e?.runtime??vAn,cst=e=>{switch(e){case"deno":return FZt();case"ses":return uXt();default:return cXt()}};import*as JIe from"effect/Effect";import*as $8 from"effect/Effect";import*as dXt from"effect/Cause";import*as fXt from"effect/Exit";import*as dst from"effect/Schema";import*as pXt from"effect/JSONSchema";var Ffe=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},SAn=e=>Array.isArray(e)?e.filter(r=>typeof r=="string"):[],Ofe=(e,r)=>e.length<=r?e:`${e.slice(0,Math.max(0,r-4))} ...`,bAn=(e,r,i)=>`${e}${i?"?":""}: ${MIe(r)}`,lst=(e,r)=>{let i=Array.isArray(r[e])?r[e].map(Ffe):[];if(i.length===0)return null;let s=i.map(l=>MIe(l)).filter(l=>l.length>0);return s.length===0?null:s.join(e==="allOf"?" & ":" | ")},MIe=(e,r=220)=>{let i=Ffe(e);if(typeof i.$ref=="string"){let d=i.$ref.trim();return d.length>0?d.split("/").at(-1)??d:"unknown"}if("const"in i)return JSON.stringify(i.const);let s=Array.isArray(i.enum)?i.enum:[];if(s.length>0)return Ofe(s.map(d=>JSON.stringify(d)).join(" | "),r);let l=lst("oneOf",i)??lst("anyOf",i)??lst("allOf",i);if(l)return Ofe(l,r);if(i.type==="array"){let d=i.items?MIe(i.items,r):"unknown";return Ofe(`${d}[]`,r)}if(i.type==="object"||i.properties){let d=Ffe(i.properties),h=Object.keys(d);if(h.length===0)return i.additionalProperties?"Record":"object";let S=new Set(SAn(i.required)),b=h.map(A=>bAn(A,Ffe(d[A]),!S.has(A)));return Ofe(`{ ${b.join(", ")} }`,r)}return Array.isArray(i.type)?Ofe(i.type.join(" | "),r):typeof i.type=="string"?i.type:"unknown"},jIe=(e,r)=>{let i=BIe(e);return i?MIe(i,r):"unknown"},BIe=e=>{try{return Ffe(pXt.make(e))}catch{return null}};import*as B8 from"effect/Schema";var xAn=B8.Union(B8.Struct({authKind:B8.Literal("none")}),B8.Struct({authKind:B8.Literal("bearer"),tokenRef:s0})),_Xt=B8.decodeUnknownSync(xAn),ust=()=>({authKind:"none"}),pst=e=>({authKind:"bearer",tokenRef:e});var Rfe=async(e,r,i=null)=>{let s=b_e(r),l=await $8.runPromiseExit(SB(e.pipe($8.provide(s)),i));if(fXt.isSuccess(l))return l.value;throw dXt.squash(l.cause)},TAn=dst.standardSchemaV1(SIe),EAn=dst.standardSchemaV1(XN),kAn=jIe(SIe,320),CAn=jIe(XN,260),DAn=BIe(SIe)??{},AAn=BIe(XN)??{},wAn=["Source add input shapes:",...xat.flatMap(e=>e.executorAddInputSchema&&e.executorAddInputSignatureWidth!==null&&e.executorAddHelpText?[`- ${e.displayName}: ${jIe(e.executorAddInputSchema,e.executorAddInputSignatureWidth)}`,...e.executorAddHelpText.map(r=>` ${r}`)]:[])," executor handles the credential setup for you."],IAn=()=>["Add an MCP, OpenAPI, or GraphQL source to the current scope.",...wAn].join(` -`),PAn=e=>{if(typeof e!="string"||e.trim().length===0)throw new Error("Missing execution run id for executor.sources.add");return Hw.make(e)},$Ie=e=>e,_st=e=>JSON.parse(JSON.stringify(e)),NAn=e=>e.kind===void 0||t$(e.kind),OAn=e=>typeof e.kind=="string",FAn=e=>NAn(e.args)?{kind:e.args.kind,endpoint:e.args.endpoint,name:e.args.name??null,namespace:e.args.namespace??null,transport:e.args.transport??null,queryParams:e.args.queryParams??null,headers:e.args.headers??null,command:e.args.command??null,args:e.args.args??null,env:e.args.env??null,cwd:e.args.cwd??null,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId}:"service"in e.args?{...e.args,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId}:"specUrl"in e.args?{...e.args,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId}:{...e.args,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId},RAn=e=>new URL(`/v1/workspaces/${encodeURIComponent(e.scopeId)}/sources/${encodeURIComponent(e.sourceId)}/credentials?interactionId=${encodeURIComponent(`${e.executionId}:${e.interactionId}`)}`,e.baseUrl).toString(),LAn=e=>$8.gen(function*(){if(!e.onElicitation)return yield*_a("sources/executor-tools","executor.sources.add requires an elicitation-capable host");if(e.localServerBaseUrl===null)return yield*_a("sources/executor-tools","executor.sources.add requires a local server base URL for credential capture");let r=yield*e.onElicitation({interactionId:e.interactionId,path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.metadata,context:e.invocation,elicitation:{mode:"url",message:e.credentialSlot==="import"?`Open the secure credential page to configure import access for ${e.source.name}`:`Open the secure credential page to connect ${e.source.name}`,url:RAn({baseUrl:e.localServerBaseUrl,scopeId:e.args.scopeId,sourceId:e.args.sourceId,executionId:e.executionId,interactionId:e.interactionId}),elicitationId:e.interactionId}}).pipe($8.mapError(s=>s instanceof Error?s:new Error(String(s))));if(r.action!=="accept")return yield*_a("sources/executor-tools",`Source credential setup was not completed for ${e.source.name}`);let i=yield*$8.try({try:()=>_Xt(r.content),catch:()=>new Error("Credential capture did not return a valid source auth choice for executor.sources.add")});return i.authKind==="none"?{kind:"none"}:{kind:"bearer",tokenRef:i.tokenRef}}),mXt=e=>({"executor.sources.add":Bw({tool:{description:IAn(),inputSchema:TAn,outputSchema:EAn,execute:async(r,i)=>{let s=PAn(i?.invocation?.runId),l=L2.make(`executor.sources.add:${crypto.randomUUID()}`),d=FAn({args:r,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:s,interactionId:l}),h=await Rfe(e.sourceAuthService.addExecutorSource(d,i?.onElicitation?{mcpDiscoveryElicitation:{onElicitation:i.onElicitation,path:i.path??$Ie("executor.sources.add"),sourceKey:i.sourceKey,args:r,metadata:i.metadata,invocation:i.invocation}}:void 0),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);if(h.kind==="connected")return _st(h.source);if(h.kind==="credential_required"){let A=h;if(!OAn(d))throw new Error("Credential-managed source setup expected a named adapter kind");let L=d;for(;A.kind==="credential_required";){let V=await Rfe(LAn({args:{...L,scopeId:e.scopeId,sourceId:A.source.id},credentialSlot:A.credentialSlot,source:A.source,executionId:s,interactionId:l,path:i?.path??$Ie("executor.sources.add"),sourceKey:i?.sourceKey??"executor",localServerBaseUrl:e.sourceAuthService.getLocalServerBaseUrl(),metadata:i?.metadata,invocation:i?.invocation,onElicitation:i?.onElicitation}),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);L=A.credentialSlot==="import"&&L.importAuthPolicy==="separate"?{...L,importAuth:V}:{...L,auth:V};let j=await Rfe(e.sourceAuthService.addExecutorSource(L,i?.onElicitation?{mcpDiscoveryElicitation:{onElicitation:i.onElicitation,path:i.path??$Ie("executor.sources.add"),sourceKey:i.sourceKey,args:r,metadata:i.metadata,invocation:i.invocation}}:void 0),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);if(j.kind==="connected")return _st(j.source);if(j.kind==="credential_required"){A=j;continue}h=j;break}A.kind==="credential_required"&&(h=A)}if(!i?.onElicitation)throw new Error("executor.sources.add requires an elicitation-capable host");if(h.kind!=="oauth_required")throw new Error(`Source add did not reach OAuth continuation for ${h.source.id}`);if((await Rfe(i.onElicitation({interactionId:l,path:i.path??$Ie("executor.sources.add"),sourceKey:i.sourceKey,args:d,metadata:i.metadata,context:i.invocation,elicitation:{mode:"url",message:`Open the provider sign-in page to connect ${h.source.name}`,url:h.authorizationUrl,elicitationId:h.sessionId}}),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope)).action!=="accept")throw new Error(`Source add was not completed for ${h.source.id}`);let b=await Rfe(e.sourceAuthService.getSourceById({scopeId:e.scopeId,sourceId:h.source.id,actorScopeId:e.actorScopeId}),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);return _st(b)}},metadata:{contract:{inputTypePreview:kAn,outputTypePreview:CAn,inputSchema:DAn,outputSchema:AAn},sourceKey:"executor",interaction:"auto"}})});import*as hXt from"effect/Effect";var gXt=e=>({toolPath:e.tool.path,sourceId:e.tool.source.id,sourceName:e.tool.source.name,sourceKind:e.tool.source.kind,sourceNamespace:e.tool.source.namespace??null,operationKind:e.tool.capability.semantics.effect==="read"?"read":e.tool.capability.semantics.effect==="write"?"write":e.tool.capability.semantics.effect==="delete"?"delete":e.tool.capability.semantics.effect==="action"?"execute":"unknown",interaction:e.tool.descriptor.interaction??"auto",approvalLabel:e.tool.capability.surface.title??e.tool.executable.display?.title??null}),yXt=e=>{let r=_9(e.tool.executable.adapterKey);return r.key!==e.tool.source.kind?hXt.fail(_a("execution/ir-execution",`Executable ${e.tool.executable.id} expects adapter ${r.key}, but source ${e.tool.source.id} is ${e.tool.source.kind}`)):r.invoke({source:e.tool.source,capability:e.tool.capability,executable:e.tool.executable,descriptor:e.tool.descriptor,catalog:e.tool.projectedCatalog,args:e.args,auth:e.auth,onElicitation:e.onElicitation,context:e.context})};import*as NXt from"effect/Either";import*as yW from"effect/Effect";import*as c4 from"effect/Schema";var MAn=(e,r)=>{let i=e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*");return new RegExp(`^${i}$`).test(r)},vXt=e=>e.priority+Math.max(1,e.resourcePattern.replace(/\*/g,"").length),jAn=e=>e.interaction==="auto"?{kind:"allow",reason:`${e.approvalLabel??e.toolPath} defaults to allow`,matchedPolicyId:null}:{kind:"require_interaction",reason:`${e.approvalLabel??e.toolPath} defaults to approval`,matchedPolicyId:null},BAn=e=>e.effect==="deny"?{kind:"deny",reason:`Denied by policy ${e.id}`,matchedPolicyId:e.id}:e.approvalMode==="required"?{kind:"require_interaction",reason:`Approval required by policy ${e.id}`,matchedPolicyId:e.id}:{kind:"allow",reason:`Allowed by policy ${e.id}`,matchedPolicyId:e.id},SXt=e=>{let i=e.policies.filter(s=>s.enabled&&s.scopeId===e.context.scopeId&&MAn(s.resourcePattern,e.descriptor.toolPath)).sort((s,l)=>vXt(l)-vXt(s)||s.updatedAt-l.updatedAt)[0];return i?BAn(i):jAn(e.descriptor)};import{createHash as zAn}from"node:crypto";import*as _x from"effect/Effect";import*as fst from"effect/Effect";var $An=e=>{if(e==null)return null;let r=e.trim();return r.length>0?r:null},bXt=(e,r)=>{let i=$An(e.resourcePattern)??`${e.effect}-${e.approvalMode}`,s=i,l=2;for(;r.has(s);)s=`${i}-${l}`,l+=1;return r.add(s),s},UAn=e=>fst.gen(function*(){let r=yield*lx,i=yield*r.load(),s=new Set(Object.keys(e.loadedConfig.config?.sources??{})),l=new Set(Object.keys(e.loadedConfig.config?.policies??{})),d={...i,sources:Object.fromEntries(Object.entries(i.sources).filter(([h])=>s.has(h))),policies:Object.fromEntries(Object.entries(i.policies).filter(([h])=>l.has(h)))};return JSON.stringify(d)===JSON.stringify(i)?i:(yield*r.write({state:d}),d)}),xXt=e=>fst.gen(function*(){return yield*UAn({loadedConfig:e.loadedConfig}),e.loadedConfig.config});import{HttpApiSchema as Lfe}from"@effect/platform";import*as W0 from"effect/Schema";var Yee=class extends W0.TaggedError()("ControlPlaneBadRequestError",{operation:W0.String,message:W0.String,details:W0.String},Lfe.annotations({status:400})){},TXt=class extends W0.TaggedError()("ControlPlaneUnauthorizedError",{operation:W0.String,message:W0.String,details:W0.String},Lfe.annotations({status:401})){},EXt=class extends W0.TaggedError()("ControlPlaneForbiddenError",{operation:W0.String,message:W0.String,details:W0.String},Lfe.annotations({status:403})){},g9=class extends W0.TaggedError()("ControlPlaneNotFoundError",{operation:W0.String,message:W0.String,details:W0.String},Lfe.annotations({status:404})){},a$=class extends W0.TaggedError()("ControlPlaneStorageError",{operation:W0.String,message:W0.String,details:W0.String},Lfe.annotations({status:500})){};import*as kXt from"effect/Effect";var sg=e=>{let r={operation:e,child:i=>sg(`${e}.${i}`),badRequest:(i,s)=>new Yee({operation:e,message:i,details:s}),notFound:(i,s)=>new g9({operation:e,message:i,details:s}),storage:i=>new a$({operation:e,message:i.message,details:i.message}),unknownStorage:(i,s)=>r.storage(i instanceof Error?new Error(`${i.message}: ${s}`):new Error(s)),mapStorage:i=>i.pipe(kXt.mapError(s=>r.storage(s)))};return r},Mfe=e=>typeof e=="string"?sg(e):e;var H2={list:sg("policies.list"),create:sg("policies.create"),get:sg("policies.get"),update:sg("policies.update"),remove:sg("policies.remove")},mst=e=>JSON.parse(JSON.stringify(e)),UIe=e=>e.scopeRoot?.trim()||e.scopeId,CXt=e=>uY.make(`pol_local_${zAn("sha256").update(`${e.scopeStableKey}:${e.key}`).digest("hex").slice(0,16)}`),hst=e=>({id:e.state?.id??CXt({scopeStableKey:e.scopeStableKey,key:e.key}),key:e.key,scopeId:e.scopeId,resourcePattern:e.policyConfig.match.trim(),effect:e.policyConfig.action,approvalMode:e.policyConfig.approval==="manual"?"required":"auto",priority:e.policyConfig.priority??0,enabled:e.policyConfig.enabled??!0,createdAt:e.state?.createdAt??Date.now(),updatedAt:e.state?.updatedAt??Date.now()}),gW=e=>_x.gen(function*(){let r=yield*fee(e),i=yield*OD,s=yield*lx,l=yield*i.load(),d=yield*s.load(),h=Object.entries(l.config?.policies??{}).map(([S,b])=>hst({scopeId:e,scopeStableKey:UIe({scopeId:e,scopeRoot:r.scope.scopeRoot}),key:S,policyConfig:b,state:d.policies[S]}));return{runtimeLocalScope:r,loadedConfig:l,scopeState:d,policies:h}}),gst=e=>_x.all([e.scopeConfigStore.writeProject({config:e.projectConfig}),e.scopeStateStore.write({state:e.scopeState})],{discard:!0}).pipe(_x.mapError(r=>e.operation.unknownStorage(r,"Failed writing local scope policy files"))),jfe=(e,r)=>fee(r).pipe(_x.mapError(i=>e.notFound("Workspace not found",i instanceof Error?i.message:String(i)))),DXt=e=>_x.gen(function*(){return yield*jfe(H2.list,e),(yield*gW(e).pipe(_x.mapError(i=>H2.list.unknownStorage(i,"Failed loading local scope policies")))).policies}),AXt=e=>_x.gen(function*(){let r=yield*jfe(H2.create,e.scopeId),i=yield*OD,s=yield*lx,l=yield*gW(e.scopeId).pipe(_x.mapError(V=>H2.create.unknownStorage(V,"Failed loading local scope policies"))),d=Date.now(),h=mst(l.loadedConfig.projectConfig??{}),S={...h.policies},b=bXt({resourcePattern:e.payload.resourcePattern??"*",effect:e.payload.effect??"allow",approvalMode:e.payload.approvalMode??"auto"},new Set(Object.keys(S)));S[b]={match:e.payload.resourcePattern??"*",action:e.payload.effect??"allow",approval:(e.payload.approvalMode??"auto")==="required"?"manual":"auto",...e.payload.enabled===!1?{enabled:!1}:{},...(e.payload.priority??0)!==0?{priority:e.payload.priority??0}:{}};let A=l.scopeState.policies[b],L={...l.scopeState,policies:{...l.scopeState.policies,[b]:{id:A?.id??CXt({scopeStableKey:UIe({scopeId:e.scopeId,scopeRoot:r.scope.scopeRoot}),key:b}),createdAt:A?.createdAt??d,updatedAt:d}}};return yield*gst({operation:H2.create,scopeConfigStore:i,scopeStateStore:s,projectConfig:{...h,policies:S},scopeState:L}),hst({scopeId:e.scopeId,scopeStableKey:UIe({scopeId:e.scopeId,scopeRoot:r.scope.scopeRoot}),key:b,policyConfig:S[b],state:L.policies[b]})}),wXt=e=>_x.gen(function*(){yield*jfe(H2.get,e.scopeId);let i=(yield*gW(e.scopeId).pipe(_x.mapError(s=>H2.get.unknownStorage(s,"Failed loading local scope policies")))).policies.find(s=>s.id===e.policyId)??null;return i===null?yield*H2.get.notFound("Policy not found",`scopeId=${e.scopeId} policyId=${e.policyId}`):i}),IXt=e=>_x.gen(function*(){let r=yield*jfe(H2.update,e.scopeId),i=yield*OD,s=yield*lx,l=yield*gW(e.scopeId).pipe(_x.mapError(j=>H2.update.unknownStorage(j,"Failed loading local scope policies"))),d=l.policies.find(j=>j.id===e.policyId)??null;if(d===null)return yield*H2.update.notFound("Policy not found",`scopeId=${e.scopeId} policyId=${e.policyId}`);let h=mst(l.loadedConfig.projectConfig??{}),S={...h.policies},b=S[d.key];S[d.key]={...b,...e.payload.resourcePattern!==void 0?{match:e.payload.resourcePattern}:{},...e.payload.effect!==void 0?{action:e.payload.effect}:{},...e.payload.approvalMode!==void 0?{approval:e.payload.approvalMode==="required"?"manual":"auto"}:{},...e.payload.enabled!==void 0?{enabled:e.payload.enabled}:{},...e.payload.priority!==void 0?{priority:e.payload.priority}:{}};let A=Date.now(),L=l.scopeState.policies[d.key],V={...l.scopeState,policies:{...l.scopeState.policies,[d.key]:{id:d.id,createdAt:L?.createdAt??d.createdAt,updatedAt:A}}};return yield*gst({operation:H2.update,scopeConfigStore:i,scopeStateStore:s,projectConfig:{...h,policies:S},scopeState:V}),hst({scopeId:e.scopeId,scopeStableKey:UIe({scopeId:e.scopeId,scopeRoot:r.scope.scopeRoot}),key:d.key,policyConfig:S[d.key],state:V.policies[d.key]})}),PXt=e=>_x.gen(function*(){let r=yield*jfe(H2.remove,e.scopeId),i=yield*OD,s=yield*lx,l=yield*gW(e.scopeId).pipe(_x.mapError(L=>H2.remove.unknownStorage(L,"Failed loading local scope policies"))),d=l.policies.find(L=>L.id===e.policyId)??null;if(d===null)return{removed:!1};let h=mst(l.loadedConfig.projectConfig??{}),S={...h.policies};delete S[d.key];let{[d.key]:b,...A}=l.scopeState.policies;return yield*gst({operation:H2.remove,scopeConfigStore:i,scopeStateStore:s,projectConfig:{...h,policies:S},scopeState:{...l.scopeState,policies:A}}),{removed:!0}});var qAn=e=>e,JAn={type:"object",properties:{approve:{type:"boolean",description:"Whether to approve this tool execution"}},required:["approve"],additionalProperties:!1},VAn=e=>e.approvalLabel?`Allow ${e.approvalLabel}?`:`Allow tool call: ${e.toolPath}?`,WAn=c4.Struct({params:c4.optional(c4.Record({key:c4.String,value:c4.String}))}),GAn=c4.decodeUnknownEither(WAn),OXt=e=>{let r=GAn(e);if(!(NXt.isLeft(r)||r.right.params===void 0))return{params:r.right.params}},yst=e=>yW.fail(new Error(e)),FXt=e=>yW.gen(function*(){let r=gXt({tool:e.tool}),i=yield*gW(e.scopeId).pipe(yW.mapError(h=>h instanceof Error?h:new Error(String(h)))),s=SXt({descriptor:r,args:e.args,policies:i.policies,context:{scopeId:e.scopeId}});if(s.kind==="allow")return;if(s.kind==="deny")return yield*yst(s.reason);if(!e.onElicitation)return yield*yst(`Approval required for ${r.toolPath}, but no elicitation-capable host is available`);let l=typeof e.context?.callId=="string"&&e.context.callId.length>0?`tool_execution_gate:${e.context.callId}`:`tool_execution_gate:${crypto.randomUUID()}`;if((yield*e.onElicitation({interactionId:l,path:qAn(r.toolPath),sourceKey:e.tool.source.id,args:e.args,context:{...e.context,interactionPurpose:"tool_execution_gate",interactionReason:s.reason,invocationDescriptor:{operationKind:r.operationKind,interaction:r.interaction,approvalLabel:r.approvalLabel,sourceId:e.tool.source.id,sourceName:e.tool.source.name}},elicitation:{mode:"form",message:VAn(r),requestedSchema:JAn}}).pipe(yW.mapError(h=>h instanceof Error?h:new Error(String(h))))).action!=="accept")return yield*yst(`Tool invocation not approved for ${r.toolPath}`)});var s$=(e,r)=>SB(e,r);import*as ab from"effect/Effect";var zIe=e=>e.trim().toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),HAn=new Set(["a","an","the","am","as","for","from","get","i","in","is","list","me","my","of","on","or","signed","to","who"]),vst=e=>e.length>3&&e.endsWith("s")?e.slice(0,-1):e,KAn=(e,r)=>e===r||vst(e)===vst(r),qIe=(e,r)=>e.some(i=>KAn(i,r)),ete=(e,r)=>{if(e.includes(r))return!0;let i=vst(r);return i!==r&&e.includes(i)},RXt=e=>HAn.has(e)?.25:1,QAn=e=>{let[r,i]=e.split(".");return i?`${r}.${i}`:r},ZAn=e=>[...e].sort((r,i)=>r.namespace.localeCompare(i.namespace)),XAn=e=>ab.gen(function*(){let r=yield*e.sourceCatalogStore.loadWorkspaceSourceCatalogs({scopeId:e.scopeId,actorScopeId:e.actorScopeId}),i=new Map;for(let s of r)if(!(!s.source.enabled||s.source.status!=="connected"))for(let l of Object.values(s.projected.toolDescriptors)){let d=QAn(l.toolPath.join(".")),h=i.get(d);i.set(d,{namespace:d,toolCount:(h?.toolCount??0)+1})}return ZAn(i.values())}),YAn=e=>ab.map(e.sourceCatalogStore.loadWorkspaceSourceCatalogToolIndex({scopeId:e.scopeId,actorScopeId:e.actorScopeId}),r=>r.filter(i=>i.source.enabled&&i.source.status==="connected")),Sst=e=>e.sourceCatalogStore.loadWorkspaceSourceCatalogToolByPath({scopeId:e.scopeId,path:e.path,actorScopeId:e.actorScopeId,includeSchemas:e.includeSchemas}).pipe(ab.map(r=>r&&r.source.enabled&&r.source.status==="connected"?r:null)),ewn=(e,r)=>{let i=r.path.toLowerCase(),s=r.searchNamespace.toLowerCase(),l=r.path.split(".").at(-1)?.toLowerCase()??"",d=r.capability.surface.title?.toLowerCase()??"",h=r.capability.surface.summary?.toLowerCase()??r.capability.surface.description?.toLowerCase()??"",S=[r.executable.display?.pathTemplate,r.executable.display?.operationId,r.executable.display?.leaf].filter(Je=>typeof Je=="string"&&Je.length>0).join(" ").toLowerCase(),b=zIe(`${r.path} ${l}`),A=zIe(r.searchNamespace),L=zIe(r.capability.surface.title??""),V=zIe(S),j=0,ie=0,te=0,X=0;for(let Je of e){let pt=RXt(Je);if(qIe(b,Je)){j+=12*pt,ie+=1,X+=1;continue}if(qIe(A,Je)){j+=11*pt,ie+=1,te+=1;continue}if(qIe(L,Je)){j+=9*pt,ie+=1;continue}if(qIe(V,Je)){j+=8*pt,ie+=1;continue}if(ete(i,Je)||ete(l,Je)){j+=6*pt,ie+=1,X+=1;continue}if(ete(s,Je)){j+=5*pt,ie+=1,te+=1;continue}if(ete(d,Je)||ete(S,Je)){j+=4*pt,ie+=1;continue}ete(h,Je)&&(j+=.5*pt)}let Re=e.filter(Je=>RXt(Je)>=1);if(Re.length>=2)for(let Je=0;Jei.includes(tr)||S.includes(tr))&&(j+=10)}return te>0&&X>0&&(j+=8),ie===0&&j>0&&(j*=.25),j},LXt=e=>{let r=S_e({scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore}),i=d=>d.pipe(ab.provide(r)),l=ab.runSync(ab.cached(i(ab.gen(function*(){let d=yield*YAn({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore});return EJe({entries:d.map(h=>_Zt({tool:h,score:S=>ewn(S,h)}))})}))));return{listNamespaces:({limit:d})=>s$(i(ab.map(XAn({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore}),h=>h.slice(0,d))),e.runtimeLocalScope),listTools:({namespace:d,query:h,limit:S})=>s$(ab.flatMap(l,b=>b.listTools({...d!==void 0?{namespace:d}:{},...h!==void 0?{query:h}:{},limit:S,includeSchemas:!1})),e.runtimeLocalScope),getToolByPath:({path:d,includeSchemas:h})=>s$(h?ab.map(i(Sst({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore,path:d,includeSchemas:!0})),S=>S?.descriptor??null):ab.flatMap(l,S=>S.getToolByPath({path:d,includeSchemas:!1})),e.runtimeLocalScope),searchTools:({query:d,namespace:h,limit:S})=>s$(ab.flatMap(l,b=>b.searchTools({query:d,...h!==void 0?{namespace:h}:{},limit:S})),e.runtimeLocalScope)}};var MXt=e=>{let r=S_e({scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore}),i=ie=>ie.pipe(JIe.provide(r)),s=mXt({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceAuthService:e.sourceAuthService,installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,runtimeLocalScope:e.runtimeLocalScope}),l=e.createInternalToolMap?.({scopeId:e.scopeId,actorScopeId:e.actorScopeId,executorStateStore:e.executorStateStore,sourceStore:e.sourceStore,sourceCatalogSyncService:e.sourceCatalogSyncService,sourceAuthService:e.sourceAuthService,installationStore:e.installationStore,instanceConfigResolver:e.instanceConfigResolver,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,updateSecretMaterial:e.updateSecretMaterial,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,runtimeLocalScope:e.runtimeLocalScope})??{},d=LXt({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,runtimeLocalScope:e.runtimeLocalScope}),h=null,S=t4t({getCatalog:()=>{if(h===null)throw new Error("Workspace tool catalog has not been initialized");return h}}),b=r4t([S,s,l,e.localToolRuntime.tools]),A=Z7({tools:b});h=Y6t({catalogs:[A,d]});let L=new Set(Object.keys(b)),V=Q7({tools:b,onElicitation:e.onElicitation}),j=ie=>s$(i(JIe.gen(function*(){let te=yield*Sst({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore,path:ie.path,includeSchemas:!1});if(!te)return yield*_a("execution/scope/tool-invoker",`Unknown tool path: ${ie.path}`);yield*FXt({scopeId:e.scopeId,tool:te,args:ie.args,context:ie.context,onElicitation:e.onElicitation});let X=yield*e.sourceAuthMaterialService.resolve({source:te.source,actorScopeId:e.actorScopeId,context:OXt(ie.context)});return yield*yXt({scopeId:e.scopeId,actorScopeId:e.actorScopeId,tool:te,auth:X,args:ie.args,onElicitation:e.onElicitation,context:ie.context})})),e.runtimeLocalScope);return{catalog:h,toolInvoker:{invoke:({path:ie,args:te,context:X})=>s$(L.has(ie)?V.invoke({path:ie,args:te,context:X}):j({path:ie,args:te,context:X}),e.runtimeLocalScope)}}};import*as VXt from"effect/Context";import*as U8 from"effect/Either";import*as ga from"effect/Effect";import*as WXt from"effect/Layer";import*as G0 from"effect/Option";import*as WIe from"effect/ParseResult";import*as ef from"effect/Schema";import{createServer as twn}from"node:http";import*as bst from"effect/Effect";var rwn=10*6e4,jXt=e=>new Promise((r,i)=>{e.close(s=>{if(s){i(s);return}r()})}),xst=e=>bst.tryPromise({try:()=>new Promise((r,i)=>{let s=e.publicHost??"127.0.0.1",l=e.listenHost??"127.0.0.1",d=new URL(e.completionUrl),h=twn((A,L)=>{try{let V=new URL(A.url??"/",`http://${s}`),j=new URL(d.toString());for(let[ie,te]of V.searchParams.entries())j.searchParams.set(ie,te);L.statusCode=302,L.setHeader("cache-control","no-store"),L.setHeader("location",j.toString()),L.end()}catch(V){let j=V instanceof Error?V:new Error(String(V));L.statusCode=500,L.setHeader("content-type","text/plain; charset=utf-8"),L.end(`OAuth redirect failed: ${j.message}`)}finally{jXt(h).catch(()=>{})}}),S=null,b=()=>(S!==null&&(clearTimeout(S),S=null),jXt(h).catch(()=>{}));h.once("error",A=>{i(A instanceof Error?A:new Error(String(A)))}),h.listen(0,l,()=>{let A=h.address();if(!A||typeof A=="string"){i(new Error("Failed to resolve OAuth loopback port"));return}S=setTimeout(()=>{b()},e.timeoutMs??rwn),typeof S.unref=="function"&&S.unref(),r({redirectUri:`http://${s}:${A.port}`,close:bst.tryPromise({try:b,catch:L=>L instanceof Error?L:new Error(String(L))})})})}),catch:r=>r instanceof Error?r:new Error(String(r))});var Ru=e=>{if(e==null)return null;let r=e.trim();return r.length>0?r:null},Cst=e=>new URL(e).hostname,Dst=e=>{let r=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"");return r.length>0?r:"source"},nwn=e=>{let r=e.split(/[\\/]+/).map(i=>i.trim()).filter(i=>i.length>0);return r[r.length-1]??e},iwn=e=>{if(!e||e.length===0)return null;let r=e.map(i=>i.trim()).filter(i=>i.length>0);return r.length>0?r:null},own=e=>{let r=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");return r.length>0?r:"mcp"},awn=e=>{let r=Ru(e.name)??Ru(e.endpoint)??Ru(e.command)??"mcp";return`stdio://local/${own(r)}`},BXt=e=>{if(JJ({transport:e.transport??void 0,command:e.command??void 0}))return y9(Ru(e.endpoint)??awn(e));let r=Ru(e.endpoint);if(r===null)throw new Error("Endpoint is required.");return y9(r)},GXt=e=>new URL(`/v1/workspaces/${encodeURIComponent(e.scopeId)}/sources/${encodeURIComponent(e.sourceId)}/credentials/oauth/complete`,e.baseUrl).toString(),swn=e=>new URL("/v1/oauth/source-auth/callback",e.baseUrl).toString(),cwn=e=>new URL(`/v1/workspaces/${encodeURIComponent(e.scopeId)}/oauth/provider/callback`,e.baseUrl).toString();function y9(e){return new URL(e.trim()).toString()}var HXt=(e,r)=>`https://www.googleapis.com/discovery/v1/apis/${encodeURIComponent(e)}/${encodeURIComponent(r)}/rest`,KXt=(e,r)=>`Google ${e.split(/[^a-zA-Z0-9]+/).filter(Boolean).map(s=>s[0]?.toUpperCase()+s.slice(1)).join(" ")||e} ${r}`,QXt=e=>`google.${e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"")}`,ZXt=ef.Struct({kind:ef.Literal("source_oauth"),nonce:ef.String,displayName:ef.NullOr(ef.String)}),lwn=ef.encodeSync(ef.parseJson(ZXt)),uwn=ef.decodeUnknownOption(ef.parseJson(ZXt)),pwn=e=>lwn({kind:"source_oauth",nonce:crypto.randomUUID(),displayName:Ru(e.displayName)}),_wn=e=>{let r=uwn(e);return G0.isSome(r)?Ru(r.value.displayName):null},$Xt=e=>{let r=Ru(e.displayName)??Cst(e.endpoint);return/\boauth\b/i.test(r)?r:`${r} OAuth`},dwn=(e,r)=>ga.gen(function*(){if(!t$(e.kind))return yield*_a("sources/source-auth-service",`Expected MCP source, received ${e.kind}`);let i=yield*e$(e),s=bj({endpoint:e.endpoint,transport:i.transport??void 0,queryParams:i.queryParams??void 0,headers:i.headers??void 0,command:i.command??void 0,args:i.args??void 0,env:i.env??void 0,cwd:i.cwd??void 0});return yield*KJ({connect:s,namespace:e.namespace??Dst(e.name),sourceKey:e.id,mcpDiscoveryElicitation:r})}),vW=e=>({status:e.status,errorText:e.errorText,completedAt:e.now,updatedAt:e.now,sessionDataJson:e.sessionDataJson}),Ast=e=>ef.encodeSync(nQe)(e),fwn=ef.decodeUnknownEither(nQe),VIe=e=>{if(e.providerKind!=="mcp_oauth")throw new Error(`Unsupported source auth provider for session ${e.id}`);let r=fwn(e.sessionDataJson);if(U8.isLeft(r))throw new Error(`Invalid source auth session data for ${e.id}: ${WIe.TreeFormatter.formatErrorSync(r.left)}`);return r.right},UXt=e=>{let r=VIe(e.session);return Ast({...r,...e.patch})},XXt=e=>ef.encodeSync(iQe)(e),mwn=ef.decodeUnknownEither(iQe),Est=e=>{if(e.providerKind!=="oauth2_pkce")throw new Error(`Unsupported source auth provider for session ${e.id}`);let r=mwn(e.sessionDataJson);if(U8.isLeft(r))throw new Error(`Invalid source auth session data for ${e.id}: ${WIe.TreeFormatter.formatErrorSync(r.left)}`);return r.right},hwn=e=>{let r=Est(e.session);return XXt({...r,...e.patch})},YXt=e=>ef.encodeSync(oQe)(e),gwn=ef.decodeUnknownEither(oQe),kst=e=>{if(e.providerKind!=="oauth2_provider_batch")throw new Error(`Unsupported source auth provider for session ${e.id}`);let r=gwn(e.sessionDataJson);if(U8.isLeft(r))throw new Error(`Invalid source auth session data for ${e.id}: ${WIe.TreeFormatter.formatErrorSync(r.left)}`);return r.right},ywn=e=>{let r=kst(e.session);return YXt({...r,...e.patch})},zXt=e=>ga.gen(function*(){if(e.session.executionId===null)return;let r=e.response.action==="accept"?{action:"accept"}:{action:"cancel",...e.response.reason?{content:{reason:e.response.reason}}:{}};if(!(yield*e.liveExecutionManager.resolveInteraction({executionId:e.session.executionId,response:r}))){let s=yield*e.executorState.executionInteractions.getPendingByExecutionId(e.session.executionId);G0.isSome(s)&&(yield*e.executorState.executionInteractions.update(s.value.id,{status:r.action==="cancel"?"cancelled":"resolved",responseJson:qXt(wfe(r)),responsePrivateJson:qXt(r),updatedAt:Date.now()}))}}),qXt=e=>e===void 0?null:JSON.stringify(e),nS=ga.fn("source.status.update")((e,r,i)=>ga.gen(function*(){let s=yield*e.loadSourceById({scopeId:r.scopeId,sourceId:r.id,actorScopeId:i.actorScopeId});return yield*e.persistSource({...s,status:i.status,lastError:i.lastError??null,auth:i.auth??s.auth,importAuth:i.importAuth??s.importAuth,updatedAt:Date.now()},{actorScopeId:i.actorScopeId})}).pipe(ga.withSpan("source.status.update",{attributes:{"executor.source.id":r.id,"executor.source.status":i.status}}))),eYt=e=>typeof e.kind=="string",vwn=e=>eYt(e)&&e.kind==="google_discovery",Swn=e=>eYt(e)&&"endpoint"in e&&_W(e.kind),bwn=e=>e.kind===void 0||t$(e.kind),Tst=e=>ga.gen(function*(){let r=Ru(e.rawValue);if(r!==null)return yield*e.storeSecretMaterial({purpose:"auth_material",value:r});let i=Ru(e.ref?.providerId),s=Ru(e.ref?.handle);return i===null||s===null?null:{providerId:i,handle:s}}),wst=e=>ga.gen(function*(){let r=e.existing;if(e.auth===void 0&&r&&_W(r.kind))return r.auth;let i=e.auth??{kind:"none"};if(i.kind==="none")return{kind:"none"};let s=Ru(i.headerName)??"Authorization",l=i.prefix??"Bearer ";if(i.kind==="bearer"){let S=Ru(i.token),b=i.tokenRef??null;if(S===null&&b===null&&r&&_W(r.kind)&&r.auth.kind==="bearer")return r.auth;let A=yield*Tst({rawValue:S,ref:b,storeSecretMaterial:e.storeSecretMaterial});return A===null?yield*_a("sources/source-auth-service","Bearer auth requires token or tokenRef"):{kind:"bearer",headerName:s,prefix:l,token:A}}if(Ru(i.accessToken)===null&&i.accessTokenRef==null&&Ru(i.refreshToken)===null&&i.refreshTokenRef==null&&r&&_W(r.kind)&&r.auth.kind==="oauth2")return r.auth;let d=yield*Tst({rawValue:i.accessToken,ref:i.accessTokenRef??null,storeSecretMaterial:e.storeSecretMaterial});if(d===null)return yield*_a("sources/source-auth-service","OAuth2 auth requires accessToken or accessTokenRef");let h=yield*Tst({rawValue:i.refreshToken,ref:i.refreshTokenRef??null,storeSecretMaterial:e.storeSecretMaterial});return{kind:"oauth2",headerName:s,prefix:l,accessToken:d,refreshToken:h}}),tYt=e=>ga.gen(function*(){let r=_W(e.sourceKind)?"reuse_runtime":"none",i=e.importAuthPolicy??e.existing?.importAuthPolicy??r;if(i==="none"||i==="reuse_runtime")return{importAuthPolicy:i,importAuth:{kind:"none"}};if(e.importAuth===void 0&&e.existing&&e.existing.importAuthPolicy==="separate")return{importAuthPolicy:i,importAuth:e.existing.importAuth};let s=yield*wst({existing:void 0,auth:e.importAuth??{kind:"none"},storeSecretMaterial:e.storeSecretMaterial});return{importAuthPolicy:i,importAuth:s}}),rYt=e=>!e.explicitAuthProvided&&e.auth.kind==="none"&&(e.existing?.auth.kind??"none")==="none",xwn=ef.decodeUnknownOption(lQe),nYt=ef.encodeSync(lQe),iYt=e=>{if(e.clientMetadataJson===null)return"app_callback";let r=xwn(e.clientMetadataJson);return G0.isNone(r)?"app_callback":r.value.redirectMode??"app_callback"},GIe=e=>e.clientSecretProviderId&&e.clientSecretHandle?{providerId:e.clientSecretProviderId,handle:e.clientSecretHandle}:null,Twn=e=>ga.gen(function*(){let r=l0(e.source),i=r.getOauth2SetupConfig?yield*r.getOauth2SetupConfig({source:e.source,slot:"runtime"}):null;if(i===null)return yield*_a("sources/source-auth-service",`Source ${e.source.id} does not support OAuth client configuration`);let s=yield*e.executorState.sourceOauthClients.getByScopeSourceAndProvider({scopeId:e.source.scopeId,sourceId:e.source.id,providerKey:i.providerKey}),l=r.normalizeOauthClientInput?yield*r.normalizeOauthClientInput(e.oauthClient):e.oauthClient,d=G0.isSome(s)?GIe(s.value):null,h=l.clientSecret?yield*e.storeSecretMaterial({purpose:"oauth_client_info",value:l.clientSecret}):null,S=Date.now(),b=G0.isSome(s)?s.value.id:Gke.make(`src_oauth_client_${crypto.randomUUID()}`);return yield*e.executorState.sourceOauthClients.upsert({id:b,scopeId:e.source.scopeId,sourceId:e.source.id,providerKey:i.providerKey,clientId:l.clientId,clientSecretProviderId:h?.providerId??null,clientSecretHandle:h?.handle??null,clientMetadataJson:nYt({redirectMode:l.redirectMode??"app_callback"}),createdAt:G0.isSome(s)?s.value.createdAt:S,updatedAt:S}),d&&(h===null||d.providerId!==h.providerId||d.handle!==h.handle)&&(yield*e.deleteSecretMaterial(d).pipe(ga.either,ga.ignore)),{providerKey:i.providerKey,clientId:l.clientId,clientSecret:h,redirectMode:l.redirectMode??"app_callback"}}),Ewn=e=>ga.gen(function*(){let r=l0(e.source),i=r.getOauth2SetupConfig?yield*r.getOauth2SetupConfig({source:e.source,slot:"runtime"}):null;if(i===null)return null;let s=yield*e.executorState.sourceOauthClients.getByScopeSourceAndProvider({scopeId:e.source.scopeId,sourceId:e.source.id,providerKey:i.providerKey});return G0.isNone(s)?null:{providerKey:s.value.providerKey,clientId:s.value.clientId,clientSecret:GIe(s.value),redirectMode:iYt(s.value)}}),oYt=e=>ga.gen(function*(){let r=e.normalizeOauthClient?yield*e.normalizeOauthClient(e.oauthClient):e.oauthClient,i=r.clientSecret?yield*e.storeSecretMaterial({purpose:"oauth_client_info",value:r.clientSecret}):null,s=Date.now(),l=Rj.make(`ws_oauth_client_${crypto.randomUUID()}`);return yield*e.executorState.scopeOauthClients.upsert({id:l,scopeId:e.scopeId,providerKey:e.providerKey,label:Ru(e.label)??null,clientId:r.clientId,clientSecretProviderId:i?.providerId??null,clientSecretHandle:i?.handle??null,clientMetadataJson:nYt({redirectMode:r.redirectMode??"app_callback"}),createdAt:s,updatedAt:s}),{id:l,providerKey:e.providerKey,label:Ru(e.label)??null,clientId:r.clientId,clientSecret:i,redirectMode:r.redirectMode??"app_callback"}}),Ist=e=>ga.gen(function*(){let r=yield*e.executorState.scopeOauthClients.getById(e.oauthClientId);return G0.isNone(r)?null:!Pst({scopeId:e.scopeId,localScopeState:e.localScopeState}).includes(r.value.scopeId)||r.value.providerKey!==e.providerKey?yield*_a("sources/source-auth-service",`Scope OAuth client ${e.oauthClientId} is not valid for ${e.providerKey}`):{id:r.value.id,providerKey:r.value.providerKey,label:r.value.label,clientId:r.value.clientId,clientSecret:GIe(r.value),redirectMode:iYt(r.value)}}),kwn=(e,r)=>{let i=new Set(e);return r.every(s=>i.has(s))},v9=e=>[...new Set(e.map(r=>r.trim()).filter(r=>r.length>0))],Pst=e=>{let r=e.localScopeState;return r?r.installation.scopeId!==e.scopeId?[e.scopeId]:[...new Set([e.scopeId,...r.installation.resolutionScopeIds])]:[e.scopeId]},Cwn=(e,r)=>{let i=Object.entries(e??{}).sort(([l],[d])=>l.localeCompare(d)),s=Object.entries(r??{}).sort(([l],[d])=>l.localeCompare(d));return i.length===s.length&&i.every(([l,d],h)=>{let S=s[h];return S!==void 0&&S[0]===l&&S[1]===d})},Dwn=(e,r)=>e.providerKey===r.providerKey&&e.authorizationEndpoint===r.authorizationEndpoint&&e.tokenEndpoint===r.tokenEndpoint&&e.headerName===r.headerName&&e.prefix===r.prefix&&e.clientAuthentication===r.clientAuthentication&&Cwn(e.authorizationParams,r.authorizationParams),aYt=e=>ga.gen(function*(){let r=l0(e),i=r.getOauth2SetupConfig?yield*r.getOauth2SetupConfig({source:e,slot:"runtime"}):null;return i===null?null:{source:e,requiredScopes:v9(i.scopes),setupConfig:i}}),Awn=e=>ga.gen(function*(){if(e.length===0)return yield*_a("sources/source-auth-service","Provider auth setup requires at least one target source");let r=e[0].setupConfig;for(let i of e.slice(1))if(!Dwn(r,i.setupConfig))return yield*_a("sources/source-auth-service",`Provider auth setup for ${r.providerKey} requires compatible source OAuth configuration`);return{...r,scopes:v9(e.flatMap(i=>[...i.requiredScopes]))}}),wwn=e=>ga.gen(function*(){let r=Pst({scopeId:e.scopeId,localScopeState:e.localScopeState});for(let i of r){let l=(yield*e.executorState.providerAuthGrants.listByScopeActorAndProvider({scopeId:i,actorScopeId:e.actorScopeId??null,providerKey:e.providerKey})).find(d=>d.oauthClientId===e.oauthClientId&&kwn(d.grantedScopes,e.requiredScopes));if(l)return G0.some(l)}return G0.none()}),Iwn=e=>ga.gen(function*(){let r=e.existingGrant??null,i=r?.refreshToken??null;if(e.refreshToken!==null&&(i=yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:e.refreshToken,name:`${e.providerKey} Refresh`})),i===null)return yield*_a("sources/source-auth-service",`Provider auth grant for ${e.providerKey} is missing a refresh token`);let s=Date.now(),l={id:r?.id??KN.make(`provider_grant_${crypto.randomUUID()}`),scopeId:e.scopeId,actorScopeId:e.actorScopeId??null,providerKey:e.providerKey,oauthClientId:e.oauthClientId,tokenEndpoint:e.tokenEndpoint,clientAuthentication:e.clientAuthentication,headerName:e.headerName,prefix:e.prefix,refreshToken:i,grantedScopes:[...v9([...r?.grantedScopes??[],...e.grantedScopes])],lastRefreshedAt:r?.lastRefreshedAt??null,orphanedAt:null,createdAt:r?.createdAt??s,updatedAt:s};return yield*e.executorState.providerAuthGrants.upsert(l),r?.refreshToken&&(r.refreshToken.providerId!==i.providerId||r.refreshToken.handle!==i.handle)&&(yield*e.deleteSecretMaterial(r.refreshToken).pipe(ga.either,ga.ignore)),l}),sYt=e=>ga.gen(function*(){let r=l0(e.source),i=r.getOauth2SetupConfig?yield*r.getOauth2SetupConfig({source:e.source,slot:"runtime"}):null;if(i===null)return null;let s=yield*Ewn({executorState:e.executorState,source:e.source});if(s===null)return null;let l=Fj.make(`src_auth_${crypto.randomUUID()}`),d=crypto.randomUUID(),h=GXt({baseUrl:e.baseUrl,scopeId:e.source.scopeId,sourceId:e.source.id}),b=(e.redirectModeOverride??s.redirectMode)==="loopback"?yield*xst({completionUrl:h}):null,A=b?.redirectUri??h,L=dQe();return yield*ga.gen(function*(){let V=fQe({authorizationEndpoint:i.authorizationEndpoint,clientId:s.clientId,redirectUri:A,scopes:[...i.scopes],state:d,codeVerifier:L,extraParams:i.authorizationParams}),j=Date.now();return yield*e.executorState.sourceAuthSessions.upsert({id:l,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,credentialSlot:"runtime",executionId:e.executionId??null,interactionId:e.interactionId??null,providerKind:"oauth2_pkce",status:"pending",state:d,sessionDataJson:XXt({kind:"oauth2_pkce",providerKey:i.providerKey,authorizationEndpoint:i.authorizationEndpoint,tokenEndpoint:i.tokenEndpoint,redirectUri:A,clientId:s.clientId,clientAuthentication:i.clientAuthentication,clientSecret:s.clientSecret,scopes:[...i.scopes],headerName:i.headerName,prefix:i.prefix,authorizationParams:{...i.authorizationParams},codeVerifier:L,authorizationUrl:V}),errorText:null,completedAt:null,createdAt:j,updatedAt:j}),{kind:"oauth_required",source:yield*nS(e.sourceStore,e.source,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null}),sessionId:l,authorizationUrl:V}}).pipe(ga.onError(()=>b?b.close.pipe(ga.orDie):ga.void))}),Pwn=e=>ga.gen(function*(){if(e.targetSources.length===0)return yield*_a("sources/source-auth-service","Provider OAuth setup requires at least one target source");let r=Fj.make(`src_auth_${crypto.randomUUID()}`),i=crypto.randomUUID(),s=cwn({baseUrl:e.baseUrl,scopeId:e.scopeId}),d=(e.redirectModeOverride??e.scopeOauthClient.redirectMode)==="loopback"?yield*xst({completionUrl:s}):null,h=d?.redirectUri??s,S=dQe();return yield*ga.gen(function*(){let b=fQe({authorizationEndpoint:e.setupConfig.authorizationEndpoint,clientId:e.scopeOauthClient.clientId,redirectUri:h,scopes:[...v9(e.setupConfig.scopes)],state:i,codeVerifier:S,extraParams:e.setupConfig.authorizationParams}),A=Date.now();yield*e.executorState.sourceAuthSessions.upsert({id:r,scopeId:e.scopeId,sourceId:vf.make(`oauth_provider_${crypto.randomUUID()}`),actorScopeId:e.actorScopeId??null,credentialSlot:"runtime",executionId:e.executionId??null,interactionId:e.interactionId??null,providerKind:"oauth2_provider_batch",status:"pending",state:i,sessionDataJson:YXt({kind:"provider_oauth_batch",providerKey:e.setupConfig.providerKey,authorizationEndpoint:e.setupConfig.authorizationEndpoint,tokenEndpoint:e.setupConfig.tokenEndpoint,redirectUri:h,oauthClientId:e.scopeOauthClient.id,clientAuthentication:e.setupConfig.clientAuthentication,scopes:[...v9(e.setupConfig.scopes)],headerName:e.setupConfig.headerName,prefix:e.setupConfig.prefix,authorizationParams:{...e.setupConfig.authorizationParams},targetSources:e.targetSources.map(V=>({sourceId:V.source.id,requiredScopes:[...v9(V.requiredScopes)]})),codeVerifier:S,authorizationUrl:b}),errorText:null,completedAt:null,createdAt:A,updatedAt:A});let L=yield*nS(e.sourceStore,e.targetSources[0].source,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null});return yield*ga.forEach(e.targetSources.slice(1),V=>nS(e.sourceStore,V.source,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null}).pipe(ga.asVoid),{discard:!0}),{sessionId:r,authorizationUrl:b,source:L}}).pipe(ga.onError(()=>d?d.close.pipe(ga.orDie):ga.void))}),cYt=e=>ga.gen(function*(){let r=yield*Awn(e.targets),i=yield*wwn({executorState:e.executorState,scopeId:e.scopeId,actorScopeId:e.actorScopeId,providerKey:r.providerKey,oauthClientId:e.scopeOauthClient.id,requiredScopes:r.scopes,localScopeState:e.localScopeState});if(G0.isSome(i))return{kind:"connected",sources:yield*lYt({sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,actorScopeId:e.actorScopeId,grantId:i.value.id,providerKey:i.value.providerKey,headerName:i.value.headerName,prefix:i.value.prefix,targets:e.targets.map(b=>({source:b.source,requiredScopes:b.requiredScopes}))})};let s=Ru(e.baseUrl),l=s??e.getLocalServerBaseUrl?.()??null;if(l===null)return yield*_a("sources/source-auth-service",`Local executor server base URL is unavailable for ${r.providerKey} OAuth setup`);let d=yield*Pwn({executorState:e.executorState,sourceStore:e.sourceStore,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId,baseUrl:l,redirectModeOverride:s?"app_callback":void 0,scopeOauthClient:e.scopeOauthClient,setupConfig:r,targetSources:e.targets.map(S=>({source:S.source,requiredScopes:S.requiredScopes}))});return{kind:"oauth_required",sources:yield*ga.forEach(e.targets,S=>e.sourceStore.loadSourceById({scopeId:S.source.scopeId,sourceId:S.source.id,actorScopeId:e.actorScopeId}),{discard:!1}),sessionId:d.sessionId,authorizationUrl:d.authorizationUrl}}),lYt=e=>ga.forEach(e.targets,r=>ga.gen(function*(){let i=yield*nS(e.sourceStore,r.source,{actorScopeId:e.actorScopeId,status:"connected",lastError:null,auth:{kind:"provider_grant_ref",grantId:e.grantId,providerKey:e.providerKey,requiredScopes:[...v9(r.requiredScopes)],headerName:e.headerName,prefix:e.prefix}});return yield*e.sourceCatalogSync.sync({source:i,actorScopeId:e.actorScopeId}),i}),{discard:!1}),Nwn=e=>ga.gen(function*(){let r=yield*e.executorState.providerAuthGrants.getById(e.grantId);if(G0.isNone(r)||r.value.scopeId!==e.scopeId)return!1;let i=yield*Pat(e.executorState,{scopeId:e.scopeId,grantId:e.grantId});return yield*ga.forEach(i,s=>ga.gen(function*(){let l=yield*e.sourceStore.loadSourceById({scopeId:s.scopeId,sourceId:s.sourceId,actorScopeId:s.actorScopeId}).pipe(ga.catchAll(()=>ga.succeed(null)));if(l===null){yield*E5(e.executorState,{authArtifactId:s.id},e.deleteSecretMaterial),yield*e.executorState.authArtifacts.removeByScopeSourceAndActor({scopeId:s.scopeId,sourceId:s.sourceId,actorScopeId:s.actorScopeId,slot:s.slot});return}yield*e.sourceStore.persistSource({...l,status:"auth_required",lastError:null,auth:s.slot==="runtime"?{kind:"none"}:l.auth,importAuth:s.slot==="import"?{kind:"none"}:l.importAuth,updatedAt:Date.now()},{actorScopeId:s.actorScopeId}).pipe(ga.asVoid)}),{discard:!0}),yield*GQt(e.executorState,{grant:r.value},e.deleteSecretMaterial),yield*e.executorState.providerAuthGrants.removeById(e.grantId),!0}),JXt=e=>ga.gen(function*(){let r=e.sourceId?null:BXt({endpoint:e.endpoint??null,transport:e.transport??null,command:e.command??null,name:e.name??null}),i=yield*e.sourceId?e.sourceStore.loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId,actorScopeId:e.actorScopeId}).pipe(ga.flatMap(un=>t$(un.kind)?ga.succeed(un):ga.fail(_a("sources/source-auth-service",`Expected MCP source, received ${un.kind}`)))):e.sourceStore.loadSourcesInScope(e.scopeId,{actorScopeId:e.actorScopeId}).pipe(ga.map(un=>un.find(xo=>t$(xo.kind)&&r!==null&&y9(xo.endpoint)===r))),s=i?yield*e$(i):null,l=e.command!==void 0?Ru(e.command):s?.command??null,d=e.transport!==void 0&&e.transport!==null?e.transport:JJ({transport:s?.transport??void 0,command:l??void 0})?"stdio":s?.transport??"auto";if(d==="stdio"&&l===null)return yield*_a("sources/source-auth-service","MCP stdio transport requires a command");let h=BXt({endpoint:e.endpoint??i?.endpoint??null,transport:d,command:l,name:e.name??i?.name??null}),S=Ru(e.name)??i?.name??(d==="stdio"&&l!==null?nwn(l):Cst(h)),b=Ru(e.namespace)??i?.namespace??Dst(S),A=e.enabled??i?.enabled??!0,L=d==="stdio"?null:e.queryParams!==void 0?e.queryParams:s?.queryParams??null,V=d==="stdio"?null:e.headers!==void 0?e.headers:s?.headers??null,j=e.args!==void 0?iwn(e.args):s?.args??null,ie=e.env!==void 0?e.env:s?.env??null,te=e.cwd!==void 0?Ru(e.cwd):s?.cwd??null,X=Date.now(),Re=i?yield*f9({source:i,payload:{name:S,endpoint:h,namespace:b,status:"probing",enabled:A,binding:{transport:d,queryParams:L,headers:V,command:l,args:j,env:ie,cwd:te},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:{kind:"none"},lastError:null},now:X}):yield*dW({scopeId:e.scopeId,sourceId:vf.make(`src_${crypto.randomUUID()}`),payload:{name:S,kind:"mcp",endpoint:h,namespace:b,status:"probing",enabled:A,binding:{transport:d,queryParams:L,headers:V,command:l,args:j,env:ie,cwd:te},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:{kind:"none"}},now:X}),Je=yield*e.sourceStore.persistSource(Re,{actorScopeId:e.actorScopeId});yield*e.sourceCatalogSync.sync({source:Je,actorScopeId:e.actorScopeId});let pt=yield*ga.either(dwn(Je,e.mcpDiscoveryElicitation)),$e=yield*U8.match(pt,{onLeft:()=>ga.succeed(null),onRight:un=>ga.gen(function*(){let xo=yield*nS(e.sourceStore,Je,{actorScopeId:e.actorScopeId,status:"connected",lastError:null,auth:{kind:"none"}}),Lo=yield*ga.either(e.sourceCatalogSync.persistMcpCatalogSnapshotFromManifest({source:xo,manifest:un.manifest}));return yield*U8.match(Lo,{onLeft:yr=>nS(e.sourceStore,xo,{actorScopeId:e.actorScopeId,status:"error",lastError:yr.message}).pipe(ga.zipRight(ga.fail(yr))),onRight:()=>ga.succeed({kind:"connected",source:xo})})})});if($e)return $e;let xt=Ru(e.baseUrl)??e.getLocalServerBaseUrl?.()??null;if(!xt)return yield*_a("sources/source-auth-service","Local executor server base URL is unavailable for source credential setup");let tr=Fj.make(`src_auth_${crypto.randomUUID()}`),ht=crypto.randomUUID(),wt=GXt({baseUrl:xt,scopeId:e.scopeId,sourceId:Je.id}),Ut=yield*epe({endpoint:h,redirectUrl:wt,state:ht}),hr=yield*nS(e.sourceStore,Je,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null}),Hi=Date.now();return yield*e.executorState.sourceAuthSessions.upsert({id:tr,scopeId:e.scopeId,sourceId:hr.id,actorScopeId:e.actorScopeId??null,credentialSlot:"runtime",executionId:e.executionId??null,interactionId:e.interactionId??null,providerKind:"mcp_oauth",status:"pending",state:ht,sessionDataJson:Ast({kind:"mcp_oauth",endpoint:h,redirectUri:wt,scope:null,resourceMetadataUrl:Ut.resourceMetadataUrl,authorizationServerUrl:Ut.authorizationServerUrl,resourceMetadata:Ut.resourceMetadata,authorizationServerMetadata:Ut.authorizationServerMetadata,clientInformation:Ut.clientInformation,codeVerifier:Ut.codeVerifier,authorizationUrl:Ut.authorizationUrl}),errorText:null,completedAt:null,createdAt:Hi,updatedAt:Hi}),{kind:"oauth_required",source:hr,sessionId:tr,authorizationUrl:Ut.authorizationUrl}}),Own=e=>ga.gen(function*(){let r=y9(e.sourceInput.endpoint),i=e.sourceInput.kind==="openapi"?y9(e.sourceInput.specUrl):null,l=(yield*e.sourceStore.loadSourcesInScope(e.sourceInput.scopeId,{actorScopeId:e.sourceInput.actorScopeId})).find(te=>{if(te.kind!==e.sourceInput.kind||y9(te.endpoint)!==r)return!1;if(e.sourceInput.kind==="openapi"){let X=ga.runSync(e$(te));return Ru(X.specUrl)===i}return!0}),d=Ru(e.sourceInput.name)??l?.name??Cst(r),h=Ru(e.sourceInput.namespace)??l?.namespace??Dst(d),S=l?yield*e$(l):null,b=Date.now(),A=yield*wst({existing:l,auth:e.sourceInput.auth,storeSecretMaterial:e.storeSecretMaterial}),L=yield*tYt({sourceKind:e.sourceInput.kind,existing:l,importAuthPolicy:e.sourceInput.importAuthPolicy??null,importAuth:e.sourceInput.importAuth??null,storeSecretMaterial:e.storeSecretMaterial}),V=l?yield*f9({source:l,payload:{name:d,endpoint:r,namespace:h,status:"probing",enabled:!0,binding:e.sourceInput.kind==="openapi"?{specUrl:i,defaultHeaders:S?.defaultHeaders??null}:{defaultHeaders:S?.defaultHeaders??null},importAuthPolicy:L.importAuthPolicy,importAuth:L.importAuth,auth:A,lastError:null},now:b}):yield*dW({scopeId:e.sourceInput.scopeId,sourceId:vf.make(`src_${crypto.randomUUID()}`),payload:{name:d,kind:e.sourceInput.kind,endpoint:r,namespace:h,status:"probing",enabled:!0,binding:e.sourceInput.kind==="openapi"?{specUrl:i,defaultHeaders:S?.defaultHeaders??null}:{defaultHeaders:S?.defaultHeaders??null},importAuthPolicy:L.importAuthPolicy,importAuth:L.importAuth,auth:A},now:b}),j=yield*e.sourceStore.persistSource(V,{actorScopeId:e.sourceInput.actorScopeId});if(rYt({existing:l,explicitAuthProvided:e.sourceInput.auth!==void 0,auth:j.auth})){let te=Ru(e.baseUrl),X=te??e.getLocalServerBaseUrl?.()??null;if(X){let Je=yield*sYt({executorState:e.executorState,sourceStore:e.sourceStore,source:j,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:X,redirectModeOverride:te?"app_callback":void 0,storeSecretMaterial:e.storeSecretMaterial});if(Je)return Je}return{kind:"credential_required",source:yield*nS(e.sourceStore,j,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}),credentialSlot:"runtime"}}let ie=yield*ga.either(e.sourceCatalogSync.sync({source:{...j,status:"connected"},actorScopeId:e.sourceInput.actorScopeId}));return yield*U8.match(ie,{onLeft:te=>S5(te)?nS(e.sourceStore,j,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}).pipe(ga.map(X=>({kind:"credential_required",source:X,credentialSlot:te.slot}))):nS(e.sourceStore,j,{actorScopeId:e.sourceInput.actorScopeId,status:"error",lastError:te.message}).pipe(ga.zipRight(ga.fail(te))),onRight:()=>nS(e.sourceStore,j,{actorScopeId:e.sourceInput.actorScopeId,status:"connected",lastError:null}).pipe(ga.map(te=>({kind:"connected",source:te})))})}).pipe(ga.withSpan("source.connect.http",{attributes:{"executor.source.kind":e.sourceInput.kind,"executor.source.endpoint":e.sourceInput.endpoint,...e.sourceInput.namespace?{"executor.source.namespace":e.sourceInput.namespace}:{},...e.sourceInput.name?{"executor.source.name":e.sourceInput.name}:{}}})),Fwn=e=>ga.gen(function*(){let r=e.sourceInput.service.trim(),i=e.sourceInput.version.trim(),s=y9(Ru(e.sourceInput.discoveryUrl)??HXt(r,i)),d=(yield*e.sourceStore.loadSourcesInScope(e.sourceInput.scopeId,{actorScopeId:e.sourceInput.actorScopeId})).find($e=>{if($e.kind!=="google_discovery")return!1;let xt=$e.binding;return typeof xt.service!="string"||typeof xt.version!="string"?!1:xt.service.trim()===r&&xt.version.trim()===i}),h=Ru(e.sourceInput.name)??d?.name??KXt(r,i),S=Ru(e.sourceInput.namespace)??d?.namespace??QXt(r),b=Array.isArray(d?.binding?.scopes)?d.binding.scopes:[],A=(e.sourceInput.scopes??b).map($e=>$e.trim()).filter($e=>$e.length>0),L=d?yield*e$(d):null,V=Date.now(),j=yield*wst({existing:d,auth:e.sourceInput.auth,storeSecretMaterial:e.storeSecretMaterial}),ie=yield*tYt({sourceKind:e.sourceInput.kind,existing:d,importAuthPolicy:e.sourceInput.importAuthPolicy??null,importAuth:e.sourceInput.importAuth??null,storeSecretMaterial:e.storeSecretMaterial}),te=d?yield*f9({source:d,payload:{name:h,endpoint:s,namespace:S,status:"probing",enabled:!0,binding:{service:r,version:i,discoveryUrl:s,defaultHeaders:L?.defaultHeaders??null,scopes:[...A]},importAuthPolicy:ie.importAuthPolicy,importAuth:ie.importAuth,auth:j,lastError:null},now:V}):yield*dW({scopeId:e.sourceInput.scopeId,sourceId:vf.make(`src_${crypto.randomUUID()}`),payload:{name:h,kind:"google_discovery",endpoint:s,namespace:S,status:"probing",enabled:!0,binding:{service:r,version:i,discoveryUrl:s,defaultHeaders:L?.defaultHeaders??null,scopes:[...A]},importAuthPolicy:ie.importAuthPolicy,importAuth:ie.importAuth,auth:j},now:V}),X=yield*e.sourceStore.persistSource(te,{actorScopeId:e.sourceInput.actorScopeId}),Re=l0(X),Je=yield*aYt(X);if(Je!==null&&e.sourceInput.auth===void 0&&X.auth.kind==="none"){let $e=null;if(e.sourceInput.scopeOauthClientId?$e=yield*Ist({executorState:e.executorState,scopeId:X.scopeId,oauthClientId:e.sourceInput.scopeOauthClientId,providerKey:Je.setupConfig.providerKey,localScopeState:e.localScopeState}):e.sourceInput.oauthClient&&($e=yield*oYt({executorState:e.executorState,scopeId:X.scopeId,providerKey:Je.setupConfig.providerKey,oauthClient:e.sourceInput.oauthClient,label:`${h} OAuth Client`,normalizeOauthClient:Re.normalizeOauthClientInput,storeSecretMaterial:e.storeSecretMaterial})),$e===null)return yield*_a("sources/source-auth-service",`${Je.setupConfig.providerKey} shared auth requires a workspace OAuth client`);let xt=yield*cYt({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,scopeId:X.scopeId,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:e.baseUrl,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeOauthClient:$e,targets:[Je],localScopeState:e.localScopeState});return xt.kind==="connected"?{kind:"connected",source:xt.sources[0]}:{kind:"oauth_required",source:xt.sources[0],sessionId:xt.sessionId,authorizationUrl:xt.authorizationUrl}}if(e.sourceInput.oauthClient&&(yield*Twn({executorState:e.executorState,source:X,oauthClient:e.sourceInput.oauthClient,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial})),rYt({existing:d,explicitAuthProvided:e.sourceInput.auth!==void 0,auth:X.auth})){let $e=Ru(e.baseUrl),xt=$e??e.getLocalServerBaseUrl?.()??null;if(xt){let ht=yield*sYt({executorState:e.executorState,sourceStore:e.sourceStore,source:X,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:xt,redirectModeOverride:$e?"app_callback":void 0,storeSecretMaterial:e.storeSecretMaterial});if(ht)return ht}return{kind:"credential_required",source:yield*nS(e.sourceStore,X,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}),credentialSlot:"runtime"}}let pt=yield*ga.either(e.sourceCatalogSync.sync({source:{...X,status:"connected"},actorScopeId:e.sourceInput.actorScopeId}));return yield*U8.match(pt,{onLeft:$e=>S5($e)?nS(e.sourceStore,X,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}).pipe(ga.map(xt=>({kind:"credential_required",source:xt,credentialSlot:$e.slot}))):nS(e.sourceStore,X,{actorScopeId:e.sourceInput.actorScopeId,status:"error",lastError:$e.message}).pipe(ga.zipRight(ga.fail($e))),onRight:()=>nS(e.sourceStore,X,{actorScopeId:e.sourceInput.actorScopeId,status:"connected",lastError:null}).pipe(ga.map($e=>({kind:"connected",source:$e})))})}),Rwn=e=>ga.gen(function*(){if(e.sourceInput.sources.length===0)return yield*_a("sources/source-auth-service","Google batch connect requires at least one source");let r=yield*e.sourceStore.loadSourcesInScope(e.sourceInput.scopeId,{actorScopeId:e.sourceInput.actorScopeId}),i=yield*ga.forEach(e.sourceInput.sources,d=>ga.gen(function*(){let h=d.service.trim(),S=d.version.trim(),b=y9(Ru(d.discoveryUrl)??HXt(h,S)),A=r.find(pt=>{if(pt.kind!=="google_discovery")return!1;let $e=pt.binding;return typeof $e.service=="string"&&typeof $e.version=="string"&&$e.service.trim()===h&&$e.version.trim()===S}),L=Ru(d.name)??A?.name??KXt(h,S),V=Ru(d.namespace)??A?.namespace??QXt(h),j=v9(d.scopes??(Array.isArray(A?.binding.scopes)?A?.binding.scopes:[])),ie=A?yield*e$(A):null,te=Date.now(),X=A?yield*f9({source:A,payload:{name:L,endpoint:b,namespace:V,status:"probing",enabled:!0,binding:{service:h,version:S,discoveryUrl:b,defaultHeaders:ie?.defaultHeaders??null,scopes:[...j]},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:A.auth.kind==="provider_grant_ref"?A.auth:{kind:"none"},lastError:null},now:te}):yield*dW({scopeId:e.sourceInput.scopeId,sourceId:vf.make(`src_${crypto.randomUUID()}`),payload:{name:L,kind:"google_discovery",endpoint:b,namespace:V,status:"probing",enabled:!0,binding:{service:h,version:S,discoveryUrl:b,defaultHeaders:ie?.defaultHeaders??null,scopes:[...j]},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:{kind:"none"}},now:te}),Re=yield*e.sourceStore.persistSource(X,{actorScopeId:e.sourceInput.actorScopeId}),Je=yield*aYt(Re);return Je===null?yield*_a("sources/source-auth-service",`Source ${Re.id} does not support Google shared auth`):Je}),{discard:!1}),s=yield*Ist({executorState:e.executorState,scopeId:e.sourceInput.scopeId,oauthClientId:e.sourceInput.scopeOauthClientId,providerKey:i[0].setupConfig.providerKey,localScopeState:e.localScopeState});if(s===null)return yield*_a("sources/source-auth-service",`Scope OAuth client not found: ${e.sourceInput.scopeOauthClientId}`);let l=yield*cYt({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,scopeId:e.sourceInput.scopeId,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:e.sourceInput.baseUrl,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeOauthClient:s,targets:i,localScopeState:e.localScopeState});return l.kind==="connected"?{results:l.sources.map(d=>({source:d,status:"connected"})),providerOauthSession:null}:{results:l.sources.map(d=>({source:d,status:"pending_oauth"})),providerOauthSession:{sessionId:l.sessionId,authorizationUrl:l.authorizationUrl,sourceIds:l.sources.map(d=>d.id)}}}),Lwn=(e,r)=>{let i=l=>ga.succeed(l),s=l=>ga.succeed(l);return{getSourceById:({scopeId:l,sourceId:d,actorScopeId:h})=>r(e.sourceStore.loadSourceById({scopeId:l,sourceId:d,actorScopeId:h})),addExecutorSource:(l,d=void 0)=>r((vwn(l)?Fwn({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,sourceInput:l,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,resolveSecretMaterial:e.resolveSecretMaterial,getLocalServerBaseUrl:e.getLocalServerBaseUrl,baseUrl:d?.baseUrl,localScopeState:e.localScopeState}):Swn(l)?Own({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,sourceInput:l,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,resolveSecretMaterial:e.resolveSecretMaterial,getLocalServerBaseUrl:e.getLocalServerBaseUrl,baseUrl:d?.baseUrl,localScopeState:e.localScopeState}):bwn(l)?JXt({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeId:l.scopeId,actorScopeId:l.actorScopeId,executionId:l.executionId,interactionId:l.interactionId,endpoint:l.endpoint,name:l.name,namespace:l.namespace,transport:l.transport,queryParams:l.queryParams,headers:l.headers,command:l.command,args:l.args,env:l.env,cwd:l.cwd,mcpDiscoveryElicitation:d?.mcpDiscoveryElicitation,baseUrl:d?.baseUrl,resolveSecretMaterial:e.resolveSecretMaterial}):ga.fail(_a("sources/source-auth-service",`Unsupported executor source input: ${JSON.stringify(l)}`))).pipe(ga.flatMap(i))),connectGoogleDiscoveryBatch:l=>r(Rwn({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,sourceInput:l,getLocalServerBaseUrl:e.getLocalServerBaseUrl,localScopeState:e.localScopeState})),connectMcpSource:l=>r(JXt({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeId:l.scopeId,actorScopeId:l.actorScopeId,sourceId:l.sourceId,executionId:null,interactionId:null,endpoint:l.endpoint,name:l.name,namespace:l.namespace,enabled:l.enabled,transport:l.transport,queryParams:l.queryParams,headers:l.headers,command:l.command,args:l.args,env:l.env,cwd:l.cwd,baseUrl:l.baseUrl,resolveSecretMaterial:e.resolveSecretMaterial}).pipe(ga.flatMap(s))),listScopeOauthClients:({scopeId:l,providerKey:d})=>r(ga.gen(function*(){let h=Pst({scopeId:l,localScopeState:e.localScopeState}),S=new Map;for(let b of h){let A=yield*e.executorState.scopeOauthClients.listByScopeAndProvider({scopeId:b,providerKey:d});for(let L of A)S.has(L.id)||S.set(L.id,L)}return[...S.values()]})),createScopeOauthClient:({scopeId:l,providerKey:d,label:h,oauthClient:S})=>r(ga.gen(function*(){let b=Tat(d),A=yield*oYt({executorState:e.executorState,scopeId:l,providerKey:d,oauthClient:S,label:h,normalizeOauthClient:b?.normalizeOauthClientInput,storeSecretMaterial:e.storeSecretMaterial}),L=yield*e.executorState.scopeOauthClients.getById(A.id);return G0.isNone(L)?yield*_a("sources/source-auth-service",`Scope OAuth client ${A.id} was not persisted`):L.value})),removeScopeOauthClient:({scopeId:l,oauthClientId:d})=>r(ga.gen(function*(){let h=yield*e.executorState.scopeOauthClients.getById(d);if(G0.isNone(h)||h.value.scopeId!==l)return!1;let b=(yield*e.executorState.providerAuthGrants.listByScopeId(l)).find(V=>V.oauthClientId===d);if(b)return yield*_a("sources/source-auth-service",`Scope OAuth client ${d} is still referenced by provider grant ${b.id}`);let A=GIe(h.value),L=yield*e.executorState.scopeOauthClients.removeById(d);return L&&A&&(yield*e.deleteSecretMaterial(A).pipe(ga.either,ga.ignore)),L})),removeProviderAuthGrant:({scopeId:l,grantId:d})=>r(Nwn({executorState:e.executorState,sourceStore:e.sourceStore,scopeId:l,grantId:d,deleteSecretMaterial:e.deleteSecretMaterial}))}},Mwn=(e,r)=>({startSourceOAuthSession:i=>ga.gen(function*(){let s=Ru(i.baseUrl)??e.getLocalServerBaseUrl?.()??null;if(!s)return yield*_a("sources/source-auth-service","Local executor server base URL is unavailable for OAuth setup");let l=Fj.make(`src_auth_${crypto.randomUUID()}`),d=pwn({displayName:i.displayName}),h=swn({baseUrl:s}),S=y9(i.provider.endpoint),b=yield*epe({endpoint:S,redirectUrl:h,state:d}),A=Date.now();return yield*e.executorState.sourceAuthSessions.upsert({id:l,scopeId:i.scopeId,sourceId:vf.make(`oauth_draft_${crypto.randomUUID()}`),actorScopeId:i.actorScopeId??null,credentialSlot:"runtime",executionId:null,interactionId:null,providerKind:"mcp_oauth",status:"pending",state:d,sessionDataJson:Ast({kind:"mcp_oauth",endpoint:S,redirectUri:h,scope:i.provider.kind,resourceMetadataUrl:b.resourceMetadataUrl,authorizationServerUrl:b.authorizationServerUrl,resourceMetadata:b.resourceMetadata,authorizationServerMetadata:b.authorizationServerMetadata,clientInformation:b.clientInformation,codeVerifier:b.codeVerifier,authorizationUrl:b.authorizationUrl}),errorText:null,completedAt:null,createdAt:A,updatedAt:A}),{sessionId:l,authorizationUrl:b.authorizationUrl}}),completeSourceOAuthSession:({state:i,code:s,error:l,errorDescription:d})=>r(ga.gen(function*(){let h=yield*e.executorState.sourceAuthSessions.getByState(i);if(G0.isNone(h))return yield*_a("sources/source-auth-service",`Source auth session not found for state ${i}`);let S=h.value,b=VIe(S);if(S.status==="completed")return yield*_a("sources/source-auth-service",`Source auth session ${S.id} is already completed`);if(S.status!=="pending")return yield*_a("sources/source-auth-service",`Source auth session ${S.id} is not pending`);if(Ru(l)!==null){let X=Ru(d)??Ru(l)??"OAuth authorization failed",Re=Date.now();return yield*e.executorState.sourceAuthSessions.update(S.id,vW({sessionDataJson:S.sessionDataJson,status:"failed",now:Re,errorText:X})),yield*_a("sources/source-auth-service",X)}let A=Ru(s);if(A===null)return yield*_a("sources/source-auth-service","Missing OAuth authorization code");if(b.codeVerifier===null)return yield*_a("sources/source-auth-service","OAuth session is missing the PKCE code verifier");if(b.scope!==null&&b.scope!=="mcp")return yield*_a("sources/source-auth-service",`Unsupported OAuth provider: ${b.scope}`);let L=yield*jKe({session:{endpoint:b.endpoint,redirectUrl:b.redirectUri,codeVerifier:b.codeVerifier,resourceMetadataUrl:b.resourceMetadataUrl,authorizationServerUrl:b.authorizationServerUrl,resourceMetadata:b.resourceMetadata,authorizationServerMetadata:b.authorizationServerMetadata,clientInformation:b.clientInformation},code:A}),V=$Xt({displayName:_wn(S.state),endpoint:b.endpoint}),j=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:L.tokens.access_token,name:V}),ie=L.tokens.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:L.tokens.refresh_token,name:`${V} Refresh`}):null,te={kind:"oauth2",headerName:"Authorization",prefix:"Bearer ",accessToken:j,refreshToken:ie};return yield*e.executorState.sourceAuthSessions.update(S.id,vW({sessionDataJson:UXt({session:S,patch:{codeVerifier:null,authorizationUrl:null,resourceMetadataUrl:L.resourceMetadataUrl,authorizationServerUrl:L.authorizationServerUrl,resourceMetadata:L.resourceMetadata,authorizationServerMetadata:L.authorizationServerMetadata}}),status:"completed",now:Date.now(),errorText:null})),{sessionId:S.id,auth:te}})),completeProviderOauthCallback:({scopeId:i,actorScopeId:s,state:l,code:d,error:h,errorDescription:S})=>r(ga.gen(function*(){let b=yield*e.executorState.sourceAuthSessions.getByState(l);if(G0.isNone(b))return yield*_a("sources/source-auth-service",`Source auth session not found for state ${l}`);let A=b.value;if(A.scopeId!==i)return yield*_a("sources/source-auth-service",`Source auth session ${A.id} does not match scopeId=${i}`);if((A.actorScopeId??null)!==(s??null))return yield*_a("sources/source-auth-service",`Source auth session ${A.id} does not match the active account`);if(A.providerKind!=="oauth2_provider_batch")return yield*_a("sources/source-auth-service",`Source auth session ${A.id} is not a provider batch OAuth session`);if(A.status==="completed"){let tr=kst(A),ht=yield*ga.forEach(tr.targetSources,wt=>e.sourceStore.loadSourceById({scopeId:i,sourceId:wt.sourceId,actorScopeId:s}),{discard:!1});return{sessionId:A.id,sources:ht}}if(A.status!=="pending")return yield*_a("sources/source-auth-service",`Source auth session ${A.id} is not pending`);let L=kst(A);if(Ru(h)!==null){let tr=Ru(S)??Ru(h)??"OAuth authorization failed";return yield*e.executorState.sourceAuthSessions.update(A.id,vW({sessionDataJson:A.sessionDataJson,status:"failed",now:Date.now(),errorText:tr})),yield*_a("sources/source-auth-service",tr)}let V=Ru(d);if(V===null)return yield*_a("sources/source-auth-service","Missing OAuth authorization code");if(L.codeVerifier===null)return yield*_a("sources/source-auth-service","OAuth session is missing the PKCE code verifier");let j=yield*Ist({executorState:e.executorState,scopeId:i,oauthClientId:L.oauthClientId,providerKey:L.providerKey,localScopeState:e.localScopeState});if(j===null)return yield*_a("sources/source-auth-service",`Scope OAuth client not found: ${L.oauthClientId}`);let ie=null;j.clientSecret&&(ie=yield*e.resolveSecretMaterial({ref:j.clientSecret}));let te=yield*mQe({tokenEndpoint:L.tokenEndpoint,clientId:j.clientId,clientAuthentication:L.clientAuthentication,clientSecret:ie,redirectUri:L.redirectUri,codeVerifier:L.codeVerifier??"",code:V}),Re=(yield*e.executorState.providerAuthGrants.listByScopeActorAndProvider({scopeId:i,actorScopeId:s??null,providerKey:L.providerKey})).find(tr=>tr.oauthClientId===L.oauthClientId)??null,Je=v9(Ru(te.scope)?te.scope.split(/\s+/):L.scopes),pt=yield*Iwn({executorState:e.executorState,scopeId:i,actorScopeId:s,providerKey:L.providerKey,oauthClientId:L.oauthClientId,tokenEndpoint:L.tokenEndpoint,clientAuthentication:L.clientAuthentication,headerName:L.headerName,prefix:L.prefix,grantedScopes:Je,refreshToken:Ru(te.refresh_token),existingGrant:Re,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial}),$e=yield*ga.forEach(L.targetSources,tr=>ga.map(e.sourceStore.loadSourceById({scopeId:i,sourceId:tr.sourceId,actorScopeId:s}),ht=>({source:ht,requiredScopes:tr.requiredScopes})),{discard:!1}),xt=yield*lYt({sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,actorScopeId:s,grantId:pt.id,providerKey:pt.providerKey,headerName:pt.headerName,prefix:pt.prefix,targets:$e});return yield*e.executorState.sourceAuthSessions.update(A.id,vW({sessionDataJson:ywn({session:A,patch:{codeVerifier:null,authorizationUrl:null}}),status:"completed",now:Date.now(),errorText:null})),{sessionId:A.id,sources:xt}})),completeSourceCredentialSetup:({scopeId:i,sourceId:s,actorScopeId:l,state:d,code:h,error:S,errorDescription:b})=>r(ga.gen(function*(){let A=yield*e.executorState.sourceAuthSessions.getByState(d);if(G0.isNone(A))return yield*_a("sources/source-auth-service",`Source auth session not found for state ${d}`);let L=A.value;if(L.scopeId!==i||L.sourceId!==s)return yield*_a("sources/source-auth-service",`Source auth session ${L.id} does not match scopeId=${i} sourceId=${s}`);if(l!==void 0&&(L.actorScopeId??null)!==(l??null))return yield*_a("sources/source-auth-service",`Source auth session ${L.id} does not match the active account`);let V=yield*e.sourceStore.loadSourceById({scopeId:L.scopeId,sourceId:L.sourceId,actorScopeId:L.actorScopeId});if(L.status==="completed")return{sessionId:L.id,source:V};if(L.status!=="pending")return yield*_a("sources/source-auth-service",`Source auth session ${L.id} is not pending`);let j=L.providerKind==="oauth2_pkce"?Est(L):VIe(L);if(Ru(S)!==null){let Je=Ru(b)??Ru(S)??"OAuth authorization failed",pt=Date.now();yield*e.executorState.sourceAuthSessions.update(L.id,vW({sessionDataJson:L.sessionDataJson,status:"failed",now:pt,errorText:Je}));let $e=yield*nS(e.sourceStore,V,{actorScopeId:L.actorScopeId,status:"error",lastError:Je});return yield*e.sourceCatalogSync.sync({source:$e,actorScopeId:L.actorScopeId}),yield*zXt({executorState:e.executorState,liveExecutionManager:e.liveExecutionManager,session:L,response:{action:"cancel",reason:Je}}),yield*_a("sources/source-auth-service",Je)}let ie=Ru(h);if(ie===null)return yield*_a("sources/source-auth-service","Missing OAuth authorization code");if(j.codeVerifier===null)return yield*_a("sources/source-auth-service","OAuth session is missing the PKCE code verifier");let te=Date.now(),X;if(L.providerKind==="oauth2_pkce"){let Je=Est(L),pt=null;Je.clientSecret&&(pt=yield*e.resolveSecretMaterial({ref:Je.clientSecret}));let $e=yield*mQe({tokenEndpoint:Je.tokenEndpoint,clientId:Je.clientId,clientAuthentication:Je.clientAuthentication,clientSecret:pt,redirectUri:Je.redirectUri,codeVerifier:Je.codeVerifier??"",code:ie}),xt=Ru($e.refresh_token);if(xt===null)return yield*_a("sources/source-auth-service","OAuth authorization did not return a refresh token");let tr=yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:xt,name:`${V.name} Refresh`}),ht=Ru($e.scope)?$e.scope.split(/\s+/).filter(Ut=>Ut.length>0):[...Je.scopes];X=yield*nS(e.sourceStore,V,{actorScopeId:L.actorScopeId,status:"connected",lastError:null,auth:{kind:"oauth2_authorized_user",headerName:Je.headerName,prefix:Je.prefix,tokenEndpoint:Je.tokenEndpoint,clientId:Je.clientId,clientAuthentication:Je.clientAuthentication,clientSecret:Je.clientSecret,refreshToken:tr,grantSet:ht}});let wt=yield*e.executorState.authArtifacts.getByScopeSourceAndActor({scopeId:X.scopeId,sourceId:X.id,actorScopeId:L.actorScopeId??null,slot:"runtime"});G0.isSome(wt)&&(yield*_5t({executorState:e.executorState,artifact:wt.value,tokenResponse:$e,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial})),yield*e.executorState.sourceAuthSessions.update(L.id,vW({sessionDataJson:hwn({session:L,patch:{codeVerifier:null,authorizationUrl:null}}),status:"completed",now:te,errorText:null}))}else{let Je=VIe(L),pt=yield*jKe({session:{endpoint:Je.endpoint,redirectUrl:Je.redirectUri,codeVerifier:Je.codeVerifier??"",resourceMetadataUrl:Je.resourceMetadataUrl,authorizationServerUrl:Je.authorizationServerUrl,resourceMetadata:Je.resourceMetadata,authorizationServerMetadata:Je.authorizationServerMetadata,clientInformation:Je.clientInformation},code:ie}),$e=$Xt({displayName:V.name,endpoint:V.endpoint}),xt=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:pt.tokens.access_token,name:$e}),tr=pt.tokens.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:pt.tokens.refresh_token,name:`${$e} Refresh`}):null;X=yield*nS(e.sourceStore,V,{actorScopeId:L.actorScopeId,status:"connected",lastError:null,auth:l5t({redirectUri:Je.redirectUri,accessToken:xt,refreshToken:tr,tokenType:pt.tokens.token_type,expiresIn:typeof pt.tokens.expires_in=="number"&&Number.isFinite(pt.tokens.expires_in)?pt.tokens.expires_in:null,scope:pt.tokens.scope??null,resourceMetadataUrl:pt.resourceMetadataUrl,authorizationServerUrl:pt.authorizationServerUrl,resourceMetadata:pt.resourceMetadata,authorizationServerMetadata:pt.authorizationServerMetadata,clientInformation:pt.clientInformation})}),yield*e.executorState.sourceAuthSessions.update(L.id,vW({sessionDataJson:UXt({session:L,patch:{codeVerifier:null,authorizationUrl:null,resourceMetadataUrl:pt.resourceMetadataUrl,authorizationServerUrl:pt.authorizationServerUrl,resourceMetadata:pt.resourceMetadata,authorizationServerMetadata:pt.authorizationServerMetadata}}),status:"completed",now:te,errorText:null}))}let Re=yield*ga.either(e.sourceCatalogSync.sync({source:X,actorScopeId:L.actorScopeId}));return yield*U8.match(Re,{onLeft:Je=>nS(e.sourceStore,X,{actorScopeId:L.actorScopeId,status:"error",lastError:Je.message}).pipe(ga.zipRight(ga.fail(Je))),onRight:()=>ga.succeed(void 0)}),yield*zXt({executorState:e.executorState,liveExecutionManager:e.liveExecutionManager,session:L,response:{action:"accept"}}),{sessionId:L.id,source:X}}))}),jwn=e=>{let r=l=>SB(l,e.localScopeState),i=Lwn(e,r),s=Mwn(e,r);return{getLocalServerBaseUrl:()=>e.getLocalServerBaseUrl?.()??null,storeSecretMaterial:({purpose:l,value:d})=>e.storeSecretMaterial({purpose:l,value:d}),...i,...s}},l4=class extends VXt.Tag("#runtime/RuntimeSourceAuthServiceTag")(){},uYt=(e={})=>WXt.effect(l4,ga.gen(function*(){let r=yield*dm,i=yield*BD,s=yield*uy,l=yield*SI,d=yield*Xw,h=yield*dk,S=yield*bT,b=yield*bB();return jwn({executorState:r,liveExecutionManager:i,sourceStore:s,sourceCatalogSync:l,resolveSecretMaterial:d,storeSecretMaterial:h,deleteSecretMaterial:S,getLocalServerBaseUrl:e.getLocalServerBaseUrl,localScopeState:b??void 0})})),Lri=ef.Union(ef.Struct({kind:ef.Literal("connected"),source:XN}),ef.Struct({kind:ef.Literal("credential_required"),source:XN,credentialSlot:ef.Literal("runtime","import")}),ef.Struct({kind:ef.Literal("oauth_required"),source:XN,sessionId:Fj,authorizationUrl:ef.String}));import*as pYt from"effect/Context";import*as HIe from"effect/Effect";import*as _Yt from"effect/Layer";var S9=class extends pYt.Tag("#runtime/LocalToolRuntimeLoaderService")(){},jri=_Yt.effect(S9,HIe.succeed(S9.of({load:()=>HIe.die(new Error("LocalToolRuntimeLoaderLive is unsupported; provide a bound local tool runtime loader from the host adapter."))})));var Bwn=()=>({tools:{},catalog:Z7({tools:{}}),toolInvoker:Q7({tools:{}}),toolPaths:new Set}),$wn=e=>({scopeId:r,actorScopeId:i,onElicitation:s})=>Nst.gen(function*(){let l=yield*bB(),d=l===null?null:yield*e.scopeConfigStore.load(),h=l===null?Bwn():yield*e.localToolRuntimeLoader.load(),{catalog:S,toolInvoker:b}=MXt({scopeId:r,actorScopeId:i,executorStateStore:e.executorStateStore,sourceStore:e.sourceStore,sourceCatalogSyncService:e.sourceCatalogSyncService,sourceCatalogStore:e.sourceCatalogStore,installationStore:e.installationStore,instanceConfigResolver:e.instanceConfigResolver,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,updateSecretMaterial:e.updateSecretMaterial,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,sourceAuthMaterialService:e.sourceAuthMaterialService,sourceAuthService:e.sourceAuthService,runtimeLocalScope:l,localToolRuntime:h,createInternalToolMap:e.createInternalToolMap,onElicitation:s});return{executor:cst(sst(d?.config)),toolInvoker:b,catalog:S}}),c$=class extends dYt.Tag("#runtime/RuntimeExecutionResolverService")(){},fYt=(e={})=>e.executionResolver?KIe.succeed(c$,e.executionResolver):KIe.effect(c$,Nst.gen(function*(){let r=yield*dm,i=yield*uy,s=yield*SI,l=yield*qj,d=yield*l4,h=yield*r$,S=yield*S9,b=yield*FV,A=yield*r8,L=yield*dk,V=yield*bT,j=yield*t8,ie=yield*OD,te=yield*lx,X=yield*ux;return $wn({executorStateStore:r,sourceStore:i,sourceCatalogSyncService:s,sourceAuthService:d,sourceAuthMaterialService:l,sourceCatalogStore:h,localToolRuntimeLoader:S,installationStore:b,instanceConfigResolver:A,storeSecretMaterial:L,deleteSecretMaterial:V,updateSecretMaterial:j,scopeConfigStore:ie,scopeStateStore:te,sourceArtifactStore:X,createInternalToolMap:e.createInternalToolMap})}));import*as hYt from"effect/Data";var mYt=class extends hYt.TaggedError("ResumeUnsupportedError"){};import*as dx from"effect/Effect";var QIe={bundle:sg("sources.inspect.bundle"),tool:sg("sources.inspect.tool"),discover:sg("sources.inspect.discover")},tte=e=>e.trim().toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),Uwn=e=>e.status==="draft"||e.status==="probing"||e.status==="auth_required",zwn=e=>dx.gen(function*(){let i=yield*(yield*uy).loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId});return Uwn(i)?i:yield*e.cause}),yYt=e=>bZt({scopeId:e.scopeId,sourceId:e.sourceId}).pipe(dx.map(r=>({kind:"catalog",catalogEntry:r})),dx.catchTag("LocalSourceArtifactMissingError",r=>dx.gen(function*(){return{kind:"empty",source:yield*zwn({scopeId:e.scopeId,sourceId:e.sourceId,cause:r})}}))),Fst=e=>{let r=e.executable.display??{};return{protocol:r.protocol??e.executable.adapterKey,method:r.method??null,pathTemplate:r.pathTemplate??null,rawToolId:r.rawToolId??e.path.split(".").at(-1)??null,operationId:r.operationId??null,group:r.group??null,leaf:r.leaf??e.path.split(".").at(-1)??null,tags:e.capability.surface.tags??[]}},qwn=e=>({path:e.path,method:Fst(e).method,...e.descriptor.contract?.inputTypePreview?{inputTypePreview:e.descriptor.contract.inputTypePreview}:{},...e.descriptor.contract?.outputTypePreview?{outputTypePreview:e.descriptor.contract.outputTypePreview}:{}}),vYt=e=>{let r=Fst(e);return{path:e.path,sourceKey:e.source.id,...e.capability.surface.title?{title:e.capability.surface.title}:{},...e.capability.surface.summary||e.capability.surface.description?{description:e.capability.surface.summary??e.capability.surface.description}:{},protocol:r.protocol,toolId:e.path.split(".").at(-1)??e.path,rawToolId:r.rawToolId,operationId:r.operationId,group:r.group,leaf:r.leaf,tags:[...r.tags],method:r.method,pathTemplate:r.pathTemplate,...e.descriptor.contract?.inputTypePreview?{inputTypePreview:e.descriptor.contract.inputTypePreview}:{},...e.descriptor.contract?.outputTypePreview?{outputTypePreview:e.descriptor.contract.outputTypePreview}:{}}},gYt=e=>e==="graphql"||e==="yaml"||e==="json"||e==="text"?e:"json",Ost=(e,r)=>r==null?null:{kind:"code",title:e,language:"json",body:JSON.stringify(r,null,2)},Jwn=e=>dx.gen(function*(){let r=vYt(e),i=Fst(e),s=yield*xZt(e),l=[{label:"Protocol",value:i.protocol},...i.method?[{label:"Method",value:i.method,mono:!0}]:[],...i.pathTemplate?[{label:"Target",value:i.pathTemplate,mono:!0}]:[],...i.operationId?[{label:"Operation",value:i.operationId,mono:!0}]:[],...i.group?[{label:"Group",value:i.group,mono:!0}]:[],...i.leaf?[{label:"Leaf",value:i.leaf,mono:!0}]:[],...i.rawToolId?[{label:"Raw tool",value:i.rawToolId,mono:!0}]:[],{label:"Signature",value:s.callSignature,mono:!0},{label:"Call shape",value:s.callShapeId,mono:!0},...s.resultShapeId?[{label:"Result shape",value:s.resultShapeId,mono:!0}]:[],{label:"Response set",value:s.responseSetId,mono:!0}],d=[...(e.capability.native??[]).map((S,b)=>({kind:"code",title:`Capability native ${String(b+1)}: ${S.kind}`,language:gYt(S.encoding),body:typeof S.value=="string"?S.value:JSON.stringify(S.value??null,null,2)})),...(e.executable.native??[]).map((S,b)=>({kind:"code",title:`Executable native ${String(b+1)}: ${S.kind}`,language:gYt(S.encoding),body:typeof S.value=="string"?S.value:JSON.stringify(S.value??null,null,2)}))],h=[{kind:"facts",title:"Overview",items:l},...r.description?[{kind:"markdown",title:"Description",body:r.description}]:[],...[Ost("Capability",e.capability),Ost("Executable",{id:e.executable.id,adapterKey:e.executable.adapterKey,bindingVersion:e.executable.bindingVersion,binding:e.executable.binding,projection:e.executable.projection,display:e.executable.display??null}),Ost("Documentation",{summary:e.capability.surface.summary,description:e.capability.surface.description})].filter(S=>S!==null),...d];return{summary:r,contract:s,sections:h}}),SYt=e=>dx.gen(function*(){let r=yield*yYt({scopeId:e.scopeId,sourceId:e.sourceId});if(r.kind==="empty")return{source:r.source,namespace:r.source.namespace??"",pipelineKind:"ir",tools:[]};let i=yield*Lat({catalogs:[r.catalogEntry],includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews});return{source:r.catalogEntry.source,namespace:r.catalogEntry.source.namespace??"",pipelineKind:"ir",tools:i}}),Vwn=e=>dx.gen(function*(){let r=yield*yYt({scopeId:e.scopeId,sourceId:e.sourceId});if(r.kind==="empty")return{source:r.source,namespace:r.source.namespace??"",pipelineKind:"ir",tool:null};let i=yield*Mat({catalogs:[r.catalogEntry],path:e.toolPath,includeSchemas:!0,includeTypePreviews:!1});return{source:r.catalogEntry.source,namespace:r.catalogEntry.source.namespace??"",pipelineKind:"ir",tool:i}}),Wwn=e=>{let r=0,i=[],s=vYt(e.tool),l=tte(s.path),d=tte(s.title??""),h=tte(s.description??""),S=s.tags.flatMap(tte),b=tte(`${s.method??""} ${s.pathTemplate??""}`);for(let A of e.queryTokens){if(l.includes(A)){r+=12,i.push(`path matches ${A} (+12)`);continue}if(S.includes(A)){r+=10,i.push(`tag matches ${A} (+10)`);continue}if(d.includes(A)){r+=8,i.push(`title matches ${A} (+8)`);continue}if(b.includes(A)){r+=6,i.push(`method/path matches ${A} (+6)`);continue}(h.includes(A)||e.tool.searchText.includes(A))&&(r+=2,i.push(`description/text matches ${A} (+2)`))}return r<=0?null:{path:e.tool.path,score:r,...s.description?{description:s.description}:{},...s.inputTypePreview?{inputTypePreview:s.inputTypePreview}:{},...s.outputTypePreview?{outputTypePreview:s.outputTypePreview}:{},reasons:i}},Rst=(e,r,i)=>r instanceof g9||r instanceof a$?r:e.unknownStorage(r,i),bYt=e=>dx.gen(function*(){let r=yield*SYt({...e,includeSchemas:!1,includeTypePreviews:!1});return{source:r.source,namespace:r.namespace,pipelineKind:r.pipelineKind,toolCount:r.tools.length,tools:r.tools.map(i=>qwn(i))}}).pipe(dx.mapError(r=>Rst(QIe.bundle,r,"Failed building source inspection bundle"))),xYt=e=>dx.gen(function*(){let i=(yield*Vwn({scopeId:e.scopeId,sourceId:e.sourceId,toolPath:e.toolPath})).tool;return i?yield*Jwn(i):yield*QIe.tool.notFound("Tool not found",`scopeId=${e.scopeId} sourceId=${e.sourceId} path=${e.toolPath}`)}).pipe(dx.mapError(r=>Rst(QIe.tool,r,"Failed building source inspection tool detail"))),TYt=e=>dx.gen(function*(){let r=yield*SYt({scopeId:e.scopeId,sourceId:e.sourceId,includeSchemas:!1,includeTypePreviews:!1}),i=tte(e.payload.query),s=r.tools.map(l=>Wwn({queryTokens:i,tool:l})).filter(l=>l!==null).sort((l,d)=>d.score-l.score||l.path.localeCompare(d.path)).slice(0,e.payload.limit??12);return{query:e.payload.query,queryTokens:i,bestPath:s[0]?.path??null,total:s.length,results:s}}).pipe(dx.mapError(r=>Rst(QIe.discover,r,"Failed building source inspection discovery")));import*as ZIe from"effect/Effect";var Gwn=vIe,Hwn=Gwn.filter(e=>e.detectSource!==void 0),EYt=e=>ZIe.gen(function*(){let r=yield*ZIe.try({try:()=>cFt(e.url),catch:l=>l instanceof Error?l:new Error(String(l))}),i=uFt(e.probeAuth),s=[...Hwn].sort((l,d)=>(d.discoveryPriority?.({normalizedUrl:r})??0)-(l.discoveryPriority?.({normalizedUrl:r})??0));for(let l of s){let d=yield*l.detectSource({normalizedUrl:r,headers:i});if(d)return d}return _Ft(r)});import*as kYt from"effect/Data";import*as CYt from"effect/Deferred";import*as e_ from"effect/Effect";import*as fx from"effect/Option";import*as Ik from"effect/Schema";var u4={create:sg("executions.create"),get:sg("executions.get"),resume:sg("executions.resume")},Lst="__EXECUTION_SUSPENDED__",DYt="detach",rte=e=>e===void 0?null:JSON.stringify(e),Kwn=e=>JSON.stringify(e===void 0?null:e),Qwn=e=>{if(e!==null)return JSON.parse(e)},Zwn=Ik.Literal("accept","decline","cancel"),Xwn=Ik.Struct({action:Zwn,content:Ik.optional(Ik.Record({key:Ik.String,value:Ik.Unknown}))}),AYt=Ik.decodeUnknown(Xwn),Ywn=e=>{let r=0;return{invoke:({path:i,args:s,context:l})=>(r+=1,e.toolInvoker.invoke({path:i,args:s,context:{...l,runId:e.executionId,callId:typeof l?.callId=="string"&&l.callId.length>0?l.callId:`call_${String(r)}`,executionStepSequence:r}}))}},Mst=e=>{let r=e?.executionStepSequence;return typeof r=="number"&&Number.isSafeInteger(r)&&r>0?r:null},eIn=(e,r)=>Hke.make(`${e}:step:${String(r)}`),wYt=e=>{let r=typeof e.context?.callId=="string"&&e.context.callId.length>0?e.context.callId:null;return r===null?e.interactionId:`${r}:${e.path}`},tIn=e=>L2.make(`${e.executionId}:${wYt(e)}`),IYt=e=>e==="live"||e==="live_form"?e:DYt,XIe=class extends kYt.TaggedError("ExecutionSuspendedError"){},rIn=e=>new XIe({executionId:e.executionId,interactionId:e.interactionId,message:`${Lst}:${e.executionId}:${e.interactionId}`}),PYt=e=>e instanceof XIe?!0:e instanceof Error?e.message.includes(Lst):typeof e=="string"&&e.includes(Lst),NYt=e=>e_.try({try:()=>{if(e.responseJson===null)throw new Error(`Interaction ${e.interactionId} has no stored response`);return JSON.parse(e.responseJson)},catch:r=>r instanceof Error?r:new Error(String(r))}).pipe(e_.flatMap(r=>AYt(r).pipe(e_.mapError(i=>new Error(String(i)))))),nIn=e=>{if(!(e.expectedPath===e.actualPath&&e.expectedArgsJson===e.actualArgsJson))throw new Error([`Durable execution mismatch for ${e.executionId} at tool step ${String(e.sequence)}.`,`Expected ${e.expectedPath}(${e.expectedArgsJson}) but replay reached ${e.actualPath}(${e.actualArgsJson}).`].join(" "))},iIn=(e,r)=>e_.gen(function*(){let i=Mfe(r.operation),s=yield*i.mapStorage(e.executions.getByScopeAndId(r.scopeId,r.executionId));return fx.isNone(s)?yield*i.notFound("Execution not found",`scopeId=${r.scopeId} executionId=${r.executionId}`):s.value}),YIe=(e,r)=>e_.gen(function*(){let i=Mfe(r.operation),s=yield*iIn(e,r),l=yield*i.child("pending_interaction").mapStorage(e.executionInteractions.getPendingByExecutionId(r.executionId));return{execution:s,pendingInteraction:fx.isSome(l)?l.value:null}}),OYt=(e,r)=>e_.gen(function*(){let i=yield*YIe(e,r);return i.execution.status!=="running"&&!(i.execution.status==="waiting_for_interaction"&&(i.pendingInteraction===null||i.pendingInteraction.id===r.previousPendingInteractionId))||r.attemptsRemaining<=0?i:(yield*e_.promise(()=>new Promise(s=>setTimeout(s,25))),yield*OYt(e,{...r,attemptsRemaining:r.attemptsRemaining-1}))}),oIn=e=>e_.gen(function*(){let r=Date.now(),i=yield*e.executorState.executionInteractions.getById(e.interactionId),s=Mst(e.request.context);return fx.isSome(i)&&i.value.status!=="pending"?yield*NYt({interactionId:e.interactionId,responseJson:i.value.responsePrivateJson??i.value.responseJson}):(fx.isNone(i)&&(yield*e.executorState.executionInteractions.insert({id:L2.make(e.interactionId),executionId:e.executionId,status:"pending",kind:e.request.elicitation.mode==="url"?"url":"form",purpose:"elicitation",payloadJson:rte({path:e.request.path,sourceKey:e.request.sourceKey,args:e.request.args,context:e.request.context,elicitation:e.request.elicitation})??"{}",responseJson:null,responsePrivateJson:null,createdAt:r,updatedAt:r})),s!==null&&(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,s,{status:"waiting",interactionId:L2.make(e.interactionId),updatedAt:r})),yield*e.executorState.executions.update(e.executionId,{status:"waiting_for_interaction",updatedAt:r}),yield*e.liveExecutionManager.publishState({executionId:e.executionId,state:"waiting_for_interaction"}),yield*rIn({executionId:e.executionId,interactionId:e.interactionId}))}),aIn=e=>{let r=e.liveExecutionManager.createOnElicitation({executorState:e.executorState,executionId:e.executionId});return i=>e_.gen(function*(){let s=wYt({interactionId:i.interactionId,path:i.path,context:i.context}),l=tIn({executionId:e.executionId,interactionId:i.interactionId,path:i.path,context:i.context}),d=yield*e.executorState.executionInteractions.getById(l);if(fx.isSome(d)&&d.value.status!=="pending")return yield*NYt({interactionId:l,responseJson:d.value.responsePrivateJson??d.value.responseJson});let h=e.interactionMode==="live"||e.interactionMode==="live_form"&&i.elicitation.mode!=="url";if(fx.isNone(d)&&h){let S=Mst(i.context);return S!==null&&(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,S,{status:"waiting",interactionId:L2.make(l),updatedAt:Date.now()})),yield*r({...i,interactionId:s})}return yield*oIn({executorState:e.executorState,executionId:e.executionId,liveExecutionManager:e.liveExecutionManager,request:i,interactionId:l})})},sIn=e=>({invoke:({path:r,args:i,context:s})=>e_.gen(function*(){let l=Mst(s);if(l===null)return yield*e.toolInvoker.invoke({path:r,args:i,context:s});let d=Kwn(i),h=yield*e.executorState.executionSteps.getByExecutionAndSequence(e.executionId,l);if(fx.isSome(h)){if(nIn({executionId:e.executionId,sequence:l,expectedPath:h.value.path,expectedArgsJson:h.value.argsJson,actualPath:r,actualArgsJson:d}),h.value.status==="completed")return Qwn(h.value.resultJson);if(h.value.status==="failed")return yield*_a("execution/service",h.value.errorText??`Stored tool step ${String(l)} failed`)}else{let S=Date.now();yield*e.executorState.executionSteps.insert({id:eIn(e.executionId,l),executionId:e.executionId,sequence:l,kind:"tool_call",status:"pending",path:r,argsJson:d,resultJson:null,errorText:null,interactionId:null,createdAt:S,updatedAt:S})}try{let S=yield*e.toolInvoker.invoke({path:r,args:i,context:s}),b=Date.now();return yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,l,{status:"completed",resultJson:rte(S),errorText:null,updatedAt:b}),S}catch(S){let b=Date.now();return PYt(S)?(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,l,{status:"waiting",updatedAt:b}),yield*e_.fail(S)):(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,l,{status:"failed",errorText:S instanceof Error?S.message:String(S),updatedAt:b}),yield*e_.fail(S))}})}),cIn=e=>e_.gen(function*(){if(PYt(e.outcome.error))return;if(e.outcome.error){let[s,l]=yield*e_.all([e.executorState.executions.getById(e.executionId),e.executorState.executionInteractions.getPendingByExecutionId(e.executionId)]);if(fx.isSome(s)&&s.value.status==="waiting_for_interaction"&&fx.isSome(l))return}let r=Date.now(),i=yield*e.executorState.executions.update(e.executionId,{status:e.outcome.error?"failed":"completed",resultJson:rte(e.outcome.result),errorText:e.outcome.error??null,logsJson:rte(e.outcome.logs??null),completedAt:r,updatedAt:r});if(fx.isNone(i)){yield*e.liveExecutionManager.clearRun(e.executionId);return}yield*e.liveExecutionManager.finishRun({executionId:e.executionId,state:i.value.status==="completed"?"completed":"failed"}),yield*e.executorState.executionSteps.deleteByExecutionId(e.executionId)}),lIn=e=>e_.gen(function*(){let r=Date.now(),i=yield*e.executorState.executions.update(e.executionId,{status:"failed",errorText:e.error,completedAt:r,updatedAt:r});if(fx.isNone(i)){yield*e.liveExecutionManager.clearRun(e.executionId);return}yield*e.liveExecutionManager.finishRun({executionId:e.executionId,state:"failed"}),yield*e.executorState.executionSteps.deleteByExecutionId(e.executionId)}),uIn=(e,r,i,s,l)=>r({scopeId:s.scopeId,actorScopeId:s.createdByScopeId,executionId:s.id,onElicitation:aIn({executorState:e,executionId:s.id,liveExecutionManager:i,interactionMode:l})}).pipe(e_.map(d=>({executor:d.executor,toolInvoker:Ywn({executionId:s.id,toolInvoker:sIn({executorState:e,executionId:s.id,toolInvoker:d.toolInvoker})})})),e_.flatMap(({executor:d,toolInvoker:h})=>d.execute(s.code,h)),e_.flatMap(d=>cIn({executorState:e,liveExecutionManager:i,executionId:s.id,outcome:d})),e_.catchAll(d=>lIn({executorState:e,liveExecutionManager:i,executionId:s.id,error:d instanceof Error?d.message:String(d)}).pipe(e_.catchAll(()=>i.clearRun(s.id))))),FYt=(e,r,i,s,l)=>e_.gen(function*(){let d=yield*bB();yield*e_.sync(()=>{let h=uIn(e,r,i,s,l);e_.runFork(SB(h,d))})}),RYt=(e,r,i,s)=>e_.gen(function*(){let l=yield*e.executions.getById(s.executionId);if(fx.isNone(l))return!1;let d=yield*e.executionInteractions.getPendingByExecutionId(s.executionId);if(fx.isNone(d)||l.value.status!=="waiting_for_interaction"&&l.value.status!=="failed")return!1;let h=Date.now(),b=[...yield*e.executionSteps.listByExecutionId(s.executionId)].reverse().find(L=>L.interactionId===d.value.id);b&&(yield*e.executionSteps.updateByExecutionAndSequence(s.executionId,b.sequence,{status:"waiting",errorText:null,updatedAt:h})),yield*e.executionInteractions.update(d.value.id,{status:s.response.action==="cancel"?"cancelled":"resolved",responseJson:rte(wfe(s.response)),responsePrivateJson:rte(s.response),updatedAt:h});let A=yield*e.executions.update(s.executionId,{status:"running",updatedAt:h});return fx.isNone(A)?!1:(yield*FYt(e,r,i,A.value,s.interactionMode),!0)}),pIn=(e,r,i,s)=>e_.gen(function*(){let l=s.payload.code,d=Date.now(),h={id:Hw.make(`exec_${crypto.randomUUID()}`),scopeId:s.scopeId,createdByScopeId:s.createdByScopeId,status:"pending",code:l,resultJson:null,errorText:null,logsJson:null,startedAt:null,completedAt:null,createdAt:d,updatedAt:d};yield*u4.create.child("insert").mapStorage(e.executions.insert(h));let S=yield*u4.create.child("mark_running").mapStorage(e.executions.update(h.id,{status:"running",startedAt:d,updatedAt:d}));if(fx.isNone(S))return yield*u4.create.notFound("Execution not found after insert",`executionId=${h.id}`);let b=yield*i.registerStateWaiter(h.id);return yield*FYt(e,r,i,S.value,IYt(s.payload.interactionMode)),yield*CYt.await(b),yield*YIe(e,{scopeId:s.scopeId,executionId:h.id,operation:u4.create})}),LYt=e=>e_.gen(function*(){let r=yield*dm,i=yield*c$,s=yield*BD;return yield*pIn(r,i,s,e)}),MYt=e=>e_.flatMap(dm,r=>YIe(r,{scopeId:e.scopeId,executionId:e.executionId,operation:u4.get})),ePe=e=>e_.gen(function*(){let r=yield*dm,i=yield*c$,s=yield*BD;return yield*RYt(r,i,s,{...e,interactionMode:e.interactionMode??DYt})}),jYt=e=>e_.gen(function*(){let r=yield*dm,i=yield*c$,s=yield*BD,l=yield*YIe(r,{scopeId:e.scopeId,executionId:e.executionId,operation:"executions.resume"});if(l.execution.status!=="waiting_for_interaction"&&!(l.execution.status==="failed"&&l.pendingInteraction!==null))return yield*u4.resume.badRequest("Execution is not waiting for interaction",`executionId=${e.executionId} status=${l.execution.status}`);let d=e.payload.responseJson,h=d===void 0?{action:"accept"}:yield*e_.try({try:()=>JSON.parse(d),catch:b=>u4.resume.badRequest("Invalid responseJson",b instanceof Error?b.message:String(b))}).pipe(e_.flatMap(b=>AYt(b).pipe(e_.mapError(A=>u4.resume.badRequest("Invalid responseJson",String(A))))));return!(yield*s.resolveInteraction({executionId:e.executionId,response:h}))&&!(yield*u4.resume.child("submit_interaction").mapStorage(RYt(r,i,s,{executionId:e.executionId,response:h,interactionMode:IYt(e.payload.interactionMode)})))?yield*u4.resume.badRequest("Resume is unavailable for this execution",`executionId=${e.executionId}`):yield*OYt(r,{scopeId:e.scopeId,executionId:e.executionId,operation:u4.resume,previousPendingInteractionId:l.pendingInteraction?.id??null,attemptsRemaining:400})});var _In=e=>e instanceof Error?e.message:String(e),jst=e=>{let r=_In(e);return new Error(`Failed initializing runtime: ${r}`)},dIn=e=>wy.gen(function*(){yield*(yield*r$).loadWorkspaceSourceCatalogToolIndex({scopeId:e.scopeId,actorScopeId:e.actorScopeId})}),fIn=()=>{let e={};return{tools:e,catalog:Z7({tools:e}),toolInvoker:Q7({tools:e}),toolPaths:new Set}},mIn={refreshWorkspaceInBackground:()=>wy.void,refreshSourceInBackground:()=>wy.void},$Yt=e=>({load:e.load,getOrProvision:e.getOrProvision}),UYt=e=>({load:e.load,writeProject:({config:r})=>e.writeProject(r),resolveRelativePath:e.resolveRelativePath}),zYt=e=>({load:e.load,write:({state:r})=>e.write(r)}),qYt=e=>({build:e.build,read:({sourceId:r})=>e.read(r),write:({sourceId:r,artifact:i})=>e.write({sourceId:r,artifact:i}),remove:({sourceId:r})=>e.remove(r)}),hIn=e=>Fh.mergeAll(Fh.succeed(Xw,e.resolve),Fh.succeed(dk,e.store),Fh.succeed(bT,e.delete),Fh.succeed(t8,e.update)),gIn=e=>Fh.succeed(r8,e.resolve),yIn=e=>({authArtifacts:e.auth.artifacts,authLeases:e.auth.leases,sourceOauthClients:e.auth.sourceOauthClients,scopeOauthClients:e.auth.scopeOauthClients,providerAuthGrants:e.auth.providerGrants,sourceAuthSessions:e.auth.sourceSessions,secretMaterials:e.secrets,executions:e.executions.runs,executionInteractions:e.executions.interactions,executionSteps:e.executions.steps}),vIn=e=>{let r=b_e({installationStore:$Yt(e.storage.installation),scopeConfigStore:UYt(e.storage.scopeConfig),scopeStateStore:zYt(e.storage.scopeState),sourceArtifactStore:qYt(e.storage.sourceArtifacts)}),i=Fh.succeed(S9,S9.of({load:()=>e.localToolRuntimeLoader?.load()??wy.succeed(fIn())})),s=Fh.succeed(k8,k8.of(e.sourceTypeDeclarationsRefresher??mIn)),l=Fh.mergeAll(Fh.succeed(dm,yIn(e.storage)),_et(e.localScopeState),r,Fh.succeed(BD,e.liveExecutionManager),s),d=hIn(e.storage.secrets).pipe(Fh.provide(l)),h=gIn(e.instanceConfig),S=oZt.pipe(Fh.provide(Fh.mergeAll(l,d))),b=TZt.pipe(Fh.provide(Fh.mergeAll(l,S))),A=h5t.pipe(Fh.provide(Fh.mergeAll(l,d))),L=DZt.pipe(Fh.provide(Fh.mergeAll(l,d,A))),V=uYt({getLocalServerBaseUrl:e.getLocalServerBaseUrl}).pipe(Fh.provide(Fh.mergeAll(l,h,d,S,L))),j=fYt({executionResolver:e.executionResolver,createInternalToolMap:e.createInternalToolMap}).pipe(Fh.provide(Fh.mergeAll(l,h,d,S,A,L,V,b,i)));return Fh.mergeAll(l,h,d,S,A,L,b,i,V,j)},JYt=(e,r)=>e.pipe(wy.provide(r.managedRuntime)),VYt=e=>wy.gen(function*(){let r=yield*e.services.storage.installation.getOrProvision().pipe(wy.mapError(jst)),i=yield*e.services.storage.scopeConfig.load().pipe(wy.mapError(jst)),s={...e.services.scope,scopeId:r.scopeId,actorScopeId:e.services.scope.actorScopeId??r.actorScopeId,resolutionScopeIds:e.services.scope.resolutionScopeIds??r.resolutionScopeIds},l=yield*xXt({loadedConfig:i}).pipe(wy.provide(b_e({installationStore:$Yt(e.services.storage.installation),scopeConfigStore:UYt(e.services.storage.scopeConfig),scopeStateStore:zYt(e.services.storage.scopeState),sourceArtifactStore:qYt(e.services.storage.sourceArtifacts)}))).pipe(wy.mapError(jst)),d={scope:s,installation:r,loadedConfig:{...i,config:l}},h=$at(),S=vIn({...e,...e.services,localScopeState:d,liveExecutionManager:h}),b=BYt.make(S);return yield*b.runtimeEffect,yield*AZt({scopeId:r.scopeId,actorScopeId:r.actorScopeId}).pipe(wy.provide(b),wy.catchAll(()=>wy.void)),yield*dIn({scopeId:r.scopeId,actorScopeId:r.actorScopeId}).pipe(wy.provide(b),wy.catchAll(()=>wy.void)),{storage:e.services.storage,localInstallation:r,managedRuntime:b,runtimeLayer:S,close:async()=>{await wy.runPromise(DJe()).catch(()=>{}),await b.dispose().catch(()=>{}),await e.services.storage.close?.().catch(()=>{})}}});var SIn=e=>e instanceof Error?e:new Error(String(e)),Vu=e=>UD.isEffect(e)?e:e instanceof Promise?UD.tryPromise({try:()=>e,catch:SIn}):UD.succeed(e),iS=e=>Vu(e).pipe(UD.map(r=>tPe.isOption(r)?r:tPe.fromNullable(r))),bIn=e=>({load:()=>Vu(e.load()),getOrProvision:()=>Vu(e.getOrProvision())}),xIn=e=>({load:()=>Vu(e.load()),writeProject:r=>Vu(e.writeProject(r)),resolveRelativePath:e.resolveRelativePath}),TIn=e=>({load:()=>Vu(e.load()),write:r=>Vu(e.write(r))}),EIn=e=>({build:e.build,read:r=>Vu(e.read(r)),write:r=>Vu(e.write(r)),remove:r=>Vu(e.remove(r))}),kIn=e=>({resolve:()=>Vu(e.resolve())}),CIn=e=>({load:()=>Vu(e.load())}),DIn=e=>({refreshWorkspaceInBackground:r=>Vu(e.refreshWorkspaceInBackground(r)).pipe(UD.orDie),refreshSourceInBackground:r=>Vu(e.refreshSourceInBackground(r)).pipe(UD.orDie)}),AIn=e=>({artifacts:{listByScopeId:r=>Vu(e.artifacts.listByScopeId(r)),listByScopeAndSourceId:r=>Vu(e.artifacts.listByScopeAndSourceId(r)),getByScopeSourceAndActor:r=>iS(e.artifacts.getByScopeSourceAndActor(r)),upsert:r=>Vu(e.artifacts.upsert(r)),removeByScopeSourceAndActor:r=>Vu(e.artifacts.removeByScopeSourceAndActor(r)),removeByScopeAndSourceId:r=>Vu(e.artifacts.removeByScopeAndSourceId(r))},leases:{listAll:()=>Vu(e.leases.listAll()),getByAuthArtifactId:r=>iS(e.leases.getByAuthArtifactId(r)),upsert:r=>Vu(e.leases.upsert(r)),removeByAuthArtifactId:r=>Vu(e.leases.removeByAuthArtifactId(r))},sourceOauthClients:{getByScopeSourceAndProvider:r=>iS(e.sourceOauthClients.getByScopeSourceAndProvider(r)),upsert:r=>Vu(e.sourceOauthClients.upsert(r)),removeByScopeAndSourceId:r=>Vu(e.sourceOauthClients.removeByScopeAndSourceId(r))},scopeOauthClients:{listByScopeAndProvider:r=>Vu(e.scopeOauthClients.listByScopeAndProvider(r)),getById:r=>iS(e.scopeOauthClients.getById(r)),upsert:r=>Vu(e.scopeOauthClients.upsert(r)),removeById:r=>Vu(e.scopeOauthClients.removeById(r))},providerGrants:{listByScopeId:r=>Vu(e.providerGrants.listByScopeId(r)),listByScopeActorAndProvider:r=>Vu(e.providerGrants.listByScopeActorAndProvider(r)),getById:r=>iS(e.providerGrants.getById(r)),upsert:r=>Vu(e.providerGrants.upsert(r)),removeById:r=>Vu(e.providerGrants.removeById(r))},sourceSessions:{listAll:()=>Vu(e.sourceSessions.listAll()),listByScopeId:r=>Vu(e.sourceSessions.listByScopeId(r)),getById:r=>iS(e.sourceSessions.getById(r)),getByState:r=>iS(e.sourceSessions.getByState(r)),getPendingByScopeSourceAndActor:r=>iS(e.sourceSessions.getPendingByScopeSourceAndActor(r)),insert:r=>Vu(e.sourceSessions.insert(r)),update:(r,i)=>iS(e.sourceSessions.update(r,i)),upsert:r=>Vu(e.sourceSessions.upsert(r)),removeByScopeAndSourceId:(r,i)=>Vu(e.sourceSessions.removeByScopeAndSourceId(r,i))}}),wIn=e=>({getById:r=>iS(e.getById(r)),listAll:()=>Vu(e.listAll()),upsert:r=>Vu(e.upsert(r)),updateById:(r,i)=>iS(e.updateById(r,i)),removeById:r=>Vu(e.removeById(r)),resolve:r=>Vu(e.resolve(r)),store:r=>Vu(e.store(r)),delete:r=>Vu(e.delete(r)),update:r=>Vu(e.update(r))}),IIn=e=>({runs:{getById:r=>iS(e.runs.getById(r)),getByScopeAndId:(r,i)=>iS(e.runs.getByScopeAndId(r,i)),insert:r=>Vu(e.runs.insert(r)),update:(r,i)=>iS(e.runs.update(r,i))},interactions:{getById:r=>iS(e.interactions.getById(r)),listByExecutionId:r=>Vu(e.interactions.listByExecutionId(r)),getPendingByExecutionId:r=>iS(e.interactions.getPendingByExecutionId(r)),insert:r=>Vu(e.interactions.insert(r)),update:(r,i)=>iS(e.interactions.update(r,i))},steps:{getByExecutionAndSequence:(r,i)=>iS(e.steps.getByExecutionAndSequence(r,i)),listByExecutionId:r=>Vu(e.steps.listByExecutionId(r)),insert:r=>Vu(e.steps.insert(r)),deleteByExecutionId:r=>Vu(e.steps.deleteByExecutionId(r)),updateByExecutionAndSequence:(r,i,s)=>iS(e.steps.updateByExecutionAndSequence(r,i,s))}}),nte=e=>({createRuntime:r=>UD.flatMap(Vu(e.loadRepositories(r)),i=>VYt({...r,services:{scope:i.scope,storage:{installation:bIn(i.installation),scopeConfig:xIn(i.workspace.config),scopeState:TIn(i.workspace.state),sourceArtifacts:EIn(i.workspace.sourceArtifacts),auth:AIn(i.workspace.sourceAuth),secrets:wIn(i.secrets),executions:IIn(i.executions),close:i.close},localToolRuntimeLoader:i.workspace.localTools?CIn(i.workspace.localTools):void 0,sourceTypeDeclarationsRefresher:i.workspace.sourceTypeDeclarations?DIn(i.workspace.sourceTypeDeclarations):void 0,instanceConfig:kIn(i.instanceConfig)}}))});import*as qst from"effect/Effect";import*as ote from"effect/Effect";import*as Pk from"effect/Effect";import*as WYt from"effect/Option";var zD={installation:sg("local.installation.get"),sourceCredentialComplete:sg("sources.credentials.complete"),sourceCredentialPage:sg("sources.credentials.page"),sourceCredentialSubmit:sg("sources.credentials.submit")},Bst=e=>typeof e=="object"&&e!==null,$st=e=>typeof e=="string"?e:null,rPe=e=>{if(e==null)return null;let r=e.trim();return r.length>0?r:null},PIn=e=>{try{if(e.purpose!=="source_connect_oauth2"&&e.purpose!=="source_connect_secret"&&e.purpose!=="elicitation")return null;let r=JSON.parse(e.payloadJson);if(!Bst(r))return null;let i=r.args,s=r.elicitation;if(!Bst(i)||!Bst(s)||r.path!=="executor.sources.add")return null;let l=e.purpose==="elicitation"?s.mode==="url"?"source_connect_oauth2":"source_connect_secret":e.purpose;if(l==="source_connect_oauth2"&&s.mode!=="url"||l==="source_connect_secret"&&s.mode!=="form")return null;let d=rPe($st(i.scopeId)),h=rPe($st(i.sourceId)),S=rPe($st(s.message));return d===null||h===null||S===null?null:{interactionId:e.id,executionId:e.executionId,status:e.status,message:S,scopeId:Ed.make(d),sourceId:vf.make(h)}}catch{return null}},GYt=e=>Pk.gen(function*(){let r=yield*dm,i=yield*l4,s=yield*r.executionInteractions.getById(e.interactionId).pipe(Pk.mapError(h=>e.operation.unknownStorage(h,`Failed loading execution interaction ${e.interactionId}`)));if(WYt.isNone(s))return yield*e.operation.notFound("Source credential request not found",`interactionId=${e.interactionId}`);let l=PIn(s.value);if(l===null||l.scopeId!==e.scopeId||l.sourceId!==e.sourceId)return yield*e.operation.notFound("Source credential request not found",`scopeId=${e.scopeId} sourceId=${e.sourceId} interactionId=${e.interactionId}`);let d=yield*i.getSourceById({scopeId:e.scopeId,sourceId:e.sourceId}).pipe(Pk.mapError(h=>e.operation.unknownStorage(h,`Failed loading source ${e.sourceId}`)));return{...l,sourceLabel:d.name,endpoint:d.endpoint}}),HYt=()=>Pk.gen(function*(){return yield*(yield*FV).load().pipe(Pk.mapError(r=>zD.installation.unknownStorage(r,"Failed loading local installation")))}),KYt=e=>GYt({...e,operation:zD.sourceCredentialPage}),QYt=e=>Pk.gen(function*(){let r=yield*GYt({scopeId:e.scopeId,sourceId:e.sourceId,interactionId:e.interactionId,operation:zD.sourceCredentialSubmit});if(r.status!=="pending")return yield*zD.sourceCredentialSubmit.badRequest("Source credential request is no longer active",`interactionId=${r.interactionId} status=${r.status}`);let i=yield*BD;if(e.action==="cancel")return!(yield*i.resolveInteraction({executionId:r.executionId,response:{action:"cancel"}}))&&!(yield*ePe({executionId:r.executionId,response:{action:"cancel"}}).pipe(Pk.mapError(A=>zD.sourceCredentialSubmit.unknownStorage(A,`Failed resuming execution for interaction ${r.interactionId}`))))?yield*zD.sourceCredentialSubmit.badRequest("Source credential request is no longer resumable",`interactionId=${r.interactionId}`):{kind:"cancelled",sourceLabel:r.sourceLabel,endpoint:r.endpoint};if(e.action==="continue")return!(yield*i.resolveInteraction({executionId:r.executionId,response:{action:"accept",content:ust()}}))&&!(yield*ePe({executionId:r.executionId,response:{action:"accept",content:ust()}}).pipe(Pk.mapError(A=>zD.sourceCredentialSubmit.unknownStorage(A,`Failed resuming execution for interaction ${r.interactionId}`))))?yield*zD.sourceCredentialSubmit.badRequest("Source credential request is no longer resumable",`interactionId=${r.interactionId}`):{kind:"continued",sourceLabel:r.sourceLabel,endpoint:r.endpoint};let s=rPe(e.token);if(s===null)return yield*zD.sourceCredentialSubmit.badRequest("Missing token",`interactionId=${r.interactionId}`);let d=yield*(yield*l4).storeSecretMaterial({purpose:"auth_material",value:s}).pipe(Pk.mapError(S=>zD.sourceCredentialSubmit.unknownStorage(S,`Failed storing credential material for interaction ${r.interactionId}`)));return!(yield*i.resolveInteraction({executionId:r.executionId,response:{action:"accept",content:pst(d)}}))&&!(yield*ePe({executionId:r.executionId,response:{action:"accept",content:pst(d)}}).pipe(Pk.mapError(b=>zD.sourceCredentialSubmit.unknownStorage(b,`Failed resuming execution for interaction ${r.interactionId}`))))?yield*zD.sourceCredentialSubmit.badRequest("Source credential request is no longer resumable",`interactionId=${r.interactionId}`):{kind:"stored",sourceLabel:r.sourceLabel,endpoint:r.endpoint}}),ZYt=e=>Pk.gen(function*(){return yield*(yield*l4).completeSourceCredentialSetup(e).pipe(Pk.mapError(i=>zD.sourceCredentialComplete.unknownStorage(i,"Failed completing source credential setup")))});import*as mx from"effect/Effect";import*as nPe from"effect/Option";var p4=(e,r)=>new a$({operation:e,message:r,details:r}),XYt=()=>mx.flatMap(r8,e=>e()),YYt=()=>mx.gen(function*(){let e=yield*dm,r=yield*uy,i=yield*fee().pipe(mx.mapError(()=>p4("secrets.list","Failed resolving local scope."))),s=yield*e.secretMaterials.listAll().pipe(mx.mapError(()=>p4("secrets.list","Failed listing secrets."))),l=yield*r.listLinkedSecretSourcesInScope(i.installation.scopeId,{actorScopeId:i.installation.actorScopeId}).pipe(mx.mapError(()=>p4("secrets.list","Failed loading linked sources.")));return s.map(d=>({...d,linkedSources:l.get(d.id)??[]}))}),eer=e=>mx.gen(function*(){let r=e.name.trim(),i=e.value,s=e.purpose??"auth_material";if(r.length===0)return yield*new Yee({operation:"secrets.create",message:"Secret name is required.",details:"Secret name is required."});let l=yield*dm,h=yield*(yield*dk)({name:r,purpose:s,value:i,providerId:e.providerId}).pipe(mx.mapError(A=>p4("secrets.create",A instanceof Error?A.message:"Failed creating secret."))),S=QN.make(h.handle),b=yield*l.secretMaterials.getById(S).pipe(mx.mapError(()=>p4("secrets.create","Failed loading created secret.")));return nPe.isNone(b)?yield*p4("secrets.create",`Created secret not found: ${h.handle}`):{id:b.value.id,name:b.value.name,providerId:b.value.providerId,purpose:b.value.purpose,createdAt:b.value.createdAt,updatedAt:b.value.updatedAt}}),ter=e=>mx.gen(function*(){let r=QN.make(e.secretId),s=yield*(yield*dm).secretMaterials.getById(r).pipe(mx.mapError(()=>p4("secrets.update","Failed looking up secret.")));if(nPe.isNone(s))return yield*new g9({operation:"secrets.update",message:`Secret not found: ${e.secretId}`,details:`Secret not found: ${e.secretId}`});let l={};e.payload.name!==void 0&&(l.name=e.payload.name.trim()||null),e.payload.value!==void 0&&(l.value=e.payload.value);let h=yield*(yield*t8)({ref:{providerId:s.value.providerId,handle:s.value.id},...l}).pipe(mx.mapError(()=>p4("secrets.update","Failed updating secret.")));return{id:h.id,providerId:h.providerId,name:h.name,purpose:h.purpose,createdAt:h.createdAt,updatedAt:h.updatedAt}}),rer=e=>mx.gen(function*(){let r=QN.make(e),s=yield*(yield*dm).secretMaterials.getById(r).pipe(mx.mapError(()=>p4("secrets.delete","Failed looking up secret.")));return nPe.isNone(s)?yield*new g9({operation:"secrets.delete",message:`Secret not found: ${e}`,details:`Secret not found: ${e}`}):(yield*(yield*bT)({providerId:s.value.providerId,handle:s.value.id}).pipe(mx.mapError(()=>p4("secrets.delete","Failed removing secret."))))?{removed:!0}:yield*p4("secrets.delete",`Failed removing secret: ${e}`)});import*as ner from"effect/Either";import*as py from"effect/Effect";import*as Ust from"effect/Effect";var ite=(e,r)=>r.pipe(Ust.mapError(i=>Mfe(e).storage(i)));var bI={list:sg("sources.list"),create:sg("sources.create"),get:sg("sources.get"),update:sg("sources.update"),remove:sg("sources.remove")},NIn=e=>l0(e).shouldAutoProbe(e),ier=e=>py.gen(function*(){let r=yield*SI,i=NIn(e.source),s=i?{...e.source,status:"connected"}:e.source,l=yield*py.either(r.sync({source:s,actorScopeId:e.actorScopeId}));return yield*ner.match(l,{onRight:()=>py.gen(function*(){if(i){let d=yield*f9({source:e.source,payload:{status:"connected",lastError:null},now:Date.now()}).pipe(py.mapError(h=>e.operation.badRequest("Failed updating source status",h instanceof Error?h.message:String(h))));return yield*ite(e.operation.child("source_connected"),e.sourceStore.persistSource(d,{actorScopeId:e.actorScopeId})),d}return e.source}),onLeft:d=>py.gen(function*(){if(i||e.source.enabled&&e.source.status==="connected"){let h=yield*f9({source:e.source,payload:{status:"error",lastError:d.message},now:Date.now()}).pipe(py.mapError(S=>e.operation.badRequest("Failed indexing source tools",S instanceof Error?S.message:String(S))));yield*ite(e.operation.child("source_error"),e.sourceStore.persistSource(h,{actorScopeId:e.actorScopeId}))}return yield*e.operation.unknownStorage(d,"Failed syncing source tools")})})}),oer=e=>py.flatMap(dm,()=>py.gen(function*(){return yield*(yield*uy).loadSourcesInScope(e.scopeId,{actorScopeId:e.actorScopeId}).pipe(py.mapError(i=>bI.list.unknownStorage(i,"Failed projecting stored sources")))})),aer=e=>py.flatMap(dm,r=>py.gen(function*(){let i=yield*uy,s=Date.now(),l=yield*dW({scopeId:e.scopeId,sourceId:vf.make(`src_${crypto.randomUUID()}`),payload:e.payload,now:s}).pipe(py.mapError(S=>bI.create.badRequest("Invalid source definition",S instanceof Error?S.message:String(S)))),d=yield*ite(bI.create.child("persist"),i.persistSource(l,{actorScopeId:e.actorScopeId}));return yield*ier({store:r,sourceStore:i,source:d,actorScopeId:e.actorScopeId,operation:bI.create})})),ser=e=>py.flatMap(dm,()=>py.gen(function*(){return yield*(yield*uy).loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId,actorScopeId:e.actorScopeId}).pipe(py.mapError(i=>i instanceof Error&&i.message.startsWith("Source not found:")?bI.get.notFound("Source not found",`scopeId=${e.scopeId} sourceId=${e.sourceId}`):bI.get.unknownStorage(i,"Failed projecting stored source")))})),cer=e=>py.flatMap(dm,r=>py.gen(function*(){let i=yield*uy,s=yield*i.loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId,actorScopeId:e.actorScopeId}).pipe(py.mapError(S=>S instanceof Error&&S.message.startsWith("Source not found:")?bI.update.notFound("Source not found",`scopeId=${e.scopeId} sourceId=${e.sourceId}`):bI.update.unknownStorage(S,"Failed projecting stored source"))),l=yield*f9({source:s,payload:e.payload,now:Date.now()}).pipe(py.mapError(S=>bI.update.badRequest("Invalid source definition",S instanceof Error?S.message:String(S)))),d=yield*ite(bI.update.child("persist"),i.persistSource(l,{actorScopeId:e.actorScopeId}));return yield*ier({store:r,sourceStore:i,source:d,actorScopeId:e.actorScopeId,operation:bI.update})})),ler=e=>py.flatMap(dm,()=>py.gen(function*(){let r=yield*uy;return{removed:yield*ite(bI.remove.child("remove"),r.removeSourceById({scopeId:e.scopeId,sourceId:e.sourceId}))}}));var OIn=e=>{let r=e.localInstallation,i=r.scopeId,s=r.actorScopeId,l=S=>JYt(S,e),d=S=>l(ote.flatMap(l4,S)),h=()=>{let S=crypto.randomUUID();return{executionId:Hw.make(`exec_sdk_${S}`),interactionId:`executor.sdk.${S}`}};return{runtime:e,installation:r,scopeId:i,actorScopeId:s,resolutionScopeIds:r.resolutionScopeIds,close:()=>e.close(),local:{installation:()=>l(HYt()),config:()=>l(XYt()),credentials:{get:({sourceId:S,interactionId:b})=>l(KYt({scopeId:i,sourceId:S,interactionId:b})),submit:({sourceId:S,interactionId:b,action:A,token:L})=>l(QYt({scopeId:i,sourceId:S,interactionId:b,action:A,token:L})),complete:({sourceId:S,state:b,code:A,error:L,errorDescription:V})=>l(ZYt({scopeId:i,sourceId:S,state:b,code:A,error:L,errorDescription:V}))}},secrets:{list:()=>l(YYt()),create:S=>l(eer(S)),update:S=>l(ter(S)),remove:S=>l(rer(S))},policies:{list:()=>l(DXt(i)),create:S=>l(AXt({scopeId:i,payload:S})),get:S=>l(wXt({scopeId:i,policyId:S})),update:(S,b)=>l(IXt({scopeId:i,policyId:S,payload:b})),remove:S=>l(PXt({scopeId:i,policyId:S})).pipe(ote.map(b=>b.removed))},sources:{add:(S,b)=>d(A=>{let L=h();return A.addExecutorSource({...S,scopeId:i,actorScopeId:s,executionId:L.executionId,interactionId:L.interactionId},b)}),connect:S=>d(b=>b.connectMcpSource({...S,scopeId:i,actorScopeId:s})),connectBatch:S=>d(b=>{let A=h();return b.connectGoogleDiscoveryBatch({...S,scopeId:i,actorScopeId:s,executionId:A.executionId,interactionId:A.interactionId})}),discover:S=>l(EYt(S)),list:()=>l(oer({scopeId:i,actorScopeId:s})),create:S=>l(aer({scopeId:i,actorScopeId:s,payload:S})),get:S=>l(ser({scopeId:i,sourceId:S,actorScopeId:s})),update:(S,b)=>l(cer({scopeId:i,sourceId:S,actorScopeId:s,payload:b})),remove:S=>l(ler({scopeId:i,sourceId:S})).pipe(ote.map(b=>b.removed)),inspection:{get:S=>l(bYt({scopeId:i,sourceId:S})),tool:({sourceId:S,toolPath:b})=>l(xYt({scopeId:i,sourceId:S,toolPath:b})),discover:({sourceId:S,payload:b})=>l(TYt({scopeId:i,sourceId:S,payload:b}))},oauthClients:{list:S=>d(b=>b.listScopeOauthClients({scopeId:i,providerKey:S})),create:S=>d(b=>b.createScopeOauthClient({scopeId:i,providerKey:S.providerKey,label:S.label,oauthClient:S.oauthClient})),remove:S=>d(b=>b.removeScopeOauthClient({scopeId:i,oauthClientId:S}))},providerGrants:{remove:S=>d(b=>b.removeProviderAuthGrant({scopeId:i,grantId:S}))}},oauth:{startSourceAuth:S=>d(b=>b.startSourceOAuthSession({...S,scopeId:i,actorScopeId:s})),completeSourceAuth:({state:S,code:b,error:A,errorDescription:L})=>d(V=>V.completeSourceOAuthSession({state:S,code:b,error:A,errorDescription:L})),completeProviderCallback:S=>d(b=>b.completeProviderOauthCallback({...S,scopeId:S.scopeId??i,actorScopeId:S.actorScopeId??s}))},executions:{create:S=>l(LYt({scopeId:i,payload:S,createdByScopeId:s})),get:S=>l(MYt({scopeId:i,executionId:S})),resume:(S,b)=>l(jYt({scopeId:i,executionId:S,payload:b,resumedByScopeId:s}))}}},zst=e=>ote.map(e.backend.createRuntime({executionResolver:e.executionResolver,createInternalToolMap:e.createInternalToolMap,resolveSecretMaterial:e.resolveSecretMaterial,getLocalServerBaseUrl:e.getLocalServerBaseUrl}),OIn);var FIn=e=>{let r=i=>qst.runPromise(i);return{installation:e.installation,scopeId:e.scopeId,actorScopeId:e.actorScopeId,resolutionScopeIds:e.resolutionScopeIds,close:()=>e.close(),local:{installation:()=>r(e.local.installation()),config:()=>r(e.local.config()),credentials:{get:i=>r(e.local.credentials.get(i)),submit:i=>r(e.local.credentials.submit(i)),complete:i=>r(e.local.credentials.complete(i))}},secrets:{list:()=>r(e.secrets.list()),create:i=>r(e.secrets.create(i)),update:i=>r(e.secrets.update(i)),remove:i=>r(e.secrets.remove(i))},policies:{list:()=>r(e.policies.list()),create:i=>r(e.policies.create(i)),get:i=>r(e.policies.get(i)),update:(i,s)=>r(e.policies.update(i,s)),remove:i=>r(e.policies.remove(i))},sources:{add:(i,s)=>r(e.sources.add(i,s)),connect:i=>r(e.sources.connect(i)),connectBatch:i=>r(e.sources.connectBatch(i)),discover:i=>r(e.sources.discover(i)),list:()=>r(e.sources.list()),create:i=>r(e.sources.create(i)),get:i=>r(e.sources.get(i)),update:(i,s)=>r(e.sources.update(i,s)),remove:i=>r(e.sources.remove(i)),inspection:{get:i=>r(e.sources.inspection.get(i)),tool:i=>r(e.sources.inspection.tool(i)),discover:i=>r(e.sources.inspection.discover(i))},oauthClients:{list:i=>r(e.sources.oauthClients.list(i)),create:i=>r(e.sources.oauthClients.create(i)),remove:i=>r(e.sources.oauthClients.remove(i))},providerGrants:{remove:i=>r(e.sources.providerGrants.remove(i))}},oauth:{startSourceAuth:i=>r(e.oauth.startSourceAuth(i)),completeSourceAuth:i=>r(e.oauth.completeSourceAuth(i)),completeProviderCallback:i=>r(e.oauth.completeProviderCallback(i))},executions:{create:i=>r(e.executions.create(i)),get:i=>r(e.executions.get(i)),resume:(i,s)=>r(e.executions.resume(i,s))}}},Jst=async e=>FIn(await qst.runPromise(zst(e)));import{FileSystem as Ntr}from"@effect/platform";import{NodeFileSystem as M6n}from"@effect/platform-node";import*as _v from"effect/Effect";import{homedir as zfe}from"node:os";import{basename as JIn,dirname as VIn,isAbsolute as WIn,join as sb,resolve as SW}from"node:path";import{FileSystem as lte}from"@effect/platform";function iPe(e,r=!1){let i=e.length,s=0,l="",d=0,h=16,S=0,b=0,A=0,L=0,V=0;function j($e,xt){let tr=0,ht=0;for(;tr<$e||!xt;){let wt=e.charCodeAt(s);if(wt>=48&&wt<=57)ht=ht*16+wt-48;else if(wt>=65&&wt<=70)ht=ht*16+wt-65+10;else if(wt>=97&&wt<=102)ht=ht*16+wt-97+10;else break;s++,tr++}return tr<$e&&(ht=-1),ht}function ie($e){s=$e,l="",d=0,h=16,V=0}function te(){let $e=s;if(e.charCodeAt(s)===48)s++;else for(s++;s=i){$e+=e.substring(xt,s),V=2;break}let tr=e.charCodeAt(s);if(tr===34){$e+=e.substring(xt,s),s++;break}if(tr===92){if($e+=e.substring(xt,s),s++,s>=i){V=2;break}switch(e.charCodeAt(s++)){case 34:$e+='"';break;case 92:$e+="\\";break;case 47:$e+="/";break;case 98:$e+="\b";break;case 102:$e+="\f";break;case 110:$e+=` -`;break;case 114:$e+="\r";break;case 116:$e+=" ";break;case 117:let wt=j(4,!0);wt>=0?$e+=String.fromCharCode(wt):V=4;break;default:V=5}xt=s;continue}if(tr>=0&&tr<=31)if(Bfe(tr)){$e+=e.substring(xt,s),V=2;break}else V=6;s++}return $e}function Re(){if(l="",V=0,d=s,b=S,L=A,s>=i)return d=i,h=17;let $e=e.charCodeAt(s);if(Vst($e)){do s++,l+=String.fromCharCode($e),$e=e.charCodeAt(s);while(Vst($e));return h=15}if(Bfe($e))return s++,l+=String.fromCharCode($e),$e===13&&e.charCodeAt(s)===10&&(s++,l+=` -`),S++,A=s,h=14;switch($e){case 123:return s++,h=1;case 125:return s++,h=2;case 91:return s++,h=3;case 93:return s++,h=4;case 58:return s++,h=6;case 44:return s++,h=5;case 34:return s++,l=X(),h=10;case 47:let xt=s-1;if(e.charCodeAt(s+1)===47){for(s+=2;s=12&&$e<=15);return $e}return{setPosition:ie,getPosition:()=>s,scan:r?pt:Re,getToken:()=>h,getTokenValue:()=>l,getTokenOffset:()=>d,getTokenLength:()=>s-d,getTokenStartLine:()=>b,getTokenStartCharacter:()=>d-L,getTokenError:()=>V}}function Vst(e){return e===32||e===9}function Bfe(e){return e===10||e===13}function ate(e){return e>=48&&e<=57}var uer;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(uer||(uer={}));var LIn=new Array(20).fill(0).map((e,r)=>" ".repeat(r)),ste=200,MIn={" ":{"\n":new Array(ste).fill(0).map((e,r)=>` -`+" ".repeat(r)),"\r":new Array(ste).fill(0).map((e,r)=>"\r"+" ".repeat(r)),"\r\n":new Array(ste).fill(0).map((e,r)=>`\r -`+" ".repeat(r))}," ":{"\n":new Array(ste).fill(0).map((e,r)=>` -`+" ".repeat(r)),"\r":new Array(ste).fill(0).map((e,r)=>"\r"+" ".repeat(r)),"\r\n":new Array(ste).fill(0).map((e,r)=>`\r -`+" ".repeat(r))}};var oPe;(function(e){e.DEFAULT={allowTrailingComma:!1}})(oPe||(oPe={}));function per(e,r=[],i=oPe.DEFAULT){let s=null,l=[],d=[];function h(b){Array.isArray(l)?l.push(b):s!==null&&(l[s]=b)}return _er(e,{onObjectBegin:()=>{let b={};h(b),d.push(l),l=b,s=null},onObjectProperty:b=>{s=b},onObjectEnd:()=>{l=d.pop()},onArrayBegin:()=>{let b=[];h(b),d.push(l),l=b,s=null},onArrayEnd:()=>{l=d.pop()},onLiteralValue:h,onError:(b,A,L)=>{r.push({error:b,offset:A,length:L})}},i),l[0]}function _er(e,r,i=oPe.DEFAULT){let s=iPe(e,!1),l=[],d=0;function h(yr){return yr?()=>d===0&&yr(s.getTokenOffset(),s.getTokenLength(),s.getTokenStartLine(),s.getTokenStartCharacter()):()=>!0}function S(yr){return yr?co=>d===0&&yr(co,s.getTokenOffset(),s.getTokenLength(),s.getTokenStartLine(),s.getTokenStartCharacter()):()=>!0}function b(yr){return yr?co=>d===0&&yr(co,s.getTokenOffset(),s.getTokenLength(),s.getTokenStartLine(),s.getTokenStartCharacter(),()=>l.slice()):()=>!0}function A(yr){return yr?()=>{d>0?d++:yr(s.getTokenOffset(),s.getTokenLength(),s.getTokenStartLine(),s.getTokenStartCharacter(),()=>l.slice())===!1&&(d=1)}:()=>!0}function L(yr){return yr?()=>{d>0&&d--,d===0&&yr(s.getTokenOffset(),s.getTokenLength(),s.getTokenStartLine(),s.getTokenStartCharacter())}:()=>!0}let V=A(r.onObjectBegin),j=b(r.onObjectProperty),ie=L(r.onObjectEnd),te=A(r.onArrayBegin),X=L(r.onArrayEnd),Re=b(r.onLiteralValue),Je=S(r.onSeparator),pt=h(r.onComment),$e=S(r.onError),xt=i&&i.disallowComments,tr=i&&i.allowTrailingComma;function ht(){for(;;){let yr=s.scan();switch(s.getTokenError()){case 4:wt(14);break;case 5:wt(15);break;case 3:wt(13);break;case 1:xt||wt(11);break;case 2:wt(12);break;case 6:wt(16);break}switch(yr){case 12:case 13:xt?wt(10):pt();break;case 16:wt(1);break;case 15:case 14:break;default:return yr}}}function wt(yr,co=[],Cs=[]){if($e(yr),co.length+Cs.length>0){let Cr=s.getToken();for(;Cr!==17;){if(co.indexOf(Cr)!==-1){ht();break}else if(Cs.indexOf(Cr)!==-1)break;Cr=ht()}}}function Ut(yr){let co=s.getTokenValue();return yr?Re(co):(j(co),l.push(co)),ht(),!0}function hr(){switch(s.getToken()){case 11:let yr=s.getTokenValue(),co=Number(yr);isNaN(co)&&(wt(2),co=0),Re(co);break;case 7:Re(null);break;case 8:Re(!0);break;case 9:Re(!1);break;default:return!1}return ht(),!0}function Hi(){return s.getToken()!==10?(wt(3,[],[2,5]),!1):(Ut(!1),s.getToken()===6?(Je(":"),ht(),Lo()||wt(4,[],[2,5])):wt(5,[],[2,5]),l.pop(),!0)}function un(){V(),ht();let yr=!1;for(;s.getToken()!==2&&s.getToken()!==17;){if(s.getToken()===5){if(yr||wt(4,[],[]),Je(","),ht(),s.getToken()===2&&tr)break}else yr&&wt(6,[],[]);Hi()||wt(4,[],[2,5]),yr=!0}return ie(),s.getToken()!==2?wt(7,[2],[]):ht(),!0}function xo(){te(),ht();let yr=!0,co=!1;for(;s.getToken()!==4&&s.getToken()!==17;){if(s.getToken()===5){if(co||wt(4,[],[]),Je(","),ht(),s.getToken()===4&&tr)break}else co&&wt(6,[],[]);yr?(l.push(0),yr=!1):l[l.length-1]++,Lo()||wt(4,[],[4,5]),co=!0}return X(),yr||l.pop(),s.getToken()!==4?wt(8,[4],[]):ht(),!0}function Lo(){switch(s.getToken()){case 3:return xo();case 1:return un();case 10:return Ut(!0);default:return hr()}}return ht(),s.getToken()===17?i.allowEmptyContent?!0:(wt(4,[],[]),!1):Lo()?(s.getToken()!==17&&wt(9,[],[]),!0):(wt(4,[],[]),!1)}var der;(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"})(der||(der={}));var fer;(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"})(fer||(fer={}));var her=per;var mer;(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"})(mer||(mer={}));function ger(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return""}import*as H0 from"effect/Effect";import*as Cer from"effect/Schema";import*as Ok from"effect/Data";var _y=e=>e instanceof Error?e.message:String(e),Nk=class extends Ok.TaggedError("LocalFileSystemError"){},l$=class extends Ok.TaggedError("LocalExecutorConfigDecodeError"){},aPe=class extends Ok.TaggedError("LocalWorkspaceStateDecodeError"){},yer=class extends Ok.TaggedError("LocalSourceArtifactDecodeError"){},sPe=class extends Ok.TaggedError("LocalToolTranspileError"){},$fe=class extends Ok.TaggedError("LocalToolImportError"){},u$=class extends Ok.TaggedError("LocalToolDefinitionError"){},cPe=class extends Ok.TaggedError("LocalToolPathConflictError"){},ver=class extends Ok.TaggedError("RuntimeLocalWorkspaceUnavailableError"){},Ser=class extends Ok.TaggedError("RuntimeLocalWorkspaceMismatchError"){},ber=class extends Ok.TaggedError("LocalConfiguredSourceNotFoundError"){},xer=class extends Ok.TaggedError("LocalSourceArtifactMissingError"){},Ter=class extends Ok.TaggedError("LocalUnsupportedSourceKindError"){};var Der=Cer.decodeUnknownSync(H7t),GIn=e=>`${JSON.stringify(e,null,2)} -`,qfe=e=>{let r=e.path.trim();return r.startsWith("~/")?sb(zfe(),r.slice(2)):r==="~"?zfe():WIn(r)?r:SW(e.scopeRoot,r)},Wst="executor.jsonc",Ufe=".executor",HIn="EXECUTOR_CONFIG_DIR",KIn="EXECUTOR_STATE_DIR",p$=(e,r)=>i=>new Nk({message:`Failed to ${r} ${e}: ${_y(i)}`,action:r,path:e,details:_y(i)}),cte=e=>{let r=e?.trim();return r&&r.length>0?r:void 0},QIn=(e={})=>{let r=e.env??process.env,i=e.platform??process.platform,s=e.homeDirectory??zfe(),l=cte(r[HIn]);return l||(i==="win32"?sb(cte(r.LOCALAPPDATA)??sb(s,"AppData","Local"),"Executor"):i==="darwin"?sb(s,"Library","Application Support","Executor"):sb(cte(r.XDG_CONFIG_HOME)??sb(s,".config"),"executor"))},ZIn=(e={})=>{let r=e.env??process.env,i=e.platform??process.platform,s=e.homeDirectory??zfe(),l=cte(r[KIn]);return l||(i==="win32"?sb(cte(r.LOCALAPPDATA)??sb(s,"AppData","Local"),"Executor","State"):i==="darwin"?sb(s,"Library","Application Support","Executor","State"):sb(cte(r.XDG_STATE_HOME)??sb(s,".local","state"),"executor"))},XIn=(e={})=>{let r=QIn({env:e.env,platform:e.platform,homeDirectory:e.homeDirectory??zfe()});return[sb(r,Wst)]},YIn=(e={})=>H0.gen(function*(){let r=yield*lte.FileSystem,i=XIn(e);for(let s of i)if(yield*r.exists(s).pipe(H0.mapError(p$(s,"check config path"))))return s;return i[0]}),ePn=(e={})=>ZIn(e),Eer=(e,r)=>{let i=e.split(` -`);return r.map(s=>{let l=e.slice(0,s.offset).split(` -`),d=l.length,h=l[l.length-1]?.length??0,S=i[d-1],b=`line ${d}, column ${h+1}`,A=ger(s.error);return S?`${A} at ${b} -${S}`:`${A} at ${b}`}).join(` -`)},tPn=e=>{let r=[];try{let i=her(e.content,r,{allowTrailingComma:!0});if(r.length>0)throw new l$({message:`Invalid executor config at ${e.path}: ${Eer(e.content,r)}`,path:e.path,details:Eer(e.content,r)});return Der(i)}catch(i){throw i instanceof l$?i:new l$({message:`Invalid executor config at ${e.path}: ${_y(i)}`,path:e.path,details:_y(i)})}},rPn=(e,r)=>{if(!(!e&&!r))return{...e,...r}},nPn=(e,r)=>{if(!(!e&&!r))return{...e,...r}},iPn=(e,r)=>{if(!(!e&&!r))return{...e,...r}},oPn=(e,r)=>!e&&!r?null:Der({runtime:r?.runtime??e?.runtime,workspace:{...e?.workspace,...r?.workspace},sources:rPn(e?.sources,r?.sources),policies:nPn(e?.policies,r?.policies),secrets:{providers:iPn(e?.secrets?.providers,r?.secrets?.providers),defaults:{...e?.secrets?.defaults,...r?.secrets?.defaults}}}),aPn=e=>H0.gen(function*(){let r=yield*lte.FileSystem,i=sb(e,Ufe,Wst);return yield*r.exists(i).pipe(H0.mapError(p$(i,"check project config path"))),i}),sPn=e=>H0.gen(function*(){let r=yield*lte.FileSystem,i=sb(e,Ufe,Wst);return yield*r.exists(i).pipe(H0.mapError(p$(i,"check project config path")))}),cPn=e=>H0.gen(function*(){let r=yield*lte.FileSystem,i=SW(e),s=null,l=null;for(;;){if(s===null&&(yield*sPn(i))&&(s=i),l===null){let h=sb(i,".git");(yield*r.exists(h).pipe(H0.mapError(p$(h,"check git root"))))&&(l=i)}let d=VIn(i);if(d===i)break;i=d}return s??l??SW(e)}),Gst=(e={})=>H0.gen(function*(){let r=SW(e.cwd??process.cwd()),i=SW(e.workspaceRoot??(yield*cPn(r))),s=JIn(i)||"workspace",l=yield*aPn(i),d=SW(e.homeConfigPath??(yield*YIn())),h=SW(e.homeStateDirectory??ePn());return{cwd:r,workspaceRoot:i,workspaceName:s,configDirectory:sb(i,Ufe),projectConfigPath:l,homeConfigPath:d,homeStateDirectory:h,artifactsDirectory:sb(i,Ufe,"artifacts"),stateDirectory:sb(i,Ufe,"state")}}),ker=e=>H0.gen(function*(){let r=yield*lte.FileSystem;if(!(yield*r.exists(e).pipe(H0.mapError(p$(e,"check config path")))))return null;let s=yield*r.readFileString(e,"utf8").pipe(H0.mapError(p$(e,"read config")));return yield*H0.try({try:()=>tPn({path:e,content:s}),catch:l=>l instanceof l$?l:new l$({message:`Invalid executor config at ${e}: ${_y(l)}`,path:e,details:_y(l)})})}),Hst=e=>H0.gen(function*(){let[r,i]=yield*H0.all([ker(e.homeConfigPath),ker(e.projectConfigPath)]);return{config:oPn(r,i),homeConfig:r,projectConfig:i,homeConfigPath:e.homeConfigPath,projectConfigPath:e.projectConfigPath}}),Kst=e=>H0.gen(function*(){let r=yield*lte.FileSystem;yield*r.makeDirectory(e.context.configDirectory,{recursive:!0}).pipe(H0.mapError(p$(e.context.configDirectory,"create config directory"))),yield*r.writeFileString(e.context.projectConfigPath,GIn(e.config)).pipe(H0.mapError(p$(e.context.projectConfigPath,"write config")))});import{randomUUID as _Pn}from"node:crypto";import{dirname as Per,join as dPn}from"node:path";import{FileSystem as Yst}from"@effect/platform";import{NodeFileSystem as koi}from"@effect/platform-node";import*as pv from"effect/Effect";import*as z_ from"effect/Option";import*as hx from"effect/Schema";import{createHash as lPn}from"node:crypto";import*as Ier from"effect/Effect";var Aer=Ed.make("acc_local_default"),uPn=e=>lPn("sha256").update(e).digest("hex").slice(0,16),pPn=e=>e.replaceAll("\\","/"),wer=e=>Ed.make(`ws_local_${uPn(pPn(e.workspaceRoot))}`),lPe=e=>({actorScopeId:Aer,scopeId:wer(e),resolutionScopeIds:[wer(e),Aer]}),uPe=e=>Ier.succeed(lPe(e)),Qst=e=>uPe(e.context);var Ner=1,fPn="executor-state.json",mPn=hx.Struct({version:hx.Literal(Ner),authArtifacts:hx.Array(P7t),authLeases:hx.Array(q7t),sourceOauthClients:hx.Array(J7t),scopeOauthClients:hx.Array(V7t),providerAuthGrants:hx.Array(W7t),sourceAuthSessions:hx.Array(L7t),secretMaterials:hx.Array(G7t),executions:hx.Array(uQe),executionInteractions:hx.Array(pQe),executionSteps:hx.Array(X7t)}),hPn=hx.decodeUnknown(mPn),gPn=()=>({version:Ner,authArtifacts:[],authLeases:[],sourceOauthClients:[],scopeOauthClients:[],providerAuthGrants:[],sourceAuthSessions:[],secretMaterials:[],executions:[],executionInteractions:[],executionSteps:[]}),Ud=e=>JSON.parse(JSON.stringify(e)),yPn=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null,Xst=e=>{if(Array.isArray(e)){let l=!1;return{value:e.map(h=>{let S=Xst(h);return l=l||S.migrated,S.value}),migrated:l}}let r=yPn(e);if(r===null)return{value:e,migrated:!1};let i=!1,s={};for(let[l,d]of Object.entries(r)){let h=l;l==="workspaceId"?(h="scopeId",i=!0):l==="actorAccountId"?(h="actorScopeId",i=!0):l==="createdByAccountId"?(h="createdByScopeId",i=!0):l==="workspaceOauthClients"&&(h="scopeOauthClients",i=!0);let S=Xst(d);i=i||S.migrated,s[h]=S.value}return{value:s,migrated:i}},x9=(e,r)=>i=>new Nk({message:`Failed to ${r} ${e}: ${_y(i)}`,action:r,path:e,details:_y(i)}),Jfe=(e,r)=>(e??null)===(r??null),b9=e=>[...e].sort((r,i)=>r.updatedAt-i.updatedAt||r.id.localeCompare(i.id)),Zst=e=>[...e].sort((r,i)=>i.updatedAt-r.updatedAt||i.id.localeCompare(r.id)),pPe=e=>dPn(e.homeStateDirectory,"workspaces",lPe(e).scopeId,fPn),vPn=(e,r)=>r.pipe(pv.provideService(Yst.FileSystem,e));var SPn=e=>pv.gen(function*(){let r=yield*Yst.FileSystem,i=pPe(e);if(!(yield*r.exists(i).pipe(pv.mapError(x9(i,"check executor state path")))))return gPn();let l=yield*r.readFileString(i,"utf8").pipe(pv.mapError(x9(i,"read executor state"))),d=yield*pv.try({try:()=>JSON.parse(l),catch:x9(i,"parse executor state")}),h=Xst(d),S=yield*hPn(h.value).pipe(pv.mapError(x9(i,"decode executor state")));return h.migrated&&(yield*Oer(e,S)),S}),Oer=(e,r)=>pv.gen(function*(){let i=yield*Yst.FileSystem,s=pPe(e),l=`${s}.${_Pn()}.tmp`;yield*i.makeDirectory(Per(s),{recursive:!0}).pipe(pv.mapError(x9(Per(s),"create executor state directory"))),yield*i.writeFileString(l,`${JSON.stringify(r,null,2)} -`,{mode:384}).pipe(pv.mapError(x9(l,"write executor state"))),yield*i.rename(l,s).pipe(pv.mapError(x9(s,"replace executor state")))});var bPn=(e,r)=>{let i=null,s=Promise.resolve(),l=b=>pv.runPromise(vPn(r,b)),d=async()=>(i!==null||(i=await l(SPn(e))),i);return{read:b=>pv.tryPromise({try:async()=>(await s,b(Ud(await d()))),catch:x9(pPe(e),"read executor state")}),mutate:b=>pv.tryPromise({try:async()=>{let A,L=null;if(s=s.then(async()=>{try{let V=Ud(await d()),j=await b(V);i=j.state,A=j.value,await l(Oer(e,i))}catch(V){L=V}}),await s,L!==null)throw L;return A},catch:x9(pPe(e),"write executor state")})}},xPn=(e,r)=>{let i=bPn(e,r);return{authArtifacts:{listByScopeId:s=>i.read(l=>b9(l.authArtifacts.filter(d=>d.scopeId===s))),listByScopeAndSourceId:s=>i.read(l=>b9(l.authArtifacts.filter(d=>d.scopeId===s.scopeId&&d.sourceId===s.sourceId))),getByScopeSourceAndActor:s=>i.read(l=>{let d=l.authArtifacts.find(h=>h.scopeId===s.scopeId&&h.sourceId===s.sourceId&&h.slot===s.slot&&Jfe(h.actorScopeId,s.actorScopeId));return d?z_.some(Ud(d)):z_.none()}),upsert:s=>i.mutate(l=>{let d=l.authArtifacts.filter(h=>!(h.scopeId===s.scopeId&&h.sourceId===s.sourceId&&h.slot===s.slot&&Jfe(h.actorScopeId,s.actorScopeId)));return d.push(Ud(s)),{state:{...l,authArtifacts:d},value:void 0}}),removeByScopeSourceAndActor:s=>i.mutate(l=>{let d=l.authArtifacts.filter(h=>h.scopeId!==s.scopeId||h.sourceId!==s.sourceId||!Jfe(h.actorScopeId,s.actorScopeId)||s.slot!==void 0&&h.slot!==s.slot);return{state:{...l,authArtifacts:d},value:d.length!==l.authArtifacts.length}}),removeByScopeAndSourceId:s=>i.mutate(l=>{let d=l.authArtifacts.filter(h=>h.scopeId!==s.scopeId||h.sourceId!==s.sourceId);return{state:{...l,authArtifacts:d},value:l.authArtifacts.length-d.length}})},authLeases:{listAll:()=>i.read(s=>b9(s.authLeases)),getByAuthArtifactId:s=>i.read(l=>{let d=l.authLeases.find(h=>h.authArtifactId===s);return d?z_.some(Ud(d)):z_.none()}),upsert:s=>i.mutate(l=>{let d=l.authLeases.filter(h=>h.authArtifactId!==s.authArtifactId);return d.push(Ud(s)),{state:{...l,authLeases:d},value:void 0}}),removeByAuthArtifactId:s=>i.mutate(l=>{let d=l.authLeases.filter(h=>h.authArtifactId!==s);return{state:{...l,authLeases:d},value:d.length!==l.authLeases.length}})},sourceOauthClients:{getByScopeSourceAndProvider:s=>i.read(l=>{let d=l.sourceOauthClients.find(h=>h.scopeId===s.scopeId&&h.sourceId===s.sourceId&&h.providerKey===s.providerKey);return d?z_.some(Ud(d)):z_.none()}),upsert:s=>i.mutate(l=>{let d=l.sourceOauthClients.filter(h=>!(h.scopeId===s.scopeId&&h.sourceId===s.sourceId&&h.providerKey===s.providerKey));return d.push(Ud(s)),{state:{...l,sourceOauthClients:d},value:void 0}}),removeByScopeAndSourceId:s=>i.mutate(l=>{let d=l.sourceOauthClients.filter(h=>h.scopeId!==s.scopeId||h.sourceId!==s.sourceId);return{state:{...l,sourceOauthClients:d},value:l.sourceOauthClients.length-d.length}})},scopeOauthClients:{listByScopeAndProvider:s=>i.read(l=>b9(l.scopeOauthClients.filter(d=>d.scopeId===s.scopeId&&d.providerKey===s.providerKey))),getById:s=>i.read(l=>{let d=l.scopeOauthClients.find(h=>h.id===s);return d?z_.some(Ud(d)):z_.none()}),upsert:s=>i.mutate(l=>{let d=l.scopeOauthClients.filter(h=>h.id!==s.id);return d.push(Ud(s)),{state:{...l,scopeOauthClients:d},value:void 0}}),removeById:s=>i.mutate(l=>{let d=l.scopeOauthClients.filter(h=>h.id!==s);return{state:{...l,scopeOauthClients:d},value:d.length!==l.scopeOauthClients.length}})},providerAuthGrants:{listByScopeId:s=>i.read(l=>b9(l.providerAuthGrants.filter(d=>d.scopeId===s))),listByScopeActorAndProvider:s=>i.read(l=>b9(l.providerAuthGrants.filter(d=>d.scopeId===s.scopeId&&d.providerKey===s.providerKey&&Jfe(d.actorScopeId,s.actorScopeId)))),getById:s=>i.read(l=>{let d=l.providerAuthGrants.find(h=>h.id===s);return d?z_.some(Ud(d)):z_.none()}),upsert:s=>i.mutate(l=>{let d=l.providerAuthGrants.filter(h=>h.id!==s.id);return d.push(Ud(s)),{state:{...l,providerAuthGrants:d},value:void 0}}),removeById:s=>i.mutate(l=>{let d=l.providerAuthGrants.filter(h=>h.id!==s);return{state:{...l,providerAuthGrants:d},value:d.length!==l.providerAuthGrants.length}})},sourceAuthSessions:{listAll:()=>i.read(s=>b9(s.sourceAuthSessions)),listByScopeId:s=>i.read(l=>b9(l.sourceAuthSessions.filter(d=>d.scopeId===s))),getById:s=>i.read(l=>{let d=l.sourceAuthSessions.find(h=>h.id===s);return d?z_.some(Ud(d)):z_.none()}),getByState:s=>i.read(l=>{let d=l.sourceAuthSessions.find(h=>h.state===s);return d?z_.some(Ud(d)):z_.none()}),getPendingByScopeSourceAndActor:s=>i.read(l=>{let d=b9(l.sourceAuthSessions.filter(h=>h.scopeId===s.scopeId&&h.sourceId===s.sourceId&&h.status==="pending"&&Jfe(h.actorScopeId,s.actorScopeId)&&(s.credentialSlot===void 0||h.credentialSlot===s.credentialSlot)))[0]??null;return d?z_.some(Ud(d)):z_.none()}),insert:s=>i.mutate(l=>({state:{...l,sourceAuthSessions:[...l.sourceAuthSessions,Ud(s)]},value:void 0})),update:(s,l)=>i.mutate(d=>{let h=null,S=d.sourceAuthSessions.map(b=>b.id!==s?b:(h={...b,...Ud(l)},h));return{state:{...d,sourceAuthSessions:S},value:h?z_.some(Ud(h)):z_.none()}}),upsert:s=>i.mutate(l=>{let d=l.sourceAuthSessions.filter(h=>h.id!==s.id);return d.push(Ud(s)),{state:{...l,sourceAuthSessions:d},value:void 0}}),removeByScopeAndSourceId:(s,l)=>i.mutate(d=>{let h=d.sourceAuthSessions.filter(S=>S.scopeId!==s||S.sourceId!==l);return{state:{...d,sourceAuthSessions:h},value:h.length!==d.sourceAuthSessions.length}})},secretMaterials:{getById:s=>i.read(l=>{let d=l.secretMaterials.find(h=>h.id===s);return d?z_.some(Ud(d)):z_.none()}),listAll:()=>i.read(s=>Zst(s.secretMaterials)),upsert:s=>i.mutate(l=>{let d=l.secretMaterials.filter(h=>h.id!==s.id);return d.push(Ud(s)),{state:{...l,secretMaterials:d},value:void 0}}),updateById:(s,l)=>i.mutate(d=>{let h=null,S=d.secretMaterials.map(b=>b.id!==s?b:(h={...b,...l.name!==void 0?{name:l.name}:{},...l.value!==void 0?{value:l.value}:{},updatedAt:Date.now()},h));return{state:{...d,secretMaterials:S},value:h?z_.some(Ud(h)):z_.none()}}),removeById:s=>i.mutate(l=>{let d=l.secretMaterials.filter(h=>h.id!==s);return{state:{...l,secretMaterials:d},value:d.length!==l.secretMaterials.length}})},executions:{getById:s=>i.read(l=>{let d=l.executions.find(h=>h.id===s);return d?z_.some(Ud(d)):z_.none()}),getByScopeAndId:(s,l)=>i.read(d=>{let h=d.executions.find(S=>S.scopeId===s&&S.id===l);return h?z_.some(Ud(h)):z_.none()}),insert:s=>i.mutate(l=>({state:{...l,executions:[...l.executions,Ud(s)]},value:void 0})),update:(s,l)=>i.mutate(d=>{let h=null,S=d.executions.map(b=>b.id!==s?b:(h={...b,...Ud(l)},h));return{state:{...d,executions:S},value:h?z_.some(Ud(h)):z_.none()}})},executionInteractions:{getById:s=>i.read(l=>{let d=l.executionInteractions.find(h=>h.id===s);return d?z_.some(Ud(d)):z_.none()}),listByExecutionId:s=>i.read(l=>Zst(l.executionInteractions.filter(d=>d.executionId===s))),getPendingByExecutionId:s=>i.read(l=>{let d=Zst(l.executionInteractions.filter(h=>h.executionId===s&&h.status==="pending"))[0]??null;return d?z_.some(Ud(d)):z_.none()}),insert:s=>i.mutate(l=>({state:{...l,executionInteractions:[...l.executionInteractions,Ud(s)]},value:void 0})),update:(s,l)=>i.mutate(d=>{let h=null,S=d.executionInteractions.map(b=>b.id!==s?b:(h={...b,...Ud(l)},h));return{state:{...d,executionInteractions:S},value:h?z_.some(Ud(h)):z_.none()}})},executionSteps:{getByExecutionAndSequence:(s,l)=>i.read(d=>{let h=d.executionSteps.find(S=>S.executionId===s&&S.sequence===l);return h?z_.some(Ud(h)):z_.none()}),listByExecutionId:s=>i.read(l=>[...l.executionSteps].filter(d=>d.executionId===s).sort((d,h)=>d.sequence-h.sequence||h.updatedAt-d.updatedAt)),insert:s=>i.mutate(l=>({state:{...l,executionSteps:[...l.executionSteps,Ud(s)]},value:void 0})),deleteByExecutionId:s=>i.mutate(l=>({state:{...l,executionSteps:l.executionSteps.filter(d=>d.executionId!==s)},value:void 0})),updateByExecutionAndSequence:(s,l,d)=>i.mutate(h=>{let S=null,b=h.executionSteps.map(A=>A.executionId!==s||A.sequence!==l?A:(S={...A,...Ud(d)},S));return{state:{...h,executionSteps:b},value:S?z_.some(Ud(S)):z_.none()}})}}},Fer=(e,r)=>({executorState:xPn(e,r),close:async()=>{}});import{randomUUID as nct}from"node:crypto";import{spawn as Mer}from"node:child_process";import{isAbsolute as TPn}from"node:path";import{FileSystem as ict}from"@effect/platform";import{NodeFileSystem as EPn}from"@effect/platform-node";import*as Ec from"effect/Effect";import*as oct from"effect/Layer";import*as _Pe from"effect/Option";var act="env",kPn="params",T9="keychain",z8="local",bW=e=>e instanceof Error?e:new Error(String(e)),CPn="executor",ute=5e3,jer="DANGEROUSLY_ALLOW_ENV_SECRETS",Ber="EXECUTOR_SECRET_STORE_PROVIDER",DPn="EXECUTOR_KEYCHAIN_SERVICE_NAME",pte=e=>{if(e==null)return null;let r=e.trim();return r.length>0?r:null},APn=e=>{let r=pte(e)?.toLowerCase();return r==="1"||r==="true"||r==="yes"},sct=e=>{let r=pte(e)?.toLowerCase();return r===T9?T9:r===z8?z8:null},wPn=e=>e??APn(process.env[jer]),IPn=e=>pte(e)??pte(process.env[DPn])??CPn,Vfe=e=>{let r=e?.trim();return r&&r.length>0?r:null},$er=e=>({id:e.id,providerId:e.providerId,name:e.name,purpose:e.purpose,createdAt:e.createdAt,updatedAt:e.updatedAt}),PPn=(e=process.platform)=>e==="darwin"?"security":e==="linux"?"secret-tool":null,xW=e=>Ec.tryPromise({try:()=>new Promise((r,i)=>{let s=Mer(e.command,[...e.args],{stdio:"pipe",env:e.env}),l="",d="",h=!1,S=e.timeoutMs===void 0?null:setTimeout(()=>{h||(h=!0,s.kill("SIGKILL"),i(new Error(`${e.operation}: '${e.command}' timed out after ${e.timeoutMs}ms`)))},e.timeoutMs);s.stdout.on("data",b=>{l+=b.toString("utf8")}),s.stderr.on("data",b=>{d+=b.toString("utf8")}),s.on("error",b=>{h||(h=!0,S&&clearTimeout(S),i(new Error(`${e.operation}: failed spawning '${e.command}': ${b.message}`)))}),s.on("close",b=>{h||(h=!0,S&&clearTimeout(S),r({exitCode:b??0,stdout:l,stderr:d}))}),e.stdin!==void 0&&s.stdin.write(e.stdin),s.stdin.end()}),catch:r=>r instanceof Error?r:new Error(`${e.operation}: command execution failed: ${String(r)}`)}),Wfe=e=>{if(e.result.exitCode===0)return Ec.succeed(e.result);let r=Vfe(e.result.stderr)??Vfe(e.result.stdout)??"command returned non-zero exit code";return Ec.fail(_a("local/secret-material-providers",`${e.operation}: ${e.message}: ${r}`))},ect=new Map,NPn=e=>Ec.tryPromise({try:async()=>{let r=ect.get(e);if(r)return r;let i=new Promise(l=>{let d=Mer(e,["--help"],{stdio:"ignore"}),h=setTimeout(()=>{d.kill("SIGKILL"),l(!1)},2e3);d.on("error",()=>{clearTimeout(h),l(!1)}),d.on("close",()=>{clearTimeout(h),l(!0)})});ect.set(e,i);let s=await i;return s||ect.delete(e),s},catch:r=>r instanceof Error?r:new Error(`command.exists: failed checking '${e}': ${String(r)}`)}),OPn=(e=process.platform)=>{let r=PPn(e);return r===null?Ec.succeed(!1):NPn(r)},Uer=(e={})=>{let r=z8,i=e.storeProviderId??sct((e.env??process.env)[Ber]);return i?Ec.succeed(i):(e.platform??process.platform)!=="darwin"?Ec.succeed(r):OPn(e.platform).pipe(Ec.map(s=>s?T9:r),Ec.catchAll(()=>Ec.succeed(r)))},rct=e=>Ec.gen(function*(){let r=QN.make(e.id),i=yield*e.runtime.executorState.secretMaterials.getById(r);return _Pe.isNone(i)?yield*_a("local/secret-material-providers",`${e.operation}: secret material not found: ${e.id}`):i.value}),zer=e=>Ec.gen(function*(){let r=Date.now(),i=QN.make(`sec_${nct()}`);return yield*e.runtime.executorState.secretMaterials.upsert({id:i,providerId:e.providerId,handle:e.providerHandle,name:pte(e.name),purpose:e.purpose,value:e.value,createdAt:r,updatedAt:r}),{providerId:e.providerId,handle:i}}),tct=e=>Ec.gen(function*(){let r=yield*rct({id:e.ref.handle,runtime:e.runtime,operation:e.operation});return r.providerId!==T9?yield*_a("local/secret-material-providers",`${e.operation}: secret ${r.id} is stored in provider '${r.providerId}', not '${T9}'`):{providerHandle:r.handle,material:r}}),Rer=e=>{switch(process.platform){case"darwin":return xW({command:"security",args:["find-generic-password","-a",e.providerHandle,"-s",e.runtime.keychainServiceName,"-w"],operation:"keychain.get",timeoutMs:ute}).pipe(Ec.flatMap(r=>Wfe({result:r,operation:"keychain.get",message:"Failed loading secret from macOS keychain"})),Ec.map(r=>r.stdout.trimEnd()));case"linux":return xW({command:"secret-tool",args:["lookup","service",e.runtime.keychainServiceName,"account",e.providerHandle],operation:"keychain.get",timeoutMs:ute}).pipe(Ec.flatMap(r=>Wfe({result:r,operation:"keychain.get",message:"Failed loading secret from desktop keyring"})),Ec.map(r=>r.stdout.trimEnd()));default:return Ec.fail(_a("local/secret-material-providers",`keychain.get: keychain provider is unsupported on platform '${process.platform}'`))}},Ler=e=>{let r=pte(e.name);switch(process.platform){case"darwin":return xW({command:"security",args:["add-generic-password","-a",e.providerHandle,"-s",e.runtime.keychainServiceName,"-w",e.value,...r?["-l",r]:[],"-U"],operation:"keychain.put",timeoutMs:ute}).pipe(Ec.flatMap(i=>Wfe({result:i,operation:"keychain.put",message:"Failed storing secret in macOS keychain"})));case"linux":return xW({command:"secret-tool",args:["store","--label",r??e.runtime.keychainServiceName,"service",e.runtime.keychainServiceName,"account",e.providerHandle],stdin:e.value,operation:"keychain.put",timeoutMs:ute}).pipe(Ec.flatMap(i=>Wfe({result:i,operation:"keychain.put",message:"Failed storing secret in desktop keyring"})));default:return Ec.fail(_a("local/secret-material-providers",`keychain.put: keychain provider is unsupported on platform '${process.platform}'`))}},FPn=e=>{switch(process.platform){case"darwin":return xW({command:"security",args:["delete-generic-password","-a",e.providerHandle,"-s",e.runtime.keychainServiceName],operation:"keychain.delete",timeoutMs:ute}).pipe(Ec.map(r=>r.exitCode===0));case"linux":return xW({command:"secret-tool",args:["clear","service",e.runtime.keychainServiceName,"account",e.providerHandle],operation:"keychain.delete",timeoutMs:ute}).pipe(Ec.map(r=>r.exitCode===0));default:return Ec.fail(_a("local/secret-material-providers",`keychain.delete: keychain provider is unsupported on platform '${process.platform}'`))}},RPn=()=>({resolve:({ref:e,context:r})=>{let i=Vfe(r.params?.[e.handle]);return i===null?Ec.fail(_a("local/secret-material-providers",`Secret parameter ${e.handle} is not set`)):Ec.succeed(i)},remove:()=>Ec.succeed(!1)}),LPn=()=>({resolve:({ref:e,runtime:r})=>{if(!r.dangerouslyAllowEnvSecrets)return Ec.fail(_a("local/secret-material-providers",`Env-backed secrets are disabled. Set ${jer}=true to allow provider '${act}'.`));let i=Vfe(r.env[e.handle]);return i===null?Ec.fail(_a("local/secret-material-providers",`Environment variable ${e.handle} is not set`)):Ec.succeed(i)},remove:()=>Ec.succeed(!1)}),MPn=()=>({resolve:({ref:e,runtime:r})=>Ec.gen(function*(){let i=yield*rct({id:e.handle,runtime:r,operation:"local.get"});return i.providerId!==z8?yield*_a("local/secret-material-providers",`local.get: secret ${i.id} is stored in provider '${i.providerId}', not '${z8}'`):i.value===null?yield*_a("local/secret-material-providers",`local.get: secret ${i.id} does not have a local value`):i.value}),store:({purpose:e,value:r,name:i,runtime:s})=>zer({providerId:z8,providerHandle:`local:${nct()}`,purpose:e,value:r,name:i,runtime:s}),update:({ref:e,name:r,value:i,runtime:s})=>Ec.gen(function*(){let l=yield*rct({id:e.handle,runtime:s,operation:"local.update"});if(l.providerId!==z8)return yield*_a("local/secret-material-providers",`local.update: secret ${l.id} is stored in provider '${l.providerId}', not '${z8}'`);if(r===void 0&&i===void 0)return $er(l);let d=yield*s.executorState.secretMaterials.updateById(l.id,{...r!==void 0?{name:r}:{},...i!==void 0?{value:i}:{}});return _Pe.isNone(d)?yield*_a("local/secret-material-providers",`local.update: secret material not found: ${l.id}`):{id:d.value.id,providerId:d.value.providerId,name:d.value.name,purpose:d.value.purpose,createdAt:d.value.createdAt,updatedAt:d.value.updatedAt}}),remove:({ref:e,runtime:r})=>Ec.gen(function*(){let i=QN.make(e.handle);return yield*r.executorState.secretMaterials.removeById(i)})}),jPn=()=>({resolve:({ref:e,runtime:r})=>Ec.gen(function*(){let i=yield*tct({ref:e,runtime:r,operation:"keychain.get"});return yield*Rer({providerHandle:i.providerHandle,runtime:r})}),store:({purpose:e,value:r,name:i,runtime:s})=>Ec.gen(function*(){let l=nct();return yield*Ler({providerHandle:l,name:i,value:r,runtime:s}),yield*zer({providerId:T9,providerHandle:l,purpose:e,value:null,name:i,runtime:s})}),update:({ref:e,name:r,value:i,runtime:s})=>Ec.gen(function*(){let l=yield*tct({ref:e,runtime:s,operation:"keychain.update"});if(r===void 0&&i===void 0)return $er(l.material);let d=r??l.material.name,h=i??(yield*Rer({providerHandle:l.providerHandle,runtime:s}));yield*Ler({providerHandle:l.providerHandle,name:d,value:h,runtime:s});let S=yield*s.executorState.secretMaterials.updateById(l.material.id,{name:d});return _Pe.isNone(S)?yield*_a("local/secret-material-providers",`keychain.update: secret material not found: ${l.material.id}`):{id:S.value.id,providerId:S.value.providerId,name:S.value.name,purpose:S.value.purpose,createdAt:S.value.createdAt,updatedAt:S.value.updatedAt}}),remove:({ref:e,runtime:r})=>Ec.gen(function*(){let i=yield*tct({ref:e,runtime:r,operation:"keychain.delete"});return(yield*FPn({providerHandle:i.providerHandle,runtime:r}))?yield*r.executorState.secretMaterials.removeById(i.material.id):!1})}),dPe=()=>new Map([[kPn,RPn()],[act,LPn()],[T9,jPn()],[z8,MPn()]]),fPe=e=>{let r=e.providers.get(e.providerId);return r?Ec.succeed(r):Ec.fail(_a("local/secret-material-providers",`Unsupported secret provider: ${e.providerId}`))},mPe=e=>({executorState:e.executorState,env:process.env,dangerouslyAllowEnvSecrets:wPn(e.dangerouslyAllowEnvSecrets),keychainServiceName:IPn(e.keychainServiceName),localConfig:e.localConfig??null,workspaceRoot:e.workspaceRoot??null}),BPn=(e,r)=>Ec.gen(function*(){let i=yield*ict.FileSystem,s=yield*i.stat(e).pipe(Ec.mapError(bW));if(s.type==="SymbolicLink"){if(!r)return!1;let l=yield*i.realPath(e).pipe(Ec.mapError(bW));return(yield*i.stat(l).pipe(Ec.mapError(bW))).type==="File"}return s.type==="File"}),$Pn=(e,r)=>Ec.gen(function*(){if(!r||r.length===0)return!0;let i=yield*ict.FileSystem,s=yield*i.realPath(e).pipe(Ec.mapError(bW));for(let l of r){let d=yield*i.realPath(l).pipe(Ec.mapError(bW));if(s===d||s.startsWith(`${d}/`))return!0}return!1}),UPn=e=>Ec.gen(function*(){let r=yield*ict.FileSystem,i=qfe({path:e.provider.path,scopeRoot:e.workspaceRoot}),s=yield*r.readFileString(i,"utf8").pipe(Ec.mapError(bW));return(e.provider.mode??"singleValue")==="singleValue"?s.trim():yield*Ec.try({try:()=>{let d=JSON.parse(s);if(e.ref.handle.startsWith("/")){let S=e.ref.handle.split("/").slice(1).map(A=>A.replaceAll("~1","/").replaceAll("~0","~")),b=d;for(let A of S){if(typeof b!="object"||b===null||!(A in b))throw new Error(`Secret path not found in ${i}: ${e.ref.handle}`);b=b[A]}if(typeof b!="string"||b.trim().length===0)throw new Error(`Secret path did not resolve to a string: ${e.ref.handle}`);return b}if(typeof d!="object"||d===null)throw new Error(`JSON secret provider must resolve to an object: ${i}`);let h=d[e.ref.handle];if(typeof h!="string"||h.trim().length===0)throw new Error(`Secret key not found in ${i}: ${e.ref.handle}`);return h},catch:bW})}),zPn=e=>Ec.gen(function*(){let r=Afe(e.ref.providerId);if(r===null)return yield*_a("local/secret-material-providers",`Unsupported secret provider: ${e.ref.providerId}`);let i=e.runtime.localConfig?.secrets?.providers?.[r];if(!i)return yield*_a("local/secret-material-providers",`Config secret provider "${r}" is not configured`);if(e.runtime.workspaceRoot===null)return yield*_a("local/secret-material-providers",`Config secret provider "${r}" requires a workspace root`);if(i.source==="env"){let h=Vfe(e.runtime.env[e.ref.handle]);return h===null?yield*_a("local/secret-material-providers",`Environment variable ${e.ref.handle} is not set`):h}if(i.source==="file")return yield*UPn({provider:i,ref:e.ref,workspaceRoot:e.runtime.workspaceRoot});let s=i.command.trim();return TPn(s)?(yield*BPn(s,i.allowSymlinkCommand??!1))?(yield*$Pn(s,i.trustedDirs))?yield*xW({command:s,args:[...i.args??[],e.ref.handle],env:{...e.runtime.env,...i.env},operation:`config-secret.get:${r}`}).pipe(Ec.flatMap(h=>Wfe({result:h,operation:`config-secret.get:${r}`,message:"Failed resolving configured exec secret"})),Ec.map(h=>h.stdout.trimEnd())):yield*_a("local/secret-material-providers",`Exec secret provider command is outside trustedDirs: ${s}`):yield*_a("local/secret-material-providers",`Exec secret provider command is not an allowed regular file: ${s}`):yield*_a("local/secret-material-providers",`Exec secret provider command must be absolute: ${s}`)}),qer=e=>{let r=dPe(),i=mPe(e);return({ref:s,context:l})=>Ec.gen(function*(){let d=yield*fPe({providers:r,providerId:s.providerId}).pipe(Ec.catchAll(()=>Afe(s.providerId)!==null?Ec.succeed(null):Ec.fail(_a("local/secret-material-providers",`Unsupported secret provider: ${s.providerId}`))));return d===null?yield*zPn({ref:s,runtime:i}):yield*d.resolve({ref:s,context:l??{},runtime:i})}).pipe(Ec.provide(EPn.layer))},Jer=e=>{let r=dPe(),i=mPe(e);return({purpose:s,value:l,name:d,providerId:h})=>Ec.gen(function*(){let S=yield*Uer({storeProviderId:sct(h)??void 0,env:i.env}),b=yield*fPe({providers:r,providerId:S});return b.store?yield*b.store({purpose:s,value:l,name:d,runtime:i}):yield*_a("local/secret-material-providers",`Secret provider ${S} does not support storing secret material`)})},Ver=e=>{let r=dPe(),i=mPe(e);return({ref:s,name:l,value:d})=>Ec.gen(function*(){let h=yield*fPe({providers:r,providerId:s.providerId});return h.update?yield*h.update({ref:s,name:l,value:d,runtime:i}):yield*_a("local/secret-material-providers",`Secret provider ${s.providerId} does not support updating secret material`)})},Wer=e=>{let r=dPe(),i=mPe(e);return s=>Ec.gen(function*(){let l=yield*fPe({providers:r,providerId:s.providerId});return l.remove?yield*l.remove({ref:s,runtime:i}):!1})};var Ger=()=>()=>{let e=sct(process.env[Ber]),r=[{id:z8,name:"Local store",canStore:!0}];return(process.platform==="darwin"||process.platform==="linux")&&r.push({id:T9,name:process.platform==="darwin"?"macOS Keychain":"Desktop Keyring",canStore:process.platform==="darwin"||e===T9}),r.push({id:act,name:"Environment variable",canStore:!1}),Uer({storeProviderId:e??void 0}).pipe(Ec.map(i=>({platform:process.platform,secretProviders:r,defaultSecretStoreProvider:i})))};import{join as gPe}from"node:path";import{FileSystem as cct}from"@effect/platform";import*as gx from"effect/Effect";import*as Her from"effect/Option";import*as oS from"effect/Schema";var Ker=3,Gfe=4,Hoi=oS.Struct({version:oS.Literal(Ker),sourceId:vf,catalogId:xD,generatedAt:Qc,revision:ipe,snapshot:Que}),Koi=oS.Struct({version:oS.Literal(Gfe),sourceId:vf,catalogId:xD,generatedAt:Qc,revision:ipe,snapshot:Que}),qPn=oS.Struct({version:oS.Literal(Ker),sourceId:vf,catalogId:xD,generatedAt:Qc,revision:ipe,snapshot:oS.Unknown}),JPn=oS.Struct({version:oS.Literal(Gfe),sourceId:vf,catalogId:xD,generatedAt:Qc,revision:ipe,snapshot:oS.Unknown}),VPn=oS.decodeUnknownOption(oS.parseJson(oS.Union(JPn,qPn))),WPn=e=>e.version===Gfe?e:{...e,version:Gfe},GPn=e=>e,Qer=e=>{let r=structuredClone(e),i=[];for(let[s,l]of Object.entries(r.snapshot.catalog.documents)){let d=l,h=l.native?.find(b=>b.kind==="source_document"&&typeof b.value=="string");if(!h||typeof h.value!="string")continue;i.push({documentId:s,blob:h,content:h.value});let S=(l.native??[]).filter(b=>b!==h);S.length>0?d.native=S:delete d.native}return{artifact:r,rawDocuments:i}},Zer=e=>{let r=structuredClone(e.artifact),i=GPn(r.snapshot.catalog.documents);for(let[s,l]of Object.entries(e.rawDocuments)){let d=i[s];if(!d)continue;let h=(d.native??[]).filter(S=>S.kind!=="source_document");d.native=[l,...h]}return r},HPn=e=>Xue(JSON.stringify(e)),KPn=e=>Xue(JSON.stringify(e.import)),QPn=e=>{try{return jke(e)}catch{return null}},Xer=e=>{let r=VPn(e);if(Her.isNone(r))return null;let i=WPn(r.value),s=QPn(i.snapshot);return s===null?null:{...i,snapshot:s}},hPe=e=>{let r=DIe(e.source),i=Date.now(),s=Yue(e.syncResult),l=KPn(s),d=HPn(s),h=YQt({source:e.source,catalogId:r,revisionNumber:1,importMetadataJson:JSON.stringify(s.import),importMetadataHash:l,snapshotHash:d});return{version:Gfe,sourceId:e.source.id,catalogId:r,generatedAt:i,revision:h,snapshot:s}};var xI=(e,r)=>i=>new Nk({message:`Failed to ${r} ${e}: ${_y(i)}`,action:r,path:e,details:_y(i)}),lct=e=>gPe(e.context.artifactsDirectory,"sources",`${e.sourceId}.json`),uct=e=>gPe(e.context.artifactsDirectory,"sources",e.sourceId,"documents"),Yer=e=>gPe(uct(e),`${e.documentId}.txt`);var pct=e=>gx.gen(function*(){let r=yield*cct.FileSystem,i=lct(e);if(!(yield*r.exists(i).pipe(gx.mapError(xI(i,"check source artifact path")))))return null;let l=yield*r.readFileString(i,"utf8").pipe(gx.mapError(xI(i,"read source artifact"))),d=Xer(l);if(d===null)return null;let h={};for(let S of Object.keys(d.snapshot.catalog.documents)){let b=Yer({context:e.context,sourceId:e.sourceId,documentId:S});if(!(yield*r.exists(b).pipe(gx.mapError(xI(b,"check source document path")))))continue;let L=yield*r.readFileString(b,"utf8").pipe(gx.mapError(xI(b,"read source document")));h[S]={sourceKind:d.snapshot.import.sourceKind,kind:"source_document",value:L}}return Object.keys(h).length>0?Zer({artifact:d,rawDocuments:h}):d}),_ct=e=>gx.gen(function*(){let r=yield*cct.FileSystem,i=gPe(e.context.artifactsDirectory,"sources"),s=lct(e),l=uct(e),d=Qer(e.artifact);if(yield*r.makeDirectory(i,{recursive:!0}).pipe(gx.mapError(xI(i,"create source artifact directory"))),yield*r.remove(l,{recursive:!0,force:!0}).pipe(gx.mapError(xI(l,"remove source document directory"))),d.rawDocuments.length>0){yield*r.makeDirectory(l,{recursive:!0}).pipe(gx.mapError(xI(l,"create source document directory")));for(let h of d.rawDocuments){let S=Yer({context:e.context,sourceId:e.sourceId,documentId:h.documentId});yield*r.writeFileString(S,h.content).pipe(gx.mapError(xI(S,"write source document")))}}yield*r.writeFileString(s,`${JSON.stringify(d.artifact)} -`).pipe(gx.mapError(xI(s,"write source artifact")))}),dct=e=>gx.gen(function*(){let r=yield*cct.FileSystem,i=lct(e);(yield*r.exists(i).pipe(gx.mapError(xI(i,"check source artifact path"))))&&(yield*r.remove(i).pipe(gx.mapError(xI(i,"remove source artifact"))));let l=uct(e);yield*r.remove(l,{recursive:!0,force:!0}).pipe(gx.mapError(xI(l,"remove source document directory")))});import{createHash as ltr}from"node:crypto";import{dirname as Sct,extname as Hfe,join as TW,relative as bct,resolve as ZPn,sep as ptr}from"node:path";import{fileURLToPath as XPn,pathToFileURL as YPn}from"node:url";import{FileSystem as Kfe}from"@effect/platform";var TI=fJ(ctr(),1);import*as tf from"effect/Effect";var e6n=new Set([".ts",".js",".mjs"]),t6n="tools",r6n="local-tools",n6n="local.tool",i6n=/^[A-Za-z0-9_-]+$/;var o6n=()=>{let e={};return{tools:e,catalog:Z7({tools:e}),toolInvoker:Q7({tools:e}),toolPaths:new Set}},J8=(e,r)=>i=>new Nk({message:`Failed to ${r} ${e}: ${_y(i)}`,action:r,path:e,details:_y(i)}),a6n=e=>TW(e.configDirectory,t6n),s6n=e=>TW(e.artifactsDirectory,r6n),c6n=e=>e6n.has(Hfe(e)),l6n=e=>e.startsWith(".")||e.startsWith("_"),u6n=e=>{let r=Hfe(e);return`${e.slice(0,-r.length)}.js`},p6n=e=>tf.gen(function*(){let i=e.slice(0,-Hfe(e).length).split(ptr).filter(Boolean),s=i.at(-1)==="index"?i.slice(0,-1):i;if(s.length===0)return yield*new u$({message:`Invalid local tool path ${e}: root index files are not supported`,path:e,details:"Root index files are not supported. Use a named file such as hello.ts or a nested index.ts."});for(let l of s)if(!i6n.test(l))return yield*new u$({message:`Invalid local tool path ${e}: segment ${l} contains unsupported characters`,path:e,details:`Tool path segments may only contain letters, numbers, underscores, and hyphens. Invalid segment: ${l}`});return s.join(".")}),_6n=e=>tf.gen(function*(){return(yield*(yield*Kfe.FileSystem).readDirectory(e).pipe(tf.mapError(J8(e,"read local tools directory")))).sort((s,l)=>s.localeCompare(l))}),d6n=e=>tf.gen(function*(){let r=yield*Kfe.FileSystem;if(!(yield*r.exists(e).pipe(tf.mapError(J8(e,"check local tools directory")))))return[];let s=l=>tf.gen(function*(){let d=yield*_6n(l),h=[];for(let S of d){let b=TW(l,S),A=yield*r.stat(b).pipe(tf.mapError(J8(b,"stat local tool path")));if(A.type==="Directory"){h.push(...yield*s(b));continue}A.type==="File"&&c6n(b)&&h.push(b)}return h});return yield*s(e)}),f6n=(e,r)=>r.filter(i=>bct(e,i).split(ptr).every(s=>!l6n(s))),m6n=(e,r)=>{let i=(r??[]).filter(s=>s.category===TI.DiagnosticCategory.Error).map(s=>{let l=TI.flattenDiagnosticMessageText(s.messageText,` -`);if(!s.file||s.start===void 0)return l;let d=s.file.getLineAndCharacterOfPosition(s.start);return`${d.line+1}:${d.character+1} ${l}`});return i.length===0?null:new sPe({message:`Failed to transpile local tool ${e}`,path:e,details:i.join(` -`)})},vct=e=>{if(!e.startsWith("./")&&!e.startsWith("../"))return e;let r=e.match(/^(.*?)(\?.*|#.*)?$/),i=r?.[1]??e,s=r?.[2]??"",l=Hfe(i);return l===".js"?e:[".ts",".mjs"].includes(l)?`${i.slice(0,-l.length)}.js${s}`:l.length>0?e:`${i}.js${s}`},utr=e=>e.replace(/(from\s+["'])(\.{1,2}\/[^"']+)(["'])/g,(r,i,s,l)=>`${i}${vct(s)}${l}`).replace(/(import\s+["'])(\.{1,2}\/[^"']+)(["'])/g,(r,i,s,l)=>`${i}${vct(s)}${l}`).replace(/(import\(\s*["'])(\.{1,2}\/[^"']+)(["']\s*\))/g,(r,i,s,l)=>`${i}${vct(s)}${l}`),h6n=e=>tf.gen(function*(){if(Hfe(e.sourcePath)!==".ts")return utr(e.content);let r=TI.transpileModule(e.content,{fileName:e.sourcePath,compilerOptions:{module:TI.ModuleKind.ESNext,moduleResolution:TI.ModuleResolutionKind.Bundler,target:TI.ScriptTarget.ES2022,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1},reportDiagnostics:!0}),i=m6n(e.sourcePath,r.diagnostics);return i?yield*i:utr(r.outputText)}),g6n=()=>tf.gen(function*(){let e=yield*Kfe.FileSystem,r=Sct(XPn(import.meta.url));for(;;){let i=TW(r,"node_modules");if(yield*e.exists(i).pipe(tf.mapError(J8(i,"check executor node_modules directory"))))return i;let l=Sct(r);if(l===r)return null;r=l}}),y6n=e=>tf.gen(function*(){let r=yield*Kfe.FileSystem,i=TW(e,"node_modules"),s=yield*g6n();(yield*r.exists(i).pipe(tf.mapError(J8(i,"check local tool node_modules link"))))||s!==null&&(yield*r.symlink(s,i).pipe(tf.mapError(J8(i,"create local tool node_modules link"))))}),v6n=e=>tf.gen(function*(){let r=yield*Kfe.FileSystem,i=yield*tf.forEach(e.sourceFiles,h=>tf.gen(function*(){let S=yield*r.readFileString(h,"utf8").pipe(tf.mapError(J8(h,"read local tool source"))),b=bct(e.sourceDirectory,h),A=ltr("sha256").update(b).update("\0").update(S).digest("hex").slice(0,12);return{sourcePath:h,relativePath:b,content:S,contentHash:A}})),s=ltr("sha256").update(JSON.stringify(i.map(h=>[h.relativePath,h.contentHash]))).digest("hex").slice(0,16),l=TW(s6n(e.context),s);yield*r.makeDirectory(l,{recursive:!0}).pipe(tf.mapError(J8(l,"create local tool artifact directory"))),yield*y6n(l);let d=new Map;for(let h of i){let S=u6n(h.relativePath),b=TW(l,S),A=Sct(b),L=yield*h6n({sourcePath:h.sourcePath,content:h.content});yield*r.makeDirectory(A,{recursive:!0}).pipe(tf.mapError(J8(A,"create local tool artifact parent directory"))),yield*r.writeFileString(b,L).pipe(tf.mapError(J8(b,"write local tool artifact"))),d.set(h.sourcePath,b)}return d}),_tr=e=>typeof e=="object"&&e!==null&&"inputSchema"in e&&typeof e.execute=="function",S6n=e=>typeof e=="object"&&e!==null&&"tool"in e&&_tr(e.tool),b6n=e=>{let r=`${n6n}.${e.toolPath}`;if(S6n(e.exported)){let i=e.exported;return tf.succeed({...i,metadata:{...i.metadata,sourceKey:r}})}if(_tr(e.exported)){let i=e.exported;return tf.succeed({tool:i,metadata:{sourceKey:r}})}return tf.fail(new u$({message:`Invalid local tool export in ${e.sourcePath}`,path:e.sourcePath,details:"Local tool files must export a default value or named `tool` export containing either an executable tool or a `{ tool, metadata? }` definition."}))},x6n=e=>tf.tryPromise({try:()=>import(YPn(ZPn(e.artifactPath)).href),catch:r=>new $fe({message:`Failed to import local tool ${e.sourcePath}`,path:e.sourcePath,details:_y(r)})}).pipe(tf.flatMap(r=>{let i=r.default!==void 0,s=r.tool!==void 0;return i&&s?tf.fail(new u$({message:`Invalid local tool export in ${e.sourcePath}`,path:e.sourcePath,details:"Export either a default tool or a named `tool` export, but not both."})):!i&&!s?tf.fail(new u$({message:`Missing local tool export in ${e.sourcePath}`,path:e.sourcePath,details:"Expected a default export or named `tool` export."})):b6n({toolPath:e.toolPath,sourcePath:e.sourcePath,exported:i?r.default:r.tool})})),dtr=e=>tf.gen(function*(){let r=a6n(e),i=yield*d6n(r);if(i.length===0)return o6n();let s=yield*v6n({context:e,sourceDirectory:r,sourceFiles:i}),l=f6n(r,i),d={},h=new Map;for(let S of l){let b=bct(r,S),A=yield*p6n(b),L=h.get(A);if(L)return yield*new cPe({message:`Local tool path conflict for ${A}`,path:S,otherPath:L,toolPath:A});let V=s.get(S);if(!V)return yield*new $fe({message:`Missing compiled artifact for local tool ${S}`,path:S,details:"Expected a compiled local tool artifact, but none was produced."});d[A]=yield*x6n({sourcePath:S,artifactPath:V,toolPath:A}),h.set(A,S)}return{tools:d,catalog:Z7({tools:d}),toolInvoker:Q7({tools:d}),toolPaths:new Set(Object.keys(d))}});import{join as k6n}from"node:path";import{FileSystem as htr}from"@effect/platform";import*as V8 from"effect/Effect";import*as gtr from"effect/Schema";import*as yx from"effect/Schema";var T6n=yx.Struct({status:fY,lastError:yx.NullOr(yx.String),sourceHash:yx.NullOr(yx.String),createdAt:Qc,updatedAt:Qc}),E6n=yx.Struct({id:uY,createdAt:Qc,updatedAt:Qc}),ftr=yx.Struct({version:yx.Literal(1),sources:yx.Record({key:yx.String,value:T6n}),policies:yx.Record({key:yx.String,value:E6n})}),mtr=()=>({version:1,sources:{},policies:{}});var C6n="workspace-state.json",D6n=gtr.decodeUnknownSync(ftr),SPe=(e,r)=>i=>new Nk({message:`Failed to ${r} ${e}: ${_y(i)}`,action:r,path:e,details:_y(i)}),ytr=e=>k6n(e.stateDirectory,C6n),xct=e=>V8.gen(function*(){let r=yield*htr.FileSystem,i=ytr(e);if(!(yield*r.exists(i).pipe(V8.mapError(SPe(i,"check workspace state path")))))return mtr();let l=yield*r.readFileString(i,"utf8").pipe(V8.mapError(SPe(i,"read workspace state")));return yield*V8.try({try:()=>D6n(JSON.parse(l)),catch:d=>new aPe({message:`Invalid local scope state at ${i}: ${_y(d)}`,path:i,details:_y(d)})})}),Tct=e=>V8.gen(function*(){let r=yield*htr.FileSystem;yield*r.makeDirectory(e.context.stateDirectory,{recursive:!0}).pipe(V8.mapError(SPe(e.context.stateDirectory,"create state directory")));let i=ytr(e.context);yield*r.writeFileString(i,`${JSON.stringify(e.state,null,2)} -`).pipe(V8.mapError(SPe(i,"write workspace state")))});import{join as Qfe}from"node:path";import{FileSystem as Str}from"@effect/platform";import{NodeFileSystem as btr}from"@effect/platform-node";import*as bPe from"effect/Cause";import*as kd from"effect/Effect";import*as Dct from"effect/Fiber";var A6n="types",w6n="sources",qD=(e,r)=>i=>new Nk({message:`Failed to ${r} ${e}: ${_y(i)}`,action:r,path:e,details:_y(i)}),xPe=e=>Qfe(e.configDirectory,A6n),Act=e=>Qfe(xPe(e),w6n),xtr=e=>`${e}.d.ts`,Ttr=(e,r)=>Qfe(Act(e),xtr(r)),Etr=e=>Qfe(xPe(e),"index.d.ts"),Cct=e=>`SourceTools_${e.replace(/[^A-Za-z0-9_$]+/g,"_")}`,I6n=e=>`(${e.argsOptional?"args?:":"args:"} ${e.inputType}) => Promise<${e.outputType}>`,vtr=()=>({method:null,children:new Map}),P6n=(e,r)=>e.length===0?"{}":["{",...e.map(i=>`${r}${i}`),`${r.slice(0,-2)}}`].join(` -`),ktr=(e,r)=>{let i=" ".repeat(r+1),s=[...e.children.entries()].sort(([h],[S])=>h.localeCompare(S)).map(([h,S])=>`${EQe(h)}: ${ktr(S,r+1)};`),l=P6n(s,i);if(e.method===null)return l;let d=I6n(e.method);return e.children.size===0?d:`(${d}) & ${l}`},N6n=e=>{let r=vtr();for(let i of e){let s=r;for(let l of i.segments){let d=s.children.get(l);if(d){s=d;continue}let h=vtr();s.children.set(l,h),s=h}s.method=i}return r},O6n=e=>{let r=Zue({catalog:e.catalog}),i=Object.values(r.toolDescriptors).sort((d,h)=>d.toolPath.join(".").localeCompare(h.toolPath.join("."))),s=upe({catalog:r.catalog,roots:cCe(r)});return{methods:i.map(d=>({segments:d.toolPath,inputType:s.renderDeclarationShape(d.callShapeId,{aliasHint:c0(...d.toolPath,"call")}),outputType:d.resultShapeId?s.renderDeclarationShape(d.resultShapeId,{aliasHint:c0(...d.toolPath,"result")}):"unknown",argsOptional:ppe(r.catalog,d.callShapeId)})),supportingTypes:s.supportingDeclarations()}},Ctr=e=>{let r=Cct(e.source.id),i=O6n(e.snapshot),s=N6n(i.methods),l=ktr(s,0);return["// Generated by executor. Do not edit by hand.",`// Source: ${e.source.name} (${e.source.id})`,"",...i.supportingTypes,...i.supportingTypes.length>0?[""]:[],`export interface ${r} ${l}`,"",`export declare const tools: ${r};`,`export type ${r}Tools = ${r};`,"export default tools;",""].join(` -`)},F6n=e=>Dtr(e.map(r=>({sourceId:r.source.id}))),Dtr=e=>{let r=[...e].sort((d,h)=>d.sourceId.localeCompare(h.sourceId)),i=r.map(d=>`import type { ${Cct(d.sourceId)} } from "../sources/${d.sourceId}";`),s=r.map(d=>Cct(d.sourceId)),l=s.length>0?s.join(" & "):"{}";return["// Generated by executor. Do not edit by hand.",...i,...i.length>0?[""]:[],`export type ExecutorSourceTools = ${l};`,"","declare global {"," const tools: ExecutorSourceTools;","}","","export declare const tools: ExecutorSourceTools;","export default tools;",""].join(` -`)},R6n=e=>kd.gen(function*(){let r=yield*Str.FileSystem,i=xPe(e.context),s=Act(e.context),l=e.entries.filter(b=>b.source.enabled&&b.source.status==="connected").sort((b,A)=>b.source.id.localeCompare(A.source.id));yield*r.makeDirectory(i,{recursive:!0}).pipe(kd.mapError(qD(i,"create declaration directory"))),yield*r.makeDirectory(s,{recursive:!0}).pipe(kd.mapError(qD(s,"create source declaration directory")));let d=new Set(l.map(b=>xtr(b.source.id))),h=yield*r.readDirectory(s).pipe(kd.mapError(qD(s,"read source declaration directory")));for(let b of h){if(d.has(b))continue;let A=Qfe(s,b);yield*r.remove(A).pipe(kd.mapError(qD(A,"remove stale source declaration")))}for(let b of l){let A=Ttr(e.context,b.source.id);yield*r.writeFileString(A,Ctr(b)).pipe(kd.mapError(qD(A,"write source declaration")))}let S=Etr(e.context);yield*r.writeFileString(S,F6n(l)).pipe(kd.mapError(qD(S,"write aggregate declaration")))}),L6n=e=>kd.gen(function*(){let r=yield*Str.FileSystem,i=xPe(e.context),s=Act(e.context);yield*r.makeDirectory(i,{recursive:!0}).pipe(kd.mapError(qD(i,"create declaration directory"))),yield*r.makeDirectory(s,{recursive:!0}).pipe(kd.mapError(qD(s,"create source declaration directory")));let l=Ttr(e.context,e.source.id);if(e.source.enabled&&e.source.status==="connected"&&e.snapshot!==null){let b=e.snapshot;if(b===null)return;yield*r.writeFileString(l,Ctr({source:e.source,snapshot:b})).pipe(kd.mapError(qD(l,"write source declaration")))}else(yield*r.exists(l).pipe(kd.mapError(qD(l,"check source declaration path"))))&&(yield*r.remove(l).pipe(kd.mapError(qD(l,"remove source declaration"))));let h=(yield*r.readDirectory(s).pipe(kd.mapError(qD(s,"read source declaration directory")))).filter(b=>b.endsWith(".d.ts")).map(b=>({sourceId:b.slice(0,-5)})),S=Etr(e.context);yield*r.writeFileString(S,Dtr(h)).pipe(kd.mapError(qD(S,"write aggregate declaration")))}),Atr=e=>R6n(e).pipe(kd.provide(btr.layer)),wtr=e=>L6n(e).pipe(kd.provide(btr.layer)),Itr=(e,r)=>{let i=bPe.isCause(r)?bPe.pretty(r):r instanceof Error?r.message:String(r);console.warn(`[source-types] ${e} failed: ${i}`)},Ptr="1500 millis",Ect=new Map,kct=new Map,wct=e=>{let r=e.context.configDirectory,i=Ect.get(r);i&&kd.runFork(Dct.interruptFork(i));let s=kd.runFork(kd.sleep(Ptr).pipe(kd.zipRight(Atr(e).pipe(kd.catchAllCause(l=>kd.sync(()=>{Itr("workspace declaration refresh",l)}))))));Ect.set(r,s),s.addObserver(()=>{Ect.delete(r)})},Ict=e=>{let r=`${e.context.configDirectory}:${e.source.id}`,i=kct.get(r);i&&kd.runFork(Dct.interruptFork(i));let s=kd.runFork(kd.sleep(Ptr).pipe(kd.zipRight(wtr(e).pipe(kd.catchAllCause(l=>kd.sync(()=>{Itr(`source ${e.source.id} declaration refresh`,l)}))))));kct.set(r,s),s.addObserver(()=>{kct.delete(r)})};var W8=e=>e instanceof Error?e:new Error(String(e)),E9=(e,r)=>r.pipe(_v.provideService(Ntr.FileSystem,e)),j6n=e=>({load:()=>uPe(e).pipe(_v.mapError(W8)),getOrProvision:()=>Qst({context:e}).pipe(_v.mapError(W8))}),B6n=(e,r)=>({load:()=>E9(r,Hst(e)).pipe(_v.mapError(W8)),writeProject:i=>E9(r,Kst({context:e,config:i})).pipe(_v.mapError(W8)),resolveRelativePath:qfe}),$6n=(e,r)=>({load:()=>E9(r,xct(e)).pipe(_v.mapError(W8)),write:i=>E9(r,Tct({context:e,state:i})).pipe(_v.mapError(W8))}),U6n=(e,r)=>({build:hPe,read:i=>E9(r,pct({context:e,sourceId:i})).pipe(_v.mapError(W8)),write:({sourceId:i,artifact:s})=>E9(r,_ct({context:e,sourceId:i,artifact:s})).pipe(_v.mapError(W8)),remove:i=>E9(r,dct({context:e,sourceId:i})).pipe(_v.mapError(W8))}),z6n=(e,r)=>({load:()=>E9(r,dtr(e))}),q6n=e=>({refreshWorkspaceInBackground:({entries:r})=>_v.sync(()=>{wct({context:e,entries:r})}),refreshSourceInBackground:({source:r,snapshot:i})=>_v.sync(()=>{Ict({context:e,source:r,snapshot:i})})}),J6n=e=>({scopeName:e.workspaceName,scopeRoot:e.workspaceRoot,metadata:{kind:"file",configDirectory:e.configDirectory,projectConfigPath:e.projectConfigPath,homeConfigPath:e.homeConfigPath,homeStateDirectory:e.homeStateDirectory,artifactsDirectory:e.artifactsDirectory,stateDirectory:e.stateDirectory}}),V6n=(e={},r={})=>_v.gen(function*(){let i=yield*Ntr.FileSystem,s=yield*E9(i,Gst({cwd:e.cwd,workspaceRoot:e.workspaceRoot,homeConfigPath:e.homeConfigPath,homeStateDirectory:e.homeStateDirectory})).pipe(_v.mapError(W8)),l=Fer(s,i),d=B6n(s,i),h=yield*d.load(),S=r.resolveSecretMaterial??qer({executorState:l.executorState,localConfig:h.config,workspaceRoot:s.workspaceRoot});return{scope:J6n(s),installation:j6n(s),workspace:{config:d,state:$6n(s,i),sourceArtifacts:U6n(s,i),sourceAuth:{artifacts:l.executorState.authArtifacts,leases:l.executorState.authLeases,sourceOauthClients:l.executorState.sourceOauthClients,scopeOauthClients:l.executorState.scopeOauthClients,providerGrants:l.executorState.providerAuthGrants,sourceSessions:l.executorState.sourceAuthSessions},localTools:z6n(s,i),sourceTypeDeclarations:q6n(s)},secrets:{...l.executorState.secretMaterials,resolve:S,store:Jer({executorState:l.executorState}),delete:Wer({executorState:l.executorState}),update:Ver({executorState:l.executorState})},executions:{runs:l.executorState.executions,interactions:l.executorState.executionInteractions,steps:l.executorState.executionSteps},instanceConfig:{resolve:Ger()},close:l.close}}).pipe(_v.provide(M6n.layer)),Pct=(e={})=>nte({loadRepositories:r=>V6n(e,r)});import*as Mtr from"effect/Effect";import*as EW from"effect/Effect";var Otr={action:"accept"},W6n={action:"decline"},G6n=e=>{let r=e.context??{},i=r.invocationDescriptor??{};return{toolPath:String(e.path),sourceId:String(i.sourceId??e.sourceKey??""),sourceName:String(i.sourceName??""),operationKind:i.operationKind??"unknown",args:e.args,reason:String(r.interactionReason??"Approval required"),approvalLabel:typeof i.approvalLabel=="string"?i.approvalLabel:null,context:r}},H6n=e=>{let r=e.context??{};return e.elicitation.mode==="url"?{kind:"url",url:e.elicitation.url,message:e.elicitation.message,sourceId:e.sourceKey||void 0,context:r}:{kind:"form",message:e.elicitation.message,requestedSchema:e.elicitation.requestedSchema,toolPath:String(e.path)||void 0,sourceId:e.sourceKey||void 0,context:r}},K6n=e=>e.context?.interactionPurpose==="tool_execution_gate",Ftr=e=>{let{onToolApproval:r,onInteraction:i}=e;return s=>EW.gen(function*(){if(K6n(s)){if(r==="allow-all"||r===void 0)return Otr;if(r==="deny-all")return W6n;let h=G6n(s);return(yield*EW.tryPromise({try:()=>Promise.resolve(r(h)),catch:b=>b instanceof Error?b:new Error(String(b))})).approved?Otr:{action:"decline"}}if(!i){let h=s.elicitation.mode??"form";return yield*EW.fail(new Error(`An ${h} interaction was requested (${s.elicitation.message}), but no onInteraction callback was provided`))}let l=H6n(s),d=yield*EW.tryPromise({try:()=>Promise.resolve(i(l)),catch:h=>h instanceof Error?h:new Error(String(h))});return{action:d.action,content:"content"in d?d.content:void 0}})};var H8=e=>JSON.parse(JSON.stringify(e)),Q6n=(e,r)=>{let i=e.find(r);return i!=null?H8(i):null},Z6n=()=>{let e=Ed.make(`ws_mem_${crypto.randomUUID().slice(0,16)}`),r=Ed.make(`acc_mem_${crypto.randomUUID().slice(0,16)}`);return{scopeId:e,actorScopeId:r,resolutionScopeIds:[e,r]}},G8=()=>{let e=[];return{items:e,findBy:r=>Q6n(e,r),filterBy:r=>H8(e.filter(r)),insert:r=>{e.push(H8(r))},upsertBy:(r,i)=>{let s=r(i),l=e.findIndex(d=>r(d)===s);l>=0?e[l]=H8(i):e.push(H8(i))},removeBy:r=>{let i=e.findIndex(r);return i>=0?(e.splice(i,1),!0):!1},removeAllBy:r=>{let i=e.length,s=e.filter(l=>!r(l));return e.length=0,e.push(...s),i-s.length},updateBy:(r,i)=>{let s=e.find(r);return s?(Object.assign(s,i),H8(s)):null}}},Rtr=e=>nte({loadRepositories:r=>{let i=Z6n(),s=e?.resolveSecret,l=G8(),d=G8(),h=G8(),S=G8(),b=G8(),A=G8(),L=G8(),V=G8(),j=G8(),ie=G8(),te=new Map;return{scope:{scopeName:"memory",scopeRoot:process.cwd()},installation:{load:()=>H8(i),getOrProvision:()=>H8(i)},workspace:{config:{load:()=>({config:null,homeConfig:null,projectConfig:null}),writeProject:()=>{},resolveRelativePath:({path:X})=>X},state:{load:()=>({version:1,sources:{},policies:{}}),write:()=>{}},sourceArtifacts:{build:(({source:X,syncResult:Re})=>({version:4,sourceId:X.id,catalogId:`catalog_${X.id}`,generatedAt:Date.now(),revision:{revisionId:`rev_${crypto.randomUUID().slice(0,8)}`,revisionNumber:1},snapshot:Re})),read:X=>te.get(X)??null,write:({sourceId:X,artifact:Re})=>{te.set(X,Re)},remove:X=>{te.delete(X)}},sourceAuth:{artifacts:{listByScopeId:X=>l.filterBy(Re=>Re.scopeId===X),listByScopeAndSourceId:({scopeId:X,sourceId:Re})=>l.filterBy(Je=>Je.scopeId===X&&Je.sourceId===Re),getByScopeSourceAndActor:({scopeId:X,sourceId:Re,actorScopeId:Je,slot:pt})=>l.findBy($e=>$e.scopeId===X&&$e.sourceId===Re&&$e.actorScopeId===Je&&$e.slot===pt),upsert:X=>l.upsertBy(Re=>`${Re.scopeId}:${Re.sourceId}:${Re.actorScopeId}:${Re.slot}`,X),removeByScopeSourceAndActor:({scopeId:X,sourceId:Re,actorScopeId:Je,slot:pt})=>l.removeBy($e=>$e.scopeId===X&&$e.sourceId===Re&&$e.actorScopeId===Je&&(pt===void 0||$e.slot===pt)),removeByScopeAndSourceId:({scopeId:X,sourceId:Re})=>l.removeAllBy(Je=>Je.scopeId===X&&Je.sourceId===Re)},leases:{listAll:()=>H8(d.items),getByAuthArtifactId:X=>d.findBy(Re=>Re.authArtifactId===X),upsert:X=>d.upsertBy(Re=>Re.authArtifactId,X),removeByAuthArtifactId:X=>d.removeBy(Re=>Re.authArtifactId===X)},sourceOauthClients:{getByScopeSourceAndProvider:({scopeId:X,sourceId:Re,providerKey:Je})=>h.findBy(pt=>pt.scopeId===X&&pt.sourceId===Re&&pt.providerKey===Je),upsert:X=>h.upsertBy(Re=>`${Re.scopeId}:${Re.sourceId}:${Re.providerKey}`,X),removeByScopeAndSourceId:({scopeId:X,sourceId:Re})=>h.removeAllBy(Je=>Je.scopeId===X&&Je.sourceId===Re)},scopeOauthClients:{listByScopeAndProvider:({scopeId:X,providerKey:Re})=>S.filterBy(Je=>Je.scopeId===X&&Je.providerKey===Re),getById:X=>S.findBy(Re=>Re.id===X),upsert:X=>S.upsertBy(Re=>Re.id,X),removeById:X=>S.removeBy(Re=>Re.id===X)},providerGrants:{listByScopeId:X=>b.filterBy(Re=>Re.scopeId===X),listByScopeActorAndProvider:({scopeId:X,actorScopeId:Re,providerKey:Je})=>b.filterBy(pt=>pt.scopeId===X&&pt.actorScopeId===Re&&pt.providerKey===Je),getById:X=>b.findBy(Re=>Re.id===X),upsert:X=>b.upsertBy(Re=>Re.id,X),removeById:X=>b.removeBy(Re=>Re.id===X)},sourceSessions:{listAll:()=>H8(A.items),listByScopeId:X=>A.filterBy(Re=>Re.scopeId===X),getById:X=>A.findBy(Re=>Re.id===X),getByState:X=>A.findBy(Re=>Re.state===X),getPendingByScopeSourceAndActor:({scopeId:X,sourceId:Re,actorScopeId:Je,credentialSlot:pt})=>A.findBy($e=>$e.scopeId===X&&$e.sourceId===Re&&$e.actorScopeId===Je&&$e.status==="pending"&&(pt===void 0||$e.credentialSlot===pt)),insert:X=>A.insert(X),update:(X,Re)=>A.updateBy(Je=>Je.id===X,Re),upsert:X=>A.upsertBy(Re=>Re.id,X),removeByScopeAndSourceId:(X,Re)=>A.removeAllBy(Je=>Je.scopeId===X&&Je.sourceId===Re)>0}}},secrets:{getById:X=>L.findBy(Re=>Re.id===X),listAll:()=>L.items.map(X=>({id:X.id,providerId:X.providerId,name:X.name,purpose:X.purpose,createdAt:X.createdAt,updatedAt:X.updatedAt})),upsert:X=>L.upsertBy(Re=>Re.id,X),updateById:(X,Re)=>L.updateBy(Je=>Je.id===X,{...Re,updatedAt:Date.now()}),removeById:X=>L.removeBy(Re=>Re.id===X),resolve:s?({secretId:X,context:Re})=>Promise.resolve(s({secretId:X,context:Re})):({secretId:X})=>L.items.find(Je=>Je.id===X)?.value??null,store:X=>{let Re=Date.now(),Je={...X,createdAt:Re,updatedAt:Re};L.upsertBy(xt=>xt.id,Je);let{value:pt,...$e}=Je;return $e},delete:X=>L.removeBy(Re=>Re.id===X.id),update:X=>L.updateBy(Re=>Re.id===X.id,{...X,updatedAt:Date.now()})},executions:{runs:{getById:X=>V.findBy(Re=>Re.id===X),getByScopeAndId:(X,Re)=>V.findBy(Je=>Je.scopeId===X&&Je.id===Re),insert:X=>V.insert(X),update:(X,Re)=>V.updateBy(Je=>Je.id===X,Re)},interactions:{getById:X=>j.findBy(Re=>Re.id===X),listByExecutionId:X=>j.filterBy(Re=>Re.executionId===X),getPendingByExecutionId:X=>j.findBy(Re=>Re.executionId===X&&Re.status==="pending"),insert:X=>j.insert(X),update:(X,Re)=>j.updateBy(Je=>Je.id===X,Re)},steps:{getByExecutionAndSequence:(X,Re)=>ie.findBy(Je=>Je.executionId===X&&Je.sequence===Re),listByExecutionId:X=>ie.filterBy(Re=>Re.executionId===X),insert:X=>ie.insert(X),deleteByExecutionId:X=>{ie.removeAllBy(Re=>Re.executionId===X)},updateByExecutionAndSequence:(X,Re,Je)=>ie.updateBy(pt=>pt.executionId===X&&pt.sequence===Re,Je)}},instanceConfig:{resolve:()=>({platform:"memory",secretProviders:[],defaultSecretStoreProvider:"memory"})}}}});var X6n=e=>{let r={};for(let[i,s]of Object.entries(e))r[i]={description:s.description,inputSchema:s.inputSchema??V7,execute:s.execute};return r},Y6n=e=>typeof e=="object"&&e!==null&&"loadRepositories"in e&&typeof e.loadRepositories=="function",e4n=e=>typeof e=="object"&&e!==null&&"createRuntime"in e&&typeof e.createRuntime=="function",t4n=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind==="file",r4n=e=>{let r=e.storage??"memory";if(r==="memory")return Rtr(e);if(t4n(r))return r.fs&&console.warn("@executor/sdk: Custom `fs` in file storage is not yet supported. Using default Node.js filesystem."),Pct({cwd:r.cwd,workspaceRoot:r.workspaceRoot});if(Y6n(r))return nte({loadRepositories:r.loadRepositories});if(e4n(r))return r;throw new Error("Invalid storage option")},Ltr=e=>{if(e!==null)try{return JSON.parse(e)}catch{return e}},n4n=e=>{try{return JSON.parse(e)}catch{return{}}},i4n=50,o4n=(e,r)=>{let i=Ftr({onToolApproval:r.onToolApproval,onInteraction:r.onInteraction});return async s=>{let l=await e.executions.create({code:s}),d=0;for(;l.execution.status==="waiting_for_interaction"&&l.pendingInteraction!==null&&d{let r=r4n(e),i=e.tools?()=>X6n(e.tools):void 0,s=await Jst({backend:r,createInternalToolMap:i});return{execute:o4n(s,e),sources:s.sources,policies:s.policies,secrets:s.secrets,oauth:s.oauth,local:s.local,close:s.close}};export{a4n as createExecutor}; -/*! Bundled license information: +`):[...n,wEt({catalog:e.catalog,shapeId:e.shapeId,aliasHint:e.aliasHint,body:r})].join(` -typescript/lib/typescript.js: - (*! ***************************************************************************** - Copyright (c) Microsoft Corporation. All rights reserved. - Licensed under the Apache License, Version 2.0 (the "License"); you may not use - this file except in compliance with the License. You may obtain a copy of the - License at http://www.apache.org/licenses/LICENSE-2.0 - - THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED - WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, - MERCHANTABLITY OR NON-INFRINGEMENT. - - See the Apache Version 2.0 License for specific language governing permissions - and limitations under the License. - ***************************************************************************** *) -*/ +`)},catch:t=>t instanceof Error?t:new Error(String(t))}),WTe=e=>e===void 0?Br.succeed(null):Br.tryPromise({try:()=>e2(e,"typescript"),catch:t=>t instanceof Error?t:new Error(String(t))}),QTe=e=>{let t=gEt(e);return t===null?Br.succeed(null):Br.tryPromise({try:()=>e2(t,"json"),catch:r=>r instanceof Error?r:new Error(String(r))})},AEt=e=>e.length===0?"tool":`${e.slice(0,1).toLowerCase()}${e.slice(1)}`,wEt=e=>{let t=e.catalog.symbols[e.shapeId],r=t?.kind==="shape"?JT({title:t.title,docs:t.docs,deprecated:t.deprecated,includeTitle:!0}):null,n=`type ${e.aliasHint} = ${e.body};`;return r?`${r} +${n}`:n},uDe=e=>{let t=di(...e.projectedDescriptor.toolPath,"call"),r=di(...e.projectedDescriptor.toolPath,"result"),n=e.projectedDescriptor.callShapeId,o=e.projectedDescriptor.resultShapeId??null,i=GT(e.projectedCatalog,n),a=o?r:"unknown",s=AEt(di(...e.projectedDescriptor.toolPath)),c=JT({title:e.capability.surface.title,docs:{...e.capability.surface.summary?{summary:e.capability.surface.summary}:{},...e.capability.surface.description?{description:e.capability.surface.description}:{}},includeTitle:!0});return Br.gen(function*(){let[p,d,f,m,y,g,S,x]=yield*Br.all([WTe(e.descriptor.contract?.inputTypePreview),WTe(e.descriptor.contract?.outputTypePreview),ZTe({catalog:e.projectedCatalog,shapeId:n,aliasHint:t}),o?ZTe({catalog:e.projectedCatalog,shapeId:o,aliasHint:r}):Br.succeed(null),QTe(e.descriptor.contract?.inputSchema??TF(e.projectedCatalog,n)),o?QTe(e.descriptor.contract?.outputSchema??TF(e.projectedCatalog,o)):Br.succeed(null),Br.tryPromise({try:()=>e2(`(${i?"args?":"args"}: ${t}) => Promise<${a}>`,"typescript"),catch:A=>A instanceof Error?A:new Error(String(A))}),Br.tryPromise({try:()=>e2([...c?[c]:[],`declare function ${s}(${i?"args?":"args"}: ${t}): Promise<${a}>;`].join(` +`),"typescript-module"),catch:A=>A instanceof Error?A:new Error(String(A))})]);return{callSignature:S,callDeclaration:x,callShapeId:n,resultShapeId:o,responseSetId:e.projectedDescriptor.responseSetId,input:{shapeId:n,typePreview:p,typeDeclaration:f,schemaJson:y,exampleJson:null},output:{shapeId:o,typePreview:d,typeDeclaration:m,schemaJson:g,exampleJson:null}}})},vQ=e=>Br.succeed(e.catalogs.flatMap(t=>Object.values(t.catalog.capabilities).flatMap(r=>SEt(t.projected,r)===e.path?[rDe({catalogEntry:t,capability:r,includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews??!0})]:[])).at(0)??null);var IEt=e=>Br.gen(function*(){let t=yield*DEt({scopeId:e.scopeId,actorScopeId:e.actorScopeId}),r=yield*vQ({catalogs:t,path:e.path,includeSchemas:e.includeSchemas});return r?{path:r.path,searchNamespace:r.searchNamespace,searchText:r.searchText,source:r.source,sourceRecord:r.sourceRecord,capabilityId:r.capabilityId,executableId:r.executableId,capability:r.capability,executable:r.executable,descriptor:r.descriptor,projectedCatalog:r.projectedCatalog}:null}),pDe=YTe.effect(Vh,Br.gen(function*(){let e=yield*Rs,t=yield*Qo,r=yield*Ma,n={runtimeLocalScope:e,sourceStore:t,sourceArtifactStore:r},o=yield*gQ.make({capacity:32,timeToLive:"10 minutes",lookup:c=>sDe(n,{scopeId:c.scopeId,actorScopeId:c.actorScopeId})}),i=yield*gQ.make({capacity:32,timeToLive:"10 minutes",lookup:c=>Br.gen(function*(){let p=yield*o.get(c);return(yield*SQ({catalogs:p,includeSchemas:!1,includeTypePreviews:!1})).map(yEt)})}),a=c=>Br.flatMap(HTe(n,c),p=>o.get(p)),s=c=>Br.flatMap(HTe(n,c),p=>i.get(p));return Vh.of({loadWorkspaceSourceCatalogs:c=>a(c),loadSourceWithCatalog:c=>cDe(n,c),loadWorkspaceSourceCatalogToolIndex:c=>s({scopeId:c.scopeId,actorScopeId:c.actorScopeId}),loadWorkspaceSourceCatalogToolByPath:c=>c.includeSchemas?IEt(c).pipe(Br.provideService(Rs,e),Br.provideService(Qo,t),Br.provideService(Ma,r)):Br.map(s({scopeId:c.scopeId,actorScopeId:c.actorScopeId}),p=>p.find(d=>d.path===c.path)??null)})}));import*as Jh from"effect/Effect";import*as dDe from"effect/Context";import*as vf from"effect/Effect";import*as _De from"effect/Layer";var kEt=e=>e.enabled&&e.status==="connected"&&_i(e).catalogKind!=="internal",eu=class extends dDe.Tag("#runtime/RuntimeSourceCatalogSyncService")(){},fDe=(e,t)=>vf.gen(function*(){if(e.runtimeLocalScope.installation.scopeId!==t)return yield*vf.fail(Ne("catalog/source/sync",`Runtime local scope mismatch: expected ${t}, got ${e.runtimeLocalScope.installation.scopeId}`))}),CEt=(e,t)=>vf.gen(function*(){if(yield*fDe(e,t.source.scopeId),!kEt(t.source)){let c=yield*e.scopeStateStore.load(),p=c.sources[t.source.id],d={...c,sources:{...c.sources,[t.source.id]:{status:t.source.enabled?t.source.status:"draft",lastError:null,sourceHash:t.source.sourceHash,createdAt:p?.createdAt??t.source.createdAt,updatedAt:Date.now()}}};yield*e.scopeStateStore.write({state:d}),yield*e.sourceTypeDeclarationsRefresher.refreshSourceInBackground({source:t.source,snapshot:null});return}let n=yield*_i(t.source).syncCatalog({source:t.source,resolveSecretMaterial:e.resolveSecretMaterial,resolveAuthMaterialForSlot:c=>e.sourceAuthMaterialService.resolve({source:t.source,slot:c,actorScopeId:t.actorScopeId})}),o=RT(n);yield*e.sourceArtifactStore.write({sourceId:t.source.id,artifact:e.sourceArtifactStore.build({source:t.source,syncResult:n})});let i=yield*e.scopeStateStore.load(),a=i.sources[t.source.id],s={...i,sources:{...i.sources,[t.source.id]:{status:"connected",lastError:null,sourceHash:n.sourceHash,createdAt:a?.createdAt??t.source.createdAt,updatedAt:Date.now()}}};yield*e.scopeStateStore.write({state:s}),yield*e.sourceTypeDeclarationsRefresher.refreshSourceInBackground({source:t.source,snapshot:o})}).pipe(vf.withSpan("source.catalog.sync",{attributes:{"executor.source.id":t.source.id,"executor.source.kind":t.source.kind,"executor.source.namespace":t.source.namespace,"executor.source.endpoint":t.source.endpoint}})),PEt=(e,t)=>vf.gen(function*(){yield*fDe(e,t.source.scopeId);let r=OB({source:t.source,endpoint:t.source.endpoint,manifest:t.manifest}),n=RT(r);yield*e.sourceArtifactStore.write({sourceId:t.source.id,artifact:e.sourceArtifactStore.build({source:t.source,syncResult:r})}),yield*e.sourceTypeDeclarationsRefresher.refreshSourceInBackground({source:t.source,snapshot:n})});var mDe=_De.effect(eu,vf.gen(function*(){let e=yield*Rs,t=yield*$a,r=yield*Ma,n=yield*md,o=yield*Ol,i=yield*Pm,a={runtimeLocalScope:e,scopeStateStore:t,sourceArtifactStore:r,sourceTypeDeclarationsRefresher:n,resolveSecretMaterial:o,sourceAuthMaterialService:i};return eu.of({sync:s=>CEt(a,s),persistMcpCatalogSnapshotFromManifest:s=>PEt(a,s)})}));var OEt=e=>e.enabled&&e.status==="connected"&&_i(e).catalogKind!=="internal",hDe=e=>Jh.gen(function*(){let t=yield*Rs,r=yield*Qo,n=yield*Ma,o=yield*eu,i=yield*r.loadSourcesInScope(e.scopeId,{actorScopeId:e.actorScopeId});for(let a of i)!OEt(a)||(yield*n.read({sourceId:a.id}))!==null||(yield*o.sync({source:a,actorScopeId:e.actorScopeId}).pipe(Jh.catchAll(()=>Jh.void)))}).pipe(Jh.withSpan("source.catalog.reconcile_missing",{attributes:{"executor.scope.id":e.scopeId}}));import*as yDe from"effect/Context";import*as Kh from"effect/Deferred";import*as ga from"effect/Effect";import*as gDe from"effect/Layer";var NEt=()=>({stateWaiters:[],currentInteraction:null}),bQ=e=>e===void 0?null:JSON.stringify(e),FEt=new Set(["tokenRef","tokenSecretMaterialId"]),xQ=e=>{if(Array.isArray(e))return e.map(xQ);if(!e||typeof e!="object")return e;let t=Object.entries(e).filter(([r])=>!FEt.has(r)).map(([r,n])=>[r,xQ(n)]);return Object.fromEntries(t)},pw=e=>{if(e.content===void 0)return e;let t=xQ(e.content);return{...e,content:t}},REt=e=>{let t=e.context?.interactionPurpose;return typeof t=="string"&&t.length>0?t:e.path==="executor.sources.add"?e.elicitation.mode==="url"?"source_connect_oauth2":"source_connect_secret":"elicitation"},EQ=()=>{let e=new Map,t=o=>{let i=e.get(o);if(i)return i;let a=NEt();return e.set(o,a),a},r=o=>ga.gen(function*(){let i=t(o.executionId),a=[...i.stateWaiters];i.stateWaiters=[],yield*ga.forEach(a,s=>Kh.succeed(s,o.state),{discard:!0})});return{publishState:r,registerStateWaiter:o=>ga.gen(function*(){let i=yield*Kh.make();return t(o).stateWaiters.push(i),i}),createOnElicitation:({executorState:o,executionId:i})=>a=>ga.gen(function*(){let s=t(i),c=yield*Kh.make(),p=Date.now(),d={id:Is.make(`${i}:${a.interactionId}`),executionId:i,status:"pending",kind:a.elicitation.mode==="url"?"url":"form",purpose:REt(a),payloadJson:bQ({path:a.path,sourceKey:a.sourceKey,args:a.args,context:a.context,elicitation:a.elicitation})??"{}",responseJson:null,responsePrivateJson:null,createdAt:p,updatedAt:p};return yield*o.executionInteractions.insert(d),yield*o.executions.update(i,{status:"waiting_for_interaction",updatedAt:p}),s.currentInteraction={interactionId:d.id,response:c},yield*ga.gen(function*(){yield*r({executionId:i,state:"waiting_for_interaction"});let f=yield*Kh.await(c),m=Date.now();return yield*o.executionInteractions.update(d.id,{status:f.action==="cancel"?"cancelled":"resolved",responseJson:bQ(pw(f)),responsePrivateJson:bQ(f),updatedAt:m}),yield*o.executions.update(i,{status:"running",updatedAt:m}),yield*r({executionId:i,state:"running"}),f}).pipe(ga.ensuring(ga.sync(()=>{s.currentInteraction?.interactionId===d.id&&(s.currentInteraction=null)})))}),resolveInteraction:({executionId:o,response:i})=>ga.gen(function*(){let s=e.get(o)?.currentInteraction;return s?(yield*Kh.succeed(s.response,i),!0):!1}),finishRun:({executionId:o,state:i})=>r({executionId:o,state:i}).pipe(ga.zipRight(zC(o)),ga.ensuring(ga.sync(()=>{e.delete(o)}))),clearRun:o=>zC(o).pipe(ga.ensuring(ga.sync(()=>{e.delete(o)})))}},Xc=class extends yDe.Tag("#runtime/LiveExecutionManagerService")(){},EHt=gDe.sync(Xc,EQ);import*as b2e from"effect/Context";import*as gw from"effect/Effect";import*as $F from"effect/Layer";var LEt="quickjs",TQ=e=>e?.runtime??LEt,DQ=async(e,t)=>{if(t)return t;switch(e){case"deno":{let{makeDenoSubprocessExecutor:r}=await import("@executor/runtime-deno-subprocess");return r()}case"ses":{let{makeSesExecutor:r}=await import("@executor/runtime-ses");return r()}default:{let{makeQuickJsExecutor:r}=await import("@executor/runtime-quickjs");return r()}}};import*as OF from"effect/Effect";import*as kd from"effect/Effect";import*as bDe from"effect/Cause";import*as xDe from"effect/Exit";import*as CQ from"effect/Schema";import*as SDe from"effect/JSONSchema";var _w=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},$Et=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"):[],dw=(e,t)=>e.length<=t?e:`${e.slice(0,Math.max(0,t-4))} ...`,MEt=(e,t,r)=>`${e}${r?"?":""}: ${DF(t)}`,AQ=(e,t)=>{let r=Array.isArray(t[e])?t[e].map(_w):[];if(r.length===0)return null;let n=r.map(o=>DF(o)).filter(o=>o.length>0);return n.length===0?null:n.join(e==="allOf"?" & ":" | ")},DF=(e,t=220)=>{let r=_w(e);if(typeof r.$ref=="string"){let i=r.$ref.trim();return i.length>0?i.split("/").at(-1)??i:"unknown"}if("const"in r)return JSON.stringify(r.const);let n=Array.isArray(r.enum)?r.enum:[];if(n.length>0)return dw(n.map(i=>JSON.stringify(i)).join(" | "),t);let o=AQ("oneOf",r)??AQ("anyOf",r)??AQ("allOf",r);if(o)return dw(o,t);if(r.type==="array"){let i=r.items?DF(r.items,t):"unknown";return dw(`${i}[]`,t)}if(r.type==="object"||r.properties){let i=_w(r.properties),a=Object.keys(i);if(a.length===0)return r.additionalProperties?"Record":"object";let s=new Set($Et(r.required)),c=a.map(p=>MEt(p,_w(i[p]),!s.has(p)));return dw(`{ ${c.join(", ")} }`,t)}return Array.isArray(r.type)?dw(r.type.join(" | "),t):typeof r.type=="string"?r.type:"unknown"},AF=(e,t)=>{let r=wF(e);return r?DF(r,t):"unknown"},wF=e=>{try{return _w(SDe.make(e))}catch{return null}};import*as Id from"effect/Schema";var jEt=Id.Union(Id.Struct({authKind:Id.Literal("none")}),Id.Struct({authKind:Id.Literal("bearer"),tokenRef:pi})),vDe=Id.decodeUnknownSync(jEt),wQ=()=>({authKind:"none"}),IQ=e=>({authKind:"bearer",tokenRef:e});var fw=async(e,t,r=null)=>{let n=n2(t),o=await kd.runPromiseExit(ch(e.pipe(kd.provide(n)),r));if(xDe.isSuccess(o))return o.value;throw bDe.squash(o.cause)},BEt=CQ.standardSchemaV1(hF),qEt=CQ.standardSchemaV1(Up),UEt=AF(hF,320),zEt=AF(Up,260),VEt=wF(hF)??{},JEt=wF(Up)??{},KEt=["Source add input shapes:",...iQ.flatMap(e=>e.executorAddInputSchema&&e.executorAddInputSignatureWidth!==null&&e.executorAddHelpText?[`- ${e.displayName}: ${AF(e.executorAddInputSchema,e.executorAddInputSignatureWidth)}`,...e.executorAddHelpText.map(t=>` ${t}`)]:[])," executor handles the credential setup for you."],GEt=()=>["Add an MCP, OpenAPI, or GraphQL source to the current scope.",...KEt].join(` +`),HEt=e=>{if(typeof e!="string"||e.trim().length===0)throw new Error("Missing execution run id for executor.sources.add");return Il.make(e)},IF=e=>e,kQ=e=>JSON.parse(JSON.stringify(e)),ZEt=e=>e.kind===void 0||zh(e.kind),WEt=e=>typeof e.kind=="string",QEt=e=>ZEt(e.args)?{kind:e.args.kind,endpoint:e.args.endpoint,name:e.args.name??null,namespace:e.args.namespace??null,transport:e.args.transport??null,queryParams:e.args.queryParams??null,headers:e.args.headers??null,command:e.args.command??null,args:e.args.args??null,env:e.args.env??null,cwd:e.args.cwd??null,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId}:"service"in e.args?{...e.args,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId}:"specUrl"in e.args?{...e.args,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId}:{...e.args,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId},XEt=e=>new URL(`/v1/workspaces/${encodeURIComponent(e.scopeId)}/sources/${encodeURIComponent(e.sourceId)}/credentials?interactionId=${encodeURIComponent(`${e.executionId}:${e.interactionId}`)}`,e.baseUrl).toString(),YEt=e=>kd.gen(function*(){if(!e.onElicitation)return yield*Ne("sources/executor-tools","executor.sources.add requires an elicitation-capable host");if(e.localServerBaseUrl===null)return yield*Ne("sources/executor-tools","executor.sources.add requires a local server base URL for credential capture");let t=yield*e.onElicitation({interactionId:e.interactionId,path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.metadata,context:e.invocation,elicitation:{mode:"url",message:e.credentialSlot==="import"?`Open the secure credential page to configure import access for ${e.source.name}`:`Open the secure credential page to connect ${e.source.name}`,url:XEt({baseUrl:e.localServerBaseUrl,scopeId:e.args.scopeId,sourceId:e.args.sourceId,executionId:e.executionId,interactionId:e.interactionId}),elicitationId:e.interactionId}}).pipe(kd.mapError(n=>n instanceof Error?n:new Error(String(n))));if(t.action!=="accept")return yield*Ne("sources/executor-tools",`Source credential setup was not completed for ${e.source.name}`);let r=yield*kd.try({try:()=>vDe(t.content),catch:()=>new Error("Credential capture did not return a valid source auth choice for executor.sources.add")});return r.authKind==="none"?{kind:"none"}:{kind:"bearer",tokenRef:r.tokenRef}}),EDe=e=>({"executor.sources.add":Sl({tool:{description:GEt(),inputSchema:BEt,outputSchema:qEt,execute:async(t,r)=>{let n=HEt(r?.invocation?.runId),o=Is.make(`executor.sources.add:${crypto.randomUUID()}`),i=QEt({args:t,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:n,interactionId:o}),a=await fw(e.sourceAuthService.addExecutorSource(i,r?.onElicitation?{mcpDiscoveryElicitation:{onElicitation:r.onElicitation,path:r.path??IF("executor.sources.add"),sourceKey:r.sourceKey,args:t,metadata:r.metadata,invocation:r.invocation}}:void 0),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);if(a.kind==="connected")return kQ(a.source);if(a.kind==="credential_required"){let p=a;if(!WEt(i))throw new Error("Credential-managed source setup expected a named adapter kind");let d=i;for(;p.kind==="credential_required";){let f=await fw(YEt({args:{...d,scopeId:e.scopeId,sourceId:p.source.id},credentialSlot:p.credentialSlot,source:p.source,executionId:n,interactionId:o,path:r?.path??IF("executor.sources.add"),sourceKey:r?.sourceKey??"executor",localServerBaseUrl:e.sourceAuthService.getLocalServerBaseUrl(),metadata:r?.metadata,invocation:r?.invocation,onElicitation:r?.onElicitation}),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);d=p.credentialSlot==="import"&&d.importAuthPolicy==="separate"?{...d,importAuth:f}:{...d,auth:f};let m=await fw(e.sourceAuthService.addExecutorSource(d,r?.onElicitation?{mcpDiscoveryElicitation:{onElicitation:r.onElicitation,path:r.path??IF("executor.sources.add"),sourceKey:r.sourceKey,args:t,metadata:r.metadata,invocation:r.invocation}}:void 0),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);if(m.kind==="connected")return kQ(m.source);if(m.kind==="credential_required"){p=m;continue}a=m;break}p.kind==="credential_required"&&(a=p)}if(!r?.onElicitation)throw new Error("executor.sources.add requires an elicitation-capable host");if(a.kind!=="oauth_required")throw new Error(`Source add did not reach OAuth continuation for ${a.source.id}`);if((await fw(r.onElicitation({interactionId:o,path:r.path??IF("executor.sources.add"),sourceKey:r.sourceKey,args:i,metadata:r.metadata,context:r.invocation,elicitation:{mode:"url",message:`Open the provider sign-in page to connect ${a.source.name}`,url:a.authorizationUrl,elicitationId:a.sessionId}}),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope)).action!=="accept")throw new Error(`Source add was not completed for ${a.source.id}`);let c=await fw(e.sourceAuthService.getSourceById({scopeId:e.scopeId,sourceId:a.source.id,actorScopeId:e.actorScopeId}),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);return kQ(c)}},metadata:{contract:{inputTypePreview:UEt,outputTypePreview:zEt,inputSchema:VEt,outputSchema:JEt},sourceKey:"executor",interaction:"auto"}})});import*as TDe from"effect/Effect";var DDe=e=>({toolPath:e.tool.path,sourceId:e.tool.source.id,sourceName:e.tool.source.name,sourceKind:e.tool.source.kind,sourceNamespace:e.tool.source.namespace??null,operationKind:e.tool.capability.semantics.effect==="read"?"read":e.tool.capability.semantics.effect==="write"?"write":e.tool.capability.semantics.effect==="delete"?"delete":e.tool.capability.semantics.effect==="action"?"execute":"unknown",interaction:e.tool.descriptor.interaction??"auto",approvalLabel:e.tool.capability.surface.title??e.tool.executable.display?.title??null}),ADe=e=>{let t=hf(e.tool.executable.adapterKey);return t.key!==e.tool.source.kind?TDe.fail(Ne("execution/ir-execution",`Executable ${e.tool.executable.id} expects adapter ${t.key}, but source ${e.tool.source.id} is ${e.tool.source.kind}`)):t.invoke({source:e.tool.source,capability:e.tool.capability,executable:e.tool.executable,descriptor:e.tool.descriptor,catalog:e.tool.projectedCatalog,args:e.args,auth:e.auth,onElicitation:e.onElicitation,context:e.context})};import*as BDe from"effect/Either";import*as xS from"effect/Effect";import*as op from"effect/Schema";var eTt=(e,t)=>{let r=e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*");return new RegExp(`^${r}$`).test(t)},wDe=e=>e.priority+Math.max(1,e.resourcePattern.replace(/\*/g,"").length),tTt=e=>e.interaction==="auto"?{kind:"allow",reason:`${e.approvalLabel??e.toolPath} defaults to allow`,matchedPolicyId:null}:{kind:"require_interaction",reason:`${e.approvalLabel??e.toolPath} defaults to approval`,matchedPolicyId:null},rTt=e=>e.effect==="deny"?{kind:"deny",reason:`Denied by policy ${e.id}`,matchedPolicyId:e.id}:e.approvalMode==="required"?{kind:"require_interaction",reason:`Approval required by policy ${e.id}`,matchedPolicyId:e.id}:{kind:"allow",reason:`Allowed by policy ${e.id}`,matchedPolicyId:e.id},IDe=e=>{let r=e.policies.filter(n=>n.enabled&&n.scopeId===e.context.scopeId&&eTt(n.resourcePattern,e.descriptor.toolPath)).sort((n,o)=>wDe(o)-wDe(n)||n.updatedAt-o.updatedAt)[0];return r?rTt(r):tTt(e.descriptor)};import{createHash as iTt}from"node:crypto";import*as Ba from"effect/Effect";import*as PQ from"effect/Effect";var nTt=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},kDe=(e,t)=>{let r=nTt(e.resourcePattern)??`${e.effect}-${e.approvalMode}`,n=r,o=2;for(;t.has(n);)n=`${r}-${o}`,o+=1;return t.add(n),n},oTt=e=>PQ.gen(function*(){let t=yield*$a,r=yield*t.load(),n=new Set(Object.keys(e.loadedConfig.config?.sources??{})),o=new Set(Object.keys(e.loadedConfig.config?.policies??{})),i={...r,sources:Object.fromEntries(Object.entries(r.sources).filter(([a])=>n.has(a))),policies:Object.fromEntries(Object.entries(r.policies).filter(([a])=>o.has(a)))};return JSON.stringify(i)===JSON.stringify(r)?r:(yield*t.write({state:i}),i)}),CDe=e=>PQ.gen(function*(){return yield*oTt({loadedConfig:e.loadedConfig}),e.loadedConfig.config});import{HttpApiSchema as mw}from"@effect/platform";import*as xi from"effect/Schema";var ab=class extends xi.TaggedError()("ControlPlaneBadRequestError",{operation:xi.String,message:xi.String,details:xi.String},mw.annotations({status:400})){},PDe=class extends xi.TaggedError()("ControlPlaneUnauthorizedError",{operation:xi.String,message:xi.String,details:xi.String},mw.annotations({status:401})){},ODe=class extends xi.TaggedError()("ControlPlaneForbiddenError",{operation:xi.String,message:xi.String,details:xi.String},mw.annotations({status:403})){},bf=class extends xi.TaggedError()("ControlPlaneNotFoundError",{operation:xi.String,message:xi.String,details:xi.String},mw.annotations({status:404})){},Gh=class extends xi.TaggedError()("ControlPlaneStorageError",{operation:xi.String,message:xi.String,details:xi.String},mw.annotations({status:500})){};import*as NDe from"effect/Effect";var Oo=e=>{let t={operation:e,child:r=>Oo(`${e}.${r}`),badRequest:(r,n)=>new ab({operation:e,message:r,details:n}),notFound:(r,n)=>new bf({operation:e,message:r,details:n}),storage:r=>new Gh({operation:e,message:r.message,details:r.message}),unknownStorage:(r,n)=>t.storage(r instanceof Error?new Error(`${r.message}: ${n}`):new Error(n)),mapStorage:r=>r.pipe(NDe.mapError(n=>t.storage(n)))};return t},hw=e=>typeof e=="string"?Oo(e):e;var js={list:Oo("policies.list"),create:Oo("policies.create"),get:Oo("policies.get"),update:Oo("policies.update"),remove:Oo("policies.remove")},OQ=e=>JSON.parse(JSON.stringify(e)),kF=e=>e.scopeRoot?.trim()||e.scopeId,FDe=e=>gv.make(`pol_local_${iTt("sha256").update(`${e.scopeStableKey}:${e.key}`).digest("hex").slice(0,16)}`),NQ=e=>({id:e.state?.id??FDe({scopeStableKey:e.scopeStableKey,key:e.key}),key:e.key,scopeId:e.scopeId,resourcePattern:e.policyConfig.match.trim(),effect:e.policyConfig.action,approvalMode:e.policyConfig.approval==="manual"?"required":"auto",priority:e.policyConfig.priority??0,enabled:e.policyConfig.enabled??!0,createdAt:e.state?.createdAt??Date.now(),updatedAt:e.state?.updatedAt??Date.now()}),bS=e=>Ba.gen(function*(){let t=yield*x1(e),r=yield*Kc,n=yield*$a,o=yield*r.load(),i=yield*n.load(),a=Object.entries(o.config?.policies??{}).map(([s,c])=>NQ({scopeId:e,scopeStableKey:kF({scopeId:e,scopeRoot:t.scope.scopeRoot}),key:s,policyConfig:c,state:i.policies[s]}));return{runtimeLocalScope:t,loadedConfig:o,scopeState:i,policies:a}}),FQ=e=>Ba.all([e.scopeConfigStore.writeProject({config:e.projectConfig}),e.scopeStateStore.write({state:e.scopeState})],{discard:!0}).pipe(Ba.mapError(t=>e.operation.unknownStorage(t,"Failed writing local scope policy files"))),yw=(e,t)=>x1(t).pipe(Ba.mapError(r=>e.notFound("Workspace not found",r instanceof Error?r.message:String(r)))),RDe=e=>Ba.gen(function*(){return yield*yw(js.list,e),(yield*bS(e).pipe(Ba.mapError(r=>js.list.unknownStorage(r,"Failed loading local scope policies")))).policies}),LDe=e=>Ba.gen(function*(){let t=yield*yw(js.create,e.scopeId),r=yield*Kc,n=yield*$a,o=yield*bS(e.scopeId).pipe(Ba.mapError(f=>js.create.unknownStorage(f,"Failed loading local scope policies"))),i=Date.now(),a=OQ(o.loadedConfig.projectConfig??{}),s={...a.policies},c=kDe({resourcePattern:e.payload.resourcePattern??"*",effect:e.payload.effect??"allow",approvalMode:e.payload.approvalMode??"auto"},new Set(Object.keys(s)));s[c]={match:e.payload.resourcePattern??"*",action:e.payload.effect??"allow",approval:(e.payload.approvalMode??"auto")==="required"?"manual":"auto",...e.payload.enabled===!1?{enabled:!1}:{},...(e.payload.priority??0)!==0?{priority:e.payload.priority??0}:{}};let p=o.scopeState.policies[c],d={...o.scopeState,policies:{...o.scopeState.policies,[c]:{id:p?.id??FDe({scopeStableKey:kF({scopeId:e.scopeId,scopeRoot:t.scope.scopeRoot}),key:c}),createdAt:p?.createdAt??i,updatedAt:i}}};return yield*FQ({operation:js.create,scopeConfigStore:r,scopeStateStore:n,projectConfig:{...a,policies:s},scopeState:d}),NQ({scopeId:e.scopeId,scopeStableKey:kF({scopeId:e.scopeId,scopeRoot:t.scope.scopeRoot}),key:c,policyConfig:s[c],state:d.policies[c]})}),$De=e=>Ba.gen(function*(){yield*yw(js.get,e.scopeId);let r=(yield*bS(e.scopeId).pipe(Ba.mapError(n=>js.get.unknownStorage(n,"Failed loading local scope policies")))).policies.find(n=>n.id===e.policyId)??null;return r===null?yield*js.get.notFound("Policy not found",`scopeId=${e.scopeId} policyId=${e.policyId}`):r}),MDe=e=>Ba.gen(function*(){let t=yield*yw(js.update,e.scopeId),r=yield*Kc,n=yield*$a,o=yield*bS(e.scopeId).pipe(Ba.mapError(m=>js.update.unknownStorage(m,"Failed loading local scope policies"))),i=o.policies.find(m=>m.id===e.policyId)??null;if(i===null)return yield*js.update.notFound("Policy not found",`scopeId=${e.scopeId} policyId=${e.policyId}`);let a=OQ(o.loadedConfig.projectConfig??{}),s={...a.policies},c=s[i.key];s[i.key]={...c,...e.payload.resourcePattern!==void 0?{match:e.payload.resourcePattern}:{},...e.payload.effect!==void 0?{action:e.payload.effect}:{},...e.payload.approvalMode!==void 0?{approval:e.payload.approvalMode==="required"?"manual":"auto"}:{},...e.payload.enabled!==void 0?{enabled:e.payload.enabled}:{},...e.payload.priority!==void 0?{priority:e.payload.priority}:{}};let p=Date.now(),d=o.scopeState.policies[i.key],f={...o.scopeState,policies:{...o.scopeState.policies,[i.key]:{id:i.id,createdAt:d?.createdAt??i.createdAt,updatedAt:p}}};return yield*FQ({operation:js.update,scopeConfigStore:r,scopeStateStore:n,projectConfig:{...a,policies:s},scopeState:f}),NQ({scopeId:e.scopeId,scopeStableKey:kF({scopeId:e.scopeId,scopeRoot:t.scope.scopeRoot}),key:i.key,policyConfig:s[i.key],state:f.policies[i.key]})}),jDe=e=>Ba.gen(function*(){let t=yield*yw(js.remove,e.scopeId),r=yield*Kc,n=yield*$a,o=yield*bS(e.scopeId).pipe(Ba.mapError(d=>js.remove.unknownStorage(d,"Failed loading local scope policies"))),i=o.policies.find(d=>d.id===e.policyId)??null;if(i===null)return{removed:!1};let a=OQ(o.loadedConfig.projectConfig??{}),s={...a.policies};delete s[i.key];let{[i.key]:c,...p}=o.scopeState.policies;return yield*FQ({operation:js.remove,scopeConfigStore:r,scopeStateStore:n,projectConfig:{...a,policies:s},scopeState:{...o.scopeState,policies:p}}),{removed:!0}});var aTt=e=>e,sTt={type:"object",properties:{approve:{type:"boolean",description:"Whether to approve this tool execution"}},required:["approve"],additionalProperties:!1},cTt=e=>e.approvalLabel?`Allow ${e.approvalLabel}?`:`Allow tool call: ${e.toolPath}?`,lTt=op.Struct({params:op.optional(op.Record({key:op.String,value:op.String}))}),uTt=op.decodeUnknownEither(lTt),qDe=e=>{let t=uTt(e);if(!(BDe.isLeft(t)||t.right.params===void 0))return{params:t.right.params}},RQ=e=>xS.fail(new Error(e)),UDe=e=>xS.gen(function*(){let t=DDe({tool:e.tool}),r=yield*bS(e.scopeId).pipe(xS.mapError(a=>a instanceof Error?a:new Error(String(a)))),n=IDe({descriptor:t,args:e.args,policies:r.policies,context:{scopeId:e.scopeId}});if(n.kind==="allow")return;if(n.kind==="deny")return yield*RQ(n.reason);if(!e.onElicitation)return yield*RQ(`Approval required for ${t.toolPath}, but no elicitation-capable host is available`);let o=typeof e.context?.callId=="string"&&e.context.callId.length>0?`tool_execution_gate:${e.context.callId}`:`tool_execution_gate:${crypto.randomUUID()}`;if((yield*e.onElicitation({interactionId:o,path:aTt(t.toolPath),sourceKey:e.tool.source.id,args:e.args,context:{...e.context,interactionPurpose:"tool_execution_gate",interactionReason:n.reason,invocationDescriptor:{operationKind:t.operationKind,interaction:t.interaction,approvalLabel:t.approvalLabel,sourceId:e.tool.source.id,sourceName:e.tool.source.name}},elicitation:{mode:"form",message:cTt(t),requestedSchema:sTt}}).pipe(xS.mapError(a=>a instanceof Error?a:new Error(String(a))))).action!=="accept")return yield*RQ(`Tool invocation not approved for ${t.toolPath}`)});var Hh=(e,t)=>ch(e,t);import*as Sa from"effect/Effect";var CF=e=>e.trim().toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),pTt=new Set(["a","an","the","am","as","for","from","get","i","in","is","list","me","my","of","on","or","signed","to","who"]),LQ=e=>e.length>3&&e.endsWith("s")?e.slice(0,-1):e,dTt=(e,t)=>e===t||LQ(e)===LQ(t),PF=(e,t)=>e.some(r=>dTt(r,t)),sb=(e,t)=>{if(e.includes(t))return!0;let r=LQ(t);return r!==t&&e.includes(r)},zDe=e=>pTt.has(e)?.25:1,_Tt=e=>{let[t,r]=e.split(".");return r?`${t}.${r}`:t},fTt=e=>[...e].sort((t,r)=>t.namespace.localeCompare(r.namespace)),mTt=e=>Sa.gen(function*(){let t=yield*e.sourceCatalogStore.loadWorkspaceSourceCatalogs({scopeId:e.scopeId,actorScopeId:e.actorScopeId}),r=new Map;for(let n of t)if(!(!n.source.enabled||n.source.status!=="connected"))for(let o of Object.values(n.projected.toolDescriptors)){let i=_Tt(o.toolPath.join(".")),a=r.get(i);r.set(i,{namespace:i,toolCount:(a?.toolCount??0)+1})}return fTt(r.values())}),hTt=e=>Sa.map(e.sourceCatalogStore.loadWorkspaceSourceCatalogToolIndex({scopeId:e.scopeId,actorScopeId:e.actorScopeId}),t=>t.filter(r=>r.source.enabled&&r.source.status==="connected")),$Q=e=>e.sourceCatalogStore.loadWorkspaceSourceCatalogToolByPath({scopeId:e.scopeId,path:e.path,actorScopeId:e.actorScopeId,includeSchemas:e.includeSchemas}).pipe(Sa.map(t=>t&&t.source.enabled&&t.source.status==="connected"?t:null)),yTt=(e,t)=>{let r=t.path.toLowerCase(),n=t.searchNamespace.toLowerCase(),o=t.path.split(".").at(-1)?.toLowerCase()??"",i=t.capability.surface.title?.toLowerCase()??"",a=t.capability.surface.summary?.toLowerCase()??t.capability.surface.description?.toLowerCase()??"",s=[t.executable.display?.pathTemplate,t.executable.display?.operationId,t.executable.display?.leaf].filter(A=>typeof A=="string"&&A.length>0).join(" ").toLowerCase(),c=CF(`${t.path} ${o}`),p=CF(t.searchNamespace),d=CF(t.capability.surface.title??""),f=CF(s),m=0,y=0,g=0,S=0;for(let A of e){let I=zDe(A);if(PF(c,A)){m+=12*I,y+=1,S+=1;continue}if(PF(p,A)){m+=11*I,y+=1,g+=1;continue}if(PF(d,A)){m+=9*I,y+=1;continue}if(PF(f,A)){m+=8*I,y+=1;continue}if(sb(r,A)||sb(o,A)){m+=6*I,y+=1,S+=1;continue}if(sb(n,A)){m+=5*I,y+=1,g+=1;continue}if(sb(i,A)||sb(s,A)){m+=4*I,y+=1;continue}sb(a,A)&&(m+=.5*I)}let x=e.filter(A=>zDe(A)>=1);if(x.length>=2)for(let A=0;Ar.includes(F)||s.includes(F))&&(m+=10)}return g>0&&S>0&&(m+=8),y===0&&m>0&&(m*=.25),m},VDe=e=>{let t=r2({scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore}),r=i=>i.pipe(Sa.provide(t)),o=Sa.runSync(Sa.cached(r(Sa.gen(function*(){let i=yield*hTt({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore});return lL({entries:i.map(a=>eDe({tool:a,score:s=>yTt(s,a)}))})}))));return{listNamespaces:({limit:i})=>Hh(r(Sa.map(mTt({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore}),a=>a.slice(0,i))),e.runtimeLocalScope),listTools:({namespace:i,query:a,limit:s})=>Hh(Sa.flatMap(o,c=>c.listTools({...i!==void 0?{namespace:i}:{},...a!==void 0?{query:a}:{},limit:s,includeSchemas:!1})),e.runtimeLocalScope),getToolByPath:({path:i,includeSchemas:a})=>Hh(a?Sa.map(r($Q({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore,path:i,includeSchemas:!0})),s=>s?.descriptor??null):Sa.flatMap(o,s=>s.getToolByPath({path:i,includeSchemas:!1})),e.runtimeLocalScope),searchTools:({query:i,namespace:a,limit:s})=>Hh(Sa.flatMap(o,c=>c.searchTools({query:i,...a!==void 0?{namespace:a}:{},limit:s})),e.runtimeLocalScope)}};var JDe=e=>{let t=r2({scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore}),r=y=>y.pipe(OF.provide(t)),n=EDe({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceAuthService:e.sourceAuthService,installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,runtimeLocalScope:e.runtimeLocalScope}),o=e.createInternalToolMap?.({scopeId:e.scopeId,actorScopeId:e.actorScopeId,executorStateStore:e.executorStateStore,sourceStore:e.sourceStore,sourceCatalogSyncService:e.sourceCatalogSyncService,sourceAuthService:e.sourceAuthService,installationStore:e.installationStore,instanceConfigResolver:e.instanceConfigResolver,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,updateSecretMaterial:e.updateSecretMaterial,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,runtimeLocalScope:e.runtimeLocalScope})??{},i=VDe({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,runtimeLocalScope:e.runtimeLocalScope}),a=null,s=zte({getCatalog:()=>{if(a===null)throw new Error("Workspace tool catalog has not been initialized");return a}}),c=Vte([s,n,o,e.localToolRuntime.tools]),p=e_({tools:c});a=qte({catalogs:[p,i]});let d=new Set(Object.keys(c)),f=Yd({tools:c,onElicitation:e.onElicitation}),m=y=>Hh(r(OF.gen(function*(){let g=yield*$Q({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore,path:y.path,includeSchemas:!1});if(!g)return yield*Ne("execution/scope/tool-invoker",`Unknown tool path: ${y.path}`);yield*UDe({scopeId:e.scopeId,tool:g,args:y.args,context:y.context,onElicitation:e.onElicitation});let S=yield*e.sourceAuthMaterialService.resolve({source:g.source,actorScopeId:e.actorScopeId,context:qDe(y.context)});return yield*ADe({scopeId:e.scopeId,actorScopeId:e.actorScopeId,tool:g,auth:S,args:y.args,onElicitation:e.onElicitation,context:y.context})})),e.runtimeLocalScope);return{catalog:a,toolInvoker:{invoke:({path:y,args:g,context:S})=>Hh(d.has(y)?f.invoke({path:y,args:g,context:S}):m({path:y,args:g,context:S}),e.runtimeLocalScope)}}};import*as YDe from"effect/Context";import*as Cd from"effect/Either";import*as Me from"effect/Effect";import*as e2e from"effect/Layer";import*as Ei from"effect/Option";import*as FF from"effect/ParseResult";import*as Fn from"effect/Schema";import{createServer as gTt}from"node:http";import*as MQ from"effect/Effect";var STt=10*6e4,KDe=e=>new Promise((t,r)=>{e.close(n=>{if(n){r(n);return}t()})}),jQ=e=>MQ.tryPromise({try:()=>new Promise((t,r)=>{let n=e.publicHost??"127.0.0.1",o=e.listenHost??"127.0.0.1",i=new URL(e.completionUrl),a=gTt((p,d)=>{try{let f=new URL(p.url??"/",`http://${n}`),m=new URL(i.toString());for(let[y,g]of f.searchParams.entries())m.searchParams.set(y,g);d.statusCode=302,d.setHeader("cache-control","no-store"),d.setHeader("location",m.toString()),d.end()}catch(f){let m=f instanceof Error?f:new Error(String(f));d.statusCode=500,d.setHeader("content-type","text/plain; charset=utf-8"),d.end(`OAuth redirect failed: ${m.message}`)}finally{KDe(a).catch(()=>{})}}),s=null,c=()=>(s!==null&&(clearTimeout(s),s=null),KDe(a).catch(()=>{}));a.once("error",p=>{r(p instanceof Error?p:new Error(String(p)))}),a.listen(0,o,()=>{let p=a.address();if(!p||typeof p=="string"){r(new Error("Failed to resolve OAuth loopback port"));return}s=setTimeout(()=>{c()},e.timeoutMs??STt),typeof s.unref=="function"&&s.unref(),t({redirectUri:`http://${n}:${p.port}`,close:MQ.tryPromise({try:c,catch:d=>d instanceof Error?d:new Error(String(d))})})})}),catch:t=>t instanceof Error?t:new Error(String(t))});var lr=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},zQ=e=>new URL(e).hostname,VQ=e=>{let t=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"");return t.length>0?t:"source"},vTt=e=>{let t=e.split(/[\\/]+/).map(r=>r.trim()).filter(r=>r.length>0);return t[t.length-1]??e},bTt=e=>{if(!e||e.length===0)return null;let t=e.map(r=>r.trim()).filter(r=>r.length>0);return t.length>0?t:null},xTt=e=>{let t=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");return t.length>0?t:"mcp"},ETt=e=>{let t=lr(e.name)??lr(e.endpoint)??lr(e.command)??"mcp";return`stdio://local/${xTt(t)}`},GDe=e=>{if(Qy({transport:e.transport??void 0,command:e.command??void 0}))return xf(lr(e.endpoint)??ETt(e));let t=lr(e.endpoint);if(t===null)throw new Error("Endpoint is required.");return xf(t)},t2e=e=>new URL(`/v1/workspaces/${encodeURIComponent(e.scopeId)}/sources/${encodeURIComponent(e.sourceId)}/credentials/oauth/complete`,e.baseUrl).toString(),TTt=e=>new URL("/v1/oauth/source-auth/callback",e.baseUrl).toString(),DTt=e=>new URL(`/v1/workspaces/${encodeURIComponent(e.scopeId)}/oauth/provider/callback`,e.baseUrl).toString();function xf(e){return new URL(e.trim()).toString()}var r2e=(e,t)=>`https://www.googleapis.com/discovery/v1/apis/${encodeURIComponent(e)}/${encodeURIComponent(t)}/rest`,n2e=(e,t)=>`Google ${e.split(/[^a-zA-Z0-9]+/).filter(Boolean).map(n=>n[0]?.toUpperCase()+n.slice(1)).join(" ")||e} ${t}`,o2e=e=>`google.${e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"")}`,i2e=Fn.Struct({kind:Fn.Literal("source_oauth"),nonce:Fn.String,displayName:Fn.NullOr(Fn.String)}),ATt=Fn.encodeSync(Fn.parseJson(i2e)),wTt=Fn.decodeUnknownOption(Fn.parseJson(i2e)),ITt=e=>ATt({kind:"source_oauth",nonce:crypto.randomUUID(),displayName:lr(e.displayName)}),kTt=e=>{let t=wTt(e);return Ei.isSome(t)?lr(t.value.displayName):null},HDe=e=>{let t=lr(e.displayName)??zQ(e.endpoint);return/\boauth\b/i.test(t)?t:`${t} OAuth`},CTt=(e,t)=>Me.gen(function*(){if(!zh(e.kind))return yield*Ne("sources/source-auth-service",`Expected MCP source, received ${e.kind}`);let r=yield*Uh(e),n=lm({endpoint:e.endpoint,transport:r.transport??void 0,queryParams:r.queryParams??void 0,headers:r.headers??void 0,command:r.command??void 0,args:r.args??void 0,env:r.env??void 0,cwd:r.cwd??void 0});return yield*rg({connect:n,namespace:e.namespace??VQ(e.name),sourceKey:e.id,mcpDiscoveryElicitation:t})}),ES=e=>({status:e.status,errorText:e.errorText,completedAt:e.now,updatedAt:e.now,sessionDataJson:e.sessionDataJson}),JQ=e=>Fn.encodeSync(UB)(e),PTt=Fn.decodeUnknownEither(UB),NF=e=>{if(e.providerKind!=="mcp_oauth")throw new Error(`Unsupported source auth provider for session ${e.id}`);let t=PTt(e.sessionDataJson);if(Cd.isLeft(t))throw new Error(`Invalid source auth session data for ${e.id}: ${FF.TreeFormatter.formatErrorSync(t.left)}`);return t.right},ZDe=e=>{let t=NF(e.session);return JQ({...t,...e.patch})},a2e=e=>Fn.encodeSync(zB)(e),OTt=Fn.decodeUnknownEither(zB),qQ=e=>{if(e.providerKind!=="oauth2_pkce")throw new Error(`Unsupported source auth provider for session ${e.id}`);let t=OTt(e.sessionDataJson);if(Cd.isLeft(t))throw new Error(`Invalid source auth session data for ${e.id}: ${FF.TreeFormatter.formatErrorSync(t.left)}`);return t.right},NTt=e=>{let t=qQ(e.session);return a2e({...t,...e.patch})},s2e=e=>Fn.encodeSync(VB)(e),FTt=Fn.decodeUnknownEither(VB),UQ=e=>{if(e.providerKind!=="oauth2_provider_batch")throw new Error(`Unsupported source auth provider for session ${e.id}`);let t=FTt(e.sessionDataJson);if(Cd.isLeft(t))throw new Error(`Invalid source auth session data for ${e.id}: ${FF.TreeFormatter.formatErrorSync(t.left)}`);return t.right},RTt=e=>{let t=UQ(e.session);return s2e({...t,...e.patch})},WDe=e=>Me.gen(function*(){if(e.session.executionId===null)return;let t=e.response.action==="accept"?{action:"accept"}:{action:"cancel",...e.response.reason?{content:{reason:e.response.reason}}:{}};if(!(yield*e.liveExecutionManager.resolveInteraction({executionId:e.session.executionId,response:t}))){let n=yield*e.executorState.executionInteractions.getPendingByExecutionId(e.session.executionId);Ei.isSome(n)&&(yield*e.executorState.executionInteractions.update(n.value.id,{status:t.action==="cancel"?"cancelled":"resolved",responseJson:QDe(pw(t)),responsePrivateJson:QDe(t),updatedAt:Date.now()}))}}),QDe=e=>e===void 0?null:JSON.stringify(e),aa=Me.fn("source.status.update")((e,t,r)=>Me.gen(function*(){let n=yield*e.loadSourceById({scopeId:t.scopeId,sourceId:t.id,actorScopeId:r.actorScopeId});return yield*e.persistSource({...n,status:r.status,lastError:r.lastError??null,auth:r.auth??n.auth,importAuth:r.importAuth??n.importAuth,updatedAt:Date.now()},{actorScopeId:r.actorScopeId})}).pipe(Me.withSpan("source.status.update",{attributes:{"executor.source.id":t.id,"executor.source.status":r.status}}))),c2e=e=>typeof e.kind=="string",LTt=e=>c2e(e)&&e.kind==="google_discovery",$Tt=e=>c2e(e)&&"endpoint"in e&&SS(e.kind),MTt=e=>e.kind===void 0||zh(e.kind),BQ=e=>Me.gen(function*(){let t=lr(e.rawValue);if(t!==null)return yield*e.storeSecretMaterial({purpose:"auth_material",value:t});let r=lr(e.ref?.providerId),n=lr(e.ref?.handle);return r===null||n===null?null:{providerId:r,handle:n}}),KQ=e=>Me.gen(function*(){let t=e.existing;if(e.auth===void 0&&t&&SS(t.kind))return t.auth;let r=e.auth??{kind:"none"};if(r.kind==="none")return{kind:"none"};let n=lr(r.headerName)??"Authorization",o=r.prefix??"Bearer ";if(r.kind==="bearer"){let s=lr(r.token),c=r.tokenRef??null;if(s===null&&c===null&&t&&SS(t.kind)&&t.auth.kind==="bearer")return t.auth;let p=yield*BQ({rawValue:s,ref:c,storeSecretMaterial:e.storeSecretMaterial});return p===null?yield*Ne("sources/source-auth-service","Bearer auth requires token or tokenRef"):{kind:"bearer",headerName:n,prefix:o,token:p}}if(lr(r.accessToken)===null&&r.accessTokenRef==null&&lr(r.refreshToken)===null&&r.refreshTokenRef==null&&t&&SS(t.kind)&&t.auth.kind==="oauth2")return t.auth;let i=yield*BQ({rawValue:r.accessToken,ref:r.accessTokenRef??null,storeSecretMaterial:e.storeSecretMaterial});if(i===null)return yield*Ne("sources/source-auth-service","OAuth2 auth requires accessToken or accessTokenRef");let a=yield*BQ({rawValue:r.refreshToken,ref:r.refreshTokenRef??null,storeSecretMaterial:e.storeSecretMaterial});return{kind:"oauth2",headerName:n,prefix:o,accessToken:i,refreshToken:a}}),l2e=e=>Me.gen(function*(){let t=SS(e.sourceKind)?"reuse_runtime":"none",r=e.importAuthPolicy??e.existing?.importAuthPolicy??t;if(r==="none"||r==="reuse_runtime")return{importAuthPolicy:r,importAuth:{kind:"none"}};if(e.importAuth===void 0&&e.existing&&e.existing.importAuthPolicy==="separate")return{importAuthPolicy:r,importAuth:e.existing.importAuth};let n=yield*KQ({existing:void 0,auth:e.importAuth??{kind:"none"},storeSecretMaterial:e.storeSecretMaterial});return{importAuthPolicy:r,importAuth:n}}),u2e=e=>!e.explicitAuthProvided&&e.auth.kind==="none"&&(e.existing?.auth.kind??"none")==="none",jTt=Fn.decodeUnknownOption(HB),p2e=Fn.encodeSync(HB),d2e=e=>{if(e.clientMetadataJson===null)return"app_callback";let t=jTt(e.clientMetadataJson);return Ei.isNone(t)?"app_callback":t.value.redirectMode??"app_callback"},RF=e=>e.clientSecretProviderId&&e.clientSecretHandle?{providerId:e.clientSecretProviderId,handle:e.clientSecretHandle}:null,BTt=e=>Me.gen(function*(){let t=_i(e.source),r=t.getOauth2SetupConfig?yield*t.getOauth2SetupConfig({source:e.source,slot:"runtime"}):null;if(r===null)return yield*Ne("sources/source-auth-service",`Source ${e.source.id} does not support OAuth client configuration`);let n=yield*e.executorState.sourceOauthClients.getByScopeSourceAndProvider({scopeId:e.source.scopeId,sourceId:e.source.id,providerKey:r.providerKey}),o=t.normalizeOauthClientInput?yield*t.normalizeOauthClientInput(e.oauthClient):e.oauthClient,i=Ei.isSome(n)?RF(n.value):null,a=o.clientSecret?yield*e.storeSecretMaterial({purpose:"oauth_client_info",value:o.clientSecret}):null,s=Date.now(),c=Ei.isSome(n)?n.value.id:z6.make(`src_oauth_client_${crypto.randomUUID()}`);return yield*e.executorState.sourceOauthClients.upsert({id:c,scopeId:e.source.scopeId,sourceId:e.source.id,providerKey:r.providerKey,clientId:o.clientId,clientSecretProviderId:a?.providerId??null,clientSecretHandle:a?.handle??null,clientMetadataJson:p2e({redirectMode:o.redirectMode??"app_callback"}),createdAt:Ei.isSome(n)?n.value.createdAt:s,updatedAt:s}),i&&(a===null||i.providerId!==a.providerId||i.handle!==a.handle)&&(yield*e.deleteSecretMaterial(i).pipe(Me.either,Me.ignore)),{providerKey:r.providerKey,clientId:o.clientId,clientSecret:a,redirectMode:o.redirectMode??"app_callback"}}),qTt=e=>Me.gen(function*(){let t=_i(e.source),r=t.getOauth2SetupConfig?yield*t.getOauth2SetupConfig({source:e.source,slot:"runtime"}):null;if(r===null)return null;let n=yield*e.executorState.sourceOauthClients.getByScopeSourceAndProvider({scopeId:e.source.scopeId,sourceId:e.source.id,providerKey:r.providerKey});return Ei.isNone(n)?null:{providerKey:n.value.providerKey,clientId:n.value.clientId,clientSecret:RF(n.value),redirectMode:d2e(n.value)}}),_2e=e=>Me.gen(function*(){let t=e.normalizeOauthClient?yield*e.normalizeOauthClient(e.oauthClient):e.oauthClient,r=t.clientSecret?yield*e.storeSecretMaterial({purpose:"oauth_client_info",value:t.clientSecret}):null,n=Date.now(),o=Em.make(`ws_oauth_client_${crypto.randomUUID()}`);return yield*e.executorState.scopeOauthClients.upsert({id:o,scopeId:e.scopeId,providerKey:e.providerKey,label:lr(e.label)??null,clientId:t.clientId,clientSecretProviderId:r?.providerId??null,clientSecretHandle:r?.handle??null,clientMetadataJson:p2e({redirectMode:t.redirectMode??"app_callback"}),createdAt:n,updatedAt:n}),{id:o,providerKey:e.providerKey,label:lr(e.label)??null,clientId:t.clientId,clientSecret:r,redirectMode:t.redirectMode??"app_callback"}}),GQ=e=>Me.gen(function*(){let t=yield*e.executorState.scopeOauthClients.getById(e.oauthClientId);return Ei.isNone(t)?null:!HQ({scopeId:e.scopeId,localScopeState:e.localScopeState}).includes(t.value.scopeId)||t.value.providerKey!==e.providerKey?yield*Ne("sources/source-auth-service",`Scope OAuth client ${e.oauthClientId} is not valid for ${e.providerKey}`):{id:t.value.id,providerKey:t.value.providerKey,label:t.value.label,clientId:t.value.clientId,clientSecret:RF(t.value),redirectMode:d2e(t.value)}}),UTt=(e,t)=>{let r=new Set(e);return t.every(n=>r.has(n))},Ef=e=>[...new Set(e.map(t=>t.trim()).filter(t=>t.length>0))],HQ=e=>{let t=e.localScopeState;return t?t.installation.scopeId!==e.scopeId?[e.scopeId]:[...new Set([e.scopeId,...t.installation.resolutionScopeIds])]:[e.scopeId]},zTt=(e,t)=>{let r=Object.entries(e??{}).sort(([o],[i])=>o.localeCompare(i)),n=Object.entries(t??{}).sort(([o],[i])=>o.localeCompare(i));return r.length===n.length&&r.every(([o,i],a)=>{let s=n[a];return s!==void 0&&s[0]===o&&s[1]===i})},VTt=(e,t)=>e.providerKey===t.providerKey&&e.authorizationEndpoint===t.authorizationEndpoint&&e.tokenEndpoint===t.tokenEndpoint&&e.headerName===t.headerName&&e.prefix===t.prefix&&e.clientAuthentication===t.clientAuthentication&&zTt(e.authorizationParams,t.authorizationParams),f2e=e=>Me.gen(function*(){let t=_i(e),r=t.getOauth2SetupConfig?yield*t.getOauth2SetupConfig({source:e,slot:"runtime"}):null;return r===null?null:{source:e,requiredScopes:Ef(r.scopes),setupConfig:r}}),JTt=e=>Me.gen(function*(){if(e.length===0)return yield*Ne("sources/source-auth-service","Provider auth setup requires at least one target source");let t=e[0].setupConfig;for(let r of e.slice(1))if(!VTt(t,r.setupConfig))return yield*Ne("sources/source-auth-service",`Provider auth setup for ${t.providerKey} requires compatible source OAuth configuration`);return{...t,scopes:Ef(e.flatMap(r=>[...r.requiredScopes]))}}),KTt=e=>Me.gen(function*(){let t=HQ({scopeId:e.scopeId,localScopeState:e.localScopeState});for(let r of t){let o=(yield*e.executorState.providerAuthGrants.listByScopeActorAndProvider({scopeId:r,actorScopeId:e.actorScopeId??null,providerKey:e.providerKey})).find(i=>i.oauthClientId===e.oauthClientId&&UTt(i.grantedScopes,e.requiredScopes));if(o)return Ei.some(o)}return Ei.none()}),GTt=e=>Me.gen(function*(){let t=e.existingGrant??null,r=t?.refreshToken??null;if(e.refreshToken!==null&&(r=yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:e.refreshToken,name:`${e.providerKey} Refresh`})),r===null)return yield*Ne("sources/source-auth-service",`Provider auth grant for ${e.providerKey} is missing a refresh token`);let n=Date.now(),o={id:t?.id??jp.make(`provider_grant_${crypto.randomUUID()}`),scopeId:e.scopeId,actorScopeId:e.actorScopeId??null,providerKey:e.providerKey,oauthClientId:e.oauthClientId,tokenEndpoint:e.tokenEndpoint,clientAuthentication:e.clientAuthentication,headerName:e.headerName,prefix:e.prefix,refreshToken:r,grantedScopes:[...Ef([...t?.grantedScopes??[],...e.grantedScopes])],lastRefreshedAt:t?.lastRefreshedAt??null,orphanedAt:null,createdAt:t?.createdAt??n,updatedAt:n};return yield*e.executorState.providerAuthGrants.upsert(o),t?.refreshToken&&(t.refreshToken.providerId!==r.providerId||t.refreshToken.handle!==r.handle)&&(yield*e.deleteSecretMaterial(t.refreshToken).pipe(Me.either,Me.ignore)),o}),m2e=e=>Me.gen(function*(){let t=_i(e.source),r=t.getOauth2SetupConfig?yield*t.getOauth2SetupConfig({source:e.source,slot:"runtime"}):null;if(r===null)return null;let n=yield*qTt({executorState:e.executorState,source:e.source});if(n===null)return null;let o=xm.make(`src_auth_${crypto.randomUUID()}`),i=crypto.randomUUID(),a=t2e({baseUrl:e.baseUrl,scopeId:e.source.scopeId,sourceId:e.source.id}),c=(e.redirectModeOverride??n.redirectMode)==="loopback"?yield*jQ({completionUrl:a}):null,p=c?.redirectUri??a,d=XB();return yield*Me.gen(function*(){let f=YB({authorizationEndpoint:r.authorizationEndpoint,clientId:n.clientId,redirectUri:p,scopes:[...r.scopes],state:i,codeVerifier:d,extraParams:r.authorizationParams}),m=Date.now();return yield*e.executorState.sourceAuthSessions.upsert({id:o,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,credentialSlot:"runtime",executionId:e.executionId??null,interactionId:e.interactionId??null,providerKind:"oauth2_pkce",status:"pending",state:i,sessionDataJson:a2e({kind:"oauth2_pkce",providerKey:r.providerKey,authorizationEndpoint:r.authorizationEndpoint,tokenEndpoint:r.tokenEndpoint,redirectUri:p,clientId:n.clientId,clientAuthentication:r.clientAuthentication,clientSecret:n.clientSecret,scopes:[...r.scopes],headerName:r.headerName,prefix:r.prefix,authorizationParams:{...r.authorizationParams},codeVerifier:d,authorizationUrl:f}),errorText:null,completedAt:null,createdAt:m,updatedAt:m}),{kind:"oauth_required",source:yield*aa(e.sourceStore,e.source,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null}),sessionId:o,authorizationUrl:f}}).pipe(Me.onError(()=>c?c.close.pipe(Me.orDie):Me.void))}),HTt=e=>Me.gen(function*(){if(e.targetSources.length===0)return yield*Ne("sources/source-auth-service","Provider OAuth setup requires at least one target source");let t=xm.make(`src_auth_${crypto.randomUUID()}`),r=crypto.randomUUID(),n=DTt({baseUrl:e.baseUrl,scopeId:e.scopeId}),i=(e.redirectModeOverride??e.scopeOauthClient.redirectMode)==="loopback"?yield*jQ({completionUrl:n}):null,a=i?.redirectUri??n,s=XB();return yield*Me.gen(function*(){let c=YB({authorizationEndpoint:e.setupConfig.authorizationEndpoint,clientId:e.scopeOauthClient.clientId,redirectUri:a,scopes:[...Ef(e.setupConfig.scopes)],state:r,codeVerifier:s,extraParams:e.setupConfig.authorizationParams}),p=Date.now();yield*e.executorState.sourceAuthSessions.upsert({id:t,scopeId:e.scopeId,sourceId:Mn.make(`oauth_provider_${crypto.randomUUID()}`),actorScopeId:e.actorScopeId??null,credentialSlot:"runtime",executionId:e.executionId??null,interactionId:e.interactionId??null,providerKind:"oauth2_provider_batch",status:"pending",state:r,sessionDataJson:s2e({kind:"provider_oauth_batch",providerKey:e.setupConfig.providerKey,authorizationEndpoint:e.setupConfig.authorizationEndpoint,tokenEndpoint:e.setupConfig.tokenEndpoint,redirectUri:a,oauthClientId:e.scopeOauthClient.id,clientAuthentication:e.setupConfig.clientAuthentication,scopes:[...Ef(e.setupConfig.scopes)],headerName:e.setupConfig.headerName,prefix:e.setupConfig.prefix,authorizationParams:{...e.setupConfig.authorizationParams},targetSources:e.targetSources.map(f=>({sourceId:f.source.id,requiredScopes:[...Ef(f.requiredScopes)]})),codeVerifier:s,authorizationUrl:c}),errorText:null,completedAt:null,createdAt:p,updatedAt:p});let d=yield*aa(e.sourceStore,e.targetSources[0].source,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null});return yield*Me.forEach(e.targetSources.slice(1),f=>aa(e.sourceStore,f.source,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null}).pipe(Me.asVoid),{discard:!0}),{sessionId:t,authorizationUrl:c,source:d}}).pipe(Me.onError(()=>i?i.close.pipe(Me.orDie):Me.void))}),h2e=e=>Me.gen(function*(){let t=yield*JTt(e.targets),r=yield*KTt({executorState:e.executorState,scopeId:e.scopeId,actorScopeId:e.actorScopeId,providerKey:t.providerKey,oauthClientId:e.scopeOauthClient.id,requiredScopes:t.scopes,localScopeState:e.localScopeState});if(Ei.isSome(r))return{kind:"connected",sources:yield*y2e({sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,actorScopeId:e.actorScopeId,grantId:r.value.id,providerKey:r.value.providerKey,headerName:r.value.headerName,prefix:r.value.prefix,targets:e.targets.map(c=>({source:c.source,requiredScopes:c.requiredScopes}))})};let n=lr(e.baseUrl),o=n??e.getLocalServerBaseUrl?.()??null;if(o===null)return yield*Ne("sources/source-auth-service",`Local executor server base URL is unavailable for ${t.providerKey} OAuth setup`);let i=yield*HTt({executorState:e.executorState,sourceStore:e.sourceStore,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId,baseUrl:o,redirectModeOverride:n?"app_callback":void 0,scopeOauthClient:e.scopeOauthClient,setupConfig:t,targetSources:e.targets.map(s=>({source:s.source,requiredScopes:s.requiredScopes}))});return{kind:"oauth_required",sources:yield*Me.forEach(e.targets,s=>e.sourceStore.loadSourceById({scopeId:s.source.scopeId,sourceId:s.source.id,actorScopeId:e.actorScopeId}),{discard:!1}),sessionId:i.sessionId,authorizationUrl:i.authorizationUrl}}),y2e=e=>Me.forEach(e.targets,t=>Me.gen(function*(){let r=yield*aa(e.sourceStore,t.source,{actorScopeId:e.actorScopeId,status:"connected",lastError:null,auth:{kind:"provider_grant_ref",grantId:e.grantId,providerKey:e.providerKey,requiredScopes:[...Ef(t.requiredScopes)],headerName:e.headerName,prefix:e.prefix}});return yield*e.sourceCatalogSync.sync({source:r,actorScopeId:e.actorScopeId}),r}),{discard:!1}),ZTt=e=>Me.gen(function*(){let t=yield*e.executorState.providerAuthGrants.getById(e.grantId);if(Ei.isNone(t)||t.value.scopeId!==e.scopeId)return!1;let r=yield*fQ(e.executorState,{scopeId:e.scopeId,grantId:e.grantId});return yield*Me.forEach(r,n=>Me.gen(function*(){let o=yield*e.sourceStore.loadSourceById({scopeId:n.scopeId,sourceId:n.sourceId,actorScopeId:n.actorScopeId}).pipe(Me.catchAll(()=>Me.succeed(null)));if(o===null){yield*w_(e.executorState,{authArtifactId:n.id},e.deleteSecretMaterial),yield*e.executorState.authArtifacts.removeByScopeSourceAndActor({scopeId:n.scopeId,sourceId:n.sourceId,actorScopeId:n.actorScopeId,slot:n.slot});return}yield*e.sourceStore.persistSource({...o,status:"auth_required",lastError:null,auth:n.slot==="runtime"?{kind:"none"}:o.auth,importAuth:n.slot==="import"?{kind:"none"}:o.importAuth,updatedAt:Date.now()},{actorScopeId:n.actorScopeId}).pipe(Me.asVoid)}),{discard:!0}),yield*RTe(e.executorState,{grant:t.value},e.deleteSecretMaterial),yield*e.executorState.providerAuthGrants.removeById(e.grantId),!0}),XDe=e=>Me.gen(function*(){let t=e.sourceId?null:GDe({endpoint:e.endpoint??null,transport:e.transport??null,command:e.command??null,name:e.name??null}),r=yield*e.sourceId?e.sourceStore.loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId,actorScopeId:e.actorScopeId}).pipe(Me.flatMap(Te=>zh(Te.kind)?Me.succeed(Te):Me.fail(Ne("sources/source-auth-service",`Expected MCP source, received ${Te.kind}`)))):e.sourceStore.loadSourcesInScope(e.scopeId,{actorScopeId:e.actorScopeId}).pipe(Me.map(Te=>Te.find(ke=>zh(ke.kind)&&t!==null&&xf(ke.endpoint)===t))),n=r?yield*Uh(r):null,o=e.command!==void 0?lr(e.command):n?.command??null,i=e.transport!==void 0&&e.transport!==null?e.transport:Qy({transport:n?.transport??void 0,command:o??void 0})?"stdio":n?.transport??"auto";if(i==="stdio"&&o===null)return yield*Ne("sources/source-auth-service","MCP stdio transport requires a command");let a=GDe({endpoint:e.endpoint??r?.endpoint??null,transport:i,command:o,name:e.name??r?.name??null}),s=lr(e.name)??r?.name??(i==="stdio"&&o!==null?vTt(o):zQ(a)),c=lr(e.namespace)??r?.namespace??VQ(s),p=e.enabled??r?.enabled??!0,d=i==="stdio"?null:e.queryParams!==void 0?e.queryParams:n?.queryParams??null,f=i==="stdio"?null:e.headers!==void 0?e.headers:n?.headers??null,m=e.args!==void 0?bTt(e.args):n?.args??null,y=e.env!==void 0?e.env:n?.env??null,g=e.cwd!==void 0?lr(e.cwd):n?.cwd??null,S=Date.now(),x=r?yield*gf({source:r,payload:{name:s,endpoint:a,namespace:c,status:"probing",enabled:p,binding:{transport:i,queryParams:d,headers:f,command:o,args:m,env:y,cwd:g},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:{kind:"none"},lastError:null},now:S}):yield*vS({scopeId:e.scopeId,sourceId:Mn.make(`src_${crypto.randomUUID()}`),payload:{name:s,kind:"mcp",endpoint:a,namespace:c,status:"probing",enabled:p,binding:{transport:i,queryParams:d,headers:f,command:o,args:m,env:y,cwd:g},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:{kind:"none"}},now:S}),A=yield*e.sourceStore.persistSource(x,{actorScopeId:e.actorScopeId});yield*e.sourceCatalogSync.sync({source:A,actorScopeId:e.actorScopeId});let I=yield*Me.either(CTt(A,e.mcpDiscoveryElicitation)),E=yield*Cd.match(I,{onLeft:()=>Me.succeed(null),onRight:Te=>Me.gen(function*(){let ke=yield*aa(e.sourceStore,A,{actorScopeId:e.actorScopeId,status:"connected",lastError:null,auth:{kind:"none"}}),Ve=yield*Me.either(e.sourceCatalogSync.persistMcpCatalogSnapshotFromManifest({source:ke,manifest:Te.manifest}));return yield*Cd.match(Ve,{onLeft:me=>aa(e.sourceStore,ke,{actorScopeId:e.actorScopeId,status:"error",lastError:me.message}).pipe(Me.zipRight(Me.fail(me))),onRight:()=>Me.succeed({kind:"connected",source:ke})})})});if(E)return E;let C=lr(e.baseUrl)??e.getLocalServerBaseUrl?.()??null;if(!C)return yield*Ne("sources/source-auth-service","Local executor server base URL is unavailable for source credential setup");let F=xm.make(`src_auth_${crypto.randomUUID()}`),O=crypto.randomUUID(),$=t2e({baseUrl:C,scopeId:e.scopeId,sourceId:A.id}),N=yield*LT({endpoint:a,redirectUrl:$,state:O}),U=yield*aa(e.sourceStore,A,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null}),ge=Date.now();return yield*e.executorState.sourceAuthSessions.upsert({id:F,scopeId:e.scopeId,sourceId:U.id,actorScopeId:e.actorScopeId??null,credentialSlot:"runtime",executionId:e.executionId??null,interactionId:e.interactionId??null,providerKind:"mcp_oauth",status:"pending",state:O,sessionDataJson:JQ({kind:"mcp_oauth",endpoint:a,redirectUri:$,scope:null,resourceMetadataUrl:N.resourceMetadataUrl,authorizationServerUrl:N.authorizationServerUrl,resourceMetadata:N.resourceMetadata,authorizationServerMetadata:N.authorizationServerMetadata,clientInformation:N.clientInformation,codeVerifier:N.codeVerifier,authorizationUrl:N.authorizationUrl}),errorText:null,completedAt:null,createdAt:ge,updatedAt:ge}),{kind:"oauth_required",source:U,sessionId:F,authorizationUrl:N.authorizationUrl}}),WTt=e=>Me.gen(function*(){let t=xf(e.sourceInput.endpoint),r=e.sourceInput.kind==="openapi"?xf(e.sourceInput.specUrl):null,o=(yield*e.sourceStore.loadSourcesInScope(e.sourceInput.scopeId,{actorScopeId:e.sourceInput.actorScopeId})).find(g=>{if(g.kind!==e.sourceInput.kind||xf(g.endpoint)!==t)return!1;if(e.sourceInput.kind==="openapi"){let S=Me.runSync(Uh(g));return lr(S.specUrl)===r}return!0}),i=lr(e.sourceInput.name)??o?.name??zQ(t),a=lr(e.sourceInput.namespace)??o?.namespace??VQ(i),s=o?yield*Uh(o):null,c=Date.now(),p=yield*KQ({existing:o,auth:e.sourceInput.auth,storeSecretMaterial:e.storeSecretMaterial}),d=yield*l2e({sourceKind:e.sourceInput.kind,existing:o,importAuthPolicy:e.sourceInput.importAuthPolicy??null,importAuth:e.sourceInput.importAuth??null,storeSecretMaterial:e.storeSecretMaterial}),f=o?yield*gf({source:o,payload:{name:i,endpoint:t,namespace:a,status:"probing",enabled:!0,binding:e.sourceInput.kind==="openapi"?{specUrl:r,defaultHeaders:s?.defaultHeaders??null}:{defaultHeaders:s?.defaultHeaders??null},importAuthPolicy:d.importAuthPolicy,importAuth:d.importAuth,auth:p,lastError:null},now:c}):yield*vS({scopeId:e.sourceInput.scopeId,sourceId:Mn.make(`src_${crypto.randomUUID()}`),payload:{name:i,kind:e.sourceInput.kind,endpoint:t,namespace:a,status:"probing",enabled:!0,binding:e.sourceInput.kind==="openapi"?{specUrl:r,defaultHeaders:s?.defaultHeaders??null}:{defaultHeaders:s?.defaultHeaders??null},importAuthPolicy:d.importAuthPolicy,importAuth:d.importAuth,auth:p},now:c}),m=yield*e.sourceStore.persistSource(f,{actorScopeId:e.sourceInput.actorScopeId});if(u2e({existing:o,explicitAuthProvided:e.sourceInput.auth!==void 0,auth:m.auth})){let g=lr(e.baseUrl),S=g??e.getLocalServerBaseUrl?.()??null;if(S){let A=yield*m2e({executorState:e.executorState,sourceStore:e.sourceStore,source:m,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:S,redirectModeOverride:g?"app_callback":void 0,storeSecretMaterial:e.storeSecretMaterial});if(A)return A}return{kind:"credential_required",source:yield*aa(e.sourceStore,m,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}),credentialSlot:"runtime"}}let y=yield*Me.either(e.sourceCatalogSync.sync({source:{...m,status:"connected"},actorScopeId:e.sourceInput.actorScopeId}));return yield*Cd.match(y,{onLeft:g=>E_(g)?aa(e.sourceStore,m,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}).pipe(Me.map(S=>({kind:"credential_required",source:S,credentialSlot:g.slot}))):aa(e.sourceStore,m,{actorScopeId:e.sourceInput.actorScopeId,status:"error",lastError:g.message}).pipe(Me.zipRight(Me.fail(g))),onRight:()=>aa(e.sourceStore,m,{actorScopeId:e.sourceInput.actorScopeId,status:"connected",lastError:null}).pipe(Me.map(g=>({kind:"connected",source:g})))})}).pipe(Me.withSpan("source.connect.http",{attributes:{"executor.source.kind":e.sourceInput.kind,"executor.source.endpoint":e.sourceInput.endpoint,...e.sourceInput.namespace?{"executor.source.namespace":e.sourceInput.namespace}:{},...e.sourceInput.name?{"executor.source.name":e.sourceInput.name}:{}}})),QTt=e=>Me.gen(function*(){let t=e.sourceInput.service.trim(),r=e.sourceInput.version.trim(),n=xf(lr(e.sourceInput.discoveryUrl)??r2e(t,r)),i=(yield*e.sourceStore.loadSourcesInScope(e.sourceInput.scopeId,{actorScopeId:e.sourceInput.actorScopeId})).find(E=>{if(E.kind!=="google_discovery")return!1;let C=E.binding;return typeof C.service!="string"||typeof C.version!="string"?!1:C.service.trim()===t&&C.version.trim()===r}),a=lr(e.sourceInput.name)??i?.name??n2e(t,r),s=lr(e.sourceInput.namespace)??i?.namespace??o2e(t),c=Array.isArray(i?.binding?.scopes)?i.binding.scopes:[],p=(e.sourceInput.scopes??c).map(E=>E.trim()).filter(E=>E.length>0),d=i?yield*Uh(i):null,f=Date.now(),m=yield*KQ({existing:i,auth:e.sourceInput.auth,storeSecretMaterial:e.storeSecretMaterial}),y=yield*l2e({sourceKind:e.sourceInput.kind,existing:i,importAuthPolicy:e.sourceInput.importAuthPolicy??null,importAuth:e.sourceInput.importAuth??null,storeSecretMaterial:e.storeSecretMaterial}),g=i?yield*gf({source:i,payload:{name:a,endpoint:n,namespace:s,status:"probing",enabled:!0,binding:{service:t,version:r,discoveryUrl:n,defaultHeaders:d?.defaultHeaders??null,scopes:[...p]},importAuthPolicy:y.importAuthPolicy,importAuth:y.importAuth,auth:m,lastError:null},now:f}):yield*vS({scopeId:e.sourceInput.scopeId,sourceId:Mn.make(`src_${crypto.randomUUID()}`),payload:{name:a,kind:"google_discovery",endpoint:n,namespace:s,status:"probing",enabled:!0,binding:{service:t,version:r,discoveryUrl:n,defaultHeaders:d?.defaultHeaders??null,scopes:[...p]},importAuthPolicy:y.importAuthPolicy,importAuth:y.importAuth,auth:m},now:f}),S=yield*e.sourceStore.persistSource(g,{actorScopeId:e.sourceInput.actorScopeId}),x=_i(S),A=yield*f2e(S);if(A!==null&&e.sourceInput.auth===void 0&&S.auth.kind==="none"){let E=null;if(e.sourceInput.scopeOauthClientId?E=yield*GQ({executorState:e.executorState,scopeId:S.scopeId,oauthClientId:e.sourceInput.scopeOauthClientId,providerKey:A.setupConfig.providerKey,localScopeState:e.localScopeState}):e.sourceInput.oauthClient&&(E=yield*_2e({executorState:e.executorState,scopeId:S.scopeId,providerKey:A.setupConfig.providerKey,oauthClient:e.sourceInput.oauthClient,label:`${a} OAuth Client`,normalizeOauthClient:x.normalizeOauthClientInput,storeSecretMaterial:e.storeSecretMaterial})),E===null)return yield*Ne("sources/source-auth-service",`${A.setupConfig.providerKey} shared auth requires a workspace OAuth client`);let C=yield*h2e({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,scopeId:S.scopeId,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:e.baseUrl,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeOauthClient:E,targets:[A],localScopeState:e.localScopeState});return C.kind==="connected"?{kind:"connected",source:C.sources[0]}:{kind:"oauth_required",source:C.sources[0],sessionId:C.sessionId,authorizationUrl:C.authorizationUrl}}if(e.sourceInput.oauthClient&&(yield*BTt({executorState:e.executorState,source:S,oauthClient:e.sourceInput.oauthClient,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial})),u2e({existing:i,explicitAuthProvided:e.sourceInput.auth!==void 0,auth:S.auth})){let E=lr(e.baseUrl),C=E??e.getLocalServerBaseUrl?.()??null;if(C){let O=yield*m2e({executorState:e.executorState,sourceStore:e.sourceStore,source:S,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:C,redirectModeOverride:E?"app_callback":void 0,storeSecretMaterial:e.storeSecretMaterial});if(O)return O}return{kind:"credential_required",source:yield*aa(e.sourceStore,S,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}),credentialSlot:"runtime"}}let I=yield*Me.either(e.sourceCatalogSync.sync({source:{...S,status:"connected"},actorScopeId:e.sourceInput.actorScopeId}));return yield*Cd.match(I,{onLeft:E=>E_(E)?aa(e.sourceStore,S,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}).pipe(Me.map(C=>({kind:"credential_required",source:C,credentialSlot:E.slot}))):aa(e.sourceStore,S,{actorScopeId:e.sourceInput.actorScopeId,status:"error",lastError:E.message}).pipe(Me.zipRight(Me.fail(E))),onRight:()=>aa(e.sourceStore,S,{actorScopeId:e.sourceInput.actorScopeId,status:"connected",lastError:null}).pipe(Me.map(E=>({kind:"connected",source:E})))})}),XTt=e=>Me.gen(function*(){if(e.sourceInput.sources.length===0)return yield*Ne("sources/source-auth-service","Google batch connect requires at least one source");let t=yield*e.sourceStore.loadSourcesInScope(e.sourceInput.scopeId,{actorScopeId:e.sourceInput.actorScopeId}),r=yield*Me.forEach(e.sourceInput.sources,i=>Me.gen(function*(){let a=i.service.trim(),s=i.version.trim(),c=xf(lr(i.discoveryUrl)??r2e(a,s)),p=t.find(I=>{if(I.kind!=="google_discovery")return!1;let E=I.binding;return typeof E.service=="string"&&typeof E.version=="string"&&E.service.trim()===a&&E.version.trim()===s}),d=lr(i.name)??p?.name??n2e(a,s),f=lr(i.namespace)??p?.namespace??o2e(a),m=Ef(i.scopes??(Array.isArray(p?.binding.scopes)?p?.binding.scopes:[])),y=p?yield*Uh(p):null,g=Date.now(),S=p?yield*gf({source:p,payload:{name:d,endpoint:c,namespace:f,status:"probing",enabled:!0,binding:{service:a,version:s,discoveryUrl:c,defaultHeaders:y?.defaultHeaders??null,scopes:[...m]},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:p.auth.kind==="provider_grant_ref"?p.auth:{kind:"none"},lastError:null},now:g}):yield*vS({scopeId:e.sourceInput.scopeId,sourceId:Mn.make(`src_${crypto.randomUUID()}`),payload:{name:d,kind:"google_discovery",endpoint:c,namespace:f,status:"probing",enabled:!0,binding:{service:a,version:s,discoveryUrl:c,defaultHeaders:y?.defaultHeaders??null,scopes:[...m]},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:{kind:"none"}},now:g}),x=yield*e.sourceStore.persistSource(S,{actorScopeId:e.sourceInput.actorScopeId}),A=yield*f2e(x);return A===null?yield*Ne("sources/source-auth-service",`Source ${x.id} does not support Google shared auth`):A}),{discard:!1}),n=yield*GQ({executorState:e.executorState,scopeId:e.sourceInput.scopeId,oauthClientId:e.sourceInput.scopeOauthClientId,providerKey:r[0].setupConfig.providerKey,localScopeState:e.localScopeState});if(n===null)return yield*Ne("sources/source-auth-service",`Scope OAuth client not found: ${e.sourceInput.scopeOauthClientId}`);let o=yield*h2e({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,scopeId:e.sourceInput.scopeId,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:e.sourceInput.baseUrl,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeOauthClient:n,targets:r,localScopeState:e.localScopeState});return o.kind==="connected"?{results:o.sources.map(i=>({source:i,status:"connected"})),providerOauthSession:null}:{results:o.sources.map(i=>({source:i,status:"pending_oauth"})),providerOauthSession:{sessionId:o.sessionId,authorizationUrl:o.authorizationUrl,sourceIds:o.sources.map(i=>i.id)}}}),YTt=(e,t)=>{let r=o=>Me.succeed(o),n=o=>Me.succeed(o);return{getSourceById:({scopeId:o,sourceId:i,actorScopeId:a})=>t(e.sourceStore.loadSourceById({scopeId:o,sourceId:i,actorScopeId:a})),addExecutorSource:(o,i=void 0)=>t((LTt(o)?QTt({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,sourceInput:o,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,resolveSecretMaterial:e.resolveSecretMaterial,getLocalServerBaseUrl:e.getLocalServerBaseUrl,baseUrl:i?.baseUrl,localScopeState:e.localScopeState}):$Tt(o)?WTt({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,sourceInput:o,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,resolveSecretMaterial:e.resolveSecretMaterial,getLocalServerBaseUrl:e.getLocalServerBaseUrl,baseUrl:i?.baseUrl,localScopeState:e.localScopeState}):MTt(o)?XDe({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeId:o.scopeId,actorScopeId:o.actorScopeId,executionId:o.executionId,interactionId:o.interactionId,endpoint:o.endpoint,name:o.name,namespace:o.namespace,transport:o.transport,queryParams:o.queryParams,headers:o.headers,command:o.command,args:o.args,env:o.env,cwd:o.cwd,mcpDiscoveryElicitation:i?.mcpDiscoveryElicitation,baseUrl:i?.baseUrl,resolveSecretMaterial:e.resolveSecretMaterial}):Me.fail(Ne("sources/source-auth-service",`Unsupported executor source input: ${JSON.stringify(o)}`))).pipe(Me.flatMap(r))),connectGoogleDiscoveryBatch:o=>t(XTt({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,sourceInput:o,getLocalServerBaseUrl:e.getLocalServerBaseUrl,localScopeState:e.localScopeState})),connectMcpSource:o=>t(XDe({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeId:o.scopeId,actorScopeId:o.actorScopeId,sourceId:o.sourceId,executionId:null,interactionId:null,endpoint:o.endpoint,name:o.name,namespace:o.namespace,enabled:o.enabled,transport:o.transport,queryParams:o.queryParams,headers:o.headers,command:o.command,args:o.args,env:o.env,cwd:o.cwd,baseUrl:o.baseUrl,resolveSecretMaterial:e.resolveSecretMaterial}).pipe(Me.flatMap(n))),listScopeOauthClients:({scopeId:o,providerKey:i})=>t(Me.gen(function*(){let a=HQ({scopeId:o,localScopeState:e.localScopeState}),s=new Map;for(let c of a){let p=yield*e.executorState.scopeOauthClients.listByScopeAndProvider({scopeId:c,providerKey:i});for(let d of p)s.has(d.id)||s.set(d.id,d)}return[...s.values()]})),createScopeOauthClient:({scopeId:o,providerKey:i,label:a,oauthClient:s})=>t(Me.gen(function*(){let c=aQ(i),p=yield*_2e({executorState:e.executorState,scopeId:o,providerKey:i,oauthClient:s,label:a,normalizeOauthClient:c?.normalizeOauthClientInput,storeSecretMaterial:e.storeSecretMaterial}),d=yield*e.executorState.scopeOauthClients.getById(p.id);return Ei.isNone(d)?yield*Ne("sources/source-auth-service",`Scope OAuth client ${p.id} was not persisted`):d.value})),removeScopeOauthClient:({scopeId:o,oauthClientId:i})=>t(Me.gen(function*(){let a=yield*e.executorState.scopeOauthClients.getById(i);if(Ei.isNone(a)||a.value.scopeId!==o)return!1;let c=(yield*e.executorState.providerAuthGrants.listByScopeId(o)).find(f=>f.oauthClientId===i);if(c)return yield*Ne("sources/source-auth-service",`Scope OAuth client ${i} is still referenced by provider grant ${c.id}`);let p=RF(a.value),d=yield*e.executorState.scopeOauthClients.removeById(i);return d&&p&&(yield*e.deleteSecretMaterial(p).pipe(Me.either,Me.ignore)),d})),removeProviderAuthGrant:({scopeId:o,grantId:i})=>t(ZTt({executorState:e.executorState,sourceStore:e.sourceStore,scopeId:o,grantId:i,deleteSecretMaterial:e.deleteSecretMaterial}))}},eDt=(e,t)=>({startSourceOAuthSession:r=>Me.gen(function*(){let n=lr(r.baseUrl)??e.getLocalServerBaseUrl?.()??null;if(!n)return yield*Ne("sources/source-auth-service","Local executor server base URL is unavailable for OAuth setup");let o=xm.make(`src_auth_${crypto.randomUUID()}`),i=ITt({displayName:r.displayName}),a=TTt({baseUrl:n}),s=xf(r.provider.endpoint),c=yield*LT({endpoint:s,redirectUrl:a,state:i}),p=Date.now();return yield*e.executorState.sourceAuthSessions.upsert({id:o,scopeId:r.scopeId,sourceId:Mn.make(`oauth_draft_${crypto.randomUUID()}`),actorScopeId:r.actorScopeId??null,credentialSlot:"runtime",executionId:null,interactionId:null,providerKind:"mcp_oauth",status:"pending",state:i,sessionDataJson:JQ({kind:"mcp_oauth",endpoint:s,redirectUri:a,scope:r.provider.kind,resourceMetadataUrl:c.resourceMetadataUrl,authorizationServerUrl:c.authorizationServerUrl,resourceMetadata:c.resourceMetadata,authorizationServerMetadata:c.authorizationServerMetadata,clientInformation:c.clientInformation,codeVerifier:c.codeVerifier,authorizationUrl:c.authorizationUrl}),errorText:null,completedAt:null,createdAt:p,updatedAt:p}),{sessionId:o,authorizationUrl:c.authorizationUrl}}),completeSourceOAuthSession:({state:r,code:n,error:o,errorDescription:i})=>t(Me.gen(function*(){let a=yield*e.executorState.sourceAuthSessions.getByState(r);if(Ei.isNone(a))return yield*Ne("sources/source-auth-service",`Source auth session not found for state ${r}`);let s=a.value,c=NF(s);if(s.status==="completed")return yield*Ne("sources/source-auth-service",`Source auth session ${s.id} is already completed`);if(s.status!=="pending")return yield*Ne("sources/source-auth-service",`Source auth session ${s.id} is not pending`);if(lr(o)!==null){let S=lr(i)??lr(o)??"OAuth authorization failed",x=Date.now();return yield*e.executorState.sourceAuthSessions.update(s.id,ES({sessionDataJson:s.sessionDataJson,status:"failed",now:x,errorText:S})),yield*Ne("sources/source-auth-service",S)}let p=lr(n);if(p===null)return yield*Ne("sources/source-auth-service","Missing OAuth authorization code");if(c.codeVerifier===null)return yield*Ne("sources/source-auth-service","OAuth session is missing the PKCE code verifier");if(c.scope!==null&&c.scope!=="mcp")return yield*Ne("sources/source-auth-service",`Unsupported OAuth provider: ${c.scope}`);let d=yield*EB({session:{endpoint:c.endpoint,redirectUrl:c.redirectUri,codeVerifier:c.codeVerifier,resourceMetadataUrl:c.resourceMetadataUrl,authorizationServerUrl:c.authorizationServerUrl,resourceMetadata:c.resourceMetadata,authorizationServerMetadata:c.authorizationServerMetadata,clientInformation:c.clientInformation},code:p}),f=HDe({displayName:kTt(s.state),endpoint:c.endpoint}),m=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:d.tokens.access_token,name:f}),y=d.tokens.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:d.tokens.refresh_token,name:`${f} Refresh`}):null,g={kind:"oauth2",headerName:"Authorization",prefix:"Bearer ",accessToken:m,refreshToken:y};return yield*e.executorState.sourceAuthSessions.update(s.id,ES({sessionDataJson:ZDe({session:s,patch:{codeVerifier:null,authorizationUrl:null,resourceMetadataUrl:d.resourceMetadataUrl,authorizationServerUrl:d.authorizationServerUrl,resourceMetadata:d.resourceMetadata,authorizationServerMetadata:d.authorizationServerMetadata}}),status:"completed",now:Date.now(),errorText:null})),{sessionId:s.id,auth:g}})),completeProviderOauthCallback:({scopeId:r,actorScopeId:n,state:o,code:i,error:a,errorDescription:s})=>t(Me.gen(function*(){let c=yield*e.executorState.sourceAuthSessions.getByState(o);if(Ei.isNone(c))return yield*Ne("sources/source-auth-service",`Source auth session not found for state ${o}`);let p=c.value;if(p.scopeId!==r)return yield*Ne("sources/source-auth-service",`Source auth session ${p.id} does not match scopeId=${r}`);if((p.actorScopeId??null)!==(n??null))return yield*Ne("sources/source-auth-service",`Source auth session ${p.id} does not match the active account`);if(p.providerKind!=="oauth2_provider_batch")return yield*Ne("sources/source-auth-service",`Source auth session ${p.id} is not a provider batch OAuth session`);if(p.status==="completed"){let F=UQ(p),O=yield*Me.forEach(F.targetSources,$=>e.sourceStore.loadSourceById({scopeId:r,sourceId:$.sourceId,actorScopeId:n}),{discard:!1});return{sessionId:p.id,sources:O}}if(p.status!=="pending")return yield*Ne("sources/source-auth-service",`Source auth session ${p.id} is not pending`);let d=UQ(p);if(lr(a)!==null){let F=lr(s)??lr(a)??"OAuth authorization failed";return yield*e.executorState.sourceAuthSessions.update(p.id,ES({sessionDataJson:p.sessionDataJson,status:"failed",now:Date.now(),errorText:F})),yield*Ne("sources/source-auth-service",F)}let f=lr(i);if(f===null)return yield*Ne("sources/source-auth-service","Missing OAuth authorization code");if(d.codeVerifier===null)return yield*Ne("sources/source-auth-service","OAuth session is missing the PKCE code verifier");let m=yield*GQ({executorState:e.executorState,scopeId:r,oauthClientId:d.oauthClientId,providerKey:d.providerKey,localScopeState:e.localScopeState});if(m===null)return yield*Ne("sources/source-auth-service",`Scope OAuth client not found: ${d.oauthClientId}`);let y=null;m.clientSecret&&(y=yield*e.resolveSecretMaterial({ref:m.clientSecret}));let g=yield*eq({tokenEndpoint:d.tokenEndpoint,clientId:m.clientId,clientAuthentication:d.clientAuthentication,clientSecret:y,redirectUri:d.redirectUri,codeVerifier:d.codeVerifier??"",code:f}),x=(yield*e.executorState.providerAuthGrants.listByScopeActorAndProvider({scopeId:r,actorScopeId:n??null,providerKey:d.providerKey})).find(F=>F.oauthClientId===d.oauthClientId)??null,A=Ef(lr(g.scope)?g.scope.split(/\s+/):d.scopes),I=yield*GTt({executorState:e.executorState,scopeId:r,actorScopeId:n,providerKey:d.providerKey,oauthClientId:d.oauthClientId,tokenEndpoint:d.tokenEndpoint,clientAuthentication:d.clientAuthentication,headerName:d.headerName,prefix:d.prefix,grantedScopes:A,refreshToken:lr(g.refresh_token),existingGrant:x,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial}),E=yield*Me.forEach(d.targetSources,F=>Me.map(e.sourceStore.loadSourceById({scopeId:r,sourceId:F.sourceId,actorScopeId:n}),O=>({source:O,requiredScopes:F.requiredScopes})),{discard:!1}),C=yield*y2e({sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,actorScopeId:n,grantId:I.id,providerKey:I.providerKey,headerName:I.headerName,prefix:I.prefix,targets:E});return yield*e.executorState.sourceAuthSessions.update(p.id,ES({sessionDataJson:RTt({session:p,patch:{codeVerifier:null,authorizationUrl:null}}),status:"completed",now:Date.now(),errorText:null})),{sessionId:p.id,sources:C}})),completeSourceCredentialSetup:({scopeId:r,sourceId:n,actorScopeId:o,state:i,code:a,error:s,errorDescription:c})=>t(Me.gen(function*(){let p=yield*e.executorState.sourceAuthSessions.getByState(i);if(Ei.isNone(p))return yield*Ne("sources/source-auth-service",`Source auth session not found for state ${i}`);let d=p.value;if(d.scopeId!==r||d.sourceId!==n)return yield*Ne("sources/source-auth-service",`Source auth session ${d.id} does not match scopeId=${r} sourceId=${n}`);if(o!==void 0&&(d.actorScopeId??null)!==(o??null))return yield*Ne("sources/source-auth-service",`Source auth session ${d.id} does not match the active account`);let f=yield*e.sourceStore.loadSourceById({scopeId:d.scopeId,sourceId:d.sourceId,actorScopeId:d.actorScopeId});if(d.status==="completed")return{sessionId:d.id,source:f};if(d.status!=="pending")return yield*Ne("sources/source-auth-service",`Source auth session ${d.id} is not pending`);let m=d.providerKind==="oauth2_pkce"?qQ(d):NF(d);if(lr(s)!==null){let A=lr(c)??lr(s)??"OAuth authorization failed",I=Date.now();yield*e.executorState.sourceAuthSessions.update(d.id,ES({sessionDataJson:d.sessionDataJson,status:"failed",now:I,errorText:A}));let E=yield*aa(e.sourceStore,f,{actorScopeId:d.actorScopeId,status:"error",lastError:A});return yield*e.sourceCatalogSync.sync({source:E,actorScopeId:d.actorScopeId}),yield*WDe({executorState:e.executorState,liveExecutionManager:e.liveExecutionManager,session:d,response:{action:"cancel",reason:A}}),yield*Ne("sources/source-auth-service",A)}let y=lr(a);if(y===null)return yield*Ne("sources/source-auth-service","Missing OAuth authorization code");if(m.codeVerifier===null)return yield*Ne("sources/source-auth-service","OAuth session is missing the PKCE code verifier");let g=Date.now(),S;if(d.providerKind==="oauth2_pkce"){let A=qQ(d),I=null;A.clientSecret&&(I=yield*e.resolveSecretMaterial({ref:A.clientSecret}));let E=yield*eq({tokenEndpoint:A.tokenEndpoint,clientId:A.clientId,clientAuthentication:A.clientAuthentication,clientSecret:I,redirectUri:A.redirectUri,codeVerifier:A.codeVerifier??"",code:y}),C=lr(E.refresh_token);if(C===null)return yield*Ne("sources/source-auth-service","OAuth authorization did not return a refresh token");let F=yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:C,name:`${f.name} Refresh`}),O=lr(E.scope)?E.scope.split(/\s+/).filter(N=>N.length>0):[...A.scopes];S=yield*aa(e.sourceStore,f,{actorScopeId:d.actorScopeId,status:"connected",lastError:null,auth:{kind:"oauth2_authorized_user",headerName:A.headerName,prefix:A.prefix,tokenEndpoint:A.tokenEndpoint,clientId:A.clientId,clientAuthentication:A.clientAuthentication,clientSecret:A.clientSecret,refreshToken:F,grantSet:O}});let $=yield*e.executorState.authArtifacts.getByScopeSourceAndActor({scopeId:S.scopeId,sourceId:S.id,actorScopeId:d.actorScopeId??null,slot:"runtime"});Ei.isSome($)&&(yield*ele({executorState:e.executorState,artifact:$.value,tokenResponse:E,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial})),yield*e.executorState.sourceAuthSessions.update(d.id,ES({sessionDataJson:NTt({session:d,patch:{codeVerifier:null,authorizationUrl:null}}),status:"completed",now:g,errorText:null}))}else{let A=NF(d),I=yield*EB({session:{endpoint:A.endpoint,redirectUrl:A.redirectUri,codeVerifier:A.codeVerifier??"",resourceMetadataUrl:A.resourceMetadataUrl,authorizationServerUrl:A.authorizationServerUrl,resourceMetadata:A.resourceMetadata,authorizationServerMetadata:A.authorizationServerMetadata,clientInformation:A.clientInformation},code:y}),E=HDe({displayName:f.name,endpoint:f.endpoint}),C=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:I.tokens.access_token,name:E}),F=I.tokens.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:I.tokens.refresh_token,name:`${E} Refresh`}):null;S=yield*aa(e.sourceStore,f,{actorScopeId:d.actorScopeId,status:"connected",lastError:null,auth:Qce({redirectUri:A.redirectUri,accessToken:C,refreshToken:F,tokenType:I.tokens.token_type,expiresIn:typeof I.tokens.expires_in=="number"&&Number.isFinite(I.tokens.expires_in)?I.tokens.expires_in:null,scope:I.tokens.scope??null,resourceMetadataUrl:I.resourceMetadataUrl,authorizationServerUrl:I.authorizationServerUrl,resourceMetadata:I.resourceMetadata,authorizationServerMetadata:I.authorizationServerMetadata,clientInformation:I.clientInformation})}),yield*e.executorState.sourceAuthSessions.update(d.id,ES({sessionDataJson:ZDe({session:d,patch:{codeVerifier:null,authorizationUrl:null,resourceMetadataUrl:I.resourceMetadataUrl,authorizationServerUrl:I.authorizationServerUrl,resourceMetadata:I.resourceMetadata,authorizationServerMetadata:I.authorizationServerMetadata}}),status:"completed",now:g,errorText:null}))}let x=yield*Me.either(e.sourceCatalogSync.sync({source:S,actorScopeId:d.actorScopeId}));return yield*Cd.match(x,{onLeft:A=>aa(e.sourceStore,S,{actorScopeId:d.actorScopeId,status:"error",lastError:A.message}).pipe(Me.zipRight(Me.fail(A))),onRight:()=>Me.succeed(void 0)}),yield*WDe({executorState:e.executorState,liveExecutionManager:e.liveExecutionManager,session:d,response:{action:"accept"}}),{sessionId:d.id,source:S}}))}),tDt=e=>{let t=o=>ch(o,e.localScopeState),r=YTt(e,t),n=eDt(e,t);return{getLocalServerBaseUrl:()=>e.getLocalServerBaseUrl?.()??null,storeSecretMaterial:({purpose:o,value:i})=>e.storeSecretMaterial({purpose:o,value:i}),...r,...n}},ip=class extends YDe.Tag("#runtime/RuntimeSourceAuthServiceTag")(){},g2e=(e={})=>e2e.effect(ip,Me.gen(function*(){let t=yield*Wn,r=yield*Xc,n=yield*Qo,o=yield*eu,i=yield*Ol,a=yield*Ys,s=yield*as,c=yield*lh();return tDt({executorState:t,liveExecutionManager:r,sourceStore:n,sourceCatalogSync:o,resolveSecretMaterial:i,storeSecretMaterial:a,deleteSecretMaterial:s,getLocalServerBaseUrl:e.getLocalServerBaseUrl,localScopeState:c??void 0})})),GZt=Fn.Union(Fn.Struct({kind:Fn.Literal("connected"),source:Up}),Fn.Struct({kind:Fn.Literal("credential_required"),source:Up,credentialSlot:Fn.Literal("runtime","import")}),Fn.Struct({kind:Fn.Literal("oauth_required"),source:Up,sessionId:xm,authorizationUrl:Fn.String}));import*as S2e from"effect/Context";import*as LF from"effect/Effect";import*as v2e from"effect/Layer";var Tf=class extends S2e.Tag("#runtime/LocalToolRuntimeLoaderService")(){},ZZt=v2e.effect(Tf,LF.succeed(Tf.of({load:()=>LF.die(new Error("LocalToolRuntimeLoaderLive is unsupported; provide a bound local tool runtime loader from the host adapter."))})));var rDt=()=>({tools:{},catalog:e_({tools:{}}),toolInvoker:Yd({tools:{}}),toolPaths:new Set}),nDt=e=>({scopeId:t,actorScopeId:r,onElicitation:n})=>gw.gen(function*(){let o=yield*lh(),i=o===null?null:yield*e.scopeConfigStore.load(),a=o===null?rDt():yield*e.localToolRuntimeLoader.load(),{catalog:s,toolInvoker:c}=JDe({scopeId:t,actorScopeId:r,executorStateStore:e.executorStateStore,sourceStore:e.sourceStore,sourceCatalogSyncService:e.sourceCatalogSyncService,sourceCatalogStore:e.sourceCatalogStore,installationStore:e.installationStore,instanceConfigResolver:e.instanceConfigResolver,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,updateSecretMaterial:e.updateSecretMaterial,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,sourceAuthMaterialService:e.sourceAuthMaterialService,sourceAuthService:e.sourceAuthService,runtimeLocalScope:o,localToolRuntime:a,createInternalToolMap:e.createInternalToolMap,onElicitation:n});return{executor:yield*gw.promise(()=>DQ(TQ(i?.config),e.customCodeExecutor)),toolInvoker:c,catalog:s}}),Zh=class extends b2e.Tag("#runtime/RuntimeExecutionResolverService")(){},x2e=(e={})=>e.executionResolver?$F.succeed(Zh,e.executionResolver):$F.effect(Zh,gw.gen(function*(){let t=yield*Wn,r=yield*Qo,n=yield*eu,o=yield*Pm,i=yield*ip,a=yield*Vh,s=yield*Tf,c=yield*qg,p=yield*Kp,d=yield*Ys,f=yield*as,m=yield*Jp,y=yield*Kc,g=yield*$a,S=yield*Ma;return nDt({executorStateStore:t,sourceStore:r,sourceCatalogSyncService:n,sourceAuthService:i,sourceAuthMaterialService:o,sourceCatalogStore:a,localToolRuntimeLoader:s,installationStore:c,instanceConfigResolver:p,storeSecretMaterial:d,deleteSecretMaterial:f,updateSecretMaterial:m,scopeConfigStore:y,scopeStateStore:g,sourceArtifactStore:S,createInternalToolMap:e.createInternalToolMap,customCodeExecutor:e.customCodeExecutor})}));import*as T2e from"effect/Data";var E2e=class extends T2e.TaggedError("ResumeUnsupportedError"){};import*as qa from"effect/Effect";var MF={bundle:Oo("sources.inspect.bundle"),tool:Oo("sources.inspect.tool"),discover:Oo("sources.inspect.discover")},cb=e=>e.trim().toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),oDt=e=>e.status==="draft"||e.status==="probing"||e.status==="auth_required",iDt=e=>qa.gen(function*(){let r=yield*(yield*Qo).loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId});return oDt(r)?r:yield*e.cause}),A2e=e=>lDe({scopeId:e.scopeId,sourceId:e.sourceId}).pipe(qa.map(t=>({kind:"catalog",catalogEntry:t})),qa.catchTag("LocalSourceArtifactMissingError",t=>qa.gen(function*(){return{kind:"empty",source:yield*iDt({scopeId:e.scopeId,sourceId:e.sourceId,cause:t})}}))),WQ=e=>{let t=e.executable.display??{};return{protocol:t.protocol??e.executable.adapterKey,method:t.method??null,pathTemplate:t.pathTemplate??null,rawToolId:t.rawToolId??e.path.split(".").at(-1)??null,operationId:t.operationId??null,group:t.group??null,leaf:t.leaf??e.path.split(".").at(-1)??null,tags:e.capability.surface.tags??[]}},aDt=e=>({path:e.path,method:WQ(e).method,...e.descriptor.contract?.inputTypePreview?{inputTypePreview:e.descriptor.contract.inputTypePreview}:{},...e.descriptor.contract?.outputTypePreview?{outputTypePreview:e.descriptor.contract.outputTypePreview}:{}}),w2e=e=>{let t=WQ(e);return{path:e.path,sourceKey:e.source.id,...e.capability.surface.title?{title:e.capability.surface.title}:{},...e.capability.surface.summary||e.capability.surface.description?{description:e.capability.surface.summary??e.capability.surface.description}:{},protocol:t.protocol,toolId:e.path.split(".").at(-1)??e.path,rawToolId:t.rawToolId,operationId:t.operationId,group:t.group,leaf:t.leaf,tags:[...t.tags],method:t.method,pathTemplate:t.pathTemplate,...e.descriptor.contract?.inputTypePreview?{inputTypePreview:e.descriptor.contract.inputTypePreview}:{},...e.descriptor.contract?.outputTypePreview?{outputTypePreview:e.descriptor.contract.outputTypePreview}:{}}},D2e=e=>e==="graphql"||e==="yaml"||e==="json"||e==="text"?e:"json",ZQ=(e,t)=>t==null?null:{kind:"code",title:e,language:"json",body:JSON.stringify(t,null,2)},sDt=e=>qa.gen(function*(){let t=w2e(e),r=WQ(e),n=yield*uDe(e),o=[{label:"Protocol",value:r.protocol},...r.method?[{label:"Method",value:r.method,mono:!0}]:[],...r.pathTemplate?[{label:"Target",value:r.pathTemplate,mono:!0}]:[],...r.operationId?[{label:"Operation",value:r.operationId,mono:!0}]:[],...r.group?[{label:"Group",value:r.group,mono:!0}]:[],...r.leaf?[{label:"Leaf",value:r.leaf,mono:!0}]:[],...r.rawToolId?[{label:"Raw tool",value:r.rawToolId,mono:!0}]:[],{label:"Signature",value:n.callSignature,mono:!0},{label:"Call shape",value:n.callShapeId,mono:!0},...n.resultShapeId?[{label:"Result shape",value:n.resultShapeId,mono:!0}]:[],{label:"Response set",value:n.responseSetId,mono:!0}],i=[...(e.capability.native??[]).map((s,c)=>({kind:"code",title:`Capability native ${String(c+1)}: ${s.kind}`,language:D2e(s.encoding),body:typeof s.value=="string"?s.value:JSON.stringify(s.value??null,null,2)})),...(e.executable.native??[]).map((s,c)=>({kind:"code",title:`Executable native ${String(c+1)}: ${s.kind}`,language:D2e(s.encoding),body:typeof s.value=="string"?s.value:JSON.stringify(s.value??null,null,2)}))],a=[{kind:"facts",title:"Overview",items:o},...t.description?[{kind:"markdown",title:"Description",body:t.description}]:[],...[ZQ("Capability",e.capability),ZQ("Executable",{id:e.executable.id,adapterKey:e.executable.adapterKey,bindingVersion:e.executable.bindingVersion,binding:e.executable.binding,projection:e.executable.projection,display:e.executable.display??null}),ZQ("Documentation",{summary:e.capability.surface.summary,description:e.capability.surface.description})].filter(s=>s!==null),...i];return{summary:t,contract:n,sections:a}}),I2e=e=>qa.gen(function*(){let t=yield*A2e({scopeId:e.scopeId,sourceId:e.sourceId});if(t.kind==="empty")return{source:t.source,namespace:t.source.namespace??"",pipelineKind:"ir",tools:[]};let r=yield*SQ({catalogs:[t.catalogEntry],includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews});return{source:t.catalogEntry.source,namespace:t.catalogEntry.source.namespace??"",pipelineKind:"ir",tools:r}}),cDt=e=>qa.gen(function*(){let t=yield*A2e({scopeId:e.scopeId,sourceId:e.sourceId});if(t.kind==="empty")return{source:t.source,namespace:t.source.namespace??"",pipelineKind:"ir",tool:null};let r=yield*vQ({catalogs:[t.catalogEntry],path:e.toolPath,includeSchemas:!0,includeTypePreviews:!1});return{source:t.catalogEntry.source,namespace:t.catalogEntry.source.namespace??"",pipelineKind:"ir",tool:r}}),lDt=e=>{let t=0,r=[],n=w2e(e.tool),o=cb(n.path),i=cb(n.title??""),a=cb(n.description??""),s=n.tags.flatMap(cb),c=cb(`${n.method??""} ${n.pathTemplate??""}`);for(let p of e.queryTokens){if(o.includes(p)){t+=12,r.push(`path matches ${p} (+12)`);continue}if(s.includes(p)){t+=10,r.push(`tag matches ${p} (+10)`);continue}if(i.includes(p)){t+=8,r.push(`title matches ${p} (+8)`);continue}if(c.includes(p)){t+=6,r.push(`method/path matches ${p} (+6)`);continue}(a.includes(p)||e.tool.searchText.includes(p))&&(t+=2,r.push(`description/text matches ${p} (+2)`))}return t<=0?null:{path:e.tool.path,score:t,...n.description?{description:n.description}:{},...n.inputTypePreview?{inputTypePreview:n.inputTypePreview}:{},...n.outputTypePreview?{outputTypePreview:n.outputTypePreview}:{},reasons:r}},QQ=(e,t,r)=>t instanceof bf||t instanceof Gh?t:e.unknownStorage(t,r),k2e=e=>qa.gen(function*(){let t=yield*I2e({...e,includeSchemas:!1,includeTypePreviews:!1});return{source:t.source,namespace:t.namespace,pipelineKind:t.pipelineKind,toolCount:t.tools.length,tools:t.tools.map(r=>aDt(r))}}).pipe(qa.mapError(t=>QQ(MF.bundle,t,"Failed building source inspection bundle"))),C2e=e=>qa.gen(function*(){let r=(yield*cDt({scopeId:e.scopeId,sourceId:e.sourceId,toolPath:e.toolPath})).tool;return r?yield*sDt(r):yield*MF.tool.notFound("Tool not found",`scopeId=${e.scopeId} sourceId=${e.sourceId} path=${e.toolPath}`)}).pipe(qa.mapError(t=>QQ(MF.tool,t,"Failed building source inspection tool detail"))),P2e=e=>qa.gen(function*(){let t=yield*I2e({scopeId:e.scopeId,sourceId:e.sourceId,includeSchemas:!1,includeTypePreviews:!1}),r=cb(e.payload.query),n=t.tools.map(o=>lDt({queryTokens:r,tool:o})).filter(o=>o!==null).sort((o,i)=>i.score-o.score||o.path.localeCompare(i.path)).slice(0,e.payload.limit??12);return{query:e.payload.query,queryTokens:r,bestPath:n[0]?.path??null,total:n.length,results:n}}).pipe(qa.mapError(t=>QQ(MF.discover,t,"Failed building source inspection discovery")));import*as jF from"effect/Effect";var uDt=mF,pDt=uDt.filter(e=>e.detectSource!==void 0),O2e=e=>jF.gen(function*(){let t=yield*jF.try({try:()=>Wae(e.url),catch:o=>o instanceof Error?o:new Error(String(o))}),r=Xae(e.probeAuth),n=[...pDt].sort((o,i)=>(i.discoveryPriority?.({normalizedUrl:t})??0)-(o.discoveryPriority?.({normalizedUrl:t})??0));for(let o of n){let i=yield*o.detectSource({normalizedUrl:t,headers:r});if(i)return i}return ese(t)});import*as N2e from"effect/Data";import*as F2e from"effect/Deferred";import*as Lr from"effect/Effect";import*as Ua from"effect/Option";import*as hc from"effect/Schema";var ap={create:Oo("executions.create"),get:Oo("executions.get"),resume:Oo("executions.resume")},XQ="__EXECUTION_SUSPENDED__",R2e="detach",lb=e=>e===void 0?null:JSON.stringify(e),dDt=e=>JSON.stringify(e===void 0?null:e),_Dt=e=>{if(e!==null)return JSON.parse(e)},fDt=hc.Literal("accept","decline","cancel"),mDt=hc.Struct({action:fDt,content:hc.optional(hc.Record({key:hc.String,value:hc.Unknown}))}),L2e=hc.decodeUnknown(mDt),hDt=e=>{let t=0;return{invoke:({path:r,args:n,context:o})=>(t+=1,e.toolInvoker.invoke({path:r,args:n,context:{...o,runId:e.executionId,callId:typeof o?.callId=="string"&&o.callId.length>0?o.callId:`call_${String(t)}`,executionStepSequence:t}}))}},YQ=e=>{let t=e?.executionStepSequence;return typeof t=="number"&&Number.isSafeInteger(t)&&t>0?t:null},yDt=(e,t)=>V6.make(`${e}:step:${String(t)}`),$2e=e=>{let t=typeof e.context?.callId=="string"&&e.context.callId.length>0?e.context.callId:null;return t===null?e.interactionId:`${t}:${e.path}`},gDt=e=>Is.make(`${e.executionId}:${$2e(e)}`),M2e=e=>e==="live"||e==="live_form"?e:R2e,BF=class extends N2e.TaggedError("ExecutionSuspendedError"){},SDt=e=>new BF({executionId:e.executionId,interactionId:e.interactionId,message:`${XQ}:${e.executionId}:${e.interactionId}`}),j2e=e=>e instanceof BF?!0:e instanceof Error?e.message.includes(XQ):typeof e=="string"&&e.includes(XQ),B2e=e=>Lr.try({try:()=>{if(e.responseJson===null)throw new Error(`Interaction ${e.interactionId} has no stored response`);return JSON.parse(e.responseJson)},catch:t=>t instanceof Error?t:new Error(String(t))}).pipe(Lr.flatMap(t=>L2e(t).pipe(Lr.mapError(r=>new Error(String(r)))))),vDt=e=>{if(!(e.expectedPath===e.actualPath&&e.expectedArgsJson===e.actualArgsJson))throw new Error([`Durable execution mismatch for ${e.executionId} at tool step ${String(e.sequence)}.`,`Expected ${e.expectedPath}(${e.expectedArgsJson}) but replay reached ${e.actualPath}(${e.actualArgsJson}).`].join(" "))},bDt=(e,t)=>Lr.gen(function*(){let r=hw(t.operation),n=yield*r.mapStorage(e.executions.getByScopeAndId(t.scopeId,t.executionId));return Ua.isNone(n)?yield*r.notFound("Execution not found",`scopeId=${t.scopeId} executionId=${t.executionId}`):n.value}),qF=(e,t)=>Lr.gen(function*(){let r=hw(t.operation),n=yield*bDt(e,t),o=yield*r.child("pending_interaction").mapStorage(e.executionInteractions.getPendingByExecutionId(t.executionId));return{execution:n,pendingInteraction:Ua.isSome(o)?o.value:null}}),q2e=(e,t)=>Lr.gen(function*(){let r=yield*qF(e,t);return r.execution.status!=="running"&&!(r.execution.status==="waiting_for_interaction"&&(r.pendingInteraction===null||r.pendingInteraction.id===t.previousPendingInteractionId))||t.attemptsRemaining<=0?r:(yield*Lr.promise(()=>new Promise(n=>setTimeout(n,25))),yield*q2e(e,{...t,attemptsRemaining:t.attemptsRemaining-1}))}),xDt=e=>Lr.gen(function*(){let t=Date.now(),r=yield*e.executorState.executionInteractions.getById(e.interactionId),n=YQ(e.request.context);return Ua.isSome(r)&&r.value.status!=="pending"?yield*B2e({interactionId:e.interactionId,responseJson:r.value.responsePrivateJson??r.value.responseJson}):(Ua.isNone(r)&&(yield*e.executorState.executionInteractions.insert({id:Is.make(e.interactionId),executionId:e.executionId,status:"pending",kind:e.request.elicitation.mode==="url"?"url":"form",purpose:"elicitation",payloadJson:lb({path:e.request.path,sourceKey:e.request.sourceKey,args:e.request.args,context:e.request.context,elicitation:e.request.elicitation})??"{}",responseJson:null,responsePrivateJson:null,createdAt:t,updatedAt:t})),n!==null&&(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,n,{status:"waiting",interactionId:Is.make(e.interactionId),updatedAt:t})),yield*e.executorState.executions.update(e.executionId,{status:"waiting_for_interaction",updatedAt:t}),yield*e.liveExecutionManager.publishState({executionId:e.executionId,state:"waiting_for_interaction"}),yield*SDt({executionId:e.executionId,interactionId:e.interactionId}))}),EDt=e=>{let t=e.liveExecutionManager.createOnElicitation({executorState:e.executorState,executionId:e.executionId});return r=>Lr.gen(function*(){let n=$2e({interactionId:r.interactionId,path:r.path,context:r.context}),o=gDt({executionId:e.executionId,interactionId:r.interactionId,path:r.path,context:r.context}),i=yield*e.executorState.executionInteractions.getById(o);if(Ua.isSome(i)&&i.value.status!=="pending")return yield*B2e({interactionId:o,responseJson:i.value.responsePrivateJson??i.value.responseJson});let a=e.interactionMode==="live"||e.interactionMode==="live_form"&&r.elicitation.mode!=="url";if(Ua.isNone(i)&&a){let s=YQ(r.context);return s!==null&&(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,s,{status:"waiting",interactionId:Is.make(o),updatedAt:Date.now()})),yield*t({...r,interactionId:n})}return yield*xDt({executorState:e.executorState,executionId:e.executionId,liveExecutionManager:e.liveExecutionManager,request:r,interactionId:o})})},TDt=e=>({invoke:({path:t,args:r,context:n})=>Lr.gen(function*(){let o=YQ(n);if(o===null)return yield*e.toolInvoker.invoke({path:t,args:r,context:n});let i=dDt(r),a=yield*e.executorState.executionSteps.getByExecutionAndSequence(e.executionId,o);if(Ua.isSome(a)){if(vDt({executionId:e.executionId,sequence:o,expectedPath:a.value.path,expectedArgsJson:a.value.argsJson,actualPath:t,actualArgsJson:i}),a.value.status==="completed")return _Dt(a.value.resultJson);if(a.value.status==="failed")return yield*Ne("execution/service",a.value.errorText??`Stored tool step ${String(o)} failed`)}else{let s=Date.now();yield*e.executorState.executionSteps.insert({id:yDt(e.executionId,o),executionId:e.executionId,sequence:o,kind:"tool_call",status:"pending",path:t,argsJson:i,resultJson:null,errorText:null,interactionId:null,createdAt:s,updatedAt:s})}try{let s=yield*e.toolInvoker.invoke({path:t,args:r,context:n}),c=Date.now();return yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,o,{status:"completed",resultJson:lb(s),errorText:null,updatedAt:c}),s}catch(s){let c=Date.now();return j2e(s)?(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,o,{status:"waiting",updatedAt:c}),yield*Lr.fail(s)):(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,o,{status:"failed",errorText:s instanceof Error?s.message:String(s),updatedAt:c}),yield*Lr.fail(s))}})}),DDt=e=>Lr.gen(function*(){if(j2e(e.outcome.error))return;if(e.outcome.error){let[n,o]=yield*Lr.all([e.executorState.executions.getById(e.executionId),e.executorState.executionInteractions.getPendingByExecutionId(e.executionId)]);if(Ua.isSome(n)&&n.value.status==="waiting_for_interaction"&&Ua.isSome(o))return}let t=Date.now(),r=yield*e.executorState.executions.update(e.executionId,{status:e.outcome.error?"failed":"completed",resultJson:lb(e.outcome.result),errorText:e.outcome.error??null,logsJson:lb(e.outcome.logs??null),completedAt:t,updatedAt:t});if(Ua.isNone(r)){yield*e.liveExecutionManager.clearRun(e.executionId);return}yield*e.liveExecutionManager.finishRun({executionId:e.executionId,state:r.value.status==="completed"?"completed":"failed"}),yield*e.executorState.executionSteps.deleteByExecutionId(e.executionId)}),ADt=e=>Lr.gen(function*(){let t=Date.now(),r=yield*e.executorState.executions.update(e.executionId,{status:"failed",errorText:e.error,completedAt:t,updatedAt:t});if(Ua.isNone(r)){yield*e.liveExecutionManager.clearRun(e.executionId);return}yield*e.liveExecutionManager.finishRun({executionId:e.executionId,state:"failed"}),yield*e.executorState.executionSteps.deleteByExecutionId(e.executionId)}),wDt=(e,t,r,n,o)=>t({scopeId:n.scopeId,actorScopeId:n.createdByScopeId,executionId:n.id,onElicitation:EDt({executorState:e,executionId:n.id,liveExecutionManager:r,interactionMode:o})}).pipe(Lr.map(i=>({executor:i.executor,toolInvoker:hDt({executionId:n.id,toolInvoker:TDt({executorState:e,executionId:n.id,toolInvoker:i.toolInvoker})})})),Lr.flatMap(({executor:i,toolInvoker:a})=>i.execute(n.code,a)),Lr.flatMap(i=>DDt({executorState:e,liveExecutionManager:r,executionId:n.id,outcome:i})),Lr.catchAll(i=>ADt({executorState:e,liveExecutionManager:r,executionId:n.id,error:i instanceof Error?i.message:String(i)}).pipe(Lr.catchAll(()=>r.clearRun(n.id))))),U2e=(e,t,r,n,o)=>Lr.gen(function*(){let i=yield*lh();yield*Lr.sync(()=>{let a=wDt(e,t,r,n,o);Lr.runFork(ch(a,i))})}),z2e=(e,t,r,n)=>Lr.gen(function*(){let o=yield*e.executions.getById(n.executionId);if(Ua.isNone(o))return!1;let i=yield*e.executionInteractions.getPendingByExecutionId(n.executionId);if(Ua.isNone(i)||o.value.status!=="waiting_for_interaction"&&o.value.status!=="failed")return!1;let a=Date.now(),c=[...yield*e.executionSteps.listByExecutionId(n.executionId)].reverse().find(d=>d.interactionId===i.value.id);c&&(yield*e.executionSteps.updateByExecutionAndSequence(n.executionId,c.sequence,{status:"waiting",errorText:null,updatedAt:a})),yield*e.executionInteractions.update(i.value.id,{status:n.response.action==="cancel"?"cancelled":"resolved",responseJson:lb(pw(n.response)),responsePrivateJson:lb(n.response),updatedAt:a});let p=yield*e.executions.update(n.executionId,{status:"running",updatedAt:a});return Ua.isNone(p)?!1:(yield*U2e(e,t,r,p.value,n.interactionMode),!0)}),IDt=(e,t,r,n)=>Lr.gen(function*(){let o=n.payload.code,i=Date.now(),a={id:Il.make(`exec_${crypto.randomUUID()}`),scopeId:n.scopeId,createdByScopeId:n.createdByScopeId,status:"pending",code:o,resultJson:null,errorText:null,logsJson:null,startedAt:null,completedAt:null,createdAt:i,updatedAt:i};yield*ap.create.child("insert").mapStorage(e.executions.insert(a));let s=yield*ap.create.child("mark_running").mapStorage(e.executions.update(a.id,{status:"running",startedAt:i,updatedAt:i}));if(Ua.isNone(s))return yield*ap.create.notFound("Execution not found after insert",`executionId=${a.id}`);let c=yield*r.registerStateWaiter(a.id);return yield*U2e(e,t,r,s.value,M2e(n.payload.interactionMode)),yield*F2e.await(c),yield*qF(e,{scopeId:n.scopeId,executionId:a.id,operation:ap.create})}),V2e=e=>Lr.gen(function*(){let t=yield*Wn,r=yield*Zh,n=yield*Xc;return yield*IDt(t,r,n,e)}),J2e=e=>Lr.flatMap(Wn,t=>qF(t,{scopeId:e.scopeId,executionId:e.executionId,operation:ap.get})),UF=e=>Lr.gen(function*(){let t=yield*Wn,r=yield*Zh,n=yield*Xc;return yield*z2e(t,r,n,{...e,interactionMode:e.interactionMode??R2e})}),K2e=e=>Lr.gen(function*(){let t=yield*Wn,r=yield*Zh,n=yield*Xc,o=yield*qF(t,{scopeId:e.scopeId,executionId:e.executionId,operation:"executions.resume"});if(o.execution.status!=="waiting_for_interaction"&&!(o.execution.status==="failed"&&o.pendingInteraction!==null))return yield*ap.resume.badRequest("Execution is not waiting for interaction",`executionId=${e.executionId} status=${o.execution.status}`);let i=e.payload.responseJson,a=i===void 0?{action:"accept"}:yield*Lr.try({try:()=>JSON.parse(i),catch:c=>ap.resume.badRequest("Invalid responseJson",c instanceof Error?c.message:String(c))}).pipe(Lr.flatMap(c=>L2e(c).pipe(Lr.mapError(p=>ap.resume.badRequest("Invalid responseJson",String(p))))));return!(yield*n.resolveInteraction({executionId:e.executionId,response:a}))&&!(yield*ap.resume.child("submit_interaction").mapStorage(z2e(t,r,n,{executionId:e.executionId,response:a,interactionMode:M2e(e.payload.interactionMode)})))?yield*ap.resume.badRequest("Resume is unavailable for this execution",`executionId=${e.executionId}`):yield*q2e(t,{scopeId:e.scopeId,executionId:e.executionId,operation:ap.resume,previousPendingInteractionId:o.pendingInteraction?.id??null,attemptsRemaining:400})});var kDt=e=>e instanceof Error?e.message:String(e),eX=e=>{let t=kDt(e);return new Error(`Failed initializing runtime: ${t}`)},CDt=e=>li.gen(function*(){yield*(yield*Vh).loadWorkspaceSourceCatalogToolIndex({scopeId:e.scopeId,actorScopeId:e.actorScopeId})}),PDt=()=>{let e={};return{tools:e,catalog:e_({tools:e}),toolInvoker:Yd({tools:e}),toolPaths:new Set}},ODt={refreshWorkspaceInBackground:()=>li.void,refreshSourceInBackground:()=>li.void},H2e=e=>({load:e.load,getOrProvision:e.getOrProvision}),Z2e=e=>({load:e.load,writeProject:({config:t})=>e.writeProject(t),resolveRelativePath:e.resolveRelativePath}),W2e=e=>({load:e.load,write:({state:t})=>e.write(t)}),Q2e=e=>({build:e.build,read:({sourceId:t})=>e.read(t),write:({sourceId:t,artifact:r})=>e.write({sourceId:t,artifact:r}),remove:({sourceId:t})=>e.remove(t)}),NDt=e=>Eo.mergeAll(Eo.succeed(Ol,e.resolve),Eo.succeed(Ys,e.store),Eo.succeed(as,e.delete),Eo.succeed(Jp,e.update)),FDt=e=>Eo.succeed(Kp,e.resolve),RDt=e=>({authArtifacts:e.auth.artifacts,authLeases:e.auth.leases,sourceOauthClients:e.auth.sourceOauthClients,scopeOauthClients:e.auth.scopeOauthClients,providerAuthGrants:e.auth.providerGrants,sourceAuthSessions:e.auth.sourceSessions,secretMaterials:e.secrets,executions:e.executions.runs,executionInteractions:e.executions.interactions,executionSteps:e.executions.steps}),LDt=e=>{let t=n2({installationStore:H2e(e.storage.installation),scopeConfigStore:Z2e(e.storage.scopeConfig),scopeStateStore:W2e(e.storage.scopeState),sourceArtifactStore:Q2e(e.storage.sourceArtifacts)}),r=Eo.succeed(Tf,Tf.of({load:()=>e.localToolRuntimeLoader?.load()??li.succeed(PDt())})),n=Eo.succeed(md,md.of(e.sourceTypeDeclarationsRefresher??ODt)),o=Eo.mergeAll(Eo.succeed(Wn,RDt(e.storage)),WV(e.localScopeState),t,Eo.succeed(Xc,e.liveExecutionManager),n),i=NDt(e.storage.secrets).pipe(Eo.provide(o)),a=FDt(e.instanceConfig),s=GTe.pipe(Eo.provide(Eo.mergeAll(o,i))),c=pDe.pipe(Eo.provide(Eo.mergeAll(o,s))),p=ole.pipe(Eo.provide(Eo.mergeAll(o,i))),d=mDe.pipe(Eo.provide(Eo.mergeAll(o,i,p))),f=g2e({getLocalServerBaseUrl:e.getLocalServerBaseUrl}).pipe(Eo.provide(Eo.mergeAll(o,a,i,s,d))),m=x2e({executionResolver:e.executionResolver,createInternalToolMap:e.createInternalToolMap,customCodeExecutor:e.customCodeExecutor}).pipe(Eo.provide(Eo.mergeAll(o,a,i,s,p,d,f,c,r)));return Eo.mergeAll(o,a,i,s,p,d,c,r,f,m)},X2e=(e,t)=>e.pipe(li.provide(t.managedRuntime)),Y2e=e=>li.gen(function*(){let t=yield*e.services.storage.installation.getOrProvision().pipe(li.mapError(eX)),r=yield*e.services.storage.scopeConfig.load().pipe(li.mapError(eX)),n={...e.services.scope,scopeId:t.scopeId,actorScopeId:e.services.scope.actorScopeId??t.actorScopeId,resolutionScopeIds:e.services.scope.resolutionScopeIds??t.resolutionScopeIds},o=yield*CDe({loadedConfig:r}).pipe(li.provide(n2({installationStore:H2e(e.services.storage.installation),scopeConfigStore:Z2e(e.services.storage.scopeConfig),scopeStateStore:W2e(e.services.storage.scopeState),sourceArtifactStore:Q2e(e.services.storage.sourceArtifacts)}))).pipe(li.mapError(eX)),i={scope:n,installation:t,loadedConfig:{...r,config:o}},a=EQ(),s=LDt({...e,...e.services,localScopeState:i,liveExecutionManager:a}),c=G2e.make(s);return yield*c.runtimeEffect,yield*hDe({scopeId:t.scopeId,actorScopeId:t.actorScopeId}).pipe(li.provide(c),li.catchAll(()=>li.void)),yield*CDt({scopeId:t.scopeId,actorScopeId:t.actorScopeId}).pipe(li.provide(c),li.catchAll(()=>li.void)),{storage:e.services.storage,localInstallation:t,managedRuntime:c,runtimeLayer:s,close:async()=>{await li.runPromise(dL()).catch(()=>{}),await c.dispose().catch(()=>{}),await e.services.storage.close?.().catch(()=>{})}}});var $Dt=e=>e instanceof Error?e:new Error(String(e)),_r=e=>Yc.isEffect(e)?e:e instanceof Promise?Yc.tryPromise({try:()=>e,catch:$Dt}):Yc.succeed(e),sa=e=>_r(e).pipe(Yc.map(t=>zF.isOption(t)?t:zF.fromNullable(t))),MDt=e=>({load:()=>_r(e.load()),getOrProvision:()=>_r(e.getOrProvision())}),jDt=e=>({load:()=>_r(e.load()),writeProject:t=>_r(e.writeProject(t)),resolveRelativePath:e.resolveRelativePath}),BDt=e=>({load:()=>_r(e.load()),write:t=>_r(e.write(t))}),qDt=e=>({build:e.build,read:t=>_r(e.read(t)),write:t=>_r(e.write(t)),remove:t=>_r(e.remove(t))}),UDt=e=>({resolve:()=>_r(e.resolve())}),zDt=e=>({load:()=>_r(e.load())}),VDt=e=>({refreshWorkspaceInBackground:t=>_r(e.refreshWorkspaceInBackground(t)).pipe(Yc.orDie),refreshSourceInBackground:t=>_r(e.refreshSourceInBackground(t)).pipe(Yc.orDie)}),JDt=e=>({artifacts:{listByScopeId:t=>_r(e.artifacts.listByScopeId(t)),listByScopeAndSourceId:t=>_r(e.artifacts.listByScopeAndSourceId(t)),getByScopeSourceAndActor:t=>sa(e.artifacts.getByScopeSourceAndActor(t)),upsert:t=>_r(e.artifacts.upsert(t)),removeByScopeSourceAndActor:t=>_r(e.artifacts.removeByScopeSourceAndActor(t)),removeByScopeAndSourceId:t=>_r(e.artifacts.removeByScopeAndSourceId(t))},leases:{listAll:()=>_r(e.leases.listAll()),getByAuthArtifactId:t=>sa(e.leases.getByAuthArtifactId(t)),upsert:t=>_r(e.leases.upsert(t)),removeByAuthArtifactId:t=>_r(e.leases.removeByAuthArtifactId(t))},sourceOauthClients:{getByScopeSourceAndProvider:t=>sa(e.sourceOauthClients.getByScopeSourceAndProvider(t)),upsert:t=>_r(e.sourceOauthClients.upsert(t)),removeByScopeAndSourceId:t=>_r(e.sourceOauthClients.removeByScopeAndSourceId(t))},scopeOauthClients:{listByScopeAndProvider:t=>_r(e.scopeOauthClients.listByScopeAndProvider(t)),getById:t=>sa(e.scopeOauthClients.getById(t)),upsert:t=>_r(e.scopeOauthClients.upsert(t)),removeById:t=>_r(e.scopeOauthClients.removeById(t))},providerGrants:{listByScopeId:t=>_r(e.providerGrants.listByScopeId(t)),listByScopeActorAndProvider:t=>_r(e.providerGrants.listByScopeActorAndProvider(t)),getById:t=>sa(e.providerGrants.getById(t)),upsert:t=>_r(e.providerGrants.upsert(t)),removeById:t=>_r(e.providerGrants.removeById(t))},sourceSessions:{listAll:()=>_r(e.sourceSessions.listAll()),listByScopeId:t=>_r(e.sourceSessions.listByScopeId(t)),getById:t=>sa(e.sourceSessions.getById(t)),getByState:t=>sa(e.sourceSessions.getByState(t)),getPendingByScopeSourceAndActor:t=>sa(e.sourceSessions.getPendingByScopeSourceAndActor(t)),insert:t=>_r(e.sourceSessions.insert(t)),update:(t,r)=>sa(e.sourceSessions.update(t,r)),upsert:t=>_r(e.sourceSessions.upsert(t)),removeByScopeAndSourceId:(t,r)=>_r(e.sourceSessions.removeByScopeAndSourceId(t,r))}}),KDt=e=>({getById:t=>sa(e.getById(t)),listAll:()=>_r(e.listAll()),upsert:t=>_r(e.upsert(t)),updateById:(t,r)=>sa(e.updateById(t,r)),removeById:t=>_r(e.removeById(t)),resolve:t=>_r(e.resolve(t)),store:t=>_r(e.store(t)),delete:t=>_r(e.delete(t)),update:t=>_r(e.update(t))}),GDt=e=>({runs:{getById:t=>sa(e.runs.getById(t)),getByScopeAndId:(t,r)=>sa(e.runs.getByScopeAndId(t,r)),insert:t=>_r(e.runs.insert(t)),update:(t,r)=>sa(e.runs.update(t,r))},interactions:{getById:t=>sa(e.interactions.getById(t)),listByExecutionId:t=>_r(e.interactions.listByExecutionId(t)),getPendingByExecutionId:t=>sa(e.interactions.getPendingByExecutionId(t)),insert:t=>_r(e.interactions.insert(t)),update:(t,r)=>sa(e.interactions.update(t,r))},steps:{getByExecutionAndSequence:(t,r)=>sa(e.steps.getByExecutionAndSequence(t,r)),listByExecutionId:t=>_r(e.steps.listByExecutionId(t)),insert:t=>_r(e.steps.insert(t)),deleteByExecutionId:t=>_r(e.steps.deleteByExecutionId(t)),updateByExecutionAndSequence:(t,r,n)=>sa(e.steps.updateByExecutionAndSequence(t,r,n))}}),ub=e=>({createRuntime:t=>Yc.flatMap(_r(e.loadRepositories(t)),r=>Y2e({...t,services:{scope:r.scope,storage:{installation:MDt(r.installation),scopeConfig:jDt(r.workspace.config),scopeState:BDt(r.workspace.state),sourceArtifacts:qDt(r.workspace.sourceArtifacts),auth:JDt(r.workspace.sourceAuth),secrets:KDt(r.secrets),executions:GDt(r.executions),close:r.close},localToolRuntimeLoader:r.workspace.localTools?zDt(r.workspace.localTools):void 0,sourceTypeDeclarationsRefresher:r.workspace.sourceTypeDeclarations?VDt(r.workspace.sourceTypeDeclarations):void 0,instanceConfig:UDt(r.instanceConfig)}}))});import*as iX from"effect/Effect";import*as db from"effect/Effect";import*as yc from"effect/Effect";import*as eAe from"effect/Option";var el={installation:Oo("local.installation.get"),sourceCredentialComplete:Oo("sources.credentials.complete"),sourceCredentialPage:Oo("sources.credentials.page"),sourceCredentialSubmit:Oo("sources.credentials.submit")},tX=e=>typeof e=="object"&&e!==null,rX=e=>typeof e=="string"?e:null,VF=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},HDt=e=>{try{if(e.purpose!=="source_connect_oauth2"&&e.purpose!=="source_connect_secret"&&e.purpose!=="elicitation")return null;let t=JSON.parse(e.payloadJson);if(!tX(t))return null;let r=t.args,n=t.elicitation;if(!tX(r)||!tX(n)||t.path!=="executor.sources.add")return null;let o=e.purpose==="elicitation"?n.mode==="url"?"source_connect_oauth2":"source_connect_secret":e.purpose;if(o==="source_connect_oauth2"&&n.mode!=="url"||o==="source_connect_secret"&&n.mode!=="form")return null;let i=VF(rX(r.scopeId)),a=VF(rX(r.sourceId)),s=VF(rX(n.message));return i===null||a===null||s===null?null:{interactionId:e.id,executionId:e.executionId,status:e.status,message:s,scopeId:hn.make(i),sourceId:Mn.make(a)}}catch{return null}},tAe=e=>yc.gen(function*(){let t=yield*Wn,r=yield*ip,n=yield*t.executionInteractions.getById(e.interactionId).pipe(yc.mapError(a=>e.operation.unknownStorage(a,`Failed loading execution interaction ${e.interactionId}`)));if(eAe.isNone(n))return yield*e.operation.notFound("Source credential request not found",`interactionId=${e.interactionId}`);let o=HDt(n.value);if(o===null||o.scopeId!==e.scopeId||o.sourceId!==e.sourceId)return yield*e.operation.notFound("Source credential request not found",`scopeId=${e.scopeId} sourceId=${e.sourceId} interactionId=${e.interactionId}`);let i=yield*r.getSourceById({scopeId:e.scopeId,sourceId:e.sourceId}).pipe(yc.mapError(a=>e.operation.unknownStorage(a,`Failed loading source ${e.sourceId}`)));return{...o,sourceLabel:i.name,endpoint:i.endpoint}}),rAe=()=>yc.gen(function*(){return yield*(yield*qg).load().pipe(yc.mapError(t=>el.installation.unknownStorage(t,"Failed loading local installation")))}),nAe=e=>tAe({...e,operation:el.sourceCredentialPage}),oAe=e=>yc.gen(function*(){let t=yield*tAe({scopeId:e.scopeId,sourceId:e.sourceId,interactionId:e.interactionId,operation:el.sourceCredentialSubmit});if(t.status!=="pending")return yield*el.sourceCredentialSubmit.badRequest("Source credential request is no longer active",`interactionId=${t.interactionId} status=${t.status}`);let r=yield*Xc;if(e.action==="cancel")return!(yield*r.resolveInteraction({executionId:t.executionId,response:{action:"cancel"}}))&&!(yield*UF({executionId:t.executionId,response:{action:"cancel"}}).pipe(yc.mapError(p=>el.sourceCredentialSubmit.unknownStorage(p,`Failed resuming execution for interaction ${t.interactionId}`))))?yield*el.sourceCredentialSubmit.badRequest("Source credential request is no longer resumable",`interactionId=${t.interactionId}`):{kind:"cancelled",sourceLabel:t.sourceLabel,endpoint:t.endpoint};if(e.action==="continue")return!(yield*r.resolveInteraction({executionId:t.executionId,response:{action:"accept",content:wQ()}}))&&!(yield*UF({executionId:t.executionId,response:{action:"accept",content:wQ()}}).pipe(yc.mapError(p=>el.sourceCredentialSubmit.unknownStorage(p,`Failed resuming execution for interaction ${t.interactionId}`))))?yield*el.sourceCredentialSubmit.badRequest("Source credential request is no longer resumable",`interactionId=${t.interactionId}`):{kind:"continued",sourceLabel:t.sourceLabel,endpoint:t.endpoint};let n=VF(e.token);if(n===null)return yield*el.sourceCredentialSubmit.badRequest("Missing token",`interactionId=${t.interactionId}`);let i=yield*(yield*ip).storeSecretMaterial({purpose:"auth_material",value:n}).pipe(yc.mapError(s=>el.sourceCredentialSubmit.unknownStorage(s,`Failed storing credential material for interaction ${t.interactionId}`)));return!(yield*r.resolveInteraction({executionId:t.executionId,response:{action:"accept",content:IQ(i)}}))&&!(yield*UF({executionId:t.executionId,response:{action:"accept",content:IQ(i)}}).pipe(yc.mapError(c=>el.sourceCredentialSubmit.unknownStorage(c,`Failed resuming execution for interaction ${t.interactionId}`))))?yield*el.sourceCredentialSubmit.badRequest("Source credential request is no longer resumable",`interactionId=${t.interactionId}`):{kind:"stored",sourceLabel:t.sourceLabel,endpoint:t.endpoint}}),iAe=e=>yc.gen(function*(){return yield*(yield*ip).completeSourceCredentialSetup(e).pipe(yc.mapError(r=>el.sourceCredentialComplete.unknownStorage(r,"Failed completing source credential setup")))});import*as za from"effect/Effect";import*as JF from"effect/Option";var sp=(e,t)=>new Gh({operation:e,message:t,details:t}),aAe=()=>za.flatMap(Kp,e=>e()),sAe=()=>za.gen(function*(){let e=yield*Wn,t=yield*Qo,r=yield*x1().pipe(za.mapError(()=>sp("secrets.list","Failed resolving local scope."))),n=yield*e.secretMaterials.listAll().pipe(za.mapError(()=>sp("secrets.list","Failed listing secrets."))),o=yield*t.listLinkedSecretSourcesInScope(r.installation.scopeId,{actorScopeId:r.installation.actorScopeId}).pipe(za.mapError(()=>sp("secrets.list","Failed loading linked sources.")));return n.map(i=>({...i,linkedSources:o.get(i.id)??[]}))}),cAe=e=>za.gen(function*(){let t=e.name.trim(),r=e.value,n=e.purpose??"auth_material";if(t.length===0)return yield*new ab({operation:"secrets.create",message:"Secret name is required.",details:"Secret name is required."});let o=yield*Wn,a=yield*(yield*Ys)({name:t,purpose:n,value:r,providerId:e.providerId}).pipe(za.mapError(p=>sp("secrets.create",p instanceof Error?p.message:"Failed creating secret."))),s=Bp.make(a.handle),c=yield*o.secretMaterials.getById(s).pipe(za.mapError(()=>sp("secrets.create","Failed loading created secret.")));return JF.isNone(c)?yield*sp("secrets.create",`Created secret not found: ${a.handle}`):{id:c.value.id,name:c.value.name,providerId:c.value.providerId,purpose:c.value.purpose,createdAt:c.value.createdAt,updatedAt:c.value.updatedAt}}),lAe=e=>za.gen(function*(){let t=Bp.make(e.secretId),n=yield*(yield*Wn).secretMaterials.getById(t).pipe(za.mapError(()=>sp("secrets.update","Failed looking up secret.")));if(JF.isNone(n))return yield*new bf({operation:"secrets.update",message:`Secret not found: ${e.secretId}`,details:`Secret not found: ${e.secretId}`});let o={};e.payload.name!==void 0&&(o.name=e.payload.name.trim()||null),e.payload.value!==void 0&&(o.value=e.payload.value);let a=yield*(yield*Jp)({ref:{providerId:n.value.providerId,handle:n.value.id},...o}).pipe(za.mapError(()=>sp("secrets.update","Failed updating secret.")));return{id:a.id,providerId:a.providerId,name:a.name,purpose:a.purpose,createdAt:a.createdAt,updatedAt:a.updatedAt}}),uAe=e=>za.gen(function*(){let t=Bp.make(e),n=yield*(yield*Wn).secretMaterials.getById(t).pipe(za.mapError(()=>sp("secrets.delete","Failed looking up secret.")));return JF.isNone(n)?yield*new bf({operation:"secrets.delete",message:`Secret not found: ${e}`,details:`Secret not found: ${e}`}):(yield*(yield*as)({providerId:n.value.providerId,handle:n.value.id}).pipe(za.mapError(()=>sp("secrets.delete","Failed removing secret."))))?{removed:!0}:yield*sp("secrets.delete",`Failed removing secret: ${e}`)});import*as pAe from"effect/Either";import*as Xo from"effect/Effect";import*as nX from"effect/Effect";var pb=(e,t)=>t.pipe(nX.mapError(r=>hw(e).storage(r)));var tu={list:Oo("sources.list"),create:Oo("sources.create"),get:Oo("sources.get"),update:Oo("sources.update"),remove:Oo("sources.remove")},ZDt=e=>_i(e).shouldAutoProbe(e),dAe=e=>Xo.gen(function*(){let t=yield*eu,r=ZDt(e.source),n=r?{...e.source,status:"connected"}:e.source,o=yield*Xo.either(t.sync({source:n,actorScopeId:e.actorScopeId}));return yield*pAe.match(o,{onRight:()=>Xo.gen(function*(){if(r){let i=yield*gf({source:e.source,payload:{status:"connected",lastError:null},now:Date.now()}).pipe(Xo.mapError(a=>e.operation.badRequest("Failed updating source status",a instanceof Error?a.message:String(a))));return yield*pb(e.operation.child("source_connected"),e.sourceStore.persistSource(i,{actorScopeId:e.actorScopeId})),i}return e.source}),onLeft:i=>Xo.gen(function*(){if(r||e.source.enabled&&e.source.status==="connected"){let a=yield*gf({source:e.source,payload:{status:"error",lastError:i.message},now:Date.now()}).pipe(Xo.mapError(s=>e.operation.badRequest("Failed indexing source tools",s instanceof Error?s.message:String(s))));yield*pb(e.operation.child("source_error"),e.sourceStore.persistSource(a,{actorScopeId:e.actorScopeId}))}return yield*e.operation.unknownStorage(i,"Failed syncing source tools")})})}),_Ae=e=>Xo.flatMap(Wn,()=>Xo.gen(function*(){return yield*(yield*Qo).loadSourcesInScope(e.scopeId,{actorScopeId:e.actorScopeId}).pipe(Xo.mapError(r=>tu.list.unknownStorage(r,"Failed projecting stored sources")))})),fAe=e=>Xo.flatMap(Wn,t=>Xo.gen(function*(){let r=yield*Qo,n=Date.now(),o=yield*vS({scopeId:e.scopeId,sourceId:Mn.make(`src_${crypto.randomUUID()}`),payload:e.payload,now:n}).pipe(Xo.mapError(s=>tu.create.badRequest("Invalid source definition",s instanceof Error?s.message:String(s)))),i=yield*pb(tu.create.child("persist"),r.persistSource(o,{actorScopeId:e.actorScopeId}));return yield*dAe({store:t,sourceStore:r,source:i,actorScopeId:e.actorScopeId,operation:tu.create})})),mAe=e=>Xo.flatMap(Wn,()=>Xo.gen(function*(){return yield*(yield*Qo).loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId,actorScopeId:e.actorScopeId}).pipe(Xo.mapError(r=>r instanceof Error&&r.message.startsWith("Source not found:")?tu.get.notFound("Source not found",`scopeId=${e.scopeId} sourceId=${e.sourceId}`):tu.get.unknownStorage(r,"Failed projecting stored source")))})),hAe=e=>Xo.flatMap(Wn,t=>Xo.gen(function*(){let r=yield*Qo,n=yield*r.loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId,actorScopeId:e.actorScopeId}).pipe(Xo.mapError(s=>s instanceof Error&&s.message.startsWith("Source not found:")?tu.update.notFound("Source not found",`scopeId=${e.scopeId} sourceId=${e.sourceId}`):tu.update.unknownStorage(s,"Failed projecting stored source"))),o=yield*gf({source:n,payload:e.payload,now:Date.now()}).pipe(Xo.mapError(s=>tu.update.badRequest("Invalid source definition",s instanceof Error?s.message:String(s)))),i=yield*pb(tu.update.child("persist"),r.persistSource(o,{actorScopeId:e.actorScopeId}));return yield*dAe({store:t,sourceStore:r,source:i,actorScopeId:e.actorScopeId,operation:tu.update})})),yAe=e=>Xo.flatMap(Wn,()=>Xo.gen(function*(){let t=yield*Qo;return{removed:yield*pb(tu.remove.child("remove"),t.removeSourceById({scopeId:e.scopeId,sourceId:e.sourceId}))}}));var WDt=e=>{let t=e.localInstallation,r=t.scopeId,n=t.actorScopeId,o=s=>X2e(s,e),i=s=>o(db.flatMap(ip,s)),a=()=>{let s=crypto.randomUUID();return{executionId:Il.make(`exec_sdk_${s}`),interactionId:`executor.sdk.${s}`}};return{runtime:e,installation:t,scopeId:r,actorScopeId:n,resolutionScopeIds:t.resolutionScopeIds,close:()=>e.close(),local:{installation:()=>o(rAe()),config:()=>o(aAe()),credentials:{get:({sourceId:s,interactionId:c})=>o(nAe({scopeId:r,sourceId:s,interactionId:c})),submit:({sourceId:s,interactionId:c,action:p,token:d})=>o(oAe({scopeId:r,sourceId:s,interactionId:c,action:p,token:d})),complete:({sourceId:s,state:c,code:p,error:d,errorDescription:f})=>o(iAe({scopeId:r,sourceId:s,state:c,code:p,error:d,errorDescription:f}))}},secrets:{list:()=>o(sAe()),create:s=>o(cAe(s)),update:s=>o(lAe(s)),remove:s=>o(uAe(s))},policies:{list:()=>o(RDe(r)),create:s=>o(LDe({scopeId:r,payload:s})),get:s=>o($De({scopeId:r,policyId:s})),update:(s,c)=>o(MDe({scopeId:r,policyId:s,payload:c})),remove:s=>o(jDe({scopeId:r,policyId:s})).pipe(db.map(c=>c.removed))},sources:{add:(s,c)=>i(p=>{let d=a();return p.addExecutorSource({...s,scopeId:r,actorScopeId:n,executionId:d.executionId,interactionId:d.interactionId},c)}),connect:s=>i(c=>c.connectMcpSource({...s,scopeId:r,actorScopeId:n})),connectBatch:s=>i(c=>{let p=a();return c.connectGoogleDiscoveryBatch({...s,scopeId:r,actorScopeId:n,executionId:p.executionId,interactionId:p.interactionId})}),discover:s=>o(O2e(s)),list:()=>o(_Ae({scopeId:r,actorScopeId:n})),create:s=>o(fAe({scopeId:r,actorScopeId:n,payload:s})),get:s=>o(mAe({scopeId:r,sourceId:s,actorScopeId:n})),update:(s,c)=>o(hAe({scopeId:r,sourceId:s,actorScopeId:n,payload:c})),remove:s=>o(yAe({scopeId:r,sourceId:s})).pipe(db.map(c=>c.removed)),inspection:{get:s=>o(k2e({scopeId:r,sourceId:s})),tool:({sourceId:s,toolPath:c})=>o(C2e({scopeId:r,sourceId:s,toolPath:c})),discover:({sourceId:s,payload:c})=>o(P2e({scopeId:r,sourceId:s,payload:c}))},oauthClients:{list:s=>i(c=>c.listScopeOauthClients({scopeId:r,providerKey:s})),create:s=>i(c=>c.createScopeOauthClient({scopeId:r,providerKey:s.providerKey,label:s.label,oauthClient:s.oauthClient})),remove:s=>i(c=>c.removeScopeOauthClient({scopeId:r,oauthClientId:s}))},providerGrants:{remove:s=>i(c=>c.removeProviderAuthGrant({scopeId:r,grantId:s}))}},oauth:{startSourceAuth:s=>i(c=>c.startSourceOAuthSession({...s,scopeId:r,actorScopeId:n})),completeSourceAuth:({state:s,code:c,error:p,errorDescription:d})=>i(f=>f.completeSourceOAuthSession({state:s,code:c,error:p,errorDescription:d})),completeProviderCallback:s=>i(c=>c.completeProviderOauthCallback({...s,scopeId:s.scopeId??r,actorScopeId:s.actorScopeId??n}))},executions:{create:s=>o(V2e({scopeId:r,payload:s,createdByScopeId:n})),get:s=>o(J2e({scopeId:r,executionId:s})),resume:(s,c)=>o(K2e({scopeId:r,executionId:s,payload:c,resumedByScopeId:n}))}}},oX=e=>db.map(e.backend.createRuntime({executionResolver:e.executionResolver,createInternalToolMap:e.createInternalToolMap,resolveSecretMaterial:e.resolveSecretMaterial,getLocalServerBaseUrl:e.getLocalServerBaseUrl,customCodeExecutor:e.customCodeExecutor}),WDt);var QDt=e=>{let t=r=>iX.runPromise(r);return{installation:e.installation,scopeId:e.scopeId,actorScopeId:e.actorScopeId,resolutionScopeIds:e.resolutionScopeIds,close:()=>e.close(),local:{installation:()=>t(e.local.installation()),config:()=>t(e.local.config()),credentials:{get:r=>t(e.local.credentials.get(r)),submit:r=>t(e.local.credentials.submit(r)),complete:r=>t(e.local.credentials.complete(r))}},secrets:{list:()=>t(e.secrets.list()),create:r=>t(e.secrets.create(r)),update:r=>t(e.secrets.update(r)),remove:r=>t(e.secrets.remove(r))},policies:{list:()=>t(e.policies.list()),create:r=>t(e.policies.create(r)),get:r=>t(e.policies.get(r)),update:(r,n)=>t(e.policies.update(r,n)),remove:r=>t(e.policies.remove(r))},sources:{add:(r,n)=>t(e.sources.add(r,n)),connect:r=>t(e.sources.connect(r)),connectBatch:r=>t(e.sources.connectBatch(r)),discover:r=>t(e.sources.discover(r)),list:()=>t(e.sources.list()),create:r=>t(e.sources.create(r)),get:r=>t(e.sources.get(r)),update:(r,n)=>t(e.sources.update(r,n)),remove:r=>t(e.sources.remove(r)),inspection:{get:r=>t(e.sources.inspection.get(r)),tool:r=>t(e.sources.inspection.tool(r)),discover:r=>t(e.sources.inspection.discover(r))},oauthClients:{list:r=>t(e.sources.oauthClients.list(r)),create:r=>t(e.sources.oauthClients.create(r)),remove:r=>t(e.sources.oauthClients.remove(r))},providerGrants:{remove:r=>t(e.sources.providerGrants.remove(r))}},oauth:{startSourceAuth:r=>t(e.oauth.startSourceAuth(r)),completeSourceAuth:r=>t(e.oauth.completeSourceAuth(r)),completeProviderCallback:r=>t(e.oauth.completeProviderCallback(r))},executions:{create:r=>t(e.executions.create(r)),get:r=>t(e.executions.get(r)),resume:(r,n)=>t(e.executions.resume(r,n))}}},aX=async e=>QDt(await iX.runPromise(oX(e)));import{FileSystem as kwe}from"@effect/platform";import{NodeFileSystem as rwt}from"@effect/platform-node";import*as Ki from"effect/Effect";import{homedir as xw}from"node:os";import{basename as s2t,dirname as c2t,isAbsolute as l2t,join as va,resolve as TS}from"node:path";import{FileSystem as hb}from"@effect/platform";function KF(e,t=!1){let r=e.length,n=0,o="",i=0,a=16,s=0,c=0,p=0,d=0,f=0;function m(E,C){let F=0,O=0;for(;F=48&&$<=57)O=O*16+$-48;else if($>=65&&$<=70)O=O*16+$-65+10;else if($>=97&&$<=102)O=O*16+$-97+10;else break;n++,F++}return F=r){E+=e.substring(C,n),f=2;break}let F=e.charCodeAt(n);if(F===34){E+=e.substring(C,n),n++;break}if(F===92){if(E+=e.substring(C,n),n++,n>=r){f=2;break}switch(e.charCodeAt(n++)){case 34:E+='"';break;case 92:E+="\\";break;case 47:E+="/";break;case 98:E+="\b";break;case 102:E+="\f";break;case 110:E+=` +`;break;case 114:E+="\r";break;case 116:E+=" ";break;case 117:let $=m(4,!0);$>=0?E+=String.fromCharCode($):f=4;break;default:f=5}C=n;continue}if(F>=0&&F<=31)if(Sw(F)){E+=e.substring(C,n),f=2;break}else f=6;n++}return E}function x(){if(o="",f=0,i=n,c=s,d=p,n>=r)return i=r,a=17;let E=e.charCodeAt(n);if(sX(E)){do n++,o+=String.fromCharCode(E),E=e.charCodeAt(n);while(sX(E));return a=15}if(Sw(E))return n++,o+=String.fromCharCode(E),E===13&&e.charCodeAt(n)===10&&(n++,o+=` +`),s++,p=n,a=14;switch(E){case 123:return n++,a=1;case 125:return n++,a=2;case 91:return n++,a=3;case 93:return n++,a=4;case 58:return n++,a=6;case 44:return n++,a=5;case 34:return n++,o=S(),a=10;case 47:let C=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n=12&&E<=15);return E}return{setPosition:y,getPosition:()=>n,scan:t?I:x,getToken:()=>a,getTokenValue:()=>o,getTokenOffset:()=>i,getTokenLength:()=>n-i,getTokenStartLine:()=>c,getTokenStartCharacter:()=>i-d,getTokenError:()=>f}}function sX(e){return e===32||e===9}function Sw(e){return e===10||e===13}function _b(e){return e>=48&&e<=57}var gAe;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(gAe||(gAe={}));var YDt=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),fb=200,e2t={" ":{"\n":new Array(fb).fill(0).map((e,t)=>` +`+" ".repeat(t)),"\r":new Array(fb).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(fb).fill(0).map((e,t)=>`\r +`+" ".repeat(t))}," ":{"\n":new Array(fb).fill(0).map((e,t)=>` +`+" ".repeat(t)),"\r":new Array(fb).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(fb).fill(0).map((e,t)=>`\r +`+" ".repeat(t))}};var GF;(function(e){e.DEFAULT={allowTrailingComma:!1}})(GF||(GF={}));function SAe(e,t=[],r=GF.DEFAULT){let n=null,o=[],i=[];function a(c){Array.isArray(o)?o.push(c):n!==null&&(o[n]=c)}return vAe(e,{onObjectBegin:()=>{let c={};a(c),i.push(o),o=c,n=null},onObjectProperty:c=>{n=c},onObjectEnd:()=>{o=i.pop()},onArrayBegin:()=>{let c=[];a(c),i.push(o),o=c,n=null},onArrayEnd:()=>{o=i.pop()},onLiteralValue:a,onError:(c,p,d)=>{t.push({error:c,offset:p,length:d})}},r),o[0]}function vAe(e,t,r=GF.DEFAULT){let n=KF(e,!1),o=[],i=0;function a(me){return me?()=>i===0&&me(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function s(me){return me?xe=>i===0&&me(xe,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function c(me){return me?xe=>i===0&&me(xe,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>o.slice()):()=>!0}function p(me){return me?()=>{i>0?i++:me(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>o.slice())===!1&&(i=1)}:()=>!0}function d(me){return me?()=>{i>0&&i--,i===0&&me(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:()=>!0}let f=p(t.onObjectBegin),m=c(t.onObjectProperty),y=d(t.onObjectEnd),g=p(t.onArrayBegin),S=d(t.onArrayEnd),x=c(t.onLiteralValue),A=s(t.onSeparator),I=a(t.onComment),E=s(t.onError),C=r&&r.disallowComments,F=r&&r.allowTrailingComma;function O(){for(;;){let me=n.scan();switch(n.getTokenError()){case 4:$(14);break;case 5:$(15);break;case 3:$(13);break;case 1:C||$(11);break;case 2:$(12);break;case 6:$(16);break}switch(me){case 12:case 13:C?$(10):I();break;case 16:$(1);break;case 15:case 14:break;default:return me}}}function $(me,xe=[],Rt=[]){if(E(me),xe.length+Rt.length>0){let Vt=n.getToken();for(;Vt!==17;){if(xe.indexOf(Vt)!==-1){O();break}else if(Rt.indexOf(Vt)!==-1)break;Vt=O()}}}function N(me){let xe=n.getTokenValue();return me?x(xe):(m(xe),o.push(xe)),O(),!0}function U(){switch(n.getToken()){case 11:let me=n.getTokenValue(),xe=Number(me);isNaN(xe)&&($(2),xe=0),x(xe);break;case 7:x(null);break;case 8:x(!0);break;case 9:x(!1);break;default:return!1}return O(),!0}function ge(){return n.getToken()!==10?($(3,[],[2,5]),!1):(N(!1),n.getToken()===6?(A(":"),O(),Ve()||$(4,[],[2,5])):$(5,[],[2,5]),o.pop(),!0)}function Te(){f(),O();let me=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(me||$(4,[],[]),A(","),O(),n.getToken()===2&&F)break}else me&&$(6,[],[]);ge()||$(4,[],[2,5]),me=!0}return y(),n.getToken()!==2?$(7,[2],[]):O(),!0}function ke(){g(),O();let me=!0,xe=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(xe||$(4,[],[]),A(","),O(),n.getToken()===4&&F)break}else xe&&$(6,[],[]);me?(o.push(0),me=!1):o[o.length-1]++,Ve()||$(4,[],[4,5]),xe=!0}return S(),me||o.pop(),n.getToken()!==4?$(8,[4],[]):O(),!0}function Ve(){switch(n.getToken()){case 3:return ke();case 1:return Te();case 10:return N(!0);default:return U()}}return O(),n.getToken()===17?r.allowEmptyContent?!0:($(4,[],[]),!1):Ve()?(n.getToken()!==17&&$(9,[],[]),!0):($(4,[],[]),!1)}var bAe;(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"})(bAe||(bAe={}));var xAe;(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"})(xAe||(xAe={}));var TAe=SAe;var EAe;(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"})(EAe||(EAe={}));function DAe(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return""}import*as Ti from"effect/Effect";import*as FAe from"effect/Schema";import*as Sc from"effect/Data";var Yo=e=>e instanceof Error?e.message:String(e),gc=class extends Sc.TaggedError("LocalFileSystemError"){},Wh=class extends Sc.TaggedError("LocalExecutorConfigDecodeError"){},HF=class extends Sc.TaggedError("LocalWorkspaceStateDecodeError"){},AAe=class extends Sc.TaggedError("LocalSourceArtifactDecodeError"){},ZF=class extends Sc.TaggedError("LocalToolTranspileError"){},vw=class extends Sc.TaggedError("LocalToolImportError"){},Qh=class extends Sc.TaggedError("LocalToolDefinitionError"){},WF=class extends Sc.TaggedError("LocalToolPathConflictError"){},wAe=class extends Sc.TaggedError("RuntimeLocalWorkspaceUnavailableError"){},IAe=class extends Sc.TaggedError("RuntimeLocalWorkspaceMismatchError"){},kAe=class extends Sc.TaggedError("LocalConfiguredSourceNotFoundError"){},CAe=class extends Sc.TaggedError("LocalSourceArtifactMissingError"){},PAe=class extends Sc.TaggedError("LocalUnsupportedSourceKindError"){};var RAe=FAe.decodeUnknownSync(Lce),u2t=e=>`${JSON.stringify(e,null,2)} +`,yb=e=>{let t=e.path.trim();return t.startsWith("~/")?va(xw(),t.slice(2)):t==="~"?xw():l2t(t)?t:TS(e.scopeRoot,t)},cX="executor.jsonc",bw=".executor",p2t="EXECUTOR_CONFIG_DIR",d2t="EXECUTOR_STATE_DIR",Xh=(e,t)=>r=>new gc({message:`Failed to ${t} ${e}: ${Yo(r)}`,action:t,path:e,details:Yo(r)}),mb=e=>{let t=e?.trim();return t&&t.length>0?t:void 0},_2t=(e={})=>{let t=e.env??process.env,r=e.platform??process.platform,n=e.homeDirectory??xw(),o=mb(t[p2t]);return o||(r==="win32"?va(mb(t.LOCALAPPDATA)??va(n,"AppData","Local"),"Executor"):r==="darwin"?va(n,"Library","Application Support","Executor"):va(mb(t.XDG_CONFIG_HOME)??va(n,".config"),"executor"))},f2t=(e={})=>{let t=e.env??process.env,r=e.platform??process.platform,n=e.homeDirectory??xw(),o=mb(t[d2t]);return o||(r==="win32"?va(mb(t.LOCALAPPDATA)??va(n,"AppData","Local"),"Executor","State"):r==="darwin"?va(n,"Library","Application Support","Executor","State"):va(mb(t.XDG_STATE_HOME)??va(n,".local","state"),"executor"))},m2t=(e={})=>{let t=_2t({env:e.env,platform:e.platform,homeDirectory:e.homeDirectory??xw()});return[va(t,cX)]},h2t=(e={})=>Ti.gen(function*(){let t=yield*hb.FileSystem,r=m2t(e);for(let n of r)if(yield*t.exists(n).pipe(Ti.mapError(Xh(n,"check config path"))))return n;return r[0]}),y2t=(e={})=>f2t(e),OAe=(e,t)=>{let r=e.split(` +`);return t.map(n=>{let o=e.slice(0,n.offset).split(` +`),i=o.length,a=o[o.length-1]?.length??0,s=r[i-1],c=`line ${i}, column ${a+1}`,p=DAe(n.error);return s?`${p} at ${c} +${s}`:`${p} at ${c}`}).join(` +`)},g2t=e=>{let t=[];try{let r=TAe(e.content,t,{allowTrailingComma:!0});if(t.length>0)throw new Wh({message:`Invalid executor config at ${e.path}: ${OAe(e.content,t)}`,path:e.path,details:OAe(e.content,t)});return RAe(r)}catch(r){throw r instanceof Wh?r:new Wh({message:`Invalid executor config at ${e.path}: ${Yo(r)}`,path:e.path,details:Yo(r)})}},S2t=(e,t)=>{if(!(!e&&!t))return{...e,...t}},v2t=(e,t)=>{if(!(!e&&!t))return{...e,...t}},b2t=(e,t)=>{if(!(!e&&!t))return{...e,...t}},x2t=(e,t)=>!e&&!t?null:RAe({runtime:t?.runtime??e?.runtime,workspace:{...e?.workspace,...t?.workspace},sources:S2t(e?.sources,t?.sources),policies:v2t(e?.policies,t?.policies),secrets:{providers:b2t(e?.secrets?.providers,t?.secrets?.providers),defaults:{...e?.secrets?.defaults,...t?.secrets?.defaults}}}),E2t=e=>Ti.gen(function*(){let t=yield*hb.FileSystem,r=va(e,bw,cX);return yield*t.exists(r).pipe(Ti.mapError(Xh(r,"check project config path"))),r}),T2t=e=>Ti.gen(function*(){let t=yield*hb.FileSystem,r=va(e,bw,cX);return yield*t.exists(r).pipe(Ti.mapError(Xh(r,"check project config path")))}),D2t=e=>Ti.gen(function*(){let t=yield*hb.FileSystem,r=TS(e),n=null,o=null;for(;;){if(n===null&&(yield*T2t(r))&&(n=r),o===null){let a=va(r,".git");(yield*t.exists(a).pipe(Ti.mapError(Xh(a,"check git root"))))&&(o=r)}let i=c2t(r);if(i===r)break;r=i}return n??o??TS(e)}),QF=(e={})=>Ti.gen(function*(){let t=TS(e.cwd??process.cwd()),r=TS(e.workspaceRoot??(yield*D2t(t))),n=s2t(r)||"workspace",o=yield*E2t(r),i=TS(e.homeConfigPath??(yield*h2t())),a=TS(e.homeStateDirectory??y2t());return{cwd:t,workspaceRoot:r,workspaceName:n,configDirectory:va(r,bw),projectConfigPath:o,homeConfigPath:i,homeStateDirectory:a,artifactsDirectory:va(r,bw,"artifacts"),stateDirectory:va(r,bw,"state")}}),NAe=e=>Ti.gen(function*(){let t=yield*hb.FileSystem;if(!(yield*t.exists(e).pipe(Ti.mapError(Xh(e,"check config path")))))return null;let n=yield*t.readFileString(e,"utf8").pipe(Ti.mapError(Xh(e,"read config")));return yield*Ti.try({try:()=>g2t({path:e,content:n}),catch:o=>o instanceof Wh?o:new Wh({message:`Invalid executor config at ${e}: ${Yo(o)}`,path:e,details:Yo(o)})})}),XF=e=>Ti.gen(function*(){let[t,r]=yield*Ti.all([NAe(e.homeConfigPath),NAe(e.projectConfigPath)]);return{config:x2t(t,r),homeConfig:t,projectConfig:r,homeConfigPath:e.homeConfigPath,projectConfigPath:e.projectConfigPath}}),YF=e=>Ti.gen(function*(){let t=yield*hb.FileSystem;yield*t.makeDirectory(e.context.configDirectory,{recursive:!0}).pipe(Ti.mapError(Xh(e.context.configDirectory,"create config directory"))),yield*t.writeFileString(e.context.projectConfigPath,u2t(e.config)).pipe(Ti.mapError(Xh(e.context.projectConfigPath,"write config")))});import{randomUUID as k2t}from"node:crypto";import{dirname as jAe,join as C2t}from"node:path";import{FileSystem as pX}from"@effect/platform";import{NodeFileSystem as LXt}from"@effect/platform-node";import*as Ji from"effect/Effect";import*as tn from"effect/Option";import*as Va from"effect/Schema";import{createHash as A2t}from"node:crypto";import*as MAe from"effect/Effect";var LAe=hn.make("acc_local_default"),w2t=e=>A2t("sha256").update(e).digest("hex").slice(0,16),I2t=e=>e.replaceAll("\\","/"),$Ae=e=>hn.make(`ws_local_${w2t(I2t(e.workspaceRoot))}`),Ew=e=>({actorScopeId:LAe,scopeId:$Ae(e),resolutionScopeIds:[$Ae(e),LAe]}),Tw=e=>MAe.succeed(Ew(e)),eR=e=>Tw(e.context);var BAe=1,P2t="executor-state.json",O2t=Va.Struct({version:Va.Literal(BAe),authArtifacts:Va.Array(Sce),authLeases:Va.Array(Pce),sourceOauthClients:Va.Array(Oce),scopeOauthClients:Va.Array(Nce),providerAuthGrants:Va.Array(Fce),sourceAuthSessions:Va.Array(Tce),secretMaterials:Va.Array(Rce),executions:Va.Array(ZB),executionInteractions:Va.Array(WB),executionSteps:Va.Array(Bce)}),N2t=Va.decodeUnknown(O2t),F2t=()=>({version:BAe,authArtifacts:[],authLeases:[],sourceOauthClients:[],scopeOauthClients:[],providerAuthGrants:[],sourceAuthSessions:[],secretMaterials:[],executions:[],executionInteractions:[],executionSteps:[]}),En=e=>JSON.parse(JSON.stringify(e)),R2t=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null,uX=e=>{if(Array.isArray(e)){let o=!1;return{value:e.map(a=>{let s=uX(a);return o=o||s.migrated,s.value}),migrated:o}}let t=R2t(e);if(t===null)return{value:e,migrated:!1};let r=!1,n={};for(let[o,i]of Object.entries(t)){let a=o;o==="workspaceId"?(a="scopeId",r=!0):o==="actorAccountId"?(a="actorScopeId",r=!0):o==="createdByAccountId"?(a="createdByScopeId",r=!0):o==="workspaceOauthClients"&&(a="scopeOauthClients",r=!0);let s=uX(i);r=r||s.migrated,n[a]=s.value}return{value:n,migrated:r}},Af=(e,t)=>r=>new gc({message:`Failed to ${t} ${e}: ${Yo(r)}`,action:t,path:e,details:Yo(r)}),Dw=(e,t)=>(e??null)===(t??null),Df=e=>[...e].sort((t,r)=>t.updatedAt-r.updatedAt||t.id.localeCompare(r.id)),lX=e=>[...e].sort((t,r)=>r.updatedAt-t.updatedAt||r.id.localeCompare(t.id)),tR=e=>C2t(e.homeStateDirectory,"workspaces",Ew(e).scopeId,P2t),L2t=(e,t)=>t.pipe(Ji.provideService(pX.FileSystem,e));var $2t=e=>Ji.gen(function*(){let t=yield*pX.FileSystem,r=tR(e);if(!(yield*t.exists(r).pipe(Ji.mapError(Af(r,"check executor state path")))))return F2t();let o=yield*t.readFileString(r,"utf8").pipe(Ji.mapError(Af(r,"read executor state"))),i=yield*Ji.try({try:()=>JSON.parse(o),catch:Af(r,"parse executor state")}),a=uX(i),s=yield*N2t(a.value).pipe(Ji.mapError(Af(r,"decode executor state")));return a.migrated&&(yield*qAe(e,s)),s}),qAe=(e,t)=>Ji.gen(function*(){let r=yield*pX.FileSystem,n=tR(e),o=`${n}.${k2t()}.tmp`;yield*r.makeDirectory(jAe(n),{recursive:!0}).pipe(Ji.mapError(Af(jAe(n),"create executor state directory"))),yield*r.writeFileString(o,`${JSON.stringify(t,null,2)} +`,{mode:384}).pipe(Ji.mapError(Af(o,"write executor state"))),yield*r.rename(o,n).pipe(Ji.mapError(Af(n,"replace executor state")))});var M2t=(e,t)=>{let r=null,n=Promise.resolve(),o=c=>Ji.runPromise(L2t(t,c)),i=async()=>(r!==null||(r=await o($2t(e))),r);return{read:c=>Ji.tryPromise({try:async()=>(await n,c(En(await i()))),catch:Af(tR(e),"read executor state")}),mutate:c=>Ji.tryPromise({try:async()=>{let p,d=null;if(n=n.then(async()=>{try{let f=En(await i()),m=await c(f);r=m.state,p=m.value,await o(qAe(e,r))}catch(f){d=f}}),await n,d!==null)throw d;return p},catch:Af(tR(e),"write executor state")})}},j2t=(e,t)=>{let r=M2t(e,t);return{authArtifacts:{listByScopeId:n=>r.read(o=>Df(o.authArtifacts.filter(i=>i.scopeId===n))),listByScopeAndSourceId:n=>r.read(o=>Df(o.authArtifacts.filter(i=>i.scopeId===n.scopeId&&i.sourceId===n.sourceId))),getByScopeSourceAndActor:n=>r.read(o=>{let i=o.authArtifacts.find(a=>a.scopeId===n.scopeId&&a.sourceId===n.sourceId&&a.slot===n.slot&&Dw(a.actorScopeId,n.actorScopeId));return i?tn.some(En(i)):tn.none()}),upsert:n=>r.mutate(o=>{let i=o.authArtifacts.filter(a=>!(a.scopeId===n.scopeId&&a.sourceId===n.sourceId&&a.slot===n.slot&&Dw(a.actorScopeId,n.actorScopeId)));return i.push(En(n)),{state:{...o,authArtifacts:i},value:void 0}}),removeByScopeSourceAndActor:n=>r.mutate(o=>{let i=o.authArtifacts.filter(a=>a.scopeId!==n.scopeId||a.sourceId!==n.sourceId||!Dw(a.actorScopeId,n.actorScopeId)||n.slot!==void 0&&a.slot!==n.slot);return{state:{...o,authArtifacts:i},value:i.length!==o.authArtifacts.length}}),removeByScopeAndSourceId:n=>r.mutate(o=>{let i=o.authArtifacts.filter(a=>a.scopeId!==n.scopeId||a.sourceId!==n.sourceId);return{state:{...o,authArtifacts:i},value:o.authArtifacts.length-i.length}})},authLeases:{listAll:()=>r.read(n=>Df(n.authLeases)),getByAuthArtifactId:n=>r.read(o=>{let i=o.authLeases.find(a=>a.authArtifactId===n);return i?tn.some(En(i)):tn.none()}),upsert:n=>r.mutate(o=>{let i=o.authLeases.filter(a=>a.authArtifactId!==n.authArtifactId);return i.push(En(n)),{state:{...o,authLeases:i},value:void 0}}),removeByAuthArtifactId:n=>r.mutate(o=>{let i=o.authLeases.filter(a=>a.authArtifactId!==n);return{state:{...o,authLeases:i},value:i.length!==o.authLeases.length}})},sourceOauthClients:{getByScopeSourceAndProvider:n=>r.read(o=>{let i=o.sourceOauthClients.find(a=>a.scopeId===n.scopeId&&a.sourceId===n.sourceId&&a.providerKey===n.providerKey);return i?tn.some(En(i)):tn.none()}),upsert:n=>r.mutate(o=>{let i=o.sourceOauthClients.filter(a=>!(a.scopeId===n.scopeId&&a.sourceId===n.sourceId&&a.providerKey===n.providerKey));return i.push(En(n)),{state:{...o,sourceOauthClients:i},value:void 0}}),removeByScopeAndSourceId:n=>r.mutate(o=>{let i=o.sourceOauthClients.filter(a=>a.scopeId!==n.scopeId||a.sourceId!==n.sourceId);return{state:{...o,sourceOauthClients:i},value:o.sourceOauthClients.length-i.length}})},scopeOauthClients:{listByScopeAndProvider:n=>r.read(o=>Df(o.scopeOauthClients.filter(i=>i.scopeId===n.scopeId&&i.providerKey===n.providerKey))),getById:n=>r.read(o=>{let i=o.scopeOauthClients.find(a=>a.id===n);return i?tn.some(En(i)):tn.none()}),upsert:n=>r.mutate(o=>{let i=o.scopeOauthClients.filter(a=>a.id!==n.id);return i.push(En(n)),{state:{...o,scopeOauthClients:i},value:void 0}}),removeById:n=>r.mutate(o=>{let i=o.scopeOauthClients.filter(a=>a.id!==n);return{state:{...o,scopeOauthClients:i},value:i.length!==o.scopeOauthClients.length}})},providerAuthGrants:{listByScopeId:n=>r.read(o=>Df(o.providerAuthGrants.filter(i=>i.scopeId===n))),listByScopeActorAndProvider:n=>r.read(o=>Df(o.providerAuthGrants.filter(i=>i.scopeId===n.scopeId&&i.providerKey===n.providerKey&&Dw(i.actorScopeId,n.actorScopeId)))),getById:n=>r.read(o=>{let i=o.providerAuthGrants.find(a=>a.id===n);return i?tn.some(En(i)):tn.none()}),upsert:n=>r.mutate(o=>{let i=o.providerAuthGrants.filter(a=>a.id!==n.id);return i.push(En(n)),{state:{...o,providerAuthGrants:i},value:void 0}}),removeById:n=>r.mutate(o=>{let i=o.providerAuthGrants.filter(a=>a.id!==n);return{state:{...o,providerAuthGrants:i},value:i.length!==o.providerAuthGrants.length}})},sourceAuthSessions:{listAll:()=>r.read(n=>Df(n.sourceAuthSessions)),listByScopeId:n=>r.read(o=>Df(o.sourceAuthSessions.filter(i=>i.scopeId===n))),getById:n=>r.read(o=>{let i=o.sourceAuthSessions.find(a=>a.id===n);return i?tn.some(En(i)):tn.none()}),getByState:n=>r.read(o=>{let i=o.sourceAuthSessions.find(a=>a.state===n);return i?tn.some(En(i)):tn.none()}),getPendingByScopeSourceAndActor:n=>r.read(o=>{let i=Df(o.sourceAuthSessions.filter(a=>a.scopeId===n.scopeId&&a.sourceId===n.sourceId&&a.status==="pending"&&Dw(a.actorScopeId,n.actorScopeId)&&(n.credentialSlot===void 0||a.credentialSlot===n.credentialSlot)))[0]??null;return i?tn.some(En(i)):tn.none()}),insert:n=>r.mutate(o=>({state:{...o,sourceAuthSessions:[...o.sourceAuthSessions,En(n)]},value:void 0})),update:(n,o)=>r.mutate(i=>{let a=null,s=i.sourceAuthSessions.map(c=>c.id!==n?c:(a={...c,...En(o)},a));return{state:{...i,sourceAuthSessions:s},value:a?tn.some(En(a)):tn.none()}}),upsert:n=>r.mutate(o=>{let i=o.sourceAuthSessions.filter(a=>a.id!==n.id);return i.push(En(n)),{state:{...o,sourceAuthSessions:i},value:void 0}}),removeByScopeAndSourceId:(n,o)=>r.mutate(i=>{let a=i.sourceAuthSessions.filter(s=>s.scopeId!==n||s.sourceId!==o);return{state:{...i,sourceAuthSessions:a},value:a.length!==i.sourceAuthSessions.length}})},secretMaterials:{getById:n=>r.read(o=>{let i=o.secretMaterials.find(a=>a.id===n);return i?tn.some(En(i)):tn.none()}),listAll:()=>r.read(n=>lX(n.secretMaterials)),upsert:n=>r.mutate(o=>{let i=o.secretMaterials.filter(a=>a.id!==n.id);return i.push(En(n)),{state:{...o,secretMaterials:i},value:void 0}}),updateById:(n,o)=>r.mutate(i=>{let a=null,s=i.secretMaterials.map(c=>c.id!==n?c:(a={...c,...o.name!==void 0?{name:o.name}:{},...o.value!==void 0?{value:o.value}:{},updatedAt:Date.now()},a));return{state:{...i,secretMaterials:s},value:a?tn.some(En(a)):tn.none()}}),removeById:n=>r.mutate(o=>{let i=o.secretMaterials.filter(a=>a.id!==n);return{state:{...o,secretMaterials:i},value:i.length!==o.secretMaterials.length}})},executions:{getById:n=>r.read(o=>{let i=o.executions.find(a=>a.id===n);return i?tn.some(En(i)):tn.none()}),getByScopeAndId:(n,o)=>r.read(i=>{let a=i.executions.find(s=>s.scopeId===n&&s.id===o);return a?tn.some(En(a)):tn.none()}),insert:n=>r.mutate(o=>({state:{...o,executions:[...o.executions,En(n)]},value:void 0})),update:(n,o)=>r.mutate(i=>{let a=null,s=i.executions.map(c=>c.id!==n?c:(a={...c,...En(o)},a));return{state:{...i,executions:s},value:a?tn.some(En(a)):tn.none()}})},executionInteractions:{getById:n=>r.read(o=>{let i=o.executionInteractions.find(a=>a.id===n);return i?tn.some(En(i)):tn.none()}),listByExecutionId:n=>r.read(o=>lX(o.executionInteractions.filter(i=>i.executionId===n))),getPendingByExecutionId:n=>r.read(o=>{let i=lX(o.executionInteractions.filter(a=>a.executionId===n&&a.status==="pending"))[0]??null;return i?tn.some(En(i)):tn.none()}),insert:n=>r.mutate(o=>({state:{...o,executionInteractions:[...o.executionInteractions,En(n)]},value:void 0})),update:(n,o)=>r.mutate(i=>{let a=null,s=i.executionInteractions.map(c=>c.id!==n?c:(a={...c,...En(o)},a));return{state:{...i,executionInteractions:s},value:a?tn.some(En(a)):tn.none()}})},executionSteps:{getByExecutionAndSequence:(n,o)=>r.read(i=>{let a=i.executionSteps.find(s=>s.executionId===n&&s.sequence===o);return a?tn.some(En(a)):tn.none()}),listByExecutionId:n=>r.read(o=>[...o.executionSteps].filter(i=>i.executionId===n).sort((i,a)=>i.sequence-a.sequence||a.updatedAt-i.updatedAt)),insert:n=>r.mutate(o=>({state:{...o,executionSteps:[...o.executionSteps,En(n)]},value:void 0})),deleteByExecutionId:n=>r.mutate(o=>({state:{...o,executionSteps:o.executionSteps.filter(i=>i.executionId!==n)},value:void 0})),updateByExecutionAndSequence:(n,o,i)=>r.mutate(a=>{let s=null,c=a.executionSteps.map(p=>p.executionId!==n||p.sequence!==o?p:(s={...p,...En(i)},s));return{state:{...a,executionSteps:c},value:s?tn.some(En(s)):tn.none()}})}}},UAe=(e,t)=>({executorState:j2t(e,t),close:async()=>{}});import{randomUUID as mX}from"node:crypto";import{spawn as JAe}from"node:child_process";import{isAbsolute as B2t}from"node:path";import{FileSystem as hX}from"@effect/platform";import{NodeFileSystem as q2t}from"@effect/platform-node";import*as yt from"effect/Effect";import*as yX from"effect/Layer";import*as rR from"effect/Option";var gX="env",U2t="params",wf="keychain",Pd="local",DS=e=>e instanceof Error?e:new Error(String(e)),z2t="executor",gb=5e3,KAe="DANGEROUSLY_ALLOW_ENV_SECRETS",GAe="EXECUTOR_SECRET_STORE_PROVIDER",V2t="EXECUTOR_KEYCHAIN_SERVICE_NAME",Sb=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},J2t=e=>{let t=Sb(e)?.toLowerCase();return t==="1"||t==="true"||t==="yes"},SX=e=>{let t=Sb(e)?.toLowerCase();return t===wf?wf:t===Pd?Pd:null},K2t=e=>e??J2t(process.env[KAe]),G2t=e=>Sb(e)??Sb(process.env[V2t])??z2t,Aw=e=>{let t=e?.trim();return t&&t.length>0?t:null},HAe=e=>({id:e.id,providerId:e.providerId,name:e.name,purpose:e.purpose,createdAt:e.createdAt,updatedAt:e.updatedAt}),H2t=(e=process.platform)=>e==="darwin"?"security":e==="linux"?"secret-tool":null,AS=e=>yt.tryPromise({try:()=>new Promise((t,r)=>{let n=JAe(e.command,[...e.args],{stdio:"pipe",env:e.env}),o="",i="",a=!1,s=e.timeoutMs===void 0?null:setTimeout(()=>{a||(a=!0,n.kill("SIGKILL"),r(new Error(`${e.operation}: '${e.command}' timed out after ${e.timeoutMs}ms`)))},e.timeoutMs);n.stdout.on("data",c=>{o+=c.toString("utf8")}),n.stderr.on("data",c=>{i+=c.toString("utf8")}),n.on("error",c=>{a||(a=!0,s&&clearTimeout(s),r(new Error(`${e.operation}: failed spawning '${e.command}': ${c.message}`)))}),n.on("close",c=>{a||(a=!0,s&&clearTimeout(s),t({exitCode:c??0,stdout:o,stderr:i}))}),e.stdin!==void 0&&n.stdin.write(e.stdin),n.stdin.end()}),catch:t=>t instanceof Error?t:new Error(`${e.operation}: command execution failed: ${String(t)}`)}),ww=e=>{if(e.result.exitCode===0)return yt.succeed(e.result);let t=Aw(e.result.stderr)??Aw(e.result.stdout)??"command returned non-zero exit code";return yt.fail(Ne("local/secret-material-providers",`${e.operation}: ${e.message}: ${t}`))},dX=new Map,Z2t=e=>yt.tryPromise({try:async()=>{let t=dX.get(e);if(t)return t;let r=new Promise(o=>{let i=JAe(e,["--help"],{stdio:"ignore"}),a=setTimeout(()=>{i.kill("SIGKILL"),o(!1)},2e3);i.on("error",()=>{clearTimeout(a),o(!1)}),i.on("close",()=>{clearTimeout(a),o(!0)})});dX.set(e,r);let n=await r;return n||dX.delete(e),n},catch:t=>t instanceof Error?t:new Error(`command.exists: failed checking '${e}': ${String(t)}`)}),W2t=(e=process.platform)=>{let t=H2t(e);return t===null?yt.succeed(!1):Z2t(t)},ZAe=(e={})=>{let t=Pd,r=e.storeProviderId??SX((e.env??process.env)[GAe]);return r?yt.succeed(r):(e.platform??process.platform)!=="darwin"?yt.succeed(t):W2t(e.platform).pipe(yt.map(n=>n?wf:t),yt.catchAll(()=>yt.succeed(t)))},fX=e=>yt.gen(function*(){let t=Bp.make(e.id),r=yield*e.runtime.executorState.secretMaterials.getById(t);return rR.isNone(r)?yield*Ne("local/secret-material-providers",`${e.operation}: secret material not found: ${e.id}`):r.value}),WAe=e=>yt.gen(function*(){let t=Date.now(),r=Bp.make(`sec_${mX()}`);return yield*e.runtime.executorState.secretMaterials.upsert({id:r,providerId:e.providerId,handle:e.providerHandle,name:Sb(e.name),purpose:e.purpose,value:e.value,createdAt:t,updatedAt:t}),{providerId:e.providerId,handle:r}}),_X=e=>yt.gen(function*(){let t=yield*fX({id:e.ref.handle,runtime:e.runtime,operation:e.operation});return t.providerId!==wf?yield*Ne("local/secret-material-providers",`${e.operation}: secret ${t.id} is stored in provider '${t.providerId}', not '${wf}'`):{providerHandle:t.handle,material:t}}),zAe=e=>{switch(process.platform){case"darwin":return AS({command:"security",args:["find-generic-password","-a",e.providerHandle,"-s",e.runtime.keychainServiceName,"-w"],operation:"keychain.get",timeoutMs:gb}).pipe(yt.flatMap(t=>ww({result:t,operation:"keychain.get",message:"Failed loading secret from macOS keychain"})),yt.map(t=>t.stdout.trimEnd()));case"linux":return AS({command:"secret-tool",args:["lookup","service",e.runtime.keychainServiceName,"account",e.providerHandle],operation:"keychain.get",timeoutMs:gb}).pipe(yt.flatMap(t=>ww({result:t,operation:"keychain.get",message:"Failed loading secret from desktop keyring"})),yt.map(t=>t.stdout.trimEnd()));default:return yt.fail(Ne("local/secret-material-providers",`keychain.get: keychain provider is unsupported on platform '${process.platform}'`))}},VAe=e=>{let t=Sb(e.name);switch(process.platform){case"darwin":return AS({command:"security",args:["add-generic-password","-a",e.providerHandle,"-s",e.runtime.keychainServiceName,"-w",e.value,...t?["-l",t]:[],"-U"],operation:"keychain.put",timeoutMs:gb}).pipe(yt.flatMap(r=>ww({result:r,operation:"keychain.put",message:"Failed storing secret in macOS keychain"})));case"linux":return AS({command:"secret-tool",args:["store","--label",t??e.runtime.keychainServiceName,"service",e.runtime.keychainServiceName,"account",e.providerHandle],stdin:e.value,operation:"keychain.put",timeoutMs:gb}).pipe(yt.flatMap(r=>ww({result:r,operation:"keychain.put",message:"Failed storing secret in desktop keyring"})));default:return yt.fail(Ne("local/secret-material-providers",`keychain.put: keychain provider is unsupported on platform '${process.platform}'`))}},Q2t=e=>{switch(process.platform){case"darwin":return AS({command:"security",args:["delete-generic-password","-a",e.providerHandle,"-s",e.runtime.keychainServiceName],operation:"keychain.delete",timeoutMs:gb}).pipe(yt.map(t=>t.exitCode===0));case"linux":return AS({command:"secret-tool",args:["clear","service",e.runtime.keychainServiceName,"account",e.providerHandle],operation:"keychain.delete",timeoutMs:gb}).pipe(yt.map(t=>t.exitCode===0));default:return yt.fail(Ne("local/secret-material-providers",`keychain.delete: keychain provider is unsupported on platform '${process.platform}'`))}},X2t=()=>({resolve:({ref:e,context:t})=>{let r=Aw(t.params?.[e.handle]);return r===null?yt.fail(Ne("local/secret-material-providers",`Secret parameter ${e.handle} is not set`)):yt.succeed(r)},remove:()=>yt.succeed(!1)}),Y2t=()=>({resolve:({ref:e,runtime:t})=>{if(!t.dangerouslyAllowEnvSecrets)return yt.fail(Ne("local/secret-material-providers",`Env-backed secrets are disabled. Set ${KAe}=true to allow provider '${gX}'.`));let r=Aw(t.env[e.handle]);return r===null?yt.fail(Ne("local/secret-material-providers",`Environment variable ${e.handle} is not set`)):yt.succeed(r)},remove:()=>yt.succeed(!1)}),eAt=()=>({resolve:({ref:e,runtime:t})=>yt.gen(function*(){let r=yield*fX({id:e.handle,runtime:t,operation:"local.get"});return r.providerId!==Pd?yield*Ne("local/secret-material-providers",`local.get: secret ${r.id} is stored in provider '${r.providerId}', not '${Pd}'`):r.value===null?yield*Ne("local/secret-material-providers",`local.get: secret ${r.id} does not have a local value`):r.value}),store:({purpose:e,value:t,name:r,runtime:n})=>WAe({providerId:Pd,providerHandle:`local:${mX()}`,purpose:e,value:t,name:r,runtime:n}),update:({ref:e,name:t,value:r,runtime:n})=>yt.gen(function*(){let o=yield*fX({id:e.handle,runtime:n,operation:"local.update"});if(o.providerId!==Pd)return yield*Ne("local/secret-material-providers",`local.update: secret ${o.id} is stored in provider '${o.providerId}', not '${Pd}'`);if(t===void 0&&r===void 0)return HAe(o);let i=yield*n.executorState.secretMaterials.updateById(o.id,{...t!==void 0?{name:t}:{},...r!==void 0?{value:r}:{}});return rR.isNone(i)?yield*Ne("local/secret-material-providers",`local.update: secret material not found: ${o.id}`):{id:i.value.id,providerId:i.value.providerId,name:i.value.name,purpose:i.value.purpose,createdAt:i.value.createdAt,updatedAt:i.value.updatedAt}}),remove:({ref:e,runtime:t})=>yt.gen(function*(){let r=Bp.make(e.handle);return yield*t.executorState.secretMaterials.removeById(r)})}),tAt=()=>({resolve:({ref:e,runtime:t})=>yt.gen(function*(){let r=yield*_X({ref:e,runtime:t,operation:"keychain.get"});return yield*zAe({providerHandle:r.providerHandle,runtime:t})}),store:({purpose:e,value:t,name:r,runtime:n})=>yt.gen(function*(){let o=mX();return yield*VAe({providerHandle:o,name:r,value:t,runtime:n}),yield*WAe({providerId:wf,providerHandle:o,purpose:e,value:null,name:r,runtime:n})}),update:({ref:e,name:t,value:r,runtime:n})=>yt.gen(function*(){let o=yield*_X({ref:e,runtime:n,operation:"keychain.update"});if(t===void 0&&r===void 0)return HAe(o.material);let i=t??o.material.name,a=r??(yield*zAe({providerHandle:o.providerHandle,runtime:n}));yield*VAe({providerHandle:o.providerHandle,name:i,value:a,runtime:n});let s=yield*n.executorState.secretMaterials.updateById(o.material.id,{name:i});return rR.isNone(s)?yield*Ne("local/secret-material-providers",`keychain.update: secret material not found: ${o.material.id}`):{id:s.value.id,providerId:s.value.providerId,name:s.value.name,purpose:s.value.purpose,createdAt:s.value.createdAt,updatedAt:s.value.updatedAt}}),remove:({ref:e,runtime:t})=>yt.gen(function*(){let r=yield*_X({ref:e,runtime:t,operation:"keychain.delete"});return(yield*Q2t({providerHandle:r.providerHandle,runtime:t}))?yield*t.executorState.secretMaterials.removeById(r.material.id):!1})}),nR=()=>new Map([[U2t,X2t()],[gX,Y2t()],[wf,tAt()],[Pd,eAt()]]),oR=e=>{let t=e.providers.get(e.providerId);return t?yt.succeed(t):yt.fail(Ne("local/secret-material-providers",`Unsupported secret provider: ${e.providerId}`))},iR=e=>({executorState:e.executorState,env:process.env,dangerouslyAllowEnvSecrets:K2t(e.dangerouslyAllowEnvSecrets),keychainServiceName:G2t(e.keychainServiceName),localConfig:e.localConfig??null,workspaceRoot:e.workspaceRoot??null}),rAt=(e,t)=>yt.gen(function*(){let r=yield*hX.FileSystem,n=yield*r.stat(e).pipe(yt.mapError(DS));if(n.type==="SymbolicLink"){if(!t)return!1;let o=yield*r.realPath(e).pipe(yt.mapError(DS));return(yield*r.stat(o).pipe(yt.mapError(DS))).type==="File"}return n.type==="File"}),nAt=(e,t)=>yt.gen(function*(){if(!t||t.length===0)return!0;let r=yield*hX.FileSystem,n=yield*r.realPath(e).pipe(yt.mapError(DS));for(let o of t){let i=yield*r.realPath(o).pipe(yt.mapError(DS));if(n===i||n.startsWith(`${i}/`))return!0}return!1}),oAt=e=>yt.gen(function*(){let t=yield*hX.FileSystem,r=yb({path:e.provider.path,scopeRoot:e.workspaceRoot}),n=yield*t.readFileString(r,"utf8").pipe(yt.mapError(DS));return(e.provider.mode??"singleValue")==="singleValue"?n.trim():yield*yt.try({try:()=>{let i=JSON.parse(n);if(e.ref.handle.startsWith("/")){let s=e.ref.handle.split("/").slice(1).map(p=>p.replaceAll("~1","/").replaceAll("~0","~")),c=i;for(let p of s){if(typeof c!="object"||c===null||!(p in c))throw new Error(`Secret path not found in ${r}: ${e.ref.handle}`);c=c[p]}if(typeof c!="string"||c.trim().length===0)throw new Error(`Secret path did not resolve to a string: ${e.ref.handle}`);return c}if(typeof i!="object"||i===null)throw new Error(`JSON secret provider must resolve to an object: ${r}`);let a=i[e.ref.handle];if(typeof a!="string"||a.trim().length===0)throw new Error(`Secret key not found in ${r}: ${e.ref.handle}`);return a},catch:DS})}),iAt=e=>yt.gen(function*(){let t=uw(e.ref.providerId);if(t===null)return yield*Ne("local/secret-material-providers",`Unsupported secret provider: ${e.ref.providerId}`);let r=e.runtime.localConfig?.secrets?.providers?.[t];if(!r)return yield*Ne("local/secret-material-providers",`Config secret provider "${t}" is not configured`);if(e.runtime.workspaceRoot===null)return yield*Ne("local/secret-material-providers",`Config secret provider "${t}" requires a workspace root`);if(r.source==="env"){let a=Aw(e.runtime.env[e.ref.handle]);return a===null?yield*Ne("local/secret-material-providers",`Environment variable ${e.ref.handle} is not set`):a}if(r.source==="file")return yield*oAt({provider:r,ref:e.ref,workspaceRoot:e.runtime.workspaceRoot});let n=r.command.trim();return B2t(n)?(yield*rAt(n,r.allowSymlinkCommand??!1))?(yield*nAt(n,r.trustedDirs))?yield*AS({command:n,args:[...r.args??[],e.ref.handle],env:{...e.runtime.env,...r.env},operation:`config-secret.get:${t}`}).pipe(yt.flatMap(a=>ww({result:a,operation:`config-secret.get:${t}`,message:"Failed resolving configured exec secret"})),yt.map(a=>a.stdout.trimEnd())):yield*Ne("local/secret-material-providers",`Exec secret provider command is outside trustedDirs: ${n}`):yield*Ne("local/secret-material-providers",`Exec secret provider command is not an allowed regular file: ${n}`):yield*Ne("local/secret-material-providers",`Exec secret provider command must be absolute: ${n}`)}),QAe=e=>{let t=nR(),r=iR(e);return({ref:n,context:o})=>yt.gen(function*(){let i=yield*oR({providers:t,providerId:n.providerId}).pipe(yt.catchAll(()=>uw(n.providerId)!==null?yt.succeed(null):yt.fail(Ne("local/secret-material-providers",`Unsupported secret provider: ${n.providerId}`))));return i===null?yield*iAt({ref:n,runtime:r}):yield*i.resolve({ref:n,context:o??{},runtime:r})}).pipe(yt.provide(q2t.layer))},XAe=e=>{let t=nR(),r=iR(e);return({purpose:n,value:o,name:i,providerId:a})=>yt.gen(function*(){let s=yield*ZAe({storeProviderId:SX(a)??void 0,env:r.env}),c=yield*oR({providers:t,providerId:s});return c.store?yield*c.store({purpose:n,value:o,name:i,runtime:r}):yield*Ne("local/secret-material-providers",`Secret provider ${s} does not support storing secret material`)})},YAe=e=>{let t=nR(),r=iR(e);return({ref:n,name:o,value:i})=>yt.gen(function*(){let a=yield*oR({providers:t,providerId:n.providerId});return a.update?yield*a.update({ref:n,name:o,value:i,runtime:r}):yield*Ne("local/secret-material-providers",`Secret provider ${n.providerId} does not support updating secret material`)})},ewe=e=>{let t=nR(),r=iR(e);return n=>yt.gen(function*(){let o=yield*oR({providers:t,providerId:n.providerId});return o.remove?yield*o.remove({ref:n,runtime:r}):!1})};var twe=()=>()=>{let e=SX(process.env[GAe]),t=[{id:Pd,name:"Local store",canStore:!0}];return(process.platform==="darwin"||process.platform==="linux")&&t.push({id:wf,name:process.platform==="darwin"?"macOS Keychain":"Desktop Keyring",canStore:process.platform==="darwin"||e===wf}),t.push({id:gX,name:"Environment variable",canStore:!1}),ZAe({storeProviderId:e??void 0}).pipe(yt.map(r=>({platform:process.platform,secretProviders:t,defaultSecretStoreProvider:r})))};import{join as aR}from"node:path";import{FileSystem as vX}from"@effect/platform";import*as Ja from"effect/Effect";import*as rwe from"effect/Option";import*as ca from"effect/Schema";var nwe=3,Iw=4,iYt=ca.Struct({version:ca.Literal(nwe),sourceId:Mn,catalogId:Rc,generatedAt:wt,revision:BT,snapshot:OT}),aYt=ca.Struct({version:ca.Literal(Iw),sourceId:Mn,catalogId:Rc,generatedAt:wt,revision:BT,snapshot:OT}),aAt=ca.Struct({version:ca.Literal(nwe),sourceId:Mn,catalogId:Rc,generatedAt:wt,revision:BT,snapshot:ca.Unknown}),sAt=ca.Struct({version:ca.Literal(Iw),sourceId:Mn,catalogId:Rc,generatedAt:wt,revision:BT,snapshot:ca.Unknown}),cAt=ca.decodeUnknownOption(ca.parseJson(ca.Union(sAt,aAt))),lAt=e=>e.version===Iw?e:{...e,version:Iw},uAt=e=>e,owe=e=>{let t=structuredClone(e),r=[];for(let[n,o]of Object.entries(t.snapshot.catalog.documents)){let i=o,a=o.native?.find(c=>c.kind==="source_document"&&typeof c.value=="string");if(!a||typeof a.value!="string")continue;r.push({documentId:n,blob:a,content:a.value});let s=(o.native??[]).filter(c=>c!==a);s.length>0?i.native=s:delete i.native}return{artifact:t,rawDocuments:r}},iwe=e=>{let t=structuredClone(e.artifact),r=uAt(t.snapshot.catalog.documents);for(let[n,o]of Object.entries(e.rawDocuments)){let i=r[n];if(!i)continue;let a=(i.native??[]).filter(s=>s.kind!=="source_document");i.native=[o,...a]}return t},pAt=e=>FT(JSON.stringify(e)),dAt=e=>FT(JSON.stringify(e.import)),_At=e=>{try{return F6(e)}catch{return null}},awe=e=>{let t=cAt(e);if(rwe.isNone(t))return null;let r=lAt(t.value),n=_At(r.snapshot);return n===null?null:{...r,snapshot:n}},wS=e=>{let t=EF(e.source),r=Date.now(),n=RT(e.syncResult),o=dAt(n),i=pAt(n),a=qTe({source:e.source,catalogId:t,revisionNumber:1,importMetadataJson:JSON.stringify(n.import),importMetadataHash:o,snapshotHash:i});return{version:Iw,sourceId:e.source.id,catalogId:t,generatedAt:r,revision:a,snapshot:n}};var ru=(e,t)=>r=>new gc({message:`Failed to ${t} ${e}: ${Yo(r)}`,action:t,path:e,details:Yo(r)}),bX=e=>aR(e.context.artifactsDirectory,"sources",`${e.sourceId}.json`),xX=e=>aR(e.context.artifactsDirectory,"sources",e.sourceId,"documents"),swe=e=>aR(xX(e),`${e.documentId}.txt`);var sR=e=>Ja.gen(function*(){let t=yield*vX.FileSystem,r=bX(e);if(!(yield*t.exists(r).pipe(Ja.mapError(ru(r,"check source artifact path")))))return null;let o=yield*t.readFileString(r,"utf8").pipe(Ja.mapError(ru(r,"read source artifact"))),i=awe(o);if(i===null)return null;let a={};for(let s of Object.keys(i.snapshot.catalog.documents)){let c=swe({context:e.context,sourceId:e.sourceId,documentId:s});if(!(yield*t.exists(c).pipe(Ja.mapError(ru(c,"check source document path")))))continue;let d=yield*t.readFileString(c,"utf8").pipe(Ja.mapError(ru(c,"read source document")));a[s]={sourceKind:i.snapshot.import.sourceKind,kind:"source_document",value:d}}return Object.keys(a).length>0?iwe({artifact:i,rawDocuments:a}):i}),cR=e=>Ja.gen(function*(){let t=yield*vX.FileSystem,r=aR(e.context.artifactsDirectory,"sources"),n=bX(e),o=xX(e),i=owe(e.artifact);if(yield*t.makeDirectory(r,{recursive:!0}).pipe(Ja.mapError(ru(r,"create source artifact directory"))),yield*t.remove(o,{recursive:!0,force:!0}).pipe(Ja.mapError(ru(o,"remove source document directory"))),i.rawDocuments.length>0){yield*t.makeDirectory(o,{recursive:!0}).pipe(Ja.mapError(ru(o,"create source document directory")));for(let a of i.rawDocuments){let s=swe({context:e.context,sourceId:e.sourceId,documentId:a.documentId});yield*t.writeFileString(s,a.content).pipe(Ja.mapError(ru(s,"write source document")))}}yield*t.writeFileString(n,`${JSON.stringify(i.artifact)} +`).pipe(Ja.mapError(ru(n,"write source artifact")))}),lR=e=>Ja.gen(function*(){let t=yield*vX.FileSystem,r=bX(e);(yield*t.exists(r).pipe(Ja.mapError(ru(r,"check source artifact path"))))&&(yield*t.remove(r).pipe(Ja.mapError(ru(r,"remove source artifact"))));let o=xX(e);yield*t.remove(o,{recursive:!0,force:!0}).pipe(Ja.mapError(ru(o,"remove source document directory")))});import{createHash as cwe}from"node:crypto";import{dirname as TX,extname as kw,join as IS,relative as DX,resolve as fAt,sep as uwe}from"node:path";import{fileURLToPath as mAt,pathToFileURL as hAt}from"node:url";import{FileSystem as Cw}from"@effect/platform";import*as Rn from"effect/Effect";import*as nu from"typescript";var yAt=new Set([".ts",".js",".mjs"]),gAt="tools",SAt="local-tools",vAt="local.tool",bAt=/^[A-Za-z0-9_-]+$/;var xAt=()=>{let e={};return{tools:e,catalog:e_({tools:e}),toolInvoker:Yd({tools:e}),toolPaths:new Set}},Od=(e,t)=>r=>new gc({message:`Failed to ${t} ${e}: ${Yo(r)}`,action:t,path:e,details:Yo(r)}),EAt=e=>IS(e.configDirectory,gAt),TAt=e=>IS(e.artifactsDirectory,SAt),DAt=e=>yAt.has(kw(e)),AAt=e=>e.startsWith(".")||e.startsWith("_"),wAt=e=>{let t=kw(e);return`${e.slice(0,-t.length)}.js`},IAt=e=>Rn.gen(function*(){let r=e.slice(0,-kw(e).length).split(uwe).filter(Boolean),n=r.at(-1)==="index"?r.slice(0,-1):r;if(n.length===0)return yield*new Qh({message:`Invalid local tool path ${e}: root index files are not supported`,path:e,details:"Root index files are not supported. Use a named file such as hello.ts or a nested index.ts."});for(let o of n)if(!bAt.test(o))return yield*new Qh({message:`Invalid local tool path ${e}: segment ${o} contains unsupported characters`,path:e,details:`Tool path segments may only contain letters, numbers, underscores, and hyphens. Invalid segment: ${o}`});return n.join(".")}),kAt=e=>Rn.gen(function*(){return(yield*(yield*Cw.FileSystem).readDirectory(e).pipe(Rn.mapError(Od(e,"read local tools directory")))).sort((n,o)=>n.localeCompare(o))}),CAt=e=>Rn.gen(function*(){let t=yield*Cw.FileSystem;if(!(yield*t.exists(e).pipe(Rn.mapError(Od(e,"check local tools directory")))))return[];let n=o=>Rn.gen(function*(){let i=yield*kAt(o),a=[];for(let s of i){let c=IS(o,s),p=yield*t.stat(c).pipe(Rn.mapError(Od(c,"stat local tool path")));if(p.type==="Directory"){a.push(...yield*n(c));continue}p.type==="File"&&DAt(c)&&a.push(c)}return a});return yield*n(e)}),PAt=(e,t)=>t.filter(r=>DX(e,r).split(uwe).every(n=>!AAt(n))),OAt=(e,t)=>{let r=(t??[]).filter(n=>n.category===nu.DiagnosticCategory.Error).map(n=>{let o=nu.flattenDiagnosticMessageText(n.messageText,` +`);if(!n.file||n.start===void 0)return o;let i=n.file.getLineAndCharacterOfPosition(n.start);return`${i.line+1}:${i.character+1} ${o}`});return r.length===0?null:new ZF({message:`Failed to transpile local tool ${e}`,path:e,details:r.join(` +`)})},EX=e=>{if(!e.startsWith("./")&&!e.startsWith("../"))return e;let t=e.match(/^(.*?)(\?.*|#.*)?$/),r=t?.[1]??e,n=t?.[2]??"",o=kw(r);return o===".js"?e:[".ts",".mjs"].includes(o)?`${r.slice(0,-o.length)}.js${n}`:o.length>0?e:`${r}.js${n}`},lwe=e=>e.replace(/(from\s+["'])(\.{1,2}\/[^"']+)(["'])/g,(t,r,n,o)=>`${r}${EX(n)}${o}`).replace(/(import\s+["'])(\.{1,2}\/[^"']+)(["'])/g,(t,r,n,o)=>`${r}${EX(n)}${o}`).replace(/(import\(\s*["'])(\.{1,2}\/[^"']+)(["']\s*\))/g,(t,r,n,o)=>`${r}${EX(n)}${o}`),NAt=e=>Rn.gen(function*(){if(kw(e.sourcePath)!==".ts")return lwe(e.content);let t=nu.transpileModule(e.content,{fileName:e.sourcePath,compilerOptions:{module:nu.ModuleKind.ESNext,moduleResolution:nu.ModuleResolutionKind.Bundler,target:nu.ScriptTarget.ES2022,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1},reportDiagnostics:!0}),r=OAt(e.sourcePath,t.diagnostics);return r?yield*r:lwe(t.outputText)}),FAt=()=>Rn.gen(function*(){let e=yield*Cw.FileSystem,t=TX(mAt(import.meta.url));for(;;){let r=IS(t,"node_modules");if(yield*e.exists(r).pipe(Rn.mapError(Od(r,"check executor node_modules directory"))))return r;let o=TX(t);if(o===t)return null;t=o}}),RAt=e=>Rn.gen(function*(){let t=yield*Cw.FileSystem,r=IS(e,"node_modules"),n=yield*FAt();(yield*t.exists(r).pipe(Rn.mapError(Od(r,"check local tool node_modules link"))))||n!==null&&(yield*t.symlink(n,r).pipe(Rn.mapError(Od(r,"create local tool node_modules link"))))}),LAt=e=>Rn.gen(function*(){let t=yield*Cw.FileSystem,r=yield*Rn.forEach(e.sourceFiles,a=>Rn.gen(function*(){let s=yield*t.readFileString(a,"utf8").pipe(Rn.mapError(Od(a,"read local tool source"))),c=DX(e.sourceDirectory,a),p=cwe("sha256").update(c).update("\0").update(s).digest("hex").slice(0,12);return{sourcePath:a,relativePath:c,content:s,contentHash:p}})),n=cwe("sha256").update(JSON.stringify(r.map(a=>[a.relativePath,a.contentHash]))).digest("hex").slice(0,16),o=IS(TAt(e.context),n);yield*t.makeDirectory(o,{recursive:!0}).pipe(Rn.mapError(Od(o,"create local tool artifact directory"))),yield*RAt(o);let i=new Map;for(let a of r){let s=wAt(a.relativePath),c=IS(o,s),p=TX(c),d=yield*NAt({sourcePath:a.sourcePath,content:a.content});yield*t.makeDirectory(p,{recursive:!0}).pipe(Rn.mapError(Od(p,"create local tool artifact parent directory"))),yield*t.writeFileString(c,d).pipe(Rn.mapError(Od(c,"write local tool artifact"))),i.set(a.sourcePath,c)}return i}),pwe=e=>typeof e=="object"&&e!==null&&"inputSchema"in e&&typeof e.execute=="function",$At=e=>typeof e=="object"&&e!==null&&"tool"in e&&pwe(e.tool),MAt=e=>{let t=`${vAt}.${e.toolPath}`;if($At(e.exported)){let r=e.exported;return Rn.succeed({...r,metadata:{...r.metadata,sourceKey:t}})}if(pwe(e.exported)){let r=e.exported;return Rn.succeed({tool:r,metadata:{sourceKey:t}})}return Rn.fail(new Qh({message:`Invalid local tool export in ${e.sourcePath}`,path:e.sourcePath,details:"Local tool files must export a default value or named `tool` export containing either an executable tool or a `{ tool, metadata? }` definition."}))},jAt=e=>Rn.tryPromise({try:()=>import(hAt(fAt(e.artifactPath)).href),catch:t=>new vw({message:`Failed to import local tool ${e.sourcePath}`,path:e.sourcePath,details:Yo(t)})}).pipe(Rn.flatMap(t=>{let r=t.default!==void 0,n=t.tool!==void 0;return r&&n?Rn.fail(new Qh({message:`Invalid local tool export in ${e.sourcePath}`,path:e.sourcePath,details:"Export either a default tool or a named `tool` export, but not both."})):!r&&!n?Rn.fail(new Qh({message:`Missing local tool export in ${e.sourcePath}`,path:e.sourcePath,details:"Expected a default export or named `tool` export."})):MAt({toolPath:e.toolPath,sourcePath:e.sourcePath,exported:r?t.default:t.tool})})),dwe=e=>Rn.gen(function*(){let t=EAt(e),r=yield*CAt(t);if(r.length===0)return xAt();let n=yield*LAt({context:e,sourceDirectory:t,sourceFiles:r}),o=PAt(t,r),i={},a=new Map;for(let s of o){let c=DX(t,s),p=yield*IAt(c),d=a.get(p);if(d)return yield*new WF({message:`Local tool path conflict for ${p}`,path:s,otherPath:d,toolPath:p});let f=n.get(s);if(!f)return yield*new vw({message:`Missing compiled artifact for local tool ${s}`,path:s,details:"Expected a compiled local tool artifact, but none was produced."});i[p]=yield*jAt({sourcePath:s,artifactPath:f,toolPath:p}),a.set(p,s)}return{tools:i,catalog:e_({tools:i}),toolInvoker:Yd({tools:i}),toolPaths:new Set(Object.keys(i))}});import{join as UAt}from"node:path";import{FileSystem as mwe}from"@effect/platform";import*as Nd from"effect/Effect";import*as hwe from"effect/Schema";import*as Ka from"effect/Schema";var BAt=Ka.Struct({status:xv,lastError:Ka.NullOr(Ka.String),sourceHash:Ka.NullOr(Ka.String),createdAt:wt,updatedAt:wt}),qAt=Ka.Struct({id:gv,createdAt:wt,updatedAt:wt}),_we=Ka.Struct({version:Ka.Literal(1),sources:Ka.Record({key:Ka.String,value:BAt}),policies:Ka.Record({key:Ka.String,value:qAt})}),fwe=()=>({version:1,sources:{},policies:{}});var zAt="workspace-state.json",VAt=hwe.decodeUnknownSync(_we),uR=(e,t)=>r=>new gc({message:`Failed to ${t} ${e}: ${Yo(r)}`,action:t,path:e,details:Yo(r)}),ywe=e=>UAt(e.stateDirectory,zAt),pR=e=>Nd.gen(function*(){let t=yield*mwe.FileSystem,r=ywe(e);if(!(yield*t.exists(r).pipe(Nd.mapError(uR(r,"check workspace state path")))))return fwe();let o=yield*t.readFileString(r,"utf8").pipe(Nd.mapError(uR(r,"read workspace state")));return yield*Nd.try({try:()=>VAt(JSON.parse(o)),catch:i=>new HF({message:`Invalid local scope state at ${r}: ${Yo(i)}`,path:r,details:Yo(i)})})}),dR=e=>Nd.gen(function*(){let t=yield*mwe.FileSystem;yield*t.makeDirectory(e.context.stateDirectory,{recursive:!0}).pipe(Nd.mapError(uR(e.context.stateDirectory,"create state directory")));let r=ywe(e.context);yield*t.writeFileString(r,`${JSON.stringify(e.state,null,2)} +`).pipe(Nd.mapError(uR(r,"write workspace state")))});import{join as Pw}from"node:path";import{FileSystem as Swe}from"@effect/platform";import{NodeFileSystem as vwe}from"@effect/platform-node";import*as _R from"effect/Cause";import*as yn from"effect/Effect";import*as kX from"effect/Fiber";var JAt="types",KAt="sources",tl=(e,t)=>r=>new gc({message:`Failed to ${t} ${e}: ${Yo(r)}`,action:t,path:e,details:Yo(r)}),fR=e=>Pw(e.configDirectory,JAt),CX=e=>Pw(fR(e),KAt),bwe=e=>`${e}.d.ts`,xwe=(e,t)=>Pw(CX(e),bwe(t)),Ewe=e=>Pw(fR(e),"index.d.ts"),IX=e=>`SourceTools_${e.replace(/[^A-Za-z0-9_$]+/g,"_")}`,GAt=e=>`(${e.argsOptional?"args?:":"args:"} ${e.inputType}) => Promise<${e.outputType}>`,gwe=()=>({method:null,children:new Map}),HAt=(e,t)=>e.length===0?"{}":["{",...e.map(r=>`${t}${r}`),`${t.slice(0,-2)}}`].join(` +`),Twe=(e,t)=>{let r=" ".repeat(t+1),n=[...e.children.entries()].sort(([a],[s])=>a.localeCompare(s)).map(([a,s])=>`${lq(a)}: ${Twe(s,t+1)};`),o=HAt(n,r);if(e.method===null)return o;let i=GAt(e.method);return e.children.size===0?i:`(${i}) & ${o}`},ZAt=e=>{let t=gwe();for(let r of e){let n=t;for(let o of r.segments){let i=n.children.get(o);if(i){n=i;continue}let a=gwe();n.children.set(o,a),n=a}n.method=r}return t},WAt=e=>{let t=NT({catalog:e.catalog}),r=Object.values(t.toolDescriptors).sort((i,a)=>i.toolPath.join(".").localeCompare(a.toolPath.join("."))),n=KT({catalog:t.catalog,roots:o3(t)});return{methods:r.map(i=>({segments:i.toolPath,inputType:n.renderDeclarationShape(i.callShapeId,{aliasHint:di(...i.toolPath,"call")}),outputType:i.resultShapeId?n.renderDeclarationShape(i.resultShapeId,{aliasHint:di(...i.toolPath,"result")}):"unknown",argsOptional:GT(t.catalog,i.callShapeId)})),supportingTypes:n.supportingDeclarations()}},Dwe=e=>{let t=IX(e.source.id),r=WAt(e.snapshot),n=ZAt(r.methods),o=Twe(n,0);return["// Generated by executor. Do not edit by hand.",`// Source: ${e.source.name} (${e.source.id})`,"",...r.supportingTypes,...r.supportingTypes.length>0?[""]:[],`export interface ${t} ${o}`,"",`export declare const tools: ${t};`,`export type ${t}Tools = ${t};`,"export default tools;",""].join(` +`)},QAt=e=>Awe(e.map(t=>({sourceId:t.source.id}))),Awe=e=>{let t=[...e].sort((i,a)=>i.sourceId.localeCompare(a.sourceId)),r=t.map(i=>`import type { ${IX(i.sourceId)} } from "../sources/${i.sourceId}";`),n=t.map(i=>IX(i.sourceId)),o=n.length>0?n.join(" & "):"{}";return["// Generated by executor. Do not edit by hand.",...r,...r.length>0?[""]:[],`export type ExecutorSourceTools = ${o};`,"","declare global {"," const tools: ExecutorSourceTools;","}","","export declare const tools: ExecutorSourceTools;","export default tools;",""].join(` +`)},XAt=e=>yn.gen(function*(){let t=yield*Swe.FileSystem,r=fR(e.context),n=CX(e.context),o=e.entries.filter(c=>c.source.enabled&&c.source.status==="connected").sort((c,p)=>c.source.id.localeCompare(p.source.id));yield*t.makeDirectory(r,{recursive:!0}).pipe(yn.mapError(tl(r,"create declaration directory"))),yield*t.makeDirectory(n,{recursive:!0}).pipe(yn.mapError(tl(n,"create source declaration directory")));let i=new Set(o.map(c=>bwe(c.source.id))),a=yield*t.readDirectory(n).pipe(yn.mapError(tl(n,"read source declaration directory")));for(let c of a){if(i.has(c))continue;let p=Pw(n,c);yield*t.remove(p).pipe(yn.mapError(tl(p,"remove stale source declaration")))}for(let c of o){let p=xwe(e.context,c.source.id);yield*t.writeFileString(p,Dwe(c)).pipe(yn.mapError(tl(p,"write source declaration")))}let s=Ewe(e.context);yield*t.writeFileString(s,QAt(o)).pipe(yn.mapError(tl(s,"write aggregate declaration")))}),YAt=e=>yn.gen(function*(){let t=yield*Swe.FileSystem,r=fR(e.context),n=CX(e.context);yield*t.makeDirectory(r,{recursive:!0}).pipe(yn.mapError(tl(r,"create declaration directory"))),yield*t.makeDirectory(n,{recursive:!0}).pipe(yn.mapError(tl(n,"create source declaration directory")));let o=xwe(e.context,e.source.id);if(e.source.enabled&&e.source.status==="connected"&&e.snapshot!==null){let c=e.snapshot;if(c===null)return;yield*t.writeFileString(o,Dwe({source:e.source,snapshot:c})).pipe(yn.mapError(tl(o,"write source declaration")))}else(yield*t.exists(o).pipe(yn.mapError(tl(o,"check source declaration path"))))&&(yield*t.remove(o).pipe(yn.mapError(tl(o,"remove source declaration"))));let a=(yield*t.readDirectory(n).pipe(yn.mapError(tl(n,"read source declaration directory")))).filter(c=>c.endsWith(".d.ts")).map(c=>({sourceId:c.slice(0,-5)})),s=Ewe(e.context);yield*t.writeFileString(s,Awe(a)).pipe(yn.mapError(tl(s,"write aggregate declaration")))}),PX=e=>XAt(e).pipe(yn.provide(vwe.layer)),OX=e=>YAt(e).pipe(yn.provide(vwe.layer)),wwe=(e,t)=>{let r=_R.isCause(t)?_R.pretty(t):t instanceof Error?t.message:String(t);console.warn(`[source-types] ${e} failed: ${r}`)},Iwe="1500 millis",AX=new Map,wX=new Map,mR=e=>{let t=e.context.configDirectory,r=AX.get(t);r&&yn.runFork(kX.interruptFork(r));let n=yn.runFork(yn.sleep(Iwe).pipe(yn.zipRight(PX(e).pipe(yn.catchAllCause(o=>yn.sync(()=>{wwe("workspace declaration refresh",o)}))))));AX.set(t,n),n.addObserver(()=>{AX.delete(t)})},hR=e=>{let t=`${e.context.configDirectory}:${e.source.id}`,r=wX.get(t);r&&yn.runFork(kX.interruptFork(r));let n=yn.runFork(yn.sleep(Iwe).pipe(yn.zipRight(OX(e).pipe(yn.catchAllCause(o=>yn.sync(()=>{wwe(`source ${e.source.id} declaration refresh`,o)}))))));wX.set(t,n),n.addObserver(()=>{wX.delete(t)})};var Fd=e=>e instanceof Error?e:new Error(String(e)),If=(e,t)=>t.pipe(Ki.provideService(kwe.FileSystem,e)),nwt=e=>({load:()=>Tw(e).pipe(Ki.mapError(Fd)),getOrProvision:()=>eR({context:e}).pipe(Ki.mapError(Fd))}),owt=(e,t)=>({load:()=>If(t,XF(e)).pipe(Ki.mapError(Fd)),writeProject:r=>If(t,YF({context:e,config:r})).pipe(Ki.mapError(Fd)),resolveRelativePath:yb}),iwt=(e,t)=>({load:()=>If(t,pR(e)).pipe(Ki.mapError(Fd)),write:r=>If(t,dR({context:e,state:r})).pipe(Ki.mapError(Fd))}),awt=(e,t)=>({build:wS,read:r=>If(t,sR({context:e,sourceId:r})).pipe(Ki.mapError(Fd)),write:({sourceId:r,artifact:n})=>If(t,cR({context:e,sourceId:r,artifact:n})).pipe(Ki.mapError(Fd)),remove:r=>If(t,lR({context:e,sourceId:r})).pipe(Ki.mapError(Fd))}),swt=(e,t)=>({load:()=>If(t,dwe(e))}),cwt=e=>({refreshWorkspaceInBackground:({entries:t})=>Ki.sync(()=>{mR({context:e,entries:t})}),refreshSourceInBackground:({source:t,snapshot:r})=>Ki.sync(()=>{hR({context:e,source:t,snapshot:r})})}),lwt=e=>({scopeName:e.workspaceName,scopeRoot:e.workspaceRoot,metadata:{kind:"file",configDirectory:e.configDirectory,projectConfigPath:e.projectConfigPath,homeConfigPath:e.homeConfigPath,homeStateDirectory:e.homeStateDirectory,artifactsDirectory:e.artifactsDirectory,stateDirectory:e.stateDirectory}}),Cwe=(e={},t={})=>Ki.gen(function*(){let r=yield*kwe.FileSystem,n=yield*If(r,QF({cwd:e.cwd,workspaceRoot:e.workspaceRoot,homeConfigPath:e.homeConfigPath,homeStateDirectory:e.homeStateDirectory})).pipe(Ki.mapError(Fd)),o=UAe(n,r),i=owt(n,r),a=yield*i.load(),s=t.resolveSecretMaterial??QAe({executorState:o.executorState,localConfig:a.config,workspaceRoot:n.workspaceRoot});return{scope:lwt(n),installation:nwt(n),workspace:{config:i,state:iwt(n,r),sourceArtifacts:awt(n,r),sourceAuth:{artifacts:o.executorState.authArtifacts,leases:o.executorState.authLeases,sourceOauthClients:o.executorState.sourceOauthClients,scopeOauthClients:o.executorState.scopeOauthClients,providerGrants:o.executorState.providerAuthGrants,sourceSessions:o.executorState.sourceAuthSessions},localTools:swt(n,r),sourceTypeDeclarations:cwt(n)},secrets:{...o.executorState.secretMaterials,resolve:s,store:XAe({executorState:o.executorState}),delete:ewe({executorState:o.executorState}),update:YAe({executorState:o.executorState})},executions:{runs:o.executorState.executions,interactions:o.executorState.executionInteractions,steps:o.executorState.executionSteps},instanceConfig:{resolve:twe()},close:o.close}}).pipe(Ki.provide(rwt.layer)),NX=(e={})=>ub({loadRepositories:t=>Cwe(e,t)});import*as Rwe from"effect/Effect";import*as kS from"effect/Effect";var Pwe={action:"accept"},uwt={action:"decline"},pwt=e=>{let t=e.context??{},r=t.invocationDescriptor??{};return{toolPath:String(e.path),sourceId:String(r.sourceId??e.sourceKey??""),sourceName:String(r.sourceName??""),operationKind:r.operationKind??"unknown",args:e.args,reason:String(t.interactionReason??"Approval required"),approvalLabel:typeof r.approvalLabel=="string"?r.approvalLabel:null,context:t}},dwt=e=>{let t=e.context??{};return e.elicitation.mode==="url"?{kind:"url",url:e.elicitation.url,message:e.elicitation.message,sourceId:e.sourceKey||void 0,context:t}:{kind:"form",message:e.elicitation.message,requestedSchema:e.elicitation.requestedSchema,toolPath:String(e.path)||void 0,sourceId:e.sourceKey||void 0,context:t}},_wt=e=>e.context?.interactionPurpose==="tool_execution_gate",Owe=e=>{let{onToolApproval:t,onInteraction:r}=e;return n=>kS.gen(function*(){if(_wt(n)){if(t==="allow-all"||t===void 0)return Pwe;if(t==="deny-all")return uwt;let a=pwt(n);return(yield*kS.tryPromise({try:()=>Promise.resolve(t(a)),catch:c=>c instanceof Error?c:new Error(String(c))})).approved?Pwe:{action:"decline"}}if(!r){let a=n.elicitation.mode??"form";return yield*kS.fail(new Error(`An ${a} interaction was requested (${n.elicitation.message}), but no onInteraction callback was provided`))}let o=dwt(n),i=yield*kS.tryPromise({try:()=>Promise.resolve(r(o)),catch:a=>a instanceof Error?a:new Error(String(a))});return{action:i.action,content:"content"in i?i.content:void 0}})};var rl=e=>JSON.parse(JSON.stringify(e)),fwt=(e,t)=>{let r=e.find(t);return r!=null?rl(r):null},mwt=()=>{let e=hn.make(`ws_mem_${crypto.randomUUID().slice(0,16)}`),t=hn.make(`acc_mem_${crypto.randomUUID().slice(0,16)}`);return{scopeId:e,actorScopeId:t,resolutionScopeIds:[e,t]}},Rd=()=>{let e=[];return{items:e,findBy:t=>fwt(e,t),filterBy:t=>rl(e.filter(t)),insert:t=>{e.push(rl(t))},upsertBy:(t,r)=>{let n=t(r),o=e.findIndex(i=>t(i)===n);o>=0?e[o]=rl(r):e.push(rl(r))},removeBy:t=>{let r=e.findIndex(t);return r>=0?(e.splice(r,1),!0):!1},removeAllBy:t=>{let r=e.length,n=e.filter(o=>!t(o));return e.length=0,e.push(...n),r-n.length},updateBy:(t,r)=>{let n=e.find(t);return n?(Object.assign(n,r),rl(n)):null}}},Nwe=e=>ub({loadRepositories:t=>{let r=mwt(),n=e?.resolveSecret,o=Rd(),i=Rd(),a=Rd(),s=Rd(),c=Rd(),p=Rd(),d=Rd(),f=Rd(),m=Rd(),y=Rd(),g=new Map;return{scope:{scopeName:"memory",scopeRoot:process.cwd()},installation:{load:()=>rl(r),getOrProvision:()=>rl(r)},workspace:{config:(()=>{let S=null;return{load:()=>({config:S,homeConfig:null,projectConfig:S}),writeProject:x=>{S=rl(x)},resolveRelativePath:({path:x})=>x}})(),state:(()=>{let S={version:1,sources:{},policies:{}};return{load:()=>rl(S),write:x=>{S=rl(x)}}})(),sourceArtifacts:{build:wS,read:S=>g.get(S)??null,write:({sourceId:S,artifact:x})=>{g.set(S,x)},remove:S=>{g.delete(S)}},sourceAuth:{artifacts:{listByScopeId:S=>o.filterBy(x=>x.scopeId===S),listByScopeAndSourceId:({scopeId:S,sourceId:x})=>o.filterBy(A=>A.scopeId===S&&A.sourceId===x),getByScopeSourceAndActor:({scopeId:S,sourceId:x,actorScopeId:A,slot:I})=>o.findBy(E=>E.scopeId===S&&E.sourceId===x&&E.actorScopeId===A&&E.slot===I),upsert:S=>o.upsertBy(x=>`${x.scopeId}:${x.sourceId}:${x.actorScopeId}:${x.slot}`,S),removeByScopeSourceAndActor:({scopeId:S,sourceId:x,actorScopeId:A,slot:I})=>o.removeBy(E=>E.scopeId===S&&E.sourceId===x&&E.actorScopeId===A&&(I===void 0||E.slot===I)),removeByScopeAndSourceId:({scopeId:S,sourceId:x})=>o.removeAllBy(A=>A.scopeId===S&&A.sourceId===x)},leases:{listAll:()=>rl(i.items),getByAuthArtifactId:S=>i.findBy(x=>x.authArtifactId===S),upsert:S=>i.upsertBy(x=>x.authArtifactId,S),removeByAuthArtifactId:S=>i.removeBy(x=>x.authArtifactId===S)},sourceOauthClients:{getByScopeSourceAndProvider:({scopeId:S,sourceId:x,providerKey:A})=>a.findBy(I=>I.scopeId===S&&I.sourceId===x&&I.providerKey===A),upsert:S=>a.upsertBy(x=>`${x.scopeId}:${x.sourceId}:${x.providerKey}`,S),removeByScopeAndSourceId:({scopeId:S,sourceId:x})=>a.removeAllBy(A=>A.scopeId===S&&A.sourceId===x)},scopeOauthClients:{listByScopeAndProvider:({scopeId:S,providerKey:x})=>s.filterBy(A=>A.scopeId===S&&A.providerKey===x),getById:S=>s.findBy(x=>x.id===S),upsert:S=>s.upsertBy(x=>x.id,S),removeById:S=>s.removeBy(x=>x.id===S)},providerGrants:{listByScopeId:S=>c.filterBy(x=>x.scopeId===S),listByScopeActorAndProvider:({scopeId:S,actorScopeId:x,providerKey:A})=>c.filterBy(I=>I.scopeId===S&&I.actorScopeId===x&&I.providerKey===A),getById:S=>c.findBy(x=>x.id===S),upsert:S=>c.upsertBy(x=>x.id,S),removeById:S=>c.removeBy(x=>x.id===S)},sourceSessions:{listAll:()=>rl(p.items),listByScopeId:S=>p.filterBy(x=>x.scopeId===S),getById:S=>p.findBy(x=>x.id===S),getByState:S=>p.findBy(x=>x.state===S),getPendingByScopeSourceAndActor:({scopeId:S,sourceId:x,actorScopeId:A,credentialSlot:I})=>p.findBy(E=>E.scopeId===S&&E.sourceId===x&&E.actorScopeId===A&&E.status==="pending"&&(I===void 0||E.credentialSlot===I)),insert:S=>p.insert(S),update:(S,x)=>p.updateBy(A=>A.id===S,x),upsert:S=>p.upsertBy(x=>x.id,S),removeByScopeAndSourceId:(S,x)=>p.removeAllBy(A=>A.scopeId===S&&A.sourceId===x)>0}}},secrets:{getById:S=>d.findBy(x=>x.id===S),listAll:()=>d.items.map(S=>({id:S.id,providerId:S.providerId,name:S.name,purpose:S.purpose,createdAt:S.createdAt,updatedAt:S.updatedAt})),upsert:S=>d.upsertBy(x=>x.id,S),updateById:(S,x)=>d.updateBy(A=>A.id===S,{...x,updatedAt:Date.now()}),removeById:S=>d.removeBy(x=>x.id===S),resolve:n?({secretId:S,context:x})=>Promise.resolve(n({secretId:S,context:x})):({secretId:S})=>d.items.find(A=>A.id===S)?.value??null,store:S=>{let x=Date.now(),A={...S,createdAt:x,updatedAt:x};d.upsertBy(C=>C.id,A);let{value:I,...E}=A;return E},delete:S=>d.removeBy(x=>x.id===S.id),update:S=>d.updateBy(x=>x.id===S.id,{...S,updatedAt:Date.now()})},executions:{runs:{getById:S=>f.findBy(x=>x.id===S),getByScopeAndId:(S,x)=>f.findBy(A=>A.scopeId===S&&A.id===x),insert:S=>f.insert(S),update:(S,x)=>f.updateBy(A=>A.id===S,x)},interactions:{getById:S=>m.findBy(x=>x.id===S),listByExecutionId:S=>m.filterBy(x=>x.executionId===S),getPendingByExecutionId:S=>m.findBy(x=>x.executionId===S&&x.status==="pending"),insert:S=>m.insert(S),update:(S,x)=>m.updateBy(A=>A.id===S,x)},steps:{getByExecutionAndSequence:(S,x)=>y.findBy(A=>A.executionId===S&&A.sequence===x),listByExecutionId:S=>y.filterBy(x=>x.executionId===S),insert:S=>y.insert(S),deleteByExecutionId:S=>{y.removeAllBy(x=>x.executionId===S)},updateByExecutionAndSequence:(S,x,A)=>y.updateBy(I=>I.executionId===S&&I.sequence===x,A)}},instanceConfig:{resolve:()=>({platform:"memory",secretProviders:[],defaultSecretStoreProvider:"memory"})}}}});var hwt=e=>{let t={};for(let[r,n]of Object.entries(e))t[r]={description:n.description,inputSchema:n.inputSchema??Hd,execute:n.execute};return t},ywt=e=>typeof e=="object"&&e!==null&&"loadRepositories"in e&&typeof e.loadRepositories=="function",gwt=e=>typeof e=="object"&&e!==null&&"createRuntime"in e&&typeof e.createRuntime=="function",Swt=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind==="file",vwt=e=>{let t=e.storage??"memory";if(t==="memory")return Nwe(e);if(Swt(t))return t.fs&&console.warn("@executor/sdk: Custom `fs` in file storage is not yet supported. Using default Node.js filesystem."),NX({cwd:t.cwd,workspaceRoot:t.workspaceRoot});if(ywt(t))return ub({loadRepositories:t.loadRepositories});if(gwt(t))return t;throw new Error("Invalid storage option")},Fwe=e=>{if(e!==null)try{return JSON.parse(e)}catch{return e}},bwt=e=>{try{return JSON.parse(e)}catch{return{}}},xwt=50,Ewt=(e,t)=>{let r=Owe({onToolApproval:t.onToolApproval,onInteraction:t.onInteraction});return async n=>{let o=await e.executions.create({code:n}),i=0;for(;o.execution.status==="waiting_for_interaction"&&o.pendingInteraction!==null&&i{let t=vwt(e),r=e.tools?()=>hwt(e.tools):void 0,n=e.runtime&&typeof e.runtime!="string"?e.runtime:void 0,o=await aX({backend:t,createInternalToolMap:r,customCodeExecutor:n});return{execute:Ewt(o,e),sources:o.sources,policies:o.policies,secrets:o.secrets,oauth:o.oauth,local:o.local,close:o.close}};export{Twt as createExecutor}; diff --git a/vendor/executor/openapi-extractor-wasm/openapi_extractor_bg.wasm b/vendor/executor/openapi-extractor-wasm/openapi_extractor_bg.wasm new file mode 100644 index 0000000000000000000000000000000000000000..656d1d1daf0671be483e71dfc3a8d663ad100c17 GIT binary patch literal 514486 zcmeFa4V+z9S?|AJ&ikA*=gdoz$;>3#=OmRxDWnM|F~piZ|F$$ONYR3o%e6(ttCIpv znp>*>(gbL^@mjTN(W+bxQf$$}ty&>S)f9^6FZEA_dM#Qdf34oCc#Yzfsz~qm_pG(| z*=Od=OQ5YUpMUb1v-e(W?e(nntYsf0Duf6{DVGso24@O^cO%PlYgh#Ilj|TkN zO?dM)(NP}x;aR_y5Wex6_^8tLONL!;zNW+ziFP5?uJ&_HSvh36D|r=5AjRL1RCP(D z)%+c|b$5I7%{RMxxu}kt$pWZLyje{E&doP-jgIO!=0PQSk88!Qyb>L~N!8qBjSj82 zy&T_cDW#j;HM)r!qwk5o;9} z^_#x+yWa5a|LJvaxca-^@Lflg|GL9(IQ+WrxcbOzzxCSJ1;NtqCWUvu?X}k*xqAEH zzYBs|{HLWqDK+a8m1etMkK;-_R<6gDvGPQ#H4#sYSK1Tj&5SkM&GJ~i9XH3?<$8In z-P|%ZQE#-`m9a`CisO2lnP`<;>o#^s)W0~MRh!C{bt*vz`0Y?>rCDyQ zA)}=xw@T%xQg5l>70}R(D*SJCDq*=(jw_X{u4bDCR{%nZbrsq}UZqD}Q7huE(rA|_ zr>ALm)Tn@pMkAs=nq27sxm;;iX1PRTV`FREV`J@ho94A!^=LM#t7B1{zh+#n#PvGO z;eKpG6t&mUvdI4NZZt)DT&XuyzEW?muQd2qu8`jahh-|NS0be`1hhdl(@1W>Gw;#; z&R86kE29i{yeXoaakJ4XN9t6>nDDOx7>30f&al!d{iC-)w13KKGy*`-#en39pZuR* z1t9;ZCJM<5f>J%YF8q$~cw=y^R*u79yi#Z0r^k++3P!5$4{MdzzwY&KJpA2JFzw0z z>es*a4d3-0uY+diuYcnku6`5DBlvv0ra;j7Jh(m##|r7Mf9OuPsE>&{(I@M(x*$mUwTjJXG^ETKZ)NR|6%-dr4yy!iqAwJES)Z$j6W3rR_Wo= z2TK2~^x^o4_)nta@&8kLZ|QqWKTvu!{%~}%^zqVAup#@jt|Olpc#u zMZZ>hd+BWa`_T`@e^~m((x1n_RQhD;M@v6e`rXnyN{`1MjefoKXzBja-^V{3|6b{5 zN3ws_+qpg#%)jrJ-SMfI`!l8a^zrXIMK$TEc)s(wFez<~ zo+x!AUC)$yB7kGZZoGu5D6=(sva~B|atq8F7hsl>Amu3lhJzmMPok|+&?{feOWc*Z zm3V(rPQP=$Tjg?FM1zv@3&S6dd$qKAZ8uDhcI$dIR?|aXs&(NnBT1Cj=DQ6pbYUc^ zr{R3Jo>bE*)f1*i=DQ(zO=?Sj^jA&=$p}D`h9Ec6a>Cz%na-!<-iRI!CL=Q>2bYl^ zTzW8lIy}TFkrQ@OYmC6)B(e7BO60TvyZ-x}Q+cgyr^B&lWyHS|_#k>EtF zAPu^8{z756N@Ga2M%L^O5M7}@sqczz1GPzGS9Dxg5OxdKG}sj#(=&Ly$z|W@a*w#o z>s;Qo8mVBO-_Hi~9g1v?zP;N7TikqSFG`~Wt$?Q}UBgY%Oc=fNsp@>^?XlX$b1Gm; zxfi?|*gHv?)7TyhcSpDLur<1-+X9?QH?N)VjqZx>QPWzxqPui$?ut(M>pR1w*=;8g zh;u~MyNXJ0k0Gn>H>YKhS?|@PoT(}0KP0*bIQOqfRPv17|3~gll;^u0r9g&^aCZ&2)UMmL+}`6}Uze3V+?`SZQYoH6^|vsa>DSZI9a%)D+KmH*HgV?>;~Is&wmo z_k1qf=esZ9vS+^gLX8B|tKE(Gg|O&QuWdtRlW==Bf0^t_v@I(2uG$^lr*YiAE4nvK zuDZKh8=&b6G;6P#OOD^o)T;tq6upDGFVF-ob8!>+0-L})vk7c-KcB!myCeAouG1z4 zuab;t0*}A}=w^9v0w=Yk0-U6g)HSc_x^c6&qT7Q>Wv0h8yNr36&0g4n&EC4r-W{5~ zJ2ZQDBo_cFo4ps<>@C~uy@YAbB-ySG){^aM*!ktsh!B^wlhK#7!e)77gsJ=@5F2cZ zPW{UM-L&Yd7%DwJl08n@<74je`N}%u?$6i#lkWZnx7axI;r&;o^pHhYjJr;X}A@@etOsA*^T!D+`A3 zf}{qlAwyVmLs(m32zP1-cWMZCCOZm4xWk69;)f9S^`f+fWE)AouDd_^+U|wPS9f=?lJL73_Z1FON^J1tb zKK0@KyJPZnf6rqV^{$!=Z`!Rp%8_(Z*=I`b;l9T%+8sZ|Lvq#b_$>Kd^+dGP+b8fw zAA6yVeWHyKE{-<#8Ex#zXagRRPwqY4+QP}bBdLiXMIcbd$RK5;?>c!ZNOp)g-0V)7 z(rLrZ?;UzLnCw`NI3hK9ugO|tD|oCdt+2?20PX@8p?`)0EilRSTg7;%`Ti$xh@!LOk#Xm8 zn}1%#ytjlFr+oB-UD2tSL0hQKgw*7;)BhrMCY?pWiqhF@P2z=2pZa{~FI1?W&d&Gh z;tdR6|9|o&62O;30zbcy(7Rz<6zq;qMo^AtioW3g_|T~!t#%%dddN}cC-Wuca=y%mOJ=$@^IVl5 z{QxCv{gNtT5Gia*uCzg?_}5zkq`z7-9&rjt_a(-crSP6+nwsW$D%j148!y=!)gVTb zU(77v(r75rC=W{fg2)U?6a}h^zteL@iR6pIlrM5r{u4g`jGj>>`GtWx#rbsX6=sp) zLva_=19CFO8M>lmUvU%9({+yN=bvxU_0qk;{ko#H-K*BcV?QBX)OjZ7GtG}?zW+UcaxPA`pinl#!wOd9R| z7m-H$`qF5hq|v@)XF(e694?KF4_QAmL6mp3MvtA~UC`B{AlkcFC41Hd5lTXckn~;b z3nJ^HX82G+v`2FUL9}C`AiB)(cDV%6j^r{4qR0f%OPP6>nIL)@g6MKl#U3%F9n2mC z#6k(vy~?EXRdc~Nv;tFXPu(olKQwqqIOber?-j%ndQ$)C71AJ!3AZwld4+bt0I&L< zyVLlFgS3x&((B9y`g)kbwRZP%?!MFRE@XI_SD@OVXGmY@U3AcJJ3yohd1b*syxqF!KnM(I00d@4xx(Gzp4;6#!A zR&fGspB@e-`({YSCgaC@RAAj^lZ}{7wqF8lzj{tv3$tUdDfFe}>*4P;c*V=%?^UiB z!r$p>@qe-tF*8~T!YD4488Ddp-r!6POHBwfJDOf}<{5T0VxI;QcY?_*E!k;zyd}fn z+}}bQTT6wAkB6jR#?}BhE2ghTy0;H1>DDChm?yvcbHDqQm$%@Uj93j?uXT5d*3}-$ zcK6E4s8O&P1M#N1P58nSN@-b@>IRPuzfS!_v~thDb-pjm#yKgSADpg@ zR^vFv4;@q6n$DZ06hP?@*LtQ_aQg^&F_T^RT+{h6#v;pS;C=qowcu4&JwR}Fy&3g` zTV`nI&B=u#$CoqbWcMd~TCwN>CKEq0Mbc7xgKjnw?B=b{4d!N5PZH72K0857J%#$5&N7E@cF=ici) z97-G88a-8Gu3RPF#={qCy&br@4w*Pue|+xg;B9l6trFfW9R~hHIk@URU7xHDFs|dl^NvTpbBuvD1S?Wg7)@->d67Ca8t%=GQafwgC zqRQrK;&tp&b0+OfVD=fG+Cxvpr}lA0DlFzx*q41i#iY#m6vn6oyj*v^9iC6^-4)$0 z1OxMcy=RC1Kvpitz;#*Q9-y5Qdlt z3ZkPuPe$9)0;m#wLb+$~YZzA3%1c^S2~$C$OH<;hs&Iw%B|I?+MErmEw-5e&WtVD5 zSuTNdnS=jfy}|S8n%=17Z^XPIv+ISyeIMNaV%`eVU~6#i2lu-gD&D+diNMSoo@L&c zAo7!lC&yVGuhm?7>i~bfr&Q#x(>Z^=*P6^A;t->a#(+cz)1JS&eEQ+@bN;$Tmd;aE zSvp%Zvep1@AT(26#QsmS(mSH*;8>PnOXDi6F`ftz`fYjKRI);n>I}nI6o$cMHbB0j zFkH!3_@Nm|&NFJN?FMt_xwfbdrvO+Q)tS&KRGHM(KGA~&Q{+Uu1a2w4&t#O7SNQT5 zVDiiWCfDbfl#@lOvKUAalj}VuUA|$`@-s|E`;+MWV9J=Mm|)hH2b`p2B;ONGOC6@- zGu52SKA{ybCoXV>pmrwa6EzV|;V;qBD0n>1+17XlJRWcv=}<##jo}^-E!#1XP&BF{ z+5^LU9`}gg&;{H`r@6nQbJ(RIVN2&zL0Um`C5d_DxtHB!0@2cq&YhZ`r5ov05tQNr z5=$8;Ky3*Sc7OawKlJfx&Iyd0;kLL}je--n#x0^cIUok-?=n=E=|@miUq32Poi)T! zB|2fIAH5{AJfh@MErx>m0voeB7d9RM=5sOTL*vh=69Z(rU`o5WJt(vLPa^1()gDSR z)i8!nR$O(RpSCqiD#yzL!F%TqPY+ak;BLSLM6S7hNLTYr`{b&3AF3jSqZ#i*iqhaE zdfT}!edF(N1Iirx2(A^qe9|-Z`;0|Yevk>ZKS%`69pga_PMp~(-0k|JZLo z{)aqTA%YlwFzzl}bsuuV$XkQnFdPK_p(h8E-0= z9@)VO(;IrJNeB!@ZlqWkjibXDSJIgNk=dJf^rz09nmWyE(O{gtDUyG4v|p@8769-Ym`7t>xHc?A3X-=(ED=DA*uFU0S>%%{Vhi zWQxpV8gGSCY%vA|7Yj_eJaR@ksHe_q*6guj+-#%%Bl{nNE{iIhrLlQ^IG~D$D30(OOiL zzEwT9H9>kA{P%cQ@U&Kt0g(T%7ZTBQX+ve8k6(h4TGHBT&?25wS` z&{w}nRn+~vn;Z)-CD-hZKC50a#h%pl6?=n6bfp6Fv535TCJ0Bs=LP!Z}t)H z20x|u!8P{Fgb)|&?o^TZ*^QP-?}5Nvz>JTHsKOPh&c9wuc{rG?5HJ&E(I)$|UdY?I zQ~-^7n3YQ^cr()2Ef+sRSfO8z;%YAK&JQrQTcazb0U7tc!uYFMr$n8|@DwFkoT$0X z&cJrf7bN4iixg03V32&HShj_>VAVm4gpuNEi@H~iI0F?S8G4j2h3=PSOMb@FV+O_o zL|?XeC2ZN?r1S$?kGJ@w#UUs)7lN_^x)Xf$@sj9uC}ll71c~81`0Z+$1AiE3dNQ+w z`b)ErUVk}tVDa?J4(pNX;lg@$W?0ptRx#vjSBBL}!Q$W5C175B0}VyXKr9gvm8Z2K zE&br7bN)A}B#=ora$!AR22L%wK+Z>8l7gI*ZY2-v*|E$*s`b-N*sPxmL)-FxLOnU{ z>^fK4vGAoYqo10UqV&9f{Z&-!AN|KqmP!4J!g(%}7{YwSbN@2WL7(T7FrhBDWqR)ZpyjDz5|3$!0VTbz( z>=?o^f`ydv1$^at0TK6pA`+BzrmrHixD=%?>Z{0-grAIZiOlq{^4(O|Cu%H^a(%K! zIG@wXJ}E}Ni&$3Qk$38v5wKH;ZmB!89IFd0G6cGz$DsK+ESL&QNs6H@ zdE&odl*VvE(eyZx872)^jGRPXwH{^3hH9A^ISNaC{RXu#Fg7h^7Z`bj%~M3Hca@0- zWR&4!7F}0AnIn$?_+UUXoR(x@$wEI(FB4wcLw7dma4BrT;f%Gv5 z1m#rNK__dH3C3$2`b<+Y1~09R7q*G8u1Z2Ul88jkx6Tj5zV+~|#0(Shqb;7ga@266 zSediJvOMRyVxil5Cn0QF@06}!{soPrw_*C`%K+WWU~_`Y(|z435)3SBOBNPR9W$`Z z+^U%|tH$g`MUCgAq_w`#M^;HpAcsn<%tjg*{w`muG+i@Tdi6uCj4A7!7F2+%^y7!xRqbw~lncvgh`k?M%7dUWeA}R=92}Qpb^l-<;6L@!=cxZzRa9HHDpd- z)C0K9>HS@Xz}Q=5U`|8s)UW0}1>M=OX`rMZXinEye6D13+G0?T)fdj`m)PE;oooSN zg?5|B>uS|^x+;!|eOv8*i{|>W#cWOg2Q<8f^UE37Z2o)RV1bb~!Wy-2**zG_3O}%b zLZ*rZ6lNi=n{F!lU?Q+eG8+9ZKcIN8%Nz5 zH|)G4@@E^K=c@ncD7HE{cKTS<0iHYd|7-(*mKP^dYl9lOb-wpCQhhAdTI`zM`|3P(YCf@02P*=K z%-3uW;KjVmJdDed%&_HO9d`(InDuFCY$4i9>|fS4w+-;wYwv8+w9#NoB$cw zJk|9~wj!j7nXUF3Q^*zue&l3-Vc-W(_7?`ko+YEip0zOWl!bEntqSr!;iFCpj(VY6 z`x2sjUjpyrk1wu_=y}MhG0F}wOrMeZv%t5$%&IXRF^<9FMSp>zuxe}_Wqwzw^=lLb+B#)Nxx0vE?y1TuASz=>8CoVz!Bc%^P)+6_grwUr98Wy!N3n zZma#3a@==ciGq;4(ilo-nPb(jM5=jX)f(|Q>P_-W9D2Ias7Iylusrif zruLZrL>e^6?<0tn!Ig<;dd-eLIw_d_rifjSO9mgBmU(&n!~6FJdcygu@5#kT#~BQuU_s}f8d#f} z%GaiFjc23-nfFO&%CAkieA;Y^z{+b=_kSpxL)(ITKjga$txE&8IfT^I+LUY|&B_P- zEVVcU%`i$Cag-mFPOM>OdtT>O%nB)gmh%qfG?T9!OqGF%4`Ey9y%1?$)|n;A z*3SPXmFY5)tkYuiR^auu%20ZU%_NAvAAfNfjLR|ai{V=CPJ^J}au+()pR@PEkj@Vf z%mk-cO-O5LVe0;wQo*fB&&;iP+lRed6EpL9euOVhE-a4qQ}FjQLX{g|&nDc6FBP-nO52d=UsPumh#-~%RP5{ zP(d7nj}~flMk`LAW28-=Go~tJ)d}12%&=$xiKJwkNK<-PS2QG|d@PP;`+TxHc`;_9 zv{Kc#-Hc9e3%*D?Cb7il2SNHmR&CTODYcBD89JTaa3o{l7`vAcY=+NC{wJCtSCed{ zuuBxBwvubMCeiZ=b7SZDOQ{t$VvA~0)7(yMLTbYF>kiTRFx_-W9$jv(zMQf<)5?)# z~YG z!&6G{I&qw@k%&zWG810#iz-G~-U9G&)qLr3n7uT<^V<~3yeL~$tg+E-VeG zw=9#_?2b(@`;Xqord{5ja-plTnLp=d6A>yRbLzmo<6nkwFZU+Fi`B{E|9{{72^D?# z%EFc$O$oDR3H}5-&+JW4QQcQTB8K2sK}nuJz1ZRQ5*#B@_nVA;Q|h_q`^S%+8sz($ zTcvC{hldrHbL1mliSL)Rg&lk?a0ejj#0;E5>M_n5zK*l7^&BF6<~zTv5}HK!>AVMw z=pk5IdfDrll8;~hve#0)Xp9Gz+V}6uwtcSY@j2B) zu(OBbc{0ay=efYMn*)p``|~@TDw2G&XWIY4Gj06H=}#YLrrMBurk!znxQ#7X7{`Zc z@6HFUoUaQnwb1lTO%HkQo-_3kL=7LdW{<5~CdIT>$xV;_3#W(ac!TQWg|HNR^Fnyf zep~oOW7EED?;}G|%qBvH(`Or_&kVz<4qv=eSaPLx9nO*UGAsd1^1J;8}DUPh;5p4)+)}m&SiA=IO`&WiHszZTyp(x z((K&hUZE9bNgsv`x5dXRyZbIf3~)JIZm;C8nw|c!Y}JW18&ADVXYbypiE24*l;4bi zJrbbHi{)>(nYjZ~pQVYc1$U}&=5S9Y@N`RddjGB4bB9%cQR)s1*pu(T zOtqAaedyA+52j-kxO6aRbu}{GDU2t5TjO5IS z_NPw-!ljOzBCw7pH+`~YJT2zh;Z1#-l*?X}T1)z#hhr}30t!o<%$;j`#t=FNAt(Z_;c=rloZT66TC6N2E} zJzI1Lj`QhQPxr`sjS_eZIFa8={oJSPH{r_F^;LF~Sd_fjP7>pN=jP`eq$que9demp zK1v_vDRbFJ>7zVl-ux(ioTtpuAEi(5lr08C>1TP;0W*sF

`;TOmqz+gS_t{7!kB zpQ2PHFGVY!tZ*idTF5AeK2jl0a3*rTqc$o z(xxKEwA(mPc*xjx(xw(2G^gExcveT$>y{>QGienTbw$Hnqv1PP84!hQZp!^h`Oq(4 z+pRz5gR;U-=YN|2r!IIt)=C?>oUb` z6i&kjJ+?z_N7gD{nw^gcCiC+#bpYS3_n%@`6wb#y8FtIG*&$SpP51Ec3858~*~JJ2 z4TA{Paek)UEBsTegVXJH+bVClzsd{N)7wAFqQgIHcR%#6`K4g_lM=b`kbC^~PDwBu zv^$;HVZlaOtmyN5CrfPC=;hB=pf;{&E8RvRQ063wb2?I}FiTBhF~5qllm|CU-QkK0 zC+Z`x0!`G@VhPzqJ;@AoDrCb}3NTw7f7NW%=bGN6h~G5NK5U* zQw)@%5)AdWzMl;aU2@58aM=5Dw~OHEyd6RmCpV>vU)d;TvPgJFolgPZR{r2|Rm50g-=b%q6K@4tul+gQj)UMTOh9@9kC&08`Qp`S~I$V?EoH$_KVa7c(H(gLJe z=lc;-1jO0?bL=U>sDh46lB3RfFNa&R;}u?%GGo?d=Lbc>z{TBBSkhT+Dp8y|brzMb zoI#~KErkAOy?xwBRd=^>^g(fFbr5RL`M(T1 z>o0B{B?OSbNUqU2nduFQ7fDX7;ng@;mm-#@{H6YEy4~of8$GiaBD^3Loe8M)%tQXr z6l(}`^o8Mn4Yk+(4qi2|;!q72UD<$xbBZFB!zx^+kW;1vI*^dVg`P{;!ltZg6<3-! z!4M_w+*BRu+Q(9`6oQoA%POcN*u4ZVB}fc~tcVyy6bj#jC>j>N2SODu8D&#n`8qYh z&wfRWh~l!Pd=cow9Ik;*;ZL$9EU%7(!X|TmPRJ>p4$Y}Y$QXE5+$%40PROenM9xr! z=D>*dRrRh(UcLHLK?tbxr%Lg5Qszt$@iR1EPDd5rs7ni`w{|87#~Up?6XcrYnjvR` zKoErX!<%-f&g@JO>kX4qSLBW7O9S!-*(NS+3$cl~ugM$n6NyyzTHDKT-w38l)1ky9 z%)}0P7Kwn^k@6>d%T^<88fH-)HW81NP41{hHkgT%Ft}$V0JP=YgdcO&VCjGa1<@hi zOOEdH!f32g{IxJ>1o~Xf-l(g^Y{3RP^vAg>HY+qwW3dZ2CnG;6g+}^P?=>_teQ}sa zW3U{EG27#N)Td$G-ic4+J62LCUf^ti-0k=cqzNt5zKyDjWTp?n9~CeCAYq+ zBMkpt>inidpqJ!2ztBw29|#L*cqq)#a5DV&iw1dRGSkPS0nN-zDq)1_?{Fg~AsnHJ zNymhGZL+hGZv;;U&wOg2eEAH8>hcWg88#uuK1{3|8dr4lLo8Q(8R{q3sV||lQ0nZ9 z({eI`!~+uM!$E2dlab43d_9@$6K`?#c$Y2DUYkYecx_gVrtz8lhimnnv6^PiS0}zB zkJX?urtLC{5wh8B(J7D)VQ%<=O1LkOCIOee7ek^ja}eg94NXM75}&R*Al~6}%3RzY z?hucQNt`pL#)OH%JvGF~eY)V|R%rY8s|jZRC{l;JvlZtzVVAcJ!Z{#MuRmE4>KM*G z+Drv;l|NF|Xjdi`lRMEjV0m5g)_5n3qdY zvxL^AD#ppQawQaTxG`R>ku#^2)B);!*0JTf)Zrw^tso>PMLef+$zzKANB$&30p5rn;bYYc$D$_*^<@B3zn$--3%y#N~oC)CIvD?RUO-Rb4@Cai;~= zuTL6>62gZLag%O*6F(Dg(rx2S*K2=EC7pf~KWj*N<{s7qdM)V#0ErApBp_l0N#puM`aNXT8wa4? zQPn%zuXi-BmmJm0_TE-fo$qxLBEG1h%aK4PN3KIL9fd}lOxc~ zsI_t>tfK`J)G)#8>jZk8fnMi8|G_PP@LPC{*E28z-7(M|1Kj~@EnehTpu=?10IwC` zwSB;AbHL;X@N_aUpRAWUIgtRI8YX#tF~a}m-4A`DY@mmb8NhjwUk7?>b)aXGNr4`9 z2wz7H>j1qN;dkBo#UJ`^13i??G*VI0aiC{c2YNPHC(ulq-S3`;B)|2+%8&+4ENiI&lbx%+?kte61$eTAN&J-Q@b{KmEczj>1j_P+iT>o8$R`&$np|CnaL8;u(>p`>dVyYVpw~OlfA=f@@D3R1D!5sgzG!uz zdqVhR0-0@w(AP3Y)-t&^3-o3Kz1e~O;-CEE+p+Zly)v2YSsmz!WUW9$W?K?~1A0B6 zw+QqW1HHw8zWe*n{t@$f-DTk(CZBJItO}v zavoGAG8^Y>JxxG20X;6z;|6-%f&PsTzx|5=1hF!iO$qdrfu1tZNaZe=73j4FdaVP! zSwpc!WVVKVX>CBa0lh|`*BIzE4)ntx{lya^h?U7~TA-&5^t6FSD)+#wK(9B@>mBGV z2}5z7$ZU#D5#xX!2lSLcPZ{Vb2l}rcyX&th)LfaH%?R|2fu1qY)6kgaE1)+U=*pnvXrKlv%tLe7I(iOgmNde%VC8t55lO!F1cTMYCT z2fCRs6nu$tzBj|Uu2X=X0`!bP&lu<#2m0|(edJGJq~j}-*#?2$V4yb`=vin?^A*tN z8R+vI=yt+TjEl@>6MzGH8ql)>J!_z69q8Zxp+EZ|jC9S)WVTVDHyY@T26_WDruho! zrh#rc(Blb1u|{OJAptm`X8^rHpf?!k4G#1tf94+^gqv|P#7er^CV}2$pf?$4_z7&Q zEzoTP-FBeYBn-ur$ZTT*a6r!jdZR#ZG|(Fz=)bz{Hy=bxnO>R95`j((bYh_4C$Oz? zfgU%|;|}yx!ca_$%r$m;$egE6B43dDcOm6uuKt+4A`QpP#(zT_~hRgl>*g>(sVZ3u_VmPh#efB5@;01E)nE0NhSg>(sVZ3s7+ z3GgLZ_^qEl{UgZCRgl>*g>(sVZ3u_VmPh!ze&^|TATw7%X2TTHCB(HMd_|f0@rVEX zlmopIHyfsqE+MWB;Va6_vp@R&A9jLkC2lrMAzeaT8^TwVneTr0FMN1)GIN+hx`enk zgs&(wfBcb;-?loLxky~YPnHnZhH%Jid6sh5ZBN|qK(EBj&Ouxo!dDcUxBlfx;sHhB zE0Nhb$ZJFRibC`3sh@kBlh-Se**VB-L->k9^GDzMBfkyk?#kS3)$%%#meQ4Kwzi-Z zE_NUtf9wzc#(`c*HCwg3-YBiGE7eR6q)ZK8>_B?>f4%EhC`7MUBC{prbt2s?G2JY2 zy4faagXpRwlD0@Wff2DX{ki+oo?H@hO>QLIR245cN&Ed$(gfIt76fA)F28MuXUpWFH+zgjt#@k&c3 ztR?uGwNN~XX$S0riERe&48ng~?G~9uw>_gFWV8|Lxy=?3Yl@Cg%wrnP35w zg>BYedwwPq%YNkPSuDPQpb= zCHRX~@k-~hu-jCP`U;ko@>|?la7%a8-U!@NuTA)ZmFU$wzZ9`7KAN<2Gp4W`);$k& z$5joxe5kgiKX=4HN4E!)&P=-LhVHmR&K#T$cMi^&!D%N}?*wS>sNPA{3xyqU5qE9U zH75MIdMTfD4km4@mqYA=ZWH&Y0@$rO-@1BMop$u_M%!06N_vax_;b~%%~V&Ye2GM+7cB3{Y~FV#W=C;R;%*s zx}(XO?v%ydKmkNEO{H(vuGW!c>hc*2?_3X2#rs_=r>&K}2{-)NuyoR>JHy|k@JZ`6 zaJ^Z|^fpl0XgP?YC?vX%5=rO$AV_y`$P^p4*B^>IkfHAv4;YE7Dm&cYXR1ma8?fJvaZt7lxRu<5B}bL zpZe4BOn1^I7tNe5VkT)7umVQN2Pcd%2%6D27Er^euZ)`3xud3aPN<=UhS0)WLy(j8 zfL(Qqa74JL!%wS-pBcw|CX*S>LM{io8#Lsae;e?z^XF#ah;EJ6VHO);bBLxRsDv|c zYXv1UQ8eF(p0bbji5eA3Wpj-%j*NhbIAQWFCSU?WAm5F}L3(D%cheB^o$ZtFrks3d z2grAJA^Ey@Jo#?&=Mo)h?*AO%mp)h8PxR2H-Bpga=sMuMOti_ z?`|+IR;1#YjEXlx#r$Pd%xy-+GmeVC6QA%5%VnO5iO1^Ii=@mp4iRTg&4j09)J#B+ zr{-y>)mSM#Z7AAi2sO6{m~nduGj{TJ31&Q2V8){6v5XmyG38*!3x{k>jMY=-m}AB{ z@{vn0yzCvL<}n7uG2=K3qNE9 z)naU+YO(O0A=2|%r{;-sr{<0D=5t0(K}pCa`ZB2LQ*(~cA;@vmJaG=xJTanZh|Iic zClijEC%m5TG>l0o-cxg3w*@_4)O>|Z;`$5|Nc7x-wGyP$@!Xl{Tm}B-+!;l6p8ht{ z?b_tJ9%E_*hJ(T`C0p;$7BuV0T>tNzJ1xjwjC?}#Pj5=E-X!9mDKadT7+_ixLs+@f ztC!$cMZFqV;v(t05#V00-jFLM8w-j_3$O12>FeI{iV4!p^y($vLE5caF`39%`GDRy zF`Shbt&IhGb)S{5+T_6Bc`dl|(~#u#YZdKDK; zDH-dkXE=IdSYP_ogQtRYBE97!Y>)jb`!;w$&nb`HS?OG&eb#3BYl9tbnZD^y9O+bd zv|#qHfuoq&zh=Tl z5b?95Y@Qs-o|Z8CmtjwRvwzh}_;aAPK$@#iTvlZ_4X~%B%zm+_WzBvw`XibBoU(&R zUBc|oEhMw+jeLh&{zkrw&HiVMd}Z4%)Sp%~lnQ!%rau*I+u?>%;hiD2z&VpILMXgm zCY>oFgU+jGmWm~07hjDG7!@zpK)w_zhFQ-pY5j|sm$m*!ktHzi z)mr~KQJZ;>Z?%yQcK{3}YGRWMPRFIK|0Pt$=h(!}cyjJBI2WSMt^Wa)v5h@YBPnrD_L>KO@~b0%tx>VmU+7*WqGQmeld%@Ga^Q7_>Ha74X~6Tn;m(W;#Q zIZ>OHk5<=6`+k7Qf*)Y0qVWt8^}lvSV@aZ(7E!}7jZ;q)4aEU}-vV=Ja)B>k6;8kD zAw*rU6sL2d_Ew+Q9CE`ZlVt@ijKAEVLCJQBN-K3mDKhCgls*)b|D0 z5@I`FLUd{eq29@avx?*km?-!HyeEJ?!>jiNFf2L-aF{z_jp;7l9gwX9$`9b}edFy; z-(KhwuxYT^9Z+On!`uO@=3K+Xabb}A;`m$!ITOcAyfeh&T~cAm-2nsRyM#NSDDf81 z|3ap|3b7|o$wEzKMbs2MCEiUqK>vfN$>_iE))3^Zim4CCzNOp&a)K@E4v@Z$9nWHI zrg1Of4$z8hM(~3kfi=z}5DnMZ7dr#mI+2E80mU(l;u=`vT?111dv+jlKzkaQYk=i@ zOkPgtB-jkMz-WS3VZIy4@CTb@c(=e<>fHkCGPeNc@yc$2sW00tKr6gMBXbO>&XpVk zG@Qe+=ta5j0&wvoW3u-x+JlASHa!f}JLC`e3!PJlJ3zc86^gQu5R$8GwdWv*hrTu% zJ6gG!Fp}HDgS}{ru%v?kIjP|Rovy_Rd7RrCyeN7yd__0*E;c7wROkJ7WjJOKvxaqN^k);LO^w3K`LDXQm0xI4ba zWEa&u74}N$RUFTSsw!tnDg9>iGy2n@zH^>zJ2)9dp#-?RnOUh z&FNE*o(j4psFGj}ebXkr`vXcK7=%{03?0@FT1!mOw)h%5PBp!Tm?3xf&75$-d(?T= zd>ZPmOzoiTOrTFBdVDDo#HZy)LxZBT2H*=}FHW~!3x8xovAI&kg_w2N`wtFfBm z{LmjK_9t|op3&oPlzMi=Se#A?MKNbj#x-8;%WhI;yh=|_UZ0{zl# zhnd$n$XDi&IZrkxW!{09^ogTrzeeY}UP+NH49-jK%YQM1Lr$Dtb12;}P9Amhr0Wi) z*C;8rq!ce6`U<{6#cApaLyK64 zpuvQvaYS|CK93IdE2+VY6LaBByKTDTYm6D*>qw-Y8|RMR)MJL+m_9GKHEm6rYu#dX~K$g;D%r4HEIzK38(7~7*6Uo)P(~WBBXB!hT{E>>t?udSBE$8Jy@J?uR4&r7MDi5mC*mIaF;)1iAsVY z2^(rLr{xG8S&Pf^40CLzPCk9!OSo7;-2sF1m-c|9GTdfs^dkA8MLIaptDXN3Mouoo zmxhG7Y3AzGy**r?C%$Ea9gDs>Rq-;|e%X_C2wB^~#RlkBwFrX)VCA$==5Ei*EZHqX?xj ztaHTZX=qavjr7OfbBbw`{`1{jnxu~M*Cwaq8o9dPB(@I^ziEE-x_I-@fA!6cV){r> zd|Ghd-rU;UQQEl6Xl~v-x;czCZ?08*$r9J<=6I~UdCg`~slsqQMH{Koej;&AP|p#9 z*qj(vhyqpUxjD8(W=)x$B{J*EY%h`7Q0C|onIp<zoL)L%FR>UlwC{gB z9MZAj$@f@Y#@!au4b3~Zy54JbMI&=1n^L1TrC5feogH}JT+P-h%RG+4fkcZUO|4Mc z91~CKv(uK?sYF(5F`H@)W1+1An=%%PT5K$I&0-e1RxET)#zIkyhqKVBXOD%h%UI|- zvCy@Sh4x!&?U`E4LX&c78PWE%*l+2Z-!v5V?CV@!wK@EMi&GbaF1#->YWk!dKV` za$cgCE!(hwShngNM8>uV&jve#SbiDZ^AK@fwG2*KAX@^?S-WvsIs$xJt6c_d4=Q>V zK+!NhB5f6qsSmAUAI28;VJyemfs=_6_>u8ip_4dicv>~;$LIp+O9D% zU?TDK&)hH`0QJW6dJ#YRBDf*rSV<+Y zHq!AM(zD@VnE!%umf5_45P!7TrSdDwOfkBJ&M^7D7jY3K z7DjxLqYDo~5_JABLMeCdZr3IAQ#m&;j;^rSrOeHX18d=b&&kgZ*n?#LrVK-?sBVpO zvJF<*uMoWvgL-GjDD&K$)o%Fj>LgO`b6NCGzBtF=)eWn=ON$CqCwi*$o`{q0UC=Ugt z>{Uem*62!k#7hFi?}*z;KYMzmgLrZ{T|Is&PPS3KL-Iab4oDmFoY-p@>9yAI z*BY42?zKyM@18@d14LD_jHXYFezE>7gF(Mx^Pr4YHMV_LgPR(6c3p4=&B z#xkO|2@q$t2k0OTg}@n{l=Xu4Yn%Z<*t|^VJH@;g-9Z zbS-QQCNEy^h_nV$>92pFU)kCTXZ%_FuoTlMWvy>UJ`boxKihkigZFkP{1Qxa4bE!7 z4R|jLq=f?zZ^O!E*s2Inwq~}=HPq7qw9A&;C!0MWB*V*d0! zIUTZox;45&L>o|^`$ChFQR>FjU#ZvpKNx=V*t;zog~X_(bAvbx*5-3rNzf3oclI3$zYcAm@O{qymBZ z;oY9Cr`?D@A&CixwvYCKaeX!hB4yzz+U^$({X6@XcqcOIfN_ayvGOxmqsxWo4$T!i z5tk2mHPAOnySPduK_14jtm{LF0%e^F=lMO&FI--qGVR^nbEZ4h? zI})2baZCY=g>$x+3J2X5PwkEp(zyefEUz95|HA}5pXg|rq{mqxs#F9vq5>{VuV zMJMFG4@gUn-<>D{RHt`_7xyYuqIKyM=S^rLu$1&JjP6o-)zZsqsq&J(l}9Z-t3?U- zgtW<3ahH8?qFBx53!~F|LDg(7R`VpoPBokJY95aAYEJW2$wF&r`=gr#rB`{dYbQ)3p-vvq zaD|j1eMJp-I?CQjYRtz=T7kfDv zL*JLtH~3ghImE^>t+?wm6P$uwar-Gae57e*nn{(24O9Vqii}Z0j+LX$O$>{Rh=P zVht2qp`-dJrbB0gst8a}X>h}`v78r;UEmP{YY3yal{wnFk&NpzJLxvIx6#1pNEbS` zPr^ZKAt@Z6qAD3WYYRXf0M|04A__=Sy<9&B4tDizyY#3?g|F)von&JP)G#R6e7TTLOjCNc}QwV4q&@{S%cJtx3_>h)^^?uq^EBVwO4*0IAUFjFt^;12h@2R;| z8^G|ZqhPLabJD%3XI#LBt(sJ`WadGhLsY;LIUsvs4)fSe)^3;9bVNKAHI{jALup?M z)*yB(3mamusv*3i=}ry(S97L7_nI0-`or$EqMbGVXMFLAs>l_{^aQ66C3UhLuh&Pkc>i{y6^x@~9N(p-l0!O|h9!0t zyWhUSE6J06_}$XdNX2v@k1O_=eRi}^tj}>)z5@*Jr!iIb)*4@02kYh!rZ{3^#<%Sz z#o##j+`>QYJ#I&nN$V#^*4uSGvvHcSpYAH!IOC^ki3mbGmAFVJ4IFDNu=rlZ_$mAz zFT4T+R9=gWvq{sofYND6i&SXEI6c&zB@^bT2VUiZaND3XD*{h+4b9jQVg$h^X+jL+ zaM>n_hG6p|&WfFzcq7twK)lUrDwmY#MVr7Q;nsqNtRW`ZOm4zZB{v5oTUFG>hgwe{ zK)bUe9QMj&}Zk@fX)pWlG#bc=|vvNJP64f zgk+6M5y=qibBSavB^GsvjY}Yz_}x_^nX|S^$p(`zvuWwD@H|BzJ%2V8kTtaddd~2S zO12_33(p%M;0({Ymv*p#m@_;tN6he!=Mv8giFqkJPp%rziiUH<%!%}-hD(lo2oeVT?$!SzgHE1qoJ)3N>A z=e3&W^eLUH%^#y++Hg}F&gR*Dy0lVU7z#8Cd&-9*Q;0Ve6yi-wnmoir&4kJD!!gJ1cIKzhHqPp>n|HUthZbyWSlCSL0_6J!xuZSUO0?Tm)N*Jh5R@jUk zVz<~r15NqYZnrem2iacPoX;$!n|jOIEp)%2Zf|f$PHxbUjWhFd9TCAxC1#&7W}brJ7}a#2!DMeMGAhdUzo6z{d;y+;~>vpV9qb{ znU~Xd;ze=wW$uw!j(sRi5vpWSfK@2m7Np1flQR1R`FOW1W?CrMf(@0iFp_ab;7)h1 ziMQmE!VElpOx^skcFd9-u5&@ROReTw9T9Tho{XS1+|mR0cl_n!@v$CjC-hXqa zvkFN}FDz6j((O_utrnx>i;flfm%ZOyFuGm&_)CXqsaNMHuNpm2K#n9e;w^f$w9X;{ z)>aMSxHY=}^K)r!k9&Zr6{W{1rk=Z6R8EDkypY!-nEeK;*41 zVyD-~4y!~Nc6v$onAfS2o`|`Km42qr>avMz32dm&Zcj#ZZ2%visaA~KkrJZ}t z*E^nuoPbw-5bdq>V6Sp%Z-Q{CYEnA*AnFMdiYTiCGd7^!V_tN(Ms2&Z1IUbpmfZu#3;A=WDT#jPswPSmP0rc?MYmoI}U*xL4MEb z4}=>lQdGra3dgOuT7)xga)j&N5H3HPAzU#fT_GGM4kV-SW=7#!S1Pa+Ook%DON&{` zCTU4Uma=gXODP?|fmviJ8<%1!vnW5Xlsr78kMO=H*RvFp2dic)qe8lgIgn1DKsw%d zty!2ieuMYM8~Qv3ksA<@@TmBU)5_SNN^wMlRGu7oLZ!9gL zNGwt#B!5vOT1%)AZs|g215KheqXeS~pe0DIcGw9mw5PYofR`eNdW|zjqOImWc%JA?;wwP3|yPG$dX*C|o97!mcA$WAkKxB{E!^flP>&4Y1CUK>^Na1C~0PG5t~ zb5_z|hZ3G^$SO5hh0~0>Z$XX9#p;b0PEGfkEawf(>qAiGWPDeImt-7`fj{`Exg2of z7(X?_m4+w=CufM1Md4fsl84f(YqorkUZQ*!>7^$*+pVv$U5?&TStjO;mx(kSje?MU z?*X-R&}@iWlwZ`d9oyV%IuA!|*gObfMml80UWja-)|?s|s)KS%P(elJp@FyDkEd0vU|7F-V+OHr)<1Yc5U;C0bqb z+-8;`O8_)hec?#0B<%ZXWvUO*dMfcym~5`EysQAId}8C~asl8HC*|~1#kp~1fXC?* zSwnBz9E}_;DT4PH=TODY;g>|ls%?X6C{%paB|20I6NdfH*_3iu5L_biHw|$+07cpa z!qMO1LcbZC7etg_NGExPLu_Tn^msvjIYm0{Kt}2-zXCnv-z>2Uv^_nZY*}kr=)`X&ANQ+-5P# zla?Wohj?KH1tczb6C{=tGNV8^@sFe|HbAXx2f{%HH}LF3TjbyZ9DF1$p!r>OAD6R< zUpwrI)x-rVOgrNOgdbDNxIl$@rNc~(7gap35MMb=MxP5HCMq`F9hQ(5o$rnEgMdn- zQ7I5F0|0@`;uUci`-CpJyQrdG$sFeheC;2Bap{z~AdL_(X2$gSIZ`RsVndk93g_v~#=KP^ed^RH%iv=} zl!*0t%$IT@e*IFqS9+g(;eYfn6ui%z52h%@%3opgmJJR`_#3eV{mUDzHhg@z< zJDu0-tgDd5V%fT`yAS^o@l--9YK{i9f81N=?I$PMIFIZ+?tq!eSnfhaY-`H>by(@ z;&lX;7Q`J|mSZ|XOH+O1u=~J@DGZc#I)Z!OxPz8N#2xI5mRTvMBeV+K!G!0?Fdd;; z&=G1h0tUbrSWNMyEvO&|2{-O~Ede&E1EZ4>#-k<~UuV|hmgwsVP3Z|u(-Zjcv>0%^ zDC6~rzA!qs@AxhFYU`TibskA;8dqkI2KsA3v?o2O+On2wz22Lv#($jadCxGa(k} z8g4>3DLODA9J(6=lc9iaOe#n2rf;<8P#45y2FRSWk%Fr1l@C+8hoISN6q;92)o^VD zja=GD!?Y2{sJu49dCQqi(s0^{F^@V6nVR5rF&`=Lrj2OvzTvbHg<6Z>SSiz4JO>-J zNo>JVTE@!SNNu4u!n>8r22RT#;HC-%AnC^W!P&# z1w+a#t1U*~nl@{D zqg1L0Ax?GC<4FKr91*d2rkAB1NLDK|**qnT<&bi=kFaA~G+(~rQNZwbRd7snoW zn}Io|9n~WrPr`Njw0vT&7`#??#$F`a)$ZPmpuO&ezHb%|M=W#4nXqV!94d{23B}wU zB$`ADQ?y8;DCIOTd7jSVJRs(Wb$!$b^5F>;eJ@d))bZFU*e0~^T*C>k$1QXyt=`~7 z4~j;Xz@fA_dnAvVgNd;v66{zkS+c~@!Njs9wg(d{me?6gtXksOU}DV@#|IPZmN+q( z*s#RO!9@2d?=^#oO)I%}FtKHc>jo1?Epcivv2BU#3yH>&J6iFqcgtEqDy8lDl%=9% zeSQobA0$rJ+X-u>bkt=|4P;LF%$CbsH;}o`XA*9vYS#{AuJxHCE_2O5<{F>baG8?> znUg-V?lLC^GADc{``HDvf1;kcGVU|kh^Nf{sf5ZL^O+Tw*%_#|<1>kL)0^#q%(l-g zxy;dl%u$~iyUhM+j)K|pnZ(MfTBmtSQYy3QGjYc%voTO@!)GdIWFTk6a_ZVNT$j^9 zA-ZVpxLTs5E`PcvlH!|eV&URVh$PTH55-Z{h#2YBHFxl2YZn4rxgGdnKyZCAA6-xs zEA6rcbs_{uLCE@Uav@OHREs>JEC6d%hQ{GJQ;3I_Q!Rvq)j+``j>El4Q}No4i`O1h z`dXUf?xtvOGg*@zJDzc$?3!2?5WTX=FlxNVrsO>~aFf!Y&xZY{auCaJ3im)+;-x58 zmP(nj5jy<5_~8!E1`KMJ++dyT@flEFiY8Km19$Na-@9YxCcslY7IQq^aP_ncI=_xk``Ms z>rT{&)(FQ07J^Yb$(bb1$(1g7bR<5LhrjLd*z$u)0$u&q&P;8q;Gjk za;OE3fc5mf0IYH{)VuJ-amq0{p9v1x^qc08 z0U7c{{DX8glg$#GX`+Fc@&n;fPr4rqR85VANKYH=H5_l%aFmj98xCr*?*cFuLMXD7 zg0xxQNSjxsT>rN<35{UQQMS1jrT_Dms?W^;UU8I-Q-H$ecBnH}W(H6=UQpOkcBSuq z=#LGhp>TP_sOn#6coqx}T#dnz!vSto7@Y$gEieAGHJWrQCK;=sEGb|nJa3Dk)Swf0a5ya`B(iz1vjo30$L)BnT9n=vq9GNtM?tAv5xQsam@wW>pU zTV2>&_)dk;0lGJ8eabpR8|m#R7xgygN^ddQvfhpsdrJ-KEp@236+Wfys!@N0x4gHE zu9a0G$||>$^%hP8W`q;F1AjtBD|P3vN}HxC=XG|K=OB!8F4@)P1bxxA&x$w6HWUZbMQ-HPQY}2 zZfOYS98_MjL08iabJYRN!D9NDqx*ega;V8M2aBYvM@@l@9Oi@?I%lzl4mFKTG>M?Z zq8LlkJZh9+s3FNvgL9x{{!@%+O`lR9HO#Sv1O*~1`k=JYE)`elWg|n5lo6Xm0w?4k ztQSop2bb6AmdFZ!tH_F|tO8kS4L2t%kYi<4$R?4>`bh+GDC?19rHCNN$qK}1ReHpX zHF=vBQ4kWmz-9UrB(^g^L2#Lxp~-WZ0Sd~vOs5NeJOyP)G8Eh+AJD!i*Nt z4k%>l&D{AmhebQ*fEYDI>{kI0MmY^fIgJ6z(QzFaa$OPYOD?@G^dp; z5B1aX1jeXM^*d_wMQqB!h@|33brTX~9^3R8Iq0Gtoctlq+R2}eR4q>#gah-{aLw{k z`Uwl=U>2YuXa__mQ%n(^Nt=)Z2ufarsHQX8II>Q@11zijJLfUJIqkrcUf#J=C+vk- z8BXy@ANi{XgU-8rB4)}&dMZnKdUMoqd%5(9v2aU32ZHSLVq5vJm^(4d4xsCD?i`$0 z=hxdobSOaXcghRrhDf3+ATUys0BUjpD=xlD={nS8LnE6dXj4sO9wsC z1vBzWhbTn%VXIIzz|ZhE>YD>tNpk6psrxl`-yihX8+R$VRs30$oTy2eFn!9-u*3;C zuJ_$D)py+I#E9L}0eF0@-M%^_)=Iz;h=z~KrBu=>du*HuG_KXOt`=5h1ho7)c~wQ@ zjb;xC`_=aB=Hp~ldY#m>r8(v#P$;Ryp6DvRW;E ztF6kXjmfqH{fO_cf?>d7@Ktr;!*Pqh)y7GK*|*vZ!|qH*&`Gn>!nfMoC*%BQ+KON8 zvhx`WU+i*cE=tp3DD`;~cS@*ExugeG*X)!5QHj8PGL3Nsh1YSxH>OtR-vkTORxNze!z*SO^M|ref0=5g6aA{$Cp}z? z)$0C#qX}HzRlMBe$(Z&n;}a=-CuvNlxhiq2e_XlrkA-JBr`bp10{duMA4255&xUVL z!i?6~m(!|lDPKeD=amhvG^qWcf{P{rg#omWB%KP%QacTC=P2t?-)Mi#pT`ix0HIvr zzPn-D4y);B@RMYp#+a6wRn_;tbomU1V<1R6Ef{97HQMhIs-xZVnE&^GxO*EQ%dX?T z?|!^D@6G#~H=jF;*_7^kf?R_#AZ%3_0s$3s?*w1`kON8(1G5;1m10#;Gq7uyT)|Lj zi5(W!%!*puTMk`W$&j?RVF5BhYb8+}yX zr$x5QA}unhzU1Q?OjGQv7-F9KUJI_Xxy2KAjNEjpeVS^c&?BZWnm^Ctup_m zQLgMd{@lJzLw72Ns?cRvtY!0U71%_Xc>3q|T&6fZBM3na`We;<>zpz`DMST4n+nK`kGJZnsEC_f80lWS1bGVfIfi8`w-=gjnNsGz~~oa;fB)yr^+u;jvUl+9QAb3K3yfpc)Lnd&b&LB z^;|wnfxe2*BQvYd&mZvls(kk6nJbNetx?)AKH=Z58qzo9@1*at+ziuqkU8emGsS79 z5O@nECvj^^O`X}Si0QrJx2&AJoxShRVxMx;Hq!%k6D*l<)k&6T{2V8#0tOwe!EFYR zO2VAM87E*-;;x3s8I0=qTc8O-^3*peKkG^Y7s2qOVMU#KDsL@O=bTX|RWR~O6S0mB z{|R)7hIn1y^^Z~8=vYm+oZ|oRClMgb4Ea2V^mVWGd1B+MVM0K$u?lb900eXSQ~yXG z41kOq1_~zAx$tM6tMaBOq{#ebCAWnS$?^M?;!^TkB5sbf(SD~B^3b<2s{9-EU3R+54B8OQMH9`y9q2slro?HH4i)SusPgbfI2t1{ZeI^S?~%T#t1f=9qw0BhqIK_VWp&o z`JhrsS?ZH{;m7l!rll3{8As z3Uu*tFK+8vB^1gav|6DAW$+qW&uc&NO`GgR+|@K2m$R8^fs`@eSd4 zW__n#O>0&5evJku1$Jf%%)`rYB}{3jsklxGN+BfkuH_KbDIRy_Ob%5t^i2zf_Ed?` za8&5D|CHHW9F{_Gv z0b?pt*_e(@2|80K3o;zT0Z>WGNC2O=?EJ0nZ`_>BpNlW7$lmB^2737e{_d`zvbSI zlOySRk*Pm(V}et4?k`zK%r~8%9j+6l4xi)gc`R4+)+k#NBP$by^41E~*q6p2+0Os7 zN6D%J0K@UzeH$v>pek-Id@5r?OgvJi!jAg=8vVxZWauC#g1XlwRYRJmkB*Z^$4uY^ z*TZG<_Mr0^_u6@SlIK^xNN2~w&uhAp*@kmE+G94QwIKo-^#B1oPg@QlbbmA1efjS1 z?6(s}MO|^6L&bF9;Ysv4G7Pusepo>mqBoM;vZKjbmqpl)Q&zC@ zj{sQ|n}ZZ!tq2YjEo;41G>k>St%Z0p;^S$u&Zt|V@=icwDJH0#;0f~`ka3MY4}`9O zxCHNNzhlgNXhcfX^ZIu*|Ga41-BLMJYwYia_PNp|mIM@Wg%dyx zMVclG6hST(itzn_?}ehKqlnZd0YywI1&SbADIqF>sSRzAal0H`?TWygLJ@TA{EQh{ zY#qiJ9y1&uC2SDkHi-mdN=FFuwIRSU0q|f#{DWN_devzIn&zNL{RJmBuN?&I3wuA*$bb*dK zV%%)6LMsJFsE85Tl~qt;CEX$VpJ}r$PPmacX-S-5V@I60h;pu@e{7w=PncN=(4GNRb9F5J8mb zA*DzGdZree4n*CECRIbESZ{d{gC8EOga`DkPV&^6Ao+seH90!{a3%UF2%ak^czTrN zyXOBw+3;e5Xs**cRwgQl-rG*^%!Z{%cn#ZbArmZ84k3WP9>f_l#H3KLK8ch9#nT^A zeBpft6B>{u#8VWn(G+n*BZ9DiG7u5-xf9hHCn_lz%7KwT_44N>AAfR}>)qW`Cx${?UETaz=tUX{OQ<-5PG@^e=1b$0Fgtd)PluD#A#yFPE_PuA+3 zx9ba5{#32b1-rgz<}olAE8oRxpRR_8gp-m~%-YjyVQ`UNZhLaojVcKwo- zf2mgICA)sv%D-Hz^RiuEw(?hNbuQcWD^~v1TAf#P&0L2oG&5|Z)f`d;{sZG)`-;~< z%R(!B2tKwAWAp{Y19GO&jo`QKd=veG7s<><%7Y8&6NqUR16m;>q5xe^T0GY-1av&%0j;|fsrEP|M+_Rx zs=R}bKnqs~d%w-f3srm?DJT<$6oEH^h=wCVZilWU&P0SE>I1^DFbo!oA>D*voI5e#3q`O z79@|O*x|;Y(j5lgfj1or@z47{l_8@wm8GSCMTOP)Q9)DLoKIyaC1EOKuc(~L%5}e{ zG8e3J1*A$?j7dvkB&59A!eZofPLW-s12h>3}enrX|ACk)29wMaAkB&97R$j*Ooe zYgPrt+zGDjC^Iijzi8*yd)D2|w14N%WJWmti1Ad5oS=`C9bs?*+*a(-)31*@nl zg$xY{1_=z1Pzzx74^@zv=|R|{qF^j5>dMK?^)_*hvT5GTXS!!c$((x@y%d2wc@|ZF zr5mHWq4Orka162=u<>%FTsN4gprPBMUx>BJM!E8pe)aaXuJqEmWUwB^N!n=6wc7KY zZm&OB7%na?udJ>eiI5rkz{|1Z{?OClroAJg9=^Ppyb#Np#c3c~JDX>avm(L>^f8W{ z3G6VVa7Nr%iXPGhNwPIC-i@2s-dI01Zb>t9e!7$J0W5f9Kh~74%bbTrkgII|j&w7d zegSJ;af~jNWz?%`ALAw5m9&h6TyT|nIc6v@FuxR=^T5J;1xSHfR~&gIm^(E5k8vxIREu(^652=Do7+Uj){(pUV5JmPLR)WxNs8~p z!~3}*VZ3f4yE!}?-Ck^Pk}ks9up->!BElT`OQG1GltBICx#3&f(xGea1FW2bYiGJaN@8Tqf>EOhtFHH-@83%&PP$?o?9kX zZ$$VmU8A3tO>w`{?Zp%QBtV3P;Z3+7du@o9p zE1RGkX>%ybq09eY&Clkg19v`Ys?Sp>Na!J~EVL@eioz=CDJ}g^X)nH9zIxKUhE;HG zH;=yLSe9xXYj0YBZ1Cxmc&I*r?j;juF8gZ&N8QY#_pOmwp~NbkN?J3P zh_w6aI9aRG*T%9=SQrxsls}K@pwhuk({iZDz*Dc=VK2+Mc_Zn(5ApCi4cNCh@MB-d z&|G%d7+A~Cb-!Zmc}Q1Pz);iRQdv{=LLidgQ#*txaqoWF3cll;7+jX^Fd;(>B_md# zLvYfc2PKOD?Z{g(R;lpCt44WlJ9$r^RYYh^2*%bPTkI1{{g>mOW-49MF5S!%}y(lGs1T%hHJguO^B8l8%yqYIZ|AaYqT zCU1*1G(`xHhFFhOmW3;)!S?oe#h>^+W`QMH7KLFJZLc$cvRk|wexHju#Yhoe<3lp( z_iGp*uX{;_^YLMo@Kh-*5UW1Kb_*S9sZ3 z*Oeq!HX21+ri!`i6rIn8GH)$!#n#ab2fF+3z@E%uxnw-m(sx<={wrdB;97?NvZeBd zxI4#y`_EYg!taWBz2*EZMTJetNnwbfNJPq_nlQ{t6A)4B&W~;JWw^GI3qHPnVhA)R z7IhlBL=b}|l#-*d*f;<8h6*m@{1=PMB>${k`XFt6MC=Q_-9f+zLvd&;J>?-}K%X)q z$2C5p&(o(E()2N#0l6O?a@svqi*=YmxK6PKVznjZ(2Z9t`arOIbSPIV3PIq5w?RvUcs(6) zzgSWUS29h9T8sJmyIkIqWXJzGNCuvf(pswii#4Q#Owcl_QB$uGxOwnD_y zgxO-Dm?moTk0y*FJbT#;`)gss0HtNH_VRSFHp{;+L#NpaO^&&FCFV%8m1n3dNJ&Fx-1(wM~~b6#6AZ3SMiq*FeYqeDjK-zHQYdH@Fk)x4g+)GqW$!d`weUSHqX z;J@iV>w~5BjrIQG#zt?W6(zODU9N|n8Lt#|(v9ZKCX45dg}LJL>-k-|#>>m>SAjIt zko-36DY{N{b(659yL7xf7{y1zpO~xirYNMy1mbcCQ(3k!l_Pq)L6n;$AbV_fr>TL{ zd2WlEAnM33oX%{rc%Jkd#pT!YyL6407un;Y`*Hs5_x0CxmDtrJwr>i5;`pYU_;32pENsI$ z6}H)Sv^!z@ur4cXYl|(P1KWpfbCO)!bSq|3CV5Vn+};j#V_ zTWHWE5=Fw=sWTq0^6g>x6LVGG6onMow_U@DP;C^0IjnyhTYvfO!Q{7PV;;V}zZiDx z_J4aJ{E6d*1^%16cm^4tB%Z_A`TJlr4lv|*Dk4Zowm;PL&-Tn^Z*;qfi~ zzGCJbDIKcC!=--DtlPftEw!;ivcYThd$X zp?Fx^gQ*__8(g|Ejj@4efDxhUoj;ef>mi8_+-C+4cWDGDi?K^=)h z0$4z=36Dx%~ACpsJ>qJ}QCLqG6b63Sl2edODsBA=OLP zd%Y9k(=zo^t+_$I{)nZh!-c5BHTVTM{r3IUa7(U6u$l5tP!Rg%Zn8C=0#SIU^>dK6DZ*o|8ql`>Me}Uf|!*@z5zdrfObYofm#&+aii>zUX1czBiY@iWRJ< z7U+v(d(P6b$R(&KKzq`o<5_D&%5OTy5O(wL!*-U>Dc|FDc9cUN=%{~~{&`2$6`eXf zyQ4yb4nUBdqv~k4=!Ck*VP9ZG<2bfJ$I#JES?A4kw6Bq|{r?5RpNC{;MG6fK1Twz+ zH|?u$ypbw`t!rNGCBX`t*)+jYivTxu$Ou**Em>R)+SD67D2U&N5T~n1XKky$xc@Pb zm~_2|MX3g?POP{H2I8EP4Frhrt@H8rp*B&XC)j|L!BUjqV_rUC3DFBr)(ex1L0TjI zA-E5uPgK_}$s?Q+18N3x+ueOkx-7Z*B+uutdkOL)gOc3?a}gGA_rhBNwp^(mxC6(@ zV~Vz51CNPR(nK?YgG+w6MQ@kWSTUL*Y5ExdHb$HgI$F_62!BVi!75n+%yyobY!_x( zVp6MTQi~R_8;w>GOHCbf*<#=u7R1dMLUjlv5=SxUiWS9p%%JJVB~~lzDNLrF9Z@DJ zR8pCxN^f48)TDm|L z@B+3t=dK4x))|ooKCz+I(B6}{!?qY423037$8Td`B%Vzwk|IZ5z1XINXggQ0tr-g{ zBOa+|A0$R5f2wFCKPk!t)!q*N$Dy6aigKE=PgIX=pGB_#@8qM<6o$FUaz+lQga$mI zHHV_KFpnvLp2*XtHYo;NA{RT56zj~{#MsqGWj>0;}<%KZTdq>QVqtGGnK+F`y%IR-7~H zlZ=sfN{2*vDj;u7Dlu?Ieh9OII5>b5aN*2b(zCG)y^EqD<8!-# z6>QDTjR{)BKclU5b3oWO%E_=&&Vvo;(DuW~FHP{H0FooM(nIAFCuS&G6=p~6ii54IUFHH%xsV`Hp5G|`3KHIfyn`l|3 z7eTa0>`I2D-X_A%s7D_wMGKgdNRZBG;be#!>y8T-Z#T3k;Sx*o3)2X08+su zQpLzzA$TO~W{;oIUzKq29ttc87i%O47wE~_fs8^sE?h)sLAX?pT(}qsx)3QJ2_%&V z;Zl}MxWs6%l6_-ER2n@p`L?ok-qDOArGJb`t(Y4bUgTF{xe}desw7{FPrLW_C4zju zm6-J=xQA5Oin0BXV!mw`_iBVEna!a+W;-1*5$00GH)saFhqW2tk@)69I{Y=VQ|74N zc{jiCOMBsb)cTXo#FOW!lm8d_6;=IVz1l_w7LCLcRn=%Of2M5o@@IH;Ge29rnnf82 zH`(1)(gyiTv+txekI(Lqi=1P|MgumXnTDFyr7pp)5(bPXGZ!f!jOZ*C1VSQZRHaQa zLV9B2gQx?ZKzRBfG$fSvGWPLVMG3m2`6Yh5V|&kY^?Bv)1c7&?=k+C0POuLTz4(_v zc5<_1qh+CZQZT@_bNQ`>)@{MDbL@Eq4Wh3%ZK8BYyw4Q|gb(%sYDj%a@E8=+*b?v( zdF21RIqJTCBw>3Q6f z3SeT+qHEgBpe#?v^RlRYTO2Pg^568IcyUk_!6gvMKP3J9Xi!;Cn&C3F--h3<;5Ldn zjC+Lwbp;H=n{MY#XSF0J66%GRnNi#Ugu{QqBqKioQT#7LZ9YoB^8aXQN_A+1R(A~!jwReoDpP8Q1L*xWuc_** zMb)ChX#=}W#qu#TU0X}cMCNk?J%f0Luhihq1ozDbw|2nxLFymh59uEipRYqIir)`u z*(rrXslp_rzo(XR&adJBwybs)v`43*Jt}D5;?QEq*$1t+zaQG)nFVcgCbTuYdIcTT z;D~q3{@+DgY!j*le|FliUi8J1)yeEw^+g*Blc+zY&fM*tAwNY$U#xy6Yp$#25vz&4 z#ttVcs0(NP>c!3J7dQ3dtutR_7qWWs&gmD46WC0?W9EyPh#c>9T&fh!hzGFX41X2w zxFsdRrni;8r{8B2mDxd|E4~VX(0fl0(kMX#R{pCzf$#g}QHO6tPi(Om)SuVhh`yVk zewsHEU7s`Io<<+GdyTtnBk1MOk~6D=fW#R75+GQjV*3RYGHu<9(UC&HKxs8@(~dSm zCoGC0j@qDDete#%OEUn(Nb`1}QcF>q+*$Hvy~P9GAy%k-CpKNZ{*JcHRY58dT1ik` z@>Fk=UV;ISv-q}%6NH$e?~2x8Y?5V>!cTSSmLjrNz%4y}j=nf%P?OmUP9;JD-kAWBi+9&h>nOxg^5HQry@IibQwQTA5b`>3% z&wpD967bm}d{$ka&u`UzqF7IpDJ(aj*Saud83De}#iE~i*==iI5KaVt1eE(h1CSbM zE_^0IL+PpLR_PZfKmC}#e9AwJH39R;r=dO-UW(1?D5C1f(4dadRa)bu9P5bk3{SSU zYaKZgI)Ys}(E1REuPnJOg1%Zfrl}PpIM3?;XKm1UAw|N z=Jp8PL2itmPC9+fzWE{oQQz2P^ikmqeutK<$HPw{sww(3$O>vcZ1!4wM+9*x?|8%y zE5mci+ae>Ew-NxAqEOn|qxM*nn7PIZG+L26298XMN|~6P(RcBUt;ipkbga2(HMbPO zi9$0BeNs#&$iTqvF&6OUzuG@BV&V_zgw1|6R&NX8@m*jPxWuy_rKSm$Jptgu{7^|1 z?#)zlgK~w%4syq3O1CRV;CO-;lVboA_%Y&HC1yZA(kCAN55*htHoU9)#or0^X&vIc z*iNY-A!5APlKygY6g3+BH~ptx)C_ZS!2_hff(ncWkPkR}B{|wzf%jLr1Zfv3-b|hf zR7(r3{7>Lv(M-M;-ny{wtqbg6@EXQ)Yx+rNX^0{UZuy&Pi&Vfp>Ekrr`j76b^bzmRG}$0dl1!~@#2Z_R)~WL11? z;v3o<22rruyl4P}X`tluRe$-G>YTU!e!}`o)Y8NhEU{p%;Kn@sQG^@Kv7J;kCwH?+ z&bVK1yxXSNsmAa_Pvnei9Cc;ii^uiiNfU3XC|U5o$Pz;-U9`!DOXPw~eV)V92vSNl zN-9bgNM?>OjN0_GkAM>qs*C6_jTq?`vby_O~)r5-f4(C4#iOZ#H>lAD|Bl&_^6l<1d)e`gD0;)eorZ2dyfdR}O~D z;uHAgrNA#Q>KDb~1qn{hRRTrOD%@fu&JLS)I-Ag=K@9JgL@SZ1hrBW+U?m}LN%z8p z`8@iPsyv5Mq+cddOp3S1KaGl^$?vD^%*op#CRV7{51+NU5EI=jd9O`P^(S#q=9Eci`D1PukSw@lZURliDZ*w*FF`~Yvnp8C&T1w zvz=xWI-)5dnLZj5p^ZsS$v|iw(+e*6Oq92>0IeU5X@`eR9F3{Nz*KAEXiOdYrNW7$ zF?F_=3MY=nY_JMe;l$CHaIO_j9F5t?XB>^$K;Y{2iK8(aoJp#}iK8(a`HZ768>D|! z&55HiIRnWGCyvH!;)Lxy%XKv7kDYc6LnkyI{;(95 zR&_LH{o#6eSRRd8e|RW7ERV*lKU@nB%cC*t4_Cv(@@UNZ!O*9IQmX`G4~&hNkSE4ENPb5d^#z{I8n&Ft*jVs zH9SAj@O%jm@<@zGR0pdPMRk-LKw0PN2V^2hrw-1uk9c}^&+Jgl08Lb zKL~KXItb93#2$^nPV*I<5Qe{t#Gm}DjhXdvORHGE!VM`l^WFFzw$;sSuUvZe`F%%( zQEgWz>><(at>SnvcJp-hm3Bh?j6JrGbmU%n zeptuB;G4WQpY?P+7(N*~9!&c<)v0qba~Fp^DLBvSsuFc&1n=kJcrfN->S}qwEUd0G zI{X~bHV`W)b;(e1BZmz(M?Ljy1}chUz{~!+I*iI+37c`TK#_Uxcx>uaZ2g2xO z6O9PAFkCs=$n)U($wp&(HL@8>+hj;|=w9t?u-**9!PzC8D`$i=b!eIsE3b7NUv_$z z4)LnvOSD(w3!GS8Rhl~KOWrBe4XCkNSnVfJBgrJAt)s@yCoMQiNy_OqW#Q00734az zQm2}VqcHHajOj5Xi=$cJ|A&Y8;ECfo^PMKqUyHEVgPa_L*GDB58`enw9 z-0d~9_y~`Vcn_(Mg}35w5&k5*8`WNlahl+@7i0bVLcD{+)L(g)Xsm4QLG9?|G8@zm zJ)`8Tl{{0OQ>Jz<663XNbGX_e;xko-Llgytc{0iWCEH4n_Xsx+W0!S%3I}s*=N!ul zu_kiYm=%bL@@%PN#R*n8SdkK;1WdSU-Tap`GJhi|kAD4}>64bt+3FLey8q`>@QDy~un^D|?ZaE}^Wn z6@jBG_5~tk6NTb9)@)E%vS~BvbpVS5*sE6Y6&9%FS!yxH{G>cTjojHtNa6=gBkY?!k))oPC)ou4K*I?hik+e_X|d++x4?k?NAzidz2%{L6+L*Cv4WqS{n z?KLLavm+l&NuC3*-?5FOTR5SBwSB|!&~Q9xJOUncexoo!&|dDuJ2nEcgB_`cLAs!G zcQ*E6Wb8sUEa_Bp*JPc6Nn7yn2LYF#_w&Q2!RiONGKNs|4|BuME=8hEjP+yzNRNpb zRq3&O!li#67<^B83Y7TcN3d-O%LlGt&=7OL6#=GZ2`N z*xuIIRvw`=ST+NJ;2w3#-q_J`+~g;w(iw+AapIfmth z#!^iiR=JKd0@~lr56*|8KT@_lWDpriRp+dUq~dxY7K)J()Z8TICh&$4e?6Iv9Xuzj z+kQrt$Rm)BLl&2mR*rWKdjWU&G0y3Gm*RIrn#)dZEPSvCz^*CSDIMjj}a`=PqWthzU8q6z8(*p=7hP zo($22J0A<)GtQCKF*HKoM673lK37BpG%&|bq$G{_Ajp9*KY-iESlQVT2oRm6TBKUe zu^Gev$FdOU4wEl;+S+75HEyFd$HiJL=J}ujq;as(&A<4wLX75#&po}zrfL;eQA}85 zT$4YZ`tHug)j5)qXVrvc;eb;!SA-iC>UFIWGiY@R7y6M=-KvZUkh)8YGC+AS>ZjpP zpR4kwC{&TrwIYiokXUva!-;xKBGqC?EEL9hPc$f}Jbs$aUfsAm&Bzn?JcqrS+T#sL z5yIFlWXm`)(GbJ-9s1|kxVb~z<-*Rm@lM;#wfr7fjEBF&BvY@{c(=B!c-3d4Y$0p7 z7a!9Bhj%mG@@xnZER2>#rwh=+5L&Q%m$Ir-{I$~~^Nu#5``OaH$dZY#EoFT`f)|iM zwA*DS5P@|wlDah}t1imdo~oW|*gGZTtJRW)Vya8WM1YMvllr1LObl|2p-sVxQbHco zd8FJm>(mj%N2U;@1E?1>iwKY}T~FAdL>(Lm52Gas6x@Qdfgb5zx@>{*{{9Aq8lfcO zVgi4Tlp7q<84wFJA-(`g;7oMD`vj;krQr`zh04{C+UmnbE+)RODt{#P zOoRhOw+JmauVo!ro7lc~X4#3^X~bQ^cFPbIxW=u!yWv$XBxBPMDHg-}(srgKf)(#q zXB8O1f7Es*%lf4LQ*4c>xZFTRV!Ae+L2z6?ER9vnr+@B*1D_qO1!Y|H=re=I(+l5J zvh!jPY@VaK>}YuUfKHP+@ag*xcnWIqeuS}j)idS@ugp|0#yVeN)&X1EG$kRA(tub! ziQ+`rF7R!V+K2y~TwQwHp(3J{Z>>rtN0Quw^ zv;+#+4oGH;tSBon98x1O$KdUl$AT-?zA6E4N%w!dDH(X8V+FhgpGS4z`d4k3n;lO0 z*H&#yVB(pxQ&SMfMKk@_sx2I|El7t#!NjWV22b3cv1Bvu(bzHWjH4L_>9?(&YzWRE zpVY1eMN zHQTkmMr$X%wMWXUbVtyvnvk?7<2xOr=Y8@JMnh^jOYJYhwAB0t8`6(^RmsLB5_S!%z{qLKd^(gUS-4lkG3^P4jCQN`F(~usU5Fo1?8`>q%oErpEwb7;@9Nw#z~e zV9BXvfQu|x4t&q{AdRCKCp`{_<$vszxcsn}Gqj>V#lV4fd!Rp?*fgGkhXH z&4>OxSy!y8%v2Si71AaFt;)Y4fa1&z6itVM-Z^;6d%UKr*JSDE5mzs3_f$-hi!5*z;cWitktmmv-*BR%rS7Z##P{yIhY*Xbl= zSc=7{@0ZCzZdgBU-bqYkmh!(NAcqG+;-62 z+hL{O-m_y7+eLCA94kK>&VFqc$%UFy&giVxex6*YiF$@FD153?*W$S>)_^hySaP9e zO<;sQhi2{USKD>4rBfj=Ap9UOnuWm7f@YtoT*H_+VbH<70M;A+(CgWoIEAcrg5J(}0Z}O~=t7 zz9MU@WKZ6>^=x&{=O4(=B^Qv?Gix2WuG-RhqC4HFfvec!I4iH3< zZ4|-?B-d-TbFYDIM*YiV{g+QTMemj|{;A7Kgg6@+1>P+3A0<{!6@xW0%D+4LgL&Ajh6bPENo}$N->nY() zE2tyBU&a=ZmJeEe*s_W(VJ)jtUsl1gx1^+j%w)1KyxmDfdT$I@E~`>4s{#+ImK1$k zqlnW2gISVaDiv6R+%4sFxu8PUB~p%AP(|G@t|u!VM0S~zW3DrUh|vv8S<52wHxm@m z8_Oa>xMVGf$heP|Volc5hz!6(Vm%zV6se^V!4%qi#I~oEO+?YLy?e$Ba4x%-l2sw2 z#?*^ED4JB=mev>Jfxpp5aJz*^NkkN3J0#>kTA zfRDz=(uSN*@`loeU~Nfx*v_6gTXjGmBc@rqY`zGuy z__D~MfXa`I7w#D^0s4S9h|}(oDJ=l4zKmk3`D5;~xc)rr*cXdvX&&+=t;Iu+*o;zd z(+9E^i5S}S2thGBSIE_R=cz(w^^Sg!=wo}__1<;8cZ?(Y>+IfjuhF~ObHyHm&sy*J z(#+lsGzgX;WS9-;X-^44mNftiHtr07&}33an8a`2sKvM`W|eod48D%4q+d2n%3!;cv=K*wT~gZsjWEVGKEJ+OVA#uTgq-4 zZDjq?VhU-p6sfXxoFkA-7!(eLZJcf;9r(tr+oJ{8E+p%KN%%Nq*0HWD#ugHRj1?;H z62ez6qHLTu_(AduAWz*fAVimWW}qD;<{b6U^5|NMj?f|Rj>bsrqo6kcC0WOUKDBa> zZGhnyA(`Q^@l?>J7>?aa#S!A=um4L}%8Oha9r;NkMLg#LxK(OuMaG9*95}Ptz;r?} zyJEx}tE0R|E{+n`gr1kVIOH>;NcT_R(^%%>pk)hKLYA3y0(+PU*ftX4N>5BleWK-+ zXD2y{)XSeN+Nh`EAnpnLdoz=nIOE{C#uZC~ z;V?oUx0W*EC|9(wX<0i_1;E%Uqy}=4rD!uEL(7tZC@`AD5&_(CmPoLs&c&o1QPXTT zK>UG~nR!#2dG|51hHkXxjqHpM>09gfj1SY?YPP0bAJ2C(-MGmac3K^As=hc`T_SMe zW3*6+l|$leTT8T!v$ft6C-RD1W5wBJDvSji-Xax-aW=q;CE@Kd6$U~33xT)2-O!?V zJC;}#Ga(j3Fe2(A^N@IZRwj&v$xImHZEK^R34_5lty9fRCc>ycnaqPxdm?a(G#IsF z@itQyIAG+bReBD(O8~b zWwPj)X`{g?%uYga@RNO+EI4-OfJV?IubRoiX!yWv6?;KEk*xxZNz+#@i6Ex<6-HPc zlG+QOXhgIJoI)@*#=hx&1Gy@kM&TEbbq9+I%S}PT0;Qfn_*oJQ_IX-?o3cXQ4OD@l zWR~K?S{a7y9HiyY3Jwzq;5Ir9; zfxy~>fTSOF;m=y^A}2t?j9fhxLrRlzQL>=qm^mRcE}pAx52z6Cv$agM+A&+gGwcBz z*AN}_SIh4V%lh}@`^I{o#11m)3|gFF88zcMY=IyB+@7+YJju`S-|2XjXI1c@=Pwim zCjxDv1n;nO~G}NbyvT$*}afhdp_nQUCn?;HcFK6lNUE!1mU-)=A z$p^fg^!oL3!w0BT*F(9KRJxwrFWBCi+|7^q&L#d)zCK)$Ckjt_%Z@9I?i>D{u%NbG zc?M}^99E3-8}33DBS-OB?2C zkd&h@NLKP4+eMK-Qkwt#XBo`3;lEDJnkfJ8OJ?H7G)Hy& zf!?5Q)}hW{R)d%MXZSf#UZMmoC(WPGuAbV+gz>+_o z-aj7vm+XipTZxXBVCu_Jcs_Grst93?FI)?2&&`Gn|2oVXdZr;#GE}CDFY7)YKG9(3 zNCS;1nNxNK8#jK9$U&?IdtLt=8UAPtwHIUno8!*bh|@H}G}FS!!(jhQqFLoQ@)a@< zfIgY$lpVz`Wm5~6zWwtmm2JhMm-DajFu1hnJsSHW&oO&h3&>&__|$@3RxQkFIbsiA z$#OI-wG_Ucs<%9cr_`1Mh7T*@#>Nx>pTUXo_ ziO>;&pMZSIgcv3dkxudO-aZxX#*HmY8o`+_tW?Yn_X?Nz zdYI{ki%-PJLw?T%>$;|ikTc@ECLkpRWVX0Hemz!(2%=WZBRlIUQ3MZeNnf#K5{gfg zqnQC?4%=OQPLR=xb{91iA_2p`bPP?o%G*RML~^)Gie!dORYk1&IVLG=o~i;o^;mVq zQQRt$^-0KP9iNVaz0u1}MEQ(dlnd(PwlALKED$aWFl5{CwNyJCK4$>7W)Pc{gdIV7 z3m~w@g2arz6rpUxN<|xXB=bc{DBv8HG4?hC(OM9`lA(vEn(X5BO)-|TB#~W zZ8&B4vr-ah4ie#keOV6*BC&z?8Cki#&G)37iq*{;^V17#Wt;M4NEGz2sUR+qm}b+- z=?HUIs1g^$t?9~BWNOYD%^CDIBaG=o97RdOuHE#;*9azuNHFQvdknoJas)BB_XF_K>5Wh3(l~si;|wUVsKOpUra`EHo2zYQ@n6Xx~UfMji;05ZRUs(32Q9Rl)zV#78(a zRV_~+Wd`~}^oSjG$I|mCS4JQ_+lw^Rtj%nfd2aYrLM~;4r=f)$sd({Gva10wnlVeM zt;5vSf`fXco&J}lU9pMs4-^s#v7;EoKCtLJR9AW$ycQU@SXy3U>-`UvatHpQ9mFvFmJfQDv*1vNr$LQ$; z;X4a7?&Lcr^R7tn@W!}f-&xdmZW8hX(l{%#jyE+UymeG>L7X+fYYvAf28w-DwjCiF z4J#?)aZw))VK@d{V{Z+@!al+b?il*7jjZr*xTo#iKml)~6Tq$4{V(wX;>(<9R9;04oTC z0EGac3lmUeYa}xM+8b=3eb`VrEbEdlVOZ4_J+mc5s(d-N5j!A#dx=F6`l;nRUZF^1 zF>fuN_SO#gGUCxxFxcOO>Ofnh62F=p=Z2&%9;shQW(yxPX~0~@_iNH%jTGCX;e;eu zE+oP7^+6zAGC&{c@QG~k+5&+0MP}E@{mYK|Def<(n?eedKqA~t2rMC; z!pz4$oMyg(VFDn1EDz#-2X316IX_MOmxPx=M?jy6(EVJmodo(QQNe7+(MdrD=-aMc zsD6ick~nBB&TD+?Z`rU*D+BbO$^<9fr@ed ziGPZ))jc!lIfg+`L z)A9+zp2R;MgwM#9D-3>Gt`vD{qUm zUCtJcY(gWsV$lwH`Z9s+rdR)0&yt0P4inQ zTOse&pQshlpp65TOpSxwwQp*HaUFI#0x8apkFQaI)2Zd!PVc>DmVLr8SV)cZkK^1$Z=Lh}Ido9H)+4%Cg z!go9a4EcCywS(h7uy|`YhAB@wtRnLhRd5PHv!@yU4KIi-^_-=??5(V6V7e=xhuc2i zh`Rai{~E5Cz0GmLcD!x*M7wk^=9|i9E6v_zk~#`)LKyg*Xn$Ou2=tbkgqubBQmw~u z?7eOJ`xlDFKyA zR!bHk${o*j0i{6MN-*EQilg5*L z7SzSy%X!nxH}e#+-N$!R1f#JEoEjs4j8l1REHs;8p?~AodE-|*wO|&%O2R;H``LCL zwsn`?gewCr1rmcIDHs+Wg`O;_E)z|LN+r^XsBs10_76z*vuqOZtng`mq(P4rQ5 z6CMX(pQV<4b)0}WsZq%eQJor98X&P`i{l2v8&@66qBRelg_08HkQm@a5-=zL3rIB3 z8<5g?A^5180J*wo-Y2VENMk(y#t(0X%t7R#KxmA;v(@y-)6+E#%-(+5iqB5dgf@u}K`en`h(Xekc z9)dQR%wJ%OtyUyt~IR{B$%Y`i=$_A?nZY-K4)`2C=PZ+!~H2Zfl z<%LnI0^&Cd4}P7~oh`^VO?nhI7I?;vL;1>`_R34_VKx;L6>Qdaj&|*>W4tV~5QY&3 zcY!v6tgKlUmiiL6jx=d4de)Tluq8ki;K{vrMZW-35f+Q57Kpgt0Y2tvxfADUHE+Ju za|eBa8ba)3+juNm+sUzV6fHM$F@~D5<`tlK&_{b3D}DRw-|b9&m!qrfyZWm9vcmVc z)bIk0pv_6Dfh`RC@Q{-Qmqu$6dq67jfh?)Sy)ZO^%-yE=7r!6%9S(C<_Dc?)xM z!{29eMVf0?*A_;m)m)cS_7(6;%UWhMrY4u>?;v%VHZ-Z)N`0XHK#ZPpg2l@1arj^O z$3?gin=cXNE8+|MJ?}^}e#lp_&PbfGTI|i3C9osaow^#;Hv4_9I-1YO+|(oCR-UU= z75tba1aRwFJXyOWl*9K`3FTH4@2a2p)bLkQ^CtH*PK$RlKjAb%s}uLLF@u3NYq{3U zxyw%@419SGWNkx{LB^CdSs>~+7;(fez|ZDcC!%_ZHVBj%b)n4RFR)ay^egw6W(P04d=W&C)oXd*gew05_k*7IVQ%44e3a7 zqDLmNaIK#PMK{w;G-0leY==kLvSLe2oZZh4!tEG847D=4G1N!-VW>BGM~;Ma5B|(? z=%AIXt9j5?FS-MWwoV6t&}YHu=XL!lzzBR80jA&!OgalNoGHKg$Rlw(6h8|vZAqi( z|BXe$5{=Y`aZOTh<*Ems1$&{`NVKtoP^{H zG!f^&;56Yg-Ygo%J@}gswrCi-ySe~qbcs^^73KLeiCUvMd_X3YvAP(Nv??T5A+6pl zof(KINN-JUhKi6;A|@0(cG>F$Xo`&Mc9N(;_jA=!LREykZ@!Z&+fn$~C%gPV{D5XZ z^T_sz4iBV|m1fg5MYAWEXcSo7!L)Yls?98hooW)qM5XDeJv9kR_0AL(ns)!$QoMLA zpN1V@@}0uORLwB3CO!?)g@aGSkq-mdj_))Orc=YBRDsxd@;NuuLkX$S(&bV$66i^Y*p>|a2Q<8!$IB+@^avR zZ-%XZHG@wC?f~xusM#J4c5=3ktm_ec7VYH8qwdiV{28nt4lg})?}1wXsy=7){#ijV zzmqLa_%*->QbyUy(F9GX3Ul--s`~P1%@%la4M9&T_A=Ml%Va4(J|v5ZB2JOOh9-2z z;7ua?GmR~>z{v)xF$}=5T^@iE9{JzF;>2}G)UqapIesi7tF zKfx&??2ogRKG7hJ7ibC&ElBagoki{{{O^!0>CzhHtZ^FbyF&o(Eou;b0*eIwJTA|R zftzvJNbr$3phZ2&^<)9JO}_!sorf2fQ4-`hh@$888ym$#$VCL^p?g8 zf{IxL6%GXumh$$~0YW5e4h0Lyo8VADB+>~}Mv3WW+b!P7PsxmmIxN%TLVoH5yh>~( zXTU?V19}NFhA)c#iQyU)&I5Fye1Zj9PyWQ+3hGbTaMY96r=Ms@VF5YJ@MXA_*2e>1 zXPDxyF47}B1q?QT$_6`h*Ha7!@B* zl~dC7@~YTWhNUJwfmvb9zBy@jnbg^Sg(2sLJKC2;VljbE_y*{4u1)`=S}x7>3lOE` zVjOFy^bPphax(APHTFE$eOMr1lOSPXqBQf$He$=E20f+xd9!ZHiPzFtVefpE5+Fy& zut=(<$<2T82MV>2rA;*Mn5iV=N45|whG?7Szp5t@MHmYyvb-SUt{0(5hKDGUDw7j4 zM#4*q>5p^HgQI@&l366Jj1dlPTbWilIN?6zsd<`4N_6EFf?}TiZ$*Rom+1~>QFZXk zF@b0NUbfBqDF0H7uPs$B z1GofQ)8p|Rs=bV-b`M*p#XU%6OTy+he|WQ8h}B7%pwtJ1pFg>^c*6UZ=2TDA&RIT$ zt8x0!9g0TqWSgO9B!@A$KOcIwN6)}|=-))LO|Xom#F8GN*Aug&E?UV$8bzJ%<$)wB z&R2-&3D7mLsbuDnZcnTO&v;Oz6&T!P%PgzEMI9k*66D!8j4+C`;~Pd3p2k(wYbZ7= za3t;CEij(;uPO5xKG`BymS!Tat@O*v&*Z1>U)7mp7!6&JrAdSh^L| z3FLA9;skYC5t{-~nh~fxy+w*fw>A(N;}Gax`Hxi%OJok35f45tEvLAH$AvwwDgmnH zce4RxD}jw54wG=}1If)($jC}bBR|4i2T$kQr-f@DBPGKE~h;OGUU z1}}LtMKv4dOt~uv;PElBLE`0dkZc%(alaa9-vtnn8W{-Rn)L-rEDdl7f=nU{uCgc7y_czt^n6azi1i1->P#q)ElM^?ZD}(LlZYBBP0Qxd|+Kx zEc?WS#0RB_2@?i&F@aCOY%zhw!UBmfx0~V9#Y80}#HjEgTi$$gLRb_eD$!99EP|pS z!TJj;w$UlU0T6Ez6Knu_m#yV4tMg zCzz&1mrGfbhEA+5sMTVPTAlntVau}Bhz$+$G#H2U<02|ZG$fe|tX+^_&o3KWw!3;7 zT1dxp${wd89SY;fm>wS|w-Q8ZNhM{lYC2ZmM21L>1w9ydGUbRwqC9BR8nW)9eV!<{ zj?smdC+4x&xKj+26zO$=1i;GIl?PR`Jqvb~+=Sb@iQ&EzZ5T8y*}6lk@! zY^<(ClD=X5tk?!f#TC)JRAw)u%F^bXAnA;-Iev%9W={nt@%$nf3><#2SQekpoGydZ zv|J%|VTPn5oX4hbn=LH{vk;Tj)M@>KmddKuqq>;gCx}IPMF5x!$YSmclE!I`;TJ{u zehl_4%dXbwes(clk{yi=>;q$izEzZ%}$|3WqUEoonk zEjWm0Q0Q>nlMQW%DUG`o3}@V}u(~L$W-_Wtk;Z7FbpKT1P$&JvRomkl+Jrt}?eOJ` z+`U=8EN*zPL{B+6hKg6w#fr5Sf;BiDO~D#H;)RNasS+Bt>TQ7IG^=XW*VC#`r)J5J z$1=%-i|9$;jBYq^7m*;qtj6cPaRb;I=c-L7xo*$wq#ExaF+<~%aY)2Y_i#iGQ?Q(S zxrfpd6E|g?QgNS6L@6Daj8Xz<_7ia4&_7(Qz}j4|h_|z@cNsWI7p6|&&8A8XRbg5X z^j5t+v$_uN!=rC9qzQ9@yhtI4BP6zx>2D3wUlG#8@DtR6Db}Ny`lAjshdQ^Af6#*+ zKrw6f4&5DVf#+~{&^x&S2m>ABsSIjdYP4){i{-pQ-$5djFKICLzobzh#XQShOfxc` z4Gc7TCEW7$uHx7`)mU^j7K`OWsf3bDUU?|a!G0hM7a=SpD#gZh1OtRZoIJW`4Pvnq zN{WD*HQphu({+7UNIBrs9litBtAHCdIKw_RC<1QSaaBkS4)^4om(6KSg8;E8$6zhs zCfLVph_W?1ixpZ4PzW)GqClwvkoyu!;l@l4Wqs!2Rge-^>LP;JN8A~_4Tzk2{{HHH3@D!pa%L>ny=)80erAvW;bYH$Awod8B0bMt=_pU6L3p1W>Pa=7*O;4jBf6eqF$iTF1v|8ULUT0!}wc5%(e z7;?yz01db7gsL=d#gPc&R!)@z3BqBI1qCV0=hK!Phua#e+^m2UfxNQueEQePx^^q9gjxEk2sm;fs zMx9Z7oUe&8{mZTJy>yGi9qqk)H!@tA1Ghbgoxf<}d9(Ycnbp2E+K zBU528In-T@MdhqHSGDG}!fMS~tsfC1AVtk#_zJ`zQV{nQG_R+MK+#*H)f|VSg7%?> z-tS?pQ!26(dxpgU9PG9RI&WcIF+%UqtvaFWTav>h38MpmEe0TPGGb73JCp`f_H_V( z$@X8vadr4R@?KpM@|T4Crgg_8Of|zwHpG*%!J0xc(3Z%4=>en;p{PtiP%M-aG4)bz zl5VzO+DGO2*`M~kv~L2TZ=oxZWIU6~!FCp4S~yK!oMvZ6BV;2uwAoBImU;g4J6?#`f zZ00Nd)3X3V>xgW?!z@;hq`fHgq-Rxpud!`b$!W})g&wrgIqzN_ZOrW!`CK6Gx8#XP zKa|UqP*d6$-h?g-G}g>G*$$hVR#>5bZae>NwPHQNkgvRO1gONLDD`12tk0~QY%~?gMA zp&`@)MY)2eRL}^?{0sty+hR<4!%6JI4-Wr)VKIEj=w^SNn~*X{`7 z1>Gd@zZJaf-$jk2Qn`#-|!?V=#7ftuWBGu^7B+!S7kS5C0UD zZA}?vD?58hG}a1~ZH1KpfU+&V%P3n}su;+BE=@(6i~fpJ8p?+ZxrmN14Pp|&4IvGW z^<>^QS$NXq1@~_qMY>c#IBSOpHc?0+L;)NZQm9dRrj%Y7V+)2Z6gaBbGd(}(e{B?+ zcdWgam~A2nfbu!)^0&u-n`C6)+6KYWPuo0K|Jgn~@9+GufflA0FgJ`Vt) zqpEaJA5~s9;K3%=Tk_#q0A->>26&&9wguF(vV}C5}0aC2q`6B zDTMSyQ;lXmO)wrbNd=JPLa5e&s8Vm2^fdjp2_eU@FuBe-FnXaTi!AA!$s(kLWD(&= zpc=b^;7m*w@rIMWWKsBp>WIj=6`W{UVI$Qlqtr+iDT(a384!ilid2PawMU4Pr@1h3 zW4s|w;QTGeh(1?hL{BV_oeC=+fzLwlJFQC0xfLP5K>lD$ickr?1Rm(Hhz1xIqs-F+ z!$L)wlENtY7U!%7S$rEYaEL*{v2P-{aS8dKvV5$hPSSmTFx*(+5$@(=}T0z zQ)0}2RB>m7D`%2U`VB_Xa65+gf~nJ1TQGKEikFd0XS;mdhQ0x7&W-x=-U6=1XrP3Q z=LkPlHb(sCSi$)YFo3Buk{BN*GlsvfbBL77MdvC2rW#nt+P6R)YcPeS$+P4ltgP^F z(K0UfS(;a@1wM^6UW;?O@qO6nIJ$#n|Mh_a74HYdurh8rD6IoPu}!)Xl(vD=Rrf5Y z7oG&Hj<%cn8jP5}aQNUG=?O+c$9uBY^pP+-mF&*yzRo0Kl^asr6s2)F5ZX3JK$QbQ z9AhyM3x2T9z2>hMBdfdEtk*_|vIWbyHfPhXG#Qhh9wCqP&;UUe>Z_d}^?VpN_#as= z5AJh(UWWuQaQtdruC)68e;4Bd+5`v~I zMY-Cy1tl)Cp;cg4d*p!`X_%pN1~E&*I9L=~IH|*DDzRIbplO;@c+hicLD`-z6m5{X zOU*EF)(ko8YyeS1La|X916@AxlR9MXOb`UMC&ddog{M{wWxVrUb(cn2agOAsB>;{31-d7$ky+pdv0Pj<#DBJ)*=1or8S%-I2RGM{)Q zTTu^9cD0PmL;QxwTuB8)=0S?JvL(Zvm`=q;=0HMcMCeOsvJTe{hBha3Z~ zgl6OGsj6q02$lRgawc%^6 z(z!r+^M&3*Bnx_q=`GztZ_y;FIpq75)=AHw~|x<+%Q>HsJ(i; zae9JFf-qJdKqq$5IY)|40!Q$&1)>x>7fl;4FMu+Q5%P-`7ksF*o+OK{(OLZXFtN7O z7}|$zv=+;+FNAN$#Zh+?Z?X+nK(b(?l?F&iJZGa7R4+lILB#y}es+G;OF;-!sFDwb zvjgYZn+B=#ND-V9?n5JG2vH$y9qdG$#ny?2s}X&{jN*nMEwyaU1ST$c-ik_!HLS`5 zk@_i}Hq4830e}SQl0gLhINb(`ZX+c{>HV%=aNYttmqN?3@E$XyPQ=SDccRS z+cI%HVD6+#2CJqPsUzlQpe|F})Dgq4#3J}LAqp9YhC>uvFyZ$lrTZoZVcmByC+m9| zZAwa88$n9bH){qrCvV23w7MLmbos=kv?0T#bn!&ss5nUJqFCyPJo)U%I3)_=C>yp3 zv|XT0Fyt|3HR`j7^?U`Djfrje73NbM>0F_-wFbu>kdKg>h^A}3x5*?x+Dolc=qI9% z3-J(0GSV}eOO0}f)DkN-oN`z{Y4if7Ym}o<)ftr2$O7d|y+1`cI{WJ&%Hd6?oQ6JE zr<_Kh9DpKqu2-5#IpV;KkW}1&e1>~R6v!oqSjvOpeTUeBCCbvRb{A}V5 z!q3f!WPUPaFh56-$o#B}aZNyxg}*1;SvBcbS7O)N)RFHoiEu91Ynn^6lrmz$XEPcz zkwE7rKP2uObqyJ?@Iw$yi=Tt0%&&M#f=h-&=GCy211>!%g)w(%D_KKJxeLE)OSu>L z@ul2ZT`6TI?ISN(%Gm*)@8`#a9w91v9ey>@g5GNk4d3yNZni*XA?>}Q%)7qxa;?3Z zT$dEC+Z%@6%v2|7P^gpApbX4bepHS_zcNf(p1kV{E4PI0t2n<6V|o^SW;|aU8`XM3 z`bajv_4cz*BfEVTNRZlFZ#ld5#=;ZhuD13%ezMT+Zu<;Yj_%VOaPlwy8hTy+*Z=W%e^yDq+?)iM&--?DmqQ%)uysV19g4wWqY!8{l=C&S}RrHqhelN3yS%SH{ zi`zs@8+d`E*bE;0l&ZW!mBCiD^}|2&f4ulZ{C_xn>6Y|`cVJu(hitBrJ4_NvOs~h z-HWH+i}w_ZcTn3AM(G}UMQ5uiWE>~r0JwhQ=g&R;$v^nRb3b~zK!IG}_2ggujlc1Q zAAk9kCtk(t%aL|6Tk(58b%w!@pBT@7 zWNUMm(b#-k74P@@57g>ERMiK5c2?;Wb}5Eze^0D*UoVJ+!abSRho_jG<{ganQ2Gx&FR+Ow<3JDI<2E1E30`kJ@c=7iDYaR=!9Vj` zig>j@(Gywsee!b8pZ^Gxkyzo0ul@M{{yU5B?I%`*ex#(e_N?`Hd^DsST+k!;<-vzz-FymdqC$rWD|IBZldLkQWbVUXWMkltfv$gwA zf8+MuF`{cO*X3VD6dm2ZD?-3a_M_32Wbi#>T;bdntD2AOd`*cn~!zRu%yE8X3FjaJ$pJEI5fvl1Q@aJ{Z;>Zu$M^g35}o;`Es3{YIU zy!X*3K6dWH(Nm-Y%ZE93}{4P<6KJ_i%J5E2Gr90y^pMR%lDb4?Q^O1b{QE1I+ zO!@_-zZ==(x%|1uAK?}c$$am(nHg`7O^h`2-~06_|GnRg4EzmA7Hv+MWGTQ`a*L+v zn*txX!{?g#1zSfXW;hGl`vM8@RrN?9%lPgKE#wR{x7SDMcHNalTUnJxL_N$8`4tPI zio1Vn(Sqm=-Rx#QpttcI`5?Pvw(DyD>R>$@$8z)J%P2_W{Fn6eyHWll@$e$n6#$lF zQ5F+gr)pvNXzzUN_INMRzldPUQPlVsfkn33)IP}f5Vn6&>5Yb;NmxDQfA3%KX#<$; zZV<}Q>oXj07UggJi82^xkutHNk!g0)Mju8kptuk-b3XpQKCVr0NP<(>h1d=c)09@RZ`4C(1`(ViQb~4x=*2ks;u?k2hR^_NNhpFbhjAc-c%I zmSgO36|(%|8+z%a=CCy7L)BpUwV_N-`#y=vbCf}(S7gB@EI?u5D5CkV{iBc(!7|{% zL;_i3qxAVe1c!E0EoekAm=D2vTg-p2{rpDR*FF_lI4!KNVu25PSID9mhx1g<7 zH&5&dI8J#omw(GhzfGtvPwfc{_=NgO0X3H|@D5^&Q8CQqdp}r53FStBpsVmPax@q} z35AZ({AYghDzEXegpbKZ!#)Z*CTs%b<_a!1n&e(~J3vF;K8cvJlKa?Lq~t?F9|COm zHLMp&zIzF32SdEG`YwKZFBD!cm?l$TOiM zkcgN6 zK70Dz=G<;CrS&(OFsu$0t?I>FsUnlS|LErmNbWtzmS4$buYY_B-i{oUL6DJDy?K!Z z9DpW(OLO!t+(qOGlfSWGmv(mV8>wBF$oRFZ5gyI)_8Y$($uyJZyI0uE6%9EJ7bO34 z|8NSv|Chb@kCLpq?tAZ#s_Lrhs_yC^)6+BE1Gma8xhH1CXc+?rV$JOb7zBxsOl+*B zCG!Vsh1HFG9_9M3J$nR-c zW4(z&Y&l_ByqG*8c%Sdy=ia*2-7^eGwxwqYP1pT#?)kCL-uvvcf1MGOPxCHc=b!?J z@Jw{TI2UMeXq7*nn2wrHar^RHq&rOW(??eG)BnPZ8EJmMMFphfgUG)W>3vCQKlk{# zniU5eT>`QMZ(D7EjQw`B3WUj~eU7TL5%%D$G$9rYxybeFE&~E+s}hnjrtc=tm2Is@ zirKr)-Czc_-FcSxjdQ$D!>2G576Y|JZKuE4sq;2)CuzRU^Sgr#BB65XhQ->=9l<%c2Jzg8vEQ?l~mYd+HJO1)y+zW=7 z5EA9{w)t-sFQXH}0Ql};97lgG?-63OWMpX&IBo7gVnIpm%01myY17q3{$$bP|TyAdM|@vY5~y&g41+GTGY180<7b1z>4BvkvJg60kwxZti04 zn44{UXC5*FIa${=6X88JZPgqa(EAt+#G!ysWa!4sTbRxST|-(XT*ecWt+#50L=YHY z!f(@Ebp$6%Kbylbg zxgBsiPz=2cuN*Bf@7fAophdC;T2N*aTBOCa2ehCK;=Ho6q6M}<&Cn1nw4D%Iq~}Hp z(T|Ll=-u5gqRtFjqliIGuLmnyGN_3b3=98iu|g6c{Leh$&Ea-l9xxWgdJ(F2P+%E; z$j=fe#7~9^grCJeXlDFmXbCwTxj8@#zv>848qv45gqT~ht$I#gT0l}Q8z+KO8~u@M z7ibD`%HHvA{b&|Nm)a}p&@`S4p*odX2pmW>e=x|=bqQ7KP?Bgl!3hLL~QOJ>}SbRGRp4ci7=Hql#6x+i2v zyw?iOTl~u9mWUWB1+(MM*C}NLQ3&D5 zW%Ya7RuGnfy;VWdr5Os;hPQ{8GbDAp$3`s9!0F>0Sk4$gySb&#TZ~I0EvA| z7Qr}{ka>P^M^xw#I14iudr_1lzvYl5pz(5?>8oq{n9(qOb(=mim6p?2PF`@Btxg^q zW}iF-z*EcU`Mh?J$EMl9{ zD`p$tNdD4Y#;jtb|@k3;@|Peo!EZqs*R#qxcCKjE1@M*hB-N zoBTA$q~?P(SQuR@@t(s*%Ht{7sXOlh_FOS}#%5UCgLk=nuenj}K1qBm0(R z1yN29lw*UZiF~zY0j*dyJQeu$44PbgTI+MvnaD*P*#BHBD^WyB$cPO7y4xFYz6kH)m$ zr25_g*5I+;0d{kBak>QUh3Cae-~`Zw0Yl_t=5Z`^MQSIMqwx8! z;gxB9QnjEgU`(X?o~lO*fbkvztNBORq@}*m622*^T^c-y@%1fotSM(4Io3#TCuzy> zGKJ3yW4KX*rZm69&}A}XnQ*SCTuo$`>v4jxP*1s;{Ns6YmGD`IML=J(2&l&XtbSnP z8R`wOX^oUYQuS>l#|l8TAyu*m84N1fg=~n!>_gV>qNK&d+*!EScyF<;YpCxEy)JX& z=`afG^{96{eFUun^U4Fmo`LRC%h zBtsj{lryx+7XkHHUq>LMd@pgTf;tFn-yG@)I_9aXnN!-rA?kn!K^le^f;vdUuZB9H zSU7|Pmj*7kMji4z2zAJ@Ak^vT2b$GSgh)GuhHP3o6-GRPrl>%lBGJ`mihzUy^%(7J zqL7(Pxu^i5&Itp3G-gL14cF0!nJ9)!);tZD!y`0YDd`=3=x9J6tN_EpT&l3}gcMgw zz()=>mpmMcGziC{?T!;*QNSm#2$3sbk?@2jz@j<70*jCm0~YDLM3y#HjoL^JO(TII zgIo_E0h!uBkp9w(F-Kz0fXKCY=43`S6icA&L8PUouj0U+xRGhI2KX zlX)YRp{~00dQu%GttF}Uyw_Zh^t$7{CeNk{%Y+Cvl;J=O`y^V1ff)0u48)jMWgy~w%#NzTJ;Bl}is~7wX9Q$s6vb>Y{a`V@ zU_-&`7tFKN~!vKjE8tt+ZSHmnDd@Wc{_hyf8%m59pl)a2-TTPys~Tk~lA6S-W^x zoQd<}66aAMYHAHB(IaLADaxF0{w5Rr)P%UmGuqKB*Q5BS#Q6^IklE__zx>yyY^Hr9 z4|r>guI5~8Qa5W_@PXL8pwJXJI~*cHcsKi5063Zd z{xARj-@2hoR-lBn5Fv@fH%;OJ?){cDOr-G8ept2%c34fVGLe64r$lr!%=zr(7;t^H z_Z0=g)zRdNCM!vcl&^^UVmR6<)T<=VZ~dP`JL+Y@C*99-Khy88!( z^4gu?TTQ0~aD_T2*FKL+Z4x0G8-ZnYP&{$Vk{<8|VhNdX%-MHLSrMdMgv#V|#hkFs z0eR7VYi?XOj}VI_O%Z#i_hgsKiCA}(w^y|K|^DPb6zXi9)K0c zAUUa0j%*L$6!q~pd{p2wUSsW0q+swg8m>A~(RXs7i2T?bNpyh4c5JT;RIGa z#C-Y0SiN44lSng}_72;OEGJjF3Y)F6$WZ%qc?qPwpM$Q$TU5aQcK!|^NP&dt+$W3P z0N36_EWD7M5`KWvN#Lq*+)MzmrAFLk2tixr?NJH9TJQ6Tj?`k+>79|LE?ez=j!x*Y zJbLUgxR)#Kde0>+xmDjl4mvmBqcQ zx#HY|zDcN$q6n1RU6OOc1t<@jB3}zUM^ODK@g9Ep4j{sP6P>f7OXEV3t5Xn80T67B zf!_rW<7Ynt8$XCE`ng?9_}u^HG`lB~e>YwXFp>K83lcmg+EE?@UJNBwtW5st>A1!GcRqK5M{?Y1vB<>*Y^Zh=ZuEmg- zldF|N9af?VAwRywkxk=B&#HFR^u)HSqYZ7WI7?oP$eaY)W{5$3FryV>hHVa$H-$WW zP}^~d(=dKcjfR@r>XP=+Z5Q+G*;+PB?)V(VEq{XImc_=zJOm(cAC+E1qP+HJ3iUL_ zEpCpJ7VQ*quKk#rP!@@VgGu>w3jEUI&$zA|O!fYK%(D!84oXEH-Q4>hF_H}wJCnEc zWp~V6U}s0NGL+pM!*f}(#Drg@A&N@MiaPlv#j~=t zPJWf1oi5KzN@NVVS zaT&`2@-$ed?E?q|>T;f#v2g!@yWmU(U|_5J@*RSS7_7^<+BcF1^XaJfG2cN8{T+xM z#V2R6mD4T-^ES=&C*X|QyiQmk99tM-`K(Ft%h6UrX6xLqV~p2)j52sxKE&YBI&4i+ z#8Q4!Bqb7no%Vi4J~uu{B|Sw1=$bzTuTLbB93GuY>X-wN9Ue#XfJdPr6g#_G@23qM z0?FC`%h=&`EcuFQ4^qWJf;>?Ajoq-o4UV?m>$~W*Cu+$=TJy{@JNjw9!}q1+WYY;n^Q%f2`m>+f zC#GTc_h@(Yfluut?1)>?h}-*%Tdu$HNxjNa2wFBcvlhxbuP?N0Y0P#6NR+wOhDY~n=?KNFW#d=TFl>dE|hp>#=tA{cNA3-ovt zHvy%j93hfzRe){Nwkm?Hp;y?V7;N{hN*eMWEo=V7C`1dAh5T_=$R_p}R_u@GM;_xm z5qjg};WR9UP;~neE?KvUnG&B+B8;rw)yWB%2_5y(oB$ZPKN(e0_*Q)`8aC2PLS9bN zZyLcXCF+9!j3UsY0)-3;KJ)9JJQd|)4hX8fk0h3&!r#14Z_ritK39GEK|O`iZ2|i% zfiGQP>Q+tv>>sOuoDBD__AckOcBI0|2My1esS}dv^Ly7R7We*71T&u9ric}v#6VDS z25i}4xGIgY$`y<8uubjT#?Fh2cJ#d%wh8*9xB|fwp?kUYi;r3znu8IzKco*4W%ly}{2z1phbap1 zXEyQ?`2U{4lP~n9g#WPu{(3qB|96doU+=5npR0iXu>$2HAv`c2rbA<= zMxG}TQ9Xa`$uK{jP?a(mWRzF)hKixd@fg%P?gbED*gX!1sm-K|F=(JH$NUP#kbo_|vNzt8B%i}s(gH9QEE{Y=J zC*+FQQnET(E@YBN%cx)w(6pIf$Z6L0<|l684Z#EiMcwHZ0+LbQrLr{(lJf8O%jDdq zT<5M0rRplhi)o^R)}N0Et7?z0M17*#O%dJB|K93EIu?!D5{_z7y=>XTIEoSPSo{FN zfYh)}A35_xQnz;AM;}ck1kf&qJzt_}ioNz_TspA!9-~`^D#fW6c8m zc~s?q4+Nr9rmG1IuFpn=Sq@C)Gh)1IgilUnQ#TJVW!eqSi#KD2oO6NVDnr6Ix%P_E!2(^dHxIZL1#beOL~@cGEQ6Vq?D!+-x@R6y))Wd1_&?hPoyyqGb)px%u`V4=+f_m1 zuq0EIu`kcsz4u|v!)pcMj-MWDGE$ptUF^KyZ?6{p)jY45bJXnUzZr;SARPxM$zqDD z7)`UR$%2vIt03}_uPBz_=$&4 ztslJ)JuVxJtbuNvgCGqvW-O1Ca9lM2K@GO8Pb=R6kKr9@e>mEu^5FjdjQWl^21ZTh z#3ud2N9eF-lw8xxcdYiFi60qEaazIZ?r5~$SjOBJ`SsyjIXVn0CP{5uHUliw1b%+`j=Kj_QV3wpM@>T= zJk-4eOPqHY0MrbfW1lbXTii1iSHv)_3Op(AVG(woXz?B;U5hal@3U68l9fU(Obmwk zmhg#huIcAcdN$S&O7nZzlO06Zvn5Z&K$??_S2^YhewDZAmzF{_uWNMG%#DF-6M$}8 zNif53B;gM91%bv6^4XZWj+Tn@OP5AVUVbT%5ZDAmhAbRxnA)5Hqj69i`@vNQo1Pm- zrX=ukMj|vBmI;p&F_p0)CoxNtJk0}tkjEMC4J*WH42$KdUcBd&cIPqUTDhP-a>;8K zMt8)c4L4;ZXUpsB2Q_Gw)0%?d4`XdF>|gF+VYc+9b%OnBQ+qZkiDy!%nF48E|y+1lF|u65u@Te zse94d8sDIj7iAT=1?~l1hykVfk4wGl+9J7j^O{*mag^ennf8FOge3R}RUenOY%f=6 z5G3@pFH0}y?oNoKl$~LGJ_HiBetj-Ij12NDP>h@IE>Wq&@Ny4nSrLp zHrJxa&zh6}30;LKi*e9f781loHJ6gJBWwEAkHZ3mjT)-7c4FBeSWLSnvH3{_8(Vi<)U30Q*y^xVD5big}o5`I`lwNfK#U+l=s!) z6j~@I*$(nurT_L8zGh>fwzRBI)^!AHU<`Q&TZ*l-xx_x5+-ez5gA9n#Lio|YGM32O z_LZET+{lDzVyQqFHmEOX)ZAqC1rm*5DMLK4+AL~VHy9VGO)lvGRkbPRyFl0dgF4)w zC0v`boZ&*8jIvfaC9-_9|3H2#1J6?{Maol6u^oT8AVElr2b3d0pI{iz$^xD~%zWE% zs4b;EZ0exGl*tB>M6zNKAemBG0sfGOMCnJYgEjRHCq?g@B6R3mz0$Yx(XelNWPQUc z@j$-++685yBLaeMA^WIX@Li#2OQ%GJo(iPQG0RTq774~Y35p;KR?# z?>BPKe~5|CKLJewAWSBd-s%faj&u;i8XYsBjp?9RhM$dDvXl~H8=f1ykg>cwj@?HY z0??9L{*$#xt|bXBC74SIA=Z5}Z`%cMGp0h}YjVl*sF8o{mu>7|ppfCI}0<$@rkut6CfcHfMBVj7G9mZYLJ$4~^Aowv8nw)k3gDt%_C? zD;zWe=P}|mwZH801kX9IlvrofhqhMBnoe7A>wp*2l4i`Wxr*Bv%_+K69C6r!KY}Ax zIuXk+V?*y_eDO?x%RiYZ3`K5U=NofCJ{J&sj;bfc3uzcD5{ye!rFO1HuGN zv3(Wmt!3W>1Hm??U}`S$D<6#Oewj~5r1FJ(PKg&T%T({}g;udjn@^tHLrEh7aF>t_ z*;jWI-#{7#b!Q@5dgK6Fk)@R#y=>A5k=MBn5gnO1HP=123m%sQo!EpR!A;^Qj~D z_v*`1V$)4$B22W>Ua&X7ZhKgeU1SGF(X78j@3@~2;WXP()y<v2_kiY8){0-mS23iG}SfZ8DN8=4+xb+eB@<+T5ca`i+O0lI2R!BYKArO z7r^xWwqN5SX$H zY2t$Zw9V3nZ?`H>J5y?Bj%|K1{Y4#NE~nHP8tJ&hDpx4-D=2!8v~~c{7O_eH2tLh6 za*|>lDKXOUo`<+X`uA)LmgL>Tu`_T&^|?c+>~w!Vo9*v_LuJ`g|9i7H^p`=re)h)x zZaCKf`AgoF89(##LW;5-@?l8zU8PRmciY_L{61Odz*Ilt# zKv7!V=NQ_+yvk=;Ff`D?PRi@mPK%-ES+$Ni-EF7?@lRHvClbIhp3U2g&jWR!sbyb~ z+L3M7OU6Uq?>xTKJP;UAO%uuHQq#M@EB8#G+j*vcSeFo<*;7P0e605aJPV(XXD}kh zFH*g0_2dzd9KV^n*G^`glZU|F`~Sfsxat~au=omNTLG^S0v13rek4US@_(FQOpx+_ zM!E+A=>_THKi=a*7Xla9oYMr!0@c!BZgsFLOK-3NjNfUp4%7hlX1mrj9TF=jPvYlT zi^MLC&NO_{Rz6+Y%BSWp zpn`FbkAFq1373+%eBI&mGs$45SjF~iXUXV!{Dts%NAZ}9Ku6yy0h6(-{1otMW;++S z_2q1eE6vj!UkKbtzuTl!Z}KHE@b;*gDGi3mJX8?0CzF)t}YEOb0u76fy=DJWlooC+1x^ZPMG6xu~bOgi&RMd7`WKu z9mQihC$0=1v)?8&44e>(7_s0q4JHACA)G+00v=}N6MO=2rcCOydh{7QKypYEpn^v- z?#;oxOW-@$MGImAaLyQ~g&CwK_yVM4Q0^+xqthkAEfENjQz3{>)(_d_7?v#+=6OWo z2;&0^P@l8}U^2iO6-8NW?~$*sjr7-aKviT3ZQ}bt2Bd?i~`O$34a}$!JFE# zmuB$RCNtk`)eKGsFo`e046fMyahw1*f3v|1UMtMtWIMJG(8EgFMq(BOhW7hlAw;Da z%-}Q;Y+At#-ePA@9Xu2z@LDE7#W>5Xjk#HQi0$4oB)JJn7H(dk1Pb@WIQi9xnHyR{ z?DCMkXZhSm1{H~dM)WYtf#b1J%o0;tgGq-Y2SVA6Y+%a?C{x{3aEl3Q_+?a!9 z<~DP-nYqn8jkMxsZZm(IncK|M%9<0&%x&e(%x&e7Cf&?!<;~1(<&}Oml9}7eo0;3n zD`StDxvjjJxvl)Hw4X8+eCy575cPMgnfc+#xS<$y#gXaAy+rD)@PitC^gjdPAoczC zdvlrPqU#p&!yE)0#YoIaPQs5zS;6z?P++}?(TrVWLrf4h2 zl^tq*G?(g?O7a^vzxLGTk*9d+qy^rnG<~zu6>K6bcCUOdUmG^{0ydRHGHlvQ_z3|L z#ps5U&4}>dp$8?zdm(-g`~id|!~w#h-e6`bsH_rl2#_$$DC*E=g=}Y4DvLL^Co>Oq zk&v=?8eCI_pxaHrQAT4FNwmvD{Pi5axjp?n@e)Iyd;N9 zWYQKnK$|yd#ukNJfW!z4QotN9Qo!U~@B~GS_zbI)6ZJGrjTq`7E~UhI6rJiB2wx8& zcyvj`P=>Rp&jw{ZKO2m(()B)SlVtEAmhSby2aAX?68;KF)!^-YjZ;kTQ>g~T%$7RJ zO-ymqbO}Jce{a4i4C}Si^Lb!bW#pEFLOp-MPkkyTL#T>PUBj8(I7tl7n1)`Sg=O&O zDrY7kW|rf5pcOGDGruOJNU)3;2?|G>23wEifMcOKB_8Os9{ht3h&PfAC_-N;9r#v} zxbie11`4vE8kO>-aEAVH1rMSE-xNLTwP1;pb_U^@LP9C%$*PB3;@5``Qm8t0Q;~(< zTJ2gK3+i?f?3@cc%2sRO5nBaGg<~E;_2NW4r4?FkU?G62fK~O^9M@@6ORF+B@jV){ zTJKF#n$HjFq)k8Z*;Ag@N0x(!@c)pXOoJCq?mWPpvWxvOy?;8qN4*e3)GT#YC%G0r zq`Hw3NJwGc<>a#Cz4Gs$V4adL8*d0AlPaB}mc3Xu8DmJ6k4jAbp;WuH#Edp==2135 z;R47Zb2PC6vN~EOH*{O6l5WU_j>J=&b4Y2^to>DE&qxj_q?0S6eG)pnS{8>&q78q> z!eB{4+#FA@ZJFFBLU`>T$pAogo-Iq+^y_v8fZ8UN-Gj@`ner^}gSgdcq3}#{Ju8O{eg`Irm+XGPD-S&>OV+A_$7 zNyumuYO;W3sHvMF!(gN&A)(IYQFghe`5SB)21AozXGJsz4I?WKBCucO^(7|))Fqru zjI5+9hYHU^R=Bz_7?~(5so9LI=AEpl4g{0RDj=7&09Y!C*PhZQmkgg85K>D&HBXq&}FlJy%;Kuo^ z%w0;!z#?wPTRbKWh@OP|2jDXKFF`&L5n=RHB9S;|jm(}&^_N<$MKz+6{q@niVXwurh>?mL1X|p$wkOD`j^J5~HViDpD4S7dRYu%m(Quv;sB393dS#@hTl&T?U(#f$W zpQvrRT+6mCu#n=q!k>^0j>XknSEO&SY;YFAqF5X3kG|%TH+2de!o8&=07hzSzVbDD zI)jcnpyOQV4oT1G3#p0a1WOpW1B5|1z_@VA6FTosZYCXv!ETx=c;QTNn!#!embJkE z%G*r-W%l((0fSlQ*h}i?=MG~qyHh({BdAH3kg#UK+k%=z&zx^15d&&xU2T;?|M!H` zCOYoS=NcYmqypL_qpci`0csh-iXbnMH&&f0xwagbk*@aQfzCXl%x87nXko#gOZmAX zxUiN#j9(hlN>Tj3gaCsEpUze75`*d;&eh{1ukYtOKG8!0|F%=RoZ08hEs|3}Smqnd zl|XEk$A)_+miEW(+1!29pzOKqCB(F+fjv|?V|E5YWIUV>35ua*@fy|J1`Cfswltm+ zmh`*sN9rR^-awDzaAZOY*!)i1)1$DVjVU)T?h-#-sA}%raNI4zC{sGyVWd%;@ zs?)L3&vh9p(-|h$fGp=OpHdy@Se@0ba2WE}m?2&&Dra@b@XHAn&ioCSV8`9z1dEz& zxx{UW04kg4)173SFPzVw+ihuKeSov&2DhaJqyF=DTcUzP@(+PH*-(m>&1s4Al}*g; zm}?EbquPYQFvf3i7hK{~VP`n+>bO9EvxaP6`YcVm&yuolR(zK5yQvLk125WU$sGqX z0c~b!+UN&K-mhkGlb9(?|6I!S52qb$XQh=(6K&wqWS4F04&Fd43G=E&Za(_mA%lFV zZ;tx-SFms{#lmH!OmX62HJH!lSPFKqDooP}ZC!#RMDTZ#j}J{I-*l5CQ%TOzq}W5n z7iv3;2_W9W7YZ3vPRCH$l%-kHsc_9YeV$ePOq^5bGAltD6=7NhiRDTv= zO#>twue^V?cbfG>BVbq_llxw+TJBOc4=go#gB_vl4mtd3BX>~sYXSjZk1yp_2Iv@v zof(9`iPfSuR1iNF95B4*p=*^6H5vL#Y3s=-v~Gh|`se;q<`XRcOK#=XPWcDO$c4CHOc&os{M?l6VtOvPae!9eG5YJsPC z;V*?Kco#?dA)w#|uQ3S)N4z-Z1rT{y0Taro3gDuWc+759(guat;qFr4wD9`+!5l!- zqfm!=OG!BKrAy90B*+k7+e9$tx!~OKBz! zgmF1~%14K5kw0iC=AkFvC!HwEbMBqB$l=bf=IHrc(I+mgPdL=S6)>q!qIqwfO2tdm zGa#hpc1BE74VfdLoPgL<$O#BO6P$oF8V~$N9pz3y?95_gGab1K7EVANoV^0B&En;7 zMHD$^nbfHLZp7r9cd|*WWGZ#^M(CahCqV|(h_cv_Vxtp~Hmv!x<^=S$?stY0P-nym zsGT1q?FE6%VETkiv;ed1q=?+!``rGy9+heaz;+_*w4zs*uYJk(8^ zN2e9%`D``Lvk>HlzosV`kbe*@fUcW^uC8NU_Xeb%dOOlP`RLI){3u%oj@7uC$ci-Y z{T)^(o*x=amXRdcJ28a7Z!V7K2l16L0@=N|KYE! ztgewF?WFoUEiH(mAJg8-Ti%B>V_KNE9A_)RRZ~iqi{pRxl@)Xa+|RqhM7hTZ)!UtB zWRx51I5gO)`2Gck{s`KW6TcHlC?z%TvA=!2oghsn*w6gOi+PCFTE6z{5B}*F)9XoK z0I$#+f1or5bq>MG8@Y1ruAlsJEtH`myY&*5a2khwwUXn@OWEhfLdi1`*F`b1D=5Ki z>xRLYYQ|^#x#vF<<%{|8KmSZnl|RH)zAJyCeDJg$Eaqp*2QTQsrTJrDD?WLWtNgP3 zh4R6#p5eis{MZXci3hpj!Bgdfh>3d|y{Mhv1SaM$zDU_WM*+l~ob46G{sVb0=yC6N zRFX4i7|g>TXoR5xX5HCfaqw3vDzf5dbBBoA978W5btrOkw*4@Q0nHCP%lilsjihqg z{GT>RS^Yhz4)7+>>C0$$%}E>0?ZA@MC}}kZfZag=)=5wfREI#iBy&Wbr9tF*x=f?- zN^GX1NtC5syy;^OlQSbC0q32S_K^W3aQqQftHZj&H(+V|2;1MD3J^v~Uk9CASm{CU z&SAD5(>J3o?lR8B!$&YHb`OE8R3s9dc_%JDlz1mcW8$>qoj^s`zMj$W^B$DMIvZ;| z|GcK;H?fh}=ny6-Fr6*ZX10?*hqI|8fDfAK9G2Nx&!-Rf7fe6a$)*`@Hlt8q!WR!^ zi;VxBW-Dmu5FIrorJ%+HDI5Ymq0jVhOa?a9*=3US!ZVDDNzi`+%mvVio9U>M>K%N5)OikX*&rV)bfmqXFCYng6Lz-cDz@ft=wLk#`5*z{xvK@!Bd5RwD_f`m7 zvmp@T$#-f!vfk6FUKm1MMoB4O7=q0<6&<2y)+auBCyWu^Ms0%nVMZ~@Y+0vjW`V^o zB|jtZ3RyMh`3vP;w?C;J@2+f;8O>0ea-$xD3A@x6UL2;{U5ClMBO{XZ7xYI+3IsUV zL`-gK<0B6Wub1|ZN%G24c*o6apU~!F^XjF z4k~eEOe#m^b=;lau0OZ(3VP5}-X8LT55sYKE8l-y1<3PF^g6G>i>`in_Go+vgtD5t zE8Pc<@l}`NtkCQ0FWvKpKmWhIC-lejI~^KCj0>K(&brOdk;7VQUU?-wz(ODbPxB>( z8_EMGzH2bHC;IUE$`#S~=(%&VvHTk|Da)qG8@Y6SPZ#}s85o|`ZO*i7ZF4i|!Mi;6uT-qwM&XuqFykfFh?bg+Q z`?~0UwTcBV_wa+i_<>#Pk7zO7kLj^2iE5x|3>)9s8r#JyLKC;@$Btwlll{so_Ziat zC_pEhX!oWC&~7_mjQf%7qMp)eD+EIT;gd~>X9%BN+R&d`C-!3oE4MGm+cAc=zs&Q=N4cN9aifdSt z@jA@F+}KgATTa!6i6)OJBd*To)^lVF&C2@7Y_^88iGWhfChq$Nl7QPJ?+mz2oOfAB z>cq3)7g1|xn{pC6vO2Z5!Ukp2gJ*8_YFj==QW>x%T6u1abuL42$m(dQ%r6#wnG$gG z)FEX66HyLF7fx=hOP5FPDMdbGaL2yJP6HBc2RdUxz;iys1w!s?y2?Lx?`Og~qK|p- zVEF)IBRzhF9`*SV%1Fe(-cPDDsvjZff)}XdQ7b9&GS!A>NY)z2E02A-_M=D{It>*% z$gsq_cae@gv9!MCFU%CI=6hM@1qm$1`R9w?nH^GQeW;AG(P&Zu) ziN@Xr+#4sETkr?yRbis_RGjt9J;i(|G1&{{UCb(GUG+9q1#QNUFui-CkBI-;+IY(H z^VBhnsj_3mm>%dPGv{R;+p#{_neEtM9fOa7o9AsEqk=6%d9toXk6Igq}C2bvF*BC%eDujn5Yz2IERtza5z_C=W}>RIstctnfh7 zfn{64=19HUOs!Z%`M)l!m8QZ?0~@SXI}yh#Rx7*R+G+)|k=H>{J(<^rf%`6}BO_1kp+$GqaSrO=vrf6RN*`VX$2`AODcR-- zKb8~Hc3oQ6bUMd?E_OoKG!E*rVX14fM|vmNfK6xHLwAT|j~TO}G=?iT*m@v4wkS3` zWgt6XbFgZW@|3BhB!CchPIdn&>33A4k_kmcP6(|FAtywaov^2lK>8#Rpk-khO!i(%*w*W` z$9D00ip%hNn%B~Tu#MJUSzAcFYF|p;ORjY~q7(&kC1+7qo*178oZIBkL@$(j<2`Pl zrOWu8X=x34VCta>J`7Jf;R)57hZ;(o>&e2%0V#~B4bWnxIT&n%2cUJBl>wYu1)1%7 zfpr!50=}Z2zNEmAEQ1Wml#!SfK(J#t#wn6zjO9=9maNd06k<%_Q!LQ@KAoTh1zs1;gPyr{l>Yu;XL8;?wS!ZwTssT)ZGS!3$0#iUiYk`tnNgQ& z+K7L28+{I4tq*Zc&bCqo7E1yVO(>&abq{_9hsr;Z;!!Js;jsYW3kS!Nz4#laqI@Pl zrec4Vj(a&3$l3e!zK7v5#+(Wt&RtG!UrV(v%{!kpn z0ByqoU9bW>o@)voijG+ai0DVhHPu;KntMo5dhWxykS1lM=&scK;3uuCh~lK3mw)v6 z)FCaB;w1Gy4)}@@khZRpK1ol_Fuy&I-g?dO-w6Ext;&&GL&(^XTP0+|DO&}w!?91r z)YUdtRDtP+FPSEt^5g*hb~{w71ZX{~zorAV3Usc(0abwx(?VgX!?a33hV!$?(E$_SW%O zwJ2u#MdyAjRvM?_f!qdAos)ZMi(|1W5Jq}U02q;vg6>M&mHw(SoPKo!OBiugB#(aw zS19)t@}Zbsyekxyk9@AQ^O&~KQOe65=p|KtgbCctkt21YsPdY+vhh&?Y|8?L`P3E} z9XPd8J%b9b09kk*=*DB(tYqc#5TFssBbuNs#U0gQh&GJ`%&p~?X%7{(VuFZm(}}(* zdWTG*p|h*K(+E|5%9#XyoN@_sYBC6F;sNSB)NfhT&;nx?xy-*=~CT9mjcRg9+~T)#3luUnem+zSCNy*NfCpgj!nqdiOkiW$B* zp4fOCr47zPQ0n|`lBJWuBqK>HHu1#}+6Xm54G!k(y05>KBL%GgS`1=c3{LNeEAaez`(0x z4Ws;j!YJE}o34aWHp)@r;5;%)C2-IviH~lCQJMz5I!c+x&N@nfLLn$b890u$$Q}JaK;kD9B&{i zF{)qzSZDKJ8|lsY;C3HXL?F{18#!+1!M;2Dio|GG$Z)=nVa|)R@2d9TPJ*`9*V$ZR zcc{SNd|DldCZ_MspATdN!BBIRu4?K>@c`nad}sKeBs8TsazeunvjuCxCqo0Q)J3dw zzJ5AApz3bbI8&Wo1Z#GBZs-)3k-j)dLm)* z+V}vD0)%d2Q+@jD#WqELVbyz$F*zF_fTub-YM43{DT~JcQ8#XC9b%h;n}PFCh1Nwn ztT${YE!dGn1XQjb6W7lb{uhXx5-bHoj4x zE*CL|1fWte#&g6>p@D)fd9BlL`2PI~pG8#6U)9DktRC^YouzOGUa7|Cp8|)UQkePr zXTuehFd`9BTl(Sr1QEP$k4ymoQW*$5#+7v~_TfpowQ?x805pMx%p3TP<67VP-3ET+ z`Iu>e>C~7(FnoJ1$lxpK_4-*$s#JrDg#n87mIB|7?*aFV?J{;pb7eshGAVsB zzo2|pGj#u9b96Hl;Sa&(j%XE>)?=ZxTpWE-H#`X_9qLDFH8Lt|1tlDP7_j@dGmp~L zY7#JtGl$HA$6+gfnr0A0;}CPrP3%)-bH)rZpgvTh`3y5?6D(jN*&0^BjdW^mF;Py@ z!c@akON?Gl)))Y{(A3C)s(4YgYODn0U|~nrqJt=$L4lklUz;9%an30!Y8w*@kAWa; ze(2#4wy#FSRT6d@1ng}_uc>CU2F`+XLtJIV$h_5=mt$y{dD+Nqt_>Y*_KmR&yYpJ6 zTAXuas>_Mi0{!~x6h{no;%GTUNjNZEV=Eq7 z`d*zzh34ow+Ue%jo!;C%9|Ck}75cD>E{A1Fa0jrUc{X;#V0>Xf+#@?nHX>YO9KbM; zwdH-oY+5f3@~KX!?AlR4;9j0`q^kzYC4?>qla&Ut{kddExCUJyvF5vcK*|n|jhKs^U&8SXu059QL9e~DUqfF2qjXO5NqIzLf#-d1LtVk4)GoxkB6 zoeyWmSm!5RN9Td-1Zc;<8x|lsgCV-!0+RrfEkA8xn}9avC31#U6l#e|+d{WS_^cJs zjosC2L^tL`=+-j8W`2f>zg--Cl^nTpPs~M7#fEDNg)K@xB0W;MP}HLQMs0%D(}S# z9xgeRQo}r6-dQ_m>zIS}U zsAR|DfeQ|jrL@Ql(sKDhpHu8W^agp4Zt&1{AUq)iXEiUDAE}@$>PgEdZNw&Gb5;(} zSGCbv4%gy_A)(Xrjg8(&;IoIS7Gy%r=0ZOzooG2a@#%evEo2`qCoI4#5f<}im+`2?^UE4`1 z+`7^knwwHtbX-#mZ1AeyFI6sw6s)=&DL+7mX;oGwTLC*)RP_NFM zH!#`|TEc$EIc*dq`Xbo)!9cbALA#I~>G;RihGmu`qw$y#nVmmgNf0lvDoCku?+UiF zs>b7Cn3Evf!Dd3PGX^Y?P{7fwfI-X(vlm1-8Ty$On+Ilv+3AbGZHjGHY|;d>F=j;* z4QY@)&NelcP_sloLq3yH$|*rUF*zJQ;K?_eh6^rsF!}8@4x`qT&CrRB{8M6Iu6y$w-}43NJQ2VGck*+XsUo{q_jtU#qqz%r>qf)p-SIwD>KYSLuVH zS2zcwW9Av0Smx{GA<20D(5DM6!d4tml9ASj#H=q_I{xwTA{X7Oq}18DjxW;A4Nk*5 z4KL2yX_yKQDT7FUn>dB}!!dXeR;faiGD0$>))omXU2`EuwAUOmJl2i;iuvdD zPUvzin^=(VEM=}T#mO8hN{Vui#$4Yh*T#}vP4M-Ef2(vp97efgp^qovHfiZ~R@CAu z0jJxEJ)OkQMQ)sM%2`$>=$rimp3nf-JDXU)|9U#>e$Hp@EQCRVI^_uwv$L-gXpa@nox*O)zA;X@)ipV+vT*<#f8Ql%D z_?UmR9eY-muw&0Ql$b-`QLTf!4JEcgZ^IIEy4z4<4%_9h#5Ub+D6x%9e8aKK>2AYV zW<*#scqB6K+wnqzu}m6c0X%ofJ9U!f7F?7F0mbOw$XRPMc?LEpcaWV+mPa`|rXI(x z7N5&AE9Rs%atC!z4i*l<5ZGX0zgO-cyWM=+8rw&$BX*>wcE?C)8;@4=!#Ak~dQfEp z1|M9l@zAX#2qJ0Bn$54WI&JA{tst%x2#mT~@6@QNSvt8X!3QtKt(~%W%7fC6THDUp zf0kT$VelA5wuwgp42a5;uF8$Uh>2Y>*=^jzcdk6Diu^~G7N_v=HBT+-Q}(y&QB_T* z#ZoY-e^D0O7?3(R4KZ~_$h!X|@_a@n%E#j@x+HlnemmU0 z;8De|#Qv{Ry+l-sJ{u2^40Nou{yrVA5q$ZRk8!@dj(Ddp`SL0(n(U>8? zhvUDIN9n2*^kE$I77vM#inf;Dio>?5)0lKbhpuix^`$GzN~?3ceRL{jxohoFnY)&X zpEp>)6c5sT8CO{RPxEZJB} zo3`s@f@EdH(|u%;>>){&N2ZdGn?Ou?xGnYT)j~b`uZ-M4z^C;lz5%eo20>r<4{GwK zp{q9<3zihm#HabK2l9OkgSDi5wEsYUs~)j6p%lA51k4;4hyB+sNDxt8bkHxw<;3uf zxfOUH20lXK!Pv^tw;NH65yE|$p|vDeI=G*blsTw~ZZP2>9T>CRJZ!$>UUp5__5n3p ze67#;a;VQYVSvSn1`VBh@+B@mjZ~^fJN?lf8RB>&>pztW^8BO|N1Ac?Uz4lyrg#`0 zh3BKM?M`2v{eQeX_j~iXO7kz9TXmX$2J$7qPp16)b!owKx?4B8=0%df%%C2nyezjl zN)-Xu&w&s%J^PCV-FR|(QOv*k*r_Q0@GqQ#3FR}_lILqL4@GtbP6Zy|1XvvBQ9gv= zDp~I%agJeTd}$uUJvdXm_rAngh2{@Oq(F>pLVfB$lt=#cDU($3&4>srcE5gk9QHmb zV;S#I1LP#-wgUzNF*8q?`L34v&$ckyI^f>H>h4KHp{hWg78CC`&5~>`8679^(&-ZX z5j}aHX?q4~RfZ{9x-!fx5fv)2vVl6eh${!MTxO>ou;@^2fJ98wUyNKDkTV`}w`ZU> z)6a-2GXn5e?tpql@E?Dl=C70}PsOXf2aQ!dgJMMcA$dE2y~YvoP|~EM3=#KAq*CRI z-d#=!lBreLl8PZV_@i>DDS{@C_8RNAA{XiY^5MOK3J^2lGmlisRg2dBuu5I z1BglV?Nj{iz0=^d>r-ajmCOekabMUBHlV|PEX@dGb|2D?Fn11=p7xCXys zS7A|O-3;NN#-D%_c6b+0X7xl+)aM*uu4Tb)sh!9xyH%xPxzps2X3(5Q0F*T2 z+HtZ;)GTXLs1q?s`l22-HH8xbtKHxMH(A_hny=G&)lJQ5yLhbG94~K}%1(L1JSt(W z)vK>L!sv3o7U}m?h%S>gox7=U2QCUZHIW07@JV>klQS_g(g4Z&j2=j8*3ENxpX1pt zS+pV|G$kU8LEjP)npF{@DG|X=F+?Kpl!P>kXxr2eI^NA90$?me1Ou>hD8MPAsfY+c zQsE)Ys=7cLx2i0T&Qc_rF_A<0py?xMYB3ozinLXl3Ei~dZdz=^da51?K~cCke(xW& zwVq-i@%2uLFDxSr~ft*4v|>FX(uQ34QQb1l|Wg7qZ7v7xQ3r`wddX4bPd z5kV4GRJ0uEScYpVDW8wB+Onq7jc-}s2w0+9gbk`&9QLZY*+!BTdP*vh&{GMn>CT=M0c?yUH1=oB|d@gh*f`1=-sn zoK8tY;tx1(EWntQ@muGf#x%rqjOUg-IVo6$vGU|Ln1&`@dFP$~wU{%bO(ZIQH!mD5 z3XUus;weLxA%hF_Sm6S&mLU%rVLEV^lIi$b0b5mXj3rse;jiTbTP!xVq{$sotmRU6f%pFZGkU6XFDzh7@FeMA!8qK_z?M@l_ts(7p5p$!#0Jbd-B4X>UY zcIwoI3ZEXn5`(Yy=!&CA44vjPrY|6Y7O@SJ^wBu&_40DAFL|}8rmj)cw;HQJ#iqLfru&BEhe;MWEb?Y= z#N$4kjsbFnIk^d{3PjfX7YPN83X2)Ln#wOJ(Zs=oHKarpjuefRVX7$qe$B8~$H*Tn z%Z0t)a`Mq3N<9?6+Thij0?&s%w-ZQ|A_M$qqfn4FKzEARRC2Lek{Xvrh(iE+qWbvw_NGlZ_`(ADP`0E>O-=gP#Wa=-rHClqBfh)f1np6{}m3Y?=(p54M>25M}!SC>;q-+2TEDnq7KLYo@&q9KcpQ4Cx`lu ztL}1^-y>(?sp8$1oP}&Iam8OEJ=qy1CJ>cR5koZOK`Y21u}e_2U=MBsO5enWn@Vh} zmFCJto`DOh)wbBkO?E_?9&58^Y5==IZqoKqVp1x(Db{whd|(|O%1vpG+(eSgQf^8O z3tZ|`1wsHD9FsY+zt(yJd!t{zn*j-Ap@x$R@obj??3o%AwyAbw;VpGm6t<~$W2tZ9 zK_3RHuCjSnycm1uEp}s_;chHor1}_8^7Ze=)MYSrxEqslTj4vEA%Q;(=*jpRDNg|# zq)^@F#T(Vxkn?a)sBKwls|IxhH7BmPzAaN|KFuYSZCUwfxGmEo+m7`j$A7L9)%M9~ zK`EwuLt&(@Zw=wf)71FNn=rI1b=UToR-{cTwKrALL8EkAhGU}8)>w^*$aveiv{sUt zMm8U&wHgu;M}2|PqeNsHeLWTt4JisD8dB8jBqF0idhbM3kd(!#6q}FSlvGlzDpVv5 zyN@q@OIZDhVI{gr!5o{4T5it6}v}rq~Ilx7W?-wN?Z^ z&t@GBB@Dj4nZeidEf{?Ly9|B{?b53;c=NjW4q)&f8&8$GBtC>S;_*fqo^EkJ;M|q5 zf;e2h2WMhr5RBRi@Q-3e@q6^U_V=+2{ya$~io`_yT~mIAJO~?X|FvU+s z(%yF-TDkgWe0Vx5+5q#vo-*pQ^F3f;vfY(AiOStaAb`%NbaaZRQb_XjuJ22a|L)b< z>S>Zw>0sot3UMnf2Z+(JimUmDoTbU zO~@%a(TLG$q!IPUyQ64@gD_tH#@GMizx~90E5G&85C89He(6KM{D+wJlB*;8-}6VQ z!epoT`=cm}-y9_?y$6ozvj%C&^-Y2iaI`f2{+)Y2$@4fof00@cXS2zVkg}$h@40s2 z2hG7-(jbn;&In@vu}J&L{P^!a#U_fOuYF${{epdN!sEtT3{Xfp_=tCUUq+@`PUeY! z5x6yj4M~7J)dW%k5lw}7ie-kP%hxV&2@pBdirIVnLP$SgF5v~1P~1bODdxG-N__a? z6{Kk4geuFV=HPc}kmOGuCfGWEWsX8?=iE27$4&&ca`}tC;1F6 zQIhbV_~44RTGm3n_fKpfT)E_dtaI$sgAuA%gO4|qKjfuWJc$uN z00H>~8M{fj?X3zx0RC=F!*M>z=r9TB0O~H3VwMeWw7-J9i#K^}**T=2<8z$GX_5VN@5i_gt@E^j^N?)O zy&ub)1bu2g2|7z~VhK~nSLV$O;P55yH$)UNT+@<`KyCrlGT5pY1A=7$1ud9aV!*P3 zD}>aKf}AJJBs4HOL_z#TTXOiJRrQs|QYGZR>#KRf6TC|9z*c|SfXYzqEoi|w zduIhIt`$|FYGds{RZNHjRecZn7rVOL08|`MA&luht0^rLl2!tCvI^MADquMkM}Tb+ zawh`P@ByLVi($Hiue#vyouu7KpVzi7*Rpm2Up1&eD;#P|_-ar#5Jgr2-zn9sV*= zJ!O#UX@^v;;NYN5P-Os!#r+I1jlMHf@XIR=2+n;`xrkBCR4RwXsPZu?rSgSA0c+fc zFkgCkL4izvB2`2x!b*$0usXk`n_u`p^R3>=8G~BvOf{jM&%;K|Hvk2EX(Fy95yF@Y zwPKM3XU{%3EAcjKNSEW@9T5frNih{DvYM-Lln|fA4eE34c$Y%R_7X@bWi!ncOi((M zzydW-IMp^}3>`oVIL3%1=$?I1GCz!taGKuxnK3&!G4T|uEs-^xFQi@M8$A)~g(omP zEXarnio0v775J1E8ZeaX`U=W}t*$|Qa)#vp{Vq#u>a<67O5LloXwp3KlcH1RC{S+E z=N=cJB|Rh^FpePO%tW)_vO09MsuFtI;PCDbgX76H=Fp$wxLf3mO!Iw04>$7Tz&b-9+M@_+Oymj+tYIjV+GreK$*&Ut^jv+@*=OEKte`AY!z z0^H(B^4jOjZNLCabc|C7gSa($SBp{8O4|+yh4r*-h0l*4wz1Re{Fq-d9D!jzD+kTd zIm1C;=!4FD(7SxlJ2`4*r;n)j_`d+*rhLDw`{m*NUfu5<-e0c!%LQg*tTW7pyz{4Q zK+3p13-=pf_$Du`!VK<-ifbJ zFa8;R2dU;{M^+kUipS$dLm+=*uH`z@g%aFZJ;xFrvxQion!9uC<`eGzD z4js@@8Hbur-&XC4wXChH-e?gWW3W`Kv}(pbLHWIsBL8^Yk}beVPq;(9i;)}udI+wC zibB~`i$K{^oO526yXLF^XE}~0#-qhJNo)1SShE$4=fC}Xr!dpyFY?p-hY`qX8wT2*5Y>cQJ`bsHkJUx3<@} zN?0nWguO3}2cT1lcpQ~5)o^W9qV>FGy(=o2F9xPfCIj#FYx;6HGCuKf@zB1cex<)K zciN?iMr*t+;A&&bcD5K|Y(vyxA3WIvKkwbJ4L0+mu*=82{>}h~!;)q&x~4nhU?0N9 zHckq!!O2aX>&yt|O^11h*_{2R`Zc+!U)@T-@GlPin%c5oQHErfldW0aQ0CZH=K<6x+8eXtBzbu3m~Se{_j zvg?)iux90`A3lILn~f`!pr*a}1@lvby;^G))4|G_-~X{w{NVb26)!O9UhW;jXidvo z_3NANjg5?$j%w44x`~``ul9O61X5^59dJ4>a0!9Xk*b`l;sSxHoe>MF=~1==P1%r? znT-4kZbFQ?bZ>5KVEz=1L5E8gGKa4Du`gei-U6>X&W-F~rQ>jtALowF+7=n>^A(Y1 zicQ-hKX{blvXJ4eJj)M)V2>X_+Tq7iI09&o+%Z3OYw4ED68U{5yOX;vOO}{xtdgv0 zbhlip@$f00mCH4XDn0WQL|XaTH!x!wDkrtU;{UHUt{L?sD>7IsuM-F>&QSf2vWl0t zBD_|y6b}{@oG4^J_x=z6>Y1lM_zRzl4xzDl_Md+G<(K})*Z%X{$dr0)W&NIej~zep z@Tv8q_ua$_#(R>Wc2}CmdArg(zVgaF>+8>7c;5;?>+4@`>0R;Yj2=Dx?AVb*E7@^r zdpXdIGZU340y$YcPazEX7;$D06C4TSGC91}FC{Z=?4fgGO6}S-bxuo}6m=+M);ziL zN_?McGPN}sT+5!_YhN5KN z#8Z91#{_!A4&c$s&*h7W6||(&3;lBS^C74ZL1}7Jl!lm%-V2m!Ys$RMgsm|zfa5W=WQv1g zcQcO04fqq0BnSgLvf?OXf+jD|?#%xakwyvNY^hNyw6cQngeJ%)hn;_<njVB>k4fejrW8(%?JucI_u($y1!%^9PlcD@Fw zo!8nN*YjCau>}bVHIY^FpOnb!^oKso=BTDI*7JABx`GZy(xFPe9Rfgns4M#oGaw|C zkiz^RyNFz*;a1UvtPl*+l6|Fz@(7h@hVWoKGm4EbaKJ^DD zpSJ@oYY?I^r1DU7cGPAPWH7o=CzX$ax_r_kfGEkEmQrty?2w{nl^E@i@Q_SHD(gsQ z1a|H|IRNPY4{Np=WYc;{o+?$NH9#S~`7<93NpR>)8$wVQnb_K6rrAyN=&impZPA4i z>-g}BNcpy}Cq02M4r|4?F_wfY%6A1=%p|g!p0nD+p-ll)P zAGX`IY|d1!rgfjpdL#`K&merCqt$3!=Onc=I!6?-;-{^Pb3xVE%M|_189KDFlLoBS z1vS>=Zjz?>=Z)E|pI-KNEdk;V*%fwX3uL(+Cqx-t)f_1T=Cd9fY)(A`j|SVQ36$~v z#6^GNZ*_mJ!{k68=*!!>(8SsMqSa{!NdPRrfieNaz;NMMHIvPAA-Mo`jQuc^gY9}rf&`n_!DJ}G%&CNCeOQ9HTVgs!OUz68H%~#} zr{oIoomt~M+bmr{h#T+ueuEVQ(2nV!$K2~V{hG}){lmJYkU@wKqOAXa?7a=JW!F`p zch0##@4ox~Zc8n>hwd4lchjl71_`MWBMIBVecmW``-dPvq&z8CjfVB_RZ~ zr8a7d#u3mnaWY~8OxwW7185LG!`O}~TDAZYgfYP`M2*3M2uA@kG=qsXAgp}f+WVY) z@9WpHWEoE~NL_m8+;jHXKWnYM_S)-jPx|$~_H)iYVq^r)KTxkdF#X${lZ^Zz!!_nU zej0PXk@)|5f`tc2p-YQn?o3q%YeCl_$l8Aan5k(K+L(KeHbV1-oIw}oWA4}Led&0! z%jsv>Lm`XkUP`_u{OC9en#FkaV0(1an0Csj%47mq5=<>bwo8NHB`RU;_m|z^Q7c{w zxo;Be51`4F} zPfYkq4n7S$njIaIiu5cr(x0f?&kR-``zuM2P`zKzine7~%Wp*DSKFnJu5e;Hcr3g~qr4zC=M zLQY8{l&yS}X8~-GEfYcr&$s~X3W98yqf zSZ5r$Y^*xm+?zsI;w3*q)y9uAVR}EcQuWf=PLCJi9>p8xF&j?&lq=*c##LNdJXTVB zG4Ui;1{biY3-gRj2Xl|2H1Koqtg_RpAxUuM7d79#oLXvXFHXP)1r6)+$Fdc!(Esk?P4!43k-nLc! z>}R&?>h=dVkt6vQ4<=0W+pJYJ>=$;aHkH$;aa3i3IPRj@4<0gttJISI-!T`IcD>b6jmE_5V5 zwIh6!YgqVn9Ij}xK!CF4X^()I*sA+wRXwE|W*m0`IpmE5*P(D_@z6V_g==l{Ulxwr zzC!q^juFU9_7kWEkOu-8H5eaqjKU6}4xR^4%eveRbO7}tZvg7fH=hfrVGEN`UJy`+ z0+m&nBT+I?ljc~UB7dDN1zQuqZ=O8WYN@uGt@P`|Fe=_s%f;TNDc}T1UN;ML51^Bk zGs4JbRKI|b*r?4A0vAnGzJQQ;+EMxT@BPtBP`H!9Y6qR?7eVRyT}SD=yz6Lv{$0$S zWvSgfHqVXPyAE{|Pk}SlF{5{$XneSU+DE%lyDS-hq6F3Eq%2E4rVIEC3VeSj9rNjdZ zty!n7VUB3)VfU1C4|Kh1TZ^Fk)EeGFH$@gLtGk-LOLe$;D5Pcl54g*kj~dzPQ13k_ z4=V>pf+>EUZGTSU?S1(tk{Lo*{u?n$*x=o2!fF&KO=lisIq0*NZH`Dd=(e*?lf!p&%E+L(`xDWJof4rQ= zdU%r0pv4EK%iFJjFb?(ZE2pFF<$Ew`FK_qmImPpnpY7efy>-v2m{(6P-Mzh!Ls*?+ zPi@@2J-X-AshSfI@5v9i-#E=Z<$V59?)jWW>AKUWPMu0?Z5k=ER=T-05`o9A8YZ}u zwg_FFL;2Q=l&{qI9!N79 z2MHJfXjj!0l+QXq5TZJ>p59p_-hTeuzF9>2KTcl#~3gvb?z&pemH>7e4h|3O_ACVn#fN0X~%rpLh;sNlOzI-|-yE20yAYj{?8)D6Ho0 zTHj6bfP@cORH2lI45LUC7BXdWUO!lA6Mt}AttYchmu{^J2BK#KPB?z0Z6EJx9^i=N zWrDCCN&K??bP@^tSPa>yq1iz9mcCHUHN}Uip3K|Fr}Mwa?5GA5;hP4MN5K5+x9hd7 z;)4AWIv`IP+sFNc+*I}C?&%)M8{Sh-zMbf%+mD%+8#8$LnLAnHt zaFM1&awKqWkU6P>$PXhf#v*`Y7^Tlg>8UbX7=DBxM${+@>%fEwTq37>hUQkPoz_xO z*u%|Aea}O3I|R+jlygY$YL3hMVver9u?)}VvR;aDi6zSv5g$_gxB&Kuz(QUcs!9q3Hi*C zL!z8Fx8#70HC9n4SE3)mG^2+%U)wWtSfU3C1VK>q%NyKdw#(l{}qCllyRs`=RCX5_68R zvqMjvnWe(V=M!vnqQ*EhIq?MxHEIKmPB5C#V_kie+KDa#5b%!4zbtDRW{Mut8UX!G zmnSD6>?n?-6hE*_$nB0&JeYHspRoHx=voBP=$PzQm|3_A?_6cd_v8mqo@af_Ba zLR>-^galOXs;M$}WDZ=~7-n(toxJXTLq_u%#6<3lcf6b4*%gxTr4xN|9}WAIFzx4~UB*m#~Kxr6h(AJWQVrrB*z^ z;(JMo)vPaluJ~MS@ws9Za0<+TO1gMwTnw}H?Rnu6*j@@dWw*Z$&5%_-ksh=mYhJ{x zo(L{n61HLWfFQ@sjZV9~=opA@MY zOh($HTB`|~Lu4mrQFAMXwjriANNJakfKH*Ag(aD{+}@YX0PoCZ0Ja=(r2FD8N9E+K zQ1^uypwDuqyogcpP*0_`Iu82P8CBeyC1rK&Lvm+lYIB=IVSf#mn&Hk{h@w|hN1%S0 zn$fmqJCQN>Gds~R4M1Hf(v-}n-wD(;cFiwsEhcQw))uAD zDZ5B3)|}?g$nlSKGPAAZ0w6FB0MKO!WC!lyoU{Y>v)zVz5b~%cEF9T#!^1G&q?TB) zb2E6IBrqV|=HbIa9XktJ(fq-WX+OD|yJW1g@$2}d7?%ww>g=O;Mf2xBo2@PS$YnE2 z&VIF(l3yX!Rfp~O^RtwNKT?eMv?5Aa$b=V=pS&bYexFaRPy={JZ69^m(1Ik7dQ0 z272a~WeOul2gYB*;__N0CZP`aU7WX3ko*N&Y0uk`$N0);b-v340A8=UloX<0GaX@WzWx;tQQYf8*i-v~!F-U)b zK$PZrGDkxap2xD>z+;dWF4uJ8=IP*yg1p5MOUn3%bLoz|=V3L2g&j0blY z+VSN<6)eo>{5Y5m^5<^U%MgR=lFPO1)@iM0Y_m_Ne z*MyJ|k>_4^XJ~YrT#kZ!a=CXY+Q3M7^sHf!ttc5j^bqu&$TDS75zCm~a8^ox*$4VU zvQBj{MY7B5aN-q6c6qVp_bR?)YA|_3j^u}#m5rzCta4Z{nv@Z)UR5uAcKEf5fcCK; z``DM_B+m>fDHAgcA6vG&2KdD%n?p5VqfMQs_7NPOj?TfP;qh`j^uTGz;yl1YWporn z5n%yt6zFHt;&h}U)#Ya$`2}9l^D#mwnhLw<2S?3%i3Fi;Q^OFyoV+xKy6pTCUMKrdOTU-I*j3{^hyOmTO6|CwisZ@`rQlKLe-_>Eq#FY}uTk`3v6j#kr66x7<>Yj!7(LN()tkL2-jcoqP+g|4CAvgP zejh-8TP%_MZrUe5r-{m*U7s$mw2D;&T#_{>Jn;OWVpoLPAzX#}x3H}mt8J{;X$|G$ zx+6i2pwerp=F&&eI!b9js>77K1knYSdP#FHo_J+_iDzj}apt~h6OCYsX6hZLQIxYp z+DBRwsg=D%)X#ocEr=0DU|-ikx}z$HU3kfEaWAc_Hn9^P89hh}3w^)`9v+CCUc62n z=8k#@nKO+Zh4ZYZJbNdLguG zV-yh8Z7H99P4Pq3E0Ya$pykXA8FYxVe-g`*L|^j#nT8+#yWeE{66tVy`THPJPJnpT zXK>xCBYFP5uu^5tfiyxZB!<(2biFSm0k z5)*|Tkk+p(xO0b?q3aYf_nZ55++$|FOpy&savB?ON5BooSImbGBcN~eSI>(WM z#exgF4-v-JjebQSNJo1iGY_IM&(*;^doZ@&J|R*~LSrm?ja;Ofef z`p|K0_k`)F<$(&ef#gb&{{((-9}CG+mKnYm1Us!SY{v^ibixHwMbk zLkM%^6b-Ik>nq9=)n)2OHtx=4<$ni14zoD+(poqPkd&TwR3t@+o#z1LZS&X zRv+g?v;5Lk{3i;GCyL!pzuM9c>{PTv%b z$bjh;ld#E@!=4MpZL$WcZ3>z&+-shOW!> z@#N;jG}Cgyvq*LE{$);0amPcm{K@R3xUxW7#QFnK3JL#=rbFT+bdo2DPg7w>Dzzf{ z#w1-_LD|vfC-%OgaC5*SDwY>3P$}-$e7pPCV`oz91QyAHumeaZtI6AeJ6&tI^f#BC z0=n|s!QrtKA&I(uN8Ogu%#%BaPBqdn&|@{YY&2wm^Rk+Y3Uk(4;VqMYU4BXG0(+!r zNl=V3C~U3+1+VEGwCY3lHrOQu3XVeWKUV;iJR7t`v>1kID40#^XmE9EjDT!`GDxmo z`kNxb-pn^IAoEZYAm`ggXvLB@YyID-kfW0D-T@Gt4S{F^vlym1*kT>HqyDv^?Ge~ zO+*$-!2tY13XZUpZub1!Km4ixbI9`S>fd6AS+??-;X1Pk>dX=|8URa|E)T-_+xx%2?#IQaGo7~6LWJr6J z_TASk*_dx(3^4kXE{(d*p*IR|iPgzFG`ok*{am?UyGEEuaJ}$Eu1)rUaMEikeWx_} zeAFw1_7ShZ|52~wFjmAa>>R)C;>UfC*zs^&uPm+zZIBF~rYC#p6r7w@2E=n8GS|la zEON;@UZHZxLO+TsmlRW}wAv6KA@V5qw2#!ku%y(~f0m*7J%3F3QBk_vTF?}7+}Uz| zcM)GC2S=eD$86Cb`W|raN&K(4P5quIWCiI^bL%U z1LNb=cQMXh6!O}E@v&866vG`RFiz&yz;IxkeRW_QOb5o-GR8@J`G}YW^9vY<8Uy3K z7UL}v0_y_*G`^Ci2&A!l8Co5ITcp*?nC}D+q<;Yzbf60j0O*}ARVwAPi$QLtiFg(= zu+I`v@GS5Uk0FUU@k8{4kmBPxL50W2`U%VXT7^~Y4b)AlNPzxtIwr~Fmb zoA}~!w0hJS>f~1J@fnSW%DI($`XTqcnJ>gfCen|_2AJXGm=S7THxSkNo=7$7qA7;M8rj}hj5gwI5{ zJ&VJs>LqN=OvlKLGUmd3!syI$g(HUP|EOoA9z)+Zwjsmj-T&J;G`oriV|n4YA=iLFt{ zk#u=L2W@s3(zKzzW)b6YoFx~14v>@lt5gt+wd*=AOrV!>fwHcKR$!c0@QYcumEIjp z@9OmKKzg^2UnnWua8B-6VE33!c>L>Hk6)Q!Pv4MuvkMTnq0};qWuH7mledTD?Y@AH zt!|D$l3p1jXwifYBbu2iKd>WkikerH=vsIPxuzN3&S!Yoka;y=xypnv+k3rwOf*db zLa2yLtckPBYDjp2I=&Ecm$rf@EJ4|l9X);D0*$^YiF~I{fOc3G^F_C5=6Vu)x zCbBZzgfrh=X|vD~)8(jITVld-L1Ho#2Vxqq&4QSWGo2$Qt;)0m1U%XiT|75QDJE2i zRju|T4?{`($x1OuGbl;-MLZ>>q|2nF%Scjy4L?)TUZAF|Knf_fhLiW9+uf>O$rlXu zQb*Y%jX+ugHzaGEITG|ptBg7>O#MB#XPC#T!yc4exYAi+qO@cwg{ah=#NG{+VA{fy z(S{yU;p#VMhuDqe&@_!rh$$n0!b0OI)nTB2-4U6sAs>q-JgJd{3)JQvbqBmvs-zm1 z(wyijWv08yomI-9saEHeu3Gs^t9B4j*h}ClKdOroR1+J}UMg16~V5!#2|nEYCovo-dhMHT_0- zX~TsHTcg)5p;qDiJ0Rz0q2>Va_K}B*H5ZO*64amT^V+!HQ2SE;^vyqnAg7G<~ zGuM@|t5mWi_ah$~>&loW+Gpv^)7~3Fd3d~0CtptfS@?3unV|2OcTl^1P^rKe!Y{E@ zh*N%5V^kzS1;3^;v|T0Z98i@oVNr_R4ql{P5PC_glmuL&=78*>=Ys-%?}hJDjJ8?{ zKBpr&NMqr<75F1!%GzjkiKhI=P{S4)j=?!rc+(8MTLJ)n6hV#abm(0_k=+_vCy4dV zyTK$tl-MF6oE99?m;>ZhTH=DrDnU$G&jllQu+B|c1w?SDSDRx_ShJAK!`dMV$lBeE zWWbaiX_)2N!IUnXnW_3Ha)m=GJa5SifW>I-Q1bM%hp>>)Y&4Thv;!?g{^(q#n~2n9 zRpdkGecZ8!ScN-5hOvx3E7;!oj^_@xhI4=;l^?)-77qscQUF|KwV4OQxS4ll>a}wQ zjU6nFicgnObC~?hUH}DgVDuufu&^>^pjG`TWoOuWk8T#M2W)O!f#v)`T;}aeuW=Z1 zg-O)L+dR>!c|QJ^&Mvp%z0=_)UFUlUgBC_i`h#@F3NPpph{i65FUEM~?r}A^E3A^q zr!CR%g@5H9HM+F#0JnVJfBk;#D(g$=SvvoVjL`0icbE);$eB>9Y^@F|5F!05m0qsYbeU$_LHB&kpQbv0rsgj27(sJ zfoLO#i0D|&WwY%cT8LQ}F@|(wVcY3gkT}y=ntLCiv3K%k@*#)A&SlX2h|eyI4p0_2 zm9Q}T@c>(`fRMd#xbeZoD}Q*ga*V!%=24%$#LAVusoaV`QZ9mC<0wNDW9HgspeE|Z ze&IkzU)cjK2@xnuX9K1Fi}&SIi+#b;JZL`cGa(%_rN73!S3)(X%I0hMmB%g8aDQRS zOn#~ioVO^Al^BC~Iv!_$(qvp@sTfzw2+rTM5U%fU~67b{Z zv%D;WWa2w2`xx&FDzgTx&Q}(xhPa*85R!7de3WvC{#O?1<)eIV2)Rp-w0r^n&-}`{ zdHkE+M+H`*4grwJ9B0vY{xT)MqIr$?bmNl!WAlf)%=lKWEEsN^$;{ty90Rgy!*S6Yti{`#OSimJl7LYvUH#5bE|EdXPEo|`~GVMiw}_T^5{@Ay)9hC^Dh@^i~1 zTM5Tr_kb7i?2WUjP?;SMbAtp4A6)eCWsm^j1v=}p9J5>_OYQ2c8@Ws%@+2E{%Nct< z%@Uu(Q5OtQ>uhyHhxTe6b@hbeoleT_eaMFHfgNZJ*4;((tw+~KRT=+CXY`*ooj%L}3HtsQIS#R7) z)GVN6juyfASBr?lHpR!Rm-u3{t2l^ z6O$T6E3GiqZ89%^Xd|@6<2=%y*=%VWEp4Doo^_ z|HJ_~m_-@uAYgigX2r03+-|G{8PTLe8$Z{vs+vrV&oyZ}B$^!UCmxrv0_M~x0lxBv zxi%S|V>NQgv8pfl!jIJx=I~9LZ&y`iJJwM2UzEnc||yh0z~ zH60apHO&%fF$-?44p)a66>7UHD4l#x z=|mVajg(J@A)ow*lTIL(R(Qe~)OE@uJ*zL0`0)PsJRkAlV?X>k#fP@vM991V@c~tj zQ#k3s{y#20C@?7k%!v=xqWIu!{r`dZ5IQE^Wo2kBv zZ}VPs1~vKM>|b52SE!BzGEyD_6rS^Jn@jfOEJo(@tV(u|@qk30a~}>uTVRQ@GFiPT zIWdV)1)jmOfo78p<~I8f{?|B!PE3t8a?1%WkFyS;;jDWPY|D(XXit8tOzl?9FQB>n z`^THHcFr4cGU4)-uiuaElP&t|_nV;aYlvY)m3IQ)LE<-4qpq2Dfoi zhk9?Bj-@?LPM61-E1j5|) z$q!0?4%v2YNX?FOvu~u(miEo75Ez`^t`Lr#opPQAENC zu1h?21ELQ#+s}RM=VKYrshN?V4BPpOll{fX{^Dfs{mq!{zdL%- zySe%zc{jsh5sbblp3DkY$-t|ih)rTZd>d4cf~J2}jY5)5{%|JXSU*%x1wVCEMQ7|c_w|&0##0cmGSfm@xi7BM30fenVV!CIxjCNb?lbRr z(z$hn&q+80&gXH%_PU~9RzE{z*4(@&fY3qh`fN2{V2ep<^!fsI*sJ(Y6*6&JD*CI7 zW!VZ{_!rA=LFNsD<&cjsHivYak0qH0`aBepvB_AvFdTfAu*HPRVEc`5GBiOVXn;2=25Ogi$2OR>ChZOYX=B2 z;0_N6;*3h2NA#fAI8ze33rne{>FLVbg1$U{@~^5nH%vd)rJ z)$k}Vf?TlFyb%u`j7@rqE;WDeD7QNE`{ONaQWEG0gIY>pB@)W4Af&h5CC?ooZ2i;% zxXDi~lF1j%A9nLzgmtcJ8C?!6q8&1__?;59E#bYE9PEiv!}yT$xfyDq+ihWxFdy>f zQ)NdQ%X5@MX0ncOAh;>#Gj>E33Cf@gtS0;kXT1~IA#G3 zW|puHnqyos#kvQOTFkYU+@6KVBG}p(Nw_Ko%rXZM;JSb7%8!o9K^s7s&W53f<>X|U z%(jX#t8Jtlh(b6=hyZ)CFXIyo@bwQThZ30;Ib8WQ$*&IhYHz#>pH8;PrV;xWq$n#= ziZb0YLy3vUI(F0^u?eIIh-}O_785`|q(KvxX~6Hpn(*_{2asqBELu7uRI5TrryVfA zDtE{rsdVjw!RU>QH;17KE`@l(V;q$b4plKD;}JfsCM%nN)OvuvW{0KyQXM!(% zq$0V9kP~Xx&!DzSE*LC$y~DhLFVQ_%5>E!H>SQn1RRCIoh=e zU&`lc`1YohCMyAEt84FNsl6+{Anjd!VS6RZ> zk_X2}cRYr3>$VDOUZ@0tKvw`5ar;7`4A?#v}o~eR8Ldkk~@jL@pB}fS6peeo92n%MdN1fmpHiN1b^lE4D$aiALx6tWUw} zn5O_?o-#nH37Ax_H4saO!!XsM8n`hw>O%rXs@Q8Lv z9o9Z-G5kiL5Lb5ek^o2f_&=f|Pm8%1?EVYfnKBxGx) z09T#va2Z#nP8cmE)m1w}1u1@f${GfeFM>E0!IvqmFJLeDcgxl0mq+SMYv=APPM4#| zu@I+xe54FEaDSE-9>hDWhgUnRnTAf*p$PvmpCBk(Jv#a4tX!EN^sX$WaQlzA zRX*jcWXsApKFmV4RdLi+m1Zh|U?AR;vfLH7iNTPh;@r1FX1tnsvf2#uK{$f+0TrXw za08B@67g_e_R>QTa+0_9^o0Gsrn&>JADw+N#5}}N^X>U8HWk#JrX`FZ9x;zx95Q9F zS&F-wmuc8c=3blxX6Y`u26Ph;m`?!{Uvw#8qUR>U&z%SGu9h(Jzf`3Z({60Z; z3K#Oo3KMahC)gLxwI9H=?Z~y0KQX#f|0m=iM@9vVl?=vdYQSNmf(-9=x};|vw}kTq zFH3#z*g`yx8U$6xL*g+rE0yljs~}?@g4EpUM3~>3xWF;r$OQtqk>ZcTPN*(65sC4n zXJ9`zJNcQD2hs1%sR8~5_RXyl#h(@ZgOptb7;+dKkZJLrp#w1w%&yYC55R-)E_tGS zF))>;TA&({0dXp0$obIxuQ3_-wi0nsO)M=F8NBY`6n!*Dfvoh z*K%4uXI~7Gt|#}ykbE+!+M0=TygnGdWq-I-uC&{VzTqz-kHkcXyos*N0g>*q6h+j7 zz3)%HoGoK>_7~6PM2g|jcs&&`k6)=xhzU<3lSGsxM__v}q@pSm8Bu!`!u1mUbXCS1 zB6^t?=2_p_rPWo+0E%3avZ6oaL;1nwK+1>f z?IeZKBe?~GQag>%XmS<#6nqC+JizCLE~oSayO(CLZLXIVV#PELY7$0~wP9>Rl2xKj z%+lMd$B~f4Q)x);aF?;wJwZKS+OCoMQI-nx0vO8VLOKsplng7SIu z1Ln3_N5Bnb2}z=eXm4`p#JWF@)$0UJG{x(9-ex30Du8>k{fM1e%Dt&`EolpAtjZZl z#^KLMhG{^;j8m$1eFKXy?3AIp!>w61(wr9=^qw9GMVwO)RpgCDTR|?5jH8L@VGmv~ zow#t4sTVUGbLq34N{D>}7f^A83v20NE+8F;Suc>4a+^s3-5N=B%=)O`qh+Eqa+=9^ zi0L+0U zs3+wDu5^ip_$0%6GwB|H)6y02g@fQhEl&=8}zq`cT6FJ|dbB zB%9Y{mO+O}F+>inaT2u|ms@CgmvUV!(_AW&@CV!$ z@MrQ^^yupDu!ADt?h zti7YniR1Xs8)t7K045nhB2C}>e$(TedssLNLWnfszRk4LY&&kFw7wloY zU^tIro47P5E3*2MathcU2e{klbH?y2D2Y~sfQto8`adoZGk_MKRF7 zshQj^+%dASNQBz4d75M(tn_iT82jKf2oI~yg9t*%@MV|UH^wyvI+~RcmZ&wGfH#Gh z^|?^BqmZiX=-L6HvrEs?w8YlcM3Q^)0P>~grq8i|0$x(27*9?d-|V$dKqYcRU9p+( zXc2DHksrn92(x5nw8dOo028F?8E>%ESV65S5X@pVSJEm2@~A@-fiA85=u*9cSSfI;dRbaM2Zo44*Q+cTV@-LJ|0AXJH|fjYaq+&gIFLTPKGnwe&MV~OkW;zm zJ2?Xv)?9K8nK*gA;EPBrxNcb5 zCfR%lv?2LKbZDI*8A+tvTuD^KgNYBSc+jvU($vY5gx_z*@&TMs9Hm{&Y~-&YUk%hX zH*(+*5b3uM;RlSEMYwtMYrjNuKZ~>kUmkyXaiAUp-RPF#-7MLEhxby%jc%fMVyP5M z)WAnk%nDd}QGi%0*Eglh8?B2vc#6g^?ftoXQ@h#{gmw(Q7?1kXF-$%ZibKRqnQVDg&0%?`VW^+}})ukwo^nGQa-H?9w zWaEhCkmTmbT?7D(Oo`2dA7HciF49&}HSE6a`o%jw*UCkE9CiRZ?T&-?^KrO?1_i;v zVaDmUEVPC^j|nJDGLtqg&jdV`5do&D0DVUcM(_|T@gIy2X2TGb_|$U0|h2(2!h zL+~DkNa9Ni=ASU4bpSElXx>JcqbZl(RdP}R#-*O;oc8^Lan7^f*z-=j& zJuORDYywZzA^@B7&pecf4U)7vo|>Q&X2}$ouIw3eB3b4jZ;N`NT*#shLI|avbAfH- zo;nIUY3KyQ&iqD}lpbV$roNeT<3ClEL zDhV2ej$wwXSoxf>CNa&;>JDHcG0XtE%&!HYQa(vGQl38&aJhJh1Bdj|9ljXNpzFg9 z!i?~PbKnK60R33NR>(3BnO%Z1`NvEmwaUt;hlDMchAo=|Dpt*ujFc?_)3+n}vU!`S zFq^-M?O?#2?T&sD-2zS%C@XUB-oTv7=Qpq)8cN$k`L4PXW{+Z^rk?f|K~T4iVe?j( zex`36jf7<|7VsLb?d0d<^umpjLL_t)`=!tXHE?(3Nsh7IPtntV`9ap8n)@io9-Z{A z7Mw)y5#F4VY_z|cuJ$(5E(om{aQfZif$jR9sd2=UqYs=?T|y3HevRVS)!c1Zf@>X5 zwwh0%x8Ua%Y&Wu&wSWVUNEG*^DglQq)OK1F<7%`*_ zQ`Nxi#5O#xtPxpntE*eUQ>@2B*$mc%z+7~h*L<6#j!@_%sY78}sUr}NxEiIB)KSjy zIJ2(H;{X`}N-SInrw0HLuQDIVXNK?~^8p{kO!jm6KuZ!}8A90FNvH5O6l1 z2-4stAzqk1-ab0eg0!QKeVIB=zwO)tb=*CwmhKuvmR#1{KC){0^V5~~RJNtNr>h~e zq756Js#mtld$vCtC$~MbaW_9-cKZJ2nGH_&+K-1%dG{vEOj4yLqN`VLU|LoUYMlMB zzLmDBr#Sd+x_ZNYj)tOQ|KrKm?q47Di;`@X04R{w;0XaiF|c3zR`)RL_v7rcIou|r zJy2{vt!tXThd-&NlcTRC2hHZ%cD0S{vfrgDeb)Tyw>FP{E06HDFq<~%0-teDhrV$1 zitsYE?OmV%qOIrmou zYkKqXKVZuLr_HHP!U)a9nc)F2+)tMX5Wn{}O8oop{2*)AcJcL702EKy67MHdvCc5+62<1*8IuhW8!#anEf&ZR2L`}=|I5oqI1!^BDr_aK@>X?@ z5#v)f;tMEAAfjUZp2*%yYINVBPH@i8p^dsS;(`?T?4pR1xv1lQP5`znhKfgN*45<^ zuONfYg=USE}RKJy)~Un3_lw<|}f+AEx} ztW6J{cE0U=ag_q%kpkSc2u{)z90Kv!_2@U#{b}!6z?IffI2@0htMr##zq+L$zG>25 zp4@F_D@@+_Qz~_1K@dA&;P@>~b&IrteB=3R2on4RlrRb^a0Atp@q~AikCt)7WpffC zWUOKUigD$Ri-ZXb#eDx#P5 z(yX7Xfb+EgS6I-d=jFw?EIun7gF;TpgW_A%vW^#fh-15xRZ&NOMI3;s=z^L3vFlBE z&CsG7Uv1hIAhv7G30%3h7E(hYMQ&6^cd8rR>rqM%l_(K*{2#?yIt~TO>}5Ni1lN<` z&<#RxJqfOt2oB=$40}>=(4Xe)lMfZmmp32b5|`7Tga zt$b+6MwB|>?#!A@{J;mHFHN)Zb{48qanKlR-BiNS zg2O`KG;E8|zRF1+Hc5g-Zt*=Wt4NRfXqC}mi=(PghJuD_@+VzOP*8FUnl4+OnQZy1 zEstt}vWPJh*FRvu&X^9Pk5$k_48Ltt8624zIXkqiJ$8|NkVc?~Zt9?}(f|TqX|!-* z#av1@1<4|;VQVmT&p(A)_&lYhqg(YTWrs7v;m8b!Nfou?*$}@a|SuXYIPqu42{=Rh_0 z+9}I%ulB@?P!-aJVLeVVcwh)s?4AUs^$aGE$p%Q7_ma&^89`qS_8^@ z{MsoX>Y+V?4X{5G+$GZpYFl}D2|EYd$2v|u#cjZOgd~pj2fqRN3_Ow*QO%n~iag}6 zldwH!04pU5k_-RU<&_?nx>WR$O_yX|JSc&HfNj`7eAmgtDz|#Dy5jDWhdm&tYTy(j z6KeIEPe1XoANRN~9%?I>tLm4+AKcHv*%<|z)=&SePJXuZB%evse>IC8y&_*ya!%&l zmOtyI47l+r)BNb%>w-N77=_3s|HBADF7jFzf><9My^c~-oP)|O|v%iVd5bo$S1xwDyXV$o3(;J(N_$1nA*^{U6bsV?}fzuQI z<}c_2@-%|5*sbwd_PvXxn|=6RoPC+r-M%9lQi1~+V>#VirXjSu+M!31b(u=@B?F`+ zDi@YtI*@EQH7)TlthzkG{o-g)MiGu&%*`N&$*-V30-AWgvMwOa;Qs6M z03I=0qAguxRgQwI@C2i1uW3)UqZ-LPRu#Rg{5aJf(?8~Q#hz8~1NwL}`6M>?s{VbL zozjDDfi!Qb9)w#S0@x-@~qO zw_)$hkjAigPd-Pg=9CsK4I5c9^(wbMh+%)d!zSb0+^};hG_fj)=V7BLnGM_YbMwPS z9qZ;`e%Pe5V`1tPQ^OTDo!vJV;EsZ(d1F;T;k8iDJos`dxA}^8LL()I4}UVO$@c{P!&Izfs6V+_CjYI#G^-$+cXHPpY~I^Gpm)DP1S!QPALewE<~`~xH=C!r z_l1&jffSV1U^aSZK8$t~PSl(`^63N=sJYg%1dgD>^&fX($f((p74Zq3j%c+ zj2>-lkMAVJ8am2dqwYKL87AubZnWa7QSsDZ*xUsk*@X?ZlrcsQb%*C zQS@=+#C&I2ndm_CWcPtatAoYLy-Q5D5a~{$Rv|z&#BhXUf}eW^Klc${01DrB!O#A9 z3mXV(V6JS!$q*vFTQ%mu6Wn$Qenwy420wdZ8$}G$=1dN6XTi_Je0VtPJ|5x}PCay;bfgZOM;3lMGm!4i8>&QySb=tRn3pvs5g+>BhcPxbqBh>JLQ$dPhWcfjJV?cG5+zDY`hjGOo}qUi8lPQ-96n~QiHk#s&z!9MYL7Lb;3TiK!}O}5lG zT+0Ef%(@Qk#);$ICw7Pv?|Hp2P8=KWVw`x)kTy0Dz5us`J@9~*h)r>WA5n-t#zQuR zAjS^@1S701e#D@z3zCc9F`9E-+<1?GFop>!v-^rB8eVoWaGcG?uW=qqKAo-&6IZOl@>pQ;=mB^sgu_Jcfw)COs$2$RSX|vQfe1;4R?wS;%5KQI61_`9_isI7 zWn3Q?C`|hU1c%B6ZJ*%?nf=q(E-W)1K_+I7X<2=a`Q4}d^L#(i@Zp-%zlADMkv`0% zQIoPyhY zDUm*n968`Yzdaj8DkP7{CriaZZPlUXr7zuJ$JCp;*9~^;g0auV(Ah*&3Z2tc#4-k= zDefQ_ObK=Rh2pm9JDMbxwUJeK~qVo2In3p@` zR7$<=2H*tQF@XN$t?rB5@ANu_V15XP$qyB4@S_N7@YFwyXFxS#kN(B5T21odS>(f> z@*$#(Xh1CH?&+1*fr25zug?;2iA|07{pOHa`2{}YnEdl86PoPM2&^bWOa_BkVX2Y;J59cu7{g8}pb`+o_2- zZ?|GNQ`ReAQ57fZW&YM1cb=H;`6_PqY}cpxCfkDYwqQ9mw~Cb`@LdxVNbmQ=mUD6= z<3k=NfZnPJ_e^uHp4_htFvMXQYSZ5l$&8!V>pnp@L#@O}8EvS@9huWLm_iJRy$KCZ zm*{)=`8sYW4l={u$xiuMGLhde;N|>}*7cpw;VjEMNq=Y>Uow zkS}j!bYlRw1kji3wO6x=4VW0iNKIfvpnD_}Jwyec!x9E9(1*NRZhIp{6&J_>>ntI3Y8Vjr+E=OR=t zmK67$E-5T6&tXZCRe+x`>#Z@MAe$u_(-J5IgJa&Yq>P&1dG9&4yENS{DLBIuMifE@ zR@>*Yq@Z2bGR=~rOt51~sh3zp8bT~%M-(e*(ndgS@Stpo41RAllMraUs zqnMmMmsYKw2@YWvVhPxFX=P%ih2puw;Su9(=i$JS_n7fB9Qg6Mmsa={0;X_45S)X9 z8&4MAfJ2fS%%;WQ6u>M19z0ueGly$!{sh6Y>5zOjCpsr>W;4 zBKhTMngzf-O;bv!<|jeg0(n0FX^Om~2O{LD@6BwQY7>T<1Wkm3w89mOfQxgMI;P{R zDDcC-YdC<|WnIqLb(a=Pbts+^cG=(PXw9?{i}4FPBltm*`_b}CGVBq<3fC3|Vk!xb zzX9;jIRZq`uS9!^x&{%~G0?IrF|ly8b1ei|*Cy6K6S*vPz3MfR1FNpFV~v-7FzcVGOcj58r#Xq zcbA%H`<{FIGA`^0mL|Ujp>WU67aanIVDe2&{s8BbgFHlKR3|fMZ~MNV`Q)SD&;Nhx zjr6y-?QQ)0I)uOFX7GA*f$1L@;v7;=LcJ9TqqY23@(@URa($8i`v)#o zdUI7gJp0HWz5UM~{k^+>7^!;H{4Da?1>b}An9#l3zO47)Cl2FS6<=dXsrT@it9-v% zPl#flvov{f9#Kg_v{^bv@yoR5T`?Goc*T%1568_Nn@oSDB=joaE zz=4jx*4vY3xc%Lm()~&9f9STjfAF_&J=%Ondi>ef9BuyMlQ+hX^LJnOS|T$vOZ~{B z590;g{BtihZR{_Bn?0srKeh^Js(}waF69(fIgCE@3wMj!d>c+QrUHz$(rOkX88$yq zg`;e9o@!D5K{xClwd2DNODofZrjqxnKm#h}ab^nqLR|QHbM7}DE+$ImaD}2#EVZsz zqg+Hqz{dl=OwXKRusO6U41|`V+QhPnE5G;Gub+a^BlMI{Qa1<9k5qQO4>pcBBcf88 z@A-8)O1Ex_e!-M1+B|3{^n#HHj-lJ4o^Z3d)lpE3o$k~6)4v!{{H&LqP;~I08-~Oh zQPVsOKN?|3{pPV>dR{Q3I|0Lwmb<{vx?YX0avq8beu_kZFPyNzhJhF`!;66QCmy*z zfnouqPX#qd;2ES3Jko*`B9YJU04aE9?GdCUgh3>UAbl!M5K_7=kFWfus&N*nq|lS{ zfKNGjJX>}`!_y0e5{x`akDwI~O>hKblmTP=se5=eH=1Sp9vtX4L+@<&A3tW!RD9&4 z;$g@zv$Uvg)FSsFf`Y6Uy--EgLCI#Ob747j`wz`2`i6XjDncn2Q9F7u4QYt}=#|FB zT{IWOA}_0G6Oq+>F*dQ!xWPwsD6|1%I|}(Mw_?;1r9uWDI~fr%5Ij`QKxSDc3{lDI zl?KY-y6Cx{yBIZ8zyKOS61ufTZ|FuAi|CI^MjE6g1gVfmUGC^+5~Khf?eljgNQJ{6 z%ekT}u6%4_I(eiy`HNXHfq{fxVotD1Vq(nRpw28}hRY zR&51yu8tKcedtW*0GNsFU`u4BYZtq25P-M?8es$w0R|>k`x)I~xofk?PQs55aSxY5 z?I?$;gVItj(b7RJXo;2}2eM>@U^-oas2B{2@xUTYuRifW{R;hd$`jYK?}S!#V0mRhDyvec?9 z2RfK<`dDgF4JJ!1z&IOiVyWfK*OXI!JhRlY+=iuA^)q0e4w7j$equz;hT9Un;+hiN z2Y}8jwHhH1zA}bdJ+|~5cAA7ZNiQnI#*-c=jdDDu5rV8{N^+e0wA2F4Y^g0{TnUj{ zY7rFNMPsQAGvtMqS`o64(Hjv8X&`5Dt(rKeARdIJHYQT!kEK6VgQd1L+g7G>jm)v} zCI;16YAf@`v+8x0+Dak6oU_y-R)G9j0#gaH&0Wf#fC;E63-WaVIvF~?-po?_v0=G< zmjf*}%OE*!>(*M@5O+$lO4^ld zSP6{nVU>6XfmT&0xp$OoPX0o>HpB{&cH6p)^R3-7<&<0Td#Nz=aMaC;2qR##ei4`P zK`PCcAcB&y(5XJikV`J(7Y7_dL^Q`Xkd<;d^Jdtdd@!-#fFeN3Ylv}skzZZuL7R|L zZseJZ&9WnJ9&h*O0vQqm@Nkf*5K4d`vt+;;>hIkMBp`yc0D)vRF6}}fw#HCnO`j1+ zyt^22QSXQgb~8jc+#$*JgW1fIxni?L2GsI>U4*F zuLizpEaS92K((>TO2%aphDTH^J%^f8_21I2{W_JQ7K+^KL%5`k=T0Q`2wG6cGd+%u zq%a>eXgrpcT|FhTd6MqyDe)v(4u}s)&5;Cyy+;#w?;%zs6I6PR5`&aQeo~Xl*h<-l z>jKC05-QY!l0j;22fxOTIY^M`F+)O)Nc^a&?O@W8hWcJr7(YkIh-vZ z$5NOe7bxrLSxw_& zDQfmL2XSwaE-hEyYEi{AXsl=sHv4?ZRx}yemv|PHOoxsb?^iUR+>9N%{x+fhWoBS` z0|4qO!YIT7#O9u=9J(@F?g~hkN!8cuQf1@bH!$vpF~r0vu^uq_4;em zvZoSX%_{$=_T%TVdK}{n?;*H%xa`ORm^Phv5baBOrIMF^wadEoM3eD2JO1eC0ta%G zyBAPoR1HhtlUL6{zCc8q)zvD=V#P~d60Cjw7R4H7T;^N}Wi=WfCFbQP^Zwj8G za0ZsilPAQb;7#os$SOi8o1P`z8VHV)kQDEpP3_Kivo(+1&82~CAe?jL+YX9Km}?U3RBK5dfCC|j@1xO55Ebbe*bB9SG7`6dYDe58StA)r zh0r)ND+FC!8Mwv+?w~n7M9YV-TAK{)J1XP-p zfj4TSn5}|x<;REVu%R=_mm9RQUZ5rWp+qbwCk}@+%+2+DT_iEai40H>6@)6M5`?oZ zH|&?$vnrCHjH9Bcj>V;Y=+^JZwY{4Y0%w0sA67$K-*L2YHAU5?Qda{lx-+;y@RZe5 zU0re|t^PYAZt;59d-M_uiM}!JJoWodEpLT@LT}?S{3bn42Mx84S=!U%B+j&t!&?ey z*!{%f^fs=JT#MO^QLi~EKo@6b+`cXqs#4#n0B0yKkNAaSr9 zYxu;1%=NFj*dZw#m}I{31-2)5B_%G63%4-iFPHspc}w zLd9h@C938jOvRisJ@{DruO7M(Mc!#H@kE0>1+MYLfyEQ8;|d;=mdd2XPkK z65NP;1YB#)+5}}jEHrK#)VaGD@*7_`buKL0OD@`!RzOI;-KH0qo&FWOYdf3lZWOCi zu`tsdRGL<1wmFdB;z@$~DC|p!xIOAssnv^OR0{Xb-bnaHBzNZiQDG1c)WPrF1u&Dz8_;rG zByo6gUs?VFKv=bP3UT(i_?D(!W?UR;PIusGNUIcX&k#%ioP-=MDEB6{%z-IcN6L9t zy96Lr5O(rK^8U~xPVDLzrV3^{wtKNu%xP@K_qSNrA8roo+<)F!-*+*rPr$g{NkS0n z5J2X5-N__h8HH!42k?d;+5h;@UD0BgNK`2$Be2j_CXwnx0RZe+ONuv0?22~+KJ)c2=r#W4zd?wZ* z88L_meX}xTQbrE4zByYb*;yja;NGRad5|%@P;zd^#eR~BnD=|3?^LOrHeNK^Dypm8 z1Rz2;Q4^=7ULEM=Y%BfTm0WIqhTwCLRs&bqAc+CB!xdzT=jfLE&h$AKG{> z^uc{jlAh77hECelO)c-E_iEl}gyW73jP3q^R{_bsvQ`|fz#MU(A4=^qAG@RSB$PHS zv&n*AXbz>XKOa;pNuz7(*uEOw*}tHyB-?^^^I386>>9~%6BT~IR?lF3P~98jOpD20 zaTk+%@c$LyfY-Y0W*O#(iV{w$-+OrLtztXHG1_-52C88qgVZn|`3nK8C4~qno$9qX zbq5Fe*Wp9f2HLFUKpWf|MSt>VOa@w^|)RL~IB3vanT zyEX~D>nRL>h1VbI9p*J7$BRzS7?dn&kIR_yx4zt528pmlg1238WVz+$s?2NSemcUI zd)nHsP)p@KT7-!#!?~vIiF<({K{a2RpZNo|k?jsIksk`?1F5e#$SL;k<$_)swQwB4 zlnB-pxS!SUs*tJSiSksH0aGNyL(Wnl7Q z7C;_OL)5|g$F`pJxVh|hdU^&@o;`QIY zoiVQWktPdf%3AVrU&CRpcf27fAKfu~06s_w@H*Q7Y6k6q!?6kOpnnsADh*SKhad?b zba(-=E)%j~L)C0uonvS%M^n<(GWDMMw&Tr%T+K`gDe$4yV%p~dIVyR9lt0Bg-!4b* zlN(hvYq;9kW^?s?oBEMiG3wk|b-N*ZKOeu>euR(W2yS0t6tmtYx$hZTUZP%yO^+*t=9H%RE&Rg2aqXBeJg~;I#ier8;Pfcb&nG*M7IsT^94+ifcH9Fw7*$MmT<89i42=qT z#u~B3C8at(82vzoX6cHq@%M3*UwM3pmzouFT4nTKrc{pY-wlrFMkTa2DyTV_Hhr%f zCdDdh)f>C)=RCqBB}PYgh~uB?jxzyV5Cha$7o=j3v(jxK@!h`3f$G%hsN9 zCbz?Jt!EW~li2lqOH{_5Z;7;aO@;FiSc856a8p)J9HfVs=!Bt8hb; z=f=Iks&E?k(0eNs=wTG{b{a``U8w@RoF>GA#u|(DJI3drwqUtju2ur_AibQ2WU2Xd ziDn;I!3>|`mgURa58M@d<)!AZ*U4wyyi|uN{9jEs=tHd26#H~m_kp73RMqM`jnqRZ zi#1&{*ODt~{w34>f$kS3bUb6*cWeCmiSCz2B;p)S^GQZvNBA_JR}7y=261{J$MYh?h9;v36c|BK6FZcRrHGN5adHs?kD(>_4SiNum^m1C;Lj@DE ze)4~MeYv;C>dW_UUaq{z=MPuYOYHJx^(7(K<;U;MkN38Z837|=#kf425L|U!k1Q@u zoZ074iMBYYz+F8NcIlW91MZ1)lmO{5AL)XzNQAe+}hA0>Y{O`PE90XQ%0-}DvmGGSWG;6b)i?|e zn`?Q*(nFmi_y!+L7!8-z&9xqWtVX@DdPUS5{-?3^T6gP(P0CZC^5zSW)$5xZX}Se> zQU}G{-Eh=wd1O+m8rXvgJN972%hwY~2>3?IP7Hc&np@)pM`r6~S!55!pCd>%X_bUF zfK3=Uh&?1Q$KCEKveibn12f3cxxy$o(##3BCb~iwxD4aOH^o4U#Uc*5Ed@rCU6BW} zm&b+YyY%?)v5Fwf^jH3o1~yQwJ&#Mu;%hSLDWMH0?r5GSr30$KdAkf|rZ^TfDFI25 z2vcP9mRZq03)1lhS9czJP>K1*<80!b{hMzftw<2w^L>iWugICsNM`?{rm3x3t1Uz# zcIYFwrdN>WEBflkc7-WdU=BRi3 z$+%M0<}P;x*F+X`zD`2{2eTp2fO|oJnr;BQeWjuM9wQj!tCi6MRQ87ZO}ZXg(eXk# z#CV#=KlX5R(OMx}ENcV_NWG!(>XQQ;{UL8gtUBy~QWqmtyA_Gd)J5;QE_#;$w-HFR z=u^LS{j}Fuq<8ymQ_)CW03FQpipNiJ%EWnk!-$jKCmw;oc!&VVZ(qCSNwdj97a(J6 zqlVWDz!=%6O^O5!dk(u7l;VrVW%Ji zcQ*)NZb_<#UFnq6{y10bjdpCyl(g)=m&Dlvsx(-~wq@FUal2;~A4%iLI)(Rx8BbPx@cU9G7q8%467a?WDncp>ai?8J7ki<(gH4+qq@%jntP zQMVHjvjigz5NwRnC?zutA~p(H?u7@baby^%bBvocmAoYb&Zg2}Wp_n3DRNn%!JwP! z+5sivlvT8}z|y7UP-@vi(BciXO4L)v9d+CgXV$T78V(C;@Mt{9MRCuV$AL;UwALx{ z6cLY*4t;SdfoUdB5m^>e?$VZMA+%yR`F{wBGMbN>Yex}97dpDn-WrK}K}VH_X?;ku?7vLN z`O&Zj5!k;Cpb#;73gx>*~ITuT4a>{=+CA5dH?nx(W!yx&VYo zOgJMF8cau&Y6vHM^zP}}e2}ZNIDNkJTWVnfrEe8e10;$?Ybm}JaA^b#8eqj3AnW5? z`hO29PMo*J zG2|OY3rB;Fpf3v%Nt2AVI)md)%?Z4Ba55+i0DMsrGL~eLR;J!ex}HgLgq-1Oc2^It zEKdLXZFUOly`rqfi34KKQYP6(b2_7)tTr_xw2K56f+>|Y;H9}@?2)ZRytU3H&w^iuX<%_Gqf>UGE ze4kWk4|;N(fK?H2LQ^w8PyslmkZ7w>TtWgF40J18_4pK4*vz9^%UFP-2MbKn59G+q%Jig~8G0+_FEU9ZM zltCr&_UZceU2mt#Xa4FhKl3M__=RWgJaPB7QzNRq>+b0~8D*Vq0Ex=#^>4o)S&{GS z;qhZ8FeORcn-%|DGDq;@H~9mm@Y{M7aHb{sJ55l$PJ&`VLRO_&`o%*Y&HuFk%3I?@%0FRo)vfn{!oj2H0lb5(bYhsqO*>zE?RW+*b&9oi91(z7pHT z3>Mlh&7IyVOq0Dp0Spa4h} z%x(V^rwtM)o6`;ras{p&7#I{0a-!SKR*kuc?3P6WTX`&+M1F zN8fQBRk_~04C!G)6(off3>uVHq+=TuO&XFGZJNgwhXsW0$V<8#BrPaGqoNJmC}?Li zNbc`9=lb^J)Tv5%>h*>qXMf-N)?==@)|zX+)?Cr_EEAs?GNl=gJh&l@-ZkVtE!GJm z*HUK)@3S5^q=X|`9crC&+;~EiEB9$eQ=u(R-KuYaTI664qzPP1ZX$Q}u2Nsz)+?Ag+!E!XjcV1CNQ-?f`?bQShWSQ&)ic5crfuyM0dHhlhbwi zc%@{Jsz+DJal<^vMxSF}<^bVDz_dK;Q9N&Wi+iX!d|O|7TZuQlY)_B4+K(jzh+7N9 zRm1*&b^lO)n}Q%z#(GCCAteOb)wekRyQb*!JMe2-Dn*; z4n<5=OSu6nBlnI24zXO~-w-D-Ot_0qV7HjO zn{xLT1p@MDyyZKfCr}ZkX6i;ZYq5eBwCB~E7YEedi1@WRC(&+KPpK-S_Mw-!xR%ZM z$o+Jy@|xdy(#LV~t5EJNBs~yGO9ej?NvgYMb-g)~P`Wl4ufke4|MtFUC$Noe0y2E; z82T#+V?BN$1h4JBZU?TvF3>c?^*6-pBCfwFQWkN2PNXd2`aq;C;`$q-sYk~3*PV)M zAVkpH4cA{c$Mxfva6Rfa;8PTJ)RR=*i)$<<$KWH}DCfwzN93Sz*U0DIP3|XGd-y?E zXU-w7phx`Fpc!zJ6REIlm%yrA)LasK5U)>_O{1*)DaRj%rgvC((891A=$yJ(w^=v^7kruTJ)=TzjU&C6G|DZ8dv3|3~c@~*=Bm;awdUB zp1cr!FPg1ux=XIS`=vKcSBVNi^?)Gr5jj}$-VwNZe9CoD2*F(XIo;Uab2FN4o~!Gp z8^@=kxO`>%tecM;%b}WVZclE`IDokCZI5rJ?Dp5*j3BeY2QJhjn;~-1VDO~J0WWB( zz|d0>Y~+Nda;tHO8Dxab)_%|+){cNd%{Xu=mMddzz*XWP5~?I5xZ}DZdUGG@cOc|y z#61APBMv!&NomeEoC?{-aVivgTH%cNape2Z7C0g>wSWnR?BROpLH2TkUO0{^VsL7I zK5#{CIXFBUyT-ALJBJ0BUORkT127xD#^F;^0uv=4C^;M>xR9?vgP5%W@TsHM&XjqR zN2$y^|8J}^PiOAU?utca-sOK=m3af>IL-NuvfaW1pFz0?enJ_itEx(@WM(wF^=dwn zL(LbPd#XxEg62ThTyUHCq@bN^dS#x>kVT-F?Dh~G;8*~v>dj>|sC3BI#-wB3&QuRP zNosqAog`3?h20f)ANry+7ch~NdW-({vLtkK5}q#2R^_AOyEkA!3>09=N?$lWbXx7j z?#Dm+VNt=$Y4*{GeKr^hz4otc{X1Al|WDADyLm`XfAN*ql%?K zPdjpUC*F(a%{}O}B=ks!xotoIiT3H>tSk?PyHAQ?NapO^UkpVfXP+HI)n2V_Z+P++hi3r|w8pXuv;f@L5%-pG% zcwU4caCU%F!DJBo14^eTCJeKRtuD%p%D6@Z0zND%CVng@Hj|NE9{ro#^2xcAMZ6!= zK`N$eoM5O?8vgH$Yf}7V3jilr4#<7%f|1)@g%A3Sq#WLHib3WeQiPs0%i;Gmr13n( zAk)6^vT%w4bL{L3T?;o8)O%P?5Li?H=HZ03sC8B$Ijxe-v3Gw^z;y!J;V0C4ofiQ+ zlazkpgW=nxrbN0@tij+A*&t_h=wmobG}FhVdVn@w;BFtvmRZsjnS@FukA*Se((wVc ziAot{a3*#rC`AdX4^K_R;Ka#_HOu2RePnB$?*slr!xMnF-TWj)12?yxhT`?vNeY-| zJ=8r(fh9o|>xw^>L?Fj4OY+#VSZJtN zzXLC&oUSIn$6kcvwJNApp7Nk8&C(*VdD=bL|oiu^GKA*a|SbgcGLE zUNXkSO!r`@5#!=TT^1%2td)Ow!t2UsFBv;EyCYi38amF;By4YNUU_~N1C~}SP~esn zN50(qLcsT(J<*MA_I{2#gQo+%a4oc1S#RFZ#th{=ZzxftYZDB|{~S6S{cG7aMfITk zdO(nOaao?2c9YfYD+hKNQ*ZLJuPr-v7R}$b3zjB|=F@IP(Ch{)d`RTw}M{niFwSYj}*!O&csg$_K zAjC`rl3WWQ?OjgAg`vwdvkgIg52XqU8*e#OQzY#bSP!X1JCVUPA9_^|-O8olSyGe`m}doX{?Bu{ z0*}uVKu}xyKU)xkf)#~7v>4$DI@)x9`S8~(-QM=_;}2iS@2eiV*w+Vth1aXQv#ymW z#GTUXT$?6N(Pj<1+i&7_qzD?m9(azr9q`M?jPKt-8C|NhUjVm%IIZz-Ow!#UWrzIL+x2eqoS1JT5m~PEVgU1VN)F<`a{%Wu2c(7e@bn*sKzuf$0nd#Q)hJ zE;Rw-9`!cv9w4b?jfWdLuur`ccNn@Q=^nNVN0}~o`X7FU9ff>+&U!}I_?p|VK>27m^s5IT@;`wBH4YYdni;)M?A+3 zZc&Xe1cnYq>J6ur@w;2}0!$jnFvak+&xy3fPIev$T-R@8ecPV--}Lx`3km7>|Hi|g z*QMm2UGJ$od-u*C`Kf>Vk!ms9O*bxjgG|?PHF3GGrxyqsyni7mp`GB~;r{`D{yyz1 zbTYjL=V*}K6%9g42g%XzCTuy(C98#Pwz?6%l;}(Q8M^p8kzg`Q^0W_&nkO%t>rNbl zoR5FnBmTMw=PSp6!!H&S;<4h_7@{0!vTmtqkKYsJ_n5zt4+w7Zfwi|-pRZXT*!6R4 zsyreZQqMJ6-4*%s{iU*&$}aCtY%EpfTh=81ePUy|qW2VlPL|($3t$^mb&rvX7wd|* ztV_Y_-rVVDKs`|E_(;}4EaQus`)Lx7!iBE+mUX~k@NpTQhe{m}7C0QC&zu1cIGI!6 zI04-e*~k3#Gj-h5bSIWkJjbxR$cY^YepRVMn|FMsj#pC0^051seUWOO*fHp@DRtad z>d-UjcBUf|`Ct9^$*Mc6d$~XN>o7CEorxSC6dd1X`h*@o9`h)-j~jjBy;c8oV%R?| zq|HlYHLo6WAhzz~*%l^YX__P9&-s27uw!=T;x(stwV_eEGX-RMccQyMOiNZgOqbWSnQ&*<|;xzibUcdF^Afv%zp7aCb|s3>0a6bAuOBV28JEV^(6Y zT_ITMjf66(y(HC}JY5+2PD}<~>#`l^69ava8+K)e$g01va!MVgT(DG+wmpWwFDIkc z!vttDaJvD%T`L43_UY=C1!NgcYPA|6st=Wnf* zHjru9se=;lY>jgr)C;!I`N#$ggKJ?6W73lY-uMN({-69ys;9hqLIgaae!g5x&569Z z<_U+1qIvqKtfCrYCTn}LBjO7nQvt&8^XDEjOBomRPU#-e9LmEVbUXA-_j8P^4qU`R z5FJbk^T-d~(fVckG8$5s+^(1OO|!EhX4w=CkJsCq$hAeQW9uT?FkRI4_VDWRv)u@&L)c!ov|}i%Xfv0ttA8gFVWa zXxtEdL%6b8gqz#m+AB7>Hw8%bz}E@9|A&I6zb9oPr<@{?FwM{Yv~rMCA7_8q`~a1| z^Rqweeur_VZ>nbzAa0qpN{um*J;SpRh-~fn8i?V3KBX;wXwF+_w{Wp@)K=oe51}8# z13AOxi~9RDY^F1zV^+aPgp8~Jgu@mhrj_G9@r+J?{8_H^329APpXL}>4M@zA2(>Z+ zOr1xDTx%TMJboz73YpDNJu6Rw_@K!lI>rUh%#73pKn3IeX^jN1bE*SO@=y>@n&kXE zejVhs$-@vo@YBMRFV(4Lt<=GR~yV=Ej`;tf9ns5{d<=%5Fc z*qkYb)Tu@RR^+hI-#LTcODsXe7TXL@0sB)c%=p^CZvTs+R5(o4GJn>WDxej@U6iH~^aR4tjp>WQjm zbf4%Su_fSc95T8`zOEfY!M+b+*NYYv%0rm9r> ze&!cEi5v;3--5fy>bL1LvE76W(KQ`h$glT7k+7Mpd(W<`TU?B6}`HQVD0FR z>5n~U>p*kPN({g+s0fYStvq8=<>Xv>hU#;O$%QBtMe23Wh%>m9s-`k3vNUVckz|0i z-9e6E7C1+2@)ndR67juI?M50gFb=0@Tce#|{VK}Ax6(H6QD5Bl#^T>m72&WV5im#=PWmW0rtDlxI?4e5tmhr12B%~2U@qp>wfB_E6sN1Yp4YkdTQPK`ug>xU#; zc3#EN{HP4YIz+jjU1TmT$*;~>OL9_?L(I<(2-%<_F~+4-nd2hM7rOLz^jCv=g(x4+ z8ReFAPjiYf??5jQxm(97pAwWfLU^g7Z+g&O|0+899biW8?m8PkMl&E+B-vP~KtL@$ zn~OV32m1IC}wy)*}-Qn36MoO^9YJF3UUm{B`J=8=L0tyWR$#kt?#8zh*@r$~MNDSnY z;_2+}|30acX9$Spa6I-G53m+Yhm8h!ml{B=Pir*5o}3+^Pt-o>TBI?E= z?QqBNz4A8>ITI-bW5Cw4v(_|e@SSnqwbt%44}9=-D^}?REXA9D8L~&N<5Pe7D}S(1 zN8m(s)2L*QQ>gu$H|2xT>Ho4T4uoh&*`2VZ? zk`@I;gc{ga0S8uzX4|{BM%!>_&h3H)zsPg-AaV4SD*2C_b^bjkP;028M!pawxI~aB{d{j@a zQy9L{X!Mtg3!!|*K+Q&)$fGmi4-%|J6HE(#W}92L~Eu=5aEGpTp3hK4lL|^H+x8BplKNh8@N|4&Fq?R)(MT zPr|{(Dg_wYB0P1lJmKHv=CuW5pqp3UFS4;HX13+xlEo@z1}f0-4gCdkI2J!ic@R0= zY1Y!nyjG0N#BtTgytZs)hJHm<540$rX9-7y;&PKPC?qg&6WGrPD=O25^g(|E*0$st zEI8a$V3VjbtOQm`AG#EPBPI?GH@S-@Q-fv;PQQdM?b~pX#;SxI#)WkyY$;M&4pU&W zNo>*zDt`$0Pu9kpLQN3?8iY22NcR@)NqgBAY^(-j*d6O1NNyME52bEk08-QqAVaMDh=PaSUe}NDr`w`2j?H`8Pc*!3Y@62SZSyU*??{|;3T)(0rtN43 z1z^?do)~2dgk1&701)o(UqA~}lv;&bqKyyBB~nQ!)ft2_;Rq{eaMPW8IY;^xaJzHE z1BuCCOIyH+SV)n1r|?~|Q?dUhLZeeIT@&Y>!m=wu>3&p=rHS^av5huD=Z}yVQ;BP; zC56$5hvKNJ-GMYFZY0j@Z!t{SA*KmscOYg+Y!J7t*rNN94?x2Z)DF3Ah#gYuWnwg@>7Fbjw&|k?lLSWSy!x(x4oaqQKG`?HN zyf1s@o$s%3I#^kD8DN&3sUG0LIh5^oC7NAFh-(f}U`53XLRGfH2;!{jUiC)^VFe;~ieV_G;n$v;Q=_M*61D{VM^q_*_fLwE)gg#pPMTh+TGviFA$DZdsh z$%Ty0NgNQ1#(psaO8W>I4_#E9Pn^=o%3tDUnmGO@*@m-&?5hyDMMD$niU=hKnMigk zA`W1Oab_SUJ%v$Yql?PnLL3JwiwiZ$A$gNNF;);J=6N{M#VNoE&M^oMx1{0!{eyH3 z^cvgQG)fG!S)4r$i}iRK$6H#*I_yoG>9x+XVmgD47s3K}Ur#W+4r9qR-A`}^4Q(R0 zWv#)j!&RNlJTOEWV~HohMa`4=Ip}c;u2g$(3$$_XHE1{}F3!(bP>ihJa5ECQh6L=6 ziCS$y?Q7ln>AeGLtPf9umF3DNR(9?}Wdlj_I-4@2-t%L&um~l?4Xc6Omc>f!t>|8D z_tv^^z(Wg)3(`vm0fbc4iBt#QEHznI&v=?nqb?Rm6m~m+3_sknOXMu65g<_+axBoS z>8U1mh?-0Bon`sLf?nvL8)rb1`&eBt)|YpF?r1)O|CGR81>rRJwFxc$syniC3tfgh zV^*5onYQl69FrQQ*sUrhfILi{P+s*VD#T9b$gC%+JvFw%qjqGr&>CaZ!BjKlc?WI{IIdt$1Z0jeAF-7O_JR&TqQnYL_+# zCbRCK)vgVYAXSemU+4bHu;REcFF7l3UOs_V7;Kh4u-gbLE33FBr^7pIBVCq}E6XMt zSEh!;ynTpkYoX5N?p8Jb_JjX=4{jdy;4atWG6Xc~iuMP?EZ*d$H;Nbxz>KPC6c)uy zc-8|PXLgC1E<1%eJjrZC%Vl43U7H#j(o@}!9~cn+B;AkaYErNbW$t4kL96zo^5f@H zO_CQ>FJQ~!Z8Lb1AmOXvNWLD$jX>xO4X%@CG+7eIZ|G`1D<{X4U|DjI(44`aEom`B z>zZo|?arNVJc-QAutJYMTH^&;l$pJTCuUmr#y68|gIxC$GyV3=mS29Zd>Q|5dXS2? z?!~HgXAQj03@%Q5&Bni%MakCAnRDlIchYR|*s4r_H*-M{nBI%ZP+WgS9ee}&FE(3e zPbz2O4^@T|v3RYQB8*-f3DXc>RF}>07WoifB9S;EGO?s_&ZHEAXJ$ZI(NI&#yfLiL!bk1Ln>}G3@{=-#`dpfGwlv=iOe5%TE!B!nMsH;kceU!AcZ-IKgfKL z!c&XHxw97YEO>wQoo)p&uOtb)5W{o2c5yS2zq|-;gDn*lGB*yQ3kqp$+K%5;#BD*O zMbr}qvyxbAY=*@!?HY}e_;YT zOobXV>L1@7dM}Pz0GIu0nYuT0Ag zWgJ^hW$ZRoZ|xLeZ{E_}UXHIZ}HKSY8-3Y0|5wF$1G&29HWahP+z` z5EwcH18W$WA%G@&Y+%A5lB$OU;0ZO}RQ71tP0B~qybB-US~$n`lv=eb_n~kh#bm=p zywo$wpRPj?C_2RSgO;LS6R>;|?SP-Np>jazb&>yvqn{nr>##=AEu`vBeZp%99puomhF zTup8o{9)%LUdr{vSi>QOx8472 z6we_uQNTlVtGWr?$FwE<5xROx4$TyW&0siR>WMYr%ouhDyN}=0>(-$Q3vcvk{?moN=5KjvZIfyegNE8@P9Lt13acovBuox4c zqhB8MaXxW#kXQ1I9Mrlt&ZnkaCWt<8jWn4_2(s((6JwCDZgc042Ol>L^|@zfs82#c zy7{oVTW&a1Z88xTk1q6C!YB&X9sn)h@2a{C~N986m`+)DwlHrtB7SsOH}&&GaL>6Wj=mj0ukZRj_!B9+`}0kSX&E9@hv8V`u=7bYv>#;D*1|0=PpFXedcK71ROIN^se| z{i3+7V5dlpN(5X3Ig=pSJzBA))yt+sZl761$bwEXa(tJg6<`hHDP%HAN{H1^Z64-n z-)Q_!w$T4_1_7M`m%HDT(rp4=>>Co;AYF53hexuEc~bytS|tpG%Mj3GP>O6NSYeFy z!ceB6YFRhDXdncBy(ng4;mnJ|#1IRkW(4TocPS=UlNx|t?q@58gI*BI|8o(_75TBa zN|6f?P6a1g_W`|=oZ~14o)ej*#ix_U;cALJUS;pjP;Y*;8$ka4kHeU0mUSaqItPyCI7~1jI$Vd4h=~|L4{c$ooLjZtMTWD0kqxyMfZO}g>CVCjI$rB zk>b*n%d$KTlx(WVc;M83EOtF;6VA=JD`*mUHqy9LQvy{Hf8Ks4Mqp@{L-l%{Kt4!ayoIja~kOa zcIf=By*I-`?-{??je_IZ1%metdM{um)k-ge=Qso&+PN2S$Y86*3wU+z1#J4<3z)Z> zaY`@X)$r~`$hx5Fy?}X42i}<%uqBEY@GKv)*J8d9RO4fM0na`bFJN|S$pniwNMg78 zV4q9j(8Te!{C=NGChXqwJ*ogle` zxm(yMx%4QeEECW#;UFv!@rHx2bXK~tf_pGjFIqk)A>U7>_=ei@+PAd_`<6M#vZDiG z2tat17fnA7(^AGQRE|hEjzrp8~Q($~CFB?Fn zDQ9g8Wu#y3y3P1kQJ`s2Quv*Q4jqCMolh0f84G0WObBZ!VXWUXH}Qn!COkZO<^pTW z1w`+e3v4bI2#fF;I}zLLybs}gdBy^JmRra*dnUZ5wXDaIR6Pg=yWv>nQJX?vGx|)+ zg=J(5n=Ze>yz+Z?u-Af^Oe_S8#dUzyBzxAK+i^Y&y{dDyLdlxH=SLy8k4ZeiKFsYz zJRZ?bR9#AlA(>Om4;^cW=M@(_%a$gNcrO}isjH1iqbLCNhJF{YfV(93kjnVdIO>ZY zQdGr+F%nX=DLnR#t{z}bW$9rG6DNhT9)ihFgEg*)~E+PkjqN^m?s6~a@2du1U zZV6Q4*hqY(*zewJkpiasVXf{yWA@nA1PNiX5v)Hrst$0EhF>>f%)R?En}~8!aUmto zF4gU)Vx=`;&ic=#hVu{i2%?738wPcpb`JKMO_M%3nZivxd`5bkm&v-br6WmtLX#$Y z7fY9DB9-<*o&v*m^f0 zB(cwh54GiPs2bD$&Y0}dwy@bfpkyy*Tqck!aNm98Pv7?9HXOVyl@R3SPKl`V5nc1M z&f3btwrTrKsR=#MokfD%MGM4?LzszqP|N#-M_j8PLQ#3~8v&BWKgy;hFCIhB)7kLC z><5PIqWQ4$qBoHLWGjrbKymXNJz=J)VusDF)3WAUSk_=NYp@&I5(VR7jE0#mOeYt_ z5?2HoW!VcadCNC9F4&|ABgBAVI&-hx@9-9I=v2qyXgg-=Lf2qlcJEp_e@)jmHP$S4 zO$T1u@Gdis>bV*ohU8(2gX`hvT(yw!FxsS0b7X%YDWyNm(jr*eS!f%gg{uNvns#;k zdAd!P7wPACI6?_S3QBqVjg~kKDu^o-vIP2OJKuMf%3}9!&ujM2)QHwTBRxW&m+y$b zFj&#*g?U~n`fz?c|Dw*;UcrNUq=}hdZGU`KpK;?5h1(S5aEqlEQWzGO?OWeh9h+|W z^P(H>Kn)a@6yro8sL@@hhW;_v!!*h+u~(?FrVrP+mVf#f0lg70kkULJ#+rzy?&B}% zmHkFu*C(zysCgM`#6aWR8YIJ7!IB$#jI_!-Z1x zFH{8IWhWWrFo%q`AHM7N2j9yWZ)~C6K^$W;^AK$7IuFMFI^NCA*1IG6qP1lr{KXW!aoaoepW9g zn2otT@SQ1_pv5k>R12Uj@a|R=TTiFuO1#4AIN7EvD9UuLbr!k#NUp3M3J;ly2R4p& zC(wb5nU*Dh4%^)v=n{(2Rl&AL9RasIz!5Zu$XB=kQT;F^N;L&Wn|H%eLD+9TTIjN$ zW%IFDv(1MuYjI^oVhSjcnY0yhn3SQIZ$42fA;`_AuQN6uzcxYmdaaR~>BTxhSlN6c zZ>b5ogr>*XSS1pcg^tyEIamhdn8?c%dwpylC+bu`AG7ad|Nb-Pz9KV!f9AcHsx9*# zN2aAXbPK=6i<*1c9LFz)o7Yl*z`DKa3 zOF)6RkYJ>KikNux`YqXIP%>E!BWoIh8>}17vCu=i_;``PhNTl5>Wv`@$m0jEqiBgK z>T3>rsQ`3)9TTd9VAmA>dV zQs^C+$Q#=-C`-tbWpA3D)A?7LE++6UPU!|TbRUnn%fTTdAAriRQZ$EJx&74+*7yge ztv{E07xRq$LsXzRyFHubj6v3)3hU^)4Dx8k_YGzYaz4%ZIp&JI^+Ezi9S-A+u)x>S z%3#JIZ^$5HwOnS9=e)R1K*=C)$RICq+RT~YjEmb4v9j;_{lT*olqC#3gPd(GK$KN3 zB-rPo{hYMjx*~H6Gt1c%XN1DSd@cNa`Y`ppEF^hl z5fd`URI~t!%;k(#PAZTg;yA7kENS)XtD|YKyTBQ*!YVG+ch_Tw?q&4n#zL0ISM|`n z{#?v=OcU%MN+y`mzZ~c6>)`koYklN1@;lDiE7^ygn|(ab$iHr|biM}K(dHDCcF+r` zJcn#(6t_#B$DTDcu2c{Xo|i3(`pd;8)m8s^4_f|3dmH;I+f&-x5XvmOY;7zV!rle} zqaM~u4~+Q-tU$tdU}t5qO`v08XXV&eF(w{8ymzIps;bp`SZOO=@$d_}4hbS1QFBZm za48#<`!C#gfQtS>K1z{x*CH&^Cn2ok@B1>c6R{VsOS5^>aM~Rso*gil7Kty5C&WX)Ev0Shr zE-G(%1n_R}l^(xrV-E;fFAS(C`P7eFW%mK1g=$7c&C|GR;lQ;5ce0B)vwMK7-NoIp z-X!}fNlP*=3-&07hFoCfg-|WEkt(kF5dtwpN*07^aUA{ zw*w}X9E>HjIkm6zW}_rbUMLGRgrZCA@2sH#M-Dh_@-nW9s~ki2@&F-=SgnB1s>EEK z+1;uaL8Us0gFX>oD!evLZ?%x&ApjrhbU}y;&;%LIH#C&;FLQ*l4pr2C{C_YdB4`Ah zBkvFSo+nM?{Z;+3P6s8JS!W>`PxK#f3~llA%hd`O_VHChGIVF7Lx2f$N3ChMN=@Cc z*VHxLXAicXfNGgMX?HNE7H>24Ka z`vBUV744;(V{iY^6OQFU`t4)y|L{9L(+KP4qp1`m?^5Z8mEQi!UwrvD&8j{2>R&XktCFO zc~ZFhnrE@xnTn{Y??B~?dK5|ng*n=t-QE8AGShy4P}hZ&%#L;D>^c2kDP*RakC`yY1Z1MS9M@o-Kocpiz@*^sjY3Zh|Q7loZ)2mnFq8yrX2n*BQ!rJLcU^dDnI>8z4%zq#7FfR zbLmmNUL=@Z=`rq}$#YGW(xZBhSq6kh<-vT1yf2v{kp)qU!Y=xL;0xJ?ZYKY;EW}6P-u7 z$MNF!I`Knkbu}r5?}A)lQ|+P}3oS{6zNC|Ay+`GDZSAi@f>ho#t2>}B{@{!`y z(BjAdg@6a!ocN4NO>EoP5s$&*aeK9)ZgA}fnA8cQcj-MFR{C$AQG^xD^xnNeK(l$` z>`cmyLUEutoR}+pD%4uRl$Daf?yr}Z;8O0zDDdD^U7m>3u;B6lYeDZ1xNbOGMlITY7Q7p%D;X>=Bd!j_ zt2;B}M04@FIl5f~QSz#1IMjPCxMl?RhZ-d~)3A7JFwb~4ayc+oFp_icgWir_uIg>l zi8pepbOT`7Mizw=sJr*gC*w@+_@-ud^mcbIUvzf;+1@OAqeV9vKYV++lDiH@x$RB4 zQh4g0IRF!=;W^|9Yj?fu0GvA7V&7qofunK|odr3DW*`BrLHT!xm=WbQOyxZWA|I4H z68mGa(qE#=glAH3n>VBf%?yft4dl>fIgrbYl*>ZDT9t_RKsMMEZqcfqqIOO#9u-%CAN2X$C+OBUp_V?a`5}b`3230KdZ}(cr!Qn+{^td&WSg3 zF7wMiDY9~B#h=wNE25RJ*tB?zP(U)iXhQMso=`mL^6nqyqul8O&<3l4rj{zE}up zwF#?4EGwf`5qon4-@T=i42f_;*d{Smz8fW= z_*24K?I~fc_M~k==e82mYK3Mvd>lco1l~QiXb@YrYJ(ZbU(zHFVIk<0Xp57PYD~;d z>OI-$)qA4(Q|}26pxzUU5_->&6G8(wL@faHl)-b)eo(L69%qB~Tg4nc?9TPGv8d=2 z>;)`PmVnFoW;d9#v89L}@i;A-fG3=Ct6>qEg-BIp~Pxk>{Z8TK)@FL!6K=@8It6-P@Zl z;-E4D8QjXI4p`S|a5Cn+)?=M~Fdyr;igY1ElNZ^UXN8yz1UJ!Y1fMy+CG^bziNr_W z$r%P>ycol*6!CcN0Jy@Tpn3D#52ZIA&##YXBTxj}NVSAc`r)WAyrhI7-0PI(9ccXs zgPrq`VfxpS!l%t?1d?9!I3SM4w1wVx9Z7Vj8J`f-XvWu#_Cd+b-kiS@=6u8(iZGqR zoIj+B%>{csN3Iv%5NnCVwvcd~aul&II5@9#pmo8N?-9oFJuPwrhmntT*ZiO1%*ZS} zuQ^+MC>ljce#_J=2fe9w(Qstc1^DlrFX)z?Q=v`Lh+^ZOe;&Pj&~iTgMG^i#Pm?7A zVSf65!36DXQC;b`)p70t#ZwH#_%{fsaAX>_X4PC}s7hFQrs_9hXK0u!gQUeIQ+w@5 z>V8-CT5Ne|Ky$j-0#j?a{T)9%T{%8k;ieaI)7)0YU<|j9eh-c0E!e8;G&oQh=PE8x zW0ydB9fWhiKM1x3E*9hxT)}|FOd%UWSb+;JzIbJ$G!3P=XC7%=RoL|Ok^4i+nYUV% z*p@ZGF1H(NS8-QHHJS$cKDK2xrDc>(KR$lGBrNYlv7@g)YxwG+>hA7)M^SA)HXRt_ z$EHI+9sa6qRu)4butjld8e5S6oVK{J`-5pU{ckmZ>0Nzxe%_pVs|tEEG(Hz1?nW_G zIcCPp?Uw})95kYmj%K?WUzjJ8+8!8uu!UxYXy_lq>S_4gZo?x*E2R-DX?WOu zSGw>RZIwc$7NaYTKR&O8yAB+?AT5+&kK z|GPhWkNLg=@^kb;^q(3`Auuf6)LOStnh&4T0x#B|3>XIX!UnE$zW?gQ$mtBcv(a z-A5m6ITN~~r(lVM3f(waAzi2U76YX#5!ye=bws3!XGZ(t_8{ql?N7h!KfU{oTmI{> zex^EpaXX2mPyXI3KK+yL`N*3dFi9)(aQkBq{L4@O_9y=9TR&lvrsm=HU%czRH-6}@ z55MWtCgpCEWRlsoHhu+t1N~2~zAK0$e|`({Sw}jspufS-3B}l?{Z^O(tgGDSsGa+~ zb^;U1&lrR^`nF<0W=tn5+n2obCbpXC>h}0%6@%ALSC3EEw!ijfImXHG`sr|ca`W}m zwc{w4$)O%`u)XKz$?*7ekRO>W$D`D`r3`Jr&V|x-`>dO1d9JsKH7j6ULe%qtt_7A1Zy>1#sF!Wq`RjjeK?h45QnC&*N$;|DJ%&nRE{R5 zQyecw_j?jX|InoXH?n7a*i`y(!#u~HKF7Yy!B=7wTb|4H?ChTGY3cgr(%V|R!If<| zC>qpD2Vk^uXHSOSF_7v1kwNdjJ7?gvAl_F4AsW#T;XG_X_fUf1usv8vvTuA)Pu`uy zXe%|qopA8!zIsCW^V;{~JMzubpIp6#%wq&Gn6_-f$Eft`!}5xi zbfr6+tCvyv2l0aACE2TMM`t=JcQNYR-o9c>%1 za6`5_d{am_Q7;Z%At$x#98I{S2-IEN9_r%uARQvkCDYk`Z4_Svu~_d_hEMoWbW0ck z&l;$$yTru(0zAd**%a+u4>9j!q#$S)X)XW?}*V6&CVJC!iwWFIKm8qb_|0Ko;&_O|=(EL#p z{j!+~{zQF0CJjvmXc1^Yb@oQ$Xr@lvIzv3k8~8(jk{F2!zQr8=~kIF?{ORN60Zta>O6ra`Q>o}nFl*@ zxbIse`yeHFJEl40a2TY)5bjAYq>k9~r2U*ygXpJ{C@DBJcSX{u;bRc=YiTsWqqzekomO*G9P~5E8X|ZNefGz)i!hnu>%PH;9ymC|Mow> z<=^45B`Nal$9KH_DwjfNZl+WNdEVR96+9N_KHqhcNtc1sc>UP&>mMz=2J)irj~xGW zIEU5ocH8k!Q+LhcvfbN`|G954Qqb?=xT8HLCUZnLF_h( zu^GaY$q6T4rv3xdzr;u1n)u)69tII9Gxtf?$uMO;p`B&rX1Vznc|6^rM!&Vh>}O*d$lc)DR)Q2ak;wydTkU&F8DOGez0Z1 z-K`&=ZpfTz(jCe}!E?d-`7yaW*uM=KEswdcqL(0-++E32xW8Zz{j|qVleNC~;2opM zSvlFVY#QJSV>xShv80XKRzMVdCq=0}xVvaW{uF-mxJJ9WTp4KUUU9 z9*1U0vi0KRM0?#weywOhCbZanV)lkO009@YF;82M3rK*SQwE1=^DKdSTo2LeWX}^o^2^ zgEz7YxrrBBIQ$<9CUDZwUH5iv$@X{D=dNET@F+;zA?A{XxQ8|O!Q-FwDw!> zdm2%b^O=^sA5LE(ECLp^JP>hxS=MV8qH1Sz0c{RV_!x4Idj~MHLQcsV4q9yviR0Uw zV6zzx>U!uyPs4?YjkjyBy=K}1AiV?>`okxZAL1<6gCD#HwMAVVPE7)|NJQ8oi=Q20 zmMXA2y})a#&$a&8Dv9`k0stb-eNU4!hq(un_VS{5B2(Yp#ZJ0>LAfO^a!~qOc+6TH zkF3R~g<5)~?Hi2KZk(NdOO}F6M@zFy15%-5E?Q0ky=DW(* zP$qgx1Jr~WVLW9EjV!Tj$%M(%-7I#QF$ zYIL*dn-{9?-6&Nn<&L#Z{VGCSjUr|hPi@W08F~hw9m#y_?MV& znGPyZfixIQQ36xA2ye(#y*_yfUbjPlkby9$4G4ey52g>>)$Z0E_GuJ>mtK7!&)#`9 z^2yr6&evI-2-`j?7;J*#VN!*PBTpur?(W|n$LqUw^jZP>HVA&?Mp{=I_vv-*KtnJ{uw*B+kCP~`8p=AcQq5*B9 z2k@sN{+Aucl$eMscnYiqo|yP}fubPYuKw3pLohS|pcF*Jh@8au40|}|eig@~*SC2a zPa7uhj3O(&YuSpXsL(IxqWF0IKy~>vBR!4pt073NUifJK%o72Fe92Fw0{Yba~fmzmy?9Cp5)7M) zN0iVEZq@nD=~EQ_AtyAr$xK_m;}W50#}7IpE##Q0(PO=;-O?2dIn9T;^P9R9SZ5Rqp z?YElw33+a9F-K}t=Wi)NTj3;y>w;=66h!T)d+;7iO!sh(w>$RE@-#sW;NgYtRc&#t zq+W2L&WRwhiHnwoOKg>p%~mrvB|!)|N1@iEU_pwRPKOWEQBp;7R0?JiqfD02b*rbI z8OT)X5ly$dr8zwM6UC}@FQ_p=p};qP9d_sO#bVQ=4Jgo!Q_~`h4bteBa{G^(!I(CmB<#+b1GETBQf$@t&kAOH|}ETV>0pYF^@nQHr>fobBP*pQ%RsJ6%tI^vLwr}i1y0WO00 zm<{#(MCq(kK-E3GFQ!Gf1?1RT&-QC?_--evn!|eg4bAtUoYk{nQr`gz2SnfPPQH~` z!zkd?zD=5cFzQg&X3z%x2% z!b3gx?n!e!YO;Xj!1dezrNZ~NJIXqY5CCD$X|})P#FRL~*H1?$wy;f-ci8>uYxZ2; zjel^mdIu-K?>O9jht`3YT!)WecMP9KRJ+@sD?S<3jcB+y?)}n9^PB@dZUbc3P1jPJ)w@xe9(P<9|sk{0eMdJpYiv&Q9HQTk%&_u zd&dhikn>Bf`8J1#@x3$3`R#X*tZ_8LgSeg9xmKP%JU&Xn0L{bShBc1wTa?#Y~w+Aa6y?#b9^ zcFTPl5HVfsmU}nA`|eFqp{lNo4FFozn>szDRbQs9@)eud6t;tGfhMtX+kO9l^kc7Y zuSW8HD}f=8-TKy}VI(0Aq4p`RRp&~>yWa9N$K+shCl4_ygKw7{7LzCX=E;d~*M2x_ zyqk1Hm+t_XO}=T;kvbVrHYU;&H|GxlRIB+OzD18Zv+hTb8OlRzIHE*+5F1oWEe-c_#t##7oZ@D2FuY4E*mH^ZvE}sXTx>K>C;aG_wbo@tblbT5l z9vaE>PL(53;Z$1s84lpy0SK`Bv5ccg)Cndz0R1X9K~l)p(3)ffyiNfS17iCVjEMjj zLK$5T=b5!fj8H4_l||9I!>H5Kh!6iekLe}9s#+`edkFehO8oifi|p`YYxQr}TK$YR z*xTO4~M7Rm14N<-I2flG{DN&p2*UmXK_n=3xmX4-$&dIiDd)WQA^RuqOS93>Z9 zg)j9u(gxSw$r#5bkue?NOM$`SQgh=}_%w#h2Xn{=TBz~^#Q!Xu(vm!edp;=vrXjZ3 z5n?h3R+{nb92@p|%_a@@H3f?dr)N!>R$`EAtfsAU3;p;fS_n9sLy9E@L%f9vu*osV z2H1-UABLs-^kwE`dCoo0pWZPSag4l!B*Xb)e+aeNgUwrhnMRBm9U*Z1Ne{Lt5Ie9E zMqV6bX;{GS!*0(pd62iLEb4irdn%*PRzMt+-?akv$n5t7oG_3XuSl0Nz#6}yrecPl z%_ZTcK@#K7Y^tzo}8`8;T4g5#QQ#35~-;b$=K*&|&@F$0V6dR*`5;0g}je1I?m zKsk%^f^PH#J`MRB@aC;N68>hbfV~}^XJUspb3@0+pKim}3rFCXjo#GOBjwcemjN*5 z(%Cq#Ga#7p@s$AxcnXg#uF1?He(T3c0;j`qO4-t|tj&`c1)zH+rPvAaq={3&xxndO zeUqm9`Uq+f7r+tPavJaHCRcTTsCz010T(RK5zZcppY!+MuJdB{nFoyyEb$+9?APq( zNh9y&`lJ$K78n$hw%YAi^@k3PgV@f`ApR3%;C&uClsnVK6#rN|~(H{HazFsDm`Jfx!_xFW3lgR7k=|&*2OCNz* zY_b%EQ897ki;P6!2=;D2ek0BWoQn9--Q0?Eg5ZBEaO*Vfz~QMA08*aH>3gH)E!{*5t!8Ctb?E>2MJU z(VwF>xRHyGyQ5Tn#lfaV#g8Qh$X?-a~bUH3C=h$$M)$QY!&&$M#H8-J^!(N zr08ThgzS%w9)B1J=9ObLr<5iOB){xO<#I(#hb$X5(l{-QN z%F6JTMe&*zqR3oY%8&;RCfTz>5$iNxh7eIJ5(9?;A2-*<_08^oK_`bJ{0e)0-WkHo z9m);xLL^)$_iIpf(Kah$(Lv-47gUQIoXq1=>V9~`p?sI&{rR^ryekavg9v=HkaIgP zmj2Z@kxLTt8gg-v%&>7e4Ne^63t)Di<4Xpe%MZWnp)x;k0IyV>ANotGy~-f#Dl_WG zEFmbb+)?6AVYI5-cYL_Z4;y@VD^>kSqe?v6c%vWo@Zqjm2}duTVuDGFsa^U${;zfP z$oY`0%`D4r_7$D14v)P$Cpykli@84j&E^}K_<@TU;Cl26Z3GczD|`^YLezLvn)k=_ z976JX!H5k)d^Z72c*nW)33@tU*njx$n;?EZp6jCzA3!nZv0EN5i6Wz|$X0f@%W9A&Z-~=c?d2vnm06n%qkI9r*`IRApdOeSo9T{VHLLYMUY8cIk5k!P~PpLEnCWqBwSH-L#rIU;f zQD||v#Mg}pKZC7epHTnGZNt}0gIZEI90FMvUbZx37@4L`e%QjaZIFdE92+10 z_yf=!)`U)Gkh_Q8gVbgWao*R7l=}MF`^VpXQnBt<6BO${+tizJLIWT@@7-#xqTj9! zx6k@oFaolst9%W`mfSBC)pH}PDp9mf8_C7D<(Fg6v9WK&^dTn<)y8C$TRee@CZi*h z%>x`tKl;q+o`^LX(XDciq1GXFQtua1>)x!Dpj#W%8g*8%vVgwDQ5~XCWe8VTBZGK7 z{s*URd^0!#cB!l5MfG)DaH3BqlYM5KLiS=lZuBgdR zG0EWTDMdcFIoMI^;fYwd?*#e3*yi16iyH0^!@_l+`uj!0{YiMyUQhh-&uz~%+;3V? z6fdTKctOLxnErQnujcD_Paf@_yrAJ;tb0Mjy_kF&2zN^kRW)T#qu~aDPP5c;|NGIi zz$6?}tb^`{SD50d>;424oTBT#Y}zmv-0uE_d=p>5e)q=s|ATKYdg`5OZLd%YwKj)v zs?mp**$fuIUl&X9ANr%|XJjdU%v`&&6u%ecb5~ztDYD}Hu*6bCT}*ctbhpG(ES6Ye zDHcC0u@oO&XncvKnDy$kEXBXc9x)Nl$Wr`bW`p)(B3%;&@sH)VqM+wOHH9LR)bhKPGfjV&iJDjxSQ@P`uvCa_XF zV_fiUBJWlEbj}4;)%{)1#)K+>l=Dq4Fp<`D=Vq*Zi0jUK2Yvy8D`qeE4!9lDdzH8SHSX>cjxq6@0VZJ$R?I&coD6B)r#Sz0EKGKux#S4r z{ugreXlU%0W5)(pvZ?U9c4fDEO+FrLuDt3h_9+io*4J`Y(T64;n9!^La5B7#*fVsP zVuxvof4hL^HzU)fRQo>fj{%PU%!XWiI z^fL}p;GuxBCHki?i|W^!-25%(u3!v<1j7kSU)j1Lm2|u9UjK==fhySO*PSmki=z|uKNOZrH(~#k zvnmgALZuv5xu>2TR{2cL=3nz~@vsVsK*ztu!zv^;u~Vy5>vd~Rv$Nfl{E0sHN(#Cg zTALN2P(qaJ^U0`xJS(uv*2Q)9@-r*2kq0=pMi1h;BF?#iGh`J5kijEnPA|TP;Ut)Q z+gD7MQgLMGNHlp$AbHp;P9YNkp17G*%urk%suG@6#W~nBr4j6;ReSZkGuc|B>HwA{ zBFrqj{@{zuWqX99HKCXUgD{p>Ue2M!fv+$w+>c;3FcM#$wV~;zz~Cd}&or7%A(R>m zQ^*VsBZ{DMfiEfGkTWx}M6OeYiooQ7;@-ytV3P-qiC1M-=L|5TJ}0;h0t~$)N)GiQ z&Xg>nXwbxbp=-!9%A5gu5RvAB>OwvLVapFTPh!FV6vzJW2w2k?0Ni<3_Q04qOwA~+ z@RnBUOlAgKD>J!IHYm`A7q^#^&PTOAJfWqE{NtCn1}n)1a012J-qp5+C9GT;mdNWt z1y;>2U8#K7Q^7i?H=4Q4(_aKiru!AtP%PiRB&t1sSyH?86iH2#BB?z; zXY@=^dp?YDk<&QCm0}w489=lG0T@6Dov)s6gb1zCKcxtSu<0gaDi_Q$03|7c@i~(j z5{oWLX3y6>?fEH}spO^QBA0EZTt?@jg-u%s88F2~SbwGDA_vBl4|Vu3FJE@LbsTUp7kuIX%8Jv>`8ab3sws`9spOijsE;fq@k8|XN*<|6bM*^ z14#tvp<7dSg#ud&P;=N|+GrLIjP>RD#Afu%e|_rUo(Er2>3vMi9WuUynmR-l)uQg0 zz*6Xr!((-e{w^@OP;ls7sEP3&L=7!ws|G5Fk~o!FXz|`k{c^%dTgihS+pKyPGPWpw z+e4Izfp!<@kt9)1p0Yb8Iy2WG`{3y++wSd8k29X z_AQlWV(3;&y*t#t_2`vtUYnSaM5LbnbAhvSxS_barPXUPly-1Z{F*J!I&Tq~CGQlC z4zfoI#p>3E8v;59txFr~e^4++jblkI8Bk6TDP}O5Bje}{oARV&{ z+P?{D98(`)m~pb3&ii=F6XP!r zWcx+Zi%Ag++}S)C@OIq@9n@RULEWLF z?2MB`@L{xzrvSWcuyV8Y#Gta03#cg+Fm<5`OfY!;umR-)gcb~Y^(&Z1{+M%gbDE(% zVQ70mbpA6%oSxO3qiYv9I>?oA4~^^!H}-7jk3$%&8-yfTH(DqD!W{t=tQ&N`?Kw6J z&N;SBhSiAV8OH|wEF7D9Z$N=#YvtG?|1!r$<4YWyC1xBO@N7zq*ly&;l6OsbG8Y_M zpC_O<&x~VhdyWkO2n+}B`QnxcD$A=z9!j%0KR5WKf)d&AhRI5%u58yYGUVKR71?M#GBNb7W100)VT(W{o+S#w!f@mO7u^l~~FzllL;4!O$5^C{mjHIVZn zXK=<;D}g$%8K*muYl2cvAy*58`X7T7{`F!p_;L?D5V*SIEQ}3X5a7^QQZ{i<+nL7Gd9;@T{S=n7-jjxIwN;~ajl=V=|e@cW=PY`($V^@e8&{BlY4s-ws zqH&kr%q46eDuLG< z|5DZyn^6&xa~;@+sa$D_qJfo=gZkd^Ey5{AV)TZTz{j!&(%J}h%{smhXjP~V9Y%5S zb3cv_D(~2u`(SSE5e_K0t_TMtCeNY>D0Y&tA>4utl>wNVwoKXIs}Ih(U(*pHxY(OAh9OM zMEPF=8Lvms5C@P{r=zSq7t9zcIwr4g=-&?1aEe$cjPwv^R9FbkuakxVpN(TA9^q3-VZajz}eV>V>GY? zF)Pw1)OA6_@;O1f<0=4($o!+{Z4TryUOO_4`;KJdq^4(2YrfGRYp?r?fghoXzQKDU za>pcyd3FwJf$shf;9@z2Q;eYq$v_86ks2FboV^4qyn!hk-KG5T5ruBd1ZQwg+i;Jk z{e-+I9;=Ri5;n3^4sWl0ArUEggObD!wV%>_AD4Z=od?jZVn4i9bV+_Y@Njndun$2| zM)Y9wxu}+hbF7xP(T{19u^BG)x3y(#k5*y+#Be_aVn9PunAj*FHQe#sEqs^Ke zMhnP95j;u(CD`DT%SM^9iwlC@z&#|+rP$MTg-*#q86_nLcpQZWCZWO;ed&dU816@B zph+QWF3uxSVW7Df{wU_{IW9sp`VzUAIV(G$@na87h%n)(t_V|HxA5e?sCkl?uM7Q3G>vMS6bx<}1+};q+j3DElg&@iEg@+;^0ZS0{k0Vd{xhb-gy>Sr)}HeK2bWQW7?cNkc2>OLB*C zUeWHvo=~snP=}B~+whsNsIlomNKP;%oP&lKfJZo*r_W`;?L(b?89m%Y_(@3KqfkAn zZ43N@`YX;y-AKR({O8rY0ax9<;L7e0`~#P5@*=+S z9Gp)Ds;ybPGApl8M}?|zwB2qqV$^@#mE9FjKcHomNn#D2L1mu!d`b;a=quDFR-qDn zr1rj`+|=v>->FR${+Sk$tLQ_E7>S`p3@xKtM6Q%ai&&J1Kaq}Xxw__mC*eyj!Qi5q zy{pYy-451}tbLOLBQ;FuZ zV`Y0~0fZ#LP=C!;Na~xo6+?Y+o3~=Xv0pP;!4HK}(gSm^n8sqwtB_VAb6ka_JBn8! znHeSGQs%r0X|QldhPg1h5GI24LM6k6>oOQ;JT5}R6uu68)@z_WfV>loUrPqwfCBBI zWQ7ja-63`sYNdM;5F)WukjLsDYHXCIcp71g0dsw^$7Q~@dwO2J_Lq__WST|=pgR%& zy~fBDKZn}*Ts zQks zHtvBvX3s@x~=X#{DjMD_s8_Bdwh3dmT;>H)9zJ$ z0_P|m6NSG@WGRT!KmSHZKoNV{6TYg}AA}xcdylF+$y|Fy8RMne9tzVf&qLiZQ)Kac z`hvpo3pq0HtrF1;LVGngC`ydr*wjiY)O%(<;lPa%_9<^Y%Xa4h!N0&uA^O`KqCOUh z{wF)Sr^FVvo#E(*i*2-5QHLTF``Nor6Tsa9ZDh@HMraB|;yzRV{gYATR->9$E2Dxw| z9DlHmZ29Hq%9rtfFqJW&t1niwJ}dh=b3i+EFc{x4YoeWxQZ#YWYzoFGuJ6oTU=&F| z{kEtW4seG`IuL?XJx7Rwfns+g&Q;QMVOb@;I(m0u`lA|gbgA-XxK~gQpU{Nd zeh(^A<_bs=$gjP2i;GmaZ9W%4_js9Sru4usO#TpuN+bwFT2)s<&mAoK%elf3i8!& ze4Zh5j+Z!y%PQQG}{MiQ|8JT~onx-`-pZduX zo`msmXj}f1J}e)tVN#sMdg};G$>%mhfv{PR|6HjYTZ7L(*}z8lEQLe?R4Kz)q8 z=)EJW09gOtjk?14iYb);yRxG;`2(m~zpQy}Bpp}*in-a_qMcAA&JE6a>nhAIG}HT5 z)g?}%RLRYYmXIjw)vFUE+Tl&x)pLS2ZIu%(lQ_|GNl;Ax47xvl$w?dI&~Kiv05|M1 z%xhSiCRLEcKm4S)u3zNtz?T#<)o?EiTc9aK3(^?V;Z z;_9|1FZSU|1eb}5Lt&SNx_SrwfVs?DZ{_hYJE8TwGh*SeX=Ee@x5PZ8vO50FHgE7r zI0B|4&@{RQ4wQ!%l4vYCkx3j^iHvZU=3nX^b71^2MDuWK3lRPbZ}d4k8ABW!PwDia z-=2Y(GYs~Y5$Jtb%{fC{G%m~nNS1`Qj%4N3(SMWZ_UOeJRW=Gz^vW@x7QisMXRiII z9s69fJm>UzEHDlyN**|YVjZyIt+O<`5YQHd7L+Y*`C)>C`$ekHh^X0AD2>D|-!I1- zG(7G+?%m8GpqYcA|K#EPY;X8T?FkE}I`D)Ade)Z$S%d)TA&Z=G{(YC6=Y#+_@58w& zYvz4O0f+sdJGTHodXIB^ARQ^p1}iI;OGUtvR7DiUZNL`G26X@YiIZS~Y3Na~Dy9RA zbBr{}&;IEOYtP7?F4$*7Bbx5o=sZZdw+4Il2a_Z0XfYu(G%jfX{0W;;hBbh0`@|QL4#`0Z5QpZqL!;I)^67 zhAzc*PcQ-+x62OXm^T==cJ%(H=I*9LPPtINf&pghR^?>Ne?U8Nqh!KFNLfxtXGmEl z+TKA`ODwGb9EkAHugZ7%l2cdG-K%YBcOlo=yX2y#w3<^Bs3JGehEGQm?JN|}e9Mh2 z0#frb1B5XxfFxUP%{{b_R1sL2SL9+UJtFxe{7MC$S#`{-(P;Fcrmjo)rX9yhqceMl zRo%3ZCd$0|y(cTW#`()i8QY2BRo)P6p1e8c9J+p>Op$Y9ig~o>oaIRqG$E#W_qks= zIh*9v=|C^m$;f7%-?UVNb$;_wD-k+~Ub*AE{@7BTPP7H+dRP*=#d3=aE{~s3ZU({W z+k5S=F1F`X)yHpAJvLP(Pi1YKe$Ia(Q}uV6l$zz!S!g1!0-p>pOfp^UOY zbBwGeAJsg$k`Z9%oUjNVt>m1hvj)=gB?{0{-hOqeokBS0`cqU;AyZ=e7u(jrQ=B*ylJGJBrSrQz|S&s`C}07t>OFsFHV5$tC=20 z2`S%K|9)}@hX^5HB4hN&w%Rci7d3oxr8PEWrQ|rGd>Y|H^L9jOAE+h6Js)_QvrMf4 z^L_l8+*p(knTgIBg65DXYo@jWeH{4nChTY>D*1oe`w{>f%l-fNoHH|qGdN_8^3J4; zGG;LwqIrjG*|J3uXJ*cfF{{}aS;kf>MWsclq+OJDm1?AS>;$}R5w-}}46%)347_xV2G{dpef(2PNr)jvp%frJGhkzECU=IR3U(y9@*a9J^$ z=mbdAYXC{|@``HF32}IcY{dq`n7nZ(oME4U-)rvoOmeG>`b(gwf8?_e^C^#@+jI>Q znav{xh;gP24**LV)m(xC3-_V%z+o47zyNd(r{uP8zngNB7^(HVFE*Juhy%n7LOxhF}S17%|{J zc&#|O9G?9+#?_U=4r<|CicI1J8zSCg5k5A95;BLBxCL?>h!4?S^m-bft*8`l2Jnup z1ulvK6h2GTj5gbm<=9e*&sOlc3IW1rw1iVs4z~c^M`aieAsjY9 zB@bI8`WH@#AnmM@vW}e+wA)OH*4zhIys6!z+aMw^p2W9Ly!sn6YZZ?2po=rrO>2HL5far%C=-{%5w0xO|MoZT+#~u<1%-F;`G9C ztegxkv>9v$HY8de?4oD@B%6_jg#p%R5s5P{rpub`qxXqn+F}ecQKVW2+>cWb03_Kg zN<$S3EF&V$RiI&(=F|ILt8PT3RTK>j_-q*wN%{V%F9C&s#5k+lUGIC%HWjidVk&$N zP*IRJnw&gS;nTnWxvB6;m!<~!pZP1YLW7o~T?L2K39Vbt9ag_VLrGd9KR0*Q-2j!RzfEYMj;xP zPdQEX7ovm%LwOq{iKTz6TGV)O^LZ3(4DHf1zxhH022Gj{vW=Q1jr^oCxs3?^?wpO7Mh=fhy4y+6JJ1Qvm03S;)LFpQwX1 zSb^F|BZ6`B^;Eqykkrf3-LklqE)3Kpi$RpV#EF)wqb9h}gr*dVRIq!&bc7x1xT1=2 z6>hAZ)Z9CqPKVlIhhZMQt;*1Ti!KnC(ix3uT7+MI8N>*5?(pLgRQaHLU*;r*e^$uHs$!2a8{ZXsV zKarkyXalKQ8sKH;U2GOubLK5IX2$4KM*{Q!AqtkY^b!7{6YnG2RLPZg?zd^eMwcin z`>tjQ2n$e@YcV5fJBS zrc?nGW=b><0Tdi^xTAxCf^1V;s*zR?BALXB198#Z4Q)=4)%~SOB&(XIxju#`j5sl= zM1hWQc@ARM(YOrrkSNS1LTM^Q5`(Rq_{gPNg6Ba|TJW{4_K zIS`L0Q(D%zW7Nb#OnnvNTd=2j{UH(4_&@)aRpsN=3F99@6uXSh!umTQowsiwo zdtm|Mo`;O0-&Qm^hmc5#WqW6eY%#!`yAmc0{-zftZ@cu1zuG01&@pX zTW2Vn*&ins?io|DqqHvm1nzq-YmJ4|fTeIjhv`*TF`A&0=oupWWHlk0EQdzWZ;f8) zb$apeK9V)?NFh3Sk|Vrv(iixH^zkSX__V%3MK%!HJKYg~gh5HknK0?ISuR5ZR5*&VJFbPf(rI#4iX z@PeRX4PpfsVj?z~3o&K+Gw{+SdjaARYcFA_0Yb1etjDC?4X&OLWDQd5F?rm#?kYm2 z5S0mgrXa3cfg4$hBo7u}sywnRlU{x<%d9mIzBlGB<%hJ1MQB?^#jC(f){Vu57^EPs zkSyckNCReb!)ahD8$Ui*sTp-VJ6)~B$?9H5@Ko{Uw?$LH3tRk?-h47_SiP#O08lP| zWr~GpL8l(Mld-`L+NTnr37CXfbJQh;<%nlAzUhlsAFLC&z>qySCPC$PSq#R^ZTslk z{%d^n_cAum2BL*%ly;0+_%VgBsDR|8q8m?Sm#jogDrFrY>~#0hzylh#QazF!YP|0761)b>c0 z>S3C?L25xbc-9cq3(M494|Kv-4{$5$fgHUTOd4-lHdl`&^P7^M0_ei(kgt2x;-U4W_1McTR#b-FD zV&*{<4u;0&dOk2T9wmW`@erYqVlHzGF`lM-92iiir)K_m>m%BYS}OwQdoJCufA04i zKb>(e*8Kz-PXSA+d%iItC{Z|1{x= zo8;pR)Br&EC(N@K-f3aeC}CMdoyBI;4$VkIsa9FcUTZ-p5^z!lF>F{$W1K{t+p#fH zXBQ*hAX|eb5IcfZIL1RH{45ryu<-)%1Mm_=#1oK+z>?epT@Q5h# zs}L)w2*SpQgG_B#L&C}ZF^q~C+}y%pgp`TITjA*oqy!}@!#oeM5>WC|6(bw4s*6Us z8JjkTyr+66b@o zp%lCw93dg#xEqF|aGB!(9LLpWgx7VnoP;zzMWEWH17s*ksIOU{MB` zv9WAtCE{6(HMn@bWsru1fYKuN%e__*9GZmoa0SY34uD1xf1dUWXa!MkJave6@Jj>)Yw zLnOnehDiKiO{!sP!x5w-sX_C?K?JI)hAKCsy6m#WMPGB-$0>#XblH}DRd=}|h00OqTN4b{Gr;?6KTA6==ot3?x{YZWihBsWfo?wF85&8L~Ps z2nZLjRM!a{H3AJ{=2_%O<;O@M3{nLezAnZxN2O%LG>c6vYB;xhDRn>;1E~Z?1PVL2 zqj+n3vj8~z10d-)9JHo5&*Ye|A|-J$;0;wRWeTvYCeRbjHKm*u0iUa^Jx1BBIcI3g z3S1S91=vam!*|mgrt1CM>!MMk%u;`ix~Q#i?Ai;k-S?ZWHmqQV>L-9YrSXXX{)xvY zGP2&@D3-%PCpFDT(oh&5MFLj35(dG4B9sm?Z)&_U;NTpLR-}%CUpN7<^pEsc4~o)2 zYiWyta`gwh$~@(_W5Lj5Z@@xwEhL*}_P~u?QRoDzfblz_Psqw~i+@N0iLECX`9hhr#A_rb z1WXD^2NQznN}{8J@5H1f=heuNOG_a_;X}A4gAZ#KOLd4*0&W+My_#lHqSUL5qAUzP zL12gMGl!ax7|YOElOIE@X37#7x^d(mr>$8Y^O@6D+J_T*6qH~;xQR2c3NC5knl(jG zGJ*r#Mhgiiani>QfEg9o6BzT(GJpW}Xd$7xNec;7Ia)|4S(zpj*jD%r8V;a~R&~)D z;(~)=8sHLaTS)5TNwX{@u=c`}0q9D4CPaFs2v$~-FvErKP^F3OI-m(ySuyo|jiPWE zf#Fcm_fiORV-sf@QLrH%dq5oyp+v* zfKAAwcK895?ZOzGC7Bql1&6WA*upp^om&c4yoUiv!mG`2#T`PYjMaD}#~|Ns>MD>0 zf{|L55(v@IJm-ihpEhWchdRRZNV(M};4+%<6yOaG_W*ZY62yHd^*S(A!$ye3jW%Oq zl5p%Q3qLjyL9qD zjtK&XB=^G~&r9e7d+K5b&@w#0S!9@NAq8H_h-LXkkN~?pOIkpKWQ@!PIZ+eL@Vrr- z1I?gD$i<-~##pixB!^s}Qnr)1R32wQ9{;xbRvuX1H~_-4LFdi0xO9z9Ljr?AeCo-j zH=?VlT7Gi`h7yJXSwQER10Z3);4~s=?E||s20GC1iEggi+LO>i1}rw@y$9_OLnOwL zYczpJT)P-*d?pK;fKZ{pZLXV2#y33iHU=+0R|}p(F^%{t60bh7UU}q|Zd`w5C7Q$O zRYz?ETtl%a%PO|UGTxtCwG6N#*;l2)p@e3@k3o?TEV;A`oRED7^a#ly?1Bxe12#d$ zEoPw#^N|CAtXsqoTDMjh5ch7d-bGq>e4*<>sa=ws<4}AMI+f@gjjKl%n{nAM!7v`+ z3^G1Ktvg=B?7sI&G(O1KhrI#SK3x^-@%B8tIz|G(BrEVnorBI&k<;@7MTJIPwDGKm zWXYMU%D`VxH!J9q5MB-Q8}G~5F8Tm z;BsX*vSM>If2N4QCv4)z0}A|~=OQ1n@a2rD;h`uU%ucT}%7Sgws$LAEJ@1_Fxb7ygkqfVR}_M+IZzs^Q10y6PKT2+oM{Xr z?+4i$gmTFK@Z`xQRcLDxLfq0=Ce)H_8J4R=X9py7sMVF&pqvP=>(ot*->f>lJh!_*Cgo&jd_WwmqV^_%BjE+Hq#`CXOA%_o1M+=n;Mr%uck56N6e3Z&D4!m0 z&1N!eJ5xd9veHPEOk-Zra#)tXzbvdU4=$HtmAq01H*yG}%u1HKr03MRyR1xek7BCAaFNyV$ zv31B25`gBjBLbgf7C^948@q!wfzt#eo{LgYfM5bK8W_U0^&yxcddO^Uny8_E&XbUU zc|zwr=ZUbcAakC;&o1*MNKKGBC>eZPV*b!0-JbQZwVHDz63o}hJnml{fQHM2hMXVI z=xZIw=6S~f=?VpqSg0@}k`o+7_29&Cu(#Bf^HPs#vr{c1;Fum>7r3q91|ag}O2h-z zof{Df3WM~=en0Zl!CfyOn?7}R032pVgbp@Ou%H5hf~C92uLn=e!H7!qqsYq$2SE$a zvYjr9B@hiz@>D&PMWAD_2GrB*VI#*X#p8>EaK&VaK&)0U+RiO9q1??pF1}1z*+l!K zYWPPwEt>%pt6~~ZiY|v)NCv5#lQYz|T0%oXyVc9%G#C55t+^mV51I@63H`fvO~P&nN7IJLE_Z> zA^X8zg)XsPIm1g*MaZ5(7#Dx#k{Npj$xEr6*i~dxSAcu8|kXoX2L4417vzRQp*mxM zrmgyN_=~j|I%Jfce8kj)=ADj@EtpLqj`(o^wD$1(Kv_hm_(|R(hA4>(iRdRH@>#_b ztY|YTrkw^CHjdB~Z3thfb@H@#XNm;DK{uh&f<1xcV0PdkNOmZSHtRBTW7F$>Yf+A+ zZ=e>shTNYzl(YbK)Ku6BU&IY^RAqZ{bu1m*)RBdIp1{BX{+J*tL`;q&=%@}%a;i;x z@ycP?uVe#mymIFS1MMUGtbV5W1=Kgu>Y0XXKjZ(_A|$Z04TFp2oA%Nw=ctR8Q3 zaQH(67)U=H#EI?HsJr2jR7cKhVMGuqx!TAYQzaCd9VXUoE(ACUJ?BdOVD}LRu-Q4? za42!kiPoxr>}+9#6I2H5tPERsx`KlpDBEScf=XyX`3#g4+=XLRVcj~7qtGEA;v-CI zvW89);MjWy&%39ruoM=i)ajRU3lE$&@5ISaOC7MF`4i7Yb|>F}*-LVeq?J>_NrQ&b z9;i;7!U1TYOd9pARSu@Bj{wO))>? zi$6f`IP){zGACeuwgdENes(B3GR)OAo1Yc>GfJVhgOrszz|JhHkl2|Wo;NYW z&>bOD4s=ua5}6xtT_}~>rd#3_%>If%3$YqM9&Xbe;@_rQ7S>Q)0XYkiZMvxuE(R5$ z?7?liT>;y43lE~5LE~g z!emABg~#E%xKCj%v$p7V34=P|2wdfW(W>TMMN zH}hqf(CjMjts@~Q5z1q?iMGF`)A@*@oI?Z#9 z!yH_|5ppM#aPk~A6zIFouoaeH9|Ma^7}Xu*4#HwDa0nn<9e74CKuBpkv@cU>-j2XtJ< zyhip;uX~*kEgbk4xEm8*0>=0kxYH|Mipf~xsZ(kO$njdTs2O9*x8!KJ#i>@p*E|(2 ztRNIMjLl4Fx8W@Yg zkz#Nc!ehzAI|2_4=<34j?&Ho&GGiH3233+~0jO|vA>gc30X7U!f0wW?%wJjb zfCCRqnH-)V%xkRX>t?7Da>99n}811mq}6xJ^_h<)PMq(rie&s zAVQuj29-#RhpLm=&?OJR;e>rMK((*twko2LfpsJ7jT&;0eC8scV60_b#ArcW%E%DeAvgg=fu8oU z%dpVNQWw)@2)3X?4PZ%7h91>Q*%MaKdjs&DxD6MV14WuJg`P_-6uphaODv#ebuomH z-!@>1J>vaS*z4Z{c9*G?0*`~07a2|b%q2P!jsPV{6i4Gi93U0C2-9YxU@nm`AUbW` z(G$~@t8Bp*krFZqUJ)$(x?@LA!V^&^%+>_i7_ihuI|CO8Y&emQZZ_<{!3`|9uc?^{ zb;*u}&X0EVRQXt)bQ$P+6M3*%IqaKKBVTmUHtv8ITMUsHi5DRdY3@x`XsmHU<5t_4 zx$)u8#tWmTHV!^D7vMn#|_pa?knY<#MbH^%#`uhI|f;lFXDR)ydu+GojSGSqbBwn65-$i+3WDdt#86`)(F7FUF)$#j!VmZjtb;>k5@FIvGo^}< z4NR#vm#LmoZ7yS`M2T&=h}j?6idxXNP}{$vF^Lt1_?!c)XdN^}VSTb0yh3FIv=Br% zC}-kI-L-N$d?Wh22SFh){OWjWxL1H)G98f$Atv@0lc1}1#=)_{9n`m9Z-LY0yu_6XuhIB z;)7`t!9XKn+mM|h73YLQ?8Vf;#t>>Z5}6BN*%Vd5=Lf43yz9{pM7wZ(2tl}c4cl1o z#a^6!2FVoD0hEPEvYnnZF16;7JB*Qm00fg` z3VZpsfB}_3;87y-|1kgGf%&T(DvAe2p$c))wj5F*35b&JQlIPa7Mm!w0y|Vi!Z1J$ zg%$`)pg@_XlNDrHy+uppaIQK=n=<$R+Iwo@`z)x$bY}|22TaQpqg)iD91x>|DMoP) zKM2c|5}sTTp2VP_yu1d?Baodryck(iwNh)7C`G*v7b$H5yoc1}WJ0Ilic*KDF43T@ zO3{TXP*bDP1+P&D3db{&;WeMF*Z*;d@r-E+tia6k`@kU`U;QikE0cT`#U0#W<=`2pE`CD` za(G0NU_x+CxC3Qizpz}tmmJ9%XNE{3@EcxT$|NMH!1GXG(aW_}0-S1KCI`kyLiejm z>(rg*iJQ8kJHz_u_!Wc#CU>Xpj_1aqdnTsVXatz|Y84|uh4ly{z|Vi*2tWj;F^(pw zYDR$NRBsqXr+{1-;ow$o2*;z53C0Y}C46xj<0cv@V6O0f+ph{I8sqrNC9lAw0UE^Y z8HK&Ldm76VCpna8ILR>|hpA~uw>m$qg1tL+2BPb9%r=}Nr2OSNSUbd5%P)?&uq4-H zK<_!&mmaPKp_lKVISzkoLFetX2m+lE{15`coak&Wn?4~N?o|U0Zv*Esaky7aIQ(yF zYWyEJHNK{%K2!@-Z(Q97eZ=2dpn8)ysIh;JAFB7=_(ogMh!Y_UU2ACRjSd^AU2ASB zqP(1pZ~{ex+fgAcHwAGKp`e(Ur{7jN^;R~Q!tAAd`1I^bBB^zh38(|a55YaWMsz%} zkWpQ7Xf8^1LReu`7mi^8adGlCu(%ynin9##y5@e_F9`>r>1pdIz&ulWz;57n$w&uktNSEb=t@SIr7?gS7w@^}w@nN1wj?HvcFD zi#`H~{Y3=?)T6rI@$+AniEplICr5|^V|(BmktIo*L7gAe7bpkfh!{UDAL7s+Emy*+ zpdCePiz`yQY7NkBjJNcgwqasmefpxfN}PLJIZC3m+bg(9p?FC^|A}c#GQohKUiLX8 zmP@FH%Z+9ocjm7das)EZrbKDjr3tGVRn(&{sLB(H_9)cFdzmePQ{>Z`m8>#w#s%gM zOnT$2z@!1Q=?;_A`f&qySUBmD&Wq}(Mqb$towlgYfHnE7L`m9BV6Y`bmF+MvrLrA5 ztEE)7Lo+3E!gk0h#7J*C0o}Kn23sh-O1oL$6O-ci#LB^FW?O@A{%J|>&~29ZcmUbTimQt`Gf_Ja|moRbn@lmQMh+VKVs zaPc$XpesT^0Bg*2dKNkaiXgi6BV5Kz#Vy6utviqw@MB>Ny(B3|vM}s#3g~D#V!UWn zj}Vn46k=HykJ5sv%bu=FOe(@vsTg8Q!rXvSpzl&p-RZdv8(k1_JhxzUjdO*`ILKuB z7@u5Oso~uQtmRt06#+KifLId~oGRp&NPkdh5PFGWW$bQ(Q}aAVl2M5x8R219V*>UI zAFy*Zr6RRj)aky)PkmjrQ(xDgn}3K^oGP9>2zu0MP7>T9_6ta&>^ywLoWT$fP0%k+ z376oV`&vJ}MOzFZvnY!YQUb0FXmG$2T)*<92ZJsf;hZtjRB8>F`#{Ftz%9Tvs1*X8 zKvu2R1hooBwM1QU1fnqj9gX%ZfRn&|BPj+O*xuE`)D_yhl9OCI-w8xh0BkPafK@`g z&FBt1>v)dzKS%Pp600-lj%EV*p=Bt|7bqzPUJfEC2#3@bDhbhyx%X9~HE>3qj}K^J zvU`4wBo<>6uDMc($AZh``~Zi4fsfZmOE&0v4>-z4%q;*!dH=z` zJcfALF|WAy4aP+cfGl`6=N0v&g|Aj>*ge45f~(Am3Wv48AW-x~VSng0O`7vBrfS@EYu}o?18%T$&aWE^^8aOov(F~}sLKSdF zVrv5*5+8S`1>7YGq33j_Acc&A1Y)WEXdwNXThjt}&8=ziPS9EwAwXFcJs!2;xWgd6 zyUL*nTDa&vC8E=xfrs6Ccw$X9F~&{O@_G!Lx*X{_o#&v zSTIPYGKz(;3U-JFKt)uSJUjQIB=!)#Iz%vdu)bhgpyD)WZ2If((G3=xhrF1mn;-1awu& z6GTDg0N+Yw5|=5;s(C%~G@?7{+EmnRdKj zW`Wa|NW&vqP;?kBAj(Z3m_-xR91=_l&eTZUHB{h-ftqi0B<6QDlUo>{a|JM$NEq{X zm;|ES91CIwWDH(B5h095!(ABt#=tpP9>lj7YWeo+;=BO#gd6N~v*0GI1+!J0Wub;% z1ScQXG!Wy_d6Ars^W1HBxUcr}Hiz(81$IKxrDCOE>%-4vvLG93^S@jxL;=i+lmVm> zMyn{Tu4g|N?{LE{4H$Tn*e?L2kHa8vcDJ0TU-f+9x* zO(S(l)rLlBt?&*~A?#=?r%uD2)(ZTi?gXQqrxUk)ZwHY`wtUB1jxzM?iMFFji5A!p zoZfgx4vuezw5|G!){+)d%$8kfj5!CO_MV46HH6r>ANRYzS!=FcM_z)5O?H|#X%xnu zn@syEhpiBUG|dqMskWuy9H6c`Zyq=1dGq*=cQ`~n0x}=uK{N|NZ+L~{*x?-I9S?2S zxbTG!IEEc{qxnG6nvP`0`Afz}JAr4P1VO9Kt0AHy?8GA~07C>v0+&QbH0c`}Q8oI( z-h?UNj+q5+5ttC~Wmd~nMPc;R0nC;*6N)fSkND$&_NJVMJF#b&avC2+BEc*q#Hq@l zWD$+nImPu)thykh?J2K~_8^fzfx?J56!!U7`u5L*5<~vit1Gsr2xlTk9YAg}AyU&4 zHGtiKCXd&UnY6GZjUuYEz2->LFlDJ4q03zNi_kP@iZDB1un-aI(4y*be34eXYDg}_ z_wT6lpG6sL_~8*}=3he4GNA%$4v1ib*+A?yor}&C{v#pv1PI9hyJs4`N@NYl1sKE2 zY3Aa4Cb$)J&-@MutM8VG?4IMmIH;m2is18LG7b=v_usD!w7AW3ip9ME3}XNb5i+?h^n=E7_d^&=>{uD6vbveZ+4V)PQdkE#RNx4rGuO-07&kMu0 zY@9M)9N!U2BdAHNu>m?Thg>a1u401~_KL<}V2z{8&}`Hp%A^X9XQoxJ0pFWR5)&^_ zy&~I~T7Rjgo9EY9)BZP6Q`6dN%9PPpxNFL#!csi90)8s86P+YU4Ji?)0QE1t2~&X_ z4#kYPT?nNIr*-HFlz?Zc8FILmINU(8nm|Wo9Y#7C5O!Z7gVQ)&kO4A`41FLpXR0Oo zCNu*e#+f1mPMZiy1?FfJY%(WFzj^Owo1{>UiYR3|o zz3g58nQt5v8*mUoXy~zq!#xD>vF$gyLk&12%2jRKH<9Eu(WHRh zn5shCF1D0HWjP}*Q2%rJl|qQ7a7LwGa8*RmTpfBLg;lkmJG4JUP}tg^X$l()L?GfS zrDB9B?OcdF_#g<&q6G|>3pU>zW|h)iVKmyK^{p_L?Y5GvTj6EDxS zYsqj}rF)E*PjY!*&px^ByLV32@-D7A(#{m(joJ!JjLv{FM+wBmvkyR(QIIi_1(@JO zrdit@4~RvBZ6@Xr>j%Ov8j6=qOaXMUkxqiL(4UDC9dv*zJFXK~>H>=H;EN0~n}~Kn z@ZhY#A50(>%Ldr1#MY@zYSRK!+ryw&nL(U&z;Z)#|65A54rn=fZ9MrUT8E>YU>o~E zyQ5Uk(E-rKTnoJmc1rH&18=@M;t$*5aF}tybQawPQIFiWhJ-AK-dUG>(4P;of3tbB zKH@?xgY52w)*zX~sLL=m2gJvp915W|j~h-Aej}bxCr48ud6N zYZoFyA94yvd_UC|=t&|NR-wg0iG}!zD~o@4s33+<=s&= zG_X}m(s&#P0MZ0-we zn2Dhtqo>C2j}Ki%T?7*>@MeBXrnB=ymZNxwgnul<^+x@Ql#=RFxRAaCJm!#B56QzR(3~T4PU_KDo&}u2>5$Y^17#a-h zlcH8isb`(XX?wEWJ#2_5V$Yfc4Y32+0@4MkL$i->z*oGnjM@r){ADPkYoJu%$HYGt z1NvdGnHH{8UO@8X>MEL5+u3H-d)4by6r~V|IEcez337k`@1{1w0hYn$hcG;di9%8#7{J|` zMG&odb~S)U5fzR_2_FLel4TH_I1HZ$_<`a0Osii23_>tpp}!MySO%laW!y#6IPlJ^ z_`-QAcOr{>HpA`&_)W(w2I^5YaHfc01k@uM*i#f%f+Q4))+d2{qA?=S%D79XBQ(!$ z&Or2QwX@plUA$d`zStyPVwMn6&{?qr^a9ga029GYNZ4~_;UmCM6UKtTz-}~_?!ZAe z9LjX5gHt#OZX`D5ZGBZUR9Ol(EDk(H5;2^>=}xc_CJ4YnZ!l1t2b&N9!2!Y_#J&+# zX;g*UA-p09xfFb?CF5jb0GEn|!&uvaaKs&Zv3IOpo1aJ+uYL*JkJ~eg+5oIgPrAa< z1T`BR?sKGX1aeW9(WV&Cbd(Wz6EW>d*xE9fV$0l7NQOlBJX47tat|hu^xm+rM<4~b zCH$%pK$U(-f{pp0paWpA^f*&=$BR`Wlg$|ApN?t61@w;2hoWr|Xv}4O zf!?|eDhyPlU`#H}SacOy0yu~|a(wDfk54Uu&Q|JkHM9$vMMIT)z!uP!cO-+#z}yfX z(I`uAf&f6$Etrb|SJVPvB!bd)>G=@EAsUT7Zq$I*_TV6)EasQosNWrhKg0pxgW#jW zA@UeTVF#l<*jq!I1+-KnrNl^?>9Xf*`>M9 zW&#SmNa8RSR=h$7%_8BI#?5>R!jrqT6bnLS%4H@y#!zh!l8?ySu@}n;+`SSzcDdWA zoYE=^GOt3A(TvyewiPxj(cIxy1C7f4m<^qck8ly(A+Xs(rl63sngR_dqVdoU&@e18 zb)D{(d-oZE@DRubg5cDBZ6R$B6wyhNJ>Z1`ROLJk7#Rn;B=YRvYcV=cQVx{gu-ixi zngUSmot1L$KEwZYN5I!D>T5G;n2CIX4xUONR8x$7Hh_zggl!>uVZcOpV-!V1Dgg;H z%?mB@f@qCDK!4s5+sL(AazYj`g9k=L&z(-L(>(_h(cMfE1u!{ObvIJ2W??jY0fTFMVvum zH^_w4ENh1tL?^M#!+ioNcmdT!la% zD>G_5gfJiDEMv~MCN*InAogIquX9;_pw8m(taakq*aE@G=wz}jJg@l;wC_AT(@S$2 z!iJ9Ed9lM-f%npdda6Y?LZUNoKLm8pY;j zVQ%y+g-Fsv02VYQlqrvMe#0X-GgOby0CLa|@QAiJ(CWEpwHh{RQ4sCT_wV4n6mWpl z)?fT0zzL!V3IL=r`2ZITyrjH_vQ!H`)>U18JIK1*Y~O7Oa);upXBn!Jn`==K(<>S- zua4qdFkUot*J0At4tIzqYy5E8gXG+@$OV?*{&H)Ola#1ZbFbMNr0df%y}8A{5^q+q zhM%l2>Q0#ZXx0lw-{+s-<%dD{&lu9+;`!r)?|5YA>^3bo?Y^wCQfrXr%gWBz&+n%D z@-y_v${^lWdfMxg#{2U1;@s@??EEZ!T%}_isz@s@@#)$58NSJSWivgyST86o(F-#5 zw1U$73_NAll<*uT%r7X>y?Xk1Z;?vuEh_J-XP59(c7AbohEJ~y)gxJcv0fR{-d|Lu zV{D~X>F83aIif1H)3fu-yt&yKdTB{!RI*;|n^@}0Pxmo-Wn*1s&nzm)vl^+Lo1LFt zkXM-NL&H@b>4TlIO5$ehuGPWf5^qsSvFiN=qKQ#9wE-~t!7qI1qNO8lJP!0 z7obDW*d%1+8wE7J!}(>%U06_@U6NgpkLS7p_my?|F*iG3;E`UCTbjot!PVY0F7oDQ z`E+Td)!7JZIMlbyf+86|feu=fRWcq$dDKS^wmFa|l&wy2Nf8mDQfp`pfmNitgYKJL z=u0p0Wdwf4IF&pb}o9ji{S>sE_>6zZ_Twg{#9U#wS+Pd}BmzuMAs%BH^Ys%WVG{4AKT##FaKA}C{ zVwTq+&zqZDkgofRiVBMO!ad$wJYJtrT#(PFCcwl3ATq`zE!Sti?vw7#7wk_@_Z0(y z^kL(ReBKPbe?hu8S07qZP~^ox3bgc$QUNjs&YM}{E7CInfTGfL_MA1u4bPXNOA7Qt zZ&9&NA5`eeHwO3BGYZm6^L+W3V#RvDp@RnMC}ET_pg%KJI{DYxfwvC)IrzfM+NAM- znqJJ7aZtT_aW?0Op5rUmGBCT?-b|o}e_;6~&s$i?Z%Hdg zinZt>ButNviOo#R$jD4eNKVd-kMsKCGLn30G2Xb$xY&&Ncwe%wb7Epre0pYdZgyG` z=ytTsg6QI+^k@*MTvP${ERIeqDf0QEfg{lzyz-7ks9=0So-ev+e0gzn$8>K|RzY+T zm<>?6TyhKj>6l*R1<~)AT@V%9IlgmxW^#IBT0&YvLQ-aQmMis={| z-!VyYj`vMw`BsB4EPTjoZ@^T&Hsz=v6~ZEz7U1ziKW@;Iac{r^ZoG5%#(_(4|YN9S4MXE*v#AluWH)g zge=HuhHos(kBaRW(=jeCS>Ojm$~!p~l;#(EGksC$Nx3&K7h@OKF*a7}C@3ucJHRb2 z!6*Usih)!mLP^Jhba->4^9#nRXI1=30g&1D&K*0&pO@h)#N-D`srt>HMW+ML0+Gu< znC6GSI|?~xfu{e;eX!F}& zxJ{;)NE0BLmV!zRZ);;_7&j z?=8#D0_mv{`obJc9F>__W2(~pY)Yrmg@A_eqEpsZ)FNg7O=$lq-7~8plg8XEERLo$ zo>o*aiGvfH*io^YBJZT=yn>7xVM4q$znvUHR*j(o;Kx<&M@+PAY#9WV;}X<3Nl$7k zsjvv!kB#pv_)7w4ql1EFMy^tJ0y($!E)bU1yp?VRe(?9RxI8~yO8=V(kzG>YRn1mH zAc*zJD7JRKU{+9#DOgjIHSEFHl#L_lkUl9pd!rafK} zM7#3S$D@z{vk8@)*hIa!6s400q2TPI>MhR)Qh9R=$9vO!C1_Qy7<-_n`21;e@-aD0 z^(x@Ar8x~(Br4!b&FY=M7V5bme^e3za#e3T?M|vGHJ6x?odsJIwWyBm0t!-E8}%({ zOu6NHZUJ<@GG9?K4L7Ja4SlP*z!ORYEe3*z2o+Xo$B&0zmD4Ee7SJS9Ti%*J`!lPO{hY`gZ?6vC;fD}ZeweGuvI}y77qsMM0O6rz7v!7i zZNRIPrYS^Ot-Sf=dPzZ!FaP*{QJtmD46_2dwxm!a5in0^zk)go=I-<6)iMas_{AuK z;>3QIhO{}gqy^y7gF-KDiB*!TnT0u1QcxfWV7Ar|Dkx=>V6GC|NVSg&jlU+p3B*>4^fE+9` z1pySfnqjS$=?xzM7>1aw?3oQ46K4r#gvE=rrg^@+f}(QpG|KH_r=_V0W^=LUD;upA zFnc*;{QLx#7q8|K+Xg9DVF4smaU^JNKmDKwLaU1}zAP9<)l*tQ0W4+t>Z#IkS*2r) zMue_qjuR7L-_wATFoj-FORDn~O^FgB)xEYvHlH?=q3kZ?x*ZFOvO2`Y#Kd(8Y;4_e zw9J;q#wAyOo6WZhpN<2x&E9pmIlxe1_KiWqyHwWiq8omTcqK|#Anu5-9ko9-6gGjO z&`$zD*K+&9a_@xm2dkYc-FjpJ#+IUl&KDsU@;0(Ew1ZGl7?bODfRsbe1n!ZbX7p>< zp`9?)Y3=?b!I_O$ELu2y2eZ?!Ziyqy*vF6MBpxHK;hmdv(L z*_4sAu&AJr9tK}=5nv5+nBmRH5C@Gncd-3U3xQ89$o#E?D;O`l5Bj(vzT(o{k}h3J z^CuN~3nSZ)(;*-bF#)@A%C@idYvj@DArL zc_|h{x^SbR>EnHQUbvkg^Qn9EqYtLWMKH{pX76EeuN3F`O2!vtzz{Hgm=8sP;Dh#o zltLzxe!{zuT98rhw`{@ZQ3zWu-g`?*i+g~2!2^+AlwHUXV$x%)pgEhSbG?pb_vtgL- z(6knS<@DI-=`qtm>Ae8IWgoZl3W>@qgrf7-&%+gwI9iPPJ|0)%L09v=-4ndC#(NzK#DZ_FSVql; zFy3gI8A*0*74irEWaq=LSyayE`HIpD3Uac2+Us!U4??0nXh0KO1E0eKo_F9opXb!~ zXk&4027HSSc)kbsZShN7w8|KdPV!yH5RWzv*QJ1OM_m1WH$`B&=-C;Q_4D-}#$cmI z-(jO-8hEtJknS$jQMbnQJ{U_nj`z`7r+4cHww9Y|Jx1xVR{m$q{MPgH$2}iH*#l}U zAEw}rV2zROS$alsiF&Zg8HT};@iN=F1^qk=U4Ch9E`K#`1k$ix;+FLTG?8{i#Y~QhDTsOr+n3LfYY4J*g!nYj)bNkoFv_GF(|7@z(m`vm3v8@L6`J*B$o* z>nObMhx;}G&pmP99KZar=3QiX)p@r7_|G{*+`j<7*7LczZ-iephXZIL-tosOZ}M^F z%?eX-vA6UN6GOk%}eQjQP!vGDvf^{9p63Um#X> za;xLHEx6lh??qbTYW1|$=fr(TdnVFWpQ}}ghO_NoqZyr%k8`Yg`BiB~I@0|a&A0|> zIA%6|z`aEW`rreir0wSr&`iz|>wB2_j8{?y%OTIVWkat%Kq=i9GEkum17hd(A#Y=5 z#1HfFmt_a!9ct1gJF`{qg=Svs`CA|t@hz%jc7A45$G-AsU@vPBX@vmZDxbQD%1Ha? ze6%M1VzS9U;EVsMe6U_!k5&k{T!dfpU+cLy?k~hIKzo9-OVcLS^Jo*0Cmg@s@q40K z7oiQ=NWTNWp>SdBXzd=C6T99`$3W>B(0>s2hLNU~|>_Xf1(V~?PIp1eTk|@h+ z2{hZnLWB_bGGMPMRmQ^H>^u-y-{f>3Bx<}bgpE}6?%*NPywNk2K z6_i$qH5YMoR269L@@16fEAxr6|!Wd<^J(d!&c-gDJ`Nk3MeBC1boBlP;R;QF60ExjlK|O8sI8)5l@pi*UUW zzvLsj@D57VU=BpSsG55id@)78I zI@&q|zr^7)p}+dfXX2#wJRkRbj){%y6rYfol-${ymJSoZfes#x(me6m!qIr#C*T)b z`q@96t4a7hsdKd^W|E6Yw;JAqXGmOL4WH=F01njjMQEo*G4yd=#`*6%z}f_h=$PuS zruknX!Wz86BDu$v7BSAUGON%>>q(Kr8uSq>f$0Gi!B^RBtC^bh$kC-S_=(~rwpV*F z4aQ?CrGwLhNRI$i={X`x?dV18omH2#8FIJP2c`w}PJ?~g^q!Hmh*zsvBvr<#+NHr4 z00)mAnT5#KfnEuaJuf;65?y;Z^%$_Nf-(I@X_N*3oN36n13u|e^7@}Fw_>rMnuEKF zXUd1b&9+0r;&u5;eMRj$5Gn|Rg7 zE_J5jy05HH60ge^ot}ql%HAb0%Wz$I=BsPA;~Ia?4>@5yw2IwH#_bvTX^)ioPftGMv8Fu-AN*|lp3^VtdE>SLA)60X^!%~kr>{Gs zp6>b7ojc2WO#Zs(4bI38=U%H{nBadDa(0K>18{4aSe(=*zufD0*k~exqeEz_OUaqM-zP@A2(O$C# zyk6u@?bQ2oy?pa8jmP(Hm3>K%)y?nf{rEl2&VBFgcYB}FZ^_}SX4UC)|LAq!wNLNX z=gXF-C;d96sE>E)?pG)O@IasP4K04${=`Rp`cKQKM8-)J)Ls!!WqWc=20!dERXz3Aa?gFlNMyzrva2JE@Cd&a95 zT{7;@?*>f!<)XaRLHYN56y3k)_pj{P^HqBPrmMa`4ML@cz;>Hut~5n|W1s zk!!#Yzg+N@Yf$olqMsLh{%TtOfZj(sH+bRqWdmAH+3-&L7vCRn_ibHzm8_^gFyrn$ zk8HR$bzryGKi>X)$4LXjI^R4$`_~l%AMEk*PcvJ8Ht>c;TT7SS+icL&&-Fd++W!3q zHEPn}!1l*x4r;cz(SsXXJu~RCW81d8ylnrV#V^nO?AZ&$2hWIZ_u<*M4j(-B$f1i5 z{&vmaR(B@e)bx|e!D&5%e!jiw4}-559{h~svU4xa8@{g5r<2EByy4vV5iM_Bbn%pg zwU6vt^Tx%wYe&9?#cD%d|E}Xp*SCrv()rQn^NJ#}hrB+jecgsRcMmyZ$8)}~mc2Km z?ZC*F@4Ys3=t}QD9-aSa_n~3aF8QW;RPoS3qgU=5^Yep4)1TatR{G<|L(eRHeN5fw z8xK3Xf9I#K9p8Ic$Gfju_Gs#~Vbj(vI(uc`Cx(qa{7Zg|kG>dIJaP3kXWrC$_`Y6G zHv9g=i-#|3G47*-L#`bD=9!bayUp4-Q;9>$j0TriDga zc5m0{MN6(3aoPNOU7za_HUF|(zj$?Mza?ug>!v@mZ?x;j%LY93c|`o2^G3(?ef#F6 zao*8WKQvzGGvnsbmknwB_369b99>>~(Yu9jX=5%K{7J}wqw!<%_T1cOcee>+UVU^- z)QZfdV@gkdI{A`{tz#N{KMToQTKDotrVeP^GbrWq?H`Vd8XjD7`Nqc2O}6~Al+P;cGqz~|m=^cWpFXzTlU)w(ZT{rg@5a{6+4b?4 zW50R!tqU*NcE-5FL+-wI#Qj6YJ>KrBjw=RUh1n6=<&uaO$2o5uHK#1$ALG{jR&e&# zSI+SsKJr$_tBXf_Cr`WJ#e@wvc(;#U(4j|{_1>`fCx3cx!x8UQ+LkGE#>A#Qtj$@x z_bFf6R&DRGGb8Ruo1-5bJM@PwY4`8@I_aUf;PlPQ_Fgz-Mwj%pb05pOX+dFnT-F`E zCO>&!`q7lskt25ROuu`4`=1gzcrw<%@_k8MR`7!g#p22&kJ>MZ~ zYrnG|yZ*2@>*_NOT>8YsTe9}Ieek<88*I!vZBpnZ@6B_Je}B=N9YXgfjIZD2_oO#{ zIph2EJeqb_n|sDzy6wdybF;RMf4twyDOqdlWj{7>#fsglQ?f5jd;k3wUzTKl*JV@v zUHbCu?LC){zjoN}?646VQXkE3GGRf^l=oWB={un~WKlL;^7oSRW_`CHEKa}v6_ z6Q{3hmpd!$`gLQT8k76Z>&dr2zwpM~^}no7`6~YP+@#e%FFecnd+u4qcXSyM9+$U& zQ0g0xJe-;L#pgG^&}`U}yu!D;CS3p2J9%NRT=UA~;UW18ilRE5xx8!s;;i3x4e2*A zf5yxsw|=?g{`_6uU#Eo!eVE^2+L~_{edZ}BTat5bmsS@RESeqibZFX?f^Lo5PP}m1 zs)CKp@;2SFWKY42(Hkn(tZP}gx%0Fw!%rVv*kj(3p8NGVg~OJwYkE%m=L)}C6n{rS z@xj7IA8TvRe(0=;Bbpeo(Kn8qm^12z-=BZx`iY;vKjoA7xOEdhx~^rjSC0NPap-q< z-%)fls%YzvJ?^RVa$3>VhZkM_M*giukHr4E|B8N_irizT7GF2eS-h$2vMn*6B^J*d zRuuH&?YYHUN?wn6X7@eCK|{(P`F!N|;wvAxz z*KO~7J+t>CCF#driF-Wk(~|RFE}rr6pr)nn#|H1(dT+ndth^iDz6UBwD?=v@Ji7U* z((m4E^4agMuS>Td?Z0w*s$Mp~`_hqT4jon&J#fRfd$X=Cd%-(p!mhP1mo=R>f7y9E zzc0IVN%Xa4nIdLy8X_9u+q*c=otXte=!=%x7eHow9_voZwUh#x) z_$F@h>hFiO@A7cgbsL2KaSp*+Nw_ZtWG5}PW$Zq^4O&h zMfa~?RNigFja~0v_(1u9DU<5G9{*8!;fiZAe_PsU%KS^BD!SI~HKkx>^0;fRy<&|H&d zzoLKgk;mORhpreKGUcwf=eC{t<5ewsr9L=n>aW8#=Ug4SaBA|o>()O~@71ZVA1+=! zqW&*afBtS^=8D15)4JYzdS%Xy>C@_U3tts7>9%S8=eHldVbR;uR{gZN^Y5)))0dQL z^UmLsG~IQRw)~=x^QM1xSxUb_%a=|6plD0$&xgG~ec^(jJ+02IKjZnGv+^(Qk~*XP z!n5AoyP<4Gr;-)tx4B})jHMg)&;5Smr!y@3{;9gsg6)LoF$mtO5Li`1p}|$H3tN^z ztEms`K*Qs{R83dg)8EZsTe<&xe=;DTL37pNF-*}0YvW)ktUK5np8QvA+=o*B+Rx~}mhE4f>v$WH}si;qi)ON>j3OOET@DW+3wr?^g?I>mQN z=##3sZgbV`U%NJvObz%t8(&WSOJ zv59esof6{{6B4nyGBG)^b5cxFY*JiOr=<9#grvlzq@?7e&dD*!vB`1Cos#2|6Ot2? zlaiB@J9kDCJEM9mmPA3Fk*ITLmn#UT1=|1p4=4K$Rh;Z1Ybx)QR&z=V_xI+MR`Z`* z_9@xx9h=hdh0~Vo+jsWk zbrXN;wt4y8E4~^w-+RO3lg^m$Dy={J=GU9IopA8EAMV_Cc0tc~w|qY3morxO%!w=x zzG%{G6K1Eqec+C`1ND0RlJ)t(ZDkj>J>uB+$^{Q@y6GolNyIfO z8-Hxcf`%zizVp(}i+3jGCf#sPn^&Hz8|pbL>d3JLJ$ui6`kDvhBE#x!edL#4jy>6Q z@fV-vUVK5^g0MH5b^UF|!j)~dT=)5nSu=J%*zM7NNA5m+Tf3f*FPUWQ+T3W<;xm4I zJ$6Ry%^%O+*695nBT`a^{MLHL!S2(pDLOkR^Xr7jKABzjT>i-QtygaTHdyoZi2ER= z-<^pgo=D#@YeJor?pt44IDTNnXQhL>UvpnVVYoOG%4v*ni#{k;CeiEjlj+tRe@ z#M!qGkBuCC@q4cBSH0QuvP z{cDf4X+7|&6+L_Rxati(?di-Xj>79-r`%Dz<+KPCv4H(V#ib zwTtsoe|xKE$p;-fx15rGc8}P~(4j|;4sUeBuk-F6x#ruOx*dA6-Sg8Q8J;!kXHAM&^7Th=t}TDK>E*q~ zHZLu^=H`2DeB;cP2d>`qt2=Q_<0jwy+V|NjGTUSwsQBgWIft8#dZ@hh-qTaQtZ4V? zv$NhE`Djwzjj;Kt4=*L}g!Cz>vQ>Z30nY;)xs6SSQnZ)UcAx_R@rmgT>h5q8o1vSH(w z^Sl;RV9IsvR z>g}Gp3s-%$dVQ<9_bf4-zbv+h+ZocF`NIcheo~e(w3(`!|%O+;PU{F{$aF z>@H6nab!T^BF`&(Qh#XtThmduy?Wl1PkTJK=pT39^hEP3E-UDM>179U-~4{bt*J{k zf7@Yk@Pn~M?LuFSne*b%*|X1`d~E&T7YD}nJ8=Hq1CbeR6GpuJ^L>f$T>j{3y&5iB z{8HklH&1GH)ttFMF21e#Y0q7dKWEex!#|7MdrnE^^p7w3a`V-Dqd)li^iG3r>yupY z^(_m-%MOm&@a~}t(qFnX#C`voryd@fQ#z&2Hw};EefRo+xA%X#C~|${QGNHl_u`%( zmmC_`>AKN7UwGvGsEHW|?u>u6L+6TBPi|g*%YgFhUd(#U_+e7-r5`PwJ^Z(&?;koa zu2tV(mUq~5bnYp?_WDBC-J7Z z^l57{CjNBSdkYlWR-pqRUir?F= zOW#$rW!#$kx;^|!#q7K@e;ReyTfI{!@2`K|&}QEILcb_EH20;QLq=p?T)6MD@=e#a zxiPn0$Awux?uzR*ac54&GebYTcSq~zweN3z`PNOFuUvXxs@voDz5DCTv7!1U6*=YUr^l}U_JMUvR&@<7NsRgYt>4DIIBEI9 z!|Rq@6Vj;XZy&zY^|=*Iw>|aU;hs@_nhrm5NJ)85^);@sx9)r&tEKXpU1iB})FvcZZe4eq|O;^w6Tx;^?u!kDd% zFKPL1uZMO&U-zDkqsGlHx%&MTcV9X3-P^vp=#2{slka=yypWA&4VyIk*bSRMZrAJH zkn}4;U+&O;c*cxpQnx+cy#I!-r@#5_q~ZzP+U&Wh-(6>nef~|o`w!>NOS|%>>z8~x ztLTcSrVqRBiG*{HWFp|Y<@_~Z$G$h=OuOT__*!%m0jOxe&6P; z5B+@A_PrJL-oL;9-Zf`j=c@PKj}P~66TYec=DROH&sR8S<5eYF+hk>H`nuj_T`ySw z?yjvH<`nNXw8J|Ow6D8)((BFZ9l3wu$RXN9&-lX|Um5<~og2$HKlN>9%5_a37%BtKxzNUO(#g=Qq7~db^$UwHfOoSWhgyrk`{|M;6nx*p7a z<*Ht*Qy=^`WzfZAy8T)&C+NxcBfn^T@wtuuAA5HmPF27E4ScUXBN2)WB_uLbG*5<5 zlv2_xb7cq_GBhb7kxHfpMVW`9WR{|&h$bmRgQ(0!g9beBwb|$HcK^(&d4^IU#Dn`9b!p#(X)rH|u<=wT+s_v}8x- zMH82cXD$4n6%7oG-eb&Le%L)gm*^MvpKWH=s_e!rdcUSMLhDylB7IJd?A$TSlw%Sv z{aU@?z@t0#cxC^wo4(y%_HL2z;qF5}W!~4j8b+P@QfJ1$VO#2@{Px$6ADS<|b?s4( zV3$TjWs>}97UTP|857G|!dj~f2G=+r(AV?$)c@qHK>sI;nhWX)-JL;g*#qT=jQ2X` z-@kkFxP7Z?y!F5ys~r-&wng7FT+1$bSM@JaSv+ZVg2lLVE7@BTM#bJ><{qzWtW^ol%mn-8bneM)cW;@c65*3A`b@ zLHJYTwSun)HU@3KnV{6Ath%9dUyPkww`h*$+-3D)4U+4#R>qYiwKp~!>4^*F3peBR zD#PB;ZDS|2)W$@75S1$bo-du@Vg5j^+h1<$NmU`K1~-u^-dvx-l%(|Q*YnrO35T9O z$p6l~xJGEa>|0xh&d9HWZv>B@i@cNC{pHv#tIrdDXdJtL&9^^0!rnFW>fX$RzT?x2 zVwwxB_v$@td|7Y$@awg`Y0aa*-r!fhc+@_5zP9(r2lmmS*Hp*k7^IgO-+LV8aLZrE z!`!>ZI{JA|(jHdv-CZAo4E8!O%q#<3^wX_tC6|s-F+F>??CbpG>a))m@i#}+c+EWI z<(U=uq_kw^F+r(8g9`Ic%PRzD`{mDDyCy zUDNzawl*JeETD zzoN68$M;v?))k&o+V8n>cK7(Q-EBXEHf5VEtY6u_o@O88A=2{W@+Vn)zEGKWowpAk z3Ey}=udcI0H)M9IS?gJ2_x^9xtRo^>?PAo5`Y{KS9{;*ddy_IgR{las(VAx$*Rb|p z(m7pYrvFh-edqh-@u&P$-rYZNxL#%5D9t!$r;yy1+zUmo64vC|3m83EQE^p%Vj?R& z@?m14o^TvRdjB*}*K)bat%u4LMg?!9JPlc}?!*t3179!xP!pKuLkV=bZ$H!P`-H5D zyuruwV>Fdk75X2n&5@5CNGcA{FBkmUH2ZVLJGET73-@Y2tL(e~f`7>j(-@6+on;01 z|0X3D8J!H<=XRvpEV*y$$*M@J6>;u+tCn4VQ*V1VU;NGD8&~}ANl?$q)UDAe*#moWtj>|2I3!UI{X3G0gUArg1$9(T=F2};wLCbMY2o=cO*$$%8U zzVupw0=r77=c6~b<%hMcDX8>s%__Mdw6rxUzI9&wl(qv&a+cSY)<(%{jJ7@!lG%LW zar*q2@%#rmLIM|${od7e$u~`oK7B{E@pz?>O*tuT!Ev=JjD^~zNoLtIX4sfa&Uj$x z#jFte96D!A@nSO*(GZ`9e9bq4o)bXUAr}Pb{;>xZE-~UnW!ndt&+l%4C1_mDeoIM-rApOyjQ4TjVb>Iv76>5 zS9ZOO-XT%jnvf;vIN@V%3O_5=a?&pO&=1b{>B14$?msFwDX`_w$d=*nzZ1E~d=X=T z($w36Tbk{R_U7z6lNWWvTdSLc2-xim-h zq}d1J)sbz}?!446sn*Ve@p;CuCOl z7#xi66nnY-^RFe#m9JGDtgUhm2&-=Mnej_x>o+s)i^r&j$zHybV;3(tGwaK@$M>f% zi4oq=?8w7^pW@qdJ)r-W@ewh{==(v-_P;)v^T_S|zL_S~))%*W)J1RDJ((#~7JYCk zZNOl5`06`dPc8>Ue51>J@hxifoxf&*yUqiV8)vjNKwWrR_C`Kxhw)KAdxL;qNw26-iwPv>z`h6)(kSzFo zB;F!Cd!NCCjuthChi_YFD6veXLPNSjPgP%7VyUV&IA1?2Znj#AM{Y^L(;s;QH+VL` zF}!^vEd1TI?cn=(?@L6-LnTT6HYaQOLJdeg->Da+5W0?Iq_$_-E)}=S7txZo|Jv^5OnIX*gp>)a4`U zAAhek&;7kND*bycN1j&k*Ucv)>aPM{Nf+MuTdiQ<^|$&vHT?HlGiOQu@3mn3(+|Jb zQ{VfY{H^x+EdB2KZ*|O!WV5%w)%4CaP+S5$FpKc28Y&v_aLhilCizP#DBtmCo6wb9F!+vyMP z_1qh-<051Z>T2$F`ZZh|MqhVUN=m;IJyc77WV~H5TWI{8J43aCLz%?u(si%=z7ExD zcejjjm>e1=nN9$0v7EbHE$s>qw1TJXYh>H1{_;w44oX=@b9Q~wE{kMLhNI=wrB zEPZrDglDuHHN|O&6q0p}$qUi`$t~g`tH!sJH9NK1^v0a(hq;fs$MoQM|G4;c^6?R47Gwx>#M|8dk8WhsZ6gL<3A4;7nU!`zN4 z`&?{voPIvma@wrd*vQi7Nb}X`zNE%SFPel?3T9Tye3sXJ7QSROwWC4qiBvX+ub;7p}+&VUZvg7k5J0(e%kULi8rQnb!VR%ol5c6^``T;h3xQY zO^uuTxW?!CvnbsYaV}aPceQV`x^&oRss90`x`d^x9abi2E*zC8_hP$Q_K6dxZCFj! zM$4-o?yT1O_BQMD;02w|gF?p-9*Ub3=so&VU-8}W9Wu2&lP>YwDUDyF^6kpJ0&07( zQ(MIeo!u7_`aYj!+m%js=4%SLTeU{FGG}PS}JgYg^V5&r*D%yFbd@ z{jxtV=ka_)?Vy_1eoE=>eOF&5+5`l?e(Z60l=^}dr_N4mKXT!-Nu^ayLiM2jM9-3+ zlkM;BvM*kE^hD_a$tmM{y}Nbit<>udS~tJ0de`&L$h7MfZ$AdPM|PAyToSUfwMg{R z4av@~HH)VFy!~{>MXS!n23|P>vmh5eE-Ao+0FC1vY)x<=_m<> z822|_(=jbiwqEh%{kZIiT}g%Y<_7bn+HMFmpLj51K(Ey#u(0t+T-;@0sq0!dilVGi zQ|(1k9~hq5VBPdcrE~wnh={U|qcP6rIs1=YT)4KnMQXyYr1bLOxi&8|DwZoQF^iwP zK93z2Da|Tld`C>Zab%U-u#FblOM%OS?K36)42m7LJjXxmlZ*G^%O`f14Wnw$iiI zsTuswAD52&}tA&G3@Bgs7$xgSsqRLLs@me00FB{%VBq-Y&hORqj<}5G2aHHy*i`5>bud^L|Jw|0r z3v%*49aL)aIjVW7b-2K}pF8ZvW zv>tO7x9%e9!ow=1mpP68aCL+KiGi6~M;aRrh#X_^%y`+AICJr#)hT12UfB3iZ+THf z+oM|#np&QU-(xwaiJf;iuO@r?X1c)Pj7EByeRUH}chJ6g`f1|?$+7-9dcO63;|BG* z_a69AZFOe5jhMC2J4dtNv6okUI=KI)xyJGR6|3|;y3d@xwDV&0$GHOPTW`FTG)X0V zM)6eKQD!|U{*u1MYU(&@%&Ln1uiwh=PIG_Knssw555jvG~3M};T0TzVDU>T_>t{;4@c=4=Obr!vuxvTq7rB<1>Pnd&U1 z@a0N%IJ}rD_~c#7Nw={ZZ}KOE3OC;sZ(DL=TK$gnIZ@>S9%7ANvCV6vVslhVHNujjj)%)1HNf z8rAka%hq0K>i0NVx8%;*&7uCA{jVnL=7-82?t<~2r>Cbq{v`?NI<4}|%m~ythXOU?{`5og~<#*Fs z!om)PIt70&n4goR{o}jn#Qb@(9u>8o*Zo|QZO{F5G!~)no;t{1+cdda*snC-V8{5w z!e0g+1#j*y5wrPhYg%HqZNt_5)VZf?yrvaLS$Mzrso^oLo8~`gu;FLdjUUgee+ZcT zO!3=ZY^s`{(lxi*_q*}b{P3$Wkw3O%O%3<8=-K18DXj6;kwx>|EZp;(zjvJ(v+H}9 zXnXL|M|nc6rnxD^x(9Q-yM%HpWwKIF&cDWc%jC6XT8ikq14^;uvU$u6XV^#WSsxbt z%51m(xwm||G5v@4Z|dAv(*CnGT`Pp;>UTr<_y!TlYwx_R$3M<2KR)^L^Q(><-PF)M=KF?%3j;`InzbtRh%gL<<4CzYc#B{sMf@c!N*IkK=W-1JR z6MR9h3-ehWt0dtsL-!gylMjPw3S9efb_yM%l$pSHmyyYePChr@nnUHn~jO%vLx)* z`(5BG?S0bI|FLGZWb8$qoi^%&3E^ za#Iz$pS1jl-=?s3Np19WWn5su$YbUMsyLyuicOAaq>ICyW4oynAW z$G$ng78Tj^*|@3Tuw{7elH47u0%!(WR@Kj&5 z-N2ezeeK`Y^)4|Kx}E#gm+{hg(w^Q;wD< z>rQ~=m=AO4jg{HQew4?EoUVVG$$Rpm46kNr)H$j0jR%Abwi;evo;vDb_6^$P`O_yx zHe8Qsl6ofKXMI^mRc^oQ%j8{g#~!x?J|5_3+mdc7xK1R5KXa*>a=_xG$!=oqVfLp# z88wdg_@=N@XxgJ`_ZGe#j97EjDdo%yXZxZ(TgO0!&t4vd143l#z@Xg(iMDS z6vHDlX4%ULhRr9X1C`o*)#!SuyqyN8%uTa**k?D#X&e?^XP6|_m-qRtHnUl(Dr8%9 zs=3hQ*}a}st-hBZ`;0f&w%@B%duzI=cC*|jR_w$+A^*)^S6uydZjIFC>H7DkWJhlA zQGfk%p-y7li@j%mW?tGybZbV9i$D5-$yU{hUg_Uu9tE_K-L~6a5xi_8TKudx;pAz>?xfeTJMX7yG&)vh2!1W@o%&=0FHgT{ zNZ8TAhOpl5j4!P270Z7$zBrdXk#|vFc*u9_v4U5M3scmx#-miq~D`()?mS^xh6$C$O+? zg4@LtDzz>5c8UEIjR>?k5_-hOdvC(D{l{K@kN(-dKP9JaAWGsyLF0^do`-)VOsKJm zUwlBuZK}!3S@x&4D5xJcn-Xw5{K)*8bu_(P*Pa6jb3X0p&7T^0RM~HRf?)T=hlf>` zWZ1eZshqv~b-Udc;X|&!6h~VsE;y%c_L;cT6Ls|72ofp2Pl9DTneiX2L`?6UPti0`qtBiFd0AD{-i=v%%4!}qEM}A~ z$*eml(cly--p9)b3-QkhYgCwVvb7~n@T|PAb^KM9UsO80 zI$HN!$N5Q*Mn8Ms*QmRocg>;HH>YUVwePi@D7Y`moAKUqTwU%G%To&`y4x*^9(6AE z=UKt`Pv?8`ZWp>Uswsfb-DhEU;*MOTh_4;Z)C0aEaR&;+gfNxH0Wno)+sMKBVKj#o4frT!gx!= zPeIR0%~-A7`HEH&Z?5G9M)Ou2D5tk3D}G*J`9fMDP3J+;g&(?BYt=v9&lgZss}0vo zU+N{gH~HqX8&8ur9`H9^R#}-E(y8wp+@&uvePWW^rorNMJv+7pPqW)H{+ImYF*638 zI#hjKb4*KK95>zIo4SASj&c8t^2uM+9`?Ga#+htAkdw4`alX@4joZ_O=09kkW!Cao zqDtX#b)xsyKE3XDSqV0TJ?eF;H=!za>~*UpK1QQ z<(8H!-e@O${&91|6pMl>4~q5`RadsYk2>cWnJZZ{*GIWAji%W=skn4q(K{>NrLR3j zqUc7ZZC!3@4zGVzZV;;&^@_U2drf$G`;t);eC7!BS4a516HCm`f4BDdWOK%oe&4-v z(yxqKZKbF7s^*q0-T(N(IJcn3C$;c@x=5)vtdLrIP;#~E((E;@ed)~_!mnGRVy#-f zKYyDb>+zydKy1VDL7lDB&TS7_w!1B{jYnX;tH!fg3w(*Ib;2#HZ7Lrtuc}^7<840p z^3jH^3HuMQ`c7I1X#1;<2|D!c$CN8q=s&;CJN0;qcTKw0_3xj~)Zg)PW6!;t`P|?| zp^WF{gKOr9Eo1mfI^C@bxIUJT|Kur|<7dh)y*2PENtUTMG;*KYepM?s_*}H8`qTE+ z7IC4>1T%%++Jhxs7yQ(p6edXAzFXhhZ7Ac~b~m2Fb~qt(Jx{3H{!N=e%e-m|Z@^4@ znH{z6Z!3Egr}-V!-1d~>J2v*6v80dF=lLzM4-fF%db>&Ae21)gP-fuP`?p^$&pem8 zd9Jqd+%75QufML>o^Pa`chO6hc$*bkKmPn9Jzu+$i!2BH9_GJw``_~S_^s$cXO3qs z0Mfv%$#Xf#K4qM1&~dJ6gboU5piN#XZ55{v<fkga=$ zAA$>|Il6K0xEn1&P`aV9GkGmBPBHXgZiTu2)l*FiUu(k>P@T>_V+8%!Oe>x#8?{?` zY9*}SB@vXjH-TEB`Qk^OW?95V>n9Je(sn z!D%qf>DbMgn)Fa-X>>M5lO>D4s(*c(vm!WMhR6x3I60z6{5D)!4c8_@-#xM`hwJd= z-N-hn?mK_`nS+y)GkFKH$1kU?HyXwc^@38cQQfX8?dr7?JkV&pa+`9*hqWZxHzHvKXhG%T=^hI&?U=8EpE(r84F4$QbX9@*m+U7uXNY&_BDigQg7&a>xy z&l)QP?FH?vT%258Rjh4xlNVOxJR>}57aOvdEIBb;>&4=9M{;o|n;T-exgEFu*@uIi-tZL~hq_dwu?M>SZYMVyC-fS2 z8S2M`ZZv3*yWPnJ*B(TNEVAYCU-NQx=UlsQn>)EfvqN7UF{Cpw)MrN@UvtmRGQii% zVFefh*^h?oJ+~58ff1|*^2P@8XKTP1)`AIWapuMCB=^_-*5POW>{IION?t5+F*>V~ zsU*GA*3pdY2}HJzMbAYn>r^~06EouZ50A$sKe>;$@cb_xpM%Hqg*Y&8$=Qjp~ zhQB6j;o+LR|7aKs)!@3U~uwfp8V1h=LqUgZV%NSWxP+4 zW9cZ)b0lBOJ?LXb))z2ivMCO?jzO)C+E-AJvz?qkt%e%cY5e<2!uQVNTuo`DBrsrw zg%`#@XKhjcy5R@^{zk>(;5PK{zrWkapZvewAB+C)ZvWv&|L!6Gt?wrhbboErom6h*ii5@J{mvyA9WOiP30w5HDd+? z>lSwv9JE3Z_!W5M!y@Ombr%MX>Qo@)7D-0xFe(RW3n{=A<=) zhvtRlpkscg#!v)l#3(@-)X8|tOguss&wCo7LR~_P#Zoj8;pj|2OeJ_IIL(wnSHQVJ z@l*<3o)E{npisq#nM^&t8T38GYym~AX7OyOgn9QOv^qBnQ%Et1Uu*uaaO030pf(KB$=uG@8L4F^Pw8MSyaKeU6 zI>Dgu5L61eF%c&)PdXvZtH7jU%i>{DX{vbH%kbO@;vV_5h&AJ=EOO<0Gx06F`UJ6z zoE4#k=fFpuiM3A7mokPaKp91&Q5XwYJah^TmnA1O#$aoq^5Z$z>_9; z|DOgQmV_L9G+qq81$gWzJW>IZ|HlBtip2=#3`lYi{xuhJAaYKh!X~yFgK-qw5`&TN zzcCcah8L2Yp~xMGJcJ5f4fp>z45tqbLS8yeerNzPhld|yE{0#!Z-cK)lR}hEqR@_E zSW%d^?1IYMTv<-Dc(LFQe|1x2@G>$D!B*28y21|IYdPWVkiZdsQs?Y?#ZP?`*ieRTsQ6fe&jVP>942n2Y zoML1yN0)Qs!_J%BvkWJNd_y4jmg@ZKrsH_WQ8X!<(&MS)DJH~H>>kOtB|2Vd^8G~% zyEu$QLXunwSRxj7MdOL_SQ~%GrtlIXOeXqE=#cZpoY4~#$2#P3@O~WVlE=~9Isi5K zb50L){0_n9f6FgcRPdb8E0=uEl{nlYkMp_pgAsM(h?=~n#P9bn7*Q9FsEbC_VZ-(G z-{!d<-y@GPRh33|nwakS*LSqEm+0u~ahFq*HuU+1TWgJ|wMW!ThUF>ECMdGcVa|nfr6{4+qK5dE9ysUz48~aAOl} z8k;G|Bgii(Bqk~*B_@YY!|GT7Jq06$%?jJ6yH59+9y0gb+|;=Rb1O9)HM=#b`eXGK z^%t);UTwSDXLZ!ZjE(m;zP0GL5VM?VXJoh2F32v$<(^Bc3-2DKJ%)RneNXx3_%`@b zgB5~T1$%^D2rCckIVZ^&`j3IPbt;2N#V!V4kzbHUmJAvX1z!?8oNx26nB))W*jJK2 z!vQUJVC0W+JkH`AS21yLI`n89dl0OlY2W~u!Dg{JQ(`fxJTx9UXL2+)L1*&dIDwof zb~V_^v6r}016M4&BI_& zI1A0-VN&Q!I-SKDUVbVMn?l9$BaO{s4m}lu&Vz$m>^pfdv7x8MqBAHA9MteId2mP0 zV$g7~L*=31;dqzh8Gf>CCU(UPOn^$G@Gyp+HxG?-c*?@v7<3kUXcf@$#PH_GX3;1t z7L8|kjbb_2Gz#|3Oa@+W9ODhG7%U8SpE$B)Q<*$i5qKlvtR(VDv#{61p%Wdegu=q7 z0CIid7@tDJgy;+=i$=pzkVos}s>6pA@&JuN#cY^NEDD>#99oSmDhn%?#l(J^jrS7< z4u$bXLB8HJCXL0zVzcoo@{sQWJPZP}99p^9E_vAGK_r9DU^AF>76Wq~TF*Qb9y$*l zZ;UJ!73-ghiQs5ey7)B;n}WkYtVK2t&+x`bC67z+Jm_RM zGW^;Hn-MVlJRfY?c-BMX6&pVfo+ma; za@Rm^!PpuwblDg{EbKTjI)*nM>_xD8u$f|O;%v~^OJN5=e)y*GU@wE=GBmi^_=<@m zD{{l)Y~Cz#L&SkI_BlM{9*D*q9`b+fuXkaC_DhwNXU3nqG#11%6;m|E^x4=*Y|GjZ&blKPxAFd6gWbi8 zFCKVvIbZ*)3jfDKFH>Wus-v$?Z)$CD^%7K8e*QU(aVuLX=J`q656h39MSsKZdb{Fg zm#@tBYkKK$sA*YbPSi0&9q*>Mlh2N0%SuS}yBzS$unXQ9@=bbl%a@PS2UcB(*mAg= zeRWpy>aFT3MMbhp3$JZc3VL}+_}wfYPv!L8X(rR9e~t^9QF&#OQ3d|8R@8pshrEXL zMa2?R5i0d%FJ(pliK$v)f6nr68hFGTSK^aw8pC}urW!=us`ECd-9}v>Q|Tc z1>R_TdX9OE*U!;0!bh)`I+)h?7tpIa!j zxO0lTPhn5T7y2AFqs%_?*oR%AG3}~5)XQ`X{J&k=zhOqeW}Q<~lV1O{>$>K>;{4_Q z9WG;Ytref=Guq5IzS0$6M5`8mSEL@I7$BGDlxjbnX?g46@pZ5Jyq;!1iI4Cv49Nd< z`!#&Ag(@HpD+JK!>(WvKB)siH$Pr*k_b@{TpM!b zg<b}*$obfD|^23 z=JrgzlH#PmQg&SW=*{IU{%u#jh~L-s@~e-lJY?8;qWr?K7e)&sBW;AL4qS>+xSr4Y zB+xQyU;jYFEwjpU7t3V*PU8uG`hWcC|M92)$DjTmfBJv?>HqPk|Hq&HAAkCP{OSMk zr~k*F{vUt(fBfnH@u&aCpZ*{JzxsddAJPBg{D}S^j1m1mmW=5C5jLX#$Gj2!Kj@YkLdrAKcfG~(-HkY^hfmnkQ~wfW5$U7 zAB#uy|1ccU|3h#@|BtmJ`hO&k=>O3+qW?!6rwhnm{XZTI_W>FDEi1)mIJptS{bD%F zN7O(5UjOO;@vrsqr~k*F{vUt(fBfnH@u&aCpZ*_z`hWcC|M92)$DjTmfBJv?>HqPk z|Hq&HAAkCP{OSMkr~k+Q>i!@2^G42%JeQfgSq}x}1O5bTp}|Ij@(waGK1 zDU^S;#C`Jxf4hp?{WA+V+03^Ve{)NreAvB=JTIEUZFU>uvQmsZXafqVkoI&ZlC=L9B^v$b_K<8)I{Q2gyNIsf)C ze_PU>7M^%kzdg=-_?T z9KNoU@~;j~&ArZ(-mlM`ntRk>u$8pWx(*9pq}CBmua z3}3gW;+G_+=3YnV-7h&#&AqM-rC*s-e;&Thj70xTPTewm-IrPY3psVj@O4;>`gJ%p z_qr(d{VO;%_c|qq``2>nh~evo#Po0B)PBR)@yPGD=G0$@ud7kh@4%_K*SYBKcjMID z>rU_v?B&$l>p)B%@Z;3R!`Efd7zpOn-0LK48VKXm-0K#&4V>fD$A_;YaC{(+Q*-gwS>`?m+OI5oHL{i}gOPR;E@|9#*#r%oI03okNQ$*GycecDwApK|Ia!+q2B z2OBu`=;1!*R)fu)x_!8>`2N8TPF*?N=lk^FXHKm=+;{uh;4e;1zUCN==c)$r2kgT) za;Sb7B+s@dZ$o{eX`F5bIFDwyZ}SAsS?jpY@NggHxfD6hy`6{q8XHrTIW@P>@J^hk zM&7u6e~(ZWa%yfL-itU_jJ$FC;udi_Q&1?}KDEy|T_-3MZr|9R;j{m_eO&p8p*>dH za9`Cagac=K2E%<$wFx&)eR#O<=oVrxr{?wn^&tE>HMcKkC=tx5xqULzh%iolZMbjc zUE&<4=Jt_%L&R}vZePb=L>i~wGTdiz95stmbNe37pcZoKrr|z>E2y_QHMcL|HfklO zel^^u?;!Olr{?y}J4Hx!5ak}aT(;?&$eVJ0+@p`Q=;?Q*6`a%yfLtst5lr&by6YZZ?Z@5$+L`%K-W z&E(YFzE5?ug`Aq(hv^GVhf}}sc$M#19MLX7U%{!nnSvBmOlKdE=TmX(ZtOG3^9Z^1 z+YvQ+&K>#lf9}7nRnf}D4Q~L`xsPqYoXCCuzrF85X@wcm3l~byo}tKnOylrlxV1Xw zNA?%t*0WKQZ*$z*VMP6M#N(53-+#LdwvO(uHr8h7P^4h3Nq5y@nYTn{#x*({{6Mk9Ii!iZs0ULmT&mA;MU}p zPc9#~CLjNMJ$ghfFrs!rE%)2w{ZNyAXSmbzKuyk>6p6|)6$t_>zw|Y0e{(b)B zd5yoTxtSdeoZ zNFD>?`0tiek3V@#b+9|_@Mf)@DqVD(`83h4*t&DBV`pSy-RJKbt+Z8Q6k>6>D$nUx zwEnqc1*SE-$##6He!^~`->%DeP&od8dIC*;V(Utb8)C0&)aHOEH(V~fcpflqtWcTJ zOM7QWgKB~2;WduCuF7X@D@&J~JyvSd6YYhg*A80UbTz3I?f!1lqflt_?QVllL#N~C zs_q7}Z^jJDUG#C8gk>Z5Ddck|h0xwmEXU z=k^U6>O(hwzPqD`i-og-qB+?b%tG3HrIVwL`A~a0%1zw=HQa(XKyK?zPzrD1HZ;Q> zXn`_#2Y2B;kbgk%0q#L7+=n)(fOa6?rO9{N2ha&s&;`}d4G-ZXJc3W~7<%9d^aA;= zPQEkOz!!K1U*S3Q!3+2fbwK{{LOqbR8`HrNh3z!vPl9vomNID!*619{FN`QG6QZr~2PfqcL4 z1oD903+WAeU@z>0{csSBv9COY^aVdS4E{iV5D!2efk0S?`Y4j@2@r$~h7f3k7BDf7@aA!F0 zBJV-@aNb8&Ld9@CKvqFDJcLK^7@ojWsDWot3(w&N)ImKoz)N@qui*_e!CPpC7I+8m z;RCcn8?-|QbV3(&!zbv4p5gqA`~qJg9KJy@^uc%d0YBjv^uquQ0tM>?&46&`F7^vR z2b>m-vyHJ|0Gt|()0?qh0CY>Ci~_U}qKpOs5QH%x1i~N!V__VKf*6bkagYE>kb(&? z5v1WfmO}<93vw_S8lXKBB@4pgIz&J=L_!WkK`xwzJU9dSa25*S z927z{6v2780T-YcV&Epk!Y#N2r4R?VAs+5P0+c}_+=V14hh(@1DR3WBp#rL*7M{Zk zsDpZFfJS%;ui!PjfhKqh&Cmkx;60GXm95YQ?a%?8&;{M_8OZ1V4f^0a^uQ1J3H`7K z24F7?!aktjpvMT%+JUkfaPBu{4d9e_iZPG}MQZ_P%u`GNjT9*B0F4+Z>j5W@Q#Js3 zp8rPRg-yT*n_(1e0e&!r(XbT+zzhUoI*frCAOvb44C){PGhr;uf^je#L}3ny!CV** z^FSQtg9I!9NmvL{fEHeq39uL@f(A%~CQJe?kO6Iwg(V;dIxrb@K_2vA3M>T$SO$uq z4^zPalwdh1!wOIVLr{g4Fb!6LIaq)tSb;Uzz&6+pJHQs~z#bf6Cpdx=IKwV*0atJX zci0Uc;0a#f4SQfO?1TMq0DRye9EBhVhGP%{$KeE=gitsIVGs@x5D8Im8qUC3I0w;i z9xgx(#KJ|m1aS}#36Ka$kPIo13TcoIm*EOzKqg#;Ymf!kAscca7xEw<3ZM{*;06@K zO{j)jPy(fJ8}2|E+=X(u2lt@@D&YZC!9#cikKqYCg&KGUweTEXKpoUW12n=*cm=QF z4K%@9XoePe2k+qnv_c!SLkDz17j(l%_yj%B3!mW&e1&h&2jAfb{Dfc74+Ag=!>|tgAx03dxeCS{ zl0aTWQjwRCG-Mo-j*Le#kO@d8G7-r_CL!6#WF!wV1<8v{Me-rjkfV_4NPgsH@YASWa5BBvl9AXShtXjI~iUkt_~ zcOfq#U67ZMuE;o~8!{g0j!Z!AMkXRXkV!~SWHQnVnS%62rXu$s(~x_S>BxP^%gFu6 zE64-L45SY-6L}DM6?q7G4e5)_Li!=EBM&39k^aaWWB@W3c?6k<3`FK5k0J|@LC8X6 zFtP}F40!_?f-FWJN8Uu9K;A;0M3x{!k)_B}$lJ&;Sr#LdGH=BQGMKATJ@GBIA%X$av&4WCF4l znTULjOhUduCL`;RDad+cDzX8YhHONpBVQsfBVQq}AYUUhkZ+Kg$R^}fXSS&aOM?1NA69eUsg z^uka048PzD^h2N|USBu?53voOL_R`>A|E49A)g?_kWZ1}$Qon>@)yhV>4ajI@Bl0}*CGrCD6*30-8X1dxgS?1rLS90?MaChUk@3hDWCHRX zG7m_7O;T_ zc!3W_0Y8ie0T6^SAOyl70%Ktuh=Lf52XT-9NsxjGFcG9-63Boo$iZZghbf={iZB(F zKp9j(6{f*-m;q{_4l`jE%!WBI7v{lySO5!Q5iAA`&;%{eh9#f_x}XP3VHxOy0W60V zU>;@0;1TXN0J+K${!G1UZK5!5YfiL*MVep3lI0Aui6oMcajzI_< zhZArTLg5sIK{%X;SJ=E_kg;$PEsBDev?a1(Ap36#QZxC3Qy7s}xt+=mLNga=Rs)$kA=!DDy=PoV~$K`lIo z7f=WF&;X6_5?;Y;cmqxF7Mh_2-obnL0Ikpl?a%?8&;{M_5k5f=^ulNO0$<@9^uc%d z0YBjv^uquQ0-OA$Kkxtnyg&s$pus4h13xfeG%!H`SRe+1FdoK$I0%6R2!kYufE0`c z1&{_sm;_Tn29!V+ltB(uU^1wJJWPWrFc+r7JeUFVK@ApwIxK{lun1;xNdgl*si z+u;cKKp-51qi_gG>C(Ah=pu5cgRpaR^X z5=!AYJcJkU22ed#Rc*1w^f*-IKe!@QZ1-&3Y3Co1v z4^2hdV<;#gTaaqVm0%9eU;(?p5?sIvT)`ULzy{o58|;Sd-~l_p6Kuf??7$oBVGlUK zUf2oyz!CO?6C40v@PlkQtQW|EN01ATArGEFK0Jj2sDVOw21QT{H{dxG!wa|xb#M#n zp#&PB6dK_+yo5XO3d-O$+=Vw#4oz?m-okxoh6-qbN_Ynk;5}5q2dIWtApbmQIuI}e zsGtTkPzO591P06kCd>vF%mFsc1s<3Oyf7d5U;&JRg}@JsU^FZS0nh+J(1bCd1wx<= z!mtEHKnKQxE{p>`5QU{62FqYP=z};IfCMZDNmv0=UAPq(^308v)tN~dt z202&@lfeY!VI53?^`HP7KoK^=RM-Scuo;wL3#fo8sKQp524-Lm7GMeX_&v83a-S5o zXEIT5NA3VyumgK=fSs@!KX*j#LOLPQr=H@BT!VB$x`I3GhW(&{?;k*FB7Kkt;Sl(O z9~=gM2!JCH2uC3Zg5em1z;QSMCm|G0K^TNX1Vlm)sEsBDev?a1(Ap36#QZxC3Qy z7s}xt+=mLNga=Rs)$kA=!DDy=PoV~$K`lIo7f=WF&;X6_5?;Y;cmqxF7TTc$I-v`C zpcga~FfKqFmVgfEf*ve|WuOlRupCx^A*_T|U<9jS4H&~(FoAWj9yY*6*aVwl3z))I zFavY2086j}Yp{WBupM@QE!crQIKWQufrD@ee8CS6gFgho5eS5%5Cp++3_{>IoPd)M z3a20p!XW}8Aqq~z88{0vi5RmW2a`b_rhoz{!c`zW0PeLf1f(VF&C^!vg;4GYjXgCiSAO>RLB3yzvh=&A7gd|9Y z6xfFOq$0N<(~uU(bfg3FGSUv2fjp1QL6Rfwu-@(>%i$i}hYGO9&nuA+pbDztAv}V|@C2Sh4LpNd zcn&Y14(g!+&Jy@6f&2=S2C?0N3}}NaECD&tfytl?@}LJ(U@0iTGEfA4mc@IQj zGDKlth{1kf!W4+ZR7k)yNWyeT!3;>l{*ZwKpbQR#4n+nzElOR(F2GGL$Z1h&9d-k1 zNt4r3fpCMI7WKSgAaJ)Na$3|ChX_!NoP3@^KF}baXOIsx$mbd40}b+d2KhjPe4ar* z&>){@kPkG-=W$aONJCG^z{XGpo4{b$6o$ZNum@}oL!lS!3EX3ce4ar*&>){@kPkG- z=NaS!4f1&g`9OnwoZW<8RP>E@_7dNK!bdqK|atRpJ$K{G|1-}{mA zWRT}F$R!!%x(xD32Kg?7oRUGl%OJ00kn=LgEg9s!4Dw3`xi5nplR^H=AkSow12f1q z8RWqX@=XT0FoT?vK|ahN?_`h@Gsry|U6PyS) z!%1)poD8?ZDR3K{26w>ea3`Drcfpx(H=G6cz}avwoCEj4dGG-I4jzQYt{gj90FS{! zcpQ#{Ctwjg3CF`zZ~`oY6X9t%37&zI;aNBZo`X~2c{mMTfYaecI0IgSGvQ@83toY< z;Z-;XUW0StbvO^+fZxHJa6Y^R7r@(aA-n^>hj-y3cn>ay_u&%w04{|O;WGFLE{Bg{ zF)W8AumY}tPvA=U6t05L;A;3Bmckcs4SWgL!dGw|`~j|qKf(?0HQWf_z)kQcxEa2M zTi`pm6~2et;0L%J{tT15an8cNa2V_dwJ-(hU@FwZG-!b7a5&6>BVd0x5)Od*a3CB7 z2f@*BF#HB)!ZC0N{1(dLSeONkV8H^gVIeqh9JsIuJUAW}Z^3y4OW-lM0v?Ae;R(13 zo`kF6DOd{2;2L-uu7zjdI(QbYhv(o1cph$q7vLs%5pIT;;1+lpZiQFiHh2|ohu7c^ zcpdJ9H{dRK6Yhq$;2wAz?uB>YK6n@IhxgzCcpn~w58xsA5FUn);1T#3hE=oAU^rMX z0&Exw4vYd9MuP`qz=yFg8^%EejE73t3l4<|Fb5_=73>XjVG>lsK2QUbVIJ%YhrxbO z3sayDrb0bTg9exmhrdUWU8i6}TH-g?r#NxEEdriT}0(1Ga|{>;Pfd5sIKc6vIwX0y{$~ z>;fHOSLg)0L1!2MU0`?U3Im}V41(?ufgTWrjUWa+!Gw(=4x2y%HiaZ?1}WGa($EVs zumzOCmM|E4!w}dC_JBSx6t;#vVH+3*+rn_@3nQQ(jD)+Gnn}a5X}6`}mUdejZfUor;g)t=8g6N~rQw!#TN>_v z!v`Sk_J{B@d<2@B9?5B8KnDmz2pBp$FsDfEKPVN0MJ2{hcjX}5+xuq|u@{h%*w58J_xumkJ_{b3i_8FqtRVRsk+gJ2*; zVLV^Kq>VuW;*f$QltBiDz+e~(d%!T*6Gp&r7zHC?42*_xFc!uGXHuZ$-iyb3!$jBz zCc(Zi8K%H~Fb$@{444iF!2WO$90)VvU?_(}z=B!efDInFFdKZRgbJ7ghr(Q_f*R0e zeHhGxI;e#PsD~rqa5xI)!*Aed_$?d*$HEl$TO+NstH;qUgyUfmoCGJrX>cl>182kU z;BWAIxDYM^X=1g8(^~E_+P?g}gmy7p30J_?a1~q&*T7A1BistNz@2ah+zofZeQ+;4 z1P{U^@OO9$o`hw&_8Hoz;n`gKJneJvLau#@_Csv_HU)x%RKL ze}R9(Kj0_$7yJkQ4Zpz8V6bo5KnH27Lm+LnG}fh10@7AXV=Zm9G}h8qcLiyyrLmT_ zS{iFD*eepakQF%QLp6ch4k6|!~zignw34#jR1!>OUY zgug46UCr-nX)onxc@{3GRV-XF@kZLE{JfA>F_`0MujA(vX%+K1iS}lGKACnDoTA_J z^QpAA)1F2<8qR@x_*tO`(WOB@8Kgm%7X4Nz;(5}XOM5QO`8goXxwPlfoJ)Hy&AGJa z(ws|sF3tG`AkFoKAkDcxr!?mm!2@tHJO~=MAA(Ckn)Ay*n)A!yQCJMpoG*dLA+J4G zEA6>7=+d5F4bq-31!>Q(0cp>#1?B3l18L8%2WiixL6^o}T6<~irL~vFURwKCK;QFK z(C2>>wB5HrpXY6mcKuy=2i^y1*FS_0;A8j*R={$QW?kBKY1XA(muCG7_yb70F3q~M z>(Z=CyDrVTwCmr4_SX-f@Be4`C;SMNf9Qwfs*bYX*_Am-| zfYGocjDh|z7IuPhurrK@U0^TR6(+!LFcAj8-mp7Nf`PCP41&qPi5qD44ch%61XCak zQ=tf^K`~5+5|{y{us?K!1E3Qe2%X^|=mG~rSC|Ri;1K8z<%a4MVvr^9J*CY%9h z!&z`HoCCju^WXwFAAS!P!o_eATnd-K3?IP?SPq}UC-6CZ24BJ#@CWz` zzJ@=-pWqw#4!(sS;CuKH{tSPGzrf$&Z}3m}2mA#8g8#t3;TQNB47AK0APgZWh9W41 z5|CzH+I4BxrCpb1UD|bN)}>vSW?kBKY1XA(mu6ksb!pb6U6*EE+I4BxrCpb1UD|bN z)}>wV2Yq3C*ba7t9bhNu57MklyDrVTwCmEWOS>-3y0q&SNV{%>wCfH?yY7Ot>mEqE z?t`@Jvq9Q*Y1XA(mu6ksb!pb6U6*EE+I4BxrCpb1UD|bN)}>vSW?kBKY1W5vSW?kBKY1XA(mu6ksb!pb6U6*EE+I4Bx zrCpb1UE1|Vkam3mNV~oeq+LG_q+MSG(ykv5(ypHX(ypHf#f-z!uu97+4Xd=Q(y&U) zDh;c&tkSSb%PI}4w5-ywO3Nw@tF)}ruu97+4Xd=Q(y&U)Dh;c&tkSSb%PI}4w5-yw zO3Nw@tF)}ruu97+4Xd=Q(y&U)Dh;c&tkSSb%PI}4w5-ywO3Nw@tF)}ruu97+4Xd=Q z(y&U)Dh;c&tkSSb%PI}4w5-ywO3Nw@tF)}ruu97+4Xd=Q(y&U)Dh;c&tkSSb%PI}4 zw5-ywO3Nw@tF)}ruu97+4Xd=Q(y&U)Dh;c&tkSSb%PI}4w5-w^OLHu(u{6ih8cTC5 zt+6!6(i%&1EUmFL$Bn#ZW3JByw42f{q}_)0INE-+i)go_JwDf-K)WkHpGa%doururiyTa};00zN8h(ZKR zh(QA4kb)#+APs||4EBH_uqOH%x?mU=r*LlVJ+% z2h(6G%z)`|0PGJ3!GSOn4u*0#1T2^Z4%py<3$ww8N~nN2a45`$DyV^KI1J`N9n?Yt z)WZ>QILwD5;b=Gtj)C96vG7}10F7`QEQI4>5u6Aoz{zkDoC>GF>2MmH31`6Ba2A{k z=fLmaJUAap=w~jVEv3DXwj=HDX*^ za1-1Jx4_MC8{7(a!0m7s+zI!<-Ebe=3lG5k@DMx*kHEw57(5D3z~k@~JPA+3GI$oA zf#=~lcoANJm*FLN6<&eY;Wc;@-hj8^EqE8+f%oA(_z*sTkKrR&0n6c2_yj(O&)`e= z0{#GB!PoFd_!E2s-@&)=1AGrZ!k^)<@E7F8Tf)ZB8#aNhU{mM=o59x57j}kzunTMlyTbOc z8|(lBU`N;;`oloj2?jv~(h!9V#GnjJ7z}Y30twgyk{~T^3igCyFb;;pco+eD!AO_@ zqhKP8hP`1jbm4s6m-YbI54!U66xxGeDsft$Pfal?Gcn^+%_d#0Je}J^8|AeF9k8m`6 z4brCm3yy)Gpb>iT`4`Y`M7xl-C+%^x8`CbL-Gugd+D&Ospxuo2MB2@1PonKbdot}7 zw5QN+NqZ`7Z`#vnx1v3rwh!$Yv|H1jNxKd0S+v{Io=w}A_8i)NwCB=pM|&Ra_O!pF z-GTOe+8t>xpzTk4A?;4Izo*@q_9EI{XfLMSmG%k(+;FvOgo5n z32lV-3fd^`m9#P1t7uKyt7+r3OKB6d*U%Xz( zLVGjq9<;a64yC=7_FlLR?t|N5Pkw&~?J)kklXf`m-LxZU@1Y$@`ylNo+J|WsCwZK9 zG(SHmUWIqzHJHHfU#Fc&`xfoqv~SZ+qFqk= z6|8_iz$dT|zyFkWGVN!y`_g_+`we^n`|)RKR?wgrne4I2z`_Z=ec} zfw}NosD@*q1{T3_@X8L1FYqed1Fylo@H*TFZ@~TVCOiOd!GrKNJOuB+!|*OV0`I}2 z@IE{SAHd`AAv^&e!ISVYJO#^P8LWV(;S+cUK80uDGk6X@hv(r7cmckI7vU>-3H|^t zLxi~@7et_mHfUoI0u#azhayNoF(jb`QcwzM=m;6;1ZB_}216GZ0$pJb=mtZfJM0NP zU>Ix!!=WdPfQ?}!YyzWTQy2}K!5G*a#zHR`2V1~+*b?@F-Y@~Sf{D-v_J*xt5^Mwe zz_u_M`og}@5B7uYU5u6Aoz{zkDoC>GF z>2MmH31`6Ba2A{k=fLmaJh%YPhu_16a4}p2m%=4*Ia~%yU@=??SHRV965}t-- z@GLw7&%<-@BD?@E!%OfgyaKPoYw#w#0dK=w@GiUq@56iWA$$NI!$+_Jmcys;348-z z!?*A!_!0gL@{TWNZ7A>f5?Xo3ub`E8Tpn_H$K@fHcU&HFdB^1;mv{UcT6xFiA(wYt z9&&ldwqa(TyZrImO5Hd=YdZ>N=a{0>@q$M2+- zcl<6|dB^Xjm3RCeT6xFsrImO5K3aLl@28b_Tpn_H$K@fHcl;q*dB-27m3RCRT6xDG zrImO5Flom3Leoa%sb*5tlYx8u8IE3ZxB}MqJu( zX~d-s*E(3*aB0M)4VOk-+Hh&ar45%xT-tDH#H9_FMqJu(X~d-smquLLaB0M)4VOk- z+Hh&ar45%x+yfV+4VOk-+Hh&ar45%xT-tDH#H9_FMqJu(X~d6*MIddsG~&{ROCv6A zxHRI@hD#$ZZMZbz(uPYTE^W9p;?jmoBQ9;YG~&{ROCv6AxHRJ1v&P>Jc7z>ZC+H8m zz|OE6>tAwFd9a|SQrE2VH`|= zycl>4QIi*a1KZ_{Ulrf=fm&e zLbw<%f=l5NxEwBnC9oK-ge%}`xC*X;rEncw3wObta1Y!K_rbmJ0Nf7`!GrJ!JPeP) zqwoYg4$r{T@Ekk~FTx8Tt@cYGt+q7V(rUj3Z^9e!HoOJz!aMLjya#`Szk;;pchIV~ zgK9jewu5RssJ6ouv~{$q@u1ocs_~%O4yy5>+77DmpxO?q@u1ocs_~%O4yy5>+77Dm zpxO?q@u1ocs_~%O4yy5>+77DmpxO?q@u1ocs_~%O4yy5>+77DmpxO?q@u1ocs_~%O z4yy5>+77DmpxO?q@u1ocs_~%O4yy5>+77DmpxO?q@u1ocs_~%O4yy5>+77DmpxO?q z@u1ocs_~%O4yy5>+76G?o=dA55322;8V{=Npc)UV?VuVDs_mc}5322;8V{=Npc)UV z?VuVDs_mc}5322;8V{=Npc)UV?VuVDs_mc}5322;8V{=Npc)UV?VuVDs_mc}5322; z8V{=Npc)UV?VuVDs_mc}5322;8V{=Npc)UV?VuVDs_mc}5322;8V{=Npc)UV?VuVD zs_mc}5322;8V{=Npc)UV?eGch9ki+77DmpxO?q@u1oc zs_~%O4yy5>+77DmpxO?q@u1ocs_~%O4yy5>+77DmAfeNNtQQR0gJ?sv2h)aWXVMnY z9zt78TTWX-JBxM`T8nm5TAOw=T8DOXT9>vLtw%fj7sf6a0o%by*d9i~4lo*agfY+` z#==f84t9p|unX)3yTSz64JN_>*c*0-NiY!hfk7}CBCsz+VLyn$6fj{b#9>l2nOx05Q5zx38bOU)2x`Vt3Js=GmK?Zt48Eg!LVH1!SL7oJ85#&jb7eSr`c@gAE7zSIw zaM%(?KyMfcTfr!hCt)kSF1D zkSE~_kSF0wkSF0QcogJCcntmskHgpS1bhQe!k^$N_!gGIckncP56{34AWy=d;W_vb zo(FjmUI2L!UIcj&UIKX$UWR|bEAUTv75)XU!B6ly$crFPg1iXwB*=>(PlCJ%@+8QM zAWwq42=XMziy%*eya@6n$crFP!eWpoVF}2SATNSE3GyPylOQjGJPGn5$de#1LL!UIcj(! zUIcj(P?@*>ESATNSE3GyPylOQjGJPGn5$de#1f;P?@*>ESATPpVkQZSI$cu0Vd!UIcj(! zUIcj(!UIcj( z!UIcj(!UIcj(! zUIcj(!$Dqz5g;$ZNRSs{6v&G(8stS71M(t_1$hz1fxHOg zL0*KtKwg9iATPp1kQZTZkQZSR$cwNK$cr!;ESATNSE3GyPy zlOQjGJPGn5$de#1f;P?@*>ESATNSE3GyPylOQjGJPGn5ECzWImVmqn zSAe_-@+8QMa1}fX@+3S4OW|?22INJMC*etuCqZ5Wc@ma^JPA*OJPGn5$de#1f;P?@*>ESATNSE3GyPylOQjGJPGn5$de#1f;P?@*+qqD=&gP z3GyPylOQjGJPGn5$de#1f;P?@*>ESATNSE3GyPylOQjGJPGn5$de#1 zf;P?@*>ESATNSE3GyPylOQjGJPGn5$de#1f;P?@*>ES zATNSE3GyPylOQjGJPGn5$de#1f;P?@*>ESATNSE2~(KL3jKR9#C$OO zkXSu29^(7@r#OE{FhJVH{A1}}qzTc#aS-Ki`ZpEy9Q~UCopX;5D0n=a#}D&<`loGf zl6y|mV}8y*&cCmoGXgqpoBd3BZKs0AoeLg!DR|tq;BmKt$K4Aa_b7P0p|`(t!F%me z@OamP$Ga6g9#HUj_kza*3my+Dc)X#vUs3R0l?9IvEqFYq;Bi&Ku-h6*U!QA zl6zhL`qJ<7ugyP4Kj*K(4h4^OjVyt}>nQ)){PXp*aF}z;rpIUig^iPi`29L6j^M6yD|C{<7^%444_*i;2Y1s5nkJZ2AA4@Z*f6}NG zK1bR){hQWvqu@RrAwDP4qo$v=KlJmh^ffa#nPqI;YkA*?w(Z;RHv{?(Dvr!DH(R_s z{*S9>CA%(NoZRN8<;e~|FCXzA!y4IG+Hb7UdBxZrx-A)ZL-&4r4cemLguz>`IPk}9 ztb-!)CC)ZhKkxfPmw3bG_Vf3tS>b(Nw%-kywcD3ohE-m6Pyba=1d{(O!D_#6j)^Vy1nU-`DhkS1w zTdw@T;!S3iH1=6sy7{(!JKnv+uudHYEZ%t7(&ZaRZkV-choAax-tU*?n|CO(dNr1= z=+)SDN$wn4*wf#Gk7)IDA z3Kf@@hB|ia6zW{uCDgrWBco?%J{3uTc6^sJ8o<2U>sUBCsZA}C45`x z!O+X0S3_@feY4YBp|?Zt8Ow`TguXDoEcz<+ZQt*U{t^0D@lQtAodyq`w9lEBU3U4= zr=ENM6}R7i!fhp`osxSDo&Mu1uNG~(MKU#g#)v^{Q|hdtu`Gm+VlqL($G1<6S0&<6Re|I&I#$;}(NQXTna$PLa)v`-QhE-l~7PXhQLz zqRyqAN{98`siAZD# z?D$l;J8zs}+XIR^H~wwQ(!t@arx`tB-HyB1Z|Kta<6#yvc%F%Nmy*R2&~Lp(s<@b69bg(oUDWwM$>CZpnWZm_3ZG zOS%_zTyWaSMRSU~g*%mQbmpwa|AZIZS<Tj#ot^EMlE)TUiG?K-2= zmW?Ma7#lu*M32oDP2RSor18z&iih?y=ItKtT@+d{Y}=k?#m0hHc5QrXw<4qQ(Ih)- zdE?)AnOM}hD0E!UQ4{xQe0)fWQ8cZ1t9WQZ_W?z2*Xf-bZ%%LBZ9q|{(opx3#*2=7 zH{3JaE!_BC3BjlyU5nCu`JFosC<=A&w9|t9J8m8B5*}Q%4Tq`mCls_sxVX5aBve|` zv9wdq&V9OU*>%fq8+Gs6qiCb>#v5+4j(H6#*;ohCLGWvwJ-Mnvjx6tlg1{#r~ zXeee}7rMUahK~OV{Z#yO_?J#M9XbEh)31ok*#Fei&g%1F_Z|}_{`BvGgZ4alX89+J zPCw)9bFRDX{s*2~_Uv;XefIe;9g2cWB2_kckMVoWTyzG1yz~ACmOb~<%b$JTq3MDd ztSjaa*IRV<#g{(&(#zd??ou{*^!OPE9a8Rkr=NWtuXyU&k3akT`))l)k9WPsMYlir z@FQ=&{rwNe9e?UoOCNsZsi$9l@BMKXKJ?Snc;?wxUVZ1?FMs}}L*Mf47Jgi`a8$>wib{GexUqZV4aI#+7xW2l z+0iH(R1_~N4I8B;r9C@O?y+&{w9;@NA!3;z>7pmg(2TXfPXcPJN1 z?~(&bcPk##c|Z{-ML61JKvD0KF5$)-`P0Nr8~@UANVrFMXmPsZZp90K>A6M6K|Oa5 zZ`ZwFkH*uA7GAV@m(5N(uXs@LV9u{CIyFALU47Taw|XzwsJL-Or$1j7PIX#v@TQIT zc5M7`(;?x`CFzc1I(99o@3Kw!z@h^>H6FJ`pU#_inpo6$O34jZb?sFYT~f5*z5b_hOpeWs;^tAn_l&` z=l4CztF7U0`d5_0qupbVetXQd>bdJ)o&LnX@Au5MI}FRV2V~n}XJ*@zp2)U`{v&7` z7Y)?%pu;O0J3+hX?F)j|d+|lJeajbzM$mHS-IUrZ&g(swcG%~aM6RGcYnvw@e2X^T z|F3hpj_lC5JT?D`;UhaNe&_fZ@xw=UcxKYzd%NBa5f7-V#{+;$ssHobS>vib8Wz9UV+L~8c?j2cQ zYdQ5bwdJ*S1COxk<{C@C4iVJdg16s!N_}l*_3T~x?mo2d=p*aB+Ui=*4-IeYrDbKg z4VCBr$_*4NeXp**tgON_W0vhC+(g9Bq@s=)9#B_d#mdU`|3tE^Om{)6_3G+^A1eG< z%5&{l(u+otk(A{Xjo?OT9?!0-bkx+;vdy}B%dX<5!x}1`IoV$oJgjhBD`mP?(s67z zYDS{P;~T2$EZ-}ys5T{15FajF~UmX-Nc^)c6T^m%HndT;jpvNE^Unq5=PpK5A3m&@xa z_`KQO5Y2d2Dw4@Wt#~{dOGisbuhW*iBRNidpeQd+B-2*fx2;$*mFPHtkM4Tq+3)4D zQx31JtE?}ttk$#Re$um@n4NKBu}Iv_bV^xORW;d9Tvj$jcb4nRhaXy2R$o)j7x!u% ztB!3{q|>puZ&{x0`q8uF$$Fq_#D`lHzmom3%Ztg=g zKN^+$-H_pYl>DD7lFEQQeB6%{t($C*YYq1ztcOX6LH(JT+dBgb~0*q zTbHw7E+<`iea#%Nx{ggHTsskuxhXT6NqPz2?!G9L`wC7?Rh7PLjh<)M*Lr;C>KYw} zaaOfk~zwOCSq*CwKgA~ zJ(IH^gU4lMQ}QSJ-qt*Zhx||FeC}F(jEL)6ULxivtW4Z;9Jkl-)+gpFd$#gy_fnBa zW?autc$tLB|Lyn|?f52UJdsSK?WAjFlF_v3Z8@^_$5_qvk-Oe2GATd8zDT7_Cmv77 zoZjvDAgPp-Oh=QkSTY_>#Us{Mqt@z!=+l+gTeHg>YAe~R(PS!;j3p9wDi%w#bNke1 z4@`^xDL6hWcTmBvr{oXRn))Z6o$bhUEMsPxk=QlkHlsv5x%L0%#hh{@sfcGrn7o;u z>ABndZ|(*wznB~mqpw) zJ+I&Y=21zeyi6<-jrpmVYdXHY-H`l3rEmqr(P2HoqR7%6m&=0=PSd|s+>T@t%qE$) zC)3H;_WS3$`W9=F3ai$0>FhOq%`H>(ko(0mjhgMT+_0+3kEpD#U>?A7!KqN+;U&yO zES8AcnM5R$_I4Q4_UB@KR8w_03z!-fCd|n=MZ9V!_Yv7nCKZo+rsa5^nT|#>@g0ZI zLp7}ms%o+)%EVk-&6h5BYn%q%R9dh0{B)AOJCX5YoNS5yL)-oo`9)rSaaW%0SS!*I zH)*m+i1?PzQYp1lqVU}{^$SL`a{Bbj+0~w#Tbv}5PQ*(3aVP0Ut%McZd02&2S7Ecv zWj0xB9Z^=cpLN7kt@MUW9iW8)d%>$^FVuQ^A|Kp}MPi=G`5p7)>6CBpveGcRn(>Qq zgH1RY*Jdgk^&Bg$t8Le+A=!h=MagAoxz;=$a2CwfNX~FRWc+|JLv=kDK8^KXWj#;Q zi!7GYWo6@YkNDUO`Q?6173W4pB;m)+q!~}gqo%{kbhk`fXHsr;>(*BKTI>c(-U>G! zb?i91+2oS8oy>rB-djvtd@GgllU6dF$ym44|lelSOl{8sn^I_vm@?6{UBWu5dnRcXOcHHKDy)?7Y=sNG<1am0f z-;Hu9xE>wFgzV8>Rj^<-_kM3!DONxXMHgj~xuKc%;}PFWW_&hGphSTXe=dIwwwRs7 zG|(xrGt2os*HsYIsIX%`XGxkN*-Sc?m5#6dUNCj6Gm*HRWciRoyug-&ulNF(XP28sdQL2mwQ~^^Vla9ZX)Vu2(Azp ziJ87GnSW1`DVsphLIYw(#&Ety{1*| z5Ytju7WESJ_z^}#Kf`=)kI8E_WzPoL@`Dd&tXt`1d&~-p7-8Isn~8YZb)%`w&~f>$ z=5Phsrh85>4m9_@HS_3l-P#&D=285gt04PBg_DZ{P_4> zU%jgFCLf%h+d#~_=7?y7Z8&k3DalyG@`#d}>C9ec9-O?ICzV$d7}tz>3cuD#t|`-`;CEc-%? zbUjzc-M2a3@r-LSuBW5+#PxPQrc*J;Cfps1nQ=c6^Y-3*?T<;2EnwC&j|gdbuIGrG z@mRu*x*m&$XfiozO6$$7rh5&x*Bn%CI@G?;Q0#K$q%0@lJLW#=wht4_$ZT>XyLw^2 zxvW}z)}o56IF|2D{{J#OF{!s4KayljcRAH#`?h01<_aN>6ODQtAJ;VZyV1yX6fNR8 z>p$Kc1fi!Zi$ajPjUZ$0Pn@6GR7)`Ftw@;U8d7Fb5j~H5#gwsaAE98{O2UgJ9P35a zGIjGv9%xZR->)@-6StxS!=jl?j5%yPHg%or?u^V(QBv*tx z%!Ahb%7~IZ@EOFIpQIv8cn@CpO%Uv5l0>GJ1VoBx_{??Rgr!AEByN$aO(d;!;*gal zfU7=NvPss~$HdBbNk8HE$yADPKsr-CuJvJFP0z`E$g}3M5Y#o~Sx$;+g6;TGi#%y+ z)&?J*h(TDXw3m#T5ucNl-f!i}>ly~cmLp+XV_?*cq@%HDI$}oC2|t>$|8IAR97o@0 z2_C06iDk$SjBmS3%*T~-fw#Ks9AU2KR$BRviD-cG`A(cAUM$5hrtBmuz}$RUGXy2G z>Gakrv|l(Y3Dy;wZLr0rpgt!L^HVe7unviMaU$9UGjpe=L2)y;hPUTYxkCr0?lzt@ zJ(iCi;T4BW05gi*`vi0K+y@J??X@1+Md=wTqI5#O?YeX-cFK$=XGe$d?B+F2u-qTz z*$uNbAJW>t!ew0@OS!hqbSO#qup(OU*@B+6oUsK>hi_F9EYwQ~3_4cIQb2$hebTMW z%@l(Taxq#wDQFaj&d*p8X3VXrRyZ_J9+3A$Nf1pCn{gwoa}V9Qyu7xduHHF_%hrm} zC1$+1ory-HGYLnO*SZQ+20LKRdYh^d4ENHem54>-sic#zs&*|55%4$=G6a*&idfW( zfERHi2`e4R%uQ!^Q(-sVVmZ~+!KYo;714Mk#y*RroJ95D_P&z-y=D!Hk(NQAU}xtd zKrzM{KOM^uQ{s>$y?HB*daLOUTTdjj{URN<8AVp1gnBv_O&zul<8i!sJdVVym_@7? zK}Q-rOR9Dis-R%5Q%A65u9dx}bKyG9NP1{9;j^K5lEq-euPa=}*@THDuo+P~+l(C< zXPu%Yi(5H62(ng05DA%dE9rzCi#c(>esbIW3g>dJYhj{QUsDq(eGout@ez#bO>?eT zI?hxp?Kx@IL2fM4kZF61xtTd9wy)W~E_$7jzHLVsk?E8D$l=2ZPsvughuR_gaT#Zq zb9}?>s?<#pCUcyqnItwEhUWe^`^S7NMnA1C zzHdcHFQrnPOtCnzlgMw{cYV1gYBhRyHxiAzBqoko^R8KC(0!G=CYolRA4^+4*Iz82 ziu`s%sxPw9Dw{K$izSmnfRRb0qQ`Fdw@jdHK$zgCGVwSE#&0xgSCQcHs}$rV#yf@w zdk2Z0Y3rKm$;GG`Z5(3gj+OA!wiPuO81?znZr#uAwKxNFZ|k5caTvEe7Y&4IItz`x zaubkMzH6(~CNKMHwKZJc~+3n^JbIZQ^bBzMMq?@tQ^lgrlvKeUN@#BsCa?_kOWL>kuH57T-%xhf* zS+w#hPpPzubUb3Rmr_xekC$;HCm4IQ-O=Y0t_n2}E2EzXf>4PFY56qqT$b;Nv==+k zNH>cZn;*51Gx~ujup*XVN@*jKNMvYz`y^w7_th@iRr=OgJQ9s0Y{xv=7_pXPlXoOR z2|8+a8M-%)D8nrY7Sw;vDMsORlL7s3WP1z7vlnla^)Kry7F` zQoBJ{K8|>zE;8i^rv%yE>~Z7Ojz`jq44h*+tl-k#X~s$`%Qh!I`eiN(!9(=B}VM_%f5V?*?)8D>?S_3GauQ5FDa7|Glzt5|*E{2yiY-13~*UHgm0 zg6(;>?IoF{+o>~u&4n9HaDK)}^%9LjRpp+QzW}vNVJ79(SJb%dl#>6}QUiMf-Xk2tJ+StgykK@OlzAYF^hn2A^<9ZjES3|M8Kr>~Uc z3z7dak>4elRsYV&O=4Syw{larxnAvTR(!dpBAFy&?-D3R_Q9GebG|XO?f1&+gR+8h z;^k7S>w04um}UfbQxT3e(TB_h#?Zp6JDV?^qRw)^AazdN}2MY5xw8CeXPFFTFU{`bZz61~;lY)g9ZobZFFTO`E< z$#z+m#>~`38{}Xz@nfkIaS@5Il1n-l8w*4`RKFf+Fd=5y$i{*&yE)eOSyTo|&;Ik)&fU zHRiNP^JoRlMLOJ3dV}S&mS%;gOpCvB0tDhV*5>43m0V;rBGHK6Et{OnL{KZl$;C4x z!WR&~W?i~$1-Y;lMeRg1PGB>0t#RrGIl1@2oi%)3VpVz{Pb&b&EY0=of?DsGxgdSGL}R?9GBF(EBww^@VR$?pJz&dd*HVS|B~kklRcX zA-mq#zF^485A+G9{^_)do(36*Wv6a13IlI#hjz$D$2eB>H7-MZ#=~ENtS@@wI?WN7 z@5Eg{?XbdRa-VT-THE2sqw_@Pz-qtk$!a@?SP-*hXiTSAjil0?CQ&PMr;#jt@8BZHcDcD35??xy z*f6W-yk};dBwmtEd3SC2gPYZ%GNlGbiFEqu$)USlR$+DB82Ho@>%y8tH_$?*W;}P&^7j<*zedE-Yu^22GWg)2u{CaFD&a~Dg@@CtqG`b1rfz|JPGsaG7vGYmIAooIqYWv72 zz4U|mA-1huN`G9qPxHZ1Y&jX$>=-cVMad97WQ@rkmgXtg>Mqy0Sw#xp2BmR4f^Ilt zxvuS5nTL%jEe46)GNHa!i-hKpq40v#U-*vM>oR*ySS|yg>!i|H9Qc@tM~p#3I1TlB zR1;QN*|eP0o7V+%n+n2F9%5FOOc8V)iRh!oUb)Ya-76Z#r!i2Y1!9q-4P}2Hyqeh_ z`Lg*<8$%1EBV@7aLR8?S9y6x3KIe2?S916U2b)=AohCF*N{RBONIaqKIFc2Q6dv;% z%Xz$=eGPLw7n>OtT?<`N+aJxi3SbrRKY>|ERMqV*iGWlmaW8}c>$QY-t=aO5r@3!N6MLDYEyp!L91>tG{^u;5I--;QmVJ}F+l35tAD{YmG8 zc5H*>e1g*@l|s^p?!f=B9ow)im#&Qz8CGM&k z8i>gy9eIY`vYdtcni6#rP#Y*&QV?ig`@~>^OhAN)5zc6&pjL8)F?wxhlPED%3M1>D z_qa;Q$&g1!d_?E;Nj`oREJ>PzVO8E-Du84wyENcN4U|Qk(}<#()lyD{R1CiL#Hab` zRg=;o_n;gTE0f4W-2=hir5$i<=g&6_QDd#}x0GkXgGU2Z`P}sR3GFK3HX*GP4ghy6P7$}Xq zl}YzE#)%tt4uLvFizdYjTYZ!WQ8e-bKBEY;_Gs!)#3Lxj^NO56Dyxkux94Xg zr$-;n^;6eS>m73p`#WJq9g-QG@r=71{cnw*jMemD|JN$wp!LDcXH~63Rh$XawQJ{9 zRVvsJA>T!*izpM%7vJQ9bb;g9>UcmvhZjGXF}u`WB2SQXr8wOVx~a!$qr?G z8FSeaELZ)ApK=;Q8#>QMhk)!en#KtxGxUPce=&(p--{;NG}Dx0h{WQFg`sxM(6CdR z$%ti=W}`5lZ5|gI)_iFXTH=P`t(T35ZiqGPx+U?&*AqUdc63 z6vvl_FLnHeK9&sXQQW?m;9?lj)7A;0oE);{k|{SM&KieD6)H1wmyPd4Qbh3yDiZX; z1$$yBvfAE&^A>%g&)YI9Ca7(>=1HMU>z6d^dpy-tL;saa%&@vm`%xlmD0Wd$Bu);k zBmv3F@hLS_&!7!?IeUyqKdCF?S8l|L$NW=5dloKUS_cvfGmVEfD656OU(r*h@z_lW zKg3UM$ANYb|EQh=nF0!O*qPJv`+XhLhMX=*l>JmM#c)L)@bpk&HoK`O%MlQW_zlh9umUBhX~!^J1Pa)B79Jn)d^ z6hst_Ax=_OwolNmqP$gZ`MO`ubKEjt#9XGrOyE0CIxf>+QVo&x`JsJVeEp^Zx`h+? zHS7mEE266;A91XbK6fr)m*yt&fl({)-?i{utkSaJ@N$l`P4S{MiG1_I(3ln`n7M${3wSJO4E)W4CA_Q}kp zEF$1soc0x=i7jG_g;(N8iXyGy%qPs2a1yBm5-yUIo_l3zG=@{&wXz1KkJjV4W%(Mm z!_>ewDTk*D%cSBXSFQUgi+7Mrm+hxrDv6*DxVjxz4qt=WeA1;l21TQi&eC>lgUDfm zRRxz0sU&)aYud4mG=Vm%xl*ywB19f_uWiRR952JNkpzXy5J{n!>)Npmg`w$39D?Jf z8B18#w__U~#p!ThP%<3ZFp1e4+OZAaBNNG0$rMsWo6Q?T>%qOl1ct&;PMjQF)JesY zH-%Qpi)MAnWTd%{rSpnXB#V`7GD>N-o7>;XBalZ!j$aiiF;lVREujNj3_LAFsJe0r zm$WVZ$S9kaqvjQ=COM@D9Zd}RwsNYsuFs8UsLhMhoOL8q5YI~77ODzrQC2$TR&A}N zQdiRS=FA|?73LJ?*E%(BuMuGbG~NDr7A)anVm=@I0YSUM^BlEwpr z!Y`D!z+^L@#BH1kx|nQB*UwBWkm=fdc_QX2O%{(68@MC1YG+oqUKp1XZ3lVa zWGaK+hM6D*IuW2|?hO6cB{zH!lj;-1wdfbfoZS@~o1Mf3)5T!@x6*D8oc_T+ZwQ2C z!BZ=wjKCqpc@jsDpN`+XKCULmqWU;>;Bas=z}VJ3p?rL`Zhkc>=;5{5dTY7)W^TG2 z@v%CSlg1E~wydakZ)nY)GFGfvzctx~z`DY^l!%HSM?yxmK`(Y+XkB7JNc~c7ipeo6 zGSaZI`#1C&-j@5`CKT;47q_DB1EIb0Gg!0|1)h;sW9AH1_T_@lI(V}7DyEfo zvY?ch6Y(Dm?Y;gsMy~Lo&`OSMY5b(mDb&E^3I$VUwYgZZOW>Tki&B)cV06+Cuh)+j zoB7Ck-JUt~(e=8$_{_)F?E=jfj|jRwEFB2mnSjdQ>BY>)Lrt!t<~2@`x-VS${Hl6r zQK}Qs)tWZmf28Y?C)VrENX&dPbk>H*A5P_Dt&p3YLKV2*G89h6V~kb7GtFh~nCDQJ#`Y)`no36K(k%DsP|Yeo zVfGJewNPJ$y-7=S?48W2Ox8P`0SVK2CiGuWs1Xt8z5{lG#0?>?nEh<%;1-J#ra#pA z<;FgWUap0(d`jMQk}Xr>pjJT*PMyRkM<;4N7m5#2_t~m{Z7mB{Wf}%t>Y<{+ircB@ z{|}tPR8nJU;gLikCqq5F7eWII*SWbBmtT2gKJAIJmU|zOuXl)!WitMYq29S7COjj1 zQ>CEpcDZiX^irs<^-Ob>Wsq70UV}+St~Y8qigA_|+&F_%F5$;a%-^JP(Fzh!emRt@ zjXRGIE(;*spuMS ziPa-!naG4Nsxj7EudeZhs)Ni6sZSCohaM+hP624!eT@j#TFQA>8Ftd`KDaHFv=r#V zUGMeKDoRpQVNPX7)wPO`=W{NdUyah;-gq51$AnHo;}m{1|B|xn#W=n%dU4 zMCXvLm(sGP$tu5SgmAw{T|8>x5Y~$LZ-s^z>^rowS;IG;g#zEcYWi@eoVuLDj=Vdw zJE{#z1e5ktZ-+Lh`ek+LSUZu%enA|Q5Ctk2=bd(R@C@l>5GbLEXe~)R_uZzDWA^Z_ zE@aZ8Y8TcABqIo`E&P{BFZP~htqQypTtvacoD+o(bW9*^pl@t;xHk8I!E+VtyPu*5F(#bM=iU#UU<}Fi(#@CO3~oq}%QsC{nTzH(Xe+2akTGBfXg=1LNW9m*tNJxGdT6Io* z%7pQg^Eq)RN%4A>XUd=vM!oq_JI(}ZDp)e>QwRg+fn$E$j%~y!?TITZ8b@2s-GegA zLxZx1BG}o%zH7ByU=(Cjql8|JQG|OttO%{fUX|^~n-V1zDNcOTLRFHa9IGGmKiROE zpSEUMj0#O&cqU3wZumqoo+NeaBF?9weOg3Onz9Q{aNdmM%wPTKSb<_BouS6JXCo}N zqW)(aC{v!BMyj(}weHWPfESfN$N`Y<<(7A!uX{+8#3}bIh}z^P>^SA0zWDDRuoPwR zvC>jJ33mZf{VzkgY*Wi5YOcUVaKDP+ZYOgY54c)&LlW#DNIl#LWw)KLLgg)Hi7f(S zYisQew6yuq85Xcu3ilpf2{-yCwH0UY85) zW~X^6rWuT}zgOg4cLHCgUXIJ)7M?zJVz773=3YMRC~_L)`MJ{%ZgJT_ zeq7fLcqxQXULu7?l88qv`j>Ux09BGH`$V3Jd!Y~zxBnW-*=d_4Uxjwsf+~&Nt7f*! z*5n*+(zKvEBejA$izLn8LKCuQ>>4+eFR4|ovL*7K=@O@0I0Zq-w4^LFjPBpp^?R9! ziWvE#)Y#$%0Jis!b=?5D6e38>_?hh|snh+>(7tOrwpg)s7p9>8ZSFDl5VzStjW>h{ zJf(e*03r3r{A)dI69pu`Latd_l&GVb_iQJ2X7M9?m8!veEg2 zrp~1I3C1;>bV(~AJTK)g7KDc52(5hoKcP{-dK(0Be_kJ(iOu{aG-6FhQ#Ypyo}=5w z1*3K%P2D)|noIT@B~03B46lc;WX@a=UZ=SO`CtP4lxslz9d*sv!tm(aS81_kp!Y#> zg?c8qKg=jS%H1q1*Y{B2k~?m2Hy@j#`nH`sE__qVDo{CZj>f6%@oqf=6?6)mAe0u6+L0yUY=rELP;1_L>p zZq`zAbTlPnF07kkxY1L?zrK&9a2sYmZi<}d5#H6)!h07iB!k>yL4}ZlKjmVk*%YI0 z9G1;6T6Rn~RpE9#sOU49$m!t;`O8&H_}spqMtR3zp1P(3z|F82nH)1oco=)}8R2$I zzTz(Z5n*62O&KrlC2?jr-$}1>@}Vog+~N-2_1tNi01HA`?slajCESV(xruXDxW%3C za$hd^Vs!MmN-`DHH;ys4({0w{WU>=yhbuQgz$P2lV2Pwci_+^l4!W3g!m&03-Yp_Z z7P(Kh$ac(%5Ma@bTn=Tx(uJl<76=mD(ZOh`UE>OYS!No_s{JiyWRDavY)Hfir`n?(b?l%mx7DKOt73-F(rvyZoxo(!Slm8eR!+= z(eii)dna2kpKWl{9%hOJsi^#dx!u2@{b#Pvjge6VCb&mhgd-KdFuZTDeyda2@cIfR zWwZD5L=jR`p8W-XnP?p~e+qY=!3;HID%WR=ii_O+0g)T7?x;eVR^<15yu$IQ@T;xi z8jX`iq7p~UMmd#9IO&VRIbnJm64O<^1s{(P3_G1l9@M%)Q}4ts4zJ_t07Eqi4_)K9 zXE~2A38z;rQ_n@X4kc8{dlTE_-g8U|DK?18FnwvbW8k^3uQV?U=j!hN%CEy@?DFu2 zC>F~SLIrs|ZfS#6&r2*`c|?)mxmMoi^74Z83g4Tk2P+{QDGb@njhrRnoOp7Ls}R=8 z!41j^79mu3rM>{-(KH$dZk>Hac#pQ@4A}}vbR;dOz?58bDOW^{h!TCM@vaQ#DkKIY zOE46zEOW^g^a)0x{B3rEL^`7o>#JxK7i1KlL*lCNu>5>F5T$VI#UQs-PC1|&oCmo7 zvb8&MzhLJenkJ*0!X^?+P|h`Vb$H8_HK%U&&J;_->ur^c^ql07&23#{3Ent!O*q~5 z+`C|YnyY`p>e{ueIDQKbr=4)FUHg|(?wdOLl)TFj1EW;;b!-1pjyJ`jD2+~mGj3Vx zU%&P*r7{JAO{RP-sHx26-w)G4;A5@fPr#85$^Zl(B!c^89cvz$8^mZ!|;mV|S)jpjcLuTs%DMr4jl?nrX0 zQqp-&gz~rqw73(=-Qk=)s(FEtn@;9$uvX<&&z3oXn>IS!ZG>?=N{oa%sNNIy)_i6M zd64Xp$i73%E2mXmK2`LUF9xS1`U%7$tUBy_!-uz6SFL&)maX`htBiyiJXe#gjq6w2 z$p4wWlU+*ajsY3&^gzno)J=5m3m>sgZ`@pJGQVj`6u0g<+I(jfJ4~P$LUrI|I5zi( zbN7d8l(7V9MGw3#cIJhJchp!VG+*7-NrwCuQHWdEj638nm)N=9=KfurW%Z zQ)-#8denL}ypmd^)m4?dZ6V1rdN(rk+%td+EBaVCRd}%kCrj4akiQ&r<3~jT4>I!} zl|W}P9d#dH+qYz$%w6x%NicsVpBs5%t>03&?Bb4DOx>brU+v73;j#HheZJqOuOsEJ zb3VI6S5dl#g%+{~>;l+oRUq}Lb{&8M86%q7B=`7At~j&<(eS3H>WG&rOSl< zg6ompnbDHgOgz1olkqiehvDU!^|h(k%xA-~)~9^ajGO8L^!j`i6eOG;tSwlj;Hii{ zM_{Dz+{%`p_`Okm; zAFHa>Z0&vN2{4cek*cu_sItd(GrR5p&+ay4DKLmIsO2;(+azL_I<0w05QQjGoQMUO*W&P^pCF z;^4BL0D^N)IL(CcNHbpLSmOUF^p>`80+(r$N@J;5LKT8v1(O@D7s{K#)p`10Ys^-3 zT>nORg95o;#B}+=a$uIwp`V#!FCyMy@Fp0Gc{nFQx4GtYPKFT}1&1iiusA@WsCw<` zoQx*UHZ5EkRVYNXYsqy^kGp*_ahDk9MDf`sAagLq+n7tHjjCV0-Z`*_B+&nmNWGY$ zj6N2imsLIQuz^c+1Rv&BWvp?isgUi_l}9g2c!P6r)XKB&NQUL?5dzUt9Kgg0-5Z_r zH|<*@Hs!~$5$)ag}Hcb?EUUZOM z#GDe19lwfHO)b0Ksf;va)GI{mS?SV3n%uFOH&LIyGoKx6yZ_L%U&fKI{N2FQd>~!nU){k{K{us?R`10?ezPi$kPmAdzlAq-^uSu@d@`It*vmPM=vk0haW6odz8*RS8d zk!`)$KE#Tjq6@{|4&p?M)dL$kVIfW+>muQT4U30@hke73azNc|W4((R-9#&q5E5w{ zqJbttjUeG&r_CQbwo_k^7%LJubj(2c=nk0}ivfzSM6oF1CUNkS2a$KeiwoNH2?L!$ zs|$YW9Ny?IXx%a7ttF_S!p99f^z4u+`5CFf;5XilppVeOHWL%N!pB8 zWFwY#9RL#l=Z>XhkJ>fKKVd0h2!mF;Sk8LCaJCV4lAiu@*l;Fhs6#FxwGwlCul*~h zVnWkXws-w9J3Li7pK%AFv(^R8`*og=MgzAq>~(jVaYcH@%w{g-P{LF zI_c)_#7&qI6fJ?7V=PwuKRS7rMqfo_bwyMZ4;`l!Q*5X4cq+(@uFDHT37ql~*&1F! z5uSg4a;!?FeIQn#jmVhLblHlcAQ=cXGJy*W36#a)&(2f23Kk&U1T12bby$8(9ZXIX zuEV^Jo(dS2r_?PoNZ!;|xy!#ek6pi4VjMAEOsFJB8OP~p?yt^V4=zz$wbo{$HMoO} zjUz_S-*@Y4#RGLGEPpA>9U`+N4s|5Esc%H_-yB3iWjLBrkLZ}-Qb(VqcD6Yn`RUr% z4!Bup&uj<{`i$7u=qdTTGf*U=NXDd^`AnKJ&^cJrlyCytDn=k;jLy}$?mvcPKr9MG zBr=Mqgry#Cq-}V}S;PIOV|7K%xU)H%C}!mh3Y)YVYe4(tWa%D7pD^d>z(1i~hI%N& z9fYCrFGA%3&rMI27WgyDf!+EY%CxxC(!NOEMyG1+-+8(ir?Wh3d(5mv0Vmcyv{U7J-R_l116ohtYdT}H{e71VrkeEx{v0Lr*C{iuJ zFC6$B)zh$U2Tr%*oMDctoxDi!P^YRrSFK~Y$&|*Xk2eIG%^N~|Ry-nDpiy}W>doh= zC-xv&Gi@{9b(!=+sg=Trq!YI#%u$XP;cOs6j1=%YT!z@~q@mU!ZpDw_uY@ zeQyhTpd;Vsk_AM7H)Kog@P%r9*zLiu$ATv`=^qH2LZd(epk1$BteS!}GOlZ; zJ%c_c94&o~GA1~d`hA0NgF+`XAfWIUsoIpF-TiZ|&td}6DBugYIO5Gr|I>?=Keg+^ z5eHQ>3f}|(8Kjd4m#LSii@Ri5Gbsd$`ro!(*fwM6JcwdsR1aKHMND3*YJ*>2Z!r(p z)}x;YX+HJ~a=e$RVh7NvPdbhkqnKx2WHmO)Rhw1n==86F1xGJe*3eq-B-!eGY@~{w zJb!3D=6SFR&Qb}Je|DsZ%z93gjR+@nn^!0+nKA&vwIh*fp!feH`lk#RiaC6Fqe^Iq zk)0pCQmtRwE`1V`(pPQdV(MH%1BY&6LLmR7@#>9SO#ex^nAfOXLzW&sN@fiL^jh_F zGxi2NLi0f$lN~bJQTCB^Q_$6LuLi#fscI2okg)Qk9l*O}BaZ{`7er3rk^_ShO{TBg z$VuQ6OKyd2H6sno>GjH+D$GqSR=#gu{9*(kZq2a5cc7TDh>KskIKTOgH|`R#g7zcBZaHb(d)zyjktBuW+s5((YHx7$S1A06Jk@GMely>Pa@B(lNxo zrK78Jlp2;tEM1UFT#w~7^J!KDUwo_DeK^g|HIr)3cxCVS0nJ7rf*m&~sr*agsJE3_ z8AGUVZBKeS*_@Mh^metgu*HZ)@;j7o?onTMA&@qqGqaqR2;u<)ybUH75#|TMJ5|HH z_#z}bur`FAFYzXc{aiu3gwDh)zS1pFj;NU6L>9Vmsb_2(;XDEFWs z2tp@;V8-uNT`C@TURXH$E^5?ySb^SG=Ed{2Vm!H^-$7D?y8r$%2XTx`;t0JZfHfIq zA5eRSuXPe=**N8cWxfF86Ntfxk%G|(Q}IJ(4iZ5da5hM0L5yW(`r$GM5fS*v28qT1 zFmC8xrXF4x_~{8;$|)_UA5r_uz22Sy2Xi0mUpSx$vqp%>eRT8~MU!3>@|ixd7;Fb0 zQ%{)M#Ym9XKXMWg*svb5f)i#VMb`d!nI`~(MMo3@XdcdvgsPv|tP$u>e^S9a8J^*< zkFl5(t1s+BxTvaq*XkG(uw8sgWgGtnyF_2m+oEe2pAjGtl7TEoUWm$8^yxB>5_>Wt zb%HZCqm-t{&y<-Lwj%u5GG7qUu>lP=qOl2^$RPM!zDnwcr5CEaKUMz^9W3aT!9`?; zlm=h_^P>(3U6?(b+b2Y;HBT3X9 zDG6sTKpY%bFaFY~14wMe(vH!M0wdzmUsmT&B`4?Cof9LLOONt3MP;$cbX_b0zM>v8 zWChd7lpZZ#9d(_)X!8V3R6r>FVa@ZkQ3p`BWYkC#A3Gna$zNBs{upLZ5KkW?a51JR z^jopy`QPAq*yHkjLlBX&jPQ(-BQ>;U#-b}b(Kko0RB$*D!2oTHVOhae{+7xaoqa(N z+2;H*v6Oy*<`;&|F|n?YN(aNIjy+fi#g6o^4rM<1cK*=v$hV&z5#n-#hhsYuSuzTW z-%*E5aAM(A=>}S(iWh82%r%Hz@>0?|HnT9RMQ6AK^gsLzb_z{sK%GhSUA242fG{7K z`2BlovgBXd!p`^A-eTA>8d;*QozVt{l?AX8?F2t4vs8dRV~35hH0eOh?(@Sk2ZcbA zBzSbBvv4$`;BvL^^e&Y!&npewinJytv(u3SdxQx5h{#gL$8LXZMh5~DCxW#Xv9uTpL0~J6U3>vj- zy5C@Ci=5i((HzmiW~p|l;x_8o*Qt@s8|z03dQzVv zwb6yNF?&uLG^ilE2?(7vuUEN{o?S3)j;Md@W{NmOdg7sl4FSMg!@J?MM`U&SM)fp1 zo$NRFrkkTz0!aaVq_E&e0$BvJK=c^YSZ z>gvkC3+Ou;wF*=^+H9Z%3PBLvQaZ(BZZkxPLojNHfuC+IePorK9a+UJpjzSuet28y zBdJ%jp3oYGCE}Ln;W=a?H&CT==L#7fuJWX5FjqdC}AJ- zA1DyHHKq-#*SGkZmaYhjj6-j)0VUNND3=yQfZ%bwn~5+KiZpYRwupjbBSOA zO8AZXIJ}9V;`$ZO+q3O>G|QiDb0_`!q<@yElT~c7WIO*ii4^aaOU8Cmcpw34!P;KI zOl*0_#6#Pwvlmt1zbq`BoY-0Tr9yBv@kjxOE0j(!6pU9Y(zYTU`4bOWE9On?oLkk8 yuX1#Dp&iXGPdscMNh;W`i|m7yY;i>%!Ng7;O$zBYPAdWmE>G-OMtimbmi1rQ&>Qgp literal 0 HcmV?d00001 From 945e7abf225feb4d0be8488a892f88b3258e1ddc Mon Sep 17 00:00:00 2001 From: Malte Ubl Date: Fri, 27 Mar 2026 15:51:58 -0700 Subject: [PATCH 4/4] version --- package.json | 2 +- src/commands/worker-bridge/protocol.ts | 10 +- src/executor-init.ts | 23 +- vendor/executor/executor-sdk-bundle.d.mts | 18 +- vendor/executor/executor-sdk-bundle.mjs | 486 +++++++++++----------- 5 files changed, 287 insertions(+), 252 deletions(-) diff --git a/package.json b/package.json index 855c96fb..3b10d146 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "just-bash", - "version": "2.15.0-executor.0", + "version": "2.15.1-executor.0", "description": "A simulated bash environment with virtual filesystem", "repository": { "type": "git", diff --git a/src/commands/worker-bridge/protocol.ts b/src/commands/worker-bridge/protocol.ts index 5b6d71c9..31a536fd 100644 --- a/src/commands/worker-bridge/protocol.ts +++ b/src/commands/worker-bridge/protocol.ts @@ -96,11 +96,11 @@ const Offset = { const Size = { CONTROL_REGION: 32, PATH_BUFFER: 4096, - // 1MB limit applies to all FS read/write operations through the bridge. - // Files larger than this will be truncated. This is tight — consider - // increasing if real workloads hit the cap. Reduced from 16MB for faster tests. - DATA_BUFFER: 1048576, - TOTAL: 1052704, // 32 + 4096 + 1MB + // 8MB limit for FS read/write, HTTP responses, and tool invocation results. + // Sized to handle typical OpenAPI/GraphQL responses (paginated lists, batch queries). + // Still well under the 64MB QuickJS memory limit per execution. + DATA_BUFFER: 8388608, + TOTAL: 8392736, // 32 + 4096 + 8MB } as const; /** Flags for operations */ diff --git a/src/executor-init.ts b/src/executor-init.ts index 9c9dd322..e35e1d41 100644 --- a/src/executor-init.ts +++ b/src/executor-init.ts @@ -28,7 +28,7 @@ export async function initExecutorSDK( }>; }> { // @banned-pattern-ignore: static literal path to vendored SDK bundle - const { createExecutor } = await import( + const { createExecutor, createFsBackend } = await import( "../vendor/executor/executor-sdk-bundle.mjs" ); const { executeForExecutor } = await import("./commands/js-exec/js-exec.js"); @@ -68,9 +68,28 @@ export async function initExecutorSDK( }, }; + // Use the Bash instance's virtual filesystem for executor state. + // This makes all executor state serializable (serialize the fs = serialize everything) + // and inspectable via bash commands (cat /.executor/config.json). + const fsBackend = createFsBackend({ + fs: { + writeFileSync: (path: string, content: string | Uint8Array) => { + const str = typeof content === "string" ? content : new TextDecoder().decode(content); + // InMemoryFs has writeFileSync + (fs as any).writeFileSync(path, str); + }, + mkdirSync: (path: string, opts?: { recursive?: boolean }) => { + try { (fs as any).mkdirSync(path, opts); } catch { /* ignore */ } + }, + readFile: (path: string) => fs.readFile(path), + exists: (path: string) => fs.exists(path), + }, + root: "/.executor", + }); + const sdk = await createExecutor({ runtime, - storage: "memory", + storage: fsBackend, onToolApproval: approval ?? "allow-all", }); diff --git a/vendor/executor/executor-sdk-bundle.d.mts b/vendor/executor/executor-sdk-bundle.d.mts index 9d74df14..ca37a6d4 100644 --- a/vendor/executor/executor-sdk-bundle.d.mts +++ b/vendor/executor/executor-sdk-bundle.d.mts @@ -1,4 +1,20 @@ -/** Vendored @executor/sdk bundle — re-exports createExecutor and types */ +/** Vendored @executor/sdk bundle — re-exports createExecutor, createFsBackend, and types */ + +export interface SyncableFS { + writeFileSync(path: string, content: string | Uint8Array): void; + mkdirSync?(path: string, options?: { recursive?: boolean }): void; + readFile(path: string): Promise; + exists(path: string): Promise; +} + +export interface FsStorageOptions { + fs: SyncableFS; + root?: string; + resolveSecret?: (input: { secretId: string; context?: Record }) => Promise | string | null; +} + +export declare function createFsBackend(options: FsStorageOptions): unknown; + export declare function createExecutor(options: { runtime?: unknown; storage?: unknown; diff --git a/vendor/executor/executor-sdk-bundle.mjs b/vendor/executor/executor-sdk-bundle.mjs index f0e632aa..e8eeb5d0 100644 --- a/vendor/executor/executor-sdk-bundle.mjs +++ b/vendor/executor/executor-sdk-bundle.mjs @@ -1,22 +1,22 @@ import{createRequire as __cr}from"module";const require=__cr(import.meta.url); -var oIe=Object.create;var H8=Object.defineProperty;var iIe=Object.getOwnPropertyDescriptor;var aIe=Object.getOwnPropertyNames;var sIe=Object.getPrototypeOf,cIe=Object.prototype.hasOwnProperty;var _l=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var L=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),YS=(e,t)=>{for(var r in t)H8(e,r,{get:t[r],enumerable:!0})},lIe=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of aIe(t))!cIe.call(e,o)&&o!==r&&H8(e,o,{get:()=>t[o],enumerable:!(n=iIe(t,o))||n.enumerable});return e};var e0=(e,t,r)=>(r=e!=null?oIe(sIe(e)):{},lIe(t||!e||!e.__esModule?H8(r,"default",{value:e,enumerable:!0}):r,e));var vx=L(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.regexpCode=Un.getEsmExportName=Un.getProperty=Un.safeStringify=Un.stringify=Un.strConcat=Un.addCodeArg=Un.str=Un._=Un.nil=Un._Code=Un.Name=Un.IDENTIFIER=Un._CodeOrName=void 0;var gx=class{};Un._CodeOrName=gx;Un.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var xy=class extends gx{constructor(t){if(super(),!Un.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Un.Name=xy;var fl=class extends gx{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof xy&&(r[n.str]=(r[n.str]||0)+1),r),{})}};Un._Code=fl;Un.nil=new fl("");function BX(e,...t){let r=[e[0]],n=0;for(;n{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.ValueScope=Ks.ValueScopeName=Ks.Scope=Ks.varKinds=Ks.UsedValueState=void 0;var Js=vx(),Q8=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},sC;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(sC||(Ks.UsedValueState=sC={}));Ks.varKinds={const:new Js.Name("const"),let:new Js.Name("let"),var:new Js.Name("var")};var cC=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Js.Name?t:this.name(t)}name(t){return new Js.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};Ks.Scope=cC;var lC=class extends Js.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Js._)`.${new Js.Name(r)}[${n}]`}};Ks.ValueScopeName=lC;var SIe=(0,Js._)`\n`,X8=class extends cC{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?SIe:Js.nil}}get(){return this._scope}name(t){return new lC(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(t),{prefix:i}=o,a=(n=r.key)!==null&&n!==void 0?n:r.ref,s=this._values[i];if(s){let d=s.get(a);if(d)return d}else s=this._values[i]=new Map;s.set(a,o);let c=this._scope[i]||(this._scope[i]=[]),p=c.length;return c[p]=r.ref,o.setValue(r,{property:i,itemIndex:p}),o}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Js._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(t,r,n={},o){let i=Js.nil;for(let a in t){let s=t[a];if(!s)continue;let c=n[a]=n[a]||new Map;s.forEach(p=>{if(c.has(p))return;c.set(p,sC.Started);let d=r(p);if(d){let f=this.opts.es5?Ks.varKinds.var:Ks.varKinds.const;i=(0,Js._)`${i}${f} ${p} = ${d};${this.opts._n}`}else if(d=o?.(p))i=(0,Js._)`${i}${d}${this.opts._n}`;else throw new Q8(p);c.set(p,sC.Completed)})}return i}};Ks.ValueScope=X8});var kr=L(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.or=on.and=on.not=on.CodeGen=on.operators=on.varKinds=on.ValueScopeName=on.ValueScope=on.Scope=on.Name=on.regexpCode=on.stringify=on.getProperty=on.nil=on.strConcat=on.str=on._=void 0;var An=vx(),du=Y8(),qf=vx();Object.defineProperty(on,"_",{enumerable:!0,get:function(){return qf._}});Object.defineProperty(on,"str",{enumerable:!0,get:function(){return qf.str}});Object.defineProperty(on,"strConcat",{enumerable:!0,get:function(){return qf.strConcat}});Object.defineProperty(on,"nil",{enumerable:!0,get:function(){return qf.nil}});Object.defineProperty(on,"getProperty",{enumerable:!0,get:function(){return qf.getProperty}});Object.defineProperty(on,"stringify",{enumerable:!0,get:function(){return qf.stringify}});Object.defineProperty(on,"regexpCode",{enumerable:!0,get:function(){return qf.regexpCode}});Object.defineProperty(on,"Name",{enumerable:!0,get:function(){return qf.Name}});var _C=Y8();Object.defineProperty(on,"Scope",{enumerable:!0,get:function(){return _C.Scope}});Object.defineProperty(on,"ValueScope",{enumerable:!0,get:function(){return _C.ValueScope}});Object.defineProperty(on,"ValueScopeName",{enumerable:!0,get:function(){return _C.ValueScopeName}});Object.defineProperty(on,"varKinds",{enumerable:!0,get:function(){return _C.varKinds}});on.operators={GT:new An._Code(">"),GTE:new An._Code(">="),LT:new An._Code("<"),LTE:new An._Code("<="),EQ:new An._Code("==="),NEQ:new An._Code("!=="),NOT:new An._Code("!"),OR:new An._Code("||"),AND:new An._Code("&&"),ADD:new An._Code("+")};var Zd=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},e9=class extends Zd{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?du.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=r0(this.rhs,t,r)),this}get names(){return this.rhs instanceof An._CodeOrName?this.rhs.names:{}}},uC=class extends Zd{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof An.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=r0(this.rhs,t,r),this}get names(){let t=this.lhs instanceof An.Name?{}:{...this.lhs.names};return dC(t,this.rhs)}},t9=class extends uC{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},r9=class extends Zd{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},n9=class extends Zd{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},o9=class extends Zd{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},i9=class extends Zd{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=r0(this.code,t,r),this}get names(){return this.code instanceof An._CodeOrName?this.code.names:{}}},bx=class extends Zd{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,o=n.length;for(;o--;){let i=n[o];i.optimizeNames(t,r)||(vIe(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Dy(t,r.names),{})}},Wd=class extends bx{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},a9=class extends bx{},t0=class extends Wd{};t0.kind="else";var Ey=class e extends Wd{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new t0(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(UX(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=r0(this.condition,t,r),this}get names(){let t=super.names;return dC(t,this.condition),this.else&&Dy(t,this.else.names),t}};Ey.kind="if";var Ty=class extends Wd{};Ty.kind="for";var s9=class extends Ty{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=r0(this.iteration,t,r),this}get names(){return Dy(super.names,this.iteration.names)}},c9=class extends Ty{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?du.varKinds.var:this.varKind,{name:n,from:o,to:i}=this;return`for(${r} ${n}=${o}; ${n}<${i}; ${n}++)`+super.render(t)}get names(){let t=dC(super.names,this.from);return dC(t,this.to)}},pC=class extends Ty{constructor(t,r,n,o){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=o}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=r0(this.iterable,t,r),this}get names(){return Dy(super.names,this.iterable.names)}},xx=class extends Wd{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};xx.kind="func";var Ex=class extends bx{render(t){return"return "+super.render(t)}};Ex.kind="return";var l9=class extends Wd{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,o;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(o=this.finally)===null||o===void 0||o.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Dy(t,this.catch.names),this.finally&&Dy(t,this.finally.names),t}},Tx=class extends Wd{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Tx.kind="catch";var Dx=class extends Wd{render(t){return"finally"+super.render(t)}};Dx.kind="finally";var u9=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?` -`:""},this._extScope=t,this._scope=new du.Scope({parent:t}),this._nodes=[new a9]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,o){let i=this._scope.toName(r);return n!==void 0&&o&&(this._constants[i.str]=n),this._leafNode(new e9(t,i,n)),i}const(t,r,n){return this._def(du.varKinds.const,t,r,n)}let(t,r,n){return this._def(du.varKinds.let,t,r,n)}var(t,r,n){return this._def(du.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new uC(t,r,n))}add(t,r){return this._leafNode(new t9(t,on.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==An.nil&&this._leafNode(new i9(t)),this}object(...t){let r=["{"];for(let[n,o]of t)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,An.addCodeArg)(r,o));return r.push("}"),new An._Code(r)}if(t,r,n){if(this._blockNode(new Ey(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Ey(t))}else(){return this._elseNode(new t0)}endIf(){return this._endBlockNode(Ey,t0)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new s9(t),r)}forRange(t,r,n,o,i=this.opts.es5?du.varKinds.var:du.varKinds.let){let a=this._scope.toName(t);return this._for(new c9(i,a,r,n),()=>o(a))}forOf(t,r,n,o=du.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let a=r instanceof An.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,An._)`${a}.length`,s=>{this.var(i,(0,An._)`${a}[${s}]`),n(i)})}return this._for(new pC("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?du.varKinds.var:du.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,An._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new pC("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(Ty)}label(t){return this._leafNode(new r9(t))}break(t){return this._leafNode(new n9(t))}return(t){let r=new Ex;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ex)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new l9;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new Tx(i),r(i)}return n&&(this._currNode=o.finally=new Dx,this.code(n)),this._endBlockNode(Tx,Dx)}throw(t){return this._leafNode(new o9(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=An.nil,n,o){return this._blockNode(new xx(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(xx)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Ey))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};on.CodeGen=u9;function Dy(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function dC(e,t){return t instanceof An._CodeOrName?Dy(e,t.names):e}function r0(e,t,r){if(e instanceof An.Name)return n(e);if(!o(e))return e;return new An._Code(e._items.reduce((i,a)=>(a instanceof An.Name&&(a=n(a)),a instanceof An._Code?i.push(...a._items):i.push(a),i),[]));function n(i){let a=r[i.str];return a===void 0||t[i.str]!==1?i:(delete t[i.str],a)}function o(i){return i instanceof An._Code&&i._items.some(a=>a instanceof An.Name&&t[a.str]===1&&r[a.str]!==void 0)}}function vIe(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function UX(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,An._)`!${p9(e)}`}on.not=UX;var bIe=zX(on.operators.AND);function xIe(...e){return e.reduce(bIe)}on.and=xIe;var EIe=zX(on.operators.OR);function TIe(...e){return e.reduce(EIe)}on.or=TIe;function zX(e){return(t,r)=>t===An.nil?r:r===An.nil?t:(0,An._)`${p9(t)} ${e} ${p9(r)}`}function p9(e){return e instanceof An.Name?e:(0,An._)`(${e})`}});var ln=L(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.checkStrictMode=cn.getErrorPath=cn.Type=cn.useFunc=cn.setEvaluated=cn.evaluatedPropsToName=cn.mergeEvaluated=cn.eachItem=cn.unescapeJsonPointer=cn.escapeJsonPointer=cn.escapeFragment=cn.unescapeFragment=cn.schemaRefOrVal=cn.schemaHasRulesButRef=cn.schemaHasRules=cn.checkUnknownRules=cn.alwaysValidSchema=cn.toHash=void 0;var Do=kr(),DIe=vx();function AIe(e){let t={};for(let r of e)t[r]=!0;return t}cn.toHash=AIe;function wIe(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(KX(e,t),!GX(t,e.self.RULES.all))}cn.alwaysValidSchema=wIe;function KX(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let o=n.RULES.keywords;for(let i in t)o[i]||WX(e,`unknown keyword: "${i}"`)}cn.checkUnknownRules=KX;function GX(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}cn.schemaHasRules=GX;function IIe(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}cn.schemaHasRulesButRef=IIe;function kIe({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Do._)`${r}`}return(0,Do._)`${e}${t}${(0,Do.getProperty)(n)}`}cn.schemaRefOrVal=kIe;function CIe(e){return HX(decodeURIComponent(e))}cn.unescapeFragment=CIe;function PIe(e){return encodeURIComponent(_9(e))}cn.escapeFragment=PIe;function _9(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}cn.escapeJsonPointer=_9;function HX(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}cn.unescapeJsonPointer=HX;function OIe(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}cn.eachItem=OIe;function VX({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,a,s)=>{let c=a===void 0?i:a instanceof Do.Name?(i instanceof Do.Name?e(o,i,a):t(o,i,a),a):i instanceof Do.Name?(t(o,a,i),i):r(i,a);return s===Do.Name&&!(c instanceof Do.Name)?n(o,c):c}}cn.mergeEvaluated={props:VX({mergeNames:(e,t,r)=>e.if((0,Do._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Do._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Do._)`${r} || {}`).code((0,Do._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Do._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Do._)`${r} || {}`),f9(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:ZX}),items:VX({mergeNames:(e,t,r)=>e.if((0,Do._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Do._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Do._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Do._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function ZX(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Do._)`{}`);return t!==void 0&&f9(e,r,t),r}cn.evaluatedPropsToName=ZX;function f9(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Do._)`${t}${(0,Do.getProperty)(n)}`,!0))}cn.setEvaluated=f9;var JX={};function NIe(e,t){return e.scopeValue("func",{ref:t,code:JX[t.code]||(JX[t.code]=new DIe._Code(t.code))})}cn.useFunc=NIe;var d9;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(d9||(cn.Type=d9={}));function FIe(e,t,r){if(e instanceof Do.Name){let n=t===d9.Num;return r?n?(0,Do._)`"[" + ${e} + "]"`:(0,Do._)`"['" + ${e} + "']"`:n?(0,Do._)`"/" + ${e}`:(0,Do._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Do.getProperty)(e).toString():"/"+_9(e)}cn.getErrorPath=FIe;function WX(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}cn.checkStrictMode=WX});var ml=L(m9=>{"use strict";Object.defineProperty(m9,"__esModule",{value:!0});var Xa=kr(),RIe={data:new Xa.Name("data"),valCxt:new Xa.Name("valCxt"),instancePath:new Xa.Name("instancePath"),parentData:new Xa.Name("parentData"),parentDataProperty:new Xa.Name("parentDataProperty"),rootData:new Xa.Name("rootData"),dynamicAnchors:new Xa.Name("dynamicAnchors"),vErrors:new Xa.Name("vErrors"),errors:new Xa.Name("errors"),this:new Xa.Name("this"),self:new Xa.Name("self"),scope:new Xa.Name("scope"),json:new Xa.Name("json"),jsonPos:new Xa.Name("jsonPos"),jsonLen:new Xa.Name("jsonLen"),jsonPart:new Xa.Name("jsonPart")};m9.default=RIe});var Ax=L(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.extendErrors=Ya.resetErrorsCount=Ya.reportExtraError=Ya.reportError=Ya.keyword$DataError=Ya.keywordError=void 0;var Ln=kr(),fC=ln(),Ss=ml();Ya.keywordError={message:({keyword:e})=>(0,Ln.str)`must pass "${e}" keyword validation`};Ya.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,Ln.str)`"${e}" keyword must be ${t} ($data)`:(0,Ln.str)`"${e}" keyword is invalid ($data)`};function LIe(e,t=Ya.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:a,allErrors:s}=o,c=YX(e,t,r);n??(a||s)?QX(i,c):XX(o,(0,Ln._)`[${c}]`)}Ya.reportError=LIe;function $Ie(e,t=Ya.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:a}=n,s=YX(e,t,r);QX(o,s),i||a||XX(n,Ss.default.vErrors)}Ya.reportExtraError=$Ie;function MIe(e,t){e.assign(Ss.default.errors,t),e.if((0,Ln._)`${Ss.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,Ln._)`${Ss.default.vErrors}.length`,t),()=>e.assign(Ss.default.vErrors,null)))}Ya.resetErrorsCount=MIe;function jIe({gen:e,keyword:t,schemaValue:r,data:n,errsCount:o,it:i}){if(o===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",o,Ss.default.errors,s=>{e.const(a,(0,Ln._)`${Ss.default.vErrors}[${s}]`),e.if((0,Ln._)`${a}.instancePath === undefined`,()=>e.assign((0,Ln._)`${a}.instancePath`,(0,Ln.strConcat)(Ss.default.instancePath,i.errorPath))),e.assign((0,Ln._)`${a}.schemaPath`,(0,Ln.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,Ln._)`${a}.schema`,r),e.assign((0,Ln._)`${a}.data`,n))})}Ya.extendErrors=jIe;function QX(e,t){let r=e.const("err",t);e.if((0,Ln._)`${Ss.default.vErrors} === null`,()=>e.assign(Ss.default.vErrors,(0,Ln._)`[${r}]`),(0,Ln._)`${Ss.default.vErrors}.push(${r})`),e.code((0,Ln._)`${Ss.default.errors}++`)}function XX(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,Ln._)`new ${e.ValidationError}(${t})`):(r.assign((0,Ln._)`${n}.errors`,t),r.return(!1))}var Ay={keyword:new Ln.Name("keyword"),schemaPath:new Ln.Name("schemaPath"),params:new Ln.Name("params"),propertyName:new Ln.Name("propertyName"),message:new Ln.Name("message"),schema:new Ln.Name("schema"),parentSchema:new Ln.Name("parentSchema")};function YX(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,Ln._)`{}`:BIe(e,t,r)}function BIe(e,t,r={}){let{gen:n,it:o}=e,i=[qIe(o,r),UIe(e,r)];return zIe(e,t,i),n.object(...i)}function qIe({errorPath:e},{instancePath:t}){let r=t?(0,Ln.str)`${e}${(0,fC.getErrorPath)(t,fC.Type.Str)}`:e;return[Ss.default.instancePath,(0,Ln.strConcat)(Ss.default.instancePath,r)]}function UIe({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,Ln.str)`${t}/${e}`;return r&&(o=(0,Ln.str)`${o}${(0,fC.getErrorPath)(r,fC.Type.Str)}`),[Ay.schemaPath,o]}function zIe(e,{params:t,message:r},n){let{keyword:o,data:i,schemaValue:a,it:s}=e,{opts:c,propertyName:p,topSchemaRef:d,schemaPath:f}=s;n.push([Ay.keyword,o],[Ay.params,typeof t=="function"?t(e):t||(0,Ln._)`{}`]),c.messages&&n.push([Ay.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([Ay.schema,a],[Ay.parentSchema,(0,Ln._)`${d}${f}`],[Ss.default.data,i]),p&&n.push([Ay.propertyName,p])}});var tY=L(n0=>{"use strict";Object.defineProperty(n0,"__esModule",{value:!0});n0.boolOrEmptySchema=n0.topBoolOrEmptySchema=void 0;var VIe=Ax(),JIe=kr(),KIe=ml(),GIe={message:"boolean schema is false"};function HIe(e){let{gen:t,schema:r,validateName:n}=e;r===!1?eY(e,!1):typeof r=="object"&&r.$async===!0?t.return(KIe.default.data):(t.assign((0,JIe._)`${n}.errors`,null),t.return(!0))}n0.topBoolOrEmptySchema=HIe;function ZIe(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),eY(e)):r.var(t,!0)}n0.boolOrEmptySchema=ZIe;function eY(e,t){let{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,VIe.reportError)(o,GIe,void 0,t)}});var h9=L(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});o0.getRules=o0.isJSONType=void 0;var WIe=["string","number","integer","boolean","null","object","array"],QIe=new Set(WIe);function XIe(e){return typeof e=="string"&&QIe.has(e)}o0.isJSONType=XIe;function YIe(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}o0.getRules=YIe});var y9=L(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.shouldUseRule=Uf.shouldUseGroup=Uf.schemaHasRulesForType=void 0;function eke({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&rY(e,n)}Uf.schemaHasRulesForType=eke;function rY(e,t){return t.rules.some(r=>nY(e,r))}Uf.shouldUseGroup=rY;function nY(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}Uf.shouldUseRule=nY});var wx=L(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.reportTypeError=es.checkDataTypes=es.checkDataType=es.coerceAndCheckDataType=es.getJSONTypes=es.getSchemaTypes=es.DataType=void 0;var tke=h9(),rke=y9(),nke=Ax(),qr=kr(),oY=ln(),i0;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(i0||(es.DataType=i0={}));function oke(e){let t=iY(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}es.getSchemaTypes=oke;function iY(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(tke.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}es.getJSONTypes=iY;function ike(e,t){let{gen:r,data:n,opts:o}=e,i=ake(t,o.coerceTypes),a=t.length>0&&!(i.length===0&&t.length===1&&(0,rke.schemaHasRulesForType)(e,t[0]));if(a){let s=S9(t,n,o.strictNumbers,i0.Wrong);r.if(s,()=>{i.length?ske(e,t,i):v9(e)})}return a}es.coerceAndCheckDataType=ike;var aY=new Set(["string","number","integer","boolean","null"]);function ake(e,t){return t?e.filter(r=>aY.has(r)||t==="array"&&r==="array"):[]}function ske(e,t,r){let{gen:n,data:o,opts:i}=e,a=n.let("dataType",(0,qr._)`typeof ${o}`),s=n.let("coerced",(0,qr._)`undefined`);i.coerceTypes==="array"&&n.if((0,qr._)`${a} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,qr._)`${o}[0]`).assign(a,(0,qr._)`typeof ${o}`).if(S9(t,o,i.strictNumbers),()=>n.assign(s,o))),n.if((0,qr._)`${s} !== undefined`);for(let p of r)(aY.has(p)||p==="array"&&i.coerceTypes==="array")&&c(p);n.else(),v9(e),n.endIf(),n.if((0,qr._)`${s} !== undefined`,()=>{n.assign(o,s),cke(e,s)});function c(p){switch(p){case"string":n.elseIf((0,qr._)`${a} == "number" || ${a} == "boolean"`).assign(s,(0,qr._)`"" + ${o}`).elseIf((0,qr._)`${o} === null`).assign(s,(0,qr._)`""`);return;case"number":n.elseIf((0,qr._)`${a} == "boolean" || ${o} === null - || (${a} == "string" && ${o} && ${o} == +${o})`).assign(s,(0,qr._)`+${o}`);return;case"integer":n.elseIf((0,qr._)`${a} === "boolean" || ${o} === null - || (${a} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(s,(0,qr._)`+${o}`);return;case"boolean":n.elseIf((0,qr._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(s,!1).elseIf((0,qr._)`${o} === "true" || ${o} === 1`).assign(s,!0);return;case"null":n.elseIf((0,qr._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(s,null);return;case"array":n.elseIf((0,qr._)`${a} === "string" || ${a} === "number" - || ${a} === "boolean" || ${o} === null`).assign(s,(0,qr._)`[${o}]`)}}}function cke({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,qr._)`${t} !== undefined`,()=>e.assign((0,qr._)`${t}[${r}]`,n))}function g9(e,t,r,n=i0.Correct){let o=n===i0.Correct?qr.operators.EQ:qr.operators.NEQ,i;switch(e){case"null":return(0,qr._)`${t} ${o} null`;case"array":i=(0,qr._)`Array.isArray(${t})`;break;case"object":i=(0,qr._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=a((0,qr._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=a();break;default:return(0,qr._)`typeof ${t} ${o} ${e}`}return n===i0.Correct?i:(0,qr.not)(i);function a(s=qr.nil){return(0,qr.and)((0,qr._)`typeof ${t} == "number"`,s,r?(0,qr._)`isFinite(${t})`:qr.nil)}}es.checkDataType=g9;function S9(e,t,r,n){if(e.length===1)return g9(e[0],t,r,n);let o,i=(0,oY.toHash)(e);if(i.array&&i.object){let a=(0,qr._)`typeof ${t} != "object"`;o=i.null?a:(0,qr._)`!${t} || ${a}`,delete i.null,delete i.array,delete i.object}else o=qr.nil;i.number&&delete i.integer;for(let a in i)o=(0,qr.and)(o,g9(a,t,r,n));return o}es.checkDataTypes=S9;var lke={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,qr._)`{type: ${e}}`:(0,qr._)`{type: ${t}}`};function v9(e){let t=uke(e);(0,nke.reportError)(t,lke)}es.reportTypeError=v9;function uke(e){let{gen:t,data:r,schema:n}=e,o=(0,oY.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var cY=L(mC=>{"use strict";Object.defineProperty(mC,"__esModule",{value:!0});mC.assignDefaults=void 0;var a0=kr(),pke=ln();function dke(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)sY(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>sY(e,i,o.default))}mC.assignDefaults=dke;function sY(e,t,r){let{gen:n,compositeRule:o,data:i,opts:a}=e;if(r===void 0)return;let s=(0,a0._)`${i}${(0,a0.getProperty)(t)}`;if(o){(0,pke.checkStrictMode)(e,`default is ignored for: ${s}`);return}let c=(0,a0._)`${s} === undefined`;a.useDefaults==="empty"&&(c=(0,a0._)`${c} || ${s} === null || ${s} === ""`),n.if(c,(0,a0._)`${s} = ${(0,a0.stringify)(r)}`)}});var hl=L(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.validateUnion=ho.validateArray=ho.usePattern=ho.callValidateCode=ho.schemaProperties=ho.allSchemaProperties=ho.noPropertyInData=ho.propertyInData=ho.isOwnProperty=ho.hasPropFunc=ho.reportMissingProp=ho.checkMissingProp=ho.checkReportMissingProp=void 0;var Vo=kr(),b9=ln(),zf=ml(),_ke=ln();function fke(e,t){let{gen:r,data:n,it:o}=e;r.if(E9(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Vo._)`${t}`},!0),e.error()})}ho.checkReportMissingProp=fke;function mke({gen:e,data:t,it:{opts:r}},n,o){return(0,Vo.or)(...n.map(i=>(0,Vo.and)(E9(e,t,i,r.ownProperties),(0,Vo._)`${o} = ${i}`)))}ho.checkMissingProp=mke;function hke(e,t){e.setParams({missingProperty:t},!0),e.error()}ho.reportMissingProp=hke;function lY(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Vo._)`Object.prototype.hasOwnProperty`})}ho.hasPropFunc=lY;function x9(e,t,r){return(0,Vo._)`${lY(e)}.call(${t}, ${r})`}ho.isOwnProperty=x9;function yke(e,t,r,n){let o=(0,Vo._)`${t}${(0,Vo.getProperty)(r)} !== undefined`;return n?(0,Vo._)`${o} && ${x9(e,t,r)}`:o}ho.propertyInData=yke;function E9(e,t,r,n){let o=(0,Vo._)`${t}${(0,Vo.getProperty)(r)} === undefined`;return n?(0,Vo.or)(o,(0,Vo.not)(x9(e,t,r))):o}ho.noPropertyInData=E9;function uY(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}ho.allSchemaProperties=uY;function gke(e,t){return uY(t).filter(r=>!(0,b9.alwaysValidSchema)(e,t[r]))}ho.schemaProperties=gke;function Ske({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:a},s,c,p){let d=p?(0,Vo._)`${e}, ${t}, ${n}${o}`:t,f=[[zf.default.instancePath,(0,Vo.strConcat)(zf.default.instancePath,i)],[zf.default.parentData,a.parentData],[zf.default.parentDataProperty,a.parentDataProperty],[zf.default.rootData,zf.default.rootData]];a.opts.dynamicRef&&f.push([zf.default.dynamicAnchors,zf.default.dynamicAnchors]);let m=(0,Vo._)`${d}, ${r.object(...f)}`;return c!==Vo.nil?(0,Vo._)`${s}.call(${c}, ${m})`:(0,Vo._)`${s}(${m})`}ho.callValidateCode=Ske;var vke=(0,Vo._)`new RegExp`;function bke({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,i=o(r,n);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,Vo._)`${o.code==="new RegExp"?vke:(0,_ke.useFunc)(e,o)}(${r}, ${n})`})}ho.usePattern=bke;function xke(e){let{gen:t,data:r,keyword:n,it:o}=e,i=t.name("valid");if(o.allErrors){let s=t.let("valid",!0);return a(()=>t.assign(s,!1)),s}return t.var(i,!0),a(()=>t.break()),i;function a(s){let c=t.const("len",(0,Vo._)`${r}.length`);t.forRange("i",0,c,p=>{e.subschema({keyword:n,dataProp:p,dataPropType:b9.Type.Num},i),t.if((0,Vo.not)(i),s)})}}ho.validateArray=xke;function Eke(e){let{gen:t,schema:r,keyword:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,b9.alwaysValidSchema)(o,c))&&!o.opts.unevaluated)return;let a=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((c,p)=>{let d=e.subschema({keyword:n,schemaProp:p,compositeRule:!0},s);t.assign(a,(0,Vo._)`${a} || ${s}`),e.mergeValidEvaluated(d,s)||t.if((0,Vo.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}ho.validateUnion=Eke});var _Y=L(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.validateKeywordUsage=hp.validSchemaType=hp.funcKeywordCode=hp.macroKeywordCode=void 0;var vs=kr(),wy=ml(),Tke=hl(),Dke=Ax();function Ake(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:a}=e,s=t.macro.call(a.self,o,i,a),c=dY(r,n,s);a.opts.validateSchema!==!1&&a.self.validateSchema(s,!0);let p=r.name("valid");e.subschema({schema:s,schemaPath:vs.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},p),e.pass(p,()=>e.error(!0))}hp.macroKeywordCode=Ake;function wke(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:a,$data:s,it:c}=e;kke(c,t);let p=!s&&t.compile?t.compile.call(c.self,i,a,c):t.validate,d=dY(n,o,p),f=n.let("valid");e.block$data(f,m),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function m(){if(t.errors===!1)S(),t.modifying&&pY(e),x(()=>e.error());else{let A=t.async?y():g();t.modifying&&pY(e),x(()=>Ike(e,A))}}function y(){let A=n.let("ruleErrs",null);return n.try(()=>S((0,vs._)`await `),I=>n.assign(f,!1).if((0,vs._)`${I} instanceof ${c.ValidationError}`,()=>n.assign(A,(0,vs._)`${I}.errors`),()=>n.throw(I))),A}function g(){let A=(0,vs._)`${d}.errors`;return n.assign(A,null),S(vs.nil),A}function S(A=t.async?(0,vs._)`await `:vs.nil){let I=c.opts.passContext?wy.default.this:wy.default.self,E=!("compile"in t&&!s||t.schema===!1);n.assign(f,(0,vs._)`${A}${(0,Tke.callValidateCode)(e,d,I,E)}`,t.modifying)}function x(A){var I;n.if((0,vs.not)((I=t.valid)!==null&&I!==void 0?I:f),A)}}hp.funcKeywordCode=wke;function pY(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,vs._)`${n.parentData}[${n.parentDataProperty}]`))}function Ike(e,t){let{gen:r}=e;r.if((0,vs._)`Array.isArray(${t})`,()=>{r.assign(wy.default.vErrors,(0,vs._)`${wy.default.vErrors} === null ? ${t} : ${wy.default.vErrors}.concat(${t})`).assign(wy.default.errors,(0,vs._)`${wy.default.vErrors}.length`),(0,Dke.extendErrors)(e)},()=>e.error())}function kke({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function dY(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,vs.stringify)(r)})}function Cke(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}hp.validSchemaType=Cke;function Pke({schema:e,opts:t,self:r,errSchemaPath:n},o,i){if(Array.isArray(o.keyword)?!o.keyword.includes(i):o.keyword!==i)throw new Error("ajv implementation error");let a=o.dependencies;if(a?.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${i}: ${a.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[i])){let c=`keyword "${i}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}hp.validateKeywordUsage=Pke});var mY=L(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.extendSubschemaMode=Vf.extendSubschemaData=Vf.getSubschema=void 0;var yp=kr(),fY=ln();function Oke(e,{keyword:t,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:i,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let s=e.schema[t];return r===void 0?{schema:s,schemaPath:(0,yp._)`${e.schemaPath}${(0,yp.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:(0,yp._)`${e.schemaPath}${(0,yp.getProperty)(t)}${(0,yp.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,fY.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||i===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:a,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}Vf.getSubschema=Oke;function Nke(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:i,propertyName:a}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:s}=t;if(r!==void 0){let{errorPath:p,dataPathArr:d,opts:f}=t,m=s.let("data",(0,yp._)`${t.data}${(0,yp.getProperty)(r)}`,!0);c(m),e.errorPath=(0,yp.str)`${p}${(0,fY.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,yp._)`${r}`,e.dataPathArr=[...d,e.parentDataProperty]}if(o!==void 0){let p=o instanceof yp.Name?o:s.let("data",o,!0);c(p),a!==void 0&&(e.propertyName=a)}i&&(e.dataTypes=i);function c(p){e.data=p,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,p]}}Vf.extendSubschemaData=Nke;function Fke(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:i}){n!==void 0&&(e.compositeRule=n),o!==void 0&&(e.createErrors=o),i!==void 0&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=r}Vf.extendSubschemaMode=Fke});var T9=L((qwt,hY)=>{"use strict";hY.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;o--!==0;){var a=i[o];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r}});var gY=L((Uwt,yY)=>{"use strict";var Jf=yY.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},o=r.post||function(){};hC(t,n,o,e,"",e)};Jf.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Jf.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Jf.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Jf.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function hC(e,t,r,n,o,i,a,s,c,p){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,o,i,a,s,c,p);for(var d in n){var f=n[d];if(Array.isArray(f)){if(d in Jf.arrayKeywords)for(var m=0;m{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.getSchemaRefs=Gs.resolveUrl=Gs.normalizeId=Gs._getFullPath=Gs.getFullPath=Gs.inlineRef=void 0;var Lke=ln(),$ke=T9(),Mke=gY(),jke=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Bke(e,t=!0){return typeof e=="boolean"?!0:t===!0?!D9(e):t?SY(e)<=t:!1}Gs.inlineRef=Bke;var qke=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function D9(e){for(let t in e){if(qke.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(D9)||typeof r=="object"&&D9(r))return!0}return!1}function SY(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!jke.has(r)&&(typeof e[r]=="object"&&(0,Lke.eachItem)(e[r],n=>t+=SY(n)),t===1/0))return 1/0}return t}function vY(e,t="",r){r!==!1&&(t=s0(t));let n=e.parse(t);return bY(e,n)}Gs.getFullPath=vY;function bY(e,t){return e.serialize(t).split("#")[0]+"#"}Gs._getFullPath=bY;var Uke=/#\/?$/;function s0(e){return e?e.replace(Uke,""):""}Gs.normalizeId=s0;function zke(e,t,r){return r=s0(r),e.resolve(t,r)}Gs.resolveUrl=zke;var Vke=/^[a-z_][-a-z0-9._]*$/i;function Jke(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=s0(e[r]||t),i={"":o},a=vY(n,o,!1),s={},c=new Set;return Mke(e,{allKeys:!0},(f,m,y,g)=>{if(g===void 0)return;let S=a+m,x=i[g];typeof f[r]=="string"&&(x=A.call(this,f[r])),I.call(this,f.$anchor),I.call(this,f.$dynamicAnchor),i[m]=x;function A(E){let C=this.opts.uriResolver.resolve;if(E=s0(x?C(x,E):E),c.has(E))throw d(E);c.add(E);let F=this.refs[E];return typeof F=="string"&&(F=this.refs[F]),typeof F=="object"?p(f,F.schema,E):E!==s0(S)&&(E[0]==="#"?(p(f,s[E],E),s[E]=f):this.refs[E]=S),E}function I(E){if(typeof E=="string"){if(!Vke.test(E))throw new Error(`invalid anchor "${E}"`);A.call(this,`#${E}`)}}}),s;function p(f,m,y){if(m!==void 0&&!$ke(f,m))throw d(y)}function d(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Gs.getSchemaRefs=Jke});var c0=L(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});Kf.getData=Kf.KeywordCxt=Kf.validateFunctionCode=void 0;var AY=tY(),xY=wx(),w9=y9(),yC=wx(),Kke=cY(),Cx=_Y(),A9=mY(),Zt=kr(),Ar=ml(),Gke=Ix(),Qd=ln(),kx=Ax();function Hke(e){if(kY(e)&&(CY(e),IY(e))){Qke(e);return}wY(e,()=>(0,AY.topBoolOrEmptySchema)(e))}Kf.validateFunctionCode=Hke;function wY({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,Zt._)`${Ar.default.data}, ${Ar.default.valCxt}`,n.$async,()=>{e.code((0,Zt._)`"use strict"; ${EY(r,o)}`),Wke(e,o),e.code(i)}):e.func(t,(0,Zt._)`${Ar.default.data}, ${Zke(o)}`,n.$async,()=>e.code(EY(r,o)).code(i))}function Zke(e){return(0,Zt._)`{${Ar.default.instancePath}="", ${Ar.default.parentData}, ${Ar.default.parentDataProperty}, ${Ar.default.rootData}=${Ar.default.data}${e.dynamicRef?(0,Zt._)`, ${Ar.default.dynamicAnchors}={}`:Zt.nil}}={}`}function Wke(e,t){e.if(Ar.default.valCxt,()=>{e.var(Ar.default.instancePath,(0,Zt._)`${Ar.default.valCxt}.${Ar.default.instancePath}`),e.var(Ar.default.parentData,(0,Zt._)`${Ar.default.valCxt}.${Ar.default.parentData}`),e.var(Ar.default.parentDataProperty,(0,Zt._)`${Ar.default.valCxt}.${Ar.default.parentDataProperty}`),e.var(Ar.default.rootData,(0,Zt._)`${Ar.default.valCxt}.${Ar.default.rootData}`),t.dynamicRef&&e.var(Ar.default.dynamicAnchors,(0,Zt._)`${Ar.default.valCxt}.${Ar.default.dynamicAnchors}`)},()=>{e.var(Ar.default.instancePath,(0,Zt._)`""`),e.var(Ar.default.parentData,(0,Zt._)`undefined`),e.var(Ar.default.parentDataProperty,(0,Zt._)`undefined`),e.var(Ar.default.rootData,Ar.default.data),t.dynamicRef&&e.var(Ar.default.dynamicAnchors,(0,Zt._)`{}`)})}function Qke(e){let{schema:t,opts:r,gen:n}=e;wY(e,()=>{r.$comment&&t.$comment&&OY(e),rCe(e),n.let(Ar.default.vErrors,null),n.let(Ar.default.errors,0),r.unevaluated&&Xke(e),PY(e),iCe(e)})}function Xke(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Zt._)`${r}.evaluated`),t.if((0,Zt._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Zt._)`${e.evaluated}.props`,(0,Zt._)`undefined`)),t.if((0,Zt._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Zt._)`${e.evaluated}.items`,(0,Zt._)`undefined`))}function EY(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Zt._)`/*# sourceURL=${r} */`:Zt.nil}function Yke(e,t){if(kY(e)&&(CY(e),IY(e))){eCe(e,t);return}(0,AY.boolOrEmptySchema)(e,t)}function IY({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function kY(e){return typeof e.schema!="boolean"}function eCe(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&OY(e),nCe(e),oCe(e);let i=n.const("_errs",Ar.default.errors);PY(e,i),n.var(t,(0,Zt._)`${i} === ${Ar.default.errors}`)}function CY(e){(0,Qd.checkUnknownRules)(e),tCe(e)}function PY(e,t){if(e.opts.jtd)return TY(e,[],!1,t);let r=(0,xY.getSchemaTypes)(e.schema),n=(0,xY.coerceAndCheckDataType)(e,r);TY(e,r,!n,t)}function tCe(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Qd.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function rCe(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Qd.checkStrictMode)(e,"default is ignored in the schema root")}function nCe(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Gke.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function oCe(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function OY({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,Zt._)`${Ar.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let a=(0,Zt.str)`${n}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,Zt._)`${Ar.default.self}.opts.$comment(${i}, ${a}, ${s}.schema)`)}}function iCe(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,Zt._)`${Ar.default.errors} === 0`,()=>t.return(Ar.default.data),()=>t.throw((0,Zt._)`new ${o}(${Ar.default.vErrors})`)):(t.assign((0,Zt._)`${n}.errors`,Ar.default.vErrors),i.unevaluated&&aCe(e),t.return((0,Zt._)`${Ar.default.errors} === 0`))}function aCe({gen:e,evaluated:t,props:r,items:n}){r instanceof Zt.Name&&e.assign((0,Zt._)`${t}.props`,r),n instanceof Zt.Name&&e.assign((0,Zt._)`${t}.items`,n)}function TY(e,t,r,n){let{gen:o,schema:i,data:a,allErrors:s,opts:c,self:p}=e,{RULES:d}=p;if(i.$ref&&(c.ignoreKeywordsWithRef||!(0,Qd.schemaHasRulesButRef)(i,d))){o.block(()=>FY(e,"$ref",d.all.$ref.definition));return}c.jtd||sCe(e,t),o.block(()=>{for(let m of d.rules)f(m);f(d.post)});function f(m){(0,w9.shouldUseGroup)(i,m)&&(m.type?(o.if((0,yC.checkDataType)(m.type,a,c.strictNumbers)),DY(e,m),t.length===1&&t[0]===m.type&&r&&(o.else(),(0,yC.reportTypeError)(e)),o.endIf()):DY(e,m),s||o.if((0,Zt._)`${Ar.default.errors} === ${n||0}`))}}function DY(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,Kke.assignDefaults)(e,t.type),r.block(()=>{for(let i of t.rules)(0,w9.shouldUseRule)(n,i)&&FY(e,i.keyword,i.definition,t.type)})}function sCe(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(cCe(e,t),e.opts.allowUnionTypes||lCe(e,t),uCe(e,e.dataTypes))}function cCe(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{NY(e.dataTypes,r)||I9(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),dCe(e,t)}}function lCe(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&I9(e,"use allowUnionTypes to allow union type keyword")}function uCe(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,w9.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(a=>pCe(t,a))&&I9(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function pCe(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function NY(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function dCe(e,t){let r=[];for(let n of e.dataTypes)NY(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function I9(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Qd.checkStrictMode)(e,t,e.opts.strictTypes)}var gC=class{constructor(t,r,n){if((0,Cx.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Qd.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",RY(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Cx.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Ar.default.errors))}result(t,r,n){this.failResult((0,Zt.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,Zt.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,Zt._)`${r} !== undefined && (${(0,Zt.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?kx.reportExtraError:kx.reportError)(this,this.def.error,r)}$dataError(){(0,kx.reportError)(this,this.def.$dataError||kx.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,kx.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=Zt.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=Zt.nil,r=Zt.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:a}=this;n.if((0,Zt.or)((0,Zt._)`${o} === undefined`,r)),t!==Zt.nil&&n.assign(t,!0),(i.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==Zt.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,Zt.or)(a(),s());function a(){if(n.length){if(!(r instanceof Zt.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,Zt._)`${(0,yC.checkDataTypes)(c,r,i.opts.strictNumbers,yC.DataType.Wrong)}`}return Zt.nil}function s(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,Zt._)`!${c}(${r})`}return Zt.nil}}subschema(t,r){let n=(0,A9.getSubschema)(this.it,t);(0,A9.extendSubschemaData)(n,this.it,t),(0,A9.extendSubschemaMode)(n,t);let o={...this.it,...n,items:void 0,props:void 0};return Yke(o,r),o}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Qd.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Qd.mergeEvaluated.items(o,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(t,Zt.Name)),!0}};Kf.KeywordCxt=gC;function FY(e,t,r,n){let o=new gC(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Cx.funcKeywordCode)(o,r):"macro"in r?(0,Cx.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Cx.funcKeywordCode)(o,r)}var _Ce=/^\/(?:[^~]|~0|~1)*$/,fCe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function RY(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return Ar.default.rootData;if(e[0]==="/"){if(!_Ce.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=Ar.default.rootData}else{let p=fCe.exec(e);if(!p)throw new Error(`Invalid JSON-pointer: ${e}`);let d=+p[1];if(o=p[2],o==="#"){if(d>=t)throw new Error(c("property/index",d));return n[t-d]}if(d>t)throw new Error(c("data",d));if(i=r[t-d],!o)return i}let a=i,s=o.split("/");for(let p of s)p&&(i=(0,Zt._)`${i}${(0,Zt.getProperty)((0,Qd.unescapeJsonPointer)(p))}`,a=(0,Zt._)`${a} && ${i}`);return a;function c(p,d){return`Cannot access ${p} ${d} levels up, current level is ${t}`}}Kf.getData=RY});var Px=L(C9=>{"use strict";Object.defineProperty(C9,"__esModule",{value:!0});var k9=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};C9.default=k9});var l0=L(N9=>{"use strict";Object.defineProperty(N9,"__esModule",{value:!0});var P9=Ix(),O9=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,P9.resolveUrl)(t,r,n),this.missingSchema=(0,P9.normalizeId)((0,P9.getFullPath)(t,this.missingRef))}};N9.default=O9});var Ox=L(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.resolveSchema=yl.getCompilingSchema=yl.resolveRef=yl.compileSchema=yl.SchemaEnv=void 0;var _u=kr(),mCe=Px(),Iy=ml(),fu=Ix(),LY=ln(),hCe=c0(),u0=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,fu.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};yl.SchemaEnv=u0;function R9(e){let t=$Y.call(this,e);if(t)return t;let r=(0,fu.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,a=new _u.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),s;e.$async&&(s=a.scopeValue("Error",{ref:mCe.default,code:(0,_u._)`require("ajv/dist/runtime/validation_error").default`}));let c=a.scopeName("validate");e.validateName=c;let p={gen:a,allErrors:this.opts.allErrors,data:Iy.default.data,parentData:Iy.default.parentData,parentDataProperty:Iy.default.parentDataProperty,dataNames:[Iy.default.data],dataPathArr:[_u.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,_u.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:_u.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,_u._)`""`,opts:this.opts,self:this},d;try{this._compilations.add(e),(0,hCe.validateFunctionCode)(p),a.optimize(this.opts.code.optimize);let f=a.toString();d=`${a.scopeRefs(Iy.default.scope)}return ${f}`,this.opts.code.process&&(d=this.opts.code.process(d,e));let y=new Function(`${Iy.default.self}`,`${Iy.default.scope}`,d)(this,this.scope.get());if(this.scope.value(c,{ref:y}),y.errors=null,y.schema=e.schema,y.schemaEnv=e,e.$async&&(y.$async=!0),this.opts.code.source===!0&&(y.source={validateName:c,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:g,items:S}=p;y.evaluated={props:g instanceof _u.Name?void 0:g,items:S instanceof _u.Name?void 0:S,dynamicProps:g instanceof _u.Name,dynamicItems:S instanceof _u.Name},y.source&&(y.source.evaluated=(0,_u.stringify)(y.evaluated))}return e.validate=y,e}catch(f){throw delete e.validate,delete e.validateName,d&&this.logger.error("Error compiling schema, function code:",d),f}finally{this._compilations.delete(e)}}yl.compileSchema=R9;function yCe(e,t,r){var n;r=(0,fu.resolveUrl)(this.opts.uriResolver,t,r);let o=e.refs[r];if(o)return o;let i=vCe.call(this,e,r);if(i===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:s}=this.opts;a&&(i=new u0({schema:a,schemaId:s,root:e,baseId:t}))}if(i!==void 0)return e.refs[r]=gCe.call(this,i)}yl.resolveRef=yCe;function gCe(e){return(0,fu.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:R9.call(this,e)}function $Y(e){for(let t of this._compilations)if(SCe(t,e))return t}yl.getCompilingSchema=$Y;function SCe(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function vCe(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||SC.call(this,e,t)}function SC(e,t){let r=this.opts.uriResolver.parse(t),n=(0,fu._getFullPath)(this.opts.uriResolver,r),o=(0,fu.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return F9.call(this,r,e);let i=(0,fu.normalizeId)(n),a=this.refs[i]||this.schemas[i];if(typeof a=="string"){let s=SC.call(this,e,a);return typeof s?.schema!="object"?void 0:F9.call(this,r,s)}if(typeof a?.schema=="object"){if(a.validate||R9.call(this,a),i===(0,fu.normalizeId)(t)){let{schema:s}=a,{schemaId:c}=this.opts,p=s[c];return p&&(o=(0,fu.resolveUrl)(this.opts.uriResolver,o,p)),new u0({schema:s,schemaId:c,root:e,baseId:o})}return F9.call(this,r,a)}}yl.resolveSchema=SC;var bCe=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function F9(e,{baseId:t,schema:r,root:n}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(let s of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,LY.unescapeFragment)(s)];if(c===void 0)return;r=c;let p=typeof r=="object"&&r[this.opts.schemaId];!bCe.has(s)&&p&&(t=(0,fu.resolveUrl)(this.opts.uriResolver,t,p))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,LY.schemaHasRulesButRef)(r,this.RULES)){let s=(0,fu.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=SC.call(this,n,s)}let{schemaId:a}=this.opts;if(i=i||new u0({schema:r,schemaId:a,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var MY=L((Hwt,xCe)=>{xCe.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var $9=L((Zwt,UY)=>{"use strict";var ECe=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),BY=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function L9(e){let t="",r=0,n=0;for(n=0;n=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}var TCe=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function jY(e){return e.length=0,!0}function DCe(e,t,r){if(e.length){let n=L9(e);if(n!=="")t.push(n);else return r.error=!0,!1;e.length=0}return!0}function ACe(e){let t=0,r={error:!1,address:"",zone:""},n=[],o=[],i=!1,a=!1,s=DCe;for(let c=0;c7){r.error=!0;break}c>0&&e[c-1]===":"&&(i=!0),n.push(":");continue}else if(p==="%"){if(!s(o,n,r))break;s=jY}else{o.push(p);continue}}return o.length&&(s===jY?r.zone=o.join(""):a?n.push(o.join("")):n.push(L9(o))),r.address=n.join(""),r}function qY(e){if(wCe(e,":")<2)return{host:e,isIPV6:!1};let t=ACe(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:n}}}function wCe(e,t){let r=0;for(let n=0;n{"use strict";var{isUUID:PCe}=$9(),OCe=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,NCe=["http","https","ws","wss","urn","urn:uuid"];function FCe(e){return NCe.indexOf(e)!==-1}function M9(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function zY(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function VY(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function RCe(e){return e.secure=M9(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function LCe(e){if((e.port===(M9(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function $Ce(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(OCe);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let o=`${n}:${t.nid||e.nid}`,i=j9(o);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function MCe(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),o=`${r}:${t.nid||n}`,i=j9(o);i&&(e=i.serialize(e,t));let a=e,s=e.nss;return a.path=`${n||t.nid}:${s}`,t.skipEscape=!0,a}function jCe(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!PCe(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function BCe(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var JY={scheme:"http",domainHost:!0,parse:zY,serialize:VY},qCe={scheme:"https",domainHost:JY.domainHost,parse:zY,serialize:VY},vC={scheme:"ws",domainHost:!0,parse:RCe,serialize:LCe},UCe={scheme:"wss",domainHost:vC.domainHost,parse:vC.parse,serialize:vC.serialize},zCe={scheme:"urn",parse:$Ce,serialize:MCe,skipNormalize:!0},VCe={scheme:"urn:uuid",parse:jCe,serialize:BCe,skipNormalize:!0},bC={http:JY,https:qCe,ws:vC,wss:UCe,urn:zCe,"urn:uuid":VCe};Object.setPrototypeOf(bC,null);function j9(e){return e&&(bC[e]||bC[e.toLowerCase()])||void 0}KY.exports={wsIsSecure:M9,SCHEMES:bC,isValidSchemeName:FCe,getSchemeHandler:j9}});var WY=L((Qwt,EC)=>{"use strict";var{normalizeIPv6:JCe,removeDotSegments:Nx,recomposeAuthority:KCe,normalizeComponentEncoding:xC,isIPv4:GCe,nonSimpleDomain:HCe}=$9(),{SCHEMES:ZCe,getSchemeHandler:HY}=GY();function WCe(e,t){return typeof e=="string"?e=gp(Xd(e,t),t):typeof e=="object"&&(e=Xd(gp(e,t),t)),e}function QCe(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},o=ZY(Xd(e,n),Xd(t,n),n,!0);return n.skipEscape=!0,gp(o,n)}function ZY(e,t,r,n){let o={};return n||(e=Xd(gp(e,r),r),t=Xd(gp(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=Nx(t.path||""),o.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=Nx(t.path||""),o.query=t.query):(t.path?(t.path[0]==="/"?o.path=Nx(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?o.path="/"+t.path:e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path,o.path=Nx(o.path)),o.query=t.query):(o.path=e.path,t.query!==void 0?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function XCe(e,t,r){return typeof e=="string"?(e=unescape(e),e=gp(xC(Xd(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=gp(xC(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=gp(xC(Xd(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=gp(xC(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function gp(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),o=[],i=HY(n.scheme||r.scheme);i&&i.serialize&&i.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&o.push(r.scheme,":");let a=KCe(r);if(a!==void 0&&(n.reference!=="suffix"&&o.push("//"),o.push(a),r.path&&r.path[0]!=="/"&&o.push("/")),r.path!==void 0){let s=r.path;!n.absolutePath&&(!i||!i.absolutePath)&&(s=Nx(s)),a===void 0&&s[0]==="/"&&s[1]==="/"&&(s="/%2F"+s.slice(2)),o.push(s)}return r.query!==void 0&&o.push("?",r.query),r.fragment!==void 0&&o.push("#",r.fragment),o.join("")}var YCe=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Xd(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},o=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let i=e.match(YCe);if(i){if(n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5]),n.host)if(GCe(n.host)===!1){let c=JCe(n.host);n.host=c.host.toLowerCase(),o=c.isIPV6}else o=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let a=HY(r.scheme||n.scheme);if(!r.unicodeSupport&&(!a||!a.unicodeSupport)&&n.host&&(r.domainHost||a&&a.domainHost)&&o===!1&&HCe(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(s){n.error=n.error||"Host's domain name can not be converted to ASCII: "+s}(!a||a&&!a.skipNormalize)&&(e.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=unescape(n.host))),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),a&&a.parse&&a.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var B9={SCHEMES:ZCe,normalize:WCe,resolve:QCe,resolveComponent:ZY,equal:XCe,serialize:gp,parse:Xd};EC.exports=B9;EC.exports.default=B9;EC.exports.fastUri=B9});var XY=L(q9=>{"use strict";Object.defineProperty(q9,"__esModule",{value:!0});var QY=WY();QY.code='require("ajv/dist/runtime/uri").default';q9.default=QY});var V9=L(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.CodeGen=Ea.Name=Ea.nil=Ea.stringify=Ea.str=Ea._=Ea.KeywordCxt=void 0;var ePe=c0();Object.defineProperty(Ea,"KeywordCxt",{enumerable:!0,get:function(){return ePe.KeywordCxt}});var p0=kr();Object.defineProperty(Ea,"_",{enumerable:!0,get:function(){return p0._}});Object.defineProperty(Ea,"str",{enumerable:!0,get:function(){return p0.str}});Object.defineProperty(Ea,"stringify",{enumerable:!0,get:function(){return p0.stringify}});Object.defineProperty(Ea,"nil",{enumerable:!0,get:function(){return p0.nil}});Object.defineProperty(Ea,"Name",{enumerable:!0,get:function(){return p0.Name}});Object.defineProperty(Ea,"CodeGen",{enumerable:!0,get:function(){return p0.CodeGen}});var tPe=Px(),nee=l0(),rPe=h9(),Fx=Ox(),nPe=kr(),Rx=Ix(),TC=wx(),z9=ln(),YY=MY(),oPe=XY(),oee=(e,t)=>new RegExp(e,t);oee.code="new RegExp";var iPe=["removeAdditional","useDefaults","coerceTypes"],aPe=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),sPe={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},cPe={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},eee=200;function lPe(e){var t,r,n,o,i,a,s,c,p,d,f,m,y,g,S,x,A,I,E,C,F,O,$,N,U;let ge=e.strict,Te=(t=e.code)===null||t===void 0?void 0:t.optimize,ke=Te===!0||Te===void 0?1:Te||0,Ve=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:oee,me=(o=e.uriResolver)!==null&&o!==void 0?o:oPe.default;return{strictSchema:(a=(i=e.strictSchema)!==null&&i!==void 0?i:ge)!==null&&a!==void 0?a:!0,strictNumbers:(c=(s=e.strictNumbers)!==null&&s!==void 0?s:ge)!==null&&c!==void 0?c:!0,strictTypes:(d=(p=e.strictTypes)!==null&&p!==void 0?p:ge)!==null&&d!==void 0?d:"log",strictTuples:(m=(f=e.strictTuples)!==null&&f!==void 0?f:ge)!==null&&m!==void 0?m:"log",strictRequired:(g=(y=e.strictRequired)!==null&&y!==void 0?y:ge)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:ke,regExp:Ve}:{optimize:ke,regExp:Ve},loopRequired:(S=e.loopRequired)!==null&&S!==void 0?S:eee,loopEnum:(x=e.loopEnum)!==null&&x!==void 0?x:eee,meta:(A=e.meta)!==null&&A!==void 0?A:!0,messages:(I=e.messages)!==null&&I!==void 0?I:!0,inlineRefs:(E=e.inlineRefs)!==null&&E!==void 0?E:!0,schemaId:(C=e.schemaId)!==null&&C!==void 0?C:"$id",addUsedSchema:(F=e.addUsedSchema)!==null&&F!==void 0?F:!0,validateSchema:(O=e.validateSchema)!==null&&O!==void 0?O:!0,validateFormats:($=e.validateFormats)!==null&&$!==void 0?$:!0,unicodeRegExp:(N=e.unicodeRegExp)!==null&&N!==void 0?N:!0,int32range:(U=e.int32range)!==null&&U!==void 0?U:!0,uriResolver:me}}var Lx=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...lPe(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new nPe.ValueScope({scope:{},prefixes:aPe,es5:r,lines:n}),this.logger=mPe(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,rPe.getRules)(),tee.call(this,sPe,t,"NOT SUPPORTED"),tee.call(this,cPe,t,"DEPRECATED","warn"),this._metaOpts=_Pe.call(this),t.formats&&pPe.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&dPe.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),uPe.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=YY;n==="id"&&(o={...YY},o.id=o.$id,delete o.$id),r&&t&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let o=n(r);return"$async"in n||(this.errors=n.errors),o}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return o.call(this,t,r);async function o(d,f){await i.call(this,d.$schema);let m=this._addSchema(d,f);return m.validate||a.call(this,m)}async function i(d){d&&!this.getSchema(d)&&await o.call(this,{$ref:d},!0)}async function a(d){try{return this._compileSchemaEnv(d)}catch(f){if(!(f instanceof nee.default))throw f;return s.call(this,f),await c.call(this,f.missingSchema),a.call(this,d)}}function s({missingSchema:d,missingRef:f}){if(this.refs[d])throw new Error(`AnySchema ${d} is loaded but ${f} cannot be resolved`)}async function c(d){let f=await p.call(this,d);this.refs[d]||await i.call(this,f.$schema),this.refs[d]||this.addSchema(f,d,r)}async function p(d){let f=this._loading[d];if(f)return f;try{return await(this._loading[d]=n(d))}finally{delete this._loading[d]}}}addSchema(t,r,n,o=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,o);return this}let i;if(typeof t=="object"){let{schemaId:a}=this.opts;if(i=t[a],i!==void 0&&typeof i!="string")throw new Error(`schema ${a} must be string`)}return r=(0,Rx.normalizeId)(r||i),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,o,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let o=this.validate(n,t);if(!o&&r){let i="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(i);else throw new Error(i)}return o}getSchema(t){let r;for(;typeof(r=ree.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new Fx.SchemaEnv({schema:{},schemaId:n});if(r=Fx.resolveSchema.call(this,o,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=ree.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,Rx.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(yPe.call(this,n,r),!r)return(0,z9.eachItem)(n,i=>U9.call(this,i)),this;SPe.call(this,r);let o={...r,type:(0,TC.getJSONTypes)(r.type),schemaType:(0,TC.getJSONTypes)(r.schemaType)};return(0,z9.eachItem)(n,o.type.length===0?i=>U9.call(this,i,o):i=>o.type.forEach(a=>U9.call(this,i,o,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let o=n.rules.findIndex(i=>i.keyword===t);o>=0&&n.rules.splice(o,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(o=>`${n}${o.instancePath} ${o.message}`).reduce((o,i)=>o+r+i)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let o of r){let i=o.split("/").slice(1),a=t;for(let s of i)a=a[s];for(let s in n){let c=n[s];if(typeof c!="object")continue;let{$data:p}=c.definition,d=a[s];p&&d&&(a[s]=iee(d))}}return t}_removeAllSchemas(t,r){for(let n in t){let o=t[n];(!r||r.test(n))&&(typeof o=="string"?delete t[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete t[n]))}}_addSchema(t,r,n,o=this.opts.validateSchema,i=this.opts.addUsedSchema){let a,{schemaId:s}=this.opts;if(typeof t=="object")a=t[s];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,Rx.normalizeId)(a||n);let p=Rx.getSchemaRefs.call(this,t,n);return c=new Fx.SchemaEnv({schema:t,schemaId:s,meta:r,baseId:n,localRefs:p}),this._cache.set(c.schema,c),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Fx.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{Fx.compileSchema.call(this,t)}finally{this.opts=r}}};Lx.ValidationError=tPe.default;Lx.MissingRefError=nee.default;Ea.default=Lx;function tee(e,t,r,n="error"){for(let o in e){let i=o;i in t&&this.logger[n](`${r}: option ${o}. ${e[i]}`)}}function ree(e){return e=(0,Rx.normalizeId)(e),this.schemas[e]||this.refs[e]}function uPe(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function pPe(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function dPe(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function _Pe(){let e={...this.opts};for(let t of iPe)delete e[t];return e}var fPe={log(){},warn(){},error(){}};function mPe(e){if(e===!1)return fPe;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var hPe=/^[a-z_$][a-z0-9_$:-]*$/i;function yPe(e,t){let{RULES:r}=this;if((0,z9.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!hPe.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function U9(e,t,r){var n;let o=t?.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:i}=this,a=o?i.post:i.rules.find(({type:c})=>c===r);if(a||(a={type:r,rules:[]},i.rules.push(a)),i.keywords[e]=!0,!t)return;let s={keyword:e,definition:{...t,type:(0,TC.getJSONTypes)(t.type),schemaType:(0,TC.getJSONTypes)(t.schemaType)}};t.before?gPe.call(this,a,s,t.before):a.rules.push(s),i.all[e]=s,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function gPe(e,t,r){let n=e.rules.findIndex(o=>o.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function SPe(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=iee(t)),e.validateSchema=this.compile(t,!0))}var vPe={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function iee(e){return{anyOf:[e,vPe]}}});var aee=L(J9=>{"use strict";Object.defineProperty(J9,"__esModule",{value:!0});var bPe={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};J9.default=bPe});var wC=L(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});ky.callRef=ky.getValidate=void 0;var xPe=l0(),see=hl(),Hs=kr(),d0=ml(),cee=Ox(),DC=ln(),EPe={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:i,validateName:a,opts:s,self:c}=n,{root:p}=i;if((r==="#"||r==="#/")&&o===p.baseId)return f();let d=cee.resolveRef.call(c,p,o,r);if(d===void 0)throw new xPe.default(n.opts.uriResolver,o,r);if(d instanceof cee.SchemaEnv)return m(d);return y(d);function f(){if(i===p)return AC(e,a,i,i.$async);let g=t.scopeValue("root",{ref:p});return AC(e,(0,Hs._)`${g}.validate`,p,p.$async)}function m(g){let S=lee(e,g);AC(e,S,g,g.$async)}function y(g){let S=t.scopeValue("schema",s.code.source===!0?{ref:g,code:(0,Hs.stringify)(g)}:{ref:g}),x=t.name("valid"),A=e.subschema({schema:g,dataTypes:[],schemaPath:Hs.nil,topSchemaRef:S,errSchemaPath:r},x);e.mergeEvaluated(A),e.ok(x)}}};function lee(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Hs._)`${r.scopeValue("wrapper",{ref:t})}.validate`}ky.getValidate=lee;function AC(e,t,r,n){let{gen:o,it:i}=e,{allErrors:a,schemaEnv:s,opts:c}=i,p=c.passContext?d0.default.this:Hs.nil;n?d():f();function d(){if(!s.$async)throw new Error("async schema referenced by sync schema");let g=o.let("valid");o.try(()=>{o.code((0,Hs._)`await ${(0,see.callValidateCode)(e,t,p)}`),y(t),a||o.assign(g,!0)},S=>{o.if((0,Hs._)`!(${S} instanceof ${i.ValidationError})`,()=>o.throw(S)),m(S),a||o.assign(g,!1)}),e.ok(g)}function f(){e.result((0,see.callValidateCode)(e,t,p),()=>y(t),()=>m(t))}function m(g){let S=(0,Hs._)`${g}.errors`;o.assign(d0.default.vErrors,(0,Hs._)`${d0.default.vErrors} === null ? ${S} : ${d0.default.vErrors}.concat(${S})`),o.assign(d0.default.errors,(0,Hs._)`${d0.default.vErrors}.length`)}function y(g){var S;if(!i.opts.unevaluated)return;let x=(S=r?.validate)===null||S===void 0?void 0:S.evaluated;if(i.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(i.props=DC.mergeEvaluated.props(o,x.props,i.props));else{let A=o.var("props",(0,Hs._)`${g}.evaluated.props`);i.props=DC.mergeEvaluated.props(o,A,i.props,Hs.Name)}if(i.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(i.items=DC.mergeEvaluated.items(o,x.items,i.items));else{let A=o.var("items",(0,Hs._)`${g}.evaluated.items`);i.items=DC.mergeEvaluated.items(o,A,i.items,Hs.Name)}}}ky.callRef=AC;ky.default=EPe});var G9=L(K9=>{"use strict";Object.defineProperty(K9,"__esModule",{value:!0});var TPe=aee(),DPe=wC(),APe=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",TPe.default,DPe.default];K9.default=APe});var uee=L(H9=>{"use strict";Object.defineProperty(H9,"__esModule",{value:!0});var IC=kr(),Gf=IC.operators,kC={maximum:{okStr:"<=",ok:Gf.LTE,fail:Gf.GT},minimum:{okStr:">=",ok:Gf.GTE,fail:Gf.LT},exclusiveMaximum:{okStr:"<",ok:Gf.LT,fail:Gf.GTE},exclusiveMinimum:{okStr:">",ok:Gf.GT,fail:Gf.LTE}},wPe={message:({keyword:e,schemaCode:t})=>(0,IC.str)`must be ${kC[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,IC._)`{comparison: ${kC[e].okStr}, limit: ${t}}`},IPe={keyword:Object.keys(kC),type:"number",schemaType:"number",$data:!0,error:wPe,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,IC._)`${r} ${kC[t].fail} ${n} || isNaN(${r})`)}};H9.default=IPe});var pee=L(Z9=>{"use strict";Object.defineProperty(Z9,"__esModule",{value:!0});var $x=kr(),kPe={message:({schemaCode:e})=>(0,$x.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,$x._)`{multipleOf: ${e}}`},CPe={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:kPe,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,a=t.let("res"),s=i?(0,$x._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${i}`:(0,$x._)`${a} !== parseInt(${a})`;e.fail$data((0,$x._)`(${n} === 0 || (${a} = ${r}/${n}, ${s}))`)}};Z9.default=CPe});var _ee=L(W9=>{"use strict";Object.defineProperty(W9,"__esModule",{value:!0});function dee(e){let t=e.length,r=0,n=0,o;for(;n=55296&&o<=56319&&n{"use strict";Object.defineProperty(Q9,"__esModule",{value:!0});var Cy=kr(),PPe=ln(),OPe=_ee(),NPe={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Cy.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Cy._)`{limit: ${e}}`},FPe={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:NPe,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?Cy.operators.GT:Cy.operators.LT,a=o.opts.unicode===!1?(0,Cy._)`${r}.length`:(0,Cy._)`${(0,PPe.useFunc)(e.gen,OPe.default)}(${r})`;e.fail$data((0,Cy._)`${a} ${i} ${n}`)}};Q9.default=FPe});var mee=L(X9=>{"use strict";Object.defineProperty(X9,"__esModule",{value:!0});var RPe=hl(),LPe=ln(),_0=kr(),$Pe={message:({schemaCode:e})=>(0,_0.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,_0._)`{pattern: ${e}}`},MPe={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:$Pe,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:a}=e,s=a.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=a.opts.code,p=c.code==="new RegExp"?(0,_0._)`new RegExp`:(0,LPe.useFunc)(t,c),d=t.let("valid");t.try(()=>t.assign(d,(0,_0._)`${p}(${i}, ${s}).test(${r})`),()=>t.assign(d,!1)),e.fail$data((0,_0._)`!${d}`)}else{let c=(0,RPe.usePattern)(e,o);e.fail$data((0,_0._)`!${c}.test(${r})`)}}};X9.default=MPe});var hee=L(Y9=>{"use strict";Object.defineProperty(Y9,"__esModule",{value:!0});var Mx=kr(),jPe={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Mx.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Mx._)`{limit: ${e}}`},BPe={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:jPe,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?Mx.operators.GT:Mx.operators.LT;e.fail$data((0,Mx._)`Object.keys(${r}).length ${o} ${n}`)}};Y9.default=BPe});var yee=L(e5=>{"use strict";Object.defineProperty(e5,"__esModule",{value:!0});var jx=hl(),Bx=kr(),qPe=ln(),UPe={message:({params:{missingProperty:e}})=>(0,Bx.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Bx._)`{missingProperty: ${e}}`},zPe={keyword:"required",type:"object",schemaType:"array",$data:!0,error:UPe,code(e){let{gen:t,schema:r,schemaCode:n,data:o,$data:i,it:a}=e,{opts:s}=a;if(!i&&r.length===0)return;let c=r.length>=s.loopRequired;if(a.allErrors?p():d(),s.strictRequired){let y=e.parentSchema.properties,{definedProperties:g}=e.it;for(let S of r)if(y?.[S]===void 0&&!g.has(S)){let x=a.schemaEnv.baseId+a.errSchemaPath,A=`required property "${S}" is not defined at "${x}" (strictRequired)`;(0,qPe.checkStrictMode)(a,A,a.opts.strictRequired)}}function p(){if(c||i)e.block$data(Bx.nil,f);else for(let y of r)(0,jx.checkReportMissingProp)(e,y)}function d(){let y=t.let("missing");if(c||i){let g=t.let("valid",!0);e.block$data(g,()=>m(y,g)),e.ok(g)}else t.if((0,jx.checkMissingProp)(e,r,y)),(0,jx.reportMissingProp)(e,y),t.else()}function f(){t.forOf("prop",n,y=>{e.setParams({missingProperty:y}),t.if((0,jx.noPropertyInData)(t,o,y,s.ownProperties),()=>e.error())})}function m(y,g){e.setParams({missingProperty:y}),t.forOf(y,n,()=>{t.assign(g,(0,jx.propertyInData)(t,o,y,s.ownProperties)),t.if((0,Bx.not)(g),()=>{e.error(),t.break()})},Bx.nil)}}};e5.default=zPe});var gee=L(t5=>{"use strict";Object.defineProperty(t5,"__esModule",{value:!0});var qx=kr(),VPe={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,qx.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,qx._)`{limit: ${e}}`},JPe={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:VPe,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?qx.operators.GT:qx.operators.LT;e.fail$data((0,qx._)`${r}.length ${o} ${n}`)}};t5.default=JPe});var CC=L(r5=>{"use strict";Object.defineProperty(r5,"__esModule",{value:!0});var See=T9();See.code='require("ajv/dist/runtime/equal").default';r5.default=See});var vee=L(o5=>{"use strict";Object.defineProperty(o5,"__esModule",{value:!0});var n5=wx(),Ta=kr(),KPe=ln(),GPe=CC(),HPe={message:({params:{i:e,j:t}})=>(0,Ta.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Ta._)`{i: ${e}, j: ${t}}`},ZPe={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:HPe,code(e){let{gen:t,data:r,$data:n,schema:o,parentSchema:i,schemaCode:a,it:s}=e;if(!n&&!o)return;let c=t.let("valid"),p=i.items?(0,n5.getSchemaTypes)(i.items):[];e.block$data(c,d,(0,Ta._)`${a} === false`),e.ok(c);function d(){let g=t.let("i",(0,Ta._)`${r}.length`),S=t.let("j");e.setParams({i:g,j:S}),t.assign(c,!0),t.if((0,Ta._)`${g} > 1`,()=>(f()?m:y)(g,S))}function f(){return p.length>0&&!p.some(g=>g==="object"||g==="array")}function m(g,S){let x=t.name("item"),A=(0,n5.checkDataTypes)(p,x,s.opts.strictNumbers,n5.DataType.Wrong),I=t.const("indices",(0,Ta._)`{}`);t.for((0,Ta._)`;${g}--;`,()=>{t.let(x,(0,Ta._)`${r}[${g}]`),t.if(A,(0,Ta._)`continue`),p.length>1&&t.if((0,Ta._)`typeof ${x} == "string"`,(0,Ta._)`${x} += "_"`),t.if((0,Ta._)`typeof ${I}[${x}] == "number"`,()=>{t.assign(S,(0,Ta._)`${I}[${x}]`),e.error(),t.assign(c,!1).break()}).code((0,Ta._)`${I}[${x}] = ${g}`)})}function y(g,S){let x=(0,KPe.useFunc)(t,GPe.default),A=t.name("outer");t.label(A).for((0,Ta._)`;${g}--;`,()=>t.for((0,Ta._)`${S} = ${g}; ${S}--;`,()=>t.if((0,Ta._)`${x}(${r}[${g}], ${r}[${S}])`,()=>{e.error(),t.assign(c,!1).break(A)})))}}};o5.default=ZPe});var bee=L(a5=>{"use strict";Object.defineProperty(a5,"__esModule",{value:!0});var i5=kr(),WPe=ln(),QPe=CC(),XPe={message:"must be equal to constant",params:({schemaCode:e})=>(0,i5._)`{allowedValue: ${e}}`},YPe={keyword:"const",$data:!0,error:XPe,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,i5._)`!${(0,WPe.useFunc)(t,QPe.default)}(${r}, ${o})`):e.fail((0,i5._)`${i} !== ${r}`)}};a5.default=YPe});var xee=L(s5=>{"use strict";Object.defineProperty(s5,"__esModule",{value:!0});var Ux=kr(),e6e=ln(),t6e=CC(),r6e={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Ux._)`{allowedValues: ${e}}`},n6e={keyword:"enum",schemaType:"array",$data:!0,error:r6e,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:a}=e;if(!n&&o.length===0)throw new Error("enum must have non-empty array");let s=o.length>=a.opts.loopEnum,c,p=()=>c??(c=(0,e6e.useFunc)(t,t6e.default)),d;if(s||n)d=t.let("valid"),e.block$data(d,f);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let y=t.const("vSchema",i);d=(0,Ux.or)(...o.map((g,S)=>m(y,S)))}e.pass(d);function f(){t.assign(d,!1),t.forOf("v",i,y=>t.if((0,Ux._)`${p()}(${r}, ${y})`,()=>t.assign(d,!0).break()))}function m(y,g){let S=o[g];return typeof S=="object"&&S!==null?(0,Ux._)`${p()}(${r}, ${y}[${g}])`:(0,Ux._)`${r} === ${S}`}}};s5.default=n6e});var l5=L(c5=>{"use strict";Object.defineProperty(c5,"__esModule",{value:!0});var o6e=uee(),i6e=pee(),a6e=fee(),s6e=mee(),c6e=hee(),l6e=yee(),u6e=gee(),p6e=vee(),d6e=bee(),_6e=xee(),f6e=[o6e.default,i6e.default,a6e.default,s6e.default,c6e.default,l6e.default,u6e.default,p6e.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d6e.default,_6e.default];c5.default=f6e});var p5=L(zx=>{"use strict";Object.defineProperty(zx,"__esModule",{value:!0});zx.validateAdditionalItems=void 0;var Py=kr(),u5=ln(),m6e={message:({params:{len:e}})=>(0,Py.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Py._)`{limit: ${e}}`},h6e={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:m6e,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,u5.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Eee(e,n)}};function Eee(e,t){let{gen:r,schema:n,data:o,keyword:i,it:a}=e;a.items=!0;let s=r.const("len",(0,Py._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Py._)`${s} <= ${t.length}`);else if(typeof n=="object"&&!(0,u5.alwaysValidSchema)(a,n)){let p=r.var("valid",(0,Py._)`${s} <= ${t.length}`);r.if((0,Py.not)(p),()=>c(p)),e.ok(p)}function c(p){r.forRange("i",t.length,s,d=>{e.subschema({keyword:i,dataProp:d,dataPropType:u5.Type.Num},p),a.allErrors||r.if((0,Py.not)(p),()=>r.break())})}}zx.validateAdditionalItems=Eee;zx.default=h6e});var d5=L(Vx=>{"use strict";Object.defineProperty(Vx,"__esModule",{value:!0});Vx.validateTuple=void 0;var Tee=kr(),PC=ln(),y6e=hl(),g6e={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Dee(e,"additionalItems",t);r.items=!0,!(0,PC.alwaysValidSchema)(r,t)&&e.ok((0,y6e.validateArray)(e))}};function Dee(e,t,r=e.schema){let{gen:n,parentSchema:o,data:i,keyword:a,it:s}=e;d(o),s.opts.unevaluated&&r.length&&s.items!==!0&&(s.items=PC.mergeEvaluated.items(n,r.length,s.items));let c=n.name("valid"),p=n.const("len",(0,Tee._)`${i}.length`);r.forEach((f,m)=>{(0,PC.alwaysValidSchema)(s,f)||(n.if((0,Tee._)`${p} > ${m}`,()=>e.subschema({keyword:a,schemaProp:m,dataProp:m},c)),e.ok(c))});function d(f){let{opts:m,errSchemaPath:y}=s,g=r.length,S=g===f.minItems&&(g===f.maxItems||f[t]===!1);if(m.strictTuples&&!S){let x=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${y}"`;(0,PC.checkStrictMode)(s,x,m.strictTuples)}}}Vx.validateTuple=Dee;Vx.default=g6e});var Aee=L(_5=>{"use strict";Object.defineProperty(_5,"__esModule",{value:!0});var S6e=d5(),v6e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,S6e.validateTuple)(e,"items")};_5.default=v6e});var Iee=L(f5=>{"use strict";Object.defineProperty(f5,"__esModule",{value:!0});var wee=kr(),b6e=ln(),x6e=hl(),E6e=p5(),T6e={message:({params:{len:e}})=>(0,wee.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,wee._)`{limit: ${e}}`},D6e={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:T6e,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,b6e.alwaysValidSchema)(n,t)&&(o?(0,E6e.validateAdditionalItems)(e,o):e.ok((0,x6e.validateArray)(e)))}};f5.default=D6e});var kee=L(m5=>{"use strict";Object.defineProperty(m5,"__esModule",{value:!0});var gl=kr(),OC=ln(),A6e={message:({params:{min:e,max:t}})=>t===void 0?(0,gl.str)`must contain at least ${e} valid item(s)`:(0,gl.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,gl._)`{minContains: ${e}}`:(0,gl._)`{minContains: ${e}, maxContains: ${t}}`},w6e={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:A6e,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e,a,s,{minContains:c,maxContains:p}=n;i.opts.next?(a=c===void 0?1:c,s=p):a=1;let d=t.const("len",(0,gl._)`${o}.length`);if(e.setParams({min:a,max:s}),s===void 0&&a===0){(0,OC.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&a>s){(0,OC.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,OC.alwaysValidSchema)(i,r)){let S=(0,gl._)`${d} >= ${a}`;s!==void 0&&(S=(0,gl._)`${S} && ${d} <= ${s}`),e.pass(S);return}i.items=!0;let f=t.name("valid");s===void 0&&a===1?y(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),s!==void 0&&t.if((0,gl._)`${o}.length > 0`,m)):(t.let(f,!1),m()),e.result(f,()=>e.reset());function m(){let S=t.name("_valid"),x=t.let("count",0);y(S,()=>t.if(S,()=>g(x)))}function y(S,x){t.forRange("i",0,d,A=>{e.subschema({keyword:"contains",dataProp:A,dataPropType:OC.Type.Num,compositeRule:!0},S),x()})}function g(S){t.code((0,gl._)`${S}++`),s===void 0?t.if((0,gl._)`${S} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,gl._)`${S} > ${s}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,gl._)`${S} >= ${a}`,()=>t.assign(f,!0)))}}};m5.default=w6e});var NC=L(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.validateSchemaDeps=Sp.validatePropertyDeps=Sp.error=void 0;var h5=kr(),I6e=ln(),Jx=hl();Sp.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,h5.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,h5._)`{property: ${e}, +var awe=Object.create;var W8=Object.defineProperty;var swe=Object.getOwnPropertyDescriptor;var cwe=Object.getOwnPropertyNames;var lwe=Object.getPrototypeOf,uwe=Object.prototype.hasOwnProperty;var fl=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var L=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),r0=(e,t)=>{for(var r in t)W8(e,r,{get:t[r],enumerable:!0})},pwe=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of cwe(t))!uwe.call(e,o)&&o!==r&&W8(e,o,{get:()=>t[o],enumerable:!(n=swe(t,o))||n.enumerable});return e};var n0=(e,t,r)=>(r=e!=null?awe(lwe(e)):{},pwe(t||!e||!e.__esModule?W8(r,"default",{value:e,enumerable:!0}):r,e));var xx=L(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.regexpCode=Un.getEsmExportName=Un.getProperty=Un.safeStringify=Un.stringify=Un.strConcat=Un.addCodeArg=Un.str=Un._=Un.nil=Un._Code=Un.Name=Un.IDENTIFIER=Un._CodeOrName=void 0;var vx=class{};Un._CodeOrName=vx;Un.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ay=class extends vx{constructor(t){if(super(),!Un.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Un.Name=Ay;var ml=class extends vx{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof Ay&&(r[n.str]=(r[n.str]||0)+1),r),{})}};Un._Code=ml;Un.nil=new ml("");function UX(e,...t){let r=[e[0]],n=0;for(;n{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.ValueScope=Ks.ValueScopeName=Ks.Scope=Ks.varKinds=Ks.UsedValueState=void 0;var Vs=xx(),Y8=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},lC;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(lC||(Ks.UsedValueState=lC={}));Ks.varKinds={const:new Vs.Name("const"),let:new Vs.Name("let"),var:new Vs.Name("var")};var uC=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Vs.Name?t:this.name(t)}name(t){return new Vs.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};Ks.Scope=uC;var pC=class extends Vs.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Vs._)`.${new Vs.Name(r)}[${n}]`}};Ks.ValueScopeName=pC;var bwe=(0,Vs._)`\n`,e9=class extends uC{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?bwe:Vs.nil}}get(){return this._scope}name(t){return new pC(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(t),{prefix:i}=o,a=(n=r.key)!==null&&n!==void 0?n:r.ref,s=this._values[i];if(s){let d=s.get(a);if(d)return d}else s=this._values[i]=new Map;s.set(a,o);let c=this._scope[i]||(this._scope[i]=[]),p=c.length;return c[p]=r.ref,o.setValue(r,{property:i,itemIndex:p}),o}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Vs._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(t,r,n={},o){let i=Vs.nil;for(let a in t){let s=t[a];if(!s)continue;let c=n[a]=n[a]||new Map;s.forEach(p=>{if(c.has(p))return;c.set(p,lC.Started);let d=r(p);if(d){let f=this.opts.es5?Ks.varKinds.var:Ks.varKinds.const;i=(0,Vs._)`${i}${f} ${p} = ${d};${this.opts._n}`}else if(d=o?.(p))i=(0,Vs._)`${i}${d}${this.opts._n}`;else throw new Y8(p);c.set(p,lC.Completed)})}return i}};Ks.ValueScope=e9});var kr=L(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.or=an.and=an.not=an.CodeGen=an.operators=an.varKinds=an.ValueScopeName=an.ValueScope=an.Scope=an.Name=an.regexpCode=an.stringify=an.getProperty=an.nil=an.strConcat=an.str=an._=void 0;var An=xx(),_u=t9(),Jf=xx();Object.defineProperty(an,"_",{enumerable:!0,get:function(){return Jf._}});Object.defineProperty(an,"str",{enumerable:!0,get:function(){return Jf.str}});Object.defineProperty(an,"strConcat",{enumerable:!0,get:function(){return Jf.strConcat}});Object.defineProperty(an,"nil",{enumerable:!0,get:function(){return Jf.nil}});Object.defineProperty(an,"getProperty",{enumerable:!0,get:function(){return Jf.getProperty}});Object.defineProperty(an,"stringify",{enumerable:!0,get:function(){return Jf.stringify}});Object.defineProperty(an,"regexpCode",{enumerable:!0,get:function(){return Jf.regexpCode}});Object.defineProperty(an,"Name",{enumerable:!0,get:function(){return Jf.Name}});var mC=t9();Object.defineProperty(an,"Scope",{enumerable:!0,get:function(){return mC.Scope}});Object.defineProperty(an,"ValueScope",{enumerable:!0,get:function(){return mC.ValueScope}});Object.defineProperty(an,"ValueScopeName",{enumerable:!0,get:function(){return mC.ValueScopeName}});Object.defineProperty(an,"varKinds",{enumerable:!0,get:function(){return mC.varKinds}});an.operators={GT:new An._Code(">"),GTE:new An._Code(">="),LT:new An._Code("<"),LTE:new An._Code("<="),EQ:new An._Code("==="),NEQ:new An._Code("!=="),NOT:new An._Code("!"),OR:new An._Code("||"),AND:new An._Code("&&"),ADD:new An._Code("+")};var Qd=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},r9=class extends Qd{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?_u.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=i0(this.rhs,t,r)),this}get names(){return this.rhs instanceof An._CodeOrName?this.rhs.names:{}}},dC=class extends Qd{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof An.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=i0(this.rhs,t,r),this}get names(){let t=this.lhs instanceof An.Name?{}:{...this.lhs.names};return fC(t,this.rhs)}},n9=class extends dC{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},o9=class extends Qd{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},i9=class extends Qd{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},a9=class extends Qd{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},s9=class extends Qd{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=i0(this.code,t,r),this}get names(){return this.code instanceof An._CodeOrName?this.code.names:{}}},Ex=class extends Qd{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,o=n.length;for(;o--;){let i=n[o];i.optimizeNames(t,r)||(xwe(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>ky(t,r.names),{})}},Xd=class extends Ex{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},c9=class extends Ex{},o0=class extends Xd{};o0.kind="else";var Iy=class e extends Xd{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new o0(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(JX(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=i0(this.condition,t,r),this}get names(){let t=super.names;return fC(t,this.condition),this.else&&ky(t,this.else.names),t}};Iy.kind="if";var wy=class extends Xd{};wy.kind="for";var l9=class extends wy{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=i0(this.iteration,t,r),this}get names(){return ky(super.names,this.iteration.names)}},u9=class extends wy{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?_u.varKinds.var:this.varKind,{name:n,from:o,to:i}=this;return`for(${r} ${n}=${o}; ${n}<${i}; ${n}++)`+super.render(t)}get names(){let t=fC(super.names,this.from);return fC(t,this.to)}},_C=class extends wy{constructor(t,r,n,o){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=o}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=i0(this.iterable,t,r),this}get names(){return ky(super.names,this.iterable.names)}},Tx=class extends Xd{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};Tx.kind="func";var Dx=class extends Ex{render(t){return"return "+super.render(t)}};Dx.kind="return";var p9=class extends Xd{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,o;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(o=this.finally)===null||o===void 0||o.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&ky(t,this.catch.names),this.finally&&ky(t,this.finally.names),t}},Ax=class extends Xd{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Ax.kind="catch";var Ix=class extends Xd{render(t){return"finally"+super.render(t)}};Ix.kind="finally";var d9=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?` +`:""},this._extScope=t,this._scope=new _u.Scope({parent:t}),this._nodes=[new c9]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,o){let i=this._scope.toName(r);return n!==void 0&&o&&(this._constants[i.str]=n),this._leafNode(new r9(t,i,n)),i}const(t,r,n){return this._def(_u.varKinds.const,t,r,n)}let(t,r,n){return this._def(_u.varKinds.let,t,r,n)}var(t,r,n){return this._def(_u.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new dC(t,r,n))}add(t,r){return this._leafNode(new n9(t,an.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==An.nil&&this._leafNode(new s9(t)),this}object(...t){let r=["{"];for(let[n,o]of t)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,An.addCodeArg)(r,o));return r.push("}"),new An._Code(r)}if(t,r,n){if(this._blockNode(new Iy(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Iy(t))}else(){return this._elseNode(new o0)}endIf(){return this._endBlockNode(Iy,o0)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new l9(t),r)}forRange(t,r,n,o,i=this.opts.es5?_u.varKinds.var:_u.varKinds.let){let a=this._scope.toName(t);return this._for(new u9(i,a,r,n),()=>o(a))}forOf(t,r,n,o=_u.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let a=r instanceof An.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,An._)`${a}.length`,s=>{this.var(i,(0,An._)`${a}[${s}]`),n(i)})}return this._for(new _C("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?_u.varKinds.var:_u.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,An._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new _C("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(wy)}label(t){return this._leafNode(new o9(t))}break(t){return this._leafNode(new i9(t))}return(t){let r=new Dx;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Dx)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new p9;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new Ax(i),r(i)}return n&&(this._currNode=o.finally=new Ix,this.code(n)),this._endBlockNode(Ax,Ix)}throw(t){return this._leafNode(new a9(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=An.nil,n,o){return this._blockNode(new Tx(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(Tx)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Iy))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};an.CodeGen=d9;function ky(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function fC(e,t){return t instanceof An._CodeOrName?ky(e,t.names):e}function i0(e,t,r){if(e instanceof An.Name)return n(e);if(!o(e))return e;return new An._Code(e._items.reduce((i,a)=>(a instanceof An.Name&&(a=n(a)),a instanceof An._Code?i.push(...a._items):i.push(a),i),[]));function n(i){let a=r[i.str];return a===void 0||t[i.str]!==1?i:(delete t[i.str],a)}function o(i){return i instanceof An._Code&&i._items.some(a=>a instanceof An.Name&&t[a.str]===1&&r[a.str]!==void 0)}}function xwe(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function JX(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,An._)`!${_9(e)}`}an.not=JX;var Ewe=VX(an.operators.AND);function Twe(...e){return e.reduce(Ewe)}an.and=Twe;var Dwe=VX(an.operators.OR);function Awe(...e){return e.reduce(Dwe)}an.or=Awe;function VX(e){return(t,r)=>t===An.nil?r:r===An.nil?t:(0,An._)`${_9(t)} ${e} ${_9(r)}`}function _9(e){return e instanceof An.Name?e:(0,An._)`(${e})`}});var un=L(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.checkStrictMode=ln.getErrorPath=ln.Type=ln.useFunc=ln.setEvaluated=ln.evaluatedPropsToName=ln.mergeEvaluated=ln.eachItem=ln.unescapeJsonPointer=ln.escapeJsonPointer=ln.escapeFragment=ln.unescapeFragment=ln.schemaRefOrVal=ln.schemaHasRulesButRef=ln.schemaHasRules=ln.checkUnknownRules=ln.alwaysValidSchema=ln.toHash=void 0;var Do=kr(),Iwe=xx();function wwe(e){let t={};for(let r of e)t[r]=!0;return t}ln.toHash=wwe;function kwe(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(HX(e,t),!ZX(t,e.self.RULES.all))}ln.alwaysValidSchema=kwe;function HX(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let o=n.RULES.keywords;for(let i in t)o[i]||XX(e,`unknown keyword: "${i}"`)}ln.checkUnknownRules=HX;function ZX(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}ln.schemaHasRules=ZX;function Cwe(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}ln.schemaHasRulesButRef=Cwe;function Pwe({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Do._)`${r}`}return(0,Do._)`${e}${t}${(0,Do.getProperty)(n)}`}ln.schemaRefOrVal=Pwe;function Owe(e){return WX(decodeURIComponent(e))}ln.unescapeFragment=Owe;function Nwe(e){return encodeURIComponent(m9(e))}ln.escapeFragment=Nwe;function m9(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ln.escapeJsonPointer=m9;function WX(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ln.unescapeJsonPointer=WX;function Fwe(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}ln.eachItem=Fwe;function KX({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,a,s)=>{let c=a===void 0?i:a instanceof Do.Name?(i instanceof Do.Name?e(o,i,a):t(o,i,a),a):i instanceof Do.Name?(t(o,a,i),i):r(i,a);return s===Do.Name&&!(c instanceof Do.Name)?n(o,c):c}}ln.mergeEvaluated={props:KX({mergeNames:(e,t,r)=>e.if((0,Do._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Do._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Do._)`${r} || {}`).code((0,Do._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Do._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Do._)`${r} || {}`),h9(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:QX}),items:KX({mergeNames:(e,t,r)=>e.if((0,Do._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Do._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Do._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Do._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function QX(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Do._)`{}`);return t!==void 0&&h9(e,r,t),r}ln.evaluatedPropsToName=QX;function h9(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Do._)`${t}${(0,Do.getProperty)(n)}`,!0))}ln.setEvaluated=h9;var GX={};function Rwe(e,t){return e.scopeValue("func",{ref:t,code:GX[t.code]||(GX[t.code]=new Iwe._Code(t.code))})}ln.useFunc=Rwe;var f9;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(f9||(ln.Type=f9={}));function Lwe(e,t,r){if(e instanceof Do.Name){let n=t===f9.Num;return r?n?(0,Do._)`"[" + ${e} + "]"`:(0,Do._)`"['" + ${e} + "']"`:n?(0,Do._)`"/" + ${e}`:(0,Do._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Do.getProperty)(e).toString():"/"+m9(e)}ln.getErrorPath=Lwe;function XX(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}ln.checkStrictMode=XX});var hl=L(y9=>{"use strict";Object.defineProperty(y9,"__esModule",{value:!0});var Xa=kr(),$we={data:new Xa.Name("data"),valCxt:new Xa.Name("valCxt"),instancePath:new Xa.Name("instancePath"),parentData:new Xa.Name("parentData"),parentDataProperty:new Xa.Name("parentDataProperty"),rootData:new Xa.Name("rootData"),dynamicAnchors:new Xa.Name("dynamicAnchors"),vErrors:new Xa.Name("vErrors"),errors:new Xa.Name("errors"),this:new Xa.Name("this"),self:new Xa.Name("self"),scope:new Xa.Name("scope"),json:new Xa.Name("json"),jsonPos:new Xa.Name("jsonPos"),jsonLen:new Xa.Name("jsonLen"),jsonPart:new Xa.Name("jsonPart")};y9.default=$we});var wx=L(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.extendErrors=Ya.resetErrorsCount=Ya.reportExtraError=Ya.reportError=Ya.keyword$DataError=Ya.keywordError=void 0;var Ln=kr(),hC=un(),Ss=hl();Ya.keywordError={message:({keyword:e})=>(0,Ln.str)`must pass "${e}" keyword validation`};Ya.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,Ln.str)`"${e}" keyword must be ${t} ($data)`:(0,Ln.str)`"${e}" keyword is invalid ($data)`};function Mwe(e,t=Ya.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:a,allErrors:s}=o,c=tY(e,t,r);n??(a||s)?YX(i,c):eY(o,(0,Ln._)`[${c}]`)}Ya.reportError=Mwe;function jwe(e,t=Ya.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:a}=n,s=tY(e,t,r);YX(o,s),i||a||eY(n,Ss.default.vErrors)}Ya.reportExtraError=jwe;function Bwe(e,t){e.assign(Ss.default.errors,t),e.if((0,Ln._)`${Ss.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,Ln._)`${Ss.default.vErrors}.length`,t),()=>e.assign(Ss.default.vErrors,null)))}Ya.resetErrorsCount=Bwe;function qwe({gen:e,keyword:t,schemaValue:r,data:n,errsCount:o,it:i}){if(o===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",o,Ss.default.errors,s=>{e.const(a,(0,Ln._)`${Ss.default.vErrors}[${s}]`),e.if((0,Ln._)`${a}.instancePath === undefined`,()=>e.assign((0,Ln._)`${a}.instancePath`,(0,Ln.strConcat)(Ss.default.instancePath,i.errorPath))),e.assign((0,Ln._)`${a}.schemaPath`,(0,Ln.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,Ln._)`${a}.schema`,r),e.assign((0,Ln._)`${a}.data`,n))})}Ya.extendErrors=qwe;function YX(e,t){let r=e.const("err",t);e.if((0,Ln._)`${Ss.default.vErrors} === null`,()=>e.assign(Ss.default.vErrors,(0,Ln._)`[${r}]`),(0,Ln._)`${Ss.default.vErrors}.push(${r})`),e.code((0,Ln._)`${Ss.default.errors}++`)}function eY(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,Ln._)`new ${e.ValidationError}(${t})`):(r.assign((0,Ln._)`${n}.errors`,t),r.return(!1))}var Cy={keyword:new Ln.Name("keyword"),schemaPath:new Ln.Name("schemaPath"),params:new Ln.Name("params"),propertyName:new Ln.Name("propertyName"),message:new Ln.Name("message"),schema:new Ln.Name("schema"),parentSchema:new Ln.Name("parentSchema")};function tY(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,Ln._)`{}`:Uwe(e,t,r)}function Uwe(e,t,r={}){let{gen:n,it:o}=e,i=[zwe(o,r),Jwe(e,r)];return Vwe(e,t,i),n.object(...i)}function zwe({errorPath:e},{instancePath:t}){let r=t?(0,Ln.str)`${e}${(0,hC.getErrorPath)(t,hC.Type.Str)}`:e;return[Ss.default.instancePath,(0,Ln.strConcat)(Ss.default.instancePath,r)]}function Jwe({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,Ln.str)`${t}/${e}`;return r&&(o=(0,Ln.str)`${o}${(0,hC.getErrorPath)(r,hC.Type.Str)}`),[Cy.schemaPath,o]}function Vwe(e,{params:t,message:r},n){let{keyword:o,data:i,schemaValue:a,it:s}=e,{opts:c,propertyName:p,topSchemaRef:d,schemaPath:f}=s;n.push([Cy.keyword,o],[Cy.params,typeof t=="function"?t(e):t||(0,Ln._)`{}`]),c.messages&&n.push([Cy.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([Cy.schema,a],[Cy.parentSchema,(0,Ln._)`${d}${f}`],[Ss.default.data,i]),p&&n.push([Cy.propertyName,p])}});var nY=L(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.boolOrEmptySchema=a0.topBoolOrEmptySchema=void 0;var Kwe=wx(),Gwe=kr(),Hwe=hl(),Zwe={message:"boolean schema is false"};function Wwe(e){let{gen:t,schema:r,validateName:n}=e;r===!1?rY(e,!1):typeof r=="object"&&r.$async===!0?t.return(Hwe.default.data):(t.assign((0,Gwe._)`${n}.errors`,null),t.return(!0))}a0.topBoolOrEmptySchema=Wwe;function Qwe(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),rY(e)):r.var(t,!0)}a0.boolOrEmptySchema=Qwe;function rY(e,t){let{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Kwe.reportError)(o,Zwe,void 0,t)}});var g9=L(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});s0.getRules=s0.isJSONType=void 0;var Xwe=["string","number","integer","boolean","null","object","array"],Ywe=new Set(Xwe);function eke(e){return typeof e=="string"&&Ywe.has(e)}s0.isJSONType=eke;function tke(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}s0.getRules=tke});var S9=L(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.shouldUseRule=Vf.shouldUseGroup=Vf.schemaHasRulesForType=void 0;function rke({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&oY(e,n)}Vf.schemaHasRulesForType=rke;function oY(e,t){return t.rules.some(r=>iY(e,r))}Vf.shouldUseGroup=oY;function iY(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}Vf.shouldUseRule=iY});var kx=L(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.reportTypeError=es.checkDataTypes=es.checkDataType=es.coerceAndCheckDataType=es.getJSONTypes=es.getSchemaTypes=es.DataType=void 0;var nke=g9(),oke=S9(),ike=wx(),Ur=kr(),aY=un(),c0;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(c0||(es.DataType=c0={}));function ake(e){let t=sY(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}es.getSchemaTypes=ake;function sY(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(nke.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}es.getJSONTypes=sY;function ske(e,t){let{gen:r,data:n,opts:o}=e,i=cke(t,o.coerceTypes),a=t.length>0&&!(i.length===0&&t.length===1&&(0,oke.schemaHasRulesForType)(e,t[0]));if(a){let s=b9(t,n,o.strictNumbers,c0.Wrong);r.if(s,()=>{i.length?lke(e,t,i):x9(e)})}return a}es.coerceAndCheckDataType=ske;var cY=new Set(["string","number","integer","boolean","null"]);function cke(e,t){return t?e.filter(r=>cY.has(r)||t==="array"&&r==="array"):[]}function lke(e,t,r){let{gen:n,data:o,opts:i}=e,a=n.let("dataType",(0,Ur._)`typeof ${o}`),s=n.let("coerced",(0,Ur._)`undefined`);i.coerceTypes==="array"&&n.if((0,Ur._)`${a} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,Ur._)`${o}[0]`).assign(a,(0,Ur._)`typeof ${o}`).if(b9(t,o,i.strictNumbers),()=>n.assign(s,o))),n.if((0,Ur._)`${s} !== undefined`);for(let p of r)(cY.has(p)||p==="array"&&i.coerceTypes==="array")&&c(p);n.else(),x9(e),n.endIf(),n.if((0,Ur._)`${s} !== undefined`,()=>{n.assign(o,s),uke(e,s)});function c(p){switch(p){case"string":n.elseIf((0,Ur._)`${a} == "number" || ${a} == "boolean"`).assign(s,(0,Ur._)`"" + ${o}`).elseIf((0,Ur._)`${o} === null`).assign(s,(0,Ur._)`""`);return;case"number":n.elseIf((0,Ur._)`${a} == "boolean" || ${o} === null + || (${a} == "string" && ${o} && ${o} == +${o})`).assign(s,(0,Ur._)`+${o}`);return;case"integer":n.elseIf((0,Ur._)`${a} === "boolean" || ${o} === null + || (${a} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(s,(0,Ur._)`+${o}`);return;case"boolean":n.elseIf((0,Ur._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(s,!1).elseIf((0,Ur._)`${o} === "true" || ${o} === 1`).assign(s,!0);return;case"null":n.elseIf((0,Ur._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(s,null);return;case"array":n.elseIf((0,Ur._)`${a} === "string" || ${a} === "number" + || ${a} === "boolean" || ${o} === null`).assign(s,(0,Ur._)`[${o}]`)}}}function uke({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,Ur._)`${t} !== undefined`,()=>e.assign((0,Ur._)`${t}[${r}]`,n))}function v9(e,t,r,n=c0.Correct){let o=n===c0.Correct?Ur.operators.EQ:Ur.operators.NEQ,i;switch(e){case"null":return(0,Ur._)`${t} ${o} null`;case"array":i=(0,Ur._)`Array.isArray(${t})`;break;case"object":i=(0,Ur._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=a((0,Ur._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=a();break;default:return(0,Ur._)`typeof ${t} ${o} ${e}`}return n===c0.Correct?i:(0,Ur.not)(i);function a(s=Ur.nil){return(0,Ur.and)((0,Ur._)`typeof ${t} == "number"`,s,r?(0,Ur._)`isFinite(${t})`:Ur.nil)}}es.checkDataType=v9;function b9(e,t,r,n){if(e.length===1)return v9(e[0],t,r,n);let o,i=(0,aY.toHash)(e);if(i.array&&i.object){let a=(0,Ur._)`typeof ${t} != "object"`;o=i.null?a:(0,Ur._)`!${t} || ${a}`,delete i.null,delete i.array,delete i.object}else o=Ur.nil;i.number&&delete i.integer;for(let a in i)o=(0,Ur.and)(o,v9(a,t,r,n));return o}es.checkDataTypes=b9;var pke={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,Ur._)`{type: ${e}}`:(0,Ur._)`{type: ${t}}`};function x9(e){let t=dke(e);(0,ike.reportError)(t,pke)}es.reportTypeError=x9;function dke(e){let{gen:t,data:r,schema:n}=e,o=(0,aY.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var uY=L(yC=>{"use strict";Object.defineProperty(yC,"__esModule",{value:!0});yC.assignDefaults=void 0;var l0=kr(),_ke=un();function fke(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)lY(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>lY(e,i,o.default))}yC.assignDefaults=fke;function lY(e,t,r){let{gen:n,compositeRule:o,data:i,opts:a}=e;if(r===void 0)return;let s=(0,l0._)`${i}${(0,l0.getProperty)(t)}`;if(o){(0,_ke.checkStrictMode)(e,`default is ignored for: ${s}`);return}let c=(0,l0._)`${s} === undefined`;a.useDefaults==="empty"&&(c=(0,l0._)`${c} || ${s} === null || ${s} === ""`),n.if(c,(0,l0._)`${s} = ${(0,l0.stringify)(r)}`)}});var yl=L(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.validateUnion=ho.validateArray=ho.usePattern=ho.callValidateCode=ho.schemaProperties=ho.allSchemaProperties=ho.noPropertyInData=ho.propertyInData=ho.isOwnProperty=ho.hasPropFunc=ho.reportMissingProp=ho.checkMissingProp=ho.checkReportMissingProp=void 0;var Jo=kr(),E9=un(),Kf=hl(),mke=un();function hke(e,t){let{gen:r,data:n,it:o}=e;r.if(D9(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Jo._)`${t}`},!0),e.error()})}ho.checkReportMissingProp=hke;function yke({gen:e,data:t,it:{opts:r}},n,o){return(0,Jo.or)(...n.map(i=>(0,Jo.and)(D9(e,t,i,r.ownProperties),(0,Jo._)`${o} = ${i}`)))}ho.checkMissingProp=yke;function gke(e,t){e.setParams({missingProperty:t},!0),e.error()}ho.reportMissingProp=gke;function pY(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Jo._)`Object.prototype.hasOwnProperty`})}ho.hasPropFunc=pY;function T9(e,t,r){return(0,Jo._)`${pY(e)}.call(${t}, ${r})`}ho.isOwnProperty=T9;function Ske(e,t,r,n){let o=(0,Jo._)`${t}${(0,Jo.getProperty)(r)} !== undefined`;return n?(0,Jo._)`${o} && ${T9(e,t,r)}`:o}ho.propertyInData=Ske;function D9(e,t,r,n){let o=(0,Jo._)`${t}${(0,Jo.getProperty)(r)} === undefined`;return n?(0,Jo.or)(o,(0,Jo.not)(T9(e,t,r))):o}ho.noPropertyInData=D9;function dY(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}ho.allSchemaProperties=dY;function vke(e,t){return dY(t).filter(r=>!(0,E9.alwaysValidSchema)(e,t[r]))}ho.schemaProperties=vke;function bke({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:a},s,c,p){let d=p?(0,Jo._)`${e}, ${t}, ${n}${o}`:t,f=[[Kf.default.instancePath,(0,Jo.strConcat)(Kf.default.instancePath,i)],[Kf.default.parentData,a.parentData],[Kf.default.parentDataProperty,a.parentDataProperty],[Kf.default.rootData,Kf.default.rootData]];a.opts.dynamicRef&&f.push([Kf.default.dynamicAnchors,Kf.default.dynamicAnchors]);let m=(0,Jo._)`${d}, ${r.object(...f)}`;return c!==Jo.nil?(0,Jo._)`${s}.call(${c}, ${m})`:(0,Jo._)`${s}(${m})`}ho.callValidateCode=bke;var xke=(0,Jo._)`new RegExp`;function Eke({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,i=o(r,n);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,Jo._)`${o.code==="new RegExp"?xke:(0,mke.useFunc)(e,o)}(${r}, ${n})`})}ho.usePattern=Eke;function Tke(e){let{gen:t,data:r,keyword:n,it:o}=e,i=t.name("valid");if(o.allErrors){let s=t.let("valid",!0);return a(()=>t.assign(s,!1)),s}return t.var(i,!0),a(()=>t.break()),i;function a(s){let c=t.const("len",(0,Jo._)`${r}.length`);t.forRange("i",0,c,p=>{e.subschema({keyword:n,dataProp:p,dataPropType:E9.Type.Num},i),t.if((0,Jo.not)(i),s)})}}ho.validateArray=Tke;function Dke(e){let{gen:t,schema:r,keyword:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,E9.alwaysValidSchema)(o,c))&&!o.opts.unevaluated)return;let a=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((c,p)=>{let d=e.subschema({keyword:n,schemaProp:p,compositeRule:!0},s);t.assign(a,(0,Jo._)`${a} || ${s}`),e.mergeValidEvaluated(d,s)||t.if((0,Jo.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}ho.validateUnion=Dke});var mY=L(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.validateKeywordUsage=yp.validSchemaType=yp.funcKeywordCode=yp.macroKeywordCode=void 0;var vs=kr(),Py=hl(),Ake=yl(),Ike=wx();function wke(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:a}=e,s=t.macro.call(a.self,o,i,a),c=fY(r,n,s);a.opts.validateSchema!==!1&&a.self.validateSchema(s,!0);let p=r.name("valid");e.subschema({schema:s,schemaPath:vs.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},p),e.pass(p,()=>e.error(!0))}yp.macroKeywordCode=wke;function kke(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:a,$data:s,it:c}=e;Pke(c,t);let p=!s&&t.compile?t.compile.call(c.self,i,a,c):t.validate,d=fY(n,o,p),f=n.let("valid");e.block$data(f,m),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function m(){if(t.errors===!1)S(),t.modifying&&_Y(e),b(()=>e.error());else{let E=t.async?y():g();t.modifying&&_Y(e),b(()=>Cke(e,E))}}function y(){let E=n.let("ruleErrs",null);return n.try(()=>S((0,vs._)`await `),I=>n.assign(f,!1).if((0,vs._)`${I} instanceof ${c.ValidationError}`,()=>n.assign(E,(0,vs._)`${I}.errors`),()=>n.throw(I))),E}function g(){let E=(0,vs._)`${d}.errors`;return n.assign(E,null),S(vs.nil),E}function S(E=t.async?(0,vs._)`await `:vs.nil){let I=c.opts.passContext?Py.default.this:Py.default.self,T=!("compile"in t&&!s||t.schema===!1);n.assign(f,(0,vs._)`${E}${(0,Ake.callValidateCode)(e,d,I,T)}`,t.modifying)}function b(E){var I;n.if((0,vs.not)((I=t.valid)!==null&&I!==void 0?I:f),E)}}yp.funcKeywordCode=kke;function _Y(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,vs._)`${n.parentData}[${n.parentDataProperty}]`))}function Cke(e,t){let{gen:r}=e;r.if((0,vs._)`Array.isArray(${t})`,()=>{r.assign(Py.default.vErrors,(0,vs._)`${Py.default.vErrors} === null ? ${t} : ${Py.default.vErrors}.concat(${t})`).assign(Py.default.errors,(0,vs._)`${Py.default.vErrors}.length`),(0,Ike.extendErrors)(e)},()=>e.error())}function Pke({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function fY(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,vs.stringify)(r)})}function Oke(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}yp.validSchemaType=Oke;function Nke({schema:e,opts:t,self:r,errSchemaPath:n},o,i){if(Array.isArray(o.keyword)?!o.keyword.includes(i):o.keyword!==i)throw new Error("ajv implementation error");let a=o.dependencies;if(a?.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${i}: ${a.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[i])){let c=`keyword "${i}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}yp.validateKeywordUsage=Nke});var yY=L(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.extendSubschemaMode=Gf.extendSubschemaData=Gf.getSubschema=void 0;var gp=kr(),hY=un();function Fke(e,{keyword:t,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:i,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let s=e.schema[t];return r===void 0?{schema:s,schemaPath:(0,gp._)`${e.schemaPath}${(0,gp.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:(0,gp._)`${e.schemaPath}${(0,gp.getProperty)(t)}${(0,gp.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,hY.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||i===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:a,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}Gf.getSubschema=Fke;function Rke(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:i,propertyName:a}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:s}=t;if(r!==void 0){let{errorPath:p,dataPathArr:d,opts:f}=t,m=s.let("data",(0,gp._)`${t.data}${(0,gp.getProperty)(r)}`,!0);c(m),e.errorPath=(0,gp.str)`${p}${(0,hY.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,gp._)`${r}`,e.dataPathArr=[...d,e.parentDataProperty]}if(o!==void 0){let p=o instanceof gp.Name?o:s.let("data",o,!0);c(p),a!==void 0&&(e.propertyName=a)}i&&(e.dataTypes=i);function c(p){e.data=p,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,p]}}Gf.extendSubschemaData=Rke;function Lke(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:i}){n!==void 0&&(e.compositeRule=n),o!==void 0&&(e.createErrors=o),i!==void 0&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=r}Gf.extendSubschemaMode=Lke});var A9=L((VIt,gY)=>{"use strict";gY.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;o--!==0;){var a=i[o];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r}});var vY=L((KIt,SY)=>{"use strict";var Hf=SY.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},o=r.post||function(){};gC(t,n,o,e,"",e)};Hf.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Hf.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Hf.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Hf.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function gC(e,t,r,n,o,i,a,s,c,p){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,o,i,a,s,c,p);for(var d in n){var f=n[d];if(Array.isArray(f)){if(d in Hf.arrayKeywords)for(var m=0;m{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.getSchemaRefs=Gs.resolveUrl=Gs.normalizeId=Gs._getFullPath=Gs.getFullPath=Gs.inlineRef=void 0;var Mke=un(),jke=A9(),Bke=vY(),qke=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Uke(e,t=!0){return typeof e=="boolean"?!0:t===!0?!I9(e):t?bY(e)<=t:!1}Gs.inlineRef=Uke;var zke=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function I9(e){for(let t in e){if(zke.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(I9)||typeof r=="object"&&I9(r))return!0}return!1}function bY(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!qke.has(r)&&(typeof e[r]=="object"&&(0,Mke.eachItem)(e[r],n=>t+=bY(n)),t===1/0))return 1/0}return t}function xY(e,t="",r){r!==!1&&(t=u0(t));let n=e.parse(t);return EY(e,n)}Gs.getFullPath=xY;function EY(e,t){return e.serialize(t).split("#")[0]+"#"}Gs._getFullPath=EY;var Jke=/#\/?$/;function u0(e){return e?e.replace(Jke,""):""}Gs.normalizeId=u0;function Vke(e,t,r){return r=u0(r),e.resolve(t,r)}Gs.resolveUrl=Vke;var Kke=/^[a-z_][-a-z0-9._]*$/i;function Gke(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=u0(e[r]||t),i={"":o},a=xY(n,o,!1),s={},c=new Set;return Bke(e,{allKeys:!0},(f,m,y,g)=>{if(g===void 0)return;let S=a+m,b=i[g];typeof f[r]=="string"&&(b=E.call(this,f[r])),I.call(this,f.$anchor),I.call(this,f.$dynamicAnchor),i[m]=b;function E(T){let k=this.opts.uriResolver.resolve;if(T=u0(b?k(b,T):T),c.has(T))throw d(T);c.add(T);let F=this.refs[T];return typeof F=="string"&&(F=this.refs[F]),typeof F=="object"?p(f,F.schema,T):T!==u0(S)&&(T[0]==="#"?(p(f,s[T],T),s[T]=f):this.refs[T]=S),T}function I(T){if(typeof T=="string"){if(!Kke.test(T))throw new Error(`invalid anchor "${T}"`);E.call(this,`#${T}`)}}}),s;function p(f,m,y){if(m!==void 0&&!jke(f,m))throw d(y)}function d(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Gs.getSchemaRefs=Gke});var p0=L(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});Zf.getData=Zf.KeywordCxt=Zf.validateFunctionCode=void 0;var wY=nY(),TY=kx(),k9=S9(),SC=kx(),Hke=uY(),Ox=mY(),w9=yY(),Zt=kr(),Ar=hl(),Zke=Cx(),Yd=un(),Px=wx();function Wke(e){if(PY(e)&&(OY(e),CY(e))){Yke(e);return}kY(e,()=>(0,wY.topBoolOrEmptySchema)(e))}Zf.validateFunctionCode=Wke;function kY({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,Zt._)`${Ar.default.data}, ${Ar.default.valCxt}`,n.$async,()=>{e.code((0,Zt._)`"use strict"; ${DY(r,o)}`),Xke(e,o),e.code(i)}):e.func(t,(0,Zt._)`${Ar.default.data}, ${Qke(o)}`,n.$async,()=>e.code(DY(r,o)).code(i))}function Qke(e){return(0,Zt._)`{${Ar.default.instancePath}="", ${Ar.default.parentData}, ${Ar.default.parentDataProperty}, ${Ar.default.rootData}=${Ar.default.data}${e.dynamicRef?(0,Zt._)`, ${Ar.default.dynamicAnchors}={}`:Zt.nil}}={}`}function Xke(e,t){e.if(Ar.default.valCxt,()=>{e.var(Ar.default.instancePath,(0,Zt._)`${Ar.default.valCxt}.${Ar.default.instancePath}`),e.var(Ar.default.parentData,(0,Zt._)`${Ar.default.valCxt}.${Ar.default.parentData}`),e.var(Ar.default.parentDataProperty,(0,Zt._)`${Ar.default.valCxt}.${Ar.default.parentDataProperty}`),e.var(Ar.default.rootData,(0,Zt._)`${Ar.default.valCxt}.${Ar.default.rootData}`),t.dynamicRef&&e.var(Ar.default.dynamicAnchors,(0,Zt._)`${Ar.default.valCxt}.${Ar.default.dynamicAnchors}`)},()=>{e.var(Ar.default.instancePath,(0,Zt._)`""`),e.var(Ar.default.parentData,(0,Zt._)`undefined`),e.var(Ar.default.parentDataProperty,(0,Zt._)`undefined`),e.var(Ar.default.rootData,Ar.default.data),t.dynamicRef&&e.var(Ar.default.dynamicAnchors,(0,Zt._)`{}`)})}function Yke(e){let{schema:t,opts:r,gen:n}=e;kY(e,()=>{r.$comment&&t.$comment&&FY(e),oCe(e),n.let(Ar.default.vErrors,null),n.let(Ar.default.errors,0),r.unevaluated&&eCe(e),NY(e),sCe(e)})}function eCe(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Zt._)`${r}.evaluated`),t.if((0,Zt._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Zt._)`${e.evaluated}.props`,(0,Zt._)`undefined`)),t.if((0,Zt._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Zt._)`${e.evaluated}.items`,(0,Zt._)`undefined`))}function DY(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Zt._)`/*# sourceURL=${r} */`:Zt.nil}function tCe(e,t){if(PY(e)&&(OY(e),CY(e))){rCe(e,t);return}(0,wY.boolOrEmptySchema)(e,t)}function CY({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function PY(e){return typeof e.schema!="boolean"}function rCe(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&FY(e),iCe(e),aCe(e);let i=n.const("_errs",Ar.default.errors);NY(e,i),n.var(t,(0,Zt._)`${i} === ${Ar.default.errors}`)}function OY(e){(0,Yd.checkUnknownRules)(e),nCe(e)}function NY(e,t){if(e.opts.jtd)return AY(e,[],!1,t);let r=(0,TY.getSchemaTypes)(e.schema),n=(0,TY.coerceAndCheckDataType)(e,r);AY(e,r,!n,t)}function nCe(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Yd.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function oCe(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Yd.checkStrictMode)(e,"default is ignored in the schema root")}function iCe(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Zke.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function aCe(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function FY({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,Zt._)`${Ar.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let a=(0,Zt.str)`${n}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,Zt._)`${Ar.default.self}.opts.$comment(${i}, ${a}, ${s}.schema)`)}}function sCe(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,Zt._)`${Ar.default.errors} === 0`,()=>t.return(Ar.default.data),()=>t.throw((0,Zt._)`new ${o}(${Ar.default.vErrors})`)):(t.assign((0,Zt._)`${n}.errors`,Ar.default.vErrors),i.unevaluated&&cCe(e),t.return((0,Zt._)`${Ar.default.errors} === 0`))}function cCe({gen:e,evaluated:t,props:r,items:n}){r instanceof Zt.Name&&e.assign((0,Zt._)`${t}.props`,r),n instanceof Zt.Name&&e.assign((0,Zt._)`${t}.items`,n)}function AY(e,t,r,n){let{gen:o,schema:i,data:a,allErrors:s,opts:c,self:p}=e,{RULES:d}=p;if(i.$ref&&(c.ignoreKeywordsWithRef||!(0,Yd.schemaHasRulesButRef)(i,d))){o.block(()=>LY(e,"$ref",d.all.$ref.definition));return}c.jtd||lCe(e,t),o.block(()=>{for(let m of d.rules)f(m);f(d.post)});function f(m){(0,k9.shouldUseGroup)(i,m)&&(m.type?(o.if((0,SC.checkDataType)(m.type,a,c.strictNumbers)),IY(e,m),t.length===1&&t[0]===m.type&&r&&(o.else(),(0,SC.reportTypeError)(e)),o.endIf()):IY(e,m),s||o.if((0,Zt._)`${Ar.default.errors} === ${n||0}`))}}function IY(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,Hke.assignDefaults)(e,t.type),r.block(()=>{for(let i of t.rules)(0,k9.shouldUseRule)(n,i)&&LY(e,i.keyword,i.definition,t.type)})}function lCe(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(uCe(e,t),e.opts.allowUnionTypes||pCe(e,t),dCe(e,e.dataTypes))}function uCe(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{RY(e.dataTypes,r)||C9(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),fCe(e,t)}}function pCe(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&C9(e,"use allowUnionTypes to allow union type keyword")}function dCe(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,k9.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(a=>_Ce(t,a))&&C9(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function _Ce(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function RY(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function fCe(e,t){let r=[];for(let n of e.dataTypes)RY(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function C9(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Yd.checkStrictMode)(e,t,e.opts.strictTypes)}var vC=class{constructor(t,r,n){if((0,Ox.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Yd.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",$Y(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ox.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Ar.default.errors))}result(t,r,n){this.failResult((0,Zt.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,Zt.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,Zt._)`${r} !== undefined && (${(0,Zt.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Px.reportExtraError:Px.reportError)(this,this.def.error,r)}$dataError(){(0,Px.reportError)(this,this.def.$dataError||Px.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Px.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=Zt.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=Zt.nil,r=Zt.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:a}=this;n.if((0,Zt.or)((0,Zt._)`${o} === undefined`,r)),t!==Zt.nil&&n.assign(t,!0),(i.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==Zt.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,Zt.or)(a(),s());function a(){if(n.length){if(!(r instanceof Zt.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,Zt._)`${(0,SC.checkDataTypes)(c,r,i.opts.strictNumbers,SC.DataType.Wrong)}`}return Zt.nil}function s(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,Zt._)`!${c}(${r})`}return Zt.nil}}subschema(t,r){let n=(0,w9.getSubschema)(this.it,t);(0,w9.extendSubschemaData)(n,this.it,t),(0,w9.extendSubschemaMode)(n,t);let o={...this.it,...n,items:void 0,props:void 0};return tCe(o,r),o}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Yd.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Yd.mergeEvaluated.items(o,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(t,Zt.Name)),!0}};Zf.KeywordCxt=vC;function LY(e,t,r,n){let o=new vC(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Ox.funcKeywordCode)(o,r):"macro"in r?(0,Ox.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Ox.funcKeywordCode)(o,r)}var mCe=/^\/(?:[^~]|~0|~1)*$/,hCe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function $Y(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return Ar.default.rootData;if(e[0]==="/"){if(!mCe.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=Ar.default.rootData}else{let p=hCe.exec(e);if(!p)throw new Error(`Invalid JSON-pointer: ${e}`);let d=+p[1];if(o=p[2],o==="#"){if(d>=t)throw new Error(c("property/index",d));return n[t-d]}if(d>t)throw new Error(c("data",d));if(i=r[t-d],!o)return i}let a=i,s=o.split("/");for(let p of s)p&&(i=(0,Zt._)`${i}${(0,Zt.getProperty)((0,Yd.unescapeJsonPointer)(p))}`,a=(0,Zt._)`${a} && ${i}`);return a;function c(p,d){return`Cannot access ${p} ${d} levels up, current level is ${t}`}}Zf.getData=$Y});var Nx=L(O9=>{"use strict";Object.defineProperty(O9,"__esModule",{value:!0});var P9=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};O9.default=P9});var d0=L(R9=>{"use strict";Object.defineProperty(R9,"__esModule",{value:!0});var N9=Cx(),F9=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,N9.resolveUrl)(t,r,n),this.missingSchema=(0,N9.normalizeId)((0,N9.getFullPath)(t,this.missingRef))}};R9.default=F9});var Fx=L(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.resolveSchema=gl.getCompilingSchema=gl.resolveRef=gl.compileSchema=gl.SchemaEnv=void 0;var fu=kr(),yCe=Nx(),Oy=hl(),mu=Cx(),MY=un(),gCe=p0(),_0=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,mu.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};gl.SchemaEnv=_0;function $9(e){let t=jY.call(this,e);if(t)return t;let r=(0,mu.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,a=new fu.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),s;e.$async&&(s=a.scopeValue("Error",{ref:yCe.default,code:(0,fu._)`require("ajv/dist/runtime/validation_error").default`}));let c=a.scopeName("validate");e.validateName=c;let p={gen:a,allErrors:this.opts.allErrors,data:Oy.default.data,parentData:Oy.default.parentData,parentDataProperty:Oy.default.parentDataProperty,dataNames:[Oy.default.data],dataPathArr:[fu.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,fu.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:fu.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,fu._)`""`,opts:this.opts,self:this},d;try{this._compilations.add(e),(0,gCe.validateFunctionCode)(p),a.optimize(this.opts.code.optimize);let f=a.toString();d=`${a.scopeRefs(Oy.default.scope)}return ${f}`,this.opts.code.process&&(d=this.opts.code.process(d,e));let y=new Function(`${Oy.default.self}`,`${Oy.default.scope}`,d)(this,this.scope.get());if(this.scope.value(c,{ref:y}),y.errors=null,y.schema=e.schema,y.schemaEnv=e,e.$async&&(y.$async=!0),this.opts.code.source===!0&&(y.source={validateName:c,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:g,items:S}=p;y.evaluated={props:g instanceof fu.Name?void 0:g,items:S instanceof fu.Name?void 0:S,dynamicProps:g instanceof fu.Name,dynamicItems:S instanceof fu.Name},y.source&&(y.source.evaluated=(0,fu.stringify)(y.evaluated))}return e.validate=y,e}catch(f){throw delete e.validate,delete e.validateName,d&&this.logger.error("Error compiling schema, function code:",d),f}finally{this._compilations.delete(e)}}gl.compileSchema=$9;function SCe(e,t,r){var n;r=(0,mu.resolveUrl)(this.opts.uriResolver,t,r);let o=e.refs[r];if(o)return o;let i=xCe.call(this,e,r);if(i===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:s}=this.opts;a&&(i=new _0({schema:a,schemaId:s,root:e,baseId:t}))}if(i!==void 0)return e.refs[r]=vCe.call(this,i)}gl.resolveRef=SCe;function vCe(e){return(0,mu.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:$9.call(this,e)}function jY(e){for(let t of this._compilations)if(bCe(t,e))return t}gl.getCompilingSchema=jY;function bCe(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function xCe(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||bC.call(this,e,t)}function bC(e,t){let r=this.opts.uriResolver.parse(t),n=(0,mu._getFullPath)(this.opts.uriResolver,r),o=(0,mu.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return L9.call(this,r,e);let i=(0,mu.normalizeId)(n),a=this.refs[i]||this.schemas[i];if(typeof a=="string"){let s=bC.call(this,e,a);return typeof s?.schema!="object"?void 0:L9.call(this,r,s)}if(typeof a?.schema=="object"){if(a.validate||$9.call(this,a),i===(0,mu.normalizeId)(t)){let{schema:s}=a,{schemaId:c}=this.opts,p=s[c];return p&&(o=(0,mu.resolveUrl)(this.opts.uriResolver,o,p)),new _0({schema:s,schemaId:c,root:e,baseId:o})}return L9.call(this,r,a)}}gl.resolveSchema=bC;var ECe=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function L9(e,{baseId:t,schema:r,root:n}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(let s of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,MY.unescapeFragment)(s)];if(c===void 0)return;r=c;let p=typeof r=="object"&&r[this.opts.schemaId];!ECe.has(s)&&p&&(t=(0,mu.resolveUrl)(this.opts.uriResolver,t,p))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,MY.schemaHasRulesButRef)(r,this.RULES)){let s=(0,mu.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=bC.call(this,n,s)}let{schemaId:a}=this.opts;if(i=i||new _0({schema:r,schemaId:a,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var BY=L((XIt,TCe)=>{TCe.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var j9=L((YIt,JY)=>{"use strict";var DCe=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),UY=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function M9(e){let t="",r=0,n=0;for(n=0;n=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}var ACe=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function qY(e){return e.length=0,!0}function ICe(e,t,r){if(e.length){let n=M9(e);if(n!=="")t.push(n);else return r.error=!0,!1;e.length=0}return!0}function wCe(e){let t=0,r={error:!1,address:"",zone:""},n=[],o=[],i=!1,a=!1,s=ICe;for(let c=0;c7){r.error=!0;break}c>0&&e[c-1]===":"&&(i=!0),n.push(":");continue}else if(p==="%"){if(!s(o,n,r))break;s=qY}else{o.push(p);continue}}return o.length&&(s===qY?r.zone=o.join(""):a?n.push(o.join("")):n.push(M9(o))),r.address=n.join(""),r}function zY(e){if(kCe(e,":")<2)return{host:e,isIPV6:!1};let t=wCe(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:n}}}function kCe(e,t){let r=0;for(let n=0;n{"use strict";var{isUUID:NCe}=j9(),FCe=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,RCe=["http","https","ws","wss","urn","urn:uuid"];function LCe(e){return RCe.indexOf(e)!==-1}function B9(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function VY(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function KY(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function $Ce(e){return e.secure=B9(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function MCe(e){if((e.port===(B9(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function jCe(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(FCe);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let o=`${n}:${t.nid||e.nid}`,i=q9(o);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function BCe(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),o=`${r}:${t.nid||n}`,i=q9(o);i&&(e=i.serialize(e,t));let a=e,s=e.nss;return a.path=`${n||t.nid}:${s}`,t.skipEscape=!0,a}function qCe(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!NCe(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function UCe(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var GY={scheme:"http",domainHost:!0,parse:VY,serialize:KY},zCe={scheme:"https",domainHost:GY.domainHost,parse:VY,serialize:KY},xC={scheme:"ws",domainHost:!0,parse:$Ce,serialize:MCe},JCe={scheme:"wss",domainHost:xC.domainHost,parse:xC.parse,serialize:xC.serialize},VCe={scheme:"urn",parse:jCe,serialize:BCe,skipNormalize:!0},KCe={scheme:"urn:uuid",parse:qCe,serialize:UCe,skipNormalize:!0},EC={http:GY,https:zCe,ws:xC,wss:JCe,urn:VCe,"urn:uuid":KCe};Object.setPrototypeOf(EC,null);function q9(e){return e&&(EC[e]||EC[e.toLowerCase()])||void 0}HY.exports={wsIsSecure:B9,SCHEMES:EC,isValidSchemeName:LCe,getSchemeHandler:q9}});var XY=L((twt,DC)=>{"use strict";var{normalizeIPv6:GCe,removeDotSegments:Rx,recomposeAuthority:HCe,normalizeComponentEncoding:TC,isIPv4:ZCe,nonSimpleDomain:WCe}=j9(),{SCHEMES:QCe,getSchemeHandler:WY}=ZY();function XCe(e,t){return typeof e=="string"?e=Sp(e_(e,t),t):typeof e=="object"&&(e=e_(Sp(e,t),t)),e}function YCe(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},o=QY(e_(e,n),e_(t,n),n,!0);return n.skipEscape=!0,Sp(o,n)}function QY(e,t,r,n){let o={};return n||(e=e_(Sp(e,r),r),t=e_(Sp(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=Rx(t.path||""),o.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=Rx(t.path||""),o.query=t.query):(t.path?(t.path[0]==="/"?o.path=Rx(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?o.path="/"+t.path:e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path,o.path=Rx(o.path)),o.query=t.query):(o.path=e.path,t.query!==void 0?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function ePe(e,t,r){return typeof e=="string"?(e=unescape(e),e=Sp(TC(e_(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Sp(TC(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Sp(TC(e_(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Sp(TC(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function Sp(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),o=[],i=WY(n.scheme||r.scheme);i&&i.serialize&&i.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&o.push(r.scheme,":");let a=HCe(r);if(a!==void 0&&(n.reference!=="suffix"&&o.push("//"),o.push(a),r.path&&r.path[0]!=="/"&&o.push("/")),r.path!==void 0){let s=r.path;!n.absolutePath&&(!i||!i.absolutePath)&&(s=Rx(s)),a===void 0&&s[0]==="/"&&s[1]==="/"&&(s="/%2F"+s.slice(2)),o.push(s)}return r.query!==void 0&&o.push("?",r.query),r.fragment!==void 0&&o.push("#",r.fragment),o.join("")}var tPe=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function e_(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},o=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let i=e.match(tPe);if(i){if(n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5]),n.host)if(ZCe(n.host)===!1){let c=GCe(n.host);n.host=c.host.toLowerCase(),o=c.isIPV6}else o=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let a=WY(r.scheme||n.scheme);if(!r.unicodeSupport&&(!a||!a.unicodeSupport)&&n.host&&(r.domainHost||a&&a.domainHost)&&o===!1&&WCe(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(s){n.error=n.error||"Host's domain name can not be converted to ASCII: "+s}(!a||a&&!a.skipNormalize)&&(e.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=unescape(n.host))),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),a&&a.parse&&a.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var U9={SCHEMES:QCe,normalize:XCe,resolve:YCe,resolveComponent:QY,equal:ePe,serialize:Sp,parse:e_};DC.exports=U9;DC.exports.default=U9;DC.exports.fastUri=U9});var eee=L(z9=>{"use strict";Object.defineProperty(z9,"__esModule",{value:!0});var YY=XY();YY.code='require("ajv/dist/runtime/uri").default';z9.default=YY});var K9=L(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.CodeGen=Ea.Name=Ea.nil=Ea.stringify=Ea.str=Ea._=Ea.KeywordCxt=void 0;var rPe=p0();Object.defineProperty(Ea,"KeywordCxt",{enumerable:!0,get:function(){return rPe.KeywordCxt}});var f0=kr();Object.defineProperty(Ea,"_",{enumerable:!0,get:function(){return f0._}});Object.defineProperty(Ea,"str",{enumerable:!0,get:function(){return f0.str}});Object.defineProperty(Ea,"stringify",{enumerable:!0,get:function(){return f0.stringify}});Object.defineProperty(Ea,"nil",{enumerable:!0,get:function(){return f0.nil}});Object.defineProperty(Ea,"Name",{enumerable:!0,get:function(){return f0.Name}});Object.defineProperty(Ea,"CodeGen",{enumerable:!0,get:function(){return f0.CodeGen}});var nPe=Nx(),iee=d0(),oPe=g9(),Lx=Fx(),iPe=kr(),$x=Cx(),AC=kx(),V9=un(),tee=BY(),aPe=eee(),aee=(e,t)=>new RegExp(e,t);aee.code="new RegExp";var sPe=["removeAdditional","useDefaults","coerceTypes"],cPe=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),lPe={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},uPe={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},ree=200;function pPe(e){var t,r,n,o,i,a,s,c,p,d,f,m,y,g,S,b,E,I,T,k,F,O,$,N,U;let ge=e.strict,Te=(t=e.code)===null||t===void 0?void 0:t.optimize,ke=Te===!0||Te===void 0?1:Te||0,Je=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:aee,me=(o=e.uriResolver)!==null&&o!==void 0?o:aPe.default;return{strictSchema:(a=(i=e.strictSchema)!==null&&i!==void 0?i:ge)!==null&&a!==void 0?a:!0,strictNumbers:(c=(s=e.strictNumbers)!==null&&s!==void 0?s:ge)!==null&&c!==void 0?c:!0,strictTypes:(d=(p=e.strictTypes)!==null&&p!==void 0?p:ge)!==null&&d!==void 0?d:"log",strictTuples:(m=(f=e.strictTuples)!==null&&f!==void 0?f:ge)!==null&&m!==void 0?m:"log",strictRequired:(g=(y=e.strictRequired)!==null&&y!==void 0?y:ge)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:ke,regExp:Je}:{optimize:ke,regExp:Je},loopRequired:(S=e.loopRequired)!==null&&S!==void 0?S:ree,loopEnum:(b=e.loopEnum)!==null&&b!==void 0?b:ree,meta:(E=e.meta)!==null&&E!==void 0?E:!0,messages:(I=e.messages)!==null&&I!==void 0?I:!0,inlineRefs:(T=e.inlineRefs)!==null&&T!==void 0?T:!0,schemaId:(k=e.schemaId)!==null&&k!==void 0?k:"$id",addUsedSchema:(F=e.addUsedSchema)!==null&&F!==void 0?F:!0,validateSchema:(O=e.validateSchema)!==null&&O!==void 0?O:!0,validateFormats:($=e.validateFormats)!==null&&$!==void 0?$:!0,unicodeRegExp:(N=e.unicodeRegExp)!==null&&N!==void 0?N:!0,int32range:(U=e.int32range)!==null&&U!==void 0?U:!0,uriResolver:me}}var Mx=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...pPe(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new iPe.ValueScope({scope:{},prefixes:cPe,es5:r,lines:n}),this.logger=yPe(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,oPe.getRules)(),nee.call(this,lPe,t,"NOT SUPPORTED"),nee.call(this,uPe,t,"DEPRECATED","warn"),this._metaOpts=mPe.call(this),t.formats&&_Pe.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&fPe.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),dPe.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=tee;n==="id"&&(o={...tee},o.id=o.$id,delete o.$id),r&&t&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let o=n(r);return"$async"in n||(this.errors=n.errors),o}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return o.call(this,t,r);async function o(d,f){await i.call(this,d.$schema);let m=this._addSchema(d,f);return m.validate||a.call(this,m)}async function i(d){d&&!this.getSchema(d)&&await o.call(this,{$ref:d},!0)}async function a(d){try{return this._compileSchemaEnv(d)}catch(f){if(!(f instanceof iee.default))throw f;return s.call(this,f),await c.call(this,f.missingSchema),a.call(this,d)}}function s({missingSchema:d,missingRef:f}){if(this.refs[d])throw new Error(`AnySchema ${d} is loaded but ${f} cannot be resolved`)}async function c(d){let f=await p.call(this,d);this.refs[d]||await i.call(this,f.$schema),this.refs[d]||this.addSchema(f,d,r)}async function p(d){let f=this._loading[d];if(f)return f;try{return await(this._loading[d]=n(d))}finally{delete this._loading[d]}}}addSchema(t,r,n,o=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,o);return this}let i;if(typeof t=="object"){let{schemaId:a}=this.opts;if(i=t[a],i!==void 0&&typeof i!="string")throw new Error(`schema ${a} must be string`)}return r=(0,$x.normalizeId)(r||i),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,o,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let o=this.validate(n,t);if(!o&&r){let i="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(i);else throw new Error(i)}return o}getSchema(t){let r;for(;typeof(r=oee.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new Lx.SchemaEnv({schema:{},schemaId:n});if(r=Lx.resolveSchema.call(this,o,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=oee.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,$x.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(SPe.call(this,n,r),!r)return(0,V9.eachItem)(n,i=>J9.call(this,i)),this;bPe.call(this,r);let o={...r,type:(0,AC.getJSONTypes)(r.type),schemaType:(0,AC.getJSONTypes)(r.schemaType)};return(0,V9.eachItem)(n,o.type.length===0?i=>J9.call(this,i,o):i=>o.type.forEach(a=>J9.call(this,i,o,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let o=n.rules.findIndex(i=>i.keyword===t);o>=0&&n.rules.splice(o,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(o=>`${n}${o.instancePath} ${o.message}`).reduce((o,i)=>o+r+i)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let o of r){let i=o.split("/").slice(1),a=t;for(let s of i)a=a[s];for(let s in n){let c=n[s];if(typeof c!="object")continue;let{$data:p}=c.definition,d=a[s];p&&d&&(a[s]=see(d))}}return t}_removeAllSchemas(t,r){for(let n in t){let o=t[n];(!r||r.test(n))&&(typeof o=="string"?delete t[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete t[n]))}}_addSchema(t,r,n,o=this.opts.validateSchema,i=this.opts.addUsedSchema){let a,{schemaId:s}=this.opts;if(typeof t=="object")a=t[s];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,$x.normalizeId)(a||n);let p=$x.getSchemaRefs.call(this,t,n);return c=new Lx.SchemaEnv({schema:t,schemaId:s,meta:r,baseId:n,localRefs:p}),this._cache.set(c.schema,c),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Lx.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{Lx.compileSchema.call(this,t)}finally{this.opts=r}}};Mx.ValidationError=nPe.default;Mx.MissingRefError=iee.default;Ea.default=Mx;function nee(e,t,r,n="error"){for(let o in e){let i=o;i in t&&this.logger[n](`${r}: option ${o}. ${e[i]}`)}}function oee(e){return e=(0,$x.normalizeId)(e),this.schemas[e]||this.refs[e]}function dPe(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function _Pe(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function fPe(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function mPe(){let e={...this.opts};for(let t of sPe)delete e[t];return e}var hPe={log(){},warn(){},error(){}};function yPe(e){if(e===!1)return hPe;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var gPe=/^[a-z_$][a-z0-9_$:-]*$/i;function SPe(e,t){let{RULES:r}=this;if((0,V9.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!gPe.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function J9(e,t,r){var n;let o=t?.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:i}=this,a=o?i.post:i.rules.find(({type:c})=>c===r);if(a||(a={type:r,rules:[]},i.rules.push(a)),i.keywords[e]=!0,!t)return;let s={keyword:e,definition:{...t,type:(0,AC.getJSONTypes)(t.type),schemaType:(0,AC.getJSONTypes)(t.schemaType)}};t.before?vPe.call(this,a,s,t.before):a.rules.push(s),i.all[e]=s,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function vPe(e,t,r){let n=e.rules.findIndex(o=>o.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function bPe(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=see(t)),e.validateSchema=this.compile(t,!0))}var xPe={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function see(e){return{anyOf:[e,xPe]}}});var cee=L(G9=>{"use strict";Object.defineProperty(G9,"__esModule",{value:!0});var EPe={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};G9.default=EPe});var kC=L(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});Ny.callRef=Ny.getValidate=void 0;var TPe=d0(),lee=yl(),Hs=kr(),m0=hl(),uee=Fx(),IC=un(),DPe={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:i,validateName:a,opts:s,self:c}=n,{root:p}=i;if((r==="#"||r==="#/")&&o===p.baseId)return f();let d=uee.resolveRef.call(c,p,o,r);if(d===void 0)throw new TPe.default(n.opts.uriResolver,o,r);if(d instanceof uee.SchemaEnv)return m(d);return y(d);function f(){if(i===p)return wC(e,a,i,i.$async);let g=t.scopeValue("root",{ref:p});return wC(e,(0,Hs._)`${g}.validate`,p,p.$async)}function m(g){let S=pee(e,g);wC(e,S,g,g.$async)}function y(g){let S=t.scopeValue("schema",s.code.source===!0?{ref:g,code:(0,Hs.stringify)(g)}:{ref:g}),b=t.name("valid"),E=e.subschema({schema:g,dataTypes:[],schemaPath:Hs.nil,topSchemaRef:S,errSchemaPath:r},b);e.mergeEvaluated(E),e.ok(b)}}};function pee(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Hs._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Ny.getValidate=pee;function wC(e,t,r,n){let{gen:o,it:i}=e,{allErrors:a,schemaEnv:s,opts:c}=i,p=c.passContext?m0.default.this:Hs.nil;n?d():f();function d(){if(!s.$async)throw new Error("async schema referenced by sync schema");let g=o.let("valid");o.try(()=>{o.code((0,Hs._)`await ${(0,lee.callValidateCode)(e,t,p)}`),y(t),a||o.assign(g,!0)},S=>{o.if((0,Hs._)`!(${S} instanceof ${i.ValidationError})`,()=>o.throw(S)),m(S),a||o.assign(g,!1)}),e.ok(g)}function f(){e.result((0,lee.callValidateCode)(e,t,p),()=>y(t),()=>m(t))}function m(g){let S=(0,Hs._)`${g}.errors`;o.assign(m0.default.vErrors,(0,Hs._)`${m0.default.vErrors} === null ? ${S} : ${m0.default.vErrors}.concat(${S})`),o.assign(m0.default.errors,(0,Hs._)`${m0.default.vErrors}.length`)}function y(g){var S;if(!i.opts.unevaluated)return;let b=(S=r?.validate)===null||S===void 0?void 0:S.evaluated;if(i.props!==!0)if(b&&!b.dynamicProps)b.props!==void 0&&(i.props=IC.mergeEvaluated.props(o,b.props,i.props));else{let E=o.var("props",(0,Hs._)`${g}.evaluated.props`);i.props=IC.mergeEvaluated.props(o,E,i.props,Hs.Name)}if(i.items!==!0)if(b&&!b.dynamicItems)b.items!==void 0&&(i.items=IC.mergeEvaluated.items(o,b.items,i.items));else{let E=o.var("items",(0,Hs._)`${g}.evaluated.items`);i.items=IC.mergeEvaluated.items(o,E,i.items,Hs.Name)}}}Ny.callRef=wC;Ny.default=DPe});var Z9=L(H9=>{"use strict";Object.defineProperty(H9,"__esModule",{value:!0});var APe=cee(),IPe=kC(),wPe=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",APe.default,IPe.default];H9.default=wPe});var dee=L(W9=>{"use strict";Object.defineProperty(W9,"__esModule",{value:!0});var CC=kr(),Wf=CC.operators,PC={maximum:{okStr:"<=",ok:Wf.LTE,fail:Wf.GT},minimum:{okStr:">=",ok:Wf.GTE,fail:Wf.LT},exclusiveMaximum:{okStr:"<",ok:Wf.LT,fail:Wf.GTE},exclusiveMinimum:{okStr:">",ok:Wf.GT,fail:Wf.LTE}},kPe={message:({keyword:e,schemaCode:t})=>(0,CC.str)`must be ${PC[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,CC._)`{comparison: ${PC[e].okStr}, limit: ${t}}`},CPe={keyword:Object.keys(PC),type:"number",schemaType:"number",$data:!0,error:kPe,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,CC._)`${r} ${PC[t].fail} ${n} || isNaN(${r})`)}};W9.default=CPe});var _ee=L(Q9=>{"use strict";Object.defineProperty(Q9,"__esModule",{value:!0});var jx=kr(),PPe={message:({schemaCode:e})=>(0,jx.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,jx._)`{multipleOf: ${e}}`},OPe={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:PPe,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,a=t.let("res"),s=i?(0,jx._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${i}`:(0,jx._)`${a} !== parseInt(${a})`;e.fail$data((0,jx._)`(${n} === 0 || (${a} = ${r}/${n}, ${s}))`)}};Q9.default=OPe});var mee=L(X9=>{"use strict";Object.defineProperty(X9,"__esModule",{value:!0});function fee(e){let t=e.length,r=0,n=0,o;for(;n=55296&&o<=56319&&n{"use strict";Object.defineProperty(Y9,"__esModule",{value:!0});var Fy=kr(),NPe=un(),FPe=mee(),RPe={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Fy.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Fy._)`{limit: ${e}}`},LPe={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:RPe,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?Fy.operators.GT:Fy.operators.LT,a=o.opts.unicode===!1?(0,Fy._)`${r}.length`:(0,Fy._)`${(0,NPe.useFunc)(e.gen,FPe.default)}(${r})`;e.fail$data((0,Fy._)`${a} ${i} ${n}`)}};Y9.default=LPe});var yee=L(e5=>{"use strict";Object.defineProperty(e5,"__esModule",{value:!0});var $Pe=yl(),MPe=un(),h0=kr(),jPe={message:({schemaCode:e})=>(0,h0.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,h0._)`{pattern: ${e}}`},BPe={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:jPe,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:a}=e,s=a.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=a.opts.code,p=c.code==="new RegExp"?(0,h0._)`new RegExp`:(0,MPe.useFunc)(t,c),d=t.let("valid");t.try(()=>t.assign(d,(0,h0._)`${p}(${i}, ${s}).test(${r})`),()=>t.assign(d,!1)),e.fail$data((0,h0._)`!${d}`)}else{let c=(0,$Pe.usePattern)(e,o);e.fail$data((0,h0._)`!${c}.test(${r})`)}}};e5.default=BPe});var gee=L(t5=>{"use strict";Object.defineProperty(t5,"__esModule",{value:!0});var Bx=kr(),qPe={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Bx.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Bx._)`{limit: ${e}}`},UPe={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:qPe,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?Bx.operators.GT:Bx.operators.LT;e.fail$data((0,Bx._)`Object.keys(${r}).length ${o} ${n}`)}};t5.default=UPe});var See=L(r5=>{"use strict";Object.defineProperty(r5,"__esModule",{value:!0});var qx=yl(),Ux=kr(),zPe=un(),JPe={message:({params:{missingProperty:e}})=>(0,Ux.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Ux._)`{missingProperty: ${e}}`},VPe={keyword:"required",type:"object",schemaType:"array",$data:!0,error:JPe,code(e){let{gen:t,schema:r,schemaCode:n,data:o,$data:i,it:a}=e,{opts:s}=a;if(!i&&r.length===0)return;let c=r.length>=s.loopRequired;if(a.allErrors?p():d(),s.strictRequired){let y=e.parentSchema.properties,{definedProperties:g}=e.it;for(let S of r)if(y?.[S]===void 0&&!g.has(S)){let b=a.schemaEnv.baseId+a.errSchemaPath,E=`required property "${S}" is not defined at "${b}" (strictRequired)`;(0,zPe.checkStrictMode)(a,E,a.opts.strictRequired)}}function p(){if(c||i)e.block$data(Ux.nil,f);else for(let y of r)(0,qx.checkReportMissingProp)(e,y)}function d(){let y=t.let("missing");if(c||i){let g=t.let("valid",!0);e.block$data(g,()=>m(y,g)),e.ok(g)}else t.if((0,qx.checkMissingProp)(e,r,y)),(0,qx.reportMissingProp)(e,y),t.else()}function f(){t.forOf("prop",n,y=>{e.setParams({missingProperty:y}),t.if((0,qx.noPropertyInData)(t,o,y,s.ownProperties),()=>e.error())})}function m(y,g){e.setParams({missingProperty:y}),t.forOf(y,n,()=>{t.assign(g,(0,qx.propertyInData)(t,o,y,s.ownProperties)),t.if((0,Ux.not)(g),()=>{e.error(),t.break()})},Ux.nil)}}};r5.default=VPe});var vee=L(n5=>{"use strict";Object.defineProperty(n5,"__esModule",{value:!0});var zx=kr(),KPe={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,zx.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,zx._)`{limit: ${e}}`},GPe={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:KPe,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?zx.operators.GT:zx.operators.LT;e.fail$data((0,zx._)`${r}.length ${o} ${n}`)}};n5.default=GPe});var OC=L(o5=>{"use strict";Object.defineProperty(o5,"__esModule",{value:!0});var bee=A9();bee.code='require("ajv/dist/runtime/equal").default';o5.default=bee});var xee=L(a5=>{"use strict";Object.defineProperty(a5,"__esModule",{value:!0});var i5=kx(),Ta=kr(),HPe=un(),ZPe=OC(),WPe={message:({params:{i:e,j:t}})=>(0,Ta.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Ta._)`{i: ${e}, j: ${t}}`},QPe={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:WPe,code(e){let{gen:t,data:r,$data:n,schema:o,parentSchema:i,schemaCode:a,it:s}=e;if(!n&&!o)return;let c=t.let("valid"),p=i.items?(0,i5.getSchemaTypes)(i.items):[];e.block$data(c,d,(0,Ta._)`${a} === false`),e.ok(c);function d(){let g=t.let("i",(0,Ta._)`${r}.length`),S=t.let("j");e.setParams({i:g,j:S}),t.assign(c,!0),t.if((0,Ta._)`${g} > 1`,()=>(f()?m:y)(g,S))}function f(){return p.length>0&&!p.some(g=>g==="object"||g==="array")}function m(g,S){let b=t.name("item"),E=(0,i5.checkDataTypes)(p,b,s.opts.strictNumbers,i5.DataType.Wrong),I=t.const("indices",(0,Ta._)`{}`);t.for((0,Ta._)`;${g}--;`,()=>{t.let(b,(0,Ta._)`${r}[${g}]`),t.if(E,(0,Ta._)`continue`),p.length>1&&t.if((0,Ta._)`typeof ${b} == "string"`,(0,Ta._)`${b} += "_"`),t.if((0,Ta._)`typeof ${I}[${b}] == "number"`,()=>{t.assign(S,(0,Ta._)`${I}[${b}]`),e.error(),t.assign(c,!1).break()}).code((0,Ta._)`${I}[${b}] = ${g}`)})}function y(g,S){let b=(0,HPe.useFunc)(t,ZPe.default),E=t.name("outer");t.label(E).for((0,Ta._)`;${g}--;`,()=>t.for((0,Ta._)`${S} = ${g}; ${S}--;`,()=>t.if((0,Ta._)`${b}(${r}[${g}], ${r}[${S}])`,()=>{e.error(),t.assign(c,!1).break(E)})))}}};a5.default=QPe});var Eee=L(c5=>{"use strict";Object.defineProperty(c5,"__esModule",{value:!0});var s5=kr(),XPe=un(),YPe=OC(),e6e={message:"must be equal to constant",params:({schemaCode:e})=>(0,s5._)`{allowedValue: ${e}}`},t6e={keyword:"const",$data:!0,error:e6e,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,s5._)`!${(0,XPe.useFunc)(t,YPe.default)}(${r}, ${o})`):e.fail((0,s5._)`${i} !== ${r}`)}};c5.default=t6e});var Tee=L(l5=>{"use strict";Object.defineProperty(l5,"__esModule",{value:!0});var Jx=kr(),r6e=un(),n6e=OC(),o6e={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Jx._)`{allowedValues: ${e}}`},i6e={keyword:"enum",schemaType:"array",$data:!0,error:o6e,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:a}=e;if(!n&&o.length===0)throw new Error("enum must have non-empty array");let s=o.length>=a.opts.loopEnum,c,p=()=>c??(c=(0,r6e.useFunc)(t,n6e.default)),d;if(s||n)d=t.let("valid"),e.block$data(d,f);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let y=t.const("vSchema",i);d=(0,Jx.or)(...o.map((g,S)=>m(y,S)))}e.pass(d);function f(){t.assign(d,!1),t.forOf("v",i,y=>t.if((0,Jx._)`${p()}(${r}, ${y})`,()=>t.assign(d,!0).break()))}function m(y,g){let S=o[g];return typeof S=="object"&&S!==null?(0,Jx._)`${p()}(${r}, ${y}[${g}])`:(0,Jx._)`${r} === ${S}`}}};l5.default=i6e});var p5=L(u5=>{"use strict";Object.defineProperty(u5,"__esModule",{value:!0});var a6e=dee(),s6e=_ee(),c6e=hee(),l6e=yee(),u6e=gee(),p6e=See(),d6e=vee(),_6e=xee(),f6e=Eee(),m6e=Tee(),h6e=[a6e.default,s6e.default,c6e.default,l6e.default,u6e.default,p6e.default,d6e.default,_6e.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},f6e.default,m6e.default];u5.default=h6e});var _5=L(Vx=>{"use strict";Object.defineProperty(Vx,"__esModule",{value:!0});Vx.validateAdditionalItems=void 0;var Ry=kr(),d5=un(),y6e={message:({params:{len:e}})=>(0,Ry.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Ry._)`{limit: ${e}}`},g6e={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:y6e,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,d5.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Dee(e,n)}};function Dee(e,t){let{gen:r,schema:n,data:o,keyword:i,it:a}=e;a.items=!0;let s=r.const("len",(0,Ry._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Ry._)`${s} <= ${t.length}`);else if(typeof n=="object"&&!(0,d5.alwaysValidSchema)(a,n)){let p=r.var("valid",(0,Ry._)`${s} <= ${t.length}`);r.if((0,Ry.not)(p),()=>c(p)),e.ok(p)}function c(p){r.forRange("i",t.length,s,d=>{e.subschema({keyword:i,dataProp:d,dataPropType:d5.Type.Num},p),a.allErrors||r.if((0,Ry.not)(p),()=>r.break())})}}Vx.validateAdditionalItems=Dee;Vx.default=g6e});var f5=L(Kx=>{"use strict";Object.defineProperty(Kx,"__esModule",{value:!0});Kx.validateTuple=void 0;var Aee=kr(),NC=un(),S6e=yl(),v6e={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Iee(e,"additionalItems",t);r.items=!0,!(0,NC.alwaysValidSchema)(r,t)&&e.ok((0,S6e.validateArray)(e))}};function Iee(e,t,r=e.schema){let{gen:n,parentSchema:o,data:i,keyword:a,it:s}=e;d(o),s.opts.unevaluated&&r.length&&s.items!==!0&&(s.items=NC.mergeEvaluated.items(n,r.length,s.items));let c=n.name("valid"),p=n.const("len",(0,Aee._)`${i}.length`);r.forEach((f,m)=>{(0,NC.alwaysValidSchema)(s,f)||(n.if((0,Aee._)`${p} > ${m}`,()=>e.subschema({keyword:a,schemaProp:m,dataProp:m},c)),e.ok(c))});function d(f){let{opts:m,errSchemaPath:y}=s,g=r.length,S=g===f.minItems&&(g===f.maxItems||f[t]===!1);if(m.strictTuples&&!S){let b=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${y}"`;(0,NC.checkStrictMode)(s,b,m.strictTuples)}}}Kx.validateTuple=Iee;Kx.default=v6e});var wee=L(m5=>{"use strict";Object.defineProperty(m5,"__esModule",{value:!0});var b6e=f5(),x6e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,b6e.validateTuple)(e,"items")};m5.default=x6e});var Cee=L(h5=>{"use strict";Object.defineProperty(h5,"__esModule",{value:!0});var kee=kr(),E6e=un(),T6e=yl(),D6e=_5(),A6e={message:({params:{len:e}})=>(0,kee.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,kee._)`{limit: ${e}}`},I6e={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:A6e,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,E6e.alwaysValidSchema)(n,t)&&(o?(0,D6e.validateAdditionalItems)(e,o):e.ok((0,T6e.validateArray)(e)))}};h5.default=I6e});var Pee=L(y5=>{"use strict";Object.defineProperty(y5,"__esModule",{value:!0});var Sl=kr(),FC=un(),w6e={message:({params:{min:e,max:t}})=>t===void 0?(0,Sl.str)`must contain at least ${e} valid item(s)`:(0,Sl.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Sl._)`{minContains: ${e}}`:(0,Sl._)`{minContains: ${e}, maxContains: ${t}}`},k6e={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:w6e,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e,a,s,{minContains:c,maxContains:p}=n;i.opts.next?(a=c===void 0?1:c,s=p):a=1;let d=t.const("len",(0,Sl._)`${o}.length`);if(e.setParams({min:a,max:s}),s===void 0&&a===0){(0,FC.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&a>s){(0,FC.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,FC.alwaysValidSchema)(i,r)){let S=(0,Sl._)`${d} >= ${a}`;s!==void 0&&(S=(0,Sl._)`${S} && ${d} <= ${s}`),e.pass(S);return}i.items=!0;let f=t.name("valid");s===void 0&&a===1?y(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),s!==void 0&&t.if((0,Sl._)`${o}.length > 0`,m)):(t.let(f,!1),m()),e.result(f,()=>e.reset());function m(){let S=t.name("_valid"),b=t.let("count",0);y(S,()=>t.if(S,()=>g(b)))}function y(S,b){t.forRange("i",0,d,E=>{e.subschema({keyword:"contains",dataProp:E,dataPropType:FC.Type.Num,compositeRule:!0},S),b()})}function g(S){t.code((0,Sl._)`${S}++`),s===void 0?t.if((0,Sl._)`${S} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,Sl._)`${S} > ${s}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,Sl._)`${S} >= ${a}`,()=>t.assign(f,!0)))}}};y5.default=k6e});var RC=L(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.validateSchemaDeps=vp.validatePropertyDeps=vp.error=void 0;var g5=kr(),C6e=un(),Gx=yl();vp.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,g5.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,g5._)`{property: ${e}, missingProperty: ${n}, depsCount: ${t}, - deps: ${r}}`};var k6e={keyword:"dependencies",type:"object",schemaType:"object",error:Sp.error,code(e){let[t,r]=C6e(e);Cee(e,t),Pee(e,r)}};function C6e({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let o=Array.isArray(e[n])?t:r;o[n]=e[n]}return[t,r]}function Cee(e,t=e.schema){let{gen:r,data:n,it:o}=e;if(Object.keys(t).length===0)return;let i=r.let("missing");for(let a in t){let s=t[a];if(s.length===0)continue;let c=(0,Jx.propertyInData)(r,n,a,o.opts.ownProperties);e.setParams({property:a,depsCount:s.length,deps:s.join(", ")}),o.allErrors?r.if(c,()=>{for(let p of s)(0,Jx.checkReportMissingProp)(e,p)}):(r.if((0,h5._)`${c} && (${(0,Jx.checkMissingProp)(e,s,i)})`),(0,Jx.reportMissingProp)(e,i),r.else())}}Sp.validatePropertyDeps=Cee;function Pee(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,a=r.name("valid");for(let s in t)(0,I6e.alwaysValidSchema)(i,t[s])||(r.if((0,Jx.propertyInData)(r,n,s,i.opts.ownProperties),()=>{let c=e.subschema({keyword:o,schemaProp:s},a);e.mergeValidEvaluated(c,a)},()=>r.var(a,!0)),e.ok(a))}Sp.validateSchemaDeps=Pee;Sp.default=k6e});var Nee=L(y5=>{"use strict";Object.defineProperty(y5,"__esModule",{value:!0});var Oee=kr(),P6e=ln(),O6e={message:"property name must be valid",params:({params:e})=>(0,Oee._)`{propertyName: ${e.propertyName}}`},N6e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:O6e,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,P6e.alwaysValidSchema)(o,r))return;let i=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},i),t.if((0,Oee.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};y5.default=N6e});var S5=L(g5=>{"use strict";Object.defineProperty(g5,"__esModule",{value:!0});var FC=hl(),mu=kr(),F6e=ml(),RC=ln(),R6e={message:"must NOT have additional properties",params:({params:e})=>(0,mu._)`{additionalProperty: ${e.additionalProperty}}`},L6e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:R6e,code(e){let{gen:t,schema:r,parentSchema:n,data:o,errsCount:i,it:a}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:s,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&(0,RC.alwaysValidSchema)(a,r))return;let p=(0,FC.allSchemaProperties)(n.properties),d=(0,FC.allSchemaProperties)(n.patternProperties);f(),e.ok((0,mu._)`${i} === ${F6e.default.errors}`);function f(){t.forIn("key",o,x=>{!p.length&&!d.length?g(x):t.if(m(x),()=>g(x))})}function m(x){let A;if(p.length>8){let I=(0,RC.schemaRefOrVal)(a,n.properties,"properties");A=(0,FC.isOwnProperty)(t,I,x)}else p.length?A=(0,mu.or)(...p.map(I=>(0,mu._)`${x} === ${I}`)):A=mu.nil;return d.length&&(A=(0,mu.or)(A,...d.map(I=>(0,mu._)`${(0,FC.usePattern)(e,I)}.test(${x})`))),(0,mu.not)(A)}function y(x){t.code((0,mu._)`delete ${o}[${x}]`)}function g(x){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){y(x);return}if(r===!1){e.setParams({additionalProperty:x}),e.error(),s||t.break();return}if(typeof r=="object"&&!(0,RC.alwaysValidSchema)(a,r)){let A=t.name("valid");c.removeAdditional==="failing"?(S(x,A,!1),t.if((0,mu.not)(A),()=>{e.reset(),y(x)})):(S(x,A),s||t.if((0,mu.not)(A),()=>t.break()))}}function S(x,A,I){let E={keyword:"additionalProperties",dataProp:x,dataPropType:RC.Type.Str};I===!1&&Object.assign(E,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(E,A)}}};g5.default=L6e});var Lee=L(b5=>{"use strict";Object.defineProperty(b5,"__esModule",{value:!0});var $6e=c0(),Fee=hl(),v5=ln(),Ree=S5(),M6e={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e;i.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Ree.default.code(new $6e.KeywordCxt(i,Ree.default,"additionalProperties"));let a=(0,Fee.allSchemaProperties)(r);for(let f of a)i.definedProperties.add(f);i.opts.unevaluated&&a.length&&i.props!==!0&&(i.props=v5.mergeEvaluated.props(t,(0,v5.toHash)(a),i.props));let s=a.filter(f=>!(0,v5.alwaysValidSchema)(i,r[f]));if(s.length===0)return;let c=t.name("valid");for(let f of s)p(f)?d(f):(t.if((0,Fee.propertyInData)(t,o,f,i.opts.ownProperties)),d(f),i.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(c);function p(f){return i.opts.useDefaults&&!i.compositeRule&&r[f].default!==void 0}function d(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}}};b5.default=M6e});var Bee=L(x5=>{"use strict";Object.defineProperty(x5,"__esModule",{value:!0});var $ee=hl(),LC=kr(),Mee=ln(),jee=ln(),j6e={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:o,it:i}=e,{opts:a}=i,s=(0,$ee.allSchemaProperties)(r),c=s.filter(S=>(0,Mee.alwaysValidSchema)(i,r[S]));if(s.length===0||c.length===s.length&&(!i.opts.unevaluated||i.props===!0))return;let p=a.strictSchema&&!a.allowMatchingProperties&&o.properties,d=t.name("valid");i.props!==!0&&!(i.props instanceof LC.Name)&&(i.props=(0,jee.evaluatedPropsToName)(t,i.props));let{props:f}=i;m();function m(){for(let S of s)p&&y(S),i.allErrors?g(S):(t.var(d,!0),g(S),t.if(d))}function y(S){for(let x in p)new RegExp(S).test(x)&&(0,Mee.checkStrictMode)(i,`property ${x} matches pattern ${S} (use allowMatchingProperties)`)}function g(S){t.forIn("key",n,x=>{t.if((0,LC._)`${(0,$ee.usePattern)(e,S)}.test(${x})`,()=>{let A=c.includes(S);A||e.subschema({keyword:"patternProperties",schemaProp:S,dataProp:x,dataPropType:jee.Type.Str},d),i.opts.unevaluated&&f!==!0?t.assign((0,LC._)`${f}[${x}]`,!0):!A&&!i.allErrors&&t.if((0,LC.not)(d),()=>t.break())})})}}};x5.default=j6e});var qee=L(E5=>{"use strict";Object.defineProperty(E5,"__esModule",{value:!0});var B6e=ln(),q6e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,B6e.alwaysValidSchema)(n,r)){e.fail();return}let o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};E5.default=q6e});var Uee=L(T5=>{"use strict";Object.defineProperty(T5,"__esModule",{value:!0});var U6e=hl(),z6e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:U6e.validateUnion,error:{message:"must match a schema in anyOf"}};T5.default=z6e});var zee=L(D5=>{"use strict";Object.defineProperty(D5,"__esModule",{value:!0});var $C=kr(),V6e=ln(),J6e={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,$C._)`{passingSchemas: ${e.passing}}`},K6e={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:J6e,code(e){let{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let i=r,a=t.let("valid",!1),s=t.let("passing",null),c=t.name("_valid");e.setParams({passing:s}),t.block(p),e.result(a,()=>e.reset(),()=>e.error(!0));function p(){i.forEach((d,f)=>{let m;(0,V6e.alwaysValidSchema)(o,d)?t.var(c,!0):m=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&t.if((0,$C._)`${c} && ${a}`).assign(a,!1).assign(s,(0,$C._)`[${s}, ${f}]`).else(),t.if(c,()=>{t.assign(a,!0),t.assign(s,f),m&&e.mergeEvaluated(m,$C.Name)})})}}};D5.default=K6e});var Vee=L(A5=>{"use strict";Object.defineProperty(A5,"__esModule",{value:!0});var G6e=ln(),H6e={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let o=t.name("valid");r.forEach((i,a)=>{if((0,G6e.alwaysValidSchema)(n,i))return;let s=e.subschema({keyword:"allOf",schemaProp:a},o);e.ok(o),e.mergeEvaluated(s)})}};A5.default=H6e});var Gee=L(w5=>{"use strict";Object.defineProperty(w5,"__esModule",{value:!0});var MC=kr(),Kee=ln(),Z6e={message:({params:e})=>(0,MC.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,MC._)`{failingKeyword: ${e.ifClause}}`},W6e={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Z6e,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Kee.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=Jee(n,"then"),i=Jee(n,"else");if(!o&&!i)return;let a=t.let("valid",!0),s=t.name("_valid");if(c(),e.reset(),o&&i){let d=t.let("ifClause");e.setParams({ifClause:d}),t.if(s,p("then",d),p("else",d))}else o?t.if(s,p("then")):t.if((0,MC.not)(s),p("else"));e.pass(a,()=>e.error(!0));function c(){let d=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(d)}function p(d,f){return()=>{let m=e.subschema({keyword:d},s);t.assign(a,s),e.mergeValidEvaluated(m,a),f?t.assign(f,(0,MC._)`${d}`):e.setParams({ifClause:d})}}}};function Jee(e,t){let r=e.schema[t];return r!==void 0&&!(0,Kee.alwaysValidSchema)(e,r)}w5.default=W6e});var Hee=L(I5=>{"use strict";Object.defineProperty(I5,"__esModule",{value:!0});var Q6e=ln(),X6e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,Q6e.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};I5.default=X6e});var C5=L(k5=>{"use strict";Object.defineProperty(k5,"__esModule",{value:!0});var Y6e=p5(),e3e=Aee(),t3e=d5(),r3e=Iee(),n3e=kee(),o3e=NC(),i3e=Nee(),a3e=S5(),s3e=Lee(),c3e=Bee(),l3e=qee(),u3e=Uee(),p3e=zee(),d3e=Vee(),_3e=Gee(),f3e=Hee();function m3e(e=!1){let t=[l3e.default,u3e.default,p3e.default,d3e.default,_3e.default,f3e.default,i3e.default,a3e.default,o3e.default,s3e.default,c3e.default];return e?t.push(e3e.default,r3e.default):t.push(Y6e.default,t3e.default),t.push(n3e.default),t}k5.default=m3e});var O5=L(Kx=>{"use strict";Object.defineProperty(Kx,"__esModule",{value:!0});Kx.dynamicAnchor=void 0;var P5=kr(),h3e=ml(),Zee=Ox(),y3e=wC(),g3e={keyword:"$dynamicAnchor",schemaType:"string",code:e=>Wee(e,e.schema)};function Wee(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let o=(0,P5._)`${h3e.default.dynamicAnchors}${(0,P5.getProperty)(t)}`,i=n.errSchemaPath==="#"?n.validateName:S3e(e);r.if((0,P5._)`!${o}`,()=>r.assign(o,i))}Kx.dynamicAnchor=Wee;function S3e(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:o,baseId:i,localRefs:a,meta:s}=t.root,{schemaId:c}=n.opts,p=new Zee.SchemaEnv({schema:r,schemaId:c,root:o,baseId:i,localRefs:a,meta:s});return Zee.compileSchema.call(n,p),(0,y3e.getValidate)(e,p)}Kx.default=g3e});var N5=L(Gx=>{"use strict";Object.defineProperty(Gx,"__esModule",{value:!0});Gx.dynamicRef=void 0;var Qee=kr(),v3e=ml(),Xee=wC(),b3e={keyword:"$dynamicRef",schemaType:"string",code:e=>Yee(e,e.schema)};function Yee(e,t){let{gen:r,keyword:n,it:o}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let i=t.slice(1);if(o.allErrors)a();else{let c=r.let("valid",!1);a(c),e.ok(c)}function a(c){if(o.schemaEnv.root.dynamicAnchors[i]){let p=r.let("_v",(0,Qee._)`${v3e.default.dynamicAnchors}${(0,Qee.getProperty)(i)}`);r.if(p,s(p,c),s(o.validateName,c))}else s(o.validateName,c)()}function s(c,p){return p?()=>r.block(()=>{(0,Xee.callRef)(e,c),r.let(p,!0)}):()=>(0,Xee.callRef)(e,c)}}Gx.dynamicRef=Yee;Gx.default=b3e});var ete=L(F5=>{"use strict";Object.defineProperty(F5,"__esModule",{value:!0});var x3e=O5(),E3e=ln(),T3e={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,x3e.dynamicAnchor)(e,""):(0,E3e.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};F5.default=T3e});var tte=L(R5=>{"use strict";Object.defineProperty(R5,"__esModule",{value:!0});var D3e=N5(),A3e={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,D3e.dynamicRef)(e,e.schema)};R5.default=A3e});var rte=L(L5=>{"use strict";Object.defineProperty(L5,"__esModule",{value:!0});var w3e=O5(),I3e=N5(),k3e=ete(),C3e=tte(),P3e=[w3e.default,I3e.default,k3e.default,C3e.default];L5.default=P3e});var ote=L($5=>{"use strict";Object.defineProperty($5,"__esModule",{value:!0});var nte=NC(),O3e={keyword:"dependentRequired",type:"object",schemaType:"object",error:nte.error,code:e=>(0,nte.validatePropertyDeps)(e)};$5.default=O3e});var ite=L(M5=>{"use strict";Object.defineProperty(M5,"__esModule",{value:!0});var N3e=NC(),F3e={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,N3e.validateSchemaDeps)(e)};M5.default=F3e});var ate=L(j5=>{"use strict";Object.defineProperty(j5,"__esModule",{value:!0});var R3e=ln(),L3e={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,R3e.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};j5.default=L3e});var ste=L(B5=>{"use strict";Object.defineProperty(B5,"__esModule",{value:!0});var $3e=ote(),M3e=ite(),j3e=ate(),B3e=[$3e.default,M3e.default,j3e.default];B5.default=B3e});var lte=L(q5=>{"use strict";Object.defineProperty(q5,"__esModule",{value:!0});var Hf=kr(),cte=ln(),q3e=ml(),U3e={message:"must NOT have unevaluated properties",params:({params:e})=>(0,Hf._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},z3e={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:U3e,code(e){let{gen:t,schema:r,data:n,errsCount:o,it:i}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:a,props:s}=i;s instanceof Hf.Name?t.if((0,Hf._)`${s} !== true`,()=>t.forIn("key",n,f=>t.if(p(s,f),()=>c(f)))):s!==!0&&t.forIn("key",n,f=>s===void 0?c(f):t.if(d(s,f),()=>c(f))),i.props=!0,e.ok((0,Hf._)`${o} === ${q3e.default.errors}`);function c(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,cte.alwaysValidSchema)(i,r)){let m=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:cte.Type.Str},m),a||t.if((0,Hf.not)(m),()=>t.break())}}function p(f,m){return(0,Hf._)`!${f} || !${f}[${m}]`}function d(f,m){let y=[];for(let g in f)f[g]===!0&&y.push((0,Hf._)`${m} !== ${g}`);return(0,Hf.and)(...y)}}};q5.default=z3e});var pte=L(U5=>{"use strict";Object.defineProperty(U5,"__esModule",{value:!0});var Oy=kr(),ute=ln(),V3e={message:({params:{len:e}})=>(0,Oy.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Oy._)`{limit: ${e}}`},J3e={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:V3e,code(e){let{gen:t,schema:r,data:n,it:o}=e,i=o.items||0;if(i===!0)return;let a=t.const("len",(0,Oy._)`${n}.length`);if(r===!1)e.setParams({len:i}),e.fail((0,Oy._)`${a} > ${i}`);else if(typeof r=="object"&&!(0,ute.alwaysValidSchema)(o,r)){let c=t.var("valid",(0,Oy._)`${a} <= ${i}`);t.if((0,Oy.not)(c),()=>s(c,i)),e.ok(c)}o.items=!0;function s(c,p){t.forRange("i",p,a,d=>{e.subschema({keyword:"unevaluatedItems",dataProp:d,dataPropType:ute.Type.Num},c),o.allErrors||t.if((0,Oy.not)(c),()=>t.break())})}}};U5.default=J3e});var dte=L(z5=>{"use strict";Object.defineProperty(z5,"__esModule",{value:!0});var K3e=lte(),G3e=pte(),H3e=[K3e.default,G3e.default];z5.default=H3e});var _te=L(V5=>{"use strict";Object.defineProperty(V5,"__esModule",{value:!0});var Ii=kr(),Z3e={message:({schemaCode:e})=>(0,Ii.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ii._)`{format: ${e}}`},W3e={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Z3e,code(e,t){let{gen:r,data:n,$data:o,schema:i,schemaCode:a,it:s}=e,{opts:c,errSchemaPath:p,schemaEnv:d,self:f}=s;if(!c.validateFormats)return;o?m():y();function m(){let g=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),S=r.const("fDef",(0,Ii._)`${g}[${a}]`),x=r.let("fType"),A=r.let("format");r.if((0,Ii._)`typeof ${S} == "object" && !(${S} instanceof RegExp)`,()=>r.assign(x,(0,Ii._)`${S}.type || "string"`).assign(A,(0,Ii._)`${S}.validate`),()=>r.assign(x,(0,Ii._)`"string"`).assign(A,S)),e.fail$data((0,Ii.or)(I(),E()));function I(){return c.strictSchema===!1?Ii.nil:(0,Ii._)`${a} && !${A}`}function E(){let C=d.$async?(0,Ii._)`(${S}.async ? await ${A}(${n}) : ${A}(${n}))`:(0,Ii._)`${A}(${n})`,F=(0,Ii._)`(typeof ${A} == "function" ? ${C} : ${A}.test(${n}))`;return(0,Ii._)`${A} && ${A} !== true && ${x} === ${t} && !${F}`}}function y(){let g=f.formats[i];if(!g){I();return}if(g===!0)return;let[S,x,A]=E(g);S===t&&e.pass(C());function I(){if(c.strictSchema===!1){f.logger.warn(F());return}throw new Error(F());function F(){return`unknown format "${i}" ignored in schema at path "${p}"`}}function E(F){let O=F instanceof RegExp?(0,Ii.regexpCode)(F):c.code.formats?(0,Ii._)`${c.code.formats}${(0,Ii.getProperty)(i)}`:void 0,$=r.scopeValue("formats",{key:i,ref:F,code:O});return typeof F=="object"&&!(F instanceof RegExp)?[F.type||"string",F.validate,(0,Ii._)`${$}.validate`]:["string",F,$]}function C(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!d.$async)throw new Error("async format in sync schema");return(0,Ii._)`await ${A}(${n})`}return typeof x=="function"?(0,Ii._)`${A}(${n})`:(0,Ii._)`${A}.test(${n})`}}}};V5.default=W3e});var K5=L(J5=>{"use strict";Object.defineProperty(J5,"__esModule",{value:!0});var Q3e=_te(),X3e=[Q3e.default];J5.default=X3e});var G5=L(f0=>{"use strict";Object.defineProperty(f0,"__esModule",{value:!0});f0.contentVocabulary=f0.metadataVocabulary=void 0;f0.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];f0.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var mte=L(H5=>{"use strict";Object.defineProperty(H5,"__esModule",{value:!0});var Y3e=G9(),eOe=l5(),tOe=C5(),rOe=rte(),nOe=ste(),oOe=dte(),iOe=K5(),fte=G5(),aOe=[rOe.default,Y3e.default,eOe.default,(0,tOe.default)(!0),iOe.default,fte.metadataVocabulary,fte.contentVocabulary,nOe.default,oOe.default];H5.default=aOe});var yte=L(jC=>{"use strict";Object.defineProperty(jC,"__esModule",{value:!0});jC.DiscrError=void 0;var hte;(function(e){e.Tag="tag",e.Mapping="mapping"})(hte||(jC.DiscrError=hte={}))});var Q5=L(W5=>{"use strict";Object.defineProperty(W5,"__esModule",{value:!0});var m0=kr(),Z5=yte(),gte=Ox(),sOe=l0(),cOe=ln(),lOe={message:({params:{discrError:e,tagName:t}})=>e===Z5.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,m0._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},uOe={keyword:"discriminator",type:"object",schemaType:"object",error:lOe,code(e){let{gen:t,data:r,schema:n,parentSchema:o,it:i}=e,{oneOf:a}=o;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");let s=n.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),p=t.const("tag",(0,m0._)`${r}${(0,m0.getProperty)(s)}`);t.if((0,m0._)`typeof ${p} == "string"`,()=>d(),()=>e.error(!1,{discrError:Z5.DiscrError.Tag,tag:p,tagName:s})),e.ok(c);function d(){let y=m();t.if(!1);for(let g in y)t.elseIf((0,m0._)`${p} === ${g}`),t.assign(c,f(y[g]));t.else(),e.error(!1,{discrError:Z5.DiscrError.Mapping,tag:p,tagName:s}),t.endIf()}function f(y){let g=t.name("valid"),S=e.subschema({keyword:"oneOf",schemaProp:y},g);return e.mergeEvaluated(S,m0.Name),g}function m(){var y;let g={},S=A(o),x=!0;for(let C=0;C{pOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var vte=L((XIt,dOe)=>{dOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var bte=L((YIt,_Oe)=>{_Oe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var xte=L((ekt,fOe)=>{fOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var Ete=L((tkt,mOe)=>{mOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var Tte=L((rkt,hOe)=>{hOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var Dte=L((nkt,yOe)=>{yOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var Ate=L((okt,gOe)=>{gOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var wte=L(X5=>{"use strict";Object.defineProperty(X5,"__esModule",{value:!0});var SOe=Ste(),vOe=vte(),bOe=bte(),xOe=xte(),EOe=Ete(),TOe=Tte(),DOe=Dte(),AOe=Ate(),wOe=["/properties"];function IOe(e){return[SOe,vOe,bOe,xOe,EOe,t(this,TOe),DOe,t(this,AOe)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,wOe):n}}X5.default=IOe});var Ite=L((Jo,eL)=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.MissingRefError=Jo.ValidationError=Jo.CodeGen=Jo.Name=Jo.nil=Jo.stringify=Jo.str=Jo._=Jo.KeywordCxt=Jo.Ajv2020=void 0;var kOe=V9(),COe=mte(),POe=Q5(),OOe=wte(),Y5="https://json-schema.org/draft/2020-12/schema",h0=class extends kOe.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),COe.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(POe.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(OOe.default.call(this,t),this.refs["http://json-schema.org/schema"]=Y5)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Y5)?Y5:void 0)}};Jo.Ajv2020=h0;eL.exports=Jo=h0;eL.exports.Ajv2020=h0;Object.defineProperty(Jo,"__esModule",{value:!0});Jo.default=h0;var NOe=c0();Object.defineProperty(Jo,"KeywordCxt",{enumerable:!0,get:function(){return NOe.KeywordCxt}});var y0=kr();Object.defineProperty(Jo,"_",{enumerable:!0,get:function(){return y0._}});Object.defineProperty(Jo,"str",{enumerable:!0,get:function(){return y0.str}});Object.defineProperty(Jo,"stringify",{enumerable:!0,get:function(){return y0.stringify}});Object.defineProperty(Jo,"nil",{enumerable:!0,get:function(){return y0.nil}});Object.defineProperty(Jo,"Name",{enumerable:!0,get:function(){return y0.Name}});Object.defineProperty(Jo,"CodeGen",{enumerable:!0,get:function(){return y0.CodeGen}});var FOe=Px();Object.defineProperty(Jo,"ValidationError",{enumerable:!0,get:function(){return FOe.default}});var ROe=l0();Object.defineProperty(Jo,"MissingRefError",{enumerable:!0,get:function(){return ROe.default}})});var Sie=L(yj=>{"use strict";Object.defineProperty(yj,"__esModule",{value:!0});var d9e=G9(),_9e=l5(),f9e=C5(),m9e=K5(),gie=G5(),h9e=[d9e.default,_9e.default,(0,f9e.default)(),m9e.default,gie.metadataVocabulary,gie.contentVocabulary];yj.default=h9e});var vie=L((GRt,y9e)=>{y9e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Sj=L((Go,gj)=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.MissingRefError=Go.ValidationError=Go.CodeGen=Go.Name=Go.nil=Go.stringify=Go.str=Go._=Go.KeywordCxt=Go.Ajv=void 0;var g9e=V9(),S9e=Sie(),v9e=Q5(),bie=vie(),b9e=["/properties"],l6="http://json-schema.org/draft-07/schema",H0=class extends g9e.default{_addVocabularies(){super._addVocabularies(),S9e.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(v9e.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(bie,b9e):bie;this.addMetaSchema(t,l6,!1),this.refs["http://json-schema.org/schema"]=l6}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l6)?l6:void 0)}};Go.Ajv=H0;gj.exports=Go=H0;gj.exports.Ajv=H0;Object.defineProperty(Go,"__esModule",{value:!0});Go.default=H0;var x9e=c0();Object.defineProperty(Go,"KeywordCxt",{enumerable:!0,get:function(){return x9e.KeywordCxt}});var Z0=kr();Object.defineProperty(Go,"_",{enumerable:!0,get:function(){return Z0._}});Object.defineProperty(Go,"str",{enumerable:!0,get:function(){return Z0.str}});Object.defineProperty(Go,"stringify",{enumerable:!0,get:function(){return Z0.stringify}});Object.defineProperty(Go,"nil",{enumerable:!0,get:function(){return Z0.nil}});Object.defineProperty(Go,"Name",{enumerable:!0,get:function(){return Z0.Name}});Object.defineProperty(Go,"CodeGen",{enumerable:!0,get:function(){return Z0.CodeGen}});var E9e=Px();Object.defineProperty(Go,"ValidationError",{enumerable:!0,get:function(){return E9e.default}});var T9e=l0();Object.defineProperty(Go,"MissingRefError",{enumerable:!0,get:function(){return T9e.default}})});var kie=L(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.formatNames=Dp.fastFormats=Dp.fullFormats=void 0;function Tp(e,t){return{validate:e,compare:t}}Dp.fullFormats={date:Tp(Die,Ej),time:Tp(bj(!0),Tj),"date-time":Tp(xie(!0),wie),"iso-time":Tp(bj(),Aie),"iso-date-time":Tp(xie(),Iie),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:C9e,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:$9e,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:P9e,int32:{type:"number",validate:F9e},int64:{type:"number",validate:R9e},float:{type:"number",validate:Tie},double:{type:"number",validate:Tie},password:!0,binary:!0};Dp.fastFormats={...Dp.fullFormats,date:Tp(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,Ej),time:Tp(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Tj),"date-time":Tp(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,wie),"iso-time":Tp(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Aie),"iso-date-time":Tp(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Iie),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Dp.formatNames=Object.keys(Dp.fullFormats);function D9e(e){return e%4===0&&(e%100!==0||e%400===0)}var A9e=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,w9e=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Die(e){let t=A9e.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],o=+t[3];return n>=1&&n<=12&&o>=1&&o<=(n===2&&D9e(r)?29:w9e[n])}function Ej(e,t){if(e&&t)return e>t?1:e23||d>59||e&&!s)return!1;if(o<=23&&i<=59&&a<60)return!0;let f=i-d*c,m=o-p*c-(f<0?1:0);return(m===23||m===-1)&&(f===59||f===-1)&&a<61}}function Tj(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),n=new Date("2020-01-01T"+t).valueOf();if(r&&n)return r-n}function Aie(e,t){if(!(e&&t))return;let r=vj.exec(e),n=vj.exec(t);if(r&&n)return e=r[1]+r[2]+r[3],t=n[1]+n[2]+n[3],e>t?1:e=O9e}function R9e(e){return Number.isInteger(e)}function Tie(){return!0}var L9e=/[^\\]\\Z/;function $9e(e){if(L9e.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var Cie=L(W0=>{"use strict";Object.defineProperty(W0,"__esModule",{value:!0});W0.formatLimitDefinition=void 0;var M9e=Sj(),xu=kr(),am=xu.operators,u6={formatMaximum:{okStr:"<=",ok:am.LTE,fail:am.GT},formatMinimum:{okStr:">=",ok:am.GTE,fail:am.LT},formatExclusiveMaximum:{okStr:"<",ok:am.LT,fail:am.GTE},formatExclusiveMinimum:{okStr:">",ok:am.GT,fail:am.LTE}},j9e={message:({keyword:e,schemaCode:t})=>(0,xu.str)`should be ${u6[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,xu._)`{comparison: ${u6[e].okStr}, limit: ${t}}`};W0.formatLimitDefinition={keyword:Object.keys(u6),type:"string",schemaType:"string",$data:!0,error:j9e,code(e){let{gen:t,data:r,schemaCode:n,keyword:o,it:i}=e,{opts:a,self:s}=i;if(!a.validateFormats)return;let c=new M9e.KeywordCxt(i,s.RULES.all.format.definition,"format");c.$data?p():d();function p(){let m=t.scopeValue("formats",{ref:s.formats,code:a.code.formats}),y=t.const("fmt",(0,xu._)`${m}[${c.schemaCode}]`);e.fail$data((0,xu.or)((0,xu._)`typeof ${y} != "object"`,(0,xu._)`${y} instanceof RegExp`,(0,xu._)`typeof ${y}.compare != "function"`,f(y)))}function d(){let m=c.schema,y=s.formats[m];if(!y||y===!0)return;if(typeof y!="object"||y instanceof RegExp||typeof y.compare!="function")throw new Error(`"${o}": format "${m}" does not define "compare" function`);let g=t.scopeValue("formats",{key:m,ref:y,code:a.code.formats?(0,xu._)`${a.code.formats}${(0,xu.getProperty)(m)}`:void 0});e.fail$data(f(g))}function f(m){return(0,xu._)`${m}.compare(${r}, ${n}) ${u6[o].fail} 0`}},dependencies:["format"]};var B9e=e=>(e.addKeyword(W0.formatLimitDefinition),e);W0.default=B9e});var Fie=L((uT,Nie)=>{"use strict";Object.defineProperty(uT,"__esModule",{value:!0});var Q0=kie(),q9e=Cie(),Dj=kr(),Pie=new Dj.Name("fullFormats"),U9e=new Dj.Name("fastFormats"),Aj=(e,t={keywords:!0})=>{if(Array.isArray(t))return Oie(e,t,Q0.fullFormats,Pie),e;let[r,n]=t.mode==="fast"?[Q0.fastFormats,U9e]:[Q0.fullFormats,Pie],o=t.formats||Q0.formatNames;return Oie(e,o,r,n),t.keywords&&(0,q9e.default)(e),e};Aj.get=(e,t="full")=>{let n=(t==="fast"?Q0.fastFormats:Q0.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function Oie(e,t,r,n){var o,i;(o=(i=e.opts.code).formats)!==null&&o!==void 0||(i.formats=(0,Dj._)`require("ajv-formats/dist/formats").${n}`);for(let a of t)e.addFormat(a,r[a])}Nie.exports=uT=Aj;Object.defineProperty(uT,"__esModule",{value:!0});uT.default=Aj});var aae=L((k8t,iae)=>{iae.exports=oae;oae.sync=v5e;var rae=_l("fs");function S5e(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n{uae.exports=cae;cae.sync=b5e;var sae=_l("fs");function cae(e,t,r){sae.stat(e,function(n,o){r(n,n?!1:lae(o,t))})}function b5e(e,t){return lae(sae.statSync(e),t)}function lae(e,t){return e.isFile()&&x5e(e,t)}function x5e(e,t){var r=e.mode,n=e.uid,o=e.gid,i=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),a=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),s=parseInt("100",8),c=parseInt("010",8),p=parseInt("001",8),d=s|c,f=r&p||r&c&&o===a||r&s&&n===i||r&d&&i===0;return f}});var _ae=L((O8t,dae)=>{var P8t=_l("fs"),x6;process.platform==="win32"||global.TESTING_WINDOWS?x6=aae():x6=pae();dae.exports=Kj;Kj.sync=E5e;function Kj(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,o){Kj(e,t||{},function(i,a){i?o(i):n(a)})})}x6(e,t||{},function(n,o){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,o=!1),r(n,o)})}function E5e(e,t){try{return x6.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var vae=L((N8t,Sae)=>{var iv=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",fae=_l("path"),T5e=iv?";":":",mae=_ae(),hae=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),yae=(e,t)=>{let r=t.colon||T5e,n=e.match(/\//)||iv&&e.match(/\\/)?[""]:[...iv?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=iv?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=iv?o.split(r):[""];return iv&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o}},gae=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:o,pathExtExe:i}=yae(e,t),a=[],s=p=>new Promise((d,f)=>{if(p===n.length)return t.all&&a.length?d(a):f(hae(e));let m=n[p],y=/^".*"$/.test(m)?m.slice(1,-1):m,g=fae.join(y,e),S=!y&&/^\.[\\\/]/.test(e)?e.slice(0,2)+g:g;d(c(S,p,0))}),c=(p,d,f)=>new Promise((m,y)=>{if(f===o.length)return m(s(d+1));let g=o[f];mae(p+g,{pathExt:i},(S,x)=>{if(!S&&x)if(t.all)a.push(p+g);else return m(p+g);return m(c(p,d,f+1))})});return r?s(0).then(p=>r(null,p),r):s(0)},D5e=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:o}=yae(e,t),i=[];for(let a=0;a{"use strict";var bae=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};Gj.exports=bae;Gj.exports.default=bae});var Aae=L((R8t,Dae)=>{"use strict";var Eae=_l("path"),A5e=vae(),w5e=xae();function Tae(e,t){let r=e.options.env||process.env,n=process.cwd(),o=e.options.cwd!=null,i=o&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let a;try{a=A5e.sync(e.command,{path:r[w5e({env:r})],pathExt:t?Eae.delimiter:void 0})}catch{}finally{i&&process.chdir(n)}return a&&(a=Eae.resolve(o?e.options.cwd:"",a)),a}function I5e(e){return Tae(e)||Tae(e,!0)}Dae.exports=I5e});var wae=L((L8t,Zj)=>{"use strict";var Hj=/([()\][%!^"`<>&|;, *?])/g;function k5e(e){return e=e.replace(Hj,"^$1"),e}function C5e(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(Hj,"^$1"),t&&(e=e.replace(Hj,"^$1")),e}Zj.exports.command=k5e;Zj.exports.argument=C5e});var kae=L(($8t,Iae)=>{"use strict";Iae.exports=/^#!(.*)/});var Pae=L((M8t,Cae)=>{"use strict";var P5e=kae();Cae.exports=(e="")=>{let t=e.match(P5e);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return o==="env"?n:n?`${o} ${n}`:o}});var Nae=L((j8t,Oae)=>{"use strict";var Wj=_l("fs"),O5e=Pae();function N5e(e){let r=Buffer.alloc(150),n;try{n=Wj.openSync(e,"r"),Wj.readSync(n,r,0,150,0),Wj.closeSync(n)}catch{}return O5e(r.toString())}Oae.exports=N5e});var $ae=L((B8t,Lae)=>{"use strict";var F5e=_l("path"),Fae=Aae(),Rae=wae(),R5e=Nae(),L5e=process.platform==="win32",$5e=/\.(?:com|exe)$/i,M5e=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function j5e(e){e.file=Fae(e);let t=e.file&&R5e(e.file);return t?(e.args.unshift(e.file),e.command=t,Fae(e)):e.file}function B5e(e){if(!L5e)return e;let t=j5e(e),r=!$5e.test(t);if(e.options.forceShell||r){let n=M5e.test(t);e.command=F5e.normalize(e.command),e.command=Rae.command(e.command),e.args=e.args.map(i=>Rae.argument(i,n));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function q5e(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:B5e(n)}Lae.exports=q5e});var Bae=L((q8t,jae)=>{"use strict";var Qj=process.platform==="win32";function Xj(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function U5e(e,t){if(!Qj)return;let r=e.emit;e.emit=function(n,o){if(n==="exit"){let i=Mae(o,t);if(i)return r.call(e,"error",i)}return r.apply(e,arguments)}}function Mae(e,t){return Qj&&e===1&&!t.file?Xj(t.original,"spawn"):null}function z5e(e,t){return Qj&&e===1&&!t.file?Xj(t.original,"spawnSync"):null}jae.exports={hookChildProcess:U5e,verifyENOENT:Mae,verifyENOENTSync:z5e,notFoundError:Xj}});var zae=L((U8t,av)=>{"use strict";var qae=_l("child_process"),Yj=$ae(),eB=Bae();function Uae(e,t,r){let n=Yj(e,t,r),o=qae.spawn(n.command,n.args,n.options);return eB.hookChildProcess(o,n),o}function V5e(e,t,r){let n=Yj(e,t,r),o=qae.spawnSync(n.command,n.args,n.options);return o.error=o.error||eB.verifyENOENTSync(o.status,n),o}av.exports=Uae;av.exports.spawn=Uae;av.exports.sync=V5e;av.exports._parse=Yj;av.exports._enoent=eB});var mge=L(T1=>{"use strict";Object.defineProperty(T1,"__esModule",{value:!0});T1.versionInfo=T1.version=void 0;var uct="16.13.1";T1.version=uct;var pct=Object.freeze({major:16,minor:13,patch:1,preReleaseTag:null});T1.versionInfo=pct});var Ls=L(iJ=>{"use strict";Object.defineProperty(iJ,"__esModule",{value:!0});iJ.devAssert=dct;function dct(e,t){if(!!!e)throw new Error(t)}});var CO=L(aJ=>{"use strict";Object.defineProperty(aJ,"__esModule",{value:!0});aJ.isPromise=_ct;function _ct(e){return typeof e?.then=="function"}});var hd=L(sJ=>{"use strict";Object.defineProperty(sJ,"__esModule",{value:!0});sJ.isObjectLike=fct;function fct(e){return typeof e=="object"&&e!==null}});var us=L(cJ=>{"use strict";Object.defineProperty(cJ,"__esModule",{value:!0});cJ.invariant=mct;function mct(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}});var PO=L(lJ=>{"use strict";Object.defineProperty(lJ,"__esModule",{value:!0});lJ.getLocation=gct;var hct=us(),yct=/\r\n|[\n\r]/g;function gct(e,t){let r=0,n=1;for(let o of e.body.matchAll(yct)){if(typeof o.index=="number"||(0,hct.invariant)(!1),o.index>=t)break;r=o.index+o[0].length,n+=1}return{line:n,column:t+1-r}}});var uJ=L(OO=>{"use strict";Object.defineProperty(OO,"__esModule",{value:!0});OO.printLocation=vct;OO.printSourceLocation=yge;var Sct=PO();function vct(e){return yge(e.source,(0,Sct.getLocation)(e.source,e.start))}function yge(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,o=t.line-1,i=e.locationOffset.line-1,a=t.line+i,s=t.line===1?r:0,c=t.column+s,p=`${e.name}:${a}:${c} -`,d=n.split(/\r\n|[\n\r]/g),f=d[o];if(f.length>120){let m=Math.floor(c/80),y=c%80,g=[];for(let S=0;S["|",S]),["|","^".padStart(y)],["|",g[m+1]]])}return p+hge([[`${a-1} |`,d[o-1]],[`${a} |`,f],["|","^".padStart(c)],[`${a+1} |`,d[o+1]]])}function hge(e){let t=e.filter(([n,o])=>o!==void 0),r=Math.max(...t.map(([n])=>n.length));return t.map(([n,o])=>n.padStart(r)+(o?" "+o:"")).join(` -`)}});var ar=L(D1=>{"use strict";Object.defineProperty(D1,"__esModule",{value:!0});D1.GraphQLError=void 0;D1.formatError=Tct;D1.printError=Ect;var bct=hd(),gge=PO(),Sge=uJ();function xct(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var pJ=class e extends Error{constructor(t,...r){var n,o,i;let{nodes:a,source:s,positions:c,path:p,originalError:d,extensions:f}=xct(r);super(t),this.name="GraphQLError",this.path=p??void 0,this.originalError=d??void 0,this.nodes=vge(Array.isArray(a)?a:a?[a]:void 0);let m=vge((n=this.nodes)===null||n===void 0?void 0:n.map(g=>g.loc).filter(g=>g!=null));this.source=s??(m==null||(o=m[0])===null||o===void 0?void 0:o.source),this.positions=c??m?.map(g=>g.start),this.locations=c&&s?c.map(g=>(0,gge.getLocation)(s,g)):m?.map(g=>(0,gge.getLocation)(g.source,g.start));let y=(0,bct.isObjectLike)(d?.extensions)?d?.extensions:void 0;this.extensions=(i=f??y)!==null&&i!==void 0?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),d!=null&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let r of this.nodes)r.loc&&(t+=` + deps: ${r}}`};var P6e={keyword:"dependencies",type:"object",schemaType:"object",error:vp.error,code(e){let[t,r]=O6e(e);Oee(e,t),Nee(e,r)}};function O6e({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let o=Array.isArray(e[n])?t:r;o[n]=e[n]}return[t,r]}function Oee(e,t=e.schema){let{gen:r,data:n,it:o}=e;if(Object.keys(t).length===0)return;let i=r.let("missing");for(let a in t){let s=t[a];if(s.length===0)continue;let c=(0,Gx.propertyInData)(r,n,a,o.opts.ownProperties);e.setParams({property:a,depsCount:s.length,deps:s.join(", ")}),o.allErrors?r.if(c,()=>{for(let p of s)(0,Gx.checkReportMissingProp)(e,p)}):(r.if((0,g5._)`${c} && (${(0,Gx.checkMissingProp)(e,s,i)})`),(0,Gx.reportMissingProp)(e,i),r.else())}}vp.validatePropertyDeps=Oee;function Nee(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,a=r.name("valid");for(let s in t)(0,C6e.alwaysValidSchema)(i,t[s])||(r.if((0,Gx.propertyInData)(r,n,s,i.opts.ownProperties),()=>{let c=e.subschema({keyword:o,schemaProp:s},a);e.mergeValidEvaluated(c,a)},()=>r.var(a,!0)),e.ok(a))}vp.validateSchemaDeps=Nee;vp.default=P6e});var Ree=L(S5=>{"use strict";Object.defineProperty(S5,"__esModule",{value:!0});var Fee=kr(),N6e=un(),F6e={message:"property name must be valid",params:({params:e})=>(0,Fee._)`{propertyName: ${e.propertyName}}`},R6e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:F6e,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,N6e.alwaysValidSchema)(o,r))return;let i=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},i),t.if((0,Fee.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};S5.default=R6e});var b5=L(v5=>{"use strict";Object.defineProperty(v5,"__esModule",{value:!0});var LC=yl(),hu=kr(),L6e=hl(),$C=un(),$6e={message:"must NOT have additional properties",params:({params:e})=>(0,hu._)`{additionalProperty: ${e.additionalProperty}}`},M6e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:$6e,code(e){let{gen:t,schema:r,parentSchema:n,data:o,errsCount:i,it:a}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:s,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&(0,$C.alwaysValidSchema)(a,r))return;let p=(0,LC.allSchemaProperties)(n.properties),d=(0,LC.allSchemaProperties)(n.patternProperties);f(),e.ok((0,hu._)`${i} === ${L6e.default.errors}`);function f(){t.forIn("key",o,b=>{!p.length&&!d.length?g(b):t.if(m(b),()=>g(b))})}function m(b){let E;if(p.length>8){let I=(0,$C.schemaRefOrVal)(a,n.properties,"properties");E=(0,LC.isOwnProperty)(t,I,b)}else p.length?E=(0,hu.or)(...p.map(I=>(0,hu._)`${b} === ${I}`)):E=hu.nil;return d.length&&(E=(0,hu.or)(E,...d.map(I=>(0,hu._)`${(0,LC.usePattern)(e,I)}.test(${b})`))),(0,hu.not)(E)}function y(b){t.code((0,hu._)`delete ${o}[${b}]`)}function g(b){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){y(b);return}if(r===!1){e.setParams({additionalProperty:b}),e.error(),s||t.break();return}if(typeof r=="object"&&!(0,$C.alwaysValidSchema)(a,r)){let E=t.name("valid");c.removeAdditional==="failing"?(S(b,E,!1),t.if((0,hu.not)(E),()=>{e.reset(),y(b)})):(S(b,E),s||t.if((0,hu.not)(E),()=>t.break()))}}function S(b,E,I){let T={keyword:"additionalProperties",dataProp:b,dataPropType:$C.Type.Str};I===!1&&Object.assign(T,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(T,E)}}};v5.default=M6e});var Mee=L(E5=>{"use strict";Object.defineProperty(E5,"__esModule",{value:!0});var j6e=p0(),Lee=yl(),x5=un(),$ee=b5(),B6e={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e;i.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&$ee.default.code(new j6e.KeywordCxt(i,$ee.default,"additionalProperties"));let a=(0,Lee.allSchemaProperties)(r);for(let f of a)i.definedProperties.add(f);i.opts.unevaluated&&a.length&&i.props!==!0&&(i.props=x5.mergeEvaluated.props(t,(0,x5.toHash)(a),i.props));let s=a.filter(f=>!(0,x5.alwaysValidSchema)(i,r[f]));if(s.length===0)return;let c=t.name("valid");for(let f of s)p(f)?d(f):(t.if((0,Lee.propertyInData)(t,o,f,i.opts.ownProperties)),d(f),i.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(c);function p(f){return i.opts.useDefaults&&!i.compositeRule&&r[f].default!==void 0}function d(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}}};E5.default=B6e});var Uee=L(T5=>{"use strict";Object.defineProperty(T5,"__esModule",{value:!0});var jee=yl(),MC=kr(),Bee=un(),qee=un(),q6e={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:o,it:i}=e,{opts:a}=i,s=(0,jee.allSchemaProperties)(r),c=s.filter(S=>(0,Bee.alwaysValidSchema)(i,r[S]));if(s.length===0||c.length===s.length&&(!i.opts.unevaluated||i.props===!0))return;let p=a.strictSchema&&!a.allowMatchingProperties&&o.properties,d=t.name("valid");i.props!==!0&&!(i.props instanceof MC.Name)&&(i.props=(0,qee.evaluatedPropsToName)(t,i.props));let{props:f}=i;m();function m(){for(let S of s)p&&y(S),i.allErrors?g(S):(t.var(d,!0),g(S),t.if(d))}function y(S){for(let b in p)new RegExp(S).test(b)&&(0,Bee.checkStrictMode)(i,`property ${b} matches pattern ${S} (use allowMatchingProperties)`)}function g(S){t.forIn("key",n,b=>{t.if((0,MC._)`${(0,jee.usePattern)(e,S)}.test(${b})`,()=>{let E=c.includes(S);E||e.subschema({keyword:"patternProperties",schemaProp:S,dataProp:b,dataPropType:qee.Type.Str},d),i.opts.unevaluated&&f!==!0?t.assign((0,MC._)`${f}[${b}]`,!0):!E&&!i.allErrors&&t.if((0,MC.not)(d),()=>t.break())})})}}};T5.default=q6e});var zee=L(D5=>{"use strict";Object.defineProperty(D5,"__esModule",{value:!0});var U6e=un(),z6e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,U6e.alwaysValidSchema)(n,r)){e.fail();return}let o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};D5.default=z6e});var Jee=L(A5=>{"use strict";Object.defineProperty(A5,"__esModule",{value:!0});var J6e=yl(),V6e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:J6e.validateUnion,error:{message:"must match a schema in anyOf"}};A5.default=V6e});var Vee=L(I5=>{"use strict";Object.defineProperty(I5,"__esModule",{value:!0});var jC=kr(),K6e=un(),G6e={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,jC._)`{passingSchemas: ${e.passing}}`},H6e={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:G6e,code(e){let{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let i=r,a=t.let("valid",!1),s=t.let("passing",null),c=t.name("_valid");e.setParams({passing:s}),t.block(p),e.result(a,()=>e.reset(),()=>e.error(!0));function p(){i.forEach((d,f)=>{let m;(0,K6e.alwaysValidSchema)(o,d)?t.var(c,!0):m=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&t.if((0,jC._)`${c} && ${a}`).assign(a,!1).assign(s,(0,jC._)`[${s}, ${f}]`).else(),t.if(c,()=>{t.assign(a,!0),t.assign(s,f),m&&e.mergeEvaluated(m,jC.Name)})})}}};I5.default=H6e});var Kee=L(w5=>{"use strict";Object.defineProperty(w5,"__esModule",{value:!0});var Z6e=un(),W6e={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let o=t.name("valid");r.forEach((i,a)=>{if((0,Z6e.alwaysValidSchema)(n,i))return;let s=e.subschema({keyword:"allOf",schemaProp:a},o);e.ok(o),e.mergeEvaluated(s)})}};w5.default=W6e});var Zee=L(k5=>{"use strict";Object.defineProperty(k5,"__esModule",{value:!0});var BC=kr(),Hee=un(),Q6e={message:({params:e})=>(0,BC.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,BC._)`{failingKeyword: ${e.ifClause}}`},X6e={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Q6e,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Hee.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=Gee(n,"then"),i=Gee(n,"else");if(!o&&!i)return;let a=t.let("valid",!0),s=t.name("_valid");if(c(),e.reset(),o&&i){let d=t.let("ifClause");e.setParams({ifClause:d}),t.if(s,p("then",d),p("else",d))}else o?t.if(s,p("then")):t.if((0,BC.not)(s),p("else"));e.pass(a,()=>e.error(!0));function c(){let d=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(d)}function p(d,f){return()=>{let m=e.subschema({keyword:d},s);t.assign(a,s),e.mergeValidEvaluated(m,a),f?t.assign(f,(0,BC._)`${d}`):e.setParams({ifClause:d})}}}};function Gee(e,t){let r=e.schema[t];return r!==void 0&&!(0,Hee.alwaysValidSchema)(e,r)}k5.default=X6e});var Wee=L(C5=>{"use strict";Object.defineProperty(C5,"__esModule",{value:!0});var Y6e=un(),e3e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,Y6e.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};C5.default=e3e});var O5=L(P5=>{"use strict";Object.defineProperty(P5,"__esModule",{value:!0});var t3e=_5(),r3e=wee(),n3e=f5(),o3e=Cee(),i3e=Pee(),a3e=RC(),s3e=Ree(),c3e=b5(),l3e=Mee(),u3e=Uee(),p3e=zee(),d3e=Jee(),_3e=Vee(),f3e=Kee(),m3e=Zee(),h3e=Wee();function y3e(e=!1){let t=[p3e.default,d3e.default,_3e.default,f3e.default,m3e.default,h3e.default,s3e.default,c3e.default,a3e.default,l3e.default,u3e.default];return e?t.push(r3e.default,o3e.default):t.push(t3e.default,n3e.default),t.push(i3e.default),t}P5.default=y3e});var F5=L(Hx=>{"use strict";Object.defineProperty(Hx,"__esModule",{value:!0});Hx.dynamicAnchor=void 0;var N5=kr(),g3e=hl(),Qee=Fx(),S3e=kC(),v3e={keyword:"$dynamicAnchor",schemaType:"string",code:e=>Xee(e,e.schema)};function Xee(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let o=(0,N5._)`${g3e.default.dynamicAnchors}${(0,N5.getProperty)(t)}`,i=n.errSchemaPath==="#"?n.validateName:b3e(e);r.if((0,N5._)`!${o}`,()=>r.assign(o,i))}Hx.dynamicAnchor=Xee;function b3e(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:o,baseId:i,localRefs:a,meta:s}=t.root,{schemaId:c}=n.opts,p=new Qee.SchemaEnv({schema:r,schemaId:c,root:o,baseId:i,localRefs:a,meta:s});return Qee.compileSchema.call(n,p),(0,S3e.getValidate)(e,p)}Hx.default=v3e});var R5=L(Zx=>{"use strict";Object.defineProperty(Zx,"__esModule",{value:!0});Zx.dynamicRef=void 0;var Yee=kr(),x3e=hl(),ete=kC(),E3e={keyword:"$dynamicRef",schemaType:"string",code:e=>tte(e,e.schema)};function tte(e,t){let{gen:r,keyword:n,it:o}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let i=t.slice(1);if(o.allErrors)a();else{let c=r.let("valid",!1);a(c),e.ok(c)}function a(c){if(o.schemaEnv.root.dynamicAnchors[i]){let p=r.let("_v",(0,Yee._)`${x3e.default.dynamicAnchors}${(0,Yee.getProperty)(i)}`);r.if(p,s(p,c),s(o.validateName,c))}else s(o.validateName,c)()}function s(c,p){return p?()=>r.block(()=>{(0,ete.callRef)(e,c),r.let(p,!0)}):()=>(0,ete.callRef)(e,c)}}Zx.dynamicRef=tte;Zx.default=E3e});var rte=L(L5=>{"use strict";Object.defineProperty(L5,"__esModule",{value:!0});var T3e=F5(),D3e=un(),A3e={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,T3e.dynamicAnchor)(e,""):(0,D3e.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};L5.default=A3e});var nte=L($5=>{"use strict";Object.defineProperty($5,"__esModule",{value:!0});var I3e=R5(),w3e={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,I3e.dynamicRef)(e,e.schema)};$5.default=w3e});var ote=L(M5=>{"use strict";Object.defineProperty(M5,"__esModule",{value:!0});var k3e=F5(),C3e=R5(),P3e=rte(),O3e=nte(),N3e=[k3e.default,C3e.default,P3e.default,O3e.default];M5.default=N3e});var ate=L(j5=>{"use strict";Object.defineProperty(j5,"__esModule",{value:!0});var ite=RC(),F3e={keyword:"dependentRequired",type:"object",schemaType:"object",error:ite.error,code:e=>(0,ite.validatePropertyDeps)(e)};j5.default=F3e});var ste=L(B5=>{"use strict";Object.defineProperty(B5,"__esModule",{value:!0});var R3e=RC(),L3e={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,R3e.validateSchemaDeps)(e)};B5.default=L3e});var cte=L(q5=>{"use strict";Object.defineProperty(q5,"__esModule",{value:!0});var $3e=un(),M3e={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,$3e.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};q5.default=M3e});var lte=L(U5=>{"use strict";Object.defineProperty(U5,"__esModule",{value:!0});var j3e=ate(),B3e=ste(),q3e=cte(),U3e=[j3e.default,B3e.default,q3e.default];U5.default=U3e});var pte=L(z5=>{"use strict";Object.defineProperty(z5,"__esModule",{value:!0});var Qf=kr(),ute=un(),z3e=hl(),J3e={message:"must NOT have unevaluated properties",params:({params:e})=>(0,Qf._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},V3e={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:J3e,code(e){let{gen:t,schema:r,data:n,errsCount:o,it:i}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:a,props:s}=i;s instanceof Qf.Name?t.if((0,Qf._)`${s} !== true`,()=>t.forIn("key",n,f=>t.if(p(s,f),()=>c(f)))):s!==!0&&t.forIn("key",n,f=>s===void 0?c(f):t.if(d(s,f),()=>c(f))),i.props=!0,e.ok((0,Qf._)`${o} === ${z3e.default.errors}`);function c(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,ute.alwaysValidSchema)(i,r)){let m=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:ute.Type.Str},m),a||t.if((0,Qf.not)(m),()=>t.break())}}function p(f,m){return(0,Qf._)`!${f} || !${f}[${m}]`}function d(f,m){let y=[];for(let g in f)f[g]===!0&&y.push((0,Qf._)`${m} !== ${g}`);return(0,Qf.and)(...y)}}};z5.default=V3e});var _te=L(J5=>{"use strict";Object.defineProperty(J5,"__esModule",{value:!0});var Ly=kr(),dte=un(),K3e={message:({params:{len:e}})=>(0,Ly.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Ly._)`{limit: ${e}}`},G3e={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:K3e,code(e){let{gen:t,schema:r,data:n,it:o}=e,i=o.items||0;if(i===!0)return;let a=t.const("len",(0,Ly._)`${n}.length`);if(r===!1)e.setParams({len:i}),e.fail((0,Ly._)`${a} > ${i}`);else if(typeof r=="object"&&!(0,dte.alwaysValidSchema)(o,r)){let c=t.var("valid",(0,Ly._)`${a} <= ${i}`);t.if((0,Ly.not)(c),()=>s(c,i)),e.ok(c)}o.items=!0;function s(c,p){t.forRange("i",p,a,d=>{e.subschema({keyword:"unevaluatedItems",dataProp:d,dataPropType:dte.Type.Num},c),o.allErrors||t.if((0,Ly.not)(c),()=>t.break())})}}};J5.default=G3e});var fte=L(V5=>{"use strict";Object.defineProperty(V5,"__esModule",{value:!0});var H3e=pte(),Z3e=_te(),W3e=[H3e.default,Z3e.default];V5.default=W3e});var mte=L(K5=>{"use strict";Object.defineProperty(K5,"__esModule",{value:!0});var wi=kr(),Q3e={message:({schemaCode:e})=>(0,wi.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,wi._)`{format: ${e}}`},X3e={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Q3e,code(e,t){let{gen:r,data:n,$data:o,schema:i,schemaCode:a,it:s}=e,{opts:c,errSchemaPath:p,schemaEnv:d,self:f}=s;if(!c.validateFormats)return;o?m():y();function m(){let g=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),S=r.const("fDef",(0,wi._)`${g}[${a}]`),b=r.let("fType"),E=r.let("format");r.if((0,wi._)`typeof ${S} == "object" && !(${S} instanceof RegExp)`,()=>r.assign(b,(0,wi._)`${S}.type || "string"`).assign(E,(0,wi._)`${S}.validate`),()=>r.assign(b,(0,wi._)`"string"`).assign(E,S)),e.fail$data((0,wi.or)(I(),T()));function I(){return c.strictSchema===!1?wi.nil:(0,wi._)`${a} && !${E}`}function T(){let k=d.$async?(0,wi._)`(${S}.async ? await ${E}(${n}) : ${E}(${n}))`:(0,wi._)`${E}(${n})`,F=(0,wi._)`(typeof ${E} == "function" ? ${k} : ${E}.test(${n}))`;return(0,wi._)`${E} && ${E} !== true && ${b} === ${t} && !${F}`}}function y(){let g=f.formats[i];if(!g){I();return}if(g===!0)return;let[S,b,E]=T(g);S===t&&e.pass(k());function I(){if(c.strictSchema===!1){f.logger.warn(F());return}throw new Error(F());function F(){return`unknown format "${i}" ignored in schema at path "${p}"`}}function T(F){let O=F instanceof RegExp?(0,wi.regexpCode)(F):c.code.formats?(0,wi._)`${c.code.formats}${(0,wi.getProperty)(i)}`:void 0,$=r.scopeValue("formats",{key:i,ref:F,code:O});return typeof F=="object"&&!(F instanceof RegExp)?[F.type||"string",F.validate,(0,wi._)`${$}.validate`]:["string",F,$]}function k(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!d.$async)throw new Error("async format in sync schema");return(0,wi._)`await ${E}(${n})`}return typeof b=="function"?(0,wi._)`${E}(${n})`:(0,wi._)`${E}.test(${n})`}}}};K5.default=X3e});var H5=L(G5=>{"use strict";Object.defineProperty(G5,"__esModule",{value:!0});var Y3e=mte(),eOe=[Y3e.default];G5.default=eOe});var Z5=L(y0=>{"use strict";Object.defineProperty(y0,"__esModule",{value:!0});y0.contentVocabulary=y0.metadataVocabulary=void 0;y0.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];y0.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var yte=L(W5=>{"use strict";Object.defineProperty(W5,"__esModule",{value:!0});var tOe=Z9(),rOe=p5(),nOe=O5(),oOe=ote(),iOe=lte(),aOe=fte(),sOe=H5(),hte=Z5(),cOe=[oOe.default,tOe.default,rOe.default,(0,nOe.default)(!0),sOe.default,hte.metadataVocabulary,hte.contentVocabulary,iOe.default,aOe.default];W5.default=cOe});var Ste=L(qC=>{"use strict";Object.defineProperty(qC,"__esModule",{value:!0});qC.DiscrError=void 0;var gte;(function(e){e.Tag="tag",e.Mapping="mapping"})(gte||(qC.DiscrError=gte={}))});var Y5=L(X5=>{"use strict";Object.defineProperty(X5,"__esModule",{value:!0});var g0=kr(),Q5=Ste(),vte=Fx(),lOe=d0(),uOe=un(),pOe={message:({params:{discrError:e,tagName:t}})=>e===Q5.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,g0._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},dOe={keyword:"discriminator",type:"object",schemaType:"object",error:pOe,code(e){let{gen:t,data:r,schema:n,parentSchema:o,it:i}=e,{oneOf:a}=o;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");let s=n.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),p=t.const("tag",(0,g0._)`${r}${(0,g0.getProperty)(s)}`);t.if((0,g0._)`typeof ${p} == "string"`,()=>d(),()=>e.error(!1,{discrError:Q5.DiscrError.Tag,tag:p,tagName:s})),e.ok(c);function d(){let y=m();t.if(!1);for(let g in y)t.elseIf((0,g0._)`${p} === ${g}`),t.assign(c,f(y[g]));t.else(),e.error(!1,{discrError:Q5.DiscrError.Mapping,tag:p,tagName:s}),t.endIf()}function f(y){let g=t.name("valid"),S=e.subschema({keyword:"oneOf",schemaProp:y},g);return e.mergeEvaluated(S,g0.Name),g}function m(){var y;let g={},S=E(o),b=!0;for(let k=0;k{_Oe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var xte=L((rkt,fOe)=>{fOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var Ete=L((nkt,mOe)=>{mOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var Tte=L((okt,hOe)=>{hOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var Dte=L((ikt,yOe)=>{yOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var Ate=L((akt,gOe)=>{gOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var Ite=L((skt,SOe)=>{SOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var wte=L((ckt,vOe)=>{vOe.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var kte=L(eL=>{"use strict";Object.defineProperty(eL,"__esModule",{value:!0});var bOe=bte(),xOe=xte(),EOe=Ete(),TOe=Tte(),DOe=Dte(),AOe=Ate(),IOe=Ite(),wOe=wte(),kOe=["/properties"];function COe(e){return[bOe,xOe,EOe,TOe,DOe,t(this,AOe),IOe,t(this,wOe)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,kOe):n}}eL.default=COe});var Cte=L((Vo,rL)=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.MissingRefError=Vo.ValidationError=Vo.CodeGen=Vo.Name=Vo.nil=Vo.stringify=Vo.str=Vo._=Vo.KeywordCxt=Vo.Ajv2020=void 0;var POe=K9(),OOe=yte(),NOe=Y5(),FOe=kte(),tL="https://json-schema.org/draft/2020-12/schema",S0=class extends POe.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),OOe.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(NOe.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(FOe.default.call(this,t),this.refs["http://json-schema.org/schema"]=tL)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(tL)?tL:void 0)}};Vo.Ajv2020=S0;rL.exports=Vo=S0;rL.exports.Ajv2020=S0;Object.defineProperty(Vo,"__esModule",{value:!0});Vo.default=S0;var ROe=p0();Object.defineProperty(Vo,"KeywordCxt",{enumerable:!0,get:function(){return ROe.KeywordCxt}});var v0=kr();Object.defineProperty(Vo,"_",{enumerable:!0,get:function(){return v0._}});Object.defineProperty(Vo,"str",{enumerable:!0,get:function(){return v0.str}});Object.defineProperty(Vo,"stringify",{enumerable:!0,get:function(){return v0.stringify}});Object.defineProperty(Vo,"nil",{enumerable:!0,get:function(){return v0.nil}});Object.defineProperty(Vo,"Name",{enumerable:!0,get:function(){return v0.Name}});Object.defineProperty(Vo,"CodeGen",{enumerable:!0,get:function(){return v0.CodeGen}});var LOe=Nx();Object.defineProperty(Vo,"ValidationError",{enumerable:!0,get:function(){return LOe.default}});var $Oe=d0();Object.defineProperty(Vo,"MissingRefError",{enumerable:!0,get:function(){return $Oe.default}})});var bie=L(Sj=>{"use strict";Object.defineProperty(Sj,"__esModule",{value:!0});var f9e=Z9(),m9e=p5(),h9e=O5(),y9e=H5(),vie=Z5(),g9e=[f9e.default,m9e.default,(0,h9e.default)(),y9e.default,vie.metadataVocabulary,vie.contentVocabulary];Sj.default=g9e});var xie=L((QRt,S9e)=>{S9e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var bj=L((Go,vj)=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.MissingRefError=Go.ValidationError=Go.CodeGen=Go.Name=Go.nil=Go.stringify=Go.str=Go._=Go.KeywordCxt=Go.Ajv=void 0;var v9e=K9(),b9e=bie(),x9e=Y5(),Eie=xie(),E9e=["/properties"],p6="http://json-schema.org/draft-07/schema",Q0=class extends v9e.default{_addVocabularies(){super._addVocabularies(),b9e.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(x9e.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Eie,E9e):Eie;this.addMetaSchema(t,p6,!1),this.refs["http://json-schema.org/schema"]=p6}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(p6)?p6:void 0)}};Go.Ajv=Q0;vj.exports=Go=Q0;vj.exports.Ajv=Q0;Object.defineProperty(Go,"__esModule",{value:!0});Go.default=Q0;var T9e=p0();Object.defineProperty(Go,"KeywordCxt",{enumerable:!0,get:function(){return T9e.KeywordCxt}});var X0=kr();Object.defineProperty(Go,"_",{enumerable:!0,get:function(){return X0._}});Object.defineProperty(Go,"str",{enumerable:!0,get:function(){return X0.str}});Object.defineProperty(Go,"stringify",{enumerable:!0,get:function(){return X0.stringify}});Object.defineProperty(Go,"nil",{enumerable:!0,get:function(){return X0.nil}});Object.defineProperty(Go,"Name",{enumerable:!0,get:function(){return X0.Name}});Object.defineProperty(Go,"CodeGen",{enumerable:!0,get:function(){return X0.CodeGen}});var D9e=Nx();Object.defineProperty(Go,"ValidationError",{enumerable:!0,get:function(){return D9e.default}});var A9e=d0();Object.defineProperty(Go,"MissingRefError",{enumerable:!0,get:function(){return A9e.default}})});var Pie=L(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.formatNames=Ap.fastFormats=Ap.fullFormats=void 0;function Dp(e,t){return{validate:e,compare:t}}Ap.fullFormats={date:Dp(Iie,Dj),time:Dp(Ej(!0),Aj),"date-time":Dp(Tie(!0),kie),"iso-time":Dp(Ej(),wie),"iso-date-time":Dp(Tie(),Cie),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:O9e,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:j9e,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:N9e,int32:{type:"number",validate:L9e},int64:{type:"number",validate:$9e},float:{type:"number",validate:Aie},double:{type:"number",validate:Aie},password:!0,binary:!0};Ap.fastFormats={...Ap.fullFormats,date:Dp(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,Dj),time:Dp(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Aj),"date-time":Dp(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,kie),"iso-time":Dp(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,wie),"iso-date-time":Dp(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Cie),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Ap.formatNames=Object.keys(Ap.fullFormats);function I9e(e){return e%4===0&&(e%100!==0||e%400===0)}var w9e=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,k9e=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Iie(e){let t=w9e.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],o=+t[3];return n>=1&&n<=12&&o>=1&&o<=(n===2&&I9e(r)?29:k9e[n])}function Dj(e,t){if(e&&t)return e>t?1:e23||d>59||e&&!s)return!1;if(o<=23&&i<=59&&a<60)return!0;let f=i-d*c,m=o-p*c-(f<0?1:0);return(m===23||m===-1)&&(f===59||f===-1)&&a<61}}function Aj(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),n=new Date("2020-01-01T"+t).valueOf();if(r&&n)return r-n}function wie(e,t){if(!(e&&t))return;let r=xj.exec(e),n=xj.exec(t);if(r&&n)return e=r[1]+r[2]+r[3],t=n[1]+n[2]+n[3],e>t?1:e=F9e}function $9e(e){return Number.isInteger(e)}function Aie(){return!0}var M9e=/[^\\]\\Z/;function j9e(e){if(M9e.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var Oie=L(Y0=>{"use strict";Object.defineProperty(Y0,"__esModule",{value:!0});Y0.formatLimitDefinition=void 0;var B9e=bj(),Eu=kr(),lm=Eu.operators,d6={formatMaximum:{okStr:"<=",ok:lm.LTE,fail:lm.GT},formatMinimum:{okStr:">=",ok:lm.GTE,fail:lm.LT},formatExclusiveMaximum:{okStr:"<",ok:lm.LT,fail:lm.GTE},formatExclusiveMinimum:{okStr:">",ok:lm.GT,fail:lm.LTE}},q9e={message:({keyword:e,schemaCode:t})=>(0,Eu.str)`should be ${d6[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Eu._)`{comparison: ${d6[e].okStr}, limit: ${t}}`};Y0.formatLimitDefinition={keyword:Object.keys(d6),type:"string",schemaType:"string",$data:!0,error:q9e,code(e){let{gen:t,data:r,schemaCode:n,keyword:o,it:i}=e,{opts:a,self:s}=i;if(!a.validateFormats)return;let c=new B9e.KeywordCxt(i,s.RULES.all.format.definition,"format");c.$data?p():d();function p(){let m=t.scopeValue("formats",{ref:s.formats,code:a.code.formats}),y=t.const("fmt",(0,Eu._)`${m}[${c.schemaCode}]`);e.fail$data((0,Eu.or)((0,Eu._)`typeof ${y} != "object"`,(0,Eu._)`${y} instanceof RegExp`,(0,Eu._)`typeof ${y}.compare != "function"`,f(y)))}function d(){let m=c.schema,y=s.formats[m];if(!y||y===!0)return;if(typeof y!="object"||y instanceof RegExp||typeof y.compare!="function")throw new Error(`"${o}": format "${m}" does not define "compare" function`);let g=t.scopeValue("formats",{key:m,ref:y,code:a.code.formats?(0,Eu._)`${a.code.formats}${(0,Eu.getProperty)(m)}`:void 0});e.fail$data(f(g))}function f(m){return(0,Eu._)`${m}.compare(${r}, ${n}) ${d6[o].fail} 0`}},dependencies:["format"]};var U9e=e=>(e.addKeyword(Y0.formatLimitDefinition),e);Y0.default=U9e});var Lie=L((dT,Rie)=>{"use strict";Object.defineProperty(dT,"__esModule",{value:!0});var ev=Pie(),z9e=Oie(),Ij=kr(),Nie=new Ij.Name("fullFormats"),J9e=new Ij.Name("fastFormats"),wj=(e,t={keywords:!0})=>{if(Array.isArray(t))return Fie(e,t,ev.fullFormats,Nie),e;let[r,n]=t.mode==="fast"?[ev.fastFormats,J9e]:[ev.fullFormats,Nie],o=t.formats||ev.formatNames;return Fie(e,o,r,n),t.keywords&&(0,z9e.default)(e),e};wj.get=(e,t="full")=>{let n=(t==="fast"?ev.fastFormats:ev.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function Fie(e,t,r,n){var o,i;(o=(i=e.opts.code).formats)!==null&&o!==void 0||(i.formats=(0,Ij._)`require("ajv-formats/dist/formats").${n}`);for(let a of t)e.addFormat(a,r[a])}Rie.exports=dT=wj;Object.defineProperty(dT,"__esModule",{value:!0});dT.default=wj});var cae=L((N8t,sae)=>{sae.exports=aae;aae.sync=x5e;var oae=fl("fs");function b5e(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n{dae.exports=uae;uae.sync=E5e;var lae=fl("fs");function uae(e,t,r){lae.stat(e,function(n,o){r(n,n?!1:pae(o,t))})}function E5e(e,t){return pae(lae.statSync(e),t)}function pae(e,t){return e.isFile()&&T5e(e,t)}function T5e(e,t){var r=e.mode,n=e.uid,o=e.gid,i=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),a=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),s=parseInt("100",8),c=parseInt("010",8),p=parseInt("001",8),d=s|c,f=r&p||r&c&&o===a||r&s&&n===i||r&d&&i===0;return f}});var mae=L((L8t,fae)=>{var R8t=fl("fs"),T6;process.platform==="win32"||global.TESTING_WINDOWS?T6=cae():T6=_ae();fae.exports=Hj;Hj.sync=D5e;function Hj(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,o){Hj(e,t||{},function(i,a){i?o(i):n(a)})})}T6(e,t||{},function(n,o){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,o=!1),r(n,o)})}function D5e(e,t){try{return T6.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var xae=L(($8t,bae)=>{var cv=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",hae=fl("path"),A5e=cv?";":":",yae=mae(),gae=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Sae=(e,t)=>{let r=t.colon||A5e,n=e.match(/\//)||cv&&e.match(/\\/)?[""]:[...cv?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=cv?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=cv?o.split(r):[""];return cv&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o}},vae=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:o,pathExtExe:i}=Sae(e,t),a=[],s=p=>new Promise((d,f)=>{if(p===n.length)return t.all&&a.length?d(a):f(gae(e));let m=n[p],y=/^".*"$/.test(m)?m.slice(1,-1):m,g=hae.join(y,e),S=!y&&/^\.[\\\/]/.test(e)?e.slice(0,2)+g:g;d(c(S,p,0))}),c=(p,d,f)=>new Promise((m,y)=>{if(f===o.length)return m(s(d+1));let g=o[f];yae(p+g,{pathExt:i},(S,b)=>{if(!S&&b)if(t.all)a.push(p+g);else return m(p+g);return m(c(p,d,f+1))})});return r?s(0).then(p=>r(null,p),r):s(0)},I5e=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:o}=Sae(e,t),i=[];for(let a=0;a{"use strict";var Eae=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};Zj.exports=Eae;Zj.exports.default=Eae});var wae=L((j8t,Iae)=>{"use strict";var Dae=fl("path"),w5e=xae(),k5e=Tae();function Aae(e,t){let r=e.options.env||process.env,n=process.cwd(),o=e.options.cwd!=null,i=o&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let a;try{a=w5e.sync(e.command,{path:r[k5e({env:r})],pathExt:t?Dae.delimiter:void 0})}catch{}finally{i&&process.chdir(n)}return a&&(a=Dae.resolve(o?e.options.cwd:"",a)),a}function C5e(e){return Aae(e)||Aae(e,!0)}Iae.exports=C5e});var kae=L((B8t,Qj)=>{"use strict";var Wj=/([()\][%!^"`<>&|;, *?])/g;function P5e(e){return e=e.replace(Wj,"^$1"),e}function O5e(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(Wj,"^$1"),t&&(e=e.replace(Wj,"^$1")),e}Qj.exports.command=P5e;Qj.exports.argument=O5e});var Pae=L((q8t,Cae)=>{"use strict";Cae.exports=/^#!(.*)/});var Nae=L((U8t,Oae)=>{"use strict";var N5e=Pae();Oae.exports=(e="")=>{let t=e.match(N5e);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return o==="env"?n:n?`${o} ${n}`:o}});var Rae=L((z8t,Fae)=>{"use strict";var Xj=fl("fs"),F5e=Nae();function R5e(e){let r=Buffer.alloc(150),n;try{n=Xj.openSync(e,"r"),Xj.readSync(n,r,0,150,0),Xj.closeSync(n)}catch{}return F5e(r.toString())}Fae.exports=R5e});var jae=L((J8t,Mae)=>{"use strict";var L5e=fl("path"),Lae=wae(),$ae=kae(),$5e=Rae(),M5e=process.platform==="win32",j5e=/\.(?:com|exe)$/i,B5e=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function q5e(e){e.file=Lae(e);let t=e.file&&$5e(e.file);return t?(e.args.unshift(e.file),e.command=t,Lae(e)):e.file}function U5e(e){if(!M5e)return e;let t=q5e(e),r=!j5e.test(t);if(e.options.forceShell||r){let n=B5e.test(t);e.command=L5e.normalize(e.command),e.command=$ae.command(e.command),e.args=e.args.map(i=>$ae.argument(i,n));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function z5e(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:U5e(n)}Mae.exports=z5e});var Uae=L((V8t,qae)=>{"use strict";var Yj=process.platform==="win32";function eB(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function J5e(e,t){if(!Yj)return;let r=e.emit;e.emit=function(n,o){if(n==="exit"){let i=Bae(o,t);if(i)return r.call(e,"error",i)}return r.apply(e,arguments)}}function Bae(e,t){return Yj&&e===1&&!t.file?eB(t.original,"spawn"):null}function V5e(e,t){return Yj&&e===1&&!t.file?eB(t.original,"spawnSync"):null}qae.exports={hookChildProcess:J5e,verifyENOENT:Bae,verifyENOENTSync:V5e,notFoundError:eB}});var Vae=L((K8t,lv)=>{"use strict";var zae=fl("child_process"),tB=jae(),rB=Uae();function Jae(e,t,r){let n=tB(e,t,r),o=zae.spawn(n.command,n.args,n.options);return rB.hookChildProcess(o,n),o}function K5e(e,t,r){let n=tB(e,t,r),o=zae.spawnSync(n.command,n.args,n.options);return o.error=o.error||rB.verifyENOENTSync(o.status,n),o}lv.exports=Jae;lv.exports.spawn=Jae;lv.exports.sync=K5e;lv.exports._parse=tB;lv.exports._enoent=rB});var yge=L(I1=>{"use strict";Object.defineProperty(I1,"__esModule",{value:!0});I1.versionInfo=I1.version=void 0;var dct="16.13.1";I1.version=dct;var _ct=Object.freeze({major:16,minor:13,patch:1,preReleaseTag:null});I1.versionInfo=_ct});var Ls=L(sV=>{"use strict";Object.defineProperty(sV,"__esModule",{value:!0});sV.devAssert=fct;function fct(e,t){if(!!!e)throw new Error(t)}});var OO=L(cV=>{"use strict";Object.defineProperty(cV,"__esModule",{value:!0});cV.isPromise=mct;function mct(e){return typeof e?.then=="function"}});var yd=L(lV=>{"use strict";Object.defineProperty(lV,"__esModule",{value:!0});lV.isObjectLike=hct;function hct(e){return typeof e=="object"&&e!==null}});var us=L(uV=>{"use strict";Object.defineProperty(uV,"__esModule",{value:!0});uV.invariant=yct;function yct(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}});var NO=L(pV=>{"use strict";Object.defineProperty(pV,"__esModule",{value:!0});pV.getLocation=vct;var gct=us(),Sct=/\r\n|[\n\r]/g;function vct(e,t){let r=0,n=1;for(let o of e.body.matchAll(Sct)){if(typeof o.index=="number"||(0,gct.invariant)(!1),o.index>=t)break;r=o.index+o[0].length,n+=1}return{line:n,column:t+1-r}}});var dV=L(FO=>{"use strict";Object.defineProperty(FO,"__esModule",{value:!0});FO.printLocation=xct;FO.printSourceLocation=Sge;var bct=NO();function xct(e){return Sge(e.source,(0,bct.getLocation)(e.source,e.start))}function Sge(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,o=t.line-1,i=e.locationOffset.line-1,a=t.line+i,s=t.line===1?r:0,c=t.column+s,p=`${e.name}:${a}:${c} +`,d=n.split(/\r\n|[\n\r]/g),f=d[o];if(f.length>120){let m=Math.floor(c/80),y=c%80,g=[];for(let S=0;S["|",S]),["|","^".padStart(y)],["|",g[m+1]]])}return p+gge([[`${a-1} |`,d[o-1]],[`${a} |`,f],["|","^".padStart(c)],[`${a+1} |`,d[o+1]]])}function gge(e){let t=e.filter(([n,o])=>o!==void 0),r=Math.max(...t.map(([n])=>n.length));return t.map(([n,o])=>n.padStart(r)+(o?" "+o:"")).join(` +`)}});var ar=L(w1=>{"use strict";Object.defineProperty(w1,"__esModule",{value:!0});w1.GraphQLError=void 0;w1.formatError=Act;w1.printError=Dct;var Ect=yd(),vge=NO(),bge=dV();function Tct(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var _V=class e extends Error{constructor(t,...r){var n,o,i;let{nodes:a,source:s,positions:c,path:p,originalError:d,extensions:f}=Tct(r);super(t),this.name="GraphQLError",this.path=p??void 0,this.originalError=d??void 0,this.nodes=xge(Array.isArray(a)?a:a?[a]:void 0);let m=xge((n=this.nodes)===null||n===void 0?void 0:n.map(g=>g.loc).filter(g=>g!=null));this.source=s??(m==null||(o=m[0])===null||o===void 0?void 0:o.source),this.positions=c??m?.map(g=>g.start),this.locations=c&&s?c.map(g=>(0,vge.getLocation)(s,g)):m?.map(g=>(0,vge.getLocation)(g.source,g.start));let y=(0,Ect.isObjectLike)(d?.extensions)?d?.extensions:void 0;this.extensions=(i=f??y)!==null&&i!==void 0?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),d!=null&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let r of this.nodes)r.loc&&(t+=` -`+(0,Sge.printLocation)(r.loc));else if(this.source&&this.locations)for(let r of this.locations)t+=` +`+(0,bge.printLocation)(r.loc));else if(this.source&&this.locations)for(let r of this.locations)t+=` -`+(0,Sge.printSourceLocation)(this.source,r);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};D1.GraphQLError=pJ;function vge(e){return e===void 0||e.length===0?void 0:e}function Ect(e){return e.toString()}function Tct(e){return e.toJSON()}});var s2=L(dJ=>{"use strict";Object.defineProperty(dJ,"__esModule",{value:!0});dJ.syntaxError=Act;var Dct=ar();function Act(e,t,r){return new Dct.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})}});var Bl=L(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.Token=jl.QueryDocumentKeys=jl.OperationTypeNode=jl.Location=void 0;jl.isNode=Ict;var _J=class{constructor(t,r,n){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};jl.Location=_J;var fJ=class{constructor(t,r,n,o,i,a){this.kind=t,this.start=r,this.end=n,this.line=o,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};jl.Token=fJ;var bge={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]};jl.QueryDocumentKeys=bge;var wct=new Set(Object.keys(bge));function Ict(e){let t=e?.kind;return typeof t=="string"&&wct.has(t)}var mJ;jl.OperationTypeNode=mJ;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(mJ||(jl.OperationTypeNode=mJ={}))});var A1=L(c2=>{"use strict";Object.defineProperty(c2,"__esModule",{value:!0});c2.DirectiveLocation=void 0;var hJ;c2.DirectiveLocation=hJ;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(hJ||(c2.DirectiveLocation=hJ={}))});var Sn=L(l2=>{"use strict";Object.defineProperty(l2,"__esModule",{value:!0});l2.Kind=void 0;var yJ;l2.Kind=yJ;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(yJ||(l2.Kind=yJ={}))});var u2=L(Vg=>{"use strict";Object.defineProperty(Vg,"__esModule",{value:!0});Vg.isDigit=xge;Vg.isLetter=gJ;Vg.isNameContinue=Pct;Vg.isNameStart=Cct;Vg.isWhiteSpace=kct;function kct(e){return e===9||e===32}function xge(e){return e>=48&&e<=57}function gJ(e){return e>=97&&e<=122||e>=65&&e<=90}function Cct(e){return gJ(e)||e===95}function Pct(e){return gJ(e)||xge(e)||e===95}});var d2=L(p2=>{"use strict";Object.defineProperty(p2,"__esModule",{value:!0});p2.dedentBlockStringLines=Oct;p2.isPrintableAsBlockString=Fct;p2.printBlockString=Rct;var SJ=u2();function Oct(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,o=-1;for(let a=0;as===0?a:a.slice(r)).slice((t=n)!==null&&t!==void 0?t:0,o+1)}function Nct(e){let t=0;for(;t1&&n.slice(1).every(y=>y.length===0||(0,SJ.isWhiteSpace)(y.charCodeAt(0))),a=r.endsWith('\\"""'),s=e.endsWith('"')&&!a,c=e.endsWith("\\"),p=s||c,d=!(t!=null&&t.minimize)&&(!o||e.length>70||p||i||a),f="",m=o&&(0,SJ.isWhiteSpace)(e.charCodeAt(0));return(d&&!m||i)&&(f+=` +`+(0,bge.printSourceLocation)(this.source,r);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};w1.GraphQLError=_V;function xge(e){return e===void 0||e.length===0?void 0:e}function Dct(e){return e.toString()}function Act(e){return e.toJSON()}});var lA=L(fV=>{"use strict";Object.defineProperty(fV,"__esModule",{value:!0});fV.syntaxError=wct;var Ict=ar();function wct(e,t,r){return new Ict.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})}});var ql=L(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.Token=Bl.QueryDocumentKeys=Bl.OperationTypeNode=Bl.Location=void 0;Bl.isNode=Cct;var mV=class{constructor(t,r,n){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};Bl.Location=mV;var hV=class{constructor(t,r,n,o,i,a){this.kind=t,this.start=r,this.end=n,this.line=o,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};Bl.Token=hV;var Ege={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]};Bl.QueryDocumentKeys=Ege;var kct=new Set(Object.keys(Ege));function Cct(e){let t=e?.kind;return typeof t=="string"&&kct.has(t)}var yV;Bl.OperationTypeNode=yV;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(yV||(Bl.OperationTypeNode=yV={}))});var k1=L(uA=>{"use strict";Object.defineProperty(uA,"__esModule",{value:!0});uA.DirectiveLocation=void 0;var gV;uA.DirectiveLocation=gV;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(gV||(uA.DirectiveLocation=gV={}))});var Sn=L(pA=>{"use strict";Object.defineProperty(pA,"__esModule",{value:!0});pA.Kind=void 0;var SV;pA.Kind=SV;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(SV||(pA.Kind=SV={}))});var dA=L(Hg=>{"use strict";Object.defineProperty(Hg,"__esModule",{value:!0});Hg.isDigit=Tge;Hg.isLetter=vV;Hg.isNameContinue=Nct;Hg.isNameStart=Oct;Hg.isWhiteSpace=Pct;function Pct(e){return e===9||e===32}function Tge(e){return e>=48&&e<=57}function vV(e){return e>=97&&e<=122||e>=65&&e<=90}function Oct(e){return vV(e)||e===95}function Nct(e){return vV(e)||Tge(e)||e===95}});var fA=L(_A=>{"use strict";Object.defineProperty(_A,"__esModule",{value:!0});_A.dedentBlockStringLines=Fct;_A.isPrintableAsBlockString=Lct;_A.printBlockString=$ct;var bV=dA();function Fct(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,o=-1;for(let a=0;as===0?a:a.slice(r)).slice((t=n)!==null&&t!==void 0?t:0,o+1)}function Rct(e){let t=0;for(;t1&&n.slice(1).every(y=>y.length===0||(0,bV.isWhiteSpace)(y.charCodeAt(0))),a=r.endsWith('\\"""'),s=e.endsWith('"')&&!a,c=e.endsWith("\\"),p=s||c,d=!(t!=null&&t.minimize)&&(!o||e.length>70||p||i||a),f="",m=o&&(0,bV.isWhiteSpace)(e.charCodeAt(0));return(d&&!m||i)&&(f+=` `),f+=r,(d||p)&&(f+=` -`),'"""'+f+'"""'}});var w1=L(_2=>{"use strict";Object.defineProperty(_2,"__esModule",{value:!0});_2.TokenKind=void 0;var vJ;_2.TokenKind=vJ;(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(vJ||(_2.TokenKind=vJ={}))});var m2=L(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.Lexer=void 0;_h.createToken=Fi;_h.isPunctuatorTokenKind=$ct;_h.printCodePointAt=dh;_h.readName=wge;var Uu=s2(),Tge=Bl(),Lct=d2(),Jg=u2(),Yr=w1(),xJ=class{constructor(t){let r=new Tge.Token(Yr.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==Yr.TokenKind.EOF)do if(t.next)t=t.next;else{let r=Mct(this,t.end);t.next=r,r.prev=t,t=r}while(t.kind===Yr.TokenKind.COMMENT);return t}};_h.Lexer=xJ;function $ct(e){return e===Yr.TokenKind.BANG||e===Yr.TokenKind.DOLLAR||e===Yr.TokenKind.AMP||e===Yr.TokenKind.PAREN_L||e===Yr.TokenKind.PAREN_R||e===Yr.TokenKind.DOT||e===Yr.TokenKind.SPREAD||e===Yr.TokenKind.COLON||e===Yr.TokenKind.EQUALS||e===Yr.TokenKind.AT||e===Yr.TokenKind.BRACKET_L||e===Yr.TokenKind.BRACKET_R||e===Yr.TokenKind.BRACE_L||e===Yr.TokenKind.PIPE||e===Yr.TokenKind.BRACE_R}function I1(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function NO(e,t){return Dge(e.charCodeAt(t))&&Age(e.charCodeAt(t+1))}function Dge(e){return e>=55296&&e<=56319}function Age(e){return e>=56320&&e<=57343}function dh(e,t){let r=e.source.body.codePointAt(t);if(r===void 0)return Yr.TokenKind.EOF;if(r>=32&&r<=126){let n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function Fi(e,t,r,n,o){let i=e.line,a=1+r-e.lineStart;return new Tge.Token(t,r,n,i,a,o)}function Mct(e,t){let r=e.source.body,n=r.length,o=t;for(;o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Vct(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` -`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,Uu.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function Jct(e,t){let r=e.source.body,n=r.length,o=e.lineStart,i=t+3,a=i,s="",c=[];for(;i{"use strict";Object.defineProperty(FO,"__esModule",{value:!0});FO.SchemaCoordinateLexer=void 0;var Kct=s2(),Gct=Bl(),Hct=u2(),fh=m2(),mh=w1(),EJ=class{line=1;lineStart=0;constructor(t){let r=new Gct.Token(mh.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=r,this.token=r}get[Symbol.toStringTag](){return"SchemaCoordinateLexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==mh.TokenKind.EOF){let r=Zct(this,t.end);t.next=r,r.prev=t,t=r}return t}};FO.SchemaCoordinateLexer=EJ;function Zct(e,t){let r=e.source.body,n=r.length,o=t;if(o{"use strict";Object.defineProperty(TJ,"__esModule",{value:!0});TJ.inspect=Qct;var Wct=10,kge=2;function Qct(e){return RO(e,[])}function RO(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Xct(e,t);default:return String(e)}}function Xct(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let r=[...t,e];if(Yct(e)){let n=e.toJSON();if(n!==e)return typeof n=="string"?n:RO(n,r)}else if(Array.isArray(e))return tlt(e,r);return elt(e,r)}function Yct(e){return typeof e.toJSON=="function"}function elt(e,t){let r=Object.entries(e);return r.length===0?"{}":t.length>kge?"["+rlt(e)+"]":"{ "+r.map(([o,i])=>o+": "+RO(i,t)).join(", ")+" }"}function tlt(e,t){if(e.length===0)return"[]";if(t.length>kge)return"[Array]";let r=Math.min(Wct,e.length),n=e.length-r,o=[];for(let i=0;i1&&o.push(`... ${n} more items`),"["+o.join(", ")+"]"}function rlt(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}});var h2=L(LO=>{"use strict";Object.defineProperty(LO,"__esModule",{value:!0});LO.instanceOf=void 0;var nlt=eo(),olt=globalThis.process&&process.env.NODE_ENV==="production",ilt=olt?function(t,r){return t instanceof r}:function(t,r){if(t instanceof r)return!0;if(typeof t=="object"&&t!==null){var n;let o=r.prototype[Symbol.toStringTag],i=Symbol.toStringTag in t?t[Symbol.toStringTag]:(n=t.constructor)===null||n===void 0?void 0:n.name;if(o===i){let a=(0,nlt.inspect)(t);throw new Error(`Cannot use ${o} "${a}" from another module or realm. +`),'"""'+f+'"""'}});var C1=L(mA=>{"use strict";Object.defineProperty(mA,"__esModule",{value:!0});mA.TokenKind=void 0;var xV;mA.TokenKind=xV;(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(xV||(mA.TokenKind=xV={}))});var yA=L(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.Lexer=void 0;hh.createToken=Fi;hh.isPunctuatorTokenKind=jct;hh.printCodePointAt=mh;hh.readName=kge;var zu=lA(),Age=ql(),Mct=fA(),Zg=dA(),en=C1(),TV=class{constructor(t){let r=new Age.Token(en.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==en.TokenKind.EOF)do if(t.next)t=t.next;else{let r=Bct(this,t.end);t.next=r,r.prev=t,t=r}while(t.kind===en.TokenKind.COMMENT);return t}};hh.Lexer=TV;function jct(e){return e===en.TokenKind.BANG||e===en.TokenKind.DOLLAR||e===en.TokenKind.AMP||e===en.TokenKind.PAREN_L||e===en.TokenKind.PAREN_R||e===en.TokenKind.DOT||e===en.TokenKind.SPREAD||e===en.TokenKind.COLON||e===en.TokenKind.EQUALS||e===en.TokenKind.AT||e===en.TokenKind.BRACKET_L||e===en.TokenKind.BRACKET_R||e===en.TokenKind.BRACE_L||e===en.TokenKind.PIPE||e===en.TokenKind.BRACE_R}function P1(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function RO(e,t){return Ige(e.charCodeAt(t))&&wge(e.charCodeAt(t+1))}function Ige(e){return e>=55296&&e<=56319}function wge(e){return e>=56320&&e<=57343}function mh(e,t){let r=e.source.body.codePointAt(t);if(r===void 0)return en.TokenKind.EOF;if(r>=32&&r<=126){let n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function Fi(e,t,r,n,o){let i=e.line,a=1+r-e.lineStart;return new Age.Token(t,r,n,i,a,o)}function Bct(e,t){let r=e.source.body,n=r.length,o=t;for(;o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Kct(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` +`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,zu.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function Gct(e,t){let r=e.source.body,n=r.length,o=e.lineStart,i=t+3,a=i,s="",c=[];for(;i{"use strict";Object.defineProperty(LO,"__esModule",{value:!0});LO.SchemaCoordinateLexer=void 0;var Hct=lA(),Zct=ql(),Wct=dA(),yh=yA(),gh=C1(),DV=class{line=1;lineStart=0;constructor(t){let r=new Zct.Token(gh.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=r,this.token=r}get[Symbol.toStringTag](){return"SchemaCoordinateLexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==gh.TokenKind.EOF){let r=Qct(this,t.end);t.next=r,r.prev=t,t=r}return t}};LO.SchemaCoordinateLexer=DV;function Qct(e,t){let r=e.source.body,n=r.length,o=t;if(o{"use strict";Object.defineProperty(AV,"__esModule",{value:!0});AV.inspect=Yct;var Xct=10,Pge=2;function Yct(e){return $O(e,[])}function $O(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return elt(e,t);default:return String(e)}}function elt(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let r=[...t,e];if(tlt(e)){let n=e.toJSON();if(n!==e)return typeof n=="string"?n:$O(n,r)}else if(Array.isArray(e))return nlt(e,r);return rlt(e,r)}function tlt(e){return typeof e.toJSON=="function"}function rlt(e,t){let r=Object.entries(e);return r.length===0?"{}":t.length>Pge?"["+olt(e)+"]":"{ "+r.map(([o,i])=>o+": "+$O(i,t)).join(", ")+" }"}function nlt(e,t){if(e.length===0)return"[]";if(t.length>Pge)return"[Array]";let r=Math.min(Xct,e.length),n=e.length-r,o=[];for(let i=0;i1&&o.push(`... ${n} more items`),"["+o.join(", ")+"]"}function olt(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}});var gA=L(MO=>{"use strict";Object.defineProperty(MO,"__esModule",{value:!0});MO.instanceOf=void 0;var ilt=eo(),alt=globalThis.process&&process.env.NODE_ENV==="production",slt=alt?function(t,r){return t instanceof r}:function(t,r){if(t instanceof r)return!0;if(typeof t=="object"&&t!==null){var n;let o=r.prototype[Symbol.toStringTag],i=Symbol.toStringTag in t?t[Symbol.toStringTag]:(n=t.constructor)===null||n===void 0?void 0:n.name;if(o===i){let a=(0,ilt.inspect)(t);throw new Error(`Cannot use ${o} "${a}" from another module or realm. Ensure that there is only one instance of "graphql" in the node_modules directory. If different versions of "graphql" are the dependencies of other @@ -27,48 +27,48 @@ https://yarnpkg.com/en/docs/selective-version-resolutions Duplicate "graphql" modules cannot be used at the same time since different versions may have different capabilities and behavior. The data from one version used in the function from another could produce confusing and -spurious results.`)}}return!1};LO.instanceOf=ilt});var MO=L(y2=>{"use strict";Object.defineProperty(y2,"__esModule",{value:!0});y2.Source=void 0;y2.isSource=clt;var DJ=Ls(),alt=eo(),slt=h2(),$O=class{constructor(t,r="GraphQL request",n={line:1,column:1}){typeof t=="string"||(0,DJ.devAssert)(!1,`Body must be a string. Received: ${(0,alt.inspect)(t)}.`),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||(0,DJ.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,DJ.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};y2.Source=$O;function clt(e){return(0,slt.instanceOf)(e,$O)}});var Kg=L(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.Parser=void 0;nf.parse=plt;nf.parseConstValue=_lt;nf.parseSchemaCoordinate=mlt;nf.parseType=flt;nf.parseValue=dlt;var hh=s2(),g2=Bl(),llt=A1(),cr=Sn(),Cge=m2(),ult=Ige(),BO=MO(),nt=w1();function plt(e,t){let r=new yh(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}function dlt(e,t){let r=new yh(e,t);r.expectToken(nt.TokenKind.SOF);let n=r.parseValueLiteral(!1);return r.expectToken(nt.TokenKind.EOF),n}function _lt(e,t){let r=new yh(e,t);r.expectToken(nt.TokenKind.SOF);let n=r.parseConstValueLiteral();return r.expectToken(nt.TokenKind.EOF),n}function flt(e,t){let r=new yh(e,t);r.expectToken(nt.TokenKind.SOF);let n=r.parseTypeReference();return r.expectToken(nt.TokenKind.EOF),n}function mlt(e){let t=(0,BO.isSource)(e)?e:new BO.Source(e),r=new ult.SchemaCoordinateLexer(t),n=new yh(e,{lexer:r});n.expectToken(nt.TokenKind.SOF);let o=n.parseSchemaCoordinate();return n.expectToken(nt.TokenKind.EOF),o}var yh=class{constructor(t,r={}){let{lexer:n,...o}=r;if(n)this._lexer=n;else{let i=(0,BO.isSource)(t)?t:new BO.Source(t);this._lexer=new Cge.Lexer(i)}this._options=o,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(nt.TokenKind.NAME);return this.node(t,{kind:cr.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:cr.Kind.DOCUMENT,definitions:this.many(nt.TokenKind.SOF,this.parseDefinition,nt.TokenKind.EOF)})}parseDefinition(){if(this.peek(nt.TokenKind.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),r=t?this._lexer.lookahead():this._lexer.token;if(t&&r.kind===nt.TokenKind.BRACE_L)throw(0,hh.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(r.kind===nt.TokenKind.NAME){switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw(0,hh.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(r.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(r)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(nt.TokenKind.BRACE_L))return this.node(t,{kind:cr.Kind.OPERATION_DEFINITION,operation:g2.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseDescription(),n=this.parseOperationType(),o;return this.peek(nt.TokenKind.NAME)&&(o=this.parseName()),this.node(t,{kind:cr.Kind.OPERATION_DEFINITION,operation:n,description:r,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(nt.TokenKind.NAME);switch(t.value){case"query":return g2.OperationTypeNode.QUERY;case"mutation":return g2.OperationTypeNode.MUTATION;case"subscription":return g2.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(nt.TokenKind.PAREN_L,this.parseVariableDefinition,nt.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:cr.Kind.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(nt.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(nt.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(nt.TokenKind.DOLLAR),this.node(t,{kind:cr.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:cr.Kind.SELECTION_SET,selections:this.many(nt.TokenKind.BRACE_L,this.parseSelection,nt.TokenKind.BRACE_R)})}parseSelection(){return this.peek(nt.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,r=this.parseName(),n,o;return this.expectOptionalToken(nt.TokenKind.COLON)?(n=r,o=this.parseName()):o=r,this.node(t,{kind:cr.Kind.FIELD,alias:n,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(nt.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let r=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(nt.TokenKind.PAREN_L,r,nt.TokenKind.PAREN_R)}parseArgument(t=!1){let r=this._lexer.token,n=this.parseName();return this.expectToken(nt.TokenKind.COLON),this.node(r,{kind:cr.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(nt.TokenKind.SPREAD);let r=this.expectOptionalKeyword("on");return!r&&this.peek(nt.TokenKind.NAME)?this.node(t,{kind:cr.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:cr.Kind.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token,r=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:cr.Kind.FRAGMENT_DEFINITION,description:r,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:cr.Kind.FRAGMENT_DEFINITION,description:r,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let r=this._lexer.token;switch(r.kind){case nt.TokenKind.BRACKET_L:return this.parseList(t);case nt.TokenKind.BRACE_L:return this.parseObject(t);case nt.TokenKind.INT:return this.advanceLexer(),this.node(r,{kind:cr.Kind.INT,value:r.value});case nt.TokenKind.FLOAT:return this.advanceLexer(),this.node(r,{kind:cr.Kind.FLOAT,value:r.value});case nt.TokenKind.STRING:case nt.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case nt.TokenKind.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:cr.Kind.BOOLEAN,value:!0});case"false":return this.node(r,{kind:cr.Kind.BOOLEAN,value:!1});case"null":return this.node(r,{kind:cr.Kind.NULL});default:return this.node(r,{kind:cr.Kind.ENUM,value:r.value})}case nt.TokenKind.DOLLAR:if(t)if(this.expectToken(nt.TokenKind.DOLLAR),this._lexer.token.kind===nt.TokenKind.NAME){let n=this._lexer.token.value;throw(0,hh.syntaxError)(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:cr.Kind.STRING,value:t.value,block:t.kind===nt.TokenKind.BLOCK_STRING})}parseList(t){let r=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:cr.Kind.LIST,values:this.any(nt.TokenKind.BRACKET_L,r,nt.TokenKind.BRACKET_R)})}parseObject(t){let r=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:cr.Kind.OBJECT,fields:this.any(nt.TokenKind.BRACE_L,r,nt.TokenKind.BRACE_R)})}parseObjectField(t){let r=this._lexer.token,n=this.parseName();return this.expectToken(nt.TokenKind.COLON),this.node(r,{kind:cr.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t)})}parseDirectives(t){let r=[];for(;this.peek(nt.TokenKind.AT);)r.push(this.parseDirective(t));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let r=this._lexer.token;return this.expectToken(nt.TokenKind.AT),this.node(r,{kind:cr.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,r;if(this.expectOptionalToken(nt.TokenKind.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(nt.TokenKind.BRACKET_R),r=this.node(t,{kind:cr.Kind.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(nt.TokenKind.BANG)?this.node(t,{kind:cr.Kind.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:cr.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(nt.TokenKind.STRING)||this.peek(nt.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),o=this.many(nt.TokenKind.BRACE_L,this.parseOperationTypeDefinition,nt.TokenKind.BRACE_R);return this.node(t,{kind:cr.Kind.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:o})}parseOperationTypeDefinition(){let t=this._lexer.token,r=this.parseOperationType();this.expectToken(nt.TokenKind.COLON);let n=this.parseNamedType();return this.node(t,{kind:cr.Kind.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:cr.Kind.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:o})}parseObjectTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:cr.Kind.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(nt.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(nt.TokenKind.BRACE_L,this.parseFieldDefinition,nt.TokenKind.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,r=this.parseDescription(),n=this.parseName(),o=this.parseArgumentDefs();this.expectToken(nt.TokenKind.COLON);let i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:cr.Kind.FIELD_DEFINITION,description:r,name:n,arguments:o,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(nt.TokenKind.PAREN_L,this.parseInputValueDef,nt.TokenKind.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(nt.TokenKind.COLON);let o=this.parseTypeReference(),i;this.expectOptionalToken(nt.TokenKind.EQUALS)&&(i=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:cr.Kind.INPUT_VALUE_DEFINITION,description:r,name:n,type:o,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:cr.Kind.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:i,fields:a})}parseUnionTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),o=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(t,{kind:cr.Kind.UNION_TYPE_DEFINITION,description:r,name:n,directives:o,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(nt.TokenKind.EQUALS)?this.delimitedMany(nt.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),o=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(t,{kind:cr.Kind.ENUM_TYPE_DEFINITION,description:r,name:n,directives:o,values:i})}parseEnumValuesDefinition(){return this.optionalMany(nt.TokenKind.BRACE_L,this.parseEnumValueDefinition,nt.TokenKind.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:cr.Kind.ENUM_VALUE_DEFINITION,description:r,name:n,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,hh.syntaxError)(this._lexer.source,this._lexer.token.start,`${jO(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),o=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(t,{kind:cr.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:o,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(nt.TokenKind.BRACE_L,this.parseInputValueDef,nt.TokenKind.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===nt.TokenKind.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let r=this.parseConstDirectives(),n=this.optionalMany(nt.TokenKind.BRACE_L,this.parseOperationTypeDefinition,nt.TokenKind.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:i})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:i})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.UNION_TYPE_EXTENSION,name:r,directives:n,types:o})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.ENUM_TYPE_EXTENSION,name:r,directives:n,values:o})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:o})}parseDirectiveDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(nt.TokenKind.AT);let n=this.parseName(),o=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(t,{kind:cr.Kind.DIRECTIVE_DEFINITION,description:r,name:n,arguments:o,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany(nt.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(llt.DirectiveLocation,r.value))return r;throw this.unexpected(t)}parseSchemaCoordinate(){let t=this._lexer.token,r=this.expectOptionalToken(nt.TokenKind.AT),n=this.parseName(),o;!r&&this.expectOptionalToken(nt.TokenKind.DOT)&&(o=this.parseName());let i;return(r||o)&&this.expectOptionalToken(nt.TokenKind.PAREN_L)&&(i=this.parseName(),this.expectToken(nt.TokenKind.COLON),this.expectToken(nt.TokenKind.PAREN_R)),r?i?this.node(t,{kind:cr.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:i}):this.node(t,{kind:cr.Kind.DIRECTIVE_COORDINATE,name:n}):o?i?this.node(t,{kind:cr.Kind.ARGUMENT_COORDINATE,name:n,fieldName:o,argumentName:i}):this.node(t,{kind:cr.Kind.MEMBER_COORDINATE,name:n,memberName:o}):this.node(t,{kind:cr.Kind.TYPE_COORDINATE,name:n})}node(t,r){return this._options.noLocation!==!0&&(r.loc=new g2.Location(t,this._lexer.lastToken,this._lexer.source)),r}peek(t){return this._lexer.token.kind===t}expectToken(t){let r=this._lexer.token;if(r.kind===t)return this.advanceLexer(),r;throw(0,hh.syntaxError)(this._lexer.source,r.start,`Expected ${Pge(t)}, found ${jO(r)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let r=this._lexer.token;if(r.kind===nt.TokenKind.NAME&&r.value===t)this.advanceLexer();else throw(0,hh.syntaxError)(this._lexer.source,r.start,`Expected "${t}", found ${jO(r)}.`)}expectOptionalKeyword(t){let r=this._lexer.token;return r.kind===nt.TokenKind.NAME&&r.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let r=t??this._lexer.token;return(0,hh.syntaxError)(this._lexer.source,r.start,`Unexpected ${jO(r)}.`)}any(t,r,n){this.expectToken(t);let o=[];for(;!this.expectOptionalToken(n);)o.push(r.call(this));return o}optionalMany(t,r,n){if(this.expectOptionalToken(t)){let o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}return[]}many(t,r,n){this.expectToken(t);let o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}delimitedMany(t,r){this.expectOptionalToken(t);let n=[];do n.push(r.call(this));while(this.expectOptionalToken(t));return n}advanceLexer(){let{maxTokens:t}=this._options,r=this._lexer.advance();if(r.kind!==nt.TokenKind.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw(0,hh.syntaxError)(this._lexer.source,r.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};nf.Parser=yh;function jO(e){let t=e.value;return Pge(e.kind)+(t!=null?` "${t}"`:"")}function Pge(e){return(0,Cge.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var gh=L(AJ=>{"use strict";Object.defineProperty(AJ,"__esModule",{value:!0});AJ.didYouMean=ylt;var hlt=5;function ylt(e,t){let[r,n]=t?[e,t]:[void 0,e],o=" Did you mean ";r&&(o+=r+" ");let i=n.map(c=>`"${c}"`);switch(i.length){case 0:return"";case 1:return o+i[0]+"?";case 2:return o+i[0]+" or "+i[1]+"?"}let a=i.slice(0,hlt),s=a.pop();return o+a.join(", ")+", or "+s+"?"}});var Oge=L(wJ=>{"use strict";Object.defineProperty(wJ,"__esModule",{value:!0});wJ.identityFunc=glt;function glt(e){return e}});var Sh=L(IJ=>{"use strict";Object.defineProperty(IJ,"__esModule",{value:!0});IJ.keyMap=Slt;function Slt(e,t){let r=Object.create(null);for(let n of e)r[t(n)]=n;return r}});var S2=L(kJ=>{"use strict";Object.defineProperty(kJ,"__esModule",{value:!0});kJ.keyValMap=vlt;function vlt(e,t,r){let n=Object.create(null);for(let o of e)n[t(o)]=r(o);return n}});var qO=L(CJ=>{"use strict";Object.defineProperty(CJ,"__esModule",{value:!0});CJ.mapValue=blt;function blt(e,t){let r=Object.create(null);for(let n of Object.keys(e))r[n]=t(e[n],n);return r}});var v2=L(OJ=>{"use strict";Object.defineProperty(OJ,"__esModule",{value:!0});OJ.naturalCompare=xlt;function xlt(e,t){let r=0,n=0;for(;r0);let s=0;do++n,s=s*10+i-PJ,i=t.charCodeAt(n);while(UO(i)&&s>0);if(as)return 1}else{if(oi)return 1;++r,++n}}return e.length-t.length}var PJ=48,Elt=57;function UO(e){return!isNaN(e)&&PJ<=e&&e<=Elt}});var vh=L(FJ=>{"use strict";Object.defineProperty(FJ,"__esModule",{value:!0});FJ.suggestionList=Dlt;var Tlt=v2();function Dlt(e,t){let r=Object.create(null),n=new NJ(e),o=Math.floor(e.length*.4)+1;for(let i of t){let a=n.measure(i,o);a!==void 0&&(r[i]=a)}return Object.keys(r).sort((i,a)=>{let s=r[i]-r[a];return s!==0?s:(0,Tlt.naturalCompare)(i,a)})}var NJ=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Nge(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,r){if(this._input===t)return 0;let n=t.toLowerCase();if(this._inputLowerCase===n)return 1;let o=Nge(n),i=this._inputArray;if(o.lengthr)return;let c=this._rows;for(let d=0;d<=s;d++)c[0][d]=d;for(let d=1;d<=a;d++){let f=c[(d-1)%3],m=c[d%3],y=m[0]=d;for(let g=1;g<=s;g++){let S=o[d-1]===i[g-1]?0:1,x=Math.min(f[g]+1,m[g-1]+1,f[g-1]+S);if(d>1&&g>1&&o[d-1]===i[g-2]&&o[d-2]===i[g-1]){let A=c[(d-2)%3][g-2];x=Math.min(x,A+1)}xr)return}let p=c[a%3][s];return p<=r?p:void 0}};function Nge(e){let t=e.length,r=new Array(t);for(let n=0;n{"use strict";Object.defineProperty(RJ,"__esModule",{value:!0});RJ.toObjMap=Alt;function Alt(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[r,n]of Object.entries(e))t[r]=n;return t}});var Fge=L(LJ=>{"use strict";Object.defineProperty(LJ,"__esModule",{value:!0});LJ.printString=wlt;function wlt(e){return`"${e.replace(Ilt,klt)}"`}var Ilt=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function klt(e){return Clt[e.charCodeAt(0)]}var Clt=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});var Gg=L(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});bh.BREAK=void 0;bh.getEnterLeaveForKind=VO;bh.getVisitFn=Rlt;bh.visit=Nlt;bh.visitInParallel=Flt;var Plt=Ls(),Olt=eo(),$J=Bl(),Rge=Sn(),k1=Object.freeze({});bh.BREAK=k1;function Nlt(e,t,r=$J.QueryDocumentKeys){let n=new Map;for(let A of Object.values(Rge.Kind))n.set(A,VO(t,A));let o,i=Array.isArray(e),a=[e],s=-1,c=[],p=e,d,f,m=[],y=[];do{s++;let A=s===a.length,I=A&&c.length!==0;if(A){if(d=y.length===0?void 0:m[m.length-1],p=f,f=y.pop(),I)if(i){p=p.slice();let C=0;for(let[F,O]of c){let $=F-C;O===null?(p.splice($,1),C++):p[$]=O}}else{p={...p};for(let[C,F]of c)p[C]=F}s=o.index,a=o.keys,c=o.edits,i=o.inArray,o=o.prev}else if(f){if(d=i?s:a[s],p=f[d],p==null)continue;m.push(d)}let E;if(!Array.isArray(p)){var g,S;(0,$J.isNode)(p)||(0,Plt.devAssert)(!1,`Invalid AST Node: ${(0,Olt.inspect)(p)}.`);let C=A?(g=n.get(p.kind))===null||g===void 0?void 0:g.leave:(S=n.get(p.kind))===null||S===void 0?void 0:S.enter;if(E=C?.call(t,p,d,f,m,y),E===k1)break;if(E===!1){if(!A){m.pop();continue}}else if(E!==void 0&&(c.push([d,E]),!A))if((0,$J.isNode)(E))p=E;else{m.pop();continue}}if(E===void 0&&I&&c.push([d,p]),A)m.pop();else{var x;o={inArray:i,index:s,keys:a,edits:c,prev:o},i=Array.isArray(p),a=i?p:(x=r[p.kind])!==null&&x!==void 0?x:[],s=-1,c=[],f&&y.push(f),f=p}}while(o!==void 0);return c.length!==0?c[c.length-1][1]:e}function Flt(e){let t=new Array(e.length).fill(null),r=Object.create(null);for(let n of Object.values(Rge.Kind)){let o=!1,i=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let c=0;c{"use strict";Object.defineProperty(jJ,"__esModule",{value:!0});jJ.print=jlt;var Llt=d2(),$lt=Fge(),Mlt=Gg();function jlt(e){return(0,Mlt.visit)(e,qlt)}var Blt=80,qlt={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Dt(e.definitions,` +spurious results.`)}}return!1};MO.instanceOf=slt});var BO=L(SA=>{"use strict";Object.defineProperty(SA,"__esModule",{value:!0});SA.Source=void 0;SA.isSource=ult;var IV=Ls(),clt=eo(),llt=gA(),jO=class{constructor(t,r="GraphQL request",n={line:1,column:1}){typeof t=="string"||(0,IV.devAssert)(!1,`Body must be a string. Received: ${(0,clt.inspect)(t)}.`),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||(0,IV.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,IV.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};SA.Source=jO;function ult(e){return(0,llt.instanceOf)(e,jO)}});var Wg=L(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.Parser=void 0;af.parse=_lt;af.parseConstValue=mlt;af.parseSchemaCoordinate=ylt;af.parseType=hlt;af.parseValue=flt;var Sh=lA(),vA=ql(),plt=k1(),cr=Sn(),Oge=yA(),dlt=Cge(),UO=BO(),nt=C1();function _lt(e,t){let r=new vh(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}function flt(e,t){let r=new vh(e,t);r.expectToken(nt.TokenKind.SOF);let n=r.parseValueLiteral(!1);return r.expectToken(nt.TokenKind.EOF),n}function mlt(e,t){let r=new vh(e,t);r.expectToken(nt.TokenKind.SOF);let n=r.parseConstValueLiteral();return r.expectToken(nt.TokenKind.EOF),n}function hlt(e,t){let r=new vh(e,t);r.expectToken(nt.TokenKind.SOF);let n=r.parseTypeReference();return r.expectToken(nt.TokenKind.EOF),n}function ylt(e){let t=(0,UO.isSource)(e)?e:new UO.Source(e),r=new dlt.SchemaCoordinateLexer(t),n=new vh(e,{lexer:r});n.expectToken(nt.TokenKind.SOF);let o=n.parseSchemaCoordinate();return n.expectToken(nt.TokenKind.EOF),o}var vh=class{constructor(t,r={}){let{lexer:n,...o}=r;if(n)this._lexer=n;else{let i=(0,UO.isSource)(t)?t:new UO.Source(t);this._lexer=new Oge.Lexer(i)}this._options=o,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(nt.TokenKind.NAME);return this.node(t,{kind:cr.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:cr.Kind.DOCUMENT,definitions:this.many(nt.TokenKind.SOF,this.parseDefinition,nt.TokenKind.EOF)})}parseDefinition(){if(this.peek(nt.TokenKind.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),r=t?this._lexer.lookahead():this._lexer.token;if(t&&r.kind===nt.TokenKind.BRACE_L)throw(0,Sh.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(r.kind===nt.TokenKind.NAME){switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw(0,Sh.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(r.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(r)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(nt.TokenKind.BRACE_L))return this.node(t,{kind:cr.Kind.OPERATION_DEFINITION,operation:vA.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseDescription(),n=this.parseOperationType(),o;return this.peek(nt.TokenKind.NAME)&&(o=this.parseName()),this.node(t,{kind:cr.Kind.OPERATION_DEFINITION,operation:n,description:r,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(nt.TokenKind.NAME);switch(t.value){case"query":return vA.OperationTypeNode.QUERY;case"mutation":return vA.OperationTypeNode.MUTATION;case"subscription":return vA.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(nt.TokenKind.PAREN_L,this.parseVariableDefinition,nt.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:cr.Kind.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(nt.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(nt.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(nt.TokenKind.DOLLAR),this.node(t,{kind:cr.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:cr.Kind.SELECTION_SET,selections:this.many(nt.TokenKind.BRACE_L,this.parseSelection,nt.TokenKind.BRACE_R)})}parseSelection(){return this.peek(nt.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,r=this.parseName(),n,o;return this.expectOptionalToken(nt.TokenKind.COLON)?(n=r,o=this.parseName()):o=r,this.node(t,{kind:cr.Kind.FIELD,alias:n,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(nt.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let r=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(nt.TokenKind.PAREN_L,r,nt.TokenKind.PAREN_R)}parseArgument(t=!1){let r=this._lexer.token,n=this.parseName();return this.expectToken(nt.TokenKind.COLON),this.node(r,{kind:cr.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(nt.TokenKind.SPREAD);let r=this.expectOptionalKeyword("on");return!r&&this.peek(nt.TokenKind.NAME)?this.node(t,{kind:cr.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:cr.Kind.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token,r=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:cr.Kind.FRAGMENT_DEFINITION,description:r,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:cr.Kind.FRAGMENT_DEFINITION,description:r,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let r=this._lexer.token;switch(r.kind){case nt.TokenKind.BRACKET_L:return this.parseList(t);case nt.TokenKind.BRACE_L:return this.parseObject(t);case nt.TokenKind.INT:return this.advanceLexer(),this.node(r,{kind:cr.Kind.INT,value:r.value});case nt.TokenKind.FLOAT:return this.advanceLexer(),this.node(r,{kind:cr.Kind.FLOAT,value:r.value});case nt.TokenKind.STRING:case nt.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case nt.TokenKind.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:cr.Kind.BOOLEAN,value:!0});case"false":return this.node(r,{kind:cr.Kind.BOOLEAN,value:!1});case"null":return this.node(r,{kind:cr.Kind.NULL});default:return this.node(r,{kind:cr.Kind.ENUM,value:r.value})}case nt.TokenKind.DOLLAR:if(t)if(this.expectToken(nt.TokenKind.DOLLAR),this._lexer.token.kind===nt.TokenKind.NAME){let n=this._lexer.token.value;throw(0,Sh.syntaxError)(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:cr.Kind.STRING,value:t.value,block:t.kind===nt.TokenKind.BLOCK_STRING})}parseList(t){let r=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:cr.Kind.LIST,values:this.any(nt.TokenKind.BRACKET_L,r,nt.TokenKind.BRACKET_R)})}parseObject(t){let r=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:cr.Kind.OBJECT,fields:this.any(nt.TokenKind.BRACE_L,r,nt.TokenKind.BRACE_R)})}parseObjectField(t){let r=this._lexer.token,n=this.parseName();return this.expectToken(nt.TokenKind.COLON),this.node(r,{kind:cr.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t)})}parseDirectives(t){let r=[];for(;this.peek(nt.TokenKind.AT);)r.push(this.parseDirective(t));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let r=this._lexer.token;return this.expectToken(nt.TokenKind.AT),this.node(r,{kind:cr.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,r;if(this.expectOptionalToken(nt.TokenKind.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(nt.TokenKind.BRACKET_R),r=this.node(t,{kind:cr.Kind.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(nt.TokenKind.BANG)?this.node(t,{kind:cr.Kind.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:cr.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(nt.TokenKind.STRING)||this.peek(nt.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),o=this.many(nt.TokenKind.BRACE_L,this.parseOperationTypeDefinition,nt.TokenKind.BRACE_R);return this.node(t,{kind:cr.Kind.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:o})}parseOperationTypeDefinition(){let t=this._lexer.token,r=this.parseOperationType();this.expectToken(nt.TokenKind.COLON);let n=this.parseNamedType();return this.node(t,{kind:cr.Kind.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:cr.Kind.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:o})}parseObjectTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:cr.Kind.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(nt.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(nt.TokenKind.BRACE_L,this.parseFieldDefinition,nt.TokenKind.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,r=this.parseDescription(),n=this.parseName(),o=this.parseArgumentDefs();this.expectToken(nt.TokenKind.COLON);let i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:cr.Kind.FIELD_DEFINITION,description:r,name:n,arguments:o,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(nt.TokenKind.PAREN_L,this.parseInputValueDef,nt.TokenKind.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(nt.TokenKind.COLON);let o=this.parseTypeReference(),i;this.expectOptionalToken(nt.TokenKind.EQUALS)&&(i=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:cr.Kind.INPUT_VALUE_DEFINITION,description:r,name:n,type:o,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:cr.Kind.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:i,fields:a})}parseUnionTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),o=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(t,{kind:cr.Kind.UNION_TYPE_DEFINITION,description:r,name:n,directives:o,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(nt.TokenKind.EQUALS)?this.delimitedMany(nt.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),o=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(t,{kind:cr.Kind.ENUM_TYPE_DEFINITION,description:r,name:n,directives:o,values:i})}parseEnumValuesDefinition(){return this.optionalMany(nt.TokenKind.BRACE_L,this.parseEnumValueDefinition,nt.TokenKind.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:cr.Kind.ENUM_VALUE_DEFINITION,description:r,name:n,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,Sh.syntaxError)(this._lexer.source,this._lexer.token.start,`${qO(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),o=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(t,{kind:cr.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:o,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(nt.TokenKind.BRACE_L,this.parseInputValueDef,nt.TokenKind.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===nt.TokenKind.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let r=this.parseConstDirectives(),n=this.optionalMany(nt.TokenKind.BRACE_L,this.parseOperationTypeDefinition,nt.TokenKind.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:i})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:i})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.UNION_TYPE_EXTENSION,name:r,directives:n,types:o})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.ENUM_TYPE_EXTENSION,name:r,directives:n,values:o})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:cr.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:o})}parseDirectiveDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(nt.TokenKind.AT);let n=this.parseName(),o=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(t,{kind:cr.Kind.DIRECTIVE_DEFINITION,description:r,name:n,arguments:o,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany(nt.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(plt.DirectiveLocation,r.value))return r;throw this.unexpected(t)}parseSchemaCoordinate(){let t=this._lexer.token,r=this.expectOptionalToken(nt.TokenKind.AT),n=this.parseName(),o;!r&&this.expectOptionalToken(nt.TokenKind.DOT)&&(o=this.parseName());let i;return(r||o)&&this.expectOptionalToken(nt.TokenKind.PAREN_L)&&(i=this.parseName(),this.expectToken(nt.TokenKind.COLON),this.expectToken(nt.TokenKind.PAREN_R)),r?i?this.node(t,{kind:cr.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:i}):this.node(t,{kind:cr.Kind.DIRECTIVE_COORDINATE,name:n}):o?i?this.node(t,{kind:cr.Kind.ARGUMENT_COORDINATE,name:n,fieldName:o,argumentName:i}):this.node(t,{kind:cr.Kind.MEMBER_COORDINATE,name:n,memberName:o}):this.node(t,{kind:cr.Kind.TYPE_COORDINATE,name:n})}node(t,r){return this._options.noLocation!==!0&&(r.loc=new vA.Location(t,this._lexer.lastToken,this._lexer.source)),r}peek(t){return this._lexer.token.kind===t}expectToken(t){let r=this._lexer.token;if(r.kind===t)return this.advanceLexer(),r;throw(0,Sh.syntaxError)(this._lexer.source,r.start,`Expected ${Nge(t)}, found ${qO(r)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let r=this._lexer.token;if(r.kind===nt.TokenKind.NAME&&r.value===t)this.advanceLexer();else throw(0,Sh.syntaxError)(this._lexer.source,r.start,`Expected "${t}", found ${qO(r)}.`)}expectOptionalKeyword(t){let r=this._lexer.token;return r.kind===nt.TokenKind.NAME&&r.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let r=t??this._lexer.token;return(0,Sh.syntaxError)(this._lexer.source,r.start,`Unexpected ${qO(r)}.`)}any(t,r,n){this.expectToken(t);let o=[];for(;!this.expectOptionalToken(n);)o.push(r.call(this));return o}optionalMany(t,r,n){if(this.expectOptionalToken(t)){let o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}return[]}many(t,r,n){this.expectToken(t);let o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}delimitedMany(t,r){this.expectOptionalToken(t);let n=[];do n.push(r.call(this));while(this.expectOptionalToken(t));return n}advanceLexer(){let{maxTokens:t}=this._options,r=this._lexer.advance();if(r.kind!==nt.TokenKind.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw(0,Sh.syntaxError)(this._lexer.source,r.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};af.Parser=vh;function qO(e){let t=e.value;return Nge(e.kind)+(t!=null?` "${t}"`:"")}function Nge(e){return(0,Oge.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var bh=L(wV=>{"use strict";Object.defineProperty(wV,"__esModule",{value:!0});wV.didYouMean=Slt;var glt=5;function Slt(e,t){let[r,n]=t?[e,t]:[void 0,e],o=" Did you mean ";r&&(o+=r+" ");let i=n.map(c=>`"${c}"`);switch(i.length){case 0:return"";case 1:return o+i[0]+"?";case 2:return o+i[0]+" or "+i[1]+"?"}let a=i.slice(0,glt),s=a.pop();return o+a.join(", ")+", or "+s+"?"}});var Fge=L(kV=>{"use strict";Object.defineProperty(kV,"__esModule",{value:!0});kV.identityFunc=vlt;function vlt(e){return e}});var xh=L(CV=>{"use strict";Object.defineProperty(CV,"__esModule",{value:!0});CV.keyMap=blt;function blt(e,t){let r=Object.create(null);for(let n of e)r[t(n)]=n;return r}});var bA=L(PV=>{"use strict";Object.defineProperty(PV,"__esModule",{value:!0});PV.keyValMap=xlt;function xlt(e,t,r){let n=Object.create(null);for(let o of e)n[t(o)]=r(o);return n}});var zO=L(OV=>{"use strict";Object.defineProperty(OV,"__esModule",{value:!0});OV.mapValue=Elt;function Elt(e,t){let r=Object.create(null);for(let n of Object.keys(e))r[n]=t(e[n],n);return r}});var xA=L(FV=>{"use strict";Object.defineProperty(FV,"__esModule",{value:!0});FV.naturalCompare=Tlt;function Tlt(e,t){let r=0,n=0;for(;r0);let s=0;do++n,s=s*10+i-NV,i=t.charCodeAt(n);while(JO(i)&&s>0);if(as)return 1}else{if(oi)return 1;++r,++n}}return e.length-t.length}var NV=48,Dlt=57;function JO(e){return!isNaN(e)&&NV<=e&&e<=Dlt}});var Eh=L(LV=>{"use strict";Object.defineProperty(LV,"__esModule",{value:!0});LV.suggestionList=Ilt;var Alt=xA();function Ilt(e,t){let r=Object.create(null),n=new RV(e),o=Math.floor(e.length*.4)+1;for(let i of t){let a=n.measure(i,o);a!==void 0&&(r[i]=a)}return Object.keys(r).sort((i,a)=>{let s=r[i]-r[a];return s!==0?s:(0,Alt.naturalCompare)(i,a)})}var RV=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Rge(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,r){if(this._input===t)return 0;let n=t.toLowerCase();if(this._inputLowerCase===n)return 1;let o=Rge(n),i=this._inputArray;if(o.lengthr)return;let c=this._rows;for(let d=0;d<=s;d++)c[0][d]=d;for(let d=1;d<=a;d++){let f=c[(d-1)%3],m=c[d%3],y=m[0]=d;for(let g=1;g<=s;g++){let S=o[d-1]===i[g-1]?0:1,b=Math.min(f[g]+1,m[g-1]+1,f[g-1]+S);if(d>1&&g>1&&o[d-1]===i[g-2]&&o[d-2]===i[g-1]){let E=c[(d-2)%3][g-2];b=Math.min(b,E+1)}br)return}let p=c[a%3][s];return p<=r?p:void 0}};function Rge(e){let t=e.length,r=new Array(t);for(let n=0;n{"use strict";Object.defineProperty($V,"__esModule",{value:!0});$V.toObjMap=wlt;function wlt(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[r,n]of Object.entries(e))t[r]=n;return t}});var Lge=L(MV=>{"use strict";Object.defineProperty(MV,"__esModule",{value:!0});MV.printString=klt;function klt(e){return`"${e.replace(Clt,Plt)}"`}var Clt=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Plt(e){return Olt[e.charCodeAt(0)]}var Olt=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});var Qg=L(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});Th.BREAK=void 0;Th.getEnterLeaveForKind=KO;Th.getVisitFn=$lt;Th.visit=Rlt;Th.visitInParallel=Llt;var Nlt=Ls(),Flt=eo(),jV=ql(),$ge=Sn(),O1=Object.freeze({});Th.BREAK=O1;function Rlt(e,t,r=jV.QueryDocumentKeys){let n=new Map;for(let E of Object.values($ge.Kind))n.set(E,KO(t,E));let o,i=Array.isArray(e),a=[e],s=-1,c=[],p=e,d,f,m=[],y=[];do{s++;let E=s===a.length,I=E&&c.length!==0;if(E){if(d=y.length===0?void 0:m[m.length-1],p=f,f=y.pop(),I)if(i){p=p.slice();let k=0;for(let[F,O]of c){let $=F-k;O===null?(p.splice($,1),k++):p[$]=O}}else{p={...p};for(let[k,F]of c)p[k]=F}s=o.index,a=o.keys,c=o.edits,i=o.inArray,o=o.prev}else if(f){if(d=i?s:a[s],p=f[d],p==null)continue;m.push(d)}let T;if(!Array.isArray(p)){var g,S;(0,jV.isNode)(p)||(0,Nlt.devAssert)(!1,`Invalid AST Node: ${(0,Flt.inspect)(p)}.`);let k=E?(g=n.get(p.kind))===null||g===void 0?void 0:g.leave:(S=n.get(p.kind))===null||S===void 0?void 0:S.enter;if(T=k?.call(t,p,d,f,m,y),T===O1)break;if(T===!1){if(!E){m.pop();continue}}else if(T!==void 0&&(c.push([d,T]),!E))if((0,jV.isNode)(T))p=T;else{m.pop();continue}}if(T===void 0&&I&&c.push([d,p]),E)m.pop();else{var b;o={inArray:i,index:s,keys:a,edits:c,prev:o},i=Array.isArray(p),a=i?p:(b=r[p.kind])!==null&&b!==void 0?b:[],s=-1,c=[],f&&y.push(f),f=p}}while(o!==void 0);return c.length!==0?c[c.length-1][1]:e}function Llt(e){let t=new Array(e.length).fill(null),r=Object.create(null);for(let n of Object.values($ge.Kind)){let o=!1,i=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let c=0;c{"use strict";Object.defineProperty(qV,"__esModule",{value:!0});qV.print=qlt;var Mlt=fA(),jlt=Lge(),Blt=Qg();function qlt(e){return(0,Blt.visit)(e,zlt)}var Ult=80,zlt={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Dt(e.definitions,` -`)},OperationDefinition:{leave(e){let t=MJ(e.variableDefinitions)?Nr(`( +`)},OperationDefinition:{leave(e){let t=BV(e.variableDefinitions)?Nr(`( `,Dt(e.variableDefinitions,` `),` )`):Nr("(",Dt(e.variableDefinitions,", "),")"),r=Nr("",e.description,` `)+Dt([e.operation,Dt([e.name,t]),Dt(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:o})=>Nr("",o,` -`)+e+": "+t+Nr(" = ",r)+Nr(" ",Dt(n," "))},SelectionSet:{leave:({selections:e})=>zu(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:o}){let i=Nr("",e,": ")+t,a=i+Nr("(",Dt(r,", "),")");return a.length>Blt&&(a=i+Nr(`( -`,JO(Dt(r,` +`)+e+": "+t+Nr(" = ",r)+Nr(" ",Dt(n," "))},SelectionSet:{leave:({selections:e})=>Ju(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:o}){let i=Nr("",e,": ")+t,a=i+Nr("(",Dt(r,", "),")");return a.length>Ult&&(a=i+Nr(`( +`,GO(Dt(r,` `)),` )`)),Dt([a,Dt(n," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Nr(" ",Dt(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>Dt(["...",Nr("on ",e),Dt(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:o,description:i})=>Nr("",i,` -`)+`fragment ${e}${Nr("(",Dt(r,", "),")")} on ${t} ${Nr("",Dt(n," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,Llt.printBlockString)(e):(0,$lt.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Dt(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Dt(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Nr("(",Dt(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>Nr("",e,` -`)+Dt(["schema",Dt(t," "),zu(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>Nr("",e,` +`)+`fragment ${e}${Nr("(",Dt(r,", "),")")} on ${t} ${Nr("",Dt(n," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,Mlt.printBlockString)(e):(0,jlt.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Dt(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Dt(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Nr("(",Dt(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>Nr("",e,` +`)+Dt(["schema",Dt(t," "),Ju(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>Nr("",e,` `)+Dt(["scalar",t,Dt(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:o})=>Nr("",e,` -`)+Dt(["type",t,Nr("implements ",Dt(r," & ")),Dt(n," "),zu(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:o})=>Nr("",e,` -`)+t+(MJ(r)?Nr(`( -`,JO(Dt(r,` +`)+Dt(["type",t,Nr("implements ",Dt(r," & ")),Dt(n," "),Ju(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:o})=>Nr("",e,` +`)+t+(BV(r)?Nr(`( +`,GO(Dt(r,` `)),` )`):Nr("(",Dt(r,", "),")"))+": "+n+Nr(" ",Dt(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:o})=>Nr("",e,` `)+Dt([t+": "+r,Nr("= ",n),Dt(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:o})=>Nr("",e,` -`)+Dt(["interface",t,Nr("implements ",Dt(r," & ")),Dt(n," "),zu(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>Nr("",e,` +`)+Dt(["interface",t,Nr("implements ",Dt(r," & ")),Dt(n," "),Ju(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>Nr("",e,` `)+Dt(["union",t,Dt(r," "),Nr("= ",Dt(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>Nr("",e,` -`)+Dt(["enum",t,Dt(r," "),zu(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>Nr("",e,` +`)+Dt(["enum",t,Dt(r," "),Ju(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>Nr("",e,` `)+Dt([t,Dt(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>Nr("",e,` -`)+Dt(["input",t,Dt(r," "),zu(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:o})=>Nr("",e,` -`)+"directive @"+t+(MJ(r)?Nr(`( -`,JO(Dt(r,` +`)+Dt(["input",t,Dt(r," "),Ju(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:o})=>Nr("",e,` +`)+"directive @"+t+(BV(r)?Nr(`( +`,GO(Dt(r,` `)),` -)`):Nr("(",Dt(r,", "),")"))+(n?" repeatable":"")+" on "+Dt(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Dt(["extend schema",Dt(e," "),zu(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Dt(["extend scalar",e,Dt(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>Dt(["extend type",e,Nr("implements ",Dt(t," & ")),Dt(r," "),zu(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>Dt(["extend interface",e,Nr("implements ",Dt(t," & ")),Dt(r," "),zu(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>Dt(["extend union",e,Dt(t," "),Nr("= ",Dt(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>Dt(["extend enum",e,Dt(t," "),zu(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>Dt(["extend input",e,Dt(t," "),zu(r)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>Dt([e,Nr(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>Dt([e,Nr(".",t),Nr("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>Dt(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>Dt(["@",e,Nr("(",t,":)")])}};function Dt(e,t=""){var r;return(r=e?.filter(n=>n).join(t))!==null&&r!==void 0?r:""}function zu(e){return Nr(`{ -`,JO(Dt(e,` +)`):Nr("(",Dt(r,", "),")"))+(n?" repeatable":"")+" on "+Dt(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Dt(["extend schema",Dt(e," "),Ju(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Dt(["extend scalar",e,Dt(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>Dt(["extend type",e,Nr("implements ",Dt(t," & ")),Dt(r," "),Ju(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>Dt(["extend interface",e,Nr("implements ",Dt(t," & ")),Dt(r," "),Ju(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>Dt(["extend union",e,Dt(t," "),Nr("= ",Dt(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>Dt(["extend enum",e,Dt(t," "),Ju(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>Dt(["extend input",e,Dt(t," "),Ju(r)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>Dt([e,Nr(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>Dt([e,Nr(".",t),Nr("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>Dt(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>Dt(["@",e,Nr("(",t,":)")])}};function Dt(e,t=""){var r;return(r=e?.filter(n=>n).join(t))!==null&&r!==void 0?r:""}function Ju(e){return Nr(`{ +`,GO(Dt(e,` `)),` -}`)}function Nr(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function JO(e){return Nr(" ",e.replace(/\n/g,` - `))}function MJ(e){var t;return(t=e?.some(r=>r.includes(` -`)))!==null&&t!==void 0?t:!1}});var UJ=L(qJ=>{"use strict";Object.defineProperty(qJ,"__esModule",{value:!0});qJ.valueFromASTUntyped=BJ;var Ult=S2(),of=Sn();function BJ(e,t){switch(e.kind){case of.Kind.NULL:return null;case of.Kind.INT:return parseInt(e.value,10);case of.Kind.FLOAT:return parseFloat(e.value);case of.Kind.STRING:case of.Kind.ENUM:case of.Kind.BOOLEAN:return e.value;case of.Kind.LIST:return e.values.map(r=>BJ(r,t));case of.Kind.OBJECT:return(0,Ult.keyValMap)(e.fields,r=>r.name.value,r=>BJ(r.value,t));case of.Kind.VARIABLE:return t?.[e.name.value]}}});var b2=L(GO=>{"use strict";Object.defineProperty(GO,"__esModule",{value:!0});GO.assertEnumValueName=zlt;GO.assertName=Mge;var Lge=Ls(),KO=ar(),$ge=u2();function Mge(e){if(e!=null||(0,Lge.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,Lge.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new KO.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.GraphQLUnionType=zt.GraphQLScalarType=zt.GraphQLObjectType=zt.GraphQLNonNull=zt.GraphQLList=zt.GraphQLInterfaceType=zt.GraphQLInputObjectType=zt.GraphQLEnumType=void 0;zt.argsToArgsConfig=Qge;zt.assertAbstractType=lut;zt.assertCompositeType=cut;zt.assertEnumType=tut;zt.assertInputObjectType=rut;zt.assertInputType=iut;zt.assertInterfaceType=Ylt;zt.assertLeafType=sut;zt.assertListType=nut;zt.assertNamedType=_ut;zt.assertNonNullType=out;zt.assertNullableType=put;zt.assertObjectType=Xlt;zt.assertOutputType=aut;zt.assertScalarType=Qlt;zt.assertType=Wlt;zt.assertUnionType=eut;zt.assertWrappingType=uut;zt.defineArguments=Zge;zt.getNamedType=fut;zt.getNullableType=dut;zt.isAbstractType=Jge;zt.isCompositeType=Vge;zt.isEnumType=Qg;zt.isInputObjectType=E2;zt.isInputType=zJ;zt.isInterfaceType=Zg;zt.isLeafType=zge;zt.isListType=i4;zt.isNamedType=Kge;zt.isNonNullType=Eh;zt.isNullableType=JJ;zt.isObjectType=P1;zt.isOutputType=VJ;zt.isRequiredArgument=mut;zt.isRequiredInputField=gut;zt.isScalarType=Hg;zt.isType=o4;zt.isUnionType=Wg;zt.isWrappingType=T2;zt.resolveObjMapThunk=GJ;zt.resolveReadonlyArrayThunk=KJ;var ha=Ls(),Vlt=gh(),jge=Oge(),Po=eo(),xh=h2(),Jlt=hd(),Klt=Sh(),Uge=S2(),n4=qO(),Glt=vh(),yd=zO(),x2=ar(),Hlt=Sn(),Bge=Gc(),Zlt=UJ(),gd=b2();function o4(e){return Hg(e)||P1(e)||Zg(e)||Wg(e)||Qg(e)||E2(e)||i4(e)||Eh(e)}function Wlt(e){if(!o4(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL type.`);return e}function Hg(e){return(0,xh.instanceOf)(e,QO)}function Qlt(e){if(!Hg(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Scalar type.`);return e}function P1(e){return(0,xh.instanceOf)(e,XO)}function Xlt(e){if(!P1(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Object type.`);return e}function Zg(e){return(0,xh.instanceOf)(e,YO)}function Ylt(e){if(!Zg(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Interface type.`);return e}function Wg(e){return(0,xh.instanceOf)(e,e4)}function eut(e){if(!Wg(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Union type.`);return e}function Qg(e){return(0,xh.instanceOf)(e,t4)}function tut(e){if(!Qg(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Enum type.`);return e}function E2(e){return(0,xh.instanceOf)(e,r4)}function rut(e){if(!E2(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Input Object type.`);return e}function i4(e){return(0,xh.instanceOf)(e,ZO)}function nut(e){if(!i4(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL List type.`);return e}function Eh(e){return(0,xh.instanceOf)(e,WO)}function out(e){if(!Eh(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function zJ(e){return Hg(e)||Qg(e)||E2(e)||T2(e)&&zJ(e.ofType)}function iut(e){if(!zJ(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL input type.`);return e}function VJ(e){return Hg(e)||P1(e)||Zg(e)||Wg(e)||Qg(e)||T2(e)&&VJ(e.ofType)}function aut(e){if(!VJ(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL output type.`);return e}function zge(e){return Hg(e)||Qg(e)}function sut(e){if(!zge(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL leaf type.`);return e}function Vge(e){return P1(e)||Zg(e)||Wg(e)}function cut(e){if(!Vge(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL composite type.`);return e}function Jge(e){return Zg(e)||Wg(e)}function lut(e){if(!Jge(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL abstract type.`);return e}var ZO=class{constructor(t){o4(t)||(0,ha.devAssert)(!1,`Expected ${(0,Po.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};zt.GraphQLList=ZO;var WO=class{constructor(t){JJ(t)||(0,ha.devAssert)(!1,`Expected ${(0,Po.inspect)(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};zt.GraphQLNonNull=WO;function T2(e){return i4(e)||Eh(e)}function uut(e){if(!T2(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL wrapping type.`);return e}function JJ(e){return o4(e)&&!Eh(e)}function put(e){if(!JJ(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL nullable type.`);return e}function dut(e){if(e)return Eh(e)?e.ofType:e}function Kge(e){return Hg(e)||P1(e)||Zg(e)||Wg(e)||Qg(e)||E2(e)}function _ut(e){if(!Kge(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL named type.`);return e}function fut(e){if(e){let t=e;for(;T2(t);)t=t.ofType;return t}}function KJ(e){return typeof e=="function"?e():e}function GJ(e){return typeof e=="function"?e():e}var QO=class{constructor(t){var r,n,o,i;let a=(r=t.parseValue)!==null&&r!==void 0?r:jge.identityFunc;this.name=(0,gd.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(n=t.serialize)!==null&&n!==void 0?n:jge.identityFunc,this.parseValue=a,this.parseLiteral=(o=t.parseLiteral)!==null&&o!==void 0?o:(s,c)=>a((0,Zlt.valueFromASTUntyped)(s,c)),this.extensions=(0,yd.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(i=t.extensionASTNodes)!==null&&i!==void 0?i:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,ha.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,Po.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,ha.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||(0,ha.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};zt.GraphQLScalarType=QO;var XO=class{constructor(t){var r;this.name=(0,gd.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,yd.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=()=>Hge(t),this._interfaces=()=>Gge(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,ha.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,Po.inspect)(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Wge(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};zt.GraphQLObjectType=XO;function Gge(e){var t;let r=KJ((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(r)||(0,ha.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),r}function Hge(e){let t=GJ(e.fields);return C1(t)||(0,ha.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,n4.mapValue)(t,(r,n)=>{var o;C1(r)||(0,ha.devAssert)(!1,`${e.name}.${n} field config must be an object.`),r.resolve==null||typeof r.resolve=="function"||(0,ha.devAssert)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,Po.inspect)(r.resolve)}.`);let i=(o=r.args)!==null&&o!==void 0?o:{};return C1(i)||(0,ha.devAssert)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,gd.assertName)(n),description:r.description,type:r.type,args:Zge(i),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:(0,yd.toObjMap)(r.extensions),astNode:r.astNode}})}function Zge(e){return Object.entries(e).map(([t,r])=>({name:(0,gd.assertName)(t),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:(0,yd.toObjMap)(r.extensions),astNode:r.astNode}))}function C1(e){return(0,Jlt.isObjectLike)(e)&&!Array.isArray(e)}function Wge(e){return(0,n4.mapValue)(e,t=>({description:t.description,type:t.type,args:Qge(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function Qge(e){return(0,Uge.keyValMap)(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function mut(e){return Eh(e.type)&&e.defaultValue===void 0}var YO=class{constructor(t){var r;this.name=(0,gd.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,yd.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=Hge.bind(void 0,t),this._interfaces=Gge.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,ha.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Po.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Wge(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};zt.GraphQLInterfaceType=YO;var e4=class{constructor(t){var r;this.name=(0,gd.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,yd.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._types=hut.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,ha.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Po.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};zt.GraphQLUnionType=e4;function hut(e){let t=KJ(e.types);return Array.isArray(t)||(0,ha.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var t4=class{constructor(t){var r;this.name=(0,gd.assertName)(t.name),this.description=t.description,this.extensions=(0,yd.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._values=typeof t.values=="function"?t.values:qge(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=qge(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,Klt.keyMap)(this.getValues(),r=>r.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(n=>[n.value,n])));let r=this._valueLookup.get(t);if(r===void 0)throw new x2.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,Po.inspect)(t)}`);return r.name}parseValue(t){if(typeof t!="string"){let n=(0,Po.inspect)(t);throw new x2.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${n}.`+HO(this,n))}let r=this.getValue(t);if(r==null)throw new x2.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+HO(this,t));return r.value}parseLiteral(t,r){if(t.kind!==Hlt.Kind.ENUM){let o=(0,Bge.print)(t);throw new x2.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${o}.`+HO(this,o),{nodes:t})}let n=this.getValue(t.value);if(n==null){let o=(0,Bge.print)(t);throw new x2.GraphQLError(`Value "${o}" does not exist in "${this.name}" enum.`+HO(this,o),{nodes:t})}return n.value}toConfig(){let t=(0,Uge.keyValMap)(this.getValues(),r=>r.name,r=>({description:r.description,value:r.value,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};zt.GraphQLEnumType=t4;function HO(e,t){let r=e.getValues().map(o=>o.name),n=(0,Glt.suggestionList)(t,r);return(0,Vlt.didYouMean)("the enum value",n)}function qge(e,t){return C1(t)||(0,ha.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([r,n])=>(C1(n)||(0,ha.devAssert)(!1,`${e}.${r} must refer to an object with a "value" key representing an internal value but got: ${(0,Po.inspect)(n)}.`),{name:(0,gd.assertEnumValueName)(r),description:n.description,value:n.value!==void 0?n.value:r,deprecationReason:n.deprecationReason,extensions:(0,yd.toObjMap)(n.extensions),astNode:n.astNode}))}var r4=class{constructor(t){var r,n;this.name=(0,gd.assertName)(t.name),this.description=t.description,this.extensions=(0,yd.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this.isOneOf=(n=t.isOneOf)!==null&&n!==void 0?n:!1,this._fields=yut.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=(0,n4.mapValue)(this.getFields(),r=>({description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};zt.GraphQLInputObjectType=r4;function yut(e){let t=GJ(e.fields);return C1(t)||(0,ha.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,n4.mapValue)(t,(r,n)=>(!("resolve"in r)||(0,ha.devAssert)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,gd.assertName)(n),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:(0,yd.toObjMap)(r.extensions),astNode:r.astNode}))}function gut(e){return Eh(e.type)&&e.defaultValue===void 0}});var A2=L(D2=>{"use strict";Object.defineProperty(D2,"__esModule",{value:!0});D2.doTypesOverlap=Sut;D2.isEqualType=HJ;D2.isTypeSubTypeOf=a4;var ps=vn();function HJ(e,t){return e===t?!0:(0,ps.isNonNullType)(e)&&(0,ps.isNonNullType)(t)||(0,ps.isListType)(e)&&(0,ps.isListType)(t)?HJ(e.ofType,t.ofType):!1}function a4(e,t,r){return t===r?!0:(0,ps.isNonNullType)(r)?(0,ps.isNonNullType)(t)?a4(e,t.ofType,r.ofType):!1:(0,ps.isNonNullType)(t)?a4(e,t.ofType,r):(0,ps.isListType)(r)?(0,ps.isListType)(t)?a4(e,t.ofType,r.ofType):!1:(0,ps.isListType)(t)?!1:(0,ps.isAbstractType)(r)&&((0,ps.isInterfaceType)(t)||(0,ps.isObjectType)(t))&&e.isSubType(r,t)}function Sut(e,t,r){return t===r?!0:(0,ps.isAbstractType)(t)?(0,ps.isAbstractType)(r)?e.getPossibleTypes(t).some(n=>e.isSubType(r,n)):e.isSubType(t,r):(0,ps.isAbstractType)(r)?e.isSubType(r,t):!1}});var Sd=L(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.GraphQLString=ea.GraphQLInt=ea.GraphQLID=ea.GraphQLFloat=ea.GraphQLBoolean=ea.GRAPHQL_MIN_INT=ea.GRAPHQL_MAX_INT=void 0;ea.isSpecifiedScalarType=vut;ea.specifiedScalarTypes=void 0;var Vu=eo(),Xge=hd(),ya=ar(),Xg=Sn(),w2=Gc(),I2=vn(),s4=2147483647;ea.GRAPHQL_MAX_INT=s4;var c4=-2147483648;ea.GRAPHQL_MIN_INT=c4;var Yge=new I2.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=k2(e);if(typeof t=="boolean")return t?1:0;let r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),typeof r!="number"||!Number.isInteger(r))throw new ya.GraphQLError(`Int cannot represent non-integer value: ${(0,Vu.inspect)(t)}`);if(r>s4||rs4||es4||te.name===t)}function k2(e){if((0,Xge.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,Xge.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var pc=L(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.GraphQLSpecifiedByDirective=Ri.GraphQLSkipDirective=Ri.GraphQLOneOfDirective=Ri.GraphQLIncludeDirective=Ri.GraphQLDirective=Ri.GraphQLDeprecatedDirective=Ri.DEFAULT_DEPRECATION_REASON=void 0;Ri.assertDirective=Aut;Ri.isDirective=aSe;Ri.isSpecifiedDirective=wut;Ri.specifiedDirectives=void 0;var iSe=Ls(),but=eo(),xut=h2(),Eut=hd(),Tut=zO(),ql=A1(),Dut=b2(),C2=vn(),l4=Sd();function aSe(e){return(0,xut.instanceOf)(e,af)}function Aut(e){if(!aSe(e))throw new Error(`Expected ${(0,but.inspect)(e)} to be a GraphQL directive.`);return e}var af=class{constructor(t){var r,n;this.name=(0,Dut.assertName)(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(r=t.isRepeatable)!==null&&r!==void 0?r:!1,this.extensions=(0,Tut.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,iSe.devAssert)(!1,`@${t.name} locations must be an Array.`);let o=(n=t.args)!==null&&n!==void 0?n:{};(0,Eut.isObjectLike)(o)&&!Array.isArray(o)||(0,iSe.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,C2.defineArguments)(o)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,C2.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};Ri.GraphQLDirective=af;var sSe=new af({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[ql.DirectiveLocation.FIELD,ql.DirectiveLocation.FRAGMENT_SPREAD,ql.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new C2.GraphQLNonNull(l4.GraphQLBoolean),description:"Included when true."}}});Ri.GraphQLIncludeDirective=sSe;var cSe=new af({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[ql.DirectiveLocation.FIELD,ql.DirectiveLocation.FRAGMENT_SPREAD,ql.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new C2.GraphQLNonNull(l4.GraphQLBoolean),description:"Skipped when true."}}});Ri.GraphQLSkipDirective=cSe;var lSe="No longer supported";Ri.DEFAULT_DEPRECATION_REASON=lSe;var uSe=new af({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[ql.DirectiveLocation.FIELD_DEFINITION,ql.DirectiveLocation.ARGUMENT_DEFINITION,ql.DirectiveLocation.INPUT_FIELD_DEFINITION,ql.DirectiveLocation.ENUM_VALUE],args:{reason:{type:l4.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:lSe}}});Ri.GraphQLDeprecatedDirective=uSe;var pSe=new af({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[ql.DirectiveLocation.SCALAR],args:{url:{type:new C2.GraphQLNonNull(l4.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});Ri.GraphQLSpecifiedByDirective=pSe;var dSe=new af({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[ql.DirectiveLocation.INPUT_OBJECT],args:{}});Ri.GraphQLOneOfDirective=dSe;var _Se=Object.freeze([sSe,cSe,uSe,pSe,dSe]);Ri.specifiedDirectives=_Se;function wut(e){return _Se.some(({name:t})=>t===e.name)}});var u4=L(ZJ=>{"use strict";Object.defineProperty(ZJ,"__esModule",{value:!0});ZJ.isIterableObject=Iut;function Iut(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}});var N2=L(WJ=>{"use strict";Object.defineProperty(WJ,"__esModule",{value:!0});WJ.astFromValue=O2;var fSe=eo(),kut=us(),Cut=u4(),Put=hd(),Ul=Sn(),P2=vn(),Out=Sd();function O2(e,t){if((0,P2.isNonNullType)(t)){let r=O2(e,t.ofType);return r?.kind===Ul.Kind.NULL?null:r}if(e===null)return{kind:Ul.Kind.NULL};if(e===void 0)return null;if((0,P2.isListType)(t)){let r=t.ofType;if((0,Cut.isIterableObject)(e)){let n=[];for(let o of e){let i=O2(o,r);i!=null&&n.push(i)}return{kind:Ul.Kind.LIST,values:n}}return O2(e,r)}if((0,P2.isInputObjectType)(t)){if(!(0,Put.isObjectLike)(e))return null;let r=[];for(let n of Object.values(t.getFields())){let o=O2(e[n.name],n.type);o&&r.push({kind:Ul.Kind.OBJECT_FIELD,name:{kind:Ul.Kind.NAME,value:n.name},value:o})}return{kind:Ul.Kind.OBJECT,fields:r}}if((0,P2.isLeafType)(t)){let r=t.serialize(e);if(r==null)return null;if(typeof r=="boolean")return{kind:Ul.Kind.BOOLEAN,value:r};if(typeof r=="number"&&Number.isFinite(r)){let n=String(r);return mSe.test(n)?{kind:Ul.Kind.INT,value:n}:{kind:Ul.Kind.FLOAT,value:n}}if(typeof r=="string")return(0,P2.isEnumType)(t)?{kind:Ul.Kind.ENUM,value:r}:t===Out.GraphQLID&&mSe.test(r)?{kind:Ul.Kind.INT,value:r}:{kind:Ul.Kind.STRING,value:r};throw new TypeError(`Cannot convert value to AST: ${(0,fSe.inspect)(r)}.`)}(0,kut.invariant)(!1,"Unexpected input type: "+(0,fSe.inspect)(t))}var mSe=/^-?(?:0|[1-9][0-9]*)$/});var Vl=L(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.introspectionTypes=ao.__TypeKind=ao.__Type=ao.__Schema=ao.__InputValue=ao.__Field=ao.__EnumValue=ao.__DirectiveLocation=ao.__Directive=ao.TypeNameMetaFieldDef=ao.TypeMetaFieldDef=ao.TypeKind=ao.SchemaMetaFieldDef=void 0;ao.isIntrospectionType=But;var Nut=eo(),Fut=us(),ta=A1(),Rut=Gc(),Lut=N2(),Ot=vn(),xo=Sd(),QJ=new Ot.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:xo.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Ot.GraphQLNonNull(new Ot.GraphQLList(new Ot.GraphQLNonNull(zl))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Ot.GraphQLNonNull(zl),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:zl,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:zl,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Ot.GraphQLNonNull(new Ot.GraphQLList(new Ot.GraphQLNonNull(XJ))),resolve:e=>e.getDirectives()}})});ao.__Schema=QJ;var XJ=new Ot.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. +}`)}function Nr(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function GO(e){return Nr(" ",e.replace(/\n/g,` + `))}function BV(e){var t;return(t=e?.some(r=>r.includes(` +`)))!==null&&t!==void 0?t:!1}});var JV=L(zV=>{"use strict";Object.defineProperty(zV,"__esModule",{value:!0});zV.valueFromASTUntyped=UV;var Jlt=bA(),sf=Sn();function UV(e,t){switch(e.kind){case sf.Kind.NULL:return null;case sf.Kind.INT:return parseInt(e.value,10);case sf.Kind.FLOAT:return parseFloat(e.value);case sf.Kind.STRING:case sf.Kind.ENUM:case sf.Kind.BOOLEAN:return e.value;case sf.Kind.LIST:return e.values.map(r=>UV(r,t));case sf.Kind.OBJECT:return(0,Jlt.keyValMap)(e.fields,r=>r.name.value,r=>UV(r.value,t));case sf.Kind.VARIABLE:return t?.[e.name.value]}}});var EA=L(ZO=>{"use strict";Object.defineProperty(ZO,"__esModule",{value:!0});ZO.assertEnumValueName=Vlt;ZO.assertName=Bge;var Mge=Ls(),HO=ar(),jge=dA();function Bge(e){if(e!=null||(0,Mge.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,Mge.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new HO.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.GraphQLUnionType=zt.GraphQLScalarType=zt.GraphQLObjectType=zt.GraphQLNonNull=zt.GraphQLList=zt.GraphQLInterfaceType=zt.GraphQLInputObjectType=zt.GraphQLEnumType=void 0;zt.argsToArgsConfig=Yge;zt.assertAbstractType=put;zt.assertCompositeType=uut;zt.assertEnumType=nut;zt.assertInputObjectType=out;zt.assertInputType=sut;zt.assertInterfaceType=tut;zt.assertLeafType=lut;zt.assertListType=iut;zt.assertNamedType=mut;zt.assertNonNullType=aut;zt.assertNullableType=_ut;zt.assertObjectType=eut;zt.assertOutputType=cut;zt.assertScalarType=Ylt;zt.assertType=Xlt;zt.assertUnionType=rut;zt.assertWrappingType=dut;zt.defineArguments=Qge;zt.getNamedType=hut;zt.getNullableType=fut;zt.isAbstractType=Gge;zt.isCompositeType=Kge;zt.isEnumType=tS;zt.isInputObjectType=DA;zt.isInputType=VV;zt.isInterfaceType=Yg;zt.isLeafType=Vge;zt.isListType=s4;zt.isNamedType=Hge;zt.isNonNullType=Ah;zt.isNullableType=GV;zt.isObjectType=F1;zt.isOutputType=KV;zt.isRequiredArgument=yut;zt.isRequiredInputField=vut;zt.isScalarType=Xg;zt.isType=a4;zt.isUnionType=eS;zt.isWrappingType=AA;zt.resolveObjMapThunk=ZV;zt.resolveReadonlyArrayThunk=HV;var ha=Ls(),Klt=bh(),qge=Fge(),Po=eo(),Dh=gA(),Glt=yd(),Hlt=xh(),Jge=bA(),i4=zO(),Zlt=Eh(),gd=VO(),TA=ar(),Wlt=Sn(),Uge=Gc(),Qlt=JV(),Sd=EA();function a4(e){return Xg(e)||F1(e)||Yg(e)||eS(e)||tS(e)||DA(e)||s4(e)||Ah(e)}function Xlt(e){if(!a4(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL type.`);return e}function Xg(e){return(0,Dh.instanceOf)(e,YO)}function Ylt(e){if(!Xg(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Scalar type.`);return e}function F1(e){return(0,Dh.instanceOf)(e,e4)}function eut(e){if(!F1(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Object type.`);return e}function Yg(e){return(0,Dh.instanceOf)(e,t4)}function tut(e){if(!Yg(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Interface type.`);return e}function eS(e){return(0,Dh.instanceOf)(e,r4)}function rut(e){if(!eS(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Union type.`);return e}function tS(e){return(0,Dh.instanceOf)(e,n4)}function nut(e){if(!tS(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Enum type.`);return e}function DA(e){return(0,Dh.instanceOf)(e,o4)}function out(e){if(!DA(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Input Object type.`);return e}function s4(e){return(0,Dh.instanceOf)(e,QO)}function iut(e){if(!s4(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL List type.`);return e}function Ah(e){return(0,Dh.instanceOf)(e,XO)}function aut(e){if(!Ah(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function VV(e){return Xg(e)||tS(e)||DA(e)||AA(e)&&VV(e.ofType)}function sut(e){if(!VV(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL input type.`);return e}function KV(e){return Xg(e)||F1(e)||Yg(e)||eS(e)||tS(e)||AA(e)&&KV(e.ofType)}function cut(e){if(!KV(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL output type.`);return e}function Vge(e){return Xg(e)||tS(e)}function lut(e){if(!Vge(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL leaf type.`);return e}function Kge(e){return F1(e)||Yg(e)||eS(e)}function uut(e){if(!Kge(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL composite type.`);return e}function Gge(e){return Yg(e)||eS(e)}function put(e){if(!Gge(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL abstract type.`);return e}var QO=class{constructor(t){a4(t)||(0,ha.devAssert)(!1,`Expected ${(0,Po.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};zt.GraphQLList=QO;var XO=class{constructor(t){GV(t)||(0,ha.devAssert)(!1,`Expected ${(0,Po.inspect)(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};zt.GraphQLNonNull=XO;function AA(e){return s4(e)||Ah(e)}function dut(e){if(!AA(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL wrapping type.`);return e}function GV(e){return a4(e)&&!Ah(e)}function _ut(e){if(!GV(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL nullable type.`);return e}function fut(e){if(e)return Ah(e)?e.ofType:e}function Hge(e){return Xg(e)||F1(e)||Yg(e)||eS(e)||tS(e)||DA(e)}function mut(e){if(!Hge(e))throw new Error(`Expected ${(0,Po.inspect)(e)} to be a GraphQL named type.`);return e}function hut(e){if(e){let t=e;for(;AA(t);)t=t.ofType;return t}}function HV(e){return typeof e=="function"?e():e}function ZV(e){return typeof e=="function"?e():e}var YO=class{constructor(t){var r,n,o,i;let a=(r=t.parseValue)!==null&&r!==void 0?r:qge.identityFunc;this.name=(0,Sd.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(n=t.serialize)!==null&&n!==void 0?n:qge.identityFunc,this.parseValue=a,this.parseLiteral=(o=t.parseLiteral)!==null&&o!==void 0?o:(s,c)=>a((0,Qlt.valueFromASTUntyped)(s,c)),this.extensions=(0,gd.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(i=t.extensionASTNodes)!==null&&i!==void 0?i:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,ha.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,Po.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,ha.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||(0,ha.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};zt.GraphQLScalarType=YO;var e4=class{constructor(t){var r;this.name=(0,Sd.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,gd.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=()=>Wge(t),this._interfaces=()=>Zge(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,ha.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,Po.inspect)(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Xge(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};zt.GraphQLObjectType=e4;function Zge(e){var t;let r=HV((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(r)||(0,ha.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),r}function Wge(e){let t=ZV(e.fields);return N1(t)||(0,ha.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,i4.mapValue)(t,(r,n)=>{var o;N1(r)||(0,ha.devAssert)(!1,`${e.name}.${n} field config must be an object.`),r.resolve==null||typeof r.resolve=="function"||(0,ha.devAssert)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,Po.inspect)(r.resolve)}.`);let i=(o=r.args)!==null&&o!==void 0?o:{};return N1(i)||(0,ha.devAssert)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,Sd.assertName)(n),description:r.description,type:r.type,args:Qge(i),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:(0,gd.toObjMap)(r.extensions),astNode:r.astNode}})}function Qge(e){return Object.entries(e).map(([t,r])=>({name:(0,Sd.assertName)(t),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:(0,gd.toObjMap)(r.extensions),astNode:r.astNode}))}function N1(e){return(0,Glt.isObjectLike)(e)&&!Array.isArray(e)}function Xge(e){return(0,i4.mapValue)(e,t=>({description:t.description,type:t.type,args:Yge(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function Yge(e){return(0,Jge.keyValMap)(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function yut(e){return Ah(e.type)&&e.defaultValue===void 0}var t4=class{constructor(t){var r;this.name=(0,Sd.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,gd.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=Wge.bind(void 0,t),this._interfaces=Zge.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,ha.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Po.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Xge(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};zt.GraphQLInterfaceType=t4;var r4=class{constructor(t){var r;this.name=(0,Sd.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,gd.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._types=gut.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,ha.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Po.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};zt.GraphQLUnionType=r4;function gut(e){let t=HV(e.types);return Array.isArray(t)||(0,ha.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var n4=class{constructor(t){var r;this.name=(0,Sd.assertName)(t.name),this.description=t.description,this.extensions=(0,gd.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._values=typeof t.values=="function"?t.values:zge(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=zge(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,Hlt.keyMap)(this.getValues(),r=>r.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(n=>[n.value,n])));let r=this._valueLookup.get(t);if(r===void 0)throw new TA.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,Po.inspect)(t)}`);return r.name}parseValue(t){if(typeof t!="string"){let n=(0,Po.inspect)(t);throw new TA.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${n}.`+WO(this,n))}let r=this.getValue(t);if(r==null)throw new TA.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+WO(this,t));return r.value}parseLiteral(t,r){if(t.kind!==Wlt.Kind.ENUM){let o=(0,Uge.print)(t);throw new TA.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${o}.`+WO(this,o),{nodes:t})}let n=this.getValue(t.value);if(n==null){let o=(0,Uge.print)(t);throw new TA.GraphQLError(`Value "${o}" does not exist in "${this.name}" enum.`+WO(this,o),{nodes:t})}return n.value}toConfig(){let t=(0,Jge.keyValMap)(this.getValues(),r=>r.name,r=>({description:r.description,value:r.value,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};zt.GraphQLEnumType=n4;function WO(e,t){let r=e.getValues().map(o=>o.name),n=(0,Zlt.suggestionList)(t,r);return(0,Klt.didYouMean)("the enum value",n)}function zge(e,t){return N1(t)||(0,ha.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([r,n])=>(N1(n)||(0,ha.devAssert)(!1,`${e}.${r} must refer to an object with a "value" key representing an internal value but got: ${(0,Po.inspect)(n)}.`),{name:(0,Sd.assertEnumValueName)(r),description:n.description,value:n.value!==void 0?n.value:r,deprecationReason:n.deprecationReason,extensions:(0,gd.toObjMap)(n.extensions),astNode:n.astNode}))}var o4=class{constructor(t){var r,n;this.name=(0,Sd.assertName)(t.name),this.description=t.description,this.extensions=(0,gd.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this.isOneOf=(n=t.isOneOf)!==null&&n!==void 0?n:!1,this._fields=Sut.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=(0,i4.mapValue)(this.getFields(),r=>({description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};zt.GraphQLInputObjectType=o4;function Sut(e){let t=ZV(e.fields);return N1(t)||(0,ha.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,i4.mapValue)(t,(r,n)=>(!("resolve"in r)||(0,ha.devAssert)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,Sd.assertName)(n),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:(0,gd.toObjMap)(r.extensions),astNode:r.astNode}))}function vut(e){return Ah(e.type)&&e.defaultValue===void 0}});var wA=L(IA=>{"use strict";Object.defineProperty(IA,"__esModule",{value:!0});IA.doTypesOverlap=but;IA.isEqualType=WV;IA.isTypeSubTypeOf=c4;var ps=vn();function WV(e,t){return e===t?!0:(0,ps.isNonNullType)(e)&&(0,ps.isNonNullType)(t)||(0,ps.isListType)(e)&&(0,ps.isListType)(t)?WV(e.ofType,t.ofType):!1}function c4(e,t,r){return t===r?!0:(0,ps.isNonNullType)(r)?(0,ps.isNonNullType)(t)?c4(e,t.ofType,r.ofType):!1:(0,ps.isNonNullType)(t)?c4(e,t.ofType,r):(0,ps.isListType)(r)?(0,ps.isListType)(t)?c4(e,t.ofType,r.ofType):!1:(0,ps.isListType)(t)?!1:(0,ps.isAbstractType)(r)&&((0,ps.isInterfaceType)(t)||(0,ps.isObjectType)(t))&&e.isSubType(r,t)}function but(e,t,r){return t===r?!0:(0,ps.isAbstractType)(t)?(0,ps.isAbstractType)(r)?e.getPossibleTypes(t).some(n=>e.isSubType(r,n)):e.isSubType(t,r):(0,ps.isAbstractType)(r)?e.isSubType(r,t):!1}});var vd=L(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.GraphQLString=ea.GraphQLInt=ea.GraphQLID=ea.GraphQLFloat=ea.GraphQLBoolean=ea.GRAPHQL_MIN_INT=ea.GRAPHQL_MAX_INT=void 0;ea.isSpecifiedScalarType=xut;ea.specifiedScalarTypes=void 0;var Vu=eo(),eSe=yd(),ya=ar(),rS=Sn(),kA=Gc(),CA=vn(),l4=2147483647;ea.GRAPHQL_MAX_INT=l4;var u4=-2147483648;ea.GRAPHQL_MIN_INT=u4;var tSe=new CA.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=PA(e);if(typeof t=="boolean")return t?1:0;let r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),typeof r!="number"||!Number.isInteger(r))throw new ya.GraphQLError(`Int cannot represent non-integer value: ${(0,Vu.inspect)(t)}`);if(r>l4||rl4||el4||te.name===t)}function PA(e){if((0,eSe.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,eSe.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var pc=L(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.GraphQLSpecifiedByDirective=Ri.GraphQLSkipDirective=Ri.GraphQLOneOfDirective=Ri.GraphQLIncludeDirective=Ri.GraphQLDirective=Ri.GraphQLDeprecatedDirective=Ri.DEFAULT_DEPRECATION_REASON=void 0;Ri.assertDirective=wut;Ri.isDirective=cSe;Ri.isSpecifiedDirective=kut;Ri.specifiedDirectives=void 0;var sSe=Ls(),Eut=eo(),Tut=gA(),Dut=yd(),Aut=VO(),Ul=k1(),Iut=EA(),OA=vn(),p4=vd();function cSe(e){return(0,Tut.instanceOf)(e,cf)}function wut(e){if(!cSe(e))throw new Error(`Expected ${(0,Eut.inspect)(e)} to be a GraphQL directive.`);return e}var cf=class{constructor(t){var r,n;this.name=(0,Iut.assertName)(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(r=t.isRepeatable)!==null&&r!==void 0?r:!1,this.extensions=(0,Aut.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,sSe.devAssert)(!1,`@${t.name} locations must be an Array.`);let o=(n=t.args)!==null&&n!==void 0?n:{};(0,Dut.isObjectLike)(o)&&!Array.isArray(o)||(0,sSe.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,OA.defineArguments)(o)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,OA.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};Ri.GraphQLDirective=cf;var lSe=new cf({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ul.DirectiveLocation.FIELD,Ul.DirectiveLocation.FRAGMENT_SPREAD,Ul.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new OA.GraphQLNonNull(p4.GraphQLBoolean),description:"Included when true."}}});Ri.GraphQLIncludeDirective=lSe;var uSe=new cf({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ul.DirectiveLocation.FIELD,Ul.DirectiveLocation.FRAGMENT_SPREAD,Ul.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new OA.GraphQLNonNull(p4.GraphQLBoolean),description:"Skipped when true."}}});Ri.GraphQLSkipDirective=uSe;var pSe="No longer supported";Ri.DEFAULT_DEPRECATION_REASON=pSe;var dSe=new cf({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ul.DirectiveLocation.FIELD_DEFINITION,Ul.DirectiveLocation.ARGUMENT_DEFINITION,Ul.DirectiveLocation.INPUT_FIELD_DEFINITION,Ul.DirectiveLocation.ENUM_VALUE],args:{reason:{type:p4.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:pSe}}});Ri.GraphQLDeprecatedDirective=dSe;var _Se=new cf({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ul.DirectiveLocation.SCALAR],args:{url:{type:new OA.GraphQLNonNull(p4.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});Ri.GraphQLSpecifiedByDirective=_Se;var fSe=new cf({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Ul.DirectiveLocation.INPUT_OBJECT],args:{}});Ri.GraphQLOneOfDirective=fSe;var mSe=Object.freeze([lSe,uSe,dSe,_Se,fSe]);Ri.specifiedDirectives=mSe;function kut(e){return mSe.some(({name:t})=>t===e.name)}});var d4=L(QV=>{"use strict";Object.defineProperty(QV,"__esModule",{value:!0});QV.isIterableObject=Cut;function Cut(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}});var RA=L(XV=>{"use strict";Object.defineProperty(XV,"__esModule",{value:!0});XV.astFromValue=FA;var hSe=eo(),Put=us(),Out=d4(),Nut=yd(),zl=Sn(),NA=vn(),Fut=vd();function FA(e,t){if((0,NA.isNonNullType)(t)){let r=FA(e,t.ofType);return r?.kind===zl.Kind.NULL?null:r}if(e===null)return{kind:zl.Kind.NULL};if(e===void 0)return null;if((0,NA.isListType)(t)){let r=t.ofType;if((0,Out.isIterableObject)(e)){let n=[];for(let o of e){let i=FA(o,r);i!=null&&n.push(i)}return{kind:zl.Kind.LIST,values:n}}return FA(e,r)}if((0,NA.isInputObjectType)(t)){if(!(0,Nut.isObjectLike)(e))return null;let r=[];for(let n of Object.values(t.getFields())){let o=FA(e[n.name],n.type);o&&r.push({kind:zl.Kind.OBJECT_FIELD,name:{kind:zl.Kind.NAME,value:n.name},value:o})}return{kind:zl.Kind.OBJECT,fields:r}}if((0,NA.isLeafType)(t)){let r=t.serialize(e);if(r==null)return null;if(typeof r=="boolean")return{kind:zl.Kind.BOOLEAN,value:r};if(typeof r=="number"&&Number.isFinite(r)){let n=String(r);return ySe.test(n)?{kind:zl.Kind.INT,value:n}:{kind:zl.Kind.FLOAT,value:n}}if(typeof r=="string")return(0,NA.isEnumType)(t)?{kind:zl.Kind.ENUM,value:r}:t===Fut.GraphQLID&&ySe.test(r)?{kind:zl.Kind.INT,value:r}:{kind:zl.Kind.STRING,value:r};throw new TypeError(`Cannot convert value to AST: ${(0,hSe.inspect)(r)}.`)}(0,Put.invariant)(!1,"Unexpected input type: "+(0,hSe.inspect)(t))}var ySe=/^-?(?:0|[1-9][0-9]*)$/});var Vl=L(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.introspectionTypes=ao.__TypeKind=ao.__Type=ao.__Schema=ao.__InputValue=ao.__Field=ao.__EnumValue=ao.__DirectiveLocation=ao.__Directive=ao.TypeNameMetaFieldDef=ao.TypeMetaFieldDef=ao.TypeKind=ao.SchemaMetaFieldDef=void 0;ao.isIntrospectionType=Uut;var Rut=eo(),Lut=us(),ta=k1(),$ut=Gc(),Mut=RA(),Ot=vn(),xo=vd(),YV=new Ot.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:xo.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Ot.GraphQLNonNull(new Ot.GraphQLList(new Ot.GraphQLNonNull(Jl))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Ot.GraphQLNonNull(Jl),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Jl,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Jl,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Ot.GraphQLNonNull(new Ot.GraphQLList(new Ot.GraphQLNonNull(eK))),resolve:e=>e.getDirectives()}})});ao.__Schema=YV;var eK=new Ot.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. -In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new Ot.GraphQLNonNull(xo.GraphQLString),resolve:e=>e.name},description:{type:xo.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new Ot.GraphQLNonNull(xo.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new Ot.GraphQLNonNull(new Ot.GraphQLList(new Ot.GraphQLNonNull(YJ))),resolve:e=>e.locations},args:{type:new Ot.GraphQLNonNull(new Ot.GraphQLList(new Ot.GraphQLNonNull(F2))),args:{includeDeprecated:{type:xo.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}}})});ao.__Directive=XJ;var YJ=new Ot.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:ta.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:ta.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:ta.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:ta.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:ta.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:ta.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:ta.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:ta.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:ta.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:ta.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:ta.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:ta.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:ta.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:ta.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:ta.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:ta.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:ta.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:ta.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:ta.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});ao.__DirectiveLocation=YJ;var zl=new Ot.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Ot.GraphQLNonNull(rK),resolve(e){if((0,Ot.isScalarType)(e))return ra.SCALAR;if((0,Ot.isObjectType)(e))return ra.OBJECT;if((0,Ot.isInterfaceType)(e))return ra.INTERFACE;if((0,Ot.isUnionType)(e))return ra.UNION;if((0,Ot.isEnumType)(e))return ra.ENUM;if((0,Ot.isInputObjectType)(e))return ra.INPUT_OBJECT;if((0,Ot.isListType)(e))return ra.LIST;if((0,Ot.isNonNullType)(e))return ra.NON_NULL;(0,Fut.invariant)(!1,`Unexpected type: "${(0,Nut.inspect)(e)}".`)}},name:{type:xo.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:xo.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:xo.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Ot.GraphQLList(new Ot.GraphQLNonNull(eK)),args:{includeDeprecated:{type:xo.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ot.isObjectType)(e)||(0,Ot.isInterfaceType)(e)){let r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},interfaces:{type:new Ot.GraphQLList(new Ot.GraphQLNonNull(zl)),resolve(e){if((0,Ot.isObjectType)(e)||(0,Ot.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new Ot.GraphQLList(new Ot.GraphQLNonNull(zl)),resolve(e,t,r,{schema:n}){if((0,Ot.isAbstractType)(e))return n.getPossibleTypes(e)}},enumValues:{type:new Ot.GraphQLList(new Ot.GraphQLNonNull(tK)),args:{includeDeprecated:{type:xo.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ot.isEnumType)(e)){let r=e.getValues();return t?r:r.filter(n=>n.deprecationReason==null)}}},inputFields:{type:new Ot.GraphQLList(new Ot.GraphQLNonNull(F2)),args:{includeDeprecated:{type:xo.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ot.isInputObjectType)(e)){let r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},ofType:{type:zl,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:xo.GraphQLBoolean,resolve:e=>{if((0,Ot.isInputObjectType)(e))return e.isOneOf}}})});ao.__Type=zl;var eK=new Ot.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Ot.GraphQLNonNull(xo.GraphQLString),resolve:e=>e.name},description:{type:xo.GraphQLString,resolve:e=>e.description},args:{type:new Ot.GraphQLNonNull(new Ot.GraphQLList(new Ot.GraphQLNonNull(F2))),args:{includeDeprecated:{type:xo.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}},type:{type:new Ot.GraphQLNonNull(zl),resolve:e=>e.type},isDeprecated:{type:new Ot.GraphQLNonNull(xo.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:xo.GraphQLString,resolve:e=>e.deprecationReason}})});ao.__Field=eK;var F2=new Ot.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Ot.GraphQLNonNull(xo.GraphQLString),resolve:e=>e.name},description:{type:xo.GraphQLString,resolve:e=>e.description},type:{type:new Ot.GraphQLNonNull(zl),resolve:e=>e.type},defaultValue:{type:xo.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:r}=e,n=(0,Lut.astFromValue)(r,t);return n?(0,Rut.print)(n):null}},isDeprecated:{type:new Ot.GraphQLNonNull(xo.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:xo.GraphQLString,resolve:e=>e.deprecationReason}})});ao.__InputValue=F2;var tK=new Ot.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Ot.GraphQLNonNull(xo.GraphQLString),resolve:e=>e.name},description:{type:xo.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new Ot.GraphQLNonNull(xo.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:xo.GraphQLString,resolve:e=>e.deprecationReason}})});ao.__EnumValue=tK;var ra;ao.TypeKind=ra;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(ra||(ao.TypeKind=ra={}));var rK=new Ot.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ra.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ra.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ra.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ra.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ra.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ra.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ra.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ra.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});ao.__TypeKind=rK;var $ut={name:"__schema",type:new Ot.GraphQLNonNull(QJ),description:"Access the current type schema of this server.",args:[],resolve:(e,t,r,{schema:n})=>n,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};ao.SchemaMetaFieldDef=$ut;var Mut={name:"__type",type:zl,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Ot.GraphQLNonNull(xo.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},r,{schema:n})=>n.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};ao.TypeMetaFieldDef=Mut;var jut={name:"__typename",type:new Ot.GraphQLNonNull(xo.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,r,{parentType:n})=>n.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};ao.TypeNameMetaFieldDef=jut;var hSe=Object.freeze([QJ,XJ,YJ,zl,eK,F2,tK,rK]);ao.introspectionTypes=hSe;function But(e){return hSe.some(({name:t})=>e.name===t)}});var Yg=L(O1=>{"use strict";Object.defineProperty(O1,"__esModule",{value:!0});O1.GraphQLSchema=void 0;O1.assertSchema=Jut;O1.isSchema=gSe;var p4=Ls(),oK=eo(),qut=h2(),Uut=hd(),zut=zO(),nK=Bl(),Ju=vn(),ySe=pc(),Vut=Vl();function gSe(e){return(0,qut.instanceOf)(e,d4)}function Jut(e){if(!gSe(e))throw new Error(`Expected ${(0,oK.inspect)(e)} to be a GraphQL schema.`);return e}var d4=class{constructor(t){var r,n;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,Uut.isObjectLike)(t)||(0,p4.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,p4.devAssert)(!1,`"types" must be Array if provided but got: ${(0,oK.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,p4.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,oK.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,zut.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(n=t.directives)!==null&&n!==void 0?n:ySe.specifiedDirectives;let o=new Set(t.types);if(t.types!=null)for(let i of t.types)o.delete(i),Ku(i,o);this._queryType!=null&&Ku(this._queryType,o),this._mutationType!=null&&Ku(this._mutationType,o),this._subscriptionType!=null&&Ku(this._subscriptionType,o);for(let i of this._directives)if((0,ySe.isDirective)(i))for(let a of i.args)Ku(a.type,o);Ku(Vut.__Schema,o),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let i of o){if(i==null)continue;let a=i.name;if(a||(0,p4.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[a]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${a}".`);if(this._typeMap[a]=i,(0,Ju.isInterfaceType)(i)){for(let s of i.getInterfaces())if((0,Ju.isInterfaceType)(s)){let c=this._implementationsMap[s.name];c===void 0&&(c=this._implementationsMap[s.name]={objects:[],interfaces:[]}),c.interfaces.push(i)}}else if((0,Ju.isObjectType)(i)){for(let s of i.getInterfaces())if((0,Ju.isInterfaceType)(s)){let c=this._implementationsMap[s.name];c===void 0&&(c=this._implementationsMap[s.name]={objects:[],interfaces:[]}),c.objects.push(i)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case nK.OperationTypeNode.QUERY:return this.getQueryType();case nK.OperationTypeNode.MUTATION:return this.getMutationType();case nK.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,Ju.isUnionType)(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let r=this._implementationsMap[t.name];return r??{objects:[],interfaces:[]}}isSubType(t,r){let n=this._subTypeMap[t.name];if(n===void 0){if(n=Object.create(null),(0,Ju.isUnionType)(t))for(let o of t.getTypes())n[o.name]=!0;else{let o=this.getImplementations(t);for(let i of o.objects)n[i.name]=!0;for(let i of o.interfaces)n[i.name]=!0}this._subTypeMap[t.name]=n}return n[r.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(r=>r.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};O1.GraphQLSchema=d4;function Ku(e,t){let r=(0,Ju.getNamedType)(e);if(!t.has(r)){if(t.add(r),(0,Ju.isUnionType)(r))for(let n of r.getTypes())Ku(n,t);else if((0,Ju.isObjectType)(r)||(0,Ju.isInterfaceType)(r)){for(let n of r.getInterfaces())Ku(n,t);for(let n of Object.values(r.getFields())){Ku(n.type,t);for(let o of n.args)Ku(o.type,t)}}else if((0,Ju.isInputObjectType)(r))for(let n of Object.values(r.getFields()))Ku(n.type,t)}return t}});var L2=L(_4=>{"use strict";Object.defineProperty(_4,"__esModule",{value:!0});_4.assertValidSchema=Zut;_4.validateSchema=TSe;var ds=eo(),Kut=ar(),iK=Bl(),SSe=A2(),gi=vn(),ESe=pc(),Gut=Vl(),Hut=Yg();function TSe(e){if((0,Hut.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new sK(e);Wut(t),Qut(t),Xut(t);let r=t.getErrors();return e.__validationErrors=r,r}function Zut(e){let t=TSe(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(` +In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new Ot.GraphQLNonNull(xo.GraphQLString),resolve:e=>e.name},description:{type:xo.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new Ot.GraphQLNonNull(xo.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new Ot.GraphQLNonNull(new Ot.GraphQLList(new Ot.GraphQLNonNull(tK))),resolve:e=>e.locations},args:{type:new Ot.GraphQLNonNull(new Ot.GraphQLList(new Ot.GraphQLNonNull(LA))),args:{includeDeprecated:{type:xo.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}}})});ao.__Directive=eK;var tK=new Ot.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:ta.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:ta.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:ta.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:ta.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:ta.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:ta.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:ta.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:ta.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:ta.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:ta.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:ta.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:ta.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:ta.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:ta.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:ta.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:ta.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:ta.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:ta.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:ta.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});ao.__DirectiveLocation=tK;var Jl=new Ot.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Ot.GraphQLNonNull(oK),resolve(e){if((0,Ot.isScalarType)(e))return ra.SCALAR;if((0,Ot.isObjectType)(e))return ra.OBJECT;if((0,Ot.isInterfaceType)(e))return ra.INTERFACE;if((0,Ot.isUnionType)(e))return ra.UNION;if((0,Ot.isEnumType)(e))return ra.ENUM;if((0,Ot.isInputObjectType)(e))return ra.INPUT_OBJECT;if((0,Ot.isListType)(e))return ra.LIST;if((0,Ot.isNonNullType)(e))return ra.NON_NULL;(0,Lut.invariant)(!1,`Unexpected type: "${(0,Rut.inspect)(e)}".`)}},name:{type:xo.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:xo.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:xo.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Ot.GraphQLList(new Ot.GraphQLNonNull(rK)),args:{includeDeprecated:{type:xo.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ot.isObjectType)(e)||(0,Ot.isInterfaceType)(e)){let r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},interfaces:{type:new Ot.GraphQLList(new Ot.GraphQLNonNull(Jl)),resolve(e){if((0,Ot.isObjectType)(e)||(0,Ot.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new Ot.GraphQLList(new Ot.GraphQLNonNull(Jl)),resolve(e,t,r,{schema:n}){if((0,Ot.isAbstractType)(e))return n.getPossibleTypes(e)}},enumValues:{type:new Ot.GraphQLList(new Ot.GraphQLNonNull(nK)),args:{includeDeprecated:{type:xo.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ot.isEnumType)(e)){let r=e.getValues();return t?r:r.filter(n=>n.deprecationReason==null)}}},inputFields:{type:new Ot.GraphQLList(new Ot.GraphQLNonNull(LA)),args:{includeDeprecated:{type:xo.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ot.isInputObjectType)(e)){let r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},ofType:{type:Jl,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:xo.GraphQLBoolean,resolve:e=>{if((0,Ot.isInputObjectType)(e))return e.isOneOf}}})});ao.__Type=Jl;var rK=new Ot.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Ot.GraphQLNonNull(xo.GraphQLString),resolve:e=>e.name},description:{type:xo.GraphQLString,resolve:e=>e.description},args:{type:new Ot.GraphQLNonNull(new Ot.GraphQLList(new Ot.GraphQLNonNull(LA))),args:{includeDeprecated:{type:xo.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}},type:{type:new Ot.GraphQLNonNull(Jl),resolve:e=>e.type},isDeprecated:{type:new Ot.GraphQLNonNull(xo.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:xo.GraphQLString,resolve:e=>e.deprecationReason}})});ao.__Field=rK;var LA=new Ot.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Ot.GraphQLNonNull(xo.GraphQLString),resolve:e=>e.name},description:{type:xo.GraphQLString,resolve:e=>e.description},type:{type:new Ot.GraphQLNonNull(Jl),resolve:e=>e.type},defaultValue:{type:xo.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:r}=e,n=(0,Mut.astFromValue)(r,t);return n?(0,$ut.print)(n):null}},isDeprecated:{type:new Ot.GraphQLNonNull(xo.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:xo.GraphQLString,resolve:e=>e.deprecationReason}})});ao.__InputValue=LA;var nK=new Ot.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Ot.GraphQLNonNull(xo.GraphQLString),resolve:e=>e.name},description:{type:xo.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new Ot.GraphQLNonNull(xo.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:xo.GraphQLString,resolve:e=>e.deprecationReason}})});ao.__EnumValue=nK;var ra;ao.TypeKind=ra;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(ra||(ao.TypeKind=ra={}));var oK=new Ot.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ra.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ra.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ra.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ra.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ra.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ra.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ra.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ra.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});ao.__TypeKind=oK;var jut={name:"__schema",type:new Ot.GraphQLNonNull(YV),description:"Access the current type schema of this server.",args:[],resolve:(e,t,r,{schema:n})=>n,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};ao.SchemaMetaFieldDef=jut;var But={name:"__type",type:Jl,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Ot.GraphQLNonNull(xo.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},r,{schema:n})=>n.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};ao.TypeMetaFieldDef=But;var qut={name:"__typename",type:new Ot.GraphQLNonNull(xo.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,r,{parentType:n})=>n.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};ao.TypeNameMetaFieldDef=qut;var gSe=Object.freeze([YV,eK,tK,Jl,rK,LA,nK,oK]);ao.introspectionTypes=gSe;function Uut(e){return gSe.some(({name:t})=>e.name===t)}});var nS=L(R1=>{"use strict";Object.defineProperty(R1,"__esModule",{value:!0});R1.GraphQLSchema=void 0;R1.assertSchema=Gut;R1.isSchema=vSe;var _4=Ls(),aK=eo(),zut=gA(),Jut=yd(),Vut=VO(),iK=ql(),Ku=vn(),SSe=pc(),Kut=Vl();function vSe(e){return(0,zut.instanceOf)(e,f4)}function Gut(e){if(!vSe(e))throw new Error(`Expected ${(0,aK.inspect)(e)} to be a GraphQL schema.`);return e}var f4=class{constructor(t){var r,n;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,Jut.isObjectLike)(t)||(0,_4.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,_4.devAssert)(!1,`"types" must be Array if provided but got: ${(0,aK.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,_4.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,aK.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,Vut.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(n=t.directives)!==null&&n!==void 0?n:SSe.specifiedDirectives;let o=new Set(t.types);if(t.types!=null)for(let i of t.types)o.delete(i),Gu(i,o);this._queryType!=null&&Gu(this._queryType,o),this._mutationType!=null&&Gu(this._mutationType,o),this._subscriptionType!=null&&Gu(this._subscriptionType,o);for(let i of this._directives)if((0,SSe.isDirective)(i))for(let a of i.args)Gu(a.type,o);Gu(Kut.__Schema,o),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let i of o){if(i==null)continue;let a=i.name;if(a||(0,_4.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[a]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${a}".`);if(this._typeMap[a]=i,(0,Ku.isInterfaceType)(i)){for(let s of i.getInterfaces())if((0,Ku.isInterfaceType)(s)){let c=this._implementationsMap[s.name];c===void 0&&(c=this._implementationsMap[s.name]={objects:[],interfaces:[]}),c.interfaces.push(i)}}else if((0,Ku.isObjectType)(i)){for(let s of i.getInterfaces())if((0,Ku.isInterfaceType)(s)){let c=this._implementationsMap[s.name];c===void 0&&(c=this._implementationsMap[s.name]={objects:[],interfaces:[]}),c.objects.push(i)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case iK.OperationTypeNode.QUERY:return this.getQueryType();case iK.OperationTypeNode.MUTATION:return this.getMutationType();case iK.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,Ku.isUnionType)(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let r=this._implementationsMap[t.name];return r??{objects:[],interfaces:[]}}isSubType(t,r){let n=this._subTypeMap[t.name];if(n===void 0){if(n=Object.create(null),(0,Ku.isUnionType)(t))for(let o of t.getTypes())n[o.name]=!0;else{let o=this.getImplementations(t);for(let i of o.objects)n[i.name]=!0;for(let i of o.interfaces)n[i.name]=!0}this._subTypeMap[t.name]=n}return n[r.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(r=>r.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};R1.GraphQLSchema=f4;function Gu(e,t){let r=(0,Ku.getNamedType)(e);if(!t.has(r)){if(t.add(r),(0,Ku.isUnionType)(r))for(let n of r.getTypes())Gu(n,t);else if((0,Ku.isObjectType)(r)||(0,Ku.isInterfaceType)(r)){for(let n of r.getInterfaces())Gu(n,t);for(let n of Object.values(r.getFields())){Gu(n.type,t);for(let o of n.args)Gu(o.type,t)}}else if((0,Ku.isInputObjectType)(r))for(let n of Object.values(r.getFields()))Gu(n.type,t)}return t}});var MA=L(m4=>{"use strict";Object.defineProperty(m4,"__esModule",{value:!0});m4.assertValidSchema=Qut;m4.validateSchema=ASe;var ds=eo(),Hut=ar(),sK=ql(),bSe=wA(),gi=vn(),DSe=pc(),Zut=Vl(),Wut=nS();function ASe(e){if((0,Wut.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new lK(e);Xut(t),Yut(t),ept(t);let r=t.getErrors();return e.__validationErrors=r,r}function Qut(e){let t=ASe(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(` -`))}var sK=class{constructor(t){this._errors=[],this.schema=t}reportError(t,r){let n=Array.isArray(r)?r.filter(Boolean):r;this._errors.push(new Kut.GraphQLError(t,{nodes:n}))}getErrors(){return this._errors}};function Wut(e){let t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,gi.isObjectType)(r)){var n;e.reportError(`Query root type must be Object type, it cannot be ${(0,ds.inspect)(r)}.`,(n=aK(t,iK.OperationTypeNode.QUERY))!==null&&n!==void 0?n:r.astNode)}let o=t.getMutationType();if(o&&!(0,gi.isObjectType)(o)){var i;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,ds.inspect)(o)}.`,(i=aK(t,iK.OperationTypeNode.MUTATION))!==null&&i!==void 0?i:o.astNode)}let a=t.getSubscriptionType();if(a&&!(0,gi.isObjectType)(a)){var s;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,ds.inspect)(a)}.`,(s=aK(t,iK.OperationTypeNode.SUBSCRIPTION))!==null&&s!==void 0?s:a.astNode)}}function aK(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap(n=>{var o;return(o=n?.operationTypes)!==null&&o!==void 0?o:[]}).find(n=>n.operation===t))===null||r===void 0?void 0:r.type}function Qut(e){for(let r of e.schema.getDirectives()){if(!(0,ESe.isDirective)(r)){e.reportError(`Expected directive but got: ${(0,ds.inspect)(r)}.`,r?.astNode);continue}eS(e,r),r.locations.length===0&&e.reportError(`Directive @${r.name} must include 1 or more locations.`,r.astNode);for(let n of r.args)if(eS(e,n),(0,gi.isInputType)(n.type)||e.reportError(`The type of @${r.name}(${n.name}:) must be Input Type but got: ${(0,ds.inspect)(n.type)}.`,n.astNode),(0,gi.isRequiredArgument)(n)&&n.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${n.name}:) cannot be deprecated.`,[cK(n.astNode),(t=n.astNode)===null||t===void 0?void 0:t.type])}}}function eS(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Xut(e){let t=ipt(e),r=e.schema.getTypeMap();for(let n of Object.values(r)){if(!(0,gi.isNamedType)(n)){e.reportError(`Expected GraphQL named type but got: ${(0,ds.inspect)(n)}.`,n.astNode);continue}(0,Gut.isIntrospectionType)(n)||eS(e,n),(0,gi.isObjectType)(n)||(0,gi.isInterfaceType)(n)?(vSe(e,n),bSe(e,n)):(0,gi.isUnionType)(n)?tpt(e,n):(0,gi.isEnumType)(n)?rpt(e,n):(0,gi.isInputObjectType)(n)&&(npt(e,n),t(n))}}function vSe(e,t){let r=Object.values(t.getFields());r.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let a of r){if(eS(e,a),!(0,gi.isOutputType)(a.type)){var n;e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${(0,ds.inspect)(a.type)}.`,(n=a.astNode)===null||n===void 0?void 0:n.type)}for(let s of a.args){let c=s.name;if(eS(e,s),!(0,gi.isInputType)(s.type)){var o;e.reportError(`The type of ${t.name}.${a.name}(${c}:) must be Input Type but got: ${(0,ds.inspect)(s.type)}.`,(o=s.astNode)===null||o===void 0?void 0:o.type)}if((0,gi.isRequiredArgument)(s)&&s.deprecationReason!=null){var i;e.reportError(`Required argument ${t.name}.${a.name}(${c}:) cannot be deprecated.`,[cK(s.astNode),(i=s.astNode)===null||i===void 0?void 0:i.type])}}}}function bSe(e,t){let r=Object.create(null);for(let n of t.getInterfaces()){if(!(0,gi.isInterfaceType)(n)){e.reportError(`Type ${(0,ds.inspect)(t)} must only implement Interface types, it cannot implement ${(0,ds.inspect)(n)}.`,R2(t,n));continue}if(t===n){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,R2(t,n));continue}if(r[n.name]){e.reportError(`Type ${t.name} can only implement ${n.name} once.`,R2(t,n));continue}r[n.name]=!0,ept(e,t,n),Yut(e,t,n)}}function Yut(e,t,r){let n=t.getFields();for(let c of Object.values(r.getFields())){let p=c.name,d=n[p];if(!d){e.reportError(`Interface field ${r.name}.${p} expected but ${t.name} does not provide it.`,[c.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,SSe.isTypeSubTypeOf)(e.schema,d.type,c.type)){var o,i;e.reportError(`Interface field ${r.name}.${p} expects type ${(0,ds.inspect)(c.type)} but ${t.name}.${p} is type ${(0,ds.inspect)(d.type)}.`,[(o=c.astNode)===null||o===void 0?void 0:o.type,(i=d.astNode)===null||i===void 0?void 0:i.type])}for(let f of c.args){let m=f.name,y=d.args.find(g=>g.name===m);if(!y){e.reportError(`Interface field argument ${r.name}.${p}(${m}:) expected but ${t.name}.${p} does not provide it.`,[f.astNode,d.astNode]);continue}if(!(0,SSe.isEqualType)(f.type,y.type)){var a,s;e.reportError(`Interface field argument ${r.name}.${p}(${m}:) expects type ${(0,ds.inspect)(f.type)} but ${t.name}.${p}(${m}:) is type ${(0,ds.inspect)(y.type)}.`,[(a=f.astNode)===null||a===void 0?void 0:a.type,(s=y.astNode)===null||s===void 0?void 0:s.type])}}for(let f of d.args){let m=f.name;!c.args.find(g=>g.name===m)&&(0,gi.isRequiredArgument)(f)&&e.reportError(`Object field ${t.name}.${p} includes required argument ${m} that is missing from the Interface field ${r.name}.${p}.`,[f.astNode,c.astNode])}}}function ept(e,t,r){let n=t.getInterfaces();for(let o of r.getInterfaces())n.includes(o)||e.reportError(o===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${o.name} because it is implemented by ${r.name}.`,[...R2(r,o),...R2(t,r)])}function tpt(e,t){let r=t.getTypes();r.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let n=Object.create(null);for(let o of r){if(n[o.name]){e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,xSe(t,o.name));continue}n[o.name]=!0,(0,gi.isObjectType)(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,ds.inspect)(o)}.`,xSe(t,String(o)))}}function rpt(e,t){let r=t.getValues();r.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let n of r)eS(e,n)}function npt(e,t){let r=Object.values(t.getFields());r.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let i of r){if(eS(e,i),!(0,gi.isInputType)(i.type)){var n;e.reportError(`The type of ${t.name}.${i.name} must be Input Type but got: ${(0,ds.inspect)(i.type)}.`,(n=i.astNode)===null||n===void 0?void 0:n.type)}if((0,gi.isRequiredInputField)(i)&&i.deprecationReason!=null){var o;e.reportError(`Required input field ${t.name}.${i.name} cannot be deprecated.`,[cK(i.astNode),(o=i.astNode)===null||o===void 0?void 0:o.type])}t.isOneOf&&opt(t,i,e)}}function opt(e,t,r){if((0,gi.isNonNullType)(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(n=t.astNode)===null||n===void 0?void 0:n.type)}t.defaultValue!==void 0&&r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function ipt(e){let t=Object.create(null),r=[],n=Object.create(null);return o;function o(i){if(t[i.name])return;t[i.name]=!0,n[i.name]=r.length;let a=Object.values(i.getFields());for(let s of a)if((0,gi.isNonNullType)(s.type)&&(0,gi.isInputObjectType)(s.type.ofType)){let c=s.type.ofType,p=n[c.name];if(r.push(s),p===void 0)o(c);else{let d=r.slice(p),f=d.map(m=>m.name).join(".");e.reportError(`Cannot reference Input Object "${c.name}" within itself through a series of non-null fields: "${f}".`,d.map(m=>m.astNode))}r.pop()}n[i.name]=void 0}}function R2(e,t){let{astNode:r,extensionASTNodes:n}=e;return(r!=null?[r,...n]:n).flatMap(i=>{var a;return(a=i.interfaces)!==null&&a!==void 0?a:[]}).filter(i=>i.name.value===t.name)}function xSe(e,t){let{astNode:r,extensionASTNodes:n}=e;return(r!=null?[r,...n]:n).flatMap(i=>{var a;return(a=i.types)!==null&&a!==void 0?a:[]}).filter(i=>i.name.value===t)}function cK(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(r=>r.name.value===ESe.GraphQLDeprecatedDirective.name)}});var vd=L(pK=>{"use strict";Object.defineProperty(pK,"__esModule",{value:!0});pK.typeFromAST=uK;var lK=Sn(),DSe=vn();function uK(e,t){switch(t.kind){case lK.Kind.LIST_TYPE:{let r=uK(e,t.type);return r&&new DSe.GraphQLList(r)}case lK.Kind.NON_NULL_TYPE:{let r=uK(e,t.type);return r&&new DSe.GraphQLNonNull(r)}case lK.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var f4=L($2=>{"use strict";Object.defineProperty($2,"__esModule",{value:!0});$2.TypeInfo=void 0;$2.visitWithTypeInfo=cpt;var apt=Bl(),Si=Sn(),ASe=Gg(),vi=vn(),N1=Vl(),wSe=vd(),dK=class{constructor(t,r,n){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n??spt,r&&((0,vi.isInputType)(r)&&this._inputTypeStack.push(r),(0,vi.isCompositeType)(r)&&this._parentTypeStack.push(r),(0,vi.isOutputType)(r)&&this._typeStack.push(r))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){let r=this._schema;switch(t.kind){case Si.Kind.SELECTION_SET:{let o=(0,vi.getNamedType)(this.getType());this._parentTypeStack.push((0,vi.isCompositeType)(o)?o:void 0);break}case Si.Kind.FIELD:{let o=this.getParentType(),i,a;o&&(i=this._getFieldDef(r,o,t),i&&(a=i.type)),this._fieldDefStack.push(i),this._typeStack.push((0,vi.isOutputType)(a)?a:void 0);break}case Si.Kind.DIRECTIVE:this._directive=r.getDirective(t.name.value);break;case Si.Kind.OPERATION_DEFINITION:{let o=r.getRootType(t.operation);this._typeStack.push((0,vi.isObjectType)(o)?o:void 0);break}case Si.Kind.INLINE_FRAGMENT:case Si.Kind.FRAGMENT_DEFINITION:{let o=t.typeCondition,i=o?(0,wSe.typeFromAST)(r,o):(0,vi.getNamedType)(this.getType());this._typeStack.push((0,vi.isOutputType)(i)?i:void 0);break}case Si.Kind.VARIABLE_DEFINITION:{let o=(0,wSe.typeFromAST)(r,t.type);this._inputTypeStack.push((0,vi.isInputType)(o)?o:void 0);break}case Si.Kind.ARGUMENT:{var n;let o,i,a=(n=this.getDirective())!==null&&n!==void 0?n:this.getFieldDef();a&&(o=a.args.find(s=>s.name===t.name.value),o&&(i=o.type)),this._argument=o,this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,vi.isInputType)(i)?i:void 0);break}case Si.Kind.LIST:{let o=(0,vi.getNullableType)(this.getInputType()),i=(0,vi.isListType)(o)?o.ofType:o;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,vi.isInputType)(i)?i:void 0);break}case Si.Kind.OBJECT_FIELD:{let o=(0,vi.getNamedType)(this.getInputType()),i,a;(0,vi.isInputObjectType)(o)&&(a=o.getFields()[t.name.value],a&&(i=a.type)),this._defaultValueStack.push(a?a.defaultValue:void 0),this._inputTypeStack.push((0,vi.isInputType)(i)?i:void 0);break}case Si.Kind.ENUM:{let o=(0,vi.getNamedType)(this.getInputType()),i;(0,vi.isEnumType)(o)&&(i=o.getValue(t.value)),this._enumValue=i;break}default:}}leave(t){switch(t.kind){case Si.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case Si.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Si.Kind.DIRECTIVE:this._directive=null;break;case Si.Kind.OPERATION_DEFINITION:case Si.Kind.INLINE_FRAGMENT:case Si.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Si.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Si.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Si.Kind.LIST:case Si.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Si.Kind.ENUM:this._enumValue=null;break;default:}}};$2.TypeInfo=dK;function spt(e,t,r){let n=r.name.value;if(n===N1.SchemaMetaFieldDef.name&&e.getQueryType()===t)return N1.SchemaMetaFieldDef;if(n===N1.TypeMetaFieldDef.name&&e.getQueryType()===t)return N1.TypeMetaFieldDef;if(n===N1.TypeNameMetaFieldDef.name&&(0,vi.isCompositeType)(t))return N1.TypeNameMetaFieldDef;if((0,vi.isObjectType)(t)||(0,vi.isInterfaceType)(t))return t.getFields()[n]}function cpt(e,t){return{enter(...r){let n=r[0];e.enter(n);let o=(0,ASe.getEnterLeaveForKind)(t,n.kind).enter;if(o){let i=o.apply(t,r);return i!==void 0&&(e.leave(n),(0,apt.isNode)(i)&&e.enter(i)),i}},leave(...r){let n=r[0],o=(0,ASe.getEnterLeaveForKind)(t,n.kind).leave,i;return o&&(i=o.apply(t,r)),e.leave(n),i}}}});var tS=L(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.isConstValueNode=_K;Hc.isDefinitionNode=lpt;Hc.isExecutableDefinitionNode=ISe;Hc.isSchemaCoordinateNode=dpt;Hc.isSelectionNode=upt;Hc.isTypeDefinitionNode=PSe;Hc.isTypeExtensionNode=NSe;Hc.isTypeNode=ppt;Hc.isTypeSystemDefinitionNode=CSe;Hc.isTypeSystemExtensionNode=OSe;Hc.isValueNode=kSe;var en=Sn();function lpt(e){return ISe(e)||CSe(e)||OSe(e)}function ISe(e){return e.kind===en.Kind.OPERATION_DEFINITION||e.kind===en.Kind.FRAGMENT_DEFINITION}function upt(e){return e.kind===en.Kind.FIELD||e.kind===en.Kind.FRAGMENT_SPREAD||e.kind===en.Kind.INLINE_FRAGMENT}function kSe(e){return e.kind===en.Kind.VARIABLE||e.kind===en.Kind.INT||e.kind===en.Kind.FLOAT||e.kind===en.Kind.STRING||e.kind===en.Kind.BOOLEAN||e.kind===en.Kind.NULL||e.kind===en.Kind.ENUM||e.kind===en.Kind.LIST||e.kind===en.Kind.OBJECT}function _K(e){return kSe(e)&&(e.kind===en.Kind.LIST?e.values.some(_K):e.kind===en.Kind.OBJECT?e.fields.some(t=>_K(t.value)):e.kind!==en.Kind.VARIABLE)}function ppt(e){return e.kind===en.Kind.NAMED_TYPE||e.kind===en.Kind.LIST_TYPE||e.kind===en.Kind.NON_NULL_TYPE}function CSe(e){return e.kind===en.Kind.SCHEMA_DEFINITION||PSe(e)||e.kind===en.Kind.DIRECTIVE_DEFINITION}function PSe(e){return e.kind===en.Kind.SCALAR_TYPE_DEFINITION||e.kind===en.Kind.OBJECT_TYPE_DEFINITION||e.kind===en.Kind.INTERFACE_TYPE_DEFINITION||e.kind===en.Kind.UNION_TYPE_DEFINITION||e.kind===en.Kind.ENUM_TYPE_DEFINITION||e.kind===en.Kind.INPUT_OBJECT_TYPE_DEFINITION}function OSe(e){return e.kind===en.Kind.SCHEMA_EXTENSION||NSe(e)}function NSe(e){return e.kind===en.Kind.SCALAR_TYPE_EXTENSION||e.kind===en.Kind.OBJECT_TYPE_EXTENSION||e.kind===en.Kind.INTERFACE_TYPE_EXTENSION||e.kind===en.Kind.UNION_TYPE_EXTENSION||e.kind===en.Kind.ENUM_TYPE_EXTENSION||e.kind===en.Kind.INPUT_OBJECT_TYPE_EXTENSION}function dpt(e){return e.kind===en.Kind.TYPE_COORDINATE||e.kind===en.Kind.MEMBER_COORDINATE||e.kind===en.Kind.ARGUMENT_COORDINATE||e.kind===en.Kind.DIRECTIVE_COORDINATE||e.kind===en.Kind.DIRECTIVE_ARGUMENT_COORDINATE}});var mK=L(fK=>{"use strict";Object.defineProperty(fK,"__esModule",{value:!0});fK.ExecutableDefinitionsRule=mpt;var _pt=ar(),FSe=Sn(),fpt=tS();function mpt(e){return{Document(t){for(let r of t.definitions)if(!(0,fpt.isExecutableDefinitionNode)(r)){let n=r.kind===FSe.Kind.SCHEMA_DEFINITION||r.kind===FSe.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new _pt.GraphQLError(`The ${n} definition is not executable.`,{nodes:r}))}return!1}}}});var yK=L(hK=>{"use strict";Object.defineProperty(hK,"__esModule",{value:!0});hK.FieldsOnCorrectTypeRule=Spt;var RSe=gh(),hpt=v2(),ypt=vh(),gpt=ar(),M2=vn();function Spt(e){return{Field(t){let r=e.getParentType();if(r&&!e.getFieldDef()){let o=e.getSchema(),i=t.name.value,a=(0,RSe.didYouMean)("to use an inline fragment on",vpt(o,r,i));a===""&&(a=(0,RSe.didYouMean)(bpt(r,i))),e.reportError(new gpt.GraphQLError(`Cannot query field "${i}" on type "${r.name}".`+a,{nodes:t}))}}}}function vpt(e,t,r){if(!(0,M2.isAbstractType)(t))return[];let n=new Set,o=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[r]){n.add(a),o[a.name]=1;for(let s of a.getInterfaces()){var i;s.getFields()[r]&&(n.add(s),o[s.name]=((i=o[s.name])!==null&&i!==void 0?i:0)+1)}}return[...n].sort((a,s)=>{let c=o[s.name]-o[a.name];return c!==0?c:(0,M2.isInterfaceType)(a)&&e.isSubType(a,s)?-1:(0,M2.isInterfaceType)(s)&&e.isSubType(s,a)?1:(0,hpt.naturalCompare)(a.name,s.name)}).map(a=>a.name)}function bpt(e,t){if((0,M2.isObjectType)(e)||(0,M2.isInterfaceType)(e)){let r=Object.keys(e.getFields());return(0,ypt.suggestionList)(t,r)}return[]}});var SK=L(gK=>{"use strict";Object.defineProperty(gK,"__esModule",{value:!0});gK.FragmentsOnCompositeTypesRule=xpt;var LSe=ar(),$Se=Gc(),MSe=vn(),jSe=vd();function xpt(e){return{InlineFragment(t){let r=t.typeCondition;if(r){let n=(0,jSe.typeFromAST)(e.getSchema(),r);if(n&&!(0,MSe.isCompositeType)(n)){let o=(0,$Se.print)(r);e.reportError(new LSe.GraphQLError(`Fragment cannot condition on non composite type "${o}".`,{nodes:r}))}}},FragmentDefinition(t){let r=(0,jSe.typeFromAST)(e.getSchema(),t.typeCondition);if(r&&!(0,MSe.isCompositeType)(r)){let n=(0,$Se.print)(t.typeCondition);e.reportError(new LSe.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}});var vK=L(m4=>{"use strict";Object.defineProperty(m4,"__esModule",{value:!0});m4.KnownArgumentNamesOnDirectivesRule=zSe;m4.KnownArgumentNamesRule=Dpt;var BSe=gh(),qSe=vh(),USe=ar(),Ept=Sn(),Tpt=pc();function Dpt(e){return{...zSe(e),Argument(t){let r=e.getArgument(),n=e.getFieldDef(),o=e.getParentType();if(!r&&n&&o){let i=t.name.value,a=n.args.map(c=>c.name),s=(0,qSe.suggestionList)(i,a);e.reportError(new USe.GraphQLError(`Unknown argument "${i}" on field "${o.name}.${n.name}".`+(0,BSe.didYouMean)(s),{nodes:t}))}}}}function zSe(e){let t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Tpt.specifiedDirectives;for(let a of n)t[a.name]=a.args.map(s=>s.name);let o=e.getDocument().definitions;for(let a of o)if(a.kind===Ept.Kind.DIRECTIVE_DEFINITION){var i;let s=(i=a.arguments)!==null&&i!==void 0?i:[];t[a.name.value]=s.map(c=>c.name.value)}return{Directive(a){let s=a.name.value,c=t[s];if(a.arguments&&c)for(let p of a.arguments){let d=p.name.value;if(!c.includes(d)){let f=(0,qSe.suggestionList)(d,c);e.reportError(new USe.GraphQLError(`Unknown argument "${d}" on directive "@${s}".`+(0,BSe.didYouMean)(f),{nodes:p}))}}return!1}}}});var TK=L(EK=>{"use strict";Object.defineProperty(EK,"__esModule",{value:!0});EK.KnownDirectivesRule=Ipt;var Apt=eo(),bK=us(),VSe=ar(),xK=Bl(),na=A1(),Wo=Sn(),wpt=pc();function Ipt(e){let t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():wpt.specifiedDirectives;for(let i of n)t[i.name]=i.locations;let o=e.getDocument().definitions;for(let i of o)i.kind===Wo.Kind.DIRECTIVE_DEFINITION&&(t[i.name.value]=i.locations.map(a=>a.value));return{Directive(i,a,s,c,p){let d=i.name.value,f=t[d];if(!f){e.reportError(new VSe.GraphQLError(`Unknown directive "@${d}".`,{nodes:i}));return}let m=kpt(p);m&&!f.includes(m)&&e.reportError(new VSe.GraphQLError(`Directive "@${d}" may not be used on ${m}.`,{nodes:i}))}}}function kpt(e){let t=e[e.length-1];switch("kind"in t||(0,bK.invariant)(!1),t.kind){case Wo.Kind.OPERATION_DEFINITION:return Cpt(t.operation);case Wo.Kind.FIELD:return na.DirectiveLocation.FIELD;case Wo.Kind.FRAGMENT_SPREAD:return na.DirectiveLocation.FRAGMENT_SPREAD;case Wo.Kind.INLINE_FRAGMENT:return na.DirectiveLocation.INLINE_FRAGMENT;case Wo.Kind.FRAGMENT_DEFINITION:return na.DirectiveLocation.FRAGMENT_DEFINITION;case Wo.Kind.VARIABLE_DEFINITION:return na.DirectiveLocation.VARIABLE_DEFINITION;case Wo.Kind.SCHEMA_DEFINITION:case Wo.Kind.SCHEMA_EXTENSION:return na.DirectiveLocation.SCHEMA;case Wo.Kind.SCALAR_TYPE_DEFINITION:case Wo.Kind.SCALAR_TYPE_EXTENSION:return na.DirectiveLocation.SCALAR;case Wo.Kind.OBJECT_TYPE_DEFINITION:case Wo.Kind.OBJECT_TYPE_EXTENSION:return na.DirectiveLocation.OBJECT;case Wo.Kind.FIELD_DEFINITION:return na.DirectiveLocation.FIELD_DEFINITION;case Wo.Kind.INTERFACE_TYPE_DEFINITION:case Wo.Kind.INTERFACE_TYPE_EXTENSION:return na.DirectiveLocation.INTERFACE;case Wo.Kind.UNION_TYPE_DEFINITION:case Wo.Kind.UNION_TYPE_EXTENSION:return na.DirectiveLocation.UNION;case Wo.Kind.ENUM_TYPE_DEFINITION:case Wo.Kind.ENUM_TYPE_EXTENSION:return na.DirectiveLocation.ENUM;case Wo.Kind.ENUM_VALUE_DEFINITION:return na.DirectiveLocation.ENUM_VALUE;case Wo.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Wo.Kind.INPUT_OBJECT_TYPE_EXTENSION:return na.DirectiveLocation.INPUT_OBJECT;case Wo.Kind.INPUT_VALUE_DEFINITION:{let r=e[e.length-3];return"kind"in r||(0,bK.invariant)(!1),r.kind===Wo.Kind.INPUT_OBJECT_TYPE_DEFINITION?na.DirectiveLocation.INPUT_FIELD_DEFINITION:na.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,bK.invariant)(!1,"Unexpected kind: "+(0,Apt.inspect)(t.kind))}}function Cpt(e){switch(e){case xK.OperationTypeNode.QUERY:return na.DirectiveLocation.QUERY;case xK.OperationTypeNode.MUTATION:return na.DirectiveLocation.MUTATION;case xK.OperationTypeNode.SUBSCRIPTION:return na.DirectiveLocation.SUBSCRIPTION}}});var AK=L(DK=>{"use strict";Object.defineProperty(DK,"__esModule",{value:!0});DK.KnownFragmentNamesRule=Opt;var Ppt=ar();function Opt(e){return{FragmentSpread(t){let r=t.name.value;e.getFragment(r)||e.reportError(new Ppt.GraphQLError(`Unknown fragment "${r}".`,{nodes:t.name}))}}}});var kK=L(IK=>{"use strict";Object.defineProperty(IK,"__esModule",{value:!0});IK.KnownTypeNamesRule=Mpt;var Npt=gh(),Fpt=vh(),Rpt=ar(),wK=tS(),Lpt=Vl(),$pt=Sd();function Mpt(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);for(let i of e.getDocument().definitions)(0,wK.isTypeDefinitionNode)(i)&&(n[i.name.value]=!0);let o=[...Object.keys(r),...Object.keys(n)];return{NamedType(i,a,s,c,p){let d=i.name.value;if(!r[d]&&!n[d]){var f;let m=(f=p[2])!==null&&f!==void 0?f:s,y=m!=null&&jpt(m);if(y&&JSe.includes(d))return;let g=(0,Fpt.suggestionList)(d,y?JSe.concat(o):o);e.reportError(new Rpt.GraphQLError(`Unknown type "${d}".`+(0,Npt.didYouMean)(g),{nodes:i}))}}}}var JSe=[...$pt.specifiedScalarTypes,...Lpt.introspectionTypes].map(e=>e.name);function jpt(e){return"kind"in e&&((0,wK.isTypeSystemDefinitionNode)(e)||(0,wK.isTypeSystemExtensionNode)(e))}});var PK=L(CK=>{"use strict";Object.defineProperty(CK,"__esModule",{value:!0});CK.LoneAnonymousOperationRule=Upt;var Bpt=ar(),qpt=Sn();function Upt(e){let t=0;return{Document(r){t=r.definitions.filter(n=>n.kind===qpt.Kind.OPERATION_DEFINITION).length},OperationDefinition(r){!r.name&&t>1&&e.reportError(new Bpt.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:r}))}}}});var NK=L(OK=>{"use strict";Object.defineProperty(OK,"__esModule",{value:!0});OK.LoneSchemaDefinitionRule=zpt;var KSe=ar();function zpt(e){var t,r,n;let o=e.getSchema(),i=(t=(r=(n=o?.astNode)!==null&&n!==void 0?n:o?.getQueryType())!==null&&r!==void 0?r:o?.getMutationType())!==null&&t!==void 0?t:o?.getSubscriptionType(),a=0;return{SchemaDefinition(s){if(i){e.reportError(new KSe.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:s}));return}a>0&&e.reportError(new KSe.GraphQLError("Must provide only one schema definition.",{nodes:s})),++a}}}});var RK=L(FK=>{"use strict";Object.defineProperty(FK,"__esModule",{value:!0});FK.MaxIntrospectionDepthRule=Kpt;var Vpt=ar(),GSe=Sn(),Jpt=3;function Kpt(e){function t(r,n=Object.create(null),o=0){if(r.kind===GSe.Kind.FRAGMENT_SPREAD){let i=r.name.value;if(n[i]===!0)return!1;let a=e.getFragment(i);if(!a)return!1;try{return n[i]=!0,t(a,n,o)}finally{n[i]=void 0}}if(r.kind===GSe.Kind.FIELD&&(r.name.value==="fields"||r.name.value==="interfaces"||r.name.value==="possibleTypes"||r.name.value==="inputFields")&&(o++,o>=Jpt))return!0;if("selectionSet"in r&&r.selectionSet){for(let i of r.selectionSet.selections)if(t(i,n,o))return!0}return!1}return{Field(r){if((r.name.value==="__schema"||r.name.value==="__type")&&t(r))return e.reportError(new Vpt.GraphQLError("Maximum introspection depth exceeded",{nodes:[r]})),!1}}}});var $K=L(LK=>{"use strict";Object.defineProperty(LK,"__esModule",{value:!0});LK.NoFragmentCyclesRule=Hpt;var Gpt=ar();function Hpt(e){let t=Object.create(null),r=[],n=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(i){return o(i),!1}};function o(i){if(t[i.name.value])return;let a=i.name.value;t[a]=!0;let s=e.getFragmentSpreads(i.selectionSet);if(s.length!==0){n[a]=r.length;for(let c of s){let p=c.name.value,d=n[p];if(r.push(c),d===void 0){let f=e.getFragment(p);f&&o(f)}else{let f=r.slice(d),m=f.slice(0,-1).map(y=>'"'+y.name.value+'"').join(", ");e.reportError(new Gpt.GraphQLError(`Cannot spread fragment "${p}" within itself`+(m!==""?` via ${m}.`:"."),{nodes:f}))}r.pop()}n[a]=void 0}}}});var jK=L(MK=>{"use strict";Object.defineProperty(MK,"__esModule",{value:!0});MK.NoUndefinedVariablesRule=Wpt;var Zpt=ar();function Wpt(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){let n=e.getRecursiveVariableUsages(r);for(let{node:o}of n){let i=o.name.value;t[i]!==!0&&e.reportError(new Zpt.GraphQLError(r.name?`Variable "$${i}" is not defined by operation "${r.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[o,r]}))}}},VariableDefinition(r){t[r.variable.name.value]=!0}}}});var qK=L(BK=>{"use strict";Object.defineProperty(BK,"__esModule",{value:!0});BK.NoUnusedFragmentsRule=Xpt;var Qpt=ar();function Xpt(e){let t=[],r=[];return{OperationDefinition(n){return t.push(n),!1},FragmentDefinition(n){return r.push(n),!1},Document:{leave(){let n=Object.create(null);for(let o of t)for(let i of e.getRecursivelyReferencedFragments(o))n[i.name.value]=!0;for(let o of r){let i=o.name.value;n[i]!==!0&&e.reportError(new Qpt.GraphQLError(`Fragment "${i}" is never used.`,{nodes:o}))}}}}}});var zK=L(UK=>{"use strict";Object.defineProperty(UK,"__esModule",{value:!0});UK.NoUnusedVariablesRule=edt;var Ypt=ar();function edt(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){let n=Object.create(null),o=e.getRecursiveVariableUsages(r);for(let{node:i}of o)n[i.name.value]=!0;for(let i of t){let a=i.variable.name.value;n[a]!==!0&&e.reportError(new Ypt.GraphQLError(r.name?`Variable "$${a}" is never used in operation "${r.name.value}".`:`Variable "$${a}" is never used.`,{nodes:i}))}}},VariableDefinition(r){t.push(r)}}}});var KK=L(JK=>{"use strict";Object.defineProperty(JK,"__esModule",{value:!0});JK.sortValueNode=VK;var tdt=v2(),sf=Sn();function VK(e){switch(e.kind){case sf.Kind.OBJECT:return{...e,fields:rdt(e.fields)};case sf.Kind.LIST:return{...e,values:e.values.map(VK)};case sf.Kind.INT:case sf.Kind.FLOAT:case sf.Kind.STRING:case sf.Kind.BOOLEAN:case sf.Kind.NULL:case sf.Kind.ENUM:case sf.Kind.VARIABLE:return e}}function rdt(e){return e.map(t=>({...t,value:VK(t.value)})).sort((t,r)=>(0,tdt.naturalCompare)(t.name.value,r.name.value))}});var YK=L(XK=>{"use strict";Object.defineProperty(XK,"__esModule",{value:!0});XK.OverlappingFieldsCanBeMergedRule=adt;var HSe=eo(),ndt=ar(),GK=Sn(),odt=Gc(),dc=vn(),idt=KK(),WSe=vd();function QSe(e){return Array.isArray(e)?e.map(([t,r])=>`subfields "${t}" conflict because `+QSe(r)).join(" and "):e}function adt(e){let t=new S4,r=new WK,n=new Map;return{SelectionSet(o){let i=sdt(e,n,t,r,e.getParentType(),o);for(let[[a,s],c,p]of i){let d=QSe(s);e.reportError(new ndt.GraphQLError(`Fields "${a}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:c.concat(p)}))}}}}function sdt(e,t,r,n,o,i){let a=[],[s,c]=g4(e,t,o,i);if(ldt(e,a,t,r,n,s),c.length!==0)for(let p=0;p1)for(let c=0;c[i.value,a]));return r.every(i=>{let a=i.value,s=o.get(i.name.value);return s===void 0?!1:ZSe(a)===ZSe(s)})}function ZSe(e){return(0,odt.print)((0,idt.sortValueNode)(e))}function HK(e,t){return(0,dc.isListType)(e)?(0,dc.isListType)(t)?HK(e.ofType,t.ofType):!0:(0,dc.isListType)(t)?!0:(0,dc.isNonNullType)(e)?(0,dc.isNonNullType)(t)?HK(e.ofType,t.ofType):!0:(0,dc.isNonNullType)(t)?!0:(0,dc.isLeafType)(e)||(0,dc.isLeafType)(t)?e!==t:!1}function g4(e,t,r,n){let o=t.get(n);if(o)return o;let i=Object.create(null),a=Object.create(null);YSe(e,r,n,i,a);let s=[i,Object.keys(a)];return t.set(n,s),s}function ZK(e,t,r){let n=t.get(r.selectionSet);if(n)return n;let o=(0,WSe.typeFromAST)(e.getSchema(),r.typeCondition);return g4(e,t,o,r.selectionSet)}function YSe(e,t,r,n,o){for(let i of r.selections)switch(i.kind){case GK.Kind.FIELD:{let a=i.name.value,s;((0,dc.isObjectType)(t)||(0,dc.isInterfaceType)(t))&&(s=t.getFields()[a]);let c=i.alias?i.alias.value:a;n[c]||(n[c]=[]),n[c].push([t,i,s]);break}case GK.Kind.FRAGMENT_SPREAD:o[i.name.value]=!0;break;case GK.Kind.INLINE_FRAGMENT:{let a=i.typeCondition,s=a?(0,WSe.typeFromAST)(e.getSchema(),a):t;YSe(e,s,i.selectionSet,n,o);break}}}function pdt(e,t,r,n){if(e.length>0)return[[t,e.map(([o])=>o)],[r,...e.map(([,o])=>o).flat()],[n,...e.map(([,,o])=>o).flat()]]}var S4=class{constructor(){this._data=new Map}has(t,r,n){var o;let i=(o=this._data.get(t))===null||o===void 0?void 0:o.get(r);return i===void 0?!1:n?!0:n===i}add(t,r,n){let o=this._data.get(t);o===void 0?this._data.set(t,new Map([[r,n]])):o.set(r,n)}},WK=class{constructor(){this._orderedPairSet=new S4}has(t,r,n){return t{"use strict";Object.defineProperty(tG,"__esModule",{value:!0});tG.PossibleFragmentSpreadsRule=_dt;var v4=eo(),e0e=ar(),eG=vn(),t0e=A2(),ddt=vd();function _dt(e){return{InlineFragment(t){let r=e.getType(),n=e.getParentType();if((0,eG.isCompositeType)(r)&&(0,eG.isCompositeType)(n)&&!(0,t0e.doTypesOverlap)(e.getSchema(),r,n)){let o=(0,v4.inspect)(n),i=(0,v4.inspect)(r);e.reportError(new e0e.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${i}".`,{nodes:t}))}},FragmentSpread(t){let r=t.name.value,n=fdt(e,r),o=e.getParentType();if(n&&o&&!(0,t0e.doTypesOverlap)(e.getSchema(),n,o)){let i=(0,v4.inspect)(o),a=(0,v4.inspect)(n);e.reportError(new e0e.GraphQLError(`Fragment "${r}" cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:t}))}}}}function fdt(e,t){let r=e.getFragment(t);if(r){let n=(0,ddt.typeFromAST)(e.getSchema(),r.typeCondition);if((0,eG.isCompositeType)(n))return n}}});var oG=L(nG=>{"use strict";Object.defineProperty(nG,"__esModule",{value:!0});nG.PossibleTypeExtensionsRule=gdt;var mdt=gh(),n0e=eo(),o0e=us(),hdt=vh(),r0e=ar(),ai=Sn(),ydt=tS(),F1=vn();function gdt(e){let t=e.getSchema(),r=Object.create(null);for(let o of e.getDocument().definitions)(0,ydt.isTypeDefinitionNode)(o)&&(r[o.name.value]=o);return{ScalarTypeExtension:n,ObjectTypeExtension:n,InterfaceTypeExtension:n,UnionTypeExtension:n,EnumTypeExtension:n,InputObjectTypeExtension:n};function n(o){let i=o.name.value,a=r[i],s=t?.getType(i),c;if(a?c=Sdt[a.kind]:s&&(c=vdt(s)),c){if(c!==o.kind){let p=bdt(o.kind);e.reportError(new r0e.GraphQLError(`Cannot extend non-${p} type "${i}".`,{nodes:a?[a,o]:o}))}}else{let p=Object.keys({...r,...t?.getTypeMap()}),d=(0,hdt.suggestionList)(i,p);e.reportError(new r0e.GraphQLError(`Cannot extend type "${i}" because it is not defined.`+(0,mdt.didYouMean)(d),{nodes:o.name}))}}}var Sdt={[ai.Kind.SCALAR_TYPE_DEFINITION]:ai.Kind.SCALAR_TYPE_EXTENSION,[ai.Kind.OBJECT_TYPE_DEFINITION]:ai.Kind.OBJECT_TYPE_EXTENSION,[ai.Kind.INTERFACE_TYPE_DEFINITION]:ai.Kind.INTERFACE_TYPE_EXTENSION,[ai.Kind.UNION_TYPE_DEFINITION]:ai.Kind.UNION_TYPE_EXTENSION,[ai.Kind.ENUM_TYPE_DEFINITION]:ai.Kind.ENUM_TYPE_EXTENSION,[ai.Kind.INPUT_OBJECT_TYPE_DEFINITION]:ai.Kind.INPUT_OBJECT_TYPE_EXTENSION};function vdt(e){if((0,F1.isScalarType)(e))return ai.Kind.SCALAR_TYPE_EXTENSION;if((0,F1.isObjectType)(e))return ai.Kind.OBJECT_TYPE_EXTENSION;if((0,F1.isInterfaceType)(e))return ai.Kind.INTERFACE_TYPE_EXTENSION;if((0,F1.isUnionType)(e))return ai.Kind.UNION_TYPE_EXTENSION;if((0,F1.isEnumType)(e))return ai.Kind.ENUM_TYPE_EXTENSION;if((0,F1.isInputObjectType)(e))return ai.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,o0e.invariant)(!1,"Unexpected type: "+(0,n0e.inspect)(e))}function bdt(e){switch(e){case ai.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case ai.Kind.OBJECT_TYPE_EXTENSION:return"object";case ai.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case ai.Kind.UNION_TYPE_EXTENSION:return"union";case ai.Kind.ENUM_TYPE_EXTENSION:return"enum";case ai.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,o0e.invariant)(!1,"Unexpected kind: "+(0,n0e.inspect)(e))}}});var aG=L(b4=>{"use strict";Object.defineProperty(b4,"__esModule",{value:!0});b4.ProvidedRequiredArgumentsOnDirectivesRule=l0e;b4.ProvidedRequiredArgumentsRule=Tdt;var a0e=eo(),i0e=Sh(),s0e=ar(),c0e=Sn(),xdt=Gc(),iG=vn(),Edt=pc();function Tdt(e){return{...l0e(e),Field:{leave(t){var r;let n=e.getFieldDef();if(!n)return!1;let o=new Set((r=t.arguments)===null||r===void 0?void 0:r.map(i=>i.name.value));for(let i of n.args)if(!o.has(i.name)&&(0,iG.isRequiredArgument)(i)){let a=(0,a0e.inspect)(i.type);e.reportError(new s0e.GraphQLError(`Field "${n.name}" argument "${i.name}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}}function l0e(e){var t;let r=Object.create(null),n=e.getSchema(),o=(t=n?.getDirectives())!==null&&t!==void 0?t:Edt.specifiedDirectives;for(let s of o)r[s.name]=(0,i0e.keyMap)(s.args.filter(iG.isRequiredArgument),c=>c.name);let i=e.getDocument().definitions;for(let s of i)if(s.kind===c0e.Kind.DIRECTIVE_DEFINITION){var a;let c=(a=s.arguments)!==null&&a!==void 0?a:[];r[s.name.value]=(0,i0e.keyMap)(c.filter(Ddt),p=>p.name.value)}return{Directive:{leave(s){let c=s.name.value,p=r[c];if(p){var d;let f=(d=s.arguments)!==null&&d!==void 0?d:[],m=new Set(f.map(y=>y.name.value));for(let[y,g]of Object.entries(p))if(!m.has(y)){let S=(0,iG.isType)(g.type)?(0,a0e.inspect)(g.type):(0,xdt.print)(g.type);e.reportError(new s0e.GraphQLError(`Directive "@${c}" argument "${y}" of type "${S}" is required, but it was not provided.`,{nodes:s}))}}}}}}function Ddt(e){return e.type.kind===c0e.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var uG=L(lG=>{"use strict";Object.defineProperty(lG,"__esModule",{value:!0});lG.ScalarLeafsRule=Adt;var sG=eo(),cG=ar(),u0e=vn();function Adt(e){return{Field(t){let r=e.getType(),n=t.selectionSet;if(r)if((0,u0e.isLeafType)((0,u0e.getNamedType)(r))){if(n){let o=t.name.value,i=(0,sG.inspect)(r);e.reportError(new cG.GraphQLError(`Field "${o}" must not have a selection since type "${i}" has no subfields.`,{nodes:n}))}}else if(n){if(n.selections.length===0){let o=t.name.value,i=(0,sG.inspect)(r);e.reportError(new cG.GraphQLError(`Field "${o}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}else{let o=t.name.value,i=(0,sG.inspect)(r);e.reportError(new cG.GraphQLError(`Field "${o}" of type "${i}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}}});var dG=L(pG=>{"use strict";Object.defineProperty(pG,"__esModule",{value:!0});pG.printPathArray=wdt;function wdt(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var j2=L(x4=>{"use strict";Object.defineProperty(x4,"__esModule",{value:!0});x4.addPath=Idt;x4.pathToArray=kdt;function Idt(e,t,r){return{prev:e,key:t,typename:r}}function kdt(e){let t=[],r=e;for(;r;)t.push(r.key),r=r.prev;return t.reverse()}});var fG=L(_G=>{"use strict";Object.defineProperty(_G,"__esModule",{value:!0});_G.coerceInputValue=Ldt;var Cdt=gh(),E4=eo(),Pdt=us(),Odt=u4(),Ndt=hd(),Gu=j2(),Fdt=dG(),Rdt=vh(),cf=ar(),B2=vn();function Ldt(e,t,r=$dt){return q2(e,t,r,void 0)}function $dt(e,t,r){let n="Invalid value "+(0,E4.inspect)(t);throw e.length>0&&(n+=` at "value${(0,Fdt.printPathArray)(e)}"`),r.message=n+": "+r.message,r}function q2(e,t,r,n){if((0,B2.isNonNullType)(t)){if(e!=null)return q2(e,t.ofType,r,n);r((0,Gu.pathToArray)(n),e,new cf.GraphQLError(`Expected non-nullable type "${(0,E4.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,B2.isListType)(t)){let o=t.ofType;return(0,Odt.isIterableObject)(e)?Array.from(e,(i,a)=>{let s=(0,Gu.addPath)(n,a,void 0);return q2(i,o,r,s)}):[q2(e,o,r,n)]}if((0,B2.isInputObjectType)(t)){if(!(0,Ndt.isObjectLike)(e)||Array.isArray(e)){r((0,Gu.pathToArray)(n),e,new cf.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let o={},i=t.getFields();for(let a of Object.values(i)){let s=e[a.name];if(s===void 0){if(a.defaultValue!==void 0)o[a.name]=a.defaultValue;else if((0,B2.isNonNullType)(a.type)){let c=(0,E4.inspect)(a.type);r((0,Gu.pathToArray)(n),e,new cf.GraphQLError(`Field "${a.name}" of required type "${c}" was not provided.`))}continue}o[a.name]=q2(s,a.type,r,(0,Gu.addPath)(n,a.name,t.name))}for(let a of Object.keys(e))if(!i[a]){let s=(0,Rdt.suggestionList)(a,Object.keys(t.getFields()));r((0,Gu.pathToArray)(n),e,new cf.GraphQLError(`Field "${a}" is not defined by type "${t.name}".`+(0,Cdt.didYouMean)(s)))}if(t.isOneOf){let a=Object.keys(o);a.length!==1&&r((0,Gu.pathToArray)(n),e,new cf.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let s=a[0],c=o[s];c===null&&r((0,Gu.pathToArray)(n).concat(s),c,new cf.GraphQLError(`Field "${s}" must be non-null.`))}return o}if((0,B2.isLeafType)(t)){let o;try{o=t.parseValue(e)}catch(i){i instanceof cf.GraphQLError?r((0,Gu.pathToArray)(n),e,i):r((0,Gu.pathToArray)(n),e,new cf.GraphQLError(`Expected type "${t.name}". `+i.message,{originalError:i}));return}return o===void 0&&r((0,Gu.pathToArray)(n),e,new cf.GraphQLError(`Expected type "${t.name}".`)),o}(0,Pdt.invariant)(!1,"Unexpected input type: "+(0,E4.inspect)(t))}});var z2=L(mG=>{"use strict";Object.defineProperty(mG,"__esModule",{value:!0});mG.valueFromAST=U2;var Mdt=eo(),jdt=us(),Bdt=Sh(),R1=Sn(),rS=vn();function U2(e,t,r){if(e){if(e.kind===R1.Kind.VARIABLE){let n=e.name.value;if(r==null||r[n]===void 0)return;let o=r[n];return o===null&&(0,rS.isNonNullType)(t)?void 0:o}if((0,rS.isNonNullType)(t))return e.kind===R1.Kind.NULL?void 0:U2(e,t.ofType,r);if(e.kind===R1.Kind.NULL)return null;if((0,rS.isListType)(t)){let n=t.ofType;if(e.kind===R1.Kind.LIST){let i=[];for(let a of e.values)if(p0e(a,r)){if((0,rS.isNonNullType)(n))return;i.push(null)}else{let s=U2(a,n,r);if(s===void 0)return;i.push(s)}return i}let o=U2(e,n,r);return o===void 0?void 0:[o]}if((0,rS.isInputObjectType)(t)){if(e.kind!==R1.Kind.OBJECT)return;let n=Object.create(null),o=(0,Bdt.keyMap)(e.fields,i=>i.name.value);for(let i of Object.values(t.getFields())){let a=o[i.name];if(!a||p0e(a.value,r)){if(i.defaultValue!==void 0)n[i.name]=i.defaultValue;else if((0,rS.isNonNullType)(i.type))return;continue}let s=U2(a.value,i.type,r);if(s===void 0)return;n[i.name]=s}if(t.isOneOf){let i=Object.keys(n);if(i.length!==1||n[i[0]]===null)return}return n}if((0,rS.isLeafType)(t)){let n;try{n=t.parseLiteral(e,r)}catch{return}return n===void 0?void 0:n}(0,jdt.invariant)(!1,"Unexpected input type: "+(0,Mdt.inspect)(t))}}function p0e(e,t){return e.kind===R1.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var M1=L(V2=>{"use strict";Object.defineProperty(V2,"__esModule",{value:!0});V2.getArgumentValues=m0e;V2.getDirectiveValues=Gdt;V2.getVariableValues=Jdt;var L1=eo(),qdt=Sh(),Udt=dG(),lf=ar(),d0e=Sn(),_0e=Gc(),$1=vn(),zdt=fG(),Vdt=vd(),f0e=z2();function Jdt(e,t,r,n){let o=[],i=n?.maxErrors;try{let a=Kdt(e,t,r,s=>{if(i!=null&&o.length>=i)throw new lf.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");o.push(s)});if(o.length===0)return{coerced:a}}catch(a){o.push(a)}return{errors:o}}function Kdt(e,t,r,n){let o={};for(let i of t){let a=i.variable.name.value,s=(0,Vdt.typeFromAST)(e,i.type);if(!(0,$1.isInputType)(s)){let p=(0,_0e.print)(i.type);n(new lf.GraphQLError(`Variable "$${a}" expected value of type "${p}" which cannot be used as an input type.`,{nodes:i.type}));continue}if(!h0e(r,a)){if(i.defaultValue)o[a]=(0,f0e.valueFromAST)(i.defaultValue,s);else if((0,$1.isNonNullType)(s)){let p=(0,L1.inspect)(s);n(new lf.GraphQLError(`Variable "$${a}" of required type "${p}" was not provided.`,{nodes:i}))}continue}let c=r[a];if(c===null&&(0,$1.isNonNullType)(s)){let p=(0,L1.inspect)(s);n(new lf.GraphQLError(`Variable "$${a}" of non-null type "${p}" must not be null.`,{nodes:i}));continue}o[a]=(0,zdt.coerceInputValue)(c,s,(p,d,f)=>{let m=`Variable "$${a}" got invalid value `+(0,L1.inspect)(d);p.length>0&&(m+=` at "${a}${(0,Udt.printPathArray)(p)}"`),n(new lf.GraphQLError(m+"; "+f.message,{nodes:i,originalError:f}))})}return o}function m0e(e,t,r){var n;let o={},i=(n=t.arguments)!==null&&n!==void 0?n:[],a=(0,qdt.keyMap)(i,s=>s.name.value);for(let s of e.args){let c=s.name,p=s.type,d=a[c];if(!d){if(s.defaultValue!==void 0)o[c]=s.defaultValue;else if((0,$1.isNonNullType)(p))throw new lf.GraphQLError(`Argument "${c}" of required type "${(0,L1.inspect)(p)}" was not provided.`,{nodes:t});continue}let f=d.value,m=f.kind===d0e.Kind.NULL;if(f.kind===d0e.Kind.VARIABLE){let g=f.name.value;if(r==null||!h0e(r,g)){if(s.defaultValue!==void 0)o[c]=s.defaultValue;else if((0,$1.isNonNullType)(p))throw new lf.GraphQLError(`Argument "${c}" of required type "${(0,L1.inspect)(p)}" was provided the variable "$${g}" which was not provided a runtime value.`,{nodes:f});continue}m=r[g]==null}if(m&&(0,$1.isNonNullType)(p))throw new lf.GraphQLError(`Argument "${c}" of non-null type "${(0,L1.inspect)(p)}" must not be null.`,{nodes:f});let y=(0,f0e.valueFromAST)(f,p,r);if(y===void 0)throw new lf.GraphQLError(`Argument "${c}" has invalid value ${(0,_0e.print)(f)}.`,{nodes:f});o[c]=y}return o}function Gdt(e,t,r){var n;let o=(n=t.directives)===null||n===void 0?void 0:n.find(i=>i.name.value===e.name);if(o)return m0e(e,o,r)}function h0e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var A4=L(D4=>{"use strict";Object.defineProperty(D4,"__esModule",{value:!0});D4.collectFields=Wdt;D4.collectSubfields=Qdt;var hG=Sn(),Hdt=vn(),y0e=pc(),Zdt=vd(),g0e=M1();function Wdt(e,t,r,n,o){let i=new Map;return T4(e,t,r,n,o,i,new Set),i}function Qdt(e,t,r,n,o){let i=new Map,a=new Set;for(let s of o)s.selectionSet&&T4(e,t,r,n,s.selectionSet,i,a);return i}function T4(e,t,r,n,o,i,a){for(let s of o.selections)switch(s.kind){case hG.Kind.FIELD:{if(!yG(r,s))continue;let c=Xdt(s),p=i.get(c);p!==void 0?p.push(s):i.set(c,[s]);break}case hG.Kind.INLINE_FRAGMENT:{if(!yG(r,s)||!S0e(e,s,n))continue;T4(e,t,r,n,s.selectionSet,i,a);break}case hG.Kind.FRAGMENT_SPREAD:{let c=s.name.value;if(a.has(c)||!yG(r,s))continue;a.add(c);let p=t[c];if(!p||!S0e(e,p,n))continue;T4(e,t,r,n,p.selectionSet,i,a);break}}}function yG(e,t){let r=(0,g0e.getDirectiveValues)(y0e.GraphQLSkipDirective,t,e);if(r?.if===!0)return!1;let n=(0,g0e.getDirectiveValues)(y0e.GraphQLIncludeDirective,t,e);return n?.if!==!1}function S0e(e,t,r){let n=t.typeCondition;if(!n)return!0;let o=(0,Zdt.typeFromAST)(e,n);return o===r?!0:(0,Hdt.isAbstractType)(o)?e.isSubType(o,r):!1}function Xdt(e){return e.alias?e.alias.value:e.name.value}});var SG=L(gG=>{"use strict";Object.defineProperty(gG,"__esModule",{value:!0});gG.SingleFieldSubscriptionsRule=t_t;var v0e=ar(),Ydt=Sn(),e_t=A4();function t_t(e){return{OperationDefinition(t){if(t.operation==="subscription"){let r=e.getSchema(),n=r.getSubscriptionType();if(n){let o=t.name?t.name.value:null,i=Object.create(null),a=e.getDocument(),s=Object.create(null);for(let p of a.definitions)p.kind===Ydt.Kind.FRAGMENT_DEFINITION&&(s[p.name.value]=p);let c=(0,e_t.collectFields)(r,s,i,n,t.selectionSet);if(c.size>1){let f=[...c.values()].slice(1).flat();e.reportError(new v0e.GraphQLError(o!=null?`Subscription "${o}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:f}))}for(let p of c.values())p[0].name.value.startsWith("__")&&e.reportError(new v0e.GraphQLError(o!=null?`Subscription "${o}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:p}))}}}}}});var w4=L(vG=>{"use strict";Object.defineProperty(vG,"__esModule",{value:!0});vG.groupBy=r_t;function r_t(e,t){let r=new Map;for(let n of e){let o=t(n),i=r.get(o);i===void 0?r.set(o,[n]):i.push(n)}return r}});var xG=L(bG=>{"use strict";Object.defineProperty(bG,"__esModule",{value:!0});bG.UniqueArgumentDefinitionNamesRule=i_t;var n_t=w4(),o_t=ar();function i_t(e){return{DirectiveDefinition(n){var o;let i=(o=n.arguments)!==null&&o!==void 0?o:[];return r(`@${n.name.value}`,i)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(n){var o;let i=n.name.value,a=(o=n.fields)!==null&&o!==void 0?o:[];for(let c of a){var s;let p=c.name.value,d=(s=c.arguments)!==null&&s!==void 0?s:[];r(`${i}.${p}`,d)}return!1}function r(n,o){let i=(0,n_t.groupBy)(o,a=>a.name.value);for(let[a,s]of i)s.length>1&&e.reportError(new o_t.GraphQLError(`Argument "${n}(${a}:)" can only be defined once.`,{nodes:s.map(c=>c.name)}));return!1}}});var TG=L(EG=>{"use strict";Object.defineProperty(EG,"__esModule",{value:!0});EG.UniqueArgumentNamesRule=c_t;var a_t=w4(),s_t=ar();function c_t(e){return{Field:t,Directive:t};function t(r){var n;let o=(n=r.arguments)!==null&&n!==void 0?n:[],i=(0,a_t.groupBy)(o,a=>a.name.value);for(let[a,s]of i)s.length>1&&e.reportError(new s_t.GraphQLError(`There can be only one argument named "${a}".`,{nodes:s.map(c=>c.name)}))}}});var AG=L(DG=>{"use strict";Object.defineProperty(DG,"__esModule",{value:!0});DG.UniqueDirectiveNamesRule=l_t;var b0e=ar();function l_t(e){let t=Object.create(null),r=e.getSchema();return{DirectiveDefinition(n){let o=n.name.value;if(r!=null&&r.getDirective(o)){e.reportError(new b0e.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:n.name}));return}return t[o]?e.reportError(new b0e.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],n.name]})):t[o]=n.name,!1}}}});var kG=L(IG=>{"use strict";Object.defineProperty(IG,"__esModule",{value:!0});IG.UniqueDirectivesPerLocationRule=d_t;var u_t=ar(),wG=Sn(),x0e=tS(),p_t=pc();function d_t(e){let t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():p_t.specifiedDirectives;for(let s of n)t[s.name]=!s.isRepeatable;let o=e.getDocument().definitions;for(let s of o)s.kind===wG.Kind.DIRECTIVE_DEFINITION&&(t[s.name.value]=!s.repeatable);let i=Object.create(null),a=Object.create(null);return{enter(s){if(!("directives"in s)||!s.directives)return;let c;if(s.kind===wG.Kind.SCHEMA_DEFINITION||s.kind===wG.Kind.SCHEMA_EXTENSION)c=i;else if((0,x0e.isTypeDefinitionNode)(s)||(0,x0e.isTypeExtensionNode)(s)){let p=s.name.value;c=a[p],c===void 0&&(a[p]=c=Object.create(null))}else c=Object.create(null);for(let p of s.directives){let d=p.name.value;t[d]&&(c[d]?e.reportError(new u_t.GraphQLError(`The directive "@${d}" can only be used once at this location.`,{nodes:[c[d],p]})):c[d]=p)}}}}});var PG=L(CG=>{"use strict";Object.defineProperty(CG,"__esModule",{value:!0});CG.UniqueEnumValueNamesRule=f_t;var E0e=ar(),__t=vn();function f_t(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:o,EnumTypeExtension:o};function o(i){var a;let s=i.name.value;n[s]||(n[s]=Object.create(null));let c=(a=i.values)!==null&&a!==void 0?a:[],p=n[s];for(let d of c){let f=d.name.value,m=r[s];(0,__t.isEnumType)(m)&&m.getValue(f)?e.reportError(new E0e.GraphQLError(`Enum value "${s}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:d.name})):p[f]?e.reportError(new E0e.GraphQLError(`Enum value "${s}.${f}" can only be defined once.`,{nodes:[p[f],d.name]})):p[f]=d.name}return!1}}});var FG=L(NG=>{"use strict";Object.defineProperty(NG,"__esModule",{value:!0});NG.UniqueFieldDefinitionNamesRule=m_t;var T0e=ar(),OG=vn();function m_t(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:o,InputObjectTypeExtension:o,InterfaceTypeDefinition:o,InterfaceTypeExtension:o,ObjectTypeDefinition:o,ObjectTypeExtension:o};function o(i){var a;let s=i.name.value;n[s]||(n[s]=Object.create(null));let c=(a=i.fields)!==null&&a!==void 0?a:[],p=n[s];for(let d of c){let f=d.name.value;h_t(r[s],f)?e.reportError(new T0e.GraphQLError(`Field "${s}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:d.name})):p[f]?e.reportError(new T0e.GraphQLError(`Field "${s}.${f}" can only be defined once.`,{nodes:[p[f],d.name]})):p[f]=d.name}return!1}}function h_t(e,t){return(0,OG.isObjectType)(e)||(0,OG.isInterfaceType)(e)||(0,OG.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var LG=L(RG=>{"use strict";Object.defineProperty(RG,"__esModule",{value:!0});RG.UniqueFragmentNamesRule=g_t;var y_t=ar();function g_t(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(r){let n=r.name.value;return t[n]?e.reportError(new y_t.GraphQLError(`There can be only one fragment named "${n}".`,{nodes:[t[n],r.name]})):t[n]=r.name,!1}}}});var MG=L($G=>{"use strict";Object.defineProperty($G,"__esModule",{value:!0});$G.UniqueInputFieldNamesRule=b_t;var S_t=us(),v_t=ar();function b_t(e){let t=[],r=Object.create(null);return{ObjectValue:{enter(){t.push(r),r=Object.create(null)},leave(){let n=t.pop();n||(0,S_t.invariant)(!1),r=n}},ObjectField(n){let o=n.name.value;r[o]?e.reportError(new v_t.GraphQLError(`There can be only one input field named "${o}".`,{nodes:[r[o],n.name]})):r[o]=n.name}}}});var BG=L(jG=>{"use strict";Object.defineProperty(jG,"__esModule",{value:!0});jG.UniqueOperationNamesRule=E_t;var x_t=ar();function E_t(e){let t=Object.create(null);return{OperationDefinition(r){let n=r.name;return n&&(t[n.value]?e.reportError(new x_t.GraphQLError(`There can be only one operation named "${n.value}".`,{nodes:[t[n.value],n]})):t[n.value]=n),!1},FragmentDefinition:()=>!1}}});var UG=L(qG=>{"use strict";Object.defineProperty(qG,"__esModule",{value:!0});qG.UniqueOperationTypesRule=T_t;var D0e=ar();function T_t(e){let t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(i){var a;let s=(a=i.operationTypes)!==null&&a!==void 0?a:[];for(let c of s){let p=c.operation,d=r[p];n[p]?e.reportError(new D0e.GraphQLError(`Type for ${p} already defined in the schema. It cannot be redefined.`,{nodes:c})):d?e.reportError(new D0e.GraphQLError(`There can be only one ${p} type in schema.`,{nodes:[d,c]})):r[p]=c}return!1}}});var VG=L(zG=>{"use strict";Object.defineProperty(zG,"__esModule",{value:!0});zG.UniqueTypeNamesRule=D_t;var A0e=ar();function D_t(e){let t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(o){let i=o.name.value;if(r!=null&&r.getType(i)){e.reportError(new A0e.GraphQLError(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:o.name}));return}return t[i]?e.reportError(new A0e.GraphQLError(`There can be only one type named "${i}".`,{nodes:[t[i],o.name]})):t[i]=o.name,!1}}});var KG=L(JG=>{"use strict";Object.defineProperty(JG,"__esModule",{value:!0});JG.UniqueVariableNamesRule=I_t;var A_t=w4(),w_t=ar();function I_t(e){return{OperationDefinition(t){var r;let n=(r=t.variableDefinitions)!==null&&r!==void 0?r:[],o=(0,A_t.groupBy)(n,i=>i.variable.name.value);for(let[i,a]of o)a.length>1&&e.reportError(new w_t.GraphQLError(`There can be only one variable named "$${i}".`,{nodes:a.map(s=>s.variable.name)}))}}}});var HG=L(GG=>{"use strict";Object.defineProperty(GG,"__esModule",{value:!0});GG.ValuesOfCorrectTypeRule=N_t;var k_t=gh(),J2=eo(),C_t=Sh(),P_t=vh(),uf=ar(),O_t=Sn(),I4=Gc(),bd=vn();function N_t(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(r){t[r.variable.name.value]=r},ListValue(r){let n=(0,bd.getNullableType)(e.getParentInputType());if(!(0,bd.isListType)(n))return nS(e,r),!1},ObjectValue(r){let n=(0,bd.getNamedType)(e.getInputType());if(!(0,bd.isInputObjectType)(n))return nS(e,r),!1;let o=(0,C_t.keyMap)(r.fields,i=>i.name.value);for(let i of Object.values(n.getFields()))if(!o[i.name]&&(0,bd.isRequiredInputField)(i)){let s=(0,J2.inspect)(i.type);e.reportError(new uf.GraphQLError(`Field "${n.name}.${i.name}" of required type "${s}" was not provided.`,{nodes:r}))}n.isOneOf&&F_t(e,r,n,o)},ObjectField(r){let n=(0,bd.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,bd.isInputObjectType)(n)){let i=(0,P_t.suggestionList)(r.name.value,Object.keys(n.getFields()));e.reportError(new uf.GraphQLError(`Field "${r.name.value}" is not defined by type "${n.name}".`+(0,k_t.didYouMean)(i),{nodes:r}))}},NullValue(r){let n=e.getInputType();(0,bd.isNonNullType)(n)&&e.reportError(new uf.GraphQLError(`Expected value of type "${(0,J2.inspect)(n)}", found ${(0,I4.print)(r)}.`,{nodes:r}))},EnumValue:r=>nS(e,r),IntValue:r=>nS(e,r),FloatValue:r=>nS(e,r),StringValue:r=>nS(e,r),BooleanValue:r=>nS(e,r)}}function nS(e,t){let r=e.getInputType();if(!r)return;let n=(0,bd.getNamedType)(r);if(!(0,bd.isLeafType)(n)){let o=(0,J2.inspect)(r);e.reportError(new uf.GraphQLError(`Expected value of type "${o}", found ${(0,I4.print)(t)}.`,{nodes:t}));return}try{if(n.parseLiteral(t,void 0)===void 0){let i=(0,J2.inspect)(r);e.reportError(new uf.GraphQLError(`Expected value of type "${i}", found ${(0,I4.print)(t)}.`,{nodes:t}))}}catch(o){let i=(0,J2.inspect)(r);o instanceof uf.GraphQLError?e.reportError(o):e.reportError(new uf.GraphQLError(`Expected value of type "${i}", found ${(0,I4.print)(t)}; `+o.message,{nodes:t,originalError:o}))}}function F_t(e,t,r,n){var o;let i=Object.keys(n);if(i.length!==1){e.reportError(new uf.GraphQLError(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));return}let s=(o=n[i[0]])===null||o===void 0?void 0:o.value;(!s||s.kind===O_t.Kind.NULL)&&e.reportError(new uf.GraphQLError(`Field "${r.name}.${i[0]}" must be non-null.`,{nodes:[t]}))}});var WG=L(ZG=>{"use strict";Object.defineProperty(ZG,"__esModule",{value:!0});ZG.VariablesAreInputTypesRule=j_t;var R_t=ar(),L_t=Gc(),$_t=vn(),M_t=vd();function j_t(e){return{VariableDefinition(t){let r=(0,M_t.typeFromAST)(e.getSchema(),t.type);if(r!==void 0&&!(0,$_t.isInputType)(r)){let n=t.variable.name.value,o=(0,L_t.print)(t.type);e.reportError(new R_t.GraphQLError(`Variable "$${n}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}}});var XG=L(QG=>{"use strict";Object.defineProperty(QG,"__esModule",{value:!0});QG.VariablesInAllowedPositionRule=U_t;var w0e=eo(),I0e=ar(),B_t=Sn(),k4=vn(),k0e=A2(),q_t=vd();function U_t(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){let n=e.getRecursiveVariableUsages(r);for(let{node:o,type:i,defaultValue:a,parentType:s}of n){let c=o.name.value,p=t[c];if(p&&i){let d=e.getSchema(),f=(0,q_t.typeFromAST)(d,p.type);if(f&&!z_t(d,f,p.defaultValue,i,a)){let m=(0,w0e.inspect)(f),y=(0,w0e.inspect)(i);e.reportError(new I0e.GraphQLError(`Variable "$${c}" of type "${m}" used in position expecting type "${y}".`,{nodes:[p,o]}))}(0,k4.isInputObjectType)(s)&&s.isOneOf&&(0,k4.isNullableType)(f)&&e.reportError(new I0e.GraphQLError(`Variable "$${c}" is of type "${f}" but must be non-nullable to be used for OneOf Input Object "${s}".`,{nodes:[p,o]}))}}}},VariableDefinition(r){t[r.variable.name.value]=r}}}function z_t(e,t,r,n,o){if((0,k4.isNonNullType)(n)&&!(0,k4.isNonNullType)(t)){if(!(r!=null&&r.kind!==B_t.Kind.NULL)&&!(o!==void 0))return!1;let s=n.ofType;return(0,k0e.isTypeSubTypeOf)(e,t,s)}return(0,k0e.isTypeSubTypeOf)(e,t,n)}});var YG=L(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});Th.specifiedSDLRules=Th.specifiedRules=Th.recommendedRules=void 0;var V_t=mK(),J_t=yK(),K_t=SK(),C0e=vK(),P0e=TK(),G_t=AK(),O0e=kK(),H_t=PK(),Z_t=NK(),W_t=RK(),Q_t=$K(),X_t=jK(),Y_t=qK(),eft=zK(),tft=YK(),rft=rG(),nft=oG(),N0e=aG(),oft=uG(),ift=SG(),aft=xG(),F0e=TG(),sft=AG(),R0e=kG(),cft=PG(),lft=FG(),uft=LG(),L0e=MG(),pft=BG(),dft=UG(),_ft=VG(),fft=KG(),mft=HG(),hft=WG(),yft=XG(),$0e=Object.freeze([W_t.MaxIntrospectionDepthRule]);Th.recommendedRules=$0e;var gft=Object.freeze([V_t.ExecutableDefinitionsRule,pft.UniqueOperationNamesRule,H_t.LoneAnonymousOperationRule,ift.SingleFieldSubscriptionsRule,O0e.KnownTypeNamesRule,K_t.FragmentsOnCompositeTypesRule,hft.VariablesAreInputTypesRule,oft.ScalarLeafsRule,J_t.FieldsOnCorrectTypeRule,uft.UniqueFragmentNamesRule,G_t.KnownFragmentNamesRule,Y_t.NoUnusedFragmentsRule,rft.PossibleFragmentSpreadsRule,Q_t.NoFragmentCyclesRule,fft.UniqueVariableNamesRule,X_t.NoUndefinedVariablesRule,eft.NoUnusedVariablesRule,P0e.KnownDirectivesRule,R0e.UniqueDirectivesPerLocationRule,C0e.KnownArgumentNamesRule,F0e.UniqueArgumentNamesRule,mft.ValuesOfCorrectTypeRule,N0e.ProvidedRequiredArgumentsRule,yft.VariablesInAllowedPositionRule,tft.OverlappingFieldsCanBeMergedRule,L0e.UniqueInputFieldNamesRule,...$0e]);Th.specifiedRules=gft;var Sft=Object.freeze([Z_t.LoneSchemaDefinitionRule,dft.UniqueOperationTypesRule,_ft.UniqueTypeNamesRule,cft.UniqueEnumValueNamesRule,lft.UniqueFieldDefinitionNamesRule,aft.UniqueArgumentDefinitionNamesRule,sft.UniqueDirectiveNamesRule,O0e.KnownTypeNamesRule,P0e.KnownDirectivesRule,R0e.UniqueDirectivesPerLocationRule,nft.PossibleTypeExtensionsRule,C0e.KnownArgumentNamesOnDirectivesRule,F0e.UniqueArgumentNamesRule,L0e.UniqueInputFieldNamesRule,N0e.ProvidedRequiredArgumentsOnDirectivesRule]);Th.specifiedSDLRules=Sft});var rH=L(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});Dh.ValidationContext=Dh.SDLValidationContext=Dh.ASTValidationContext=void 0;var M0e=Sn(),vft=Gg(),j0e=f4(),K2=class{constructor(t,r){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let r;if(this._fragments)r=this._fragments;else{r=Object.create(null);for(let n of this.getDocument().definitions)n.kind===M0e.Kind.FRAGMENT_DEFINITION&&(r[n.name.value]=n);this._fragments=r}return r[t]}getFragmentSpreads(t){let r=this._fragmentSpreads.get(t);if(!r){r=[];let n=[t],o;for(;o=n.pop();)for(let i of o.selections)i.kind===M0e.Kind.FRAGMENT_SPREAD?r.push(i):i.selectionSet&&n.push(i.selectionSet);this._fragmentSpreads.set(t,r)}return r}getRecursivelyReferencedFragments(t){let r=this._recursivelyReferencedFragments.get(t);if(!r){r=[];let n=Object.create(null),o=[t.selectionSet],i;for(;i=o.pop();)for(let a of this.getFragmentSpreads(i)){let s=a.name.value;if(n[s]!==!0){n[s]=!0;let c=this.getFragment(s);c&&(r.push(c),o.push(c.selectionSet))}}this._recursivelyReferencedFragments.set(t,r)}return r}};Dh.ASTValidationContext=K2;var eH=class extends K2{constructor(t,r,n){super(t,n),this._schema=r}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};Dh.SDLValidationContext=eH;var tH=class extends K2{constructor(t,r,n,o){super(r,o),this._schema=t,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let r=this._variableUsages.get(t);if(!r){let n=[],o=new j0e.TypeInfo(this._schema);(0,vft.visit)(t,(0,j0e.visitWithTypeInfo)(o,{VariableDefinition:()=>!1,Variable(i){n.push({node:i,type:o.getInputType(),defaultValue:o.getDefaultValue(),parentType:o.getParentInputType()})}})),r=n,this._variableUsages.set(t,r)}return r}getRecursiveVariableUsages(t){let r=this._recursiveVariableUsages.get(t);if(!r){r=this.getVariableUsages(t);for(let n of this.getRecursivelyReferencedFragments(t))r=r.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(t,r)}return r}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};Dh.ValidationContext=tH});var G2=L(j1=>{"use strict";Object.defineProperty(j1,"__esModule",{value:!0});j1.assertValidSDL=Ift;j1.assertValidSDLExtension=kft;j1.validate=wft;j1.validateSDL=nH;var bft=Ls(),xft=qO(),Eft=ar(),Tft=Bl(),C4=Gg(),Dft=L2(),B0e=f4(),q0e=YG(),U0e=rH(),Aft=(0,xft.mapValue)(Tft.QueryDocumentKeys,e=>e.filter(t=>t!=="description"));function wft(e,t,r=q0e.specifiedRules,n,o=new B0e.TypeInfo(e)){var i;let a=(i=n?.maxErrors)!==null&&i!==void 0?i:100;t||(0,bft.devAssert)(!1,"Must provide document."),(0,Dft.assertValidSchema)(e);let s=Object.freeze({}),c=[],p=new U0e.ValidationContext(e,t,o,f=>{if(c.length>=a)throw c.push(new Eft.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),s;c.push(f)}),d=(0,C4.visitInParallel)(r.map(f=>f(p)));try{(0,C4.visit)(t,(0,B0e.visitWithTypeInfo)(o,d),Aft)}catch(f){if(f!==s)throw f}return c}function nH(e,t,r=q0e.specifiedSDLRules){let n=[],o=new U0e.SDLValidationContext(e,t,a=>{n.push(a)}),i=r.map(a=>a(o));return(0,C4.visit)(e,(0,C4.visitInParallel)(i)),n}function Ift(e){let t=nH(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(` +`))}var lK=class{constructor(t){this._errors=[],this.schema=t}reportError(t,r){let n=Array.isArray(r)?r.filter(Boolean):r;this._errors.push(new Hut.GraphQLError(t,{nodes:n}))}getErrors(){return this._errors}};function Xut(e){let t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,gi.isObjectType)(r)){var n;e.reportError(`Query root type must be Object type, it cannot be ${(0,ds.inspect)(r)}.`,(n=cK(t,sK.OperationTypeNode.QUERY))!==null&&n!==void 0?n:r.astNode)}let o=t.getMutationType();if(o&&!(0,gi.isObjectType)(o)){var i;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,ds.inspect)(o)}.`,(i=cK(t,sK.OperationTypeNode.MUTATION))!==null&&i!==void 0?i:o.astNode)}let a=t.getSubscriptionType();if(a&&!(0,gi.isObjectType)(a)){var s;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,ds.inspect)(a)}.`,(s=cK(t,sK.OperationTypeNode.SUBSCRIPTION))!==null&&s!==void 0?s:a.astNode)}}function cK(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap(n=>{var o;return(o=n?.operationTypes)!==null&&o!==void 0?o:[]}).find(n=>n.operation===t))===null||r===void 0?void 0:r.type}function Yut(e){for(let r of e.schema.getDirectives()){if(!(0,DSe.isDirective)(r)){e.reportError(`Expected directive but got: ${(0,ds.inspect)(r)}.`,r?.astNode);continue}oS(e,r),r.locations.length===0&&e.reportError(`Directive @${r.name} must include 1 or more locations.`,r.astNode);for(let n of r.args)if(oS(e,n),(0,gi.isInputType)(n.type)||e.reportError(`The type of @${r.name}(${n.name}:) must be Input Type but got: ${(0,ds.inspect)(n.type)}.`,n.astNode),(0,gi.isRequiredArgument)(n)&&n.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${n.name}:) cannot be deprecated.`,[uK(n.astNode),(t=n.astNode)===null||t===void 0?void 0:t.type])}}}function oS(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function ept(e){let t=spt(e),r=e.schema.getTypeMap();for(let n of Object.values(r)){if(!(0,gi.isNamedType)(n)){e.reportError(`Expected GraphQL named type but got: ${(0,ds.inspect)(n)}.`,n.astNode);continue}(0,Zut.isIntrospectionType)(n)||oS(e,n),(0,gi.isObjectType)(n)||(0,gi.isInterfaceType)(n)?(xSe(e,n),ESe(e,n)):(0,gi.isUnionType)(n)?npt(e,n):(0,gi.isEnumType)(n)?opt(e,n):(0,gi.isInputObjectType)(n)&&(ipt(e,n),t(n))}}function xSe(e,t){let r=Object.values(t.getFields());r.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let a of r){if(oS(e,a),!(0,gi.isOutputType)(a.type)){var n;e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${(0,ds.inspect)(a.type)}.`,(n=a.astNode)===null||n===void 0?void 0:n.type)}for(let s of a.args){let c=s.name;if(oS(e,s),!(0,gi.isInputType)(s.type)){var o;e.reportError(`The type of ${t.name}.${a.name}(${c}:) must be Input Type but got: ${(0,ds.inspect)(s.type)}.`,(o=s.astNode)===null||o===void 0?void 0:o.type)}if((0,gi.isRequiredArgument)(s)&&s.deprecationReason!=null){var i;e.reportError(`Required argument ${t.name}.${a.name}(${c}:) cannot be deprecated.`,[uK(s.astNode),(i=s.astNode)===null||i===void 0?void 0:i.type])}}}}function ESe(e,t){let r=Object.create(null);for(let n of t.getInterfaces()){if(!(0,gi.isInterfaceType)(n)){e.reportError(`Type ${(0,ds.inspect)(t)} must only implement Interface types, it cannot implement ${(0,ds.inspect)(n)}.`,$A(t,n));continue}if(t===n){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,$A(t,n));continue}if(r[n.name]){e.reportError(`Type ${t.name} can only implement ${n.name} once.`,$A(t,n));continue}r[n.name]=!0,rpt(e,t,n),tpt(e,t,n)}}function tpt(e,t,r){let n=t.getFields();for(let c of Object.values(r.getFields())){let p=c.name,d=n[p];if(!d){e.reportError(`Interface field ${r.name}.${p} expected but ${t.name} does not provide it.`,[c.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,bSe.isTypeSubTypeOf)(e.schema,d.type,c.type)){var o,i;e.reportError(`Interface field ${r.name}.${p} expects type ${(0,ds.inspect)(c.type)} but ${t.name}.${p} is type ${(0,ds.inspect)(d.type)}.`,[(o=c.astNode)===null||o===void 0?void 0:o.type,(i=d.astNode)===null||i===void 0?void 0:i.type])}for(let f of c.args){let m=f.name,y=d.args.find(g=>g.name===m);if(!y){e.reportError(`Interface field argument ${r.name}.${p}(${m}:) expected but ${t.name}.${p} does not provide it.`,[f.astNode,d.astNode]);continue}if(!(0,bSe.isEqualType)(f.type,y.type)){var a,s;e.reportError(`Interface field argument ${r.name}.${p}(${m}:) expects type ${(0,ds.inspect)(f.type)} but ${t.name}.${p}(${m}:) is type ${(0,ds.inspect)(y.type)}.`,[(a=f.astNode)===null||a===void 0?void 0:a.type,(s=y.astNode)===null||s===void 0?void 0:s.type])}}for(let f of d.args){let m=f.name;!c.args.find(g=>g.name===m)&&(0,gi.isRequiredArgument)(f)&&e.reportError(`Object field ${t.name}.${p} includes required argument ${m} that is missing from the Interface field ${r.name}.${p}.`,[f.astNode,c.astNode])}}}function rpt(e,t,r){let n=t.getInterfaces();for(let o of r.getInterfaces())n.includes(o)||e.reportError(o===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${o.name} because it is implemented by ${r.name}.`,[...$A(r,o),...$A(t,r)])}function npt(e,t){let r=t.getTypes();r.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let n=Object.create(null);for(let o of r){if(n[o.name]){e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,TSe(t,o.name));continue}n[o.name]=!0,(0,gi.isObjectType)(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,ds.inspect)(o)}.`,TSe(t,String(o)))}}function opt(e,t){let r=t.getValues();r.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let n of r)oS(e,n)}function ipt(e,t){let r=Object.values(t.getFields());r.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let i of r){if(oS(e,i),!(0,gi.isInputType)(i.type)){var n;e.reportError(`The type of ${t.name}.${i.name} must be Input Type but got: ${(0,ds.inspect)(i.type)}.`,(n=i.astNode)===null||n===void 0?void 0:n.type)}if((0,gi.isRequiredInputField)(i)&&i.deprecationReason!=null){var o;e.reportError(`Required input field ${t.name}.${i.name} cannot be deprecated.`,[uK(i.astNode),(o=i.astNode)===null||o===void 0?void 0:o.type])}t.isOneOf&&apt(t,i,e)}}function apt(e,t,r){if((0,gi.isNonNullType)(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(n=t.astNode)===null||n===void 0?void 0:n.type)}t.defaultValue!==void 0&&r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function spt(e){let t=Object.create(null),r=[],n=Object.create(null);return o;function o(i){if(t[i.name])return;t[i.name]=!0,n[i.name]=r.length;let a=Object.values(i.getFields());for(let s of a)if((0,gi.isNonNullType)(s.type)&&(0,gi.isInputObjectType)(s.type.ofType)){let c=s.type.ofType,p=n[c.name];if(r.push(s),p===void 0)o(c);else{let d=r.slice(p),f=d.map(m=>m.name).join(".");e.reportError(`Cannot reference Input Object "${c.name}" within itself through a series of non-null fields: "${f}".`,d.map(m=>m.astNode))}r.pop()}n[i.name]=void 0}}function $A(e,t){let{astNode:r,extensionASTNodes:n}=e;return(r!=null?[r,...n]:n).flatMap(i=>{var a;return(a=i.interfaces)!==null&&a!==void 0?a:[]}).filter(i=>i.name.value===t.name)}function TSe(e,t){let{astNode:r,extensionASTNodes:n}=e;return(r!=null?[r,...n]:n).flatMap(i=>{var a;return(a=i.types)!==null&&a!==void 0?a:[]}).filter(i=>i.name.value===t)}function uK(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(r=>r.name.value===DSe.GraphQLDeprecatedDirective.name)}});var bd=L(_K=>{"use strict";Object.defineProperty(_K,"__esModule",{value:!0});_K.typeFromAST=dK;var pK=Sn(),ISe=vn();function dK(e,t){switch(t.kind){case pK.Kind.LIST_TYPE:{let r=dK(e,t.type);return r&&new ISe.GraphQLList(r)}case pK.Kind.NON_NULL_TYPE:{let r=dK(e,t.type);return r&&new ISe.GraphQLNonNull(r)}case pK.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var h4=L(jA=>{"use strict";Object.defineProperty(jA,"__esModule",{value:!0});jA.TypeInfo=void 0;jA.visitWithTypeInfo=upt;var cpt=ql(),Si=Sn(),wSe=Qg(),vi=vn(),L1=Vl(),kSe=bd(),fK=class{constructor(t,r,n){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n??lpt,r&&((0,vi.isInputType)(r)&&this._inputTypeStack.push(r),(0,vi.isCompositeType)(r)&&this._parentTypeStack.push(r),(0,vi.isOutputType)(r)&&this._typeStack.push(r))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){let r=this._schema;switch(t.kind){case Si.Kind.SELECTION_SET:{let o=(0,vi.getNamedType)(this.getType());this._parentTypeStack.push((0,vi.isCompositeType)(o)?o:void 0);break}case Si.Kind.FIELD:{let o=this.getParentType(),i,a;o&&(i=this._getFieldDef(r,o,t),i&&(a=i.type)),this._fieldDefStack.push(i),this._typeStack.push((0,vi.isOutputType)(a)?a:void 0);break}case Si.Kind.DIRECTIVE:this._directive=r.getDirective(t.name.value);break;case Si.Kind.OPERATION_DEFINITION:{let o=r.getRootType(t.operation);this._typeStack.push((0,vi.isObjectType)(o)?o:void 0);break}case Si.Kind.INLINE_FRAGMENT:case Si.Kind.FRAGMENT_DEFINITION:{let o=t.typeCondition,i=o?(0,kSe.typeFromAST)(r,o):(0,vi.getNamedType)(this.getType());this._typeStack.push((0,vi.isOutputType)(i)?i:void 0);break}case Si.Kind.VARIABLE_DEFINITION:{let o=(0,kSe.typeFromAST)(r,t.type);this._inputTypeStack.push((0,vi.isInputType)(o)?o:void 0);break}case Si.Kind.ARGUMENT:{var n;let o,i,a=(n=this.getDirective())!==null&&n!==void 0?n:this.getFieldDef();a&&(o=a.args.find(s=>s.name===t.name.value),o&&(i=o.type)),this._argument=o,this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,vi.isInputType)(i)?i:void 0);break}case Si.Kind.LIST:{let o=(0,vi.getNullableType)(this.getInputType()),i=(0,vi.isListType)(o)?o.ofType:o;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,vi.isInputType)(i)?i:void 0);break}case Si.Kind.OBJECT_FIELD:{let o=(0,vi.getNamedType)(this.getInputType()),i,a;(0,vi.isInputObjectType)(o)&&(a=o.getFields()[t.name.value],a&&(i=a.type)),this._defaultValueStack.push(a?a.defaultValue:void 0),this._inputTypeStack.push((0,vi.isInputType)(i)?i:void 0);break}case Si.Kind.ENUM:{let o=(0,vi.getNamedType)(this.getInputType()),i;(0,vi.isEnumType)(o)&&(i=o.getValue(t.value)),this._enumValue=i;break}default:}}leave(t){switch(t.kind){case Si.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case Si.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Si.Kind.DIRECTIVE:this._directive=null;break;case Si.Kind.OPERATION_DEFINITION:case Si.Kind.INLINE_FRAGMENT:case Si.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Si.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Si.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Si.Kind.LIST:case Si.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Si.Kind.ENUM:this._enumValue=null;break;default:}}};jA.TypeInfo=fK;function lpt(e,t,r){let n=r.name.value;if(n===L1.SchemaMetaFieldDef.name&&e.getQueryType()===t)return L1.SchemaMetaFieldDef;if(n===L1.TypeMetaFieldDef.name&&e.getQueryType()===t)return L1.TypeMetaFieldDef;if(n===L1.TypeNameMetaFieldDef.name&&(0,vi.isCompositeType)(t))return L1.TypeNameMetaFieldDef;if((0,vi.isObjectType)(t)||(0,vi.isInterfaceType)(t))return t.getFields()[n]}function upt(e,t){return{enter(...r){let n=r[0];e.enter(n);let o=(0,wSe.getEnterLeaveForKind)(t,n.kind).enter;if(o){let i=o.apply(t,r);return i!==void 0&&(e.leave(n),(0,cpt.isNode)(i)&&e.enter(i)),i}},leave(...r){let n=r[0],o=(0,wSe.getEnterLeaveForKind)(t,n.kind).leave,i;return o&&(i=o.apply(t,r)),e.leave(n),i}}}});var iS=L(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.isConstValueNode=mK;Hc.isDefinitionNode=ppt;Hc.isExecutableDefinitionNode=CSe;Hc.isSchemaCoordinateNode=fpt;Hc.isSelectionNode=dpt;Hc.isTypeDefinitionNode=NSe;Hc.isTypeExtensionNode=RSe;Hc.isTypeNode=_pt;Hc.isTypeSystemDefinitionNode=OSe;Hc.isTypeSystemExtensionNode=FSe;Hc.isValueNode=PSe;var tn=Sn();function ppt(e){return CSe(e)||OSe(e)||FSe(e)}function CSe(e){return e.kind===tn.Kind.OPERATION_DEFINITION||e.kind===tn.Kind.FRAGMENT_DEFINITION}function dpt(e){return e.kind===tn.Kind.FIELD||e.kind===tn.Kind.FRAGMENT_SPREAD||e.kind===tn.Kind.INLINE_FRAGMENT}function PSe(e){return e.kind===tn.Kind.VARIABLE||e.kind===tn.Kind.INT||e.kind===tn.Kind.FLOAT||e.kind===tn.Kind.STRING||e.kind===tn.Kind.BOOLEAN||e.kind===tn.Kind.NULL||e.kind===tn.Kind.ENUM||e.kind===tn.Kind.LIST||e.kind===tn.Kind.OBJECT}function mK(e){return PSe(e)&&(e.kind===tn.Kind.LIST?e.values.some(mK):e.kind===tn.Kind.OBJECT?e.fields.some(t=>mK(t.value)):e.kind!==tn.Kind.VARIABLE)}function _pt(e){return e.kind===tn.Kind.NAMED_TYPE||e.kind===tn.Kind.LIST_TYPE||e.kind===tn.Kind.NON_NULL_TYPE}function OSe(e){return e.kind===tn.Kind.SCHEMA_DEFINITION||NSe(e)||e.kind===tn.Kind.DIRECTIVE_DEFINITION}function NSe(e){return e.kind===tn.Kind.SCALAR_TYPE_DEFINITION||e.kind===tn.Kind.OBJECT_TYPE_DEFINITION||e.kind===tn.Kind.INTERFACE_TYPE_DEFINITION||e.kind===tn.Kind.UNION_TYPE_DEFINITION||e.kind===tn.Kind.ENUM_TYPE_DEFINITION||e.kind===tn.Kind.INPUT_OBJECT_TYPE_DEFINITION}function FSe(e){return e.kind===tn.Kind.SCHEMA_EXTENSION||RSe(e)}function RSe(e){return e.kind===tn.Kind.SCALAR_TYPE_EXTENSION||e.kind===tn.Kind.OBJECT_TYPE_EXTENSION||e.kind===tn.Kind.INTERFACE_TYPE_EXTENSION||e.kind===tn.Kind.UNION_TYPE_EXTENSION||e.kind===tn.Kind.ENUM_TYPE_EXTENSION||e.kind===tn.Kind.INPUT_OBJECT_TYPE_EXTENSION}function fpt(e){return e.kind===tn.Kind.TYPE_COORDINATE||e.kind===tn.Kind.MEMBER_COORDINATE||e.kind===tn.Kind.ARGUMENT_COORDINATE||e.kind===tn.Kind.DIRECTIVE_COORDINATE||e.kind===tn.Kind.DIRECTIVE_ARGUMENT_COORDINATE}});var yK=L(hK=>{"use strict";Object.defineProperty(hK,"__esModule",{value:!0});hK.ExecutableDefinitionsRule=ypt;var mpt=ar(),LSe=Sn(),hpt=iS();function ypt(e){return{Document(t){for(let r of t.definitions)if(!(0,hpt.isExecutableDefinitionNode)(r)){let n=r.kind===LSe.Kind.SCHEMA_DEFINITION||r.kind===LSe.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new mpt.GraphQLError(`The ${n} definition is not executable.`,{nodes:r}))}return!1}}}});var SK=L(gK=>{"use strict";Object.defineProperty(gK,"__esModule",{value:!0});gK.FieldsOnCorrectTypeRule=bpt;var $Se=bh(),gpt=xA(),Spt=Eh(),vpt=ar(),BA=vn();function bpt(e){return{Field(t){let r=e.getParentType();if(r&&!e.getFieldDef()){let o=e.getSchema(),i=t.name.value,a=(0,$Se.didYouMean)("to use an inline fragment on",xpt(o,r,i));a===""&&(a=(0,$Se.didYouMean)(Ept(r,i))),e.reportError(new vpt.GraphQLError(`Cannot query field "${i}" on type "${r.name}".`+a,{nodes:t}))}}}}function xpt(e,t,r){if(!(0,BA.isAbstractType)(t))return[];let n=new Set,o=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[r]){n.add(a),o[a.name]=1;for(let s of a.getInterfaces()){var i;s.getFields()[r]&&(n.add(s),o[s.name]=((i=o[s.name])!==null&&i!==void 0?i:0)+1)}}return[...n].sort((a,s)=>{let c=o[s.name]-o[a.name];return c!==0?c:(0,BA.isInterfaceType)(a)&&e.isSubType(a,s)?-1:(0,BA.isInterfaceType)(s)&&e.isSubType(s,a)?1:(0,gpt.naturalCompare)(a.name,s.name)}).map(a=>a.name)}function Ept(e,t){if((0,BA.isObjectType)(e)||(0,BA.isInterfaceType)(e)){let r=Object.keys(e.getFields());return(0,Spt.suggestionList)(t,r)}return[]}});var bK=L(vK=>{"use strict";Object.defineProperty(vK,"__esModule",{value:!0});vK.FragmentsOnCompositeTypesRule=Tpt;var MSe=ar(),jSe=Gc(),BSe=vn(),qSe=bd();function Tpt(e){return{InlineFragment(t){let r=t.typeCondition;if(r){let n=(0,qSe.typeFromAST)(e.getSchema(),r);if(n&&!(0,BSe.isCompositeType)(n)){let o=(0,jSe.print)(r);e.reportError(new MSe.GraphQLError(`Fragment cannot condition on non composite type "${o}".`,{nodes:r}))}}},FragmentDefinition(t){let r=(0,qSe.typeFromAST)(e.getSchema(),t.typeCondition);if(r&&!(0,BSe.isCompositeType)(r)){let n=(0,jSe.print)(t.typeCondition);e.reportError(new MSe.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}});var xK=L(y4=>{"use strict";Object.defineProperty(y4,"__esModule",{value:!0});y4.KnownArgumentNamesOnDirectivesRule=VSe;y4.KnownArgumentNamesRule=Ipt;var USe=bh(),zSe=Eh(),JSe=ar(),Dpt=Sn(),Apt=pc();function Ipt(e){return{...VSe(e),Argument(t){let r=e.getArgument(),n=e.getFieldDef(),o=e.getParentType();if(!r&&n&&o){let i=t.name.value,a=n.args.map(c=>c.name),s=(0,zSe.suggestionList)(i,a);e.reportError(new JSe.GraphQLError(`Unknown argument "${i}" on field "${o.name}.${n.name}".`+(0,USe.didYouMean)(s),{nodes:t}))}}}}function VSe(e){let t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Apt.specifiedDirectives;for(let a of n)t[a.name]=a.args.map(s=>s.name);let o=e.getDocument().definitions;for(let a of o)if(a.kind===Dpt.Kind.DIRECTIVE_DEFINITION){var i;let s=(i=a.arguments)!==null&&i!==void 0?i:[];t[a.name.value]=s.map(c=>c.name.value)}return{Directive(a){let s=a.name.value,c=t[s];if(a.arguments&&c)for(let p of a.arguments){let d=p.name.value;if(!c.includes(d)){let f=(0,zSe.suggestionList)(d,c);e.reportError(new JSe.GraphQLError(`Unknown argument "${d}" on directive "@${s}".`+(0,USe.didYouMean)(f),{nodes:p}))}}return!1}}}});var AK=L(DK=>{"use strict";Object.defineProperty(DK,"__esModule",{value:!0});DK.KnownDirectivesRule=Cpt;var wpt=eo(),EK=us(),KSe=ar(),TK=ql(),na=k1(),Wo=Sn(),kpt=pc();function Cpt(e){let t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():kpt.specifiedDirectives;for(let i of n)t[i.name]=i.locations;let o=e.getDocument().definitions;for(let i of o)i.kind===Wo.Kind.DIRECTIVE_DEFINITION&&(t[i.name.value]=i.locations.map(a=>a.value));return{Directive(i,a,s,c,p){let d=i.name.value,f=t[d];if(!f){e.reportError(new KSe.GraphQLError(`Unknown directive "@${d}".`,{nodes:i}));return}let m=Ppt(p);m&&!f.includes(m)&&e.reportError(new KSe.GraphQLError(`Directive "@${d}" may not be used on ${m}.`,{nodes:i}))}}}function Ppt(e){let t=e[e.length-1];switch("kind"in t||(0,EK.invariant)(!1),t.kind){case Wo.Kind.OPERATION_DEFINITION:return Opt(t.operation);case Wo.Kind.FIELD:return na.DirectiveLocation.FIELD;case Wo.Kind.FRAGMENT_SPREAD:return na.DirectiveLocation.FRAGMENT_SPREAD;case Wo.Kind.INLINE_FRAGMENT:return na.DirectiveLocation.INLINE_FRAGMENT;case Wo.Kind.FRAGMENT_DEFINITION:return na.DirectiveLocation.FRAGMENT_DEFINITION;case Wo.Kind.VARIABLE_DEFINITION:return na.DirectiveLocation.VARIABLE_DEFINITION;case Wo.Kind.SCHEMA_DEFINITION:case Wo.Kind.SCHEMA_EXTENSION:return na.DirectiveLocation.SCHEMA;case Wo.Kind.SCALAR_TYPE_DEFINITION:case Wo.Kind.SCALAR_TYPE_EXTENSION:return na.DirectiveLocation.SCALAR;case Wo.Kind.OBJECT_TYPE_DEFINITION:case Wo.Kind.OBJECT_TYPE_EXTENSION:return na.DirectiveLocation.OBJECT;case Wo.Kind.FIELD_DEFINITION:return na.DirectiveLocation.FIELD_DEFINITION;case Wo.Kind.INTERFACE_TYPE_DEFINITION:case Wo.Kind.INTERFACE_TYPE_EXTENSION:return na.DirectiveLocation.INTERFACE;case Wo.Kind.UNION_TYPE_DEFINITION:case Wo.Kind.UNION_TYPE_EXTENSION:return na.DirectiveLocation.UNION;case Wo.Kind.ENUM_TYPE_DEFINITION:case Wo.Kind.ENUM_TYPE_EXTENSION:return na.DirectiveLocation.ENUM;case Wo.Kind.ENUM_VALUE_DEFINITION:return na.DirectiveLocation.ENUM_VALUE;case Wo.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Wo.Kind.INPUT_OBJECT_TYPE_EXTENSION:return na.DirectiveLocation.INPUT_OBJECT;case Wo.Kind.INPUT_VALUE_DEFINITION:{let r=e[e.length-3];return"kind"in r||(0,EK.invariant)(!1),r.kind===Wo.Kind.INPUT_OBJECT_TYPE_DEFINITION?na.DirectiveLocation.INPUT_FIELD_DEFINITION:na.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,EK.invariant)(!1,"Unexpected kind: "+(0,wpt.inspect)(t.kind))}}function Opt(e){switch(e){case TK.OperationTypeNode.QUERY:return na.DirectiveLocation.QUERY;case TK.OperationTypeNode.MUTATION:return na.DirectiveLocation.MUTATION;case TK.OperationTypeNode.SUBSCRIPTION:return na.DirectiveLocation.SUBSCRIPTION}}});var wK=L(IK=>{"use strict";Object.defineProperty(IK,"__esModule",{value:!0});IK.KnownFragmentNamesRule=Fpt;var Npt=ar();function Fpt(e){return{FragmentSpread(t){let r=t.name.value;e.getFragment(r)||e.reportError(new Npt.GraphQLError(`Unknown fragment "${r}".`,{nodes:t.name}))}}}});var PK=L(CK=>{"use strict";Object.defineProperty(CK,"__esModule",{value:!0});CK.KnownTypeNamesRule=Bpt;var Rpt=bh(),Lpt=Eh(),$pt=ar(),kK=iS(),Mpt=Vl(),jpt=vd();function Bpt(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);for(let i of e.getDocument().definitions)(0,kK.isTypeDefinitionNode)(i)&&(n[i.name.value]=!0);let o=[...Object.keys(r),...Object.keys(n)];return{NamedType(i,a,s,c,p){let d=i.name.value;if(!r[d]&&!n[d]){var f;let m=(f=p[2])!==null&&f!==void 0?f:s,y=m!=null&&qpt(m);if(y&&GSe.includes(d))return;let g=(0,Lpt.suggestionList)(d,y?GSe.concat(o):o);e.reportError(new $pt.GraphQLError(`Unknown type "${d}".`+(0,Rpt.didYouMean)(g),{nodes:i}))}}}}var GSe=[...jpt.specifiedScalarTypes,...Mpt.introspectionTypes].map(e=>e.name);function qpt(e){return"kind"in e&&((0,kK.isTypeSystemDefinitionNode)(e)||(0,kK.isTypeSystemExtensionNode)(e))}});var NK=L(OK=>{"use strict";Object.defineProperty(OK,"__esModule",{value:!0});OK.LoneAnonymousOperationRule=Jpt;var Upt=ar(),zpt=Sn();function Jpt(e){let t=0;return{Document(r){t=r.definitions.filter(n=>n.kind===zpt.Kind.OPERATION_DEFINITION).length},OperationDefinition(r){!r.name&&t>1&&e.reportError(new Upt.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:r}))}}}});var RK=L(FK=>{"use strict";Object.defineProperty(FK,"__esModule",{value:!0});FK.LoneSchemaDefinitionRule=Vpt;var HSe=ar();function Vpt(e){var t,r,n;let o=e.getSchema(),i=(t=(r=(n=o?.astNode)!==null&&n!==void 0?n:o?.getQueryType())!==null&&r!==void 0?r:o?.getMutationType())!==null&&t!==void 0?t:o?.getSubscriptionType(),a=0;return{SchemaDefinition(s){if(i){e.reportError(new HSe.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:s}));return}a>0&&e.reportError(new HSe.GraphQLError("Must provide only one schema definition.",{nodes:s})),++a}}}});var $K=L(LK=>{"use strict";Object.defineProperty(LK,"__esModule",{value:!0});LK.MaxIntrospectionDepthRule=Hpt;var Kpt=ar(),ZSe=Sn(),Gpt=3;function Hpt(e){function t(r,n=Object.create(null),o=0){if(r.kind===ZSe.Kind.FRAGMENT_SPREAD){let i=r.name.value;if(n[i]===!0)return!1;let a=e.getFragment(i);if(!a)return!1;try{return n[i]=!0,t(a,n,o)}finally{n[i]=void 0}}if(r.kind===ZSe.Kind.FIELD&&(r.name.value==="fields"||r.name.value==="interfaces"||r.name.value==="possibleTypes"||r.name.value==="inputFields")&&(o++,o>=Gpt))return!0;if("selectionSet"in r&&r.selectionSet){for(let i of r.selectionSet.selections)if(t(i,n,o))return!0}return!1}return{Field(r){if((r.name.value==="__schema"||r.name.value==="__type")&&t(r))return e.reportError(new Kpt.GraphQLError("Maximum introspection depth exceeded",{nodes:[r]})),!1}}}});var jK=L(MK=>{"use strict";Object.defineProperty(MK,"__esModule",{value:!0});MK.NoFragmentCyclesRule=Wpt;var Zpt=ar();function Wpt(e){let t=Object.create(null),r=[],n=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(i){return o(i),!1}};function o(i){if(t[i.name.value])return;let a=i.name.value;t[a]=!0;let s=e.getFragmentSpreads(i.selectionSet);if(s.length!==0){n[a]=r.length;for(let c of s){let p=c.name.value,d=n[p];if(r.push(c),d===void 0){let f=e.getFragment(p);f&&o(f)}else{let f=r.slice(d),m=f.slice(0,-1).map(y=>'"'+y.name.value+'"').join(", ");e.reportError(new Zpt.GraphQLError(`Cannot spread fragment "${p}" within itself`+(m!==""?` via ${m}.`:"."),{nodes:f}))}r.pop()}n[a]=void 0}}}});var qK=L(BK=>{"use strict";Object.defineProperty(BK,"__esModule",{value:!0});BK.NoUndefinedVariablesRule=Xpt;var Qpt=ar();function Xpt(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){let n=e.getRecursiveVariableUsages(r);for(let{node:o}of n){let i=o.name.value;t[i]!==!0&&e.reportError(new Qpt.GraphQLError(r.name?`Variable "$${i}" is not defined by operation "${r.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[o,r]}))}}},VariableDefinition(r){t[r.variable.name.value]=!0}}}});var zK=L(UK=>{"use strict";Object.defineProperty(UK,"__esModule",{value:!0});UK.NoUnusedFragmentsRule=edt;var Ypt=ar();function edt(e){let t=[],r=[];return{OperationDefinition(n){return t.push(n),!1},FragmentDefinition(n){return r.push(n),!1},Document:{leave(){let n=Object.create(null);for(let o of t)for(let i of e.getRecursivelyReferencedFragments(o))n[i.name.value]=!0;for(let o of r){let i=o.name.value;n[i]!==!0&&e.reportError(new Ypt.GraphQLError(`Fragment "${i}" is never used.`,{nodes:o}))}}}}}});var VK=L(JK=>{"use strict";Object.defineProperty(JK,"__esModule",{value:!0});JK.NoUnusedVariablesRule=rdt;var tdt=ar();function rdt(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){let n=Object.create(null),o=e.getRecursiveVariableUsages(r);for(let{node:i}of o)n[i.name.value]=!0;for(let i of t){let a=i.variable.name.value;n[a]!==!0&&e.reportError(new tdt.GraphQLError(r.name?`Variable "$${a}" is never used in operation "${r.name.value}".`:`Variable "$${a}" is never used.`,{nodes:i}))}}},VariableDefinition(r){t.push(r)}}}});var HK=L(GK=>{"use strict";Object.defineProperty(GK,"__esModule",{value:!0});GK.sortValueNode=KK;var ndt=xA(),lf=Sn();function KK(e){switch(e.kind){case lf.Kind.OBJECT:return{...e,fields:odt(e.fields)};case lf.Kind.LIST:return{...e,values:e.values.map(KK)};case lf.Kind.INT:case lf.Kind.FLOAT:case lf.Kind.STRING:case lf.Kind.BOOLEAN:case lf.Kind.NULL:case lf.Kind.ENUM:case lf.Kind.VARIABLE:return e}}function odt(e){return e.map(t=>({...t,value:KK(t.value)})).sort((t,r)=>(0,ndt.naturalCompare)(t.name.value,r.name.value))}});var tG=L(eG=>{"use strict";Object.defineProperty(eG,"__esModule",{value:!0});eG.OverlappingFieldsCanBeMergedRule=cdt;var WSe=eo(),idt=ar(),ZK=Sn(),adt=Gc(),dc=vn(),sdt=HK(),XSe=bd();function YSe(e){return Array.isArray(e)?e.map(([t,r])=>`subfields "${t}" conflict because `+YSe(r)).join(" and "):e}function cdt(e){let t=new b4,r=new XK,n=new Map;return{SelectionSet(o){let i=ldt(e,n,t,r,e.getParentType(),o);for(let[[a,s],c,p]of i){let d=YSe(s);e.reportError(new idt.GraphQLError(`Fields "${a}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:c.concat(p)}))}}}}function ldt(e,t,r,n,o,i){let a=[],[s,c]=v4(e,t,o,i);if(pdt(e,a,t,r,n,s),c.length!==0)for(let p=0;p1)for(let c=0;c[i.value,a]));return r.every(i=>{let a=i.value,s=o.get(i.name.value);return s===void 0?!1:QSe(a)===QSe(s)})}function QSe(e){return(0,adt.print)((0,sdt.sortValueNode)(e))}function WK(e,t){return(0,dc.isListType)(e)?(0,dc.isListType)(t)?WK(e.ofType,t.ofType):!0:(0,dc.isListType)(t)?!0:(0,dc.isNonNullType)(e)?(0,dc.isNonNullType)(t)?WK(e.ofType,t.ofType):!0:(0,dc.isNonNullType)(t)?!0:(0,dc.isLeafType)(e)||(0,dc.isLeafType)(t)?e!==t:!1}function v4(e,t,r,n){let o=t.get(n);if(o)return o;let i=Object.create(null),a=Object.create(null);t0e(e,r,n,i,a);let s=[i,Object.keys(a)];return t.set(n,s),s}function QK(e,t,r){let n=t.get(r.selectionSet);if(n)return n;let o=(0,XSe.typeFromAST)(e.getSchema(),r.typeCondition);return v4(e,t,o,r.selectionSet)}function t0e(e,t,r,n,o){for(let i of r.selections)switch(i.kind){case ZK.Kind.FIELD:{let a=i.name.value,s;((0,dc.isObjectType)(t)||(0,dc.isInterfaceType)(t))&&(s=t.getFields()[a]);let c=i.alias?i.alias.value:a;n[c]||(n[c]=[]),n[c].push([t,i,s]);break}case ZK.Kind.FRAGMENT_SPREAD:o[i.name.value]=!0;break;case ZK.Kind.INLINE_FRAGMENT:{let a=i.typeCondition,s=a?(0,XSe.typeFromAST)(e.getSchema(),a):t;t0e(e,s,i.selectionSet,n,o);break}}}function _dt(e,t,r,n){if(e.length>0)return[[t,e.map(([o])=>o)],[r,...e.map(([,o])=>o).flat()],[n,...e.map(([,,o])=>o).flat()]]}var b4=class{constructor(){this._data=new Map}has(t,r,n){var o;let i=(o=this._data.get(t))===null||o===void 0?void 0:o.get(r);return i===void 0?!1:n?!0:n===i}add(t,r,n){let o=this._data.get(t);o===void 0?this._data.set(t,new Map([[r,n]])):o.set(r,n)}},XK=class{constructor(){this._orderedPairSet=new b4}has(t,r,n){return t{"use strict";Object.defineProperty(nG,"__esModule",{value:!0});nG.PossibleFragmentSpreadsRule=mdt;var x4=eo(),r0e=ar(),rG=vn(),n0e=wA(),fdt=bd();function mdt(e){return{InlineFragment(t){let r=e.getType(),n=e.getParentType();if((0,rG.isCompositeType)(r)&&(0,rG.isCompositeType)(n)&&!(0,n0e.doTypesOverlap)(e.getSchema(),r,n)){let o=(0,x4.inspect)(n),i=(0,x4.inspect)(r);e.reportError(new r0e.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${i}".`,{nodes:t}))}},FragmentSpread(t){let r=t.name.value,n=hdt(e,r),o=e.getParentType();if(n&&o&&!(0,n0e.doTypesOverlap)(e.getSchema(),n,o)){let i=(0,x4.inspect)(o),a=(0,x4.inspect)(n);e.reportError(new r0e.GraphQLError(`Fragment "${r}" cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:t}))}}}}function hdt(e,t){let r=e.getFragment(t);if(r){let n=(0,fdt.typeFromAST)(e.getSchema(),r.typeCondition);if((0,rG.isCompositeType)(n))return n}}});var aG=L(iG=>{"use strict";Object.defineProperty(iG,"__esModule",{value:!0});iG.PossibleTypeExtensionsRule=vdt;var ydt=bh(),i0e=eo(),a0e=us(),gdt=Eh(),o0e=ar(),ai=Sn(),Sdt=iS(),$1=vn();function vdt(e){let t=e.getSchema(),r=Object.create(null);for(let o of e.getDocument().definitions)(0,Sdt.isTypeDefinitionNode)(o)&&(r[o.name.value]=o);return{ScalarTypeExtension:n,ObjectTypeExtension:n,InterfaceTypeExtension:n,UnionTypeExtension:n,EnumTypeExtension:n,InputObjectTypeExtension:n};function n(o){let i=o.name.value,a=r[i],s=t?.getType(i),c;if(a?c=bdt[a.kind]:s&&(c=xdt(s)),c){if(c!==o.kind){let p=Edt(o.kind);e.reportError(new o0e.GraphQLError(`Cannot extend non-${p} type "${i}".`,{nodes:a?[a,o]:o}))}}else{let p=Object.keys({...r,...t?.getTypeMap()}),d=(0,gdt.suggestionList)(i,p);e.reportError(new o0e.GraphQLError(`Cannot extend type "${i}" because it is not defined.`+(0,ydt.didYouMean)(d),{nodes:o.name}))}}}var bdt={[ai.Kind.SCALAR_TYPE_DEFINITION]:ai.Kind.SCALAR_TYPE_EXTENSION,[ai.Kind.OBJECT_TYPE_DEFINITION]:ai.Kind.OBJECT_TYPE_EXTENSION,[ai.Kind.INTERFACE_TYPE_DEFINITION]:ai.Kind.INTERFACE_TYPE_EXTENSION,[ai.Kind.UNION_TYPE_DEFINITION]:ai.Kind.UNION_TYPE_EXTENSION,[ai.Kind.ENUM_TYPE_DEFINITION]:ai.Kind.ENUM_TYPE_EXTENSION,[ai.Kind.INPUT_OBJECT_TYPE_DEFINITION]:ai.Kind.INPUT_OBJECT_TYPE_EXTENSION};function xdt(e){if((0,$1.isScalarType)(e))return ai.Kind.SCALAR_TYPE_EXTENSION;if((0,$1.isObjectType)(e))return ai.Kind.OBJECT_TYPE_EXTENSION;if((0,$1.isInterfaceType)(e))return ai.Kind.INTERFACE_TYPE_EXTENSION;if((0,$1.isUnionType)(e))return ai.Kind.UNION_TYPE_EXTENSION;if((0,$1.isEnumType)(e))return ai.Kind.ENUM_TYPE_EXTENSION;if((0,$1.isInputObjectType)(e))return ai.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,a0e.invariant)(!1,"Unexpected type: "+(0,i0e.inspect)(e))}function Edt(e){switch(e){case ai.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case ai.Kind.OBJECT_TYPE_EXTENSION:return"object";case ai.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case ai.Kind.UNION_TYPE_EXTENSION:return"union";case ai.Kind.ENUM_TYPE_EXTENSION:return"enum";case ai.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,a0e.invariant)(!1,"Unexpected kind: "+(0,i0e.inspect)(e))}}});var cG=L(E4=>{"use strict";Object.defineProperty(E4,"__esModule",{value:!0});E4.ProvidedRequiredArgumentsOnDirectivesRule=p0e;E4.ProvidedRequiredArgumentsRule=Adt;var c0e=eo(),s0e=xh(),l0e=ar(),u0e=Sn(),Tdt=Gc(),sG=vn(),Ddt=pc();function Adt(e){return{...p0e(e),Field:{leave(t){var r;let n=e.getFieldDef();if(!n)return!1;let o=new Set((r=t.arguments)===null||r===void 0?void 0:r.map(i=>i.name.value));for(let i of n.args)if(!o.has(i.name)&&(0,sG.isRequiredArgument)(i)){let a=(0,c0e.inspect)(i.type);e.reportError(new l0e.GraphQLError(`Field "${n.name}" argument "${i.name}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}}function p0e(e){var t;let r=Object.create(null),n=e.getSchema(),o=(t=n?.getDirectives())!==null&&t!==void 0?t:Ddt.specifiedDirectives;for(let s of o)r[s.name]=(0,s0e.keyMap)(s.args.filter(sG.isRequiredArgument),c=>c.name);let i=e.getDocument().definitions;for(let s of i)if(s.kind===u0e.Kind.DIRECTIVE_DEFINITION){var a;let c=(a=s.arguments)!==null&&a!==void 0?a:[];r[s.name.value]=(0,s0e.keyMap)(c.filter(Idt),p=>p.name.value)}return{Directive:{leave(s){let c=s.name.value,p=r[c];if(p){var d;let f=(d=s.arguments)!==null&&d!==void 0?d:[],m=new Set(f.map(y=>y.name.value));for(let[y,g]of Object.entries(p))if(!m.has(y)){let S=(0,sG.isType)(g.type)?(0,c0e.inspect)(g.type):(0,Tdt.print)(g.type);e.reportError(new l0e.GraphQLError(`Directive "@${c}" argument "${y}" of type "${S}" is required, but it was not provided.`,{nodes:s}))}}}}}}function Idt(e){return e.type.kind===u0e.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var dG=L(pG=>{"use strict";Object.defineProperty(pG,"__esModule",{value:!0});pG.ScalarLeafsRule=wdt;var lG=eo(),uG=ar(),d0e=vn();function wdt(e){return{Field(t){let r=e.getType(),n=t.selectionSet;if(r)if((0,d0e.isLeafType)((0,d0e.getNamedType)(r))){if(n){let o=t.name.value,i=(0,lG.inspect)(r);e.reportError(new uG.GraphQLError(`Field "${o}" must not have a selection since type "${i}" has no subfields.`,{nodes:n}))}}else if(n){if(n.selections.length===0){let o=t.name.value,i=(0,lG.inspect)(r);e.reportError(new uG.GraphQLError(`Field "${o}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}else{let o=t.name.value,i=(0,lG.inspect)(r);e.reportError(new uG.GraphQLError(`Field "${o}" of type "${i}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}}});var fG=L(_G=>{"use strict";Object.defineProperty(_G,"__esModule",{value:!0});_G.printPathArray=kdt;function kdt(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var qA=L(T4=>{"use strict";Object.defineProperty(T4,"__esModule",{value:!0});T4.addPath=Cdt;T4.pathToArray=Pdt;function Cdt(e,t,r){return{prev:e,key:t,typename:r}}function Pdt(e){let t=[],r=e;for(;r;)t.push(r.key),r=r.prev;return t.reverse()}});var hG=L(mG=>{"use strict";Object.defineProperty(mG,"__esModule",{value:!0});mG.coerceInputValue=Mdt;var Odt=bh(),D4=eo(),Ndt=us(),Fdt=d4(),Rdt=yd(),Hu=qA(),Ldt=fG(),$dt=Eh(),uf=ar(),UA=vn();function Mdt(e,t,r=jdt){return zA(e,t,r,void 0)}function jdt(e,t,r){let n="Invalid value "+(0,D4.inspect)(t);throw e.length>0&&(n+=` at "value${(0,Ldt.printPathArray)(e)}"`),r.message=n+": "+r.message,r}function zA(e,t,r,n){if((0,UA.isNonNullType)(t)){if(e!=null)return zA(e,t.ofType,r,n);r((0,Hu.pathToArray)(n),e,new uf.GraphQLError(`Expected non-nullable type "${(0,D4.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,UA.isListType)(t)){let o=t.ofType;return(0,Fdt.isIterableObject)(e)?Array.from(e,(i,a)=>{let s=(0,Hu.addPath)(n,a,void 0);return zA(i,o,r,s)}):[zA(e,o,r,n)]}if((0,UA.isInputObjectType)(t)){if(!(0,Rdt.isObjectLike)(e)||Array.isArray(e)){r((0,Hu.pathToArray)(n),e,new uf.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let o={},i=t.getFields();for(let a of Object.values(i)){let s=e[a.name];if(s===void 0){if(a.defaultValue!==void 0)o[a.name]=a.defaultValue;else if((0,UA.isNonNullType)(a.type)){let c=(0,D4.inspect)(a.type);r((0,Hu.pathToArray)(n),e,new uf.GraphQLError(`Field "${a.name}" of required type "${c}" was not provided.`))}continue}o[a.name]=zA(s,a.type,r,(0,Hu.addPath)(n,a.name,t.name))}for(let a of Object.keys(e))if(!i[a]){let s=(0,$dt.suggestionList)(a,Object.keys(t.getFields()));r((0,Hu.pathToArray)(n),e,new uf.GraphQLError(`Field "${a}" is not defined by type "${t.name}".`+(0,Odt.didYouMean)(s)))}if(t.isOneOf){let a=Object.keys(o);a.length!==1&&r((0,Hu.pathToArray)(n),e,new uf.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let s=a[0],c=o[s];c===null&&r((0,Hu.pathToArray)(n).concat(s),c,new uf.GraphQLError(`Field "${s}" must be non-null.`))}return o}if((0,UA.isLeafType)(t)){let o;try{o=t.parseValue(e)}catch(i){i instanceof uf.GraphQLError?r((0,Hu.pathToArray)(n),e,i):r((0,Hu.pathToArray)(n),e,new uf.GraphQLError(`Expected type "${t.name}". `+i.message,{originalError:i}));return}return o===void 0&&r((0,Hu.pathToArray)(n),e,new uf.GraphQLError(`Expected type "${t.name}".`)),o}(0,Ndt.invariant)(!1,"Unexpected input type: "+(0,D4.inspect)(t))}});var VA=L(yG=>{"use strict";Object.defineProperty(yG,"__esModule",{value:!0});yG.valueFromAST=JA;var Bdt=eo(),qdt=us(),Udt=xh(),M1=Sn(),aS=vn();function JA(e,t,r){if(e){if(e.kind===M1.Kind.VARIABLE){let n=e.name.value;if(r==null||r[n]===void 0)return;let o=r[n];return o===null&&(0,aS.isNonNullType)(t)?void 0:o}if((0,aS.isNonNullType)(t))return e.kind===M1.Kind.NULL?void 0:JA(e,t.ofType,r);if(e.kind===M1.Kind.NULL)return null;if((0,aS.isListType)(t)){let n=t.ofType;if(e.kind===M1.Kind.LIST){let i=[];for(let a of e.values)if(_0e(a,r)){if((0,aS.isNonNullType)(n))return;i.push(null)}else{let s=JA(a,n,r);if(s===void 0)return;i.push(s)}return i}let o=JA(e,n,r);return o===void 0?void 0:[o]}if((0,aS.isInputObjectType)(t)){if(e.kind!==M1.Kind.OBJECT)return;let n=Object.create(null),o=(0,Udt.keyMap)(e.fields,i=>i.name.value);for(let i of Object.values(t.getFields())){let a=o[i.name];if(!a||_0e(a.value,r)){if(i.defaultValue!==void 0)n[i.name]=i.defaultValue;else if((0,aS.isNonNullType)(i.type))return;continue}let s=JA(a.value,i.type,r);if(s===void 0)return;n[i.name]=s}if(t.isOneOf){let i=Object.keys(n);if(i.length!==1||n[i[0]]===null)return}return n}if((0,aS.isLeafType)(t)){let n;try{n=t.parseLiteral(e,r)}catch{return}return n===void 0?void 0:n}(0,qdt.invariant)(!1,"Unexpected input type: "+(0,Bdt.inspect)(t))}}function _0e(e,t){return e.kind===M1.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var q1=L(KA=>{"use strict";Object.defineProperty(KA,"__esModule",{value:!0});KA.getArgumentValues=y0e;KA.getDirectiveValues=Zdt;KA.getVariableValues=Gdt;var j1=eo(),zdt=xh(),Jdt=fG(),pf=ar(),f0e=Sn(),m0e=Gc(),B1=vn(),Vdt=hG(),Kdt=bd(),h0e=VA();function Gdt(e,t,r,n){let o=[],i=n?.maxErrors;try{let a=Hdt(e,t,r,s=>{if(i!=null&&o.length>=i)throw new pf.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");o.push(s)});if(o.length===0)return{coerced:a}}catch(a){o.push(a)}return{errors:o}}function Hdt(e,t,r,n){let o={};for(let i of t){let a=i.variable.name.value,s=(0,Kdt.typeFromAST)(e,i.type);if(!(0,B1.isInputType)(s)){let p=(0,m0e.print)(i.type);n(new pf.GraphQLError(`Variable "$${a}" expected value of type "${p}" which cannot be used as an input type.`,{nodes:i.type}));continue}if(!g0e(r,a)){if(i.defaultValue)o[a]=(0,h0e.valueFromAST)(i.defaultValue,s);else if((0,B1.isNonNullType)(s)){let p=(0,j1.inspect)(s);n(new pf.GraphQLError(`Variable "$${a}" of required type "${p}" was not provided.`,{nodes:i}))}continue}let c=r[a];if(c===null&&(0,B1.isNonNullType)(s)){let p=(0,j1.inspect)(s);n(new pf.GraphQLError(`Variable "$${a}" of non-null type "${p}" must not be null.`,{nodes:i}));continue}o[a]=(0,Vdt.coerceInputValue)(c,s,(p,d,f)=>{let m=`Variable "$${a}" got invalid value `+(0,j1.inspect)(d);p.length>0&&(m+=` at "${a}${(0,Jdt.printPathArray)(p)}"`),n(new pf.GraphQLError(m+"; "+f.message,{nodes:i,originalError:f}))})}return o}function y0e(e,t,r){var n;let o={},i=(n=t.arguments)!==null&&n!==void 0?n:[],a=(0,zdt.keyMap)(i,s=>s.name.value);for(let s of e.args){let c=s.name,p=s.type,d=a[c];if(!d){if(s.defaultValue!==void 0)o[c]=s.defaultValue;else if((0,B1.isNonNullType)(p))throw new pf.GraphQLError(`Argument "${c}" of required type "${(0,j1.inspect)(p)}" was not provided.`,{nodes:t});continue}let f=d.value,m=f.kind===f0e.Kind.NULL;if(f.kind===f0e.Kind.VARIABLE){let g=f.name.value;if(r==null||!g0e(r,g)){if(s.defaultValue!==void 0)o[c]=s.defaultValue;else if((0,B1.isNonNullType)(p))throw new pf.GraphQLError(`Argument "${c}" of required type "${(0,j1.inspect)(p)}" was provided the variable "$${g}" which was not provided a runtime value.`,{nodes:f});continue}m=r[g]==null}if(m&&(0,B1.isNonNullType)(p))throw new pf.GraphQLError(`Argument "${c}" of non-null type "${(0,j1.inspect)(p)}" must not be null.`,{nodes:f});let y=(0,h0e.valueFromAST)(f,p,r);if(y===void 0)throw new pf.GraphQLError(`Argument "${c}" has invalid value ${(0,m0e.print)(f)}.`,{nodes:f});o[c]=y}return o}function Zdt(e,t,r){var n;let o=(n=t.directives)===null||n===void 0?void 0:n.find(i=>i.name.value===e.name);if(o)return y0e(e,o,r)}function g0e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var w4=L(I4=>{"use strict";Object.defineProperty(I4,"__esModule",{value:!0});I4.collectFields=Xdt;I4.collectSubfields=Ydt;var gG=Sn(),Wdt=vn(),S0e=pc(),Qdt=bd(),v0e=q1();function Xdt(e,t,r,n,o){let i=new Map;return A4(e,t,r,n,o,i,new Set),i}function Ydt(e,t,r,n,o){let i=new Map,a=new Set;for(let s of o)s.selectionSet&&A4(e,t,r,n,s.selectionSet,i,a);return i}function A4(e,t,r,n,o,i,a){for(let s of o.selections)switch(s.kind){case gG.Kind.FIELD:{if(!SG(r,s))continue;let c=e_t(s),p=i.get(c);p!==void 0?p.push(s):i.set(c,[s]);break}case gG.Kind.INLINE_FRAGMENT:{if(!SG(r,s)||!b0e(e,s,n))continue;A4(e,t,r,n,s.selectionSet,i,a);break}case gG.Kind.FRAGMENT_SPREAD:{let c=s.name.value;if(a.has(c)||!SG(r,s))continue;a.add(c);let p=t[c];if(!p||!b0e(e,p,n))continue;A4(e,t,r,n,p.selectionSet,i,a);break}}}function SG(e,t){let r=(0,v0e.getDirectiveValues)(S0e.GraphQLSkipDirective,t,e);if(r?.if===!0)return!1;let n=(0,v0e.getDirectiveValues)(S0e.GraphQLIncludeDirective,t,e);return n?.if!==!1}function b0e(e,t,r){let n=t.typeCondition;if(!n)return!0;let o=(0,Qdt.typeFromAST)(e,n);return o===r?!0:(0,Wdt.isAbstractType)(o)?e.isSubType(o,r):!1}function e_t(e){return e.alias?e.alias.value:e.name.value}});var bG=L(vG=>{"use strict";Object.defineProperty(vG,"__esModule",{value:!0});vG.SingleFieldSubscriptionsRule=n_t;var x0e=ar(),t_t=Sn(),r_t=w4();function n_t(e){return{OperationDefinition(t){if(t.operation==="subscription"){let r=e.getSchema(),n=r.getSubscriptionType();if(n){let o=t.name?t.name.value:null,i=Object.create(null),a=e.getDocument(),s=Object.create(null);for(let p of a.definitions)p.kind===t_t.Kind.FRAGMENT_DEFINITION&&(s[p.name.value]=p);let c=(0,r_t.collectFields)(r,s,i,n,t.selectionSet);if(c.size>1){let f=[...c.values()].slice(1).flat();e.reportError(new x0e.GraphQLError(o!=null?`Subscription "${o}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:f}))}for(let p of c.values())p[0].name.value.startsWith("__")&&e.reportError(new x0e.GraphQLError(o!=null?`Subscription "${o}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:p}))}}}}}});var k4=L(xG=>{"use strict";Object.defineProperty(xG,"__esModule",{value:!0});xG.groupBy=o_t;function o_t(e,t){let r=new Map;for(let n of e){let o=t(n),i=r.get(o);i===void 0?r.set(o,[n]):i.push(n)}return r}});var TG=L(EG=>{"use strict";Object.defineProperty(EG,"__esModule",{value:!0});EG.UniqueArgumentDefinitionNamesRule=s_t;var i_t=k4(),a_t=ar();function s_t(e){return{DirectiveDefinition(n){var o;let i=(o=n.arguments)!==null&&o!==void 0?o:[];return r(`@${n.name.value}`,i)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(n){var o;let i=n.name.value,a=(o=n.fields)!==null&&o!==void 0?o:[];for(let c of a){var s;let p=c.name.value,d=(s=c.arguments)!==null&&s!==void 0?s:[];r(`${i}.${p}`,d)}return!1}function r(n,o){let i=(0,i_t.groupBy)(o,a=>a.name.value);for(let[a,s]of i)s.length>1&&e.reportError(new a_t.GraphQLError(`Argument "${n}(${a}:)" can only be defined once.`,{nodes:s.map(c=>c.name)}));return!1}}});var AG=L(DG=>{"use strict";Object.defineProperty(DG,"__esModule",{value:!0});DG.UniqueArgumentNamesRule=u_t;var c_t=k4(),l_t=ar();function u_t(e){return{Field:t,Directive:t};function t(r){var n;let o=(n=r.arguments)!==null&&n!==void 0?n:[],i=(0,c_t.groupBy)(o,a=>a.name.value);for(let[a,s]of i)s.length>1&&e.reportError(new l_t.GraphQLError(`There can be only one argument named "${a}".`,{nodes:s.map(c=>c.name)}))}}});var wG=L(IG=>{"use strict";Object.defineProperty(IG,"__esModule",{value:!0});IG.UniqueDirectiveNamesRule=p_t;var E0e=ar();function p_t(e){let t=Object.create(null),r=e.getSchema();return{DirectiveDefinition(n){let o=n.name.value;if(r!=null&&r.getDirective(o)){e.reportError(new E0e.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:n.name}));return}return t[o]?e.reportError(new E0e.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],n.name]})):t[o]=n.name,!1}}}});var PG=L(CG=>{"use strict";Object.defineProperty(CG,"__esModule",{value:!0});CG.UniqueDirectivesPerLocationRule=f_t;var d_t=ar(),kG=Sn(),T0e=iS(),__t=pc();function f_t(e){let t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():__t.specifiedDirectives;for(let s of n)t[s.name]=!s.isRepeatable;let o=e.getDocument().definitions;for(let s of o)s.kind===kG.Kind.DIRECTIVE_DEFINITION&&(t[s.name.value]=!s.repeatable);let i=Object.create(null),a=Object.create(null);return{enter(s){if(!("directives"in s)||!s.directives)return;let c;if(s.kind===kG.Kind.SCHEMA_DEFINITION||s.kind===kG.Kind.SCHEMA_EXTENSION)c=i;else if((0,T0e.isTypeDefinitionNode)(s)||(0,T0e.isTypeExtensionNode)(s)){let p=s.name.value;c=a[p],c===void 0&&(a[p]=c=Object.create(null))}else c=Object.create(null);for(let p of s.directives){let d=p.name.value;t[d]&&(c[d]?e.reportError(new d_t.GraphQLError(`The directive "@${d}" can only be used once at this location.`,{nodes:[c[d],p]})):c[d]=p)}}}}});var NG=L(OG=>{"use strict";Object.defineProperty(OG,"__esModule",{value:!0});OG.UniqueEnumValueNamesRule=h_t;var D0e=ar(),m_t=vn();function h_t(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:o,EnumTypeExtension:o};function o(i){var a;let s=i.name.value;n[s]||(n[s]=Object.create(null));let c=(a=i.values)!==null&&a!==void 0?a:[],p=n[s];for(let d of c){let f=d.name.value,m=r[s];(0,m_t.isEnumType)(m)&&m.getValue(f)?e.reportError(new D0e.GraphQLError(`Enum value "${s}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:d.name})):p[f]?e.reportError(new D0e.GraphQLError(`Enum value "${s}.${f}" can only be defined once.`,{nodes:[p[f],d.name]})):p[f]=d.name}return!1}}});var LG=L(RG=>{"use strict";Object.defineProperty(RG,"__esModule",{value:!0});RG.UniqueFieldDefinitionNamesRule=y_t;var A0e=ar(),FG=vn();function y_t(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:o,InputObjectTypeExtension:o,InterfaceTypeDefinition:o,InterfaceTypeExtension:o,ObjectTypeDefinition:o,ObjectTypeExtension:o};function o(i){var a;let s=i.name.value;n[s]||(n[s]=Object.create(null));let c=(a=i.fields)!==null&&a!==void 0?a:[],p=n[s];for(let d of c){let f=d.name.value;g_t(r[s],f)?e.reportError(new A0e.GraphQLError(`Field "${s}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:d.name})):p[f]?e.reportError(new A0e.GraphQLError(`Field "${s}.${f}" can only be defined once.`,{nodes:[p[f],d.name]})):p[f]=d.name}return!1}}function g_t(e,t){return(0,FG.isObjectType)(e)||(0,FG.isInterfaceType)(e)||(0,FG.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var MG=L($G=>{"use strict";Object.defineProperty($G,"__esModule",{value:!0});$G.UniqueFragmentNamesRule=v_t;var S_t=ar();function v_t(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(r){let n=r.name.value;return t[n]?e.reportError(new S_t.GraphQLError(`There can be only one fragment named "${n}".`,{nodes:[t[n],r.name]})):t[n]=r.name,!1}}}});var BG=L(jG=>{"use strict";Object.defineProperty(jG,"__esModule",{value:!0});jG.UniqueInputFieldNamesRule=E_t;var b_t=us(),x_t=ar();function E_t(e){let t=[],r=Object.create(null);return{ObjectValue:{enter(){t.push(r),r=Object.create(null)},leave(){let n=t.pop();n||(0,b_t.invariant)(!1),r=n}},ObjectField(n){let o=n.name.value;r[o]?e.reportError(new x_t.GraphQLError(`There can be only one input field named "${o}".`,{nodes:[r[o],n.name]})):r[o]=n.name}}}});var UG=L(qG=>{"use strict";Object.defineProperty(qG,"__esModule",{value:!0});qG.UniqueOperationNamesRule=D_t;var T_t=ar();function D_t(e){let t=Object.create(null);return{OperationDefinition(r){let n=r.name;return n&&(t[n.value]?e.reportError(new T_t.GraphQLError(`There can be only one operation named "${n.value}".`,{nodes:[t[n.value],n]})):t[n.value]=n),!1},FragmentDefinition:()=>!1}}});var JG=L(zG=>{"use strict";Object.defineProperty(zG,"__esModule",{value:!0});zG.UniqueOperationTypesRule=A_t;var I0e=ar();function A_t(e){let t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(i){var a;let s=(a=i.operationTypes)!==null&&a!==void 0?a:[];for(let c of s){let p=c.operation,d=r[p];n[p]?e.reportError(new I0e.GraphQLError(`Type for ${p} already defined in the schema. It cannot be redefined.`,{nodes:c})):d?e.reportError(new I0e.GraphQLError(`There can be only one ${p} type in schema.`,{nodes:[d,c]})):r[p]=c}return!1}}});var KG=L(VG=>{"use strict";Object.defineProperty(VG,"__esModule",{value:!0});VG.UniqueTypeNamesRule=I_t;var w0e=ar();function I_t(e){let t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(o){let i=o.name.value;if(r!=null&&r.getType(i)){e.reportError(new w0e.GraphQLError(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:o.name}));return}return t[i]?e.reportError(new w0e.GraphQLError(`There can be only one type named "${i}".`,{nodes:[t[i],o.name]})):t[i]=o.name,!1}}});var HG=L(GG=>{"use strict";Object.defineProperty(GG,"__esModule",{value:!0});GG.UniqueVariableNamesRule=C_t;var w_t=k4(),k_t=ar();function C_t(e){return{OperationDefinition(t){var r;let n=(r=t.variableDefinitions)!==null&&r!==void 0?r:[],o=(0,w_t.groupBy)(n,i=>i.variable.name.value);for(let[i,a]of o)a.length>1&&e.reportError(new k_t.GraphQLError(`There can be only one variable named "$${i}".`,{nodes:a.map(s=>s.variable.name)}))}}}});var WG=L(ZG=>{"use strict";Object.defineProperty(ZG,"__esModule",{value:!0});ZG.ValuesOfCorrectTypeRule=R_t;var P_t=bh(),GA=eo(),O_t=xh(),N_t=Eh(),df=ar(),F_t=Sn(),C4=Gc(),xd=vn();function R_t(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(r){t[r.variable.name.value]=r},ListValue(r){let n=(0,xd.getNullableType)(e.getParentInputType());if(!(0,xd.isListType)(n))return sS(e,r),!1},ObjectValue(r){let n=(0,xd.getNamedType)(e.getInputType());if(!(0,xd.isInputObjectType)(n))return sS(e,r),!1;let o=(0,O_t.keyMap)(r.fields,i=>i.name.value);for(let i of Object.values(n.getFields()))if(!o[i.name]&&(0,xd.isRequiredInputField)(i)){let s=(0,GA.inspect)(i.type);e.reportError(new df.GraphQLError(`Field "${n.name}.${i.name}" of required type "${s}" was not provided.`,{nodes:r}))}n.isOneOf&&L_t(e,r,n,o)},ObjectField(r){let n=(0,xd.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,xd.isInputObjectType)(n)){let i=(0,N_t.suggestionList)(r.name.value,Object.keys(n.getFields()));e.reportError(new df.GraphQLError(`Field "${r.name.value}" is not defined by type "${n.name}".`+(0,P_t.didYouMean)(i),{nodes:r}))}},NullValue(r){let n=e.getInputType();(0,xd.isNonNullType)(n)&&e.reportError(new df.GraphQLError(`Expected value of type "${(0,GA.inspect)(n)}", found ${(0,C4.print)(r)}.`,{nodes:r}))},EnumValue:r=>sS(e,r),IntValue:r=>sS(e,r),FloatValue:r=>sS(e,r),StringValue:r=>sS(e,r),BooleanValue:r=>sS(e,r)}}function sS(e,t){let r=e.getInputType();if(!r)return;let n=(0,xd.getNamedType)(r);if(!(0,xd.isLeafType)(n)){let o=(0,GA.inspect)(r);e.reportError(new df.GraphQLError(`Expected value of type "${o}", found ${(0,C4.print)(t)}.`,{nodes:t}));return}try{if(n.parseLiteral(t,void 0)===void 0){let i=(0,GA.inspect)(r);e.reportError(new df.GraphQLError(`Expected value of type "${i}", found ${(0,C4.print)(t)}.`,{nodes:t}))}}catch(o){let i=(0,GA.inspect)(r);o instanceof df.GraphQLError?e.reportError(o):e.reportError(new df.GraphQLError(`Expected value of type "${i}", found ${(0,C4.print)(t)}; `+o.message,{nodes:t,originalError:o}))}}function L_t(e,t,r,n){var o;let i=Object.keys(n);if(i.length!==1){e.reportError(new df.GraphQLError(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));return}let s=(o=n[i[0]])===null||o===void 0?void 0:o.value;(!s||s.kind===F_t.Kind.NULL)&&e.reportError(new df.GraphQLError(`Field "${r.name}.${i[0]}" must be non-null.`,{nodes:[t]}))}});var XG=L(QG=>{"use strict";Object.defineProperty(QG,"__esModule",{value:!0});QG.VariablesAreInputTypesRule=q_t;var $_t=ar(),M_t=Gc(),j_t=vn(),B_t=bd();function q_t(e){return{VariableDefinition(t){let r=(0,B_t.typeFromAST)(e.getSchema(),t.type);if(r!==void 0&&!(0,j_t.isInputType)(r)){let n=t.variable.name.value,o=(0,M_t.print)(t.type);e.reportError(new $_t.GraphQLError(`Variable "$${n}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}}});var eH=L(YG=>{"use strict";Object.defineProperty(YG,"__esModule",{value:!0});YG.VariablesInAllowedPositionRule=J_t;var k0e=eo(),C0e=ar(),U_t=Sn(),P4=vn(),P0e=wA(),z_t=bd();function J_t(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){let n=e.getRecursiveVariableUsages(r);for(let{node:o,type:i,defaultValue:a,parentType:s}of n){let c=o.name.value,p=t[c];if(p&&i){let d=e.getSchema(),f=(0,z_t.typeFromAST)(d,p.type);if(f&&!V_t(d,f,p.defaultValue,i,a)){let m=(0,k0e.inspect)(f),y=(0,k0e.inspect)(i);e.reportError(new C0e.GraphQLError(`Variable "$${c}" of type "${m}" used in position expecting type "${y}".`,{nodes:[p,o]}))}(0,P4.isInputObjectType)(s)&&s.isOneOf&&(0,P4.isNullableType)(f)&&e.reportError(new C0e.GraphQLError(`Variable "$${c}" is of type "${f}" but must be non-nullable to be used for OneOf Input Object "${s}".`,{nodes:[p,o]}))}}}},VariableDefinition(r){t[r.variable.name.value]=r}}}function V_t(e,t,r,n,o){if((0,P4.isNonNullType)(n)&&!(0,P4.isNonNullType)(t)){if(!(r!=null&&r.kind!==U_t.Kind.NULL)&&!(o!==void 0))return!1;let s=n.ofType;return(0,P0e.isTypeSubTypeOf)(e,t,s)}return(0,P0e.isTypeSubTypeOf)(e,t,n)}});var tH=L(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});Ih.specifiedSDLRules=Ih.specifiedRules=Ih.recommendedRules=void 0;var K_t=yK(),G_t=SK(),H_t=bK(),O0e=xK(),N0e=AK(),Z_t=wK(),F0e=PK(),W_t=NK(),Q_t=RK(),X_t=$K(),Y_t=jK(),eft=qK(),tft=zK(),rft=VK(),nft=tG(),oft=oG(),ift=aG(),R0e=cG(),aft=dG(),sft=bG(),cft=TG(),L0e=AG(),lft=wG(),$0e=PG(),uft=NG(),pft=LG(),dft=MG(),M0e=BG(),_ft=UG(),fft=JG(),mft=KG(),hft=HG(),yft=WG(),gft=XG(),Sft=eH(),j0e=Object.freeze([X_t.MaxIntrospectionDepthRule]);Ih.recommendedRules=j0e;var vft=Object.freeze([K_t.ExecutableDefinitionsRule,_ft.UniqueOperationNamesRule,W_t.LoneAnonymousOperationRule,sft.SingleFieldSubscriptionsRule,F0e.KnownTypeNamesRule,H_t.FragmentsOnCompositeTypesRule,gft.VariablesAreInputTypesRule,aft.ScalarLeafsRule,G_t.FieldsOnCorrectTypeRule,dft.UniqueFragmentNamesRule,Z_t.KnownFragmentNamesRule,tft.NoUnusedFragmentsRule,oft.PossibleFragmentSpreadsRule,Y_t.NoFragmentCyclesRule,hft.UniqueVariableNamesRule,eft.NoUndefinedVariablesRule,rft.NoUnusedVariablesRule,N0e.KnownDirectivesRule,$0e.UniqueDirectivesPerLocationRule,O0e.KnownArgumentNamesRule,L0e.UniqueArgumentNamesRule,yft.ValuesOfCorrectTypeRule,R0e.ProvidedRequiredArgumentsRule,Sft.VariablesInAllowedPositionRule,nft.OverlappingFieldsCanBeMergedRule,M0e.UniqueInputFieldNamesRule,...j0e]);Ih.specifiedRules=vft;var bft=Object.freeze([Q_t.LoneSchemaDefinitionRule,fft.UniqueOperationTypesRule,mft.UniqueTypeNamesRule,uft.UniqueEnumValueNamesRule,pft.UniqueFieldDefinitionNamesRule,cft.UniqueArgumentDefinitionNamesRule,lft.UniqueDirectiveNamesRule,F0e.KnownTypeNamesRule,N0e.KnownDirectivesRule,$0e.UniqueDirectivesPerLocationRule,ift.PossibleTypeExtensionsRule,O0e.KnownArgumentNamesOnDirectivesRule,L0e.UniqueArgumentNamesRule,M0e.UniqueInputFieldNamesRule,R0e.ProvidedRequiredArgumentsOnDirectivesRule]);Ih.specifiedSDLRules=bft});var oH=L(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});wh.ValidationContext=wh.SDLValidationContext=wh.ASTValidationContext=void 0;var B0e=Sn(),xft=Qg(),q0e=h4(),HA=class{constructor(t,r){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let r;if(this._fragments)r=this._fragments;else{r=Object.create(null);for(let n of this.getDocument().definitions)n.kind===B0e.Kind.FRAGMENT_DEFINITION&&(r[n.name.value]=n);this._fragments=r}return r[t]}getFragmentSpreads(t){let r=this._fragmentSpreads.get(t);if(!r){r=[];let n=[t],o;for(;o=n.pop();)for(let i of o.selections)i.kind===B0e.Kind.FRAGMENT_SPREAD?r.push(i):i.selectionSet&&n.push(i.selectionSet);this._fragmentSpreads.set(t,r)}return r}getRecursivelyReferencedFragments(t){let r=this._recursivelyReferencedFragments.get(t);if(!r){r=[];let n=Object.create(null),o=[t.selectionSet],i;for(;i=o.pop();)for(let a of this.getFragmentSpreads(i)){let s=a.name.value;if(n[s]!==!0){n[s]=!0;let c=this.getFragment(s);c&&(r.push(c),o.push(c.selectionSet))}}this._recursivelyReferencedFragments.set(t,r)}return r}};wh.ASTValidationContext=HA;var rH=class extends HA{constructor(t,r,n){super(t,n),this._schema=r}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};wh.SDLValidationContext=rH;var nH=class extends HA{constructor(t,r,n,o){super(r,o),this._schema=t,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let r=this._variableUsages.get(t);if(!r){let n=[],o=new q0e.TypeInfo(this._schema);(0,xft.visit)(t,(0,q0e.visitWithTypeInfo)(o,{VariableDefinition:()=>!1,Variable(i){n.push({node:i,type:o.getInputType(),defaultValue:o.getDefaultValue(),parentType:o.getParentInputType()})}})),r=n,this._variableUsages.set(t,r)}return r}getRecursiveVariableUsages(t){let r=this._recursiveVariableUsages.get(t);if(!r){r=this.getVariableUsages(t);for(let n of this.getRecursivelyReferencedFragments(t))r=r.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(t,r)}return r}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};wh.ValidationContext=nH});var ZA=L(U1=>{"use strict";Object.defineProperty(U1,"__esModule",{value:!0});U1.assertValidSDL=Cft;U1.assertValidSDLExtension=Pft;U1.validate=kft;U1.validateSDL=iH;var Eft=Ls(),Tft=zO(),Dft=ar(),Aft=ql(),O4=Qg(),Ift=MA(),U0e=h4(),z0e=tH(),J0e=oH(),wft=(0,Tft.mapValue)(Aft.QueryDocumentKeys,e=>e.filter(t=>t!=="description"));function kft(e,t,r=z0e.specifiedRules,n,o=new U0e.TypeInfo(e)){var i;let a=(i=n?.maxErrors)!==null&&i!==void 0?i:100;t||(0,Eft.devAssert)(!1,"Must provide document."),(0,Ift.assertValidSchema)(e);let s=Object.freeze({}),c=[],p=new J0e.ValidationContext(e,t,o,f=>{if(c.length>=a)throw c.push(new Dft.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),s;c.push(f)}),d=(0,O4.visitInParallel)(r.map(f=>f(p)));try{(0,O4.visit)(t,(0,U0e.visitWithTypeInfo)(o,d),wft)}catch(f){if(f!==s)throw f}return c}function iH(e,t,r=z0e.specifiedSDLRules){let n=[],o=new J0e.SDLValidationContext(e,t,a=>{n.push(a)}),i=r.map(a=>a(o));return(0,O4.visit)(e,(0,O4.visitInParallel)(i)),n}function Cft(e){let t=iH(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(` -`))}function kft(e,t){let r=nH(e,t);if(r.length!==0)throw new Error(r.map(n=>n.message).join(` +`))}function Pft(e,t){let r=iH(e,t);if(r.length!==0)throw new Error(r.map(n=>n.message).join(` -`))}});var z0e=L(oH=>{"use strict";Object.defineProperty(oH,"__esModule",{value:!0});oH.memoize3=Cft;function Cft(e){let t;return function(n,o,i){t===void 0&&(t=new WeakMap);let a=t.get(n);a===void 0&&(a=new WeakMap,t.set(n,a));let s=a.get(o);s===void 0&&(s=new WeakMap,a.set(o,s));let c=s.get(i);return c===void 0&&(c=e(n,o,i),s.set(i,c)),c}}});var V0e=L(iH=>{"use strict";Object.defineProperty(iH,"__esModule",{value:!0});iH.promiseForObject=Pft;function Pft(e){return Promise.all(Object.values(e)).then(t=>{let r=Object.create(null);for(let[n,o]of Object.keys(e).entries())r[o]=t[n];return r})}});var J0e=L(aH=>{"use strict";Object.defineProperty(aH,"__esModule",{value:!0});aH.promiseReduce=Nft;var Oft=CO();function Nft(e,t,r){let n=r;for(let o of e)n=(0,Oft.isPromise)(n)?n.then(i=>t(i,o)):t(n,o);return n}});var K0e=L(cH=>{"use strict";Object.defineProperty(cH,"__esModule",{value:!0});cH.toError=Rft;var Fft=eo();function Rft(e){return e instanceof Error?e:new sH(e)}var sH=class extends Error{constructor(t){super("Unexpected error value: "+(0,Fft.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var P4=L(lH=>{"use strict";Object.defineProperty(lH,"__esModule",{value:!0});lH.locatedError=Mft;var Lft=K0e(),$ft=ar();function Mft(e,t,r){var n;let o=(0,Lft.toError)(e);return jft(o)?o:new $ft.GraphQLError(o.message,{nodes:(n=o.nodes)!==null&&n!==void 0?n:t,source:o.source,positions:o.positions,path:r,originalError:o})}function jft(e){return Array.isArray(e.path)}});var Z2=L(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.assertValidExecutionArguments=eve;Kl.buildExecutionContext=tve;Kl.buildResolveInfo=nve;Kl.defaultTypeResolver=Kl.defaultFieldResolver=void 0;Kl.execute=Y0e;Kl.executeSync=Kft;Kl.getFieldDef=ive;var pH=Ls(),oS=eo(),Bft=us(),qft=u4(),mH=hd(),Hu=CO(),Uft=z0e(),iS=j2(),G0e=V0e(),zft=J0e(),Jl=ar(),N4=P4(),uH=Bl(),H0e=Sn(),Ah=vn(),B1=Vl(),Vft=L2(),Q0e=A4(),X0e=M1(),Jft=(0,Uft.memoize3)((e,t,r)=>(0,Q0e.collectSubfields)(e.schema,e.fragments,e.variableValues,t,r)),dH=class{constructor(){this._errorPositions=new Set,this._errors=[]}get errors(){return this._errors}add(t,r){this._hasNulledPosition(r)||(this._errorPositions.add(r),this._errors.push(t))}_hasNulledPosition(t){let r=t;for(;r!==void 0;){if(this._errorPositions.has(r))return!0;r=r.prev}return this._errorPositions.has(void 0)}};function Y0e(e){arguments.length<2||(0,pH.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:r,variableValues:n,rootValue:o}=e;eve(t,r,n);let i=tve(e);if(!("schema"in i))return{errors:i};try{let{operation:a}=i,s=Gft(i,a,o);return(0,Hu.isPromise)(s)?s.then(c=>O4(c,i.collectedErrors.errors),c=>(i.collectedErrors.add(c,void 0),O4(null,i.collectedErrors.errors))):O4(s,i.collectedErrors.errors)}catch(a){return i.collectedErrors.add(a,void 0),O4(null,i.collectedErrors.errors)}}function Kft(e){let t=Y0e(e);if((0,Hu.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function O4(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function eve(e,t,r){t||(0,pH.devAssert)(!1,"Must provide document."),(0,Vft.assertValidSchema)(e),r==null||(0,mH.isObjectLike)(r)||(0,pH.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function tve(e){var t,r,n;let{schema:o,document:i,rootValue:a,contextValue:s,variableValues:c,operationName:p,fieldResolver:d,typeResolver:f,subscribeFieldResolver:m,options:y}=e,g,S=Object.create(null);for(let I of i.definitions)switch(I.kind){case H0e.Kind.OPERATION_DEFINITION:if(p==null){if(g!==void 0)return[new Jl.GraphQLError("Must provide operation name if query contains multiple operations.")];g=I}else((t=I.name)===null||t===void 0?void 0:t.value)===p&&(g=I);break;case H0e.Kind.FRAGMENT_DEFINITION:S[I.name.value]=I;break;default:}if(!g)return p!=null?[new Jl.GraphQLError(`Unknown operation named "${p}".`)]:[new Jl.GraphQLError("Must provide an operation.")];let x=(r=g.variableDefinitions)!==null&&r!==void 0?r:[],A=(0,X0e.getVariableValues)(o,x,c??{},{maxErrors:(n=y?.maxCoercionErrors)!==null&&n!==void 0?n:50});return A.errors?A.errors:{schema:o,fragments:S,rootValue:a,contextValue:s,operation:g,variableValues:A.coerced,fieldResolver:d??fH,typeResolver:f??ove,subscribeFieldResolver:m??fH,collectedErrors:new dH}}function Gft(e,t,r){let n=e.schema.getRootType(t.operation);if(n==null)throw new Jl.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let o=(0,Q0e.collectFields)(e.schema,e.fragments,e.variableValues,n,t.selectionSet),i=void 0;switch(t.operation){case uH.OperationTypeNode.QUERY:return F4(e,n,r,i,o);case uH.OperationTypeNode.MUTATION:return Hft(e,n,r,i,o);case uH.OperationTypeNode.SUBSCRIPTION:return F4(e,n,r,i,o)}}function Hft(e,t,r,n,o){return(0,zft.promiseReduce)(o.entries(),(i,[a,s])=>{let c=(0,iS.addPath)(n,a,t.name),p=rve(e,t,r,s,c);return p===void 0?i:(0,Hu.isPromise)(p)?p.then(d=>(i[a]=d,i)):(i[a]=p,i)},Object.create(null))}function F4(e,t,r,n,o){let i=Object.create(null),a=!1;try{for(let[s,c]of o.entries()){let p=(0,iS.addPath)(n,s,t.name),d=rve(e,t,r,c,p);d!==void 0&&(i[s]=d,(0,Hu.isPromise)(d)&&(a=!0))}}catch(s){if(a)return(0,G0e.promiseForObject)(i).finally(()=>{throw s});throw s}return a?(0,G0e.promiseForObject)(i):i}function rve(e,t,r,n,o){var i;let a=ive(e.schema,t,n[0]);if(!a)return;let s=a.type,c=(i=a.resolve)!==null&&i!==void 0?i:e.fieldResolver,p=nve(e,a,n,t,o);try{let d=(0,X0e.getArgumentValues)(a,n[0],e.variableValues),f=e.contextValue,m=c(r,d,f,p),y;return(0,Hu.isPromise)(m)?y=m.then(g=>H2(e,s,n,p,o,g)):y=H2(e,s,n,p,o,m),(0,Hu.isPromise)(y)?y.then(void 0,g=>{let S=(0,N4.locatedError)(g,n,(0,iS.pathToArray)(o));return R4(S,s,o,e)}):y}catch(d){let f=(0,N4.locatedError)(d,n,(0,iS.pathToArray)(o));return R4(f,s,o,e)}}function nve(e,t,r,n,o){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:o,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function R4(e,t,r,n){if((0,Ah.isNonNullType)(t))throw e;return n.collectedErrors.add(e,r),null}function H2(e,t,r,n,o,i){if(i instanceof Error)throw i;if((0,Ah.isNonNullType)(t)){let a=H2(e,t.ofType,r,n,o,i);if(a===null)throw new Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`);return a}if(i==null)return null;if((0,Ah.isListType)(t))return Zft(e,t,r,n,o,i);if((0,Ah.isLeafType)(t))return Wft(t,i);if((0,Ah.isAbstractType)(t))return Qft(e,t,r,n,o,i);if((0,Ah.isObjectType)(t))return _H(e,t,r,n,o,i);(0,Bft.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,oS.inspect)(t))}function Zft(e,t,r,n,o,i){if(!(0,qft.isIterableObject)(i))throw new Jl.GraphQLError(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`);let a=t.ofType,s=!1,c=Array.from(i,(p,d)=>{let f=(0,iS.addPath)(o,d,void 0);try{let m;return(0,Hu.isPromise)(p)?m=p.then(y=>H2(e,a,r,n,f,y)):m=H2(e,a,r,n,f,p),(0,Hu.isPromise)(m)?(s=!0,m.then(void 0,y=>{let g=(0,N4.locatedError)(y,r,(0,iS.pathToArray)(f));return R4(g,a,f,e)})):m}catch(m){let y=(0,N4.locatedError)(m,r,(0,iS.pathToArray)(f));return R4(y,a,f,e)}});return s?Promise.all(c):c}function Wft(e,t){let r=e.serialize(t);if(r==null)throw new Error(`Expected \`${(0,oS.inspect)(e)}.serialize(${(0,oS.inspect)(t)})\` to return non-nullable value, returned: ${(0,oS.inspect)(r)}`);return r}function Qft(e,t,r,n,o,i){var a;let s=(a=t.resolveType)!==null&&a!==void 0?a:e.typeResolver,c=e.contextValue,p=s(i,c,n,t);return(0,Hu.isPromise)(p)?p.then(d=>_H(e,Z0e(d,e,t,r,n,i),r,n,o,i)):_H(e,Z0e(p,e,t,r,n,i),r,n,o,i)}function Z0e(e,t,r,n,o,i){if(e==null)throw new Jl.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n);if((0,Ah.isObjectType)(e))throw new Jl.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new Jl.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with value ${(0,oS.inspect)(i)}, received "${(0,oS.inspect)(e)}".`);let a=t.schema.getType(e);if(a==null)throw new Jl.GraphQLError(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n});if(!(0,Ah.isObjectType)(a))throw new Jl.GraphQLError(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:n});if(!t.schema.isSubType(r,a))throw new Jl.GraphQLError(`Runtime Object type "${a.name}" is not a possible type for "${r.name}".`,{nodes:n});return a}function _H(e,t,r,n,o,i){let a=Jft(e,t,r);if(t.isTypeOf){let s=t.isTypeOf(i,e.contextValue,n);if((0,Hu.isPromise)(s))return s.then(c=>{if(!c)throw W0e(t,i,r);return F4(e,t,i,o,a)});if(!s)throw W0e(t,i,r)}return F4(e,t,i,o,a)}function W0e(e,t,r){return new Jl.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,oS.inspect)(t)}.`,{nodes:r})}var ove=function(e,t,r,n){if((0,mH.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let o=r.schema.getPossibleTypes(n),i=[];for(let a=0;a{}),s.name}}if(i.length)return Promise.all(i).then(a=>{for(let s=0;s{"use strict";Object.defineProperty(L4,"__esModule",{value:!0});L4.graphql=omt;L4.graphqlSync=imt;var Xft=Ls(),Yft=CO(),emt=Kg(),tmt=L2(),rmt=G2(),nmt=Z2();function omt(e){return new Promise(t=>t(ave(e)))}function imt(e){let t=ave(e);if((0,Yft.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function ave(e){arguments.length<2||(0,Xft.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:r,rootValue:n,contextValue:o,variableValues:i,operationName:a,fieldResolver:s,typeResolver:c}=e,p=(0,tmt.validateSchema)(t);if(p.length>0)return{errors:p};let d;try{d=(0,emt.parse)(r)}catch(m){return{errors:[m]}}let f=(0,rmt.validate)(t,d);return f.length>0?{errors:f}:(0,nmt.execute)({schema:t,document:d,rootValue:n,contextValue:o,variableValues:i,operationName:a,fieldResolver:s,typeResolver:c})}});var uve=L(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Object.defineProperty(Ze,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Zu.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(Ze,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return pf.GRAPHQL_MAX_INT}});Object.defineProperty(Ze,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return pf.GRAPHQL_MIN_INT}});Object.defineProperty(Ze,"GraphQLBoolean",{enumerable:!0,get:function(){return pf.GraphQLBoolean}});Object.defineProperty(Ze,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Zu.GraphQLDeprecatedDirective}});Object.defineProperty(Ze,"GraphQLDirective",{enumerable:!0,get:function(){return Zu.GraphQLDirective}});Object.defineProperty(Ze,"GraphQLEnumType",{enumerable:!0,get:function(){return Er.GraphQLEnumType}});Object.defineProperty(Ze,"GraphQLFloat",{enumerable:!0,get:function(){return pf.GraphQLFloat}});Object.defineProperty(Ze,"GraphQLID",{enumerable:!0,get:function(){return pf.GraphQLID}});Object.defineProperty(Ze,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Zu.GraphQLIncludeDirective}});Object.defineProperty(Ze,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Er.GraphQLInputObjectType}});Object.defineProperty(Ze,"GraphQLInt",{enumerable:!0,get:function(){return pf.GraphQLInt}});Object.defineProperty(Ze,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Er.GraphQLInterfaceType}});Object.defineProperty(Ze,"GraphQLList",{enumerable:!0,get:function(){return Er.GraphQLList}});Object.defineProperty(Ze,"GraphQLNonNull",{enumerable:!0,get:function(){return Er.GraphQLNonNull}});Object.defineProperty(Ze,"GraphQLObjectType",{enumerable:!0,get:function(){return Er.GraphQLObjectType}});Object.defineProperty(Ze,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Zu.GraphQLOneOfDirective}});Object.defineProperty(Ze,"GraphQLScalarType",{enumerable:!0,get:function(){return Er.GraphQLScalarType}});Object.defineProperty(Ze,"GraphQLSchema",{enumerable:!0,get:function(){return hH.GraphQLSchema}});Object.defineProperty(Ze,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Zu.GraphQLSkipDirective}});Object.defineProperty(Ze,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Zu.GraphQLSpecifiedByDirective}});Object.defineProperty(Ze,"GraphQLString",{enumerable:!0,get:function(){return pf.GraphQLString}});Object.defineProperty(Ze,"GraphQLUnionType",{enumerable:!0,get:function(){return Er.GraphQLUnionType}});Object.defineProperty(Ze,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return _c.SchemaMetaFieldDef}});Object.defineProperty(Ze,"TypeKind",{enumerable:!0,get:function(){return _c.TypeKind}});Object.defineProperty(Ze,"TypeMetaFieldDef",{enumerable:!0,get:function(){return _c.TypeMetaFieldDef}});Object.defineProperty(Ze,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return _c.TypeNameMetaFieldDef}});Object.defineProperty(Ze,"__Directive",{enumerable:!0,get:function(){return _c.__Directive}});Object.defineProperty(Ze,"__DirectiveLocation",{enumerable:!0,get:function(){return _c.__DirectiveLocation}});Object.defineProperty(Ze,"__EnumValue",{enumerable:!0,get:function(){return _c.__EnumValue}});Object.defineProperty(Ze,"__Field",{enumerable:!0,get:function(){return _c.__Field}});Object.defineProperty(Ze,"__InputValue",{enumerable:!0,get:function(){return _c.__InputValue}});Object.defineProperty(Ze,"__Schema",{enumerable:!0,get:function(){return _c.__Schema}});Object.defineProperty(Ze,"__Type",{enumerable:!0,get:function(){return _c.__Type}});Object.defineProperty(Ze,"__TypeKind",{enumerable:!0,get:function(){return _c.__TypeKind}});Object.defineProperty(Ze,"assertAbstractType",{enumerable:!0,get:function(){return Er.assertAbstractType}});Object.defineProperty(Ze,"assertCompositeType",{enumerable:!0,get:function(){return Er.assertCompositeType}});Object.defineProperty(Ze,"assertDirective",{enumerable:!0,get:function(){return Zu.assertDirective}});Object.defineProperty(Ze,"assertEnumType",{enumerable:!0,get:function(){return Er.assertEnumType}});Object.defineProperty(Ze,"assertEnumValueName",{enumerable:!0,get:function(){return lve.assertEnumValueName}});Object.defineProperty(Ze,"assertInputObjectType",{enumerable:!0,get:function(){return Er.assertInputObjectType}});Object.defineProperty(Ze,"assertInputType",{enumerable:!0,get:function(){return Er.assertInputType}});Object.defineProperty(Ze,"assertInterfaceType",{enumerable:!0,get:function(){return Er.assertInterfaceType}});Object.defineProperty(Ze,"assertLeafType",{enumerable:!0,get:function(){return Er.assertLeafType}});Object.defineProperty(Ze,"assertListType",{enumerable:!0,get:function(){return Er.assertListType}});Object.defineProperty(Ze,"assertName",{enumerable:!0,get:function(){return lve.assertName}});Object.defineProperty(Ze,"assertNamedType",{enumerable:!0,get:function(){return Er.assertNamedType}});Object.defineProperty(Ze,"assertNonNullType",{enumerable:!0,get:function(){return Er.assertNonNullType}});Object.defineProperty(Ze,"assertNullableType",{enumerable:!0,get:function(){return Er.assertNullableType}});Object.defineProperty(Ze,"assertObjectType",{enumerable:!0,get:function(){return Er.assertObjectType}});Object.defineProperty(Ze,"assertOutputType",{enumerable:!0,get:function(){return Er.assertOutputType}});Object.defineProperty(Ze,"assertScalarType",{enumerable:!0,get:function(){return Er.assertScalarType}});Object.defineProperty(Ze,"assertSchema",{enumerable:!0,get:function(){return hH.assertSchema}});Object.defineProperty(Ze,"assertType",{enumerable:!0,get:function(){return Er.assertType}});Object.defineProperty(Ze,"assertUnionType",{enumerable:!0,get:function(){return Er.assertUnionType}});Object.defineProperty(Ze,"assertValidSchema",{enumerable:!0,get:function(){return cve.assertValidSchema}});Object.defineProperty(Ze,"assertWrappingType",{enumerable:!0,get:function(){return Er.assertWrappingType}});Object.defineProperty(Ze,"getNamedType",{enumerable:!0,get:function(){return Er.getNamedType}});Object.defineProperty(Ze,"getNullableType",{enumerable:!0,get:function(){return Er.getNullableType}});Object.defineProperty(Ze,"introspectionTypes",{enumerable:!0,get:function(){return _c.introspectionTypes}});Object.defineProperty(Ze,"isAbstractType",{enumerable:!0,get:function(){return Er.isAbstractType}});Object.defineProperty(Ze,"isCompositeType",{enumerable:!0,get:function(){return Er.isCompositeType}});Object.defineProperty(Ze,"isDirective",{enumerable:!0,get:function(){return Zu.isDirective}});Object.defineProperty(Ze,"isEnumType",{enumerable:!0,get:function(){return Er.isEnumType}});Object.defineProperty(Ze,"isInputObjectType",{enumerable:!0,get:function(){return Er.isInputObjectType}});Object.defineProperty(Ze,"isInputType",{enumerable:!0,get:function(){return Er.isInputType}});Object.defineProperty(Ze,"isInterfaceType",{enumerable:!0,get:function(){return Er.isInterfaceType}});Object.defineProperty(Ze,"isIntrospectionType",{enumerable:!0,get:function(){return _c.isIntrospectionType}});Object.defineProperty(Ze,"isLeafType",{enumerable:!0,get:function(){return Er.isLeafType}});Object.defineProperty(Ze,"isListType",{enumerable:!0,get:function(){return Er.isListType}});Object.defineProperty(Ze,"isNamedType",{enumerable:!0,get:function(){return Er.isNamedType}});Object.defineProperty(Ze,"isNonNullType",{enumerable:!0,get:function(){return Er.isNonNullType}});Object.defineProperty(Ze,"isNullableType",{enumerable:!0,get:function(){return Er.isNullableType}});Object.defineProperty(Ze,"isObjectType",{enumerable:!0,get:function(){return Er.isObjectType}});Object.defineProperty(Ze,"isOutputType",{enumerable:!0,get:function(){return Er.isOutputType}});Object.defineProperty(Ze,"isRequiredArgument",{enumerable:!0,get:function(){return Er.isRequiredArgument}});Object.defineProperty(Ze,"isRequiredInputField",{enumerable:!0,get:function(){return Er.isRequiredInputField}});Object.defineProperty(Ze,"isScalarType",{enumerable:!0,get:function(){return Er.isScalarType}});Object.defineProperty(Ze,"isSchema",{enumerable:!0,get:function(){return hH.isSchema}});Object.defineProperty(Ze,"isSpecifiedDirective",{enumerable:!0,get:function(){return Zu.isSpecifiedDirective}});Object.defineProperty(Ze,"isSpecifiedScalarType",{enumerable:!0,get:function(){return pf.isSpecifiedScalarType}});Object.defineProperty(Ze,"isType",{enumerable:!0,get:function(){return Er.isType}});Object.defineProperty(Ze,"isUnionType",{enumerable:!0,get:function(){return Er.isUnionType}});Object.defineProperty(Ze,"isWrappingType",{enumerable:!0,get:function(){return Er.isWrappingType}});Object.defineProperty(Ze,"resolveObjMapThunk",{enumerable:!0,get:function(){return Er.resolveObjMapThunk}});Object.defineProperty(Ze,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return Er.resolveReadonlyArrayThunk}});Object.defineProperty(Ze,"specifiedDirectives",{enumerable:!0,get:function(){return Zu.specifiedDirectives}});Object.defineProperty(Ze,"specifiedScalarTypes",{enumerable:!0,get:function(){return pf.specifiedScalarTypes}});Object.defineProperty(Ze,"validateSchema",{enumerable:!0,get:function(){return cve.validateSchema}});var hH=Yg(),Er=vn(),Zu=pc(),pf=Sd(),_c=Vl(),cve=L2(),lve=b2()});var dve=L(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Object.defineProperty(Cn,"BREAK",{enumerable:!0,get:function(){return Q2.BREAK}});Object.defineProperty(Cn,"DirectiveLocation",{enumerable:!0,get:function(){return dmt.DirectiveLocation}});Object.defineProperty(Cn,"Kind",{enumerable:!0,get:function(){return cmt.Kind}});Object.defineProperty(Cn,"Lexer",{enumerable:!0,get:function(){return umt.Lexer}});Object.defineProperty(Cn,"Location",{enumerable:!0,get:function(){return yH.Location}});Object.defineProperty(Cn,"OperationTypeNode",{enumerable:!0,get:function(){return yH.OperationTypeNode}});Object.defineProperty(Cn,"Source",{enumerable:!0,get:function(){return amt.Source}});Object.defineProperty(Cn,"Token",{enumerable:!0,get:function(){return yH.Token}});Object.defineProperty(Cn,"TokenKind",{enumerable:!0,get:function(){return lmt.TokenKind}});Object.defineProperty(Cn,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Q2.getEnterLeaveForKind}});Object.defineProperty(Cn,"getLocation",{enumerable:!0,get:function(){return smt.getLocation}});Object.defineProperty(Cn,"getVisitFn",{enumerable:!0,get:function(){return Q2.getVisitFn}});Object.defineProperty(Cn,"isConstValueNode",{enumerable:!0,get:function(){return Wu.isConstValueNode}});Object.defineProperty(Cn,"isDefinitionNode",{enumerable:!0,get:function(){return Wu.isDefinitionNode}});Object.defineProperty(Cn,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Wu.isExecutableDefinitionNode}});Object.defineProperty(Cn,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return Wu.isSchemaCoordinateNode}});Object.defineProperty(Cn,"isSelectionNode",{enumerable:!0,get:function(){return Wu.isSelectionNode}});Object.defineProperty(Cn,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Wu.isTypeDefinitionNode}});Object.defineProperty(Cn,"isTypeExtensionNode",{enumerable:!0,get:function(){return Wu.isTypeExtensionNode}});Object.defineProperty(Cn,"isTypeNode",{enumerable:!0,get:function(){return Wu.isTypeNode}});Object.defineProperty(Cn,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Wu.isTypeSystemDefinitionNode}});Object.defineProperty(Cn,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Wu.isTypeSystemExtensionNode}});Object.defineProperty(Cn,"isValueNode",{enumerable:!0,get:function(){return Wu.isValueNode}});Object.defineProperty(Cn,"parse",{enumerable:!0,get:function(){return W2.parse}});Object.defineProperty(Cn,"parseConstValue",{enumerable:!0,get:function(){return W2.parseConstValue}});Object.defineProperty(Cn,"parseSchemaCoordinate",{enumerable:!0,get:function(){return W2.parseSchemaCoordinate}});Object.defineProperty(Cn,"parseType",{enumerable:!0,get:function(){return W2.parseType}});Object.defineProperty(Cn,"parseValue",{enumerable:!0,get:function(){return W2.parseValue}});Object.defineProperty(Cn,"print",{enumerable:!0,get:function(){return pmt.print}});Object.defineProperty(Cn,"printLocation",{enumerable:!0,get:function(){return pve.printLocation}});Object.defineProperty(Cn,"printSourceLocation",{enumerable:!0,get:function(){return pve.printSourceLocation}});Object.defineProperty(Cn,"visit",{enumerable:!0,get:function(){return Q2.visit}});Object.defineProperty(Cn,"visitInParallel",{enumerable:!0,get:function(){return Q2.visitInParallel}});var amt=MO(),smt=PO(),pve=uJ(),cmt=Sn(),lmt=w1(),umt=m2(),W2=Kg(),pmt=Gc(),Q2=Gg(),yH=Bl(),Wu=tS(),dmt=A1()});var _ve=L(gH=>{"use strict";Object.defineProperty(gH,"__esModule",{value:!0});gH.isAsyncIterable=_mt;function _mt(e){return typeof e?.[Symbol.asyncIterator]=="function"}});var fve=L(SH=>{"use strict";Object.defineProperty(SH,"__esModule",{value:!0});SH.mapAsyncIterator=fmt;function fmt(e,t){let r=e[Symbol.asyncIterator]();async function n(o){if(o.done)return o;try{return{value:await t(o.value),done:!1}}catch(i){if(typeof r.return=="function")try{await r.return()}catch{}throw i}}return{async next(){return n(await r.next())},async return(){return typeof r.return=="function"?n(await r.return()):{value:void 0,done:!0}},async throw(o){if(typeof r.throw=="function")return n(await r.throw(o));throw o},[Symbol.asyncIterator](){return this}}}});var gve=L($4=>{"use strict";Object.defineProperty($4,"__esModule",{value:!0});$4.createSourceEventStream=yve;$4.subscribe=bmt;var mmt=Ls(),hmt=eo(),hve=_ve(),mve=j2(),vH=ar(),ymt=P4(),gmt=A4(),X2=Z2(),Smt=fve(),vmt=M1();async function bmt(e){arguments.length<2||(0,mmt.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let t=await yve(e);if(!(0,hve.isAsyncIterable)(t))return t;let r=n=>(0,X2.execute)({...e,rootValue:n});return(0,Smt.mapAsyncIterator)(t,r)}function xmt(e){let t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function yve(...e){let t=xmt(e),{schema:r,document:n,variableValues:o}=t;(0,X2.assertValidExecutionArguments)(r,n,o);let i=(0,X2.buildExecutionContext)(t);if(!("schema"in i))return{errors:i};try{let a=await Emt(i);if(!(0,hve.isAsyncIterable)(a))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,hmt.inspect)(a)}.`);return a}catch(a){if(a instanceof vH.GraphQLError)return{errors:[a]};throw a}}async function Emt(e){let{schema:t,fragments:r,operation:n,variableValues:o,rootValue:i}=e,a=t.getSubscriptionType();if(a==null)throw new vH.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:n});let s=(0,gmt.collectFields)(t,r,o,a,n.selectionSet),[c,p]=[...s.entries()][0],d=(0,X2.getFieldDef)(t,a,p[0]);if(!d){let g=p[0].name.value;throw new vH.GraphQLError(`The subscription field "${g}" is not defined.`,{nodes:p})}let f=(0,mve.addPath)(void 0,c,a.name),m=(0,X2.buildResolveInfo)(e,d,p,a,f);try{var y;let g=(0,vmt.getArgumentValues)(d,p[0],o),S=e.contextValue,A=await((y=d.subscribe)!==null&&y!==void 0?y:e.subscribeFieldResolver)(i,g,S,m);if(A instanceof Error)throw A;return A}catch(g){throw(0,ymt.locatedError)(g,p,(0,mve.pathToArray)(f))}}});var vve=L(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Object.defineProperty(Gl,"createSourceEventStream",{enumerable:!0,get:function(){return Sve.createSourceEventStream}});Object.defineProperty(Gl,"defaultFieldResolver",{enumerable:!0,get:function(){return M4.defaultFieldResolver}});Object.defineProperty(Gl,"defaultTypeResolver",{enumerable:!0,get:function(){return M4.defaultTypeResolver}});Object.defineProperty(Gl,"execute",{enumerable:!0,get:function(){return M4.execute}});Object.defineProperty(Gl,"executeSync",{enumerable:!0,get:function(){return M4.executeSync}});Object.defineProperty(Gl,"getArgumentValues",{enumerable:!0,get:function(){return bH.getArgumentValues}});Object.defineProperty(Gl,"getDirectiveValues",{enumerable:!0,get:function(){return bH.getDirectiveValues}});Object.defineProperty(Gl,"getVariableValues",{enumerable:!0,get:function(){return bH.getVariableValues}});Object.defineProperty(Gl,"responsePathAsArray",{enumerable:!0,get:function(){return Tmt.pathToArray}});Object.defineProperty(Gl,"subscribe",{enumerable:!0,get:function(){return Sve.subscribe}});var Tmt=j2(),M4=Z2(),Sve=gve(),bH=M1()});var bve=L(TH=>{"use strict";Object.defineProperty(TH,"__esModule",{value:!0});TH.NoDeprecatedCustomRule=Dmt;var xH=us(),Y2=ar(),EH=vn();function Dmt(e){return{Field(t){let r=e.getFieldDef(),n=r?.deprecationReason;if(r&&n!=null){let o=e.getParentType();o!=null||(0,xH.invariant)(!1),e.reportError(new Y2.GraphQLError(`The field ${o.name}.${r.name} is deprecated. ${n}`,{nodes:t}))}},Argument(t){let r=e.getArgument(),n=r?.deprecationReason;if(r&&n!=null){let o=e.getDirective();if(o!=null)e.reportError(new Y2.GraphQLError(`Directive "@${o.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:t}));else{let i=e.getParentType(),a=e.getFieldDef();i!=null&&a!=null||(0,xH.invariant)(!1),e.reportError(new Y2.GraphQLError(`Field "${i.name}.${a.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:t}))}}},ObjectField(t){let r=(0,EH.getNamedType)(e.getParentInputType());if((0,EH.isInputObjectType)(r)){let n=r.getFields()[t.name.value],o=n?.deprecationReason;o!=null&&e.reportError(new Y2.GraphQLError(`The input field ${r.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}},EnumValue(t){let r=e.getEnumValue(),n=r?.deprecationReason;if(r&&n!=null){let o=(0,EH.getNamedType)(e.getInputType());o!=null||(0,xH.invariant)(!1),e.reportError(new Y2.GraphQLError(`The enum value "${o.name}.${r.name}" is deprecated. ${n}`,{nodes:t}))}}}}});var xve=L(DH=>{"use strict";Object.defineProperty(DH,"__esModule",{value:!0});DH.NoSchemaIntrospectionCustomRule=kmt;var Amt=ar(),wmt=vn(),Imt=Vl();function kmt(e){return{Field(t){let r=(0,wmt.getNamedType)(e.getType());r&&(0,Imt.isIntrospectionType)(r)&&e.reportError(new Amt.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var Tve=L(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Object.defineProperty(Rr,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return Omt.ExecutableDefinitionsRule}});Object.defineProperty(Rr,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return Nmt.FieldsOnCorrectTypeRule}});Object.defineProperty(Rr,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return Fmt.FragmentsOnCompositeTypesRule}});Object.defineProperty(Rr,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return Rmt.KnownArgumentNamesRule}});Object.defineProperty(Rr,"KnownDirectivesRule",{enumerable:!0,get:function(){return Lmt.KnownDirectivesRule}});Object.defineProperty(Rr,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return $mt.KnownFragmentNamesRule}});Object.defineProperty(Rr,"KnownTypeNamesRule",{enumerable:!0,get:function(){return Mmt.KnownTypeNamesRule}});Object.defineProperty(Rr,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return jmt.LoneAnonymousOperationRule}});Object.defineProperty(Rr,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return iht.LoneSchemaDefinitionRule}});Object.defineProperty(Rr,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return oht.MaxIntrospectionDepthRule}});Object.defineProperty(Rr,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return _ht.NoDeprecatedCustomRule}});Object.defineProperty(Rr,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return Bmt.NoFragmentCyclesRule}});Object.defineProperty(Rr,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return fht.NoSchemaIntrospectionCustomRule}});Object.defineProperty(Rr,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return qmt.NoUndefinedVariablesRule}});Object.defineProperty(Rr,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return Umt.NoUnusedFragmentsRule}});Object.defineProperty(Rr,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return zmt.NoUnusedVariablesRule}});Object.defineProperty(Rr,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return Vmt.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Rr,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return Jmt.PossibleFragmentSpreadsRule}});Object.defineProperty(Rr,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return dht.PossibleTypeExtensionsRule}});Object.defineProperty(Rr,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return Kmt.ProvidedRequiredArgumentsRule}});Object.defineProperty(Rr,"ScalarLeafsRule",{enumerable:!0,get:function(){return Gmt.ScalarLeafsRule}});Object.defineProperty(Rr,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return Hmt.SingleFieldSubscriptionsRule}});Object.defineProperty(Rr,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return uht.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(Rr,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return Zmt.UniqueArgumentNamesRule}});Object.defineProperty(Rr,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return pht.UniqueDirectiveNamesRule}});Object.defineProperty(Rr,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return Wmt.UniqueDirectivesPerLocationRule}});Object.defineProperty(Rr,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return cht.UniqueEnumValueNamesRule}});Object.defineProperty(Rr,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return lht.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Rr,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return Qmt.UniqueFragmentNamesRule}});Object.defineProperty(Rr,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return Xmt.UniqueInputFieldNamesRule}});Object.defineProperty(Rr,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return Ymt.UniqueOperationNamesRule}});Object.defineProperty(Rr,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return aht.UniqueOperationTypesRule}});Object.defineProperty(Rr,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return sht.UniqueTypeNamesRule}});Object.defineProperty(Rr,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return eht.UniqueVariableNamesRule}});Object.defineProperty(Rr,"ValidationContext",{enumerable:!0,get:function(){return Pmt.ValidationContext}});Object.defineProperty(Rr,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return tht.ValuesOfCorrectTypeRule}});Object.defineProperty(Rr,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return rht.VariablesAreInputTypesRule}});Object.defineProperty(Rr,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return nht.VariablesInAllowedPositionRule}});Object.defineProperty(Rr,"recommendedRules",{enumerable:!0,get:function(){return Eve.recommendedRules}});Object.defineProperty(Rr,"specifiedRules",{enumerable:!0,get:function(){return Eve.specifiedRules}});Object.defineProperty(Rr,"validate",{enumerable:!0,get:function(){return Cmt.validate}});var Cmt=G2(),Pmt=rH(),Eve=YG(),Omt=mK(),Nmt=yK(),Fmt=SK(),Rmt=vK(),Lmt=TK(),$mt=AK(),Mmt=kK(),jmt=PK(),Bmt=$K(),qmt=jK(),Umt=qK(),zmt=zK(),Vmt=YK(),Jmt=rG(),Kmt=aG(),Gmt=uG(),Hmt=SG(),Zmt=TG(),Wmt=kG(),Qmt=LG(),Xmt=MG(),Ymt=BG(),eht=KG(),tht=HG(),rht=WG(),nht=XG(),oht=RK(),iht=NK(),aht=UG(),sht=VG(),cht=PG(),lht=FG(),uht=xG(),pht=AG(),dht=oG(),_ht=bve(),fht=xve()});var Dve=L(aS=>{"use strict";Object.defineProperty(aS,"__esModule",{value:!0});Object.defineProperty(aS,"GraphQLError",{enumerable:!0,get:function(){return AH.GraphQLError}});Object.defineProperty(aS,"formatError",{enumerable:!0,get:function(){return AH.formatError}});Object.defineProperty(aS,"locatedError",{enumerable:!0,get:function(){return hht.locatedError}});Object.defineProperty(aS,"printError",{enumerable:!0,get:function(){return AH.printError}});Object.defineProperty(aS,"syntaxError",{enumerable:!0,get:function(){return mht.syntaxError}});var AH=ar(),mht=s2(),hht=P4()});var IH=L(wH=>{"use strict";Object.defineProperty(wH,"__esModule",{value:!0});wH.getIntrospectionQuery=yht;function yht(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},r=t.descriptions?"description":"",n=t.specifiedByUrl?"specifiedByURL":"",o=t.directiveIsRepeatable?"isRepeatable":"",i=t.schemaDescription?r:"";function a(c){return t.inputValueDeprecation?c:""}let s=t.oneOf?"isOneOf":"";return` +`))}});var V0e=L(aH=>{"use strict";Object.defineProperty(aH,"__esModule",{value:!0});aH.memoize3=Oft;function Oft(e){let t;return function(n,o,i){t===void 0&&(t=new WeakMap);let a=t.get(n);a===void 0&&(a=new WeakMap,t.set(n,a));let s=a.get(o);s===void 0&&(s=new WeakMap,a.set(o,s));let c=s.get(i);return c===void 0&&(c=e(n,o,i),s.set(i,c)),c}}});var K0e=L(sH=>{"use strict";Object.defineProperty(sH,"__esModule",{value:!0});sH.promiseForObject=Nft;function Nft(e){return Promise.all(Object.values(e)).then(t=>{let r=Object.create(null);for(let[n,o]of Object.keys(e).entries())r[o]=t[n];return r})}});var G0e=L(cH=>{"use strict";Object.defineProperty(cH,"__esModule",{value:!0});cH.promiseReduce=Rft;var Fft=OO();function Rft(e,t,r){let n=r;for(let o of e)n=(0,Fft.isPromise)(n)?n.then(i=>t(i,o)):t(n,o);return n}});var H0e=L(uH=>{"use strict";Object.defineProperty(uH,"__esModule",{value:!0});uH.toError=$ft;var Lft=eo();function $ft(e){return e instanceof Error?e:new lH(e)}var lH=class extends Error{constructor(t){super("Unexpected error value: "+(0,Lft.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var N4=L(pH=>{"use strict";Object.defineProperty(pH,"__esModule",{value:!0});pH.locatedError=Bft;var Mft=H0e(),jft=ar();function Bft(e,t,r){var n;let o=(0,Mft.toError)(e);return qft(o)?o:new jft.GraphQLError(o.message,{nodes:(n=o.nodes)!==null&&n!==void 0?n:t,source:o.source,positions:o.positions,path:r,originalError:o})}function qft(e){return Array.isArray(e.path)}});var QA=L(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.assertValidExecutionArguments=rve;Gl.buildExecutionContext=nve;Gl.buildResolveInfo=ive;Gl.defaultTypeResolver=Gl.defaultFieldResolver=void 0;Gl.execute=tve;Gl.executeSync=Hft;Gl.getFieldDef=sve;var _H=Ls(),cS=eo(),Uft=us(),zft=d4(),yH=yd(),Zu=OO(),Jft=V0e(),lS=qA(),Z0e=K0e(),Vft=G0e(),Kl=ar(),R4=N4(),dH=ql(),W0e=Sn(),kh=vn(),z1=Vl(),Kft=MA(),Y0e=w4(),eve=q1(),Gft=(0,Jft.memoize3)((e,t,r)=>(0,Y0e.collectSubfields)(e.schema,e.fragments,e.variableValues,t,r)),fH=class{constructor(){this._errorPositions=new Set,this._errors=[]}get errors(){return this._errors}add(t,r){this._hasNulledPosition(r)||(this._errorPositions.add(r),this._errors.push(t))}_hasNulledPosition(t){let r=t;for(;r!==void 0;){if(this._errorPositions.has(r))return!0;r=r.prev}return this._errorPositions.has(void 0)}};function tve(e){arguments.length<2||(0,_H.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:r,variableValues:n,rootValue:o}=e;rve(t,r,n);let i=nve(e);if(!("schema"in i))return{errors:i};try{let{operation:a}=i,s=Zft(i,a,o);return(0,Zu.isPromise)(s)?s.then(c=>F4(c,i.collectedErrors.errors),c=>(i.collectedErrors.add(c,void 0),F4(null,i.collectedErrors.errors))):F4(s,i.collectedErrors.errors)}catch(a){return i.collectedErrors.add(a,void 0),F4(null,i.collectedErrors.errors)}}function Hft(e){let t=tve(e);if((0,Zu.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function F4(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function rve(e,t,r){t||(0,_H.devAssert)(!1,"Must provide document."),(0,Kft.assertValidSchema)(e),r==null||(0,yH.isObjectLike)(r)||(0,_H.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function nve(e){var t,r,n;let{schema:o,document:i,rootValue:a,contextValue:s,variableValues:c,operationName:p,fieldResolver:d,typeResolver:f,subscribeFieldResolver:m,options:y}=e,g,S=Object.create(null);for(let I of i.definitions)switch(I.kind){case W0e.Kind.OPERATION_DEFINITION:if(p==null){if(g!==void 0)return[new Kl.GraphQLError("Must provide operation name if query contains multiple operations.")];g=I}else((t=I.name)===null||t===void 0?void 0:t.value)===p&&(g=I);break;case W0e.Kind.FRAGMENT_DEFINITION:S[I.name.value]=I;break;default:}if(!g)return p!=null?[new Kl.GraphQLError(`Unknown operation named "${p}".`)]:[new Kl.GraphQLError("Must provide an operation.")];let b=(r=g.variableDefinitions)!==null&&r!==void 0?r:[],E=(0,eve.getVariableValues)(o,b,c??{},{maxErrors:(n=y?.maxCoercionErrors)!==null&&n!==void 0?n:50});return E.errors?E.errors:{schema:o,fragments:S,rootValue:a,contextValue:s,operation:g,variableValues:E.coerced,fieldResolver:d??hH,typeResolver:f??ave,subscribeFieldResolver:m??hH,collectedErrors:new fH}}function Zft(e,t,r){let n=e.schema.getRootType(t.operation);if(n==null)throw new Kl.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let o=(0,Y0e.collectFields)(e.schema,e.fragments,e.variableValues,n,t.selectionSet),i=void 0;switch(t.operation){case dH.OperationTypeNode.QUERY:return L4(e,n,r,i,o);case dH.OperationTypeNode.MUTATION:return Wft(e,n,r,i,o);case dH.OperationTypeNode.SUBSCRIPTION:return L4(e,n,r,i,o)}}function Wft(e,t,r,n,o){return(0,Vft.promiseReduce)(o.entries(),(i,[a,s])=>{let c=(0,lS.addPath)(n,a,t.name),p=ove(e,t,r,s,c);return p===void 0?i:(0,Zu.isPromise)(p)?p.then(d=>(i[a]=d,i)):(i[a]=p,i)},Object.create(null))}function L4(e,t,r,n,o){let i=Object.create(null),a=!1;try{for(let[s,c]of o.entries()){let p=(0,lS.addPath)(n,s,t.name),d=ove(e,t,r,c,p);d!==void 0&&(i[s]=d,(0,Zu.isPromise)(d)&&(a=!0))}}catch(s){if(a)return(0,Z0e.promiseForObject)(i).finally(()=>{throw s});throw s}return a?(0,Z0e.promiseForObject)(i):i}function ove(e,t,r,n,o){var i;let a=sve(e.schema,t,n[0]);if(!a)return;let s=a.type,c=(i=a.resolve)!==null&&i!==void 0?i:e.fieldResolver,p=ive(e,a,n,t,o);try{let d=(0,eve.getArgumentValues)(a,n[0],e.variableValues),f=e.contextValue,m=c(r,d,f,p),y;return(0,Zu.isPromise)(m)?y=m.then(g=>WA(e,s,n,p,o,g)):y=WA(e,s,n,p,o,m),(0,Zu.isPromise)(y)?y.then(void 0,g=>{let S=(0,R4.locatedError)(g,n,(0,lS.pathToArray)(o));return $4(S,s,o,e)}):y}catch(d){let f=(0,R4.locatedError)(d,n,(0,lS.pathToArray)(o));return $4(f,s,o,e)}}function ive(e,t,r,n,o){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:o,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function $4(e,t,r,n){if((0,kh.isNonNullType)(t))throw e;return n.collectedErrors.add(e,r),null}function WA(e,t,r,n,o,i){if(i instanceof Error)throw i;if((0,kh.isNonNullType)(t)){let a=WA(e,t.ofType,r,n,o,i);if(a===null)throw new Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`);return a}if(i==null)return null;if((0,kh.isListType)(t))return Qft(e,t,r,n,o,i);if((0,kh.isLeafType)(t))return Xft(t,i);if((0,kh.isAbstractType)(t))return Yft(e,t,r,n,o,i);if((0,kh.isObjectType)(t))return mH(e,t,r,n,o,i);(0,Uft.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,cS.inspect)(t))}function Qft(e,t,r,n,o,i){if(!(0,zft.isIterableObject)(i))throw new Kl.GraphQLError(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`);let a=t.ofType,s=!1,c=Array.from(i,(p,d)=>{let f=(0,lS.addPath)(o,d,void 0);try{let m;return(0,Zu.isPromise)(p)?m=p.then(y=>WA(e,a,r,n,f,y)):m=WA(e,a,r,n,f,p),(0,Zu.isPromise)(m)?(s=!0,m.then(void 0,y=>{let g=(0,R4.locatedError)(y,r,(0,lS.pathToArray)(f));return $4(g,a,f,e)})):m}catch(m){let y=(0,R4.locatedError)(m,r,(0,lS.pathToArray)(f));return $4(y,a,f,e)}});return s?Promise.all(c):c}function Xft(e,t){let r=e.serialize(t);if(r==null)throw new Error(`Expected \`${(0,cS.inspect)(e)}.serialize(${(0,cS.inspect)(t)})\` to return non-nullable value, returned: ${(0,cS.inspect)(r)}`);return r}function Yft(e,t,r,n,o,i){var a;let s=(a=t.resolveType)!==null&&a!==void 0?a:e.typeResolver,c=e.contextValue,p=s(i,c,n,t);return(0,Zu.isPromise)(p)?p.then(d=>mH(e,Q0e(d,e,t,r,n,i),r,n,o,i)):mH(e,Q0e(p,e,t,r,n,i),r,n,o,i)}function Q0e(e,t,r,n,o,i){if(e==null)throw new Kl.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n);if((0,kh.isObjectType)(e))throw new Kl.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new Kl.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with value ${(0,cS.inspect)(i)}, received "${(0,cS.inspect)(e)}".`);let a=t.schema.getType(e);if(a==null)throw new Kl.GraphQLError(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n});if(!(0,kh.isObjectType)(a))throw new Kl.GraphQLError(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:n});if(!t.schema.isSubType(r,a))throw new Kl.GraphQLError(`Runtime Object type "${a.name}" is not a possible type for "${r.name}".`,{nodes:n});return a}function mH(e,t,r,n,o,i){let a=Gft(e,t,r);if(t.isTypeOf){let s=t.isTypeOf(i,e.contextValue,n);if((0,Zu.isPromise)(s))return s.then(c=>{if(!c)throw X0e(t,i,r);return L4(e,t,i,o,a)});if(!s)throw X0e(t,i,r)}return L4(e,t,i,o,a)}function X0e(e,t,r){return new Kl.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,cS.inspect)(t)}.`,{nodes:r})}var ave=function(e,t,r,n){if((0,yH.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let o=r.schema.getPossibleTypes(n),i=[];for(let a=0;a{}),s.name}}if(i.length)return Promise.all(i).then(a=>{for(let s=0;s{"use strict";Object.defineProperty(M4,"__esModule",{value:!0});M4.graphql=amt;M4.graphqlSync=smt;var emt=Ls(),tmt=OO(),rmt=Wg(),nmt=MA(),omt=ZA(),imt=QA();function amt(e){return new Promise(t=>t(cve(e)))}function smt(e){let t=cve(e);if((0,tmt.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function cve(e){arguments.length<2||(0,emt.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:r,rootValue:n,contextValue:o,variableValues:i,operationName:a,fieldResolver:s,typeResolver:c}=e,p=(0,nmt.validateSchema)(t);if(p.length>0)return{errors:p};let d;try{d=(0,rmt.parse)(r)}catch(m){return{errors:[m]}}let f=(0,omt.validate)(t,d);return f.length>0?{errors:f}:(0,imt.execute)({schema:t,document:d,rootValue:n,contextValue:o,variableValues:i,operationName:a,fieldResolver:s,typeResolver:c})}});var dve=L(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Object.defineProperty(Ze,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Wu.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(Ze,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return _f.GRAPHQL_MAX_INT}});Object.defineProperty(Ze,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return _f.GRAPHQL_MIN_INT}});Object.defineProperty(Ze,"GraphQLBoolean",{enumerable:!0,get:function(){return _f.GraphQLBoolean}});Object.defineProperty(Ze,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Wu.GraphQLDeprecatedDirective}});Object.defineProperty(Ze,"GraphQLDirective",{enumerable:!0,get:function(){return Wu.GraphQLDirective}});Object.defineProperty(Ze,"GraphQLEnumType",{enumerable:!0,get:function(){return Er.GraphQLEnumType}});Object.defineProperty(Ze,"GraphQLFloat",{enumerable:!0,get:function(){return _f.GraphQLFloat}});Object.defineProperty(Ze,"GraphQLID",{enumerable:!0,get:function(){return _f.GraphQLID}});Object.defineProperty(Ze,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Wu.GraphQLIncludeDirective}});Object.defineProperty(Ze,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Er.GraphQLInputObjectType}});Object.defineProperty(Ze,"GraphQLInt",{enumerable:!0,get:function(){return _f.GraphQLInt}});Object.defineProperty(Ze,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Er.GraphQLInterfaceType}});Object.defineProperty(Ze,"GraphQLList",{enumerable:!0,get:function(){return Er.GraphQLList}});Object.defineProperty(Ze,"GraphQLNonNull",{enumerable:!0,get:function(){return Er.GraphQLNonNull}});Object.defineProperty(Ze,"GraphQLObjectType",{enumerable:!0,get:function(){return Er.GraphQLObjectType}});Object.defineProperty(Ze,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Wu.GraphQLOneOfDirective}});Object.defineProperty(Ze,"GraphQLScalarType",{enumerable:!0,get:function(){return Er.GraphQLScalarType}});Object.defineProperty(Ze,"GraphQLSchema",{enumerable:!0,get:function(){return gH.GraphQLSchema}});Object.defineProperty(Ze,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Wu.GraphQLSkipDirective}});Object.defineProperty(Ze,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Wu.GraphQLSpecifiedByDirective}});Object.defineProperty(Ze,"GraphQLString",{enumerable:!0,get:function(){return _f.GraphQLString}});Object.defineProperty(Ze,"GraphQLUnionType",{enumerable:!0,get:function(){return Er.GraphQLUnionType}});Object.defineProperty(Ze,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return _c.SchemaMetaFieldDef}});Object.defineProperty(Ze,"TypeKind",{enumerable:!0,get:function(){return _c.TypeKind}});Object.defineProperty(Ze,"TypeMetaFieldDef",{enumerable:!0,get:function(){return _c.TypeMetaFieldDef}});Object.defineProperty(Ze,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return _c.TypeNameMetaFieldDef}});Object.defineProperty(Ze,"__Directive",{enumerable:!0,get:function(){return _c.__Directive}});Object.defineProperty(Ze,"__DirectiveLocation",{enumerable:!0,get:function(){return _c.__DirectiveLocation}});Object.defineProperty(Ze,"__EnumValue",{enumerable:!0,get:function(){return _c.__EnumValue}});Object.defineProperty(Ze,"__Field",{enumerable:!0,get:function(){return _c.__Field}});Object.defineProperty(Ze,"__InputValue",{enumerable:!0,get:function(){return _c.__InputValue}});Object.defineProperty(Ze,"__Schema",{enumerable:!0,get:function(){return _c.__Schema}});Object.defineProperty(Ze,"__Type",{enumerable:!0,get:function(){return _c.__Type}});Object.defineProperty(Ze,"__TypeKind",{enumerable:!0,get:function(){return _c.__TypeKind}});Object.defineProperty(Ze,"assertAbstractType",{enumerable:!0,get:function(){return Er.assertAbstractType}});Object.defineProperty(Ze,"assertCompositeType",{enumerable:!0,get:function(){return Er.assertCompositeType}});Object.defineProperty(Ze,"assertDirective",{enumerable:!0,get:function(){return Wu.assertDirective}});Object.defineProperty(Ze,"assertEnumType",{enumerable:!0,get:function(){return Er.assertEnumType}});Object.defineProperty(Ze,"assertEnumValueName",{enumerable:!0,get:function(){return pve.assertEnumValueName}});Object.defineProperty(Ze,"assertInputObjectType",{enumerable:!0,get:function(){return Er.assertInputObjectType}});Object.defineProperty(Ze,"assertInputType",{enumerable:!0,get:function(){return Er.assertInputType}});Object.defineProperty(Ze,"assertInterfaceType",{enumerable:!0,get:function(){return Er.assertInterfaceType}});Object.defineProperty(Ze,"assertLeafType",{enumerable:!0,get:function(){return Er.assertLeafType}});Object.defineProperty(Ze,"assertListType",{enumerable:!0,get:function(){return Er.assertListType}});Object.defineProperty(Ze,"assertName",{enumerable:!0,get:function(){return pve.assertName}});Object.defineProperty(Ze,"assertNamedType",{enumerable:!0,get:function(){return Er.assertNamedType}});Object.defineProperty(Ze,"assertNonNullType",{enumerable:!0,get:function(){return Er.assertNonNullType}});Object.defineProperty(Ze,"assertNullableType",{enumerable:!0,get:function(){return Er.assertNullableType}});Object.defineProperty(Ze,"assertObjectType",{enumerable:!0,get:function(){return Er.assertObjectType}});Object.defineProperty(Ze,"assertOutputType",{enumerable:!0,get:function(){return Er.assertOutputType}});Object.defineProperty(Ze,"assertScalarType",{enumerable:!0,get:function(){return Er.assertScalarType}});Object.defineProperty(Ze,"assertSchema",{enumerable:!0,get:function(){return gH.assertSchema}});Object.defineProperty(Ze,"assertType",{enumerable:!0,get:function(){return Er.assertType}});Object.defineProperty(Ze,"assertUnionType",{enumerable:!0,get:function(){return Er.assertUnionType}});Object.defineProperty(Ze,"assertValidSchema",{enumerable:!0,get:function(){return uve.assertValidSchema}});Object.defineProperty(Ze,"assertWrappingType",{enumerable:!0,get:function(){return Er.assertWrappingType}});Object.defineProperty(Ze,"getNamedType",{enumerable:!0,get:function(){return Er.getNamedType}});Object.defineProperty(Ze,"getNullableType",{enumerable:!0,get:function(){return Er.getNullableType}});Object.defineProperty(Ze,"introspectionTypes",{enumerable:!0,get:function(){return _c.introspectionTypes}});Object.defineProperty(Ze,"isAbstractType",{enumerable:!0,get:function(){return Er.isAbstractType}});Object.defineProperty(Ze,"isCompositeType",{enumerable:!0,get:function(){return Er.isCompositeType}});Object.defineProperty(Ze,"isDirective",{enumerable:!0,get:function(){return Wu.isDirective}});Object.defineProperty(Ze,"isEnumType",{enumerable:!0,get:function(){return Er.isEnumType}});Object.defineProperty(Ze,"isInputObjectType",{enumerable:!0,get:function(){return Er.isInputObjectType}});Object.defineProperty(Ze,"isInputType",{enumerable:!0,get:function(){return Er.isInputType}});Object.defineProperty(Ze,"isInterfaceType",{enumerable:!0,get:function(){return Er.isInterfaceType}});Object.defineProperty(Ze,"isIntrospectionType",{enumerable:!0,get:function(){return _c.isIntrospectionType}});Object.defineProperty(Ze,"isLeafType",{enumerable:!0,get:function(){return Er.isLeafType}});Object.defineProperty(Ze,"isListType",{enumerable:!0,get:function(){return Er.isListType}});Object.defineProperty(Ze,"isNamedType",{enumerable:!0,get:function(){return Er.isNamedType}});Object.defineProperty(Ze,"isNonNullType",{enumerable:!0,get:function(){return Er.isNonNullType}});Object.defineProperty(Ze,"isNullableType",{enumerable:!0,get:function(){return Er.isNullableType}});Object.defineProperty(Ze,"isObjectType",{enumerable:!0,get:function(){return Er.isObjectType}});Object.defineProperty(Ze,"isOutputType",{enumerable:!0,get:function(){return Er.isOutputType}});Object.defineProperty(Ze,"isRequiredArgument",{enumerable:!0,get:function(){return Er.isRequiredArgument}});Object.defineProperty(Ze,"isRequiredInputField",{enumerable:!0,get:function(){return Er.isRequiredInputField}});Object.defineProperty(Ze,"isScalarType",{enumerable:!0,get:function(){return Er.isScalarType}});Object.defineProperty(Ze,"isSchema",{enumerable:!0,get:function(){return gH.isSchema}});Object.defineProperty(Ze,"isSpecifiedDirective",{enumerable:!0,get:function(){return Wu.isSpecifiedDirective}});Object.defineProperty(Ze,"isSpecifiedScalarType",{enumerable:!0,get:function(){return _f.isSpecifiedScalarType}});Object.defineProperty(Ze,"isType",{enumerable:!0,get:function(){return Er.isType}});Object.defineProperty(Ze,"isUnionType",{enumerable:!0,get:function(){return Er.isUnionType}});Object.defineProperty(Ze,"isWrappingType",{enumerable:!0,get:function(){return Er.isWrappingType}});Object.defineProperty(Ze,"resolveObjMapThunk",{enumerable:!0,get:function(){return Er.resolveObjMapThunk}});Object.defineProperty(Ze,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return Er.resolveReadonlyArrayThunk}});Object.defineProperty(Ze,"specifiedDirectives",{enumerable:!0,get:function(){return Wu.specifiedDirectives}});Object.defineProperty(Ze,"specifiedScalarTypes",{enumerable:!0,get:function(){return _f.specifiedScalarTypes}});Object.defineProperty(Ze,"validateSchema",{enumerable:!0,get:function(){return uve.validateSchema}});var gH=nS(),Er=vn(),Wu=pc(),_f=vd(),_c=Vl(),uve=MA(),pve=EA()});var fve=L(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Object.defineProperty(Cn,"BREAK",{enumerable:!0,get:function(){return YA.BREAK}});Object.defineProperty(Cn,"DirectiveLocation",{enumerable:!0,get:function(){return fmt.DirectiveLocation}});Object.defineProperty(Cn,"Kind",{enumerable:!0,get:function(){return umt.Kind}});Object.defineProperty(Cn,"Lexer",{enumerable:!0,get:function(){return dmt.Lexer}});Object.defineProperty(Cn,"Location",{enumerable:!0,get:function(){return SH.Location}});Object.defineProperty(Cn,"OperationTypeNode",{enumerable:!0,get:function(){return SH.OperationTypeNode}});Object.defineProperty(Cn,"Source",{enumerable:!0,get:function(){return cmt.Source}});Object.defineProperty(Cn,"Token",{enumerable:!0,get:function(){return SH.Token}});Object.defineProperty(Cn,"TokenKind",{enumerable:!0,get:function(){return pmt.TokenKind}});Object.defineProperty(Cn,"getEnterLeaveForKind",{enumerable:!0,get:function(){return YA.getEnterLeaveForKind}});Object.defineProperty(Cn,"getLocation",{enumerable:!0,get:function(){return lmt.getLocation}});Object.defineProperty(Cn,"getVisitFn",{enumerable:!0,get:function(){return YA.getVisitFn}});Object.defineProperty(Cn,"isConstValueNode",{enumerable:!0,get:function(){return Qu.isConstValueNode}});Object.defineProperty(Cn,"isDefinitionNode",{enumerable:!0,get:function(){return Qu.isDefinitionNode}});Object.defineProperty(Cn,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Qu.isExecutableDefinitionNode}});Object.defineProperty(Cn,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return Qu.isSchemaCoordinateNode}});Object.defineProperty(Cn,"isSelectionNode",{enumerable:!0,get:function(){return Qu.isSelectionNode}});Object.defineProperty(Cn,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Qu.isTypeDefinitionNode}});Object.defineProperty(Cn,"isTypeExtensionNode",{enumerable:!0,get:function(){return Qu.isTypeExtensionNode}});Object.defineProperty(Cn,"isTypeNode",{enumerable:!0,get:function(){return Qu.isTypeNode}});Object.defineProperty(Cn,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Qu.isTypeSystemDefinitionNode}});Object.defineProperty(Cn,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Qu.isTypeSystemExtensionNode}});Object.defineProperty(Cn,"isValueNode",{enumerable:!0,get:function(){return Qu.isValueNode}});Object.defineProperty(Cn,"parse",{enumerable:!0,get:function(){return XA.parse}});Object.defineProperty(Cn,"parseConstValue",{enumerable:!0,get:function(){return XA.parseConstValue}});Object.defineProperty(Cn,"parseSchemaCoordinate",{enumerable:!0,get:function(){return XA.parseSchemaCoordinate}});Object.defineProperty(Cn,"parseType",{enumerable:!0,get:function(){return XA.parseType}});Object.defineProperty(Cn,"parseValue",{enumerable:!0,get:function(){return XA.parseValue}});Object.defineProperty(Cn,"print",{enumerable:!0,get:function(){return _mt.print}});Object.defineProperty(Cn,"printLocation",{enumerable:!0,get:function(){return _ve.printLocation}});Object.defineProperty(Cn,"printSourceLocation",{enumerable:!0,get:function(){return _ve.printSourceLocation}});Object.defineProperty(Cn,"visit",{enumerable:!0,get:function(){return YA.visit}});Object.defineProperty(Cn,"visitInParallel",{enumerable:!0,get:function(){return YA.visitInParallel}});var cmt=BO(),lmt=NO(),_ve=dV(),umt=Sn(),pmt=C1(),dmt=yA(),XA=Wg(),_mt=Gc(),YA=Qg(),SH=ql(),Qu=iS(),fmt=k1()});var mve=L(vH=>{"use strict";Object.defineProperty(vH,"__esModule",{value:!0});vH.isAsyncIterable=mmt;function mmt(e){return typeof e?.[Symbol.asyncIterator]=="function"}});var hve=L(bH=>{"use strict";Object.defineProperty(bH,"__esModule",{value:!0});bH.mapAsyncIterator=hmt;function hmt(e,t){let r=e[Symbol.asyncIterator]();async function n(o){if(o.done)return o;try{return{value:await t(o.value),done:!1}}catch(i){if(typeof r.return=="function")try{await r.return()}catch{}throw i}}return{async next(){return n(await r.next())},async return(){return typeof r.return=="function"?n(await r.return()):{value:void 0,done:!0}},async throw(o){if(typeof r.throw=="function")return n(await r.throw(o));throw o},[Symbol.asyncIterator](){return this}}}});var vve=L(j4=>{"use strict";Object.defineProperty(j4,"__esModule",{value:!0});j4.createSourceEventStream=Sve;j4.subscribe=Emt;var ymt=Ls(),gmt=eo(),gve=mve(),yve=qA(),xH=ar(),Smt=N4(),vmt=w4(),e2=QA(),bmt=hve(),xmt=q1();async function Emt(e){arguments.length<2||(0,ymt.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let t=await Sve(e);if(!(0,gve.isAsyncIterable)(t))return t;let r=n=>(0,e2.execute)({...e,rootValue:n});return(0,bmt.mapAsyncIterator)(t,r)}function Tmt(e){let t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function Sve(...e){let t=Tmt(e),{schema:r,document:n,variableValues:o}=t;(0,e2.assertValidExecutionArguments)(r,n,o);let i=(0,e2.buildExecutionContext)(t);if(!("schema"in i))return{errors:i};try{let a=await Dmt(i);if(!(0,gve.isAsyncIterable)(a))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,gmt.inspect)(a)}.`);return a}catch(a){if(a instanceof xH.GraphQLError)return{errors:[a]};throw a}}async function Dmt(e){let{schema:t,fragments:r,operation:n,variableValues:o,rootValue:i}=e,a=t.getSubscriptionType();if(a==null)throw new xH.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:n});let s=(0,vmt.collectFields)(t,r,o,a,n.selectionSet),[c,p]=[...s.entries()][0],d=(0,e2.getFieldDef)(t,a,p[0]);if(!d){let g=p[0].name.value;throw new xH.GraphQLError(`The subscription field "${g}" is not defined.`,{nodes:p})}let f=(0,yve.addPath)(void 0,c,a.name),m=(0,e2.buildResolveInfo)(e,d,p,a,f);try{var y;let g=(0,xmt.getArgumentValues)(d,p[0],o),S=e.contextValue,E=await((y=d.subscribe)!==null&&y!==void 0?y:e.subscribeFieldResolver)(i,g,S,m);if(E instanceof Error)throw E;return E}catch(g){throw(0,Smt.locatedError)(g,p,(0,yve.pathToArray)(f))}}});var xve=L(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Object.defineProperty(Hl,"createSourceEventStream",{enumerable:!0,get:function(){return bve.createSourceEventStream}});Object.defineProperty(Hl,"defaultFieldResolver",{enumerable:!0,get:function(){return B4.defaultFieldResolver}});Object.defineProperty(Hl,"defaultTypeResolver",{enumerable:!0,get:function(){return B4.defaultTypeResolver}});Object.defineProperty(Hl,"execute",{enumerable:!0,get:function(){return B4.execute}});Object.defineProperty(Hl,"executeSync",{enumerable:!0,get:function(){return B4.executeSync}});Object.defineProperty(Hl,"getArgumentValues",{enumerable:!0,get:function(){return EH.getArgumentValues}});Object.defineProperty(Hl,"getDirectiveValues",{enumerable:!0,get:function(){return EH.getDirectiveValues}});Object.defineProperty(Hl,"getVariableValues",{enumerable:!0,get:function(){return EH.getVariableValues}});Object.defineProperty(Hl,"responsePathAsArray",{enumerable:!0,get:function(){return Amt.pathToArray}});Object.defineProperty(Hl,"subscribe",{enumerable:!0,get:function(){return bve.subscribe}});var Amt=qA(),B4=QA(),bve=vve(),EH=q1()});var Eve=L(AH=>{"use strict";Object.defineProperty(AH,"__esModule",{value:!0});AH.NoDeprecatedCustomRule=Imt;var TH=us(),t2=ar(),DH=vn();function Imt(e){return{Field(t){let r=e.getFieldDef(),n=r?.deprecationReason;if(r&&n!=null){let o=e.getParentType();o!=null||(0,TH.invariant)(!1),e.reportError(new t2.GraphQLError(`The field ${o.name}.${r.name} is deprecated. ${n}`,{nodes:t}))}},Argument(t){let r=e.getArgument(),n=r?.deprecationReason;if(r&&n!=null){let o=e.getDirective();if(o!=null)e.reportError(new t2.GraphQLError(`Directive "@${o.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:t}));else{let i=e.getParentType(),a=e.getFieldDef();i!=null&&a!=null||(0,TH.invariant)(!1),e.reportError(new t2.GraphQLError(`Field "${i.name}.${a.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:t}))}}},ObjectField(t){let r=(0,DH.getNamedType)(e.getParentInputType());if((0,DH.isInputObjectType)(r)){let n=r.getFields()[t.name.value],o=n?.deprecationReason;o!=null&&e.reportError(new t2.GraphQLError(`The input field ${r.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}},EnumValue(t){let r=e.getEnumValue(),n=r?.deprecationReason;if(r&&n!=null){let o=(0,DH.getNamedType)(e.getInputType());o!=null||(0,TH.invariant)(!1),e.reportError(new t2.GraphQLError(`The enum value "${o.name}.${r.name}" is deprecated. ${n}`,{nodes:t}))}}}}});var Tve=L(IH=>{"use strict";Object.defineProperty(IH,"__esModule",{value:!0});IH.NoSchemaIntrospectionCustomRule=Pmt;var wmt=ar(),kmt=vn(),Cmt=Vl();function Pmt(e){return{Field(t){let r=(0,kmt.getNamedType)(e.getType());r&&(0,Cmt.isIntrospectionType)(r)&&e.reportError(new wmt.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var Ave=L(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Object.defineProperty(Rr,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return Fmt.ExecutableDefinitionsRule}});Object.defineProperty(Rr,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return Rmt.FieldsOnCorrectTypeRule}});Object.defineProperty(Rr,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return Lmt.FragmentsOnCompositeTypesRule}});Object.defineProperty(Rr,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return $mt.KnownArgumentNamesRule}});Object.defineProperty(Rr,"KnownDirectivesRule",{enumerable:!0,get:function(){return Mmt.KnownDirectivesRule}});Object.defineProperty(Rr,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return jmt.KnownFragmentNamesRule}});Object.defineProperty(Rr,"KnownTypeNamesRule",{enumerable:!0,get:function(){return Bmt.KnownTypeNamesRule}});Object.defineProperty(Rr,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return qmt.LoneAnonymousOperationRule}});Object.defineProperty(Rr,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return sht.LoneSchemaDefinitionRule}});Object.defineProperty(Rr,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return aht.MaxIntrospectionDepthRule}});Object.defineProperty(Rr,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return mht.NoDeprecatedCustomRule}});Object.defineProperty(Rr,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return Umt.NoFragmentCyclesRule}});Object.defineProperty(Rr,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return hht.NoSchemaIntrospectionCustomRule}});Object.defineProperty(Rr,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return zmt.NoUndefinedVariablesRule}});Object.defineProperty(Rr,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return Jmt.NoUnusedFragmentsRule}});Object.defineProperty(Rr,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return Vmt.NoUnusedVariablesRule}});Object.defineProperty(Rr,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return Kmt.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Rr,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return Gmt.PossibleFragmentSpreadsRule}});Object.defineProperty(Rr,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return fht.PossibleTypeExtensionsRule}});Object.defineProperty(Rr,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return Hmt.ProvidedRequiredArgumentsRule}});Object.defineProperty(Rr,"ScalarLeafsRule",{enumerable:!0,get:function(){return Zmt.ScalarLeafsRule}});Object.defineProperty(Rr,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return Wmt.SingleFieldSubscriptionsRule}});Object.defineProperty(Rr,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return dht.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(Rr,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return Qmt.UniqueArgumentNamesRule}});Object.defineProperty(Rr,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return _ht.UniqueDirectiveNamesRule}});Object.defineProperty(Rr,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return Xmt.UniqueDirectivesPerLocationRule}});Object.defineProperty(Rr,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return uht.UniqueEnumValueNamesRule}});Object.defineProperty(Rr,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return pht.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Rr,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return Ymt.UniqueFragmentNamesRule}});Object.defineProperty(Rr,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return eht.UniqueInputFieldNamesRule}});Object.defineProperty(Rr,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return tht.UniqueOperationNamesRule}});Object.defineProperty(Rr,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return cht.UniqueOperationTypesRule}});Object.defineProperty(Rr,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return lht.UniqueTypeNamesRule}});Object.defineProperty(Rr,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return rht.UniqueVariableNamesRule}});Object.defineProperty(Rr,"ValidationContext",{enumerable:!0,get:function(){return Nmt.ValidationContext}});Object.defineProperty(Rr,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return nht.ValuesOfCorrectTypeRule}});Object.defineProperty(Rr,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return oht.VariablesAreInputTypesRule}});Object.defineProperty(Rr,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return iht.VariablesInAllowedPositionRule}});Object.defineProperty(Rr,"recommendedRules",{enumerable:!0,get:function(){return Dve.recommendedRules}});Object.defineProperty(Rr,"specifiedRules",{enumerable:!0,get:function(){return Dve.specifiedRules}});Object.defineProperty(Rr,"validate",{enumerable:!0,get:function(){return Omt.validate}});var Omt=ZA(),Nmt=oH(),Dve=tH(),Fmt=yK(),Rmt=SK(),Lmt=bK(),$mt=xK(),Mmt=AK(),jmt=wK(),Bmt=PK(),qmt=NK(),Umt=jK(),zmt=qK(),Jmt=zK(),Vmt=VK(),Kmt=tG(),Gmt=oG(),Hmt=cG(),Zmt=dG(),Wmt=bG(),Qmt=AG(),Xmt=PG(),Ymt=MG(),eht=BG(),tht=UG(),rht=HG(),nht=WG(),oht=XG(),iht=eH(),aht=$K(),sht=RK(),cht=JG(),lht=KG(),uht=NG(),pht=LG(),dht=TG(),_ht=wG(),fht=aG(),mht=Eve(),hht=Tve()});var Ive=L(uS=>{"use strict";Object.defineProperty(uS,"__esModule",{value:!0});Object.defineProperty(uS,"GraphQLError",{enumerable:!0,get:function(){return wH.GraphQLError}});Object.defineProperty(uS,"formatError",{enumerable:!0,get:function(){return wH.formatError}});Object.defineProperty(uS,"locatedError",{enumerable:!0,get:function(){return ght.locatedError}});Object.defineProperty(uS,"printError",{enumerable:!0,get:function(){return wH.printError}});Object.defineProperty(uS,"syntaxError",{enumerable:!0,get:function(){return yht.syntaxError}});var wH=ar(),yht=lA(),ght=N4()});var CH=L(kH=>{"use strict";Object.defineProperty(kH,"__esModule",{value:!0});kH.getIntrospectionQuery=Sht;function Sht(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},r=t.descriptions?"description":"",n=t.specifiedByUrl?"specifiedByURL":"",o=t.directiveIsRepeatable?"isRepeatable":"",i=t.schemaDescription?r:"";function a(c){return t.inputValueDeprecation?c:""}let s=t.oneOf?"isOneOf":"";return` query IntrospectionQuery { __schema { ${i} @@ -174,339 +174,339 @@ In some cases, you need to provide options to alter GraphQL's execution behavior } } } - `}});var Ave=L(kH=>{"use strict";Object.defineProperty(kH,"__esModule",{value:!0});kH.getOperationAST=Sht;var ght=Sn();function Sht(e,t){let r=null;for(let o of e.definitions)if(o.kind===ght.Kind.OPERATION_DEFINITION){var n;if(t==null){if(r)return null;r=o}else if(((n=o.name)===null||n===void 0?void 0:n.value)===t)return o}return r}});var wve=L(CH=>{"use strict";Object.defineProperty(CH,"__esModule",{value:!0});CH.getOperationRootType=vht;var j4=ar();function vht(e,t){if(t.operation==="query"){let r=e.getQueryType();if(!r)throw new j4.GraphQLError("Schema does not define the required query root type.",{nodes:t});return r}if(t.operation==="mutation"){let r=e.getMutationType();if(!r)throw new j4.GraphQLError("Schema is not configured for mutations.",{nodes:t});return r}if(t.operation==="subscription"){let r=e.getSubscriptionType();if(!r)throw new j4.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return r}throw new j4.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var Ive=L(PH=>{"use strict";Object.defineProperty(PH,"__esModule",{value:!0});PH.introspectionFromSchema=Dht;var bht=us(),xht=Kg(),Eht=Z2(),Tht=IH();function Dht(e,t){let r={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},n=(0,xht.parse)((0,Tht.getIntrospectionQuery)(r)),o=(0,Eht.executeSync)({schema:e,document:n});return!o.errors&&o.data||(0,bht.invariant)(!1),o.data}});var Cve=L(OH=>{"use strict";Object.defineProperty(OH,"__esModule",{value:!0});OH.buildClientSchema=Oht;var Aht=Ls(),Zc=eo(),kve=hd(),B4=S2(),wht=Kg(),Wc=vn(),Iht=pc(),xd=Vl(),kht=Sd(),Cht=Yg(),Pht=z2();function Oht(e,t){(0,kve.isObjectLike)(e)&&(0,kve.isObjectLike)(e.__schema)||(0,Aht.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,Zc.inspect)(e)}.`);let r=e.__schema,n=(0,B4.keyValMap)(r.types,U=>U.name,U=>m(U));for(let U of[...kht.specifiedScalarTypes,...xd.introspectionTypes])n[U.name]&&(n[U.name]=U);let o=r.queryType?d(r.queryType):null,i=r.mutationType?d(r.mutationType):null,a=r.subscriptionType?d(r.subscriptionType):null,s=r.directives?r.directives.map(N):[];return new Cht.GraphQLSchema({description:r.description,query:o,mutation:i,subscription:a,types:Object.values(n),directives:s,assumeValid:t?.assumeValid});function c(U){if(U.kind===xd.TypeKind.LIST){let ge=U.ofType;if(!ge)throw new Error("Decorated type deeper than introspection query.");return new Wc.GraphQLList(c(ge))}if(U.kind===xd.TypeKind.NON_NULL){let ge=U.ofType;if(!ge)throw new Error("Decorated type deeper than introspection query.");let Te=c(ge);return new Wc.GraphQLNonNull((0,Wc.assertNullableType)(Te))}return p(U)}function p(U){let ge=U.name;if(!ge)throw new Error(`Unknown type reference: ${(0,Zc.inspect)(U)}.`);let Te=n[ge];if(!Te)throw new Error(`Invalid or incomplete schema, unknown type: ${ge}. Ensure that a full introspection query is used in order to build a client schema.`);return Te}function d(U){return(0,Wc.assertObjectType)(p(U))}function f(U){return(0,Wc.assertInterfaceType)(p(U))}function m(U){if(U!=null&&U.name!=null&&U.kind!=null)switch(U.kind){case xd.TypeKind.SCALAR:return y(U);case xd.TypeKind.OBJECT:return S(U);case xd.TypeKind.INTERFACE:return x(U);case xd.TypeKind.UNION:return A(U);case xd.TypeKind.ENUM:return I(U);case xd.TypeKind.INPUT_OBJECT:return E(U)}let ge=(0,Zc.inspect)(U);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${ge}.`)}function y(U){return new Wc.GraphQLScalarType({name:U.name,description:U.description,specifiedByURL:U.specifiedByURL})}function g(U){if(U.interfaces===null&&U.kind===xd.TypeKind.INTERFACE)return[];if(!U.interfaces){let ge=(0,Zc.inspect)(U);throw new Error(`Introspection result missing interfaces: ${ge}.`)}return U.interfaces.map(f)}function S(U){return new Wc.GraphQLObjectType({name:U.name,description:U.description,interfaces:()=>g(U),fields:()=>C(U)})}function x(U){return new Wc.GraphQLInterfaceType({name:U.name,description:U.description,interfaces:()=>g(U),fields:()=>C(U)})}function A(U){if(!U.possibleTypes){let ge=(0,Zc.inspect)(U);throw new Error(`Introspection result missing possibleTypes: ${ge}.`)}return new Wc.GraphQLUnionType({name:U.name,description:U.description,types:()=>U.possibleTypes.map(d)})}function I(U){if(!U.enumValues){let ge=(0,Zc.inspect)(U);throw new Error(`Introspection result missing enumValues: ${ge}.`)}return new Wc.GraphQLEnumType({name:U.name,description:U.description,values:(0,B4.keyValMap)(U.enumValues,ge=>ge.name,ge=>({description:ge.description,deprecationReason:ge.deprecationReason}))})}function E(U){if(!U.inputFields){let ge=(0,Zc.inspect)(U);throw new Error(`Introspection result missing inputFields: ${ge}.`)}return new Wc.GraphQLInputObjectType({name:U.name,description:U.description,fields:()=>O(U.inputFields),isOneOf:U.isOneOf})}function C(U){if(!U.fields)throw new Error(`Introspection result missing fields: ${(0,Zc.inspect)(U)}.`);return(0,B4.keyValMap)(U.fields,ge=>ge.name,F)}function F(U){let ge=c(U.type);if(!(0,Wc.isOutputType)(ge)){let Te=(0,Zc.inspect)(ge);throw new Error(`Introspection must provide output type for fields, but received: ${Te}.`)}if(!U.args){let Te=(0,Zc.inspect)(U);throw new Error(`Introspection result missing field args: ${Te}.`)}return{description:U.description,deprecationReason:U.deprecationReason,type:ge,args:O(U.args)}}function O(U){return(0,B4.keyValMap)(U,ge=>ge.name,$)}function $(U){let ge=c(U.type);if(!(0,Wc.isInputType)(ge)){let ke=(0,Zc.inspect)(ge);throw new Error(`Introspection must provide input type for arguments, but received: ${ke}.`)}let Te=U.defaultValue!=null?(0,Pht.valueFromAST)((0,wht.parseValue)(U.defaultValue),ge):void 0;return{description:U.description,type:ge,defaultValue:Te,deprecationReason:U.deprecationReason}}function N(U){if(!U.args){let ge=(0,Zc.inspect)(U);throw new Error(`Introspection result missing directive args: ${ge}.`)}if(!U.locations){let ge=(0,Zc.inspect)(U);throw new Error(`Introspection result missing directive locations: ${ge}.`)}return new Iht.GraphQLDirective({name:U.name,description:U.description,isRepeatable:U.isRepeatable,locations:U.locations.slice(),args:O(U.args)})}}});var FH=L(U4=>{"use strict";Object.defineProperty(U4,"__esModule",{value:!0});U4.extendSchema=Mht;U4.extendSchemaImpl=Mve;var Nht=Ls(),Fht=eo(),Rht=us(),Lht=Sh(),eA=qO(),Hl=Sn(),Pve=tS(),si=vn(),tA=pc(),Lve=Vl(),$ve=Sd(),Ove=Yg(),$ht=G2(),NH=M1(),Nve=z2();function Mht(e,t,r){(0,Ove.assertSchema)(e),t!=null&&t.kind===Hl.Kind.DOCUMENT||(0,Nht.devAssert)(!1,"Must provide valid Document AST."),r?.assumeValid!==!0&&r?.assumeValidSDL!==!0&&(0,$ht.assertValidSDLExtension)(t,e);let n=e.toConfig(),o=Mve(n,t,r);return n===o?e:new Ove.GraphQLSchema(o)}function Mve(e,t,r){var n,o,i,a;let s=[],c=Object.create(null),p=[],d,f=[];for(let K of t.definitions)if(K.kind===Hl.Kind.SCHEMA_DEFINITION)d=K;else if(K.kind===Hl.Kind.SCHEMA_EXTENSION)f.push(K);else if((0,Pve.isTypeDefinitionNode)(K))s.push(K);else if((0,Pve.isTypeExtensionNode)(K)){let ae=K.name.value,he=c[ae];c[ae]=he?he.concat([K]):[K]}else K.kind===Hl.Kind.DIRECTIVE_DEFINITION&&p.push(K);if(Object.keys(c).length===0&&s.length===0&&p.length===0&&f.length===0&&d==null)return e;let m=Object.create(null);for(let K of e.types)m[K.name]=I(K);for(let K of s){var y;let ae=K.name.value;m[ae]=(y=Fve[ae])!==null&&y!==void 0?y:le(K)}let g={query:e.query&&x(e.query),mutation:e.mutation&&x(e.mutation),subscription:e.subscription&&x(e.subscription),...d&&Te([d]),...Te(f)};return{description:(n=d)===null||n===void 0||(o=n.description)===null||o===void 0?void 0:o.value,...g,types:Object.values(m),directives:[...e.directives.map(A),...p.map(me)],extensions:Object.create(null),astNode:(i=d)!==null&&i!==void 0?i:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:(a=r?.assumeValid)!==null&&a!==void 0?a:!1};function S(K){return(0,si.isListType)(K)?new si.GraphQLList(S(K.ofType)):(0,si.isNonNullType)(K)?new si.GraphQLNonNull(S(K.ofType)):x(K)}function x(K){return m[K.name]}function A(K){let ae=K.toConfig();return new tA.GraphQLDirective({...ae,args:(0,eA.mapValue)(ae.args,ge)})}function I(K){if((0,Lve.isIntrospectionType)(K)||(0,$ve.isSpecifiedScalarType)(K))return K;if((0,si.isScalarType)(K))return F(K);if((0,si.isObjectType)(K))return O(K);if((0,si.isInterfaceType)(K))return $(K);if((0,si.isUnionType)(K))return N(K);if((0,si.isEnumType)(K))return C(K);if((0,si.isInputObjectType)(K))return E(K);(0,Rht.invariant)(!1,"Unexpected type: "+(0,Fht.inspect)(K))}function E(K){var ae;let he=K.toConfig(),Oe=(ae=c[he.name])!==null&&ae!==void 0?ae:[];return new si.GraphQLInputObjectType({...he,fields:()=>({...(0,eA.mapValue)(he.fields,pt=>({...pt,type:S(pt.type)})),...Vt(Oe)}),extensionASTNodes:he.extensionASTNodes.concat(Oe)})}function C(K){var ae;let he=K.toConfig(),Oe=(ae=c[K.name])!==null&&ae!==void 0?ae:[];return new si.GraphQLEnumType({...he,values:{...he.values,...Yt(Oe)},extensionASTNodes:he.extensionASTNodes.concat(Oe)})}function F(K){var ae;let he=K.toConfig(),Oe=(ae=c[he.name])!==null&&ae!==void 0?ae:[],pt=he.specifiedByURL;for(let lt of Oe){var Ye;pt=(Ye=Rve(lt))!==null&&Ye!==void 0?Ye:pt}return new si.GraphQLScalarType({...he,specifiedByURL:pt,extensionASTNodes:he.extensionASTNodes.concat(Oe)})}function O(K){var ae;let he=K.toConfig(),Oe=(ae=c[he.name])!==null&&ae!==void 0?ae:[];return new si.GraphQLObjectType({...he,interfaces:()=>[...K.getInterfaces().map(x),...vt(Oe)],fields:()=>({...(0,eA.mapValue)(he.fields,U),...xe(Oe)}),extensionASTNodes:he.extensionASTNodes.concat(Oe)})}function $(K){var ae;let he=K.toConfig(),Oe=(ae=c[he.name])!==null&&ae!==void 0?ae:[];return new si.GraphQLInterfaceType({...he,interfaces:()=>[...K.getInterfaces().map(x),...vt(Oe)],fields:()=>({...(0,eA.mapValue)(he.fields,U),...xe(Oe)}),extensionASTNodes:he.extensionASTNodes.concat(Oe)})}function N(K){var ae;let he=K.toConfig(),Oe=(ae=c[he.name])!==null&&ae!==void 0?ae:[];return new si.GraphQLUnionType({...he,types:()=>[...K.getTypes().map(x),...Fr(Oe)],extensionASTNodes:he.extensionASTNodes.concat(Oe)})}function U(K){return{...K,type:S(K.type),args:K.args&&(0,eA.mapValue)(K.args,ge)}}function ge(K){return{...K,type:S(K.type)}}function Te(K){let ae={};for(let Oe of K){var he;let pt=(he=Oe.operationTypes)!==null&&he!==void 0?he:[];for(let Ye of pt)ae[Ye.operation]=ke(Ye.type)}return ae}function ke(K){var ae;let he=K.name.value,Oe=(ae=Fve[he])!==null&&ae!==void 0?ae:m[he];if(Oe===void 0)throw new Error(`Unknown type: "${he}".`);return Oe}function Ve(K){return K.kind===Hl.Kind.LIST_TYPE?new si.GraphQLList(Ve(K.type)):K.kind===Hl.Kind.NON_NULL_TYPE?new si.GraphQLNonNull(Ve(K.type)):ke(K)}function me(K){var ae;return new tA.GraphQLDirective({name:K.name.value,description:(ae=K.description)===null||ae===void 0?void 0:ae.value,locations:K.locations.map(({value:he})=>he),isRepeatable:K.repeatable,args:Rt(K.arguments),astNode:K})}function xe(K){let ae=Object.create(null);for(let pt of K){var he;let Ye=(he=pt.fields)!==null&&he!==void 0?he:[];for(let lt of Ye){var Oe;ae[lt.name.value]={type:Ve(lt.type),description:(Oe=lt.description)===null||Oe===void 0?void 0:Oe.value,args:Rt(lt.arguments),deprecationReason:q4(lt),astNode:lt}}}return ae}function Rt(K){let ae=K??[],he=Object.create(null);for(let pt of ae){var Oe;let Ye=Ve(pt.type);he[pt.name.value]={type:Ye,description:(Oe=pt.description)===null||Oe===void 0?void 0:Oe.value,defaultValue:(0,Nve.valueFromAST)(pt.defaultValue,Ye),deprecationReason:q4(pt),astNode:pt}}return he}function Vt(K){let ae=Object.create(null);for(let pt of K){var he;let Ye=(he=pt.fields)!==null&&he!==void 0?he:[];for(let lt of Ye){var Oe;let Nt=Ve(lt.type);ae[lt.name.value]={type:Nt,description:(Oe=lt.description)===null||Oe===void 0?void 0:Oe.value,defaultValue:(0,Nve.valueFromAST)(lt.defaultValue,Nt),deprecationReason:q4(lt),astNode:lt}}}return ae}function Yt(K){let ae=Object.create(null);for(let pt of K){var he;let Ye=(he=pt.values)!==null&&he!==void 0?he:[];for(let lt of Ye){var Oe;ae[lt.name.value]={description:(Oe=lt.description)===null||Oe===void 0?void 0:Oe.value,deprecationReason:q4(lt),astNode:lt}}}return ae}function vt(K){return K.flatMap(ae=>{var he,Oe;return(he=(Oe=ae.interfaces)===null||Oe===void 0?void 0:Oe.map(ke))!==null&&he!==void 0?he:[]})}function Fr(K){return K.flatMap(ae=>{var he,Oe;return(he=(Oe=ae.types)===null||Oe===void 0?void 0:Oe.map(ke))!==null&&he!==void 0?he:[]})}function le(K){var ae;let he=K.name.value,Oe=(ae=c[he])!==null&&ae!==void 0?ae:[];switch(K.kind){case Hl.Kind.OBJECT_TYPE_DEFINITION:{var pt;let It=[K,...Oe];return new si.GraphQLObjectType({name:he,description:(pt=K.description)===null||pt===void 0?void 0:pt.value,interfaces:()=>vt(It),fields:()=>xe(It),astNode:K,extensionASTNodes:Oe})}case Hl.Kind.INTERFACE_TYPE_DEFINITION:{var Ye;let It=[K,...Oe];return new si.GraphQLInterfaceType({name:he,description:(Ye=K.description)===null||Ye===void 0?void 0:Ye.value,interfaces:()=>vt(It),fields:()=>xe(It),astNode:K,extensionASTNodes:Oe})}case Hl.Kind.ENUM_TYPE_DEFINITION:{var lt;let It=[K,...Oe];return new si.GraphQLEnumType({name:he,description:(lt=K.description)===null||lt===void 0?void 0:lt.value,values:Yt(It),astNode:K,extensionASTNodes:Oe})}case Hl.Kind.UNION_TYPE_DEFINITION:{var Nt;let It=[K,...Oe];return new si.GraphQLUnionType({name:he,description:(Nt=K.description)===null||Nt===void 0?void 0:Nt.value,types:()=>Fr(It),astNode:K,extensionASTNodes:Oe})}case Hl.Kind.SCALAR_TYPE_DEFINITION:{var Ct;return new si.GraphQLScalarType({name:he,description:(Ct=K.description)===null||Ct===void 0?void 0:Ct.value,specifiedByURL:Rve(K),astNode:K,extensionASTNodes:Oe})}case Hl.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var Hr;let It=[K,...Oe];return new si.GraphQLInputObjectType({name:he,description:(Hr=K.description)===null||Hr===void 0?void 0:Hr.value,fields:()=>Vt(It),astNode:K,extensionASTNodes:Oe,isOneOf:jht(K)})}}}}var Fve=(0,Lht.keyMap)([...$ve.specifiedScalarTypes,...Lve.introspectionTypes],e=>e.name);function q4(e){let t=(0,NH.getDirectiveValues)(tA.GraphQLDeprecatedDirective,e);return t?.reason}function Rve(e){let t=(0,NH.getDirectiveValues)(tA.GraphQLSpecifiedByDirective,e);return t?.url}function jht(e){return!!(0,NH.getDirectiveValues)(tA.GraphQLOneOfDirective,e)}});var Bve=L(z4=>{"use strict";Object.defineProperty(z4,"__esModule",{value:!0});z4.buildASTSchema=jve;z4.buildSchema=Ght;var Bht=Ls(),qht=Sn(),Uht=Kg(),zht=pc(),Vht=Yg(),Jht=G2(),Kht=FH();function jve(e,t){e!=null&&e.kind===qht.Kind.DOCUMENT||(0,Bht.devAssert)(!1,"Must provide valid Document AST."),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&(0,Jht.assertValidSDL)(e);let r={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},n=(0,Kht.extendSchemaImpl)(r,e,t);if(n.astNode==null)for(let i of n.types)switch(i.name){case"Query":n.query=i;break;case"Mutation":n.mutation=i;break;case"Subscription":n.subscription=i;break}let o=[...n.directives,...zht.specifiedDirectives.filter(i=>n.directives.every(a=>a.name!==i.name))];return new Vht.GraphQLSchema({...n,directives:o})}function Ght(e,t){let r=(0,Uht.parse)(e,{noLocation:t?.noLocation,allowLegacyFragmentVariables:t?.allowLegacyFragmentVariables});return jve(r,{assumeValidSDL:t?.assumeValidSDL,assumeValid:t?.assumeValid})}});var zve=L(LH=>{"use strict";Object.defineProperty(LH,"__esModule",{value:!0});LH.lexicographicSortSchema=eyt;var Hht=eo(),Zht=us(),Wht=S2(),qve=v2(),$s=vn(),Qht=pc(),Xht=Vl(),Yht=Yg();function eyt(e){let t=e.toConfig(),r=(0,Wht.keyValMap)(RH(t.types),m=>m.name,f);return new Yht.GraphQLSchema({...t,types:Object.values(r),directives:RH(t.directives).map(a),query:i(t.query),mutation:i(t.mutation),subscription:i(t.subscription)});function n(m){return(0,$s.isListType)(m)?new $s.GraphQLList(n(m.ofType)):(0,$s.isNonNullType)(m)?new $s.GraphQLNonNull(n(m.ofType)):o(m)}function o(m){return r[m.name]}function i(m){return m&&o(m)}function a(m){let y=m.toConfig();return new Qht.GraphQLDirective({...y,locations:Uve(y.locations,g=>g),args:s(y.args)})}function s(m){return V4(m,y=>({...y,type:n(y.type)}))}function c(m){return V4(m,y=>({...y,type:n(y.type),args:y.args&&s(y.args)}))}function p(m){return V4(m,y=>({...y,type:n(y.type)}))}function d(m){return RH(m).map(o)}function f(m){if((0,$s.isScalarType)(m)||(0,Xht.isIntrospectionType)(m))return m;if((0,$s.isObjectType)(m)){let y=m.toConfig();return new $s.GraphQLObjectType({...y,interfaces:()=>d(y.interfaces),fields:()=>c(y.fields)})}if((0,$s.isInterfaceType)(m)){let y=m.toConfig();return new $s.GraphQLInterfaceType({...y,interfaces:()=>d(y.interfaces),fields:()=>c(y.fields)})}if((0,$s.isUnionType)(m)){let y=m.toConfig();return new $s.GraphQLUnionType({...y,types:()=>d(y.types)})}if((0,$s.isEnumType)(m)){let y=m.toConfig();return new $s.GraphQLEnumType({...y,values:V4(y.values,g=>g)})}if((0,$s.isInputObjectType)(m)){let y=m.toConfig();return new $s.GraphQLInputObjectType({...y,fields:()=>p(y.fields)})}(0,Zht.invariant)(!1,"Unexpected type: "+(0,Hht.inspect)(m))}}function V4(e,t){let r=Object.create(null);for(let n of Object.keys(e).sort(qve.naturalCompare))r[n]=t(e[n]);return r}function RH(e){return Uve(e,t=>t.name)}function Uve(e,t){return e.slice().sort((r,n)=>{let o=t(r),i=t(n);return(0,qve.naturalCompare)(o,i)})}});var Wve=L(rA=>{"use strict";Object.defineProperty(rA,"__esModule",{value:!0});rA.printIntrospectionSchema=syt;rA.printSchema=ayt;rA.printType=Kve;var tyt=eo(),ryt=us(),nyt=d2(),MH=Sn(),J4=Gc(),q1=vn(),jH=pc(),Vve=Vl(),oyt=Sd(),iyt=N2();function ayt(e){return Jve(e,t=>!(0,jH.isSpecifiedDirective)(t),cyt)}function syt(e){return Jve(e,jH.isSpecifiedDirective,Vve.isIntrospectionType)}function cyt(e){return!(0,oyt.isSpecifiedScalarType)(e)&&!(0,Vve.isIntrospectionType)(e)}function Jve(e,t,r){let n=e.getDirectives().filter(t),o=Object.values(e.getTypeMap()).filter(r);return[lyt(e),...n.map(i=>yyt(i)),...o.map(i=>Kve(i))].filter(Boolean).join(` + `}});var wve=L(PH=>{"use strict";Object.defineProperty(PH,"__esModule",{value:!0});PH.getOperationAST=bht;var vht=Sn();function bht(e,t){let r=null;for(let o of e.definitions)if(o.kind===vht.Kind.OPERATION_DEFINITION){var n;if(t==null){if(r)return null;r=o}else if(((n=o.name)===null||n===void 0?void 0:n.value)===t)return o}return r}});var kve=L(OH=>{"use strict";Object.defineProperty(OH,"__esModule",{value:!0});OH.getOperationRootType=xht;var q4=ar();function xht(e,t){if(t.operation==="query"){let r=e.getQueryType();if(!r)throw new q4.GraphQLError("Schema does not define the required query root type.",{nodes:t});return r}if(t.operation==="mutation"){let r=e.getMutationType();if(!r)throw new q4.GraphQLError("Schema is not configured for mutations.",{nodes:t});return r}if(t.operation==="subscription"){let r=e.getSubscriptionType();if(!r)throw new q4.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return r}throw new q4.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var Cve=L(NH=>{"use strict";Object.defineProperty(NH,"__esModule",{value:!0});NH.introspectionFromSchema=Iht;var Eht=us(),Tht=Wg(),Dht=QA(),Aht=CH();function Iht(e,t){let r={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},n=(0,Tht.parse)((0,Aht.getIntrospectionQuery)(r)),o=(0,Dht.executeSync)({schema:e,document:n});return!o.errors&&o.data||(0,Eht.invariant)(!1),o.data}});var Ove=L(FH=>{"use strict";Object.defineProperty(FH,"__esModule",{value:!0});FH.buildClientSchema=Fht;var wht=Ls(),Zc=eo(),Pve=yd(),U4=bA(),kht=Wg(),Wc=vn(),Cht=pc(),Ed=Vl(),Pht=vd(),Oht=nS(),Nht=VA();function Fht(e,t){(0,Pve.isObjectLike)(e)&&(0,Pve.isObjectLike)(e.__schema)||(0,wht.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,Zc.inspect)(e)}.`);let r=e.__schema,n=(0,U4.keyValMap)(r.types,U=>U.name,U=>m(U));for(let U of[...Pht.specifiedScalarTypes,...Ed.introspectionTypes])n[U.name]&&(n[U.name]=U);let o=r.queryType?d(r.queryType):null,i=r.mutationType?d(r.mutationType):null,a=r.subscriptionType?d(r.subscriptionType):null,s=r.directives?r.directives.map(N):[];return new Oht.GraphQLSchema({description:r.description,query:o,mutation:i,subscription:a,types:Object.values(n),directives:s,assumeValid:t?.assumeValid});function c(U){if(U.kind===Ed.TypeKind.LIST){let ge=U.ofType;if(!ge)throw new Error("Decorated type deeper than introspection query.");return new Wc.GraphQLList(c(ge))}if(U.kind===Ed.TypeKind.NON_NULL){let ge=U.ofType;if(!ge)throw new Error("Decorated type deeper than introspection query.");let Te=c(ge);return new Wc.GraphQLNonNull((0,Wc.assertNullableType)(Te))}return p(U)}function p(U){let ge=U.name;if(!ge)throw new Error(`Unknown type reference: ${(0,Zc.inspect)(U)}.`);let Te=n[ge];if(!Te)throw new Error(`Invalid or incomplete schema, unknown type: ${ge}. Ensure that a full introspection query is used in order to build a client schema.`);return Te}function d(U){return(0,Wc.assertObjectType)(p(U))}function f(U){return(0,Wc.assertInterfaceType)(p(U))}function m(U){if(U!=null&&U.name!=null&&U.kind!=null)switch(U.kind){case Ed.TypeKind.SCALAR:return y(U);case Ed.TypeKind.OBJECT:return S(U);case Ed.TypeKind.INTERFACE:return b(U);case Ed.TypeKind.UNION:return E(U);case Ed.TypeKind.ENUM:return I(U);case Ed.TypeKind.INPUT_OBJECT:return T(U)}let ge=(0,Zc.inspect)(U);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${ge}.`)}function y(U){return new Wc.GraphQLScalarType({name:U.name,description:U.description,specifiedByURL:U.specifiedByURL})}function g(U){if(U.interfaces===null&&U.kind===Ed.TypeKind.INTERFACE)return[];if(!U.interfaces){let ge=(0,Zc.inspect)(U);throw new Error(`Introspection result missing interfaces: ${ge}.`)}return U.interfaces.map(f)}function S(U){return new Wc.GraphQLObjectType({name:U.name,description:U.description,interfaces:()=>g(U),fields:()=>k(U)})}function b(U){return new Wc.GraphQLInterfaceType({name:U.name,description:U.description,interfaces:()=>g(U),fields:()=>k(U)})}function E(U){if(!U.possibleTypes){let ge=(0,Zc.inspect)(U);throw new Error(`Introspection result missing possibleTypes: ${ge}.`)}return new Wc.GraphQLUnionType({name:U.name,description:U.description,types:()=>U.possibleTypes.map(d)})}function I(U){if(!U.enumValues){let ge=(0,Zc.inspect)(U);throw new Error(`Introspection result missing enumValues: ${ge}.`)}return new Wc.GraphQLEnumType({name:U.name,description:U.description,values:(0,U4.keyValMap)(U.enumValues,ge=>ge.name,ge=>({description:ge.description,deprecationReason:ge.deprecationReason}))})}function T(U){if(!U.inputFields){let ge=(0,Zc.inspect)(U);throw new Error(`Introspection result missing inputFields: ${ge}.`)}return new Wc.GraphQLInputObjectType({name:U.name,description:U.description,fields:()=>O(U.inputFields),isOneOf:U.isOneOf})}function k(U){if(!U.fields)throw new Error(`Introspection result missing fields: ${(0,Zc.inspect)(U)}.`);return(0,U4.keyValMap)(U.fields,ge=>ge.name,F)}function F(U){let ge=c(U.type);if(!(0,Wc.isOutputType)(ge)){let Te=(0,Zc.inspect)(ge);throw new Error(`Introspection must provide output type for fields, but received: ${Te}.`)}if(!U.args){let Te=(0,Zc.inspect)(U);throw new Error(`Introspection result missing field args: ${Te}.`)}return{description:U.description,deprecationReason:U.deprecationReason,type:ge,args:O(U.args)}}function O(U){return(0,U4.keyValMap)(U,ge=>ge.name,$)}function $(U){let ge=c(U.type);if(!(0,Wc.isInputType)(ge)){let ke=(0,Zc.inspect)(ge);throw new Error(`Introspection must provide input type for arguments, but received: ${ke}.`)}let Te=U.defaultValue!=null?(0,Nht.valueFromAST)((0,kht.parseValue)(U.defaultValue),ge):void 0;return{description:U.description,type:ge,defaultValue:Te,deprecationReason:U.deprecationReason}}function N(U){if(!U.args){let ge=(0,Zc.inspect)(U);throw new Error(`Introspection result missing directive args: ${ge}.`)}if(!U.locations){let ge=(0,Zc.inspect)(U);throw new Error(`Introspection result missing directive locations: ${ge}.`)}return new Cht.GraphQLDirective({name:U.name,description:U.description,isRepeatable:U.isRepeatable,locations:U.locations.slice(),args:O(U.args)})}}});var LH=L(J4=>{"use strict";Object.defineProperty(J4,"__esModule",{value:!0});J4.extendSchema=Bht;J4.extendSchemaImpl=Bve;var Rht=Ls(),Lht=eo(),$ht=us(),Mht=xh(),r2=zO(),Zl=Sn(),Nve=iS(),si=vn(),n2=pc(),Mve=Vl(),jve=vd(),Fve=nS(),jht=ZA(),RH=q1(),Rve=VA();function Bht(e,t,r){(0,Fve.assertSchema)(e),t!=null&&t.kind===Zl.Kind.DOCUMENT||(0,Rht.devAssert)(!1,"Must provide valid Document AST."),r?.assumeValid!==!0&&r?.assumeValidSDL!==!0&&(0,jht.assertValidSDLExtension)(t,e);let n=e.toConfig(),o=Bve(n,t,r);return n===o?e:new Fve.GraphQLSchema(o)}function Bve(e,t,r){var n,o,i,a;let s=[],c=Object.create(null),p=[],d,f=[];for(let K of t.definitions)if(K.kind===Zl.Kind.SCHEMA_DEFINITION)d=K;else if(K.kind===Zl.Kind.SCHEMA_EXTENSION)f.push(K);else if((0,Nve.isTypeDefinitionNode)(K))s.push(K);else if((0,Nve.isTypeExtensionNode)(K)){let ae=K.name.value,he=c[ae];c[ae]=he?he.concat([K]):[K]}else K.kind===Zl.Kind.DIRECTIVE_DEFINITION&&p.push(K);if(Object.keys(c).length===0&&s.length===0&&p.length===0&&f.length===0&&d==null)return e;let m=Object.create(null);for(let K of e.types)m[K.name]=I(K);for(let K of s){var y;let ae=K.name.value;m[ae]=(y=Lve[ae])!==null&&y!==void 0?y:le(K)}let g={query:e.query&&b(e.query),mutation:e.mutation&&b(e.mutation),subscription:e.subscription&&b(e.subscription),...d&&Te([d]),...Te(f)};return{description:(n=d)===null||n===void 0||(o=n.description)===null||o===void 0?void 0:o.value,...g,types:Object.values(m),directives:[...e.directives.map(E),...p.map(me)],extensions:Object.create(null),astNode:(i=d)!==null&&i!==void 0?i:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:(a=r?.assumeValid)!==null&&a!==void 0?a:!1};function S(K){return(0,si.isListType)(K)?new si.GraphQLList(S(K.ofType)):(0,si.isNonNullType)(K)?new si.GraphQLNonNull(S(K.ofType)):b(K)}function b(K){return m[K.name]}function E(K){let ae=K.toConfig();return new n2.GraphQLDirective({...ae,args:(0,r2.mapValue)(ae.args,ge)})}function I(K){if((0,Mve.isIntrospectionType)(K)||(0,jve.isSpecifiedScalarType)(K))return K;if((0,si.isScalarType)(K))return F(K);if((0,si.isObjectType)(K))return O(K);if((0,si.isInterfaceType)(K))return $(K);if((0,si.isUnionType)(K))return N(K);if((0,si.isEnumType)(K))return k(K);if((0,si.isInputObjectType)(K))return T(K);(0,$ht.invariant)(!1,"Unexpected type: "+(0,Lht.inspect)(K))}function T(K){var ae;let he=K.toConfig(),Oe=(ae=c[he.name])!==null&&ae!==void 0?ae:[];return new si.GraphQLInputObjectType({...he,fields:()=>({...(0,r2.mapValue)(he.fields,pt=>({...pt,type:S(pt.type)})),...Jt(Oe)}),extensionASTNodes:he.extensionASTNodes.concat(Oe)})}function k(K){var ae;let he=K.toConfig(),Oe=(ae=c[K.name])!==null&&ae!==void 0?ae:[];return new si.GraphQLEnumType({...he,values:{...he.values,...Yt(Oe)},extensionASTNodes:he.extensionASTNodes.concat(Oe)})}function F(K){var ae;let he=K.toConfig(),Oe=(ae=c[he.name])!==null&&ae!==void 0?ae:[],pt=he.specifiedByURL;for(let lt of Oe){var Ye;pt=(Ye=$ve(lt))!==null&&Ye!==void 0?Ye:pt}return new si.GraphQLScalarType({...he,specifiedByURL:pt,extensionASTNodes:he.extensionASTNodes.concat(Oe)})}function O(K){var ae;let he=K.toConfig(),Oe=(ae=c[he.name])!==null&&ae!==void 0?ae:[];return new si.GraphQLObjectType({...he,interfaces:()=>[...K.getInterfaces().map(b),...vt(Oe)],fields:()=>({...(0,r2.mapValue)(he.fields,U),...xe(Oe)}),extensionASTNodes:he.extensionASTNodes.concat(Oe)})}function $(K){var ae;let he=K.toConfig(),Oe=(ae=c[he.name])!==null&&ae!==void 0?ae:[];return new si.GraphQLInterfaceType({...he,interfaces:()=>[...K.getInterfaces().map(b),...vt(Oe)],fields:()=>({...(0,r2.mapValue)(he.fields,U),...xe(Oe)}),extensionASTNodes:he.extensionASTNodes.concat(Oe)})}function N(K){var ae;let he=K.toConfig(),Oe=(ae=c[he.name])!==null&&ae!==void 0?ae:[];return new si.GraphQLUnionType({...he,types:()=>[...K.getTypes().map(b),...Fr(Oe)],extensionASTNodes:he.extensionASTNodes.concat(Oe)})}function U(K){return{...K,type:S(K.type),args:K.args&&(0,r2.mapValue)(K.args,ge)}}function ge(K){return{...K,type:S(K.type)}}function Te(K){let ae={};for(let Oe of K){var he;let pt=(he=Oe.operationTypes)!==null&&he!==void 0?he:[];for(let Ye of pt)ae[Ye.operation]=ke(Ye.type)}return ae}function ke(K){var ae;let he=K.name.value,Oe=(ae=Lve[he])!==null&&ae!==void 0?ae:m[he];if(Oe===void 0)throw new Error(`Unknown type: "${he}".`);return Oe}function Je(K){return K.kind===Zl.Kind.LIST_TYPE?new si.GraphQLList(Je(K.type)):K.kind===Zl.Kind.NON_NULL_TYPE?new si.GraphQLNonNull(Je(K.type)):ke(K)}function me(K){var ae;return new n2.GraphQLDirective({name:K.name.value,description:(ae=K.description)===null||ae===void 0?void 0:ae.value,locations:K.locations.map(({value:he})=>he),isRepeatable:K.repeatable,args:Rt(K.arguments),astNode:K})}function xe(K){let ae=Object.create(null);for(let pt of K){var he;let Ye=(he=pt.fields)!==null&&he!==void 0?he:[];for(let lt of Ye){var Oe;ae[lt.name.value]={type:Je(lt.type),description:(Oe=lt.description)===null||Oe===void 0?void 0:Oe.value,args:Rt(lt.arguments),deprecationReason:z4(lt),astNode:lt}}}return ae}function Rt(K){let ae=K??[],he=Object.create(null);for(let pt of ae){var Oe;let Ye=Je(pt.type);he[pt.name.value]={type:Ye,description:(Oe=pt.description)===null||Oe===void 0?void 0:Oe.value,defaultValue:(0,Rve.valueFromAST)(pt.defaultValue,Ye),deprecationReason:z4(pt),astNode:pt}}return he}function Jt(K){let ae=Object.create(null);for(let pt of K){var he;let Ye=(he=pt.fields)!==null&&he!==void 0?he:[];for(let lt of Ye){var Oe;let Nt=Je(lt.type);ae[lt.name.value]={type:Nt,description:(Oe=lt.description)===null||Oe===void 0?void 0:Oe.value,defaultValue:(0,Rve.valueFromAST)(lt.defaultValue,Nt),deprecationReason:z4(lt),astNode:lt}}}return ae}function Yt(K){let ae=Object.create(null);for(let pt of K){var he;let Ye=(he=pt.values)!==null&&he!==void 0?he:[];for(let lt of Ye){var Oe;ae[lt.name.value]={description:(Oe=lt.description)===null||Oe===void 0?void 0:Oe.value,deprecationReason:z4(lt),astNode:lt}}}return ae}function vt(K){return K.flatMap(ae=>{var he,Oe;return(he=(Oe=ae.interfaces)===null||Oe===void 0?void 0:Oe.map(ke))!==null&&he!==void 0?he:[]})}function Fr(K){return K.flatMap(ae=>{var he,Oe;return(he=(Oe=ae.types)===null||Oe===void 0?void 0:Oe.map(ke))!==null&&he!==void 0?he:[]})}function le(K){var ae;let he=K.name.value,Oe=(ae=c[he])!==null&&ae!==void 0?ae:[];switch(K.kind){case Zl.Kind.OBJECT_TYPE_DEFINITION:{var pt;let wt=[K,...Oe];return new si.GraphQLObjectType({name:he,description:(pt=K.description)===null||pt===void 0?void 0:pt.value,interfaces:()=>vt(wt),fields:()=>xe(wt),astNode:K,extensionASTNodes:Oe})}case Zl.Kind.INTERFACE_TYPE_DEFINITION:{var Ye;let wt=[K,...Oe];return new si.GraphQLInterfaceType({name:he,description:(Ye=K.description)===null||Ye===void 0?void 0:Ye.value,interfaces:()=>vt(wt),fields:()=>xe(wt),astNode:K,extensionASTNodes:Oe})}case Zl.Kind.ENUM_TYPE_DEFINITION:{var lt;let wt=[K,...Oe];return new si.GraphQLEnumType({name:he,description:(lt=K.description)===null||lt===void 0?void 0:lt.value,values:Yt(wt),astNode:K,extensionASTNodes:Oe})}case Zl.Kind.UNION_TYPE_DEFINITION:{var Nt;let wt=[K,...Oe];return new si.GraphQLUnionType({name:he,description:(Nt=K.description)===null||Nt===void 0?void 0:Nt.value,types:()=>Fr(wt),astNode:K,extensionASTNodes:Oe})}case Zl.Kind.SCALAR_TYPE_DEFINITION:{var Ct;return new si.GraphQLScalarType({name:he,description:(Ct=K.description)===null||Ct===void 0?void 0:Ct.value,specifiedByURL:$ve(K),astNode:K,extensionASTNodes:Oe})}case Zl.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var Zr;let wt=[K,...Oe];return new si.GraphQLInputObjectType({name:he,description:(Zr=K.description)===null||Zr===void 0?void 0:Zr.value,fields:()=>Jt(wt),astNode:K,extensionASTNodes:Oe,isOneOf:qht(K)})}}}}var Lve=(0,Mht.keyMap)([...jve.specifiedScalarTypes,...Mve.introspectionTypes],e=>e.name);function z4(e){let t=(0,RH.getDirectiveValues)(n2.GraphQLDeprecatedDirective,e);return t?.reason}function $ve(e){let t=(0,RH.getDirectiveValues)(n2.GraphQLSpecifiedByDirective,e);return t?.url}function qht(e){return!!(0,RH.getDirectiveValues)(n2.GraphQLOneOfDirective,e)}});var Uve=L(V4=>{"use strict";Object.defineProperty(V4,"__esModule",{value:!0});V4.buildASTSchema=qve;V4.buildSchema=Zht;var Uht=Ls(),zht=Sn(),Jht=Wg(),Vht=pc(),Kht=nS(),Ght=ZA(),Hht=LH();function qve(e,t){e!=null&&e.kind===zht.Kind.DOCUMENT||(0,Uht.devAssert)(!1,"Must provide valid Document AST."),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&(0,Ght.assertValidSDL)(e);let r={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},n=(0,Hht.extendSchemaImpl)(r,e,t);if(n.astNode==null)for(let i of n.types)switch(i.name){case"Query":n.query=i;break;case"Mutation":n.mutation=i;break;case"Subscription":n.subscription=i;break}let o=[...n.directives,...Vht.specifiedDirectives.filter(i=>n.directives.every(a=>a.name!==i.name))];return new Kht.GraphQLSchema({...n,directives:o})}function Zht(e,t){let r=(0,Jht.parse)(e,{noLocation:t?.noLocation,allowLegacyFragmentVariables:t?.allowLegacyFragmentVariables});return qve(r,{assumeValidSDL:t?.assumeValidSDL,assumeValid:t?.assumeValid})}});var Vve=L(MH=>{"use strict";Object.defineProperty(MH,"__esModule",{value:!0});MH.lexicographicSortSchema=ryt;var Wht=eo(),Qht=us(),Xht=bA(),zve=xA(),$s=vn(),Yht=pc(),eyt=Vl(),tyt=nS();function ryt(e){let t=e.toConfig(),r=(0,Xht.keyValMap)($H(t.types),m=>m.name,f);return new tyt.GraphQLSchema({...t,types:Object.values(r),directives:$H(t.directives).map(a),query:i(t.query),mutation:i(t.mutation),subscription:i(t.subscription)});function n(m){return(0,$s.isListType)(m)?new $s.GraphQLList(n(m.ofType)):(0,$s.isNonNullType)(m)?new $s.GraphQLNonNull(n(m.ofType)):o(m)}function o(m){return r[m.name]}function i(m){return m&&o(m)}function a(m){let y=m.toConfig();return new Yht.GraphQLDirective({...y,locations:Jve(y.locations,g=>g),args:s(y.args)})}function s(m){return K4(m,y=>({...y,type:n(y.type)}))}function c(m){return K4(m,y=>({...y,type:n(y.type),args:y.args&&s(y.args)}))}function p(m){return K4(m,y=>({...y,type:n(y.type)}))}function d(m){return $H(m).map(o)}function f(m){if((0,$s.isScalarType)(m)||(0,eyt.isIntrospectionType)(m))return m;if((0,$s.isObjectType)(m)){let y=m.toConfig();return new $s.GraphQLObjectType({...y,interfaces:()=>d(y.interfaces),fields:()=>c(y.fields)})}if((0,$s.isInterfaceType)(m)){let y=m.toConfig();return new $s.GraphQLInterfaceType({...y,interfaces:()=>d(y.interfaces),fields:()=>c(y.fields)})}if((0,$s.isUnionType)(m)){let y=m.toConfig();return new $s.GraphQLUnionType({...y,types:()=>d(y.types)})}if((0,$s.isEnumType)(m)){let y=m.toConfig();return new $s.GraphQLEnumType({...y,values:K4(y.values,g=>g)})}if((0,$s.isInputObjectType)(m)){let y=m.toConfig();return new $s.GraphQLInputObjectType({...y,fields:()=>p(y.fields)})}(0,Qht.invariant)(!1,"Unexpected type: "+(0,Wht.inspect)(m))}}function K4(e,t){let r=Object.create(null);for(let n of Object.keys(e).sort(zve.naturalCompare))r[n]=t(e[n]);return r}function $H(e){return Jve(e,t=>t.name)}function Jve(e,t){return e.slice().sort((r,n)=>{let o=t(r),i=t(n);return(0,zve.naturalCompare)(o,i)})}});var Xve=L(o2=>{"use strict";Object.defineProperty(o2,"__esModule",{value:!0});o2.printIntrospectionSchema=lyt;o2.printSchema=cyt;o2.printType=Hve;var nyt=eo(),oyt=us(),iyt=fA(),BH=Sn(),G4=Gc(),J1=vn(),qH=pc(),Kve=Vl(),ayt=vd(),syt=RA();function cyt(e){return Gve(e,t=>!(0,qH.isSpecifiedDirective)(t),uyt)}function lyt(e){return Gve(e,qH.isSpecifiedDirective,Kve.isIntrospectionType)}function uyt(e){return!(0,ayt.isSpecifiedScalarType)(e)&&!(0,Kve.isIntrospectionType)(e)}function Gve(e,t,r){let n=e.getDirectives().filter(t),o=Object.values(e.getTypeMap()).filter(r);return[pyt(e),...n.map(i=>Syt(i)),...o.map(i=>Hve(i))].filter(Boolean).join(` -`)}function lyt(e){if(e.description==null&&uyt(e))return;let t=[],r=e.getQueryType();r&&t.push(` query: ${r.name}`);let n=e.getMutationType();n&&t.push(` mutation: ${n.name}`);let o=e.getSubscriptionType();return o&&t.push(` subscription: ${o.name}`),Zl(e)+`schema { +`)}function pyt(e){if(e.description==null&&dyt(e))return;let t=[],r=e.getQueryType();r&&t.push(` query: ${r.name}`);let n=e.getMutationType();n&&t.push(` mutation: ${n.name}`);let o=e.getSubscriptionType();return o&&t.push(` subscription: ${o.name}`),Wl(e)+`schema { ${t.join(` `)} -}`}function uyt(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let r=e.getMutationType();if(r&&r.name!=="Mutation")return!1;let n=e.getSubscriptionType();return!(n&&n.name!=="Subscription")}function Kve(e){if((0,q1.isScalarType)(e))return pyt(e);if((0,q1.isObjectType)(e))return dyt(e);if((0,q1.isInterfaceType)(e))return _yt(e);if((0,q1.isUnionType)(e))return fyt(e);if((0,q1.isEnumType)(e))return myt(e);if((0,q1.isInputObjectType)(e))return hyt(e);(0,ryt.invariant)(!1,"Unexpected type: "+(0,tyt.inspect)(e))}function pyt(e){return Zl(e)+`scalar ${e.name}`+gyt(e)}function Gve(e){let t=e.getInterfaces();return t.length?" implements "+t.map(r=>r.name).join(" & "):""}function dyt(e){return Zl(e)+`type ${e.name}`+Gve(e)+Hve(e)}function _yt(e){return Zl(e)+`interface ${e.name}`+Gve(e)+Hve(e)}function fyt(e){let t=e.getTypes(),r=t.length?" = "+t.join(" | "):"";return Zl(e)+"union "+e.name+r}function myt(e){let t=e.getValues().map((r,n)=>Zl(r," ",!n)+" "+r.name+qH(r.deprecationReason));return Zl(e)+`enum ${e.name}`+BH(t)}function hyt(e){let t=Object.values(e.getFields()).map((r,n)=>Zl(r," ",!n)+" "+$H(r));return Zl(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+BH(t)}function Hve(e){let t=Object.values(e.getFields()).map((r,n)=>Zl(r," ",!n)+" "+r.name+Zve(r.args," ")+": "+String(r.type)+qH(r.deprecationReason));return BH(t)}function BH(e){return e.length!==0?` { +}`}function dyt(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let r=e.getMutationType();if(r&&r.name!=="Mutation")return!1;let n=e.getSubscriptionType();return!(n&&n.name!=="Subscription")}function Hve(e){if((0,J1.isScalarType)(e))return _yt(e);if((0,J1.isObjectType)(e))return fyt(e);if((0,J1.isInterfaceType)(e))return myt(e);if((0,J1.isUnionType)(e))return hyt(e);if((0,J1.isEnumType)(e))return yyt(e);if((0,J1.isInputObjectType)(e))return gyt(e);(0,oyt.invariant)(!1,"Unexpected type: "+(0,nyt.inspect)(e))}function _yt(e){return Wl(e)+`scalar ${e.name}`+vyt(e)}function Zve(e){let t=e.getInterfaces();return t.length?" implements "+t.map(r=>r.name).join(" & "):""}function fyt(e){return Wl(e)+`type ${e.name}`+Zve(e)+Wve(e)}function myt(e){return Wl(e)+`interface ${e.name}`+Zve(e)+Wve(e)}function hyt(e){let t=e.getTypes(),r=t.length?" = "+t.join(" | "):"";return Wl(e)+"union "+e.name+r}function yyt(e){let t=e.getValues().map((r,n)=>Wl(r," ",!n)+" "+r.name+zH(r.deprecationReason));return Wl(e)+`enum ${e.name}`+UH(t)}function gyt(e){let t=Object.values(e.getFields()).map((r,n)=>Wl(r," ",!n)+" "+jH(r));return Wl(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+UH(t)}function Wve(e){let t=Object.values(e.getFields()).map((r,n)=>Wl(r," ",!n)+" "+r.name+Qve(r.args," ")+": "+String(r.type)+zH(r.deprecationReason));return UH(t)}function UH(e){return e.length!==0?` { `+e.join(` `)+` -}`:""}function Zve(e,t=""){return e.length===0?"":e.every(r=>!r.description)?"("+e.map($H).join(", ")+")":`( -`+e.map((r,n)=>Zl(r," "+t,!n)+" "+t+$H(r)).join(` +}`:""}function Qve(e,t=""){return e.length===0?"":e.every(r=>!r.description)?"("+e.map(jH).join(", ")+")":`( +`+e.map((r,n)=>Wl(r," "+t,!n)+" "+t+jH(r)).join(` `)+` -`+t+")"}function $H(e){let t=(0,iyt.astFromValue)(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=` = ${(0,J4.print)(t)}`),r+qH(e.deprecationReason)}function yyt(e){return Zl(e)+"directive @"+e.name+Zve(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function qH(e){return e==null?"":e!==jH.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,J4.print)({kind:MH.Kind.STRING,value:e})})`:" @deprecated"}function gyt(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,J4.print)({kind:MH.Kind.STRING,value:e.specifiedByURL})})`}function Zl(e,t="",r=!0){let{description:n}=e;if(n==null)return"";let o=(0,J4.print)({kind:MH.Kind.STRING,value:n,block:(0,nyt.isPrintableAsBlockString)(n)});return(t&&!r?` +`+t+")"}function jH(e){let t=(0,syt.astFromValue)(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=` = ${(0,G4.print)(t)}`),r+zH(e.deprecationReason)}function Syt(e){return Wl(e)+"directive @"+e.name+Qve(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function zH(e){return e==null?"":e!==qH.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,G4.print)({kind:BH.Kind.STRING,value:e})})`:" @deprecated"}function vyt(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,G4.print)({kind:BH.Kind.STRING,value:e.specifiedByURL})})`}function Wl(e,t="",r=!0){let{description:n}=e;if(n==null)return"";let o=(0,G4.print)({kind:BH.Kind.STRING,value:n,block:(0,iyt.isPrintableAsBlockString)(n)});return(t&&!r?` `+t:t)+o.replace(/\n/g,` `+t)+` -`}});var Qve=L(UH=>{"use strict";Object.defineProperty(UH,"__esModule",{value:!0});UH.concatAST=vyt;var Syt=Sn();function vyt(e){let t=[];for(let r of e)t.push(...r.definitions);return{kind:Syt.Kind.DOCUMENT,definitions:t}}});var e1e=L(zH=>{"use strict";Object.defineProperty(zH,"__esModule",{value:!0});zH.separateOperations=xyt;var K4=Sn(),byt=Gg();function xyt(e){let t=[],r=Object.create(null);for(let o of e.definitions)switch(o.kind){case K4.Kind.OPERATION_DEFINITION:t.push(o);break;case K4.Kind.FRAGMENT_DEFINITION:r[o.name.value]=Xve(o.selectionSet);break;default:}let n=Object.create(null);for(let o of t){let i=new Set;for(let s of Xve(o.selectionSet))Yve(i,r,s);let a=o.name?o.name.value:"";n[a]={kind:K4.Kind.DOCUMENT,definitions:e.definitions.filter(s=>s===o||s.kind===K4.Kind.FRAGMENT_DEFINITION&&i.has(s.name.value))}}return n}function Yve(e,t,r){if(!e.has(r)){e.add(r);let n=t[r];if(n!==void 0)for(let o of n)Yve(e,t,o)}}function Xve(e){let t=[];return(0,byt.visit)(e,{FragmentSpread(r){t.push(r.name.value)}}),t}});var n1e=L(JH=>{"use strict";Object.defineProperty(JH,"__esModule",{value:!0});JH.stripIgnoredCharacters=Tyt;var Eyt=d2(),t1e=m2(),r1e=MO(),VH=w1();function Tyt(e){let t=(0,r1e.isSource)(e)?e:new r1e.Source(e),r=t.body,n=new t1e.Lexer(t),o="",i=!1;for(;n.advance().kind!==VH.TokenKind.EOF;){let a=n.token,s=a.kind,c=!(0,t1e.isPunctuatorTokenKind)(a.kind);i&&(c||a.kind===VH.TokenKind.SPREAD)&&(o+=" ");let p=r.slice(a.start,a.end);s===VH.TokenKind.BLOCK_STRING?o+=(0,Eyt.printBlockString)(a.value,{minimize:!0}):o+=p,i=c}return o}});var i1e=L(G4=>{"use strict";Object.defineProperty(G4,"__esModule",{value:!0});G4.assertValidName=Iyt;G4.isValidNameError=o1e;var Dyt=Ls(),Ayt=ar(),wyt=b2();function Iyt(e){let t=o1e(e);if(t)throw t;return e}function o1e(e){if(typeof e=="string"||(0,Dyt.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new Ayt.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,wyt.assertName)(e)}catch(t){return t}}});var _1e=L(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.DangerousChangeType=Ed.BreakingChangeType=void 0;Ed.findBreakingChanges=Fyt;Ed.findDangerousChanges=Ryt;var kyt=eo(),p1e=us(),a1e=Sh(),Cyt=Gc(),Kn=vn(),Pyt=Sd(),Oyt=N2(),Nyt=KK(),bi;Ed.BreakingChangeType=bi;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(bi||(Ed.BreakingChangeType=bi={}));var Qu;Ed.DangerousChangeType=Qu;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(Qu||(Ed.DangerousChangeType=Qu={}));function Fyt(e,t){return d1e(e,t).filter(r=>r.type in bi)}function Ryt(e,t){return d1e(e,t).filter(r=>r.type in Qu)}function d1e(e,t){return[...$yt(e,t),...Lyt(e,t)]}function Lyt(e,t){let r=[],n=df(e.getDirectives(),t.getDirectives());for(let o of n.removed)r.push({type:bi.DIRECTIVE_REMOVED,description:`${o.name} was removed.`});for(let[o,i]of n.persisted){let a=df(o.args,i.args);for(let s of a.added)(0,Kn.isRequiredArgument)(s)&&r.push({type:bi.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${s.name} on directive ${o.name} was added.`});for(let s of a.removed)r.push({type:bi.DIRECTIVE_ARG_REMOVED,description:`${s.name} was removed from ${o.name}.`});o.isRepeatable&&!i.isRepeatable&&r.push({type:bi.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${o.name}.`});for(let s of o.locations)i.locations.includes(s)||r.push({type:bi.DIRECTIVE_LOCATION_REMOVED,description:`${s} was removed from ${o.name}.`})}return r}function $yt(e,t){let r=[],n=df(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let o of n.removed)r.push({type:bi.TYPE_REMOVED,description:(0,Pyt.isSpecifiedScalarType)(o)?`Standard scalar ${o.name} was removed because it is not referenced anymore.`:`${o.name} was removed.`});for(let[o,i]of n.persisted)(0,Kn.isEnumType)(o)&&(0,Kn.isEnumType)(i)?r.push(...Byt(o,i)):(0,Kn.isUnionType)(o)&&(0,Kn.isUnionType)(i)?r.push(...jyt(o,i)):(0,Kn.isInputObjectType)(o)&&(0,Kn.isInputObjectType)(i)?r.push(...Myt(o,i)):(0,Kn.isObjectType)(o)&&(0,Kn.isObjectType)(i)?r.push(...c1e(o,i),...s1e(o,i)):(0,Kn.isInterfaceType)(o)&&(0,Kn.isInterfaceType)(i)?r.push(...c1e(o,i),...s1e(o,i)):o.constructor!==i.constructor&&r.push({type:bi.TYPE_CHANGED_KIND,description:`${o.name} changed from ${l1e(o)} to ${l1e(i)}.`});return r}function Myt(e,t){let r=[],n=df(Object.values(e.getFields()),Object.values(t.getFields()));for(let o of n.added)(0,Kn.isRequiredInputField)(o)?r.push({type:bi.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${o.name} on input type ${e.name} was added.`}):r.push({type:Qu.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${o.name} on input type ${e.name} was added.`});for(let o of n.removed)r.push({type:bi.FIELD_REMOVED,description:`${e.name}.${o.name} was removed.`});for(let[o,i]of n.persisted)oA(o.type,i.type)||r.push({type:bi.FIELD_CHANGED_KIND,description:`${e.name}.${o.name} changed type from ${String(o.type)} to ${String(i.type)}.`});return r}function jyt(e,t){let r=[],n=df(e.getTypes(),t.getTypes());for(let o of n.added)r.push({type:Qu.TYPE_ADDED_TO_UNION,description:`${o.name} was added to union type ${e.name}.`});for(let o of n.removed)r.push({type:bi.TYPE_REMOVED_FROM_UNION,description:`${o.name} was removed from union type ${e.name}.`});return r}function Byt(e,t){let r=[],n=df(e.getValues(),t.getValues());for(let o of n.added)r.push({type:Qu.VALUE_ADDED_TO_ENUM,description:`${o.name} was added to enum type ${e.name}.`});for(let o of n.removed)r.push({type:bi.VALUE_REMOVED_FROM_ENUM,description:`${o.name} was removed from enum type ${e.name}.`});return r}function s1e(e,t){let r=[],n=df(e.getInterfaces(),t.getInterfaces());for(let o of n.added)r.push({type:Qu.IMPLEMENTED_INTERFACE_ADDED,description:`${o.name} added to interfaces implemented by ${e.name}.`});for(let o of n.removed)r.push({type:bi.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${o.name}.`});return r}function c1e(e,t){let r=[],n=df(Object.values(e.getFields()),Object.values(t.getFields()));for(let o of n.removed)r.push({type:bi.FIELD_REMOVED,description:`${e.name}.${o.name} was removed.`});for(let[o,i]of n.persisted)r.push(...qyt(e,o,i)),nA(o.type,i.type)||r.push({type:bi.FIELD_CHANGED_KIND,description:`${e.name}.${o.name} changed type from ${String(o.type)} to ${String(i.type)}.`});return r}function qyt(e,t,r){let n=[],o=df(t.args,r.args);for(let i of o.removed)n.push({type:bi.ARG_REMOVED,description:`${e.name}.${t.name} arg ${i.name} was removed.`});for(let[i,a]of o.persisted)if(!oA(i.type,a.type))n.push({type:bi.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${i.name} has changed type from ${String(i.type)} to ${String(a.type)}.`});else if(i.defaultValue!==void 0)if(a.defaultValue===void 0)n.push({type:Qu.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${i.name} defaultValue was removed.`});else{let c=u1e(i.defaultValue,i.type),p=u1e(a.defaultValue,a.type);c!==p&&n.push({type:Qu.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${i.name} has changed defaultValue from ${c} to ${p}.`})}for(let i of o.added)(0,Kn.isRequiredArgument)(i)?n.push({type:bi.REQUIRED_ARG_ADDED,description:`A required arg ${i.name} on ${e.name}.${t.name} was added.`}):n.push({type:Qu.OPTIONAL_ARG_ADDED,description:`An optional arg ${i.name} on ${e.name}.${t.name} was added.`});return n}function nA(e,t){return(0,Kn.isListType)(e)?(0,Kn.isListType)(t)&&nA(e.ofType,t.ofType)||(0,Kn.isNonNullType)(t)&&nA(e,t.ofType):(0,Kn.isNonNullType)(e)?(0,Kn.isNonNullType)(t)&&nA(e.ofType,t.ofType):(0,Kn.isNamedType)(t)&&e.name===t.name||(0,Kn.isNonNullType)(t)&&nA(e,t.ofType)}function oA(e,t){return(0,Kn.isListType)(e)?(0,Kn.isListType)(t)&&oA(e.ofType,t.ofType):(0,Kn.isNonNullType)(e)?(0,Kn.isNonNullType)(t)&&oA(e.ofType,t.ofType)||!(0,Kn.isNonNullType)(t)&&oA(e.ofType,t):(0,Kn.isNamedType)(t)&&e.name===t.name}function l1e(e){if((0,Kn.isScalarType)(e))return"a Scalar type";if((0,Kn.isObjectType)(e))return"an Object type";if((0,Kn.isInterfaceType)(e))return"an Interface type";if((0,Kn.isUnionType)(e))return"a Union type";if((0,Kn.isEnumType)(e))return"an Enum type";if((0,Kn.isInputObjectType)(e))return"an Input type";(0,p1e.invariant)(!1,"Unexpected type: "+(0,kyt.inspect)(e))}function u1e(e,t){let r=(0,Oyt.astFromValue)(e,t);return r!=null||(0,p1e.invariant)(!1),(0,Cyt.print)((0,Nyt.sortValueNode)(r))}function df(e,t){let r=[],n=[],o=[],i=(0,a1e.keyMap)(e,({name:s})=>s),a=(0,a1e.keyMap)(t,({name:s})=>s);for(let s of e){let c=a[s.name];c===void 0?n.push(s):o.push([s,c])}for(let s of t)i[s.name]===void 0&&r.push(s);return{added:r,persisted:o,removed:n}}});var m1e=L(H4=>{"use strict";Object.defineProperty(H4,"__esModule",{value:!0});H4.resolveASTSchemaCoordinate=f1e;H4.resolveSchemaCoordinate=zyt;var sS=eo(),iA=Sn(),Uyt=Kg(),wh=vn();function zyt(e,t){return f1e(e,(0,Uyt.parseSchemaCoordinate)(t))}function Vyt(e,t){let r=t.name.value,n=e.getType(r);if(n!=null)return{kind:"NamedType",type:n}}function Jyt(e,t){let r=t.name.value,n=e.getType(r);if(!n)throw new Error(`Expected ${(0,sS.inspect)(r)} to be defined as a type in the schema.`);if(!(0,wh.isEnumType)(n)&&!(0,wh.isInputObjectType)(n)&&!(0,wh.isObjectType)(n)&&!(0,wh.isInterfaceType)(n))throw new Error(`Expected ${(0,sS.inspect)(r)} to be an Enum, Input Object, Object or Interface type.`);if((0,wh.isEnumType)(n)){let a=t.memberName.value,s=n.getValue(a);return s==null?void 0:{kind:"EnumValue",type:n,enumValue:s}}if((0,wh.isInputObjectType)(n)){let a=t.memberName.value,s=n.getFields()[a];return s==null?void 0:{kind:"InputField",type:n,inputField:s}}let o=t.memberName.value,i=n.getFields()[o];if(i!=null)return{kind:"Field",type:n,field:i}}function Kyt(e,t){let r=t.name.value,n=e.getType(r);if(n==null)throw new Error(`Expected ${(0,sS.inspect)(r)} to be defined as a type in the schema.`);if(!(0,wh.isObjectType)(n)&&!(0,wh.isInterfaceType)(n))throw new Error(`Expected ${(0,sS.inspect)(r)} to be an object type or interface type.`);let o=t.fieldName.value,i=n.getFields()[o];if(i==null)throw new Error(`Expected ${(0,sS.inspect)(o)} to exist as a field of type ${(0,sS.inspect)(r)} in the schema.`);let a=t.argumentName.value,s=i.args.find(c=>c.name===a);if(s!=null)return{kind:"FieldArgument",type:n,field:i,fieldArgument:s}}function Gyt(e,t){let r=t.name.value,n=e.getDirective(r);if(n)return{kind:"Directive",directive:n}}function Hyt(e,t){let r=t.name.value,n=e.getDirective(r);if(!n)throw new Error(`Expected ${(0,sS.inspect)(r)} to be defined as a directive in the schema.`);let{argumentName:{value:o}}=t,i=n.args.find(a=>a.name===o);if(i)return{kind:"DirectiveArgument",directive:n,directiveArgument:i}}function f1e(e,t){switch(t.kind){case iA.Kind.TYPE_COORDINATE:return Vyt(e,t);case iA.Kind.MEMBER_COORDINATE:return Jyt(e,t);case iA.Kind.ARGUMENT_COORDINATE:return Kyt(e,t);case iA.Kind.DIRECTIVE_COORDINATE:return Gyt(e,t);case iA.Kind.DIRECTIVE_ARGUMENT_COORDINATE:return Hyt(e,t)}}});var v1e=L(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Object.defineProperty(Pn,"BreakingChangeType",{enumerable:!0,get:function(){return Z4.BreakingChangeType}});Object.defineProperty(Pn,"DangerousChangeType",{enumerable:!0,get:function(){return Z4.DangerousChangeType}});Object.defineProperty(Pn,"TypeInfo",{enumerable:!0,get:function(){return y1e.TypeInfo}});Object.defineProperty(Pn,"assertValidName",{enumerable:!0,get:function(){return g1e.assertValidName}});Object.defineProperty(Pn,"astFromValue",{enumerable:!0,get:function(){return igt.astFromValue}});Object.defineProperty(Pn,"buildASTSchema",{enumerable:!0,get:function(){return h1e.buildASTSchema}});Object.defineProperty(Pn,"buildClientSchema",{enumerable:!0,get:function(){return Yyt.buildClientSchema}});Object.defineProperty(Pn,"buildSchema",{enumerable:!0,get:function(){return h1e.buildSchema}});Object.defineProperty(Pn,"coerceInputValue",{enumerable:!0,get:function(){return agt.coerceInputValue}});Object.defineProperty(Pn,"concatAST",{enumerable:!0,get:function(){return sgt.concatAST}});Object.defineProperty(Pn,"doTypesOverlap",{enumerable:!0,get:function(){return GH.doTypesOverlap}});Object.defineProperty(Pn,"extendSchema",{enumerable:!0,get:function(){return egt.extendSchema}});Object.defineProperty(Pn,"findBreakingChanges",{enumerable:!0,get:function(){return Z4.findBreakingChanges}});Object.defineProperty(Pn,"findDangerousChanges",{enumerable:!0,get:function(){return Z4.findDangerousChanges}});Object.defineProperty(Pn,"getIntrospectionQuery",{enumerable:!0,get:function(){return Zyt.getIntrospectionQuery}});Object.defineProperty(Pn,"getOperationAST",{enumerable:!0,get:function(){return Wyt.getOperationAST}});Object.defineProperty(Pn,"getOperationRootType",{enumerable:!0,get:function(){return Qyt.getOperationRootType}});Object.defineProperty(Pn,"introspectionFromSchema",{enumerable:!0,get:function(){return Xyt.introspectionFromSchema}});Object.defineProperty(Pn,"isEqualType",{enumerable:!0,get:function(){return GH.isEqualType}});Object.defineProperty(Pn,"isTypeSubTypeOf",{enumerable:!0,get:function(){return GH.isTypeSubTypeOf}});Object.defineProperty(Pn,"isValidNameError",{enumerable:!0,get:function(){return g1e.isValidNameError}});Object.defineProperty(Pn,"lexicographicSortSchema",{enumerable:!0,get:function(){return tgt.lexicographicSortSchema}});Object.defineProperty(Pn,"printIntrospectionSchema",{enumerable:!0,get:function(){return KH.printIntrospectionSchema}});Object.defineProperty(Pn,"printSchema",{enumerable:!0,get:function(){return KH.printSchema}});Object.defineProperty(Pn,"printType",{enumerable:!0,get:function(){return KH.printType}});Object.defineProperty(Pn,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return S1e.resolveASTSchemaCoordinate}});Object.defineProperty(Pn,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return S1e.resolveSchemaCoordinate}});Object.defineProperty(Pn,"separateOperations",{enumerable:!0,get:function(){return cgt.separateOperations}});Object.defineProperty(Pn,"stripIgnoredCharacters",{enumerable:!0,get:function(){return lgt.stripIgnoredCharacters}});Object.defineProperty(Pn,"typeFromAST",{enumerable:!0,get:function(){return rgt.typeFromAST}});Object.defineProperty(Pn,"valueFromAST",{enumerable:!0,get:function(){return ngt.valueFromAST}});Object.defineProperty(Pn,"valueFromASTUntyped",{enumerable:!0,get:function(){return ogt.valueFromASTUntyped}});Object.defineProperty(Pn,"visitWithTypeInfo",{enumerable:!0,get:function(){return y1e.visitWithTypeInfo}});var Zyt=IH(),Wyt=Ave(),Qyt=wve(),Xyt=Ive(),Yyt=Cve(),h1e=Bve(),egt=FH(),tgt=zve(),KH=Wve(),rgt=vd(),ngt=z2(),ogt=UJ(),igt=N2(),y1e=f4(),agt=fG(),sgt=Qve(),cgt=e1e(),lgt=n1e(),GH=A2(),g1e=i1e(),Z4=_1e(),S1e=m1e()});var E1e=L(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Object.defineProperty(Q,"BREAK",{enumerable:!0,get:function(){return zn.BREAK}});Object.defineProperty(Q,"BreakingChangeType",{enumerable:!0,get:function(){return Vn.BreakingChangeType}});Object.defineProperty(Q,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Xe.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(Q,"DangerousChangeType",{enumerable:!0,get:function(){return Vn.DangerousChangeType}});Object.defineProperty(Q,"DirectiveLocation",{enumerable:!0,get:function(){return zn.DirectiveLocation}});Object.defineProperty(Q,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return Gr.ExecutableDefinitionsRule}});Object.defineProperty(Q,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return Gr.FieldsOnCorrectTypeRule}});Object.defineProperty(Q,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return Gr.FragmentsOnCompositeTypesRule}});Object.defineProperty(Q,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Xe.GRAPHQL_MAX_INT}});Object.defineProperty(Q,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Xe.GRAPHQL_MIN_INT}});Object.defineProperty(Q,"GraphQLBoolean",{enumerable:!0,get:function(){return Xe.GraphQLBoolean}});Object.defineProperty(Q,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Xe.GraphQLDeprecatedDirective}});Object.defineProperty(Q,"GraphQLDirective",{enumerable:!0,get:function(){return Xe.GraphQLDirective}});Object.defineProperty(Q,"GraphQLEnumType",{enumerable:!0,get:function(){return Xe.GraphQLEnumType}});Object.defineProperty(Q,"GraphQLError",{enumerable:!0,get:function(){return aA.GraphQLError}});Object.defineProperty(Q,"GraphQLFloat",{enumerable:!0,get:function(){return Xe.GraphQLFloat}});Object.defineProperty(Q,"GraphQLID",{enumerable:!0,get:function(){return Xe.GraphQLID}});Object.defineProperty(Q,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Xe.GraphQLIncludeDirective}});Object.defineProperty(Q,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Xe.GraphQLInputObjectType}});Object.defineProperty(Q,"GraphQLInt",{enumerable:!0,get:function(){return Xe.GraphQLInt}});Object.defineProperty(Q,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Xe.GraphQLInterfaceType}});Object.defineProperty(Q,"GraphQLList",{enumerable:!0,get:function(){return Xe.GraphQLList}});Object.defineProperty(Q,"GraphQLNonNull",{enumerable:!0,get:function(){return Xe.GraphQLNonNull}});Object.defineProperty(Q,"GraphQLObjectType",{enumerable:!0,get:function(){return Xe.GraphQLObjectType}});Object.defineProperty(Q,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Xe.GraphQLOneOfDirective}});Object.defineProperty(Q,"GraphQLScalarType",{enumerable:!0,get:function(){return Xe.GraphQLScalarType}});Object.defineProperty(Q,"GraphQLSchema",{enumerable:!0,get:function(){return Xe.GraphQLSchema}});Object.defineProperty(Q,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Xe.GraphQLSkipDirective}});Object.defineProperty(Q,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Xe.GraphQLSpecifiedByDirective}});Object.defineProperty(Q,"GraphQLString",{enumerable:!0,get:function(){return Xe.GraphQLString}});Object.defineProperty(Q,"GraphQLUnionType",{enumerable:!0,get:function(){return Xe.GraphQLUnionType}});Object.defineProperty(Q,"Kind",{enumerable:!0,get:function(){return zn.Kind}});Object.defineProperty(Q,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return Gr.KnownArgumentNamesRule}});Object.defineProperty(Q,"KnownDirectivesRule",{enumerable:!0,get:function(){return Gr.KnownDirectivesRule}});Object.defineProperty(Q,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return Gr.KnownFragmentNamesRule}});Object.defineProperty(Q,"KnownTypeNamesRule",{enumerable:!0,get:function(){return Gr.KnownTypeNamesRule}});Object.defineProperty(Q,"Lexer",{enumerable:!0,get:function(){return zn.Lexer}});Object.defineProperty(Q,"Location",{enumerable:!0,get:function(){return zn.Location}});Object.defineProperty(Q,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return Gr.LoneAnonymousOperationRule}});Object.defineProperty(Q,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return Gr.LoneSchemaDefinitionRule}});Object.defineProperty(Q,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return Gr.MaxIntrospectionDepthRule}});Object.defineProperty(Q,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return Gr.NoDeprecatedCustomRule}});Object.defineProperty(Q,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return Gr.NoFragmentCyclesRule}});Object.defineProperty(Q,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return Gr.NoSchemaIntrospectionCustomRule}});Object.defineProperty(Q,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return Gr.NoUndefinedVariablesRule}});Object.defineProperty(Q,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return Gr.NoUnusedFragmentsRule}});Object.defineProperty(Q,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return Gr.NoUnusedVariablesRule}});Object.defineProperty(Q,"OperationTypeNode",{enumerable:!0,get:function(){return zn.OperationTypeNode}});Object.defineProperty(Q,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return Gr.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Q,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return Gr.PossibleFragmentSpreadsRule}});Object.defineProperty(Q,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return Gr.PossibleTypeExtensionsRule}});Object.defineProperty(Q,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return Gr.ProvidedRequiredArgumentsRule}});Object.defineProperty(Q,"ScalarLeafsRule",{enumerable:!0,get:function(){return Gr.ScalarLeafsRule}});Object.defineProperty(Q,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Xe.SchemaMetaFieldDef}});Object.defineProperty(Q,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return Gr.SingleFieldSubscriptionsRule}});Object.defineProperty(Q,"Source",{enumerable:!0,get:function(){return zn.Source}});Object.defineProperty(Q,"Token",{enumerable:!0,get:function(){return zn.Token}});Object.defineProperty(Q,"TokenKind",{enumerable:!0,get:function(){return zn.TokenKind}});Object.defineProperty(Q,"TypeInfo",{enumerable:!0,get:function(){return Vn.TypeInfo}});Object.defineProperty(Q,"TypeKind",{enumerable:!0,get:function(){return Xe.TypeKind}});Object.defineProperty(Q,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Xe.TypeMetaFieldDef}});Object.defineProperty(Q,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Xe.TypeNameMetaFieldDef}});Object.defineProperty(Q,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return Gr.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(Q,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return Gr.UniqueArgumentNamesRule}});Object.defineProperty(Q,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return Gr.UniqueDirectiveNamesRule}});Object.defineProperty(Q,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return Gr.UniqueDirectivesPerLocationRule}});Object.defineProperty(Q,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return Gr.UniqueEnumValueNamesRule}});Object.defineProperty(Q,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return Gr.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Q,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return Gr.UniqueFragmentNamesRule}});Object.defineProperty(Q,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return Gr.UniqueInputFieldNamesRule}});Object.defineProperty(Q,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return Gr.UniqueOperationNamesRule}});Object.defineProperty(Q,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return Gr.UniqueOperationTypesRule}});Object.defineProperty(Q,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return Gr.UniqueTypeNamesRule}});Object.defineProperty(Q,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return Gr.UniqueVariableNamesRule}});Object.defineProperty(Q,"ValidationContext",{enumerable:!0,get:function(){return Gr.ValidationContext}});Object.defineProperty(Q,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return Gr.ValuesOfCorrectTypeRule}});Object.defineProperty(Q,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return Gr.VariablesAreInputTypesRule}});Object.defineProperty(Q,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return Gr.VariablesInAllowedPositionRule}});Object.defineProperty(Q,"__Directive",{enumerable:!0,get:function(){return Xe.__Directive}});Object.defineProperty(Q,"__DirectiveLocation",{enumerable:!0,get:function(){return Xe.__DirectiveLocation}});Object.defineProperty(Q,"__EnumValue",{enumerable:!0,get:function(){return Xe.__EnumValue}});Object.defineProperty(Q,"__Field",{enumerable:!0,get:function(){return Xe.__Field}});Object.defineProperty(Q,"__InputValue",{enumerable:!0,get:function(){return Xe.__InputValue}});Object.defineProperty(Q,"__Schema",{enumerable:!0,get:function(){return Xe.__Schema}});Object.defineProperty(Q,"__Type",{enumerable:!0,get:function(){return Xe.__Type}});Object.defineProperty(Q,"__TypeKind",{enumerable:!0,get:function(){return Xe.__TypeKind}});Object.defineProperty(Q,"assertAbstractType",{enumerable:!0,get:function(){return Xe.assertAbstractType}});Object.defineProperty(Q,"assertCompositeType",{enumerable:!0,get:function(){return Xe.assertCompositeType}});Object.defineProperty(Q,"assertDirective",{enumerable:!0,get:function(){return Xe.assertDirective}});Object.defineProperty(Q,"assertEnumType",{enumerable:!0,get:function(){return Xe.assertEnumType}});Object.defineProperty(Q,"assertEnumValueName",{enumerable:!0,get:function(){return Xe.assertEnumValueName}});Object.defineProperty(Q,"assertInputObjectType",{enumerable:!0,get:function(){return Xe.assertInputObjectType}});Object.defineProperty(Q,"assertInputType",{enumerable:!0,get:function(){return Xe.assertInputType}});Object.defineProperty(Q,"assertInterfaceType",{enumerable:!0,get:function(){return Xe.assertInterfaceType}});Object.defineProperty(Q,"assertLeafType",{enumerable:!0,get:function(){return Xe.assertLeafType}});Object.defineProperty(Q,"assertListType",{enumerable:!0,get:function(){return Xe.assertListType}});Object.defineProperty(Q,"assertName",{enumerable:!0,get:function(){return Xe.assertName}});Object.defineProperty(Q,"assertNamedType",{enumerable:!0,get:function(){return Xe.assertNamedType}});Object.defineProperty(Q,"assertNonNullType",{enumerable:!0,get:function(){return Xe.assertNonNullType}});Object.defineProperty(Q,"assertNullableType",{enumerable:!0,get:function(){return Xe.assertNullableType}});Object.defineProperty(Q,"assertObjectType",{enumerable:!0,get:function(){return Xe.assertObjectType}});Object.defineProperty(Q,"assertOutputType",{enumerable:!0,get:function(){return Xe.assertOutputType}});Object.defineProperty(Q,"assertScalarType",{enumerable:!0,get:function(){return Xe.assertScalarType}});Object.defineProperty(Q,"assertSchema",{enumerable:!0,get:function(){return Xe.assertSchema}});Object.defineProperty(Q,"assertType",{enumerable:!0,get:function(){return Xe.assertType}});Object.defineProperty(Q,"assertUnionType",{enumerable:!0,get:function(){return Xe.assertUnionType}});Object.defineProperty(Q,"assertValidName",{enumerable:!0,get:function(){return Vn.assertValidName}});Object.defineProperty(Q,"assertValidSchema",{enumerable:!0,get:function(){return Xe.assertValidSchema}});Object.defineProperty(Q,"assertWrappingType",{enumerable:!0,get:function(){return Xe.assertWrappingType}});Object.defineProperty(Q,"astFromValue",{enumerable:!0,get:function(){return Vn.astFromValue}});Object.defineProperty(Q,"buildASTSchema",{enumerable:!0,get:function(){return Vn.buildASTSchema}});Object.defineProperty(Q,"buildClientSchema",{enumerable:!0,get:function(){return Vn.buildClientSchema}});Object.defineProperty(Q,"buildSchema",{enumerable:!0,get:function(){return Vn.buildSchema}});Object.defineProperty(Q,"coerceInputValue",{enumerable:!0,get:function(){return Vn.coerceInputValue}});Object.defineProperty(Q,"concatAST",{enumerable:!0,get:function(){return Vn.concatAST}});Object.defineProperty(Q,"createSourceEventStream",{enumerable:!0,get:function(){return Td.createSourceEventStream}});Object.defineProperty(Q,"defaultFieldResolver",{enumerable:!0,get:function(){return Td.defaultFieldResolver}});Object.defineProperty(Q,"defaultTypeResolver",{enumerable:!0,get:function(){return Td.defaultTypeResolver}});Object.defineProperty(Q,"doTypesOverlap",{enumerable:!0,get:function(){return Vn.doTypesOverlap}});Object.defineProperty(Q,"execute",{enumerable:!0,get:function(){return Td.execute}});Object.defineProperty(Q,"executeSync",{enumerable:!0,get:function(){return Td.executeSync}});Object.defineProperty(Q,"extendSchema",{enumerable:!0,get:function(){return Vn.extendSchema}});Object.defineProperty(Q,"findBreakingChanges",{enumerable:!0,get:function(){return Vn.findBreakingChanges}});Object.defineProperty(Q,"findDangerousChanges",{enumerable:!0,get:function(){return Vn.findDangerousChanges}});Object.defineProperty(Q,"formatError",{enumerable:!0,get:function(){return aA.formatError}});Object.defineProperty(Q,"getArgumentValues",{enumerable:!0,get:function(){return Td.getArgumentValues}});Object.defineProperty(Q,"getDirectiveValues",{enumerable:!0,get:function(){return Td.getDirectiveValues}});Object.defineProperty(Q,"getEnterLeaveForKind",{enumerable:!0,get:function(){return zn.getEnterLeaveForKind}});Object.defineProperty(Q,"getIntrospectionQuery",{enumerable:!0,get:function(){return Vn.getIntrospectionQuery}});Object.defineProperty(Q,"getLocation",{enumerable:!0,get:function(){return zn.getLocation}});Object.defineProperty(Q,"getNamedType",{enumerable:!0,get:function(){return Xe.getNamedType}});Object.defineProperty(Q,"getNullableType",{enumerable:!0,get:function(){return Xe.getNullableType}});Object.defineProperty(Q,"getOperationAST",{enumerable:!0,get:function(){return Vn.getOperationAST}});Object.defineProperty(Q,"getOperationRootType",{enumerable:!0,get:function(){return Vn.getOperationRootType}});Object.defineProperty(Q,"getVariableValues",{enumerable:!0,get:function(){return Td.getVariableValues}});Object.defineProperty(Q,"getVisitFn",{enumerable:!0,get:function(){return zn.getVisitFn}});Object.defineProperty(Q,"graphql",{enumerable:!0,get:function(){return x1e.graphql}});Object.defineProperty(Q,"graphqlSync",{enumerable:!0,get:function(){return x1e.graphqlSync}});Object.defineProperty(Q,"introspectionFromSchema",{enumerable:!0,get:function(){return Vn.introspectionFromSchema}});Object.defineProperty(Q,"introspectionTypes",{enumerable:!0,get:function(){return Xe.introspectionTypes}});Object.defineProperty(Q,"isAbstractType",{enumerable:!0,get:function(){return Xe.isAbstractType}});Object.defineProperty(Q,"isCompositeType",{enumerable:!0,get:function(){return Xe.isCompositeType}});Object.defineProperty(Q,"isConstValueNode",{enumerable:!0,get:function(){return zn.isConstValueNode}});Object.defineProperty(Q,"isDefinitionNode",{enumerable:!0,get:function(){return zn.isDefinitionNode}});Object.defineProperty(Q,"isDirective",{enumerable:!0,get:function(){return Xe.isDirective}});Object.defineProperty(Q,"isEnumType",{enumerable:!0,get:function(){return Xe.isEnumType}});Object.defineProperty(Q,"isEqualType",{enumerable:!0,get:function(){return Vn.isEqualType}});Object.defineProperty(Q,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return zn.isExecutableDefinitionNode}});Object.defineProperty(Q,"isInputObjectType",{enumerable:!0,get:function(){return Xe.isInputObjectType}});Object.defineProperty(Q,"isInputType",{enumerable:!0,get:function(){return Xe.isInputType}});Object.defineProperty(Q,"isInterfaceType",{enumerable:!0,get:function(){return Xe.isInterfaceType}});Object.defineProperty(Q,"isIntrospectionType",{enumerable:!0,get:function(){return Xe.isIntrospectionType}});Object.defineProperty(Q,"isLeafType",{enumerable:!0,get:function(){return Xe.isLeafType}});Object.defineProperty(Q,"isListType",{enumerable:!0,get:function(){return Xe.isListType}});Object.defineProperty(Q,"isNamedType",{enumerable:!0,get:function(){return Xe.isNamedType}});Object.defineProperty(Q,"isNonNullType",{enumerable:!0,get:function(){return Xe.isNonNullType}});Object.defineProperty(Q,"isNullableType",{enumerable:!0,get:function(){return Xe.isNullableType}});Object.defineProperty(Q,"isObjectType",{enumerable:!0,get:function(){return Xe.isObjectType}});Object.defineProperty(Q,"isOutputType",{enumerable:!0,get:function(){return Xe.isOutputType}});Object.defineProperty(Q,"isRequiredArgument",{enumerable:!0,get:function(){return Xe.isRequiredArgument}});Object.defineProperty(Q,"isRequiredInputField",{enumerable:!0,get:function(){return Xe.isRequiredInputField}});Object.defineProperty(Q,"isScalarType",{enumerable:!0,get:function(){return Xe.isScalarType}});Object.defineProperty(Q,"isSchema",{enumerable:!0,get:function(){return Xe.isSchema}});Object.defineProperty(Q,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return zn.isSchemaCoordinateNode}});Object.defineProperty(Q,"isSelectionNode",{enumerable:!0,get:function(){return zn.isSelectionNode}});Object.defineProperty(Q,"isSpecifiedDirective",{enumerable:!0,get:function(){return Xe.isSpecifiedDirective}});Object.defineProperty(Q,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Xe.isSpecifiedScalarType}});Object.defineProperty(Q,"isType",{enumerable:!0,get:function(){return Xe.isType}});Object.defineProperty(Q,"isTypeDefinitionNode",{enumerable:!0,get:function(){return zn.isTypeDefinitionNode}});Object.defineProperty(Q,"isTypeExtensionNode",{enumerable:!0,get:function(){return zn.isTypeExtensionNode}});Object.defineProperty(Q,"isTypeNode",{enumerable:!0,get:function(){return zn.isTypeNode}});Object.defineProperty(Q,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Vn.isTypeSubTypeOf}});Object.defineProperty(Q,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return zn.isTypeSystemDefinitionNode}});Object.defineProperty(Q,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return zn.isTypeSystemExtensionNode}});Object.defineProperty(Q,"isUnionType",{enumerable:!0,get:function(){return Xe.isUnionType}});Object.defineProperty(Q,"isValidNameError",{enumerable:!0,get:function(){return Vn.isValidNameError}});Object.defineProperty(Q,"isValueNode",{enumerable:!0,get:function(){return zn.isValueNode}});Object.defineProperty(Q,"isWrappingType",{enumerable:!0,get:function(){return Xe.isWrappingType}});Object.defineProperty(Q,"lexicographicSortSchema",{enumerable:!0,get:function(){return Vn.lexicographicSortSchema}});Object.defineProperty(Q,"locatedError",{enumerable:!0,get:function(){return aA.locatedError}});Object.defineProperty(Q,"parse",{enumerable:!0,get:function(){return zn.parse}});Object.defineProperty(Q,"parseConstValue",{enumerable:!0,get:function(){return zn.parseConstValue}});Object.defineProperty(Q,"parseSchemaCoordinate",{enumerable:!0,get:function(){return zn.parseSchemaCoordinate}});Object.defineProperty(Q,"parseType",{enumerable:!0,get:function(){return zn.parseType}});Object.defineProperty(Q,"parseValue",{enumerable:!0,get:function(){return zn.parseValue}});Object.defineProperty(Q,"print",{enumerable:!0,get:function(){return zn.print}});Object.defineProperty(Q,"printError",{enumerable:!0,get:function(){return aA.printError}});Object.defineProperty(Q,"printIntrospectionSchema",{enumerable:!0,get:function(){return Vn.printIntrospectionSchema}});Object.defineProperty(Q,"printLocation",{enumerable:!0,get:function(){return zn.printLocation}});Object.defineProperty(Q,"printSchema",{enumerable:!0,get:function(){return Vn.printSchema}});Object.defineProperty(Q,"printSourceLocation",{enumerable:!0,get:function(){return zn.printSourceLocation}});Object.defineProperty(Q,"printType",{enumerable:!0,get:function(){return Vn.printType}});Object.defineProperty(Q,"recommendedRules",{enumerable:!0,get:function(){return Gr.recommendedRules}});Object.defineProperty(Q,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return Vn.resolveASTSchemaCoordinate}});Object.defineProperty(Q,"resolveObjMapThunk",{enumerable:!0,get:function(){return Xe.resolveObjMapThunk}});Object.defineProperty(Q,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return Xe.resolveReadonlyArrayThunk}});Object.defineProperty(Q,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return Vn.resolveSchemaCoordinate}});Object.defineProperty(Q,"responsePathAsArray",{enumerable:!0,get:function(){return Td.responsePathAsArray}});Object.defineProperty(Q,"separateOperations",{enumerable:!0,get:function(){return Vn.separateOperations}});Object.defineProperty(Q,"specifiedDirectives",{enumerable:!0,get:function(){return Xe.specifiedDirectives}});Object.defineProperty(Q,"specifiedRules",{enumerable:!0,get:function(){return Gr.specifiedRules}});Object.defineProperty(Q,"specifiedScalarTypes",{enumerable:!0,get:function(){return Xe.specifiedScalarTypes}});Object.defineProperty(Q,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Vn.stripIgnoredCharacters}});Object.defineProperty(Q,"subscribe",{enumerable:!0,get:function(){return Td.subscribe}});Object.defineProperty(Q,"syntaxError",{enumerable:!0,get:function(){return aA.syntaxError}});Object.defineProperty(Q,"typeFromAST",{enumerable:!0,get:function(){return Vn.typeFromAST}});Object.defineProperty(Q,"validate",{enumerable:!0,get:function(){return Gr.validate}});Object.defineProperty(Q,"validateSchema",{enumerable:!0,get:function(){return Xe.validateSchema}});Object.defineProperty(Q,"valueFromAST",{enumerable:!0,get:function(){return Vn.valueFromAST}});Object.defineProperty(Q,"valueFromASTUntyped",{enumerable:!0,get:function(){return Vn.valueFromASTUntyped}});Object.defineProperty(Q,"version",{enumerable:!0,get:function(){return b1e.version}});Object.defineProperty(Q,"versionInfo",{enumerable:!0,get:function(){return b1e.versionInfo}});Object.defineProperty(Q,"visit",{enumerable:!0,get:function(){return zn.visit}});Object.defineProperty(Q,"visitInParallel",{enumerable:!0,get:function(){return zn.visitInParallel}});Object.defineProperty(Q,"visitWithTypeInfo",{enumerable:!0,get:function(){return Vn.visitWithTypeInfo}});var b1e=mge(),x1e=sve(),Xe=uve(),zn=dve(),Td=vve(),Gr=Tve(),aA=Dve(),Vn=v1e()});var qn=L(ja=>{"use strict";var eZ=Symbol.for("yaml.alias"),J1e=Symbol.for("yaml.document"),tN=Symbol.for("yaml.map"),K1e=Symbol.for("yaml.pair"),tZ=Symbol.for("yaml.scalar"),rN=Symbol.for("yaml.seq"),_f=Symbol.for("yaml.node.type"),Zgt=e=>!!e&&typeof e=="object"&&e[_f]===eZ,Wgt=e=>!!e&&typeof e=="object"&&e[_f]===J1e,Qgt=e=>!!e&&typeof e=="object"&&e[_f]===tN,Xgt=e=>!!e&&typeof e=="object"&&e[_f]===K1e,G1e=e=>!!e&&typeof e=="object"&&e[_f]===tZ,Ygt=e=>!!e&&typeof e=="object"&&e[_f]===rN;function H1e(e){if(e&&typeof e=="object")switch(e[_f]){case tN:case rN:return!0}return!1}function eSt(e){if(e&&typeof e=="object")switch(e[_f]){case eZ:case tN:case tZ:case rN:return!0}return!1}var tSt=e=>(G1e(e)||H1e(e))&&!!e.anchor;ja.ALIAS=eZ;ja.DOC=J1e;ja.MAP=tN;ja.NODE_TYPE=_f;ja.PAIR=K1e;ja.SCALAR=tZ;ja.SEQ=rN;ja.hasAnchor=tSt;ja.isAlias=Zgt;ja.isCollection=H1e;ja.isDocument=Wgt;ja.isMap=Qgt;ja.isNode=eSt;ja.isPair=Xgt;ja.isScalar=G1e;ja.isSeq=Ygt});var dA=L(rZ=>{"use strict";var oa=qn(),fc=Symbol("break visit"),Z1e=Symbol("skip children"),Dd=Symbol("remove node");function nN(e,t){let r=W1e(t);oa.isDocument(e)?z1(null,e.contents,r,Object.freeze([e]))===Dd&&(e.contents=null):z1(null,e,r,Object.freeze([]))}nN.BREAK=fc;nN.SKIP=Z1e;nN.REMOVE=Dd;function z1(e,t,r,n){let o=Q1e(e,t,r,n);if(oa.isNode(o)||oa.isPair(o))return X1e(e,n,o),z1(e,o,r,n);if(typeof o!="symbol"){if(oa.isCollection(t)){n=Object.freeze(n.concat(t));for(let i=0;i{"use strict";var Y1e=qn(),rSt=dA(),nSt={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},oSt=e=>e.replace(/[!,[\]{}]/g,t=>nSt[t]),_A=class e{constructor(t,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,r)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,r){this.atNextDocument&&(this.yaml={explicit:e.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},e.defaultTags),this.atNextDocument=!1);let n=t.trim().split(/[ \t]+/),o=n.shift();switch(o){case"%TAG":{if(n.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[i,a]=n;return this.tags[i]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;let[i]=n;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{let a=/^\d+\.\d+$/.test(i);return r(6,`Unsupported YAML version ${i}`,a),!1}}default:return r(0,`Unknown directive ${o}`,!0),!1}}tagName(t,r){if(t==="!")return"!";if(t[0]!=="!")return r(`Not a valid tag: ${t}`),null;if(t[1]==="<"){let a=t.slice(2,-1);return a==="!"||a==="!!"?(r(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&r("Verbatim tags must end with a >"),a)}let[,n,o]=t.match(/^(.*!)([^!]*)$/s);o||r(`The ${t} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(o)}catch(a){return r(String(a)),null}return n==="!"?t:(r(`Could not resolve tag: ${t}`),null)}tagString(t){for(let[r,n]of Object.entries(this.tags))if(t.startsWith(n))return r+oSt(t.substring(n.length));return t[0]==="!"?t:`!<${t}>`}toString(t){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags),o;if(t&&n.length>0&&Y1e.isNode(t.contents)){let i={};rSt.visit(t.contents,(a,s)=>{Y1e.isNode(s)&&s.tag&&(i[s.tag]=!0)}),o=Object.keys(i)}else o=[];for(let[i,a]of n)i==="!!"&&a==="tag:yaml.org,2002:"||(!t||o.some(s=>s.startsWith(a)))&&r.push(`%TAG ${i} ${a}`);return r.join(` -`)}};_A.defaultYaml={explicit:!1,version:"1.2"};_A.defaultTags={"!!":"tag:yaml.org,2002:"};ebe.Directives=_A});var iN=L(fA=>{"use strict";var tbe=qn(),iSt=dA();function aSt(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(r)}return!0}function rbe(e){let t=new Set;return iSt.visit(e,{Value(r,n){n.anchor&&t.add(n.anchor)}}),t}function nbe(e,t){for(let r=1;;++r){let n=`${e}${r}`;if(!t.has(n))return n}}function sSt(e,t){let r=[],n=new Map,o=null;return{onAnchor:i=>{r.push(i),o??(o=rbe(e));let a=nbe(t,o);return o.add(a),a},setAnchors:()=>{for(let i of r){let a=n.get(i);if(typeof a=="object"&&a.anchor&&(tbe.isScalar(a.node)||tbe.isCollection(a.node)))a.node.anchor=a.anchor;else{let s=new Error("Failed to resolve repeated object (this should not happen)");throw s.source=i,s}}},sourceObjects:n}}fA.anchorIsValid=aSt;fA.anchorNames=rbe;fA.createNodeAnchors=sSt;fA.findNewAnchor=nbe});var oZ=L(obe=>{"use strict";function mA(e,t,r,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let o=0,i=n.length;o{"use strict";var cSt=qn();function ibe(e,t,r){if(Array.isArray(e))return e.map((n,o)=>ibe(n,String(o),r));if(e&&typeof e.toJSON=="function"){if(!r||!cSt.hasAnchor(e))return e.toJSON(t,r);let n={aliasCount:0,count:1,res:void 0};r.anchors.set(e,n),r.onCreate=i=>{n.res=i,delete r.onCreate};let o=e.toJSON(t,r);return r.onCreate&&r.onCreate(o),o}return typeof e=="bigint"&&!r?.keep?Number(e):e}abe.toJS=ibe});var aN=L(cbe=>{"use strict";var lSt=oZ(),sbe=qn(),uSt=kh(),iZ=class{constructor(t){Object.defineProperty(this,sbe.NODE_TYPE,{value:t})}clone(){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:r,maxAliasCount:n,onAnchor:o,reviver:i}={}){if(!sbe.isDocument(t))throw new TypeError("A document argument is required");let a={anchors:new Map,doc:t,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},s=uSt.toJS(this,"",a);if(typeof o=="function")for(let{count:c,res:p}of a.anchors.values())o(p,c);return typeof i=="function"?lSt.applyReviver(i,{"":s},"",s):s}};cbe.NodeBase=iZ});var hA=L(lbe=>{"use strict";var pSt=iN(),dSt=dA(),J1=qn(),_St=aN(),fSt=kh(),aZ=class extends _St.NodeBase{constructor(t){super(J1.ALIAS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,r){let n;r?.aliasResolveCache?n=r.aliasResolveCache:(n=[],dSt.visit(t,{Node:(i,a)=>{(J1.isAlias(a)||J1.hasAnchor(a))&&n.push(a)}}),r&&(r.aliasResolveCache=n));let o;for(let i of n){if(i===this)break;i.anchor===this.source&&(o=i)}return o}toJSON(t,r){if(!r)return{source:this.source};let{anchors:n,doc:o,maxAliasCount:i}=r,a=this.resolve(o,r);if(!a){let c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let s=n.get(a);if(s||(fSt.toJS(a,null,r),s=n.get(a)),s?.res===void 0){let c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(i>=0&&(s.count+=1,s.aliasCount===0&&(s.aliasCount=sN(o,a,n)),s.count*s.aliasCount>i)){let c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return s.res}toString(t,r,n){let o=`*${this.source}`;if(t){if(pSt.anchorIsValid(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){let i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${o} `}return o}};function sN(e,t,r){if(J1.isAlias(t)){let n=t.resolve(e),o=r&&n&&r.get(n);return o?o.count*o.aliasCount:0}else if(J1.isCollection(t)){let n=0;for(let o of t.items){let i=sN(e,o,r);i>n&&(n=i)}return n}else if(J1.isPair(t)){let n=sN(e,t.key,r),o=sN(e,t.value,r);return Math.max(n,o)}return 1}lbe.Alias=aZ});var Vi=L(sZ=>{"use strict";var mSt=qn(),hSt=aN(),ySt=kh(),gSt=e=>!e||typeof e!="function"&&typeof e!="object",Ch=class extends hSt.NodeBase{constructor(t){super(mSt.SCALAR),this.value=t}toJSON(t,r){return r?.keep?this.value:ySt.toJS(this.value,t,r)}toString(){return String(this.value)}};Ch.BLOCK_FOLDED="BLOCK_FOLDED";Ch.BLOCK_LITERAL="BLOCK_LITERAL";Ch.PLAIN="PLAIN";Ch.QUOTE_DOUBLE="QUOTE_DOUBLE";Ch.QUOTE_SINGLE="QUOTE_SINGLE";sZ.Scalar=Ch;sZ.isScalarValue=gSt});var yA=L(pbe=>{"use strict";var SSt=hA(),lS=qn(),ube=Vi(),vSt="tag:yaml.org,2002:";function bSt(e,t,r){if(t){let n=r.filter(i=>i.tag===t),o=n.find(i=>!i.format)??n[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return r.find(n=>n.identify?.(e)&&!n.format)}function xSt(e,t,r){if(lS.isDocument(e)&&(e=e.contents),lS.isNode(e))return e;if(lS.isPair(e)){let f=r.schema[lS.MAP].createNode?.(r.schema,null,r);return f.items.push(e),f}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:n,onAnchor:o,onTagObj:i,schema:a,sourceObjects:s}=r,c;if(n&&e&&typeof e=="object"){if(c=s.get(e),c)return c.anchor??(c.anchor=o(e)),new SSt.Alias(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith("!!")&&(t=vSt+t.slice(2));let p=bSt(e,t,a.tags);if(!p){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){let f=new ube.Scalar(e);return c&&(c.node=f),f}p=e instanceof Map?a[lS.MAP]:Symbol.iterator in Object(e)?a[lS.SEQ]:a[lS.MAP]}i&&(i(p),delete r.onTagObj);let d=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from=="function"?p.nodeClass.from(r.schema,e,r):new ube.Scalar(e);return t?d.tag=t:p.default||(d.tag=p.tag),c&&(c.node=d),d}pbe.createNode=xSt});var lN=L(cN=>{"use strict";var ESt=yA(),Ad=qn(),TSt=aN();function cZ(e,t,r){let n=r;for(let o=t.length-1;o>=0;--o){let i=t[o];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){let a=[];a[i]=n,n=a}else n=new Map([[i,n]])}return ESt.createNode(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}var dbe=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done,lZ=class extends TSt.NodeBase{constructor(t,r){super(t),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(t){let r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(r.schema=t),r.items=r.items.map(n=>Ad.isNode(n)||Ad.isPair(n)?n.clone(t):n),this.range&&(r.range=this.range.slice()),r}addIn(t,r){if(dbe(t))this.add(r);else{let[n,...o]=t,i=this.get(n,!0);if(Ad.isCollection(i))i.addIn(o,r);else if(i===void 0&&this.schema)this.set(n,cZ(this.schema,o,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}deleteIn(t){let[r,...n]=t;if(n.length===0)return this.delete(r);let o=this.get(r,!0);if(Ad.isCollection(o))return o.deleteIn(n);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}getIn(t,r){let[n,...o]=t,i=this.get(n,!0);return o.length===0?!r&&Ad.isScalar(i)?i.value:i:Ad.isCollection(i)?i.getIn(o,r):void 0}hasAllNullValues(t){return this.items.every(r=>{if(!Ad.isPair(r))return!1;let n=r.value;return n==null||t&&Ad.isScalar(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(t){let[r,...n]=t;if(n.length===0)return this.has(r);let o=this.get(r,!0);return Ad.isCollection(o)?o.hasIn(n):!1}setIn(t,r){let[n,...o]=t;if(o.length===0)this.set(n,r);else{let i=this.get(n,!0);if(Ad.isCollection(i))i.setIn(o,r);else if(i===void 0&&this.schema)this.set(n,cZ(this.schema,o,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}};cN.Collection=lZ;cN.collectionFromPath=cZ;cN.isEmptyPath=dbe});var gA=L(uN=>{"use strict";var DSt=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function uZ(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var ASt=(e,t,r)=>e.endsWith(` -`)?uZ(r,t):r.includes(` +`}});var Yve=L(JH=>{"use strict";Object.defineProperty(JH,"__esModule",{value:!0});JH.concatAST=xyt;var byt=Sn();function xyt(e){let t=[];for(let r of e)t.push(...r.definitions);return{kind:byt.Kind.DOCUMENT,definitions:t}}});var r1e=L(VH=>{"use strict";Object.defineProperty(VH,"__esModule",{value:!0});VH.separateOperations=Tyt;var H4=Sn(),Eyt=Qg();function Tyt(e){let t=[],r=Object.create(null);for(let o of e.definitions)switch(o.kind){case H4.Kind.OPERATION_DEFINITION:t.push(o);break;case H4.Kind.FRAGMENT_DEFINITION:r[o.name.value]=e1e(o.selectionSet);break;default:}let n=Object.create(null);for(let o of t){let i=new Set;for(let s of e1e(o.selectionSet))t1e(i,r,s);let a=o.name?o.name.value:"";n[a]={kind:H4.Kind.DOCUMENT,definitions:e.definitions.filter(s=>s===o||s.kind===H4.Kind.FRAGMENT_DEFINITION&&i.has(s.name.value))}}return n}function t1e(e,t,r){if(!e.has(r)){e.add(r);let n=t[r];if(n!==void 0)for(let o of n)t1e(e,t,o)}}function e1e(e){let t=[];return(0,Eyt.visit)(e,{FragmentSpread(r){t.push(r.name.value)}}),t}});var i1e=L(GH=>{"use strict";Object.defineProperty(GH,"__esModule",{value:!0});GH.stripIgnoredCharacters=Ayt;var Dyt=fA(),n1e=yA(),o1e=BO(),KH=C1();function Ayt(e){let t=(0,o1e.isSource)(e)?e:new o1e.Source(e),r=t.body,n=new n1e.Lexer(t),o="",i=!1;for(;n.advance().kind!==KH.TokenKind.EOF;){let a=n.token,s=a.kind,c=!(0,n1e.isPunctuatorTokenKind)(a.kind);i&&(c||a.kind===KH.TokenKind.SPREAD)&&(o+=" ");let p=r.slice(a.start,a.end);s===KH.TokenKind.BLOCK_STRING?o+=(0,Dyt.printBlockString)(a.value,{minimize:!0}):o+=p,i=c}return o}});var s1e=L(Z4=>{"use strict";Object.defineProperty(Z4,"__esModule",{value:!0});Z4.assertValidName=Cyt;Z4.isValidNameError=a1e;var Iyt=Ls(),wyt=ar(),kyt=EA();function Cyt(e){let t=a1e(e);if(t)throw t;return e}function a1e(e){if(typeof e=="string"||(0,Iyt.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new wyt.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,kyt.assertName)(e)}catch(t){return t}}});var m1e=L(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.DangerousChangeType=Td.BreakingChangeType=void 0;Td.findBreakingChanges=Lyt;Td.findDangerousChanges=$yt;var Pyt=eo(),_1e=us(),c1e=xh(),Oyt=Gc(),Kn=vn(),Nyt=vd(),Fyt=RA(),Ryt=HK(),bi;Td.BreakingChangeType=bi;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(bi||(Td.BreakingChangeType=bi={}));var Xu;Td.DangerousChangeType=Xu;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(Xu||(Td.DangerousChangeType=Xu={}));function Lyt(e,t){return f1e(e,t).filter(r=>r.type in bi)}function $yt(e,t){return f1e(e,t).filter(r=>r.type in Xu)}function f1e(e,t){return[...jyt(e,t),...Myt(e,t)]}function Myt(e,t){let r=[],n=ff(e.getDirectives(),t.getDirectives());for(let o of n.removed)r.push({type:bi.DIRECTIVE_REMOVED,description:`${o.name} was removed.`});for(let[o,i]of n.persisted){let a=ff(o.args,i.args);for(let s of a.added)(0,Kn.isRequiredArgument)(s)&&r.push({type:bi.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${s.name} on directive ${o.name} was added.`});for(let s of a.removed)r.push({type:bi.DIRECTIVE_ARG_REMOVED,description:`${s.name} was removed from ${o.name}.`});o.isRepeatable&&!i.isRepeatable&&r.push({type:bi.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${o.name}.`});for(let s of o.locations)i.locations.includes(s)||r.push({type:bi.DIRECTIVE_LOCATION_REMOVED,description:`${s} was removed from ${o.name}.`})}return r}function jyt(e,t){let r=[],n=ff(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let o of n.removed)r.push({type:bi.TYPE_REMOVED,description:(0,Nyt.isSpecifiedScalarType)(o)?`Standard scalar ${o.name} was removed because it is not referenced anymore.`:`${o.name} was removed.`});for(let[o,i]of n.persisted)(0,Kn.isEnumType)(o)&&(0,Kn.isEnumType)(i)?r.push(...Uyt(o,i)):(0,Kn.isUnionType)(o)&&(0,Kn.isUnionType)(i)?r.push(...qyt(o,i)):(0,Kn.isInputObjectType)(o)&&(0,Kn.isInputObjectType)(i)?r.push(...Byt(o,i)):(0,Kn.isObjectType)(o)&&(0,Kn.isObjectType)(i)?r.push(...u1e(o,i),...l1e(o,i)):(0,Kn.isInterfaceType)(o)&&(0,Kn.isInterfaceType)(i)?r.push(...u1e(o,i),...l1e(o,i)):o.constructor!==i.constructor&&r.push({type:bi.TYPE_CHANGED_KIND,description:`${o.name} changed from ${p1e(o)} to ${p1e(i)}.`});return r}function Byt(e,t){let r=[],n=ff(Object.values(e.getFields()),Object.values(t.getFields()));for(let o of n.added)(0,Kn.isRequiredInputField)(o)?r.push({type:bi.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${o.name} on input type ${e.name} was added.`}):r.push({type:Xu.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${o.name} on input type ${e.name} was added.`});for(let o of n.removed)r.push({type:bi.FIELD_REMOVED,description:`${e.name}.${o.name} was removed.`});for(let[o,i]of n.persisted)a2(o.type,i.type)||r.push({type:bi.FIELD_CHANGED_KIND,description:`${e.name}.${o.name} changed type from ${String(o.type)} to ${String(i.type)}.`});return r}function qyt(e,t){let r=[],n=ff(e.getTypes(),t.getTypes());for(let o of n.added)r.push({type:Xu.TYPE_ADDED_TO_UNION,description:`${o.name} was added to union type ${e.name}.`});for(let o of n.removed)r.push({type:bi.TYPE_REMOVED_FROM_UNION,description:`${o.name} was removed from union type ${e.name}.`});return r}function Uyt(e,t){let r=[],n=ff(e.getValues(),t.getValues());for(let o of n.added)r.push({type:Xu.VALUE_ADDED_TO_ENUM,description:`${o.name} was added to enum type ${e.name}.`});for(let o of n.removed)r.push({type:bi.VALUE_REMOVED_FROM_ENUM,description:`${o.name} was removed from enum type ${e.name}.`});return r}function l1e(e,t){let r=[],n=ff(e.getInterfaces(),t.getInterfaces());for(let o of n.added)r.push({type:Xu.IMPLEMENTED_INTERFACE_ADDED,description:`${o.name} added to interfaces implemented by ${e.name}.`});for(let o of n.removed)r.push({type:bi.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${o.name}.`});return r}function u1e(e,t){let r=[],n=ff(Object.values(e.getFields()),Object.values(t.getFields()));for(let o of n.removed)r.push({type:bi.FIELD_REMOVED,description:`${e.name}.${o.name} was removed.`});for(let[o,i]of n.persisted)r.push(...zyt(e,o,i)),i2(o.type,i.type)||r.push({type:bi.FIELD_CHANGED_KIND,description:`${e.name}.${o.name} changed type from ${String(o.type)} to ${String(i.type)}.`});return r}function zyt(e,t,r){let n=[],o=ff(t.args,r.args);for(let i of o.removed)n.push({type:bi.ARG_REMOVED,description:`${e.name}.${t.name} arg ${i.name} was removed.`});for(let[i,a]of o.persisted)if(!a2(i.type,a.type))n.push({type:bi.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${i.name} has changed type from ${String(i.type)} to ${String(a.type)}.`});else if(i.defaultValue!==void 0)if(a.defaultValue===void 0)n.push({type:Xu.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${i.name} defaultValue was removed.`});else{let c=d1e(i.defaultValue,i.type),p=d1e(a.defaultValue,a.type);c!==p&&n.push({type:Xu.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${i.name} has changed defaultValue from ${c} to ${p}.`})}for(let i of o.added)(0,Kn.isRequiredArgument)(i)?n.push({type:bi.REQUIRED_ARG_ADDED,description:`A required arg ${i.name} on ${e.name}.${t.name} was added.`}):n.push({type:Xu.OPTIONAL_ARG_ADDED,description:`An optional arg ${i.name} on ${e.name}.${t.name} was added.`});return n}function i2(e,t){return(0,Kn.isListType)(e)?(0,Kn.isListType)(t)&&i2(e.ofType,t.ofType)||(0,Kn.isNonNullType)(t)&&i2(e,t.ofType):(0,Kn.isNonNullType)(e)?(0,Kn.isNonNullType)(t)&&i2(e.ofType,t.ofType):(0,Kn.isNamedType)(t)&&e.name===t.name||(0,Kn.isNonNullType)(t)&&i2(e,t.ofType)}function a2(e,t){return(0,Kn.isListType)(e)?(0,Kn.isListType)(t)&&a2(e.ofType,t.ofType):(0,Kn.isNonNullType)(e)?(0,Kn.isNonNullType)(t)&&a2(e.ofType,t.ofType)||!(0,Kn.isNonNullType)(t)&&a2(e.ofType,t):(0,Kn.isNamedType)(t)&&e.name===t.name}function p1e(e){if((0,Kn.isScalarType)(e))return"a Scalar type";if((0,Kn.isObjectType)(e))return"an Object type";if((0,Kn.isInterfaceType)(e))return"an Interface type";if((0,Kn.isUnionType)(e))return"a Union type";if((0,Kn.isEnumType)(e))return"an Enum type";if((0,Kn.isInputObjectType)(e))return"an Input type";(0,_1e.invariant)(!1,"Unexpected type: "+(0,Pyt.inspect)(e))}function d1e(e,t){let r=(0,Fyt.astFromValue)(e,t);return r!=null||(0,_1e.invariant)(!1),(0,Oyt.print)((0,Ryt.sortValueNode)(r))}function ff(e,t){let r=[],n=[],o=[],i=(0,c1e.keyMap)(e,({name:s})=>s),a=(0,c1e.keyMap)(t,({name:s})=>s);for(let s of e){let c=a[s.name];c===void 0?n.push(s):o.push([s,c])}for(let s of t)i[s.name]===void 0&&r.push(s);return{added:r,persisted:o,removed:n}}});var y1e=L(W4=>{"use strict";Object.defineProperty(W4,"__esModule",{value:!0});W4.resolveASTSchemaCoordinate=h1e;W4.resolveSchemaCoordinate=Vyt;var pS=eo(),s2=Sn(),Jyt=Wg(),Ch=vn();function Vyt(e,t){return h1e(e,(0,Jyt.parseSchemaCoordinate)(t))}function Kyt(e,t){let r=t.name.value,n=e.getType(r);if(n!=null)return{kind:"NamedType",type:n}}function Gyt(e,t){let r=t.name.value,n=e.getType(r);if(!n)throw new Error(`Expected ${(0,pS.inspect)(r)} to be defined as a type in the schema.`);if(!(0,Ch.isEnumType)(n)&&!(0,Ch.isInputObjectType)(n)&&!(0,Ch.isObjectType)(n)&&!(0,Ch.isInterfaceType)(n))throw new Error(`Expected ${(0,pS.inspect)(r)} to be an Enum, Input Object, Object or Interface type.`);if((0,Ch.isEnumType)(n)){let a=t.memberName.value,s=n.getValue(a);return s==null?void 0:{kind:"EnumValue",type:n,enumValue:s}}if((0,Ch.isInputObjectType)(n)){let a=t.memberName.value,s=n.getFields()[a];return s==null?void 0:{kind:"InputField",type:n,inputField:s}}let o=t.memberName.value,i=n.getFields()[o];if(i!=null)return{kind:"Field",type:n,field:i}}function Hyt(e,t){let r=t.name.value,n=e.getType(r);if(n==null)throw new Error(`Expected ${(0,pS.inspect)(r)} to be defined as a type in the schema.`);if(!(0,Ch.isObjectType)(n)&&!(0,Ch.isInterfaceType)(n))throw new Error(`Expected ${(0,pS.inspect)(r)} to be an object type or interface type.`);let o=t.fieldName.value,i=n.getFields()[o];if(i==null)throw new Error(`Expected ${(0,pS.inspect)(o)} to exist as a field of type ${(0,pS.inspect)(r)} in the schema.`);let a=t.argumentName.value,s=i.args.find(c=>c.name===a);if(s!=null)return{kind:"FieldArgument",type:n,field:i,fieldArgument:s}}function Zyt(e,t){let r=t.name.value,n=e.getDirective(r);if(n)return{kind:"Directive",directive:n}}function Wyt(e,t){let r=t.name.value,n=e.getDirective(r);if(!n)throw new Error(`Expected ${(0,pS.inspect)(r)} to be defined as a directive in the schema.`);let{argumentName:{value:o}}=t,i=n.args.find(a=>a.name===o);if(i)return{kind:"DirectiveArgument",directive:n,directiveArgument:i}}function h1e(e,t){switch(t.kind){case s2.Kind.TYPE_COORDINATE:return Kyt(e,t);case s2.Kind.MEMBER_COORDINATE:return Gyt(e,t);case s2.Kind.ARGUMENT_COORDINATE:return Hyt(e,t);case s2.Kind.DIRECTIVE_COORDINATE:return Zyt(e,t);case s2.Kind.DIRECTIVE_ARGUMENT_COORDINATE:return Wyt(e,t)}}});var x1e=L(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Object.defineProperty(Pn,"BreakingChangeType",{enumerable:!0,get:function(){return Q4.BreakingChangeType}});Object.defineProperty(Pn,"DangerousChangeType",{enumerable:!0,get:function(){return Q4.DangerousChangeType}});Object.defineProperty(Pn,"TypeInfo",{enumerable:!0,get:function(){return S1e.TypeInfo}});Object.defineProperty(Pn,"assertValidName",{enumerable:!0,get:function(){return v1e.assertValidName}});Object.defineProperty(Pn,"astFromValue",{enumerable:!0,get:function(){return sgt.astFromValue}});Object.defineProperty(Pn,"buildASTSchema",{enumerable:!0,get:function(){return g1e.buildASTSchema}});Object.defineProperty(Pn,"buildClientSchema",{enumerable:!0,get:function(){return tgt.buildClientSchema}});Object.defineProperty(Pn,"buildSchema",{enumerable:!0,get:function(){return g1e.buildSchema}});Object.defineProperty(Pn,"coerceInputValue",{enumerable:!0,get:function(){return cgt.coerceInputValue}});Object.defineProperty(Pn,"concatAST",{enumerable:!0,get:function(){return lgt.concatAST}});Object.defineProperty(Pn,"doTypesOverlap",{enumerable:!0,get:function(){return ZH.doTypesOverlap}});Object.defineProperty(Pn,"extendSchema",{enumerable:!0,get:function(){return rgt.extendSchema}});Object.defineProperty(Pn,"findBreakingChanges",{enumerable:!0,get:function(){return Q4.findBreakingChanges}});Object.defineProperty(Pn,"findDangerousChanges",{enumerable:!0,get:function(){return Q4.findDangerousChanges}});Object.defineProperty(Pn,"getIntrospectionQuery",{enumerable:!0,get:function(){return Qyt.getIntrospectionQuery}});Object.defineProperty(Pn,"getOperationAST",{enumerable:!0,get:function(){return Xyt.getOperationAST}});Object.defineProperty(Pn,"getOperationRootType",{enumerable:!0,get:function(){return Yyt.getOperationRootType}});Object.defineProperty(Pn,"introspectionFromSchema",{enumerable:!0,get:function(){return egt.introspectionFromSchema}});Object.defineProperty(Pn,"isEqualType",{enumerable:!0,get:function(){return ZH.isEqualType}});Object.defineProperty(Pn,"isTypeSubTypeOf",{enumerable:!0,get:function(){return ZH.isTypeSubTypeOf}});Object.defineProperty(Pn,"isValidNameError",{enumerable:!0,get:function(){return v1e.isValidNameError}});Object.defineProperty(Pn,"lexicographicSortSchema",{enumerable:!0,get:function(){return ngt.lexicographicSortSchema}});Object.defineProperty(Pn,"printIntrospectionSchema",{enumerable:!0,get:function(){return HH.printIntrospectionSchema}});Object.defineProperty(Pn,"printSchema",{enumerable:!0,get:function(){return HH.printSchema}});Object.defineProperty(Pn,"printType",{enumerable:!0,get:function(){return HH.printType}});Object.defineProperty(Pn,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return b1e.resolveASTSchemaCoordinate}});Object.defineProperty(Pn,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return b1e.resolveSchemaCoordinate}});Object.defineProperty(Pn,"separateOperations",{enumerable:!0,get:function(){return ugt.separateOperations}});Object.defineProperty(Pn,"stripIgnoredCharacters",{enumerable:!0,get:function(){return pgt.stripIgnoredCharacters}});Object.defineProperty(Pn,"typeFromAST",{enumerable:!0,get:function(){return ogt.typeFromAST}});Object.defineProperty(Pn,"valueFromAST",{enumerable:!0,get:function(){return igt.valueFromAST}});Object.defineProperty(Pn,"valueFromASTUntyped",{enumerable:!0,get:function(){return agt.valueFromASTUntyped}});Object.defineProperty(Pn,"visitWithTypeInfo",{enumerable:!0,get:function(){return S1e.visitWithTypeInfo}});var Qyt=CH(),Xyt=wve(),Yyt=kve(),egt=Cve(),tgt=Ove(),g1e=Uve(),rgt=LH(),ngt=Vve(),HH=Xve(),ogt=bd(),igt=VA(),agt=JV(),sgt=RA(),S1e=h4(),cgt=hG(),lgt=Yve(),ugt=r1e(),pgt=i1e(),ZH=wA(),v1e=s1e(),Q4=m1e(),b1e=y1e()});var D1e=L(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Object.defineProperty(Q,"BREAK",{enumerable:!0,get:function(){return zn.BREAK}});Object.defineProperty(Q,"BreakingChangeType",{enumerable:!0,get:function(){return Jn.BreakingChangeType}});Object.defineProperty(Q,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Xe.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(Q,"DangerousChangeType",{enumerable:!0,get:function(){return Jn.DangerousChangeType}});Object.defineProperty(Q,"DirectiveLocation",{enumerable:!0,get:function(){return zn.DirectiveLocation}});Object.defineProperty(Q,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return Hr.ExecutableDefinitionsRule}});Object.defineProperty(Q,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return Hr.FieldsOnCorrectTypeRule}});Object.defineProperty(Q,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return Hr.FragmentsOnCompositeTypesRule}});Object.defineProperty(Q,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Xe.GRAPHQL_MAX_INT}});Object.defineProperty(Q,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Xe.GRAPHQL_MIN_INT}});Object.defineProperty(Q,"GraphQLBoolean",{enumerable:!0,get:function(){return Xe.GraphQLBoolean}});Object.defineProperty(Q,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Xe.GraphQLDeprecatedDirective}});Object.defineProperty(Q,"GraphQLDirective",{enumerable:!0,get:function(){return Xe.GraphQLDirective}});Object.defineProperty(Q,"GraphQLEnumType",{enumerable:!0,get:function(){return Xe.GraphQLEnumType}});Object.defineProperty(Q,"GraphQLError",{enumerable:!0,get:function(){return c2.GraphQLError}});Object.defineProperty(Q,"GraphQLFloat",{enumerable:!0,get:function(){return Xe.GraphQLFloat}});Object.defineProperty(Q,"GraphQLID",{enumerable:!0,get:function(){return Xe.GraphQLID}});Object.defineProperty(Q,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Xe.GraphQLIncludeDirective}});Object.defineProperty(Q,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Xe.GraphQLInputObjectType}});Object.defineProperty(Q,"GraphQLInt",{enumerable:!0,get:function(){return Xe.GraphQLInt}});Object.defineProperty(Q,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Xe.GraphQLInterfaceType}});Object.defineProperty(Q,"GraphQLList",{enumerable:!0,get:function(){return Xe.GraphQLList}});Object.defineProperty(Q,"GraphQLNonNull",{enumerable:!0,get:function(){return Xe.GraphQLNonNull}});Object.defineProperty(Q,"GraphQLObjectType",{enumerable:!0,get:function(){return Xe.GraphQLObjectType}});Object.defineProperty(Q,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Xe.GraphQLOneOfDirective}});Object.defineProperty(Q,"GraphQLScalarType",{enumerable:!0,get:function(){return Xe.GraphQLScalarType}});Object.defineProperty(Q,"GraphQLSchema",{enumerable:!0,get:function(){return Xe.GraphQLSchema}});Object.defineProperty(Q,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Xe.GraphQLSkipDirective}});Object.defineProperty(Q,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Xe.GraphQLSpecifiedByDirective}});Object.defineProperty(Q,"GraphQLString",{enumerable:!0,get:function(){return Xe.GraphQLString}});Object.defineProperty(Q,"GraphQLUnionType",{enumerable:!0,get:function(){return Xe.GraphQLUnionType}});Object.defineProperty(Q,"Kind",{enumerable:!0,get:function(){return zn.Kind}});Object.defineProperty(Q,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return Hr.KnownArgumentNamesRule}});Object.defineProperty(Q,"KnownDirectivesRule",{enumerable:!0,get:function(){return Hr.KnownDirectivesRule}});Object.defineProperty(Q,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return Hr.KnownFragmentNamesRule}});Object.defineProperty(Q,"KnownTypeNamesRule",{enumerable:!0,get:function(){return Hr.KnownTypeNamesRule}});Object.defineProperty(Q,"Lexer",{enumerable:!0,get:function(){return zn.Lexer}});Object.defineProperty(Q,"Location",{enumerable:!0,get:function(){return zn.Location}});Object.defineProperty(Q,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return Hr.LoneAnonymousOperationRule}});Object.defineProperty(Q,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return Hr.LoneSchemaDefinitionRule}});Object.defineProperty(Q,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return Hr.MaxIntrospectionDepthRule}});Object.defineProperty(Q,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return Hr.NoDeprecatedCustomRule}});Object.defineProperty(Q,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return Hr.NoFragmentCyclesRule}});Object.defineProperty(Q,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return Hr.NoSchemaIntrospectionCustomRule}});Object.defineProperty(Q,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return Hr.NoUndefinedVariablesRule}});Object.defineProperty(Q,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return Hr.NoUnusedFragmentsRule}});Object.defineProperty(Q,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return Hr.NoUnusedVariablesRule}});Object.defineProperty(Q,"OperationTypeNode",{enumerable:!0,get:function(){return zn.OperationTypeNode}});Object.defineProperty(Q,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return Hr.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Q,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return Hr.PossibleFragmentSpreadsRule}});Object.defineProperty(Q,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return Hr.PossibleTypeExtensionsRule}});Object.defineProperty(Q,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return Hr.ProvidedRequiredArgumentsRule}});Object.defineProperty(Q,"ScalarLeafsRule",{enumerable:!0,get:function(){return Hr.ScalarLeafsRule}});Object.defineProperty(Q,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Xe.SchemaMetaFieldDef}});Object.defineProperty(Q,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return Hr.SingleFieldSubscriptionsRule}});Object.defineProperty(Q,"Source",{enumerable:!0,get:function(){return zn.Source}});Object.defineProperty(Q,"Token",{enumerable:!0,get:function(){return zn.Token}});Object.defineProperty(Q,"TokenKind",{enumerable:!0,get:function(){return zn.TokenKind}});Object.defineProperty(Q,"TypeInfo",{enumerable:!0,get:function(){return Jn.TypeInfo}});Object.defineProperty(Q,"TypeKind",{enumerable:!0,get:function(){return Xe.TypeKind}});Object.defineProperty(Q,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Xe.TypeMetaFieldDef}});Object.defineProperty(Q,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Xe.TypeNameMetaFieldDef}});Object.defineProperty(Q,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return Hr.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(Q,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return Hr.UniqueArgumentNamesRule}});Object.defineProperty(Q,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return Hr.UniqueDirectiveNamesRule}});Object.defineProperty(Q,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return Hr.UniqueDirectivesPerLocationRule}});Object.defineProperty(Q,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return Hr.UniqueEnumValueNamesRule}});Object.defineProperty(Q,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return Hr.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Q,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return Hr.UniqueFragmentNamesRule}});Object.defineProperty(Q,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return Hr.UniqueInputFieldNamesRule}});Object.defineProperty(Q,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return Hr.UniqueOperationNamesRule}});Object.defineProperty(Q,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return Hr.UniqueOperationTypesRule}});Object.defineProperty(Q,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return Hr.UniqueTypeNamesRule}});Object.defineProperty(Q,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return Hr.UniqueVariableNamesRule}});Object.defineProperty(Q,"ValidationContext",{enumerable:!0,get:function(){return Hr.ValidationContext}});Object.defineProperty(Q,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return Hr.ValuesOfCorrectTypeRule}});Object.defineProperty(Q,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return Hr.VariablesAreInputTypesRule}});Object.defineProperty(Q,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return Hr.VariablesInAllowedPositionRule}});Object.defineProperty(Q,"__Directive",{enumerable:!0,get:function(){return Xe.__Directive}});Object.defineProperty(Q,"__DirectiveLocation",{enumerable:!0,get:function(){return Xe.__DirectiveLocation}});Object.defineProperty(Q,"__EnumValue",{enumerable:!0,get:function(){return Xe.__EnumValue}});Object.defineProperty(Q,"__Field",{enumerable:!0,get:function(){return Xe.__Field}});Object.defineProperty(Q,"__InputValue",{enumerable:!0,get:function(){return Xe.__InputValue}});Object.defineProperty(Q,"__Schema",{enumerable:!0,get:function(){return Xe.__Schema}});Object.defineProperty(Q,"__Type",{enumerable:!0,get:function(){return Xe.__Type}});Object.defineProperty(Q,"__TypeKind",{enumerable:!0,get:function(){return Xe.__TypeKind}});Object.defineProperty(Q,"assertAbstractType",{enumerable:!0,get:function(){return Xe.assertAbstractType}});Object.defineProperty(Q,"assertCompositeType",{enumerable:!0,get:function(){return Xe.assertCompositeType}});Object.defineProperty(Q,"assertDirective",{enumerable:!0,get:function(){return Xe.assertDirective}});Object.defineProperty(Q,"assertEnumType",{enumerable:!0,get:function(){return Xe.assertEnumType}});Object.defineProperty(Q,"assertEnumValueName",{enumerable:!0,get:function(){return Xe.assertEnumValueName}});Object.defineProperty(Q,"assertInputObjectType",{enumerable:!0,get:function(){return Xe.assertInputObjectType}});Object.defineProperty(Q,"assertInputType",{enumerable:!0,get:function(){return Xe.assertInputType}});Object.defineProperty(Q,"assertInterfaceType",{enumerable:!0,get:function(){return Xe.assertInterfaceType}});Object.defineProperty(Q,"assertLeafType",{enumerable:!0,get:function(){return Xe.assertLeafType}});Object.defineProperty(Q,"assertListType",{enumerable:!0,get:function(){return Xe.assertListType}});Object.defineProperty(Q,"assertName",{enumerable:!0,get:function(){return Xe.assertName}});Object.defineProperty(Q,"assertNamedType",{enumerable:!0,get:function(){return Xe.assertNamedType}});Object.defineProperty(Q,"assertNonNullType",{enumerable:!0,get:function(){return Xe.assertNonNullType}});Object.defineProperty(Q,"assertNullableType",{enumerable:!0,get:function(){return Xe.assertNullableType}});Object.defineProperty(Q,"assertObjectType",{enumerable:!0,get:function(){return Xe.assertObjectType}});Object.defineProperty(Q,"assertOutputType",{enumerable:!0,get:function(){return Xe.assertOutputType}});Object.defineProperty(Q,"assertScalarType",{enumerable:!0,get:function(){return Xe.assertScalarType}});Object.defineProperty(Q,"assertSchema",{enumerable:!0,get:function(){return Xe.assertSchema}});Object.defineProperty(Q,"assertType",{enumerable:!0,get:function(){return Xe.assertType}});Object.defineProperty(Q,"assertUnionType",{enumerable:!0,get:function(){return Xe.assertUnionType}});Object.defineProperty(Q,"assertValidName",{enumerable:!0,get:function(){return Jn.assertValidName}});Object.defineProperty(Q,"assertValidSchema",{enumerable:!0,get:function(){return Xe.assertValidSchema}});Object.defineProperty(Q,"assertWrappingType",{enumerable:!0,get:function(){return Xe.assertWrappingType}});Object.defineProperty(Q,"astFromValue",{enumerable:!0,get:function(){return Jn.astFromValue}});Object.defineProperty(Q,"buildASTSchema",{enumerable:!0,get:function(){return Jn.buildASTSchema}});Object.defineProperty(Q,"buildClientSchema",{enumerable:!0,get:function(){return Jn.buildClientSchema}});Object.defineProperty(Q,"buildSchema",{enumerable:!0,get:function(){return Jn.buildSchema}});Object.defineProperty(Q,"coerceInputValue",{enumerable:!0,get:function(){return Jn.coerceInputValue}});Object.defineProperty(Q,"concatAST",{enumerable:!0,get:function(){return Jn.concatAST}});Object.defineProperty(Q,"createSourceEventStream",{enumerable:!0,get:function(){return Dd.createSourceEventStream}});Object.defineProperty(Q,"defaultFieldResolver",{enumerable:!0,get:function(){return Dd.defaultFieldResolver}});Object.defineProperty(Q,"defaultTypeResolver",{enumerable:!0,get:function(){return Dd.defaultTypeResolver}});Object.defineProperty(Q,"doTypesOverlap",{enumerable:!0,get:function(){return Jn.doTypesOverlap}});Object.defineProperty(Q,"execute",{enumerable:!0,get:function(){return Dd.execute}});Object.defineProperty(Q,"executeSync",{enumerable:!0,get:function(){return Dd.executeSync}});Object.defineProperty(Q,"extendSchema",{enumerable:!0,get:function(){return Jn.extendSchema}});Object.defineProperty(Q,"findBreakingChanges",{enumerable:!0,get:function(){return Jn.findBreakingChanges}});Object.defineProperty(Q,"findDangerousChanges",{enumerable:!0,get:function(){return Jn.findDangerousChanges}});Object.defineProperty(Q,"formatError",{enumerable:!0,get:function(){return c2.formatError}});Object.defineProperty(Q,"getArgumentValues",{enumerable:!0,get:function(){return Dd.getArgumentValues}});Object.defineProperty(Q,"getDirectiveValues",{enumerable:!0,get:function(){return Dd.getDirectiveValues}});Object.defineProperty(Q,"getEnterLeaveForKind",{enumerable:!0,get:function(){return zn.getEnterLeaveForKind}});Object.defineProperty(Q,"getIntrospectionQuery",{enumerable:!0,get:function(){return Jn.getIntrospectionQuery}});Object.defineProperty(Q,"getLocation",{enumerable:!0,get:function(){return zn.getLocation}});Object.defineProperty(Q,"getNamedType",{enumerable:!0,get:function(){return Xe.getNamedType}});Object.defineProperty(Q,"getNullableType",{enumerable:!0,get:function(){return Xe.getNullableType}});Object.defineProperty(Q,"getOperationAST",{enumerable:!0,get:function(){return Jn.getOperationAST}});Object.defineProperty(Q,"getOperationRootType",{enumerable:!0,get:function(){return Jn.getOperationRootType}});Object.defineProperty(Q,"getVariableValues",{enumerable:!0,get:function(){return Dd.getVariableValues}});Object.defineProperty(Q,"getVisitFn",{enumerable:!0,get:function(){return zn.getVisitFn}});Object.defineProperty(Q,"graphql",{enumerable:!0,get:function(){return T1e.graphql}});Object.defineProperty(Q,"graphqlSync",{enumerable:!0,get:function(){return T1e.graphqlSync}});Object.defineProperty(Q,"introspectionFromSchema",{enumerable:!0,get:function(){return Jn.introspectionFromSchema}});Object.defineProperty(Q,"introspectionTypes",{enumerable:!0,get:function(){return Xe.introspectionTypes}});Object.defineProperty(Q,"isAbstractType",{enumerable:!0,get:function(){return Xe.isAbstractType}});Object.defineProperty(Q,"isCompositeType",{enumerable:!0,get:function(){return Xe.isCompositeType}});Object.defineProperty(Q,"isConstValueNode",{enumerable:!0,get:function(){return zn.isConstValueNode}});Object.defineProperty(Q,"isDefinitionNode",{enumerable:!0,get:function(){return zn.isDefinitionNode}});Object.defineProperty(Q,"isDirective",{enumerable:!0,get:function(){return Xe.isDirective}});Object.defineProperty(Q,"isEnumType",{enumerable:!0,get:function(){return Xe.isEnumType}});Object.defineProperty(Q,"isEqualType",{enumerable:!0,get:function(){return Jn.isEqualType}});Object.defineProperty(Q,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return zn.isExecutableDefinitionNode}});Object.defineProperty(Q,"isInputObjectType",{enumerable:!0,get:function(){return Xe.isInputObjectType}});Object.defineProperty(Q,"isInputType",{enumerable:!0,get:function(){return Xe.isInputType}});Object.defineProperty(Q,"isInterfaceType",{enumerable:!0,get:function(){return Xe.isInterfaceType}});Object.defineProperty(Q,"isIntrospectionType",{enumerable:!0,get:function(){return Xe.isIntrospectionType}});Object.defineProperty(Q,"isLeafType",{enumerable:!0,get:function(){return Xe.isLeafType}});Object.defineProperty(Q,"isListType",{enumerable:!0,get:function(){return Xe.isListType}});Object.defineProperty(Q,"isNamedType",{enumerable:!0,get:function(){return Xe.isNamedType}});Object.defineProperty(Q,"isNonNullType",{enumerable:!0,get:function(){return Xe.isNonNullType}});Object.defineProperty(Q,"isNullableType",{enumerable:!0,get:function(){return Xe.isNullableType}});Object.defineProperty(Q,"isObjectType",{enumerable:!0,get:function(){return Xe.isObjectType}});Object.defineProperty(Q,"isOutputType",{enumerable:!0,get:function(){return Xe.isOutputType}});Object.defineProperty(Q,"isRequiredArgument",{enumerable:!0,get:function(){return Xe.isRequiredArgument}});Object.defineProperty(Q,"isRequiredInputField",{enumerable:!0,get:function(){return Xe.isRequiredInputField}});Object.defineProperty(Q,"isScalarType",{enumerable:!0,get:function(){return Xe.isScalarType}});Object.defineProperty(Q,"isSchema",{enumerable:!0,get:function(){return Xe.isSchema}});Object.defineProperty(Q,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return zn.isSchemaCoordinateNode}});Object.defineProperty(Q,"isSelectionNode",{enumerable:!0,get:function(){return zn.isSelectionNode}});Object.defineProperty(Q,"isSpecifiedDirective",{enumerable:!0,get:function(){return Xe.isSpecifiedDirective}});Object.defineProperty(Q,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Xe.isSpecifiedScalarType}});Object.defineProperty(Q,"isType",{enumerable:!0,get:function(){return Xe.isType}});Object.defineProperty(Q,"isTypeDefinitionNode",{enumerable:!0,get:function(){return zn.isTypeDefinitionNode}});Object.defineProperty(Q,"isTypeExtensionNode",{enumerable:!0,get:function(){return zn.isTypeExtensionNode}});Object.defineProperty(Q,"isTypeNode",{enumerable:!0,get:function(){return zn.isTypeNode}});Object.defineProperty(Q,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Jn.isTypeSubTypeOf}});Object.defineProperty(Q,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return zn.isTypeSystemDefinitionNode}});Object.defineProperty(Q,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return zn.isTypeSystemExtensionNode}});Object.defineProperty(Q,"isUnionType",{enumerable:!0,get:function(){return Xe.isUnionType}});Object.defineProperty(Q,"isValidNameError",{enumerable:!0,get:function(){return Jn.isValidNameError}});Object.defineProperty(Q,"isValueNode",{enumerable:!0,get:function(){return zn.isValueNode}});Object.defineProperty(Q,"isWrappingType",{enumerable:!0,get:function(){return Xe.isWrappingType}});Object.defineProperty(Q,"lexicographicSortSchema",{enumerable:!0,get:function(){return Jn.lexicographicSortSchema}});Object.defineProperty(Q,"locatedError",{enumerable:!0,get:function(){return c2.locatedError}});Object.defineProperty(Q,"parse",{enumerable:!0,get:function(){return zn.parse}});Object.defineProperty(Q,"parseConstValue",{enumerable:!0,get:function(){return zn.parseConstValue}});Object.defineProperty(Q,"parseSchemaCoordinate",{enumerable:!0,get:function(){return zn.parseSchemaCoordinate}});Object.defineProperty(Q,"parseType",{enumerable:!0,get:function(){return zn.parseType}});Object.defineProperty(Q,"parseValue",{enumerable:!0,get:function(){return zn.parseValue}});Object.defineProperty(Q,"print",{enumerable:!0,get:function(){return zn.print}});Object.defineProperty(Q,"printError",{enumerable:!0,get:function(){return c2.printError}});Object.defineProperty(Q,"printIntrospectionSchema",{enumerable:!0,get:function(){return Jn.printIntrospectionSchema}});Object.defineProperty(Q,"printLocation",{enumerable:!0,get:function(){return zn.printLocation}});Object.defineProperty(Q,"printSchema",{enumerable:!0,get:function(){return Jn.printSchema}});Object.defineProperty(Q,"printSourceLocation",{enumerable:!0,get:function(){return zn.printSourceLocation}});Object.defineProperty(Q,"printType",{enumerable:!0,get:function(){return Jn.printType}});Object.defineProperty(Q,"recommendedRules",{enumerable:!0,get:function(){return Hr.recommendedRules}});Object.defineProperty(Q,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return Jn.resolveASTSchemaCoordinate}});Object.defineProperty(Q,"resolveObjMapThunk",{enumerable:!0,get:function(){return Xe.resolveObjMapThunk}});Object.defineProperty(Q,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return Xe.resolveReadonlyArrayThunk}});Object.defineProperty(Q,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return Jn.resolveSchemaCoordinate}});Object.defineProperty(Q,"responsePathAsArray",{enumerable:!0,get:function(){return Dd.responsePathAsArray}});Object.defineProperty(Q,"separateOperations",{enumerable:!0,get:function(){return Jn.separateOperations}});Object.defineProperty(Q,"specifiedDirectives",{enumerable:!0,get:function(){return Xe.specifiedDirectives}});Object.defineProperty(Q,"specifiedRules",{enumerable:!0,get:function(){return Hr.specifiedRules}});Object.defineProperty(Q,"specifiedScalarTypes",{enumerable:!0,get:function(){return Xe.specifiedScalarTypes}});Object.defineProperty(Q,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Jn.stripIgnoredCharacters}});Object.defineProperty(Q,"subscribe",{enumerable:!0,get:function(){return Dd.subscribe}});Object.defineProperty(Q,"syntaxError",{enumerable:!0,get:function(){return c2.syntaxError}});Object.defineProperty(Q,"typeFromAST",{enumerable:!0,get:function(){return Jn.typeFromAST}});Object.defineProperty(Q,"validate",{enumerable:!0,get:function(){return Hr.validate}});Object.defineProperty(Q,"validateSchema",{enumerable:!0,get:function(){return Xe.validateSchema}});Object.defineProperty(Q,"valueFromAST",{enumerable:!0,get:function(){return Jn.valueFromAST}});Object.defineProperty(Q,"valueFromASTUntyped",{enumerable:!0,get:function(){return Jn.valueFromASTUntyped}});Object.defineProperty(Q,"version",{enumerable:!0,get:function(){return E1e.version}});Object.defineProperty(Q,"versionInfo",{enumerable:!0,get:function(){return E1e.versionInfo}});Object.defineProperty(Q,"visit",{enumerable:!0,get:function(){return zn.visit}});Object.defineProperty(Q,"visitInParallel",{enumerable:!0,get:function(){return zn.visitInParallel}});Object.defineProperty(Q,"visitWithTypeInfo",{enumerable:!0,get:function(){return Jn.visitWithTypeInfo}});var E1e=yge(),T1e=lve(),Xe=dve(),zn=fve(),Dd=xve(),Hr=Ave(),c2=Ive(),Jn=x1e()});var qn=L(ja=>{"use strict";var rZ=Symbol.for("yaml.alias"),G1e=Symbol.for("yaml.document"),nN=Symbol.for("yaml.map"),H1e=Symbol.for("yaml.pair"),nZ=Symbol.for("yaml.scalar"),oN=Symbol.for("yaml.seq"),mf=Symbol.for("yaml.node.type"),Qgt=e=>!!e&&typeof e=="object"&&e[mf]===rZ,Xgt=e=>!!e&&typeof e=="object"&&e[mf]===G1e,Ygt=e=>!!e&&typeof e=="object"&&e[mf]===nN,eSt=e=>!!e&&typeof e=="object"&&e[mf]===H1e,Z1e=e=>!!e&&typeof e=="object"&&e[mf]===nZ,tSt=e=>!!e&&typeof e=="object"&&e[mf]===oN;function W1e(e){if(e&&typeof e=="object")switch(e[mf]){case nN:case oN:return!0}return!1}function rSt(e){if(e&&typeof e=="object")switch(e[mf]){case rZ:case nN:case nZ:case oN:return!0}return!1}var nSt=e=>(Z1e(e)||W1e(e))&&!!e.anchor;ja.ALIAS=rZ;ja.DOC=G1e;ja.MAP=nN;ja.NODE_TYPE=mf;ja.PAIR=H1e;ja.SCALAR=nZ;ja.SEQ=oN;ja.hasAnchor=nSt;ja.isAlias=Qgt;ja.isCollection=W1e;ja.isDocument=Xgt;ja.isMap=Ygt;ja.isNode=rSt;ja.isPair=eSt;ja.isScalar=Z1e;ja.isSeq=tSt});var f2=L(oZ=>{"use strict";var oa=qn(),fc=Symbol("break visit"),Q1e=Symbol("skip children"),Ad=Symbol("remove node");function iN(e,t){let r=X1e(t);oa.isDocument(e)?K1(null,e.contents,r,Object.freeze([e]))===Ad&&(e.contents=null):K1(null,e,r,Object.freeze([]))}iN.BREAK=fc;iN.SKIP=Q1e;iN.REMOVE=Ad;function K1(e,t,r,n){let o=Y1e(e,t,r,n);if(oa.isNode(o)||oa.isPair(o))return ebe(e,n,o),K1(e,o,r,n);if(typeof o!="symbol"){if(oa.isCollection(t)){n=Object.freeze(n.concat(t));for(let i=0;i{"use strict";var tbe=qn(),oSt=f2(),iSt={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},aSt=e=>e.replace(/[!,[\]{}]/g,t=>iSt[t]),m2=class e{constructor(t,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,r)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,r){this.atNextDocument&&(this.yaml={explicit:e.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},e.defaultTags),this.atNextDocument=!1);let n=t.trim().split(/[ \t]+/),o=n.shift();switch(o){case"%TAG":{if(n.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[i,a]=n;return this.tags[i]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;let[i]=n;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{let a=/^\d+\.\d+$/.test(i);return r(6,`Unsupported YAML version ${i}`,a),!1}}default:return r(0,`Unknown directive ${o}`,!0),!1}}tagName(t,r){if(t==="!")return"!";if(t[0]!=="!")return r(`Not a valid tag: ${t}`),null;if(t[1]==="<"){let a=t.slice(2,-1);return a==="!"||a==="!!"?(r(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&r("Verbatim tags must end with a >"),a)}let[,n,o]=t.match(/^(.*!)([^!]*)$/s);o||r(`The ${t} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(o)}catch(a){return r(String(a)),null}return n==="!"?t:(r(`Could not resolve tag: ${t}`),null)}tagString(t){for(let[r,n]of Object.entries(this.tags))if(t.startsWith(n))return r+aSt(t.substring(n.length));return t[0]==="!"?t:`!<${t}>`}toString(t){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags),o;if(t&&n.length>0&&tbe.isNode(t.contents)){let i={};oSt.visit(t.contents,(a,s)=>{tbe.isNode(s)&&s.tag&&(i[s.tag]=!0)}),o=Object.keys(i)}else o=[];for(let[i,a]of n)i==="!!"&&a==="tag:yaml.org,2002:"||(!t||o.some(s=>s.startsWith(a)))&&r.push(`%TAG ${i} ${a}`);return r.join(` +`)}};m2.defaultYaml={explicit:!1,version:"1.2"};m2.defaultTags={"!!":"tag:yaml.org,2002:"};rbe.Directives=m2});var sN=L(h2=>{"use strict";var nbe=qn(),sSt=f2();function cSt(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(r)}return!0}function obe(e){let t=new Set;return sSt.visit(e,{Value(r,n){n.anchor&&t.add(n.anchor)}}),t}function ibe(e,t){for(let r=1;;++r){let n=`${e}${r}`;if(!t.has(n))return n}}function lSt(e,t){let r=[],n=new Map,o=null;return{onAnchor:i=>{r.push(i),o??(o=obe(e));let a=ibe(t,o);return o.add(a),a},setAnchors:()=>{for(let i of r){let a=n.get(i);if(typeof a=="object"&&a.anchor&&(nbe.isScalar(a.node)||nbe.isCollection(a.node)))a.node.anchor=a.anchor;else{let s=new Error("Failed to resolve repeated object (this should not happen)");throw s.source=i,s}}},sourceObjects:n}}h2.anchorIsValid=cSt;h2.anchorNames=obe;h2.createNodeAnchors=lSt;h2.findNewAnchor=ibe});var aZ=L(abe=>{"use strict";function y2(e,t,r,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let o=0,i=n.length;o{"use strict";var uSt=qn();function sbe(e,t,r){if(Array.isArray(e))return e.map((n,o)=>sbe(n,String(o),r));if(e&&typeof e.toJSON=="function"){if(!r||!uSt.hasAnchor(e))return e.toJSON(t,r);let n={aliasCount:0,count:1,res:void 0};r.anchors.set(e,n),r.onCreate=i=>{n.res=i,delete r.onCreate};let o=e.toJSON(t,r);return r.onCreate&&r.onCreate(o),o}return typeof e=="bigint"&&!r?.keep?Number(e):e}cbe.toJS=sbe});var cN=L(ube=>{"use strict";var pSt=aZ(),lbe=qn(),dSt=Oh(),sZ=class{constructor(t){Object.defineProperty(this,lbe.NODE_TYPE,{value:t})}clone(){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:r,maxAliasCount:n,onAnchor:o,reviver:i}={}){if(!lbe.isDocument(t))throw new TypeError("A document argument is required");let a={anchors:new Map,doc:t,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},s=dSt.toJS(this,"",a);if(typeof o=="function")for(let{count:c,res:p}of a.anchors.values())o(p,c);return typeof i=="function"?pSt.applyReviver(i,{"":s},"",s):s}};ube.NodeBase=sZ});var g2=L(pbe=>{"use strict";var _St=sN(),fSt=f2(),H1=qn(),mSt=cN(),hSt=Oh(),cZ=class extends mSt.NodeBase{constructor(t){super(H1.ALIAS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,r){let n;r?.aliasResolveCache?n=r.aliasResolveCache:(n=[],fSt.visit(t,{Node:(i,a)=>{(H1.isAlias(a)||H1.hasAnchor(a))&&n.push(a)}}),r&&(r.aliasResolveCache=n));let o;for(let i of n){if(i===this)break;i.anchor===this.source&&(o=i)}return o}toJSON(t,r){if(!r)return{source:this.source};let{anchors:n,doc:o,maxAliasCount:i}=r,a=this.resolve(o,r);if(!a){let c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let s=n.get(a);if(s||(hSt.toJS(a,null,r),s=n.get(a)),s?.res===void 0){let c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(i>=0&&(s.count+=1,s.aliasCount===0&&(s.aliasCount=lN(o,a,n)),s.count*s.aliasCount>i)){let c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return s.res}toString(t,r,n){let o=`*${this.source}`;if(t){if(_St.anchorIsValid(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){let i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${o} `}return o}};function lN(e,t,r){if(H1.isAlias(t)){let n=t.resolve(e),o=r&&n&&r.get(n);return o?o.count*o.aliasCount:0}else if(H1.isCollection(t)){let n=0;for(let o of t.items){let i=lN(e,o,r);i>n&&(n=i)}return n}else if(H1.isPair(t)){let n=lN(e,t.key,r),o=lN(e,t.value,r);return Math.max(n,o)}return 1}pbe.Alias=cZ});var Ji=L(lZ=>{"use strict";var ySt=qn(),gSt=cN(),SSt=Oh(),vSt=e=>!e||typeof e!="function"&&typeof e!="object",Nh=class extends gSt.NodeBase{constructor(t){super(ySt.SCALAR),this.value=t}toJSON(t,r){return r?.keep?this.value:SSt.toJS(this.value,t,r)}toString(){return String(this.value)}};Nh.BLOCK_FOLDED="BLOCK_FOLDED";Nh.BLOCK_LITERAL="BLOCK_LITERAL";Nh.PLAIN="PLAIN";Nh.QUOTE_DOUBLE="QUOTE_DOUBLE";Nh.QUOTE_SINGLE="QUOTE_SINGLE";lZ.Scalar=Nh;lZ.isScalarValue=vSt});var S2=L(_be=>{"use strict";var bSt=g2(),_S=qn(),dbe=Ji(),xSt="tag:yaml.org,2002:";function ESt(e,t,r){if(t){let n=r.filter(i=>i.tag===t),o=n.find(i=>!i.format)??n[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return r.find(n=>n.identify?.(e)&&!n.format)}function TSt(e,t,r){if(_S.isDocument(e)&&(e=e.contents),_S.isNode(e))return e;if(_S.isPair(e)){let f=r.schema[_S.MAP].createNode?.(r.schema,null,r);return f.items.push(e),f}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:n,onAnchor:o,onTagObj:i,schema:a,sourceObjects:s}=r,c;if(n&&e&&typeof e=="object"){if(c=s.get(e),c)return c.anchor??(c.anchor=o(e)),new bSt.Alias(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith("!!")&&(t=xSt+t.slice(2));let p=ESt(e,t,a.tags);if(!p){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){let f=new dbe.Scalar(e);return c&&(c.node=f),f}p=e instanceof Map?a[_S.MAP]:Symbol.iterator in Object(e)?a[_S.SEQ]:a[_S.MAP]}i&&(i(p),delete r.onTagObj);let d=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from=="function"?p.nodeClass.from(r.schema,e,r):new dbe.Scalar(e);return t?d.tag=t:p.default||(d.tag=p.tag),c&&(c.node=d),d}_be.createNode=TSt});var pN=L(uN=>{"use strict";var DSt=S2(),Id=qn(),ASt=cN();function uZ(e,t,r){let n=r;for(let o=t.length-1;o>=0;--o){let i=t[o];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){let a=[];a[i]=n,n=a}else n=new Map([[i,n]])}return DSt.createNode(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}var fbe=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done,pZ=class extends ASt.NodeBase{constructor(t,r){super(t),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(t){let r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(r.schema=t),r.items=r.items.map(n=>Id.isNode(n)||Id.isPair(n)?n.clone(t):n),this.range&&(r.range=this.range.slice()),r}addIn(t,r){if(fbe(t))this.add(r);else{let[n,...o]=t,i=this.get(n,!0);if(Id.isCollection(i))i.addIn(o,r);else if(i===void 0&&this.schema)this.set(n,uZ(this.schema,o,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}deleteIn(t){let[r,...n]=t;if(n.length===0)return this.delete(r);let o=this.get(r,!0);if(Id.isCollection(o))return o.deleteIn(n);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}getIn(t,r){let[n,...o]=t,i=this.get(n,!0);return o.length===0?!r&&Id.isScalar(i)?i.value:i:Id.isCollection(i)?i.getIn(o,r):void 0}hasAllNullValues(t){return this.items.every(r=>{if(!Id.isPair(r))return!1;let n=r.value;return n==null||t&&Id.isScalar(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(t){let[r,...n]=t;if(n.length===0)return this.has(r);let o=this.get(r,!0);return Id.isCollection(o)?o.hasIn(n):!1}setIn(t,r){let[n,...o]=t;if(o.length===0)this.set(n,r);else{let i=this.get(n,!0);if(Id.isCollection(i))i.setIn(o,r);else if(i===void 0&&this.schema)this.set(n,uZ(this.schema,o,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}};uN.Collection=pZ;uN.collectionFromPath=uZ;uN.isEmptyPath=fbe});var v2=L(dN=>{"use strict";var ISt=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function dZ(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var wSt=(e,t,r)=>e.endsWith(` +`)?dZ(r,t):r.includes(` `)?` -`+uZ(r,t):(e.endsWith(" ")?"":" ")+r;uN.indentComment=uZ;uN.lineComment=ASt;uN.stringifyComment=DSt});var fbe=L(SA=>{"use strict";var wSt="flow",pZ="block",pN="quoted";function ISt(e,t,r="flow",{indentAtStart:n,lineWidth:o=80,minContentWidth:i=20,onFold:a,onOverflow:s}={}){if(!o||o<0)return e;oo-Math.max(2,i)?p.push(0):f=o-n);let m,y,g=!1,S=-1,x=-1,A=-1;r===pZ&&(S=_be(e,S,t.length),S!==-1&&(f=S+c));for(let E;E=e[S+=1];){if(r===pN&&E==="\\"){switch(x=S,e[S+1]){case"x":S+=3;break;case"u":S+=5;break;case"U":S+=9;break;default:S+=1}A=S}if(E===` -`)r===pZ&&(S=_be(e,S,t.length)),f=S+t.length+c,m=void 0;else{if(E===" "&&y&&y!==" "&&y!==` -`&&y!==" "){let C=e[S+1];C&&C!==" "&&C!==` -`&&C!==" "&&(m=S)}if(S>=f)if(m)p.push(m),f=m+c,m=void 0;else if(r===pN){for(;y===" "||y===" ";)y=E,E=e[S+=1],g=!0;let C=S>A+1?S-2:x-1;if(d[C])return e;p.push(C),d[C]=!0,f=C+c,m=void 0}else g=!0}y=E}if(g&&s&&s(),p.length===0)return e;a&&a();let I=e.slice(0,p[0]);for(let E=0;E{"use strict";var Yu=Vi(),Ph=fbe(),_N=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),fN=e=>/^(%|---|\.\.\.)/m.test(e);function kSt(e,t,r){if(!t||t<0)return!1;let n=t-r,o=e.length;if(o<=n)return!1;for(let i=0,a=0;in)return!0;if(a=i+1,o-a<=n)return!1}return!0}function vA(e,t){let r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;let{implicitKey:n}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(fN(e)?" ":""),a="",s=0;for(let c=0,p=r[c];p;p=r[++c])if(p===" "&&r[c+1]==="\\"&&r[c+2]==="n"&&(a+=r.slice(s,c)+"\\ ",c+=1,s=c,p="\\"),p==="\\")switch(r[c+1]){case"u":{a+=r.slice(s,c);let d=r.substr(c+2,4);switch(d){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:d.substr(0,2)==="00"?a+="\\x"+d.substr(2):a+=r.substr(c,6)}c+=5,s=c+1}break;case"n":if(n||r[c+2]==='"'||r.length{"use strict";var kSt="flow",_Z="block",_N="quoted";function CSt(e,t,r="flow",{indentAtStart:n,lineWidth:o=80,minContentWidth:i=20,onFold:a,onOverflow:s}={}){if(!o||o<0)return e;oo-Math.max(2,i)?p.push(0):f=o-n);let m,y,g=!1,S=-1,b=-1,E=-1;r===_Z&&(S=mbe(e,S,t.length),S!==-1&&(f=S+c));for(let T;T=e[S+=1];){if(r===_N&&T==="\\"){switch(b=S,e[S+1]){case"x":S+=3;break;case"u":S+=5;break;case"U":S+=9;break;default:S+=1}E=S}if(T===` +`)r===_Z&&(S=mbe(e,S,t.length)),f=S+t.length+c,m=void 0;else{if(T===" "&&y&&y!==" "&&y!==` +`&&y!==" "){let k=e[S+1];k&&k!==" "&&k!==` +`&&k!==" "&&(m=S)}if(S>=f)if(m)p.push(m),f=m+c,m=void 0;else if(r===_N){for(;y===" "||y===" ";)y=T,T=e[S+=1],g=!0;let k=S>E+1?S-2:b-1;if(d[k])return e;p.push(k),d[k]=!0,f=k+c,m=void 0}else g=!0}y=T}if(g&&s&&s(),p.length===0)return e;a&&a();let I=e.slice(0,p[0]);for(let T=0;T{"use strict";var ep=Ji(),Fh=hbe(),mN=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),hN=e=>/^(%|---|\.\.\.)/m.test(e);function PSt(e,t,r){if(!t||t<0)return!1;let n=t-r,o=e.length;if(o<=n)return!1;for(let i=0,a=0;in)return!0;if(a=i+1,o-a<=n)return!1}return!0}function x2(e,t){let r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;let{implicitKey:n}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(hN(e)?" ":""),a="",s=0;for(let c=0,p=r[c];p;p=r[++c])if(p===" "&&r[c+1]==="\\"&&r[c+2]==="n"&&(a+=r.slice(s,c)+"\\ ",c+=1,s=c,p="\\"),p==="\\")switch(r[c+1]){case"u":{a+=r.slice(s,c);let d=r.substr(c+2,4);switch(d){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:d.substr(0,2)==="00"?a+="\\x"+d.substr(2):a+=r.substr(c,6)}c+=5,s=c+1}break;case"n":if(n||r[c+2]==='"'||r.length `;let f,m;for(m=r.length;m>0;--m){let F=r[m-1];if(F!==` `&&F!==" "&&F!==" ")break}let y=r.substring(m),g=y.indexOf(` `);g===-1?f="-":r===y||g!==y.length-1?(f="+",i&&i()):f="",y&&(r=r.slice(0,-y.length),y[y.length-1]===` -`&&(y=y.slice(0,-1)),y=y.replace(_Z,`$&${p}`));let S=!1,x,A=-1;for(x=0;x{O=!0});let N=Ph.foldFlowLines(`${I}${F}${y}`,p,Ph.FOLD_BLOCK,$);if(!O)return`>${C} -${p}${N}`}return r=r.replace(/\n+/g,`$&${p}`),`|${C} -${p}${I}${r}${y}`}function CSt(e,t,r,n){let{type:o,value:i}=e,{actualString:a,implicitKey:s,indent:c,indentStep:p,inFlow:d}=t;if(s&&i.includes(` -`)||d&&/[[\]{},]/.test(i))return K1(i,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return s||d||!i.includes(` -`)?K1(i,t):dN(e,t,r,n);if(!s&&!d&&o!==Yu.Scalar.PLAIN&&i.includes(` -`))return dN(e,t,r,n);if(fN(i)){if(c==="")return t.forceBlockIndent=!0,dN(e,t,r,n);if(s&&c===p)return K1(i,t)}let f=i.replace(/\n+/g,`$& -${c}`);if(a){let m=S=>S.default&&S.tag!=="tag:yaml.org,2002:str"&&S.test?.test(f),{compat:y,tags:g}=t.doc.schema;if(g.some(m)||y?.some(m))return K1(i,t)}return s?f:Ph.foldFlowLines(f,c,Ph.FOLD_FLOW,_N(t,!1))}function PSt(e,t,r,n){let{implicitKey:o,inFlow:i}=t,a=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==Yu.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(s=Yu.Scalar.QUOTE_DOUBLE);let c=d=>{switch(d){case Yu.Scalar.BLOCK_FOLDED:case Yu.Scalar.BLOCK_LITERAL:return o||i?K1(a.value,t):dN(a,t,r,n);case Yu.Scalar.QUOTE_DOUBLE:return vA(a.value,t);case Yu.Scalar.QUOTE_SINGLE:return dZ(a.value,t);case Yu.Scalar.PLAIN:return CSt(a,t,r,n);default:return null}},p=c(s);if(p===null){let{defaultKeyType:d,defaultStringType:f}=t.options,m=o&&d||f;if(p=c(m),p===null)throw new Error(`Unsupported default string type ${m}`)}return p}mbe.stringifyString=PSt});var xA=L(fZ=>{"use strict";var OSt=iN(),Oh=qn(),NSt=gA(),FSt=bA();function RSt(e,t){let r=Object.assign({blockQuote:!0,commentString:NSt.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t),n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function LSt(e,t){if(t.tag){let o=e.filter(i=>i.tag===t.tag);if(o.length>0)return o.find(i=>i.format===t.format)??o[0]}let r,n;if(Oh.isScalar(t)){n=t.value;let o=e.filter(i=>i.identify?.(n));if(o.length>1){let i=o.filter(a=>a.test);i.length>0&&(o=i)}r=o.find(i=>i.format===t.format)??o.find(i=>!i.format)}else n=t,r=e.find(o=>o.nodeClass&&n instanceof o.nodeClass);if(!r){let o=n?.constructor?.name??(n===null?"null":typeof n);throw new Error(`Tag not resolved for ${o} value`)}return r}function $St(e,t,{anchors:r,doc:n}){if(!n.directives)return"";let o=[],i=(Oh.isScalar(e)||Oh.isCollection(e))&&e.anchor;i&&OSt.anchorIsValid(i)&&(r.add(i),o.push(`&${i}`));let a=e.tag??(t.default?null:t.tag);return a&&o.push(n.directives.tagString(a)),o.join(" ")}function MSt(e,t,r,n){if(Oh.isPair(e))return e.toString(t,r,n);if(Oh.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o,i=Oh.isNode(e)?e:t.doc.createNode(e,{onTagObj:c=>o=c});o??(o=LSt(t.doc.schema.tags,i));let a=$St(i,o,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);let s=typeof o.stringify=="function"?o.stringify(i,t,r,n):Oh.isScalar(i)?FSt.stringifyString(i,t,r,n):i.toString(t,r,n);return a?Oh.isScalar(i)||s[0]==="{"||s[0]==="["?`${a} ${s}`:`${a} -${t.indent}${s}`:s}fZ.createStringifyContext=RSt;fZ.stringify=MSt});var Sbe=L(gbe=>{"use strict";var ff=qn(),hbe=Vi(),ybe=xA(),EA=gA();function jSt({key:e,value:t},r,n,o){let{allNullValues:i,doc:a,indent:s,indentStep:c,options:{commentString:p,indentSeq:d,simpleKeys:f}}=r,m=ff.isNode(e)&&e.comment||null;if(f){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(ff.isCollection(e)||!ff.isNode(e)&&typeof e=="object"){let $="With simple keys, collection cannot be used as a key value";throw new Error($)}}let y=!f&&(!e||m&&t==null&&!r.inFlow||ff.isCollection(e)||(ff.isScalar(e)?e.type===hbe.Scalar.BLOCK_FOLDED||e.type===hbe.Scalar.BLOCK_LITERAL:typeof e=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!y&&(f||!i),indent:s+c});let g=!1,S=!1,x=ybe.stringify(e,r,()=>g=!0,()=>S=!0);if(!y&&!r.inFlow&&x.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(r.inFlow){if(i||t==null)return g&&n&&n(),x===""?"?":y?`? ${x}`:x}else if(i&&!f||t==null&&y)return x=`? ${x}`,m&&!g?x+=EA.lineComment(x,r.indent,p(m)):S&&o&&o(),x;g&&(m=null),y?(m&&(x+=EA.lineComment(x,r.indent,p(m))),x=`? ${x} -${s}:`):(x=`${x}:`,m&&(x+=EA.lineComment(x,r.indent,p(m))));let A,I,E;ff.isNode(t)?(A=!!t.spaceBefore,I=t.commentBefore,E=t.comment):(A=!1,I=null,E=null,t&&typeof t=="object"&&(t=a.createNode(t))),r.implicitKey=!1,!y&&!m&&ff.isScalar(t)&&(r.indentAtStart=x.length+1),S=!1,!d&&c.length>=2&&!r.inFlow&&!y&&ff.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor&&(r.indent=r.indent.substring(2));let C=!1,F=ybe.stringify(t,r,()=>C=!0,()=>S=!0),O=" ";if(m||A||I){if(O=A?` +`&&(y=y.slice(0,-1)),y=y.replace(mZ,`$&${p}`));let S=!1,b,E=-1;for(b=0;b{O=!0});let N=Fh.foldFlowLines(`${I}${F}${y}`,p,Fh.FOLD_BLOCK,$);if(!O)return`>${k} +${p}${N}`}return r=r.replace(/\n+/g,`$&${p}`),`|${k} +${p}${I}${r}${y}`}function OSt(e,t,r,n){let{type:o,value:i}=e,{actualString:a,implicitKey:s,indent:c,indentStep:p,inFlow:d}=t;if(s&&i.includes(` +`)||d&&/[[\]{},]/.test(i))return Z1(i,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return s||d||!i.includes(` +`)?Z1(i,t):fN(e,t,r,n);if(!s&&!d&&o!==ep.Scalar.PLAIN&&i.includes(` +`))return fN(e,t,r,n);if(hN(i)){if(c==="")return t.forceBlockIndent=!0,fN(e,t,r,n);if(s&&c===p)return Z1(i,t)}let f=i.replace(/\n+/g,`$& +${c}`);if(a){let m=S=>S.default&&S.tag!=="tag:yaml.org,2002:str"&&S.test?.test(f),{compat:y,tags:g}=t.doc.schema;if(g.some(m)||y?.some(m))return Z1(i,t)}return s?f:Fh.foldFlowLines(f,c,Fh.FOLD_FLOW,mN(t,!1))}function NSt(e,t,r,n){let{implicitKey:o,inFlow:i}=t,a=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==ep.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(s=ep.Scalar.QUOTE_DOUBLE);let c=d=>{switch(d){case ep.Scalar.BLOCK_FOLDED:case ep.Scalar.BLOCK_LITERAL:return o||i?Z1(a.value,t):fN(a,t,r,n);case ep.Scalar.QUOTE_DOUBLE:return x2(a.value,t);case ep.Scalar.QUOTE_SINGLE:return fZ(a.value,t);case ep.Scalar.PLAIN:return OSt(a,t,r,n);default:return null}},p=c(s);if(p===null){let{defaultKeyType:d,defaultStringType:f}=t.options,m=o&&d||f;if(p=c(m),p===null)throw new Error(`Unsupported default string type ${m}`)}return p}ybe.stringifyString=NSt});var T2=L(hZ=>{"use strict";var FSt=sN(),Rh=qn(),RSt=v2(),LSt=E2();function $St(e,t){let r=Object.assign({blockQuote:!0,commentString:RSt.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t),n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function MSt(e,t){if(t.tag){let o=e.filter(i=>i.tag===t.tag);if(o.length>0)return o.find(i=>i.format===t.format)??o[0]}let r,n;if(Rh.isScalar(t)){n=t.value;let o=e.filter(i=>i.identify?.(n));if(o.length>1){let i=o.filter(a=>a.test);i.length>0&&(o=i)}r=o.find(i=>i.format===t.format)??o.find(i=>!i.format)}else n=t,r=e.find(o=>o.nodeClass&&n instanceof o.nodeClass);if(!r){let o=n?.constructor?.name??(n===null?"null":typeof n);throw new Error(`Tag not resolved for ${o} value`)}return r}function jSt(e,t,{anchors:r,doc:n}){if(!n.directives)return"";let o=[],i=(Rh.isScalar(e)||Rh.isCollection(e))&&e.anchor;i&&FSt.anchorIsValid(i)&&(r.add(i),o.push(`&${i}`));let a=e.tag??(t.default?null:t.tag);return a&&o.push(n.directives.tagString(a)),o.join(" ")}function BSt(e,t,r,n){if(Rh.isPair(e))return e.toString(t,r,n);if(Rh.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o,i=Rh.isNode(e)?e:t.doc.createNode(e,{onTagObj:c=>o=c});o??(o=MSt(t.doc.schema.tags,i));let a=jSt(i,o,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);let s=typeof o.stringify=="function"?o.stringify(i,t,r,n):Rh.isScalar(i)?LSt.stringifyString(i,t,r,n):i.toString(t,r,n);return a?Rh.isScalar(i)||s[0]==="{"||s[0]==="["?`${a} ${s}`:`${a} +${t.indent}${s}`:s}hZ.createStringifyContext=$St;hZ.stringify=BSt});var bbe=L(vbe=>{"use strict";var hf=qn(),gbe=Ji(),Sbe=T2(),D2=v2();function qSt({key:e,value:t},r,n,o){let{allNullValues:i,doc:a,indent:s,indentStep:c,options:{commentString:p,indentSeq:d,simpleKeys:f}}=r,m=hf.isNode(e)&&e.comment||null;if(f){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(hf.isCollection(e)||!hf.isNode(e)&&typeof e=="object"){let $="With simple keys, collection cannot be used as a key value";throw new Error($)}}let y=!f&&(!e||m&&t==null&&!r.inFlow||hf.isCollection(e)||(hf.isScalar(e)?e.type===gbe.Scalar.BLOCK_FOLDED||e.type===gbe.Scalar.BLOCK_LITERAL:typeof e=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!y&&(f||!i),indent:s+c});let g=!1,S=!1,b=Sbe.stringify(e,r,()=>g=!0,()=>S=!0);if(!y&&!r.inFlow&&b.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(r.inFlow){if(i||t==null)return g&&n&&n(),b===""?"?":y?`? ${b}`:b}else if(i&&!f||t==null&&y)return b=`? ${b}`,m&&!g?b+=D2.lineComment(b,r.indent,p(m)):S&&o&&o(),b;g&&(m=null),y?(m&&(b+=D2.lineComment(b,r.indent,p(m))),b=`? ${b} +${s}:`):(b=`${b}:`,m&&(b+=D2.lineComment(b,r.indent,p(m))));let E,I,T;hf.isNode(t)?(E=!!t.spaceBefore,I=t.commentBefore,T=t.comment):(E=!1,I=null,T=null,t&&typeof t=="object"&&(t=a.createNode(t))),r.implicitKey=!1,!y&&!m&&hf.isScalar(t)&&(r.indentAtStart=b.length+1),S=!1,!d&&c.length>=2&&!r.inFlow&&!y&&hf.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor&&(r.indent=r.indent.substring(2));let k=!1,F=Sbe.stringify(t,r,()=>k=!0,()=>S=!0),O=" ";if(m||E||I){if(O=E?` `:"",I){let $=p(I);O+=` -${EA.indentComment($,r.indent)}`}F===""&&!r.inFlow?O===` -`&&E&&(O=` +${D2.indentComment($,r.indent)}`}F===""&&!r.inFlow?O===` +`&&T&&(O=` `):O+=` -${r.indent}`}else if(!y&&ff.isCollection(t)){let $=F[0],N=F.indexOf(` +${r.indent}`}else if(!y&&hf.isCollection(t)){let $=F[0],N=F.indexOf(` `),U=N!==-1,ge=r.inFlow??t.flow??t.items.length===0;if(U||!ge){let Te=!1;if(U&&($==="&"||$==="!")){let ke=F.indexOf(" ");$==="&"&&ke!==-1&&ke{"use strict";var vbe=_l("process");function BSt(e,...t){e==="debug"&&console.log(...t)}function qSt(e,t){(e==="debug"||e==="warn")&&(typeof vbe.emitWarning=="function"?vbe.emitWarning(t):console.warn(t))}mZ.debug=BSt;mZ.warn=qSt});var gN=L(yN=>{"use strict";var TA=qn(),bbe=Vi(),mN="<<",hN={identify:e=>e===mN||typeof e=="symbol"&&e.description===mN,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new bbe.Scalar(Symbol(mN)),{addToJSMap:xbe}),stringify:()=>mN},USt=(e,t)=>(hN.identify(t)||TA.isScalar(t)&&(!t.type||t.type===bbe.Scalar.PLAIN)&&hN.identify(t.value))&&e?.doc.schema.tags.some(r=>r.tag===hN.tag&&r.default);function xbe(e,t,r){if(r=e&&TA.isAlias(r)?r.resolve(e.doc):r,TA.isSeq(r))for(let n of r.items)yZ(e,t,n);else if(Array.isArray(r))for(let n of r)yZ(e,t,n);else yZ(e,t,r)}function yZ(e,t,r){let n=e&&TA.isAlias(r)?r.resolve(e.doc):r;if(!TA.isMap(n))throw new Error("Merge sources must be maps or map aliases");let o=n.toJSON(null,e,Map);for(let[i,a]of o)t instanceof Map?t.has(i)||t.set(i,a):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:a,writable:!0,enumerable:!0,configurable:!0});return t}yN.addMergeToJSMap=xbe;yN.isMergeKey=USt;yN.merge=hN});var SZ=L(Dbe=>{"use strict";var zSt=hZ(),Ebe=gN(),VSt=xA(),Tbe=qn(),gZ=kh();function JSt(e,t,{key:r,value:n}){if(Tbe.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,n);else if(Ebe.isMergeKey(e,r))Ebe.addMergeToJSMap(e,t,n);else{let o=gZ.toJS(r,"",e);if(t instanceof Map)t.set(o,gZ.toJS(n,o,e));else if(t instanceof Set)t.add(o);else{let i=KSt(r,o,e),a=gZ.toJS(n,i,e);i in t?Object.defineProperty(t,i,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[i]=a}}return t}function KSt(e,t,r){if(t===null)return"";if(typeof t!="object")return String(t);if(Tbe.isNode(e)&&r?.doc){let n=VSt.createStringifyContext(r.doc,{});n.anchors=new Set;for(let i of r.anchors.keys())n.anchors.add(i.anchor);n.inFlow=!0,n.inStringifyKey=!0;let o=e.toString(n);if(!r.mapKeyWarned){let i=JSON.stringify(o);i.length>40&&(i=i.substring(0,36)+'..."'),zSt.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return o}return JSON.stringify(t)}Dbe.addPairToJSMap=JSt});var Nh=L(vZ=>{"use strict";var Abe=yA(),GSt=Sbe(),HSt=SZ(),SN=qn();function ZSt(e,t,r){let n=Abe.createNode(e,void 0,r),o=Abe.createNode(t,void 0,r);return new vN(n,o)}var vN=class e{constructor(t,r=null){Object.defineProperty(this,SN.NODE_TYPE,{value:SN.PAIR}),this.key=t,this.value=r}clone(t){let{key:r,value:n}=this;return SN.isNode(r)&&(r=r.clone(t)),SN.isNode(n)&&(n=n.clone(t)),new e(r,n)}toJSON(t,r){let n=r?.mapAsMap?new Map:{};return HSt.addPairToJSMap(r,n,this)}toString(t,r,n){return t?.doc?GSt.stringifyPair(this,t,r,n):JSON.stringify(this)}};vZ.Pair=vN;vZ.createPair=ZSt});var bZ=L(Ibe=>{"use strict";var uS=qn(),wbe=xA(),bN=gA();function WSt(e,t,r){return(t.inFlow??e.flow?XSt:QSt)(e,t,r)}function QSt({comment:e,items:t},r,{blockItemPrefix:n,flowChars:o,itemIndent:i,onChompKeep:a,onComment:s}){let{indent:c,options:{commentString:p}}=r,d=Object.assign({},r,{indent:i,type:null}),f=!1,m=[];for(let g=0;gx=null,()=>f=!0);x&&(A+=bN.lineComment(A,i,p(x))),f&&x&&(f=!1),m.push(n+A)}let y;if(m.length===0)y=o.start+o.end;else{y=m[0];for(let g=1;g{"use strict";var xbe=fl("process");function USt(e,...t){e==="debug"&&console.log(...t)}function zSt(e,t){(e==="debug"||e==="warn")&&(typeof xbe.emitWarning=="function"?xbe.emitWarning(t):console.warn(t))}yZ.debug=USt;yZ.warn=zSt});var vN=L(SN=>{"use strict";var A2=qn(),Ebe=Ji(),yN="<<",gN={identify:e=>e===yN||typeof e=="symbol"&&e.description===yN,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Ebe.Scalar(Symbol(yN)),{addToJSMap:Tbe}),stringify:()=>yN},JSt=(e,t)=>(gN.identify(t)||A2.isScalar(t)&&(!t.type||t.type===Ebe.Scalar.PLAIN)&&gN.identify(t.value))&&e?.doc.schema.tags.some(r=>r.tag===gN.tag&&r.default);function Tbe(e,t,r){if(r=e&&A2.isAlias(r)?r.resolve(e.doc):r,A2.isSeq(r))for(let n of r.items)SZ(e,t,n);else if(Array.isArray(r))for(let n of r)SZ(e,t,n);else SZ(e,t,r)}function SZ(e,t,r){let n=e&&A2.isAlias(r)?r.resolve(e.doc):r;if(!A2.isMap(n))throw new Error("Merge sources must be maps or map aliases");let o=n.toJSON(null,e,Map);for(let[i,a]of o)t instanceof Map?t.has(i)||t.set(i,a):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:a,writable:!0,enumerable:!0,configurable:!0});return t}SN.addMergeToJSMap=Tbe;SN.isMergeKey=JSt;SN.merge=gN});var bZ=L(Ibe=>{"use strict";var VSt=gZ(),Dbe=vN(),KSt=T2(),Abe=qn(),vZ=Oh();function GSt(e,t,{key:r,value:n}){if(Abe.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,n);else if(Dbe.isMergeKey(e,r))Dbe.addMergeToJSMap(e,t,n);else{let o=vZ.toJS(r,"",e);if(t instanceof Map)t.set(o,vZ.toJS(n,o,e));else if(t instanceof Set)t.add(o);else{let i=HSt(r,o,e),a=vZ.toJS(n,i,e);i in t?Object.defineProperty(t,i,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[i]=a}}return t}function HSt(e,t,r){if(t===null)return"";if(typeof t!="object")return String(t);if(Abe.isNode(e)&&r?.doc){let n=KSt.createStringifyContext(r.doc,{});n.anchors=new Set;for(let i of r.anchors.keys())n.anchors.add(i.anchor);n.inFlow=!0,n.inStringifyKey=!0;let o=e.toString(n);if(!r.mapKeyWarned){let i=JSON.stringify(o);i.length>40&&(i=i.substring(0,36)+'..."'),VSt.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return o}return JSON.stringify(t)}Ibe.addPairToJSMap=GSt});var Lh=L(xZ=>{"use strict";var wbe=S2(),ZSt=bbe(),WSt=bZ(),bN=qn();function QSt(e,t,r){let n=wbe.createNode(e,void 0,r),o=wbe.createNode(t,void 0,r);return new xN(n,o)}var xN=class e{constructor(t,r=null){Object.defineProperty(this,bN.NODE_TYPE,{value:bN.PAIR}),this.key=t,this.value=r}clone(t){let{key:r,value:n}=this;return bN.isNode(r)&&(r=r.clone(t)),bN.isNode(n)&&(n=n.clone(t)),new e(r,n)}toJSON(t,r){let n=r?.mapAsMap?new Map:{};return WSt.addPairToJSMap(r,n,this)}toString(t,r,n){return t?.doc?ZSt.stringifyPair(this,t,r,n):JSON.stringify(this)}};xZ.Pair=xN;xZ.createPair=QSt});var EZ=L(Cbe=>{"use strict";var fS=qn(),kbe=T2(),EN=v2();function XSt(e,t,r){return(t.inFlow??e.flow?e0t:YSt)(e,t,r)}function YSt({comment:e,items:t},r,{blockItemPrefix:n,flowChars:o,itemIndent:i,onChompKeep:a,onComment:s}){let{indent:c,options:{commentString:p}}=r,d=Object.assign({},r,{indent:i,type:null}),f=!1,m=[];for(let g=0;gb=null,()=>f=!0);b&&(E+=EN.lineComment(E,i,p(b))),f&&b&&(f=!1),m.push(n+E)}let y;if(m.length===0)y=o.start+o.end;else{y=m[0];for(let g=1;gx=null);gd||A.includes(` -`))&&(p=!0),f.push(A),d=f.length}let{start:m,end:y}=r;if(f.length===0)return m+y;if(!p){let g=f.reduce((S,x)=>S+x.length+2,2);p=t.options.lineWidth>0&&g>t.options.lineWidth}if(p){let g=m;for(let S of f)g+=S?` +`+EN.indentComment(p(e),c),s&&s()):f&&a&&a(),y}function e0t({items:e},t,{flowChars:r,itemIndent:n}){let{indent:o,indentStep:i,flowCollectionPadding:a,options:{commentString:s}}=t;n+=i;let c=Object.assign({},t,{indent:n,inFlow:!0,type:null}),p=!1,d=0,f=[];for(let g=0;gb=null);gd||E.includes(` +`))&&(p=!0),f.push(E),d=f.length}let{start:m,end:y}=r;if(f.length===0)return m+y;if(!p){let g=f.reduce((S,b)=>S+b.length+2,2);p=t.options.lineWidth>0&&g>t.options.lineWidth}if(p){let g=m;for(let S of f)g+=S?` ${i}${o}${S}`:` `;return`${g} -${o}${y}`}else return`${m}${a}${f.join(" ")}${a}${y}`}function xN({indent:e,options:{commentString:t}},r,n,o){if(n&&o&&(n=n.replace(/^\n+/,"")),n){let i=bN.indentComment(t(n),e);r.push(i.trimStart())}}Ibe.stringifyCollection=WSt});var Rh=L(EZ=>{"use strict";var YSt=bZ(),e0t=SZ(),t0t=lN(),Fh=qn(),EN=Nh(),r0t=Vi();function DA(e,t){let r=Fh.isScalar(t)?t.value:t;for(let n of e)if(Fh.isPair(n)&&(n.key===t||n.key===r||Fh.isScalar(n.key)&&n.key.value===r))return n}var xZ=class extends t0t.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Fh.MAP,t),this.items=[]}static from(t,r,n){let{keepUndefined:o,replacer:i}=n,a=new this(t),s=(c,p)=>{if(typeof i=="function")p=i.call(r,c,p);else if(Array.isArray(i)&&!i.includes(c))return;(p!==void 0||o)&&a.items.push(EN.createPair(c,p,n))};if(r instanceof Map)for(let[c,p]of r)s(c,p);else if(r&&typeof r=="object")for(let c of Object.keys(r))s(c,r[c]);return typeof t.sortMapEntries=="function"&&a.items.sort(t.sortMapEntries),a}add(t,r){let n;Fh.isPair(t)?n=t:!t||typeof t!="object"||!("key"in t)?n=new EN.Pair(t,t?.value):n=new EN.Pair(t.key,t.value);let o=DA(this.items,n.key),i=this.schema?.sortMapEntries;if(o){if(!r)throw new Error(`Key ${n.key} already set`);Fh.isScalar(o.value)&&r0t.isScalarValue(n.value)?o.value.value=n.value:o.value=n.value}else if(i){let a=this.items.findIndex(s=>i(n,s)<0);a===-1?this.items.push(n):this.items.splice(a,0,n)}else this.items.push(n)}delete(t){let r=DA(this.items,t);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(t,r){let o=DA(this.items,t)?.value;return(!r&&Fh.isScalar(o)?o.value:o)??void 0}has(t){return!!DA(this.items,t)}set(t,r){this.add(new EN.Pair(t,r),!0)}toJSON(t,r,n){let o=n?new n:r?.mapAsMap?new Map:{};r?.onCreate&&r.onCreate(o);for(let i of this.items)e0t.addPairToJSMap(r,o,i);return o}toString(t,r,n){if(!t)return JSON.stringify(this);for(let o of this.items)if(!Fh.isPair(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),YSt.stringifyCollection(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:n,onComment:r})}};EZ.YAMLMap=xZ;EZ.findPair=DA});var G1=L(Cbe=>{"use strict";var n0t=qn(),kbe=Rh(),o0t={collection:"map",default:!0,nodeClass:kbe.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){return n0t.isMap(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,r)=>kbe.YAMLMap.from(e,t,r)};Cbe.map=o0t});var Lh=L(Pbe=>{"use strict";var i0t=yA(),a0t=bZ(),s0t=lN(),DN=qn(),c0t=Vi(),l0t=kh(),TZ=class extends s0t.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(DN.SEQ,t),this.items=[]}add(t){this.items.push(t)}delete(t){let r=TN(t);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(t,r){let n=TN(t);if(typeof n!="number")return;let o=this.items[n];return!r&&DN.isScalar(o)?o.value:o}has(t){let r=TN(t);return typeof r=="number"&&r=0?t:null}Pbe.YAMLSeq=TZ});var H1=L(Nbe=>{"use strict";var u0t=qn(),Obe=Lh(),p0t={collection:"seq",default:!0,nodeClass:Obe.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){return u0t.isSeq(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,r)=>Obe.YAMLSeq.from(e,t,r)};Nbe.seq=p0t});var AA=L(Fbe=>{"use strict";var d0t=bA(),_0t={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,n){return t=Object.assign({actualString:!0},t),d0t.stringifyString(e,t,r,n)}};Fbe.string=_0t});var AN=L($be=>{"use strict";var Rbe=Vi(),Lbe={identify:e=>e==null,createNode:()=>new Rbe.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Rbe.Scalar(null),stringify:({source:e},t)=>typeof e=="string"&&Lbe.test.test(e)?e:t.options.nullStr};$be.nullTag=Lbe});var DZ=L(jbe=>{"use strict";var f0t=Vi(),Mbe={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new f0t.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&Mbe.test.test(e)){let n=e[0]==="t"||e[0]==="T";if(t===n)return e}return t?r.options.trueStr:r.options.falseStr}};jbe.boolTag=Mbe});var Z1=L(Bbe=>{"use strict";function m0t({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n=="bigint")return String(n);let o=typeof n=="number"?n:Number(n);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=Object.is(n,-0)?"-0":JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let a=i.indexOf(".");a<0&&(a=i.length,i+=".");let s=t-(i.length-a-1);for(;s-- >0;)i+="0"}return i}Bbe.stringifyNumber=m0t});var wZ=L(wN=>{"use strict";var h0t=Vi(),AZ=Z1(),y0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:AZ.stringifyNumber},g0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():AZ.stringifyNumber(e)}},S0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new h0t.Scalar(parseFloat(e)),r=e.indexOf(".");return r!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-r-1),t},stringify:AZ.stringifyNumber};wN.float=S0t;wN.floatExp=g0t;wN.floatNaN=y0t});var kZ=L(kN=>{"use strict";var qbe=Z1(),IN=e=>typeof e=="bigint"||Number.isInteger(e),IZ=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function Ube(e,t,r){let{value:n}=e;return IN(n)&&n>=0?r+n.toString(t):qbe.stringifyNumber(e)}var v0t={identify:e=>IN(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>IZ(e,2,8,r),stringify:e=>Ube(e,8,"0o")},b0t={identify:IN,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>IZ(e,0,10,r),stringify:qbe.stringifyNumber},x0t={identify:e=>IN(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>IZ(e,2,16,r),stringify:e=>Ube(e,16,"0x")};kN.int=b0t;kN.intHex=x0t;kN.intOct=v0t});var Vbe=L(zbe=>{"use strict";var E0t=G1(),T0t=AN(),D0t=H1(),A0t=AA(),w0t=DZ(),CZ=wZ(),PZ=kZ(),I0t=[E0t.map,D0t.seq,A0t.string,T0t.nullTag,w0t.boolTag,PZ.intOct,PZ.int,PZ.intHex,CZ.floatNaN,CZ.floatExp,CZ.float];zbe.schema=I0t});var Gbe=L(Kbe=>{"use strict";var k0t=Vi(),C0t=G1(),P0t=H1();function Jbe(e){return typeof e=="bigint"||Number.isInteger(e)}var CN=({value:e})=>JSON.stringify(e),O0t=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:CN},{identify:e=>e==null,createNode:()=>new k0t.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:CN},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:CN},{identify:Jbe,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>Jbe(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:CN}],N0t={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},F0t=[C0t.map,P0t.seq].concat(O0t,N0t);Kbe.schema=F0t});var NZ=L(Hbe=>{"use strict";var wA=_l("buffer"),OZ=Vi(),R0t=bA(),L0t={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof wA.Buffer=="function")return wA.Buffer.from(e,"base64");if(typeof atob=="function"){let r=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(r.length);for(let o=0;o{"use strict";var PN=qn(),FZ=Nh(),$0t=Vi(),M0t=Lh();function Zbe(e,t){if(PN.isSeq(e))for(let r=0;r1&&t("Each pair must have its own sequence indicator");let o=n.items[0]||new FZ.Pair(new $0t.Scalar(null));if(n.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${n.commentBefore} +${o}${y}`}else return`${m}${a}${f.join(" ")}${a}${y}`}function TN({indent:e,options:{commentString:t}},r,n,o){if(n&&o&&(n=n.replace(/^\n+/,"")),n){let i=EN.indentComment(t(n),e);r.push(i.trimStart())}}Cbe.stringifyCollection=XSt});var Mh=L(DZ=>{"use strict";var t0t=EZ(),r0t=bZ(),n0t=pN(),$h=qn(),DN=Lh(),o0t=Ji();function I2(e,t){let r=$h.isScalar(t)?t.value:t;for(let n of e)if($h.isPair(n)&&(n.key===t||n.key===r||$h.isScalar(n.key)&&n.key.value===r))return n}var TZ=class extends n0t.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super($h.MAP,t),this.items=[]}static from(t,r,n){let{keepUndefined:o,replacer:i}=n,a=new this(t),s=(c,p)=>{if(typeof i=="function")p=i.call(r,c,p);else if(Array.isArray(i)&&!i.includes(c))return;(p!==void 0||o)&&a.items.push(DN.createPair(c,p,n))};if(r instanceof Map)for(let[c,p]of r)s(c,p);else if(r&&typeof r=="object")for(let c of Object.keys(r))s(c,r[c]);return typeof t.sortMapEntries=="function"&&a.items.sort(t.sortMapEntries),a}add(t,r){let n;$h.isPair(t)?n=t:!t||typeof t!="object"||!("key"in t)?n=new DN.Pair(t,t?.value):n=new DN.Pair(t.key,t.value);let o=I2(this.items,n.key),i=this.schema?.sortMapEntries;if(o){if(!r)throw new Error(`Key ${n.key} already set`);$h.isScalar(o.value)&&o0t.isScalarValue(n.value)?o.value.value=n.value:o.value=n.value}else if(i){let a=this.items.findIndex(s=>i(n,s)<0);a===-1?this.items.push(n):this.items.splice(a,0,n)}else this.items.push(n)}delete(t){let r=I2(this.items,t);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(t,r){let o=I2(this.items,t)?.value;return(!r&&$h.isScalar(o)?o.value:o)??void 0}has(t){return!!I2(this.items,t)}set(t,r){this.add(new DN.Pair(t,r),!0)}toJSON(t,r,n){let o=n?new n:r?.mapAsMap?new Map:{};r?.onCreate&&r.onCreate(o);for(let i of this.items)r0t.addPairToJSMap(r,o,i);return o}toString(t,r,n){if(!t)return JSON.stringify(this);for(let o of this.items)if(!$h.isPair(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),t0t.stringifyCollection(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:n,onComment:r})}};DZ.YAMLMap=TZ;DZ.findPair=I2});var W1=L(Obe=>{"use strict";var i0t=qn(),Pbe=Mh(),a0t={collection:"map",default:!0,nodeClass:Pbe.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){return i0t.isMap(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,r)=>Pbe.YAMLMap.from(e,t,r)};Obe.map=a0t});var jh=L(Nbe=>{"use strict";var s0t=S2(),c0t=EZ(),l0t=pN(),IN=qn(),u0t=Ji(),p0t=Oh(),AZ=class extends l0t.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(IN.SEQ,t),this.items=[]}add(t){this.items.push(t)}delete(t){let r=AN(t);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(t,r){let n=AN(t);if(typeof n!="number")return;let o=this.items[n];return!r&&IN.isScalar(o)?o.value:o}has(t){let r=AN(t);return typeof r=="number"&&r=0?t:null}Nbe.YAMLSeq=AZ});var Q1=L(Rbe=>{"use strict";var d0t=qn(),Fbe=jh(),_0t={collection:"seq",default:!0,nodeClass:Fbe.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){return d0t.isSeq(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,r)=>Fbe.YAMLSeq.from(e,t,r)};Rbe.seq=_0t});var w2=L(Lbe=>{"use strict";var f0t=E2(),m0t={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,n){return t=Object.assign({actualString:!0},t),f0t.stringifyString(e,t,r,n)}};Lbe.string=m0t});var wN=L(jbe=>{"use strict";var $be=Ji(),Mbe={identify:e=>e==null,createNode:()=>new $be.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new $be.Scalar(null),stringify:({source:e},t)=>typeof e=="string"&&Mbe.test.test(e)?e:t.options.nullStr};jbe.nullTag=Mbe});var IZ=L(qbe=>{"use strict";var h0t=Ji(),Bbe={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new h0t.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&Bbe.test.test(e)){let n=e[0]==="t"||e[0]==="T";if(t===n)return e}return t?r.options.trueStr:r.options.falseStr}};qbe.boolTag=Bbe});var X1=L(Ube=>{"use strict";function y0t({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n=="bigint")return String(n);let o=typeof n=="number"?n:Number(n);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=Object.is(n,-0)?"-0":JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let a=i.indexOf(".");a<0&&(a=i.length,i+=".");let s=t-(i.length-a-1);for(;s-- >0;)i+="0"}return i}Ube.stringifyNumber=y0t});var kZ=L(kN=>{"use strict";var g0t=Ji(),wZ=X1(),S0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:wZ.stringifyNumber},v0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():wZ.stringifyNumber(e)}},b0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new g0t.Scalar(parseFloat(e)),r=e.indexOf(".");return r!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-r-1),t},stringify:wZ.stringifyNumber};kN.float=b0t;kN.floatExp=v0t;kN.floatNaN=S0t});var PZ=L(PN=>{"use strict";var zbe=X1(),CN=e=>typeof e=="bigint"||Number.isInteger(e),CZ=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function Jbe(e,t,r){let{value:n}=e;return CN(n)&&n>=0?r+n.toString(t):zbe.stringifyNumber(e)}var x0t={identify:e=>CN(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>CZ(e,2,8,r),stringify:e=>Jbe(e,8,"0o")},E0t={identify:CN,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>CZ(e,0,10,r),stringify:zbe.stringifyNumber},T0t={identify:e=>CN(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>CZ(e,2,16,r),stringify:e=>Jbe(e,16,"0x")};PN.int=E0t;PN.intHex=T0t;PN.intOct=x0t});var Kbe=L(Vbe=>{"use strict";var D0t=W1(),A0t=wN(),I0t=Q1(),w0t=w2(),k0t=IZ(),OZ=kZ(),NZ=PZ(),C0t=[D0t.map,I0t.seq,w0t.string,A0t.nullTag,k0t.boolTag,NZ.intOct,NZ.int,NZ.intHex,OZ.floatNaN,OZ.floatExp,OZ.float];Vbe.schema=C0t});var Zbe=L(Hbe=>{"use strict";var P0t=Ji(),O0t=W1(),N0t=Q1();function Gbe(e){return typeof e=="bigint"||Number.isInteger(e)}var ON=({value:e})=>JSON.stringify(e),F0t=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:ON},{identify:e=>e==null,createNode:()=>new P0t.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ON},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:ON},{identify:Gbe,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>Gbe(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:ON}],R0t={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},L0t=[O0t.map,N0t.seq].concat(F0t,R0t);Hbe.schema=L0t});var RZ=L(Wbe=>{"use strict";var k2=fl("buffer"),FZ=Ji(),$0t=E2(),M0t={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof k2.Buffer=="function")return k2.Buffer.from(e,"base64");if(typeof atob=="function"){let r=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(r.length);for(let o=0;o{"use strict";var NN=qn(),LZ=Lh(),j0t=Ji(),B0t=jh();function Qbe(e,t){if(NN.isSeq(e))for(let r=0;r1&&t("Each pair must have its own sequence indicator");let o=n.items[0]||new LZ.Pair(new j0t.Scalar(null));if(n.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${n.commentBefore} ${o.key.commentBefore}`:n.commentBefore),n.comment){let i=o.value??o.key;i.comment=i.comment?`${n.comment} -${i.comment}`:n.comment}n=o}e.items[r]=PN.isPair(n)?n:new FZ.Pair(n)}}else t("Expected a sequence for this tag");return e}function Wbe(e,t,r){let{replacer:n}=r,o=new M0t.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let a of t){typeof n=="function"&&(a=n.call(t,String(i++),a));let s,c;if(Array.isArray(a))if(a.length===2)s=a[0],c=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){let p=Object.keys(a);if(p.length===1)s=p[0],c=a[s];else throw new TypeError(`Expected tuple with one key, not ${p.length} keys`)}else s=a;o.items.push(FZ.createPair(s,c,r))}return o}var j0t={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Zbe,createNode:Wbe};ON.createPairs=Wbe;ON.pairs=j0t;ON.resolvePairs=Zbe});var $Z=L(LZ=>{"use strict";var Qbe=qn(),RZ=kh(),IA=Rh(),B0t=Lh(),Xbe=NN(),pS=class e extends B0t.YAMLSeq{constructor(){super(),this.add=IA.YAMLMap.prototype.add.bind(this),this.delete=IA.YAMLMap.prototype.delete.bind(this),this.get=IA.YAMLMap.prototype.get.bind(this),this.has=IA.YAMLMap.prototype.has.bind(this),this.set=IA.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(t,r){if(!r)return super.toJSON(t);let n=new Map;r?.onCreate&&r.onCreate(n);for(let o of this.items){let i,a;if(Qbe.isPair(o)?(i=RZ.toJS(o.key,"",r),a=RZ.toJS(o.value,i,r)):i=RZ.toJS(o,"",r),n.has(i))throw new Error("Ordered maps must not include duplicate keys");n.set(i,a)}return n}static from(t,r,n){let o=Xbe.createPairs(t,r,n),i=new this;return i.items=o.items,i}};pS.tag="tag:yaml.org,2002:omap";var q0t={collection:"seq",identify:e=>e instanceof Map,nodeClass:pS,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let r=Xbe.resolvePairs(e,t),n=[];for(let{key:o}of r.items)Qbe.isScalar(o)&&(n.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):n.push(o.value));return Object.assign(new pS,r)},createNode:(e,t,r)=>pS.from(e,t,r)};LZ.YAMLOMap=pS;LZ.omap=q0t});var nxe=L(MZ=>{"use strict";var Ybe=Vi();function exe({value:e,source:t},r){return t&&(e?txe:rxe).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}var txe={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Ybe.Scalar(!0),stringify:exe},rxe={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Ybe.Scalar(!1),stringify:exe};MZ.falseTag=rxe;MZ.trueTag=txe});var oxe=L(FN=>{"use strict";var U0t=Vi(),jZ=Z1(),z0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:jZ.stringifyNumber},V0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():jZ.stringifyNumber(e)}},J0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new U0t.Scalar(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(r!==-1){let n=e.substring(r+1).replace(/_/g,"");n[n.length-1]==="0"&&(t.minFractionDigits=n.length)}return t},stringify:jZ.stringifyNumber};FN.float=J0t;FN.floatExp=V0t;FN.floatNaN=z0t});var axe=L(CA=>{"use strict";var ixe=Z1(),kA=e=>typeof e=="bigint"||Number.isInteger(e);function RN(e,t,r,{intAsBigInt:n}){let o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let a=BigInt(e);return o==="-"?BigInt(-1)*a:a}let i=parseInt(e,r);return o==="-"?-1*i:i}function BZ(e,t,r){let{value:n}=e;if(kA(n)){let o=n.toString(t);return n<0?"-"+r+o.substr(1):r+o}return ixe.stringifyNumber(e)}var K0t={identify:kA,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>RN(e,2,2,r),stringify:e=>BZ(e,2,"0b")},G0t={identify:kA,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>RN(e,1,8,r),stringify:e=>BZ(e,8,"0")},H0t={identify:kA,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>RN(e,0,10,r),stringify:ixe.stringifyNumber},Z0t={identify:kA,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>RN(e,2,16,r),stringify:e=>BZ(e,16,"0x")};CA.int=H0t;CA.intBin=K0t;CA.intHex=Z0t;CA.intOct=G0t});var UZ=L(qZ=>{"use strict";var MN=qn(),LN=Nh(),$N=Rh(),dS=class e extends $N.YAMLMap{constructor(t){super(t),this.tag=e.tag}add(t){let r;MN.isPair(t)?r=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?r=new LN.Pair(t.key,null):r=new LN.Pair(t,null),$N.findPair(this.items,r.key)||this.items.push(r)}get(t,r){let n=$N.findPair(this.items,t);return!r&&MN.isPair(n)?MN.isScalar(n.key)?n.key.value:n.key:n}set(t,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);let n=$N.findPair(this.items,t);n&&!r?this.items.splice(this.items.indexOf(n),1):!n&&r&&this.items.push(new LN.Pair(t))}toJSON(t,r){return super.toJSON(t,r,Set)}toString(t,r,n){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),r,n);throw new Error("Set items must all have null values")}static from(t,r,n){let{replacer:o}=n,i=new this(t);if(r&&Symbol.iterator in Object(r))for(let a of r)typeof o=="function"&&(a=o.call(r,a,a)),i.items.push(LN.createPair(a,null,n));return i}};dS.tag="tag:yaml.org,2002:set";var W0t={collection:"map",identify:e=>e instanceof Set,nodeClass:dS,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>dS.from(e,t,r),resolve(e,t){if(MN.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new dS,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};qZ.YAMLSet=dS;qZ.set=W0t});var VZ=L(jN=>{"use strict";var Q0t=Z1();function zZ(e,t){let r=e[0],n=r==="-"||r==="+"?e.substring(1):e,o=a=>t?BigInt(a):Number(a),i=n.replace(/_/g,"").split(":").reduce((a,s)=>a*o(60)+o(s),o(0));return r==="-"?o(-1)*i:i}function sxe(e){let{value:t}=e,r=a=>a;if(typeof t=="bigint")r=a=>BigInt(a);else if(isNaN(t)||!isFinite(t))return Q0t.stringifyNumber(e);let n="";t<0&&(n="-",t*=r(-1));let o=r(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),n+i.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var X0t={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>zZ(e,r),stringify:sxe},Y0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>zZ(e,!1),stringify:sxe},cxe={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(cxe.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,r,n,o,i,a,s]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0,p=Date.UTC(r,n-1,o,i||0,a||0,s||0,c),d=t[8];if(d&&d!=="Z"){let f=zZ(d,!1);Math.abs(f)<30&&(f*=60),p-=6e4*f}return new Date(p)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};jN.floatTime=Y0t;jN.intTime=X0t;jN.timestamp=cxe});var pxe=L(uxe=>{"use strict";var evt=G1(),tvt=AN(),rvt=H1(),nvt=AA(),ovt=NZ(),lxe=nxe(),JZ=oxe(),BN=axe(),ivt=gN(),avt=$Z(),svt=NN(),cvt=UZ(),KZ=VZ(),lvt=[evt.map,rvt.seq,nvt.string,tvt.nullTag,lxe.trueTag,lxe.falseTag,BN.intBin,BN.intOct,BN.int,BN.intHex,JZ.floatNaN,JZ.floatExp,JZ.float,ovt.binary,ivt.merge,avt.omap,svt.pairs,cvt.set,KZ.intTime,KZ.floatTime,KZ.timestamp];uxe.schema=lvt});var bxe=L(ZZ=>{"use strict";var mxe=G1(),uvt=AN(),hxe=H1(),pvt=AA(),dvt=DZ(),GZ=wZ(),HZ=kZ(),_vt=Vbe(),fvt=Gbe(),yxe=NZ(),PA=gN(),gxe=$Z(),Sxe=NN(),dxe=pxe(),vxe=UZ(),qN=VZ(),_xe=new Map([["core",_vt.schema],["failsafe",[mxe.map,hxe.seq,pvt.string]],["json",fvt.schema],["yaml11",dxe.schema],["yaml-1.1",dxe.schema]]),fxe={binary:yxe.binary,bool:dvt.boolTag,float:GZ.float,floatExp:GZ.floatExp,floatNaN:GZ.floatNaN,floatTime:qN.floatTime,int:HZ.int,intHex:HZ.intHex,intOct:HZ.intOct,intTime:qN.intTime,map:mxe.map,merge:PA.merge,null:uvt.nullTag,omap:gxe.omap,pairs:Sxe.pairs,seq:hxe.seq,set:vxe.set,timestamp:qN.timestamp},mvt={"tag:yaml.org,2002:binary":yxe.binary,"tag:yaml.org,2002:merge":PA.merge,"tag:yaml.org,2002:omap":gxe.omap,"tag:yaml.org,2002:pairs":Sxe.pairs,"tag:yaml.org,2002:set":vxe.set,"tag:yaml.org,2002:timestamp":qN.timestamp};function hvt(e,t,r){let n=_xe.get(t);if(n&&!e)return r&&!n.includes(PA.merge)?n.concat(PA.merge):n.slice();let o=n;if(!o)if(Array.isArray(e))o=[];else{let i=Array.from(_xe.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${i} or define customTags array`)}if(Array.isArray(e))for(let i of e)o=o.concat(i);else typeof e=="function"&&(o=e(o.slice()));return r&&(o=o.concat(PA.merge)),o.reduce((i,a)=>{let s=typeof a=="string"?fxe[a]:a;if(!s){let c=JSON.stringify(a),p=Object.keys(fxe).map(d=>JSON.stringify(d)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${p}`)}return i.includes(s)||i.push(s),i},[])}ZZ.coreKnownTags=mvt;ZZ.getTags=hvt});var XZ=L(xxe=>{"use strict";var WZ=qn(),yvt=G1(),gvt=H1(),Svt=AA(),UN=bxe(),vvt=(e,t)=>e.keyt.key?1:0,QZ=class e{constructor({compat:t,customTags:r,merge:n,resolveKnownTags:o,schema:i,sortMapEntries:a,toStringDefaults:s}){this.compat=Array.isArray(t)?UN.getTags(t,"compat"):t?UN.getTags(null,t):null,this.name=typeof i=="string"&&i||"core",this.knownTags=o?UN.coreKnownTags:{},this.tags=UN.getTags(r,this.name,n),this.toStringOptions=s??null,Object.defineProperty(this,WZ.MAP,{value:yvt.map}),Object.defineProperty(this,WZ.SCALAR,{value:Svt.string}),Object.defineProperty(this,WZ.SEQ,{value:gvt.seq}),this.sortMapEntries=typeof a=="function"?a:a===!0?vvt:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};xxe.Schema=QZ});var Txe=L(Exe=>{"use strict";var bvt=qn(),YZ=xA(),OA=gA();function xvt(e,t){let r=[],n=t.directives===!0;if(t.directives!==!1&&e.directives){let c=e.directives.toString(e);c?(r.push(c),n=!0):e.directives.docStart&&(n=!0)}n&&r.push("---");let o=YZ.createStringifyContext(e,t),{commentString:i}=o.options;if(e.commentBefore){r.length!==1&&r.unshift("");let c=i(e.commentBefore);r.unshift(OA.indentComment(c,""))}let a=!1,s=null;if(e.contents){if(bvt.isNode(e.contents)){if(e.contents.spaceBefore&&n&&r.push(""),e.contents.commentBefore){let d=i(e.contents.commentBefore);r.push(OA.indentComment(d,""))}o.forceBlockIndent=!!e.comment,s=e.contents.comment}let c=s?void 0:()=>a=!0,p=YZ.stringify(e.contents,o,()=>s=null,c);s&&(p+=OA.lineComment(p,"",i(s))),(p[0]==="|"||p[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${p}`:r.push(p)}else r.push(YZ.stringify(e.contents,o));if(e.directives?.docEnd)if(e.comment){let c=i(e.comment);c.includes(` -`)?(r.push("..."),r.push(OA.indentComment(c,""))):r.push(`... ${c}`)}else r.push("...");else{let c=e.comment;c&&a&&(c=c.replace(/^\n+/,"")),c&&((!a||s)&&r[r.length-1]!==""&&r.push(""),r.push(OA.indentComment(i(c),"")))}return r.join(` +${i.comment}`:n.comment}n=o}e.items[r]=NN.isPair(n)?n:new LZ.Pair(n)}}else t("Expected a sequence for this tag");return e}function Xbe(e,t,r){let{replacer:n}=r,o=new B0t.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let a of t){typeof n=="function"&&(a=n.call(t,String(i++),a));let s,c;if(Array.isArray(a))if(a.length===2)s=a[0],c=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){let p=Object.keys(a);if(p.length===1)s=p[0],c=a[s];else throw new TypeError(`Expected tuple with one key, not ${p.length} keys`)}else s=a;o.items.push(LZ.createPair(s,c,r))}return o}var q0t={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Qbe,createNode:Xbe};FN.createPairs=Xbe;FN.pairs=q0t;FN.resolvePairs=Qbe});var jZ=L(MZ=>{"use strict";var Ybe=qn(),$Z=Oh(),C2=Mh(),U0t=jh(),exe=RN(),mS=class e extends U0t.YAMLSeq{constructor(){super(),this.add=C2.YAMLMap.prototype.add.bind(this),this.delete=C2.YAMLMap.prototype.delete.bind(this),this.get=C2.YAMLMap.prototype.get.bind(this),this.has=C2.YAMLMap.prototype.has.bind(this),this.set=C2.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(t,r){if(!r)return super.toJSON(t);let n=new Map;r?.onCreate&&r.onCreate(n);for(let o of this.items){let i,a;if(Ybe.isPair(o)?(i=$Z.toJS(o.key,"",r),a=$Z.toJS(o.value,i,r)):i=$Z.toJS(o,"",r),n.has(i))throw new Error("Ordered maps must not include duplicate keys");n.set(i,a)}return n}static from(t,r,n){let o=exe.createPairs(t,r,n),i=new this;return i.items=o.items,i}};mS.tag="tag:yaml.org,2002:omap";var z0t={collection:"seq",identify:e=>e instanceof Map,nodeClass:mS,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let r=exe.resolvePairs(e,t),n=[];for(let{key:o}of r.items)Ybe.isScalar(o)&&(n.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):n.push(o.value));return Object.assign(new mS,r)},createNode:(e,t,r)=>mS.from(e,t,r)};MZ.YAMLOMap=mS;MZ.omap=z0t});var ixe=L(BZ=>{"use strict";var txe=Ji();function rxe({value:e,source:t},r){return t&&(e?nxe:oxe).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}var nxe={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new txe.Scalar(!0),stringify:rxe},oxe={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new txe.Scalar(!1),stringify:rxe};BZ.falseTag=oxe;BZ.trueTag=nxe});var axe=L(LN=>{"use strict";var J0t=Ji(),qZ=X1(),V0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:qZ.stringifyNumber},K0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():qZ.stringifyNumber(e)}},G0t={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new J0t.Scalar(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(r!==-1){let n=e.substring(r+1).replace(/_/g,"");n[n.length-1]==="0"&&(t.minFractionDigits=n.length)}return t},stringify:qZ.stringifyNumber};LN.float=G0t;LN.floatExp=K0t;LN.floatNaN=V0t});var cxe=L(O2=>{"use strict";var sxe=X1(),P2=e=>typeof e=="bigint"||Number.isInteger(e);function $N(e,t,r,{intAsBigInt:n}){let o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let a=BigInt(e);return o==="-"?BigInt(-1)*a:a}let i=parseInt(e,r);return o==="-"?-1*i:i}function UZ(e,t,r){let{value:n}=e;if(P2(n)){let o=n.toString(t);return n<0?"-"+r+o.substr(1):r+o}return sxe.stringifyNumber(e)}var H0t={identify:P2,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>$N(e,2,2,r),stringify:e=>UZ(e,2,"0b")},Z0t={identify:P2,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>$N(e,1,8,r),stringify:e=>UZ(e,8,"0")},W0t={identify:P2,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>$N(e,0,10,r),stringify:sxe.stringifyNumber},Q0t={identify:P2,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>$N(e,2,16,r),stringify:e=>UZ(e,16,"0x")};O2.int=W0t;O2.intBin=H0t;O2.intHex=Q0t;O2.intOct=Z0t});var JZ=L(zZ=>{"use strict";var BN=qn(),MN=Lh(),jN=Mh(),hS=class e extends jN.YAMLMap{constructor(t){super(t),this.tag=e.tag}add(t){let r;BN.isPair(t)?r=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?r=new MN.Pair(t.key,null):r=new MN.Pair(t,null),jN.findPair(this.items,r.key)||this.items.push(r)}get(t,r){let n=jN.findPair(this.items,t);return!r&&BN.isPair(n)?BN.isScalar(n.key)?n.key.value:n.key:n}set(t,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);let n=jN.findPair(this.items,t);n&&!r?this.items.splice(this.items.indexOf(n),1):!n&&r&&this.items.push(new MN.Pair(t))}toJSON(t,r){return super.toJSON(t,r,Set)}toString(t,r,n){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),r,n);throw new Error("Set items must all have null values")}static from(t,r,n){let{replacer:o}=n,i=new this(t);if(r&&Symbol.iterator in Object(r))for(let a of r)typeof o=="function"&&(a=o.call(r,a,a)),i.items.push(MN.createPair(a,null,n));return i}};hS.tag="tag:yaml.org,2002:set";var X0t={collection:"map",identify:e=>e instanceof Set,nodeClass:hS,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>hS.from(e,t,r),resolve(e,t){if(BN.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new hS,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};zZ.YAMLSet=hS;zZ.set=X0t});var KZ=L(qN=>{"use strict";var Y0t=X1();function VZ(e,t){let r=e[0],n=r==="-"||r==="+"?e.substring(1):e,o=a=>t?BigInt(a):Number(a),i=n.replace(/_/g,"").split(":").reduce((a,s)=>a*o(60)+o(s),o(0));return r==="-"?o(-1)*i:i}function lxe(e){let{value:t}=e,r=a=>a;if(typeof t=="bigint")r=a=>BigInt(a);else if(isNaN(t)||!isFinite(t))return Y0t.stringifyNumber(e);let n="";t<0&&(n="-",t*=r(-1));let o=r(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),n+i.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var evt={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>VZ(e,r),stringify:lxe},tvt={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>VZ(e,!1),stringify:lxe},uxe={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(uxe.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,r,n,o,i,a,s]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0,p=Date.UTC(r,n-1,o,i||0,a||0,s||0,c),d=t[8];if(d&&d!=="Z"){let f=VZ(d,!1);Math.abs(f)<30&&(f*=60),p-=6e4*f}return new Date(p)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};qN.floatTime=tvt;qN.intTime=evt;qN.timestamp=uxe});var _xe=L(dxe=>{"use strict";var rvt=W1(),nvt=wN(),ovt=Q1(),ivt=w2(),avt=RZ(),pxe=ixe(),GZ=axe(),UN=cxe(),svt=vN(),cvt=jZ(),lvt=RN(),uvt=JZ(),HZ=KZ(),pvt=[rvt.map,ovt.seq,ivt.string,nvt.nullTag,pxe.trueTag,pxe.falseTag,UN.intBin,UN.intOct,UN.int,UN.intHex,GZ.floatNaN,GZ.floatExp,GZ.float,avt.binary,svt.merge,cvt.omap,lvt.pairs,uvt.set,HZ.intTime,HZ.floatTime,HZ.timestamp];dxe.schema=pvt});var Exe=L(QZ=>{"use strict";var yxe=W1(),dvt=wN(),gxe=Q1(),_vt=w2(),fvt=IZ(),ZZ=kZ(),WZ=PZ(),mvt=Kbe(),hvt=Zbe(),Sxe=RZ(),N2=vN(),vxe=jZ(),bxe=RN(),fxe=_xe(),xxe=JZ(),zN=KZ(),mxe=new Map([["core",mvt.schema],["failsafe",[yxe.map,gxe.seq,_vt.string]],["json",hvt.schema],["yaml11",fxe.schema],["yaml-1.1",fxe.schema]]),hxe={binary:Sxe.binary,bool:fvt.boolTag,float:ZZ.float,floatExp:ZZ.floatExp,floatNaN:ZZ.floatNaN,floatTime:zN.floatTime,int:WZ.int,intHex:WZ.intHex,intOct:WZ.intOct,intTime:zN.intTime,map:yxe.map,merge:N2.merge,null:dvt.nullTag,omap:vxe.omap,pairs:bxe.pairs,seq:gxe.seq,set:xxe.set,timestamp:zN.timestamp},yvt={"tag:yaml.org,2002:binary":Sxe.binary,"tag:yaml.org,2002:merge":N2.merge,"tag:yaml.org,2002:omap":vxe.omap,"tag:yaml.org,2002:pairs":bxe.pairs,"tag:yaml.org,2002:set":xxe.set,"tag:yaml.org,2002:timestamp":zN.timestamp};function gvt(e,t,r){let n=mxe.get(t);if(n&&!e)return r&&!n.includes(N2.merge)?n.concat(N2.merge):n.slice();let o=n;if(!o)if(Array.isArray(e))o=[];else{let i=Array.from(mxe.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${i} or define customTags array`)}if(Array.isArray(e))for(let i of e)o=o.concat(i);else typeof e=="function"&&(o=e(o.slice()));return r&&(o=o.concat(N2.merge)),o.reduce((i,a)=>{let s=typeof a=="string"?hxe[a]:a;if(!s){let c=JSON.stringify(a),p=Object.keys(hxe).map(d=>JSON.stringify(d)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${p}`)}return i.includes(s)||i.push(s),i},[])}QZ.coreKnownTags=yvt;QZ.getTags=gvt});var eW=L(Txe=>{"use strict";var XZ=qn(),Svt=W1(),vvt=Q1(),bvt=w2(),JN=Exe(),xvt=(e,t)=>e.keyt.key?1:0,YZ=class e{constructor({compat:t,customTags:r,merge:n,resolveKnownTags:o,schema:i,sortMapEntries:a,toStringDefaults:s}){this.compat=Array.isArray(t)?JN.getTags(t,"compat"):t?JN.getTags(null,t):null,this.name=typeof i=="string"&&i||"core",this.knownTags=o?JN.coreKnownTags:{},this.tags=JN.getTags(r,this.name,n),this.toStringOptions=s??null,Object.defineProperty(this,XZ.MAP,{value:Svt.map}),Object.defineProperty(this,XZ.SCALAR,{value:bvt.string}),Object.defineProperty(this,XZ.SEQ,{value:vvt.seq}),this.sortMapEntries=typeof a=="function"?a:a===!0?xvt:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};Txe.Schema=YZ});var Axe=L(Dxe=>{"use strict";var Evt=qn(),tW=T2(),F2=v2();function Tvt(e,t){let r=[],n=t.directives===!0;if(t.directives!==!1&&e.directives){let c=e.directives.toString(e);c?(r.push(c),n=!0):e.directives.docStart&&(n=!0)}n&&r.push("---");let o=tW.createStringifyContext(e,t),{commentString:i}=o.options;if(e.commentBefore){r.length!==1&&r.unshift("");let c=i(e.commentBefore);r.unshift(F2.indentComment(c,""))}let a=!1,s=null;if(e.contents){if(Evt.isNode(e.contents)){if(e.contents.spaceBefore&&n&&r.push(""),e.contents.commentBefore){let d=i(e.contents.commentBefore);r.push(F2.indentComment(d,""))}o.forceBlockIndent=!!e.comment,s=e.contents.comment}let c=s?void 0:()=>a=!0,p=tW.stringify(e.contents,o,()=>s=null,c);s&&(p+=F2.lineComment(p,"",i(s))),(p[0]==="|"||p[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${p}`:r.push(p)}else r.push(tW.stringify(e.contents,o));if(e.directives?.docEnd)if(e.comment){let c=i(e.comment);c.includes(` +`)?(r.push("..."),r.push(F2.indentComment(c,""))):r.push(`... ${c}`)}else r.push("...");else{let c=e.comment;c&&a&&(c=c.replace(/^\n+/,"")),c&&((!a||s)&&r[r.length-1]!==""&&r.push(""),r.push(F2.indentComment(i(c),"")))}return r.join(` `)+` -`}Exe.stringifyDocument=xvt});var NA=L(Dxe=>{"use strict";var Evt=hA(),W1=lN(),Wl=qn(),Tvt=Nh(),Dvt=kh(),Avt=XZ(),wvt=Txe(),eW=iN(),Ivt=oZ(),kvt=yA(),tW=nZ(),rW=class e{constructor(t,r,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Wl.NODE_TYPE,{value:Wl.DOC});let o=null;typeof r=="function"||Array.isArray(r)?o=r:n===void 0&&r&&(n=r,r=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new tW.Directives({version:a}),this.setSchema(a,n),this.contents=t===void 0?null:this.createNode(t,o,n)}clone(){let t=Object.create(e.prototype,{[Wl.NODE_TYPE]:{value:Wl.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Wl.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Q1(this.contents)&&this.contents.add(t)}addIn(t,r){Q1(this.contents)&&this.contents.addIn(t,r)}createAlias(t,r){if(!t.anchor){let n=eW.anchorNames(this);t.anchor=!r||n.has(r)?eW.findNewAnchor(r||"a",n):r}return new Evt.Alias(t.anchor)}createNode(t,r,n){let o;if(typeof r=="function")t=r.call({"":t},"",t),o=r;else if(Array.isArray(r)){let x=I=>typeof I=="number"||I instanceof String||I instanceof Number,A=r.filter(x).map(String);A.length>0&&(r=r.concat(A)),o=r}else n===void 0&&r&&(n=r,r=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:s,keepUndefined:c,onTagObj:p,tag:d}=n??{},{onAnchor:f,setAnchors:m,sourceObjects:y}=eW.createNodeAnchors(this,a||"a"),g={aliasDuplicateObjects:i??!0,keepUndefined:c??!1,onAnchor:f,onTagObj:p,replacer:o,schema:this.schema,sourceObjects:y},S=kvt.createNode(t,d,g);return s&&Wl.isCollection(S)&&(S.flow=!0),m(),S}createPair(t,r,n={}){let o=this.createNode(t,null,n),i=this.createNode(r,null,n);return new Tvt.Pair(o,i)}delete(t){return Q1(this.contents)?this.contents.delete(t):!1}deleteIn(t){return W1.isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):Q1(this.contents)?this.contents.deleteIn(t):!1}get(t,r){return Wl.isCollection(this.contents)?this.contents.get(t,r):void 0}getIn(t,r){return W1.isEmptyPath(t)?!r&&Wl.isScalar(this.contents)?this.contents.value:this.contents:Wl.isCollection(this.contents)?this.contents.getIn(t,r):void 0}has(t){return Wl.isCollection(this.contents)?this.contents.has(t):!1}hasIn(t){return W1.isEmptyPath(t)?this.contents!==void 0:Wl.isCollection(this.contents)?this.contents.hasIn(t):!1}set(t,r){this.contents==null?this.contents=W1.collectionFromPath(this.schema,[t],r):Q1(this.contents)&&this.contents.set(t,r)}setIn(t,r){W1.isEmptyPath(t)?this.contents=r:this.contents==null?this.contents=W1.collectionFromPath(this.schema,Array.from(t),r):Q1(this.contents)&&this.contents.setIn(t,r)}setSchema(t,r={}){typeof t=="number"&&(t=String(t));let n;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new tW.Directives({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new tW.Directives({version:t}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(n)this.schema=new Avt.Schema(Object.assign(n,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:r,mapAsMap:n,maxAliasCount:o,onAnchor:i,reviver:a}={}){let s={anchors:new Map,doc:this,keep:!t,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},c=Dvt.toJS(this.contents,r??"",s);if(typeof i=="function")for(let{count:p,res:d}of s.anchors.values())i(d,p);return typeof a=="function"?Ivt.applyReviver(a,{"":c},"",c):c}toJSON(t,r){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:r})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){let r=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return wvt.stringifyDocument(this,t)}};function Q1(e){if(Wl.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}Dxe.Document=rW});var LA=L(RA=>{"use strict";var FA=class extends Error{constructor(t,r,n,o){super(),this.name=t,this.code=n,this.message=o,this.pos=r}},nW=class extends FA{constructor(t,r,n){super("YAMLParseError",t,r,n)}},oW=class extends FA{constructor(t,r,n){super("YAMLWarning",t,r,n)}},Cvt=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(s=>t.linePos(s));let{line:n,col:o}=r.linePos[0];r.message+=` at line ${n}, column ${o}`;let i=o-1,a=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&a.length>80){let s=Math.min(i-39,a.length-79);a="\u2026"+a.substring(s),i-=s-1}if(a.length>80&&(a=a.substring(0,79)+"\u2026"),n>1&&/^ *$/.test(a.substring(0,i))){let s=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);s.length>80&&(s=s.substring(0,79)+`\u2026 +`}Dxe.stringifyDocument=Tvt});var R2=L(Ixe=>{"use strict";var Dvt=g2(),Y1=pN(),Ql=qn(),Avt=Lh(),Ivt=Oh(),wvt=eW(),kvt=Axe(),rW=sN(),Cvt=aZ(),Pvt=S2(),nW=iZ(),oW=class e{constructor(t,r,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Ql.NODE_TYPE,{value:Ql.DOC});let o=null;typeof r=="function"||Array.isArray(r)?o=r:n===void 0&&r&&(n=r,r=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new nW.Directives({version:a}),this.setSchema(a,n),this.contents=t===void 0?null:this.createNode(t,o,n)}clone(){let t=Object.create(e.prototype,{[Ql.NODE_TYPE]:{value:Ql.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Ql.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){eb(this.contents)&&this.contents.add(t)}addIn(t,r){eb(this.contents)&&this.contents.addIn(t,r)}createAlias(t,r){if(!t.anchor){let n=rW.anchorNames(this);t.anchor=!r||n.has(r)?rW.findNewAnchor(r||"a",n):r}return new Dvt.Alias(t.anchor)}createNode(t,r,n){let o;if(typeof r=="function")t=r.call({"":t},"",t),o=r;else if(Array.isArray(r)){let b=I=>typeof I=="number"||I instanceof String||I instanceof Number,E=r.filter(b).map(String);E.length>0&&(r=r.concat(E)),o=r}else n===void 0&&r&&(n=r,r=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:s,keepUndefined:c,onTagObj:p,tag:d}=n??{},{onAnchor:f,setAnchors:m,sourceObjects:y}=rW.createNodeAnchors(this,a||"a"),g={aliasDuplicateObjects:i??!0,keepUndefined:c??!1,onAnchor:f,onTagObj:p,replacer:o,schema:this.schema,sourceObjects:y},S=Pvt.createNode(t,d,g);return s&&Ql.isCollection(S)&&(S.flow=!0),m(),S}createPair(t,r,n={}){let o=this.createNode(t,null,n),i=this.createNode(r,null,n);return new Avt.Pair(o,i)}delete(t){return eb(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Y1.isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):eb(this.contents)?this.contents.deleteIn(t):!1}get(t,r){return Ql.isCollection(this.contents)?this.contents.get(t,r):void 0}getIn(t,r){return Y1.isEmptyPath(t)?!r&&Ql.isScalar(this.contents)?this.contents.value:this.contents:Ql.isCollection(this.contents)?this.contents.getIn(t,r):void 0}has(t){return Ql.isCollection(this.contents)?this.contents.has(t):!1}hasIn(t){return Y1.isEmptyPath(t)?this.contents!==void 0:Ql.isCollection(this.contents)?this.contents.hasIn(t):!1}set(t,r){this.contents==null?this.contents=Y1.collectionFromPath(this.schema,[t],r):eb(this.contents)&&this.contents.set(t,r)}setIn(t,r){Y1.isEmptyPath(t)?this.contents=r:this.contents==null?this.contents=Y1.collectionFromPath(this.schema,Array.from(t),r):eb(this.contents)&&this.contents.setIn(t,r)}setSchema(t,r={}){typeof t=="number"&&(t=String(t));let n;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new nW.Directives({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new nW.Directives({version:t}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(n)this.schema=new wvt.Schema(Object.assign(n,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:r,mapAsMap:n,maxAliasCount:o,onAnchor:i,reviver:a}={}){let s={anchors:new Map,doc:this,keep:!t,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},c=Ivt.toJS(this.contents,r??"",s);if(typeof i=="function")for(let{count:p,res:d}of s.anchors.values())i(d,p);return typeof a=="function"?Cvt.applyReviver(a,{"":c},"",c):c}toJSON(t,r){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:r})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){let r=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return kvt.stringifyDocument(this,t)}};function eb(e){if(Ql.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}Ixe.Document=oW});var M2=L($2=>{"use strict";var L2=class extends Error{constructor(t,r,n,o){super(),this.name=t,this.code=n,this.message=o,this.pos=r}},iW=class extends L2{constructor(t,r,n){super("YAMLParseError",t,r,n)}},aW=class extends L2{constructor(t,r,n){super("YAMLWarning",t,r,n)}},Ovt=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(s=>t.linePos(s));let{line:n,col:o}=r.linePos[0];r.message+=` at line ${n}, column ${o}`;let i=o-1,a=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&a.length>80){let s=Math.min(i-39,a.length-79);a="\u2026"+a.substring(s),i-=s-1}if(a.length>80&&(a=a.substring(0,79)+"\u2026"),n>1&&/^ *$/.test(a.substring(0,i))){let s=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);s.length>80&&(s=s.substring(0,79)+`\u2026 `),a=s+a}if(/[^ ]/.test(a)){let s=1,c=r.linePos[1];c?.line===n&&c.col>o&&(s=Math.max(1,Math.min(c.col-o,80-i)));let p=" ".repeat(i)+"^".repeat(s);r.message+=`: ${a} ${p} -`}};RA.YAMLError=FA;RA.YAMLParseError=nW;RA.YAMLWarning=oW;RA.prettifyError=Cvt});var $A=L(Axe=>{"use strict";function Pvt(e,{flow:t,indicator:r,next:n,offset:o,onError:i,parentIndent:a,startOnNewline:s}){let c=!1,p=s,d=s,f="",m="",y=!1,g=!1,S=null,x=null,A=null,I=null,E=null,C=null,F=null;for(let N of e)switch(g&&(N.type!=="space"&&N.type!=="newline"&&N.type!=="comma"&&i(N.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),S&&(p&&N.type!=="comment"&&N.type!=="newline"&&i(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),S=null),N.type){case"space":!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&N.source.includes(" ")&&(S=N),d=!0;break;case"comment":{d||i(N,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let U=N.source.substring(1)||" ";f?f+=m+U:f=U,m="",p=!1;break}case"newline":p?f?f+=N.source:(!C||r!=="seq-item-ind")&&(c=!0):m+=N.source,p=!0,y=!0,(x||A)&&(I=N),d=!0;break;case"anchor":x&&i(N,"MULTIPLE_ANCHORS","A node can have at most one anchor"),N.source.endsWith(":")&&i(N.offset+N.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),x=N,F??(F=N.offset),p=!1,d=!1,g=!0;break;case"tag":{A&&i(N,"MULTIPLE_TAGS","A node can have at most one tag"),A=N,F??(F=N.offset),p=!1,d=!1,g=!0;break}case r:(x||A)&&i(N,"BAD_PROP_ORDER",`Anchors and tags must be after the ${N.source} indicator`),C&&i(N,"UNEXPECTED_TOKEN",`Unexpected ${N.source} in ${t??"collection"}`),C=N,p=r==="seq-item-ind"||r==="explicit-key-ind",d=!1;break;case"comma":if(t){E&&i(N,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),E=N,p=!1,d=!1;break}default:i(N,"UNEXPECTED_TOKEN",`Unexpected ${N.type} token`),p=!1,d=!1}let O=e[e.length-1],$=O?O.offset+O.source.length:o;return g&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S&&(p&&S.indent<=a||n?.type==="block-map"||n?.type==="block-seq")&&i(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:E,found:C,spaceBefore:c,comment:f,hasNewline:y,anchor:x,tag:A,newlineAfterProp:I,end:$,start:F??$}}Axe.resolveProps=Pvt});var zN=L(wxe=>{"use strict";function iW(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(` -`))return!0;if(e.end){for(let t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(let t of e.items){for(let r of t.start)if(r.type==="newline")return!0;if(t.sep){for(let r of t.sep)if(r.type==="newline")return!0}if(iW(t.key)||iW(t.value))return!0}return!1;default:return!0}}wxe.containsNewline=iW});var aW=L(Ixe=>{"use strict";var Ovt=zN();function Nvt(e,t,r){if(t?.type==="flow-collection"){let n=t.end[0];n.indent===e&&(n.source==="]"||n.source==="}")&&Ovt.containsNewline(t)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}Ixe.flowIndentCheck=Nvt});var sW=L(Cxe=>{"use strict";var kxe=qn();function Fvt(e,t,r){let{uniqueKeys:n}=e.options;if(n===!1)return!1;let o=typeof n=="function"?n:(i,a)=>i===a||kxe.isScalar(i)&&kxe.isScalar(a)&&i.value===a.value;return t.some(i=>o(i.key,r))}Cxe.mapIncludes=Fvt});var Lxe=L(Rxe=>{"use strict";var Pxe=Nh(),Rvt=Rh(),Oxe=$A(),Lvt=zN(),Nxe=aW(),$vt=sW(),Fxe="All mapping items must start at the same column";function Mvt({composeNode:e,composeEmptyNode:t},r,n,o,i){let a=i?.nodeClass??Rvt.YAMLMap,s=new a(r.schema);r.atRoot&&(r.atRoot=!1);let c=n.offset,p=null;for(let d of n.items){let{start:f,key:m,sep:y,value:g}=d,S=Oxe.resolveProps(f,{indicator:"explicit-key-ind",next:m??y?.[0],offset:c,onError:o,parentIndent:n.indent,startOnNewline:!0}),x=!S.found;if(x){if(m&&(m.type==="block-seq"?o(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in m&&m.indent!==n.indent&&o(c,"BAD_INDENT",Fxe)),!S.anchor&&!S.tag&&!y){p=S.end,S.comment&&(s.comment?s.comment+=` -`+S.comment:s.comment=S.comment);continue}(S.newlineAfterProp||Lvt.containsNewline(m))&&o(m??f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else S.found?.indent!==n.indent&&o(c,"BAD_INDENT",Fxe);r.atKey=!0;let A=S.end,I=m?e(r,m,S,o):t(r,A,f,null,S,o);r.schema.compat&&Nxe.flowIndentCheck(n.indent,m,o),r.atKey=!1,$vt.mapIncludes(r,s.items,I)&&o(A,"DUPLICATE_KEY","Map keys must be unique");let E=Oxe.resolveProps(y??[],{indicator:"map-value-ind",next:g,offset:I.range[2],onError:o,parentIndent:n.indent,startOnNewline:!m||m.type==="block-scalar"});if(c=E.end,E.found){x&&(g?.type==="block-map"&&!E.hasNewline&&o(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&S.start{"use strict";var jvt=Lh(),Bvt=$A(),qvt=aW();function Uvt({composeNode:e,composeEmptyNode:t},r,n,o,i){let a=i?.nodeClass??jvt.YAMLSeq,s=new a(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let c=n.offset,p=null;for(let{start:d,value:f}of n.items){let m=Bvt.resolveProps(d,{indicator:"seq-item-ind",next:f,offset:c,onError:o,parentIndent:n.indent,startOnNewline:!0});if(!m.found)if(m.anchor||m.tag||f)f?.type==="block-seq"?o(m.end,"BAD_INDENT","All sequence items must start at the same column"):o(c,"MISSING_CHAR","Sequence item without - indicator");else{p=m.end,m.comment&&(s.comment=m.comment);continue}let y=f?e(r,f,m,o):t(r,m.end,d,null,m,o);r.schema.compat&&qvt.flowIndentCheck(n.indent,f,o),c=y.range[2],s.items.push(y)}return s.range=[n.offset,c,p??c],s}$xe.resolveBlockSeq=Uvt});var X1=L(jxe=>{"use strict";function zvt(e,t,r,n){let o="";if(e){let i=!1,a="";for(let s of e){let{source:c,type:p}=s;switch(p){case"space":i=!0;break;case"comment":{r&&!i&&n(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let d=c.substring(1)||" ";o?o+=a+d:o=d,a="";break}case"newline":o&&(a+=c),i=!0;break;default:n(s,"UNEXPECTED_TOKEN",`Unexpected ${p} at node end`)}t+=c.length}}return{comment:o,offset:t}}jxe.resolveEnd=zvt});var zxe=L(Uxe=>{"use strict";var Vvt=qn(),Jvt=Nh(),Bxe=Rh(),Kvt=Lh(),Gvt=X1(),qxe=$A(),Hvt=zN(),Zvt=sW(),cW="Block collections are not allowed within flow collections",lW=e=>e&&(e.type==="block-map"||e.type==="block-seq");function Wvt({composeNode:e,composeEmptyNode:t},r,n,o,i){let a=n.start.source==="{",s=a?"flow map":"flow sequence",c=i?.nodeClass??(a?Bxe.YAMLMap:Kvt.YAMLSeq),p=new c(r.schema);p.flow=!0;let d=r.atRoot;d&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let f=n.offset+n.start.source.length;for(let x=0;x0){let x=Gvt.resolveEnd(g,S,r.options.strict,o);x.comment&&(p.comment?p.comment+=` -`+x.comment:p.comment=x.comment),p.range=[n.offset,S,x.offset]}else p.range=[n.offset,S,S];return p}Uxe.resolveFlowCollection=Wvt});var Jxe=L(Vxe=>{"use strict";var Qvt=qn(),Xvt=Vi(),Yvt=Rh(),e1t=Lh(),t1t=Lxe(),r1t=Mxe(),n1t=zxe();function uW(e,t,r,n,o,i){let a=r.type==="block-map"?t1t.resolveBlockMap(e,t,r,n,i):r.type==="block-seq"?r1t.resolveBlockSeq(e,t,r,n,i):n1t.resolveFlowCollection(e,t,r,n,i),s=a.constructor;return o==="!"||o===s.tagName?(a.tag=s.tagName,a):(o&&(a.tag=o),a)}function o1t(e,t,r,n,o){let i=n.tag,a=i?t.directives.tagName(i.source,m=>o(i,"TAG_RESOLVE_FAILED",m)):null;if(r.type==="block-seq"){let{anchor:m,newlineAfterProp:y}=n,g=m&&i?m.offset>i.offset?m:i:m??i;g&&(!y||y.offsetm.tag===a&&m.collection===s);if(!c){let m=t.schema.knownTags[a];if(m?.collection===s)t.schema.tags.push(Object.assign({},m,{default:!1})),c=m;else return m?o(i,"BAD_COLLECTION_TYPE",`${m.tag} used for ${s} collection, but expects ${m.collection??"scalar"}`,!0):o(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),uW(e,t,r,o,a)}let p=uW(e,t,r,o,a,c),d=c.resolve?.(p,m=>o(i,"TAG_RESOLVE_FAILED",m),t.options)??p,f=Qvt.isNode(d)?d:new Xvt.Scalar(d);return f.range=p.range,f.tag=a,c?.format&&(f.format=c.format),f}Vxe.composeCollection=o1t});var dW=L(Kxe=>{"use strict";var pW=Vi();function i1t(e,t,r){let n=t.offset,o=a1t(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[n,n,n]};let i=o.mode===">"?pW.Scalar.BLOCK_FOLDED:pW.Scalar.BLOCK_LITERAL,a=t.source?s1t(t.source):[],s=a.length;for(let S=a.length-1;S>=0;--S){let x=a[S][1];if(x===""||x==="\r")s=S;else break}if(s===0){let S=o.chomp==="+"&&a.length>0?` -`.repeat(Math.max(1,a.length-1)):"",x=n+o.length;return t.source&&(x+=t.source.length),{value:S,type:i,comment:o.comment,range:[n,x,x]}}let c=t.indent+o.indent,p=t.offset+o.length,d=0;for(let S=0;Sc&&(c=x.length);else{x.length=s;--S)a[S][0].length>c&&(s=S+1);let f="",m="",y=!1;for(let S=0;Sc||A[0]===" "?(m===" "?m=` +`}};$2.YAMLError=L2;$2.YAMLParseError=iW;$2.YAMLWarning=aW;$2.prettifyError=Ovt});var j2=L(wxe=>{"use strict";function Nvt(e,{flow:t,indicator:r,next:n,offset:o,onError:i,parentIndent:a,startOnNewline:s}){let c=!1,p=s,d=s,f="",m="",y=!1,g=!1,S=null,b=null,E=null,I=null,T=null,k=null,F=null;for(let N of e)switch(g&&(N.type!=="space"&&N.type!=="newline"&&N.type!=="comma"&&i(N.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),S&&(p&&N.type!=="comment"&&N.type!=="newline"&&i(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),S=null),N.type){case"space":!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&N.source.includes(" ")&&(S=N),d=!0;break;case"comment":{d||i(N,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let U=N.source.substring(1)||" ";f?f+=m+U:f=U,m="",p=!1;break}case"newline":p?f?f+=N.source:(!k||r!=="seq-item-ind")&&(c=!0):m+=N.source,p=!0,y=!0,(b||E)&&(I=N),d=!0;break;case"anchor":b&&i(N,"MULTIPLE_ANCHORS","A node can have at most one anchor"),N.source.endsWith(":")&&i(N.offset+N.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),b=N,F??(F=N.offset),p=!1,d=!1,g=!0;break;case"tag":{E&&i(N,"MULTIPLE_TAGS","A node can have at most one tag"),E=N,F??(F=N.offset),p=!1,d=!1,g=!0;break}case r:(b||E)&&i(N,"BAD_PROP_ORDER",`Anchors and tags must be after the ${N.source} indicator`),k&&i(N,"UNEXPECTED_TOKEN",`Unexpected ${N.source} in ${t??"collection"}`),k=N,p=r==="seq-item-ind"||r==="explicit-key-ind",d=!1;break;case"comma":if(t){T&&i(N,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),T=N,p=!1,d=!1;break}default:i(N,"UNEXPECTED_TOKEN",`Unexpected ${N.type} token`),p=!1,d=!1}let O=e[e.length-1],$=O?O.offset+O.source.length:o;return g&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S&&(p&&S.indent<=a||n?.type==="block-map"||n?.type==="block-seq")&&i(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:T,found:k,spaceBefore:c,comment:f,hasNewline:y,anchor:b,tag:E,newlineAfterProp:I,end:$,start:F??$}}wxe.resolveProps=Nvt});var VN=L(kxe=>{"use strict";function sW(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(` +`))return!0;if(e.end){for(let t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(let t of e.items){for(let r of t.start)if(r.type==="newline")return!0;if(t.sep){for(let r of t.sep)if(r.type==="newline")return!0}if(sW(t.key)||sW(t.value))return!0}return!1;default:return!0}}kxe.containsNewline=sW});var cW=L(Cxe=>{"use strict";var Fvt=VN();function Rvt(e,t,r){if(t?.type==="flow-collection"){let n=t.end[0];n.indent===e&&(n.source==="]"||n.source==="}")&&Fvt.containsNewline(t)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}Cxe.flowIndentCheck=Rvt});var lW=L(Oxe=>{"use strict";var Pxe=qn();function Lvt(e,t,r){let{uniqueKeys:n}=e.options;if(n===!1)return!1;let o=typeof n=="function"?n:(i,a)=>i===a||Pxe.isScalar(i)&&Pxe.isScalar(a)&&i.value===a.value;return t.some(i=>o(i.key,r))}Oxe.mapIncludes=Lvt});var Mxe=L($xe=>{"use strict";var Nxe=Lh(),$vt=Mh(),Fxe=j2(),Mvt=VN(),Rxe=cW(),jvt=lW(),Lxe="All mapping items must start at the same column";function Bvt({composeNode:e,composeEmptyNode:t},r,n,o,i){let a=i?.nodeClass??$vt.YAMLMap,s=new a(r.schema);r.atRoot&&(r.atRoot=!1);let c=n.offset,p=null;for(let d of n.items){let{start:f,key:m,sep:y,value:g}=d,S=Fxe.resolveProps(f,{indicator:"explicit-key-ind",next:m??y?.[0],offset:c,onError:o,parentIndent:n.indent,startOnNewline:!0}),b=!S.found;if(b){if(m&&(m.type==="block-seq"?o(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in m&&m.indent!==n.indent&&o(c,"BAD_INDENT",Lxe)),!S.anchor&&!S.tag&&!y){p=S.end,S.comment&&(s.comment?s.comment+=` +`+S.comment:s.comment=S.comment);continue}(S.newlineAfterProp||Mvt.containsNewline(m))&&o(m??f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else S.found?.indent!==n.indent&&o(c,"BAD_INDENT",Lxe);r.atKey=!0;let E=S.end,I=m?e(r,m,S,o):t(r,E,f,null,S,o);r.schema.compat&&Rxe.flowIndentCheck(n.indent,m,o),r.atKey=!1,jvt.mapIncludes(r,s.items,I)&&o(E,"DUPLICATE_KEY","Map keys must be unique");let T=Fxe.resolveProps(y??[],{indicator:"map-value-ind",next:g,offset:I.range[2],onError:o,parentIndent:n.indent,startOnNewline:!m||m.type==="block-scalar"});if(c=T.end,T.found){b&&(g?.type==="block-map"&&!T.hasNewline&&o(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&S.start{"use strict";var qvt=jh(),Uvt=j2(),zvt=cW();function Jvt({composeNode:e,composeEmptyNode:t},r,n,o,i){let a=i?.nodeClass??qvt.YAMLSeq,s=new a(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let c=n.offset,p=null;for(let{start:d,value:f}of n.items){let m=Uvt.resolveProps(d,{indicator:"seq-item-ind",next:f,offset:c,onError:o,parentIndent:n.indent,startOnNewline:!0});if(!m.found)if(m.anchor||m.tag||f)f?.type==="block-seq"?o(m.end,"BAD_INDENT","All sequence items must start at the same column"):o(c,"MISSING_CHAR","Sequence item without - indicator");else{p=m.end,m.comment&&(s.comment=m.comment);continue}let y=f?e(r,f,m,o):t(r,m.end,d,null,m,o);r.schema.compat&&zvt.flowIndentCheck(n.indent,f,o),c=y.range[2],s.items.push(y)}return s.range=[n.offset,c,p??c],s}jxe.resolveBlockSeq=Jvt});var tb=L(qxe=>{"use strict";function Vvt(e,t,r,n){let o="";if(e){let i=!1,a="";for(let s of e){let{source:c,type:p}=s;switch(p){case"space":i=!0;break;case"comment":{r&&!i&&n(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let d=c.substring(1)||" ";o?o+=a+d:o=d,a="";break}case"newline":o&&(a+=c),i=!0;break;default:n(s,"UNEXPECTED_TOKEN",`Unexpected ${p} at node end`)}t+=c.length}}return{comment:o,offset:t}}qxe.resolveEnd=Vvt});var Vxe=L(Jxe=>{"use strict";var Kvt=qn(),Gvt=Lh(),Uxe=Mh(),Hvt=jh(),Zvt=tb(),zxe=j2(),Wvt=VN(),Qvt=lW(),uW="Block collections are not allowed within flow collections",pW=e=>e&&(e.type==="block-map"||e.type==="block-seq");function Xvt({composeNode:e,composeEmptyNode:t},r,n,o,i){let a=n.start.source==="{",s=a?"flow map":"flow sequence",c=i?.nodeClass??(a?Uxe.YAMLMap:Hvt.YAMLSeq),p=new c(r.schema);p.flow=!0;let d=r.atRoot;d&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let f=n.offset+n.start.source.length;for(let b=0;b0){let b=Zvt.resolveEnd(g,S,r.options.strict,o);b.comment&&(p.comment?p.comment+=` +`+b.comment:p.comment=b.comment),p.range=[n.offset,S,b.offset]}else p.range=[n.offset,S,S];return p}Jxe.resolveFlowCollection=Xvt});var Gxe=L(Kxe=>{"use strict";var Yvt=qn(),e1t=Ji(),t1t=Mh(),r1t=jh(),n1t=Mxe(),o1t=Bxe(),i1t=Vxe();function dW(e,t,r,n,o,i){let a=r.type==="block-map"?n1t.resolveBlockMap(e,t,r,n,i):r.type==="block-seq"?o1t.resolveBlockSeq(e,t,r,n,i):i1t.resolveFlowCollection(e,t,r,n,i),s=a.constructor;return o==="!"||o===s.tagName?(a.tag=s.tagName,a):(o&&(a.tag=o),a)}function a1t(e,t,r,n,o){let i=n.tag,a=i?t.directives.tagName(i.source,m=>o(i,"TAG_RESOLVE_FAILED",m)):null;if(r.type==="block-seq"){let{anchor:m,newlineAfterProp:y}=n,g=m&&i?m.offset>i.offset?m:i:m??i;g&&(!y||y.offsetm.tag===a&&m.collection===s);if(!c){let m=t.schema.knownTags[a];if(m?.collection===s)t.schema.tags.push(Object.assign({},m,{default:!1})),c=m;else return m?o(i,"BAD_COLLECTION_TYPE",`${m.tag} used for ${s} collection, but expects ${m.collection??"scalar"}`,!0):o(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),dW(e,t,r,o,a)}let p=dW(e,t,r,o,a,c),d=c.resolve?.(p,m=>o(i,"TAG_RESOLVE_FAILED",m),t.options)??p,f=Yvt.isNode(d)?d:new e1t.Scalar(d);return f.range=p.range,f.tag=a,c?.format&&(f.format=c.format),f}Kxe.composeCollection=a1t});var fW=L(Hxe=>{"use strict";var _W=Ji();function s1t(e,t,r){let n=t.offset,o=c1t(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[n,n,n]};let i=o.mode===">"?_W.Scalar.BLOCK_FOLDED:_W.Scalar.BLOCK_LITERAL,a=t.source?l1t(t.source):[],s=a.length;for(let S=a.length-1;S>=0;--S){let b=a[S][1];if(b===""||b==="\r")s=S;else break}if(s===0){let S=o.chomp==="+"&&a.length>0?` +`.repeat(Math.max(1,a.length-1)):"",b=n+o.length;return t.source&&(b+=t.source.length),{value:S,type:i,comment:o.comment,range:[n,b,b]}}let c=t.indent+o.indent,p=t.offset+o.length,d=0;for(let S=0;Sc&&(c=b.length);else{b.length=s;--S)a[S][0].length>c&&(s=S+1);let f="",m="",y=!1;for(let S=0;Sc||E[0]===" "?(m===" "?m=` `:!y&&m===` `&&(m=` -`),f+=m+x.slice(c)+A,m=` -`,y=!0):A===""?m===` +`),f+=m+b.slice(c)+E,m=` +`,y=!0):E===""?m===` `?f+=` `:m=` -`:(f+=m+A,m=" ",y=!1)}switch(o.chomp){case"-":break;case"+":for(let S=s;S{"use strict";var _W=Vi(),c1t=X1();function l1t(e,t,r){let{offset:n,type:o,source:i,end:a}=e,s,c,p=(m,y,g)=>r(n+m,y,g);switch(o){case"scalar":s=_W.Scalar.PLAIN,c=u1t(i,p);break;case"single-quoted-scalar":s=_W.Scalar.QUOTE_SINGLE,c=p1t(i,p);break;case"double-quoted-scalar":s=_W.Scalar.QUOTE_DOUBLE,c=d1t(i,p);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[n,n+i.length,n+i.length]}}let d=n+i.length,f=c1t.resolveEnd(a,d,t,r);return{value:c,type:s,comment:f.comment,range:[n,d,f.offset]}}function u1t(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),Gxe(e)}function p1t(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Gxe(e.slice(1,-1)).replace(/''/g,"'")}function Gxe(e){let t,r;try{t=new RegExp(`(.*?)(?{"use strict";var mW=Ji(),u1t=tb();function p1t(e,t,r){let{offset:n,type:o,source:i,end:a}=e,s,c,p=(m,y,g)=>r(n+m,y,g);switch(o){case"scalar":s=mW.Scalar.PLAIN,c=d1t(i,p);break;case"single-quoted-scalar":s=mW.Scalar.QUOTE_SINGLE,c=_1t(i,p);break;case"double-quoted-scalar":s=mW.Scalar.QUOTE_DOUBLE,c=f1t(i,p);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[n,n+i.length,n+i.length]}}let d=n+i.length,f=u1t.resolveEnd(a,d,t,r);return{value:c,type:s,comment:f.comment,range:[n,d,f.offset]}}function d1t(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),Zxe(e)}function _1t(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Zxe(e.slice(1,-1)).replace(/''/g,"'")}function Zxe(e){let t,r;try{t=new RegExp(`(.*?)(?i?e.slice(i,n+1):o)}else r+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}function _1t(e,t){let r="",n=e[t+1];for(;(n===" "||n===" "||n===` +`)&&(r+=n>i?e.slice(i,n+1):o)}else r+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}function m1t(e,t){let r="",n=e[t+1];for(;(n===" "||n===" "||n===` `||n==="\r")&&!(n==="\r"&&e[t+2]!==` `);)n===` `&&(r+=` -`),t+=1,n=e[t+1];return r||(r=" "),{fold:r,offset:t}}var f1t={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:` -`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function m1t(e,t,r,n){let o=e.substr(t,r),a=o.length===r&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(a)){let s=e.substr(t-2,r+2);return n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),s}return String.fromCodePoint(a)}Hxe.resolveFlowScalar=l1t});var Qxe=L(Wxe=>{"use strict";var _S=qn(),Zxe=Vi(),h1t=dW(),y1t=fW();function g1t(e,t,r,n){let{value:o,type:i,comment:a,range:s}=t.type==="block-scalar"?h1t.resolveBlockScalar(e,t,n):y1t.resolveFlowScalar(t,e.options.strict,n),c=r?e.directives.tagName(r.source,f=>n(r,"TAG_RESOLVE_FAILED",f)):null,p;e.options.stringKeys&&e.atKey?p=e.schema[_S.SCALAR]:c?p=S1t(e.schema,o,c,r,n):t.type==="scalar"?p=v1t(e,o,t,n):p=e.schema[_S.SCALAR];let d;try{let f=p.resolve(o,m=>n(r??t,"TAG_RESOLVE_FAILED",m),e.options);d=_S.isScalar(f)?f:new Zxe.Scalar(f)}catch(f){let m=f instanceof Error?f.message:String(f);n(r??t,"TAG_RESOLVE_FAILED",m),d=new Zxe.Scalar(o)}return d.range=s,d.source=o,i&&(d.type=i),c&&(d.tag=c),p.format&&(d.format=p.format),a&&(d.comment=a),d}function S1t(e,t,r,n,o){if(r==="!")return e[_S.SCALAR];let i=[];for(let s of e.tags)if(!s.collection&&s.tag===r)if(s.default&&s.test)i.push(s);else return s;for(let s of i)if(s.test?.test(t))return s;let a=e.knownTags[r];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),e[_S.SCALAR])}function v1t({atKey:e,directives:t,schema:r},n,o,i){let a=r.tags.find(s=>(s.default===!0||e&&s.default==="key")&&s.test?.test(n))||r[_S.SCALAR];if(r.compat){let s=r.compat.find(c=>c.default&&c.test?.test(n))??r[_S.SCALAR];if(a.tag!==s.tag){let c=t.tagString(a.tag),p=t.tagString(s.tag),d=`Value may be parsed as either ${c} or ${p}`;i(o,"TAG_RESOLVE_FAILED",d,!0)}}return a}Wxe.composeScalar=g1t});var Yxe=L(Xxe=>{"use strict";function b1t(e,t,r){if(t){r??(r=t.length);for(let n=r-1;n>=0;--n){let o=t[n];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++n];o?.type==="space";)e+=o.source.length,o=t[++n];break}}return e}Xxe.emptyScalarPosition=b1t});var rEe=L(hW=>{"use strict";var x1t=hA(),E1t=qn(),T1t=Jxe(),eEe=Qxe(),D1t=X1(),A1t=Yxe(),w1t={composeNode:tEe,composeEmptyNode:mW};function tEe(e,t,r,n){let o=e.atKey,{spaceBefore:i,comment:a,anchor:s,tag:c}=r,p,d=!0;switch(t.type){case"alias":p=I1t(e,t,n),(s||c)&&n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":p=eEe.composeScalar(e,t,c,n),s&&(p.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":p=T1t.composeCollection(w1t,e,t,r,n),s&&(p.anchor=s.source.substring(1));break;default:{let f=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",f),p=mW(e,t.offset,void 0,null,r,n),d=!1}}return s&&p.anchor===""&&n(s,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!E1t.isScalar(p)||typeof p.value!="string"||p.tag&&p.tag!=="tag:yaml.org,2002:str")&&n(c??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),i&&(p.spaceBefore=!0),a&&(t.type==="scalar"&&t.source===""?p.comment=a:p.commentBefore=a),e.options.keepSourceTokens&&d&&(p.srcToken=t),p}function mW(e,t,r,n,{spaceBefore:o,comment:i,anchor:a,tag:s,end:c},p){let d={type:"scalar",offset:A1t.emptyScalarPosition(t,r,n),indent:-1,source:""},f=eEe.composeScalar(e,d,s,p);return a&&(f.anchor=a.source.substring(1),f.anchor===""&&p(a,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(f.spaceBefore=!0),i&&(f.comment=i,f.range[2]=c),f}function I1t({options:e},{offset:t,source:r,end:n},o){let i=new x1t.Alias(r.substring(1));i.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let a=t+r.length,s=D1t.resolveEnd(n,a,e.strict,o);return i.range=[t,a,s.offset],s.comment&&(i.comment=s.comment),i}hW.composeEmptyNode=mW;hW.composeNode=tEe});var iEe=L(oEe=>{"use strict";var k1t=NA(),nEe=rEe(),C1t=X1(),P1t=$A();function O1t(e,t,{offset:r,start:n,value:o,end:i},a){let s=Object.assign({_directives:t},e),c=new k1t.Document(void 0,s),p={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},d=P1t.resolveProps(n,{indicator:"doc-start",next:o??i?.[0],offset:r,onError:a,parentIndent:0,startOnNewline:!0});d.found&&(c.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!d.hasNewline&&a(d.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=o?nEe.composeNode(p,o,d,a):nEe.composeEmptyNode(p,d.end,n,null,d,a);let f=c.contents.range[2],m=C1t.resolveEnd(i,f,!1,a);return m.comment&&(c.comment=m.comment),c.range=[r,f,m.offset],c}oEe.composeDoc=O1t});var gW=L(cEe=>{"use strict";var N1t=_l("process"),F1t=nZ(),R1t=NA(),MA=LA(),aEe=qn(),L1t=iEe(),$1t=X1();function jA(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:r}=e;return[t,t+(typeof r=="string"?r.length:1)]}function sEe(e){let t="",r=!1,n=!1;for(let o=0;o{"use strict";var yS=qn(),Qxe=Ji(),g1t=fW(),S1t=hW();function v1t(e,t,r,n){let{value:o,type:i,comment:a,range:s}=t.type==="block-scalar"?g1t.resolveBlockScalar(e,t,n):S1t.resolveFlowScalar(t,e.options.strict,n),c=r?e.directives.tagName(r.source,f=>n(r,"TAG_RESOLVE_FAILED",f)):null,p;e.options.stringKeys&&e.atKey?p=e.schema[yS.SCALAR]:c?p=b1t(e.schema,o,c,r,n):t.type==="scalar"?p=x1t(e,o,t,n):p=e.schema[yS.SCALAR];let d;try{let f=p.resolve(o,m=>n(r??t,"TAG_RESOLVE_FAILED",m),e.options);d=yS.isScalar(f)?f:new Qxe.Scalar(f)}catch(f){let m=f instanceof Error?f.message:String(f);n(r??t,"TAG_RESOLVE_FAILED",m),d=new Qxe.Scalar(o)}return d.range=s,d.source=o,i&&(d.type=i),c&&(d.tag=c),p.format&&(d.format=p.format),a&&(d.comment=a),d}function b1t(e,t,r,n,o){if(r==="!")return e[yS.SCALAR];let i=[];for(let s of e.tags)if(!s.collection&&s.tag===r)if(s.default&&s.test)i.push(s);else return s;for(let s of i)if(s.test?.test(t))return s;let a=e.knownTags[r];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),e[yS.SCALAR])}function x1t({atKey:e,directives:t,schema:r},n,o,i){let a=r.tags.find(s=>(s.default===!0||e&&s.default==="key")&&s.test?.test(n))||r[yS.SCALAR];if(r.compat){let s=r.compat.find(c=>c.default&&c.test?.test(n))??r[yS.SCALAR];if(a.tag!==s.tag){let c=t.tagString(a.tag),p=t.tagString(s.tag),d=`Value may be parsed as either ${c} or ${p}`;i(o,"TAG_RESOLVE_FAILED",d,!0)}}return a}Xxe.composeScalar=v1t});var tEe=L(eEe=>{"use strict";function E1t(e,t,r){if(t){r??(r=t.length);for(let n=r-1;n>=0;--n){let o=t[n];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++n];o?.type==="space";)e+=o.source.length,o=t[++n];break}}return e}eEe.emptyScalarPosition=E1t});var oEe=L(gW=>{"use strict";var T1t=g2(),D1t=qn(),A1t=Gxe(),rEe=Yxe(),I1t=tb(),w1t=tEe(),k1t={composeNode:nEe,composeEmptyNode:yW};function nEe(e,t,r,n){let o=e.atKey,{spaceBefore:i,comment:a,anchor:s,tag:c}=r,p,d=!0;switch(t.type){case"alias":p=C1t(e,t,n),(s||c)&&n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":p=rEe.composeScalar(e,t,c,n),s&&(p.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":p=A1t.composeCollection(k1t,e,t,r,n),s&&(p.anchor=s.source.substring(1));break;default:{let f=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",f),p=yW(e,t.offset,void 0,null,r,n),d=!1}}return s&&p.anchor===""&&n(s,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!D1t.isScalar(p)||typeof p.value!="string"||p.tag&&p.tag!=="tag:yaml.org,2002:str")&&n(c??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),i&&(p.spaceBefore=!0),a&&(t.type==="scalar"&&t.source===""?p.comment=a:p.commentBefore=a),e.options.keepSourceTokens&&d&&(p.srcToken=t),p}function yW(e,t,r,n,{spaceBefore:o,comment:i,anchor:a,tag:s,end:c},p){let d={type:"scalar",offset:w1t.emptyScalarPosition(t,r,n),indent:-1,source:""},f=rEe.composeScalar(e,d,s,p);return a&&(f.anchor=a.source.substring(1),f.anchor===""&&p(a,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(f.spaceBefore=!0),i&&(f.comment=i,f.range[2]=c),f}function C1t({options:e},{offset:t,source:r,end:n},o){let i=new T1t.Alias(r.substring(1));i.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let a=t+r.length,s=I1t.resolveEnd(n,a,e.strict,o);return i.range=[t,a,s.offset],s.comment&&(i.comment=s.comment),i}gW.composeEmptyNode=yW;gW.composeNode=nEe});var sEe=L(aEe=>{"use strict";var P1t=R2(),iEe=oEe(),O1t=tb(),N1t=j2();function F1t(e,t,{offset:r,start:n,value:o,end:i},a){let s=Object.assign({_directives:t},e),c=new P1t.Document(void 0,s),p={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},d=N1t.resolveProps(n,{indicator:"doc-start",next:o??i?.[0],offset:r,onError:a,parentIndent:0,startOnNewline:!0});d.found&&(c.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!d.hasNewline&&a(d.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=o?iEe.composeNode(p,o,d,a):iEe.composeEmptyNode(p,d.end,n,null,d,a);let f=c.contents.range[2],m=O1t.resolveEnd(i,f,!1,a);return m.comment&&(c.comment=m.comment),c.range=[r,f,m.offset],c}aEe.composeDoc=F1t});var vW=L(uEe=>{"use strict";var R1t=fl("process"),L1t=iZ(),$1t=R2(),B2=M2(),cEe=qn(),M1t=sEe(),j1t=tb();function q2(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:r}=e;return[t,t+(typeof r=="string"?r.length:1)]}function lEe(e){let t="",r=!1,n=!1;for(let o=0;o{let a=jA(r);i?this.warnings.push(new MA.YAMLWarning(a,n,o)):this.errors.push(new MA.YAMLParseError(a,n,o))},this.directives=new F1t.Directives({version:t.version||"1.2"}),this.options=t}decorate(t,r){let{comment:n,afterEmptyLine:o}=sEe(this.prelude);if(n){let i=t.contents;if(r)t.comment=t.comment?`${t.comment} -${n}`:n;else if(o||t.directives.docStart||!i)t.commentBefore=n;else if(aEe.isCollection(i)&&!i.flow&&i.items.length>0){let a=i.items[0];aEe.isPair(a)&&(a=a.key);let s=a.commentBefore;a.commentBefore=s?`${n} +`)+(i.substring(1)||" "),r=!0,n=!1;break;case"%":e[o+1]?.[0]!=="#"&&(o+=1),r=!1;break;default:r||(n=!0),r=!1}}return{comment:t,afterEmptyLine:n}}var SW=class{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,n,o,i)=>{let a=q2(r);i?this.warnings.push(new B2.YAMLWarning(a,n,o)):this.errors.push(new B2.YAMLParseError(a,n,o))},this.directives=new L1t.Directives({version:t.version||"1.2"}),this.options=t}decorate(t,r){let{comment:n,afterEmptyLine:o}=lEe(this.prelude);if(n){let i=t.contents;if(r)t.comment=t.comment?`${t.comment} +${n}`:n;else if(o||t.directives.docStart||!i)t.commentBefore=n;else if(cEe.isCollection(i)&&!i.flow&&i.items.length>0){let a=i.items[0];cEe.isPair(a)&&(a=a.key);let s=a.commentBefore;a.commentBefore=s?`${n} ${s}`:n}else{let a=i.commentBefore;i.commentBefore=a?`${n} -${a}`:n}}r?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:sEe(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,r=!1,n=-1){for(let o of t)yield*this.next(o);yield*this.end(r,n)}*next(t){switch(N1t.env.LOG_STREAM&&console.dir(t,{depth:null}),t.type){case"directive":this.directives.add(t.source,(r,n,o)=>{let i=jA(t);i[0]+=r,this.onError(i,"BAD_DIRECTIVE",n,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{let r=L1t.composeDoc(this.options,this.directives,t,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{let r=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,n=new MA.YAMLParseError(jA(t),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){let n="Unexpected doc-end without preceding document";this.errors.push(new MA.YAMLParseError(jA(t),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;let r=$1t.resolveEnd(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){let n=this.doc.comment;this.doc.comment=n?`${n} -${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new MA.YAMLParseError(jA(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){let n=Object.assign({_directives:this.directives},this.options),o=new R1t.Document(void 0,n);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,r,r],this.decorate(o,!1),yield o}}};cEe.Composer=yW});var pEe=L(VN=>{"use strict";var M1t=dW(),j1t=fW(),B1t=LA(),lEe=bA();function q1t(e,t=!0,r){if(e){let n=(o,i,a)=>{let s=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(r)r(s,i,a);else throw new B1t.YAMLParseError([s,s+1],i,a)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return j1t.resolveFlowScalar(e,t,n);case"block-scalar":return M1t.resolveBlockScalar({options:{strict:t}},e,n)}}return null}function U1t(e,t){let{implicitKey:r=!1,indent:n,inFlow:o=!1,offset:i=-1,type:a="PLAIN"}=t,s=lEe.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),c=t.end??[{type:"newline",offset:-1,indent:n,source:` +${a}`:n}}r?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:lEe(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,r=!1,n=-1){for(let o of t)yield*this.next(o);yield*this.end(r,n)}*next(t){switch(R1t.env.LOG_STREAM&&console.dir(t,{depth:null}),t.type){case"directive":this.directives.add(t.source,(r,n,o)=>{let i=q2(t);i[0]+=r,this.onError(i,"BAD_DIRECTIVE",n,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{let r=M1t.composeDoc(this.options,this.directives,t,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{let r=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,n=new B2.YAMLParseError(q2(t),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){let n="Unexpected doc-end without preceding document";this.errors.push(new B2.YAMLParseError(q2(t),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;let r=j1t.resolveEnd(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){let n=this.doc.comment;this.doc.comment=n?`${n} +${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new B2.YAMLParseError(q2(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){let n=Object.assign({_directives:this.directives},this.options),o=new $1t.Document(void 0,n);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,r,r],this.decorate(o,!1),yield o}}};uEe.Composer=SW});var _Ee=L(KN=>{"use strict";var B1t=fW(),q1t=hW(),U1t=M2(),pEe=E2();function z1t(e,t=!0,r){if(e){let n=(o,i,a)=>{let s=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(r)r(s,i,a);else throw new U1t.YAMLParseError([s,s+1],i,a)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return q1t.resolveFlowScalar(e,t,n);case"block-scalar":return B1t.resolveBlockScalar({options:{strict:t}},e,n)}}return null}function J1t(e,t){let{implicitKey:r=!1,indent:n,inFlow:o=!1,offset:i=-1,type:a="PLAIN"}=t,s=pEe.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),c=t.end??[{type:"newline",offset:-1,indent:n,source:` `}];switch(s[0]){case"|":case">":{let p=s.indexOf(` `),d=s.substring(0,p),f=s.substring(p+1)+` -`,m=[{type:"block-scalar-header",offset:i,indent:n,source:d}];return uEe(m,c)||m.push({type:"newline",offset:-1,indent:n,source:` -`}),{type:"block-scalar",offset:i,indent:n,props:m,source:f}}case'"':return{type:"double-quoted-scalar",offset:i,indent:n,source:s,end:c};case"'":return{type:"single-quoted-scalar",offset:i,indent:n,source:s,end:c};default:return{type:"scalar",offset:i,indent:n,source:s,end:c}}}function z1t(e,t,r={}){let{afterKey:n=!1,implicitKey:o=!1,inFlow:i=!1,type:a}=r,s="indent"in e?e.indent:null;if(n&&typeof s=="number"&&(s+=2),!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{let p=e.props[0];if(p.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=p.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}let c=lEe.stringifyString({type:a,value:t},{implicitKey:o||s===null,indent:s!==null&&s>0?" ".repeat(s):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":V1t(e,c);break;case'"':SW(e,c,"double-quoted-scalar");break;case"'":SW(e,c,"single-quoted-scalar");break;default:SW(e,c,"scalar")}}function V1t(e,t){let r=t.indexOf(` +`,m=[{type:"block-scalar-header",offset:i,indent:n,source:d}];return dEe(m,c)||m.push({type:"newline",offset:-1,indent:n,source:` +`}),{type:"block-scalar",offset:i,indent:n,props:m,source:f}}case'"':return{type:"double-quoted-scalar",offset:i,indent:n,source:s,end:c};case"'":return{type:"single-quoted-scalar",offset:i,indent:n,source:s,end:c};default:return{type:"scalar",offset:i,indent:n,source:s,end:c}}}function V1t(e,t,r={}){let{afterKey:n=!1,implicitKey:o=!1,inFlow:i=!1,type:a}=r,s="indent"in e?e.indent:null;if(n&&typeof s=="number"&&(s+=2),!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{let p=e.props[0];if(p.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=p.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}let c=pEe.stringifyString({type:a,value:t},{implicitKey:o||s===null,indent:s!==null&&s>0?" ".repeat(s):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":K1t(e,c);break;case'"':bW(e,c,"double-quoted-scalar");break;case"'":bW(e,c,"single-quoted-scalar");break;default:bW(e,c,"scalar")}}function K1t(e,t){let r=t.indexOf(` `),n=t.substring(0,r),o=t.substring(r+1)+` -`;if(e.type==="block-scalar"){let i=e.props[0];if(i.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i.source=n,e.source=o}else{let{offset:i}=e,a="indent"in e?e.indent:-1,s=[{type:"block-scalar-header",offset:i,indent:a,source:n}];uEe(s,"end"in e?e.end:void 0)||s.push({type:"newline",offset:-1,indent:a,source:` -`});for(let c of Object.keys(e))c!=="type"&&c!=="offset"&&delete e[c];Object.assign(e,{type:"block-scalar",indent:a,props:s,source:o})}}function uEe(e,t){if(t)for(let r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function SW(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{let n=e.props.slice(1),o=t.length;e.props[0].type==="block-scalar-header"&&(o-=e.props[0].source.length);for(let i of n)i.offset+=o;delete e.props,Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{let o={type:"newline",offset:e.offset+t.length,indent:e.indent,source:` -`};delete e.items,Object.assign(e,{type:r,source:t,end:[o]});break}default:{let n="indent"in e?e.indent:-1,o="end"in e&&Array.isArray(e.end)?e.end.filter(i=>i.type==="space"||i.type==="comment"||i.type==="newline"):[];for(let i of Object.keys(e))i!=="type"&&i!=="offset"&&delete e[i];Object.assign(e,{type:r,indent:n,source:t,end:o})}}}VN.createScalarToken=U1t;VN.resolveAsScalar=q1t;VN.setScalarValue=z1t});var _Ee=L(dEe=>{"use strict";var J1t=e=>"type"in e?KN(e):JN(e);function KN(e){switch(e.type){case"block-scalar":{let t="";for(let r of e.props)t+=KN(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(let r of e.items)t+=JN(r);return t}case"flow-collection":{let t=e.start.source;for(let r of e.items)t+=JN(r);for(let r of e.end)t+=r.source;return t}case"document":{let t=JN(e);if(e.end)for(let r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let r of e.end)t+=r.source;return t}}}function JN({start:e,key:t,sep:r,value:n}){let o="";for(let i of e)o+=i.source;if(t&&(o+=KN(t)),r)for(let i of r)o+=i.source;return n&&(o+=KN(n)),o}dEe.stringify=J1t});var yEe=L(hEe=>{"use strict";var vW=Symbol("break visit"),K1t=Symbol("skip children"),fEe=Symbol("remove item");function fS(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),mEe(Object.freeze([]),e,t)}fS.BREAK=vW;fS.SKIP=K1t;fS.REMOVE=fEe;fS.itemAtPath=(e,t)=>{let r=e;for(let[n,o]of t){let i=r?.[n];if(i&&"items"in i)r=i.items[o];else return}return r};fS.parentCollection=(e,t)=>{let r=fS.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],o=r?.[n];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function mEe(e,t,r){let n=r(t,e);if(typeof n=="symbol")return n;for(let o of["key","value"]){let i=t[o];if(i&&"items"in i){for(let a=0;a{"use strict";var bW=pEe(),G1t=_Ee(),H1t=yEe(),xW="\uFEFF",EW="",TW="",DW="",Z1t=e=>!!e&&"items"in e,W1t=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function Q1t(e){switch(e){case xW:return"";case EW:return"";case TW:return"";case DW:return"";default:return JSON.stringify(e)}}function X1t(e){switch(e){case xW:return"byte-order-mark";case EW:return"doc-mode";case TW:return"flow-error-end";case DW:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case` +`;if(e.type==="block-scalar"){let i=e.props[0];if(i.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i.source=n,e.source=o}else{let{offset:i}=e,a="indent"in e?e.indent:-1,s=[{type:"block-scalar-header",offset:i,indent:a,source:n}];dEe(s,"end"in e?e.end:void 0)||s.push({type:"newline",offset:-1,indent:a,source:` +`});for(let c of Object.keys(e))c!=="type"&&c!=="offset"&&delete e[c];Object.assign(e,{type:"block-scalar",indent:a,props:s,source:o})}}function dEe(e,t){if(t)for(let r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function bW(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{let n=e.props.slice(1),o=t.length;e.props[0].type==="block-scalar-header"&&(o-=e.props[0].source.length);for(let i of n)i.offset+=o;delete e.props,Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{let o={type:"newline",offset:e.offset+t.length,indent:e.indent,source:` +`};delete e.items,Object.assign(e,{type:r,source:t,end:[o]});break}default:{let n="indent"in e?e.indent:-1,o="end"in e&&Array.isArray(e.end)?e.end.filter(i=>i.type==="space"||i.type==="comment"||i.type==="newline"):[];for(let i of Object.keys(e))i!=="type"&&i!=="offset"&&delete e[i];Object.assign(e,{type:r,indent:n,source:t,end:o})}}}KN.createScalarToken=J1t;KN.resolveAsScalar=z1t;KN.setScalarValue=V1t});var mEe=L(fEe=>{"use strict";var G1t=e=>"type"in e?HN(e):GN(e);function HN(e){switch(e.type){case"block-scalar":{let t="";for(let r of e.props)t+=HN(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(let r of e.items)t+=GN(r);return t}case"flow-collection":{let t=e.start.source;for(let r of e.items)t+=GN(r);for(let r of e.end)t+=r.source;return t}case"document":{let t=GN(e);if(e.end)for(let r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let r of e.end)t+=r.source;return t}}}function GN({start:e,key:t,sep:r,value:n}){let o="";for(let i of e)o+=i.source;if(t&&(o+=HN(t)),r)for(let i of r)o+=i.source;return n&&(o+=HN(n)),o}fEe.stringify=G1t});var SEe=L(gEe=>{"use strict";var xW=Symbol("break visit"),H1t=Symbol("skip children"),hEe=Symbol("remove item");function gS(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),yEe(Object.freeze([]),e,t)}gS.BREAK=xW;gS.SKIP=H1t;gS.REMOVE=hEe;gS.itemAtPath=(e,t)=>{let r=e;for(let[n,o]of t){let i=r?.[n];if(i&&"items"in i)r=i.items[o];else return}return r};gS.parentCollection=(e,t)=>{let r=gS.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],o=r?.[n];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function yEe(e,t,r){let n=r(t,e);if(typeof n=="symbol")return n;for(let o of["key","value"]){let i=t[o];if(i&&"items"in i){for(let a=0;a{"use strict";var EW=_Ee(),Z1t=mEe(),W1t=SEe(),TW="\uFEFF",DW="",AW="",IW="",Q1t=e=>!!e&&"items"in e,X1t=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function Y1t(e){switch(e){case TW:return"";case DW:return"";case AW:return"";case IW:return"";default:return JSON.stringify(e)}}function ebt(e){switch(e){case TW:return"byte-order-mark";case DW:return"doc-mode";case AW:return"flow-error-end";case IW:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case` `:case`\r -`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}mc.createScalarToken=bW.createScalarToken;mc.resolveAsScalar=bW.resolveAsScalar;mc.setScalarValue=bW.setScalarValue;mc.stringify=G1t.stringify;mc.visit=H1t.visit;mc.BOM=xW;mc.DOCUMENT=EW;mc.FLOW_END=TW;mc.SCALAR=DW;mc.isCollection=Z1t;mc.isScalar=W1t;mc.prettyToken=Q1t;mc.tokenType=X1t});var IW=L(SEe=>{"use strict";var BA=GN();function ep(e){switch(e){case void 0:case" ":case` -`:case"\r":case" ":return!0;default:return!1}}var gEe=new Set("0123456789ABCDEFabcdef"),Y1t=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),HN=new Set(",[]{}"),ebt=new Set(` ,[]{} -\r `),AW=e=>!e||ebt.has(e),wW=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,r=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!r;let n=this.next??"stream";for(;n&&(r||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let t=this.pos,r=this.buffer[t];for(;r===" "||r===" ";)r=this.buffer[++t];return!r||r==="#"||r===` +`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}mc.createScalarToken=EW.createScalarToken;mc.resolveAsScalar=EW.resolveAsScalar;mc.setScalarValue=EW.setScalarValue;mc.stringify=Z1t.stringify;mc.visit=W1t.visit;mc.BOM=TW;mc.DOCUMENT=DW;mc.FLOW_END=AW;mc.SCALAR=IW;mc.isCollection=Q1t;mc.isScalar=X1t;mc.prettyToken=Y1t;mc.tokenType=ebt});var CW=L(bEe=>{"use strict";var U2=ZN();function tp(e){switch(e){case void 0:case" ":case` +`:case"\r":case" ":return!0;default:return!1}}var vEe=new Set("0123456789ABCDEFabcdef"),tbt=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),WN=new Set(",[]{}"),rbt=new Set(` ,[]{} +\r `),wW=e=>!e||rbt.has(e),kW=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,r=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!r;let n=this.next??"stream";for(;n&&(r||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let t=this.pos,r=this.buffer[t];for(;r===" "||r===" ";)r=this.buffer[++t];return!r||r==="#"||r===` `?!0:r==="\r"?this.buffer[t+1]===` `:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let r=this.buffer[t];if(this.indentNext>0){let n=0;for(;r===" ";)r=this.buffer[++n+t];if(r==="\r"){let o=this.buffer[n+t+1];if(o===` `||!o&&!this.atEnd)return t+n+1}return r===` -`||n>=this.indentNext||!r&&!this.atEnd?t+n:-1}if(r==="-"||r==="."){let n=this.buffer.substr(t,3);if((n==="---"||n==="...")&&ep(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&tthis.indentValue&&!ep(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[t,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&ep(r)){let n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let t=this.getLine();if(t===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(t[r]){case"#":yield*this.pushCount(t.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(AW),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,r,n=-1;do t=yield*this.pushNewline(),t>0?(r=yield*this.pushSpaces(!1),this.indentValue=n=r):r=0,r+=yield*this.pushSpaces(!0);while(t+r>0);let o=this.getLine();if(o===null)return this.setNext("flow");if((n!==-1&&n=this.indentNext||!r&&!this.atEnd?t+n:-1}if(r==="-"||r==="."){let n=this.buffer.substr(t,3);if((n==="---"||n==="...")&&tp(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&tthis.indentValue&&!tp(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[t,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&tp(r)){let n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let t=this.getLine();if(t===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(t[r]){case"#":yield*this.pushCount(t.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(wW),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,r,n=-1;do t=yield*this.pushNewline(),t>0?(r=yield*this.pushSpaces(!1),this.indentValue=n=r):r=0,r+=yield*this.pushSpaces(!0);while(t+r>0);let o=this.getLine();if(o===null)return this.setNext("flow");if((n!==-1&&n"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>ep(r)||r==="#")}*parseBlockScalar(){let t=this.pos-1,r=0,n;e:for(let i=this.pos;n=this.buffer[i];++i)switch(n){case" ":r+=1;break;case` +`,i)}o!==-1&&(r=o-(n[o-1]==="\r"?2:1))}if(r===-1){if(!this.atEnd)return this.setNext("quoted-scalar");r=this.buffer.length}return yield*this.pushToIndex(r+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){let r=this.buffer[++t];if(r==="+")this.blockScalarKeep=!0;else if(r>"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>tp(r)||r==="#")}*parseBlockScalar(){let t=this.pos-1,r=0,n;e:for(let i=this.pos;n=this.buffer[i];++i)switch(n){case" ":r+=1;break;case` `:t=i,r=0;break;case"\r":{let a=this.buffer[i+1];if(!a&&!this.atEnd)return this.setNext("block-scalar");if(a===` `)break}default:break e}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let i=this.continueScalar(t+1);if(i===-1)break;t=this.buffer.indexOf(` `,i)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let o=t+1;for(n=this.buffer[o];n===" ";)n=this.buffer[++o];if(n===" "){for(;n===" "||n===" "||n==="\r"||n===` `;)n=this.buffer[++o];t=o-1}else if(!this.blockScalarKeep)do{let i=t-1,a=this.buffer[i];a==="\r"&&(a=this.buffer[--i]);let s=i;for(;a===" ";)a=this.buffer[--i];if(a===` -`&&i>=this.pos&&i+1+r>s)t=i;else break}while(!0);return yield BA.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let t=this.flowLevel>0,r=this.pos-1,n=this.pos-1,o;for(;o=this.buffer[++n];)if(o===":"){let i=this.buffer[n+1];if(ep(i)||t&&HN.has(i))break;r=n}else if(ep(o)){let i=this.buffer[n+1];if(o==="\r"&&(i===` +`&&i>=this.pos&&i+1+r>s)t=i;else break}while(!0);return yield U2.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let t=this.flowLevel>0,r=this.pos-1,n=this.pos-1,o;for(;o=this.buffer[++n];)if(o===":"){let i=this.buffer[n+1];if(tp(i)||t&&WN.has(i))break;r=n}else if(tp(o)){let i=this.buffer[n+1];if(o==="\r"&&(i===` `?(n+=1,o=` -`,i=this.buffer[n+1]):r=n),i==="#"||t&&HN.has(i))break;if(o===` -`){let a=this.continueScalar(n+1);if(a===-1)break;n=Math.max(n,a-2)}}else{if(t&&HN.has(o))break;r=n}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield BA.SCALAR,yield*this.pushToIndex(r+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,r){let n=this.buffer.slice(this.pos,t);return n?(yield n,this.pos+=n.length,n.length):(r&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(AW))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let t=this.flowLevel>0,r=this.charAt(1);if(ep(r)||t&&HN.has(r))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,r=this.buffer[t];for(;!ep(r)&&r!==">";)r=this.buffer[++t];return yield*this.pushToIndex(r===">"?t+1:t,!1)}else{let t=this.pos+1,r=this.buffer[t];for(;r;)if(Y1t.has(r))r=this.buffer[++t];else if(r==="%"&&gEe.has(this.buffer[t+1])&&gEe.has(this.buffer[t+2]))r=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){let t=this.buffer[this.pos];return t===` +`,i=this.buffer[n+1]):r=n),i==="#"||t&&WN.has(i))break;if(o===` +`){let a=this.continueScalar(n+1);if(a===-1)break;n=Math.max(n,a-2)}}else{if(t&&WN.has(o))break;r=n}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield U2.SCALAR,yield*this.pushToIndex(r+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,r){let n=this.buffer.slice(this.pos,t);return n?(yield n,this.pos+=n.length,n.length):(r&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(wW))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let t=this.flowLevel>0,r=this.charAt(1);if(tp(r)||t&&WN.has(r))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,r=this.buffer[t];for(;!tp(r)&&r!==">";)r=this.buffer[++t];return yield*this.pushToIndex(r===">"?t+1:t,!1)}else{let t=this.pos+1,r=this.buffer[t];for(;r;)if(tbt.has(r))r=this.buffer[++t];else if(r==="%"&&vEe.has(this.buffer[t+1])&&vEe.has(this.buffer[t+2]))r=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){let t=this.buffer[this.pos];return t===` `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===` -`?yield*this.pushCount(2):0}*pushSpaces(t){let r=this.pos-1,n;do n=this.buffer[++r];while(n===" "||t&&n===" ");let o=r-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=r),o}*pushUntil(t){let r=this.pos,n=this.buffer[r];for(;!t(n);)n=this.buffer[++r];return yield*this.pushToIndex(r,!1)}};SEe.Lexer=wW});var CW=L(vEe=>{"use strict";var kW=class{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let r=0,n=this.lineStarts.length;for(;r>1;this.lineStarts[i]{"use strict";var tbt=_l("process"),bEe=GN(),rbt=IW();function $h(e,t){for(let r=0;r=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function EEe(e){if(e.start.type==="flow-seq-start")for(let t of e.items)t.sep&&!t.value&&!$h(t.start,"explicit-key-ind")&&!$h(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,TEe(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}var PW=class{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new rbt.Lexer,this.onNewLine=t}*parse(t,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(t,r))yield*this.next(n);r||(yield*this.end())}*next(t){if(this.source=t,tbt.env.LOG_TOKENS&&console.log("|",bEe.prettyToken(t)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}let r=bEe.tokenType(t);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{let n=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let t=this.peek(1);if(this.type==="doc-end"&&t?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){let r=t??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{let n=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in n?n.indent:0:r.type==="flow-collection"&&n.type==="document"&&(r.indent=0),r.type==="flow-collection"&&EEe(r),n.type){case"document":n.value=r;break;case"block-scalar":n.props.push(r);break;case"block-map":{let o=n.items[n.items.length-1];if(o.value){n.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=r;else{Object.assign(o,{key:r,sep:[]}),this.onKeyLine=!o.explicitKey;return}break}case"block-seq":{let o=n.items[n.items.length-1];o.value?n.items.push({start:[],value:r}):o.value=r;break}case"flow-collection":{let o=n.items[n.items.length-1];!o||o.value?n.items.push({start:[],key:r,sep:[]}):o.sep?o.value=r:Object.assign(o,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){let o=r.items[r.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&xEe(o.start)===-1&&(r.indent===0||o.start.every(i=>i.type!=="comment"||i.indent0&&(yield this.buffer.substr(this.pos,o),this.pos=r),o}*pushUntil(t){let r=this.pos,n=this.buffer[r];for(;!t(n);)n=this.buffer[++r];return yield*this.pushToIndex(r,!1)}};bEe.Lexer=kW});var OW=L(xEe=>{"use strict";var PW=class{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let r=0,n=this.lineStarts.length;for(;r>1;this.lineStarts[i]{"use strict";var nbt=fl("process"),EEe=ZN(),obt=CW();function Bh(e,t){for(let r=0;r=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function DEe(e){if(e.start.type==="flow-seq-start")for(let t of e.items)t.sep&&!t.value&&!Bh(t.start,"explicit-key-ind")&&!Bh(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,AEe(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}var NW=class{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new obt.Lexer,this.onNewLine=t}*parse(t,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(t,r))yield*this.next(n);r||(yield*this.end())}*next(t){if(this.source=t,nbt.env.LOG_TOKENS&&console.log("|",EEe.prettyToken(t)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}let r=EEe.tokenType(t);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{let n=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let t=this.peek(1);if(this.type==="doc-end"&&t?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){let r=t??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{let n=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in n?n.indent:0:r.type==="flow-collection"&&n.type==="document"&&(r.indent=0),r.type==="flow-collection"&&DEe(r),n.type){case"document":n.value=r;break;case"block-scalar":n.props.push(r);break;case"block-map":{let o=n.items[n.items.length-1];if(o.value){n.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=r;else{Object.assign(o,{key:r,sep:[]}),this.onKeyLine=!o.explicitKey;return}break}case"block-seq":{let o=n.items[n.items.length-1];o.value?n.items.push({start:[],value:r}):o.value=r;break}case"flow-collection":{let o=n.items[n.items.length-1];!o||o.value?n.items.push({start:[],key:r,sep:[]}):o.sep?o.value=r:Object.assign(o,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){let o=r.items[r.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&TEe(o.start)===-1&&(r.indent===0||o.start.every(i=>i.type!=="comment"||i.indent=t.indent){let n=!this.onKeyLine&&this.indent===t.indent,o=n&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind",i=[];if(o&&r.sep&&!r.value){let a=[];for(let s=0;st.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(i=r.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":o||r.value?(i.push(this.sourceToken),t.items.push({start:i}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):o||r.value?(i.push(this.sourceToken),t.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(r.explicitKey)if(r.sep)if(r.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if($h(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(TEe(r.key)&&!$h(r.sep,"newline")){let a=Y1(r.start),s=r.key,c=r.sep;c.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:s,sep:c}]})}else i.length>0?r.sep=r.sep.concat(i,this.sourceToken):r.sep.push(this.sourceToken);else if($h(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{let a=Y1(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||o?t.items.push({start:i,key:null,sep:[this.sourceToken]}):$h(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let a=this.flowScalar(this.type);o||r.value?(t.items.push({start:i,key:a,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(a):(Object.assign(r,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{let a=this.startBlockValue(t);if(a){if(a.type==="block-seq"){if(!r.explicitKey&&r.sep&&!$h(r.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else n&&t.items.push({start:i});this.stack.push(a);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){let r=t.items[t.items.length-1];switch(this.type){case"newline":if(r.value){let n="end"in r.value?r.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,t.indent)){let o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,r.start),o.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=t.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;r.value||$h(r.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>t.indent){let n=this.startBlockValue(t);if(n){this.stack.push(n);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){let r=t.items[t.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n?.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?t.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let o=this.flowScalar(this.type);!r||r.value?t.items.push({start:[],key:o,sep:[]}):r.sep?this.stack.push(o):Object.assign(r,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}let n=this.startBlockValue(t);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===t.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){let o=ZN(n),i=Y1(o);EEe(t);let a=t.end.splice(1,t.end.length);a.push(this.sourceToken);let s={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let r=this.source.indexOf(` +`,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){let r=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){let n="end"in r.value?r.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,t.indent)){let o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,r.start),o.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=t.indent){let n=!this.onKeyLine&&this.indent===t.indent,o=n&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind",i=[];if(o&&r.sep&&!r.value){let a=[];for(let s=0;st.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(i=r.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":o||r.value?(i.push(this.sourceToken),t.items.push({start:i}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):o||r.value?(i.push(this.sourceToken),t.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(r.explicitKey)if(r.sep)if(r.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Bh(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(AEe(r.key)&&!Bh(r.sep,"newline")){let a=rb(r.start),s=r.key,c=r.sep;c.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:s,sep:c}]})}else i.length>0?r.sep=r.sep.concat(i,this.sourceToken):r.sep.push(this.sourceToken);else if(Bh(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{let a=rb(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||o?t.items.push({start:i,key:null,sep:[this.sourceToken]}):Bh(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let a=this.flowScalar(this.type);o||r.value?(t.items.push({start:i,key:a,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(a):(Object.assign(r,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{let a=this.startBlockValue(t);if(a){if(a.type==="block-seq"){if(!r.explicitKey&&r.sep&&!Bh(r.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else n&&t.items.push({start:i});this.stack.push(a);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){let r=t.items[t.items.length-1];switch(this.type){case"newline":if(r.value){let n="end"in r.value?r.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,t.indent)){let o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,r.start),o.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=t.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;r.value||Bh(r.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>t.indent){let n=this.startBlockValue(t);if(n){this.stack.push(n);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){let r=t.items[t.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n?.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?t.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let o=this.flowScalar(this.type);!r||r.value?t.items.push({start:[],key:o,sep:[]}):r.sep?this.stack.push(o):Object.assign(r,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}let n=this.startBlockValue(t);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===t.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){let o=QN(n),i=rb(o);DEe(t);let a=t.end.splice(1,t.end.length);a.push(this.sourceToken);let s={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let r=this.source.indexOf(` `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(` -`,r)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let r=ZN(t),n=Y1(r);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let r=ZN(t),n=Y1(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,r){return this.type!=="comment"||this.indent<=r?!1:t.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};DEe.Parser=PW});var CEe=L(UA=>{"use strict";var AEe=gW(),nbt=NA(),qA=LA(),obt=hZ(),ibt=qn(),abt=CW(),wEe=OW();function IEe(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new abt.LineCounter||null,prettyErrors:t}}function sbt(e,t={}){let{lineCounter:r,prettyErrors:n}=IEe(t),o=new wEe.Parser(r?.addNewLine),i=new AEe.Composer(t),a=Array.from(i.compose(o.parse(e)));if(n&&r)for(let s of a)s.errors.forEach(qA.prettifyError(e,r)),s.warnings.forEach(qA.prettifyError(e,r));return a.length>0?a:Object.assign([],{empty:!0},i.streamInfo())}function kEe(e,t={}){let{lineCounter:r,prettyErrors:n}=IEe(t),o=new wEe.Parser(r?.addNewLine),i=new AEe.Composer(t),a=null;for(let s of i.compose(o.parse(e),!0,e.length))if(!a)a=s;else if(a.options.logLevel!=="silent"){a.errors.push(new qA.YAMLParseError(s.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&r&&(a.errors.forEach(qA.prettifyError(e,r)),a.warnings.forEach(qA.prettifyError(e,r))),a}function cbt(e,t,r){let n;typeof t=="function"?n=t:r===void 0&&t&&typeof t=="object"&&(r=t);let o=kEe(e,r);if(!o)return null;if(o.warnings.forEach(i=>obt.warn(o.options.logLevel,i)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:n},r))}function lbt(e,t,r){let n=null;if(typeof t=="function"||Array.isArray(t)?n=t:r===void 0&&t&&(r=t),typeof r=="string"&&(r=r.length),typeof r=="number"){let o=Math.round(r);r=o<1?void 0:o>8?{indent:8}:{indent:o}}if(e===void 0){let{keepUndefined:o}=r??t??{};if(!o)return}return ibt.isDocument(e)&&!n?e.toString(r):new nbt.Document(e,n,r).toString(r)}UA.parse=cbt;UA.parseAllDocuments=sbt;UA.parseDocument=kEe;UA.stringify=lbt});var OEe=L(so=>{"use strict";var ubt=gW(),pbt=NA(),dbt=XZ(),NW=LA(),_bt=hA(),Mh=qn(),fbt=Nh(),mbt=Vi(),hbt=Rh(),ybt=Lh(),gbt=GN(),Sbt=IW(),vbt=CW(),bbt=OW(),WN=CEe(),PEe=dA();so.Composer=ubt.Composer;so.Document=pbt.Document;so.Schema=dbt.Schema;so.YAMLError=NW.YAMLError;so.YAMLParseError=NW.YAMLParseError;so.YAMLWarning=NW.YAMLWarning;so.Alias=_bt.Alias;so.isAlias=Mh.isAlias;so.isCollection=Mh.isCollection;so.isDocument=Mh.isDocument;so.isMap=Mh.isMap;so.isNode=Mh.isNode;so.isPair=Mh.isPair;so.isScalar=Mh.isScalar;so.isSeq=Mh.isSeq;so.Pair=fbt.Pair;so.Scalar=mbt.Scalar;so.YAMLMap=hbt.YAMLMap;so.YAMLSeq=ybt.YAMLSeq;so.CST=gbt;so.Lexer=Sbt.Lexer;so.LineCounter=vbt.LineCounter;so.Parser=bbt.Parser;so.parse=WN.parse;so.parseAllDocuments=WN.parseAllDocuments;so.parseDocument=WN.parseDocument;so.stringify=WN.stringify;so.visit=PEe.visit;so.visitAsync=PEe.visitAsync});import*as Mr from"effect/Schema";var uIe=Mr.Struct({inputTypePreview:Mr.optional(Mr.String),outputTypePreview:Mr.optional(Mr.String),inputSchema:Mr.optional(Mr.Unknown),outputSchema:Mr.optional(Mr.Unknown),exampleInput:Mr.optional(Mr.Unknown),exampleOutput:Mr.optional(Mr.Unknown)}),Hd={"~standard":{version:1,vendor:"@executor/codemode-core",validate:e=>({value:e})}},aC=Mr.Struct({path:Mr.String,sourceKey:Mr.String,description:Mr.optional(Mr.String),interaction:Mr.optional(Mr.Union(Mr.Literal("auto"),Mr.Literal("required"))),elicitation:Mr.optional(Mr.Unknown),contract:Mr.optional(uIe),providerKind:Mr.optional(Mr.String),providerData:Mr.optional(Mr.Unknown)}),jX=Mr.Struct({namespace:Mr.String,displayName:Mr.optional(Mr.String),toolCount:Mr.optional(Mr.Number)});var kte=e0(Ite(),1);var LOe=new kte.default({allErrors:!0,strict:!1,validateSchema:!1,allowUnionTypes:!0}),$Oe=e=>{let t=e.replaceAll("~1","/").replaceAll("~0","~");return/^\d+$/.test(t)?Number(t):t},MOe=e=>{if(!(!e||e.length===0||e==="/"))return e.split("/").slice(1).filter(t=>t.length>0).map($Oe)},jOe=e=>{let t=e.keyword.trim(),r=(e.message??"Invalid value").trim();return t.length>0?`${t}: ${r}`:r},Hx=(e,t)=>{try{let r=LOe.compile(e);return{"~standard":{version:1,vendor:t?.vendor??"json-schema",validate:n=>{if(r(n))return{value:n};let i=(r.errors??[]).map(a=>({message:jOe(a),path:MOe(a.instancePath)}));return{issues:i.length>0?i:[{message:"Invalid value"}]}}}}}catch{return t?.fallback??Hd}};var g0=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},BOe=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"):[],Zx=(e,t)=>e.length<=t?e:`${e.slice(0,Math.max(0,t-4))} ...`,qOe=/^[A-Za-z_$][A-Za-z0-9_$]*$/,UOe=e=>qOe.test(e)?e:JSON.stringify(e),tL=(e,t,r)=>{let n=Array.isArray(t[e])?t[e].map(g0):[];if(n.length===0)return null;let o=n.map(i=>r(i)).filter(i=>i.length>0);return o.length===0?null:o.join(e==="allOf"?" & ":" | ")},Pte=e=>e.startsWith("#/")?e.slice(2).split("/").map(t=>t.replace(/~1/g,"/").replace(/~0/g,"~")):null,zOe=(e,t)=>{let r=Pte(t);if(!r||r.length===0)return null;let n=e;for(let i of r){let a=g0(n);if(!(i in a))return null;n=a[i]}let o=g0(n);return Object.keys(o).length>0?o:null},Cte=e=>Pte(e)?.at(-1)??e,VOe=(e,t={})=>{let r=g0(e),n=t.maxLength??220,o=Number.isFinite(n),i=t.maxDepth??(o?4:Number.POSITIVE_INFINITY),a=t.maxProperties??(o?6:Number.POSITIVE_INFINITY),s=(c,p,d)=>{let f=g0(c);if(d<=0){if(typeof f.title=="string"&&f.title.length>0)return f.title;if(f.type==="array")return"unknown[]";if(f.type==="object"||f.properties)return f.additionalProperties?"Record":"object"}if(typeof f.$ref=="string"){let g=f.$ref.trim();if(g.length===0)return"unknown";if(p.has(g))return Cte(g);let S=zOe(r,g);return S?s(S,new Set([...p,g]),d-1):Cte(g)}if("const"in f)return JSON.stringify(f.const);let m=Array.isArray(f.enum)?f.enum:[];if(m.length>0)return Zx(m.map(g=>JSON.stringify(g)).join(" | "),n);let y=tL("oneOf",f,g=>s(g,p,d-1))??tL("anyOf",f,g=>s(g,p,d-1))??tL("allOf",f,g=>s(g,p,d-1));if(y)return Zx(y,n);if(f.type==="array"){let g=f.items?s(f.items,p,d-1):"unknown";return Zx(`${g}[]`,n)}if(f.type==="object"||f.properties){let g=g0(f.properties),S=Object.keys(g);if(S.length===0)return f.additionalProperties?"Record":"object";let x=new Set(BOe(f.required)),A=S.slice(0,a),I=A.map(E=>`${UOe(E)}${x.has(E)?"":"?"}: ${s(g[E],p,d-1)}`);return A.lengthVOe(e,{maxLength:t});var hu=(e,t,r=220)=>{if(e===void 0)return t;try{return JOe(e,r)}catch{return t}};import*as aL from"effect/Data";import*as yi from"effect/Effect";import*as Fte from"effect/JSONSchema";import*as Ote from"effect/Data";var rL=class extends Ote.TaggedError("KernelCoreEffectError"){},Wx=(e,t)=>new rL({module:e,message:t});var KOe=e=>e,sL=e=>e instanceof Error?e:new Error(String(e)),GOe=e=>{if(!e||typeof e!="object"&&typeof e!="function")return null;let t=e["~standard"];if(!t||typeof t!="object")return null;let r=t.validate;return typeof r=="function"?r:null},HOe=e=>!e||e.length===0?"$":e.map(t=>typeof t=="object"&&t!==null&&"key"in t?String(t.key):String(t)).join("."),ZOe=e=>e.map(t=>`${HOe(t.path)}: ${t.message}`).join("; "),Rte=e=>{let t=GOe(e.schema);return t?yi.tryPromise({try:()=>Promise.resolve(t(e.value)),catch:sL}).pipe(yi.flatMap(r=>"issues"in r&&r.issues?yi.fail(Wx("tool-map",`Input validation failed for ${e.path}: ${ZOe(r.issues)}`)):yi.succeed(r.value))):yi.fail(Wx("tool-map",`Tool ${e.path} has no Standard Schema validator on inputSchema`))},WOe=e=>({mode:"form",message:`Approval required before invoking ${e}`,requestedSchema:{type:"object",properties:{},additionalProperties:!1}}),QOe={kind:"execute"},XOe=e=>e.metadata?.elicitation?{kind:"elicit",elicitation:e.metadata.elicitation}:e.metadata?.interaction==="required"?{kind:"elicit",elicitation:WOe(e.path)}:null,YOe=e=>XOe(e)??QOe,iL=class extends aL.TaggedError("ToolInteractionPendingError"){},BC=class extends aL.TaggedError("ToolInteractionDeniedError"){};var e4e=e=>{let t=YOe({metadata:e.metadata,path:e.path});if(!e.onToolInteraction)return yi.succeed(t);let r={path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.metadata,context:e.context,defaultElicitation:t.kind==="elicit"?t.elicitation:null};return e.onToolInteraction(r)},t4e=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),r4e=e=>{if(!e.response.content)return yi.succeed(e.args);if(!t4e(e.args))return yi.fail(Wx("tool-map",`Tool ${e.path} cannot merge elicitation content into non-object arguments`));let t={...e.args,...e.response.content};return Rte({schema:e.inputSchema,value:t,path:e.path})},n4e=e=>{let t=e.response.content&&typeof e.response.content.reason=="string"&&e.response.content.reason.trim().length>0?e.response.content.reason.trim():null;return t||(e.response.action==="cancel"?`Interaction cancelled for ${e.path}`:`Interaction declined for ${e.path}`)},o4e=e=>{if(e.decision.kind==="execute")return yi.succeed(e.args);if(e.decision.kind==="decline")return yi.fail(new BC({path:e.path,reason:e.decision.reason}));if(!e.onElicitation)return yi.fail(new iL({path:e.path,elicitation:e.decision.elicitation,interactionId:e.interactionId}));let t={interactionId:e.interactionId,path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.metadata,context:e.context,elicitation:e.decision.elicitation};return e.onElicitation(t).pipe(yi.mapError(sL),yi.flatMap(r=>r.action!=="accept"?yi.fail(new BC({path:e.path,reason:n4e({path:e.path,response:r})})):r4e({path:e.path,args:e.args,response:r,inputSchema:e.inputSchema})))};function i4e(e){return{tool:e.tool,metadata:e.metadata}}var Sl=i4e;var a4e=e=>typeof e=="object"&&e!==null&&"tool"in e,nL=e=>{if(e!=null)try{return(typeof e=="object"||typeof e=="function")&&e!==null&&"~standard"in e?Fte.make(e):e}catch{return}},Nte=(e,t,r=240)=>hu(e,t,r);var Lte=e=>{let t=e.sourceKey??"in_memory.tools";return Object.entries(e.tools).sort(([r],[n])=>r.localeCompare(n)).map(([r,n])=>{let o=a4e(n)?n:{tool:n},i=o.metadata?{sourceKey:t,...o.metadata}:{sourceKey:t};return{path:KOe(r),tool:o.tool,metadata:i}})};function $te(e){return Lte({tools:e.tools,sourceKey:e.sourceKey}).map(r=>{let n=r.metadata,o=r.tool,i=n?.contract?.inputSchema??nL(o.inputSchema)??nL(o.parameters),a=n?.contract?.outputSchema??nL(o.outputSchema),s={inputTypePreview:n?.contract?.inputTypePreview??Nte(i,"unknown"),outputTypePreview:n?.contract?.outputTypePreview??Nte(a,"unknown"),...i!==void 0?{inputSchema:i}:{},...a!==void 0?{outputSchema:a}:{},...n?.contract?.exampleInput!==void 0?{exampleInput:n.contract.exampleInput}:{},...n?.contract?.exampleOutput!==void 0?{exampleOutput:n.contract.exampleOutput}:{}};return{path:r.path,sourceKey:n?.sourceKey??"in_memory.tools",description:o.description,interaction:n?.interaction,elicitation:n?.elicitation,contract:s,...n?.providerKind?{providerKind:n.providerKind}:{},...n?.providerData!==void 0?{providerData:n.providerData}:{}}})}var oL=e=>e.replace(/[^a-zA-Z0-9._-]/g,"_"),s4e=()=>{let e=0;return t=>{e+=1;let r=typeof t.context?.runId=="string"&&t.context.runId.length>0?t.context.runId:"run",n=typeof t.context?.callId=="string"&&t.context.callId.length>0?t.context.callId:`call_${String(e)}`;return`${oL(r)}:${oL(n)}:${oL(String(t.path))}:${String(e)}`}},Yd=e=>{let t=Lte({tools:e.tools,sourceKey:e.sourceKey}),r=new Map(t.map(o=>[o.path,o])),n=s4e();return{invoke:({path:o,args:i,context:a})=>yi.gen(function*(){let s=r.get(o);if(!s)return yield*Wx("tool-map",`Unknown tool path: ${o}`);let c=yield*Rte({schema:s.tool.inputSchema,value:i,path:o}),p=yield*e4e({path:s.path,args:c,metadata:s.metadata,sourceKey:s.metadata?.sourceKey??"in_memory.tools",context:a,onToolInteraction:e.onToolInteraction}),d=p.kind==="elicit"&&p.interactionId?p.interactionId:n({path:s.path,context:a}),f=yield*o4e({path:s.path,args:c,inputSchema:s.tool.inputSchema,metadata:s.metadata,sourceKey:s.metadata?.sourceKey??"in_memory.tools",context:a,decision:p,interactionId:d,onElicitation:e.onElicitation});return yield*yi.tryPromise({try:()=>Promise.resolve(s.tool.execute(f,{path:s.path,sourceKey:s.metadata?.sourceKey??"in_memory.tools",metadata:s.metadata,invocation:a,onElicitation:e.onElicitation})),catch:sL})})}};import*as Zi from"effect/Effect";var Mte=e=>e.toLowerCase().split(/\W+/).map(t=>t.trim()).filter(Boolean),c4e=e=>[e.path,e.sourceKey,e.description??"",e.contract?.inputTypePreview??"",e.contract?.outputTypePreview??""].join(" ").toLowerCase(),qC=(e,t)=>{let r=e.contract;if(r)return t?r:{...r.inputTypePreview!==void 0?{inputTypePreview:r.inputTypePreview}:{},...r.outputTypePreview!==void 0?{outputTypePreview:r.outputTypePreview}:{},...r.exampleInput!==void 0?{exampleInput:r.exampleInput}:{},...r.exampleOutput!==void 0?{exampleOutput:r.exampleOutput}:{}}},jte=e=>{let{descriptor:t,includeSchemas:r}=e;return r?t:{...t,...qC(t,!1)?{contract:qC(t,!1)}:{}}};var l4e=e=>{let[t,r]=e.split(".");return r?`${t}.${r}`:t},cL=e=>e.namespace??l4e(e.descriptor.path),Bte=e=>e.searchText?.trim().toLowerCase()||c4e(e.descriptor),u4e=(e,t)=>{if(t.score)return t.score(e);let r=Bte(t);return e.reduce((n,o)=>n+(r.includes(o)?1:0),0)},p4e=e=>{let t=new Map;for(let r of e)for(let n of r){let o=t.get(n.namespace);t.set(n.namespace,{namespace:n.namespace,displayName:o?.displayName??n.displayName,...o?.toolCount!==void 0||n.toolCount!==void 0?{toolCount:(o?.toolCount??0)+(n.toolCount??0)}:{}})}return[...t.values()].sort((r,n)=>r.namespace.localeCompare(n.namespace))},d4e=e=>{let t=new Map;for(let r of e)for(let n of r)t.has(n.path)||t.set(n.path,n);return[...t.values()].sort((r,n)=>r.path.localeCompare(n.path))},_4e=e=>{let t=new Map;for(let r of e)for(let n of r)t.has(n.path)||t.set(n.path,n);return[...t.values()].sort((r,n)=>n.score-r.score||r.path.localeCompare(n.path))};function e_(e){return lL({entries:$te({tools:e.tools}).map(t=>({descriptor:t,...e.defaultNamespace!==void 0?{namespace:e.defaultNamespace}:{}}))})}function lL(e){let t=[...e.entries],r=new Map(t.map(o=>[o.descriptor.path,o])),n=new Map;for(let o of t){let i=cL(o);n.set(i,(n.get(i)??0)+1)}return{listNamespaces:({limit:o})=>Zi.succeed([...n.entries()].map(([i,a])=>({namespace:i,toolCount:a})).slice(0,o)),listTools:({namespace:o,query:i,limit:a,includeSchemas:s=!1})=>Zi.succeed(t.filter(c=>!o||cL(c)===o).filter(c=>{if(!i)return!0;let p=Bte(c);return Mte(i).every(d=>p.includes(d))}).slice(0,a).map(c=>jte({descriptor:c.descriptor,includeSchemas:s}))),getToolByPath:({path:o,includeSchemas:i})=>Zi.succeed(r.get(o)?jte({descriptor:r.get(o).descriptor,includeSchemas:i}):null),searchTools:({query:o,namespace:i,limit:a})=>{let s=Mte(o);return Zi.succeed(t.filter(c=>!i||cL(c)===i).map(c=>({path:c.descriptor.path,score:u4e(s,c)})).filter(c=>c.score>0).sort((c,p)=>p.score-c.score).slice(0,a))}}}function qte(e){let t=[...e.catalogs];return{listNamespaces:({limit:r})=>Zi.gen(function*(){let n=yield*Zi.forEach(t,o=>o.listNamespaces({limit:Math.max(r,r*t.length)}),{concurrency:"unbounded"});return p4e(n).slice(0,r)}),listTools:({namespace:r,query:n,limit:o,includeSchemas:i=!1})=>Zi.gen(function*(){let a=yield*Zi.forEach(t,s=>s.listTools({...r!==void 0?{namespace:r}:{},...n!==void 0?{query:n}:{},limit:Math.max(o,o*t.length),includeSchemas:i}),{concurrency:"unbounded"});return d4e(a).slice(0,o)}),getToolByPath:({path:r,includeSchemas:n})=>Zi.gen(function*(){for(let o of t){let i=yield*o.getToolByPath({path:r,includeSchemas:n});if(i)return i}return null}),searchTools:({query:r,namespace:n,limit:o})=>Zi.gen(function*(){let i=yield*Zi.forEach(t,a=>a.searchTools({query:r,...n!==void 0?{namespace:n}:{},limit:Math.max(o,o*t.length)}),{concurrency:"unbounded"});return _4e(i).slice(0,o)})}}function Ute(e){let{catalog:t}=e;return{catalog:{namespaces:({limit:i=200})=>t.listNamespaces({limit:i}).pipe(Zi.map(a=>({namespaces:a}))),tools:({namespace:i,query:a,limit:s=200,includeSchemas:c=!1})=>t.listTools({...i!==void 0?{namespace:i}:{},...a!==void 0?{query:a}:{},limit:s,includeSchemas:c}).pipe(Zi.map(p=>({results:p})))},describe:{tool:({path:i,includeSchemas:a=!1})=>t.getToolByPath({path:i,includeSchemas:a})},discover:({query:i,sourceKey:a,limit:s=12,includeSchemas:c=!1})=>Zi.gen(function*(){let p=yield*t.searchTools({query:i,limit:s});if(p.length===0)return{bestPath:null,results:[],total:0};let d=yield*Zi.forEach(p,m=>t.getToolByPath({path:m.path,includeSchemas:c}),{concurrency:"unbounded"}),f=p.map((m,y)=>{let g=d[y];return g?{path:g.path,score:m.score,description:g.description,interaction:g.interaction??"auto",...qC(g,c)?{contract:qC(g,c)}:{}}:null}).filter(Boolean);return{bestPath:f[0]?.path??null,results:f,total:f.length}})}}import*as Qx from"effect/Effect";import*as or from"effect/Schema";var f4e=e=>e,m4e=or.standardSchemaV1(or.Struct({limit:or.optional(or.Number)})),h4e=or.standardSchemaV1(or.Struct({namespaces:or.Array(jX)})),y4e=or.standardSchemaV1(or.Struct({namespace:or.optional(or.String),query:or.optional(or.String),limit:or.optional(or.Number),includeSchemas:or.optional(or.Boolean)})),g4e=or.standardSchemaV1(or.Struct({results:or.Array(aC)})),S4e=or.standardSchemaV1(or.Struct({path:or.String,includeSchemas:or.optional(or.Boolean)})),v4e=or.standardSchemaV1(or.NullOr(aC)),b4e=or.standardSchemaV1(or.Struct({query:or.String,limit:or.optional(or.Number),includeSchemas:or.optional(or.Boolean)})),x4e=or.extend(aC,or.Struct({score:or.Number})),E4e=or.standardSchemaV1(or.Struct({bestPath:or.NullOr(or.String),results:or.Array(x4e),total:or.Number})),zte=e=>{let t=e.sourceKey??"system",r=()=>{if(e.catalog)return e.catalog;if(e.getCatalog)return e.getCatalog();throw new Error("createSystemToolMap requires a catalog or getCatalog")},n=()=>Ute({catalog:r()}),o={};return o["catalog.namespaces"]=Sl({tool:{description:"List available namespaces with display names and tool counts",inputSchema:m4e,outputSchema:h4e,execute:({limit:i})=>Qx.runPromise(n().catalog.namespaces(i!==void 0?{limit:i}:{}))},metadata:{sourceKey:t,interaction:"auto"}}),o["catalog.tools"]=Sl({tool:{description:"List tools with optional namespace and query filters",inputSchema:y4e,outputSchema:g4e,execute:i=>Qx.runPromise(n().catalog.tools({...i.namespace!==void 0?{namespace:i.namespace}:{},...i.query!==void 0?{query:i.query}:{},...i.limit!==void 0?{limit:i.limit}:{},...i.includeSchemas!==void 0?{includeSchemas:i.includeSchemas}:{}}))},metadata:{sourceKey:t,interaction:"auto"}}),o["describe.tool"]=Sl({tool:{description:"Get metadata and optional schemas for a tool path",inputSchema:S4e,outputSchema:v4e,execute:({path:i,includeSchemas:a})=>Qx.runPromise(n().describe.tool({path:f4e(i),...a!==void 0?{includeSchemas:a}:{}}))},metadata:{sourceKey:t,interaction:"auto"}}),o.discover=Sl({tool:{description:"Search tools by intent and return ranked matches",inputSchema:b4e,outputSchema:E4e,execute:i=>Qx.runPromise(n().discover({query:i.query,...i.limit!==void 0?{limit:i.limit}:{},...i.includeSchemas!==void 0?{includeSchemas:i.includeSchemas}:{}}))},metadata:{sourceKey:t,interaction:"auto"}}),o},Vte=(e,t={})=>{let r=t.conflictMode??"throw",n={};for(let o of e)for(let[i,a]of Object.entries(o)){if(r==="throw"&&i in n)throw new Error(`Tool path conflict: ${i}`);n[i]=a}return n};var Jte=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),T4e=e=>e.replaceAll("~1","/").replaceAll("~0","~"),D4e=e=>{let t=e.trim();return t.length===0?[]:t.startsWith("/")?t.split("/").slice(1).map(T4e).filter(r=>r.length>0):t.split(".").filter(r=>r.length>0)},A4e=(e,t)=>{let r=t.toLowerCase();for(let n of Object.keys(e))if(n.toLowerCase()===r)return n;return null},w4e=e=>{let t={};for(let r of e.split(";")){let n=r.trim();if(n.length===0)continue;let o=n.indexOf("=");if(o===-1){t[n]="";continue}let i=n.slice(0,o).trim(),a=n.slice(o+1).trim();i.length>0&&(t[i]=a)}return t},I4e=(e,t,r)=>{let n=e;for(let o=0;o{let t=e.url instanceof URL?new URL(e.url.toString()):new URL(e.url);for(let[r,n]of Object.entries(e.queryParams??{}))t.searchParams.set(r,n);return t},Tc=e=>{let t=e.cookies??{};if(Object.keys(t).length===0)return{...e.headers};let r=A4e(e.headers,"cookie"),n=r?e.headers[r]:null,o={...n?w4e(n):{},...t},i={...e.headers};return i[r??"cookie"]=Object.entries(o).map(([a,s])=>`${a}=${encodeURIComponent(s)}`).join("; "),i},t_=e=>{let t=e.bodyValues??{};if(Object.keys(t).length===0)return e.body;let r=e.body==null?{}:Jte(e.body)?structuredClone(e.body):null;if(r===null)throw new Error(`${e.label??"HTTP request"} auth body placements require an object JSON body`);for(let[n,o]of Object.entries(t)){let i=D4e(n);if(i.length===0)throw new Error(`${e.label??"HTTP request"} auth body placement path cannot be empty`);I4e(r,i,o)}return r};var k4e=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),vp=(e,t)=>e>>>t|e<<32-t,C4e=(e,t)=>{let r=new Uint32Array(64);for(let f=0;f<16;f++)r[f]=t[f];for(let f=16;f<64;f++){let m=vp(r[f-15],7)^vp(r[f-15],18)^r[f-15]>>>3,y=vp(r[f-2],17)^vp(r[f-2],19)^r[f-2]>>>10;r[f]=r[f-16]+m+r[f-7]+y|0}let n=e[0],o=e[1],i=e[2],a=e[3],s=e[4],c=e[5],p=e[6],d=e[7];for(let f=0;f<64;f++){let m=vp(s,6)^vp(s,11)^vp(s,25),y=s&c^~s&p,g=d+m+y+k4e[f]+r[f]|0,S=vp(n,2)^vp(n,13)^vp(n,22),x=n&o^n&i^o&i,A=S+x|0;d=p,p=c,c=s,s=a+g|0,a=i,i=o,o=n,n=g+A|0}e[0]=e[0]+n|0,e[1]=e[1]+o|0,e[2]=e[2]+i|0,e[3]=e[3]+a|0,e[4]=e[4]+s|0,e[5]=e[5]+c|0,e[6]=e[6]+p|0,e[7]=e[7]+d|0},P4e=e=>{if(typeof TextEncoder<"u")return new TextEncoder().encode(e);let t=[];for(let r=0;r>6,128|n&63);else if(n>=55296&&n<56320&&r+1>18,128|n>>12&63,128|n>>6&63,128|n&63)}else t.push(224|n>>12,128|n>>6&63,128|n&63)}return new Uint8Array(t)},O4e=e=>{let t=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),r=e.length*8,n=new Uint8Array(Math.ceil((e.length+9)/64)*64);n.set(e),n[e.length]=128;let o=new DataView(n.buffer);o.setUint32(n.length-4,r,!1),r>4294967295&&o.setUint32(n.length-8,Math.floor(r/4294967296),!1);let i=new Uint32Array(16);for(let c=0;c{let t="";for(let r=0;rN4e(O4e(P4e(e)));import*as Yc from"effect/Effect";import*as zF from"effect/Option";import*as Kte from"effect/Data";import*as Ao from"effect/Effect";import*as Gte from"effect/Exit";import*as S0 from"effect/Scope";var UC=class extends Kte.TaggedError("McpConnectionPoolError"){},r_=new Map,Hte=e=>new UC(e),F4e=(e,t,r)=>{let n=r_.get(e);!n||n.get(t)!==r||(n.delete(t),n.size===0&&r_.delete(e))},R4e=e=>Ao.tryPromise({try:()=>Promise.resolve(e.close?.()),catch:t=>Hte({operation:"close",message:"Failed closing pooled MCP connection",cause:t})}).pipe(Ao.ignore),L4e=e=>{let t=Ao.runSync(S0.make()),r=Ao.runSync(Ao.cached(Ao.acquireRelease(e.pipe(Ao.mapError(n=>Hte({operation:"connect",message:"Failed creating pooled MCP connection",cause:n}))),R4e).pipe(S0.extend(t))));return{scope:t,connection:r}},$4e=e=>{let t=r_.get(e.runId)?.get(e.sourceKey);if(t)return t;let r=r_.get(e.runId);r||(r=new Map,r_.set(e.runId,r));let n=L4e(e.connect);return n.connection=n.connection.pipe(Ao.tapError(()=>Ao.sync(()=>{F4e(e.runId,e.sourceKey,n)}).pipe(Ao.zipRight(uL(n))))),r.set(e.sourceKey,n),n},uL=e=>S0.close(e.scope,Gte.void).pipe(Ao.ignore),pL=e=>!e.runId||!e.sourceKey?e.connect:Ao.gen(function*(){return{client:(yield*$4e({runId:e.runId,sourceKey:e.sourceKey,connect:e.connect}).connection).client,close:async()=>{}}}),zC=e=>{let t=r_.get(e);return t?(r_.delete(e),Ao.forEach([...t.values()],uL,{discard:!0})):Ao.void},dL=()=>{let e=[...r_.values()].flatMap(t=>[...t.values()]);return r_.clear(),Ao.forEach(e,uL,{discard:!0})};var gn;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function r(o){throw new Error}e.assertNever=r,e.arrayToEnum=o=>{let i={};for(let a of o)i[a]=a;return i},e.getValidEnumValues=o=>{let i=e.objectKeys(o).filter(s=>typeof o[o[s]]!="number"),a={};for(let s of i)a[s]=o[s];return e.objectValues(a)},e.objectValues=o=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let i=[];for(let a in o)Object.prototype.hasOwnProperty.call(o,a)&&i.push(a);return i},e.find=(o,i)=>{for(let a of o)if(i(a))return a},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function n(o,i=" | "){return o.map(a=>typeof a=="string"?`'${a}'`:a).join(i)}e.joinValues=n,e.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(gn||(gn={}));var Zte;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Zte||(Zte={}));var gt=gn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),n_=e=>{switch(typeof e){case"undefined":return gt.undefined;case"string":return gt.string;case"number":return Number.isNaN(e)?gt.nan:gt.number;case"boolean":return gt.boolean;case"function":return gt.function;case"bigint":return gt.bigint;case"symbol":return gt.symbol;case"object":return Array.isArray(e)?gt.array:e===null?gt.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?gt.promise:typeof Map<"u"&&e instanceof Map?gt.map:typeof Set<"u"&&e instanceof Set?gt.set:typeof Date<"u"&&e instanceof Date?gt.date:gt.object;default:return gt.unknown}};var Je=gn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var Ac=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(i){return i.message},n={_errors:[]},o=i=>{for(let a of i.issues)if(a.code==="invalid_union")a.unionErrors.map(o);else if(a.code==="invalid_return_type")o(a.returnTypeError);else if(a.code==="invalid_arguments")o(a.argumentsError);else if(a.path.length===0)n._errors.push(r(a));else{let s=n,c=0;for(;cr.message){let r=Object.create(null),n=[];for(let o of this.issues)if(o.path.length>0){let i=o.path[0];r[i]=r[i]||[],r[i].push(t(o))}else n.push(t(o));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Ac.create=e=>new Ac(e);var M4e=(e,t)=>{let r;switch(e.code){case Je.invalid_type:e.received===gt.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case Je.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,gn.jsonStringifyReplacer)}`;break;case Je.unrecognized_keys:r=`Unrecognized key(s) in object: ${gn.joinValues(e.keys,", ")}`;break;case Je.invalid_union:r="Invalid input";break;case Je.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${gn.joinValues(e.options)}`;break;case Je.invalid_enum_value:r=`Invalid enum value. Expected ${gn.joinValues(e.options)}, received '${e.received}'`;break;case Je.invalid_arguments:r="Invalid function arguments";break;case Je.invalid_return_type:r="Invalid function return type";break;case Je.invalid_date:r="Invalid date";break;case Je.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:gn.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case Je.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case Je.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case Je.custom:r="Invalid input";break;case Je.invalid_intersection_types:r="Intersection results could not be merged";break;case Je.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Je.not_finite:r="Number must be finite";break;default:r=t.defaultError,gn.assertNever(e)}return{message:r}},Zf=M4e;var j4e=Zf;function Xx(){return j4e}var VC=e=>{let{data:t,path:r,errorMaps:n,issueData:o}=e,i=[...r,...o.path||[]],a={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let s="",c=n.filter(p=>!!p).slice().reverse();for(let p of c)s=p(a,{data:t,defaultError:s}).message;return{...o,path:i,message:s}};function ft(e,t){let r=Xx(),n=VC({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Zf?void 0:Zf].filter(o=>!!o)});e.common.issues.push(n)}var ts=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let n=[];for(let o of r){if(o.status==="aborted")return yr;o.status==="dirty"&&t.dirty(),n.push(o.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let o of r){let i=await o.key,a=await o.value;n.push({key:i,value:a})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let o of r){let{key:i,value:a}=o;if(i.status==="aborted"||a.status==="aborted")return yr;i.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof a.value<"u"||o.alwaysSet)&&(n[i.value]=a.value)}return{status:t.value,value:n}}},yr=Object.freeze({status:"aborted"}),v0=e=>({status:"dirty",value:e}),bs=e=>({status:"valid",value:e}),_L=e=>e.status==="aborted",fL=e=>e.status==="dirty",Ny=e=>e.status==="valid",Yx=e=>typeof Promise<"u"&&e instanceof Promise;var Lt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Lt||(Lt={}));var vl=class{constructor(t,r,n,o){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Wte=(e,t)=>{if(Ny(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Ac(e.common.issues);return this._error=r,this._error}}};function jr(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(a,s)=>{let{message:c}=e;return a.code==="invalid_enum_value"?{message:c??s.defaultError}:typeof s.data>"u"?{message:c??n??s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:c??r??s.defaultError}},description:o}}var an=class{get description(){return this._def.description}_getType(t){return n_(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:n_(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ts,ctx:{common:t.parent.common,data:t.data,parsedType:n_(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(Yx(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:n_(t)},o=this._parseSync({data:t,path:n.path,parent:n});return Wte(n,o)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:n_(t)};if(!this["~standard"].async)try{let n=this._parseSync({data:t,path:[],parent:r});return Ny(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(n=>Ny(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:n_(t)},o=this._parse({data:t,path:n.path,parent:n}),i=await(Yx(o)?o:Promise.resolve(o));return Wte(n,i)}refine(t,r){let n=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,i)=>{let a=t(o),s=()=>i.addIssue({code:Je.custom,...n(o)});return typeof Promise<"u"&&a instanceof Promise?a.then(c=>c?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,r){return this._refinement((n,o)=>t(n)?!0:(o.addIssue(typeof r=="function"?r(n,o):r),!1))}_refinement(t){return new Su({schema:this,typeName:sr.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return gu.create(this,this._def)}nullable(){return a_.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Qf.create(this)}promise(){return Fy.create(this,this._def)}or(t){return D0.create([this,t],this._def)}and(t){return A0.create(this,t,this._def)}transform(t){return new Su({...jr(this._def),schema:this,typeName:sr.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new P0({...jr(this._def),innerType:this,defaultValue:r,typeName:sr.ZodDefault})}brand(){return new JC({typeName:sr.ZodBranded,type:this,...jr(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new O0({...jr(this._def),innerType:this,catchValue:r,typeName:sr.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return KC.create(this,t)}readonly(){return N0.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},B4e=/^c[^\s-]{8,}$/i,q4e=/^[0-9a-z]+$/,U4e=/^[0-9A-HJKMNP-TV-Z]{26}$/i,z4e=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,V4e=/^[a-z0-9_-]{21}$/i,J4e=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,K4e=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,G4e=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,H4e="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",mL,Z4e=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,W4e=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Q4e=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,X4e=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Y4e=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,eNe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Qte="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",tNe=new RegExp(`^${Qte}$`);function Xte(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function rNe(e){return new RegExp(`^${Xte(e)}$`)}function nNe(e){let t=`${Qte}T${Xte(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function oNe(e,t){return!!((t==="v4"||!t)&&Z4e.test(e)||(t==="v6"||!t)&&Q4e.test(e))}function iNe(e,t){if(!J4e.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function aNe(e,t){return!!((t==="v4"||!t)&&W4e.test(e)||(t==="v6"||!t)&&X4e.test(e))}var x0=class e extends an{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==gt.string){let i=this._getOrReturnCtx(t);return ft(i,{code:Je.invalid_type,expected:gt.string,received:i.parsedType}),yr}let n=new ts,o;for(let i of this._def.checks)if(i.kind==="min")t.data.lengthi.value&&(o=this._getOrReturnCtx(t,o),ft(o,{code:Je.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){let a=t.data.length>i.value,s=t.data.lengtht.test(o),{validation:r,code:Je.invalid_string,...Lt.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Lt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Lt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Lt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Lt.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Lt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Lt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Lt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Lt.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Lt.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Lt.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Lt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Lt.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Lt.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...Lt.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Lt.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Lt.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Lt.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...Lt.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Lt.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Lt.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Lt.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Lt.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Lt.errToObj(r)})}nonempty(t){return this.min(1,Lt.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew x0({checks:[],typeName:sr.ZodString,coerce:e?.coerce??!1,...jr(e)});function sNe(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n,i=Number.parseInt(e.toFixed(o).replace(".","")),a=Number.parseInt(t.toFixed(o).replace(".",""));return i%a/10**o}var eE=class e extends an{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==gt.number){let i=this._getOrReturnCtx(t);return ft(i,{code:Je.invalid_type,expected:gt.number,received:i.parsedType}),yr}let n,o=new ts;for(let i of this._def.checks)i.kind==="int"?gn.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),ft(n,{code:Je.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),ft(n,{code:Je.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?sNe(t.data,i.value)!==0&&(n=this._getOrReturnCtx(t,n),ft(n,{code:Je.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),ft(n,{code:Je.not_finite,message:i.message}),o.dirty()):gn.assertNever(i);return{status:o.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Lt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Lt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Lt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Lt.toString(r))}setLimit(t,r,n,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Lt.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Lt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Lt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Lt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Lt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Lt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Lt.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Lt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Lt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Lt.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.valuet.kind==="int"||t.kind==="multipleOf"&&gn.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.valuenew eE({checks:[],typeName:sr.ZodNumber,coerce:e?.coerce||!1,...jr(e)});var tE=class e extends an{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==gt.bigint)return this._getInvalidInput(t);let n,o=new ts;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),ft(n,{code:Je.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),ft(n,{code:Je.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):gn.assertNever(i);return{status:o.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return ft(r,{code:Je.invalid_type,expected:gt.bigint,received:r.parsedType}),yr}gte(t,r){return this.setLimit("min",t,!0,Lt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Lt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Lt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Lt.toString(r))}setLimit(t,r,n,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Lt.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Lt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Lt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Lt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Lt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Lt.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew tE({checks:[],typeName:sr.ZodBigInt,coerce:e?.coerce??!1,...jr(e)});var rE=class extends an{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==gt.boolean){let n=this._getOrReturnCtx(t);return ft(n,{code:Je.invalid_type,expected:gt.boolean,received:n.parsedType}),yr}return bs(t.data)}};rE.create=e=>new rE({typeName:sr.ZodBoolean,coerce:e?.coerce||!1,...jr(e)});var nE=class e extends an{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==gt.date){let i=this._getOrReturnCtx(t);return ft(i,{code:Je.invalid_type,expected:gt.date,received:i.parsedType}),yr}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return ft(i,{code:Je.invalid_date}),yr}let n=new ts,o;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()i.value&&(o=this._getOrReturnCtx(t,o),ft(o,{code:Je.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):gn.assertNever(i);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:Lt.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Lt.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew nE({checks:[],coerce:e?.coerce||!1,typeName:sr.ZodDate,...jr(e)});var oE=class extends an{_parse(t){if(this._getType(t)!==gt.symbol){let n=this._getOrReturnCtx(t);return ft(n,{code:Je.invalid_type,expected:gt.symbol,received:n.parsedType}),yr}return bs(t.data)}};oE.create=e=>new oE({typeName:sr.ZodSymbol,...jr(e)});var E0=class extends an{_parse(t){if(this._getType(t)!==gt.undefined){let n=this._getOrReturnCtx(t);return ft(n,{code:Je.invalid_type,expected:gt.undefined,received:n.parsedType}),yr}return bs(t.data)}};E0.create=e=>new E0({typeName:sr.ZodUndefined,...jr(e)});var T0=class extends an{_parse(t){if(this._getType(t)!==gt.null){let n=this._getOrReturnCtx(t);return ft(n,{code:Je.invalid_type,expected:gt.null,received:n.parsedType}),yr}return bs(t.data)}};T0.create=e=>new T0({typeName:sr.ZodNull,...jr(e)});var iE=class extends an{constructor(){super(...arguments),this._any=!0}_parse(t){return bs(t.data)}};iE.create=e=>new iE({typeName:sr.ZodAny,...jr(e)});var Wf=class extends an{constructor(){super(...arguments),this._unknown=!0}_parse(t){return bs(t.data)}};Wf.create=e=>new Wf({typeName:sr.ZodUnknown,...jr(e)});var bp=class extends an{_parse(t){let r=this._getOrReturnCtx(t);return ft(r,{code:Je.invalid_type,expected:gt.never,received:r.parsedType}),yr}};bp.create=e=>new bp({typeName:sr.ZodNever,...jr(e)});var aE=class extends an{_parse(t){if(this._getType(t)!==gt.undefined){let n=this._getOrReturnCtx(t);return ft(n,{code:Je.invalid_type,expected:gt.void,received:n.parsedType}),yr}return bs(t.data)}};aE.create=e=>new aE({typeName:sr.ZodVoid,...jr(e)});var Qf=class e extends an{_parse(t){let{ctx:r,status:n}=this._processInputParams(t),o=this._def;if(r.parsedType!==gt.array)return ft(r,{code:Je.invalid_type,expected:gt.array,received:r.parsedType}),yr;if(o.exactLength!==null){let a=r.data.length>o.exactLength.value,s=r.data.lengtho.maxLength.value&&(ft(r,{code:Je.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((a,s)=>o.type._parseAsync(new vl(r,a,r.path,s)))).then(a=>ts.mergeArray(n,a));let i=[...r.data].map((a,s)=>o.type._parseSync(new vl(r,a,r.path,s)));return ts.mergeArray(n,i)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:Lt.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:Lt.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:Lt.toString(r)}})}nonempty(t){return this.min(1,t)}};Qf.create=(e,t)=>new Qf({type:e,minLength:null,maxLength:null,exactLength:null,typeName:sr.ZodArray,...jr(t)});function b0(e){if(e instanceof wc){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=gu.create(b0(n))}return new wc({...e._def,shape:()=>t})}else return e instanceof Qf?new Qf({...e._def,type:b0(e.element)}):e instanceof gu?gu.create(b0(e.unwrap())):e instanceof a_?a_.create(b0(e.unwrap())):e instanceof i_?i_.create(e.items.map(t=>b0(t))):e}var wc=class e extends an{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=gn.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==gt.object){let p=this._getOrReturnCtx(t);return ft(p,{code:Je.invalid_type,expected:gt.object,received:p.parsedType}),yr}let{status:n,ctx:o}=this._processInputParams(t),{shape:i,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof bp&&this._def.unknownKeys==="strip"))for(let p in o.data)a.includes(p)||s.push(p);let c=[];for(let p of a){let d=i[p],f=o.data[p];c.push({key:{status:"valid",value:p},value:d._parse(new vl(o,f,o.path,p)),alwaysSet:p in o.data})}if(this._def.catchall instanceof bp){let p=this._def.unknownKeys;if(p==="passthrough")for(let d of s)c.push({key:{status:"valid",value:d},value:{status:"valid",value:o.data[d]}});else if(p==="strict")s.length>0&&(ft(o,{code:Je.unrecognized_keys,keys:s}),n.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let p=this._def.catchall;for(let d of s){let f=o.data[d];c.push({key:{status:"valid",value:d},value:p._parse(new vl(o,f,o.path,d)),alwaysSet:d in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let p=[];for(let d of c){let f=await d.key,m=await d.value;p.push({key:f,value:m,alwaysSet:d.alwaysSet})}return p}).then(p=>ts.mergeObjectSync(n,p)):ts.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(t){return Lt.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{let o=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:Lt.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:sr.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let n of gn.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let n of gn.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}deepPartial(){return b0(this)}partial(t){let r={};for(let n of gn.objectKeys(this.shape)){let o=this.shape[n];t&&!t[n]?r[n]=o:r[n]=o.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let n of gn.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof gu;)i=i._def.innerType;r[n]=i}return new e({...this._def,shape:()=>r})}keyof(){return Yte(gn.objectKeys(this.shape))}};wc.create=(e,t)=>new wc({shape:()=>e,unknownKeys:"strip",catchall:bp.create(),typeName:sr.ZodObject,...jr(t)});wc.strictCreate=(e,t)=>new wc({shape:()=>e,unknownKeys:"strict",catchall:bp.create(),typeName:sr.ZodObject,...jr(t)});wc.lazycreate=(e,t)=>new wc({shape:e,unknownKeys:"strip",catchall:bp.create(),typeName:sr.ZodObject,...jr(t)});var D0=class extends an{_parse(t){let{ctx:r}=this._processInputParams(t),n=this._def.options;function o(i){for(let s of i)if(s.result.status==="valid")return s.result;for(let s of i)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;let a=i.map(s=>new Ac(s.ctx.common.issues));return ft(r,{code:Je.invalid_union,unionErrors:a}),yr}if(r.common.async)return Promise.all(n.map(async i=>{let a={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(o);{let i,a=[];for(let c of n){let p={...r,common:{...r.common,issues:[]},parent:null},d=c._parseSync({data:r.data,path:r.path,parent:p});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:p}),p.common.issues.length&&a.push(p.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;let s=a.map(c=>new Ac(c));return ft(r,{code:Je.invalid_union,unionErrors:s}),yr}}get options(){return this._def.options}};D0.create=(e,t)=>new D0({options:e,typeName:sr.ZodUnion,...jr(t)});var o_=e=>e instanceof w0?o_(e.schema):e instanceof Su?o_(e.innerType()):e instanceof I0?[e.value]:e instanceof k0?e.options:e instanceof C0?gn.objectValues(e.enum):e instanceof P0?o_(e._def.innerType):e instanceof E0?[void 0]:e instanceof T0?[null]:e instanceof gu?[void 0,...o_(e.unwrap())]:e instanceof a_?[null,...o_(e.unwrap())]:e instanceof JC||e instanceof N0?o_(e.unwrap()):e instanceof O0?o_(e._def.innerType):[],hL=class e extends an{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==gt.object)return ft(r,{code:Je.invalid_type,expected:gt.object,received:r.parsedType}),yr;let n=this.discriminator,o=r.data[n],i=this.optionsMap.get(o);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(ft(r,{code:Je.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),yr)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let o=new Map;for(let i of r){let a=o_(i.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let s of a){if(o.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);o.set(s,i)}}return new e({typeName:sr.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:o,...jr(n)})}};function yL(e,t){let r=n_(e),n=n_(t);if(e===t)return{valid:!0,data:e};if(r===gt.object&&n===gt.object){let o=gn.objectKeys(t),i=gn.objectKeys(e).filter(s=>o.indexOf(s)!==-1),a={...e,...t};for(let s of i){let c=yL(e[s],t[s]);if(!c.valid)return{valid:!1};a[s]=c.data}return{valid:!0,data:a}}else if(r===gt.array&&n===gt.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let i=0;i{if(_L(i)||_L(a))return yr;let s=yL(i.value,a.value);return s.valid?((fL(i)||fL(a))&&r.dirty(),{status:r.value,value:s.data}):(ft(n,{code:Je.invalid_intersection_types}),yr)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,a])=>o(i,a)):o(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};A0.create=(e,t,r)=>new A0({left:e,right:t,typeName:sr.ZodIntersection,...jr(r)});var i_=class e extends an{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==gt.array)return ft(n,{code:Je.invalid_type,expected:gt.array,received:n.parsedType}),yr;if(n.data.lengththis._def.items.length&&(ft(n,{code:Je.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let i=[...n.data].map((a,s)=>{let c=this._def.items[s]||this._def.rest;return c?c._parse(new vl(n,a,n.path,s)):null}).filter(a=>!!a);return n.common.async?Promise.all(i).then(a=>ts.mergeArray(r,a)):ts.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};i_.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new i_({items:e,typeName:sr.ZodTuple,rest:null,...jr(t)})};var gL=class e extends an{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==gt.object)return ft(n,{code:Je.invalid_type,expected:gt.object,received:n.parsedType}),yr;let o=[],i=this._def.keyType,a=this._def.valueType;for(let s in n.data)o.push({key:i._parse(new vl(n,s,n.path,s)),value:a._parse(new vl(n,n.data[s],n.path,s)),alwaysSet:s in n.data});return n.common.async?ts.mergeObjectAsync(r,o):ts.mergeObjectSync(r,o)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof an?new e({keyType:t,valueType:r,typeName:sr.ZodRecord,...jr(n)}):new e({keyType:x0.create(),valueType:t,typeName:sr.ZodRecord,...jr(r)})}},sE=class extends an{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==gt.map)return ft(n,{code:Je.invalid_type,expected:gt.map,received:n.parsedType}),yr;let o=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([s,c],p)=>({key:o._parse(new vl(n,s,n.path,[p,"key"])),value:i._parse(new vl(n,c,n.path,[p,"value"]))}));if(n.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let c of a){let p=await c.key,d=await c.value;if(p.status==="aborted"||d.status==="aborted")return yr;(p.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(p.value,d.value)}return{status:r.value,value:s}})}else{let s=new Map;for(let c of a){let p=c.key,d=c.value;if(p.status==="aborted"||d.status==="aborted")return yr;(p.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(p.value,d.value)}return{status:r.value,value:s}}}};sE.create=(e,t,r)=>new sE({valueType:t,keyType:e,typeName:sr.ZodMap,...jr(r)});var cE=class e extends an{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==gt.set)return ft(n,{code:Je.invalid_type,expected:gt.set,received:n.parsedType}),yr;let o=this._def;o.minSize!==null&&n.data.sizeo.maxSize.value&&(ft(n,{code:Je.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());let i=this._def.valueType;function a(c){let p=new Set;for(let d of c){if(d.status==="aborted")return yr;d.status==="dirty"&&r.dirty(),p.add(d.value)}return{status:r.value,value:p}}let s=[...n.data.values()].map((c,p)=>i._parse(new vl(n,c,n.path,p)));return n.common.async?Promise.all(s).then(c=>a(c)):a(s)}min(t,r){return new e({...this._def,minSize:{value:t,message:Lt.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:Lt.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};cE.create=(e,t)=>new cE({valueType:e,minSize:null,maxSize:null,typeName:sr.ZodSet,...jr(t)});var SL=class e extends an{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==gt.function)return ft(r,{code:Je.invalid_type,expected:gt.function,received:r.parsedType}),yr;function n(s,c){return VC({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Xx(),Zf].filter(p=>!!p),issueData:{code:Je.invalid_arguments,argumentsError:c}})}function o(s,c){return VC({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Xx(),Zf].filter(p=>!!p),issueData:{code:Je.invalid_return_type,returnTypeError:c}})}let i={errorMap:r.common.contextualErrorMap},a=r.data;if(this._def.returns instanceof Fy){let s=this;return bs(async function(...c){let p=new Ac([]),d=await s._def.args.parseAsync(c,i).catch(y=>{throw p.addIssue(n(c,y)),p}),f=await Reflect.apply(a,this,d);return await s._def.returns._def.type.parseAsync(f,i).catch(y=>{throw p.addIssue(o(f,y)),p})})}else{let s=this;return bs(function(...c){let p=s._def.args.safeParse(c,i);if(!p.success)throw new Ac([n(c,p.error)]);let d=Reflect.apply(a,this,p.data),f=s._def.returns.safeParse(d,i);if(!f.success)throw new Ac([o(d,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:i_.create(t).rest(Wf.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new e({args:t||i_.create([]).rest(Wf.create()),returns:r||Wf.create(),typeName:sr.ZodFunction,...jr(n)})}},w0=class extends an{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};w0.create=(e,t)=>new w0({getter:e,typeName:sr.ZodLazy,...jr(t)});var I0=class extends an{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return ft(r,{received:r.data,code:Je.invalid_literal,expected:this._def.value}),yr}return{status:"valid",value:t.data}}get value(){return this._def.value}};I0.create=(e,t)=>new I0({value:e,typeName:sr.ZodLiteral,...jr(t)});function Yte(e,t){return new k0({values:e,typeName:sr.ZodEnum,...jr(t)})}var k0=class e extends an{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),n=this._def.values;return ft(r,{expected:gn.joinValues(n),received:r.parsedType,code:Je.invalid_type}),yr}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),n=this._def.values;return ft(r,{received:r.data,code:Je.invalid_enum_value,options:n}),yr}return bs(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}};k0.create=Yte;var C0=class extends an{_parse(t){let r=gn.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==gt.string&&n.parsedType!==gt.number){let o=gn.objectValues(r);return ft(n,{expected:gn.joinValues(o),received:n.parsedType,code:Je.invalid_type}),yr}if(this._cache||(this._cache=new Set(gn.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=gn.objectValues(r);return ft(n,{received:n.data,code:Je.invalid_enum_value,options:o}),yr}return bs(t.data)}get enum(){return this._def.values}};C0.create=(e,t)=>new C0({values:e,typeName:sr.ZodNativeEnum,...jr(t)});var Fy=class extends an{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==gt.promise&&r.common.async===!1)return ft(r,{code:Je.invalid_type,expected:gt.promise,received:r.parsedType}),yr;let n=r.parsedType===gt.promise?r.data:Promise.resolve(r.data);return bs(n.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Fy.create=(e,t)=>new Fy({type:e,typeName:sr.ZodPromise,...jr(t)});var Su=class extends an{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===sr.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:a=>{ft(n,a),a.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){let a=o.transform(n.data,i);if(n.common.async)return Promise.resolve(a).then(async s=>{if(r.value==="aborted")return yr;let c=await this._def.schema._parseAsync({data:s,path:n.path,parent:n});return c.status==="aborted"?yr:c.status==="dirty"?v0(c.value):r.value==="dirty"?v0(c.value):c});{if(r.value==="aborted")return yr;let s=this._def.schema._parseSync({data:a,path:n.path,parent:n});return s.status==="aborted"?yr:s.status==="dirty"?v0(s.value):r.value==="dirty"?v0(s.value):s}}if(o.type==="refinement"){let a=s=>{let c=o.refinement(s,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?yr:(s.status==="dirty"&&r.dirty(),a(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>s.status==="aborted"?yr:(s.status==="dirty"&&r.dirty(),a(s.value).then(()=>({status:r.value,value:s.value}))))}if(o.type==="transform")if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Ny(a))return yr;let s=o.transform(a.value,i);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:s}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>Ny(a)?Promise.resolve(o.transform(a.value,i)).then(s=>({status:r.value,value:s})):yr);gn.assertNever(o)}};Su.create=(e,t,r)=>new Su({schema:e,typeName:sr.ZodEffects,effect:t,...jr(r)});Su.createWithPreprocess=(e,t,r)=>new Su({schema:t,effect:{type:"preprocess",transform:e},typeName:sr.ZodEffects,...jr(r)});var gu=class extends an{_parse(t){return this._getType(t)===gt.undefined?bs(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};gu.create=(e,t)=>new gu({innerType:e,typeName:sr.ZodOptional,...jr(t)});var a_=class extends an{_parse(t){return this._getType(t)===gt.null?bs(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};a_.create=(e,t)=>new a_({innerType:e,typeName:sr.ZodNullable,...jr(t)});var P0=class extends an{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===gt.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};P0.create=(e,t)=>new P0({innerType:e,typeName:sr.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...jr(t)});var O0=class extends an{_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Yx(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ac(n.common.issues)},input:n.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ac(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};O0.create=(e,t)=>new O0({innerType:e,typeName:sr.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...jr(t)});var lE=class extends an{_parse(t){if(this._getType(t)!==gt.nan){let n=this._getOrReturnCtx(t);return ft(n,{code:Je.invalid_type,expected:gt.nan,received:n.parsedType}),yr}return{status:"valid",value:t.data}}};lE.create=e=>new lE({typeName:sr.ZodNaN,...jr(e)});var JC=class extends an{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},KC=class e extends an{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?yr:i.status==="dirty"?(r.dirty(),v0(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{let o=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?yr:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:sr.ZodPipeline})}},N0=class extends an{_parse(t){let r=this._def.innerType._parse(t),n=o=>(Ny(o)&&(o.value=Object.freeze(o.value)),o);return Yx(r)?r.then(o=>n(o)):n(r)}unwrap(){return this._def.innerType}};N0.create=(e,t)=>new N0({innerType:e,typeName:sr.ZodReadonly,...jr(t)});var Hkt={object:wc.lazycreate},sr;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(sr||(sr={}));var Zkt=x0.create,Wkt=eE.create,Qkt=lE.create,Xkt=tE.create,Ykt=rE.create,eCt=nE.create,tCt=oE.create,rCt=E0.create,nCt=T0.create,oCt=iE.create,iCt=Wf.create,aCt=bp.create,sCt=aE.create,cCt=Qf.create,cNe=wc.create,lCt=wc.strictCreate,uCt=D0.create,pCt=hL.create,dCt=A0.create,_Ct=i_.create,fCt=gL.create,mCt=sE.create,hCt=cE.create,yCt=SL.create,gCt=w0.create,SCt=I0.create,vCt=k0.create,bCt=C0.create,xCt=Fy.create,ECt=Su.create,TCt=gu.create,DCt=a_.create,ACt=Su.createWithPreprocess,wCt=KC.create;var HC=Object.freeze({status:"aborted"});function ne(e,t,r){function n(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);let p=a.prototype,d=Object.keys(p);for(let f=0;fr?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var xp=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ry=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},GC={};function Wi(e){return e&&Object.assign(GC,e),GC}var Ke={};YS(Ke,{BIGINT_FORMAT_RANGES:()=>kL,Class:()=>bL,NUMBER_FORMAT_RANGES:()=>IL,aborted:()=>tm,allowsEval:()=>TL,assert:()=>mNe,assertEqual:()=>pNe,assertIs:()=>_Ne,assertNever:()=>fNe,assertNotEqual:()=>dNe,assignProp:()=>Yf,base64ToUint8Array:()=>sre,base64urlToUint8Array:()=>ANe,cached:()=>R0,captureStackTrace:()=>WC,cleanEnum:()=>DNe,cleanRegex:()=>dE,clone:()=>xs,cloneDef:()=>yNe,createTransparentProxy:()=>ENe,defineLazy:()=>Ur,esc:()=>ZC,escapeRegex:()=>bl,extend:()=>nre,finalizeIssue:()=>Zs,floatSafeRemainder:()=>xL,getElementAtPath:()=>gNe,getEnumValues:()=>pE,getLengthableOrigin:()=>mE,getParsedType:()=>xNe,getSizableOrigin:()=>fE,hexToUint8Array:()=>INe,isObject:()=>Ly,isPlainObject:()=>em,issue:()=>L0,joinValues:()=>ur,jsonStringifyReplacer:()=>F0,merge:()=>TNe,mergeDefs:()=>s_,normalizeParams:()=>st,nullish:()=>Xf,numKeys:()=>bNe,objectClone:()=>hNe,omit:()=>rre,optionalKeys:()=>wL,parsedType:()=>gr,partial:()=>ire,pick:()=>tre,prefixIssues:()=>Ic,primitiveTypes:()=>AL,promiseAllObject:()=>SNe,propertyKeyTypes:()=>_E,randomString:()=>vNe,required:()=>are,safeExtend:()=>ore,shallowClone:()=>DL,slugify:()=>EL,stringifyPrimitive:()=>pr,uint8ArrayToBase64:()=>cre,uint8ArrayToBase64url:()=>wNe,uint8ArrayToHex:()=>kNe,unwrapMessage:()=>uE});function pNe(e){return e}function dNe(e){return e}function _Ne(e){}function fNe(e){throw new Error("Unexpected value in exhaustive check")}function mNe(e){}function pE(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}function ur(e,t="|"){return e.map(r=>pr(r)).join(t)}function F0(e,t){return typeof t=="bigint"?t.toString():t}function R0(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Xf(e){return e==null}function dE(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function xL(e,t){let r=(e.toString().split(".")[1]||"").length,n=t.toString(),o=(n.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(n)){let c=n.match(/\d?e-(\d?)/);c?.[1]&&(o=Number.parseInt(c[1]))}let i=r>o?r:o,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return a%s/10**i}var ere=Symbol("evaluating");function Ur(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==ere)return n===void 0&&(n=ere,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function hNe(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Yf(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function s_(...e){let t={};for(let r of e){let n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function yNe(e){return s_(e._zod.def)}function gNe(e,t){return t?t.reduce((r,n)=>r?.[n],e):e}function SNe(e){let t=Object.keys(e),r=t.map(n=>e[n]);return Promise.all(r).then(n=>{let o={};for(let i=0;i{};function Ly(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var TL=R0(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function em(e){if(Ly(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Ly(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function DL(e){return em(e)?{...e}:Array.isArray(e)?[...e]:e}function bNe(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var xNe=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},_E=new Set(["string","number","symbol"]),AL=new Set(["string","number","bigint","boolean","symbol","undefined"]);function bl(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xs(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function st(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function ENe(e){let t;return new Proxy({},{get(r,n,o){return t??(t=e()),Reflect.get(t,n,o)},set(r,n,o,i){return t??(t=e()),Reflect.set(t,n,o,i)},has(r,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(r,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(r,n,o){return t??(t=e()),Reflect.defineProperty(t,n,o)}})}function pr(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function wL(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var IL={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},kL={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function tre(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=s_(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return Yf(this,"shape",a),a},checks:[]});return xs(e,i)}function rre(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=s_(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return Yf(this,"shape",a),a},checks:[]});return xs(e,i)}function nre(e,t){if(!em(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let o=s_(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Yf(this,"shape",i),i}});return xs(e,o)}function ore(e,t){if(!em(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=s_(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Yf(this,"shape",n),n}});return xs(e,r)}function TNe(e,t){let r=s_(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Yf(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return xs(e,r)}function ire(e,t,r){let o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=s_(t._zod.def,{get shape(){let s=t._zod.def.shape,c={...s};if(r)for(let p in r){if(!(p in s))throw new Error(`Unrecognized key: "${p}"`);r[p]&&(c[p]=e?new e({type:"optional",innerType:s[p]}):s[p])}else for(let p in s)c[p]=e?new e({type:"optional",innerType:s[p]}):s[p];return Yf(this,"shape",c),c},checks:[]});return xs(t,a)}function are(e,t,r){let n=s_(t._zod.def,{get shape(){let o=t._zod.def.shape,i={...o};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:o[a]}))}else for(let a in o)i[a]=new e({type:"nonoptional",innerType:o[a]});return Yf(this,"shape",i),i}});return xs(t,n)}function tm(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function uE(e){return typeof e=="string"?e:e?.message}function Zs(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let o=uE(e.inst?._zod.def?.error?.(e))??uE(t?.error?.(e))??uE(r.customError?.(e))??uE(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function fE(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function mE(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function gr(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function L0(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}function DNe(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function sre(e){let t=atob(e),r=new Uint8Array(t.length);for(let n=0;nt.toString(16).padStart(2,"0")).join("")}var bL=class{constructor(...t){}};var lre=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,F0,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},QC=ne("$ZodError",lre),hE=ne("$ZodError",lre,{Parent:Error});function XC(e,t=r=>r.message){let r={},n=[];for(let o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):n.push(t(o));return{formErrors:n,fieldErrors:r}}function YC(e,t=r=>r.message){let r={_errors:[]},n=o=>{for(let i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>n({issues:a}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let a=r,s=0;for(;s(t,r,n,o)=>{let i=n?Object.assign(n,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new xp;if(a.issues.length){let s=new(o?.Err??e)(a.issues.map(c=>Zs(c,i,Wi())));throw WC(s,o?.callee),s}return a.value},gE=yE(hE),SE=e=>async(t,r,n,o)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(o?.Err??e)(a.issues.map(c=>Zs(c,i,Wi())));throw WC(s,o?.callee),s}return a.value},vE=SE(hE),bE=e=>(t,r,n)=>{let o=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new xp;return i.issues.length?{success:!1,error:new(e??QC)(i.issues.map(a=>Zs(a,o,Wi())))}:{success:!0,data:i.value}},$0=bE(hE),xE=e=>async(t,r,n)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>Zs(a,o,Wi())))}:{success:!0,data:i.value}},EE=xE(hE),ure=e=>(t,r,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return yE(e)(t,r,o)};var pre=e=>(t,r,n)=>yE(e)(t,r,n);var dre=e=>async(t,r,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return SE(e)(t,r,o)};var _re=e=>async(t,r,n)=>SE(e)(t,r,n);var fre=e=>(t,r,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return bE(e)(t,r,o)};var mre=e=>(t,r,n)=>bE(e)(t,r,n);var hre=e=>async(t,r,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return xE(e)(t,r,o)};var yre=e=>async(t,r,n)=>xE(e)(t,r,n);var xl={};YS(xl,{base64:()=>JL,base64url:()=>eP,bigint:()=>QL,boolean:()=>YL,browserEmail:()=>MNe,cidrv4:()=>zL,cidrv6:()=>VL,cuid:()=>CL,cuid2:()=>PL,date:()=>GL,datetime:()=>ZL,domain:()=>qNe,duration:()=>LL,e164:()=>KL,email:()=>ML,emoji:()=>jL,extendedDuration:()=>PNe,guid:()=>$L,hex:()=>UNe,hostname:()=>BNe,html5Email:()=>RNe,idnEmail:()=>$Ne,integer:()=>XL,ipv4:()=>BL,ipv6:()=>qL,ksuid:()=>FL,lowercase:()=>r$,mac:()=>UL,md5_base64:()=>VNe,md5_base64url:()=>JNe,md5_hex:()=>zNe,nanoid:()=>RL,null:()=>e$,number:()=>tP,rfc5322Email:()=>LNe,sha1_base64:()=>GNe,sha1_base64url:()=>HNe,sha1_hex:()=>KNe,sha256_base64:()=>WNe,sha256_base64url:()=>QNe,sha256_hex:()=>ZNe,sha384_base64:()=>YNe,sha384_base64url:()=>eFe,sha384_hex:()=>XNe,sha512_base64:()=>rFe,sha512_base64url:()=>nFe,sha512_hex:()=>tFe,string:()=>WL,time:()=>HL,ulid:()=>OL,undefined:()=>t$,unicodeEmail:()=>gre,uppercase:()=>n$,uuid:()=>$y,uuid4:()=>ONe,uuid6:()=>NNe,uuid7:()=>FNe,xid:()=>NL});var CL=/^[cC][^\s-]{8,}$/,PL=/^[0-9a-z]+$/,OL=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,NL=/^[0-9a-vA-V]{20}$/,FL=/^[A-Za-z0-9]{27}$/,RL=/^[a-zA-Z0-9_-]{21}$/,LL=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,PNe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,$L=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,$y=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ONe=$y(4),NNe=$y(6),FNe=$y(7),ML=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,RNe=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,LNe=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,gre=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,$Ne=gre,MNe=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,jNe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function jL(){return new RegExp(jNe,"u")}var BL=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,qL=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,UL=e=>{let t=bl(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},zL=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,VL=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,JL=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,eP=/^[A-Za-z0-9_-]*$/,BNe=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,qNe=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,KL=/^\+[1-9]\d{6,14}$/,Sre="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",GL=new RegExp(`^${Sre}$`);function vre(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function HL(e){return new RegExp(`^${vre(e)}$`)}function ZL(e){let t=vre({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${r.join("|")})`;return new RegExp(`^${Sre}T(?:${n})$`)}var WL=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},QL=/^-?\d+n?$/,XL=/^-?\d+$/,tP=/^-?\d+(?:\.\d+)?$/,YL=/^(?:true|false)$/i,e$=/^null$/i;var t$=/^undefined$/i;var r$=/^[^A-Z]*$/,n$=/^[^a-z]*$/,UNe=/^[0-9a-fA-F]*$/;function TE(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function DE(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var zNe=/^[0-9a-fA-F]{32}$/,VNe=TE(22,"=="),JNe=DE(22),KNe=/^[0-9a-fA-F]{40}$/,GNe=TE(27,"="),HNe=DE(27),ZNe=/^[0-9a-fA-F]{64}$/,WNe=TE(43,"="),QNe=DE(43),XNe=/^[0-9a-fA-F]{96}$/,YNe=TE(64,""),eFe=DE(64),tFe=/^[0-9a-fA-F]{128}$/,rFe=TE(86,"=="),nFe=DE(86);var wo=ne("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),xre={number:"number",bigint:"bigint",object:"date"},o$=ne("$ZodCheckLessThan",(e,t)=>{wo.init(e,t);let r=xre[typeof t.value];e._zod.onattach.push(n=>{let o=n._zod.bag,i=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value{(t.inclusive?n.value<=t.value:n.value{wo.init(e,t);let r=xre[typeof t.value];e._zod.onattach.push(n=>{let o=n._zod.bag,i=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ere=ne("$ZodCheckMultipleOf",(e,t)=>{wo.init(e,t),e._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):xL(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Tre=ne("$ZodCheckNumberFormat",(e,t)=>{wo.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[o,i]=IL[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=o,s.maximum=i,r&&(s.pattern=XL)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}si&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Dre=ne("$ZodCheckBigIntFormat",(e,t)=>{wo.init(e,t);let[r,n]=kL[t.format];e._zod.onattach.push(o=>{let i=o._zod.bag;i.format=t.format,i.minimum=r,i.maximum=n}),e._zod.check=o=>{let i=o.value;in&&o.issues.push({origin:"bigint",input:i,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),Are=ne("$ZodCheckMaxSize",(e,t)=>{var r;wo.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Xf(o)&&o.size!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{let o=n.value;o.size<=t.maximum||n.issues.push({origin:fE(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),wre=ne("$ZodCheckMinSize",(e,t)=>{var r;wo.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Xf(o)&&o.size!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let o=n.value;o.size>=t.minimum||n.issues.push({origin:fE(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Ire=ne("$ZodCheckSizeEquals",(e,t)=>{var r;wo.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Xf(o)&&o.size!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag;o.minimum=t.size,o.maximum=t.size,o.size=t.size}),e._zod.check=n=>{let o=n.value,i=o.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:fE(o),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),kre=ne("$ZodCheckMaxLength",(e,t)=>{var r;wo.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Xf(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{let o=n.value;if(o.length<=t.maximum)return;let a=mE(o);n.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Cre=ne("$ZodCheckMinLength",(e,t)=>{var r;wo.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Xf(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let o=n.value;if(o.length>=t.minimum)return;let a=mE(o);n.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Pre=ne("$ZodCheckLengthEquals",(e,t)=>{var r;wo.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Xf(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=n=>{let o=n.value,i=o.length;if(i===t.length)return;let a=mE(o),s=i>t.length;n.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),AE=ne("$ZodCheckStringFormat",(e,t)=>{var r,n;wo.init(e,t),e._zod.onattach.push(o=>{let i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Ore=ne("$ZodCheckRegex",(e,t)=>{AE.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Nre=ne("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=r$),AE.init(e,t)}),Fre=ne("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=n$),AE.init(e,t)}),Rre=ne("$ZodCheckIncludes",(e,t)=>{wo.init(e,t);let r=bl(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(o=>{let i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Lre=ne("$ZodCheckStartsWith",(e,t)=>{wo.init(e,t);let r=new RegExp(`^${bl(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),$re=ne("$ZodCheckEndsWith",(e,t)=>{wo.init(e,t);let r=new RegExp(`.*${bl(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function bre(e,t,r){e.issues.length&&t.issues.push(...Ic(r,e.issues))}var Mre=ne("$ZodCheckProperty",(e,t)=>{wo.init(e,t),e._zod.check=r=>{let n=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(o=>bre(o,r,t.property));bre(n,r,t.property)}}),jre=ne("$ZodCheckMimeType",(e,t)=>{wo.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=t.mime}),e._zod.check=n=>{r.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),Bre=ne("$ZodCheckOverwrite",(e,t)=>{wo.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var rP=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let n=t.split(` +`,r)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let r=QN(t),n=rb(r);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let r=QN(t),n=rb(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,r){return this.type!=="comment"||this.indent<=r?!1:t.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};IEe.Parser=NW});var OEe=L(J2=>{"use strict";var wEe=vW(),ibt=R2(),z2=M2(),abt=gZ(),sbt=qn(),cbt=OW(),kEe=FW();function CEe(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new cbt.LineCounter||null,prettyErrors:t}}function lbt(e,t={}){let{lineCounter:r,prettyErrors:n}=CEe(t),o=new kEe.Parser(r?.addNewLine),i=new wEe.Composer(t),a=Array.from(i.compose(o.parse(e)));if(n&&r)for(let s of a)s.errors.forEach(z2.prettifyError(e,r)),s.warnings.forEach(z2.prettifyError(e,r));return a.length>0?a:Object.assign([],{empty:!0},i.streamInfo())}function PEe(e,t={}){let{lineCounter:r,prettyErrors:n}=CEe(t),o=new kEe.Parser(r?.addNewLine),i=new wEe.Composer(t),a=null;for(let s of i.compose(o.parse(e),!0,e.length))if(!a)a=s;else if(a.options.logLevel!=="silent"){a.errors.push(new z2.YAMLParseError(s.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&r&&(a.errors.forEach(z2.prettifyError(e,r)),a.warnings.forEach(z2.prettifyError(e,r))),a}function ubt(e,t,r){let n;typeof t=="function"?n=t:r===void 0&&t&&typeof t=="object"&&(r=t);let o=PEe(e,r);if(!o)return null;if(o.warnings.forEach(i=>abt.warn(o.options.logLevel,i)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:n},r))}function pbt(e,t,r){let n=null;if(typeof t=="function"||Array.isArray(t)?n=t:r===void 0&&t&&(r=t),typeof r=="string"&&(r=r.length),typeof r=="number"){let o=Math.round(r);r=o<1?void 0:o>8?{indent:8}:{indent:o}}if(e===void 0){let{keepUndefined:o}=r??t??{};if(!o)return}return sbt.isDocument(e)&&!n?e.toString(r):new ibt.Document(e,n,r).toString(r)}J2.parse=ubt;J2.parseAllDocuments=lbt;J2.parseDocument=PEe;J2.stringify=pbt});var FEe=L(so=>{"use strict";var dbt=vW(),_bt=R2(),fbt=eW(),RW=M2(),mbt=g2(),qh=qn(),hbt=Lh(),ybt=Ji(),gbt=Mh(),Sbt=jh(),vbt=ZN(),bbt=CW(),xbt=OW(),Ebt=FW(),XN=OEe(),NEe=f2();so.Composer=dbt.Composer;so.Document=_bt.Document;so.Schema=fbt.Schema;so.YAMLError=RW.YAMLError;so.YAMLParseError=RW.YAMLParseError;so.YAMLWarning=RW.YAMLWarning;so.Alias=mbt.Alias;so.isAlias=qh.isAlias;so.isCollection=qh.isCollection;so.isDocument=qh.isDocument;so.isMap=qh.isMap;so.isNode=qh.isNode;so.isPair=qh.isPair;so.isScalar=qh.isScalar;so.isSeq=qh.isSeq;so.Pair=hbt.Pair;so.Scalar=ybt.Scalar;so.YAMLMap=gbt.YAMLMap;so.YAMLSeq=Sbt.YAMLSeq;so.CST=vbt;so.Lexer=bbt.Lexer;so.LineCounter=xbt.LineCounter;so.Parser=Ebt.Parser;so.parse=XN.parse;so.parseAllDocuments=XN.parseAllDocuments;so.parseDocument=XN.parseDocument;so.stringify=XN.stringify;so.visit=NEe.visit;so.visitAsync=NEe.visitAsync});import*as Mr from"effect/Schema";var dwe=Mr.Struct({inputTypePreview:Mr.optional(Mr.String),outputTypePreview:Mr.optional(Mr.String),inputSchema:Mr.optional(Mr.Unknown),outputSchema:Mr.optional(Mr.Unknown),exampleInput:Mr.optional(Mr.Unknown),exampleOutput:Mr.optional(Mr.Unknown)}),Wd={"~standard":{version:1,vendor:"@executor/codemode-core",validate:e=>({value:e})}},cC=Mr.Struct({path:Mr.String,sourceKey:Mr.String,description:Mr.optional(Mr.String),interaction:Mr.optional(Mr.Union(Mr.Literal("auto"),Mr.Literal("required"))),elicitation:Mr.optional(Mr.Unknown),contract:Mr.optional(dwe),providerKind:Mr.optional(Mr.String),providerData:Mr.optional(Mr.Unknown)}),qX=Mr.Struct({namespace:Mr.String,displayName:Mr.optional(Mr.String),toolCount:Mr.optional(Mr.Number)});var Pte=n0(Cte(),1);var MOe=new Pte.default({allErrors:!0,strict:!1,validateSchema:!1,allowUnionTypes:!0}),jOe=e=>{let t=e.replaceAll("~1","/").replaceAll("~0","~");return/^\d+$/.test(t)?Number(t):t},BOe=e=>{if(!(!e||e.length===0||e==="/"))return e.split("/").slice(1).filter(t=>t.length>0).map(jOe)},qOe=e=>{let t=e.keyword.trim(),r=(e.message??"Invalid value").trim();return t.length>0?`${t}: ${r}`:r},Wx=(e,t)=>{try{let r=MOe.compile(e);return{"~standard":{version:1,vendor:t?.vendor??"json-schema",validate:n=>{if(r(n))return{value:n};let i=(r.errors??[]).map(a=>({message:qOe(a),path:BOe(a.instancePath)}));return{issues:i.length>0?i:[{message:"Invalid value"}]}}}}}catch{return t?.fallback??Wd}};var b0=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},UOe=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"):[],Qx=(e,t)=>e.length<=t?e:`${e.slice(0,Math.max(0,t-4))} ...`,zOe=/^[A-Za-z_$][A-Za-z0-9_$]*$/,JOe=e=>zOe.test(e)?e:JSON.stringify(e),nL=(e,t,r)=>{let n=Array.isArray(t[e])?t[e].map(b0):[];if(n.length===0)return null;let o=n.map(i=>r(i)).filter(i=>i.length>0);return o.length===0?null:o.join(e==="allOf"?" & ":" | ")},Nte=e=>e.startsWith("#/")?e.slice(2).split("/").map(t=>t.replace(/~1/g,"/").replace(/~0/g,"~")):null,VOe=(e,t)=>{let r=Nte(t);if(!r||r.length===0)return null;let n=e;for(let i of r){let a=b0(n);if(!(i in a))return null;n=a[i]}let o=b0(n);return Object.keys(o).length>0?o:null},Ote=e=>Nte(e)?.at(-1)??e,KOe=(e,t={})=>{let r=b0(e),n=t.maxLength??220,o=Number.isFinite(n),i=t.maxDepth??(o?4:Number.POSITIVE_INFINITY),a=t.maxProperties??(o?6:Number.POSITIVE_INFINITY),s=(c,p,d)=>{let f=b0(c);if(d<=0){if(typeof f.title=="string"&&f.title.length>0)return f.title;if(f.type==="array")return"unknown[]";if(f.type==="object"||f.properties)return f.additionalProperties?"Record":"object"}if(typeof f.$ref=="string"){let g=f.$ref.trim();if(g.length===0)return"unknown";if(p.has(g))return Ote(g);let S=VOe(r,g);return S?s(S,new Set([...p,g]),d-1):Ote(g)}if("const"in f)return JSON.stringify(f.const);let m=Array.isArray(f.enum)?f.enum:[];if(m.length>0)return Qx(m.map(g=>JSON.stringify(g)).join(" | "),n);let y=nL("oneOf",f,g=>s(g,p,d-1))??nL("anyOf",f,g=>s(g,p,d-1))??nL("allOf",f,g=>s(g,p,d-1));if(y)return Qx(y,n);if(f.type==="array"){let g=f.items?s(f.items,p,d-1):"unknown";return Qx(`${g}[]`,n)}if(f.type==="object"||f.properties){let g=b0(f.properties),S=Object.keys(g);if(S.length===0)return f.additionalProperties?"Record":"object";let b=new Set(UOe(f.required)),E=S.slice(0,a),I=E.map(T=>`${JOe(T)}${b.has(T)?"":"?"}: ${s(g[T],p,d-1)}`);return E.lengthKOe(e,{maxLength:t});var yu=(e,t,r=220)=>{if(e===void 0)return t;try{return GOe(e,r)}catch{return t}};import*as cL from"effect/Data";import*as yi from"effect/Effect";import*as Lte from"effect/JSONSchema";import*as Fte from"effect/Data";var oL=class extends Fte.TaggedError("KernelCoreEffectError"){},Xx=(e,t)=>new oL({module:e,message:t});var HOe=e=>e,lL=e=>e instanceof Error?e:new Error(String(e)),ZOe=e=>{if(!e||typeof e!="object"&&typeof e!="function")return null;let t=e["~standard"];if(!t||typeof t!="object")return null;let r=t.validate;return typeof r=="function"?r:null},WOe=e=>!e||e.length===0?"$":e.map(t=>typeof t=="object"&&t!==null&&"key"in t?String(t.key):String(t)).join("."),QOe=e=>e.map(t=>`${WOe(t.path)}: ${t.message}`).join("; "),$te=e=>{let t=ZOe(e.schema);return t?yi.tryPromise({try:()=>Promise.resolve(t(e.value)),catch:lL}).pipe(yi.flatMap(r=>"issues"in r&&r.issues?yi.fail(Xx("tool-map",`Input validation failed for ${e.path}: ${QOe(r.issues)}`)):yi.succeed(r.value))):yi.fail(Xx("tool-map",`Tool ${e.path} has no Standard Schema validator on inputSchema`))},XOe=e=>({mode:"form",message:`Approval required before invoking ${e}`,requestedSchema:{type:"object",properties:{},additionalProperties:!1}}),YOe={kind:"execute"},e4e=e=>e.metadata?.elicitation?{kind:"elicit",elicitation:e.metadata.elicitation}:e.metadata?.interaction==="required"?{kind:"elicit",elicitation:XOe(e.path)}:null,t4e=e=>e4e(e)??YOe,sL=class extends cL.TaggedError("ToolInteractionPendingError"){},UC=class extends cL.TaggedError("ToolInteractionDeniedError"){};var r4e=e=>{let t=t4e({metadata:e.metadata,path:e.path});if(!e.onToolInteraction)return yi.succeed(t);let r={path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.metadata,context:e.context,defaultElicitation:t.kind==="elicit"?t.elicitation:null};return e.onToolInteraction(r)},n4e=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),o4e=e=>{if(!e.response.content)return yi.succeed(e.args);if(!n4e(e.args))return yi.fail(Xx("tool-map",`Tool ${e.path} cannot merge elicitation content into non-object arguments`));let t={...e.args,...e.response.content};return $te({schema:e.inputSchema,value:t,path:e.path})},i4e=e=>{let t=e.response.content&&typeof e.response.content.reason=="string"&&e.response.content.reason.trim().length>0?e.response.content.reason.trim():null;return t||(e.response.action==="cancel"?`Interaction cancelled for ${e.path}`:`Interaction declined for ${e.path}`)},a4e=e=>{if(e.decision.kind==="execute")return yi.succeed(e.args);if(e.decision.kind==="decline")return yi.fail(new UC({path:e.path,reason:e.decision.reason}));if(!e.onElicitation)return yi.fail(new sL({path:e.path,elicitation:e.decision.elicitation,interactionId:e.interactionId}));let t={interactionId:e.interactionId,path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.metadata,context:e.context,elicitation:e.decision.elicitation};return e.onElicitation(t).pipe(yi.mapError(lL),yi.flatMap(r=>r.action!=="accept"?yi.fail(new UC({path:e.path,reason:i4e({path:e.path,response:r})})):o4e({path:e.path,args:e.args,response:r,inputSchema:e.inputSchema})))};function s4e(e){return{tool:e.tool,metadata:e.metadata}}var vl=s4e;var c4e=e=>typeof e=="object"&&e!==null&&"tool"in e,iL=e=>{if(e!=null)try{return(typeof e=="object"||typeof e=="function")&&e!==null&&"~standard"in e?Lte.make(e):e}catch{return}},Rte=(e,t,r=240)=>yu(e,t,r);var Mte=e=>{let t=e.sourceKey??"in_memory.tools";return Object.entries(e.tools).sort(([r],[n])=>r.localeCompare(n)).map(([r,n])=>{let o=c4e(n)?n:{tool:n},i=o.metadata?{sourceKey:t,...o.metadata}:{sourceKey:t};return{path:HOe(r),tool:o.tool,metadata:i}})};function jte(e){return Mte({tools:e.tools,sourceKey:e.sourceKey}).map(r=>{let n=r.metadata,o=r.tool,i=n?.contract?.inputSchema??iL(o.inputSchema)??iL(o.parameters),a=n?.contract?.outputSchema??iL(o.outputSchema),s={inputTypePreview:n?.contract?.inputTypePreview??Rte(i,"unknown"),outputTypePreview:n?.contract?.outputTypePreview??Rte(a,"unknown"),...i!==void 0?{inputSchema:i}:{},...a!==void 0?{outputSchema:a}:{},...n?.contract?.exampleInput!==void 0?{exampleInput:n.contract.exampleInput}:{},...n?.contract?.exampleOutput!==void 0?{exampleOutput:n.contract.exampleOutput}:{}};return{path:r.path,sourceKey:n?.sourceKey??"in_memory.tools",description:o.description,interaction:n?.interaction,elicitation:n?.elicitation,contract:s,...n?.providerKind?{providerKind:n.providerKind}:{},...n?.providerData!==void 0?{providerData:n.providerData}:{}}})}var aL=e=>e.replace(/[^a-zA-Z0-9._-]/g,"_"),l4e=()=>{let e=0;return t=>{e+=1;let r=typeof t.context?.runId=="string"&&t.context.runId.length>0?t.context.runId:"run",n=typeof t.context?.callId=="string"&&t.context.callId.length>0?t.context.callId:`call_${String(e)}`;return`${aL(r)}:${aL(n)}:${aL(String(t.path))}:${String(e)}`}},t_=e=>{let t=Mte({tools:e.tools,sourceKey:e.sourceKey}),r=new Map(t.map(o=>[o.path,o])),n=l4e();return{invoke:({path:o,args:i,context:a})=>yi.gen(function*(){let s=r.get(o);if(!s)return yield*Xx("tool-map",`Unknown tool path: ${o}`);let c=yield*$te({schema:s.tool.inputSchema,value:i,path:o}),p=yield*r4e({path:s.path,args:c,metadata:s.metadata,sourceKey:s.metadata?.sourceKey??"in_memory.tools",context:a,onToolInteraction:e.onToolInteraction}),d=p.kind==="elicit"&&p.interactionId?p.interactionId:n({path:s.path,context:a}),f=yield*a4e({path:s.path,args:c,inputSchema:s.tool.inputSchema,metadata:s.metadata,sourceKey:s.metadata?.sourceKey??"in_memory.tools",context:a,decision:p,interactionId:d,onElicitation:e.onElicitation});return yield*yi.tryPromise({try:()=>Promise.resolve(s.tool.execute(f,{path:s.path,sourceKey:s.metadata?.sourceKey??"in_memory.tools",metadata:s.metadata,invocation:a,onElicitation:e.onElicitation})),catch:lL})})}};import*as Zi from"effect/Effect";var Bte=e=>e.toLowerCase().split(/\W+/).map(t=>t.trim()).filter(Boolean),u4e=e=>[e.path,e.sourceKey,e.description??"",e.contract?.inputTypePreview??"",e.contract?.outputTypePreview??""].join(" ").toLowerCase(),zC=(e,t)=>{let r=e.contract;if(r)return t?r:{...r.inputTypePreview!==void 0?{inputTypePreview:r.inputTypePreview}:{},...r.outputTypePreview!==void 0?{outputTypePreview:r.outputTypePreview}:{},...r.exampleInput!==void 0?{exampleInput:r.exampleInput}:{},...r.exampleOutput!==void 0?{exampleOutput:r.exampleOutput}:{}}},qte=e=>{let{descriptor:t,includeSchemas:r}=e;return r?t:{...t,...zC(t,!1)?{contract:zC(t,!1)}:{}}};var p4e=e=>{let[t,r]=e.split(".");return r?`${t}.${r}`:t},uL=e=>e.namespace??p4e(e.descriptor.path),Ute=e=>e.searchText?.trim().toLowerCase()||u4e(e.descriptor),d4e=(e,t)=>{if(t.score)return t.score(e);let r=Ute(t);return e.reduce((n,o)=>n+(r.includes(o)?1:0),0)},_4e=e=>{let t=new Map;for(let r of e)for(let n of r){let o=t.get(n.namespace);t.set(n.namespace,{namespace:n.namespace,displayName:o?.displayName??n.displayName,...o?.toolCount!==void 0||n.toolCount!==void 0?{toolCount:(o?.toolCount??0)+(n.toolCount??0)}:{}})}return[...t.values()].sort((r,n)=>r.namespace.localeCompare(n.namespace))},f4e=e=>{let t=new Map;for(let r of e)for(let n of r)t.has(n.path)||t.set(n.path,n);return[...t.values()].sort((r,n)=>r.path.localeCompare(n.path))},m4e=e=>{let t=new Map;for(let r of e)for(let n of r)t.has(n.path)||t.set(n.path,n);return[...t.values()].sort((r,n)=>n.score-r.score||r.path.localeCompare(n.path))};function r_(e){return pL({entries:jte({tools:e.tools}).map(t=>({descriptor:t,...e.defaultNamespace!==void 0?{namespace:e.defaultNamespace}:{}}))})}function pL(e){let t=[...e.entries],r=new Map(t.map(o=>[o.descriptor.path,o])),n=new Map;for(let o of t){let i=uL(o);n.set(i,(n.get(i)??0)+1)}return{listNamespaces:({limit:o})=>Zi.succeed([...n.entries()].map(([i,a])=>({namespace:i,toolCount:a})).slice(0,o)),listTools:({namespace:o,query:i,limit:a,includeSchemas:s=!1})=>Zi.succeed(t.filter(c=>!o||uL(c)===o).filter(c=>{if(!i)return!0;let p=Ute(c);return Bte(i).every(d=>p.includes(d))}).slice(0,a).map(c=>qte({descriptor:c.descriptor,includeSchemas:s}))),getToolByPath:({path:o,includeSchemas:i})=>Zi.succeed(r.get(o)?qte({descriptor:r.get(o).descriptor,includeSchemas:i}):null),searchTools:({query:o,namespace:i,limit:a})=>{let s=Bte(o);return Zi.succeed(t.filter(c=>!i||uL(c)===i).map(c=>({path:c.descriptor.path,score:d4e(s,c)})).filter(c=>c.score>0).sort((c,p)=>p.score-c.score).slice(0,a))}}}function zte(e){let t=[...e.catalogs];return{listNamespaces:({limit:r})=>Zi.gen(function*(){let n=yield*Zi.forEach(t,o=>o.listNamespaces({limit:Math.max(r,r*t.length)}),{concurrency:"unbounded"});return _4e(n).slice(0,r)}),listTools:({namespace:r,query:n,limit:o,includeSchemas:i=!1})=>Zi.gen(function*(){let a=yield*Zi.forEach(t,s=>s.listTools({...r!==void 0?{namespace:r}:{},...n!==void 0?{query:n}:{},limit:Math.max(o,o*t.length),includeSchemas:i}),{concurrency:"unbounded"});return f4e(a).slice(0,o)}),getToolByPath:({path:r,includeSchemas:n})=>Zi.gen(function*(){for(let o of t){let i=yield*o.getToolByPath({path:r,includeSchemas:n});if(i)return i}return null}),searchTools:({query:r,namespace:n,limit:o})=>Zi.gen(function*(){let i=yield*Zi.forEach(t,a=>a.searchTools({query:r,...n!==void 0?{namespace:n}:{},limit:Math.max(o,o*t.length)}),{concurrency:"unbounded"});return m4e(i).slice(0,o)})}}function Jte(e){let{catalog:t}=e;return{catalog:{namespaces:({limit:i=200})=>t.listNamespaces({limit:i}).pipe(Zi.map(a=>({namespaces:a}))),tools:({namespace:i,query:a,limit:s=200,includeSchemas:c=!1})=>t.listTools({...i!==void 0?{namespace:i}:{},...a!==void 0?{query:a}:{},limit:s,includeSchemas:c}).pipe(Zi.map(p=>({results:p})))},describe:{tool:({path:i,includeSchemas:a=!1})=>t.getToolByPath({path:i,includeSchemas:a})},discover:({query:i,sourceKey:a,limit:s=12,includeSchemas:c=!1})=>Zi.gen(function*(){let p=yield*t.searchTools({query:i,limit:s});if(p.length===0)return{bestPath:null,results:[],total:0};let d=yield*Zi.forEach(p,m=>t.getToolByPath({path:m.path,includeSchemas:c}),{concurrency:"unbounded"}),f=p.map((m,y)=>{let g=d[y];return g?{path:g.path,score:m.score,description:g.description,interaction:g.interaction??"auto",...zC(g,c)?{contract:zC(g,c)}:{}}:null}).filter(Boolean);return{bestPath:f[0]?.path??null,results:f,total:f.length}})}}import*as Yx from"effect/Effect";import*as or from"effect/Schema";var h4e=e=>e,y4e=or.standardSchemaV1(or.Struct({limit:or.optional(or.Number)})),g4e=or.standardSchemaV1(or.Struct({namespaces:or.Array(qX)})),S4e=or.standardSchemaV1(or.Struct({namespace:or.optional(or.String),query:or.optional(or.String),limit:or.optional(or.Number),includeSchemas:or.optional(or.Boolean)})),v4e=or.standardSchemaV1(or.Struct({results:or.Array(cC)})),b4e=or.standardSchemaV1(or.Struct({path:or.String,includeSchemas:or.optional(or.Boolean)})),x4e=or.standardSchemaV1(or.NullOr(cC)),E4e=or.standardSchemaV1(or.Struct({query:or.String,limit:or.optional(or.Number),includeSchemas:or.optional(or.Boolean)})),T4e=or.extend(cC,or.Struct({score:or.Number})),D4e=or.standardSchemaV1(or.Struct({bestPath:or.NullOr(or.String),results:or.Array(T4e),total:or.Number})),Vte=e=>{let t=e.sourceKey??"system",r=()=>{if(e.catalog)return e.catalog;if(e.getCatalog)return e.getCatalog();throw new Error("createSystemToolMap requires a catalog or getCatalog")},n=()=>Jte({catalog:r()}),o={};return o["catalog.namespaces"]=vl({tool:{description:"List available namespaces with display names and tool counts",inputSchema:y4e,outputSchema:g4e,execute:({limit:i})=>Yx.runPromise(n().catalog.namespaces(i!==void 0?{limit:i}:{}))},metadata:{sourceKey:t,interaction:"auto"}}),o["catalog.tools"]=vl({tool:{description:"List tools with optional namespace and query filters",inputSchema:S4e,outputSchema:v4e,execute:i=>Yx.runPromise(n().catalog.tools({...i.namespace!==void 0?{namespace:i.namespace}:{},...i.query!==void 0?{query:i.query}:{},...i.limit!==void 0?{limit:i.limit}:{},...i.includeSchemas!==void 0?{includeSchemas:i.includeSchemas}:{}}))},metadata:{sourceKey:t,interaction:"auto"}}),o["describe.tool"]=vl({tool:{description:"Get metadata and optional schemas for a tool path",inputSchema:b4e,outputSchema:x4e,execute:({path:i,includeSchemas:a})=>Yx.runPromise(n().describe.tool({path:h4e(i),...a!==void 0?{includeSchemas:a}:{}}))},metadata:{sourceKey:t,interaction:"auto"}}),o.discover=vl({tool:{description:"Search tools by intent and return ranked matches",inputSchema:E4e,outputSchema:D4e,execute:i=>Yx.runPromise(n().discover({query:i.query,...i.limit!==void 0?{limit:i.limit}:{},...i.includeSchemas!==void 0?{includeSchemas:i.includeSchemas}:{}}))},metadata:{sourceKey:t,interaction:"auto"}}),o},Kte=(e,t={})=>{let r=t.conflictMode??"throw",n={};for(let o of e)for(let[i,a]of Object.entries(o)){if(r==="throw"&&i in n)throw new Error(`Tool path conflict: ${i}`);n[i]=a}return n};var Gte=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),A4e=e=>e.replaceAll("~1","/").replaceAll("~0","~"),I4e=e=>{let t=e.trim();return t.length===0?[]:t.startsWith("/")?t.split("/").slice(1).map(A4e).filter(r=>r.length>0):t.split(".").filter(r=>r.length>0)},w4e=(e,t)=>{let r=t.toLowerCase();for(let n of Object.keys(e))if(n.toLowerCase()===r)return n;return null},k4e=e=>{let t={};for(let r of e.split(";")){let n=r.trim();if(n.length===0)continue;let o=n.indexOf("=");if(o===-1){t[n]="";continue}let i=n.slice(0,o).trim(),a=n.slice(o+1).trim();i.length>0&&(t[i]=a)}return t},C4e=(e,t,r)=>{let n=e;for(let o=0;o{let t=e.url instanceof URL?new URL(e.url.toString()):new URL(e.url);for(let[r,n]of Object.entries(e.queryParams??{}))t.searchParams.set(r,n);return t},Tc=e=>{let t=e.cookies??{};if(Object.keys(t).length===0)return{...e.headers};let r=w4e(e.headers,"cookie"),n=r?e.headers[r]:null,o={...n?k4e(n):{},...t},i={...e.headers};return i[r??"cookie"]=Object.entries(o).map(([a,s])=>`${a}=${encodeURIComponent(s)}`).join("; "),i},n_=e=>{let t=e.bodyValues??{};if(Object.keys(t).length===0)return e.body;let r=e.body==null?{}:Gte(e.body)?structuredClone(e.body):null;if(r===null)throw new Error(`${e.label??"HTTP request"} auth body placements require an object JSON body`);for(let[n,o]of Object.entries(t)){let i=I4e(n);if(i.length===0)throw new Error(`${e.label??"HTTP request"} auth body placement path cannot be empty`);C4e(r,i,o)}return r};var P4e=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),bp=(e,t)=>e>>>t|e<<32-t,O4e=(e,t)=>{let r=new Uint32Array(64);for(let f=0;f<16;f++)r[f]=t[f];for(let f=16;f<64;f++){let m=bp(r[f-15],7)^bp(r[f-15],18)^r[f-15]>>>3,y=bp(r[f-2],17)^bp(r[f-2],19)^r[f-2]>>>10;r[f]=r[f-16]+m+r[f-7]+y|0}let n=e[0],o=e[1],i=e[2],a=e[3],s=e[4],c=e[5],p=e[6],d=e[7];for(let f=0;f<64;f++){let m=bp(s,6)^bp(s,11)^bp(s,25),y=s&c^~s&p,g=d+m+y+P4e[f]+r[f]|0,S=bp(n,2)^bp(n,13)^bp(n,22),b=n&o^n&i^o&i,E=S+b|0;d=p,p=c,c=s,s=a+g|0,a=i,i=o,o=n,n=g+E|0}e[0]=e[0]+n|0,e[1]=e[1]+o|0,e[2]=e[2]+i|0,e[3]=e[3]+a|0,e[4]=e[4]+s|0,e[5]=e[5]+c|0,e[6]=e[6]+p|0,e[7]=e[7]+d|0},N4e=e=>{if(typeof TextEncoder<"u")return new TextEncoder().encode(e);let t=[];for(let r=0;r>6,128|n&63);else if(n>=55296&&n<56320&&r+1>18,128|n>>12&63,128|n>>6&63,128|n&63)}else t.push(224|n>>12,128|n>>6&63,128|n&63)}return new Uint8Array(t)},F4e=e=>{let t=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),r=e.length*8,n=new Uint8Array(Math.ceil((e.length+9)/64)*64);n.set(e),n[e.length]=128;let o=new DataView(n.buffer);o.setUint32(n.length-4,r,!1),r>4294967295&&o.setUint32(n.length-8,Math.floor(r/4294967296),!1);let i=new Uint32Array(16);for(let c=0;c{let t="";for(let r=0;rR4e(F4e(N4e(e)));import*as Yc from"effect/Effect";import*as VF from"effect/Option";import*as Hte from"effect/Data";import*as Ao from"effect/Effect";import*as Zte from"effect/Exit";import*as x0 from"effect/Scope";var JC=class extends Hte.TaggedError("McpConnectionPoolError"){},o_=new Map,Wte=e=>new JC(e),L4e=(e,t,r)=>{let n=o_.get(e);!n||n.get(t)!==r||(n.delete(t),n.size===0&&o_.delete(e))},$4e=e=>Ao.tryPromise({try:()=>Promise.resolve(e.close?.()),catch:t=>Wte({operation:"close",message:"Failed closing pooled MCP connection",cause:t})}).pipe(Ao.ignore),M4e=e=>{let t=Ao.runSync(x0.make()),r=Ao.runSync(Ao.cached(Ao.acquireRelease(e.pipe(Ao.mapError(n=>Wte({operation:"connect",message:"Failed creating pooled MCP connection",cause:n}))),$4e).pipe(x0.extend(t))));return{scope:t,connection:r}},j4e=e=>{let t=o_.get(e.runId)?.get(e.sourceKey);if(t)return t;let r=o_.get(e.runId);r||(r=new Map,o_.set(e.runId,r));let n=M4e(e.connect);return n.connection=n.connection.pipe(Ao.tapError(()=>Ao.sync(()=>{L4e(e.runId,e.sourceKey,n)}).pipe(Ao.zipRight(dL(n))))),r.set(e.sourceKey,n),n},dL=e=>x0.close(e.scope,Zte.void).pipe(Ao.ignore),_L=e=>!e.runId||!e.sourceKey?e.connect:Ao.gen(function*(){return{client:(yield*j4e({runId:e.runId,sourceKey:e.sourceKey,connect:e.connect}).connection).client,close:async()=>{}}}),VC=e=>{let t=o_.get(e);return t?(o_.delete(e),Ao.forEach([...t.values()],dL,{discard:!0})):Ao.void},fL=()=>{let e=[...o_.values()].flatMap(t=>[...t.values()]);return o_.clear(),Ao.forEach(e,dL,{discard:!0})};var gn;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function r(o){throw new Error}e.assertNever=r,e.arrayToEnum=o=>{let i={};for(let a of o)i[a]=a;return i},e.getValidEnumValues=o=>{let i=e.objectKeys(o).filter(s=>typeof o[o[s]]!="number"),a={};for(let s of i)a[s]=o[s];return e.objectValues(a)},e.objectValues=o=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let i=[];for(let a in o)Object.prototype.hasOwnProperty.call(o,a)&&i.push(a);return i},e.find=(o,i)=>{for(let a of o)if(i(a))return a},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function n(o,i=" | "){return o.map(a=>typeof a=="string"?`'${a}'`:a).join(i)}e.joinValues=n,e.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(gn||(gn={}));var Qte;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Qte||(Qte={}));var gt=gn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),i_=e=>{switch(typeof e){case"undefined":return gt.undefined;case"string":return gt.string;case"number":return Number.isNaN(e)?gt.nan:gt.number;case"boolean":return gt.boolean;case"function":return gt.function;case"bigint":return gt.bigint;case"symbol":return gt.symbol;case"object":return Array.isArray(e)?gt.array:e===null?gt.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?gt.promise:typeof Map<"u"&&e instanceof Map?gt.map:typeof Set<"u"&&e instanceof Set?gt.set:typeof Date<"u"&&e instanceof Date?gt.date:gt.object;default:return gt.unknown}};var Ve=gn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var Ac=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(i){return i.message},n={_errors:[]},o=i=>{for(let a of i.issues)if(a.code==="invalid_union")a.unionErrors.map(o);else if(a.code==="invalid_return_type")o(a.returnTypeError);else if(a.code==="invalid_arguments")o(a.argumentsError);else if(a.path.length===0)n._errors.push(r(a));else{let s=n,c=0;for(;cr.message){let r=Object.create(null),n=[];for(let o of this.issues)if(o.path.length>0){let i=o.path[0];r[i]=r[i]||[],r[i].push(t(o))}else n.push(t(o));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Ac.create=e=>new Ac(e);var B4e=(e,t)=>{let r;switch(e.code){case Ve.invalid_type:e.received===gt.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case Ve.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,gn.jsonStringifyReplacer)}`;break;case Ve.unrecognized_keys:r=`Unrecognized key(s) in object: ${gn.joinValues(e.keys,", ")}`;break;case Ve.invalid_union:r="Invalid input";break;case Ve.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${gn.joinValues(e.options)}`;break;case Ve.invalid_enum_value:r=`Invalid enum value. Expected ${gn.joinValues(e.options)}, received '${e.received}'`;break;case Ve.invalid_arguments:r="Invalid function arguments";break;case Ve.invalid_return_type:r="Invalid function return type";break;case Ve.invalid_date:r="Invalid date";break;case Ve.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:gn.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case Ve.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case Ve.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case Ve.custom:r="Invalid input";break;case Ve.invalid_intersection_types:r="Intersection results could not be merged";break;case Ve.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Ve.not_finite:r="Number must be finite";break;default:r=t.defaultError,gn.assertNever(e)}return{message:r}},Xf=B4e;var q4e=Xf;function eE(){return q4e}var KC=e=>{let{data:t,path:r,errorMaps:n,issueData:o}=e,i=[...r,...o.path||[]],a={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let s="",c=n.filter(p=>!!p).slice().reverse();for(let p of c)s=p(a,{data:t,defaultError:s}).message;return{...o,path:i,message:s}};function ft(e,t){let r=eE(),n=KC({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Xf?void 0:Xf].filter(o=>!!o)});e.common.issues.push(n)}var ts=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let n=[];for(let o of r){if(o.status==="aborted")return yr;o.status==="dirty"&&t.dirty(),n.push(o.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let o of r){let i=await o.key,a=await o.value;n.push({key:i,value:a})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let o of r){let{key:i,value:a}=o;if(i.status==="aborted"||a.status==="aborted")return yr;i.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof a.value<"u"||o.alwaysSet)&&(n[i.value]=a.value)}return{status:t.value,value:n}}},yr=Object.freeze({status:"aborted"}),E0=e=>({status:"dirty",value:e}),bs=e=>({status:"valid",value:e}),mL=e=>e.status==="aborted",hL=e=>e.status==="dirty",$y=e=>e.status==="valid",tE=e=>typeof Promise<"u"&&e instanceof Promise;var Lt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Lt||(Lt={}));var bl=class{constructor(t,r,n,o){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Xte=(e,t)=>{if($y(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Ac(e.common.issues);return this._error=r,this._error}}};function jr(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(a,s)=>{let{message:c}=e;return a.code==="invalid_enum_value"?{message:c??s.defaultError}:typeof s.data>"u"?{message:c??n??s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:c??r??s.defaultError}},description:o}}var sn=class{get description(){return this._def.description}_getType(t){return i_(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:i_(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ts,ctx:{common:t.parent.common,data:t.data,parsedType:i_(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(tE(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:i_(t)},o=this._parseSync({data:t,path:n.path,parent:n});return Xte(n,o)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:i_(t)};if(!this["~standard"].async)try{let n=this._parseSync({data:t,path:[],parent:r});return $y(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(n=>$y(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:i_(t)},o=this._parse({data:t,path:n.path,parent:n}),i=await(tE(o)?o:Promise.resolve(o));return Xte(n,i)}refine(t,r){let n=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,i)=>{let a=t(o),s=()=>i.addIssue({code:Ve.custom,...n(o)});return typeof Promise<"u"&&a instanceof Promise?a.then(c=>c?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,r){return this._refinement((n,o)=>t(n)?!0:(o.addIssue(typeof r=="function"?r(n,o):r),!1))}_refinement(t){return new vu({schema:this,typeName:sr.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Su.create(this,this._def)}nullable(){return c_.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return em.create(this)}promise(){return My.create(this,this._def)}or(t){return w0.create([this,t],this._def)}and(t){return k0.create(this,t,this._def)}transform(t){return new vu({...jr(this._def),schema:this,typeName:sr.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new F0({...jr(this._def),innerType:this,defaultValue:r,typeName:sr.ZodDefault})}brand(){return new GC({typeName:sr.ZodBranded,type:this,...jr(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new R0({...jr(this._def),innerType:this,catchValue:r,typeName:sr.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return HC.create(this,t)}readonly(){return L0.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},U4e=/^c[^\s-]{8,}$/i,z4e=/^[0-9a-z]+$/,J4e=/^[0-9A-HJKMNP-TV-Z]{26}$/i,V4e=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,K4e=/^[a-z0-9_-]{21}$/i,G4e=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,H4e=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Z4e=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,W4e="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",yL,Q4e=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,X4e=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Y4e=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,eNe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,tNe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,rNe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Yte="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",nNe=new RegExp(`^${Yte}$`);function ere(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function oNe(e){return new RegExp(`^${ere(e)}$`)}function iNe(e){let t=`${Yte}T${ere(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function aNe(e,t){return!!((t==="v4"||!t)&&Q4e.test(e)||(t==="v6"||!t)&&Y4e.test(e))}function sNe(e,t){if(!G4e.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function cNe(e,t){return!!((t==="v4"||!t)&&X4e.test(e)||(t==="v6"||!t)&&eNe.test(e))}var D0=class e extends sn{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==gt.string){let i=this._getOrReturnCtx(t);return ft(i,{code:Ve.invalid_type,expected:gt.string,received:i.parsedType}),yr}let n=new ts,o;for(let i of this._def.checks)if(i.kind==="min")t.data.lengthi.value&&(o=this._getOrReturnCtx(t,o),ft(o,{code:Ve.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){let a=t.data.length>i.value,s=t.data.lengtht.test(o),{validation:r,code:Ve.invalid_string,...Lt.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Lt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Lt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Lt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Lt.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Lt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Lt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Lt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Lt.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Lt.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Lt.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Lt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Lt.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Lt.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...Lt.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Lt.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Lt.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Lt.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...Lt.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Lt.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Lt.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Lt.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Lt.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Lt.errToObj(r)})}nonempty(t){return this.min(1,Lt.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew D0({checks:[],typeName:sr.ZodString,coerce:e?.coerce??!1,...jr(e)});function lNe(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n,i=Number.parseInt(e.toFixed(o).replace(".","")),a=Number.parseInt(t.toFixed(o).replace(".",""));return i%a/10**o}var rE=class e extends sn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==gt.number){let i=this._getOrReturnCtx(t);return ft(i,{code:Ve.invalid_type,expected:gt.number,received:i.parsedType}),yr}let n,o=new ts;for(let i of this._def.checks)i.kind==="int"?gn.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),ft(n,{code:Ve.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),ft(n,{code:Ve.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?lNe(t.data,i.value)!==0&&(n=this._getOrReturnCtx(t,n),ft(n,{code:Ve.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),ft(n,{code:Ve.not_finite,message:i.message}),o.dirty()):gn.assertNever(i);return{status:o.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Lt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Lt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Lt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Lt.toString(r))}setLimit(t,r,n,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Lt.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Lt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Lt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Lt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Lt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Lt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Lt.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Lt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Lt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Lt.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.valuet.kind==="int"||t.kind==="multipleOf"&&gn.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.valuenew rE({checks:[],typeName:sr.ZodNumber,coerce:e?.coerce||!1,...jr(e)});var nE=class e extends sn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==gt.bigint)return this._getInvalidInput(t);let n,o=new ts;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),ft(n,{code:Ve.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),ft(n,{code:Ve.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):gn.assertNever(i);return{status:o.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return ft(r,{code:Ve.invalid_type,expected:gt.bigint,received:r.parsedType}),yr}gte(t,r){return this.setLimit("min",t,!0,Lt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Lt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Lt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Lt.toString(r))}setLimit(t,r,n,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Lt.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Lt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Lt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Lt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Lt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Lt.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew nE({checks:[],typeName:sr.ZodBigInt,coerce:e?.coerce??!1,...jr(e)});var oE=class extends sn{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==gt.boolean){let n=this._getOrReturnCtx(t);return ft(n,{code:Ve.invalid_type,expected:gt.boolean,received:n.parsedType}),yr}return bs(t.data)}};oE.create=e=>new oE({typeName:sr.ZodBoolean,coerce:e?.coerce||!1,...jr(e)});var iE=class e extends sn{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==gt.date){let i=this._getOrReturnCtx(t);return ft(i,{code:Ve.invalid_type,expected:gt.date,received:i.parsedType}),yr}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return ft(i,{code:Ve.invalid_date}),yr}let n=new ts,o;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()i.value&&(o=this._getOrReturnCtx(t,o),ft(o,{code:Ve.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):gn.assertNever(i);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:Lt.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Lt.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew iE({checks:[],coerce:e?.coerce||!1,typeName:sr.ZodDate,...jr(e)});var aE=class extends sn{_parse(t){if(this._getType(t)!==gt.symbol){let n=this._getOrReturnCtx(t);return ft(n,{code:Ve.invalid_type,expected:gt.symbol,received:n.parsedType}),yr}return bs(t.data)}};aE.create=e=>new aE({typeName:sr.ZodSymbol,...jr(e)});var A0=class extends sn{_parse(t){if(this._getType(t)!==gt.undefined){let n=this._getOrReturnCtx(t);return ft(n,{code:Ve.invalid_type,expected:gt.undefined,received:n.parsedType}),yr}return bs(t.data)}};A0.create=e=>new A0({typeName:sr.ZodUndefined,...jr(e)});var I0=class extends sn{_parse(t){if(this._getType(t)!==gt.null){let n=this._getOrReturnCtx(t);return ft(n,{code:Ve.invalid_type,expected:gt.null,received:n.parsedType}),yr}return bs(t.data)}};I0.create=e=>new I0({typeName:sr.ZodNull,...jr(e)});var sE=class extends sn{constructor(){super(...arguments),this._any=!0}_parse(t){return bs(t.data)}};sE.create=e=>new sE({typeName:sr.ZodAny,...jr(e)});var Yf=class extends sn{constructor(){super(...arguments),this._unknown=!0}_parse(t){return bs(t.data)}};Yf.create=e=>new Yf({typeName:sr.ZodUnknown,...jr(e)});var xp=class extends sn{_parse(t){let r=this._getOrReturnCtx(t);return ft(r,{code:Ve.invalid_type,expected:gt.never,received:r.parsedType}),yr}};xp.create=e=>new xp({typeName:sr.ZodNever,...jr(e)});var cE=class extends sn{_parse(t){if(this._getType(t)!==gt.undefined){let n=this._getOrReturnCtx(t);return ft(n,{code:Ve.invalid_type,expected:gt.void,received:n.parsedType}),yr}return bs(t.data)}};cE.create=e=>new cE({typeName:sr.ZodVoid,...jr(e)});var em=class e extends sn{_parse(t){let{ctx:r,status:n}=this._processInputParams(t),o=this._def;if(r.parsedType!==gt.array)return ft(r,{code:Ve.invalid_type,expected:gt.array,received:r.parsedType}),yr;if(o.exactLength!==null){let a=r.data.length>o.exactLength.value,s=r.data.lengtho.maxLength.value&&(ft(r,{code:Ve.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((a,s)=>o.type._parseAsync(new bl(r,a,r.path,s)))).then(a=>ts.mergeArray(n,a));let i=[...r.data].map((a,s)=>o.type._parseSync(new bl(r,a,r.path,s)));return ts.mergeArray(n,i)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:Lt.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:Lt.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:Lt.toString(r)}})}nonempty(t){return this.min(1,t)}};em.create=(e,t)=>new em({type:e,minLength:null,maxLength:null,exactLength:null,typeName:sr.ZodArray,...jr(t)});function T0(e){if(e instanceof Ic){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=Su.create(T0(n))}return new Ic({...e._def,shape:()=>t})}else return e instanceof em?new em({...e._def,type:T0(e.element)}):e instanceof Su?Su.create(T0(e.unwrap())):e instanceof c_?c_.create(T0(e.unwrap())):e instanceof s_?s_.create(e.items.map(t=>T0(t))):e}var Ic=class e extends sn{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=gn.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==gt.object){let p=this._getOrReturnCtx(t);return ft(p,{code:Ve.invalid_type,expected:gt.object,received:p.parsedType}),yr}let{status:n,ctx:o}=this._processInputParams(t),{shape:i,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof xp&&this._def.unknownKeys==="strip"))for(let p in o.data)a.includes(p)||s.push(p);let c=[];for(let p of a){let d=i[p],f=o.data[p];c.push({key:{status:"valid",value:p},value:d._parse(new bl(o,f,o.path,p)),alwaysSet:p in o.data})}if(this._def.catchall instanceof xp){let p=this._def.unknownKeys;if(p==="passthrough")for(let d of s)c.push({key:{status:"valid",value:d},value:{status:"valid",value:o.data[d]}});else if(p==="strict")s.length>0&&(ft(o,{code:Ve.unrecognized_keys,keys:s}),n.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let p=this._def.catchall;for(let d of s){let f=o.data[d];c.push({key:{status:"valid",value:d},value:p._parse(new bl(o,f,o.path,d)),alwaysSet:d in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let p=[];for(let d of c){let f=await d.key,m=await d.value;p.push({key:f,value:m,alwaysSet:d.alwaysSet})}return p}).then(p=>ts.mergeObjectSync(n,p)):ts.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(t){return Lt.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{let o=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:Lt.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:sr.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let n of gn.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let n of gn.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}deepPartial(){return T0(this)}partial(t){let r={};for(let n of gn.objectKeys(this.shape)){let o=this.shape[n];t&&!t[n]?r[n]=o:r[n]=o.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let n of gn.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof Su;)i=i._def.innerType;r[n]=i}return new e({...this._def,shape:()=>r})}keyof(){return tre(gn.objectKeys(this.shape))}};Ic.create=(e,t)=>new Ic({shape:()=>e,unknownKeys:"strip",catchall:xp.create(),typeName:sr.ZodObject,...jr(t)});Ic.strictCreate=(e,t)=>new Ic({shape:()=>e,unknownKeys:"strict",catchall:xp.create(),typeName:sr.ZodObject,...jr(t)});Ic.lazycreate=(e,t)=>new Ic({shape:e,unknownKeys:"strip",catchall:xp.create(),typeName:sr.ZodObject,...jr(t)});var w0=class extends sn{_parse(t){let{ctx:r}=this._processInputParams(t),n=this._def.options;function o(i){for(let s of i)if(s.result.status==="valid")return s.result;for(let s of i)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;let a=i.map(s=>new Ac(s.ctx.common.issues));return ft(r,{code:Ve.invalid_union,unionErrors:a}),yr}if(r.common.async)return Promise.all(n.map(async i=>{let a={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(o);{let i,a=[];for(let c of n){let p={...r,common:{...r.common,issues:[]},parent:null},d=c._parseSync({data:r.data,path:r.path,parent:p});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:p}),p.common.issues.length&&a.push(p.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;let s=a.map(c=>new Ac(c));return ft(r,{code:Ve.invalid_union,unionErrors:s}),yr}}get options(){return this._def.options}};w0.create=(e,t)=>new w0({options:e,typeName:sr.ZodUnion,...jr(t)});var a_=e=>e instanceof C0?a_(e.schema):e instanceof vu?a_(e.innerType()):e instanceof P0?[e.value]:e instanceof O0?e.options:e instanceof N0?gn.objectValues(e.enum):e instanceof F0?a_(e._def.innerType):e instanceof A0?[void 0]:e instanceof I0?[null]:e instanceof Su?[void 0,...a_(e.unwrap())]:e instanceof c_?[null,...a_(e.unwrap())]:e instanceof GC||e instanceof L0?a_(e.unwrap()):e instanceof R0?a_(e._def.innerType):[],gL=class e extends sn{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==gt.object)return ft(r,{code:Ve.invalid_type,expected:gt.object,received:r.parsedType}),yr;let n=this.discriminator,o=r.data[n],i=this.optionsMap.get(o);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(ft(r,{code:Ve.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),yr)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let o=new Map;for(let i of r){let a=a_(i.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let s of a){if(o.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);o.set(s,i)}}return new e({typeName:sr.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:o,...jr(n)})}};function SL(e,t){let r=i_(e),n=i_(t);if(e===t)return{valid:!0,data:e};if(r===gt.object&&n===gt.object){let o=gn.objectKeys(t),i=gn.objectKeys(e).filter(s=>o.indexOf(s)!==-1),a={...e,...t};for(let s of i){let c=SL(e[s],t[s]);if(!c.valid)return{valid:!1};a[s]=c.data}return{valid:!0,data:a}}else if(r===gt.array&&n===gt.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let i=0;i{if(mL(i)||mL(a))return yr;let s=SL(i.value,a.value);return s.valid?((hL(i)||hL(a))&&r.dirty(),{status:r.value,value:s.data}):(ft(n,{code:Ve.invalid_intersection_types}),yr)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,a])=>o(i,a)):o(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};k0.create=(e,t,r)=>new k0({left:e,right:t,typeName:sr.ZodIntersection,...jr(r)});var s_=class e extends sn{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==gt.array)return ft(n,{code:Ve.invalid_type,expected:gt.array,received:n.parsedType}),yr;if(n.data.lengththis._def.items.length&&(ft(n,{code:Ve.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let i=[...n.data].map((a,s)=>{let c=this._def.items[s]||this._def.rest;return c?c._parse(new bl(n,a,n.path,s)):null}).filter(a=>!!a);return n.common.async?Promise.all(i).then(a=>ts.mergeArray(r,a)):ts.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};s_.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new s_({items:e,typeName:sr.ZodTuple,rest:null,...jr(t)})};var vL=class e extends sn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==gt.object)return ft(n,{code:Ve.invalid_type,expected:gt.object,received:n.parsedType}),yr;let o=[],i=this._def.keyType,a=this._def.valueType;for(let s in n.data)o.push({key:i._parse(new bl(n,s,n.path,s)),value:a._parse(new bl(n,n.data[s],n.path,s)),alwaysSet:s in n.data});return n.common.async?ts.mergeObjectAsync(r,o):ts.mergeObjectSync(r,o)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof sn?new e({keyType:t,valueType:r,typeName:sr.ZodRecord,...jr(n)}):new e({keyType:D0.create(),valueType:t,typeName:sr.ZodRecord,...jr(r)})}},lE=class extends sn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==gt.map)return ft(n,{code:Ve.invalid_type,expected:gt.map,received:n.parsedType}),yr;let o=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([s,c],p)=>({key:o._parse(new bl(n,s,n.path,[p,"key"])),value:i._parse(new bl(n,c,n.path,[p,"value"]))}));if(n.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let c of a){let p=await c.key,d=await c.value;if(p.status==="aborted"||d.status==="aborted")return yr;(p.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(p.value,d.value)}return{status:r.value,value:s}})}else{let s=new Map;for(let c of a){let p=c.key,d=c.value;if(p.status==="aborted"||d.status==="aborted")return yr;(p.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(p.value,d.value)}return{status:r.value,value:s}}}};lE.create=(e,t,r)=>new lE({valueType:t,keyType:e,typeName:sr.ZodMap,...jr(r)});var uE=class e extends sn{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==gt.set)return ft(n,{code:Ve.invalid_type,expected:gt.set,received:n.parsedType}),yr;let o=this._def;o.minSize!==null&&n.data.sizeo.maxSize.value&&(ft(n,{code:Ve.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());let i=this._def.valueType;function a(c){let p=new Set;for(let d of c){if(d.status==="aborted")return yr;d.status==="dirty"&&r.dirty(),p.add(d.value)}return{status:r.value,value:p}}let s=[...n.data.values()].map((c,p)=>i._parse(new bl(n,c,n.path,p)));return n.common.async?Promise.all(s).then(c=>a(c)):a(s)}min(t,r){return new e({...this._def,minSize:{value:t,message:Lt.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:Lt.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};uE.create=(e,t)=>new uE({valueType:e,minSize:null,maxSize:null,typeName:sr.ZodSet,...jr(t)});var bL=class e extends sn{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==gt.function)return ft(r,{code:Ve.invalid_type,expected:gt.function,received:r.parsedType}),yr;function n(s,c){return KC({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,eE(),Xf].filter(p=>!!p),issueData:{code:Ve.invalid_arguments,argumentsError:c}})}function o(s,c){return KC({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,eE(),Xf].filter(p=>!!p),issueData:{code:Ve.invalid_return_type,returnTypeError:c}})}let i={errorMap:r.common.contextualErrorMap},a=r.data;if(this._def.returns instanceof My){let s=this;return bs(async function(...c){let p=new Ac([]),d=await s._def.args.parseAsync(c,i).catch(y=>{throw p.addIssue(n(c,y)),p}),f=await Reflect.apply(a,this,d);return await s._def.returns._def.type.parseAsync(f,i).catch(y=>{throw p.addIssue(o(f,y)),p})})}else{let s=this;return bs(function(...c){let p=s._def.args.safeParse(c,i);if(!p.success)throw new Ac([n(c,p.error)]);let d=Reflect.apply(a,this,p.data),f=s._def.returns.safeParse(d,i);if(!f.success)throw new Ac([o(d,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:s_.create(t).rest(Yf.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new e({args:t||s_.create([]).rest(Yf.create()),returns:r||Yf.create(),typeName:sr.ZodFunction,...jr(n)})}},C0=class extends sn{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};C0.create=(e,t)=>new C0({getter:e,typeName:sr.ZodLazy,...jr(t)});var P0=class extends sn{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return ft(r,{received:r.data,code:Ve.invalid_literal,expected:this._def.value}),yr}return{status:"valid",value:t.data}}get value(){return this._def.value}};P0.create=(e,t)=>new P0({value:e,typeName:sr.ZodLiteral,...jr(t)});function tre(e,t){return new O0({values:e,typeName:sr.ZodEnum,...jr(t)})}var O0=class e extends sn{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),n=this._def.values;return ft(r,{expected:gn.joinValues(n),received:r.parsedType,code:Ve.invalid_type}),yr}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),n=this._def.values;return ft(r,{received:r.data,code:Ve.invalid_enum_value,options:n}),yr}return bs(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}};O0.create=tre;var N0=class extends sn{_parse(t){let r=gn.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==gt.string&&n.parsedType!==gt.number){let o=gn.objectValues(r);return ft(n,{expected:gn.joinValues(o),received:n.parsedType,code:Ve.invalid_type}),yr}if(this._cache||(this._cache=new Set(gn.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=gn.objectValues(r);return ft(n,{received:n.data,code:Ve.invalid_enum_value,options:o}),yr}return bs(t.data)}get enum(){return this._def.values}};N0.create=(e,t)=>new N0({values:e,typeName:sr.ZodNativeEnum,...jr(t)});var My=class extends sn{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==gt.promise&&r.common.async===!1)return ft(r,{code:Ve.invalid_type,expected:gt.promise,received:r.parsedType}),yr;let n=r.parsedType===gt.promise?r.data:Promise.resolve(r.data);return bs(n.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}};My.create=(e,t)=>new My({type:e,typeName:sr.ZodPromise,...jr(t)});var vu=class extends sn{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===sr.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:a=>{ft(n,a),a.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){let a=o.transform(n.data,i);if(n.common.async)return Promise.resolve(a).then(async s=>{if(r.value==="aborted")return yr;let c=await this._def.schema._parseAsync({data:s,path:n.path,parent:n});return c.status==="aborted"?yr:c.status==="dirty"?E0(c.value):r.value==="dirty"?E0(c.value):c});{if(r.value==="aborted")return yr;let s=this._def.schema._parseSync({data:a,path:n.path,parent:n});return s.status==="aborted"?yr:s.status==="dirty"?E0(s.value):r.value==="dirty"?E0(s.value):s}}if(o.type==="refinement"){let a=s=>{let c=o.refinement(s,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?yr:(s.status==="dirty"&&r.dirty(),a(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>s.status==="aborted"?yr:(s.status==="dirty"&&r.dirty(),a(s.value).then(()=>({status:r.value,value:s.value}))))}if(o.type==="transform")if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!$y(a))return yr;let s=o.transform(a.value,i);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:s}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>$y(a)?Promise.resolve(o.transform(a.value,i)).then(s=>({status:r.value,value:s})):yr);gn.assertNever(o)}};vu.create=(e,t,r)=>new vu({schema:e,typeName:sr.ZodEffects,effect:t,...jr(r)});vu.createWithPreprocess=(e,t,r)=>new vu({schema:t,effect:{type:"preprocess",transform:e},typeName:sr.ZodEffects,...jr(r)});var Su=class extends sn{_parse(t){return this._getType(t)===gt.undefined?bs(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Su.create=(e,t)=>new Su({innerType:e,typeName:sr.ZodOptional,...jr(t)});var c_=class extends sn{_parse(t){return this._getType(t)===gt.null?bs(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};c_.create=(e,t)=>new c_({innerType:e,typeName:sr.ZodNullable,...jr(t)});var F0=class extends sn{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===gt.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};F0.create=(e,t)=>new F0({innerType:e,typeName:sr.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...jr(t)});var R0=class extends sn{_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return tE(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ac(n.common.issues)},input:n.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ac(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};R0.create=(e,t)=>new R0({innerType:e,typeName:sr.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...jr(t)});var pE=class extends sn{_parse(t){if(this._getType(t)!==gt.nan){let n=this._getOrReturnCtx(t);return ft(n,{code:Ve.invalid_type,expected:gt.nan,received:n.parsedType}),yr}return{status:"valid",value:t.data}}};pE.create=e=>new pE({typeName:sr.ZodNaN,...jr(e)});var GC=class extends sn{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},HC=class e extends sn{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?yr:i.status==="dirty"?(r.dirty(),E0(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{let o=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?yr:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:sr.ZodPipeline})}},L0=class extends sn{_parse(t){let r=this._def.innerType._parse(t),n=o=>($y(o)&&(o.value=Object.freeze(o.value)),o);return tE(r)?r.then(o=>n(o)):n(r)}unwrap(){return this._def.innerType}};L0.create=(e,t)=>new L0({innerType:e,typeName:sr.ZodReadonly,...jr(t)});var Xkt={object:Ic.lazycreate},sr;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(sr||(sr={}));var Ykt=D0.create,eCt=rE.create,tCt=pE.create,rCt=nE.create,nCt=oE.create,oCt=iE.create,iCt=aE.create,aCt=A0.create,sCt=I0.create,cCt=sE.create,lCt=Yf.create,uCt=xp.create,pCt=cE.create,dCt=em.create,uNe=Ic.create,_Ct=Ic.strictCreate,fCt=w0.create,mCt=gL.create,hCt=k0.create,yCt=s_.create,gCt=vL.create,SCt=lE.create,vCt=uE.create,bCt=bL.create,xCt=C0.create,ECt=P0.create,TCt=O0.create,DCt=N0.create,ACt=My.create,ICt=vu.create,wCt=Su.create,kCt=c_.create,CCt=vu.createWithPreprocess,PCt=HC.create;var WC=Object.freeze({status:"aborted"});function ne(e,t,r){function n(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);let p=a.prototype,d=Object.keys(p);for(let f=0;fr?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Ep=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},jy=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},ZC={};function Wi(e){return e&&Object.assign(ZC,e),ZC}var Ke={};r0(Ke,{BIGINT_FORMAT_RANGES:()=>PL,Class:()=>EL,NUMBER_FORMAT_RANGES:()=>CL,aborted:()=>om,allowsEval:()=>AL,assert:()=>yNe,assertEqual:()=>_Ne,assertIs:()=>mNe,assertNever:()=>hNe,assertNotEqual:()=>fNe,assignProp:()=>rm,base64ToUint8Array:()=>lre,base64urlToUint8Array:()=>wNe,cached:()=>M0,captureStackTrace:()=>XC,cleanEnum:()=>INe,cleanRegex:()=>fE,clone:()=>xs,cloneDef:()=>SNe,createTransparentProxy:()=>DNe,defineLazy:()=>zr,esc:()=>QC,escapeRegex:()=>xl,extend:()=>ire,finalizeIssue:()=>Zs,floatSafeRemainder:()=>TL,getElementAtPath:()=>vNe,getEnumValues:()=>_E,getLengthableOrigin:()=>yE,getParsedType:()=>TNe,getSizableOrigin:()=>hE,hexToUint8Array:()=>CNe,isObject:()=>By,isPlainObject:()=>nm,issue:()=>j0,joinValues:()=>ur,jsonStringifyReplacer:()=>$0,merge:()=>ANe,mergeDefs:()=>l_,normalizeParams:()=>st,nullish:()=>tm,numKeys:()=>ENe,objectClone:()=>gNe,omit:()=>ore,optionalKeys:()=>kL,parsedType:()=>gr,partial:()=>sre,pick:()=>nre,prefixIssues:()=>wc,primitiveTypes:()=>wL,promiseAllObject:()=>bNe,propertyKeyTypes:()=>mE,randomString:()=>xNe,required:()=>cre,safeExtend:()=>are,shallowClone:()=>IL,slugify:()=>DL,stringifyPrimitive:()=>pr,uint8ArrayToBase64:()=>ure,uint8ArrayToBase64url:()=>kNe,uint8ArrayToHex:()=>PNe,unwrapMessage:()=>dE});function _Ne(e){return e}function fNe(e){return e}function mNe(e){}function hNe(e){throw new Error("Unexpected value in exhaustive check")}function yNe(e){}function _E(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}function ur(e,t="|"){return e.map(r=>pr(r)).join(t)}function $0(e,t){return typeof t=="bigint"?t.toString():t}function M0(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function tm(e){return e==null}function fE(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function TL(e,t){let r=(e.toString().split(".")[1]||"").length,n=t.toString(),o=(n.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(n)){let c=n.match(/\d?e-(\d?)/);c?.[1]&&(o=Number.parseInt(c[1]))}let i=r>o?r:o,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return a%s/10**i}var rre=Symbol("evaluating");function zr(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==rre)return n===void 0&&(n=rre,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function gNe(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function rm(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function l_(...e){let t={};for(let r of e){let n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function SNe(e){return l_(e._zod.def)}function vNe(e,t){return t?t.reduce((r,n)=>r?.[n],e):e}function bNe(e){let t=Object.keys(e),r=t.map(n=>e[n]);return Promise.all(r).then(n=>{let o={};for(let i=0;i{};function By(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var AL=M0(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function nm(e){if(By(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(By(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function IL(e){return nm(e)?{...e}:Array.isArray(e)?[...e]:e}function ENe(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var TNe=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},mE=new Set(["string","number","symbol"]),wL=new Set(["string","number","bigint","boolean","symbol","undefined"]);function xl(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xs(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function st(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function DNe(e){let t;return new Proxy({},{get(r,n,o){return t??(t=e()),Reflect.get(t,n,o)},set(r,n,o,i){return t??(t=e()),Reflect.set(t,n,o,i)},has(r,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(r,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(r,n,o){return t??(t=e()),Reflect.defineProperty(t,n,o)}})}function pr(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function kL(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var CL={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},PL={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function nre(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=l_(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return rm(this,"shape",a),a},checks:[]});return xs(e,i)}function ore(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=l_(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return rm(this,"shape",a),a},checks:[]});return xs(e,i)}function ire(e,t){if(!nm(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let o=l_(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return rm(this,"shape",i),i}});return xs(e,o)}function are(e,t){if(!nm(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=l_(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return rm(this,"shape",n),n}});return xs(e,r)}function ANe(e,t){let r=l_(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return rm(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return xs(e,r)}function sre(e,t,r){let o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=l_(t._zod.def,{get shape(){let s=t._zod.def.shape,c={...s};if(r)for(let p in r){if(!(p in s))throw new Error(`Unrecognized key: "${p}"`);r[p]&&(c[p]=e?new e({type:"optional",innerType:s[p]}):s[p])}else for(let p in s)c[p]=e?new e({type:"optional",innerType:s[p]}):s[p];return rm(this,"shape",c),c},checks:[]});return xs(t,a)}function cre(e,t,r){let n=l_(t._zod.def,{get shape(){let o=t._zod.def.shape,i={...o};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:o[a]}))}else for(let a in o)i[a]=new e({type:"nonoptional",innerType:o[a]});return rm(this,"shape",i),i}});return xs(t,n)}function om(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function dE(e){return typeof e=="string"?e:e?.message}function Zs(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let o=dE(e.inst?._zod.def?.error?.(e))??dE(t?.error?.(e))??dE(r.customError?.(e))??dE(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function hE(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function yE(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function gr(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function j0(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}function INe(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function lre(e){let t=atob(e),r=new Uint8Array(t.length);for(let n=0;nt.toString(16).padStart(2,"0")).join("")}var EL=class{constructor(...t){}};var pre=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,$0,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},YC=ne("$ZodError",pre),gE=ne("$ZodError",pre,{Parent:Error});function eP(e,t=r=>r.message){let r={},n=[];for(let o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):n.push(t(o));return{formErrors:n,fieldErrors:r}}function tP(e,t=r=>r.message){let r={_errors:[]},n=o=>{for(let i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>n({issues:a}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let a=r,s=0;for(;s(t,r,n,o)=>{let i=n?Object.assign(n,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new Ep;if(a.issues.length){let s=new(o?.Err??e)(a.issues.map(c=>Zs(c,i,Wi())));throw XC(s,o?.callee),s}return a.value},vE=SE(gE),bE=e=>async(t,r,n,o)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(o?.Err??e)(a.issues.map(c=>Zs(c,i,Wi())));throw XC(s,o?.callee),s}return a.value},xE=bE(gE),EE=e=>(t,r,n)=>{let o=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new Ep;return i.issues.length?{success:!1,error:new(e??YC)(i.issues.map(a=>Zs(a,o,Wi())))}:{success:!0,data:i.value}},B0=EE(gE),TE=e=>async(t,r,n)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>Zs(a,o,Wi())))}:{success:!0,data:i.value}},DE=TE(gE),dre=e=>(t,r,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return SE(e)(t,r,o)};var _re=e=>(t,r,n)=>SE(e)(t,r,n);var fre=e=>async(t,r,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return bE(e)(t,r,o)};var mre=e=>async(t,r,n)=>bE(e)(t,r,n);var hre=e=>(t,r,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return EE(e)(t,r,o)};var yre=e=>(t,r,n)=>EE(e)(t,r,n);var gre=e=>async(t,r,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return TE(e)(t,r,o)};var Sre=e=>async(t,r,n)=>TE(e)(t,r,n);var El={};r0(El,{base64:()=>GL,base64url:()=>rP,bigint:()=>YL,boolean:()=>t$,browserEmail:()=>BNe,cidrv4:()=>VL,cidrv6:()=>KL,cuid:()=>OL,cuid2:()=>NL,date:()=>ZL,datetime:()=>QL,domain:()=>zNe,duration:()=>ML,e164:()=>HL,email:()=>BL,emoji:()=>qL,extendedDuration:()=>NNe,guid:()=>jL,hex:()=>JNe,hostname:()=>UNe,html5Email:()=>$Ne,idnEmail:()=>jNe,integer:()=>e$,ipv4:()=>UL,ipv6:()=>zL,ksuid:()=>LL,lowercase:()=>o$,mac:()=>JL,md5_base64:()=>KNe,md5_base64url:()=>GNe,md5_hex:()=>VNe,nanoid:()=>$L,null:()=>r$,number:()=>nP,rfc5322Email:()=>MNe,sha1_base64:()=>ZNe,sha1_base64url:()=>WNe,sha1_hex:()=>HNe,sha256_base64:()=>XNe,sha256_base64url:()=>YNe,sha256_hex:()=>QNe,sha384_base64:()=>tFe,sha384_base64url:()=>rFe,sha384_hex:()=>eFe,sha512_base64:()=>oFe,sha512_base64url:()=>iFe,sha512_hex:()=>nFe,string:()=>XL,time:()=>WL,ulid:()=>FL,undefined:()=>n$,unicodeEmail:()=>vre,uppercase:()=>i$,uuid:()=>qy,uuid4:()=>FNe,uuid6:()=>RNe,uuid7:()=>LNe,xid:()=>RL});var OL=/^[cC][^\s-]{8,}$/,NL=/^[0-9a-z]+$/,FL=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,RL=/^[0-9a-vA-V]{20}$/,LL=/^[A-Za-z0-9]{27}$/,$L=/^[a-zA-Z0-9_-]{21}$/,ML=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,NNe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,jL=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,qy=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,FNe=qy(4),RNe=qy(6),LNe=qy(7),BL=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,$Ne=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,MNe=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,vre=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,jNe=vre,BNe=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,qNe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function qL(){return new RegExp(qNe,"u")}var UL=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,zL=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,JL=e=>{let t=xl(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},VL=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,KL=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,GL=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,rP=/^[A-Za-z0-9_-]*$/,UNe=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,zNe=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,HL=/^\+[1-9]\d{6,14}$/,bre="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",ZL=new RegExp(`^${bre}$`);function xre(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function WL(e){return new RegExp(`^${xre(e)}$`)}function QL(e){let t=xre({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${r.join("|")})`;return new RegExp(`^${bre}T(?:${n})$`)}var XL=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},YL=/^-?\d+n?$/,e$=/^-?\d+$/,nP=/^-?\d+(?:\.\d+)?$/,t$=/^(?:true|false)$/i,r$=/^null$/i;var n$=/^undefined$/i;var o$=/^[^A-Z]*$/,i$=/^[^a-z]*$/,JNe=/^[0-9a-fA-F]*$/;function AE(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function IE(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var VNe=/^[0-9a-fA-F]{32}$/,KNe=AE(22,"=="),GNe=IE(22),HNe=/^[0-9a-fA-F]{40}$/,ZNe=AE(27,"="),WNe=IE(27),QNe=/^[0-9a-fA-F]{64}$/,XNe=AE(43,"="),YNe=IE(43),eFe=/^[0-9a-fA-F]{96}$/,tFe=AE(64,""),rFe=IE(64),nFe=/^[0-9a-fA-F]{128}$/,oFe=AE(86,"=="),iFe=IE(86);var Io=ne("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Tre={number:"number",bigint:"bigint",object:"date"},a$=ne("$ZodCheckLessThan",(e,t)=>{Io.init(e,t);let r=Tre[typeof t.value];e._zod.onattach.push(n=>{let o=n._zod.bag,i=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value{(t.inclusive?n.value<=t.value:n.value{Io.init(e,t);let r=Tre[typeof t.value];e._zod.onattach.push(n=>{let o=n._zod.bag,i=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Dre=ne("$ZodCheckMultipleOf",(e,t)=>{Io.init(e,t),e._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):TL(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Are=ne("$ZodCheckNumberFormat",(e,t)=>{Io.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[o,i]=CL[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=o,s.maximum=i,r&&(s.pattern=e$)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}si&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Ire=ne("$ZodCheckBigIntFormat",(e,t)=>{Io.init(e,t);let[r,n]=PL[t.format];e._zod.onattach.push(o=>{let i=o._zod.bag;i.format=t.format,i.minimum=r,i.maximum=n}),e._zod.check=o=>{let i=o.value;in&&o.issues.push({origin:"bigint",input:i,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),wre=ne("$ZodCheckMaxSize",(e,t)=>{var r;Io.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!tm(o)&&o.size!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{let o=n.value;o.size<=t.maximum||n.issues.push({origin:hE(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),kre=ne("$ZodCheckMinSize",(e,t)=>{var r;Io.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!tm(o)&&o.size!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let o=n.value;o.size>=t.minimum||n.issues.push({origin:hE(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Cre=ne("$ZodCheckSizeEquals",(e,t)=>{var r;Io.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!tm(o)&&o.size!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag;o.minimum=t.size,o.maximum=t.size,o.size=t.size}),e._zod.check=n=>{let o=n.value,i=o.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:hE(o),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Pre=ne("$ZodCheckMaxLength",(e,t)=>{var r;Io.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!tm(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{let o=n.value;if(o.length<=t.maximum)return;let a=yE(o);n.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Ore=ne("$ZodCheckMinLength",(e,t)=>{var r;Io.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!tm(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let o=n.value;if(o.length>=t.minimum)return;let a=yE(o);n.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Nre=ne("$ZodCheckLengthEquals",(e,t)=>{var r;Io.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!tm(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=n=>{let o=n.value,i=o.length;if(i===t.length)return;let a=yE(o),s=i>t.length;n.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),wE=ne("$ZodCheckStringFormat",(e,t)=>{var r,n;Io.init(e,t),e._zod.onattach.push(o=>{let i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Fre=ne("$ZodCheckRegex",(e,t)=>{wE.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Rre=ne("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=o$),wE.init(e,t)}),Lre=ne("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=i$),wE.init(e,t)}),$re=ne("$ZodCheckIncludes",(e,t)=>{Io.init(e,t);let r=xl(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(o=>{let i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Mre=ne("$ZodCheckStartsWith",(e,t)=>{Io.init(e,t);let r=new RegExp(`^${xl(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),jre=ne("$ZodCheckEndsWith",(e,t)=>{Io.init(e,t);let r=new RegExp(`.*${xl(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function Ere(e,t,r){e.issues.length&&t.issues.push(...wc(r,e.issues))}var Bre=ne("$ZodCheckProperty",(e,t)=>{Io.init(e,t),e._zod.check=r=>{let n=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(o=>Ere(o,r,t.property));Ere(n,r,t.property)}}),qre=ne("$ZodCheckMimeType",(e,t)=>{Io.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=t.mime}),e._zod.check=n=>{r.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),Ure=ne("$ZodCheckOverwrite",(e,t)=>{Io.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var oP=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let n=t.split(` `).filter(a=>a),o=Math.min(...n.map(a=>a.length-a.trimStart().length)),i=n.map(a=>a.slice(o)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,r=this?.args,o=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...r,o.join(` -`))}};var Ure={major:4,minor:3,patch:6};var Cr=ne("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ure;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let o of n)for(let i of o._zod.onattach)i(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let o=(a,s,c)=>{let p=tm(a),d;for(let f of s){if(f._zod.def.when){if(!f._zod.def.when(a))continue}else if(p)continue;let m=a.issues.length,y=f._zod.check(a);if(y instanceof Promise&&c?.async===!1)throw new xp;if(d||y instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await y,a.issues.length!==m&&(p||(p=tm(a,m)))});else{if(a.issues.length===m)continue;p||(p=tm(a,m))}}return d?d.then(()=>a):a},i=(a,s,c)=>{if(tm(a))return a.aborted=!0,a;let p=o(s,n,c);if(p instanceof Promise){if(c.async===!1)throw new xp;return p.then(d=>e._zod.parse(d,c))}return e._zod.parse(p,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let p=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return p instanceof Promise?p.then(d=>i(d,a,s)):i(p,a,s)}let c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new xp;return c.then(p=>o(p,n,s))}return o(c,n,s)}}Ur(e,"~standard",()=>({validate:o=>{try{let i=$0(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return EE(e,o).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),My=ne("$ZodString",(e,t)=>{Cr.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??WL(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),yo=ne("$ZodStringFormat",(e,t)=>{AE.init(e,t),My.init(e,t)}),s$=ne("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=$L),yo.init(e,t)}),c$=ne("$ZodUUID",(e,t)=>{if(t.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=$y(n))}else t.pattern??(t.pattern=$y());yo.init(e,t)}),l$=ne("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ML),yo.init(e,t)}),u$=ne("$ZodURL",(e,t)=>{yo.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),o=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),p$=ne("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=jL()),yo.init(e,t)}),d$=ne("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=RL),yo.init(e,t)}),_$=ne("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=CL),yo.init(e,t)}),f$=ne("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=PL),yo.init(e,t)}),m$=ne("$ZodULID",(e,t)=>{t.pattern??(t.pattern=OL),yo.init(e,t)}),h$=ne("$ZodXID",(e,t)=>{t.pattern??(t.pattern=NL),yo.init(e,t)}),y$=ne("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=FL),yo.init(e,t)}),g$=ne("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=ZL(t)),yo.init(e,t)}),S$=ne("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=GL),yo.init(e,t)}),v$=ne("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=HL(t)),yo.init(e,t)}),b$=ne("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=LL),yo.init(e,t)}),x$=ne("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=BL),yo.init(e,t),e._zod.bag.format="ipv4"}),E$=ne("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=qL),yo.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),T$=ne("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=UL(t.delimiter)),yo.init(e,t),e._zod.bag.format="mac"}),D$=ne("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=zL),yo.init(e,t)}),A$=ne("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=VL),yo.init(e,t),e._zod.check=r=>{let n=r.value.split("/");try{if(n.length!==2)throw new Error;let[o,i]=n;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function ene(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var w$=ne("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=JL),yo.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{ene(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function oFe(e){if(!eP.test(e))return!1;let t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return ene(r)}var I$=ne("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=eP),yo.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{oFe(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),k$=ne("$ZodE164",(e,t)=>{t.pattern??(t.pattern=KL),yo.init(e,t)});function iFe(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[n]=r;if(!n)return!1;let o=JSON.parse(atob(n));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}var C$=ne("$ZodJWT",(e,t)=>{yo.init(e,t),e._zod.check=r=>{iFe(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),P$=ne("$ZodCustomStringFormat",(e,t)=>{yo.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),cP=ne("$ZodNumber",(e,t)=>{Cr.init(e,t),e._zod.pattern=e._zod.bag.pattern??tP,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;let i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),r}}),O$=ne("$ZodNumberFormat",(e,t)=>{Tre.init(e,t),cP.init(e,t)}),wE=ne("$ZodBoolean",(e,t)=>{Cr.init(e,t),e._zod.pattern=YL,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let o=r.value;return typeof o=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),r}}),lP=ne("$ZodBigInt",(e,t)=>{Cr.init(e,t),e._zod.pattern=QL,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),N$=ne("$ZodBigIntFormat",(e,t)=>{Dre.init(e,t),lP.init(e,t)}),F$=ne("$ZodSymbol",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return typeof o=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:o,inst:e}),r}}),R$=ne("$ZodUndefined",(e,t)=>{Cr.init(e,t),e._zod.pattern=t$,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,n)=>{let o=r.value;return typeof o>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),r}}),L$=ne("$ZodNull",(e,t)=>{Cr.init(e,t),e._zod.pattern=e$,e._zod.values=new Set([null]),e._zod.parse=(r,n)=>{let o=r.value;return o===null||r.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),r}}),$$=ne("$ZodAny",(e,t)=>{Cr.init(e,t),e._zod.parse=r=>r}),M$=ne("$ZodUnknown",(e,t)=>{Cr.init(e,t),e._zod.parse=r=>r}),j$=ne("$ZodNever",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),B$=ne("$ZodVoid",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return typeof o>"u"||r.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),r}}),q$=ne("$ZodDate",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let o=r.value,i=o instanceof Date;return i&&!Number.isNaN(o.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:o,...i?{received:"Invalid Date"}:{},inst:e}),r}});function zre(e,t,r){e.issues.length&&t.issues.push(...Ic(r,e.issues)),t.value[r]=e.value}var U$=ne("$ZodArray",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);let i=[];for(let a=0;azre(p,r,a))):zre(c,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function sP(e,t,r,n,o){if(e.issues.length){if(o&&!(r in n))return;t.issues.push(...Ic(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function tne(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=wL(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function rne(e,t,r,n,o,i){let a=[],s=o.keySet,c=o.catchall._zod,p=c.def.type,d=c.optout==="optional";for(let f in t){if(s.has(f))continue;if(p==="never"){a.push(f);continue}let m=c.run({value:t[f],issues:[]},n);m instanceof Promise?e.push(m.then(y=>sP(y,r,f,t,d))):sP(m,r,f,t,d)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var nne=ne("$ZodObject",(e,t)=>{if(Cr.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...s};return Object.defineProperty(t,"shape",{value:c}),c}})}let n=R0(()=>tne(t));Ur(e._zod,"propValues",()=>{let s=t.shape,c={};for(let p in s){let d=s[p]._zod;if(d.values){c[p]??(c[p]=new Set);for(let f of d.values)c[p].add(f)}}return c});let o=Ly,i=t.catchall,a;e._zod.parse=(s,c)=>{a??(a=n.value);let p=s.value;if(!o(p))return s.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),s;s.value={};let d=[],f=a.shape;for(let m of a.keys){let y=f[m],g=y._zod.optout==="optional",S=y._zod.run({value:p[m],issues:[]},c);S instanceof Promise?d.push(S.then(x=>sP(x,s,m,p,g))):sP(S,s,m,p,g)}return i?rne(d,p,s,c,n.value,e):d.length?Promise.all(d).then(()=>s):s}}),one=ne("$ZodObjectJIT",(e,t)=>{nne.init(e,t);let r=e._zod.parse,n=R0(()=>tne(t)),o=m=>{let y=new rP(["shape","payload","ctx"]),g=n.value,S=E=>{let C=ZC(E);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};y.write("const input = payload.value;");let x=Object.create(null),A=0;for(let E of g.keys)x[E]=`key_${A++}`;y.write("const newResult = {};");for(let E of g.keys){let C=x[E],F=ZC(E),$=m[E]?._zod?.optout==="optional";y.write(`const ${C} = ${S(E)};`),$?y.write(` - if (${C}.issues.length) { +`))}};var Jre={major:4,minor:3,patch:6};var Cr=ne("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Jre;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let o of n)for(let i of o._zod.onattach)i(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let o=(a,s,c)=>{let p=om(a),d;for(let f of s){if(f._zod.def.when){if(!f._zod.def.when(a))continue}else if(p)continue;let m=a.issues.length,y=f._zod.check(a);if(y instanceof Promise&&c?.async===!1)throw new Ep;if(d||y instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await y,a.issues.length!==m&&(p||(p=om(a,m)))});else{if(a.issues.length===m)continue;p||(p=om(a,m))}}return d?d.then(()=>a):a},i=(a,s,c)=>{if(om(a))return a.aborted=!0,a;let p=o(s,n,c);if(p instanceof Promise){if(c.async===!1)throw new Ep;return p.then(d=>e._zod.parse(d,c))}return e._zod.parse(p,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let p=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return p instanceof Promise?p.then(d=>i(d,a,s)):i(p,a,s)}let c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new Ep;return c.then(p=>o(p,n,s))}return o(c,n,s)}}zr(e,"~standard",()=>({validate:o=>{try{let i=B0(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return DE(e,o).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Uy=ne("$ZodString",(e,t)=>{Cr.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??XL(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),yo=ne("$ZodStringFormat",(e,t)=>{wE.init(e,t),Uy.init(e,t)}),l$=ne("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=jL),yo.init(e,t)}),u$=ne("$ZodUUID",(e,t)=>{if(t.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=qy(n))}else t.pattern??(t.pattern=qy());yo.init(e,t)}),p$=ne("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=BL),yo.init(e,t)}),d$=ne("$ZodURL",(e,t)=>{yo.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),o=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),_$=ne("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=qL()),yo.init(e,t)}),f$=ne("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=$L),yo.init(e,t)}),m$=ne("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=OL),yo.init(e,t)}),h$=ne("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=NL),yo.init(e,t)}),y$=ne("$ZodULID",(e,t)=>{t.pattern??(t.pattern=FL),yo.init(e,t)}),g$=ne("$ZodXID",(e,t)=>{t.pattern??(t.pattern=RL),yo.init(e,t)}),S$=ne("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=LL),yo.init(e,t)}),v$=ne("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=QL(t)),yo.init(e,t)}),b$=ne("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=ZL),yo.init(e,t)}),x$=ne("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=WL(t)),yo.init(e,t)}),E$=ne("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ML),yo.init(e,t)}),T$=ne("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=UL),yo.init(e,t),e._zod.bag.format="ipv4"}),D$=ne("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=zL),yo.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),A$=ne("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=JL(t.delimiter)),yo.init(e,t),e._zod.bag.format="mac"}),I$=ne("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=VL),yo.init(e,t)}),w$=ne("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=KL),yo.init(e,t),e._zod.check=r=>{let n=r.value.split("/");try{if(n.length!==2)throw new Error;let[o,i]=n;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function rne(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var k$=ne("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=GL),yo.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{rne(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function aFe(e){if(!rP.test(e))return!1;let t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return rne(r)}var C$=ne("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=rP),yo.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{aFe(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),P$=ne("$ZodE164",(e,t)=>{t.pattern??(t.pattern=HL),yo.init(e,t)});function sFe(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[n]=r;if(!n)return!1;let o=JSON.parse(atob(n));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}var O$=ne("$ZodJWT",(e,t)=>{yo.init(e,t),e._zod.check=r=>{sFe(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),N$=ne("$ZodCustomStringFormat",(e,t)=>{yo.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),uP=ne("$ZodNumber",(e,t)=>{Cr.init(e,t),e._zod.pattern=e._zod.bag.pattern??nP,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;let i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),r}}),F$=ne("$ZodNumberFormat",(e,t)=>{Are.init(e,t),uP.init(e,t)}),kE=ne("$ZodBoolean",(e,t)=>{Cr.init(e,t),e._zod.pattern=t$,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let o=r.value;return typeof o=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),r}}),pP=ne("$ZodBigInt",(e,t)=>{Cr.init(e,t),e._zod.pattern=YL,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),R$=ne("$ZodBigIntFormat",(e,t)=>{Ire.init(e,t),pP.init(e,t)}),L$=ne("$ZodSymbol",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return typeof o=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:o,inst:e}),r}}),$$=ne("$ZodUndefined",(e,t)=>{Cr.init(e,t),e._zod.pattern=n$,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,n)=>{let o=r.value;return typeof o>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),r}}),M$=ne("$ZodNull",(e,t)=>{Cr.init(e,t),e._zod.pattern=r$,e._zod.values=new Set([null]),e._zod.parse=(r,n)=>{let o=r.value;return o===null||r.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),r}}),j$=ne("$ZodAny",(e,t)=>{Cr.init(e,t),e._zod.parse=r=>r}),B$=ne("$ZodUnknown",(e,t)=>{Cr.init(e,t),e._zod.parse=r=>r}),q$=ne("$ZodNever",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),U$=ne("$ZodVoid",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return typeof o>"u"||r.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),r}}),z$=ne("$ZodDate",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let o=r.value,i=o instanceof Date;return i&&!Number.isNaN(o.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:o,...i?{received:"Invalid Date"}:{},inst:e}),r}});function Vre(e,t,r){e.issues.length&&t.issues.push(...wc(r,e.issues)),t.value[r]=e.value}var J$=ne("$ZodArray",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);let i=[];for(let a=0;aVre(p,r,a))):Vre(c,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function lP(e,t,r,n,o){if(e.issues.length){if(o&&!(r in n))return;t.issues.push(...wc(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function nne(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=kL(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function one(e,t,r,n,o,i){let a=[],s=o.keySet,c=o.catchall._zod,p=c.def.type,d=c.optout==="optional";for(let f in t){if(s.has(f))continue;if(p==="never"){a.push(f);continue}let m=c.run({value:t[f],issues:[]},n);m instanceof Promise?e.push(m.then(y=>lP(y,r,f,t,d))):lP(m,r,f,t,d)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var ine=ne("$ZodObject",(e,t)=>{if(Cr.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...s};return Object.defineProperty(t,"shape",{value:c}),c}})}let n=M0(()=>nne(t));zr(e._zod,"propValues",()=>{let s=t.shape,c={};for(let p in s){let d=s[p]._zod;if(d.values){c[p]??(c[p]=new Set);for(let f of d.values)c[p].add(f)}}return c});let o=By,i=t.catchall,a;e._zod.parse=(s,c)=>{a??(a=n.value);let p=s.value;if(!o(p))return s.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),s;s.value={};let d=[],f=a.shape;for(let m of a.keys){let y=f[m],g=y._zod.optout==="optional",S=y._zod.run({value:p[m],issues:[]},c);S instanceof Promise?d.push(S.then(b=>lP(b,s,m,p,g))):lP(S,s,m,p,g)}return i?one(d,p,s,c,n.value,e):d.length?Promise.all(d).then(()=>s):s}}),ane=ne("$ZodObjectJIT",(e,t)=>{ine.init(e,t);let r=e._zod.parse,n=M0(()=>nne(t)),o=m=>{let y=new oP(["shape","payload","ctx"]),g=n.value,S=T=>{let k=QC(T);return`shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`};y.write("const input = payload.value;");let b=Object.create(null),E=0;for(let T of g.keys)b[T]=`key_${E++}`;y.write("const newResult = {};");for(let T of g.keys){let k=b[T],F=QC(T),$=m[T]?._zod?.optout==="optional";y.write(`const ${k} = ${S(T)};`),$?y.write(` + if (${k}.issues.length) { if (${F} in input) { - payload.issues = payload.issues.concat(${C}.issues.map(iss => ({ + payload.issues = payload.issues.concat(${k}.issues.map(iss => ({ ...iss, path: iss.path ? [${F}, ...iss.path] : [${F}] }))); } } - if (${C}.value === undefined) { + if (${k}.value === undefined) { if (${F} in input) { newResult[${F}] = undefined; } } else { - newResult[${F}] = ${C}.value; + newResult[${F}] = ${k}.value; } `):y.write(` - if (${C}.issues.length) { - payload.issues = payload.issues.concat(${C}.issues.map(iss => ({ + if (${k}.issues.length) { + payload.issues = payload.issues.concat(${k}.issues.map(iss => ({ ...iss, path: iss.path ? [${F}, ...iss.path] : [${F}] }))); } - if (${C}.value === undefined) { + if (${k}.value === undefined) { if (${F} in input) { newResult[${F}] = undefined; } } else { - newResult[${F}] = ${C}.value; + newResult[${F}] = ${k}.value; } - `)}y.write("payload.value = newResult;"),y.write("return payload;");let I=y.compile();return(E,C)=>I(m,E,C)},i,a=Ly,s=!GC.jitless,p=s&&TL.value,d=t.catchall,f;e._zod.parse=(m,y)=>{f??(f=n.value);let g=m.value;return a(g)?s&&p&&y?.async===!1&&y.jitless!==!0?(i||(i=o(t.shape)),m=i(m,y),d?rne([],g,m,y,f,e):m):r(m,y):(m.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),m)}});function Vre(e,t,r,n){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let o=e.filter(i=>!tm(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>Zs(a,n,Wi())))}),t)}var IE=ne("$ZodUnion",(e,t)=>{Cr.init(e,t),Ur(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Ur(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Ur(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Ur(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>dE(i.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(r)return n(o,i);let a=!1,s=[];for(let c of t.options){let p=c._zod.run({value:o.value,issues:[]},i);if(p instanceof Promise)s.push(p),a=!0;else{if(p.issues.length===0)return p;s.push(p)}}return a?Promise.all(s).then(c=>Vre(c,o,e,i)):Vre(s,o,e,i)}});function Jre(e,t,r,n){let o=e.filter(i=>i.issues.length===0);return o.length===1?(t.value=o[0].value,t):(o.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>Zs(a,n,Wi())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var z$=ne("$ZodXor",(e,t)=>{IE.init(e,t),t.inclusive=!1;let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(r)return n(o,i);let a=!1,s=[];for(let c of t.options){let p=c._zod.run({value:o.value,issues:[]},i);p instanceof Promise?(s.push(p),a=!0):s.push(p)}return a?Promise.all(s).then(c=>Jre(c,o,e,i)):Jre(s,o,e,i)}}),V$=ne("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,IE.init(e,t);let r=e._zod.parse;Ur(e._zod,"propValues",()=>{let o={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[s,c]of Object.entries(a)){o[s]||(o[s]=new Set);for(let p of c)o[s].add(p)}}return o});let n=R0(()=>{let o=t.options,i=new Map;for(let a of o){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of s){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,a)}}return i});e._zod.parse=(o,i)=>{let a=o.value;if(!Ly(a))return o.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),o;let s=n.value.get(a?.[t.discriminator]);return s?s._zod.run(o,i):t.unionFallback?r(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),o)}}),J$=ne("$ZodIntersection",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value,i=t.left._zod.run({value:o,issues:[]},n),a=t.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,p])=>Kre(r,c,p)):Kre(r,i,a)}});function a$(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(em(e)&&em(t)){let r=Object.keys(t),n=Object.keys(e).filter(i=>r.indexOf(i)!==-1),o={...e,...t};for(let i of n){let a=a$(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let n=0;ns.l&&s.r).map(([s])=>s);if(i.length&&o&&e.issues.push({...o,keys:i}),tm(e))return e;let a=a$(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var uP=ne("$ZodTuple",(e,t)=>{Cr.init(e,t);let r=t.items;e._zod.parse=(n,o)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let a=[],s=[...r].reverse().findIndex(d=>d._zod.optin!=="optional"),c=s===-1?0:r.length-s;if(!t.rest){let d=i.length>r.length,f=i.length=i.length&&p>=c)continue;let f=d._zod.run({value:i[p],issues:[]},o);f instanceof Promise?a.push(f.then(m=>nP(m,n,p))):nP(f,n,p)}if(t.rest){let d=i.slice(r.length);for(let f of d){p++;let m=t.rest._zod.run({value:f,issues:[]},o);m instanceof Promise?a.push(m.then(y=>nP(y,n,p))):nP(m,n,p)}}return a.length?Promise.all(a).then(()=>n):n}});function nP(e,t,r){e.issues.length&&t.issues.push(...Ic(r,e.issues)),t.value[r]=e.value}var K$=ne("$ZodRecord",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!em(o))return r.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),r;let i=[],a=t.keyType._zod.values;if(a){r.value={};let s=new Set;for(let p of a)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){s.add(typeof p=="number"?p.toString():p);let d=t.valueType._zod.run({value:o[p],issues:[]},n);d instanceof Promise?i.push(d.then(f=>{f.issues.length&&r.issues.push(...Ic(p,f.issues)),r.value[p]=f.value})):(d.issues.length&&r.issues.push(...Ic(p,d.issues)),r.value[p]=d.value)}let c;for(let p in o)s.has(p)||(c=c??[],c.push(p));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:c})}else{r.value={};for(let s of Reflect.ownKeys(o)){if(s==="__proto__")continue;let c=t.keyType._zod.run({value:s,issues:[]},n);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&tP.test(s)&&c.issues.length){let f=t.keyType._zod.run({value:Number(s),issues:[]},n);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(c=f)}if(c.issues.length){t.mode==="loose"?r.value[s]=o[s]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(f=>Zs(f,n,Wi())),input:s,path:[s],inst:e});continue}let d=t.valueType._zod.run({value:o[s],issues:[]},n);d instanceof Promise?i.push(d.then(f=>{f.issues.length&&r.issues.push(...Ic(s,f.issues)),r.value[c.value]=f.value})):(d.issues.length&&r.issues.push(...Ic(s,d.issues)),r.value[c.value]=d.value)}}return i.length?Promise.all(i).then(()=>r):r}}),G$=ne("$ZodMap",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!(o instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:o,inst:e}),r;let i=[];r.value=new Map;for(let[a,s]of o){let c=t.keyType._zod.run({value:a,issues:[]},n),p=t.valueType._zod.run({value:s,issues:[]},n);c instanceof Promise||p instanceof Promise?i.push(Promise.all([c,p]).then(([d,f])=>{Gre(d,f,r,a,o,e,n)})):Gre(c,p,r,a,o,e,n)}return i.length?Promise.all(i).then(()=>r):r}});function Gre(e,t,r,n,o,i,a){e.issues.length&&(_E.has(typeof n)?r.issues.push(...Ic(n,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:o,inst:i,issues:e.issues.map(s=>Zs(s,a,Wi()))})),t.issues.length&&(_E.has(typeof n)?r.issues.push(...Ic(n,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:o,inst:i,key:n,issues:t.issues.map(s=>Zs(s,a,Wi()))})),r.value.set(e.value,t.value)}var H$=ne("$ZodSet",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!(o instanceof Set))return r.issues.push({input:o,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of o){let s=t.valueType._zod.run({value:a,issues:[]},n);s instanceof Promise?i.push(s.then(c=>Hre(c,r))):Hre(s,r)}return i.length?Promise.all(i).then(()=>r):r}});function Hre(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Z$=ne("$ZodEnum",(e,t)=>{Cr.init(e,t);let r=pE(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>_E.has(typeof o)).map(o=>typeof o=="string"?bl(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{let a=o.value;return n.has(a)||o.issues.push({code:"invalid_value",values:r,input:a,inst:e}),o}}),W$=ne("$ZodLiteral",(e,t)=>{if(Cr.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?bl(n):n?bl(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,o)=>{let i=n.value;return r.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),Q$=ne("$ZodFile",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return o instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:o,inst:e}),r}}),X$=ne("$ZodTransform",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Ry(e.constructor.name);let o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(a=>(r.value=a,r));if(o instanceof Promise)throw new xp;return r.value=o,r}});function Zre(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var pP=ne("$ZodOptional",(e,t)=>{Cr.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ur(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ur(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${dE(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Zre(i,r.value)):Zre(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),Y$=ne("$ZodExactOptional",(e,t)=>{pP.init(e,t),Ur(e._zod,"values",()=>t.innerType._zod.values),Ur(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),eM=ne("$ZodNullable",(e,t)=>{Cr.init(e,t),Ur(e._zod,"optin",()=>t.innerType._zod.optin),Ur(e._zod,"optout",()=>t.innerType._zod.optout),Ur(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${dE(r.source)}|null)$`):void 0}),Ur(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),tM=ne("$ZodDefault",(e,t)=>{Cr.init(e,t),e._zod.optin="optional",Ur(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Wre(i,t)):Wre(o,t)}});function Wre(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var rM=ne("$ZodPrefault",(e,t)=>{Cr.init(e,t),e._zod.optin="optional",Ur(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),nM=ne("$ZodNonOptional",(e,t)=>{Cr.init(e,t),Ur(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Qre(i,e)):Qre(o,e)}});function Qre(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var oM=ne("$ZodSuccess",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Ry("ZodSuccess");let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.issues.length===0,r)):(r.value=o.issues.length===0,r)}}),iM=ne("$ZodCatch",(e,t)=>{Cr.init(e,t),Ur(e._zod,"optin",()=>t.innerType._zod.optin),Ur(e._zod,"optout",()=>t.innerType._zod.optout),Ur(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>Zs(a,n,Wi()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>Zs(i,n,Wi()))},input:r.value}),r.issues=[]),r)}}),aM=ne("$ZodNaN",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),sM=ne("$ZodPipe",(e,t)=>{Cr.init(e,t),Ur(e._zod,"values",()=>t.in._zod.values),Ur(e._zod,"optin",()=>t.in._zod.optin),Ur(e._zod,"optout",()=>t.out._zod.optout),Ur(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let i=t.out._zod.run(r,n);return i instanceof Promise?i.then(a=>oP(a,t.in,n)):oP(i,t.in,n)}let o=t.in._zod.run(r,n);return o instanceof Promise?o.then(i=>oP(i,t.out,n)):oP(o,t.out,n)}});function oP(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var kE=ne("$ZodCodec",(e,t)=>{Cr.init(e,t),Ur(e._zod,"values",()=>t.in._zod.values),Ur(e._zod,"optin",()=>t.in._zod.optin),Ur(e._zod,"optout",()=>t.out._zod.optout),Ur(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if((n.direction||"forward")==="forward"){let i=t.in._zod.run(r,n);return i instanceof Promise?i.then(a=>iP(a,t,n)):iP(i,t,n)}else{let i=t.out._zod.run(r,n);return i instanceof Promise?i.then(a=>iP(a,t,n)):iP(i,t,n)}}});function iP(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let o=t.transform(e.value,e);return o instanceof Promise?o.then(i=>aP(e,i,t.out,r)):aP(e,o,t.out,r)}else{let o=t.reverseTransform(e.value,e);return o instanceof Promise?o.then(i=>aP(e,i,t.in,r)):aP(e,o,t.in,r)}}function aP(e,t,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},n)}var cM=ne("$ZodReadonly",(e,t)=>{Cr.init(e,t),Ur(e._zod,"propValues",()=>t.innerType._zod.propValues),Ur(e._zod,"values",()=>t.innerType._zod.values),Ur(e._zod,"optin",()=>t.innerType?._zod?.optin),Ur(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(Xre):Xre(o)}});function Xre(e){return e.value=Object.freeze(e.value),e}var lM=ne("$ZodTemplateLiteral",(e,t)=>{Cr.init(e,t);let r=[];for(let n of t.parts)if(typeof n=="object"&&n!==null){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let o=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!o)throw new Error(`Invalid template literal part: ${n._zod.traits}`);let i=o.startsWith("^")?1:0,a=o.endsWith("$")?o.length-1:o.length;r.push(o.slice(i,a))}else if(n===null||AL.has(typeof n))r.push(bl(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(n,o)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)}),uM=ne("$ZodFunction",(e,t)=>(Cr.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...n){let o=e._def.input?gE(e._def.input,n):n,i=Reflect.apply(r,this,o);return e._def.output?gE(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...n){let o=e._def.input?await vE(e._def.input,n):n,i=await Reflect.apply(r,this,o);return e._def.output?await vE(e._def.output,i):i}},e._zod.parse=(r,n)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let n=e.constructor;return Array.isArray(r[0])?new n({type:"function",input:new uP({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new n({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let n=e.constructor;return new n({type:"function",input:e._def.input,output:r})},e)),pM=ne("$ZodPromise",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>Promise.resolve(r.value).then(o=>t.innerType._zod.run({value:o,issues:[]},n))}),dM=ne("$ZodLazy",(e,t)=>{Cr.init(e,t),Ur(e._zod,"innerType",()=>t.getter()),Ur(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Ur(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Ur(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Ur(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,n)=>e._zod.innerType._zod.run(r,n)}),_M=ne("$ZodCustom",(e,t)=>{wo.init(e,t),Cr.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(i=>Yre(i,r,n,e));Yre(o,r,n,e)}});function Yre(e,t,r,n){if(!e){let o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(L0(o))}}var sFe=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(o){return e[o]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=gr(o.input),s=n[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":return o.values.length===1?`Invalid input: expected ${pr(o.values[0])}`:`Invalid option: expected one of ${ur(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Too big: expected ${o.origin??"value"} to have ${i}${o.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Too small: expected ${o.origin} to have ${i}${o.minimum.toString()} ${a.unit}`:`Too small: expected ${o.origin} to be ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${ur(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function fM(){return{localeError:sFe()}}var ine;var hM=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function yM(){return new hM}(ine=globalThis).__zod_globalRegistry??(ine.__zod_globalRegistry=yM());var Es=globalThis.__zod_globalRegistry;function gM(e,t){return new e({type:"string",...st(t)})}function SM(e,t){return new e({type:"string",coerce:!0,...st(t)})}function dP(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...st(t)})}function CE(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...st(t)})}function _P(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...st(t)})}function fP(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...st(t)})}function mP(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...st(t)})}function hP(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...st(t)})}function PE(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...st(t)})}function yP(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...st(t)})}function gP(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...st(t)})}function SP(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...st(t)})}function vP(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...st(t)})}function bP(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...st(t)})}function xP(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...st(t)})}function EP(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...st(t)})}function TP(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...st(t)})}function DP(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...st(t)})}function vM(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...st(t)})}function AP(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...st(t)})}function wP(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...st(t)})}function IP(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...st(t)})}function kP(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...st(t)})}function CP(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...st(t)})}function PP(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...st(t)})}function bM(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...st(t)})}function xM(e,t){return new e({type:"string",format:"date",check:"string_format",...st(t)})}function EM(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...st(t)})}function TM(e,t){return new e({type:"string",format:"duration",check:"string_format",...st(t)})}function DM(e,t){return new e({type:"number",checks:[],...st(t)})}function AM(e,t){return new e({type:"number",coerce:!0,checks:[],...st(t)})}function wM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...st(t)})}function IM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...st(t)})}function kM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...st(t)})}function CM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...st(t)})}function PM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...st(t)})}function OM(e,t){return new e({type:"boolean",...st(t)})}function NM(e,t){return new e({type:"boolean",coerce:!0,...st(t)})}function FM(e,t){return new e({type:"bigint",...st(t)})}function RM(e,t){return new e({type:"bigint",coerce:!0,...st(t)})}function LM(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...st(t)})}function $M(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...st(t)})}function MM(e,t){return new e({type:"symbol",...st(t)})}function jM(e,t){return new e({type:"undefined",...st(t)})}function BM(e,t){return new e({type:"null",...st(t)})}function qM(e){return new e({type:"any"})}function UM(e){return new e({type:"unknown"})}function zM(e,t){return new e({type:"never",...st(t)})}function VM(e,t){return new e({type:"void",...st(t)})}function JM(e,t){return new e({type:"date",...st(t)})}function KM(e,t){return new e({type:"date",coerce:!0,...st(t)})}function GM(e,t){return new e({type:"nan",...st(t)})}function c_(e,t){return new o$({check:"less_than",...st(t),value:e,inclusive:!1})}function kc(e,t){return new o$({check:"less_than",...st(t),value:e,inclusive:!0})}function l_(e,t){return new i$({check:"greater_than",...st(t),value:e,inclusive:!1})}function Ts(e,t){return new i$({check:"greater_than",...st(t),value:e,inclusive:!0})}function HM(e){return l_(0,e)}function ZM(e){return c_(0,e)}function WM(e){return kc(0,e)}function QM(e){return Ts(0,e)}function jy(e,t){return new Ere({check:"multiple_of",...st(t),value:e})}function By(e,t){return new Are({check:"max_size",...st(t),maximum:e})}function u_(e,t){return new wre({check:"min_size",...st(t),minimum:e})}function M0(e,t){return new Ire({check:"size_equals",...st(t),size:e})}function j0(e,t){return new kre({check:"max_length",...st(t),maximum:e})}function rm(e,t){return new Cre({check:"min_length",...st(t),minimum:e})}function B0(e,t){return new Pre({check:"length_equals",...st(t),length:e})}function OE(e,t){return new Ore({check:"string_format",format:"regex",...st(t),pattern:e})}function NE(e){return new Nre({check:"string_format",format:"lowercase",...st(e)})}function FE(e){return new Fre({check:"string_format",format:"uppercase",...st(e)})}function RE(e,t){return new Rre({check:"string_format",format:"includes",...st(t),includes:e})}function LE(e,t){return new Lre({check:"string_format",format:"starts_with",...st(t),prefix:e})}function $E(e,t){return new $re({check:"string_format",format:"ends_with",...st(t),suffix:e})}function XM(e,t,r){return new Mre({check:"property",property:e,schema:t,...st(r)})}function ME(e,t){return new jre({check:"mime_type",mime:e,...st(t)})}function Ep(e){return new Bre({check:"overwrite",tx:e})}function jE(e){return Ep(t=>t.normalize(e))}function BE(){return Ep(e=>e.trim())}function qE(){return Ep(e=>e.toLowerCase())}function UE(){return Ep(e=>e.toUpperCase())}function OP(){return Ep(e=>EL(e))}function ane(e,t,r){return new e({type:"array",element:t,...st(r)})}function YM(e,t){return new e({type:"file",...st(t)})}function e7(e,t,r){let n=st(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function t7(e,t,r){return new e({type:"custom",check:"custom",fn:t,...st(r)})}function r7(e){let t=pFe(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(L0(n,r.value,t._zod.def));else{let o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(L0(o))}},e(r.value,r)));return t}function pFe(e,t){let r=new wo({check:"custom",...st(t)});return r._zod.check=e,r}function n7(e){let t=new wo({check:"describe"});return t._zod.onattach=[r=>{let n=Es.get(r)??{};Es.add(r,{...n,description:e})}],t._zod.check=()=>{},t}function o7(e){let t=new wo({check:"meta"});return t._zod.onattach=[r=>{let n=Es.get(r)??{};Es.add(r,{...n,...e})}],t._zod.check=()=>{},t}function i7(e,t){let r=st(t),n=r.truthy??["true","1","yes","on","y","enabled"],o=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(n=n.map(y=>typeof y=="string"?y.toLowerCase():y),o=o.map(y=>typeof y=="string"?y.toLowerCase():y));let i=new Set(n),a=new Set(o),s=e.Codec??kE,c=e.Boolean??wE,p=e.String??My,d=new p({type:"string",error:r.error}),f=new c({type:"boolean",error:r.error}),m=new s({type:"pipe",in:d,out:f,transform:((y,g)=>{let S=y;return r.case!=="sensitive"&&(S=S.toLowerCase()),i.has(S)?!0:a.has(S)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:g.value,inst:m,continue:!1}),{})}),reverseTransform:((y,g)=>y===!0?n[0]||"true":o[0]||"false"),error:r.error});return m}function q0(e,t,r,n={}){let o=st(n),i={...st(n),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...o};return r instanceof RegExp&&(i.pattern=r),new e(i)}function NP(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Es,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Fo(e,t,r={path:[],schemaPath:[]}){var n;let o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let d={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let m=a.schema,y=t.processors[o.type];if(!y)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);y(e,t,m,d)}let f=e._zod.parent;f&&(a.ref||(a.ref=f),Fo(f,t,d),t.seen.get(f).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&Ds(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function FP(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let c=n.get(s);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(s,a[0])}}let o=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let f=e.external.registry.get(a[0])?.id,m=e.external.uri??(g=>g);if(f)return{ref:m(f)};let y=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=y,{defId:y,ref:`${m("__shared")}#/${s}/${y}`}}if(a[1]===r)return{ref:"#"};let p=`#/${s}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:p+d}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:p}=o(a);s.def={...s.schema},p&&(s.defId=p);let d=s.schema;for(let f in d)delete d[f];d.$ref=c};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/ + `)}y.write("payload.value = newResult;"),y.write("return payload;");let I=y.compile();return(T,k)=>I(m,T,k)},i,a=By,s=!ZC.jitless,p=s&&AL.value,d=t.catchall,f;e._zod.parse=(m,y)=>{f??(f=n.value);let g=m.value;return a(g)?s&&p&&y?.async===!1&&y.jitless!==!0?(i||(i=o(t.shape)),m=i(m,y),d?one([],g,m,y,f,e):m):r(m,y):(m.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),m)}});function Kre(e,t,r,n){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let o=e.filter(i=>!om(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>Zs(a,n,Wi())))}),t)}var CE=ne("$ZodUnion",(e,t)=>{Cr.init(e,t),zr(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),zr(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),zr(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),zr(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>fE(i.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(r)return n(o,i);let a=!1,s=[];for(let c of t.options){let p=c._zod.run({value:o.value,issues:[]},i);if(p instanceof Promise)s.push(p),a=!0;else{if(p.issues.length===0)return p;s.push(p)}}return a?Promise.all(s).then(c=>Kre(c,o,e,i)):Kre(s,o,e,i)}});function Gre(e,t,r,n){let o=e.filter(i=>i.issues.length===0);return o.length===1?(t.value=o[0].value,t):(o.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>Zs(a,n,Wi())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var V$=ne("$ZodXor",(e,t)=>{CE.init(e,t),t.inclusive=!1;let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(r)return n(o,i);let a=!1,s=[];for(let c of t.options){let p=c._zod.run({value:o.value,issues:[]},i);p instanceof Promise?(s.push(p),a=!0):s.push(p)}return a?Promise.all(s).then(c=>Gre(c,o,e,i)):Gre(s,o,e,i)}}),K$=ne("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,CE.init(e,t);let r=e._zod.parse;zr(e._zod,"propValues",()=>{let o={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[s,c]of Object.entries(a)){o[s]||(o[s]=new Set);for(let p of c)o[s].add(p)}}return o});let n=M0(()=>{let o=t.options,i=new Map;for(let a of o){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of s){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,a)}}return i});e._zod.parse=(o,i)=>{let a=o.value;if(!By(a))return o.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),o;let s=n.value.get(a?.[t.discriminator]);return s?s._zod.run(o,i):t.unionFallback?r(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),o)}}),G$=ne("$ZodIntersection",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value,i=t.left._zod.run({value:o,issues:[]},n),a=t.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,p])=>Hre(r,c,p)):Hre(r,i,a)}});function c$(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(nm(e)&&nm(t)){let r=Object.keys(t),n=Object.keys(e).filter(i=>r.indexOf(i)!==-1),o={...e,...t};for(let i of n){let a=c$(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let n=0;ns.l&&s.r).map(([s])=>s);if(i.length&&o&&e.issues.push({...o,keys:i}),om(e))return e;let a=c$(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var dP=ne("$ZodTuple",(e,t)=>{Cr.init(e,t);let r=t.items;e._zod.parse=(n,o)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let a=[],s=[...r].reverse().findIndex(d=>d._zod.optin!=="optional"),c=s===-1?0:r.length-s;if(!t.rest){let d=i.length>r.length,f=i.length=i.length&&p>=c)continue;let f=d._zod.run({value:i[p],issues:[]},o);f instanceof Promise?a.push(f.then(m=>iP(m,n,p))):iP(f,n,p)}if(t.rest){let d=i.slice(r.length);for(let f of d){p++;let m=t.rest._zod.run({value:f,issues:[]},o);m instanceof Promise?a.push(m.then(y=>iP(y,n,p))):iP(m,n,p)}}return a.length?Promise.all(a).then(()=>n):n}});function iP(e,t,r){e.issues.length&&t.issues.push(...wc(r,e.issues)),t.value[r]=e.value}var H$=ne("$ZodRecord",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!nm(o))return r.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),r;let i=[],a=t.keyType._zod.values;if(a){r.value={};let s=new Set;for(let p of a)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){s.add(typeof p=="number"?p.toString():p);let d=t.valueType._zod.run({value:o[p],issues:[]},n);d instanceof Promise?i.push(d.then(f=>{f.issues.length&&r.issues.push(...wc(p,f.issues)),r.value[p]=f.value})):(d.issues.length&&r.issues.push(...wc(p,d.issues)),r.value[p]=d.value)}let c;for(let p in o)s.has(p)||(c=c??[],c.push(p));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:c})}else{r.value={};for(let s of Reflect.ownKeys(o)){if(s==="__proto__")continue;let c=t.keyType._zod.run({value:s,issues:[]},n);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&nP.test(s)&&c.issues.length){let f=t.keyType._zod.run({value:Number(s),issues:[]},n);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(c=f)}if(c.issues.length){t.mode==="loose"?r.value[s]=o[s]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(f=>Zs(f,n,Wi())),input:s,path:[s],inst:e});continue}let d=t.valueType._zod.run({value:o[s],issues:[]},n);d instanceof Promise?i.push(d.then(f=>{f.issues.length&&r.issues.push(...wc(s,f.issues)),r.value[c.value]=f.value})):(d.issues.length&&r.issues.push(...wc(s,d.issues)),r.value[c.value]=d.value)}}return i.length?Promise.all(i).then(()=>r):r}}),Z$=ne("$ZodMap",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!(o instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:o,inst:e}),r;let i=[];r.value=new Map;for(let[a,s]of o){let c=t.keyType._zod.run({value:a,issues:[]},n),p=t.valueType._zod.run({value:s,issues:[]},n);c instanceof Promise||p instanceof Promise?i.push(Promise.all([c,p]).then(([d,f])=>{Zre(d,f,r,a,o,e,n)})):Zre(c,p,r,a,o,e,n)}return i.length?Promise.all(i).then(()=>r):r}});function Zre(e,t,r,n,o,i,a){e.issues.length&&(mE.has(typeof n)?r.issues.push(...wc(n,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:o,inst:i,issues:e.issues.map(s=>Zs(s,a,Wi()))})),t.issues.length&&(mE.has(typeof n)?r.issues.push(...wc(n,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:o,inst:i,key:n,issues:t.issues.map(s=>Zs(s,a,Wi()))})),r.value.set(e.value,t.value)}var W$=ne("$ZodSet",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!(o instanceof Set))return r.issues.push({input:o,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of o){let s=t.valueType._zod.run({value:a,issues:[]},n);s instanceof Promise?i.push(s.then(c=>Wre(c,r))):Wre(s,r)}return i.length?Promise.all(i).then(()=>r):r}});function Wre(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Q$=ne("$ZodEnum",(e,t)=>{Cr.init(e,t);let r=_E(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>mE.has(typeof o)).map(o=>typeof o=="string"?xl(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{let a=o.value;return n.has(a)||o.issues.push({code:"invalid_value",values:r,input:a,inst:e}),o}}),X$=ne("$ZodLiteral",(e,t)=>{if(Cr.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?xl(n):n?xl(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,o)=>{let i=n.value;return r.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),Y$=ne("$ZodFile",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return o instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:o,inst:e}),r}}),eM=ne("$ZodTransform",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new jy(e.constructor.name);let o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(a=>(r.value=a,r));if(o instanceof Promise)throw new Ep;return r.value=o,r}});function Qre(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var _P=ne("$ZodOptional",(e,t)=>{Cr.init(e,t),e._zod.optin="optional",e._zod.optout="optional",zr(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),zr(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${fE(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Qre(i,r.value)):Qre(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),tM=ne("$ZodExactOptional",(e,t)=>{_P.init(e,t),zr(e._zod,"values",()=>t.innerType._zod.values),zr(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),rM=ne("$ZodNullable",(e,t)=>{Cr.init(e,t),zr(e._zod,"optin",()=>t.innerType._zod.optin),zr(e._zod,"optout",()=>t.innerType._zod.optout),zr(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${fE(r.source)}|null)$`):void 0}),zr(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),nM=ne("$ZodDefault",(e,t)=>{Cr.init(e,t),e._zod.optin="optional",zr(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Xre(i,t)):Xre(o,t)}});function Xre(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var oM=ne("$ZodPrefault",(e,t)=>{Cr.init(e,t),e._zod.optin="optional",zr(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),iM=ne("$ZodNonOptional",(e,t)=>{Cr.init(e,t),zr(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Yre(i,e)):Yre(o,e)}});function Yre(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var aM=ne("$ZodSuccess",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new jy("ZodSuccess");let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.issues.length===0,r)):(r.value=o.issues.length===0,r)}}),sM=ne("$ZodCatch",(e,t)=>{Cr.init(e,t),zr(e._zod,"optin",()=>t.innerType._zod.optin),zr(e._zod,"optout",()=>t.innerType._zod.optout),zr(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>Zs(a,n,Wi()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>Zs(i,n,Wi()))},input:r.value}),r.issues=[]),r)}}),cM=ne("$ZodNaN",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),lM=ne("$ZodPipe",(e,t)=>{Cr.init(e,t),zr(e._zod,"values",()=>t.in._zod.values),zr(e._zod,"optin",()=>t.in._zod.optin),zr(e._zod,"optout",()=>t.out._zod.optout),zr(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let i=t.out._zod.run(r,n);return i instanceof Promise?i.then(a=>aP(a,t.in,n)):aP(i,t.in,n)}let o=t.in._zod.run(r,n);return o instanceof Promise?o.then(i=>aP(i,t.out,n)):aP(o,t.out,n)}});function aP(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var PE=ne("$ZodCodec",(e,t)=>{Cr.init(e,t),zr(e._zod,"values",()=>t.in._zod.values),zr(e._zod,"optin",()=>t.in._zod.optin),zr(e._zod,"optout",()=>t.out._zod.optout),zr(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if((n.direction||"forward")==="forward"){let i=t.in._zod.run(r,n);return i instanceof Promise?i.then(a=>sP(a,t,n)):sP(i,t,n)}else{let i=t.out._zod.run(r,n);return i instanceof Promise?i.then(a=>sP(a,t,n)):sP(i,t,n)}}});function sP(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let o=t.transform(e.value,e);return o instanceof Promise?o.then(i=>cP(e,i,t.out,r)):cP(e,o,t.out,r)}else{let o=t.reverseTransform(e.value,e);return o instanceof Promise?o.then(i=>cP(e,i,t.in,r)):cP(e,o,t.in,r)}}function cP(e,t,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},n)}var uM=ne("$ZodReadonly",(e,t)=>{Cr.init(e,t),zr(e._zod,"propValues",()=>t.innerType._zod.propValues),zr(e._zod,"values",()=>t.innerType._zod.values),zr(e._zod,"optin",()=>t.innerType?._zod?.optin),zr(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(ene):ene(o)}});function ene(e){return e.value=Object.freeze(e.value),e}var pM=ne("$ZodTemplateLiteral",(e,t)=>{Cr.init(e,t);let r=[];for(let n of t.parts)if(typeof n=="object"&&n!==null){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let o=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!o)throw new Error(`Invalid template literal part: ${n._zod.traits}`);let i=o.startsWith("^")?1:0,a=o.endsWith("$")?o.length-1:o.length;r.push(o.slice(i,a))}else if(n===null||wL.has(typeof n))r.push(xl(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(n,o)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)}),dM=ne("$ZodFunction",(e,t)=>(Cr.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...n){let o=e._def.input?vE(e._def.input,n):n,i=Reflect.apply(r,this,o);return e._def.output?vE(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...n){let o=e._def.input?await xE(e._def.input,n):n,i=await Reflect.apply(r,this,o);return e._def.output?await xE(e._def.output,i):i}},e._zod.parse=(r,n)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let n=e.constructor;return Array.isArray(r[0])?new n({type:"function",input:new dP({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new n({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let n=e.constructor;return new n({type:"function",input:e._def.input,output:r})},e)),_M=ne("$ZodPromise",(e,t)=>{Cr.init(e,t),e._zod.parse=(r,n)=>Promise.resolve(r.value).then(o=>t.innerType._zod.run({value:o,issues:[]},n))}),fM=ne("$ZodLazy",(e,t)=>{Cr.init(e,t),zr(e._zod,"innerType",()=>t.getter()),zr(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),zr(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),zr(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),zr(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,n)=>e._zod.innerType._zod.run(r,n)}),mM=ne("$ZodCustom",(e,t)=>{Io.init(e,t),Cr.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(i=>tne(i,r,n,e));tne(o,r,n,e)}});function tne(e,t,r,n){if(!e){let o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(j0(o))}}var lFe=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(o){return e[o]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=gr(o.input),s=n[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":return o.values.length===1?`Invalid input: expected ${pr(o.values[0])}`:`Invalid option: expected one of ${ur(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Too big: expected ${o.origin??"value"} to have ${i}${o.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Too small: expected ${o.origin} to have ${i}${o.minimum.toString()} ${a.unit}`:`Too small: expected ${o.origin} to be ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${ur(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function hM(){return{localeError:lFe()}}var sne;var gM=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function SM(){return new gM}(sne=globalThis).__zod_globalRegistry??(sne.__zod_globalRegistry=SM());var Es=globalThis.__zod_globalRegistry;function vM(e,t){return new e({type:"string",...st(t)})}function bM(e,t){return new e({type:"string",coerce:!0,...st(t)})}function fP(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...st(t)})}function OE(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...st(t)})}function mP(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...st(t)})}function hP(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...st(t)})}function yP(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...st(t)})}function gP(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...st(t)})}function NE(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...st(t)})}function SP(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...st(t)})}function vP(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...st(t)})}function bP(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...st(t)})}function xP(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...st(t)})}function EP(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...st(t)})}function TP(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...st(t)})}function DP(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...st(t)})}function AP(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...st(t)})}function IP(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...st(t)})}function xM(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...st(t)})}function wP(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...st(t)})}function kP(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...st(t)})}function CP(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...st(t)})}function PP(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...st(t)})}function OP(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...st(t)})}function NP(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...st(t)})}function EM(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...st(t)})}function TM(e,t){return new e({type:"string",format:"date",check:"string_format",...st(t)})}function DM(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...st(t)})}function AM(e,t){return new e({type:"string",format:"duration",check:"string_format",...st(t)})}function IM(e,t){return new e({type:"number",checks:[],...st(t)})}function wM(e,t){return new e({type:"number",coerce:!0,checks:[],...st(t)})}function kM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...st(t)})}function CM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...st(t)})}function PM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...st(t)})}function OM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...st(t)})}function NM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...st(t)})}function FM(e,t){return new e({type:"boolean",...st(t)})}function RM(e,t){return new e({type:"boolean",coerce:!0,...st(t)})}function LM(e,t){return new e({type:"bigint",...st(t)})}function $M(e,t){return new e({type:"bigint",coerce:!0,...st(t)})}function MM(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...st(t)})}function jM(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...st(t)})}function BM(e,t){return new e({type:"symbol",...st(t)})}function qM(e,t){return new e({type:"undefined",...st(t)})}function UM(e,t){return new e({type:"null",...st(t)})}function zM(e){return new e({type:"any"})}function JM(e){return new e({type:"unknown"})}function VM(e,t){return new e({type:"never",...st(t)})}function KM(e,t){return new e({type:"void",...st(t)})}function GM(e,t){return new e({type:"date",...st(t)})}function HM(e,t){return new e({type:"date",coerce:!0,...st(t)})}function ZM(e,t){return new e({type:"nan",...st(t)})}function u_(e,t){return new a$({check:"less_than",...st(t),value:e,inclusive:!1})}function kc(e,t){return new a$({check:"less_than",...st(t),value:e,inclusive:!0})}function p_(e,t){return new s$({check:"greater_than",...st(t),value:e,inclusive:!1})}function Ts(e,t){return new s$({check:"greater_than",...st(t),value:e,inclusive:!0})}function WM(e){return p_(0,e)}function QM(e){return u_(0,e)}function XM(e){return kc(0,e)}function YM(e){return Ts(0,e)}function zy(e,t){return new Dre({check:"multiple_of",...st(t),value:e})}function Jy(e,t){return new wre({check:"max_size",...st(t),maximum:e})}function d_(e,t){return new kre({check:"min_size",...st(t),minimum:e})}function q0(e,t){return new Cre({check:"size_equals",...st(t),size:e})}function U0(e,t){return new Pre({check:"max_length",...st(t),maximum:e})}function im(e,t){return new Ore({check:"min_length",...st(t),minimum:e})}function z0(e,t){return new Nre({check:"length_equals",...st(t),length:e})}function FE(e,t){return new Fre({check:"string_format",format:"regex",...st(t),pattern:e})}function RE(e){return new Rre({check:"string_format",format:"lowercase",...st(e)})}function LE(e){return new Lre({check:"string_format",format:"uppercase",...st(e)})}function $E(e,t){return new $re({check:"string_format",format:"includes",...st(t),includes:e})}function ME(e,t){return new Mre({check:"string_format",format:"starts_with",...st(t),prefix:e})}function jE(e,t){return new jre({check:"string_format",format:"ends_with",...st(t),suffix:e})}function e7(e,t,r){return new Bre({check:"property",property:e,schema:t,...st(r)})}function BE(e,t){return new qre({check:"mime_type",mime:e,...st(t)})}function Tp(e){return new Ure({check:"overwrite",tx:e})}function qE(e){return Tp(t=>t.normalize(e))}function UE(){return Tp(e=>e.trim())}function zE(){return Tp(e=>e.toLowerCase())}function JE(){return Tp(e=>e.toUpperCase())}function FP(){return Tp(e=>DL(e))}function cne(e,t,r){return new e({type:"array",element:t,...st(r)})}function t7(e,t){return new e({type:"file",...st(t)})}function r7(e,t,r){let n=st(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function n7(e,t,r){return new e({type:"custom",check:"custom",fn:t,...st(r)})}function o7(e){let t=_Fe(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(j0(n,r.value,t._zod.def));else{let o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(j0(o))}},e(r.value,r)));return t}function _Fe(e,t){let r=new Io({check:"custom",...st(t)});return r._zod.check=e,r}function i7(e){let t=new Io({check:"describe"});return t._zod.onattach=[r=>{let n=Es.get(r)??{};Es.add(r,{...n,description:e})}],t._zod.check=()=>{},t}function a7(e){let t=new Io({check:"meta"});return t._zod.onattach=[r=>{let n=Es.get(r)??{};Es.add(r,{...n,...e})}],t._zod.check=()=>{},t}function s7(e,t){let r=st(t),n=r.truthy??["true","1","yes","on","y","enabled"],o=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(n=n.map(y=>typeof y=="string"?y.toLowerCase():y),o=o.map(y=>typeof y=="string"?y.toLowerCase():y));let i=new Set(n),a=new Set(o),s=e.Codec??PE,c=e.Boolean??kE,p=e.String??Uy,d=new p({type:"string",error:r.error}),f=new c({type:"boolean",error:r.error}),m=new s({type:"pipe",in:d,out:f,transform:((y,g)=>{let S=y;return r.case!=="sensitive"&&(S=S.toLowerCase()),i.has(S)?!0:a.has(S)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:g.value,inst:m,continue:!1}),{})}),reverseTransform:((y,g)=>y===!0?n[0]||"true":o[0]||"false"),error:r.error});return m}function J0(e,t,r,n={}){let o=st(n),i={...st(n),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...o};return r instanceof RegExp&&(i.pattern=r),new e(i)}function RP(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Es,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Fo(e,t,r={path:[],schemaPath:[]}){var n;let o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let d={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let m=a.schema,y=t.processors[o.type];if(!y)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);y(e,t,m,d)}let f=e._zod.parent;f&&(a.ref||(a.ref=f),Fo(f,t,d),t.seen.get(f).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&Ds(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function LP(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let c=n.get(s);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(s,a[0])}}let o=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let f=e.external.registry.get(a[0])?.id,m=e.external.uri??(g=>g);if(f)return{ref:m(f)};let y=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=y,{defId:y,ref:`${m("__shared")}#/${s}/${y}`}}if(a[1]===r)return{ref:"#"};let p=`#/${s}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:p+d}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:p}=o(a);s.def={...s.schema},p&&(s.defId=p);let d=s.schema;for(let f in d)delete d[f];d.$ref=c};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){i(a);continue}if(e.external){let p=e.external.registry.get(a[0])?.id;if(t!==a[0]&&p){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}if(s.count>1&&e.reused==="ref"){i(a);continue}}}function RP(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=a=>{let s=e.seen.get(a);if(s.ref===null)return;let c=s.def??s.schema,p={...c},d=s.ref;if(s.ref=null,d){n(d);let m=e.seen.get(d),y=m.schema;if(y.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(y)):Object.assign(c,y),Object.assign(c,p),a._zod.parent===d)for(let S in c)S==="$ref"||S==="allOf"||S in p||delete c[S];if(y.$ref&&m.def)for(let S in c)S==="$ref"||S==="allOf"||S in m.def&&JSON.stringify(c[S])===JSON.stringify(m.def[S])&&delete c[S]}let f=a._zod.parent;if(f&&f!==d){n(f);let m=e.seen.get(f);if(m?.schema.$ref&&(c.$ref=m.schema.$ref,m.def))for(let y in c)y==="$ref"||y==="allOf"||y in m.def&&JSON.stringify(c[y])===JSON.stringify(m.def[y])&&delete c[y]}e.override({zodSchema:a,jsonSchema:c,path:s.path??[]})};for(let a of[...e.seen.entries()].reverse())n(a[0]);let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a)}Object.assign(o,r.def??r.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let s=a[1];s.def&&s.defId&&(i[s.defId]=s.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{let a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:zE(t,"input",e.processors),output:zE(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function Ds(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return Ds(n.element,r);if(n.type==="set")return Ds(n.valueType,r);if(n.type==="lazy")return Ds(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Ds(n.innerType,r);if(n.type==="intersection")return Ds(n.left,r)||Ds(n.right,r);if(n.type==="record"||n.type==="map")return Ds(n.keyType,r)||Ds(n.valueType,r);if(n.type==="pipe")return Ds(n.in,r)||Ds(n.out,r);if(n.type==="object"){for(let o in n.shape)if(Ds(n.shape[o],r))return!0;return!1}if(n.type==="union"){for(let o of n.options)if(Ds(o,r))return!0;return!1}if(n.type==="tuple"){for(let o of n.items)if(Ds(o,r))return!0;return!!(n.rest&&Ds(n.rest,r))}return!1}var sne=(e,t={})=>r=>{let n=NP({...r,processors:t});return Fo(e,n),FP(n,e),RP(n,e)},zE=(e,t,r={})=>n=>{let{libraryOptions:o,target:i}=n??{},a=NP({...o??{},target:i,io:t,processors:r});return Fo(e,a),FP(a,e),RP(a,e)};var dFe={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},cne=(e,t,r,n)=>{let o=r;o.type="string";let{minimum:i,maximum:a,format:s,patterns:c,contentEncoding:p}=e._zod.bag;if(typeof i=="number"&&(o.minLength=i),typeof a=="number"&&(o.maxLength=a),s&&(o.format=dFe[s]??s,o.format===""&&delete o.format,s==="time"&&delete o.format),p&&(o.contentEncoding=p),c&&c.size>0){let d=[...c];d.length===1?o.pattern=d[0].source:d.length>1&&(o.allOf=[...d.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},lne=(e,t,r,n)=>{let o=r,{minimum:i,maximum:a,format:s,multipleOf:c,exclusiveMaximum:p,exclusiveMinimum:d}=e._zod.bag;typeof s=="string"&&s.includes("int")?o.type="integer":o.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.minimum=d,o.exclusiveMinimum=!0):o.exclusiveMinimum=d),typeof i=="number"&&(o.minimum=i,typeof d=="number"&&t.target!=="draft-04"&&(d>=i?delete o.minimum:delete o.exclusiveMinimum)),typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.maximum=p,o.exclusiveMaximum=!0):o.exclusiveMaximum=p),typeof a=="number"&&(o.maximum=a,typeof p=="number"&&t.target!=="draft-04"&&(p<=a?delete o.maximum:delete o.exclusiveMaximum)),typeof c=="number"&&(o.multipleOf=c)},une=(e,t,r,n)=>{r.type="boolean"},pne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},dne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},_ne=(e,t,r,n)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},fne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},mne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},hne=(e,t,r,n)=>{r.not={}},yne=(e,t,r,n)=>{},gne=(e,t,r,n)=>{},Sne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},vne=(e,t,r,n)=>{let o=e._zod.def,i=pE(o.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},bne=(e,t,r,n)=>{let o=e._zod.def,i=[];for(let a of o.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},xne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Ene=(e,t,r,n)=>{let o=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");o.type="string",o.pattern=i.source},Tne=(e,t,r,n)=>{let o=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(i.minLength=a),s!==void 0&&(i.maxLength=s),c?c.length===1?(i.contentMediaType=c[0],Object.assign(o,i)):(Object.assign(o,i),o.anyOf=c.map(p=>({contentMediaType:p}))):Object.assign(o,i)},Dne=(e,t,r,n)=>{r.type="boolean"},Ane=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},wne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Ine=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},kne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Cne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Pne=(e,t,r,n)=>{let o=r,i=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(o.minItems=a),typeof s=="number"&&(o.maxItems=s),o.type="array",o.items=Fo(i.element,t,{...n,path:[...n.path,"items"]})},One=(e,t,r,n)=>{let o=r,i=e._zod.def;o.type="object",o.properties={};let a=i.shape;for(let p in a)o.properties[p]=Fo(a[p],t,{...n,path:[...n.path,"properties",p]});let s=new Set(Object.keys(a)),c=new Set([...s].filter(p=>{let d=i.shape[p]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));c.size>0&&(o.required=Array.from(c)),i.catchall?._zod.def.type==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=Fo(i.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},a7=(e,t,r,n)=>{let o=e._zod.def,i=o.inclusive===!1,a=o.options.map((s,c)=>Fo(s,t,{...n,path:[...n.path,i?"oneOf":"anyOf",c]}));i?r.oneOf=a:r.anyOf=a},Nne=(e,t,r,n)=>{let o=e._zod.def,i=Fo(o.left,t,{...n,path:[...n.path,"allOf",0]}),a=Fo(o.right,t,{...n,path:[...n.path,"allOf",1]}),s=p=>"allOf"in p&&Object.keys(p).length===1,c=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];r.allOf=c},Fne=(e,t,r,n)=>{let o=r,i=e._zod.def;o.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((m,y)=>Fo(m,t,{...n,path:[...n.path,a,y]})),p=i.rest?Fo(i.rest,t,{...n,path:[...n.path,s,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(o.prefixItems=c,p&&(o.items=p)):t.target==="openapi-3.0"?(o.items={anyOf:c},p&&o.items.anyOf.push(p),o.minItems=c.length,p||(o.maxItems=c.length)):(o.items=c,p&&(o.additionalItems=p));let{minimum:d,maximum:f}=e._zod.bag;typeof d=="number"&&(o.minItems=d),typeof f=="number"&&(o.maxItems=f)},Rne=(e,t,r,n)=>{let o=r,i=e._zod.def;o.type="object";let a=i.keyType,c=a._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let d=Fo(i.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});o.patternProperties={};for(let f of c)o.patternProperties[f.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=Fo(i.keyType,t,{...n,path:[...n.path,"propertyNames"]})),o.additionalProperties=Fo(i.valueType,t,{...n,path:[...n.path,"additionalProperties"]});let p=a._zod.values;if(p){let d=[...p].filter(f=>typeof f=="string"||typeof f=="number");d.length>0&&(o.required=d)}},Lne=(e,t,r,n)=>{let o=e._zod.def,i=Fo(o.innerType,t,n),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=o.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},$ne=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType},Mne=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType,r.default=JSON.parse(JSON.stringify(o.defaultValue))},jne=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},Bne=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType;let a;try{a=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},qne=(e,t,r,n)=>{let o=e._zod.def,i=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;Fo(i,t,n);let a=t.seen.get(e);a.ref=i},Une=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType,r.readOnly=!0},zne=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType},s7=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType},Vne=(e,t,r,n)=>{let o=e._zod.innerType;Fo(o,t,n);let i=t.seen.get(e);i.ref=o};function U0(e){return!!e._zod}function bu(e,t){return U0(e)?$0(e,t):e.safeParse(t)}function LP(e){if(!e)return;let t;if(U0(e)?t=e._zod?.def?.shape:t=e.shape,!!t){if(typeof t=="function")try{return t()}catch{return}return t}}function Hne(e){if(U0(e)){let i=e._zod?.def;if(i){if(i.value!==void 0)return i.value;if(Array.isArray(i.values)&&i.values.length>0)return i.values[0]}}let r=e._def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}let n=e.value;if(n!==void 0)return n}var VE={};YS(VE,{ZodAny:()=>doe,ZodArray:()=>hoe,ZodBase64:()=>O7,ZodBase64URL:()=>N7,ZodBigInt:()=>WE,ZodBigIntFormat:()=>L7,ZodBoolean:()=>ZE,ZodCIDRv4:()=>C7,ZodCIDRv6:()=>P7,ZodCUID:()=>E7,ZodCUID2:()=>T7,ZodCatch:()=>Loe,ZodCodec:()=>z7,ZodCustom:()=>GP,ZodCustomStringFormat:()=>GE,ZodDate:()=>UP,ZodDefault:()=>Coe,ZodDiscriminatedUnion:()=>goe,ZodE164:()=>F7,ZodEmail:()=>S7,ZodEmoji:()=>b7,ZodEnum:()=>JE,ZodExactOptional:()=>woe,ZodFile:()=>Doe,ZodFunction:()=>Joe,ZodGUID:()=>MP,ZodIPv4:()=>I7,ZodIPv6:()=>k7,ZodIntersection:()=>Soe,ZodJWT:()=>R7,ZodKSUID:()=>w7,ZodLazy:()=>Uoe,ZodLiteral:()=>Toe,ZodMAC:()=>coe,ZodMap:()=>xoe,ZodNaN:()=>Moe,ZodNanoID:()=>x7,ZodNever:()=>foe,ZodNonOptional:()=>q7,ZodNull:()=>poe,ZodNullable:()=>koe,ZodNumber:()=>HE,ZodNumberFormat:()=>z0,ZodObject:()=>zP,ZodOptional:()=>B7,ZodPipe:()=>U7,ZodPrefault:()=>Ooe,ZodPromise:()=>Voe,ZodReadonly:()=>joe,ZodRecord:()=>KP,ZodSet:()=>Eoe,ZodString:()=>KE,ZodStringFormat:()=>Io,ZodSuccess:()=>Roe,ZodSymbol:()=>loe,ZodTemplateLiteral:()=>qoe,ZodTransform:()=>Aoe,ZodTuple:()=>voe,ZodType:()=>zr,ZodULID:()=>D7,ZodURL:()=>qP,ZodUUID:()=>p_,ZodUndefined:()=>uoe,ZodUnion:()=>VP,ZodUnknown:()=>_oe,ZodVoid:()=>moe,ZodXID:()=>A7,ZodXor:()=>yoe,_ZodString:()=>g7,_default:()=>Poe,_function:()=>ERe,any:()=>$7,array:()=>ot,base64:()=>zFe,base64url:()=>VFe,bigint:()=>tRe,boolean:()=>uo,catch:()=>$oe,check:()=>TRe,cidrv4:()=>qFe,cidrv6:()=>UFe,codec:()=>vRe,cuid:()=>NFe,cuid2:()=>FFe,custom:()=>V7,date:()=>sRe,describe:()=>DRe,discriminatedUnion:()=>JP,e164:()=>JFe,email:()=>TFe,emoji:()=>PFe,enum:()=>rs,exactOptional:()=>Ioe,file:()=>hRe,float32:()=>QFe,float64:()=>XFe,function:()=>ERe,guid:()=>DFe,hash:()=>WFe,hex:()=>ZFe,hostname:()=>HFe,httpUrl:()=>CFe,instanceof:()=>wRe,int:()=>y7,int32:()=>YFe,int64:()=>rRe,intersection:()=>XE,ipv4:()=>MFe,ipv6:()=>BFe,json:()=>kRe,jwt:()=>KFe,keyof:()=>cRe,ksuid:()=>$Fe,lazy:()=>zoe,literal:()=>$t,looseObject:()=>Ui,looseRecord:()=>dRe,mac:()=>jFe,map:()=>_Re,meta:()=>ARe,nan:()=>SRe,nanoid:()=>OFe,nativeEnum:()=>mRe,never:()=>M7,nonoptional:()=>Foe,null:()=>QE,nullable:()=>jP,nullish:()=>yRe,number:()=>$n,object:()=>dt,optional:()=>Ko,partialRecord:()=>pRe,pipe:()=>BP,prefault:()=>Noe,preprocess:()=>HP,promise:()=>xRe,readonly:()=>Boe,record:()=>Ro,refine:()=>Koe,set:()=>fRe,strictObject:()=>lRe,string:()=>Y,stringFormat:()=>GFe,stringbool:()=>IRe,success:()=>gRe,superRefine:()=>Goe,symbol:()=>oRe,templateLiteral:()=>bRe,transform:()=>j7,tuple:()=>boe,uint32:()=>eRe,uint64:()=>nRe,ulid:()=>RFe,undefined:()=>iRe,union:()=>go,unknown:()=>ko,url:()=>v7,uuid:()=>AFe,uuidv4:()=>wFe,uuidv6:()=>IFe,uuidv7:()=>kFe,void:()=>aRe,xid:()=>LFe,xor:()=>uRe});var $P={};YS($P,{endsWith:()=>$E,gt:()=>l_,gte:()=>Ts,includes:()=>RE,length:()=>B0,lowercase:()=>NE,lt:()=>c_,lte:()=>kc,maxLength:()=>j0,maxSize:()=>By,mime:()=>ME,minLength:()=>rm,minSize:()=>u_,multipleOf:()=>jy,negative:()=>ZM,nonnegative:()=>QM,nonpositive:()=>WM,normalize:()=>jE,overwrite:()=>Ep,positive:()=>HM,property:()=>XM,regex:()=>OE,size:()=>M0,slugify:()=>OP,startsWith:()=>LE,toLowerCase:()=>qE,toUpperCase:()=>UE,trim:()=>BE,uppercase:()=>FE});var qy={};YS(qy,{ZodISODate:()=>p7,ZodISODateTime:()=>l7,ZodISODuration:()=>m7,ZodISOTime:()=>_7,date:()=>d7,datetime:()=>u7,duration:()=>h7,time:()=>f7});var l7=ne("ZodISODateTime",(e,t)=>{g$.init(e,t),Io.init(e,t)});function u7(e){return bM(l7,e)}var p7=ne("ZodISODate",(e,t)=>{S$.init(e,t),Io.init(e,t)});function d7(e){return xM(p7,e)}var _7=ne("ZodISOTime",(e,t)=>{v$.init(e,t),Io.init(e,t)});function f7(e){return EM(_7,e)}var m7=ne("ZodISODuration",(e,t)=>{b$.init(e,t),Io.init(e,t)});function h7(e){return TM(m7,e)}var Zne=(e,t)=>{QC.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>YC(e,r)},flatten:{value:r=>XC(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,F0,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,F0,2)}},isEmpty:{get(){return e.issues.length===0}}})},kOt=ne("ZodError",Zne),Cc=ne("ZodError",Zne,{Parent:Error});var Wne=yE(Cc),Qne=SE(Cc),Xne=bE(Cc),Yne=xE(Cc),eoe=ure(Cc),toe=pre(Cc),roe=dre(Cc),noe=_re(Cc),ooe=fre(Cc),ioe=mre(Cc),aoe=hre(Cc),soe=yre(Cc);var zr=ne("ZodType",(e,t)=>(Cr.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:zE(e,"input"),output:zE(e,"output")}}),e.toJSONSchema=sne(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(Ke.mergeDefs(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(r,n)=>xs(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>Wne(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>Xne(e,r,n),e.parseAsync=async(r,n)=>Qne(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>Yne(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>eoe(e,r,n),e.decode=(r,n)=>toe(e,r,n),e.encodeAsync=async(r,n)=>roe(e,r,n),e.decodeAsync=async(r,n)=>noe(e,r,n),e.safeEncode=(r,n)=>ooe(e,r,n),e.safeDecode=(r,n)=>ioe(e,r,n),e.safeEncodeAsync=async(r,n)=>aoe(e,r,n),e.safeDecodeAsync=async(r,n)=>soe(e,r,n),e.refine=(r,n)=>e.check(Koe(r,n)),e.superRefine=r=>e.check(Goe(r)),e.overwrite=r=>e.check(Ep(r)),e.optional=()=>Ko(e),e.exactOptional=()=>Ioe(e),e.nullable=()=>jP(e),e.nullish=()=>Ko(jP(e)),e.nonoptional=r=>Foe(e,r),e.array=()=>ot(e),e.or=r=>go([e,r]),e.and=r=>XE(e,r),e.transform=r=>BP(e,j7(r)),e.default=r=>Poe(e,r),e.prefault=r=>Noe(e,r),e.catch=r=>$oe(e,r),e.pipe=r=>BP(e,r),e.readonly=()=>Boe(e),e.describe=r=>{let n=e.clone();return Es.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return Es.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Es.get(e);let n=e.clone();return Es.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),g7=ne("_ZodString",(e,t)=>{My.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(n,o,i)=>cne(e,n,o,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(OE(...n)),e.includes=(...n)=>e.check(RE(...n)),e.startsWith=(...n)=>e.check(LE(...n)),e.endsWith=(...n)=>e.check($E(...n)),e.min=(...n)=>e.check(rm(...n)),e.max=(...n)=>e.check(j0(...n)),e.length=(...n)=>e.check(B0(...n)),e.nonempty=(...n)=>e.check(rm(1,...n)),e.lowercase=n=>e.check(NE(n)),e.uppercase=n=>e.check(FE(n)),e.trim=()=>e.check(BE()),e.normalize=(...n)=>e.check(jE(...n)),e.toLowerCase=()=>e.check(qE()),e.toUpperCase=()=>e.check(UE()),e.slugify=()=>e.check(OP())}),KE=ne("ZodString",(e,t)=>{My.init(e,t),g7.init(e,t),e.email=r=>e.check(dP(S7,r)),e.url=r=>e.check(PE(qP,r)),e.jwt=r=>e.check(PP(R7,r)),e.emoji=r=>e.check(yP(b7,r)),e.guid=r=>e.check(CE(MP,r)),e.uuid=r=>e.check(_P(p_,r)),e.uuidv4=r=>e.check(fP(p_,r)),e.uuidv6=r=>e.check(mP(p_,r)),e.uuidv7=r=>e.check(hP(p_,r)),e.nanoid=r=>e.check(gP(x7,r)),e.guid=r=>e.check(CE(MP,r)),e.cuid=r=>e.check(SP(E7,r)),e.cuid2=r=>e.check(vP(T7,r)),e.ulid=r=>e.check(bP(D7,r)),e.base64=r=>e.check(IP(O7,r)),e.base64url=r=>e.check(kP(N7,r)),e.xid=r=>e.check(xP(A7,r)),e.ksuid=r=>e.check(EP(w7,r)),e.ipv4=r=>e.check(TP(I7,r)),e.ipv6=r=>e.check(DP(k7,r)),e.cidrv4=r=>e.check(AP(C7,r)),e.cidrv6=r=>e.check(wP(P7,r)),e.e164=r=>e.check(CP(F7,r)),e.datetime=r=>e.check(u7(r)),e.date=r=>e.check(d7(r)),e.time=r=>e.check(f7(r)),e.duration=r=>e.check(h7(r))});function Y(e){return gM(KE,e)}var Io=ne("ZodStringFormat",(e,t)=>{yo.init(e,t),g7.init(e,t)}),S7=ne("ZodEmail",(e,t)=>{l$.init(e,t),Io.init(e,t)});function TFe(e){return dP(S7,e)}var MP=ne("ZodGUID",(e,t)=>{s$.init(e,t),Io.init(e,t)});function DFe(e){return CE(MP,e)}var p_=ne("ZodUUID",(e,t)=>{c$.init(e,t),Io.init(e,t)});function AFe(e){return _P(p_,e)}function wFe(e){return fP(p_,e)}function IFe(e){return mP(p_,e)}function kFe(e){return hP(p_,e)}var qP=ne("ZodURL",(e,t)=>{u$.init(e,t),Io.init(e,t)});function v7(e){return PE(qP,e)}function CFe(e){return PE(qP,{protocol:/^https?$/,hostname:xl.domain,...Ke.normalizeParams(e)})}var b7=ne("ZodEmoji",(e,t)=>{p$.init(e,t),Io.init(e,t)});function PFe(e){return yP(b7,e)}var x7=ne("ZodNanoID",(e,t)=>{d$.init(e,t),Io.init(e,t)});function OFe(e){return gP(x7,e)}var E7=ne("ZodCUID",(e,t)=>{_$.init(e,t),Io.init(e,t)});function NFe(e){return SP(E7,e)}var T7=ne("ZodCUID2",(e,t)=>{f$.init(e,t),Io.init(e,t)});function FFe(e){return vP(T7,e)}var D7=ne("ZodULID",(e,t)=>{m$.init(e,t),Io.init(e,t)});function RFe(e){return bP(D7,e)}var A7=ne("ZodXID",(e,t)=>{h$.init(e,t),Io.init(e,t)});function LFe(e){return xP(A7,e)}var w7=ne("ZodKSUID",(e,t)=>{y$.init(e,t),Io.init(e,t)});function $Fe(e){return EP(w7,e)}var I7=ne("ZodIPv4",(e,t)=>{x$.init(e,t),Io.init(e,t)});function MFe(e){return TP(I7,e)}var coe=ne("ZodMAC",(e,t)=>{T$.init(e,t),Io.init(e,t)});function jFe(e){return vM(coe,e)}var k7=ne("ZodIPv6",(e,t)=>{E$.init(e,t),Io.init(e,t)});function BFe(e){return DP(k7,e)}var C7=ne("ZodCIDRv4",(e,t)=>{D$.init(e,t),Io.init(e,t)});function qFe(e){return AP(C7,e)}var P7=ne("ZodCIDRv6",(e,t)=>{A$.init(e,t),Io.init(e,t)});function UFe(e){return wP(P7,e)}var O7=ne("ZodBase64",(e,t)=>{w$.init(e,t),Io.init(e,t)});function zFe(e){return IP(O7,e)}var N7=ne("ZodBase64URL",(e,t)=>{I$.init(e,t),Io.init(e,t)});function VFe(e){return kP(N7,e)}var F7=ne("ZodE164",(e,t)=>{k$.init(e,t),Io.init(e,t)});function JFe(e){return CP(F7,e)}var R7=ne("ZodJWT",(e,t)=>{C$.init(e,t),Io.init(e,t)});function KFe(e){return PP(R7,e)}var GE=ne("ZodCustomStringFormat",(e,t)=>{P$.init(e,t),Io.init(e,t)});function GFe(e,t,r={}){return q0(GE,e,t,r)}function HFe(e){return q0(GE,"hostname",xl.hostname,e)}function ZFe(e){return q0(GE,"hex",xl.hex,e)}function WFe(e,t){let r=t?.enc??"hex",n=`${e}_${r}`,o=xl[n];if(!o)throw new Error(`Unrecognized hash format: ${n}`);return q0(GE,n,o,t)}var HE=ne("ZodNumber",(e,t)=>{cP.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(n,o,i)=>lne(e,n,o,i),e.gt=(n,o)=>e.check(l_(n,o)),e.gte=(n,o)=>e.check(Ts(n,o)),e.min=(n,o)=>e.check(Ts(n,o)),e.lt=(n,o)=>e.check(c_(n,o)),e.lte=(n,o)=>e.check(kc(n,o)),e.max=(n,o)=>e.check(kc(n,o)),e.int=n=>e.check(y7(n)),e.safe=n=>e.check(y7(n)),e.positive=n=>e.check(l_(0,n)),e.nonnegative=n=>e.check(Ts(0,n)),e.negative=n=>e.check(c_(0,n)),e.nonpositive=n=>e.check(kc(0,n)),e.multipleOf=(n,o)=>e.check(jy(n,o)),e.step=(n,o)=>e.check(jy(n,o)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function $n(e){return DM(HE,e)}var z0=ne("ZodNumberFormat",(e,t)=>{O$.init(e,t),HE.init(e,t)});function y7(e){return wM(z0,e)}function QFe(e){return IM(z0,e)}function XFe(e){return kM(z0,e)}function YFe(e){return CM(z0,e)}function eRe(e){return PM(z0,e)}var ZE=ne("ZodBoolean",(e,t)=>{wE.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>une(e,r,n,o)});function uo(e){return OM(ZE,e)}var WE=ne("ZodBigInt",(e,t)=>{lP.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(n,o,i)=>pne(e,n,o,i),e.gte=(n,o)=>e.check(Ts(n,o)),e.min=(n,o)=>e.check(Ts(n,o)),e.gt=(n,o)=>e.check(l_(n,o)),e.gte=(n,o)=>e.check(Ts(n,o)),e.min=(n,o)=>e.check(Ts(n,o)),e.lt=(n,o)=>e.check(c_(n,o)),e.lte=(n,o)=>e.check(kc(n,o)),e.max=(n,o)=>e.check(kc(n,o)),e.positive=n=>e.check(l_(BigInt(0),n)),e.negative=n=>e.check(c_(BigInt(0),n)),e.nonpositive=n=>e.check(kc(BigInt(0),n)),e.nonnegative=n=>e.check(Ts(BigInt(0),n)),e.multipleOf=(n,o)=>e.check(jy(n,o));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function tRe(e){return FM(WE,e)}var L7=ne("ZodBigIntFormat",(e,t)=>{N$.init(e,t),WE.init(e,t)});function rRe(e){return LM(L7,e)}function nRe(e){return $M(L7,e)}var loe=ne("ZodSymbol",(e,t)=>{F$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>dne(e,r,n,o)});function oRe(e){return MM(loe,e)}var uoe=ne("ZodUndefined",(e,t)=>{R$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>fne(e,r,n,o)});function iRe(e){return jM(uoe,e)}var poe=ne("ZodNull",(e,t)=>{L$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>_ne(e,r,n,o)});function QE(e){return BM(poe,e)}var doe=ne("ZodAny",(e,t)=>{$$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>yne(e,r,n,o)});function $7(){return qM(doe)}var _oe=ne("ZodUnknown",(e,t)=>{M$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>gne(e,r,n,o)});function ko(){return UM(_oe)}var foe=ne("ZodNever",(e,t)=>{j$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>hne(e,r,n,o)});function M7(e){return zM(foe,e)}var moe=ne("ZodVoid",(e,t)=>{B$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>mne(e,r,n,o)});function aRe(e){return VM(moe,e)}var UP=ne("ZodDate",(e,t)=>{q$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(n,o,i)=>Sne(e,n,o,i),e.min=(n,o)=>e.check(Ts(n,o)),e.max=(n,o)=>e.check(kc(n,o));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function sRe(e){return JM(UP,e)}var hoe=ne("ZodArray",(e,t)=>{U$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Pne(e,r,n,o),e.element=t.element,e.min=(r,n)=>e.check(rm(r,n)),e.nonempty=r=>e.check(rm(1,r)),e.max=(r,n)=>e.check(j0(r,n)),e.length=(r,n)=>e.check(B0(r,n)),e.unwrap=()=>e.element});function ot(e,t){return ane(hoe,e,t)}function cRe(e){let t=e._zod.def.shape;return rs(Object.keys(t))}var zP=ne("ZodObject",(e,t)=>{one.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>One(e,r,n,o),Ke.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>rs(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ko()}),e.loose=()=>e.clone({...e._zod.def,catchall:ko()}),e.strict=()=>e.clone({...e._zod.def,catchall:M7()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>Ke.extend(e,r),e.safeExtend=r=>Ke.safeExtend(e,r),e.merge=r=>Ke.merge(e,r),e.pick=r=>Ke.pick(e,r),e.omit=r=>Ke.omit(e,r),e.partial=(...r)=>Ke.partial(B7,e,r[0]),e.required=(...r)=>Ke.required(q7,e,r[0])});function dt(e,t){let r={type:"object",shape:e??{},...Ke.normalizeParams(t)};return new zP(r)}function lRe(e,t){return new zP({type:"object",shape:e,catchall:M7(),...Ke.normalizeParams(t)})}function Ui(e,t){return new zP({type:"object",shape:e,catchall:ko(),...Ke.normalizeParams(t)})}var VP=ne("ZodUnion",(e,t)=>{IE.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>a7(e,r,n,o),e.options=t.options});function go(e,t){return new VP({type:"union",options:e,...Ke.normalizeParams(t)})}var yoe=ne("ZodXor",(e,t)=>{VP.init(e,t),z$.init(e,t),e._zod.processJSONSchema=(r,n,o)=>a7(e,r,n,o),e.options=t.options});function uRe(e,t){return new yoe({type:"union",options:e,inclusive:!1,...Ke.normalizeParams(t)})}var goe=ne("ZodDiscriminatedUnion",(e,t)=>{VP.init(e,t),V$.init(e,t)});function JP(e,t,r){return new goe({type:"union",options:t,discriminator:e,...Ke.normalizeParams(r)})}var Soe=ne("ZodIntersection",(e,t)=>{J$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Nne(e,r,n,o)});function XE(e,t){return new Soe({type:"intersection",left:e,right:t})}var voe=ne("ZodTuple",(e,t)=>{uP.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Fne(e,r,n,o),e.rest=r=>e.clone({...e._zod.def,rest:r})});function boe(e,t,r){let n=t instanceof Cr,o=n?r:t,i=n?t:null;return new voe({type:"tuple",items:e,rest:i,...Ke.normalizeParams(o)})}var KP=ne("ZodRecord",(e,t)=>{K$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Rne(e,r,n,o),e.keyType=t.keyType,e.valueType=t.valueType});function Ro(e,t,r){return new KP({type:"record",keyType:e,valueType:t,...Ke.normalizeParams(r)})}function pRe(e,t,r){let n=xs(e);return n._zod.values=void 0,new KP({type:"record",keyType:n,valueType:t,...Ke.normalizeParams(r)})}function dRe(e,t,r){return new KP({type:"record",keyType:e,valueType:t,mode:"loose",...Ke.normalizeParams(r)})}var xoe=ne("ZodMap",(e,t)=>{G$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>kne(e,r,n,o),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(u_(...r)),e.nonempty=r=>e.check(u_(1,r)),e.max=(...r)=>e.check(By(...r)),e.size=(...r)=>e.check(M0(...r))});function _Re(e,t,r){return new xoe({type:"map",keyType:e,valueType:t,...Ke.normalizeParams(r)})}var Eoe=ne("ZodSet",(e,t)=>{H$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Cne(e,r,n,o),e.min=(...r)=>e.check(u_(...r)),e.nonempty=r=>e.check(u_(1,r)),e.max=(...r)=>e.check(By(...r)),e.size=(...r)=>e.check(M0(...r))});function fRe(e,t){return new Eoe({type:"set",valueType:e,...Ke.normalizeParams(t)})}var JE=ne("ZodEnum",(e,t)=>{Z$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(n,o,i)=>vne(e,n,o,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(n,o)=>{let i={};for(let a of n)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new JE({...t,checks:[],...Ke.normalizeParams(o),entries:i})},e.exclude=(n,o)=>{let i={...t.entries};for(let a of n)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new JE({...t,checks:[],...Ke.normalizeParams(o),entries:i})}});function rs(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new JE({type:"enum",entries:r,...Ke.normalizeParams(t)})}function mRe(e,t){return new JE({type:"enum",entries:e,...Ke.normalizeParams(t)})}var Toe=ne("ZodLiteral",(e,t)=>{W$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>bne(e,r,n,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function $t(e,t){return new Toe({type:"literal",values:Array.isArray(e)?e:[e],...Ke.normalizeParams(t)})}var Doe=ne("ZodFile",(e,t)=>{Q$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Tne(e,r,n,o),e.min=(r,n)=>e.check(u_(r,n)),e.max=(r,n)=>e.check(By(r,n)),e.mime=(r,n)=>e.check(ME(Array.isArray(r)?r:[r],n))});function hRe(e){return YM(Doe,e)}var Aoe=ne("ZodTransform",(e,t)=>{X$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Ine(e,r,n,o),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Ry(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(Ke.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(Ke.issue(a))}};let o=t.transform(r.value,r);return o instanceof Promise?o.then(i=>(r.value=i,r)):(r.value=o,r)}});function j7(e){return new Aoe({type:"transform",transform:e})}var B7=ne("ZodOptional",(e,t)=>{pP.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>s7(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Ko(e){return new B7({type:"optional",innerType:e})}var woe=ne("ZodExactOptional",(e,t)=>{Y$.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>s7(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Ioe(e){return new woe({type:"optional",innerType:e})}var koe=ne("ZodNullable",(e,t)=>{eM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Lne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function jP(e){return new koe({type:"nullable",innerType:e})}function yRe(e){return Ko(jP(e))}var Coe=ne("ZodDefault",(e,t)=>{tM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Mne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Poe(e,t){return new Coe({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Ke.shallowClone(t)}})}var Ooe=ne("ZodPrefault",(e,t)=>{rM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>jne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Noe(e,t){return new Ooe({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Ke.shallowClone(t)}})}var q7=ne("ZodNonOptional",(e,t)=>{nM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>$ne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Foe(e,t){return new q7({type:"nonoptional",innerType:e,...Ke.normalizeParams(t)})}var Roe=ne("ZodSuccess",(e,t)=>{oM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Dne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function gRe(e){return new Roe({type:"success",innerType:e})}var Loe=ne("ZodCatch",(e,t)=>{iM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Bne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function $oe(e,t){return new Loe({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Moe=ne("ZodNaN",(e,t)=>{aM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>xne(e,r,n,o)});function SRe(e){return GM(Moe,e)}var U7=ne("ZodPipe",(e,t)=>{sM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>qne(e,r,n,o),e.in=t.in,e.out=t.out});function BP(e,t){return new U7({type:"pipe",in:e,out:t})}var z7=ne("ZodCodec",(e,t)=>{U7.init(e,t),kE.init(e,t)});function vRe(e,t,r){return new z7({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var joe=ne("ZodReadonly",(e,t)=>{cM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Une(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Boe(e){return new joe({type:"readonly",innerType:e})}var qoe=ne("ZodTemplateLiteral",(e,t)=>{lM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Ene(e,r,n,o)});function bRe(e,t){return new qoe({type:"template_literal",parts:e,...Ke.normalizeParams(t)})}var Uoe=ne("ZodLazy",(e,t)=>{dM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Vne(e,r,n,o),e.unwrap=()=>e._zod.def.getter()});function zoe(e){return new Uoe({type:"lazy",getter:e})}var Voe=ne("ZodPromise",(e,t)=>{pM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>zne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function xRe(e){return new Voe({type:"promise",innerType:e})}var Joe=ne("ZodFunction",(e,t)=>{uM.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>wne(e,r,n,o)});function ERe(e){return new Joe({type:"function",input:Array.isArray(e?.input)?boe(e?.input):e?.input??ot(ko()),output:e?.output??ko()})}var GP=ne("ZodCustom",(e,t)=>{_M.init(e,t),zr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Ane(e,r,n,o)});function TRe(e){let t=new wo({check:"custom"});return t._zod.check=e,t}function V7(e,t){return e7(GP,e??(()=>!0),t)}function Koe(e,t={}){return t7(GP,e,t)}function Goe(e){return r7(e)}var DRe=n7,ARe=o7;function wRe(e,t={}){let r=new GP({type:"custom",check:"custom",fn:n=>n instanceof e,abort:!0,...Ke.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=n=>{n.value instanceof e||n.issues.push({code:"invalid_type",expected:e.name,input:n.value,inst:r,path:[...r._zod.def.path??[]]})},r}var IRe=(...e)=>i7({Codec:z7,Boolean:ZE,String:KE},...e);function kRe(e){let t=zoe(()=>go([Y(e),$n(),uo(),QE(),ot(t),Ro(Y(),t)]));return t}function HP(e,t){return BP(j7(e),t)}var Zoe={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};var Hoe;Hoe||(Hoe={});var $Ot={...VE,...$P,iso:qy};var ZP={};YS(ZP,{bigint:()=>NRe,boolean:()=>ORe,date:()=>FRe,number:()=>PRe,string:()=>CRe});function CRe(e){return SM(KE,e)}function PRe(e){return AM(HE,e)}function ORe(e){return NM(ZE,e)}function NRe(e){return RM(WE,e)}function FRe(e){return KM(UP,e)}Wi(fM());var J0="2025-11-25";var Qoe=[J0,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],nm="io.modelcontextprotocol/related-task",QP="2.0",Da=V7(e=>e!==null&&(typeof e=="object"||typeof e=="function")),Xoe=go([Y(),$n().int()]),Yoe=Y(),r4t=Ui({ttl:go([$n(),QE()]).optional(),pollInterval:$n().optional()}),LRe=dt({ttl:$n().optional()}),$Re=dt({taskId:Y()}),J7=Ui({progressToken:Xoe.optional(),[nm]:$Re.optional()}),Pc=dt({_meta:J7.optional()}),eT=Pc.extend({task:LRe.optional()}),eie=e=>eT.safeParse(e).success,Aa=dt({method:Y(),params:Pc.loose().optional()}),El=dt({_meta:J7.optional()}),Tl=dt({method:Y(),params:El.loose().optional()}),wa=Ui({_meta:J7.optional()}),XP=go([Y(),$n().int()]),tie=dt({jsonrpc:$t(QP),id:XP,...Aa.shape}).strict(),tT=e=>tie.safeParse(e).success,rie=dt({jsonrpc:$t(QP),...Tl.shape}).strict(),nie=e=>rie.safeParse(e).success,K7=dt({jsonrpc:$t(QP),id:XP,result:wa}).strict(),Uy=e=>K7.safeParse(e).success;var Tr;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(Tr||(Tr={}));var G7=dt({jsonrpc:$t(QP),id:XP.optional(),error:dt({code:$n().int(),message:Y(),data:ko().optional()})}).strict();var oie=e=>G7.safeParse(e).success;var om=go([tie,rie,K7,G7]),n4t=go([K7,G7]),zy=wa.strict(),MRe=El.extend({requestId:XP.optional(),reason:Y().optional()}),YP=Tl.extend({method:$t("notifications/cancelled"),params:MRe}),jRe=dt({src:Y(),mimeType:Y().optional(),sizes:ot(Y()).optional(),theme:rs(["light","dark"]).optional()}),rT=dt({icons:ot(jRe).optional()}),V0=dt({name:Y(),title:Y().optional()}),iie=V0.extend({...V0.shape,...rT.shape,version:Y(),websiteUrl:Y().optional(),description:Y().optional()}),BRe=XE(dt({applyDefaults:uo().optional()}),Ro(Y(),ko())),qRe=HP(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,XE(dt({form:BRe.optional(),url:Da.optional()}),Ro(Y(),ko()).optional())),URe=Ui({list:Da.optional(),cancel:Da.optional(),requests:Ui({sampling:Ui({createMessage:Da.optional()}).optional(),elicitation:Ui({create:Da.optional()}).optional()}).optional()}),zRe=Ui({list:Da.optional(),cancel:Da.optional(),requests:Ui({tools:Ui({call:Da.optional()}).optional()}).optional()}),VRe=dt({experimental:Ro(Y(),Da).optional(),sampling:dt({context:Da.optional(),tools:Da.optional()}).optional(),elicitation:qRe.optional(),roots:dt({listChanged:uo().optional()}).optional(),tasks:URe.optional()}),JRe=Pc.extend({protocolVersion:Y(),capabilities:VRe,clientInfo:iie}),KRe=Aa.extend({method:$t("initialize"),params:JRe});var GRe=dt({experimental:Ro(Y(),Da).optional(),logging:Da.optional(),completions:Da.optional(),prompts:dt({listChanged:uo().optional()}).optional(),resources:dt({subscribe:uo().optional(),listChanged:uo().optional()}).optional(),tools:dt({listChanged:uo().optional()}).optional(),tasks:zRe.optional()}),H7=wa.extend({protocolVersion:Y(),capabilities:GRe,serverInfo:iie,instructions:Y().optional()}),aie=Tl.extend({method:$t("notifications/initialized"),params:El.optional()}),sie=e=>aie.safeParse(e).success,e6=Aa.extend({method:$t("ping"),params:Pc.optional()}),HRe=dt({progress:$n(),total:Ko($n()),message:Ko(Y())}),ZRe=dt({...El.shape,...HRe.shape,progressToken:Xoe}),t6=Tl.extend({method:$t("notifications/progress"),params:ZRe}),WRe=Pc.extend({cursor:Yoe.optional()}),nT=Aa.extend({params:WRe.optional()}),oT=wa.extend({nextCursor:Yoe.optional()}),QRe=rs(["working","input_required","completed","failed","cancelled"]),iT=dt({taskId:Y(),status:QRe,ttl:go([$n(),QE()]),createdAt:Y(),lastUpdatedAt:Y(),pollInterval:Ko($n()),statusMessage:Ko(Y())}),Vy=wa.extend({task:iT}),XRe=El.merge(iT),aT=Tl.extend({method:$t("notifications/tasks/status"),params:XRe}),r6=Aa.extend({method:$t("tasks/get"),params:Pc.extend({taskId:Y()})}),n6=wa.merge(iT),o6=Aa.extend({method:$t("tasks/result"),params:Pc.extend({taskId:Y()})}),o4t=wa.loose(),i6=nT.extend({method:$t("tasks/list")}),a6=oT.extend({tasks:ot(iT)}),s6=Aa.extend({method:$t("tasks/cancel"),params:Pc.extend({taskId:Y()})}),cie=wa.merge(iT),lie=dt({uri:Y(),mimeType:Ko(Y()),_meta:Ro(Y(),ko()).optional()}),uie=lie.extend({text:Y()}),Z7=Y().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),pie=lie.extend({blob:Z7}),sT=rs(["user","assistant"]),K0=dt({audience:ot(sT).optional(),priority:$n().min(0).max(1).optional(),lastModified:qy.datetime({offset:!0}).optional()}),die=dt({...V0.shape,...rT.shape,uri:Y(),description:Ko(Y()),mimeType:Ko(Y()),annotations:K0.optional(),_meta:Ko(Ui({}))}),YRe=dt({...V0.shape,...rT.shape,uriTemplate:Y(),description:Ko(Y()),mimeType:Ko(Y()),annotations:K0.optional(),_meta:Ko(Ui({}))}),e8e=nT.extend({method:$t("resources/list")}),W7=oT.extend({resources:ot(die)}),t8e=nT.extend({method:$t("resources/templates/list")}),Q7=oT.extend({resourceTemplates:ot(YRe)}),X7=Pc.extend({uri:Y()}),r8e=X7,n8e=Aa.extend({method:$t("resources/read"),params:r8e}),Y7=wa.extend({contents:ot(go([uie,pie]))}),ej=Tl.extend({method:$t("notifications/resources/list_changed"),params:El.optional()}),o8e=X7,i8e=Aa.extend({method:$t("resources/subscribe"),params:o8e}),a8e=X7,s8e=Aa.extend({method:$t("resources/unsubscribe"),params:a8e}),c8e=El.extend({uri:Y()}),l8e=Tl.extend({method:$t("notifications/resources/updated"),params:c8e}),u8e=dt({name:Y(),description:Ko(Y()),required:Ko(uo())}),p8e=dt({...V0.shape,...rT.shape,description:Ko(Y()),arguments:Ko(ot(u8e)),_meta:Ko(Ui({}))}),d8e=nT.extend({method:$t("prompts/list")}),tj=oT.extend({prompts:ot(p8e)}),_8e=Pc.extend({name:Y(),arguments:Ro(Y(),Y()).optional()}),f8e=Aa.extend({method:$t("prompts/get"),params:_8e}),rj=dt({type:$t("text"),text:Y(),annotations:K0.optional(),_meta:Ro(Y(),ko()).optional()}),nj=dt({type:$t("image"),data:Z7,mimeType:Y(),annotations:K0.optional(),_meta:Ro(Y(),ko()).optional()}),oj=dt({type:$t("audio"),data:Z7,mimeType:Y(),annotations:K0.optional(),_meta:Ro(Y(),ko()).optional()}),m8e=dt({type:$t("tool_use"),name:Y(),id:Y(),input:Ro(Y(),ko()),_meta:Ro(Y(),ko()).optional()}),h8e=dt({type:$t("resource"),resource:go([uie,pie]),annotations:K0.optional(),_meta:Ro(Y(),ko()).optional()}),y8e=die.extend({type:$t("resource_link")}),ij=go([rj,nj,oj,y8e,h8e]),g8e=dt({role:sT,content:ij}),aj=wa.extend({description:Y().optional(),messages:ot(g8e)}),sj=Tl.extend({method:$t("notifications/prompts/list_changed"),params:El.optional()}),S8e=dt({title:Y().optional(),readOnlyHint:uo().optional(),destructiveHint:uo().optional(),idempotentHint:uo().optional(),openWorldHint:uo().optional()}),v8e=dt({taskSupport:rs(["required","optional","forbidden"]).optional()}),_ie=dt({...V0.shape,...rT.shape,description:Y().optional(),inputSchema:dt({type:$t("object"),properties:Ro(Y(),Da).optional(),required:ot(Y()).optional()}).catchall(ko()),outputSchema:dt({type:$t("object"),properties:Ro(Y(),Da).optional(),required:ot(Y()).optional()}).catchall(ko()).optional(),annotations:S8e.optional(),execution:v8e.optional(),_meta:Ro(Y(),ko()).optional()}),b8e=nT.extend({method:$t("tools/list")}),cj=oT.extend({tools:ot(_ie)}),G0=wa.extend({content:ot(ij).default([]),structuredContent:Ro(Y(),ko()).optional(),isError:uo().optional()}),i4t=G0.or(wa.extend({toolResult:ko()})),x8e=eT.extend({name:Y(),arguments:Ro(Y(),ko()).optional()}),E8e=Aa.extend({method:$t("tools/call"),params:x8e}),lj=Tl.extend({method:$t("notifications/tools/list_changed"),params:El.optional()}),fie=dt({autoRefresh:uo().default(!0),debounceMs:$n().int().nonnegative().default(300)}),mie=rs(["debug","info","notice","warning","error","critical","alert","emergency"]),T8e=Pc.extend({level:mie}),D8e=Aa.extend({method:$t("logging/setLevel"),params:T8e}),A8e=El.extend({level:mie,logger:Y().optional(),data:ko()}),w8e=Tl.extend({method:$t("notifications/message"),params:A8e}),I8e=dt({name:Y().optional()}),k8e=dt({hints:ot(I8e).optional(),costPriority:$n().min(0).max(1).optional(),speedPriority:$n().min(0).max(1).optional(),intelligencePriority:$n().min(0).max(1).optional()}),C8e=dt({mode:rs(["auto","required","none"]).optional()}),P8e=dt({type:$t("tool_result"),toolUseId:Y().describe("The unique identifier for the corresponding tool call."),content:ot(ij).default([]),structuredContent:dt({}).loose().optional(),isError:uo().optional(),_meta:Ro(Y(),ko()).optional()}),O8e=JP("type",[rj,nj,oj]),WP=JP("type",[rj,nj,oj,m8e,P8e]),N8e=dt({role:sT,content:go([WP,ot(WP)]),_meta:Ro(Y(),ko()).optional()}),F8e=eT.extend({messages:ot(N8e),modelPreferences:k8e.optional(),systemPrompt:Y().optional(),includeContext:rs(["none","thisServer","allServers"]).optional(),temperature:$n().optional(),maxTokens:$n().int(),stopSequences:ot(Y()).optional(),metadata:Da.optional(),tools:ot(_ie).optional(),toolChoice:C8e.optional()}),uj=Aa.extend({method:$t("sampling/createMessage"),params:F8e}),pj=wa.extend({model:Y(),stopReason:Ko(rs(["endTurn","stopSequence","maxTokens"]).or(Y())),role:sT,content:O8e}),dj=wa.extend({model:Y(),stopReason:Ko(rs(["endTurn","stopSequence","maxTokens","toolUse"]).or(Y())),role:sT,content:go([WP,ot(WP)])}),R8e=dt({type:$t("boolean"),title:Y().optional(),description:Y().optional(),default:uo().optional()}),L8e=dt({type:$t("string"),title:Y().optional(),description:Y().optional(),minLength:$n().optional(),maxLength:$n().optional(),format:rs(["email","uri","date","date-time"]).optional(),default:Y().optional()}),$8e=dt({type:rs(["number","integer"]),title:Y().optional(),description:Y().optional(),minimum:$n().optional(),maximum:$n().optional(),default:$n().optional()}),M8e=dt({type:$t("string"),title:Y().optional(),description:Y().optional(),enum:ot(Y()),default:Y().optional()}),j8e=dt({type:$t("string"),title:Y().optional(),description:Y().optional(),oneOf:ot(dt({const:Y(),title:Y()})),default:Y().optional()}),B8e=dt({type:$t("string"),title:Y().optional(),description:Y().optional(),enum:ot(Y()),enumNames:ot(Y()).optional(),default:Y().optional()}),q8e=go([M8e,j8e]),U8e=dt({type:$t("array"),title:Y().optional(),description:Y().optional(),minItems:$n().optional(),maxItems:$n().optional(),items:dt({type:$t("string"),enum:ot(Y())}),default:ot(Y()).optional()}),z8e=dt({type:$t("array"),title:Y().optional(),description:Y().optional(),minItems:$n().optional(),maxItems:$n().optional(),items:dt({anyOf:ot(dt({const:Y(),title:Y()}))}),default:ot(Y()).optional()}),V8e=go([U8e,z8e]),J8e=go([B8e,q8e,V8e]),K8e=go([J8e,R8e,L8e,$8e]),G8e=eT.extend({mode:$t("form").optional(),message:Y(),requestedSchema:dt({type:$t("object"),properties:Ro(Y(),K8e),required:ot(Y()).optional()})}),H8e=eT.extend({mode:$t("url"),message:Y(),elicitationId:Y(),url:Y().url()}),Z8e=go([G8e,H8e]),cT=Aa.extend({method:$t("elicitation/create"),params:Z8e}),W8e=El.extend({elicitationId:Y()}),Q8e=Tl.extend({method:$t("notifications/elicitation/complete"),params:W8e}),_j=wa.extend({action:rs(["accept","decline","cancel"]),content:HP(e=>e===null?void 0:e,Ro(Y(),go([Y(),$n(),uo(),ot(Y())])).optional())}),X8e=dt({type:$t("ref/resource"),uri:Y()});var Y8e=dt({type:$t("ref/prompt"),name:Y()}),e9e=Pc.extend({ref:go([Y8e,X8e]),argument:dt({name:Y(),value:Y()}),context:dt({arguments:Ro(Y(),Y()).optional()}).optional()}),t9e=Aa.extend({method:$t("completion/complete"),params:e9e});var fj=wa.extend({completion:Ui({values:ot(Y()).max(100),total:Ko($n().int()),hasMore:Ko(uo())})}),r9e=dt({uri:Y().startsWith("file://"),name:Y().optional(),_meta:Ro(Y(),ko()).optional()}),n9e=Aa.extend({method:$t("roots/list"),params:Pc.optional()}),o9e=wa.extend({roots:ot(r9e)}),i9e=Tl.extend({method:$t("notifications/roots/list_changed"),params:El.optional()}),a4t=go([e6,KRe,t9e,D8e,f8e,d8e,e8e,t8e,n8e,i8e,s8e,E8e,b8e,r6,o6,i6,s6]),s4t=go([YP,t6,aie,i9e,aT]),c4t=go([zy,pj,dj,_j,o9e,n6,a6,Vy]),l4t=go([e6,uj,cT,n9e,r6,o6,i6,s6]),u4t=go([YP,t6,w8e,l8e,ej,lj,sj,aT,Q8e]),p4t=go([zy,H7,fj,aj,tj,W7,Q7,Y7,G0,cj,n6,a6,Vy]),rr=class e extends Error{constructor(t,r,n){super(`MCP error ${t}: ${r}`),this.code=t,this.data=n,this.name="McpError"}static fromError(t,r,n){if(t===Tr.UrlElicitationRequired&&n){let o=n;if(o.elicitations)return new YE(o.elicitations,r)}return new e(t,r,n)}},YE=class extends rr{constructor(t,r=`URL elicitation${t.length>1?"s":""} required`){super(Tr.UrlElicitationRequired,r,{elicitations:t})}get elicitations(){return this.data?.elicitations??[]}};function im(e){return e==="completed"||e==="failed"||e==="cancelled"}var J4t=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function mj(e){let r=LP(e)?.method;if(!r)throw new Error("Schema is missing a method literal");let n=Hne(r);if(typeof n!="string")throw new Error("Schema method literal must be a string");return n}function hj(e,t){let r=bu(e,t);if(!r.success)throw r.error;return r.data}var p9e=6e4,c6=class{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(YP,r=>{this._oncancel(r)}),this.setNotificationHandler(t6,r=>{this._onprogress(r)}),this.setRequestHandler(e6,r=>({})),this._taskStore=t?.taskStore,this._taskMessageQueue=t?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(r6,async(r,n)=>{let o=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!o)throw new rr(Tr.InvalidParams,"Failed to retrieve task: Task not found");return{...o}}),this.setRequestHandler(o6,async(r,n)=>{let o=async()=>{let i=r.params.taskId;if(this._taskMessageQueue){let s;for(;s=await this._taskMessageQueue.dequeue(i,n.sessionId);){if(s.type==="response"||s.type==="error"){let c=s.message,p=c.id,d=this._requestResolvers.get(p);if(d)if(this._requestResolvers.delete(p),s.type==="response")d(c);else{let f=c,m=new rr(f.error.code,f.error.message,f.error.data);d(m)}else{let f=s.type==="response"?"Response":"Error";this._onerror(new Error(`${f} handler missing for request ${p}`))}continue}await this._transport?.send(s.message,{relatedRequestId:n.requestId})}}let a=await this._taskStore.getTask(i,n.sessionId);if(!a)throw new rr(Tr.InvalidParams,`Task not found: ${i}`);if(!im(a.status))return await this._waitForTaskUpdate(i,n.signal),await o();if(im(a.status)){let s=await this._taskStore.getTaskResult(i,n.sessionId);return this._clearTaskQueue(i),{...s,_meta:{...s._meta,[nm]:{taskId:i}}}}return await o()};return await o()}),this.setRequestHandler(i6,async(r,n)=>{try{let{tasks:o,nextCursor:i}=await this._taskStore.listTasks(r.params?.cursor,n.sessionId);return{tasks:o,nextCursor:i,_meta:{}}}catch(o){throw new rr(Tr.InvalidParams,`Failed to list tasks: ${o instanceof Error?o.message:String(o)}`)}}),this.setRequestHandler(s6,async(r,n)=>{try{let o=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!o)throw new rr(Tr.InvalidParams,`Task not found: ${r.params.taskId}`);if(im(o.status))throw new rr(Tr.InvalidParams,`Cannot cancel task in terminal status: ${o.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",n.sessionId),this._clearTaskQueue(r.params.taskId);let i=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!i)throw new rr(Tr.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...i}}catch(o){throw o instanceof rr?o:new rr(Tr.InvalidRequest,`Failed to cancel task: ${o instanceof Error?o.message:String(o)}`)}}))}async _oncancel(t){if(!t.params.requestId)return;this._requestHandlerAbortControllers.get(t.params.requestId)?.abort(t.params.reason)}_setupTimeout(t,r,n,o,i=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(o,r),startTime:Date.now(),timeout:r,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:o})}_resetTimeout(t){let r=this._timeoutInfo.get(t);if(!r)return!1;let n=Date.now()-r.startTime;if(r.maxTotalTimeout&&n>=r.maxTotalTimeout)throw this._timeoutInfo.delete(t),rr.fromError(Tr.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:n});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(t){let r=this._timeoutInfo.get(t);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(t))}async connect(t){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=t;let r=this.transport?.onclose;this._transport.onclose=()=>{r?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=i=>{n?.(i),this._onerror(i)};let o=this._transport?.onmessage;this._transport.onmessage=(i,a)=>{o?.(i,a),Uy(i)||oie(i)?this._onresponse(i):tT(i)?this._onrequest(i,a):nie(i)?this._onnotification(i):this._onerror(new Error(`Unknown message type: ${JSON.stringify(i)}`))},await this._transport.start()}_onclose(){let t=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();let r=rr.fromError(Tr.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let n of t.values())n(r)}_onerror(t){this.onerror?.(t)}_onnotification(t){let r=this._notificationHandlers.get(t.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(t)).catch(n=>this._onerror(new Error(`Uncaught error in notification handler: ${n}`)))}_onrequest(t,r){let n=this._requestHandlers.get(t.method)??this.fallbackRequestHandler,o=this._transport,i=t.params?._meta?.[nm]?.taskId;if(n===void 0){let d={jsonrpc:"2.0",id:t.id,error:{code:Tr.MethodNotFound,message:"Method not found"}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:"error",message:d,timestamp:Date.now()},o?.sessionId).catch(f=>this._onerror(new Error(`Failed to enqueue error response: ${f}`))):o?.send(d).catch(f=>this._onerror(new Error(`Failed to send an error response: ${f}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(t.id,a);let s=eie(t.params)?t.params.task:void 0,c=this._taskStore?this.requestTaskStore(t,o?.sessionId):void 0,p={signal:a.signal,sessionId:o?.sessionId,_meta:t.params?._meta,sendNotification:async d=>{if(a.signal.aborted)return;let f={relatedRequestId:t.id};i&&(f.relatedTask={taskId:i}),await this.notification(d,f)},sendRequest:async(d,f,m)=>{if(a.signal.aborted)throw new rr(Tr.ConnectionClosed,"Request was cancelled");let y={...m,relatedRequestId:t.id};i&&!y.relatedTask&&(y.relatedTask={taskId:i});let g=y.relatedTask?.taskId??i;return g&&c&&await c.updateTaskStatus(g,"input_required"),await this.request(d,f,y)},authInfo:r?.authInfo,requestId:t.id,requestInfo:r?.requestInfo,taskId:i,taskStore:c,taskRequestedTtl:s?.ttl,closeSSEStream:r?.closeSSEStream,closeStandaloneSSEStream:r?.closeStandaloneSSEStream};Promise.resolve().then(()=>{s&&this.assertTaskHandlerCapability(t.method)}).then(()=>n(t,p)).then(async d=>{if(a.signal.aborted)return;let f={result:d,jsonrpc:"2.0",id:t.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:"response",message:f,timestamp:Date.now()},o?.sessionId):await o?.send(f)},async d=>{if(a.signal.aborted)return;let f={jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(d.code)?d.code:Tr.InternalError,message:d.message??"Internal error",...d.data!==void 0&&{data:d.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:"error",message:f,timestamp:Date.now()},o?.sessionId):await o?.send(f)}).catch(d=>this._onerror(new Error(`Failed to send response: ${d}`))).finally(()=>{this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){let{progressToken:r,...n}=t.params,o=Number(r),i=this._progressHandlers.get(o);if(!i){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}let a=this._responseHandlers.get(o),s=this._timeoutInfo.get(o);if(s&&a&&s.resetTimeoutOnProgress)try{this._resetTimeout(o)}catch(c){this._responseHandlers.delete(o),this._progressHandlers.delete(o),this._cleanupTimeout(o),a(c);return}i(n)}_onresponse(t){let r=Number(t.id),n=this._requestResolvers.get(r);if(n){if(this._requestResolvers.delete(r),Uy(t))n(t);else{let a=new rr(t.error.code,t.error.message,t.error.data);n(a)}return}let o=this._responseHandlers.get(r);if(o===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let i=!1;if(Uy(t)&&t.result&&typeof t.result=="object"){let a=t.result;if(a.task&&typeof a.task=="object"){let s=a.task;typeof s.taskId=="string"&&(i=!0,this._taskProgressTokens.set(s.taskId,r))}}if(i||this._progressHandlers.delete(r),Uy(t))o(t);else{let a=rr.fromError(t.error.code,t.error.message,t.error.data);o(a)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(t,r,n){let{task:o}=n??{};if(!o){try{yield{type:"result",result:await this.request(t,r,n)}}catch(a){yield{type:"error",error:a instanceof rr?a:new rr(Tr.InternalError,String(a))}}return}let i;try{let a=await this.request(t,Vy,n);if(a.task)i=a.task.taskId,yield{type:"taskCreated",task:a.task};else throw new rr(Tr.InternalError,"Task creation did not return a task");for(;;){let s=await this.getTask({taskId:i},n);if(yield{type:"taskStatus",task:s},im(s.status)){s.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:i},r,n)}:s.status==="failed"?yield{type:"error",error:new rr(Tr.InternalError,`Task ${i} failed`)}:s.status==="cancelled"&&(yield{type:"error",error:new rr(Tr.InternalError,`Task ${i} was cancelled`)});return}if(s.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:i},r,n)};return}let c=s.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(p=>setTimeout(p,c)),n?.signal?.throwIfAborted()}}catch(a){yield{type:"error",error:a instanceof rr?a:new rr(Tr.InternalError,String(a))}}}request(t,r,n){let{relatedRequestId:o,resumptionToken:i,onresumptiontoken:a,task:s,relatedTask:c}=n??{};return new Promise((p,d)=>{let f=I=>{d(I)};if(!this._transport){f(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method),s&&this.assertTaskCapability(t.method)}catch(I){f(I);return}n?.signal?.throwIfAborted();let m=this._requestMessageId++,y={...t,jsonrpc:"2.0",id:m};n?.onprogress&&(this._progressHandlers.set(m,n.onprogress),y.params={...t.params,_meta:{...t.params?._meta||{},progressToken:m}}),s&&(y.params={...y.params,task:s}),c&&(y.params={...y.params,_meta:{...y.params?._meta||{},[nm]:c}});let g=I=>{this._responseHandlers.delete(m),this._progressHandlers.delete(m),this._cleanupTimeout(m),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:m,reason:String(I)}},{relatedRequestId:o,resumptionToken:i,onresumptiontoken:a}).catch(C=>this._onerror(new Error(`Failed to send cancellation: ${C}`)));let E=I instanceof rr?I:new rr(Tr.RequestTimeout,String(I));d(E)};this._responseHandlers.set(m,I=>{if(!n?.signal?.aborted){if(I instanceof Error)return d(I);try{let E=bu(r,I.result);E.success?p(E.data):d(E.error)}catch(E){d(E)}}}),n?.signal?.addEventListener("abort",()=>{g(n?.signal?.reason)});let S=n?.timeout??p9e,x=()=>g(rr.fromError(Tr.RequestTimeout,"Request timed out",{timeout:S}));this._setupTimeout(m,S,n?.maxTotalTimeout,x,n?.resetTimeoutOnProgress??!1);let A=c?.taskId;if(A){let I=E=>{let C=this._responseHandlers.get(m);C?C(E):this._onerror(new Error(`Response handler missing for side-channeled request ${m}`))};this._requestResolvers.set(m,I),this._enqueueTaskMessage(A,{type:"request",message:y,timestamp:Date.now()}).catch(E=>{this._cleanupTimeout(m),d(E)})}else this._transport.send(y,{relatedRequestId:o,resumptionToken:i,onresumptiontoken:a}).catch(I=>{this._cleanupTimeout(m),d(I)})})}async getTask(t,r){return this.request({method:"tasks/get",params:t},n6,r)}async getTaskResult(t,r,n){return this.request({method:"tasks/result",params:t},r,n)}async listTasks(t,r){return this.request({method:"tasks/list",params:t},a6,r)}async cancelTask(t,r){return this.request({method:"tasks/cancel",params:t},cie,r)}async notification(t,r){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(t.method);let n=r?.relatedTask?.taskId;if(n){let s={...t,jsonrpc:"2.0",params:{...t.params,_meta:{...t.params?._meta||{},[nm]:r.relatedTask}}};await this._enqueueTaskMessage(n,{type:"notification",message:s,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&!r?.relatedRequestId&&!r?.relatedTask){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(t.method),!this._transport)return;let s={...t,jsonrpc:"2.0"};r?.relatedTask&&(s={...s,params:{...s.params,_meta:{...s.params?._meta||{},[nm]:r.relatedTask}}}),this._transport?.send(s,r).catch(c=>this._onerror(c))});return}let a={...t,jsonrpc:"2.0"};r?.relatedTask&&(a={...a,params:{...a.params,_meta:{...a.params?._meta||{},[nm]:r.relatedTask}}}),await this._transport.send(a,r)}setRequestHandler(t,r){let n=mj(t);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(o,i)=>{let a=hj(t,o);return Promise.resolve(r(a,i))})}removeRequestHandler(t){this._requestHandlers.delete(t)}assertCanSetRequestHandler(t){if(this._requestHandlers.has(t))throw new Error(`A request handler for ${t} already exists, which would be overridden`)}setNotificationHandler(t,r){let n=mj(t);this._notificationHandlers.set(n,o=>{let i=hj(t,o);return Promise.resolve(r(i))})}removeNotificationHandler(t){this._notificationHandlers.delete(t)}_cleanupTaskProgressHandler(t){let r=this._taskProgressTokens.get(t);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(t))}async _enqueueTaskMessage(t,r,n){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let o=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(t,r,n,o)}async _clearTaskQueue(t,r){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(t,r);for(let o of n)if(o.type==="request"&&tT(o.message)){let i=o.message.id,a=this._requestResolvers.get(i);a?(a(new rr(Tr.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(i)):this._onerror(new Error(`Resolver missing for request ${i} during task ${t} cleanup`))}}}async _waitForTaskUpdate(t,r){let n=this._options?.defaultTaskPollInterval??1e3;try{let o=await this._taskStore?.getTask(t);o?.pollInterval&&(n=o.pollInterval)}catch{}return new Promise((o,i)=>{if(r.aborted){i(new rr(Tr.InvalidRequest,"Request cancelled"));return}let a=setTimeout(o,n);r.addEventListener("abort",()=>{clearTimeout(a),i(new rr(Tr.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(t,r){let n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async o=>{if(!t)throw new Error("No request provided");return await n.createTask(o,t.id,{method:t.method,params:t.params},r)},getTask:async o=>{let i=await n.getTask(o,r);if(!i)throw new rr(Tr.InvalidParams,"Failed to retrieve task: Task not found");return i},storeTaskResult:async(o,i,a)=>{await n.storeTaskResult(o,i,a,r);let s=await n.getTask(o,r);if(s){let c=aT.parse({method:"notifications/tasks/status",params:s});await this.notification(c),im(s.status)&&this._cleanupTaskProgressHandler(o)}},getTaskResult:o=>n.getTaskResult(o,r),updateTaskStatus:async(o,i,a)=>{let s=await n.getTask(o,r);if(!s)throw new rr(Tr.InvalidParams,`Task "${o}" not found - it may have been cleaned up`);if(im(s.status))throw new rr(Tr.InvalidParams,`Cannot update task "${o}" from terminal status "${s.status}" to "${i}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(o,i,a,r);let c=await n.getTask(o,r);if(c){let p=aT.parse({method:"notifications/tasks/status",params:c});await this.notification(p),im(c.status)&&this._cleanupTaskProgressHandler(o)}},listTasks:o=>n.listTasks(o,r)}}};function hie(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function yie(e,t){let r={...e};for(let n in t){let o=n,i=t[o];if(i===void 0)continue;let a=r[o];hie(a)&&hie(i)?r[o]={...a,...i}:r[o]=i}return r}var Rie=e0(Sj(),1),Lie=e0(Fie(),1);function z9e(){let e=new Rie.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,Lie.default)(e),e}var p6=class{constructor(t){this._ajv=t??z9e()}getValidator(t){let r="$id"in t&&typeof t.$id=="string"?this._ajv.getSchema(t.$id)??this._ajv.compile(t):this._ajv.compile(t);return n=>r(n)?{valid:!0,data:n,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(r.errors)}}};var d6=class{constructor(t){this._client=t}async*callToolStream(t,r=G0,n){let o=this._client,i={...n,task:n?.task??(o.isToolTask(t.name)?{}:void 0)},a=o.requestStream({method:"tools/call",params:t},r,i),s=o.getToolOutputValidator(t.name);for await(let c of a){if(c.type==="result"&&s){let p=c.result;if(!p.structuredContent&&!p.isError){yield{type:"error",error:new rr(Tr.InvalidRequest,`Tool ${t.name} has an output schema but did not return structured content`)};return}if(p.structuredContent)try{let d=s(p.structuredContent);if(!d.valid){yield{type:"error",error:new rr(Tr.InvalidParams,`Structured content does not match the tool's output schema: ${d.errorMessage}`)};return}}catch(d){if(d instanceof rr){yield{type:"error",error:d};return}yield{type:"error",error:new rr(Tr.InvalidParams,`Failed to validate structured content: ${d instanceof Error?d.message:String(d)}`)};return}}yield c}}async getTask(t,r){return this._client.getTask({taskId:t},r)}async getTaskResult(t,r,n){return this._client.getTaskResult({taskId:t},r,n)}async listTasks(t,r){return this._client.listTasks(t?{cursor:t}:void 0,r)}async cancelTask(t,r){return this._client.cancelTask({taskId:t},r)}requestStream(t,r,n){return this._client.requestStream(t,r,n)}};function $ie(e,t,r){if(!e)throw new Error(`${r} does not support task creation (required for ${t})`);switch(t){case"tools/call":if(!e.tools?.call)throw new Error(`${r} does not support task creation for tools/call (required for ${t})`);break;default:break}}function Mie(e,t,r){if(!e)throw new Error(`${r} does not support task creation (required for ${t})`);switch(t){case"sampling/createMessage":if(!e.sampling?.createMessage)throw new Error(`${r} does not support task creation for sampling/createMessage (required for ${t})`);break;case"elicitation/create":if(!e.elicitation?.create)throw new Error(`${r} does not support task creation for elicitation/create (required for ${t})`);break;default:break}}function _6(e,t){if(!(!e||t===null||typeof t!="object")){if(e.type==="object"&&e.properties&&typeof e.properties=="object"){let r=t,n=e.properties;for(let o of Object.keys(n)){let i=n[o];r[o]===void 0&&Object.prototype.hasOwnProperty.call(i,"default")&&(r[o]=i.default),r[o]!==void 0&&_6(i,r[o])}}if(Array.isArray(e.anyOf))for(let r of e.anyOf)typeof r!="boolean"&&_6(r,t);if(Array.isArray(e.oneOf))for(let r of e.oneOf)typeof r!="boolean"&&_6(r,t)}}function V9e(e){if(!e)return{supportsFormMode:!1,supportsUrlMode:!1};let t=e.form!==void 0,r=e.url!==void 0;return{supportsFormMode:t||!t&&!r,supportsUrlMode:r}}var f6=class extends c6{constructor(t,r){super(r),this._clientInfo=t,this._cachedToolOutputValidators=new Map,this._cachedKnownTaskTools=new Set,this._cachedRequiredTaskTools=new Set,this._listChangedDebounceTimers=new Map,this._capabilities=r?.capabilities??{},this._jsonSchemaValidator=r?.jsonSchemaValidator??new p6,r?.listChanged&&(this._pendingListChangedConfig=r.listChanged)}_setupListChangedHandlers(t){t.tools&&this._serverCapabilities?.tools?.listChanged&&this._setupListChangedHandler("tools",lj,t.tools,async()=>(await this.listTools()).tools),t.prompts&&this._serverCapabilities?.prompts?.listChanged&&this._setupListChangedHandler("prompts",sj,t.prompts,async()=>(await this.listPrompts()).prompts),t.resources&&this._serverCapabilities?.resources?.listChanged&&this._setupListChangedHandler("resources",ej,t.resources,async()=>(await this.listResources()).resources)}get experimental(){return this._experimental||(this._experimental={tasks:new d6(this)}),this._experimental}registerCapabilities(t){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=yie(this._capabilities,t)}setRequestHandler(t,r){let o=LP(t)?.method;if(!o)throw new Error("Schema is missing a method literal");let i;if(U0(o)){let s=o;i=s._zod?.def?.value??s.value}else{let s=o;i=s._def?.value??s.value}if(typeof i!="string")throw new Error("Schema method literal must be a string");let a=i;if(a==="elicitation/create"){let s=async(c,p)=>{let d=bu(cT,c);if(!d.success){let I=d.error instanceof Error?d.error.message:String(d.error);throw new rr(Tr.InvalidParams,`Invalid elicitation request: ${I}`)}let{params:f}=d.data;f.mode=f.mode??"form";let{supportsFormMode:m,supportsUrlMode:y}=V9e(this._capabilities.elicitation);if(f.mode==="form"&&!m)throw new rr(Tr.InvalidParams,"Client does not support form-mode elicitation requests");if(f.mode==="url"&&!y)throw new rr(Tr.InvalidParams,"Client does not support URL-mode elicitation requests");let g=await Promise.resolve(r(c,p));if(f.task){let I=bu(Vy,g);if(!I.success){let E=I.error instanceof Error?I.error.message:String(I.error);throw new rr(Tr.InvalidParams,`Invalid task creation result: ${E}`)}return I.data}let S=bu(_j,g);if(!S.success){let I=S.error instanceof Error?S.error.message:String(S.error);throw new rr(Tr.InvalidParams,`Invalid elicitation result: ${I}`)}let x=S.data,A=f.mode==="form"?f.requestedSchema:void 0;if(f.mode==="form"&&x.action==="accept"&&x.content&&A&&this._capabilities.elicitation?.form?.applyDefaults)try{_6(A,x.content)}catch{}return x};return super.setRequestHandler(t,s)}if(a==="sampling/createMessage"){let s=async(c,p)=>{let d=bu(uj,c);if(!d.success){let x=d.error instanceof Error?d.error.message:String(d.error);throw new rr(Tr.InvalidParams,`Invalid sampling request: ${x}`)}let{params:f}=d.data,m=await Promise.resolve(r(c,p));if(f.task){let x=bu(Vy,m);if(!x.success){let A=x.error instanceof Error?x.error.message:String(x.error);throw new rr(Tr.InvalidParams,`Invalid task creation result: ${A}`)}return x.data}let g=f.tools||f.toolChoice?dj:pj,S=bu(g,m);if(!S.success){let x=S.error instanceof Error?S.error.message:String(S.error);throw new rr(Tr.InvalidParams,`Invalid sampling result: ${x}`)}return S.data};return super.setRequestHandler(t,s)}return super.setRequestHandler(t,r)}assertCapability(t,r){if(!this._serverCapabilities?.[t])throw new Error(`Server does not support ${t} (required for ${r})`)}async connect(t,r){if(await super.connect(t),t.sessionId===void 0)try{let n=await this.request({method:"initialize",params:{protocolVersion:J0,capabilities:this._capabilities,clientInfo:this._clientInfo}},H7,r);if(n===void 0)throw new Error(`Server sent invalid initialize result: ${n}`);if(!Qoe.includes(n.protocolVersion))throw new Error(`Server's protocol version is not supported: ${n.protocolVersion}`);this._serverCapabilities=n.capabilities,this._serverVersion=n.serverInfo,t.setProtocolVersion&&t.setProtocolVersion(n.protocolVersion),this._instructions=n.instructions,await this.notification({method:"notifications/initialized"}),this._pendingListChangedConfig&&(this._setupListChangedHandlers(this._pendingListChangedConfig),this._pendingListChangedConfig=void 0)}catch(n){throw this.close(),n}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(t){switch(t){case"logging/setLevel":if(!this._serverCapabilities?.logging)throw new Error(`Server does not support logging (required for ${t})`);break;case"prompts/get":case"prompts/list":if(!this._serverCapabilities?.prompts)throw new Error(`Server does not support prompts (required for ${t})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!this._serverCapabilities?.resources)throw new Error(`Server does not support resources (required for ${t})`);if(t==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${t})`);break;case"tools/call":case"tools/list":if(!this._serverCapabilities?.tools)throw new Error(`Server does not support tools (required for ${t})`);break;case"completion/complete":if(!this._serverCapabilities?.completions)throw new Error(`Server does not support completions (required for ${t})`);break;case"initialize":break;case"ping":break}}assertNotificationCapability(t){switch(t){case"notifications/roots/list_changed":if(!this._capabilities.roots?.listChanged)throw new Error(`Client does not support roots list changed notifications (required for ${t})`);break;case"notifications/initialized":break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(t){if(this._capabilities)switch(t){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${t})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw new Error(`Client does not support elicitation capability (required for ${t})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${t})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Client does not support tasks capability (required for ${t})`);break;case"ping":break}}assertTaskCapability(t){$ie(this._serverCapabilities?.tasks?.requests,t,"Server")}assertTaskHandlerCapability(t){this._capabilities&&Mie(this._capabilities.tasks?.requests,t,"Client")}async ping(t){return this.request({method:"ping"},zy,t)}async complete(t,r){return this.request({method:"completion/complete",params:t},fj,r)}async setLoggingLevel(t,r){return this.request({method:"logging/setLevel",params:{level:t}},zy,r)}async getPrompt(t,r){return this.request({method:"prompts/get",params:t},aj,r)}async listPrompts(t,r){return this.request({method:"prompts/list",params:t},tj,r)}async listResources(t,r){return this.request({method:"resources/list",params:t},W7,r)}async listResourceTemplates(t,r){return this.request({method:"resources/templates/list",params:t},Q7,r)}async readResource(t,r){return this.request({method:"resources/read",params:t},Y7,r)}async subscribeResource(t,r){return this.request({method:"resources/subscribe",params:t},zy,r)}async unsubscribeResource(t,r){return this.request({method:"resources/unsubscribe",params:t},zy,r)}async callTool(t,r=G0,n){if(this.isToolTaskRequired(t.name))throw new rr(Tr.InvalidRequest,`Tool "${t.name}" requires task-based execution. Use client.experimental.tasks.callToolStream() instead.`);let o=await this.request({method:"tools/call",params:t},r,n),i=this.getToolOutputValidator(t.name);if(i){if(!o.structuredContent&&!o.isError)throw new rr(Tr.InvalidRequest,`Tool ${t.name} has an output schema but did not return structured content`);if(o.structuredContent)try{let a=i(o.structuredContent);if(!a.valid)throw new rr(Tr.InvalidParams,`Structured content does not match the tool's output schema: ${a.errorMessage}`)}catch(a){throw a instanceof rr?a:new rr(Tr.InvalidParams,`Failed to validate structured content: ${a instanceof Error?a.message:String(a)}`)}}return o}isToolTask(t){return this._serverCapabilities?.tasks?.requests?.tools?.call?this._cachedKnownTaskTools.has(t):!1}isToolTaskRequired(t){return this._cachedRequiredTaskTools.has(t)}cacheToolMetadata(t){this._cachedToolOutputValidators.clear(),this._cachedKnownTaskTools.clear(),this._cachedRequiredTaskTools.clear();for(let r of t){if(r.outputSchema){let o=this._jsonSchemaValidator.getValidator(r.outputSchema);this._cachedToolOutputValidators.set(r.name,o)}let n=r.execution?.taskSupport;(n==="required"||n==="optional")&&this._cachedKnownTaskTools.add(r.name),n==="required"&&this._cachedRequiredTaskTools.add(r.name)}}getToolOutputValidator(t){return this._cachedToolOutputValidators.get(t)}async listTools(t,r){let n=await this.request({method:"tools/list",params:t},cj,r);return this.cacheToolMetadata(n.tools),n}_setupListChangedHandler(t,r,n,o){let i=fie.safeParse(n);if(!i.success)throw new Error(`Invalid ${t} listChanged options: ${i.error.message}`);if(typeof n.onChanged!="function")throw new Error(`Invalid ${t} listChanged options: onChanged must be a function`);let{autoRefresh:a,debounceMs:s}=i.data,{onChanged:c}=n,p=async()=>{if(!a){c(null,null);return}try{let f=await o();c(null,f)}catch(f){let m=f instanceof Error?f:new Error(String(f));c(m,null)}},d=()=>{if(s){let f=this._listChangedDebounceTimers.get(t);f&&clearTimeout(f);let m=setTimeout(p,s);this._listChangedDebounceTimers.set(t,m)}else p()};this.setNotificationHandler(r,d)}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}};var m6=class extends Error{constructor(t,r){super(t),this.name="ParseError",this.type=r.type,this.field=r.field,this.value=r.value,this.line=r.line}};function wj(e){}function h6(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:t=wj,onError:r=wj,onRetry:n=wj,onComment:o}=e,i="",a=!0,s,c="",p="";function d(S){let x=a?S.replace(/^\xEF\xBB\xBF/,""):S,[A,I]=J9e(`${i}${x}`);for(let E of A)f(E);i=I,a=!1}function f(S){if(S===""){y();return}if(S.startsWith(":")){o&&o(S.slice(S.startsWith(": ")?2:1));return}let x=S.indexOf(":");if(x!==-1){let A=S.slice(0,x),I=S[x+1]===" "?2:1,E=S.slice(x+I);m(A,E,S);return}m(S,"",S)}function m(S,x,A){switch(S){case"event":p=x;break;case"data":c=`${c}${x} -`;break;case"id":s=x.includes("\0")?void 0:x;break;case"retry":/^\d+$/.test(x)?n(parseInt(x,10)):r(new m6(`Invalid \`retry\` value: "${x}"`,{type:"invalid-retry",value:x,line:A}));break;default:r(new m6(`Unknown field "${S.length>20?`${S.slice(0,20)}\u2026`:S}"`,{type:"unknown-field",field:S,value:x,line:A}));break}}function y(){c.length>0&&t({id:s,event:p||void 0,data:c.endsWith(` -`)?c.slice(0,-1):c}),s=void 0,c="",p=""}function g(S={}){i&&S.consume&&f(i),a=!0,s=void 0,c="",p="",i=""}return{feed:d,reset:g}}function J9e(e){let t=[],r="",n=0;for(;n1&&e.reused==="ref"){i(a);continue}}}function $P(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=a=>{let s=e.seen.get(a);if(s.ref===null)return;let c=s.def??s.schema,p={...c},d=s.ref;if(s.ref=null,d){n(d);let m=e.seen.get(d),y=m.schema;if(y.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(y)):Object.assign(c,y),Object.assign(c,p),a._zod.parent===d)for(let S in c)S==="$ref"||S==="allOf"||S in p||delete c[S];if(y.$ref&&m.def)for(let S in c)S==="$ref"||S==="allOf"||S in m.def&&JSON.stringify(c[S])===JSON.stringify(m.def[S])&&delete c[S]}let f=a._zod.parent;if(f&&f!==d){n(f);let m=e.seen.get(f);if(m?.schema.$ref&&(c.$ref=m.schema.$ref,m.def))for(let y in c)y==="$ref"||y==="allOf"||y in m.def&&JSON.stringify(c[y])===JSON.stringify(m.def[y])&&delete c[y]}e.override({zodSchema:a,jsonSchema:c,path:s.path??[]})};for(let a of[...e.seen.entries()].reverse())n(a[0]);let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a)}Object.assign(o,r.def??r.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let s=a[1];s.def&&s.defId&&(i[s.defId]=s.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{let a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:VE(t,"input",e.processors),output:VE(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function Ds(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return Ds(n.element,r);if(n.type==="set")return Ds(n.valueType,r);if(n.type==="lazy")return Ds(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Ds(n.innerType,r);if(n.type==="intersection")return Ds(n.left,r)||Ds(n.right,r);if(n.type==="record"||n.type==="map")return Ds(n.keyType,r)||Ds(n.valueType,r);if(n.type==="pipe")return Ds(n.in,r)||Ds(n.out,r);if(n.type==="object"){for(let o in n.shape)if(Ds(n.shape[o],r))return!0;return!1}if(n.type==="union"){for(let o of n.options)if(Ds(o,r))return!0;return!1}if(n.type==="tuple"){for(let o of n.items)if(Ds(o,r))return!0;return!!(n.rest&&Ds(n.rest,r))}return!1}var lne=(e,t={})=>r=>{let n=RP({...r,processors:t});return Fo(e,n),LP(n,e),$P(n,e)},VE=(e,t,r={})=>n=>{let{libraryOptions:o,target:i}=n??{},a=RP({...o??{},target:i,io:t,processors:r});return Fo(e,a),LP(a,e),$P(a,e)};var fFe={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},une=(e,t,r,n)=>{let o=r;o.type="string";let{minimum:i,maximum:a,format:s,patterns:c,contentEncoding:p}=e._zod.bag;if(typeof i=="number"&&(o.minLength=i),typeof a=="number"&&(o.maxLength=a),s&&(o.format=fFe[s]??s,o.format===""&&delete o.format,s==="time"&&delete o.format),p&&(o.contentEncoding=p),c&&c.size>0){let d=[...c];d.length===1?o.pattern=d[0].source:d.length>1&&(o.allOf=[...d.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},pne=(e,t,r,n)=>{let o=r,{minimum:i,maximum:a,format:s,multipleOf:c,exclusiveMaximum:p,exclusiveMinimum:d}=e._zod.bag;typeof s=="string"&&s.includes("int")?o.type="integer":o.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.minimum=d,o.exclusiveMinimum=!0):o.exclusiveMinimum=d),typeof i=="number"&&(o.minimum=i,typeof d=="number"&&t.target!=="draft-04"&&(d>=i?delete o.minimum:delete o.exclusiveMinimum)),typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.maximum=p,o.exclusiveMaximum=!0):o.exclusiveMaximum=p),typeof a=="number"&&(o.maximum=a,typeof p=="number"&&t.target!=="draft-04"&&(p<=a?delete o.maximum:delete o.exclusiveMaximum)),typeof c=="number"&&(o.multipleOf=c)},dne=(e,t,r,n)=>{r.type="boolean"},_ne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},fne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},mne=(e,t,r,n)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},hne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},yne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},gne=(e,t,r,n)=>{r.not={}},Sne=(e,t,r,n)=>{},vne=(e,t,r,n)=>{},bne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},xne=(e,t,r,n)=>{let o=e._zod.def,i=_E(o.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},Ene=(e,t,r,n)=>{let o=e._zod.def,i=[];for(let a of o.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},Tne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Dne=(e,t,r,n)=>{let o=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");o.type="string",o.pattern=i.source},Ane=(e,t,r,n)=>{let o=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(i.minLength=a),s!==void 0&&(i.maxLength=s),c?c.length===1?(i.contentMediaType=c[0],Object.assign(o,i)):(Object.assign(o,i),o.anyOf=c.map(p=>({contentMediaType:p}))):Object.assign(o,i)},Ine=(e,t,r,n)=>{r.type="boolean"},wne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},kne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Cne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Pne=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},One=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Nne=(e,t,r,n)=>{let o=r,i=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(o.minItems=a),typeof s=="number"&&(o.maxItems=s),o.type="array",o.items=Fo(i.element,t,{...n,path:[...n.path,"items"]})},Fne=(e,t,r,n)=>{let o=r,i=e._zod.def;o.type="object",o.properties={};let a=i.shape;for(let p in a)o.properties[p]=Fo(a[p],t,{...n,path:[...n.path,"properties",p]});let s=new Set(Object.keys(a)),c=new Set([...s].filter(p=>{let d=i.shape[p]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));c.size>0&&(o.required=Array.from(c)),i.catchall?._zod.def.type==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=Fo(i.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},c7=(e,t,r,n)=>{let o=e._zod.def,i=o.inclusive===!1,a=o.options.map((s,c)=>Fo(s,t,{...n,path:[...n.path,i?"oneOf":"anyOf",c]}));i?r.oneOf=a:r.anyOf=a},Rne=(e,t,r,n)=>{let o=e._zod.def,i=Fo(o.left,t,{...n,path:[...n.path,"allOf",0]}),a=Fo(o.right,t,{...n,path:[...n.path,"allOf",1]}),s=p=>"allOf"in p&&Object.keys(p).length===1,c=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];r.allOf=c},Lne=(e,t,r,n)=>{let o=r,i=e._zod.def;o.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((m,y)=>Fo(m,t,{...n,path:[...n.path,a,y]})),p=i.rest?Fo(i.rest,t,{...n,path:[...n.path,s,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(o.prefixItems=c,p&&(o.items=p)):t.target==="openapi-3.0"?(o.items={anyOf:c},p&&o.items.anyOf.push(p),o.minItems=c.length,p||(o.maxItems=c.length)):(o.items=c,p&&(o.additionalItems=p));let{minimum:d,maximum:f}=e._zod.bag;typeof d=="number"&&(o.minItems=d),typeof f=="number"&&(o.maxItems=f)},$ne=(e,t,r,n)=>{let o=r,i=e._zod.def;o.type="object";let a=i.keyType,c=a._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let d=Fo(i.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});o.patternProperties={};for(let f of c)o.patternProperties[f.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=Fo(i.keyType,t,{...n,path:[...n.path,"propertyNames"]})),o.additionalProperties=Fo(i.valueType,t,{...n,path:[...n.path,"additionalProperties"]});let p=a._zod.values;if(p){let d=[...p].filter(f=>typeof f=="string"||typeof f=="number");d.length>0&&(o.required=d)}},Mne=(e,t,r,n)=>{let o=e._zod.def,i=Fo(o.innerType,t,n),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=o.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},jne=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType},Bne=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType,r.default=JSON.parse(JSON.stringify(o.defaultValue))},qne=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},Une=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType;let a;try{a=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},zne=(e,t,r,n)=>{let o=e._zod.def,i=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;Fo(i,t,n);let a=t.seen.get(e);a.ref=i},Jne=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType,r.readOnly=!0},Vne=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType},l7=(e,t,r,n)=>{let o=e._zod.def;Fo(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType},Kne=(e,t,r,n)=>{let o=e._zod.innerType;Fo(o,t,n);let i=t.seen.get(e);i.ref=o};function V0(e){return!!e._zod}function xu(e,t){return V0(e)?B0(e,t):e.safeParse(t)}function MP(e){if(!e)return;let t;if(V0(e)?t=e._zod?.def?.shape:t=e.shape,!!t){if(typeof t=="function")try{return t()}catch{return}return t}}function Wne(e){if(V0(e)){let i=e._zod?.def;if(i){if(i.value!==void 0)return i.value;if(Array.isArray(i.values)&&i.values.length>0)return i.values[0]}}let r=e._def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}let n=e.value;if(n!==void 0)return n}var KE={};r0(KE,{ZodAny:()=>foe,ZodArray:()=>goe,ZodBase64:()=>F7,ZodBase64URL:()=>R7,ZodBigInt:()=>XE,ZodBigIntFormat:()=>M7,ZodBoolean:()=>QE,ZodCIDRv4:()=>O7,ZodCIDRv6:()=>N7,ZodCUID:()=>D7,ZodCUID2:()=>A7,ZodCatch:()=>Moe,ZodCodec:()=>V7,ZodCustom:()=>ZP,ZodCustomStringFormat:()=>ZE,ZodDate:()=>JP,ZodDefault:()=>Ooe,ZodDiscriminatedUnion:()=>voe,ZodE164:()=>L7,ZodEmail:()=>b7,ZodEmoji:()=>E7,ZodEnum:()=>GE,ZodExactOptional:()=>koe,ZodFile:()=>Ioe,ZodFunction:()=>Goe,ZodGUID:()=>BP,ZodIPv4:()=>C7,ZodIPv6:()=>P7,ZodIntersection:()=>boe,ZodJWT:()=>$7,ZodKSUID:()=>k7,ZodLazy:()=>Joe,ZodLiteral:()=>Aoe,ZodMAC:()=>uoe,ZodMap:()=>Toe,ZodNaN:()=>Boe,ZodNanoID:()=>T7,ZodNever:()=>hoe,ZodNonOptional:()=>z7,ZodNull:()=>_oe,ZodNullable:()=>Poe,ZodNumber:()=>WE,ZodNumberFormat:()=>K0,ZodObject:()=>VP,ZodOptional:()=>U7,ZodPipe:()=>J7,ZodPrefault:()=>Foe,ZodPromise:()=>Koe,ZodReadonly:()=>qoe,ZodRecord:()=>HP,ZodSet:()=>Doe,ZodString:()=>HE,ZodStringFormat:()=>wo,ZodSuccess:()=>$oe,ZodSymbol:()=>poe,ZodTemplateLiteral:()=>zoe,ZodTransform:()=>woe,ZodTuple:()=>xoe,ZodType:()=>Jr,ZodULID:()=>I7,ZodURL:()=>zP,ZodUUID:()=>__,ZodUndefined:()=>doe,ZodUnion:()=>KP,ZodUnknown:()=>moe,ZodVoid:()=>yoe,ZodXID:()=>w7,ZodXor:()=>Soe,_ZodString:()=>v7,_default:()=>Noe,_function:()=>DRe,any:()=>j7,array:()=>ot,base64:()=>VFe,base64url:()=>KFe,bigint:()=>nRe,boolean:()=>uo,catch:()=>joe,check:()=>ARe,cidrv4:()=>zFe,cidrv6:()=>JFe,codec:()=>xRe,cuid:()=>RFe,cuid2:()=>LFe,custom:()=>K7,date:()=>lRe,describe:()=>IRe,discriminatedUnion:()=>GP,e164:()=>GFe,email:()=>AFe,emoji:()=>NFe,enum:()=>rs,exactOptional:()=>Coe,file:()=>gRe,float32:()=>YFe,float64:()=>eRe,function:()=>DRe,guid:()=>IFe,hash:()=>XFe,hex:()=>QFe,hostname:()=>WFe,httpUrl:()=>OFe,instanceof:()=>kRe,int:()=>S7,int32:()=>tRe,int64:()=>oRe,intersection:()=>eT,ipv4:()=>BFe,ipv6:()=>UFe,json:()=>PRe,jwt:()=>HFe,keyof:()=>uRe,ksuid:()=>jFe,lazy:()=>Voe,literal:()=>$t,looseObject:()=>Ui,looseRecord:()=>fRe,mac:()=>qFe,map:()=>mRe,meta:()=>wRe,nan:()=>bRe,nanoid:()=>FFe,nativeEnum:()=>yRe,never:()=>B7,nonoptional:()=>Loe,null:()=>YE,nullable:()=>qP,nullish:()=>SRe,number:()=>$n,object:()=>dt,optional:()=>Ko,partialRecord:()=>_Re,pipe:()=>UP,prefault:()=>Roe,preprocess:()=>WP,promise:()=>TRe,readonly:()=>Uoe,record:()=>Ro,refine:()=>Hoe,set:()=>hRe,strictObject:()=>pRe,string:()=>Y,stringFormat:()=>ZFe,stringbool:()=>CRe,success:()=>vRe,superRefine:()=>Zoe,symbol:()=>aRe,templateLiteral:()=>ERe,transform:()=>q7,tuple:()=>Eoe,uint32:()=>rRe,uint64:()=>iRe,ulid:()=>$Fe,undefined:()=>sRe,union:()=>go,unknown:()=>ko,url:()=>x7,uuid:()=>wFe,uuidv4:()=>kFe,uuidv6:()=>CFe,uuidv7:()=>PFe,void:()=>cRe,xid:()=>MFe,xor:()=>dRe});var jP={};r0(jP,{endsWith:()=>jE,gt:()=>p_,gte:()=>Ts,includes:()=>$E,length:()=>z0,lowercase:()=>RE,lt:()=>u_,lte:()=>kc,maxLength:()=>U0,maxSize:()=>Jy,mime:()=>BE,minLength:()=>im,minSize:()=>d_,multipleOf:()=>zy,negative:()=>QM,nonnegative:()=>YM,nonpositive:()=>XM,normalize:()=>qE,overwrite:()=>Tp,positive:()=>WM,property:()=>e7,regex:()=>FE,size:()=>q0,slugify:()=>FP,startsWith:()=>ME,toLowerCase:()=>zE,toUpperCase:()=>JE,trim:()=>UE,uppercase:()=>LE});var Vy={};r0(Vy,{ZodISODate:()=>_7,ZodISODateTime:()=>p7,ZodISODuration:()=>y7,ZodISOTime:()=>m7,date:()=>f7,datetime:()=>d7,duration:()=>g7,time:()=>h7});var p7=ne("ZodISODateTime",(e,t)=>{v$.init(e,t),wo.init(e,t)});function d7(e){return EM(p7,e)}var _7=ne("ZodISODate",(e,t)=>{b$.init(e,t),wo.init(e,t)});function f7(e){return TM(_7,e)}var m7=ne("ZodISOTime",(e,t)=>{x$.init(e,t),wo.init(e,t)});function h7(e){return DM(m7,e)}var y7=ne("ZodISODuration",(e,t)=>{E$.init(e,t),wo.init(e,t)});function g7(e){return AM(y7,e)}var Qne=(e,t)=>{YC.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>tP(e,r)},flatten:{value:r=>eP(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,$0,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,$0,2)}},isEmpty:{get(){return e.issues.length===0}}})},NOt=ne("ZodError",Qne),Cc=ne("ZodError",Qne,{Parent:Error});var Xne=SE(Cc),Yne=bE(Cc),eoe=EE(Cc),toe=TE(Cc),roe=dre(Cc),noe=_re(Cc),ooe=fre(Cc),ioe=mre(Cc),aoe=hre(Cc),soe=yre(Cc),coe=gre(Cc),loe=Sre(Cc);var Jr=ne("ZodType",(e,t)=>(Cr.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:VE(e,"input"),output:VE(e,"output")}}),e.toJSONSchema=lne(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(Ke.mergeDefs(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(r,n)=>xs(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>Xne(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>eoe(e,r,n),e.parseAsync=async(r,n)=>Yne(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>toe(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>roe(e,r,n),e.decode=(r,n)=>noe(e,r,n),e.encodeAsync=async(r,n)=>ooe(e,r,n),e.decodeAsync=async(r,n)=>ioe(e,r,n),e.safeEncode=(r,n)=>aoe(e,r,n),e.safeDecode=(r,n)=>soe(e,r,n),e.safeEncodeAsync=async(r,n)=>coe(e,r,n),e.safeDecodeAsync=async(r,n)=>loe(e,r,n),e.refine=(r,n)=>e.check(Hoe(r,n)),e.superRefine=r=>e.check(Zoe(r)),e.overwrite=r=>e.check(Tp(r)),e.optional=()=>Ko(e),e.exactOptional=()=>Coe(e),e.nullable=()=>qP(e),e.nullish=()=>Ko(qP(e)),e.nonoptional=r=>Loe(e,r),e.array=()=>ot(e),e.or=r=>go([e,r]),e.and=r=>eT(e,r),e.transform=r=>UP(e,q7(r)),e.default=r=>Noe(e,r),e.prefault=r=>Roe(e,r),e.catch=r=>joe(e,r),e.pipe=r=>UP(e,r),e.readonly=()=>Uoe(e),e.describe=r=>{let n=e.clone();return Es.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return Es.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Es.get(e);let n=e.clone();return Es.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),v7=ne("_ZodString",(e,t)=>{Uy.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(n,o,i)=>une(e,n,o,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(FE(...n)),e.includes=(...n)=>e.check($E(...n)),e.startsWith=(...n)=>e.check(ME(...n)),e.endsWith=(...n)=>e.check(jE(...n)),e.min=(...n)=>e.check(im(...n)),e.max=(...n)=>e.check(U0(...n)),e.length=(...n)=>e.check(z0(...n)),e.nonempty=(...n)=>e.check(im(1,...n)),e.lowercase=n=>e.check(RE(n)),e.uppercase=n=>e.check(LE(n)),e.trim=()=>e.check(UE()),e.normalize=(...n)=>e.check(qE(...n)),e.toLowerCase=()=>e.check(zE()),e.toUpperCase=()=>e.check(JE()),e.slugify=()=>e.check(FP())}),HE=ne("ZodString",(e,t)=>{Uy.init(e,t),v7.init(e,t),e.email=r=>e.check(fP(b7,r)),e.url=r=>e.check(NE(zP,r)),e.jwt=r=>e.check(NP($7,r)),e.emoji=r=>e.check(SP(E7,r)),e.guid=r=>e.check(OE(BP,r)),e.uuid=r=>e.check(mP(__,r)),e.uuidv4=r=>e.check(hP(__,r)),e.uuidv6=r=>e.check(yP(__,r)),e.uuidv7=r=>e.check(gP(__,r)),e.nanoid=r=>e.check(vP(T7,r)),e.guid=r=>e.check(OE(BP,r)),e.cuid=r=>e.check(bP(D7,r)),e.cuid2=r=>e.check(xP(A7,r)),e.ulid=r=>e.check(EP(I7,r)),e.base64=r=>e.check(CP(F7,r)),e.base64url=r=>e.check(PP(R7,r)),e.xid=r=>e.check(TP(w7,r)),e.ksuid=r=>e.check(DP(k7,r)),e.ipv4=r=>e.check(AP(C7,r)),e.ipv6=r=>e.check(IP(P7,r)),e.cidrv4=r=>e.check(wP(O7,r)),e.cidrv6=r=>e.check(kP(N7,r)),e.e164=r=>e.check(OP(L7,r)),e.datetime=r=>e.check(d7(r)),e.date=r=>e.check(f7(r)),e.time=r=>e.check(h7(r)),e.duration=r=>e.check(g7(r))});function Y(e){return vM(HE,e)}var wo=ne("ZodStringFormat",(e,t)=>{yo.init(e,t),v7.init(e,t)}),b7=ne("ZodEmail",(e,t)=>{p$.init(e,t),wo.init(e,t)});function AFe(e){return fP(b7,e)}var BP=ne("ZodGUID",(e,t)=>{l$.init(e,t),wo.init(e,t)});function IFe(e){return OE(BP,e)}var __=ne("ZodUUID",(e,t)=>{u$.init(e,t),wo.init(e,t)});function wFe(e){return mP(__,e)}function kFe(e){return hP(__,e)}function CFe(e){return yP(__,e)}function PFe(e){return gP(__,e)}var zP=ne("ZodURL",(e,t)=>{d$.init(e,t),wo.init(e,t)});function x7(e){return NE(zP,e)}function OFe(e){return NE(zP,{protocol:/^https?$/,hostname:El.domain,...Ke.normalizeParams(e)})}var E7=ne("ZodEmoji",(e,t)=>{_$.init(e,t),wo.init(e,t)});function NFe(e){return SP(E7,e)}var T7=ne("ZodNanoID",(e,t)=>{f$.init(e,t),wo.init(e,t)});function FFe(e){return vP(T7,e)}var D7=ne("ZodCUID",(e,t)=>{m$.init(e,t),wo.init(e,t)});function RFe(e){return bP(D7,e)}var A7=ne("ZodCUID2",(e,t)=>{h$.init(e,t),wo.init(e,t)});function LFe(e){return xP(A7,e)}var I7=ne("ZodULID",(e,t)=>{y$.init(e,t),wo.init(e,t)});function $Fe(e){return EP(I7,e)}var w7=ne("ZodXID",(e,t)=>{g$.init(e,t),wo.init(e,t)});function MFe(e){return TP(w7,e)}var k7=ne("ZodKSUID",(e,t)=>{S$.init(e,t),wo.init(e,t)});function jFe(e){return DP(k7,e)}var C7=ne("ZodIPv4",(e,t)=>{T$.init(e,t),wo.init(e,t)});function BFe(e){return AP(C7,e)}var uoe=ne("ZodMAC",(e,t)=>{A$.init(e,t),wo.init(e,t)});function qFe(e){return xM(uoe,e)}var P7=ne("ZodIPv6",(e,t)=>{D$.init(e,t),wo.init(e,t)});function UFe(e){return IP(P7,e)}var O7=ne("ZodCIDRv4",(e,t)=>{I$.init(e,t),wo.init(e,t)});function zFe(e){return wP(O7,e)}var N7=ne("ZodCIDRv6",(e,t)=>{w$.init(e,t),wo.init(e,t)});function JFe(e){return kP(N7,e)}var F7=ne("ZodBase64",(e,t)=>{k$.init(e,t),wo.init(e,t)});function VFe(e){return CP(F7,e)}var R7=ne("ZodBase64URL",(e,t)=>{C$.init(e,t),wo.init(e,t)});function KFe(e){return PP(R7,e)}var L7=ne("ZodE164",(e,t)=>{P$.init(e,t),wo.init(e,t)});function GFe(e){return OP(L7,e)}var $7=ne("ZodJWT",(e,t)=>{O$.init(e,t),wo.init(e,t)});function HFe(e){return NP($7,e)}var ZE=ne("ZodCustomStringFormat",(e,t)=>{N$.init(e,t),wo.init(e,t)});function ZFe(e,t,r={}){return J0(ZE,e,t,r)}function WFe(e){return J0(ZE,"hostname",El.hostname,e)}function QFe(e){return J0(ZE,"hex",El.hex,e)}function XFe(e,t){let r=t?.enc??"hex",n=`${e}_${r}`,o=El[n];if(!o)throw new Error(`Unrecognized hash format: ${n}`);return J0(ZE,n,o,t)}var WE=ne("ZodNumber",(e,t)=>{uP.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(n,o,i)=>pne(e,n,o,i),e.gt=(n,o)=>e.check(p_(n,o)),e.gte=(n,o)=>e.check(Ts(n,o)),e.min=(n,o)=>e.check(Ts(n,o)),e.lt=(n,o)=>e.check(u_(n,o)),e.lte=(n,o)=>e.check(kc(n,o)),e.max=(n,o)=>e.check(kc(n,o)),e.int=n=>e.check(S7(n)),e.safe=n=>e.check(S7(n)),e.positive=n=>e.check(p_(0,n)),e.nonnegative=n=>e.check(Ts(0,n)),e.negative=n=>e.check(u_(0,n)),e.nonpositive=n=>e.check(kc(0,n)),e.multipleOf=(n,o)=>e.check(zy(n,o)),e.step=(n,o)=>e.check(zy(n,o)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function $n(e){return IM(WE,e)}var K0=ne("ZodNumberFormat",(e,t)=>{F$.init(e,t),WE.init(e,t)});function S7(e){return kM(K0,e)}function YFe(e){return CM(K0,e)}function eRe(e){return PM(K0,e)}function tRe(e){return OM(K0,e)}function rRe(e){return NM(K0,e)}var QE=ne("ZodBoolean",(e,t)=>{kE.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>dne(e,r,n,o)});function uo(e){return FM(QE,e)}var XE=ne("ZodBigInt",(e,t)=>{pP.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(n,o,i)=>_ne(e,n,o,i),e.gte=(n,o)=>e.check(Ts(n,o)),e.min=(n,o)=>e.check(Ts(n,o)),e.gt=(n,o)=>e.check(p_(n,o)),e.gte=(n,o)=>e.check(Ts(n,o)),e.min=(n,o)=>e.check(Ts(n,o)),e.lt=(n,o)=>e.check(u_(n,o)),e.lte=(n,o)=>e.check(kc(n,o)),e.max=(n,o)=>e.check(kc(n,o)),e.positive=n=>e.check(p_(BigInt(0),n)),e.negative=n=>e.check(u_(BigInt(0),n)),e.nonpositive=n=>e.check(kc(BigInt(0),n)),e.nonnegative=n=>e.check(Ts(BigInt(0),n)),e.multipleOf=(n,o)=>e.check(zy(n,o));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function nRe(e){return LM(XE,e)}var M7=ne("ZodBigIntFormat",(e,t)=>{R$.init(e,t),XE.init(e,t)});function oRe(e){return MM(M7,e)}function iRe(e){return jM(M7,e)}var poe=ne("ZodSymbol",(e,t)=>{L$.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>fne(e,r,n,o)});function aRe(e){return BM(poe,e)}var doe=ne("ZodUndefined",(e,t)=>{$$.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>hne(e,r,n,o)});function sRe(e){return qM(doe,e)}var _oe=ne("ZodNull",(e,t)=>{M$.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>mne(e,r,n,o)});function YE(e){return UM(_oe,e)}var foe=ne("ZodAny",(e,t)=>{j$.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Sne(e,r,n,o)});function j7(){return zM(foe)}var moe=ne("ZodUnknown",(e,t)=>{B$.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>vne(e,r,n,o)});function ko(){return JM(moe)}var hoe=ne("ZodNever",(e,t)=>{q$.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>gne(e,r,n,o)});function B7(e){return VM(hoe,e)}var yoe=ne("ZodVoid",(e,t)=>{U$.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>yne(e,r,n,o)});function cRe(e){return KM(yoe,e)}var JP=ne("ZodDate",(e,t)=>{z$.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(n,o,i)=>bne(e,n,o,i),e.min=(n,o)=>e.check(Ts(n,o)),e.max=(n,o)=>e.check(kc(n,o));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function lRe(e){return GM(JP,e)}var goe=ne("ZodArray",(e,t)=>{J$.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Nne(e,r,n,o),e.element=t.element,e.min=(r,n)=>e.check(im(r,n)),e.nonempty=r=>e.check(im(1,r)),e.max=(r,n)=>e.check(U0(r,n)),e.length=(r,n)=>e.check(z0(r,n)),e.unwrap=()=>e.element});function ot(e,t){return cne(goe,e,t)}function uRe(e){let t=e._zod.def.shape;return rs(Object.keys(t))}var VP=ne("ZodObject",(e,t)=>{ane.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Fne(e,r,n,o),Ke.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>rs(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ko()}),e.loose=()=>e.clone({...e._zod.def,catchall:ko()}),e.strict=()=>e.clone({...e._zod.def,catchall:B7()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>Ke.extend(e,r),e.safeExtend=r=>Ke.safeExtend(e,r),e.merge=r=>Ke.merge(e,r),e.pick=r=>Ke.pick(e,r),e.omit=r=>Ke.omit(e,r),e.partial=(...r)=>Ke.partial(U7,e,r[0]),e.required=(...r)=>Ke.required(z7,e,r[0])});function dt(e,t){let r={type:"object",shape:e??{},...Ke.normalizeParams(t)};return new VP(r)}function pRe(e,t){return new VP({type:"object",shape:e,catchall:B7(),...Ke.normalizeParams(t)})}function Ui(e,t){return new VP({type:"object",shape:e,catchall:ko(),...Ke.normalizeParams(t)})}var KP=ne("ZodUnion",(e,t)=>{CE.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>c7(e,r,n,o),e.options=t.options});function go(e,t){return new KP({type:"union",options:e,...Ke.normalizeParams(t)})}var Soe=ne("ZodXor",(e,t)=>{KP.init(e,t),V$.init(e,t),e._zod.processJSONSchema=(r,n,o)=>c7(e,r,n,o),e.options=t.options});function dRe(e,t){return new Soe({type:"union",options:e,inclusive:!1,...Ke.normalizeParams(t)})}var voe=ne("ZodDiscriminatedUnion",(e,t)=>{KP.init(e,t),K$.init(e,t)});function GP(e,t,r){return new voe({type:"union",options:t,discriminator:e,...Ke.normalizeParams(r)})}var boe=ne("ZodIntersection",(e,t)=>{G$.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Rne(e,r,n,o)});function eT(e,t){return new boe({type:"intersection",left:e,right:t})}var xoe=ne("ZodTuple",(e,t)=>{dP.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Lne(e,r,n,o),e.rest=r=>e.clone({...e._zod.def,rest:r})});function Eoe(e,t,r){let n=t instanceof Cr,o=n?r:t,i=n?t:null;return new xoe({type:"tuple",items:e,rest:i,...Ke.normalizeParams(o)})}var HP=ne("ZodRecord",(e,t)=>{H$.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>$ne(e,r,n,o),e.keyType=t.keyType,e.valueType=t.valueType});function Ro(e,t,r){return new HP({type:"record",keyType:e,valueType:t,...Ke.normalizeParams(r)})}function _Re(e,t,r){let n=xs(e);return n._zod.values=void 0,new HP({type:"record",keyType:n,valueType:t,...Ke.normalizeParams(r)})}function fRe(e,t,r){return new HP({type:"record",keyType:e,valueType:t,mode:"loose",...Ke.normalizeParams(r)})}var Toe=ne("ZodMap",(e,t)=>{Z$.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Pne(e,r,n,o),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(d_(...r)),e.nonempty=r=>e.check(d_(1,r)),e.max=(...r)=>e.check(Jy(...r)),e.size=(...r)=>e.check(q0(...r))});function mRe(e,t,r){return new Toe({type:"map",keyType:e,valueType:t,...Ke.normalizeParams(r)})}var Doe=ne("ZodSet",(e,t)=>{W$.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>One(e,r,n,o),e.min=(...r)=>e.check(d_(...r)),e.nonempty=r=>e.check(d_(1,r)),e.max=(...r)=>e.check(Jy(...r)),e.size=(...r)=>e.check(q0(...r))});function hRe(e,t){return new Doe({type:"set",valueType:e,...Ke.normalizeParams(t)})}var GE=ne("ZodEnum",(e,t)=>{Q$.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(n,o,i)=>xne(e,n,o,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(n,o)=>{let i={};for(let a of n)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new GE({...t,checks:[],...Ke.normalizeParams(o),entries:i})},e.exclude=(n,o)=>{let i={...t.entries};for(let a of n)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new GE({...t,checks:[],...Ke.normalizeParams(o),entries:i})}});function rs(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new GE({type:"enum",entries:r,...Ke.normalizeParams(t)})}function yRe(e,t){return new GE({type:"enum",entries:e,...Ke.normalizeParams(t)})}var Aoe=ne("ZodLiteral",(e,t)=>{X$.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Ene(e,r,n,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function $t(e,t){return new Aoe({type:"literal",values:Array.isArray(e)?e:[e],...Ke.normalizeParams(t)})}var Ioe=ne("ZodFile",(e,t)=>{Y$.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Ane(e,r,n,o),e.min=(r,n)=>e.check(d_(r,n)),e.max=(r,n)=>e.check(Jy(r,n)),e.mime=(r,n)=>e.check(BE(Array.isArray(r)?r:[r],n))});function gRe(e){return t7(Ioe,e)}var woe=ne("ZodTransform",(e,t)=>{eM.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Cne(e,r,n,o),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new jy(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(Ke.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(Ke.issue(a))}};let o=t.transform(r.value,r);return o instanceof Promise?o.then(i=>(r.value=i,r)):(r.value=o,r)}});function q7(e){return new woe({type:"transform",transform:e})}var U7=ne("ZodOptional",(e,t)=>{_P.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>l7(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Ko(e){return new U7({type:"optional",innerType:e})}var koe=ne("ZodExactOptional",(e,t)=>{tM.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>l7(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Coe(e){return new koe({type:"optional",innerType:e})}var Poe=ne("ZodNullable",(e,t)=>{rM.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Mne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function qP(e){return new Poe({type:"nullable",innerType:e})}function SRe(e){return Ko(qP(e))}var Ooe=ne("ZodDefault",(e,t)=>{nM.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Bne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Noe(e,t){return new Ooe({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Ke.shallowClone(t)}})}var Foe=ne("ZodPrefault",(e,t)=>{oM.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>qne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Roe(e,t){return new Foe({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Ke.shallowClone(t)}})}var z7=ne("ZodNonOptional",(e,t)=>{iM.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>jne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Loe(e,t){return new z7({type:"nonoptional",innerType:e,...Ke.normalizeParams(t)})}var $oe=ne("ZodSuccess",(e,t)=>{aM.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Ine(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function vRe(e){return new $oe({type:"success",innerType:e})}var Moe=ne("ZodCatch",(e,t)=>{sM.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Une(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function joe(e,t){return new Moe({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Boe=ne("ZodNaN",(e,t)=>{cM.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Tne(e,r,n,o)});function bRe(e){return ZM(Boe,e)}var J7=ne("ZodPipe",(e,t)=>{lM.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>zne(e,r,n,o),e.in=t.in,e.out=t.out});function UP(e,t){return new J7({type:"pipe",in:e,out:t})}var V7=ne("ZodCodec",(e,t)=>{J7.init(e,t),PE.init(e,t)});function xRe(e,t,r){return new V7({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var qoe=ne("ZodReadonly",(e,t)=>{uM.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Jne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Uoe(e){return new qoe({type:"readonly",innerType:e})}var zoe=ne("ZodTemplateLiteral",(e,t)=>{pM.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Dne(e,r,n,o)});function ERe(e,t){return new zoe({type:"template_literal",parts:e,...Ke.normalizeParams(t)})}var Joe=ne("ZodLazy",(e,t)=>{fM.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Kne(e,r,n,o),e.unwrap=()=>e._zod.def.getter()});function Voe(e){return new Joe({type:"lazy",getter:e})}var Koe=ne("ZodPromise",(e,t)=>{_M.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Vne(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function TRe(e){return new Koe({type:"promise",innerType:e})}var Goe=ne("ZodFunction",(e,t)=>{dM.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>kne(e,r,n,o)});function DRe(e){return new Goe({type:"function",input:Array.isArray(e?.input)?Eoe(e?.input):e?.input??ot(ko()),output:e?.output??ko()})}var ZP=ne("ZodCustom",(e,t)=>{mM.init(e,t),Jr.init(e,t),e._zod.processJSONSchema=(r,n,o)=>wne(e,r,n,o)});function ARe(e){let t=new Io({check:"custom"});return t._zod.check=e,t}function K7(e,t){return r7(ZP,e??(()=>!0),t)}function Hoe(e,t={}){return n7(ZP,e,t)}function Zoe(e){return o7(e)}var IRe=i7,wRe=a7;function kRe(e,t={}){let r=new ZP({type:"custom",check:"custom",fn:n=>n instanceof e,abort:!0,...Ke.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=n=>{n.value instanceof e||n.issues.push({code:"invalid_type",expected:e.name,input:n.value,inst:r,path:[...r._zod.def.path??[]]})},r}var CRe=(...e)=>s7({Codec:V7,Boolean:QE,String:HE},...e);function PRe(e){let t=Voe(()=>go([Y(e),$n(),uo(),YE(),ot(t),Ro(Y(),t)]));return t}function WP(e,t){return UP(q7(e),t)}var Qoe={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};var Woe;Woe||(Woe={});var qOt={...KE,...jP,iso:Vy};var QP={};r0(QP,{bigint:()=>RRe,boolean:()=>FRe,date:()=>LRe,number:()=>NRe,string:()=>ORe});function ORe(e){return bM(HE,e)}function NRe(e){return wM(WE,e)}function FRe(e){return RM(QE,e)}function RRe(e){return $M(XE,e)}function LRe(e){return HM(JP,e)}Wi(hM());var H0="2025-11-25";var Yoe=[H0,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],am="io.modelcontextprotocol/related-task",YP="2.0",Da=K7(e=>e!==null&&(typeof e=="object"||typeof e=="function")),eie=go([Y(),$n().int()]),tie=Y(),a4t=Ui({ttl:go([$n(),YE()]).optional(),pollInterval:$n().optional()}),MRe=dt({ttl:$n().optional()}),jRe=dt({taskId:Y()}),G7=Ui({progressToken:eie.optional(),[am]:jRe.optional()}),Pc=dt({_meta:G7.optional()}),rT=Pc.extend({task:MRe.optional()}),rie=e=>rT.safeParse(e).success,Aa=dt({method:Y(),params:Pc.loose().optional()}),Tl=dt({_meta:G7.optional()}),Dl=dt({method:Y(),params:Tl.loose().optional()}),Ia=Ui({_meta:G7.optional()}),e6=go([Y(),$n().int()]),nie=dt({jsonrpc:$t(YP),id:e6,...Aa.shape}).strict(),nT=e=>nie.safeParse(e).success,oie=dt({jsonrpc:$t(YP),...Dl.shape}).strict(),iie=e=>oie.safeParse(e).success,H7=dt({jsonrpc:$t(YP),id:e6,result:Ia}).strict(),Ky=e=>H7.safeParse(e).success;var Tr;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(Tr||(Tr={}));var Z7=dt({jsonrpc:$t(YP),id:e6.optional(),error:dt({code:$n().int(),message:Y(),data:ko().optional()})}).strict();var aie=e=>Z7.safeParse(e).success;var sm=go([nie,oie,H7,Z7]),s4t=go([H7,Z7]),Gy=Ia.strict(),BRe=Tl.extend({requestId:e6.optional(),reason:Y().optional()}),t6=Dl.extend({method:$t("notifications/cancelled"),params:BRe}),qRe=dt({src:Y(),mimeType:Y().optional(),sizes:ot(Y()).optional(),theme:rs(["light","dark"]).optional()}),oT=dt({icons:ot(qRe).optional()}),G0=dt({name:Y(),title:Y().optional()}),sie=G0.extend({...G0.shape,...oT.shape,version:Y(),websiteUrl:Y().optional(),description:Y().optional()}),URe=eT(dt({applyDefaults:uo().optional()}),Ro(Y(),ko())),zRe=WP(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,eT(dt({form:URe.optional(),url:Da.optional()}),Ro(Y(),ko()).optional())),JRe=Ui({list:Da.optional(),cancel:Da.optional(),requests:Ui({sampling:Ui({createMessage:Da.optional()}).optional(),elicitation:Ui({create:Da.optional()}).optional()}).optional()}),VRe=Ui({list:Da.optional(),cancel:Da.optional(),requests:Ui({tools:Ui({call:Da.optional()}).optional()}).optional()}),KRe=dt({experimental:Ro(Y(),Da).optional(),sampling:dt({context:Da.optional(),tools:Da.optional()}).optional(),elicitation:zRe.optional(),roots:dt({listChanged:uo().optional()}).optional(),tasks:JRe.optional()}),GRe=Pc.extend({protocolVersion:Y(),capabilities:KRe,clientInfo:sie}),HRe=Aa.extend({method:$t("initialize"),params:GRe});var ZRe=dt({experimental:Ro(Y(),Da).optional(),logging:Da.optional(),completions:Da.optional(),prompts:dt({listChanged:uo().optional()}).optional(),resources:dt({subscribe:uo().optional(),listChanged:uo().optional()}).optional(),tools:dt({listChanged:uo().optional()}).optional(),tasks:VRe.optional()}),W7=Ia.extend({protocolVersion:Y(),capabilities:ZRe,serverInfo:sie,instructions:Y().optional()}),cie=Dl.extend({method:$t("notifications/initialized"),params:Tl.optional()}),lie=e=>cie.safeParse(e).success,r6=Aa.extend({method:$t("ping"),params:Pc.optional()}),WRe=dt({progress:$n(),total:Ko($n()),message:Ko(Y())}),QRe=dt({...Tl.shape,...WRe.shape,progressToken:eie}),n6=Dl.extend({method:$t("notifications/progress"),params:QRe}),XRe=Pc.extend({cursor:tie.optional()}),iT=Aa.extend({params:XRe.optional()}),aT=Ia.extend({nextCursor:tie.optional()}),YRe=rs(["working","input_required","completed","failed","cancelled"]),sT=dt({taskId:Y(),status:YRe,ttl:go([$n(),YE()]),createdAt:Y(),lastUpdatedAt:Y(),pollInterval:Ko($n()),statusMessage:Ko(Y())}),Hy=Ia.extend({task:sT}),e8e=Tl.merge(sT),cT=Dl.extend({method:$t("notifications/tasks/status"),params:e8e}),o6=Aa.extend({method:$t("tasks/get"),params:Pc.extend({taskId:Y()})}),i6=Ia.merge(sT),a6=Aa.extend({method:$t("tasks/result"),params:Pc.extend({taskId:Y()})}),c4t=Ia.loose(),s6=iT.extend({method:$t("tasks/list")}),c6=aT.extend({tasks:ot(sT)}),l6=Aa.extend({method:$t("tasks/cancel"),params:Pc.extend({taskId:Y()})}),uie=Ia.merge(sT),pie=dt({uri:Y(),mimeType:Ko(Y()),_meta:Ro(Y(),ko()).optional()}),die=pie.extend({text:Y()}),Q7=Y().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),_ie=pie.extend({blob:Q7}),lT=rs(["user","assistant"]),Z0=dt({audience:ot(lT).optional(),priority:$n().min(0).max(1).optional(),lastModified:Vy.datetime({offset:!0}).optional()}),fie=dt({...G0.shape,...oT.shape,uri:Y(),description:Ko(Y()),mimeType:Ko(Y()),annotations:Z0.optional(),_meta:Ko(Ui({}))}),t8e=dt({...G0.shape,...oT.shape,uriTemplate:Y(),description:Ko(Y()),mimeType:Ko(Y()),annotations:Z0.optional(),_meta:Ko(Ui({}))}),r8e=iT.extend({method:$t("resources/list")}),X7=aT.extend({resources:ot(fie)}),n8e=iT.extend({method:$t("resources/templates/list")}),Y7=aT.extend({resourceTemplates:ot(t8e)}),ej=Pc.extend({uri:Y()}),o8e=ej,i8e=Aa.extend({method:$t("resources/read"),params:o8e}),tj=Ia.extend({contents:ot(go([die,_ie]))}),rj=Dl.extend({method:$t("notifications/resources/list_changed"),params:Tl.optional()}),a8e=ej,s8e=Aa.extend({method:$t("resources/subscribe"),params:a8e}),c8e=ej,l8e=Aa.extend({method:$t("resources/unsubscribe"),params:c8e}),u8e=Tl.extend({uri:Y()}),p8e=Dl.extend({method:$t("notifications/resources/updated"),params:u8e}),d8e=dt({name:Y(),description:Ko(Y()),required:Ko(uo())}),_8e=dt({...G0.shape,...oT.shape,description:Ko(Y()),arguments:Ko(ot(d8e)),_meta:Ko(Ui({}))}),f8e=iT.extend({method:$t("prompts/list")}),nj=aT.extend({prompts:ot(_8e)}),m8e=Pc.extend({name:Y(),arguments:Ro(Y(),Y()).optional()}),h8e=Aa.extend({method:$t("prompts/get"),params:m8e}),oj=dt({type:$t("text"),text:Y(),annotations:Z0.optional(),_meta:Ro(Y(),ko()).optional()}),ij=dt({type:$t("image"),data:Q7,mimeType:Y(),annotations:Z0.optional(),_meta:Ro(Y(),ko()).optional()}),aj=dt({type:$t("audio"),data:Q7,mimeType:Y(),annotations:Z0.optional(),_meta:Ro(Y(),ko()).optional()}),y8e=dt({type:$t("tool_use"),name:Y(),id:Y(),input:Ro(Y(),ko()),_meta:Ro(Y(),ko()).optional()}),g8e=dt({type:$t("resource"),resource:go([die,_ie]),annotations:Z0.optional(),_meta:Ro(Y(),ko()).optional()}),S8e=fie.extend({type:$t("resource_link")}),sj=go([oj,ij,aj,S8e,g8e]),v8e=dt({role:lT,content:sj}),cj=Ia.extend({description:Y().optional(),messages:ot(v8e)}),lj=Dl.extend({method:$t("notifications/prompts/list_changed"),params:Tl.optional()}),b8e=dt({title:Y().optional(),readOnlyHint:uo().optional(),destructiveHint:uo().optional(),idempotentHint:uo().optional(),openWorldHint:uo().optional()}),x8e=dt({taskSupport:rs(["required","optional","forbidden"]).optional()}),mie=dt({...G0.shape,...oT.shape,description:Y().optional(),inputSchema:dt({type:$t("object"),properties:Ro(Y(),Da).optional(),required:ot(Y()).optional()}).catchall(ko()),outputSchema:dt({type:$t("object"),properties:Ro(Y(),Da).optional(),required:ot(Y()).optional()}).catchall(ko()).optional(),annotations:b8e.optional(),execution:x8e.optional(),_meta:Ro(Y(),ko()).optional()}),E8e=iT.extend({method:$t("tools/list")}),uj=aT.extend({tools:ot(mie)}),W0=Ia.extend({content:ot(sj).default([]),structuredContent:Ro(Y(),ko()).optional(),isError:uo().optional()}),l4t=W0.or(Ia.extend({toolResult:ko()})),T8e=rT.extend({name:Y(),arguments:Ro(Y(),ko()).optional()}),D8e=Aa.extend({method:$t("tools/call"),params:T8e}),pj=Dl.extend({method:$t("notifications/tools/list_changed"),params:Tl.optional()}),hie=dt({autoRefresh:uo().default(!0),debounceMs:$n().int().nonnegative().default(300)}),yie=rs(["debug","info","notice","warning","error","critical","alert","emergency"]),A8e=Pc.extend({level:yie}),I8e=Aa.extend({method:$t("logging/setLevel"),params:A8e}),w8e=Tl.extend({level:yie,logger:Y().optional(),data:ko()}),k8e=Dl.extend({method:$t("notifications/message"),params:w8e}),C8e=dt({name:Y().optional()}),P8e=dt({hints:ot(C8e).optional(),costPriority:$n().min(0).max(1).optional(),speedPriority:$n().min(0).max(1).optional(),intelligencePriority:$n().min(0).max(1).optional()}),O8e=dt({mode:rs(["auto","required","none"]).optional()}),N8e=dt({type:$t("tool_result"),toolUseId:Y().describe("The unique identifier for the corresponding tool call."),content:ot(sj).default([]),structuredContent:dt({}).loose().optional(),isError:uo().optional(),_meta:Ro(Y(),ko()).optional()}),F8e=GP("type",[oj,ij,aj]),XP=GP("type",[oj,ij,aj,y8e,N8e]),R8e=dt({role:lT,content:go([XP,ot(XP)]),_meta:Ro(Y(),ko()).optional()}),L8e=rT.extend({messages:ot(R8e),modelPreferences:P8e.optional(),systemPrompt:Y().optional(),includeContext:rs(["none","thisServer","allServers"]).optional(),temperature:$n().optional(),maxTokens:$n().int(),stopSequences:ot(Y()).optional(),metadata:Da.optional(),tools:ot(mie).optional(),toolChoice:O8e.optional()}),dj=Aa.extend({method:$t("sampling/createMessage"),params:L8e}),_j=Ia.extend({model:Y(),stopReason:Ko(rs(["endTurn","stopSequence","maxTokens"]).or(Y())),role:lT,content:F8e}),fj=Ia.extend({model:Y(),stopReason:Ko(rs(["endTurn","stopSequence","maxTokens","toolUse"]).or(Y())),role:lT,content:go([XP,ot(XP)])}),$8e=dt({type:$t("boolean"),title:Y().optional(),description:Y().optional(),default:uo().optional()}),M8e=dt({type:$t("string"),title:Y().optional(),description:Y().optional(),minLength:$n().optional(),maxLength:$n().optional(),format:rs(["email","uri","date","date-time"]).optional(),default:Y().optional()}),j8e=dt({type:rs(["number","integer"]),title:Y().optional(),description:Y().optional(),minimum:$n().optional(),maximum:$n().optional(),default:$n().optional()}),B8e=dt({type:$t("string"),title:Y().optional(),description:Y().optional(),enum:ot(Y()),default:Y().optional()}),q8e=dt({type:$t("string"),title:Y().optional(),description:Y().optional(),oneOf:ot(dt({const:Y(),title:Y()})),default:Y().optional()}),U8e=dt({type:$t("string"),title:Y().optional(),description:Y().optional(),enum:ot(Y()),enumNames:ot(Y()).optional(),default:Y().optional()}),z8e=go([B8e,q8e]),J8e=dt({type:$t("array"),title:Y().optional(),description:Y().optional(),minItems:$n().optional(),maxItems:$n().optional(),items:dt({type:$t("string"),enum:ot(Y())}),default:ot(Y()).optional()}),V8e=dt({type:$t("array"),title:Y().optional(),description:Y().optional(),minItems:$n().optional(),maxItems:$n().optional(),items:dt({anyOf:ot(dt({const:Y(),title:Y()}))}),default:ot(Y()).optional()}),K8e=go([J8e,V8e]),G8e=go([U8e,z8e,K8e]),H8e=go([G8e,$8e,M8e,j8e]),Z8e=rT.extend({mode:$t("form").optional(),message:Y(),requestedSchema:dt({type:$t("object"),properties:Ro(Y(),H8e),required:ot(Y()).optional()})}),W8e=rT.extend({mode:$t("url"),message:Y(),elicitationId:Y(),url:Y().url()}),Q8e=go([Z8e,W8e]),uT=Aa.extend({method:$t("elicitation/create"),params:Q8e}),X8e=Tl.extend({elicitationId:Y()}),Y8e=Dl.extend({method:$t("notifications/elicitation/complete"),params:X8e}),mj=Ia.extend({action:rs(["accept","decline","cancel"]),content:WP(e=>e===null?void 0:e,Ro(Y(),go([Y(),$n(),uo(),ot(Y())])).optional())}),e9e=dt({type:$t("ref/resource"),uri:Y()});var t9e=dt({type:$t("ref/prompt"),name:Y()}),r9e=Pc.extend({ref:go([t9e,e9e]),argument:dt({name:Y(),value:Y()}),context:dt({arguments:Ro(Y(),Y()).optional()}).optional()}),n9e=Aa.extend({method:$t("completion/complete"),params:r9e});var hj=Ia.extend({completion:Ui({values:ot(Y()).max(100),total:Ko($n().int()),hasMore:Ko(uo())})}),o9e=dt({uri:Y().startsWith("file://"),name:Y().optional(),_meta:Ro(Y(),ko()).optional()}),i9e=Aa.extend({method:$t("roots/list"),params:Pc.optional()}),a9e=Ia.extend({roots:ot(o9e)}),s9e=Dl.extend({method:$t("notifications/roots/list_changed"),params:Tl.optional()}),u4t=go([r6,HRe,n9e,I8e,h8e,f8e,r8e,n8e,i8e,s8e,l8e,D8e,E8e,o6,a6,s6,l6]),p4t=go([t6,n6,cie,s9e,cT]),d4t=go([Gy,_j,fj,mj,a9e,i6,c6,Hy]),_4t=go([r6,dj,uT,i9e,o6,a6,s6,l6]),f4t=go([t6,n6,k8e,p8e,rj,pj,lj,cT,Y8e]),m4t=go([Gy,W7,hj,cj,nj,X7,Y7,tj,W0,uj,i6,c6,Hy]),rr=class e extends Error{constructor(t,r,n){super(`MCP error ${t}: ${r}`),this.code=t,this.data=n,this.name="McpError"}static fromError(t,r,n){if(t===Tr.UrlElicitationRequired&&n){let o=n;if(o.elicitations)return new tT(o.elicitations,r)}return new e(t,r,n)}},tT=class extends rr{constructor(t,r=`URL elicitation${t.length>1?"s":""} required`){super(Tr.UrlElicitationRequired,r,{elicitations:t})}get elicitations(){return this.data?.elicitations??[]}};function cm(e){return e==="completed"||e==="failed"||e==="cancelled"}var Z4t=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function yj(e){let r=MP(e)?.method;if(!r)throw new Error("Schema is missing a method literal");let n=Wne(r);if(typeof n!="string")throw new Error("Schema method literal must be a string");return n}function gj(e,t){let r=xu(e,t);if(!r.success)throw r.error;return r.data}var _9e=6e4,u6=class{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(t6,r=>{this._oncancel(r)}),this.setNotificationHandler(n6,r=>{this._onprogress(r)}),this.setRequestHandler(r6,r=>({})),this._taskStore=t?.taskStore,this._taskMessageQueue=t?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(o6,async(r,n)=>{let o=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!o)throw new rr(Tr.InvalidParams,"Failed to retrieve task: Task not found");return{...o}}),this.setRequestHandler(a6,async(r,n)=>{let o=async()=>{let i=r.params.taskId;if(this._taskMessageQueue){let s;for(;s=await this._taskMessageQueue.dequeue(i,n.sessionId);){if(s.type==="response"||s.type==="error"){let c=s.message,p=c.id,d=this._requestResolvers.get(p);if(d)if(this._requestResolvers.delete(p),s.type==="response")d(c);else{let f=c,m=new rr(f.error.code,f.error.message,f.error.data);d(m)}else{let f=s.type==="response"?"Response":"Error";this._onerror(new Error(`${f} handler missing for request ${p}`))}continue}await this._transport?.send(s.message,{relatedRequestId:n.requestId})}}let a=await this._taskStore.getTask(i,n.sessionId);if(!a)throw new rr(Tr.InvalidParams,`Task not found: ${i}`);if(!cm(a.status))return await this._waitForTaskUpdate(i,n.signal),await o();if(cm(a.status)){let s=await this._taskStore.getTaskResult(i,n.sessionId);return this._clearTaskQueue(i),{...s,_meta:{...s._meta,[am]:{taskId:i}}}}return await o()};return await o()}),this.setRequestHandler(s6,async(r,n)=>{try{let{tasks:o,nextCursor:i}=await this._taskStore.listTasks(r.params?.cursor,n.sessionId);return{tasks:o,nextCursor:i,_meta:{}}}catch(o){throw new rr(Tr.InvalidParams,`Failed to list tasks: ${o instanceof Error?o.message:String(o)}`)}}),this.setRequestHandler(l6,async(r,n)=>{try{let o=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!o)throw new rr(Tr.InvalidParams,`Task not found: ${r.params.taskId}`);if(cm(o.status))throw new rr(Tr.InvalidParams,`Cannot cancel task in terminal status: ${o.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",n.sessionId),this._clearTaskQueue(r.params.taskId);let i=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!i)throw new rr(Tr.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...i}}catch(o){throw o instanceof rr?o:new rr(Tr.InvalidRequest,`Failed to cancel task: ${o instanceof Error?o.message:String(o)}`)}}))}async _oncancel(t){if(!t.params.requestId)return;this._requestHandlerAbortControllers.get(t.params.requestId)?.abort(t.params.reason)}_setupTimeout(t,r,n,o,i=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(o,r),startTime:Date.now(),timeout:r,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:o})}_resetTimeout(t){let r=this._timeoutInfo.get(t);if(!r)return!1;let n=Date.now()-r.startTime;if(r.maxTotalTimeout&&n>=r.maxTotalTimeout)throw this._timeoutInfo.delete(t),rr.fromError(Tr.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:n});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(t){let r=this._timeoutInfo.get(t);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(t))}async connect(t){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=t;let r=this.transport?.onclose;this._transport.onclose=()=>{r?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=i=>{n?.(i),this._onerror(i)};let o=this._transport?.onmessage;this._transport.onmessage=(i,a)=>{o?.(i,a),Ky(i)||aie(i)?this._onresponse(i):nT(i)?this._onrequest(i,a):iie(i)?this._onnotification(i):this._onerror(new Error(`Unknown message type: ${JSON.stringify(i)}`))},await this._transport.start()}_onclose(){let t=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();let r=rr.fromError(Tr.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let n of t.values())n(r)}_onerror(t){this.onerror?.(t)}_onnotification(t){let r=this._notificationHandlers.get(t.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(t)).catch(n=>this._onerror(new Error(`Uncaught error in notification handler: ${n}`)))}_onrequest(t,r){let n=this._requestHandlers.get(t.method)??this.fallbackRequestHandler,o=this._transport,i=t.params?._meta?.[am]?.taskId;if(n===void 0){let d={jsonrpc:"2.0",id:t.id,error:{code:Tr.MethodNotFound,message:"Method not found"}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:"error",message:d,timestamp:Date.now()},o?.sessionId).catch(f=>this._onerror(new Error(`Failed to enqueue error response: ${f}`))):o?.send(d).catch(f=>this._onerror(new Error(`Failed to send an error response: ${f}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(t.id,a);let s=rie(t.params)?t.params.task:void 0,c=this._taskStore?this.requestTaskStore(t,o?.sessionId):void 0,p={signal:a.signal,sessionId:o?.sessionId,_meta:t.params?._meta,sendNotification:async d=>{if(a.signal.aborted)return;let f={relatedRequestId:t.id};i&&(f.relatedTask={taskId:i}),await this.notification(d,f)},sendRequest:async(d,f,m)=>{if(a.signal.aborted)throw new rr(Tr.ConnectionClosed,"Request was cancelled");let y={...m,relatedRequestId:t.id};i&&!y.relatedTask&&(y.relatedTask={taskId:i});let g=y.relatedTask?.taskId??i;return g&&c&&await c.updateTaskStatus(g,"input_required"),await this.request(d,f,y)},authInfo:r?.authInfo,requestId:t.id,requestInfo:r?.requestInfo,taskId:i,taskStore:c,taskRequestedTtl:s?.ttl,closeSSEStream:r?.closeSSEStream,closeStandaloneSSEStream:r?.closeStandaloneSSEStream};Promise.resolve().then(()=>{s&&this.assertTaskHandlerCapability(t.method)}).then(()=>n(t,p)).then(async d=>{if(a.signal.aborted)return;let f={result:d,jsonrpc:"2.0",id:t.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:"response",message:f,timestamp:Date.now()},o?.sessionId):await o?.send(f)},async d=>{if(a.signal.aborted)return;let f={jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(d.code)?d.code:Tr.InternalError,message:d.message??"Internal error",...d.data!==void 0&&{data:d.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:"error",message:f,timestamp:Date.now()},o?.sessionId):await o?.send(f)}).catch(d=>this._onerror(new Error(`Failed to send response: ${d}`))).finally(()=>{this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){let{progressToken:r,...n}=t.params,o=Number(r),i=this._progressHandlers.get(o);if(!i){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}let a=this._responseHandlers.get(o),s=this._timeoutInfo.get(o);if(s&&a&&s.resetTimeoutOnProgress)try{this._resetTimeout(o)}catch(c){this._responseHandlers.delete(o),this._progressHandlers.delete(o),this._cleanupTimeout(o),a(c);return}i(n)}_onresponse(t){let r=Number(t.id),n=this._requestResolvers.get(r);if(n){if(this._requestResolvers.delete(r),Ky(t))n(t);else{let a=new rr(t.error.code,t.error.message,t.error.data);n(a)}return}let o=this._responseHandlers.get(r);if(o===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let i=!1;if(Ky(t)&&t.result&&typeof t.result=="object"){let a=t.result;if(a.task&&typeof a.task=="object"){let s=a.task;typeof s.taskId=="string"&&(i=!0,this._taskProgressTokens.set(s.taskId,r))}}if(i||this._progressHandlers.delete(r),Ky(t))o(t);else{let a=rr.fromError(t.error.code,t.error.message,t.error.data);o(a)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(t,r,n){let{task:o}=n??{};if(!o){try{yield{type:"result",result:await this.request(t,r,n)}}catch(a){yield{type:"error",error:a instanceof rr?a:new rr(Tr.InternalError,String(a))}}return}let i;try{let a=await this.request(t,Hy,n);if(a.task)i=a.task.taskId,yield{type:"taskCreated",task:a.task};else throw new rr(Tr.InternalError,"Task creation did not return a task");for(;;){let s=await this.getTask({taskId:i},n);if(yield{type:"taskStatus",task:s},cm(s.status)){s.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:i},r,n)}:s.status==="failed"?yield{type:"error",error:new rr(Tr.InternalError,`Task ${i} failed`)}:s.status==="cancelled"&&(yield{type:"error",error:new rr(Tr.InternalError,`Task ${i} was cancelled`)});return}if(s.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:i},r,n)};return}let c=s.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(p=>setTimeout(p,c)),n?.signal?.throwIfAborted()}}catch(a){yield{type:"error",error:a instanceof rr?a:new rr(Tr.InternalError,String(a))}}}request(t,r,n){let{relatedRequestId:o,resumptionToken:i,onresumptiontoken:a,task:s,relatedTask:c}=n??{};return new Promise((p,d)=>{let f=I=>{d(I)};if(!this._transport){f(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method),s&&this.assertTaskCapability(t.method)}catch(I){f(I);return}n?.signal?.throwIfAborted();let m=this._requestMessageId++,y={...t,jsonrpc:"2.0",id:m};n?.onprogress&&(this._progressHandlers.set(m,n.onprogress),y.params={...t.params,_meta:{...t.params?._meta||{},progressToken:m}}),s&&(y.params={...y.params,task:s}),c&&(y.params={...y.params,_meta:{...y.params?._meta||{},[am]:c}});let g=I=>{this._responseHandlers.delete(m),this._progressHandlers.delete(m),this._cleanupTimeout(m),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:m,reason:String(I)}},{relatedRequestId:o,resumptionToken:i,onresumptiontoken:a}).catch(k=>this._onerror(new Error(`Failed to send cancellation: ${k}`)));let T=I instanceof rr?I:new rr(Tr.RequestTimeout,String(I));d(T)};this._responseHandlers.set(m,I=>{if(!n?.signal?.aborted){if(I instanceof Error)return d(I);try{let T=xu(r,I.result);T.success?p(T.data):d(T.error)}catch(T){d(T)}}}),n?.signal?.addEventListener("abort",()=>{g(n?.signal?.reason)});let S=n?.timeout??_9e,b=()=>g(rr.fromError(Tr.RequestTimeout,"Request timed out",{timeout:S}));this._setupTimeout(m,S,n?.maxTotalTimeout,b,n?.resetTimeoutOnProgress??!1);let E=c?.taskId;if(E){let I=T=>{let k=this._responseHandlers.get(m);k?k(T):this._onerror(new Error(`Response handler missing for side-channeled request ${m}`))};this._requestResolvers.set(m,I),this._enqueueTaskMessage(E,{type:"request",message:y,timestamp:Date.now()}).catch(T=>{this._cleanupTimeout(m),d(T)})}else this._transport.send(y,{relatedRequestId:o,resumptionToken:i,onresumptiontoken:a}).catch(I=>{this._cleanupTimeout(m),d(I)})})}async getTask(t,r){return this.request({method:"tasks/get",params:t},i6,r)}async getTaskResult(t,r,n){return this.request({method:"tasks/result",params:t},r,n)}async listTasks(t,r){return this.request({method:"tasks/list",params:t},c6,r)}async cancelTask(t,r){return this.request({method:"tasks/cancel",params:t},uie,r)}async notification(t,r){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(t.method);let n=r?.relatedTask?.taskId;if(n){let s={...t,jsonrpc:"2.0",params:{...t.params,_meta:{...t.params?._meta||{},[am]:r.relatedTask}}};await this._enqueueTaskMessage(n,{type:"notification",message:s,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&!r?.relatedRequestId&&!r?.relatedTask){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(t.method),!this._transport)return;let s={...t,jsonrpc:"2.0"};r?.relatedTask&&(s={...s,params:{...s.params,_meta:{...s.params?._meta||{},[am]:r.relatedTask}}}),this._transport?.send(s,r).catch(c=>this._onerror(c))});return}let a={...t,jsonrpc:"2.0"};r?.relatedTask&&(a={...a,params:{...a.params,_meta:{...a.params?._meta||{},[am]:r.relatedTask}}}),await this._transport.send(a,r)}setRequestHandler(t,r){let n=yj(t);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(o,i)=>{let a=gj(t,o);return Promise.resolve(r(a,i))})}removeRequestHandler(t){this._requestHandlers.delete(t)}assertCanSetRequestHandler(t){if(this._requestHandlers.has(t))throw new Error(`A request handler for ${t} already exists, which would be overridden`)}setNotificationHandler(t,r){let n=yj(t);this._notificationHandlers.set(n,o=>{let i=gj(t,o);return Promise.resolve(r(i))})}removeNotificationHandler(t){this._notificationHandlers.delete(t)}_cleanupTaskProgressHandler(t){let r=this._taskProgressTokens.get(t);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(t))}async _enqueueTaskMessage(t,r,n){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let o=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(t,r,n,o)}async _clearTaskQueue(t,r){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(t,r);for(let o of n)if(o.type==="request"&&nT(o.message)){let i=o.message.id,a=this._requestResolvers.get(i);a?(a(new rr(Tr.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(i)):this._onerror(new Error(`Resolver missing for request ${i} during task ${t} cleanup`))}}}async _waitForTaskUpdate(t,r){let n=this._options?.defaultTaskPollInterval??1e3;try{let o=await this._taskStore?.getTask(t);o?.pollInterval&&(n=o.pollInterval)}catch{}return new Promise((o,i)=>{if(r.aborted){i(new rr(Tr.InvalidRequest,"Request cancelled"));return}let a=setTimeout(o,n);r.addEventListener("abort",()=>{clearTimeout(a),i(new rr(Tr.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(t,r){let n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async o=>{if(!t)throw new Error("No request provided");return await n.createTask(o,t.id,{method:t.method,params:t.params},r)},getTask:async o=>{let i=await n.getTask(o,r);if(!i)throw new rr(Tr.InvalidParams,"Failed to retrieve task: Task not found");return i},storeTaskResult:async(o,i,a)=>{await n.storeTaskResult(o,i,a,r);let s=await n.getTask(o,r);if(s){let c=cT.parse({method:"notifications/tasks/status",params:s});await this.notification(c),cm(s.status)&&this._cleanupTaskProgressHandler(o)}},getTaskResult:o=>n.getTaskResult(o,r),updateTaskStatus:async(o,i,a)=>{let s=await n.getTask(o,r);if(!s)throw new rr(Tr.InvalidParams,`Task "${o}" not found - it may have been cleaned up`);if(cm(s.status))throw new rr(Tr.InvalidParams,`Cannot update task "${o}" from terminal status "${s.status}" to "${i}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(o,i,a,r);let c=await n.getTask(o,r);if(c){let p=cT.parse({method:"notifications/tasks/status",params:c});await this.notification(p),cm(c.status)&&this._cleanupTaskProgressHandler(o)}},listTasks:o=>n.listTasks(o,r)}}};function gie(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Sie(e,t){let r={...e};for(let n in t){let o=n,i=t[o];if(i===void 0)continue;let a=r[o];gie(a)&&gie(i)?r[o]={...a,...i}:r[o]=i}return r}var $ie=n0(bj(),1),Mie=n0(Lie(),1);function V9e(){let e=new $ie.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,Mie.default)(e),e}var _6=class{constructor(t){this._ajv=t??V9e()}getValidator(t){let r="$id"in t&&typeof t.$id=="string"?this._ajv.getSchema(t.$id)??this._ajv.compile(t):this._ajv.compile(t);return n=>r(n)?{valid:!0,data:n,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(r.errors)}}};var f6=class{constructor(t){this._client=t}async*callToolStream(t,r=W0,n){let o=this._client,i={...n,task:n?.task??(o.isToolTask(t.name)?{}:void 0)},a=o.requestStream({method:"tools/call",params:t},r,i),s=o.getToolOutputValidator(t.name);for await(let c of a){if(c.type==="result"&&s){let p=c.result;if(!p.structuredContent&&!p.isError){yield{type:"error",error:new rr(Tr.InvalidRequest,`Tool ${t.name} has an output schema but did not return structured content`)};return}if(p.structuredContent)try{let d=s(p.structuredContent);if(!d.valid){yield{type:"error",error:new rr(Tr.InvalidParams,`Structured content does not match the tool's output schema: ${d.errorMessage}`)};return}}catch(d){if(d instanceof rr){yield{type:"error",error:d};return}yield{type:"error",error:new rr(Tr.InvalidParams,`Failed to validate structured content: ${d instanceof Error?d.message:String(d)}`)};return}}yield c}}async getTask(t,r){return this._client.getTask({taskId:t},r)}async getTaskResult(t,r,n){return this._client.getTaskResult({taskId:t},r,n)}async listTasks(t,r){return this._client.listTasks(t?{cursor:t}:void 0,r)}async cancelTask(t,r){return this._client.cancelTask({taskId:t},r)}requestStream(t,r,n){return this._client.requestStream(t,r,n)}};function jie(e,t,r){if(!e)throw new Error(`${r} does not support task creation (required for ${t})`);switch(t){case"tools/call":if(!e.tools?.call)throw new Error(`${r} does not support task creation for tools/call (required for ${t})`);break;default:break}}function Bie(e,t,r){if(!e)throw new Error(`${r} does not support task creation (required for ${t})`);switch(t){case"sampling/createMessage":if(!e.sampling?.createMessage)throw new Error(`${r} does not support task creation for sampling/createMessage (required for ${t})`);break;case"elicitation/create":if(!e.elicitation?.create)throw new Error(`${r} does not support task creation for elicitation/create (required for ${t})`);break;default:break}}function m6(e,t){if(!(!e||t===null||typeof t!="object")){if(e.type==="object"&&e.properties&&typeof e.properties=="object"){let r=t,n=e.properties;for(let o of Object.keys(n)){let i=n[o];r[o]===void 0&&Object.prototype.hasOwnProperty.call(i,"default")&&(r[o]=i.default),r[o]!==void 0&&m6(i,r[o])}}if(Array.isArray(e.anyOf))for(let r of e.anyOf)typeof r!="boolean"&&m6(r,t);if(Array.isArray(e.oneOf))for(let r of e.oneOf)typeof r!="boolean"&&m6(r,t)}}function K9e(e){if(!e)return{supportsFormMode:!1,supportsUrlMode:!1};let t=e.form!==void 0,r=e.url!==void 0;return{supportsFormMode:t||!t&&!r,supportsUrlMode:r}}var h6=class extends u6{constructor(t,r){super(r),this._clientInfo=t,this._cachedToolOutputValidators=new Map,this._cachedKnownTaskTools=new Set,this._cachedRequiredTaskTools=new Set,this._listChangedDebounceTimers=new Map,this._capabilities=r?.capabilities??{},this._jsonSchemaValidator=r?.jsonSchemaValidator??new _6,r?.listChanged&&(this._pendingListChangedConfig=r.listChanged)}_setupListChangedHandlers(t){t.tools&&this._serverCapabilities?.tools?.listChanged&&this._setupListChangedHandler("tools",pj,t.tools,async()=>(await this.listTools()).tools),t.prompts&&this._serverCapabilities?.prompts?.listChanged&&this._setupListChangedHandler("prompts",lj,t.prompts,async()=>(await this.listPrompts()).prompts),t.resources&&this._serverCapabilities?.resources?.listChanged&&this._setupListChangedHandler("resources",rj,t.resources,async()=>(await this.listResources()).resources)}get experimental(){return this._experimental||(this._experimental={tasks:new f6(this)}),this._experimental}registerCapabilities(t){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=Sie(this._capabilities,t)}setRequestHandler(t,r){let o=MP(t)?.method;if(!o)throw new Error("Schema is missing a method literal");let i;if(V0(o)){let s=o;i=s._zod?.def?.value??s.value}else{let s=o;i=s._def?.value??s.value}if(typeof i!="string")throw new Error("Schema method literal must be a string");let a=i;if(a==="elicitation/create"){let s=async(c,p)=>{let d=xu(uT,c);if(!d.success){let I=d.error instanceof Error?d.error.message:String(d.error);throw new rr(Tr.InvalidParams,`Invalid elicitation request: ${I}`)}let{params:f}=d.data;f.mode=f.mode??"form";let{supportsFormMode:m,supportsUrlMode:y}=K9e(this._capabilities.elicitation);if(f.mode==="form"&&!m)throw new rr(Tr.InvalidParams,"Client does not support form-mode elicitation requests");if(f.mode==="url"&&!y)throw new rr(Tr.InvalidParams,"Client does not support URL-mode elicitation requests");let g=await Promise.resolve(r(c,p));if(f.task){let I=xu(Hy,g);if(!I.success){let T=I.error instanceof Error?I.error.message:String(I.error);throw new rr(Tr.InvalidParams,`Invalid task creation result: ${T}`)}return I.data}let S=xu(mj,g);if(!S.success){let I=S.error instanceof Error?S.error.message:String(S.error);throw new rr(Tr.InvalidParams,`Invalid elicitation result: ${I}`)}let b=S.data,E=f.mode==="form"?f.requestedSchema:void 0;if(f.mode==="form"&&b.action==="accept"&&b.content&&E&&this._capabilities.elicitation?.form?.applyDefaults)try{m6(E,b.content)}catch{}return b};return super.setRequestHandler(t,s)}if(a==="sampling/createMessage"){let s=async(c,p)=>{let d=xu(dj,c);if(!d.success){let b=d.error instanceof Error?d.error.message:String(d.error);throw new rr(Tr.InvalidParams,`Invalid sampling request: ${b}`)}let{params:f}=d.data,m=await Promise.resolve(r(c,p));if(f.task){let b=xu(Hy,m);if(!b.success){let E=b.error instanceof Error?b.error.message:String(b.error);throw new rr(Tr.InvalidParams,`Invalid task creation result: ${E}`)}return b.data}let g=f.tools||f.toolChoice?fj:_j,S=xu(g,m);if(!S.success){let b=S.error instanceof Error?S.error.message:String(S.error);throw new rr(Tr.InvalidParams,`Invalid sampling result: ${b}`)}return S.data};return super.setRequestHandler(t,s)}return super.setRequestHandler(t,r)}assertCapability(t,r){if(!this._serverCapabilities?.[t])throw new Error(`Server does not support ${t} (required for ${r})`)}async connect(t,r){if(await super.connect(t),t.sessionId===void 0)try{let n=await this.request({method:"initialize",params:{protocolVersion:H0,capabilities:this._capabilities,clientInfo:this._clientInfo}},W7,r);if(n===void 0)throw new Error(`Server sent invalid initialize result: ${n}`);if(!Yoe.includes(n.protocolVersion))throw new Error(`Server's protocol version is not supported: ${n.protocolVersion}`);this._serverCapabilities=n.capabilities,this._serverVersion=n.serverInfo,t.setProtocolVersion&&t.setProtocolVersion(n.protocolVersion),this._instructions=n.instructions,await this.notification({method:"notifications/initialized"}),this._pendingListChangedConfig&&(this._setupListChangedHandlers(this._pendingListChangedConfig),this._pendingListChangedConfig=void 0)}catch(n){throw this.close(),n}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(t){switch(t){case"logging/setLevel":if(!this._serverCapabilities?.logging)throw new Error(`Server does not support logging (required for ${t})`);break;case"prompts/get":case"prompts/list":if(!this._serverCapabilities?.prompts)throw new Error(`Server does not support prompts (required for ${t})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!this._serverCapabilities?.resources)throw new Error(`Server does not support resources (required for ${t})`);if(t==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${t})`);break;case"tools/call":case"tools/list":if(!this._serverCapabilities?.tools)throw new Error(`Server does not support tools (required for ${t})`);break;case"completion/complete":if(!this._serverCapabilities?.completions)throw new Error(`Server does not support completions (required for ${t})`);break;case"initialize":break;case"ping":break}}assertNotificationCapability(t){switch(t){case"notifications/roots/list_changed":if(!this._capabilities.roots?.listChanged)throw new Error(`Client does not support roots list changed notifications (required for ${t})`);break;case"notifications/initialized":break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(t){if(this._capabilities)switch(t){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${t})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw new Error(`Client does not support elicitation capability (required for ${t})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${t})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Client does not support tasks capability (required for ${t})`);break;case"ping":break}}assertTaskCapability(t){jie(this._serverCapabilities?.tasks?.requests,t,"Server")}assertTaskHandlerCapability(t){this._capabilities&&Bie(this._capabilities.tasks?.requests,t,"Client")}async ping(t){return this.request({method:"ping"},Gy,t)}async complete(t,r){return this.request({method:"completion/complete",params:t},hj,r)}async setLoggingLevel(t,r){return this.request({method:"logging/setLevel",params:{level:t}},Gy,r)}async getPrompt(t,r){return this.request({method:"prompts/get",params:t},cj,r)}async listPrompts(t,r){return this.request({method:"prompts/list",params:t},nj,r)}async listResources(t,r){return this.request({method:"resources/list",params:t},X7,r)}async listResourceTemplates(t,r){return this.request({method:"resources/templates/list",params:t},Y7,r)}async readResource(t,r){return this.request({method:"resources/read",params:t},tj,r)}async subscribeResource(t,r){return this.request({method:"resources/subscribe",params:t},Gy,r)}async unsubscribeResource(t,r){return this.request({method:"resources/unsubscribe",params:t},Gy,r)}async callTool(t,r=W0,n){if(this.isToolTaskRequired(t.name))throw new rr(Tr.InvalidRequest,`Tool "${t.name}" requires task-based execution. Use client.experimental.tasks.callToolStream() instead.`);let o=await this.request({method:"tools/call",params:t},r,n),i=this.getToolOutputValidator(t.name);if(i){if(!o.structuredContent&&!o.isError)throw new rr(Tr.InvalidRequest,`Tool ${t.name} has an output schema but did not return structured content`);if(o.structuredContent)try{let a=i(o.structuredContent);if(!a.valid)throw new rr(Tr.InvalidParams,`Structured content does not match the tool's output schema: ${a.errorMessage}`)}catch(a){throw a instanceof rr?a:new rr(Tr.InvalidParams,`Failed to validate structured content: ${a instanceof Error?a.message:String(a)}`)}}return o}isToolTask(t){return this._serverCapabilities?.tasks?.requests?.tools?.call?this._cachedKnownTaskTools.has(t):!1}isToolTaskRequired(t){return this._cachedRequiredTaskTools.has(t)}cacheToolMetadata(t){this._cachedToolOutputValidators.clear(),this._cachedKnownTaskTools.clear(),this._cachedRequiredTaskTools.clear();for(let r of t){if(r.outputSchema){let o=this._jsonSchemaValidator.getValidator(r.outputSchema);this._cachedToolOutputValidators.set(r.name,o)}let n=r.execution?.taskSupport;(n==="required"||n==="optional")&&this._cachedKnownTaskTools.add(r.name),n==="required"&&this._cachedRequiredTaskTools.add(r.name)}}getToolOutputValidator(t){return this._cachedToolOutputValidators.get(t)}async listTools(t,r){let n=await this.request({method:"tools/list",params:t},uj,r);return this.cacheToolMetadata(n.tools),n}_setupListChangedHandler(t,r,n,o){let i=hie.safeParse(n);if(!i.success)throw new Error(`Invalid ${t} listChanged options: ${i.error.message}`);if(typeof n.onChanged!="function")throw new Error(`Invalid ${t} listChanged options: onChanged must be a function`);let{autoRefresh:a,debounceMs:s}=i.data,{onChanged:c}=n,p=async()=>{if(!a){c(null,null);return}try{let f=await o();c(null,f)}catch(f){let m=f instanceof Error?f:new Error(String(f));c(m,null)}},d=()=>{if(s){let f=this._listChangedDebounceTimers.get(t);f&&clearTimeout(f);let m=setTimeout(p,s);this._listChangedDebounceTimers.set(t,m)}else p()};this.setNotificationHandler(r,d)}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}};var y6=class extends Error{constructor(t,r){super(t),this.name="ParseError",this.type=r.type,this.field=r.field,this.value=r.value,this.line=r.line}};function kj(e){}function g6(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:t=kj,onError:r=kj,onRetry:n=kj,onComment:o}=e,i="",a=!0,s,c="",p="";function d(S){let b=a?S.replace(/^\xEF\xBB\xBF/,""):S,[E,I]=G9e(`${i}${b}`);for(let T of E)f(T);i=I,a=!1}function f(S){if(S===""){y();return}if(S.startsWith(":")){o&&o(S.slice(S.startsWith(": ")?2:1));return}let b=S.indexOf(":");if(b!==-1){let E=S.slice(0,b),I=S[b+1]===" "?2:1,T=S.slice(b+I);m(E,T,S);return}m(S,"",S)}function m(S,b,E){switch(S){case"event":p=b;break;case"data":c=`${c}${b} +`;break;case"id":s=b.includes("\0")?void 0:b;break;case"retry":/^\d+$/.test(b)?n(parseInt(b,10)):r(new y6(`Invalid \`retry\` value: "${b}"`,{type:"invalid-retry",value:b,line:E}));break;default:r(new y6(`Unknown field "${S.length>20?`${S.slice(0,20)}\u2026`:S}"`,{type:"unknown-field",field:S,value:b,line:E}));break}}function y(){c.length>0&&t({id:s,event:p||void 0,data:c.endsWith(` +`)?c.slice(0,-1):c}),s=void 0,c="",p=""}function g(S={}){i&&S.consume&&f(i),a=!0,s=void 0,c="",p="",i=""}return{feed:d,reset:g}}function G9e(e){let t=[],r="",n=0;for(;n{throw TypeError(e)},Lj=(e,t,r)=>t.has(e)||qie("Cannot "+r),_n=(e,t,r)=>(Lj(e,t,"read from private field"),r?r.call(e):t.get(e)),Qi=(e,t,r)=>t.has(e)?qie("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ri=(e,t,r,n)=>(Lj(e,t,"write to private field"),t.set(e,r),r),__=(e,t,r)=>(Lj(e,t,"access private method"),r),Ws,Jy,X0,y6,S6,_T,tv,fT,sm,Y0,rv,ev,pT,Eu,kj,Cj,Pj,Bie,Oj,Nj,dT,Fj,Rj,Ky=class extends EventTarget{constructor(t,r){var n,o;super(),Qi(this,Eu),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,Qi(this,Ws),Qi(this,Jy),Qi(this,X0),Qi(this,y6),Qi(this,S6),Qi(this,_T),Qi(this,tv),Qi(this,fT,null),Qi(this,sm),Qi(this,Y0),Qi(this,rv,null),Qi(this,ev,null),Qi(this,pT,null),Qi(this,Cj,async i=>{var a;_n(this,Y0).reset();let{body:s,redirected:c,status:p,headers:d}=i;if(p===204){__(this,Eu,dT).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(c?ri(this,X0,new URL(i.url)):ri(this,X0,void 0),p!==200){__(this,Eu,dT).call(this,`Non-200 status code (${p})`,p);return}if(!(d.get("content-type")||"").startsWith("text/event-stream")){__(this,Eu,dT).call(this,'Invalid content type, expected "text/event-stream"',p);return}if(_n(this,Ws)===this.CLOSED)return;ri(this,Ws,this.OPEN);let f=new Event("open");if((a=_n(this,pT))==null||a.call(this,f),this.dispatchEvent(f),typeof s!="object"||!s||!("getReader"in s)){__(this,Eu,dT).call(this,"Invalid response body, expected a web ReadableStream",p),this.close();return}let m=new TextDecoder,y=s.getReader(),g=!0;do{let{done:S,value:x}=await y.read();x&&_n(this,Y0).feed(m.decode(x,{stream:!S})),S&&(g=!1,_n(this,Y0).reset(),__(this,Eu,Fj).call(this))}while(g)}),Qi(this,Pj,i=>{ri(this,sm,void 0),!(i.name==="AbortError"||i.type==="aborted")&&__(this,Eu,Fj).call(this,Ij(i))}),Qi(this,Oj,i=>{typeof i.id=="string"&&ri(this,fT,i.id);let a=new MessageEvent(i.event||"message",{data:i.data,origin:_n(this,X0)?_n(this,X0).origin:_n(this,Jy).origin,lastEventId:i.id||""});_n(this,ev)&&(!i.event||i.event==="message")&&_n(this,ev).call(this,a),this.dispatchEvent(a)}),Qi(this,Nj,i=>{ri(this,_T,i)}),Qi(this,Rj,()=>{ri(this,tv,void 0),_n(this,Ws)===this.CONNECTING&&__(this,Eu,kj).call(this)});try{if(t instanceof URL)ri(this,Jy,t);else if(typeof t=="string")ri(this,Jy,new URL(t,G9e()));else throw new Error("Invalid URL")}catch{throw K9e("An invalid or illegal string was specified")}ri(this,Y0,h6({onEvent:_n(this,Oj),onRetry:_n(this,Nj)})),ri(this,Ws,this.CONNECTING),ri(this,_T,3e3),ri(this,S6,(n=r?.fetch)!=null?n:globalThis.fetch),ri(this,y6,(o=r?.withCredentials)!=null?o:!1),__(this,Eu,kj).call(this)}get readyState(){return _n(this,Ws)}get url(){return _n(this,Jy).href}get withCredentials(){return _n(this,y6)}get onerror(){return _n(this,rv)}set onerror(t){ri(this,rv,t)}get onmessage(){return _n(this,ev)}set onmessage(t){ri(this,ev,t)}get onopen(){return _n(this,pT)}set onopen(t){ri(this,pT,t)}addEventListener(t,r,n){let o=r;super.addEventListener(t,o,n)}removeEventListener(t,r,n){let o=r;super.removeEventListener(t,o,n)}close(){_n(this,tv)&&clearTimeout(_n(this,tv)),_n(this,Ws)!==this.CLOSED&&(_n(this,sm)&&_n(this,sm).abort(),ri(this,Ws,this.CLOSED),ri(this,sm,void 0))}};Ws=new WeakMap,Jy=new WeakMap,X0=new WeakMap,y6=new WeakMap,S6=new WeakMap,_T=new WeakMap,tv=new WeakMap,fT=new WeakMap,sm=new WeakMap,Y0=new WeakMap,rv=new WeakMap,ev=new WeakMap,pT=new WeakMap,Eu=new WeakSet,kj=function(){ri(this,Ws,this.CONNECTING),ri(this,sm,new AbortController),_n(this,S6)(_n(this,Jy),__(this,Eu,Bie).call(this)).then(_n(this,Cj)).catch(_n(this,Pj))},Cj=new WeakMap,Pj=new WeakMap,Bie=function(){var e;let t={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",..._n(this,fT)?{"Last-Event-ID":_n(this,fT)}:void 0},cache:"no-store",signal:(e=_n(this,sm))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},Oj=new WeakMap,Nj=new WeakMap,dT=function(e,t){var r;_n(this,Ws)!==this.CLOSED&&ri(this,Ws,this.CLOSED);let n=new g6("error",{code:t,message:e});(r=_n(this,rv))==null||r.call(this,n),this.dispatchEvent(n)},Fj=function(e,t){var r;if(_n(this,Ws)===this.CLOSED)return;ri(this,Ws,this.CONNECTING);let n=new g6("error",{code:t,message:e});(r=_n(this,rv))==null||r.call(this,n),this.dispatchEvent(n),ri(this,tv,setTimeout(_n(this,Rj),_n(this,_T)))},Rj=new WeakMap,Ky.CONNECTING=0,Ky.OPEN=1,Ky.CLOSED=2;function G9e(){let e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}function nv(e){return e?e instanceof Headers?Object.fromEntries(e.entries()):Array.isArray(e)?Object.fromEntries(e):{...e}:{}}function v6(e=fetch,t){return t?async(r,n)=>{let o={...t,...n,headers:n?.headers?{...nv(t.headers),...nv(n.headers)}:t.headers};return e(r,o)}:e}var $j;$j=globalThis.crypto?.webcrypto??globalThis.crypto??import("node:crypto").then(e=>e.webcrypto);async function H9e(e){return(await $j).getRandomValues(new Uint8Array(e))}async function Z9e(e){let t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",r=Math.pow(2,8)-Math.pow(2,8)%t.length,n="";for(;n.length128)throw`Expected a length between 43 and 128. Received ${e}.`;let t=await W9e(e),r=await Q9e(t);return{code_verifier:t,code_challenge:r}}var ka=v7().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:Zoe.custom,message:"URL must be parseable",fatal:!0}),HC}).refine(e=>{let t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),zie=Ui({resource:Y().url(),authorization_servers:ot(ka).optional(),jwks_uri:Y().url().optional(),scopes_supported:ot(Y()).optional(),bearer_methods_supported:ot(Y()).optional(),resource_signing_alg_values_supported:ot(Y()).optional(),resource_name:Y().optional(),resource_documentation:Y().optional(),resource_policy_uri:Y().url().optional(),resource_tos_uri:Y().url().optional(),tls_client_certificate_bound_access_tokens:uo().optional(),authorization_details_types_supported:ot(Y()).optional(),dpop_signing_alg_values_supported:ot(Y()).optional(),dpop_bound_access_tokens_required:uo().optional()}),jj=Ui({issuer:Y(),authorization_endpoint:ka,token_endpoint:ka,registration_endpoint:ka.optional(),scopes_supported:ot(Y()).optional(),response_types_supported:ot(Y()),response_modes_supported:ot(Y()).optional(),grant_types_supported:ot(Y()).optional(),token_endpoint_auth_methods_supported:ot(Y()).optional(),token_endpoint_auth_signing_alg_values_supported:ot(Y()).optional(),service_documentation:ka.optional(),revocation_endpoint:ka.optional(),revocation_endpoint_auth_methods_supported:ot(Y()).optional(),revocation_endpoint_auth_signing_alg_values_supported:ot(Y()).optional(),introspection_endpoint:Y().optional(),introspection_endpoint_auth_methods_supported:ot(Y()).optional(),introspection_endpoint_auth_signing_alg_values_supported:ot(Y()).optional(),code_challenge_methods_supported:ot(Y()).optional(),client_id_metadata_document_supported:uo().optional()}),X9e=Ui({issuer:Y(),authorization_endpoint:ka,token_endpoint:ka,userinfo_endpoint:ka.optional(),jwks_uri:ka,registration_endpoint:ka.optional(),scopes_supported:ot(Y()).optional(),response_types_supported:ot(Y()),response_modes_supported:ot(Y()).optional(),grant_types_supported:ot(Y()).optional(),acr_values_supported:ot(Y()).optional(),subject_types_supported:ot(Y()),id_token_signing_alg_values_supported:ot(Y()),id_token_encryption_alg_values_supported:ot(Y()).optional(),id_token_encryption_enc_values_supported:ot(Y()).optional(),userinfo_signing_alg_values_supported:ot(Y()).optional(),userinfo_encryption_alg_values_supported:ot(Y()).optional(),userinfo_encryption_enc_values_supported:ot(Y()).optional(),request_object_signing_alg_values_supported:ot(Y()).optional(),request_object_encryption_alg_values_supported:ot(Y()).optional(),request_object_encryption_enc_values_supported:ot(Y()).optional(),token_endpoint_auth_methods_supported:ot(Y()).optional(),token_endpoint_auth_signing_alg_values_supported:ot(Y()).optional(),display_values_supported:ot(Y()).optional(),claim_types_supported:ot(Y()).optional(),claims_supported:ot(Y()).optional(),service_documentation:Y().optional(),claims_locales_supported:ot(Y()).optional(),ui_locales_supported:ot(Y()).optional(),claims_parameter_supported:uo().optional(),request_parameter_supported:uo().optional(),request_uri_parameter_supported:uo().optional(),require_request_uri_registration:uo().optional(),op_policy_uri:ka.optional(),op_tos_uri:ka.optional(),client_id_metadata_document_supported:uo().optional()}),Vie=dt({...X9e.shape,...jj.pick({code_challenge_methods_supported:!0}).shape}),Jie=dt({access_token:Y(),id_token:Y().optional(),token_type:Y(),expires_in:ZP.number().optional(),scope:Y().optional(),refresh_token:Y().optional()}).strip(),Kie=dt({error:Y(),error_description:Y().optional(),error_uri:Y().optional()}),Uie=ka.optional().or($t("").transform(()=>{})),Y9e=dt({redirect_uris:ot(ka),token_endpoint_auth_method:Y().optional(),grant_types:ot(Y()).optional(),response_types:ot(Y()).optional(),client_name:Y().optional(),client_uri:ka.optional(),logo_uri:Uie,scope:Y().optional(),contacts:ot(Y()).optional(),tos_uri:Uie,policy_uri:Y().optional(),jwks_uri:ka.optional(),jwks:$7().optional(),software_id:Y().optional(),software_version:Y().optional(),software_statement:Y().optional()}).strip(),e5e=dt({client_id:Y(),client_secret:Y().optional(),client_id_issued_at:$n().optional(),client_secret_expires_at:$n().optional()}).strip(),Gie=Y9e.merge(e5e),d8t=dt({error:Y(),error_description:Y().optional()}).strip(),_8t=dt({token:Y(),token_type_hint:Y().optional()}).strip();function Hie(e){let t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function Zie({requestedResource:e,configuredResource:t}){let r=typeof e=="string"?new URL(e):new URL(e.href),n=typeof t=="string"?new URL(t):new URL(t.href);if(r.origin!==n.origin||r.pathname.length=400&&e.status<500&&t!=="/"}async function p5e(e,t,r,n){let o=new URL(e),i=n?.protocolVersion??J0,a;if(n?.metadataUrl)a=new URL(n.metadataUrl);else{let c=l5e(t,o.pathname);a=new URL(c,n?.metadataServerUrl??o),a.search=o.search}let s=await Qie(a,i,r);if(!n?.metadataUrl&&u5e(s,o.pathname)){let c=new URL(`/.well-known/${t}`,o);s=await Qie(c,i,r)}return s}function d5e(e){let t=typeof e=="string"?new URL(e):e,r=t.pathname!=="/",n=[];if(!r)return n.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),n.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),n;let o=t.pathname;return o.endsWith("/")&&(o=o.slice(0,-1)),n.push({url:new URL(`/.well-known/oauth-authorization-server${o}`,t.origin),type:"oauth"}),n.push({url:new URL(`/.well-known/openid-configuration${o}`,t.origin),type:"oidc"}),n.push({url:new URL(`${o}/.well-known/openid-configuration`,t.origin),type:"oidc"}),n}async function eae(e,{fetchFn:t=fetch,protocolVersion:r=J0}={}){let n={"MCP-Protocol-Version":r,Accept:"application/json"},o=d5e(e);for(let{url:i,type:a}of o){let s=await Vj(i,n,t);if(s){if(!s.ok){if(await s.body?.cancel(),s.status>=400&&s.status<500)continue;throw new Error(`HTTP ${s.status} trying to load ${a==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}return a==="oauth"?jj.parse(await s.json()):Vie.parse(await s.json())}}}async function _5e(e,t){let r,n;try{r=await Yie(e,{resourceMetadataUrl:t?.resourceMetadataUrl},t?.fetchFn),r.authorization_servers&&r.authorization_servers.length>0&&(n=r.authorization_servers[0])}catch{}n||(n=String(new URL("/",e)));let o=await eae(n,{fetchFn:t?.fetchFn});return{authorizationServerUrl:n,authorizationServerMetadata:o,resourceMetadata:r}}async function f5e(e,{metadata:t,clientInformation:r,redirectUrl:n,scope:o,state:i,resource:a}){let s;if(t){if(s=new URL(t.authorization_endpoint),!t.response_types_supported.includes(Bj))throw new Error(`Incompatible auth server: does not support response type ${Bj}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(qj))throw new Error(`Incompatible auth server: does not support code challenge method ${qj}`)}else s=new URL("/authorize",e);let c=await Mj(),p=c.code_verifier,d=c.code_challenge;return s.searchParams.set("response_type",Bj),s.searchParams.set("client_id",r.client_id),s.searchParams.set("code_challenge",d),s.searchParams.set("code_challenge_method",qj),s.searchParams.set("redirect_uri",String(n)),i&&s.searchParams.set("state",i),o&&s.searchParams.set("scope",o),o?.includes("offline_access")&&s.searchParams.append("prompt","consent"),a&&s.searchParams.set("resource",a.href),{authorizationUrl:s,codeVerifier:p}}function m5e(e,t,r){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(r)})}async function tae(e,{metadata:t,tokenRequestParams:r,clientInformation:n,addClientAuthentication:o,resource:i,fetchFn:a}){let s=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e),c=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(i&&r.set("resource",i.href),o)await o(c,r,s,t);else if(n){let d=t?.token_endpoint_auth_methods_supported??[],f=r5e(n,d);n5e(f,n,c,r)}let p=await(a??fetch)(s,{method:"POST",headers:c,body:r});if(!p.ok)throw await Xie(p);return Jie.parse(await p.json())}async function h5e(e,{metadata:t,clientInformation:r,refreshToken:n,resource:o,addClientAuthentication:i,fetchFn:a}){let s=new URLSearchParams({grant_type:"refresh_token",refresh_token:n}),c=await tae(e,{metadata:t,tokenRequestParams:s,clientInformation:r,addClientAuthentication:i,resource:o,fetchFn:a});return{refresh_token:n,...c}}async function y5e(e,t,{metadata:r,resource:n,authorizationCode:o,fetchFn:i}={}){let a=e.clientMetadata.scope,s;if(e.prepareTokenRequest&&(s=await e.prepareTokenRequest(a)),!s){if(!o)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");let p=await e.codeVerifier();s=m5e(o,p,e.redirectUrl)}let c=await e.clientInformation();return tae(t,{metadata:r,tokenRequestParams:s,clientInformation:c??void 0,addClientAuthentication:e.addClientAuthentication,resource:n,fetchFn:i})}async function g5e(e,{metadata:t,clientMetadata:r,fetchFn:n}){let o;if(t){if(!t.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");o=new URL(t.registration_endpoint)}else o=new URL("/register",e);let i=await(n??fetch)(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!i.ok)throw await Xie(i);return Gie.parse(await i.json())}var Jj=class extends Error{constructor(t,r,n){super(`SSE error: ${r}`),this.code=t,this.event=n}},b6=class{constructor(t,r){this._url=t,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=r?.eventSourceInit,this._requestInit=r?.requestInit,this._authProvider=r?.authProvider,this._fetch=r?.fetch,this._fetchWithInit=v6(r?.fetch,r?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new As("No auth provider");let t;try{t=await Dl(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(r){throw this.onerror?.(r),r}if(t!=="AUTHORIZED")throw new As;return await this._startOrAuth()}async _commonHeaders(){let t={};if(this._authProvider){let n=await this._authProvider.tokens();n&&(t.Authorization=`Bearer ${n.access_token}`)}this._protocolVersion&&(t["mcp-protocol-version"]=this._protocolVersion);let r=nv(this._requestInit?.headers);return new Headers({...t,...r})}_startOrAuth(){let t=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((r,n)=>{this._eventSource=new Ky(this._url.href,{...this._eventSourceInit,fetch:async(o,i)=>{let a=await this._commonHeaders();a.set("Accept","text/event-stream");let s=await t(o,{...i,headers:a});if(s.status===401&&s.headers.has("www-authenticate")){let{resourceMetadataUrl:c,scope:p}=ov(s);this._resourceMetadataUrl=c,this._scope=p}return s}}),this._abortController=new AbortController,this._eventSource.onerror=o=>{if(o.code===401&&this._authProvider){this._authThenStart().then(r,n);return}let i=new Jj(o.code,o.message,o);n(i),this.onerror?.(i)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",o=>{let i=o;try{if(this._endpoint=new URL(i.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(a){n(a),this.onerror?.(a),this.close();return}r()}),this._eventSource.onmessage=o=>{let i=o,a;try{a=om.parse(JSON.parse(i.data))}catch(s){this.onerror?.(s);return}this.onmessage?.(a)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(t){if(!this._authProvider)throw new As("No auth provider");if(await Dl(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new As("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(t){if(!this._endpoint)throw new Error("Not connected");try{let r=await this._commonHeaders();r.set("content-type","application/json");let n={...this._requestInit,method:"POST",headers:r,body:JSON.stringify(t),signal:this._abortController?.signal},o=await(this._fetch??fetch)(this._endpoint,n);if(!o.ok){let i=await o.text().catch(()=>null);if(o.status===401&&this._authProvider){let{resourceMetadataUrl:a,scope:s}=ov(o);if(this._resourceMetadataUrl=a,this._scope=s,await Dl(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new As;return this.send(t)}throw new Error(`Error POSTing to endpoint (HTTP ${o.status}): ${i}`)}await o.body?.cancel()}catch(r){throw this.onerror?.(r),r}}setProtocolVersion(t){this._protocolVersion=t}};var Jae=e0(zae(),1);import D6 from"node:process";import{PassThrough as K5e}from"node:stream";var E6=class{append(t){this._buffer=this._buffer?Buffer.concat([this._buffer,t]):t}readMessage(){if(!this._buffer)return null;let t=this._buffer.indexOf(` -`);if(t===-1)return null;let r=this._buffer.toString("utf8",0,t).replace(/\r$/,"");return this._buffer=this._buffer.subarray(t+1),J5e(r)}clear(){this._buffer=void 0}};function J5e(e){return om.parse(JSON.parse(e))}function Vae(e){return JSON.stringify(e)+` -`}var G5e=D6.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"];function H5e(){let e={};for(let t of G5e){let r=D6.env[t];r!==void 0&&(r.startsWith("()")||(e[t]=r))}return e}var T6=class{constructor(t){this._readBuffer=new E6,this._stderrStream=null,this._serverParams=t,(t.stderr==="pipe"||t.stderr==="overlapped")&&(this._stderrStream=new K5e)}async start(){if(this._process)throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((t,r)=>{this._process=(0,Jae.default)(this._serverParams.command,this._serverParams.args??[],{env:{...H5e(),...this._serverParams.env},stdio:["pipe","pipe",this._serverParams.stderr??"inherit"],shell:!1,windowsHide:D6.platform==="win32"&&Z5e(),cwd:this._serverParams.cwd}),this._process.on("error",n=>{r(n),this.onerror?.(n)}),this._process.on("spawn",()=>{t()}),this._process.on("close",n=>{this._process=void 0,this.onclose?.()}),this._process.stdin?.on("error",n=>{this.onerror?.(n)}),this._process.stdout?.on("data",n=>{this._readBuffer.append(n),this.processReadBuffer()}),this._process.stdout?.on("error",n=>{this.onerror?.(n)}),this._stderrStream&&this._process.stderr&&this._process.stderr.pipe(this._stderrStream)})}get stderr(){return this._stderrStream?this._stderrStream:this._process?.stderr??null}get pid(){return this._process?.pid??null}processReadBuffer(){for(;;)try{let t=this._readBuffer.readMessage();if(t===null)break;this.onmessage?.(t)}catch(t){this.onerror?.(t)}}async close(){if(this._process){let t=this._process;this._process=void 0;let r=new Promise(n=>{t.once("close",()=>{n()})});try{t.stdin?.end()}catch{}if(await Promise.race([r,new Promise(n=>setTimeout(n,2e3).unref())]),t.exitCode===null){try{t.kill("SIGTERM")}catch{}await Promise.race([r,new Promise(n=>setTimeout(n,2e3).unref())])}if(t.exitCode===null)try{t.kill("SIGKILL")}catch{}}this._readBuffer.clear()}send(t){return new Promise(r=>{if(!this._process?.stdin)throw new Error("Not connected");let n=Vae(t);this._process.stdin.write(n)?r():this._process.stdin.once("drain",r)})}};function Z5e(){return"type"in D6}var A6=class extends TransformStream{constructor({onError:t,onRetry:r,onComment:n}={}){let o;super({start(i){o=h6({onEvent:a=>{i.enqueue(a)},onError(a){t==="terminate"?i.error(a):typeof t=="function"&&t(a)},onRetry:r,onComment:n})},transform(i){o.feed(i)}})}};var W5e={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2},cm=class extends Error{constructor(t,r){super(`Streamable HTTP error: ${r}`),this.code=t}},w6=class{constructor(t,r){this._hasCompletedAuthFlow=!1,this._url=t,this._resourceMetadataUrl=void 0,this._scope=void 0,this._requestInit=r?.requestInit,this._authProvider=r?.authProvider,this._fetch=r?.fetch,this._fetchWithInit=v6(r?.fetch,r?.requestInit),this._sessionId=r?.sessionId,this._reconnectionOptions=r?.reconnectionOptions??W5e}async _authThenStart(){if(!this._authProvider)throw new As("No auth provider");let t;try{t=await Dl(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(r){throw this.onerror?.(r),r}if(t!=="AUTHORIZED")throw new As;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){let t={};if(this._authProvider){let n=await this._authProvider.tokens();n&&(t.Authorization=`Bearer ${n.access_token}`)}this._sessionId&&(t["mcp-session-id"]=this._sessionId),this._protocolVersion&&(t["mcp-protocol-version"]=this._protocolVersion);let r=nv(this._requestInit?.headers);return new Headers({...t,...r})}async _startOrAuthSse(t){let{resumptionToken:r}=t;try{let n=await this._commonHeaders();n.set("Accept","text/event-stream"),r&&n.set("last-event-id",r);let o=await(this._fetch??fetch)(this._url,{method:"GET",headers:n,signal:this._abortController?.signal});if(!o.ok){if(await o.body?.cancel(),o.status===401&&this._authProvider)return await this._authThenStart();if(o.status===405)return;throw new cm(o.status,`Failed to open SSE stream: ${o.statusText}`)}this._handleSseStream(o.body,t,!0)}catch(n){throw this.onerror?.(n),n}}_getNextReconnectionDelay(t){if(this._serverRetryMs!==void 0)return this._serverRetryMs;let r=this._reconnectionOptions.initialReconnectionDelay,n=this._reconnectionOptions.reconnectionDelayGrowFactor,o=this._reconnectionOptions.maxReconnectionDelay;return Math.min(r*Math.pow(n,t),o)}_scheduleReconnection(t,r=0){let n=this._reconnectionOptions.maxRetries;if(r>=n){this.onerror?.(new Error(`Maximum reconnection attempts (${n}) exceeded.`));return}let o=this._getNextReconnectionDelay(r);this._reconnectionTimeout=setTimeout(()=>{this._startOrAuthSse(t).catch(i=>{this.onerror?.(new Error(`Failed to reconnect SSE stream: ${i instanceof Error?i.message:String(i)}`)),this._scheduleReconnection(t,r+1)})},o)}_handleSseStream(t,r,n){if(!t)return;let{onresumptiontoken:o,replayMessageId:i}=r,a,s=!1,c=!1;(async()=>{try{let d=t.pipeThrough(new TextDecoderStream).pipeThrough(new A6({onRetry:y=>{this._serverRetryMs=y}})).getReader();for(;;){let{value:y,done:g}=await d.read();if(g)break;if(y.id&&(a=y.id,s=!0,o?.(y.id)),!!y.data&&(!y.event||y.event==="message"))try{let S=om.parse(JSON.parse(y.data));Uy(S)&&(c=!0,i!==void 0&&(S.id=i)),this.onmessage?.(S)}catch(S){this.onerror?.(S)}}(n||s)&&!c&&this._abortController&&!this._abortController.signal.aborted&&this._scheduleReconnection({resumptionToken:a,onresumptiontoken:o,replayMessageId:i},0)}catch(d){if(this.onerror?.(new Error(`SSE stream disconnected: ${d}`)),(n||s)&&!c&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:a,onresumptiontoken:o,replayMessageId:i},0)}catch(y){this.onerror?.(new Error(`Failed to reconnect: ${y instanceof Error?y.message:String(y)}`))}}})()}async start(){if(this._abortController)throw new Error("StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.");this._abortController=new AbortController}async finishAuth(t){if(!this._authProvider)throw new As("No auth provider");if(await Dl(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new As("Failed to authorize")}async close(){this._reconnectionTimeout&&(clearTimeout(this._reconnectionTimeout),this._reconnectionTimeout=void 0),this._abortController?.abort(),this.onclose?.()}async send(t,r){try{let{resumptionToken:n,onresumptiontoken:o}=r||{};if(n){this._startOrAuthSse({resumptionToken:n,replayMessageId:tT(t)?t.id:void 0}).catch(m=>this.onerror?.(m));return}let i=await this._commonHeaders();i.set("content-type","application/json"),i.set("accept","application/json, text/event-stream");let a={...this._requestInit,method:"POST",headers:i,body:JSON.stringify(t),signal:this._abortController?.signal},s=await(this._fetch??fetch)(this._url,a),c=s.headers.get("mcp-session-id");if(c&&(this._sessionId=c),!s.ok){let m=await s.text().catch(()=>null);if(s.status===401&&this._authProvider){if(this._hasCompletedAuthFlow)throw new cm(401,"Server returned 401 after successful authentication");let{resourceMetadataUrl:y,scope:g}=ov(s);if(this._resourceMetadataUrl=y,this._scope=g,await Dl(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new As;return this._hasCompletedAuthFlow=!0,this.send(t)}if(s.status===403&&this._authProvider){let{resourceMetadataUrl:y,scope:g,error:S}=ov(s);if(S==="insufficient_scope"){let x=s.headers.get("WWW-Authenticate");if(this._lastUpscopingHeader===x)throw new cm(403,"Server returned 403 after trying upscoping");if(g&&(this._scope=g),y&&(this._resourceMetadataUrl=y),this._lastUpscopingHeader=x??void 0,await Dl(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetch})!=="AUTHORIZED")throw new As;return this.send(t)}}throw new cm(s.status,`Error POSTing to endpoint: ${m}`)}if(this._hasCompletedAuthFlow=!1,this._lastUpscopingHeader=void 0,s.status===202){await s.body?.cancel(),sie(t)&&this._startOrAuthSse({resumptionToken:void 0}).catch(m=>this.onerror?.(m));return}let d=(Array.isArray(t)?t:[t]).filter(m=>"method"in m&&"id"in m&&m.id!==void 0).length>0,f=s.headers.get("content-type");if(d)if(f?.includes("text/event-stream"))this._handleSseStream(s.body,{onresumptiontoken:o},!1);else if(f?.includes("application/json")){let m=await s.json(),y=Array.isArray(m)?m.map(g=>om.parse(g)):[om.parse(m)];for(let g of y)this.onmessage?.(g)}else throw await s.body?.cancel(),new cm(-1,`Unexpected content type: ${f}`);else await s.body?.cancel()}catch(n){throw this.onerror?.(n),n}}get sessionId(){return this._sessionId}async terminateSession(){if(this._sessionId)try{let t=await this._commonHeaders(),r={...this._requestInit,method:"DELETE",headers:t,signal:this._abortController?.signal},n=await(this._fetch??fetch)(this._url,r);if(await n.body?.cancel(),!n.ok&&n.status!==405)throw new cm(n.status,`Failed to terminate session: ${n.statusText}`);this._sessionId=void 0}catch(t){throw this.onerror?.(t),t}}setProtocolVersion(t){this._protocolVersion=t}get protocolVersion(){return this._protocolVersion}async resumeStream(t,r){await this._startOrAuthSse({resumptionToken:t,onresumptiontoken:r?.onresumptiontoken})}};import*as Kae from"effect/Data";import*as ns from"effect/Effect";var I6=class extends Kae.TaggedError("McpConnectionError"){},Qy=e=>e.transport==="stdio"||typeof e.command=="string"&&e.command.trim().length>0,k6=e=>new I6(e),Q5e=e=>ns.try({try:()=>{if(!e.endpoint)throw new Error("MCP endpoint is required for HTTP/SSE transports");let t=new URL(e.endpoint);for(let[r,n]of Object.entries(e.queryParams))t.searchParams.set(r,n);return t},catch:t=>k6({transport:e.transport,message:"Failed building MCP endpoint URL",cause:t})}),X5e=(e,t,r)=>{let n=new Headers(t?.headers??{});for(let[o,i]of Object.entries(r))n.set(o,i);return fetch(e,{...t,headers:n})},Y5e=e=>({client:e,close:()=>e.close()}),eLe=e=>ns.tryPromise({try:()=>e.close(),catch:t=>k6({transport:"auto",message:"Failed closing MCP client",cause:t})}).pipe(ns.ignore),tB=e=>ns.gen(function*(){let t=e.createClient(),r=e.createTransport();return yield*ns.tryPromise({try:()=>t.connect(r),catch:n=>k6({transport:e.transport,message:`Failed connecting to MCP server via ${e.transport}: ${n instanceof Error?n.message:String(n)}`,cause:n})}).pipe(ns.as(Y5e(t)),ns.onError(()=>eLe(t)))}),lm=e=>{let t=e.headers??{},r=Qy(e)?"stdio":e.transport??"auto",n=Object.keys(t).length>0?{headers:t}:void 0,o=()=>new f6({name:e.clientName??"executor-codemode-mcp",version:e.clientVersion??"0.1.0"},{capabilities:{elicitation:{form:{},url:{}}}});return ns.gen(function*(){if(r==="stdio"){let c=e.command?.trim();return c?yield*tB({createClient:o,transport:"stdio",createTransport:()=>new T6({command:c,args:e.args?[...e.args]:void 0,env:e.env,cwd:e.cwd?.trim().length?e.cwd.trim():void 0})}):yield*k6({transport:"stdio",message:"MCP stdio transport requires a command",cause:new Error("Missing MCP stdio command")})}let i=yield*Q5e({endpoint:e.endpoint,queryParams:e.queryParams??{},transport:r}),a=tB({createClient:o,transport:"streamable-http",createTransport:()=>new w6(i,{requestInit:n,authProvider:e.authProvider})});if(r==="streamable-http")return yield*a;let s=tB({createClient:o,transport:"sse",createTransport:()=>new b6(i,{authProvider:e.authProvider,requestInit:n,eventSourceInit:n?{fetch:(c,p)=>X5e(c,p,t)}:void 0})});return r==="sse"?yield*s:yield*a.pipe(ns.catchAll(()=>s))})};var Ca=1;import{Schema as po}from"effect";var Ap=po.String.pipe(po.brand("DocumentId")),wp=po.String.pipe(po.brand("ResourceId")),Tu=po.String.pipe(po.brand("ScopeId")),Oc=po.String.pipe(po.brand("CapabilityId")),Qs=po.String.pipe(po.brand("ExecutableId")),um=po.String.pipe(po.brand("ResponseSetId")),m_=po.String.pipe(po.brand("DiagnosticId")),fn=po.String.pipe(po.brand("ShapeSymbolId")),pm=po.String.pipe(po.brand("ParameterSymbolId")),Xy=po.String.pipe(po.brand("RequestBodySymbolId")),Nc=po.String.pipe(po.brand("ResponseSymbolId")),dm=po.String.pipe(po.brand("HeaderSymbolId")),Ip=po.String.pipe(po.brand("ExampleSymbolId")),_m=po.String.pipe(po.brand("SecuritySchemeSymbolId")),Gae=po.Union(fn,pm,Xy,Nc,dm,Ip,_m);import*as Zae from"effect/Effect";var Hae=5e3,Ci=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Du=e=>typeof e=="string"&&e.length>0?e:null,kp=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},Cp=e=>new URL(e).hostname,os=e=>{let t=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"");return t.length>0?t:"source"},Wae=e=>{let t=e.trim();if(t.length===0)throw new Error("Source URL is required");let r=new URL(t);if(r.protocol!=="http:"&&r.protocol!=="https:")throw new Error("Source URL must use http or https");return r.toString()},sv=(e,t)=>({...t,suggestedKind:e,supported:!1}),Au=(e,t)=>({...t,suggestedKind:e,supported:!0}),Yy=e=>({suggestedKind:"unknown",confidence:"low",supported:!1,reason:e,headerName:null,prefix:null,parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}),Pp=(e,t="high")=>Au("none",{confidence:t,reason:e,headerName:null,prefix:null,parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}),Qae=(e,t)=>{let r=e["www-authenticate"]??e["WWW-Authenticate"];if(!r)return Yy(t);let n=r.toLowerCase();return n.includes("bearer")?Au("bearer",{confidence:n.includes("realm=")?"medium":"low",reason:`Derived from HTTP challenge: ${r}`,headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}):n.includes("basic")?sv("basic",{confidence:"medium",reason:`Derived from HTTP challenge: ${r}`,headerName:"Authorization",prefix:"Basic ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}):Yy(t)},Xae=e=>e==null||e.kind==="none"?{}:e.kind==="headers"?{...e.headers}:e.kind==="basic"?{Authorization:`Basic ${Buffer.from(`${e.username}:${e.password}`).toString("base64")}`}:{[kp(e.headerName)??"Authorization"]:`${e.prefix??"Bearer "}${e.token}`},tLe=e=>{let t={};return e.headers.forEach((r,n)=>{t[n]=r}),t},cv=e=>Zae.tryPromise({try:async()=>{let t;try{t=await fetch(e.url,{method:e.method,headers:e.headers,body:e.body,signal:AbortSignal.timeout(Hae)})}catch(r){throw r instanceof Error&&(r.name==="AbortError"||r.name==="TimeoutError")?new Error(`Source discovery timed out after ${Hae}ms`):r}return{status:t.status,headers:tLe(t),text:await t.text()}},catch:t=>t instanceof Error?t:new Error(String(t))}),fm=e=>/graphql/i.test(new URL(e).pathname),Yae=e=>{try{return JSON.parse(e)}catch{return null}},ese=e=>{let t=e,r=Cp(t);return{detectedKind:"unknown",confidence:"low",endpoint:t,specUrl:null,name:r,namespace:os(r),transport:null,authInference:Yy("Could not infer source kind or auth requirements from the provided URL"),toolCount:null,warnings:["Could not confirm whether the URL is Google Discovery, OpenAPI, GraphQL, or MCP."]}};var IT=e=>e===null||typeof e!="object"?JSON.stringify(e):Array.isArray(e)?`[${e.map(r=>IT(r)).join(",")}]`:`{${Object.entries(e).sort(([r],[n])=>r.localeCompare(n)).map(([r,n])=>`${JSON.stringify(r)}:${IT(n)}`).join(",")}}`,mn=e=>Dc(IT(e)).slice(0,16),Vr=e=>e,Xs=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},rLe=(...e)=>{let t={};for(let r of e){let n=Xs(Xs(r).$defs);for(let[o,i]of Object.entries(n))t[o]=i}return Object.keys(t).length>0?t:void 0},lv=(e,...t)=>{let r=rLe(e,...t);return r?{...e,$defs:r}:e},rB=e=>{let t=Xs(e);return t.type==="object"||t.properties!==void 0},uv=e=>{switch(e.kind){case"openapi":return"openapi";case"graphql":return"graphql-schema";case"google_discovery":return"google-discovery";case"mcp":return"mcp";default:return"custom"}},h_=(e,t)=>{let r=e.namespace??os(e.name);return(r?`${r}.${t}`:t).split(".").filter(o=>o.length>0)},un=(e,t)=>[{relation:"declared",documentId:e,pointer:t}],y_=e=>({approval:{mayRequire:e!=="read",reasons:e==="delete"?["delete"]:e==="write"||e==="action"?["write"]:[]},elicitation:{mayRequest:!1},resume:{supported:!1}}),ws=e=>({sourceKind:uv(e.source),adapterKey:e.adapterKey,importerVersion:"ir.v1.snapshot_builder",importedAt:new Date().toISOString(),sourceConfigHash:e.source.sourceHash??mn({endpoint:e.source.endpoint,binding:e.source.binding,auth:e.source.auth?.kind??null})}),wn=e=>{let t=e.summary??void 0,r=e.description??void 0,n=e.externalDocsUrl??void 0;if(!(!t&&!r&&!n))return{...t?{summary:t}:{},...r?{description:r}:{},...n?{externalDocsUrl:n}:{}}},mm=e=>{let t=Ip.make(`example_${mn({pointer:e.pointer,value:e.value})}`);return Vr(e.catalog.symbols)[t]={id:t,kind:"example",exampleKind:"value",...e.name?{name:e.name}:{},...wn({summary:e.summary??null,description:e.description??null})?{docs:wn({summary:e.summary??null,description:e.description??null})}:{},value:e.value,synthetic:!1,provenance:un(e.documentId,e.pointer)},t},wT=(e,t)=>{let r=Xs(e),n=Xs(r.properties);if(n[t]!==void 0)return n[t]},kT=(e,t,r)=>{let n=wT(e,r);if(n!==void 0)return n;let i=wT(e,t==="header"?"headers":t==="cookie"?"cookies":t);return i===void 0?void 0:wT(i,r)},pv=e=>wT(e,"body")??wT(e,"input"),CT=e=>{let t=e&&e.length>0?[...e]:["application/json"],r=[...t.filter(n=>n==="application/json"),...t.filter(n=>n!=="application/json"&&n.toLowerCase().includes("+json")),...t.filter(n=>n!=="application/json"&&!n.toLowerCase().includes("+json")&&n.toLowerCase().includes("json")),...t];return[...new Set(r)]},g_=e=>{let t=um.make(`response_set_${mn({responseId:e.responseId,traits:e.traits})}`);return Vr(e.catalog.responseSets)[t]={id:t,variants:[{match:{kind:"range",value:"2XX"},responseId:e.responseId,...e.traits&&e.traits.length>0?{traits:e.traits}:{}}],synthetic:!1,provenance:e.provenance},t},nB=e=>{let t=um.make(`response_set_${mn({variants:e.variants.map(r=>({match:r.match,responseId:r.responseId,traits:r.traits}))})}`);return Vr(e.catalog.responseSets)[t]={id:t,variants:e.variants,synthetic:!1,provenance:e.provenance},t},oB=e=>{let t=e.trim().toUpperCase();return/^\d{3}$/.test(t)?{kind:"exact",status:Number(t)}:/^[1-5]XX$/.test(t)?{kind:"range",value:t}:{kind:"default"}};var dv=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{},wu=e=>typeof e=="string"&&e.trim().length>0?e:null,tse=e=>typeof e=="boolean"?e:null,C6=e=>typeof e=="number"&&Number.isFinite(e)?e:null,PT=e=>Array.isArray(e)?e:[],rse=e=>PT(e).flatMap(t=>{let r=wu(t);return r===null?[]:[r]}),nLe=e=>e.replace(/~1/g,"/").replace(/~0/g,"~"),oLe=e=>{if(!e.startsWith("#/"))return!1;let t=e.slice(2).split("/").map(nLe);for(let r=0;r{let r=m_.make(`diag_${mn(t)}`);return Vr(e.diagnostics)[r]={id:r,...t},r},aLe=e=>({sourceKind:uv(e.source),kind:e.kind,pointer:e.pointer,encoding:"json",...e.summary?{summary:e.summary}:{},value:e.value}),nse=e=>{let t=new Map,r=new Map,n=new Map,o=[],i=new Set,a=(c,p)=>{if(p==="#"||p.length===0)return c;let d=p.replace(/^#\//,"").split("/").map(m=>m.replace(/~1/g,"/").replace(/~0/g,"~")),f=c;for(let m of d){if(Array.isArray(f)){let y=Number(m);f=Number.isInteger(y)?f[y]:void 0;continue}f=dv(f)[m]}return f},s=(c,p,d)=>{let f=`${e.resourceId}:${p}`,m=t.get(f);if(m){let g=o.indexOf(m);if(g!==-1)for(let S of o.slice(g))i.add(S);return m}let y=fn.make(`shape_${mn({resourceId:e.resourceId,key:p})}`);t.set(f,y),o.push(y);try{let g=dv(c),S=wu(g.title)??void 0,x=wn({description:wu(g.description)}),A=tse(g.deprecated)??void 0,I=S!==void 0||oLe(p),E=(xe,Rt={})=>{let Vt=IT(xe),Yt=i.has(y),vt=Yt||I?void 0:r.get(Vt);if(vt){let Fr=e.catalog.symbols[vt];return Fr?.kind==="shape"&&(Fr.title===void 0&&S&&(Vr(e.catalog.symbols)[vt]={...Fr,title:S}),Fr.docs===void 0&&x&&(Vr(e.catalog.symbols)[vt]={...Vr(e.catalog.symbols)[vt],docs:x}),Fr.deprecated===void 0&&A!==void 0&&(Vr(e.catalog.symbols)[vt]={...Vr(e.catalog.symbols)[vt],deprecated:A})),n.set(y,vt),t.set(f,vt),vt}return Vr(e.catalog.symbols)[y]={id:y,kind:"shape",resourceId:e.resourceId,...S?{title:S}:{},...x?{docs:x}:{},...A!==void 0?{deprecated:A}:{},node:xe,synthetic:!1,provenance:un(e.documentId,p),...Rt.diagnosticIds&&Rt.diagnosticIds.length>0?{diagnosticIds:Rt.diagnosticIds}:{},...Rt.native&&Rt.native.length>0?{native:Rt.native}:{}},!Yt&&!I&&r.set(Vt,y),y};if(typeof c=="boolean")return E({type:"unknown",reason:c?"schema_true":"schema_false"});let C=wu(g.$ref);if(C!==null){let xe=C.startsWith("#")?a(d??c,C):void 0;if(xe===void 0){let Vt=iLe(e.catalog,{level:"warning",code:"unresolved_ref",message:`Unresolved JSON schema ref ${C}`,provenance:un(e.documentId,p),relatedSymbolIds:[y]});return E({type:"unknown",reason:`unresolved_ref:${C}`},{diagnosticIds:[Vt]}),t.get(f)}let Rt=s(xe,C,d??c);return E({type:"ref",target:Rt})}let F=PT(g.enum);if(F.length===1)return E({type:"const",value:F[0]});if(F.length>1)return E({type:"enum",values:F});if("const"in g)return E({type:"const",value:g.const});let O=PT(g.anyOf);if(O.length>0)return E({type:"anyOf",items:O.map((xe,Rt)=>s(xe,`${p}/anyOf/${Rt}`,d??c))});let $=PT(g.allOf);if($.length>0)return E({type:"allOf",items:$.map((xe,Rt)=>s(xe,`${p}/allOf/${Rt}`,d??c))});let N=PT(g.oneOf);if(N.length>0)return E({type:"oneOf",items:N.map((xe,Rt)=>s(xe,`${p}/oneOf/${Rt}`,d??c))});if("if"in g||"then"in g||"else"in g)return E({type:"conditional",ifShapeId:s(g.if??{},`${p}/if`,d??c),thenShapeId:s(g.then??{},`${p}/then`,d??c),...g.else!==void 0?{elseShapeId:s(g.else,`${p}/else`,d??c)}:{}});if("not"in g)return E({type:"not",itemShapeId:s(g.not,`${p}/not`,d??c)});let U=g.type,ge=Array.isArray(U)?U.flatMap(xe=>{let Rt=wu(xe);return Rt===null?[]:[Rt]}):[],Te=tse(g.nullable)===!0||ge.includes("null"),ke=Array.isArray(U)?ge.find(xe=>xe!=="null")??null:wu(U),Ve=xe=>(E({type:"nullable",itemShapeId:xe}),y),me={};for(let xe of["format","minLength","maxLength","pattern","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","default","examples"])g[xe]!==void 0&&(me[xe]=g[xe]);if(ke==="object"||"properties"in g||"additionalProperties"in g||"patternProperties"in g){let xe=Object.fromEntries(Object.entries(dv(g.properties)).map(([Fr,le])=>[Fr,{shapeId:s(le,`${p}/properties/${Fr}`,d??c),...wn({description:wu(dv(le).description)})?{docs:wn({description:wu(dv(le).description)})}:{}}])),Rt=Object.fromEntries(Object.entries(dv(g.patternProperties)).map(([Fr,le])=>[Fr,s(le,`${p}/patternProperties/${Fr}`,d??c)])),Vt=g.additionalProperties,Yt=typeof Vt=="boolean"?Vt:Vt!==void 0?s(Vt,`${p}/additionalProperties`,d??c):void 0,vt={type:"object",fields:xe,...rse(g.required).length>0?{required:rse(g.required)}:{},...Yt!==void 0?{additionalProperties:Yt}:{},...Object.keys(Rt).length>0?{patternProperties:Rt}:{}};if(Te){let Fr=s({...g,nullable:!1,type:"object"},`${p}:nonnull`,d??c);return Ve(Fr)}return E(vt)}if(ke==="array"||"items"in g||"prefixItems"in g){if(Array.isArray(g.prefixItems)&&g.prefixItems.length>0){let Vt={type:"tuple",itemShapeIds:g.prefixItems.map((Yt,vt)=>s(Yt,`${p}/prefixItems/${vt}`,d??c)),...g.items!==void 0?{additionalItems:typeof g.items=="boolean"?g.items:s(g.items,`${p}/items`,d??c)}:{}};if(Te){let Yt=s({...g,nullable:!1,type:"array"},`${p}:nonnull`,d??c);return Ve(Yt)}return E(Vt)}let xe=g.items??{},Rt={type:"array",itemShapeId:s(xe,`${p}/items`,d??c),...C6(g.minItems)!==null?{minItems:C6(g.minItems)}:{},...C6(g.maxItems)!==null?{maxItems:C6(g.maxItems)}:{}};if(Te){let Vt=s({...g,nullable:!1,type:"array"},`${p}:nonnull`,d??c);return Ve(Vt)}return E(Rt)}if(ke==="string"||ke==="number"||ke==="integer"||ke==="boolean"||ke==="null"){let xe=ke==="null"?"null":ke==="integer"?"integer":ke==="number"?"number":ke==="boolean"?"boolean":wu(g.format)==="binary"?"bytes":"string",Rt={type:"scalar",scalar:xe,...wu(g.format)?{format:wu(g.format)}:{},...Object.keys(me).length>0?{constraints:me}:{}};if(Te&&xe!=="null"){let Vt=s({...g,nullable:!1,type:ke},`${p}:nonnull`,d??c);return Ve(Vt)}return E(Rt)}return E({type:"unknown",reason:`unsupported_schema:${p}`},{native:[aLe({source:e.source,kind:"json_schema",pointer:p,value:c,summary:"Unsupported JSON schema preserved natively"})]})}finally{if(o.pop()!==y)throw new Error(`JSON schema importer stack mismatch for ${y}`)}};return{importSchema:(c,p,d)=>s(c,p,d??c),finalize:()=>{let c=p=>{if(typeof p!="string"&&!(!p||typeof p!="object")){if(Array.isArray(p)){for(let d=0;dTu.make(`scope_service_${mn({sourceId:e.id})}`),ose=(e,t)=>Ap.make(`doc_${mn({sourceId:e.id,key:t})}`),cLe=e=>wp.make(`res_${mn({sourceId:e.id})}`),lLe=e=>({sourceKind:uv(e.source),kind:e.kind,pointer:e.pointer,encoding:"json",...e.summary?{summary:e.summary}:{},value:e.value}),uLe=()=>({version:"ir.v1.fragment",documents:{},resources:{},scopes:{},symbols:{},capabilities:{},executables:{},responseSets:{},diagnostics:{}}),pLe=e=>({version:"ir.v1.fragment",...Object.keys(e.documents).length>0?{documents:e.documents}:{},...Object.keys(e.resources).length>0?{resources:e.resources}:{},...Object.keys(e.scopes).length>0?{scopes:e.scopes}:{},...Object.keys(e.symbols).length>0?{symbols:e.symbols}:{},...Object.keys(e.capabilities).length>0?{capabilities:e.capabilities}:{},...Object.keys(e.executables).length>0?{executables:e.executables}:{},...Object.keys(e.responseSets).length>0?{responseSets:e.responseSets}:{},...Object.keys(e.diagnostics).length>0?{diagnostics:e.diagnostics}:{}}),dLe=e=>{let t=sLe(e.source);return Vr(e.catalog.scopes)[t]={id:t,kind:"service",name:e.source.name,namespace:e.source.namespace??os(e.source.name),docs:wn({summary:e.source.name}),...e.defaults?{defaults:e.defaults}:{},synthetic:!1,provenance:un(e.documentId,"#/service")},t},S_=e=>{let t=uLe(),r=e.documents.length>0?e.documents:[{documentKind:"synthetic",documentKey:e.source.endpoint,fetchedAt:Date.now(),contentText:"{}"}],n=r[0],o=n.documentKey??e.source.endpoint??e.source.id,i=ose(e.source,`${n.documentKind}:${n.documentKey}`),a=cLe(e.source);for(let p of r){let d=ose(e.source,`${p.documentKind}:${p.documentKey}`);Vr(t.documents)[d]={id:d,kind:uv(e.source),title:e.source.name,fetchedAt:new Date(p.fetchedAt??Date.now()).toISOString(),rawRef:p.documentKey,entryUri:p.documentKey.startsWith("http")?p.documentKey:void 0,native:[lLe({source:e.source,kind:"source_document",pointer:`#/${p.documentKind}`,value:p.contentText,summary:p.documentKind})]}}Vr(t.resources)[a]={id:a,documentId:i,canonicalUri:o,baseUri:o,...e.resourceDialectUri?{dialectUri:e.resourceDialectUri}:{},anchors:{},dynamicAnchors:{},synthetic:!1,provenance:un(i,"#")};let s=dLe({catalog:t,source:e.source,documentId:i,defaults:e.serviceScopeDefaults}),c=nse({catalog:t,source:e.source,resourceId:a,documentId:i});return e.registerOperations({catalog:t,documentId:i,serviceScopeId:s,importer:c}),c.finalize(),pLe(t)};import*as cB from"effect/ParseResult";import{Schema as lB}from"effect";import{Schema as w}from"effect";var iB=w.Literal("openapi","graphql-schema","google-discovery","mcp","custom"),_Le=w.Literal("service","document","resource","pathItem","operation","folder"),fLe=w.Literal("read","write","delete","action","subscribe"),mLe=w.Literal("path","query","header","cookie"),hLe=w.Literal("success","redirect","stream","download","upload","longRunning"),yLe=w.Literal("oauth2","http","apiKey","basic","bearer","custom"),gLe=w.Literal("1XX","2XX","3XX","4XX","5XX"),SLe=w.Literal("cursor","offset","token","unknown"),vLe=w.Literal("info","warning","error"),bLe=w.Literal("external_ref_bundled","relative_ref_rebased","schema_hoisted","selection_shape_synthesized","opaque_hook_imported","discriminator_lost","multi_response_union_synthesized","unsupported_link_preserved_native","unsupported_callback_preserved_native","unresolved_ref","merge_conflict_preserved_first","projection_call_shape_synthesized","projection_result_shape_synthesized","projection_collision_grouped_fields","synthetic_resource_context_created","selection_shape_missing"),xLe=w.Literal("json","yaml","graphql","text","unknown"),ELe=w.Literal("declared","hoisted","derived","merged","projected"),Op=w.Struct({summary:w.optional(w.String),description:w.optional(w.String),externalDocsUrl:w.optional(w.String)}),ase=w.Struct({relation:ELe,documentId:Ap,resourceId:w.optional(wp),pointer:w.optional(w.String),line:w.optional(w.Number),column:w.optional(w.Number)}),sse=w.Struct({sourceKind:iB,kind:w.String,pointer:w.optional(w.String),encoding:w.optional(xLe),summary:w.optional(w.String),value:w.optional(w.Unknown)}),Al=w.Struct({synthetic:w.Boolean,provenance:w.Array(ase),diagnosticIds:w.optional(w.Array(m_)),native:w.optional(w.Array(sse))}),TLe=w.Struct({sourceKind:iB,adapterKey:w.String,importerVersion:w.String,importedAt:w.String,sourceConfigHash:w.String}),cse=w.Struct({id:Ap,kind:iB,title:w.optional(w.String),versionHint:w.optional(w.String),fetchedAt:w.String,rawRef:w.String,entryUri:w.optional(w.String),native:w.optional(w.Array(sse))}),lse=w.Struct({shapeId:fn,docs:w.optional(Op),deprecated:w.optional(w.Boolean),exampleIds:w.optional(w.Array(Ip))}),DLe=w.Struct({propertyName:w.String,mapping:w.optional(w.Record({key:w.String,value:fn}))}),ALe=w.Struct({type:w.Literal("scalar"),scalar:w.Literal("string","number","integer","boolean","null","bytes"),format:w.optional(w.String),constraints:w.optional(w.Record({key:w.String,value:w.Unknown}))}),wLe=w.Struct({type:w.Literal("unknown"),reason:w.optional(w.String)}),ILe=w.Struct({type:w.Literal("const"),value:w.Unknown}),kLe=w.Struct({type:w.Literal("enum"),values:w.Array(w.Unknown)}),CLe=w.Struct({type:w.Literal("object"),fields:w.Record({key:w.String,value:lse}),required:w.optional(w.Array(w.String)),additionalProperties:w.optional(w.Union(w.Boolean,fn)),patternProperties:w.optional(w.Record({key:w.String,value:fn}))}),PLe=w.Struct({type:w.Literal("array"),itemShapeId:fn,minItems:w.optional(w.Number),maxItems:w.optional(w.Number)}),OLe=w.Struct({type:w.Literal("tuple"),itemShapeIds:w.Array(fn),additionalItems:w.optional(w.Union(w.Boolean,fn))}),NLe=w.Struct({type:w.Literal("map"),valueShapeId:fn}),FLe=w.Struct({type:w.Literal("allOf"),items:w.Array(fn)}),RLe=w.Struct({type:w.Literal("anyOf"),items:w.Array(fn)}),LLe=w.Struct({type:w.Literal("oneOf"),items:w.Array(fn),discriminator:w.optional(DLe)}),$Le=w.Struct({type:w.Literal("nullable"),itemShapeId:fn}),MLe=w.Struct({type:w.Literal("ref"),target:fn}),jLe=w.Struct({type:w.Literal("not"),itemShapeId:fn}),BLe=w.Struct({type:w.Literal("conditional"),ifShapeId:fn,thenShapeId:w.optional(fn),elseShapeId:w.optional(fn)}),qLe=w.Struct({type:w.Literal("graphqlInterface"),fields:w.Record({key:w.String,value:lse}),possibleTypeIds:w.Array(fn)}),ULe=w.Struct({type:w.Literal("graphqlUnion"),memberTypeIds:w.Array(fn)}),zLe=w.Union(wLe,ALe,ILe,kLe,CLe,PLe,OLe,NLe,FLe,RLe,LLe,$Le,MLe,jLe,BLe,qLe,ULe),ise=w.Struct({shapeId:fn,pointer:w.optional(w.String)}),use=w.extend(w.Struct({id:wp,documentId:Ap,canonicalUri:w.String,baseUri:w.String,dialectUri:w.optional(w.String),rootShapeId:w.optional(fn),anchors:w.Record({key:w.String,value:ise}),dynamicAnchors:w.Record({key:w.String,value:ise})}),Al),VLe=w.Union(w.Struct({location:w.Literal("header","query","cookie"),name:w.String}),w.Struct({location:w.Literal("body"),path:w.String})),JLe=w.Struct({authorizationUrl:w.optional(w.String),tokenUrl:w.optional(w.String),refreshUrl:w.optional(w.String),scopes:w.optional(w.Record({key:w.String,value:w.String}))}),KLe=w.Struct({in:w.optional(w.Literal("header","query","cookie")),name:w.optional(w.String)}),GLe=w.extend(w.Struct({id:_m,kind:w.Literal("securityScheme"),schemeType:yLe,docs:w.optional(Op),placement:w.optional(KLe),http:w.optional(w.Struct({scheme:w.String,bearerFormat:w.optional(w.String)})),apiKey:w.optional(w.Struct({in:w.Literal("header","query","cookie"),name:w.String})),oauth:w.optional(w.Struct({flows:w.optional(w.Record({key:w.String,value:JLe})),scopes:w.optional(w.Record({key:w.String,value:w.String}))})),custom:w.optional(w.Struct({placementHints:w.optional(w.Array(VLe))}))}),Al),HLe=w.Struct({contentType:w.optional(w.String),style:w.optional(w.String),explode:w.optional(w.Boolean),allowReserved:w.optional(w.Boolean),headers:w.optional(w.Array(dm))}),O6=w.Struct({mediaType:w.String,shapeId:w.optional(fn),exampleIds:w.optional(w.Array(Ip)),encoding:w.optional(w.Record({key:w.String,value:HLe}))}),ZLe=w.extend(w.Struct({id:fn,kind:w.Literal("shape"),resourceId:w.optional(wp),title:w.optional(w.String),docs:w.optional(Op),deprecated:w.optional(w.Boolean),node:zLe}),Al),WLe=w.extend(w.Struct({id:pm,kind:w.Literal("parameter"),name:w.String,location:mLe,required:w.optional(w.Boolean),docs:w.optional(Op),deprecated:w.optional(w.Boolean),exampleIds:w.optional(w.Array(Ip)),schemaShapeId:w.optional(fn),content:w.optional(w.Array(O6)),style:w.optional(w.String),explode:w.optional(w.Boolean),allowReserved:w.optional(w.Boolean)}),Al),QLe=w.extend(w.Struct({id:dm,kind:w.Literal("header"),name:w.String,docs:w.optional(Op),deprecated:w.optional(w.Boolean),exampleIds:w.optional(w.Array(Ip)),schemaShapeId:w.optional(fn),content:w.optional(w.Array(O6)),style:w.optional(w.String),explode:w.optional(w.Boolean)}),Al),XLe=w.extend(w.Struct({id:Xy,kind:w.Literal("requestBody"),docs:w.optional(Op),required:w.optional(w.Boolean),contents:w.Array(O6)}),Al),YLe=w.extend(w.Struct({id:Nc,kind:w.Literal("response"),docs:w.optional(Op),headerIds:w.optional(w.Array(dm)),contents:w.optional(w.Array(O6))}),Al),e$e=w.extend(w.Struct({id:Ip,kind:w.Literal("example"),name:w.optional(w.String),docs:w.optional(Op),exampleKind:w.Literal("value","call"),value:w.optional(w.Unknown),externalValue:w.optional(w.String),call:w.optional(w.Struct({args:w.Record({key:w.String,value:w.Unknown}),result:w.optional(w.Unknown)}))}),Al),pse=w.Union(ZLe,WLe,XLe,YLe,QLe,e$e,GLe),P6=w.suspend(()=>w.Union(w.Struct({kind:w.Literal("none")}),w.Struct({kind:w.Literal("scheme"),schemeId:_m,scopes:w.optional(w.Array(w.String))}),w.Struct({kind:w.Literal("allOf"),items:w.Array(P6)}),w.Struct({kind:w.Literal("anyOf"),items:w.Array(P6)}))),t$e=w.Struct({url:w.String,description:w.optional(w.String),variables:w.optional(w.Record({key:w.String,value:w.String}))}),r$e=w.Struct({servers:w.optional(w.Array(t$e)),auth:w.optional(P6),parameterIds:w.optional(w.Array(pm)),headerIds:w.optional(w.Array(dm)),variables:w.optional(w.Record({key:w.String,value:w.String}))}),dse=w.extend(w.Struct({id:Tu,kind:_Le,parentId:w.optional(Tu),name:w.optional(w.String),namespace:w.optional(w.String),docs:w.optional(Op),defaults:w.optional(r$e)}),Al),n$e=w.Struct({approval:w.Struct({mayRequire:w.Boolean,reasons:w.optional(w.Array(w.Literal("write","delete","sensitive","externalSideEffect")))}),elicitation:w.Struct({mayRequest:w.Boolean,shapeId:w.optional(fn)}),resume:w.Struct({supported:w.Boolean})}),_se=w.extend(w.Struct({id:Oc,serviceScopeId:Tu,surface:w.Struct({toolPath:w.Array(w.String),title:w.optional(w.String),summary:w.optional(w.String),description:w.optional(w.String),aliases:w.optional(w.Array(w.String)),tags:w.optional(w.Array(w.String))}),semantics:w.Struct({effect:fLe,safe:w.optional(w.Boolean),idempotent:w.optional(w.Boolean),destructive:w.optional(w.Boolean)}),docs:w.optional(Op),auth:P6,interaction:n$e,executableIds:w.Array(Qs),preferredExecutableId:w.optional(Qs),exampleIds:w.optional(w.Array(Ip))}),Al),o$e=w.Struct({protocol:w.optional(w.String),method:w.optional(w.NullOr(w.String)),pathTemplate:w.optional(w.NullOr(w.String)),operationId:w.optional(w.NullOr(w.String)),group:w.optional(w.NullOr(w.String)),leaf:w.optional(w.NullOr(w.String)),rawToolId:w.optional(w.NullOr(w.String)),title:w.optional(w.NullOr(w.String)),summary:w.optional(w.NullOr(w.String))}),i$e=w.Struct({responseSetId:um,callShapeId:fn,resultDataShapeId:w.optional(fn),resultErrorShapeId:w.optional(fn),resultHeadersShapeId:w.optional(fn),resultStatusShapeId:w.optional(fn)}),fse=w.extend(w.Struct({id:Qs,capabilityId:Oc,scopeId:Tu,adapterKey:w.String,bindingVersion:w.Number,binding:w.Unknown,projection:i$e,display:w.optional(o$e)}),Al),a$e=w.Struct({kind:SLe,tokenParamName:w.optional(w.String),nextFieldPath:w.optional(w.String)}),s$e=w.Union(w.Struct({kind:w.Literal("exact"),status:w.Number}),w.Struct({kind:w.Literal("range"),value:gLe}),w.Struct({kind:w.Literal("default")})),c$e=w.Struct({match:s$e,responseId:Nc,traits:w.optional(w.Array(hLe)),pagination:w.optional(a$e)}),mse=w.extend(w.Struct({id:um,variants:w.Array(c$e)}),Al),hse=w.Struct({id:m_,level:vLe,code:bLe,message:w.String,relatedSymbolIds:w.optional(w.Array(Gae)),provenance:w.Array(ase)}),aB=w.Struct({version:w.Literal("ir.v1"),documents:w.Record({key:Ap,value:cse}),resources:w.Record({key:wp,value:use}),scopes:w.Record({key:Tu,value:dse}),symbols:w.Record({key:w.String,value:pse}),capabilities:w.Record({key:Oc,value:_se}),executables:w.Record({key:Qs,value:fse}),responseSets:w.Record({key:um,value:mse}),diagnostics:w.Record({key:m_,value:hse})}),yse=w.Struct({version:w.Literal("ir.v1.fragment"),documents:w.optional(w.Record({key:Ap,value:cse})),resources:w.optional(w.Record({key:wp,value:use})),scopes:w.optional(w.Record({key:Tu,value:dse})),symbols:w.optional(w.Record({key:w.String,value:pse})),capabilities:w.optional(w.Record({key:Oc,value:_se})),executables:w.optional(w.Record({key:Qs,value:fse})),responseSets:w.optional(w.Record({key:um,value:mse})),diagnostics:w.optional(w.Record({key:m_,value:hse}))}),OT=w.Struct({version:w.Literal("ir.v1.snapshot"),import:TLe,catalog:aB});var l$e=lB.decodeUnknownSync(aB),u$e=lB.decodeUnknownSync(OT),M9t=lB.decodeUnknownSync(yse),_v=e=>e===null||typeof e!="object"?JSON.stringify(e):Array.isArray(e)?`[${e.map(r=>_v(r)).join(",")}]`:`{${Object.entries(e).sort(([r],[n])=>r.localeCompare(n)).map(([r,n])=>`${JSON.stringify(r)}:${_v(n)}`).join(",")}}`,vse=e=>Dc(_v(e)).slice(0,16),eg=e=>[...new Set(e)],p$e=e=>({version:e.version,documents:{...e.documents},resources:{...e.resources},scopes:{...e.scopes},symbols:{...e.symbols},capabilities:{...e.capabilities},executables:{...e.executables},responseSets:{...e.responseSets},diagnostics:{...e.diagnostics}}),N6=e=>e,uB=(e,t,r)=>e(`${t}_${vse(r)}`),d$e=()=>({version:"ir.v1",documents:{},resources:{},scopes:{},symbols:{},capabilities:{},executables:{},responseSets:{},diagnostics:{}}),bse=(e,t)=>{switch(t.kind){case"none":return["none"];case"scheme":{let r=e.symbols[t.schemeId];return!r||r.kind!=="securityScheme"?["unknown"]:[r.schemeType,...(t.scopes??[]).map(n=>`scope:${n}`)]}case"allOf":case"anyOf":return eg(t.items.flatMap(r=>bse(e,r)))}};var _$e=(e,t)=>{let r=e.symbols[t];return r&&r.kind==="response"?r:void 0},f$e=e=>{let t=e.trim().toLowerCase();return t==="application/json"||t.endsWith("+json")||t==="text/json"},pB=(e,t)=>{let r=uB(m_.make,"diag",t.idSeed);return N6(e.diagnostics)[r]={id:r,level:t.level,code:t.code,message:t.message,...t.relatedSymbolIds?{relatedSymbolIds:t.relatedSymbolIds}:{},provenance:t.provenance},r},m$e=(e,t)=>{let r=uB(wp.make,"res",{kind:"projection",capabilityId:t.id});if(!e.resources[r]){let o=e.scopes[t.serviceScopeId]?.provenance[0]?.documentId??Ap.make(`doc_projection_${vse(t.id)}`);e.documents[o]||(N6(e.documents)[o]={id:o,kind:"custom",title:`Projection resource for ${t.id}`,fetchedAt:new Date(0).toISOString(),rawRef:`synthetic://projection/${t.id}`}),N6(e.resources)[r]={id:r,documentId:o,canonicalUri:`synthetic://projection/${t.id}`,baseUri:`synthetic://projection/${t.id}`,anchors:{},dynamicAnchors:{},synthetic:!0,provenance:t.provenance},pB(e,{idSeed:{code:"synthetic_resource_context_created",capabilityId:t.id},level:"info",code:"synthetic_resource_context_created",message:`Created synthetic projection resource for ${t.id}`,provenance:t.provenance})}return r},hm=(e,t)=>{let r=m$e(e,t.capability),n=uB(fn.make,"shape",{capabilityId:t.capability.id,label:t.label,node:t.node});if(!e.symbols[n]){let o=t.diagnostic?[pB(e,{idSeed:{code:t.diagnostic.code,shapeId:n},level:t.diagnostic.level,code:t.diagnostic.code,message:t.diagnostic.message,...t.diagnostic.relatedSymbolIds?{relatedSymbolIds:t.diagnostic.relatedSymbolIds}:{},provenance:t.capability.provenance})]:void 0;N6(e.symbols)[n]={id:n,kind:"shape",resourceId:r,...t.title?{title:t.title}:{},...t.docs?{docs:t.docs}:{},node:t.node,synthetic:!0,provenance:t.capability.provenance,...o?{diagnosticIds:o}:{}}}return n},h$e=(e,t,r,n)=>{let o=eg((r??[]).map(i=>i.shapeId).filter(i=>i!==void 0));if(o.length!==0)return o.length===1?o[0]:hm(e,{capability:t,label:n,title:`${t.surface.title??t.id} content union`,node:{type:"anyOf",items:o},diagnostic:{level:"warning",code:"projection_result_shape_synthesized",message:`Synthesized content union for ${t.id}`,relatedSymbolIds:o}})},y$e=(e,t)=>{let r=t.preferredExecutableId;if(r){let o=e.executables[r];if(o)return o}let n=t.executableIds.map(o=>e.executables[o]).filter(o=>o!==void 0);if(n.length===0)throw new Error(`Capability ${t.id} has no executables`);return n[0]},g$e=e=>{switch(e.kind){case"exact":return e.status===200?100:e.status>=200&&e.status<300?80:10;case"range":return e.value==="2XX"?60:5;case"default":return 40}},gse=e=>(e.contents??[]).flatMap(t=>t.shapeId?[{mediaType:t.mediaType,shapeId:t.shapeId}]:[]),xse=(e,t)=>[...t.variants].map(r=>{let n=_$e(e,r.responseId);return n?{variant:r,response:n,score:g$e(r.match)}:null}).filter(r=>r!==null),Ese=e=>{switch(e.kind){case"exact":return e.status>=200&&e.status<300;case"range":return e.value==="2XX";case"default":return!1}},Tse=(e,t,r,n,o)=>{let i=o.flatMap(({response:s})=>gse(s).filter(c=>f$e(c.mediaType)));if(i.length>0)return h$e(e,t,i.map(s=>({mediaType:s.mediaType,shapeId:s.shapeId})),`${r}:json`);let a=eg(o.flatMap(({response:s})=>gse(s).map(c=>c.shapeId)));if(a.length!==0)return a.length===1?a[0]:hm(e,{capability:t,label:`${r}:union`,title:n,node:{type:"anyOf",items:a},diagnostic:{level:"warning",code:"multi_response_union_synthesized",message:`Synthesized response union for ${t.id}`,relatedSymbolIds:a}})},S$e=(e,t,r)=>Tse(e,t,`responseSet:${r.id}`,`${t.surface.title??t.id} result`,xse(e,r).filter(({variant:n})=>Ese(n.match))),v$e=(e,t,r)=>Tse(e,t,`responseSet:${r.id}:error`,`${t.surface.title??t.id} error`,xse(e,r).filter(({variant:n})=>!Ese(n.match))),Dse=(e,t,r)=>hm(e,{capability:t,label:r.label,title:r.title,node:{type:"scalar",scalar:r.scalar}}),b$e=(e,t,r)=>hm(e,{capability:t,label:r,title:"null",node:{type:"const",value:null}}),Sse=(e,t,r)=>hm(e,{capability:t,label:r.label,title:r.title,node:{type:"unknown",reason:r.reason}}),sB=(e,t,r)=>{let n=b$e(e,t,`${r.label}:null`);return r.baseShapeId===n?n:hm(e,{capability:t,label:`${r.label}:nullable`,title:r.title,node:{type:"anyOf",items:eg([r.baseShapeId,n])}})},x$e=(e,t,r)=>{let n=Dse(e,t,{label:`${r}:value`,title:"Header value",scalar:"string"});return hm(e,{capability:t,label:r,title:"Response headers",node:{type:"object",fields:{},additionalProperties:n}})},E$e=(e,t,r,n)=>{let o=Sse(e,t,{label:`executionResult:${t.id}:data:unknown`,title:"Response data",reason:`Execution result data for ${t.id} is not statically known`}),i=Sse(e,t,{label:`executionResult:${t.id}:error:unknown`,title:"Response error",reason:`Execution result error for ${t.id} is not statically known`}),a=x$e(e,t,`executionResult:${t.id}:headers`),s=Dse(e,t,{label:`executionResult:${t.id}:status`,title:"Response status",scalar:"integer"}),c,p,d=a,f=s;c=r.projection.resultDataShapeId??S$e(e,t,n),p=r.projection.resultErrorShapeId??v$e(e,t,n),d=r.projection.resultHeadersShapeId??a,f=r.projection.resultStatusShapeId??s;let m=sB(e,t,{label:`executionResult:${t.id}:data`,title:"Result data",baseShapeId:c??o}),y=sB(e,t,{label:`executionResult:${t.id}:error`,title:"Result error",baseShapeId:p??i}),g=sB(e,t,{label:`executionResult:${t.id}:status`,title:"Result status",baseShapeId:f});return hm(e,{capability:t,label:`executionResult:${t.id}`,title:`${t.surface.title??t.id} result`,node:{type:"object",fields:{data:{shapeId:m,docs:{description:"Successful result payload when available."}},error:{shapeId:y,docs:{description:"Error payload when the remote execution completed but failed."}},headers:{shapeId:d,docs:{description:"Response headers when available."}},status:{shapeId:g,docs:{description:"Transport status code when available."}}},required:["data","error","headers","status"],additionalProperties:!1},diagnostic:{level:"info",code:"projection_result_shape_synthesized",message:`Synthesized execution result envelope for ${t.id}`,relatedSymbolIds:eg([m,y,d,g])}})},T$e=(e,t)=>{let r=y$e(e,t),n=e.responseSets[r.projection.responseSetId];if(!n)throw new Error(`Missing response set ${r.projection.responseSetId} for ${t.id}`);let o=r.projection.callShapeId,i=E$e(e,t,r,n),s=eg([...t.diagnosticIds??[],...r.diagnosticIds??[],...n.diagnosticIds??[],...o?e.symbols[o]?.diagnosticIds??[]:[],...i?e.symbols[i]?.diagnosticIds??[]:[]]).map(c=>e.diagnostics[c]).filter(c=>c!==void 0);return{toolPath:[...t.surface.toolPath],capabilityId:t.id,...t.surface.title?{title:t.surface.title}:{},...t.surface.summary?{summary:t.surface.summary}:{},effect:t.semantics.effect,interaction:{mayRequireApproval:t.interaction.approval.mayRequire,mayElicit:t.interaction.elicitation.mayRequest},callShapeId:o,...i?{resultShapeId:i}:{},responseSetId:r.projection.responseSetId,diagnosticCounts:{warning:s.filter(c=>c.level==="warning").length,error:s.filter(c=>c.level==="error").length}}},D$e=(e,t,r)=>({capabilityId:t.id,toolPath:[...t.surface.toolPath],...t.surface.summary?{summary:t.surface.summary}:{},executableIds:[...t.executableIds],auth:t.auth,interaction:t.interaction,callShapeId:r.callShapeId,...r.resultShapeId?{resultShapeId:r.resultShapeId}:{},responseSetId:r.responseSetId,...t.diagnosticIds?{diagnosticIds:[...t.diagnosticIds]}:{}}),A$e=(e,t)=>({capabilityId:t.id,toolPath:[...t.surface.toolPath],...t.surface.title?{title:t.surface.title}:{},...t.surface.summary?{summary:t.surface.summary}:{},...t.surface.tags?{tags:[...t.surface.tags]}:{},protocolHints:eg(t.executableIds.map(r=>e.executables[r]?.display?.protocol??e.executables[r]?.adapterKey).filter(r=>r!==void 0)),authHints:bse(e,t.auth),effect:t.semantics.effect});var Ase=e=>{try{return l$e(e)}catch(t){throw new Error(cB.TreeFormatter.formatErrorSync(t))}};var F6=e=>{try{let t=u$e(e);return dB(t.catalog),t}catch(t){throw t instanceof Error?t:new Error(cB.TreeFormatter.formatErrorSync(t))}};var w$e=e=>{let t=dB(Ase(e.catalog));return{version:"ir.v1.snapshot",import:e.import,catalog:t}},fv=e=>w$e({import:e.import,catalog:I$e(e.fragments)}),I$e=e=>{let t=d$e(),r=new Map,n=(o,i)=>{if(!i)return;let a=t[o];for(let[s,c]of Object.entries(i)){let p=a[s];if(!p){a[s]=c,r.set(`${String(o)}:${s}`,_v(c));continue}let d=r.get(`${String(o)}:${s}`)??_v(p),f=_v(c);d!==f&&o!=="diagnostics"&&pB(t,{idSeed:{collectionName:o,id:s,existingHash:d,nextHash:f},level:"error",code:"merge_conflict_preserved_first",message:`Conflicting ${String(o)} entry for ${s}; preserved first value`,provenance:"provenance"in p?p.provenance:[]})}};for(let o of e)n("documents",o.documents),n("resources",o.resources),n("scopes",o.scopes),n("symbols",o.symbols),n("capabilities",o.capabilities),n("executables",o.executables),n("responseSets",o.responseSets),n("diagnostics",o.diagnostics);return dB(Ase(t))},k$e=e=>{let t=[],r=n=>{for(let o of n.provenance)e.documents[o.documentId]||t.push({code:"missing_provenance_document",entityId:n.entityId,message:`Entity ${n.entityId} references missing provenance document ${o.documentId}`})};for(let n of Object.values(e.symbols))n.provenance.length===0&&t.push({code:"missing_symbol_provenance",entityId:n.id,message:`Symbol ${n.id} is missing provenance`}),n.kind==="shape"&&(!n.resourceId&&!n.synthetic&&t.push({code:"missing_resource_context",entityId:n.id,message:`Shape ${n.id} must belong to a resource or be synthetic`}),n.node.type==="ref"&&!e.symbols[n.node.target]&&t.push({code:"missing_reference_target",entityId:n.id,message:`Shape ${n.id} references missing shape ${n.node.target}`}),n.node.type==="unknown"&&n.node.reason?.includes("unresolved")&&((n.diagnosticIds??[]).map(i=>e.diagnostics[i]).some(i=>i?.code==="unresolved_ref")||t.push({code:"missing_unresolved_ref_diagnostic",entityId:n.id,message:`Shape ${n.id} is unresolved but has no unresolved_ref diagnostic`})),n.synthetic&&n.resourceId&&!e.resources[n.resourceId]&&t.push({code:"missing_resource_context",entityId:n.id,message:`Synthetic shape ${n.id} references missing resource ${n.resourceId}`})),r({entityId:n.id,provenance:n.provenance});for(let n of[...Object.values(e.resources),...Object.values(e.scopes),...Object.values(e.capabilities),...Object.values(e.executables),...Object.values(e.responseSets)])"provenance"in n&&n.provenance.length===0&&t.push({code:"missing_entity_provenance",entityId:"id"in n?n.id:void 0,message:`Entity ${"id"in n?n.id:"unknown"} is missing provenance`}),"id"in n&&r({entityId:n.id,provenance:n.provenance});for(let n of Object.values(e.resources))e.documents[n.documentId]||t.push({code:"missing_document",entityId:n.id,message:`Resource ${n.id} references missing document ${n.documentId}`});for(let n of Object.values(e.capabilities)){e.scopes[n.serviceScopeId]||t.push({code:"missing_service_scope",entityId:n.id,message:`Capability ${n.id} references missing scope ${n.serviceScopeId}`}),n.preferredExecutableId&&!n.executableIds.includes(n.preferredExecutableId)&&t.push({code:"invalid_preferred_executable",entityId:n.id,message:`Capability ${n.id} preferred executable is not in executableIds`});for(let o of n.executableIds)e.executables[o]||t.push({code:"missing_executable",entityId:n.id,message:`Capability ${n.id} references missing executable ${o}`})}for(let n of Object.values(e.executables)){e.capabilities[n.capabilityId]||t.push({code:"missing_executable",entityId:n.id,message:`Executable ${n.id} references missing capability ${n.capabilityId}`}),e.scopes[n.scopeId]||t.push({code:"missing_scope",entityId:n.id,message:`Executable ${n.id} references missing scope ${n.scopeId}`}),e.responseSets[n.projection.responseSetId]||t.push({code:"missing_response_set",entityId:n.id,message:`Executable ${n.id} references missing response set ${n.projection.responseSetId}`});let o=[{kind:"call",shapeId:n.projection.callShapeId},{kind:"result data",shapeId:n.projection.resultDataShapeId},{kind:"result error",shapeId:n.projection.resultErrorShapeId},{kind:"result headers",shapeId:n.projection.resultHeadersShapeId},{kind:"result status",shapeId:n.projection.resultStatusShapeId}];for(let i of o)!i.shapeId||e.symbols[i.shapeId]?.kind==="shape"||t.push({code:"missing_projection_shape",entityId:n.id,message:`Executable ${n.id} references missing ${i.kind} shape ${i.shapeId}`})}return t},dB=e=>{let t=k$e(e);if(t.length===0)return e;let r=t.slice(0,5).map(n=>`${n.code}: ${n.message}`).join(` +`&&n++}}return[t,r]}var v6=class extends Event{constructor(t,r){var n,o;super(t),this.code=(n=r?.code)!=null?n:void 0,this.message=(o=r?.message)!=null?o:void 0}[Symbol.for("nodejs.util.inspect.custom")](t,r,n){return n(qie(this),r)}[Symbol.for("Deno.customInspect")](t,r){return t(qie(this),r)}};function H9e(e){let t=globalThis.DOMException;return typeof t=="function"?new t(e,"SyntaxError"):new SyntaxError(e)}function Cj(e){return e instanceof Error?"errors"in e&&Array.isArray(e.errors)?e.errors.map(Cj).join(", "):"cause"in e&&e.cause instanceof Error?`${e}: ${Cj(e.cause)}`:e.message:`${e}`}function qie(e){return{type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}var zie=e=>{throw TypeError(e)},Mj=(e,t,r)=>t.has(e)||zie("Cannot "+r),fn=(e,t,r)=>(Mj(e,t,"read from private field"),r?r.call(e):t.get(e)),Qi=(e,t,r)=>t.has(e)?zie("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ri=(e,t,r,n)=>(Mj(e,t,"write to private field"),t.set(e,r),r),m_=(e,t,r)=>(Mj(e,t,"access private method"),r),Ws,Zy,tv,S6,b6,mT,ov,hT,um,rv,iv,nv,_T,Tu,Pj,Oj,Nj,Uie,Fj,Rj,fT,Lj,$j,Wy=class extends EventTarget{constructor(t,r){var n,o;super(),Qi(this,Tu),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,Qi(this,Ws),Qi(this,Zy),Qi(this,tv),Qi(this,S6),Qi(this,b6),Qi(this,mT),Qi(this,ov),Qi(this,hT,null),Qi(this,um),Qi(this,rv),Qi(this,iv,null),Qi(this,nv,null),Qi(this,_T,null),Qi(this,Oj,async i=>{var a;fn(this,rv).reset();let{body:s,redirected:c,status:p,headers:d}=i;if(p===204){m_(this,Tu,fT).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(c?ri(this,tv,new URL(i.url)):ri(this,tv,void 0),p!==200){m_(this,Tu,fT).call(this,`Non-200 status code (${p})`,p);return}if(!(d.get("content-type")||"").startsWith("text/event-stream")){m_(this,Tu,fT).call(this,'Invalid content type, expected "text/event-stream"',p);return}if(fn(this,Ws)===this.CLOSED)return;ri(this,Ws,this.OPEN);let f=new Event("open");if((a=fn(this,_T))==null||a.call(this,f),this.dispatchEvent(f),typeof s!="object"||!s||!("getReader"in s)){m_(this,Tu,fT).call(this,"Invalid response body, expected a web ReadableStream",p),this.close();return}let m=new TextDecoder,y=s.getReader(),g=!0;do{let{done:S,value:b}=await y.read();b&&fn(this,rv).feed(m.decode(b,{stream:!S})),S&&(g=!1,fn(this,rv).reset(),m_(this,Tu,Lj).call(this))}while(g)}),Qi(this,Nj,i=>{ri(this,um,void 0),!(i.name==="AbortError"||i.type==="aborted")&&m_(this,Tu,Lj).call(this,Cj(i))}),Qi(this,Fj,i=>{typeof i.id=="string"&&ri(this,hT,i.id);let a=new MessageEvent(i.event||"message",{data:i.data,origin:fn(this,tv)?fn(this,tv).origin:fn(this,Zy).origin,lastEventId:i.id||""});fn(this,nv)&&(!i.event||i.event==="message")&&fn(this,nv).call(this,a),this.dispatchEvent(a)}),Qi(this,Rj,i=>{ri(this,mT,i)}),Qi(this,$j,()=>{ri(this,ov,void 0),fn(this,Ws)===this.CONNECTING&&m_(this,Tu,Pj).call(this)});try{if(t instanceof URL)ri(this,Zy,t);else if(typeof t=="string")ri(this,Zy,new URL(t,Z9e()));else throw new Error("Invalid URL")}catch{throw H9e("An invalid or illegal string was specified")}ri(this,rv,g6({onEvent:fn(this,Fj),onRetry:fn(this,Rj)})),ri(this,Ws,this.CONNECTING),ri(this,mT,3e3),ri(this,b6,(n=r?.fetch)!=null?n:globalThis.fetch),ri(this,S6,(o=r?.withCredentials)!=null?o:!1),m_(this,Tu,Pj).call(this)}get readyState(){return fn(this,Ws)}get url(){return fn(this,Zy).href}get withCredentials(){return fn(this,S6)}get onerror(){return fn(this,iv)}set onerror(t){ri(this,iv,t)}get onmessage(){return fn(this,nv)}set onmessage(t){ri(this,nv,t)}get onopen(){return fn(this,_T)}set onopen(t){ri(this,_T,t)}addEventListener(t,r,n){let o=r;super.addEventListener(t,o,n)}removeEventListener(t,r,n){let o=r;super.removeEventListener(t,o,n)}close(){fn(this,ov)&&clearTimeout(fn(this,ov)),fn(this,Ws)!==this.CLOSED&&(fn(this,um)&&fn(this,um).abort(),ri(this,Ws,this.CLOSED),ri(this,um,void 0))}};Ws=new WeakMap,Zy=new WeakMap,tv=new WeakMap,S6=new WeakMap,b6=new WeakMap,mT=new WeakMap,ov=new WeakMap,hT=new WeakMap,um=new WeakMap,rv=new WeakMap,iv=new WeakMap,nv=new WeakMap,_T=new WeakMap,Tu=new WeakSet,Pj=function(){ri(this,Ws,this.CONNECTING),ri(this,um,new AbortController),fn(this,b6)(fn(this,Zy),m_(this,Tu,Uie).call(this)).then(fn(this,Oj)).catch(fn(this,Nj))},Oj=new WeakMap,Nj=new WeakMap,Uie=function(){var e;let t={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...fn(this,hT)?{"Last-Event-ID":fn(this,hT)}:void 0},cache:"no-store",signal:(e=fn(this,um))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},Fj=new WeakMap,Rj=new WeakMap,fT=function(e,t){var r;fn(this,Ws)!==this.CLOSED&&ri(this,Ws,this.CLOSED);let n=new v6("error",{code:t,message:e});(r=fn(this,iv))==null||r.call(this,n),this.dispatchEvent(n)},Lj=function(e,t){var r;if(fn(this,Ws)===this.CLOSED)return;ri(this,Ws,this.CONNECTING);let n=new v6("error",{code:t,message:e});(r=fn(this,iv))==null||r.call(this,n),this.dispatchEvent(n),ri(this,ov,setTimeout(fn(this,$j),fn(this,mT)))},$j=new WeakMap,Wy.CONNECTING=0,Wy.OPEN=1,Wy.CLOSED=2;function Z9e(){let e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}function av(e){return e?e instanceof Headers?Object.fromEntries(e.entries()):Array.isArray(e)?Object.fromEntries(e):{...e}:{}}function x6(e=fetch,t){return t?async(r,n)=>{let o={...t,...n,headers:n?.headers?{...av(t.headers),...av(n.headers)}:t.headers};return e(r,o)}:e}var jj;jj=globalThis.crypto?.webcrypto??globalThis.crypto??import("node:crypto").then(e=>e.webcrypto);async function W9e(e){return(await jj).getRandomValues(new Uint8Array(e))}async function Q9e(e){let t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",r=Math.pow(2,8)-Math.pow(2,8)%t.length,n="";for(;n.length128)throw`Expected a length between 43 and 128. Received ${e}.`;let t=await X9e(e),r=await Y9e(t);return{code_verifier:t,code_challenge:r}}var ka=x7().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:Qoe.custom,message:"URL must be parseable",fatal:!0}),WC}).refine(e=>{let t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),Vie=Ui({resource:Y().url(),authorization_servers:ot(ka).optional(),jwks_uri:Y().url().optional(),scopes_supported:ot(Y()).optional(),bearer_methods_supported:ot(Y()).optional(),resource_signing_alg_values_supported:ot(Y()).optional(),resource_name:Y().optional(),resource_documentation:Y().optional(),resource_policy_uri:Y().url().optional(),resource_tos_uri:Y().url().optional(),tls_client_certificate_bound_access_tokens:uo().optional(),authorization_details_types_supported:ot(Y()).optional(),dpop_signing_alg_values_supported:ot(Y()).optional(),dpop_bound_access_tokens_required:uo().optional()}),qj=Ui({issuer:Y(),authorization_endpoint:ka,token_endpoint:ka,registration_endpoint:ka.optional(),scopes_supported:ot(Y()).optional(),response_types_supported:ot(Y()),response_modes_supported:ot(Y()).optional(),grant_types_supported:ot(Y()).optional(),token_endpoint_auth_methods_supported:ot(Y()).optional(),token_endpoint_auth_signing_alg_values_supported:ot(Y()).optional(),service_documentation:ka.optional(),revocation_endpoint:ka.optional(),revocation_endpoint_auth_methods_supported:ot(Y()).optional(),revocation_endpoint_auth_signing_alg_values_supported:ot(Y()).optional(),introspection_endpoint:Y().optional(),introspection_endpoint_auth_methods_supported:ot(Y()).optional(),introspection_endpoint_auth_signing_alg_values_supported:ot(Y()).optional(),code_challenge_methods_supported:ot(Y()).optional(),client_id_metadata_document_supported:uo().optional()}),e5e=Ui({issuer:Y(),authorization_endpoint:ka,token_endpoint:ka,userinfo_endpoint:ka.optional(),jwks_uri:ka,registration_endpoint:ka.optional(),scopes_supported:ot(Y()).optional(),response_types_supported:ot(Y()),response_modes_supported:ot(Y()).optional(),grant_types_supported:ot(Y()).optional(),acr_values_supported:ot(Y()).optional(),subject_types_supported:ot(Y()),id_token_signing_alg_values_supported:ot(Y()),id_token_encryption_alg_values_supported:ot(Y()).optional(),id_token_encryption_enc_values_supported:ot(Y()).optional(),userinfo_signing_alg_values_supported:ot(Y()).optional(),userinfo_encryption_alg_values_supported:ot(Y()).optional(),userinfo_encryption_enc_values_supported:ot(Y()).optional(),request_object_signing_alg_values_supported:ot(Y()).optional(),request_object_encryption_alg_values_supported:ot(Y()).optional(),request_object_encryption_enc_values_supported:ot(Y()).optional(),token_endpoint_auth_methods_supported:ot(Y()).optional(),token_endpoint_auth_signing_alg_values_supported:ot(Y()).optional(),display_values_supported:ot(Y()).optional(),claim_types_supported:ot(Y()).optional(),claims_supported:ot(Y()).optional(),service_documentation:Y().optional(),claims_locales_supported:ot(Y()).optional(),ui_locales_supported:ot(Y()).optional(),claims_parameter_supported:uo().optional(),request_parameter_supported:uo().optional(),request_uri_parameter_supported:uo().optional(),require_request_uri_registration:uo().optional(),op_policy_uri:ka.optional(),op_tos_uri:ka.optional(),client_id_metadata_document_supported:uo().optional()}),Kie=dt({...e5e.shape,...qj.pick({code_challenge_methods_supported:!0}).shape}),Gie=dt({access_token:Y(),id_token:Y().optional(),token_type:Y(),expires_in:QP.number().optional(),scope:Y().optional(),refresh_token:Y().optional()}).strip(),Hie=dt({error:Y(),error_description:Y().optional(),error_uri:Y().optional()}),Jie=ka.optional().or($t("").transform(()=>{})),t5e=dt({redirect_uris:ot(ka),token_endpoint_auth_method:Y().optional(),grant_types:ot(Y()).optional(),response_types:ot(Y()).optional(),client_name:Y().optional(),client_uri:ka.optional(),logo_uri:Jie,scope:Y().optional(),contacts:ot(Y()).optional(),tos_uri:Jie,policy_uri:Y().optional(),jwks_uri:ka.optional(),jwks:j7().optional(),software_id:Y().optional(),software_version:Y().optional(),software_statement:Y().optional()}).strip(),r5e=dt({client_id:Y(),client_secret:Y().optional(),client_id_issued_at:$n().optional(),client_secret_expires_at:$n().optional()}).strip(),Zie=t5e.merge(r5e),h8t=dt({error:Y(),error_description:Y().optional()}).strip(),y8t=dt({token:Y(),token_type_hint:Y().optional()}).strip();function Wie(e){let t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function Qie({requestedResource:e,configuredResource:t}){let r=typeof e=="string"?new URL(e):new URL(e.href),n=typeof t=="string"?new URL(t):new URL(t.href);if(r.origin!==n.origin||r.pathname.length=400&&e.status<500&&t!=="/"}async function _5e(e,t,r,n){let o=new URL(e),i=n?.protocolVersion??H0,a;if(n?.metadataUrl)a=new URL(n.metadataUrl);else{let c=p5e(t,o.pathname);a=new URL(c,n?.metadataServerUrl??o),a.search=o.search}let s=await Yie(a,i,r);if(!n?.metadataUrl&&d5e(s,o.pathname)){let c=new URL(`/.well-known/${t}`,o);s=await Yie(c,i,r)}return s}function f5e(e){let t=typeof e=="string"?new URL(e):e,r=t.pathname!=="/",n=[];if(!r)return n.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),n.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),n;let o=t.pathname;return o.endsWith("/")&&(o=o.slice(0,-1)),n.push({url:new URL(`/.well-known/oauth-authorization-server${o}`,t.origin),type:"oauth"}),n.push({url:new URL(`/.well-known/openid-configuration${o}`,t.origin),type:"oidc"}),n.push({url:new URL(`${o}/.well-known/openid-configuration`,t.origin),type:"oidc"}),n}async function rae(e,{fetchFn:t=fetch,protocolVersion:r=H0}={}){let n={"MCP-Protocol-Version":r,Accept:"application/json"},o=f5e(e);for(let{url:i,type:a}of o){let s=await Kj(i,n,t);if(s){if(!s.ok){if(await s.body?.cancel(),s.status>=400&&s.status<500)continue;throw new Error(`HTTP ${s.status} trying to load ${a==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}return a==="oauth"?qj.parse(await s.json()):Kie.parse(await s.json())}}}async function m5e(e,t){let r,n;try{r=await tae(e,{resourceMetadataUrl:t?.resourceMetadataUrl},t?.fetchFn),r.authorization_servers&&r.authorization_servers.length>0&&(n=r.authorization_servers[0])}catch{}n||(n=String(new URL("/",e)));let o=await rae(n,{fetchFn:t?.fetchFn});return{authorizationServerUrl:n,authorizationServerMetadata:o,resourceMetadata:r}}async function h5e(e,{metadata:t,clientInformation:r,redirectUrl:n,scope:o,state:i,resource:a}){let s;if(t){if(s=new URL(t.authorization_endpoint),!t.response_types_supported.includes(Uj))throw new Error(`Incompatible auth server: does not support response type ${Uj}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(zj))throw new Error(`Incompatible auth server: does not support code challenge method ${zj}`)}else s=new URL("/authorize",e);let c=await Bj(),p=c.code_verifier,d=c.code_challenge;return s.searchParams.set("response_type",Uj),s.searchParams.set("client_id",r.client_id),s.searchParams.set("code_challenge",d),s.searchParams.set("code_challenge_method",zj),s.searchParams.set("redirect_uri",String(n)),i&&s.searchParams.set("state",i),o&&s.searchParams.set("scope",o),o?.includes("offline_access")&&s.searchParams.append("prompt","consent"),a&&s.searchParams.set("resource",a.href),{authorizationUrl:s,codeVerifier:p}}function y5e(e,t,r){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(r)})}async function nae(e,{metadata:t,tokenRequestParams:r,clientInformation:n,addClientAuthentication:o,resource:i,fetchFn:a}){let s=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e),c=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(i&&r.set("resource",i.href),o)await o(c,r,s,t);else if(n){let d=t?.token_endpoint_auth_methods_supported??[],f=o5e(n,d);i5e(f,n,c,r)}let p=await(a??fetch)(s,{method:"POST",headers:c,body:r});if(!p.ok)throw await eae(p);return Gie.parse(await p.json())}async function g5e(e,{metadata:t,clientInformation:r,refreshToken:n,resource:o,addClientAuthentication:i,fetchFn:a}){let s=new URLSearchParams({grant_type:"refresh_token",refresh_token:n}),c=await nae(e,{metadata:t,tokenRequestParams:s,clientInformation:r,addClientAuthentication:i,resource:o,fetchFn:a});return{refresh_token:n,...c}}async function S5e(e,t,{metadata:r,resource:n,authorizationCode:o,fetchFn:i}={}){let a=e.clientMetadata.scope,s;if(e.prepareTokenRequest&&(s=await e.prepareTokenRequest(a)),!s){if(!o)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");let p=await e.codeVerifier();s=y5e(o,p,e.redirectUrl)}let c=await e.clientInformation();return nae(t,{metadata:r,tokenRequestParams:s,clientInformation:c??void 0,addClientAuthentication:e.addClientAuthentication,resource:n,fetchFn:i})}async function v5e(e,{metadata:t,clientMetadata:r,fetchFn:n}){let o;if(t){if(!t.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");o=new URL(t.registration_endpoint)}else o=new URL("/register",e);let i=await(n??fetch)(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!i.ok)throw await eae(i);return Zie.parse(await i.json())}var Gj=class extends Error{constructor(t,r,n){super(`SSE error: ${r}`),this.code=t,this.event=n}},E6=class{constructor(t,r){this._url=t,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=r?.eventSourceInit,this._requestInit=r?.requestInit,this._authProvider=r?.authProvider,this._fetch=r?.fetch,this._fetchWithInit=x6(r?.fetch,r?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new As("No auth provider");let t;try{t=await Al(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(r){throw this.onerror?.(r),r}if(t!=="AUTHORIZED")throw new As;return await this._startOrAuth()}async _commonHeaders(){let t={};if(this._authProvider){let n=await this._authProvider.tokens();n&&(t.Authorization=`Bearer ${n.access_token}`)}this._protocolVersion&&(t["mcp-protocol-version"]=this._protocolVersion);let r=av(this._requestInit?.headers);return new Headers({...t,...r})}_startOrAuth(){let t=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((r,n)=>{this._eventSource=new Wy(this._url.href,{...this._eventSourceInit,fetch:async(o,i)=>{let a=await this._commonHeaders();a.set("Accept","text/event-stream");let s=await t(o,{...i,headers:a});if(s.status===401&&s.headers.has("www-authenticate")){let{resourceMetadataUrl:c,scope:p}=sv(s);this._resourceMetadataUrl=c,this._scope=p}return s}}),this._abortController=new AbortController,this._eventSource.onerror=o=>{if(o.code===401&&this._authProvider){this._authThenStart().then(r,n);return}let i=new Gj(o.code,o.message,o);n(i),this.onerror?.(i)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",o=>{let i=o;try{if(this._endpoint=new URL(i.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(a){n(a),this.onerror?.(a),this.close();return}r()}),this._eventSource.onmessage=o=>{let i=o,a;try{a=sm.parse(JSON.parse(i.data))}catch(s){this.onerror?.(s);return}this.onmessage?.(a)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(t){if(!this._authProvider)throw new As("No auth provider");if(await Al(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new As("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(t){if(!this._endpoint)throw new Error("Not connected");try{let r=await this._commonHeaders();r.set("content-type","application/json");let n={...this._requestInit,method:"POST",headers:r,body:JSON.stringify(t),signal:this._abortController?.signal},o=await(this._fetch??fetch)(this._endpoint,n);if(!o.ok){let i=await o.text().catch(()=>null);if(o.status===401&&this._authProvider){let{resourceMetadataUrl:a,scope:s}=sv(o);if(this._resourceMetadataUrl=a,this._scope=s,await Al(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new As;return this.send(t)}throw new Error(`Error POSTing to endpoint (HTTP ${o.status}): ${i}`)}await o.body?.cancel()}catch(r){throw this.onerror?.(r),r}}setProtocolVersion(t){this._protocolVersion=t}};var Gae=n0(Vae(),1);import I6 from"node:process";import{PassThrough as H5e}from"node:stream";var D6=class{append(t){this._buffer=this._buffer?Buffer.concat([this._buffer,t]):t}readMessage(){if(!this._buffer)return null;let t=this._buffer.indexOf(` +`);if(t===-1)return null;let r=this._buffer.toString("utf8",0,t).replace(/\r$/,"");return this._buffer=this._buffer.subarray(t+1),G5e(r)}clear(){this._buffer=void 0}};function G5e(e){return sm.parse(JSON.parse(e))}function Kae(e){return JSON.stringify(e)+` +`}var Z5e=I6.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"];function W5e(){let e={};for(let t of Z5e){let r=I6.env[t];r!==void 0&&(r.startsWith("()")||(e[t]=r))}return e}var A6=class{constructor(t){this._readBuffer=new D6,this._stderrStream=null,this._serverParams=t,(t.stderr==="pipe"||t.stderr==="overlapped")&&(this._stderrStream=new H5e)}async start(){if(this._process)throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((t,r)=>{this._process=(0,Gae.default)(this._serverParams.command,this._serverParams.args??[],{env:{...W5e(),...this._serverParams.env},stdio:["pipe","pipe",this._serverParams.stderr??"inherit"],shell:!1,windowsHide:I6.platform==="win32"&&Q5e(),cwd:this._serverParams.cwd}),this._process.on("error",n=>{r(n),this.onerror?.(n)}),this._process.on("spawn",()=>{t()}),this._process.on("close",n=>{this._process=void 0,this.onclose?.()}),this._process.stdin?.on("error",n=>{this.onerror?.(n)}),this._process.stdout?.on("data",n=>{this._readBuffer.append(n),this.processReadBuffer()}),this._process.stdout?.on("error",n=>{this.onerror?.(n)}),this._stderrStream&&this._process.stderr&&this._process.stderr.pipe(this._stderrStream)})}get stderr(){return this._stderrStream?this._stderrStream:this._process?.stderr??null}get pid(){return this._process?.pid??null}processReadBuffer(){for(;;)try{let t=this._readBuffer.readMessage();if(t===null)break;this.onmessage?.(t)}catch(t){this.onerror?.(t)}}async close(){if(this._process){let t=this._process;this._process=void 0;let r=new Promise(n=>{t.once("close",()=>{n()})});try{t.stdin?.end()}catch{}if(await Promise.race([r,new Promise(n=>setTimeout(n,2e3).unref())]),t.exitCode===null){try{t.kill("SIGTERM")}catch{}await Promise.race([r,new Promise(n=>setTimeout(n,2e3).unref())])}if(t.exitCode===null)try{t.kill("SIGKILL")}catch{}}this._readBuffer.clear()}send(t){return new Promise(r=>{if(!this._process?.stdin)throw new Error("Not connected");let n=Kae(t);this._process.stdin.write(n)?r():this._process.stdin.once("drain",r)})}};function Q5e(){return"type"in I6}var w6=class extends TransformStream{constructor({onError:t,onRetry:r,onComment:n}={}){let o;super({start(i){o=g6({onEvent:a=>{i.enqueue(a)},onError(a){t==="terminate"?i.error(a):typeof t=="function"&&t(a)},onRetry:r,onComment:n})},transform(i){o.feed(i)}})}};var X5e={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2},pm=class extends Error{constructor(t,r){super(`Streamable HTTP error: ${r}`),this.code=t}},k6=class{constructor(t,r){this._hasCompletedAuthFlow=!1,this._url=t,this._resourceMetadataUrl=void 0,this._scope=void 0,this._requestInit=r?.requestInit,this._authProvider=r?.authProvider,this._fetch=r?.fetch,this._fetchWithInit=x6(r?.fetch,r?.requestInit),this._sessionId=r?.sessionId,this._reconnectionOptions=r?.reconnectionOptions??X5e}async _authThenStart(){if(!this._authProvider)throw new As("No auth provider");let t;try{t=await Al(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(r){throw this.onerror?.(r),r}if(t!=="AUTHORIZED")throw new As;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){let t={};if(this._authProvider){let n=await this._authProvider.tokens();n&&(t.Authorization=`Bearer ${n.access_token}`)}this._sessionId&&(t["mcp-session-id"]=this._sessionId),this._protocolVersion&&(t["mcp-protocol-version"]=this._protocolVersion);let r=av(this._requestInit?.headers);return new Headers({...t,...r})}async _startOrAuthSse(t){let{resumptionToken:r}=t;try{let n=await this._commonHeaders();n.set("Accept","text/event-stream"),r&&n.set("last-event-id",r);let o=await(this._fetch??fetch)(this._url,{method:"GET",headers:n,signal:this._abortController?.signal});if(!o.ok){if(await o.body?.cancel(),o.status===401&&this._authProvider)return await this._authThenStart();if(o.status===405)return;throw new pm(o.status,`Failed to open SSE stream: ${o.statusText}`)}this._handleSseStream(o.body,t,!0)}catch(n){throw this.onerror?.(n),n}}_getNextReconnectionDelay(t){if(this._serverRetryMs!==void 0)return this._serverRetryMs;let r=this._reconnectionOptions.initialReconnectionDelay,n=this._reconnectionOptions.reconnectionDelayGrowFactor,o=this._reconnectionOptions.maxReconnectionDelay;return Math.min(r*Math.pow(n,t),o)}_scheduleReconnection(t,r=0){let n=this._reconnectionOptions.maxRetries;if(r>=n){this.onerror?.(new Error(`Maximum reconnection attempts (${n}) exceeded.`));return}let o=this._getNextReconnectionDelay(r);this._reconnectionTimeout=setTimeout(()=>{this._startOrAuthSse(t).catch(i=>{this.onerror?.(new Error(`Failed to reconnect SSE stream: ${i instanceof Error?i.message:String(i)}`)),this._scheduleReconnection(t,r+1)})},o)}_handleSseStream(t,r,n){if(!t)return;let{onresumptiontoken:o,replayMessageId:i}=r,a,s=!1,c=!1;(async()=>{try{let d=t.pipeThrough(new TextDecoderStream).pipeThrough(new w6({onRetry:y=>{this._serverRetryMs=y}})).getReader();for(;;){let{value:y,done:g}=await d.read();if(g)break;if(y.id&&(a=y.id,s=!0,o?.(y.id)),!!y.data&&(!y.event||y.event==="message"))try{let S=sm.parse(JSON.parse(y.data));Ky(S)&&(c=!0,i!==void 0&&(S.id=i)),this.onmessage?.(S)}catch(S){this.onerror?.(S)}}(n||s)&&!c&&this._abortController&&!this._abortController.signal.aborted&&this._scheduleReconnection({resumptionToken:a,onresumptiontoken:o,replayMessageId:i},0)}catch(d){if(this.onerror?.(new Error(`SSE stream disconnected: ${d}`)),(n||s)&&!c&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:a,onresumptiontoken:o,replayMessageId:i},0)}catch(y){this.onerror?.(new Error(`Failed to reconnect: ${y instanceof Error?y.message:String(y)}`))}}})()}async start(){if(this._abortController)throw new Error("StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.");this._abortController=new AbortController}async finishAuth(t){if(!this._authProvider)throw new As("No auth provider");if(await Al(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new As("Failed to authorize")}async close(){this._reconnectionTimeout&&(clearTimeout(this._reconnectionTimeout),this._reconnectionTimeout=void 0),this._abortController?.abort(),this.onclose?.()}async send(t,r){try{let{resumptionToken:n,onresumptiontoken:o}=r||{};if(n){this._startOrAuthSse({resumptionToken:n,replayMessageId:nT(t)?t.id:void 0}).catch(m=>this.onerror?.(m));return}let i=await this._commonHeaders();i.set("content-type","application/json"),i.set("accept","application/json, text/event-stream");let a={...this._requestInit,method:"POST",headers:i,body:JSON.stringify(t),signal:this._abortController?.signal},s=await(this._fetch??fetch)(this._url,a),c=s.headers.get("mcp-session-id");if(c&&(this._sessionId=c),!s.ok){let m=await s.text().catch(()=>null);if(s.status===401&&this._authProvider){if(this._hasCompletedAuthFlow)throw new pm(401,"Server returned 401 after successful authentication");let{resourceMetadataUrl:y,scope:g}=sv(s);if(this._resourceMetadataUrl=y,this._scope=g,await Al(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new As;return this._hasCompletedAuthFlow=!0,this.send(t)}if(s.status===403&&this._authProvider){let{resourceMetadataUrl:y,scope:g,error:S}=sv(s);if(S==="insufficient_scope"){let b=s.headers.get("WWW-Authenticate");if(this._lastUpscopingHeader===b)throw new pm(403,"Server returned 403 after trying upscoping");if(g&&(this._scope=g),y&&(this._resourceMetadataUrl=y),this._lastUpscopingHeader=b??void 0,await Al(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetch})!=="AUTHORIZED")throw new As;return this.send(t)}}throw new pm(s.status,`Error POSTing to endpoint: ${m}`)}if(this._hasCompletedAuthFlow=!1,this._lastUpscopingHeader=void 0,s.status===202){await s.body?.cancel(),lie(t)&&this._startOrAuthSse({resumptionToken:void 0}).catch(m=>this.onerror?.(m));return}let d=(Array.isArray(t)?t:[t]).filter(m=>"method"in m&&"id"in m&&m.id!==void 0).length>0,f=s.headers.get("content-type");if(d)if(f?.includes("text/event-stream"))this._handleSseStream(s.body,{onresumptiontoken:o},!1);else if(f?.includes("application/json")){let m=await s.json(),y=Array.isArray(m)?m.map(g=>sm.parse(g)):[sm.parse(m)];for(let g of y)this.onmessage?.(g)}else throw await s.body?.cancel(),new pm(-1,`Unexpected content type: ${f}`);else await s.body?.cancel()}catch(n){throw this.onerror?.(n),n}}get sessionId(){return this._sessionId}async terminateSession(){if(this._sessionId)try{let t=await this._commonHeaders(),r={...this._requestInit,method:"DELETE",headers:t,signal:this._abortController?.signal},n=await(this._fetch??fetch)(this._url,r);if(await n.body?.cancel(),!n.ok&&n.status!==405)throw new pm(n.status,`Failed to terminate session: ${n.statusText}`);this._sessionId=void 0}catch(t){throw this.onerror?.(t),t}}setProtocolVersion(t){this._protocolVersion=t}get protocolVersion(){return this._protocolVersion}async resumeStream(t,r){await this._startOrAuthSse({resumptionToken:t,onresumptiontoken:r?.onresumptiontoken})}};import*as Hae from"effect/Data";import*as ns from"effect/Effect";var C6=class extends Hae.TaggedError("McpConnectionError"){},tg=e=>e.transport==="stdio"||typeof e.command=="string"&&e.command.trim().length>0,P6=e=>new C6(e),Y5e=e=>ns.try({try:()=>{if(!e.endpoint)throw new Error("MCP endpoint is required for HTTP/SSE transports");let t=new URL(e.endpoint);for(let[r,n]of Object.entries(e.queryParams))t.searchParams.set(r,n);return t},catch:t=>P6({transport:e.transport,message:"Failed building MCP endpoint URL",cause:t})}),eLe=(e,t,r)=>{let n=new Headers(t?.headers??{});for(let[o,i]of Object.entries(r))n.set(o,i);return fetch(e,{...t,headers:n})},tLe=e=>({client:e,close:()=>e.close()}),rLe=e=>ns.tryPromise({try:()=>e.close(),catch:t=>P6({transport:"auto",message:"Failed closing MCP client",cause:t})}).pipe(ns.ignore),nB=e=>ns.gen(function*(){let t=e.createClient(),r=e.createTransport();return yield*ns.tryPromise({try:()=>t.connect(r),catch:n=>P6({transport:e.transport,message:`Failed connecting to MCP server via ${e.transport}: ${n instanceof Error?n.message:String(n)}`,cause:n})}).pipe(ns.as(tLe(t)),ns.onError(()=>rLe(t)))}),dm=e=>{let t=e.headers??{},r=tg(e)?"stdio":e.transport??"auto",n=Object.keys(t).length>0?{headers:t}:void 0,o=()=>new h6({name:e.clientName??"executor-codemode-mcp",version:e.clientVersion??"0.1.0"},{capabilities:{elicitation:{form:{},url:{}}}});return ns.gen(function*(){if(r==="stdio"){let c=e.command?.trim();return c?yield*nB({createClient:o,transport:"stdio",createTransport:()=>new A6({command:c,args:e.args?[...e.args]:void 0,env:e.env,cwd:e.cwd?.trim().length?e.cwd.trim():void 0})}):yield*P6({transport:"stdio",message:"MCP stdio transport requires a command",cause:new Error("Missing MCP stdio command")})}let i=yield*Y5e({endpoint:e.endpoint,queryParams:e.queryParams??{},transport:r}),a=nB({createClient:o,transport:"streamable-http",createTransport:()=>new k6(i,{requestInit:n,authProvider:e.authProvider})});if(r==="streamable-http")return yield*a;let s=nB({createClient:o,transport:"sse",createTransport:()=>new E6(i,{authProvider:e.authProvider,requestInit:n,eventSourceInit:n?{fetch:(c,p)=>eLe(c,p,t)}:void 0})});return r==="sse"?yield*s:yield*a.pipe(ns.catchAll(()=>s))})};var Ca=1;import{Schema as po}from"effect";var Ip=po.String.pipe(po.brand("DocumentId")),wp=po.String.pipe(po.brand("ResourceId")),Du=po.String.pipe(po.brand("ScopeId")),Oc=po.String.pipe(po.brand("CapabilityId")),Qs=po.String.pipe(po.brand("ExecutableId")),_m=po.String.pipe(po.brand("ResponseSetId")),y_=po.String.pipe(po.brand("DiagnosticId")),mn=po.String.pipe(po.brand("ShapeSymbolId")),fm=po.String.pipe(po.brand("ParameterSymbolId")),rg=po.String.pipe(po.brand("RequestBodySymbolId")),Nc=po.String.pipe(po.brand("ResponseSymbolId")),mm=po.String.pipe(po.brand("HeaderSymbolId")),kp=po.String.pipe(po.brand("ExampleSymbolId")),hm=po.String.pipe(po.brand("SecuritySchemeSymbolId")),Zae=po.Union(mn,fm,rg,Nc,mm,kp,hm);import*as Qae from"effect/Effect";var Wae=5e3,Ci=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Au=e=>typeof e=="string"&&e.length>0?e:null,Cp=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},Pp=e=>new URL(e).hostname,os=e=>{let t=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"");return t.length>0?t:"source"},Xae=e=>{let t=e.trim();if(t.length===0)throw new Error("Source URL is required");let r=new URL(t);if(r.protocol!=="http:"&&r.protocol!=="https:")throw new Error("Source URL must use http or https");return r.toString()},uv=(e,t)=>({...t,suggestedKind:e,supported:!1}),Iu=(e,t)=>({...t,suggestedKind:e,supported:!0}),ng=e=>({suggestedKind:"unknown",confidence:"low",supported:!1,reason:e,headerName:null,prefix:null,parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}),Op=(e,t="high")=>Iu("none",{confidence:t,reason:e,headerName:null,prefix:null,parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}),Yae=(e,t)=>{let r=e["www-authenticate"]??e["WWW-Authenticate"];if(!r)return ng(t);let n=r.toLowerCase();return n.includes("bearer")?Iu("bearer",{confidence:n.includes("realm=")?"medium":"low",reason:`Derived from HTTP challenge: ${r}`,headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}):n.includes("basic")?uv("basic",{confidence:"medium",reason:`Derived from HTTP challenge: ${r}`,headerName:"Authorization",prefix:"Basic ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:[]}):ng(t)},ese=e=>e==null||e.kind==="none"?{}:e.kind==="headers"?{...e.headers}:e.kind==="basic"?{Authorization:`Basic ${Buffer.from(`${e.username}:${e.password}`).toString("base64")}`}:{[Cp(e.headerName)??"Authorization"]:`${e.prefix??"Bearer "}${e.token}`},nLe=e=>{let t={};return e.headers.forEach((r,n)=>{t[n]=r}),t},pv=e=>Qae.tryPromise({try:async()=>{let t;try{t=await fetch(e.url,{method:e.method,headers:e.headers,body:e.body,signal:AbortSignal.timeout(Wae)})}catch(r){throw r instanceof Error&&(r.name==="AbortError"||r.name==="TimeoutError")?new Error(`Source discovery timed out after ${Wae}ms`):r}return{status:t.status,headers:nLe(t),text:await t.text()}},catch:t=>t instanceof Error?t:new Error(String(t))}),ym=e=>/graphql/i.test(new URL(e).pathname),tse=e=>{try{return JSON.parse(e)}catch{return null}},rse=e=>{let t=e,r=Pp(t);return{detectedKind:"unknown",confidence:"low",endpoint:t,specUrl:null,name:r,namespace:os(r),transport:null,authInference:ng("Could not infer source kind or auth requirements from the provided URL"),toolCount:null,warnings:["Could not confirm whether the URL is Google Discovery, OpenAPI, GraphQL, or MCP."]}};var CT=e=>e===null||typeof e!="object"?JSON.stringify(e):Array.isArray(e)?`[${e.map(r=>CT(r)).join(",")}]`:`{${Object.entries(e).sort(([r],[n])=>r.localeCompare(n)).map(([r,n])=>`${JSON.stringify(r)}:${CT(n)}`).join(",")}}`,hn=e=>Dc(CT(e)).slice(0,16),Vr=e=>e,Xs=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},oLe=(...e)=>{let t={};for(let r of e){let n=Xs(Xs(r).$defs);for(let[o,i]of Object.entries(n))t[o]=i}return Object.keys(t).length>0?t:void 0},dv=(e,...t)=>{let r=oLe(e,...t);return r?{...e,$defs:r}:e},oB=e=>{let t=Xs(e);return t.type==="object"||t.properties!==void 0},_v=e=>{switch(e.kind){case"openapi":return"openapi";case"graphql":return"graphql-schema";case"google_discovery":return"google-discovery";case"mcp":return"mcp";default:return"custom"}},g_=(e,t)=>{let r=e.namespace??os(e.name);return(r?`${r}.${t}`:t).split(".").filter(o=>o.length>0)},pn=(e,t)=>[{relation:"declared",documentId:e,pointer:t}],S_=e=>({approval:{mayRequire:e!=="read",reasons:e==="delete"?["delete"]:e==="write"||e==="action"?["write"]:[]},elicitation:{mayRequest:!1},resume:{supported:!1}}),Is=e=>({sourceKind:_v(e.source),adapterKey:e.adapterKey,importerVersion:"ir.v1.snapshot_builder",importedAt:new Date().toISOString(),sourceConfigHash:e.source.sourceHash??hn({endpoint:e.source.endpoint,binding:e.source.binding,auth:e.source.auth?.kind??null})}),In=e=>{let t=e.summary??void 0,r=e.description??void 0,n=e.externalDocsUrl??void 0;if(!(!t&&!r&&!n))return{...t?{summary:t}:{},...r?{description:r}:{},...n?{externalDocsUrl:n}:{}}},gm=e=>{let t=kp.make(`example_${hn({pointer:e.pointer,value:e.value})}`);return Vr(e.catalog.symbols)[t]={id:t,kind:"example",exampleKind:"value",...e.name?{name:e.name}:{},...In({summary:e.summary??null,description:e.description??null})?{docs:In({summary:e.summary??null,description:e.description??null})}:{},value:e.value,synthetic:!1,provenance:pn(e.documentId,e.pointer)},t},kT=(e,t)=>{let r=Xs(e),n=Xs(r.properties);if(n[t]!==void 0)return n[t]},PT=(e,t,r)=>{let n=kT(e,r);if(n!==void 0)return n;let i=kT(e,t==="header"?"headers":t==="cookie"?"cookies":t);return i===void 0?void 0:kT(i,r)},fv=e=>kT(e,"body")??kT(e,"input"),OT=e=>{let t=e&&e.length>0?[...e]:["application/json"],r=[...t.filter(n=>n==="application/json"),...t.filter(n=>n!=="application/json"&&n.toLowerCase().includes("+json")),...t.filter(n=>n!=="application/json"&&!n.toLowerCase().includes("+json")&&n.toLowerCase().includes("json")),...t];return[...new Set(r)]},v_=e=>{let t=_m.make(`response_set_${hn({responseId:e.responseId,traits:e.traits})}`);return Vr(e.catalog.responseSets)[t]={id:t,variants:[{match:{kind:"range",value:"2XX"},responseId:e.responseId,...e.traits&&e.traits.length>0?{traits:e.traits}:{}}],synthetic:!1,provenance:e.provenance},t},iB=e=>{let t=_m.make(`response_set_${hn({variants:e.variants.map(r=>({match:r.match,responseId:r.responseId,traits:r.traits}))})}`);return Vr(e.catalog.responseSets)[t]={id:t,variants:e.variants,synthetic:!1,provenance:e.provenance},t},aB=e=>{let t=e.trim().toUpperCase();return/^\d{3}$/.test(t)?{kind:"exact",status:Number(t)}:/^[1-5]XX$/.test(t)?{kind:"range",value:t}:{kind:"default"}};var mv=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{},wu=e=>typeof e=="string"&&e.trim().length>0?e:null,nse=e=>typeof e=="boolean"?e:null,O6=e=>typeof e=="number"&&Number.isFinite(e)?e:null,NT=e=>Array.isArray(e)?e:[],ose=e=>NT(e).flatMap(t=>{let r=wu(t);return r===null?[]:[r]}),iLe=e=>e.replace(/~1/g,"/").replace(/~0/g,"~"),aLe=e=>{if(!e.startsWith("#/"))return!1;let t=e.slice(2).split("/").map(iLe);for(let r=0;r{let r=y_.make(`diag_${hn(t)}`);return Vr(e.diagnostics)[r]={id:r,...t},r},cLe=e=>({sourceKind:_v(e.source),kind:e.kind,pointer:e.pointer,encoding:"json",...e.summary?{summary:e.summary}:{},value:e.value}),ise=e=>{let t=new Map,r=new Map,n=new Map,o=[],i=new Set,a=(c,p)=>{if(p==="#"||p.length===0)return c;let d=p.replace(/^#\//,"").split("/").map(m=>m.replace(/~1/g,"/").replace(/~0/g,"~")),f=c;for(let m of d){if(Array.isArray(f)){let y=Number(m);f=Number.isInteger(y)?f[y]:void 0;continue}f=mv(f)[m]}return f},s=(c,p,d)=>{let f=`${e.resourceId}:${p}`,m=t.get(f);if(m){let g=o.indexOf(m);if(g!==-1)for(let S of o.slice(g))i.add(S);return m}let y=mn.make(`shape_${hn({resourceId:e.resourceId,key:p})}`);t.set(f,y),o.push(y);try{let g=mv(c),S=wu(g.title)??void 0,b=In({description:wu(g.description)}),E=nse(g.deprecated)??void 0,I=S!==void 0||aLe(p),T=(xe,Rt={})=>{let Jt=CT(xe),Yt=i.has(y),vt=Yt||I?void 0:r.get(Jt);if(vt){let Fr=e.catalog.symbols[vt];return Fr?.kind==="shape"&&(Fr.title===void 0&&S&&(Vr(e.catalog.symbols)[vt]={...Fr,title:S}),Fr.docs===void 0&&b&&(Vr(e.catalog.symbols)[vt]={...Vr(e.catalog.symbols)[vt],docs:b}),Fr.deprecated===void 0&&E!==void 0&&(Vr(e.catalog.symbols)[vt]={...Vr(e.catalog.symbols)[vt],deprecated:E})),n.set(y,vt),t.set(f,vt),vt}return Vr(e.catalog.symbols)[y]={id:y,kind:"shape",resourceId:e.resourceId,...S?{title:S}:{},...b?{docs:b}:{},...E!==void 0?{deprecated:E}:{},node:xe,synthetic:!1,provenance:pn(e.documentId,p),...Rt.diagnosticIds&&Rt.diagnosticIds.length>0?{diagnosticIds:Rt.diagnosticIds}:{},...Rt.native&&Rt.native.length>0?{native:Rt.native}:{}},!Yt&&!I&&r.set(Jt,y),y};if(typeof c=="boolean")return T({type:"unknown",reason:c?"schema_true":"schema_false"});let k=wu(g.$ref);if(k!==null){let xe=k.startsWith("#")?a(d??c,k):void 0;if(xe===void 0){let Jt=sLe(e.catalog,{level:"warning",code:"unresolved_ref",message:`Unresolved JSON schema ref ${k}`,provenance:pn(e.documentId,p),relatedSymbolIds:[y]});return T({type:"unknown",reason:`unresolved_ref:${k}`},{diagnosticIds:[Jt]}),t.get(f)}let Rt=s(xe,k,d??c);return T({type:"ref",target:Rt})}let F=NT(g.enum);if(F.length===1)return T({type:"const",value:F[0]});if(F.length>1)return T({type:"enum",values:F});if("const"in g)return T({type:"const",value:g.const});let O=NT(g.anyOf);if(O.length>0)return T({type:"anyOf",items:O.map((xe,Rt)=>s(xe,`${p}/anyOf/${Rt}`,d??c))});let $=NT(g.allOf);if($.length>0)return T({type:"allOf",items:$.map((xe,Rt)=>s(xe,`${p}/allOf/${Rt}`,d??c))});let N=NT(g.oneOf);if(N.length>0)return T({type:"oneOf",items:N.map((xe,Rt)=>s(xe,`${p}/oneOf/${Rt}`,d??c))});if("if"in g||"then"in g||"else"in g)return T({type:"conditional",ifShapeId:s(g.if??{},`${p}/if`,d??c),thenShapeId:s(g.then??{},`${p}/then`,d??c),...g.else!==void 0?{elseShapeId:s(g.else,`${p}/else`,d??c)}:{}});if("not"in g)return T({type:"not",itemShapeId:s(g.not,`${p}/not`,d??c)});let U=g.type,ge=Array.isArray(U)?U.flatMap(xe=>{let Rt=wu(xe);return Rt===null?[]:[Rt]}):[],Te=nse(g.nullable)===!0||ge.includes("null"),ke=Array.isArray(U)?ge.find(xe=>xe!=="null")??null:wu(U),Je=xe=>(T({type:"nullable",itemShapeId:xe}),y),me={};for(let xe of["format","minLength","maxLength","pattern","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","default","examples"])g[xe]!==void 0&&(me[xe]=g[xe]);if(ke==="object"||"properties"in g||"additionalProperties"in g||"patternProperties"in g){let xe=Object.fromEntries(Object.entries(mv(g.properties)).map(([Fr,le])=>[Fr,{shapeId:s(le,`${p}/properties/${Fr}`,d??c),...In({description:wu(mv(le).description)})?{docs:In({description:wu(mv(le).description)})}:{}}])),Rt=Object.fromEntries(Object.entries(mv(g.patternProperties)).map(([Fr,le])=>[Fr,s(le,`${p}/patternProperties/${Fr}`,d??c)])),Jt=g.additionalProperties,Yt=typeof Jt=="boolean"?Jt:Jt!==void 0?s(Jt,`${p}/additionalProperties`,d??c):void 0,vt={type:"object",fields:xe,...ose(g.required).length>0?{required:ose(g.required)}:{},...Yt!==void 0?{additionalProperties:Yt}:{},...Object.keys(Rt).length>0?{patternProperties:Rt}:{}};if(Te){let Fr=s({...g,nullable:!1,type:"object"},`${p}:nonnull`,d??c);return Je(Fr)}return T(vt)}if(ke==="array"||"items"in g||"prefixItems"in g){if(Array.isArray(g.prefixItems)&&g.prefixItems.length>0){let Jt={type:"tuple",itemShapeIds:g.prefixItems.map((Yt,vt)=>s(Yt,`${p}/prefixItems/${vt}`,d??c)),...g.items!==void 0?{additionalItems:typeof g.items=="boolean"?g.items:s(g.items,`${p}/items`,d??c)}:{}};if(Te){let Yt=s({...g,nullable:!1,type:"array"},`${p}:nonnull`,d??c);return Je(Yt)}return T(Jt)}let xe=g.items??{},Rt={type:"array",itemShapeId:s(xe,`${p}/items`,d??c),...O6(g.minItems)!==null?{minItems:O6(g.minItems)}:{},...O6(g.maxItems)!==null?{maxItems:O6(g.maxItems)}:{}};if(Te){let Jt=s({...g,nullable:!1,type:"array"},`${p}:nonnull`,d??c);return Je(Jt)}return T(Rt)}if(ke==="string"||ke==="number"||ke==="integer"||ke==="boolean"||ke==="null"){let xe=ke==="null"?"null":ke==="integer"?"integer":ke==="number"?"number":ke==="boolean"?"boolean":wu(g.format)==="binary"?"bytes":"string",Rt={type:"scalar",scalar:xe,...wu(g.format)?{format:wu(g.format)}:{},...Object.keys(me).length>0?{constraints:me}:{}};if(Te&&xe!=="null"){let Jt=s({...g,nullable:!1,type:ke},`${p}:nonnull`,d??c);return Je(Jt)}return T(Rt)}return T({type:"unknown",reason:`unsupported_schema:${p}`},{native:[cLe({source:e.source,kind:"json_schema",pointer:p,value:c,summary:"Unsupported JSON schema preserved natively"})]})}finally{if(o.pop()!==y)throw new Error(`JSON schema importer stack mismatch for ${y}`)}};return{importSchema:(c,p,d)=>s(c,p,d??c),finalize:()=>{let c=p=>{if(typeof p!="string"&&!(!p||typeof p!="object")){if(Array.isArray(p)){for(let d=0;dDu.make(`scope_service_${hn({sourceId:e.id})}`),ase=(e,t)=>Ip.make(`doc_${hn({sourceId:e.id,key:t})}`),uLe=e=>wp.make(`res_${hn({sourceId:e.id})}`),pLe=e=>({sourceKind:_v(e.source),kind:e.kind,pointer:e.pointer,encoding:"json",...e.summary?{summary:e.summary}:{},value:e.value}),dLe=()=>({version:"ir.v1.fragment",documents:{},resources:{},scopes:{},symbols:{},capabilities:{},executables:{},responseSets:{},diagnostics:{}}),_Le=e=>({version:"ir.v1.fragment",...Object.keys(e.documents).length>0?{documents:e.documents}:{},...Object.keys(e.resources).length>0?{resources:e.resources}:{},...Object.keys(e.scopes).length>0?{scopes:e.scopes}:{},...Object.keys(e.symbols).length>0?{symbols:e.symbols}:{},...Object.keys(e.capabilities).length>0?{capabilities:e.capabilities}:{},...Object.keys(e.executables).length>0?{executables:e.executables}:{},...Object.keys(e.responseSets).length>0?{responseSets:e.responseSets}:{},...Object.keys(e.diagnostics).length>0?{diagnostics:e.diagnostics}:{}}),fLe=e=>{let t=lLe(e.source);return Vr(e.catalog.scopes)[t]={id:t,kind:"service",name:e.source.name,namespace:e.source.namespace??os(e.source.name),docs:In({summary:e.source.name}),...e.defaults?{defaults:e.defaults}:{},synthetic:!1,provenance:pn(e.documentId,"#/service")},t},b_=e=>{let t=dLe(),r=e.documents.length>0?e.documents:[{documentKind:"synthetic",documentKey:e.source.endpoint,fetchedAt:Date.now(),contentText:"{}"}],n=r[0],o=n.documentKey??e.source.endpoint??e.source.id,i=ase(e.source,`${n.documentKind}:${n.documentKey}`),a=uLe(e.source);for(let p of r){let d=ase(e.source,`${p.documentKind}:${p.documentKey}`);Vr(t.documents)[d]={id:d,kind:_v(e.source),title:e.source.name,fetchedAt:new Date(p.fetchedAt??Date.now()).toISOString(),rawRef:p.documentKey,entryUri:p.documentKey.startsWith("http")?p.documentKey:void 0,native:[pLe({source:e.source,kind:"source_document",pointer:`#/${p.documentKind}`,value:p.contentText,summary:p.documentKind})]}}Vr(t.resources)[a]={id:a,documentId:i,canonicalUri:o,baseUri:o,...e.resourceDialectUri?{dialectUri:e.resourceDialectUri}:{},anchors:{},dynamicAnchors:{},synthetic:!1,provenance:pn(i,"#")};let s=fLe({catalog:t,source:e.source,documentId:i,defaults:e.serviceScopeDefaults}),c=ise({catalog:t,source:e.source,resourceId:a,documentId:i});return e.registerOperations({catalog:t,documentId:i,serviceScopeId:s,importer:c}),c.finalize(),_Le(t)};import*as uB from"effect/ParseResult";import{Schema as pB}from"effect";import{Schema as w}from"effect";var sB=w.Literal("openapi","graphql-schema","google-discovery","mcp","custom"),mLe=w.Literal("service","document","resource","pathItem","operation","folder"),hLe=w.Literal("read","write","delete","action","subscribe"),yLe=w.Literal("path","query","header","cookie"),gLe=w.Literal("success","redirect","stream","download","upload","longRunning"),SLe=w.Literal("oauth2","http","apiKey","basic","bearer","custom"),vLe=w.Literal("1XX","2XX","3XX","4XX","5XX"),bLe=w.Literal("cursor","offset","token","unknown"),xLe=w.Literal("info","warning","error"),ELe=w.Literal("external_ref_bundled","relative_ref_rebased","schema_hoisted","selection_shape_synthesized","opaque_hook_imported","discriminator_lost","multi_response_union_synthesized","unsupported_link_preserved_native","unsupported_callback_preserved_native","unresolved_ref","merge_conflict_preserved_first","projection_call_shape_synthesized","projection_result_shape_synthesized","projection_collision_grouped_fields","synthetic_resource_context_created","selection_shape_missing"),TLe=w.Literal("json","yaml","graphql","text","unknown"),DLe=w.Literal("declared","hoisted","derived","merged","projected"),Np=w.Struct({summary:w.optional(w.String),description:w.optional(w.String),externalDocsUrl:w.optional(w.String)}),cse=w.Struct({relation:DLe,documentId:Ip,resourceId:w.optional(wp),pointer:w.optional(w.String),line:w.optional(w.Number),column:w.optional(w.Number)}),lse=w.Struct({sourceKind:sB,kind:w.String,pointer:w.optional(w.String),encoding:w.optional(TLe),summary:w.optional(w.String),value:w.optional(w.Unknown)}),Il=w.Struct({synthetic:w.Boolean,provenance:w.Array(cse),diagnosticIds:w.optional(w.Array(y_)),native:w.optional(w.Array(lse))}),ALe=w.Struct({sourceKind:sB,adapterKey:w.String,importerVersion:w.String,importedAt:w.String,sourceConfigHash:w.String}),use=w.Struct({id:Ip,kind:sB,title:w.optional(w.String),versionHint:w.optional(w.String),fetchedAt:w.String,rawRef:w.String,entryUri:w.optional(w.String),native:w.optional(w.Array(lse))}),pse=w.Struct({shapeId:mn,docs:w.optional(Np),deprecated:w.optional(w.Boolean),exampleIds:w.optional(w.Array(kp))}),ILe=w.Struct({propertyName:w.String,mapping:w.optional(w.Record({key:w.String,value:mn}))}),wLe=w.Struct({type:w.Literal("scalar"),scalar:w.Literal("string","number","integer","boolean","null","bytes"),format:w.optional(w.String),constraints:w.optional(w.Record({key:w.String,value:w.Unknown}))}),kLe=w.Struct({type:w.Literal("unknown"),reason:w.optional(w.String)}),CLe=w.Struct({type:w.Literal("const"),value:w.Unknown}),PLe=w.Struct({type:w.Literal("enum"),values:w.Array(w.Unknown)}),OLe=w.Struct({type:w.Literal("object"),fields:w.Record({key:w.String,value:pse}),required:w.optional(w.Array(w.String)),additionalProperties:w.optional(w.Union(w.Boolean,mn)),patternProperties:w.optional(w.Record({key:w.String,value:mn}))}),NLe=w.Struct({type:w.Literal("array"),itemShapeId:mn,minItems:w.optional(w.Number),maxItems:w.optional(w.Number)}),FLe=w.Struct({type:w.Literal("tuple"),itemShapeIds:w.Array(mn),additionalItems:w.optional(w.Union(w.Boolean,mn))}),RLe=w.Struct({type:w.Literal("map"),valueShapeId:mn}),LLe=w.Struct({type:w.Literal("allOf"),items:w.Array(mn)}),$Le=w.Struct({type:w.Literal("anyOf"),items:w.Array(mn)}),MLe=w.Struct({type:w.Literal("oneOf"),items:w.Array(mn),discriminator:w.optional(ILe)}),jLe=w.Struct({type:w.Literal("nullable"),itemShapeId:mn}),BLe=w.Struct({type:w.Literal("ref"),target:mn}),qLe=w.Struct({type:w.Literal("not"),itemShapeId:mn}),ULe=w.Struct({type:w.Literal("conditional"),ifShapeId:mn,thenShapeId:w.optional(mn),elseShapeId:w.optional(mn)}),zLe=w.Struct({type:w.Literal("graphqlInterface"),fields:w.Record({key:w.String,value:pse}),possibleTypeIds:w.Array(mn)}),JLe=w.Struct({type:w.Literal("graphqlUnion"),memberTypeIds:w.Array(mn)}),VLe=w.Union(kLe,wLe,CLe,PLe,OLe,NLe,FLe,RLe,LLe,$Le,MLe,jLe,BLe,qLe,ULe,zLe,JLe),sse=w.Struct({shapeId:mn,pointer:w.optional(w.String)}),dse=w.extend(w.Struct({id:wp,documentId:Ip,canonicalUri:w.String,baseUri:w.String,dialectUri:w.optional(w.String),rootShapeId:w.optional(mn),anchors:w.Record({key:w.String,value:sse}),dynamicAnchors:w.Record({key:w.String,value:sse})}),Il),KLe=w.Union(w.Struct({location:w.Literal("header","query","cookie"),name:w.String}),w.Struct({location:w.Literal("body"),path:w.String})),GLe=w.Struct({authorizationUrl:w.optional(w.String),tokenUrl:w.optional(w.String),refreshUrl:w.optional(w.String),scopes:w.optional(w.Record({key:w.String,value:w.String}))}),HLe=w.Struct({in:w.optional(w.Literal("header","query","cookie")),name:w.optional(w.String)}),ZLe=w.extend(w.Struct({id:hm,kind:w.Literal("securityScheme"),schemeType:SLe,docs:w.optional(Np),placement:w.optional(HLe),http:w.optional(w.Struct({scheme:w.String,bearerFormat:w.optional(w.String)})),apiKey:w.optional(w.Struct({in:w.Literal("header","query","cookie"),name:w.String})),oauth:w.optional(w.Struct({flows:w.optional(w.Record({key:w.String,value:GLe})),scopes:w.optional(w.Record({key:w.String,value:w.String}))})),custom:w.optional(w.Struct({placementHints:w.optional(w.Array(KLe))}))}),Il),WLe=w.Struct({contentType:w.optional(w.String),style:w.optional(w.String),explode:w.optional(w.Boolean),allowReserved:w.optional(w.Boolean),headers:w.optional(w.Array(mm))}),F6=w.Struct({mediaType:w.String,shapeId:w.optional(mn),exampleIds:w.optional(w.Array(kp)),encoding:w.optional(w.Record({key:w.String,value:WLe}))}),QLe=w.extend(w.Struct({id:mn,kind:w.Literal("shape"),resourceId:w.optional(wp),title:w.optional(w.String),docs:w.optional(Np),deprecated:w.optional(w.Boolean),node:VLe}),Il),XLe=w.extend(w.Struct({id:fm,kind:w.Literal("parameter"),name:w.String,location:yLe,required:w.optional(w.Boolean),docs:w.optional(Np),deprecated:w.optional(w.Boolean),exampleIds:w.optional(w.Array(kp)),schemaShapeId:w.optional(mn),content:w.optional(w.Array(F6)),style:w.optional(w.String),explode:w.optional(w.Boolean),allowReserved:w.optional(w.Boolean)}),Il),YLe=w.extend(w.Struct({id:mm,kind:w.Literal("header"),name:w.String,docs:w.optional(Np),deprecated:w.optional(w.Boolean),exampleIds:w.optional(w.Array(kp)),schemaShapeId:w.optional(mn),content:w.optional(w.Array(F6)),style:w.optional(w.String),explode:w.optional(w.Boolean)}),Il),e$e=w.extend(w.Struct({id:rg,kind:w.Literal("requestBody"),docs:w.optional(Np),required:w.optional(w.Boolean),contents:w.Array(F6)}),Il),t$e=w.extend(w.Struct({id:Nc,kind:w.Literal("response"),docs:w.optional(Np),headerIds:w.optional(w.Array(mm)),contents:w.optional(w.Array(F6))}),Il),r$e=w.extend(w.Struct({id:kp,kind:w.Literal("example"),name:w.optional(w.String),docs:w.optional(Np),exampleKind:w.Literal("value","call"),value:w.optional(w.Unknown),externalValue:w.optional(w.String),call:w.optional(w.Struct({args:w.Record({key:w.String,value:w.Unknown}),result:w.optional(w.Unknown)}))}),Il),_se=w.Union(QLe,XLe,e$e,t$e,YLe,r$e,ZLe),N6=w.suspend(()=>w.Union(w.Struct({kind:w.Literal("none")}),w.Struct({kind:w.Literal("scheme"),schemeId:hm,scopes:w.optional(w.Array(w.String))}),w.Struct({kind:w.Literal("allOf"),items:w.Array(N6)}),w.Struct({kind:w.Literal("anyOf"),items:w.Array(N6)}))),n$e=w.Struct({url:w.String,description:w.optional(w.String),variables:w.optional(w.Record({key:w.String,value:w.String}))}),o$e=w.Struct({servers:w.optional(w.Array(n$e)),auth:w.optional(N6),parameterIds:w.optional(w.Array(fm)),headerIds:w.optional(w.Array(mm)),variables:w.optional(w.Record({key:w.String,value:w.String}))}),fse=w.extend(w.Struct({id:Du,kind:mLe,parentId:w.optional(Du),name:w.optional(w.String),namespace:w.optional(w.String),docs:w.optional(Np),defaults:w.optional(o$e)}),Il),i$e=w.Struct({approval:w.Struct({mayRequire:w.Boolean,reasons:w.optional(w.Array(w.Literal("write","delete","sensitive","externalSideEffect")))}),elicitation:w.Struct({mayRequest:w.Boolean,shapeId:w.optional(mn)}),resume:w.Struct({supported:w.Boolean})}),mse=w.extend(w.Struct({id:Oc,serviceScopeId:Du,surface:w.Struct({toolPath:w.Array(w.String),title:w.optional(w.String),summary:w.optional(w.String),description:w.optional(w.String),aliases:w.optional(w.Array(w.String)),tags:w.optional(w.Array(w.String))}),semantics:w.Struct({effect:hLe,safe:w.optional(w.Boolean),idempotent:w.optional(w.Boolean),destructive:w.optional(w.Boolean)}),docs:w.optional(Np),auth:N6,interaction:i$e,executableIds:w.Array(Qs),preferredExecutableId:w.optional(Qs),exampleIds:w.optional(w.Array(kp))}),Il),a$e=w.Struct({protocol:w.optional(w.String),method:w.optional(w.NullOr(w.String)),pathTemplate:w.optional(w.NullOr(w.String)),operationId:w.optional(w.NullOr(w.String)),group:w.optional(w.NullOr(w.String)),leaf:w.optional(w.NullOr(w.String)),rawToolId:w.optional(w.NullOr(w.String)),title:w.optional(w.NullOr(w.String)),summary:w.optional(w.NullOr(w.String))}),s$e=w.Struct({responseSetId:_m,callShapeId:mn,resultDataShapeId:w.optional(mn),resultErrorShapeId:w.optional(mn),resultHeadersShapeId:w.optional(mn),resultStatusShapeId:w.optional(mn)}),hse=w.extend(w.Struct({id:Qs,capabilityId:Oc,scopeId:Du,adapterKey:w.String,bindingVersion:w.Number,binding:w.Unknown,projection:s$e,display:w.optional(a$e)}),Il),c$e=w.Struct({kind:bLe,tokenParamName:w.optional(w.String),nextFieldPath:w.optional(w.String)}),l$e=w.Union(w.Struct({kind:w.Literal("exact"),status:w.Number}),w.Struct({kind:w.Literal("range"),value:vLe}),w.Struct({kind:w.Literal("default")})),u$e=w.Struct({match:l$e,responseId:Nc,traits:w.optional(w.Array(gLe)),pagination:w.optional(c$e)}),yse=w.extend(w.Struct({id:_m,variants:w.Array(u$e)}),Il),gse=w.Struct({id:y_,level:xLe,code:ELe,message:w.String,relatedSymbolIds:w.optional(w.Array(Zae)),provenance:w.Array(cse)}),cB=w.Struct({version:w.Literal("ir.v1"),documents:w.Record({key:Ip,value:use}),resources:w.Record({key:wp,value:dse}),scopes:w.Record({key:Du,value:fse}),symbols:w.Record({key:w.String,value:_se}),capabilities:w.Record({key:Oc,value:mse}),executables:w.Record({key:Qs,value:hse}),responseSets:w.Record({key:_m,value:yse}),diagnostics:w.Record({key:y_,value:gse})}),Sse=w.Struct({version:w.Literal("ir.v1.fragment"),documents:w.optional(w.Record({key:Ip,value:use})),resources:w.optional(w.Record({key:wp,value:dse})),scopes:w.optional(w.Record({key:Du,value:fse})),symbols:w.optional(w.Record({key:w.String,value:_se})),capabilities:w.optional(w.Record({key:Oc,value:mse})),executables:w.optional(w.Record({key:Qs,value:hse})),responseSets:w.optional(w.Record({key:_m,value:yse})),diagnostics:w.optional(w.Record({key:y_,value:gse}))}),FT=w.Struct({version:w.Literal("ir.v1.snapshot"),import:ALe,catalog:cB});var p$e=pB.decodeUnknownSync(cB),d$e=pB.decodeUnknownSync(FT),U9t=pB.decodeUnknownSync(Sse),hv=e=>e===null||typeof e!="object"?JSON.stringify(e):Array.isArray(e)?`[${e.map(r=>hv(r)).join(",")}]`:`{${Object.entries(e).sort(([r],[n])=>r.localeCompare(n)).map(([r,n])=>`${JSON.stringify(r)}:${hv(n)}`).join(",")}}`,xse=e=>Dc(hv(e)).slice(0,16),og=e=>[...new Set(e)],_$e=e=>({version:e.version,documents:{...e.documents},resources:{...e.resources},scopes:{...e.scopes},symbols:{...e.symbols},capabilities:{...e.capabilities},executables:{...e.executables},responseSets:{...e.responseSets},diagnostics:{...e.diagnostics}}),R6=e=>e,dB=(e,t,r)=>e(`${t}_${xse(r)}`),f$e=()=>({version:"ir.v1",documents:{},resources:{},scopes:{},symbols:{},capabilities:{},executables:{},responseSets:{},diagnostics:{}}),Ese=(e,t)=>{switch(t.kind){case"none":return["none"];case"scheme":{let r=e.symbols[t.schemeId];return!r||r.kind!=="securityScheme"?["unknown"]:[r.schemeType,...(t.scopes??[]).map(n=>`scope:${n}`)]}case"allOf":case"anyOf":return og(t.items.flatMap(r=>Ese(e,r)))}};var m$e=(e,t)=>{let r=e.symbols[t];return r&&r.kind==="response"?r:void 0},h$e=e=>{let t=e.trim().toLowerCase();return t==="application/json"||t.endsWith("+json")||t==="text/json"},_B=(e,t)=>{let r=dB(y_.make,"diag",t.idSeed);return R6(e.diagnostics)[r]={id:r,level:t.level,code:t.code,message:t.message,...t.relatedSymbolIds?{relatedSymbolIds:t.relatedSymbolIds}:{},provenance:t.provenance},r},y$e=(e,t)=>{let r=dB(wp.make,"res",{kind:"projection",capabilityId:t.id});if(!e.resources[r]){let o=e.scopes[t.serviceScopeId]?.provenance[0]?.documentId??Ip.make(`doc_projection_${xse(t.id)}`);e.documents[o]||(R6(e.documents)[o]={id:o,kind:"custom",title:`Projection resource for ${t.id}`,fetchedAt:new Date(0).toISOString(),rawRef:`synthetic://projection/${t.id}`}),R6(e.resources)[r]={id:r,documentId:o,canonicalUri:`synthetic://projection/${t.id}`,baseUri:`synthetic://projection/${t.id}`,anchors:{},dynamicAnchors:{},synthetic:!0,provenance:t.provenance},_B(e,{idSeed:{code:"synthetic_resource_context_created",capabilityId:t.id},level:"info",code:"synthetic_resource_context_created",message:`Created synthetic projection resource for ${t.id}`,provenance:t.provenance})}return r},Sm=(e,t)=>{let r=y$e(e,t.capability),n=dB(mn.make,"shape",{capabilityId:t.capability.id,label:t.label,node:t.node});if(!e.symbols[n]){let o=t.diagnostic?[_B(e,{idSeed:{code:t.diagnostic.code,shapeId:n},level:t.diagnostic.level,code:t.diagnostic.code,message:t.diagnostic.message,...t.diagnostic.relatedSymbolIds?{relatedSymbolIds:t.diagnostic.relatedSymbolIds}:{},provenance:t.capability.provenance})]:void 0;R6(e.symbols)[n]={id:n,kind:"shape",resourceId:r,...t.title?{title:t.title}:{},...t.docs?{docs:t.docs}:{},node:t.node,synthetic:!0,provenance:t.capability.provenance,...o?{diagnosticIds:o}:{}}}return n},g$e=(e,t,r,n)=>{let o=og((r??[]).map(i=>i.shapeId).filter(i=>i!==void 0));if(o.length!==0)return o.length===1?o[0]:Sm(e,{capability:t,label:n,title:`${t.surface.title??t.id} content union`,node:{type:"anyOf",items:o},diagnostic:{level:"warning",code:"projection_result_shape_synthesized",message:`Synthesized content union for ${t.id}`,relatedSymbolIds:o}})},S$e=(e,t)=>{let r=t.preferredExecutableId;if(r){let o=e.executables[r];if(o)return o}let n=t.executableIds.map(o=>e.executables[o]).filter(o=>o!==void 0);if(n.length===0)throw new Error(`Capability ${t.id} has no executables`);return n[0]},v$e=e=>{switch(e.kind){case"exact":return e.status===200?100:e.status>=200&&e.status<300?80:10;case"range":return e.value==="2XX"?60:5;case"default":return 40}},vse=e=>(e.contents??[]).flatMap(t=>t.shapeId?[{mediaType:t.mediaType,shapeId:t.shapeId}]:[]),Tse=(e,t)=>[...t.variants].map(r=>{let n=m$e(e,r.responseId);return n?{variant:r,response:n,score:v$e(r.match)}:null}).filter(r=>r!==null),Dse=e=>{switch(e.kind){case"exact":return e.status>=200&&e.status<300;case"range":return e.value==="2XX";case"default":return!1}},Ase=(e,t,r,n,o)=>{let i=o.flatMap(({response:s})=>vse(s).filter(c=>h$e(c.mediaType)));if(i.length>0)return g$e(e,t,i.map(s=>({mediaType:s.mediaType,shapeId:s.shapeId})),`${r}:json`);let a=og(o.flatMap(({response:s})=>vse(s).map(c=>c.shapeId)));if(a.length!==0)return a.length===1?a[0]:Sm(e,{capability:t,label:`${r}:union`,title:n,node:{type:"anyOf",items:a},diagnostic:{level:"warning",code:"multi_response_union_synthesized",message:`Synthesized response union for ${t.id}`,relatedSymbolIds:a}})},b$e=(e,t,r)=>Ase(e,t,`responseSet:${r.id}`,`${t.surface.title??t.id} result`,Tse(e,r).filter(({variant:n})=>Dse(n.match))),x$e=(e,t,r)=>Ase(e,t,`responseSet:${r.id}:error`,`${t.surface.title??t.id} error`,Tse(e,r).filter(({variant:n})=>!Dse(n.match))),Ise=(e,t,r)=>Sm(e,{capability:t,label:r.label,title:r.title,node:{type:"scalar",scalar:r.scalar}}),E$e=(e,t,r)=>Sm(e,{capability:t,label:r,title:"null",node:{type:"const",value:null}}),bse=(e,t,r)=>Sm(e,{capability:t,label:r.label,title:r.title,node:{type:"unknown",reason:r.reason}}),lB=(e,t,r)=>{let n=E$e(e,t,`${r.label}:null`);return r.baseShapeId===n?n:Sm(e,{capability:t,label:`${r.label}:nullable`,title:r.title,node:{type:"anyOf",items:og([r.baseShapeId,n])}})},T$e=(e,t,r)=>{let n=Ise(e,t,{label:`${r}:value`,title:"Header value",scalar:"string"});return Sm(e,{capability:t,label:r,title:"Response headers",node:{type:"object",fields:{},additionalProperties:n}})},D$e=(e,t,r,n)=>{let o=bse(e,t,{label:`executionResult:${t.id}:data:unknown`,title:"Response data",reason:`Execution result data for ${t.id} is not statically known`}),i=bse(e,t,{label:`executionResult:${t.id}:error:unknown`,title:"Response error",reason:`Execution result error for ${t.id} is not statically known`}),a=T$e(e,t,`executionResult:${t.id}:headers`),s=Ise(e,t,{label:`executionResult:${t.id}:status`,title:"Response status",scalar:"integer"}),c,p,d=a,f=s;c=r.projection.resultDataShapeId??b$e(e,t,n),p=r.projection.resultErrorShapeId??x$e(e,t,n),d=r.projection.resultHeadersShapeId??a,f=r.projection.resultStatusShapeId??s;let m=lB(e,t,{label:`executionResult:${t.id}:data`,title:"Result data",baseShapeId:c??o}),y=lB(e,t,{label:`executionResult:${t.id}:error`,title:"Result error",baseShapeId:p??i}),g=lB(e,t,{label:`executionResult:${t.id}:status`,title:"Result status",baseShapeId:f});return Sm(e,{capability:t,label:`executionResult:${t.id}`,title:`${t.surface.title??t.id} result`,node:{type:"object",fields:{data:{shapeId:m,docs:{description:"Successful result payload when available."}},error:{shapeId:y,docs:{description:"Error payload when the remote execution completed but failed."}},headers:{shapeId:d,docs:{description:"Response headers when available."}},status:{shapeId:g,docs:{description:"Transport status code when available."}}},required:["data","error","headers","status"],additionalProperties:!1},diagnostic:{level:"info",code:"projection_result_shape_synthesized",message:`Synthesized execution result envelope for ${t.id}`,relatedSymbolIds:og([m,y,d,g])}})},A$e=(e,t)=>{let r=S$e(e,t),n=e.responseSets[r.projection.responseSetId];if(!n)throw new Error(`Missing response set ${r.projection.responseSetId} for ${t.id}`);let o=r.projection.callShapeId,i=D$e(e,t,r,n),s=og([...t.diagnosticIds??[],...r.diagnosticIds??[],...n.diagnosticIds??[],...o?e.symbols[o]?.diagnosticIds??[]:[],...i?e.symbols[i]?.diagnosticIds??[]:[]]).map(c=>e.diagnostics[c]).filter(c=>c!==void 0);return{toolPath:[...t.surface.toolPath],capabilityId:t.id,...t.surface.title?{title:t.surface.title}:{},...t.surface.summary?{summary:t.surface.summary}:{},effect:t.semantics.effect,interaction:{mayRequireApproval:t.interaction.approval.mayRequire,mayElicit:t.interaction.elicitation.mayRequest},callShapeId:o,...i?{resultShapeId:i}:{},responseSetId:r.projection.responseSetId,diagnosticCounts:{warning:s.filter(c=>c.level==="warning").length,error:s.filter(c=>c.level==="error").length}}},I$e=(e,t,r)=>({capabilityId:t.id,toolPath:[...t.surface.toolPath],...t.surface.summary?{summary:t.surface.summary}:{},executableIds:[...t.executableIds],auth:t.auth,interaction:t.interaction,callShapeId:r.callShapeId,...r.resultShapeId?{resultShapeId:r.resultShapeId}:{},responseSetId:r.responseSetId,...t.diagnosticIds?{diagnosticIds:[...t.diagnosticIds]}:{}}),w$e=(e,t)=>({capabilityId:t.id,toolPath:[...t.surface.toolPath],...t.surface.title?{title:t.surface.title}:{},...t.surface.summary?{summary:t.surface.summary}:{},...t.surface.tags?{tags:[...t.surface.tags]}:{},protocolHints:og(t.executableIds.map(r=>e.executables[r]?.display?.protocol??e.executables[r]?.adapterKey).filter(r=>r!==void 0)),authHints:Ese(e,t.auth),effect:t.semantics.effect});var wse=e=>{try{return p$e(e)}catch(t){throw new Error(uB.TreeFormatter.formatErrorSync(t))}};var L6=e=>{try{let t=d$e(e);return fB(t.catalog),t}catch(t){throw t instanceof Error?t:new Error(uB.TreeFormatter.formatErrorSync(t))}};var k$e=e=>{let t=fB(wse(e.catalog));return{version:"ir.v1.snapshot",import:e.import,catalog:t}},yv=e=>k$e({import:e.import,catalog:C$e(e.fragments)}),C$e=e=>{let t=f$e(),r=new Map,n=(o,i)=>{if(!i)return;let a=t[o];for(let[s,c]of Object.entries(i)){let p=a[s];if(!p){a[s]=c,r.set(`${String(o)}:${s}`,hv(c));continue}let d=r.get(`${String(o)}:${s}`)??hv(p),f=hv(c);d!==f&&o!=="diagnostics"&&_B(t,{idSeed:{collectionName:o,id:s,existingHash:d,nextHash:f},level:"error",code:"merge_conflict_preserved_first",message:`Conflicting ${String(o)} entry for ${s}; preserved first value`,provenance:"provenance"in p?p.provenance:[]})}};for(let o of e)n("documents",o.documents),n("resources",o.resources),n("scopes",o.scopes),n("symbols",o.symbols),n("capabilities",o.capabilities),n("executables",o.executables),n("responseSets",o.responseSets),n("diagnostics",o.diagnostics);return fB(wse(t))},P$e=e=>{let t=[],r=n=>{for(let o of n.provenance)e.documents[o.documentId]||t.push({code:"missing_provenance_document",entityId:n.entityId,message:`Entity ${n.entityId} references missing provenance document ${o.documentId}`})};for(let n of Object.values(e.symbols))n.provenance.length===0&&t.push({code:"missing_symbol_provenance",entityId:n.id,message:`Symbol ${n.id} is missing provenance`}),n.kind==="shape"&&(!n.resourceId&&!n.synthetic&&t.push({code:"missing_resource_context",entityId:n.id,message:`Shape ${n.id} must belong to a resource or be synthetic`}),n.node.type==="ref"&&!e.symbols[n.node.target]&&t.push({code:"missing_reference_target",entityId:n.id,message:`Shape ${n.id} references missing shape ${n.node.target}`}),n.node.type==="unknown"&&n.node.reason?.includes("unresolved")&&((n.diagnosticIds??[]).map(i=>e.diagnostics[i]).some(i=>i?.code==="unresolved_ref")||t.push({code:"missing_unresolved_ref_diagnostic",entityId:n.id,message:`Shape ${n.id} is unresolved but has no unresolved_ref diagnostic`})),n.synthetic&&n.resourceId&&!e.resources[n.resourceId]&&t.push({code:"missing_resource_context",entityId:n.id,message:`Synthetic shape ${n.id} references missing resource ${n.resourceId}`})),r({entityId:n.id,provenance:n.provenance});for(let n of[...Object.values(e.resources),...Object.values(e.scopes),...Object.values(e.capabilities),...Object.values(e.executables),...Object.values(e.responseSets)])"provenance"in n&&n.provenance.length===0&&t.push({code:"missing_entity_provenance",entityId:"id"in n?n.id:void 0,message:`Entity ${"id"in n?n.id:"unknown"} is missing provenance`}),"id"in n&&r({entityId:n.id,provenance:n.provenance});for(let n of Object.values(e.resources))e.documents[n.documentId]||t.push({code:"missing_document",entityId:n.id,message:`Resource ${n.id} references missing document ${n.documentId}`});for(let n of Object.values(e.capabilities)){e.scopes[n.serviceScopeId]||t.push({code:"missing_service_scope",entityId:n.id,message:`Capability ${n.id} references missing scope ${n.serviceScopeId}`}),n.preferredExecutableId&&!n.executableIds.includes(n.preferredExecutableId)&&t.push({code:"invalid_preferred_executable",entityId:n.id,message:`Capability ${n.id} preferred executable is not in executableIds`});for(let o of n.executableIds)e.executables[o]||t.push({code:"missing_executable",entityId:n.id,message:`Capability ${n.id} references missing executable ${o}`})}for(let n of Object.values(e.executables)){e.capabilities[n.capabilityId]||t.push({code:"missing_executable",entityId:n.id,message:`Executable ${n.id} references missing capability ${n.capabilityId}`}),e.scopes[n.scopeId]||t.push({code:"missing_scope",entityId:n.id,message:`Executable ${n.id} references missing scope ${n.scopeId}`}),e.responseSets[n.projection.responseSetId]||t.push({code:"missing_response_set",entityId:n.id,message:`Executable ${n.id} references missing response set ${n.projection.responseSetId}`});let o=[{kind:"call",shapeId:n.projection.callShapeId},{kind:"result data",shapeId:n.projection.resultDataShapeId},{kind:"result error",shapeId:n.projection.resultErrorShapeId},{kind:"result headers",shapeId:n.projection.resultHeadersShapeId},{kind:"result status",shapeId:n.projection.resultStatusShapeId}];for(let i of o)!i.shapeId||e.symbols[i.shapeId]?.kind==="shape"||t.push({code:"missing_projection_shape",entityId:n.id,message:`Executable ${n.id} references missing ${i.kind} shape ${i.shapeId}`})}return t},fB=e=>{let t=P$e(e);if(t.length===0)return e;let r=t.slice(0,5).map(n=>`${n.code}: ${n.message}`).join(` `);throw new Error([`Invalid IR catalog (${t.length} invariant violation${t.length===1?"":"s"}).`,r,...t.length>5?[`...and ${String(t.length-5)} more`]:[]].join(` -`))},NT=e=>{let t=p$e(e.catalog),r={},n={},o={},i=Object.values(t.capabilities).sort((a,s)=>a.id.localeCompare(s.id));for(let a of i){let s=T$e(t,a);r[a.id]=s,n[a.id]=A$e(t,a),o[a.id]=D$e(t,a,s)}return{catalog:t,toolDescriptors:r,searchDocs:n,capabilityViews:o}};var FT=e=>Dc(e),Np=e=>e,RT=e=>fv({import:e.importMetadata,fragments:[e.fragment]});import*as kse from"effect/Schema";var wse=e=>{let t=new Map(e.map(i=>[i.key,i])),r=i=>{let a=t.get(i);if(!a)throw new Error(`Unsupported source adapter: ${i}`);return a},n=i=>r(i.kind);return{adapters:e,getSourceAdapter:r,getSourceAdapterForSource:n,findSourceAdapterByProviderKey:i=>e.find(a=>a.providerKey===i)??null,sourceBindingStateFromSource:i=>n(i).bindingStateFromSource(i),sourceAdapterCatalogKind:i=>r(i).catalogKind,sourceAdapterRequiresInteractiveConnect:i=>r(i).connectStrategy==="interactive",sourceAdapterUsesCredentialManagedAuth:i=>r(i).credentialStrategy==="credential_managed",isInternalSourceAdapter:i=>r(i).catalogKind==="internal"}};var C$e=e=>e.connectPayloadSchema!==null,P$e=e=>e.executorAddInputSchema!==null,O$e=e=>e.localConfigBindingSchema!==null,N$e=e=>e,Ise=(e,t)=>e.length===0?(()=>{throw new Error(`Cannot create ${t} without any schemas`)})():e.length===1?e[0]:kse.Union(...N$e(e)),Cse=e=>{let t=e.filter(C$e),r=e.filter(P$e),n=e.filter(O$e),o=wse(e);return{connectableSourceAdapters:t,connectPayloadSchema:Ise(t.map(i=>i.connectPayloadSchema),"connect payload schema"),executorAddableSourceAdapters:r,executorAddInputSchema:Ise(r.map(i=>i.executorAddInputSchema),"executor add input schema"),localConfigurableSourceAdapters:n,...o}};import*as Bt from"effect/Schema";import*as Ie from"effect/Schema";var Iu=Ie.Struct({providerId:Ie.String,handle:Ie.String}),K9t=Ie.Literal("runtime","import"),G9t=Ie.Literal("imported","internal"),F$e=Ie.String,R$e=Ie.Literal("draft","probing","auth_required","connected","error"),Fc=Ie.Literal("auto","streamable-http","sse","stdio"),ym=Ie.Literal("none","reuse_runtime","separate"),Wr=Ie.Record({key:Ie.String,value:Ie.String}),v_=Ie.Array(Ie.String),_B=Ie.suspend(()=>Ie.Union(Ie.String,Ie.Number,Ie.Boolean,Ie.Null,Ie.Array(_B),Ie.Record({key:Ie.String,value:_B}))).annotations({identifier:"JsonValue"}),Ose=Ie.Record({key:Ie.String,value:_B}).annotations({identifier:"JsonObject"}),Pse=Ie.Union(Ie.Struct({kind:Ie.Literal("none")}),Ie.Struct({kind:Ie.Literal("bearer"),headerName:Ie.String,prefix:Ie.String,token:Iu}),Ie.Struct({kind:Ie.Literal("oauth2"),headerName:Ie.String,prefix:Ie.String,accessToken:Iu,refreshToken:Ie.NullOr(Iu)}),Ie.Struct({kind:Ie.Literal("oauth2_authorized_user"),headerName:Ie.String,prefix:Ie.String,tokenEndpoint:Ie.String,clientId:Ie.String,clientAuthentication:Ie.Literal("none","client_secret_post"),clientSecret:Ie.NullOr(Iu),refreshToken:Iu,grantSet:Ie.NullOr(Ie.Array(Ie.String))}),Ie.Struct({kind:Ie.Literal("provider_grant_ref"),grantId:Ie.String,providerKey:Ie.String,requiredScopes:Ie.Array(Ie.String),headerName:Ie.String,prefix:Ie.String}),Ie.Struct({kind:Ie.Literal("mcp_oauth"),redirectUri:Ie.String,accessToken:Iu,refreshToken:Ie.NullOr(Iu),tokenType:Ie.String,expiresIn:Ie.NullOr(Ie.Number),scope:Ie.NullOr(Ie.String),resourceMetadataUrl:Ie.NullOr(Ie.String),authorizationServerUrl:Ie.NullOr(Ie.String),resourceMetadataJson:Ie.NullOr(Ie.String),authorizationServerMetadataJson:Ie.NullOr(Ie.String),clientInformationJson:Ie.NullOr(Ie.String)})),R6=Ie.Number,H9t=Ie.Struct({version:R6,payload:Ose}),Z9t=Ie.Struct({id:Ie.String,scopeId:Ie.String,name:Ie.String,kind:F$e,endpoint:Ie.String,status:R$e,enabled:Ie.Boolean,namespace:Ie.NullOr(Ie.String),bindingVersion:R6,binding:Ose,importAuthPolicy:ym,importAuth:Pse,auth:Pse,sourceHash:Ie.NullOr(Ie.String),lastError:Ie.NullOr(Ie.String),createdAt:Ie.Number,updatedAt:Ie.Number}),W9t=Ie.Struct({id:Ie.String,bindingConfigJson:Ie.NullOr(Ie.String)}),L6=Ie.Literal("app_callback","loopback"),Nse=Ie.String,fB=Ie.Struct({clientId:Ie.Trim.pipe(Ie.nonEmptyString()),clientSecret:Ie.optional(Ie.NullOr(Ie.Trim.pipe(Ie.nonEmptyString()))),redirectMode:Ie.optional(L6)});var mB=Bt.Literal("mcp","openapi","google_discovery","graphql","unknown"),$6=Bt.Literal("low","medium","high"),hB=Bt.Literal("none","bearer","oauth2","apiKey","basic","unknown"),yB=Bt.Literal("header","query","cookie"),Fse=Bt.Union(Bt.Struct({kind:Bt.Literal("none")}),Bt.Struct({kind:Bt.Literal("bearer"),headerName:Bt.optional(Bt.NullOr(Bt.String)),prefix:Bt.optional(Bt.NullOr(Bt.String)),token:Bt.String}),Bt.Struct({kind:Bt.Literal("basic"),username:Bt.String,password:Bt.String}),Bt.Struct({kind:Bt.Literal("headers"),headers:Wr})),gB=Bt.Struct({suggestedKind:hB,confidence:$6,supported:Bt.Boolean,reason:Bt.String,headerName:Bt.NullOr(Bt.String),prefix:Bt.NullOr(Bt.String),parameterName:Bt.NullOr(Bt.String),parameterLocation:Bt.NullOr(yB),oauthAuthorizationUrl:Bt.NullOr(Bt.String),oauthTokenUrl:Bt.NullOr(Bt.String),oauthScopes:Bt.Array(Bt.String)}),Rse=Bt.Struct({detectedKind:mB,confidence:$6,endpoint:Bt.String,specUrl:Bt.NullOr(Bt.String),name:Bt.NullOr(Bt.String),namespace:Bt.NullOr(Bt.String),transport:Bt.NullOr(Fc),authInference:gB,toolCount:Bt.NullOr(Bt.Number),warnings:Bt.Array(Bt.String)});import*as Lse from"effect/Data";var SB=class extends Lse.TaggedError("SourceCoreEffectError"){},Co=(e,t)=>new SB({module:e,message:t});import*as $se from"effect/Data";import*as ku from"effect/Effect";import*as qt from"effect/Schema";var L$e=qt.Trim.pipe(qt.nonEmptyString()),Ho=qt.optional(qt.NullOr(qt.String)),$$e=qt.Struct({kind:qt.Literal("bearer"),headerName:Ho,prefix:Ho,token:Ho,tokenRef:qt.optional(qt.NullOr(Iu))}),M$e=qt.Struct({kind:qt.Literal("oauth2"),headerName:Ho,prefix:Ho,accessToken:Ho,accessTokenRef:qt.optional(qt.NullOr(Iu)),refreshToken:Ho,refreshTokenRef:qt.optional(qt.NullOr(Iu))}),x_=qt.Union(qt.Struct({kind:qt.Literal("none")}),$$e,M$e),gm=qt.Struct({importAuthPolicy:qt.optional(ym),importAuth:qt.optional(x_)}),Mse=qt.optional(qt.NullOr(fB)),M6=qt.Struct({endpoint:L$e,name:Ho,namespace:Ho}),vB=qt.Struct({transport:qt.optional(qt.NullOr(Fc)),queryParams:qt.optional(qt.NullOr(Wr)),headers:qt.optional(qt.NullOr(Wr)),command:qt.optional(qt.NullOr(qt.String)),args:qt.optional(qt.NullOr(v_)),env:qt.optional(qt.NullOr(Wr)),cwd:qt.optional(qt.NullOr(qt.String))});var b_=class extends $se.TaggedError("SourceCredentialRequiredError"){constructor(t,r){super({slot:t,message:r})}},E_=e=>e instanceof b_,Fp={transport:null,queryParams:null,headers:null,command:null,args:null,env:null,cwd:null,specUrl:null,defaultHeaders:null},jse=(e,t)=>qt.Struct({adapterKey:qt.Literal(e),version:R6,payload:t}),Rp=e=>qt.encodeSync(qt.parseJson(jse(e.adapterKey,e.payloadSchema)))({adapterKey:e.adapterKey,version:e.version,payload:e.payload}),Lp=e=>e.value===null?ku.fail(Co("core/shared",`Missing ${e.label} binding config for ${e.sourceId}`)):ku.try({try:()=>qt.decodeUnknownSync(qt.parseJson(jse(e.adapterKey,e.payloadSchema)))(e.value),catch:t=>{let r=t instanceof Error?t.message:String(t);return new Error(`Invalid ${e.label} binding config for ${e.sourceId}: ${r}`)}}).pipe(ku.flatMap(t=>t.version===e.version?ku.succeed({version:t.version,payload:t.payload}):ku.fail(Co("core/shared",`Unsupported ${e.label} binding config version ${t.version} for ${e.sourceId}; expected ${e.version}`)))),$p=e=>e.version!==e.expectedVersion?ku.fail(Co("core/shared",`Unsupported ${e.label} binding version ${e.version} for ${e.sourceId}; expected ${e.expectedVersion}`)):ku.try({try:()=>{if(e.allowedKeys&&e.value!==null&&typeof e.value=="object"&&!Array.isArray(e.value)){let t=Object.keys(e.value).filter(r=>!e.allowedKeys.includes(r));if(t.length>0)throw new Error(`Unsupported fields: ${t.join(", ")}`)}return qt.decodeUnknownSync(e.schema)(e.value)},catch:t=>{let r=t instanceof Error?t.message:String(t);return new Error(`Invalid ${e.label} binding payload for ${e.sourceId}: ${r}`)}}),Sm=e=>{if(e.version!==e.expectedVersion)throw new Error(`Unsupported ${e.label} executable binding version ${e.version} for ${e.executableId}; expected ${e.expectedVersion}`);try{return qt.decodeUnknownSync(e.schema)(e.value)}catch(t){let r=t instanceof Error?t.message:String(t);throw new Error(`Invalid ${e.label} executable binding for ${e.executableId}: ${r}`)}};import*as hv from"effect/Effect";import*as Bse from"effect/Data";var bB=class extends Bse.TaggedError("McpOAuthEffectError"){},xB=(e,t)=>new bB({module:e,message:t});var qse=e=>e instanceof Error?e:new Error(String(e)),mv=e=>e!=null&&typeof e=="object"&&!Array.isArray(e)?e:null,Use=e=>({redirect_uris:[e],grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none",client_name:"Executor Local"}),LT=e=>hv.gen(function*(){let t={},r={get redirectUrl(){return e.redirectUrl},get clientMetadata(){return Use(e.redirectUrl)},state:()=>e.state,clientInformation:()=>t.clientInformation,saveClientInformation:o=>{t.clientInformation=o},tokens:()=>{},saveTokens:()=>{},redirectToAuthorization:o=>{t.authorizationUrl=o},saveCodeVerifier:o=>{t.codeVerifier=o},codeVerifier:()=>{if(!t.codeVerifier)throw new Error("OAuth code verifier was not captured");return t.codeVerifier},saveDiscoveryState:o=>{t.discoveryState=o},discoveryState:()=>t.discoveryState};return(yield*hv.tryPromise({try:()=>Dl(r,{serverUrl:e.endpoint}),catch:qse}))!=="REDIRECT"||!t.authorizationUrl||!t.codeVerifier?yield*xB("index","OAuth flow did not produce an authorization redirect"):{authorizationUrl:t.authorizationUrl.toString(),codeVerifier:t.codeVerifier,resourceMetadataUrl:t.discoveryState?.resourceMetadataUrl??null,authorizationServerUrl:t.discoveryState?.authorizationServerUrl??null,resourceMetadata:mv(t.discoveryState?.resourceMetadata),authorizationServerMetadata:mv(t.discoveryState?.authorizationServerMetadata),clientInformation:mv(t.clientInformation)}}),EB=e=>hv.gen(function*(){let t={discoveryState:{authorizationServerUrl:e.session.authorizationServerUrl??new URL("/",e.session.endpoint).toString(),resourceMetadataUrl:e.session.resourceMetadataUrl??void 0,resourceMetadata:e.session.resourceMetadata,authorizationServerMetadata:e.session.authorizationServerMetadata},clientInformation:e.session.clientInformation},r={get redirectUrl(){return e.session.redirectUrl},get clientMetadata(){return Use(e.session.redirectUrl)},clientInformation:()=>t.clientInformation,saveClientInformation:o=>{t.clientInformation=o},tokens:()=>{},saveTokens:o=>{t.tokens=o},redirectToAuthorization:()=>{throw new Error("Unexpected redirect while completing MCP OAuth")},saveCodeVerifier:()=>{},codeVerifier:()=>e.session.codeVerifier,saveDiscoveryState:o=>{t.discoveryState=o},discoveryState:()=>t.discoveryState};return(yield*hv.tryPromise({try:()=>Dl(r,{serverUrl:e.session.endpoint,authorizationCode:e.code}),catch:qse}))!=="AUTHORIZED"||!t.tokens?yield*xB("index","OAuth redirect did not complete MCP OAuth setup"):{tokens:t.tokens,resourceMetadataUrl:t.discoveryState?.resourceMetadataUrl??null,authorizationServerUrl:t.discoveryState?.authorizationServerUrl??null,resourceMetadata:mv(t.discoveryState?.resourceMetadata),authorizationServerMetadata:mv(t.discoveryState?.authorizationServerMetadata),clientInformation:mv(t.clientInformation)}});import*as U6 from"effect/Either";import*as A_ from"effect/Effect";import*as ece from"effect/Data";import*as wB from"effect/Either";import*as Pr from"effect/Effect";import*as tce from"effect/Cause";import*as rce from"effect/Exit";import*as nce from"effect/PartitionedSemaphore";import*as zse from"effect/Either";import*as Vse from"effect/Option";import*as Jse from"effect/ParseResult";import*as So from"effect/Schema";var Kse=So.Record({key:So.String,value:So.Unknown}),j$e=So.decodeUnknownOption(Kse),Gse=e=>{let t=j$e(e);return Vse.isSome(t)?t.value:{}},B$e=So.Struct({mode:So.optional(So.Union(So.Literal("form"),So.Literal("url"))),message:So.optional(So.String),requestedSchema:So.optional(Kse),url:So.optional(So.String),elicitationId:So.optional(So.String),id:So.optional(So.String)}),q$e=So.decodeUnknownEither(B$e),Hse=e=>{let t=q$e(e);if(zse.isLeft(t))throw new Error(`Invalid MCP elicitation request params: ${Jse.TreeFormatter.formatErrorSync(t.left)}`);let r=t.right,n=r.message??"";return r.mode==="url"?{mode:"url",message:n,url:r.url??"",elicitationId:r.elicitationId??r.id??""}:{mode:"form",message:n,requestedSchema:r.requestedSchema??{}}},Zse=e=>e.action==="accept"?{action:"accept",...e.content?{content:e.content}:{}}:{action:e.action},Wse=e=>typeof e.setRequestHandler=="function",TB=e=>e.elicitation.mode==="url"&&e.elicitation.elicitationId.length>0?e.elicitation.elicitationId:[e.invocation?.runId,e.invocation?.callId,e.path,"mcp",typeof e.sequence=="number"?String(e.sequence):void 0].filter(r=>typeof r=="string"&&r.length>0).join(":"),DB=e=>e instanceof YE&&Array.isArray(e.elicitations)&&e.elicitations.length>0;import*as Qse from"effect/Option";import*as ir from"effect/Schema";var U$e=e=>{let t=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"");return t.length>0?t:"tool"},z$e=(e,t)=>{let r=U$e(e),n=(t.get(r)??0)+1;return t.set(r,n),n===1?r:`${r}_${n}`},T_=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{},j6=e=>{let t=T_(e);return Object.keys(t).length>0?t:null},Mp=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),D_=e=>typeof e=="string"&&e.trim().length>0?e.trim():null,vm=e=>typeof e=="boolean"?e:null,Xse=e=>Array.isArray(e)?e:null,V$e=ir.Struct({title:ir.optional(ir.NullOr(ir.String)),readOnlyHint:ir.optional(ir.Boolean),destructiveHint:ir.optional(ir.Boolean),idempotentHint:ir.optional(ir.Boolean),openWorldHint:ir.optional(ir.Boolean)}),J$e=ir.Struct({taskSupport:ir.optional(ir.Literal("forbidden","optional","required"))}),K$e=ir.Struct({name:ir.String,title:ir.optional(ir.NullOr(ir.String)),description:ir.optional(ir.NullOr(ir.String)),inputSchema:ir.optional(ir.Unknown),parameters:ir.optional(ir.Unknown),outputSchema:ir.optional(ir.Unknown),annotations:ir.optional(V$e),execution:ir.optional(J$e),icons:ir.optional(ir.Unknown),_meta:ir.optional(ir.Unknown)}),G$e=ir.Struct({tools:ir.Array(K$e),nextCursor:ir.optional(ir.NullOr(ir.String)),_meta:ir.optional(ir.Unknown)}),H$e=ir.decodeUnknownOption(G$e),Z$e=e=>{let t=H$e(e);return Qse.isNone(t)?[]:t.value.tools},W$e=e=>{let t=j6(e);if(t===null)return null;let r={title:D_(t.title),readOnlyHint:vm(t.readOnlyHint),destructiveHint:vm(t.destructiveHint),idempotentHint:vm(t.idempotentHint),openWorldHint:vm(t.openWorldHint)};return Object.values(r).some(n=>n!==null)?r:null},Q$e=e=>{let t=j6(e);if(t===null)return null;let r=t.taskSupport;return r!=="forbidden"&&r!=="optional"&&r!=="required"?null:{taskSupport:r}},X$e=e=>{let t=j6(e),r=t?D_(t.name):null,n=t?D_(t.version):null;return r===null||n===null?null:{name:r,version:n,title:D_(t?.title),description:D_(t?.description),websiteUrl:D_(t?.websiteUrl),icons:Xse(t?.icons)}},Y$e=e=>{let t=j6(e);if(t===null)return null;let r=T_(t.prompts),n=T_(t.resources),o=T_(t.tools),i=T_(t.tasks),a=T_(i.requests),s=T_(a.tools);return{experimental:Mp(t,"experimental")?T_(t.experimental):null,logging:Mp(t,"logging"),completions:Mp(t,"completions"),prompts:Mp(t,"prompts")?{listChanged:vm(r.listChanged)??!1}:null,resources:Mp(t,"resources")?{subscribe:vm(n.subscribe)??!1,listChanged:vm(n.listChanged)??!1}:null,tools:Mp(t,"tools")?{listChanged:vm(o.listChanged)??!1}:null,tasks:Mp(t,"tasks")?{list:Mp(i,"list"),cancel:Mp(i,"cancel"),toolCall:Mp(s,"call")}:null}},eMe=e=>{let t=X$e(e?.serverInfo),r=Y$e(e?.serverCapabilities),n=D_(e?.instructions),o=e?.serverInfo??null,i=e?.serverCapabilities??null;return t===null&&r===null&&n===null&&o===null&&i===null?null:{info:t,capabilities:r,instructions:n,rawInfo:o,rawCapabilities:i}},AB=(e,t)=>{let r=new Map,n=T_(e),o=Array.isArray(n.tools)?n.tools:[],i=Z$e(e).map((a,s)=>{let c=a.name.trim();if(c.length===0)return null;let p=D_(a.title),d=W$e(a.annotations),f=p??d?.title??c;return{toolId:z$e(c,r),toolName:c,title:p,displayTitle:f,description:a.description??null,annotations:d,execution:Q$e(a.execution),icons:Xse(a.icons),meta:a._meta??null,rawTool:o[s]??null,inputSchema:a.inputSchema??a.parameters,outputSchema:a.outputSchema}}).filter(a=>a!==null);return{version:2,server:eMe(t),listTools:{nextCursor:D_(n.nextCursor),meta:n._meta??null,rawResult:e},tools:i}},Yse=(e,t)=>!e||e.trim().length===0?t:`${e}.${t}`;var wl=class extends ece.TaggedError("McpToolsError"){},tMe="__EXECUTION_SUSPENDED__",rMe=e=>{if(e instanceof Error)return`${e.message} -${e.stack??""}`;if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}},B6=e=>rMe(e).includes(tMe),tg=e=>e instanceof Error?e.message:String(e),nMe=e=>{if(e==null)return Hd;try{return Hx(e,{vendor:"mcp",fallback:Hd})}catch{return Hd}},oMe=e=>Pr.tryPromise({try:()=>e.close?.()??Promise.resolve(),catch:t=>t instanceof Error?t:new Error(String(t??"mcp connection close failed"))}).pipe(Pr.asVoid,Pr.catchAll(()=>Pr.void)),oce=e=>Pr.acquireUseRelease(e.connect.pipe(Pr.mapError(e.onConnectError)),e.run,oMe),iMe=nce.makeUnsafe({permits:1}),ice=(e,t)=>iMe.withPermits(e,1)(t),ace=e=>e.onElicitation({interactionId:e.interactionId,path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.executionContext?.metadata,context:e.executionContext?.invocation,elicitation:e.elicitation}).pipe(Pr.mapError(t=>B6(t)?t:new wl({stage:"call_tool",message:`Failed resolving elicitation for ${e.toolName}`,details:tg(t)}))),sce=e=>{let t=e.client;return Wse(t)?Pr.try({try:()=>{let r=0;t.setRequestHandler(cT,n=>(r+=1,Pr.runPromise(Pr.try({try:()=>Hse(n.params),catch:o=>new wl({stage:"call_tool",message:`Failed parsing MCP elicitation for ${e.toolName}`,details:tg(o)})}).pipe(Pr.flatMap(o=>ace({toolName:e.toolName,onElicitation:e.onElicitation,interactionId:TB({path:e.path,invocation:e.executionContext?.invocation,elicitation:o,sequence:r}),path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext,elicitation:o})),Pr.map(Zse),Pr.catchAll(o=>B6(o)?Pr.fail(o):(console.error(`[mcp-tools] elicitation failed for ${e.toolName}, treating as cancel:`,o instanceof Error?o.message:String(o)),Pr.succeed({action:"cancel"})))))))},catch:r=>r instanceof wl?r:new wl({stage:"call_tool",message:`Failed installing elicitation handler for ${e.toolName}`,details:tg(r)})}):Pr.succeed(void 0)},cce=e=>Pr.forEach(e.cause.elicitations,t=>ace({toolName:e.toolName,onElicitation:e.onElicitation,interactionId:TB({path:e.path,invocation:e.executionContext?.invocation,elicitation:t}),path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext,elicitation:t}).pipe(Pr.flatMap(r=>r.action==="accept"?Pr.succeed(void 0):Pr.fail(new wl({stage:"call_tool",message:`URL elicitation was not accepted for ${e.toolName}`,details:r.action})))),{discard:!0}),aMe=e=>Pr.tryPromise({try:()=>e.client.callTool({name:e.toolName,arguments:e.args}),catch:t=>t}),sMe=e=>e?{path:e.path,sourceKey:e.sourceKey,metadata:e.metadata,invocation:e.invocation,onElicitation:e.onElicitation}:void 0,cMe=e=>Pr.gen(function*(){let t=sMe(e.mcpDiscoveryElicitation);e.mcpDiscoveryElicitation&&(yield*sce({client:e.connection.client,toolName:"tools/list",onElicitation:e.mcpDiscoveryElicitation.onElicitation,path:e.mcpDiscoveryElicitation.path,sourceKey:e.mcpDiscoveryElicitation.sourceKey,args:e.mcpDiscoveryElicitation.args,executionContext:t}));let r=0;for(;;){let n=yield*Pr.either(Pr.tryPromise({try:()=>e.connection.client.listTools(),catch:o=>o}));if(wB.isRight(n))return n.right;if(B6(n.left))return yield*n.left;if(e.mcpDiscoveryElicitation&&DB(n.left)&&r<2){yield*cce({cause:n.left,toolName:"tools/list",onElicitation:e.mcpDiscoveryElicitation.onElicitation,path:e.mcpDiscoveryElicitation.path,sourceKey:e.mcpDiscoveryElicitation.sourceKey,args:e.mcpDiscoveryElicitation.args,executionContext:t}),r+=1;continue}return yield*new wl({stage:"list_tools",message:"Failed listing MCP tools",details:tg(n.left)})}}),lMe=e=>Pr.gen(function*(){let t=e.executionContext?.onElicitation;t&&(yield*sce({client:e.connection.client,toolName:e.toolName,onElicitation:t,path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext}));let r=0;for(;;){let n=yield*Pr.either(aMe({client:e.connection.client,toolName:e.toolName,args:e.args}));if(wB.isRight(n))return n.right;if(B6(n.left))return yield*n.left;if(t&&DB(n.left)&&r<2){yield*cce({cause:n.left,toolName:e.toolName,onElicitation:t,path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext}),r+=1;continue}return yield*new wl({stage:"call_tool",message:`Failed invoking MCP tool: ${e.toolName}`,details:tg(n.left)})}});var q6=e=>{let t=e.sourceKey??"mcp.generated";return Object.fromEntries(e.manifest.tools.map(r=>{let n=Yse(e.namespace,r.toolId);return[n,Sl({tool:{description:r.description??`MCP tool: ${r.toolName}`,inputSchema:nMe(r.inputSchema),execute:async(o,i)=>{let a=await Pr.runPromiseExit(oce({connect:e.connect,onConnectError:s=>new wl({stage:"connect",message:`Failed connecting to MCP server for ${r.toolName}`,details:tg(s)}),run:s=>{let c=Gse(o),p=lMe({connection:s,toolName:r.toolName,path:n,sourceKey:t,args:c,executionContext:i});return i?.onElicitation?ice(s.client,p):p}}));if(rce.isSuccess(a))return a.value;throw tce.squash(a.cause)}},metadata:{sourceKey:t,contract:{...r.inputSchema!==void 0?{inputSchema:r.inputSchema}:{},...r.outputSchema!==void 0?{outputSchema:r.outputSchema}:{}}}})]}))},rg=e=>Pr.gen(function*(){let t=yield*oce({connect:e.connect,onConnectError:n=>new wl({stage:"connect",message:"Failed connecting to MCP server",details:tg(n)}),run:n=>{let o=cMe({connection:n,mcpDiscoveryElicitation:e.mcpDiscoveryElicitation}),i=e.mcpDiscoveryElicitation?ice(n.client,o):o;return Pr.map(i,a=>({listed:a,serverInfo:n.client.getServerVersion?.(),serverCapabilities:n.client.getServerCapabilities?.(),instructions:n.client.getInstructions?.()}))}}),r=AB(t.listed,{serverInfo:t.serverInfo,serverCapabilities:t.serverCapabilities,instructions:t.instructions});return{manifest:r,tools:q6({manifest:r,connect:e.connect,namespace:e.namespace,sourceKey:e.sourceKey})}});var IB=e=>A_.gen(function*(){let t=lm({endpoint:e.normalizedUrl,headers:e.headers,transport:"auto"}),r=yield*A_.either(rg({connect:t,sourceKey:"discovery",namespace:os(Cp(e.normalizedUrl))}));if(U6.isRight(r)){let i=Cp(e.normalizedUrl);return{detectedKind:"mcp",confidence:"high",endpoint:e.normalizedUrl,specUrl:null,name:i,namespace:os(i),transport:"auto",authInference:Pp("MCP tool discovery succeeded without an advertised auth requirement","medium"),toolCount:r.right.manifest.tools.length,warnings:[]}}let n=yield*A_.either(LT({endpoint:e.normalizedUrl,redirectUrl:"http://127.0.0.1/executor/discovery/oauth/callback",state:"source-discovery"}));if(U6.isLeft(n))return null;let o=Cp(e.normalizedUrl);return{detectedKind:"mcp",confidence:"high",endpoint:e.normalizedUrl,specUrl:null,name:o,namespace:os(o),transport:"auto",authInference:Au("oauth2",{confidence:"high",reason:"MCP endpoint advertised OAuth during discovery",headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:n.right.authorizationUrl,oauthTokenUrl:n.right.authorizationServerUrl,oauthScopes:[]}),toolCount:null,warnings:["OAuth is required before MCP tools can be listed."]}}).pipe(A_.catchAll(()=>A_.succeed(null)));import*as Pi from"effect/Schema";var kB=Pi.Struct({transport:Pi.optional(Pi.NullOr(Fc)),queryParams:Pi.optional(Pi.NullOr(Wr)),headers:Pi.optional(Pi.NullOr(Wr)),command:Pi.optional(Pi.NullOr(Pi.String)),args:Pi.optional(Pi.NullOr(v_)),env:Pi.optional(Pi.NullOr(Wr)),cwd:Pi.optional(Pi.NullOr(Pi.String))});var uMe=e=>e?.taskSupport==="optional"||e?.taskSupport==="required",pMe=e=>{let t=e.effect==="read";return{effect:e.effect,safe:t,idempotent:t||e.annotations?.idempotentHint===!0,destructive:t?!1:e.annotations?.destructiveHint!==!1}},dMe=e=>{let t=h_(e.source,e.operation.providerData.toolId),r=Oc.make(`cap_${mn({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),n=Qs.make(`exec_${mn({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"mcp"})}`),o=e.operation.outputSchema!==void 0?e.importer.importSchema(e.operation.outputSchema,`#/mcp/${e.operation.providerData.toolId}/output`):void 0,i=e.operation.inputSchema===void 0?e.importer.importSchema({type:"object",properties:{},additionalProperties:!1},`#/mcp/${e.operation.providerData.toolId}/call`):rB(e.operation.inputSchema)?e.importer.importSchema(e.operation.inputSchema,`#/mcp/${e.operation.providerData.toolId}/call`,e.operation.inputSchema):e.importer.importSchema(lv({type:"object",properties:{input:e.operation.inputSchema},required:["input"],additionalProperties:!1},e.operation.inputSchema),`#/mcp/${e.operation.providerData.toolId}/call`),a=e.importer.importSchema({type:"null"},`#/mcp/${e.operation.providerData.toolId}/status`),s=Nc.make(`response_${mn({capabilityId:r})}`);Vr(e.catalog.symbols)[s]={id:s,kind:"response",...wn({description:e.operation.providerData.description??e.operation.description})?{docs:wn({description:e.operation.providerData.description??e.operation.description})}:{},...o?{contents:[{mediaType:"application/json",shapeId:o}]}:{},synthetic:!1,provenance:un(e.documentId,`#/mcp/${e.operation.providerData.toolId}/response`)};let c=g_({catalog:e.catalog,responseId:s,provenance:un(e.documentId,`#/mcp/${e.operation.providerData.toolId}/responseSet`)});Vr(e.catalog.executables)[n]={id:n,capabilityId:r,scopeId:e.serviceScopeId,adapterKey:"mcp",bindingVersion:Ca,binding:e.operation.providerData,projection:{responseSetId:c,callShapeId:i,...o?{resultDataShapeId:o}:{},resultStatusShapeId:a},display:{protocol:"mcp",method:null,pathTemplate:null,operationId:e.operation.providerData.toolName,group:null,leaf:e.operation.providerData.toolName,rawToolId:e.operation.providerData.toolId,title:e.operation.providerData.displayTitle,summary:e.operation.providerData.description??e.operation.description??null},synthetic:!1,provenance:un(e.documentId,`#/mcp/${e.operation.providerData.toolId}/executable`)};let p=y_(e.operation.effect);Vr(e.catalog.capabilities)[r]={id:r,serviceScopeId:e.serviceScopeId,surface:{toolPath:t,title:e.operation.providerData.displayTitle,...e.operation.providerData.description?{summary:e.operation.providerData.description}:{}},semantics:pMe({effect:e.operation.effect,annotations:e.operation.providerData.annotations}),auth:{kind:"none"},interaction:{...p,resume:{supported:uMe(e.operation.providerData.execution)}},executableIds:[n],synthetic:!1,provenance:un(e.documentId,`#/mcp/${e.operation.providerData.toolId}/capability`)}},lce=e=>S_({source:e.source,documents:e.documents,registerOperations:({catalog:t,documentId:r,serviceScopeId:n,importer:o})=>{for(let i of e.operations)dMe({catalog:t,source:e.source,documentId:r,serviceScopeId:n,operation:i,importer:o})}});import*as Oi from"effect/Effect";import*as Mt from"effect/Schema";var uce=e=>Tc({headers:{...e.headers,...e.authHeaders},cookies:e.authCookies}),CB=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},_Me=e=>e,fMe=e=>{let t=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"");return t.length>0?t:"source"},pce=(e,t)=>Co("mcp/adapter",t===void 0?e:`${e}: ${t instanceof Error?t.message:String(t)}`),mMe=Mt.optional(Mt.NullOr(v_)),hMe=Mt.extend(vB,Mt.Struct({kind:Mt.Literal("mcp"),endpoint:Ho,name:Ho,namespace:Ho})),yMe=Mt.extend(vB,Mt.Struct({kind:Mt.optional(Mt.Literal("mcp")),endpoint:Ho,name:Ho,namespace:Ho})),dce=Mt.Struct({transport:Mt.NullOr(Fc),queryParams:Mt.NullOr(Wr),headers:Mt.NullOr(Wr),command:Mt.NullOr(Mt.String),args:Mt.NullOr(v_),env:Mt.NullOr(Wr),cwd:Mt.NullOr(Mt.String)}),gMe=Mt.Struct({transport:Mt.optional(Mt.NullOr(Fc)),queryParams:Mt.optional(Mt.NullOr(Wr)),headers:Mt.optional(Mt.NullOr(Wr)),command:Mt.optional(Mt.NullOr(Mt.String)),args:mMe,env:Mt.optional(Mt.NullOr(Wr)),cwd:Mt.optional(Mt.NullOr(Mt.String))}),SMe=Mt.Struct({toolId:Mt.String,toolName:Mt.String,displayTitle:Mt.String,title:Mt.NullOr(Mt.String),description:Mt.NullOr(Mt.String),annotations:Mt.NullOr(Mt.Unknown),execution:Mt.NullOr(Mt.Unknown),icons:Mt.NullOr(Mt.Unknown),meta:Mt.NullOr(Mt.Unknown),rawTool:Mt.NullOr(Mt.Unknown),server:Mt.NullOr(Mt.Unknown)}),$T=1,_ce=(e,t)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&t.some(r=>Object.prototype.hasOwnProperty.call(e,r)),PB=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},vMe=e=>{if(!e||e.length===0)return null;let t=e.map(r=>r.trim()).filter(r=>r.length>0);return t.length>0?t:null},bMe=e=>Oi.gen(function*(){let t=PB(e.command);return Qy({transport:e.transport??void 0,command:t??void 0})?t===null?yield*Co("mcp/adapter","MCP stdio transport requires a command"):e.queryParams&&Object.keys(e.queryParams).length>0?yield*Co("mcp/adapter","MCP stdio transport does not support query params"):e.headers&&Object.keys(e.headers).length>0?yield*Co("mcp/adapter","MCP stdio transport does not support request headers"):{transport:"stdio",queryParams:null,headers:null,command:t,args:vMe(e.args),env:e.env??null,cwd:PB(e.cwd)}:t!==null||e.args||e.env||PB(e.cwd)!==null?yield*Co("mcp/adapter",'MCP process settings require transport: "stdio"'):{transport:e.transport??null,queryParams:e.queryParams??null,headers:e.headers??null,command:null,args:null,env:null,cwd:null}}),ng=e=>Oi.gen(function*(){if(_ce(e.binding,["specUrl"]))return yield*Co("mcp/adapter","MCP sources cannot define specUrl");if(_ce(e.binding,["defaultHeaders"]))return yield*Co("mcp/adapter","MCP sources cannot define HTTP source settings");let t=yield*$p({sourceId:e.id,label:"MCP",version:e.bindingVersion,expectedVersion:$T,schema:gMe,value:e.binding,allowedKeys:["transport","queryParams","headers","command","args","env","cwd"]});return yield*bMe(t)}),xMe=e=>e.annotations?.readOnlyHint===!0?"read":"write",EMe=e=>({toolId:e.entry.toolId,title:e.entry.displayTitle??e.entry.title??e.entry.toolName,description:e.entry.description??null,effect:xMe(e.entry),inputSchema:e.entry.inputSchema,outputSchema:e.entry.outputSchema,providerData:{toolId:e.entry.toolId,toolName:e.entry.toolName,displayTitle:e.entry.displayTitle??e.entry.title??e.entry.toolName,title:e.entry.title??null,description:e.entry.description??null,annotations:e.entry.annotations??null,execution:e.entry.execution??null,icons:e.entry.icons??null,meta:e.entry.meta??null,rawTool:e.entry.rawTool??null,server:e.server??null}}),OB=e=>{let t=Date.now(),r=JSON.stringify(e.manifest),n=FT(r);return Np({fragment:lce({source:e.source,documents:[{documentKind:"mcp_manifest",documentKey:e.endpoint,contentText:r,fetchedAt:t}],operations:e.manifest.tools.map(o=>EMe({entry:o,server:e.manifest.server}))}),importMetadata:ws({source:e.source,adapterKey:"mcp"}),sourceHash:n})},fce={key:"mcp",displayName:"MCP",catalogKind:"imported",connectStrategy:"interactive",credentialStrategy:"adapter_defined",bindingConfigVersion:$T,providerKey:"generic_mcp",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:hMe,executorAddInputSchema:yMe,executorAddHelpText:['Omit kind or set kind: "mcp". For remote servers, provide endpoint plus optional transport/queryParams/headers.','For local servers, set transport: "stdio" and provide command plus optional args/env/cwd.'],executorAddInputSignatureWidth:240,localConfigBindingSchema:kB,localConfigBindingFromSource:e=>Oi.runSync(Oi.map(ng(e),t=>({transport:t.transport,queryParams:t.queryParams,headers:t.headers,command:t.command,args:t.args,env:t.env,cwd:t.cwd}))),serializeBindingConfig:e=>Rp({adapterKey:"mcp",version:$T,payloadSchema:dce,payload:Oi.runSync(ng(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:t})=>Oi.map(Lp({sourceId:e,label:"MCP",adapterKey:"mcp",version:$T,payloadSchema:dce,value:t}),({version:r,payload:n})=>({version:r,payload:n})),bindingStateFromSource:e=>Oi.map(ng(e),t=>({...Fp,transport:t.transport,queryParams:t.queryParams,headers:t.headers,command:t.command,args:t.args,env:t.env,cwd:t.cwd})),sourceConfigFromSource:e=>Oi.runSync(Oi.map(ng(e),t=>({kind:"mcp",endpoint:e.endpoint,transport:t.transport,queryParams:t.queryParams,headers:t.headers,command:t.command,args:t.args,env:t.env,cwd:t.cwd}))),validateSource:e=>Oi.gen(function*(){let t=yield*ng(e);return{...e,bindingVersion:$T,binding:{transport:t.transport,queryParams:t.queryParams,headers:t.headers,command:t.command,args:t.args,env:t.env,cwd:t.cwd}}}),shouldAutoProbe:()=>!1,discoveryPriority:({normalizedUrl:e})=>fm(e)?350:125,detectSource:({normalizedUrl:e,headers:t})=>IB({normalizedUrl:e,headers:t}),syncCatalog:({source:e,resolveAuthMaterialForSlot:t})=>Oi.gen(function*(){let r=yield*ng(e),n=yield*t("import"),o=lm({endpoint:e.endpoint,transport:r.transport??void 0,queryParams:{...r.queryParams,...n.queryParams},headers:uce({headers:r.headers??{},authHeaders:n.headers,authCookies:n.cookies}),authProvider:n.authProvider,command:r.command??void 0,args:r.args??void 0,env:r.env??void 0,cwd:r.cwd??void 0}),i=yield*rg({connect:o,namespace:e.namespace??fMe(e.name),sourceKey:e.id}).pipe(Oi.mapError(a=>new Error(`Failed discovering MCP tools for ${e.id}: ${a.message}${a.details?` (${a.details})`:""}`)));return OB({source:e,endpoint:e.endpoint,manifest:i.manifest})}),invoke:e=>Oi.gen(function*(){if(e.executable.adapterKey!=="mcp")return yield*Co("mcp/adapter",`Expected MCP executable binding, got ${e.executable.adapterKey}`);let t=yield*Oi.try({try:()=>Sm({executableId:e.executable.id,label:"MCP",version:e.executable.bindingVersion,expectedVersion:Ca,schema:SMe,value:e.executable.binding}),catch:y=>pce("Failed decoding MCP executable binding",y)}),r=yield*ng(e.source),n=pL({connect:lm({endpoint:e.source.endpoint,transport:r.transport??void 0,queryParams:{...r.queryParams,...e.auth.queryParams},headers:uce({headers:r.headers??{},authHeaders:e.auth.headers,authCookies:e.auth.cookies}),authProvider:e.auth.authProvider,command:r.command??void 0,args:r.args??void 0,env:r.env??void 0,cwd:r.cwd??void 0}),runId:typeof e.context?.runId=="string"&&e.context.runId.length>0?e.context.runId:void 0,sourceKey:e.source.id}),i=q6({manifest:{version:2,tools:[{toolId:t.toolName,toolName:t.toolName,displayTitle:e.capability.surface.title??e.executable.display?.title??t.toolName,title:e.capability.surface.title??e.executable.display?.title??null,description:e.capability.surface.summary??e.capability.surface.description??e.executable.display?.summary??`MCP tool: ${t.toolName}`,annotations:null,execution:null,icons:null,meta:null,rawTool:null,inputSchema:e.descriptor.contract?.inputSchema,outputSchema:e.descriptor.contract?.outputSchema}]},connect:n,sourceKey:e.source.id})[t.toolName],a=i&&typeof i=="object"&&i!==null&&"tool"in i?i.tool:i;if(!a)return yield*Co("mcp/adapter",`Missing MCP tool definition for ${t.toolName}`);let s=e.executable.projection.callShapeId?e.catalog.symbols[e.executable.projection.callShapeId]:void 0,c=s?.kind==="shape"&&s.node.type!=="object"?CB(e.args).input:e.args,p=e.onElicitation?{path:_Me(e.descriptor.path),sourceKey:e.source.id,metadata:{sourceKey:e.source.id,interaction:e.descriptor.interaction,contract:{...e.descriptor.contract?.inputSchema!==void 0?{inputSchema:e.descriptor.contract.inputSchema}:{},...e.descriptor.contract?.outputSchema!==void 0?{outputSchema:e.descriptor.contract.outputSchema}:{}},providerKind:e.descriptor.providerKind,providerData:e.descriptor.providerData},invocation:e.context,onElicitation:e.onElicitation}:void 0,d=yield*Oi.tryPromise({try:async()=>await a.execute(CB(c),p),catch:y=>pce(`Failed invoking MCP tool ${t.toolName}`,y)}),m=CB(d).isError===!0;return{data:m?null:d??null,error:m?d:null,headers:{},status:null}})};import*as li from"effect/Effect";import*as Eo from"effect/Layer";import*as G2e from"effect/ManagedRuntime";import*as tle from"effect/Context";import*as I_ from"effect/Effect";import*as rle from"effect/Layer";import*as nle from"effect/Option";import*as mce from"effect/Context";var Wn=class extends mce.Tag("#runtime/ExecutorStateStore")(){};import{Schema as TMe}from"effect";var wt=TMe.Number;import{Schema as tt}from"effect";import{Schema as oo}from"effect";var hn=oo.String.pipe(oo.brand("ScopeId")),Mn=oo.String.pipe(oo.brand("SourceId")),Rc=oo.String.pipe(oo.brand("SourceCatalogId")),bm=oo.String.pipe(oo.brand("SourceCatalogRevisionId")),xm=oo.String.pipe(oo.brand("SourceAuthSessionId")),og=oo.String.pipe(oo.brand("AuthArtifactId")),yv=oo.String.pipe(oo.brand("AuthLeaseId"));var z6=oo.String.pipe(oo.brand("ScopedSourceOauthClientId")),Em=oo.String.pipe(oo.brand("ScopeOauthClientId")),jp=oo.String.pipe(oo.brand("ProviderAuthGrantId")),Bp=oo.String.pipe(oo.brand("SecretMaterialId")),gv=oo.String.pipe(oo.brand("PolicyId")),Il=oo.String.pipe(oo.brand("ExecutionId")),Is=oo.String.pipe(oo.brand("ExecutionInteractionId")),V6=oo.String.pipe(oo.brand("ExecutionStepId"));import{Schema as Le}from"effect";import*as Tm from"effect/Option";var pi=Le.Struct({providerId:Le.String,handle:Le.String}),MT=Le.Literal("runtime","import"),hce=MT,yce=Le.String,DMe=Le.Array(Le.String),J6=Le.Union(Le.Struct({kind:Le.Literal("literal"),value:Le.String}),Le.Struct({kind:Le.Literal("secret_ref"),ref:pi})),gce=Le.Union(Le.Struct({location:Le.Literal("header"),name:Le.String,parts:Le.Array(J6)}),Le.Struct({location:Le.Literal("query"),name:Le.String,parts:Le.Array(J6)}),Le.Struct({location:Le.Literal("cookie"),name:Le.String,parts:Le.Array(J6)}),Le.Struct({location:Le.Literal("body"),path:Le.String,parts:Le.Array(J6)})),AMe=Le.Union(Le.Struct({location:Le.Literal("header"),name:Le.String,value:Le.String}),Le.Struct({location:Le.Literal("query"),name:Le.String,value:Le.String}),Le.Struct({location:Le.Literal("cookie"),name:Le.String,value:Le.String}),Le.Struct({location:Le.Literal("body"),path:Le.String,value:Le.String})),K6=Le.parseJson(Le.Array(gce)),Dm="static_bearer",Am="static_oauth2",ig="static_placements",kl="oauth2_authorized_user",NB="provider_grant_ref",FB="mcp_oauth",Sv=Le.Literal("none","client_secret_post"),wMe=Le.Literal(Dm,Am,ig,kl),IMe=Le.Struct({headerName:Le.String,prefix:Le.String,token:pi}),kMe=Le.Struct({headerName:Le.String,prefix:Le.String,accessToken:pi,refreshToken:Le.NullOr(pi)}),CMe=Le.Struct({placements:Le.Array(gce)}),PMe=Le.Struct({headerName:Le.String,prefix:Le.String,tokenEndpoint:Le.String,clientId:Le.String,clientAuthentication:Sv,clientSecret:Le.NullOr(pi),refreshToken:pi}),OMe=Le.Struct({grantId:jp,providerKey:Le.String,requiredScopes:Le.Array(Le.String),headerName:Le.String,prefix:Le.String}),NMe=Le.Struct({redirectUri:Le.String,accessToken:pi,refreshToken:Le.NullOr(pi),tokenType:Le.String,expiresIn:Le.NullOr(Le.Number),scope:Le.NullOr(Le.String),resourceMetadataUrl:Le.NullOr(Le.String),authorizationServerUrl:Le.NullOr(Le.String),resourceMetadataJson:Le.NullOr(Le.String),authorizationServerMetadataJson:Le.NullOr(Le.String),clientInformationJson:Le.NullOr(Le.String)}),RB=Le.parseJson(IMe),LB=Le.parseJson(kMe),$B=Le.parseJson(CMe),MB=Le.parseJson(PMe),jB=Le.parseJson(OMe),jT=Le.parseJson(NMe),fLt=Le.parseJson(Le.Array(AMe)),BB=Le.parseJson(DMe),FMe=Le.decodeUnknownOption(RB),RMe=Le.decodeUnknownOption(LB),LMe=Le.decodeUnknownOption($B),$Me=Le.decodeUnknownOption(MB),MMe=Le.decodeUnknownOption(jB),jMe=Le.decodeUnknownOption(jT),BMe=Le.decodeUnknownOption(BB),Sce=Le.Struct({id:og,scopeId:hn,sourceId:Mn,actorScopeId:Le.NullOr(hn),slot:MT,artifactKind:yce,configJson:Le.String,grantSetJson:Le.NullOr(Le.String),createdAt:wt,updatedAt:wt}),qp=e=>{if(e.artifactKind!==NB)return null;let t=MMe(e.configJson);return Tm.isSome(t)?t.value:null},vv=e=>{if(e.artifactKind!==FB)return null;let t=jMe(e.configJson);return Tm.isSome(t)?t.value:null},wm=e=>{switch(e.artifactKind){case Dm:{let t=FMe(e.configJson);return Tm.isSome(t)?{artifactKind:Dm,config:t.value}:null}case Am:{let t=RMe(e.configJson);return Tm.isSome(t)?{artifactKind:Am,config:t.value}:null}case ig:{let t=LMe(e.configJson);return Tm.isSome(t)?{artifactKind:ig,config:t.value}:null}case kl:{let t=$Me(e.configJson);return Tm.isSome(t)?{artifactKind:kl,config:t.value}:null}default:return null}},qMe=e=>{let t=e!==null&&typeof e=="object"?e.grantSetJson:e;if(t===null)return null;let r=BMe(t);return Tm.isSome(r)?r.value:null},vce=qMe,bce=e=>{let t=wm(e);if(t!==null)switch(t.artifactKind){case Dm:return[t.config.token];case Am:return t.config.refreshToken?[t.config.accessToken,t.config.refreshToken]:[t.config.accessToken];case ig:return t.config.placements.flatMap(n=>n.parts.flatMap(o=>o.kind==="secret_ref"?[o.ref]:[]));case kl:return t.config.clientSecret?[t.config.refreshToken,t.config.clientSecret]:[t.config.refreshToken]}let r=vv(e);return r!==null?r.refreshToken?[r.accessToken,r.refreshToken]:[r.accessToken]:[]};import{Schema as it}from"effect";var xce=it.String,Ece=it.Literal("pending","completed","failed","cancelled"),qB=it.suspend(()=>it.Union(it.String,it.Number,it.Boolean,it.Null,it.Array(qB),it.Record({key:it.String,value:qB}))).annotations({identifier:"JsonValue"}),bv=it.Record({key:it.String,value:qB}).annotations({identifier:"JsonObject"}),UMe=it.Struct({kind:it.Literal("mcp_oauth"),endpoint:it.String,redirectUri:it.String,scope:it.NullOr(it.String),resourceMetadataUrl:it.NullOr(it.String),authorizationServerUrl:it.NullOr(it.String),resourceMetadata:it.NullOr(bv),authorizationServerMetadata:it.NullOr(bv),clientInformation:it.NullOr(bv),codeVerifier:it.NullOr(it.String),authorizationUrl:it.NullOr(it.String)}),UB=it.parseJson(UMe),zMe=it.Struct({kind:it.Literal("oauth2_pkce"),providerKey:it.String,authorizationEndpoint:it.String,tokenEndpoint:it.String,redirectUri:it.String,clientId:it.String,clientAuthentication:Sv,clientSecret:it.NullOr(pi),scopes:it.Array(it.String),headerName:it.String,prefix:it.String,authorizationParams:it.Record({key:it.String,value:it.String}),codeVerifier:it.NullOr(it.String),authorizationUrl:it.NullOr(it.String)}),zB=it.parseJson(zMe),VMe=it.Struct({sourceId:Mn,requiredScopes:it.Array(it.String)}),JMe=it.Struct({kind:it.Literal("provider_oauth_batch"),providerKey:it.String,authorizationEndpoint:it.String,tokenEndpoint:it.String,redirectUri:it.String,oauthClientId:Em,clientAuthentication:Sv,scopes:it.Array(it.String),headerName:it.String,prefix:it.String,authorizationParams:it.Record({key:it.String,value:it.String}),targetSources:it.Array(VMe),codeVerifier:it.NullOr(it.String),authorizationUrl:it.NullOr(it.String)}),VB=it.parseJson(JMe),Tce=it.Struct({id:xm,scopeId:hn,sourceId:Mn,actorScopeId:it.NullOr(hn),credentialSlot:hce,executionId:it.NullOr(Il),interactionId:it.NullOr(Is),providerKind:xce,status:Ece,state:it.String,sessionDataJson:it.String,errorText:it.NullOr(it.String),completedAt:it.NullOr(wt),createdAt:wt,updatedAt:wt});var G6=tt.String,xv=tt.Literal("draft","probing","auth_required","connected","error"),JB=tt.Union(tt.Struct({kind:tt.Literal("none")}),tt.Struct({kind:tt.Literal("bearer"),headerName:tt.String,prefix:tt.String,token:pi}),tt.Struct({kind:tt.Literal("oauth2"),headerName:tt.String,prefix:tt.String,accessToken:pi,refreshToken:tt.NullOr(pi)}),tt.Struct({kind:tt.Literal("oauth2_authorized_user"),headerName:tt.String,prefix:tt.String,tokenEndpoint:tt.String,clientId:tt.String,clientAuthentication:tt.Literal("none","client_secret_post"),clientSecret:tt.NullOr(pi),refreshToken:pi,grantSet:tt.NullOr(tt.Array(tt.String))}),tt.Struct({kind:tt.Literal("provider_grant_ref"),grantId:jp,providerKey:tt.String,requiredScopes:tt.Array(tt.String),headerName:tt.String,prefix:tt.String}),tt.Struct({kind:tt.Literal("mcp_oauth"),redirectUri:tt.String,accessToken:pi,refreshToken:tt.NullOr(pi),tokenType:tt.String,expiresIn:tt.NullOr(tt.Number),scope:tt.NullOr(tt.String),resourceMetadataUrl:tt.NullOr(tt.String),authorizationServerUrl:tt.NullOr(tt.String),resourceMetadataJson:tt.NullOr(tt.String),authorizationServerMetadataJson:tt.NullOr(tt.String),clientInformationJson:tt.NullOr(tt.String)})),KB=tt.Number,KMe=tt.Struct({version:KB,payload:bv}),GMe=tt.Struct({scopeId:hn,sourceId:Mn,catalogId:Rc,catalogRevisionId:bm,name:tt.String,kind:G6,endpoint:tt.String,status:xv,enabled:tt.Boolean,namespace:tt.NullOr(tt.String),importAuthPolicy:ym,bindingConfigJson:tt.String,sourceHash:tt.NullOr(tt.String),lastError:tt.NullOr(tt.String),createdAt:wt,updatedAt:wt}),kLt=tt.transform(GMe,tt.Struct({id:Mn,scopeId:hn,catalogId:Rc,catalogRevisionId:bm,name:tt.String,kind:G6,endpoint:tt.String,status:xv,enabled:tt.Boolean,namespace:tt.NullOr(tt.String),importAuthPolicy:ym,bindingConfigJson:tt.String,sourceHash:tt.NullOr(tt.String),lastError:tt.NullOr(tt.String),createdAt:wt,updatedAt:wt}),{strict:!1,decode:e=>({id:e.sourceId,scopeId:e.scopeId,catalogId:e.catalogId,catalogRevisionId:e.catalogRevisionId,name:e.name,kind:e.kind,endpoint:e.endpoint,status:e.status,enabled:e.enabled,namespace:e.namespace,importAuthPolicy:e.importAuthPolicy,bindingConfigJson:e.bindingConfigJson,sourceHash:e.sourceHash,lastError:e.lastError,createdAt:e.createdAt,updatedAt:e.updatedAt}),encode:e=>({scopeId:e.scopeId,sourceId:e.id,catalogId:e.catalogId,catalogRevisionId:e.catalogRevisionId,name:e.name,kind:e.kind,endpoint:e.endpoint,status:e.status,enabled:e.enabled,namespace:e.namespace,importAuthPolicy:e.importAuthPolicy,bindingConfigJson:e.bindingConfigJson,sourceHash:e.sourceHash,lastError:e.lastError,createdAt:e.createdAt,updatedAt:e.updatedAt})}),Up=tt.Struct({id:Mn,scopeId:hn,name:tt.String,kind:G6,endpoint:tt.String,status:xv,enabled:tt.Boolean,namespace:tt.NullOr(tt.String),bindingVersion:KB,binding:bv,importAuthPolicy:ym,importAuth:JB,auth:JB,sourceHash:tt.NullOr(tt.String),lastError:tt.NullOr(tt.String),createdAt:wt,updatedAt:wt});import{Schema as Pa}from"effect";var Dce=Pa.Literal("imported","internal"),Ace=Pa.String,wce=Pa.Literal("private","scope","organization","public"),RLt=Pa.Struct({id:Rc,kind:Dce,adapterKey:Ace,providerKey:Pa.String,name:Pa.String,summary:Pa.NullOr(Pa.String),visibility:wce,latestRevisionId:bm,createdAt:wt,updatedAt:wt}),BT=Pa.Struct({id:bm,catalogId:Rc,revisionNumber:Pa.Number,sourceConfigJson:Pa.String,importMetadataJson:Pa.NullOr(Pa.String),importMetadataHash:Pa.NullOr(Pa.String),snapshotHash:Pa.NullOr(Pa.String),createdAt:wt,updatedAt:wt});import{Schema as Im}from"effect";var Ice=Im.Literal("allow","deny"),kce=Im.Literal("auto","required"),HMe=Im.Struct({id:gv,key:Im.String,scopeId:hn,resourcePattern:Im.String,effect:Ice,approvalMode:kce,priority:Im.Number,enabled:Im.Boolean,createdAt:wt,updatedAt:wt});var ULt=Im.partial(HMe);import{Schema as Ev}from"effect";import*as Cce from"effect/Option";var Pce=Ev.Struct({id:yv,authArtifactId:og,scopeId:hn,sourceId:Mn,actorScopeId:Ev.NullOr(hn),slot:MT,placementsTemplateJson:Ev.String,expiresAt:Ev.NullOr(wt),refreshAfter:Ev.NullOr(wt),createdAt:wt,updatedAt:wt}),ZMe=Ev.decodeUnknownOption(K6),WMe=e=>{let t=ZMe(e.placementsTemplateJson);return Cce.isSome(t)?t.value:null},GB=e=>(WMe(e)??[]).flatMap(t=>t.parts.flatMap(r=>r.kind==="secret_ref"?[r.ref]:[]));import{Schema as Cl}from"effect";var QMe=Cl.Struct({redirectMode:Cl.optional(L6)}),HB=Cl.parseJson(QMe),Oce=Cl.Struct({id:z6,scopeId:hn,sourceId:Mn,providerKey:Cl.String,clientId:Cl.String,clientSecretProviderId:Cl.NullOr(Cl.String),clientSecretHandle:Cl.NullOr(Cl.String),clientMetadataJson:Cl.NullOr(Cl.String),createdAt:wt,updatedAt:wt});import{Schema as Cu}from"effect";var Nce=Cu.Struct({id:Em,scopeId:hn,providerKey:Cu.String,label:Cu.NullOr(Cu.String),clientId:Cu.String,clientSecretProviderId:Cu.NullOr(Cu.String),clientSecretHandle:Cu.NullOr(Cu.String),clientMetadataJson:Cu.NullOr(Cu.String),createdAt:wt,updatedAt:wt});import{Schema as zp}from"effect";var Fce=zp.Struct({id:jp,scopeId:hn,actorScopeId:zp.NullOr(hn),providerKey:zp.String,oauthClientId:Em,tokenEndpoint:zp.String,clientAuthentication:Sv,headerName:zp.String,prefix:zp.String,refreshToken:pi,grantedScopes:zp.Array(zp.String),lastRefreshedAt:zp.NullOr(wt),orphanedAt:zp.NullOr(wt),createdAt:wt,updatedAt:wt});import{Schema as km}from"effect";var XMe=km.Literal("auth_material","oauth_access_token","oauth_refresh_token","oauth_client_info"),Rce=km.Struct({id:Bp,name:km.NullOr(km.String),purpose:XMe,providerId:km.String,handle:km.String,value:km.NullOr(km.String),createdAt:wt,updatedAt:wt});import*as Tv from"effect/Schema";var YMe=Tv.Struct({scopeId:hn,actorScopeId:hn,resolutionScopeIds:Tv.Array(hn)});var T$t=Tv.partial(YMe);import{Schema as Ae}from"effect";var e7e=Ae.Literal("quickjs","ses","deno"),t7e=Ae.Literal("env","file","exec","params"),r7e=Ae.Struct({source:Ae.Literal("env")}),n7e=Ae.Literal("singleValue","json"),o7e=Ae.Struct({source:Ae.Literal("file"),path:Ae.String,mode:Ae.optional(n7e)}),i7e=Ae.Struct({source:Ae.Literal("exec"),command:Ae.String,args:Ae.optional(Ae.Array(Ae.String)),env:Ae.optional(Ae.Record({key:Ae.String,value:Ae.String})),allowSymlinkCommand:Ae.optional(Ae.Boolean),trustedDirs:Ae.optional(Ae.Array(Ae.String))}),a7e=Ae.Union(r7e,o7e,i7e),s7e=Ae.Struct({source:t7e,provider:Ae.String,id:Ae.String}),c7e=Ae.Union(Ae.String,s7e),l7e=Ae.Struct({endpoint:Ae.String,auth:Ae.optional(c7e)}),H6=Ae.Struct({name:Ae.optional(Ae.String),namespace:Ae.optional(Ae.String),enabled:Ae.optional(Ae.Boolean),connection:l7e}),u7e=Ae.Struct({specUrl:Ae.String,defaultHeaders:Ae.optional(Ae.NullOr(Wr))}),p7e=Ae.Struct({defaultHeaders:Ae.optional(Ae.NullOr(Wr))}),d7e=Ae.Struct({service:Ae.String,version:Ae.String,discoveryUrl:Ae.optional(Ae.NullOr(Ae.String)),defaultHeaders:Ae.optional(Ae.NullOr(Wr)),scopes:Ae.optional(Ae.Array(Ae.String))}),_7e=Ae.Struct({transport:Ae.optional(Ae.NullOr(Fc)),queryParams:Ae.optional(Ae.NullOr(Wr)),headers:Ae.optional(Ae.NullOr(Wr)),command:Ae.optional(Ae.NullOr(Ae.String)),args:Ae.optional(Ae.NullOr(v_)),env:Ae.optional(Ae.NullOr(Wr)),cwd:Ae.optional(Ae.NullOr(Ae.String))}),f7e=Ae.extend(H6,Ae.Struct({kind:Ae.Literal("openapi"),binding:u7e})),m7e=Ae.extend(H6,Ae.Struct({kind:Ae.Literal("graphql"),binding:p7e})),h7e=Ae.extend(H6,Ae.Struct({kind:Ae.Literal("google_discovery"),binding:d7e})),y7e=Ae.extend(H6,Ae.Struct({kind:Ae.Literal("mcp"),binding:_7e})),g7e=Ae.Union(f7e,m7e,h7e,y7e),S7e=Ae.Literal("allow","deny"),v7e=Ae.Literal("auto","manual"),b7e=Ae.Struct({match:Ae.String,action:S7e,approval:v7e,enabled:Ae.optional(Ae.Boolean),priority:Ae.optional(Ae.Number)}),x7e=Ae.Struct({providers:Ae.optional(Ae.Record({key:Ae.String,value:a7e})),defaults:Ae.optional(Ae.Struct({env:Ae.optional(Ae.String),file:Ae.optional(Ae.String),exec:Ae.optional(Ae.String)}))}),E7e=Ae.Struct({name:Ae.optional(Ae.String)}),Lce=Ae.Struct({runtime:Ae.optional(e7e),workspace:Ae.optional(E7e),sources:Ae.optional(Ae.Record({key:Ae.String,value:g7e})),policies:Ae.optional(Ae.Record({key:Ae.String,value:b7e})),secrets:Ae.optional(x7e)});import{Schema as Ut}from"effect";var $ce=Ut.Literal("pending","running","waiting_for_interaction","completed","failed","cancelled"),ZB=Ut.Struct({id:Il,scopeId:hn,createdByScopeId:hn,status:$ce,code:Ut.String,resultJson:Ut.NullOr(Ut.String),errorText:Ut.NullOr(Ut.String),logsJson:Ut.NullOr(Ut.String),startedAt:Ut.NullOr(wt),completedAt:Ut.NullOr(wt),createdAt:wt,updatedAt:wt});var O$t=Ut.partial(Ut.Struct({status:$ce,code:Ut.String,resultJson:Ut.NullOr(Ut.String),errorText:Ut.NullOr(Ut.String),logsJson:Ut.NullOr(Ut.String),startedAt:Ut.NullOr(wt),completedAt:Ut.NullOr(wt),updatedAt:wt})),Mce=Ut.Literal("pending","resolved","cancelled"),WB=Ut.Struct({id:Is,executionId:Il,status:Mce,kind:Ut.String,purpose:Ut.String,payloadJson:Ut.String,responseJson:Ut.NullOr(Ut.String),responsePrivateJson:Ut.NullOr(Ut.String),createdAt:wt,updatedAt:wt});var N$t=Ut.partial(Ut.Struct({status:Mce,kind:Ut.String,purpose:Ut.String,payloadJson:Ut.String,responseJson:Ut.NullOr(Ut.String),responsePrivateJson:Ut.NullOr(Ut.String),updatedAt:wt})),F$t=Ut.Struct({execution:ZB,pendingInteraction:Ut.NullOr(WB)}),T7e=Ut.Literal("tool_call"),jce=Ut.Literal("pending","waiting","completed","failed"),Bce=Ut.Struct({id:V6,executionId:Il,sequence:Ut.Number,kind:T7e,status:jce,path:Ut.String,argsJson:Ut.String,resultJson:Ut.NullOr(Ut.String),errorText:Ut.NullOr(Ut.String),interactionId:Ut.NullOr(Is),createdAt:wt,updatedAt:wt});var R$t=Ut.partial(Ut.Struct({status:jce,resultJson:Ut.NullOr(Ut.String),errorText:Ut.NullOr(Ut.String),interactionId:Ut.NullOr(Is),updatedAt:wt}));import{Schema as ze}from"effect";var D7e=ze.Literal("ir"),A7e=ze.Struct({path:ze.String,sourceKey:ze.String,title:ze.optional(ze.String),description:ze.optional(ze.String),protocol:ze.String,toolId:ze.String,rawToolId:ze.NullOr(ze.String),operationId:ze.NullOr(ze.String),group:ze.NullOr(ze.String),leaf:ze.NullOr(ze.String),tags:ze.Array(ze.String),method:ze.NullOr(ze.String),pathTemplate:ze.NullOr(ze.String),inputTypePreview:ze.optional(ze.String),outputTypePreview:ze.optional(ze.String)}),w7e=ze.Struct({label:ze.String,value:ze.String,mono:ze.optional(ze.Boolean)}),I7e=ze.Struct({kind:ze.Literal("facts"),title:ze.String,items:ze.Array(w7e)}),k7e=ze.Struct({kind:ze.Literal("markdown"),title:ze.String,body:ze.String}),C7e=ze.Struct({kind:ze.Literal("code"),title:ze.String,language:ze.String,body:ze.String}),P7e=ze.Union(I7e,k7e,C7e),O7e=ze.Struct({path:ze.String,method:ze.NullOr(ze.String),inputTypePreview:ze.optional(ze.String),outputTypePreview:ze.optional(ze.String)}),qce=ze.Struct({shapeId:ze.NullOr(ze.String),typePreview:ze.NullOr(ze.String),typeDeclaration:ze.NullOr(ze.String),schemaJson:ze.NullOr(ze.String),exampleJson:ze.NullOr(ze.String)}),N7e=ze.Struct({callSignature:ze.String,callDeclaration:ze.String,callShapeId:ze.String,resultShapeId:ze.NullOr(ze.String),responseSetId:ze.String,input:qce,output:qce}),j$t=ze.Struct({source:Up,namespace:ze.String,pipelineKind:D7e,toolCount:ze.Number,tools:ze.Array(O7e)}),B$t=ze.Struct({summary:A7e,contract:N7e,sections:ze.Array(P7e)}),q$t=ze.Struct({query:ze.String,limit:ze.optional(ze.Number)}),F7e=ze.Struct({path:ze.String,score:ze.Number,description:ze.optional(ze.String),inputTypePreview:ze.optional(ze.String),outputTypePreview:ze.optional(ze.String),reasons:ze.Array(ze.String)}),U$t=ze.Struct({query:ze.String,queryTokens:ze.Array(ze.String),bestPath:ze.NullOr(ze.String),total:ze.Number,results:ze.Array(F7e)});import{Schema as Uce}from"effect";var K$t=Uce.Struct({id:Uce.String,appliedAt:wt});import*as Kce from"effect/Either";import*as Pl from"effect/Effect";import*as Vp from"effect/Schema";import*as zce from"effect/Data";var QB=class extends zce.TaggedError("RuntimeEffectError"){},Ne=(e,t)=>new QB({module:e,message:t});var Vce={placements:[],headers:{},queryParams:{},cookies:{},bodyValues:{},expiresAt:null,refreshAfter:null,authProvider:void 0},R7e=Vp.encodeSync(RB),L7e=Vp.encodeSync(LB),yMt=Vp.encodeSync($B),$7e=Vp.encodeSync(MB),M7e=Vp.encodeSync(jB),j7e=Vp.encodeSync(jT),B7e=Vp.decodeUnknownEither(K6),q7e=Vp.encodeSync(BB),U7e=(e,t)=>{switch(t.location){case"header":e.headers[t.name]=t.value;break;case"query":e.queryParams[t.name]=t.value;break;case"cookie":e.cookies[t.name]=t.value;break;case"body":e.bodyValues[t.path]=t.value;break}},Z6=(e,t={})=>{let r={headers:{},queryParams:{},cookies:{},bodyValues:{}};for(let n of e)U7e(r,n);return{placements:e,headers:r.headers,queryParams:r.queryParams,cookies:r.cookies,bodyValues:r.bodyValues,expiresAt:t.expiresAt??null,refreshAfter:t.refreshAfter??null}},Jce=e=>Pl.map(Pl.forEach(e.parts,t=>t.kind==="literal"?Pl.succeed(t.value):e.resolveSecretMaterial({ref:t.ref,context:e.context}),{discard:!1}),t=>t.join("")),qT=e=>{if(e.auth.kind==="none")return null;let t=e.existingAuthArtifactId??`auth_art_${crypto.randomUUID()}`,r=e.auth.kind==="oauth2_authorized_user"?z7e(e.auth.grantSet):null;return e.auth.kind==="bearer"?{id:t,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:Dm,configJson:R7e({headerName:e.auth.headerName,prefix:e.auth.prefix,token:e.auth.token}),grantSetJson:r,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:e.auth.kind==="oauth2_authorized_user"?{id:t,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:kl,configJson:$7e({headerName:e.auth.headerName,prefix:e.auth.prefix,tokenEndpoint:e.auth.tokenEndpoint,clientId:e.auth.clientId,clientAuthentication:e.auth.clientAuthentication,clientSecret:e.auth.clientSecret,refreshToken:e.auth.refreshToken}),grantSetJson:r,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:e.auth.kind==="provider_grant_ref"?{id:t,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:NB,configJson:M7e({grantId:e.auth.grantId,providerKey:e.auth.providerKey,requiredScopes:[...e.auth.requiredScopes],headerName:e.auth.headerName,prefix:e.auth.prefix}),grantSetJson:r,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:e.auth.kind==="mcp_oauth"?{id:t,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:FB,configJson:j7e({redirectUri:e.auth.redirectUri,accessToken:e.auth.accessToken,refreshToken:e.auth.refreshToken,tokenType:e.auth.tokenType,expiresIn:e.auth.expiresIn,scope:e.auth.scope,resourceMetadataUrl:e.auth.resourceMetadataUrl,authorizationServerUrl:e.auth.authorizationServerUrl,resourceMetadataJson:e.auth.resourceMetadataJson,authorizationServerMetadataJson:e.auth.authorizationServerMetadataJson,clientInformationJson:e.auth.clientInformationJson}),grantSetJson:r,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:{id:t,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:Am,configJson:L7e({headerName:e.auth.headerName,prefix:e.auth.prefix,accessToken:e.auth.accessToken,refreshToken:e.auth.refreshToken}),grantSetJson:r,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}},W6=e=>{if(e===null)return{kind:"none"};let t=qp(e);if(t!==null)return{kind:"provider_grant_ref",grantId:t.grantId,providerKey:t.providerKey,requiredScopes:[...t.requiredScopes],headerName:t.headerName,prefix:t.prefix};let r=vv(e);if(r!==null)return{kind:"mcp_oauth",redirectUri:r.redirectUri,accessToken:r.accessToken,refreshToken:r.refreshToken,tokenType:r.tokenType,expiresIn:r.expiresIn,scope:r.scope,resourceMetadataUrl:r.resourceMetadataUrl,authorizationServerUrl:r.authorizationServerUrl,resourceMetadataJson:r.resourceMetadataJson,authorizationServerMetadataJson:r.authorizationServerMetadataJson,clientInformationJson:r.clientInformationJson};let n=wm(e);if(n===null)return{kind:"none"};switch(n.artifactKind){case Dm:return{kind:"bearer",headerName:n.config.headerName,prefix:n.config.prefix,token:n.config.token};case Am:return{kind:"oauth2",headerName:n.config.headerName,prefix:n.config.prefix,accessToken:n.config.accessToken,refreshToken:n.config.refreshToken};case ig:return{kind:"none"};case kl:return{kind:"oauth2_authorized_user",headerName:n.config.headerName,prefix:n.config.prefix,tokenEndpoint:n.config.tokenEndpoint,clientId:n.config.clientId,clientAuthentication:n.config.clientAuthentication,clientSecret:n.config.clientSecret,refreshToken:n.config.refreshToken,grantSet:vce(e.grantSetJson)}}};var UT=e=>bce(e);var z7e=e=>e===null?null:q7e([...e]),Cm=e=>Pl.gen(function*(){if(e.artifact===null)return Vce;let t=wm(e.artifact);if(t!==null)switch(t.artifactKind){case Dm:{let a=yield*e.resolveSecretMaterial({ref:t.config.token,context:e.context});return Z6([{location:"header",name:t.config.headerName,value:`${t.config.prefix}${a}`}])}case Am:{let a=yield*e.resolveSecretMaterial({ref:t.config.accessToken,context:e.context});return Z6([{location:"header",name:t.config.headerName,value:`${t.config.prefix}${a}`}])}case ig:{let a=yield*Pl.forEach(t.config.placements,s=>Pl.map(Jce({parts:s.parts,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context}),c=>s.location==="body"?{location:"body",path:s.path,value:c}:{location:s.location,name:s.name,value:c}),{discard:!1});return Z6(a)}case kl:break}if(qp(e.artifact)!==null&&(e.lease===null||e.lease===void 0))return yield*Ne("auth/auth-artifacts",`Provider grant auth artifact ${e.artifact.id} requires a lease`);if(vv(e.artifact)!==null)return{...Vce};if(e.lease===null||e.lease===void 0)return yield*Ne("auth/auth-artifacts",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let o=B7e(e.lease.placementsTemplateJson);if(Kce.isLeft(o))return yield*Ne("auth/auth-artifacts",`Invalid auth lease placements for artifact ${e.artifact.id}`);let i=yield*Pl.forEach(o.right,a=>Pl.map(Jce({parts:a.parts,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context}),s=>a.location==="body"?{location:"body",path:a.path,value:s}:{location:a.location,name:a.name,value:s}),{discard:!1});return Z6(i,{expiresAt:e.lease.expiresAt,refreshAfter:e.lease.refreshAfter})});import*as is from"effect/Effect";import*as ag from"effect/Option";import{createHash as V7e,randomBytes as J7e}from"node:crypto";import*as zT from"effect/Effect";var Gce=e=>e.toString("base64").replaceAll("+","-").replaceAll("/","_").replaceAll("=",""),XB=()=>Gce(J7e(48)),K7e=e=>Gce(V7e("sha256").update(e).digest()),YB=e=>{let t=new URL(e.authorizationEndpoint);t.searchParams.set("client_id",e.clientId),t.searchParams.set("redirect_uri",e.redirectUri),t.searchParams.set("response_type","code"),t.searchParams.set("scope",e.scopes.join(" ")),t.searchParams.set("state",e.state),t.searchParams.set("code_challenge_method","S256"),t.searchParams.set("code_challenge",K7e(e.codeVerifier));for(let[r,n]of Object.entries(e.extraParams??{}))t.searchParams.set(r,n);return t.toString()},G7e=async e=>{let t=await e.text(),r;try{r=JSON.parse(t)}catch{throw new Error(`OAuth token endpoint returned non-JSON response (${e.status})`)}if(r===null||typeof r!="object"||Array.isArray(r))throw new Error(`OAuth token endpoint returned invalid JSON payload (${e.status})`);let n=r,o=typeof n.access_token=="string"&&n.access_token.length>0?n.access_token:null;if(!e.ok){let i=typeof n.error_description=="string"&&n.error_description.length>0?n.error_description:typeof n.error=="string"&&n.error.length>0?n.error:`status ${e.status}`;throw new Error(`OAuth token exchange failed: ${i}`)}if(o===null)throw new Error("OAuth token endpoint did not return an access_token");return{access_token:o,token_type:typeof n.token_type=="string"?n.token_type:void 0,refresh_token:typeof n.refresh_token=="string"?n.refresh_token:void 0,expires_in:typeof n.expires_in=="number"?n.expires_in:typeof n.expires_in=="string"?Number(n.expires_in):void 0,scope:typeof n.scope=="string"?n.scope:void 0}},Hce=e=>zT.tryPromise({try:async()=>{let t=await fetch(e.tokenEndpoint,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded",accept:"application/json"},body:e.body,signal:AbortSignal.timeout(2e4)});return G7e(t)},catch:t=>t instanceof Error?t:new Error(String(t))}),eq=e=>zT.gen(function*(){let t=new URLSearchParams({grant_type:"authorization_code",client_id:e.clientId,redirect_uri:e.redirectUri,code_verifier:e.codeVerifier,code:e.code});return e.clientAuthentication==="client_secret_post"&&e.clientSecret&&t.set("client_secret",e.clientSecret),yield*Hce({tokenEndpoint:e.tokenEndpoint,body:t})}),tq=e=>zT.gen(function*(){let t=new URLSearchParams({grant_type:"refresh_token",client_id:e.clientId,refresh_token:e.refreshToken});return e.clientAuthentication==="client_secret_post"&&e.clientSecret&&t.set("client_secret",e.clientSecret),e.scopes&&e.scopes.length>0&&t.set("scope",e.scopes.join(" ")),yield*Hce({tokenEndpoint:e.tokenEndpoint,body:t})});import*as Lc from"effect/Effect";import*as Wce from"effect/Schema";var H7e=Wce.encodeSync(jT),rq=e=>{if(e!==null)try{let t=JSON.parse(e);return t!==null&&typeof t=="object"&&!Array.isArray(t)?t:void 0}catch{return}},Dv=e=>e==null?null:JSON.stringify(e),Z7e=e=>({redirect_uris:[e],grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none",client_name:"Executor Local"}),Zce=(e,t)=>(e?.providerId??null)===(t?.providerId??null)&&(e?.handle??null)===(t?.handle??null),W7e=e=>Lc.gen(function*(){Zce(e.previousAccessToken,e.nextAccessToken)||(yield*Lc.either(e.deleteSecretMaterial(e.previousAccessToken))),e.previousRefreshToken!==null&&!Zce(e.previousRefreshToken,e.nextRefreshToken)&&(yield*Lc.either(e.deleteSecretMaterial(e.previousRefreshToken)))}),Qce=e=>({kind:"mcp_oauth",redirectUri:e.redirectUri,accessToken:e.accessToken,refreshToken:e.refreshToken,tokenType:e.tokenType,expiresIn:e.expiresIn,scope:e.scope,resourceMetadataUrl:e.resourceMetadataUrl,authorizationServerUrl:e.authorizationServerUrl,resourceMetadataJson:Dv(e.resourceMetadata),authorizationServerMetadataJson:Dv(e.authorizationServerMetadata),clientInformationJson:Dv(e.clientInformation)}),Xce=e=>{let t=e.artifact,r=e.config,n=o=>Lc.gen(function*(){let i={...t,configJson:H7e(o),updatedAt:Date.now()};yield*e.executorState.authArtifacts.upsert(i),t=i,r=o});return{get redirectUrl(){return r.redirectUri},get clientMetadata(){return Z7e(r.redirectUri)},clientInformation:()=>rq(r.clientInformationJson),saveClientInformation:o=>Lc.runPromise(n({...r,clientInformationJson:Dv(o)})).then(()=>{}),tokens:async()=>{let o=await Lc.runPromise(e.resolveSecretMaterial({ref:r.accessToken,context:e.context})),i=r.refreshToken?await Lc.runPromise(e.resolveSecretMaterial({ref:r.refreshToken,context:e.context})):void 0;return{access_token:o,token_type:r.tokenType,...typeof r.expiresIn=="number"?{expires_in:r.expiresIn}:{},...r.scope?{scope:r.scope}:{},...i?{refresh_token:i}:{}}},saveTokens:o=>Lc.runPromise(Lc.gen(function*(){let i=r,a=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:o.access_token,name:`${t.sourceId} MCP Access Token`}),s=o.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:o.refresh_token,name:`${t.sourceId} MCP Refresh Token`}):r.refreshToken,c={...r,accessToken:a,refreshToken:s,tokenType:o.token_type??r.tokenType,expiresIn:typeof o.expires_in=="number"&&Number.isFinite(o.expires_in)?o.expires_in:r.expiresIn,scope:o.scope??r.scope};yield*n(c),yield*W7e({deleteSecretMaterial:e.deleteSecretMaterial,previousAccessToken:i.accessToken,nextAccessToken:a,previousRefreshToken:i.refreshToken,nextRefreshToken:s})})).then(()=>{}),redirectToAuthorization:async o=>{throw new Error(`MCP OAuth re-authorization is required for ${t.sourceId}: ${o.toString()}`)},saveCodeVerifier:()=>{},codeVerifier:()=>{throw new Error("Persisted MCP OAuth sessions do not retain an active PKCE verifier")},saveDiscoveryState:o=>Lc.runPromise(n({...r,resourceMetadataUrl:o.resourceMetadataUrl??null,authorizationServerUrl:o.authorizationServerUrl??null,resourceMetadataJson:Dv(o.resourceMetadata),authorizationServerMetadataJson:Dv(o.authorizationServerMetadata)})).then(()=>{}),discoveryState:()=>r.authorizationServerUrl===null?void 0:{resourceMetadataUrl:r.resourceMetadataUrl??void 0,authorizationServerUrl:r.authorizationServerUrl,resourceMetadata:rq(r.resourceMetadataJson),authorizationServerMetadata:rq(r.authorizationServerMetadataJson)}}};var X6=6e4,nq=e=>JSON.stringify(e),Q6=e=>`${e.providerId}:${e.handle}`,Y6=(e,t,r)=>is.gen(function*(){if(t.previous===null)return;let n=new Set((t.next===null?[]:GB(t.next)).map(Q6)),o=GB(t.previous).filter(i=>!n.has(Q6(i)));yield*is.forEach(o,i=>is.either(r(i)),{discard:!0})}),Yce=(e,t)=>!(e===null||e.refreshAfter!==null&&t>=e.refreshAfter||e.expiresAt!==null&&t>=e.expiresAt-X6),Q7e=e=>is.gen(function*(){let t=wm(e.artifact);if(t===null||t.artifactKind!==kl)return yield*Ne("auth/auth-leases",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let r=yield*e.resolveSecretMaterial({ref:t.config.refreshToken,context:e.context}),n=null;t.config.clientSecret&&(n=yield*e.resolveSecretMaterial({ref:t.config.clientSecret,context:e.context}));let o=yield*tq({tokenEndpoint:t.config.tokenEndpoint,clientId:t.config.clientId,clientAuthentication:t.config.clientAuthentication,clientSecret:n,refreshToken:r}),i=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:o.access_token,name:`${t.config.clientId} Access Token`}),a=Date.now(),s=typeof o.expires_in=="number"&&Number.isFinite(o.expires_in)?Math.max(0,o.expires_in*1e3):null,c=s===null?null:a+s,p=c===null?null:Math.max(a,c-X6),d={id:e.lease?.id??yv.make(`auth_lease_${crypto.randomUUID()}`),authArtifactId:e.artifact.id,scopeId:e.artifact.scopeId,sourceId:e.artifact.sourceId,actorScopeId:e.artifact.actorScopeId,slot:e.artifact.slot,placementsTemplateJson:nq([{location:"header",name:t.config.headerName,parts:[{kind:"literal",value:t.config.prefix},{kind:"secret_ref",ref:i}]}]),expiresAt:c,refreshAfter:p,createdAt:e.lease?.createdAt??a,updatedAt:a};return yield*e.executorState.authLeases.upsert(d),yield*Y6(e.executorState,{previous:e.lease,next:d},e.deleteSecretMaterial),d}),X7e=e=>e.clientSecretProviderId&&e.clientSecretHandle?{providerId:e.clientSecretProviderId,handle:e.clientSecretHandle}:null,Y7e=(e,t,r)=>Q6(t.previous)===Q6(t.next)?is.void:r(t.previous).pipe(is.either,is.ignore),eje=e=>is.gen(function*(){let t=qp(e.artifact);if(t===null)return yield*Ne("auth/auth-leases",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let r=yield*e.executorState.providerAuthGrants.getById(t.grantId);if(ag.isNone(r))return yield*Ne("auth/auth-leases",`Provider auth grant not found: ${t.grantId}`);let n=r.value,o=yield*e.executorState.scopeOauthClients.getById(n.oauthClientId);if(ag.isNone(o))return yield*Ne("auth/auth-leases",`Scope OAuth client not found: ${n.oauthClientId}`);let i=o.value,a=yield*e.resolveSecretMaterial({ref:n.refreshToken,context:e.context}),s=X7e(i),c=s?yield*e.resolveSecretMaterial({ref:s,context:e.context}):null,p=yield*tq({tokenEndpoint:n.tokenEndpoint,clientId:i.clientId,clientAuthentication:n.clientAuthentication,clientSecret:c,refreshToken:a,scopes:t.requiredScopes.length>0?t.requiredScopes:null}),d=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:p.access_token,name:`${n.providerKey} Access Token`}),f=p.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:p.refresh_token,name:`${n.providerKey} Refresh Token`}):n.refreshToken,m=Date.now(),y={...n,refreshToken:f,lastRefreshedAt:m,updatedAt:m};yield*e.executorState.providerAuthGrants.upsert(y),yield*Y7e(e.executorState,{previous:n.refreshToken,next:f},e.deleteSecretMaterial);let g=typeof p.expires_in=="number"&&Number.isFinite(p.expires_in)?Math.max(0,p.expires_in*1e3):null,S=g===null?null:m+g,x=S===null?null:Math.max(m,S-X6),A={id:e.lease?.id??yv.make(`auth_lease_${crypto.randomUUID()}`),authArtifactId:e.artifact.id,scopeId:e.artifact.scopeId,sourceId:e.artifact.sourceId,actorScopeId:e.artifact.actorScopeId,slot:e.artifact.slot,placementsTemplateJson:nq([{location:"header",name:t.headerName,parts:[{kind:"literal",value:t.prefix},{kind:"secret_ref",ref:d}]}]),expiresAt:S,refreshAfter:x,createdAt:e.lease?.createdAt??m,updatedAt:m};return yield*e.executorState.authLeases.upsert(A),yield*Y6(e.executorState,{previous:e.lease,next:A},e.deleteSecretMaterial),A}),w_=(e,t,r)=>is.gen(function*(){let n=yield*e.authLeases.getByAuthArtifactId(t.authArtifactId);ag.isNone(n)||(yield*e.authLeases.removeByAuthArtifactId(t.authArtifactId),yield*Y6(e,{previous:n.value,next:null},r))}),ele=e=>is.gen(function*(){let t=wm(e.artifact);if(t===null||t.artifactKind!==kl)return yield*Ne("auth/auth-leases",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let r=yield*e.executorState.authLeases.getByAuthArtifactId(e.artifact.id),n=ag.isSome(r)?r.value:null,o=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:e.tokenResponse.access_token,name:`${t.config.clientId} Access Token`}),i=Date.now(),a=typeof e.tokenResponse.expires_in=="number"&&Number.isFinite(e.tokenResponse.expires_in)?Math.max(0,e.tokenResponse.expires_in*1e3):null,s=a===null?null:i+a,c=s===null?null:Math.max(i,s-X6),p={id:n?.id??yv.make(`auth_lease_${crypto.randomUUID()}`),authArtifactId:e.artifact.id,scopeId:e.artifact.scopeId,sourceId:e.artifact.sourceId,actorScopeId:e.artifact.actorScopeId,slot:e.artifact.slot,placementsTemplateJson:nq([{location:"header",name:t.config.headerName,parts:[{kind:"literal",value:t.config.prefix},{kind:"secret_ref",ref:o}]}]),expiresAt:s,refreshAfter:c,createdAt:n?.createdAt??i,updatedAt:i};yield*e.executorState.authLeases.upsert(p),yield*Y6(e.executorState,{previous:n,next:p},e.deleteSecretMaterial)}),oq=e=>is.gen(function*(){if(e.artifact===null)return yield*Cm({artifact:null,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context});let t=yield*e.executorState.authLeases.getByAuthArtifactId(e.artifact.id),r=ag.isSome(t)?t.value:null,n=wm(e.artifact),o=qp(e.artifact),i=vv(e.artifact);if(n!==null&&n.artifactKind===kl){let a=Yce(r,Date.now())?r:yield*Q7e({executorState:e.executorState,artifact:e.artifact,lease:r,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,context:e.context});return yield*Cm({artifact:e.artifact,lease:a,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})}if(o!==null){let a=Yce(r,Date.now())?r:yield*eje({executorState:e.executorState,artifact:e.artifact,lease:r,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,context:e.context});return yield*Cm({artifact:e.artifact,lease:a,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})}return i!==null?{...yield*Cm({artifact:e.artifact,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context}),authProvider:Xce({executorState:e.executorState,artifact:e.artifact,config:i,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,context:e.context})}:yield*Cm({artifact:e.artifact,lease:r,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})});import*as Av from"effect/Context";var Ol=class extends Av.Tag("#runtime/SecretMaterialResolverService")(){},Ys=class extends Av.Tag("#runtime/SecretMaterialStorerService")(){},as=class extends Av.Tag("#runtime/SecretMaterialDeleterService")(){},Jp=class extends Av.Tag("#runtime/SecretMaterialUpdaterService")(){},Kp=class extends Av.Tag("#runtime/LocalInstanceConfigService")(){};var tje=e=>e.slot==="runtime"||e.source.importAuthPolicy==="reuse_runtime"?e.source.auth:e.source.importAuthPolicy==="none"?{kind:"none"}:e.source.importAuth,Pm=class extends tle.Tag("#runtime/RuntimeSourceAuthMaterialService")(){},rje=e=>I_.gen(function*(){let t=e.slot??"runtime";if(e.executorState!==void 0){let n=t==="import"&&e.source.importAuthPolicy==="reuse_runtime"?["import","runtime"]:[t];for(let o of n){let i=yield*e.executorState.authArtifacts.getByScopeSourceAndActor({scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:o});if(nle.isSome(i))return yield*oq({executorState:e.executorState,artifact:i.value,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial??(()=>I_.dieMessage("storeSecretMaterial unavailable")),deleteSecretMaterial:e.deleteSecretMaterial??(()=>I_.dieMessage("deleteSecretMaterial unavailable")),context:e.context})}}let r=qT({source:e.source,auth:tje({source:e.source,slot:t}),slot:t,actorScopeId:e.actorScopeId??null});return e.executorState!==void 0?yield*oq({executorState:e.executorState,artifact:r,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial??(()=>I_.dieMessage("storeSecretMaterial unavailable")),deleteSecretMaterial:e.deleteSecretMaterial??(()=>I_.dieMessage("deleteSecretMaterial unavailable")),context:e.context}):r?.artifactKind==="oauth2_authorized_user"||r?.artifactKind==="provider_grant_ref"||r?.artifactKind==="mcp_oauth"?yield*Ne("auth/source-auth-material","Dynamic auth artifacts require persistence-backed lease resolution"):yield*Cm({artifact:r,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})});var ole=rle.effect(Pm,I_.gen(function*(){let e=yield*Wn,t=yield*Ol,r=yield*Ys,n=yield*as;return Pm.of({resolve:o=>rje({...o,executorState:e,resolveSecretMaterial:t,storeSecretMaterial:r,deleteSecretMaterial:n})})}));import*as gQ from"effect/Cache";import*as XTe from"effect/Context";import*as Br from"effect/Effect";import*as YTe from"effect/Layer";import*as xn from"effect/Match";import*as Iv from"effect/Data";var e3=class extends Iv.TaggedError("RuntimeLocalScopeUnavailableError"){},wv=class extends Iv.TaggedError("RuntimeLocalScopeMismatchError"){},VT=class extends Iv.TaggedError("LocalConfiguredSourceNotFoundError"){},t3=class extends Iv.TaggedError("LocalSourceArtifactMissingError"){},r3=class extends Iv.TaggedError("LocalUnsupportedSourceKindError"){};import{createHash as nje}from"node:crypto";var oje=/^[A-Za-z_$][A-Za-z0-9_$]*$/,ije=e=>nje("sha256").update(e).digest("hex").slice(0,24),lq=e=>oje.test(e)?e:JSON.stringify(e),sle=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2").split(/[^A-Za-z0-9]+/).filter(t=>t.length>0),aje=e=>/^\d+$/.test(e)?e:`${e.slice(0,1).toUpperCase()}${e.slice(1).toLowerCase()}`,sg=e=>{let t=sle(e).map(r=>aje(r)).join("");return t.length===0?"Type":/^[A-Za-z_$]/.test(t)?t:`T${t}`},di=(...e)=>e.map(t=>sg(t)).filter(t=>t.length>0).join(""),cle=e=>{switch(e){case"string":case"boolean":return e;case"bytes":return"string";case"integer":case"number":return"number";case"null":return"null";case"object":return"Record";case"array":return"Array";default:throw new Error(`Unsupported JSON Schema primitive type: ${e}`)}},Cv=e=>{let t=JSON.stringify(e);if(t===void 0)throw new Error(`Unsupported literal value in declaration schema: ${String(e)}`);return t},Om=e=>e.includes(" | ")||e.includes(" & ")?`(${e})`:e,sje=(e,t)=>e.length===0?"{}":["{",...e.flatMap(r=>r.split(` +`))},RT=e=>{let t=_$e(e.catalog),r={},n={},o={},i=Object.values(t.capabilities).sort((a,s)=>a.id.localeCompare(s.id));for(let a of i){let s=A$e(t,a);r[a.id]=s,n[a.id]=w$e(t,a),o[a.id]=I$e(t,a,s)}return{catalog:t,toolDescriptors:r,searchDocs:n,capabilityViews:o}};var LT=e=>Dc(e),Fp=e=>e,$T=e=>yv({import:e.importMetadata,fragments:[e.fragment]});import*as Pse from"effect/Schema";var kse=e=>{let t=new Map(e.map(i=>[i.key,i])),r=i=>{let a=t.get(i);if(!a)throw new Error(`Unsupported source adapter: ${i}`);return a},n=i=>r(i.kind);return{adapters:e,getSourceAdapter:r,getSourceAdapterForSource:n,findSourceAdapterByProviderKey:i=>e.find(a=>a.providerKey===i)??null,sourceBindingStateFromSource:i=>n(i).bindingStateFromSource(i),sourceAdapterCatalogKind:i=>r(i).catalogKind,sourceAdapterRequiresInteractiveConnect:i=>r(i).connectStrategy==="interactive",sourceAdapterUsesCredentialManagedAuth:i=>r(i).credentialStrategy==="credential_managed",isInternalSourceAdapter:i=>r(i).catalogKind==="internal"}};var O$e=e=>e.connectPayloadSchema!==null,N$e=e=>e.executorAddInputSchema!==null,F$e=e=>e.localConfigBindingSchema!==null,R$e=e=>e,Cse=(e,t)=>e.length===0?(()=>{throw new Error(`Cannot create ${t} without any schemas`)})():e.length===1?e[0]:Pse.Union(...R$e(e)),Ose=e=>{let t=e.filter(O$e),r=e.filter(N$e),n=e.filter(F$e),o=kse(e);return{connectableSourceAdapters:t,connectPayloadSchema:Cse(t.map(i=>i.connectPayloadSchema),"connect payload schema"),executorAddableSourceAdapters:r,executorAddInputSchema:Cse(r.map(i=>i.executorAddInputSchema),"executor add input schema"),localConfigurableSourceAdapters:n,...o}};import*as Bt from"effect/Schema";import*as we from"effect/Schema";var ku=we.Struct({providerId:we.String,handle:we.String}),W9t=we.Literal("runtime","import"),Q9t=we.Literal("imported","internal"),L$e=we.String,$$e=we.Literal("draft","probing","auth_required","connected","error"),Fc=we.Literal("auto","streamable-http","sse","stdio"),vm=we.Literal("none","reuse_runtime","separate"),Qr=we.Record({key:we.String,value:we.String}),x_=we.Array(we.String),mB=we.suspend(()=>we.Union(we.String,we.Number,we.Boolean,we.Null,we.Array(mB),we.Record({key:we.String,value:mB}))).annotations({identifier:"JsonValue"}),Fse=we.Record({key:we.String,value:mB}).annotations({identifier:"JsonObject"}),Nse=we.Union(we.Struct({kind:we.Literal("none")}),we.Struct({kind:we.Literal("bearer"),headerName:we.String,prefix:we.String,token:ku}),we.Struct({kind:we.Literal("oauth2"),headerName:we.String,prefix:we.String,accessToken:ku,refreshToken:we.NullOr(ku)}),we.Struct({kind:we.Literal("oauth2_authorized_user"),headerName:we.String,prefix:we.String,tokenEndpoint:we.String,clientId:we.String,clientAuthentication:we.Literal("none","client_secret_post"),clientSecret:we.NullOr(ku),refreshToken:ku,grantSet:we.NullOr(we.Array(we.String))}),we.Struct({kind:we.Literal("provider_grant_ref"),grantId:we.String,providerKey:we.String,requiredScopes:we.Array(we.String),headerName:we.String,prefix:we.String}),we.Struct({kind:we.Literal("mcp_oauth"),redirectUri:we.String,accessToken:ku,refreshToken:we.NullOr(ku),tokenType:we.String,expiresIn:we.NullOr(we.Number),scope:we.NullOr(we.String),resourceMetadataUrl:we.NullOr(we.String),authorizationServerUrl:we.NullOr(we.String),resourceMetadataJson:we.NullOr(we.String),authorizationServerMetadataJson:we.NullOr(we.String),clientInformationJson:we.NullOr(we.String)})),$6=we.Number,X9t=we.Struct({version:$6,payload:Fse}),Y9t=we.Struct({id:we.String,scopeId:we.String,name:we.String,kind:L$e,endpoint:we.String,status:$$e,enabled:we.Boolean,namespace:we.NullOr(we.String),bindingVersion:$6,binding:Fse,importAuthPolicy:vm,importAuth:Nse,auth:Nse,sourceHash:we.NullOr(we.String),lastError:we.NullOr(we.String),createdAt:we.Number,updatedAt:we.Number}),e5t=we.Struct({id:we.String,bindingConfigJson:we.NullOr(we.String)}),M6=we.Literal("app_callback","loopback"),Rse=we.String,hB=we.Struct({clientId:we.Trim.pipe(we.nonEmptyString()),clientSecret:we.optional(we.NullOr(we.Trim.pipe(we.nonEmptyString()))),redirectMode:we.optional(M6)});var yB=Bt.Literal("mcp","openapi","google_discovery","graphql","unknown"),j6=Bt.Literal("low","medium","high"),gB=Bt.Literal("none","bearer","oauth2","apiKey","basic","unknown"),SB=Bt.Literal("header","query","cookie"),Lse=Bt.Union(Bt.Struct({kind:Bt.Literal("none")}),Bt.Struct({kind:Bt.Literal("bearer"),headerName:Bt.optional(Bt.NullOr(Bt.String)),prefix:Bt.optional(Bt.NullOr(Bt.String)),token:Bt.String}),Bt.Struct({kind:Bt.Literal("basic"),username:Bt.String,password:Bt.String}),Bt.Struct({kind:Bt.Literal("headers"),headers:Qr})),vB=Bt.Struct({suggestedKind:gB,confidence:j6,supported:Bt.Boolean,reason:Bt.String,headerName:Bt.NullOr(Bt.String),prefix:Bt.NullOr(Bt.String),parameterName:Bt.NullOr(Bt.String),parameterLocation:Bt.NullOr(SB),oauthAuthorizationUrl:Bt.NullOr(Bt.String),oauthTokenUrl:Bt.NullOr(Bt.String),oauthScopes:Bt.Array(Bt.String)}),$se=Bt.Struct({detectedKind:yB,confidence:j6,endpoint:Bt.String,specUrl:Bt.NullOr(Bt.String),name:Bt.NullOr(Bt.String),namespace:Bt.NullOr(Bt.String),transport:Bt.NullOr(Fc),authInference:vB,toolCount:Bt.NullOr(Bt.Number),warnings:Bt.Array(Bt.String)});import*as Mse from"effect/Data";var bB=class extends Mse.TaggedError("SourceCoreEffectError"){},Co=(e,t)=>new bB({module:e,message:t});import*as jse from"effect/Data";import*as Cu from"effect/Effect";import*as qt from"effect/Schema";var M$e=qt.Trim.pipe(qt.nonEmptyString()),Ho=qt.optional(qt.NullOr(qt.String)),j$e=qt.Struct({kind:qt.Literal("bearer"),headerName:Ho,prefix:Ho,token:Ho,tokenRef:qt.optional(qt.NullOr(ku))}),B$e=qt.Struct({kind:qt.Literal("oauth2"),headerName:Ho,prefix:Ho,accessToken:Ho,accessTokenRef:qt.optional(qt.NullOr(ku)),refreshToken:Ho,refreshTokenRef:qt.optional(qt.NullOr(ku))}),T_=qt.Union(qt.Struct({kind:qt.Literal("none")}),j$e,B$e),bm=qt.Struct({importAuthPolicy:qt.optional(vm),importAuth:qt.optional(T_)}),Bse=qt.optional(qt.NullOr(hB)),B6=qt.Struct({endpoint:M$e,name:Ho,namespace:Ho}),xB=qt.Struct({transport:qt.optional(qt.NullOr(Fc)),queryParams:qt.optional(qt.NullOr(Qr)),headers:qt.optional(qt.NullOr(Qr)),command:qt.optional(qt.NullOr(qt.String)),args:qt.optional(qt.NullOr(x_)),env:qt.optional(qt.NullOr(Qr)),cwd:qt.optional(qt.NullOr(qt.String))});var E_=class extends jse.TaggedError("SourceCredentialRequiredError"){constructor(t,r){super({slot:t,message:r})}},D_=e=>e instanceof E_,Rp={transport:null,queryParams:null,headers:null,command:null,args:null,env:null,cwd:null,specUrl:null,defaultHeaders:null},qse=(e,t)=>qt.Struct({adapterKey:qt.Literal(e),version:$6,payload:t}),Lp=e=>qt.encodeSync(qt.parseJson(qse(e.adapterKey,e.payloadSchema)))({adapterKey:e.adapterKey,version:e.version,payload:e.payload}),$p=e=>e.value===null?Cu.fail(Co("core/shared",`Missing ${e.label} binding config for ${e.sourceId}`)):Cu.try({try:()=>qt.decodeUnknownSync(qt.parseJson(qse(e.adapterKey,e.payloadSchema)))(e.value),catch:t=>{let r=t instanceof Error?t.message:String(t);return new Error(`Invalid ${e.label} binding config for ${e.sourceId}: ${r}`)}}).pipe(Cu.flatMap(t=>t.version===e.version?Cu.succeed({version:t.version,payload:t.payload}):Cu.fail(Co("core/shared",`Unsupported ${e.label} binding config version ${t.version} for ${e.sourceId}; expected ${e.version}`)))),Mp=e=>e.version!==e.expectedVersion?Cu.fail(Co("core/shared",`Unsupported ${e.label} binding version ${e.version} for ${e.sourceId}; expected ${e.expectedVersion}`)):Cu.try({try:()=>{if(e.allowedKeys&&e.value!==null&&typeof e.value=="object"&&!Array.isArray(e.value)){let t=Object.keys(e.value).filter(r=>!e.allowedKeys.includes(r));if(t.length>0)throw new Error(`Unsupported fields: ${t.join(", ")}`)}return qt.decodeUnknownSync(e.schema)(e.value)},catch:t=>{let r=t instanceof Error?t.message:String(t);return new Error(`Invalid ${e.label} binding payload for ${e.sourceId}: ${r}`)}}),xm=e=>{if(e.version!==e.expectedVersion)throw new Error(`Unsupported ${e.label} executable binding version ${e.version} for ${e.executableId}; expected ${e.expectedVersion}`);try{return qt.decodeUnknownSync(e.schema)(e.value)}catch(t){let r=t instanceof Error?t.message:String(t);throw new Error(`Invalid ${e.label} executable binding for ${e.executableId}: ${r}`)}};import*as Sv from"effect/Effect";import*as Use from"effect/Data";var EB=class extends Use.TaggedError("McpOAuthEffectError"){},TB=(e,t)=>new EB({module:e,message:t});var zse=e=>e instanceof Error?e:new Error(String(e)),gv=e=>e!=null&&typeof e=="object"&&!Array.isArray(e)?e:null,Jse=e=>({redirect_uris:[e],grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none",client_name:"Executor Local"}),MT=e=>Sv.gen(function*(){let t={},r={get redirectUrl(){return e.redirectUrl},get clientMetadata(){return Jse(e.redirectUrl)},state:()=>e.state,clientInformation:()=>t.clientInformation,saveClientInformation:o=>{t.clientInformation=o},tokens:()=>{},saveTokens:()=>{},redirectToAuthorization:o=>{t.authorizationUrl=o},saveCodeVerifier:o=>{t.codeVerifier=o},codeVerifier:()=>{if(!t.codeVerifier)throw new Error("OAuth code verifier was not captured");return t.codeVerifier},saveDiscoveryState:o=>{t.discoveryState=o},discoveryState:()=>t.discoveryState};return(yield*Sv.tryPromise({try:()=>Al(r,{serverUrl:e.endpoint}),catch:zse}))!=="REDIRECT"||!t.authorizationUrl||!t.codeVerifier?yield*TB("index","OAuth flow did not produce an authorization redirect"):{authorizationUrl:t.authorizationUrl.toString(),codeVerifier:t.codeVerifier,resourceMetadataUrl:t.discoveryState?.resourceMetadataUrl??null,authorizationServerUrl:t.discoveryState?.authorizationServerUrl??null,resourceMetadata:gv(t.discoveryState?.resourceMetadata),authorizationServerMetadata:gv(t.discoveryState?.authorizationServerMetadata),clientInformation:gv(t.clientInformation)}}),DB=e=>Sv.gen(function*(){let t={discoveryState:{authorizationServerUrl:e.session.authorizationServerUrl??new URL("/",e.session.endpoint).toString(),resourceMetadataUrl:e.session.resourceMetadataUrl??void 0,resourceMetadata:e.session.resourceMetadata,authorizationServerMetadata:e.session.authorizationServerMetadata},clientInformation:e.session.clientInformation},r={get redirectUrl(){return e.session.redirectUrl},get clientMetadata(){return Jse(e.session.redirectUrl)},clientInformation:()=>t.clientInformation,saveClientInformation:o=>{t.clientInformation=o},tokens:()=>{},saveTokens:o=>{t.tokens=o},redirectToAuthorization:()=>{throw new Error("Unexpected redirect while completing MCP OAuth")},saveCodeVerifier:()=>{},codeVerifier:()=>e.session.codeVerifier,saveDiscoveryState:o=>{t.discoveryState=o},discoveryState:()=>t.discoveryState};return(yield*Sv.tryPromise({try:()=>Al(r,{serverUrl:e.session.endpoint,authorizationCode:e.code}),catch:zse}))!=="AUTHORIZED"||!t.tokens?yield*TB("index","OAuth redirect did not complete MCP OAuth setup"):{tokens:t.tokens,resourceMetadataUrl:t.discoveryState?.resourceMetadataUrl??null,authorizationServerUrl:t.discoveryState?.authorizationServerUrl??null,resourceMetadata:gv(t.discoveryState?.resourceMetadata),authorizationServerMetadata:gv(t.discoveryState?.authorizationServerMetadata),clientInformation:gv(t.clientInformation)}});import*as J6 from"effect/Either";import*as w_ from"effect/Effect";import*as rce from"effect/Data";import*as kB from"effect/Either";import*as Pr from"effect/Effect";import*as nce from"effect/Cause";import*as oce from"effect/Exit";import*as ice from"effect/PartitionedSemaphore";import*as Vse from"effect/Either";import*as Kse from"effect/Option";import*as Gse from"effect/ParseResult";import*as So from"effect/Schema";var Hse=So.Record({key:So.String,value:So.Unknown}),q$e=So.decodeUnknownOption(Hse),Zse=e=>{let t=q$e(e);return Kse.isSome(t)?t.value:{}},U$e=So.Struct({mode:So.optional(So.Union(So.Literal("form"),So.Literal("url"))),message:So.optional(So.String),requestedSchema:So.optional(Hse),url:So.optional(So.String),elicitationId:So.optional(So.String),id:So.optional(So.String)}),z$e=So.decodeUnknownEither(U$e),Wse=e=>{let t=z$e(e);if(Vse.isLeft(t))throw new Error(`Invalid MCP elicitation request params: ${Gse.TreeFormatter.formatErrorSync(t.left)}`);let r=t.right,n=r.message??"";return r.mode==="url"?{mode:"url",message:n,url:r.url??"",elicitationId:r.elicitationId??r.id??""}:{mode:"form",message:n,requestedSchema:r.requestedSchema??{}}},Qse=e=>e.action==="accept"?{action:"accept",...e.content?{content:e.content}:{}}:{action:e.action},Xse=e=>typeof e.setRequestHandler=="function",AB=e=>e.elicitation.mode==="url"&&e.elicitation.elicitationId.length>0?e.elicitation.elicitationId:[e.invocation?.runId,e.invocation?.callId,e.path,"mcp",typeof e.sequence=="number"?String(e.sequence):void 0].filter(r=>typeof r=="string"&&r.length>0).join(":"),IB=e=>e instanceof tT&&Array.isArray(e.elicitations)&&e.elicitations.length>0;import*as Yse from"effect/Option";import*as ir from"effect/Schema";var J$e=e=>{let t=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"");return t.length>0?t:"tool"},V$e=(e,t)=>{let r=J$e(e),n=(t.get(r)??0)+1;return t.set(r,n),n===1?r:`${r}_${n}`},A_=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{},q6=e=>{let t=A_(e);return Object.keys(t).length>0?t:null},jp=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),I_=e=>typeof e=="string"&&e.trim().length>0?e.trim():null,Em=e=>typeof e=="boolean"?e:null,ece=e=>Array.isArray(e)?e:null,K$e=ir.Struct({title:ir.optional(ir.NullOr(ir.String)),readOnlyHint:ir.optional(ir.Boolean),destructiveHint:ir.optional(ir.Boolean),idempotentHint:ir.optional(ir.Boolean),openWorldHint:ir.optional(ir.Boolean)}),G$e=ir.Struct({taskSupport:ir.optional(ir.Literal("forbidden","optional","required"))}),H$e=ir.Struct({name:ir.String,title:ir.optional(ir.NullOr(ir.String)),description:ir.optional(ir.NullOr(ir.String)),inputSchema:ir.optional(ir.Unknown),parameters:ir.optional(ir.Unknown),outputSchema:ir.optional(ir.Unknown),annotations:ir.optional(K$e),execution:ir.optional(G$e),icons:ir.optional(ir.Unknown),_meta:ir.optional(ir.Unknown)}),Z$e=ir.Struct({tools:ir.Array(H$e),nextCursor:ir.optional(ir.NullOr(ir.String)),_meta:ir.optional(ir.Unknown)}),W$e=ir.decodeUnknownOption(Z$e),Q$e=e=>{let t=W$e(e);return Yse.isNone(t)?[]:t.value.tools},X$e=e=>{let t=q6(e);if(t===null)return null;let r={title:I_(t.title),readOnlyHint:Em(t.readOnlyHint),destructiveHint:Em(t.destructiveHint),idempotentHint:Em(t.idempotentHint),openWorldHint:Em(t.openWorldHint)};return Object.values(r).some(n=>n!==null)?r:null},Y$e=e=>{let t=q6(e);if(t===null)return null;let r=t.taskSupport;return r!=="forbidden"&&r!=="optional"&&r!=="required"?null:{taskSupport:r}},eMe=e=>{let t=q6(e),r=t?I_(t.name):null,n=t?I_(t.version):null;return r===null||n===null?null:{name:r,version:n,title:I_(t?.title),description:I_(t?.description),websiteUrl:I_(t?.websiteUrl),icons:ece(t?.icons)}},tMe=e=>{let t=q6(e);if(t===null)return null;let r=A_(t.prompts),n=A_(t.resources),o=A_(t.tools),i=A_(t.tasks),a=A_(i.requests),s=A_(a.tools);return{experimental:jp(t,"experimental")?A_(t.experimental):null,logging:jp(t,"logging"),completions:jp(t,"completions"),prompts:jp(t,"prompts")?{listChanged:Em(r.listChanged)??!1}:null,resources:jp(t,"resources")?{subscribe:Em(n.subscribe)??!1,listChanged:Em(n.listChanged)??!1}:null,tools:jp(t,"tools")?{listChanged:Em(o.listChanged)??!1}:null,tasks:jp(t,"tasks")?{list:jp(i,"list"),cancel:jp(i,"cancel"),toolCall:jp(s,"call")}:null}},rMe=e=>{let t=eMe(e?.serverInfo),r=tMe(e?.serverCapabilities),n=I_(e?.instructions),o=e?.serverInfo??null,i=e?.serverCapabilities??null;return t===null&&r===null&&n===null&&o===null&&i===null?null:{info:t,capabilities:r,instructions:n,rawInfo:o,rawCapabilities:i}},wB=(e,t)=>{let r=new Map,n=A_(e),o=Array.isArray(n.tools)?n.tools:[],i=Q$e(e).map((a,s)=>{let c=a.name.trim();if(c.length===0)return null;let p=I_(a.title),d=X$e(a.annotations),f=p??d?.title??c;return{toolId:V$e(c,r),toolName:c,title:p,displayTitle:f,description:a.description??null,annotations:d,execution:Y$e(a.execution),icons:ece(a.icons),meta:a._meta??null,rawTool:o[s]??null,inputSchema:a.inputSchema??a.parameters,outputSchema:a.outputSchema}}).filter(a=>a!==null);return{version:2,server:rMe(t),listTools:{nextCursor:I_(n.nextCursor),meta:n._meta??null,rawResult:e},tools:i}},tce=(e,t)=>!e||e.trim().length===0?t:`${e}.${t}`;var wl=class extends rce.TaggedError("McpToolsError"){},nMe="__EXECUTION_SUSPENDED__",oMe=e=>{if(e instanceof Error)return`${e.message} +${e.stack??""}`;if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}},U6=e=>oMe(e).includes(nMe),ig=e=>e instanceof Error?e.message:String(e),iMe=e=>{if(e==null)return Wd;try{return Wx(e,{vendor:"mcp",fallback:Wd})}catch{return Wd}},aMe=e=>Pr.tryPromise({try:()=>e.close?.()??Promise.resolve(),catch:t=>t instanceof Error?t:new Error(String(t??"mcp connection close failed"))}).pipe(Pr.asVoid,Pr.catchAll(()=>Pr.void)),ace=e=>Pr.acquireUseRelease(e.connect.pipe(Pr.mapError(e.onConnectError)),e.run,aMe),sMe=ice.makeUnsafe({permits:1}),sce=(e,t)=>sMe.withPermits(e,1)(t),cce=e=>e.onElicitation({interactionId:e.interactionId,path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.executionContext?.metadata,context:e.executionContext?.invocation,elicitation:e.elicitation}).pipe(Pr.mapError(t=>U6(t)?t:new wl({stage:"call_tool",message:`Failed resolving elicitation for ${e.toolName}`,details:ig(t)}))),lce=e=>{let t=e.client;return Xse(t)?Pr.try({try:()=>{let r=0;t.setRequestHandler(uT,n=>(r+=1,Pr.runPromise(Pr.try({try:()=>Wse(n.params),catch:o=>new wl({stage:"call_tool",message:`Failed parsing MCP elicitation for ${e.toolName}`,details:ig(o)})}).pipe(Pr.flatMap(o=>cce({toolName:e.toolName,onElicitation:e.onElicitation,interactionId:AB({path:e.path,invocation:e.executionContext?.invocation,elicitation:o,sequence:r}),path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext,elicitation:o})),Pr.map(Qse),Pr.catchAll(o=>U6(o)?Pr.fail(o):(console.error(`[mcp-tools] elicitation failed for ${e.toolName}, treating as cancel:`,o instanceof Error?o.message:String(o)),Pr.succeed({action:"cancel"})))))))},catch:r=>r instanceof wl?r:new wl({stage:"call_tool",message:`Failed installing elicitation handler for ${e.toolName}`,details:ig(r)})}):Pr.succeed(void 0)},uce=e=>Pr.forEach(e.cause.elicitations,t=>cce({toolName:e.toolName,onElicitation:e.onElicitation,interactionId:AB({path:e.path,invocation:e.executionContext?.invocation,elicitation:t}),path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext,elicitation:t}).pipe(Pr.flatMap(r=>r.action==="accept"?Pr.succeed(void 0):Pr.fail(new wl({stage:"call_tool",message:`URL elicitation was not accepted for ${e.toolName}`,details:r.action})))),{discard:!0}),cMe=e=>Pr.tryPromise({try:()=>e.client.callTool({name:e.toolName,arguments:e.args}),catch:t=>t}),lMe=e=>e?{path:e.path,sourceKey:e.sourceKey,metadata:e.metadata,invocation:e.invocation,onElicitation:e.onElicitation}:void 0,uMe=e=>Pr.gen(function*(){let t=lMe(e.mcpDiscoveryElicitation);e.mcpDiscoveryElicitation&&(yield*lce({client:e.connection.client,toolName:"tools/list",onElicitation:e.mcpDiscoveryElicitation.onElicitation,path:e.mcpDiscoveryElicitation.path,sourceKey:e.mcpDiscoveryElicitation.sourceKey,args:e.mcpDiscoveryElicitation.args,executionContext:t}));let r=0;for(;;){let n=yield*Pr.either(Pr.tryPromise({try:()=>e.connection.client.listTools(),catch:o=>o}));if(kB.isRight(n))return n.right;if(U6(n.left))return yield*n.left;if(e.mcpDiscoveryElicitation&&IB(n.left)&&r<2){yield*uce({cause:n.left,toolName:"tools/list",onElicitation:e.mcpDiscoveryElicitation.onElicitation,path:e.mcpDiscoveryElicitation.path,sourceKey:e.mcpDiscoveryElicitation.sourceKey,args:e.mcpDiscoveryElicitation.args,executionContext:t}),r+=1;continue}return yield*new wl({stage:"list_tools",message:"Failed listing MCP tools",details:ig(n.left)})}}),pMe=e=>Pr.gen(function*(){let t=e.executionContext?.onElicitation;t&&(yield*lce({client:e.connection.client,toolName:e.toolName,onElicitation:t,path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext}));let r=0;for(;;){let n=yield*Pr.either(cMe({client:e.connection.client,toolName:e.toolName,args:e.args}));if(kB.isRight(n))return n.right;if(U6(n.left))return yield*n.left;if(t&&IB(n.left)&&r<2){yield*uce({cause:n.left,toolName:e.toolName,onElicitation:t,path:e.path,sourceKey:e.sourceKey,args:e.args,executionContext:e.executionContext}),r+=1;continue}return yield*new wl({stage:"call_tool",message:`Failed invoking MCP tool: ${e.toolName}`,details:ig(n.left)})}});var z6=e=>{let t=e.sourceKey??"mcp.generated";return Object.fromEntries(e.manifest.tools.map(r=>{let n=tce(e.namespace,r.toolId);return[n,vl({tool:{description:r.description??`MCP tool: ${r.toolName}`,inputSchema:iMe(r.inputSchema),execute:async(o,i)=>{let a=await Pr.runPromiseExit(ace({connect:e.connect,onConnectError:s=>new wl({stage:"connect",message:`Failed connecting to MCP server for ${r.toolName}`,details:ig(s)}),run:s=>{let c=Zse(o),p=pMe({connection:s,toolName:r.toolName,path:n,sourceKey:t,args:c,executionContext:i});return i?.onElicitation?sce(s.client,p):p}}));if(oce.isSuccess(a))return a.value;throw nce.squash(a.cause)}},metadata:{sourceKey:t,contract:{...r.inputSchema!==void 0?{inputSchema:r.inputSchema}:{},...r.outputSchema!==void 0?{outputSchema:r.outputSchema}:{}}}})]}))},ag=e=>Pr.gen(function*(){let t=yield*ace({connect:e.connect,onConnectError:n=>new wl({stage:"connect",message:"Failed connecting to MCP server",details:ig(n)}),run:n=>{let o=uMe({connection:n,mcpDiscoveryElicitation:e.mcpDiscoveryElicitation}),i=e.mcpDiscoveryElicitation?sce(n.client,o):o;return Pr.map(i,a=>({listed:a,serverInfo:n.client.getServerVersion?.(),serverCapabilities:n.client.getServerCapabilities?.(),instructions:n.client.getInstructions?.()}))}}),r=wB(t.listed,{serverInfo:t.serverInfo,serverCapabilities:t.serverCapabilities,instructions:t.instructions});return{manifest:r,tools:z6({manifest:r,connect:e.connect,namespace:e.namespace,sourceKey:e.sourceKey})}});var CB=e=>w_.gen(function*(){let t=dm({endpoint:e.normalizedUrl,headers:e.headers,transport:"auto"}),r=yield*w_.either(ag({connect:t,sourceKey:"discovery",namespace:os(Pp(e.normalizedUrl))}));if(J6.isRight(r)){let i=Pp(e.normalizedUrl);return{detectedKind:"mcp",confidence:"high",endpoint:e.normalizedUrl,specUrl:null,name:i,namespace:os(i),transport:"auto",authInference:Op("MCP tool discovery succeeded without an advertised auth requirement","medium"),toolCount:r.right.manifest.tools.length,warnings:[]}}let n=yield*w_.either(MT({endpoint:e.normalizedUrl,redirectUrl:"http://127.0.0.1/executor/discovery/oauth/callback",state:"source-discovery"}));if(J6.isLeft(n))return null;let o=Pp(e.normalizedUrl);return{detectedKind:"mcp",confidence:"high",endpoint:e.normalizedUrl,specUrl:null,name:o,namespace:os(o),transport:"auto",authInference:Iu("oauth2",{confidence:"high",reason:"MCP endpoint advertised OAuth during discovery",headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:n.right.authorizationUrl,oauthTokenUrl:n.right.authorizationServerUrl,oauthScopes:[]}),toolCount:null,warnings:["OAuth is required before MCP tools can be listed."]}}).pipe(w_.catchAll(()=>w_.succeed(null)));import*as Pi from"effect/Schema";var PB=Pi.Struct({transport:Pi.optional(Pi.NullOr(Fc)),queryParams:Pi.optional(Pi.NullOr(Qr)),headers:Pi.optional(Pi.NullOr(Qr)),command:Pi.optional(Pi.NullOr(Pi.String)),args:Pi.optional(Pi.NullOr(x_)),env:Pi.optional(Pi.NullOr(Qr)),cwd:Pi.optional(Pi.NullOr(Pi.String))});var dMe=e=>e?.taskSupport==="optional"||e?.taskSupport==="required",_Me=e=>{let t=e.effect==="read";return{effect:e.effect,safe:t,idempotent:t||e.annotations?.idempotentHint===!0,destructive:t?!1:e.annotations?.destructiveHint!==!1}},fMe=e=>{let t=g_(e.source,e.operation.providerData.toolId),r=Oc.make(`cap_${hn({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),n=Qs.make(`exec_${hn({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"mcp"})}`),o=e.operation.outputSchema!==void 0?e.importer.importSchema(e.operation.outputSchema,`#/mcp/${e.operation.providerData.toolId}/output`):void 0,i=e.operation.inputSchema===void 0?e.importer.importSchema({type:"object",properties:{},additionalProperties:!1},`#/mcp/${e.operation.providerData.toolId}/call`):oB(e.operation.inputSchema)?e.importer.importSchema(e.operation.inputSchema,`#/mcp/${e.operation.providerData.toolId}/call`,e.operation.inputSchema):e.importer.importSchema(dv({type:"object",properties:{input:e.operation.inputSchema},required:["input"],additionalProperties:!1},e.operation.inputSchema),`#/mcp/${e.operation.providerData.toolId}/call`),a=e.importer.importSchema({type:"null"},`#/mcp/${e.operation.providerData.toolId}/status`),s=Nc.make(`response_${hn({capabilityId:r})}`);Vr(e.catalog.symbols)[s]={id:s,kind:"response",...In({description:e.operation.providerData.description??e.operation.description})?{docs:In({description:e.operation.providerData.description??e.operation.description})}:{},...o?{contents:[{mediaType:"application/json",shapeId:o}]}:{},synthetic:!1,provenance:pn(e.documentId,`#/mcp/${e.operation.providerData.toolId}/response`)};let c=v_({catalog:e.catalog,responseId:s,provenance:pn(e.documentId,`#/mcp/${e.operation.providerData.toolId}/responseSet`)});Vr(e.catalog.executables)[n]={id:n,capabilityId:r,scopeId:e.serviceScopeId,adapterKey:"mcp",bindingVersion:Ca,binding:e.operation.providerData,projection:{responseSetId:c,callShapeId:i,...o?{resultDataShapeId:o}:{},resultStatusShapeId:a},display:{protocol:"mcp",method:null,pathTemplate:null,operationId:e.operation.providerData.toolName,group:null,leaf:e.operation.providerData.toolName,rawToolId:e.operation.providerData.toolId,title:e.operation.providerData.displayTitle,summary:e.operation.providerData.description??e.operation.description??null},synthetic:!1,provenance:pn(e.documentId,`#/mcp/${e.operation.providerData.toolId}/executable`)};let p=S_(e.operation.effect);Vr(e.catalog.capabilities)[r]={id:r,serviceScopeId:e.serviceScopeId,surface:{toolPath:t,title:e.operation.providerData.displayTitle,...e.operation.providerData.description?{summary:e.operation.providerData.description}:{}},semantics:_Me({effect:e.operation.effect,annotations:e.operation.providerData.annotations}),auth:{kind:"none"},interaction:{...p,resume:{supported:dMe(e.operation.providerData.execution)}},executableIds:[n],synthetic:!1,provenance:pn(e.documentId,`#/mcp/${e.operation.providerData.toolId}/capability`)}},pce=e=>b_({source:e.source,documents:e.documents,registerOperations:({catalog:t,documentId:r,serviceScopeId:n,importer:o})=>{for(let i of e.operations)fMe({catalog:t,source:e.source,documentId:r,serviceScopeId:n,operation:i,importer:o})}});import*as Oi from"effect/Effect";import*as Mt from"effect/Schema";var dce=e=>Tc({headers:{...e.headers,...e.authHeaders},cookies:e.authCookies}),OB=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},mMe=e=>e,hMe=e=>{let t=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"");return t.length>0?t:"source"},_ce=(e,t)=>Co("mcp/adapter",t===void 0?e:`${e}: ${t instanceof Error?t.message:String(t)}`),yMe=Mt.optional(Mt.NullOr(x_)),gMe=Mt.extend(xB,Mt.Struct({kind:Mt.Literal("mcp"),endpoint:Ho,name:Ho,namespace:Ho})),SMe=Mt.extend(xB,Mt.Struct({kind:Mt.optional(Mt.Literal("mcp")),endpoint:Ho,name:Ho,namespace:Ho})),fce=Mt.Struct({transport:Mt.NullOr(Fc),queryParams:Mt.NullOr(Qr),headers:Mt.NullOr(Qr),command:Mt.NullOr(Mt.String),args:Mt.NullOr(x_),env:Mt.NullOr(Qr),cwd:Mt.NullOr(Mt.String)}),vMe=Mt.Struct({transport:Mt.optional(Mt.NullOr(Fc)),queryParams:Mt.optional(Mt.NullOr(Qr)),headers:Mt.optional(Mt.NullOr(Qr)),command:Mt.optional(Mt.NullOr(Mt.String)),args:yMe,env:Mt.optional(Mt.NullOr(Qr)),cwd:Mt.optional(Mt.NullOr(Mt.String))}),bMe=Mt.Struct({toolId:Mt.String,toolName:Mt.String,displayTitle:Mt.String,title:Mt.NullOr(Mt.String),description:Mt.NullOr(Mt.String),annotations:Mt.NullOr(Mt.Unknown),execution:Mt.NullOr(Mt.Unknown),icons:Mt.NullOr(Mt.Unknown),meta:Mt.NullOr(Mt.Unknown),rawTool:Mt.NullOr(Mt.Unknown),server:Mt.NullOr(Mt.Unknown)}),jT=1,mce=(e,t)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&t.some(r=>Object.prototype.hasOwnProperty.call(e,r)),NB=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},xMe=e=>{if(!e||e.length===0)return null;let t=e.map(r=>r.trim()).filter(r=>r.length>0);return t.length>0?t:null},EMe=e=>Oi.gen(function*(){let t=NB(e.command);return tg({transport:e.transport??void 0,command:t??void 0})?t===null?yield*Co("mcp/adapter","MCP stdio transport requires a command"):e.queryParams&&Object.keys(e.queryParams).length>0?yield*Co("mcp/adapter","MCP stdio transport does not support query params"):e.headers&&Object.keys(e.headers).length>0?yield*Co("mcp/adapter","MCP stdio transport does not support request headers"):{transport:"stdio",queryParams:null,headers:null,command:t,args:xMe(e.args),env:e.env??null,cwd:NB(e.cwd)}:t!==null||e.args||e.env||NB(e.cwd)!==null?yield*Co("mcp/adapter",'MCP process settings require transport: "stdio"'):{transport:e.transport??null,queryParams:e.queryParams??null,headers:e.headers??null,command:null,args:null,env:null,cwd:null}}),sg=e=>Oi.gen(function*(){if(mce(e.binding,["specUrl"]))return yield*Co("mcp/adapter","MCP sources cannot define specUrl");if(mce(e.binding,["defaultHeaders"]))return yield*Co("mcp/adapter","MCP sources cannot define HTTP source settings");let t=yield*Mp({sourceId:e.id,label:"MCP",version:e.bindingVersion,expectedVersion:jT,schema:vMe,value:e.binding,allowedKeys:["transport","queryParams","headers","command","args","env","cwd"]});return yield*EMe(t)}),TMe=e=>e.annotations?.readOnlyHint===!0?"read":"write",DMe=e=>({toolId:e.entry.toolId,title:e.entry.displayTitle??e.entry.title??e.entry.toolName,description:e.entry.description??null,effect:TMe(e.entry),inputSchema:e.entry.inputSchema,outputSchema:e.entry.outputSchema,providerData:{toolId:e.entry.toolId,toolName:e.entry.toolName,displayTitle:e.entry.displayTitle??e.entry.title??e.entry.toolName,title:e.entry.title??null,description:e.entry.description??null,annotations:e.entry.annotations??null,execution:e.entry.execution??null,icons:e.entry.icons??null,meta:e.entry.meta??null,rawTool:e.entry.rawTool??null,server:e.server??null}}),FB=e=>{let t=Date.now(),r=JSON.stringify(e.manifest),n=LT(r);return Fp({fragment:pce({source:e.source,documents:[{documentKind:"mcp_manifest",documentKey:e.endpoint,contentText:r,fetchedAt:t}],operations:e.manifest.tools.map(o=>DMe({entry:o,server:e.manifest.server}))}),importMetadata:Is({source:e.source,adapterKey:"mcp"}),sourceHash:n})},hce={key:"mcp",displayName:"MCP",catalogKind:"imported",connectStrategy:"interactive",credentialStrategy:"adapter_defined",bindingConfigVersion:jT,providerKey:"generic_mcp",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:gMe,executorAddInputSchema:SMe,executorAddHelpText:['Omit kind or set kind: "mcp". For remote servers, provide endpoint plus optional transport/queryParams/headers.','For local servers, set transport: "stdio" and provide command plus optional args/env/cwd.'],executorAddInputSignatureWidth:240,localConfigBindingSchema:PB,localConfigBindingFromSource:e=>Oi.runSync(Oi.map(sg(e),t=>({transport:t.transport,queryParams:t.queryParams,headers:t.headers,command:t.command,args:t.args,env:t.env,cwd:t.cwd}))),serializeBindingConfig:e=>Lp({adapterKey:"mcp",version:jT,payloadSchema:fce,payload:Oi.runSync(sg(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:t})=>Oi.map($p({sourceId:e,label:"MCP",adapterKey:"mcp",version:jT,payloadSchema:fce,value:t}),({version:r,payload:n})=>({version:r,payload:n})),bindingStateFromSource:e=>Oi.map(sg(e),t=>({...Rp,transport:t.transport,queryParams:t.queryParams,headers:t.headers,command:t.command,args:t.args,env:t.env,cwd:t.cwd})),sourceConfigFromSource:e=>Oi.runSync(Oi.map(sg(e),t=>({kind:"mcp",endpoint:e.endpoint,transport:t.transport,queryParams:t.queryParams,headers:t.headers,command:t.command,args:t.args,env:t.env,cwd:t.cwd}))),validateSource:e=>Oi.gen(function*(){let t=yield*sg(e);return{...e,bindingVersion:jT,binding:{transport:t.transport,queryParams:t.queryParams,headers:t.headers,command:t.command,args:t.args,env:t.env,cwd:t.cwd}}}),shouldAutoProbe:()=>!1,discoveryPriority:({normalizedUrl:e})=>ym(e)?350:125,detectSource:({normalizedUrl:e,headers:t})=>CB({normalizedUrl:e,headers:t}),syncCatalog:({source:e,resolveAuthMaterialForSlot:t})=>Oi.gen(function*(){let r=yield*sg(e),n=yield*t("import"),o=dm({endpoint:e.endpoint,transport:r.transport??void 0,queryParams:{...r.queryParams,...n.queryParams},headers:dce({headers:r.headers??{},authHeaders:n.headers,authCookies:n.cookies}),authProvider:n.authProvider,command:r.command??void 0,args:r.args??void 0,env:r.env??void 0,cwd:r.cwd??void 0}),i=yield*ag({connect:o,namespace:e.namespace??hMe(e.name),sourceKey:e.id}).pipe(Oi.mapError(a=>new Error(`Failed discovering MCP tools for ${e.id}: ${a.message}${a.details?` (${a.details})`:""}`)));return FB({source:e,endpoint:e.endpoint,manifest:i.manifest})}),invoke:e=>Oi.gen(function*(){if(e.executable.adapterKey!=="mcp")return yield*Co("mcp/adapter",`Expected MCP executable binding, got ${e.executable.adapterKey}`);let t=yield*Oi.try({try:()=>xm({executableId:e.executable.id,label:"MCP",version:e.executable.bindingVersion,expectedVersion:Ca,schema:bMe,value:e.executable.binding}),catch:y=>_ce("Failed decoding MCP executable binding",y)}),r=yield*sg(e.source),n=_L({connect:dm({endpoint:e.source.endpoint,transport:r.transport??void 0,queryParams:{...r.queryParams,...e.auth.queryParams},headers:dce({headers:r.headers??{},authHeaders:e.auth.headers,authCookies:e.auth.cookies}),authProvider:e.auth.authProvider,command:r.command??void 0,args:r.args??void 0,env:r.env??void 0,cwd:r.cwd??void 0}),runId:typeof e.context?.runId=="string"&&e.context.runId.length>0?e.context.runId:void 0,sourceKey:e.source.id}),i=z6({manifest:{version:2,tools:[{toolId:t.toolName,toolName:t.toolName,displayTitle:e.capability.surface.title??e.executable.display?.title??t.toolName,title:e.capability.surface.title??e.executable.display?.title??null,description:e.capability.surface.summary??e.capability.surface.description??e.executable.display?.summary??`MCP tool: ${t.toolName}`,annotations:null,execution:null,icons:null,meta:null,rawTool:null,inputSchema:e.descriptor.contract?.inputSchema,outputSchema:e.descriptor.contract?.outputSchema}]},connect:n,sourceKey:e.source.id})[t.toolName],a=i&&typeof i=="object"&&i!==null&&"tool"in i?i.tool:i;if(!a)return yield*Co("mcp/adapter",`Missing MCP tool definition for ${t.toolName}`);let s=e.executable.projection.callShapeId?e.catalog.symbols[e.executable.projection.callShapeId]:void 0,c=s?.kind==="shape"&&s.node.type!=="object"?OB(e.args).input:e.args,p=e.onElicitation?{path:mMe(e.descriptor.path),sourceKey:e.source.id,metadata:{sourceKey:e.source.id,interaction:e.descriptor.interaction,contract:{...e.descriptor.contract?.inputSchema!==void 0?{inputSchema:e.descriptor.contract.inputSchema}:{},...e.descriptor.contract?.outputSchema!==void 0?{outputSchema:e.descriptor.contract.outputSchema}:{}},providerKind:e.descriptor.providerKind,providerData:e.descriptor.providerData},invocation:e.context,onElicitation:e.onElicitation}:void 0,d=yield*Oi.tryPromise({try:async()=>await a.execute(OB(c),p),catch:y=>_ce(`Failed invoking MCP tool ${t.toolName}`,y)}),m=OB(d).isError===!0;return{data:m?null:d??null,error:m?d:null,headers:{},status:null}})};import*as li from"effect/Effect";import*as Eo from"effect/Layer";import*as ZAe from"effect/ManagedRuntime";import*as nle from"effect/Context";import*as C_ from"effect/Effect";import*as ole from"effect/Layer";import*as ile from"effect/Option";import*as yce from"effect/Context";var Wn=class extends yce.Tag("#runtime/ExecutorStateStore")(){};import{Schema as AMe}from"effect";var It=AMe.Number;import{Schema as tt}from"effect";import{Schema as oo}from"effect";var Br=oo.String.pipe(oo.brand("ScopeId")),Mn=oo.String.pipe(oo.brand("SourceId")),Rc=oo.String.pipe(oo.brand("SourceCatalogId")),Tm=oo.String.pipe(oo.brand("SourceCatalogRevisionId")),Dm=oo.String.pipe(oo.brand("SourceAuthSessionId")),cg=oo.String.pipe(oo.brand("AuthArtifactId")),vv=oo.String.pipe(oo.brand("AuthLeaseId"));var V6=oo.String.pipe(oo.brand("ScopedSourceOauthClientId")),Am=oo.String.pipe(oo.brand("ScopeOauthClientId")),Bp=oo.String.pipe(oo.brand("ProviderAuthGrantId")),qp=oo.String.pipe(oo.brand("SecretMaterialId")),bv=oo.String.pipe(oo.brand("PolicyId")),kl=oo.String.pipe(oo.brand("ExecutionId")),ws=oo.String.pipe(oo.brand("ExecutionInteractionId")),K6=oo.String.pipe(oo.brand("ExecutionStepId"));import{Schema as Le}from"effect";import*as Im from"effect/Option";var pi=Le.Struct({providerId:Le.String,handle:Le.String}),BT=Le.Literal("runtime","import"),gce=BT,Sce=Le.String,IMe=Le.Array(Le.String),G6=Le.Union(Le.Struct({kind:Le.Literal("literal"),value:Le.String}),Le.Struct({kind:Le.Literal("secret_ref"),ref:pi})),vce=Le.Union(Le.Struct({location:Le.Literal("header"),name:Le.String,parts:Le.Array(G6)}),Le.Struct({location:Le.Literal("query"),name:Le.String,parts:Le.Array(G6)}),Le.Struct({location:Le.Literal("cookie"),name:Le.String,parts:Le.Array(G6)}),Le.Struct({location:Le.Literal("body"),path:Le.String,parts:Le.Array(G6)})),wMe=Le.Union(Le.Struct({location:Le.Literal("header"),name:Le.String,value:Le.String}),Le.Struct({location:Le.Literal("query"),name:Le.String,value:Le.String}),Le.Struct({location:Le.Literal("cookie"),name:Le.String,value:Le.String}),Le.Struct({location:Le.Literal("body"),path:Le.String,value:Le.String})),H6=Le.parseJson(Le.Array(vce)),wm="static_bearer",km="static_oauth2",lg="static_placements",Cl="oauth2_authorized_user",RB="provider_grant_ref",LB="mcp_oauth",xv=Le.Literal("none","client_secret_post"),kMe=Le.Literal(wm,km,lg,Cl),CMe=Le.Struct({headerName:Le.String,prefix:Le.String,token:pi}),PMe=Le.Struct({headerName:Le.String,prefix:Le.String,accessToken:pi,refreshToken:Le.NullOr(pi)}),OMe=Le.Struct({placements:Le.Array(vce)}),NMe=Le.Struct({headerName:Le.String,prefix:Le.String,tokenEndpoint:Le.String,clientId:Le.String,clientAuthentication:xv,clientSecret:Le.NullOr(pi),refreshToken:pi}),FMe=Le.Struct({grantId:Bp,providerKey:Le.String,requiredScopes:Le.Array(Le.String),headerName:Le.String,prefix:Le.String}),RMe=Le.Struct({redirectUri:Le.String,accessToken:pi,refreshToken:Le.NullOr(pi),tokenType:Le.String,expiresIn:Le.NullOr(Le.Number),scope:Le.NullOr(Le.String),resourceMetadataUrl:Le.NullOr(Le.String),authorizationServerUrl:Le.NullOr(Le.String),resourceMetadataJson:Le.NullOr(Le.String),authorizationServerMetadataJson:Le.NullOr(Le.String),clientInformationJson:Le.NullOr(Le.String)}),$B=Le.parseJson(CMe),MB=Le.parseJson(PMe),jB=Le.parseJson(OMe),BB=Le.parseJson(NMe),qB=Le.parseJson(FMe),qT=Le.parseJson(RMe),gLt=Le.parseJson(Le.Array(wMe)),UB=Le.parseJson(IMe),LMe=Le.decodeUnknownOption($B),$Me=Le.decodeUnknownOption(MB),MMe=Le.decodeUnknownOption(jB),jMe=Le.decodeUnknownOption(BB),BMe=Le.decodeUnknownOption(qB),qMe=Le.decodeUnknownOption(qT),UMe=Le.decodeUnknownOption(UB),bce=Le.Struct({id:cg,scopeId:Br,sourceId:Mn,actorScopeId:Le.NullOr(Br),slot:BT,artifactKind:Sce,configJson:Le.String,grantSetJson:Le.NullOr(Le.String),createdAt:It,updatedAt:It}),Up=e=>{if(e.artifactKind!==RB)return null;let t=BMe(e.configJson);return Im.isSome(t)?t.value:null},Ev=e=>{if(e.artifactKind!==LB)return null;let t=qMe(e.configJson);return Im.isSome(t)?t.value:null},Cm=e=>{switch(e.artifactKind){case wm:{let t=LMe(e.configJson);return Im.isSome(t)?{artifactKind:wm,config:t.value}:null}case km:{let t=$Me(e.configJson);return Im.isSome(t)?{artifactKind:km,config:t.value}:null}case lg:{let t=MMe(e.configJson);return Im.isSome(t)?{artifactKind:lg,config:t.value}:null}case Cl:{let t=jMe(e.configJson);return Im.isSome(t)?{artifactKind:Cl,config:t.value}:null}default:return null}},zMe=e=>{let t=e!==null&&typeof e=="object"?e.grantSetJson:e;if(t===null)return null;let r=UMe(t);return Im.isSome(r)?r.value:null},xce=zMe,Ece=e=>{let t=Cm(e);if(t!==null)switch(t.artifactKind){case wm:return[t.config.token];case km:return t.config.refreshToken?[t.config.accessToken,t.config.refreshToken]:[t.config.accessToken];case lg:return t.config.placements.flatMap(n=>n.parts.flatMap(o=>o.kind==="secret_ref"?[o.ref]:[]));case Cl:return t.config.clientSecret?[t.config.refreshToken,t.config.clientSecret]:[t.config.refreshToken]}let r=Ev(e);return r!==null?r.refreshToken?[r.accessToken,r.refreshToken]:[r.accessToken]:[]};import{Schema as it}from"effect";var Tce=it.String,Dce=it.Literal("pending","completed","failed","cancelled"),zB=it.suspend(()=>it.Union(it.String,it.Number,it.Boolean,it.Null,it.Array(zB),it.Record({key:it.String,value:zB}))).annotations({identifier:"JsonValue"}),Tv=it.Record({key:it.String,value:zB}).annotations({identifier:"JsonObject"}),JMe=it.Struct({kind:it.Literal("mcp_oauth"),endpoint:it.String,redirectUri:it.String,scope:it.NullOr(it.String),resourceMetadataUrl:it.NullOr(it.String),authorizationServerUrl:it.NullOr(it.String),resourceMetadata:it.NullOr(Tv),authorizationServerMetadata:it.NullOr(Tv),clientInformation:it.NullOr(Tv),codeVerifier:it.NullOr(it.String),authorizationUrl:it.NullOr(it.String)}),JB=it.parseJson(JMe),VMe=it.Struct({kind:it.Literal("oauth2_pkce"),providerKey:it.String,authorizationEndpoint:it.String,tokenEndpoint:it.String,redirectUri:it.String,clientId:it.String,clientAuthentication:xv,clientSecret:it.NullOr(pi),scopes:it.Array(it.String),headerName:it.String,prefix:it.String,authorizationParams:it.Record({key:it.String,value:it.String}),codeVerifier:it.NullOr(it.String),authorizationUrl:it.NullOr(it.String)}),VB=it.parseJson(VMe),KMe=it.Struct({sourceId:Mn,requiredScopes:it.Array(it.String)}),GMe=it.Struct({kind:it.Literal("provider_oauth_batch"),providerKey:it.String,authorizationEndpoint:it.String,tokenEndpoint:it.String,redirectUri:it.String,oauthClientId:Am,clientAuthentication:xv,scopes:it.Array(it.String),headerName:it.String,prefix:it.String,authorizationParams:it.Record({key:it.String,value:it.String}),targetSources:it.Array(KMe),codeVerifier:it.NullOr(it.String),authorizationUrl:it.NullOr(it.String)}),KB=it.parseJson(GMe),Ace=it.Struct({id:Dm,scopeId:Br,sourceId:Mn,actorScopeId:it.NullOr(Br),credentialSlot:gce,executionId:it.NullOr(kl),interactionId:it.NullOr(ws),providerKind:Tce,status:Dce,state:it.String,sessionDataJson:it.String,errorText:it.NullOr(it.String),completedAt:it.NullOr(It),createdAt:It,updatedAt:It});var Z6=tt.String,Dv=tt.Literal("draft","probing","auth_required","connected","error"),GB=tt.Union(tt.Struct({kind:tt.Literal("none")}),tt.Struct({kind:tt.Literal("bearer"),headerName:tt.String,prefix:tt.String,token:pi}),tt.Struct({kind:tt.Literal("oauth2"),headerName:tt.String,prefix:tt.String,accessToken:pi,refreshToken:tt.NullOr(pi)}),tt.Struct({kind:tt.Literal("oauth2_authorized_user"),headerName:tt.String,prefix:tt.String,tokenEndpoint:tt.String,clientId:tt.String,clientAuthentication:tt.Literal("none","client_secret_post"),clientSecret:tt.NullOr(pi),refreshToken:pi,grantSet:tt.NullOr(tt.Array(tt.String))}),tt.Struct({kind:tt.Literal("provider_grant_ref"),grantId:Bp,providerKey:tt.String,requiredScopes:tt.Array(tt.String),headerName:tt.String,prefix:tt.String}),tt.Struct({kind:tt.Literal("mcp_oauth"),redirectUri:tt.String,accessToken:pi,refreshToken:tt.NullOr(pi),tokenType:tt.String,expiresIn:tt.NullOr(tt.Number),scope:tt.NullOr(tt.String),resourceMetadataUrl:tt.NullOr(tt.String),authorizationServerUrl:tt.NullOr(tt.String),resourceMetadataJson:tt.NullOr(tt.String),authorizationServerMetadataJson:tt.NullOr(tt.String),clientInformationJson:tt.NullOr(tt.String)})),HB=tt.Number,HMe=tt.Struct({version:HB,payload:Tv}),ZMe=tt.Struct({scopeId:Br,sourceId:Mn,catalogId:Rc,catalogRevisionId:Tm,name:tt.String,kind:Z6,endpoint:tt.String,status:Dv,enabled:tt.Boolean,namespace:tt.NullOr(tt.String),importAuthPolicy:vm,bindingConfigJson:tt.String,sourceHash:tt.NullOr(tt.String),lastError:tt.NullOr(tt.String),createdAt:It,updatedAt:It}),NLt=tt.transform(ZMe,tt.Struct({id:Mn,scopeId:Br,catalogId:Rc,catalogRevisionId:Tm,name:tt.String,kind:Z6,endpoint:tt.String,status:Dv,enabled:tt.Boolean,namespace:tt.NullOr(tt.String),importAuthPolicy:vm,bindingConfigJson:tt.String,sourceHash:tt.NullOr(tt.String),lastError:tt.NullOr(tt.String),createdAt:It,updatedAt:It}),{strict:!1,decode:e=>({id:e.sourceId,scopeId:e.scopeId,catalogId:e.catalogId,catalogRevisionId:e.catalogRevisionId,name:e.name,kind:e.kind,endpoint:e.endpoint,status:e.status,enabled:e.enabled,namespace:e.namespace,importAuthPolicy:e.importAuthPolicy,bindingConfigJson:e.bindingConfigJson,sourceHash:e.sourceHash,lastError:e.lastError,createdAt:e.createdAt,updatedAt:e.updatedAt}),encode:e=>({scopeId:e.scopeId,sourceId:e.id,catalogId:e.catalogId,catalogRevisionId:e.catalogRevisionId,name:e.name,kind:e.kind,endpoint:e.endpoint,status:e.status,enabled:e.enabled,namespace:e.namespace,importAuthPolicy:e.importAuthPolicy,bindingConfigJson:e.bindingConfigJson,sourceHash:e.sourceHash,lastError:e.lastError,createdAt:e.createdAt,updatedAt:e.updatedAt})}),zp=tt.Struct({id:Mn,scopeId:Br,name:tt.String,kind:Z6,endpoint:tt.String,status:Dv,enabled:tt.Boolean,namespace:tt.NullOr(tt.String),bindingVersion:HB,binding:Tv,importAuthPolicy:vm,importAuth:GB,auth:GB,sourceHash:tt.NullOr(tt.String),lastError:tt.NullOr(tt.String),createdAt:It,updatedAt:It});import{Schema as Pa}from"effect";var Ice=Pa.Literal("imported","internal"),wce=Pa.String,kce=Pa.Literal("private","scope","organization","public"),jLt=Pa.Struct({id:Rc,kind:Ice,adapterKey:wce,providerKey:Pa.String,name:Pa.String,summary:Pa.NullOr(Pa.String),visibility:kce,latestRevisionId:Tm,createdAt:It,updatedAt:It}),UT=Pa.Struct({id:Tm,catalogId:Rc,revisionNumber:Pa.Number,sourceConfigJson:Pa.String,importMetadataJson:Pa.NullOr(Pa.String),importMetadataHash:Pa.NullOr(Pa.String),snapshotHash:Pa.NullOr(Pa.String),createdAt:It,updatedAt:It});import{Schema as Pm}from"effect";var Cce=Pm.Literal("allow","deny"),Pce=Pm.Literal("auto","required"),WMe=Pm.Struct({id:bv,key:Pm.String,scopeId:Br,resourcePattern:Pm.String,effect:Cce,approvalMode:Pce,priority:Pm.Number,enabled:Pm.Boolean,createdAt:It,updatedAt:It});var KLt=Pm.partial(WMe);import{Schema as Av}from"effect";import*as Oce from"effect/Option";var Nce=Av.Struct({id:vv,authArtifactId:cg,scopeId:Br,sourceId:Mn,actorScopeId:Av.NullOr(Br),slot:BT,placementsTemplateJson:Av.String,expiresAt:Av.NullOr(It),refreshAfter:Av.NullOr(It),createdAt:It,updatedAt:It}),QMe=Av.decodeUnknownOption(H6),XMe=e=>{let t=QMe(e.placementsTemplateJson);return Oce.isSome(t)?t.value:null},ZB=e=>(XMe(e)??[]).flatMap(t=>t.parts.flatMap(r=>r.kind==="secret_ref"?[r.ref]:[]));import{Schema as Pl}from"effect";var YMe=Pl.Struct({redirectMode:Pl.optional(M6)}),WB=Pl.parseJson(YMe),Fce=Pl.Struct({id:V6,scopeId:Br,sourceId:Mn,providerKey:Pl.String,clientId:Pl.String,clientSecretProviderId:Pl.NullOr(Pl.String),clientSecretHandle:Pl.NullOr(Pl.String),clientMetadataJson:Pl.NullOr(Pl.String),createdAt:It,updatedAt:It});import{Schema as Pu}from"effect";var Rce=Pu.Struct({id:Am,scopeId:Br,providerKey:Pu.String,label:Pu.NullOr(Pu.String),clientId:Pu.String,clientSecretProviderId:Pu.NullOr(Pu.String),clientSecretHandle:Pu.NullOr(Pu.String),clientMetadataJson:Pu.NullOr(Pu.String),createdAt:It,updatedAt:It});import{Schema as Jp}from"effect";var Lce=Jp.Struct({id:Bp,scopeId:Br,actorScopeId:Jp.NullOr(Br),providerKey:Jp.String,oauthClientId:Am,tokenEndpoint:Jp.String,clientAuthentication:xv,headerName:Jp.String,prefix:Jp.String,refreshToken:pi,grantedScopes:Jp.Array(Jp.String),lastRefreshedAt:Jp.NullOr(It),orphanedAt:Jp.NullOr(It),createdAt:It,updatedAt:It});import{Schema as Om}from"effect";var e7e=Om.Literal("auth_material","oauth_access_token","oauth_refresh_token","oauth_client_info"),$ce=Om.Struct({id:qp,name:Om.NullOr(Om.String),purpose:e7e,providerId:Om.String,handle:Om.String,value:Om.NullOr(Om.String),createdAt:It,updatedAt:It});import*as Iv from"effect/Schema";var t7e=Iv.Struct({scopeId:Br,actorScopeId:Br,resolutionScopeIds:Iv.Array(Br)});var w$t=Iv.partial(t7e);import{Schema as Ae}from"effect";var r7e=Ae.Literal("quickjs","ses","deno"),n7e=Ae.Literal("env","file","exec","params"),o7e=Ae.Struct({source:Ae.Literal("env")}),i7e=Ae.Literal("singleValue","json"),a7e=Ae.Struct({source:Ae.Literal("file"),path:Ae.String,mode:Ae.optional(i7e)}),s7e=Ae.Struct({source:Ae.Literal("exec"),command:Ae.String,args:Ae.optional(Ae.Array(Ae.String)),env:Ae.optional(Ae.Record({key:Ae.String,value:Ae.String})),allowSymlinkCommand:Ae.optional(Ae.Boolean),trustedDirs:Ae.optional(Ae.Array(Ae.String))}),c7e=Ae.Union(o7e,a7e,s7e),l7e=Ae.Struct({source:n7e,provider:Ae.String,id:Ae.String}),u7e=Ae.Union(Ae.String,l7e),p7e=Ae.Struct({endpoint:Ae.String,auth:Ae.optional(u7e)}),W6=Ae.Struct({name:Ae.optional(Ae.String),namespace:Ae.optional(Ae.String),enabled:Ae.optional(Ae.Boolean),connection:p7e}),d7e=Ae.Struct({specUrl:Ae.String,defaultHeaders:Ae.optional(Ae.NullOr(Qr))}),_7e=Ae.Struct({defaultHeaders:Ae.optional(Ae.NullOr(Qr))}),f7e=Ae.Struct({service:Ae.String,version:Ae.String,discoveryUrl:Ae.optional(Ae.NullOr(Ae.String)),defaultHeaders:Ae.optional(Ae.NullOr(Qr)),scopes:Ae.optional(Ae.Array(Ae.String))}),m7e=Ae.Struct({transport:Ae.optional(Ae.NullOr(Fc)),queryParams:Ae.optional(Ae.NullOr(Qr)),headers:Ae.optional(Ae.NullOr(Qr)),command:Ae.optional(Ae.NullOr(Ae.String)),args:Ae.optional(Ae.NullOr(x_)),env:Ae.optional(Ae.NullOr(Qr)),cwd:Ae.optional(Ae.NullOr(Ae.String))}),h7e=Ae.extend(W6,Ae.Struct({kind:Ae.Literal("openapi"),binding:d7e})),y7e=Ae.extend(W6,Ae.Struct({kind:Ae.Literal("graphql"),binding:_7e})),g7e=Ae.extend(W6,Ae.Struct({kind:Ae.Literal("google_discovery"),binding:f7e})),S7e=Ae.extend(W6,Ae.Struct({kind:Ae.Literal("mcp"),binding:m7e})),v7e=Ae.Union(h7e,y7e,g7e,S7e),b7e=Ae.Literal("allow","deny"),x7e=Ae.Literal("auto","manual"),E7e=Ae.Struct({match:Ae.String,action:b7e,approval:x7e,enabled:Ae.optional(Ae.Boolean),priority:Ae.optional(Ae.Number)}),T7e=Ae.Struct({providers:Ae.optional(Ae.Record({key:Ae.String,value:c7e})),defaults:Ae.optional(Ae.Struct({env:Ae.optional(Ae.String),file:Ae.optional(Ae.String),exec:Ae.optional(Ae.String)}))}),D7e=Ae.Struct({name:Ae.optional(Ae.String)}),Mce=Ae.Struct({runtime:Ae.optional(r7e),workspace:Ae.optional(D7e),sources:Ae.optional(Ae.Record({key:Ae.String,value:v7e})),policies:Ae.optional(Ae.Record({key:Ae.String,value:E7e})),secrets:Ae.optional(T7e)});import{Schema as Ut}from"effect";var jce=Ut.Literal("pending","running","waiting_for_interaction","completed","failed","cancelled"),QB=Ut.Struct({id:kl,scopeId:Br,createdByScopeId:Br,status:jce,code:Ut.String,resultJson:Ut.NullOr(Ut.String),errorText:Ut.NullOr(Ut.String),logsJson:Ut.NullOr(Ut.String),startedAt:Ut.NullOr(It),completedAt:Ut.NullOr(It),createdAt:It,updatedAt:It});var L$t=Ut.partial(Ut.Struct({status:jce,code:Ut.String,resultJson:Ut.NullOr(Ut.String),errorText:Ut.NullOr(Ut.String),logsJson:Ut.NullOr(Ut.String),startedAt:Ut.NullOr(It),completedAt:Ut.NullOr(It),updatedAt:It})),Bce=Ut.Literal("pending","resolved","cancelled"),XB=Ut.Struct({id:ws,executionId:kl,status:Bce,kind:Ut.String,purpose:Ut.String,payloadJson:Ut.String,responseJson:Ut.NullOr(Ut.String),responsePrivateJson:Ut.NullOr(Ut.String),createdAt:It,updatedAt:It});var $$t=Ut.partial(Ut.Struct({status:Bce,kind:Ut.String,purpose:Ut.String,payloadJson:Ut.String,responseJson:Ut.NullOr(Ut.String),responsePrivateJson:Ut.NullOr(Ut.String),updatedAt:It})),M$t=Ut.Struct({execution:QB,pendingInteraction:Ut.NullOr(XB)}),A7e=Ut.Literal("tool_call"),qce=Ut.Literal("pending","waiting","completed","failed"),Uce=Ut.Struct({id:K6,executionId:kl,sequence:Ut.Number,kind:A7e,status:qce,path:Ut.String,argsJson:Ut.String,resultJson:Ut.NullOr(Ut.String),errorText:Ut.NullOr(Ut.String),interactionId:Ut.NullOr(ws),createdAt:It,updatedAt:It});var j$t=Ut.partial(Ut.Struct({status:qce,resultJson:Ut.NullOr(Ut.String),errorText:Ut.NullOr(Ut.String),interactionId:Ut.NullOr(ws),updatedAt:It}));import{Schema as ze}from"effect";var I7e=ze.Literal("ir"),w7e=ze.Struct({path:ze.String,sourceKey:ze.String,title:ze.optional(ze.String),description:ze.optional(ze.String),protocol:ze.String,toolId:ze.String,rawToolId:ze.NullOr(ze.String),operationId:ze.NullOr(ze.String),group:ze.NullOr(ze.String),leaf:ze.NullOr(ze.String),tags:ze.Array(ze.String),method:ze.NullOr(ze.String),pathTemplate:ze.NullOr(ze.String),inputTypePreview:ze.optional(ze.String),outputTypePreview:ze.optional(ze.String)}),k7e=ze.Struct({label:ze.String,value:ze.String,mono:ze.optional(ze.Boolean)}),C7e=ze.Struct({kind:ze.Literal("facts"),title:ze.String,items:ze.Array(k7e)}),P7e=ze.Struct({kind:ze.Literal("markdown"),title:ze.String,body:ze.String}),O7e=ze.Struct({kind:ze.Literal("code"),title:ze.String,language:ze.String,body:ze.String}),N7e=ze.Union(C7e,P7e,O7e),F7e=ze.Struct({path:ze.String,method:ze.NullOr(ze.String),inputTypePreview:ze.optional(ze.String),outputTypePreview:ze.optional(ze.String)}),zce=ze.Struct({shapeId:ze.NullOr(ze.String),typePreview:ze.NullOr(ze.String),typeDeclaration:ze.NullOr(ze.String),schemaJson:ze.NullOr(ze.String),exampleJson:ze.NullOr(ze.String)}),R7e=ze.Struct({callSignature:ze.String,callDeclaration:ze.String,callShapeId:ze.String,resultShapeId:ze.NullOr(ze.String),responseSetId:ze.String,input:zce,output:zce}),z$t=ze.Struct({source:zp,namespace:ze.String,pipelineKind:I7e,toolCount:ze.Number,tools:ze.Array(F7e)}),J$t=ze.Struct({summary:w7e,contract:R7e,sections:ze.Array(N7e)}),V$t=ze.Struct({query:ze.String,limit:ze.optional(ze.Number)}),L7e=ze.Struct({path:ze.String,score:ze.Number,description:ze.optional(ze.String),inputTypePreview:ze.optional(ze.String),outputTypePreview:ze.optional(ze.String),reasons:ze.Array(ze.String)}),K$t=ze.Struct({query:ze.String,queryTokens:ze.Array(ze.String),bestPath:ze.NullOr(ze.String),total:ze.Number,results:ze.Array(L7e)});import{Schema as Jce}from"effect";var W$t=Jce.Struct({id:Jce.String,appliedAt:It});import*as Hce from"effect/Either";import*as Ol from"effect/Effect";import*as Vp from"effect/Schema";import*as Vce from"effect/Data";var YB=class extends Vce.TaggedError("RuntimeEffectError"){},Ne=(e,t)=>new YB({module:e,message:t});var Kce={placements:[],headers:{},queryParams:{},cookies:{},bodyValues:{},expiresAt:null,refreshAfter:null,authProvider:void 0},$7e=Vp.encodeSync($B),M7e=Vp.encodeSync(MB),bMt=Vp.encodeSync(jB),j7e=Vp.encodeSync(BB),B7e=Vp.encodeSync(qB),q7e=Vp.encodeSync(qT),U7e=Vp.decodeUnknownEither(H6),z7e=Vp.encodeSync(UB),J7e=(e,t)=>{switch(t.location){case"header":e.headers[t.name]=t.value;break;case"query":e.queryParams[t.name]=t.value;break;case"cookie":e.cookies[t.name]=t.value;break;case"body":e.bodyValues[t.path]=t.value;break}},Q6=(e,t={})=>{let r={headers:{},queryParams:{},cookies:{},bodyValues:{}};for(let n of e)J7e(r,n);return{placements:e,headers:r.headers,queryParams:r.queryParams,cookies:r.cookies,bodyValues:r.bodyValues,expiresAt:t.expiresAt??null,refreshAfter:t.refreshAfter??null}},Gce=e=>Ol.map(Ol.forEach(e.parts,t=>t.kind==="literal"?Ol.succeed(t.value):e.resolveSecretMaterial({ref:t.ref,context:e.context}),{discard:!1}),t=>t.join("")),zT=e=>{if(e.auth.kind==="none")return null;let t=e.existingAuthArtifactId??`auth_art_${crypto.randomUUID()}`,r=e.auth.kind==="oauth2_authorized_user"?V7e(e.auth.grantSet):null;return e.auth.kind==="bearer"?{id:t,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:wm,configJson:$7e({headerName:e.auth.headerName,prefix:e.auth.prefix,token:e.auth.token}),grantSetJson:r,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:e.auth.kind==="oauth2_authorized_user"?{id:t,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:Cl,configJson:j7e({headerName:e.auth.headerName,prefix:e.auth.prefix,tokenEndpoint:e.auth.tokenEndpoint,clientId:e.auth.clientId,clientAuthentication:e.auth.clientAuthentication,clientSecret:e.auth.clientSecret,refreshToken:e.auth.refreshToken}),grantSetJson:r,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:e.auth.kind==="provider_grant_ref"?{id:t,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:RB,configJson:B7e({grantId:e.auth.grantId,providerKey:e.auth.providerKey,requiredScopes:[...e.auth.requiredScopes],headerName:e.auth.headerName,prefix:e.auth.prefix}),grantSetJson:r,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:e.auth.kind==="mcp_oauth"?{id:t,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:LB,configJson:q7e({redirectUri:e.auth.redirectUri,accessToken:e.auth.accessToken,refreshToken:e.auth.refreshToken,tokenType:e.auth.tokenType,expiresIn:e.auth.expiresIn,scope:e.auth.scope,resourceMetadataUrl:e.auth.resourceMetadataUrl,authorizationServerUrl:e.auth.authorizationServerUrl,resourceMetadataJson:e.auth.resourceMetadataJson,authorizationServerMetadataJson:e.auth.authorizationServerMetadataJson,clientInformationJson:e.auth.clientInformationJson}),grantSetJson:r,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}:{id:t,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:e.slot,artifactKind:km,configJson:M7e({headerName:e.auth.headerName,prefix:e.auth.prefix,accessToken:e.auth.accessToken,refreshToken:e.auth.refreshToken}),grantSetJson:r,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}},X6=e=>{if(e===null)return{kind:"none"};let t=Up(e);if(t!==null)return{kind:"provider_grant_ref",grantId:t.grantId,providerKey:t.providerKey,requiredScopes:[...t.requiredScopes],headerName:t.headerName,prefix:t.prefix};let r=Ev(e);if(r!==null)return{kind:"mcp_oauth",redirectUri:r.redirectUri,accessToken:r.accessToken,refreshToken:r.refreshToken,tokenType:r.tokenType,expiresIn:r.expiresIn,scope:r.scope,resourceMetadataUrl:r.resourceMetadataUrl,authorizationServerUrl:r.authorizationServerUrl,resourceMetadataJson:r.resourceMetadataJson,authorizationServerMetadataJson:r.authorizationServerMetadataJson,clientInformationJson:r.clientInformationJson};let n=Cm(e);if(n===null)return{kind:"none"};switch(n.artifactKind){case wm:return{kind:"bearer",headerName:n.config.headerName,prefix:n.config.prefix,token:n.config.token};case km:return{kind:"oauth2",headerName:n.config.headerName,prefix:n.config.prefix,accessToken:n.config.accessToken,refreshToken:n.config.refreshToken};case lg:return{kind:"none"};case Cl:return{kind:"oauth2_authorized_user",headerName:n.config.headerName,prefix:n.config.prefix,tokenEndpoint:n.config.tokenEndpoint,clientId:n.config.clientId,clientAuthentication:n.config.clientAuthentication,clientSecret:n.config.clientSecret,refreshToken:n.config.refreshToken,grantSet:xce(e.grantSetJson)}}};var JT=e=>Ece(e);var V7e=e=>e===null?null:z7e([...e]),Nm=e=>Ol.gen(function*(){if(e.artifact===null)return Kce;let t=Cm(e.artifact);if(t!==null)switch(t.artifactKind){case wm:{let a=yield*e.resolveSecretMaterial({ref:t.config.token,context:e.context});return Q6([{location:"header",name:t.config.headerName,value:`${t.config.prefix}${a}`}])}case km:{let a=yield*e.resolveSecretMaterial({ref:t.config.accessToken,context:e.context});return Q6([{location:"header",name:t.config.headerName,value:`${t.config.prefix}${a}`}])}case lg:{let a=yield*Ol.forEach(t.config.placements,s=>Ol.map(Gce({parts:s.parts,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context}),c=>s.location==="body"?{location:"body",path:s.path,value:c}:{location:s.location,name:s.name,value:c}),{discard:!1});return Q6(a)}case Cl:break}if(Up(e.artifact)!==null&&(e.lease===null||e.lease===void 0))return yield*Ne("auth/auth-artifacts",`Provider grant auth artifact ${e.artifact.id} requires a lease`);if(Ev(e.artifact)!==null)return{...Kce};if(e.lease===null||e.lease===void 0)return yield*Ne("auth/auth-artifacts",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let o=U7e(e.lease.placementsTemplateJson);if(Hce.isLeft(o))return yield*Ne("auth/auth-artifacts",`Invalid auth lease placements for artifact ${e.artifact.id}`);let i=yield*Ol.forEach(o.right,a=>Ol.map(Gce({parts:a.parts,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context}),s=>a.location==="body"?{location:"body",path:a.path,value:s}:{location:a.location,name:a.name,value:s}),{discard:!1});return Q6(i,{expiresAt:e.lease.expiresAt,refreshAfter:e.lease.refreshAfter})});import*as is from"effect/Effect";import*as ug from"effect/Option";import{createHash as K7e,randomBytes as G7e}from"node:crypto";import*as VT from"effect/Effect";var Zce=e=>e.toString("base64").replaceAll("+","-").replaceAll("/","_").replaceAll("=",""),eq=()=>Zce(G7e(48)),H7e=e=>Zce(K7e("sha256").update(e).digest()),tq=e=>{let t=new URL(e.authorizationEndpoint);t.searchParams.set("client_id",e.clientId),t.searchParams.set("redirect_uri",e.redirectUri),t.searchParams.set("response_type","code"),t.searchParams.set("scope",e.scopes.join(" ")),t.searchParams.set("state",e.state),t.searchParams.set("code_challenge_method","S256"),t.searchParams.set("code_challenge",H7e(e.codeVerifier));for(let[r,n]of Object.entries(e.extraParams??{}))t.searchParams.set(r,n);return t.toString()},Z7e=async e=>{let t=await e.text(),r;try{r=JSON.parse(t)}catch{throw new Error(`OAuth token endpoint returned non-JSON response (${e.status})`)}if(r===null||typeof r!="object"||Array.isArray(r))throw new Error(`OAuth token endpoint returned invalid JSON payload (${e.status})`);let n=r,o=typeof n.access_token=="string"&&n.access_token.length>0?n.access_token:null;if(!e.ok){let i=typeof n.error_description=="string"&&n.error_description.length>0?n.error_description:typeof n.error=="string"&&n.error.length>0?n.error:`status ${e.status}`;throw new Error(`OAuth token exchange failed: ${i}`)}if(o===null)throw new Error("OAuth token endpoint did not return an access_token");return{access_token:o,token_type:typeof n.token_type=="string"?n.token_type:void 0,refresh_token:typeof n.refresh_token=="string"?n.refresh_token:void 0,expires_in:typeof n.expires_in=="number"?n.expires_in:typeof n.expires_in=="string"?Number(n.expires_in):void 0,scope:typeof n.scope=="string"?n.scope:void 0}},Wce=e=>VT.tryPromise({try:async()=>{let t=await fetch(e.tokenEndpoint,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded",accept:"application/json"},body:e.body,signal:AbortSignal.timeout(2e4)});return Z7e(t)},catch:t=>t instanceof Error?t:new Error(String(t))}),rq=e=>VT.gen(function*(){let t=new URLSearchParams({grant_type:"authorization_code",client_id:e.clientId,redirect_uri:e.redirectUri,code_verifier:e.codeVerifier,code:e.code});return e.clientAuthentication==="client_secret_post"&&e.clientSecret&&t.set("client_secret",e.clientSecret),yield*Wce({tokenEndpoint:e.tokenEndpoint,body:t})}),nq=e=>VT.gen(function*(){let t=new URLSearchParams({grant_type:"refresh_token",client_id:e.clientId,refresh_token:e.refreshToken});return e.clientAuthentication==="client_secret_post"&&e.clientSecret&&t.set("client_secret",e.clientSecret),e.scopes&&e.scopes.length>0&&t.set("scope",e.scopes.join(" ")),yield*Wce({tokenEndpoint:e.tokenEndpoint,body:t})});import*as Lc from"effect/Effect";import*as Xce from"effect/Schema";var W7e=Xce.encodeSync(qT),oq=e=>{if(e!==null)try{let t=JSON.parse(e);return t!==null&&typeof t=="object"&&!Array.isArray(t)?t:void 0}catch{return}},wv=e=>e==null?null:JSON.stringify(e),Q7e=e=>({redirect_uris:[e],grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none",client_name:"Executor Local"}),Qce=(e,t)=>(e?.providerId??null)===(t?.providerId??null)&&(e?.handle??null)===(t?.handle??null),X7e=e=>Lc.gen(function*(){Qce(e.previousAccessToken,e.nextAccessToken)||(yield*Lc.either(e.deleteSecretMaterial(e.previousAccessToken))),e.previousRefreshToken!==null&&!Qce(e.previousRefreshToken,e.nextRefreshToken)&&(yield*Lc.either(e.deleteSecretMaterial(e.previousRefreshToken)))}),Yce=e=>({kind:"mcp_oauth",redirectUri:e.redirectUri,accessToken:e.accessToken,refreshToken:e.refreshToken,tokenType:e.tokenType,expiresIn:e.expiresIn,scope:e.scope,resourceMetadataUrl:e.resourceMetadataUrl,authorizationServerUrl:e.authorizationServerUrl,resourceMetadataJson:wv(e.resourceMetadata),authorizationServerMetadataJson:wv(e.authorizationServerMetadata),clientInformationJson:wv(e.clientInformation)}),ele=e=>{let t=e.artifact,r=e.config,n=o=>Lc.gen(function*(){let i={...t,configJson:W7e(o),updatedAt:Date.now()};yield*e.executorState.authArtifacts.upsert(i),t=i,r=o});return{get redirectUrl(){return r.redirectUri},get clientMetadata(){return Q7e(r.redirectUri)},clientInformation:()=>oq(r.clientInformationJson),saveClientInformation:o=>Lc.runPromise(n({...r,clientInformationJson:wv(o)})).then(()=>{}),tokens:async()=>{let o=await Lc.runPromise(e.resolveSecretMaterial({ref:r.accessToken,context:e.context})),i=r.refreshToken?await Lc.runPromise(e.resolveSecretMaterial({ref:r.refreshToken,context:e.context})):void 0;return{access_token:o,token_type:r.tokenType,...typeof r.expiresIn=="number"?{expires_in:r.expiresIn}:{},...r.scope?{scope:r.scope}:{},...i?{refresh_token:i}:{}}},saveTokens:o=>Lc.runPromise(Lc.gen(function*(){let i=r,a=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:o.access_token,name:`${t.sourceId} MCP Access Token`}),s=o.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:o.refresh_token,name:`${t.sourceId} MCP Refresh Token`}):r.refreshToken,c={...r,accessToken:a,refreshToken:s,tokenType:o.token_type??r.tokenType,expiresIn:typeof o.expires_in=="number"&&Number.isFinite(o.expires_in)?o.expires_in:r.expiresIn,scope:o.scope??r.scope};yield*n(c),yield*X7e({deleteSecretMaterial:e.deleteSecretMaterial,previousAccessToken:i.accessToken,nextAccessToken:a,previousRefreshToken:i.refreshToken,nextRefreshToken:s})})).then(()=>{}),redirectToAuthorization:async o=>{throw new Error(`MCP OAuth re-authorization is required for ${t.sourceId}: ${o.toString()}`)},saveCodeVerifier:()=>{},codeVerifier:()=>{throw new Error("Persisted MCP OAuth sessions do not retain an active PKCE verifier")},saveDiscoveryState:o=>Lc.runPromise(n({...r,resourceMetadataUrl:o.resourceMetadataUrl??null,authorizationServerUrl:o.authorizationServerUrl??null,resourceMetadataJson:wv(o.resourceMetadata),authorizationServerMetadataJson:wv(o.authorizationServerMetadata)})).then(()=>{}),discoveryState:()=>r.authorizationServerUrl===null?void 0:{resourceMetadataUrl:r.resourceMetadataUrl??void 0,authorizationServerUrl:r.authorizationServerUrl,resourceMetadata:oq(r.resourceMetadataJson),authorizationServerMetadata:oq(r.authorizationServerMetadataJson)}}};var e3=6e4,iq=e=>JSON.stringify(e),Y6=e=>`${e.providerId}:${e.handle}`,t3=(e,t,r)=>is.gen(function*(){if(t.previous===null)return;let n=new Set((t.next===null?[]:ZB(t.next)).map(Y6)),o=ZB(t.previous).filter(i=>!n.has(Y6(i)));yield*is.forEach(o,i=>is.either(r(i)),{discard:!0})}),tle=(e,t)=>!(e===null||e.refreshAfter!==null&&t>=e.refreshAfter||e.expiresAt!==null&&t>=e.expiresAt-e3),Y7e=e=>is.gen(function*(){let t=Cm(e.artifact);if(t===null||t.artifactKind!==Cl)return yield*Ne("auth/auth-leases",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let r=yield*e.resolveSecretMaterial({ref:t.config.refreshToken,context:e.context}),n=null;t.config.clientSecret&&(n=yield*e.resolveSecretMaterial({ref:t.config.clientSecret,context:e.context}));let o=yield*nq({tokenEndpoint:t.config.tokenEndpoint,clientId:t.config.clientId,clientAuthentication:t.config.clientAuthentication,clientSecret:n,refreshToken:r}),i=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:o.access_token,name:`${t.config.clientId} Access Token`}),a=Date.now(),s=typeof o.expires_in=="number"&&Number.isFinite(o.expires_in)?Math.max(0,o.expires_in*1e3):null,c=s===null?null:a+s,p=c===null?null:Math.max(a,c-e3),d={id:e.lease?.id??vv.make(`auth_lease_${crypto.randomUUID()}`),authArtifactId:e.artifact.id,scopeId:e.artifact.scopeId,sourceId:e.artifact.sourceId,actorScopeId:e.artifact.actorScopeId,slot:e.artifact.slot,placementsTemplateJson:iq([{location:"header",name:t.config.headerName,parts:[{kind:"literal",value:t.config.prefix},{kind:"secret_ref",ref:i}]}]),expiresAt:c,refreshAfter:p,createdAt:e.lease?.createdAt??a,updatedAt:a};return yield*e.executorState.authLeases.upsert(d),yield*t3(e.executorState,{previous:e.lease,next:d},e.deleteSecretMaterial),d}),eje=e=>e.clientSecretProviderId&&e.clientSecretHandle?{providerId:e.clientSecretProviderId,handle:e.clientSecretHandle}:null,tje=(e,t,r)=>Y6(t.previous)===Y6(t.next)?is.void:r(t.previous).pipe(is.either,is.ignore),rje=e=>is.gen(function*(){let t=Up(e.artifact);if(t===null)return yield*Ne("auth/auth-leases",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let r=yield*e.executorState.providerAuthGrants.getById(t.grantId);if(ug.isNone(r))return yield*Ne("auth/auth-leases",`Provider auth grant not found: ${t.grantId}`);let n=r.value,o=yield*e.executorState.scopeOauthClients.getById(n.oauthClientId);if(ug.isNone(o))return yield*Ne("auth/auth-leases",`Scope OAuth client not found: ${n.oauthClientId}`);let i=o.value,a=yield*e.resolveSecretMaterial({ref:n.refreshToken,context:e.context}),s=eje(i),c=s?yield*e.resolveSecretMaterial({ref:s,context:e.context}):null,p=yield*nq({tokenEndpoint:n.tokenEndpoint,clientId:i.clientId,clientAuthentication:n.clientAuthentication,clientSecret:c,refreshToken:a,scopes:t.requiredScopes.length>0?t.requiredScopes:null}),d=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:p.access_token,name:`${n.providerKey} Access Token`}),f=p.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:p.refresh_token,name:`${n.providerKey} Refresh Token`}):n.refreshToken,m=Date.now(),y={...n,refreshToken:f,lastRefreshedAt:m,updatedAt:m};yield*e.executorState.providerAuthGrants.upsert(y),yield*tje(e.executorState,{previous:n.refreshToken,next:f},e.deleteSecretMaterial);let g=typeof p.expires_in=="number"&&Number.isFinite(p.expires_in)?Math.max(0,p.expires_in*1e3):null,S=g===null?null:m+g,b=S===null?null:Math.max(m,S-e3),E={id:e.lease?.id??vv.make(`auth_lease_${crypto.randomUUID()}`),authArtifactId:e.artifact.id,scopeId:e.artifact.scopeId,sourceId:e.artifact.sourceId,actorScopeId:e.artifact.actorScopeId,slot:e.artifact.slot,placementsTemplateJson:iq([{location:"header",name:t.headerName,parts:[{kind:"literal",value:t.prefix},{kind:"secret_ref",ref:d}]}]),expiresAt:S,refreshAfter:b,createdAt:e.lease?.createdAt??m,updatedAt:m};return yield*e.executorState.authLeases.upsert(E),yield*t3(e.executorState,{previous:e.lease,next:E},e.deleteSecretMaterial),E}),k_=(e,t,r)=>is.gen(function*(){let n=yield*e.authLeases.getByAuthArtifactId(t.authArtifactId);ug.isNone(n)||(yield*e.authLeases.removeByAuthArtifactId(t.authArtifactId),yield*t3(e,{previous:n.value,next:null},r))}),rle=e=>is.gen(function*(){let t=Cm(e.artifact);if(t===null||t.artifactKind!==Cl)return yield*Ne("auth/auth-leases",`Unsupported auth artifact kind: ${e.artifact.artifactKind}`);let r=yield*e.executorState.authLeases.getByAuthArtifactId(e.artifact.id),n=ug.isSome(r)?r.value:null,o=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:e.tokenResponse.access_token,name:`${t.config.clientId} Access Token`}),i=Date.now(),a=typeof e.tokenResponse.expires_in=="number"&&Number.isFinite(e.tokenResponse.expires_in)?Math.max(0,e.tokenResponse.expires_in*1e3):null,s=a===null?null:i+a,c=s===null?null:Math.max(i,s-e3),p={id:n?.id??vv.make(`auth_lease_${crypto.randomUUID()}`),authArtifactId:e.artifact.id,scopeId:e.artifact.scopeId,sourceId:e.artifact.sourceId,actorScopeId:e.artifact.actorScopeId,slot:e.artifact.slot,placementsTemplateJson:iq([{location:"header",name:t.config.headerName,parts:[{kind:"literal",value:t.config.prefix},{kind:"secret_ref",ref:o}]}]),expiresAt:s,refreshAfter:c,createdAt:n?.createdAt??i,updatedAt:i};yield*e.executorState.authLeases.upsert(p),yield*t3(e.executorState,{previous:n,next:p},e.deleteSecretMaterial)}),aq=e=>is.gen(function*(){if(e.artifact===null)return yield*Nm({artifact:null,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context});let t=yield*e.executorState.authLeases.getByAuthArtifactId(e.artifact.id),r=ug.isSome(t)?t.value:null,n=Cm(e.artifact),o=Up(e.artifact),i=Ev(e.artifact);if(n!==null&&n.artifactKind===Cl){let a=tle(r,Date.now())?r:yield*Y7e({executorState:e.executorState,artifact:e.artifact,lease:r,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,context:e.context});return yield*Nm({artifact:e.artifact,lease:a,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})}if(o!==null){let a=tle(r,Date.now())?r:yield*rje({executorState:e.executorState,artifact:e.artifact,lease:r,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,context:e.context});return yield*Nm({artifact:e.artifact,lease:a,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})}return i!==null?{...yield*Nm({artifact:e.artifact,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context}),authProvider:ele({executorState:e.executorState,artifact:e.artifact,config:i,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,context:e.context})}:yield*Nm({artifact:e.artifact,lease:r,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})});import*as kv from"effect/Context";var Nl=class extends kv.Tag("#runtime/SecretMaterialResolverService")(){},Ys=class extends kv.Tag("#runtime/SecretMaterialStorerService")(){},as=class extends kv.Tag("#runtime/SecretMaterialDeleterService")(){},Kp=class extends kv.Tag("#runtime/SecretMaterialUpdaterService")(){},Gp=class extends kv.Tag("#runtime/LocalInstanceConfigService")(){};var nje=e=>e.slot==="runtime"||e.source.importAuthPolicy==="reuse_runtime"?e.source.auth:e.source.importAuthPolicy==="none"?{kind:"none"}:e.source.importAuth,Fm=class extends nle.Tag("#runtime/RuntimeSourceAuthMaterialService")(){},oje=e=>C_.gen(function*(){let t=e.slot??"runtime";if(e.executorState!==void 0){let n=t==="import"&&e.source.importAuthPolicy==="reuse_runtime"?["import","runtime"]:[t];for(let o of n){let i=yield*e.executorState.authArtifacts.getByScopeSourceAndActor({scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,slot:o});if(ile.isSome(i))return yield*aq({executorState:e.executorState,artifact:i.value,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial??(()=>C_.dieMessage("storeSecretMaterial unavailable")),deleteSecretMaterial:e.deleteSecretMaterial??(()=>C_.dieMessage("deleteSecretMaterial unavailable")),context:e.context})}}let r=zT({source:e.source,auth:nje({source:e.source,slot:t}),slot:t,actorScopeId:e.actorScopeId??null});return e.executorState!==void 0?yield*aq({executorState:e.executorState,artifact:r,resolveSecretMaterial:e.resolveSecretMaterial,storeSecretMaterial:e.storeSecretMaterial??(()=>C_.dieMessage("storeSecretMaterial unavailable")),deleteSecretMaterial:e.deleteSecretMaterial??(()=>C_.dieMessage("deleteSecretMaterial unavailable")),context:e.context}):r?.artifactKind==="oauth2_authorized_user"||r?.artifactKind==="provider_grant_ref"||r?.artifactKind==="mcp_oauth"?yield*Ne("auth/source-auth-material","Dynamic auth artifacts require persistence-backed lease resolution"):yield*Nm({artifact:r,resolveSecretMaterial:e.resolveSecretMaterial,context:e.context})});var ale=ole.effect(Fm,C_.gen(function*(){let e=yield*Wn,t=yield*Nl,r=yield*Ys,n=yield*as;return Fm.of({resolve:o=>oje({...o,executorState:e,resolveSecretMaterial:t,storeSecretMaterial:r,deleteSecretMaterial:n})})}));import*as vQ from"effect/Cache";import*as eDe from"effect/Context";import*as qr from"effect/Effect";import*as tDe from"effect/Layer";import*as xn from"effect/Match";import*as Pv from"effect/Data";var r3=class extends Pv.TaggedError("RuntimeLocalScopeUnavailableError"){},Cv=class extends Pv.TaggedError("RuntimeLocalScopeMismatchError"){},KT=class extends Pv.TaggedError("LocalConfiguredSourceNotFoundError"){},n3=class extends Pv.TaggedError("LocalSourceArtifactMissingError"){},o3=class extends Pv.TaggedError("LocalUnsupportedSourceKindError"){};import{createHash as ije}from"node:crypto";var aje=/^[A-Za-z_$][A-Za-z0-9_$]*$/,sje=e=>ije("sha256").update(e).digest("hex").slice(0,24),pq=e=>aje.test(e)?e:JSON.stringify(e),lle=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2").split(/[^A-Za-z0-9]+/).filter(t=>t.length>0),cje=e=>/^\d+$/.test(e)?e:`${e.slice(0,1).toUpperCase()}${e.slice(1).toLowerCase()}`,pg=e=>{let t=lle(e).map(r=>cje(r)).join("");return t.length===0?"Type":/^[A-Za-z_$]/.test(t)?t:`T${t}`},di=(...e)=>e.map(t=>pg(t)).filter(t=>t.length>0).join(""),ule=e=>{switch(e){case"string":case"boolean":return e;case"bytes":return"string";case"integer":case"number":return"number";case"null":return"null";case"object":return"Record";case"array":return"Array";default:throw new Error(`Unsupported JSON Schema primitive type: ${e}`)}},Nv=e=>{let t=JSON.stringify(e);if(t===void 0)throw new Error(`Unsupported literal value in declaration schema: ${String(e)}`);return t},Rm=e=>e.includes(" | ")||e.includes(" & ")?`(${e})`:e,lje=(e,t)=>e.length===0?"{}":["{",...e.flatMap(r=>r.split(` `).map(n=>`${t}${n}`)),`${t.slice(0,-2)}}`].join(` -`),ks=(e,t)=>{let r=e.symbols[t];if(!r||r.kind!=="shape")throw new Error(`Missing shape symbol for ${t}`);return r},iq=e=>e.type==="unknown"||e.type==="scalar"||e.type==="const"||e.type==="enum",cje=e=>/^shape_[a-f0-9_]+$/i.test(e),lje=e=>/\s/.test(e.trim()),uje=e=>{let t=e.title?.trim();return t&&!cje(t)?sg(t):void 0},pje=e=>e.replace(/~1/g,"/").replace(/~0/g,"~"),ile=e=>{let t=e.trim();if(!(t.length===0||/^\d+$/.test(t)||["$defs","definitions","components","schemas","schema","properties","items","additionalProperties","patternProperties","allOf","anyOf","oneOf","not","if","then","else","input","output","graphql","scalars","responses","headers","parameters","requestBody"].includes(t)))return sg(t)},dje=e=>{for(let t of e){let r=t.pointer;if(!r?.startsWith("#/"))continue;let n=r.slice(2).split("/").map(pje),o=n.flatMap((i,a)=>["$defs","definitions","schemas","input","output"].includes(i)?[a]:[]);for(let i of o){let a=ile(n[i+1]??"");if(a)return a}for(let i=n.length-1;i>=0;i-=1){let a=ile(n[i]??"");if(a)return a}}},n3=e=>{let t=e?.trim();return t&&t.length>0?t:null},lle=e=>e.replace(/\*\//g,"*\\/"),aq=(e,t)=>{if(t){e.length>0&&e.push("");for(let r of t.split(/\r?\n/))e.push(lle(r.trimEnd()))}},JT=e=>{let t=[],r=e.includeTitle&&e.title&&lje(e.title)?n3(e.title):null,n=n3(e.docs?.summary),o=n3(e.docs?.description),i=n3(e.docs?.externalDocsUrl);return aq(t,r&&r!==n?r:null),aq(t,n),aq(t,o&&o!==n?o:null),i&&(t.length>0&&t.push(""),t.push(`@see ${lle(i)}`)),e.deprecated&&(t.length>0&&t.push(""),t.push("@deprecated")),t.length===0?null:["/**",...t.map(a=>a.length>0?` * ${a}`:" *")," */"].join(` -`)},_je=e=>{let t=sle(e);if(t.length<=5)return di(...t);let r=t.filter((n,o)=>o>=t.length-2||!["item","member","value"].includes(n.toLowerCase()));return di(...r.slice(-5))},ale=e=>{switch(e.type){case"unknown":case"scalar":case"const":case"enum":return[];case"object":return[...Object.values(e.fields).map(t=>t.shapeId),...typeof e.additionalProperties=="string"?[e.additionalProperties]:[],...Object.values(e.patternProperties??{})];case"array":return[e.itemShapeId];case"tuple":return[...e.itemShapeIds,...typeof e.additionalItems=="string"?[e.additionalItems]:[]];case"map":return[e.valueShapeId];case"allOf":case"anyOf":case"oneOf":return[...e.items];case"nullable":return[e.itemShapeId];case"ref":return[e.target];case"not":return[e.itemShapeId];case"conditional":return[e.ifShapeId,...e.thenShapeId?[e.thenShapeId]:[],...e.elseShapeId?[e.elseShapeId]:[]];case"graphqlInterface":return[...Object.values(e.fields).map(t=>t.shapeId),...e.possibleTypeIds];case"graphqlUnion":return[...e.memberTypeIds]}},sq=e=>{switch(e.type){case"unknown":return"unknown";case"scalar":return cle(e.scalar);case"const":return Cv(e.value);case"enum":return e.values.map(t=>Cv(t)).join(" | ");default:throw new Error(`Cannot inline non-primitive shape node: ${e.type}`)}},fje=(e,t,r,n,o)=>{let i=new Set;t&&i.add("unknown");for(let a of e)i.add(o(a,{stack:n,aliasHint:r}));return[...i].sort((a,s)=>a.localeCompare(s)).join(" | ")},cq=(e,t,r,n,o)=>{let i=new Set(e.required),a=Object.keys(e.fields).sort((d,f)=>d.localeCompare(f)).map(d=>{let f=e.fields[d],m=`${lq(d)}${i.has(d)?"":"?"}: ${n(f.shapeId,{stack:t,aliasHint:r?di(r,d):d})};`,y=o?JT({docs:f.docs,deprecated:f.deprecated}):null;return y?`${y} -${m}`:m}),s=Object.values(e.patternProperties??{}),c=e.additionalProperties===!0,p=typeof e.additionalProperties=="string"?[e.additionalProperties]:[];return(c||s.length>0||p.length>0)&&a.push(`[key: string]: ${fje([...s,...p],c,r?di(r,"value"):"value",t,n)};`),sje(a," ")},mje=(e,t,r,n,o)=>cq({fields:e.fields,required:e.type==="object"?e.required??[]:[],additionalProperties:e.type==="object"?e.additionalProperties:!1,patternProperties:e.type==="object"?e.patternProperties??{}:{}},t,r,n,o),kv=(e,t,r,n,o,i)=>{let s=ks(e,t).node;switch(s.type){case"unknown":case"scalar":case"const":case"enum":return sq(s);case"object":case"graphqlInterface":return mje(s,r,n,o,i);case"array":return`Array<${Om(o(s.itemShapeId,{stack:r,aliasHint:n?di(n,"item"):"item"}))}>`;case"tuple":{let c=s.itemShapeIds.map((d,f)=>o(d,{stack:r,aliasHint:n?di(n,`item_${String(f+1)}`):`item_${String(f+1)}`})),p=s.additionalItems===!0?", ...unknown[]":typeof s.additionalItems=="string"?`, ...Array<${Om(o(s.additionalItems,{stack:r,aliasHint:n?di(n,"rest"):"rest"}))}>`:"";return`[${c.join(", ")}${p}]`}case"map":return`Record`;case"allOf":return s.items.map((c,p)=>Om(o(c,{stack:r,aliasHint:n?di(n,`member_${String(p+1)}`):`member_${String(p+1)}`}))).join(" & ");case"anyOf":case"oneOf":return s.items.map((c,p)=>Om(o(c,{stack:r,aliasHint:n?di(n,`member_${String(p+1)}`):`member_${String(p+1)}`}))).join(" | ");case"nullable":return`${Om(o(s.itemShapeId,{stack:r,aliasHint:n}))} | null`;case"ref":return o(s.target,{stack:r,aliasHint:n});case"not":case"conditional":return"unknown";case"graphqlUnion":return s.memberTypeIds.map((c,p)=>Om(o(c,{stack:r,aliasHint:n?di(n,`member_${String(p+1)}`):`member_${String(p+1)}`}))).join(" | ")}},KT=e=>{let{catalog:t,roots:r}=e,n=new Map,o=new Set(r.map(le=>le.shapeId)),i=new Set,a=new Set,s=new Set,c=new Map,p=new Map,d=new Map,f=new Map,m=new Map,y=new Set,g=new Set,S=(le,K=[])=>{let ae=n.get(le);if(ae)return ae;if(K.includes(le))return{key:`cycle:${le}`,recursive:!0};let he=ks(t,le),Oe=[...K,le],pt=(It,fo)=>{let rn=It.map(Gn=>S(Gn,Oe));return fo?rn.sort((Gn,bt)=>Gn.key.localeCompare(bt.key)):rn},Ye=!1,lt=It=>{let fo=S(It,Oe);return Ye=Ye||fo.recursive,fo.key},Nt=(It,fo)=>{let rn=pt(It,fo);return Ye=Ye||rn.some(Gn=>Gn.recursive),rn.map(Gn=>Gn.key)},Ct=(()=>{switch(he.node.type){case"unknown":return"unknown";case"scalar":return`scalar:${cle(he.node.scalar)}`;case"const":return`const:${Cv(he.node.value)}`;case"enum":return`enum:${he.node.values.map(It=>Cv(It)).sort().join("|")}`;case"object":{let It=he.node.required??[],fo=Object.entries(he.node.fields).sort(([bt],[Hn])=>bt.localeCompare(Hn)).map(([bt,Hn])=>`${bt}${It.includes(bt)?"!":"?"}:${lt(Hn.shapeId)}`).join(","),rn=he.node.additionalProperties===!0?"unknown":typeof he.node.additionalProperties=="string"?lt(he.node.additionalProperties):"none",Gn=Object.entries(he.node.patternProperties??{}).map(([,bt])=>S(bt,Oe)).sort((bt,Hn)=>bt.key.localeCompare(Hn.key)).map(bt=>(Ye=Ye||bt.recursive,bt.key)).join("|");return`object:${fo}:index=${rn}:patterns=${Gn}`}case"array":return`array:${lt(he.node.itemShapeId)}`;case"tuple":return`tuple:${Nt(he.node.itemShapeIds,!1).join(",")}:rest=${he.node.additionalItems===!0?"unknown":typeof he.node.additionalItems=="string"?lt(he.node.additionalItems):"none"}`;case"map":return`map:${lt(he.node.valueShapeId)}`;case"allOf":return`allOf:${Nt(he.node.items,!0).join("&")}`;case"anyOf":return`anyOf:${Nt(he.node.items,!0).join("|")}`;case"oneOf":return`oneOf:${Nt(he.node.items,!0).join("|")}`;case"nullable":return`nullable:${lt(he.node.itemShapeId)}`;case"ref":return lt(he.node.target);case"not":case"conditional":return"unknown";case"graphqlInterface":{let It=Object.entries(he.node.fields).sort(([rn],[Gn])=>rn.localeCompare(Gn)).map(([rn,Gn])=>`${rn}:${lt(Gn.shapeId)}`).join(","),fo=Nt(he.node.possibleTypeIds,!0).join("|");return`graphqlInterface:${It}:possible=${fo}`}case"graphqlUnion":return`graphqlUnion:${Nt(he.node.memberTypeIds,!0).join("|")}`}})(),Hr={key:`sig:${ije(Ct)}`,recursive:Ye};return n.set(le,Hr),Hr},x=(le,K=[])=>S(le,K).key,A=le=>{if(!i.has(le)){i.add(le);for(let K of ale(ks(t,le).node))A(K)}};for(let le of r)A(le.shapeId);for(let le of i){let K=ks(t,le);if(K.synthetic)continue;let ae=uje(K);ae&&(f.set(le,ae),m.set(ae,(m.get(ae)??0)+1))}let I=le=>{let K=f.get(le);return K&&m.get(K)===1?K:void 0},E=[],C=new Set,F=le=>{let K=E.indexOf(le);if(K===-1){a.add(le);return}for(let ae of E.slice(K))a.add(ae);a.add(le)},O=le=>{if(!C.has(le)){if(E.includes(le)){F(le);return}E.push(le);for(let K of ale(ks(t,le).node)){if(E.includes(K)){F(K);continue}O(K)}E.pop(),C.add(le)}};for(let le of r){O(le.shapeId);let K=p.get(le.shapeId);(!K||le.aliasHint.length{if(K.includes(le))return null;let ae=ks(t,le);switch(ae.node.type){case"ref":return $(ae.node.target,[...K,le]);case"object":return{shapeId:le,node:ae.node};default:return null}},N=(le,K=[])=>{if(K.includes(le))return null;let ae=ks(t,le);switch(ae.node.type){case"ref":return N(ae.node.target,[...K,le]);case"const":return[Cv(ae.node.value)];case"enum":return ae.node.values.map(he=>Cv(he));default:return null}},U=le=>{let[K,...ae]=le;return K?ae.every(he=>{let Oe=K.node.additionalProperties,pt=he.node.additionalProperties;return Oe===pt?!0:typeof Oe=="string"&&typeof pt=="string"&&x(Oe)===x(pt)}):!1},ge=le=>{let[K,...ae]=le;if(!K)return!1;let he=K.node.patternProperties??{},Oe=Object.keys(he).sort();return ae.every(pt=>{let Ye=pt.node.patternProperties??{},lt=Object.keys(Ye).sort();return lt.length!==Oe.length||lt.some((Nt,Ct)=>Nt!==Oe[Ct])?!1:lt.every(Nt=>x(he[Nt])===x(Ye[Nt]))})},Te=le=>{let[K]=le;if(!K)return null;let ae=["type","kind","action","status","event"];return Object.keys(K.node.fields).filter(Ye=>le.every(lt=>(lt.node.required??[]).includes(Ye))).flatMap(Ye=>{let lt=le.map(Ct=>{let Hr=Ct.node.fields[Ye];return Hr?N(Hr.shapeId):null});if(lt.some(Ct=>Ct===null||Ct.length===0))return[];let Nt=new Set;for(let Ct of lt)for(let Hr of Ct){if(Nt.has(Hr))return[];Nt.add(Hr)}return[{key:Ye,serializedValuesByVariant:lt}]}).sort((Ye,lt)=>{let Nt=ae.indexOf(Ye.key),Ct=ae.indexOf(lt.key),Hr=Nt===-1?Number.MAX_SAFE_INTEGER:Nt,It=Ct===-1?Number.MAX_SAFE_INTEGER:Ct;return Hr-It||Ye.key.localeCompare(lt.key)})[0]??null},ke=(le,K)=>{let ae=le?.serializedValuesByVariant[K]?.[0];return ae?ae.startsWith('"')&&ae.endsWith('"')?sg(ae.slice(1,-1)):sg(ae):`Variant${String(K+1)}`},Ve=(le,K,ae,he,Oe)=>{let pt=le.map(bt=>$(bt));if(pt.some(bt=>bt===null))return null;let Ye=pt;if(Ye.length===0||!U(Ye)||!ge(Ye))return null;let lt=Te(Ye),[Nt]=Ye;if(!Nt)return null;let Ct=Object.keys(Nt.node.fields).filter(bt=>bt!==lt?.key).filter(bt=>{let Hn=Nt.node.fields[bt];if(!Hn)return!1;let Di=(Nt.node.required??[]).includes(bt);return Ye.every(Ga=>{let ji=Ga.node.fields[bt];return ji?(Ga.node.required??[]).includes(bt)===Di&&x(ji.shapeId)===x(Hn.shapeId):!1})}),Hr={fields:Object.fromEntries(Ct.map(bt=>[bt,Nt.node.fields[bt]])),required:Ct.filter(bt=>(Nt.node.required??[]).includes(bt)),additionalProperties:Nt.node.additionalProperties,patternProperties:Nt.node.patternProperties??{}},It=Ct.length>0||Hr.additionalProperties===!0||typeof Hr.additionalProperties=="string"||Object.keys(Hr.patternProperties).length>0;if(!It&<===null)return null;let fo=It?cq(Hr,K,ae,he,Oe):null,Gn=Ye.map((bt,Hn)=>{let Di=Object.keys(bt.node.fields).filter(ji=>!Ct.includes(ji)),Ga={fields:Object.fromEntries(Di.map(ji=>[ji,bt.node.fields[ji]])),required:Di.filter(ji=>(bt.node.required??[]).includes(ji)),additionalProperties:!1,patternProperties:{}};return cq(Ga,K,ae?di(ae,ke(lt,Hn)):ke(lt,Hn),he,Oe)}).map(bt=>Om(bt)).join(" | ");return fo?`${Om(fo)} & (${Gn})`:Gn},me=(le,K)=>{let ae=c.get(le);if(ae)return ae;let he=ks(t,le),Oe=p.get(le),pt=K?_je(K):void 0,Ye=I(le),lt=[Oe,Ye,dje(he.provenance),f.get(le),pt,sg(he.id)].filter(It=>It!==void 0),[Nt=sg(he.id)]=lt,Ct=lt.find(It=>!y.has(It))??Nt,Hr=2;for(;y.has(Ct);)Ct=`${Nt}_${String(Hr)}`,Hr+=1;return c.set(le,Ct),y.add(Ct),Ct},xe=le=>{let K=ks(t,le);return iq(K.node)?!1:o.has(le)?!0:K.node.type==="ref"?!1:I(le)!==void 0||s.has(le)},Rt=(le,K,ae)=>{let he=ks(t,le);switch(he.node.type){case"anyOf":case"oneOf":return Ve(he.node.items,K,ae,Yt,!0)??kv(t,le,K,ae,Yt,!0);case"graphqlUnion":return Ve(he.node.memberTypeIds,K,ae,Yt,!0)??kv(t,le,K,ae,Yt,!0);default:return kv(t,le,K,ae,Yt,!0)}},Vt=le=>{let K=d.get(le);if(K)return K;let ae=Rt(le,[le],me(le));return d.set(le,ae),ae},Yt=(le,K={})=>{let ae=ks(t,le);if(iq(ae.node))return sq(ae.node);let he=K.stack??[];return ae.node.type==="ref"&&!o.has(le)?he.includes(le)?Yt(ae.node.target,{stack:he,aliasHint:K.aliasHint}):Rt(le,[...he,le],K.aliasHint):he.includes(le)||xe(le)?(g.add(le),me(le,K.aliasHint)):Rt(le,[...he,le],K.aliasHint)},vt=(le,K={})=>{let ae=ks(t,le);if(iq(ae.node))return sq(ae.node);let he=K.stack??[];if(he.includes(le))return"unknown";switch(ae.node.type){case"anyOf":case"oneOf":return Ve(ae.node.items,[...he,le],K.aliasHint,vt,!1)??kv(t,le,[...he,le],K.aliasHint,vt,!1);case"graphqlUnion":return Ve(ae.node.memberTypeIds,[...he,le],K.aliasHint,vt,!1)??kv(t,le,[...he,le],K.aliasHint,vt,!1)}return kv(t,le,[...he,le],K.aliasHint,vt,!1)};return{renderSelfContainedShape:vt,renderDeclarationShape:Yt,supportingDeclarations:()=>{let le=[...g],K=new Set,ae=0;for(;aeme(Oe).localeCompare(me(pt))).map(Oe=>{let pt=me(Oe),Ye=ks(t,Oe),lt=JT({title:Ye.title,docs:Ye.docs,deprecated:Ye.deprecated,includeTitle:!0}),Nt=Vt(Oe),Ct=`type ${pt} = ${Nt};`;return lt?`${lt} -${Ct}`:Ct})}}},o3=e=>Object.values(e.toolDescriptors).sort((t,r)=>t.toolPath.join(".").localeCompare(r.toolPath.join("."))).flatMap(t=>[{shapeId:t.callShapeId,aliasHint:di(...t.toolPath,"call")},...t.resultShapeId?[{shapeId:t.resultShapeId,aliasHint:di(...t.toolPath,"result")}]:[]]),GT=(e,t)=>{let r=ks(e,t);switch(r.node.type){case"ref":return GT(e,r.node.target);case"object":return(r.node.required??[]).length===0;default:return!1}};var hje=Object.create,bq=Object.defineProperty,yje=Object.getOwnPropertyDescriptor,gje=Object.getOwnPropertyNames,Sje=Object.getPrototypeOf,vje=Object.prototype.hasOwnProperty,bje=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xq=(e,t)=>{for(var r in t)bq(e,r,{get:t[r],enumerable:!0})},xje=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of gje(t))!vje.call(e,o)&&o!==r&&bq(e,o,{get:()=>t[o],enumerable:!(n=yje(t,o))||n.enumerable});return e},Eje=(e,t,r)=>(r=e!=null?hje(Sje(e)):{},xje(t||!e||!e.__esModule?bq(r,"default",{value:e,enumerable:!0}):r,e)),Tje=bje((e,t)=>{var r,n,o,i,a,s,c,p,d,f,m,y,g,S,x,A,I,E,C,F;g=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,y=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,r=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,x=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,m=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,A=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,C=/[\t\v\f\ufeff\p{Zs}]+/yu,p=/\r?\n|[\r\u2028\u2029]/y,d=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,S=/\/\/.*/y,o=/[<>.:={}]|\/(?![\/*])/y,n=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,i=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,a=/[^<>{}]+/y,E=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,I=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,s=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,c=/^(?:return|throw|yield)$/,f=RegExp(p.source),t.exports=F=function*(O,{jsx:$=!1}={}){var N,U,ge,Te,ke,Ve,me,xe,Rt,Vt,Yt,vt,Fr,le;for({length:Ve}=O,Te=0,ke="",le=[{tag:"JS"}],N=[],Yt=0,vt=!1;Te":le.pop(),ke==="/"||xe.tag==="JSXTagEnd"?(Vt="?JSX",vt=!0):le.push({tag:"JSXChildren"});break;case"{":le.push({tag:"InterpolationInJSX",nesting:N.length}),Vt="?InterpolationInJSX",vt=!1;break;case"/":ke==="<"&&(le.pop(),le[le.length-1].tag==="JSXChildren"&&le.pop(),le.push({tag:"JSXTagEnd"}))}ke=Vt,yield{type:"JSXPunctuator",value:me[0]};continue}if(n.lastIndex=Te,me=n.exec(O)){Te=n.lastIndex,ke=me[0],yield{type:"JSXIdentifier",value:me[0]};continue}if(i.lastIndex=Te,me=i.exec(O)){Te=i.lastIndex,ke=me[0],yield{type:"JSXString",value:me[0],closed:me[2]!==void 0};continue}break;case"JSXChildren":if(a.lastIndex=Te,me=a.exec(O)){Te=a.lastIndex,ke=me[0],yield{type:"JSXText",value:me[0]};continue}switch(O[Te]){case"<":le.push({tag:"JSXTag"}),Te++,ke="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":le.push({tag:"InterpolationInJSX",nesting:N.length}),Te++,ke="?InterpolationInJSX",vt=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(C.lastIndex=Te,me=C.exec(O)){Te=C.lastIndex,yield{type:"WhiteSpace",value:me[0]};continue}if(p.lastIndex=Te,me=p.exec(O)){Te=p.lastIndex,vt=!1,c.test(ke)&&(ke="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:me[0]};continue}if(d.lastIndex=Te,me=d.exec(O)){Te=d.lastIndex,f.test(me[0])&&(vt=!1,c.test(ke)&&(ke="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:me[0],closed:me[1]!==void 0};continue}if(S.lastIndex=Te,me=S.exec(O)){Te=S.lastIndex,vt=!1,yield{type:"SingleLineComment",value:me[0]};continue}U=String.fromCodePoint(O.codePointAt(Te)),Te+=U.length,ke=U,vt=!1,yield{type:xe.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:U}}}}),Dje={};xq(Dje,{__debug:()=>mze,check:()=>_ze,doc:()=>Oue,format:()=>y3,formatWithCursor:()=>Lue,getSupportInfo:()=>fze,util:()=>Nue,version:()=>BUe});var QT=(e,t)=>(r,n,...o)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,o),Aje=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},wje=QT("replaceAll",function(){if(typeof this=="string")return Aje}),u3=wje,Ije=class{diff(e,t,r={}){let n;typeof r=="function"?(n=r,r={}):"callback"in r&&(n=r.callback);let o=this.castInput(e,r),i=this.castInput(t,r),a=this.removeEmpty(this.tokenize(o,r)),s=this.removeEmpty(this.tokenize(i,r));return this.diffWithOptionsObj(a,s,r,n)}diffWithOptionsObj(e,t,r,n){var o;let i=A=>{if(A=this.postProcess(A,r),n){setTimeout(function(){n(A)},0);return}else return A},a=t.length,s=e.length,c=1,p=a+s;r.maxEditLength!=null&&(p=Math.min(p,r.maxEditLength));let d=(o=r.timeout)!==null&&o!==void 0?o:1/0,f=Date.now()+d,m=[{oldPos:-1,lastComponent:void 0}],y=this.extractCommon(m[0],t,e,0,r);if(m[0].oldPos+1>=s&&y+1>=a)return i(this.buildValues(m[0].lastComponent,t,e));let g=-1/0,S=1/0,x=()=>{for(let A=Math.max(g,-c);A<=Math.min(S,c);A+=2){let I,E=m[A-1],C=m[A+1];E&&(m[A-1]=void 0);let F=!1;if(C){let $=C.oldPos-A;F=C&&0<=$&&$=s&&y+1>=a)return i(this.buildValues(I.lastComponent,t,e))||!0;m[A]=I,I.oldPos+1>=s&&(S=Math.min(S,A-1)),y+1>=a&&(g=Math.max(g,A+1))}c++};if(n)(function A(){setTimeout(function(){if(c>p||Date.now()>f)return n(void 0);x()||A()},0)})();else for(;c<=p&&Date.now()<=f;){let A=x();if(A)return A}}addToPath(e,t,r,n,o){let i=e.lastComponent;return i&&!o.oneChangePerToken&&i.added===t&&i.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:i.count+1,added:t,removed:r,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:i}}}extractCommon(e,t,r,n,o){let i=t.length,a=r.length,s=e.oldPos,c=s-n,p=0;for(;c+1f.length?y:f}),p.value=this.join(d)}else p.value=this.join(t.slice(s,s+p.count));s+=p.count,p.added||(c+=p.count)}}return n}},kje=class extends Ije{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},Cje=new kje;function Pje(e,t,r){return Cje.diff(e,t,r)}var Oje=()=>{},Fm=Oje,Lle="cr",$le="crlf",Nje="lf",Fje=Nje,Eq="\r",Mle=`\r -`,p3=` -`,Rje=p3;function Lje(e){let t=e.indexOf(Eq);return t!==-1?e.charAt(t+1)===p3?$le:Lle:Fje}function Tq(e){return e===Lle?Eq:e===$le?Mle:Rje}var $je=new Map([[p3,/\n/gu],[Eq,/\r/gu],[Mle,/\r\n/gu]]);function jle(e,t){let r=$je.get(t);return e.match(r)?.length??0}var Mje=/\r\n?/gu;function jje(e){return u3(0,e,Mje,p3)}function Bje(e){return this[e<0?this.length+e:e]}var qje=QT("at",function(){if(Array.isArray(this)||typeof this=="string")return Bje}),Xi=qje,dg="string",P_="array",Lm="cursor",O_="indent",N_="align",F_="trim",tc="group",Wp="fill",$c="if-break",R_="indent-if-break",L_="line-suffix",$_="line-suffix-boundary",Oa="line",Qp="label",Nl="break-parent",Ble=new Set([Lm,O_,N_,F_,tc,Wp,$c,R_,L_,$_,Oa,Qp,Nl]);function Uje(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===` -`);)t--;return tnew Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Jje(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', -Expected it to be 'string' or 'object'.`;if(_g(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Vje([...Ble].map(o=>`'${o}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var Kje=class extends Error{name="InvalidDocError";constructor(e){super(Jje(e)),this.doc=e}},Nv=Kje,ule={};function Gje(e,t,r,n){let o=[e];for(;o.length>0;){let i=o.pop();if(i===ule){r(o.pop());continue}r&&o.push(i,ule);let a=_g(i);if(!a)throw new Nv(i);if(t?.(i)!==!1)switch(a){case P_:case Wp:{let s=a===P_?i:i.parts;for(let c=s.length,p=c-1;p>=0;--p)o.push(s[p]);break}case $c:o.push(i.flatContents,i.breakContents);break;case tc:if(n&&i.expandedStates)for(let s=i.expandedStates.length,c=s-1;c>=0;--c)o.push(i.expandedStates[c]);else o.push(i.contents);break;case N_:case O_:case R_:case Qp:case L_:o.push(i.contents);break;case dg:case Lm:case F_:case $_:case Oa:case Nl:break;default:throw new Nv(i)}}}var Dq=Gje;function d3(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let a=o(i);return r.set(i,a),a}function o(i){switch(_g(i)){case P_:return t(i.map(n));case Wp:return t({...i,parts:i.parts.map(n)});case $c:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case tc:{let{expandedStates:a,contents:s}=i;return a?(a=a.map(n),s=a[0]):s=n(s),t({...i,contents:s,expandedStates:a})}case N_:case O_:case R_:case Qp:case L_:return t({...i,contents:n(i.contents)});case dg:case Lm:case F_:case $_:case Oa:case Nl:return t(i);default:throw new Nv(i)}}}function Aq(e,t,r){let n=r,o=!1;function i(a){if(o)return!1;let s=t(a);s!==void 0&&(o=!0,n=s)}return Dq(e,i),n}function Hje(e){if(e.type===tc&&e.break||e.type===Oa&&e.hard||e.type===Nl)return!0}function Zje(e){return Aq(e,Hje,!1)}function ple(e){if(e.length>0){let t=Xi(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Wje(e){let t=new Set,r=[];function n(i){if(i.type===Nl&&ple(r),i.type===tc){if(r.push(i),t.has(i))return!1;t.add(i)}}function o(i){i.type===tc&&r.pop().break&&ple(r)}Dq(e,n,o,!0)}function Qje(e){return e.type===Oa&&!e.hard?e.soft?"":" ":e.type===$c?e.flatContents:e}function Xje(e){return d3(e,Qje)}function dle(e){for(e=[...e];e.length>=2&&Xi(0,e,-2).type===Oa&&Xi(0,e,-1).type===Nl;)e.length-=2;if(e.length>0){let t=HT(Xi(0,e,-1));e[e.length-1]=t}return e}function HT(e){switch(_g(e)){case O_:case R_:case tc:case L_:case Qp:{let t=HT(e.contents);return{...e,contents:t}}case $c:return{...e,breakContents:HT(e.breakContents),flatContents:HT(e.flatContents)};case Wp:return{...e,parts:dle(e.parts)};case P_:return dle(e);case dg:return Uje(e);case N_:case Lm:case F_:case $_:case Oa:case Nl:break;default:throw new Nv(e)}return e}function qle(e){return HT(eBe(e))}function Yje(e){switch(_g(e)){case Wp:if(e.parts.every(t=>t===""))return"";break;case tc:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===tc&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case N_:case O_:case R_:case L_:if(!e.contents)return"";break;case $c:if(!e.flatContents&&!e.breakContents)return"";break;case P_:{let t=[];for(let r of e){if(!r)continue;let[n,...o]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Xi(0,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...o)}return t.length===0?"":t.length===1?t[0]:t}case dg:case Lm:case F_:case $_:case Oa:case Qp:case Nl:break;default:throw new Nv(e)}return e}function eBe(e){return d3(e,t=>Yje(t))}function tBe(e,t=Zle){return d3(e,r=>typeof r=="string"?Kle(t,r.split(` -`)):r)}function rBe(e){if(e.type===Oa)return!0}function nBe(e){return Aq(e,rBe,!1)}function s3(e,t){return e.type===Qp?{...e,contents:t(e.contents)}:t(e)}var Zp=Fm,Ule=Fm,oBe=Fm,iBe=Fm;function l3(e){return Zp(e),{type:O_,contents:e}}function Fv(e,t){return iBe(e),Zp(t),{type:N_,contents:t,n:e}}function aBe(e){return Fv(Number.NEGATIVE_INFINITY,e)}function zle(e){return Fv({type:"root"},e)}function sBe(e){return Fv(-1,e)}function Vle(e,t,r){Zp(e);let n=e;if(t>0){for(let o=0;o0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${n(i.contents)}${p})`}if(i.type===tc){let c=[];i.break&&i.break!=="propagated"&&c.push("shouldBreak: true"),i.id&&c.push(`id: ${o(i.id)}`);let p=c.length>0?`, { ${c.join(", ")} }`:"";return i.expandedStates?`conditionalGroup([${i.expandedStates.map(d=>n(d)).join(",")}]${p})`:`group(${n(i.contents)}${p})`}if(i.type===Wp)return`fill([${i.parts.map(c=>n(c)).join(", ")}])`;if(i.type===L_)return"lineSuffix("+n(i.contents)+")";if(i.type===$_)return"lineSuffixBoundary";if(i.type===Qp)return`label(${JSON.stringify(i.label)}, ${n(i.contents)})`;if(i.type===Lm)return"cursor";throw new Error("Unknown doc type "+i.type)}function o(i){if(typeof i!="symbol")return JSON.stringify(String(i));if(i in t)return t[i];let a=i.description||"symbol";for(let s=0;;s++){let c=a+(s>0?` #${s}`:"");if(!r.has(c))return r.add(c),t[i]=`Symbol.for(${JSON.stringify(c)})`}}}var yBe=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function gBe(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function SBe(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var vBe="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07",bBe=/[^\x20-\x7F]/u,xBe=new Set(vBe);function EBe(e){if(!e)return 0;if(!bBe.test(e))return e.length;e=e.replace(yBe(),r=>xBe.has(r)?" ":" ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=gBe(n)||SBe(n)?2:1)}return t}var Iq=EBe,TBe={type:0},DBe={type:1},Wle={value:"",length:0,queue:[],get root(){return Wle}};function Qle(e,t,r){let n=t.type===1?e.queue.slice(0,-1):[...e.queue,t],o="",i=0,a=0,s=0;for(let g of n)switch(g.type){case 0:d(),r.useTabs?c(1):p(r.tabWidth);break;case 3:{let{string:S}=g;d(),o+=S,i+=S.length;break}case 2:{let{width:S}=g;a+=1,s+=S;break}default:throw new Error(`Unexpected indent comment '${g.type}'.`)}return m(),{...e,value:o,length:i,queue:n};function c(g){o+=" ".repeat(g),i+=r.tabWidth*g}function p(g){o+=" ".repeat(g),i+=g}function d(){r.useTabs?f():m()}function f(){a>0&&c(a),y()}function m(){s>0&&p(s),y()}function y(){a=0,s=0}}function ABe(e,t,r){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let n;return typeof t=="number"?t<0?n=DBe:n={type:2,width:t}:n={type:3,string:t},Qle(e,n,r)}function wBe(e,t){return Qle(e,TBe,t)}function IBe(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];if(n===" "||n===" ")t++;else break}return t}function Xle(e){let t=IBe(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var ec=Symbol("MODE_BREAK"),Gp=Symbol("MODE_FLAT"),gq=Symbol("DOC_FILL_PRINTED_LENGTH");function i3(e,t,r,n,o,i){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length,s=!1,c=[e],p="";for(;r>=0;){if(c.length===0){if(a===0)return!0;c.push(t[--a]);continue}let{mode:d,doc:f}=c.pop(),m=_g(f);switch(m){case dg:f&&(s&&(p+=" ",r-=1,s=!1),p+=f,r-=Iq(f));break;case P_:case Wp:{let y=m===P_?f:f.parts,g=f[gq]??0;for(let S=y.length-1;S>=g;S--)c.push({mode:d,doc:y[S]});break}case O_:case N_:case R_:case Qp:c.push({mode:d,doc:f.contents});break;case F_:{let{text:y,count:g}=Xle(p);p=y,r+=g;break}case tc:{if(i&&f.break)return!1;let y=f.break?ec:d,g=f.expandedStates&&y===ec?Xi(0,f.expandedStates,-1):f.contents;c.push({mode:y,doc:g});break}case $c:{let y=(f.groupId?o[f.groupId]||Gp:d)===ec?f.breakContents:f.flatContents;y&&c.push({mode:d,doc:y});break}case Oa:if(d===ec||f.hard)return!0;f.soft||(s=!0);break;case L_:n=!0;break;case $_:if(n)return!1;break}}return!1}function f3(e,t){let r=Object.create(null),n=t.printWidth,o=Tq(t.endOfLine),i=0,a=[{indent:Wle,mode:ec,doc:e}],s="",c=!1,p=[],d=[],f=[],m=[],y=0;for(Wje(e);a.length>0;){let{indent:I,mode:E,doc:C}=a.pop();switch(_g(C)){case dg:{let F=o!==` -`?u3(0,C,` -`,o):C;F&&(s+=F,a.length>0&&(i+=Iq(F)));break}case P_:for(let F=C.length-1;F>=0;F--)a.push({indent:I,mode:E,doc:C[F]});break;case Lm:if(d.length>=2)throw new Error("There are too many 'cursor' in doc.");d.push(y+s.length);break;case O_:a.push({indent:wBe(I,t),mode:E,doc:C.contents});break;case N_:a.push({indent:ABe(I,C.n,t),mode:E,doc:C.contents});break;case F_:A();break;case tc:switch(E){case Gp:if(!c){a.push({indent:I,mode:C.break?ec:Gp,doc:C.contents});break}case ec:{c=!1;let F={indent:I,mode:Gp,doc:C.contents},O=n-i,$=p.length>0;if(!C.break&&i3(F,a,O,$,r))a.push(F);else if(C.expandedStates){let N=Xi(0,C.expandedStates,-1);if(C.break){a.push({indent:I,mode:ec,doc:N});break}else for(let U=1;U=C.expandedStates.length){a.push({indent:I,mode:ec,doc:N});break}else{let ge=C.expandedStates[U],Te={indent:I,mode:Gp,doc:ge};if(i3(Te,a,O,$,r)){a.push(Te);break}}}else a.push({indent:I,mode:ec,doc:C.contents});break}}C.id&&(r[C.id]=Xi(0,a,-1).mode);break;case Wp:{let F=n-i,O=C[gq]??0,{parts:$}=C,N=$.length-O;if(N===0)break;let U=$[O+0],ge=$[O+1],Te={indent:I,mode:Gp,doc:U},ke={indent:I,mode:ec,doc:U},Ve=i3(Te,[],F,p.length>0,r,!0);if(N===1){Ve?a.push(Te):a.push(ke);break}let me={indent:I,mode:Gp,doc:ge},xe={indent:I,mode:ec,doc:ge};if(N===2){Ve?a.push(me,Te):a.push(xe,ke);break}let Rt=$[O+2],Vt={indent:I,mode:E,doc:{...C,[gq]:O+2}},Yt=i3({indent:I,mode:Gp,doc:[U,ge,Rt]},[],F,p.length>0,r,!0);a.push(Vt),Yt?a.push(me,Te):Ve?a.push(xe,Te):a.push(xe,ke);break}case $c:case R_:{let F=C.groupId?r[C.groupId]:E;if(F===ec){let O=C.type===$c?C.breakContents:C.negate?C.contents:l3(C.contents);O&&a.push({indent:I,mode:E,doc:O})}if(F===Gp){let O=C.type===$c?C.flatContents:C.negate?l3(C.contents):C.contents;O&&a.push({indent:I,mode:E,doc:O})}break}case L_:p.push({indent:I,mode:E,doc:C.contents});break;case $_:p.length>0&&a.push({indent:I,mode:E,doc:wq});break;case Oa:switch(E){case Gp:if(C.hard)c=!0;else{C.soft||(s+=" ",i+=1);break}case ec:if(p.length>0){a.push({indent:I,mode:E,doc:C},...p.reverse()),p.length=0;break}C.literal?(s+=o,i=0,I.root&&(I.root.value&&(s+=I.root.value),i=I.root.length)):(A(),s+=o+I.value,i=I.length);break}break;case Qp:a.push({indent:I,mode:E,doc:C.contents});break;case Nl:break;default:throw new Nv(C)}a.length===0&&p.length>0&&(a.push(...p.reverse()),p.length=0)}let g=f.join("")+s,S=[...m,...d];if(S.length!==2)return{formatted:g};let x=S[0];return{formatted:g,cursorNodeStart:x,cursorNodeText:g.slice(x,Xi(0,S,-1))};function A(){let{text:I,count:E}=Xle(s);I&&(f.push(I),y+=I.length),s="",i-=E,d.length>0&&(m.push(...d.map(C=>Math.min(C,y))),d.length=0)}}function kBe(e,t,r=0){let n=0;for(let o=r;o1?Xi(0,e,-2):null}getValue(){return Xi(0,this.stack,-1)}getNode(e=0){let t=this.#t(e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}#t(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1}call(e,...t){let{stack:r}=this,{length:n}=r,o=Xi(0,r,-1);for(let i of t)o=o?.[i],r.push(i,o);try{return e(this)}finally{r.length=n}}callParent(e,t=0){let r=this.#t(t+1),n=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...t){let{stack:r}=this,{length:n}=r,o=Xi(0,r,-1);for(let i of t)o=o[i],r.push(i,o);try{for(let i=0;i{r[o]=e(n,o,i)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(let o of e){if(n===void 0)return!1;let i=null;if(typeof r=="number"&&(i=r,r=this.stack[t--],n=this.stack[t--]),o&&!o(n,r,i))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}findAncestor(e){for(let t of this.#r())if(e(t))return t}hasAncestor(e){for(let t of this.#r())if(e(t))return!0;return!1}*#r(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}}},PBe=CBe;function OBe(e){return e!==null&&typeof e=="object"}var Cq=OBe;function XT(e){return(t,r,n)=>{let o=!!n?.backwards;if(r===!1)return!1;let{length:i}=t,a=r;for(;a>=0&&ae===` -`||e==="\r"||e==="\u2028"||e==="\u2029";function FBe(e,t,r){let n=!!r?.backwards;if(t===!1)return!1;let o=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&o===` -`)return t-2;if(_le(o))return t-1}else{if(o==="\r"&&e.charAt(t+1)===` -`)return t+2;if(_le(o))return t+1}return t}var pg=FBe;function RBe(e,t,r={}){let n=Rm(e,r.backwards?t-1:t,r),o=pg(e,n,r);return n!==o}var Nm=RBe;function LBe(e){return Array.isArray(e)&&e.length>0}var $Be=LBe;function*m3(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,o=i=>Cq(i)&&n(i);for(let i of r(e)){let a=e[i];if(Array.isArray(a))for(let s of a)o(s)&&(yield s);else o(a)&&(yield a)}}function*MBe(e,t){let r=[e];for(let n=0;n(i??(i=[e,...t]),o(p,i)?[p]:tue(p,i,r))),{locStart:s,locEnd:c}=r;return a.sort((p,d)=>s(p)-s(d)||c(p)-c(d)),n.set(e,a),a}var rue=tue;function BBe(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Pq(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=BBe(e)}function ZT(e,t){t.leading=!0,t.trailing=!1,Pq(e,t)}function cg(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Pq(e,t)}function WT(e,t){t.leading=!1,t.trailing=!0,Pq(e,t)}var nue=new WeakMap;function oue(e,t,r,n,o=[]){let{locStart:i,locEnd:a}=r,s=i(t),c=a(t),p=rue(e,o,{cache:nue,locStart:i,locEnd:a,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes}),d,f,m=0,y=p.length;for(;m>1,S=p[g],x=i(S),A=a(S);if(x<=s&&c<=A)return oue(S,t,r,S,[S,...o]);if(A<=s){d=S,m=g+1;continue}if(c<=x){f=S,y=g;continue}throw new Error("Comment location overlaps with node location")}if(n?.type==="TemplateLiteral"){let{quasis:g}=n,S=pq(g,t,r);d&&pq(g,d,r)!==S&&(d=null),f&&pq(g,f,r)!==S&&(f=null)}return{enclosingNode:n,precedingNode:d,followingNode:f}}var uq=()=>!1;function qBe(e,t){let{comments:r}=e;if(delete e.comments,!$Be(r)||!t.printer.canAttachComment)return;let n=[],{printer:{features:{experimental_avoidAstMutation:o},handleComments:i={}},originalText:a}=t,{ownLine:s=uq,endOfLine:c=uq,remaining:p=uq}=i,d=r.map((f,m)=>({...oue(e,f,t),comment:f,text:a,options:t,ast:e,isLastComment:r.length-1===m}));for(let[f,m]of d.entries()){let{comment:y,precedingNode:g,enclosingNode:S,followingNode:x,text:A,options:I,ast:E,isLastComment:C}=m,F;if(o?F=[m]:(y.enclosingNode=S,y.precedingNode=g,y.followingNode=x,F=[y,A,I,E,C]),UBe(A,I,d,f))y.placement="ownLine",s(...F)||(x?ZT(x,y):g?WT(g,y):cg(S||E,y));else if(zBe(A,I,d,f))y.placement="endOfLine",c(...F)||(g?WT(g,y):x?ZT(x,y):cg(S||E,y));else if(y.placement="remaining",!p(...F))if(g&&x){let O=n.length;O>0&&n[O-1].followingNode!==x&&fle(n,I),n.push(m)}else g?WT(g,y):x?ZT(x,y):cg(S||E,y)}if(fle(n,t),!o)for(let f of r)delete f.precedingNode,delete f.enclosingNode,delete f.followingNode}var iue=e=>!/[\S\n\u2028\u2029]/u.test(e);function UBe(e,t,r,n){let{comment:o,precedingNode:i}=r[n],{locStart:a,locEnd:s}=t,c=a(o);if(i)for(let p=n-1;p>=0;p--){let{comment:d,precedingNode:f}=r[p];if(f!==i||!iue(e.slice(s(d),c)))break;c=a(d)}return Nm(e,c,{backwards:!0})}function zBe(e,t,r,n){let{comment:o,followingNode:i}=r[n],{locStart:a,locEnd:s}=t,c=s(o);if(i)for(let p=n+1;p0;--a){let{comment:s,precedingNode:c,followingNode:p}=e[a-1];Fm(c,n),Fm(p,o);let d=t.originalText.slice(t.locEnd(s),i);if(t.printer.isGap?.(d,t)??/^[\s(]*$/u.test(d))i=t.locStart(s);else break}for(let[s,{comment:c}]of e.entries())s1&&s.comments.sort((c,p)=>t.locStart(c)-t.locStart(p));e.length=0}function pq(e,t,r){let n=r.locStart(t)-1;for(let o=1;o!n.has(s)).length===0)return{leading:"",trailing:""};let o=[],i=[],a;return e.each(()=>{let s=e.node;if(n?.has(s))return;let{leading:c,trailing:p}=s;c?o.push(JBe(e,t)):p&&(a=KBe(e,t,a),i.push(a.doc))},"comments"),{leading:o,trailing:i}}function HBe(e,t,r){let{leading:n,trailing:o}=GBe(e,r);return!n&&!o?t:s3(t,i=>[n,i,o])}function ZBe(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}var WBe=()=>Fm,sue=class extends Error{name="ConfigError"},mle=class extends Error{name="UndefinedParserError"},QBe={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing +`),ks=(e,t)=>{let r=e.symbols[t];if(!r||r.kind!=="shape")throw new Error(`Missing shape symbol for ${t}`);return r},sq=e=>e.type==="unknown"||e.type==="scalar"||e.type==="const"||e.type==="enum",uje=e=>/^shape_[a-f0-9_]+$/i.test(e),pje=e=>/\s/.test(e.trim()),dje=e=>{let t=e.title?.trim();return t&&!uje(t)?pg(t):void 0},_je=e=>e.replace(/~1/g,"/").replace(/~0/g,"~"),sle=e=>{let t=e.trim();if(!(t.length===0||/^\d+$/.test(t)||["$defs","definitions","components","schemas","schema","properties","items","additionalProperties","patternProperties","allOf","anyOf","oneOf","not","if","then","else","input","output","graphql","scalars","responses","headers","parameters","requestBody"].includes(t)))return pg(t)},fje=e=>{for(let t of e){let r=t.pointer;if(!r?.startsWith("#/"))continue;let n=r.slice(2).split("/").map(_je),o=n.flatMap((i,a)=>["$defs","definitions","schemas","input","output"].includes(i)?[a]:[]);for(let i of o){let a=sle(n[i+1]??"");if(a)return a}for(let i=n.length-1;i>=0;i-=1){let a=sle(n[i]??"");if(a)return a}}},i3=e=>{let t=e?.trim();return t&&t.length>0?t:null},ple=e=>e.replace(/\*\//g,"*\\/"),cq=(e,t)=>{if(t){e.length>0&&e.push("");for(let r of t.split(/\r?\n/))e.push(ple(r.trimEnd()))}},GT=e=>{let t=[],r=e.includeTitle&&e.title&&pje(e.title)?i3(e.title):null,n=i3(e.docs?.summary),o=i3(e.docs?.description),i=i3(e.docs?.externalDocsUrl);return cq(t,r&&r!==n?r:null),cq(t,n),cq(t,o&&o!==n?o:null),i&&(t.length>0&&t.push(""),t.push(`@see ${ple(i)}`)),e.deprecated&&(t.length>0&&t.push(""),t.push("@deprecated")),t.length===0?null:["/**",...t.map(a=>a.length>0?` * ${a}`:" *")," */"].join(` +`)},mje=e=>{let t=lle(e);if(t.length<=5)return di(...t);let r=t.filter((n,o)=>o>=t.length-2||!["item","member","value"].includes(n.toLowerCase()));return di(...r.slice(-5))},cle=e=>{switch(e.type){case"unknown":case"scalar":case"const":case"enum":return[];case"object":return[...Object.values(e.fields).map(t=>t.shapeId),...typeof e.additionalProperties=="string"?[e.additionalProperties]:[],...Object.values(e.patternProperties??{})];case"array":return[e.itemShapeId];case"tuple":return[...e.itemShapeIds,...typeof e.additionalItems=="string"?[e.additionalItems]:[]];case"map":return[e.valueShapeId];case"allOf":case"anyOf":case"oneOf":return[...e.items];case"nullable":return[e.itemShapeId];case"ref":return[e.target];case"not":return[e.itemShapeId];case"conditional":return[e.ifShapeId,...e.thenShapeId?[e.thenShapeId]:[],...e.elseShapeId?[e.elseShapeId]:[]];case"graphqlInterface":return[...Object.values(e.fields).map(t=>t.shapeId),...e.possibleTypeIds];case"graphqlUnion":return[...e.memberTypeIds]}},lq=e=>{switch(e.type){case"unknown":return"unknown";case"scalar":return ule(e.scalar);case"const":return Nv(e.value);case"enum":return e.values.map(t=>Nv(t)).join(" | ");default:throw new Error(`Cannot inline non-primitive shape node: ${e.type}`)}},hje=(e,t,r,n,o)=>{let i=new Set;t&&i.add("unknown");for(let a of e)i.add(o(a,{stack:n,aliasHint:r}));return[...i].sort((a,s)=>a.localeCompare(s)).join(" | ")},uq=(e,t,r,n,o)=>{let i=new Set(e.required),a=Object.keys(e.fields).sort((d,f)=>d.localeCompare(f)).map(d=>{let f=e.fields[d],m=`${pq(d)}${i.has(d)?"":"?"}: ${n(f.shapeId,{stack:t,aliasHint:r?di(r,d):d})};`,y=o?GT({docs:f.docs,deprecated:f.deprecated}):null;return y?`${y} +${m}`:m}),s=Object.values(e.patternProperties??{}),c=e.additionalProperties===!0,p=typeof e.additionalProperties=="string"?[e.additionalProperties]:[];return(c||s.length>0||p.length>0)&&a.push(`[key: string]: ${hje([...s,...p],c,r?di(r,"value"):"value",t,n)};`),lje(a," ")},yje=(e,t,r,n,o)=>uq({fields:e.fields,required:e.type==="object"?e.required??[]:[],additionalProperties:e.type==="object"?e.additionalProperties:!1,patternProperties:e.type==="object"?e.patternProperties??{}:{}},t,r,n,o),Ov=(e,t,r,n,o,i)=>{let s=ks(e,t).node;switch(s.type){case"unknown":case"scalar":case"const":case"enum":return lq(s);case"object":case"graphqlInterface":return yje(s,r,n,o,i);case"array":return`Array<${Rm(o(s.itemShapeId,{stack:r,aliasHint:n?di(n,"item"):"item"}))}>`;case"tuple":{let c=s.itemShapeIds.map((d,f)=>o(d,{stack:r,aliasHint:n?di(n,`item_${String(f+1)}`):`item_${String(f+1)}`})),p=s.additionalItems===!0?", ...unknown[]":typeof s.additionalItems=="string"?`, ...Array<${Rm(o(s.additionalItems,{stack:r,aliasHint:n?di(n,"rest"):"rest"}))}>`:"";return`[${c.join(", ")}${p}]`}case"map":return`Record`;case"allOf":return s.items.map((c,p)=>Rm(o(c,{stack:r,aliasHint:n?di(n,`member_${String(p+1)}`):`member_${String(p+1)}`}))).join(" & ");case"anyOf":case"oneOf":return s.items.map((c,p)=>Rm(o(c,{stack:r,aliasHint:n?di(n,`member_${String(p+1)}`):`member_${String(p+1)}`}))).join(" | ");case"nullable":return`${Rm(o(s.itemShapeId,{stack:r,aliasHint:n}))} | null`;case"ref":return o(s.target,{stack:r,aliasHint:n});case"not":case"conditional":return"unknown";case"graphqlUnion":return s.memberTypeIds.map((c,p)=>Rm(o(c,{stack:r,aliasHint:n?di(n,`member_${String(p+1)}`):`member_${String(p+1)}`}))).join(" | ")}},HT=e=>{let{catalog:t,roots:r}=e,n=new Map,o=new Set(r.map(le=>le.shapeId)),i=new Set,a=new Set,s=new Set,c=new Map,p=new Map,d=new Map,f=new Map,m=new Map,y=new Set,g=new Set,S=(le,K=[])=>{let ae=n.get(le);if(ae)return ae;if(K.includes(le))return{key:`cycle:${le}`,recursive:!0};let he=ks(t,le),Oe=[...K,le],pt=(wt,fo)=>{let nn=wt.map(Gn=>S(Gn,Oe));return fo?nn.sort((Gn,bt)=>Gn.key.localeCompare(bt.key)):nn},Ye=!1,lt=wt=>{let fo=S(wt,Oe);return Ye=Ye||fo.recursive,fo.key},Nt=(wt,fo)=>{let nn=pt(wt,fo);return Ye=Ye||nn.some(Gn=>Gn.recursive),nn.map(Gn=>Gn.key)},Ct=(()=>{switch(he.node.type){case"unknown":return"unknown";case"scalar":return`scalar:${ule(he.node.scalar)}`;case"const":return`const:${Nv(he.node.value)}`;case"enum":return`enum:${he.node.values.map(wt=>Nv(wt)).sort().join("|")}`;case"object":{let wt=he.node.required??[],fo=Object.entries(he.node.fields).sort(([bt],[Hn])=>bt.localeCompare(Hn)).map(([bt,Hn])=>`${bt}${wt.includes(bt)?"!":"?"}:${lt(Hn.shapeId)}`).join(","),nn=he.node.additionalProperties===!0?"unknown":typeof he.node.additionalProperties=="string"?lt(he.node.additionalProperties):"none",Gn=Object.entries(he.node.patternProperties??{}).map(([,bt])=>S(bt,Oe)).sort((bt,Hn)=>bt.key.localeCompare(Hn.key)).map(bt=>(Ye=Ye||bt.recursive,bt.key)).join("|");return`object:${fo}:index=${nn}:patterns=${Gn}`}case"array":return`array:${lt(he.node.itemShapeId)}`;case"tuple":return`tuple:${Nt(he.node.itemShapeIds,!1).join(",")}:rest=${he.node.additionalItems===!0?"unknown":typeof he.node.additionalItems=="string"?lt(he.node.additionalItems):"none"}`;case"map":return`map:${lt(he.node.valueShapeId)}`;case"allOf":return`allOf:${Nt(he.node.items,!0).join("&")}`;case"anyOf":return`anyOf:${Nt(he.node.items,!0).join("|")}`;case"oneOf":return`oneOf:${Nt(he.node.items,!0).join("|")}`;case"nullable":return`nullable:${lt(he.node.itemShapeId)}`;case"ref":return lt(he.node.target);case"not":case"conditional":return"unknown";case"graphqlInterface":{let wt=Object.entries(he.node.fields).sort(([nn],[Gn])=>nn.localeCompare(Gn)).map(([nn,Gn])=>`${nn}:${lt(Gn.shapeId)}`).join(","),fo=Nt(he.node.possibleTypeIds,!0).join("|");return`graphqlInterface:${wt}:possible=${fo}`}case"graphqlUnion":return`graphqlUnion:${Nt(he.node.memberTypeIds,!0).join("|")}`}})(),Zr={key:`sig:${sje(Ct)}`,recursive:Ye};return n.set(le,Zr),Zr},b=(le,K=[])=>S(le,K).key,E=le=>{if(!i.has(le)){i.add(le);for(let K of cle(ks(t,le).node))E(K)}};for(let le of r)E(le.shapeId);for(let le of i){let K=ks(t,le);if(K.synthetic)continue;let ae=dje(K);ae&&(f.set(le,ae),m.set(ae,(m.get(ae)??0)+1))}let I=le=>{let K=f.get(le);return K&&m.get(K)===1?K:void 0},T=[],k=new Set,F=le=>{let K=T.indexOf(le);if(K===-1){a.add(le);return}for(let ae of T.slice(K))a.add(ae);a.add(le)},O=le=>{if(!k.has(le)){if(T.includes(le)){F(le);return}T.push(le);for(let K of cle(ks(t,le).node)){if(T.includes(K)){F(K);continue}O(K)}T.pop(),k.add(le)}};for(let le of r){O(le.shapeId);let K=p.get(le.shapeId);(!K||le.aliasHint.length{if(K.includes(le))return null;let ae=ks(t,le);switch(ae.node.type){case"ref":return $(ae.node.target,[...K,le]);case"object":return{shapeId:le,node:ae.node};default:return null}},N=(le,K=[])=>{if(K.includes(le))return null;let ae=ks(t,le);switch(ae.node.type){case"ref":return N(ae.node.target,[...K,le]);case"const":return[Nv(ae.node.value)];case"enum":return ae.node.values.map(he=>Nv(he));default:return null}},U=le=>{let[K,...ae]=le;return K?ae.every(he=>{let Oe=K.node.additionalProperties,pt=he.node.additionalProperties;return Oe===pt?!0:typeof Oe=="string"&&typeof pt=="string"&&b(Oe)===b(pt)}):!1},ge=le=>{let[K,...ae]=le;if(!K)return!1;let he=K.node.patternProperties??{},Oe=Object.keys(he).sort();return ae.every(pt=>{let Ye=pt.node.patternProperties??{},lt=Object.keys(Ye).sort();return lt.length!==Oe.length||lt.some((Nt,Ct)=>Nt!==Oe[Ct])?!1:lt.every(Nt=>b(he[Nt])===b(Ye[Nt]))})},Te=le=>{let[K]=le;if(!K)return null;let ae=["type","kind","action","status","event"];return Object.keys(K.node.fields).filter(Ye=>le.every(lt=>(lt.node.required??[]).includes(Ye))).flatMap(Ye=>{let lt=le.map(Ct=>{let Zr=Ct.node.fields[Ye];return Zr?N(Zr.shapeId):null});if(lt.some(Ct=>Ct===null||Ct.length===0))return[];let Nt=new Set;for(let Ct of lt)for(let Zr of Ct){if(Nt.has(Zr))return[];Nt.add(Zr)}return[{key:Ye,serializedValuesByVariant:lt}]}).sort((Ye,lt)=>{let Nt=ae.indexOf(Ye.key),Ct=ae.indexOf(lt.key),Zr=Nt===-1?Number.MAX_SAFE_INTEGER:Nt,wt=Ct===-1?Number.MAX_SAFE_INTEGER:Ct;return Zr-wt||Ye.key.localeCompare(lt.key)})[0]??null},ke=(le,K)=>{let ae=le?.serializedValuesByVariant[K]?.[0];return ae?ae.startsWith('"')&&ae.endsWith('"')?pg(ae.slice(1,-1)):pg(ae):`Variant${String(K+1)}`},Je=(le,K,ae,he,Oe)=>{let pt=le.map(bt=>$(bt));if(pt.some(bt=>bt===null))return null;let Ye=pt;if(Ye.length===0||!U(Ye)||!ge(Ye))return null;let lt=Te(Ye),[Nt]=Ye;if(!Nt)return null;let Ct=Object.keys(Nt.node.fields).filter(bt=>bt!==lt?.key).filter(bt=>{let Hn=Nt.node.fields[bt];if(!Hn)return!1;let Di=(Nt.node.required??[]).includes(bt);return Ye.every(Ga=>{let ji=Ga.node.fields[bt];return ji?(Ga.node.required??[]).includes(bt)===Di&&b(ji.shapeId)===b(Hn.shapeId):!1})}),Zr={fields:Object.fromEntries(Ct.map(bt=>[bt,Nt.node.fields[bt]])),required:Ct.filter(bt=>(Nt.node.required??[]).includes(bt)),additionalProperties:Nt.node.additionalProperties,patternProperties:Nt.node.patternProperties??{}},wt=Ct.length>0||Zr.additionalProperties===!0||typeof Zr.additionalProperties=="string"||Object.keys(Zr.patternProperties).length>0;if(!wt&<===null)return null;let fo=wt?uq(Zr,K,ae,he,Oe):null,Gn=Ye.map((bt,Hn)=>{let Di=Object.keys(bt.node.fields).filter(ji=>!Ct.includes(ji)),Ga={fields:Object.fromEntries(Di.map(ji=>[ji,bt.node.fields[ji]])),required:Di.filter(ji=>(bt.node.required??[]).includes(ji)),additionalProperties:!1,patternProperties:{}};return uq(Ga,K,ae?di(ae,ke(lt,Hn)):ke(lt,Hn),he,Oe)}).map(bt=>Rm(bt)).join(" | ");return fo?`${Rm(fo)} & (${Gn})`:Gn},me=(le,K)=>{let ae=c.get(le);if(ae)return ae;let he=ks(t,le),Oe=p.get(le),pt=K?mje(K):void 0,Ye=I(le),lt=[Oe,Ye,fje(he.provenance),f.get(le),pt,pg(he.id)].filter(wt=>wt!==void 0),[Nt=pg(he.id)]=lt,Ct=lt.find(wt=>!y.has(wt))??Nt,Zr=2;for(;y.has(Ct);)Ct=`${Nt}_${String(Zr)}`,Zr+=1;return c.set(le,Ct),y.add(Ct),Ct},xe=le=>{let K=ks(t,le);return sq(K.node)?!1:o.has(le)?!0:K.node.type==="ref"?!1:I(le)!==void 0||s.has(le)},Rt=(le,K,ae)=>{let he=ks(t,le);switch(he.node.type){case"anyOf":case"oneOf":return Je(he.node.items,K,ae,Yt,!0)??Ov(t,le,K,ae,Yt,!0);case"graphqlUnion":return Je(he.node.memberTypeIds,K,ae,Yt,!0)??Ov(t,le,K,ae,Yt,!0);default:return Ov(t,le,K,ae,Yt,!0)}},Jt=le=>{let K=d.get(le);if(K)return K;let ae=Rt(le,[le],me(le));return d.set(le,ae),ae},Yt=(le,K={})=>{let ae=ks(t,le);if(sq(ae.node))return lq(ae.node);let he=K.stack??[];return ae.node.type==="ref"&&!o.has(le)?he.includes(le)?Yt(ae.node.target,{stack:he,aliasHint:K.aliasHint}):Rt(le,[...he,le],K.aliasHint):he.includes(le)||xe(le)?(g.add(le),me(le,K.aliasHint)):Rt(le,[...he,le],K.aliasHint)},vt=(le,K={})=>{let ae=ks(t,le);if(sq(ae.node))return lq(ae.node);let he=K.stack??[];if(he.includes(le))return"unknown";switch(ae.node.type){case"anyOf":case"oneOf":return Je(ae.node.items,[...he,le],K.aliasHint,vt,!1)??Ov(t,le,[...he,le],K.aliasHint,vt,!1);case"graphqlUnion":return Je(ae.node.memberTypeIds,[...he,le],K.aliasHint,vt,!1)??Ov(t,le,[...he,le],K.aliasHint,vt,!1)}return Ov(t,le,[...he,le],K.aliasHint,vt,!1)};return{renderSelfContainedShape:vt,renderDeclarationShape:Yt,supportingDeclarations:()=>{let le=[...g],K=new Set,ae=0;for(;aeme(Oe).localeCompare(me(pt))).map(Oe=>{let pt=me(Oe),Ye=ks(t,Oe),lt=GT({title:Ye.title,docs:Ye.docs,deprecated:Ye.deprecated,includeTitle:!0}),Nt=Jt(Oe),Ct=`type ${pt} = ${Nt};`;return lt?`${lt} +${Ct}`:Ct})}}},a3=e=>Object.values(e.toolDescriptors).sort((t,r)=>t.toolPath.join(".").localeCompare(r.toolPath.join("."))).flatMap(t=>[{shapeId:t.callShapeId,aliasHint:di(...t.toolPath,"call")},...t.resultShapeId?[{shapeId:t.resultShapeId,aliasHint:di(...t.toolPath,"result")}]:[]]),ZT=(e,t)=>{let r=ks(e,t);switch(r.node.type){case"ref":return ZT(e,r.node.target);case"object":return(r.node.required??[]).length===0;default:return!1}};var gje=Object.create,Eq=Object.defineProperty,Sje=Object.getOwnPropertyDescriptor,vje=Object.getOwnPropertyNames,bje=Object.getPrototypeOf,xje=Object.prototype.hasOwnProperty,Eje=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Tq=(e,t)=>{for(var r in t)Eq(e,r,{get:t[r],enumerable:!0})},Tje=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of vje(t))!xje.call(e,o)&&o!==r&&Eq(e,o,{get:()=>t[o],enumerable:!(n=Sje(t,o))||n.enumerable});return e},Dje=(e,t,r)=>(r=e!=null?gje(bje(e)):{},Tje(t||!e||!e.__esModule?Eq(r,"default",{value:e,enumerable:!0}):r,e)),Aje=Eje((e,t)=>{var r,n,o,i,a,s,c,p,d,f,m,y,g,S,b,E,I,T,k,F;g=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,y=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,r=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,b=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,m=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,E=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,k=/[\t\v\f\ufeff\p{Zs}]+/yu,p=/\r?\n|[\r\u2028\u2029]/y,d=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,S=/\/\/.*/y,o=/[<>.:={}]|\/(?![\/*])/y,n=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,i=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,a=/[^<>{}]+/y,T=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,I=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,s=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,c=/^(?:return|throw|yield)$/,f=RegExp(p.source),t.exports=F=function*(O,{jsx:$=!1}={}){var N,U,ge,Te,ke,Je,me,xe,Rt,Jt,Yt,vt,Fr,le;for({length:Je}=O,Te=0,ke="",le=[{tag:"JS"}],N=[],Yt=0,vt=!1;Te":le.pop(),ke==="/"||xe.tag==="JSXTagEnd"?(Jt="?JSX",vt=!0):le.push({tag:"JSXChildren"});break;case"{":le.push({tag:"InterpolationInJSX",nesting:N.length}),Jt="?InterpolationInJSX",vt=!1;break;case"/":ke==="<"&&(le.pop(),le[le.length-1].tag==="JSXChildren"&&le.pop(),le.push({tag:"JSXTagEnd"}))}ke=Jt,yield{type:"JSXPunctuator",value:me[0]};continue}if(n.lastIndex=Te,me=n.exec(O)){Te=n.lastIndex,ke=me[0],yield{type:"JSXIdentifier",value:me[0]};continue}if(i.lastIndex=Te,me=i.exec(O)){Te=i.lastIndex,ke=me[0],yield{type:"JSXString",value:me[0],closed:me[2]!==void 0};continue}break;case"JSXChildren":if(a.lastIndex=Te,me=a.exec(O)){Te=a.lastIndex,ke=me[0],yield{type:"JSXText",value:me[0]};continue}switch(O[Te]){case"<":le.push({tag:"JSXTag"}),Te++,ke="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":le.push({tag:"InterpolationInJSX",nesting:N.length}),Te++,ke="?InterpolationInJSX",vt=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(k.lastIndex=Te,me=k.exec(O)){Te=k.lastIndex,yield{type:"WhiteSpace",value:me[0]};continue}if(p.lastIndex=Te,me=p.exec(O)){Te=p.lastIndex,vt=!1,c.test(ke)&&(ke="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:me[0]};continue}if(d.lastIndex=Te,me=d.exec(O)){Te=d.lastIndex,f.test(me[0])&&(vt=!1,c.test(ke)&&(ke="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:me[0],closed:me[1]!==void 0};continue}if(S.lastIndex=Te,me=S.exec(O)){Te=S.lastIndex,vt=!1,yield{type:"SingleLineComment",value:me[0]};continue}U=String.fromCodePoint(O.codePointAt(Te)),Te+=U.length,ke=U,vt=!1,yield{type:xe.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:U}}}}),Ije={};Tq(Ije,{__debug:()=>yze,check:()=>mze,doc:()=>Fue,format:()=>S3,formatWithCursor:()=>Mue,getSupportInfo:()=>hze,util:()=>Rue,version:()=>UUe});var YT=(e,t)=>(r,n,...o)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,o),wje=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},kje=YT("replaceAll",function(){if(typeof this=="string")return wje}),d3=kje,Cje=class{diff(e,t,r={}){let n;typeof r=="function"?(n=r,r={}):"callback"in r&&(n=r.callback);let o=this.castInput(e,r),i=this.castInput(t,r),a=this.removeEmpty(this.tokenize(o,r)),s=this.removeEmpty(this.tokenize(i,r));return this.diffWithOptionsObj(a,s,r,n)}diffWithOptionsObj(e,t,r,n){var o;let i=E=>{if(E=this.postProcess(E,r),n){setTimeout(function(){n(E)},0);return}else return E},a=t.length,s=e.length,c=1,p=a+s;r.maxEditLength!=null&&(p=Math.min(p,r.maxEditLength));let d=(o=r.timeout)!==null&&o!==void 0?o:1/0,f=Date.now()+d,m=[{oldPos:-1,lastComponent:void 0}],y=this.extractCommon(m[0],t,e,0,r);if(m[0].oldPos+1>=s&&y+1>=a)return i(this.buildValues(m[0].lastComponent,t,e));let g=-1/0,S=1/0,b=()=>{for(let E=Math.max(g,-c);E<=Math.min(S,c);E+=2){let I,T=m[E-1],k=m[E+1];T&&(m[E-1]=void 0);let F=!1;if(k){let $=k.oldPos-E;F=k&&0<=$&&$=s&&y+1>=a)return i(this.buildValues(I.lastComponent,t,e))||!0;m[E]=I,I.oldPos+1>=s&&(S=Math.min(S,E-1)),y+1>=a&&(g=Math.max(g,E+1))}c++};if(n)(function E(){setTimeout(function(){if(c>p||Date.now()>f)return n(void 0);b()||E()},0)})();else for(;c<=p&&Date.now()<=f;){let E=b();if(E)return E}}addToPath(e,t,r,n,o){let i=e.lastComponent;return i&&!o.oneChangePerToken&&i.added===t&&i.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:i.count+1,added:t,removed:r,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:i}}}extractCommon(e,t,r,n,o){let i=t.length,a=r.length,s=e.oldPos,c=s-n,p=0;for(;c+1f.length?y:f}),p.value=this.join(d)}else p.value=this.join(t.slice(s,s+p.count));s+=p.count,p.added||(c+=p.count)}}return n}},Pje=class extends Cje{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},Oje=new Pje;function Nje(e,t,r){return Oje.diff(e,t,r)}var Fje=()=>{},$m=Fje,Mle="cr",jle="crlf",Rje="lf",Lje=Rje,Dq="\r",Ble=`\r +`,_3=` +`,$je=_3;function Mje(e){let t=e.indexOf(Dq);return t!==-1?e.charAt(t+1)===_3?jle:Mle:Lje}function Aq(e){return e===Mle?Dq:e===jle?Ble:$je}var jje=new Map([[_3,/\n/gu],[Dq,/\r/gu],[Ble,/\r\n/gu]]);function qle(e,t){let r=jje.get(t);return e.match(r)?.length??0}var Bje=/\r\n?/gu;function qje(e){return d3(0,e,Bje,_3)}function Uje(e){return this[e<0?this.length+e:e]}var zje=YT("at",function(){if(Array.isArray(this)||typeof this=="string")return Uje}),Xi=zje,hg="string",N_="array",jm="cursor",F_="indent",R_="align",L_="trim",tc="group",Qp="fill",$c="if-break",$_="indent-if-break",M_="line-suffix",j_="line-suffix-boundary",Oa="line",Xp="label",Fl="break-parent",Ule=new Set([jm,F_,R_,L_,tc,Qp,$c,$_,M_,j_,Oa,Xp,Fl]);function Jje(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===` +`);)t--;return tnew Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Gje(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(yg(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Kje([...Ule].map(o=>`'${o}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var Hje=class extends Error{name="InvalidDocError";constructor(e){super(Gje(e)),this.doc=e}},Lv=Hje,dle={};function Zje(e,t,r,n){let o=[e];for(;o.length>0;){let i=o.pop();if(i===dle){r(o.pop());continue}r&&o.push(i,dle);let a=yg(i);if(!a)throw new Lv(i);if(t?.(i)!==!1)switch(a){case N_:case Qp:{let s=a===N_?i:i.parts;for(let c=s.length,p=c-1;p>=0;--p)o.push(s[p]);break}case $c:o.push(i.flatContents,i.breakContents);break;case tc:if(n&&i.expandedStates)for(let s=i.expandedStates.length,c=s-1;c>=0;--c)o.push(i.expandedStates[c]);else o.push(i.contents);break;case R_:case F_:case $_:case Xp:case M_:o.push(i.contents);break;case hg:case jm:case L_:case j_:case Oa:case Fl:break;default:throw new Lv(i)}}}var Iq=Zje;function f3(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let a=o(i);return r.set(i,a),a}function o(i){switch(yg(i)){case N_:return t(i.map(n));case Qp:return t({...i,parts:i.parts.map(n)});case $c:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case tc:{let{expandedStates:a,contents:s}=i;return a?(a=a.map(n),s=a[0]):s=n(s),t({...i,contents:s,expandedStates:a})}case R_:case F_:case $_:case Xp:case M_:return t({...i,contents:n(i.contents)});case hg:case jm:case L_:case j_:case Oa:case Fl:return t(i);default:throw new Lv(i)}}}function wq(e,t,r){let n=r,o=!1;function i(a){if(o)return!1;let s=t(a);s!==void 0&&(o=!0,n=s)}return Iq(e,i),n}function Wje(e){if(e.type===tc&&e.break||e.type===Oa&&e.hard||e.type===Fl)return!0}function Qje(e){return wq(e,Wje,!1)}function _le(e){if(e.length>0){let t=Xi(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Xje(e){let t=new Set,r=[];function n(i){if(i.type===Fl&&_le(r),i.type===tc){if(r.push(i),t.has(i))return!1;t.add(i)}}function o(i){i.type===tc&&r.pop().break&&_le(r)}Iq(e,n,o,!0)}function Yje(e){return e.type===Oa&&!e.hard?e.soft?"":" ":e.type===$c?e.flatContents:e}function eBe(e){return f3(e,Yje)}function fle(e){for(e=[...e];e.length>=2&&Xi(0,e,-2).type===Oa&&Xi(0,e,-1).type===Fl;)e.length-=2;if(e.length>0){let t=WT(Xi(0,e,-1));e[e.length-1]=t}return e}function WT(e){switch(yg(e)){case F_:case $_:case tc:case M_:case Xp:{let t=WT(e.contents);return{...e,contents:t}}case $c:return{...e,breakContents:WT(e.breakContents),flatContents:WT(e.flatContents)};case Qp:return{...e,parts:fle(e.parts)};case N_:return fle(e);case hg:return Jje(e);case R_:case jm:case L_:case j_:case Oa:case Fl:break;default:throw new Lv(e)}return e}function zle(e){return WT(rBe(e))}function tBe(e){switch(yg(e)){case Qp:if(e.parts.every(t=>t===""))return"";break;case tc:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===tc&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case R_:case F_:case $_:case M_:if(!e.contents)return"";break;case $c:if(!e.flatContents&&!e.breakContents)return"";break;case N_:{let t=[];for(let r of e){if(!r)continue;let[n,...o]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Xi(0,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...o)}return t.length===0?"":t.length===1?t[0]:t}case hg:case jm:case L_:case j_:case Oa:case Xp:case Fl:break;default:throw new Lv(e)}return e}function rBe(e){return f3(e,t=>tBe(t))}function nBe(e,t=Qle){return f3(e,r=>typeof r=="string"?Hle(t,r.split(` +`)):r)}function oBe(e){if(e.type===Oa)return!0}function iBe(e){return wq(e,oBe,!1)}function l3(e,t){return e.type===Xp?{...e,contents:t(e.contents)}:t(e)}var Wp=$m,Jle=$m,aBe=$m,sBe=$m;function p3(e){return Wp(e),{type:F_,contents:e}}function $v(e,t){return sBe(e),Wp(t),{type:R_,contents:t,n:e}}function cBe(e){return $v(Number.NEGATIVE_INFINITY,e)}function Vle(e){return $v({type:"root"},e)}function lBe(e){return $v(-1,e)}function Kle(e,t,r){Wp(e);let n=e;if(t>0){for(let o=0;o0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${n(i.contents)}${p})`}if(i.type===tc){let c=[];i.break&&i.break!=="propagated"&&c.push("shouldBreak: true"),i.id&&c.push(`id: ${o(i.id)}`);let p=c.length>0?`, { ${c.join(", ")} }`:"";return i.expandedStates?`conditionalGroup([${i.expandedStates.map(d=>n(d)).join(",")}]${p})`:`group(${n(i.contents)}${p})`}if(i.type===Qp)return`fill([${i.parts.map(c=>n(c)).join(", ")}])`;if(i.type===M_)return"lineSuffix("+n(i.contents)+")";if(i.type===j_)return"lineSuffixBoundary";if(i.type===Xp)return`label(${JSON.stringify(i.label)}, ${n(i.contents)})`;if(i.type===jm)return"cursor";throw new Error("Unknown doc type "+i.type)}function o(i){if(typeof i!="symbol")return JSON.stringify(String(i));if(i in t)return t[i];let a=i.description||"symbol";for(let s=0;;s++){let c=a+(s>0?` #${s}`:"");if(!r.has(c))return r.add(c),t[i]=`Symbol.for(${JSON.stringify(c)})`}}}var SBe=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function vBe(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function bBe(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var xBe="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07",EBe=/[^\x20-\x7F]/u,TBe=new Set(xBe);function DBe(e){if(!e)return 0;if(!EBe.test(e))return e.length;e=e.replace(SBe(),r=>TBe.has(r)?" ":" ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=vBe(n)||bBe(n)?2:1)}return t}var Cq=DBe,ABe={type:0},IBe={type:1},Xle={value:"",length:0,queue:[],get root(){return Xle}};function Yle(e,t,r){let n=t.type===1?e.queue.slice(0,-1):[...e.queue,t],o="",i=0,a=0,s=0;for(let g of n)switch(g.type){case 0:d(),r.useTabs?c(1):p(r.tabWidth);break;case 3:{let{string:S}=g;d(),o+=S,i+=S.length;break}case 2:{let{width:S}=g;a+=1,s+=S;break}default:throw new Error(`Unexpected indent comment '${g.type}'.`)}return m(),{...e,value:o,length:i,queue:n};function c(g){o+=" ".repeat(g),i+=r.tabWidth*g}function p(g){o+=" ".repeat(g),i+=g}function d(){r.useTabs?f():m()}function f(){a>0&&c(a),y()}function m(){s>0&&p(s),y()}function y(){a=0,s=0}}function wBe(e,t,r){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let n;return typeof t=="number"?t<0?n=IBe:n={type:2,width:t}:n={type:3,string:t},Yle(e,n,r)}function kBe(e,t){return Yle(e,ABe,t)}function CBe(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];if(n===" "||n===" ")t++;else break}return t}function eue(e){let t=CBe(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var ec=Symbol("MODE_BREAK"),Hp=Symbol("MODE_FLAT"),vq=Symbol("DOC_FILL_PRINTED_LENGTH");function s3(e,t,r,n,o,i){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length,s=!1,c=[e],p="";for(;r>=0;){if(c.length===0){if(a===0)return!0;c.push(t[--a]);continue}let{mode:d,doc:f}=c.pop(),m=yg(f);switch(m){case hg:f&&(s&&(p+=" ",r-=1,s=!1),p+=f,r-=Cq(f));break;case N_:case Qp:{let y=m===N_?f:f.parts,g=f[vq]??0;for(let S=y.length-1;S>=g;S--)c.push({mode:d,doc:y[S]});break}case F_:case R_:case $_:case Xp:c.push({mode:d,doc:f.contents});break;case L_:{let{text:y,count:g}=eue(p);p=y,r+=g;break}case tc:{if(i&&f.break)return!1;let y=f.break?ec:d,g=f.expandedStates&&y===ec?Xi(0,f.expandedStates,-1):f.contents;c.push({mode:y,doc:g});break}case $c:{let y=(f.groupId?o[f.groupId]||Hp:d)===ec?f.breakContents:f.flatContents;y&&c.push({mode:d,doc:y});break}case Oa:if(d===ec||f.hard)return!0;f.soft||(s=!0);break;case M_:n=!0;break;case j_:if(n)return!1;break}}return!1}function h3(e,t){let r=Object.create(null),n=t.printWidth,o=Aq(t.endOfLine),i=0,a=[{indent:Xle,mode:ec,doc:e}],s="",c=!1,p=[],d=[],f=[],m=[],y=0;for(Xje(e);a.length>0;){let{indent:I,mode:T,doc:k}=a.pop();switch(yg(k)){case hg:{let F=o!==` +`?d3(0,k,` +`,o):k;F&&(s+=F,a.length>0&&(i+=Cq(F)));break}case N_:for(let F=k.length-1;F>=0;F--)a.push({indent:I,mode:T,doc:k[F]});break;case jm:if(d.length>=2)throw new Error("There are too many 'cursor' in doc.");d.push(y+s.length);break;case F_:a.push({indent:kBe(I,t),mode:T,doc:k.contents});break;case R_:a.push({indent:wBe(I,k.n,t),mode:T,doc:k.contents});break;case L_:E();break;case tc:switch(T){case Hp:if(!c){a.push({indent:I,mode:k.break?ec:Hp,doc:k.contents});break}case ec:{c=!1;let F={indent:I,mode:Hp,doc:k.contents},O=n-i,$=p.length>0;if(!k.break&&s3(F,a,O,$,r))a.push(F);else if(k.expandedStates){let N=Xi(0,k.expandedStates,-1);if(k.break){a.push({indent:I,mode:ec,doc:N});break}else for(let U=1;U=k.expandedStates.length){a.push({indent:I,mode:ec,doc:N});break}else{let ge=k.expandedStates[U],Te={indent:I,mode:Hp,doc:ge};if(s3(Te,a,O,$,r)){a.push(Te);break}}}else a.push({indent:I,mode:ec,doc:k.contents});break}}k.id&&(r[k.id]=Xi(0,a,-1).mode);break;case Qp:{let F=n-i,O=k[vq]??0,{parts:$}=k,N=$.length-O;if(N===0)break;let U=$[O+0],ge=$[O+1],Te={indent:I,mode:Hp,doc:U},ke={indent:I,mode:ec,doc:U},Je=s3(Te,[],F,p.length>0,r,!0);if(N===1){Je?a.push(Te):a.push(ke);break}let me={indent:I,mode:Hp,doc:ge},xe={indent:I,mode:ec,doc:ge};if(N===2){Je?a.push(me,Te):a.push(xe,ke);break}let Rt=$[O+2],Jt={indent:I,mode:T,doc:{...k,[vq]:O+2}},Yt=s3({indent:I,mode:Hp,doc:[U,ge,Rt]},[],F,p.length>0,r,!0);a.push(Jt),Yt?a.push(me,Te):Je?a.push(xe,Te):a.push(xe,ke);break}case $c:case $_:{let F=k.groupId?r[k.groupId]:T;if(F===ec){let O=k.type===$c?k.breakContents:k.negate?k.contents:p3(k.contents);O&&a.push({indent:I,mode:T,doc:O})}if(F===Hp){let O=k.type===$c?k.flatContents:k.negate?p3(k.contents):k.contents;O&&a.push({indent:I,mode:T,doc:O})}break}case M_:p.push({indent:I,mode:T,doc:k.contents});break;case j_:p.length>0&&a.push({indent:I,mode:T,doc:kq});break;case Oa:switch(T){case Hp:if(k.hard)c=!0;else{k.soft||(s+=" ",i+=1);break}case ec:if(p.length>0){a.push({indent:I,mode:T,doc:k},...p.reverse()),p.length=0;break}k.literal?(s+=o,i=0,I.root&&(I.root.value&&(s+=I.root.value),i=I.root.length)):(E(),s+=o+I.value,i=I.length);break}break;case Xp:a.push({indent:I,mode:T,doc:k.contents});break;case Fl:break;default:throw new Lv(k)}a.length===0&&p.length>0&&(a.push(...p.reverse()),p.length=0)}let g=f.join("")+s,S=[...m,...d];if(S.length!==2)return{formatted:g};let b=S[0];return{formatted:g,cursorNodeStart:b,cursorNodeText:g.slice(b,Xi(0,S,-1))};function E(){let{text:I,count:T}=eue(s);I&&(f.push(I),y+=I.length),s="",i-=T,d.length>0&&(m.push(...d.map(k=>Math.min(k,y))),d.length=0)}}function PBe(e,t,r=0){let n=0;for(let o=r;o1?Xi(0,e,-2):null}getValue(){return Xi(0,this.stack,-1)}getNode(e=0){let t=this.#t(e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}#t(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1}call(e,...t){let{stack:r}=this,{length:n}=r,o=Xi(0,r,-1);for(let i of t)o=o?.[i],r.push(i,o);try{return e(this)}finally{r.length=n}}callParent(e,t=0){let r=this.#t(t+1),n=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...t){let{stack:r}=this,{length:n}=r,o=Xi(0,r,-1);for(let i of t)o=o[i],r.push(i,o);try{for(let i=0;i{r[o]=e(n,o,i)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(let o of e){if(n===void 0)return!1;let i=null;if(typeof r=="number"&&(i=r,r=this.stack[t--],n=this.stack[t--]),o&&!o(n,r,i))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}findAncestor(e){for(let t of this.#r())if(e(t))return t}hasAncestor(e){for(let t of this.#r())if(e(t))return!0;return!1}*#r(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}}},NBe=OBe;function FBe(e){return e!==null&&typeof e=="object"}var Oq=FBe;function eD(e){return(t,r,n)=>{let o=!!n?.backwards;if(r===!1)return!1;let{length:i}=t,a=r;for(;a>=0&&ae===` +`||e==="\r"||e==="\u2028"||e==="\u2029";function LBe(e,t,r){let n=!!r?.backwards;if(t===!1)return!1;let o=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&o===` +`)return t-2;if(mle(o))return t-1}else{if(o==="\r"&&e.charAt(t+1)===` +`)return t+2;if(mle(o))return t+1}return t}var mg=LBe;function $Be(e,t,r={}){let n=Mm(e,r.backwards?t-1:t,r),o=mg(e,n,r);return n!==o}var Lm=$Be;function MBe(e){return Array.isArray(e)&&e.length>0}var jBe=MBe;function*y3(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,o=i=>Oq(i)&&n(i);for(let i of r(e)){let a=e[i];if(Array.isArray(a))for(let s of a)o(s)&&(yield s);else o(a)&&(yield a)}}function*BBe(e,t){let r=[e];for(let n=0;n(i??(i=[e,...t]),o(p,i)?[p]:nue(p,i,r))),{locStart:s,locEnd:c}=r;return a.sort((p,d)=>s(p)-s(d)||c(p)-c(d)),n.set(e,a),a}var oue=nue;function UBe(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Nq(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=UBe(e)}function QT(e,t){t.leading=!0,t.trailing=!1,Nq(e,t)}function dg(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Nq(e,t)}function XT(e,t){t.leading=!1,t.trailing=!0,Nq(e,t)}var iue=new WeakMap;function aue(e,t,r,n,o=[]){let{locStart:i,locEnd:a}=r,s=i(t),c=a(t),p=oue(e,o,{cache:iue,locStart:i,locEnd:a,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes}),d,f,m=0,y=p.length;for(;m>1,S=p[g],b=i(S),E=a(S);if(b<=s&&c<=E)return aue(S,t,r,S,[S,...o]);if(E<=s){d=S,m=g+1;continue}if(c<=b){f=S,y=g;continue}throw new Error("Comment location overlaps with node location")}if(n?.type==="TemplateLiteral"){let{quasis:g}=n,S=_q(g,t,r);d&&_q(g,d,r)!==S&&(d=null),f&&_q(g,f,r)!==S&&(f=null)}return{enclosingNode:n,precedingNode:d,followingNode:f}}var dq=()=>!1;function zBe(e,t){let{comments:r}=e;if(delete e.comments,!jBe(r)||!t.printer.canAttachComment)return;let n=[],{printer:{features:{experimental_avoidAstMutation:o},handleComments:i={}},originalText:a}=t,{ownLine:s=dq,endOfLine:c=dq,remaining:p=dq}=i,d=r.map((f,m)=>({...aue(e,f,t),comment:f,text:a,options:t,ast:e,isLastComment:r.length-1===m}));for(let[f,m]of d.entries()){let{comment:y,precedingNode:g,enclosingNode:S,followingNode:b,text:E,options:I,ast:T,isLastComment:k}=m,F;if(o?F=[m]:(y.enclosingNode=S,y.precedingNode=g,y.followingNode=b,F=[y,E,I,T,k]),JBe(E,I,d,f))y.placement="ownLine",s(...F)||(b?QT(b,y):g?XT(g,y):dg(S||T,y));else if(VBe(E,I,d,f))y.placement="endOfLine",c(...F)||(g?XT(g,y):b?QT(b,y):dg(S||T,y));else if(y.placement="remaining",!p(...F))if(g&&b){let O=n.length;O>0&&n[O-1].followingNode!==b&&hle(n,I),n.push(m)}else g?XT(g,y):b?QT(b,y):dg(S||T,y)}if(hle(n,t),!o)for(let f of r)delete f.precedingNode,delete f.enclosingNode,delete f.followingNode}var sue=e=>!/[\S\n\u2028\u2029]/u.test(e);function JBe(e,t,r,n){let{comment:o,precedingNode:i}=r[n],{locStart:a,locEnd:s}=t,c=a(o);if(i)for(let p=n-1;p>=0;p--){let{comment:d,precedingNode:f}=r[p];if(f!==i||!sue(e.slice(s(d),c)))break;c=a(d)}return Lm(e,c,{backwards:!0})}function VBe(e,t,r,n){let{comment:o,followingNode:i}=r[n],{locStart:a,locEnd:s}=t,c=s(o);if(i)for(let p=n+1;p0;--a){let{comment:s,precedingNode:c,followingNode:p}=e[a-1];$m(c,n),$m(p,o);let d=t.originalText.slice(t.locEnd(s),i);if(t.printer.isGap?.(d,t)??/^[\s(]*$/u.test(d))i=t.locStart(s);else break}for(let[s,{comment:c}]of e.entries())s1&&s.comments.sort((c,p)=>t.locStart(c)-t.locStart(p));e.length=0}function _q(e,t,r){let n=r.locStart(t)-1;for(let o=1;o!n.has(s)).length===0)return{leading:"",trailing:""};let o=[],i=[],a;return e.each(()=>{let s=e.node;if(n?.has(s))return;let{leading:c,trailing:p}=s;c?o.push(GBe(e,t)):p&&(a=HBe(e,t,a),i.push(a.doc))},"comments"),{leading:o,trailing:i}}function WBe(e,t,r){let{leading:n,trailing:o}=ZBe(e,r);return!n&&!o?t:l3(t,i=>[n,i,o])}function QBe(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}var XBe=()=>$m,lue=class extends Error{name="ConfigError"},yle=class extends Error{name="UndefinedParserError"},YBe={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing (mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. -The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function cue({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(o=>o.languages??[]),n=[];for(let o of YBe(Object.assign({},...e.map(({options:i})=>i),QBe)))!t&&o.deprecated||(Array.isArray(o.choices)&&(t||(o.choices=o.choices.filter(i=>!i.deprecated)),o.name==="parser"&&(o.choices=[...o.choices,...XBe(o.choices,r,e)])),o.pluginDefaults=Object.fromEntries(e.filter(i=>i.defaultOptions?.[o.name]!==void 0).map(i=>[i.name,i.defaultOptions[o.name]])),n.push(o));return{languages:r,options:n}}function*XBe(e,t,r){let n=new Set(e.map(o=>o.value));for(let o of t)if(o.parsers){for(let i of o.parsers)if(!n.has(i)){n.add(i);let a=r.find(c=>c.parsers&&Object.prototype.hasOwnProperty.call(c.parsers,i)),s=o.name;a?.name&&(s+=` (plugin: ${a.name})`),yield{value:i,description:s}}}}function YBe(e){let t=[];for(let[r,n]of Object.entries(e)){let o={name:r,...n};Array.isArray(o.default)&&(o.default=Xi(0,o.default,-1).value),t.push(o)}return t}var eqe=Array.prototype.toReversed??function(){return[...this].reverse()},tqe=QT("toReversed",function(){if(Array.isArray(this))return eqe}),rqe=tqe;function nqe(){let e=globalThis,t=e.Deno?.build?.os;return typeof t=="string"?t==="windows":e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}var oqe=nqe();function lue(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function iqe(e){return e=lue(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function aqe(e){e=lue(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function sqe(e){return oqe?aqe(e):iqe(e)}var cqe=e=>String(e).split(/[/\\]/u).pop(),lqe=e=>String(e).startsWith("file:");function hle(e,t){if(!t)return;let r=cqe(t).toLowerCase();return e.find(({filenames:n})=>n?.some(o=>o.toLowerCase()===r))??e.find(({extensions:n})=>n?.some(o=>r.endsWith(o)))}function uqe(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}var pqe=void 0;function yle(e,t){if(t){if(lqe(t))try{t=sqe(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function dqe(e,t){let r=rqe(0,e.plugins).flatMap(n=>n.languages??[]);return(uqe(r,t.language)??hle(r,t.physicalFile)??hle(r,t.file)??yle(r,t.physicalFile)??yle(r,t.file)??pqe?.(r,t.physicalFile))?.parsers[0]}var uue=dqe,Ov={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>Ov.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${Ov.key(r)}: ${Ov.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>Ov.value({[e]:t})},Nq=new Proxy(String,{get:()=>Nq}),Hp=Nq,pue=()=>Nq,_qe=(e,t,{descriptor:r})=>{let n=[`${Hp.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${Hp.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."},due=Symbol.for("vnopts.VALUE_NOT_EXIST"),c3=Symbol.for("vnopts.VALUE_UNCHANGED"),gle=" ".repeat(2),fqe=(e,t,r)=>{let{text:n,list:o}=r.normalizeExpectedResult(r.schemas[e].expected(r)),i=[];return n&&i.push(Sle(e,t,n,r.descriptor)),o&&i.push([Sle(e,t,o.title,r.descriptor)].concat(o.values.map(a=>_ue(a,r.loggerPrintWidth))).join(` -`)),fue(i,r.loggerPrintWidth)};function Sle(e,t,r,n){return[`Invalid ${Hp.red(n.key(e))} value.`,`Expected ${Hp.blue(r)},`,`but received ${t===due?Hp.gray("nothing"):Hp.red(n.value(t))}.`].join(" ")}function _ue({text:e,list:t},r){let n=[];return e&&n.push(`- ${Hp.blue(e)}`),t&&n.push([`- ${Hp.blue(t.title)}:`].concat(t.values.map(o=>_ue(o,r-gle.length).replace(/^|\n/g,`$&${gle}`))).join(` -`)),fue(n,r)}function fue(e,t){if(e.length===1)return e[0];let[r,n]=e,[o,i]=e.map(a=>a.split(` -`,1)[0].length);return o>t&&o>i?n:r}var Pv=[],dq=[];function _q(e,t,r){if(e===t)return 0;let n=r?.maxDistance,o=e;e.length>t.length&&(e=t,t=o);let i=e.length,a=t.length;for(;i>0&&e.charCodeAt(~-i)===t.charCodeAt(~-a);)i--,a--;let s=0;for(;sn)return n;if(i===0)return n!==void 0&&a>n?n:a;let c,p,d,f,m=0,y=0;for(;mp?f>p?p+1:f:f>d?d+1:f;if(n!==void 0){let g=p;for(m=0;mn)return n}}return Pv.length=i,dq.length=i,n!==void 0&&p>n?n:p}function mqe(e,t,r){if(!Array.isArray(t)||t.length===0)return;let n=r?.maxDistance,o=e.length;for(let c of t)if(c===e)return c;if(n===0)return;let i,a=Number.POSITIVE_INFINITY,s=new Set;for(let c of t){if(s.has(c))continue;s.add(c);let p=Math.abs(c.length-o);if(p>=a||n!==void 0&&p>n)continue;let d=Number.isFinite(a)?n===void 0?a:Math.min(a,n):n,f=d===void 0?_q(e,c):_q(e,c,{maxDistance:d});if(n!==void 0&&f>n)continue;let m=f;if(d!==void 0&&f===d&&d===n&&(m=_q(e,c)),mn))return i}var mue=(e,t,{descriptor:r,logger:n,schemas:o})=>{let i=[`Ignored unknown option ${Hp.yellow(r.pair({key:e,value:t}))}.`],a=mqe(e,Object.keys(o),{maxDistance:3});a&&i.push(`Did you mean ${Hp.blue(r.key(a))}?`),n.warn(i.join(" "))},hqe=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function yqe(e,t){let r=new e(t),n=Object.create(r);for(let o of hqe)o in t&&(n[o]=gqe(t[o],r,$m.prototype[o].length));return n}var $m=class{static create(e){return yqe(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return c3}};function gqe(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var Sqe=class extends $m{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},vqe=class extends $m{expected(){return"anything"}validate(){return!0}},bqe=class extends $m{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){let{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let o=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);o!==!0&&r.push(o.value)}return r.length===0?!0:{value:r}}deprecated(e,t){let r=[];for(let n of e){let o=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);o!==!1&&r.push(...o.map(({value:i})=>({value:[i]})))}return r}forward(e,t){let r=[];for(let n of e){let o=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...o.map(vle))}return r}redirect(e,t){let r=[],n=[];for(let o of e){let i=t.normalizeRedirectResult(this._valueSchema.redirect(o,t),o);"remain"in i&&r.push(i.remain),n.push(...i.redirect.map(vle))}return r.length===0?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function vle({from:e,to:t}){return{from:[e],to:t}}var xqe=class extends $m{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function Eqe(e,t){let r=Object.create(null);for(let n of e){let o=n[t];if(r[o])throw new Error(`Duplicate ${t} ${JSON.stringify(o)}`);r[o]=n}return r}function Tqe(e,t){let r=new Map;for(let n of e){let o=n[t];if(r.has(o))throw new Error(`Duplicate ${t} ${JSON.stringify(o)}`);r.set(o,n)}return r}function Dqe(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function Aqe(e,t){let r=[],n=[];for(let o of e)t(o)?r.push(o):n.push(o);return[r,n]}function wqe(e){return e===Math.floor(e)}function Iqe(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,o=["undefined","object","boolean","number","string"];return r!==n?o.indexOf(r)-o.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function kqe(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function ble(e){return e===void 0?{}:e}function hue(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return Cqe((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(hue)}}:{text:t}}function xle(e,t){return e===!0?!0:e===!1?{value:t}:e}function Ele(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Tle(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Sq(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>Tle(r,t)):[Tle(e,t)]}function Dle(e,t){let r=Sq(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function Cqe(e,t){if(!e)throw new Error(t)}var Pqe=class extends $m{constructor(e){super(e),this._choices=Tqe(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(o=>this._choices.get(o)).filter(({hidden:o})=>!o).map(o=>o.value).sort(Iqe).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},Oqe=class extends $m{expected(){return"a number"}validate(e,t){return typeof e=="number"}},Nqe=class extends Oqe{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&wqe(e)}},Ale=class extends $m{expected(){return"a string"}validate(e){return typeof e=="string"}},Fqe=Ov,Rqe=mue,Lqe=fqe,$qe=_qe,Mqe=class{constructor(e,t){let{logger:r=console,loggerPrintWidth:n=80,descriptor:o=Fqe,unknown:i=Rqe,invalid:a=Lqe,deprecated:s=$qe,missing:c=()=>!1,required:p=()=>!1,preprocess:d=m=>m,postprocess:f=()=>c3}=t||{};this._utils={descriptor:o,logger:r||{warn:()=>{}},loggerPrintWidth:n,schemas:Eqe(e,"name"),normalizeDefaultResult:ble,normalizeExpectedResult:hue,normalizeDeprecatedResult:Ele,normalizeForwardResult:Sq,normalizeRedirectResult:Dle,normalizeValidateResult:xle},this._unknownHandler=i,this._invalidHandler=kqe(a),this._deprecatedHandler=s,this._identifyMissing=(m,y)=>!(m in y)||c(m,y),this._identifyRequired=p,this._preprocess=d,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Dqe()}normalize(e){let t={},r=[this._preprocess(e,this._utils)],n=()=>{for(;r.length!==0;){let o=r.shift(),i=this._applyNormalization(o,t);r.push(...i)}};n();for(let o of Object.keys(this._utils.schemas)){let i=this._utils.schemas[o];if(!(o in t)){let a=ble(i.default(this._utils));"value"in a&&r.push({[o]:a.value})}}n();for(let o of Object.keys(this._utils.schemas)){if(!(o in t))continue;let i=this._utils.schemas[o],a=t[o],s=i.postprocess(a,this._utils);s!==c3&&(this._applyValidation(s,o,i),t[o]=s)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let r=[],{knownKeys:n,unknownKeys:o}=this._partitionOptionKeys(e);for(let i of n){let a=this._utils.schemas[i],s=a.preprocess(e[i],this._utils);this._applyValidation(s,i,a);let c=({from:f,to:m})=>{r.push(typeof m=="string"?{[m]:f}:{[m.key]:m.value})},p=({value:f,redirectTo:m})=>{let y=Ele(a.deprecated(f,this._utils),s,!0);if(y!==!1)if(y===!0)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,m,this._utils));else for(let{value:g}of y){let S={key:i,value:g};if(!this._hasDeprecationWarned(S)){let x=typeof m=="string"?{key:m,value:g}:m;this._utils.logger.warn(this._deprecatedHandler(S,x,this._utils))}}};Sq(a.forward(s,this._utils),s).forEach(c);let d=Dle(a.redirect(s,this._utils),s);if(d.redirect.forEach(c),"remain"in d){let f=d.remain;t[i]=i in t?a.overlap(t[i],f,this._utils):f,p({value:f})}for(let{from:f,to:m}of d.redirect)p({value:f,redirectTo:m})}for(let i of o){let a=e[i];this._applyUnknownHandler(i,a,t,(s,c)=>{r.push({[s]:c})})}return r}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,due,this._utils)}_partitionOptionKeys(e){let[t,r]=Aqe(Object.keys(e).filter(n=>!this._identifyMissing(n,e)),n=>n in this._utils.schemas);return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){let n=xle(r.validate(e,this._utils),e);if(n!==!0)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,r,n){let o=this._unknownHandler(e,t,this._utils);if(o)for(let i of Object.keys(o)){if(this._identifyMissing(i,o))continue;let a=o[i];i in this._utils.schemas?n(i,a):r[i]=a}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==c3){if(t.delete)for(let r of t.delete)delete e[r];if(t.override){let{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(t.override);for(let o of r){let i=t.override[o];this._applyValidation(i,o,this._utils.schemas[o]),e[o]=i}for(let o of n){let i=t.override[o];this._applyUnknownHandler(o,i,e,(a,s)=>{let c=this._utils.schemas[a];this._applyValidation(s,a,c),e[a]=s})}}}}},fq;function jqe(e,t,{logger:r=!1,isCLI:n=!1,passThrough:o=!1,FlagSchema:i,descriptor:a}={}){if(n){if(!i)throw new Error("'FlagSchema' option is required.");if(!a)throw new Error("'descriptor' option is required.")}else a=Ov;let s=o?Array.isArray(o)?(m,y)=>o.includes(m)?{[m]:y}:void 0:(m,y)=>({[m]:y}):(m,y,g)=>{let{_:S,...x}=g.schemas;return mue(m,y,{...g,schemas:x})},c=Bqe(t,{isCLI:n,FlagSchema:i}),p=new Mqe(c,{logger:r,unknown:s,descriptor:a}),d=r!==!1;d&&fq&&(p._hasDeprecationWarned=fq);let f=p.normalize(e);return d&&(fq=p._hasDeprecationWarned),f}function Bqe(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(vqe.create({name:"_"}));for(let o of e)n.push(qqe(o,{isCLI:t,optionInfos:e,FlagSchema:r})),o.alias&&t&&n.push(Sqe.create({name:o.alias,sourceName:o.name}));return n}function qqe(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:o}=e,i={name:o},a,s={};switch(e.type){case"int":a=Nqe,t&&(i.preprocess=Number);break;case"string":a=Ale;break;case"choice":a=Pqe,i.choices=e.choices.map(c=>c?.redirect?{...c,redirect:{to:{key:e.name,value:c.redirect}}}:c);break;case"boolean":a=xqe;break;case"flag":a=n,i.flags=r.flatMap(c=>[c.alias,c.description&&c.name,c.oppositeDescription&&`no-${c.name}`].filter(Boolean));break;case"path":a=Ale;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?i.validate=(c,p,d)=>e.exception(c)||p.validate(c,d):i.validate=(c,p,d)=>c===void 0||p.validate(c,d),e.redirect&&(s.redirect=c=>c?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let c=i.preprocess||(p=>p);i.preprocess=(p,d,f)=>d.preprocess(c(Array.isArray(p)?Xi(0,p,-1):p),f)}return e.array?bqe.create({...t?{preprocess:c=>Array.isArray(c)?c:[c]}:{},...s,valueSchema:a.create(i)}):a.create({...i,...s})}var Uqe=jqe,zqe=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},Vqe=QT("findLast",function(){if(Array.isArray(this))return zqe}),yue=Vqe,Jqe=Symbol.for("PRETTIER_IS_FRONT_MATTER"),Kqe=[];function Gqe(e){return!!e?.[Jqe]}var Fq=Gqe,gue=new Set(["yaml","toml"]),Sue=({node:e})=>Fq(e)&&gue.has(e.language);async function Hqe(e,t,r,n){let{node:o}=r,{language:i}=o;if(!gue.has(i))return;let a=o.value.trim(),s;if(a){let c=i==="yaml"?i:uue(n,{language:i});if(!c)return;s=a?await e(a,{parser:c}):""}else s=a;return zle([o.startDelimiter,o.explicitLanguage??"",C_,s,s?C_:"",o.endDelimiter])}function Zqe(e,t){return Sue({node:e})&&(delete t.end,delete t.raw,delete t.value),t}var Wqe=Zqe;function Qqe({node:e}){return e.raw}var Xqe=Qqe,vue=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Yqe=e=>Object.keys(e).filter(t=>!vue.has(t));function eUe(e,t){let r=e?n=>e(n,vue):Yqe;return t?new Proxy(r,{apply:(n,o,i)=>Fq(i[0])?Kqe:Reflect.apply(n,o,i)}):r}var wle=eUe;function bue(e,t){if(!t)throw new Error("parserName is required.");let r=yue(0,e,o=>o.parsers&&Object.prototype.hasOwnProperty.call(o.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new sue(n)}function tUe(e,t){if(!t)throw new Error("astFormat is required.");let r=yue(0,e,o=>o.printers&&Object.prototype.hasOwnProperty.call(o.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new sue(n)}function Rq({plugins:e,parser:t}){let r=bue(e,t);return xue(r,t)}function xue(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}async function rUe(e,t){let r=e.printers[t],n=typeof r=="function"?await r():r;return nUe(n)}var mq=new WeakMap;function nUe(e){if(mq.has(e))return mq.get(e);let{features:t,getVisitorKeys:r,embed:n,massageAstNode:o,print:i,...a}=e;t=sUe(t);let s=t.experimental_frontMatterSupport;r=wle(r,s.massageAstNode||s.embed||s.print);let c=o;o&&s.massageAstNode&&(c=new Proxy(o,{apply(m,y,g){return Wqe(...g),Reflect.apply(m,y,g)}}));let p=n;if(n){let m;p=new Proxy(n,{get(y,g,S){return g==="getVisitorKeys"?(m??(m=n.getVisitorKeys?wle(n.getVisitorKeys,s.massageAstNode||s.embed):r),m):Reflect.get(y,g,S)},apply:(y,g,S)=>s.embed&&Sue(...S)?Hqe:Reflect.apply(y,g,S)})}let d=i;s.print&&(d=new Proxy(i,{apply(m,y,g){let[S]=g;return Fq(S.node)?Xqe(S):Reflect.apply(m,y,g)}}));let f={features:t,getVisitorKeys:r,embed:p,massageAstNode:c,print:d,...a};return mq.set(e,f),f}var oUe=["clean","embed","print"],iUe=Object.fromEntries(oUe.map(e=>[e,!1]));function aUe(e){return{...iUe,...e}}function sUe(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:aUe(e?.experimental_frontMatterSupport)}}var Ile={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function cUe(e,t={}){let r={...e};if(!r.parser)if(r.filepath){if(r.parser=uue(r,{physicalFile:r.filepath}),!r.parser)throw new mle(`No parser could be inferred for file "${r.filepath}".`)}else throw new mle("No parser and no file path given, couldn't infer a parser.");let n=cue({plugins:e.plugins,showDeprecated:!0}).options,o={...Ile,...Object.fromEntries(n.filter(f=>f.default!==void 0).map(f=>[f.name,f.default]))},i=bue(r.plugins,r.parser),a=await xue(i,r.parser);r.astFormat=a.astFormat,r.locEnd=a.locEnd,r.locStart=a.locStart;let s=i.printers?.[a.astFormat]?i:tUe(r.plugins,a.astFormat),c=await rUe(s,a.astFormat);r.printer=c,r.getVisitorKeys=c.getVisitorKeys;let p=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,f])=>f!==void 0)):{},d={...o,...p};for(let[f,m]of Object.entries(d))(r[f]===null||r[f]===void 0)&&(r[f]=m);return r.parser==="json"&&(r.trailingComma="none"),Uqe(r,n,{passThrough:Object.keys(Ile),...t})}var Rv=cUe,qMt=Eje(Tje(),1),Lq="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\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\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",Eue="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",UMt=new RegExp("["+Lq+"]"),zMt=new RegExp("["+Lq+Eue+"]");Lq=Eue=null;var $q={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},VMt=new Set($q.keyword),JMt=new Set($q.strict),KMt=new Set($q.strictBind),a3=(e,t)=>r=>e(t(r));function Tue(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:a3(a3(e.white,e.bgRed),e.bold),gutter:e.gray,marker:a3(e.red,e.bold),message:a3(e.red,e.bold),reset:e.reset}}var GMt=Tue(pue(!0)),HMt=Tue(pue(!1));function lUe(){return new Proxy({},{get:()=>e=>e})}var kle=/\r\n|[\n\r\u2028\u2029]/;function uUe(e,t,r){let n=Object.assign({column:0,line:-1},e.start),o=Object.assign({},n,e.end),{linesAbove:i=2,linesBelow:a=3}=r||{},s=n.line,c=n.column,p=o.line,d=o.column,f=Math.max(s-(i+1),0),m=Math.min(t.length,p+a);s===-1&&(f=0),p===-1&&(m=t.length);let y=p-s,g={};if(y)for(let S=0;S<=y;S++){let x=S+s;if(!c)g[x]=!0;else if(S===0){let A=t[x-1].length;g[x]=[c,A-c+1]}else if(S===y)g[x]=[0,d];else{let A=t[x-S].length;g[x]=[0,A]}}else c===d?c?g[s]=[c,0]:g[s]=!0:g[s]=[c,d-c];return{start:f,end:m,markerLines:g}}function pUe(e,t,r={}){let n=lUe(!1),o=e.split(kle),{start:i,end:a,markerLines:s}=uUe(t,o,r),c=t.start&&typeof t.start.column=="number",p=String(a).length,d=e.split(kle,a).slice(i,a).map((f,m)=>{let y=i+1+m,g=` ${` ${y}`.slice(-p)} |`,S=s[y],x=!s[y+1];if(S){let A="";if(Array.isArray(S)){let I=f.slice(0,Math.max(S[0]-1,0)).replace(/[^\t]/g," "),E=S[1]||1;A=[` - `,n.gutter(g.replace(/\d/g," "))," ",I,n.marker("^").repeat(E)].join(""),x&&r.message&&(A+=" "+n.message(r.message))}return[n.marker(">"),n.gutter(g),f.length>0?` ${f}`:"",A].join("")}else return` ${n.gutter(g)}${f.length>0?` ${f}`:""}`}).join(` +The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function uue({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(o=>o.languages??[]),n=[];for(let o of tqe(Object.assign({},...e.map(({options:i})=>i),YBe)))!t&&o.deprecated||(Array.isArray(o.choices)&&(t||(o.choices=o.choices.filter(i=>!i.deprecated)),o.name==="parser"&&(o.choices=[...o.choices,...eqe(o.choices,r,e)])),o.pluginDefaults=Object.fromEntries(e.filter(i=>i.defaultOptions?.[o.name]!==void 0).map(i=>[i.name,i.defaultOptions[o.name]])),n.push(o));return{languages:r,options:n}}function*eqe(e,t,r){let n=new Set(e.map(o=>o.value));for(let o of t)if(o.parsers){for(let i of o.parsers)if(!n.has(i)){n.add(i);let a=r.find(c=>c.parsers&&Object.prototype.hasOwnProperty.call(c.parsers,i)),s=o.name;a?.name&&(s+=` (plugin: ${a.name})`),yield{value:i,description:s}}}}function tqe(e){let t=[];for(let[r,n]of Object.entries(e)){let o={name:r,...n};Array.isArray(o.default)&&(o.default=Xi(0,o.default,-1).value),t.push(o)}return t}var rqe=Array.prototype.toReversed??function(){return[...this].reverse()},nqe=YT("toReversed",function(){if(Array.isArray(this))return rqe}),oqe=nqe;function iqe(){let e=globalThis,t=e.Deno?.build?.os;return typeof t=="string"?t==="windows":e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}var aqe=iqe();function pue(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function sqe(e){return e=pue(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function cqe(e){e=pue(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function lqe(e){return aqe?cqe(e):sqe(e)}var uqe=e=>String(e).split(/[/\\]/u).pop(),pqe=e=>String(e).startsWith("file:");function gle(e,t){if(!t)return;let r=uqe(t).toLowerCase();return e.find(({filenames:n})=>n?.some(o=>o.toLowerCase()===r))??e.find(({extensions:n})=>n?.some(o=>r.endsWith(o)))}function dqe(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}var _qe=void 0;function Sle(e,t){if(t){if(pqe(t))try{t=lqe(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function fqe(e,t){let r=oqe(0,e.plugins).flatMap(n=>n.languages??[]);return(dqe(r,t.language)??gle(r,t.physicalFile)??gle(r,t.file)??Sle(r,t.physicalFile)??Sle(r,t.file)??_qe?.(r,t.physicalFile))?.parsers[0]}var due=fqe,Rv={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>Rv.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${Rv.key(r)}: ${Rv.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>Rv.value({[e]:t})},Rq=new Proxy(String,{get:()=>Rq}),Zp=Rq,_ue=()=>Rq,mqe=(e,t,{descriptor:r})=>{let n=[`${Zp.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${Zp.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."},fue=Symbol.for("vnopts.VALUE_NOT_EXIST"),u3=Symbol.for("vnopts.VALUE_UNCHANGED"),vle=" ".repeat(2),hqe=(e,t,r)=>{let{text:n,list:o}=r.normalizeExpectedResult(r.schemas[e].expected(r)),i=[];return n&&i.push(ble(e,t,n,r.descriptor)),o&&i.push([ble(e,t,o.title,r.descriptor)].concat(o.values.map(a=>mue(a,r.loggerPrintWidth))).join(` +`)),hue(i,r.loggerPrintWidth)};function ble(e,t,r,n){return[`Invalid ${Zp.red(n.key(e))} value.`,`Expected ${Zp.blue(r)},`,`but received ${t===fue?Zp.gray("nothing"):Zp.red(n.value(t))}.`].join(" ")}function mue({text:e,list:t},r){let n=[];return e&&n.push(`- ${Zp.blue(e)}`),t&&n.push([`- ${Zp.blue(t.title)}:`].concat(t.values.map(o=>mue(o,r-vle.length).replace(/^|\n/g,`$&${vle}`))).join(` +`)),hue(n,r)}function hue(e,t){if(e.length===1)return e[0];let[r,n]=e,[o,i]=e.map(a=>a.split(` +`,1)[0].length);return o>t&&o>i?n:r}var Fv=[],fq=[];function mq(e,t,r){if(e===t)return 0;let n=r?.maxDistance,o=e;e.length>t.length&&(e=t,t=o);let i=e.length,a=t.length;for(;i>0&&e.charCodeAt(~-i)===t.charCodeAt(~-a);)i--,a--;let s=0;for(;sn)return n;if(i===0)return n!==void 0&&a>n?n:a;let c,p,d,f,m=0,y=0;for(;mp?f>p?p+1:f:f>d?d+1:f;if(n!==void 0){let g=p;for(m=0;mn)return n}}return Fv.length=i,fq.length=i,n!==void 0&&p>n?n:p}function yqe(e,t,r){if(!Array.isArray(t)||t.length===0)return;let n=r?.maxDistance,o=e.length;for(let c of t)if(c===e)return c;if(n===0)return;let i,a=Number.POSITIVE_INFINITY,s=new Set;for(let c of t){if(s.has(c))continue;s.add(c);let p=Math.abs(c.length-o);if(p>=a||n!==void 0&&p>n)continue;let d=Number.isFinite(a)?n===void 0?a:Math.min(a,n):n,f=d===void 0?mq(e,c):mq(e,c,{maxDistance:d});if(n!==void 0&&f>n)continue;let m=f;if(d!==void 0&&f===d&&d===n&&(m=mq(e,c)),mn))return i}var yue=(e,t,{descriptor:r,logger:n,schemas:o})=>{let i=[`Ignored unknown option ${Zp.yellow(r.pair({key:e,value:t}))}.`],a=yqe(e,Object.keys(o),{maxDistance:3});a&&i.push(`Did you mean ${Zp.blue(r.key(a))}?`),n.warn(i.join(" "))},gqe=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Sqe(e,t){let r=new e(t),n=Object.create(r);for(let o of gqe)o in t&&(n[o]=vqe(t[o],r,Bm.prototype[o].length));return n}var Bm=class{static create(e){return Sqe(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return u3}};function vqe(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var bqe=class extends Bm{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},xqe=class extends Bm{expected(){return"anything"}validate(){return!0}},Eqe=class extends Bm{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){let{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let o=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);o!==!0&&r.push(o.value)}return r.length===0?!0:{value:r}}deprecated(e,t){let r=[];for(let n of e){let o=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);o!==!1&&r.push(...o.map(({value:i})=>({value:[i]})))}return r}forward(e,t){let r=[];for(let n of e){let o=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...o.map(xle))}return r}redirect(e,t){let r=[],n=[];for(let o of e){let i=t.normalizeRedirectResult(this._valueSchema.redirect(o,t),o);"remain"in i&&r.push(i.remain),n.push(...i.redirect.map(xle))}return r.length===0?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function xle({from:e,to:t}){return{from:[e],to:t}}var Tqe=class extends Bm{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function Dqe(e,t){let r=Object.create(null);for(let n of e){let o=n[t];if(r[o])throw new Error(`Duplicate ${t} ${JSON.stringify(o)}`);r[o]=n}return r}function Aqe(e,t){let r=new Map;for(let n of e){let o=n[t];if(r.has(o))throw new Error(`Duplicate ${t} ${JSON.stringify(o)}`);r.set(o,n)}return r}function Iqe(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function wqe(e,t){let r=[],n=[];for(let o of e)t(o)?r.push(o):n.push(o);return[r,n]}function kqe(e){return e===Math.floor(e)}function Cqe(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,o=["undefined","object","boolean","number","string"];return r!==n?o.indexOf(r)-o.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function Pqe(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function Ele(e){return e===void 0?{}:e}function gue(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return Oqe((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(gue)}}:{text:t}}function Tle(e,t){return e===!0?!0:e===!1?{value:t}:e}function Dle(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Ale(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function bq(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>Ale(r,t)):[Ale(e,t)]}function Ile(e,t){let r=bq(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function Oqe(e,t){if(!e)throw new Error(t)}var Nqe=class extends Bm{constructor(e){super(e),this._choices=Aqe(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(o=>this._choices.get(o)).filter(({hidden:o})=>!o).map(o=>o.value).sort(Cqe).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},Fqe=class extends Bm{expected(){return"a number"}validate(e,t){return typeof e=="number"}},Rqe=class extends Fqe{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&kqe(e)}},wle=class extends Bm{expected(){return"a string"}validate(e){return typeof e=="string"}},Lqe=Rv,$qe=yue,Mqe=hqe,jqe=mqe,Bqe=class{constructor(e,t){let{logger:r=console,loggerPrintWidth:n=80,descriptor:o=Lqe,unknown:i=$qe,invalid:a=Mqe,deprecated:s=jqe,missing:c=()=>!1,required:p=()=>!1,preprocess:d=m=>m,postprocess:f=()=>u3}=t||{};this._utils={descriptor:o,logger:r||{warn:()=>{}},loggerPrintWidth:n,schemas:Dqe(e,"name"),normalizeDefaultResult:Ele,normalizeExpectedResult:gue,normalizeDeprecatedResult:Dle,normalizeForwardResult:bq,normalizeRedirectResult:Ile,normalizeValidateResult:Tle},this._unknownHandler=i,this._invalidHandler=Pqe(a),this._deprecatedHandler=s,this._identifyMissing=(m,y)=>!(m in y)||c(m,y),this._identifyRequired=p,this._preprocess=d,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Iqe()}normalize(e){let t={},r=[this._preprocess(e,this._utils)],n=()=>{for(;r.length!==0;){let o=r.shift(),i=this._applyNormalization(o,t);r.push(...i)}};n();for(let o of Object.keys(this._utils.schemas)){let i=this._utils.schemas[o];if(!(o in t)){let a=Ele(i.default(this._utils));"value"in a&&r.push({[o]:a.value})}}n();for(let o of Object.keys(this._utils.schemas)){if(!(o in t))continue;let i=this._utils.schemas[o],a=t[o],s=i.postprocess(a,this._utils);s!==u3&&(this._applyValidation(s,o,i),t[o]=s)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let r=[],{knownKeys:n,unknownKeys:o}=this._partitionOptionKeys(e);for(let i of n){let a=this._utils.schemas[i],s=a.preprocess(e[i],this._utils);this._applyValidation(s,i,a);let c=({from:f,to:m})=>{r.push(typeof m=="string"?{[m]:f}:{[m.key]:m.value})},p=({value:f,redirectTo:m})=>{let y=Dle(a.deprecated(f,this._utils),s,!0);if(y!==!1)if(y===!0)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,m,this._utils));else for(let{value:g}of y){let S={key:i,value:g};if(!this._hasDeprecationWarned(S)){let b=typeof m=="string"?{key:m,value:g}:m;this._utils.logger.warn(this._deprecatedHandler(S,b,this._utils))}}};bq(a.forward(s,this._utils),s).forEach(c);let d=Ile(a.redirect(s,this._utils),s);if(d.redirect.forEach(c),"remain"in d){let f=d.remain;t[i]=i in t?a.overlap(t[i],f,this._utils):f,p({value:f})}for(let{from:f,to:m}of d.redirect)p({value:f,redirectTo:m})}for(let i of o){let a=e[i];this._applyUnknownHandler(i,a,t,(s,c)=>{r.push({[s]:c})})}return r}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,fue,this._utils)}_partitionOptionKeys(e){let[t,r]=wqe(Object.keys(e).filter(n=>!this._identifyMissing(n,e)),n=>n in this._utils.schemas);return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){let n=Tle(r.validate(e,this._utils),e);if(n!==!0)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,r,n){let o=this._unknownHandler(e,t,this._utils);if(o)for(let i of Object.keys(o)){if(this._identifyMissing(i,o))continue;let a=o[i];i in this._utils.schemas?n(i,a):r[i]=a}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==u3){if(t.delete)for(let r of t.delete)delete e[r];if(t.override){let{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(t.override);for(let o of r){let i=t.override[o];this._applyValidation(i,o,this._utils.schemas[o]),e[o]=i}for(let o of n){let i=t.override[o];this._applyUnknownHandler(o,i,e,(a,s)=>{let c=this._utils.schemas[a];this._applyValidation(s,a,c),e[a]=s})}}}}},hq;function qqe(e,t,{logger:r=!1,isCLI:n=!1,passThrough:o=!1,FlagSchema:i,descriptor:a}={}){if(n){if(!i)throw new Error("'FlagSchema' option is required.");if(!a)throw new Error("'descriptor' option is required.")}else a=Rv;let s=o?Array.isArray(o)?(m,y)=>o.includes(m)?{[m]:y}:void 0:(m,y)=>({[m]:y}):(m,y,g)=>{let{_:S,...b}=g.schemas;return yue(m,y,{...g,schemas:b})},c=Uqe(t,{isCLI:n,FlagSchema:i}),p=new Bqe(c,{logger:r,unknown:s,descriptor:a}),d=r!==!1;d&&hq&&(p._hasDeprecationWarned=hq);let f=p.normalize(e);return d&&(hq=p._hasDeprecationWarned),f}function Uqe(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(xqe.create({name:"_"}));for(let o of e)n.push(zqe(o,{isCLI:t,optionInfos:e,FlagSchema:r})),o.alias&&t&&n.push(bqe.create({name:o.alias,sourceName:o.name}));return n}function zqe(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:o}=e,i={name:o},a,s={};switch(e.type){case"int":a=Rqe,t&&(i.preprocess=Number);break;case"string":a=wle;break;case"choice":a=Nqe,i.choices=e.choices.map(c=>c?.redirect?{...c,redirect:{to:{key:e.name,value:c.redirect}}}:c);break;case"boolean":a=Tqe;break;case"flag":a=n,i.flags=r.flatMap(c=>[c.alias,c.description&&c.name,c.oppositeDescription&&`no-${c.name}`].filter(Boolean));break;case"path":a=wle;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?i.validate=(c,p,d)=>e.exception(c)||p.validate(c,d):i.validate=(c,p,d)=>c===void 0||p.validate(c,d),e.redirect&&(s.redirect=c=>c?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let c=i.preprocess||(p=>p);i.preprocess=(p,d,f)=>d.preprocess(c(Array.isArray(p)?Xi(0,p,-1):p),f)}return e.array?Eqe.create({...t?{preprocess:c=>Array.isArray(c)?c:[c]}:{},...s,valueSchema:a.create(i)}):a.create({...i,...s})}var Jqe=qqe,Vqe=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},Kqe=YT("findLast",function(){if(Array.isArray(this))return Vqe}),Sue=Kqe,Gqe=Symbol.for("PRETTIER_IS_FRONT_MATTER"),Hqe=[];function Zqe(e){return!!e?.[Gqe]}var Lq=Zqe,vue=new Set(["yaml","toml"]),bue=({node:e})=>Lq(e)&&vue.has(e.language);async function Wqe(e,t,r,n){let{node:o}=r,{language:i}=o;if(!vue.has(i))return;let a=o.value.trim(),s;if(a){let c=i==="yaml"?i:due(n,{language:i});if(!c)return;s=a?await e(a,{parser:c}):""}else s=a;return Vle([o.startDelimiter,o.explicitLanguage??"",O_,s,s?O_:"",o.endDelimiter])}function Qqe(e,t){return bue({node:e})&&(delete t.end,delete t.raw,delete t.value),t}var Xqe=Qqe;function Yqe({node:e}){return e.raw}var eUe=Yqe,xue=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),tUe=e=>Object.keys(e).filter(t=>!xue.has(t));function rUe(e,t){let r=e?n=>e(n,xue):tUe;return t?new Proxy(r,{apply:(n,o,i)=>Lq(i[0])?Hqe:Reflect.apply(n,o,i)}):r}var kle=rUe;function Eue(e,t){if(!t)throw new Error("parserName is required.");let r=Sue(0,e,o=>o.parsers&&Object.prototype.hasOwnProperty.call(o.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new lue(n)}function nUe(e,t){if(!t)throw new Error("astFormat is required.");let r=Sue(0,e,o=>o.printers&&Object.prototype.hasOwnProperty.call(o.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new lue(n)}function $q({plugins:e,parser:t}){let r=Eue(e,t);return Tue(r,t)}function Tue(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}async function oUe(e,t){let r=e.printers[t],n=typeof r=="function"?await r():r;return iUe(n)}var yq=new WeakMap;function iUe(e){if(yq.has(e))return yq.get(e);let{features:t,getVisitorKeys:r,embed:n,massageAstNode:o,print:i,...a}=e;t=lUe(t);let s=t.experimental_frontMatterSupport;r=kle(r,s.massageAstNode||s.embed||s.print);let c=o;o&&s.massageAstNode&&(c=new Proxy(o,{apply(m,y,g){return Xqe(...g),Reflect.apply(m,y,g)}}));let p=n;if(n){let m;p=new Proxy(n,{get(y,g,S){return g==="getVisitorKeys"?(m??(m=n.getVisitorKeys?kle(n.getVisitorKeys,s.massageAstNode||s.embed):r),m):Reflect.get(y,g,S)},apply:(y,g,S)=>s.embed&&bue(...S)?Wqe:Reflect.apply(y,g,S)})}let d=i;s.print&&(d=new Proxy(i,{apply(m,y,g){let[S]=g;return Lq(S.node)?eUe(S):Reflect.apply(m,y,g)}}));let f={features:t,getVisitorKeys:r,embed:p,massageAstNode:c,print:d,...a};return yq.set(e,f),f}var aUe=["clean","embed","print"],sUe=Object.fromEntries(aUe.map(e=>[e,!1]));function cUe(e){return{...sUe,...e}}function lUe(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:cUe(e?.experimental_frontMatterSupport)}}var Cle={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function uUe(e,t={}){let r={...e};if(!r.parser)if(r.filepath){if(r.parser=due(r,{physicalFile:r.filepath}),!r.parser)throw new yle(`No parser could be inferred for file "${r.filepath}".`)}else throw new yle("No parser and no file path given, couldn't infer a parser.");let n=uue({plugins:e.plugins,showDeprecated:!0}).options,o={...Cle,...Object.fromEntries(n.filter(f=>f.default!==void 0).map(f=>[f.name,f.default]))},i=Eue(r.plugins,r.parser),a=await Tue(i,r.parser);r.astFormat=a.astFormat,r.locEnd=a.locEnd,r.locStart=a.locStart;let s=i.printers?.[a.astFormat]?i:nUe(r.plugins,a.astFormat),c=await oUe(s,a.astFormat);r.printer=c,r.getVisitorKeys=c.getVisitorKeys;let p=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,f])=>f!==void 0)):{},d={...o,...p};for(let[f,m]of Object.entries(d))(r[f]===null||r[f]===void 0)&&(r[f]=m);return r.parser==="json"&&(r.trailingComma="none"),Jqe(r,n,{passThrough:Object.keys(Cle),...t})}var Mv=uUe,VMt=Dje(Aje(),1),Mq="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\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\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",Due="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",KMt=new RegExp("["+Mq+"]"),GMt=new RegExp("["+Mq+Due+"]");Mq=Due=null;var jq={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},HMt=new Set(jq.keyword),ZMt=new Set(jq.strict),WMt=new Set(jq.strictBind),c3=(e,t)=>r=>e(t(r));function Aue(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:c3(c3(e.white,e.bgRed),e.bold),gutter:e.gray,marker:c3(e.red,e.bold),message:c3(e.red,e.bold),reset:e.reset}}var QMt=Aue(_ue(!0)),XMt=Aue(_ue(!1));function pUe(){return new Proxy({},{get:()=>e=>e})}var Ple=/\r\n|[\n\r\u2028\u2029]/;function dUe(e,t,r){let n=Object.assign({column:0,line:-1},e.start),o=Object.assign({},n,e.end),{linesAbove:i=2,linesBelow:a=3}=r||{},s=n.line,c=n.column,p=o.line,d=o.column,f=Math.max(s-(i+1),0),m=Math.min(t.length,p+a);s===-1&&(f=0),p===-1&&(m=t.length);let y=p-s,g={};if(y)for(let S=0;S<=y;S++){let b=S+s;if(!c)g[b]=!0;else if(S===0){let E=t[b-1].length;g[b]=[c,E-c+1]}else if(S===y)g[b]=[0,d];else{let E=t[b-S].length;g[b]=[0,E]}}else c===d?c?g[s]=[c,0]:g[s]=!0:g[s]=[c,d-c];return{start:f,end:m,markerLines:g}}function _Ue(e,t,r={}){let n=pUe(!1),o=e.split(Ple),{start:i,end:a,markerLines:s}=dUe(t,o,r),c=t.start&&typeof t.start.column=="number",p=String(a).length,d=e.split(Ple,a).slice(i,a).map((f,m)=>{let y=i+1+m,g=` ${` ${y}`.slice(-p)} |`,S=s[y],b=!s[y+1];if(S){let E="";if(Array.isArray(S)){let I=f.slice(0,Math.max(S[0]-1,0)).replace(/[^\t]/g," "),T=S[1]||1;E=[` + `,n.gutter(g.replace(/\d/g," "))," ",I,n.marker("^").repeat(T)].join(""),b&&r.message&&(E+=" "+n.message(r.message))}return[n.marker(">"),n.gutter(g),f.length>0?` ${f}`:"",E].join("")}else return` ${n.gutter(g)}${f.length>0?` ${f}`:""}`}).join(` `);return r.message&&!c&&(d=`${" ".repeat(p+1)}${r.message} -${d}`),d}async function dUe(e,t){let r=await Rq(t),n=r.preprocess?await r.preprocess(e,t):e;t.originalText=n;let o;try{o=await r.parse(n,t,t)}catch(i){_Ue(i,e)}return{text:n,ast:o}}function _Ue(e,t){let{loc:r}=e;if(r){let n=pUe(t,r,{highlightCode:!0});throw e.message+=` -`+n,e.codeFrame=n,e}throw e}var YT=dUe;async function fUe(e,t,r,n,o){if(r.embeddedLanguageFormatting!=="auto")return;let{printer:i}=r,{embed:a}=i;if(!a)return;if(a.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:s}=i,{getVisitorKeys:c}=a,p=[];m();let d=e.stack;for(let{print:y,node:g,pathStack:S}of p)try{e.stack=S;let x=await y(f,t,e,r);x&&o.set(g,x)}catch(x){if(globalThis.PRETTIER_DEBUG)throw x}e.stack=d;function f(y,g){return mUe(y,g,r,n)}function m(){let{node:y}=e;if(y===null||typeof y!="object"||s?.(e))return;for(let S of c(y))Array.isArray(y[S])?e.each(m,S):e.call(m,S);let g=a(e,r);if(g){if(typeof g=="function"){p.push({print:g,node:y,pathStack:[...e.stack]});return}o.set(y,g)}}}async function mUe(e,t,r,n){let o=await Rv({...r,...t,parentParser:r.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:i}=await YT(e,o),a=await n(i,o);return qle(a)}function hUe(e,t,r,n){let{originalText:o,[Symbol.for("comments")]:i,locStart:a,locEnd:s,[Symbol.for("printedComments")]:c}=t,{node:p}=e,d=a(p),f=s(p);for(let y of i)a(y)>=d&&s(y)<=f&&c.add(y);let{printPrettierIgnored:m}=t.printer;return m?m(e,t,r,n):o.slice(d,f)}var yUe=hUe;async function h3(e,t){({ast:e}=await Due(e,t));let r=new Map,n=new PBe(e),o=WBe(t),i=new Map;await fUe(n,s,t,h3,i);let a=await Cle(n,t,s,void 0,i);if(ZBe(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[ug,a];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[a,ug]}return a;function s(p,d){return p===void 0||p===n?c(d):Array.isArray(p)?n.call(()=>c(d),...p):n.call(()=>c(d),p)}function c(p){o(n);let d=n.node;if(d==null)return"";let f=Cq(d)&&p===void 0;if(f&&r.has(d))return r.get(d);let m=Cle(n,t,s,p,i);return f&&r.set(d,m),m}}function Cle(e,t,r,n,o){let{node:i}=e,{printer:a}=t,s;switch(a.hasPrettierIgnore?.(e)?s=yUe(e,t,r,n):o.has(i)?s=o.get(i):s=a.print(e,t,r,n),i){case t.cursorNode:s=s3(s,c=>[ug,c,ug]);break;case t.nodeBeforeCursor:s=s3(s,c=>[c,ug]);break;case t.nodeAfterCursor:s=s3(s,c=>[ug,c]);break}return a.printComment&&!a.willPrintOwnComments?.(e,t)&&(s=HBe(e,s,t)),s}async function Due(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("printedComments")]=new Set,qBe(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function gUe(e,t){let{cursorOffset:r,locStart:n,locEnd:o,getVisitorKeys:i}=t,a=y=>n(y)<=r&&o(y)>=r,s=e,c=[e];for(let y of MBe(e,{getVisitorKeys:i,filter:a}))c.push(y),s=y;if(jBe(s,{getVisitorKeys:i}))return{cursorNode:s};let p,d,f=-1,m=Number.POSITIVE_INFINITY;for(;c.length>0&&(p===void 0||d===void 0);){s=c.pop();let y=p!==void 0,g=d!==void 0;for(let S of m3(s,{getVisitorKeys:i})){if(!y){let x=o(S);x<=r&&x>f&&(p=S,f=x)}if(!g){let x=n(S);x>=r&&xa(m,c)).filter(Boolean);let p={},d=new Set(o(s));for(let m in s)!Object.prototype.hasOwnProperty.call(s,m)||i?.has(m)||(d.has(m)?p[m]=a(s[m],s):p[m]=s[m]);let f=n(s,p,c);if(f!==null)return f??p}}var vUe=SUe,bUe=Array.prototype.findLastIndex??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return t}return-1},xUe=QT("findLastIndex",function(){if(Array.isArray(this))return bUe}),EUe=xUe,TUe=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function DUe(e,t){return t=new Set(t),e.find(r=>wue.has(r.type)&&t.has(r))}function Ple(e){let t=EUe(0,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function AUe(e,t,{locStart:r,locEnd:n}){let[o,...i]=e,[a,...s]=t;if(o===a)return[o,a];let c=r(o);for(let d of Ple(s))if(r(d)>=c)a=d;else break;let p=n(a);for(let d of Ple(i)){if(n(d)<=p)o=d;else break;if(o===a)break}return[o,a]}function vq(e,t,r,n,o=[],i){let{locStart:a,locEnd:s}=r,c=a(e),p=s(e);if(t>p||tn);let s=e.slice(n,o).search(/\S/u),c=s===-1;if(!c)for(n+=s;o>n&&!/\S/u.test(e[o-1]);--o);let p=vq(r,n,t,(y,g)=>Ole(t,y,g),[],"rangeStart");if(!p)return;let d=c?p:vq(r,o,t,y=>Ole(t,y),[],"rangeEnd");if(!d)return;let f,m;if(TUe(t)){let y=DUe(p,d);f=y,m=y}else[f,m]=AUe(p,d,t);return[Math.min(i(f),i(m)),Math.max(a(f),a(m))]}var Iue="\uFEFF",Nle=Symbol("cursor");async function kue(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:o}=await YT(e,t);t.cursorOffset>=0&&(t={...t,...Aue(n,t)});let i=await h3(n,t,r);r>0&&(i=Vle([C_,i],r,t.tabWidth));let a=f3(i,t);if(r>0){let c=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(c),a.cursorNodeStart<0&&(a.cursorNodeStart=0,a.cursorNodeText=a.cursorNodeText.trimStart()),a.cursorNodeStart+a.cursorNodeText.length>c.length&&(a.cursorNodeText=a.cursorNodeText.trimEnd())),a.formatted=c+Tq(t.endOfLine)}let s=t[Symbol.for("comments")];if(t.cursorOffset>=0){let c,p,d,f;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&a.cursorNodeText)if(d=a.cursorNodeStart,f=a.cursorNodeText,t.cursorNode)c=t.locStart(t.cursorNode),p=o.slice(c,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");c=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let A=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):o.length;p=o.slice(c,A)}else c=0,p=o,d=0,f=a.formatted;let m=t.cursorOffset-c;if(p===f)return{formatted:a.formatted,cursorOffset:d+m,comments:s};let y=p.split("");y.splice(m,0,Nle);let g=f.split(""),S=Pje(y,g),x=d;for(let A of S)if(A.removed){if(A.value.includes(Nle))break}else x+=A.count;return{formatted:a.formatted,cursorOffset:x,comments:s}}return{formatted:a.formatted,cursorOffset:-1,comments:s}}async function CUe(e,t){let{ast:r,text:n}=await YT(e,t),[o,i]=kUe(n,t,r)??[0,0],a=n.slice(o,i),s=Math.min(o,n.lastIndexOf(` -`,o)+1),c=n.slice(s,o).match(/^\s*/u)[0],p=kq(c,t.tabWidth),d=await kue(a,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>o&&t.cursorOffset<=i?t.cursorOffset-o:-1,endOfLine:"lf"},p),f=d.formatted.trimEnd(),{cursorOffset:m}=t;m>i?m+=f.length-a.length:d.cursorOffset>=0&&(m=d.cursorOffset+o);let y=n.slice(0,o)+f+n.slice(i);if(t.endOfLine!=="lf"){let g=Tq(t.endOfLine);m>=0&&g===`\r -`&&(m+=jle(y.slice(0,m),` -`)),y=u3(0,y,` -`,g)}return{formatted:y,cursorOffset:m,comments:d.comments}}function hq(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function Fle(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:o}=t;return r=hq(e,r,-1),n=hq(e,n,0),o=hq(e,o,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:o}}function Cue(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:o,endOfLine:i}=Fle(e,t),a=e.charAt(0)===Iue;if(a&&(e=e.slice(1),r--,n--,o--),i==="auto"&&(i=Lje(e)),e.includes("\r")){let s=c=>jle(e.slice(0,Math.max(c,0)),`\r -`);r-=s(r),n-=s(n),o-=s(o),e=jje(e)}return{hasBOM:a,text:e,options:Fle(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:o,endOfLine:i})}}async function Rle(e,t){let r=await Rq(t);return!r.hasPragma||r.hasPragma(e)}async function PUe(e,t){return(await Rq(t)).hasIgnorePragma?.(e)}async function Pue(e,t){let{hasBOM:r,text:n,options:o}=Cue(e,await Rv(t));if(o.rangeStart>=o.rangeEnd&&n!==""||o.requirePragma&&!await Rle(n,o)||o.checkIgnorePragma&&await PUe(n,o))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let i;return o.rangeStart>0||o.rangeEnd=0&&i.cursorOffset++),i}async function OUe(e,t,r){let{text:n,options:o}=Cue(e,await Rv(t)),i=await YT(n,o);return r&&(r.preprocessForPrint&&(i.ast=await Due(i.ast,o)),r.massage&&(i.ast=vUe(i.ast,o))),i}async function NUe(e,t){t=await Rv(t);let r=await h3(e,t);return f3(r,t)}async function FUe(e,t){let r=hBe(e),{formatted:n}=await Pue(r,{...t,parser:"__js_expression"});return n}async function RUe(e,t){t=await Rv(t);let{ast:r}=await YT(e,t);return t.cursorOffset>=0&&(t={...t,...Aue(r,t)}),h3(r,t)}async function LUe(e,t){return f3(e,await Rv(t))}var Oue={};xq(Oue,{builders:()=>$Ue,printer:()=>MUe,utils:()=>jUe});var $Ue={join:Kle,line:Gle,softline:_Be,hardline:C_,literalline:Zle,group:Jle,conditionalGroup:lBe,fill:cBe,lineSuffix:yq,lineSuffixBoundary:fBe,cursor:ug,breakParent:_3,ifBreak:uBe,trim:mBe,indent:l3,indentIfBreak:pBe,align:Fv,addAlignmentToDoc:Vle,markAsRoot:zle,dedentToRoot:aBe,dedent:sBe,hardlineWithoutBreakParent:wq,literallineWithoutBreakParent:Hle,label:dBe,concat:e=>e},MUe={printDocToString:f3},jUe={willBreak:Zje,traverseDoc:Dq,findInDoc:Aq,mapDoc:d3,removeLines:Xje,stripTrailingHardline:qle,replaceEndOfLine:tBe,canBreak:nBe},BUe="3.8.1",Nue={};xq(Nue,{addDanglingComment:()=>cg,addLeadingComment:()=>ZT,addTrailingComment:()=>WT,getAlignmentSize:()=>kq,getIndentSize:()=>KUe,getMaxContinuousCount:()=>ZUe,getNextNonSpaceNonCommentCharacter:()=>QUe,getNextNonSpaceNonCommentCharacterIndex:()=>sze,getPreferredQuote:()=>tze,getStringWidth:()=>Iq,hasNewline:()=>Nm,hasNewlineInRange:()=>nze,hasSpaces:()=>ize,isNextLineEmpty:()=>dze,isNextLineEmptyAfterIndex:()=>qq,isPreviousLineEmpty:()=>lze,makeString:()=>pze,skip:()=>XT,skipEverythingButNewLine:()=>eue,skipInlineComment:()=>Mq,skipNewline:()=>pg,skipSpaces:()=>Rm,skipToLineEnd:()=>Yle,skipTrailingComment:()=>jq,skipWhitespace:()=>NBe});function qUe(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;rMath.max(n,o.length),0)/t.length}var ZUe=HUe;function WUe(e,t){let r=Bq(e,t);return r===!1?"":e.charAt(r)}var QUe=WUe,Fue=Object.freeze({character:"'",codePoint:39}),Rue=Object.freeze({character:'"',codePoint:34}),XUe=Object.freeze({preferred:Fue,alternate:Rue}),YUe=Object.freeze({preferred:Rue,alternate:Fue});function eze(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?XUe:YUe,{length:o}=e,i=0,a=0;for(let s=0;sa?n:r).character}var tze=eze;function rze(e,t,r){for(let n=t;na===n?a:s===t?"\\"+s:s||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return t+o+t}function dze(e,t){return arguments.length===2||typeof t=="number"?qq(e,t):uze(...arguments)}function lg(e,t=1){return async(...r)=>{let n=r[t]??{},o=n.plugins??[];return r[t]={...n,plugins:Array.isArray(o)?o:Object.values(o)},e(...r)}}var Lue=lg(Pue);async function y3(e,t){let{formatted:r}=await Lue(e,{...t,cursorOffset:-1});return r}async function _ze(e,t){return await y3(e,t)===e}var fze=lg(cue,0),mze={parse:lg(OUe),formatAST:lg(NUe),formatDoc:lg(FUe),printToDoc:lg(RUe),printDocToString:lg(LUe)};var hze=Object.defineProperty,nU=(e,t)=>{for(var r in t)hze(e,r,{get:t[r],enumerable:!0})},oU={};nU(oU,{parsers:()=>fKe});var upe={};nU(upe,{__babel_estree:()=>sKe,__js_expression:()=>cpe,__ts_expression:()=>lpe,__vue_event_binding:()=>ape,__vue_expression:()=>cpe,__vue_ts_event_binding:()=>spe,__vue_ts_expression:()=>lpe,babel:()=>ape,"babel-flow":()=>Bpe,"babel-ts":()=>spe});function yze(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var qm=class{line;column;index;constructor(e,t,r){this.line=e,this.column=t,this.index=r}},w3=class{start;end;filename;identifierName;constructor(e,t){this.start=e,this.end=t}};function Fl(e,t){let{line:r,column:n,index:o}=e;return new qm(r,n+t,o+t)}var $ue="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",gze={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:$ue},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:$ue}},Mue={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"},x3=e=>e.type==="UpdateExpression"?Mue.UpdateExpression[`${e.prefix}`]:Mue[e.type],Sze={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\`. +${d}`),d}async function fUe(e,t){let r=await $q(t),n=r.preprocess?await r.preprocess(e,t):e;t.originalText=n;let o;try{o=await r.parse(n,t,t)}catch(i){mUe(i,e)}return{text:n,ast:o}}function mUe(e,t){let{loc:r}=e;if(r){let n=_Ue(t,r,{highlightCode:!0});throw e.message+=` +`+n,e.codeFrame=n,e}throw e}var tD=fUe;async function hUe(e,t,r,n,o){if(r.embeddedLanguageFormatting!=="auto")return;let{printer:i}=r,{embed:a}=i;if(!a)return;if(a.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:s}=i,{getVisitorKeys:c}=a,p=[];m();let d=e.stack;for(let{print:y,node:g,pathStack:S}of p)try{e.stack=S;let b=await y(f,t,e,r);b&&o.set(g,b)}catch(b){if(globalThis.PRETTIER_DEBUG)throw b}e.stack=d;function f(y,g){return yUe(y,g,r,n)}function m(){let{node:y}=e;if(y===null||typeof y!="object"||s?.(e))return;for(let S of c(y))Array.isArray(y[S])?e.each(m,S):e.call(m,S);let g=a(e,r);if(g){if(typeof g=="function"){p.push({print:g,node:y,pathStack:[...e.stack]});return}o.set(y,g)}}}async function yUe(e,t,r,n){let o=await Mv({...r,...t,parentParser:r.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:i}=await tD(e,o),a=await n(i,o);return zle(a)}function gUe(e,t,r,n){let{originalText:o,[Symbol.for("comments")]:i,locStart:a,locEnd:s,[Symbol.for("printedComments")]:c}=t,{node:p}=e,d=a(p),f=s(p);for(let y of i)a(y)>=d&&s(y)<=f&&c.add(y);let{printPrettierIgnored:m}=t.printer;return m?m(e,t,r,n):o.slice(d,f)}var SUe=gUe;async function g3(e,t){({ast:e}=await Iue(e,t));let r=new Map,n=new NBe(e),o=XBe(t),i=new Map;await hUe(n,s,t,g3,i);let a=await Ole(n,t,s,void 0,i);if(QBe(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[fg,a];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[a,fg]}return a;function s(p,d){return p===void 0||p===n?c(d):Array.isArray(p)?n.call(()=>c(d),...p):n.call(()=>c(d),p)}function c(p){o(n);let d=n.node;if(d==null)return"";let f=Oq(d)&&p===void 0;if(f&&r.has(d))return r.get(d);let m=Ole(n,t,s,p,i);return f&&r.set(d,m),m}}function Ole(e,t,r,n,o){let{node:i}=e,{printer:a}=t,s;switch(a.hasPrettierIgnore?.(e)?s=SUe(e,t,r,n):o.has(i)?s=o.get(i):s=a.print(e,t,r,n),i){case t.cursorNode:s=l3(s,c=>[fg,c,fg]);break;case t.nodeBeforeCursor:s=l3(s,c=>[c,fg]);break;case t.nodeAfterCursor:s=l3(s,c=>[fg,c]);break}return a.printComment&&!a.willPrintOwnComments?.(e,t)&&(s=WBe(e,s,t)),s}async function Iue(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("printedComments")]=new Set,zBe(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function vUe(e,t){let{cursorOffset:r,locStart:n,locEnd:o,getVisitorKeys:i}=t,a=y=>n(y)<=r&&o(y)>=r,s=e,c=[e];for(let y of BBe(e,{getVisitorKeys:i,filter:a}))c.push(y),s=y;if(qBe(s,{getVisitorKeys:i}))return{cursorNode:s};let p,d,f=-1,m=Number.POSITIVE_INFINITY;for(;c.length>0&&(p===void 0||d===void 0);){s=c.pop();let y=p!==void 0,g=d!==void 0;for(let S of y3(s,{getVisitorKeys:i})){if(!y){let b=o(S);b<=r&&b>f&&(p=S,f=b)}if(!g){let b=n(S);b>=r&&ba(m,c)).filter(Boolean);let p={},d=new Set(o(s));for(let m in s)!Object.prototype.hasOwnProperty.call(s,m)||i?.has(m)||(d.has(m)?p[m]=a(s[m],s):p[m]=s[m]);let f=n(s,p,c);if(f!==null)return f??p}}var xUe=bUe,EUe=Array.prototype.findLastIndex??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return t}return-1},TUe=YT("findLastIndex",function(){if(Array.isArray(this))return EUe}),DUe=TUe,AUe=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function IUe(e,t){return t=new Set(t),e.find(r=>kue.has(r.type)&&t.has(r))}function Nle(e){let t=DUe(0,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function wUe(e,t,{locStart:r,locEnd:n}){let[o,...i]=e,[a,...s]=t;if(o===a)return[o,a];let c=r(o);for(let d of Nle(s))if(r(d)>=c)a=d;else break;let p=n(a);for(let d of Nle(i)){if(n(d)<=p)o=d;else break;if(o===a)break}return[o,a]}function xq(e,t,r,n,o=[],i){let{locStart:a,locEnd:s}=r,c=a(e),p=s(e);if(t>p||tn);let s=e.slice(n,o).search(/\S/u),c=s===-1;if(!c)for(n+=s;o>n&&!/\S/u.test(e[o-1]);--o);let p=xq(r,n,t,(y,g)=>Fle(t,y,g),[],"rangeStart");if(!p)return;let d=c?p:xq(r,o,t,y=>Fle(t,y),[],"rangeEnd");if(!d)return;let f,m;if(AUe(t)){let y=IUe(p,d);f=y,m=y}else[f,m]=wUe(p,d,t);return[Math.min(i(f),i(m)),Math.max(a(f),a(m))]}var Cue="\uFEFF",Rle=Symbol("cursor");async function Pue(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:o}=await tD(e,t);t.cursorOffset>=0&&(t={...t,...wue(n,t)});let i=await g3(n,t,r);r>0&&(i=Kle([O_,i],r,t.tabWidth));let a=h3(i,t);if(r>0){let c=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(c),a.cursorNodeStart<0&&(a.cursorNodeStart=0,a.cursorNodeText=a.cursorNodeText.trimStart()),a.cursorNodeStart+a.cursorNodeText.length>c.length&&(a.cursorNodeText=a.cursorNodeText.trimEnd())),a.formatted=c+Aq(t.endOfLine)}let s=t[Symbol.for("comments")];if(t.cursorOffset>=0){let c,p,d,f;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&a.cursorNodeText)if(d=a.cursorNodeStart,f=a.cursorNodeText,t.cursorNode)c=t.locStart(t.cursorNode),p=o.slice(c,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");c=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let E=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):o.length;p=o.slice(c,E)}else c=0,p=o,d=0,f=a.formatted;let m=t.cursorOffset-c;if(p===f)return{formatted:a.formatted,cursorOffset:d+m,comments:s};let y=p.split("");y.splice(m,0,Rle);let g=f.split(""),S=Nje(y,g),b=d;for(let E of S)if(E.removed){if(E.value.includes(Rle))break}else b+=E.count;return{formatted:a.formatted,cursorOffset:b,comments:s}}return{formatted:a.formatted,cursorOffset:-1,comments:s}}async function OUe(e,t){let{ast:r,text:n}=await tD(e,t),[o,i]=PUe(n,t,r)??[0,0],a=n.slice(o,i),s=Math.min(o,n.lastIndexOf(` +`,o)+1),c=n.slice(s,o).match(/^\s*/u)[0],p=Pq(c,t.tabWidth),d=await Pue(a,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>o&&t.cursorOffset<=i?t.cursorOffset-o:-1,endOfLine:"lf"},p),f=d.formatted.trimEnd(),{cursorOffset:m}=t;m>i?m+=f.length-a.length:d.cursorOffset>=0&&(m=d.cursorOffset+o);let y=n.slice(0,o)+f+n.slice(i);if(t.endOfLine!=="lf"){let g=Aq(t.endOfLine);m>=0&&g===`\r +`&&(m+=qle(y.slice(0,m),` +`)),y=d3(0,y,` +`,g)}return{formatted:y,cursorOffset:m,comments:d.comments}}function gq(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function Lle(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:o}=t;return r=gq(e,r,-1),n=gq(e,n,0),o=gq(e,o,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:o}}function Oue(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:o,endOfLine:i}=Lle(e,t),a=e.charAt(0)===Cue;if(a&&(e=e.slice(1),r--,n--,o--),i==="auto"&&(i=Mje(e)),e.includes("\r")){let s=c=>qle(e.slice(0,Math.max(c,0)),`\r +`);r-=s(r),n-=s(n),o-=s(o),e=qje(e)}return{hasBOM:a,text:e,options:Lle(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:o,endOfLine:i})}}async function $le(e,t){let r=await $q(t);return!r.hasPragma||r.hasPragma(e)}async function NUe(e,t){return(await $q(t)).hasIgnorePragma?.(e)}async function Nue(e,t){let{hasBOM:r,text:n,options:o}=Oue(e,await Mv(t));if(o.rangeStart>=o.rangeEnd&&n!==""||o.requirePragma&&!await $le(n,o)||o.checkIgnorePragma&&await NUe(n,o))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let i;return o.rangeStart>0||o.rangeEnd=0&&i.cursorOffset++),i}async function FUe(e,t,r){let{text:n,options:o}=Oue(e,await Mv(t)),i=await tD(n,o);return r&&(r.preprocessForPrint&&(i.ast=await Iue(i.ast,o)),r.massage&&(i.ast=xUe(i.ast,o))),i}async function RUe(e,t){t=await Mv(t);let r=await g3(e,t);return h3(r,t)}async function LUe(e,t){let r=gBe(e),{formatted:n}=await Nue(r,{...t,parser:"__js_expression"});return n}async function $Ue(e,t){t=await Mv(t);let{ast:r}=await tD(e,t);return t.cursorOffset>=0&&(t={...t,...wue(r,t)}),g3(r,t)}async function MUe(e,t){return h3(e,await Mv(t))}var Fue={};Tq(Fue,{builders:()=>jUe,printer:()=>BUe,utils:()=>qUe});var jUe={join:Hle,line:Zle,softline:mBe,hardline:O_,literalline:Qle,group:Gle,conditionalGroup:pBe,fill:uBe,lineSuffix:Sq,lineSuffixBoundary:hBe,cursor:fg,breakParent:m3,ifBreak:dBe,trim:yBe,indent:p3,indentIfBreak:_Be,align:$v,addAlignmentToDoc:Kle,markAsRoot:Vle,dedentToRoot:cBe,dedent:lBe,hardlineWithoutBreakParent:kq,literallineWithoutBreakParent:Wle,label:fBe,concat:e=>e},BUe={printDocToString:h3},qUe={willBreak:Qje,traverseDoc:Iq,findInDoc:wq,mapDoc:f3,removeLines:eBe,stripTrailingHardline:zle,replaceEndOfLine:nBe,canBreak:iBe},UUe="3.8.1",Rue={};Tq(Rue,{addDanglingComment:()=>dg,addLeadingComment:()=>QT,addTrailingComment:()=>XT,getAlignmentSize:()=>Pq,getIndentSize:()=>HUe,getMaxContinuousCount:()=>QUe,getNextNonSpaceNonCommentCharacter:()=>YUe,getNextNonSpaceNonCommentCharacterIndex:()=>lze,getPreferredQuote:()=>nze,getStringWidth:()=>Cq,hasNewline:()=>Lm,hasNewlineInRange:()=>ize,hasSpaces:()=>sze,isNextLineEmpty:()=>fze,isNextLineEmptyAfterIndex:()=>zq,isPreviousLineEmpty:()=>pze,makeString:()=>_ze,skip:()=>eD,skipEverythingButNewLine:()=>rue,skipInlineComment:()=>Bq,skipNewline:()=>mg,skipSpaces:()=>Mm,skipToLineEnd:()=>tue,skipTrailingComment:()=>qq,skipWhitespace:()=>RBe});function zUe(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;rMath.max(n,o.length),0)/t.length}var QUe=WUe;function XUe(e,t){let r=Uq(e,t);return r===!1?"":e.charAt(r)}var YUe=XUe,Lue=Object.freeze({character:"'",codePoint:39}),$ue=Object.freeze({character:'"',codePoint:34}),eze=Object.freeze({preferred:Lue,alternate:$ue}),tze=Object.freeze({preferred:$ue,alternate:Lue});function rze(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?eze:tze,{length:o}=e,i=0,a=0;for(let s=0;sa?n:r).character}var nze=rze;function oze(e,t,r){for(let n=t;na===n?a:s===t?"\\"+s:s||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return t+o+t}function fze(e,t){return arguments.length===2||typeof t=="number"?zq(e,t):dze(...arguments)}function _g(e,t=1){return async(...r)=>{let n=r[t]??{},o=n.plugins??[];return r[t]={...n,plugins:Array.isArray(o)?o:Object.values(o)},e(...r)}}var Mue=_g(Nue);async function S3(e,t){let{formatted:r}=await Mue(e,{...t,cursorOffset:-1});return r}async function mze(e,t){return await S3(e,t)===e}var hze=_g(uue,0),yze={parse:_g(FUe),formatAST:_g(RUe),formatDoc:_g(LUe),printToDoc:_g($Ue),printDocToString:_g(MUe)};var gze=Object.defineProperty,iU=(e,t)=>{for(var r in t)gze(e,r,{get:t[r],enumerable:!0})},aU={};iU(aU,{parsers:()=>hKe});var dpe={};iU(dpe,{__babel_estree:()=>lKe,__js_expression:()=>upe,__ts_expression:()=>ppe,__vue_event_binding:()=>cpe,__vue_expression:()=>upe,__vue_ts_event_binding:()=>lpe,__vue_ts_expression:()=>ppe,babel:()=>cpe,"babel-flow":()=>Upe,"babel-ts":()=>lpe});function Sze(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Jm=class{line;column;index;constructor(e,t,r){this.line=e,this.column=t,this.index=r}},k3=class{start;end;filename;identifierName;constructor(e,t){this.start=e,this.end=t}};function Rl(e,t){let{line:r,column:n,index:o}=e;return new Jm(r,n+t,o+t)}var jue="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",vze={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:jue},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:jue}},Bue={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"},T3=e=>e.type==="UpdateExpression"?Bue.UpdateExpression[`${e.prefix}`]:Bue[e.type],bze={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\`. - Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"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 ${e==="BreakStatement"?"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. -- 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 ${x3(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${x3(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${x3(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(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).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."},vze={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."},bze={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)}\`.`},xze=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Eze=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 references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',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 ${x3({type:e})}; please wrap it in parentheses.`},{}),Tze=["message"];function jue(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function Dze({toMessage:e,code:t,reasonCode:r,syntaxPlugin:n}){let o=r==="MissingPlugin"||r==="MissingOneOfPlugins";return function i(a,s){let c=new SyntaxError;return c.code=t,c.reasonCode=r,c.loc=a,c.pos=a.index,c.syntaxPlugin=n,o&&(c.missingPlugin=s.missingPlugin),jue(c,"clone",function(p={}){let{line:d,column:f,index:m}=p.loc??a;return i(new qm(d,f,m),Object.assign({},s,p.details))}),jue(c,"details",s),Object.defineProperty(c,"message",{configurable:!0,get(){let p=`${e(s)} (${a.line}:${a.column})`;return this.message=p,p},set(p){Object.defineProperty(this,"message",{value:p,writable:!0})}}),c}}function Xp(e,t){if(Array.isArray(e))return n=>Xp(n,e[0]);let r={};for(let n of Object.keys(e)){let o=e[n],i=typeof o=="string"?{message:()=>o}:typeof o=="function"?{message:o}:o,{message:a}=i,s=yze(i,Tze),c=typeof a=="string"?()=>a:a;r[n]=Dze(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:c},t?{syntaxPlugin:t}:{},s))}return r}var W=Object.assign({},Xp(gze),Xp(Sze),Xp(vze),Xp(bze),Xp`pipelineOperator`(Eze));function Aze(){return{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:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function wze(e){let t=Aze();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))e[r]!=null&&(t[r]=e[r]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if(e.startColumn==null||e.startIndex==null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:Ize}=Object,Bue=(e,t)=>{e&&Ize(e,t,{enumerable:!1,value:e[t]})};function eD(e){return Bue(e.loc.start,"index"),Bue(e.loc.end,"index"),e}var kze=e=>class extends e{parse(){let t=eD(super.parse());return this.optionFlags&256&&(t.tokens=t.tokens.map(eD)),t}parseRegExpLiteral({pattern:t,flags:r}){let n=null;try{n=new RegExp(t,r)}catch{}let o=this.estreeParseLiteral(n);return o.regex={pattern:t,flags:r},o}parseBigIntLiteral(t){let r;try{r=BigInt(t)}catch{r=null}let n=this.estreeParseLiteral(r);return n.bigint=String(n.value||t),n}parseDecimalLiteral(t){let r=this.estreeParseLiteral(null);return r.decimal=String(r.value||t),r}estreeParseLiteral(t){return this.parseLiteral(t,"Literal")}parseStringLiteral(t){return this.estreeParseLiteral(t)}parseNumericLiteral(t){return this.estreeParseLiteral(t)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(t){return this.estreeParseLiteral(t)}estreeParseChainExpression(t,r){let n=this.startNodeAtNode(t);return n.expression=t,this.finishNodeAt(n,"ChainExpression",r)}directiveToStmt(t){let r=t.value;delete t.value,this.castNodeTo(r,"Literal"),r.raw=r.extra.raw,r.value=r.extra.expressionValue;let n=this.castNodeTo(t,"ExpressionStatement");return n.expression=r,n.directive=r.extra.rawValue,delete r.extra,n}fillOptionalPropertiesForTSESLint(t){}cloneEstreeStringLiteral(t){let{start:r,end:n,loc:o,range:i,raw:a,value:s}=t,c=Object.create(t.constructor.prototype);return c.type="Literal",c.start=r,c.end=n,c.loc=o,c.range=i,c.raw=a,c.value=s,c}initFunction(t,r){super.initFunction(t,r),t.expression=!1}checkDeclaration(t){t!=null&&this.isObjectProperty(t)?this.checkDeclaration(t.value):super.checkDeclaration(t)}getObjectOrClassMethodParams(t){return t.value.params}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&!t.expression.extra?.parenthesized}parseBlockBody(t,r,n,o,i){super.parseBlockBody(t,r,n,o,i);let a=t.directives.map(s=>this.directiveToStmt(s));t.body=a.concat(t.body),delete t.directives}parsePrivateName(){let t=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(t)}convertPrivateNameToPrivateIdentifier(t){let r=super.getPrivateNameSV(t);return delete t.id,t.name=r,this.castNodeTo(t,"PrivateIdentifier")}isPrivateName(t){return t.type==="PrivateIdentifier"}getPrivateNameSV(t){return t.name}parseLiteral(t,r){let n=super.parseLiteral(t,r);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(t,r,n=!1){super.parseFunctionBody(t,r,n),t.expression=t.body.type!=="BlockStatement"}parseMethod(t,r,n,o,i,a,s=!1){let c=this.startNode();c.kind=t.kind,c=super.parseMethod(c,r,n,o,i,a,s),delete c.kind;let{typeParameters:p}=t;p&&(delete t.typeParameters,c.typeParameters=p,this.resetStartLocationFromNode(c,p));let d=this.castNodeTo(c,this.hasPlugin("typescript")&&!c.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return t.value=d,a==="ClassPrivateMethod"&&(t.computed=!1),this.hasPlugin("typescript")&&t.abstract?(delete t.abstract,this.finishNode(t,"TSAbstractMethodDefinition")):a==="ObjectMethod"?(t.kind==="method"&&(t.kind="init"),t.shorthand=!1,this.finishNode(t,"Property")):this.finishNode(t,"MethodDefinition")}nameIsConstructor(t){return t.type==="Literal"?t.value==="constructor":super.nameIsConstructor(t)}parseClassProperty(...t){let r=super.parseClassProperty(...t);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractPropertyDefinition")):this.castNodeTo(r,"PropertyDefinition"),r}parseClassPrivateProperty(...t){let r=super.parseClassPrivateProperty(...t);return r.abstract&&this.hasPlugin("typescript")?this.castNodeTo(r,"TSAbstractPropertyDefinition"):this.castNodeTo(r,"PropertyDefinition"),r.computed=!1,r}parseClassAccessorProperty(t){let r=super.parseClassAccessorProperty(t);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractAccessorProperty")):this.castNodeTo(r,"AccessorProperty"),r}parseObjectProperty(t,r,n,o){let i=super.parseObjectProperty(t,r,n,o);return i&&(i.kind="init",this.castNodeTo(i,"Property")),i}finishObjectProperty(t){return t.kind="init",this.finishNode(t,"Property")}isValidLVal(t,r,n,o){return t==="Property"?"value":super.isValidLVal(t,r,n,o)}isAssignable(t,r){return t!=null&&this.isObjectProperty(t)?this.isAssignable(t.value,r):super.isAssignable(t,r)}toAssignable(t,r=!1){if(t!=null&&this.isObjectProperty(t)){let{key:n,value:o}=t;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(o,r)}else super.toAssignable(t,r)}toAssignableObjectExpressionProp(t,r,n){t.type==="Property"&&(t.kind==="get"||t.kind==="set")?this.raise(W.PatternHasAccessor,t.key):t.type==="Property"&&t.method?this.raise(W.PatternHasMethod,t.key):super.toAssignableObjectExpressionProp(t,r,n)}finishCallExpression(t,r){let n=super.finishCallExpression(t,r);return n.callee.type==="Import"?(this.castNodeTo(n,"ImportExpression"),n.source=n.arguments[0],n.options=n.arguments[1]??null,delete n.arguments,delete n.callee):n.type==="OptionalCallExpression"?this.castNodeTo(n,"CallExpression"):n.optional=!1,n}toReferencedArguments(t){t.type!=="ImportExpression"&&super.toReferencedArguments(t)}parseExport(t,r){let n=this.state.lastTokStartLoc,o=super.parseExport(t,r);switch(o.type){case"ExportAllDeclaration":o.exported=null;break;case"ExportNamedDeclaration":o.specifiers.length===1&&o.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(o,"ExportAllDeclaration"),o.exported=o.specifiers[0].exported,delete o.specifiers);case"ExportDefaultDeclaration":{let{declaration:i}=o;i?.type==="ClassDeclaration"&&i.decorators?.length>0&&i.start===o.start&&this.resetStartLocation(o,n)}break}return o}stopParseSubscript(t,r){let n=super.stopParseSubscript(t,r);return r.optionalChainMember?this.estreeParseChainExpression(n,t.loc.end):n}parseMember(t,r,n,o,i){let a=super.parseMember(t,r,n,o,i);return a.type==="OptionalMemberExpression"?this.castNodeTo(a,"MemberExpression"):a.optional=!1,a}isOptionalMemberExpression(t){return t.type==="ChainExpression"?t.expression.type==="MemberExpression":super.isOptionalMemberExpression(t)}hasPropertyAsPrivateName(t){return t.type==="ChainExpression"&&(t=t.expression),super.hasPropertyAsPrivateName(t)}isObjectProperty(t){return t.type==="Property"&&t.kind==="init"&&!t.method}isObjectMethod(t){return t.type==="Property"&&(t.method||t.kind==="get"||t.kind==="set")}castNodeTo(t,r){let n=super.castNodeTo(t,r);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(t){let r=super.cloneIdentifier(t);return this.fillOptionalPropertiesForTSESLint(r),r}cloneStringLiteral(t){return t.type==="Literal"?this.cloneEstreeStringLiteral(t):super.cloneStringLiteral(t)}finishNodeAt(t,r,n){return eD(super.finishNodeAt(t,r,n))}finishNode(t,r){let n=super.finishNode(t,r);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(t,r){super.resetStartLocation(t,r),eD(t)}resetEndLocation(t,r=this.state.lastTokEndLoc){super.resetEndLocation(t,r),eD(t)}},g3=class{constructor(e,t){this.token=e,this.preserveSpace=!!t}token;preserveSpace},Lo={brace:new g3("{"),j_oTag:new g3("...",!0)},Qr=!0,ct=!0,Uq=!0,tD=!0,Mm=!0,Cze=!0,ppe=class{label;keyword;beforeExpr;startsExpr;rightAssociative;isLoop;isAssign;prefix;postfix;binop;constructor(e,t={}){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=t.binop!=null?t.binop:null}},iU=new Map;function In(e,t={}){t.keyword=e;let r=Wt(e,t);return iU.set(e,r),r}function Cs(e,t){return Wt(e,{beforeExpr:Qr,binop:t})}var aD=-1,aU=[],sU=[],cU=[],lU=[],uU=[],pU=[];function Wt(e,t={}){return++aD,sU.push(e),cU.push(t.binop??-1),lU.push(t.beforeExpr??!1),uU.push(t.startsExpr??!1),pU.push(t.prefix??!1),aU.push(new ppe(e,t)),aD}function sn(e,t={}){return++aD,iU.set(e,aD),sU.push(e),cU.push(t.binop??-1),lU.push(t.beforeExpr??!1),uU.push(t.startsExpr??!1),pU.push(t.prefix??!1),aU.push(new ppe("name",t)),aD}var Pze={bracketL:Wt("[",{beforeExpr:Qr,startsExpr:ct}),bracketHashL:Wt("#[",{beforeExpr:Qr,startsExpr:ct}),bracketBarL:Wt("[|",{beforeExpr:Qr,startsExpr:ct}),bracketR:Wt("]"),bracketBarR:Wt("|]"),braceL:Wt("{",{beforeExpr:Qr,startsExpr:ct}),braceBarL:Wt("{|",{beforeExpr:Qr,startsExpr:ct}),braceHashL:Wt("#{",{beforeExpr:Qr,startsExpr:ct}),braceR:Wt("}"),braceBarR:Wt("|}"),parenL:Wt("(",{beforeExpr:Qr,startsExpr:ct}),parenR:Wt(")"),comma:Wt(",",{beforeExpr:Qr}),semi:Wt(";",{beforeExpr:Qr}),colon:Wt(":",{beforeExpr:Qr}),doubleColon:Wt("::",{beforeExpr:Qr}),dot:Wt("."),question:Wt("?",{beforeExpr:Qr}),questionDot:Wt("?."),arrow:Wt("=>",{beforeExpr:Qr}),template:Wt("template"),ellipsis:Wt("...",{beforeExpr:Qr}),backQuote:Wt("`",{startsExpr:ct}),dollarBraceL:Wt("${",{beforeExpr:Qr,startsExpr:ct}),templateTail:Wt("...`",{startsExpr:ct}),templateNonTail:Wt("...${",{beforeExpr:Qr,startsExpr:ct}),at:Wt("@"),hash:Wt("#",{startsExpr:ct}),interpreterDirective:Wt("#!..."),eq:Wt("=",{beforeExpr:Qr,isAssign:tD}),assign:Wt("_=",{beforeExpr:Qr,isAssign:tD}),slashAssign:Wt("_=",{beforeExpr:Qr,isAssign:tD}),xorAssign:Wt("_=",{beforeExpr:Qr,isAssign:tD}),moduloAssign:Wt("_=",{beforeExpr:Qr,isAssign:tD}),incDec:Wt("++/--",{prefix:Mm,postfix:Cze,startsExpr:ct}),bang:Wt("!",{beforeExpr:Qr,prefix:Mm,startsExpr:ct}),tilde:Wt("~",{beforeExpr:Qr,prefix:Mm,startsExpr:ct}),doubleCaret:Wt("^^",{startsExpr:ct}),doubleAt:Wt("@@",{startsExpr:ct}),pipeline:Cs("|>",0),nullishCoalescing:Cs("??",1),logicalOR:Cs("||",1),logicalAND:Cs("&&",2),bitwiseOR:Cs("|",3),bitwiseXOR:Cs("^",4),bitwiseAND:Cs("&",5),equality:Cs("==/!=/===/!==",6),lt:Cs("/<=/>=",7),gt:Cs("/<=/>=",7),relational:Cs("/<=/>=",7),bitShift:Cs("<>/>>>",8),bitShiftL:Cs("<>/>>>",8),bitShiftR:Cs("<>/>>>",8),plusMin:Wt("+/-",{beforeExpr:Qr,binop:9,prefix:Mm,startsExpr:ct}),modulo:Wt("%",{binop:10,startsExpr:ct}),star:Wt("*",{binop:10}),slash:Cs("/",10),exponent:Wt("**",{beforeExpr:Qr,binop:11,rightAssociative:!0}),_in:In("in",{beforeExpr:Qr,binop:7}),_instanceof:In("instanceof",{beforeExpr:Qr,binop:7}),_break:In("break"),_case:In("case",{beforeExpr:Qr}),_catch:In("catch"),_continue:In("continue"),_debugger:In("debugger"),_default:In("default",{beforeExpr:Qr}),_else:In("else",{beforeExpr:Qr}),_finally:In("finally"),_function:In("function",{startsExpr:ct}),_if:In("if"),_return:In("return",{beforeExpr:Qr}),_switch:In("switch"),_throw:In("throw",{beforeExpr:Qr,prefix:Mm,startsExpr:ct}),_try:In("try"),_var:In("var"),_const:In("const"),_with:In("with"),_new:In("new",{beforeExpr:Qr,startsExpr:ct}),_this:In("this",{startsExpr:ct}),_super:In("super",{startsExpr:ct}),_class:In("class",{startsExpr:ct}),_extends:In("extends",{beforeExpr:Qr}),_export:In("export"),_import:In("import",{startsExpr:ct}),_null:In("null",{startsExpr:ct}),_true:In("true",{startsExpr:ct}),_false:In("false",{startsExpr:ct}),_typeof:In("typeof",{beforeExpr:Qr,prefix:Mm,startsExpr:ct}),_void:In("void",{beforeExpr:Qr,prefix:Mm,startsExpr:ct}),_delete:In("delete",{beforeExpr:Qr,prefix:Mm,startsExpr:ct}),_do:In("do",{isLoop:Uq,beforeExpr:Qr}),_for:In("for",{isLoop:Uq}),_while:In("while",{isLoop:Uq}),_as:sn("as",{startsExpr:ct}),_assert:sn("assert",{startsExpr:ct}),_async:sn("async",{startsExpr:ct}),_await:sn("await",{startsExpr:ct}),_defer:sn("defer",{startsExpr:ct}),_from:sn("from",{startsExpr:ct}),_get:sn("get",{startsExpr:ct}),_let:sn("let",{startsExpr:ct}),_meta:sn("meta",{startsExpr:ct}),_of:sn("of",{startsExpr:ct}),_sent:sn("sent",{startsExpr:ct}),_set:sn("set",{startsExpr:ct}),_source:sn("source",{startsExpr:ct}),_static:sn("static",{startsExpr:ct}),_using:sn("using",{startsExpr:ct}),_yield:sn("yield",{startsExpr:ct}),_asserts:sn("asserts",{startsExpr:ct}),_checks:sn("checks",{startsExpr:ct}),_exports:sn("exports",{startsExpr:ct}),_global:sn("global",{startsExpr:ct}),_implements:sn("implements",{startsExpr:ct}),_intrinsic:sn("intrinsic",{startsExpr:ct}),_infer:sn("infer",{startsExpr:ct}),_is:sn("is",{startsExpr:ct}),_mixins:sn("mixins",{startsExpr:ct}),_proto:sn("proto",{startsExpr:ct}),_require:sn("require",{startsExpr:ct}),_satisfies:sn("satisfies",{startsExpr:ct}),_keyof:sn("keyof",{startsExpr:ct}),_readonly:sn("readonly",{startsExpr:ct}),_unique:sn("unique",{startsExpr:ct}),_abstract:sn("abstract",{startsExpr:ct}),_declare:sn("declare",{startsExpr:ct}),_enum:sn("enum",{startsExpr:ct}),_module:sn("module",{startsExpr:ct}),_namespace:sn("namespace",{startsExpr:ct}),_interface:sn("interface",{startsExpr:ct}),_type:sn("type",{startsExpr:ct}),_opaque:sn("opaque",{startsExpr:ct}),name:Wt("name",{startsExpr:ct}),placeholder:Wt("%%",{startsExpr:ct}),string:Wt("string",{startsExpr:ct}),num:Wt("num",{startsExpr:ct}),bigint:Wt("bigint",{startsExpr:ct}),decimal:Wt("decimal",{startsExpr:ct}),regexp:Wt("regexp",{startsExpr:ct}),privateName:Wt("#name",{startsExpr:ct}),eof:Wt("eof"),jsxName:Wt("jsxName"),jsxText:Wt("jsxText",{beforeExpr:Qr}),jsxTagStart:Wt("jsxTagStart",{startsExpr:ct}),jsxTagEnd:Wt("jsxTagEnd")};function Qn(e){return e>=93&&e<=133}function Oze(e){return e<=92}function Pu(e){return e>=58&&e<=133}function dpe(e){return e>=58&&e<=137}function Nze(e){return lU[e]}function oD(e){return uU[e]}function Fze(e){return e>=29&&e<=33}function que(e){return e>=129&&e<=131}function Rze(e){return e>=90&&e<=92}function dU(e){return e>=58&&e<=92}function Lze(e){return e>=39&&e<=59}function $ze(e){return e===34}function Mze(e){return pU[e]}function jze(e){return e>=121&&e<=123}function Bze(e){return e>=124&&e<=130}function Um(e){return sU[e]}function E3(e){return cU[e]}function qze(e){return e===57}function Wq(e){return e>=24&&e<=25}function _pe(e){return aU[e]}var _U="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\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\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",fpe="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",Uze=new RegExp("["+_U+"]"),zze=new RegExp("["+_U+fpe+"]");_U=fpe=null;var mpe=[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],Vze=[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 Qq(e,t){let r=65536;for(let n=0,o=t.length;ne)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function Yp(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Uze.test(String.fromCharCode(e)):Qq(e,mpe)}function mg(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&zze.test(String.fromCharCode(e)):Qq(e,mpe)||Qq(e,Vze)}var fU={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Jze=new Set(fU.keyword),Kze=new Set(fU.strict),Gze=new Set(fU.strictBind);function hpe(e,t){return t&&e==="await"||e==="enum"}function ype(e,t){return hpe(e,t)||Kze.has(e)}function gpe(e){return Gze.has(e)}function Spe(e,t){return ype(e,t)||gpe(e)}function Hze(e){return Jze.has(e)}function Zze(e,t,r){return e===64&&t===64&&Yp(r)}var Wze=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"]);function Qze(e){return Wze.has(e)}var mU=class{flags=0;names=new Map;firstLexicalName="";constructor(e){this.flags=e}},hU=class{parser;scopeStack=[];inModule;undefinedExports=new Map;constructor(e,t){this.parser=e,this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&128)return!0;if(t&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new mU(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,t,r){let n=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(n,e,t,r);let o=n.names.get(e)||0;t&16?o=o|4:(n.firstLexicalName||(n.firstLexicalName=e),o=o|2),n.names.set(e,o),t&8&&this.maybeExportDefined(n,e)}else if(t&4)for(let o=this.scopeStack.length-1;o>=0&&(n=this.scopeStack[o],this.checkRedeclarationInScope(n,e,t,r),n.names.set(e,(n.names.get(e)||0)|1),this.maybeExportDefined(n,e),!(n.flags&1667));--o);this.parser.inModule&&n.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(W.VarRedeclaration,n,{identifierName:t})}isRedeclaredInScope(e,t,r){if(!(r&1))return!1;if(r&8)return e.names.has(t);let n=e.names.get(t)||0;return r&16?(n&2)>0||!this.treatFunctionsAsVarInScope(e)&&(n&1)>0:(n&2)>0&&!(e.flags&8&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(n&4)>0}checkLocalExport(e){let{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--){let{flags:t}=this.scopeStack[e];if(t&1667)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&1731&&!(t&4))return t}}},Xze=class extends mU{declareFunctions=new Set},Yze=class extends hU{createScope(e){return new Xze(e)}declareName(e,t,r){let n=this.currentScope();if(t&2048){this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e),n.declareFunctions.add(e);return}super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){if(super.isRedeclaredInScope(e,t,r))return!0;if(r&2048&&!e.declareFunctions.has(t)){let n=e.names.get(t);return(n&4)>0||(n&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},eVe=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Xt=Xp`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."},{}),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 ` async () => {}`, use `async () => {}`.",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 tVe(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function Uue(e){return e.importKind==="type"||e.importKind==="typeof"}var rVe={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function nVe(e,t){let r=[],n=[];for(let o=0;oclass extends e{flowPragma=void 0;getScopeHandler(){return Yze}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(t,r){t!==134&&t!==13&&t!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(t,r)}addComment(t){if(this.flowPragma===void 0){let r=oVe.exec(t.value);if(r)if(r[1]==="flow")this.flowPragma="flow";else if(r[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(t)}flowParseTypeInitialiser(t){let r=this.state.inType;this.state.inType=!0,this.expect(t||14);let n=this.flowParseType();return this.state.inType=r,n}flowParsePredicate(){let t=this.startNode(),r=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>r.index+1&&this.raise(Xt.UnexpectedSpaceBetweenModuloChecks,r),this.eat(10)?(t.value=super.parseExpression(),this.expect(11),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let t=this.state.inType;this.state.inType=!0,this.expect(14);let r=null,n=null;return this.match(54)?(this.state.inType=t,n=this.flowParsePredicate()):(r=this.flowParseType(),this.state.inType=t,this.match(54)&&(n=this.flowParsePredicate())),[r,n]}flowParseDeclareClass(t){return this.next(),this.flowParseInterfaceish(t,!0),this.finishNode(t,"DeclareClass")}flowParseDeclareFunction(t){this.next();let r=t.id=this.parseIdentifier(),n=this.startNode(),o=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);let i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),o.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),r.typeAnnotation=this.finishNode(o,"TypeAnnotation"),this.resetEndLocation(r),this.semicolon(),this.scope.declareName(t.id.name,2048,t.id.loc.start),this.finishNode(t,"DeclareFunction")}flowParseDeclare(t,r){if(this.match(80))return this.flowParseDeclareClass(t);if(this.match(68))return this.flowParseDeclareFunction(t);if(this.match(74))return this.flowParseDeclareVariable(t);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(t):(r&&this.raise(Xt.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(t));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(t);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(t);if(this.isContextual(129))return this.flowParseDeclareInterface(t);if(this.match(82))return this.flowParseDeclareExportDeclaration(t,r);throw this.unexpected()}flowParseDeclareVariable(t){return this.next(),t.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(t.id.name,5,t.id.loc.start),this.semicolon(),this.finishNode(t,"DeclareVariable")}flowParseDeclareModule(t){this.scope.enter(0),this.match(134)?t.id=super.parseExprAtom():t.id=this.parseIdentifier();let r=t.body=this.startNode(),n=r.body=[];for(this.expect(5);!this.match(8);){let a=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Xt.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),n.push(super.parseImport(a))):(this.expectContextual(125,Xt.UnsupportedStatementInDeclareModule),n.push(this.flowParseDeclare(a,!0)))}this.scope.exit(),this.expect(8),this.finishNode(r,"BlockStatement");let o=null,i=!1;return n.forEach(a=>{tVe(a)?(o==="CommonJS"&&this.raise(Xt.AmbiguousDeclareModuleKind,a),o="ES"):a.type==="DeclareModuleExports"&&(i&&this.raise(Xt.DuplicateDeclareModuleExports,a),o==="ES"&&this.raise(Xt.AmbiguousDeclareModuleKind,a),o="CommonJS",i=!0)}),t.kind=o||"CommonJS",this.finishNode(t,"DeclareModule")}flowParseDeclareExportDeclaration(t,r){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?t.declaration=this.flowParseDeclare(this.startNode()):(t.declaration=this.flowParseType(),this.semicolon()),t.default=!0,this.finishNode(t,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!r){let n=this.state.value;throw this.raise(Xt.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:n,suggestion:rVe[n]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return t.declaration=this.flowParseDeclare(this.startNode()),t.default=!1,this.finishNode(t,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return t=this.parseExport(t,null),t.type==="ExportNamedDeclaration"?(t.default=!1,delete t.exportKind,this.castNodeTo(t,"DeclareExportDeclaration")):this.castNodeTo(t,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(t){return this.next(),this.expectContextual(111),t.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(t,"DeclareModuleExports")}flowParseDeclareTypeAlias(t){this.next();let r=this.flowParseTypeAlias(t);return this.castNodeTo(r,"DeclareTypeAlias"),r}flowParseDeclareOpaqueType(t){this.next();let r=this.flowParseOpaqueType(t,!0);return this.castNodeTo(r,"DeclareOpaqueType"),r}flowParseDeclareInterface(t){return this.next(),this.flowParseInterfaceish(t,!1),this.finishNode(t,"DeclareInterface")}flowParseInterfaceish(t,r){if(t.id=this.flowParseRestrictedIdentifier(!r,!0),this.scope.declareName(t.id.name,r?17:8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.extends=[],this.eat(81))do t.extends.push(this.flowParseInterfaceExtends());while(!r&&this.eat(12));if(r){if(t.implements=[],t.mixins=[],this.eatContextual(117))do t.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do t.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}t.body=this.flowParseObjectType({allowStatic:r,allowExact:!1,allowSpread:!1,allowProto:r,allowInexact:!1})}flowParseInterfaceExtends(){let t=this.startNode();return t.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,this.finishNode(t,"InterfaceExtends")}flowParseInterface(t){return this.flowParseInterfaceish(t,!1),this.finishNode(t,"InterfaceDeclaration")}checkNotUnderscore(t){t==="_"&&this.raise(Xt.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(t,r,n){eVe.has(t)&&this.raise(n?Xt.AssignReservedType:Xt.UnexpectedReservedType,r,{reservedType:t})}flowParseRestrictedIdentifier(t,r){return this.checkReservedType(this.state.value,this.state.startLoc,r),this.parseIdentifier(t)}flowParseTypeAlias(t){return t.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(t,"TypeAlias")}flowParseOpaqueType(t,r){return this.expectContextual(130),t.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.supertype=null,this.match(14)&&(t.supertype=this.flowParseTypeInitialiser(14)),t.impltype=null,r||(t.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(t,"OpaqueType")}flowParseTypeParameter(t=!1){let r=this.state.startLoc,n=this.startNode(),o=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=o,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):t&&this.raise(Xt.MissingTypeParamDefault,r),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){let t=this.state.inType,r=this.startNode();r.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{let o=this.flowParseTypeParameter(n);r.params.push(o),o.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=t,this.finishNode(r,"TypeParameterDeclaration")}flowInTopLevelContext(t){if(this.curContext()!==Lo.brace){let r=this.state.context;this.state.context=[r[0]];try{return t()}finally{this.state.context=r}}else return t()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let t=this.startNode(),r=this.state.inType;return this.state.inType=!0,t.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)t.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=n}),this.state.inType=r,!this.state.inType&&this.curContext()===Lo.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let t=this.startNode(),r=this.state.inType;for(t.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)t.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=r,this.finishNode(t,"TypeParameterInstantiation")}flowParseInterfaceType(){let t=this.startNode();if(this.expectContextual(129),t.extends=[],this.eat(81))do t.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return t.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(t,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(t,r,n){return t.static=r,this.lookahead().type===14?(t.id=this.flowParseObjectPropertyKey(),t.key=this.flowParseTypeInitialiser()):(t.id=null,t.key=this.flowParseType()),this.expect(3),t.value=this.flowParseTypeInitialiser(),t.variance=n,this.finishNode(t,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(t,r){return t.static=r,t.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(t.method=!0,t.optional=!1,t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start))):(t.method=!1,this.eat(17)&&(t.optional=!0),t.value=this.flowParseTypeInitialiser()),this.finishNode(t,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(t){for(t.params=[],t.rest=null,t.typeParameters=null,t.this=null,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(t.this=this.flowParseFunctionTypeParam(!0),t.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),t.returnType=this.flowParseTypeInitialiser(),this.finishNode(t,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(t,r){let n=this.startNode();return t.static=r,t.value=this.flowParseObjectTypeMethodish(n),this.finishNode(t,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:t,allowExact:r,allowSpread:n,allowProto:o,allowInexact:i}){let a=this.state.inType;this.state.inType=!0;let s=this.startNode();s.callProperties=[],s.properties=[],s.indexers=[],s.internalSlots=[];let c,p,d=!1;for(r&&this.match(6)?(this.expect(6),c=9,p=!0):(this.expect(5),c=8,p=!1),s.exact=p;!this.match(c);){let m=!1,y=null,g=null,S=this.startNode();if(o&&this.isContextual(118)){let A=this.lookahead();A.type!==14&&A.type!==17&&(this.next(),y=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){let A=this.lookahead();A.type!==14&&A.type!==17&&(this.next(),m=!0)}let x=this.flowParseVariance();if(this.eat(0))y!=null&&this.unexpected(y),this.eat(0)?(x&&this.unexpected(x.loc.start),s.internalSlots.push(this.flowParseObjectTypeInternalSlot(S,m))):s.indexers.push(this.flowParseObjectTypeIndexer(S,m,x));else if(this.match(10)||this.match(47))y!=null&&this.unexpected(y),x&&this.unexpected(x.loc.start),s.callProperties.push(this.flowParseObjectTypeCallProperty(S,m));else{let A="init";if(this.isContextual(99)||this.isContextual(104)){let E=this.lookahead();dpe(E.type)&&(A=this.state.value,this.next())}let I=this.flowParseObjectTypeProperty(S,m,y,x,A,n,i??!p);I===null?(d=!0,g=this.state.lastTokStartLoc):s.properties.push(I)}this.flowObjectTypeSemicolon(),g&&!this.match(8)&&!this.match(9)&&this.raise(Xt.UnexpectedExplicitInexactInObject,g)}this.expect(c),n&&(s.inexact=d);let f=this.finishNode(s,"ObjectTypeAnnotation");return this.state.inType=a,f}flowParseObjectTypeProperty(t,r,n,o,i,a,s){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(a?s||this.raise(Xt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Xt.InexactInsideNonObject,this.state.lastTokStartLoc),o&&this.raise(Xt.InexactVariance,o),null):(a||this.raise(Xt.UnexpectedSpreadType,this.state.lastTokStartLoc),n!=null&&this.unexpected(n),o&&this.raise(Xt.SpreadVariance,o),t.argument=this.flowParseType(),this.finishNode(t,"ObjectTypeSpreadProperty"));{t.key=this.flowParseObjectPropertyKey(),t.static=r,t.proto=n!=null,t.kind=i;let c=!1;return this.match(47)||this.match(10)?(t.method=!0,n!=null&&this.unexpected(n),o&&this.unexpected(o.loc.start),t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start)),(i==="get"||i==="set")&&this.flowCheckGetterSetterParams(t),!a&&t.key.name==="constructor"&&t.value.this&&this.raise(Xt.ThisParamBannedInConstructor,t.value.this)):(i!=="init"&&this.unexpected(),t.method=!1,this.eat(17)&&(c=!0),t.value=this.flowParseTypeInitialiser(),t.variance=o),t.optional=c,this.finishNode(t,"ObjectTypeProperty")}}flowCheckGetterSetterParams(t){let r=t.kind==="get"?0:1,n=t.value.params.length+(t.value.rest?1:0);t.value.this&&this.raise(t.kind==="get"?Xt.GetterMayNotHaveThisParam:Xt.SetterMayNotHaveThisParam,t.value.this),n!==r&&this.raise(t.kind==="get"?W.BadGetterArity:W.BadSetterArity,t),t.kind==="set"&&t.value.rest&&this.raise(W.BadSetterRestParameter,t)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(t,r){t??(t=this.state.startLoc);let n=r||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let o=this.startNodeAt(t);o.qualification=n,o.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(o,"QualifiedTypeIdentifier")}return n}flowParseGenericType(t,r){let n=this.startNodeAt(t);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(t,r),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){let t=this.startNode();return this.expect(87),t.argument=this.flowParsePrimaryType(),this.finishNode(t,"TypeofTypeAnnotation")}flowParseTupleType(){let t=this.startNode();for(t.types=[],this.expect(0);this.state.possuper.parseFunctionBody(t,!0,n));return}super.parseFunctionBody(t,!1,n)}parseFunctionBodyAndFinish(t,r,n=!1){if(this.match(14)){let o=this.startNode();[o.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),t.returnType=o.typeAnnotation?this.finishNode(o,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(t,r,n)}parseStatementLike(t){if(this.state.strict&&this.isContextual(129)){let n=this.lookahead();if(Pu(n.type)){let o=this.startNode();return this.next(),this.flowParseInterface(o)}}else if(this.isContextual(126)){let n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}let r=super.parseStatementLike(t);return this.flowPragma===void 0&&!this.isValidDirective(r)&&(this.flowPragma=null),r}parseExpressionStatement(t,r,n){if(r.type==="Identifier"){if(r.name==="declare"){if(this.match(80)||Qn(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(t)}else if(Qn(this.state.type)){if(r.name==="interface")return this.flowParseInterface(t);if(r.name==="type")return this.flowParseTypeAlias(t);if(r.name==="opaque")return this.flowParseOpaqueType(t,!1)}}return super.parseExpressionStatement(t,r,n)}shouldParseExportDeclaration(){let{type:t}=this.state;return t===126||que(t)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:t}=this.state;return t===126||que(t)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDefaultExpression()}parseConditional(t,r,n){if(!this.match(17))return t;if(this.state.maybeInArrowParameters){let f=this.lookaheadCharCode();if(f===44||f===61||f===58||f===41)return this.setOptionalParametersError(n),t}this.expect(17);let o=this.state.clone(),i=this.state.noArrowAt,a=this.startNodeAt(r),{consequent:s,failed:c}=this.tryParseConditionalConsequent(),[p,d]=this.getArrowLikeExpressions(s);if(c||d.length>0){let f=[...i];if(d.length>0){this.state=o,this.state.noArrowAt=f;for(let m=0;m1&&this.raise(Xt.AmbiguousConditionalArrow,o.startLoc),c&&p.length===1&&(this.state=o,f.push(p[0].start),this.state.noArrowAt=f,{consequent:s,failed:c}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(s,!0),this.state.noArrowAt=i,this.expect(14),a.test=t,a.consequent=s,a.alternate=this.forwardNoArrowParamsConversionAt(a,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(a,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let t=this.parseMaybeAssignAllowIn(),r=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:t,failed:r}}getArrowLikeExpressions(t,r){let n=[t],o=[];for(;n.length!==0;){let i=n.pop();i.type==="ArrowFunctionExpression"&&i.body.type!=="BlockStatement"?(i.typeParameters||!i.returnType?this.finishArrowValidation(i):o.push(i),n.push(i.body)):i.type==="ConditionalExpression"&&(n.push(i.consequent),n.push(i.alternate))}return r?(o.forEach(i=>this.finishArrowValidation(i)),[o,[]]):nVe(o,i=>i.params.every(a=>this.isAssignable(a,!0)))}finishArrowValidation(t){this.toAssignableList(t.params,t.extra?.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(t,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(t,r){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=r(),this.state.noArrowParamsConversionAt.pop()):n=r(),n}parseParenItem(t,r){let n=super.parseParenItem(t,r);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(t)),this.match(14)){let o=this.startNodeAt(r);return o.expression=n,o.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(o,"TypeCastExpression")}return n}assertModuleNodeAllowed(t){t.type==="ImportDeclaration"&&(t.importKind==="type"||t.importKind==="typeof")||t.type==="ExportNamedDeclaration"&&t.exportKind==="type"||t.type==="ExportAllDeclaration"&&t.exportKind==="type"||super.assertModuleNodeAllowed(t)}parseExportDeclaration(t){if(this.isContextual(130)){t.exportKind="type";let r=this.startNode();return this.next(),this.match(5)?(t.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(t),null):this.flowParseTypeAlias(r)}else if(this.isContextual(131)){t.exportKind="type";let r=this.startNode();return this.next(),this.flowParseOpaqueType(r,!1)}else if(this.isContextual(129)){t.exportKind="type";let r=this.startNode();return this.next(),this.flowParseInterface(r)}else if(this.isContextual(126)){t.exportKind="value";let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}else return super.parseExportDeclaration(t)}eatExportStar(t){return super.eatExportStar(t)?!0:this.isContextual(130)&&this.lookahead().type===55?(t.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(t){let{startLoc:r}=this.state,n=super.maybeParseExportNamespaceSpecifier(t);return n&&t.exportKind==="type"&&this.unexpected(r),n}parseClassId(t,r,n){super.parseClassId(t,r,n),this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(t,r,n){let{startLoc:o}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(t,r))return;r.declare=!0}super.parseClassMember(t,r,n),r.declare&&(r.type!=="ClassProperty"&&r.type!=="ClassPrivateProperty"&&r.type!=="PropertyDefinition"?this.raise(Xt.DeclareClassElement,o):r.value&&this.raise(Xt.DeclareClassFieldInitializer,r.value))}isIterator(t){return t==="iterator"||t==="asyncIterator"}readIterator(){let t=super.readWord1(),r="@@"+t;(!this.isIterator(t)||!this.state.inType)&&this.raise(W.InvalidIdentifier,this.state.curPosition(),{identifierName:r}),this.finishToken(132,r)}getTokenFromCode(t){let r=this.input.charCodeAt(this.state.pos+1);t===123&&r===124?this.finishOp(6,2):this.state.inType&&(t===62||t===60)?this.finishOp(t===62?48:47,1):this.state.inType&&t===63?r===46?this.finishOp(18,2):this.finishOp(17,1):Zze(t,r,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(t)}isAssignable(t,r){return t.type==="TypeCastExpression"?this.isAssignable(t.expression,r):super.isAssignable(t,r)}toAssignable(t,r=!1){!r&&t.type==="AssignmentExpression"&&t.left.type==="TypeCastExpression"&&(t.left=this.typeCastToParameter(t.left)),super.toAssignable(t,r)}toAssignableList(t,r,n){for(let o=0;o1||!r)&&this.raise(Xt.TypeCastInPattern,o.typeAnnotation)}return t}parseArrayLike(t,r,n){let o=super.parseArrayLike(t,r,n);return n!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(o.elements),o}isValidLVal(t,r,n,o){return t==="TypeCastExpression"||super.isValidLVal(t,r,n,o)}parseClassProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(t)}parseClassPrivateProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(t){return!this.match(14)&&super.isNonstaticConstructor(t)}pushClassMethod(t,r,n,o,i,a){if(r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(t,r,n,o,i,a),r.params&&i){let s=r.params;s.length>0&&this.isThisParam(s[0])&&this.raise(Xt.ThisParamBannedInConstructor,r)}else if(r.type==="MethodDefinition"&&i&&r.value.params){let s=r.value.params;s.length>0&&this.isThisParam(s[0])&&this.raise(Xt.ThisParamBannedInConstructor,r)}}pushClassPrivateMethod(t,r,n,o){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(t,r,n,o)}parseClassSuper(t){if(super.parseClassSuper(t),t.superClass&&(this.match(47)||this.match(51))&&(t.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let r=t.implements=[];do{let n=this.startNode();n.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?n.typeParameters=this.flowParseTypeParameterInstantiation():n.typeParameters=null,r.push(this.finishNode(n,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(t){super.checkGetterSetterParams(t);let r=this.getObjectOrClassMethodParams(t);if(r.length>0){let n=r[0];this.isThisParam(n)&&t.kind==="get"?this.raise(Xt.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(Xt.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(t){t.variance=this.flowParseVariance()}parseObjPropValue(t,r,n,o,i,a,s){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance;let c;this.match(47)&&!a&&(c=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let p=super.parseObjPropValue(t,r,n,o,i,a,s);return c&&((p.value||p).typeParameters=c),p}parseFunctionParamType(t){return this.eat(17)&&(t.type!=="Identifier"&&this.raise(Xt.PatternIsOptional,t),this.isThisParam(t)&&this.raise(Xt.ThisParamMayNotBeOptional,t),t.optional=!0),this.match(14)?t.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(t)&&this.raise(Xt.ThisParamAnnotationRequired,t),this.match(29)&&this.isThisParam(t)&&this.raise(Xt.ThisParamNoDefault,t),this.resetEndLocation(t),t}parseMaybeDefault(t,r){let n=super.parseMaybeDefault(t,r);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.startsuper.parseMaybeAssign(t,r),n),!o.error)return o.node;let{context:i}=this.state,a=i[i.length-1];(a===Lo.j_oTag||a===Lo.j_expr)&&i.pop()}if(o?.error||this.match(47)){n=n||this.state.clone();let i,a=this.tryParse(c=>{i=this.flowParseTypeParameterDeclaration();let p=this.forwardNoArrowParamsConversionAt(i,()=>{let f=super.parseMaybeAssign(t,r);return this.resetStartLocationFromNode(f,i),f});p.extra?.parenthesized&&c();let d=this.maybeUnwrapTypeCastExpression(p);return d.type!=="ArrowFunctionExpression"&&c(),d.typeParameters=i,this.resetStartLocationFromNode(d,i),p},n),s=null;if(a.node&&this.maybeUnwrapTypeCastExpression(a.node).type==="ArrowFunctionExpression"){if(!a.error&&!a.aborted)return a.node.async&&this.raise(Xt.UnexpectedTypeParameterBeforeAsyncArrowFunction,i),a.node;s=a.node}if(o?.node)return this.state=o.failState,o.node;if(s)return this.state=a.failState,s;throw o?.thrown?o.error:a.thrown?a.error:this.raise(Xt.UnexpectedTokenAfterTypeParameter,i)}return super.parseMaybeAssign(t,r)}parseArrow(t){if(this.match(14)){let r=this.tryParse(()=>{let n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let o=this.startNode();return[o.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=n,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),o});if(r.thrown)return null;r.error&&(this.state=r.failState),t.returnType=r.node.typeAnnotation?this.finishNode(r.node,"TypeAnnotation"):null}return super.parseArrow(t)}shouldParseArrow(t){return this.match(14)||super.shouldParseArrow(t)}setArrowFunctionParameters(t,r){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start))?t.params=r:super.setArrowFunctionParameters(t,r)}checkParams(t,r,n,o=!0){if(!(n&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start)))){for(let i=0;i0&&this.raise(Xt.ThisParamMustBeFirst,t.params[i]);super.checkParams(t,r,n,o)}}parseParenAndDistinguishExpression(t){return super.parseParenAndDistinguishExpression(t&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(t,r,n){if(t.type==="Identifier"&&t.name==="async"&&this.state.noArrowAt.includes(r.index)){this.next();let o=this.startNodeAt(r);o.callee=t,o.arguments=super.parseCallExpressionArguments(),t=this.finishNode(o,"CallExpression")}else if(t.type==="Identifier"&&t.name==="async"&&this.match(47)){let o=this.state.clone(),i=this.tryParse(s=>this.parseAsyncArrowWithTypeParameters(r)||s(),o);if(!i.error&&!i.aborted)return i.node;let a=this.tryParse(()=>super.parseSubscripts(t,r,n),o);if(a.node&&!a.error)return a.node;if(i.node)return this.state=i.failState,i.node;if(a.node)return this.state=a.failState,a.node;throw i.error||a.error}return super.parseSubscripts(t,r,n)}parseSubscript(t,r,n,o){if(this.match(18)&&this.isLookaheadToken_lt()){if(o.optionalChainMember=!0,n)return o.stop=!0,t;this.next();let i=this.startNodeAt(r);return i.callee=t,i.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),i.arguments=this.parseCallExpressionArguments(),i.optional=!0,this.finishCallExpression(i,!0)}else if(!n&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let i=this.startNodeAt(r);i.callee=t;let a=this.tryParse(()=>(i.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),i.arguments=super.parseCallExpressionArguments(),o.optionalChainMember&&(i.optional=!1),this.finishCallExpression(i,o.optionalChainMember)));if(a.node)return a.error&&(this.state=a.failState),a.node}return super.parseSubscript(t,r,n,o)}parseNewCallee(t){super.parseNewCallee(t);let r=null;this.shouldParseTypes()&&this.match(47)&&(r=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),t.typeArguments=r}parseAsyncArrowWithTypeParameters(t){let r=this.startNodeAt(t);if(this.parseFunctionParams(r,!1),!!this.parseArrow(r))return super.parseArrowExpression(r,void 0,!0)}readToken_mult_modulo(t){let r=this.input.charCodeAt(this.state.pos+1);if(t===42&&r===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(t)}readToken_pipe_amp(t){let r=this.input.charCodeAt(this.state.pos+1);if(t===124&&r===125){this.finishOp(9,2);return}super.readToken_pipe_amp(t)}parseTopLevel(t,r){let n=super.parseTopLevel(t,r);return this.state.hasFlowComment&&this.raise(Xt.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Xt.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let t=this.skipFlowComment();t&&(this.state.pos+=t,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:t}=this.state,r=2;for(;[32,9].includes(this.input.charCodeAt(t+r));)r++;let n=this.input.charCodeAt(r+t),o=this.input.charCodeAt(r+t+1);return n===58&&o===58?r+2:this.input.slice(r+t,r+t+12)==="flow-include"?r+12:n===58&&o!==58?r:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(W.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(t,{enumName:r,memberName:n}){this.raise(Xt.EnumBooleanMemberNotInitialized,t,{memberName:n,enumName:r})}flowEnumErrorInvalidMemberInitializer(t,r){return this.raise(r.explicitType?r.explicitType==="symbol"?Xt.EnumInvalidMemberInitializerSymbolType:Xt.EnumInvalidMemberInitializerPrimaryType:Xt.EnumInvalidMemberInitializerUnknownType,t,r)}flowEnumErrorNumberMemberNotInitialized(t,r){this.raise(Xt.EnumNumberMemberNotInitialized,t,r)}flowEnumErrorStringMemberInconsistentlyInitialized(t,r){this.raise(Xt.EnumStringMemberInconsistentlyInitialized,t,r)}flowEnumMemberInit(){let t=this.state.startLoc,r=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let n=this.parseNumericLiteral(this.state.value);return r()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:t}}case 134:{let n=this.parseStringLiteral(this.state.value);return r()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:t}}case 85:case 86:{let n=this.parseBooleanLiteral(this.match(85));return r()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:t}}default:return{type:"invalid",loc:t}}}flowEnumMemberRaw(){let t=this.state.startLoc,r=this.parseIdentifier(!0),n=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:t};return{id:r,init:n}}flowEnumCheckExplicitTypeMismatch(t,r,n){let{explicitType:o}=r;o!==null&&o!==n&&this.flowEnumErrorInvalidMemberInitializer(t,r)}flowEnumMembers({enumName:t,explicitType:r}){let n=new Set,o={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}let a=this.startNode(),{id:s,init:c}=this.flowEnumMemberRaw(),p=s.name;if(p==="")continue;/^[a-z]/.test(p)&&this.raise(Xt.EnumInvalidMemberName,s,{memberName:p,suggestion:p[0].toUpperCase()+p.slice(1),enumName:t}),n.has(p)&&this.raise(Xt.EnumDuplicateMemberName,s,{memberName:p,enumName:t}),n.add(p);let d={enumName:t,explicitType:r,memberName:p};switch(a.id=s,c.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"boolean"),a.init=c.value,o.booleanMembers.push(this.finishNode(a,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"number"),a.init=c.value,o.numberMembers.push(this.finishNode(a,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"string"),a.init=c.value,o.stringMembers.push(this.finishNode(a,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,d);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,d);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,d);break;default:o.defaultedMembers.push(this.finishNode(a,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:o,hasUnknownMembers:i}}flowEnumStringMembers(t,r,{enumName:n}){if(t.length===0)return r;if(r.length===0)return t;if(r.length>t.length){for(let o of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(o,{enumName:n});return r}else{for(let o of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(o,{enumName:n});return t}}flowEnumParseExplicitType({enumName:t}){if(!this.eatContextual(102))return null;if(!Qn(this.state.type))throw this.raise(Xt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});let{value:r}=this.state;return this.next(),r!=="boolean"&&r!=="number"&&r!=="string"&&r!=="symbol"&&this.raise(Xt.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:r}),r}flowEnumBody(t,r){let n=r.name,o=r.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);let{members:a,hasUnknownMembers:s}=this.flowEnumMembers({enumName:n,explicitType:i});switch(t.hasUnknownMembers=s,i){case"boolean":return t.explicitType=!0,t.members=a.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody");case"number":return t.explicitType=!0,t.members=a.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody");case"string":return t.explicitType=!0,t.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(t,"EnumStringBody");case"symbol":return t.members=a.defaultedMembers,this.expect(8),this.finishNode(t,"EnumSymbolBody");default:{let c=()=>(t.members=[],this.expect(8),this.finishNode(t,"EnumStringBody"));t.explicitType=!1;let p=a.booleanMembers.length,d=a.numberMembers.length,f=a.stringMembers.length,m=a.defaultedMembers.length;if(!p&&!d&&!f&&!m)return c();if(!p&&!d)return t.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(t,"EnumStringBody");if(!d&&!f&&p>=m){for(let y of a.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(y.loc.start,{enumName:n,memberName:y.id.name});return t.members=a.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody")}else if(!p&&!f&&d>=m){for(let y of a.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(y.loc.start,{enumName:n,memberName:y.id.name});return t.members=a.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody")}else return this.raise(Xt.EnumInconsistentMemberValues,o,{enumName:n}),c()}}}flowParseEnumDeclaration(t){let r=this.parseIdentifier();return t.id=r,t.body=this.flowEnumBody(this.startNode(),r),this.finishNode(t,"EnumDeclaration")}jsxParseOpeningElementAfterName(t){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(t.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(t)}isLookaheadToken_lt(){let t=this.nextTokenStart();if(this.input.charCodeAt(t)===60){let r=this.input.charCodeAt(t+1);return r!==60&&r!==61}return!1}reScan_lt_gt(){let{type:t}=this.state;t===47?(this.state.pos-=1,this.readToken_lt()):t===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:t}=this.state;return t===51?(this.state.pos-=2,this.finishOp(47,1),47):t}maybeUnwrapTypeCastExpression(t){return t.type==="TypeCastExpression"?t.expression:t}},aVe=/\r\n|[\r\n\u2028\u2029]/,S3=new RegExp(aVe.source,"g");function Mv(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function zue(e,t,r){for(let n=t;n`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 jm(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function $v(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return $v(e.object)+"."+$v(e.property);throw new Error("Node had unexpected type: "+e.type)}var cVe=e=>class extends e{jsxReadToken(){let t="",r=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(M_.UnterminatedJsxContent,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n);return}t+=this.input.slice(r,this.state.pos),this.finishToken(142,t);return;case 38:t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos;break;case 62:case 125:this.raise(M_.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:n===125?"}":">"});default:Mv(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}}jsxReadNewLine(t){let r=this.input.charCodeAt(this.state.pos),n;return++this.state.pos,r===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=t?` +- 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 ${T3(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${T3(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${T3(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(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).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."},xze={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."},Eze={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)}\`.`},Tze=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Dze=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 references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',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 ${T3({type:e})}; please wrap it in parentheses.`},{}),Aze=["message"];function que(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function Ize({toMessage:e,code:t,reasonCode:r,syntaxPlugin:n}){let o=r==="MissingPlugin"||r==="MissingOneOfPlugins";return function i(a,s){let c=new SyntaxError;return c.code=t,c.reasonCode=r,c.loc=a,c.pos=a.index,c.syntaxPlugin=n,o&&(c.missingPlugin=s.missingPlugin),que(c,"clone",function(p={}){let{line:d,column:f,index:m}=p.loc??a;return i(new Jm(d,f,m),Object.assign({},s,p.details))}),que(c,"details",s),Object.defineProperty(c,"message",{configurable:!0,get(){let p=`${e(s)} (${a.line}:${a.column})`;return this.message=p,p},set(p){Object.defineProperty(this,"message",{value:p,writable:!0})}}),c}}function Yp(e,t){if(Array.isArray(e))return n=>Yp(n,e[0]);let r={};for(let n of Object.keys(e)){let o=e[n],i=typeof o=="string"?{message:()=>o}:typeof o=="function"?{message:o}:o,{message:a}=i,s=Sze(i,Aze),c=typeof a=="string"?()=>a:a;r[n]=Ize(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:c},t?{syntaxPlugin:t}:{},s))}return r}var W=Object.assign({},Yp(vze),Yp(bze),Yp(xze),Yp(Eze),Yp`pipelineOperator`(Dze));function wze(){return{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:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function kze(e){let t=wze();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))e[r]!=null&&(t[r]=e[r]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if(e.startColumn==null||e.startIndex==null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:Cze}=Object,Uue=(e,t)=>{e&&Cze(e,t,{enumerable:!1,value:e[t]})};function rD(e){return Uue(e.loc.start,"index"),Uue(e.loc.end,"index"),e}var Pze=e=>class extends e{parse(){let t=rD(super.parse());return this.optionFlags&256&&(t.tokens=t.tokens.map(rD)),t}parseRegExpLiteral({pattern:t,flags:r}){let n=null;try{n=new RegExp(t,r)}catch{}let o=this.estreeParseLiteral(n);return o.regex={pattern:t,flags:r},o}parseBigIntLiteral(t){let r;try{r=BigInt(t)}catch{r=null}let n=this.estreeParseLiteral(r);return n.bigint=String(n.value||t),n}parseDecimalLiteral(t){let r=this.estreeParseLiteral(null);return r.decimal=String(r.value||t),r}estreeParseLiteral(t){return this.parseLiteral(t,"Literal")}parseStringLiteral(t){return this.estreeParseLiteral(t)}parseNumericLiteral(t){return this.estreeParseLiteral(t)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(t){return this.estreeParseLiteral(t)}estreeParseChainExpression(t,r){let n=this.startNodeAtNode(t);return n.expression=t,this.finishNodeAt(n,"ChainExpression",r)}directiveToStmt(t){let r=t.value;delete t.value,this.castNodeTo(r,"Literal"),r.raw=r.extra.raw,r.value=r.extra.expressionValue;let n=this.castNodeTo(t,"ExpressionStatement");return n.expression=r,n.directive=r.extra.rawValue,delete r.extra,n}fillOptionalPropertiesForTSESLint(t){}cloneEstreeStringLiteral(t){let{start:r,end:n,loc:o,range:i,raw:a,value:s}=t,c=Object.create(t.constructor.prototype);return c.type="Literal",c.start=r,c.end=n,c.loc=o,c.range=i,c.raw=a,c.value=s,c}initFunction(t,r){super.initFunction(t,r),t.expression=!1}checkDeclaration(t){t!=null&&this.isObjectProperty(t)?this.checkDeclaration(t.value):super.checkDeclaration(t)}getObjectOrClassMethodParams(t){return t.value.params}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&!t.expression.extra?.parenthesized}parseBlockBody(t,r,n,o,i){super.parseBlockBody(t,r,n,o,i);let a=t.directives.map(s=>this.directiveToStmt(s));t.body=a.concat(t.body),delete t.directives}parsePrivateName(){let t=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(t)}convertPrivateNameToPrivateIdentifier(t){let r=super.getPrivateNameSV(t);return delete t.id,t.name=r,this.castNodeTo(t,"PrivateIdentifier")}isPrivateName(t){return t.type==="PrivateIdentifier"}getPrivateNameSV(t){return t.name}parseLiteral(t,r){let n=super.parseLiteral(t,r);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(t,r,n=!1){super.parseFunctionBody(t,r,n),t.expression=t.body.type!=="BlockStatement"}parseMethod(t,r,n,o,i,a,s=!1){let c=this.startNode();c.kind=t.kind,c=super.parseMethod(c,r,n,o,i,a,s),delete c.kind;let{typeParameters:p}=t;p&&(delete t.typeParameters,c.typeParameters=p,this.resetStartLocationFromNode(c,p));let d=this.castNodeTo(c,this.hasPlugin("typescript")&&!c.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return t.value=d,a==="ClassPrivateMethod"&&(t.computed=!1),this.hasPlugin("typescript")&&t.abstract?(delete t.abstract,this.finishNode(t,"TSAbstractMethodDefinition")):a==="ObjectMethod"?(t.kind==="method"&&(t.kind="init"),t.shorthand=!1,this.finishNode(t,"Property")):this.finishNode(t,"MethodDefinition")}nameIsConstructor(t){return t.type==="Literal"?t.value==="constructor":super.nameIsConstructor(t)}parseClassProperty(...t){let r=super.parseClassProperty(...t);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractPropertyDefinition")):this.castNodeTo(r,"PropertyDefinition"),r}parseClassPrivateProperty(...t){let r=super.parseClassPrivateProperty(...t);return r.abstract&&this.hasPlugin("typescript")?this.castNodeTo(r,"TSAbstractPropertyDefinition"):this.castNodeTo(r,"PropertyDefinition"),r.computed=!1,r}parseClassAccessorProperty(t){let r=super.parseClassAccessorProperty(t);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractAccessorProperty")):this.castNodeTo(r,"AccessorProperty"),r}parseObjectProperty(t,r,n,o){let i=super.parseObjectProperty(t,r,n,o);return i&&(i.kind="init",this.castNodeTo(i,"Property")),i}finishObjectProperty(t){return t.kind="init",this.finishNode(t,"Property")}isValidLVal(t,r,n,o){return t==="Property"?"value":super.isValidLVal(t,r,n,o)}isAssignable(t,r){return t!=null&&this.isObjectProperty(t)?this.isAssignable(t.value,r):super.isAssignable(t,r)}toAssignable(t,r=!1){if(t!=null&&this.isObjectProperty(t)){let{key:n,value:o}=t;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(o,r)}else super.toAssignable(t,r)}toAssignableObjectExpressionProp(t,r,n){t.type==="Property"&&(t.kind==="get"||t.kind==="set")?this.raise(W.PatternHasAccessor,t.key):t.type==="Property"&&t.method?this.raise(W.PatternHasMethod,t.key):super.toAssignableObjectExpressionProp(t,r,n)}finishCallExpression(t,r){let n=super.finishCallExpression(t,r);return n.callee.type==="Import"?(this.castNodeTo(n,"ImportExpression"),n.source=n.arguments[0],n.options=n.arguments[1]??null,delete n.arguments,delete n.callee):n.type==="OptionalCallExpression"?this.castNodeTo(n,"CallExpression"):n.optional=!1,n}toReferencedArguments(t){t.type!=="ImportExpression"&&super.toReferencedArguments(t)}parseExport(t,r){let n=this.state.lastTokStartLoc,o=super.parseExport(t,r);switch(o.type){case"ExportAllDeclaration":o.exported=null;break;case"ExportNamedDeclaration":o.specifiers.length===1&&o.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(o,"ExportAllDeclaration"),o.exported=o.specifiers[0].exported,delete o.specifiers);case"ExportDefaultDeclaration":{let{declaration:i}=o;i?.type==="ClassDeclaration"&&i.decorators?.length>0&&i.start===o.start&&this.resetStartLocation(o,n)}break}return o}stopParseSubscript(t,r){let n=super.stopParseSubscript(t,r);return r.optionalChainMember?this.estreeParseChainExpression(n,t.loc.end):n}parseMember(t,r,n,o,i){let a=super.parseMember(t,r,n,o,i);return a.type==="OptionalMemberExpression"?this.castNodeTo(a,"MemberExpression"):a.optional=!1,a}isOptionalMemberExpression(t){return t.type==="ChainExpression"?t.expression.type==="MemberExpression":super.isOptionalMemberExpression(t)}hasPropertyAsPrivateName(t){return t.type==="ChainExpression"&&(t=t.expression),super.hasPropertyAsPrivateName(t)}isObjectProperty(t){return t.type==="Property"&&t.kind==="init"&&!t.method}isObjectMethod(t){return t.type==="Property"&&(t.method||t.kind==="get"||t.kind==="set")}castNodeTo(t,r){let n=super.castNodeTo(t,r);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(t){let r=super.cloneIdentifier(t);return this.fillOptionalPropertiesForTSESLint(r),r}cloneStringLiteral(t){return t.type==="Literal"?this.cloneEstreeStringLiteral(t):super.cloneStringLiteral(t)}finishNodeAt(t,r,n){return rD(super.finishNodeAt(t,r,n))}finishNode(t,r){let n=super.finishNode(t,r);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(t,r){super.resetStartLocation(t,r),rD(t)}resetEndLocation(t,r=this.state.lastTokEndLoc){super.resetEndLocation(t,r),rD(t)}},v3=class{constructor(e,t){this.token=e,this.preserveSpace=!!t}token;preserveSpace},Lo={brace:new v3("{"),j_oTag:new v3("...",!0)},Xr=!0,ct=!0,Jq=!0,nD=!0,qm=!0,Oze=!0,_pe=class{label;keyword;beforeExpr;startsExpr;rightAssociative;isLoop;isAssign;prefix;postfix;binop;constructor(e,t={}){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=t.binop!=null?t.binop:null}},sU=new Map;function wn(e,t={}){t.keyword=e;let r=Wt(e,t);return sU.set(e,r),r}function Cs(e,t){return Wt(e,{beforeExpr:Xr,binop:t})}var cD=-1,cU=[],lU=[],uU=[],pU=[],dU=[],_U=[];function Wt(e,t={}){return++cD,lU.push(e),uU.push(t.binop??-1),pU.push(t.beforeExpr??!1),dU.push(t.startsExpr??!1),_U.push(t.prefix??!1),cU.push(new _pe(e,t)),cD}function cn(e,t={}){return++cD,sU.set(e,cD),lU.push(e),uU.push(t.binop??-1),pU.push(t.beforeExpr??!1),dU.push(t.startsExpr??!1),_U.push(t.prefix??!1),cU.push(new _pe("name",t)),cD}var Nze={bracketL:Wt("[",{beforeExpr:Xr,startsExpr:ct}),bracketHashL:Wt("#[",{beforeExpr:Xr,startsExpr:ct}),bracketBarL:Wt("[|",{beforeExpr:Xr,startsExpr:ct}),bracketR:Wt("]"),bracketBarR:Wt("|]"),braceL:Wt("{",{beforeExpr:Xr,startsExpr:ct}),braceBarL:Wt("{|",{beforeExpr:Xr,startsExpr:ct}),braceHashL:Wt("#{",{beforeExpr:Xr,startsExpr:ct}),braceR:Wt("}"),braceBarR:Wt("|}"),parenL:Wt("(",{beforeExpr:Xr,startsExpr:ct}),parenR:Wt(")"),comma:Wt(",",{beforeExpr:Xr}),semi:Wt(";",{beforeExpr:Xr}),colon:Wt(":",{beforeExpr:Xr}),doubleColon:Wt("::",{beforeExpr:Xr}),dot:Wt("."),question:Wt("?",{beforeExpr:Xr}),questionDot:Wt("?."),arrow:Wt("=>",{beforeExpr:Xr}),template:Wt("template"),ellipsis:Wt("...",{beforeExpr:Xr}),backQuote:Wt("`",{startsExpr:ct}),dollarBraceL:Wt("${",{beforeExpr:Xr,startsExpr:ct}),templateTail:Wt("...`",{startsExpr:ct}),templateNonTail:Wt("...${",{beforeExpr:Xr,startsExpr:ct}),at:Wt("@"),hash:Wt("#",{startsExpr:ct}),interpreterDirective:Wt("#!..."),eq:Wt("=",{beforeExpr:Xr,isAssign:nD}),assign:Wt("_=",{beforeExpr:Xr,isAssign:nD}),slashAssign:Wt("_=",{beforeExpr:Xr,isAssign:nD}),xorAssign:Wt("_=",{beforeExpr:Xr,isAssign:nD}),moduloAssign:Wt("_=",{beforeExpr:Xr,isAssign:nD}),incDec:Wt("++/--",{prefix:qm,postfix:Oze,startsExpr:ct}),bang:Wt("!",{beforeExpr:Xr,prefix:qm,startsExpr:ct}),tilde:Wt("~",{beforeExpr:Xr,prefix:qm,startsExpr:ct}),doubleCaret:Wt("^^",{startsExpr:ct}),doubleAt:Wt("@@",{startsExpr:ct}),pipeline:Cs("|>",0),nullishCoalescing:Cs("??",1),logicalOR:Cs("||",1),logicalAND:Cs("&&",2),bitwiseOR:Cs("|",3),bitwiseXOR:Cs("^",4),bitwiseAND:Cs("&",5),equality:Cs("==/!=/===/!==",6),lt:Cs("/<=/>=",7),gt:Cs("/<=/>=",7),relational:Cs("/<=/>=",7),bitShift:Cs("<>/>>>",8),bitShiftL:Cs("<>/>>>",8),bitShiftR:Cs("<>/>>>",8),plusMin:Wt("+/-",{beforeExpr:Xr,binop:9,prefix:qm,startsExpr:ct}),modulo:Wt("%",{binop:10,startsExpr:ct}),star:Wt("*",{binop:10}),slash:Cs("/",10),exponent:Wt("**",{beforeExpr:Xr,binop:11,rightAssociative:!0}),_in:wn("in",{beforeExpr:Xr,binop:7}),_instanceof:wn("instanceof",{beforeExpr:Xr,binop:7}),_break:wn("break"),_case:wn("case",{beforeExpr:Xr}),_catch:wn("catch"),_continue:wn("continue"),_debugger:wn("debugger"),_default:wn("default",{beforeExpr:Xr}),_else:wn("else",{beforeExpr:Xr}),_finally:wn("finally"),_function:wn("function",{startsExpr:ct}),_if:wn("if"),_return:wn("return",{beforeExpr:Xr}),_switch:wn("switch"),_throw:wn("throw",{beforeExpr:Xr,prefix:qm,startsExpr:ct}),_try:wn("try"),_var:wn("var"),_const:wn("const"),_with:wn("with"),_new:wn("new",{beforeExpr:Xr,startsExpr:ct}),_this:wn("this",{startsExpr:ct}),_super:wn("super",{startsExpr:ct}),_class:wn("class",{startsExpr:ct}),_extends:wn("extends",{beforeExpr:Xr}),_export:wn("export"),_import:wn("import",{startsExpr:ct}),_null:wn("null",{startsExpr:ct}),_true:wn("true",{startsExpr:ct}),_false:wn("false",{startsExpr:ct}),_typeof:wn("typeof",{beforeExpr:Xr,prefix:qm,startsExpr:ct}),_void:wn("void",{beforeExpr:Xr,prefix:qm,startsExpr:ct}),_delete:wn("delete",{beforeExpr:Xr,prefix:qm,startsExpr:ct}),_do:wn("do",{isLoop:Jq,beforeExpr:Xr}),_for:wn("for",{isLoop:Jq}),_while:wn("while",{isLoop:Jq}),_as:cn("as",{startsExpr:ct}),_assert:cn("assert",{startsExpr:ct}),_async:cn("async",{startsExpr:ct}),_await:cn("await",{startsExpr:ct}),_defer:cn("defer",{startsExpr:ct}),_from:cn("from",{startsExpr:ct}),_get:cn("get",{startsExpr:ct}),_let:cn("let",{startsExpr:ct}),_meta:cn("meta",{startsExpr:ct}),_of:cn("of",{startsExpr:ct}),_sent:cn("sent",{startsExpr:ct}),_set:cn("set",{startsExpr:ct}),_source:cn("source",{startsExpr:ct}),_static:cn("static",{startsExpr:ct}),_using:cn("using",{startsExpr:ct}),_yield:cn("yield",{startsExpr:ct}),_asserts:cn("asserts",{startsExpr:ct}),_checks:cn("checks",{startsExpr:ct}),_exports:cn("exports",{startsExpr:ct}),_global:cn("global",{startsExpr:ct}),_implements:cn("implements",{startsExpr:ct}),_intrinsic:cn("intrinsic",{startsExpr:ct}),_infer:cn("infer",{startsExpr:ct}),_is:cn("is",{startsExpr:ct}),_mixins:cn("mixins",{startsExpr:ct}),_proto:cn("proto",{startsExpr:ct}),_require:cn("require",{startsExpr:ct}),_satisfies:cn("satisfies",{startsExpr:ct}),_keyof:cn("keyof",{startsExpr:ct}),_readonly:cn("readonly",{startsExpr:ct}),_unique:cn("unique",{startsExpr:ct}),_abstract:cn("abstract",{startsExpr:ct}),_declare:cn("declare",{startsExpr:ct}),_enum:cn("enum",{startsExpr:ct}),_module:cn("module",{startsExpr:ct}),_namespace:cn("namespace",{startsExpr:ct}),_interface:cn("interface",{startsExpr:ct}),_type:cn("type",{startsExpr:ct}),_opaque:cn("opaque",{startsExpr:ct}),name:Wt("name",{startsExpr:ct}),placeholder:Wt("%%",{startsExpr:ct}),string:Wt("string",{startsExpr:ct}),num:Wt("num",{startsExpr:ct}),bigint:Wt("bigint",{startsExpr:ct}),decimal:Wt("decimal",{startsExpr:ct}),regexp:Wt("regexp",{startsExpr:ct}),privateName:Wt("#name",{startsExpr:ct}),eof:Wt("eof"),jsxName:Wt("jsxName"),jsxText:Wt("jsxText",{beforeExpr:Xr}),jsxTagStart:Wt("jsxTagStart",{startsExpr:ct}),jsxTagEnd:Wt("jsxTagEnd")};function Qn(e){return e>=93&&e<=133}function Fze(e){return e<=92}function Ou(e){return e>=58&&e<=133}function fpe(e){return e>=58&&e<=137}function Rze(e){return pU[e]}function aD(e){return dU[e]}function Lze(e){return e>=29&&e<=33}function zue(e){return e>=129&&e<=131}function $ze(e){return e>=90&&e<=92}function fU(e){return e>=58&&e<=92}function Mze(e){return e>=39&&e<=59}function jze(e){return e===34}function Bze(e){return _U[e]}function qze(e){return e>=121&&e<=123}function Uze(e){return e>=124&&e<=130}function Vm(e){return lU[e]}function D3(e){return uU[e]}function zze(e){return e===57}function Xq(e){return e>=24&&e<=25}function mpe(e){return cU[e]}var mU="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\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\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",hpe="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",Jze=new RegExp("["+mU+"]"),Vze=new RegExp("["+mU+hpe+"]");mU=hpe=null;var ype=[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],Kze=[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 Yq(e,t){let r=65536;for(let n=0,o=t.length;ne)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function ed(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Jze.test(String.fromCharCode(e)):Yq(e,ype)}function Sg(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Vze.test(String.fromCharCode(e)):Yq(e,ype)||Yq(e,Kze)}var hU={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Gze=new Set(hU.keyword),Hze=new Set(hU.strict),Zze=new Set(hU.strictBind);function gpe(e,t){return t&&e==="await"||e==="enum"}function Spe(e,t){return gpe(e,t)||Hze.has(e)}function vpe(e){return Zze.has(e)}function bpe(e,t){return Spe(e,t)||vpe(e)}function Wze(e){return Gze.has(e)}function Qze(e,t,r){return e===64&&t===64&&ed(r)}var Xze=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"]);function Yze(e){return Xze.has(e)}var yU=class{flags=0;names=new Map;firstLexicalName="";constructor(e){this.flags=e}},gU=class{parser;scopeStack=[];inModule;undefinedExports=new Map;constructor(e,t){this.parser=e,this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&128)return!0;if(t&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new yU(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,t,r){let n=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(n,e,t,r);let o=n.names.get(e)||0;t&16?o=o|4:(n.firstLexicalName||(n.firstLexicalName=e),o=o|2),n.names.set(e,o),t&8&&this.maybeExportDefined(n,e)}else if(t&4)for(let o=this.scopeStack.length-1;o>=0&&(n=this.scopeStack[o],this.checkRedeclarationInScope(n,e,t,r),n.names.set(e,(n.names.get(e)||0)|1),this.maybeExportDefined(n,e),!(n.flags&1667));--o);this.parser.inModule&&n.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(W.VarRedeclaration,n,{identifierName:t})}isRedeclaredInScope(e,t,r){if(!(r&1))return!1;if(r&8)return e.names.has(t);let n=e.names.get(t)||0;return r&16?(n&2)>0||!this.treatFunctionsAsVarInScope(e)&&(n&1)>0:(n&2)>0&&!(e.flags&8&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(n&4)>0}checkLocalExport(e){let{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--){let{flags:t}=this.scopeStack[e];if(t&1667)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&1731&&!(t&4))return t}}},eJe=class extends yU{declareFunctions=new Set},tJe=class extends gU{createScope(e){return new eJe(e)}declareName(e,t,r){let n=this.currentScope();if(t&2048){this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e),n.declareFunctions.add(e);return}super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){if(super.isRedeclaredInScope(e,t,r))return!0;if(r&2048&&!e.declareFunctions.has(t)){let n=e.names.get(t);return(n&4)>0||(n&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},rJe=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Xt=Yp`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."},{}),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 ` async () => {}`, use `async () => {}`.",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 nJe(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function Jue(e){return e.importKind==="type"||e.importKind==="typeof"}var oJe={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function iJe(e,t){let r=[],n=[];for(let o=0;oclass extends e{flowPragma=void 0;getScopeHandler(){return tJe}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(t,r){t!==134&&t!==13&&t!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(t,r)}addComment(t){if(this.flowPragma===void 0){let r=aJe.exec(t.value);if(r)if(r[1]==="flow")this.flowPragma="flow";else if(r[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(t)}flowParseTypeInitialiser(t){let r=this.state.inType;this.state.inType=!0,this.expect(t||14);let n=this.flowParseType();return this.state.inType=r,n}flowParsePredicate(){let t=this.startNode(),r=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>r.index+1&&this.raise(Xt.UnexpectedSpaceBetweenModuloChecks,r),this.eat(10)?(t.value=super.parseExpression(),this.expect(11),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let t=this.state.inType;this.state.inType=!0,this.expect(14);let r=null,n=null;return this.match(54)?(this.state.inType=t,n=this.flowParsePredicate()):(r=this.flowParseType(),this.state.inType=t,this.match(54)&&(n=this.flowParsePredicate())),[r,n]}flowParseDeclareClass(t){return this.next(),this.flowParseInterfaceish(t,!0),this.finishNode(t,"DeclareClass")}flowParseDeclareFunction(t){this.next();let r=t.id=this.parseIdentifier(),n=this.startNode(),o=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);let i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),o.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),r.typeAnnotation=this.finishNode(o,"TypeAnnotation"),this.resetEndLocation(r),this.semicolon(),this.scope.declareName(t.id.name,2048,t.id.loc.start),this.finishNode(t,"DeclareFunction")}flowParseDeclare(t,r){if(this.match(80))return this.flowParseDeclareClass(t);if(this.match(68))return this.flowParseDeclareFunction(t);if(this.match(74))return this.flowParseDeclareVariable(t);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(t):(r&&this.raise(Xt.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(t));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(t);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(t);if(this.isContextual(129))return this.flowParseDeclareInterface(t);if(this.match(82))return this.flowParseDeclareExportDeclaration(t,r);throw this.unexpected()}flowParseDeclareVariable(t){return this.next(),t.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(t.id.name,5,t.id.loc.start),this.semicolon(),this.finishNode(t,"DeclareVariable")}flowParseDeclareModule(t){this.scope.enter(0),this.match(134)?t.id=super.parseExprAtom():t.id=this.parseIdentifier();let r=t.body=this.startNode(),n=r.body=[];for(this.expect(5);!this.match(8);){let a=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Xt.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),n.push(super.parseImport(a))):(this.expectContextual(125,Xt.UnsupportedStatementInDeclareModule),n.push(this.flowParseDeclare(a,!0)))}this.scope.exit(),this.expect(8),this.finishNode(r,"BlockStatement");let o=null,i=!1;return n.forEach(a=>{nJe(a)?(o==="CommonJS"&&this.raise(Xt.AmbiguousDeclareModuleKind,a),o="ES"):a.type==="DeclareModuleExports"&&(i&&this.raise(Xt.DuplicateDeclareModuleExports,a),o==="ES"&&this.raise(Xt.AmbiguousDeclareModuleKind,a),o="CommonJS",i=!0)}),t.kind=o||"CommonJS",this.finishNode(t,"DeclareModule")}flowParseDeclareExportDeclaration(t,r){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?t.declaration=this.flowParseDeclare(this.startNode()):(t.declaration=this.flowParseType(),this.semicolon()),t.default=!0,this.finishNode(t,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!r){let n=this.state.value;throw this.raise(Xt.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:n,suggestion:oJe[n]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return t.declaration=this.flowParseDeclare(this.startNode()),t.default=!1,this.finishNode(t,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return t=this.parseExport(t,null),t.type==="ExportNamedDeclaration"?(t.default=!1,delete t.exportKind,this.castNodeTo(t,"DeclareExportDeclaration")):this.castNodeTo(t,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(t){return this.next(),this.expectContextual(111),t.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(t,"DeclareModuleExports")}flowParseDeclareTypeAlias(t){this.next();let r=this.flowParseTypeAlias(t);return this.castNodeTo(r,"DeclareTypeAlias"),r}flowParseDeclareOpaqueType(t){this.next();let r=this.flowParseOpaqueType(t,!0);return this.castNodeTo(r,"DeclareOpaqueType"),r}flowParseDeclareInterface(t){return this.next(),this.flowParseInterfaceish(t,!1),this.finishNode(t,"DeclareInterface")}flowParseInterfaceish(t,r){if(t.id=this.flowParseRestrictedIdentifier(!r,!0),this.scope.declareName(t.id.name,r?17:8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.extends=[],this.eat(81))do t.extends.push(this.flowParseInterfaceExtends());while(!r&&this.eat(12));if(r){if(t.implements=[],t.mixins=[],this.eatContextual(117))do t.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do t.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}t.body=this.flowParseObjectType({allowStatic:r,allowExact:!1,allowSpread:!1,allowProto:r,allowInexact:!1})}flowParseInterfaceExtends(){let t=this.startNode();return t.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,this.finishNode(t,"InterfaceExtends")}flowParseInterface(t){return this.flowParseInterfaceish(t,!1),this.finishNode(t,"InterfaceDeclaration")}checkNotUnderscore(t){t==="_"&&this.raise(Xt.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(t,r,n){rJe.has(t)&&this.raise(n?Xt.AssignReservedType:Xt.UnexpectedReservedType,r,{reservedType:t})}flowParseRestrictedIdentifier(t,r){return this.checkReservedType(this.state.value,this.state.startLoc,r),this.parseIdentifier(t)}flowParseTypeAlias(t){return t.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(t,"TypeAlias")}flowParseOpaqueType(t,r){return this.expectContextual(130),t.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.supertype=null,this.match(14)&&(t.supertype=this.flowParseTypeInitialiser(14)),t.impltype=null,r||(t.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(t,"OpaqueType")}flowParseTypeParameter(t=!1){let r=this.state.startLoc,n=this.startNode(),o=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=o,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):t&&this.raise(Xt.MissingTypeParamDefault,r),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){let t=this.state.inType,r=this.startNode();r.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{let o=this.flowParseTypeParameter(n);r.params.push(o),o.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=t,this.finishNode(r,"TypeParameterDeclaration")}flowInTopLevelContext(t){if(this.curContext()!==Lo.brace){let r=this.state.context;this.state.context=[r[0]];try{return t()}finally{this.state.context=r}}else return t()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let t=this.startNode(),r=this.state.inType;return this.state.inType=!0,t.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)t.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=n}),this.state.inType=r,!this.state.inType&&this.curContext()===Lo.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let t=this.startNode(),r=this.state.inType;for(t.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)t.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=r,this.finishNode(t,"TypeParameterInstantiation")}flowParseInterfaceType(){let t=this.startNode();if(this.expectContextual(129),t.extends=[],this.eat(81))do t.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return t.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(t,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(t,r,n){return t.static=r,this.lookahead().type===14?(t.id=this.flowParseObjectPropertyKey(),t.key=this.flowParseTypeInitialiser()):(t.id=null,t.key=this.flowParseType()),this.expect(3),t.value=this.flowParseTypeInitialiser(),t.variance=n,this.finishNode(t,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(t,r){return t.static=r,t.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(t.method=!0,t.optional=!1,t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start))):(t.method=!1,this.eat(17)&&(t.optional=!0),t.value=this.flowParseTypeInitialiser()),this.finishNode(t,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(t){for(t.params=[],t.rest=null,t.typeParameters=null,t.this=null,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(t.this=this.flowParseFunctionTypeParam(!0),t.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),t.returnType=this.flowParseTypeInitialiser(),this.finishNode(t,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(t,r){let n=this.startNode();return t.static=r,t.value=this.flowParseObjectTypeMethodish(n),this.finishNode(t,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:t,allowExact:r,allowSpread:n,allowProto:o,allowInexact:i}){let a=this.state.inType;this.state.inType=!0;let s=this.startNode();s.callProperties=[],s.properties=[],s.indexers=[],s.internalSlots=[];let c,p,d=!1;for(r&&this.match(6)?(this.expect(6),c=9,p=!0):(this.expect(5),c=8,p=!1),s.exact=p;!this.match(c);){let m=!1,y=null,g=null,S=this.startNode();if(o&&this.isContextual(118)){let E=this.lookahead();E.type!==14&&E.type!==17&&(this.next(),y=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){let E=this.lookahead();E.type!==14&&E.type!==17&&(this.next(),m=!0)}let b=this.flowParseVariance();if(this.eat(0))y!=null&&this.unexpected(y),this.eat(0)?(b&&this.unexpected(b.loc.start),s.internalSlots.push(this.flowParseObjectTypeInternalSlot(S,m))):s.indexers.push(this.flowParseObjectTypeIndexer(S,m,b));else if(this.match(10)||this.match(47))y!=null&&this.unexpected(y),b&&this.unexpected(b.loc.start),s.callProperties.push(this.flowParseObjectTypeCallProperty(S,m));else{let E="init";if(this.isContextual(99)||this.isContextual(104)){let T=this.lookahead();fpe(T.type)&&(E=this.state.value,this.next())}let I=this.flowParseObjectTypeProperty(S,m,y,b,E,n,i??!p);I===null?(d=!0,g=this.state.lastTokStartLoc):s.properties.push(I)}this.flowObjectTypeSemicolon(),g&&!this.match(8)&&!this.match(9)&&this.raise(Xt.UnexpectedExplicitInexactInObject,g)}this.expect(c),n&&(s.inexact=d);let f=this.finishNode(s,"ObjectTypeAnnotation");return this.state.inType=a,f}flowParseObjectTypeProperty(t,r,n,o,i,a,s){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(a?s||this.raise(Xt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Xt.InexactInsideNonObject,this.state.lastTokStartLoc),o&&this.raise(Xt.InexactVariance,o),null):(a||this.raise(Xt.UnexpectedSpreadType,this.state.lastTokStartLoc),n!=null&&this.unexpected(n),o&&this.raise(Xt.SpreadVariance,o),t.argument=this.flowParseType(),this.finishNode(t,"ObjectTypeSpreadProperty"));{t.key=this.flowParseObjectPropertyKey(),t.static=r,t.proto=n!=null,t.kind=i;let c=!1;return this.match(47)||this.match(10)?(t.method=!0,n!=null&&this.unexpected(n),o&&this.unexpected(o.loc.start),t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start)),(i==="get"||i==="set")&&this.flowCheckGetterSetterParams(t),!a&&t.key.name==="constructor"&&t.value.this&&this.raise(Xt.ThisParamBannedInConstructor,t.value.this)):(i!=="init"&&this.unexpected(),t.method=!1,this.eat(17)&&(c=!0),t.value=this.flowParseTypeInitialiser(),t.variance=o),t.optional=c,this.finishNode(t,"ObjectTypeProperty")}}flowCheckGetterSetterParams(t){let r=t.kind==="get"?0:1,n=t.value.params.length+(t.value.rest?1:0);t.value.this&&this.raise(t.kind==="get"?Xt.GetterMayNotHaveThisParam:Xt.SetterMayNotHaveThisParam,t.value.this),n!==r&&this.raise(t.kind==="get"?W.BadGetterArity:W.BadSetterArity,t),t.kind==="set"&&t.value.rest&&this.raise(W.BadSetterRestParameter,t)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(t,r){t??(t=this.state.startLoc);let n=r||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let o=this.startNodeAt(t);o.qualification=n,o.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(o,"QualifiedTypeIdentifier")}return n}flowParseGenericType(t,r){let n=this.startNodeAt(t);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(t,r),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){let t=this.startNode();return this.expect(87),t.argument=this.flowParsePrimaryType(),this.finishNode(t,"TypeofTypeAnnotation")}flowParseTupleType(){let t=this.startNode();for(t.types=[],this.expect(0);this.state.possuper.parseFunctionBody(t,!0,n));return}super.parseFunctionBody(t,!1,n)}parseFunctionBodyAndFinish(t,r,n=!1){if(this.match(14)){let o=this.startNode();[o.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),t.returnType=o.typeAnnotation?this.finishNode(o,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(t,r,n)}parseStatementLike(t){if(this.state.strict&&this.isContextual(129)){let n=this.lookahead();if(Ou(n.type)){let o=this.startNode();return this.next(),this.flowParseInterface(o)}}else if(this.isContextual(126)){let n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}let r=super.parseStatementLike(t);return this.flowPragma===void 0&&!this.isValidDirective(r)&&(this.flowPragma=null),r}parseExpressionStatement(t,r,n){if(r.type==="Identifier"){if(r.name==="declare"){if(this.match(80)||Qn(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(t)}else if(Qn(this.state.type)){if(r.name==="interface")return this.flowParseInterface(t);if(r.name==="type")return this.flowParseTypeAlias(t);if(r.name==="opaque")return this.flowParseOpaqueType(t,!1)}}return super.parseExpressionStatement(t,r,n)}shouldParseExportDeclaration(){let{type:t}=this.state;return t===126||zue(t)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:t}=this.state;return t===126||zue(t)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDefaultExpression()}parseConditional(t,r,n){if(!this.match(17))return t;if(this.state.maybeInArrowParameters){let f=this.lookaheadCharCode();if(f===44||f===61||f===58||f===41)return this.setOptionalParametersError(n),t}this.expect(17);let o=this.state.clone(),i=this.state.noArrowAt,a=this.startNodeAt(r),{consequent:s,failed:c}=this.tryParseConditionalConsequent(),[p,d]=this.getArrowLikeExpressions(s);if(c||d.length>0){let f=[...i];if(d.length>0){this.state=o,this.state.noArrowAt=f;for(let m=0;m1&&this.raise(Xt.AmbiguousConditionalArrow,o.startLoc),c&&p.length===1&&(this.state=o,f.push(p[0].start),this.state.noArrowAt=f,{consequent:s,failed:c}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(s,!0),this.state.noArrowAt=i,this.expect(14),a.test=t,a.consequent=s,a.alternate=this.forwardNoArrowParamsConversionAt(a,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(a,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let t=this.parseMaybeAssignAllowIn(),r=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:t,failed:r}}getArrowLikeExpressions(t,r){let n=[t],o=[];for(;n.length!==0;){let i=n.pop();i.type==="ArrowFunctionExpression"&&i.body.type!=="BlockStatement"?(i.typeParameters||!i.returnType?this.finishArrowValidation(i):o.push(i),n.push(i.body)):i.type==="ConditionalExpression"&&(n.push(i.consequent),n.push(i.alternate))}return r?(o.forEach(i=>this.finishArrowValidation(i)),[o,[]]):iJe(o,i=>i.params.every(a=>this.isAssignable(a,!0)))}finishArrowValidation(t){this.toAssignableList(t.params,t.extra?.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(t,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(t,r){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=r(),this.state.noArrowParamsConversionAt.pop()):n=r(),n}parseParenItem(t,r){let n=super.parseParenItem(t,r);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(t)),this.match(14)){let o=this.startNodeAt(r);return o.expression=n,o.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(o,"TypeCastExpression")}return n}assertModuleNodeAllowed(t){t.type==="ImportDeclaration"&&(t.importKind==="type"||t.importKind==="typeof")||t.type==="ExportNamedDeclaration"&&t.exportKind==="type"||t.type==="ExportAllDeclaration"&&t.exportKind==="type"||super.assertModuleNodeAllowed(t)}parseExportDeclaration(t){if(this.isContextual(130)){t.exportKind="type";let r=this.startNode();return this.next(),this.match(5)?(t.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(t),null):this.flowParseTypeAlias(r)}else if(this.isContextual(131)){t.exportKind="type";let r=this.startNode();return this.next(),this.flowParseOpaqueType(r,!1)}else if(this.isContextual(129)){t.exportKind="type";let r=this.startNode();return this.next(),this.flowParseInterface(r)}else if(this.isContextual(126)){t.exportKind="value";let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}else return super.parseExportDeclaration(t)}eatExportStar(t){return super.eatExportStar(t)?!0:this.isContextual(130)&&this.lookahead().type===55?(t.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(t){let{startLoc:r}=this.state,n=super.maybeParseExportNamespaceSpecifier(t);return n&&t.exportKind==="type"&&this.unexpected(r),n}parseClassId(t,r,n){super.parseClassId(t,r,n),this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(t,r,n){let{startLoc:o}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(t,r))return;r.declare=!0}super.parseClassMember(t,r,n),r.declare&&(r.type!=="ClassProperty"&&r.type!=="ClassPrivateProperty"&&r.type!=="PropertyDefinition"?this.raise(Xt.DeclareClassElement,o):r.value&&this.raise(Xt.DeclareClassFieldInitializer,r.value))}isIterator(t){return t==="iterator"||t==="asyncIterator"}readIterator(){let t=super.readWord1(),r="@@"+t;(!this.isIterator(t)||!this.state.inType)&&this.raise(W.InvalidIdentifier,this.state.curPosition(),{identifierName:r}),this.finishToken(132,r)}getTokenFromCode(t){let r=this.input.charCodeAt(this.state.pos+1);t===123&&r===124?this.finishOp(6,2):this.state.inType&&(t===62||t===60)?this.finishOp(t===62?48:47,1):this.state.inType&&t===63?r===46?this.finishOp(18,2):this.finishOp(17,1):Qze(t,r,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(t)}isAssignable(t,r){return t.type==="TypeCastExpression"?this.isAssignable(t.expression,r):super.isAssignable(t,r)}toAssignable(t,r=!1){!r&&t.type==="AssignmentExpression"&&t.left.type==="TypeCastExpression"&&(t.left=this.typeCastToParameter(t.left)),super.toAssignable(t,r)}toAssignableList(t,r,n){for(let o=0;o1||!r)&&this.raise(Xt.TypeCastInPattern,o.typeAnnotation)}return t}parseArrayLike(t,r,n){let o=super.parseArrayLike(t,r,n);return n!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(o.elements),o}isValidLVal(t,r,n,o){return t==="TypeCastExpression"||super.isValidLVal(t,r,n,o)}parseClassProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(t)}parseClassPrivateProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(t){return!this.match(14)&&super.isNonstaticConstructor(t)}pushClassMethod(t,r,n,o,i,a){if(r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(t,r,n,o,i,a),r.params&&i){let s=r.params;s.length>0&&this.isThisParam(s[0])&&this.raise(Xt.ThisParamBannedInConstructor,r)}else if(r.type==="MethodDefinition"&&i&&r.value.params){let s=r.value.params;s.length>0&&this.isThisParam(s[0])&&this.raise(Xt.ThisParamBannedInConstructor,r)}}pushClassPrivateMethod(t,r,n,o){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(t,r,n,o)}parseClassSuper(t){if(super.parseClassSuper(t),t.superClass&&(this.match(47)||this.match(51))&&(t.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let r=t.implements=[];do{let n=this.startNode();n.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?n.typeParameters=this.flowParseTypeParameterInstantiation():n.typeParameters=null,r.push(this.finishNode(n,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(t){super.checkGetterSetterParams(t);let r=this.getObjectOrClassMethodParams(t);if(r.length>0){let n=r[0];this.isThisParam(n)&&t.kind==="get"?this.raise(Xt.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(Xt.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(t){t.variance=this.flowParseVariance()}parseObjPropValue(t,r,n,o,i,a,s){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance;let c;this.match(47)&&!a&&(c=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let p=super.parseObjPropValue(t,r,n,o,i,a,s);return c&&((p.value||p).typeParameters=c),p}parseFunctionParamType(t){return this.eat(17)&&(t.type!=="Identifier"&&this.raise(Xt.PatternIsOptional,t),this.isThisParam(t)&&this.raise(Xt.ThisParamMayNotBeOptional,t),t.optional=!0),this.match(14)?t.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(t)&&this.raise(Xt.ThisParamAnnotationRequired,t),this.match(29)&&this.isThisParam(t)&&this.raise(Xt.ThisParamNoDefault,t),this.resetEndLocation(t),t}parseMaybeDefault(t,r){let n=super.parseMaybeDefault(t,r);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.startsuper.parseMaybeAssign(t,r),n),!o.error)return o.node;let{context:i}=this.state,a=i[i.length-1];(a===Lo.j_oTag||a===Lo.j_expr)&&i.pop()}if(o?.error||this.match(47)){n=n||this.state.clone();let i,a=this.tryParse(c=>{i=this.flowParseTypeParameterDeclaration();let p=this.forwardNoArrowParamsConversionAt(i,()=>{let f=super.parseMaybeAssign(t,r);return this.resetStartLocationFromNode(f,i),f});p.extra?.parenthesized&&c();let d=this.maybeUnwrapTypeCastExpression(p);return d.type!=="ArrowFunctionExpression"&&c(),d.typeParameters=i,this.resetStartLocationFromNode(d,i),p},n),s=null;if(a.node&&this.maybeUnwrapTypeCastExpression(a.node).type==="ArrowFunctionExpression"){if(!a.error&&!a.aborted)return a.node.async&&this.raise(Xt.UnexpectedTypeParameterBeforeAsyncArrowFunction,i),a.node;s=a.node}if(o?.node)return this.state=o.failState,o.node;if(s)return this.state=a.failState,s;throw o?.thrown?o.error:a.thrown?a.error:this.raise(Xt.UnexpectedTokenAfterTypeParameter,i)}return super.parseMaybeAssign(t,r)}parseArrow(t){if(this.match(14)){let r=this.tryParse(()=>{let n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let o=this.startNode();return[o.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=n,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),o});if(r.thrown)return null;r.error&&(this.state=r.failState),t.returnType=r.node.typeAnnotation?this.finishNode(r.node,"TypeAnnotation"):null}return super.parseArrow(t)}shouldParseArrow(t){return this.match(14)||super.shouldParseArrow(t)}setArrowFunctionParameters(t,r){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start))?t.params=r:super.setArrowFunctionParameters(t,r)}checkParams(t,r,n,o=!0){if(!(n&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start)))){for(let i=0;i0&&this.raise(Xt.ThisParamMustBeFirst,t.params[i]);super.checkParams(t,r,n,o)}}parseParenAndDistinguishExpression(t){return super.parseParenAndDistinguishExpression(t&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(t,r,n){if(t.type==="Identifier"&&t.name==="async"&&this.state.noArrowAt.includes(r.index)){this.next();let o=this.startNodeAt(r);o.callee=t,o.arguments=super.parseCallExpressionArguments(),t=this.finishNode(o,"CallExpression")}else if(t.type==="Identifier"&&t.name==="async"&&this.match(47)){let o=this.state.clone(),i=this.tryParse(s=>this.parseAsyncArrowWithTypeParameters(r)||s(),o);if(!i.error&&!i.aborted)return i.node;let a=this.tryParse(()=>super.parseSubscripts(t,r,n),o);if(a.node&&!a.error)return a.node;if(i.node)return this.state=i.failState,i.node;if(a.node)return this.state=a.failState,a.node;throw i.error||a.error}return super.parseSubscripts(t,r,n)}parseSubscript(t,r,n,o){if(this.match(18)&&this.isLookaheadToken_lt()){if(o.optionalChainMember=!0,n)return o.stop=!0,t;this.next();let i=this.startNodeAt(r);return i.callee=t,i.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),i.arguments=this.parseCallExpressionArguments(),i.optional=!0,this.finishCallExpression(i,!0)}else if(!n&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let i=this.startNodeAt(r);i.callee=t;let a=this.tryParse(()=>(i.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),i.arguments=super.parseCallExpressionArguments(),o.optionalChainMember&&(i.optional=!1),this.finishCallExpression(i,o.optionalChainMember)));if(a.node)return a.error&&(this.state=a.failState),a.node}return super.parseSubscript(t,r,n,o)}parseNewCallee(t){super.parseNewCallee(t);let r=null;this.shouldParseTypes()&&this.match(47)&&(r=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),t.typeArguments=r}parseAsyncArrowWithTypeParameters(t){let r=this.startNodeAt(t);if(this.parseFunctionParams(r,!1),!!this.parseArrow(r))return super.parseArrowExpression(r,void 0,!0)}readToken_mult_modulo(t){let r=this.input.charCodeAt(this.state.pos+1);if(t===42&&r===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(t)}readToken_pipe_amp(t){let r=this.input.charCodeAt(this.state.pos+1);if(t===124&&r===125){this.finishOp(9,2);return}super.readToken_pipe_amp(t)}parseTopLevel(t,r){let n=super.parseTopLevel(t,r);return this.state.hasFlowComment&&this.raise(Xt.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Xt.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let t=this.skipFlowComment();t&&(this.state.pos+=t,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:t}=this.state,r=2;for(;[32,9].includes(this.input.charCodeAt(t+r));)r++;let n=this.input.charCodeAt(r+t),o=this.input.charCodeAt(r+t+1);return n===58&&o===58?r+2:this.input.slice(r+t,r+t+12)==="flow-include"?r+12:n===58&&o!==58?r:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(W.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(t,{enumName:r,memberName:n}){this.raise(Xt.EnumBooleanMemberNotInitialized,t,{memberName:n,enumName:r})}flowEnumErrorInvalidMemberInitializer(t,r){return this.raise(r.explicitType?r.explicitType==="symbol"?Xt.EnumInvalidMemberInitializerSymbolType:Xt.EnumInvalidMemberInitializerPrimaryType:Xt.EnumInvalidMemberInitializerUnknownType,t,r)}flowEnumErrorNumberMemberNotInitialized(t,r){this.raise(Xt.EnumNumberMemberNotInitialized,t,r)}flowEnumErrorStringMemberInconsistentlyInitialized(t,r){this.raise(Xt.EnumStringMemberInconsistentlyInitialized,t,r)}flowEnumMemberInit(){let t=this.state.startLoc,r=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let n=this.parseNumericLiteral(this.state.value);return r()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:t}}case 134:{let n=this.parseStringLiteral(this.state.value);return r()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:t}}case 85:case 86:{let n=this.parseBooleanLiteral(this.match(85));return r()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:t}}default:return{type:"invalid",loc:t}}}flowEnumMemberRaw(){let t=this.state.startLoc,r=this.parseIdentifier(!0),n=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:t};return{id:r,init:n}}flowEnumCheckExplicitTypeMismatch(t,r,n){let{explicitType:o}=r;o!==null&&o!==n&&this.flowEnumErrorInvalidMemberInitializer(t,r)}flowEnumMembers({enumName:t,explicitType:r}){let n=new Set,o={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}let a=this.startNode(),{id:s,init:c}=this.flowEnumMemberRaw(),p=s.name;if(p==="")continue;/^[a-z]/.test(p)&&this.raise(Xt.EnumInvalidMemberName,s,{memberName:p,suggestion:p[0].toUpperCase()+p.slice(1),enumName:t}),n.has(p)&&this.raise(Xt.EnumDuplicateMemberName,s,{memberName:p,enumName:t}),n.add(p);let d={enumName:t,explicitType:r,memberName:p};switch(a.id=s,c.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"boolean"),a.init=c.value,o.booleanMembers.push(this.finishNode(a,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"number"),a.init=c.value,o.numberMembers.push(this.finishNode(a,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"string"),a.init=c.value,o.stringMembers.push(this.finishNode(a,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,d);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,d);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,d);break;default:o.defaultedMembers.push(this.finishNode(a,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:o,hasUnknownMembers:i}}flowEnumStringMembers(t,r,{enumName:n}){if(t.length===0)return r;if(r.length===0)return t;if(r.length>t.length){for(let o of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(o,{enumName:n});return r}else{for(let o of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(o,{enumName:n});return t}}flowEnumParseExplicitType({enumName:t}){if(!this.eatContextual(102))return null;if(!Qn(this.state.type))throw this.raise(Xt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});let{value:r}=this.state;return this.next(),r!=="boolean"&&r!=="number"&&r!=="string"&&r!=="symbol"&&this.raise(Xt.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:r}),r}flowEnumBody(t,r){let n=r.name,o=r.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);let{members:a,hasUnknownMembers:s}=this.flowEnumMembers({enumName:n,explicitType:i});switch(t.hasUnknownMembers=s,i){case"boolean":return t.explicitType=!0,t.members=a.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody");case"number":return t.explicitType=!0,t.members=a.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody");case"string":return t.explicitType=!0,t.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(t,"EnumStringBody");case"symbol":return t.members=a.defaultedMembers,this.expect(8),this.finishNode(t,"EnumSymbolBody");default:{let c=()=>(t.members=[],this.expect(8),this.finishNode(t,"EnumStringBody"));t.explicitType=!1;let p=a.booleanMembers.length,d=a.numberMembers.length,f=a.stringMembers.length,m=a.defaultedMembers.length;if(!p&&!d&&!f&&!m)return c();if(!p&&!d)return t.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(t,"EnumStringBody");if(!d&&!f&&p>=m){for(let y of a.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(y.loc.start,{enumName:n,memberName:y.id.name});return t.members=a.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody")}else if(!p&&!f&&d>=m){for(let y of a.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(y.loc.start,{enumName:n,memberName:y.id.name});return t.members=a.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody")}else return this.raise(Xt.EnumInconsistentMemberValues,o,{enumName:n}),c()}}}flowParseEnumDeclaration(t){let r=this.parseIdentifier();return t.id=r,t.body=this.flowEnumBody(this.startNode(),r),this.finishNode(t,"EnumDeclaration")}jsxParseOpeningElementAfterName(t){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(t.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(t)}isLookaheadToken_lt(){let t=this.nextTokenStart();if(this.input.charCodeAt(t)===60){let r=this.input.charCodeAt(t+1);return r!==60&&r!==61}return!1}reScan_lt_gt(){let{type:t}=this.state;t===47?(this.state.pos-=1,this.readToken_lt()):t===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:t}=this.state;return t===51?(this.state.pos-=2,this.finishOp(47,1),47):t}maybeUnwrapTypeCastExpression(t){return t.type==="TypeCastExpression"?t.expression:t}},cJe=/\r\n|[\r\n\u2028\u2029]/,b3=new RegExp(cJe.source,"g");function qv(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Vue(e,t,r){for(let n=t;n`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 Um(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function Bv(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return Bv(e.object)+"."+Bv(e.property);throw new Error("Node had unexpected type: "+e.type)}var uJe=e=>class extends e{jsxReadToken(){let t="",r=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(B_.UnterminatedJsxContent,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n);return}t+=this.input.slice(r,this.state.pos),this.finishToken(142,t);return;case 38:t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos;break;case 62:case 125:this.raise(B_.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:n===125?"}":">"});default:qv(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}}jsxReadNewLine(t){let r=this.input.charCodeAt(this.state.pos),n;return++this.state.pos,r===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=t?` `:`\r -`):n=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(t){let r="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(W.UnterminatedString,this.state.startLoc);let o=this.input.charCodeAt(this.state.pos);if(o===t)break;o===38?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadEntity(),n=this.state.pos):Mv(o)?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}r+=this.input.slice(n,this.state.pos++),this.finishToken(134,r)}jsxReadEntity(){let t=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let r=10;this.codePointAtPos(this.state.pos)===120&&(r=16,++this.state.pos);let n=this.readInt(r,void 0,!1,"bail");if(n!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(n)}else{let r=0,n=!1;for(;r++<10&&this.state.pos1){for(let n=0;n0){if(r&256){let o=!!(r&512),i=(n&4)>0;return o!==i}return!0}return r&128&&(n&8)>0?e.names.get(t)&2?!!(r&1):!1:r&2&&(n&1)>0?!0:super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let r=this.scopeStack.length;for(let n=r-1;n>=0;n--){let o=this.scopeStack[n].tsNames.get(t);if((o&1)>0||(o&16)>0)return}super.checkLocalExport(e)}},pVe=class{stacks=[];enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function T3(e,t){return(e?2:0)|(t?1:0)}var dVe=class{sawUnambiguousESM=!1;ambiguousScriptDifferentAst=!1;sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[t,r]=e;if(!this.hasPlugin(t))return!1;let n=this.plugins.get(t);for(let o of Object.keys(r))if(n?.[o]!==r[o])return!1;return!0}}getPluginOption(e,t){return this.plugins.get(e)?.[t]}};function vpe(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function _Ve(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function jv(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function fg(e,t,r){let n=null,o=t.length;for(;n===null&&o>0;)n=t[--o];n===null||n.start>r.start?jv(e,r.comments):vpe(n,r.comments)}var fVe=class extends dVe{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,r=t.length;if(r===0)return;let n=r-1,o=t[n];o.start===e.end&&(o.leadingNode=e,n--);let{start:i}=e;for(;n>=0;n--){let a=t[n],s=a.end;if(s>i)a.containingNode=e,this.finalizeComment(a),t.splice(n,1);else{s===i&&(a.trailingNode=e);break}}}finalizeComment(e){let{comments:t}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&vpe(e.leadingNode,t),e.trailingNode!==null&&_Ve(e.trailingNode,t);else{let r=e.containingNode,n=e.start;if(this.input.charCodeAt(this.offsetToSourcePos(n)-1)===44)switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":fg(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":fg(r,r.arguments,e);break;case"ImportExpression":fg(r,[r.source,r.options??null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":fg(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":fg(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":fg(r,r.specifiers,e);break;case"TSEnumDeclaration":jv(r,t);break;case"TSEnumBody":fg(r,r.members,e);break;default:jv(r,t)}else jv(r,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:r}=t;if(r===0)return;let n=t[r-1];n.leadingNode===e&&(n.leadingNode=null)}takeSurroundingComments(e,t,r){let{commentStack:n}=this.state,o=n.length;if(o===0)return;let i=o-1;for(;i>=0;i--){let a=n[i],s=a.end;if(a.start===r)a.leadingNode=e;else if(s===t)a.trailingNode=e;else if(s0}set strict(t){t?this.flags|=1:this.flags&=-2}startIndex;curLine;lineStart;startLoc;endLoc;init({strictMode:t,sourceType:r,startIndex:n,startLine:o,startColumn:i}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.startIndex=n,this.curLine=o,this.lineStart=-i,this.startLoc=this.endLoc=new qm(o,i,n)}errors=[];potentialArrowAt=-1;noArrowAt=[];noArrowParamsConversionAt=[];get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}labels=[];commentsLen=0;commentStack=[];pos=0;type=140;value=null;start=0;end=0;lastTokEndLoc=null;lastTokStartLoc=null;context=[Lo.brace];get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}firstInvalidTemplateEscapePos=null;get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}strictErrors=new Map;tokensLength=0;curPosition(){return new qm(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new bpe;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},hVe=function(e){return e>=48&&e<=57},Vue={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},v3={bin:e=>e===48||e===49,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 Jue(e,t,r,n,o,i){let a=r,s=n,c=o,p="",d=null,f=r,{length:m}=t;for(;;){if(r>=m){i.unterminated(a,s,c),p+=t.slice(f,r);break}let y=t.charCodeAt(r);if(yVe(e,y,t,r)){p+=t.slice(f,r);break}if(y===92){p+=t.slice(f,r);let g=gVe(t,r,n,o,e==="template",i);g.ch===null&&!d?d={pos:r,lineStart:n,curLine:o}:p+=g.ch,{pos:r,lineStart:n,curLine:o}=g,f=r}else y===8232||y===8233?(++r,++o,n=r):y===10||y===13?e==="template"?(p+=t.slice(f,r)+` -`,++r,y===13&&t.charCodeAt(r)===10&&++r,++o,f=n=r):i.unterminated(a,s,c):++r}return{pos:r,str:p,firstInvalidLoc:d,lineStart:n,curLine:o}}function yVe(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function gVe(e,t,r,n,o,i){let a=!o;t++;let s=p=>({pos:t,ch:p,lineStart:r,curLine:n}),c=e.charCodeAt(t++);switch(c){case 110:return s(` -`);case 114:return s("\r");case 120:{let p;return{code:p,pos:t}=Xq(e,t,r,n,2,!1,a,i),s(p===null?null:String.fromCharCode(p))}case 117:{let p;return{code:p,pos:t}=Epe(e,t,r,n,a,i),s(p===null?null:String.fromCodePoint(p))}case 116:return s(" ");case 98:return s("\b");case 118:return s("\v");case 102:return s("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return s("");case 56:case 57:if(o)return s(null);i.strictNumericEscape(t-1,r,n);default:if(c>=48&&c<=55){let p=t-1,d=/^[0-7]+/.exec(e.slice(p,t+2))[0],f=parseInt(d,8);f>255&&(d=d.slice(0,-1),f=parseInt(d,8)),t+=d.length-1;let m=e.charCodeAt(t);if(d!=="0"||m===56||m===57){if(o)return s(null);i.strictNumericEscape(p,r,n)}return s(String.fromCharCode(f))}return s(String.fromCharCode(c))}}function Xq(e,t,r,n,o,i,a,s){let c=t,p;return{n:p,pos:t}=xpe(e,t,r,n,16,o,i,!1,s,!a),p===null&&(a?s.invalidEscapeSequence(c,r,n):t=c-1),{code:p,pos:t}}function xpe(e,t,r,n,o,i,a,s,c,p){let d=t,f=o===16?Vue.hex:Vue.decBinOct,m=o===16?v3.hex:o===10?v3.dec:o===8?v3.oct:v3.bin,y=!1,g=0;for(let S=0,x=i??1/0;S=97?I=A-97+10:A>=65?I=A-65+10:hVe(A)?I=A-48:I=1/0,I>=o){if(I<=9&&p)return{n:null,pos:t};if(I<=9&&c.invalidDigit(t,r,n,o))I=0;else if(a)I=0,y=!0;else break}++t,g=g*o+I}return t===d||i!=null&&t-d!==i||y?{n:null,pos:t}:{n:g,pos:t}}function Epe(e,t,r,n,o,i){let a=e.charCodeAt(t),s;if(a===123){if(++t,{code:s,pos:t}=Xq(e,t,r,n,e.indexOf("}",t)-t,!0,o,i),++t,s!==null&&s>1114111)if(o)i.invalidCodePoint(t,r,n);else return{code:null,pos:t}}else({code:s,pos:t}=Xq(e,t,r,n,4,!1,o,i));return{code:s,pos:t}}function rD(e,t,r){return new qm(r,e-t,e)}var SVe=new Set([103,109,115,105,121,117,100,118]),vVe=class{constructor(e){let 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 w3(e.startLoc,e.endLoc)}},bVe=class extends fVe{isLookahead;tokens=[];constructor(e,t){super(),this.state=new mVe,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(),this.optionFlags&256&&this.pushToken(new vVe(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):!1}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(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return zq.lastIndex=e,zq.test(this.input)?zq.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 Vq.lastIndex=e,Vq.test(this.input)?Vq.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)===55296&&++ethis.raise(t,r)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let r=this.state.pos,n=this.input.indexOf(e,r+2);if(n===-1)throw this.raise(W.UnterminatedComment,this.state.curPosition());for(this.state.pos=n+e.length,S3.lastIndex=r+2;S3.test(this.input)&&S3.lastIndex<=n;)++this.state.curLine,this.state.lineStart=S3.lastIndex;if(this.isLookahead)return;let o={type:"CommentBlock",value:this.input.slice(r+2,n),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(n+e.length),loc:new w3(t,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(o),o}skipLineComment(e){let t=this.state.pos,r;this.isLookahead||(r=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pose)){let o=this.skipLineComment(3);o!==void 0&&(this.addComment(o),t?.push(o))}else break e}else if(r===60&&!this.inModule&&this.optionFlags&8192){let n=this.state.pos;if(this.input.charCodeAt(n+1)===33&&this.input.charCodeAt(n+2)===45&&this.input.charCodeAt(n+3)===45){let o=this.skipLineComment(4);o!==void 0&&(this.addComment(o),t?.push(o))}else break e}else break e}}if(t?.length>0){let 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();let 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(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(W.UnexpectedDigitAfterHash,this.state.curPosition());Yp(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):t===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let t=this.state.pos;for(this.state.pos+=1;!Mv(e)&&++this.state.pos=48&&t<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let t=this.input.charCodeAt(this.state.pos+1);if(t===120||t===88){this.readRadixNumber(16);return}if(t===111||t===79){this.readRadixNumber(8);return}if(t===98||t===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Yp(e)){this.readWord(e);return}}throw this.raise(W.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){let e=this.state.startLoc,t=this.state.start+1,r,n,{pos:o}=this.state;for(;;++o){if(o>=this.length)throw this.raise(W.UnterminatedRegExp,Fl(e,1));let c=this.input.charCodeAt(o);if(Mv(c))throw this.raise(W.UnterminatedRegExp,Fl(e,1));if(r)r=!1;else{if(c===91)n=!0;else if(c===93&&n)n=!1;else if(c===47&&!n)break;r=c===92}}let i=this.input.slice(t,o);++o;let a="",s=()=>Fl(e,o+2-t);for(;o=2&&this.input.charCodeAt(t)===48;if(a){let d=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(W.StrictOctalLiteral,r),!this.state.strict){let f=d.indexOf("_");f>0&&this.raise(W.ZeroDigitNumericSeparator,Fl(r,f))}i=a&&!/[89]/.test(d)}let s=this.input.charCodeAt(this.state.pos);if(s===46&&!i&&(++this.state.pos,this.readInt(10),n=!0,s=this.input.charCodeAt(this.state.pos)),(s===69||s===101)&&!i&&(s=this.input.charCodeAt(++this.state.pos),(s===43||s===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(W.InvalidOrMissingExponent,r),n=!0,s=this.input.charCodeAt(this.state.pos)),s===110&&((n||a)&&this.raise(W.InvalidBigIntLiteral,r),++this.state.pos,o=!0),Yp(this.codePointAtPos(this.state.pos)))throw this.raise(W.NumberIdentifier,this.state.curPosition());let c=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(o){this.finishToken(136,c);return}let p=i?parseInt(c,8):parseFloat(c);this.finishToken(135,p)}readCodePoint(e){let{code:t,pos:r}=Epe(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,t}readString(e){let{str:t,pos:r,curLine:n,lineStart:o}=Jue(e===34?"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=o,this.state.curLine=n,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:r,pos:n,curLine:o,lineStart:i}=Jue("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=o,r&&(this.state.firstInvalidTemplateEscapePos=new qm(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))),this.input.codePointAt(n)===96?this.finishToken(24,r?null:e+t+"`"):(this.state.pos++,this.finishToken(25,r?null:e+t+"${"))}recordStrictModeErrors(e,t){let 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="",r=this.state.pos,n=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos=0;a--){let s=i[a];if(s.loc.index===o)return i[a]=e(n,r);if(s.loc.indexthis.hasPlugin(t)))throw this.raise(W.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,r,n)=>{this.raise(e,rD(t,r,n))}}errorHandlers_readInt={invalidDigit:(e,t,r,n)=>this.optionFlags&2048?(this.raise(W.InvalidDigit,rD(e,t,r),{radix:n}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(W.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(W.UnexpectedNumericSeparator)};errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(W.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(W.InvalidCodePoint)});errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,r)=>{this.recordStrictModeErrors(W.StrictNumericEscape,rD(e,t,r))},unterminated:(e,t,r)=>{throw this.raise(W.UnterminatedString,rD(e-1,t,r))}});errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(W.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(W.UnterminatedTemplate,rD(e,t,r))}})},xVe=class{privateNames=new Set;loneAccessors=new Map;undefinedPrivateNames=new Map},EVe=class{parser;stack=[];undefinedPrivateNames=new Map;constructor(e){this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new xVe)}exit(){let e=this.stack.pop(),t=this.current();for(let[r,n]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(r)||t.undefinedPrivateNames.set(r,n):this.parser.raise(W.InvalidPrivateFieldResolution,n,{identifierName:r})}declarePrivateName(e,t,r){let{privateNames:n,loneAccessors:o,undefinedPrivateNames:i}=this.current(),a=n.has(e);if(t&3){let s=a&&o.get(e);if(s){let c=s&4,p=t&4,d=s&3,f=t&3;a=d===f||c!==p,a||o.delete(e)}else a||o.set(e,t)}a&&this.parser.raise(W.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(W.InvalidPrivateFieldResolution,t,{identifierName:e})}},I3=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Tpe=class extends I3{declarationErrors=new Map;constructor(e){super(e)}recordDeclarationError(e,t){let r=t.index;this.declarationErrors.set(r,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},TVe=class{parser;stack=[new I3];constructor(e){this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let r=t.loc.start,{stack:n}=this,o=n.length-1,i=n[o];for(;!i.isCertainlyParameterDeclaration();){if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(e,r);else return;i=n[--o]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,t){let{stack:r}=this,n=r[r.length-1],o=t.loc.start;if(n.isCertainlyParameterDeclaration())this.parser.raise(e,o);else if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(e,o);else return}recordAsyncArrowParametersError(e){let{stack:t}=this,r=t.length-1,n=t[r];for(;n.canBeArrowParameterDeclaration();)n.type===2&&n.recordDeclarationError(W.AwaitBindingIdentifier,e),n=t[--r]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([r,n])=>{this.parser.raise(r,n);let o=e.length-2,i=e[o];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n.index),i=e[--o]})}};function DVe(){return new I3(3)}function AVe(){return new Tpe(1)}function wVe(){return new Tpe(2)}function Dpe(){return new I3}var IVe=class extends bVe{addExtra(e,t,r,n=!0){if(!e)return;let{extra:o}=e;o==null&&(o={},e.extra=o),n?o[t]=r:Object.defineProperty(o,t,{enumerable:n,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){let r=this.input.charCodeAt(e+t.length);return!(mg(r)||(r&64512)===55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,t){if(!this.eatContextual(e)){if(t!=null)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return zue(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return zue(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(W.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let r={node:null};try{let n=e((o=null)=>{throw r.node=o,r});if(this.state.errors.length>t.errors.length){let o=this.state;return this.state=t,this.state.tokensLength=o.tokensLength,{node:n,error:o.errors[t.errors.length],thrown:!1,aborted:!1,failState:o}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(n){let o=this.state;if(this.state=t,n instanceof SyntaxError)return{node:null,error:n,thrown:!0,aborted:!1,failState:o};if(n===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:o};throw n}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:r,doubleProtoLoc:n,privateKeyLoc:o,optionalParametersLoc:i,voidPatternLoc:a}=e,s=!!r||!!n||!!i||!!o||!!a;if(!t)return s;r!=null&&this.raise(W.InvalidCoverInitializedName,r),n!=null&&this.raise(W.DuplicateProto,n),o!=null&&this.raise(W.UnexpectedPrivateField,o),i!=null&&this.unexpected(i),a!=null&&this.raise(W.InvalidCoverDiscardElement,a)}isLiteralPropertyName(){return dpe(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){let t=this.state.labels;this.state.labels=[];let r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let n=this.inModule;this.inModule=e;let o=this.scope,i=this.getScopeHandler();this.scope=new i(this,e);let a=this.prodParam;this.prodParam=new pVe;let s=this.classScope;this.classScope=new EVe(this);let c=this.expressionScope;return this.expressionScope=new TVe(this),()=>{this.state.labels=t,this.exportedIdentifiers=r,this.inModule=n,this.scope=o,this.prodParam=a,this.classScope=s,this.expressionScope=c}}enterInitialScopes(){let e=0;(this.inModule||this.optionFlags&1)&&(e|=2),this.optionFlags&32&&(e|=1);let t=!this.inModule&&this.options.sourceType==="commonjs";(t||this.optionFlags&2)&&(e|=4),this.prodParam.enter(e);let r=t?514:1;this.optionFlags&4&&(r|=512),this.optionFlags&16&&(r|=48),this.scope.enter(r)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;t!==null&&this.expectPlugin("destructuringPrivate",t)}},D3=class{shorthandAssignLoc=null;doubleProtoLoc=null;privateKeyLoc=null;optionalParametersLoc=null;voidPatternLoc=null},Yq=class{constructor(e,t,r){this.start=t,this.end=0,this.loc=new w3(r),e?.optionFlags&128&&(this.range=[t,0]),e?.filename&&(this.loc.filename=e.filename)}type=""},Kue=Yq.prototype,kVe=class extends IVe{startNode(){let e=this.state.startLoc;return new Yq(this,e.index,e)}startNodeAt(e){return new Yq(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,this.optionFlags&128&&(e.range[1]=r.index),this.optionFlags&4096&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.optionFlags&128&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,this.optionFlags&128&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}castNodeTo(e,t){return e.type=t,e}cloneIdentifier(e){let{type:t,start:r,end:n,loc:o,range:i,name:a}=e,s=Object.create(Kue);return s.type=t,s.start=r,s.end=n,s.loc=o,s.range=i,s.name=a,e.extra&&(s.extra=e.extra),s}cloneStringLiteral(e){let{type:t,start:r,end:n,loc:o,range:i,extra:a}=e,s=Object.create(Kue);return s.type=t,s.start=r,s.end=n,s.loc=o,s.range=i,s.extra=a,s.value=e.value,s}},eU=e=>e.type==="ParenthesizedExpression"?eU(e.expression):e,CVe=class extends kVe{toAssignable(e,t=!1){let r;switch((e.type==="ParenthesizedExpression"||e.extra?.parenthesized)&&(r=eU(e),t?r.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(W.InvalidParenthesizedAssignment,e):r.type!=="CallExpression"&&r.type!=="MemberExpression"&&!this.isOptionalMemberExpression(r)&&this.raise(W.InvalidParenthesizedAssignment,e):this.raise(W.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 n=0,o=e.properties.length,i=o-1;nn.type!=="ObjectMethod"&&(o===r||n.type!=="SpreadElement")&&this.isAssignable(n))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(r=>r===null||this.isAssignable(r));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(let r of e)r?.type==="ArrayExpression"&&this.toReferencedListDeep(r.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){let e=this.startNode();this.next();let t=this.parseBindingAtom();return t.type==="VoidPattern"&&this.raise(W.UnexpectedVoidPattern,t),e.argument=t,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let 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){let n=r&1,o=[],i=!0;for(;!this.eat(e);)if(i?i=!1:this.expect(12),n&&this.match(12))o.push(null);else{if(this.eat(e))break;if(this.match(21)){let a=this.parseRestBinding();if(r&2&&(a=this.parseFunctionParamType(a)),o.push(a),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let a=[];if(r&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(W.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)a.push(this.parseDecorator());o.push(this.parseBindingElement(r,a))}}return o}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(W.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let r=this.startNode();return e===139?(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){let r=this.parseMaybeDefault();return e&2&&this.parseFunctionParamType(r),t.length&&(r.decorators=t,this.resetStartLocationFromNode(r,t[0])),this.parseMaybeDefault(r.loc.start,r)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(e??(e=this.state.startLoc),t=t??this.parseBindingAtom(),!this.eat(29))return t;let r=this.startNodeAt(e);return t.type==="VoidPattern"&&this.raise(W.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&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,t,r=64,n=!1,o=!1,i=!1,a=!1){let s=e.type;if(this.isObjectMethod(e))return;let c=this.isOptionalMemberExpression(e);if(c||s==="MemberExpression"){c&&(this.expectPlugin("optionalChainingAssign",e.loc.start),t.type!=="AssignmentExpression"&&this.raise(W.InvalidLhsOptionalChaining,e,{ancestor:t})),r!==64&&this.raise(W.InvalidPropertyBindingPattern,e);return}if(s==="Identifier"){this.checkIdentifier(e,r,o);let{name:S}=e;n&&(n.has(S)?this.raise(W.ParamDupe,e):n.add(S));return}else s==="VoidPattern"&&t.type==="CatchClause"&&this.raise(W.VoidPatternCatchClauseParam,e);let p=eU(e);a||(a=p.type==="CallExpression"&&(p.callee.type==="Import"||p.callee.type==="Super"));let d=this.isValidLVal(s,a,!(i||e.extra?.parenthesized)&&t.type==="AssignmentExpression",r);if(d===!0)return;if(d===!1){let S=r===64?W.InvalidLhs:W.InvalidLhsBinding;this.raise(S,e,{ancestor:t});return}let f,m;typeof d=="string"?(f=d,m=s==="ParenthesizedExpression"):[f,m]=d;let y=s==="ArrayPattern"||s==="ObjectPattern"?{type:s}:t,g=e[f];if(Array.isArray(g))for(let S of g)S&&this.checkLVal(S,y,r,n,o,m,!0);else g&&this.checkLVal(g,y,r,n,o,m,a)}checkIdentifier(e,t,r=!1){this.state.strict&&(r?Spe(e.name,this.inModule):gpe(e.name))&&(t===64?this.raise(W.StrictEvalArguments,e,{referenceName:e.name}):this.raise(W.StrictEvalArgumentsBinding,e,{bindingName:e.name})),t&8192&&e.name==="let"&&this.raise(W.LetInLexicalBinding,e),t&64||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(W.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?W.RestTrailingComma:W.ElementAfterRest,this.state.startLoc),!0):!1}},Jq=/in(?:stanceof)?|as|satisfies/y;function PVe(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function Gue(e){if(!e)throw new Error("Assert fail")}var xt=Xp`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 `() => ...`.",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 OVe(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}}function Hue(e){return e==="private"||e==="public"||e==="protected"}function NVe(e){return e==="in"||e==="out"}function tU(e){if(e.extra?.parenthesized)return!1;switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&tU(e.object);case"TSInstantiationExpression":return tU(e.expression);default:return!1}}var FVe=e=>class extends e{getScopeHandler(){return uVe}tsIsIdentifier(){return Qn(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()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(t,r,n){if(!Qn(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let o=this.state.value;if(t.includes(o)){if(n&&this.match(106)||r&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return o}}tsParseModifiers({allowedModifiers:t,disallowedModifiers:r,stopOnStartOfClassStaticBlock:n,errorTemplate:o=xt.InvalidModifierOnTypeMember},i){let a=(c,p,d,f)=>{p===d&&i[f]&&this.raise(xt.InvalidModifiersOrder,c,{orderedModifiers:[d,f]})},s=(c,p,d,f)=>{(i[d]&&p===f||i[f]&&p===d)&&this.raise(xt.IncompatibleModifiers,c,{modifiers:[d,f]})};for(;;){let{startLoc:c}=this.state,p=this.tsParseModifier(t.concat(r??[]),n,i.static);if(!p)break;Hue(p)?i.accessibility?this.raise(xt.DuplicateAccessibilityModifier,c,{modifier:p}):(a(c,p,p,"override"),a(c,p,p,"static"),a(c,p,p,"readonly"),i.accessibility=p):NVe(p)?(i[p]&&this.raise(xt.DuplicateModifier,c,{modifier:p}),i[p]=!0,a(c,p,"in","out")):(Object.prototype.hasOwnProperty.call(i,p)?this.raise(xt.DuplicateModifier,c,{modifier:p}):(a(c,p,"static","readonly"),a(c,p,"static","override"),a(c,p,"override","readonly"),a(c,p,"abstract","override"),s(c,p,"declare","override"),s(c,p,"static","abstract")),i[p]=!0),r?.includes(p)&&this.raise(o,c,{modifier:p})}}tsIsListTerminator(t){switch(t){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(t,r){let n=[];for(;!this.tsIsListTerminator(t);)n.push(r());return n}tsParseDelimitedList(t,r,n){return PVe(this.tsParseDelimitedListWorker(t,r,!0,n))}tsParseDelimitedListWorker(t,r,n,o){let i=[],a=-1;for(;!this.tsIsListTerminator(t);){a=-1;let s=r();if(s==null)return;if(i.push(s),this.eat(12)){a=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(t))break;n&&this.expect(12);return}return o&&(o.value=a),i}tsParseBracketedList(t,r,n,o,i){o||(n?this.expect(0):this.expect(47));let a=this.tsParseDelimitedList(t,r,i);return n?this.expect(3):this.expect(48),a}tsParseImportType(){let t=this.startNode();return this.expect(83),this.expect(10),this.match(134)?t.argument=this.tsParseLiteralTypeNode():(this.raise(xt.UnsupportedImportTypeArgument,this.state.startLoc),t.argument=this.tsParseNonConditionalType()),this.eat(12)?t.options=this.tsParseImportTypeOptions():t.options=null,this.expect(11),this.eat(16)&&(t.qualifier=this.tsParseEntityName(3)),this.match(47)&&(t.typeArguments=this.tsParseTypeArguments()),this.finishNode(t,"TSImportType")}tsParseImportTypeOptions(){let t=this.startNode();this.expect(5);let r=this.startNode();return this.isContextual(76)?(r.method=!1,r.key=this.parseIdentifier(!0),r.computed=!1,r.shorthand=!1):this.unexpected(null,76),this.expect(14),r.value=this.tsParseImportTypeWithPropertyValue(),t.properties=[this.finishObjectProperty(r)],this.eat(12),this.expect(8),this.finishNode(t,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let t=this.startNode(),r=[];for(this.expect(5);!this.match(8);){let n=this.state.type;Qn(n)||n===134?r.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return t.properties=r,this.next(),this.finishNode(t,"ObjectExpression")}tsParseEntityName(t){let r;if(t&1&&this.match(78))if(t&2)r=this.parseIdentifier(!0);else{let n=this.startNode();this.next(),r=this.finishNode(n,"ThisExpression")}else r=this.parseIdentifier(!!(t&1));for(;this.eat(16);){let n=this.startNodeAtNode(r);n.left=r,n.right=this.parseIdentifier(!!(t&1)),r=this.finishNode(n,"TSQualifiedName")}return r}tsParseTypeReference(){let t=this.startNode();return t.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeArguments=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeReference")}tsParseThisTypePredicate(t){this.next();let r=this.startNodeAtNode(t);return r.parameterName=t,r.typeAnnotation=this.tsParseTypeAnnotation(!1),r.asserts=!1,this.finishNode(r,"TSTypePredicate")}tsParseThisTypeNode(){let t=this.startNode();return this.next(),this.finishNode(t,"TSThisType")}tsParseTypeQuery(){let t=this.startNode();return this.expect(87),this.match(83)?t.exprName=this.tsParseImportType():t.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeArguments=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeQuery")}tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:xt.InvalidModifierOnTypeParameter});tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:xt.InvalidModifierOnTypeParameterPositions});tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:xt.InvalidModifierOnTypeParameter});tsParseTypeParameter(t){let r=this.startNode();return t(r),r.name=this.tsParseTypeParameterName(),r.constraint=this.tsEatThenParseType(81),r.default=this.tsEatThenParseType(29),this.finishNode(r,"TSTypeParameter")}tsTryParseTypeParameters(t){if(this.match(47))return this.tsParseTypeParameters(t)}tsParseTypeParameters(t){let r=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let n={value:-1};return r.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,t),!1,!0,n),r.params.length===0&&this.raise(xt.EmptyTypeParameters,r),n.value!==-1&&this.addExtra(r,"trailingComma",n.value),this.finishNode(r,"TSTypeParameterDeclaration")}tsFillSignature(t,r){let n=t===19,o="params",i="returnType";r.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),r[o]=this.tsParseBindingListForSignature(),n?r[i]=this.tsParseTypeOrTypePredicateAnnotation(t):this.match(t)&&(r[i]=this.tsParseTypeOrTypePredicateAnnotation(t))}tsParseBindingListForSignature(){let t=super.parseBindingList(11,41,2);for(let r of t){let{type:n}=r;(n==="AssignmentPattern"||n==="TSParameterProperty")&&this.raise(xt.UnsupportedSignatureParameterKind,r,{type:n})}return t}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(t,r){return this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon(),this.finishNode(r,t)}tsIsUnambiguouslyIndexSignature(){return this.next(),Qn(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(t){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let r=this.parseIdentifier();r.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(r),this.expect(3),t.parameters=[r];let n=this.tsTryParseTypeAnnotation();return n&&(t.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSIndexSignature")}tsParsePropertyOrMethodSignature(t,r){if(this.eat(17)&&(t.optional=!0),this.match(10)||this.match(47)){r&&this.raise(xt.ReadonlyForMethodSignature,t);let n=t;n.kind&&this.match(47)&&this.raise(xt.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();let o="params",i="returnType";if(n.kind==="get")n[o].length>0&&(this.raise(W.BadGetterArity,this.state.curPosition()),this.isThisParam(n[o][0])&&this.raise(xt.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(n.kind==="set"){if(n[o].length!==1)this.raise(W.BadSetterArity,this.state.curPosition());else{let a=n[o][0];this.isThisParam(a)&&this.raise(xt.AccessorCannotDeclareThisParameter,this.state.curPosition()),a.type==="Identifier"&&a.optional&&this.raise(xt.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),a.type==="RestElement"&&this.raise(xt.SetAccessorCannotHaveRestParameter,this.state.curPosition())}n[i]&&this.raise(xt.SetAccessorCannotHaveReturnType,n[i])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}else{let n=t;r&&(n.readonly=!0);let o=this.tsTryParseTypeAnnotation();return o&&(n.typeAnnotation=o),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"TSPropertySignature")}}tsParseTypeMember(){let t=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(77)){let n=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(n,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},t),this.tsTryParseIndexSignature(t)||(super.parsePropertyName(t),!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.tsTokenCanFollowModifier()&&(t.kind=t.key.name,super.parsePropertyName(t),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(t,!!t.readonly))}tsParseTypeLiteral(){let t=this.startNode();return t.members=this.tsParseObjectTypeMembers(),this.finishNode(t,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let t=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),t}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let t=this.startNode();return this.expect(5),this.match(53)?(t.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(t.readonly=!0),this.expect(0),t.key=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),t.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(t.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(t.optional=!0),t.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(t,"TSMappedType")}tsParseTupleType(){let t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let r=!1;return t.elementTypes.forEach(n=>{let{type:o}=n;r&&o!=="TSRestType"&&o!=="TSOptionalType"&&!(o==="TSNamedTupleMember"&&n.optional)&&this.raise(xt.OptionalTypeBeforeRequired,n),r||(r=o==="TSNamedTupleMember"&&n.optional||o==="TSOptionalType")}),this.finishNode(t,"TSTupleType")}tsParseTupleElementType(){let t=this.state.startLoc,r=this.eat(21),{startLoc:n}=this.state,o,i,a,s,c=Pu(this.state.type)?this.lookaheadCharCode():null;if(c===58)o=!0,a=!1,i=this.parseIdentifier(!0),this.expect(14),s=this.tsParseType();else if(c===63){a=!0;let p=this.state.value,d=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(o=!0,i=this.createIdentifier(this.startNodeAt(n),p),this.expect(17),this.expect(14),s=this.tsParseType()):(o=!1,s=d,this.expect(17))}else s=this.tsParseType(),a=this.eat(17),o=this.eat(14);if(o){let p;i?(p=this.startNodeAt(n),p.optional=a,p.label=i,p.elementType=s,this.eat(17)&&(p.optional=!0,this.raise(xt.TupleOptionalAfterType,this.state.lastTokStartLoc))):(p=this.startNodeAt(n),p.optional=a,this.raise(xt.InvalidTupleMemberLabel,s),p.label=s,p.elementType=this.tsParseType()),s=this.finishNode(p,"TSNamedTupleMember")}else if(a){let p=this.startNodeAt(n);p.typeAnnotation=s,s=this.finishNode(p,"TSOptionalType")}if(r){let p=this.startNodeAt(t);p.typeAnnotation=s,s=this.finishNode(p,"TSRestType")}return s}tsParseParenthesizedType(){let t=this.startNode();return this.expect(10),t.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(t,"TSParenthesizedType")}tsParseFunctionOrConstructorType(t,r){let n=this.startNode();return t==="TSConstructorType"&&(n.abstract=!!r,r&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,t)}tsParseLiteralTypeNode(){let t=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:t.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(t,"TSLiteralType")}tsParseTemplateLiteralType(){{let t=this.state.startLoc,r=this.parseTemplateElement(!1),n=[r];if(r.tail){let o=this.startNodeAt(t),i=this.startNodeAt(t);return i.expressions=[],i.quasis=n,o.literal=this.finishNode(i,"TemplateLiteral"),this.finishNode(o,"TSLiteralType")}else{let o=[];for(;!r.tail;)o.push(this.tsParseType()),this.readTemplateContinuation(),n.push(r=this.parseTemplateElement(!1));let i=this.startNodeAt(t);return i.types=o,i.quasis=n,this.finishNode(i,"TSTemplateLiteralType")}}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let t=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(t):t}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let t=this.startNode(),r=this.lookahead();return r.type!==135&&r.type!==136&&this.unexpected(),t.literal=this.parseMaybeUnary(),this.finishNode(t,"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:if(!(this.optionFlags&1024)){let t=this.state.startLoc;this.next();let r=this.tsParseType();return this.expect(11),this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),r}return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:t}=this.state;if(Qn(t)||t===88||t===84){let r=t===88?"TSVoidKeyword":t===84?"TSNullKeyword":OVe(this.state.value);if(r!==void 0&&this.lookaheadCharCode()!==46){let n=this.startNode();return this.next(),this.finishNode(n,r)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:t}=this.state,r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let n=this.startNodeAt(t);n.elementType=r,this.expect(3),r=this.finishNode(n,"TSArrayType")}else{let n=this.startNodeAt(t);n.objectType=r,n.indexType=this.tsParseType(),this.expect(3),r=this.finishNode(n,"TSIndexedAccessType")}return r}tsParseTypeOperator(){let t=this.startNode(),r=this.state.value;return this.next(),t.operator=r,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),r==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(t){switch(t.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(xt.UnexpectedReadonly,t)}}tsParseInferType(){let t=this.startNode();this.expectContextual(115);let r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),t.typeParameter=this.finishNode(r,"TSTypeParameter"),this.finishNode(t,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let t=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return t}}tsParseTypeOperatorOrHigher(){return jze(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(t,r,n){let o=this.startNode(),i=this.eat(n),a=[];do a.push(r());while(this.eat(n));return a.length===1&&!i?a[0]:(o.types=a,this.finishNode(o,t))}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)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Qn(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:t}=this.state,r=t.length;try{return this.parseObjectLike(8,!0),t.length===r}catch{return!1}}if(this.match(0)){this.next();let{errors:t}=this.state,r=t.length;try{return super.parseBindingList(3,93,1),t.length===r}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(t){return this.tsInType(()=>{let r=this.startNode();this.expect(t);let n=this.startNode(),o=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(o&&this.match(78)){let s=this.tsParseThisTypeOrThisTypePredicate();return s.type==="TSThisType"?(n.parameterName=s,n.asserts=!0,n.typeAnnotation=null,s=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(s,n),s.asserts=!0),r.typeAnnotation=s,this.finishNode(r,"TSTypeAnnotation")}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return o?(n.parameterName=this.parseIdentifier(),n.asserts=o,n.typeAnnotation=null,r.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,r);let a=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=a,n.asserts=o,r.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let t=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),t}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let t=this.state.containsEsc;return this.next(),!Qn(this.state.type)&&!this.match(78)?!1:(t&&this.raise(W.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(t=!0,r=this.startNode()){return this.tsInType(()=>{t&&this.expect(14),r.typeAnnotation=this.tsParseType()}),this.finishNode(r,"TSTypeAnnotation")}tsParseType(){Gue(this.state.inType);let t=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return t;let r=this.startNodeAtNode(t);return r.checkType=t,r.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),r.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),r.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(r,"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(xt.ReservedTypeAssertion,this.state.startLoc);let t=this.startNode();return t.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")}tsParseHeritageClause(t){let r=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let o=super.parseExprSubscripts();tU(o)||this.raise(xt.InvalidHeritageClauseType,o.loc.start,{token:t});let i=t==="extends"?"TSInterfaceHeritage":"TSClassImplements";if(o.type==="TSInstantiationExpression")return o.type=i,o;let a=this.startNodeAtNode(o);return a.expression=o,(this.match(47)||this.match(51))&&(a.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(a,i)}});return n.length||this.raise(xt.EmptyHeritageClauseType,r,{token:t}),n}tsParseInterfaceDeclaration(t,r={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),r.declare&&(t.declare=!0),Qn(this.state.type)?(t.id=this.parseIdentifier(),this.checkIdentifier(t.id,130)):(t.id=null,this.raise(xt.MissingInterfaceName,this.state.startLoc)),t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(t.extends=this.tsParseHeritageClause("extends"));let n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),t.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(t,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(t){return t.id=this.parseIdentifier(),this.checkIdentifier(t.id,2),t.typeAnnotation=this.tsInType(()=>{if(t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let r=this.startNode();return this.next(),this.finishNode(r,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(t,"TSTypeAliasDeclaration")}tsInTopLevelContext(t){if(this.curContext()!==Lo.brace){let r=this.state.context;this.state.context=[r[0]];try{return t()}finally{this.state.context=r}}else return t()}tsInType(t){let r=this.state.inType;this.state.inType=!0;try{return t()}finally{this.state.inType=r}}tsInDisallowConditionalTypesContext(t){let r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return t()}finally{this.state.inDisallowConditionalTypesContext=r}}tsInAllowConditionalTypesContext(t){let r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return t()}finally{this.state.inDisallowConditionalTypesContext=r}}tsEatThenParseType(t){if(this.match(t))return this.tsNextThenParseType()}tsExpectThenParseType(t){return this.tsInType(()=>(this.expect(t),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let t=this.startNode();return t.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(t.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(t,"TSEnumMember")}tsParseEnumDeclaration(t,r={}){return r.const&&(t.const=!0),r.declare&&(t.declare=!0),this.expectContextual(126),t.id=this.parseIdentifier(),this.checkIdentifier(t.id,t.const?8971:8459),t.body=this.tsParseEnumBody(),this.finishNode(t,"TSEnumDeclaration")}tsParseEnumBody(){let t=this.startNode();return this.expect(5),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(t,"TSEnumBody")}tsParseModuleBlock(){let t=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(t,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(t,r=!1){return t.id=this.tsParseEntityName(1),t.id.type==="Identifier"&&this.checkIdentifier(t.id,1024),this.scope.enter(1024),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit(),this.finishNode(t,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(t){return this.isContextual(112)?(t.kind="global",t.id=this.parseIdentifier()):this.match(134)?(t.kind="module",t.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(t,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(t,r,n){t.id=r||this.parseIdentifier(),this.checkIdentifier(t.id,4096),this.expect(29);let o=this.tsParseModuleReference();return t.importKind==="type"&&o.type!=="TSExternalModuleReference"&&this.raise(xt.ImportAliasHasImportType,o),t.moduleReference=o,this.semicolon(),this.finishNode(t,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let t=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),t.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExternalModuleReference")}tsLookAhead(t){let r=this.state.clone(),n=t();return this.state=r,n}tsTryParseAndCatch(t){let r=this.tryParse(n=>t()||n());if(!(r.aborted||!r.node))return r.error&&(this.state=r.failState),r.node}tsTryParse(t){let r=this.state.clone(),n=t();if(n!==void 0&&n!==!1)return n;this.state=r}tsTryParseDeclare(t){if(this.isLineTerminator())return;let r=this.state.type;return this.tsInAmbientContext(()=>{switch(r){case 68:return t.declare=!0,super.parseFunctionStatement(t,!1,!1);case 80:return t.declare=!0,this.parseClass(t,!0,!1);case 126:return this.tsParseEnumDeclaration(t,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(t);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(t.declare=!0,this.parseVarStatement(t,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(t,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(xt.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),t.declare=!0,this.parseVarStatement(t,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(xt.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),t.declare=!0,this.next(),this.parseVarStatement(t,"await using",!0);break;case 129:{let n=this.tsParseInterfaceDeclaration(t,{declare:!0});if(n)return n}default:if(Qn(r))return this.tsParseDeclaration(t,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(t,r,n,o){switch(r){case 124:if(this.tsCheckLineTerminator(n)&&(this.match(80)||Qn(this.state.type)))return this.tsParseAbstractDeclaration(t,o);break;case 127:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(t);if(Qn(this.state.type))return t.kind="module",this.tsParseModuleOrNamespaceDeclaration(t)}break;case 128:if(this.tsCheckLineTerminator(n)&&Qn(this.state.type))return t.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(t);break;case 130:if(this.tsCheckLineTerminator(n)&&Qn(this.state.type))return this.tsParseTypeAliasDeclaration(t);break}}tsCheckLineTerminator(t){return t?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(t){if(!this.match(47))return;let r=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let n=this.tsTryParseAndCatch(()=>{let o=this.startNodeAt(t);return o.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(o),o.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),o});if(this.state.maybeInArrowParameters=r,!!n)return super.parseArrowExpression(n,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let t=this.startNode();return t.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),t.params.length===0?this.raise(xt.EmptyTypeArguments,t):!this.state.inType&&this.curContext()===Lo.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return Bze(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(t,r){let n=r.length?r[0].loc.start:this.state.startLoc,o={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},o);let i=o.accessibility,a=o.override,s=o.readonly;!(t&4)&&(i||s||a)&&this.raise(xt.UnexpectedParameterModifier,n);let c=this.parseMaybeDefault();t&2&&this.parseFunctionParamType(c);let p=this.parseMaybeDefault(c.loc.start,c);if(i||s||a){let d=this.startNodeAt(n);return r.length&&(d.decorators=r),i&&(d.accessibility=i),s&&(d.readonly=s),a&&(d.override=a),p.type!=="Identifier"&&p.type!=="AssignmentPattern"&&this.raise(xt.UnsupportedParameterPropertyKind,d),d.parameter=p,this.finishNode(d,"TSParameterProperty")}return r.length&&(c.decorators=r),p}isSimpleParameter(t){return t.type==="TSParameterProperty"&&super.isSimpleParameter(t.parameter)||super.isSimpleParameter(t)}tsDisallowOptionalPattern(t){for(let r of t.params)r.type!=="Identifier"&&r.optional&&!this.state.isAmbientContext&&this.raise(xt.PatternIsOptional,r)}setArrowFunctionParameters(t,r,n){super.setArrowFunctionParameters(t,r,n),this.tsDisallowOptionalPattern(t)}parseFunctionBodyAndFinish(t,r,n=!1){this.match(14)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let o=r==="FunctionDeclaration"?"TSDeclareFunction":r==="ClassMethod"||r==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return o&&!this.match(5)&&this.isLineTerminator()?this.finishNode(t,o):o==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(xt.DeclareFunctionHasImplementation,t),t.declare)?super.parseFunctionBodyAndFinish(t,o,n):(this.tsDisallowOptionalPattern(t),super.parseFunctionBodyAndFinish(t,r,n))}registerFunctionStatementId(t){!t.body&&t.id?this.checkIdentifier(t.id,1024):super.registerFunctionStatementId(t)}tsCheckForInvalidTypeCasts(t){t.forEach(r=>{r?.type==="TSTypeCastExpression"&&this.raise(xt.UnexpectedTypeAnnotation,r.typeAnnotation)})}toReferencedList(t,r){return this.tsCheckForInvalidTypeCasts(t),t}parseArrayLike(t,r,n){let o=super.parseArrayLike(t,r,n);return o.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(o.elements),o}parseSubscript(t,r,n,o){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let a=this.startNodeAt(r);return a.expression=t,this.finishNode(a,"TSNonNullExpression")}let i=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(n)return o.stop=!0,t;o.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let a,s=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(t)){let f=this.tsTryParseGenericAsyncArrowFunction(r);if(f)return o.stop=!0,f}let c=this.tsParseTypeArgumentsInExpression();if(!c)return;if(i&&!this.match(10)){a=this.state.curPosition();return}if(Wq(this.state.type)){let f=super.parseTaggedTemplateExpression(t,r,o);return f.typeArguments=c,f}if(!n&&this.eat(10)){let f=this.startNodeAt(r);return f.callee=t,f.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(f.arguments),f.typeArguments=c,o.optionalChainMember&&(f.optional=i),this.finishCallExpression(f,o.optionalChainMember)}let p=this.state.type;if(p===48||p===52||p!==10&&oD(p)&&!this.hasPrecedingLineBreak())return;let d=this.startNodeAt(r);return d.expression=t,d.typeArguments=c,this.finishNode(d,"TSInstantiationExpression")});if(a&&this.unexpected(a,10),s)return s.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(xt.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(s.expression=super.stopParseSubscript(t,o))),s}return super.parseSubscript(t,r,n,o)}parseNewCallee(t){super.parseNewCallee(t);let{callee:r}=t;r.type==="TSInstantiationExpression"&&!r.extra?.parenthesized&&(t.typeArguments=r.typeArguments,t.callee=r.expression)}parseExprOp(t,r,n){let o;if(E3(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(o=this.isContextual(120)))){let i=this.startNodeAt(r);return i.expression=t,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(o&&this.raise(W.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(i,o?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,r,n)}return super.parseExprOp(t,r,n)}checkReservedWord(t,r,n,o){this.state.isAmbientContext||super.checkReservedWord(t,r,n,o)}checkImportReflection(t){super.checkImportReflection(t),t.module&&t.importKind!=="value"&&this.raise(xt.ImportReflectionHasImportType,t.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(t){if(super.isPotentialImportPhase(t))return!0;if(this.isContextual(130)){let r=this.lookaheadCharCode();return t?r===123||r===42:r!==61}return!t&&this.isContextual(87)}applyImportPhase(t,r,n,o){super.applyImportPhase(t,r,n,o),r?t.exportKind=n==="type"?"type":"value":t.importKind=n==="type"||n==="typeof"?n:"value"}parseImport(t){if(this.match(134))return t.importKind="value",super.parseImport(t);let r;if(Qn(this.state.type)&&this.lookaheadCharCode()===61)return t.importKind="value",this.tsParseImportEqualsDeclaration(t);if(this.isContextual(130)){let n=this.parseMaybeImportPhase(t,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(t,n);r=super.parseImportSpecifiersAndAfter(t,n)}else r=super.parseImport(t);return r.importKind==="type"&&r.specifiers.length>1&&r.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(xt.TypeImportCannotSpecifyDefaultAndNamed,r),r}parseExport(t,r){if(this.match(83)){let n=this.startNode();this.next();let o=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?o=this.parseMaybeImportPhase(n,!1):n.importKind="value";let i=this.tsParseImportEqualsDeclaration(n,o,!0);return t.attributes=[],t.declaration=i,t.exportKind="value",t.source=null,t.specifiers=[],this.finishNode(t,"ExportNamedDeclaration")}else if(this.eat(29)){let n=t;return n.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(n,"TSExportAssignment")}else if(this.eatContextual(93)){let n=t;return this.expectContextual(128),n.id=this.parseIdentifier(),this.semicolon(),this.finishNode(n,"TSNamespaceExportDeclaration")}else return super.parseExport(t,r)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0,!0)}if(this.match(129)){let t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return super.parseExportDefaultExpression()}parseVarStatement(t,r,n=!1){let{isAmbientContext:o}=this.state,i=super.parseVarStatement(t,r,n||o);if(!o)return i;if(!t.declare&&(r==="using"||r==="await using"))return this.raiseOverwrite(xt.UsingDeclarationInAmbientContext,t,r),i;for(let{id:a,init:s}of i.declarations)s&&(r==="var"||r==="let"||a.typeAnnotation?this.raise(xt.InitializerNotAllowedInAmbientContext,s):LVe(s,this.hasPlugin("estree"))||this.raise(xt.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,s));return i}parseStatementContent(t,r){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let n=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(n,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let n=this.state.type,o=this.startNode();this.next();let i=n===125?this.tsTryParseDeclare(o):this.tsParseAbstractDeclaration(o,r);return i?(n===125&&(i.declare=!0),i):(o.expression=this.createIdentifier(this.startNodeAt(o.loc.start),n===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(o,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let n=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(n)}break}case 129:{let n=this.tsParseInterfaceDeclaration(this.startNode());if(n)return n;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let n=this.startNode();return this.next(),this.tsParseDeclaration(n,127,!1,r)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let n=this.startNode();return this.next(),this.tsParseDeclaration(n,128,!1,r)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let n=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(n)}break}}return super.parseStatementContent(t,r)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(t,r){return r.some(n=>Hue(n)?t.accessibility===n:!!t[n])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(t,r,n){let o=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:o,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:xt.InvalidModifierOnTypeParameterPositions},r);let i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(r,o)&&this.raise(xt.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(t,r)):this.parseClassMemberWithIsStatic(t,r,n,!!r.static)};r.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(t,r,n,o){let i=this.tsTryParseIndexSignature(r);if(i){t.body.push(i),r.abstract&&this.raise(xt.IndexSignatureHasAbstract,r),r.accessibility&&this.raise(xt.IndexSignatureHasAccessibility,r,{modifier:r.accessibility}),r.declare&&this.raise(xt.IndexSignatureHasDeclare,r),r.override&&this.raise(xt.IndexSignatureHasOverride,r);return}!this.state.inAbstractClass&&r.abstract&&this.raise(xt.NonAbstractClassHasAbstractMethod,r),r.override&&(n.hadSuperClass||this.raise(xt.OverrideNotInSubClass,r)),super.parseClassMemberWithIsStatic(t,r,n,o)}parsePostMemberNameModifiers(t){this.eat(17)&&(t.optional=!0),t.readonly&&this.match(10)&&this.raise(xt.ClassMethodHasReadonly,t),t.declare&&this.match(10)&&this.raise(xt.ClassMethodHasDeclare,t)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(t,r,n){if(!this.match(17))return t;if(this.state.maybeInArrowParameters){let o=this.lookaheadCharCode();if(o===44||o===61||o===58||o===41)return this.setOptionalParametersError(n),t}return super.parseConditional(t,r,n)}parseParenItem(t,r){let n=super.parseParenItem(t,r);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(t)),this.match(14)){let o=this.startNodeAt(r);return o.expression=t,o.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(o,"TSTypeCastExpression")}return t}parseExportDeclaration(t){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(t));let r=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(xt.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let o=Qn(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(t);return o?((o.type==="TSInterfaceDeclaration"||o.type==="TSTypeAliasDeclaration"||n)&&(t.exportKind="type"),n&&o.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(o,r),o.declare=!0),o):null}parseClassId(t,r,n,o){if((!r||n)&&this.isContextual(113))return;super.parseClassId(t,r,n,t.declare?1024:8331);let i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(t.typeParameters=i)}parseClassPropertyAnnotation(t){t.optional||(this.eat(35)?t.definite=!0:this.eat(17)&&(t.optional=!0));let r=this.tsTryParseTypeAnnotation();r&&(t.typeAnnotation=r)}parseClassProperty(t){if(this.parseClassPropertyAnnotation(t),this.state.isAmbientContext&&!(t.readonly&&!t.typeAnnotation)&&this.match(29)&&this.raise(xt.DeclareClassFieldHasInitializer,this.state.startLoc),t.abstract&&this.match(29)){let{key:r}=t;this.raise(xt.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:r.type==="Identifier"&&!t.computed?r.name:`[${this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end))}]`})}return super.parseClassProperty(t)}parseClassPrivateProperty(t){return t.abstract&&this.raise(xt.PrivateElementHasAbstract,t),t.accessibility&&this.raise(xt.PrivateElementHasAccessibility,t,{modifier:t.accessibility}),this.parseClassPropertyAnnotation(t),super.parseClassPrivateProperty(t)}parseClassAccessorProperty(t){return this.parseClassPropertyAnnotation(t),t.optional&&this.raise(xt.AccessorCannotBeOptional,t),super.parseClassAccessorProperty(t)}pushClassMethod(t,r,n,o,i,a){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&i&&this.raise(xt.ConstructorHasTypeParameters,s);let{declare:c=!1,kind:p}=r;c&&(p==="get"||p==="set")&&this.raise(xt.DeclareAccessor,r,{kind:p}),s&&(r.typeParameters=s),super.pushClassMethod(t,r,n,o,i,a)}pushClassPrivateMethod(t,r,n,o){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(r.typeParameters=i),super.pushClassPrivateMethod(t,r,n,o)}declareClassPrivateMethodInScope(t,r){t.type!=="TSDeclareMethod"&&(t.type==="MethodDefinition"&&t.value.body==null||super.declareClassPrivateMethodInScope(t,r))}parseClassSuper(t){super.parseClassSuper(t),t.superClass&&(this.match(47)||this.match(51))&&(t.superTypeArguments=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(t.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(t,r,n,o,i,a,s){let c=this.tsTryParseTypeParameters(this.tsParseConstModifier);return c&&(t.typeParameters=c),super.parseObjPropValue(t,r,n,o,i,a,s)}parseFunctionParams(t,r){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(t.typeParameters=n),super.parseFunctionParams(t,r)}parseVarId(t,r){super.parseVarId(t,r),t.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(t.definite=!0);let n=this.tsTryParseTypeAnnotation();n&&(t.id.typeAnnotation=n,this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,r){return this.match(14)&&(t.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(t,r)}parseMaybeAssign(t,r){let n,o,i;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),o=this.tryParse(()=>super.parseMaybeAssign(t,r),n),!o.error)return o.node;let{context:c}=this.state,p=c[c.length-1];(p===Lo.j_oTag||p===Lo.j_expr)&&c.pop()}if(!o?.error&&!this.match(47))return super.parseMaybeAssign(t,r);(!n||n===this.state)&&(n=this.state.clone());let a,s=this.tryParse(c=>{a=this.tsParseTypeParameters(this.tsParseConstModifier);let p=super.parseMaybeAssign(t,r);if((p.type!=="ArrowFunctionExpression"||p.extra?.parenthesized)&&c(),a?.params.length!==0&&this.resetStartLocationFromNode(p,a),p.typeParameters=a,this.hasPlugin("jsx")&&p.typeParameters.params.length===1&&!p.typeParameters.extra?.trailingComma){let d=p.typeParameters.params[0];d.constraint||this.raise(xt.SingleTypeParameterWithoutTrailingComma,Fl(d.loc.end,1),{typeParameterName:d.name.name})}return p},n);if(!s.error&&!s.aborted)return a&&this.reportReservedArrowTypeParam(a),s.node;if(!o&&(Gue(!this.hasPlugin("jsx")),i=this.tryParse(()=>super.parseMaybeAssign(t,r),n),!i.error))return i.node;if(o?.node)return this.state=o.failState,o.node;if(s.node)return this.state=s.failState,a&&this.reportReservedArrowTypeParam(a),s.node;if(i?.node)return this.state=i.failState,i.node;throw o?.error||s.error||i?.error}reportReservedArrowTypeParam(t){t.params.length===1&&!t.params[0].constraint&&!t.extra?.trailingComma&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(xt.ReservedArrowTypeParam,t)}parseMaybeUnary(t,r){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(t,r)}parseArrow(t){if(this.match(14)){let r=this.tryParse(n=>{let o=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&n(),o});if(r.aborted)return;r.thrown||(r.error&&(this.state=r.failState),t.returnType=r.node)}return super.parseArrow(t)}parseFunctionParamType(t){this.eat(17)&&(t.optional=!0);let r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r),this.resetEndLocation(t),t}isAssignable(t,r){switch(t.type){case"TSTypeCastExpression":return this.isAssignable(t.expression,r);case"TSParameterProperty":return!0;default:return super.isAssignable(t,r)}}toAssignable(t,r=!1){switch(t.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(t,r);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":r?this.expressionScope.recordArrowParameterBindingError(xt.UnexpectedTypeCastInParameter,t):this.raise(xt.UnexpectedTypeCastInParameter,t),this.toAssignable(t.expression,r);break;case"AssignmentExpression":!r&&t.left.type==="TSTypeCastExpression"&&(t.left=this.typeCastToParameter(t.left));default:super.toAssignable(t,r)}}toAssignableParenthesizedExpression(t,r){switch(t.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(t.expression,r);break;default:super.toAssignable(t,r)}}checkToRestConversion(t,r){switch(t.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(t.expression,!1);break;default:super.checkToRestConversion(t,r)}}isValidLVal(t,r,n,o){switch(t){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(o!==64||!n)&&["expression",!0];default:return super.isValidLVal(t,r,n,o)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(t,r){if(this.match(47)||this.match(51)){let n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let o=super.parseMaybeDecoratorArguments(t,r);return o.typeArguments=n,o}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(t,r)}checkCommaAfterRest(t){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===t?(this.next(),!1):super.checkCommaAfterRest(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(t,r){let n=super.parseMaybeDefault(t,r);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.startthis.isAssignable(r,!0)):super.shouldParseArrow(t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(t){if(this.match(47)||this.match(51)){let r=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());r&&(t.typeArguments=r)}return super.jsxParseOpeningElementAfterName(t)}getGetterSetterExpectedParamCount(t){let r=super.getGetterSetterExpectedParamCount(t),n=this.getObjectOrClassMethodParams(t)[0];return n&&this.isThisParam(n)?r+1:r}parseCatchClauseParam(){let t=super.parseCatchClauseParam(),r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r,this.resetEndLocation(t)),t}tsInAmbientContext(t){let{isAmbientContext:r,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return t()}finally{this.state.isAmbientContext=r,this.state.strict=n}}parseClass(t,r,n){let o=this.state.inAbstractClass;this.state.inAbstractClass=!!t.abstract;try{return super.parseClass(t,r,n)}finally{this.state.inAbstractClass=o}}tsParseAbstractDeclaration(t,r){if(this.match(80))return t.abstract=!0,this.maybeTakeDecorators(r,this.parseClass(t,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(t.abstract=!0,this.raise(xt.NonClassMethodPropertyHasAbstractModifier,t),this.tsParseInterfaceDeclaration(t));throw this.unexpected(null,80)}parseMethod(t,r,n,o,i,a,s){let c=super.parseMethod(t,r,n,o,i,a,s);if((c.abstract||c.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?c.value:c).body){let{key:p}=c;this.raise(xt.AbstractMethodHasImplementation,c,{methodName:p.type==="Identifier"&&!c.computed?p.name:`[${this.input.slice(this.offsetToSourcePos(p.start),this.offsetToSourcePos(p.end))}]`})}return c}tsParseTypeParameterName(){return this.parseIdentifier()}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(t,r,n,o){return!r&&o?(this.parseTypeOnlyImportExportSpecifier(t,!1,n),this.finishNode(t,"ExportSpecifier")):(t.exportKind="value",super.parseExportSpecifier(t,r,n,o))}parseImportSpecifier(t,r,n,o,i){return!r&&o?(this.parseTypeOnlyImportExportSpecifier(t,!0,n),this.finishNode(t,"ImportSpecifier")):(t.importKind="value",super.parseImportSpecifier(t,r,n,o,n?4098:4096))}parseTypeOnlyImportExportSpecifier(t,r,n){let o=r?"imported":"local",i=r?"local":"exported",a=t[o],s,c=!1,p=!0,d=a.loc.start;if(this.isContextual(93)){let m=this.parseIdentifier();if(this.isContextual(93)){let y=this.parseIdentifier();Pu(this.state.type)?(c=!0,a=m,s=r?this.parseIdentifier():this.parseModuleExportName(),p=!1):(s=y,p=!1)}else Pu(this.state.type)?(p=!1,s=r?this.parseIdentifier():this.parseModuleExportName()):(c=!0,a=m)}else Pu(this.state.type)&&(c=!0,r?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());c&&n&&this.raise(r?xt.TypeModifierIsUsedInTypeImports:xt.TypeModifierIsUsedInTypeExports,d),t[o]=a,t[i]=s;let f=r?"importKind":"exportKind";t[f]=c?"type":"value",p&&this.eatContextual(93)&&(t[i]=r?this.parseIdentifier():this.parseModuleExportName()),t[i]||(t[i]=this.cloneIdentifier(t[o])),r&&this.checkIdentifier(t[i],c?4098:4096)}fillOptionalPropertiesForTSESLint(t){switch(t.type){case"ExpressionStatement":t.directive??(t.directive=void 0);return;case"RestElement":t.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":t.decorators??(t.decorators=[]),t.optional??(t.optional=!1),t.typeAnnotation??(t.typeAnnotation=void 0);return;case"TSParameterProperty":t.accessibility??(t.accessibility=void 0),t.decorators??(t.decorators=[]),t.override??(t.override=!1),t.readonly??(t.readonly=!1),t.static??(t.static=!1);return;case"TSEmptyBodyFunctionExpression":t.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":t.declare??(t.declare=!1),t.returnType??(t.returnType=void 0),t.typeParameters??(t.typeParameters=void 0);return;case"Property":t.optional??(t.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":t.optional??(t.optional=!1);case"TSIndexSignature":t.accessibility??(t.accessibility=void 0),t.readonly??(t.readonly=!1),t.static??(t.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":t.declare??(t.declare=!1),t.definite??(t.definite=!1),t.readonly??(t.readonly=!1),t.typeAnnotation??(t.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":t.accessibility??(t.accessibility=void 0),t.decorators??(t.decorators=[]),t.override??(t.override=!1),t.optional??(t.optional=!1);return;case"ClassExpression":t.id??(t.id=null);case"ClassDeclaration":t.abstract??(t.abstract=!1),t.declare??(t.declare=!1),t.decorators??(t.decorators=[]),t.implements??(t.implements=[]),t.superTypeArguments??(t.superTypeArguments=void 0),t.typeParameters??(t.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":t.declare??(t.declare=!1);return;case"VariableDeclarator":t.definite??(t.definite=!1);return;case"TSEnumDeclaration":t.const??(t.const=!1),t.declare??(t.declare=!1);return;case"TSEnumMember":t.computed??(t.computed=!1);return;case"TSImportType":t.qualifier??(t.qualifier=null),t.options??(t.options=null),t.typeArguments??(t.typeArguments=null);return;case"TSInterfaceDeclaration":t.declare??(t.declare=!1),t.extends??(t.extends=[]);return;case"TSMappedType":t.optional??(t.optional=!1),t.readonly??(t.readonly=void 0);return;case"TSModuleDeclaration":t.declare??(t.declare=!1),t.global??(t.global=t.kind==="global");return;case"TSTypeParameter":t.const??(t.const=!1),t.in??(t.in=!1),t.out??(t.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(t,r){if(Yp(t)){if(Jq.lastIndex=r,Jq.test(this.input)){let n=this.codePointAtPos(Jq.lastIndex);if(!mg(n)&&n!==92)return!1}return!0}else return t===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifierAndNotRelationalOperator(r,t)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifier(r,t)||r===34||r===39}};function RVe(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:wpe(e.object)}function LVe(e,t){let{type:r}=e;if(e.extra?.parenthesized)return!1;if(t){if(r==="Literal"){let{value:n}=e;if(typeof n=="string"||typeof n=="boolean")return!0}}else if(r==="StringLiteral"||r==="BooleanLiteral")return!0;return!!(Ape(e,t)||$Ve(e,t)||r==="TemplateLiteral"&&e.expressions.length===0||RVe(e))}function Ape(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function $Ve(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:n}=e;if(r==="-"&&Ape(n,t))return!0}return!1}function wpe(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:wpe(e.object)}var Zue=Xp`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),MVe=e=>class extends e{parsePlaceholder(t){if(this.match(133)){let r=this.startNode();return this.next(),this.assertNoSpace(),r.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(r,t)}}finishPlaceholder(t,r){let n=t;return(!n.expectedNode||!n.type)&&(n=this.finishNode(n,"Placeholder")),n.expectedNode=r,n}getTokenFromCode(t){t===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(t)}parseExprAtom(t){return this.parsePlaceholder("Expression")||super.parseExprAtom(t)}parseIdentifier(t){return this.parsePlaceholder("Identifier")||super.parseIdentifier(t)}checkReservedWord(t,r,n,o){t!==void 0&&super.checkReservedWord(t,r,n,o)}cloneIdentifier(t){let r=super.cloneIdentifier(t);return r.type==="Placeholder"&&(r.expectedNode=t.expectedNode),r}cloneStringLiteral(t){return t.type==="Placeholder"?this.cloneIdentifier(t):super.cloneStringLiteral(t)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(t,r,n,o){return t==="Placeholder"||super.isValidLVal(t,r,n,o)}toAssignable(t,r){t&&t.type==="Placeholder"&&t.expectedNode==="Expression"?t.expectedNode="Pattern":super.toAssignable(t,r)}chStartsBindingIdentifier(t,r){if(super.chStartsBindingIdentifier(t,r))return!0;let n=this.nextTokenStart();return this.input.charCodeAt(n)===37&&this.input.charCodeAt(n+1)===37}verifyBreakContinue(t,r){t.label&&t.label.type==="Placeholder"||super.verifyBreakContinue(t,r)}parseExpressionStatement(t,r){if(r.type!=="Placeholder"||r.extra?.parenthesized)return super.parseExpressionStatement(t,r);if(this.match(14)){let o=t;return o.label=this.finishPlaceholder(r,"Identifier"),this.next(),o.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(o,"LabeledStatement")}this.semicolon();let n=t;return n.name=r.name,this.finishPlaceholder(n,"Statement")}parseBlock(t,r,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(t,r,n)}parseFunctionId(t){return this.parsePlaceholder("Identifier")||super.parseFunctionId(t)}parseClass(t,r,n){let o=r?"ClassDeclaration":"ClassExpression";this.next();let i=this.state.strict,a=this.parsePlaceholder("Identifier");if(a)if(this.match(81)||this.match(133)||this.match(5))t.id=a;else{if(n||!r)return t.id=null,t.body=this.finishPlaceholder(a,"ClassBody"),this.finishNode(t,o);throw this.raise(Zue.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(t,r,n);return super.parseClassSuper(t),t.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!t.superClass,i),this.finishNode(t,o)}parseExport(t,r){let n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(t,r);let o=t;if(!this.isContextual(98)&&!this.match(12))return o.specifiers=[],o.source=null,o.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(o,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let i=this.startNode();return i.exported=n,o.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],super.parseExport(o,r)}isExportDefaultSpecifier(){if(this.match(65)){let t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(Um(133),this.nextTokenStartSince(t+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(t,r){return t.specifiers?.length?!0:super.maybeParseExportDefaultSpecifier(t,r)}checkExport(t){let{specifiers:r}=t;r?.length&&(t.specifiers=r.filter(n=>n.exported.type==="Placeholder")),super.checkExport(t),t.specifiers=r}parseImport(t){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseImport(t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");let n=this.startNodeAtNode(r);return n.local=r,t.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Zue.UnexpectedSpace,this.state.lastTokEndLoc)}},jVe=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let t=this.state.startLoc,r=this.startNode();if(this.next(),Qn(this.state.type)){let n=this.parseIdentifierName(),o=this.createIdentifier(r,n);if(this.castNodeTo(o,"V8IntrinsicIdentifier"),this.match(10))return o}this.unexpected(t)}}parseExprAtom(t){return this.parseV8Intrinsic()||super.parseExprAtom(t)}},Wue=["fsharp","hack"],Que=["^^","@@","^","%","#"];function BVe(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=e.get("decorators").decoratorsBeforeExport;if(t!=null&&typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=e.get("decorators").allowCallParenthesized;if(r!=null&&typeof r!="boolean")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")){let t=e.get("pipelineOperator").proposal;if(!Wue.includes(t)){let r=Wue.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${r}.`)}if(t==="hack"){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.");let r=e.get("pipelineOperator").topicToken;if(!Que.includes(r)){let n=Que.map(o=>`"${o}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}}}if(e.has("moduleAttributes"))throw new Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(e.has("importAssertions"))throw new Error("`importAssertions` has been removed in Babel 8, please use import attributes instead. To use the non-standard `assert` syntax you can enable the `deprecatedImportAssert` parser plugin.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax)throw new Error("The 'importAttributes' plugin has been removed in Babel 8. If you need to enable support for the deprecated `assert` syntax, you can enable the `deprecatedImportAssert` parser plugin.");if(e.has("recordAndTuple"))throw new Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")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")&&e.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");{if(e.has("decimal"))throw new Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("importReflection"))throw new Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}}var Ipe={estree:kze,jsx:cVe,flow:iVe,typescript:FVe,v8intrinsic:jVe,placeholders:MVe},qVe=Object.keys(Ipe),UVe=class extends CVe{checkProto(e,t,r,n){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return r;let o=e.key;return(o.type==="Identifier"?o.name:o.value)==="__proto__"?t?(this.raise(W.RecordNoProto,o),!0):(r&&(n?n.doubleProtoLoc===null&&(n.doubleProtoLoc=o.loc.start):this.raise(W.DuplicateProto,o)),!0):r}shouldExitDescending(e,t){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(W.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(W.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&256&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){let t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){let 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){let r=this.state.startLoc,n=this.isContextual(108);if(n&&this.prodParam.hasYield){this.next();let s=this.parseYield(r);return t&&(s=t.call(this,s,r)),s}let o;e?o=!1:(e=new D3,o=!0);let{type:i}=this.state;(i===10||Qn(i))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e);if(t&&(a=t.call(this,a,r)),Fze(this.state.type)){let s=this.startNodeAt(r),c=this.state.value;if(s.operator=c,this.match(29)){this.toAssignable(a,!0),s.left=a;let p=r.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=p&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=p&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=p&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),e.voidPatternLoc!=null&&e.voidPatternLoc.index>=p&&(e.voidPatternLoc=null)}else s.left=a;return this.next(),s.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(s,"AssignmentExpression"),void 0,void 0,void 0,void 0,c==="||="||c==="&&="||c==="??="),s}else o&&this.checkExpressionErrors(e,!0);if(n){let{type:s}=this.state;if((this.hasPlugin("v8intrinsic")?oD(s):oD(s)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(W.YieldNotInGeneratorFunction,r),this.parseYield(r)}return a}parseMaybeConditional(e){let 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)){let n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let 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)){let o=this.getPrivateNameSV(e);(r>=E3(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(W.PrivateInExpectedIn,e,{identifierName:o}),this.classScope.usePrivateName(o,e.loc.start)}let n=this.state.type;if(Lze(n)&&(this.prodParam.hasIn||!this.match(58))){let o=E3(n);if(o>r){if(n===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let i=this.startNodeAt(t);i.left=e,i.operator=this.state.value;let a=n===41||n===42,s=n===40;s&&(o=E3(42)),this.next(),i.right=this.parseExprOpRightExpr(n,o);let c=this.finishNode(i,a||s?"LogicalExpression":"BinaryExpression"),p=this.state.type;if(s&&(p===41||p===42)||a&&p===40)throw this.raise(W.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,t,r)}}return e}parseExprOpRightExpr(e,t){switch(this.state.startLoc,e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){let r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,qze(e)?t-1:t)}parseHackPipeBody(){let{startLoc:e}=this.state,t=this.parseMaybeAssign();return xze.has(t.type)&&!t.extra?.parenthesized&&this.raise(W.PipeUnparenthesizedBody,e,{type:t.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(W.PipeTopicUnused,e),t}checkExponentialAfterUnary(e){this.match(57)&&this.raise(W.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let r=this.state.startLoc,n=this.isContextual(96);if(n&&this.recordAwaitIfAllowed()){this.next();let s=this.parseAwait(r);return t||this.checkExponentialAfterUnary(s),s}let o=this.match(34),i=this.startNode();if(Mze(this.state.type)){i.operator=this.state.value,i.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let s=this.match(89);if(this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&s){let c=i.argument;c.type==="Identifier"?this.raise(W.StrictDelete,i):this.hasPropertyAsPrivateName(c)&&this.raise(W.DeletePrivateField,i)}if(!o)return t||this.checkExponentialAfterUnary(i),this.finishNode(i,"UnaryExpression")}let a=this.parseUpdate(i,o,e);if(n){let{type:s}=this.state;if((this.hasPlugin("v8intrinsic")?oD(s):oD(s)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(W.AwaitNotInAsyncContext,r),this.parseAwait(r)}return a}parseUpdate(e,t,r){if(t){let i=e;return this.checkLVal(i.argument,this.finishNode(i,"UpdateExpression")),e}let n=this.state.startLoc,o=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return o;for(;$ze(this.state.type)&&!this.canInsertSemicolon();){let i=this.startNodeAt(n);i.operator=this.state.value,i.prefix=!1,i.argument=o,this.next(),this.checkLVal(o,o=this.finishNode(i,"UpdateExpression"))}return o}parseExprSubscripts(e){let 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){let 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){let{type:o}=this.state;if(!r&&o===15)return this.parseBind(e,t,r,n);if(Wq(o))return this.parseTaggedTemplateExpression(e,t,n);let i=!1;if(o===18){if(r&&(this.raise(W.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(e,n);n.optionalChainMember=i=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,n,i);{let a=this.eat(0);return a||i||this.eat(16)?this.parseMember(e,t,n,a,i):this.stopParseSubscript(e,n)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,r,n,o){let i=this.startNodeAt(t);return i.object=e,i.computed=n,n?(i.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type==="Super"&&this.raise(W.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),r.optionalChainMember?(i.optional=o,this.finishNode(i,"OptionalMemberExpression")):this.finishNode(i,"MemberExpression")}parseBind(e,t,r,n){let o=this.startNodeAt(t);return o.object=e,this.next(),o.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(o,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,n){let o=this.state.maybeInArrowParameters,i=null;this.state.maybeInArrowParameters=!0,this.next();let a=this.startNodeAt(t);a.callee=e;let{maybeAsyncArrow:s,optionalChainMember:c}=r;s&&(this.expressionScope.enter(wVe()),i=new D3),c&&(a.optional=n),n?a.arguments=this.parseCallExpressionArguments():a.arguments=this.parseCallExpressionArguments(e.type!=="Super",a,i);let p=this.finishCallExpression(a,c);return s&&this.shouldParseAsyncArrow()&&!n?(r.stop=!0,this.checkDestructuringPrivate(i),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),p=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),p)):(s&&(this.checkExpressionErrors(i,!0),this.expressionScope.exit()),this.toReferencedArguments(p)),this.state.maybeInArrowParameters=o,p}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){let n=this.startNodeAt(t);return n.tag=e,n.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(W.OptionalChainingNoTemplate,t),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type==="Import")if(e.arguments.length===0||e.arguments.length>2)this.raise(W.ImportCallArity,e);else for(let r of e.arguments)r.type==="SpreadElement"&&this.raise(W.ImportCallSpreadArgument,r);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r){let n=[],o=!0,i=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(o)o=!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){return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,t.extra?.trailingCommaLoc),t.innerComments&&jv(e,t.innerComments),t.callee.trailingComments&&jv(e,t.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,r=null,{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)?this.optionFlags&512?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(W.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:{let o=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(o)}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;let o=t.callee=this.parseNoCallExpr();if(o.type==="MemberExpression")return this.finishNode(t,"BindExpression");throw this.raise(W.UnsupportedBind,o)}case 139:return this.raise(W.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:{let o=this.getPluginOption("pipelineOperator","proposal");if(o)return this.parseTopicReference(o);throw this.unexpected()}case 47:{let o=this.input.codePointAt(this.nextTokenStart());throw Yp(o)||o===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(Qn(n)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let o=this.state.potentialArrowAt===this.state.start,i=this.state.containsEsc,a=this.parseIdentifier();if(!i&&a.name==="async"&&!this.canInsertSemicolon()){let{type:s}=this.state;if(s===68)return this.resetPreviousNodeTrailingComments(a),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(a));if(Qn(s))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(a)):a;if(s===90)return this.resetPreviousNodeTrailingComments(a),this.parseDo(this.startNodeAtNode(a),!0)}return o&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(a),[a],!1)):a}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let 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=Fl(this.state.endLoc,-1),this.parseTopicReference(r);throw this.unexpected()}parseTopicReference(e){let 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 this.topicReferenceIsAllowedInCurrentContext()||this.raise(W.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,"TopicReference");throw this.raise(W.PipeTopicUnconfiguredToken,t,{token:Um(n)})}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Um(r)}]);case"smart":return r===27;default:throw this.raise(W.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(T3(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(W.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();let 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(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.raise(W.SuperNotAllowed,e):this.scope.allowSuper||this.raise(W.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(W.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(Fl(this.state.startLoc,1)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let 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;let n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(W.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let t=this.isContextual(105);return this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}else{let t=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(W.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){let 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){{let t;try{t=BigInt(e)}catch{t=null}return this.parseLiteral(t,"BigIntLiteral")}}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let 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){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let t=this.state.startLoc,r;this.next(),this.expressionScope.enter(AVe());let n=this.state.maybeInArrowParameters,o=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let i=this.state.startLoc,a=[],s=new D3,c=!0,p,d;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,s.optionalParametersLoc===null?null:s.optionalParametersLoc),this.match(11)){d=this.state.startLoc;break}if(this.match(21)){let y=this.state.startLoc;if(p=this.state.startLoc,a.push(this.parseParenItem(this.parseRestBinding(),y)),!this.checkCommaAfterRest(41))break}else a.push(this.parseMaybeAssignAllowInOrVoidPattern(11,s,this.parseParenItem))}let f=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=o;let m=this.startNodeAt(t);return e&&this.shouldParseArrow(a)&&(m=this.parseArrow(m))?(this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(m,a,!1),m):(this.expressionScope.exit(),a.length||this.unexpected(this.state.lastTokStartLoc),d&&this.unexpected(d),p&&this.unexpected(p),this.checkExpressionErrors(s,!0),this.toReferencedListDeep(a,!0),a.length>1?(r=this.startNodeAt(i),r.expressions=a,this.finishNode(r,"SequenceExpression"),this.resetEndLocation(r,f)):r=a[0],this.wrapParenthesis(t,r))}wrapParenthesis(e,t){if(!(this.optionFlags&1024))return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let 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(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let r=this.parseMetaProperty(e,t,"target");return this.scope.allowNewTarget||this.raise(W.UnexpectedNewTarget,r),r}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let t=this.match(83),r=this.parseNoCallExpr();e.callee=r,t&&(r.type==="Import"||r.type==="ImportExpression")&&this.raise(W.ImportCallNotNewExpression,r)}parseTemplateElement(e){let{start:t,startLoc:r,end:n,value:o}=this.state,i=t+1,a=this.startNodeAt(Fl(r,1));o===null&&(e||this.raise(W.InvalidEscapeSequenceTemplate,Fl(this.state.firstInvalidTemplateEscapePos,1)));let s=this.match(24),c=s?-1:-2,p=n+c;a.value={raw:this.input.slice(i,p).replace(/\r\n?/g,` -`),cooked:o===null?null:o.slice(1,c)},a.tail=s,this.next();let d=this.finishNode(a,"TemplateElement");return this.resetEndLocation(d,Fl(this.state.lastTokEndLoc,c)),d}parseTemplate(e){let t=this.startNode(),r=this.parseTemplateElement(e),n=[r],o=[];for(;!r.tail;)o.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),n.push(r=this.parseTemplateElement(e));return t.expressions=o,t.quasis=n,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");let o=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let i=!1,a=!0,s=this.startNode();for(s.properties=[],this.next();!this.match(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(s);break}let p;t?p=this.parseBindingProperty():(p=this.parsePropertyDefinition(n),i=this.checkProto(p,r,i,n)),r&&!this.isObjectProperty(p)&&p.type!=="SpreadElement"&&this.raise(W.InvalidRecordProperty,p),s.properties.push(p)}this.next(),this.state.inFSharpPipelineDirectBody=o;let c="ObjectExpression";return t?c="ObjectPattern":r&&(c="RecordExpression"),this.finishNode(s,c)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(W.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());let r=this.startNode(),n=!1,o=!1,i;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(r.decorators=t,t=[]),r.method=!1,e&&(i=this.state.startLoc);let a=this.eat(55);this.parsePropertyNamePrefixOperator(r);let s=this.state.containsEsc;if(this.parsePropertyName(r,e),!a&&!s&&this.maybeAsyncOrAccessorProp(r)){let{key:c}=r,p=c.name;p==="async"&&!this.hasPrecedingLineBreak()&&(n=!0,this.resetPreviousNodeTrailingComments(c),a=this.eat(55),this.parsePropertyName(r)),(p==="get"||p==="set")&&(o=!0,this.resetPreviousNodeTrailingComments(c),r.kind=p,this.match(55)&&(a=!0,this.raise(W.AccessorIsGenerator,this.state.curPosition(),{kind:p}),this.next()),this.parsePropertyName(r))}return this.parseObjPropValue(r,i,a,n,!1,o,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){let t=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e);r.length!==t&&this.raise(e.kind==="get"?W.BadGetterArity:W.BadSetterArity,e),e.kind==="set"&&r[r.length-1]?.type==="RestElement"&&this.raise(W.BadSetterRestParameter,e)}parseObjectMethod(e,t,r,n,o){if(o){let i=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(i),i}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&&e.key.type==="Identifier"){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)){let o=this.state.startLoc;n!=null?n.shorthandAssignLoc===null&&(n.shorthandAssignLoc=o):this.raise(W.InvalidCoverInitializedName,o),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,o,i,a){let s=this.parseObjectMethod(e,r,n,o,i)||this.parseObjectProperty(e,t,o,a);return s||this.unexpected(),s}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:r,value:n}=this.state,o;if(Pu(r))o=this.parseIdentifier(!0);else switch(r){case 135:o=this.parseNumericLiteral(n);break;case 134:o=this.parseStringLiteral(n);break;case 136:o=this.parseBigIntLiteral(n);break;case 139:{let i=this.state.startLoc;t!=null?t.privateKeyLoc===null&&(t.privateKeyLoc=i):this.raise(W.UnexpectedPrivateField,i),o=this.parsePrivateName();break}default:this.unexpected()}e.key=o,r!==139&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,r,n,o,i,a=!1){this.initFunction(e,r),e.generator=t,this.scope.enter(530|(a?576:0)|(o?32:0)),this.prodParam.enter(T3(r,e.generator)),this.parseFunctionParams(e,n);let s=this.parseFunctionBodyAndFinish(e,i,!0);return this.prodParam.exit(),this.scope.exit(),s}parseArrayLike(e,t,r){t&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let o=this.startNode();return this.next(),o.elements=this.parseExprList(e,!t,r,o),this.state.inFSharpPipelineDirectBody=n,this.finishNode(o,t?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,n){this.scope.enter(518);let o=T3(r,!1);!this.match(5)&&this.prodParam.hasIn&&(o|=8),this.prodParam.enter(o),this.initFunction(e,r);let 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){let n=t&&!this.match(5);if(this.expressionScope.enter(Dpe()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let o=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,a=>{let s=!this.isSimpleParamList(e.params);a&&s&&this.raise(W.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&e.key?e.key.loc.end:e);let c=!o&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!r&&!s,t,c),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,c)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let t=0,r=e.length;t10||!Qze(e))){if(r&&Hze(e)){this.raise(W.UnexpectedKeyword,t,{keyword:e});return}if((this.state.strict?n?Spe:ype:hpe)(e,this.inModule)){this.raise(W.UnexpectedReservedWord,t,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(W.YieldBindingIdentifier,t);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(W.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(W.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(W.ArgumentsInClass,t);return}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(W.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(W.ObsoleteAwaitStar,t),!this.scope.inFunction&&!(this.optionFlags&1)&&(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;let{type:e}=this.state;return e===53||e===10||e===0||Wq(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(e){let t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(W.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(W.ImportCallArity,e)}}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&e.type==="SequenceExpression"&&this.raise(W.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}else{let 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(W.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(W.PipelineTopicUnused,e)}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){return e()}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(t&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let n=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,n}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let 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");let t=this.startNode();return e!=null&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,t,r){if(t!=null&&this.match(88)){let n=this.lookaheadCharCode();if(n===44||n===(e===3?93:e===8?125:41)||n===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,r)}parsePropertyNamePrefixOperator(e){}},Kq={kind:1},zVe={kind:2},VVe=/[\uD800-\uDFFF]/u,Gq=/in(?:stanceof)?/y;function JVe(e,t,r){for(let n=0;n0)for(let[o,i]of Array.from(this.scope.undefinedExports))this.raise(W.ModuleExportUndefined,i,{localName:o});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let n;return t===140?n=this.finishNode(e,"Program"):n=this.finishNodeAt(e,"Program",Fl(this.state.startLoc,-1)),n}stmtToDirective(e){let t=this.castNodeTo(e,"Directive"),r=this.castNodeTo(e.expression,"DirectiveLiteral"),n=r.value,o=this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end)),i=r.value=o.slice(1,-1);return this.addExtra(r,"raw",o),this.addExtra(r,"rawValue",i),this.addExtra(r,"expressionValue",n),t.value=r,delete e.expression,t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){let r=this.lookaheadCharCodeSince(e+2);if(r!==61&&r!==58&&r!==59)return!1}return!!(this.chStartsBindingIdentifier(t,e)||this.isUnparsedContextual(e,"void"))}nextTokenIsIdentifierOnSameLine(){let 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);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(Yp(e)){if(Gq.lastIndex=t,Gq.test(this.input)){let r=this.codePointAtPos(Gq.lastIndex);if(!mg(r)&&r!==92)return!1}return!0}else return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return t===123||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){let r=this.state.type,n=this.startNode(),o=!!(e&2),i=!!(e&4),a=e&1;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(this.lookaheadCharCode()===46)break;return i||this.raise(this.state.strict?W.StrictFunction:this.options.annexB?W.SloppyFunctionAnnexB:W.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(n,!1,!o&&i);case 80:return o||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()?o?this.recordAwaitIfAllowed()||this.raise(W.AwaitUsingNotInAsyncContext,n):this.raise(W.UnexpectedLexicalDeclaration,n):this.raise(W.UnexpectedUsingDeclaration,n),this.next(),this.parseVarStatement(n,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?o||this.raise(W.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(W.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(n,"using");case 100:{if(this.state.containsEsc)break;let p=this.nextTokenStart(),d=this.codePointAtPos(p);if(d!==91&&(!o&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(d,p)&&d!==123))break}case 75:o||this.raise(W.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let p=this.state.value;return this.parseVarStatement(n,p)}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:{let p=this.lookaheadCharCode();if(p===40||p===46)break}case 82:{!(this.optionFlags&8)&&!a&&this.raise(W.UnexpectedImportExport,this.state.startLoc),this.next();let p;return r===83?p=this.parseImport(n):p=this.parseExport(n,t),this.assertModuleNodeAllowed(p),p}default:if(this.isAsyncFunction())return o||this.raise(W.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(n,!0,!o&&i)}let s=this.state.value,c=this.parseExpression();return Qn(r)&&c.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(n,s,c,e):this.parseExpressionStatement(n,c,t)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(W.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(e,t,r){return e&&(t.decorators?.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(W.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do t.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(W.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(W.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let t=this.state.startLoc,r;if(this.match(10)){let n=this.state.startLoc;this.next(),r=this.parseExpression(),this.expect(11),r=this.wrapParenthesis(n,r);let o=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(r,n),this.getPluginOption("decorators","allowCallParenthesized")===!1&&e.expression!==r&&this.raise(W.DecoratorArgumentsOutsideParentheses,o)}else{for(r=this.parseIdentifier(!1);this.eat(16);){let n=this.startNodeAt(t);n.object=r,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),n.computed=!1,r=this.finishNode(n,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(r,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){let 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;rthis.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(Kq);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 t!==null&&this.unexpected(t),this.parseFor(e,null);let r=this.isContextual(100);{let s=this.isAwaitUsing(),c=s||this.isForUsing(),p=r&&this.hasFollowingBindingAtom()||c;if(this.match(74)||this.match(75)||p){let d=this.startNode(),f;s?(f="await using",this.recordAwaitIfAllowed()||this.raise(W.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):f=this.state.value,this.next(),this.parseVar(d,!0,f);let m=this.finishNode(d,"VariableDeclaration"),y=this.match(58);return y&&c&&this.raise(W.ForInUsing,m),(y||this.isContextual(102))&&m.declarations.length===1?this.parseForIn(e,m,t):(t!==null&&this.unexpected(t),this.parseFor(e,m))}}let n=this.isContextual(95),o=new D3,i=this.parseExpression(!0,o),a=this.isContextual(102);if(a&&(r&&this.raise(W.ForOfLet,i),t===null&&n&&i.type==="Identifier"&&this.raise(W.ForOfAsync,i)),a||this.match(58)){this.checkDestructuringPrivate(o),this.toAssignable(i,!0);let s=a?"ForOfStatement":"ForInStatement";return this.checkLVal(i,{type:s}),this.parseForIn(e,i,t)}else this.checkExpressionErrors(o,!0);return t!==null&&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(W.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();let t=e.cases=[];this.expect(5),this.state.labels.push(zVe),this.scope.enter(256);let r;for(let n;!this.match(8);)if(this.match(61)||this.match(65)){let o=this.match(61);r&&this.finishNode(r,"SwitchCase"),t.push(r=this.startNode()),r.consequent=[],this.next(),o?r.test=this.parseExpression():(n&&this.raise(W.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),n=!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(W.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let 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(W.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(Kq),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(W.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(let i of this.state.labels)i.name===t&&this.raise(W.LabelRedeclaration,r,{labelName:t});let o=Rze(this.state.type)?1:this.match(71)?2:null;for(let i=this.state.labels.length-1;i>=0;i--){let a=this.state.labels[i];if(a.statementStart===e.start)a.statementStart=this.sourceToOffsetPos(this.state.start),a.kind=o;else break}return this.state.labels.push({name:t,kind:o,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=n&8?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){let 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 e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,n,o){let i=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(i,t?a:void 0,r,n,o)}parseBlockOrModuleBlockBody(e,t,r,n,o){let i=this.state.strict,a=!1,s=!1;for(;!this.match(n);){let c=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!s){if(this.isValidDirective(c)){let p=this.stmtToDirective(c);t.push(p),!a&&p.value.value==="use strict"&&(a=!0,this.setStrict(!0));continue}s=!0,this.state.strictErrors.clear()}e.push(c)}o?.call(this,a),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){let n=this.match(58);return this.next(),n?r!==null&&this.unexpected(r):e.await=r!==null,t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!n||!this.options.annexB||this.state.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(W.ForInOfLoopInitializer,t,{type:n?"ForInStatement":"ForOfStatement"}),t.type==="AssignmentPattern"&&this.raise(W.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){let o=e.declarations=[];for(e.kind=r;;){let i=this.startNode();if(this.parseVarId(i,r),i.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,i.init===null&&!n&&(i.id.type!=="Identifier"&&!(t&&(this.match(58)||this.isContextual(102)))?this.raise(W.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(r==="const"||r==="using"||r==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(W.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r})),o.push(this.finishNode(i,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){let r=this.parseBindingAtom();t==="using"||t==="await using"?(r.type==="ArrayPattern"||r.type==="ObjectPattern")&&this.raise(W.UsingDeclarationHasBindingPattern,r.loc.start):r.type==="VoidPattern"&&this.raise(W.UnexpectedVoidPattern,r.loc.start),this.checkLVal(r,{type:"VariableDeclarator"},t==="var"?5:8201),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let r=t&2,n=!!(t&1),o=n&&!(t&4),i=!!(t&8);this.initFunction(e,i),this.match(55)&&(r&&this.raise(W.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),n&&(e.id=this.parseFunctionId(o));let a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(T3(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=a,e}parseFunctionId(e){return e||Qn(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(DVe()),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();let 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 e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let r={hadConstructor:!1,hadSuperClass:e},n=[],o=this.startNode();if(o.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(n.length>0)throw this.raise(W.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){n.push(this.parseDecorator());continue}let i=this.startNode();n.length&&(i.decorators=n,this.resetStartLocationFromNode(i,n[0]),n=[]),this.parseClassMember(o,i,r),i.kind==="constructor"&&i.decorators&&i.decorators.length>0&&this.raise(W.DecoratorConstructor,i)}}),this.state.strict=t,this.next(),n.length)throw this.raise(W.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(o,"ClassBody")}parseClassMemberFromModifier(e,t){let r=this.parseIdentifier(!0);if(this.isClassMethod()){let n=t;return n.kind="method",n.computed=!1,n.key=r,n.static=!1,this.pushClassMethod(e,n,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let 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){let n=this.isContextual(106);if(n){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,r,n)}parseClassMemberWithIsStatic(e,t,r,n){let o=t,i=t,a=t,s=t,c=t,p=o,d=o;if(t.static=n,this.parsePropertyNamePrefixOperator(t),this.eat(55)){p.kind="method";let x=this.match(139);if(this.parseClassElementName(p),this.parsePostMemberNameModifiers(p),x){this.pushClassPrivateMethod(e,i,!0,!1);return}this.isNonstaticConstructor(o)&&this.raise(W.ConstructorIsGenerator,o.key),this.pushClassMethod(e,o,!0,!1,!1,!1);return}let f=!this.state.containsEsc&&Qn(this.state.type),m=this.parseClassElementName(t),y=f?m.name:null,g=this.isPrivateName(m),S=this.state.startLoc;if(this.parsePostMemberNameModifiers(d),this.isClassMethod()){if(p.kind="method",g){this.pushClassPrivateMethod(e,i,!1,!1);return}let x=this.isNonstaticConstructor(o),A=!1;x&&(o.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(W.DuplicateConstructor,m),x&&this.hasPlugin("typescript")&&t.override&&this.raise(W.OverrideOnConstructor,m),r.hadConstructor=!0,A=r.hadSuperClass),this.pushClassMethod(e,o,!1,!1,x,A)}else if(this.isClassProperty())g?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,a);else if(y==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(m);let x=this.eat(55);d.optional&&this.unexpected(S),p.kind="method";let A=this.match(139);this.parseClassElementName(p),this.parsePostMemberNameModifiers(d),A?this.pushClassPrivateMethod(e,i,x,!0):(this.isNonstaticConstructor(o)&&this.raise(W.ConstructorIsAsync,o.key),this.pushClassMethod(e,o,x,!0,!1,!1))}else if((y==="get"||y==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(m),p.kind=y;let x=this.match(139);this.parseClassElementName(o),x?this.pushClassPrivateMethod(e,i,!1,!1):(this.isNonstaticConstructor(o)&&this.raise(W.ConstructorIsAccessor,o.key),this.pushClassMethod(e,o,!1,!1,!1,!1)),this.checkGetterSetterParams(o)}else if(y==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(m);let x=this.match(139);this.parseClassElementName(a),this.pushClassAccessorProperty(e,c,x)}else this.isLineTerminator()?g?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,a):this.unexpected()}parseClassElementName(e){let{type:t,value:r}=this.state;if((t===132||t===134)&&e.static&&r==="prototype"&&this.raise(W.StaticPrototype,this.state.startLoc),t===139){r==="constructor"&&this.raise(W.ConstructorClassPrivateField,this.state.startLoc);let n=this.parsePrivateName();return e.key=n,n}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){this.scope.enter(720);let r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let n=t.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,"StaticBlock")),t.decorators?.length&&this.raise(W.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(W.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let 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(W.ConstructorClassField,t.key);let 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,o,i){e.body.push(this.parseMethod(t,r,n,o,i,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,n){let o=this.parseMethod(t,r,n,!1,!1,"ClassPrivateMethod",!0);e.body.push(o);let i=o.kind==="get"?o.static?6:2:o.kind==="set"?o.static?5:1:0;this.declareClassPrivateMethodInScope(o,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(Dpe()),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(Qn(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,n);else if(r||!t)e.id=null;else throw this.raise(W.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let r=this.parseMaybeImportPhase(e,!0),n=this.maybeParseExportDefaultSpecifier(e,r),o=!n||this.eat(12),i=o&&this.eatExportStar(e),a=i&&this.maybeParseExportNamespaceSpecifier(e),s=o&&(!a||this.eat(12)),c=n||i;if(i&&!a){if(n&&this.unexpected(),t)throw this.raise(W.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let p=this.maybeParseExportNamedSpecifiers(e);n&&o&&!i&&!p&&this.unexpected(null,5),a&&s&&this.unexpected(null,98);let d;if(c||p){if(d=!1,t)throw this.raise(W.UnsupportedDecoratorExport,e);this.parseExportFrom(e,c)}else d=this.maybeParseExportDeclaration(e);if(c||p||d){let f=e;if(this.checkExport(f,!0,!1,!!f.source),f.declaration?.type==="ClassDeclaration")this.maybeTakeDecorators(t,f.declaration,f);else if(t)throw this.raise(W.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(f,"ExportNamedDeclaration")}if(this.eat(65)){let f=e,m=this.parseExportDefaultExpression();if(f.declaration=m,m.type==="ClassDeclaration")this.maybeTakeDecorators(t,m,f);else if(t)throw this.raise(W.UnsupportedDecoratorExport,e);return this.checkExport(f,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(f,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",t?.loc.start);let 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)){e.specifiers??(e.specifiers=[]);let t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let t=e;t.specifiers||(t.specifiers=[]);let r=t.exportKind==="type";return t.specifiers.push(...this.parseExportSpecifiers(r)),t.source=null,t.attributes=[],t.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let 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")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(W.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(W.UnsupportedDefaultExport,this.state.startLoc);let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(Qn(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let n=this.nextTokenStart(),o=this.input.charCodeAt(n);if(o===123||this.chStartsBindingIdentifier(o,n)&&!this.input.startsWith("from",n))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),r=this.isUnparsedContextual(t,"from");if(this.input.charCodeAt(t)===44||Qn(this.state.type)&&r)return!0;if(this.match(65)&&r){let n=this.input.charCodeAt(this.nextTokenStartSince(t+4));return n===34||n===39}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(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(W.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(W.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(W.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,n){if(t){if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){let o=e.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!o.extra?.parenthesized&&this.raise(W.ExportDefaultFromAsIdentifier,o)}}else if(e.specifiers?.length)for(let o of e.specifiers){let{exported:i}=o,a=i.type==="Identifier"?i.name:i.value;if(this.checkDuplicateExports(o,a),!n&&o.local){let{local:s}=o;s.type!=="Identifier"?this.raise(W.ExportBindingIsString,o,{localName:s.value,exportName:a}):(this.checkReservedWord(s.name,s.loc.start,!0,!1),this.scope.checkLocalExport(s))}}else if(e.declaration){let o=e.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:i}=o;if(!i)throw new Error("Assertion failure");this.checkDuplicateExports(e,i.name)}else if(o.type==="VariableDeclaration")for(let i of o.declarations)this.checkDeclaration(i.id)}}}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let t of e.properties)this.checkDeclaration(t);else if(e.type==="ArrayPattern")for(let t of e.elements)t&&this.checkDeclaration(t);else e.type==="ObjectProperty"?this.checkDeclaration(e.value):e.type==="RestElement"?this.checkDeclaration(e.argument):e.type==="AssignmentPattern"&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&(t==="default"?this.raise(W.DuplicateDefaultExport,e):this.raise(W.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;let n=this.isContextual(130),o=this.match(134),i=this.startNode();i.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(i,o,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)){let e=this.parseStringLiteral(this.state.value),t=VVe.exec(e.value);return t&&this.raise(W.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions!=null?e.assertions.some(({key:t,value:r})=>r.value==="json"&&(t.type==="Identifier"?t.name==="type":t.value==="type")):!1}checkImportReflection(e){let{specifiers:t}=e,r=t.length===1?t[0].type:null;e.phase==="source"?r!=="ImportDefaultSpecifier"&&this.raise(W.SourcePhaseImportRequiresDefault,t[0].loc.start):e.phase==="defer"?r!=="ImportNamespaceSpecifier"&&this.raise(W.DeferImportRequiresNamespace,t[0].loc.start):e.module&&(r!=="ImportDefaultSpecifier"&&this.raise(W.ImportReflectionNotBinding,t[0].loc.start),e.assertions?.length>0&&this.raise(W.ImportReflectionHasAssertion,t[0].loc.start))}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){let{specifiers:t}=e;if(t!=null){let r=t.find(n=>{let o;if(n.type==="ExportSpecifier"?o=n.local:n.type==="ImportSpecifier"&&(o=n.imported),o!==void 0)return o.type==="Identifier"?o.name!=="default":o.value!=="default"});r!==void 0&&this.raise(W.ImportJSONBindingNotDefault,r.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)}applyImportPhase(e,t,r,n){t||(this.hasPlugin("importReflection")&&(e.module=!1),r==="source"?(this.expectPlugin("sourcePhaseImports",n),e.phase="source"):r==="defer"?(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;let r=this.startNode(),n=this.parseIdentifierName(!0),{type:o}=this.state;return(Pu(o)?o!==98||this.lookaheadCharCode()===102:o!==12)?(this.applyImportPhase(e,t,n,r.loc.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(r,n))}isPrecedingIdImportPhase(e){let{type:t}=this.state;return Qn(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let 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 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);let e=[],t=new Set;do{if(this.match(8))break;let r=this.startNode(),n=this.state.value;if(t.has(n)&&this.raise(W.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(W.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(){let e=[],t=new Set;do{let r=this.startNode();if(r.key=this.parseIdentifier(!0),r.key.name!=="type"&&this.raise(W.ModuleAttributeDifferentFromType,r.key),t.has(r.key.name)&&this.raise(W.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(134))throw this.raise(W.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;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),t=this.parseImportAttributes()}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.raise(W.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}else if(Pu(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let 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(W.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let r=this.startNode(),n=this.match(134),o=this.isContextual(130);r.imported=this.parseModuleExportName();let i=this.parseImportSpecifier(r,n,e.importKind==="type"||e.importKind==="typeof",o,void 0);e.specifiers.push(i)}}parseImportSpecifier(e,t,r,n,o){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:i}=e;if(t)throw this.raise(W.ImportBindingIsString,e,{importName:i.value});this.checkReservedWord(i.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(i))}return this.finishImportSpecifier(e,"ImportSpecifier",o)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}},kpe=class extends KVe{constructor(e,t,r){let n=wze(e);super(n,t),this.options=n,this.initializeScopes(),this.plugins=r,this.filename=n.sourceFilename,this.startIndex=n.startIndex;let o=0;n.allowAwaitOutsideFunction&&(o|=1),n.allowReturnOutsideFunction&&(o|=2),n.allowImportExportEverywhere&&(o|=8),n.allowSuperOutsideMethod&&(o|=16),n.allowUndeclaredExports&&(o|=64),n.allowNewTargetOutsideFunction&&(o|=4),n.allowYieldOutsideFunction&&(o|=32),n.ranges&&(o|=128),n.tokens&&(o|=256),n.createImportExpressions&&(o|=512),n.createParenthesizedExpressions&&(o|=1024),n.errorRecovery&&(o|=2048),n.attachComment&&(o|=4096),n.annexB&&(o|=8192),this.optionFlags=o}getScopeHandler(){return hU}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=null;let r=this.parseTopLevel(e,t);return r.errors=this.state.errors,r.comments.length=this.state.commentsLen,r}};function Cpe(e,t){if(t?.sourceType==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let r=iD(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",iD(t,e).parse()}catch{}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",iD(t,e).parse()}catch{}throw r}}else return iD(t,e).parse()}function Ppe(e,t){let r=iD(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function GVe(e){let t={};for(let r of Object.keys(e))t[r]=_pe(e[r]);return t}var d7t=GVe(Pze);function iD(e,t){let r=kpe,n=new Map;if(e?.plugins){for(let o of e.plugins){let i,a;typeof o=="string"?i=o:[i,a]=o,n.has(i)||n.set(i,a||{})}BVe(n),r=HVe(n)}return new r(e,t,n)}var Xue=new Map;function HVe(e){let t=[];for(let o of qVe)e.has(o)&&t.push(o);let r=t.join("|"),n=Xue.get(r);if(!n){n=kpe;for(let o of t)n=Ipe[o](n);Xue.set(r,n)}return n}function k3(e){return(t,r,n)=>{let o=!!n?.backwards;if(r===!1)return!1;let{length:i}=t,a=r;for(;a>=0&&ae===` -`||e==="\r"||e==="\u2028"||e==="\u2029";function YVe(e,t,r){let n=!!r?.backwards;if(t===!1)return!1;let o=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&o===` -`)return t-2;if(Yue(o))return t-1}else{if(o==="\r"&&e.charAt(t+1)===` -`)return t+2;if(Yue(o))return t+1}return t}var eJe=YVe;function tJe(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?WVe(e,t):t}var rJe=tJe;function nJe(e,t){let r=null,n=t;for(;n!==r;)r=n,n=ZVe(e,n),n=XVe(e,n),n=rJe(e,n),n=eJe(e,n);return n}var oJe=nJe;function iJe(e){let t=[];for(let r of e)try{return r()}catch(n){t.push(n)}throw Object.assign(new Error("All combinations failed"),{errors:t})}function aJe(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` -`);return t===-1?e:e.slice(0,t)}var Ope=aJe,yU=(e,t)=>(r,n,...o)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,o),sJe=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},cJe=yU("findLast",function(){if(Array.isArray(this))return sJe}),lJe=cJe;function uJe(e){return this[e<0?this.length+e:e]}var pJe=yU("at",function(){if(Array.isArray(this)||typeof this=="string")return uJe}),dJe=pJe;function j_(e){let t=e.range?.[0]??e.start,r=(e.declaration?.decorators??e.decorators)?.[0];return r?Math.min(j_(r),t):t}function ed(e){return e.range?.[1]??e.end}function _Je(e){let t=new Set(e);return r=>t.has(r?.type)}var gU=_Je,fJe=gU(["Block","CommentBlock","MultiLine"]),SU=fJe,mJe=gU(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),hJe=mJe,Hq=new WeakMap;function yJe(e){return Hq.has(e)||Hq.set(e,SU(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),Hq.get(e)}var gJe=yJe;function SJe(e){if(!SU(e))return!1;let t=`*${e.value}*`.split(` -`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var Zq=new WeakMap;function vJe(e){return Zq.has(e)||Zq.set(e,SJe(e)),Zq.get(e)}var epe=vJe;function bJe(e){if(e.length<2)return;let t;for(let r=e.length-1;r>=0;r--){let n=e[r];if(t&&ed(n)===j_(t)&&epe(n)&&epe(t)&&(e.splice(r+1,1),n.value+="*//*"+t.value,n.range=[j_(n),ed(t)]),!hJe(n)&&!SU(n))throw new TypeError(`Unknown comment type: "${n.type}".`);t=n}}var xJe=bJe;function EJe(e){return e!==null&&typeof e=="object"}var TJe=EJe,nD=null;function sD(e){if(nD!==null&&typeof nD.property){let t=nD;return nD=sD.prototype=null,t}return nD=sD.prototype=e??Object.create(null),new sD}var DJe=10;for(let e=0;e<=DJe;e++)sD();function AJe(e){return sD(e)}function wJe(e,t="type"){AJe(e);function r(n){let o=n[t],i=e[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:n});return i}return r}var IJe=wJe,z=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],kJe={AccessorProperty:z[0],AnyTypeAnnotation:z[1],ArgumentPlaceholder:z[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:z[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:z[3],AsExpression:z[4],AssignmentExpression:z[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:z[6],BigIntLiteral:z[1],BigIntLiteralTypeAnnotation:z[1],BigIntTypeAnnotation:z[1],BinaryExpression:z[5],BindExpression:["object","callee"],BlockStatement:z[7],BooleanLiteral:z[1],BooleanLiteralTypeAnnotation:z[1],BooleanTypeAnnotation:z[1],BreakStatement:z[8],CallExpression:z[9],CatchClause:["param","body"],ChainExpression:z[3],ClassAccessorProperty:z[0],ClassBody:z[10],ClassDeclaration:z[11],ClassExpression:z[11],ClassImplements:z[12],ClassMethod:z[13],ClassPrivateMethod:z[13],ClassPrivateProperty:z[14],ClassProperty:z[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:z[15],ConditionalExpression:z[16],ConditionalTypeAnnotation:z[17],ContinueStatement:z[8],DebuggerStatement:z[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:z[18],DeclareEnum:z[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:z[20],DeclareFunction:["id","predicate"],DeclareHook:z[21],DeclareInterface:z[22],DeclareModule:z[19],DeclareModuleExports:z[23],DeclareNamespace:z[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:z[24],DeclareVariable:z[21],Decorator:z[3],Directive:z[18],DirectiveLiteral:z[1],DoExpression:z[10],DoWhileStatement:z[25],EmptyStatement:z[1],EmptyTypeAnnotation:z[1],EnumBigIntBody:z[26],EnumBigIntMember:z[27],EnumBooleanBody:z[26],EnumBooleanMember:z[27],EnumDeclaration:z[19],EnumDefaultedMember:z[21],EnumNumberBody:z[26],EnumNumberMember:z[27],EnumStringBody:z[26],EnumStringMember:z[27],EnumSymbolBody:z[26],ExistsTypeAnnotation:z[1],ExperimentalRestProperty:z[6],ExperimentalSpreadProperty:z[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:z[28],ExportNamedDeclaration:z[20],ExportNamespaceSpecifier:z[28],ExportSpecifier:["local","exported"],ExpressionStatement:z[3],File:["program"],ForInStatement:z[29],ForOfStatement:z[29],ForStatement:["init","test","update","body"],FunctionDeclaration:z[30],FunctionExpression:z[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:z[15],GenericTypeAnnotation:z[12],HookDeclaration:z[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:z[16],ImportAttribute:z[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:z[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:z[33],ImportSpecifier:["imported","local"],IndexedAccessType:z[34],InferredPredicate:z[1],InferTypeAnnotation:z[35],InterfaceDeclaration:z[22],InterfaceExtends:z[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:z[1],IntersectionTypeAnnotation:z[36],JsExpressionRoot:z[37],JsonRoot:z[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:z[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:z[1],JSXExpressionContainer:z[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:z[1],JSXMemberExpression:z[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:z[1],JSXSpreadAttribute:z[6],JSXSpreadChild:z[3],JSXText:z[1],KeyofTypeAnnotation:z[6],LabeledStatement:["label","body"],Literal:z[1],LogicalExpression:z[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:z[21],MatchExpression:z[39],MatchExpressionCase:z[40],MatchIdentifierPattern:z[21],MatchLiteralPattern:z[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:z[6],MatchStatement:z[39],MatchStatementCase:z[40],MatchUnaryPattern:z[6],MatchWildcardPattern:z[1],MemberExpression:z[38],MetaProperty:["meta","property"],MethodDefinition:z[42],MixedTypeAnnotation:z[1],ModuleExpression:z[10],NeverTypeAnnotation:z[1],NewExpression:z[9],NGChainedExpression:z[43],NGEmptyExpression:z[1],NGMicrosyntax:z[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:z[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:z[32],NGPipeExpression:["left","right","arguments"],NGRoot:z[37],NullableTypeAnnotation:z[23],NullLiteral:z[1],NullLiteralTypeAnnotation:z[1],NumberLiteralTypeAnnotation:z[1],NumberTypeAnnotation:z[1],NumericLiteral:z[1],ObjectExpression:["properties"],ObjectMethod:z[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:z[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:z[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:z[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:z[9],OptionalIndexedAccessType:z[34],OptionalMemberExpression:z[38],ParenthesizedExpression:z[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:z[1],PipelineTopicExpression:z[3],Placeholder:z[1],PrivateIdentifier:z[1],PrivateName:z[21],Program:z[7],Property:z[32],PropertyDefinition:z[14],QualifiedTypeIdentifier:z[44],QualifiedTypeofIdentifier:z[44],RegExpLiteral:z[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:z[6],SatisfiesExpression:z[4],SequenceExpression:z[43],SpreadElement:z[6],StaticBlock:z[10],StringLiteral:z[1],StringLiteralTypeAnnotation:z[1],StringTypeAnnotation:z[1],Super:z[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:z[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:z[1],TemplateLiteral:["quasis","expressions"],ThisExpression:z[1],ThisTypeAnnotation:z[1],ThrowStatement:z[6],TopicReference:z[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:z[45],TSAbstractKeyword:z[1],TSAbstractMethodDefinition:z[32],TSAbstractPropertyDefinition:z[45],TSAnyKeyword:z[1],TSArrayType:z[2],TSAsExpression:z[4],TSAsyncKeyword:z[1],TSBigIntKeyword:z[1],TSBooleanKeyword:z[1],TSCallSignatureDeclaration:z[46],TSClassImplements:z[47],TSConditionalType:z[17],TSConstructorType:z[46],TSConstructSignatureDeclaration:z[46],TSDeclareFunction:z[31],TSDeclareKeyword:z[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:z[26],TSEnumDeclaration:z[19],TSEnumMember:["id","initializer"],TSExportAssignment:z[3],TSExportKeyword:z[1],TSExternalModuleReference:z[3],TSFunctionType:z[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:z[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:z[35],TSInstantiationExpression:z[47],TSInterfaceBody:z[10],TSInterfaceDeclaration:z[22],TSInterfaceHeritage:z[47],TSIntersectionType:z[36],TSIntrinsicKeyword:z[1],TSJSDocAllType:z[1],TSJSDocNonNullableType:z[23],TSJSDocNullableType:z[23],TSJSDocUnknownType:z[1],TSLiteralType:z[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:z[10],TSModuleDeclaration:z[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:z[21],TSNeverKeyword:z[1],TSNonNullExpression:z[3],TSNullKeyword:z[1],TSNumberKeyword:z[1],TSObjectKeyword:z[1],TSOptionalType:z[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:z[23],TSPrivateKeyword:z[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:z[1],TSPublicKeyword:z[1],TSQualifiedName:z[5],TSReadonlyKeyword:z[1],TSRestType:z[23],TSSatisfiesExpression:z[4],TSStaticKeyword:z[1],TSStringKeyword:z[1],TSSymbolKeyword:z[1],TSTemplateLiteralType:["quasis","types"],TSThisType:z[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:z[23],TSTypeAssertion:z[4],TSTypeLiteral:z[26],TSTypeOperator:z[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:z[48],TSTypeParameterInstantiation:z[48],TSTypePredicate:z[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:z[1],TSUnionType:z[36],TSUnknownKeyword:z[1],TSVoidKeyword:z[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:z[24],TypeAnnotation:z[23],TypeCastExpression:z[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:z[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:z[48],TypeParameterInstantiation:z[48],TypePredicate:z[49],UnaryExpression:z[6],UndefinedTypeAnnotation:z[1],UnionTypeAnnotation:z[36],UnknownTypeAnnotation:z[1],UpdateExpression:z[6],V8IntrinsicIdentifier:z[1],VariableDeclaration:["declarations"],VariableDeclarator:z[27],Variance:z[1],VoidPattern:z[1],VoidTypeAnnotation:z[1],WhileStatement:z[25],WithStatement:["object","body"],YieldExpression:z[6]},CJe=IJe(kJe),PJe=CJe;function A3(e,t){if(!TJe(e))return e;if(Array.isArray(e)){for(let n=0;ny<=d);f=m&&n.slice(m,d).trim().length===0}return f?void 0:(p.extra={...p.extra,parenthesized:!0},p)}case"TemplateLiteral":if(c.expressions.length!==c.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(r==="flow"||r==="hermes"||r==="espree"||r==="typescript"||i){let p=j_(c)+1,d=ed(c)-(c.tail?1:2);c.range=[p,d]}break;case"VariableDeclaration":{let p=dJe(0,c.declarations,-1);p?.init&&n[ed(p)]!==";"&&(c.range=[j_(c),ed(p)]);break}case"TSParenthesizedType":return c.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(c.types.length===1)return c.types[0];break;case"ImportExpression":r==="hermes"&&c.attributes&&!c.options&&(c.options=c.attributes);break}},onLeave(c){switch(c.type){case"LogicalExpression":if(Npe(c))return rU(c);break;case"TSImportType":!c.source&&c.argument.type==="TSLiteralType"&&(c.source=c.argument.literal,delete c.argument);break}}}),e}function Npe(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function rU(e){return Npe(e)?rU({type:"LogicalExpression",operator:e.operator,left:rU({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[j_(e.left),ed(e.right.left)]}),right:e.right.right,range:[j_(e),ed(e)]}):e}var FJe=NJe;function RJe(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var Fpe=RJe,tpe="Unexpected parseExpression() input: ";function LJe(e){let{message:t,loc:r,reasonCode:n}=e;if(!r)return e;let{line:o,column:i}=r,a=e;(n==="MissingPlugin"||n==="MissingOneOfPlugins")&&(t="Unexpected token.",a=void 0);let s=` (${o}:${i})`;return t.endsWith(s)&&(t=t.slice(0,-s.length)),t.startsWith(tpe)&&(t=t.slice(tpe.length)),Fpe(t,{loc:{start:{line:o,column:i+1}},cause:a})}var Rpe=LJe,$Je=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},MJe=yU("replaceAll",function(){if(typeof this=="string")return $Je}),b3=MJe,jJe=/\*\/$/,BJe=/^\/\*\*?/,qJe=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,UJe=/(^|\s+)\/\/([^\n\r]*)/g,rpe=/^(\r?\n)+/,zJe=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,npe=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,VJe=/(\r?\n|^) *\* ?/g,JJe=[];function KJe(e){let t=e.match(qJe);return t?t[0].trimStart():""}function GJe(e){e=b3(0,e.replace(BJe,"").replace(jJe,""),VJe,"$1");let t="";for(;t!==e;)t=e,e=b3(0,e,zJe,` +`):n=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(t){let r="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(W.UnterminatedString,this.state.startLoc);let o=this.input.charCodeAt(this.state.pos);if(o===t)break;o===38?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadEntity(),n=this.state.pos):qv(o)?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}r+=this.input.slice(n,this.state.pos++),this.finishToken(134,r)}jsxReadEntity(){let t=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let r=10;this.codePointAtPos(this.state.pos)===120&&(r=16,++this.state.pos);let n=this.readInt(r,void 0,!1,"bail");if(n!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(n)}else{let r=0,n=!1;for(;r++<10&&this.state.pos1){for(let n=0;n0){if(r&256){let o=!!(r&512),i=(n&4)>0;return o!==i}return!0}return r&128&&(n&8)>0?e.names.get(t)&2?!!(r&1):!1:r&2&&(n&1)>0?!0:super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let r=this.scopeStack.length;for(let n=r-1;n>=0;n--){let o=this.scopeStack[n].tsNames.get(t);if((o&1)>0||(o&16)>0)return}super.checkLocalExport(e)}},_Je=class{stacks=[];enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function A3(e,t){return(e?2:0)|(t?1:0)}var fJe=class{sawUnambiguousESM=!1;ambiguousScriptDifferentAst=!1;sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[t,r]=e;if(!this.hasPlugin(t))return!1;let n=this.plugins.get(t);for(let o of Object.keys(r))if(n?.[o]!==r[o])return!1;return!0}}getPluginOption(e,t){return this.plugins.get(e)?.[t]}};function xpe(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function mJe(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function Uv(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function gg(e,t,r){let n=null,o=t.length;for(;n===null&&o>0;)n=t[--o];n===null||n.start>r.start?Uv(e,r.comments):xpe(n,r.comments)}var hJe=class extends fJe{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,r=t.length;if(r===0)return;let n=r-1,o=t[n];o.start===e.end&&(o.leadingNode=e,n--);let{start:i}=e;for(;n>=0;n--){let a=t[n],s=a.end;if(s>i)a.containingNode=e,this.finalizeComment(a),t.splice(n,1);else{s===i&&(a.trailingNode=e);break}}}finalizeComment(e){let{comments:t}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&xpe(e.leadingNode,t),e.trailingNode!==null&&mJe(e.trailingNode,t);else{let r=e.containingNode,n=e.start;if(this.input.charCodeAt(this.offsetToSourcePos(n)-1)===44)switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":gg(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":gg(r,r.arguments,e);break;case"ImportExpression":gg(r,[r.source,r.options??null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":gg(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":gg(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":gg(r,r.specifiers,e);break;case"TSEnumDeclaration":Uv(r,t);break;case"TSEnumBody":gg(r,r.members,e);break;default:Uv(r,t)}else Uv(r,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:r}=t;if(r===0)return;let n=t[r-1];n.leadingNode===e&&(n.leadingNode=null)}takeSurroundingComments(e,t,r){let{commentStack:n}=this.state,o=n.length;if(o===0)return;let i=o-1;for(;i>=0;i--){let a=n[i],s=a.end;if(a.start===r)a.leadingNode=e;else if(s===t)a.trailingNode=e;else if(s0}set strict(t){t?this.flags|=1:this.flags&=-2}startIndex;curLine;lineStart;startLoc;endLoc;init({strictMode:t,sourceType:r,startIndex:n,startLine:o,startColumn:i}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.startIndex=n,this.curLine=o,this.lineStart=-i,this.startLoc=this.endLoc=new Jm(o,i,n)}errors=[];potentialArrowAt=-1;noArrowAt=[];noArrowParamsConversionAt=[];get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}labels=[];commentsLen=0;commentStack=[];pos=0;type=140;value=null;start=0;end=0;lastTokEndLoc=null;lastTokStartLoc=null;context=[Lo.brace];get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}firstInvalidTemplateEscapePos=null;get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}strictErrors=new Map;tokensLength=0;curPosition(){return new Jm(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new Epe;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},gJe=function(e){return e>=48&&e<=57},Kue={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},x3={bin:e=>e===48||e===49,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 Gue(e,t,r,n,o,i){let a=r,s=n,c=o,p="",d=null,f=r,{length:m}=t;for(;;){if(r>=m){i.unterminated(a,s,c),p+=t.slice(f,r);break}let y=t.charCodeAt(r);if(SJe(e,y,t,r)){p+=t.slice(f,r);break}if(y===92){p+=t.slice(f,r);let g=vJe(t,r,n,o,e==="template",i);g.ch===null&&!d?d={pos:r,lineStart:n,curLine:o}:p+=g.ch,{pos:r,lineStart:n,curLine:o}=g,f=r}else y===8232||y===8233?(++r,++o,n=r):y===10||y===13?e==="template"?(p+=t.slice(f,r)+` +`,++r,y===13&&t.charCodeAt(r)===10&&++r,++o,f=n=r):i.unterminated(a,s,c):++r}return{pos:r,str:p,firstInvalidLoc:d,lineStart:n,curLine:o}}function SJe(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function vJe(e,t,r,n,o,i){let a=!o;t++;let s=p=>({pos:t,ch:p,lineStart:r,curLine:n}),c=e.charCodeAt(t++);switch(c){case 110:return s(` +`);case 114:return s("\r");case 120:{let p;return{code:p,pos:t}=eU(e,t,r,n,2,!1,a,i),s(p===null?null:String.fromCharCode(p))}case 117:{let p;return{code:p,pos:t}=Dpe(e,t,r,n,a,i),s(p===null?null:String.fromCodePoint(p))}case 116:return s(" ");case 98:return s("\b");case 118:return s("\v");case 102:return s("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return s("");case 56:case 57:if(o)return s(null);i.strictNumericEscape(t-1,r,n);default:if(c>=48&&c<=55){let p=t-1,d=/^[0-7]+/.exec(e.slice(p,t+2))[0],f=parseInt(d,8);f>255&&(d=d.slice(0,-1),f=parseInt(d,8)),t+=d.length-1;let m=e.charCodeAt(t);if(d!=="0"||m===56||m===57){if(o)return s(null);i.strictNumericEscape(p,r,n)}return s(String.fromCharCode(f))}return s(String.fromCharCode(c))}}function eU(e,t,r,n,o,i,a,s){let c=t,p;return{n:p,pos:t}=Tpe(e,t,r,n,16,o,i,!1,s,!a),p===null&&(a?s.invalidEscapeSequence(c,r,n):t=c-1),{code:p,pos:t}}function Tpe(e,t,r,n,o,i,a,s,c,p){let d=t,f=o===16?Kue.hex:Kue.decBinOct,m=o===16?x3.hex:o===10?x3.dec:o===8?x3.oct:x3.bin,y=!1,g=0;for(let S=0,b=i??1/0;S=97?I=E-97+10:E>=65?I=E-65+10:gJe(E)?I=E-48:I=1/0,I>=o){if(I<=9&&p)return{n:null,pos:t};if(I<=9&&c.invalidDigit(t,r,n,o))I=0;else if(a)I=0,y=!0;else break}++t,g=g*o+I}return t===d||i!=null&&t-d!==i||y?{n:null,pos:t}:{n:g,pos:t}}function Dpe(e,t,r,n,o,i){let a=e.charCodeAt(t),s;if(a===123){if(++t,{code:s,pos:t}=eU(e,t,r,n,e.indexOf("}",t)-t,!0,o,i),++t,s!==null&&s>1114111)if(o)i.invalidCodePoint(t,r,n);else return{code:null,pos:t}}else({code:s,pos:t}=eU(e,t,r,n,4,!1,o,i));return{code:s,pos:t}}function oD(e,t,r){return new Jm(r,e-t,e)}var bJe=new Set([103,109,115,105,121,117,100,118]),xJe=class{constructor(e){let 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 k3(e.startLoc,e.endLoc)}},EJe=class extends hJe{isLookahead;tokens=[];constructor(e,t){super(),this.state=new yJe,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(),this.optionFlags&256&&this.pushToken(new xJe(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):!1}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(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Vq.lastIndex=e,Vq.test(this.input)?Vq.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 Kq.lastIndex=e,Kq.test(this.input)?Kq.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)===55296&&++ethis.raise(t,r)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let r=this.state.pos,n=this.input.indexOf(e,r+2);if(n===-1)throw this.raise(W.UnterminatedComment,this.state.curPosition());for(this.state.pos=n+e.length,b3.lastIndex=r+2;b3.test(this.input)&&b3.lastIndex<=n;)++this.state.curLine,this.state.lineStart=b3.lastIndex;if(this.isLookahead)return;let o={type:"CommentBlock",value:this.input.slice(r+2,n),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(n+e.length),loc:new k3(t,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(o),o}skipLineComment(e){let t=this.state.pos,r;this.isLookahead||(r=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pose)){let o=this.skipLineComment(3);o!==void 0&&(this.addComment(o),t?.push(o))}else break e}else if(r===60&&!this.inModule&&this.optionFlags&8192){let n=this.state.pos;if(this.input.charCodeAt(n+1)===33&&this.input.charCodeAt(n+2)===45&&this.input.charCodeAt(n+3)===45){let o=this.skipLineComment(4);o!==void 0&&(this.addComment(o),t?.push(o))}else break e}else break e}}if(t?.length>0){let 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();let 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(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(W.UnexpectedDigitAfterHash,this.state.curPosition());ed(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):t===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let t=this.state.pos;for(this.state.pos+=1;!qv(e)&&++this.state.pos=48&&t<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let t=this.input.charCodeAt(this.state.pos+1);if(t===120||t===88){this.readRadixNumber(16);return}if(t===111||t===79){this.readRadixNumber(8);return}if(t===98||t===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(ed(e)){this.readWord(e);return}}throw this.raise(W.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){let e=this.state.startLoc,t=this.state.start+1,r,n,{pos:o}=this.state;for(;;++o){if(o>=this.length)throw this.raise(W.UnterminatedRegExp,Rl(e,1));let c=this.input.charCodeAt(o);if(qv(c))throw this.raise(W.UnterminatedRegExp,Rl(e,1));if(r)r=!1;else{if(c===91)n=!0;else if(c===93&&n)n=!1;else if(c===47&&!n)break;r=c===92}}let i=this.input.slice(t,o);++o;let a="",s=()=>Rl(e,o+2-t);for(;o=2&&this.input.charCodeAt(t)===48;if(a){let d=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(W.StrictOctalLiteral,r),!this.state.strict){let f=d.indexOf("_");f>0&&this.raise(W.ZeroDigitNumericSeparator,Rl(r,f))}i=a&&!/[89]/.test(d)}let s=this.input.charCodeAt(this.state.pos);if(s===46&&!i&&(++this.state.pos,this.readInt(10),n=!0,s=this.input.charCodeAt(this.state.pos)),(s===69||s===101)&&!i&&(s=this.input.charCodeAt(++this.state.pos),(s===43||s===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(W.InvalidOrMissingExponent,r),n=!0,s=this.input.charCodeAt(this.state.pos)),s===110&&((n||a)&&this.raise(W.InvalidBigIntLiteral,r),++this.state.pos,o=!0),ed(this.codePointAtPos(this.state.pos)))throw this.raise(W.NumberIdentifier,this.state.curPosition());let c=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(o){this.finishToken(136,c);return}let p=i?parseInt(c,8):parseFloat(c);this.finishToken(135,p)}readCodePoint(e){let{code:t,pos:r}=Dpe(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,t}readString(e){let{str:t,pos:r,curLine:n,lineStart:o}=Gue(e===34?"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=o,this.state.curLine=n,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:r,pos:n,curLine:o,lineStart:i}=Gue("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=o,r&&(this.state.firstInvalidTemplateEscapePos=new Jm(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))),this.input.codePointAt(n)===96?this.finishToken(24,r?null:e+t+"`"):(this.state.pos++,this.finishToken(25,r?null:e+t+"${"))}recordStrictModeErrors(e,t){let 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="",r=this.state.pos,n=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos=0;a--){let s=i[a];if(s.loc.index===o)return i[a]=e(n,r);if(s.loc.indexthis.hasPlugin(t)))throw this.raise(W.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,r,n)=>{this.raise(e,oD(t,r,n))}}errorHandlers_readInt={invalidDigit:(e,t,r,n)=>this.optionFlags&2048?(this.raise(W.InvalidDigit,oD(e,t,r),{radix:n}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(W.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(W.UnexpectedNumericSeparator)};errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(W.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(W.InvalidCodePoint)});errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,r)=>{this.recordStrictModeErrors(W.StrictNumericEscape,oD(e,t,r))},unterminated:(e,t,r)=>{throw this.raise(W.UnterminatedString,oD(e-1,t,r))}});errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(W.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(W.UnterminatedTemplate,oD(e,t,r))}})},TJe=class{privateNames=new Set;loneAccessors=new Map;undefinedPrivateNames=new Map},DJe=class{parser;stack=[];undefinedPrivateNames=new Map;constructor(e){this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new TJe)}exit(){let e=this.stack.pop(),t=this.current();for(let[r,n]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(r)||t.undefinedPrivateNames.set(r,n):this.parser.raise(W.InvalidPrivateFieldResolution,n,{identifierName:r})}declarePrivateName(e,t,r){let{privateNames:n,loneAccessors:o,undefinedPrivateNames:i}=this.current(),a=n.has(e);if(t&3){let s=a&&o.get(e);if(s){let c=s&4,p=t&4,d=s&3,f=t&3;a=d===f||c!==p,a||o.delete(e)}else a||o.set(e,t)}a&&this.parser.raise(W.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(W.InvalidPrivateFieldResolution,t,{identifierName:e})}},C3=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Ape=class extends C3{declarationErrors=new Map;constructor(e){super(e)}recordDeclarationError(e,t){let r=t.index;this.declarationErrors.set(r,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},AJe=class{parser;stack=[new C3];constructor(e){this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let r=t.loc.start,{stack:n}=this,o=n.length-1,i=n[o];for(;!i.isCertainlyParameterDeclaration();){if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(e,r);else return;i=n[--o]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,t){let{stack:r}=this,n=r[r.length-1],o=t.loc.start;if(n.isCertainlyParameterDeclaration())this.parser.raise(e,o);else if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(e,o);else return}recordAsyncArrowParametersError(e){let{stack:t}=this,r=t.length-1,n=t[r];for(;n.canBeArrowParameterDeclaration();)n.type===2&&n.recordDeclarationError(W.AwaitBindingIdentifier,e),n=t[--r]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([r,n])=>{this.parser.raise(r,n);let o=e.length-2,i=e[o];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n.index),i=e[--o]})}};function IJe(){return new C3(3)}function wJe(){return new Ape(1)}function kJe(){return new Ape(2)}function Ipe(){return new C3}var CJe=class extends EJe{addExtra(e,t,r,n=!0){if(!e)return;let{extra:o}=e;o==null&&(o={},e.extra=o),n?o[t]=r:Object.defineProperty(o,t,{enumerable:n,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){let r=this.input.charCodeAt(e+t.length);return!(Sg(r)||(r&64512)===55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,t){if(!this.eatContextual(e)){if(t!=null)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Vue(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Vue(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(W.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let r={node:null};try{let n=e((o=null)=>{throw r.node=o,r});if(this.state.errors.length>t.errors.length){let o=this.state;return this.state=t,this.state.tokensLength=o.tokensLength,{node:n,error:o.errors[t.errors.length],thrown:!1,aborted:!1,failState:o}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(n){let o=this.state;if(this.state=t,n instanceof SyntaxError)return{node:null,error:n,thrown:!0,aborted:!1,failState:o};if(n===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:o};throw n}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:r,doubleProtoLoc:n,privateKeyLoc:o,optionalParametersLoc:i,voidPatternLoc:a}=e,s=!!r||!!n||!!i||!!o||!!a;if(!t)return s;r!=null&&this.raise(W.InvalidCoverInitializedName,r),n!=null&&this.raise(W.DuplicateProto,n),o!=null&&this.raise(W.UnexpectedPrivateField,o),i!=null&&this.unexpected(i),a!=null&&this.raise(W.InvalidCoverDiscardElement,a)}isLiteralPropertyName(){return fpe(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){let t=this.state.labels;this.state.labels=[];let r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let n=this.inModule;this.inModule=e;let o=this.scope,i=this.getScopeHandler();this.scope=new i(this,e);let a=this.prodParam;this.prodParam=new _Je;let s=this.classScope;this.classScope=new DJe(this);let c=this.expressionScope;return this.expressionScope=new AJe(this),()=>{this.state.labels=t,this.exportedIdentifiers=r,this.inModule=n,this.scope=o,this.prodParam=a,this.classScope=s,this.expressionScope=c}}enterInitialScopes(){let e=0;(this.inModule||this.optionFlags&1)&&(e|=2),this.optionFlags&32&&(e|=1);let t=!this.inModule&&this.options.sourceType==="commonjs";(t||this.optionFlags&2)&&(e|=4),this.prodParam.enter(e);let r=t?514:1;this.optionFlags&4&&(r|=512),this.optionFlags&16&&(r|=48),this.scope.enter(r)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;t!==null&&this.expectPlugin("destructuringPrivate",t)}},I3=class{shorthandAssignLoc=null;doubleProtoLoc=null;privateKeyLoc=null;optionalParametersLoc=null;voidPatternLoc=null},tU=class{constructor(e,t,r){this.start=t,this.end=0,this.loc=new k3(r),e?.optionFlags&128&&(this.range=[t,0]),e?.filename&&(this.loc.filename=e.filename)}type=""},Hue=tU.prototype,PJe=class extends CJe{startNode(){let e=this.state.startLoc;return new tU(this,e.index,e)}startNodeAt(e){return new tU(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,this.optionFlags&128&&(e.range[1]=r.index),this.optionFlags&4096&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.optionFlags&128&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,this.optionFlags&128&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}castNodeTo(e,t){return e.type=t,e}cloneIdentifier(e){let{type:t,start:r,end:n,loc:o,range:i,name:a}=e,s=Object.create(Hue);return s.type=t,s.start=r,s.end=n,s.loc=o,s.range=i,s.name=a,e.extra&&(s.extra=e.extra),s}cloneStringLiteral(e){let{type:t,start:r,end:n,loc:o,range:i,extra:a}=e,s=Object.create(Hue);return s.type=t,s.start=r,s.end=n,s.loc=o,s.range=i,s.extra=a,s.value=e.value,s}},rU=e=>e.type==="ParenthesizedExpression"?rU(e.expression):e,OJe=class extends PJe{toAssignable(e,t=!1){let r;switch((e.type==="ParenthesizedExpression"||e.extra?.parenthesized)&&(r=rU(e),t?r.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(W.InvalidParenthesizedAssignment,e):r.type!=="CallExpression"&&r.type!=="MemberExpression"&&!this.isOptionalMemberExpression(r)&&this.raise(W.InvalidParenthesizedAssignment,e):this.raise(W.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 n=0,o=e.properties.length,i=o-1;nn.type!=="ObjectMethod"&&(o===r||n.type!=="SpreadElement")&&this.isAssignable(n))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(r=>r===null||this.isAssignable(r));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(let r of e)r?.type==="ArrayExpression"&&this.toReferencedListDeep(r.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){let e=this.startNode();this.next();let t=this.parseBindingAtom();return t.type==="VoidPattern"&&this.raise(W.UnexpectedVoidPattern,t),e.argument=t,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let 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){let n=r&1,o=[],i=!0;for(;!this.eat(e);)if(i?i=!1:this.expect(12),n&&this.match(12))o.push(null);else{if(this.eat(e))break;if(this.match(21)){let a=this.parseRestBinding();if(r&2&&(a=this.parseFunctionParamType(a)),o.push(a),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let a=[];if(r&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(W.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)a.push(this.parseDecorator());o.push(this.parseBindingElement(r,a))}}return o}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(W.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let r=this.startNode();return e===139?(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){let r=this.parseMaybeDefault();return e&2&&this.parseFunctionParamType(r),t.length&&(r.decorators=t,this.resetStartLocationFromNode(r,t[0])),this.parseMaybeDefault(r.loc.start,r)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(e??(e=this.state.startLoc),t=t??this.parseBindingAtom(),!this.eat(29))return t;let r=this.startNodeAt(e);return t.type==="VoidPattern"&&this.raise(W.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&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,t,r=64,n=!1,o=!1,i=!1,a=!1){let s=e.type;if(this.isObjectMethod(e))return;let c=this.isOptionalMemberExpression(e);if(c||s==="MemberExpression"){c&&(this.expectPlugin("optionalChainingAssign",e.loc.start),t.type!=="AssignmentExpression"&&this.raise(W.InvalidLhsOptionalChaining,e,{ancestor:t})),r!==64&&this.raise(W.InvalidPropertyBindingPattern,e);return}if(s==="Identifier"){this.checkIdentifier(e,r,o);let{name:S}=e;n&&(n.has(S)?this.raise(W.ParamDupe,e):n.add(S));return}else s==="VoidPattern"&&t.type==="CatchClause"&&this.raise(W.VoidPatternCatchClauseParam,e);let p=rU(e);a||(a=p.type==="CallExpression"&&(p.callee.type==="Import"||p.callee.type==="Super"));let d=this.isValidLVal(s,a,!(i||e.extra?.parenthesized)&&t.type==="AssignmentExpression",r);if(d===!0)return;if(d===!1){let S=r===64?W.InvalidLhs:W.InvalidLhsBinding;this.raise(S,e,{ancestor:t});return}let f,m;typeof d=="string"?(f=d,m=s==="ParenthesizedExpression"):[f,m]=d;let y=s==="ArrayPattern"||s==="ObjectPattern"?{type:s}:t,g=e[f];if(Array.isArray(g))for(let S of g)S&&this.checkLVal(S,y,r,n,o,m,!0);else g&&this.checkLVal(g,y,r,n,o,m,a)}checkIdentifier(e,t,r=!1){this.state.strict&&(r?bpe(e.name,this.inModule):vpe(e.name))&&(t===64?this.raise(W.StrictEvalArguments,e,{referenceName:e.name}):this.raise(W.StrictEvalArgumentsBinding,e,{bindingName:e.name})),t&8192&&e.name==="let"&&this.raise(W.LetInLexicalBinding,e),t&64||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(W.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?W.RestTrailingComma:W.ElementAfterRest,this.state.startLoc),!0):!1}},Gq=/in(?:stanceof)?|as|satisfies/y;function NJe(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function Zue(e){if(!e)throw new Error("Assert fail")}var xt=Yp`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 `() => ...`.",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 FJe(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}}function Wue(e){return e==="private"||e==="public"||e==="protected"}function RJe(e){return e==="in"||e==="out"}function nU(e){if(e.extra?.parenthesized)return!1;switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&nU(e.object);case"TSInstantiationExpression":return nU(e.expression);default:return!1}}var LJe=e=>class extends e{getScopeHandler(){return dJe}tsIsIdentifier(){return Qn(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()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(t,r,n){if(!Qn(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let o=this.state.value;if(t.includes(o)){if(n&&this.match(106)||r&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return o}}tsParseModifiers({allowedModifiers:t,disallowedModifiers:r,stopOnStartOfClassStaticBlock:n,errorTemplate:o=xt.InvalidModifierOnTypeMember},i){let a=(c,p,d,f)=>{p===d&&i[f]&&this.raise(xt.InvalidModifiersOrder,c,{orderedModifiers:[d,f]})},s=(c,p,d,f)=>{(i[d]&&p===f||i[f]&&p===d)&&this.raise(xt.IncompatibleModifiers,c,{modifiers:[d,f]})};for(;;){let{startLoc:c}=this.state,p=this.tsParseModifier(t.concat(r??[]),n,i.static);if(!p)break;Wue(p)?i.accessibility?this.raise(xt.DuplicateAccessibilityModifier,c,{modifier:p}):(a(c,p,p,"override"),a(c,p,p,"static"),a(c,p,p,"readonly"),i.accessibility=p):RJe(p)?(i[p]&&this.raise(xt.DuplicateModifier,c,{modifier:p}),i[p]=!0,a(c,p,"in","out")):(Object.prototype.hasOwnProperty.call(i,p)?this.raise(xt.DuplicateModifier,c,{modifier:p}):(a(c,p,"static","readonly"),a(c,p,"static","override"),a(c,p,"override","readonly"),a(c,p,"abstract","override"),s(c,p,"declare","override"),s(c,p,"static","abstract")),i[p]=!0),r?.includes(p)&&this.raise(o,c,{modifier:p})}}tsIsListTerminator(t){switch(t){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(t,r){let n=[];for(;!this.tsIsListTerminator(t);)n.push(r());return n}tsParseDelimitedList(t,r,n){return NJe(this.tsParseDelimitedListWorker(t,r,!0,n))}tsParseDelimitedListWorker(t,r,n,o){let i=[],a=-1;for(;!this.tsIsListTerminator(t);){a=-1;let s=r();if(s==null)return;if(i.push(s),this.eat(12)){a=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(t))break;n&&this.expect(12);return}return o&&(o.value=a),i}tsParseBracketedList(t,r,n,o,i){o||(n?this.expect(0):this.expect(47));let a=this.tsParseDelimitedList(t,r,i);return n?this.expect(3):this.expect(48),a}tsParseImportType(){let t=this.startNode();return this.expect(83),this.expect(10),this.match(134)?t.argument=this.tsParseLiteralTypeNode():(this.raise(xt.UnsupportedImportTypeArgument,this.state.startLoc),t.argument=this.tsParseNonConditionalType()),this.eat(12)?t.options=this.tsParseImportTypeOptions():t.options=null,this.expect(11),this.eat(16)&&(t.qualifier=this.tsParseEntityName(3)),this.match(47)&&(t.typeArguments=this.tsParseTypeArguments()),this.finishNode(t,"TSImportType")}tsParseImportTypeOptions(){let t=this.startNode();this.expect(5);let r=this.startNode();return this.isContextual(76)?(r.method=!1,r.key=this.parseIdentifier(!0),r.computed=!1,r.shorthand=!1):this.unexpected(null,76),this.expect(14),r.value=this.tsParseImportTypeWithPropertyValue(),t.properties=[this.finishObjectProperty(r)],this.eat(12),this.expect(8),this.finishNode(t,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let t=this.startNode(),r=[];for(this.expect(5);!this.match(8);){let n=this.state.type;Qn(n)||n===134?r.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return t.properties=r,this.next(),this.finishNode(t,"ObjectExpression")}tsParseEntityName(t){let r;if(t&1&&this.match(78))if(t&2)r=this.parseIdentifier(!0);else{let n=this.startNode();this.next(),r=this.finishNode(n,"ThisExpression")}else r=this.parseIdentifier(!!(t&1));for(;this.eat(16);){let n=this.startNodeAtNode(r);n.left=r,n.right=this.parseIdentifier(!!(t&1)),r=this.finishNode(n,"TSQualifiedName")}return r}tsParseTypeReference(){let t=this.startNode();return t.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeArguments=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeReference")}tsParseThisTypePredicate(t){this.next();let r=this.startNodeAtNode(t);return r.parameterName=t,r.typeAnnotation=this.tsParseTypeAnnotation(!1),r.asserts=!1,this.finishNode(r,"TSTypePredicate")}tsParseThisTypeNode(){let t=this.startNode();return this.next(),this.finishNode(t,"TSThisType")}tsParseTypeQuery(){let t=this.startNode();return this.expect(87),this.match(83)?t.exprName=this.tsParseImportType():t.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeArguments=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeQuery")}tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:xt.InvalidModifierOnTypeParameter});tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:xt.InvalidModifierOnTypeParameterPositions});tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:xt.InvalidModifierOnTypeParameter});tsParseTypeParameter(t){let r=this.startNode();return t(r),r.name=this.tsParseTypeParameterName(),r.constraint=this.tsEatThenParseType(81),r.default=this.tsEatThenParseType(29),this.finishNode(r,"TSTypeParameter")}tsTryParseTypeParameters(t){if(this.match(47))return this.tsParseTypeParameters(t)}tsParseTypeParameters(t){let r=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let n={value:-1};return r.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,t),!1,!0,n),r.params.length===0&&this.raise(xt.EmptyTypeParameters,r),n.value!==-1&&this.addExtra(r,"trailingComma",n.value),this.finishNode(r,"TSTypeParameterDeclaration")}tsFillSignature(t,r){let n=t===19,o="params",i="returnType";r.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),r[o]=this.tsParseBindingListForSignature(),n?r[i]=this.tsParseTypeOrTypePredicateAnnotation(t):this.match(t)&&(r[i]=this.tsParseTypeOrTypePredicateAnnotation(t))}tsParseBindingListForSignature(){let t=super.parseBindingList(11,41,2);for(let r of t){let{type:n}=r;(n==="AssignmentPattern"||n==="TSParameterProperty")&&this.raise(xt.UnsupportedSignatureParameterKind,r,{type:n})}return t}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(t,r){return this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon(),this.finishNode(r,t)}tsIsUnambiguouslyIndexSignature(){return this.next(),Qn(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(t){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let r=this.parseIdentifier();r.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(r),this.expect(3),t.parameters=[r];let n=this.tsTryParseTypeAnnotation();return n&&(t.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSIndexSignature")}tsParsePropertyOrMethodSignature(t,r){if(this.eat(17)&&(t.optional=!0),this.match(10)||this.match(47)){r&&this.raise(xt.ReadonlyForMethodSignature,t);let n=t;n.kind&&this.match(47)&&this.raise(xt.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();let o="params",i="returnType";if(n.kind==="get")n[o].length>0&&(this.raise(W.BadGetterArity,this.state.curPosition()),this.isThisParam(n[o][0])&&this.raise(xt.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(n.kind==="set"){if(n[o].length!==1)this.raise(W.BadSetterArity,this.state.curPosition());else{let a=n[o][0];this.isThisParam(a)&&this.raise(xt.AccessorCannotDeclareThisParameter,this.state.curPosition()),a.type==="Identifier"&&a.optional&&this.raise(xt.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),a.type==="RestElement"&&this.raise(xt.SetAccessorCannotHaveRestParameter,this.state.curPosition())}n[i]&&this.raise(xt.SetAccessorCannotHaveReturnType,n[i])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}else{let n=t;r&&(n.readonly=!0);let o=this.tsTryParseTypeAnnotation();return o&&(n.typeAnnotation=o),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"TSPropertySignature")}}tsParseTypeMember(){let t=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(77)){let n=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(n,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},t),this.tsTryParseIndexSignature(t)||(super.parsePropertyName(t),!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.tsTokenCanFollowModifier()&&(t.kind=t.key.name,super.parsePropertyName(t),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(t,!!t.readonly))}tsParseTypeLiteral(){let t=this.startNode();return t.members=this.tsParseObjectTypeMembers(),this.finishNode(t,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let t=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),t}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let t=this.startNode();return this.expect(5),this.match(53)?(t.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(t.readonly=!0),this.expect(0),t.key=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),t.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(t.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(t.optional=!0),t.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(t,"TSMappedType")}tsParseTupleType(){let t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let r=!1;return t.elementTypes.forEach(n=>{let{type:o}=n;r&&o!=="TSRestType"&&o!=="TSOptionalType"&&!(o==="TSNamedTupleMember"&&n.optional)&&this.raise(xt.OptionalTypeBeforeRequired,n),r||(r=o==="TSNamedTupleMember"&&n.optional||o==="TSOptionalType")}),this.finishNode(t,"TSTupleType")}tsParseTupleElementType(){let t=this.state.startLoc,r=this.eat(21),{startLoc:n}=this.state,o,i,a,s,c=Ou(this.state.type)?this.lookaheadCharCode():null;if(c===58)o=!0,a=!1,i=this.parseIdentifier(!0),this.expect(14),s=this.tsParseType();else if(c===63){a=!0;let p=this.state.value,d=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(o=!0,i=this.createIdentifier(this.startNodeAt(n),p),this.expect(17),this.expect(14),s=this.tsParseType()):(o=!1,s=d,this.expect(17))}else s=this.tsParseType(),a=this.eat(17),o=this.eat(14);if(o){let p;i?(p=this.startNodeAt(n),p.optional=a,p.label=i,p.elementType=s,this.eat(17)&&(p.optional=!0,this.raise(xt.TupleOptionalAfterType,this.state.lastTokStartLoc))):(p=this.startNodeAt(n),p.optional=a,this.raise(xt.InvalidTupleMemberLabel,s),p.label=s,p.elementType=this.tsParseType()),s=this.finishNode(p,"TSNamedTupleMember")}else if(a){let p=this.startNodeAt(n);p.typeAnnotation=s,s=this.finishNode(p,"TSOptionalType")}if(r){let p=this.startNodeAt(t);p.typeAnnotation=s,s=this.finishNode(p,"TSRestType")}return s}tsParseParenthesizedType(){let t=this.startNode();return this.expect(10),t.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(t,"TSParenthesizedType")}tsParseFunctionOrConstructorType(t,r){let n=this.startNode();return t==="TSConstructorType"&&(n.abstract=!!r,r&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,t)}tsParseLiteralTypeNode(){let t=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:t.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(t,"TSLiteralType")}tsParseTemplateLiteralType(){{let t=this.state.startLoc,r=this.parseTemplateElement(!1),n=[r];if(r.tail){let o=this.startNodeAt(t),i=this.startNodeAt(t);return i.expressions=[],i.quasis=n,o.literal=this.finishNode(i,"TemplateLiteral"),this.finishNode(o,"TSLiteralType")}else{let o=[];for(;!r.tail;)o.push(this.tsParseType()),this.readTemplateContinuation(),n.push(r=this.parseTemplateElement(!1));let i=this.startNodeAt(t);return i.types=o,i.quasis=n,this.finishNode(i,"TSTemplateLiteralType")}}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let t=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(t):t}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let t=this.startNode(),r=this.lookahead();return r.type!==135&&r.type!==136&&this.unexpected(),t.literal=this.parseMaybeUnary(),this.finishNode(t,"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:if(!(this.optionFlags&1024)){let t=this.state.startLoc;this.next();let r=this.tsParseType();return this.expect(11),this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),r}return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:t}=this.state;if(Qn(t)||t===88||t===84){let r=t===88?"TSVoidKeyword":t===84?"TSNullKeyword":FJe(this.state.value);if(r!==void 0&&this.lookaheadCharCode()!==46){let n=this.startNode();return this.next(),this.finishNode(n,r)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:t}=this.state,r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let n=this.startNodeAt(t);n.elementType=r,this.expect(3),r=this.finishNode(n,"TSArrayType")}else{let n=this.startNodeAt(t);n.objectType=r,n.indexType=this.tsParseType(),this.expect(3),r=this.finishNode(n,"TSIndexedAccessType")}return r}tsParseTypeOperator(){let t=this.startNode(),r=this.state.value;return this.next(),t.operator=r,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),r==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(t){switch(t.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(xt.UnexpectedReadonly,t)}}tsParseInferType(){let t=this.startNode();this.expectContextual(115);let r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),t.typeParameter=this.finishNode(r,"TSTypeParameter"),this.finishNode(t,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let t=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return t}}tsParseTypeOperatorOrHigher(){return qze(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(t,r,n){let o=this.startNode(),i=this.eat(n),a=[];do a.push(r());while(this.eat(n));return a.length===1&&!i?a[0]:(o.types=a,this.finishNode(o,t))}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)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Qn(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:t}=this.state,r=t.length;try{return this.parseObjectLike(8,!0),t.length===r}catch{return!1}}if(this.match(0)){this.next();let{errors:t}=this.state,r=t.length;try{return super.parseBindingList(3,93,1),t.length===r}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(t){return this.tsInType(()=>{let r=this.startNode();this.expect(t);let n=this.startNode(),o=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(o&&this.match(78)){let s=this.tsParseThisTypeOrThisTypePredicate();return s.type==="TSThisType"?(n.parameterName=s,n.asserts=!0,n.typeAnnotation=null,s=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(s,n),s.asserts=!0),r.typeAnnotation=s,this.finishNode(r,"TSTypeAnnotation")}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return o?(n.parameterName=this.parseIdentifier(),n.asserts=o,n.typeAnnotation=null,r.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,r);let a=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=a,n.asserts=o,r.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let t=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),t}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let t=this.state.containsEsc;return this.next(),!Qn(this.state.type)&&!this.match(78)?!1:(t&&this.raise(W.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(t=!0,r=this.startNode()){return this.tsInType(()=>{t&&this.expect(14),r.typeAnnotation=this.tsParseType()}),this.finishNode(r,"TSTypeAnnotation")}tsParseType(){Zue(this.state.inType);let t=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return t;let r=this.startNodeAtNode(t);return r.checkType=t,r.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),r.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),r.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(r,"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(xt.ReservedTypeAssertion,this.state.startLoc);let t=this.startNode();return t.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")}tsParseHeritageClause(t){let r=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let o=super.parseExprSubscripts();nU(o)||this.raise(xt.InvalidHeritageClauseType,o.loc.start,{token:t});let i=t==="extends"?"TSInterfaceHeritage":"TSClassImplements";if(o.type==="TSInstantiationExpression")return o.type=i,o;let a=this.startNodeAtNode(o);return a.expression=o,(this.match(47)||this.match(51))&&(a.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(a,i)}});return n.length||this.raise(xt.EmptyHeritageClauseType,r,{token:t}),n}tsParseInterfaceDeclaration(t,r={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),r.declare&&(t.declare=!0),Qn(this.state.type)?(t.id=this.parseIdentifier(),this.checkIdentifier(t.id,130)):(t.id=null,this.raise(xt.MissingInterfaceName,this.state.startLoc)),t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(t.extends=this.tsParseHeritageClause("extends"));let n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),t.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(t,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(t){return t.id=this.parseIdentifier(),this.checkIdentifier(t.id,2),t.typeAnnotation=this.tsInType(()=>{if(t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let r=this.startNode();return this.next(),this.finishNode(r,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(t,"TSTypeAliasDeclaration")}tsInTopLevelContext(t){if(this.curContext()!==Lo.brace){let r=this.state.context;this.state.context=[r[0]];try{return t()}finally{this.state.context=r}}else return t()}tsInType(t){let r=this.state.inType;this.state.inType=!0;try{return t()}finally{this.state.inType=r}}tsInDisallowConditionalTypesContext(t){let r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return t()}finally{this.state.inDisallowConditionalTypesContext=r}}tsInAllowConditionalTypesContext(t){let r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return t()}finally{this.state.inDisallowConditionalTypesContext=r}}tsEatThenParseType(t){if(this.match(t))return this.tsNextThenParseType()}tsExpectThenParseType(t){return this.tsInType(()=>(this.expect(t),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let t=this.startNode();return t.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(t.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(t,"TSEnumMember")}tsParseEnumDeclaration(t,r={}){return r.const&&(t.const=!0),r.declare&&(t.declare=!0),this.expectContextual(126),t.id=this.parseIdentifier(),this.checkIdentifier(t.id,t.const?8971:8459),t.body=this.tsParseEnumBody(),this.finishNode(t,"TSEnumDeclaration")}tsParseEnumBody(){let t=this.startNode();return this.expect(5),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(t,"TSEnumBody")}tsParseModuleBlock(){let t=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(t,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(t,r=!1){return t.id=this.tsParseEntityName(1),t.id.type==="Identifier"&&this.checkIdentifier(t.id,1024),this.scope.enter(1024),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit(),this.finishNode(t,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(t){return this.isContextual(112)?(t.kind="global",t.id=this.parseIdentifier()):this.match(134)?(t.kind="module",t.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(t,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(t,r,n){t.id=r||this.parseIdentifier(),this.checkIdentifier(t.id,4096),this.expect(29);let o=this.tsParseModuleReference();return t.importKind==="type"&&o.type!=="TSExternalModuleReference"&&this.raise(xt.ImportAliasHasImportType,o),t.moduleReference=o,this.semicolon(),this.finishNode(t,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let t=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),t.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExternalModuleReference")}tsLookAhead(t){let r=this.state.clone(),n=t();return this.state=r,n}tsTryParseAndCatch(t){let r=this.tryParse(n=>t()||n());if(!(r.aborted||!r.node))return r.error&&(this.state=r.failState),r.node}tsTryParse(t){let r=this.state.clone(),n=t();if(n!==void 0&&n!==!1)return n;this.state=r}tsTryParseDeclare(t){if(this.isLineTerminator())return;let r=this.state.type;return this.tsInAmbientContext(()=>{switch(r){case 68:return t.declare=!0,super.parseFunctionStatement(t,!1,!1);case 80:return t.declare=!0,this.parseClass(t,!0,!1);case 126:return this.tsParseEnumDeclaration(t,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(t);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(t.declare=!0,this.parseVarStatement(t,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(t,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(xt.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),t.declare=!0,this.parseVarStatement(t,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(xt.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),t.declare=!0,this.next(),this.parseVarStatement(t,"await using",!0);break;case 129:{let n=this.tsParseInterfaceDeclaration(t,{declare:!0});if(n)return n}default:if(Qn(r))return this.tsParseDeclaration(t,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(t,r,n,o){switch(r){case 124:if(this.tsCheckLineTerminator(n)&&(this.match(80)||Qn(this.state.type)))return this.tsParseAbstractDeclaration(t,o);break;case 127:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(t);if(Qn(this.state.type))return t.kind="module",this.tsParseModuleOrNamespaceDeclaration(t)}break;case 128:if(this.tsCheckLineTerminator(n)&&Qn(this.state.type))return t.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(t);break;case 130:if(this.tsCheckLineTerminator(n)&&Qn(this.state.type))return this.tsParseTypeAliasDeclaration(t);break}}tsCheckLineTerminator(t){return t?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(t){if(!this.match(47))return;let r=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let n=this.tsTryParseAndCatch(()=>{let o=this.startNodeAt(t);return o.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(o),o.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),o});if(this.state.maybeInArrowParameters=r,!!n)return super.parseArrowExpression(n,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let t=this.startNode();return t.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),t.params.length===0?this.raise(xt.EmptyTypeArguments,t):!this.state.inType&&this.curContext()===Lo.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return Uze(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(t,r){let n=r.length?r[0].loc.start:this.state.startLoc,o={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},o);let i=o.accessibility,a=o.override,s=o.readonly;!(t&4)&&(i||s||a)&&this.raise(xt.UnexpectedParameterModifier,n);let c=this.parseMaybeDefault();t&2&&this.parseFunctionParamType(c);let p=this.parseMaybeDefault(c.loc.start,c);if(i||s||a){let d=this.startNodeAt(n);return r.length&&(d.decorators=r),i&&(d.accessibility=i),s&&(d.readonly=s),a&&(d.override=a),p.type!=="Identifier"&&p.type!=="AssignmentPattern"&&this.raise(xt.UnsupportedParameterPropertyKind,d),d.parameter=p,this.finishNode(d,"TSParameterProperty")}return r.length&&(c.decorators=r),p}isSimpleParameter(t){return t.type==="TSParameterProperty"&&super.isSimpleParameter(t.parameter)||super.isSimpleParameter(t)}tsDisallowOptionalPattern(t){for(let r of t.params)r.type!=="Identifier"&&r.optional&&!this.state.isAmbientContext&&this.raise(xt.PatternIsOptional,r)}setArrowFunctionParameters(t,r,n){super.setArrowFunctionParameters(t,r,n),this.tsDisallowOptionalPattern(t)}parseFunctionBodyAndFinish(t,r,n=!1){this.match(14)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let o=r==="FunctionDeclaration"?"TSDeclareFunction":r==="ClassMethod"||r==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return o&&!this.match(5)&&this.isLineTerminator()?this.finishNode(t,o):o==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(xt.DeclareFunctionHasImplementation,t),t.declare)?super.parseFunctionBodyAndFinish(t,o,n):(this.tsDisallowOptionalPattern(t),super.parseFunctionBodyAndFinish(t,r,n))}registerFunctionStatementId(t){!t.body&&t.id?this.checkIdentifier(t.id,1024):super.registerFunctionStatementId(t)}tsCheckForInvalidTypeCasts(t){t.forEach(r=>{r?.type==="TSTypeCastExpression"&&this.raise(xt.UnexpectedTypeAnnotation,r.typeAnnotation)})}toReferencedList(t,r){return this.tsCheckForInvalidTypeCasts(t),t}parseArrayLike(t,r,n){let o=super.parseArrayLike(t,r,n);return o.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(o.elements),o}parseSubscript(t,r,n,o){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let a=this.startNodeAt(r);return a.expression=t,this.finishNode(a,"TSNonNullExpression")}let i=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(n)return o.stop=!0,t;o.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let a,s=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(t)){let f=this.tsTryParseGenericAsyncArrowFunction(r);if(f)return o.stop=!0,f}let c=this.tsParseTypeArgumentsInExpression();if(!c)return;if(i&&!this.match(10)){a=this.state.curPosition();return}if(Xq(this.state.type)){let f=super.parseTaggedTemplateExpression(t,r,o);return f.typeArguments=c,f}if(!n&&this.eat(10)){let f=this.startNodeAt(r);return f.callee=t,f.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(f.arguments),f.typeArguments=c,o.optionalChainMember&&(f.optional=i),this.finishCallExpression(f,o.optionalChainMember)}let p=this.state.type;if(p===48||p===52||p!==10&&aD(p)&&!this.hasPrecedingLineBreak())return;let d=this.startNodeAt(r);return d.expression=t,d.typeArguments=c,this.finishNode(d,"TSInstantiationExpression")});if(a&&this.unexpected(a,10),s)return s.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(xt.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(s.expression=super.stopParseSubscript(t,o))),s}return super.parseSubscript(t,r,n,o)}parseNewCallee(t){super.parseNewCallee(t);let{callee:r}=t;r.type==="TSInstantiationExpression"&&!r.extra?.parenthesized&&(t.typeArguments=r.typeArguments,t.callee=r.expression)}parseExprOp(t,r,n){let o;if(D3(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(o=this.isContextual(120)))){let i=this.startNodeAt(r);return i.expression=t,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(o&&this.raise(W.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(i,o?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,r,n)}return super.parseExprOp(t,r,n)}checkReservedWord(t,r,n,o){this.state.isAmbientContext||super.checkReservedWord(t,r,n,o)}checkImportReflection(t){super.checkImportReflection(t),t.module&&t.importKind!=="value"&&this.raise(xt.ImportReflectionHasImportType,t.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(t){if(super.isPotentialImportPhase(t))return!0;if(this.isContextual(130)){let r=this.lookaheadCharCode();return t?r===123||r===42:r!==61}return!t&&this.isContextual(87)}applyImportPhase(t,r,n,o){super.applyImportPhase(t,r,n,o),r?t.exportKind=n==="type"?"type":"value":t.importKind=n==="type"||n==="typeof"?n:"value"}parseImport(t){if(this.match(134))return t.importKind="value",super.parseImport(t);let r;if(Qn(this.state.type)&&this.lookaheadCharCode()===61)return t.importKind="value",this.tsParseImportEqualsDeclaration(t);if(this.isContextual(130)){let n=this.parseMaybeImportPhase(t,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(t,n);r=super.parseImportSpecifiersAndAfter(t,n)}else r=super.parseImport(t);return r.importKind==="type"&&r.specifiers.length>1&&r.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(xt.TypeImportCannotSpecifyDefaultAndNamed,r),r}parseExport(t,r){if(this.match(83)){let n=this.startNode();this.next();let o=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?o=this.parseMaybeImportPhase(n,!1):n.importKind="value";let i=this.tsParseImportEqualsDeclaration(n,o,!0);return t.attributes=[],t.declaration=i,t.exportKind="value",t.source=null,t.specifiers=[],this.finishNode(t,"ExportNamedDeclaration")}else if(this.eat(29)){let n=t;return n.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(n,"TSExportAssignment")}else if(this.eatContextual(93)){let n=t;return this.expectContextual(128),n.id=this.parseIdentifier(),this.semicolon(),this.finishNode(n,"TSNamespaceExportDeclaration")}else return super.parseExport(t,r)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0,!0)}if(this.match(129)){let t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return super.parseExportDefaultExpression()}parseVarStatement(t,r,n=!1){let{isAmbientContext:o}=this.state,i=super.parseVarStatement(t,r,n||o);if(!o)return i;if(!t.declare&&(r==="using"||r==="await using"))return this.raiseOverwrite(xt.UsingDeclarationInAmbientContext,t,r),i;for(let{id:a,init:s}of i.declarations)s&&(r==="var"||r==="let"||a.typeAnnotation?this.raise(xt.InitializerNotAllowedInAmbientContext,s):MJe(s,this.hasPlugin("estree"))||this.raise(xt.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,s));return i}parseStatementContent(t,r){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let n=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(n,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let n=this.state.type,o=this.startNode();this.next();let i=n===125?this.tsTryParseDeclare(o):this.tsParseAbstractDeclaration(o,r);return i?(n===125&&(i.declare=!0),i):(o.expression=this.createIdentifier(this.startNodeAt(o.loc.start),n===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(o,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let n=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(n)}break}case 129:{let n=this.tsParseInterfaceDeclaration(this.startNode());if(n)return n;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let n=this.startNode();return this.next(),this.tsParseDeclaration(n,127,!1,r)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let n=this.startNode();return this.next(),this.tsParseDeclaration(n,128,!1,r)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let n=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(n)}break}}return super.parseStatementContent(t,r)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(t,r){return r.some(n=>Wue(n)?t.accessibility===n:!!t[n])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(t,r,n){let o=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:o,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:xt.InvalidModifierOnTypeParameterPositions},r);let i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(r,o)&&this.raise(xt.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(t,r)):this.parseClassMemberWithIsStatic(t,r,n,!!r.static)};r.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(t,r,n,o){let i=this.tsTryParseIndexSignature(r);if(i){t.body.push(i),r.abstract&&this.raise(xt.IndexSignatureHasAbstract,r),r.accessibility&&this.raise(xt.IndexSignatureHasAccessibility,r,{modifier:r.accessibility}),r.declare&&this.raise(xt.IndexSignatureHasDeclare,r),r.override&&this.raise(xt.IndexSignatureHasOverride,r);return}!this.state.inAbstractClass&&r.abstract&&this.raise(xt.NonAbstractClassHasAbstractMethod,r),r.override&&(n.hadSuperClass||this.raise(xt.OverrideNotInSubClass,r)),super.parseClassMemberWithIsStatic(t,r,n,o)}parsePostMemberNameModifiers(t){this.eat(17)&&(t.optional=!0),t.readonly&&this.match(10)&&this.raise(xt.ClassMethodHasReadonly,t),t.declare&&this.match(10)&&this.raise(xt.ClassMethodHasDeclare,t)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(t,r,n){if(!this.match(17))return t;if(this.state.maybeInArrowParameters){let o=this.lookaheadCharCode();if(o===44||o===61||o===58||o===41)return this.setOptionalParametersError(n),t}return super.parseConditional(t,r,n)}parseParenItem(t,r){let n=super.parseParenItem(t,r);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(t)),this.match(14)){let o=this.startNodeAt(r);return o.expression=t,o.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(o,"TSTypeCastExpression")}return t}parseExportDeclaration(t){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(t));let r=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(xt.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let o=Qn(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(t);return o?((o.type==="TSInterfaceDeclaration"||o.type==="TSTypeAliasDeclaration"||n)&&(t.exportKind="type"),n&&o.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(o,r),o.declare=!0),o):null}parseClassId(t,r,n,o){if((!r||n)&&this.isContextual(113))return;super.parseClassId(t,r,n,t.declare?1024:8331);let i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(t.typeParameters=i)}parseClassPropertyAnnotation(t){t.optional||(this.eat(35)?t.definite=!0:this.eat(17)&&(t.optional=!0));let r=this.tsTryParseTypeAnnotation();r&&(t.typeAnnotation=r)}parseClassProperty(t){if(this.parseClassPropertyAnnotation(t),this.state.isAmbientContext&&!(t.readonly&&!t.typeAnnotation)&&this.match(29)&&this.raise(xt.DeclareClassFieldHasInitializer,this.state.startLoc),t.abstract&&this.match(29)){let{key:r}=t;this.raise(xt.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:r.type==="Identifier"&&!t.computed?r.name:`[${this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end))}]`})}return super.parseClassProperty(t)}parseClassPrivateProperty(t){return t.abstract&&this.raise(xt.PrivateElementHasAbstract,t),t.accessibility&&this.raise(xt.PrivateElementHasAccessibility,t,{modifier:t.accessibility}),this.parseClassPropertyAnnotation(t),super.parseClassPrivateProperty(t)}parseClassAccessorProperty(t){return this.parseClassPropertyAnnotation(t),t.optional&&this.raise(xt.AccessorCannotBeOptional,t),super.parseClassAccessorProperty(t)}pushClassMethod(t,r,n,o,i,a){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&i&&this.raise(xt.ConstructorHasTypeParameters,s);let{declare:c=!1,kind:p}=r;c&&(p==="get"||p==="set")&&this.raise(xt.DeclareAccessor,r,{kind:p}),s&&(r.typeParameters=s),super.pushClassMethod(t,r,n,o,i,a)}pushClassPrivateMethod(t,r,n,o){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(r.typeParameters=i),super.pushClassPrivateMethod(t,r,n,o)}declareClassPrivateMethodInScope(t,r){t.type!=="TSDeclareMethod"&&(t.type==="MethodDefinition"&&t.value.body==null||super.declareClassPrivateMethodInScope(t,r))}parseClassSuper(t){super.parseClassSuper(t),t.superClass&&(this.match(47)||this.match(51))&&(t.superTypeArguments=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(t.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(t,r,n,o,i,a,s){let c=this.tsTryParseTypeParameters(this.tsParseConstModifier);return c&&(t.typeParameters=c),super.parseObjPropValue(t,r,n,o,i,a,s)}parseFunctionParams(t,r){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(t.typeParameters=n),super.parseFunctionParams(t,r)}parseVarId(t,r){super.parseVarId(t,r),t.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(t.definite=!0);let n=this.tsTryParseTypeAnnotation();n&&(t.id.typeAnnotation=n,this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,r){return this.match(14)&&(t.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(t,r)}parseMaybeAssign(t,r){let n,o,i;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),o=this.tryParse(()=>super.parseMaybeAssign(t,r),n),!o.error)return o.node;let{context:c}=this.state,p=c[c.length-1];(p===Lo.j_oTag||p===Lo.j_expr)&&c.pop()}if(!o?.error&&!this.match(47))return super.parseMaybeAssign(t,r);(!n||n===this.state)&&(n=this.state.clone());let a,s=this.tryParse(c=>{a=this.tsParseTypeParameters(this.tsParseConstModifier);let p=super.parseMaybeAssign(t,r);if((p.type!=="ArrowFunctionExpression"||p.extra?.parenthesized)&&c(),a?.params.length!==0&&this.resetStartLocationFromNode(p,a),p.typeParameters=a,this.hasPlugin("jsx")&&p.typeParameters.params.length===1&&!p.typeParameters.extra?.trailingComma){let d=p.typeParameters.params[0];d.constraint||this.raise(xt.SingleTypeParameterWithoutTrailingComma,Rl(d.loc.end,1),{typeParameterName:d.name.name})}return p},n);if(!s.error&&!s.aborted)return a&&this.reportReservedArrowTypeParam(a),s.node;if(!o&&(Zue(!this.hasPlugin("jsx")),i=this.tryParse(()=>super.parseMaybeAssign(t,r),n),!i.error))return i.node;if(o?.node)return this.state=o.failState,o.node;if(s.node)return this.state=s.failState,a&&this.reportReservedArrowTypeParam(a),s.node;if(i?.node)return this.state=i.failState,i.node;throw o?.error||s.error||i?.error}reportReservedArrowTypeParam(t){t.params.length===1&&!t.params[0].constraint&&!t.extra?.trailingComma&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(xt.ReservedArrowTypeParam,t)}parseMaybeUnary(t,r){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(t,r)}parseArrow(t){if(this.match(14)){let r=this.tryParse(n=>{let o=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&n(),o});if(r.aborted)return;r.thrown||(r.error&&(this.state=r.failState),t.returnType=r.node)}return super.parseArrow(t)}parseFunctionParamType(t){this.eat(17)&&(t.optional=!0);let r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r),this.resetEndLocation(t),t}isAssignable(t,r){switch(t.type){case"TSTypeCastExpression":return this.isAssignable(t.expression,r);case"TSParameterProperty":return!0;default:return super.isAssignable(t,r)}}toAssignable(t,r=!1){switch(t.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(t,r);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":r?this.expressionScope.recordArrowParameterBindingError(xt.UnexpectedTypeCastInParameter,t):this.raise(xt.UnexpectedTypeCastInParameter,t),this.toAssignable(t.expression,r);break;case"AssignmentExpression":!r&&t.left.type==="TSTypeCastExpression"&&(t.left=this.typeCastToParameter(t.left));default:super.toAssignable(t,r)}}toAssignableParenthesizedExpression(t,r){switch(t.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(t.expression,r);break;default:super.toAssignable(t,r)}}checkToRestConversion(t,r){switch(t.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(t.expression,!1);break;default:super.checkToRestConversion(t,r)}}isValidLVal(t,r,n,o){switch(t){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(o!==64||!n)&&["expression",!0];default:return super.isValidLVal(t,r,n,o)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(t,r){if(this.match(47)||this.match(51)){let n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let o=super.parseMaybeDecoratorArguments(t,r);return o.typeArguments=n,o}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(t,r)}checkCommaAfterRest(t){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===t?(this.next(),!1):super.checkCommaAfterRest(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(t,r){let n=super.parseMaybeDefault(t,r);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.startthis.isAssignable(r,!0)):super.shouldParseArrow(t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(t){if(this.match(47)||this.match(51)){let r=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());r&&(t.typeArguments=r)}return super.jsxParseOpeningElementAfterName(t)}getGetterSetterExpectedParamCount(t){let r=super.getGetterSetterExpectedParamCount(t),n=this.getObjectOrClassMethodParams(t)[0];return n&&this.isThisParam(n)?r+1:r}parseCatchClauseParam(){let t=super.parseCatchClauseParam(),r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r,this.resetEndLocation(t)),t}tsInAmbientContext(t){let{isAmbientContext:r,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return t()}finally{this.state.isAmbientContext=r,this.state.strict=n}}parseClass(t,r,n){let o=this.state.inAbstractClass;this.state.inAbstractClass=!!t.abstract;try{return super.parseClass(t,r,n)}finally{this.state.inAbstractClass=o}}tsParseAbstractDeclaration(t,r){if(this.match(80))return t.abstract=!0,this.maybeTakeDecorators(r,this.parseClass(t,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(t.abstract=!0,this.raise(xt.NonClassMethodPropertyHasAbstractModifier,t),this.tsParseInterfaceDeclaration(t));throw this.unexpected(null,80)}parseMethod(t,r,n,o,i,a,s){let c=super.parseMethod(t,r,n,o,i,a,s);if((c.abstract||c.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?c.value:c).body){let{key:p}=c;this.raise(xt.AbstractMethodHasImplementation,c,{methodName:p.type==="Identifier"&&!c.computed?p.name:`[${this.input.slice(this.offsetToSourcePos(p.start),this.offsetToSourcePos(p.end))}]`})}return c}tsParseTypeParameterName(){return this.parseIdentifier()}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(t,r,n,o){return!r&&o?(this.parseTypeOnlyImportExportSpecifier(t,!1,n),this.finishNode(t,"ExportSpecifier")):(t.exportKind="value",super.parseExportSpecifier(t,r,n,o))}parseImportSpecifier(t,r,n,o,i){return!r&&o?(this.parseTypeOnlyImportExportSpecifier(t,!0,n),this.finishNode(t,"ImportSpecifier")):(t.importKind="value",super.parseImportSpecifier(t,r,n,o,n?4098:4096))}parseTypeOnlyImportExportSpecifier(t,r,n){let o=r?"imported":"local",i=r?"local":"exported",a=t[o],s,c=!1,p=!0,d=a.loc.start;if(this.isContextual(93)){let m=this.parseIdentifier();if(this.isContextual(93)){let y=this.parseIdentifier();Ou(this.state.type)?(c=!0,a=m,s=r?this.parseIdentifier():this.parseModuleExportName(),p=!1):(s=y,p=!1)}else Ou(this.state.type)?(p=!1,s=r?this.parseIdentifier():this.parseModuleExportName()):(c=!0,a=m)}else Ou(this.state.type)&&(c=!0,r?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());c&&n&&this.raise(r?xt.TypeModifierIsUsedInTypeImports:xt.TypeModifierIsUsedInTypeExports,d),t[o]=a,t[i]=s;let f=r?"importKind":"exportKind";t[f]=c?"type":"value",p&&this.eatContextual(93)&&(t[i]=r?this.parseIdentifier():this.parseModuleExportName()),t[i]||(t[i]=this.cloneIdentifier(t[o])),r&&this.checkIdentifier(t[i],c?4098:4096)}fillOptionalPropertiesForTSESLint(t){switch(t.type){case"ExpressionStatement":t.directive??(t.directive=void 0);return;case"RestElement":t.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":t.decorators??(t.decorators=[]),t.optional??(t.optional=!1),t.typeAnnotation??(t.typeAnnotation=void 0);return;case"TSParameterProperty":t.accessibility??(t.accessibility=void 0),t.decorators??(t.decorators=[]),t.override??(t.override=!1),t.readonly??(t.readonly=!1),t.static??(t.static=!1);return;case"TSEmptyBodyFunctionExpression":t.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":t.declare??(t.declare=!1),t.returnType??(t.returnType=void 0),t.typeParameters??(t.typeParameters=void 0);return;case"Property":t.optional??(t.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":t.optional??(t.optional=!1);case"TSIndexSignature":t.accessibility??(t.accessibility=void 0),t.readonly??(t.readonly=!1),t.static??(t.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":t.declare??(t.declare=!1),t.definite??(t.definite=!1),t.readonly??(t.readonly=!1),t.typeAnnotation??(t.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":t.accessibility??(t.accessibility=void 0),t.decorators??(t.decorators=[]),t.override??(t.override=!1),t.optional??(t.optional=!1);return;case"ClassExpression":t.id??(t.id=null);case"ClassDeclaration":t.abstract??(t.abstract=!1),t.declare??(t.declare=!1),t.decorators??(t.decorators=[]),t.implements??(t.implements=[]),t.superTypeArguments??(t.superTypeArguments=void 0),t.typeParameters??(t.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":t.declare??(t.declare=!1);return;case"VariableDeclarator":t.definite??(t.definite=!1);return;case"TSEnumDeclaration":t.const??(t.const=!1),t.declare??(t.declare=!1);return;case"TSEnumMember":t.computed??(t.computed=!1);return;case"TSImportType":t.qualifier??(t.qualifier=null),t.options??(t.options=null),t.typeArguments??(t.typeArguments=null);return;case"TSInterfaceDeclaration":t.declare??(t.declare=!1),t.extends??(t.extends=[]);return;case"TSMappedType":t.optional??(t.optional=!1),t.readonly??(t.readonly=void 0);return;case"TSModuleDeclaration":t.declare??(t.declare=!1),t.global??(t.global=t.kind==="global");return;case"TSTypeParameter":t.const??(t.const=!1),t.in??(t.in=!1),t.out??(t.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(t,r){if(ed(t)){if(Gq.lastIndex=r,Gq.test(this.input)){let n=this.codePointAtPos(Gq.lastIndex);if(!Sg(n)&&n!==92)return!1}return!0}else return t===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifierAndNotRelationalOperator(r,t)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifier(r,t)||r===34||r===39}};function $Je(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:kpe(e.object)}function MJe(e,t){let{type:r}=e;if(e.extra?.parenthesized)return!1;if(t){if(r==="Literal"){let{value:n}=e;if(typeof n=="string"||typeof n=="boolean")return!0}}else if(r==="StringLiteral"||r==="BooleanLiteral")return!0;return!!(wpe(e,t)||jJe(e,t)||r==="TemplateLiteral"&&e.expressions.length===0||$Je(e))}function wpe(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function jJe(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:n}=e;if(r==="-"&&wpe(n,t))return!0}return!1}function kpe(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:kpe(e.object)}var Que=Yp`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),BJe=e=>class extends e{parsePlaceholder(t){if(this.match(133)){let r=this.startNode();return this.next(),this.assertNoSpace(),r.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(r,t)}}finishPlaceholder(t,r){let n=t;return(!n.expectedNode||!n.type)&&(n=this.finishNode(n,"Placeholder")),n.expectedNode=r,n}getTokenFromCode(t){t===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(t)}parseExprAtom(t){return this.parsePlaceholder("Expression")||super.parseExprAtom(t)}parseIdentifier(t){return this.parsePlaceholder("Identifier")||super.parseIdentifier(t)}checkReservedWord(t,r,n,o){t!==void 0&&super.checkReservedWord(t,r,n,o)}cloneIdentifier(t){let r=super.cloneIdentifier(t);return r.type==="Placeholder"&&(r.expectedNode=t.expectedNode),r}cloneStringLiteral(t){return t.type==="Placeholder"?this.cloneIdentifier(t):super.cloneStringLiteral(t)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(t,r,n,o){return t==="Placeholder"||super.isValidLVal(t,r,n,o)}toAssignable(t,r){t&&t.type==="Placeholder"&&t.expectedNode==="Expression"?t.expectedNode="Pattern":super.toAssignable(t,r)}chStartsBindingIdentifier(t,r){if(super.chStartsBindingIdentifier(t,r))return!0;let n=this.nextTokenStart();return this.input.charCodeAt(n)===37&&this.input.charCodeAt(n+1)===37}verifyBreakContinue(t,r){t.label&&t.label.type==="Placeholder"||super.verifyBreakContinue(t,r)}parseExpressionStatement(t,r){if(r.type!=="Placeholder"||r.extra?.parenthesized)return super.parseExpressionStatement(t,r);if(this.match(14)){let o=t;return o.label=this.finishPlaceholder(r,"Identifier"),this.next(),o.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(o,"LabeledStatement")}this.semicolon();let n=t;return n.name=r.name,this.finishPlaceholder(n,"Statement")}parseBlock(t,r,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(t,r,n)}parseFunctionId(t){return this.parsePlaceholder("Identifier")||super.parseFunctionId(t)}parseClass(t,r,n){let o=r?"ClassDeclaration":"ClassExpression";this.next();let i=this.state.strict,a=this.parsePlaceholder("Identifier");if(a)if(this.match(81)||this.match(133)||this.match(5))t.id=a;else{if(n||!r)return t.id=null,t.body=this.finishPlaceholder(a,"ClassBody"),this.finishNode(t,o);throw this.raise(Que.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(t,r,n);return super.parseClassSuper(t),t.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!t.superClass,i),this.finishNode(t,o)}parseExport(t,r){let n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(t,r);let o=t;if(!this.isContextual(98)&&!this.match(12))return o.specifiers=[],o.source=null,o.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(o,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let i=this.startNode();return i.exported=n,o.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],super.parseExport(o,r)}isExportDefaultSpecifier(){if(this.match(65)){let t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(Vm(133),this.nextTokenStartSince(t+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(t,r){return t.specifiers?.length?!0:super.maybeParseExportDefaultSpecifier(t,r)}checkExport(t){let{specifiers:r}=t;r?.length&&(t.specifiers=r.filter(n=>n.exported.type==="Placeholder")),super.checkExport(t),t.specifiers=r}parseImport(t){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseImport(t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");let n=this.startNodeAtNode(r);return n.local=r,t.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Que.UnexpectedSpace,this.state.lastTokEndLoc)}},qJe=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let t=this.state.startLoc,r=this.startNode();if(this.next(),Qn(this.state.type)){let n=this.parseIdentifierName(),o=this.createIdentifier(r,n);if(this.castNodeTo(o,"V8IntrinsicIdentifier"),this.match(10))return o}this.unexpected(t)}}parseExprAtom(t){return this.parseV8Intrinsic()||super.parseExprAtom(t)}},Xue=["fsharp","hack"],Yue=["^^","@@","^","%","#"];function UJe(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=e.get("decorators").decoratorsBeforeExport;if(t!=null&&typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=e.get("decorators").allowCallParenthesized;if(r!=null&&typeof r!="boolean")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")){let t=e.get("pipelineOperator").proposal;if(!Xue.includes(t)){let r=Xue.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${r}.`)}if(t==="hack"){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.");let r=e.get("pipelineOperator").topicToken;if(!Yue.includes(r)){let n=Yue.map(o=>`"${o}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}}}if(e.has("moduleAttributes"))throw new Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(e.has("importAssertions"))throw new Error("`importAssertions` has been removed in Babel 8, please use import attributes instead. To use the non-standard `assert` syntax you can enable the `deprecatedImportAssert` parser plugin.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax)throw new Error("The 'importAttributes' plugin has been removed in Babel 8. If you need to enable support for the deprecated `assert` syntax, you can enable the `deprecatedImportAssert` parser plugin.");if(e.has("recordAndTuple"))throw new Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")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")&&e.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");{if(e.has("decimal"))throw new Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("importReflection"))throw new Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}}var Cpe={estree:Pze,jsx:uJe,flow:sJe,typescript:LJe,v8intrinsic:qJe,placeholders:BJe},zJe=Object.keys(Cpe),JJe=class extends OJe{checkProto(e,t,r,n){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return r;let o=e.key;return(o.type==="Identifier"?o.name:o.value)==="__proto__"?t?(this.raise(W.RecordNoProto,o),!0):(r&&(n?n.doubleProtoLoc===null&&(n.doubleProtoLoc=o.loc.start):this.raise(W.DuplicateProto,o)),!0):r}shouldExitDescending(e,t){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(W.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(W.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&256&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){let t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){let 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){let r=this.state.startLoc,n=this.isContextual(108);if(n&&this.prodParam.hasYield){this.next();let s=this.parseYield(r);return t&&(s=t.call(this,s,r)),s}let o;e?o=!1:(e=new I3,o=!0);let{type:i}=this.state;(i===10||Qn(i))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e);if(t&&(a=t.call(this,a,r)),Lze(this.state.type)){let s=this.startNodeAt(r),c=this.state.value;if(s.operator=c,this.match(29)){this.toAssignable(a,!0),s.left=a;let p=r.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=p&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=p&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=p&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),e.voidPatternLoc!=null&&e.voidPatternLoc.index>=p&&(e.voidPatternLoc=null)}else s.left=a;return this.next(),s.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(s,"AssignmentExpression"),void 0,void 0,void 0,void 0,c==="||="||c==="&&="||c==="??="),s}else o&&this.checkExpressionErrors(e,!0);if(n){let{type:s}=this.state;if((this.hasPlugin("v8intrinsic")?aD(s):aD(s)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(W.YieldNotInGeneratorFunction,r),this.parseYield(r)}return a}parseMaybeConditional(e){let 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)){let n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let 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)){let o=this.getPrivateNameSV(e);(r>=D3(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(W.PrivateInExpectedIn,e,{identifierName:o}),this.classScope.usePrivateName(o,e.loc.start)}let n=this.state.type;if(Mze(n)&&(this.prodParam.hasIn||!this.match(58))){let o=D3(n);if(o>r){if(n===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let i=this.startNodeAt(t);i.left=e,i.operator=this.state.value;let a=n===41||n===42,s=n===40;s&&(o=D3(42)),this.next(),i.right=this.parseExprOpRightExpr(n,o);let c=this.finishNode(i,a||s?"LogicalExpression":"BinaryExpression"),p=this.state.type;if(s&&(p===41||p===42)||a&&p===40)throw this.raise(W.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,t,r)}}return e}parseExprOpRightExpr(e,t){switch(this.state.startLoc,e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){let r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,zze(e)?t-1:t)}parseHackPipeBody(){let{startLoc:e}=this.state,t=this.parseMaybeAssign();return Tze.has(t.type)&&!t.extra?.parenthesized&&this.raise(W.PipeUnparenthesizedBody,e,{type:t.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(W.PipeTopicUnused,e),t}checkExponentialAfterUnary(e){this.match(57)&&this.raise(W.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let r=this.state.startLoc,n=this.isContextual(96);if(n&&this.recordAwaitIfAllowed()){this.next();let s=this.parseAwait(r);return t||this.checkExponentialAfterUnary(s),s}let o=this.match(34),i=this.startNode();if(Bze(this.state.type)){i.operator=this.state.value,i.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let s=this.match(89);if(this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&s){let c=i.argument;c.type==="Identifier"?this.raise(W.StrictDelete,i):this.hasPropertyAsPrivateName(c)&&this.raise(W.DeletePrivateField,i)}if(!o)return t||this.checkExponentialAfterUnary(i),this.finishNode(i,"UnaryExpression")}let a=this.parseUpdate(i,o,e);if(n){let{type:s}=this.state;if((this.hasPlugin("v8intrinsic")?aD(s):aD(s)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(W.AwaitNotInAsyncContext,r),this.parseAwait(r)}return a}parseUpdate(e,t,r){if(t){let i=e;return this.checkLVal(i.argument,this.finishNode(i,"UpdateExpression")),e}let n=this.state.startLoc,o=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return o;for(;jze(this.state.type)&&!this.canInsertSemicolon();){let i=this.startNodeAt(n);i.operator=this.state.value,i.prefix=!1,i.argument=o,this.next(),this.checkLVal(o,o=this.finishNode(i,"UpdateExpression"))}return o}parseExprSubscripts(e){let 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){let 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){let{type:o}=this.state;if(!r&&o===15)return this.parseBind(e,t,r,n);if(Xq(o))return this.parseTaggedTemplateExpression(e,t,n);let i=!1;if(o===18){if(r&&(this.raise(W.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(e,n);n.optionalChainMember=i=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,n,i);{let a=this.eat(0);return a||i||this.eat(16)?this.parseMember(e,t,n,a,i):this.stopParseSubscript(e,n)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,r,n,o){let i=this.startNodeAt(t);return i.object=e,i.computed=n,n?(i.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type==="Super"&&this.raise(W.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),r.optionalChainMember?(i.optional=o,this.finishNode(i,"OptionalMemberExpression")):this.finishNode(i,"MemberExpression")}parseBind(e,t,r,n){let o=this.startNodeAt(t);return o.object=e,this.next(),o.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(o,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,n){let o=this.state.maybeInArrowParameters,i=null;this.state.maybeInArrowParameters=!0,this.next();let a=this.startNodeAt(t);a.callee=e;let{maybeAsyncArrow:s,optionalChainMember:c}=r;s&&(this.expressionScope.enter(kJe()),i=new I3),c&&(a.optional=n),n?a.arguments=this.parseCallExpressionArguments():a.arguments=this.parseCallExpressionArguments(e.type!=="Super",a,i);let p=this.finishCallExpression(a,c);return s&&this.shouldParseAsyncArrow()&&!n?(r.stop=!0,this.checkDestructuringPrivate(i),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),p=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),p)):(s&&(this.checkExpressionErrors(i,!0),this.expressionScope.exit()),this.toReferencedArguments(p)),this.state.maybeInArrowParameters=o,p}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){let n=this.startNodeAt(t);return n.tag=e,n.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(W.OptionalChainingNoTemplate,t),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type==="Import")if(e.arguments.length===0||e.arguments.length>2)this.raise(W.ImportCallArity,e);else for(let r of e.arguments)r.type==="SpreadElement"&&this.raise(W.ImportCallSpreadArgument,r);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r){let n=[],o=!0,i=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(o)o=!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){return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,t.extra?.trailingCommaLoc),t.innerComments&&Uv(e,t.innerComments),t.callee.trailingComments&&Uv(e,t.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,r=null,{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)?this.optionFlags&512?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(W.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:{let o=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(o)}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;let o=t.callee=this.parseNoCallExpr();if(o.type==="MemberExpression")return this.finishNode(t,"BindExpression");throw this.raise(W.UnsupportedBind,o)}case 139:return this.raise(W.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:{let o=this.getPluginOption("pipelineOperator","proposal");if(o)return this.parseTopicReference(o);throw this.unexpected()}case 47:{let o=this.input.codePointAt(this.nextTokenStart());throw ed(o)||o===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(Qn(n)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let o=this.state.potentialArrowAt===this.state.start,i=this.state.containsEsc,a=this.parseIdentifier();if(!i&&a.name==="async"&&!this.canInsertSemicolon()){let{type:s}=this.state;if(s===68)return this.resetPreviousNodeTrailingComments(a),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(a));if(Qn(s))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(a)):a;if(s===90)return this.resetPreviousNodeTrailingComments(a),this.parseDo(this.startNodeAtNode(a),!0)}return o&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(a),[a],!1)):a}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let 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=Rl(this.state.endLoc,-1),this.parseTopicReference(r);throw this.unexpected()}parseTopicReference(e){let 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 this.topicReferenceIsAllowedInCurrentContext()||this.raise(W.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,"TopicReference");throw this.raise(W.PipeTopicUnconfiguredToken,t,{token:Vm(n)})}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Vm(r)}]);case"smart":return r===27;default:throw this.raise(W.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(A3(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(W.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();let 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(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.raise(W.SuperNotAllowed,e):this.scope.allowSuper||this.raise(W.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(W.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(Rl(this.state.startLoc,1)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let 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;let n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(W.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let t=this.isContextual(105);return this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}else{let t=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(W.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){let 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){{let t;try{t=BigInt(e)}catch{t=null}return this.parseLiteral(t,"BigIntLiteral")}}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let 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){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let t=this.state.startLoc,r;this.next(),this.expressionScope.enter(wJe());let n=this.state.maybeInArrowParameters,o=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let i=this.state.startLoc,a=[],s=new I3,c=!0,p,d;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,s.optionalParametersLoc===null?null:s.optionalParametersLoc),this.match(11)){d=this.state.startLoc;break}if(this.match(21)){let y=this.state.startLoc;if(p=this.state.startLoc,a.push(this.parseParenItem(this.parseRestBinding(),y)),!this.checkCommaAfterRest(41))break}else a.push(this.parseMaybeAssignAllowInOrVoidPattern(11,s,this.parseParenItem))}let f=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=o;let m=this.startNodeAt(t);return e&&this.shouldParseArrow(a)&&(m=this.parseArrow(m))?(this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(m,a,!1),m):(this.expressionScope.exit(),a.length||this.unexpected(this.state.lastTokStartLoc),d&&this.unexpected(d),p&&this.unexpected(p),this.checkExpressionErrors(s,!0),this.toReferencedListDeep(a,!0),a.length>1?(r=this.startNodeAt(i),r.expressions=a,this.finishNode(r,"SequenceExpression"),this.resetEndLocation(r,f)):r=a[0],this.wrapParenthesis(t,r))}wrapParenthesis(e,t){if(!(this.optionFlags&1024))return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let 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(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let r=this.parseMetaProperty(e,t,"target");return this.scope.allowNewTarget||this.raise(W.UnexpectedNewTarget,r),r}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let t=this.match(83),r=this.parseNoCallExpr();e.callee=r,t&&(r.type==="Import"||r.type==="ImportExpression")&&this.raise(W.ImportCallNotNewExpression,r)}parseTemplateElement(e){let{start:t,startLoc:r,end:n,value:o}=this.state,i=t+1,a=this.startNodeAt(Rl(r,1));o===null&&(e||this.raise(W.InvalidEscapeSequenceTemplate,Rl(this.state.firstInvalidTemplateEscapePos,1)));let s=this.match(24),c=s?-1:-2,p=n+c;a.value={raw:this.input.slice(i,p).replace(/\r\n?/g,` +`),cooked:o===null?null:o.slice(1,c)},a.tail=s,this.next();let d=this.finishNode(a,"TemplateElement");return this.resetEndLocation(d,Rl(this.state.lastTokEndLoc,c)),d}parseTemplate(e){let t=this.startNode(),r=this.parseTemplateElement(e),n=[r],o=[];for(;!r.tail;)o.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),n.push(r=this.parseTemplateElement(e));return t.expressions=o,t.quasis=n,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");let o=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let i=!1,a=!0,s=this.startNode();for(s.properties=[],this.next();!this.match(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(s);break}let p;t?p=this.parseBindingProperty():(p=this.parsePropertyDefinition(n),i=this.checkProto(p,r,i,n)),r&&!this.isObjectProperty(p)&&p.type!=="SpreadElement"&&this.raise(W.InvalidRecordProperty,p),s.properties.push(p)}this.next(),this.state.inFSharpPipelineDirectBody=o;let c="ObjectExpression";return t?c="ObjectPattern":r&&(c="RecordExpression"),this.finishNode(s,c)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(W.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());let r=this.startNode(),n=!1,o=!1,i;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(r.decorators=t,t=[]),r.method=!1,e&&(i=this.state.startLoc);let a=this.eat(55);this.parsePropertyNamePrefixOperator(r);let s=this.state.containsEsc;if(this.parsePropertyName(r,e),!a&&!s&&this.maybeAsyncOrAccessorProp(r)){let{key:c}=r,p=c.name;p==="async"&&!this.hasPrecedingLineBreak()&&(n=!0,this.resetPreviousNodeTrailingComments(c),a=this.eat(55),this.parsePropertyName(r)),(p==="get"||p==="set")&&(o=!0,this.resetPreviousNodeTrailingComments(c),r.kind=p,this.match(55)&&(a=!0,this.raise(W.AccessorIsGenerator,this.state.curPosition(),{kind:p}),this.next()),this.parsePropertyName(r))}return this.parseObjPropValue(r,i,a,n,!1,o,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){let t=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e);r.length!==t&&this.raise(e.kind==="get"?W.BadGetterArity:W.BadSetterArity,e),e.kind==="set"&&r[r.length-1]?.type==="RestElement"&&this.raise(W.BadSetterRestParameter,e)}parseObjectMethod(e,t,r,n,o){if(o){let i=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(i),i}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&&e.key.type==="Identifier"){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)){let o=this.state.startLoc;n!=null?n.shorthandAssignLoc===null&&(n.shorthandAssignLoc=o):this.raise(W.InvalidCoverInitializedName,o),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,o,i,a){let s=this.parseObjectMethod(e,r,n,o,i)||this.parseObjectProperty(e,t,o,a);return s||this.unexpected(),s}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:r,value:n}=this.state,o;if(Ou(r))o=this.parseIdentifier(!0);else switch(r){case 135:o=this.parseNumericLiteral(n);break;case 134:o=this.parseStringLiteral(n);break;case 136:o=this.parseBigIntLiteral(n);break;case 139:{let i=this.state.startLoc;t!=null?t.privateKeyLoc===null&&(t.privateKeyLoc=i):this.raise(W.UnexpectedPrivateField,i),o=this.parsePrivateName();break}default:this.unexpected()}e.key=o,r!==139&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,r,n,o,i,a=!1){this.initFunction(e,r),e.generator=t,this.scope.enter(530|(a?576:0)|(o?32:0)),this.prodParam.enter(A3(r,e.generator)),this.parseFunctionParams(e,n);let s=this.parseFunctionBodyAndFinish(e,i,!0);return this.prodParam.exit(),this.scope.exit(),s}parseArrayLike(e,t,r){t&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let o=this.startNode();return this.next(),o.elements=this.parseExprList(e,!t,r,o),this.state.inFSharpPipelineDirectBody=n,this.finishNode(o,t?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,n){this.scope.enter(518);let o=A3(r,!1);!this.match(5)&&this.prodParam.hasIn&&(o|=8),this.prodParam.enter(o),this.initFunction(e,r);let 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){let n=t&&!this.match(5);if(this.expressionScope.enter(Ipe()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let o=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,a=>{let s=!this.isSimpleParamList(e.params);a&&s&&this.raise(W.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&e.key?e.key.loc.end:e);let c=!o&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!r&&!s,t,c),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,c)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let t=0,r=e.length;t10||!Yze(e))){if(r&&Wze(e)){this.raise(W.UnexpectedKeyword,t,{keyword:e});return}if((this.state.strict?n?bpe:Spe:gpe)(e,this.inModule)){this.raise(W.UnexpectedReservedWord,t,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(W.YieldBindingIdentifier,t);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(W.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(W.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(W.ArgumentsInClass,t);return}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(W.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(W.ObsoleteAwaitStar,t),!this.scope.inFunction&&!(this.optionFlags&1)&&(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;let{type:e}=this.state;return e===53||e===10||e===0||Xq(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(e){let t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(W.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(W.ImportCallArity,e)}}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&e.type==="SequenceExpression"&&this.raise(W.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}else{let 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(W.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(W.PipelineTopicUnused,e)}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){return e()}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(t&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let n=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,n}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let 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");let t=this.startNode();return e!=null&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,t,r){if(t!=null&&this.match(88)){let n=this.lookaheadCharCode();if(n===44||n===(e===3?93:e===8?125:41)||n===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,r)}parsePropertyNamePrefixOperator(e){}},Hq={kind:1},VJe={kind:2},KJe=/[\uD800-\uDFFF]/u,Zq=/in(?:stanceof)?/y;function GJe(e,t,r){for(let n=0;n0)for(let[o,i]of Array.from(this.scope.undefinedExports))this.raise(W.ModuleExportUndefined,i,{localName:o});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let n;return t===140?n=this.finishNode(e,"Program"):n=this.finishNodeAt(e,"Program",Rl(this.state.startLoc,-1)),n}stmtToDirective(e){let t=this.castNodeTo(e,"Directive"),r=this.castNodeTo(e.expression,"DirectiveLiteral"),n=r.value,o=this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end)),i=r.value=o.slice(1,-1);return this.addExtra(r,"raw",o),this.addExtra(r,"rawValue",i),this.addExtra(r,"expressionValue",n),t.value=r,delete e.expression,t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){let r=this.lookaheadCharCodeSince(e+2);if(r!==61&&r!==58&&r!==59)return!1}return!!(this.chStartsBindingIdentifier(t,e)||this.isUnparsedContextual(e,"void"))}nextTokenIsIdentifierOnSameLine(){let 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);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(ed(e)){if(Zq.lastIndex=t,Zq.test(this.input)){let r=this.codePointAtPos(Zq.lastIndex);if(!Sg(r)&&r!==92)return!1}return!0}else return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return t===123||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){let r=this.state.type,n=this.startNode(),o=!!(e&2),i=!!(e&4),a=e&1;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(this.lookaheadCharCode()===46)break;return i||this.raise(this.state.strict?W.StrictFunction:this.options.annexB?W.SloppyFunctionAnnexB:W.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(n,!1,!o&&i);case 80:return o||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()?o?this.recordAwaitIfAllowed()||this.raise(W.AwaitUsingNotInAsyncContext,n):this.raise(W.UnexpectedLexicalDeclaration,n):this.raise(W.UnexpectedUsingDeclaration,n),this.next(),this.parseVarStatement(n,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?o||this.raise(W.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(W.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(n,"using");case 100:{if(this.state.containsEsc)break;let p=this.nextTokenStart(),d=this.codePointAtPos(p);if(d!==91&&(!o&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(d,p)&&d!==123))break}case 75:o||this.raise(W.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let p=this.state.value;return this.parseVarStatement(n,p)}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:{let p=this.lookaheadCharCode();if(p===40||p===46)break}case 82:{!(this.optionFlags&8)&&!a&&this.raise(W.UnexpectedImportExport,this.state.startLoc),this.next();let p;return r===83?p=this.parseImport(n):p=this.parseExport(n,t),this.assertModuleNodeAllowed(p),p}default:if(this.isAsyncFunction())return o||this.raise(W.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(n,!0,!o&&i)}let s=this.state.value,c=this.parseExpression();return Qn(r)&&c.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(n,s,c,e):this.parseExpressionStatement(n,c,t)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(W.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(e,t,r){return e&&(t.decorators?.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(W.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do t.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(W.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(W.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let t=this.state.startLoc,r;if(this.match(10)){let n=this.state.startLoc;this.next(),r=this.parseExpression(),this.expect(11),r=this.wrapParenthesis(n,r);let o=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(r,n),this.getPluginOption("decorators","allowCallParenthesized")===!1&&e.expression!==r&&this.raise(W.DecoratorArgumentsOutsideParentheses,o)}else{for(r=this.parseIdentifier(!1);this.eat(16);){let n=this.startNodeAt(t);n.object=r,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),n.computed=!1,r=this.finishNode(n,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(r,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){let 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;rthis.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(Hq);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 t!==null&&this.unexpected(t),this.parseFor(e,null);let r=this.isContextual(100);{let s=this.isAwaitUsing(),c=s||this.isForUsing(),p=r&&this.hasFollowingBindingAtom()||c;if(this.match(74)||this.match(75)||p){let d=this.startNode(),f;s?(f="await using",this.recordAwaitIfAllowed()||this.raise(W.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):f=this.state.value,this.next(),this.parseVar(d,!0,f);let m=this.finishNode(d,"VariableDeclaration"),y=this.match(58);return y&&c&&this.raise(W.ForInUsing,m),(y||this.isContextual(102))&&m.declarations.length===1?this.parseForIn(e,m,t):(t!==null&&this.unexpected(t),this.parseFor(e,m))}}let n=this.isContextual(95),o=new I3,i=this.parseExpression(!0,o),a=this.isContextual(102);if(a&&(r&&this.raise(W.ForOfLet,i),t===null&&n&&i.type==="Identifier"&&this.raise(W.ForOfAsync,i)),a||this.match(58)){this.checkDestructuringPrivate(o),this.toAssignable(i,!0);let s=a?"ForOfStatement":"ForInStatement";return this.checkLVal(i,{type:s}),this.parseForIn(e,i,t)}else this.checkExpressionErrors(o,!0);return t!==null&&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(W.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();let t=e.cases=[];this.expect(5),this.state.labels.push(VJe),this.scope.enter(256);let r;for(let n;!this.match(8);)if(this.match(61)||this.match(65)){let o=this.match(61);r&&this.finishNode(r,"SwitchCase"),t.push(r=this.startNode()),r.consequent=[],this.next(),o?r.test=this.parseExpression():(n&&this.raise(W.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),n=!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(W.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let 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(W.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(Hq),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(W.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(let i of this.state.labels)i.name===t&&this.raise(W.LabelRedeclaration,r,{labelName:t});let o=$ze(this.state.type)?1:this.match(71)?2:null;for(let i=this.state.labels.length-1;i>=0;i--){let a=this.state.labels[i];if(a.statementStart===e.start)a.statementStart=this.sourceToOffsetPos(this.state.start),a.kind=o;else break}return this.state.labels.push({name:t,kind:o,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=n&8?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){let 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 e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,n,o){let i=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(i,t?a:void 0,r,n,o)}parseBlockOrModuleBlockBody(e,t,r,n,o){let i=this.state.strict,a=!1,s=!1;for(;!this.match(n);){let c=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!s){if(this.isValidDirective(c)){let p=this.stmtToDirective(c);t.push(p),!a&&p.value.value==="use strict"&&(a=!0,this.setStrict(!0));continue}s=!0,this.state.strictErrors.clear()}e.push(c)}o?.call(this,a),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){let n=this.match(58);return this.next(),n?r!==null&&this.unexpected(r):e.await=r!==null,t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!n||!this.options.annexB||this.state.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(W.ForInOfLoopInitializer,t,{type:n?"ForInStatement":"ForOfStatement"}),t.type==="AssignmentPattern"&&this.raise(W.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){let o=e.declarations=[];for(e.kind=r;;){let i=this.startNode();if(this.parseVarId(i,r),i.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,i.init===null&&!n&&(i.id.type!=="Identifier"&&!(t&&(this.match(58)||this.isContextual(102)))?this.raise(W.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(r==="const"||r==="using"||r==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(W.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r})),o.push(this.finishNode(i,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){let r=this.parseBindingAtom();t==="using"||t==="await using"?(r.type==="ArrayPattern"||r.type==="ObjectPattern")&&this.raise(W.UsingDeclarationHasBindingPattern,r.loc.start):r.type==="VoidPattern"&&this.raise(W.UnexpectedVoidPattern,r.loc.start),this.checkLVal(r,{type:"VariableDeclarator"},t==="var"?5:8201),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let r=t&2,n=!!(t&1),o=n&&!(t&4),i=!!(t&8);this.initFunction(e,i),this.match(55)&&(r&&this.raise(W.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),n&&(e.id=this.parseFunctionId(o));let a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(A3(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=a,e}parseFunctionId(e){return e||Qn(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(IJe()),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();let 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 e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let r={hadConstructor:!1,hadSuperClass:e},n=[],o=this.startNode();if(o.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(n.length>0)throw this.raise(W.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){n.push(this.parseDecorator());continue}let i=this.startNode();n.length&&(i.decorators=n,this.resetStartLocationFromNode(i,n[0]),n=[]),this.parseClassMember(o,i,r),i.kind==="constructor"&&i.decorators&&i.decorators.length>0&&this.raise(W.DecoratorConstructor,i)}}),this.state.strict=t,this.next(),n.length)throw this.raise(W.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(o,"ClassBody")}parseClassMemberFromModifier(e,t){let r=this.parseIdentifier(!0);if(this.isClassMethod()){let n=t;return n.kind="method",n.computed=!1,n.key=r,n.static=!1,this.pushClassMethod(e,n,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let 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){let n=this.isContextual(106);if(n){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,r,n)}parseClassMemberWithIsStatic(e,t,r,n){let o=t,i=t,a=t,s=t,c=t,p=o,d=o;if(t.static=n,this.parsePropertyNamePrefixOperator(t),this.eat(55)){p.kind="method";let b=this.match(139);if(this.parseClassElementName(p),this.parsePostMemberNameModifiers(p),b){this.pushClassPrivateMethod(e,i,!0,!1);return}this.isNonstaticConstructor(o)&&this.raise(W.ConstructorIsGenerator,o.key),this.pushClassMethod(e,o,!0,!1,!1,!1);return}let f=!this.state.containsEsc&&Qn(this.state.type),m=this.parseClassElementName(t),y=f?m.name:null,g=this.isPrivateName(m),S=this.state.startLoc;if(this.parsePostMemberNameModifiers(d),this.isClassMethod()){if(p.kind="method",g){this.pushClassPrivateMethod(e,i,!1,!1);return}let b=this.isNonstaticConstructor(o),E=!1;b&&(o.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(W.DuplicateConstructor,m),b&&this.hasPlugin("typescript")&&t.override&&this.raise(W.OverrideOnConstructor,m),r.hadConstructor=!0,E=r.hadSuperClass),this.pushClassMethod(e,o,!1,!1,b,E)}else if(this.isClassProperty())g?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,a);else if(y==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(m);let b=this.eat(55);d.optional&&this.unexpected(S),p.kind="method";let E=this.match(139);this.parseClassElementName(p),this.parsePostMemberNameModifiers(d),E?this.pushClassPrivateMethod(e,i,b,!0):(this.isNonstaticConstructor(o)&&this.raise(W.ConstructorIsAsync,o.key),this.pushClassMethod(e,o,b,!0,!1,!1))}else if((y==="get"||y==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(m),p.kind=y;let b=this.match(139);this.parseClassElementName(o),b?this.pushClassPrivateMethod(e,i,!1,!1):(this.isNonstaticConstructor(o)&&this.raise(W.ConstructorIsAccessor,o.key),this.pushClassMethod(e,o,!1,!1,!1,!1)),this.checkGetterSetterParams(o)}else if(y==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(m);let b=this.match(139);this.parseClassElementName(a),this.pushClassAccessorProperty(e,c,b)}else this.isLineTerminator()?g?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,a):this.unexpected()}parseClassElementName(e){let{type:t,value:r}=this.state;if((t===132||t===134)&&e.static&&r==="prototype"&&this.raise(W.StaticPrototype,this.state.startLoc),t===139){r==="constructor"&&this.raise(W.ConstructorClassPrivateField,this.state.startLoc);let n=this.parsePrivateName();return e.key=n,n}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){this.scope.enter(720);let r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let n=t.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,"StaticBlock")),t.decorators?.length&&this.raise(W.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(W.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let 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(W.ConstructorClassField,t.key);let 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,o,i){e.body.push(this.parseMethod(t,r,n,o,i,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,n){let o=this.parseMethod(t,r,n,!1,!1,"ClassPrivateMethod",!0);e.body.push(o);let i=o.kind==="get"?o.static?6:2:o.kind==="set"?o.static?5:1:0;this.declareClassPrivateMethodInScope(o,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(Ipe()),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(Qn(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,n);else if(r||!t)e.id=null;else throw this.raise(W.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let r=this.parseMaybeImportPhase(e,!0),n=this.maybeParseExportDefaultSpecifier(e,r),o=!n||this.eat(12),i=o&&this.eatExportStar(e),a=i&&this.maybeParseExportNamespaceSpecifier(e),s=o&&(!a||this.eat(12)),c=n||i;if(i&&!a){if(n&&this.unexpected(),t)throw this.raise(W.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let p=this.maybeParseExportNamedSpecifiers(e);n&&o&&!i&&!p&&this.unexpected(null,5),a&&s&&this.unexpected(null,98);let d;if(c||p){if(d=!1,t)throw this.raise(W.UnsupportedDecoratorExport,e);this.parseExportFrom(e,c)}else d=this.maybeParseExportDeclaration(e);if(c||p||d){let f=e;if(this.checkExport(f,!0,!1,!!f.source),f.declaration?.type==="ClassDeclaration")this.maybeTakeDecorators(t,f.declaration,f);else if(t)throw this.raise(W.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(f,"ExportNamedDeclaration")}if(this.eat(65)){let f=e,m=this.parseExportDefaultExpression();if(f.declaration=m,m.type==="ClassDeclaration")this.maybeTakeDecorators(t,m,f);else if(t)throw this.raise(W.UnsupportedDecoratorExport,e);return this.checkExport(f,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(f,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",t?.loc.start);let 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)){e.specifiers??(e.specifiers=[]);let t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let t=e;t.specifiers||(t.specifiers=[]);let r=t.exportKind==="type";return t.specifiers.push(...this.parseExportSpecifiers(r)),t.source=null,t.attributes=[],t.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let 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")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(W.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(W.UnsupportedDefaultExport,this.state.startLoc);let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(Qn(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let n=this.nextTokenStart(),o=this.input.charCodeAt(n);if(o===123||this.chStartsBindingIdentifier(o,n)&&!this.input.startsWith("from",n))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),r=this.isUnparsedContextual(t,"from");if(this.input.charCodeAt(t)===44||Qn(this.state.type)&&r)return!0;if(this.match(65)&&r){let n=this.input.charCodeAt(this.nextTokenStartSince(t+4));return n===34||n===39}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(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(W.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(W.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(W.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,n){if(t){if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){let o=e.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!o.extra?.parenthesized&&this.raise(W.ExportDefaultFromAsIdentifier,o)}}else if(e.specifiers?.length)for(let o of e.specifiers){let{exported:i}=o,a=i.type==="Identifier"?i.name:i.value;if(this.checkDuplicateExports(o,a),!n&&o.local){let{local:s}=o;s.type!=="Identifier"?this.raise(W.ExportBindingIsString,o,{localName:s.value,exportName:a}):(this.checkReservedWord(s.name,s.loc.start,!0,!1),this.scope.checkLocalExport(s))}}else if(e.declaration){let o=e.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:i}=o;if(!i)throw new Error("Assertion failure");this.checkDuplicateExports(e,i.name)}else if(o.type==="VariableDeclaration")for(let i of o.declarations)this.checkDeclaration(i.id)}}}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let t of e.properties)this.checkDeclaration(t);else if(e.type==="ArrayPattern")for(let t of e.elements)t&&this.checkDeclaration(t);else e.type==="ObjectProperty"?this.checkDeclaration(e.value):e.type==="RestElement"?this.checkDeclaration(e.argument):e.type==="AssignmentPattern"&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&(t==="default"?this.raise(W.DuplicateDefaultExport,e):this.raise(W.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;let n=this.isContextual(130),o=this.match(134),i=this.startNode();i.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(i,o,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)){let e=this.parseStringLiteral(this.state.value),t=KJe.exec(e.value);return t&&this.raise(W.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions!=null?e.assertions.some(({key:t,value:r})=>r.value==="json"&&(t.type==="Identifier"?t.name==="type":t.value==="type")):!1}checkImportReflection(e){let{specifiers:t}=e,r=t.length===1?t[0].type:null;e.phase==="source"?r!=="ImportDefaultSpecifier"&&this.raise(W.SourcePhaseImportRequiresDefault,t[0].loc.start):e.phase==="defer"?r!=="ImportNamespaceSpecifier"&&this.raise(W.DeferImportRequiresNamespace,t[0].loc.start):e.module&&(r!=="ImportDefaultSpecifier"&&this.raise(W.ImportReflectionNotBinding,t[0].loc.start),e.assertions?.length>0&&this.raise(W.ImportReflectionHasAssertion,t[0].loc.start))}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){let{specifiers:t}=e;if(t!=null){let r=t.find(n=>{let o;if(n.type==="ExportSpecifier"?o=n.local:n.type==="ImportSpecifier"&&(o=n.imported),o!==void 0)return o.type==="Identifier"?o.name!=="default":o.value!=="default"});r!==void 0&&this.raise(W.ImportJSONBindingNotDefault,r.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)}applyImportPhase(e,t,r,n){t||(this.hasPlugin("importReflection")&&(e.module=!1),r==="source"?(this.expectPlugin("sourcePhaseImports",n),e.phase="source"):r==="defer"?(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;let r=this.startNode(),n=this.parseIdentifierName(!0),{type:o}=this.state;return(Ou(o)?o!==98||this.lookaheadCharCode()===102:o!==12)?(this.applyImportPhase(e,t,n,r.loc.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(r,n))}isPrecedingIdImportPhase(e){let{type:t}=this.state;return Qn(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let 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 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);let e=[],t=new Set;do{if(this.match(8))break;let r=this.startNode(),n=this.state.value;if(t.has(n)&&this.raise(W.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(W.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(){let e=[],t=new Set;do{let r=this.startNode();if(r.key=this.parseIdentifier(!0),r.key.name!=="type"&&this.raise(W.ModuleAttributeDifferentFromType,r.key),t.has(r.key.name)&&this.raise(W.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(134))throw this.raise(W.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;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),t=this.parseImportAttributes()}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.raise(W.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}else if(Ou(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let 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(W.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let r=this.startNode(),n=this.match(134),o=this.isContextual(130);r.imported=this.parseModuleExportName();let i=this.parseImportSpecifier(r,n,e.importKind==="type"||e.importKind==="typeof",o,void 0);e.specifiers.push(i)}}parseImportSpecifier(e,t,r,n,o){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:i}=e;if(t)throw this.raise(W.ImportBindingIsString,e,{importName:i.value});this.checkReservedWord(i.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(i))}return this.finishImportSpecifier(e,"ImportSpecifier",o)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}},Ppe=class extends HJe{constructor(e,t,r){let n=kze(e);super(n,t),this.options=n,this.initializeScopes(),this.plugins=r,this.filename=n.sourceFilename,this.startIndex=n.startIndex;let o=0;n.allowAwaitOutsideFunction&&(o|=1),n.allowReturnOutsideFunction&&(o|=2),n.allowImportExportEverywhere&&(o|=8),n.allowSuperOutsideMethod&&(o|=16),n.allowUndeclaredExports&&(o|=64),n.allowNewTargetOutsideFunction&&(o|=4),n.allowYieldOutsideFunction&&(o|=32),n.ranges&&(o|=128),n.tokens&&(o|=256),n.createImportExpressions&&(o|=512),n.createParenthesizedExpressions&&(o|=1024),n.errorRecovery&&(o|=2048),n.attachComment&&(o|=4096),n.annexB&&(o|=8192),this.optionFlags=o}getScopeHandler(){return gU}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=null;let r=this.parseTopLevel(e,t);return r.errors=this.state.errors,r.comments.length=this.state.commentsLen,r}};function Ope(e,t){if(t?.sourceType==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let r=sD(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",sD(t,e).parse()}catch{}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",sD(t,e).parse()}catch{}throw r}}else return sD(t,e).parse()}function Npe(e,t){let r=sD(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function ZJe(e){let t={};for(let r of Object.keys(e))t[r]=mpe(e[r]);return t}var h7t=ZJe(Nze);function sD(e,t){let r=Ppe,n=new Map;if(e?.plugins){for(let o of e.plugins){let i,a;typeof o=="string"?i=o:[i,a]=o,n.has(i)||n.set(i,a||{})}UJe(n),r=WJe(n)}return new r(e,t,n)}var epe=new Map;function WJe(e){let t=[];for(let o of zJe)e.has(o)&&t.push(o);let r=t.join("|"),n=epe.get(r);if(!n){n=Ppe;for(let o of t)n=Cpe[o](n);epe.set(r,n)}return n}function P3(e){return(t,r,n)=>{let o=!!n?.backwards;if(r===!1)return!1;let{length:i}=t,a=r;for(;a>=0&&ae===` +`||e==="\r"||e==="\u2028"||e==="\u2029";function tVe(e,t,r){let n=!!r?.backwards;if(t===!1)return!1;let o=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&o===` +`)return t-2;if(tpe(o))return t-1}else{if(o==="\r"&&e.charAt(t+1)===` +`)return t+2;if(tpe(o))return t+1}return t}var rVe=tVe;function nVe(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?XJe(e,t):t}var oVe=nVe;function iVe(e,t){let r=null,n=t;for(;n!==r;)r=n,n=QJe(e,n),n=eVe(e,n),n=oVe(e,n),n=rVe(e,n);return n}var aVe=iVe;function sVe(e){let t=[];for(let r of e)try{return r()}catch(n){t.push(n)}throw Object.assign(new Error("All combinations failed"),{errors:t})}function cVe(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var Fpe=cVe,SU=(e,t)=>(r,n,...o)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,o),lVe=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},uVe=SU("findLast",function(){if(Array.isArray(this))return lVe}),pVe=uVe;function dVe(e){return this[e<0?this.length+e:e]}var _Ve=SU("at",function(){if(Array.isArray(this)||typeof this=="string")return dVe}),fVe=_Ve;function q_(e){let t=e.range?.[0]??e.start,r=(e.declaration?.decorators??e.decorators)?.[0];return r?Math.min(q_(r),t):t}function td(e){return e.range?.[1]??e.end}function mVe(e){let t=new Set(e);return r=>t.has(r?.type)}var vU=mVe,hVe=vU(["Block","CommentBlock","MultiLine"]),bU=hVe,yVe=vU(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),gVe=yVe,Wq=new WeakMap;function SVe(e){return Wq.has(e)||Wq.set(e,bU(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),Wq.get(e)}var vVe=SVe;function bVe(e){if(!bU(e))return!1;let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var Qq=new WeakMap;function xVe(e){return Qq.has(e)||Qq.set(e,bVe(e)),Qq.get(e)}var rpe=xVe;function EVe(e){if(e.length<2)return;let t;for(let r=e.length-1;r>=0;r--){let n=e[r];if(t&&td(n)===q_(t)&&rpe(n)&&rpe(t)&&(e.splice(r+1,1),n.value+="*//*"+t.value,n.range=[q_(n),td(t)]),!gVe(n)&&!bU(n))throw new TypeError(`Unknown comment type: "${n.type}".`);t=n}}var TVe=EVe;function DVe(e){return e!==null&&typeof e=="object"}var AVe=DVe,iD=null;function lD(e){if(iD!==null&&typeof iD.property){let t=iD;return iD=lD.prototype=null,t}return iD=lD.prototype=e??Object.create(null),new lD}var IVe=10;for(let e=0;e<=IVe;e++)lD();function wVe(e){return lD(e)}function kVe(e,t="type"){wVe(e);function r(n){let o=n[t],i=e[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:n});return i}return r}var CVe=kVe,z=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],PVe={AccessorProperty:z[0],AnyTypeAnnotation:z[1],ArgumentPlaceholder:z[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:z[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:z[3],AsExpression:z[4],AssignmentExpression:z[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:z[6],BigIntLiteral:z[1],BigIntLiteralTypeAnnotation:z[1],BigIntTypeAnnotation:z[1],BinaryExpression:z[5],BindExpression:["object","callee"],BlockStatement:z[7],BooleanLiteral:z[1],BooleanLiteralTypeAnnotation:z[1],BooleanTypeAnnotation:z[1],BreakStatement:z[8],CallExpression:z[9],CatchClause:["param","body"],ChainExpression:z[3],ClassAccessorProperty:z[0],ClassBody:z[10],ClassDeclaration:z[11],ClassExpression:z[11],ClassImplements:z[12],ClassMethod:z[13],ClassPrivateMethod:z[13],ClassPrivateProperty:z[14],ClassProperty:z[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:z[15],ConditionalExpression:z[16],ConditionalTypeAnnotation:z[17],ContinueStatement:z[8],DebuggerStatement:z[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:z[18],DeclareEnum:z[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:z[20],DeclareFunction:["id","predicate"],DeclareHook:z[21],DeclareInterface:z[22],DeclareModule:z[19],DeclareModuleExports:z[23],DeclareNamespace:z[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:z[24],DeclareVariable:z[21],Decorator:z[3],Directive:z[18],DirectiveLiteral:z[1],DoExpression:z[10],DoWhileStatement:z[25],EmptyStatement:z[1],EmptyTypeAnnotation:z[1],EnumBigIntBody:z[26],EnumBigIntMember:z[27],EnumBooleanBody:z[26],EnumBooleanMember:z[27],EnumDeclaration:z[19],EnumDefaultedMember:z[21],EnumNumberBody:z[26],EnumNumberMember:z[27],EnumStringBody:z[26],EnumStringMember:z[27],EnumSymbolBody:z[26],ExistsTypeAnnotation:z[1],ExperimentalRestProperty:z[6],ExperimentalSpreadProperty:z[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:z[28],ExportNamedDeclaration:z[20],ExportNamespaceSpecifier:z[28],ExportSpecifier:["local","exported"],ExpressionStatement:z[3],File:["program"],ForInStatement:z[29],ForOfStatement:z[29],ForStatement:["init","test","update","body"],FunctionDeclaration:z[30],FunctionExpression:z[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:z[15],GenericTypeAnnotation:z[12],HookDeclaration:z[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:z[16],ImportAttribute:z[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:z[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:z[33],ImportSpecifier:["imported","local"],IndexedAccessType:z[34],InferredPredicate:z[1],InferTypeAnnotation:z[35],InterfaceDeclaration:z[22],InterfaceExtends:z[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:z[1],IntersectionTypeAnnotation:z[36],JsExpressionRoot:z[37],JsonRoot:z[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:z[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:z[1],JSXExpressionContainer:z[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:z[1],JSXMemberExpression:z[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:z[1],JSXSpreadAttribute:z[6],JSXSpreadChild:z[3],JSXText:z[1],KeyofTypeAnnotation:z[6],LabeledStatement:["label","body"],Literal:z[1],LogicalExpression:z[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:z[21],MatchExpression:z[39],MatchExpressionCase:z[40],MatchIdentifierPattern:z[21],MatchLiteralPattern:z[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:z[6],MatchStatement:z[39],MatchStatementCase:z[40],MatchUnaryPattern:z[6],MatchWildcardPattern:z[1],MemberExpression:z[38],MetaProperty:["meta","property"],MethodDefinition:z[42],MixedTypeAnnotation:z[1],ModuleExpression:z[10],NeverTypeAnnotation:z[1],NewExpression:z[9],NGChainedExpression:z[43],NGEmptyExpression:z[1],NGMicrosyntax:z[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:z[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:z[32],NGPipeExpression:["left","right","arguments"],NGRoot:z[37],NullableTypeAnnotation:z[23],NullLiteral:z[1],NullLiteralTypeAnnotation:z[1],NumberLiteralTypeAnnotation:z[1],NumberTypeAnnotation:z[1],NumericLiteral:z[1],ObjectExpression:["properties"],ObjectMethod:z[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:z[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:z[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:z[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:z[9],OptionalIndexedAccessType:z[34],OptionalMemberExpression:z[38],ParenthesizedExpression:z[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:z[1],PipelineTopicExpression:z[3],Placeholder:z[1],PrivateIdentifier:z[1],PrivateName:z[21],Program:z[7],Property:z[32],PropertyDefinition:z[14],QualifiedTypeIdentifier:z[44],QualifiedTypeofIdentifier:z[44],RegExpLiteral:z[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:z[6],SatisfiesExpression:z[4],SequenceExpression:z[43],SpreadElement:z[6],StaticBlock:z[10],StringLiteral:z[1],StringLiteralTypeAnnotation:z[1],StringTypeAnnotation:z[1],Super:z[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:z[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:z[1],TemplateLiteral:["quasis","expressions"],ThisExpression:z[1],ThisTypeAnnotation:z[1],ThrowStatement:z[6],TopicReference:z[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:z[45],TSAbstractKeyword:z[1],TSAbstractMethodDefinition:z[32],TSAbstractPropertyDefinition:z[45],TSAnyKeyword:z[1],TSArrayType:z[2],TSAsExpression:z[4],TSAsyncKeyword:z[1],TSBigIntKeyword:z[1],TSBooleanKeyword:z[1],TSCallSignatureDeclaration:z[46],TSClassImplements:z[47],TSConditionalType:z[17],TSConstructorType:z[46],TSConstructSignatureDeclaration:z[46],TSDeclareFunction:z[31],TSDeclareKeyword:z[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:z[26],TSEnumDeclaration:z[19],TSEnumMember:["id","initializer"],TSExportAssignment:z[3],TSExportKeyword:z[1],TSExternalModuleReference:z[3],TSFunctionType:z[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:z[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:z[35],TSInstantiationExpression:z[47],TSInterfaceBody:z[10],TSInterfaceDeclaration:z[22],TSInterfaceHeritage:z[47],TSIntersectionType:z[36],TSIntrinsicKeyword:z[1],TSJSDocAllType:z[1],TSJSDocNonNullableType:z[23],TSJSDocNullableType:z[23],TSJSDocUnknownType:z[1],TSLiteralType:z[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:z[10],TSModuleDeclaration:z[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:z[21],TSNeverKeyword:z[1],TSNonNullExpression:z[3],TSNullKeyword:z[1],TSNumberKeyword:z[1],TSObjectKeyword:z[1],TSOptionalType:z[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:z[23],TSPrivateKeyword:z[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:z[1],TSPublicKeyword:z[1],TSQualifiedName:z[5],TSReadonlyKeyword:z[1],TSRestType:z[23],TSSatisfiesExpression:z[4],TSStaticKeyword:z[1],TSStringKeyword:z[1],TSSymbolKeyword:z[1],TSTemplateLiteralType:["quasis","types"],TSThisType:z[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:z[23],TSTypeAssertion:z[4],TSTypeLiteral:z[26],TSTypeOperator:z[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:z[48],TSTypeParameterInstantiation:z[48],TSTypePredicate:z[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:z[1],TSUnionType:z[36],TSUnknownKeyword:z[1],TSVoidKeyword:z[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:z[24],TypeAnnotation:z[23],TypeCastExpression:z[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:z[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:z[48],TypeParameterInstantiation:z[48],TypePredicate:z[49],UnaryExpression:z[6],UndefinedTypeAnnotation:z[1],UnionTypeAnnotation:z[36],UnknownTypeAnnotation:z[1],UpdateExpression:z[6],V8IntrinsicIdentifier:z[1],VariableDeclaration:["declarations"],VariableDeclarator:z[27],Variance:z[1],VoidPattern:z[1],VoidTypeAnnotation:z[1],WhileStatement:z[25],WithStatement:["object","body"],YieldExpression:z[6]},OVe=CVe(PVe),NVe=OVe;function w3(e,t){if(!AVe(e))return e;if(Array.isArray(e)){for(let n=0;ny<=d);f=m&&n.slice(m,d).trim().length===0}return f?void 0:(p.extra={...p.extra,parenthesized:!0},p)}case"TemplateLiteral":if(c.expressions.length!==c.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(r==="flow"||r==="hermes"||r==="espree"||r==="typescript"||i){let p=q_(c)+1,d=td(c)-(c.tail?1:2);c.range=[p,d]}break;case"VariableDeclaration":{let p=fVe(0,c.declarations,-1);p?.init&&n[td(p)]!==";"&&(c.range=[q_(c),td(p)]);break}case"TSParenthesizedType":return c.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(c.types.length===1)return c.types[0];break;case"ImportExpression":r==="hermes"&&c.attributes&&!c.options&&(c.options=c.attributes);break}},onLeave(c){switch(c.type){case"LogicalExpression":if(Rpe(c))return oU(c);break;case"TSImportType":!c.source&&c.argument.type==="TSLiteralType"&&(c.source=c.argument.literal,delete c.argument);break}}}),e}function Rpe(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function oU(e){return Rpe(e)?oU({type:"LogicalExpression",operator:e.operator,left:oU({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[q_(e.left),td(e.right.left)]}),right:e.right.right,range:[q_(e),td(e)]}):e}var LVe=RVe;function $Ve(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var Lpe=$Ve,npe="Unexpected parseExpression() input: ";function MVe(e){let{message:t,loc:r,reasonCode:n}=e;if(!r)return e;let{line:o,column:i}=r,a=e;(n==="MissingPlugin"||n==="MissingOneOfPlugins")&&(t="Unexpected token.",a=void 0);let s=` (${o}:${i})`;return t.endsWith(s)&&(t=t.slice(0,-s.length)),t.startsWith(npe)&&(t=t.slice(npe.length)),Lpe(t,{loc:{start:{line:o,column:i+1}},cause:a})}var $pe=MVe,jVe=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},BVe=SU("replaceAll",function(){if(typeof this=="string")return jVe}),E3=BVe,qVe=/\*\/$/,UVe=/^\/\*\*?/,zVe=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,JVe=/(^|\s+)\/\/([^\n\r]*)/g,ope=/^(\r?\n)+/,VVe=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ipe=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,KVe=/(\r?\n|^) *\* ?/g,GVe=[];function HVe(e){let t=e.match(zVe);return t?t[0].trimStart():""}function ZVe(e){e=E3(0,e.replace(UVe,"").replace(qVe,""),KVe,"$1");let t="";for(;t!==e;)t=e,e=E3(0,e,VVe,` $1 $2 -`);e=e.replace(rpe,"").trimEnd();let r=Object.create(null),n=b3(0,e,npe,"").replace(rpe,"").trimEnd(),o;for(;o=npe.exec(e);){let i=b3(0,o[2],UJe,"");if(typeof r[o[1]]=="string"||Array.isArray(r[o[1]])){let a=r[o[1]];r[o[1]]=[...JJe,...Array.isArray(a)?a:[a],i]}else r[o[1]]=i}return{comments:n,pragmas:r}}var HJe=["noformat","noprettier"],ZJe=["format","prettier"];function Lpe(e){let t=Ope(e);t&&(e=e.slice(t.length+1));let r=KJe(e),{pragmas:n,comments:o}=GJe(r);return{shebang:t,text:e,pragmas:n,comments:o}}function WJe(e){let{pragmas:t}=Lpe(e);return ZJe.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function QJe(e){let{pragmas:t}=Lpe(e);return HJe.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function XJe(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:WJe,hasIgnorePragma:QJe,locStart:j_,locEnd:ed,...e}}var cD=XJe,vU="module",$pe="commonjs";function YJe(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return vU;if(/\.(?:cjs|cts)$/iu.test(e))return $pe}}function eKe(e,t){let{type:r="JsExpressionRoot",rootMarker:n,text:o}=t,{tokens:i,comments:a}=e;return delete e.tokens,delete e.comments,{tokens:i,comments:a,type:r,node:e,range:[0,o.length],rootMarker:n}}var Mpe=eKe,Bv=e=>cD(iKe(e)),tKe={sourceType:vU,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],["discardBinding",{syntaxType:"void"}]],tokens:!1,ranges:!1},ope="v8intrinsic",ipe=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],B_=(e,t=tKe)=>({...t,plugins:[...t.plugins,...e]}),rKe=/@(?:no)?flow\b/u;function nKe(e,t){if(t?.endsWith(".js.flow"))return!0;let r=Ope(e);r&&(e=e.slice(r.length));let n=oJe(e,0);return n!==!1&&(e=e.slice(0,n)),rKe.test(e)}function oKe(e,t,r){let n=e(t,r),o=n.errors.find(i=>!aKe.has(i.reasonCode));if(o)throw o;return n}function iKe({isExpression:e=!1,optionsCombinations:t}){return(r,n={})=>{let{filepath:o}=n;if(typeof o!="string"&&(o=void 0),(n.parser==="babel"||n.parser==="__babel_estree")&&nKe(r,o))return n.parser="babel-flow",Bpe.parse(r,n);let i=t,a=n.__babelSourceType??YJe(o);a&&a!==vU&&(i=i.map(d=>({...d,sourceType:a,...a===$pe?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let s=/%[A-Z]/u.test(r);r.includes("|>")?i=(s?[...ipe,ope]:ipe).flatMap(d=>i.map(f=>B_([d],f))):s&&(i=i.map(d=>B_([ope],d)));let c=e?Ppe:Cpe,p;try{p=iJe(i.map(d=>()=>oKe(c,r,d)))}catch({errors:[d]}){throw Rpe(d)}return e&&(p=Mpe(p,{text:r,rootMarker:n.rootMarker})),FJe(p,{text:r})}}var aKe=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert","DeclarationMissingInitializer"]),jpe=[B_(["jsx"])],ape=Bv({optionsCombinations:jpe}),spe=Bv({optionsCombinations:[B_(["jsx","typescript"]),B_(["typescript"])]}),cpe=Bv({isExpression:!0,optionsCombinations:[B_(["jsx"])]}),lpe=Bv({isExpression:!0,optionsCombinations:[B_(["typescript"])]}),Bpe=Bv({optionsCombinations:[B_(["jsx",["flow",{all:!0}],"flowComments"])]}),sKe=Bv({optionsCombinations:jpe.map(e=>B_(["estree"],e))}),qpe={};nU(qpe,{json:()=>uKe,"json-stringify":()=>_Ke,json5:()=>pKe,jsonc:()=>dKe});function cKe(e){return Array.isArray(e)&&e.length>0}var Upe=cKe,zpe={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function lKe(e){let t=Cpe(e,zpe),{program:r}=t;if(r.body.length===0&&r.directives.length===0&&!r.interpreter)return t}function C3(e,t={}){let{allowComments:r=!0,allowEmpty:n=!1}=t,o;try{o=Ppe(e,zpe)}catch(i){if(n&&i.code==="BABEL_PARSER_SYNTAX_ERROR"&&i.reasonCode==="ParseExpressionEmptyInput")try{o=lKe(e)}catch{}if(!o)throw Rpe(i)}if(!r&&Upe(o.comments))throw Bm(o.comments[0],"Comment");return o=Mpe(o,{type:"JsonRoot",text:e}),o.node.type==="File"?delete o.node:Lv(o.node),o}function Bm(e,t){let[r,n]=[e.loc.start,e.loc.end].map(({line:o,column:i})=>({line:o,column:i+1}));return Fpe(`${t} is not allowed in JSON.`,{loc:{start:r,end:n}})}function Lv(e){switch(e.type){case"ArrayExpression":for(let t of e.elements)t!==null&&Lv(t);return;case"ObjectExpression":for(let t of e.properties)Lv(t);return;case"ObjectProperty":if(e.computed)throw Bm(e.key,"Computed key");if(e.shorthand)throw Bm(e.key,"Shorthand property");e.key.type!=="Identifier"&&Lv(e.key),Lv(e.value);return;case"UnaryExpression":{let{operator:t,argument:r}=e;if(t!=="+"&&t!=="-")throw Bm(e,`Operator '${e.operator}'`);if(r.type==="NumericLiteral"||r.type==="Identifier"&&(r.name==="Infinity"||r.name==="NaN"))return;throw Bm(r,`Operator '${t}' before '${r.type}'`)}case"Identifier":if(e.name!=="Infinity"&&e.name!=="NaN"&&e.name!=="undefined")throw Bm(e,`Identifier '${e.name}'`);return;case"TemplateLiteral":if(Upe(e.expressions))throw Bm(e.expressions[0],"'TemplateLiteral' with expression");for(let t of e.quasis)Lv(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw Bm(e,`'${e.type}'`)}}var uKe=cD({parse:e=>C3(e),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),pKe=cD(e=>C3(e)),dKe=cD(e=>C3(e,{allowEmpty:!0})),_Ke=cD({parse:e=>C3(e,{allowComments:!1}),astFormat:"estree-json"}),fKe={...upe,...qpe};var mKe=Object.defineProperty,ZU=(e,t)=>{for(var r in t)mKe(e,r,{get:t[r],enumerable:!0})},WU={};ZU(WU,{languages:()=>gYe,options:()=>hYe,printers:()=>yYe});var hKe=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],vde={};ZU(vde,{canAttachComment:()=>LGe,embed:()=>IZe,features:()=>cYe,getVisitorKeys:()=>wde,handleComments:()=>yHe,hasPrettierIgnore:()=>xz,insertPragma:()=>UZe,isBlockComment:()=>Mu,isGap:()=>SHe,massageAstNode:()=>CGe,print:()=>gde,printComment:()=>KZe,printPrettierIgnored:()=>gde,willPrintOwnComments:()=>xHe});var QU=(e,t)=>(r,n,...o)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,o),yKe=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},gKe=QU("replaceAll",function(){if(typeof this=="string")return yKe}),da=gKe;function SKe(e){return this[e<0?this.length+e:e]}var vKe=QU("at",function(){if(Array.isArray(this)||typeof this=="string")return SKe}),Jn=vKe;function bKe(e){return e!==null&&typeof e=="object"}var bde=bKe;function*xKe(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,o=i=>bde(i)&&n(i);for(let i of r(e)){let a=e[i];if(Array.isArray(a))for(let s of a)o(s)&&(yield s);else o(a)&&(yield a)}}function*EKe(e,t){let r=[e];for(let n=0;n/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function AKe(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function wKe(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var IKe="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07",kKe=/[^\x20-\x7F]/u,CKe=new Set(IKe);function PKe(e){if(!e)return 0;if(!kKe.test(e))return e.length;e=e.replace(DKe(),r=>CKe.has(r)?" ":" ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=AKe(n)||wKe(n)?2:1)}return t}var Vv=PKe;function z3(e){return(t,r,n)=>{let o=!!n?.backwards;if(r===!1)return!1;let{length:i}=t,a=r;for(;a>=0&&ae===` -`||e==="\r"||e==="\u2028"||e==="\u2029";function FKe(e,t,r){let n=!!r?.backwards;if(t===!1)return!1;let o=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&o===` -`)return t-2;if(Vpe(o))return t-1}else{if(o==="\r"&&e.charAt(t+1)===` -`)return t+2;if(Vpe(o))return t+1}return t}var Kv=FKe;function RKe(e,t,r={}){let n=Jv(e,r.backwards?t-1:t,r),o=Kv(e,n,r);return n!==o}var nc=RKe;function LKe(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r0}var jo=jKe,BKe=()=>{},Sg=BKe,xde=Object.freeze({character:"'",codePoint:39}),Ede=Object.freeze({character:'"',codePoint:34}),qKe=Object.freeze({preferred:xde,alternate:Ede}),UKe=Object.freeze({preferred:Ede,alternate:xde});function zKe(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?qKe:UKe,{length:o}=e,i=0,a=0;for(let s=0;sa?n:r).character}var Tde=zKe,VKe=/\\(["'\\])|(["'])/gu;function JKe(e,t){let r=t==='"'?"'":'"',n=da(0,e,VKe,(o,i,a)=>i?i===r?r:o:a===t?"\\"+a:a);return t+n+t}var KKe=JKe;function GKe(e,t){Sg(/^(?["']).*\k$/su.test(e));let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":Tde(r,t.singleQuote);return e.charAt(0)===n?e:KKe(r,n)}var Gv=GKe,Dde=e=>Number.isInteger(e)&&e>=0;function Xr(e){let t=e.range?.[0]??e.start,r=(e.declaration?.decorators??e.decorators)?.[0];return r?Math.min(Xr(r),t):t}function Jr(e){return e.range?.[1]??e.end}function V3(e,t){let r=Xr(e);return Dde(r)&&r===Xr(t)}function HKe(e,t){let r=Jr(e);return Dde(r)&&r===Jr(t)}function ZKe(e,t){return V3(e,t)&&HKe(e,t)}var lD=null;function dD(e){if(lD!==null&&typeof lD.property){let t=lD;return lD=dD.prototype=null,t}return lD=dD.prototype=e??Object.create(null),new dD}var WKe=10;for(let e=0;e<=WKe;e++)dD();function QKe(e){return dD(e)}function XKe(e,t="type"){QKe(e);function r(n){let o=n[t],i=e[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:n});return i}return r}var Ade=XKe,V=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],YKe={AccessorProperty:V[0],AnyTypeAnnotation:V[1],ArgumentPlaceholder:V[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:V[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:V[3],AsExpression:V[4],AssignmentExpression:V[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:V[6],BigIntLiteral:V[1],BigIntLiteralTypeAnnotation:V[1],BigIntTypeAnnotation:V[1],BinaryExpression:V[5],BindExpression:["object","callee"],BlockStatement:V[7],BooleanLiteral:V[1],BooleanLiteralTypeAnnotation:V[1],BooleanTypeAnnotation:V[1],BreakStatement:V[8],CallExpression:V[9],CatchClause:["param","body"],ChainExpression:V[3],ClassAccessorProperty:V[0],ClassBody:V[10],ClassDeclaration:V[11],ClassExpression:V[11],ClassImplements:V[12],ClassMethod:V[13],ClassPrivateMethod:V[13],ClassPrivateProperty:V[14],ClassProperty:V[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:V[15],ConditionalExpression:V[16],ConditionalTypeAnnotation:V[17],ContinueStatement:V[8],DebuggerStatement:V[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:V[18],DeclareEnum:V[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:V[20],DeclareFunction:["id","predicate"],DeclareHook:V[21],DeclareInterface:V[22],DeclareModule:V[19],DeclareModuleExports:V[23],DeclareNamespace:V[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:V[24],DeclareVariable:V[21],Decorator:V[3],Directive:V[18],DirectiveLiteral:V[1],DoExpression:V[10],DoWhileStatement:V[25],EmptyStatement:V[1],EmptyTypeAnnotation:V[1],EnumBigIntBody:V[26],EnumBigIntMember:V[27],EnumBooleanBody:V[26],EnumBooleanMember:V[27],EnumDeclaration:V[19],EnumDefaultedMember:V[21],EnumNumberBody:V[26],EnumNumberMember:V[27],EnumStringBody:V[26],EnumStringMember:V[27],EnumSymbolBody:V[26],ExistsTypeAnnotation:V[1],ExperimentalRestProperty:V[6],ExperimentalSpreadProperty:V[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:V[28],ExportNamedDeclaration:V[20],ExportNamespaceSpecifier:V[28],ExportSpecifier:["local","exported"],ExpressionStatement:V[3],File:["program"],ForInStatement:V[29],ForOfStatement:V[29],ForStatement:["init","test","update","body"],FunctionDeclaration:V[30],FunctionExpression:V[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:V[15],GenericTypeAnnotation:V[12],HookDeclaration:V[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:V[16],ImportAttribute:V[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:V[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:V[33],ImportSpecifier:["imported","local"],IndexedAccessType:V[34],InferredPredicate:V[1],InferTypeAnnotation:V[35],InterfaceDeclaration:V[22],InterfaceExtends:V[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:V[1],IntersectionTypeAnnotation:V[36],JsExpressionRoot:V[37],JsonRoot:V[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:V[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:V[1],JSXExpressionContainer:V[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:V[1],JSXMemberExpression:V[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:V[1],JSXSpreadAttribute:V[6],JSXSpreadChild:V[3],JSXText:V[1],KeyofTypeAnnotation:V[6],LabeledStatement:["label","body"],Literal:V[1],LogicalExpression:V[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:V[21],MatchExpression:V[39],MatchExpressionCase:V[40],MatchIdentifierPattern:V[21],MatchLiteralPattern:V[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:V[6],MatchStatement:V[39],MatchStatementCase:V[40],MatchUnaryPattern:V[6],MatchWildcardPattern:V[1],MemberExpression:V[38],MetaProperty:["meta","property"],MethodDefinition:V[42],MixedTypeAnnotation:V[1],ModuleExpression:V[10],NeverTypeAnnotation:V[1],NewExpression:V[9],NGChainedExpression:V[43],NGEmptyExpression:V[1],NGMicrosyntax:V[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:V[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:V[32],NGPipeExpression:["left","right","arguments"],NGRoot:V[37],NullableTypeAnnotation:V[23],NullLiteral:V[1],NullLiteralTypeAnnotation:V[1],NumberLiteralTypeAnnotation:V[1],NumberTypeAnnotation:V[1],NumericLiteral:V[1],ObjectExpression:["properties"],ObjectMethod:V[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:V[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:V[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:V[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:V[9],OptionalIndexedAccessType:V[34],OptionalMemberExpression:V[38],ParenthesizedExpression:V[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:V[1],PipelineTopicExpression:V[3],Placeholder:V[1],PrivateIdentifier:V[1],PrivateName:V[21],Program:V[7],Property:V[32],PropertyDefinition:V[14],QualifiedTypeIdentifier:V[44],QualifiedTypeofIdentifier:V[44],RegExpLiteral:V[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:V[6],SatisfiesExpression:V[4],SequenceExpression:V[43],SpreadElement:V[6],StaticBlock:V[10],StringLiteral:V[1],StringLiteralTypeAnnotation:V[1],StringTypeAnnotation:V[1],Super:V[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:V[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:V[1],TemplateLiteral:["quasis","expressions"],ThisExpression:V[1],ThisTypeAnnotation:V[1],ThrowStatement:V[6],TopicReference:V[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:V[45],TSAbstractKeyword:V[1],TSAbstractMethodDefinition:V[32],TSAbstractPropertyDefinition:V[45],TSAnyKeyword:V[1],TSArrayType:V[2],TSAsExpression:V[4],TSAsyncKeyword:V[1],TSBigIntKeyword:V[1],TSBooleanKeyword:V[1],TSCallSignatureDeclaration:V[46],TSClassImplements:V[47],TSConditionalType:V[17],TSConstructorType:V[46],TSConstructSignatureDeclaration:V[46],TSDeclareFunction:V[31],TSDeclareKeyword:V[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:V[26],TSEnumDeclaration:V[19],TSEnumMember:["id","initializer"],TSExportAssignment:V[3],TSExportKeyword:V[1],TSExternalModuleReference:V[3],TSFunctionType:V[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:V[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:V[35],TSInstantiationExpression:V[47],TSInterfaceBody:V[10],TSInterfaceDeclaration:V[22],TSInterfaceHeritage:V[47],TSIntersectionType:V[36],TSIntrinsicKeyword:V[1],TSJSDocAllType:V[1],TSJSDocNonNullableType:V[23],TSJSDocNullableType:V[23],TSJSDocUnknownType:V[1],TSLiteralType:V[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:V[10],TSModuleDeclaration:V[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:V[21],TSNeverKeyword:V[1],TSNonNullExpression:V[3],TSNullKeyword:V[1],TSNumberKeyword:V[1],TSObjectKeyword:V[1],TSOptionalType:V[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:V[23],TSPrivateKeyword:V[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:V[1],TSPublicKeyword:V[1],TSQualifiedName:V[5],TSReadonlyKeyword:V[1],TSRestType:V[23],TSSatisfiesExpression:V[4],TSStaticKeyword:V[1],TSStringKeyword:V[1],TSSymbolKeyword:V[1],TSTemplateLiteralType:["quasis","types"],TSThisType:V[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:V[23],TSTypeAssertion:V[4],TSTypeLiteral:V[26],TSTypeOperator:V[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:V[48],TSTypeParameterInstantiation:V[48],TSTypePredicate:V[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:V[1],TSUnionType:V[36],TSUnknownKeyword:V[1],TSVoidKeyword:V[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:V[24],TypeAnnotation:V[23],TypeCastExpression:V[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:V[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:V[48],TypeParameterInstantiation:V[48],TypePredicate:V[49],UnaryExpression:V[6],UndefinedTypeAnnotation:V[1],UnionTypeAnnotation:V[36],UnknownTypeAnnotation:V[1],UpdateExpression:V[6],V8IntrinsicIdentifier:V[1],VariableDeclaration:["declarations"],VariableDeclarator:V[27],Variance:V[1],VoidPattern:V[1],VoidTypeAnnotation:V[1],WhileStatement:V[25],WithStatement:["object","body"],YieldExpression:V[6]},eGe=Ade(YKe),wde=eGe;function tGe(e){let t=new Set(e);return r=>t.has(r?.type)}var wr=tGe;function rGe(e){return e.extra?.raw??e.raw}var oc=rGe,nGe=wr(["Block","CommentBlock","MultiLine"]),Mu=nGe,oGe=wr(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Ide=oGe,iGe=wr(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),bD=iGe;function aGe(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let o=r[n];if(n===0)return e.type==="Identifier"&&e.name===o;if(n===1&&e.type==="MetaProperty"&&e.property.type==="Identifier"&&e.property.name===o){e=e.meta;continue}if(e.type==="MemberExpression"&&!e.optional&&!e.computed&&e.property.type==="Identifier"&&e.property.name===o){e=e.object;continue}return!1}}function sGe(e,t){return t.some(r=>aGe(e,r))}var tz=sGe;function cGe({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var kde=cGe;function lGe({node:e,parent:t}){return e?.type!=="EmptyStatement"?!1:t.type==="IfStatement"?t.consequent===e||t.alternate===e:t.type==="DoWhileStatement"||t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"||t.type==="LabeledStatement"||t.type==="WithStatement"||t.type==="WhileStatement"?t.body===e:!1}var rz=lGe;function FU(e,t){return t(e)||TKe(e,{getVisitorKeys:wde,predicate:t})}function nz(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||jn(e)||Mo(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||Nu(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function uGe(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function Cde(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var pGe=wr(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),Fa=wr(["ArrayExpression"]),Ru=wr(["ObjectExpression"]);function dGe(e){return e.type==="LogicalExpression"&&e.operator==="??"}function nd(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function _Ge(e){return e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean"}function Pde(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&nd(e.argument)}function fa(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function Ode(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var oz=wr(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),fGe=wr(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),Jm=wr(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),hD=wr(["FunctionExpression","ArrowFunctionExpression"]);function mGe(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function bU(e){return jn(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var _a=wr(["JSXElement","JSXFragment"]);function xD(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function Nde(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function hGe(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!V3(e,e.typeAnnotation)}var U_=wr(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function zv(e){return Mo(e)||e.type==="BindExpression"&&!!e.object}var yGe=wr(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function iz(e){return kde(e)||Ide(e)||yGe(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function gGe(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var SGe=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function vGe(e){return tz(e,SGe)}function J3(e,t){if(e?.type!=="CallExpression"||e.optional)return!1;let r=qc(e);if(r.length===1){if(bU(e)&&J3(t))return hD(r[0]);if(gGe(e.callee))return bU(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||fa(r[0]))&&vGe(e.callee))return r[2]&&!nd(r[2])?!1:(r.length===2?hD(r[1]):mGe(r[1])&&ss(r[1]).length<=1)||bU(r[1]);return!1}var Fde=e=>t=>(t?.type==="ChainExpression"&&(t=t.expression),e(t)),jn=Fde(wr(["CallExpression","OptionalCallExpression"])),Mo=Fde(wr(["MemberExpression","OptionalMemberExpression"]));function Jpe(e,t=5){return Rde(e,t)<=t}function Rde(e,t){let r=0;for(let n in e){let o=e[n];if(bde(o)&&typeof o.type=="string"&&(r++,r+=Rde(o,t-r)),r>t)return r}return r}var bGe=.25;function az(e,t){let{printWidth:r}=t;if(rt(e))return!1;let n=r*bGe;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=n||Pde(e)&&!rt(e.argument))return!0;let o=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return o?o.length<=n:fa(e)?Gv(oc(e),t).length<=n:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes(` -`):e.type==="UnaryExpression"?az(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=n-2:oz(e)}function Fu(e,t){return _a(t)?K3(t):rt(t,St.Leading,r=>nc(e,Jr(r)))}function Kpe(e){return e.quasis.some(t=>t.value.raw.includes(` -`))}function Lde(e,t){return(e.type==="TemplateLiteral"&&Kpe(e)||e.type==="TaggedTemplateExpression"&&Kpe(e.quasi))&&!nc(t,Xr(e),{backwards:!0})}function $de(e){if(!rt(e))return!1;let t=Jn(0,yg(e,St.Dangling),-1);return t&&!Mu(t)}function xGe(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(hD(r)){if(t+=1,t>1)return!0}else if(jn(r)){for(let n of qc(r))if(hD(n))return!0}return!1}function Mde(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&jn(t)&&jn(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var EGe=new Set(["!","-","+","~"]);function Ou(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return Ou(e.expression,t);let r=n=>Ou(n,t-1);if(Ode(e))return Vv(e.pattern??e.regex.pattern)<=5;if(oz(e)||fGe(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(` -`))&&e.expressions.every(r);if(Ru(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(Fa(e))return e.elements.every(n=>n===null||r(n));if(Zv(e)){if(e.type==="ImportExpression"||Ou(e.callee,t)){let n=qc(e);return n.length<=t&&n.every(r)}return!1}return Mo(e)?Ou(e.object,t)&&Ou(e.property,t):e.type==="UnaryExpression"&&EGe.has(e.operator)||e.type==="UpdateExpression"?Ou(e.argument,t):!1}function sd(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function Ps(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return Ps(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return Ps(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:Ps(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:Ps(e.callee,t);case"ConditionalExpression":return Ps(e.test,t);case"UpdateExpression":return!e.prefix&&Ps(e.argument,t);case"BindExpression":return e.object&&Ps(e.object,t);case"SequenceExpression":return Ps(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Ps(e.expression,t);default:return t(e)}}var Gpe={"==":!0,"!=":!0,"===":!0,"!==":!0},P3={"*":!0,"/":!0,"%":!0},RU={">>":!0,">>>":!0,"<<":!0};function sz(e,t){return!(M3(t)!==M3(e)||e==="**"||Gpe[e]&&Gpe[t]||t==="%"&&P3[e]||e==="%"&&P3[t]||t!==e&&P3[t]&&P3[e]||RU[e]&&RU[t])}var TGe=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function M3(e){return TGe.get(e)}function DGe(e){return!!RU[e]||e==="|"||e==="^"||e==="&"}function AGe(e){if(e.rest)return!0;let t=ss(e);return Jn(0,t,-1)?.type==="RestElement"}var xU=new WeakMap;function ss(e){if(xU.has(e))return xU.get(e);let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),xU.set(e,t),t}function wGe(e,t){let{node:r}=e,n=0,o=()=>t(e,n++);r.this&&e.call(o,"this"),e.each(o,"params"),r.rest&&e.call(o,"rest")}var EU=new WeakMap;function qc(e){if(EU.has(e))return EU.get(e);if(e.type==="ChainExpression")return qc(e.expression);let t;return e.type==="ImportExpression"||e.type==="TSImportType"?(t=[e.source],e.options&&t.push(e.options)):e.type==="TSExternalModuleReference"?t=[e.expression]:t=e.arguments,EU.set(e,t),t}function j3(e,t){let{node:r}=e;if(r.type==="ChainExpression")return e.call(()=>j3(e,t),"expression");r.type==="ImportExpression"||r.type==="TSImportType"?(e.call(()=>t(e,0),"source"),r.options&&e.call(()=>t(e,1),"options")):r.type==="TSExternalModuleReference"?e.call(()=>t(e,0),"expression"):e.each(t,"arguments")}function Hpe(e,t){let r=[];if(e.type==="ChainExpression"&&(e=e.expression,r.push("expression")),e.type==="ImportExpression"||e.type==="TSImportType"){if(t===0||t===(e.options?-2:-1))return[...r,"source"];if(e.options&&(t===1||t===-1))return[...r,"options"];throw new RangeError("Invalid argument index")}else if(e.type==="TSExternalModuleReference"){if(t===0||t===-1)return[...r,"expression"]}else if(t<0&&(t=e.arguments.length+t),t>=0&&t{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,o)=>!(e&St.Leading&&!r.leading||e&St.Trailing&&!r.trailing||e&St.Dangling&&(r.leading||r.trailing)||e&St.Block&&!Mu(r)||e&St.Line&&!bD(r)||e&St.First&&n!==0||e&St.Last&&n!==o.length-1||e&St.PrettierIgnore&&!Hv(r)||t&&!t(r))};function rt(e,t,r){if(!jo(e?.comments))return!1;let n=jde(t,r);return n?e.comments.some(n):!0}function yg(e,t,r){if(!Array.isArray(e?.comments))return[];let n=jde(t,r);return n?e.comments.filter(n):e.comments}var cd=(e,{originalText:t})=>ez(t,Jr(e));function Zv(e){return jn(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function Gm(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!xD(e))}var Nu=wr(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),od=wr(["TSUnionType","UnionTypeAnnotation"]),ED=wr(["TSIntersectionType","IntersectionTypeAnnotation"]),Km=wr(["TSConditionalType","ConditionalTypeAnnotation"]),IGe=e=>e?.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const",LU=wr(["TSTypeAliasDeclaration","TypeAlias"]);function Bde({key:e,parent:t}){return!(e==="types"&&od(t)||e==="types"&&ED(t))}var kGe=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),qv=e=>{for(let t of e.quasis)delete t.value};function qde(e,t,r){if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="Literal")&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"&&!rz({node:e,parent:r})||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute")&&e.key&&!e.computed){let{key:o}=e;fa(o)||nd(o)?t.key=String(o.value):o.type==="Identifier"&&(t.key=o.name)}if(e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(o=>o.type==="JSXAttribute"&&o.name.name==="jsx"))for(let{type:o,expression:i}of t.children)o==="JSXExpressionContainer"&&i.type==="TemplateLiteral"&&qv(i);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&qv(t.value.expression),e.type==="JSXAttribute"&&e.value?.type==="Literal"&&/["']|"|'/u.test(e.value.value)&&(t.value.value=da(0,e.value.value,/["']|"|'/gu,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let o=e.expression.arguments[0].properties;for(let[i,a]of t.expression.arguments[0].properties.entries())switch(o[i].key.name){case"styles":Fa(a.value)&&qv(a.value.elements[0]);break;case"template":a.value.type==="TemplateLiteral"&&qv(a.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&qv(t.quasi),e.type==="TemplateLiteral"&&qv(t),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression")}qde.ignoredProperties=kGe;var CGe=qde,PGe=wr(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),OGe=(e,[t])=>t?.type==="ComponentParameter"&&t.shorthand&&t.name===e&&t.local!==t.name||t?.type==="MatchObjectPatternProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type==="ObjectProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type==="Property"&&t.shorthand&&t.key===e&&!xD(t)&&t.value!==t.key,NGe=(e,[t])=>!!(e.type==="FunctionExpression"&&t.type==="MethodDefinition"&&t.value===e&&ss(e).length===0&&!e.returnType&&!jo(e.typeParameters)&&e.body),Zpe=(e,[t])=>t?.typeAnnotation===e&&IGe(t),FGe=(e,[t,...r])=>Zpe(e,[t])||t?.typeName===e&&Zpe(t,r);function RGe(e,t){return PGe(e)||OGe(e,t)||NGe(e,t)?!1:e.type==="EmptyStatement"?rz({node:e,parent:t[0]}):!(FGe(e,t)||e.type==="TSTypeAnnotation"&&t[0].type==="TSPropertySignature")}var LGe=RGe;function $Ge(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function cz(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=$Ge(e)}function Ni(e,t){t.leading=!0,t.trailing=!1,cz(e,t)}function Mc(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),cz(e,t)}function ni(e,t){t.leading=!1,t.trailing=!0,cz(e,t)}function MGe(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Jv(e,n),n=XU(e,n),n=YU(e,n),n=Kv(e,n);return n}var Qv=MGe;function jGe(e,t){let r=Qv(e,t);return r===!1?"":e.charAt(r)}var Lu=jGe;function BGe(e,t,r){for(let n=t;nbD(e)||!jc(t,Xr(e),Jr(e));function UGe(e){return[Qde,Vde,Hde,YGe,KGe,uz,pz,zde,Jde,oHe,tHe,rHe,_z,Wde,iHe,Kde,Zde,dz,GGe,dHe,Xde,fz].some(t=>t(e))}function zGe(e){return[JGe,Hde,Vde,Wde,uz,pz,zde,Jde,Zde,eHe,nHe,_z,cHe,dz,uHe,pHe,_He,Xde,mHe,fHe,fz].some(t=>t(e))}function VGe(e){return[Qde,uz,pz,XGe,Kde,_z,QGe,WGe,dz,lHe,fz].some(t=>t(e))}function vg(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?Ni(r,t):Mc(e,t)}function $U(e,t){e.type==="BlockStatement"?vg(e,t):Ni(e,t)}function JGe({comment:e,followingNode:t}){return t&&Ude(e)?(Ni(t,e),!0):!1}function uz({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o}){if(r?.type!=="IfStatement"||!n)return!1;if(Lu(o,Jr(e))===")")return ni(t,e),!0;if(n.type==="BlockStatement"&&n===r.consequent&&Xr(e)>=Jr(t)&&Jr(e)<=Xr(n))return Ni(n,e),!0;if(t===r.consequent&&n===r.alternate){let i=Qv(o,Jr(r.consequent));if(n.type==="BlockStatement"&&Xr(e)>=i&&Jr(e)<=Xr(n))return Ni(n,e),!0;if(Xr(e)"?(Mc(t,e),!0):!1}function XGe({comment:e,enclosingNode:t,text:r}){return Lu(r,Jr(e))!==")"?!1:t&&(Yde(t)&&ss(t).length===0||Zv(t)&&qc(t).length===0)?(Mc(t,e),!0):(t?.type==="MethodDefinition"||t?.type==="TSAbstractMethodDefinition")&&ss(t.value).length===0?(Mc(t.value,e),!0):!1}function YGe({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o}){return t?.type==="ComponentTypeParameter"&&(r?.type==="DeclareComponent"||r?.type==="ComponentTypeAnnotation")&&n?.type!=="ComponentTypeParameter"||(t?.type==="ComponentParameter"||t?.type==="RestElement")&&r?.type==="ComponentDeclaration"&&Lu(o,Jr(e))===")"?(ni(t,e),!0):!1}function Hde({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o}){return t?.type==="FunctionTypeParam"&&r?.type==="FunctionTypeAnnotation"&&n?.type!=="FunctionTypeParam"||(t?.type==="Identifier"||t?.type==="AssignmentPattern"||t?.type==="ObjectPattern"||t?.type==="ArrayPattern"||t?.type==="RestElement"||t?.type==="TSParameterProperty")&&Yde(r)&&Lu(o,Jr(e))===")"?(ni(t,e),!0):!Mu(e)&&n?.type==="BlockStatement"&&Gde(r)&&(r.type==="MethodDefinition"?r.value.body:r.body)===n&&Qv(o,Jr(e))===Xr(n)?(vg(n,e),!0):!1}function Zde({comment:e,enclosingNode:t}){return t?.type==="LabeledStatement"?(Ni(t,e),!0):!1}function dz({comment:e,enclosingNode:t}){return(t?.type==="ContinueStatement"||t?.type==="BreakStatement")&&!t.label?(ni(t,e),!0):!1}function eHe({comment:e,precedingNode:t,enclosingNode:r}){return jn(r)&&t&&r.callee===t&&r.arguments.length>0?(Ni(r.arguments[0],e),!0):!1}function tHe({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return od(r)?(Hv(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(ni(t,e),!0):!1):(od(n)&&Hv(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function rHe({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return r&&r.type==="MatchOrPattern"?(Hv(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(ni(t,e),!0):!1):(n&&n.type==="MatchOrPattern"&&Hv(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function nHe({comment:e,enclosingNode:t}){return Gm(t)?(Ni(t,e),!0):!1}function _z({comment:e,enclosingNode:t,ast:r,isLastComment:n}){return r?.body?.length===0?(n?Mc(r,e):Ni(r,e),!0):t?.type==="Program"&&t.body.length===0&&!jo(t.directives)?(n?Mc(t,e):Ni(t,e),!0):!1}function oHe({comment:e,enclosingNode:t,followingNode:r}){return(t?.type==="ForInStatement"||t?.type==="ForOfStatement")&&r!==t.body?(Ni(t,e),!0):!1}function Wde({comment:e,precedingNode:t,enclosingNode:r,text:n}){if(r?.type==="ImportSpecifier"||r?.type==="ExportSpecifier")return Ni(r,e),!0;let o=t?.type==="ImportSpecifier"&&r?.type==="ImportDeclaration",i=t?.type==="ExportSpecifier"&&r?.type==="ExportNamedDeclaration";return(o||i)&&nc(n,Jr(e))?(ni(t,e),!0):!1}function iHe({comment:e,enclosingNode:t}){return t?.type==="AssignmentPattern"?(Ni(t,e),!0):!1}var aHe=wr(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),sHe=wr(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function cHe({comment:e,enclosingNode:t,followingNode:r}){return aHe(t)&&r&&(sHe(r)||Mu(e))?(Ni(r,e),!0):!1}function lHe({comment:e,enclosingNode:t,precedingNode:r,followingNode:n,text:o}){return!n&&(t?.type==="TSMethodSignature"||t?.type==="TSDeclareFunction"||t?.type==="TSAbstractMethodDefinition")&&(!r||r!==t.returnType)&&Lu(o,Jr(e))===";"?(ni(t,e),!0):!1}function Qde({comment:e,enclosingNode:t,followingNode:r}){if(Hv(e)&&t?.type==="TSMappedType"&&r===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function Xde({comment:e,precedingNode:t,enclosingNode:r}){if(r?.type==="TSMappedType"&&!t)return Mc(r,e),!0}function uHe({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&bD(e)?vg(r,e):Mc(t,e),!0)}function pHe({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return od(t)&&((r.type==="TSArrayType"||r.type==="ArrayTypeAnnotation")&&!n||ED(r))?(ni(Jn(0,t.types,-1),e),!0):!1}function dHe({comment:e,enclosingNode:t,precedingNode:r,followingNode:n}){if((t?.type==="ObjectPattern"||t?.type==="ArrayPattern")&&n?.type==="TSTypeAnnotation")return r?ni(r,e):Mc(t,e),!0}function _He({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o}){return!n&&r?.type==="UnaryExpression"&&(t?.type==="LogicalExpression"||t?.type==="BinaryExpression")&&jc(o,Xr(r.argument),Xr(t.right))&&lz(e,o)&&!jc(o,Xr(t.right),Xr(e))?(ni(t.right,e),!0):!1}function fHe({enclosingNode:e,followingNode:t,comment:r}){if(e&&(e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&(od(t)||ED(t)))return Ni(t,r),!0}function fz({enclosingNode:e,precedingNode:t,followingNode:r,comment:n,text:o}){if(Nu(e)&&t===e.expression&&!lz(n,o))return r?Ni(r,n):ni(e,n),!0}function mHe({comment:e,enclosingNode:t,followingNode:r,precedingNode:n}){return t&&r&&n&&t.type==="ArrowFunctionExpression"&&t.returnType===n&&(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation")?(Ni(r,e),!0):!1}var Yde=wr(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),hHe={endOfLine:zGe,ownLine:UGe,remaining:VGe},yHe=hHe;function gHe(e,{parser:t}){if(t==="flow"||t==="hermes"||t==="babel-flow")return e=da(0,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}var SHe=gHe,vHe=wr(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function bHe(e){let{key:t,parent:r}=e;if(t==="types"&&od(r)||t==="argument"&&r.type==="JSXSpreadAttribute"||t==="expression"&&r.type==="JSXSpreadChild"||t==="superClass"&&(r.type==="ClassDeclaration"||r.type==="ClassExpression")||(t==="id"||t==="typeParameters")&&vHe(r)||t==="patterns"&&r.type==="MatchOrPattern")return!0;let{node:n}=e;return K3(n)?!1:od(n)?Bde(e):!!_a(n)}var xHe=bHe,bg="string",z_="array",Xv="cursor",xg="indent",Eg="align",Tg="trim",Ll="group",Hm="fill",rd="if-break",Dg="indent-if-break",Ag="line-suffix",Zm="line-suffix-boundary",ic="line",J_="label",K_="break-parent",e_e=new Set([Xv,xg,Eg,Tg,Ll,Hm,rd,Dg,Ag,Zm,ic,J_,K_]);function EHe(e){if(typeof e=="string")return bg;if(Array.isArray(e))return z_;if(!e)return;let{type:t}=e;if(e_e.has(t))return t}var Wm=EHe,THe=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function DHe(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', -Expected it to be 'string' or 'object'.`;if(Wm(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=THe([...e_e].map(o=>`'${o}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var AHe=class extends Error{name="InvalidDocError";constructor(e){super(DHe(e)),this.doc=e}},yD=AHe,Wpe={};function wHe(e,t,r,n){let o=[e];for(;o.length>0;){let i=o.pop();if(i===Wpe){r(o.pop());continue}r&&o.push(i,Wpe);let a=Wm(i);if(!a)throw new yD(i);if(t?.(i)!==!1)switch(a){case z_:case Hm:{let s=a===z_?i:i.parts;for(let c=s.length,p=c-1;p>=0;--p)o.push(s[p]);break}case rd:o.push(i.flatContents,i.breakContents);break;case Ll:if(n&&i.expandedStates)for(let s=i.expandedStates.length,c=s-1;c>=0;--c)o.push(i.expandedStates[c]);else o.push(i.contents);break;case Eg:case xg:case Dg:case J_:case Ag:o.push(i.contents);break;case bg:case Xv:case Tg:case Zm:case ic:case K_:break;default:throw new yD(i)}}}var mz=wHe;function Yv(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let a=o(i);return r.set(i,a),a}function o(i){switch(Wm(i)){case z_:return t(i.map(n));case Hm:return t({...i,parts:i.parts.map(n)});case rd:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case Ll:{let{expandedStates:a,contents:s}=i;return a?(a=a.map(n),s=a[0]):s=n(s),t({...i,contents:s,expandedStates:a})}case Eg:case xg:case Dg:case J_:case Ag:return t({...i,contents:n(i.contents)});case bg:case Xv:case Tg:case Zm:case ic:case K_:return t(i);default:throw new yD(i)}}}function t_e(e,t,r){let n=r,o=!1;function i(a){if(o)return!1;let s=t(a);s!==void 0&&(o=!0,n=s)}return mz(e,i),n}function IHe(e){if(e.type===Ll&&e.break||e.type===ic&&e.hard||e.type===K_)return!0}function Os(e){return t_e(e,IHe,!1)}function Qpe(e){if(e.length>0){let t=Jn(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function kHe(e){let t=new Set,r=[];function n(i){if(i.type===K_&&Qpe(r),i.type===Ll){if(r.push(i),t.has(i))return!1;t.add(i)}}function o(i){i.type===Ll&&r.pop().break&&Qpe(r)}mz(e,n,o,!0)}function CHe(e){return e.type===ic&&!e.hard?e.soft?"":" ":e.type===rd?e.flatContents:e}function B3(e){return Yv(e,CHe)}function PHe(e){switch(Wm(e)){case Hm:if(e.parts.every(t=>t===""))return"";break;case Ll:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Ll&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Eg:case xg:case Dg:case Ag:if(!e.contents)return"";break;case rd:if(!e.flatContents&&!e.breakContents)return"";break;case z_:{let t=[];for(let r of e){if(!r)continue;let[n,...o]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Jn(0,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...o)}return t.length===0?"":t.length===1?t[0]:t}case bg:case Xv:case Tg:case Zm:case ic:case J_:case K_:break;default:throw new yD(e)}return e}function hz(e){return Yv(e,t=>PHe(t))}function gg(e,t=a_e){return Yv(e,r=>typeof r=="string"?pn(t,r.split(` -`)):r)}function OHe(e){if(e.type===ic)return!0}function NHe(e){return t_e(e,OHe,!1)}function MU(e,t){return e.type===J_?{...e,contents:t(e.contents)}:t(e)}function FHe(e){let t=!0;return mz(e,r=>{switch(Wm(r)){case bg:if(r==="")break;case Tg:case Zm:case ic:case K_:return t=!1,!1}}),t}var id=Sg,r_e=Sg,RHe=Sg,LHe=Sg;function Fe(e){return id(e),{type:xg,contents:e}}function $u(e,t){return LHe(e),id(t),{type:Eg,contents:t,n:e}}function $He(e){return $u(Number.NEGATIVE_INFINITY,e)}function n_e(e){return $u(-1,e)}function MHe(e,t,r){id(e);let n=e;if(t>0){for(let o=0;o0&&c(a),y()}function m(){s>0&&p(s),y()}function y(){a=0,s=0}}function ZHe(e,t,r){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let n;return typeof t=="number"?t<0?n=HHe:n={type:2,width:t}:n={type:3,string:t},c_e(e,n,r)}function WHe(e,t){return c_e(e,GHe,t)}function QHe(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];if(n===" "||n===" ")t++;else break}return t}function l_e(e){let t=QHe(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var rc=Symbol("MODE_BREAK"),td=Symbol("MODE_FLAT"),jU=Symbol("DOC_FILL_PRINTED_LENGTH");function N3(e,t,r,n,o,i){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length,s=!1,c=[e],p="";for(;r>=0;){if(c.length===0){if(a===0)return!0;c.push(t[--a]);continue}let{mode:d,doc:f}=c.pop(),m=Wm(f);switch(m){case bg:f&&(s&&(p+=" ",r-=1,s=!1),p+=f,r-=Vv(f));break;case z_:case Hm:{let y=m===z_?f:f.parts,g=f[jU]??0;for(let S=y.length-1;S>=g;S--)c.push({mode:d,doc:y[S]});break}case xg:case Eg:case Dg:case J_:c.push({mode:d,doc:f.contents});break;case Tg:{let{text:y,count:g}=l_e(p);p=y,r+=g;break}case Ll:{if(i&&f.break)return!1;let y=f.break?rc:d,g=f.expandedStates&&y===rc?Jn(0,f.expandedStates,-1):f.contents;c.push({mode:y,doc:g});break}case rd:{let y=(f.groupId?o[f.groupId]||td:d)===rc?f.breakContents:f.flatContents;y&&c.push({mode:d,doc:y});break}case ic:if(d===rc||f.hard)return!0;f.soft||(s=!0);break;case Ag:n=!0;break;case Zm:if(n)return!1;break}}return!1}function u_e(e,t){let r=Object.create(null),n=t.printWidth,o=KHe(t.endOfLine),i=0,a=[{indent:s_e,mode:rc,doc:e}],s="",c=!1,p=[],d=[],f=[],m=[],y=0;for(kHe(e);a.length>0;){let{indent:I,mode:E,doc:C}=a.pop();switch(Wm(C)){case bg:{let F=o!==` -`?da(0,C,` -`,o):C;F&&(s+=F,a.length>0&&(i+=Vv(F)));break}case z_:for(let F=C.length-1;F>=0;F--)a.push({indent:I,mode:E,doc:C[F]});break;case Xv:if(d.length>=2)throw new Error("There are too many 'cursor' in doc.");d.push(y+s.length);break;case xg:a.push({indent:WHe(I,t),mode:E,doc:C.contents});break;case Eg:a.push({indent:ZHe(I,C.n,t),mode:E,doc:C.contents});break;case Tg:A();break;case Ll:switch(E){case td:if(!c){a.push({indent:I,mode:C.break?rc:td,doc:C.contents});break}case rc:{c=!1;let F={indent:I,mode:td,doc:C.contents},O=n-i,$=p.length>0;if(!C.break&&N3(F,a,O,$,r))a.push(F);else if(C.expandedStates){let N=Jn(0,C.expandedStates,-1);if(C.break){a.push({indent:I,mode:rc,doc:N});break}else for(let U=1;U=C.expandedStates.length){a.push({indent:I,mode:rc,doc:N});break}else{let ge=C.expandedStates[U],Te={indent:I,mode:td,doc:ge};if(N3(Te,a,O,$,r)){a.push(Te);break}}}else a.push({indent:I,mode:rc,doc:C.contents});break}}C.id&&(r[C.id]=Jn(0,a,-1).mode);break;case Hm:{let F=n-i,O=C[jU]??0,{parts:$}=C,N=$.length-O;if(N===0)break;let U=$[O+0],ge=$[O+1],Te={indent:I,mode:td,doc:U},ke={indent:I,mode:rc,doc:U},Ve=N3(Te,[],F,p.length>0,r,!0);if(N===1){Ve?a.push(Te):a.push(ke);break}let me={indent:I,mode:td,doc:ge},xe={indent:I,mode:rc,doc:ge};if(N===2){Ve?a.push(me,Te):a.push(xe,ke);break}let Rt=$[O+2],Vt={indent:I,mode:E,doc:{...C,[jU]:O+2}},Yt=N3({indent:I,mode:td,doc:[U,ge,Rt]},[],F,p.length>0,r,!0);a.push(Vt),Yt?a.push(me,Te):Ve?a.push(xe,Te):a.push(xe,ke);break}case rd:case Dg:{let F=C.groupId?r[C.groupId]:E;if(F===rc){let O=C.type===rd?C.breakContents:C.negate?C.contents:Fe(C.contents);O&&a.push({indent:I,mode:E,doc:O})}if(F===td){let O=C.type===rd?C.flatContents:C.negate?Fe(C.contents):C.contents;O&&a.push({indent:I,mode:E,doc:O})}break}case Ag:p.push({indent:I,mode:E,doc:C.contents});break;case Zm:p.length>0&&a.push({indent:I,mode:E,doc:i_e});break;case ic:switch(E){case td:if(C.hard)c=!0;else{C.soft||(s+=" ",i+=1);break}case rc:if(p.length>0){a.push({indent:I,mode:E,doc:C},...p.reverse()),p.length=0;break}C.literal?(s+=o,i=0,I.root&&(I.root.value&&(s+=I.root.value),i=I.root.length)):(A(),s+=o+I.value,i=I.length);break}break;case J_:a.push({indent:I,mode:E,doc:C.contents});break;case K_:break;default:throw new yD(C)}a.length===0&&p.length>0&&(a.push(...p.reverse()),p.length=0)}let g=f.join("")+s,S=[...m,...d];if(S.length!==2)return{formatted:g};let x=S[0];return{formatted:g,cursorNodeStart:x,cursorNodeText:g.slice(x,Jn(0,S,-1))};function A(){let{text:I,count:E}=l_e(s);I&&(f.push(I),y+=I.length),s="",i-=E,d.length>0&&(m.push(...d.map(C=>Math.min(C,y))),d.length=0)}}function XHe(e,t,r=0){let n=0;for(let o=r;o{if(i.push(r()),p.tail)return;let{tabWidth:d}=t,f=p.value.raw,m=f.includes(` -`)?tZe(f,d):s;s=m;let y=a[c],g=n[o][c],S=jc(t.originalText,Jr(p),Xr(n.quasis[c+1]));if(!S){let A=u_e(y,{...t,printWidth:Number.POSITIVE_INFINITY}).formatted;A.includes(` -`)?S=!0:y=A}S&&(rt(g)||g.type==="Identifier"||Mo(g)||g.type==="ConditionalExpression"||g.type==="SequenceExpression"||Nu(g)||U_(g))&&(y=[Fe([Pe,y]),Pe]);let x=m===0&&f.endsWith(` -`)?$u(Number.NEGATIVE_INFINITY,y):MHe(y,m,d);i.push(de(["${",x,ad,"}"]))},"quasis"),i.push("`"),i}function rZe(e,t,r){let n=r("quasi"),{node:o}=e,i="",a=yg(o.quasi,St.Leading)[0];return a&&(jc(t.originalText,Jr(o.typeArguments??o.tag),Xr(a))?i=Pe:i=" "),TD(n.label&&{tagged:!0,...n.label},[r("tag"),r("typeArguments"),i,ad,n])}function nZe(e,t,r){let{node:n}=e,o=n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(o.length>1||o.some(i=>i.length>0)){t.__inJestEach=!0;let i=e.map(r,"expressions");t.__inJestEach=!1;let a=i.map(f=>"${"+u_e(f,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),s=[{hasLineBreak:!1,cells:[]}];for(let f=1;fObject.prototype.hasOwnProperty.call(t,r))}function YVe(e){let{pragmas:t}=Mpe(e);return WVe.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function eKe(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:XVe,hasIgnorePragma:YVe,locStart:q_,locEnd:td,...e}}var uD=eKe,xU="module",jpe="commonjs";function tKe(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return xU;if(/\.(?:cjs|cts)$/iu.test(e))return jpe}}function rKe(e,t){let{type:r="JsExpressionRoot",rootMarker:n,text:o}=t,{tokens:i,comments:a}=e;return delete e.tokens,delete e.comments,{tokens:i,comments:a,type:r,node:e,range:[0,o.length],rootMarker:n}}var Bpe=rKe,zv=e=>uD(sKe(e)),nKe={sourceType:xU,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],["discardBinding",{syntaxType:"void"}]],tokens:!1,ranges:!1},ape="v8intrinsic",spe=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],U_=(e,t=nKe)=>({...t,plugins:[...t.plugins,...e]}),oKe=/@(?:no)?flow\b/u;function iKe(e,t){if(t?.endsWith(".js.flow"))return!0;let r=Fpe(e);r&&(e=e.slice(r.length));let n=aVe(e,0);return n!==!1&&(e=e.slice(0,n)),oKe.test(e)}function aKe(e,t,r){let n=e(t,r),o=n.errors.find(i=>!cKe.has(i.reasonCode));if(o)throw o;return n}function sKe({isExpression:e=!1,optionsCombinations:t}){return(r,n={})=>{let{filepath:o}=n;if(typeof o!="string"&&(o=void 0),(n.parser==="babel"||n.parser==="__babel_estree")&&iKe(r,o))return n.parser="babel-flow",Upe.parse(r,n);let i=t,a=n.__babelSourceType??tKe(o);a&&a!==xU&&(i=i.map(d=>({...d,sourceType:a,...a===jpe?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let s=/%[A-Z]/u.test(r);r.includes("|>")?i=(s?[...spe,ape]:spe).flatMap(d=>i.map(f=>U_([d],f))):s&&(i=i.map(d=>U_([ape],d)));let c=e?Npe:Ope,p;try{p=sVe(i.map(d=>()=>aKe(c,r,d)))}catch({errors:[d]}){throw $pe(d)}return e&&(p=Bpe(p,{text:r,rootMarker:n.rootMarker})),LVe(p,{text:r})}}var cKe=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert","DeclarationMissingInitializer"]),qpe=[U_(["jsx"])],cpe=zv({optionsCombinations:qpe}),lpe=zv({optionsCombinations:[U_(["jsx","typescript"]),U_(["typescript"])]}),upe=zv({isExpression:!0,optionsCombinations:[U_(["jsx"])]}),ppe=zv({isExpression:!0,optionsCombinations:[U_(["typescript"])]}),Upe=zv({optionsCombinations:[U_(["jsx",["flow",{all:!0}],"flowComments"])]}),lKe=zv({optionsCombinations:qpe.map(e=>U_(["estree"],e))}),zpe={};iU(zpe,{json:()=>dKe,"json-stringify":()=>mKe,json5:()=>_Ke,jsonc:()=>fKe});function uKe(e){return Array.isArray(e)&&e.length>0}var Jpe=uKe,Vpe={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function pKe(e){let t=Ope(e,Vpe),{program:r}=t;if(r.body.length===0&&r.directives.length===0&&!r.interpreter)return t}function O3(e,t={}){let{allowComments:r=!0,allowEmpty:n=!1}=t,o;try{o=Npe(e,Vpe)}catch(i){if(n&&i.code==="BABEL_PARSER_SYNTAX_ERROR"&&i.reasonCode==="ParseExpressionEmptyInput")try{o=pKe(e)}catch{}if(!o)throw $pe(i)}if(!r&&Jpe(o.comments))throw zm(o.comments[0],"Comment");return o=Bpe(o,{type:"JsonRoot",text:e}),o.node.type==="File"?delete o.node:jv(o.node),o}function zm(e,t){let[r,n]=[e.loc.start,e.loc.end].map(({line:o,column:i})=>({line:o,column:i+1}));return Lpe(`${t} is not allowed in JSON.`,{loc:{start:r,end:n}})}function jv(e){switch(e.type){case"ArrayExpression":for(let t of e.elements)t!==null&&jv(t);return;case"ObjectExpression":for(let t of e.properties)jv(t);return;case"ObjectProperty":if(e.computed)throw zm(e.key,"Computed key");if(e.shorthand)throw zm(e.key,"Shorthand property");e.key.type!=="Identifier"&&jv(e.key),jv(e.value);return;case"UnaryExpression":{let{operator:t,argument:r}=e;if(t!=="+"&&t!=="-")throw zm(e,`Operator '${e.operator}'`);if(r.type==="NumericLiteral"||r.type==="Identifier"&&(r.name==="Infinity"||r.name==="NaN"))return;throw zm(r,`Operator '${t}' before '${r.type}'`)}case"Identifier":if(e.name!=="Infinity"&&e.name!=="NaN"&&e.name!=="undefined")throw zm(e,`Identifier '${e.name}'`);return;case"TemplateLiteral":if(Jpe(e.expressions))throw zm(e.expressions[0],"'TemplateLiteral' with expression");for(let t of e.quasis)jv(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw zm(e,`'${e.type}'`)}}var dKe=uD({parse:e=>O3(e),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),_Ke=uD(e=>O3(e)),fKe=uD(e=>O3(e,{allowEmpty:!0})),mKe=uD({parse:e=>O3(e,{allowComments:!1}),astFormat:"estree-json"}),hKe={...dpe,...zpe};var yKe=Object.defineProperty,QU=(e,t)=>{for(var r in t)yKe(e,r,{get:t[r],enumerable:!0})},XU={};QU(XU,{languages:()=>vYe,options:()=>gYe,printers:()=>SYe});var gKe=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],xde={};QU(xde,{canAttachComment:()=>MGe,embed:()=>CZe,features:()=>uYe,getVisitorKeys:()=>kde,handleComments:()=>SHe,hasPrettierIgnore:()=>Tz,insertPragma:()=>JZe,isBlockComment:()=>ju,isGap:()=>bHe,massageAstNode:()=>OGe,print:()=>vde,printComment:()=>HZe,printPrettierIgnored:()=>vde,willPrintOwnComments:()=>THe});var YU=(e,t)=>(r,n,...o)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,o),SKe=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},vKe=YU("replaceAll",function(){if(typeof this=="string")return SKe}),da=vKe;function bKe(e){return this[e<0?this.length+e:e]}var xKe=YU("at",function(){if(Array.isArray(this)||typeof this=="string")return bKe}),Vn=xKe;function EKe(e){return e!==null&&typeof e=="object"}var Ede=EKe;function*TKe(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,o=i=>Ede(i)&&n(i);for(let i of r(e)){let a=e[i];if(Array.isArray(a))for(let s of a)o(s)&&(yield s);else o(a)&&(yield a)}}function*DKe(e,t){let r=[e];for(let n=0;n/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function wKe(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function kKe(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var CKe="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07",PKe=/[^\x20-\x7F]/u,OKe=new Set(CKe);function NKe(e){if(!e)return 0;if(!PKe.test(e))return e.length;e=e.replace(IKe(),r=>OKe.has(r)?" ":" ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=wKe(n)||kKe(n)?2:1)}return t}var Gv=NKe;function V3(e){return(t,r,n)=>{let o=!!n?.backwards;if(r===!1)return!1;let{length:i}=t,a=r;for(;a>=0&&ae===` +`||e==="\r"||e==="\u2028"||e==="\u2029";function LKe(e,t,r){let n=!!r?.backwards;if(t===!1)return!1;let o=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&o===` +`)return t-2;if(Kpe(o))return t-1}else{if(o==="\r"&&e.charAt(t+1)===` +`)return t+2;if(Kpe(o))return t+1}return t}var Zv=LKe;function $Ke(e,t,r={}){let n=Hv(e,r.backwards?t-1:t,r),o=Zv(e,n,r);return n!==o}var nc=$Ke;function MKe(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r0}var jo=qKe,UKe=()=>{},Eg=UKe,Tde=Object.freeze({character:"'",codePoint:39}),Dde=Object.freeze({character:'"',codePoint:34}),zKe=Object.freeze({preferred:Tde,alternate:Dde}),JKe=Object.freeze({preferred:Dde,alternate:Tde});function VKe(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?zKe:JKe,{length:o}=e,i=0,a=0;for(let s=0;sa?n:r).character}var Ade=VKe,KKe=/\\(["'\\])|(["'])/gu;function GKe(e,t){let r=t==='"'?"'":'"',n=da(0,e,KKe,(o,i,a)=>i?i===r?r:o:a===t?"\\"+a:a);return t+n+t}var HKe=GKe;function ZKe(e,t){Eg(/^(?["']).*\k$/su.test(e));let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":Ade(r,t.singleQuote);return e.charAt(0)===n?e:HKe(r,n)}var Wv=ZKe,Ide=e=>Number.isInteger(e)&&e>=0;function Yr(e){let t=e.range?.[0]??e.start,r=(e.declaration?.decorators??e.decorators)?.[0];return r?Math.min(Yr(r),t):t}function Kr(e){return e.range?.[1]??e.end}function K3(e,t){let r=Yr(e);return Ide(r)&&r===Yr(t)}function WKe(e,t){let r=Kr(e);return Ide(r)&&r===Kr(t)}function QKe(e,t){return K3(e,t)&&WKe(e,t)}var pD=null;function fD(e){if(pD!==null&&typeof pD.property){let t=pD;return pD=fD.prototype=null,t}return pD=fD.prototype=e??Object.create(null),new fD}var XKe=10;for(let e=0;e<=XKe;e++)fD();function YKe(e){return fD(e)}function eGe(e,t="type"){YKe(e);function r(n){let o=n[t],i=e[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:n});return i}return r}var wde=eGe,J=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],tGe={AccessorProperty:J[0],AnyTypeAnnotation:J[1],ArgumentPlaceholder:J[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:J[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:J[3],AsExpression:J[4],AssignmentExpression:J[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:J[6],BigIntLiteral:J[1],BigIntLiteralTypeAnnotation:J[1],BigIntTypeAnnotation:J[1],BinaryExpression:J[5],BindExpression:["object","callee"],BlockStatement:J[7],BooleanLiteral:J[1],BooleanLiteralTypeAnnotation:J[1],BooleanTypeAnnotation:J[1],BreakStatement:J[8],CallExpression:J[9],CatchClause:["param","body"],ChainExpression:J[3],ClassAccessorProperty:J[0],ClassBody:J[10],ClassDeclaration:J[11],ClassExpression:J[11],ClassImplements:J[12],ClassMethod:J[13],ClassPrivateMethod:J[13],ClassPrivateProperty:J[14],ClassProperty:J[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:J[15],ConditionalExpression:J[16],ConditionalTypeAnnotation:J[17],ContinueStatement:J[8],DebuggerStatement:J[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:J[18],DeclareEnum:J[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:J[20],DeclareFunction:["id","predicate"],DeclareHook:J[21],DeclareInterface:J[22],DeclareModule:J[19],DeclareModuleExports:J[23],DeclareNamespace:J[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:J[24],DeclareVariable:J[21],Decorator:J[3],Directive:J[18],DirectiveLiteral:J[1],DoExpression:J[10],DoWhileStatement:J[25],EmptyStatement:J[1],EmptyTypeAnnotation:J[1],EnumBigIntBody:J[26],EnumBigIntMember:J[27],EnumBooleanBody:J[26],EnumBooleanMember:J[27],EnumDeclaration:J[19],EnumDefaultedMember:J[21],EnumNumberBody:J[26],EnumNumberMember:J[27],EnumStringBody:J[26],EnumStringMember:J[27],EnumSymbolBody:J[26],ExistsTypeAnnotation:J[1],ExperimentalRestProperty:J[6],ExperimentalSpreadProperty:J[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:J[28],ExportNamedDeclaration:J[20],ExportNamespaceSpecifier:J[28],ExportSpecifier:["local","exported"],ExpressionStatement:J[3],File:["program"],ForInStatement:J[29],ForOfStatement:J[29],ForStatement:["init","test","update","body"],FunctionDeclaration:J[30],FunctionExpression:J[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:J[15],GenericTypeAnnotation:J[12],HookDeclaration:J[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:J[16],ImportAttribute:J[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:J[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:J[33],ImportSpecifier:["imported","local"],IndexedAccessType:J[34],InferredPredicate:J[1],InferTypeAnnotation:J[35],InterfaceDeclaration:J[22],InterfaceExtends:J[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:J[1],IntersectionTypeAnnotation:J[36],JsExpressionRoot:J[37],JsonRoot:J[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:J[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:J[1],JSXExpressionContainer:J[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:J[1],JSXMemberExpression:J[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:J[1],JSXSpreadAttribute:J[6],JSXSpreadChild:J[3],JSXText:J[1],KeyofTypeAnnotation:J[6],LabeledStatement:["label","body"],Literal:J[1],LogicalExpression:J[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:J[21],MatchExpression:J[39],MatchExpressionCase:J[40],MatchIdentifierPattern:J[21],MatchLiteralPattern:J[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:J[6],MatchStatement:J[39],MatchStatementCase:J[40],MatchUnaryPattern:J[6],MatchWildcardPattern:J[1],MemberExpression:J[38],MetaProperty:["meta","property"],MethodDefinition:J[42],MixedTypeAnnotation:J[1],ModuleExpression:J[10],NeverTypeAnnotation:J[1],NewExpression:J[9],NGChainedExpression:J[43],NGEmptyExpression:J[1],NGMicrosyntax:J[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:J[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:J[32],NGPipeExpression:["left","right","arguments"],NGRoot:J[37],NullableTypeAnnotation:J[23],NullLiteral:J[1],NullLiteralTypeAnnotation:J[1],NumberLiteralTypeAnnotation:J[1],NumberTypeAnnotation:J[1],NumericLiteral:J[1],ObjectExpression:["properties"],ObjectMethod:J[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:J[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:J[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:J[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:J[9],OptionalIndexedAccessType:J[34],OptionalMemberExpression:J[38],ParenthesizedExpression:J[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:J[1],PipelineTopicExpression:J[3],Placeholder:J[1],PrivateIdentifier:J[1],PrivateName:J[21],Program:J[7],Property:J[32],PropertyDefinition:J[14],QualifiedTypeIdentifier:J[44],QualifiedTypeofIdentifier:J[44],RegExpLiteral:J[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:J[6],SatisfiesExpression:J[4],SequenceExpression:J[43],SpreadElement:J[6],StaticBlock:J[10],StringLiteral:J[1],StringLiteralTypeAnnotation:J[1],StringTypeAnnotation:J[1],Super:J[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:J[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:J[1],TemplateLiteral:["quasis","expressions"],ThisExpression:J[1],ThisTypeAnnotation:J[1],ThrowStatement:J[6],TopicReference:J[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:J[45],TSAbstractKeyword:J[1],TSAbstractMethodDefinition:J[32],TSAbstractPropertyDefinition:J[45],TSAnyKeyword:J[1],TSArrayType:J[2],TSAsExpression:J[4],TSAsyncKeyword:J[1],TSBigIntKeyword:J[1],TSBooleanKeyword:J[1],TSCallSignatureDeclaration:J[46],TSClassImplements:J[47],TSConditionalType:J[17],TSConstructorType:J[46],TSConstructSignatureDeclaration:J[46],TSDeclareFunction:J[31],TSDeclareKeyword:J[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:J[26],TSEnumDeclaration:J[19],TSEnumMember:["id","initializer"],TSExportAssignment:J[3],TSExportKeyword:J[1],TSExternalModuleReference:J[3],TSFunctionType:J[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:J[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:J[35],TSInstantiationExpression:J[47],TSInterfaceBody:J[10],TSInterfaceDeclaration:J[22],TSInterfaceHeritage:J[47],TSIntersectionType:J[36],TSIntrinsicKeyword:J[1],TSJSDocAllType:J[1],TSJSDocNonNullableType:J[23],TSJSDocNullableType:J[23],TSJSDocUnknownType:J[1],TSLiteralType:J[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:J[10],TSModuleDeclaration:J[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:J[21],TSNeverKeyword:J[1],TSNonNullExpression:J[3],TSNullKeyword:J[1],TSNumberKeyword:J[1],TSObjectKeyword:J[1],TSOptionalType:J[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:J[23],TSPrivateKeyword:J[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:J[1],TSPublicKeyword:J[1],TSQualifiedName:J[5],TSReadonlyKeyword:J[1],TSRestType:J[23],TSSatisfiesExpression:J[4],TSStaticKeyword:J[1],TSStringKeyword:J[1],TSSymbolKeyword:J[1],TSTemplateLiteralType:["quasis","types"],TSThisType:J[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:J[23],TSTypeAssertion:J[4],TSTypeLiteral:J[26],TSTypeOperator:J[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:J[48],TSTypeParameterInstantiation:J[48],TSTypePredicate:J[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:J[1],TSUnionType:J[36],TSUnknownKeyword:J[1],TSVoidKeyword:J[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:J[24],TypeAnnotation:J[23],TypeCastExpression:J[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:J[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:J[48],TypeParameterInstantiation:J[48],TypePredicate:J[49],UnaryExpression:J[6],UndefinedTypeAnnotation:J[1],UnionTypeAnnotation:J[36],UnknownTypeAnnotation:J[1],UpdateExpression:J[6],V8IntrinsicIdentifier:J[1],VariableDeclaration:["declarations"],VariableDeclarator:J[27],Variance:J[1],VoidPattern:J[1],VoidTypeAnnotation:J[1],WhileStatement:J[25],WithStatement:["object","body"],YieldExpression:J[6]},rGe=wde(tGe),kde=rGe;function nGe(e){let t=new Set(e);return r=>t.has(r?.type)}var Ir=nGe;function oGe(e){return e.extra?.raw??e.raw}var oc=oGe,iGe=Ir(["Block","CommentBlock","MultiLine"]),ju=iGe,aGe=Ir(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Cde=aGe,sGe=Ir(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),ED=sGe;function cGe(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let o=r[n];if(n===0)return e.type==="Identifier"&&e.name===o;if(n===1&&e.type==="MetaProperty"&&e.property.type==="Identifier"&&e.property.name===o){e=e.meta;continue}if(e.type==="MemberExpression"&&!e.optional&&!e.computed&&e.property.type==="Identifier"&&e.property.name===o){e=e.object;continue}return!1}}function lGe(e,t){return t.some(r=>cGe(e,r))}var nz=lGe;function uGe({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var Pde=uGe;function pGe({node:e,parent:t}){return e?.type!=="EmptyStatement"?!1:t.type==="IfStatement"?t.consequent===e||t.alternate===e:t.type==="DoWhileStatement"||t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"||t.type==="LabeledStatement"||t.type==="WithStatement"||t.type==="WhileStatement"?t.body===e:!1}var oz=pGe;function LU(e,t){return t(e)||AKe(e,{getVisitorKeys:kde,predicate:t})}function iz(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||jn(e)||Mo(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||Fu(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function dGe(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function Ode(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var _Ge=Ir(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),Fa=Ir(["ArrayExpression"]),Lu=Ir(["ObjectExpression"]);function fGe(e){return e.type==="LogicalExpression"&&e.operator==="??"}function od(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function mGe(e){return e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean"}function Nde(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&od(e.argument)}function fa(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function Fde(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var az=Ir(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),hGe=Ir(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),Hm=Ir(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),gD=Ir(["FunctionExpression","ArrowFunctionExpression"]);function yGe(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function EU(e){return jn(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var _a=Ir(["JSXElement","JSXFragment"]);function TD(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function Rde(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function gGe(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!K3(e,e.typeAnnotation)}var J_=Ir(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function Kv(e){return Mo(e)||e.type==="BindExpression"&&!!e.object}var SGe=Ir(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function sz(e){return Pde(e)||Cde(e)||SGe(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function vGe(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var bGe=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function xGe(e){return nz(e,bGe)}function G3(e,t){if(e?.type!=="CallExpression"||e.optional)return!1;let r=qc(e);if(r.length===1){if(EU(e)&&G3(t))return gD(r[0]);if(vGe(e.callee))return EU(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||fa(r[0]))&&xGe(e.callee))return r[2]&&!od(r[2])?!1:(r.length===2?gD(r[1]):yGe(r[1])&&ss(r[1]).length<=1)||EU(r[1]);return!1}var Lde=e=>t=>(t?.type==="ChainExpression"&&(t=t.expression),e(t)),jn=Lde(Ir(["CallExpression","OptionalCallExpression"])),Mo=Lde(Ir(["MemberExpression","OptionalMemberExpression"]));function Gpe(e,t=5){return $de(e,t)<=t}function $de(e,t){let r=0;for(let n in e){let o=e[n];if(Ede(o)&&typeof o.type=="string"&&(r++,r+=$de(o,t-r)),r>t)return r}return r}var EGe=.25;function cz(e,t){let{printWidth:r}=t;if(rt(e))return!1;let n=r*EGe;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=n||Nde(e)&&!rt(e.argument))return!0;let o=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return o?o.length<=n:fa(e)?Wv(oc(e),t).length<=n:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes(` +`):e.type==="UnaryExpression"?cz(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=n-2:az(e)}function Ru(e,t){return _a(t)?H3(t):rt(t,St.Leading,r=>nc(e,Kr(r)))}function Hpe(e){return e.quasis.some(t=>t.value.raw.includes(` +`))}function Mde(e,t){return(e.type==="TemplateLiteral"&&Hpe(e)||e.type==="TaggedTemplateExpression"&&Hpe(e.quasi))&&!nc(t,Yr(e),{backwards:!0})}function jde(e){if(!rt(e))return!1;let t=Vn(0,bg(e,St.Dangling),-1);return t&&!ju(t)}function TGe(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(gD(r)){if(t+=1,t>1)return!0}else if(jn(r)){for(let n of qc(r))if(gD(n))return!0}return!1}function Bde(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&jn(t)&&jn(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var DGe=new Set(["!","-","+","~"]);function Nu(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return Nu(e.expression,t);let r=n=>Nu(n,t-1);if(Fde(e))return Gv(e.pattern??e.regex.pattern)<=5;if(az(e)||hGe(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(` +`))&&e.expressions.every(r);if(Lu(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(Fa(e))return e.elements.every(n=>n===null||r(n));if(Xv(e)){if(e.type==="ImportExpression"||Nu(e.callee,t)){let n=qc(e);return n.length<=t&&n.every(r)}return!1}return Mo(e)?Nu(e.object,t)&&Nu(e.property,t):e.type==="UnaryExpression"&&DGe.has(e.operator)||e.type==="UpdateExpression"?Nu(e.argument,t):!1}function cd(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function Ps(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return Ps(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return Ps(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:Ps(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:Ps(e.callee,t);case"ConditionalExpression":return Ps(e.test,t);case"UpdateExpression":return!e.prefix&&Ps(e.argument,t);case"BindExpression":return e.object&&Ps(e.object,t);case"SequenceExpression":return Ps(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Ps(e.expression,t);default:return t(e)}}var Zpe={"==":!0,"!=":!0,"===":!0,"!==":!0},N3={"*":!0,"/":!0,"%":!0},$U={">>":!0,">>>":!0,"<<":!0};function lz(e,t){return!(B3(t)!==B3(e)||e==="**"||Zpe[e]&&Zpe[t]||t==="%"&&N3[e]||e==="%"&&N3[t]||t!==e&&N3[t]&&N3[e]||$U[e]&&$U[t])}var AGe=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function B3(e){return AGe.get(e)}function IGe(e){return!!$U[e]||e==="|"||e==="^"||e==="&"}function wGe(e){if(e.rest)return!0;let t=ss(e);return Vn(0,t,-1)?.type==="RestElement"}var TU=new WeakMap;function ss(e){if(TU.has(e))return TU.get(e);let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),TU.set(e,t),t}function kGe(e,t){let{node:r}=e,n=0,o=()=>t(e,n++);r.this&&e.call(o,"this"),e.each(o,"params"),r.rest&&e.call(o,"rest")}var DU=new WeakMap;function qc(e){if(DU.has(e))return DU.get(e);if(e.type==="ChainExpression")return qc(e.expression);let t;return e.type==="ImportExpression"||e.type==="TSImportType"?(t=[e.source],e.options&&t.push(e.options)):e.type==="TSExternalModuleReference"?t=[e.expression]:t=e.arguments,DU.set(e,t),t}function q3(e,t){let{node:r}=e;if(r.type==="ChainExpression")return e.call(()=>q3(e,t),"expression");r.type==="ImportExpression"||r.type==="TSImportType"?(e.call(()=>t(e,0),"source"),r.options&&e.call(()=>t(e,1),"options")):r.type==="TSExternalModuleReference"?e.call(()=>t(e,0),"expression"):e.each(t,"arguments")}function Wpe(e,t){let r=[];if(e.type==="ChainExpression"&&(e=e.expression,r.push("expression")),e.type==="ImportExpression"||e.type==="TSImportType"){if(t===0||t===(e.options?-2:-1))return[...r,"source"];if(e.options&&(t===1||t===-1))return[...r,"options"];throw new RangeError("Invalid argument index")}else if(e.type==="TSExternalModuleReference"){if(t===0||t===-1)return[...r,"expression"]}else if(t<0&&(t=e.arguments.length+t),t>=0&&t{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,o)=>!(e&St.Leading&&!r.leading||e&St.Trailing&&!r.trailing||e&St.Dangling&&(r.leading||r.trailing)||e&St.Block&&!ju(r)||e&St.Line&&!ED(r)||e&St.First&&n!==0||e&St.Last&&n!==o.length-1||e&St.PrettierIgnore&&!Qv(r)||t&&!t(r))};function rt(e,t,r){if(!jo(e?.comments))return!1;let n=qde(t,r);return n?e.comments.some(n):!0}function bg(e,t,r){if(!Array.isArray(e?.comments))return[];let n=qde(t,r);return n?e.comments.filter(n):e.comments}var ld=(e,{originalText:t})=>rz(t,Kr(e));function Xv(e){return jn(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function Wm(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!TD(e))}var Fu=Ir(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),id=Ir(["TSUnionType","UnionTypeAnnotation"]),DD=Ir(["TSIntersectionType","IntersectionTypeAnnotation"]),Zm=Ir(["TSConditionalType","ConditionalTypeAnnotation"]),CGe=e=>e?.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const",MU=Ir(["TSTypeAliasDeclaration","TypeAlias"]);function Ude({key:e,parent:t}){return!(e==="types"&&id(t)||e==="types"&&DD(t))}var PGe=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Jv=e=>{for(let t of e.quasis)delete t.value};function zde(e,t,r){if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="Literal")&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"&&!oz({node:e,parent:r})||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute")&&e.key&&!e.computed){let{key:o}=e;fa(o)||od(o)?t.key=String(o.value):o.type==="Identifier"&&(t.key=o.name)}if(e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(o=>o.type==="JSXAttribute"&&o.name.name==="jsx"))for(let{type:o,expression:i}of t.children)o==="JSXExpressionContainer"&&i.type==="TemplateLiteral"&&Jv(i);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&Jv(t.value.expression),e.type==="JSXAttribute"&&e.value?.type==="Literal"&&/["']|"|'/u.test(e.value.value)&&(t.value.value=da(0,e.value.value,/["']|"|'/gu,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let o=e.expression.arguments[0].properties;for(let[i,a]of t.expression.arguments[0].properties.entries())switch(o[i].key.name){case"styles":Fa(a.value)&&Jv(a.value.elements[0]);break;case"template":a.value.type==="TemplateLiteral"&&Jv(a.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&Jv(t.quasi),e.type==="TemplateLiteral"&&Jv(t),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression")}zde.ignoredProperties=PGe;var OGe=zde,NGe=Ir(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),FGe=(e,[t])=>t?.type==="ComponentParameter"&&t.shorthand&&t.name===e&&t.local!==t.name||t?.type==="MatchObjectPatternProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type==="ObjectProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type==="Property"&&t.shorthand&&t.key===e&&!TD(t)&&t.value!==t.key,RGe=(e,[t])=>!!(e.type==="FunctionExpression"&&t.type==="MethodDefinition"&&t.value===e&&ss(e).length===0&&!e.returnType&&!jo(e.typeParameters)&&e.body),Qpe=(e,[t])=>t?.typeAnnotation===e&&CGe(t),LGe=(e,[t,...r])=>Qpe(e,[t])||t?.typeName===e&&Qpe(t,r);function $Ge(e,t){return NGe(e)||FGe(e,t)||RGe(e,t)?!1:e.type==="EmptyStatement"?oz({node:e,parent:t[0]}):!(LGe(e,t)||e.type==="TSTypeAnnotation"&&t[0].type==="TSPropertySignature")}var MGe=$Ge;function jGe(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function uz(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=jGe(e)}function Ni(e,t){t.leading=!0,t.trailing=!1,uz(e,t)}function Mc(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),uz(e,t)}function ni(e,t){t.leading=!1,t.trailing=!0,uz(e,t)}function BGe(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Hv(e,n),n=ez(e,n),n=tz(e,n),n=Zv(e,n);return n}var e1=BGe;function qGe(e,t){let r=e1(e,t);return r===!1?"":e.charAt(r)}var $u=qGe;function UGe(e,t,r){for(let n=t;nED(e)||!jc(t,Yr(e),Kr(e));function JGe(e){return[Yde,Kde,Wde,tHe,HGe,dz,_z,Vde,Gde,aHe,nHe,oHe,mz,Xde,sHe,Hde,Qde,fz,ZGe,fHe,e_e,hz].some(t=>t(e))}function VGe(e){return[GGe,Wde,Kde,Xde,dz,_z,Vde,Gde,Qde,rHe,iHe,mz,uHe,fz,dHe,_He,mHe,e_e,yHe,hHe,hz].some(t=>t(e))}function KGe(e){return[Yde,dz,_z,eHe,Hde,mz,YGe,XGe,fz,pHe,hz].some(t=>t(e))}function Tg(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?Ni(r,t):Mc(e,t)}function jU(e,t){e.type==="BlockStatement"?Tg(e,t):Ni(e,t)}function GGe({comment:e,followingNode:t}){return t&&Jde(e)?(Ni(t,e),!0):!1}function dz({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o}){if(r?.type!=="IfStatement"||!n)return!1;if($u(o,Kr(e))===")")return ni(t,e),!0;if(n.type==="BlockStatement"&&n===r.consequent&&Yr(e)>=Kr(t)&&Kr(e)<=Yr(n))return Ni(n,e),!0;if(t===r.consequent&&n===r.alternate){let i=e1(o,Kr(r.consequent));if(n.type==="BlockStatement"&&Yr(e)>=i&&Kr(e)<=Yr(n))return Ni(n,e),!0;if(Yr(e)"?(Mc(t,e),!0):!1}function eHe({comment:e,enclosingNode:t,text:r}){return $u(r,Kr(e))!==")"?!1:t&&(t_e(t)&&ss(t).length===0||Xv(t)&&qc(t).length===0)?(Mc(t,e),!0):(t?.type==="MethodDefinition"||t?.type==="TSAbstractMethodDefinition")&&ss(t.value).length===0?(Mc(t.value,e),!0):!1}function tHe({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o}){return t?.type==="ComponentTypeParameter"&&(r?.type==="DeclareComponent"||r?.type==="ComponentTypeAnnotation")&&n?.type!=="ComponentTypeParameter"||(t?.type==="ComponentParameter"||t?.type==="RestElement")&&r?.type==="ComponentDeclaration"&&$u(o,Kr(e))===")"?(ni(t,e),!0):!1}function Wde({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o}){return t?.type==="FunctionTypeParam"&&r?.type==="FunctionTypeAnnotation"&&n?.type!=="FunctionTypeParam"||(t?.type==="Identifier"||t?.type==="AssignmentPattern"||t?.type==="ObjectPattern"||t?.type==="ArrayPattern"||t?.type==="RestElement"||t?.type==="TSParameterProperty")&&t_e(r)&&$u(o,Kr(e))===")"?(ni(t,e),!0):!ju(e)&&n?.type==="BlockStatement"&&Zde(r)&&(r.type==="MethodDefinition"?r.value.body:r.body)===n&&e1(o,Kr(e))===Yr(n)?(Tg(n,e),!0):!1}function Qde({comment:e,enclosingNode:t}){return t?.type==="LabeledStatement"?(Ni(t,e),!0):!1}function fz({comment:e,enclosingNode:t}){return(t?.type==="ContinueStatement"||t?.type==="BreakStatement")&&!t.label?(ni(t,e),!0):!1}function rHe({comment:e,precedingNode:t,enclosingNode:r}){return jn(r)&&t&&r.callee===t&&r.arguments.length>0?(Ni(r.arguments[0],e),!0):!1}function nHe({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return id(r)?(Qv(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(ni(t,e),!0):!1):(id(n)&&Qv(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function oHe({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return r&&r.type==="MatchOrPattern"?(Qv(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(ni(t,e),!0):!1):(n&&n.type==="MatchOrPattern"&&Qv(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function iHe({comment:e,enclosingNode:t}){return Wm(t)?(Ni(t,e),!0):!1}function mz({comment:e,enclosingNode:t,ast:r,isLastComment:n}){return r?.body?.length===0?(n?Mc(r,e):Ni(r,e),!0):t?.type==="Program"&&t.body.length===0&&!jo(t.directives)?(n?Mc(t,e):Ni(t,e),!0):!1}function aHe({comment:e,enclosingNode:t,followingNode:r}){return(t?.type==="ForInStatement"||t?.type==="ForOfStatement")&&r!==t.body?(Ni(t,e),!0):!1}function Xde({comment:e,precedingNode:t,enclosingNode:r,text:n}){if(r?.type==="ImportSpecifier"||r?.type==="ExportSpecifier")return Ni(r,e),!0;let o=t?.type==="ImportSpecifier"&&r?.type==="ImportDeclaration",i=t?.type==="ExportSpecifier"&&r?.type==="ExportNamedDeclaration";return(o||i)&&nc(n,Kr(e))?(ni(t,e),!0):!1}function sHe({comment:e,enclosingNode:t}){return t?.type==="AssignmentPattern"?(Ni(t,e),!0):!1}var cHe=Ir(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),lHe=Ir(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function uHe({comment:e,enclosingNode:t,followingNode:r}){return cHe(t)&&r&&(lHe(r)||ju(e))?(Ni(r,e),!0):!1}function pHe({comment:e,enclosingNode:t,precedingNode:r,followingNode:n,text:o}){return!n&&(t?.type==="TSMethodSignature"||t?.type==="TSDeclareFunction"||t?.type==="TSAbstractMethodDefinition")&&(!r||r!==t.returnType)&&$u(o,Kr(e))===";"?(ni(t,e),!0):!1}function Yde({comment:e,enclosingNode:t,followingNode:r}){if(Qv(e)&&t?.type==="TSMappedType"&&r===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function e_e({comment:e,precedingNode:t,enclosingNode:r}){if(r?.type==="TSMappedType"&&!t)return Mc(r,e),!0}function dHe({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&ED(e)?Tg(r,e):Mc(t,e),!0)}function _He({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return id(t)&&((r.type==="TSArrayType"||r.type==="ArrayTypeAnnotation")&&!n||DD(r))?(ni(Vn(0,t.types,-1),e),!0):!1}function fHe({comment:e,enclosingNode:t,precedingNode:r,followingNode:n}){if((t?.type==="ObjectPattern"||t?.type==="ArrayPattern")&&n?.type==="TSTypeAnnotation")return r?ni(r,e):Mc(t,e),!0}function mHe({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o}){return!n&&r?.type==="UnaryExpression"&&(t?.type==="LogicalExpression"||t?.type==="BinaryExpression")&&jc(o,Yr(r.argument),Yr(t.right))&&pz(e,o)&&!jc(o,Yr(t.right),Yr(e))?(ni(t.right,e),!0):!1}function hHe({enclosingNode:e,followingNode:t,comment:r}){if(e&&(e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&(id(t)||DD(t)))return Ni(t,r),!0}function hz({enclosingNode:e,precedingNode:t,followingNode:r,comment:n,text:o}){if(Fu(e)&&t===e.expression&&!pz(n,o))return r?Ni(r,n):ni(e,n),!0}function yHe({comment:e,enclosingNode:t,followingNode:r,precedingNode:n}){return t&&r&&n&&t.type==="ArrowFunctionExpression"&&t.returnType===n&&(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation")?(Ni(r,e),!0):!1}var t_e=Ir(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),gHe={endOfLine:VGe,ownLine:JGe,remaining:KGe},SHe=gHe;function vHe(e,{parser:t}){if(t==="flow"||t==="hermes"||t==="babel-flow")return e=da(0,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}var bHe=vHe,xHe=Ir(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function EHe(e){let{key:t,parent:r}=e;if(t==="types"&&id(r)||t==="argument"&&r.type==="JSXSpreadAttribute"||t==="expression"&&r.type==="JSXSpreadChild"||t==="superClass"&&(r.type==="ClassDeclaration"||r.type==="ClassExpression")||(t==="id"||t==="typeParameters")&&xHe(r)||t==="patterns"&&r.type==="MatchOrPattern")return!0;let{node:n}=e;return H3(n)?!1:id(n)?Ude(e):!!_a(n)}var THe=EHe,Dg="string",V_="array",t1="cursor",Ag="indent",Ig="align",wg="trim",$l="group",Qm="fill",nd="if-break",kg="indent-if-break",Cg="line-suffix",Xm="line-suffix-boundary",ic="line",G_="label",H_="break-parent",r_e=new Set([t1,Ag,Ig,wg,$l,Qm,nd,kg,Cg,Xm,ic,G_,H_]);function DHe(e){if(typeof e=="string")return Dg;if(Array.isArray(e))return V_;if(!e)return;let{type:t}=e;if(r_e.has(t))return t}var Ym=DHe,AHe=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function IHe(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(Ym(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=AHe([...r_e].map(o=>`'${o}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var wHe=class extends Error{name="InvalidDocError";constructor(e){super(IHe(e)),this.doc=e}},SD=wHe,Xpe={};function kHe(e,t,r,n){let o=[e];for(;o.length>0;){let i=o.pop();if(i===Xpe){r(o.pop());continue}r&&o.push(i,Xpe);let a=Ym(i);if(!a)throw new SD(i);if(t?.(i)!==!1)switch(a){case V_:case Qm:{let s=a===V_?i:i.parts;for(let c=s.length,p=c-1;p>=0;--p)o.push(s[p]);break}case nd:o.push(i.flatContents,i.breakContents);break;case $l:if(n&&i.expandedStates)for(let s=i.expandedStates.length,c=s-1;c>=0;--c)o.push(i.expandedStates[c]);else o.push(i.contents);break;case Ig:case Ag:case kg:case G_:case Cg:o.push(i.contents);break;case Dg:case t1:case wg:case Xm:case ic:case H_:break;default:throw new SD(i)}}}var yz=kHe;function r1(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let a=o(i);return r.set(i,a),a}function o(i){switch(Ym(i)){case V_:return t(i.map(n));case Qm:return t({...i,parts:i.parts.map(n)});case nd:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case $l:{let{expandedStates:a,contents:s}=i;return a?(a=a.map(n),s=a[0]):s=n(s),t({...i,contents:s,expandedStates:a})}case Ig:case Ag:case kg:case G_:case Cg:return t({...i,contents:n(i.contents)});case Dg:case t1:case wg:case Xm:case ic:case H_:return t(i);default:throw new SD(i)}}}function n_e(e,t,r){let n=r,o=!1;function i(a){if(o)return!1;let s=t(a);s!==void 0&&(o=!0,n=s)}return yz(e,i),n}function CHe(e){if(e.type===$l&&e.break||e.type===ic&&e.hard||e.type===H_)return!0}function Os(e){return n_e(e,CHe,!1)}function Ype(e){if(e.length>0){let t=Vn(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function PHe(e){let t=new Set,r=[];function n(i){if(i.type===H_&&Ype(r),i.type===$l){if(r.push(i),t.has(i))return!1;t.add(i)}}function o(i){i.type===$l&&r.pop().break&&Ype(r)}yz(e,n,o,!0)}function OHe(e){return e.type===ic&&!e.hard?e.soft?"":" ":e.type===nd?e.flatContents:e}function U3(e){return r1(e,OHe)}function NHe(e){switch(Ym(e)){case Qm:if(e.parts.every(t=>t===""))return"";break;case $l:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===$l&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Ig:case Ag:case kg:case Cg:if(!e.contents)return"";break;case nd:if(!e.flatContents&&!e.breakContents)return"";break;case V_:{let t=[];for(let r of e){if(!r)continue;let[n,...o]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Vn(0,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...o)}return t.length===0?"":t.length===1?t[0]:t}case Dg:case t1:case wg:case Xm:case ic:case G_:case H_:break;default:throw new SD(e)}return e}function gz(e){return r1(e,t=>NHe(t))}function xg(e,t=c_e){return r1(e,r=>typeof r=="string"?dn(t,r.split(` +`)):r)}function FHe(e){if(e.type===ic)return!0}function RHe(e){return n_e(e,FHe,!1)}function BU(e,t){return e.type===G_?{...e,contents:t(e.contents)}:t(e)}function LHe(e){let t=!0;return yz(e,r=>{switch(Ym(r)){case Dg:if(r==="")break;case wg:case Xm:case ic:case H_:return t=!1,!1}}),t}var ad=Eg,o_e=Eg,$He=Eg,MHe=Eg;function Fe(e){return ad(e),{type:Ag,contents:e}}function Mu(e,t){return MHe(e),ad(t),{type:Ig,contents:t,n:e}}function jHe(e){return Mu(Number.NEGATIVE_INFINITY,e)}function i_e(e){return Mu(-1,e)}function BHe(e,t,r){ad(e);let n=e;if(t>0){for(let o=0;o0&&c(a),y()}function m(){s>0&&p(s),y()}function y(){a=0,s=0}}function QHe(e,t,r){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let n;return typeof t=="number"?t<0?n=WHe:n={type:2,width:t}:n={type:3,string:t},u_e(e,n,r)}function XHe(e,t){return u_e(e,ZHe,t)}function YHe(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];if(n===" "||n===" ")t++;else break}return t}function p_e(e){let t=YHe(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var rc=Symbol("MODE_BREAK"),rd=Symbol("MODE_FLAT"),qU=Symbol("DOC_FILL_PRINTED_LENGTH");function R3(e,t,r,n,o,i){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length,s=!1,c=[e],p="";for(;r>=0;){if(c.length===0){if(a===0)return!0;c.push(t[--a]);continue}let{mode:d,doc:f}=c.pop(),m=Ym(f);switch(m){case Dg:f&&(s&&(p+=" ",r-=1,s=!1),p+=f,r-=Gv(f));break;case V_:case Qm:{let y=m===V_?f:f.parts,g=f[qU]??0;for(let S=y.length-1;S>=g;S--)c.push({mode:d,doc:y[S]});break}case Ag:case Ig:case kg:case G_:c.push({mode:d,doc:f.contents});break;case wg:{let{text:y,count:g}=p_e(p);p=y,r+=g;break}case $l:{if(i&&f.break)return!1;let y=f.break?rc:d,g=f.expandedStates&&y===rc?Vn(0,f.expandedStates,-1):f.contents;c.push({mode:y,doc:g});break}case nd:{let y=(f.groupId?o[f.groupId]||rd:d)===rc?f.breakContents:f.flatContents;y&&c.push({mode:d,doc:y});break}case ic:if(d===rc||f.hard)return!0;f.soft||(s=!0);break;case Cg:n=!0;break;case Xm:if(n)return!1;break}}return!1}function d_e(e,t){let r=Object.create(null),n=t.printWidth,o=HHe(t.endOfLine),i=0,a=[{indent:l_e,mode:rc,doc:e}],s="",c=!1,p=[],d=[],f=[],m=[],y=0;for(PHe(e);a.length>0;){let{indent:I,mode:T,doc:k}=a.pop();switch(Ym(k)){case Dg:{let F=o!==` +`?da(0,k,` +`,o):k;F&&(s+=F,a.length>0&&(i+=Gv(F)));break}case V_:for(let F=k.length-1;F>=0;F--)a.push({indent:I,mode:T,doc:k[F]});break;case t1:if(d.length>=2)throw new Error("There are too many 'cursor' in doc.");d.push(y+s.length);break;case Ag:a.push({indent:XHe(I,t),mode:T,doc:k.contents});break;case Ig:a.push({indent:QHe(I,k.n,t),mode:T,doc:k.contents});break;case wg:E();break;case $l:switch(T){case rd:if(!c){a.push({indent:I,mode:k.break?rc:rd,doc:k.contents});break}case rc:{c=!1;let F={indent:I,mode:rd,doc:k.contents},O=n-i,$=p.length>0;if(!k.break&&R3(F,a,O,$,r))a.push(F);else if(k.expandedStates){let N=Vn(0,k.expandedStates,-1);if(k.break){a.push({indent:I,mode:rc,doc:N});break}else for(let U=1;U=k.expandedStates.length){a.push({indent:I,mode:rc,doc:N});break}else{let ge=k.expandedStates[U],Te={indent:I,mode:rd,doc:ge};if(R3(Te,a,O,$,r)){a.push(Te);break}}}else a.push({indent:I,mode:rc,doc:k.contents});break}}k.id&&(r[k.id]=Vn(0,a,-1).mode);break;case Qm:{let F=n-i,O=k[qU]??0,{parts:$}=k,N=$.length-O;if(N===0)break;let U=$[O+0],ge=$[O+1],Te={indent:I,mode:rd,doc:U},ke={indent:I,mode:rc,doc:U},Je=R3(Te,[],F,p.length>0,r,!0);if(N===1){Je?a.push(Te):a.push(ke);break}let me={indent:I,mode:rd,doc:ge},xe={indent:I,mode:rc,doc:ge};if(N===2){Je?a.push(me,Te):a.push(xe,ke);break}let Rt=$[O+2],Jt={indent:I,mode:T,doc:{...k,[qU]:O+2}},Yt=R3({indent:I,mode:rd,doc:[U,ge,Rt]},[],F,p.length>0,r,!0);a.push(Jt),Yt?a.push(me,Te):Je?a.push(xe,Te):a.push(xe,ke);break}case nd:case kg:{let F=k.groupId?r[k.groupId]:T;if(F===rc){let O=k.type===nd?k.breakContents:k.negate?k.contents:Fe(k.contents);O&&a.push({indent:I,mode:T,doc:O})}if(F===rd){let O=k.type===nd?k.flatContents:k.negate?Fe(k.contents):k.contents;O&&a.push({indent:I,mode:T,doc:O})}break}case Cg:p.push({indent:I,mode:T,doc:k.contents});break;case Xm:p.length>0&&a.push({indent:I,mode:T,doc:s_e});break;case ic:switch(T){case rd:if(k.hard)c=!0;else{k.soft||(s+=" ",i+=1);break}case rc:if(p.length>0){a.push({indent:I,mode:T,doc:k},...p.reverse()),p.length=0;break}k.literal?(s+=o,i=0,I.root&&(I.root.value&&(s+=I.root.value),i=I.root.length)):(E(),s+=o+I.value,i=I.length);break}break;case G_:a.push({indent:I,mode:T,doc:k.contents});break;case H_:break;default:throw new SD(k)}a.length===0&&p.length>0&&(a.push(...p.reverse()),p.length=0)}let g=f.join("")+s,S=[...m,...d];if(S.length!==2)return{formatted:g};let b=S[0];return{formatted:g,cursorNodeStart:b,cursorNodeText:g.slice(b,Vn(0,S,-1))};function E(){let{text:I,count:T}=p_e(s);I&&(f.push(I),y+=I.length),s="",i-=T,d.length>0&&(m.push(...d.map(k=>Math.min(k,y))),d.length=0)}}function eZe(e,t,r=0){let n=0;for(let o=r;o{if(i.push(r()),p.tail)return;let{tabWidth:d}=t,f=p.value.raw,m=f.includes(` +`)?nZe(f,d):s;s=m;let y=a[c],g=n[o][c],S=jc(t.originalText,Kr(p),Yr(n.quasis[c+1]));if(!S){let E=d_e(y,{...t,printWidth:Number.POSITIVE_INFINITY}).formatted;E.includes(` +`)?S=!0:y=E}S&&(rt(g)||g.type==="Identifier"||Mo(g)||g.type==="ConditionalExpression"||g.type==="SequenceExpression"||Fu(g)||J_(g))&&(y=[Fe([Pe,y]),Pe]);let b=m===0&&f.endsWith(` +`)?Mu(Number.NEGATIVE_INFINITY,y):BHe(y,m,d);i.push(de(["${",b,sd,"}"]))},"quasis"),i.push("`"),i}function oZe(e,t,r){let n=r("quasi"),{node:o}=e,i="",a=bg(o.quasi,St.Leading)[0];return a&&(jc(t.originalText,Kr(o.typeArguments??o.tag),Yr(a))?i=Pe:i=" "),AD(n.label&&{tagged:!0,...n.label},[r("tag"),r("typeArguments"),i,sd,n])}function iZe(e,t,r){let{node:n}=e,o=n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(o.length>1||o.some(i=>i.length>0)){t.__inJestEach=!0;let i=e.map(r,"expressions");t.__inJestEach=!1;let a=i.map(f=>"${"+d_e(f,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),s=[{hasLineBreak:!1,cells:[]}];for(let f=1;ff.cells.length)),p=Array.from({length:c}).fill(0),d=[{cells:o},...s.filter(f=>f.cells.length>0)];for(let{cells:f}of d.filter(m=>!m.hasLineBreak))for(let[m,y]of f.entries())p[m]=Math.max(p[m],Vv(y));return[ad,"`",Fe([Be,pn(Be,d.map(f=>pn(" | ",f.cells.map((m,y)=>f.hasLineBreak?m:m+" ".repeat(p[y]-Vv(m))))))]),Be,"`"]}}function oZe(e,t){let{node:r}=e,n=t();return rt(r)&&(n=de([Fe([Pe,n]),Pe])),["${",n,ad,"}"]}function yz(e,t){return e.map(()=>oZe(e,t),"expressions")}function d_e(e,t){return Yv(e,r=>typeof r=="string"?t?da(0,r,/(\\*)`/gu,"$1$1\\`"):__e(r):r)}function __e(e){return da(0,e,/([\\`]|\$\{)/gu,"\\$1")}function iZe({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/u;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}var BU=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function aZe(e){let t=n=>n.type==="TemplateLiteral",r=(n,o)=>Gm(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&o==="value";return e.match(t,(n,o)=>Fa(n)&&o==="elements",r,...BU)||e.match(t,r,...BU)}function sZe(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>Gm(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...BU)}function DU(e,t){return rt(e,St.Block|St.Leading,({value:r})=>r===` ${t} `)}function f_e({node:e,parent:t},r){return DU(e,r)||cZe(t)&&DU(t,r)||t.type==="ExpressionStatement"&&DU(t,r)}function cZe(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function lZe(e,t,r){let{node:n}=r,o="";for(let[c,p]of n.quasis.entries()){let{raw:d}=p.value;c>0&&(o+="@prettier-placeholder-"+(c-1)+"-id"),o+=d}let i=await e(o,{parser:"scss"}),a=yz(r,t),s=uZe(i,a);if(!s)throw new Error("Couldn't insert all the expressions");return["`",Fe([Be,s]),Pe,"`"]}function uZe(e,t){if(!jo(t))return e;let r=0,n=Yv(hz(e),o=>typeof o!="string"||!o.includes("@prettier-placeholder")?o:o.split(/@prettier-placeholder-(\d+)-id/u).map((i,a)=>a%2===0?gg(i):(r++,t[i])));return t.length===r?n:null}function pZe(e){return e.match(void 0,(t,r)=>r==="quasi"&&t.type==="TaggedTemplateExpression"&&tz(t.tag,["css","css.global","css.resolve"]))||e.match(void 0,(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer",(t,r)=>r==="children"&&t.type==="JSXElement"&&t.openingElement.name.type==="JSXIdentifier"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.type==="JSXIdentifier"&&n.name.name==="jsx"))}function F3(e){return e.type==="Identifier"&&e.name==="styled"}function Ype(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function dZe({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return F3(t.object)||Ype(t);case"CallExpression":return F3(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(F3(t.callee.object.object)||Ype(t.callee.object))||t.callee.object.type==="CallExpression"&&F3(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function _Ze({parent:e,grandparent:t}){return t?.type==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}var fZe=e=>pZe(e)||dZe(e)||_Ze(e)||aZe(e);async function mZe(e,t,r){let{node:n}=r,o=n.quasis.length,i=yz(r,t),a=[];for(let s=0;s2&&m[0].trim()===""&&m[1].trim()==="",x=y>2&&m[y-1].trim()===""&&m[y-2].trim()==="",A=m.every(E=>/^\s*(?:#[^\n\r]*)?$/u.test(E));if(!d&&/#[^\n\r]*$/u.test(m[y-1]))return null;let I=null;A?I=hZe(m):I=await e(f,{parser:"graphql"}),I?(I=d_e(I,!1),!p&&S&&a.push(""),a.push(I),!d&&x&&a.push("")):!p&&!d&&S&&a.push(""),g&&a.push(g)}return["`",Fe([Be,pn(Be,a)]),Be,"`"]}function hZe(e){let t=[],r=!1,n=e.map(o=>o.trim());for(let[o,i]of n.entries())i!==""&&(n[o-1]===""&&r?t.push([Be,i]):t.push(i),r=!0);return t.length===0?null:pn(Be,t)}function yZe({node:e,parent:t}){return f_e({node:e,parent:t},"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}var AU=0;async function m_e(e,t,r,n,o){let{node:i}=n,a=AU;AU=AU+1>>>0;let s=A=>`PRETTIER_HTML_PLACEHOLDER_${A}_${a}_IN_JS`,c=i.quasis.map((A,I,E)=>I===E.length-1?A.value.cooked:A.value.cooked+s(I)).join(""),p=yz(n,r),d=new RegExp(s("(\\d+)"),"gu"),f=0,m=await t(c,{parser:e,__onHtmlRoot(A){f=A.children.length}}),y=Yv(m,A=>{if(typeof A!="string")return A;let I=[],E=A.split(d);for(let C=0;C1?Fe(de(y)):de(y),S,"`"]))}function gZe(e){return f_e(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var SZe=m_e.bind(void 0,"html"),vZe=m_e.bind(void 0,"angular");async function bZe(e,t,r){let{node:n}=r,o=da(0,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(c,p)=>"\\".repeat(p.length/2)+"`"),i=xZe(o),a=i!=="";a&&(o=da(0,o,new RegExp(`^${i}`,"gmu"),""));let s=d_e(await e(o,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",a?Fe([Pe,s]):[a_e,$He(s)],Pe,"`"]}function xZe(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function EZe({node:e,parent:t}){return t?.type==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var TZe=[{test:fZe,print:lZe},{test:yZe,print:mZe},{test:gZe,print:SZe},{test:sZe,print:vZe},{test:EZe,print:bZe}].map(({test:e,print:t})=>({test:e,print:AZe(t)}));function DZe(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||wZe(t))return;let r=TZe.find(({test:n})=>n(e));if(r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":r.print}function AZe(e){return async(...t)=>{let r=await e(...t);return r&&TD({embed:!0,...r.label},r)}}function wZe({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var IZe=DZe,kZe=/\*\/$/,CZe=/^\/\*\*?/,h_e=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,PZe=/(^|\s+)\/\/([^\n\r]*)/g,ede=/^(\r?\n)+/,OZe=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,tde=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,NZe=/(\r?\n|^) *\* ?/g,y_e=[];function FZe(e){let t=e.match(h_e);return t?t[0].trimStart():""}function RZe(e){let t=e.match(h_e)?.[0];return t==null?e:e.slice(t.length)}function LZe(e){e=da(0,e.replace(CZe,"").replace(kZe,""),NZe,"$1");let t="";for(;t!==e;)t=e,e=da(0,e,OZe,` +`)&&s.push({hasLineBreak:!1,cells:[]})}let c=Math.max(o.length,...s.map(f=>f.cells.length)),p=Array.from({length:c}).fill(0),d=[{cells:o},...s.filter(f=>f.cells.length>0)];for(let{cells:f}of d.filter(m=>!m.hasLineBreak))for(let[m,y]of f.entries())p[m]=Math.max(p[m],Gv(y));return[sd,"`",Fe([Be,dn(Be,d.map(f=>dn(" | ",f.cells.map((m,y)=>f.hasLineBreak?m:m+" ".repeat(p[y]-Gv(m))))))]),Be,"`"]}}function aZe(e,t){let{node:r}=e,n=t();return rt(r)&&(n=de([Fe([Pe,n]),Pe])),["${",n,sd,"}"]}function Sz(e,t){return e.map(()=>aZe(e,t),"expressions")}function f_e(e,t){return r1(e,r=>typeof r=="string"?t?da(0,r,/(\\*)`/gu,"$1$1\\`"):m_e(r):r)}function m_e(e){return da(0,e,/([\\`]|\$\{)/gu,"\\$1")}function sZe({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/u;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}var UU=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function cZe(e){let t=n=>n.type==="TemplateLiteral",r=(n,o)=>Wm(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&o==="value";return e.match(t,(n,o)=>Fa(n)&&o==="elements",r,...UU)||e.match(t,r,...UU)}function lZe(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>Wm(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...UU)}function IU(e,t){return rt(e,St.Block|St.Leading,({value:r})=>r===` ${t} `)}function h_e({node:e,parent:t},r){return IU(e,r)||uZe(t)&&IU(t,r)||t.type==="ExpressionStatement"&&IU(t,r)}function uZe(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function pZe(e,t,r){let{node:n}=r,o="";for(let[c,p]of n.quasis.entries()){let{raw:d}=p.value;c>0&&(o+="@prettier-placeholder-"+(c-1)+"-id"),o+=d}let i=await e(o,{parser:"scss"}),a=Sz(r,t),s=dZe(i,a);if(!s)throw new Error("Couldn't insert all the expressions");return["`",Fe([Be,s]),Pe,"`"]}function dZe(e,t){if(!jo(t))return e;let r=0,n=r1(gz(e),o=>typeof o!="string"||!o.includes("@prettier-placeholder")?o:o.split(/@prettier-placeholder-(\d+)-id/u).map((i,a)=>a%2===0?xg(i):(r++,t[i])));return t.length===r?n:null}function _Ze(e){return e.match(void 0,(t,r)=>r==="quasi"&&t.type==="TaggedTemplateExpression"&&nz(t.tag,["css","css.global","css.resolve"]))||e.match(void 0,(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer",(t,r)=>r==="children"&&t.type==="JSXElement"&&t.openingElement.name.type==="JSXIdentifier"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.type==="JSXIdentifier"&&n.name.name==="jsx"))}function L3(e){return e.type==="Identifier"&&e.name==="styled"}function tde(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function fZe({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return L3(t.object)||tde(t);case"CallExpression":return L3(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(L3(t.callee.object.object)||tde(t.callee.object))||t.callee.object.type==="CallExpression"&&L3(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function mZe({parent:e,grandparent:t}){return t?.type==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}var hZe=e=>_Ze(e)||fZe(e)||mZe(e)||cZe(e);async function yZe(e,t,r){let{node:n}=r,o=n.quasis.length,i=Sz(r,t),a=[];for(let s=0;s2&&m[0].trim()===""&&m[1].trim()==="",b=y>2&&m[y-1].trim()===""&&m[y-2].trim()==="",E=m.every(T=>/^\s*(?:#[^\n\r]*)?$/u.test(T));if(!d&&/#[^\n\r]*$/u.test(m[y-1]))return null;let I=null;E?I=gZe(m):I=await e(f,{parser:"graphql"}),I?(I=f_e(I,!1),!p&&S&&a.push(""),a.push(I),!d&&b&&a.push("")):!p&&!d&&S&&a.push(""),g&&a.push(g)}return["`",Fe([Be,dn(Be,a)]),Be,"`"]}function gZe(e){let t=[],r=!1,n=e.map(o=>o.trim());for(let[o,i]of n.entries())i!==""&&(n[o-1]===""&&r?t.push([Be,i]):t.push(i),r=!0);return t.length===0?null:dn(Be,t)}function SZe({node:e,parent:t}){return h_e({node:e,parent:t},"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}var wU=0;async function y_e(e,t,r,n,o){let{node:i}=n,a=wU;wU=wU+1>>>0;let s=E=>`PRETTIER_HTML_PLACEHOLDER_${E}_${a}_IN_JS`,c=i.quasis.map((E,I,T)=>I===T.length-1?E.value.cooked:E.value.cooked+s(I)).join(""),p=Sz(n,r),d=new RegExp(s("(\\d+)"),"gu"),f=0,m=await t(c,{parser:e,__onHtmlRoot(E){f=E.children.length}}),y=r1(m,E=>{if(typeof E!="string")return E;let I=[],T=E.split(d);for(let k=0;k1?Fe(de(y)):de(y),S,"`"]))}function vZe(e){return h_e(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var bZe=y_e.bind(void 0,"html"),xZe=y_e.bind(void 0,"angular");async function EZe(e,t,r){let{node:n}=r,o=da(0,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(c,p)=>"\\".repeat(p.length/2)+"`"),i=TZe(o),a=i!=="";a&&(o=da(0,o,new RegExp(`^${i}`,"gmu"),""));let s=f_e(await e(o,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",a?Fe([Pe,s]):[c_e,jHe(s)],Pe,"`"]}function TZe(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function DZe({node:e,parent:t}){return t?.type==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var AZe=[{test:hZe,print:pZe},{test:SZe,print:yZe},{test:vZe,print:bZe},{test:lZe,print:xZe},{test:DZe,print:EZe}].map(({test:e,print:t})=>({test:e,print:wZe(t)}));function IZe(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||kZe(t))return;let r=AZe.find(({test:n})=>n(e));if(r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":r.print}function wZe(e){return async(...t)=>{let r=await e(...t);return r&&AD({embed:!0,...r.label},r)}}function kZe({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var CZe=IZe,PZe=/\*\/$/,OZe=/^\/\*\*?/,g_e=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,NZe=/(^|\s+)\/\/([^\n\r]*)/g,rde=/^(\r?\n)+/,FZe=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,nde=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,RZe=/(\r?\n|^) *\* ?/g,S_e=[];function LZe(e){let t=e.match(g_e);return t?t[0].trimStart():""}function $Ze(e){let t=e.match(g_e)?.[0];return t==null?e:e.slice(t.length)}function MZe(e){e=da(0,e.replace(OZe,"").replace(PZe,""),RZe,"$1");let t="";for(;t!==e;)t=e,e=da(0,e,FZe,` $1 $2 -`);e=e.replace(ede,"").trimEnd();let r=Object.create(null),n=da(0,e,tde,"").replace(ede,"").trimEnd(),o;for(;o=tde.exec(e);){let i=da(0,o[2],PZe,"");if(typeof r[o[1]]=="string"||Array.isArray(r[o[1]])){let a=r[o[1]];r[o[1]]=[...y_e,...Array.isArray(a)?a:[a],i]}else r[o[1]]=i}return{comments:n,pragmas:r}}function $Ze({comments:e="",pragmas:t={}}){let r=Object.keys(t),n=r.flatMap(i=>rde(i,t[i])).map(i=>` * ${i} -`).join("");if(!e){if(r.length===0)return"";if(r.length===1&&!Array.isArray(t[r[0]])){let i=t[r[0]];return`/** ${rde(r[0],i)[0]} */`}}let o=e.split(` +`);e=e.replace(rde,"").trimEnd();let r=Object.create(null),n=da(0,e,nde,"").replace(rde,"").trimEnd(),o;for(;o=nde.exec(e);){let i=da(0,o[2],NZe,"");if(typeof r[o[1]]=="string"||Array.isArray(r[o[1]])){let a=r[o[1]];r[o[1]]=[...S_e,...Array.isArray(a)?a:[a],i]}else r[o[1]]=i}return{comments:n,pragmas:r}}function jZe({comments:e="",pragmas:t={}}){let r=Object.keys(t),n=r.flatMap(i=>ode(i,t[i])).map(i=>` * ${i} +`).join("");if(!e){if(r.length===0)return"";if(r.length===1&&!Array.isArray(t[r[0]])){let i=t[r[0]];return`/** ${ode(r[0],i)[0]} */`}}let o=e.split(` `).map(i=>` * ${i}`).join(` `)+` `;return`/** `+(e?o:"")+(e&&r.length>0?` * -`:"")+n+" */"}function rde(e,t){return[...y_e,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}var MZe="format";function jZe(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` -`);return t===-1?e:e.slice(0,t)}var BZe=jZe;function qZe(e){let t=BZe(e);t&&(e=e.slice(t.length+1));let r=FZe(e),{pragmas:n,comments:o}=LZe(r);return{shebang:t,text:e,pragmas:n,comments:o}}function UZe(e){let{shebang:t,text:r,pragmas:n,comments:o}=qZe(e),i=RZe(r),a=$Ze({pragmas:{[MZe]:"",...n},comments:o.trimStart()});return(t?`${t} +`:"")+n+" */"}function ode(e,t){return[...S_e,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}var BZe="format";function qZe(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var UZe=qZe;function zZe(e){let t=UZe(e);t&&(e=e.slice(t.length+1));let r=LZe(e),{pragmas:n,comments:o}=MZe(r);return{shebang:t,text:e,pragmas:n,comments:o}}function JZe(e){let{shebang:t,text:r,pragmas:n,comments:o}=zZe(e),i=$Ze(r),a=jZe({pragmas:{[BZe]:"",...n},comments:o.trimStart()});return(t?`${t} `:"")+a+(i.startsWith(` `)?` `:` -`)+i}function zZe(e){if(!Mu(e))return!1;let t=`*${e.value}*`.split(` -`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var wU=new WeakMap;function VZe(e){return wU.has(e)||wU.set(e,zZe(e)),wU.get(e)}var JZe=VZe;function KZe(e,t){let r=e.node;if(bD(r))return t.originalText.slice(Xr(r),Jr(r)).trimEnd();if(JZe(r))return GZe(r);if(Mu(r))return["/*",gg(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function GZe(e){let t=e.value.split(` -`);return["/*",pn(Be,t.map((r,n)=>n===0?r.trimEnd():" "+(na.type==="ForOfStatement")?.left;if(i&&Ps(i,a=>a===r))return!0}if(n==="object"&&r.name==="let"&&o.type==="MemberExpression"&&o.computed&&!o.optional){let i=e.findAncestor(s=>s.type==="ExpressionStatement"||s.type==="ForStatement"||s.type==="ForInStatement"),a=i?i.type==="ExpressionStatement"?i.expression:i.type==="ForStatement"?i.init:i.left:void 0;if(a&&Ps(a,s=>s===r))return!0}if(n==="expression")switch(r.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let i=e.findAncestor(a=>!Nu(a));if(i!==o&&i.type==="ExpressionStatement")return!0}}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let i=e.findAncestor(a=>a.type==="ExpressionStatement")?.expression;if(i&&Ps(i,a=>a===r))return!0}if(r.type==="ObjectExpression"){let i=e.findAncestor(a=>a.type==="ArrowFunctionExpression")?.body;if(i&&i.type!=="SequenceExpression"&&i.type!=="AssignmentExpression"&&Ps(i,a=>a===r))return!0}switch(o.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&&jo(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return g_e(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"&&!YZe(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(i,a)=>a==="returnType"&&i.type==="ArrowFunctionExpression")&&WZe(r))return!0;break;case"BinaryExpression":if(n==="left"&&(o.operator==="in"||o.operator==="instanceof")&&r.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(n==="init"&&e.match(void 0,void 0,(i,a)=>a==="declarations"&&i.type==="VariableDeclaration",(i,a)=>a==="left"&&i.type==="ForInStatement"))return!0;break}switch(r.type){case"UpdateExpression":if(o.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&o.operator==="+"||r.operator==="--"&&o.operator==="-");case"UnaryExpression":switch(o.type){case"UnaryExpression":return r.operator===o.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&o.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(o.type==="UpdateExpression"||r.operator==="in"&&ZZe(e))return!0;if(r.operator==="|>"&&r.extra?.parenthesized){let i=e.grandparent;if(i.type==="BinaryExpression"&&i.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(o.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!Nu(r);case"ConditionalExpression":return Nu(r)||dGe(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||Nu(r));case"LogicalExpression":if(r.type==="LogicalExpression")return o.operator!==r.operator;case"BinaryExpression":{let{operator:i,type:a}=r;if(!i&&a!=="TSTypeAssertion")return!0;let s=M3(i),c=o.operator,p=M3(c);return!!(p>s||n==="right"&&p===s||p===s&&!sz(c,i)||p");default:return!1}case"TSFunctionType":if(e.match(i=>i.type==="TSFunctionType",(i,a)=>a==="typeAnnotation"&&i.type==="TSTypeAnnotation",(i,a)=>a==="returnType"&&i.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(n==="extendsType"&&Km(r)&&o.type===r.type||n==="checkType"&&Km(o))return!0;if(n==="extendsType"&&o.type==="TSConditionalType"){let{typeAnnotation:i}=r.returnType||r.typeAnnotation;if(i.type==="TSTypePredicate"&&i.typeAnnotation&&(i=i.typeAnnotation.typeAnnotation),i.type==="TSInferType"&&i.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(od(o)||ED(o))return!0;case"TSInferType":if(r.type==="TSInferType"){if(o.type==="TSRestType")return!1;if(n==="types"&&(o.type==="TSUnionType"||o.type==="TSIntersectionType")&&r.typeParameter.type==="TSTypeParameter"&&r.typeParameter.constraint)return!0}case"TSTypeOperator":return o.type==="TSArrayType"||o.type==="TSOptionalType"||o.type==="TSRestType"||n==="objectType"&&o.type==="TSIndexedAccessType"||o.type==="TSTypeOperator"||o.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&o.type==="TSIndexedAccessType"||n==="elementType"&&o.type==="TSArrayType";case"TypeOperator":return o.type==="ArrayTypeAnnotation"||o.type==="NullableTypeAnnotation"||n==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType")||o.type==="TypeOperator";case"TypeofTypeAnnotation":return n==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType")||n==="elementType"&&o.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return o.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return o.type==="TypeOperator"||o.type==="KeyofTypeAnnotation"||o.type==="ArrayTypeAnnotation"||o.type==="NullableTypeAnnotation"||o.type==="IntersectionTypeAnnotation"||o.type==="UnionTypeAnnotation"||n==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return o.type==="ArrayTypeAnnotation"||n==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(r.type==="ComponentTypeAnnotation"&&(r.rendersType===null||r.rendersType===void 0))return!1;if(e.match(void 0,(a,s)=>s==="typeAnnotation"&&a.type==="TypeAnnotation",(a,s)=>s==="returnType"&&a.type==="ArrowFunctionExpression")||e.match(void 0,(a,s)=>s==="typeAnnotation"&&a.type==="TypePredicate",(a,s)=>s==="typeAnnotation"&&a.type==="TypeAnnotation",(a,s)=>s==="returnType"&&a.type==="ArrowFunctionExpression"))return!0;let i=o.type==="NullableTypeAnnotation"?e.grandparent:o;return i.type==="UnionTypeAnnotation"||i.type==="IntersectionTypeAnnotation"||i.type==="ArrayTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType")||n==="checkType"&&o.type==="ConditionalTypeAnnotation"||n==="extendsType"&&o.type==="ConditionalTypeAnnotation"&&r.returnType?.type==="InferTypeAnnotation"&&r.returnType?.typeParameter.bound||i.type==="NullableTypeAnnotation"||o.type==="FunctionTypeParam"&&o.name===null&&ss(r).some(a=>a.typeAnnotation?.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return n==="objectType"&&o.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&o.type==="ExpressionStatement"&&typeof o.directive!="string"){let i=e.grandparent;return i.type==="Program"||i.type==="BlockStatement"}return n==="object"&&Mo(o)&&nd(r);case"AssignmentExpression":return!((n==="init"||n==="update")&&o.type==="ForStatement"||n==="expression"&&r.left.type!=="ObjectPattern"&&o.type==="ExpressionStatement"||n==="key"&&o.type==="TSPropertySignature"||o.type==="AssignmentExpression"||n==="expressions"&&o.type==="SequenceExpression"&&e.match(void 0,void 0,(i,a)=>(a==="init"||a==="update")&&i.type==="ForStatement")||n==="value"&&o.type==="Property"&&e.match(void 0,void 0,(i,a)=>a==="properties"&&i.type==="ObjectPattern")||o.type==="NGChainedExpression"||n==="node"&&o.type==="JsExpressionRoot");case"ConditionalExpression":switch(o.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(o.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(o.type){case"BinaryExpression":return o.operator!=="|>"||r.extra?.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":case"MatchExpressionCase":return!0;case"TSInstantiationExpression":return n==="expression";case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":return o.type==="NewExpression"?n==="callee":!1;case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(XZe(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(o.type==="BindExpression"||o.type==="NewExpression")){let i=r;for(;i;)switch(i.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":i=i.object;break;case"TaggedTemplateExpression":i=i.tag;break;case"TSNonNullExpression":i=i.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(o.type==="BindExpression"||o.type==="NewExpression")||n==="object"&&Mo(o);case"NGPipeExpression":return!(o.type==="NGRoot"||o.type==="NGMicrosyntaxExpression"||o.type==="ObjectProperty"&&!r.extra?.parenthesized||Fa(o)||n==="arguments"&&jn(o)||n==="right"&&o.type==="NGPipeExpression"||n==="property"&&o.type==="MemberExpression"||o.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&o.type==="BinaryExpression"&&o.operator==="<"||!Fa(o)&&o.type!=="ArrowFunctionExpression"&&o.type!=="AssignmentExpression"&&o.type!=="AssignmentPattern"&&o.type!=="BinaryExpression"&&o.type!=="NewExpression"&&o.type!=="ConditionalExpression"&&o.type!=="ExpressionStatement"&&o.type!=="JsExpressionRoot"&&o.type!=="JSXAttribute"&&o.type!=="JSXElement"&&o.type!=="JSXExpressionContainer"&&o.type!=="JSXFragment"&&o.type!=="LogicalExpression"&&!jn(o)&&!Gm(o)&&o.type!=="ReturnStatement"&&o.type!=="ThrowStatement"&&o.type!=="TypeCastExpression"&&o.type!=="VariableDeclarator"&&o.type!=="YieldExpression"&&o.type!=="MatchExpressionCase";case"TSInstantiationExpression":return n==="object"&&Mo(o);case"MatchOrPattern":return o.type==="MatchAsPattern"}return!1}var HZe=wr(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function ZZe(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if(n?.type==="ForStatement"&&n.init===r)return!0;r=n}return!1}function WZe(e){return FU(e,t=>t.type==="ObjectTypeAnnotation"&&FU(t,r=>r.type==="FunctionTypeAnnotation"))}function QZe(e){return Ru(e)}function pD(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(pD);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(pD);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(pD);break;case"UnaryExpression":if(t.prefix)return e.callParent(pD);break}return!1}function g_e(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!qU(e,t):!nz(r)||n.type!=="ExportDefaultDeclaration"&&qU(e,t)?!1:e.call(()=>g_e(e,t),...Cde(r))}function XZe(e){return!!(e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&(t.type==="CallExpression"||t.type==="NewExpression"))||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression")||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression")&&(e.match(void 0,void 0,(t,r)=>r==="callee"&&(t.type==="CallExpression"&&!t.optional||t.type==="NewExpression")||r==="object"&&t.type==="MemberExpression"&&!t.optional)||e.match(void 0,void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))}function UU(e){return e.type==="Identifier"?!0:Mo(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&UU(e.object):!1}function YZe(e){return e.type==="ChainExpression"&&(e=e.expression),UU(e)||jn(e)&&!e.optional&&UU(e.callee)}var Qm=qU;function eWe(e,t){let r=t-1;r=Jv(e,r,{backwards:!0}),r=Kv(e,r,{backwards:!0}),r=Jv(e,r,{backwards:!0});let n=Kv(e,r,{backwards:!0});return r!==n}var tWe=eWe,rWe=()=>!0;function gz(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function nWe(e,t){let r=e.node,n=[gz(e,t)],{printer:o,originalText:i,locStart:a,locEnd:s}=t;if(o.isBlockComment?.(r)){let p=nc(i,s(r))?nc(i,a(r),{backwards:!0})?Be:at:" ";n.push(p)}else n.push(Be);let c=Kv(i,Jv(i,s(r)));return c!==!1&&nc(i,c)&&n.push(Be),n}function oWe(e,t,r){let n=e.node,o=gz(e,t),{printer:i,originalText:a,locStart:s}=t,c=i.isBlockComment?.(n);if(r?.hasLineSuffix&&!r?.isBlock||nc(a,s(n),{backwards:!0})){let p=tWe(a,s(n));return{doc:Xpe([Be,p?Be:"",o]),isBlock:c,hasLineSuffix:!0}}return!c||r?.hasLineSuffix?{doc:[Xpe([" ",o]),V_],isBlock:c,hasLineSuffix:!0}:{doc:[" ",o],isBlock:c,hasLineSuffix:!1}}function $o(e,t,r={}){let{node:n}=e;if(!jo(n?.comments))return"";let{indent:o=!1,marker:i,filter:a=rWe}=r,s=[];if(e.each(({node:p})=>{p.leading||p.trailing||p.marker!==i||!a(p)||s.push(gz(e,t))},"comments"),s.length===0)return"";let c=pn(Be,s);return o?Fe([Be,c]):c}function G3(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(s=>!n.has(s)).length===0)return{leading:"",trailing:""};let o=[],i=[],a;return e.each(()=>{let s=e.node;if(n?.has(s))return;let{leading:c,trailing:p}=s;c?o.push(nWe(e,t)):p&&(a=oWe(e,t,a),i.push(a.doc))},"comments"),{leading:o,trailing:i}}function Rl(e,t,r){let{leading:n,trailing:o}=G3(e,r);return!n&&!o?t:MU(t,i=>[n,i,o])}var q3=class extends Error{name="ArgExpansionBailout"};function wg(e,t,r,n,o){let i=e.node,a=ss(i),s=o&&i.typeParameters?r("typeParameters"):"";if(a.length===0)return[s,"(",$o(e,t,{filter:y=>Lu(t.originalText,Jr(y))===")"}),")"];let{parent:c}=e,p=J3(c),d=S_e(i),f=[];if(wGe(e,(y,g)=>{let S=g===a.length-1;S&&i.rest&&f.push("..."),f.push(r()),!S&&(f.push(","),p||d?f.push(" "):cd(a[g],t)?f.push(Be,Be):f.push(at))}),n&&!aWe(e)){if(Os(s)||Os(f))throw new q3;return de([B3(s),"(",B3(f),")"])}let m=a.every(y=>!jo(y.decorators));return d&&m?[s,"(",...f,")"]:p?[s,"(",...f,")"]:(Nde(c)||hGe(c)||c.type==="TypeAlias"||c.type==="UnionTypeAnnotation"||c.type==="IntersectionTypeAnnotation"||c.type==="FunctionTypeAnnotation"&&c.returnType===i)&&a.length===1&&a[0].name===null&&i.this!==a[0]&&a[0].typeAnnotation&&i.typeParameters===null&&iz(a[0].typeAnnotation)&&!i.rest?t.arrowParens==="always"||i.type==="HookTypeAnnotation"?["(",...f,")"]:f:[s,"(",Fe([Pe,...f]),Sr(!AGe(i)&&sd(t,"all")?",":""),Pe,")"]}function S_e(e){if(!e)return!1;let t=ss(e);if(t.length!==1)return!1;let[r]=t;return!rt(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&Jm(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&Jm(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||Ru(r.right)&&r.right.properties.length===0||Fa(r.right)&&r.right.elements.length===0))}function iWe(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function e1(e,t){let r=iWe(e);if(!r)return!1;let n=e.typeParameters?.params;if(n){if(n.length>1)return!1;if(n.length===1){let o=n[0];if(o.constraint||o.default)return!1}}return ss(e).length===1&&(Jm(r)||Os(t))}function aWe(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function sWe(e){let t=ss(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}function _D(e,t){return(t==="params"||t==="this"||t==="rest")&&S_e(e)}function Ns(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":jn(t)||Mo(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function v_e(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var cWe=wr(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function Bc(e){let{node:t}=e;return t.declare||cWe(t)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var lWe=wr(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function H3({node:e}){return e.abstract||lWe(e)?"abstract ":""}function zm(e,t,r){return e.type==="EmptyStatement"?rt(e,St.Leading)?[" ",t]:t:e.type==="BlockStatement"||r?[" ",t]:Fe([at,t])}function Z3(e){return e.accessibility?e.accessibility+" ":""}var uWe=/^[\$A-Z_a-z\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\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\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\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][\$0-9A-Z_a-z\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\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\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\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\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\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-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\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\u200C\u200D\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\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]*$/,pWe=e=>uWe.test(e),dWe=pWe;function _We(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var Wv=_We,fWe=0;function b_e(e,t,r){let{node:n,parent:o,grandparent:i,key:a}=e,s=a!=="body"&&(o.type==="IfStatement"||o.type==="WhileStatement"||o.type==="SwitchStatement"||o.type==="DoWhileStatement"),c=n.operator==="|>"&&e.root.extra?.__isUsingHackPipeline,p=zU(e,t,r,!1,s);if(s)return p;if(c)return de(p);if(a==="callee"&&(jn(o)||o.type==="NewExpression")||o.type==="UnaryExpression"||Mo(o)&&!o.computed)return de([Fe([Pe,...p]),Pe]);let d=o.type==="ReturnStatement"||o.type==="ThrowStatement"||o.type==="JSXExpressionContainer"&&i.type==="JSXAttribute"||n.operator!=="|"&&o.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(o.type==="NGRoot"&&t.parser==="__ng_binding"||o.type==="NGMicrosyntaxExpression"&&i.type==="NGMicrosyntax"&&i.body.length===1)||n===o.body&&o.type==="ArrowFunctionExpression"||n!==o.body&&o.type==="ForStatement"||o.type==="ConditionalExpression"&&i.type!=="ReturnStatement"&&i.type!=="ThrowStatement"&&!jn(i)&&i.type!=="NewExpression"||o.type==="TemplateLiteral"||hWe(e),f=o.type==="AssignmentExpression"||o.type==="VariableDeclarator"||o.type==="ClassProperty"||o.type==="PropertyDefinition"||o.type==="TSAbstractPropertyDefinition"||o.type==="ClassPrivateProperty"||Gm(o),m=U_(n.left)&&sz(n.operator,n.left.operator);if(d||SD(n)&&!m||!SD(n)&&f)return de(p);if(p.length===0)return"";let y=_a(n.right),g=p.findIndex(C=>typeof C!="string"&&!Array.isArray(C)&&C.type===Ll),S=p.slice(0,g===-1?1:g+1),x=p.slice(S.length,y?-1:void 0),A=Symbol("logicalChain-"+ ++fWe),I=de([...S,Fe(x)],{id:A});if(!y)return I;let E=Jn(0,p,-1);return de([I,gD(E,{groupId:A})])}function zU(e,t,r,n,o){let{node:i}=e;if(!U_(i))return[de(r())];let a=[];sz(i.operator,i.left.operator)?a=e.call(()=>zU(e,t,r,!0,o),"left"):a.push(de(r("left")));let s=SD(i),c=i.right.type==="ChainExpression"?i.right.expression:i.right,p=(i.operator==="|>"||i.type==="NGPipeExpression"||mWe(e,t))&&!Fu(t.originalText,c),d=!rt(c,St.Leading,Ude)&&Fu(t.originalText,c),f=i.type==="NGPipeExpression"?"|":i.operator,m=i.type==="NGPipeExpression"&&i.arguments.length>0?de(Fe([Pe,": ",pn([at,": "],e.map(()=>$u(2,de(r())),"arguments"))])):"",y;if(s)y=[f,Fu(t.originalText,c)?Fe([at,r("right"),m]):[" ",r("right"),m]];else{let x=f==="|>"&&e.root.extra?.__isUsingHackPipeline?e.call(()=>zU(e,t,r,!0,o),"right"):r("right");if(t.experimentalOperatorPosition==="start"){let A="";if(d)switch(Wm(x)){case z_:A=x.splice(0,1)[0];break;case J_:A=x.contents.splice(0,1)[0];break}y=[at,A,f," ",x,m]}else y=[p?at:"",f,p?" ":at,x,m]}let{parent:g}=e,S=rt(i.left,St.Trailing|St.Line);if((S||!(o&&i.type==="LogicalExpression")&&g.type!==i.type&&i.left.type!==i.type&&i.right.type!==i.type)&&(y=de(y,{shouldBreak:S})),t.experimentalOperatorPosition==="start"?a.push(s||d?" ":"",y):a.push(p?"":" ",y),n&&rt(i)){let x=hz(Rl(e,a,t));return x.type===Hm?x.parts:Array.isArray(x)?x:[x]}return a}function SD(e){return e.type!=="LogicalExpression"?!1:!!(Ru(e.right)&&e.right.properties.length>0||Fa(e.right)&&e.right.elements.length>0||_a(e.right))}var nde=e=>e.type==="BinaryExpression"&&e.operator==="|";function mWe(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&nde(e.node)&&!e.hasAncestor(r=>!nde(r)&&r.type!=="JsExpressionRoot")}function hWe(e){if(e.key!=="arguments")return!1;let{parent:t}=e;if(!(jn(t)&&!t.optional&&t.arguments.length===1))return!1;let{callee:r}=t;return r.type==="Identifier"&&r.name==="Boolean"}function x_e(e,t,r){let{node:n}=e,{parent:o}=e,i=o.type!=="TypeParameterInstantiation"&&(!Km(o)||!t.experimentalTernaries)&&o.type!=="TSTypeParameterInstantiation"&&o.type!=="GenericTypeAnnotation"&&o.type!=="TSTypeReference"&&o.type!=="TSTypeAssertion"&&o.type!=="TupleTypeAnnotation"&&o.type!=="TSTupleType"&&!(o.type==="FunctionTypeParam"&&!o.name&&e.grandparent.this!==o)&&!((LU(o)||o.type==="VariableDeclarator")&&Fu(t.originalText,n))&&!(LU(o)&&rt(o.id,St.Trailing|St.Line)),a=E_e(n),s=e.map(()=>{let y=r();return a||(y=$u(2,y)),Rl(e,y,t)},"types"),c="",p="";if(Bde(e)&&({leading:c,trailing:p}=G3(e,t)),a)return[c,pn(" | ",s),p];let d=i&&!Fu(t.originalText,n),f=[Sr([d?at:"","| "]),pn([at,"| "],s)];if(Qm(e,t))return[c,de([Fe(f),Pe]),p];let m=[c,de(f)];return(o.type==="TupleTypeAnnotation"||o.type==="TSTupleType")&&o[o.type==="TupleTypeAnnotation"&&o.types?"types":"elementTypes"].length>1?[de([Fe([Sr(["(",Pe]),m]),Pe,Sr(")")]),p]:[de(i?Fe(m):m),p]}var yWe=wr(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),gWe=wr(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function E_e(e){let{types:t}=e;if(t.some(n=>rt(n)))return!1;let r=t.find(n=>gWe(n));return r?t.every(n=>n===r||yWe(n)):!1}function SWe(e){return iz(e)||Jm(e)?!0:od(e)?E_e(e):!1}var vWe=new WeakSet;function Na(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let o=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let i=e.call(T_e,r);(i==="=>"||i===":"&&rt(n,St.Leading))&&(o=!0),vWe.add(n)}return o?[" ",t(r)]:t(r)}var T_e=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function D_e(e,t,r){let n=T_e(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function bWe(e,t,r,n){let{node:o}=e,i=o.inexact?"...":"";return rt(o,St.Dangling)?de([r,i,$o(e,t,{indent:!0}),Pe,n]):[r,i,n]}function Sz(e,t,r){let{node:n}=e,o=[],i="[",a="]",s=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",c=n[s];if(c.length===0)o.push(bWe(e,t,i,a));else{let p=Jn(0,c,-1),d=p?.type!=="RestElement"&&!n.inexact,f=p===null,m=Symbol("array"),y=!t.__inJestEach&&c.length>1&&c.every((x,A,I)=>{let E=x?.type;if(!Fa(x)&&!Ru(x))return!1;let C=I[A+1];if(C&&E!==C.type)return!1;let F=Fa(x)?"elements":"properties";return x[F]&&x[F].length>1}),g=A_e(n,t),S=d?f?",":sd(t)?g?Sr(",","",{groupId:m}):Sr(","):"":"";o.push(de([i,Fe([Pe,g?EWe(e,t,r,S):[xWe(e,t,r,s,n.inexact),S],$o(e,t)]),Pe,a],{shouldBreak:y,id:m}))}return o.push(Ns(e),Na(e,r)),o}function A_e(e,t){return Fa(e)&&e.elements.length>0&&e.elements.every(r=>r&&(nd(r)||Pde(r)&&!rt(r.argument))&&!rt(r,St.Trailing|St.Line,n=>!nc(t.originalText,Xr(n),{backwards:!0})))}function w_e({node:e},{originalText:t}){let r=Jr(e);if(r===Xr(e))return!1;let{length:n}=t;for(;r{i.push(a?de(r()):""),(!s||o)&&i.push([",",at,a&&w_e(e,t)?Pe:""])},n),o&&i.push("..."),i}function EWe(e,t,r,n){let o=[];return e.each(({isLast:i,next:a})=>{o.push([r(),i?n:","]),i||o.push(w_e(e,t)?[Be,Be]:rt(a,St.Leading|St.Line)?Be:at)},"elements"),o_e(o)}function TWe(e,t,r){let{node:n}=e,o=qc(n);if(o.length===0)return["(",$o(e,t),")"];let i=o.length-1;if(wWe(o)){let f=["("];return j3(e,(m,y)=>{f.push(r()),y!==i&&f.push(", ")}),f.push(")"),f}let a=!1,s=[];j3(e,({node:f},m)=>{let y=r();m===i||(cd(f,t)?(a=!0,y=[y,",",Be,Be]):y=[y,",",at]),s.push(y)});let c=!t.parser.startsWith("__ng_")&&n.type!=="ImportExpression"&&n.type!=="TSImportType"&&n.type!=="TSExternalModuleReference"&&sd(t,"all")?",":"";function p(){return de(["(",Fe([at,...s]),c,at,")"],{shouldBreak:!0})}if(a||e.parent.type!=="Decorator"&&xGe(o))return p();if(AWe(o)){let f=s.slice(1);if(f.some(Os))return p();let m;try{m=r(Hpe(n,0),{expandFirstArg:!0})}catch(y){if(y instanceof q3)return p();throw y}return Os(m)?[V_,hg([["(",de(m,{shouldBreak:!0}),", ",...f,")"],p()])]:hg([["(",m,", ",...f,")"],["(",de(m,{shouldBreak:!0}),", ",...f,")"],p()])}if(DWe(o,s,t)){let f=s.slice(0,-1);if(f.some(Os))return p();let m;try{m=r(Hpe(n,-1),{expandLastArg:!0})}catch(y){if(y instanceof q3)return p();throw y}return Os(m)?[V_,hg([["(",...f,de(m,{shouldBreak:!0}),")"],p()])]:hg([["(",...f,m,")"],["(",...f,de(m,{shouldBreak:!0}),")"],p()])}let d=["(",Fe([Pe,...s]),Sr(c),Pe,")"];return Mde(e)?d:de(d,{shouldBreak:s.some(Os)||a})}function fD(e,t=!1){return Ru(e)&&(e.properties.length>0||rt(e))||Fa(e)&&(e.elements.length>0||rt(e))||e.type==="TSTypeAssertion"&&fD(e.expression)||Nu(e)&&fD(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||IWe(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&fD(e.body,!0)||Ru(e.body)||Fa(e.body)||!t&&(jn(e.body)||e.body.type==="ConditionalExpression")||_a(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function DWe(e,t,r){let n=Jn(0,e,-1);if(e.length===1){let i=Jn(0,t,-1);if(i.label?.embed&&i.label?.hug!==!1)return!0}let o=Jn(0,e,-2);return!rt(n,St.Leading)&&!rt(n,St.Trailing)&&fD(n)&&(!o||o.type!==n.type)&&(e.length!==2||o.type!=="ArrowFunctionExpression"||!Fa(n))&&!(e.length>1&&A_e(n,r))}function AWe(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&kWe(r)?!0:!rt(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&I_e(r)&&!fD(r)}function I_e(e){if(e.type==="ParenthesizedExpression")return I_e(e.expression);if(Nu(e)||e.type==="TypeCastExpression"){let{typeAnnotation:t}=e;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let r=t.type==="GenericTypeAnnotation"?t.typeParameters:t.typeArguments;r?.params.length===1&&(t=r.params[0])}return iz(t)&&Ou(e.expression,1)}return Zv(e)&&qc(e).length>1?!1:U_(e)?Ou(e.left,1)&&Ou(e.right,1):Ode(e)||Ou(e)}function wWe(e){return e.length===2?ode(e,0):e.length===3?e[0].type==="Identifier"&&ode(e,1):!1}function ode(e,t){let r=e[t],n=e[t+1];return r.type==="ArrowFunctionExpression"&&ss(r).length===0&&r.body.type==="BlockStatement"&&n.type==="ArrayExpression"&&!e.some(o=>rt(o))}function IWe(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||rt(e,St.Dangling))}function kWe(e){if(!(e.type==="ObjectExpression"&&e.properties.length===1))return!1;let[t]=e.properties;return Gm(t)?!t.computed&&(t.key.type==="Identifier"&&t.key.name==="type"||fa(t.key)&&t.key.value==="type")&&fa(t.value)&&t.value.value==="module":!1}var VU=TWe;function CWe(e,t,r){return[r("object"),de(Fe([Pe,k_e(e,t,r)]))]}function k_e(e,t,r){return["::",r("callee")]}var PWe=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),jn(e)&&qc(e).length>0);function OWe(e){let{node:t,ancestors:r}=e;for(let n of r){if(!(Mo(n)&&n.object===t||n.type==="TSNonNullExpression"&&n.expression===t))return n.type==="NewExpression"&&n.callee===t;t=n}return!1}function NWe(e,t,r){let n=r("object"),o=C_e(e,t,r),{node:i}=e,a=e.findAncestor(p=>!(Mo(p)||p.type==="TSNonNullExpression")),s=e.findAncestor(p=>!(p.type==="ChainExpression"||p.type==="TSNonNullExpression")),c=a.type==="BindExpression"||a.type==="AssignmentExpression"&&a.left.type!=="Identifier"||OWe(e)||i.computed||i.object.type==="Identifier"&&i.property.type==="Identifier"&&!Mo(s)||(s.type==="AssignmentExpression"||s.type==="VariableDeclarator")&&(PWe(i.object)||n.label?.memberChain);return TD(n.label,[n,c?o:de(Fe([Pe,o]))])}function C_e(e,t,r){let n=r("property"),{node:o}=e,i=Ns(e);return o.computed?!o.property||nd(o.property)?[i,"[",n,"]"]:de([i,"[",Fe([Pe,n]),Pe,"]"]):[i,".",n]}function P_e(e,t,r){if(e.node.type==="ChainExpression")return e.call(()=>P_e(e,t,r),"expression");let n=(e.parent.type==="ChainExpression"?e.grandparent:e.parent).type==="ExpressionStatement",o=[];function i(Ve){let{originalText:me}=t,xe=Qv(me,Jr(Ve));return me.charAt(xe)===")"?xe!==!1&&ez(me,xe+1):cd(Ve,t)}function a(){let{node:Ve}=e;if(Ve.type==="ChainExpression")return e.call(a,"expression");if(jn(Ve)&&(zv(Ve.callee)||jn(Ve.callee))){let me=i(Ve);o.unshift({node:Ve,hasTrailingEmptyLine:me,printed:[Rl(e,[Ns(e),r("typeArguments"),VU(e,t,r)],t),me?Be:""]}),e.call(a,"callee")}else zv(Ve)?(o.unshift({node:Ve,needsParens:Qm(e,t),printed:Rl(e,Mo(Ve)?C_e(e,t,r):k_e(e,t,r),t)}),e.call(a,"object")):Ve.type==="TSNonNullExpression"?(o.unshift({node:Ve,printed:Rl(e,"!",t)}),e.call(a,"expression")):o.unshift({node:Ve,printed:r()})}let{node:s}=e;o.unshift({node:s,printed:[Ns(e),r("typeArguments"),VU(e,t,r)]}),s.callee&&e.call(a,"callee");let c=[],p=[o[0]],d=1;for(;d0&&c.push(p);function m(Ve){return/^[A-Z]|^[$_]+$/u.test(Ve)}function y(Ve){return Ve.length<=t.tabWidth}function g(Ve){let me=Ve[1][0]?.node.computed;if(Ve[0].length===1){let Rt=Ve[0][0].node;return Rt.type==="ThisExpression"||Rt.type==="Identifier"&&(m(Rt.name)||n&&y(Rt.name)||me)}let xe=Jn(0,Ve[0],-1).node;return Mo(xe)&&xe.property.type==="Identifier"&&(m(xe.property.name)||me)}let S=c.length>=2&&!rt(c[1][0].node)&&g(c);function x(Ve){let me=Ve.map(xe=>xe.printed);return Ve.length>0&&Jn(0,Ve,-1).needsParens?["(",...me,")"]:me}function A(Ve){return Ve.length===0?"":Fe([Be,pn(Be,Ve.map(x))])}let I=c.map(x),E=I,C=S?3:2,F=c.flat(),O=F.slice(1,-1).some(Ve=>rt(Ve.node,St.Leading))||F.slice(0,-1).some(Ve=>rt(Ve.node,St.Trailing))||c[C]&&rt(c[C][0].node,St.Leading);if(c.length<=C&&!O&&!c.some(Ve=>Jn(0,Ve,-1).hasTrailingEmptyLine))return Mde(e)?E:de(E);let $=Jn(0,c[S?1:0],-1).node,N=!jn($)&&i($),U=[x(c[0]),S?c.slice(1,2).map(x):"",N?Be:"",A(c.slice(S?2:1))],ge=o.map(({node:Ve})=>Ve).filter(jn);function Te(){let Ve=Jn(0,Jn(0,c,-1),-1).node,me=Jn(0,I,-1);return jn(Ve)&&Os(me)&&ge.slice(0,-1).some(xe=>xe.arguments.some(hD))}let ke;return O||ge.length>2&&ge.some(Ve=>!Ve.arguments.every(me=>Ou(me)))||I.slice(0,-1).some(Os)||Te()?ke=de(U):ke=[Os(E)||N?V_:"",hg([E,U])],TD({memberChain:!0},ke)}var FWe=P_e;function U3(e,t,r){let{node:n}=e,o=n.type==="NewExpression",i=Ns(e),a=qc(n),s=n.type!=="TSImportType"&&n.typeArguments?r("typeArguments"):"",c=a.length===1&&Lde(a[0],t.originalText);if(c||LWe(e)||$We(e)||J3(n,e.parent)){let f=[];if(j3(e,()=>{f.push(r())}),!(c&&f[0].label?.embed))return[o?"new ":"",ide(e,r),i,s,"(",pn(", ",f),")"]}let p=n.type==="ImportExpression"||n.type==="TSImportType"||n.type==="TSExternalModuleReference";if(!p&&!o&&zv(n.callee)&&!e.call(()=>Qm(e,t),"callee",...n.callee.type==="ChainExpression"?["expression"]:[]))return FWe(e,t,r);let d=[o?"new ":"",ide(e,r),i,s,VU(e,t,r)];return p||jn(n.callee)?de(d):d}function ide(e,t){let{node:r}=e;return r.type==="ImportExpression"?`import${r.phase?`.${r.phase}`:""}`:r.type==="TSImportType"?"import":r.type==="TSExternalModuleReference"?"require":t("callee")}var RWe=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function LWe(e){let{node:t}=e;if(!(t.type==="ImportExpression"||t.type==="TSImportType"||t.type==="TSExternalModuleReference"||t.type==="CallExpression"&&!t.optional&&tz(t.callee,RWe)))return!1;let r=qc(t);return r.length===1&&fa(r[0])&&!rt(r[0])}function $We(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let r=qc(t);return t.callee.name==="require"?(r.length===1&&fa(r[0])||r.length>1)&&!rt(r[0]):t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&fa(r[0])&&r[1].type==="ArrayExpression":!1}function DD(e,t,r,n,o,i){let a=BWe(e,t,r,n,i),s=i?r(i,{assignmentLayout:a}):"";switch(a){case"break-after-operator":return de([de(n),o,de(Fe([at,s]))]);case"never-break-after-operator":return de([de(n),o," ",s]);case"fluid":{let c=Symbol("assignment");return de([de(n),o,de(Fe(at),{id:c}),ad,gD(s,{groupId:c})])}case"break-lhs":return de([n,o," ",de(s)]);case"chain":return[de(n),o,at,s];case"chain-tail":return[de(n),o,Fe([at,s])];case"chain-tail-arrow-chain":return[de(n),o,s];case"only-left":return n}}function MWe(e,t,r){let{node:n}=e;return DD(e,t,r,r("left"),[" ",n.operator],"right")}function jWe(e,t,r){return DD(e,t,r,r("id")," =","init")}function BWe(e,t,r,n,o){let{node:i}=e,a=i[o];if(!a)return"only-left";let s=!R3(a);if(e.match(R3,O_e,d=>!s||d.type!=="ExpressionStatement"&&d.type!=="VariableDeclaration"))return s?a.type==="ArrowFunctionExpression"&&a.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!s&&R3(a.right)||Fu(t.originalText,a))return"break-after-operator";if(i.type==="ImportAttribute"||a.type==="CallExpression"&&a.callee.name==="require"||t.parser==="json5"||t.parser==="jsonc"||t.parser==="json")return"never-break-after-operator";let c=NHe(n);if(UWe(i)||JWe(i)||N_e(i)&&c)return"break-lhs";let p=KWe(i,n,t);return e.call(()=>qWe(e,t,r,p),o)?"break-after-operator":zWe(i)?"break-lhs":!c&&(p||a.type==="TemplateLiteral"||a.type==="TaggedTemplateExpression"||_Ge(a)||nd(a)||a.type==="ClassExpression")?"never-break-after-operator":"fluid"}function qWe(e,t,r,n){let o=e.node;if(U_(o)&&!SD(o))return!0;switch(o.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!ZWe(o))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:p}=o;return U_(p)&&!SD(p)}let{consequent:s,alternate:c}=o;return s.type==="ConditionalExpression"||c.type==="ConditionalExpression"}case"ClassExpression":return jo(o.decorators)}if(n)return!1;let i=o,a=[];for(;;)if(i.type==="UnaryExpression"||i.type==="AwaitExpression"||i.type==="YieldExpression"&&i.argument!==null)i=i.argument,a.push("argument");else if(i.type==="TSNonNullExpression")i=i.expression,a.push("expression");else break;return!!(fa(i)||e.call(()=>F_e(e,t,r),...a))}function UWe(e){if(O_e(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>Gm(r)&&(!r.shorthand||r.value?.type==="AssignmentPattern"))}return!1}function R3(e){return e.type==="AssignmentExpression"}function O_e(e){return R3(e)||e.type==="VariableDeclarator"}function zWe(e){let t=VWe(e);if(jo(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}function VWe(e){if(LU(e))return e.typeParameters?.params}function JWe(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=ade(t.typeAnnotation);return jo(r)&&r.length>1&&r.some(n=>jo(ade(n))||n.type==="TSConditionalType")}function N_e(e){return e.type==="VariableDeclarator"&&e.init?.type==="ArrowFunctionExpression"}function ade(e){let t;switch(e.type){case"GenericTypeAnnotation":t=e.typeParameters;break;case"TSTypeReference":t=e.typeArguments;break}return t?.params}function F_e(e,t,r,n=!1){let{node:o}=e,i=()=>F_e(e,t,r,!0);if(o.type==="ChainExpression"||o.type==="TSNonNullExpression")return e.call(i,"expression");if(jn(o)){if(U3(e,t,r).label?.memberChain)return!1;let a=qc(o);return!(a.length===0||a.length===1&&az(a[0],t))||GWe(o,r)?!1:e.call(i,"callee")}return Mo(o)?e.call(i,"object"):n&&(o.type==="Identifier"||o.type==="ThisExpression")}function KWe(e,t,r){return Gm(e)?(t=hz(t),typeof t=="string"&&Vv(t)1)return!0;if(r.length===1){let o=r[0];if(od(o)||ED(o)||o.type==="TSTypeLiteral"||o.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(Os(t(n)))return!0}return!1}function HWe(e){return(e.typeParameters??e.typeArguments)?.params}function sde(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!e.typeArguments;default:return!1}}function ZWe(e){return sde(e.checkType)||sde(e.extendsType)}var L3=new WeakMap;function R_e(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function cde(e,t){return t.parser==="json"||t.parser==="jsonc"||!fa(e.key)||Gv(oc(e.key),t).slice(1,-1)!==e.key.value?!1:!!(dWe(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||(t.parser==="typescript"||t.parser==="oxc-ts")&&e.type==="PropertyDefinition")||R_e(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!=="ImportAttribute"&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="oxc"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function WWe(e,t){let{key:r}=e.node;return(r.type==="Identifier"||nd(r)&&R_e(Wv(oc(r)))&&String(r.value)===Wv(oc(r))&&!(t.parser==="typescript"||t.parser==="babel-ts"||t.parser==="oxc-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&L3.get(e.parent))}function AD(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:o}=e,{key:i}=n;if(t.quoteProps==="consistent"&&!L3.has(o)){let a=e.siblings.some(s=>!s.computed&&fa(s.key)&&!cde(s,t));L3.set(o,a)}if(WWe(e,t)){let a=Gv(JSON.stringify(i.type==="Identifier"?i.name:i.value.toString()),t);return e.call(()=>Rl(e,a,t),"key")}return cde(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!L3.get(o))?e.call(()=>Rl(e,/^\d/u.test(i.value)?Wv(i.value):i.value,t),"key"):r("key")}function IU(e,t,r){let{node:n}=e;return n.shorthand?r("value"):DD(e,t,r,AD(e,t,r),":","value")}var QWe=({node:e,key:t,parent:r})=>t==="value"&&e.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&&xD(r));function L_e(e,t,r,n){if(QWe(e))return vz(e,t,r);let{node:o}=e,i=!1;if((o.type==="FunctionDeclaration"||o.type==="FunctionExpression")&&n?.expandLastArg){let{parent:d}=e;jn(d)&&(qc(d).length>1||ss(o).every(f=>f.type==="Identifier"&&!f.typeAnnotation))&&(i=!0)}let a=[Bc(e),o.async?"async ":"",`function${o.generator?"*":""} `,o.id?r("id"):""],s=wg(e,t,r,i),c=W3(e,r),p=e1(o,c);return a.push(r("typeParameters"),de([p?de(s):s,c]),o.body?" ":"",r("body")),t.semi&&(o.declare||!o.body)&&a.push(";"),a}function JU(e,t,r){let{node:n}=e,{kind:o}=n,i=n.value||n,a=[];return!o||o==="init"||o==="method"||o==="constructor"?i.async&&a.push("async "):(Sg(o==="get"||o==="set"),a.push(o," ")),i.generator&&a.push("*"),a.push(AD(e,t,r),n.optional?"?":"",n===i?vz(e,t,r):r("value")),a}function vz(e,t,r){let{node:n}=e,o=wg(e,t,r),i=W3(e,r),a=sWe(n),s=e1(n,i),c=[r("typeParameters"),de([a?de(o,{shouldBreak:!0}):s?de(o):o,i])];return n.body?c.push(" ",r("body")):c.push(t.semi?";":""),c}function XWe(e){let t=ss(e);return t.length===1&&!e.typeParameters&&!rt(e,St.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!rt(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function $_e(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return XWe(r)}return!1}function W3(e,t){let{node:r}=e,n=[Na(e,t,"returnType")];return r.predicate&&n.push(t("predicate")),n}function M_e(e,t,r){let{node:n}=e,o=[];if(n.argument){let s=r("argument");tQe(t,n.argument)?s=["(",Fe([Be,s]),Be,")"]:(U_(n.argument)||t.experimentalTernaries&&n.argument.type==="ConditionalExpression"&&(n.argument.consequent.type==="ConditionalExpression"||n.argument.alternate.type==="ConditionalExpression"))&&(s=de([Sr("("),Fe([Pe,s]),Pe,Sr(")")])),o.push(" ",s)}let i=rt(n,St.Dangling),a=t.semi&&i&&rt(n,St.Last|St.Line);return a&&o.push(";"),i&&o.push(" ",$o(e,t)),!a&&t.semi&&o.push(";"),o}function YWe(e,t,r){return["return",M_e(e,t,r)]}function eQe(e,t,r){return["throw",M_e(e,t,r)]}function tQe(e,t){if(Fu(e.originalText,t)||rt(t,St.Leading,r=>jc(e.originalText,Xr(r),Jr(r)))&&!_a(t))return!0;if(nz(t)){let r=t,n;for(;n=uGe(r);)if(r=n,Fu(e.originalText,r))return!0}return!1}function rQe(e,t){if(t.semi||B_e(e,t)||U_e(e,t)||q_e(e,t))return!1;let{node:r,key:n,parent:o}=e;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(o.type==="Program"||o.type==="BlockStatement"||o.type==="StaticBlock"||o.type==="TSModuleBlock")||n==="consequent"&&o.type==="SwitchCase")&&e.call(()=>j_e(e,t),"expression"))}function j_e(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!$_e(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:o}=r;if(n&&(o==="+"||o==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(_a(r))return!0}return Qm(e,t)?!0:nz(r)?e.call(()=>j_e(e,t),...Cde(r)):!1}var bz=({node:e,parent:t})=>e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1&&(Array.isArray(t.directives)&&t.directives.length===0||!t.directives);function B_e(e,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&bz(e)&&_a(e.node.expression)}function q_e(e,t){return t.__isHtmlInlineEventHandler&&bz(e)}function U_e(e,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&bz(e)}var nQe=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},t1=nQe;function oQe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var iQe=class{#t;constructor(e){this.#t=new Set(e)}getLeadingWhitespaceCount(e){let t=this.#t,r=0;for(let n=0;n=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return this.#t.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#t.has(Jn(0,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${oQe([...this.#t].join(""))}]+`,n=new RegExp(t?`(${r})`:r,"u");return e.split(n)}hasWhitespaceCharacter(e){let t=this.#t;return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=this.#t;return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=this.#t;return Array.prototype.every.call(e,r=>t.has(r))}#r(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split(` +`)+i}function VZe(e){if(!ju(e))return!1;let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var kU=new WeakMap;function KZe(e){return kU.has(e)||kU.set(e,VZe(e)),kU.get(e)}var GZe=KZe;function HZe(e,t){let r=e.node;if(ED(r))return t.originalText.slice(Yr(r),Kr(r)).trimEnd();if(GZe(r))return ZZe(r);if(ju(r))return["/*",xg(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function ZZe(e){let t=e.value.split(` +`);return["/*",dn(Be,t.map((r,n)=>n===0?r.trimEnd():" "+(na.type==="ForOfStatement")?.left;if(i&&Ps(i,a=>a===r))return!0}if(n==="object"&&r.name==="let"&&o.type==="MemberExpression"&&o.computed&&!o.optional){let i=e.findAncestor(s=>s.type==="ExpressionStatement"||s.type==="ForStatement"||s.type==="ForInStatement"),a=i?i.type==="ExpressionStatement"?i.expression:i.type==="ForStatement"?i.init:i.left:void 0;if(a&&Ps(a,s=>s===r))return!0}if(n==="expression")switch(r.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let i=e.findAncestor(a=>!Fu(a));if(i!==o&&i.type==="ExpressionStatement")return!0}}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let i=e.findAncestor(a=>a.type==="ExpressionStatement")?.expression;if(i&&Ps(i,a=>a===r))return!0}if(r.type==="ObjectExpression"){let i=e.findAncestor(a=>a.type==="ArrowFunctionExpression")?.body;if(i&&i.type!=="SequenceExpression"&&i.type!=="AssignmentExpression"&&Ps(i,a=>a===r))return!0}switch(o.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&&jo(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return v_e(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"&&!tWe(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(i,a)=>a==="returnType"&&i.type==="ArrowFunctionExpression")&&XZe(r))return!0;break;case"BinaryExpression":if(n==="left"&&(o.operator==="in"||o.operator==="instanceof")&&r.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(n==="init"&&e.match(void 0,void 0,(i,a)=>a==="declarations"&&i.type==="VariableDeclaration",(i,a)=>a==="left"&&i.type==="ForInStatement"))return!0;break}switch(r.type){case"UpdateExpression":if(o.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&o.operator==="+"||r.operator==="--"&&o.operator==="-");case"UnaryExpression":switch(o.type){case"UnaryExpression":return r.operator===o.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&o.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(o.type==="UpdateExpression"||r.operator==="in"&&QZe(e))return!0;if(r.operator==="|>"&&r.extra?.parenthesized){let i=e.grandparent;if(i.type==="BinaryExpression"&&i.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(o.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!Fu(r);case"ConditionalExpression":return Fu(r)||fGe(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||Fu(r));case"LogicalExpression":if(r.type==="LogicalExpression")return o.operator!==r.operator;case"BinaryExpression":{let{operator:i,type:a}=r;if(!i&&a!=="TSTypeAssertion")return!0;let s=B3(i),c=o.operator,p=B3(c);return!!(p>s||n==="right"&&p===s||p===s&&!lz(c,i)||p");default:return!1}case"TSFunctionType":if(e.match(i=>i.type==="TSFunctionType",(i,a)=>a==="typeAnnotation"&&i.type==="TSTypeAnnotation",(i,a)=>a==="returnType"&&i.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(n==="extendsType"&&Zm(r)&&o.type===r.type||n==="checkType"&&Zm(o))return!0;if(n==="extendsType"&&o.type==="TSConditionalType"){let{typeAnnotation:i}=r.returnType||r.typeAnnotation;if(i.type==="TSTypePredicate"&&i.typeAnnotation&&(i=i.typeAnnotation.typeAnnotation),i.type==="TSInferType"&&i.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(id(o)||DD(o))return!0;case"TSInferType":if(r.type==="TSInferType"){if(o.type==="TSRestType")return!1;if(n==="types"&&(o.type==="TSUnionType"||o.type==="TSIntersectionType")&&r.typeParameter.type==="TSTypeParameter"&&r.typeParameter.constraint)return!0}case"TSTypeOperator":return o.type==="TSArrayType"||o.type==="TSOptionalType"||o.type==="TSRestType"||n==="objectType"&&o.type==="TSIndexedAccessType"||o.type==="TSTypeOperator"||o.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&o.type==="TSIndexedAccessType"||n==="elementType"&&o.type==="TSArrayType";case"TypeOperator":return o.type==="ArrayTypeAnnotation"||o.type==="NullableTypeAnnotation"||n==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType")||o.type==="TypeOperator";case"TypeofTypeAnnotation":return n==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType")||n==="elementType"&&o.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return o.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return o.type==="TypeOperator"||o.type==="KeyofTypeAnnotation"||o.type==="ArrayTypeAnnotation"||o.type==="NullableTypeAnnotation"||o.type==="IntersectionTypeAnnotation"||o.type==="UnionTypeAnnotation"||n==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return o.type==="ArrayTypeAnnotation"||n==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(r.type==="ComponentTypeAnnotation"&&(r.rendersType===null||r.rendersType===void 0))return!1;if(e.match(void 0,(a,s)=>s==="typeAnnotation"&&a.type==="TypeAnnotation",(a,s)=>s==="returnType"&&a.type==="ArrowFunctionExpression")||e.match(void 0,(a,s)=>s==="typeAnnotation"&&a.type==="TypePredicate",(a,s)=>s==="typeAnnotation"&&a.type==="TypeAnnotation",(a,s)=>s==="returnType"&&a.type==="ArrowFunctionExpression"))return!0;let i=o.type==="NullableTypeAnnotation"?e.grandparent:o;return i.type==="UnionTypeAnnotation"||i.type==="IntersectionTypeAnnotation"||i.type==="ArrayTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType")||n==="checkType"&&o.type==="ConditionalTypeAnnotation"||n==="extendsType"&&o.type==="ConditionalTypeAnnotation"&&r.returnType?.type==="InferTypeAnnotation"&&r.returnType?.typeParameter.bound||i.type==="NullableTypeAnnotation"||o.type==="FunctionTypeParam"&&o.name===null&&ss(r).some(a=>a.typeAnnotation?.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return n==="objectType"&&o.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&o.type==="ExpressionStatement"&&typeof o.directive!="string"){let i=e.grandparent;return i.type==="Program"||i.type==="BlockStatement"}return n==="object"&&Mo(o)&&od(r);case"AssignmentExpression":return!((n==="init"||n==="update")&&o.type==="ForStatement"||n==="expression"&&r.left.type!=="ObjectPattern"&&o.type==="ExpressionStatement"||n==="key"&&o.type==="TSPropertySignature"||o.type==="AssignmentExpression"||n==="expressions"&&o.type==="SequenceExpression"&&e.match(void 0,void 0,(i,a)=>(a==="init"||a==="update")&&i.type==="ForStatement")||n==="value"&&o.type==="Property"&&e.match(void 0,void 0,(i,a)=>a==="properties"&&i.type==="ObjectPattern")||o.type==="NGChainedExpression"||n==="node"&&o.type==="JsExpressionRoot");case"ConditionalExpression":switch(o.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(o.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(o.type){case"BinaryExpression":return o.operator!=="|>"||r.extra?.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":case"MatchExpressionCase":return!0;case"TSInstantiationExpression":return n==="expression";case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":return o.type==="NewExpression"?n==="callee":!1;case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(eWe(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(o.type==="BindExpression"||o.type==="NewExpression")){let i=r;for(;i;)switch(i.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":i=i.object;break;case"TaggedTemplateExpression":i=i.tag;break;case"TSNonNullExpression":i=i.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(o.type==="BindExpression"||o.type==="NewExpression")||n==="object"&&Mo(o);case"NGPipeExpression":return!(o.type==="NGRoot"||o.type==="NGMicrosyntaxExpression"||o.type==="ObjectProperty"&&!r.extra?.parenthesized||Fa(o)||n==="arguments"&&jn(o)||n==="right"&&o.type==="NGPipeExpression"||n==="property"&&o.type==="MemberExpression"||o.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&o.type==="BinaryExpression"&&o.operator==="<"||!Fa(o)&&o.type!=="ArrowFunctionExpression"&&o.type!=="AssignmentExpression"&&o.type!=="AssignmentPattern"&&o.type!=="BinaryExpression"&&o.type!=="NewExpression"&&o.type!=="ConditionalExpression"&&o.type!=="ExpressionStatement"&&o.type!=="JsExpressionRoot"&&o.type!=="JSXAttribute"&&o.type!=="JSXElement"&&o.type!=="JSXExpressionContainer"&&o.type!=="JSXFragment"&&o.type!=="LogicalExpression"&&!jn(o)&&!Wm(o)&&o.type!=="ReturnStatement"&&o.type!=="ThrowStatement"&&o.type!=="TypeCastExpression"&&o.type!=="VariableDeclarator"&&o.type!=="YieldExpression"&&o.type!=="MatchExpressionCase";case"TSInstantiationExpression":return n==="object"&&Mo(o);case"MatchOrPattern":return o.type==="MatchAsPattern"}return!1}var WZe=Ir(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function QZe(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if(n?.type==="ForStatement"&&n.init===r)return!0;r=n}return!1}function XZe(e){return LU(e,t=>t.type==="ObjectTypeAnnotation"&&LU(t,r=>r.type==="FunctionTypeAnnotation"))}function YZe(e){return Lu(e)}function _D(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(_D);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(_D);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(_D);break;case"UnaryExpression":if(t.prefix)return e.callParent(_D);break}return!1}function v_e(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!zU(e,t):!iz(r)||n.type!=="ExportDefaultDeclaration"&&zU(e,t)?!1:e.call(()=>v_e(e,t),...Ode(r))}function eWe(e){return!!(e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&(t.type==="CallExpression"||t.type==="NewExpression"))||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression")||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression")&&(e.match(void 0,void 0,(t,r)=>r==="callee"&&(t.type==="CallExpression"&&!t.optional||t.type==="NewExpression")||r==="object"&&t.type==="MemberExpression"&&!t.optional)||e.match(void 0,void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))}function JU(e){return e.type==="Identifier"?!0:Mo(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&JU(e.object):!1}function tWe(e){return e.type==="ChainExpression"&&(e=e.expression),JU(e)||jn(e)&&!e.optional&&JU(e.callee)}var eh=zU;function rWe(e,t){let r=t-1;r=Hv(e,r,{backwards:!0}),r=Zv(e,r,{backwards:!0}),r=Hv(e,r,{backwards:!0});let n=Zv(e,r,{backwards:!0});return r!==n}var nWe=rWe,oWe=()=>!0;function vz(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function iWe(e,t){let r=e.node,n=[vz(e,t)],{printer:o,originalText:i,locStart:a,locEnd:s}=t;if(o.isBlockComment?.(r)){let p=nc(i,s(r))?nc(i,a(r),{backwards:!0})?Be:at:" ";n.push(p)}else n.push(Be);let c=Zv(i,Hv(i,s(r)));return c!==!1&&nc(i,c)&&n.push(Be),n}function aWe(e,t,r){let n=e.node,o=vz(e,t),{printer:i,originalText:a,locStart:s}=t,c=i.isBlockComment?.(n);if(r?.hasLineSuffix&&!r?.isBlock||nc(a,s(n),{backwards:!0})){let p=nWe(a,s(n));return{doc:ede([Be,p?Be:"",o]),isBlock:c,hasLineSuffix:!0}}return!c||r?.hasLineSuffix?{doc:[ede([" ",o]),K_],isBlock:c,hasLineSuffix:!0}:{doc:[" ",o],isBlock:c,hasLineSuffix:!1}}function $o(e,t,r={}){let{node:n}=e;if(!jo(n?.comments))return"";let{indent:o=!1,marker:i,filter:a=oWe}=r,s=[];if(e.each(({node:p})=>{p.leading||p.trailing||p.marker!==i||!a(p)||s.push(vz(e,t))},"comments"),s.length===0)return"";let c=dn(Be,s);return o?Fe([Be,c]):c}function Z3(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(s=>!n.has(s)).length===0)return{leading:"",trailing:""};let o=[],i=[],a;return e.each(()=>{let s=e.node;if(n?.has(s))return;let{leading:c,trailing:p}=s;c?o.push(iWe(e,t)):p&&(a=aWe(e,t,a),i.push(a.doc))},"comments"),{leading:o,trailing:i}}function Ll(e,t,r){let{leading:n,trailing:o}=Z3(e,r);return!n&&!o?t:BU(t,i=>[n,i,o])}var z3=class extends Error{name="ArgExpansionBailout"};function Pg(e,t,r,n,o){let i=e.node,a=ss(i),s=o&&i.typeParameters?r("typeParameters"):"";if(a.length===0)return[s,"(",$o(e,t,{filter:y=>$u(t.originalText,Kr(y))===")"}),")"];let{parent:c}=e,p=G3(c),d=b_e(i),f=[];if(kGe(e,(y,g)=>{let S=g===a.length-1;S&&i.rest&&f.push("..."),f.push(r()),!S&&(f.push(","),p||d?f.push(" "):ld(a[g],t)?f.push(Be,Be):f.push(at))}),n&&!cWe(e)){if(Os(s)||Os(f))throw new z3;return de([U3(s),"(",U3(f),")"])}let m=a.every(y=>!jo(y.decorators));return d&&m?[s,"(",...f,")"]:p?[s,"(",...f,")"]:(Rde(c)||gGe(c)||c.type==="TypeAlias"||c.type==="UnionTypeAnnotation"||c.type==="IntersectionTypeAnnotation"||c.type==="FunctionTypeAnnotation"&&c.returnType===i)&&a.length===1&&a[0].name===null&&i.this!==a[0]&&a[0].typeAnnotation&&i.typeParameters===null&&sz(a[0].typeAnnotation)&&!i.rest?t.arrowParens==="always"||i.type==="HookTypeAnnotation"?["(",...f,")"]:f:[s,"(",Fe([Pe,...f]),Sr(!wGe(i)&&cd(t,"all")?",":""),Pe,")"]}function b_e(e){if(!e)return!1;let t=ss(e);if(t.length!==1)return!1;let[r]=t;return!rt(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&Hm(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&Hm(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||Lu(r.right)&&r.right.properties.length===0||Fa(r.right)&&r.right.elements.length===0))}function sWe(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function n1(e,t){let r=sWe(e);if(!r)return!1;let n=e.typeParameters?.params;if(n){if(n.length>1)return!1;if(n.length===1){let o=n[0];if(o.constraint||o.default)return!1}}return ss(e).length===1&&(Hm(r)||Os(t))}function cWe(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function lWe(e){let t=ss(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}function mD(e,t){return(t==="params"||t==="this"||t==="rest")&&b_e(e)}function Ns(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":jn(t)||Mo(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function x_e(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var uWe=Ir(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function Bc(e){let{node:t}=e;return t.declare||uWe(t)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var pWe=Ir(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function W3({node:e}){return e.abstract||pWe(e)?"abstract ":""}function Km(e,t,r){return e.type==="EmptyStatement"?rt(e,St.Leading)?[" ",t]:t:e.type==="BlockStatement"||r?[" ",t]:Fe([at,t])}function Q3(e){return e.accessibility?e.accessibility+" ":""}var dWe=/^[\$A-Z_a-z\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\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\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\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][\$0-9A-Z_a-z\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\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\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\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\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\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-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\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\u200C\u200D\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\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]*$/,_We=e=>dWe.test(e),fWe=_We;function mWe(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var Yv=mWe,hWe=0;function E_e(e,t,r){let{node:n,parent:o,grandparent:i,key:a}=e,s=a!=="body"&&(o.type==="IfStatement"||o.type==="WhileStatement"||o.type==="SwitchStatement"||o.type==="DoWhileStatement"),c=n.operator==="|>"&&e.root.extra?.__isUsingHackPipeline,p=VU(e,t,r,!1,s);if(s)return p;if(c)return de(p);if(a==="callee"&&(jn(o)||o.type==="NewExpression")||o.type==="UnaryExpression"||Mo(o)&&!o.computed)return de([Fe([Pe,...p]),Pe]);let d=o.type==="ReturnStatement"||o.type==="ThrowStatement"||o.type==="JSXExpressionContainer"&&i.type==="JSXAttribute"||n.operator!=="|"&&o.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(o.type==="NGRoot"&&t.parser==="__ng_binding"||o.type==="NGMicrosyntaxExpression"&&i.type==="NGMicrosyntax"&&i.body.length===1)||n===o.body&&o.type==="ArrowFunctionExpression"||n!==o.body&&o.type==="ForStatement"||o.type==="ConditionalExpression"&&i.type!=="ReturnStatement"&&i.type!=="ThrowStatement"&&!jn(i)&&i.type!=="NewExpression"||o.type==="TemplateLiteral"||gWe(e),f=o.type==="AssignmentExpression"||o.type==="VariableDeclarator"||o.type==="ClassProperty"||o.type==="PropertyDefinition"||o.type==="TSAbstractPropertyDefinition"||o.type==="ClassPrivateProperty"||Wm(o),m=J_(n.left)&&lz(n.operator,n.left.operator);if(d||bD(n)&&!m||!bD(n)&&f)return de(p);if(p.length===0)return"";let y=_a(n.right),g=p.findIndex(k=>typeof k!="string"&&!Array.isArray(k)&&k.type===$l),S=p.slice(0,g===-1?1:g+1),b=p.slice(S.length,y?-1:void 0),E=Symbol("logicalChain-"+ ++hWe),I=de([...S,Fe(b)],{id:E});if(!y)return I;let T=Vn(0,p,-1);return de([I,vD(T,{groupId:E})])}function VU(e,t,r,n,o){let{node:i}=e;if(!J_(i))return[de(r())];let a=[];lz(i.operator,i.left.operator)?a=e.call(()=>VU(e,t,r,!0,o),"left"):a.push(de(r("left")));let s=bD(i),c=i.right.type==="ChainExpression"?i.right.expression:i.right,p=(i.operator==="|>"||i.type==="NGPipeExpression"||yWe(e,t))&&!Ru(t.originalText,c),d=!rt(c,St.Leading,Jde)&&Ru(t.originalText,c),f=i.type==="NGPipeExpression"?"|":i.operator,m=i.type==="NGPipeExpression"&&i.arguments.length>0?de(Fe([Pe,": ",dn([at,": "],e.map(()=>Mu(2,de(r())),"arguments"))])):"",y;if(s)y=[f,Ru(t.originalText,c)?Fe([at,r("right"),m]):[" ",r("right"),m]];else{let b=f==="|>"&&e.root.extra?.__isUsingHackPipeline?e.call(()=>VU(e,t,r,!0,o),"right"):r("right");if(t.experimentalOperatorPosition==="start"){let E="";if(d)switch(Ym(b)){case V_:E=b.splice(0,1)[0];break;case G_:E=b.contents.splice(0,1)[0];break}y=[at,E,f," ",b,m]}else y=[p?at:"",f,p?" ":at,b,m]}let{parent:g}=e,S=rt(i.left,St.Trailing|St.Line);if((S||!(o&&i.type==="LogicalExpression")&&g.type!==i.type&&i.left.type!==i.type&&i.right.type!==i.type)&&(y=de(y,{shouldBreak:S})),t.experimentalOperatorPosition==="start"?a.push(s||d?" ":"",y):a.push(p?"":" ",y),n&&rt(i)){let b=gz(Ll(e,a,t));return b.type===Qm?b.parts:Array.isArray(b)?b:[b]}return a}function bD(e){return e.type!=="LogicalExpression"?!1:!!(Lu(e.right)&&e.right.properties.length>0||Fa(e.right)&&e.right.elements.length>0||_a(e.right))}var ide=e=>e.type==="BinaryExpression"&&e.operator==="|";function yWe(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&ide(e.node)&&!e.hasAncestor(r=>!ide(r)&&r.type!=="JsExpressionRoot")}function gWe(e){if(e.key!=="arguments")return!1;let{parent:t}=e;if(!(jn(t)&&!t.optional&&t.arguments.length===1))return!1;let{callee:r}=t;return r.type==="Identifier"&&r.name==="Boolean"}function T_e(e,t,r){let{node:n}=e,{parent:o}=e,i=o.type!=="TypeParameterInstantiation"&&(!Zm(o)||!t.experimentalTernaries)&&o.type!=="TSTypeParameterInstantiation"&&o.type!=="GenericTypeAnnotation"&&o.type!=="TSTypeReference"&&o.type!=="TSTypeAssertion"&&o.type!=="TupleTypeAnnotation"&&o.type!=="TSTupleType"&&!(o.type==="FunctionTypeParam"&&!o.name&&e.grandparent.this!==o)&&!((MU(o)||o.type==="VariableDeclarator")&&Ru(t.originalText,n))&&!(MU(o)&&rt(o.id,St.Trailing|St.Line)),a=D_e(n),s=e.map(()=>{let y=r();return a||(y=Mu(2,y)),Ll(e,y,t)},"types"),c="",p="";if(Ude(e)&&({leading:c,trailing:p}=Z3(e,t)),a)return[c,dn(" | ",s),p];let d=i&&!Ru(t.originalText,n),f=[Sr([d?at:"","| "]),dn([at,"| "],s)];if(eh(e,t))return[c,de([Fe(f),Pe]),p];let m=[c,de(f)];return(o.type==="TupleTypeAnnotation"||o.type==="TSTupleType")&&o[o.type==="TupleTypeAnnotation"&&o.types?"types":"elementTypes"].length>1?[de([Fe([Sr(["(",Pe]),m]),Pe,Sr(")")]),p]:[de(i?Fe(m):m),p]}var SWe=Ir(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),vWe=Ir(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function D_e(e){let{types:t}=e;if(t.some(n=>rt(n)))return!1;let r=t.find(n=>vWe(n));return r?t.every(n=>n===r||SWe(n)):!1}function bWe(e){return sz(e)||Hm(e)?!0:id(e)?D_e(e):!1}var xWe=new WeakSet;function Na(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let o=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let i=e.call(A_e,r);(i==="=>"||i===":"&&rt(n,St.Leading))&&(o=!0),xWe.add(n)}return o?[" ",t(r)]:t(r)}var A_e=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function I_e(e,t,r){let n=A_e(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function EWe(e,t,r,n){let{node:o}=e,i=o.inexact?"...":"";return rt(o,St.Dangling)?de([r,i,$o(e,t,{indent:!0}),Pe,n]):[r,i,n]}function bz(e,t,r){let{node:n}=e,o=[],i="[",a="]",s=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",c=n[s];if(c.length===0)o.push(EWe(e,t,i,a));else{let p=Vn(0,c,-1),d=p?.type!=="RestElement"&&!n.inexact,f=p===null,m=Symbol("array"),y=!t.__inJestEach&&c.length>1&&c.every((b,E,I)=>{let T=b?.type;if(!Fa(b)&&!Lu(b))return!1;let k=I[E+1];if(k&&T!==k.type)return!1;let F=Fa(b)?"elements":"properties";return b[F]&&b[F].length>1}),g=w_e(n,t),S=d?f?",":cd(t)?g?Sr(",","",{groupId:m}):Sr(","):"":"";o.push(de([i,Fe([Pe,g?DWe(e,t,r,S):[TWe(e,t,r,s,n.inexact),S],$o(e,t)]),Pe,a],{shouldBreak:y,id:m}))}return o.push(Ns(e),Na(e,r)),o}function w_e(e,t){return Fa(e)&&e.elements.length>0&&e.elements.every(r=>r&&(od(r)||Nde(r)&&!rt(r.argument))&&!rt(r,St.Trailing|St.Line,n=>!nc(t.originalText,Yr(n),{backwards:!0})))}function k_e({node:e},{originalText:t}){let r=Kr(e);if(r===Yr(e))return!1;let{length:n}=t;for(;r{i.push(a?de(r()):""),(!s||o)&&i.push([",",at,a&&k_e(e,t)?Pe:""])},n),o&&i.push("..."),i}function DWe(e,t,r,n){let o=[];return e.each(({isLast:i,next:a})=>{o.push([r(),i?n:","]),i||o.push(k_e(e,t)?[Be,Be]:rt(a,St.Leading|St.Line)?Be:at)},"elements"),a_e(o)}function AWe(e,t,r){let{node:n}=e,o=qc(n);if(o.length===0)return["(",$o(e,t),")"];let i=o.length-1;if(kWe(o)){let f=["("];return q3(e,(m,y)=>{f.push(r()),y!==i&&f.push(", ")}),f.push(")"),f}let a=!1,s=[];q3(e,({node:f},m)=>{let y=r();m===i||(ld(f,t)?(a=!0,y=[y,",",Be,Be]):y=[y,",",at]),s.push(y)});let c=!t.parser.startsWith("__ng_")&&n.type!=="ImportExpression"&&n.type!=="TSImportType"&&n.type!=="TSExternalModuleReference"&&cd(t,"all")?",":"";function p(){return de(["(",Fe([at,...s]),c,at,")"],{shouldBreak:!0})}if(a||e.parent.type!=="Decorator"&&TGe(o))return p();if(wWe(o)){let f=s.slice(1);if(f.some(Os))return p();let m;try{m=r(Wpe(n,0),{expandFirstArg:!0})}catch(y){if(y instanceof z3)return p();throw y}return Os(m)?[K_,vg([["(",de(m,{shouldBreak:!0}),", ",...f,")"],p()])]:vg([["(",m,", ",...f,")"],["(",de(m,{shouldBreak:!0}),", ",...f,")"],p()])}if(IWe(o,s,t)){let f=s.slice(0,-1);if(f.some(Os))return p();let m;try{m=r(Wpe(n,-1),{expandLastArg:!0})}catch(y){if(y instanceof z3)return p();throw y}return Os(m)?[K_,vg([["(",...f,de(m,{shouldBreak:!0}),")"],p()])]:vg([["(",...f,m,")"],["(",...f,de(m,{shouldBreak:!0}),")"],p()])}let d=["(",Fe([Pe,...s]),Sr(c),Pe,")"];return Bde(e)?d:de(d,{shouldBreak:s.some(Os)||a})}function hD(e,t=!1){return Lu(e)&&(e.properties.length>0||rt(e))||Fa(e)&&(e.elements.length>0||rt(e))||e.type==="TSTypeAssertion"&&hD(e.expression)||Fu(e)&&hD(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||CWe(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&hD(e.body,!0)||Lu(e.body)||Fa(e.body)||!t&&(jn(e.body)||e.body.type==="ConditionalExpression")||_a(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function IWe(e,t,r){let n=Vn(0,e,-1);if(e.length===1){let i=Vn(0,t,-1);if(i.label?.embed&&i.label?.hug!==!1)return!0}let o=Vn(0,e,-2);return!rt(n,St.Leading)&&!rt(n,St.Trailing)&&hD(n)&&(!o||o.type!==n.type)&&(e.length!==2||o.type!=="ArrowFunctionExpression"||!Fa(n))&&!(e.length>1&&w_e(n,r))}function wWe(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&PWe(r)?!0:!rt(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&C_e(r)&&!hD(r)}function C_e(e){if(e.type==="ParenthesizedExpression")return C_e(e.expression);if(Fu(e)||e.type==="TypeCastExpression"){let{typeAnnotation:t}=e;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let r=t.type==="GenericTypeAnnotation"?t.typeParameters:t.typeArguments;r?.params.length===1&&(t=r.params[0])}return sz(t)&&Nu(e.expression,1)}return Xv(e)&&qc(e).length>1?!1:J_(e)?Nu(e.left,1)&&Nu(e.right,1):Fde(e)||Nu(e)}function kWe(e){return e.length===2?ade(e,0):e.length===3?e[0].type==="Identifier"&&ade(e,1):!1}function ade(e,t){let r=e[t],n=e[t+1];return r.type==="ArrowFunctionExpression"&&ss(r).length===0&&r.body.type==="BlockStatement"&&n.type==="ArrayExpression"&&!e.some(o=>rt(o))}function CWe(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||rt(e,St.Dangling))}function PWe(e){if(!(e.type==="ObjectExpression"&&e.properties.length===1))return!1;let[t]=e.properties;return Wm(t)?!t.computed&&(t.key.type==="Identifier"&&t.key.name==="type"||fa(t.key)&&t.key.value==="type")&&fa(t.value)&&t.value.value==="module":!1}var KU=AWe;function OWe(e,t,r){return[r("object"),de(Fe([Pe,P_e(e,t,r)]))]}function P_e(e,t,r){return["::",r("callee")]}var NWe=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),jn(e)&&qc(e).length>0);function FWe(e){let{node:t,ancestors:r}=e;for(let n of r){if(!(Mo(n)&&n.object===t||n.type==="TSNonNullExpression"&&n.expression===t))return n.type==="NewExpression"&&n.callee===t;t=n}return!1}function RWe(e,t,r){let n=r("object"),o=O_e(e,t,r),{node:i}=e,a=e.findAncestor(p=>!(Mo(p)||p.type==="TSNonNullExpression")),s=e.findAncestor(p=>!(p.type==="ChainExpression"||p.type==="TSNonNullExpression")),c=a.type==="BindExpression"||a.type==="AssignmentExpression"&&a.left.type!=="Identifier"||FWe(e)||i.computed||i.object.type==="Identifier"&&i.property.type==="Identifier"&&!Mo(s)||(s.type==="AssignmentExpression"||s.type==="VariableDeclarator")&&(NWe(i.object)||n.label?.memberChain);return AD(n.label,[n,c?o:de(Fe([Pe,o]))])}function O_e(e,t,r){let n=r("property"),{node:o}=e,i=Ns(e);return o.computed?!o.property||od(o.property)?[i,"[",n,"]"]:de([i,"[",Fe([Pe,n]),Pe,"]"]):[i,".",n]}function N_e(e,t,r){if(e.node.type==="ChainExpression")return e.call(()=>N_e(e,t,r),"expression");let n=(e.parent.type==="ChainExpression"?e.grandparent:e.parent).type==="ExpressionStatement",o=[];function i(Je){let{originalText:me}=t,xe=e1(me,Kr(Je));return me.charAt(xe)===")"?xe!==!1&&rz(me,xe+1):ld(Je,t)}function a(){let{node:Je}=e;if(Je.type==="ChainExpression")return e.call(a,"expression");if(jn(Je)&&(Kv(Je.callee)||jn(Je.callee))){let me=i(Je);o.unshift({node:Je,hasTrailingEmptyLine:me,printed:[Ll(e,[Ns(e),r("typeArguments"),KU(e,t,r)],t),me?Be:""]}),e.call(a,"callee")}else Kv(Je)?(o.unshift({node:Je,needsParens:eh(e,t),printed:Ll(e,Mo(Je)?O_e(e,t,r):P_e(e,t,r),t)}),e.call(a,"object")):Je.type==="TSNonNullExpression"?(o.unshift({node:Je,printed:Ll(e,"!",t)}),e.call(a,"expression")):o.unshift({node:Je,printed:r()})}let{node:s}=e;o.unshift({node:s,printed:[Ns(e),r("typeArguments"),KU(e,t,r)]}),s.callee&&e.call(a,"callee");let c=[],p=[o[0]],d=1;for(;d0&&c.push(p);function m(Je){return/^[A-Z]|^[$_]+$/u.test(Je)}function y(Je){return Je.length<=t.tabWidth}function g(Je){let me=Je[1][0]?.node.computed;if(Je[0].length===1){let Rt=Je[0][0].node;return Rt.type==="ThisExpression"||Rt.type==="Identifier"&&(m(Rt.name)||n&&y(Rt.name)||me)}let xe=Vn(0,Je[0],-1).node;return Mo(xe)&&xe.property.type==="Identifier"&&(m(xe.property.name)||me)}let S=c.length>=2&&!rt(c[1][0].node)&&g(c);function b(Je){let me=Je.map(xe=>xe.printed);return Je.length>0&&Vn(0,Je,-1).needsParens?["(",...me,")"]:me}function E(Je){return Je.length===0?"":Fe([Be,dn(Be,Je.map(b))])}let I=c.map(b),T=I,k=S?3:2,F=c.flat(),O=F.slice(1,-1).some(Je=>rt(Je.node,St.Leading))||F.slice(0,-1).some(Je=>rt(Je.node,St.Trailing))||c[k]&&rt(c[k][0].node,St.Leading);if(c.length<=k&&!O&&!c.some(Je=>Vn(0,Je,-1).hasTrailingEmptyLine))return Bde(e)?T:de(T);let $=Vn(0,c[S?1:0],-1).node,N=!jn($)&&i($),U=[b(c[0]),S?c.slice(1,2).map(b):"",N?Be:"",E(c.slice(S?2:1))],ge=o.map(({node:Je})=>Je).filter(jn);function Te(){let Je=Vn(0,Vn(0,c,-1),-1).node,me=Vn(0,I,-1);return jn(Je)&&Os(me)&&ge.slice(0,-1).some(xe=>xe.arguments.some(gD))}let ke;return O||ge.length>2&&ge.some(Je=>!Je.arguments.every(me=>Nu(me)))||I.slice(0,-1).some(Os)||Te()?ke=de(U):ke=[Os(T)||N?K_:"",vg([T,U])],AD({memberChain:!0},ke)}var LWe=N_e;function J3(e,t,r){let{node:n}=e,o=n.type==="NewExpression",i=Ns(e),a=qc(n),s=n.type!=="TSImportType"&&n.typeArguments?r("typeArguments"):"",c=a.length===1&&Mde(a[0],t.originalText);if(c||MWe(e)||jWe(e)||G3(n,e.parent)){let f=[];if(q3(e,()=>{f.push(r())}),!(c&&f[0].label?.embed))return[o?"new ":"",sde(e,r),i,s,"(",dn(", ",f),")"]}let p=n.type==="ImportExpression"||n.type==="TSImportType"||n.type==="TSExternalModuleReference";if(!p&&!o&&Kv(n.callee)&&!e.call(()=>eh(e,t),"callee",...n.callee.type==="ChainExpression"?["expression"]:[]))return LWe(e,t,r);let d=[o?"new ":"",sde(e,r),i,s,KU(e,t,r)];return p||jn(n.callee)?de(d):d}function sde(e,t){let{node:r}=e;return r.type==="ImportExpression"?`import${r.phase?`.${r.phase}`:""}`:r.type==="TSImportType"?"import":r.type==="TSExternalModuleReference"?"require":t("callee")}var $We=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function MWe(e){let{node:t}=e;if(!(t.type==="ImportExpression"||t.type==="TSImportType"||t.type==="TSExternalModuleReference"||t.type==="CallExpression"&&!t.optional&&nz(t.callee,$We)))return!1;let r=qc(t);return r.length===1&&fa(r[0])&&!rt(r[0])}function jWe(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let r=qc(t);return t.callee.name==="require"?(r.length===1&&fa(r[0])||r.length>1)&&!rt(r[0]):t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&fa(r[0])&&r[1].type==="ArrayExpression":!1}function ID(e,t,r,n,o,i){let a=UWe(e,t,r,n,i),s=i?r(i,{assignmentLayout:a}):"";switch(a){case"break-after-operator":return de([de(n),o,de(Fe([at,s]))]);case"never-break-after-operator":return de([de(n),o," ",s]);case"fluid":{let c=Symbol("assignment");return de([de(n),o,de(Fe(at),{id:c}),sd,vD(s,{groupId:c})])}case"break-lhs":return de([n,o," ",de(s)]);case"chain":return[de(n),o,at,s];case"chain-tail":return[de(n),o,Fe([at,s])];case"chain-tail-arrow-chain":return[de(n),o,s];case"only-left":return n}}function BWe(e,t,r){let{node:n}=e;return ID(e,t,r,r("left"),[" ",n.operator],"right")}function qWe(e,t,r){return ID(e,t,r,r("id")," =","init")}function UWe(e,t,r,n,o){let{node:i}=e,a=i[o];if(!a)return"only-left";let s=!$3(a);if(e.match($3,F_e,d=>!s||d.type!=="ExpressionStatement"&&d.type!=="VariableDeclaration"))return s?a.type==="ArrowFunctionExpression"&&a.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!s&&$3(a.right)||Ru(t.originalText,a))return"break-after-operator";if(i.type==="ImportAttribute"||a.type==="CallExpression"&&a.callee.name==="require"||t.parser==="json5"||t.parser==="jsonc"||t.parser==="json")return"never-break-after-operator";let c=RHe(n);if(JWe(i)||GWe(i)||R_e(i)&&c)return"break-lhs";let p=HWe(i,n,t);return e.call(()=>zWe(e,t,r,p),o)?"break-after-operator":VWe(i)?"break-lhs":!c&&(p||a.type==="TemplateLiteral"||a.type==="TaggedTemplateExpression"||mGe(a)||od(a)||a.type==="ClassExpression")?"never-break-after-operator":"fluid"}function zWe(e,t,r,n){let o=e.node;if(J_(o)&&!bD(o))return!0;switch(o.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!QWe(o))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:p}=o;return J_(p)&&!bD(p)}let{consequent:s,alternate:c}=o;return s.type==="ConditionalExpression"||c.type==="ConditionalExpression"}case"ClassExpression":return jo(o.decorators)}if(n)return!1;let i=o,a=[];for(;;)if(i.type==="UnaryExpression"||i.type==="AwaitExpression"||i.type==="YieldExpression"&&i.argument!==null)i=i.argument,a.push("argument");else if(i.type==="TSNonNullExpression")i=i.expression,a.push("expression");else break;return!!(fa(i)||e.call(()=>L_e(e,t,r),...a))}function JWe(e){if(F_e(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>Wm(r)&&(!r.shorthand||r.value?.type==="AssignmentPattern"))}return!1}function $3(e){return e.type==="AssignmentExpression"}function F_e(e){return $3(e)||e.type==="VariableDeclarator"}function VWe(e){let t=KWe(e);if(jo(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}function KWe(e){if(MU(e))return e.typeParameters?.params}function GWe(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=cde(t.typeAnnotation);return jo(r)&&r.length>1&&r.some(n=>jo(cde(n))||n.type==="TSConditionalType")}function R_e(e){return e.type==="VariableDeclarator"&&e.init?.type==="ArrowFunctionExpression"}function cde(e){let t;switch(e.type){case"GenericTypeAnnotation":t=e.typeParameters;break;case"TSTypeReference":t=e.typeArguments;break}return t?.params}function L_e(e,t,r,n=!1){let{node:o}=e,i=()=>L_e(e,t,r,!0);if(o.type==="ChainExpression"||o.type==="TSNonNullExpression")return e.call(i,"expression");if(jn(o)){if(J3(e,t,r).label?.memberChain)return!1;let a=qc(o);return!(a.length===0||a.length===1&&cz(a[0],t))||ZWe(o,r)?!1:e.call(i,"callee")}return Mo(o)?e.call(i,"object"):n&&(o.type==="Identifier"||o.type==="ThisExpression")}function HWe(e,t,r){return Wm(e)?(t=gz(t),typeof t=="string"&&Gv(t)1)return!0;if(r.length===1){let o=r[0];if(id(o)||DD(o)||o.type==="TSTypeLiteral"||o.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(Os(t(n)))return!0}return!1}function WWe(e){return(e.typeParameters??e.typeArguments)?.params}function lde(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!e.typeArguments;default:return!1}}function QWe(e){return lde(e.checkType)||lde(e.extendsType)}var M3=new WeakMap;function $_e(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function ude(e,t){return t.parser==="json"||t.parser==="jsonc"||!fa(e.key)||Wv(oc(e.key),t).slice(1,-1)!==e.key.value?!1:!!(fWe(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||(t.parser==="typescript"||t.parser==="oxc-ts")&&e.type==="PropertyDefinition")||$_e(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!=="ImportAttribute"&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="oxc"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function XWe(e,t){let{key:r}=e.node;return(r.type==="Identifier"||od(r)&&$_e(Yv(oc(r)))&&String(r.value)===Yv(oc(r))&&!(t.parser==="typescript"||t.parser==="babel-ts"||t.parser==="oxc-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&M3.get(e.parent))}function wD(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:o}=e,{key:i}=n;if(t.quoteProps==="consistent"&&!M3.has(o)){let a=e.siblings.some(s=>!s.computed&&fa(s.key)&&!ude(s,t));M3.set(o,a)}if(XWe(e,t)){let a=Wv(JSON.stringify(i.type==="Identifier"?i.name:i.value.toString()),t);return e.call(()=>Ll(e,a,t),"key")}return ude(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!M3.get(o))?e.call(()=>Ll(e,/^\d/u.test(i.value)?Yv(i.value):i.value,t),"key"):r("key")}function CU(e,t,r){let{node:n}=e;return n.shorthand?r("value"):ID(e,t,r,wD(e,t,r),":","value")}var YWe=({node:e,key:t,parent:r})=>t==="value"&&e.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&&TD(r));function M_e(e,t,r,n){if(YWe(e))return xz(e,t,r);let{node:o}=e,i=!1;if((o.type==="FunctionDeclaration"||o.type==="FunctionExpression")&&n?.expandLastArg){let{parent:d}=e;jn(d)&&(qc(d).length>1||ss(o).every(f=>f.type==="Identifier"&&!f.typeAnnotation))&&(i=!0)}let a=[Bc(e),o.async?"async ":"",`function${o.generator?"*":""} `,o.id?r("id"):""],s=Pg(e,t,r,i),c=X3(e,r),p=n1(o,c);return a.push(r("typeParameters"),de([p?de(s):s,c]),o.body?" ":"",r("body")),t.semi&&(o.declare||!o.body)&&a.push(";"),a}function GU(e,t,r){let{node:n}=e,{kind:o}=n,i=n.value||n,a=[];return!o||o==="init"||o==="method"||o==="constructor"?i.async&&a.push("async "):(Eg(o==="get"||o==="set"),a.push(o," ")),i.generator&&a.push("*"),a.push(wD(e,t,r),n.optional?"?":"",n===i?xz(e,t,r):r("value")),a}function xz(e,t,r){let{node:n}=e,o=Pg(e,t,r),i=X3(e,r),a=lWe(n),s=n1(n,i),c=[r("typeParameters"),de([a?de(o,{shouldBreak:!0}):s?de(o):o,i])];return n.body?c.push(" ",r("body")):c.push(t.semi?";":""),c}function eQe(e){let t=ss(e);return t.length===1&&!e.typeParameters&&!rt(e,St.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!rt(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function j_e(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return eQe(r)}return!1}function X3(e,t){let{node:r}=e,n=[Na(e,t,"returnType")];return r.predicate&&n.push(t("predicate")),n}function B_e(e,t,r){let{node:n}=e,o=[];if(n.argument){let s=r("argument");nQe(t,n.argument)?s=["(",Fe([Be,s]),Be,")"]:(J_(n.argument)||t.experimentalTernaries&&n.argument.type==="ConditionalExpression"&&(n.argument.consequent.type==="ConditionalExpression"||n.argument.alternate.type==="ConditionalExpression"))&&(s=de([Sr("("),Fe([Pe,s]),Pe,Sr(")")])),o.push(" ",s)}let i=rt(n,St.Dangling),a=t.semi&&i&&rt(n,St.Last|St.Line);return a&&o.push(";"),i&&o.push(" ",$o(e,t)),!a&&t.semi&&o.push(";"),o}function tQe(e,t,r){return["return",B_e(e,t,r)]}function rQe(e,t,r){return["throw",B_e(e,t,r)]}function nQe(e,t){if(Ru(e.originalText,t)||rt(t,St.Leading,r=>jc(e.originalText,Yr(r),Kr(r)))&&!_a(t))return!0;if(iz(t)){let r=t,n;for(;n=dGe(r);)if(r=n,Ru(e.originalText,r))return!0}return!1}function oQe(e,t){if(t.semi||U_e(e,t)||J_e(e,t)||z_e(e,t))return!1;let{node:r,key:n,parent:o}=e;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(o.type==="Program"||o.type==="BlockStatement"||o.type==="StaticBlock"||o.type==="TSModuleBlock")||n==="consequent"&&o.type==="SwitchCase")&&e.call(()=>q_e(e,t),"expression"))}function q_e(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!j_e(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:o}=r;if(n&&(o==="+"||o==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(_a(r))return!0}return eh(e,t)?!0:iz(r)?e.call(()=>q_e(e,t),...Ode(r)):!1}var Ez=({node:e,parent:t})=>e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1&&(Array.isArray(t.directives)&&t.directives.length===0||!t.directives);function U_e(e,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&Ez(e)&&_a(e.node.expression)}function z_e(e,t){return t.__isHtmlInlineEventHandler&&Ez(e)}function J_e(e,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&Ez(e)}var iQe=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},o1=iQe;function aQe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var sQe=class{#t;constructor(e){this.#t=new Set(e)}getLeadingWhitespaceCount(e){let t=this.#t,r=0;for(let n=0;n=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return this.#t.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#t.has(Vn(0,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${aQe([...this.#t].join(""))}]+`,n=new RegExp(t?`(${r})`:r,"u");return e.split(n)}hasWhitespaceCharacter(e){let t=this.#t;return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=this.#t;return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=this.#t;return Array.prototype.every.call(e,r=>t.has(r))}#r(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split(` `)){if(r.length===0)continue;let n=this.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&nr.slice(t)).join(` -`)}},aQe=iQe,$3=new aQe(` -\r `),kU=e=>e===""||e===at||e===Be||e===Pe;function sQe(e,t,r){let{node:n}=e;if(n.type==="JSXElement"&&EQe(n))return[r("openingElement"),r("closingElement")];let o=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),i=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[o,...e.map(r,"children"),i];n.children=n.children.map(E=>TQe(E)?{type:"JSXText",value:" ",raw:" "}:E);let a=n.children.some(_a),s=n.children.filter(E=>E.type==="JSXExpressionContainer").length>1,c=n.type==="JSXElement"&&n.openingElement.attributes.length>1,p=Os(o)||a||c||s,d=e.parent.rootMarker==="mdx",f=t.singleQuote?"{' '}":'{" "}',m=d?at:Sr([f,Pe]," "),y=n.openingElement?.name?.name==="fbt",g=cQe(e,t,r,m,y),S=n.children.some(E=>vD(E));for(let E=g.length-2;E>=0;E--){let C=g[E]===""&&g[E+1]==="",F=g[E]===Be&&g[E+1]===""&&g[E+2]===Be,O=(g[E]===Pe||g[E]===Be)&&g[E+1]===""&&g[E+2]===m,$=g[E]===m&&g[E+1]===""&&(g[E+2]===Pe||g[E+2]===Be),N=g[E]===m&&g[E+1]===""&&g[E+2]===m,U=g[E]===Pe&&g[E+1]===""&&g[E+2]===Be||g[E]===Be&&g[E+1]===""&&g[E+2]===Pe;F&&S||C||O||N||U?g.splice(E,2):$&&g.splice(E+1,2)}for(;g.length>0&&kU(Jn(0,g,-1));)g.pop();for(;g.length>1&&kU(g[0])&&kU(g[1]);)g.shift(),g.shift();let x=[""];for(let[E,C]of g.entries()){if(C===m){if(E===1&&FHe(g[E-1])){if(g.length===2){x.push([x.pop(),f]);continue}x.push([f,Be],"");continue}else if(E===g.length-1){x.push([x.pop(),f]);continue}else if(g[E-1]===""&&g[E-2]===Be){x.push([x.pop(),f]);continue}}E%2===0?x.push([x.pop(),C]):x.push(C,""),Os(C)&&(p=!0)}let A=S?o_e(x):de(x,{shouldBreak:!0});if(t.cursorNode?.type==="JSXText"&&n.children.includes(t.cursorNode)?A=[O3,A,O3]:t.nodeBeforeCursor?.type==="JSXText"&&n.children.includes(t.nodeBeforeCursor)?A=[O3,A]:t.nodeAfterCursor?.type==="JSXText"&&n.children.includes(t.nodeAfterCursor)&&(A=[A,O3]),d)return A;let I=de([o,Fe([Be,A]),Be,i]);return p?I:hg([de([o,...g,i]),I])}function cQe(e,t,r,n,o){let i="",a=[i];function s(p){i=p,a.push([a.pop(),p])}function c(p){p!==""&&(i=p,a.push(p,""))}return e.each(({node:p,next:d})=>{if(p.type==="JSXText"){let f=oc(p);if(vD(p)){let m=$3.split(f,!0);m[0]===""&&(m.shift(),/\n/u.test(m[0])?c(ude(o,m[1],p,d)):c(n),m.shift());let y;if(Jn(0,m,-1)===""&&(m.pop(),y=m.pop()),m.length===0)return;for(let[g,S]of m.entries())g%2===1?c(at):s(S);y!==void 0?/\n/u.test(y)?c(ude(o,i,p,d)):c(n):c(lde(o,i,p,d))}else/\n/u.test(f)?f.match(/\n/gu).length>1&&c(Be):c(n)}else{let f=r();if(s(f),d&&vD(d)){let m=$3.trim(oc(d)),[y]=$3.split(m);c(lde(o,y,p,d))}else c(Be)}},"children"),a}function lde(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||n?.type==="JSXElement"&&!n.closingElement?t.length===1?Pe:Be:Pe}function ude(e,t,r,n){return e?Be:t.length===1?r.type==="JSXElement"&&!r.closingElement||n?.type==="JSXElement"&&!n.closingElement?Be:Pe:Be}var lQe=wr(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function uQe(e,t,r){let{parent:n}=e;if(lQe(n))return t;let o=pQe(e),i=Qm(e,r);return de([i?"":Sr("("),Fe([Pe,t]),Pe,i?"":Sr(")")],{shouldBreak:o})}function pQe(e){return e.match(void 0,(t,r)=>r==="body"&&t.type==="ArrowFunctionExpression",(t,r)=>r==="arguments"&&jn(t))&&(e.match(void 0,void 0,void 0,(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer")||e.match(void 0,void 0,void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer"))}function dQe(e,t,r){let{node:n}=e,o=[r("name")];if(n.value){let i;if(fa(n.value)){let a=oc(n.value),s=da(0,da(0,a.slice(1,-1),"'","'"),""",'"'),c=Tde(s,t.jsxSingleQuote);s=c==='"'?da(0,s,'"',"""):da(0,s,"'","'"),i=e.call(()=>Rl(e,gg(c+s+c),t),"value")}else i=r("value");o.push("=",i)}return o}function _Qe(e,t,r){let{node:n}=e,o=(i,a)=>i.type==="JSXEmptyExpression"||!rt(i)&&(Fa(i)||Ru(i)||i.type==="ArrowFunctionExpression"||i.type==="AwaitExpression"&&(o(i.argument,i)||i.argument.type==="JSXElement")||jn(i)||i.type==="ChainExpression"&&jn(i.expression)||i.type==="FunctionExpression"||i.type==="TemplateLiteral"||i.type==="TaggedTemplateExpression"||i.type==="DoExpression"||_a(a)&&(i.type==="ConditionalExpression"||U_(i)));return o(n.expression,e.parent)?de(["{",r("expression"),ad,"}"]):de(["{",Fe([Pe,r("expression")]),Pe,ad,"}"])}function fQe(e,t,r){let{node:n}=e,o=rt(n.name)||rt(n.typeArguments);if(n.selfClosing&&n.attributes.length===0&&!o)return["<",r("name"),r("typeArguments")," />"];if(n.attributes?.length===1&&fa(n.attributes[0].value)&&!n.attributes[0].value.value.includes(` +`)}},cQe=sQe,j3=new cQe(` +\r `),PU=e=>e===""||e===at||e===Be||e===Pe;function lQe(e,t,r){let{node:n}=e;if(n.type==="JSXElement"&&DQe(n))return[r("openingElement"),r("closingElement")];let o=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),i=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[o,...e.map(r,"children"),i];n.children=n.children.map(T=>AQe(T)?{type:"JSXText",value:" ",raw:" "}:T);let a=n.children.some(_a),s=n.children.filter(T=>T.type==="JSXExpressionContainer").length>1,c=n.type==="JSXElement"&&n.openingElement.attributes.length>1,p=Os(o)||a||c||s,d=e.parent.rootMarker==="mdx",f=t.singleQuote?"{' '}":'{" "}',m=d?at:Sr([f,Pe]," "),y=n.openingElement?.name?.name==="fbt",g=uQe(e,t,r,m,y),S=n.children.some(T=>xD(T));for(let T=g.length-2;T>=0;T--){let k=g[T]===""&&g[T+1]==="",F=g[T]===Be&&g[T+1]===""&&g[T+2]===Be,O=(g[T]===Pe||g[T]===Be)&&g[T+1]===""&&g[T+2]===m,$=g[T]===m&&g[T+1]===""&&(g[T+2]===Pe||g[T+2]===Be),N=g[T]===m&&g[T+1]===""&&g[T+2]===m,U=g[T]===Pe&&g[T+1]===""&&g[T+2]===Be||g[T]===Be&&g[T+1]===""&&g[T+2]===Pe;F&&S||k||O||N||U?g.splice(T,2):$&&g.splice(T+1,2)}for(;g.length>0&&PU(Vn(0,g,-1));)g.pop();for(;g.length>1&&PU(g[0])&&PU(g[1]);)g.shift(),g.shift();let b=[""];for(let[T,k]of g.entries()){if(k===m){if(T===1&&LHe(g[T-1])){if(g.length===2){b.push([b.pop(),f]);continue}b.push([f,Be],"");continue}else if(T===g.length-1){b.push([b.pop(),f]);continue}else if(g[T-1]===""&&g[T-2]===Be){b.push([b.pop(),f]);continue}}T%2===0?b.push([b.pop(),k]):b.push(k,""),Os(k)&&(p=!0)}let E=S?a_e(b):de(b,{shouldBreak:!0});if(t.cursorNode?.type==="JSXText"&&n.children.includes(t.cursorNode)?E=[F3,E,F3]:t.nodeBeforeCursor?.type==="JSXText"&&n.children.includes(t.nodeBeforeCursor)?E=[F3,E]:t.nodeAfterCursor?.type==="JSXText"&&n.children.includes(t.nodeAfterCursor)&&(E=[E,F3]),d)return E;let I=de([o,Fe([Be,E]),Be,i]);return p?I:vg([de([o,...g,i]),I])}function uQe(e,t,r,n,o){let i="",a=[i];function s(p){i=p,a.push([a.pop(),p])}function c(p){p!==""&&(i=p,a.push(p,""))}return e.each(({node:p,next:d})=>{if(p.type==="JSXText"){let f=oc(p);if(xD(p)){let m=j3.split(f,!0);m[0]===""&&(m.shift(),/\n/u.test(m[0])?c(dde(o,m[1],p,d)):c(n),m.shift());let y;if(Vn(0,m,-1)===""&&(m.pop(),y=m.pop()),m.length===0)return;for(let[g,S]of m.entries())g%2===1?c(at):s(S);y!==void 0?/\n/u.test(y)?c(dde(o,i,p,d)):c(n):c(pde(o,i,p,d))}else/\n/u.test(f)?f.match(/\n/gu).length>1&&c(Be):c(n)}else{let f=r();if(s(f),d&&xD(d)){let m=j3.trim(oc(d)),[y]=j3.split(m);c(pde(o,y,p,d))}else c(Be)}},"children"),a}function pde(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||n?.type==="JSXElement"&&!n.closingElement?t.length===1?Pe:Be:Pe}function dde(e,t,r,n){return e?Be:t.length===1?r.type==="JSXElement"&&!r.closingElement||n?.type==="JSXElement"&&!n.closingElement?Be:Pe:Be}var pQe=Ir(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function dQe(e,t,r){let{parent:n}=e;if(pQe(n))return t;let o=_Qe(e),i=eh(e,r);return de([i?"":Sr("("),Fe([Pe,t]),Pe,i?"":Sr(")")],{shouldBreak:o})}function _Qe(e){return e.match(void 0,(t,r)=>r==="body"&&t.type==="ArrowFunctionExpression",(t,r)=>r==="arguments"&&jn(t))&&(e.match(void 0,void 0,void 0,(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer")||e.match(void 0,void 0,void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer"))}function fQe(e,t,r){let{node:n}=e,o=[r("name")];if(n.value){let i;if(fa(n.value)){let a=oc(n.value),s=da(0,da(0,a.slice(1,-1),"'","'"),""",'"'),c=Ade(s,t.jsxSingleQuote);s=c==='"'?da(0,s,'"',"""):da(0,s,"'","'"),i=e.call(()=>Ll(e,xg(c+s+c),t),"value")}else i=r("value");o.push("=",i)}return o}function mQe(e,t,r){let{node:n}=e,o=(i,a)=>i.type==="JSXEmptyExpression"||!rt(i)&&(Fa(i)||Lu(i)||i.type==="ArrowFunctionExpression"||i.type==="AwaitExpression"&&(o(i.argument,i)||i.argument.type==="JSXElement")||jn(i)||i.type==="ChainExpression"&&jn(i.expression)||i.type==="FunctionExpression"||i.type==="TemplateLiteral"||i.type==="TaggedTemplateExpression"||i.type==="DoExpression"||_a(a)&&(i.type==="ConditionalExpression"||J_(i)));return o(n.expression,e.parent)?de(["{",r("expression"),sd,"}"]):de(["{",Fe([Pe,r("expression")]),Pe,sd,"}"])}function hQe(e,t,r){let{node:n}=e,o=rt(n.name)||rt(n.typeArguments);if(n.selfClosing&&n.attributes.length===0&&!o)return["<",r("name"),r("typeArguments")," />"];if(n.attributes?.length===1&&fa(n.attributes[0].value)&&!n.attributes[0].value.value.includes(` `)&&!o&&!rt(n.attributes[0]))return de(["<",r("name"),r("typeArguments")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let i=n.attributes?.some(s=>fa(s.value)&&s.value.value.includes(` -`)),a=t.singleAttributePerLine&&n.attributes.length>1?Be:at;return de(["<",r("name"),r("typeArguments"),Fe(e.map(()=>[a,r()],"attributes")),...mQe(n,t,o)],{shouldBreak:i})}function mQe(e,t,r){return e.selfClosing?[at,"/>"]:hQe(e,t,r)?[">"]:[Pe,">"]}function hQe(e,t,r){let n=e.attributes.length>0&&rt(Jn(0,e.attributes,-1),St.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function yQe(e,t,r){let{node:n}=e,o=[""),o}function gQe(e,t){let{node:r}=e,n=rt(r),o=rt(r,St.Line),i=r.type==="JSXOpeningFragment";return[i?"<":""]}function SQe(e,t,r){let n=Rl(e,sQe(e,t,r),t);return uQe(e,n,t)}function vQe(e,t){let{node:r}=e,n=rt(r,St.Line);return[$o(e,t,{indent:n}),n?Be:""]}function bQe(e,t,r){let{node:n}=e;return["{",e.call(({node:o})=>{let i=["...",r()];return rt(o)?[Fe([Pe,Rl(e,i,t)]),Pe]:i},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function xQe(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return dQe(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return pn(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return pn(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return bQe(e,t,r);case"JSXExpressionContainer":return _Qe(e,t,r);case"JSXFragment":case"JSXElement":return SQe(e,t,r);case"JSXOpeningElement":return fQe(e,t,r);case"JSXClosingElement":return yQe(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return gQe(e,t);case"JSXEmptyExpression":return vQe(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new t1(n,"JSX")}}function EQe(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!vD(t)}function vD(e){return e.type==="JSXText"&&($3.hasNonWhitespaceCharacter(oc(e))||!/\n/u.test(oc(e)))}function TQe(e){return e.type==="JSXExpressionContainer"&&fa(e.expression)&&e.expression.value===" "&&!rt(e.expression)}function DQe(e){let{node:t,parent:r}=e;if(!_a(t)||!_a(r))return!1;let{index:n,siblings:o}=e,i;for(let a=n;a>0;a--){let s=o[a-1];if(!(s.type==="JSXText"&&!vD(s))){i=s;break}}return i?.type==="JSXExpressionContainer"&&i.expression.type==="JSXEmptyExpression"&&K3(i.expression)}function AQe(e){return K3(e.node)||DQe(e)}var xz=AQe;function wQe(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return r("node");case"NGPipeExpression":return b_e(e,t,r);case"NGChainedExpression":return de(pn([";",at],e.map(()=>CQe(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":pde(e)?" ":[";",at],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:o,parent:i}=e,a=pde(e)||IQe(e)||(o===1&&(n.key.name==="then"||n.key.name==="else"||n.key.name==="as")||o===2&&(n.key.name==="else"&&i.body[o-1].type==="NGMicrosyntaxKeyedExpression"&&i.body[o-1].key.name==="then"||n.key.name==="track"))&&i.body[0].type==="NGMicrosyntaxExpression";return[r("key"),a?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new t1(n,"Angular")}}function pde({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}function IQe(e){let{node:t}=e;return e.parent.body[1].key.name==="of"&&t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="track"&&t.key.type==="NGMicrosyntaxKey"}var kQe=wr(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function CQe({node:e}){return FU(e,kQe)}function z_e(e,t,r){let{node:n}=e;return de([pn(at,e.map(r,"decorators")),V_e(n,t)?Be:at])}function PQe(e,t,r){return J_e(e.node)?[pn(Be,e.map(r,"declaration","decorators")),Be]:""}function OQe(e,t,r){let{node:n,parent:o}=e,{decorators:i}=n;if(!jo(i)||J_e(o)||xz(e))return"";let a=n.type==="ClassExpression"||n.type==="ClassDeclaration"||V_e(n,t);return[e.key==="declaration"&&pGe(o)?Be:a?V_:"",pn(at,e.map(r,"decorators")),at]}function V_e(e,t){return e.decorators.some(r=>nc(t.originalText,Jr(r)))}function J_e(e){if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=e.declaration?.decorators;return jo(t)&&V3(e,t[0])}var CU=new WeakMap;function K_e(e){return CU.has(e)||CU.set(e,e.type==="ConditionalExpression"&&!Ps(e,t=>t.type==="ObjectExpression")),CU.get(e)}var NQe=e=>e.type==="SequenceExpression";function FQe(e,t,r,n={}){let o=[],i,a=[],s=!1,c=!n.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",p;(function A(){let{node:I}=e,E=RQe(e,t,r,n);if(o.length===0)o.push(E);else{let{leading:C,trailing:F}=G3(e,t);o.push([C,E]),a.unshift(F)}c&&(s||(s=I.returnType&&ss(I).length>0||I.typeParameters||ss(I).some(C=>C.type!=="Identifier"))),!c||I.body.type!=="ArrowFunctionExpression"?(i=r("body",n),p=I.body):e.call(A,"body")})();let d=!Fu(t.originalText,p)&&(NQe(p)||LQe(p,i,t)||!s&&K_e(p)),f=e.key==="callee"&&Zv(e.parent),m=Symbol("arrow-chain"),y=$Qe(e,n,{signatureDocs:o,shouldBreak:s}),g=!1,S=!1,x=!1;return c&&(f||n.assignmentLayout)&&(S=!0,x=!rt(e.node,St.Leading&St.Line),g=n.assignmentLayout==="chain-tail-arrow-chain"||f&&!d),i=MQe(e,t,n,{bodyDoc:i,bodyComments:a,functionBody:p,shouldPutBodyOnSameLine:d}),de([de(S?Fe([x?Pe:"",y]):y,{shouldBreak:g,id:m})," =>",c?gD(i,{groupId:m}):de(i),c&&f?Sr(Pe,"",{groupId:m}):""])}function RQe(e,t,r,n){let{node:o}=e,i=[];if(o.async&&i.push("async "),$_e(e,t))i.push(r(["params",0]));else{let s=n.expandLastArg||n.expandFirstArg,c=W3(e,r);if(s){if(Os(c))throw new q3;c=de(B3(c))}i.push(de([wg(e,t,r,s,!0),c]))}let a=$o(e,t,{filter(s){let c=Qv(t.originalText,Jr(s));return c!==!1&&t.originalText.slice(c,c+2)==="=>"}});return a&&i.push(" ",a),i}function LQe(e,t,r){return Fa(e)||Ru(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||_a(e)||t.label?.hug!==!1&&(t.label?.embed||Lde(e,r.originalText))}function $Qe(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:o,key:i}=e;return i!=="callee"&&Zv(o)||U_(o)?de([r[0]," =>",Fe([at,pn([" =>",at],r.slice(1))])],{shouldBreak:n}):i==="callee"&&Zv(o)||t.assignmentLayout?de(pn([" =>",at],r),{shouldBreak:n}):de(Fe(pn([" =>",at],r)),{shouldBreak:n})}function MQe(e,t,r,{bodyDoc:n,bodyComments:o,functionBody:i,shouldPutBodyOnSameLine:a}){let{node:s,parent:c}=e,p=r.expandLastArg&&sd(t,"all")?Sr(","):"",d=(r.expandLastArg||c.type==="JSXExpressionContainer")&&!rt(s)?Pe:"";return a&&K_e(i)?[" ",de([Sr("","("),Fe([Pe,n]),Sr("",")"),p,d]),o]:a?[" ",n,o]:[Fe([at,n,o]),p,d]}var jQe=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},BQe=QU("findLast",function(){if(Array.isArray(this))return jQe}),qQe=BQe;function KU(e,t,r,n){let{node:o}=e,i=[],a=qQe(0,o[n],s=>s.type!=="EmptyStatement");return e.each(({node:s})=>{s.type!=="EmptyStatement"&&(i.push(r()),s!==a&&(i.push(Be),cd(s,t)&&i.push(Be)))},n),i}function G_e(e,t,r){let n=UQe(e,t,r),{node:o,parent:i}=e;if(o.type==="Program"&&i?.type!=="ModuleExpression")return n?[n,Be]:"";let a=[];if(o.type==="StaticBlock"&&a.push("static "),a.push("{"),n)a.push(Fe([Be,n]),Be);else{let s=e.grandparent;i.type==="ArrowFunctionExpression"||i.type==="FunctionExpression"||i.type==="FunctionDeclaration"||i.type==="ComponentDeclaration"||i.type==="HookDeclaration"||i.type==="ObjectMethod"||i.type==="ClassMethod"||i.type==="ClassPrivateMethod"||i.type==="ForStatement"||i.type==="WhileStatement"||i.type==="DoWhileStatement"||i.type==="DoExpression"||i.type==="ModuleExpression"||i.type==="CatchClause"&&!s.finalizer||i.type==="TSModuleDeclaration"||i.type==="MatchStatementCase"||o.type==="StaticBlock"||a.push(Be)}return a.push("}"),a}function UQe(e,t,r){let{node:n}=e,o=jo(n.directives),i=n.body.some(c=>c.type!=="EmptyStatement"),a=rt(n,St.Dangling);if(!o&&!i&&!a)return"";let s=[];return o&&(s.push(KU(e,t,r,"directives")),(i||a)&&(s.push(Be),cd(Jn(0,n.directives,-1),t)&&s.push(Be))),i&&s.push(KU(e,t,r,"body")),a&&s.push($o(e,t)),s}function zQe(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var VQe=zQe;function Ez(e,t,r){let{node:n}=e,o=[],i=n.type==="ObjectTypeAnnotation",a=!H_e(e),s=a?at:Be,c=rt(n,St.Dangling),[p,d]=i&&n.exact?["{|","|}"]:"{}",f;if(JQe(e,({node:m,next:y,isLast:g})=>{if(f??(f=m),o.push(r()),a&&i){let{parent:S}=e;S.inexact||!g?o.push(","):sd(t)&&o.push(Sr(","))}!a&&(KQe({node:m,next:y},t)||W_e({node:m,next:y},t))&&o.push(";"),g||(o.push(s),cd(m,t)&&o.push(Be))}),c&&o.push($o(e,t)),n.type==="ObjectTypeAnnotation"&&n.inexact){let m;rt(n,St.Dangling)?m=[rt(n,St.Line)||nc(t.originalText,Jr(Jn(0,yg(n),-1)))?Be:at,"..."]:m=[f?at:"","..."],o.push(m)}if(a){let m=c||t.objectWrap==="preserve"&&f&&jc(t.originalText,Xr(n),Xr(f)),y;if(o.length===0)y=p+d;else{let g=t.bracketSpacing?at:Pe;y=[p,Fe([g,...o]),g,d]}return e.match(void 0,(g,S)=>S==="typeAnnotation",(g,S)=>S==="typeAnnotation",_D)||e.match(void 0,(g,S)=>g.type==="FunctionTypeParam"&&S==="typeAnnotation",_D)?y:de(y,{shouldBreak:m})}return[p,o.length>0?[Fe([Be,o]),Be]:"",d]}function H_e(e){let{node:t}=e;if(t.type==="ObjectTypeAnnotation"){let{key:r,parent:n}=e;return r==="body"&&(n.type==="InterfaceDeclaration"||n.type==="DeclareInterface"||n.type==="DeclareClass")}return t.type==="ClassBody"||t.type==="TSInterfaceBody"}function JQe(e,t){let{node:r}=e;if(r.type==="ClassBody"||r.type==="TSInterfaceBody"){e.each(t,"body");return}if(r.type==="TSTypeLiteral"){e.each(t,"members");return}if(r.type==="ObjectTypeAnnotation"){let n=["properties","indexers","callProperties","internalSlots"].flatMap(o=>e.map(({node:i,index:a})=>({node:i,loc:Xr(i),selector:[o,a]}),o)).sort((o,i)=>o.loc-i.loc);for(let[o,{node:i,selector:a}]of n.entries())e.call(()=>t({node:i,next:n[o+1]?.node,isLast:o===n.length-1}),...a)}}function q_(e,t){let{parent:r}=e;return e.callParent(H_e)?t.semi||r.type==="ObjectTypeAnnotation"?";":"":r.type==="TSTypeLiteral"?e.isLast?t.semi?Sr(";"):"":t.semi||W_e({node:e.node,next:e.next},t)?";":Sr("",";"):""}var dde=wr(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),Z_e=e=>{if(e.computed||e.typeAnnotation)return!1;let{type:t,name:r}=e.key;return t==="Identifier"&&(r==="static"||r==="get"||r==="set")};function KQe({node:e,next:t},r){if(r.semi||!dde(e))return!1;if(!e.value&&Z_e(e))return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let n=t.key?.name;if(n==="in"||n==="instanceof")return!0}if(dde(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let n=t.value?t.value.generator:t.generator;return!!(t.computed||n)}case"TSIndexSignature":return!0}return!1}var GQe=wr(["TSPropertySignature"]);function W_e({node:e,next:t},r){return r.semi||!GQe(e)?!1:Z_e(e)?!0:t?t.type==="TSCallSignatureDeclaration":!1}var HQe=VQe("heritageGroup"),ZQe=wr(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function Tz(e,t,r){let{node:n}=e,o=ZQe(n),i=[Bc(e),H3(e),o?"interface":"class"],a=X_e(e),s=[],c=[];if(n.type!=="InterfaceTypeAnnotation"){n.id&&s.push(" ");for(let d of["id","typeParameters"])if(n[d]){let{leading:f,trailing:m}=e.call(()=>G3(e,t),d);s.push(f,r(d),Fe(m))}}if(n.superClass){let d=[XQe(e,t,r),r(n.superTypeArguments?"superTypeArguments":"superTypeParameters")],f=e.call(()=>["extends ",Rl(e,d,t)],"superClass");a?c.push(at,de(f)):c.push(" ",f)}else c.push(OU(e,t,r,"extends"));c.push(OU(e,t,r,"mixins"),OU(e,t,r,"implements"));let p;return a?(p=HQe(n),i.push(de([...s,Fe(c)],{id:p}))):i.push(...s,...c),!o&&a&&WQe(n.body)?i.push(Sr(Be," ",{groupId:p})):i.push(" "),i.push(r("body")),i}function WQe(e){return e.type==="ObjectTypeAnnotation"?["properties","indexers","callProperties","internalSlots"].some(t=>jo(e[t])):jo(e.body)}function Q_e(e){let t=e.superClass?1:0;for(let r of["extends","mixins","implements"])if(Array.isArray(e[r])&&(t+=e[r].length),t>1)return!0;return t>1}function QQe(e){let{node:t}=e;if(rt(t.id,St.Trailing)||rt(t.typeParameters,St.Trailing)||rt(t.superClass)||Q_e(t))return!0;if(t.superClass)return e.parent.type==="AssignmentExpression"?!1:!(t.superTypeArguments??t.superTypeParameters)&&Mo(t.superClass);let r=t.extends?.[0]??t.mixins?.[0]??t.implements?.[0];return r?r.type==="InterfaceExtends"&&r.id.type==="QualifiedTypeIdentifier"&&!r.typeParameters||(r.type==="TSClassImplements"||r.type==="TSInterfaceHeritage")&&Mo(r.expression)&&!r.typeArguments:!1}var PU=new WeakMap;function X_e(e){let{node:t}=e;return PU.has(t)||PU.set(t,QQe(e)),PU.get(t)}function OU(e,t,r,n){let{node:o}=e;if(!jo(o[n]))return"";let i=$o(e,t,{marker:n}),a=pn([",",at],e.map(r,n));if(!Q_e(o)){let s=[`${n} `,i,a];return X_e(e)?[at,de(s)]:[" ",s]}return[at,i,i&&Be,n,de(Fe([at,a]))]}function XQe(e,t,r){let n=r("superClass"),{parent:o}=e;return o.type==="AssignmentExpression"?de(Sr(["(",Fe([Pe,n]),Pe,")"],n)):n}function Y_e(e,t,r){let{node:n}=e,o=[];return jo(n.decorators)&&o.push(z_e(e,t,r)),o.push(Z3(n)),n.static&&o.push("static "),o.push(H3(e)),n.override&&o.push("override "),o.push(JU(e,t,r)),o}function efe(e,t,r){let{node:n}=e,o=[];jo(n.decorators)&&o.push(z_e(e,t,r)),o.push(Bc(e),Z3(n)),n.static&&o.push("static "),o.push(H3(e)),n.override&&o.push("override "),n.readonly&&o.push("readonly "),n.variance&&o.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&o.push("accessor "),o.push(AD(e,t,r),Ns(e),v_e(e),Na(e,r));let i=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[DD(e,t,r,o," =",i?void 0:"value"),t.semi?";":""]}var YQe=wr(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function tfe(e){return YQe(e)?tfe(e.expression):e}var eXe=wr(["FunctionExpression","ArrowFunctionExpression"]);function tXe(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function rXe(e,t){if(U_e(e,t)){let r=tfe(e.node.expression);return eXe(r)||tXe(r)}return!(!t.semi||B_e(e,t)||q_e(e,t))}function nXe(e,t,r){return[r("expression"),rXe(e,t)?";":""]}function oXe(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(n.length===1)return n[0];let o=pn([",",at],n);return t.__isVueForBindingLeft?["(",Fe([Pe,de(o)]),Pe,")"]:o}if(t.__isEmbeddedTypescriptGenericParameters){let n=e.map(r,"program","body",0,"typeParameters","params");return pn([",",at],n)}}function iXe(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return _de(r);case"BigIntLiteral":return GU(r.extra.raw);case"NumericLiteral":return Wv(r.extra.raw);case"StringLiteral":return gg(Gv(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return fde(r.extra.raw,t);case"Literal":{if(r.regex)return _de(r.regex);if(r.bigint)return GU(r.raw);let{value:n}=r;return typeof n=="number"?Wv(r.raw):typeof n=="string"?aXe(e)?fde(r.raw,t):gg(Gv(r.raw,t)):String(n)}}}function aXe(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&typeof t.directive=="string"}function GU(e){return e.toLowerCase()}function _de({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}var sXe="use strict";function fde(e,t){let r=e.slice(1,-1);if(r===sXe||!(r.includes('"')||r.includes("'"))){let n=t.singleQuote?"'":'"';return n+r+n}return e}function cXe(e,t,r){let n=e.originalText.slice(t,r);for(let o of e[Symbol.for("comments")]){let i=Xr(o);if(i>r)break;let a=Jr(o);if(ax.value&&(x.value.type==="ObjectPattern"||x.value.type==="ArrayPattern"))||n.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&d.length>0&&uXe(n,d[0],t),m=[],y=e.map(({node:x})=>{let A=[...m,de(r())];return m=[",",at],cd(x,t)&&m.push(Be),A},p);if(c){let x;if(rt(n,St.Dangling)){let A=rt(n,St.Line);x=[$o(e,t),A||nc(t.originalText,Jr(Jn(0,yg(n),-1)))?Be:at,"..."]}else x=["..."];y.push([...m,...x])}let g=!(c||Jn(0,d,-1)?.type==="RestElement"),S;if(y.length===0){if(!rt(n,St.Dangling))return["{}",Na(e,r)];S=de(["{",$o(e,t,{indent:!0}),Pe,"}",Ns(e),Na(e,r)])}else{let x=t.bracketSpacing?at:Pe;S=["{",Fe([x,...y]),Sr(g&&sd(t)?",":""),x,"}",Ns(e),Na(e,r)]}return e.match(x=>x.type==="ObjectPattern"&&!jo(x.decorators),_D)||Jm(n)&&(e.match(void 0,(x,A)=>A==="typeAnnotation",(x,A)=>A==="typeAnnotation",_D)||e.match(void 0,(x,A)=>x.type==="FunctionTypeParam"&&A==="typeAnnotation",_D))||!f&&e.match(x=>x.type==="ObjectPattern",x=>x.type==="AssignmentExpression"||x.type==="VariableDeclarator")?S:de(S,{shouldBreak:f})}function uXe(e,t,r){let n=r.originalText,o=Xr(e),i=Xr(t);if(rfe(e)){let a=Xr(e),s=Q3(r,a,i);o=a+s.lastIndexOf("{")}return jc(n,o,i)}function pXe(e,t,r){let{node:n}=e;return["import",n.phase?` ${n.phase}`:"",ife(n),sfe(e,t,r),afe(e,t,r),lfe(e,t,r),t.semi?";":""]}var nfe=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function ofe(e,t,r){let{node:n}=e,o=[PQe(e,t,r),Bc(e),"export",nfe(n)?" default":""],{declaration:i,exported:a}=n;return rt(n,St.Dangling)&&(o.push(" ",$o(e,t)),$de(n)&&o.push(Be)),i?o.push(" ",r("declaration")):(o.push(fXe(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(o.push(" *"),a&&o.push(" as ",r("exported"))):o.push(sfe(e,t,r)),o.push(afe(e,t,r),lfe(e,t,r))),o.push(_Xe(n,t)),o}var dXe=wr(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function _Xe(e,t){return t.semi&&(!e.declaration||nfe(e)&&!dXe(e.declaration))?";":""}function Az(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function ife(e,t){return Az(e.importKind,t)}function fXe(e){return Az(e.exportKind)}function afe(e,t,r){let{node:n}=e;return n.source?[cfe(n,t)?" from":""," ",r("source")]:""}function sfe(e,t,r){let{node:n}=e;if(!cfe(n,t))return"";let o=[" "];if(jo(n.specifiers)){let i=[],a=[];e.each(()=>{let s=e.node.type;if(s==="ExportNamespaceSpecifier"||s==="ExportDefaultSpecifier"||s==="ImportNamespaceSpecifier"||s==="ImportDefaultSpecifier")i.push(r());else if(s==="ExportSpecifier"||s==="ImportSpecifier")a.push(r());else throw new t1(n,"specifier")},"specifiers"),o.push(pn(", ",i)),a.length>0&&(i.length>0&&o.push(", "),a.length>1||i.length>0||n.specifiers.some(s=>rt(s))?o.push(de(["{",Fe([t.bracketSpacing?at:Pe,pn([",",at],a)]),Sr(sd(t)?",":""),t.bracketSpacing?at:Pe,"}"])):o.push(["{",t.bracketSpacing?" ":"",...a,t.bracketSpacing?" ":"","}"]))}else o.push("{}");return o}function cfe(e,t){return e.type!=="ImportDeclaration"||jo(e.specifiers)||e.importKind==="type"?!0:Q3(t,Xr(e),Xr(e.source)).trimEnd().endsWith("from")}function mXe(e,t){if(e.extra?.deprecatedAssertSyntax)return"assert";let r=Q3(t,Jr(e.source),e.attributes?.[0]?Xr(e.attributes[0]):Jr(e)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||jo(e.attributes)?"with":void 0}var hXe=e=>{let{attributes:t}=e;if(t.length!==1)return!1;let[r]=t,{type:n,key:o,value:i}=r;return n==="ImportAttribute"&&(o.type==="Identifier"&&o.name==="type"||fa(o)&&o.value==="type")&&fa(i)&&!rt(r)&&!rt(o)&&!rt(i)};function lfe(e,t,r){let{node:n}=e;if(!n.source)return"";let o=mXe(n,t);if(!o)return"";let i=Dz(e,t,r);return hXe(n)&&(i=B3(i)),[` ${o} `,i]}function yXe(e,t,r){let{node:n}=e,{type:o}=n,i=o.startsWith("Import"),a=i?"imported":"local",s=i?"local":"exported",c=n[a],p=n[s],d="",f="";return o==="ExportNamespaceSpecifier"||o==="ImportNamespaceSpecifier"?d="*":c&&(d=r(a)),p&&!gXe(n)&&(f=r(s)),[Az(o==="ImportSpecifier"?n.importKind:n.exportKind,!1),d,d&&f?" as ":"",f]}function gXe(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;return t.type!==r.type||!ZKe(t,r)?!1:fa(t)?t.value===r.value&&oc(t)===oc(r):t.type==="Identifier"?t.name===r.name:!1}function HU(e,t){return["...",t("argument"),Na(e,t)]}function SXe(e){let t=[e];for(let r=0;rm[N]===n),g=m.type===n.type&&!y,S,x,A=0;do x=S||n,S=e.getParentNode(A),A++;while(S&&S.type===n.type&&s.every(N=>S[N]!==x));let I=S||m,E=x;if(o&&(_a(n[s[0]])||_a(c)||_a(p)||SXe(E))){f=!0,g=!0;let N=ge=>[Sr("("),Fe([Pe,ge]),Pe,Sr(")")],U=ge=>ge.type==="NullLiteral"||ge.type==="Literal"&&ge.value===null||ge.type==="Identifier"&&ge.name==="undefined";d.push(" ? ",U(c)?r(i):N(r(i))," : ",p.type===n.type||U(p)?r(a):N(r(a)))}else{let N=ge=>t.useTabs?Fe(r(ge)):$u(2,r(ge)),U=[at,"? ",c.type===n.type?Sr("","("):"",N(i),c.type===n.type?Sr("",")"):"",at,": ",N(a)];d.push(m.type!==n.type||m[a]===n||y?U:t.useTabs?n_e(Fe(U)):$u(Math.max(0,t.tabWidth-2),U))}let C=N=>m===I?de(N):N,F=!f&&(Mo(m)||m.type==="NGPipeExpression"&&m.left===n)&&!m.computed,O=xXe(e),$=C([vXe(e,t,r),g?d:Fe(d),o&&F&&!O?Pe:""]);return y||O?de([Fe([Pe,$]),Pe]):$}function TXe(e,t){return(Mo(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function DXe(e,t,r,n){return[...e.map(o=>yg(o)),yg(t),yg(r)].flat().some(o=>Mu(o)&&jc(n.originalText,Xr(o),Jr(o)))}var AXe=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function wXe(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let o=0;!r;o++){let i=e.getParentNode(o);if(i.type==="ChainExpression"&&i.expression===n||jn(i)&&i.callee===n||Mo(i)&&i.object===n||i.type==="TSNonNullExpression"&&i.expression===n){n=i;continue}i.type==="NewExpression"&&i.callee===n||Nu(i)&&i.expression===n?(r=e.getParentNode(o+1),n=i):r=i}return n===t?!1:r[AXe.get(r.type)]===n}var NU=e=>[Sr("("),Fe([Pe,e]),Pe,Sr(")")];function wz(e,t,r,n){if(!t.experimentalTernaries)return EXe(e,t,r);let{node:o}=e,i=o.type==="ConditionalExpression",a=Km(o),s=i?"consequent":"trueType",c=i?"alternate":"falseType",p=i?["test"]:["checkType","extendsType"],d=o[s],f=o[c],m=p.map(It=>o[It]),{parent:y}=e,g=y.type===o.type,S=g&&p.some(It=>y[It]===o),x=g&&y[c]===o,A=d.type===o.type,I=f.type===o.type,E=I||x,C=t.tabWidth>2||t.useTabs,F,O,$=0;do O=F||o,F=e.getParentNode($),$++;while(F&&F.type===o.type&&p.every(It=>F[It]!==O));let N=F||y,U=n&&n.assignmentLayout&&n.assignmentLayout!=="break-after-operator"&&(y.type==="AssignmentExpression"||y.type==="VariableDeclarator"||y.type==="ClassProperty"||y.type==="PropertyDefinition"||y.type==="ClassPrivateProperty"||y.type==="ObjectProperty"||y.type==="Property"),ge=(y.type==="ReturnStatement"||y.type==="ThrowStatement")&&!(A||I),Te=i&&N.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",ke=wXe(e),Ve=TXe(o,y),me=a&&Qm(e,t),xe=C?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",Rt=DXe(m,d,f,t)||A||I,Vt=!E&&!g&&!a&&(Te?d.type==="NullLiteral"||d.type==="Literal"&&d.value===null:az(d,t)&&Jpe(o.test,3)),Yt=E||x||a&&!g||g&&i&&Jpe(o.test,1)||Vt,vt=[];!A&&rt(d,St.Dangling)&&e.call(()=>{vt.push($o(e,t),Be)},"consequent");let Fr=[];rt(o.test,St.Dangling)&&e.call(()=>{Fr.push($o(e,t))},"test"),!I&&rt(f,St.Dangling)&&e.call(()=>{Fr.push($o(e,t))},"alternate"),rt(o,St.Dangling)&&Fr.push($o(e,t));let le=Symbol("test"),K=Symbol("consequent"),ae=Symbol("test-and-consequent"),he=i?[NU(r("test")),o.test.type==="ConditionalExpression"?V_:""]:[r("checkType")," ","extends"," ",Km(o.extendsType)||o.extendsType.type==="TSMappedType"?r("extendsType"):de(NU(r("extendsType")))],Oe=de([he," ?"],{id:le}),pt=r(s),Ye=Fe([A||Te&&(_a(d)||g||E)?Be:at,vt,pt]),lt=Yt?de([Oe,E?Ye:Sr(Ye,de(Ye,{id:K}),{groupId:le})],{id:ae}):[Oe,Ye],Nt=r(c),Ct=Vt?Sr(Nt,n_e(NU(Nt)),{groupId:ae}):Nt,Hr=[lt,Fr.length>0?[Fe([Be,Fr]),Be]:I?Be:Vt?Sr(at," ",{groupId:ae}):at,":",I?" ":C?Yt?Sr(xe,Sr(E||Vt?" ":xe," "),{groupId:ae}):Sr(xe," "):" ",I?Ct:de([Fe(Ct),Te&&!Vt?Pe:""]),Ve&&!ke?Pe:"",Rt?V_:""];return U&&!Rt?de(Fe([Pe,de(Hr)])):U||ge?de(Fe(Hr)):ke||a&&S?de([Fe([Pe,Hr]),me?Pe:""]):y===N?de(Hr):Hr}function IXe(e,t,r,n){let{node:o}=e;if(oz(o))return iXe(e,t);switch(o.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[$o(e,t),r("node"),Be];case"File":return oXe(e,t,r)??r("program");case"ExpressionStatement":return nXe(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!rt(o.expression)&&(Ru(o.expression)||Fa(o.expression))?["(",r("expression"),")"]:de(["(",Fe([Pe,r("expression")]),Pe,")"]);case"AssignmentExpression":return MWe(e,t,r);case"VariableDeclarator":return jWe(e,t,r);case"BinaryExpression":case"LogicalExpression":return b_e(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return NWe(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return CWe(e,t,r);case"Identifier":return[o.name,Ns(e),v_e(e),Na(e,r)];case"V8IntrinsicIdentifier":return["%",o.name];case"SpreadElement":return HU(e,r);case"RestElement":return HU(e,r);case"FunctionDeclaration":case"FunctionExpression":return L_e(e,t,r,n);case"ArrowFunctionExpression":return FQe(e,t,r,n);case"YieldExpression":return[`yield${o.delegate?"*":""}`,o.argument?[" ",r("argument")]:""];case"AwaitExpression":{let i=["await"];if(o.argument){i.push(" ",r("argument"));let{parent:a}=e;if(jn(a)&&a.callee===o||Mo(a)&&a.object===o){i=[Fe([Pe,...i]),Pe];let s=e.findAncestor(c=>c.type==="AwaitExpression"||c.type==="BlockStatement");if(s?.type!=="AwaitExpression"||!Ps(s.argument,c=>c===o))return de(i)}}return i}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return ofe(e,t,r);case"ImportDeclaration":return pXe(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return yXe(e,t,r);case"ImportAttribute":return IU(e,t,r);case"Program":case"BlockStatement":case"StaticBlock":return G_e(e,t,r);case"ClassBody":return Ez(e,t,r);case"ThrowStatement":return eQe(e,t,r);case"ReturnStatement":return YWe(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return U3(e,t,r);case"ObjectExpression":case"ObjectPattern":return Dz(e,t,r);case"Property":return xD(o)?JU(e,t,r):IU(e,t,r);case"ObjectProperty":return IU(e,t,r);case"ObjectMethod":return JU(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":return Sz(e,t,r);case"SequenceExpression":{let{parent:i}=e;if(i.type==="ExpressionStatement"||i.type==="ForStatement"){let s=[];return e.each(({isFirst:c})=>{c?s.push(r()):s.push(",",Fe([at,r()]))},"expressions"),de(s)}let a=pn([",",at],e.map(r,"expressions"));return(i.type==="ReturnStatement"||i.type==="ThrowStatement")&&e.key==="argument"||i.type==="ArrowFunctionExpression"&&e.key==="body"?de(Sr([Fe([Pe,a]),Pe],a)):de(a)}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),t.semi?";":""];case"UnaryExpression":{let i=[o.operator];return/[a-z]$/u.test(o.operator)&&i.push(" "),rt(o.argument)?i.push(de(["(",Fe([Pe,r("argument")]),Pe,")"])):i.push(r("argument")),i}case"UpdateExpression":return[o.prefix?o.operator:"",r("argument"),o.prefix?"":o.operator];case"ConditionalExpression":return wz(e,t,r,n);case"VariableDeclaration":{let i=e.map(r,"declarations"),a=e.parent,s=a.type==="ForStatement"||a.type==="ForInStatement"||a.type==="ForOfStatement",c=o.declarations.some(d=>d.init),p;return i.length===1&&!rt(o.declarations[0])?p=i[0]:i.length>0&&(p=Fe(i[0])),de([Bc(e),o.kind,p?[" ",p]:"",Fe(i.slice(1).map(d=>[",",c&&!s?Be:at,d])),t.semi&&!(s&&a.body!==o)?";":""])}case"WithStatement":return de(["with (",r("object"),")",zm(o.body,r("body"))]);case"IfStatement":{let i=zm(o.consequent,r("consequent")),a=[de(["if (",de([Fe([Pe,r("test")]),Pe]),")",i])];if(o.alternate){let s=rt(o.consequent,St.Trailing|St.Line)||$de(o),c=o.consequent.type==="BlockStatement"&&!s;a.push(c?" ":Be),rt(o,St.Dangling)&&a.push($o(e,t),s?Be:" "),a.push("else",de(zm(o.alternate,r("alternate"),o.alternate.type==="IfStatement")))}return a}case"ForStatement":{let i=zm(o.body,r("body")),a=$o(e,t),s=a?[a,Pe]:"";return!o.init&&!o.test&&!o.update?[s,de(["for (;;)",i])]:[s,de(["for (",de([Fe([Pe,r("init"),";",at,r("test"),";",o.update?[at,r("update")]:Sr("",at)]),Pe]),")",i])]}case"WhileStatement":return de(["while (",de([Fe([Pe,r("test")]),Pe]),")",zm(o.body,r("body"))]);case"ForInStatement":return de(["for (",r("left")," in ",r("right"),")",zm(o.body,r("body"))]);case"ForOfStatement":return de(["for",o.await?" await":""," (",r("left")," of ",r("right"),")",zm(o.body,r("body"))]);case"DoWhileStatement":{let i=zm(o.body,r("body"));return[de(["do",i]),o.body.type==="BlockStatement"?" ":Be,"while (",de([Fe([Pe,r("test")]),Pe]),")",t.semi?";":""]}case"DoExpression":return[o.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return[o.type==="BreakStatement"?"break":"continue",o.label?[" ",r("label")]:"",t.semi?";":""];case"LabeledStatement":return[r("label"),`:${o.body.type==="EmptyStatement"&&!rt(o.body,St.Leading)?"":" "}`,r("body")];case"TryStatement":return["try ",r("block"),o.handler?[" ",r("handler")]:"",o.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(o.param){let i=rt(o.param,s=>!Mu(s)||s.leading&&nc(t.originalText,Jr(s))||s.trailing&&nc(t.originalText,Xr(s),{backwards:!0})),a=r("param");return["catch ",i?["(",Fe([Pe,a]),Pe,") "]:["(",a,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[de(["switch (",Fe([Pe,r("discriminant")]),Pe,")"])," {",o.cases.length>0?Fe([Be,pn(Be,e.map(({node:i,isLast:a})=>[r(),!a&&cd(i,t)?Be:""],"cases"))]):"",Be,"}"];case"SwitchCase":{let i=[];o.test?i.push("case ",r("test"),":"):i.push("default:"),rt(o,St.Dangling)&&i.push(" ",$o(e,t));let a=o.consequent.filter(s=>s.type!=="EmptyStatement");if(a.length>0){let s=KU(e,t,r,"consequent");i.push(a.length===1&&a[0].type==="BlockStatement"?[" ",s]:Fe([Be,s]))}return i}case"DebuggerStatement":return["debugger",t.semi?";":""];case"ClassDeclaration":case"ClassExpression":return Tz(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return Y_e(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return efe(e,t,r);case"TemplateElement":return gg(o.value.raw);case"TemplateLiteral":return p_e(e,t,r);case"TaggedTemplateExpression":return rZe(e,t,r);case"PrivateIdentifier":return["#",o.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];case"VoidPattern":return"void";case"EmptyStatement":if(rz(e))return";";default:throw new t1(o,"ESTree")}}function ufe(e){return[e("elementType"),"[]"]}var kXe=wr(["SatisfiesExpression","TSSatisfiesExpression"]);function pfe(e,t,r){let{parent:n,node:o,key:i}=e,a=o.type==="AsConstExpression"?"const":r("typeAnnotation"),s=[r("expression")," ",kXe(o)?"satisfies":"as"," ",a];return i==="callee"&&jn(n)||i==="object"&&Mo(n)?de([Fe([Pe,...s]),Pe]):s}function CXe(e,t,r){let{node:n}=e,o=[Bc(e),"component"];n.id&&o.push(" ",r("id")),o.push(r("typeParameters"));let i=PXe(e,t,r);return n.rendersType?o.push(de([i," ",r("rendersType")])):o.push(de([i])),n.body&&o.push(" ",r("body")),t.semi&&n.type==="DeclareComponent"&&o.push(";"),o}function PXe(e,t,r){let{node:n}=e,o=n.params;if(n.rest&&(o=[...o,n.rest]),o.length===0)return["(",$o(e,t,{filter:a=>Lu(t.originalText,Jr(a))===")"}),")"];let i=[];return NXe(e,(a,s)=>{let c=s===o.length-1;c&&n.rest&&i.push("..."),i.push(r()),!c&&(i.push(","),cd(o[s],t)?i.push(Be,Be):i.push(at))}),["(",Fe([Pe,...i]),Sr(sd(t,"all")&&!OXe(n,o)?",":""),Pe,")"]}function OXe(e,t){return e.rest||Jn(0,t,-1)?.type==="RestElement"}function NXe(e,t){let{node:r}=e,n=0,o=i=>t(i,n++);e.each(o,"params"),r.rest&&e.call(o,"rest")}function FXe(e,t,r){let{node:n}=e;return n.shorthand?r("local"):[r("name")," as ",r("local")]}function RXe(e,t,r){let{node:n}=e,o=[];return n.name&&o.push(r("name"),n.optional?"?: ":": "),o.push(r("typeAnnotation")),o}function dfe(e,t,r){return Dz(e,t,r)}function LXe(e,t,r){let{node:n}=e;return[n.type==="EnumSymbolBody"||n.explicitType?`of ${n.type.slice(4,-4).toLowerCase()} `:"",dfe(e,t,r)]}function _fe(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let o="";return r.initializer&&(o=t("initializer")),r.init&&(o=t("init")),o?[n," = ",o]:n}function ffe(e,t){let{node:r}=e;return[Bc(e),r.const?"const ":"","enum ",t("id")," ",t("body")]}function mfe(e,t,r){let{node:n}=e,o=[H3(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&o.push("new ");let i=wg(e,t,r,!1,!0),a=[];return n.type==="FunctionTypeAnnotation"?a.push($Xe(e)?" => ":": ",r("returnType")):a.push(Na(e,r,"returnType")),e1(n,a)&&(i=de(i)),o.push(i,a),[de(o),n.type==="TSConstructSignatureDeclaration"||n.type==="TSCallSignatureDeclaration"?q_(e,t):""]}function $Xe(e){let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(Nde(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&V3(r,t)||r.type==="ObjectTypeCallProperty"||e.getParentNode(2)?.type==="DeclareFunction"))}function MXe(e,t,r){let{node:n}=e,o=["hook"];n.id&&o.push(" ",r("id"));let i=wg(e,t,r,!1,!0),a=W3(e,r),s=e1(n,a);return o.push(de([s?de(i):i,a]),n.body?" ":"",r("body")),o}function jXe(e,t,r){let{node:n}=e,o=[Bc(e),"hook"];return n.id&&o.push(" ",r("id")),t.semi&&o.push(";"),o}function mde(e){let{node:t}=e;return t.type==="HookTypeAnnotation"&&e.getParentNode(2)?.type==="DeclareHook"}function BXe(e,t,r){let{node:n}=e,o=wg(e,t,r,!1,!0),i=[mde(e)?": ":" => ",r("returnType")];return de([mde(e)?"":"hook ",e1(n,i)?de(o):o,i])}function hfe(e,t,r){return[r("objectType"),Ns(e),"[",r("indexType"),"]"]}function yfe(e,t,r){return["infer ",r("typeParameter")]}function gfe(e,t,r){let n=!1;return de(e.map(({isFirst:o,previous:i,node:a,index:s})=>{let c=r();if(o)return c;let p=Jm(a),d=Jm(i);return d&&p?[" & ",n?Fe(c):c]:!d&&!p||Fu(t.originalText,a)?t.experimentalOperatorPosition==="start"?Fe([at,"& ",c]):Fe([" &",at,c]):(s>1&&(n=!0),[" & ",s>1?Fe(c):c])},"types"))}function qXe(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function UXe(e,t,r){let{node:n}=e;return[de([n.variance?r("variance"):"","[",Fe([r("keyTparam")," in ",r("sourceType")]),"]",qXe(n.optional),": ",r("propType")]),q_(e,t)]}function hde(e,t){return e==="+"||e==="-"?e+t:t}function zXe(e,t,r){let{node:n}=e,o=!1;if(t.objectWrap==="preserve"){let i=Xr(n),a=Q3(t,i+1,Xr(n.key)),s=i+1+a.search(/\S/u);jc(t.originalText,i,s)&&(o=!0)}return de(["{",Fe([t.bracketSpacing?at:Pe,rt(n,St.Dangling)?de([$o(e,t),Be]):"",de([n.readonly?[hde(n.readonly,"readonly")," "]:"","[",r("key")," in ",r("constraint"),n.nameType?[" as ",r("nameType")]:"","]",n.optional?hde(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?Sr(";"):""]),t.bracketSpacing?at:Pe,"}"],{shouldBreak:o})}function VXe(e,t,r){let{node:n}=e;return[de(["match (",Fe([Pe,r("argument")]),Pe,")"])," {",n.cases.length>0?Fe([Be,pn(Be,e.map(({node:o,isLast:i})=>[r(),!i&&cd(o,t)?Be:""],"cases"))]):"",Be,"}"]}function JXe(e,t,r){let{node:n}=e,o=rt(n,St.Dangling)?[" ",$o(e,t)]:[],i=n.type==="MatchStatementCase"?[" ",r("body")]:Fe([at,r("body"),","]);return[r("pattern"),n.guard?de([Fe([at,"if (",r("guard"),")"])]):"",de([" =>",o,i])]}function KXe(e,t,r){let{node:n}=e;switch(n.type){case"MatchOrPattern":return ZXe(e,t,r);case"MatchAsPattern":return[r("pattern")," as ",r("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return r("literal");case"MatchUnaryPattern":return[n.operator,r("argument")];case"MatchIdentifierPattern":return r("id");case"MatchMemberPattern":{let o=n.property.type==="Identifier"?[".",r("property")]:["[",Fe([Pe,r("property")]),Pe,"]"];return de([r("base"),o])}case"MatchBindingPattern":return[n.kind," ",r("id")];case"MatchObjectPattern":{let o=e.map(r,"properties");return n.rest&&o.push(r("rest")),de(["{",Fe([Pe,pn([",",at],o)]),n.rest?"":Sr(","),Pe,"}"])}case"MatchArrayPattern":{let o=e.map(r,"elements");return n.rest&&o.push(r("rest")),de(["[",Fe([Pe,pn([",",at],o)]),n.rest?"":Sr(","),Pe,"]"])}case"MatchObjectPatternProperty":return n.shorthand?r("pattern"):de([r("key"),":",Fe([at,r("pattern")])]);case"MatchRestPattern":{let o=["..."];return n.argument&&o.push(r("argument")),o}}}var Sfe=wr(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function GXe(e){let{patterns:t}=e;if(t.some(n=>rt(n)))return!1;let r=t.find(n=>n.type==="MatchObjectPattern");return r?t.every(n=>n===r||Sfe(n)):!1}function HXe(e){return Sfe(e)||e.type==="MatchObjectPattern"?!0:e.type==="MatchOrPattern"?GXe(e):!1}function ZXe(e,t,r){let{node:n}=e,{parent:o}=e,i=o.type!=="MatchStatementCase"&&o.type!=="MatchExpressionCase"&&o.type!=="MatchArrayPattern"&&o.type!=="MatchObjectPatternProperty"&&!Fu(t.originalText,n),a=HXe(n),s=e.map(()=>{let p=r();return a||(p=$u(2,p)),Rl(e,p,t)},"patterns");if(a)return pn(" | ",s);let c=[Sr(["| "]),pn([at,"| "],s)];return Qm(e,t)?de([Fe([Sr([Pe]),c]),Pe]):o.type==="MatchArrayPattern"&&o.elements.length>1?de([Fe([Sr(["(",Pe]),c]),Pe,Sr(")")]):de(i?Fe(c):c)}function WXe(e,t,r){let{node:n}=e,o=[Bc(e),"opaque type ",r("id"),r("typeParameters")];if(n.supertype&&o.push(": ",r("supertype")),n.lowerBound||n.upperBound){let i=[];n.lowerBound&&i.push(Fe([at,"super ",r("lowerBound")])),n.upperBound&&i.push(Fe([at,"extends ",r("upperBound")])),o.push(de(i))}return n.impltype&&o.push(" = ",r("impltype")),o.push(t.semi?";":""),o}function vfe(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function bfe(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}function xfe(e,t,r){let{node:n}=e,o=[Bc(e),"type ",r("id"),r("typeParameters")],i=n.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[DD(e,t,r,o," =",i),t.semi?";":""]}function QXe(e,t,r){let{node:n}=e;return ss(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function mD(e,t,r,n){let{node:o}=e;if(!o[n])return"";if(!Array.isArray(o[n]))return r(n);let i=J3(e.grandparent),a=e.match(c=>!(c[n].length===1&&Jm(c[n][0])),void 0,(c,p)=>p==="typeAnnotation",c=>c.type==="Identifier",N_e);if(o[n].length===0||!a&&(i||o[n].length===1&&(o[n][0].type==="NullableTypeAnnotation"||SWe(o[n][0]))))return["<",pn(", ",e.map(r,n)),XXe(e,t),">"];let s=o.type==="TSTypeParameterInstantiation"?"":QXe(e,t,n)?",":sd(t)?Sr(","):"";return de(["<",Fe([Pe,pn([",",at],e.map(r,n))]),s,Pe,">"])}function XXe(e,t){let{node:r}=e;if(!rt(r,St.Dangling))return"";let n=!rt(r,St.Line),o=$o(e,t,{indent:!n});return n?o:[o,Be]}function Efe(e,t,r){let{node:n}=e,o=[n.const?"const ":""],i=n.type==="TSTypeParameter"?r("name"):n.name;if(n.variance&&o.push(r("variance")),n.in&&o.push("in "),n.out&&o.push("out "),o.push(i),n.bound&&(n.usesExtendsBound&&o.push(" extends "),o.push(Na(e,r,"bound"))),n.constraint){let a=Symbol("constraint");o.push(" extends",de(Fe(at),{id:a}),ad,gD(r("constraint"),{groupId:a}))}if(n.default){let a=Symbol("default");o.push(" =",de(Fe(at),{id:a}),ad,gD(r("default"),{groupId:a}))}return de(o)}function Tfe(e,t){let{node:r}=e;return[r.type==="TSTypePredicate"&&r.asserts?"asserts ":r.type==="TypePredicate"&&r.kind?`${r.kind} `:"",t("parameterName"),r.typeAnnotation?[" is ",Na(e,t)]:""]}function Dfe({node:e},t){let r=e.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",t(r),t("typeArguments")]}function YXe(e,t,r){let{node:n}=e;if(Ide(n))return n.type.slice(0,-14).toLowerCase();switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return CXe(e,t,r);case"ComponentParameter":return FXe(e,t,r);case"ComponentTypeParameter":return RXe(e,t,r);case"HookDeclaration":return MXe(e,t,r);case"DeclareHook":return jXe(e,t,r);case"HookTypeAnnotation":return BXe(e,t,r);case"DeclareFunction":return[Bc(e),"function ",r("id"),r("predicate"),t.semi?";":""];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",Na(e,r),t.semi?";":""];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[Bc(e),n.kind??"var"," ",r("id"),t.semi?";":""];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return ofe(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return WXe(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return xfe(e,t,r);case"IntersectionTypeAnnotation":return gfe(e,t,r);case"UnionTypeAnnotation":return x_e(e,t,r);case"ConditionalTypeAnnotation":return wz(e,t,r);case"InferTypeAnnotation":return yfe(e,t,r);case"FunctionTypeAnnotation":return mfe(e,t,r);case"TupleTypeAnnotation":return Sz(e,t,r);case"TupleTypeLabeledElement":return bfe(e,t,r);case"TupleTypeSpreadElement":return vfe(e,t,r);case"GenericTypeAnnotation":return[r("id"),mD(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return hfe(e,t,r);case"TypeAnnotation":return D_e(e,t,r);case"TypeParameter":return Efe(e,t,r);case"TypeofTypeAnnotation":return Dfe(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return ufe(r);case"DeclareEnum":case"EnumDeclaration":return ffe(e,r);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return LXe(e,t,r);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return _fe(e,r);case"FunctionTypeParam":{let o=n.name?r("name"):e.parent.this===n?"this":"";return[o,Ns(e),o?": ":"",r("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Tz(e,t,r);case"ObjectTypeAnnotation":return Ez(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:o}=n;return Sg(o==="plus"||o==="minus"),o==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value"),q_(e,t)];case"ObjectTypeMappedTypeProperty":return UXe(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value"),q_(e,t)];case"ObjectTypeProperty":{let o="";return n.proto?o="proto ":n.static&&(o="static "),[o,n.kind!=="init"?n.kind+" ":"",n.variance?r("variance"):"",AD(e,t,r),Ns(e),xD(n)?"":": ",r("value"),q_(e,t)]}case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",Ns(e),n.method?"":": ",r("value"),q_(e,t)];case"ObjectTypeSpreadProperty":return HU(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return gg(Gv(oc(n),t));case"NumberLiteralTypeAnnotation":return Wv(oc(n));case"BigIntLiteralTypeAnnotation":return GU(oc(n));case"TypeCastExpression":return["(",r("expression"),Na(e,r),")"];case"TypePredicate":return Tfe(e,r);case"TypeOperator":return[n.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return mD(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return pfe(e,t,r);case"MatchExpression":case"MatchStatement":return VXe(e,t,r);case"MatchExpressionCase":case"MatchStatementCase":return JXe(e,t,r);case"MatchOrPattern":case"MatchAsPattern":case"MatchWildcardPattern":case"MatchLiteralPattern":case"MatchUnaryPattern":case"MatchIdentifierPattern":case"MatchMemberPattern":case"MatchBindingPattern":case"MatchObjectPattern":case"MatchObjectPatternProperty":case"MatchRestPattern":case"MatchArrayPattern":return KXe(e,t,r)}}function eYe(e,t,r){let{node:n}=e,o=n.parameters.length>1?Sr(sd(t)?",":""):"",i=de([Fe([Pe,pn([", ",Pe],e.map(r,"parameters"))]),o,Pe]);return[e.key==="body"&&e.parent.type==="ClassBody"&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?i:"","]",Na(e,r),q_(e,t)]}function yde(e,t,r){let{node:n}=e;return[n.postfix?"":r,Na(e,t),n.postfix?r:""]}function tYe(e,t,r){let{node:n}=e,o=[],i=n.kind&&n.kind!=="method"?`${n.kind} `:"";o.push(Z3(n),i,n.computed?"[":"",r("key"),n.computed?"]":"",Ns(e));let a=wg(e,t,r,!1,!0),s=Na(e,r,"returnType"),c=e1(n,s);return o.push(c?de(a):a),n.returnType&&o.push(de(s)),[de(o),q_(e,t)]}function rYe(e,t,r){let{node:n}=e;return[Bc(e),n.kind==="global"?"":`${n.kind} `,r("id"),n.body?[" ",de(r("body"))]:t.semi?";":""]}function nYe(e,t,r){let{node:n}=e,o=!(Fa(n.expression)||Ru(n.expression)),i=de(["<",Fe([Pe,r("typeAnnotation")]),Pe,">"]),a=[Sr("("),Fe([Pe,r("expression")]),Pe,Sr(")")];return o?hg([[i,r("expression")],[i,de(a,{shouldBreak:!0})],[i,r("expression")]]):de([i,r("expression")])}function oYe(e,t,r){let{node:n}=e;if(n.type.startsWith("TS")){if(kde(n))return n.type.slice(2,-7).toLowerCase();switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":return nYe(e,t,r);case"TSDeclareFunction":return L_e(e,t,r);case"TSExportAssignment":return["export = ",r("expression"),t.semi?";":""];case"TSModuleBlock":return G_e(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return Ez(e,t,r);case"TSTypeAliasDeclaration":return xfe(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return Y_e(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return efe(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[r("expression"),r("typeArguments")];case"TSTemplateLiteralType":return p_e(e,t,r);case"TSNamedTupleMember":return bfe(e,t,r);case"TSRestType":return vfe(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Tz(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return mD(e,t,r,"params");case"TSTypeParameter":return Efe(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":return pfe(e,t,r);case"TSArrayType":return ufe(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",AD(e,t,r),Ns(e),Na(e,r),q_(e,t)];case"TSParameterProperty":return[Z3(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return Dfe(e,r);case"TSIndexSignature":return eYe(e,t,r);case"TSTypePredicate":return Tfe(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[U3(e,t,r),n.qualifier?[".",r("qualifier")]:"",mD(e,t,r,"typeArguments")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return hfe(e,t,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return zXe(e,t,r);case"TSMethodSignature":return tYe(e,t,r);case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return ffe(e,r);case"TSEnumBody":return dfe(e,t,r);case"TSEnumMember":return _fe(e,r);case"TSImportEqualsDeclaration":return["import ",ife(n,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return U3(e,t,r);case"TSModuleDeclaration":return rYe(e,t,r);case"TSConditionalType":return wz(e,t,r);case"TSInferType":return yfe(e,t,r);case"TSIntersectionType":return gfe(e,t,r);case"TSUnionType":return x_e(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return mfe(e,t,r);case"TSTupleType":return Sz(e,t,r);case"TSTypeReference":return[r("typeName"),mD(e,t,r,"typeArguments")];case"TSTypeAnnotation":return D_e(e,t,r);case"TSEmptyBodyFunctionExpression":return vz(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return yde(e,r,"?");case"TSJSDocNonNullableType":return yde(e,r,"!");default:throw new t1(n,"TypeScript")}}}function iYe(e,t,r,n){for(let o of[wQe,xQe,YXe,oYe,IXe]){let i=o(e,t,r,n);if(i!==void 0)return i}}var aYe=wr(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function sYe(e,t,r,n){e.isRoot&&t.__onHtmlBindingRoot?.(e.node,t);let{node:o}=e,i=xz(e)?t.originalText.slice(Xr(o),Jr(o)):iYe(e,t,r,n);if(!i)return"";if(aYe(o))return i;let a=jo(o.decorators),s=OQe(e,t,r),c=o.type==="ClassExpression";if(a&&!c)return MU(i,f=>de([s,f]));let p=Qm(e,t),d=rQe(e,t);return!s&&!p&&!d?i:MU(i,f=>[d?";":"",p?"(":"",p&&c&&a?[Fe([at,s,f]),at]:[s,f],p?")":""])}var gde=sYe,cYe={experimental_avoidAstMutation:!0},lYe=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],Afe={};ZU(Afe,{getVisitorKeys:()=>dYe,massageAstNode:()=>wfe,print:()=>_Ye});var Uv=[[]],uYe={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:Uv[0],BooleanLiteral:Uv[0],StringLiteral:Uv[0],NumericLiteral:Uv[0],Identifier:Uv[0],TemplateLiteral:["quasis"],TemplateElement:Uv[0]},pYe=Ade(uYe),dYe=pYe;function _Ye(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),Be];case"ArrayExpression":{if(n.elements.length===0)return"[]";let o=e.map(()=>e.node===null?"null":r(),"elements");return["[",Fe([Be,pn([",",Be],o)]),Be,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",Fe([Be,pn([",",Be],e.map(r,"properties"))]),Be,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return Sde(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return Sde(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new t1(n,"JSON")}}function Sde(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var fYe=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function wfe(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,o]of e.elements.entries())o===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}wfe.ignoredProperties=fYe;var uD={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Vm="JavaScript",mYe={arrowParens:{category:Vm,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:uD.bracketSameLine,objectWrap:uD.objectWrap,bracketSpacing:uD.bracketSpacing,jsxBracketSameLine:{category:Vm,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Vm,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:Vm,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:Vm,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:uD.singleQuote,jsxSingleQuote:{category:Vm,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Vm,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:Vm,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:uD.singleAttributePerLine},hYe=mYe,yYe={estree:vde,"estree-json":Afe},gYe=[...hKe,...lYe];var SYe=Object.defineProperty,Mme=(e,t)=>{for(var r in t)SYe(e,r,{get:t[r],enumerable:!0})},pV={};Mme(pV,{parsers:()=>jme});var jme={};Mme(jme,{typescript:()=>Fst});var vYe=()=>()=>{},dV=vYe,_V=(e,t)=>(r,n,...o)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,o),bYe=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},xYe=_V("replaceAll",function(){if(typeof this=="string")return bYe}),u1=xYe,EYe="5.9",ii=[],TYe=new Map;function ND(e){return e!==void 0?e.length:0}function Jc(e,t){if(e!==void 0)for(let r=0;r0;return!1}function mV(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function kYe(e,t,r=yV){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let n=0;ne?.at(t):(e,t)=>{if(e!==void 0&&(t=Jz(e,t),t>1),c=r(e[s],s);switch(n(c,t)){case-1:i=s+1;break;case 0:return s;case 1:a=s-1;break}}return~i}function $Ye(e,t,r,n,o){if(e&&e.length>0){let i=e.length;if(i>0){let a=n===void 0||n<0?0:n,s=o===void 0||a+o>i-1?i-1:a+o,c;for(arguments.length<=2?(c=e[a],a++):c=r;a<=s;)c=t(c,e[a],a),a++;return c}}return r}var zme=Object.prototype.hasOwnProperty;function _d(e,t){return zme.call(e,t)}function MYe(e){let t=[];for(let r in e)zme.call(e,r)&&t.push(r);return t}function jYe(){let e=new Map;return e.add=BYe,e.remove=qYe,e}function BYe(e,t){let r=this.get(e);return r!==void 0?r.push(t):this.set(e,r=[t]),r}function qYe(e,t){let r=this.get(e);r!==void 0&&(WYe(r,t),r.length||this.delete(e))}function ef(e){return Array.isArray(e)}function kz(e){return ef(e)?e:[e]}function UYe(e,t){return e!==void 0&&t(e)?e:void 0}function ud(e,t){return e!==void 0&&t(e)?e:pe.fail(`Invalid cast. The supplied value ${e} did not pass the test '${pe.getFunctionName(t)}'.`)}function S1(e){}function zYe(){return!0}function Bo(e){return e}function kfe(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function $l(e){let t=new Map;return r=>{let n=`${typeof r}:${r}`,o=t.get(n);return o===void 0&&!t.has(n)&&(o=e(r),t.set(n,o)),o}}function yV(e,t){return e===t}function gV(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function VYe(e,t){return yV(e,t)}function JYe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:er?s-r:1),d=Math.floor(t.length>r+s?r+s:t.length);o[0]=s;let f=s;for(let y=1;yr)return;let m=n;n=o,o=m}let a=n[t.length];return a>r?void 0:a}function HYe(e,t,r){let n=e.length-t.length;return n>=0&&(r?gV(e.slice(n),t):e.indexOf(t,n)===n)}function ZYe(e,t){e[t]=e[e.length-1],e.pop()}function WYe(e,t){return QYe(e,r=>r===t)}function QYe(e,t){for(let r=0;r{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(oe){return e.currentLogLevel<=oe}e.shouldLog=r;function n(oe,qe){e.loggingHost&&r(oe)&&e.loggingHost.log(oe,qe)}function o(oe){n(3,oe)}e.log=o,(oe=>{function qe(dn){n(1,dn)}oe.error=qe;function et(dn){n(2,dn)}oe.warn=et;function Et(dn){n(3,dn)}oe.log=Et;function Zr(dn){n(4,dn)}oe.trace=Zr})(o=e.log||(e.log={}));let i={};function a(){return t}e.getAssertionLevel=a;function s(oe){let qe=t;if(t=oe,oe>qe)for(let et of MYe(i)){let Et=i[et];Et!==void 0&&e[et]!==Et.assertion&&oe>=Et.level&&(e[et]=Et,i[et]=void 0)}}e.setAssertionLevel=s;function c(oe){return t>=oe}e.shouldAssert=c;function p(oe,qe){return c(oe)?!0:(i[qe]={level:oe,assertion:e[qe]},e[qe]=S1,!1)}function d(oe,qe){debugger;let et=new Error(oe?`Debug Failure. ${oe}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(et,qe||d),et}e.fail=d;function f(oe,qe,et){return d(`${qe||"Unexpected node."}\r +`)),a=t.singleAttributePerLine&&n.attributes.length>1?Be:at;return de(["<",r("name"),r("typeArguments"),Fe(e.map(()=>[a,r()],"attributes")),...yQe(n,t,o)],{shouldBreak:i})}function yQe(e,t,r){return e.selfClosing?[at,"/>"]:gQe(e,t,r)?[">"]:[Pe,">"]}function gQe(e,t,r){let n=e.attributes.length>0&&rt(Vn(0,e.attributes,-1),St.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function SQe(e,t,r){let{node:n}=e,o=[""),o}function vQe(e,t){let{node:r}=e,n=rt(r),o=rt(r,St.Line),i=r.type==="JSXOpeningFragment";return[i?"<":""]}function bQe(e,t,r){let n=Ll(e,lQe(e,t,r),t);return dQe(e,n,t)}function xQe(e,t){let{node:r}=e,n=rt(r,St.Line);return[$o(e,t,{indent:n}),n?Be:""]}function EQe(e,t,r){let{node:n}=e;return["{",e.call(({node:o})=>{let i=["...",r()];return rt(o)?[Fe([Pe,Ll(e,i,t)]),Pe]:i},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function TQe(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return fQe(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return dn(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return dn(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return EQe(e,t,r);case"JSXExpressionContainer":return mQe(e,t,r);case"JSXFragment":case"JSXElement":return bQe(e,t,r);case"JSXOpeningElement":return hQe(e,t,r);case"JSXClosingElement":return SQe(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return vQe(e,t);case"JSXEmptyExpression":return xQe(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new o1(n,"JSX")}}function DQe(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!xD(t)}function xD(e){return e.type==="JSXText"&&(j3.hasNonWhitespaceCharacter(oc(e))||!/\n/u.test(oc(e)))}function AQe(e){return e.type==="JSXExpressionContainer"&&fa(e.expression)&&e.expression.value===" "&&!rt(e.expression)}function IQe(e){let{node:t,parent:r}=e;if(!_a(t)||!_a(r))return!1;let{index:n,siblings:o}=e,i;for(let a=n;a>0;a--){let s=o[a-1];if(!(s.type==="JSXText"&&!xD(s))){i=s;break}}return i?.type==="JSXExpressionContainer"&&i.expression.type==="JSXEmptyExpression"&&H3(i.expression)}function wQe(e){return H3(e.node)||IQe(e)}var Tz=wQe;function kQe(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return r("node");case"NGPipeExpression":return E_e(e,t,r);case"NGChainedExpression":return de(dn([";",at],e.map(()=>OQe(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":_de(e)?" ":[";",at],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:o,parent:i}=e,a=_de(e)||CQe(e)||(o===1&&(n.key.name==="then"||n.key.name==="else"||n.key.name==="as")||o===2&&(n.key.name==="else"&&i.body[o-1].type==="NGMicrosyntaxKeyedExpression"&&i.body[o-1].key.name==="then"||n.key.name==="track"))&&i.body[0].type==="NGMicrosyntaxExpression";return[r("key"),a?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new o1(n,"Angular")}}function _de({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}function CQe(e){let{node:t}=e;return e.parent.body[1].key.name==="of"&&t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="track"&&t.key.type==="NGMicrosyntaxKey"}var PQe=Ir(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function OQe({node:e}){return LU(e,PQe)}function V_e(e,t,r){let{node:n}=e;return de([dn(at,e.map(r,"decorators")),K_e(n,t)?Be:at])}function NQe(e,t,r){return G_e(e.node)?[dn(Be,e.map(r,"declaration","decorators")),Be]:""}function FQe(e,t,r){let{node:n,parent:o}=e,{decorators:i}=n;if(!jo(i)||G_e(o)||Tz(e))return"";let a=n.type==="ClassExpression"||n.type==="ClassDeclaration"||K_e(n,t);return[e.key==="declaration"&&_Ge(o)?Be:a?K_:"",dn(at,e.map(r,"decorators")),at]}function K_e(e,t){return e.decorators.some(r=>nc(t.originalText,Kr(r)))}function G_e(e){if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=e.declaration?.decorators;return jo(t)&&K3(e,t[0])}var OU=new WeakMap;function H_e(e){return OU.has(e)||OU.set(e,e.type==="ConditionalExpression"&&!Ps(e,t=>t.type==="ObjectExpression")),OU.get(e)}var RQe=e=>e.type==="SequenceExpression";function LQe(e,t,r,n={}){let o=[],i,a=[],s=!1,c=!n.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",p;(function E(){let{node:I}=e,T=$Qe(e,t,r,n);if(o.length===0)o.push(T);else{let{leading:k,trailing:F}=Z3(e,t);o.push([k,T]),a.unshift(F)}c&&(s||(s=I.returnType&&ss(I).length>0||I.typeParameters||ss(I).some(k=>k.type!=="Identifier"))),!c||I.body.type!=="ArrowFunctionExpression"?(i=r("body",n),p=I.body):e.call(E,"body")})();let d=!Ru(t.originalText,p)&&(RQe(p)||MQe(p,i,t)||!s&&H_e(p)),f=e.key==="callee"&&Xv(e.parent),m=Symbol("arrow-chain"),y=jQe(e,n,{signatureDocs:o,shouldBreak:s}),g=!1,S=!1,b=!1;return c&&(f||n.assignmentLayout)&&(S=!0,b=!rt(e.node,St.Leading&St.Line),g=n.assignmentLayout==="chain-tail-arrow-chain"||f&&!d),i=BQe(e,t,n,{bodyDoc:i,bodyComments:a,functionBody:p,shouldPutBodyOnSameLine:d}),de([de(S?Fe([b?Pe:"",y]):y,{shouldBreak:g,id:m})," =>",c?vD(i,{groupId:m}):de(i),c&&f?Sr(Pe,"",{groupId:m}):""])}function $Qe(e,t,r,n){let{node:o}=e,i=[];if(o.async&&i.push("async "),j_e(e,t))i.push(r(["params",0]));else{let s=n.expandLastArg||n.expandFirstArg,c=X3(e,r);if(s){if(Os(c))throw new z3;c=de(U3(c))}i.push(de([Pg(e,t,r,s,!0),c]))}let a=$o(e,t,{filter(s){let c=e1(t.originalText,Kr(s));return c!==!1&&t.originalText.slice(c,c+2)==="=>"}});return a&&i.push(" ",a),i}function MQe(e,t,r){return Fa(e)||Lu(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||_a(e)||t.label?.hug!==!1&&(t.label?.embed||Mde(e,r.originalText))}function jQe(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:o,key:i}=e;return i!=="callee"&&Xv(o)||J_(o)?de([r[0]," =>",Fe([at,dn([" =>",at],r.slice(1))])],{shouldBreak:n}):i==="callee"&&Xv(o)||t.assignmentLayout?de(dn([" =>",at],r),{shouldBreak:n}):de(Fe(dn([" =>",at],r)),{shouldBreak:n})}function BQe(e,t,r,{bodyDoc:n,bodyComments:o,functionBody:i,shouldPutBodyOnSameLine:a}){let{node:s,parent:c}=e,p=r.expandLastArg&&cd(t,"all")?Sr(","):"",d=(r.expandLastArg||c.type==="JSXExpressionContainer")&&!rt(s)?Pe:"";return a&&H_e(i)?[" ",de([Sr("","("),Fe([Pe,n]),Sr("",")"),p,d]),o]:a?[" ",n,o]:[Fe([at,n,o]),p,d]}var qQe=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},UQe=YU("findLast",function(){if(Array.isArray(this))return qQe}),zQe=UQe;function HU(e,t,r,n){let{node:o}=e,i=[],a=zQe(0,o[n],s=>s.type!=="EmptyStatement");return e.each(({node:s})=>{s.type!=="EmptyStatement"&&(i.push(r()),s!==a&&(i.push(Be),ld(s,t)&&i.push(Be)))},n),i}function Z_e(e,t,r){let n=JQe(e,t,r),{node:o,parent:i}=e;if(o.type==="Program"&&i?.type!=="ModuleExpression")return n?[n,Be]:"";let a=[];if(o.type==="StaticBlock"&&a.push("static "),a.push("{"),n)a.push(Fe([Be,n]),Be);else{let s=e.grandparent;i.type==="ArrowFunctionExpression"||i.type==="FunctionExpression"||i.type==="FunctionDeclaration"||i.type==="ComponentDeclaration"||i.type==="HookDeclaration"||i.type==="ObjectMethod"||i.type==="ClassMethod"||i.type==="ClassPrivateMethod"||i.type==="ForStatement"||i.type==="WhileStatement"||i.type==="DoWhileStatement"||i.type==="DoExpression"||i.type==="ModuleExpression"||i.type==="CatchClause"&&!s.finalizer||i.type==="TSModuleDeclaration"||i.type==="MatchStatementCase"||o.type==="StaticBlock"||a.push(Be)}return a.push("}"),a}function JQe(e,t,r){let{node:n}=e,o=jo(n.directives),i=n.body.some(c=>c.type!=="EmptyStatement"),a=rt(n,St.Dangling);if(!o&&!i&&!a)return"";let s=[];return o&&(s.push(HU(e,t,r,"directives")),(i||a)&&(s.push(Be),ld(Vn(0,n.directives,-1),t)&&s.push(Be))),i&&s.push(HU(e,t,r,"body")),a&&s.push($o(e,t)),s}function VQe(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var KQe=VQe;function Dz(e,t,r){let{node:n}=e,o=[],i=n.type==="ObjectTypeAnnotation",a=!W_e(e),s=a?at:Be,c=rt(n,St.Dangling),[p,d]=i&&n.exact?["{|","|}"]:"{}",f;if(GQe(e,({node:m,next:y,isLast:g})=>{if(f??(f=m),o.push(r()),a&&i){let{parent:S}=e;S.inexact||!g?o.push(","):cd(t)&&o.push(Sr(","))}!a&&(HQe({node:m,next:y},t)||X_e({node:m,next:y},t))&&o.push(";"),g||(o.push(s),ld(m,t)&&o.push(Be))}),c&&o.push($o(e,t)),n.type==="ObjectTypeAnnotation"&&n.inexact){let m;rt(n,St.Dangling)?m=[rt(n,St.Line)||nc(t.originalText,Kr(Vn(0,bg(n),-1)))?Be:at,"..."]:m=[f?at:"","..."],o.push(m)}if(a){let m=c||t.objectWrap==="preserve"&&f&&jc(t.originalText,Yr(n),Yr(f)),y;if(o.length===0)y=p+d;else{let g=t.bracketSpacing?at:Pe;y=[p,Fe([g,...o]),g,d]}return e.match(void 0,(g,S)=>S==="typeAnnotation",(g,S)=>S==="typeAnnotation",mD)||e.match(void 0,(g,S)=>g.type==="FunctionTypeParam"&&S==="typeAnnotation",mD)?y:de(y,{shouldBreak:m})}return[p,o.length>0?[Fe([Be,o]),Be]:"",d]}function W_e(e){let{node:t}=e;if(t.type==="ObjectTypeAnnotation"){let{key:r,parent:n}=e;return r==="body"&&(n.type==="InterfaceDeclaration"||n.type==="DeclareInterface"||n.type==="DeclareClass")}return t.type==="ClassBody"||t.type==="TSInterfaceBody"}function GQe(e,t){let{node:r}=e;if(r.type==="ClassBody"||r.type==="TSInterfaceBody"){e.each(t,"body");return}if(r.type==="TSTypeLiteral"){e.each(t,"members");return}if(r.type==="ObjectTypeAnnotation"){let n=["properties","indexers","callProperties","internalSlots"].flatMap(o=>e.map(({node:i,index:a})=>({node:i,loc:Yr(i),selector:[o,a]}),o)).sort((o,i)=>o.loc-i.loc);for(let[o,{node:i,selector:a}]of n.entries())e.call(()=>t({node:i,next:n[o+1]?.node,isLast:o===n.length-1}),...a)}}function z_(e,t){let{parent:r}=e;return e.callParent(W_e)?t.semi||r.type==="ObjectTypeAnnotation"?";":"":r.type==="TSTypeLiteral"?e.isLast?t.semi?Sr(";"):"":t.semi||X_e({node:e.node,next:e.next},t)?";":Sr("",";"):""}var fde=Ir(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),Q_e=e=>{if(e.computed||e.typeAnnotation)return!1;let{type:t,name:r}=e.key;return t==="Identifier"&&(r==="static"||r==="get"||r==="set")};function HQe({node:e,next:t},r){if(r.semi||!fde(e))return!1;if(!e.value&&Q_e(e))return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let n=t.key?.name;if(n==="in"||n==="instanceof")return!0}if(fde(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let n=t.value?t.value.generator:t.generator;return!!(t.computed||n)}case"TSIndexSignature":return!0}return!1}var ZQe=Ir(["TSPropertySignature"]);function X_e({node:e,next:t},r){return r.semi||!ZQe(e)?!1:Q_e(e)?!0:t?t.type==="TSCallSignatureDeclaration":!1}var WQe=KQe("heritageGroup"),QQe=Ir(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function Az(e,t,r){let{node:n}=e,o=QQe(n),i=[Bc(e),W3(e),o?"interface":"class"],a=efe(e),s=[],c=[];if(n.type!=="InterfaceTypeAnnotation"){n.id&&s.push(" ");for(let d of["id","typeParameters"])if(n[d]){let{leading:f,trailing:m}=e.call(()=>Z3(e,t),d);s.push(f,r(d),Fe(m))}}if(n.superClass){let d=[eXe(e,t,r),r(n.superTypeArguments?"superTypeArguments":"superTypeParameters")],f=e.call(()=>["extends ",Ll(e,d,t)],"superClass");a?c.push(at,de(f)):c.push(" ",f)}else c.push(FU(e,t,r,"extends"));c.push(FU(e,t,r,"mixins"),FU(e,t,r,"implements"));let p;return a?(p=WQe(n),i.push(de([...s,Fe(c)],{id:p}))):i.push(...s,...c),!o&&a&&XQe(n.body)?i.push(Sr(Be," ",{groupId:p})):i.push(" "),i.push(r("body")),i}function XQe(e){return e.type==="ObjectTypeAnnotation"?["properties","indexers","callProperties","internalSlots"].some(t=>jo(e[t])):jo(e.body)}function Y_e(e){let t=e.superClass?1:0;for(let r of["extends","mixins","implements"])if(Array.isArray(e[r])&&(t+=e[r].length),t>1)return!0;return t>1}function YQe(e){let{node:t}=e;if(rt(t.id,St.Trailing)||rt(t.typeParameters,St.Trailing)||rt(t.superClass)||Y_e(t))return!0;if(t.superClass)return e.parent.type==="AssignmentExpression"?!1:!(t.superTypeArguments??t.superTypeParameters)&&Mo(t.superClass);let r=t.extends?.[0]??t.mixins?.[0]??t.implements?.[0];return r?r.type==="InterfaceExtends"&&r.id.type==="QualifiedTypeIdentifier"&&!r.typeParameters||(r.type==="TSClassImplements"||r.type==="TSInterfaceHeritage")&&Mo(r.expression)&&!r.typeArguments:!1}var NU=new WeakMap;function efe(e){let{node:t}=e;return NU.has(t)||NU.set(t,YQe(e)),NU.get(t)}function FU(e,t,r,n){let{node:o}=e;if(!jo(o[n]))return"";let i=$o(e,t,{marker:n}),a=dn([",",at],e.map(r,n));if(!Y_e(o)){let s=[`${n} `,i,a];return efe(e)?[at,de(s)]:[" ",s]}return[at,i,i&&Be,n,de(Fe([at,a]))]}function eXe(e,t,r){let n=r("superClass"),{parent:o}=e;return o.type==="AssignmentExpression"?de(Sr(["(",Fe([Pe,n]),Pe,")"],n)):n}function tfe(e,t,r){let{node:n}=e,o=[];return jo(n.decorators)&&o.push(V_e(e,t,r)),o.push(Q3(n)),n.static&&o.push("static "),o.push(W3(e)),n.override&&o.push("override "),o.push(GU(e,t,r)),o}function rfe(e,t,r){let{node:n}=e,o=[];jo(n.decorators)&&o.push(V_e(e,t,r)),o.push(Bc(e),Q3(n)),n.static&&o.push("static "),o.push(W3(e)),n.override&&o.push("override "),n.readonly&&o.push("readonly "),n.variance&&o.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&o.push("accessor "),o.push(wD(e,t,r),Ns(e),x_e(e),Na(e,r));let i=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[ID(e,t,r,o," =",i?void 0:"value"),t.semi?";":""]}var tXe=Ir(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function nfe(e){return tXe(e)?nfe(e.expression):e}var rXe=Ir(["FunctionExpression","ArrowFunctionExpression"]);function nXe(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function oXe(e,t){if(J_e(e,t)){let r=nfe(e.node.expression);return rXe(r)||nXe(r)}return!(!t.semi||U_e(e,t)||z_e(e,t))}function iXe(e,t,r){return[r("expression"),oXe(e,t)?";":""]}function aXe(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(n.length===1)return n[0];let o=dn([",",at],n);return t.__isVueForBindingLeft?["(",Fe([Pe,de(o)]),Pe,")"]:o}if(t.__isEmbeddedTypescriptGenericParameters){let n=e.map(r,"program","body",0,"typeParameters","params");return dn([",",at],n)}}function sXe(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return mde(r);case"BigIntLiteral":return ZU(r.extra.raw);case"NumericLiteral":return Yv(r.extra.raw);case"StringLiteral":return xg(Wv(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return hde(r.extra.raw,t);case"Literal":{if(r.regex)return mde(r.regex);if(r.bigint)return ZU(r.raw);let{value:n}=r;return typeof n=="number"?Yv(r.raw):typeof n=="string"?cXe(e)?hde(r.raw,t):xg(Wv(r.raw,t)):String(n)}}}function cXe(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&typeof t.directive=="string"}function ZU(e){return e.toLowerCase()}function mde({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}var lXe="use strict";function hde(e,t){let r=e.slice(1,-1);if(r===lXe||!(r.includes('"')||r.includes("'"))){let n=t.singleQuote?"'":'"';return n+r+n}return e}function uXe(e,t,r){let n=e.originalText.slice(t,r);for(let o of e[Symbol.for("comments")]){let i=Yr(o);if(i>r)break;let a=Kr(o);if(ab.value&&(b.value.type==="ObjectPattern"||b.value.type==="ArrayPattern"))||n.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&d.length>0&&dXe(n,d[0],t),m=[],y=e.map(({node:b})=>{let E=[...m,de(r())];return m=[",",at],ld(b,t)&&m.push(Be),E},p);if(c){let b;if(rt(n,St.Dangling)){let E=rt(n,St.Line);b=[$o(e,t),E||nc(t.originalText,Kr(Vn(0,bg(n),-1)))?Be:at,"..."]}else b=["..."];y.push([...m,...b])}let g=!(c||Vn(0,d,-1)?.type==="RestElement"),S;if(y.length===0){if(!rt(n,St.Dangling))return["{}",Na(e,r)];S=de(["{",$o(e,t,{indent:!0}),Pe,"}",Ns(e),Na(e,r)])}else{let b=t.bracketSpacing?at:Pe;S=["{",Fe([b,...y]),Sr(g&&cd(t)?",":""),b,"}",Ns(e),Na(e,r)]}return e.match(b=>b.type==="ObjectPattern"&&!jo(b.decorators),mD)||Hm(n)&&(e.match(void 0,(b,E)=>E==="typeAnnotation",(b,E)=>E==="typeAnnotation",mD)||e.match(void 0,(b,E)=>b.type==="FunctionTypeParam"&&E==="typeAnnotation",mD))||!f&&e.match(b=>b.type==="ObjectPattern",b=>b.type==="AssignmentExpression"||b.type==="VariableDeclarator")?S:de(S,{shouldBreak:f})}function dXe(e,t,r){let n=r.originalText,o=Yr(e),i=Yr(t);if(ofe(e)){let a=Yr(e),s=Y3(r,a,i);o=a+s.lastIndexOf("{")}return jc(n,o,i)}function _Xe(e,t,r){let{node:n}=e;return["import",n.phase?` ${n.phase}`:"",sfe(n),lfe(e,t,r),cfe(e,t,r),pfe(e,t,r),t.semi?";":""]}var ife=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function afe(e,t,r){let{node:n}=e,o=[NQe(e,t,r),Bc(e),"export",ife(n)?" default":""],{declaration:i,exported:a}=n;return rt(n,St.Dangling)&&(o.push(" ",$o(e,t)),jde(n)&&o.push(Be)),i?o.push(" ",r("declaration")):(o.push(hXe(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(o.push(" *"),a&&o.push(" as ",r("exported"))):o.push(lfe(e,t,r)),o.push(cfe(e,t,r),pfe(e,t,r))),o.push(mXe(n,t)),o}var fXe=Ir(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function mXe(e,t){return t.semi&&(!e.declaration||ife(e)&&!fXe(e.declaration))?";":""}function wz(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function sfe(e,t){return wz(e.importKind,t)}function hXe(e){return wz(e.exportKind)}function cfe(e,t,r){let{node:n}=e;return n.source?[ufe(n,t)?" from":""," ",r("source")]:""}function lfe(e,t,r){let{node:n}=e;if(!ufe(n,t))return"";let o=[" "];if(jo(n.specifiers)){let i=[],a=[];e.each(()=>{let s=e.node.type;if(s==="ExportNamespaceSpecifier"||s==="ExportDefaultSpecifier"||s==="ImportNamespaceSpecifier"||s==="ImportDefaultSpecifier")i.push(r());else if(s==="ExportSpecifier"||s==="ImportSpecifier")a.push(r());else throw new o1(n,"specifier")},"specifiers"),o.push(dn(", ",i)),a.length>0&&(i.length>0&&o.push(", "),a.length>1||i.length>0||n.specifiers.some(s=>rt(s))?o.push(de(["{",Fe([t.bracketSpacing?at:Pe,dn([",",at],a)]),Sr(cd(t)?",":""),t.bracketSpacing?at:Pe,"}"])):o.push(["{",t.bracketSpacing?" ":"",...a,t.bracketSpacing?" ":"","}"]))}else o.push("{}");return o}function ufe(e,t){return e.type!=="ImportDeclaration"||jo(e.specifiers)||e.importKind==="type"?!0:Y3(t,Yr(e),Yr(e.source)).trimEnd().endsWith("from")}function yXe(e,t){if(e.extra?.deprecatedAssertSyntax)return"assert";let r=Y3(t,Kr(e.source),e.attributes?.[0]?Yr(e.attributes[0]):Kr(e)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||jo(e.attributes)?"with":void 0}var gXe=e=>{let{attributes:t}=e;if(t.length!==1)return!1;let[r]=t,{type:n,key:o,value:i}=r;return n==="ImportAttribute"&&(o.type==="Identifier"&&o.name==="type"||fa(o)&&o.value==="type")&&fa(i)&&!rt(r)&&!rt(o)&&!rt(i)};function pfe(e,t,r){let{node:n}=e;if(!n.source)return"";let o=yXe(n,t);if(!o)return"";let i=Iz(e,t,r);return gXe(n)&&(i=U3(i)),[` ${o} `,i]}function SXe(e,t,r){let{node:n}=e,{type:o}=n,i=o.startsWith("Import"),a=i?"imported":"local",s=i?"local":"exported",c=n[a],p=n[s],d="",f="";return o==="ExportNamespaceSpecifier"||o==="ImportNamespaceSpecifier"?d="*":c&&(d=r(a)),p&&!vXe(n)&&(f=r(s)),[wz(o==="ImportSpecifier"?n.importKind:n.exportKind,!1),d,d&&f?" as ":"",f]}function vXe(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;return t.type!==r.type||!QKe(t,r)?!1:fa(t)?t.value===r.value&&oc(t)===oc(r):t.type==="Identifier"?t.name===r.name:!1}function WU(e,t){return["...",t("argument"),Na(e,t)]}function bXe(e){let t=[e];for(let r=0;rm[N]===n),g=m.type===n.type&&!y,S,b,E=0;do b=S||n,S=e.getParentNode(E),E++;while(S&&S.type===n.type&&s.every(N=>S[N]!==b));let I=S||m,T=b;if(o&&(_a(n[s[0]])||_a(c)||_a(p)||bXe(T))){f=!0,g=!0;let N=ge=>[Sr("("),Fe([Pe,ge]),Pe,Sr(")")],U=ge=>ge.type==="NullLiteral"||ge.type==="Literal"&&ge.value===null||ge.type==="Identifier"&&ge.name==="undefined";d.push(" ? ",U(c)?r(i):N(r(i))," : ",p.type===n.type||U(p)?r(a):N(r(a)))}else{let N=ge=>t.useTabs?Fe(r(ge)):Mu(2,r(ge)),U=[at,"? ",c.type===n.type?Sr("","("):"",N(i),c.type===n.type?Sr("",")"):"",at,": ",N(a)];d.push(m.type!==n.type||m[a]===n||y?U:t.useTabs?i_e(Fe(U)):Mu(Math.max(0,t.tabWidth-2),U))}let k=N=>m===I?de(N):N,F=!f&&(Mo(m)||m.type==="NGPipeExpression"&&m.left===n)&&!m.computed,O=TXe(e),$=k([xXe(e,t,r),g?d:Fe(d),o&&F&&!O?Pe:""]);return y||O?de([Fe([Pe,$]),Pe]):$}function AXe(e,t){return(Mo(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function IXe(e,t,r,n){return[...e.map(o=>bg(o)),bg(t),bg(r)].flat().some(o=>ju(o)&&jc(n.originalText,Yr(o),Kr(o)))}var wXe=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function kXe(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let o=0;!r;o++){let i=e.getParentNode(o);if(i.type==="ChainExpression"&&i.expression===n||jn(i)&&i.callee===n||Mo(i)&&i.object===n||i.type==="TSNonNullExpression"&&i.expression===n){n=i;continue}i.type==="NewExpression"&&i.callee===n||Fu(i)&&i.expression===n?(r=e.getParentNode(o+1),n=i):r=i}return n===t?!1:r[wXe.get(r.type)]===n}var RU=e=>[Sr("("),Fe([Pe,e]),Pe,Sr(")")];function kz(e,t,r,n){if(!t.experimentalTernaries)return DXe(e,t,r);let{node:o}=e,i=o.type==="ConditionalExpression",a=Zm(o),s=i?"consequent":"trueType",c=i?"alternate":"falseType",p=i?["test"]:["checkType","extendsType"],d=o[s],f=o[c],m=p.map(wt=>o[wt]),{parent:y}=e,g=y.type===o.type,S=g&&p.some(wt=>y[wt]===o),b=g&&y[c]===o,E=d.type===o.type,I=f.type===o.type,T=I||b,k=t.tabWidth>2||t.useTabs,F,O,$=0;do O=F||o,F=e.getParentNode($),$++;while(F&&F.type===o.type&&p.every(wt=>F[wt]!==O));let N=F||y,U=n&&n.assignmentLayout&&n.assignmentLayout!=="break-after-operator"&&(y.type==="AssignmentExpression"||y.type==="VariableDeclarator"||y.type==="ClassProperty"||y.type==="PropertyDefinition"||y.type==="ClassPrivateProperty"||y.type==="ObjectProperty"||y.type==="Property"),ge=(y.type==="ReturnStatement"||y.type==="ThrowStatement")&&!(E||I),Te=i&&N.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",ke=kXe(e),Je=AXe(o,y),me=a&&eh(e,t),xe=k?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",Rt=IXe(m,d,f,t)||E||I,Jt=!T&&!g&&!a&&(Te?d.type==="NullLiteral"||d.type==="Literal"&&d.value===null:cz(d,t)&&Gpe(o.test,3)),Yt=T||b||a&&!g||g&&i&&Gpe(o.test,1)||Jt,vt=[];!E&&rt(d,St.Dangling)&&e.call(()=>{vt.push($o(e,t),Be)},"consequent");let Fr=[];rt(o.test,St.Dangling)&&e.call(()=>{Fr.push($o(e,t))},"test"),!I&&rt(f,St.Dangling)&&e.call(()=>{Fr.push($o(e,t))},"alternate"),rt(o,St.Dangling)&&Fr.push($o(e,t));let le=Symbol("test"),K=Symbol("consequent"),ae=Symbol("test-and-consequent"),he=i?[RU(r("test")),o.test.type==="ConditionalExpression"?K_:""]:[r("checkType")," ","extends"," ",Zm(o.extendsType)||o.extendsType.type==="TSMappedType"?r("extendsType"):de(RU(r("extendsType")))],Oe=de([he," ?"],{id:le}),pt=r(s),Ye=Fe([E||Te&&(_a(d)||g||T)?Be:at,vt,pt]),lt=Yt?de([Oe,T?Ye:Sr(Ye,de(Ye,{id:K}),{groupId:le})],{id:ae}):[Oe,Ye],Nt=r(c),Ct=Jt?Sr(Nt,i_e(RU(Nt)),{groupId:ae}):Nt,Zr=[lt,Fr.length>0?[Fe([Be,Fr]),Be]:I?Be:Jt?Sr(at," ",{groupId:ae}):at,":",I?" ":k?Yt?Sr(xe,Sr(T||Jt?" ":xe," "),{groupId:ae}):Sr(xe," "):" ",I?Ct:de([Fe(Ct),Te&&!Jt?Pe:""]),Je&&!ke?Pe:"",Rt?K_:""];return U&&!Rt?de(Fe([Pe,de(Zr)])):U||ge?de(Fe(Zr)):ke||a&&S?de([Fe([Pe,Zr]),me?Pe:""]):y===N?de(Zr):Zr}function CXe(e,t,r,n){let{node:o}=e;if(az(o))return sXe(e,t);switch(o.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[$o(e,t),r("node"),Be];case"File":return aXe(e,t,r)??r("program");case"ExpressionStatement":return iXe(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!rt(o.expression)&&(Lu(o.expression)||Fa(o.expression))?["(",r("expression"),")"]:de(["(",Fe([Pe,r("expression")]),Pe,")"]);case"AssignmentExpression":return BWe(e,t,r);case"VariableDeclarator":return qWe(e,t,r);case"BinaryExpression":case"LogicalExpression":return E_e(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return RWe(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return OWe(e,t,r);case"Identifier":return[o.name,Ns(e),x_e(e),Na(e,r)];case"V8IntrinsicIdentifier":return["%",o.name];case"SpreadElement":return WU(e,r);case"RestElement":return WU(e,r);case"FunctionDeclaration":case"FunctionExpression":return M_e(e,t,r,n);case"ArrowFunctionExpression":return LQe(e,t,r,n);case"YieldExpression":return[`yield${o.delegate?"*":""}`,o.argument?[" ",r("argument")]:""];case"AwaitExpression":{let i=["await"];if(o.argument){i.push(" ",r("argument"));let{parent:a}=e;if(jn(a)&&a.callee===o||Mo(a)&&a.object===o){i=[Fe([Pe,...i]),Pe];let s=e.findAncestor(c=>c.type==="AwaitExpression"||c.type==="BlockStatement");if(s?.type!=="AwaitExpression"||!Ps(s.argument,c=>c===o))return de(i)}}return i}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return afe(e,t,r);case"ImportDeclaration":return _Xe(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return SXe(e,t,r);case"ImportAttribute":return CU(e,t,r);case"Program":case"BlockStatement":case"StaticBlock":return Z_e(e,t,r);case"ClassBody":return Dz(e,t,r);case"ThrowStatement":return rQe(e,t,r);case"ReturnStatement":return tQe(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return J3(e,t,r);case"ObjectExpression":case"ObjectPattern":return Iz(e,t,r);case"Property":return TD(o)?GU(e,t,r):CU(e,t,r);case"ObjectProperty":return CU(e,t,r);case"ObjectMethod":return GU(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":return bz(e,t,r);case"SequenceExpression":{let{parent:i}=e;if(i.type==="ExpressionStatement"||i.type==="ForStatement"){let s=[];return e.each(({isFirst:c})=>{c?s.push(r()):s.push(",",Fe([at,r()]))},"expressions"),de(s)}let a=dn([",",at],e.map(r,"expressions"));return(i.type==="ReturnStatement"||i.type==="ThrowStatement")&&e.key==="argument"||i.type==="ArrowFunctionExpression"&&e.key==="body"?de(Sr([Fe([Pe,a]),Pe],a)):de(a)}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),t.semi?";":""];case"UnaryExpression":{let i=[o.operator];return/[a-z]$/u.test(o.operator)&&i.push(" "),rt(o.argument)?i.push(de(["(",Fe([Pe,r("argument")]),Pe,")"])):i.push(r("argument")),i}case"UpdateExpression":return[o.prefix?o.operator:"",r("argument"),o.prefix?"":o.operator];case"ConditionalExpression":return kz(e,t,r,n);case"VariableDeclaration":{let i=e.map(r,"declarations"),a=e.parent,s=a.type==="ForStatement"||a.type==="ForInStatement"||a.type==="ForOfStatement",c=o.declarations.some(d=>d.init),p;return i.length===1&&!rt(o.declarations[0])?p=i[0]:i.length>0&&(p=Fe(i[0])),de([Bc(e),o.kind,p?[" ",p]:"",Fe(i.slice(1).map(d=>[",",c&&!s?Be:at,d])),t.semi&&!(s&&a.body!==o)?";":""])}case"WithStatement":return de(["with (",r("object"),")",Km(o.body,r("body"))]);case"IfStatement":{let i=Km(o.consequent,r("consequent")),a=[de(["if (",de([Fe([Pe,r("test")]),Pe]),")",i])];if(o.alternate){let s=rt(o.consequent,St.Trailing|St.Line)||jde(o),c=o.consequent.type==="BlockStatement"&&!s;a.push(c?" ":Be),rt(o,St.Dangling)&&a.push($o(e,t),s?Be:" "),a.push("else",de(Km(o.alternate,r("alternate"),o.alternate.type==="IfStatement")))}return a}case"ForStatement":{let i=Km(o.body,r("body")),a=$o(e,t),s=a?[a,Pe]:"";return!o.init&&!o.test&&!o.update?[s,de(["for (;;)",i])]:[s,de(["for (",de([Fe([Pe,r("init"),";",at,r("test"),";",o.update?[at,r("update")]:Sr("",at)]),Pe]),")",i])]}case"WhileStatement":return de(["while (",de([Fe([Pe,r("test")]),Pe]),")",Km(o.body,r("body"))]);case"ForInStatement":return de(["for (",r("left")," in ",r("right"),")",Km(o.body,r("body"))]);case"ForOfStatement":return de(["for",o.await?" await":""," (",r("left")," of ",r("right"),")",Km(o.body,r("body"))]);case"DoWhileStatement":{let i=Km(o.body,r("body"));return[de(["do",i]),o.body.type==="BlockStatement"?" ":Be,"while (",de([Fe([Pe,r("test")]),Pe]),")",t.semi?";":""]}case"DoExpression":return[o.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return[o.type==="BreakStatement"?"break":"continue",o.label?[" ",r("label")]:"",t.semi?";":""];case"LabeledStatement":return[r("label"),`:${o.body.type==="EmptyStatement"&&!rt(o.body,St.Leading)?"":" "}`,r("body")];case"TryStatement":return["try ",r("block"),o.handler?[" ",r("handler")]:"",o.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(o.param){let i=rt(o.param,s=>!ju(s)||s.leading&&nc(t.originalText,Kr(s))||s.trailing&&nc(t.originalText,Yr(s),{backwards:!0})),a=r("param");return["catch ",i?["(",Fe([Pe,a]),Pe,") "]:["(",a,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[de(["switch (",Fe([Pe,r("discriminant")]),Pe,")"])," {",o.cases.length>0?Fe([Be,dn(Be,e.map(({node:i,isLast:a})=>[r(),!a&&ld(i,t)?Be:""],"cases"))]):"",Be,"}"];case"SwitchCase":{let i=[];o.test?i.push("case ",r("test"),":"):i.push("default:"),rt(o,St.Dangling)&&i.push(" ",$o(e,t));let a=o.consequent.filter(s=>s.type!=="EmptyStatement");if(a.length>0){let s=HU(e,t,r,"consequent");i.push(a.length===1&&a[0].type==="BlockStatement"?[" ",s]:Fe([Be,s]))}return i}case"DebuggerStatement":return["debugger",t.semi?";":""];case"ClassDeclaration":case"ClassExpression":return Az(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return tfe(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return rfe(e,t,r);case"TemplateElement":return xg(o.value.raw);case"TemplateLiteral":return __e(e,t,r);case"TaggedTemplateExpression":return oZe(e,t,r);case"PrivateIdentifier":return["#",o.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];case"VoidPattern":return"void";case"EmptyStatement":if(oz(e))return";";default:throw new o1(o,"ESTree")}}function dfe(e){return[e("elementType"),"[]"]}var PXe=Ir(["SatisfiesExpression","TSSatisfiesExpression"]);function _fe(e,t,r){let{parent:n,node:o,key:i}=e,a=o.type==="AsConstExpression"?"const":r("typeAnnotation"),s=[r("expression")," ",PXe(o)?"satisfies":"as"," ",a];return i==="callee"&&jn(n)||i==="object"&&Mo(n)?de([Fe([Pe,...s]),Pe]):s}function OXe(e,t,r){let{node:n}=e,o=[Bc(e),"component"];n.id&&o.push(" ",r("id")),o.push(r("typeParameters"));let i=NXe(e,t,r);return n.rendersType?o.push(de([i," ",r("rendersType")])):o.push(de([i])),n.body&&o.push(" ",r("body")),t.semi&&n.type==="DeclareComponent"&&o.push(";"),o}function NXe(e,t,r){let{node:n}=e,o=n.params;if(n.rest&&(o=[...o,n.rest]),o.length===0)return["(",$o(e,t,{filter:a=>$u(t.originalText,Kr(a))===")"}),")"];let i=[];return RXe(e,(a,s)=>{let c=s===o.length-1;c&&n.rest&&i.push("..."),i.push(r()),!c&&(i.push(","),ld(o[s],t)?i.push(Be,Be):i.push(at))}),["(",Fe([Pe,...i]),Sr(cd(t,"all")&&!FXe(n,o)?",":""),Pe,")"]}function FXe(e,t){return e.rest||Vn(0,t,-1)?.type==="RestElement"}function RXe(e,t){let{node:r}=e,n=0,o=i=>t(i,n++);e.each(o,"params"),r.rest&&e.call(o,"rest")}function LXe(e,t,r){let{node:n}=e;return n.shorthand?r("local"):[r("name")," as ",r("local")]}function $Xe(e,t,r){let{node:n}=e,o=[];return n.name&&o.push(r("name"),n.optional?"?: ":": "),o.push(r("typeAnnotation")),o}function ffe(e,t,r){return Iz(e,t,r)}function MXe(e,t,r){let{node:n}=e;return[n.type==="EnumSymbolBody"||n.explicitType?`of ${n.type.slice(4,-4).toLowerCase()} `:"",ffe(e,t,r)]}function mfe(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let o="";return r.initializer&&(o=t("initializer")),r.init&&(o=t("init")),o?[n," = ",o]:n}function hfe(e,t){let{node:r}=e;return[Bc(e),r.const?"const ":"","enum ",t("id")," ",t("body")]}function yfe(e,t,r){let{node:n}=e,o=[W3(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&o.push("new ");let i=Pg(e,t,r,!1,!0),a=[];return n.type==="FunctionTypeAnnotation"?a.push(jXe(e)?" => ":": ",r("returnType")):a.push(Na(e,r,"returnType")),n1(n,a)&&(i=de(i)),o.push(i,a),[de(o),n.type==="TSConstructSignatureDeclaration"||n.type==="TSCallSignatureDeclaration"?z_(e,t):""]}function jXe(e){let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(Rde(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&K3(r,t)||r.type==="ObjectTypeCallProperty"||e.getParentNode(2)?.type==="DeclareFunction"))}function BXe(e,t,r){let{node:n}=e,o=["hook"];n.id&&o.push(" ",r("id"));let i=Pg(e,t,r,!1,!0),a=X3(e,r),s=n1(n,a);return o.push(de([s?de(i):i,a]),n.body?" ":"",r("body")),o}function qXe(e,t,r){let{node:n}=e,o=[Bc(e),"hook"];return n.id&&o.push(" ",r("id")),t.semi&&o.push(";"),o}function yde(e){let{node:t}=e;return t.type==="HookTypeAnnotation"&&e.getParentNode(2)?.type==="DeclareHook"}function UXe(e,t,r){let{node:n}=e,o=Pg(e,t,r,!1,!0),i=[yde(e)?": ":" => ",r("returnType")];return de([yde(e)?"":"hook ",n1(n,i)?de(o):o,i])}function gfe(e,t,r){return[r("objectType"),Ns(e),"[",r("indexType"),"]"]}function Sfe(e,t,r){return["infer ",r("typeParameter")]}function vfe(e,t,r){let n=!1;return de(e.map(({isFirst:o,previous:i,node:a,index:s})=>{let c=r();if(o)return c;let p=Hm(a),d=Hm(i);return d&&p?[" & ",n?Fe(c):c]:!d&&!p||Ru(t.originalText,a)?t.experimentalOperatorPosition==="start"?Fe([at,"& ",c]):Fe([" &",at,c]):(s>1&&(n=!0),[" & ",s>1?Fe(c):c])},"types"))}function zXe(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function JXe(e,t,r){let{node:n}=e;return[de([n.variance?r("variance"):"","[",Fe([r("keyTparam")," in ",r("sourceType")]),"]",zXe(n.optional),": ",r("propType")]),z_(e,t)]}function gde(e,t){return e==="+"||e==="-"?e+t:t}function VXe(e,t,r){let{node:n}=e,o=!1;if(t.objectWrap==="preserve"){let i=Yr(n),a=Y3(t,i+1,Yr(n.key)),s=i+1+a.search(/\S/u);jc(t.originalText,i,s)&&(o=!0)}return de(["{",Fe([t.bracketSpacing?at:Pe,rt(n,St.Dangling)?de([$o(e,t),Be]):"",de([n.readonly?[gde(n.readonly,"readonly")," "]:"","[",r("key")," in ",r("constraint"),n.nameType?[" as ",r("nameType")]:"","]",n.optional?gde(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?Sr(";"):""]),t.bracketSpacing?at:Pe,"}"],{shouldBreak:o})}function KXe(e,t,r){let{node:n}=e;return[de(["match (",Fe([Pe,r("argument")]),Pe,")"])," {",n.cases.length>0?Fe([Be,dn(Be,e.map(({node:o,isLast:i})=>[r(),!i&&ld(o,t)?Be:""],"cases"))]):"",Be,"}"]}function GXe(e,t,r){let{node:n}=e,o=rt(n,St.Dangling)?[" ",$o(e,t)]:[],i=n.type==="MatchStatementCase"?[" ",r("body")]:Fe([at,r("body"),","]);return[r("pattern"),n.guard?de([Fe([at,"if (",r("guard"),")"])]):"",de([" =>",o,i])]}function HXe(e,t,r){let{node:n}=e;switch(n.type){case"MatchOrPattern":return QXe(e,t,r);case"MatchAsPattern":return[r("pattern")," as ",r("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return r("literal");case"MatchUnaryPattern":return[n.operator,r("argument")];case"MatchIdentifierPattern":return r("id");case"MatchMemberPattern":{let o=n.property.type==="Identifier"?[".",r("property")]:["[",Fe([Pe,r("property")]),Pe,"]"];return de([r("base"),o])}case"MatchBindingPattern":return[n.kind," ",r("id")];case"MatchObjectPattern":{let o=e.map(r,"properties");return n.rest&&o.push(r("rest")),de(["{",Fe([Pe,dn([",",at],o)]),n.rest?"":Sr(","),Pe,"}"])}case"MatchArrayPattern":{let o=e.map(r,"elements");return n.rest&&o.push(r("rest")),de(["[",Fe([Pe,dn([",",at],o)]),n.rest?"":Sr(","),Pe,"]"])}case"MatchObjectPatternProperty":return n.shorthand?r("pattern"):de([r("key"),":",Fe([at,r("pattern")])]);case"MatchRestPattern":{let o=["..."];return n.argument&&o.push(r("argument")),o}}}var bfe=Ir(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function ZXe(e){let{patterns:t}=e;if(t.some(n=>rt(n)))return!1;let r=t.find(n=>n.type==="MatchObjectPattern");return r?t.every(n=>n===r||bfe(n)):!1}function WXe(e){return bfe(e)||e.type==="MatchObjectPattern"?!0:e.type==="MatchOrPattern"?ZXe(e):!1}function QXe(e,t,r){let{node:n}=e,{parent:o}=e,i=o.type!=="MatchStatementCase"&&o.type!=="MatchExpressionCase"&&o.type!=="MatchArrayPattern"&&o.type!=="MatchObjectPatternProperty"&&!Ru(t.originalText,n),a=WXe(n),s=e.map(()=>{let p=r();return a||(p=Mu(2,p)),Ll(e,p,t)},"patterns");if(a)return dn(" | ",s);let c=[Sr(["| "]),dn([at,"| "],s)];return eh(e,t)?de([Fe([Sr([Pe]),c]),Pe]):o.type==="MatchArrayPattern"&&o.elements.length>1?de([Fe([Sr(["(",Pe]),c]),Pe,Sr(")")]):de(i?Fe(c):c)}function XXe(e,t,r){let{node:n}=e,o=[Bc(e),"opaque type ",r("id"),r("typeParameters")];if(n.supertype&&o.push(": ",r("supertype")),n.lowerBound||n.upperBound){let i=[];n.lowerBound&&i.push(Fe([at,"super ",r("lowerBound")])),n.upperBound&&i.push(Fe([at,"extends ",r("upperBound")])),o.push(de(i))}return n.impltype&&o.push(" = ",r("impltype")),o.push(t.semi?";":""),o}function xfe(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function Efe(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}function Tfe(e,t,r){let{node:n}=e,o=[Bc(e),"type ",r("id"),r("typeParameters")],i=n.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[ID(e,t,r,o," =",i),t.semi?";":""]}function YXe(e,t,r){let{node:n}=e;return ss(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function yD(e,t,r,n){let{node:o}=e;if(!o[n])return"";if(!Array.isArray(o[n]))return r(n);let i=G3(e.grandparent),a=e.match(c=>!(c[n].length===1&&Hm(c[n][0])),void 0,(c,p)=>p==="typeAnnotation",c=>c.type==="Identifier",R_e);if(o[n].length===0||!a&&(i||o[n].length===1&&(o[n][0].type==="NullableTypeAnnotation"||bWe(o[n][0]))))return["<",dn(", ",e.map(r,n)),eYe(e,t),">"];let s=o.type==="TSTypeParameterInstantiation"?"":YXe(e,t,n)?",":cd(t)?Sr(","):"";return de(["<",Fe([Pe,dn([",",at],e.map(r,n))]),s,Pe,">"])}function eYe(e,t){let{node:r}=e;if(!rt(r,St.Dangling))return"";let n=!rt(r,St.Line),o=$o(e,t,{indent:!n});return n?o:[o,Be]}function Dfe(e,t,r){let{node:n}=e,o=[n.const?"const ":""],i=n.type==="TSTypeParameter"?r("name"):n.name;if(n.variance&&o.push(r("variance")),n.in&&o.push("in "),n.out&&o.push("out "),o.push(i),n.bound&&(n.usesExtendsBound&&o.push(" extends "),o.push(Na(e,r,"bound"))),n.constraint){let a=Symbol("constraint");o.push(" extends",de(Fe(at),{id:a}),sd,vD(r("constraint"),{groupId:a}))}if(n.default){let a=Symbol("default");o.push(" =",de(Fe(at),{id:a}),sd,vD(r("default"),{groupId:a}))}return de(o)}function Afe(e,t){let{node:r}=e;return[r.type==="TSTypePredicate"&&r.asserts?"asserts ":r.type==="TypePredicate"&&r.kind?`${r.kind} `:"",t("parameterName"),r.typeAnnotation?[" is ",Na(e,t)]:""]}function Ife({node:e},t){let r=e.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",t(r),t("typeArguments")]}function tYe(e,t,r){let{node:n}=e;if(Cde(n))return n.type.slice(0,-14).toLowerCase();switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return OXe(e,t,r);case"ComponentParameter":return LXe(e,t,r);case"ComponentTypeParameter":return $Xe(e,t,r);case"HookDeclaration":return BXe(e,t,r);case"DeclareHook":return qXe(e,t,r);case"HookTypeAnnotation":return UXe(e,t,r);case"DeclareFunction":return[Bc(e),"function ",r("id"),r("predicate"),t.semi?";":""];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",Na(e,r),t.semi?";":""];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[Bc(e),n.kind??"var"," ",r("id"),t.semi?";":""];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return afe(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return XXe(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return Tfe(e,t,r);case"IntersectionTypeAnnotation":return vfe(e,t,r);case"UnionTypeAnnotation":return T_e(e,t,r);case"ConditionalTypeAnnotation":return kz(e,t,r);case"InferTypeAnnotation":return Sfe(e,t,r);case"FunctionTypeAnnotation":return yfe(e,t,r);case"TupleTypeAnnotation":return bz(e,t,r);case"TupleTypeLabeledElement":return Efe(e,t,r);case"TupleTypeSpreadElement":return xfe(e,t,r);case"GenericTypeAnnotation":return[r("id"),yD(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return gfe(e,t,r);case"TypeAnnotation":return I_e(e,t,r);case"TypeParameter":return Dfe(e,t,r);case"TypeofTypeAnnotation":return Ife(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return dfe(r);case"DeclareEnum":case"EnumDeclaration":return hfe(e,r);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return MXe(e,t,r);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return mfe(e,r);case"FunctionTypeParam":{let o=n.name?r("name"):e.parent.this===n?"this":"";return[o,Ns(e),o?": ":"",r("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Az(e,t,r);case"ObjectTypeAnnotation":return Dz(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:o}=n;return Eg(o==="plus"||o==="minus"),o==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value"),z_(e,t)];case"ObjectTypeMappedTypeProperty":return JXe(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value"),z_(e,t)];case"ObjectTypeProperty":{let o="";return n.proto?o="proto ":n.static&&(o="static "),[o,n.kind!=="init"?n.kind+" ":"",n.variance?r("variance"):"",wD(e,t,r),Ns(e),TD(n)?"":": ",r("value"),z_(e,t)]}case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",Ns(e),n.method?"":": ",r("value"),z_(e,t)];case"ObjectTypeSpreadProperty":return WU(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return xg(Wv(oc(n),t));case"NumberLiteralTypeAnnotation":return Yv(oc(n));case"BigIntLiteralTypeAnnotation":return ZU(oc(n));case"TypeCastExpression":return["(",r("expression"),Na(e,r),")"];case"TypePredicate":return Afe(e,r);case"TypeOperator":return[n.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return yD(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return _fe(e,t,r);case"MatchExpression":case"MatchStatement":return KXe(e,t,r);case"MatchExpressionCase":case"MatchStatementCase":return GXe(e,t,r);case"MatchOrPattern":case"MatchAsPattern":case"MatchWildcardPattern":case"MatchLiteralPattern":case"MatchUnaryPattern":case"MatchIdentifierPattern":case"MatchMemberPattern":case"MatchBindingPattern":case"MatchObjectPattern":case"MatchObjectPatternProperty":case"MatchRestPattern":case"MatchArrayPattern":return HXe(e,t,r)}}function rYe(e,t,r){let{node:n}=e,o=n.parameters.length>1?Sr(cd(t)?",":""):"",i=de([Fe([Pe,dn([", ",Pe],e.map(r,"parameters"))]),o,Pe]);return[e.key==="body"&&e.parent.type==="ClassBody"&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?i:"","]",Na(e,r),z_(e,t)]}function Sde(e,t,r){let{node:n}=e;return[n.postfix?"":r,Na(e,t),n.postfix?r:""]}function nYe(e,t,r){let{node:n}=e,o=[],i=n.kind&&n.kind!=="method"?`${n.kind} `:"";o.push(Q3(n),i,n.computed?"[":"",r("key"),n.computed?"]":"",Ns(e));let a=Pg(e,t,r,!1,!0),s=Na(e,r,"returnType"),c=n1(n,s);return o.push(c?de(a):a),n.returnType&&o.push(de(s)),[de(o),z_(e,t)]}function oYe(e,t,r){let{node:n}=e;return[Bc(e),n.kind==="global"?"":`${n.kind} `,r("id"),n.body?[" ",de(r("body"))]:t.semi?";":""]}function iYe(e,t,r){let{node:n}=e,o=!(Fa(n.expression)||Lu(n.expression)),i=de(["<",Fe([Pe,r("typeAnnotation")]),Pe,">"]),a=[Sr("("),Fe([Pe,r("expression")]),Pe,Sr(")")];return o?vg([[i,r("expression")],[i,de(a,{shouldBreak:!0})],[i,r("expression")]]):de([i,r("expression")])}function aYe(e,t,r){let{node:n}=e;if(n.type.startsWith("TS")){if(Pde(n))return n.type.slice(2,-7).toLowerCase();switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":return iYe(e,t,r);case"TSDeclareFunction":return M_e(e,t,r);case"TSExportAssignment":return["export = ",r("expression"),t.semi?";":""];case"TSModuleBlock":return Z_e(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return Dz(e,t,r);case"TSTypeAliasDeclaration":return Tfe(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return tfe(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return rfe(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[r("expression"),r("typeArguments")];case"TSTemplateLiteralType":return __e(e,t,r);case"TSNamedTupleMember":return Efe(e,t,r);case"TSRestType":return xfe(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Az(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return yD(e,t,r,"params");case"TSTypeParameter":return Dfe(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":return _fe(e,t,r);case"TSArrayType":return dfe(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",wD(e,t,r),Ns(e),Na(e,r),z_(e,t)];case"TSParameterProperty":return[Q3(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return Ife(e,r);case"TSIndexSignature":return rYe(e,t,r);case"TSTypePredicate":return Afe(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[J3(e,t,r),n.qualifier?[".",r("qualifier")]:"",yD(e,t,r,"typeArguments")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return gfe(e,t,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return VXe(e,t,r);case"TSMethodSignature":return nYe(e,t,r);case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return hfe(e,r);case"TSEnumBody":return ffe(e,t,r);case"TSEnumMember":return mfe(e,r);case"TSImportEqualsDeclaration":return["import ",sfe(n,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return J3(e,t,r);case"TSModuleDeclaration":return oYe(e,t,r);case"TSConditionalType":return kz(e,t,r);case"TSInferType":return Sfe(e,t,r);case"TSIntersectionType":return vfe(e,t,r);case"TSUnionType":return T_e(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return yfe(e,t,r);case"TSTupleType":return bz(e,t,r);case"TSTypeReference":return[r("typeName"),yD(e,t,r,"typeArguments")];case"TSTypeAnnotation":return I_e(e,t,r);case"TSEmptyBodyFunctionExpression":return xz(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Sde(e,r,"?");case"TSJSDocNonNullableType":return Sde(e,r,"!");default:throw new o1(n,"TypeScript")}}}function sYe(e,t,r,n){for(let o of[kQe,TQe,tYe,aYe,CXe]){let i=o(e,t,r,n);if(i!==void 0)return i}}var cYe=Ir(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function lYe(e,t,r,n){e.isRoot&&t.__onHtmlBindingRoot?.(e.node,t);let{node:o}=e,i=Tz(e)?t.originalText.slice(Yr(o),Kr(o)):sYe(e,t,r,n);if(!i)return"";if(cYe(o))return i;let a=jo(o.decorators),s=FQe(e,t,r),c=o.type==="ClassExpression";if(a&&!c)return BU(i,f=>de([s,f]));let p=eh(e,t),d=oQe(e,t);return!s&&!p&&!d?i:BU(i,f=>[d?";":"",p?"(":"",p&&c&&a?[Fe([at,s,f]),at]:[s,f],p?")":""])}var vde=lYe,uYe={experimental_avoidAstMutation:!0},pYe=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],wfe={};QU(wfe,{getVisitorKeys:()=>fYe,massageAstNode:()=>kfe,print:()=>mYe});var Vv=[[]],dYe={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:Vv[0],BooleanLiteral:Vv[0],StringLiteral:Vv[0],NumericLiteral:Vv[0],Identifier:Vv[0],TemplateLiteral:["quasis"],TemplateElement:Vv[0]},_Ye=wde(dYe),fYe=_Ye;function mYe(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),Be];case"ArrayExpression":{if(n.elements.length===0)return"[]";let o=e.map(()=>e.node===null?"null":r(),"elements");return["[",Fe([Be,dn([",",Be],o)]),Be,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",Fe([Be,dn([",",Be],e.map(r,"properties"))]),Be,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return bde(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return bde(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new o1(n,"JSON")}}function bde(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var hYe=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function kfe(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,o]of e.elements.entries())o===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}kfe.ignoredProperties=hYe;var dD={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Gm="JavaScript",yYe={arrowParens:{category:Gm,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:dD.bracketSameLine,objectWrap:dD.objectWrap,bracketSpacing:dD.bracketSpacing,jsxBracketSameLine:{category:Gm,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Gm,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:Gm,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:Gm,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:dD.singleQuote,jsxSingleQuote:{category:Gm,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Gm,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:Gm,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:dD.singleAttributePerLine},gYe=yYe,SYe={estree:xde,"estree-json":wfe},vYe=[...gKe,...pYe];var bYe=Object.defineProperty,Bme=(e,t)=>{for(var r in t)bYe(e,r,{get:t[r],enumerable:!0})},_J={};Bme(_J,{parsers:()=>qme});var qme={};Bme(qme,{typescript:()=>Lst});var xYe=()=>()=>{},fJ=xYe,mJ=(e,t)=>(r,n,...o)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,o),EYe=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},TYe=mJ("replaceAll",function(){if(typeof this=="string")return EYe}),_1=TYe,DYe="5.9",ii=[],AYe=new Map;function RD(e){return e!==void 0?e.length:0}function Vc(e,t){if(e!==void 0)for(let r=0;r0;return!1}function yJ(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function PYe(e,t,r=SJ){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let n=0;ne?.at(t):(e,t)=>{if(e!==void 0&&(t=Gz(e,t),t>1),c=r(e[s],s);switch(n(c,t)){case-1:i=s+1;break;case 0:return s;case 1:a=s-1;break}}return~i}function jYe(e,t,r,n,o){if(e&&e.length>0){let i=e.length;if(i>0){let a=n===void 0||n<0?0:n,s=o===void 0||a+o>i-1?i-1:a+o,c;for(arguments.length<=2?(c=e[a],a++):c=r;a<=s;)c=t(c,e[a],a),a++;return c}}return r}var Vme=Object.prototype.hasOwnProperty;function fd(e,t){return Vme.call(e,t)}function BYe(e){let t=[];for(let r in e)Vme.call(e,r)&&t.push(r);return t}function qYe(){let e=new Map;return e.add=UYe,e.remove=zYe,e}function UYe(e,t){let r=this.get(e);return r!==void 0?r.push(t):this.set(e,r=[t]),r}function zYe(e,t){let r=this.get(e);r!==void 0&&(XYe(r,t),r.length||this.delete(e))}function rf(e){return Array.isArray(e)}function Pz(e){return rf(e)?e:[e]}function JYe(e,t){return e!==void 0&&t(e)?e:void 0}function pd(e,t){return e!==void 0&&t(e)?e:pe.fail(`Invalid cast. The supplied value ${e} did not pass the test '${pe.getFunctionName(t)}'.`)}function x1(e){}function VYe(){return!0}function Bo(e){return e}function Pfe(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Ml(e){let t=new Map;return r=>{let n=`${typeof r}:${r}`,o=t.get(n);return o===void 0&&!t.has(n)&&(o=e(r),t.set(n,o)),o}}function SJ(e,t){return e===t}function vJ(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function KYe(e,t){return SJ(e,t)}function GYe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:er?s-r:1),d=Math.floor(t.length>r+s?r+s:t.length);o[0]=s;let f=s;for(let y=1;yr)return;let m=n;n=o,o=m}let a=n[t.length];return a>r?void 0:a}function WYe(e,t,r){let n=e.length-t.length;return n>=0&&(r?vJ(e.slice(n),t):e.indexOf(t,n)===n)}function QYe(e,t){e[t]=e[e.length-1],e.pop()}function XYe(e,t){return YYe(e,r=>r===t)}function YYe(e,t){for(let r=0;r{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(oe){return e.currentLogLevel<=oe}e.shouldLog=r;function n(oe,qe){e.loggingHost&&r(oe)&&e.loggingHost.log(oe,qe)}function o(oe){n(3,oe)}e.log=o,(oe=>{function qe(_n){n(1,_n)}oe.error=qe;function et(_n){n(2,_n)}oe.warn=et;function Et(_n){n(3,_n)}oe.log=Et;function Wr(_n){n(4,_n)}oe.trace=Wr})(o=e.log||(e.log={}));let i={};function a(){return t}e.getAssertionLevel=a;function s(oe){let qe=t;if(t=oe,oe>qe)for(let et of BYe(i)){let Et=i[et];Et!==void 0&&e[et]!==Et.assertion&&oe>=Et.level&&(e[et]=Et,i[et]=void 0)}}e.setAssertionLevel=s;function c(oe){return t>=oe}e.shouldAssert=c;function p(oe,qe){return c(oe)?!0:(i[qe]={level:oe,assertion:e[qe]},e[qe]=x1,!1)}function d(oe,qe){debugger;let et=new Error(oe?`Debug Failure. ${oe}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(et,qe||d),et}e.fail=d;function f(oe,qe,et){return d(`${qe||"Unexpected node."}\r Node ${Yt(oe.kind)} was unexpected.`,et||f)}e.failBadSyntaxKind=f;function m(oe,qe,et,Et){oe||(qe=qe?`False expression: ${qe}`:"False expression.",et&&(qe+=`\r -Verbose Debug Information: `+(typeof et=="string"?et:et())),d(qe,Et||m))}e.assert=m;function y(oe,qe,et,Et,Zr){if(oe!==qe){let dn=et?Et?`${et} ${Et}`:et:"";d(`Expected ${oe} === ${qe}. ${dn}`,Zr||y)}}e.assertEqual=y;function g(oe,qe,et,Et){oe>=qe&&d(`Expected ${oe} < ${qe}. ${et||""}`,Et||g)}e.assertLessThan=g;function S(oe,qe,et){oe>qe&&d(`Expected ${oe} <= ${qe}`,et||S)}e.assertLessThanOrEqual=S;function x(oe,qe,et){oe= ${qe}`,et||x)}e.assertGreaterThanOrEqual=x;function A(oe,qe,et){oe==null&&d(qe,et||A)}e.assertIsDefined=A;function I(oe,qe,et){return A(oe,qe,et||I),oe}e.checkDefined=I;function E(oe,qe,et){for(let Et of oe)A(Et,qe,et||E)}e.assertEachIsDefined=E;function C(oe,qe,et){return E(oe,qe,et||C),oe}e.checkEachDefined=C;function F(oe,qe="Illegal value:",et){let Et=typeof oe=="object"&&_d(oe,"kind")&&_d(oe,"pos")?"SyntaxKind: "+Yt(oe.kind):JSON.stringify(oe);return d(`${qe} ${Et}`,et||F)}e.assertNever=F;function O(oe,qe,et,Et){p(1,"assertEachNode")&&m(qe===void 0||fV(oe,qe),et||"Unexpected node.",()=>`Node array did not pass test '${Ve(qe)}'.`,Et||O)}e.assertEachNode=O;function $(oe,qe,et,Et){p(1,"assertNode")&&m(oe!==void 0&&(qe===void 0||qe(oe)),et||"Unexpected node.",()=>`Node ${Yt(oe?.kind)} did not pass test '${Ve(qe)}'.`,Et||$)}e.assertNode=$;function N(oe,qe,et,Et){p(1,"assertNotNode")&&m(oe===void 0||qe===void 0||!qe(oe),et||"Unexpected node.",()=>`Node ${Yt(oe.kind)} should not have passed test '${Ve(qe)}'.`,Et||N)}e.assertNotNode=N;function U(oe,qe,et,Et){p(1,"assertOptionalNode")&&m(qe===void 0||oe===void 0||qe(oe),et||"Unexpected node.",()=>`Node ${Yt(oe?.kind)} did not pass test '${Ve(qe)}'.`,Et||U)}e.assertOptionalNode=U;function ge(oe,qe,et,Et){p(1,"assertOptionalToken")&&m(qe===void 0||oe===void 0||oe.kind===qe,et||"Unexpected node.",()=>`Node ${Yt(oe?.kind)} was not a '${Yt(qe)}' token.`,Et||ge)}e.assertOptionalToken=ge;function Te(oe,qe,et){p(1,"assertMissingNode")&&m(oe===void 0,qe||"Unexpected node.",()=>`Node ${Yt(oe.kind)} was unexpected'.`,et||Te)}e.assertMissingNode=Te;function ke(oe){}e.type=ke;function Ve(oe){if(typeof oe!="function")return"";if(_d(oe,"name"))return oe.name;{let qe=Function.prototype.toString.call(oe),et=/^function\s+([\w$]+)\s*\(/.exec(qe);return et?et[1]:""}}e.getFunctionName=Ve;function me(oe){return`{ name: ${JD(oe.escapedName)}; flags: ${pt(oe.flags)}; declarations: ${Vz(oe.declarations,qe=>Yt(qe.kind))} }`}e.formatSymbol=me;function xe(oe=0,qe,et){let Et=Vt(qe);if(oe===0)return Et.length>0&&Et[0][0]===0?Et[0][1]:"0";if(et){let Zr=[],dn=oe;for(let[ro,fi]of Et){if(ro>oe)break;ro!==0&&ro&oe&&(Zr.push(fi),dn&=~ro)}if(dn===0)return Zr.join("|")}else for(let[Zr,dn]of Et)if(Zr===oe)return dn;return oe.toString()}e.formatEnum=xe;let Rt=new Map;function Vt(oe){let qe=Rt.get(oe);if(qe)return qe;let et=[];for(let Zr in oe){let dn=oe[Zr];typeof dn=="number"&&et.push([dn,Zr])}let Et=OYe(et,(Zr,dn)=>Vme(Zr[0],dn[0]));return Rt.set(oe,Et),Et}function Yt(oe){return xe(oe,Qt,!1)}e.formatSyntaxKind=Yt;function vt(oe){return xe(oe,Yme,!1)}e.formatSnippetKind=vt;function Fr(oe){return xe(oe,W_,!1)}e.formatScriptKind=Fr;function le(oe){return xe(oe,Vc,!0)}e.formatNodeFlags=le;function K(oe){return xe(oe,Hme,!0)}e.formatNodeCheckFlags=K;function ae(oe){return xe(oe,Jme,!0)}e.formatModifierFlags=ae;function he(oe){return xe(oe,Xme,!0)}e.formatTransformFlags=he;function Oe(oe){return xe(oe,ehe,!0)}e.formatEmitFlags=Oe;function pt(oe){return xe(oe,Gme,!0)}e.formatSymbolFlags=pt;function Ye(oe){return xe(oe,cs,!0)}e.formatTypeFlags=Ye;function lt(oe){return xe(oe,Wme,!0)}e.formatSignatureFlags=lt;function Nt(oe){return xe(oe,Zme,!0)}e.formatObjectFlags=Nt;function Ct(oe){return xe(oe,Gz,!0)}e.formatFlowFlags=Ct;function Hr(oe){return xe(oe,Kme,!0)}e.formatRelationComparisonResult=Hr;function It(oe){return xe(oe,CheckMode,!0)}e.formatCheckMode=It;function fo(oe){return xe(oe,SignatureCheckMode,!0)}e.formatSignatureCheckMode=fo;function rn(oe){return xe(oe,TypeFacts,!0)}e.formatTypeFacts=rn;let Gn=!1,bt;function Hn(oe){"__debugFlowFlags"in oe||Object.defineProperties(oe,{__tsDebuggerDisplay:{value(){let qe=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",et=this.flags&-2048;return`${qe}${et?` (${Ct(et)})`:""}`}},__debugFlowFlags:{get(){return xe(this.flags,Gz,!0)}},__debugToString:{value(){return cp(this)}}})}function Di(oe){return Gn&&(typeof Object.setPrototypeOf=="function"?(bt||(bt=Object.create(Object.prototype),Hn(bt)),Object.setPrototypeOf(oe,bt)):Hn(oe)),oe}e.attachFlowNodeDebugInfo=Di;let Ga;function ji(oe){"__tsDebuggerDisplay"in oe||Object.defineProperties(oe,{__tsDebuggerDisplay:{value(qe){return qe=String(qe).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${qe}`}}})}function ou(oe){Gn&&(typeof Object.setPrototypeOf=="function"?(Ga||(Ga=Object.create(Array.prototype),ji(Ga)),Object.setPrototypeOf(oe,Ga)):ji(oe))}e.attachNodeArrayDebugInfo=ou;function nl(){if(Gn)return;let oe=new WeakMap,qe=new WeakMap;Object.defineProperties(oi.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Et=this.flags&33554432?"TransientSymbol":"Symbol",Zr=this.flags&-33554433;return`${Et} '${Wz(this)}'${Zr?` (${pt(Zr)})`:""}`}},__debugFlags:{get(){return pt(this.flags)}}}),Object.defineProperties(oi.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Et=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Zr=this.flags&524288?this.objectFlags&-1344:0;return`${Et}${this.symbol?` '${Wz(this.symbol)}'`:""}${Zr?` (${Nt(Zr)})`:""}`}},__debugFlags:{get(){return Ye(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Nt(this.objectFlags):""}},__debugTypeToString:{value(){let Et=oe.get(this);return Et===void 0&&(Et=this.checker.typeToString(this),oe.set(this,Et)),Et}}}),Object.defineProperties(oi.getSignatureConstructor().prototype,{__debugFlags:{get(){return lt(this.flags)}},__debugSignatureToString:{value(){var Et;return(Et=this.checker)==null?void 0:Et.signatureToString(this)}}});let et=[oi.getNodeConstructor(),oi.getIdentifierConstructor(),oi.getTokenConstructor(),oi.getSourceFileConstructor()];for(let Et of et)_d(Et.prototype,"__debugKind")||Object.defineProperties(Et.prototype,{__tsDebuggerDisplay:{value(){return`${d1(this)?"GeneratedIdentifier":kn(this)?`Identifier '${uc(this)}'`:jg(this)?`PrivateIdentifier '${uc(this)}'`:g1(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:b1(this)?`NumericLiteral ${this.text}`:fnt(this)?`BigIntLiteral ${this.text}n`:Hhe(this)?"TypeParameterDeclaration":gO(this)?"ParameterDeclaration":Zhe(this)?"ConstructorDeclaration":nV(this)?"GetAccessorDeclaration":vO(this)?"SetAccessorDeclaration":xnt(this)?"CallSignatureDeclaration":Ent(this)?"ConstructSignatureDeclaration":Whe(this)?"IndexSignatureDeclaration":Tnt(this)?"TypePredicateNode":Qhe(this)?"TypeReferenceNode":Xhe(this)?"FunctionTypeNode":Yhe(this)?"ConstructorTypeNode":Dnt(this)?"TypeQueryNode":Ant(this)?"TypeLiteralNode":wnt(this)?"ArrayTypeNode":Int(this)?"TupleTypeNode":Cnt(this)?"OptionalTypeNode":Pnt(this)?"RestTypeNode":Ont(this)?"UnionTypeNode":Nnt(this)?"IntersectionTypeNode":Fnt(this)?"ConditionalTypeNode":Rnt(this)?"InferTypeNode":Lnt(this)?"ParenthesizedTypeNode":$nt(this)?"ThisTypeNode":Mnt(this)?"TypeOperatorNode":jnt(this)?"IndexedAccessTypeNode":Bnt(this)?"MappedTypeNode":qnt(this)?"LiteralTypeNode":knt(this)?"NamedTupleMember":Unt(this)?"ImportTypeNode":Yt(this.kind)}${this.flags?` (${le(this.flags)})`:""}`}},__debugKind:{get(){return Yt(this.kind)}},__debugNodeFlags:{get(){return le(this.flags)}},__debugModifierFlags:{get(){return ae(Trt(this))}},__debugTransformFlags:{get(){return he(this.transformFlags)}},__debugIsParseTreeNode:{get(){return mO(this)}},__debugEmitFlags:{get(){return Oe(y1(this))}},__debugGetText:{value(Zr){if(s1(this))return"";let dn=qe.get(this);if(dn===void 0){let ro=Met(this),fi=ro&&oh(ro);dn=fi?Vfe(fi,ro,Zr):"",qe.set(this,dn)}return dn}}});Gn=!0}e.enableDebugInfo=nl;function ol(oe){let qe=oe&7,et=qe===0?"in out":qe===3?"[bivariant]":qe===2?"in":qe===1?"out":qe===4?"[independent]":"";return oe&8?et+=" (unmeasurable)":oe&16&&(et+=" (unreliable)"),et}e.formatVariance=ol;class Ld{__debugToString(){var qe;switch(this.kind){case 3:return((qe=this.debugInfo)==null?void 0:qe.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Ife(this.sources,this.targets||Vz(this.sources,()=>"any"),(et,Et)=>`${et.__debugTypeToString()} -> ${typeof Et=="string"?Et:Et.__debugTypeToString()}`).join(", ");case 2:return Ife(this.sources,this.targets,(et,Et)=>`${et.__debugTypeToString()} -> ${Et().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +Verbose Debug Information: `+(typeof et=="string"?et:et())),d(qe,Et||m))}e.assert=m;function y(oe,qe,et,Et,Wr){if(oe!==qe){let _n=et?Et?`${et} ${Et}`:et:"";d(`Expected ${oe} === ${qe}. ${_n}`,Wr||y)}}e.assertEqual=y;function g(oe,qe,et,Et){oe>=qe&&d(`Expected ${oe} < ${qe}. ${et||""}`,Et||g)}e.assertLessThan=g;function S(oe,qe,et){oe>qe&&d(`Expected ${oe} <= ${qe}`,et||S)}e.assertLessThanOrEqual=S;function b(oe,qe,et){oe= ${qe}`,et||b)}e.assertGreaterThanOrEqual=b;function E(oe,qe,et){oe==null&&d(qe,et||E)}e.assertIsDefined=E;function I(oe,qe,et){return E(oe,qe,et||I),oe}e.checkDefined=I;function T(oe,qe,et){for(let Et of oe)E(Et,qe,et||T)}e.assertEachIsDefined=T;function k(oe,qe,et){return T(oe,qe,et||k),oe}e.checkEachDefined=k;function F(oe,qe="Illegal value:",et){let Et=typeof oe=="object"&&fd(oe,"kind")&&fd(oe,"pos")?"SyntaxKind: "+Yt(oe.kind):JSON.stringify(oe);return d(`${qe} ${Et}`,et||F)}e.assertNever=F;function O(oe,qe,et,Et){p(1,"assertEachNode")&&m(qe===void 0||hJ(oe,qe),et||"Unexpected node.",()=>`Node array did not pass test '${Je(qe)}'.`,Et||O)}e.assertEachNode=O;function $(oe,qe,et,Et){p(1,"assertNode")&&m(oe!==void 0&&(qe===void 0||qe(oe)),et||"Unexpected node.",()=>`Node ${Yt(oe?.kind)} did not pass test '${Je(qe)}'.`,Et||$)}e.assertNode=$;function N(oe,qe,et,Et){p(1,"assertNotNode")&&m(oe===void 0||qe===void 0||!qe(oe),et||"Unexpected node.",()=>`Node ${Yt(oe.kind)} should not have passed test '${Je(qe)}'.`,Et||N)}e.assertNotNode=N;function U(oe,qe,et,Et){p(1,"assertOptionalNode")&&m(qe===void 0||oe===void 0||qe(oe),et||"Unexpected node.",()=>`Node ${Yt(oe?.kind)} did not pass test '${Je(qe)}'.`,Et||U)}e.assertOptionalNode=U;function ge(oe,qe,et,Et){p(1,"assertOptionalToken")&&m(qe===void 0||oe===void 0||oe.kind===qe,et||"Unexpected node.",()=>`Node ${Yt(oe?.kind)} was not a '${Yt(qe)}' token.`,Et||ge)}e.assertOptionalToken=ge;function Te(oe,qe,et){p(1,"assertMissingNode")&&m(oe===void 0,qe||"Unexpected node.",()=>`Node ${Yt(oe.kind)} was unexpected'.`,et||Te)}e.assertMissingNode=Te;function ke(oe){}e.type=ke;function Je(oe){if(typeof oe!="function")return"";if(fd(oe,"name"))return oe.name;{let qe=Function.prototype.toString.call(oe),et=/^function\s+([\w$]+)\s*\(/.exec(qe);return et?et[1]:""}}e.getFunctionName=Je;function me(oe){return`{ name: ${GD(oe.escapedName)}; flags: ${pt(oe.flags)}; declarations: ${Kz(oe.declarations,qe=>Yt(qe.kind))} }`}e.formatSymbol=me;function xe(oe=0,qe,et){let Et=Jt(qe);if(oe===0)return Et.length>0&&Et[0][0]===0?Et[0][1]:"0";if(et){let Wr=[],_n=oe;for(let[ro,fi]of Et){if(ro>oe)break;ro!==0&&ro&oe&&(Wr.push(fi),_n&=~ro)}if(_n===0)return Wr.join("|")}else for(let[Wr,_n]of Et)if(Wr===oe)return _n;return oe.toString()}e.formatEnum=xe;let Rt=new Map;function Jt(oe){let qe=Rt.get(oe);if(qe)return qe;let et=[];for(let Wr in oe){let _n=oe[Wr];typeof _n=="number"&&et.push([_n,Wr])}let Et=FYe(et,(Wr,_n)=>Kme(Wr[0],_n[0]));return Rt.set(oe,Et),Et}function Yt(oe){return xe(oe,Qt,!1)}e.formatSyntaxKind=Yt;function vt(oe){return xe(oe,the,!1)}e.formatSnippetKind=vt;function Fr(oe){return xe(oe,X_,!1)}e.formatScriptKind=Fr;function le(oe){return xe(oe,Jc,!0)}e.formatNodeFlags=le;function K(oe){return xe(oe,Wme,!0)}e.formatNodeCheckFlags=K;function ae(oe){return xe(oe,Gme,!0)}e.formatModifierFlags=ae;function he(oe){return xe(oe,ehe,!0)}e.formatTransformFlags=he;function Oe(oe){return xe(oe,rhe,!0)}e.formatEmitFlags=Oe;function pt(oe){return xe(oe,Zme,!0)}e.formatSymbolFlags=pt;function Ye(oe){return xe(oe,cs,!0)}e.formatTypeFlags=Ye;function lt(oe){return xe(oe,Xme,!0)}e.formatSignatureFlags=lt;function Nt(oe){return xe(oe,Qme,!0)}e.formatObjectFlags=Nt;function Ct(oe){return xe(oe,Zz,!0)}e.formatFlowFlags=Ct;function Zr(oe){return xe(oe,Hme,!0)}e.formatRelationComparisonResult=Zr;function wt(oe){return xe(oe,CheckMode,!0)}e.formatCheckMode=wt;function fo(oe){return xe(oe,SignatureCheckMode,!0)}e.formatSignatureCheckMode=fo;function nn(oe){return xe(oe,TypeFacts,!0)}e.formatTypeFacts=nn;let Gn=!1,bt;function Hn(oe){"__debugFlowFlags"in oe||Object.defineProperties(oe,{__tsDebuggerDisplay:{value(){let qe=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",et=this.flags&-2048;return`${qe}${et?` (${Ct(et)})`:""}`}},__debugFlowFlags:{get(){return xe(this.flags,Zz,!0)}},__debugToString:{value(){return lp(this)}}})}function Di(oe){return Gn&&(typeof Object.setPrototypeOf=="function"?(bt||(bt=Object.create(Object.prototype),Hn(bt)),Object.setPrototypeOf(oe,bt)):Hn(oe)),oe}e.attachFlowNodeDebugInfo=Di;let Ga;function ji(oe){"__tsDebuggerDisplay"in oe||Object.defineProperties(oe,{__tsDebuggerDisplay:{value(qe){return qe=String(qe).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${qe}`}}})}function iu(oe){Gn&&(typeof Object.setPrototypeOf=="function"?(Ga||(Ga=Object.create(Array.prototype),ji(Ga)),Object.setPrototypeOf(oe,Ga)):ji(oe))}e.attachNodeArrayDebugInfo=iu;function ol(){if(Gn)return;let oe=new WeakMap,qe=new WeakMap;Object.defineProperties(oi.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Et=this.flags&33554432?"TransientSymbol":"Symbol",Wr=this.flags&-33554433;return`${Et} '${Xz(this)}'${Wr?` (${pt(Wr)})`:""}`}},__debugFlags:{get(){return pt(this.flags)}}}),Object.defineProperties(oi.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Et=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Wr=this.flags&524288?this.objectFlags&-1344:0;return`${Et}${this.symbol?` '${Xz(this.symbol)}'`:""}${Wr?` (${Nt(Wr)})`:""}`}},__debugFlags:{get(){return Ye(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Nt(this.objectFlags):""}},__debugTypeToString:{value(){let Et=oe.get(this);return Et===void 0&&(Et=this.checker.typeToString(this),oe.set(this,Et)),Et}}}),Object.defineProperties(oi.getSignatureConstructor().prototype,{__debugFlags:{get(){return lt(this.flags)}},__debugSignatureToString:{value(){var Et;return(Et=this.checker)==null?void 0:Et.signatureToString(this)}}});let et=[oi.getNodeConstructor(),oi.getIdentifierConstructor(),oi.getTokenConstructor(),oi.getSourceFileConstructor()];for(let Et of et)fd(Et.prototype,"__debugKind")||Object.defineProperties(Et.prototype,{__tsDebuggerDisplay:{value(){return`${m1(this)?"GeneratedIdentifier":kn(this)?`Identifier '${uc(this)}'`:zg(this)?`PrivateIdentifier '${uc(this)}'`:b1(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:T1(this)?`NumericLiteral ${this.text}`:hnt(this)?`BigIntLiteral ${this.text}n`:Whe(this)?"TypeParameterDeclaration":vO(this)?"ParameterDeclaration":Qhe(this)?"ConstructorDeclaration":iJ(this)?"GetAccessorDeclaration":xO(this)?"SetAccessorDeclaration":Tnt(this)?"CallSignatureDeclaration":Dnt(this)?"ConstructSignatureDeclaration":Xhe(this)?"IndexSignatureDeclaration":Ant(this)?"TypePredicateNode":Yhe(this)?"TypeReferenceNode":eye(this)?"FunctionTypeNode":tye(this)?"ConstructorTypeNode":Int(this)?"TypeQueryNode":wnt(this)?"TypeLiteralNode":knt(this)?"ArrayTypeNode":Cnt(this)?"TupleTypeNode":Ont(this)?"OptionalTypeNode":Nnt(this)?"RestTypeNode":Fnt(this)?"UnionTypeNode":Rnt(this)?"IntersectionTypeNode":Lnt(this)?"ConditionalTypeNode":$nt(this)?"InferTypeNode":Mnt(this)?"ParenthesizedTypeNode":jnt(this)?"ThisTypeNode":Bnt(this)?"TypeOperatorNode":qnt(this)?"IndexedAccessTypeNode":Unt(this)?"MappedTypeNode":znt(this)?"LiteralTypeNode":Pnt(this)?"NamedTupleMember":Jnt(this)?"ImportTypeNode":Yt(this.kind)}${this.flags?` (${le(this.flags)})`:""}`}},__debugKind:{get(){return Yt(this.kind)}},__debugNodeFlags:{get(){return le(this.flags)}},__debugModifierFlags:{get(){return ae(Art(this))}},__debugTransformFlags:{get(){return he(this.transformFlags)}},__debugIsParseTreeNode:{get(){return yO(this)}},__debugEmitFlags:{get(){return Oe(v1(this))}},__debugGetText:{value(Wr){if(u1(this))return"";let _n=qe.get(this);if(_n===void 0){let ro=Bet(this),fi=ro&&sh(ro);_n=fi?Kfe(fi,ro,Wr):"",qe.set(this,_n)}return _n}}});Gn=!0}e.enableDebugInfo=ol;function il(oe){let qe=oe&7,et=qe===0?"in out":qe===3?"[bivariant]":qe===2?"in":qe===1?"out":qe===4?"[independent]":"";return oe&8?et+=" (unmeasurable)":oe&16&&(et+=" (unreliable)"),et}e.formatVariance=il;class Md{__debugToString(){var qe;switch(this.kind){case 3:return((qe=this.debugInfo)==null?void 0:qe.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Cfe(this.sources,this.targets||Kz(this.sources,()=>"any"),(et,Et)=>`${et.__debugTypeToString()} -> ${typeof Et=="string"?Et:Et.__debugTypeToString()}`).join(", ");case 2:return Cfe(this.sources,this.targets,(et,Et)=>`${et.__debugTypeToString()} -> ${Et().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` - `)}`;default:return F(this)}}}e.DebugTypeMapper=Ld;function il(oe){return e.isDebugging?Object.setPrototypeOf(oe,Ld.prototype):oe}e.attachDebugPrototypeIfDebug=il;function Jt(oe){return console.log(cp(oe))}e.printControlFlowGraph=Jt;function cp(oe){let qe=-1;function et(T){return T.id||(T.id=qe,qe--),T.id}let Et;(T=>{T.lr="\u2500",T.ud="\u2502",T.dr="\u256D",T.dl="\u256E",T.ul="\u256F",T.ur="\u2570",T.udr="\u251C",T.udl="\u2524",T.dlr="\u252C",T.ulr="\u2534",T.udlr="\u256B"})(Et||(Et={}));let Zr;(T=>{T[T.None=0]="None",T[T.Up=1]="Up",T[T.Down=2]="Down",T[T.Left=4]="Left",T[T.Right=8]="Right",T[T.UpDown=3]="UpDown",T[T.LeftRight=12]="LeftRight",T[T.UpLeft=5]="UpLeft",T[T.UpRight=9]="UpRight",T[T.DownLeft=6]="DownLeft",T[T.DownRight=10]="DownRight",T[T.UpDownLeft=7]="UpDownLeft",T[T.UpDownRight=11]="UpDownRight",T[T.UpLeftRight=13]="UpLeftRight",T[T.DownLeftRight=14]="DownLeftRight",T[T.UpDownLeftRight=15]="UpDownLeftRight",T[T.NoChildren=16]="NoChildren"})(Zr||(Zr={}));let dn=2032,ro=882,fi=Object.create(null),Uo=[],co=[],$d=At(oe,new Set);for(let T of Uo)T.text=Zn(T.flowNode,T.circular),ut(T);let lp=Ir($d),vc=Tn(lp);return $r($d,0),_s();function al(T){return!!(T.flags&128)}function Yh(T){return!!(T.flags&12)&&!!T.antecedent}function ue(T){return!!(T.flags&dn)}function Ee(T){return!!(T.flags&ro)}function we(T){let Ht=[];for(let er of T.edges)er.source===T&&Ht.push(er.target);return Ht}function Tt(T){let Ht=[];for(let er of T.edges)er.target===T&&Ht.push(er.source);return Ht}function At(T,Ht){let er=et(T),ce=fi[er];if(ce&&Ht.has(T))return ce.circular=!0,ce={id:-1,flowNode:T,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Uo.push(ce),ce;if(Ht.add(T),!ce)if(fi[er]=ce={id:er,flowNode:T,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Uo.push(ce),Yh(T))for(let vr of T.antecedent)kt(ce,vr,Ht);else ue(T)&&kt(ce,T.antecedent,Ht);return Ht.delete(T),ce}function kt(T,Ht,er){let ce=At(Ht,er),vr={source:T,target:ce};co.push(vr),T.edges.push(vr),ce.edges.push(vr)}function ut(T){if(T.level!==-1)return T.level;let Ht=0;for(let er of Tt(T))Ht=Math.max(Ht,ut(er)+1);return T.level=Ht}function Ir(T){let Ht=0;for(let er of we(T))Ht=Math.max(Ht,Ir(er));return Ht+1}function Tn(T){let Ht=re(Array(T),0);for(let er of Uo)Ht[er.level]=Math.max(Ht[er.level],er.text.length);return Ht}function $r(T,Ht){if(T.lane===-1){T.lane=Ht,T.endLane=Ht;let er=we(T);for(let ce=0;ce0&&Ht++;let vr=er[ce];$r(vr,Ht),vr.endLane>T.endLane&&(Ht=vr.endLane)}T.endLane=Ht}}function Ft(T){if(T&2)return"Start";if(T&4)return"Branch";if(T&8)return"Loop";if(T&16)return"Assignment";if(T&32)return"True";if(T&64)return"False";if(T&128)return"SwitchClause";if(T&256)return"ArrayMutation";if(T&512)return"Call";if(T&1024)return"ReduceLabel";if(T&1)return"Unreachable";throw new Error}function Bs(T){let Ht=oh(T);return Vfe(Ht,T,!1)}function Zn(T,Ht){let er=Ft(T.flags);if(Ht&&(er=`${er}#${et(T)}`),al(T)){let ce=[],{switchStatement:vr,clauseStart:Ha,clauseEnd:Dr}=T.node;for(let nn=Ha;nnDr.lane)+1,er=re(Array(Ht),""),ce=vc.map(()=>Array(Ht)),vr=vc.map(()=>re(Array(Ht),0));for(let Dr of Uo){ce[Dr.level][Dr.lane]=Dr;let nn=we(Dr);for(let ei=0;ei0&&(Gi|=1),ei0&&(Gi|=1),ei0?vr[Dr-1][nn]:0,ei=nn>0?vr[Dr][nn-1]:0,hi=vr[Dr][nn];hi||(mi&8&&(hi|=12),ei&2&&(hi|=3),vr[Dr][nn]=hi)}for(let Dr=0;Dr{D.lr="\u2500",D.ud="\u2502",D.dr="\u256D",D.dl="\u256E",D.ul="\u256F",D.ur="\u2570",D.udr="\u251C",D.udl="\u2524",D.dlr="\u252C",D.ulr="\u2534",D.udlr="\u256B"})(Et||(Et={}));let Wr;(D=>{D[D.None=0]="None",D[D.Up=1]="Up",D[D.Down=2]="Down",D[D.Left=4]="Left",D[D.Right=8]="Right",D[D.UpDown=3]="UpDown",D[D.LeftRight=12]="LeftRight",D[D.UpLeft=5]="UpLeft",D[D.UpRight=9]="UpRight",D[D.DownLeft=6]="DownLeft",D[D.DownRight=10]="DownRight",D[D.UpDownLeft=7]="UpDownLeft",D[D.UpDownRight=11]="UpDownRight",D[D.UpLeftRight=13]="UpLeftRight",D[D.DownLeftRight=14]="DownLeftRight",D[D.UpDownLeftRight=15]="UpDownLeftRight",D[D.NoChildren=16]="NoChildren"})(Wr||(Wr={}));let _n=2032,ro=882,fi=Object.create(null),Uo=[],co=[],jd=At(oe,new Set);for(let D of Uo)D.text=Zn(D.flowNode,D.circular),ut(D);let up=wr(jd),vc=Tn(up);return $r(jd,0),_s();function sl(D){return!!(D.flags&128)}function ny(D){return!!(D.flags&12)&&!!D.antecedent}function ue(D){return!!(D.flags&_n)}function Ee(D){return!!(D.flags&ro)}function Ie(D){let Ht=[];for(let er of D.edges)er.source===D&&Ht.push(er.target);return Ht}function Tt(D){let Ht=[];for(let er of D.edges)er.target===D&&Ht.push(er.source);return Ht}function At(D,Ht){let er=et(D),ce=fi[er];if(ce&&Ht.has(D))return ce.circular=!0,ce={id:-1,flowNode:D,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Uo.push(ce),ce;if(Ht.add(D),!ce)if(fi[er]=ce={id:er,flowNode:D,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Uo.push(ce),ny(D))for(let vr of D.antecedent)kt(ce,vr,Ht);else ue(D)&&kt(ce,D.antecedent,Ht);return Ht.delete(D),ce}function kt(D,Ht,er){let ce=At(Ht,er),vr={source:D,target:ce};co.push(vr),D.edges.push(vr),ce.edges.push(vr)}function ut(D){if(D.level!==-1)return D.level;let Ht=0;for(let er of Tt(D))Ht=Math.max(Ht,ut(er)+1);return D.level=Ht}function wr(D){let Ht=0;for(let er of Ie(D))Ht=Math.max(Ht,wr(er));return Ht+1}function Tn(D){let Ht=re(Array(D),0);for(let er of Uo)Ht[er.level]=Math.max(Ht[er.level],er.text.length);return Ht}function $r(D,Ht){if(D.lane===-1){D.lane=Ht,D.endLane=Ht;let er=Ie(D);for(let ce=0;ce0&&Ht++;let vr=er[ce];$r(vr,Ht),vr.endLane>D.endLane&&(Ht=vr.endLane)}D.endLane=Ht}}function Ft(D){if(D&2)return"Start";if(D&4)return"Branch";if(D&8)return"Loop";if(D&16)return"Assignment";if(D&32)return"True";if(D&64)return"False";if(D&128)return"SwitchClause";if(D&256)return"ArrayMutation";if(D&512)return"Call";if(D&1024)return"ReduceLabel";if(D&1)return"Unreachable";throw new Error}function Bs(D){let Ht=sh(D);return Kfe(Ht,D,!1)}function Zn(D,Ht){let er=Ft(D.flags);if(Ht&&(er=`${er}#${et(D)}`),sl(D)){let ce=[],{switchStatement:vr,clauseStart:Ha,clauseEnd:Dr}=D.node;for(let on=Ha;onDr.lane)+1,er=re(Array(Ht),""),ce=vc.map(()=>Array(Ht)),vr=vc.map(()=>re(Array(Ht),0));for(let Dr of Uo){ce[Dr.level][Dr.lane]=Dr;let on=Ie(Dr);for(let ei=0;ei0&&(Gi|=1),ei0&&(Gi|=1),ei0?vr[Dr-1][on]:0,ei=on>0?vr[Dr][on-1]:0,hi=vr[Dr][on];hi||(mi&8&&(hi|=12),ei&2&&(hi|=3),vr[Dr][on]=hi)}for(let Dr=0;Dr0?T.repeat(Ht):"";let er="";for(;er.length{},XYe=()=>{},iO,Qt=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.AssertClause=301]="AssertClause",e[e.AssertEntry=302]="AssertEntry",e[e.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",e[e.PropertyAssignment=304]="PropertyAssignment",e[e.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",e[e.SpreadAssignment=306]="SpreadAssignment",e[e.EnumMember=307]="EnumMember",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.JSDocTypeExpression=310]="JSDocTypeExpression",e[e.JSDocNameReference=311]="JSDocNameReference",e[e.JSDocMemberName=312]="JSDocMemberName",e[e.JSDocAllType=313]="JSDocAllType",e[e.JSDocUnknownType=314]="JSDocUnknownType",e[e.JSDocNullableType=315]="JSDocNullableType",e[e.JSDocNonNullableType=316]="JSDocNonNullableType",e[e.JSDocOptionalType=317]="JSDocOptionalType",e[e.JSDocFunctionType=318]="JSDocFunctionType",e[e.JSDocVariadicType=319]="JSDocVariadicType",e[e.JSDocNamepathType=320]="JSDocNamepathType",e[e.JSDoc=321]="JSDoc",e[e.JSDocComment=321]="JSDocComment",e[e.JSDocText=322]="JSDocText",e[e.JSDocTypeLiteral=323]="JSDocTypeLiteral",e[e.JSDocSignature=324]="JSDocSignature",e[e.JSDocLink=325]="JSDocLink",e[e.JSDocLinkCode=326]="JSDocLinkCode",e[e.JSDocLinkPlain=327]="JSDocLinkPlain",e[e.JSDocTag=328]="JSDocTag",e[e.JSDocAugmentsTag=329]="JSDocAugmentsTag",e[e.JSDocImplementsTag=330]="JSDocImplementsTag",e[e.JSDocAuthorTag=331]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",e[e.JSDocClassTag=333]="JSDocClassTag",e[e.JSDocPublicTag=334]="JSDocPublicTag",e[e.JSDocPrivateTag=335]="JSDocPrivateTag",e[e.JSDocProtectedTag=336]="JSDocProtectedTag",e[e.JSDocReadonlyTag=337]="JSDocReadonlyTag",e[e.JSDocOverrideTag=338]="JSDocOverrideTag",e[e.JSDocCallbackTag=339]="JSDocCallbackTag",e[e.JSDocOverloadTag=340]="JSDocOverloadTag",e[e.JSDocEnumTag=341]="JSDocEnumTag",e[e.JSDocParameterTag=342]="JSDocParameterTag",e[e.JSDocReturnTag=343]="JSDocReturnTag",e[e.JSDocThisTag=344]="JSDocThisTag",e[e.JSDocTypeTag=345]="JSDocTypeTag",e[e.JSDocTemplateTag=346]="JSDocTemplateTag",e[e.JSDocTypedefTag=347]="JSDocTypedefTag",e[e.JSDocSeeTag=348]="JSDocSeeTag",e[e.JSDocPropertyTag=349]="JSDocPropertyTag",e[e.JSDocThrowsTag=350]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",e[e.JSDocImportTag=352]="JSDocImportTag",e[e.SyntaxList=353]="SyntaxList",e[e.NotEmittedStatement=354]="NotEmittedStatement",e[e.NotEmittedTypeElement=355]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",e[e.Count=359]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=166]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=310]="FirstJSDocNode",e[e.LastJSDocNode=352]="LastJSDocNode",e[e.FirstJSDocTagNode=328]="FirstJSDocTagNode",e[e.LastJSDocTagNode=352]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e))(Qt||{}),Vc=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(Vc||{}),Jme=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(Jme||{}),Kme=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(Kme||{}),Gz=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Gz||{}),Gme=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(Gme||{}),Hme=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(Hme||{}),cs=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(cs||{}),Zme=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(Zme||{}),Wme=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(Wme||{}),W_=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(W_||{}),SV=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(SV||{}),Qme=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(Qme||{}),Ml=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Ml||{}),Xme=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Xme||{}),Yme=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Yme||{}),ehe=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(ehe||{}),wD={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},the={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},RD=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(RD||{}),X_="/",YYe="\\",Pfe="://",eet=/\\/g;function tet(e){return e===47||e===92}function ret(e,t){return e.length>t.length&&HYe(e,t)}function vV(e){return e.length>0&&tet(e.charCodeAt(e.length-1))}function Ofe(e){return e>=97&&e<=122||e>=65&&e<=90}function net(e,t){let r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){let n=e.charCodeAt(t+2);if(n===97||n===65)return t+3}return-1}function oet(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let n=e.indexOf(t===47?X_:YYe,2);return n<0?e.length:n+1}if(Ofe(t)&&e.charCodeAt(1)===58){let n=e.charCodeAt(2);if(n===47||n===92)return 3;if(e.length===2)return 2}let r=e.indexOf(Pfe);if(r!==-1){let n=r+Pfe.length,o=e.indexOf(X_,n);if(o!==-1){let i=e.slice(0,r),a=e.slice(n,o);if(i==="file"&&(a===""||a==="localhost")&&Ofe(e.charCodeAt(o+1))){let s=net(e,o+2);if(s!==-1){if(e.charCodeAt(s)===47)return~(s+1);if(s===e.length)return~s}}return~(o+1)}return~e.length}return 0}function zD(e){let t=oet(e);return t<0?~t:t}function rhe(e,t,r){if(e=VD(e),zD(e)===e.length)return"";e=_O(e);let n=e.slice(Math.max(zD(e),e.lastIndexOf(X_)+1)),o=t!==void 0&&r!==void 0?nhe(n,t,r):void 0;return o?n.slice(0,n.length-o.length):n}function Nfe(e,t,r){if(dO(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let n=e.slice(e.length-t.length);if(r(n,t))return n}}function iet(e,t,r){if(typeof t=="string")return Nfe(e,t,r)||"";for(let n of t){let o=Nfe(e,n,r);if(o)return o}return""}function nhe(e,t,r){if(t)return iet(_O(e),t,r?gV:VYe);let n=rhe(e),o=n.lastIndexOf(".");return o>=0?n.substring(o):""}function VD(e){return e.includes("\\")?e.replace(eet,X_):e}function aet(e,...t){e&&(e=VD(e));for(let r of t)r&&(r=VD(r),!e||zD(r)!==0?e=r:e=ihe(e)+r);return e}function set(e,t){let r=zD(e);r===0&&t?(e=aet(t,e),r=zD(e)):e=VD(e);let n=ohe(e);if(n!==void 0)return n.length>r?_O(n):n;let o=e.length,i=e.substring(0,r),a,s=r,c=s,p=s,d=r!==0;for(;sc&&(a??(a=e.substring(0,c-1)),c=s);let m=e.indexOf(X_,s+1);m===-1&&(m=o);let y=m-c;if(y===1&&e.charCodeAt(s)===46)a??(a=e.substring(0,p));else if(y===2&&e.charCodeAt(s)===46&&e.charCodeAt(s+1)===46)if(!d)a!==void 0?a+=a.length===r?"..":"/..":p=s+2;else if(a===void 0)p-2>=0?a=e.substring(0,Math.max(r,e.lastIndexOf(X_,p-2))):a=e.substring(0,p);else{let g=a.lastIndexOf(X_);g!==-1?a=a.substring(0,Math.max(r,g)):a=i,a.length===r&&(d=r!==0)}else a!==void 0?(a.length!==r&&(a+=X_),d=!0,a+=e.substring(c,m)):(d=!0,p=m);s=m+1}return a??(o>r?_O(e):e)}function cet(e){e=VD(e);let t=ohe(e);return t!==void 0?t:(t=set(e,""),t&&vV(e)?ihe(t):t)}function ohe(e){if(!Ffe.test(e))return e;let t=e.replace(/\/\.\//g,"/");if(t.startsWith("./")&&(t=t.slice(2)),t!==e&&(e=t,!Ffe.test(e)))return e}function _O(e){return vV(e)?e.substr(0,e.length-1):e}function ihe(e){return vV(e)?e:e+X_}var Ffe=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function u(e,t,r,n,o,i,a){return{code:e,category:t,key:r,message:n,reportsUnnecessary:o,elidedInCompatabilityPyramid:i,reportsDeprecated:a}}var G={Unterminated_string_literal:u(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:u(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:u(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:u(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:u(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:u(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:u(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:u(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:u(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:u(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:u(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:u(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:u(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:u(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:u(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:u(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:u(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:u(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:u(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:u(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:u(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:u(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:u(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:u(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:u(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:u(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:u(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:u(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:u(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:u(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:u(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:u(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:u(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:u(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:u(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:u(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:u(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:u(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:u(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:u(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:u(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:u(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:u(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:u(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:u(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:u(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:u(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:u(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:u(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:u(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:u(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:u(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:u(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:u(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:u(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:u(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:u(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:u(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:u(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:u(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:u(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:u(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:u(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:u(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:u(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:u(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:u(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:u(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:u(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:u(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:u(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:u(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:u(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:u(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:u(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:u(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:u(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:u(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:u(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:u(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:u(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:u(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:u(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:u(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:u(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:u(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:u(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:u(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:u(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:u(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:u(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:u(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:u(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:u(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:u(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:u(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:u(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:u(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:u(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:u(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:u(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:u(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:u(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:u(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:u(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:u(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:u(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:u(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:u(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:u(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:u(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:u(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:u(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:u(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:u(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:u(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:u(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:u(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:u(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:u(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:u(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:u(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:u(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:u(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:u(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:u(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:u(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:u(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:u(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:u(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:u(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:u(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:u(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:u(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:u(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:u(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:u(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:u(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:u(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:u(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:u(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:u(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:u(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:u(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:u(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:u(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:u(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:u(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:u(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:u(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:u(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:u(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:u(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:u(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:u(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:u(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:u(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:u(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:u(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:u(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:u(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:u(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:u(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:u(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:u(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:u(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:u(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:u(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:u(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:u(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:u(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:u(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:u(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:u(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:u(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:u(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:u(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:u(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:u(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:u(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:u(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:u(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:u(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:u(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:u(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:u(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:u(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:u(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:u(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:u(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:u(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:u(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:u(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:u(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:u(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:u(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:u(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:u(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:u(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:u(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:u(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:u(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:u(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:u(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:u(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:u(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:u(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:u(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:u(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:u(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:u(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:u(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:u(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:u(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:u(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:u(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:u(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:u(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:u(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:u(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:u(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:u(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:u(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:u(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:u(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:u(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:u(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:u(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:u(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:u(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:u(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:u(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:u(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:u(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:u(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:u(1286,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:u(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:u(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:u(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:u(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:u(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:u(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:u(1293,1,"ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:u(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:u(1295,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript."),with_statements_are_not_allowed_in_an_async_function_block:u(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:u(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:u(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:u(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:u(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:u(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:u(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:u(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:u(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:u(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:u(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:u(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:u(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:u(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext:u(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:u(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:u(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:u(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:u(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:u(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:u(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:u(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:u(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:u(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:u(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:u(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:u(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:u(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:u(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:u(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:u(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:u(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext:u(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'."),A_label_is_not_allowed_here:u(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:u(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:u(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:u(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:u(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:u(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:u(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:u(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:u(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:u(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:u(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:u(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:u(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:u(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:u(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:u(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:u(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:u(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:u(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:u(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:u(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:u(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:u(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:u(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:u(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:u(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:u(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:u(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:u(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:u(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:u(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:u(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:u(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:u(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:u(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:u(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:u(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:u(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:u(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:u(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:u(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:u(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:u(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:u(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:u(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:u(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:u(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:u(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:u(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:u(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:u(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:u(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:u(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:u(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:u(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:u(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:u(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:u(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:u(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:u(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:u(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:u(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:u(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:u(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:u(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:u(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:u(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:u(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:u(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:u(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:u(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:u(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:u(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:u(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:u(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:u(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:u(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:u(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:u(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:u(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:u(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:u(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:u(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:u(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:u(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:u(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:u(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:u(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:u(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:u(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:u(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:u(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:u(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:u(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:u(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:u(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:u(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:u(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:u(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:u(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:u(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:u(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:u(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:u(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:u(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:u(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:u(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:u(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:u(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:u(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:u(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:u(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:u(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:u(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:u(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:u(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:u(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:u(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:u(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:u(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:u(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:u(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:u(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:u(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:u(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:u(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:u(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:u(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:u(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:u(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:u(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:u(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:u(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:u(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:u(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:u(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:u(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:u(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:u(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:u(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:u(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:u(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:u(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:u(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:u(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:u(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:u(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:u(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:u(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:u(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:u(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:u(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:u(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:u(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:u(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:u(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:u(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:u(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:u(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:u(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:u(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:u(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:u(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:u(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:u(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:u(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:u(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:u(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:u(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:u(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:u(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:u(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:u(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:u(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:u(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:u(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:u(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:u(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:u(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:u(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:u(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:u(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),using_declarations_are_not_allowed_in_ambient_contexts:u(1545,1,"using_declarations_are_not_allowed_in_ambient_contexts_1545","'using' declarations are not allowed in ambient contexts."),await_using_declarations_are_not_allowed_in_ambient_contexts:u(1546,1,"await_using_declarations_are_not_allowed_in_ambient_contexts_1546","'await using' declarations are not allowed in ambient contexts."),The_types_of_0_are_incompatible_between_these_types:u(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:u(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:u(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:u(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:u(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:u(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:u(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:u(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:u(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:u(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:u(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:u(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:u(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:u(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:u(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:u(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:u(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:u(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:u(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:u(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:u(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:u(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:u(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:u(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:u(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:u(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:u(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:u(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:u(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:u(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:u(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:u(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:u(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:u(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:u(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:u(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:u(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:u(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:u(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:u(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:u(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:u(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:u(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:u(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:u(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:u(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:u(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:u(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:u(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:u(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:u(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:u(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:u(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:u(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:u(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:u(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:u(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:u(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:u(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:u(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:u(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:u(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:u(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:u(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:u(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:u(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:u(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:u(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:u(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:u(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:u(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:u(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:u(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:u(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:u(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:u(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:u(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:u(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:u(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:u(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:u(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:u(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:u(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:u(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:u(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:u(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:u(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:u(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:u(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:u(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:u(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:u(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:u(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:u(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:u(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:u(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:u(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:u(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:u(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:u(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:u(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:u(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:u(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:u(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:u(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:u(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:u(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:u(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:u(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:u(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:u(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:u(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:u(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:u(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:u(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:u(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:u(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:u(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:u(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:u(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:u(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:u(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:u(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:u(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:u(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:u(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:u(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:u(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:u(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:u(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:u(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:u(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:u(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:u(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:u(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:u(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:u(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:u(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:u(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:u(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:u(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:u(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:u(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:u(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:u(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:u(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:u(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:u(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:u(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:u(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:u(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:u(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:u(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:u(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:u(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:u(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:u(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:u(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:u(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:u(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:u(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:u(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:u(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:u(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:u(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:u(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:u(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:u(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:u(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:u(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:u(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:u(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:u(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:u(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:u(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:u(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:u(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:u(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:u(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:u(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:u(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:u(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:u(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:u(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:u(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:u(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:u(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:u(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:u(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:u(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:u(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:u(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:u(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:u(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:u(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:u(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:u(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:u(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:u(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:u(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:u(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:u(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:u(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:u(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:u(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:u(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:u(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:u(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:u(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:u(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:u(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:u(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:u(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:u(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:u(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:u(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:u(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:u(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:u(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:u(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:u(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:u(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:u(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:u(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:u(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:u(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:u(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:u(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:u(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:u(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:u(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:u(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:u(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:u(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:u(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:u(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:u(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:u(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:u(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:u(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:u(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:u(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:u(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:u(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:u(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:u(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:u(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:u(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:u(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:u(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:u(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:u(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:u(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:u(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:u(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:u(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:u(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:u(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:u(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:u(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:u(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:u(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:u(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:u(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:u(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:u(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:u(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:u(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:u(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:u(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:u(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:u(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:u(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:u(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:u(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:u(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:u(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:u(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:u(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:u(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:u(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:u(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:u(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:u(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:u(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:u(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:u(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:u(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:u(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:u(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:u(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:u(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:u(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:u(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:u(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:u(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:u(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:u(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:u(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:u(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:u(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:u(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:u(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:u(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:u(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:u(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:u(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:u(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:u(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:u(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:u(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:u(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:u(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:u(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:u(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:u(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:u(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:u(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:u(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:u(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:u(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:u(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:u(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:u(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:u(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:u(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:u(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:u(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:u(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:u(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:u(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:u(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:u(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:u(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:u(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:u(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:u(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:u(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:u(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:u(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:u(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:u(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:u(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:u(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:u(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:u(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:u(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:u(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:u(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:u(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:u(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:u(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:u(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:u(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:u(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:u(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:u(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:u(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:u(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:u(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:u(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:u(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:u(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:u(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:u(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:u(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:u(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:u(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:u(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:u(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:u(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:u(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:u(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:u(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:u(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:u(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:u(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:u(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:u(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:u(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:u(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:u(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:u(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:u(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:u(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:u(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:u(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:u(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:u(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:u(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:u(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:u(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0:u(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 and above with module {0}."),Cannot_find_lib_definition_for_0:u(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:u(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:u(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:u(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:u(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:u(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:u(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:u(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:u(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:u(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:u(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:u(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:u(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:u(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:u(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:u(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:u(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:u(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:u(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:u(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:u(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:u(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:u(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:u(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:u(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:u(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:u(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:u(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:u(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:u(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:u(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:u(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:u(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:u(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:u(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:u(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:u(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:u(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:u(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:u(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:u(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:u(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:u(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:u(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:u(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:u(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:u(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:u(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:u(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:u(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:u(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:u(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:u(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:u(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:u(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:u(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:u(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:u(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:u(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:u(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:u(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:u(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:u(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:u(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:u(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:u(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:u(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:u(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:u(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:u(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:u(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:u(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:u(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:u(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:u(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:u(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:u(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:u(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:u(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:u(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:u(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:u(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:u(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:u(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:u(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:u(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:u(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:u(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks:u(2815,1,"arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815","'arguments' cannot be referenced in property initializers or class static initialization blocks."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:u(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:u(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:u(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:u(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:u(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:u(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:u(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:u(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:u(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:u(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:u(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:u(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:u(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:u(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:u(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:u(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:u(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:u(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:u(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:u(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:u(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:u(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:u(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:u(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:u(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:u(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:u(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:u(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:u(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:u(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:u(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:u(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:u(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:u(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:u(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:u(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:u(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:u(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:u(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:u(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:u(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:u(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:u(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:u(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:u(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:u(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:u(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:u(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:u(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:u(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:u(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:u(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:u(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:u(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),This_expression_is_never_nullish:u(2881,1,"This_expression_is_never_nullish_2881","This expression is never nullish."),Import_declaration_0_is_using_private_name_1:u(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:u(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:u(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:u(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:u(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:u(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:u(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:u(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:u(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:u(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:u(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:u(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:u(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:u(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:u(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:u(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:u(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:u(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:u(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:u(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:u(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:u(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:u(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:u(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:u(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:u(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:u(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:u(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:u(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:u(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:u(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:u(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:u(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:u(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:u(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:u(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:u(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:u(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:u(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:u(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:u(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:u(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:u(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:u(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:u(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:u(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:u(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:u(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:u(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:u(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:u(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:u(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:u(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:u(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:u(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:u(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:u(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:u(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:u(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:u(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:u(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:u(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:u(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:u(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:u(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:u(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:u(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:u(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:u(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:u(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:u(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:u(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:u(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:u(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:u(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:u(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:u(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:u(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:u(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:u(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:u(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:u(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:u(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:u(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:u(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:u(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:u(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:u(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:u(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:u(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:u(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:u(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),The_current_host_does_not_support_the_0_option:u(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:u(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:u(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:u(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:u(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:u(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:u(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:u(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:u(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:u(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:u(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:u(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:u(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:u(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:u(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:u(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:u(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:u(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:u(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:u(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:u(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:u(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:u(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:u(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:u(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:u(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:u(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:u(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:u(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:u(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:u(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:u(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:u(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:u(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:u(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:u(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:u(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:u(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:u(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:u(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:u(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:u(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:u(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:u(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:u(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:u(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:u(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:u(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:u(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:u(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:u(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:u(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:u(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:u(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:u(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:u(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:u(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:u(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:u(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:u(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:u(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:u(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:u(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:u(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:u(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:u(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:u(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:u(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:u(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:u(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:u(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:u(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:u(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:u(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:u(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:u(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:u(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:u(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:u(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:u(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:u(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:u(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:u(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:u(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:u(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:u(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:u(6024,3,"options_6024","options"),file:u(6025,3,"file_6025","file"),Examples_Colon_0:u(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:u(6027,3,"Options_Colon_6027","Options:"),Version_0:u(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:u(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:u(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:u(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:u(6034,3,"KIND_6034","KIND"),FILE:u(6035,3,"FILE_6035","FILE"),VERSION:u(6036,3,"VERSION_6036","VERSION"),LOCATION:u(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:u(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:u(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:u(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:u(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:u(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:u(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:u(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:u(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:u(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:u(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:u(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:u(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:u(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:u(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:u(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:u(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:u(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:u(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:u(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:u(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:u(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:u(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:u(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:u(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:u(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:u(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:u(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:u(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:u(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:u(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:u(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:u(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:u(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:u(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:u(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:u(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:u(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:u(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:u(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:u(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:u(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:u(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:u(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:u(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:u(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:u(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:u(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:u(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:u(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:u(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:u(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:u(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:u(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:u(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:u(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:u(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:u(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:u(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:u(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:u(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:u(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:u(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:u(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:u(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:u(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:u(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:u(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:u(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:u(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:u(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:u(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:u(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:u(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:u(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:u(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:u(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:u(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:u(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:u(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:u(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:u(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:u(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:u(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:u(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:u(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:u(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:u(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:u(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:u(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:u(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:u(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:u(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:u(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:u(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:u(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:u(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:u(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:u(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:u(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:u(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:u(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:u(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:u(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:u(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:u(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:u(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:u(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:u(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:u(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:u(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:u(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:u(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:u(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:u(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:u(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:u(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:u(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:u(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:u(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:u(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:u(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:u(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:u(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:u(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:u(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:u(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:u(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:u(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:u(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:u(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:u(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:u(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:u(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:u(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:u(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:u(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:u(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:u(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:u(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:u(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:u(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:u(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:u(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:u(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:u(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:u(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:u(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:u(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:u(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:u(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:u(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:u(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:u(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:u(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:u(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:u(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:u(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:u(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:u(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:u(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:u(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:u(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:u(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:u(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:u(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:u(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:u(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:u(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:u(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:u(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:u(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:u(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:u(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:u(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:u(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:u(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:u(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:u(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:u(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:u(6244,3,"Modules_6244","Modules"),File_Management:u(6245,3,"File_Management_6245","File Management"),Emit:u(6246,3,"Emit_6246","Emit"),JavaScript_Support:u(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:u(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:u(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:u(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:u(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:u(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:u(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:u(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:u(6255,3,"Projects_6255","Projects"),Output_Formatting:u(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:u(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:u(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:u(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:u(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:u(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:u(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:u(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:u(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:u(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:u(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:u(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:u(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:u(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:u(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:u(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:u(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:u(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:u(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:u(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:u(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:u(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:u(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:u(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:u(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),File_Layout:u(6284,3,"File_Layout_6284","File Layout"),Environment_Settings:u(6285,3,"Environment_Settings_6285","Environment Settings"),See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule:u(6286,3,"See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286","See also https://aka.ms/tsconfig/module"),For_nodejs_Colon:u(6287,3,"For_nodejs_Colon_6287","For nodejs:"),and_npm_install_D_types_Slashnode:u(6290,3,"and_npm_install_D_types_Slashnode_6290","and npm install -D @types/node"),Other_Outputs:u(6291,3,"Other_Outputs_6291","Other Outputs"),Stricter_Typechecking_Options:u(6292,3,"Stricter_Typechecking_Options_6292","Stricter Typechecking Options"),Style_Options:u(6293,3,"Style_Options_6293","Style Options"),Recommended_Options:u(6294,3,"Recommended_Options_6294","Recommended Options"),Enable_project_compilation:u(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:u(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:u(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:u(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:u(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:u(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:u(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:u(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:u(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:u(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:u(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:u(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:u(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:u(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:u(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:u(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:u(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:u(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:u(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:u(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:u(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:u(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:u(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:u(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:u(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:u(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:u(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:u(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:u(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:u(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:u(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:u(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:u(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:u(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:u(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:u(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:u(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:u(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:u(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:u(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:u(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:u(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:u(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:u(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:u(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:u(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:u(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:u(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:u(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:u(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:u(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:u(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:u(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:u(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:u(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:u(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:u(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:u(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:u(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:u(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:u(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:u(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:u(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:u(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:u(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:u(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:u(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:u(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:u(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:u(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:u(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:u(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:u(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:u(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:u(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:u(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:u(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files:u(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:u(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:u(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:u(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:u(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:u(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:u(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:u(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:u(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:u(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:u(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:u(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:u(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:u(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:u(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:u(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:u(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:u(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:u(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:u(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:u(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:u(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:u(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:u(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:u(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:u(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:u(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:u(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:u(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:u(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:u(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:u(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:u(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:u(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:u(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:u(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:u(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:u(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:u(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:u(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:u(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:u(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:u(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:u(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:u(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:u(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:u(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:u(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:u(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:u(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:u(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:u(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:u(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:u(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:u(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:u(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:u(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:u(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:u(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:u(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:u(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:u(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:u(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:u(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:u(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:u(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:u(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:u(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:u(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:u(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:u(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:u(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:u(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:u(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:u(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:u(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:u(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:u(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:u(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:u(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:u(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:u(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:u(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:u(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:u(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:u(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:u(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:u(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:u(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:u(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:u(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:u(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:u(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:u(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:u(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:u(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:u(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:u(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:u(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:u(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:u(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:u(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:u(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:u(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:u(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:u(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:u(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:u(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:u(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:u(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:u(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:u(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:u(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:u(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:u(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:u(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:u(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:u(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),Default_catch_clause_variables_as_unknown_instead_of_any:u(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:u(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:u(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:u(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:u(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:u(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),one_of_Colon:u(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:u(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:u(6902,3,"type_Colon_6902","type:"),default_Colon:u(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:u(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:u(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:u(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:u(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:u(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:u(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:u(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:u(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:u(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:u(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:u(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:u(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:u(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:u(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:u(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:u(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:u(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:u(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:u(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:u(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:u(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:u(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:u(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:u(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:u(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:u(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:u(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:u(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:u(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:u(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:u(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:u(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:u(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:u(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:u(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:u(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:u(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:u(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:u(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:u(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:u(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:u(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:u(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:u(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:u(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:u(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:u(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:u(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:u(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:u(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:u(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:u(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:u(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:u(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:u(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:u(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:u(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:u(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:u(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:u(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:u(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:u(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:u(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:u(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:u(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:u(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:u(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:u(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:u(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:u(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:u(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:u(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:u(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:u(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:u(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:u(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:u(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:u(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:u(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:u(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:u(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:u(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:u(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:u(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:u(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:u(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:u(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:u(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:u(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:u(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:u(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:u(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:u(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:u(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:u(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:u(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:u(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:u(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:u(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:u(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:u(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:u(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:u(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:u(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:u(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:u(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:u(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:u(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:u(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:u(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:u(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:u(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:u(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:u(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:u(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:u(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:u(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:u(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:u(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:u(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:u(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:u(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:u(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:u(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:u(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:u(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:u(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:u(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:u(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:u(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:u(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:u(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:u(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:u(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:u(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:u(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:u(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:u(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:u(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:u(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:u(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:u(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:u(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:u(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:u(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:u(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:u(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:u(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:u(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:u(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:u(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:u(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:u(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:u(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:u(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:u(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:u(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:u(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:u(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:u(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:u(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:u(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:u(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:u(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:u(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:u(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:u(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:u(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:u(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:u(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:u(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:u(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:u(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:u(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:u(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:u(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:u(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:u(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:u(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:u(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:u(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:u(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:u(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:u(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:u(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:u(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:u(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:u(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:u(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:u(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:u(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:u(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:u(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:u(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:u(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:u(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:u(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:u(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:u(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:u(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:u(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:u(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:u(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:u(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:u(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:u(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:u(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:u(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:u(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:u(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:u(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:u(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:u(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:u(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:u(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:u(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:u(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:u(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:u(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:u(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:u(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:u(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:u(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:u(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:u(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:u(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:u(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:u(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:u(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:u(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:u(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:u(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:u(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:u(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:u(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:u(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:u(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:u(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:u(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:u(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:u(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:u(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:u(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:u(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:u(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:u(95005,3,"Extract_function_95005","Extract function"),Extract_constant:u(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:u(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:u(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:u(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:u(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:u(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:u(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:u(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:u(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:u(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:u(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:u(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:u(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:u(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:u(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:u(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:u(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:u(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:u(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:u(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:u(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:u(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:u(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:u(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:u(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:u(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:u(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:u(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:u(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:u(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:u(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:u(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:u(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:u(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:u(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:u(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:u(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:u(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:u(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:u(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:u(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:u(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:u(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:u(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:u(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:u(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:u(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:u(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:u(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:u(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:u(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:u(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:u(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:u(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:u(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:u(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:u(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:u(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:u(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:u(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:u(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:u(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:u(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:u(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:u(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:u(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:u(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:u(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:u(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:u(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:u(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:u(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:u(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:u(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:u(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:u(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:u(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:u(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:u(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:u(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:u(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:u(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:u(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:u(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:u(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:u(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:u(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:u(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:u(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:u(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:u(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:u(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:u(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:u(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:u(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:u(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:u(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:u(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:u(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:u(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:u(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:u(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:u(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:u(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:u(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:u(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:u(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:u(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:u(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:u(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:u(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:u(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:u(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:u(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:u(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:u(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:u(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:u(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:u(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:u(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:u(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:u(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:u(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:u(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:u(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:u(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:u(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:u(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:u(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:u(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:u(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:u(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:u(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:u(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:u(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:u(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:u(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:u(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:u(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:u(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:u(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:u(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:u(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:u(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:u(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:u(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:u(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:u(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:u(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:u(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:u(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:u(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:u(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:u(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:u(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:u(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:u(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:u(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:u(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:u(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:u(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:u(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:u(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:u(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:u(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:u(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:u(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:u(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:u(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:u(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:u(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:u(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:u(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:u(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:u(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:u(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:u(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:u(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:u(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:u(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:u(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:u(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:u(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:u(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:u(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:u(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:u(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:u(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:u(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:u(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:u(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:u(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:u(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:u(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:u(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:u(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:u(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:u(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:u(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:u(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:u(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:u(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:u(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:u(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:u(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:u(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:u(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:u(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:u(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:u(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:u(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:u(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:u(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:u(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:u(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:u(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:u(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:u(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:u(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:u(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:u(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:u(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:u(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:u(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:u(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:u(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:u(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:u(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:u(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:u(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:u(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:u(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:u(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'."),Default_imports_are_not_allowed_in_a_deferred_import:u(18058,1,"Default_imports_are_not_allowed_in_a_deferred_import_18058","Default imports are not allowed in a deferred import."),Named_imports_are_not_allowed_in_a_deferred_import:u(18059,1,"Named_imports_are_not_allowed_in_a_deferred_import_18059","Named imports are not allowed in a deferred import."),Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:u(18060,1,"Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060","Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'."),_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:u(18061,1,"_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061","'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?")};function Zo(e){return e>=80}function uet(e){return e===32||Zo(e)}var bV={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,defer:166,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},pet=new Map(Object.entries(bV)),ahe=new Map(Object.entries({...bV,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),she=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),det=new Map([[1,wD.RegularExpressionFlagsHasIndices],[16,wD.RegularExpressionFlagsDotAll],[32,wD.RegularExpressionFlagsUnicode],[64,wD.RegularExpressionFlagsUnicodeSets],[128,wD.RegularExpressionFlagsSticky]]),_et=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],fet=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],met=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],het=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],yet=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,get=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,vet=/@(?:see|link)/i;function fO(e,t){if(e=2?fO(e,met):fO(e,_et)}function xet(e,t){return t>=2?fO(e,het):fO(e,fet)}function che(e){let t=[];return e.forEach((r,n)=>{t[r]=n}),t}var Eet=che(ahe);function io(e){return Eet[e]}function lhe(e){return ahe.get(e)}var ijt=che(she);function Rfe(e){return she.get(e)}function uhe(e){let t=[],r=0,n=0;for(;r127&&cc(o)&&(t.push(n),n=r);break}}return t.push(n),t}function Tet(e,t,r,n,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:pe.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${n!==void 0?kYe(e,uhe(n)):"unknown"}`));let i=e[t]+r;return o?i>e[t+1]?e[t+1]:typeof n=="string"&&i>n.length?n.length:i:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function cc(e){return e===10||e===13||e===8232||e===8233}function eh(e){return e>=48&&e<=57}function Cz(e){return eh(e)||e>=65&&e<=70||e>=97&&e<=102}function xV(e){return e>=65&&e<=90||e>=97&&e<=122}function dhe(e){return xV(e)||eh(e)||e===95}function Pz(e){return e>=48&&e<=55}function pd(e,t,r,n,o){if(ZD(t))return t;let i=!1;for(;;){let a=e.charCodeAt(t);switch(a){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;i=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(n)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&f1(a)){t++;continue}break}return t}}var aO=7;function Og(e,t){if(pe.assert(t>=0),t===0||cc(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+aO=0&&r127&&f1(g)){f&&cc(g)&&(d=!0),r++;continue}break e}}return f&&(y=o(s,c,p,d,i,y)),y}function wet(e,t,r,n){return EO(!1,e,t,!1,r,n)}function Iet(e,t,r,n){return EO(!1,e,t,!0,r,n)}function ket(e,t,r,n,o){return EO(!0,e,t,!1,r,n,o)}function Cet(e,t,r,n,o){return EO(!0,e,t,!0,r,n,o)}function mhe(e,t,r,n,o,i=[]){return i.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),i}function Zz(e,t){return ket(e,t,mhe,void 0,void 0)}function Pet(e,t){return Cet(e,t,mhe,void 0,void 0)}function hhe(e){let t=EV.exec(e);if(t)return t[0]}function Bu(e,t){return xV(e)||e===36||e===95||e>127&&bet(e,t)}function H_(e,t,r){return dhe(e)||e===36||(r===1?e===45||e===58:!1)||e>127&&xet(e,t)}function Oet(e,t,r){let n=Ng(e,0);if(!Bu(n,t))return!1;for(let o=Yi(n);od,getStartPos:()=>d,getTokenEnd:()=>c,getTextPos:()=>c,getToken:()=>m,getTokenStart:()=>f,getTokenPos:()=>f,getTokenText:()=>s.substring(f,c),getTokenValue:()=>y,hasUnicodeEscape:()=>(g&1024)!==0,hasExtendedUnicodeEscape:()=>(g&8)!==0,hasPrecedingLineBreak:()=>(g&1)!==0,hasPrecedingJSDocComment:()=>(g&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(g&32768)!==0,isIdentifier:()=>m===80||m>118,isReservedWord:()=>m>=83&&m<=118,isUnterminated:()=>(g&4)!==0,getCommentDirectives:()=>S,getNumericLiteralFlags:()=>g&25584,getTokenFlags:()=>g,reScanGreaterToken:Ct,reScanAsteriskEqualsToken:Hr,reScanSlashToken:It,reScanTemplateToken:Hn,reScanTemplateHeadOrNoSubstitutionTemplate:Di,scanJsxIdentifier:Ld,scanJsxAttributeValue:il,reScanJsxAttributeValue:Jt,reScanJsxToken:Ga,reScanLessThanToken:ji,reScanHashToken:ou,reScanQuestionToken:nl,reScanInvalidIdentifier:lt,scanJsxToken:ol,scanJsDocToken:oe,scanJSDocCommentTextToken:cp,scan:pt,getText:dn,clearCommentDirectives:ro,setText:fi,setScriptTarget:co,setLanguageVariant:$d,setScriptKind:lp,setJSDocParsingMode:vc,setOnError:Uo,resetTokenState:al,setTextPos:al,setSkipJsDocLeadingAsterisks:Yh,tryScan:Zr,lookAhead:Et,scanRange:et};return pe.isDebugging&&Object.defineProperty(E,"__debugShowCurrentPositionInText",{get:()=>{let ue=E.getText();return ue.slice(0,E.getTokenFullStart())+"\u2551"+ue.slice(E.getTokenFullStart())}}),E;function C(ue){return Ng(s,ue)}function F(ue){return ue>=0&&ue=0&&ue=65&&ut<=70)ut+=32;else if(!(ut>=48&&ut<=57||ut>=97&&ut<=102))break;Tt.push(ut),c++,kt=!1}return Tt.length=p){we+=s.substring(Tt,c),g|=4,N(G.Unterminated_string_literal);break}let At=O(c);if(At===Ee){we+=s.substring(Tt,c),c++;break}if(At===92&&!ue){we+=s.substring(Tt,c),we+=Yt(3),Tt=c;continue}if((At===10||At===13)&&!ue){we+=s.substring(Tt,c),g|=4,N(G.Unterminated_string_literal);break}c++}return we}function Vt(ue){let Ee=O(c)===96;c++;let we=c,Tt="",At;for(;;){if(c>=p){Tt+=s.substring(we,c),g|=4,N(G.Unterminated_template_literal),At=Ee?15:18;break}let kt=O(c);if(kt===96){Tt+=s.substring(we,c),c++,At=Ee?15:18;break}if(kt===36&&c+1=p)return N(G.Unexpected_end_of_text),"";let we=O(c);switch(c++,we){case 48:if(c>=p||!eh(O(c)))return"\0";case 49:case 50:case 51:c=55296&&Tt<=56319&&c+6=56320&&Ir<=57343)return c=ut,At+String.fromCharCode(Ir)}return At;case 120:for(;c1114111&&(ue&&N(G.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,we,c-we),kt=!0),c>=p?(ue&&N(G.Unexpected_end_of_text),kt=!0):O(c)===125?c++:(ue&&N(G.Unterminated_Unicode_escape_sequence),kt=!0),kt?(g|=2048,s.substring(Ee,c)):(g|=8,Lfe(At))}function Fr(){if(c+5=0&&H_(we,e)){ue+=vt(!0),Ee=c;continue}if(we=Fr(),!(we>=0&&H_(we,e)))break;g|=1024,ue+=s.substring(Ee,c),ue+=Lfe(we),c+=6,Ee=c}else break}return ue+=s.substring(Ee,c),ue}function ae(){let ue=y.length;if(ue>=2&&ue<=12){let Ee=y.charCodeAt(0);if(Ee>=97&&Ee<=122){let we=pet.get(y);if(we!==void 0)return m=we}}return m=80}function he(ue){let Ee="",we=!1,Tt=!1;for(;;){let At=O(c);if(At===95){g|=512,we?(we=!1,Tt=!0):N(Tt?G.Multiple_consecutive_numeric_separators_are_not_permitted:G.Numeric_separators_are_not_allowed_here,c,1),c++;continue}if(we=!0,!eh(At)||At-48>=ue)break;Ee+=s[c],c++,Tt=!1}return O(c-1)===95&&N(G.Numeric_separators_are_not_allowed_here,c-1,1),Ee}function Oe(){return O(c)===110?(y+="n",g&384&&(y=Wrt(y)+"n"),c++,10):(y=""+(g&128?parseInt(y.slice(2),2):g&256?parseInt(y.slice(2),8):+y),9)}function pt(){for(d=c,g=0;;){if(f=c,c>=p)return m=1;let ue=C(c);if(c===0&&ue===35&&_he(s,c)){if(c=fhe(s,c),t)continue;return m=6}switch(ue){case 10:case 13:if(g|=1,t){c++;continue}else return ue===13&&c+1=0&&Bu(Ee,e))return y=vt(!0)+K(),m=ae();let we=Fr();return we>=0&&Bu(we,e)?(c+=6,g|=1024,y=String.fromCharCode(we)+K(),m=ae()):(N(G.Invalid_character),c++,m=0);case 35:if(c!==0&&s[c+1]==="!")return N(G.can_only_be_used_at_the_start_of_a_file,c,2),c++,m=0;let Tt=C(c+1);if(Tt===92){c++;let ut=le();if(ut>=0&&Bu(ut,e))return y="#"+vt(!0)+K(),m=81;let Ir=Fr();if(Ir>=0&&Bu(Ir,e))return c+=6,g|=1024,y="#"+String.fromCharCode(Ir)+K(),m=81;c--}return Bu(Tt,e)?(c++,Nt(Tt,e)):(y="#",N(G.Invalid_character,c++,Yi(ue))),m=81;case 65533:return N(G.File_appears_to_be_binary,0,0),c=p,m=8;default:let At=Nt(ue,e);if(At)return m=At;if(LD(ue)){c+=Yi(ue);continue}else if(cc(ue)){g|=1,c+=Yi(ue);continue}let kt=Yi(ue);return N(G.Invalid_character,c,kt),c+=kt,m=0}}}function Ye(){switch(I){case 0:return!0;case 1:return!1}return A!==3&&A!==4?!0:I===3?!1:vet.test(s.slice(d,c))}function lt(){pe.assert(m===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),c=f=d,g=0;let ue=C(c),Ee=Nt(ue,99);return Ee?m=Ee:(c+=Yi(ue),m)}function Nt(ue,Ee){let we=ue;if(Bu(we,Ee)){for(c+=Yi(we);c=p)return m=1;let Ee=O(c);if(Ee===60)return O(c+1)===47?(c+=2,m=31):(c++,m=30);if(Ee===123)return c++,m=19;let we=0;for(;c0)break;f1(Ee)||(we=c)}c++}return y=s.substring(d,c),we===-1?13:12}function Ld(){if(Zo(m)){for(;c=p)return m=1;for(let Ee=O(c);c=0&&LD(O(c-1))&&!(c+1=p)return m=1;let ue=C(c);switch(c+=Yi(ue),ue){case 9:case 11:case 12:case 32:for(;c=0&&Bu(Ee,e))return y=vt(!0)+K(),m=ae();let we=Fr();return we>=0&&Bu(we,e)?(c+=6,g|=1024,y=String.fromCharCode(we)+K(),m=ae()):(c++,m=0)}if(Bu(ue,e)){let Ee=ue;for(;c=0),c=ue,d=ue,f=ue,m=0,y=void 0,g=0}function Yh(ue){x+=ue?1:-1}}function Ng(e,t){return e.codePointAt(t)}function Yi(e){return e>=65536?2:e===-1?0:1}function Net(e){if(pe.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}var Fet=String.fromCodePoint?e=>String.fromCodePoint(e):Net;function Lfe(e){return Fet(e)}var $fe=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),Mfe=new Set(["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","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","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"]),jfe=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),p1={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};p1.Script_Extensions=p1.Script;function ld(e){return e.start+e.length}function Ret(e){return e.length===0}function DV(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Let(e,t){return DV(e,t-e)}function ID(e){return DV(e.span.start,e.newLength)}function $et(e){return Ret(e.span)&&e.newLength===0}function yhe(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}var ajt=yhe(DV(0,0),0);function ghe(e,t){for(;e;){let r=t(e);if(r==="quit")return;if(r)return e;e=e.parent}}function mO(e){return(e.flags&16)===0}function Met(e,t){if(e===void 0||mO(e))return e;for(e=e.original;e;){if(mO(e))return!t||t(e)?e:void 0;e=e.original}}function a1(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function JD(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function uc(e){return JD(e.escapedText)}function jet(e){let t=lhe(e.escapedText);return t?UYe(t,th):void 0}function Wz(e){return e.valueDeclaration&&ptt(e.valueDeclaration)?uc(e.valueDeclaration.name):JD(e.escapedName)}function She(e){let t=e.parent.parent;if(t){if(Ufe(t))return X3(t);switch(t.kind){case 244:if(t.declarationList&&t.declarationList.declarations[0])return X3(t.declarationList.declarations[0]);break;case 245:let r=t.expression;switch(r.kind===227&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 212:return r.name;case 213:let n=r.argumentExpression;if(kn(n))return n}break;case 218:return X3(t.expression);case 257:{if(Ufe(t.statement)||Ttt(t.statement))return X3(t.statement);break}}}}function X3(e){let t=vhe(e);return t&&kn(t)?t:void 0}function Bet(e){return e.name||She(e)}function qet(e){return!!e.name}function AV(e){switch(e.kind){case 80:return e;case 349:case 342:{let{name:r}=e;if(r.kind===167)return r.right;break}case 214:case 227:{let r=e;switch(PV(r)){case 1:case 4:case 5:case 3:return OV(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 347:return Bet(e);case 341:return She(e);case 278:{let{expression:r}=e;return kn(r)?r:void 0}case 213:let t=e;if(Lhe(t))return t.argumentExpression}return e.name}function vhe(e){if(e!==void 0)return AV(e)||(rye(e)||nye(e)||oV(e)?Uet(e):void 0)}function Uet(e){if(e.parent){if(aot(e.parent)||znt(e.parent))return e.parent.name;if(v1(e.parent)&&e===e.parent.right){if(kn(e.parent.left))return e.parent.left;if(Uhe(e.parent.left))return OV(e.parent.left)}else if(iye(e.parent)&&kn(e.parent.name))return e.parent.name}else return}function zet(e){if(grt(e))return Q_(e.modifiers,jV)}function Vet(e){if(XD(e,98303))return Q_(e.modifiers,ftt)}function bhe(e,t){if(e.name)if(kn(e.name)){let r=e.name.escapedText;return KD(e.parent,t).filter(n=>ome(n)&&kn(n.name)&&n.name.escapedText===r)}else{let r=e.parent.parameters.indexOf(e);pe.assert(r>-1,"Parameters should always be in their parents' parameter list");let n=KD(e.parent,t).filter(ome);if(rbot(n)&&n.typeParameters.some(o=>o.name.escapedText===r))}function Get(e){return xhe(e,!1)}function Het(e){return xhe(e,!0)}function Zet(e){return ah(e,dot)}function Wet(e){return ott(e,xot)}function Qet(e){return ah(e,_ot,!0)}function Xet(e){return ah(e,fot,!0)}function Yet(e){return ah(e,mot,!0)}function ett(e){return ah(e,hot,!0)}function ttt(e){return ah(e,yot,!0)}function rtt(e){return ah(e,Sot,!0)}function ntt(e){let t=ah(e,UV);if(t&&t.typeExpression&&t.typeExpression.type)return t}function KD(e,t){var r;if(!NV(e))return ii;let n=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(n===void 0||t){let o=rrt(e,t);pe.assert(o.length<2||o[0]!==o[1]),n=Ume(o,i=>fye(i)?i.tags:i),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=n)}return n}function Ehe(e){return KD(e,!1)}function ah(e,t,r){return Bme(KD(e,r),t)}function ott(e,t){return Ehe(e).filter(t)}function Qz(e){return e.kind===80||e.kind===81}function itt(e){return tf(e)&&!!(e.flags&64)}function att(e){return YD(e)&&!!(e.flags&64)}function Bfe(e){return tye(e)&&!!(e.flags&64)}function stt(e){let t=e.kind;return!!(e.flags&64)&&(t===212||t===213||t===214||t===236)}function wV(e){return zV(e,8)}function ctt(e){return cO(e)&&!!(e.flags&64)}function IV(e){return e>=167}function The(e){return e>=0&&e<=166}function ltt(e){return The(e.kind)}function rh(e){return _d(e,"pos")&&_d(e,"end")}function utt(e){return 9<=e&&e<=15}function qfe(e){return 15<=e&&e<=18}function d1(e){var t;return kn(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function Dhe(e){var t;return jg(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function ptt(e){return(SO(e)||ytt(e))&&jg(e.name)}function Z_(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function dtt(e){return!!(Bhe(e)&31)}function _tt(e){return dtt(e)||e===126||e===164||e===129}function ftt(e){return Z_(e.kind)}function Ahe(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===168}function whe(e){return!!e&&htt(e.kind)}function mtt(e){switch(e){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function htt(e){switch(e){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return mtt(e)}}function m1(e){return e&&(e.kind===264||e.kind===232)}function ytt(e){switch(e.kind){case 175:case 178:case 179:return!0;default:return!1}}function gtt(e){let t=e.kind;return t===304||t===305||t===306||t===175||t===178||t===179}function Stt(e){return krt(e.kind)}function vtt(e){if(e){let t=e.kind;return t===208||t===207}return!1}function btt(e){let t=e.kind;return t===210||t===211}function xtt(e){switch(e.kind){case 261:case 170:case 209:return!0}return!1}function h1(e){return Ihe(wV(e).kind)}function Ihe(e){switch(e){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function Ett(e){return khe(wV(e).kind)}function khe(e){switch(e){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return Ihe(e)}}function Ttt(e){return Dtt(wV(e).kind)}function Dtt(e){switch(e){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return khe(e)}}function Att(e){return e===220||e===209||e===264||e===232||e===176||e===177||e===267||e===307||e===282||e===263||e===219||e===178||e===274||e===272||e===277||e===265||e===292||e===175||e===174||e===268||e===271||e===275||e===281||e===170||e===304||e===173||e===172||e===179||e===305||e===266||e===169||e===261||e===347||e===339||e===349||e===203}function Che(e){return e===263||e===283||e===264||e===265||e===266||e===267||e===268||e===273||e===272||e===279||e===278||e===271}function Phe(e){return e===253||e===252||e===260||e===247||e===245||e===243||e===250||e===251||e===249||e===246||e===257||e===254||e===256||e===258||e===259||e===244||e===248||e===255||e===354}function Ufe(e){return e.kind===169?e.parent&&e.parent.kind!==346||Bg(e):Att(e.kind)}function wtt(e){let t=e.kind;return Phe(t)||Che(t)||Itt(e)}function Itt(e){return e.kind!==242||e.parent!==void 0&&(e.parent.kind===259||e.parent.kind===300)?!1:!ztt(e)}function ktt(e){let t=e.kind;return Phe(t)||Che(t)||t===242}function Ohe(e){return e.kind>=310&&e.kind<=352}function Ctt(e){return e.kind===321||e.kind===320||e.kind===322||Ntt(e)||Ptt(e)||pot(e)||mye(e)}function Ptt(e){return e.kind>=328&&e.kind<=352}function Y3(e){return e.kind===179}function eO(e){return e.kind===178}function Rg(e){if(!NV(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function Ott(e){return!!e.initializer}function kV(e){return e.kind===11||e.kind===15}function Ntt(e){return e.kind===325||e.kind===326||e.kind===327}function zfe(e){return(e.flags&33554432)!==0}var sjt=Ftt();function Ftt(){var e="";let t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,n)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&f1(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:S1,decreaseIndent:S1,clear:()=>e=""}}function Rtt(e,t){let r=e.entries();for(let[n,o]of r){let i=t(o,n);if(i)return i}}function Ltt(e){return e.end-e.pos}function Nhe(e){return $tt(e),(e.flags&1048576)!==0}function $tt(e){e.flags&2097152||(((e.flags&262144)!==0||La(e,Nhe))&&(e.flags|=1048576),e.flags|=2097152)}function oh(e){for(;e&&e.kind!==308;)e=e.parent;return e}function Lg(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Xz(e){return!Lg(e)}function hO(e,t,r){if(Lg(e))return e.pos;if(Ohe(e)||e.kind===12)return pd((t??oh(e)).text,e.pos,!1,!0);if(r&&Rg(e))return hO(e.jsDoc[0],t);if(e.kind===353){t??(t=oh(e));let n=hV(hye(e,t));if(n)return hO(n,t,r)}return pd((t??oh(e)).text,e.pos,!1,!1,Vtt(e))}function Vfe(e,t,r=!1){return $D(e.text,t,r)}function Mtt(e){return!!ghe(e,cot)}function $D(e,t,r=!1){if(Lg(t))return"";let n=e.substring(r?t.pos:pd(e,t.pos),t.end);return Mtt(t)&&(n=n.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(` -`)),n}function y1(e){let t=e.emitNode;return t&&t.flags||0}function jtt(e,t,r){pe.assertGreaterThanOrEqual(t,0),pe.assertGreaterThanOrEqual(r,0),pe.assertLessThanOrEqual(t,e.length),pe.assertLessThanOrEqual(t+r,e.length)}function sO(e){return e.kind===245&&e.expression.kind===11}function CV(e){return!!(y1(e)&2097152)}function Jfe(e){return CV(e)&&aye(e)}function Btt(e){return kn(e.name)&&!e.initializer}function Kfe(e){return CV(e)&&DO(e)&&fV(e.declarationList.declarations,Btt)}function qtt(e,t){let r=e.kind===170||e.kind===169||e.kind===219||e.kind===220||e.kind===218||e.kind===261||e.kind===282?mV(Pet(t,e.pos),Zz(t,e.pos)):Zz(t,e.pos);return Q_(r,n=>n.end<=e.end&&t.charCodeAt(n.pos+1)===42&&t.charCodeAt(n.pos+2)===42&&t.charCodeAt(n.pos+3)!==47)}function Utt(e){if(e)switch(e.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function ztt(e){return e&&e.kind===242&&whe(e.parent)}function Gfe(e){let t=e.kind;return(t===212||t===213)&&e.expression.kind===108}function Bg(e){return!!e&&!!(e.flags&524288)}function Vtt(e){return!!e&&!!(e.flags&16777216)}function Jtt(e){for(;yO(e,!0);)e=e.right;return e}function Ktt(e){return kn(e)&&e.escapedText==="exports"}function Gtt(e){return kn(e)&&e.escapedText==="module"}function Fhe(e){return(tf(e)||Rhe(e))&&Gtt(e.expression)&&HD(e)==="exports"}function PV(e){let t=Ztt(e);return t===5||Bg(e)?t:0}function Htt(e){return ND(e.arguments)===3&&tf(e.expression)&&kn(e.expression.expression)&&uc(e.expression.expression)==="Object"&&uc(e.expression.name)==="defineProperty"&&TO(e.arguments[1])&&GD(e.arguments[0],!0)}function Rhe(e){return YD(e)&&TO(e.argumentExpression)}function QD(e,t){return tf(e)&&(!t&&e.expression.kind===110||kn(e.name)&&GD(e.expression,!0))||Lhe(e,t)}function Lhe(e,t){return Rhe(e)&&(!t&&e.expression.kind===110||LV(e.expression)||QD(e.expression,!0))}function GD(e,t){return LV(e)||QD(e,t)}function Ztt(e){if(tye(e)){if(!Htt(e))return 0;let t=e.arguments[0];return Ktt(t)||Fhe(t)?8:QD(t)&&HD(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Uhe(e.left)||Wtt(Jtt(e))?0:GD(e.left.expression,!0)&&HD(e.left)==="prototype"&&eye(Xtt(e))?6:Qtt(e.left)}function Wtt(e){return Knt(e)&&b1(e.expression)&&e.expression.text==="0"}function OV(e){if(tf(e))return e.name;let t=FV(e.argumentExpression);return b1(t)||kV(t)?t:e}function HD(e){let t=OV(e);if(t){if(kn(t))return t.escapedText;if(kV(t)||b1(t))return a1(t.text)}}function Qtt(e){if(e.expression.kind===110)return 4;if(Fhe(e))return 2;if(GD(e.expression,!0)){if(wrt(e.expression))return 3;let t=e;for(;!kn(t.expression);)t=t.expression;let r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&HD(t)==="exports")&&QD(e))return 1;if(GD(e,!0)||YD(e)&&drt(e))return 5}return 0}function Xtt(e){for(;v1(e.right);)e=e.right;return e.right}function Ytt(e){return oye(e)&&v1(e.expression)&&PV(e.expression)!==0&&v1(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function ert(e){switch(e.kind){case 244:let t=Yz(e);return t&&t.initializer;case 173:return e.initializer;case 304:return e.initializer}}function Yz(e){return DO(e)?hV(e.declarationList.declarations):void 0}function trt(e){return WD(e)&&e.body&&e.body.kind===268?e.body:void 0}function NV(e){switch(e.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function rrt(e,t){let r;Utt(e)&&Ott(e)&&Rg(e.initializer)&&(r=lc(r,Hfe(e,e.initializer.jsDoc)));let n=e;for(;n&&n.parent;){if(Rg(n)&&(r=lc(r,Hfe(e,n.jsDoc))),n.kind===170){r=lc(r,(t?Ket:Jet)(n));break}if(n.kind===169){r=lc(r,(t?Het:Get)(n));break}n=ort(n)}return r||ii}function Hfe(e,t){let r=NYe(t);return Ume(t,n=>{if(n===r){let o=Q_(n.tags,i=>nrt(e,i));return n.tags===o?[n]:o}else return Q_(n.tags,got)})}function nrt(e,t){return!(UV(t)||Eot(t))||!t.parent||!fye(t.parent)||!BV(t.parent.parent)||t.parent.parent===e}function ort(e){let t=e.parent;if(t.kind===304||t.kind===278||t.kind===173||t.kind===245&&e.kind===212||t.kind===254||trt(t)||yO(e))return t;if(t.parent&&(Yz(t.parent)===e||yO(t)))return t.parent;if(t.parent&&t.parent.parent&&(Yz(t.parent.parent)||ert(t.parent.parent)===e||Ytt(t.parent.parent)))return t.parent.parent}function FV(e,t){return zV(e,t?-2147483647:1)}function irt(e){let t=art(e);if(t&&Bg(e)){let r=Zet(e);if(r)return r.class}return t}function art(e){let t=RV(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function srt(e){return Bg(e)?Wet(e).map(t=>t.class):RV(e.heritageClauses,119)?.types}function crt(e){return qV(e)?lrt(e)||ii:m1(e)&&mV(Kz(irt(e)),srt(e))||ii}function lrt(e){let t=RV(e.heritageClauses,96);return t?t.types:void 0}function RV(e,t){if(e){for(let r of e)if(r.token===t)return r}}function th(e){return 83<=e&&e<=166}function urt(e){return 19<=e&&e<=79}function Oz(e){return th(e)||urt(e)}function TO(e){return kV(e)||b1(e)}function prt(e){return Gnt(e)&&(e.operator===40||e.operator===41)&&b1(e.operand)}function drt(e){if(!(e.kind===168||e.kind===213))return!1;let t=YD(e)?FV(e.argumentExpression):e.expression;return!TO(t)&&!prt(t)}function _rt(e){return Qz(e)?uc(e):_ye(e)?rnt(e):e.text}function s1(e){return ZD(e.pos)||ZD(e.end)}function Nz(e){switch(e){case 61:return 5;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function Fz(e){return!!((e.templateFlags||0)&2048)}function frt(e){return e&&!!(mnt(e)?Fz(e):Fz(e.head)||Ra(e.templateSpans,t=>Fz(t.literal)))}var cjt=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),ljt=new Map(Object.entries({'"':""","'":"'"}));function mrt(e){return!!e&&e.kind===80&&hrt(e)}function hrt(e){return e.escapedText==="this"}function XD(e,t){return!!Srt(e,t)}function yrt(e){return XD(e,256)}function grt(e){return XD(e,32768)}function Srt(e,t){return brt(e)&t}function vrt(e,t,r){return e.kind>=0&&e.kind<=166?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=jhe(e)|536870912),r||t&&Bg(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=$he(e)|268435456),Mhe(e.modifierFlagsCache)):xrt(e.modifierFlagsCache))}function brt(e){return vrt(e,!1)}function $he(e){let t=0;return e.parent&&!gO(e)&&(Bg(e)&&(Qet(e)&&(t|=8388608),Xet(e)&&(t|=16777216),Yet(e)&&(t|=33554432),ett(e)&&(t|=67108864),ttt(e)&&(t|=134217728)),rtt(e)&&(t|=65536)),t}function xrt(e){return e&65535}function Mhe(e){return e&131071|(e&260046848)>>>23}function Ert(e){return Mhe($he(e))}function Trt(e){return jhe(e)|Ert(e)}function jhe(e){let t=VV(e)?zc(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function zc(e){let t=0;if(e)for(let r of e)t|=Bhe(r.kind);return t}function Bhe(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 171:return 32768}return 0}function Drt(e){return e===76||e===77||e===78}function qhe(e){return e>=64&&e<=79}function yO(e,t){return v1(e)&&(t?e.operatorToken.kind===64:qhe(e.operatorToken.kind))&&h1(e.left)}function LV(e){return e.kind===80||Art(e)}function Art(e){return tf(e)&&kn(e.name)&&LV(e.expression)}function wrt(e){return QD(e)&&HD(e)==="prototype"}function Rz(e){return e.flags&3899393?e.objectFlags:0}function Irt(e){let t;return La(e,r=>{Xz(r)&&(t=r)},r=>{for(let n=r.length-1;n>=0;n--)if(Xz(r[n])){t=r[n];break}}),t}function krt(e){return e>=183&&e<=206||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===234||e===313||e===314||e===315||e===316||e===317||e===318||e===319}function Uhe(e){return e.kind===212||e.kind===213}function Crt(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function Prt(e,t){this.flags=t,(pe.isDebugging||iO)&&(this.checker=e)}function Ort(e,t){this.flags=t,pe.isDebugging&&(this.checker=e)}function Lz(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Nrt(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function Frt(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Rrt(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(n=>n)}var oi={getNodeConstructor:()=>Lz,getTokenConstructor:()=>Nrt,getIdentifierConstructor:()=>Frt,getPrivateIdentifierConstructor:()=>Lz,getSourceFileConstructor:()=>Lz,getSymbolConstructor:()=>Crt,getTypeConstructor:()=>Prt,getSignatureConstructor:()=>Ort,getSourceMapSourceConstructor:()=>Rrt},Lrt=[];function $rt(e){Object.assign(oi,e),Jc(Lrt,t=>t(oi))}function Mrt(e,t){return e.replace(/\{(\d+)\}/g,(r,n)=>""+pe.checkDefined(t[+n]))}var Zfe;function jrt(e){return Zfe&&Zfe[e.key]||e.message}function r1(e,t,r,n,o,...i){r+n>t.length&&(n=t.length-r),jtt(t,r,n);let a=jrt(o);return Ra(i)&&(a=Mrt(a,i)),{file:void 0,start:r,length:n,messageText:a,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function Brt(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function zhe(e,t){let r=t.fileName||"",n=t.text.length;pe.assertEqual(e.fileName,r),pe.assertLessThanOrEqual(e.start,n),pe.assertLessThanOrEqual(e.start+e.length,n);let o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(let i of e.relatedInformation)Brt(i)&&i.fileName===r?(pe.assertLessThanOrEqual(i.start,n),pe.assertLessThanOrEqual(i.start+i.length,n),o.relatedInformation.push(zhe(i,t))):o.relatedInformation.push(i)}return o}function Ig(e,t){let r=[];for(let n of e)r.push(zhe(n,t));return r}function Wfe(e){return e===4||e===2||e===1||e===6?1:0}var Xn={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!!(e.allowImportingTsExtensions||e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===101&&9||e.module===102&&10||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:Xn.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(Xn.module.computeValue(e)){case 1:t=2;break;case 100:case 101:case 102:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>{if(e.moduleDetection!==void 0)return e.moduleDetection;let t=Xn.module.computeValue(e);return 100<=t&&t<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Xn.module.computeValue(e)){case 100:case 101:case 102:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:Xn.esModuleInterop.computeValue(e)||Xn.module.computeValue(e)===4||Xn.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=Xn.moduleResolution.computeValue(e);if(!Qfe(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=Xn.moduleResolution.computeValue(e);if(!Qfe(t))return!1;if(e.resolvePackageJsonImports!==void 0)return e.resolvePackageJsonImports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>{if(e.resolveJsonModule!==void 0)return e.resolveJsonModule;switch(Xn.module.computeValue(e)){case 102:case 199:return!0}return Xn.moduleResolution.computeValue(e)===100}},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||Xn.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&Xn.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?Xn.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>G_(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>G_(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>G_(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>G_(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>G_(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>G_(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>G_(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>G_(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>G_(e,"useUnknownInCatchVariables")}},ujt=Xn.allowImportingTsExtensions.computeValue,pjt=Xn.target.computeValue,djt=Xn.module.computeValue,_jt=Xn.moduleResolution.computeValue,fjt=Xn.moduleDetection.computeValue,mjt=Xn.isolatedModules.computeValue,hjt=Xn.esModuleInterop.computeValue,yjt=Xn.allowSyntheticDefaultImports.computeValue,gjt=Xn.resolvePackageJsonExports.computeValue,Sjt=Xn.resolvePackageJsonImports.computeValue,vjt=Xn.resolveJsonModule.computeValue,bjt=Xn.declaration.computeValue,xjt=Xn.preserveConstEnums.computeValue,Ejt=Xn.incremental.computeValue,Tjt=Xn.declarationMap.computeValue,Djt=Xn.allowJs.computeValue,Ajt=Xn.useDefineForClassFields.computeValue;function Qfe(e){return e>=3&&e<=99||e===100}function G_(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function qrt(e){return Rtt(targetOptionDeclaration.type,(t,r)=>t===e?r:void 0)}var Urt=["node_modules","bower_components","jspm_packages"],Vhe=`(?!(?:${Urt.join("|")})(?:/|$))`,zrt={singleAsteriskRegexFragment:"(?:[^./]|(?:\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(?:/${Vhe}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Jhe(e,zrt.singleAsteriskRegexFragment)},Vrt={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(?:/${Vhe}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Jhe(e,Vrt.singleAsteriskRegexFragment)};function Jhe(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function Jrt(e,t){return t||Krt(e)||3}function Krt(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var Khe=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],wjt=qme(Khe),Ijt=[...Khe,[".json"]],Grt=[[".js",".jsx"],[".mjs"],[".cjs"]],kjt=qme(Grt),Hrt=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Cjt=[...Hrt,[".json"]],Zrt=[".d.ts",".d.cts",".d.mts"];function ZD(e){return!(e>=0)}function tO(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),pe.assert(e.relatedInformation!==ii,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Wrt(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let p=e.length-1,d=0;for(;e.charCodeAt(d)===48;)d++;return e.slice(d,p)||"0"}let r=2,n=e.length-1,o=(n-r)*t,i=new Uint16Array((o>>>4)+(o&15?1:0));for(let p=n-1,d=0;p>=r;p--,d+=t){let f=d>>>4,m=e.charCodeAt(p),y=(m<=57?m-48:10+m-(m<=70?65:97))<<(d&15);i[f]|=y;let g=y>>>16;g&&(i[f+1]|=g)}let a="",s=i.length-1,c=!0;for(;c;){let p=0;c=!1;for(let d=s;d>=0;d--){let f=p<<16|i[d],m=f/10|0;i[d]=m,p=f-m*10,m&&!c&&(s=d,c=!0)}a=p+a}return a}function Qrt({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function eV(e,t){return e.pos=t,e}function Xrt(e,t){return e.end=t,e}function ih(e,t,r){return Xrt(eV(e,t),r)}function Xfe(e,t,r){return ih(e,t,t+r)}function $V(e,t){return e&&t&&(e.parent=t),e}function Yrt(e,t){if(!e)return e;return wme(e,Ohe(e)?r:o),e;function r(i,a){if(t&&i.parent===a)return"skip";$V(i,a)}function n(i){if(Rg(i))for(let a of i.jsDoc)r(a,i),wme(a,r)}function o(i,a){return r(i,a)||n(i)}}function ent(e){return!!(e.flags&262144&&e.isThisType)}function tnt(e){var t;return((t=getSnippetElement(e))==null?void 0:t.kind)===0}function rnt(e){return`${uc(e.namespace)}:${uc(e.name)}`}var Pjt=String.prototype.replace,tV=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],Ojt=new Set(tV),nnt=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),Njt=new Set([...tV,...tV.map(e=>`node:${e}`),...nnt]);function ont(){let e,t,r,n,o;return{createBaseSourceFileNode:i,createBaseIdentifierNode:a,createBasePrivateIdentifierNode:s,createBaseTokenNode:c,createBaseNode:p};function i(d){return new(o||(o=oi.getSourceFileConstructor()))(d,-1,-1)}function a(d){return new(r||(r=oi.getIdentifierConstructor()))(d,-1,-1)}function s(d){return new(n||(n=oi.getPrivateIdentifierConstructor()))(d,-1,-1)}function c(d){return new(t||(t=oi.getTokenConstructor()))(d,-1,-1)}function p(d){return new(e||(e=oi.getNodeConstructor()))(d,-1,-1)}}var int={getParenthesizeLeftSideOfBinaryForOperator:e=>Bo,getParenthesizeRightSideOfBinaryForOperator:e=>Bo,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:Bo,parenthesizeConditionOfConditionalExpression:Bo,parenthesizeBranchOfConditionalExpression:Bo,parenthesizeExpressionOfExportDefault:Bo,parenthesizeExpressionOfNew:e=>ud(e,h1),parenthesizeLeftSideOfAccess:e=>ud(e,h1),parenthesizeOperandOfPostfixUnary:e=>ud(e,h1),parenthesizeOperandOfPrefixUnary:e=>ud(e,Ett),parenthesizeExpressionsOfCommaDelimitedList:e=>ud(e,rh),parenthesizeExpressionForDisallowedComma:Bo,parenthesizeExpressionOfExpressionStatement:Bo,parenthesizeConciseBodyOfArrowFunction:Bo,parenthesizeCheckTypeOfConditionalType:Bo,parenthesizeExtendsTypeOfConditionalType:Bo,parenthesizeConstituentTypesOfUnionType:e=>ud(e,rh),parenthesizeConstituentTypeOfUnionType:Bo,parenthesizeConstituentTypesOfIntersectionType:e=>ud(e,rh),parenthesizeConstituentTypeOfIntersectionType:Bo,parenthesizeOperandOfTypeOperator:Bo,parenthesizeOperandOfReadonlyTypeOperator:Bo,parenthesizeNonArrayTypeOfPostfixType:Bo,parenthesizeElementTypesOfTupleType:e=>ud(e,rh),parenthesizeElementTypeOfTupleType:Bo,parenthesizeTypeOfOptionalType:Bo,parenthesizeTypeArguments:e=>e&&ud(e,rh),parenthesizeLeadingTypeArgument:Bo},rO=0,ant=[];function MV(e,t){let r=e&8?Bo:pnt,n=kfe(()=>e&1?int:createParenthesizerRules(A)),o=kfe(()=>e&2?nullNodeConverters:createNodeConverters(A)),i=$l(l=>(_,h)=>LS(_,l,h)),a=$l(l=>_=>Ud(l,_)),s=$l(l=>_=>Of(_,l)),c=$l(l=>()=>ek(l)),p=$l(l=>_=>Wb(l,_)),d=$l(l=>(_,h)=>e8(l,_,h)),f=$l(l=>(_,h)=>tk(l,_,h)),m=$l(l=>(_,h)=>YR(l,_,h)),y=$l(l=>(_,h)=>Sk(l,_,h)),g=$l(l=>(_,h,b)=>p8(l,_,h,b)),S=$l(l=>(_,h,b)=>vk(l,_,h,b)),x=$l(l=>(_,h,b,k)=>d8(l,_,h,b,k)),A={get parenthesizer(){return n()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:I,createNumericLiteral:O,createBigIntLiteral:$,createStringLiteral:U,createStringLiteralFromNode:ge,createRegularExpressionLiteral:Te,createLiteralLikeNode:ke,createIdentifier:xe,createTempVariable:Rt,createLoopVariable:Vt,createUniqueName:Yt,getGeneratedNameForNode:vt,createPrivateIdentifier:le,createUniquePrivateName:ae,getGeneratedPrivateNameForNode:he,createToken:pt,createSuper:Ye,createThis:lt,createNull:Nt,createTrue:Ct,createFalse:Hr,createModifier:It,createModifiersFromModifierFlags:fo,createQualifiedName:rn,updateQualifiedName:Gn,createComputedPropertyName:bt,updateComputedPropertyName:Hn,createTypeParameterDeclaration:Di,updateTypeParameterDeclaration:Ga,createParameterDeclaration:ji,updateParameterDeclaration:ou,createDecorator:nl,updateDecorator:ol,createPropertySignature:Ld,updatePropertySignature:il,createPropertyDeclaration:cp,updatePropertyDeclaration:oe,createMethodSignature:qe,updateMethodSignature:et,createMethodDeclaration:Et,updateMethodDeclaration:Zr,createConstructorDeclaration:co,updateConstructorDeclaration:$d,createGetAccessorDeclaration:vc,updateGetAccessorDeclaration:al,createSetAccessorDeclaration:ue,updateSetAccessorDeclaration:Ee,createCallSignature:Tt,updateCallSignature:At,createConstructSignature:kt,updateConstructSignature:ut,createIndexSignature:Ir,updateIndexSignature:Tn,createClassStaticBlockDeclaration:ro,updateClassStaticBlockDeclaration:fi,createTemplateLiteralTypeSpan:$r,updateTemplateLiteralTypeSpan:Ft,createKeywordTypeNode:Bs,createTypePredicateNode:Zn,updateTypePredicateNode:_s,createTypeReferenceNode:kf,updateTypeReferenceNode:re,createFunctionTypeNode:fr,updateFunctionTypeNode:T,createConstructorTypeNode:er,updateConstructorTypeNode:Ha,createTypeQueryNode:mi,updateTypeQueryNode:ei,createTypeLiteralNode:hi,updateTypeLiteralNode:Gi,createArrayTypeNode:sl,updateArrayTypeNode:ey,createTupleTypeNode:fs,updateTupleTypeNode:ye,createNamedTupleMember:We,updateNamedTupleMember:br,createOptionalTypeNode:ht,updateOptionalTypeNode:ie,createRestTypeNode:To,updateRestTypeNode:zo,createUnionTypeNode:yR,updateUnionTypeNode:Ow,createIntersectionTypeNode:Md,updateIntersectionTypeNode:tr,createConditionalTypeNode:mo,updateConditionalTypeNode:gR,createInferTypeNode:cl,updateInferTypeNode:SR,createImportTypeNode:iu,updateImportTypeNode:CS,createParenthesizedType:ba,updateParenthesizedType:ui,createThisTypeNode:X,createTypeOperatorNode:ua,updateTypeOperatorNode:jd,createIndexedAccessTypeNode:au,updateIndexedAccessTypeNode:vb,createMappedTypeNode:No,updateMappedTypeNode:qi,createLiteralTypeNode:Cf,updateLiteralTypeNode:up,createTemplateLiteralType:la,updateTemplateLiteralType:vR,createObjectBindingPattern:Nw,updateObjectBindingPattern:bR,createArrayBindingPattern:Bd,updateArrayBindingPattern:xR,createBindingElement:PS,updateBindingElement:Pf,createArrayLiteralExpression:bb,updateArrayLiteralExpression:Fw,createObjectLiteralExpression:ty,updateObjectLiteralExpression:ER,createPropertyAccessExpression:e&4?(l,_)=>setEmitFlags(su(l,_),262144):su,updatePropertyAccessExpression:TR,createPropertyAccessChain:e&4?(l,_,h)=>setEmitFlags(ry(l,_,h),262144):ry,updatePropertyAccessChain:OS,createElementAccessExpression:ny,updateElementAccessExpression:DR,createElementAccessChain:$w,updateElementAccessChain:xb,createCallExpression:oy,updateCallExpression:NS,createCallChain:Eb,updateCallChain:jw,createNewExpression:qs,updateNewExpression:Tb,createTaggedTemplateExpression:FS,updateTaggedTemplateExpression:Bw,createTypeAssertion:qw,updateTypeAssertion:Uw,createParenthesizedExpression:Db,updateParenthesizedExpression:zw,createFunctionExpression:Ab,updateFunctionExpression:Vw,createArrowFunction:wb,updateArrowFunction:Jw,createDeleteExpression:Kw,updateDeleteExpression:Gw,createTypeOfExpression:RS,updateTypeOfExpression:hs,createVoidExpression:Ib,updateVoidExpression:cu,createAwaitExpression:Hw,updateAwaitExpression:qd,createPrefixUnaryExpression:Ud,updatePrefixUnaryExpression:AR,createPostfixUnaryExpression:Of,updatePostfixUnaryExpression:wR,createBinaryExpression:LS,updateBinaryExpression:IR,createConditionalExpression:Ww,updateConditionalExpression:Qw,createTemplateExpression:Xw,updateTemplateExpression:ll,createTemplateHead:eI,createTemplateMiddle:$S,createTemplateTail:kb,createNoSubstitutionTemplateLiteral:CR,createTemplateLiteralLikeNode:Ff,createYieldExpression:Cb,updateYieldExpression:PR,createSpreadElement:tI,updateSpreadElement:OR,createClassExpression:rI,updateClassExpression:Pb,createOmittedExpression:Ob,createExpressionWithTypeArguments:nI,updateExpressionWithTypeArguments:oI,createAsExpression:ys,updateAsExpression:MS,createNonNullExpression:iI,updateNonNullExpression:aI,createSatisfiesExpression:Nb,updateSatisfiesExpression:sI,createNonNullChain:Fb,updateNonNullChain:bc,createMetaProperty:cI,updateMetaProperty:Rb,createTemplateSpan:ul,updateTemplateSpan:jS,createSemicolonClassElement:lI,createBlock:zd,updateBlock:NR,createVariableStatement:Lb,updateVariableStatement:uI,createEmptyStatement:pI,createExpressionStatement:ay,updateExpressionStatement:dI,createIfStatement:_I,updateIfStatement:fI,createDoStatement:mI,updateDoStatement:hI,createWhileStatement:yI,updateWhileStatement:FR,createForStatement:gI,updateForStatement:SI,createForInStatement:$b,updateForInStatement:RR,createForOfStatement:vI,updateForOfStatement:LR,createContinueStatement:bI,updateContinueStatement:$R,createBreakStatement:Mb,updateBreakStatement:xI,createReturnStatement:jb,updateReturnStatement:MR,createWithStatement:Bb,updateWithStatement:EI,createSwitchStatement:qb,updateSwitchStatement:Rf,createLabeledStatement:TI,updateLabeledStatement:DI,createThrowStatement:AI,updateThrowStatement:jR,createTryStatement:wI,updateTryStatement:BR,createDebuggerStatement:II,createVariableDeclaration:BS,updateVariableDeclaration:kI,createVariableDeclarationList:Ub,updateVariableDeclarationList:qR,createFunctionDeclaration:CI,updateFunctionDeclaration:zb,createClassDeclaration:PI,updateClassDeclaration:qS,createInterfaceDeclaration:OI,updateInterfaceDeclaration:NI,createTypeAliasDeclaration:no,updateTypeAliasDeclaration:pp,createEnumDeclaration:Vb,updateEnumDeclaration:dp,createModuleDeclaration:FI,updateModuleDeclaration:ti,createModuleBlock:_p,updateModuleBlock:Hi,createCaseBlock:RI,updateCaseBlock:zR,createNamespaceExportDeclaration:LI,updateNamespaceExportDeclaration:$I,createImportEqualsDeclaration:MI,updateImportEqualsDeclaration:jI,createImportDeclaration:BI,updateImportDeclaration:qI,createImportClause:UI,updateImportClause:zI,createAssertClause:Jb,updateAssertClause:JR,createAssertEntry:sy,updateAssertEntry:VI,createImportTypeAssertionContainer:Kb,updateImportTypeAssertionContainer:JI,createImportAttributes:KI,updateImportAttributes:Gb,createImportAttribute:GI,updateImportAttribute:HI,createNamespaceImport:ZI,updateNamespaceImport:KR,createNamespaceExport:WI,updateNamespaceExport:GR,createNamedImports:QI,updateNamedImports:XI,createImportSpecifier:fp,updateImportSpecifier:HR,createExportAssignment:US,updateExportAssignment:cy,createExportDeclaration:zS,updateExportDeclaration:YI,createNamedExports:Hb,updateNamedExports:ZR,createExportSpecifier:VS,updateExportSpecifier:WR,createMissingDeclaration:QR,createExternalModuleReference:Zb,updateExternalModuleReference:XR,get createJSDocAllType(){return c(313)},get createJSDocUnknownType(){return c(314)},get createJSDocNonNullableType(){return f(316)},get updateJSDocNonNullableType(){return m(316)},get createJSDocNullableType(){return f(315)},get updateJSDocNullableType(){return m(315)},get createJSDocOptionalType(){return p(317)},get updateJSDocOptionalType(){return d(317)},get createJSDocVariadicType(){return p(319)},get updateJSDocVariadicType(){return d(319)},get createJSDocNamepathType(){return p(320)},get updateJSDocNamepathType(){return d(320)},createJSDocFunctionType:rk,updateJSDocFunctionType:t8,createJSDocTypeLiteral:nk,updateJSDocTypeLiteral:r8,createJSDocTypeExpression:ok,updateJSDocTypeExpression:Qb,createJSDocSignature:ik,updateJSDocSignature:n8,createJSDocTemplateTag:Xb,updateJSDocTemplateTag:ak,createJSDocTypedefTag:JS,updateJSDocTypedefTag:o8,createJSDocParameterTag:Yb,updateJSDocParameterTag:i8,createJSDocPropertyTag:sk,updateJSDocPropertyTag:ck,createJSDocCallbackTag:lk,updateJSDocCallbackTag:uk,createJSDocOverloadTag:pk,updateJSDocOverloadTag:ex,createJSDocAugmentsTag:tx,updateJSDocAugmentsTag:uy,createJSDocImplementsTag:dk,updateJSDocImplementsTag:u8,createJSDocSeeTag:Jd,updateJSDocSeeTag:KS,createJSDocImportTag:Ek,updateJSDocImportTag:Tk,createJSDocNameReference:_k,updateJSDocNameReference:a8,createJSDocMemberName:fk,updateJSDocMemberName:s8,createJSDocLink:mk,updateJSDocLink:hk,createJSDocLinkCode:yk,updateJSDocLinkCode:c8,createJSDocLinkPlain:gk,updateJSDocLinkPlain:l8,get createJSDocTypeTag(){return S(345)},get updateJSDocTypeTag(){return x(345)},get createJSDocReturnTag(){return S(343)},get updateJSDocReturnTag(){return x(343)},get createJSDocThisTag(){return S(344)},get updateJSDocThisTag(){return x(344)},get createJSDocAuthorTag(){return y(331)},get updateJSDocAuthorTag(){return g(331)},get createJSDocClassTag(){return y(333)},get updateJSDocClassTag(){return g(333)},get createJSDocPublicTag(){return y(334)},get updateJSDocPublicTag(){return g(334)},get createJSDocPrivateTag(){return y(335)},get updateJSDocPrivateTag(){return g(335)},get createJSDocProtectedTag(){return y(336)},get updateJSDocProtectedTag(){return g(336)},get createJSDocReadonlyTag(){return y(337)},get updateJSDocReadonlyTag(){return g(337)},get createJSDocOverrideTag(){return y(338)},get updateJSDocOverrideTag(){return g(338)},get createJSDocDeprecatedTag(){return y(332)},get updateJSDocDeprecatedTag(){return g(332)},get createJSDocThrowsTag(){return S(350)},get updateJSDocThrowsTag(){return x(350)},get createJSDocSatisfiesTag(){return S(351)},get updateJSDocSatisfiesTag(){return x(351)},createJSDocEnumTag:xk,updateJSDocEnumTag:rx,createJSDocUnknownTag:bk,updateJSDocUnknownTag:_8,createJSDocText:nx,updateJSDocText:f8,createJSDocComment:py,updateJSDocComment:Dk,createJsxElement:Ak,updateJsxElement:m8,createJsxSelfClosingElement:wk,updateJsxSelfClosingElement:h8,createJsxOpeningElement:GS,updateJsxOpeningElement:Ik,createJsxClosingElement:ox,updateJsxClosingElement:ix,createJsxFragment:pa,createJsxText:dy,updateJsxText:y8,createJsxOpeningFragment:Ck,createJsxJsxClosingFragment:Pk,updateJsxFragment:kk,createJsxAttribute:Ok,updateJsxAttribute:g8,createJsxAttributes:_y,updateJsxAttributes:S8,createJsxSpreadAttribute:Nk,updateJsxSpreadAttribute:v8,createJsxExpression:Fk,updateJsxExpression:ax,createJsxNamespacedName:Lf,updateJsxNamespacedName:b8,createCaseClause:HS,updateCaseClause:Rk,createDefaultClause:Lk,updateDefaultClause:fy,createHeritageClause:sx,updateHeritageClause:x8,createCatchClause:$k,updateCatchClause:Mk,createPropertyAssignment:ZS,updatePropertyAssignment:cx,createShorthandPropertyAssignment:jk,updateShorthandPropertyAssignment:E8,createSpreadAssignment:Bk,updateSpreadAssignment:qk,createEnumMember:lx,updateEnumMember:xc,createSourceFile:Uk,updateSourceFile:w8,createRedirectedSourceFile:zk,createBundle:Vk,updateBundle:Jk,createSyntheticExpression:I8,createSyntaxList:k8,createNotEmittedStatement:WS,createNotEmittedTypeElement:C8,createPartiallyEmittedExpression:dx,updatePartiallyEmittedExpression:Kk,createCommaListExpression:_x,updateCommaListExpression:O8,createSyntheticReferenceExpression:fx,updateSyntheticReferenceExpression:Gk,cloneNode:QS,get createComma(){return i(28)},get createAssignment(){return i(64)},get createLogicalOr(){return i(57)},get createLogicalAnd(){return i(56)},get createBitwiseOr(){return i(52)},get createBitwiseXor(){return i(53)},get createBitwiseAnd(){return i(51)},get createStrictEquality(){return i(37)},get createStrictInequality(){return i(38)},get createEquality(){return i(35)},get createInequality(){return i(36)},get createLessThan(){return i(30)},get createLessThanEquals(){return i(33)},get createGreaterThan(){return i(32)},get createGreaterThanEquals(){return i(34)},get createLeftShift(){return i(48)},get createRightShift(){return i(49)},get createUnsignedRightShift(){return i(50)},get createAdd(){return i(40)},get createSubtract(){return i(41)},get createMultiply(){return i(42)},get createDivide(){return i(44)},get createModulo(){return i(45)},get createExponent(){return i(43)},get createPrefixPlus(){return a(40)},get createPrefixMinus(){return a(41)},get createPrefixIncrement(){return a(46)},get createPrefixDecrement(){return a(47)},get createBitwiseNot(){return a(55)},get createLogicalNot(){return a(54)},get createPostfixIncrement(){return s(46)},get createPostfixDecrement(){return s(47)},createImmediatelyInvokedFunctionExpression:R8,createImmediatelyInvokedArrowFunction:L8,createVoidZero:my,createExportDefault:Wk,createExternalModuleExport:Qk,createTypeCheck:$8,createIsNotTypeCheck:mx,createMethodCall:Kd,createGlobalMethodCall:hy,createFunctionBindCall:M8,createFunctionCallCall:j8,createFunctionApplyCall:B8,createArraySliceCall:q8,createArrayConcatCall:yy,createObjectDefinePropertyCall:U8,createObjectGetOwnPropertyDescriptorCall:hx,createReflectGetCall:Mf,createReflectSetCall:Xk,createPropertyDescriptor:z8,createCallBinding:rC,createAssignmentTargetWrapper:nC,inlineExpressions:v,getInternalName:P,getLocalName:R,getExportName:M,getDeclarationName:ee,getNamespaceMemberName:be,getExternalModuleOrNamespaceExportName:Ue,restoreOuterExpressions:eC,restoreEnclosingLabel:tC,createUseStrictPrologue:He,copyPrologue:Ce,copyStandardPrologue:mr,copyCustomPrologue:nr,ensureUseStrict:jt,liftToBlock:Wa,mergeLexicalEnvironment:lu,replaceModifiers:uu,replaceDecoratorsAndModifiers:Ec,replacePropertyName:Gd};return Jc(ant,l=>l(A)),A;function I(l,_){if(l===void 0||l===ii)l=[];else if(rh(l)){if(_===void 0||l.hasTrailingComma===_)return l.transformFlags===void 0&&eme(l),pe.attachNodeArrayDebugInfo(l),l;let k=l.slice();return k.pos=l.pos,k.end=l.end,k.hasTrailingComma=_,k.transformFlags=l.transformFlags,pe.attachNodeArrayDebugInfo(k),k}let h=l.length,b=h>=1&&h<=4?l.slice():l;return b.pos=-1,b.end=-1,b.hasTrailingComma=!!_,b.transformFlags=0,eme(b),pe.attachNodeArrayDebugInfo(b),b}function E(l){return t.createBaseNode(l)}function C(l){let _=E(l);return _.symbol=void 0,_.localSymbol=void 0,_}function F(l,_){return l!==_&&(l.typeArguments=_.typeArguments),se(l,_)}function O(l,_=0){let h=typeof l=="number"?l+"":l;pe.assert(h.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let b=C(9);return b.text=h,b.numericLiteralFlags=_,_&384&&(b.transformFlags|=1024),b}function $(l){let _=Oe(10);return _.text=typeof l=="string"?l:Qrt(l)+"n",_.transformFlags|=32,_}function N(l,_){let h=C(11);return h.text=l,h.singleQuote=_,h}function U(l,_,h){let b=N(l,_);return b.hasExtendedUnicodeEscape=h,h&&(b.transformFlags|=1024),b}function ge(l){let _=N(_rt(l),void 0);return _.textSourceNode=l,_}function Te(l){let _=Oe(14);return _.text=l,_}function ke(l,_){switch(l){case 9:return O(_,0);case 10:return $(_);case 11:return U(_,void 0);case 12:return dy(_,!1);case 13:return dy(_,!0);case 14:return Te(_);case 15:return Ff(l,_,void 0,0)}}function Ve(l){let _=t.createBaseIdentifierNode(80);return _.escapedText=l,_.jsDoc=void 0,_.flowNode=void 0,_.symbol=void 0,_}function me(l,_,h,b){let k=Ve(a1(l));return setIdentifierAutoGenerate(k,{flags:_,id:rO,prefix:h,suffix:b}),rO++,k}function xe(l,_,h){_===void 0&&l&&(_=lhe(l)),_===80&&(_=void 0);let b=Ve(a1(l));return h&&(b.flags|=256),b.escapedText==="await"&&(b.transformFlags|=67108864),b.flags&256&&(b.transformFlags|=1024),b}function Rt(l,_,h,b){let k=1;_&&(k|=8);let j=me("",k,h,b);return l&&l(j),j}function Vt(l){let _=2;return l&&(_|=8),me("",_,void 0,void 0)}function Yt(l,_=0,h,b){return pe.assert(!(_&7),"Argument out of range: flags"),pe.assert((_&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),me(l,3|_,h,b)}function vt(l,_=0,h,b){pe.assert(!(_&7),"Argument out of range: flags");let k=l?Qz(l)?iV(!1,h,l,b,uc):`generated@${getNodeId(l)}`:"";(h||b)&&(_|=16);let j=me(k,4|_,h,b);return j.original=l,j}function Fr(l){let _=t.createBasePrivateIdentifierNode(81);return _.escapedText=l,_.transformFlags|=16777216,_}function le(l){return dO(l,"#")||pe.fail("First character of private identifier must be #: "+l),Fr(a1(l))}function K(l,_,h,b){let k=Fr(a1(l));return setIdentifierAutoGenerate(k,{flags:_,id:rO,prefix:h,suffix:b}),rO++,k}function ae(l,_,h){l&&!dO(l,"#")&&pe.fail("First character of private identifier must be #: "+l);let b=8|(l?3:1);return K(l??"",b,_,h)}function he(l,_,h){let b=Qz(l)?iV(!0,_,l,h,uc):`#generated@${getNodeId(l)}`,k=K(b,4|(_||h?16:0),_,h);return k.original=l,k}function Oe(l){return t.createBaseTokenNode(l)}function pt(l){pe.assert(l>=0&&l<=166,"Invalid token"),pe.assert(l<=15||l>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),pe.assert(l<=9||l>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),pe.assert(l!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let _=Oe(l),h=0;switch(l){case 134:h=384;break;case 160:h=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:h=1;break;case 108:h=134218752,_.flowNode=void 0;break;case 126:h=1024;break;case 129:h=16777216;break;case 110:h=16384,_.flowNode=void 0;break}return h&&(_.transformFlags|=h),_}function Ye(){return pt(108)}function lt(){return pt(110)}function Nt(){return pt(106)}function Ct(){return pt(112)}function Hr(){return pt(97)}function It(l){return pt(l)}function fo(l){let _=[];return l&32&&_.push(It(95)),l&128&&_.push(It(138)),l&2048&&_.push(It(90)),l&4096&&_.push(It(87)),l&1&&_.push(It(125)),l&2&&_.push(It(123)),l&4&&_.push(It(124)),l&64&&_.push(It(128)),l&256&&_.push(It(126)),l&16&&_.push(It(164)),l&8&&_.push(It(148)),l&512&&_.push(It(129)),l&1024&&_.push(It(134)),l&8192&&_.push(It(103)),l&16384&&_.push(It(147)),_.length?_:void 0}function rn(l,_){let h=E(167);return h.left=l,h.right=Dn(_),h.transformFlags|=fe(h.left)|c1(h.right),h.flowNode=void 0,h}function Gn(l,_,h){return l.left!==_||l.right!==h?se(rn(_,h),l):l}function bt(l){let _=E(168);return _.expression=n().parenthesizeExpressionOfComputedPropertyName(l),_.transformFlags|=fe(_.expression)|1024|131072,_}function Hn(l,_){return l.expression!==_?se(bt(_),l):l}function Di(l,_,h,b){let k=C(169);return k.modifiers=Kt(l),k.name=Dn(_),k.constraint=h,k.default=b,k.transformFlags=1,k.expression=void 0,k.jsDoc=void 0,k}function Ga(l,_,h,b,k){return l.modifiers!==_||l.name!==h||l.constraint!==b||l.default!==k?se(Di(_,h,b,k),l):l}function ji(l,_,h,b,k,j){let _e=C(170);return _e.modifiers=Kt(l),_e.dotDotDotToken=_,_e.name=Dn(h),_e.questionToken=b,_e.type=k,_e.initializer=gy(j),mrt(_e.name)?_e.transformFlags=1:_e.transformFlags=Pt(_e.modifiers)|fe(_e.dotDotDotToken)|Uc(_e.name)|fe(_e.questionToken)|fe(_e.initializer)|(_e.questionToken??_e.type?1:0)|(_e.dotDotDotToken??_e.initializer?1024:0)|(zc(_e.modifiers)&31?8192:0),_e.jsDoc=void 0,_e}function ou(l,_,h,b,k,j,_e){return l.modifiers!==_||l.dotDotDotToken!==h||l.name!==b||l.questionToken!==k||l.type!==j||l.initializer!==_e?se(ji(_,h,b,k,j,_e),l):l}function nl(l){let _=E(171);return _.expression=n().parenthesizeLeftSideOfAccess(l,!1),_.transformFlags|=fe(_.expression)|1|8192|33554432,_}function ol(l,_){return l.expression!==_?se(nl(_),l):l}function Ld(l,_,h,b){let k=C(172);return k.modifiers=Kt(l),k.name=Dn(_),k.type=b,k.questionToken=h,k.transformFlags=1,k.initializer=void 0,k.jsDoc=void 0,k}function il(l,_,h,b,k){return l.modifiers!==_||l.name!==h||l.questionToken!==b||l.type!==k?Jt(Ld(_,h,b,k),l):l}function Jt(l,_){return l!==_&&(l.initializer=_.initializer),se(l,_)}function cp(l,_,h,b,k){let j=C(173);j.modifiers=Kt(l),j.name=Dn(_),j.questionToken=h&&rme(h)?h:void 0,j.exclamationToken=h&&tme(h)?h:void 0,j.type=b,j.initializer=gy(k);let _e=j.flags&33554432||zc(j.modifiers)&128;return j.transformFlags=Pt(j.modifiers)|Uc(j.name)|fe(j.initializer)|(_e||j.questionToken||j.exclamationToken||j.type?1:0)|(Ghe(j.name)||zc(j.modifiers)&256&&j.initializer?8192:0)|16777216,j.jsDoc=void 0,j}function oe(l,_,h,b,k,j){return l.modifiers!==_||l.name!==h||l.questionToken!==(b!==void 0&&rme(b)?b:void 0)||l.exclamationToken!==(b!==void 0&&tme(b)?b:void 0)||l.type!==k||l.initializer!==j?se(cp(_,h,b,k,j),l):l}function qe(l,_,h,b,k,j){let _e=C(174);return _e.modifiers=Kt(l),_e.name=Dn(_),_e.questionToken=h,_e.typeParameters=Kt(b),_e.parameters=Kt(k),_e.type=j,_e.transformFlags=1,_e.jsDoc=void 0,_e.locals=void 0,_e.nextContainer=void 0,_e.typeArguments=void 0,_e}function et(l,_,h,b,k,j,_e){return l.modifiers!==_||l.name!==h||l.questionToken!==b||l.typeParameters!==k||l.parameters!==j||l.type!==_e?F(qe(_,h,b,k,j,_e),l):l}function Et(l,_,h,b,k,j,_e,Qe){let xr=C(175);if(xr.modifiers=Kt(l),xr.asteriskToken=_,xr.name=Dn(h),xr.questionToken=b,xr.exclamationToken=void 0,xr.typeParameters=Kt(k),xr.parameters=I(j),xr.type=_e,xr.body=Qe,!xr.body)xr.transformFlags=1;else{let wi=zc(xr.modifiers)&1024,pu=!!xr.asteriskToken,Vs=wi&&pu;xr.transformFlags=Pt(xr.modifiers)|fe(xr.asteriskToken)|Uc(xr.name)|fe(xr.questionToken)|Pt(xr.typeParameters)|Pt(xr.parameters)|fe(xr.type)|fe(xr.body)&-67108865|(Vs?128:wi?256:pu?2048:0)|(xr.questionToken||xr.typeParameters||xr.type?1:0)|1024}return xr.typeArguments=void 0,xr.jsDoc=void 0,xr.locals=void 0,xr.nextContainer=void 0,xr.flowNode=void 0,xr.endFlowNode=void 0,xr.returnFlowNode=void 0,xr}function Zr(l,_,h,b,k,j,_e,Qe,xr){return l.modifiers!==_||l.asteriskToken!==h||l.name!==b||l.questionToken!==k||l.typeParameters!==j||l.parameters!==_e||l.type!==Qe||l.body!==xr?dn(Et(_,h,b,k,j,_e,Qe,xr),l):l}function dn(l,_){return l!==_&&(l.exclamationToken=_.exclamationToken),se(l,_)}function ro(l){let _=C(176);return _.body=l,_.transformFlags=fe(l)|16777216,_.modifiers=void 0,_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_.endFlowNode=void 0,_.returnFlowNode=void 0,_}function fi(l,_){return l.body!==_?Uo(ro(_),l):l}function Uo(l,_){return l!==_&&(l.modifiers=_.modifiers),se(l,_)}function co(l,_,h){let b=C(177);return b.modifiers=Kt(l),b.parameters=I(_),b.body=h,b.body?b.transformFlags=Pt(b.modifiers)|Pt(b.parameters)|fe(b.body)&-67108865|1024:b.transformFlags=1,b.typeParameters=void 0,b.type=void 0,b.typeArguments=void 0,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.endFlowNode=void 0,b.returnFlowNode=void 0,b}function $d(l,_,h,b){return l.modifiers!==_||l.parameters!==h||l.body!==b?lp(co(_,h,b),l):l}function lp(l,_){return l!==_&&(l.typeParameters=_.typeParameters,l.type=_.type),F(l,_)}function vc(l,_,h,b,k){let j=C(178);return j.modifiers=Kt(l),j.name=Dn(_),j.parameters=I(h),j.type=b,j.body=k,j.body?j.transformFlags=Pt(j.modifiers)|Uc(j.name)|Pt(j.parameters)|fe(j.type)|fe(j.body)&-67108865|(j.type?1:0):j.transformFlags=1,j.typeArguments=void 0,j.typeParameters=void 0,j.jsDoc=void 0,j.locals=void 0,j.nextContainer=void 0,j.flowNode=void 0,j.endFlowNode=void 0,j.returnFlowNode=void 0,j}function al(l,_,h,b,k,j){return l.modifiers!==_||l.name!==h||l.parameters!==b||l.type!==k||l.body!==j?Yh(vc(_,h,b,k,j),l):l}function Yh(l,_){return l!==_&&(l.typeParameters=_.typeParameters),F(l,_)}function ue(l,_,h,b){let k=C(179);return k.modifiers=Kt(l),k.name=Dn(_),k.parameters=I(h),k.body=b,k.body?k.transformFlags=Pt(k.modifiers)|Uc(k.name)|Pt(k.parameters)|fe(k.body)&-67108865|(k.type?1:0):k.transformFlags=1,k.typeArguments=void 0,k.typeParameters=void 0,k.type=void 0,k.jsDoc=void 0,k.locals=void 0,k.nextContainer=void 0,k.flowNode=void 0,k.endFlowNode=void 0,k.returnFlowNode=void 0,k}function Ee(l,_,h,b,k){return l.modifiers!==_||l.name!==h||l.parameters!==b||l.body!==k?we(ue(_,h,b,k),l):l}function we(l,_){return l!==_&&(l.typeParameters=_.typeParameters,l.type=_.type),F(l,_)}function Tt(l,_,h){let b=C(180);return b.typeParameters=Kt(l),b.parameters=Kt(_),b.type=h,b.transformFlags=1,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.typeArguments=void 0,b}function At(l,_,h,b){return l.typeParameters!==_||l.parameters!==h||l.type!==b?F(Tt(_,h,b),l):l}function kt(l,_,h){let b=C(181);return b.typeParameters=Kt(l),b.parameters=Kt(_),b.type=h,b.transformFlags=1,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.typeArguments=void 0,b}function ut(l,_,h,b){return l.typeParameters!==_||l.parameters!==h||l.type!==b?F(kt(_,h,b),l):l}function Ir(l,_,h){let b=C(182);return b.modifiers=Kt(l),b.parameters=Kt(_),b.type=h,b.transformFlags=1,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.typeArguments=void 0,b}function Tn(l,_,h,b){return l.parameters!==h||l.type!==b||l.modifiers!==_?F(Ir(_,h,b),l):l}function $r(l,_){let h=E(205);return h.type=l,h.literal=_,h.transformFlags=1,h}function Ft(l,_,h){return l.type!==_||l.literal!==h?se($r(_,h),l):l}function Bs(l){return pt(l)}function Zn(l,_,h){let b=E(183);return b.assertsModifier=l,b.parameterName=Dn(_),b.type=h,b.transformFlags=1,b}function _s(l,_,h,b){return l.assertsModifier!==_||l.parameterName!==h||l.type!==b?se(Zn(_,h,b),l):l}function kf(l,_){let h=E(184);return h.typeName=Dn(l),h.typeArguments=_&&n().parenthesizeTypeArguments(I(_)),h.transformFlags=1,h}function re(l,_,h){return l.typeName!==_||l.typeArguments!==h?se(kf(_,h),l):l}function fr(l,_,h){let b=C(185);return b.typeParameters=Kt(l),b.parameters=Kt(_),b.type=h,b.transformFlags=1,b.modifiers=void 0,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.typeArguments=void 0,b}function T(l,_,h,b){return l.typeParameters!==_||l.parameters!==h||l.type!==b?Ht(fr(_,h,b),l):l}function Ht(l,_){return l!==_&&(l.modifiers=_.modifiers),F(l,_)}function er(...l){return l.length===4?ce(...l):l.length===3?vr(...l):pe.fail("Incorrect number of arguments specified.")}function ce(l,_,h,b){let k=C(186);return k.modifiers=Kt(l),k.typeParameters=Kt(_),k.parameters=Kt(h),k.type=b,k.transformFlags=1,k.jsDoc=void 0,k.locals=void 0,k.nextContainer=void 0,k.typeArguments=void 0,k}function vr(l,_,h){return ce(void 0,l,_,h)}function Ha(...l){return l.length===5?Dr(...l):l.length===4?nn(...l):pe.fail("Incorrect number of arguments specified.")}function Dr(l,_,h,b,k){return l.modifiers!==_||l.typeParameters!==h||l.parameters!==b||l.type!==k?F(er(_,h,b,k),l):l}function nn(l,_,h,b){return Dr(l,l.modifiers,_,h,b)}function mi(l,_){let h=E(187);return h.exprName=l,h.typeArguments=_&&n().parenthesizeTypeArguments(_),h.transformFlags=1,h}function ei(l,_,h){return l.exprName!==_||l.typeArguments!==h?se(mi(_,h),l):l}function hi(l){let _=C(188);return _.members=I(l),_.transformFlags=1,_}function Gi(l,_){return l.members!==_?se(hi(_),l):l}function sl(l){let _=E(189);return _.elementType=n().parenthesizeNonArrayTypeOfPostfixType(l),_.transformFlags=1,_}function ey(l,_){return l.elementType!==_?se(sl(_),l):l}function fs(l){let _=E(190);return _.elements=I(n().parenthesizeElementTypesOfTupleType(l)),_.transformFlags=1,_}function ye(l,_){return l.elements!==_?se(fs(_),l):l}function We(l,_,h,b){let k=C(203);return k.dotDotDotToken=l,k.name=_,k.questionToken=h,k.type=b,k.transformFlags=1,k.jsDoc=void 0,k}function br(l,_,h,b,k){return l.dotDotDotToken!==_||l.name!==h||l.questionToken!==b||l.type!==k?se(We(_,h,b,k),l):l}function ht(l){let _=E(191);return _.type=n().parenthesizeTypeOfOptionalType(l),_.transformFlags=1,_}function ie(l,_){return l.type!==_?se(ht(_),l):l}function To(l){let _=E(192);return _.type=l,_.transformFlags=1,_}function zo(l,_){return l.type!==_?se(To(_),l):l}function Bi(l,_,h){let b=E(l);return b.types=A.createNodeArray(h(_)),b.transformFlags=1,b}function ms(l,_,h){return l.types!==_?se(Bi(l.kind,_,h),l):l}function yR(l){return Bi(193,l,n().parenthesizeConstituentTypesOfUnionType)}function Ow(l,_){return ms(l,_,n().parenthesizeConstituentTypesOfUnionType)}function Md(l){return Bi(194,l,n().parenthesizeConstituentTypesOfIntersectionType)}function tr(l,_){return ms(l,_,n().parenthesizeConstituentTypesOfIntersectionType)}function mo(l,_,h,b){let k=E(195);return k.checkType=n().parenthesizeCheckTypeOfConditionalType(l),k.extendsType=n().parenthesizeExtendsTypeOfConditionalType(_),k.trueType=h,k.falseType=b,k.transformFlags=1,k.locals=void 0,k.nextContainer=void 0,k}function gR(l,_,h,b,k){return l.checkType!==_||l.extendsType!==h||l.trueType!==b||l.falseType!==k?se(mo(_,h,b,k),l):l}function cl(l){let _=E(196);return _.typeParameter=l,_.transformFlags=1,_}function SR(l,_){return l.typeParameter!==_?se(cl(_),l):l}function la(l,_){let h=E(204);return h.head=l,h.templateSpans=I(_),h.transformFlags=1,h}function vR(l,_,h){return l.head!==_||l.templateSpans!==h?se(la(_,h),l):l}function iu(l,_,h,b,k=!1){let j=E(206);return j.argument=l,j.attributes=_,j.assertions&&j.assertions.assertClause&&j.attributes&&(j.assertions.assertClause=j.attributes),j.qualifier=h,j.typeArguments=b&&n().parenthesizeTypeArguments(b),j.isTypeOf=k,j.transformFlags=1,j}function CS(l,_,h,b,k,j=l.isTypeOf){return l.argument!==_||l.attributes!==h||l.qualifier!==b||l.typeArguments!==k||l.isTypeOf!==j?se(iu(_,h,b,k,j),l):l}function ba(l){let _=E(197);return _.type=l,_.transformFlags=1,_}function ui(l,_){return l.type!==_?se(ba(_),l):l}function X(){let l=E(198);return l.transformFlags=1,l}function ua(l,_){let h=E(199);return h.operator=l,h.type=l===148?n().parenthesizeOperandOfReadonlyTypeOperator(_):n().parenthesizeOperandOfTypeOperator(_),h.transformFlags=1,h}function jd(l,_){return l.type!==_?se(ua(l.operator,_),l):l}function au(l,_){let h=E(200);return h.objectType=n().parenthesizeNonArrayTypeOfPostfixType(l),h.indexType=_,h.transformFlags=1,h}function vb(l,_,h){return l.objectType!==_||l.indexType!==h?se(au(_,h),l):l}function No(l,_,h,b,k,j){let _e=C(201);return _e.readonlyToken=l,_e.typeParameter=_,_e.nameType=h,_e.questionToken=b,_e.type=k,_e.members=j&&I(j),_e.transformFlags=1,_e.locals=void 0,_e.nextContainer=void 0,_e}function qi(l,_,h,b,k,j,_e){return l.readonlyToken!==_||l.typeParameter!==h||l.nameType!==b||l.questionToken!==k||l.type!==j||l.members!==_e?se(No(_,h,b,k,j,_e),l):l}function Cf(l){let _=E(202);return _.literal=l,_.transformFlags=1,_}function up(l,_){return l.literal!==_?se(Cf(_),l):l}function Nw(l){let _=E(207);return _.elements=I(l),_.transformFlags|=Pt(_.elements)|1024|524288,_.transformFlags&32768&&(_.transformFlags|=65664),_}function bR(l,_){return l.elements!==_?se(Nw(_),l):l}function Bd(l){let _=E(208);return _.elements=I(l),_.transformFlags|=Pt(_.elements)|1024|524288,_}function xR(l,_){return l.elements!==_?se(Bd(_),l):l}function PS(l,_,h,b){let k=C(209);return k.dotDotDotToken=l,k.propertyName=Dn(_),k.name=Dn(h),k.initializer=gy(b),k.transformFlags|=fe(k.dotDotDotToken)|Uc(k.propertyName)|Uc(k.name)|fe(k.initializer)|(k.dotDotDotToken?32768:0)|1024,k.flowNode=void 0,k}function Pf(l,_,h,b,k){return l.propertyName!==h||l.dotDotDotToken!==_||l.name!==b||l.initializer!==k?se(PS(_,h,b,k),l):l}function bb(l,_){let h=E(210),b=l&&_1(l),k=I(l,b&&Znt(b)?!0:void 0);return h.elements=n().parenthesizeExpressionsOfCommaDelimitedList(k),h.multiLine=_,h.transformFlags|=Pt(h.elements),h}function Fw(l,_){return l.elements!==_?se(bb(_,l.multiLine),l):l}function ty(l,_){let h=C(211);return h.properties=I(l),h.multiLine=_,h.transformFlags|=Pt(h.properties),h.jsDoc=void 0,h}function ER(l,_){return l.properties!==_?se(ty(_,l.multiLine),l):l}function Rw(l,_,h){let b=C(212);return b.expression=l,b.questionDotToken=_,b.name=h,b.transformFlags=fe(b.expression)|fe(b.questionDotToken)|(kn(b.name)?c1(b.name):fe(b.name)|536870912),b.jsDoc=void 0,b.flowNode=void 0,b}function su(l,_){let h=Rw(n().parenthesizeLeftSideOfAccess(l,!1),void 0,Dn(_));return $z(l)&&(h.transformFlags|=384),h}function TR(l,_,h){return itt(l)?OS(l,_,l.questionDotToken,ud(h,kn)):l.expression!==_||l.name!==h?se(su(_,h),l):l}function ry(l,_,h){let b=Rw(n().parenthesizeLeftSideOfAccess(l,!0),_,Dn(h));return b.flags|=64,b.transformFlags|=32,b}function OS(l,_,h,b){return pe.assert(!!(l.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),l.expression!==_||l.questionDotToken!==h||l.name!==b?se(ry(_,h,b),l):l}function Lw(l,_,h){let b=C(213);return b.expression=l,b.questionDotToken=_,b.argumentExpression=h,b.transformFlags|=fe(b.expression)|fe(b.questionDotToken)|fe(b.argumentExpression),b.jsDoc=void 0,b.flowNode=void 0,b}function ny(l,_){let h=Lw(n().parenthesizeLeftSideOfAccess(l,!1),void 0,mp(_));return $z(l)&&(h.transformFlags|=384),h}function DR(l,_,h){return att(l)?xb(l,_,l.questionDotToken,h):l.expression!==_||l.argumentExpression!==h?se(ny(_,h),l):l}function $w(l,_,h){let b=Lw(n().parenthesizeLeftSideOfAccess(l,!0),_,mp(h));return b.flags|=64,b.transformFlags|=32,b}function xb(l,_,h,b){return pe.assert(!!(l.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),l.expression!==_||l.questionDotToken!==h||l.argumentExpression!==b?se($w(_,h,b),l):l}function Mw(l,_,h,b){let k=C(214);return k.expression=l,k.questionDotToken=_,k.typeArguments=h,k.arguments=b,k.transformFlags|=fe(k.expression)|fe(k.questionDotToken)|Pt(k.typeArguments)|Pt(k.arguments),k.typeArguments&&(k.transformFlags|=1),Gfe(k.expression)&&(k.transformFlags|=16384),k}function oy(l,_,h){let b=Mw(n().parenthesizeLeftSideOfAccess(l,!1),void 0,Kt(_),n().parenthesizeExpressionsOfCommaDelimitedList(I(h)));return gnt(b.expression)&&(b.transformFlags|=8388608),b}function NS(l,_,h,b){return Bfe(l)?jw(l,_,l.questionDotToken,h,b):l.expression!==_||l.typeArguments!==h||l.arguments!==b?se(oy(_,h,b),l):l}function Eb(l,_,h,b){let k=Mw(n().parenthesizeLeftSideOfAccess(l,!0),_,Kt(h),n().parenthesizeExpressionsOfCommaDelimitedList(I(b)));return k.flags|=64,k.transformFlags|=32,k}function jw(l,_,h,b,k){return pe.assert(!!(l.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),l.expression!==_||l.questionDotToken!==h||l.typeArguments!==b||l.arguments!==k?se(Eb(_,h,b,k),l):l}function qs(l,_,h){let b=C(215);return b.expression=n().parenthesizeExpressionOfNew(l),b.typeArguments=Kt(_),b.arguments=h?n().parenthesizeExpressionsOfCommaDelimitedList(h):void 0,b.transformFlags|=fe(b.expression)|Pt(b.typeArguments)|Pt(b.arguments)|32,b.typeArguments&&(b.transformFlags|=1),b}function Tb(l,_,h,b){return l.expression!==_||l.typeArguments!==h||l.arguments!==b?se(qs(_,h,b),l):l}function FS(l,_,h){let b=E(216);return b.tag=n().parenthesizeLeftSideOfAccess(l,!1),b.typeArguments=Kt(_),b.template=h,b.transformFlags|=fe(b.tag)|Pt(b.typeArguments)|fe(b.template)|1024,b.typeArguments&&(b.transformFlags|=1),frt(b.template)&&(b.transformFlags|=128),b}function Bw(l,_,h,b){return l.tag!==_||l.typeArguments!==h||l.template!==b?se(FS(_,h,b),l):l}function qw(l,_){let h=E(217);return h.expression=n().parenthesizeOperandOfPrefixUnary(_),h.type=l,h.transformFlags|=fe(h.expression)|fe(h.type)|1,h}function Uw(l,_,h){return l.type!==_||l.expression!==h?se(qw(_,h),l):l}function Db(l){let _=E(218);return _.expression=l,_.transformFlags=fe(_.expression),_.jsDoc=void 0,_}function zw(l,_){return l.expression!==_?se(Db(_),l):l}function Ab(l,_,h,b,k,j,_e){let Qe=C(219);Qe.modifiers=Kt(l),Qe.asteriskToken=_,Qe.name=Dn(h),Qe.typeParameters=Kt(b),Qe.parameters=I(k),Qe.type=j,Qe.body=_e;let xr=zc(Qe.modifiers)&1024,wi=!!Qe.asteriskToken,pu=xr&&wi;return Qe.transformFlags=Pt(Qe.modifiers)|fe(Qe.asteriskToken)|Uc(Qe.name)|Pt(Qe.typeParameters)|Pt(Qe.parameters)|fe(Qe.type)|fe(Qe.body)&-67108865|(pu?128:xr?256:wi?2048:0)|(Qe.typeParameters||Qe.type?1:0)|4194304,Qe.typeArguments=void 0,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.flowNode=void 0,Qe.endFlowNode=void 0,Qe.returnFlowNode=void 0,Qe}function Vw(l,_,h,b,k,j,_e,Qe){return l.name!==b||l.modifiers!==_||l.asteriskToken!==h||l.typeParameters!==k||l.parameters!==j||l.type!==_e||l.body!==Qe?F(Ab(_,h,b,k,j,_e,Qe),l):l}function wb(l,_,h,b,k,j){let _e=C(220);_e.modifiers=Kt(l),_e.typeParameters=Kt(_),_e.parameters=I(h),_e.type=b,_e.equalsGreaterThanToken=k??pt(39),_e.body=n().parenthesizeConciseBodyOfArrowFunction(j);let Qe=zc(_e.modifiers)&1024;return _e.transformFlags=Pt(_e.modifiers)|Pt(_e.typeParameters)|Pt(_e.parameters)|fe(_e.type)|fe(_e.equalsGreaterThanToken)|fe(_e.body)&-67108865|(_e.typeParameters||_e.type?1:0)|(Qe?16640:0)|1024,_e.typeArguments=void 0,_e.jsDoc=void 0,_e.locals=void 0,_e.nextContainer=void 0,_e.flowNode=void 0,_e.endFlowNode=void 0,_e.returnFlowNode=void 0,_e}function Jw(l,_,h,b,k,j,_e){return l.modifiers!==_||l.typeParameters!==h||l.parameters!==b||l.type!==k||l.equalsGreaterThanToken!==j||l.body!==_e?F(wb(_,h,b,k,j,_e),l):l}function Kw(l){let _=E(221);return _.expression=n().parenthesizeOperandOfPrefixUnary(l),_.transformFlags|=fe(_.expression),_}function Gw(l,_){return l.expression!==_?se(Kw(_),l):l}function RS(l){let _=E(222);return _.expression=n().parenthesizeOperandOfPrefixUnary(l),_.transformFlags|=fe(_.expression),_}function hs(l,_){return l.expression!==_?se(RS(_),l):l}function Ib(l){let _=E(223);return _.expression=n().parenthesizeOperandOfPrefixUnary(l),_.transformFlags|=fe(_.expression),_}function cu(l,_){return l.expression!==_?se(Ib(_),l):l}function Hw(l){let _=E(224);return _.expression=n().parenthesizeOperandOfPrefixUnary(l),_.transformFlags|=fe(_.expression)|256|128|2097152,_}function qd(l,_){return l.expression!==_?se(Hw(_),l):l}function Ud(l,_){let h=E(225);return h.operator=l,h.operand=n().parenthesizeOperandOfPrefixUnary(_),h.transformFlags|=fe(h.operand),(l===46||l===47)&&kn(h.operand)&&!d1(h.operand)&&!ame(h.operand)&&(h.transformFlags|=268435456),h}function AR(l,_){return l.operand!==_?se(Ud(l.operator,_),l):l}function Of(l,_){let h=E(226);return h.operator=_,h.operand=n().parenthesizeOperandOfPostfixUnary(l),h.transformFlags|=fe(h.operand),kn(h.operand)&&!d1(h.operand)&&!ame(h.operand)&&(h.transformFlags|=268435456),h}function wR(l,_){return l.operand!==_?se(Of(_,l.operator),l):l}function LS(l,_,h){let b=C(227),k=J8(_),j=k.kind;return b.left=n().parenthesizeLeftSideOfBinary(j,l),b.operatorToken=k,b.right=n().parenthesizeRightSideOfBinary(j,b.left,h),b.transformFlags|=fe(b.left)|fe(b.operatorToken)|fe(b.right),j===61?b.transformFlags|=32:j===64?eye(b.left)?b.transformFlags|=5248|Zw(b.left):Vnt(b.left)&&(b.transformFlags|=5120|Zw(b.left)):j===43||j===68?b.transformFlags|=512:Drt(j)&&(b.transformFlags|=16),j===103&&jg(b.left)&&(b.transformFlags|=536870912),b.jsDoc=void 0,b}function Zw(l){return gye(l)?65536:0}function IR(l,_,h,b){return l.left!==_||l.operatorToken!==h||l.right!==b?se(LS(_,h,b),l):l}function Ww(l,_,h,b,k){let j=E(228);return j.condition=n().parenthesizeConditionOfConditionalExpression(l),j.questionToken=_??pt(58),j.whenTrue=n().parenthesizeBranchOfConditionalExpression(h),j.colonToken=b??pt(59),j.whenFalse=n().parenthesizeBranchOfConditionalExpression(k),j.transformFlags|=fe(j.condition)|fe(j.questionToken)|fe(j.whenTrue)|fe(j.colonToken)|fe(j.whenFalse),j.flowNodeWhenFalse=void 0,j.flowNodeWhenTrue=void 0,j}function Qw(l,_,h,b,k,j){return l.condition!==_||l.questionToken!==h||l.whenTrue!==b||l.colonToken!==k||l.whenFalse!==j?se(Ww(_,h,b,k,j),l):l}function Xw(l,_){let h=E(229);return h.head=l,h.templateSpans=I(_),h.transformFlags|=fe(h.head)|Pt(h.templateSpans)|1024,h}function ll(l,_,h){return l.head!==_||l.templateSpans!==h?se(Xw(_,h),l):l}function iy(l,_,h,b=0){pe.assert(!(b&-7177),"Unsupported template flags.");let k;if(h!==void 0&&h!==_&&(k=snt(l,h),typeof k=="object"))return pe.fail("Invalid raw text");if(_===void 0){if(k===void 0)return pe.fail("Arguments 'text' and 'rawText' may not both be undefined.");_=k}else k!==void 0&&pe.assert(_===k,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return _}function Yw(l){let _=1024;return l&&(_|=128),_}function kR(l,_,h,b){let k=Oe(l);return k.text=_,k.rawText=h,k.templateFlags=b&7176,k.transformFlags=Yw(k.templateFlags),k}function Nf(l,_,h,b){let k=C(l);return k.text=_,k.rawText=h,k.templateFlags=b&7176,k.transformFlags=Yw(k.templateFlags),k}function Ff(l,_,h,b){return l===15?Nf(l,_,h,b):kR(l,_,h,b)}function eI(l,_,h){return l=iy(16,l,_,h),Ff(16,l,_,h)}function $S(l,_,h){return l=iy(16,l,_,h),Ff(17,l,_,h)}function kb(l,_,h){return l=iy(16,l,_,h),Ff(18,l,_,h)}function CR(l,_,h){return l=iy(16,l,_,h),Nf(15,l,_,h)}function Cb(l,_){pe.assert(!l||!!_,"A `YieldExpression` with an asteriskToken must have an expression.");let h=E(230);return h.expression=_&&n().parenthesizeExpressionForDisallowedComma(_),h.asteriskToken=l,h.transformFlags|=fe(h.expression)|fe(h.asteriskToken)|1024|128|1048576,h}function PR(l,_,h){return l.expression!==h||l.asteriskToken!==_?se(Cb(_,h),l):l}function tI(l){let _=E(231);return _.expression=n().parenthesizeExpressionForDisallowedComma(l),_.transformFlags|=fe(_.expression)|1024|32768,_}function OR(l,_){return l.expression!==_?se(tI(_),l):l}function rI(l,_,h,b,k){let j=C(232);return j.modifiers=Kt(l),j.name=Dn(_),j.typeParameters=Kt(h),j.heritageClauses=Kt(b),j.members=I(k),j.transformFlags|=Pt(j.modifiers)|Uc(j.name)|Pt(j.typeParameters)|Pt(j.heritageClauses)|Pt(j.members)|(j.typeParameters?1:0)|1024,j.jsDoc=void 0,j}function Pb(l,_,h,b,k,j){return l.modifiers!==_||l.name!==h||l.typeParameters!==b||l.heritageClauses!==k||l.members!==j?se(rI(_,h,b,k,j),l):l}function Ob(){return E(233)}function nI(l,_){let h=E(234);return h.expression=n().parenthesizeLeftSideOfAccess(l,!1),h.typeArguments=_&&n().parenthesizeTypeArguments(_),h.transformFlags|=fe(h.expression)|Pt(h.typeArguments)|1024,h}function oI(l,_,h){return l.expression!==_||l.typeArguments!==h?se(nI(_,h),l):l}function ys(l,_){let h=E(235);return h.expression=l,h.type=_,h.transformFlags|=fe(h.expression)|fe(h.type)|1,h}function MS(l,_,h){return l.expression!==_||l.type!==h?se(ys(_,h),l):l}function iI(l){let _=E(236);return _.expression=n().parenthesizeLeftSideOfAccess(l,!1),_.transformFlags|=fe(_.expression)|1,_}function aI(l,_){return ctt(l)?bc(l,_):l.expression!==_?se(iI(_),l):l}function Nb(l,_){let h=E(239);return h.expression=l,h.type=_,h.transformFlags|=fe(h.expression)|fe(h.type)|1,h}function sI(l,_,h){return l.expression!==_||l.type!==h?se(Nb(_,h),l):l}function Fb(l){let _=E(236);return _.flags|=64,_.expression=n().parenthesizeLeftSideOfAccess(l,!0),_.transformFlags|=fe(_.expression)|1,_}function bc(l,_){return pe.assert(!!(l.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),l.expression!==_?se(Fb(_),l):l}function cI(l,_){let h=E(237);switch(h.keywordToken=l,h.name=_,h.transformFlags|=fe(h.name),l){case 105:h.transformFlags|=1024;break;case 102:h.transformFlags|=32;break;default:return pe.assertNever(l)}return h.flowNode=void 0,h}function Rb(l,_){return l.name!==_?se(cI(l.keywordToken,_),l):l}function ul(l,_){let h=E(240);return h.expression=l,h.literal=_,h.transformFlags|=fe(h.expression)|fe(h.literal)|1024,h}function jS(l,_,h){return l.expression!==_||l.literal!==h?se(ul(_,h),l):l}function lI(){let l=E(241);return l.transformFlags|=1024,l}function zd(l,_){let h=E(242);return h.statements=I(l),h.multiLine=_,h.transformFlags|=Pt(h.statements),h.jsDoc=void 0,h.locals=void 0,h.nextContainer=void 0,h}function NR(l,_){return l.statements!==_?se(zd(_,l.multiLine),l):l}function Lb(l,_){let h=E(244);return h.modifiers=Kt(l),h.declarationList=ef(_)?Ub(_):_,h.transformFlags|=Pt(h.modifiers)|fe(h.declarationList),zc(h.modifiers)&128&&(h.transformFlags=1),h.jsDoc=void 0,h.flowNode=void 0,h}function uI(l,_,h){return l.modifiers!==_||l.declarationList!==h?se(Lb(_,h),l):l}function pI(){let l=E(243);return l.jsDoc=void 0,l}function ay(l){let _=E(245);return _.expression=n().parenthesizeExpressionOfExpressionStatement(l),_.transformFlags|=fe(_.expression),_.jsDoc=void 0,_.flowNode=void 0,_}function dI(l,_){return l.expression!==_?se(ay(_),l):l}function _I(l,_,h){let b=E(246);return b.expression=l,b.thenStatement=pl(_),b.elseStatement=pl(h),b.transformFlags|=fe(b.expression)|fe(b.thenStatement)|fe(b.elseStatement),b.jsDoc=void 0,b.flowNode=void 0,b}function fI(l,_,h,b){return l.expression!==_||l.thenStatement!==h||l.elseStatement!==b?se(_I(_,h,b),l):l}function mI(l,_){let h=E(247);return h.statement=pl(l),h.expression=_,h.transformFlags|=fe(h.statement)|fe(h.expression),h.jsDoc=void 0,h.flowNode=void 0,h}function hI(l,_,h){return l.statement!==_||l.expression!==h?se(mI(_,h),l):l}function yI(l,_){let h=E(248);return h.expression=l,h.statement=pl(_),h.transformFlags|=fe(h.expression)|fe(h.statement),h.jsDoc=void 0,h.flowNode=void 0,h}function FR(l,_,h){return l.expression!==_||l.statement!==h?se(yI(_,h),l):l}function gI(l,_,h,b){let k=E(249);return k.initializer=l,k.condition=_,k.incrementor=h,k.statement=pl(b),k.transformFlags|=fe(k.initializer)|fe(k.condition)|fe(k.incrementor)|fe(k.statement),k.jsDoc=void 0,k.locals=void 0,k.nextContainer=void 0,k.flowNode=void 0,k}function SI(l,_,h,b,k){return l.initializer!==_||l.condition!==h||l.incrementor!==b||l.statement!==k?se(gI(_,h,b,k),l):l}function $b(l,_,h){let b=E(250);return b.initializer=l,b.expression=_,b.statement=pl(h),b.transformFlags|=fe(b.initializer)|fe(b.expression)|fe(b.statement),b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b.flowNode=void 0,b}function RR(l,_,h,b){return l.initializer!==_||l.expression!==h||l.statement!==b?se($b(_,h,b),l):l}function vI(l,_,h,b){let k=E(251);return k.awaitModifier=l,k.initializer=_,k.expression=n().parenthesizeExpressionForDisallowedComma(h),k.statement=pl(b),k.transformFlags|=fe(k.awaitModifier)|fe(k.initializer)|fe(k.expression)|fe(k.statement)|1024,l&&(k.transformFlags|=128),k.jsDoc=void 0,k.locals=void 0,k.nextContainer=void 0,k.flowNode=void 0,k}function LR(l,_,h,b,k){return l.awaitModifier!==_||l.initializer!==h||l.expression!==b||l.statement!==k?se(vI(_,h,b,k),l):l}function bI(l){let _=E(252);return _.label=Dn(l),_.transformFlags|=fe(_.label)|4194304,_.jsDoc=void 0,_.flowNode=void 0,_}function $R(l,_){return l.label!==_?se(bI(_),l):l}function Mb(l){let _=E(253);return _.label=Dn(l),_.transformFlags|=fe(_.label)|4194304,_.jsDoc=void 0,_.flowNode=void 0,_}function xI(l,_){return l.label!==_?se(Mb(_),l):l}function jb(l){let _=E(254);return _.expression=l,_.transformFlags|=fe(_.expression)|128|4194304,_.jsDoc=void 0,_.flowNode=void 0,_}function MR(l,_){return l.expression!==_?se(jb(_),l):l}function Bb(l,_){let h=E(255);return h.expression=l,h.statement=pl(_),h.transformFlags|=fe(h.expression)|fe(h.statement),h.jsDoc=void 0,h.flowNode=void 0,h}function EI(l,_,h){return l.expression!==_||l.statement!==h?se(Bb(_,h),l):l}function qb(l,_){let h=E(256);return h.expression=n().parenthesizeExpressionForDisallowedComma(l),h.caseBlock=_,h.transformFlags|=fe(h.expression)|fe(h.caseBlock),h.jsDoc=void 0,h.flowNode=void 0,h.possiblyExhaustive=!1,h}function Rf(l,_,h){return l.expression!==_||l.caseBlock!==h?se(qb(_,h),l):l}function TI(l,_){let h=E(257);return h.label=Dn(l),h.statement=pl(_),h.transformFlags|=fe(h.label)|fe(h.statement),h.jsDoc=void 0,h.flowNode=void 0,h}function DI(l,_,h){return l.label!==_||l.statement!==h?se(TI(_,h),l):l}function AI(l){let _=E(258);return _.expression=l,_.transformFlags|=fe(_.expression),_.jsDoc=void 0,_.flowNode=void 0,_}function jR(l,_){return l.expression!==_?se(AI(_),l):l}function wI(l,_,h){let b=E(259);return b.tryBlock=l,b.catchClause=_,b.finallyBlock=h,b.transformFlags|=fe(b.tryBlock)|fe(b.catchClause)|fe(b.finallyBlock),b.jsDoc=void 0,b.flowNode=void 0,b}function BR(l,_,h,b){return l.tryBlock!==_||l.catchClause!==h||l.finallyBlock!==b?se(wI(_,h,b),l):l}function II(){let l=E(260);return l.jsDoc=void 0,l.flowNode=void 0,l}function BS(l,_,h,b){let k=C(261);return k.name=Dn(l),k.exclamationToken=_,k.type=h,k.initializer=gy(b),k.transformFlags|=Uc(k.name)|fe(k.initializer)|(k.exclamationToken??k.type?1:0),k.jsDoc=void 0,k}function kI(l,_,h,b,k){return l.name!==_||l.type!==b||l.exclamationToken!==h||l.initializer!==k?se(BS(_,h,b,k),l):l}function Ub(l,_=0){let h=E(262);return h.flags|=_&7,h.declarations=I(l),h.transformFlags|=Pt(h.declarations)|4194304,_&7&&(h.transformFlags|=263168),_&4&&(h.transformFlags|=4),h}function qR(l,_){return l.declarations!==_?se(Ub(_,l.flags),l):l}function CI(l,_,h,b,k,j,_e){let Qe=C(263);if(Qe.modifiers=Kt(l),Qe.asteriskToken=_,Qe.name=Dn(h),Qe.typeParameters=Kt(b),Qe.parameters=I(k),Qe.type=j,Qe.body=_e,!Qe.body||zc(Qe.modifiers)&128)Qe.transformFlags=1;else{let xr=zc(Qe.modifiers)&1024,wi=!!Qe.asteriskToken,pu=xr&&wi;Qe.transformFlags=Pt(Qe.modifiers)|fe(Qe.asteriskToken)|Uc(Qe.name)|Pt(Qe.typeParameters)|Pt(Qe.parameters)|fe(Qe.type)|fe(Qe.body)&-67108865|(pu?128:xr?256:wi?2048:0)|(Qe.typeParameters||Qe.type?1:0)|4194304}return Qe.typeArguments=void 0,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.endFlowNode=void 0,Qe.returnFlowNode=void 0,Qe}function zb(l,_,h,b,k,j,_e,Qe){return l.modifiers!==_||l.asteriskToken!==h||l.name!==b||l.typeParameters!==k||l.parameters!==j||l.type!==_e||l.body!==Qe?UR(CI(_,h,b,k,j,_e,Qe),l):l}function UR(l,_){return l!==_&&l.modifiers===_.modifiers&&(l.modifiers=_.modifiers),F(l,_)}function PI(l,_,h,b,k){let j=C(264);return j.modifiers=Kt(l),j.name=Dn(_),j.typeParameters=Kt(h),j.heritageClauses=Kt(b),j.members=I(k),zc(j.modifiers)&128?j.transformFlags=1:(j.transformFlags|=Pt(j.modifiers)|Uc(j.name)|Pt(j.typeParameters)|Pt(j.heritageClauses)|Pt(j.members)|(j.typeParameters?1:0)|1024,j.transformFlags&8192&&(j.transformFlags|=1)),j.jsDoc=void 0,j}function qS(l,_,h,b,k,j){return l.modifiers!==_||l.name!==h||l.typeParameters!==b||l.heritageClauses!==k||l.members!==j?se(PI(_,h,b,k,j),l):l}function OI(l,_,h,b,k){let j=C(265);return j.modifiers=Kt(l),j.name=Dn(_),j.typeParameters=Kt(h),j.heritageClauses=Kt(b),j.members=I(k),j.transformFlags=1,j.jsDoc=void 0,j}function NI(l,_,h,b,k,j){return l.modifiers!==_||l.name!==h||l.typeParameters!==b||l.heritageClauses!==k||l.members!==j?se(OI(_,h,b,k,j),l):l}function no(l,_,h,b){let k=C(266);return k.modifiers=Kt(l),k.name=Dn(_),k.typeParameters=Kt(h),k.type=b,k.transformFlags=1,k.jsDoc=void 0,k.locals=void 0,k.nextContainer=void 0,k}function pp(l,_,h,b,k){return l.modifiers!==_||l.name!==h||l.typeParameters!==b||l.type!==k?se(no(_,h,b,k),l):l}function Vb(l,_,h){let b=C(267);return b.modifiers=Kt(l),b.name=Dn(_),b.members=I(h),b.transformFlags|=Pt(b.modifiers)|fe(b.name)|Pt(b.members)|1,b.transformFlags&=-67108865,b.jsDoc=void 0,b}function dp(l,_,h,b){return l.modifiers!==_||l.name!==h||l.members!==b?se(Vb(_,h,b),l):l}function FI(l,_,h,b=0){let k=C(268);return k.modifiers=Kt(l),k.flags|=b&2088,k.name=_,k.body=h,zc(k.modifiers)&128?k.transformFlags=1:k.transformFlags|=Pt(k.modifiers)|fe(k.name)|fe(k.body)|1,k.transformFlags&=-67108865,k.jsDoc=void 0,k.locals=void 0,k.nextContainer=void 0,k}function ti(l,_,h,b){return l.modifiers!==_||l.name!==h||l.body!==b?se(FI(_,h,b,l.flags),l):l}function _p(l){let _=E(269);return _.statements=I(l),_.transformFlags|=Pt(_.statements),_.jsDoc=void 0,_}function Hi(l,_){return l.statements!==_?se(_p(_),l):l}function RI(l){let _=E(270);return _.clauses=I(l),_.transformFlags|=Pt(_.clauses),_.locals=void 0,_.nextContainer=void 0,_}function zR(l,_){return l.clauses!==_?se(RI(_),l):l}function LI(l){let _=C(271);return _.name=Dn(l),_.transformFlags|=c1(_.name)|1,_.modifiers=void 0,_.jsDoc=void 0,_}function $I(l,_){return l.name!==_?VR(LI(_),l):l}function VR(l,_){return l!==_&&(l.modifiers=_.modifiers),se(l,_)}function MI(l,_,h,b){let k=C(272);return k.modifiers=Kt(l),k.name=Dn(h),k.isTypeOnly=_,k.moduleReference=b,k.transformFlags|=Pt(k.modifiers)|c1(k.name)|fe(k.moduleReference),dye(k.moduleReference)||(k.transformFlags|=1),k.transformFlags&=-67108865,k.jsDoc=void 0,k}function jI(l,_,h,b,k){return l.modifiers!==_||l.isTypeOnly!==h||l.name!==b||l.moduleReference!==k?se(MI(_,h,b,k),l):l}function BI(l,_,h,b){let k=E(273);return k.modifiers=Kt(l),k.importClause=_,k.moduleSpecifier=h,k.attributes=k.assertClause=b,k.transformFlags|=fe(k.importClause)|fe(k.moduleSpecifier),k.transformFlags&=-67108865,k.jsDoc=void 0,k}function qI(l,_,h,b,k){return l.modifiers!==_||l.importClause!==h||l.moduleSpecifier!==b||l.attributes!==k?se(BI(_,h,b,k),l):l}function UI(l,_,h){let b=C(274);return typeof l=="boolean"&&(l=l?156:void 0),b.isTypeOnly=l===156,b.phaseModifier=l,b.name=_,b.namedBindings=h,b.transformFlags|=fe(b.name)|fe(b.namedBindings),l===156&&(b.transformFlags|=1),b.transformFlags&=-67108865,b}function zI(l,_,h,b){return typeof _=="boolean"&&(_=_?156:void 0),l.phaseModifier!==_||l.name!==h||l.namedBindings!==b?se(UI(_,h,b),l):l}function Jb(l,_){let h=E(301);return h.elements=I(l),h.multiLine=_,h.token=132,h.transformFlags|=4,h}function JR(l,_,h){return l.elements!==_||l.multiLine!==h?se(Jb(_,h),l):l}function sy(l,_){let h=E(302);return h.name=l,h.value=_,h.transformFlags|=4,h}function VI(l,_,h){return l.name!==_||l.value!==h?se(sy(_,h),l):l}function Kb(l,_){let h=E(303);return h.assertClause=l,h.multiLine=_,h}function JI(l,_,h){return l.assertClause!==_||l.multiLine!==h?se(Kb(_,h),l):l}function KI(l,_,h){let b=E(301);return b.token=h??118,b.elements=I(l),b.multiLine=_,b.transformFlags|=4,b}function Gb(l,_,h){return l.elements!==_||l.multiLine!==h?se(KI(_,h,l.token),l):l}function GI(l,_){let h=E(302);return h.name=l,h.value=_,h.transformFlags|=4,h}function HI(l,_,h){return l.name!==_||l.value!==h?se(GI(_,h),l):l}function ZI(l){let _=C(275);return _.name=l,_.transformFlags|=fe(_.name),_.transformFlags&=-67108865,_}function KR(l,_){return l.name!==_?se(ZI(_),l):l}function WI(l){let _=C(281);return _.name=l,_.transformFlags|=fe(_.name)|32,_.transformFlags&=-67108865,_}function GR(l,_){return l.name!==_?se(WI(_),l):l}function QI(l){let _=E(276);return _.elements=I(l),_.transformFlags|=Pt(_.elements),_.transformFlags&=-67108865,_}function XI(l,_){return l.elements!==_?se(QI(_),l):l}function fp(l,_,h){let b=C(277);return b.isTypeOnly=l,b.propertyName=_,b.name=h,b.transformFlags|=fe(b.propertyName)|fe(b.name),b.transformFlags&=-67108865,b}function HR(l,_,h,b){return l.isTypeOnly!==_||l.propertyName!==h||l.name!==b?se(fp(_,h,b),l):l}function US(l,_,h){let b=C(278);return b.modifiers=Kt(l),b.isExportEquals=_,b.expression=_?n().parenthesizeRightSideOfBinary(64,void 0,h):n().parenthesizeExpressionOfExportDefault(h),b.transformFlags|=Pt(b.modifiers)|fe(b.expression),b.transformFlags&=-67108865,b.jsDoc=void 0,b}function cy(l,_,h){return l.modifiers!==_||l.expression!==h?se(US(_,l.isExportEquals,h),l):l}function zS(l,_,h,b,k){let j=C(279);return j.modifiers=Kt(l),j.isTypeOnly=_,j.exportClause=h,j.moduleSpecifier=b,j.attributes=j.assertClause=k,j.transformFlags|=Pt(j.modifiers)|fe(j.exportClause)|fe(j.moduleSpecifier),j.transformFlags&=-67108865,j.jsDoc=void 0,j}function YI(l,_,h,b,k,j){return l.modifiers!==_||l.isTypeOnly!==h||l.exportClause!==b||l.moduleSpecifier!==k||l.attributes!==j?ly(zS(_,h,b,k,j),l):l}function ly(l,_){return l!==_&&l.modifiers===_.modifiers&&(l.modifiers=_.modifiers),se(l,_)}function Hb(l){let _=E(280);return _.elements=I(l),_.transformFlags|=Pt(_.elements),_.transformFlags&=-67108865,_}function ZR(l,_){return l.elements!==_?se(Hb(_),l):l}function VS(l,_,h){let b=E(282);return b.isTypeOnly=l,b.propertyName=Dn(_),b.name=Dn(h),b.transformFlags|=fe(b.propertyName)|fe(b.name),b.transformFlags&=-67108865,b.jsDoc=void 0,b}function WR(l,_,h,b){return l.isTypeOnly!==_||l.propertyName!==h||l.name!==b?se(VS(_,h,b),l):l}function QR(){let l=C(283);return l.jsDoc=void 0,l}function Zb(l){let _=E(284);return _.expression=l,_.transformFlags|=fe(_.expression),_.transformFlags&=-67108865,_}function XR(l,_){return l.expression!==_?se(Zb(_),l):l}function ek(l){return E(l)}function tk(l,_,h=!1){let b=Wb(l,h?_&&n().parenthesizeNonArrayTypeOfPostfixType(_):_);return b.postfix=h,b}function Wb(l,_){let h=E(l);return h.type=_,h}function YR(l,_,h){return _.type!==h?se(tk(l,h,_.postfix),_):_}function e8(l,_,h){return _.type!==h?se(Wb(l,h),_):_}function rk(l,_){let h=C(318);return h.parameters=Kt(l),h.type=_,h.transformFlags=Pt(h.parameters)|(h.type?1:0),h.jsDoc=void 0,h.locals=void 0,h.nextContainer=void 0,h.typeArguments=void 0,h}function t8(l,_,h){return l.parameters!==_||l.type!==h?se(rk(_,h),l):l}function nk(l,_=!1){let h=C(323);return h.jsDocPropertyTags=Kt(l),h.isArrayType=_,h}function r8(l,_,h){return l.jsDocPropertyTags!==_||l.isArrayType!==h?se(nk(_,h),l):l}function ok(l){let _=E(310);return _.type=l,_}function Qb(l,_){return l.type!==_?se(ok(_),l):l}function ik(l,_,h){let b=C(324);return b.typeParameters=Kt(l),b.parameters=I(_),b.type=h,b.jsDoc=void 0,b.locals=void 0,b.nextContainer=void 0,b}function n8(l,_,h,b){return l.typeParameters!==_||l.parameters!==h||l.type!==b?se(ik(_,h,b),l):l}function Za(l){let _=nO(l.kind);return l.tagName.escapedText===a1(_)?l.tagName:xe(_)}function Us(l,_,h){let b=E(l);return b.tagName=_,b.comment=h,b}function Vd(l,_,h){let b=C(l);return b.tagName=_,b.comment=h,b}function Xb(l,_,h,b){let k=Us(346,l??xe("template"),b);return k.constraint=_,k.typeParameters=I(h),k}function ak(l,_=Za(l),h,b,k){return l.tagName!==_||l.constraint!==h||l.typeParameters!==b||l.comment!==k?se(Xb(_,h,b,k),l):l}function JS(l,_,h,b){let k=Vd(347,l??xe("typedef"),b);return k.typeExpression=_,k.fullName=h,k.name=sme(h),k.locals=void 0,k.nextContainer=void 0,k}function o8(l,_=Za(l),h,b,k){return l.tagName!==_||l.typeExpression!==h||l.fullName!==b||l.comment!==k?se(JS(_,h,b,k),l):l}function Yb(l,_,h,b,k,j){let _e=Vd(342,l??xe("param"),j);return _e.typeExpression=b,_e.name=_,_e.isNameFirst=!!k,_e.isBracketed=h,_e}function i8(l,_=Za(l),h,b,k,j,_e){return l.tagName!==_||l.name!==h||l.isBracketed!==b||l.typeExpression!==k||l.isNameFirst!==j||l.comment!==_e?se(Yb(_,h,b,k,j,_e),l):l}function sk(l,_,h,b,k,j){let _e=Vd(349,l??xe("prop"),j);return _e.typeExpression=b,_e.name=_,_e.isNameFirst=!!k,_e.isBracketed=h,_e}function ck(l,_=Za(l),h,b,k,j,_e){return l.tagName!==_||l.name!==h||l.isBracketed!==b||l.typeExpression!==k||l.isNameFirst!==j||l.comment!==_e?se(sk(_,h,b,k,j,_e),l):l}function lk(l,_,h,b){let k=Vd(339,l??xe("callback"),b);return k.typeExpression=_,k.fullName=h,k.name=sme(h),k.locals=void 0,k.nextContainer=void 0,k}function uk(l,_=Za(l),h,b,k){return l.tagName!==_||l.typeExpression!==h||l.fullName!==b||l.comment!==k?se(lk(_,h,b,k),l):l}function pk(l,_,h){let b=Us(340,l??xe("overload"),h);return b.typeExpression=_,b}function ex(l,_=Za(l),h,b){return l.tagName!==_||l.typeExpression!==h||l.comment!==b?se(pk(_,h,b),l):l}function tx(l,_,h){let b=Us(329,l??xe("augments"),h);return b.class=_,b}function uy(l,_=Za(l),h,b){return l.tagName!==_||l.class!==h||l.comment!==b?se(tx(_,h,b),l):l}function dk(l,_,h){let b=Us(330,l??xe("implements"),h);return b.class=_,b}function Jd(l,_,h){let b=Us(348,l??xe("see"),h);return b.name=_,b}function KS(l,_,h,b){return l.tagName!==_||l.name!==h||l.comment!==b?se(Jd(_,h,b),l):l}function _k(l){let _=E(311);return _.name=l,_}function a8(l,_){return l.name!==_?se(_k(_),l):l}function fk(l,_){let h=E(312);return h.left=l,h.right=_,h.transformFlags|=fe(h.left)|fe(h.right),h}function s8(l,_,h){return l.left!==_||l.right!==h?se(fk(_,h),l):l}function mk(l,_){let h=E(325);return h.name=l,h.text=_,h}function hk(l,_,h){return l.name!==_?se(mk(_,h),l):l}function yk(l,_){let h=E(326);return h.name=l,h.text=_,h}function c8(l,_,h){return l.name!==_?se(yk(_,h),l):l}function gk(l,_){let h=E(327);return h.name=l,h.text=_,h}function l8(l,_,h){return l.name!==_?se(gk(_,h),l):l}function u8(l,_=Za(l),h,b){return l.tagName!==_||l.class!==h||l.comment!==b?se(dk(_,h,b),l):l}function Sk(l,_,h){return Us(l,_??xe(nO(l)),h)}function p8(l,_,h=Za(_),b){return _.tagName!==h||_.comment!==b?se(Sk(l,h,b),_):_}function vk(l,_,h,b){let k=Us(l,_??xe(nO(l)),b);return k.typeExpression=h,k}function d8(l,_,h=Za(_),b,k){return _.tagName!==h||_.typeExpression!==b||_.comment!==k?se(vk(l,h,b,k),_):_}function bk(l,_){return Us(328,l,_)}function _8(l,_,h){return l.tagName!==_||l.comment!==h?se(bk(_,h),l):l}function xk(l,_,h){let b=Vd(341,l??xe(nO(341)),h);return b.typeExpression=_,b.locals=void 0,b.nextContainer=void 0,b}function rx(l,_=Za(l),h,b){return l.tagName!==_||l.typeExpression!==h||l.comment!==b?se(xk(_,h,b),l):l}function Ek(l,_,h,b,k){let j=Us(352,l??xe("import"),k);return j.importClause=_,j.moduleSpecifier=h,j.attributes=b,j.comment=k,j}function Tk(l,_,h,b,k,j){return l.tagName!==_||l.comment!==j||l.importClause!==h||l.moduleSpecifier!==b||l.attributes!==k?se(Ek(_,h,b,k,j),l):l}function nx(l){let _=E(322);return _.text=l,_}function f8(l,_){return l.text!==_?se(nx(_),l):l}function py(l,_){let h=E(321);return h.comment=l,h.tags=Kt(_),h}function Dk(l,_,h){return l.comment!==_||l.tags!==h?se(py(_,h),l):l}function Ak(l,_,h){let b=E(285);return b.openingElement=l,b.children=I(_),b.closingElement=h,b.transformFlags|=fe(b.openingElement)|Pt(b.children)|fe(b.closingElement)|2,b}function m8(l,_,h,b){return l.openingElement!==_||l.children!==h||l.closingElement!==b?se(Ak(_,h,b),l):l}function wk(l,_,h){let b=E(286);return b.tagName=l,b.typeArguments=Kt(_),b.attributes=h,b.transformFlags|=fe(b.tagName)|Pt(b.typeArguments)|fe(b.attributes)|2,b.typeArguments&&(b.transformFlags|=1),b}function h8(l,_,h,b){return l.tagName!==_||l.typeArguments!==h||l.attributes!==b?se(wk(_,h,b),l):l}function GS(l,_,h){let b=E(287);return b.tagName=l,b.typeArguments=Kt(_),b.attributes=h,b.transformFlags|=fe(b.tagName)|Pt(b.typeArguments)|fe(b.attributes)|2,_&&(b.transformFlags|=1),b}function Ik(l,_,h,b){return l.tagName!==_||l.typeArguments!==h||l.attributes!==b?se(GS(_,h,b),l):l}function ox(l){let _=E(288);return _.tagName=l,_.transformFlags|=fe(_.tagName)|2,_}function ix(l,_){return l.tagName!==_?se(ox(_),l):l}function pa(l,_,h){let b=E(289);return b.openingFragment=l,b.children=I(_),b.closingFragment=h,b.transformFlags|=fe(b.openingFragment)|Pt(b.children)|fe(b.closingFragment)|2,b}function kk(l,_,h,b){return l.openingFragment!==_||l.children!==h||l.closingFragment!==b?se(pa(_,h,b),l):l}function dy(l,_){let h=E(12);return h.text=l,h.containsOnlyTriviaWhiteSpaces=!!_,h.transformFlags|=2,h}function y8(l,_,h){return l.text!==_||l.containsOnlyTriviaWhiteSpaces!==h?se(dy(_,h),l):l}function Ck(){let l=E(290);return l.transformFlags|=2,l}function Pk(){let l=E(291);return l.transformFlags|=2,l}function Ok(l,_){let h=C(292);return h.name=l,h.initializer=_,h.transformFlags|=fe(h.name)|fe(h.initializer)|2,h}function g8(l,_,h){return l.name!==_||l.initializer!==h?se(Ok(_,h),l):l}function _y(l){let _=C(293);return _.properties=I(l),_.transformFlags|=Pt(_.properties)|2,_}function S8(l,_){return l.properties!==_?se(_y(_),l):l}function Nk(l){let _=E(294);return _.expression=l,_.transformFlags|=fe(_.expression)|2,_}function v8(l,_){return l.expression!==_?se(Nk(_),l):l}function Fk(l,_){let h=E(295);return h.dotDotDotToken=l,h.expression=_,h.transformFlags|=fe(h.dotDotDotToken)|fe(h.expression)|2,h}function ax(l,_){return l.expression!==_?se(Fk(l.dotDotDotToken,_),l):l}function Lf(l,_){let h=E(296);return h.namespace=l,h.name=_,h.transformFlags|=fe(h.namespace)|fe(h.name)|2,h}function b8(l,_,h){return l.namespace!==_||l.name!==h?se(Lf(_,h),l):l}function HS(l,_){let h=E(297);return h.expression=n().parenthesizeExpressionForDisallowedComma(l),h.statements=I(_),h.transformFlags|=fe(h.expression)|Pt(h.statements),h.jsDoc=void 0,h}function Rk(l,_,h){return l.expression!==_||l.statements!==h?se(HS(_,h),l):l}function Lk(l){let _=E(298);return _.statements=I(l),_.transformFlags=Pt(_.statements),_}function fy(l,_){return l.statements!==_?se(Lk(_),l):l}function sx(l,_){let h=E(299);switch(h.token=l,h.types=I(_),h.transformFlags|=Pt(h.types),l){case 96:h.transformFlags|=1024;break;case 119:h.transformFlags|=1;break;default:return pe.assertNever(l)}return h}function x8(l,_){return l.types!==_?se(sx(l.token,_),l):l}function $k(l,_){let h=E(300);return h.variableDeclaration=zs(l),h.block=_,h.transformFlags|=fe(h.variableDeclaration)|fe(h.block)|(l?0:64),h.locals=void 0,h.nextContainer=void 0,h}function Mk(l,_,h){return l.variableDeclaration!==_||l.block!==h?se($k(_,h),l):l}function ZS(l,_){let h=C(304);return h.name=Dn(l),h.initializer=n().parenthesizeExpressionForDisallowedComma(_),h.transformFlags|=Uc(h.name)|fe(h.initializer),h.modifiers=void 0,h.questionToken=void 0,h.exclamationToken=void 0,h.jsDoc=void 0,h}function cx(l,_,h){return l.name!==_||l.initializer!==h?$f(ZS(_,h),l):l}function $f(l,_){return l!==_&&(l.modifiers=_.modifiers,l.questionToken=_.questionToken,l.exclamationToken=_.exclamationToken),se(l,_)}function jk(l,_){let h=C(305);return h.name=Dn(l),h.objectAssignmentInitializer=_&&n().parenthesizeExpressionForDisallowedComma(_),h.transformFlags|=c1(h.name)|fe(h.objectAssignmentInitializer)|1024,h.equalsToken=void 0,h.modifiers=void 0,h.questionToken=void 0,h.exclamationToken=void 0,h.jsDoc=void 0,h}function E8(l,_,h){return l.name!==_||l.objectAssignmentInitializer!==h?T8(jk(_,h),l):l}function T8(l,_){return l!==_&&(l.modifiers=_.modifiers,l.questionToken=_.questionToken,l.exclamationToken=_.exclamationToken,l.equalsToken=_.equalsToken),se(l,_)}function Bk(l){let _=C(306);return _.expression=n().parenthesizeExpressionForDisallowedComma(l),_.transformFlags|=fe(_.expression)|128|65536,_.jsDoc=void 0,_}function qk(l,_){return l.expression!==_?se(Bk(_),l):l}function lx(l,_){let h=C(307);return h.name=Dn(l),h.initializer=_&&n().parenthesizeExpressionForDisallowedComma(_),h.transformFlags|=fe(h.name)|fe(h.initializer)|1,h.jsDoc=void 0,h}function xc(l,_,h){return l.name!==_||l.initializer!==h?se(lx(_,h),l):l}function Uk(l,_,h){let b=t.createBaseSourceFileNode(308);return b.statements=I(l),b.endOfFileToken=_,b.flags|=h,b.text="",b.fileName="",b.path="",b.resolvedPath="",b.originalFileName="",b.languageVersion=1,b.languageVariant=0,b.scriptKind=0,b.isDeclarationFile=!1,b.hasNoDefaultLib=!1,b.transformFlags|=Pt(b.statements)|fe(b.endOfFileToken),b.locals=void 0,b.nextContainer=void 0,b.endFlowNode=void 0,b.nodeCount=0,b.identifierCount=0,b.symbolCount=0,b.parseDiagnostics=void 0,b.bindDiagnostics=void 0,b.bindSuggestionDiagnostics=void 0,b.lineMap=void 0,b.externalModuleIndicator=void 0,b.setExternalModuleIndicator=void 0,b.pragmas=void 0,b.checkJsDirective=void 0,b.referencedFiles=void 0,b.typeReferenceDirectives=void 0,b.libReferenceDirectives=void 0,b.amdDependencies=void 0,b.commentDirectives=void 0,b.identifiers=void 0,b.packageJsonLocations=void 0,b.packageJsonScope=void 0,b.imports=void 0,b.moduleAugmentations=void 0,b.ambientModuleNames=void 0,b.classifiableNames=void 0,b.impliedNodeFormat=void 0,b}function zk(l){let _=Object.create(l.redirectTarget);return Object.defineProperties(_,{id:{get(){return this.redirectInfo.redirectTarget.id},set(h){this.redirectInfo.redirectTarget.id=h}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(h){this.redirectInfo.redirectTarget.symbol=h}}}),_.redirectInfo=l,_}function D8(l){let _=zk(l.redirectInfo);return _.flags|=l.flags&-17,_.fileName=l.fileName,_.path=l.path,_.resolvedPath=l.resolvedPath,_.originalFileName=l.originalFileName,_.packageJsonLocations=l.packageJsonLocations,_.packageJsonScope=l.packageJsonScope,_.emitNode=void 0,_}function A8(l){let _=t.createBaseSourceFileNode(308);_.flags|=l.flags&-17;for(let h in l)if(!(_d(_,h)||!_d(l,h))){if(h==="emitNode"){_.emitNode=void 0;continue}_[h]=l[h]}return _}function ux(l){let _=l.redirectInfo?D8(l):A8(l);return r(_,l),_}function px(l,_,h,b,k,j,_e){let Qe=ux(l);return Qe.statements=I(_),Qe.isDeclarationFile=h,Qe.referencedFiles=b,Qe.typeReferenceDirectives=k,Qe.hasNoDefaultLib=j,Qe.libReferenceDirectives=_e,Qe.transformFlags=Pt(Qe.statements)|fe(Qe.endOfFileToken),Qe}function w8(l,_,h=l.isDeclarationFile,b=l.referencedFiles,k=l.typeReferenceDirectives,j=l.hasNoDefaultLib,_e=l.libReferenceDirectives){return l.statements!==_||l.isDeclarationFile!==h||l.referencedFiles!==b||l.typeReferenceDirectives!==k||l.hasNoDefaultLib!==j||l.libReferenceDirectives!==_e?se(px(l,_,h,b,k,j,_e),l):l}function Vk(l){let _=E(309);return _.sourceFiles=l,_.syntheticFileReferences=void 0,_.syntheticTypeReferences=void 0,_.syntheticLibReferences=void 0,_.hasNoDefaultLib=void 0,_}function Jk(l,_){return l.sourceFiles!==_?se(Vk(_),l):l}function I8(l,_=!1,h){let b=E(238);return b.type=l,b.isSpread=_,b.tupleNameSource=h,b}function k8(l){let _=E(353);return _._children=l,_}function WS(l){let _=E(354);return _.original=l,Fs(_,l),_}function dx(l,_){let h=E(356);return h.expression=l,h.original=_,h.transformFlags|=fe(h.expression)|1,Fs(h,_),h}function Kk(l,_){return l.expression!==_?se(dx(_,l.original),l):l}function C8(){return E(355)}function P8(l){if(s1(l)&&!mO(l)&&!l.original&&!l.emitNode&&!l.id){if(Xnt(l))return l.elements;if(v1(l)&&hnt(l.operatorToken))return[l.left,l.right]}return l}function _x(l){let _=E(357);return _.elements=I(wYe(l,P8)),_.transformFlags|=Pt(_.elements),_}function O8(l,_){return l.elements!==_?se(_x(_),l):l}function fx(l,_){let h=E(358);return h.expression=l,h.thisArg=_,h.transformFlags|=fe(h.expression)|fe(h.thisArg),h}function Gk(l,_,h){return l.expression!==_||l.thisArg!==h?se(fx(_,h),l):l}function Hk(l){let _=Ve(l.escapedText);return _.flags|=l.flags&-17,_.transformFlags=l.transformFlags,r(_,l),setIdentifierAutoGenerate(_,{...l.emitNode.autoGenerate}),_}function N8(l){let _=Ve(l.escapedText);_.flags|=l.flags&-17,_.jsDoc=l.jsDoc,_.flowNode=l.flowNode,_.symbol=l.symbol,_.transformFlags=l.transformFlags,r(_,l);let h=getIdentifierTypeArguments(l);return h&&setIdentifierTypeArguments(_,h),_}function F8(l){let _=Fr(l.escapedText);return _.flags|=l.flags&-17,_.transformFlags=l.transformFlags,r(_,l),setIdentifierAutoGenerate(_,{...l.emitNode.autoGenerate}),_}function Zk(l){let _=Fr(l.escapedText);return _.flags|=l.flags&-17,_.transformFlags=l.transformFlags,r(_,l),_}function QS(l){if(l===void 0)return l;if(sot(l))return ux(l);if(d1(l))return Hk(l);if(kn(l))return N8(l);if(Dhe(l))return F8(l);if(jg(l))return Zk(l);let _=IV(l.kind)?t.createBaseNode(l.kind):t.createBaseTokenNode(l.kind);_.flags|=l.flags&-17,_.transformFlags=l.transformFlags,r(_,l);for(let h in l)_d(_,h)||!_d(l,h)||(_[h]=l[h]);return _}function R8(l,_,h){return oy(Ab(void 0,void 0,void 0,void 0,_?[_]:[],void 0,zd(l,!0)),void 0,h?[h]:[])}function L8(l,_,h){return oy(wb(void 0,void 0,_?[_]:[],void 0,void 0,zd(l,!0)),void 0,h?[h]:[])}function my(){return Ib(O("0"))}function Wk(l){return US(void 0,!1,l)}function Qk(l){return zS(void 0,!1,Hb([VS(!1,void 0,l)]))}function $8(l,_){return _==="null"?A.createStrictEquality(l,Nt()):_==="undefined"?A.createStrictEquality(l,my()):A.createStrictEquality(RS(l),U(_))}function mx(l,_){return _==="null"?A.createStrictInequality(l,Nt()):_==="undefined"?A.createStrictInequality(l,my()):A.createStrictInequality(RS(l),U(_))}function Kd(l,_,h){return Bfe(l)?Eb(ry(l,void 0,_),void 0,void 0,h):oy(su(l,_),void 0,h)}function M8(l,_,h){return Kd(l,"bind",[_,...h])}function j8(l,_,h){return Kd(l,"call",[_,...h])}function B8(l,_,h){return Kd(l,"apply",[_,h])}function hy(l,_,h){return Kd(xe(l),_,h)}function q8(l,_){return Kd(l,"slice",_===void 0?[]:[mp(_)])}function yy(l,_){return Kd(l,"concat",_)}function U8(l,_,h){return hy("Object","defineProperty",[l,mp(_),h])}function hx(l,_){return hy("Object","getOwnPropertyDescriptor",[l,mp(_)])}function Mf(l,_,h){return hy("Reflect","get",h?[l,_,h]:[l,_])}function Xk(l,_,h,b){return hy("Reflect","set",b?[l,_,h,b]:[l,_,h])}function jf(l,_,h){return h?(l.push(ZS(_,h)),!0):!1}function z8(l,_){let h=[];jf(h,"enumerable",mp(l.enumerable)),jf(h,"configurable",mp(l.configurable));let b=jf(h,"writable",mp(l.writable));b=jf(h,"value",l.value)||b;let k=jf(h,"get",l.get);return k=jf(h,"set",l.set)||k,pe.assert(!(b&&k),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),ty(h,!_)}function Yk(l,_){switch(l.kind){case 218:return zw(l,_);case 217:return Uw(l,l.type,_);case 235:return MS(l,_,l.type);case 239:return sI(l,_,l.type);case 236:return aI(l,_);case 234:return oI(l,_,l.typeArguments);case 356:return Kk(l,_)}}function V8(l){return BV(l)&&s1(l)&&s1(getSourceMapRange(l))&&s1(getCommentRange(l))&&!Ra(getSyntheticLeadingComments(l))&&!Ra(getSyntheticTrailingComments(l))}function eC(l,_,h=63){return l&&yye(l,h)&&!V8(l)?Yk(l,eC(l.expression,_)):_}function tC(l,_,h){if(!_)return l;let b=DI(_,_.label,Ynt(_.statement)?tC(l,_.statement):l);return h&&h(_),b}function yx(l,_){let h=FV(l);switch(h.kind){case 80:return _;case 110:case 9:case 10:case 11:return!1;case 210:return h.elements.length!==0;case 211:return h.properties.length>0;default:return!0}}function rC(l,_,h,b=!1){let k=zV(l,63),j,_e;return Gfe(k)?(j=lt(),_e=k):$z(k)?(j=lt(),_e=h!==void 0&&h<2?Fs(xe("_super"),k):k):y1(k)&8192?(j=my(),_e=n().parenthesizeLeftSideOfAccess(k,!1)):tf(k)?yx(k.expression,b)?(j=Rt(_),_e=su(Fs(A.createAssignment(j,k.expression),k.expression),k.name),Fs(_e,k)):(j=k.expression,_e=k):YD(k)?yx(k.expression,b)?(j=Rt(_),_e=ny(Fs(A.createAssignment(j,k.expression),k.expression),k.argumentExpression),Fs(_e,k)):(j=k.expression,_e=k):(j=my(),_e=n().parenthesizeLeftSideOfAccess(l,!1)),{target:_e,thisArg:j}}function nC(l,_){return su(Db(ty([ue(void 0,"value",[ji(void 0,void 0,l,void 0,void 0,void 0)],zd([ay(_)]))])),"value")}function v(l){return l.length>10?_x(l):$Ye(l,A.createComma)}function D(l,_,h,b=0,k){let j=k?l&&AV(l):vhe(l);if(j&&kn(j)&&!d1(j)){let _e=$V(Fs(QS(j),j),j.parent);return b|=y1(j),h||(b|=96),_||(b|=3072),b&&setEmitFlags(_e,b),_e}return vt(l)}function P(l,_,h){return D(l,_,h,98304)}function R(l,_,h,b){return D(l,_,h,32768,b)}function M(l,_,h){return D(l,_,h,16384)}function ee(l,_,h){return D(l,_,h)}function be(l,_,h,b){let k=su(l,s1(_)?_:QS(_));Fs(k,_);let j=0;return b||(j|=96),h||(j|=3072),j&&setEmitFlags(k,j),k}function Ue(l,_,h,b){return l&&XD(_,32)?be(l,D(_),h,b):M(_,h,b)}function Ce(l,_,h,b){let k=mr(l,_,0,h);return nr(l,_,k,b)}function De(l){return g1(l.expression)&&l.expression.text==="use strict"}function He(){return kot(ay(U("use strict")))}function mr(l,_,h=0,b){pe.assert(_.length===0,"Prologue directives should be at the first statement in the target statements array");let k=!1,j=l.length;for(;hQe&&wi.splice(k,0,..._.slice(Qe,xr)),Qe>_e&&wi.splice(b,0,..._.slice(_e,Qe)),_e>j&&wi.splice(h,0,..._.slice(j,_e)),j>0)if(h===0)wi.splice(0,0,..._.slice(0,j));else{let pu=new Map;for(let Vs=0;Vs=0;Vs--){let Sy=_[Vs];pu.has(Sy.expression.text)||wi.unshift(Sy)}}return rh(l)?Fs(I(wi,l.hasTrailingComma),l):l}function uu(l,_){let h;return typeof _=="number"?h=fo(_):h=_,Hhe(l)?Ga(l,h,l.name,l.constraint,l.default):gO(l)?ou(l,h,l.dotDotDotToken,l.name,l.questionToken,l.type,l.initializer):Yhe(l)?Dr(l,h,l.typeParameters,l.parameters,l.type):vnt(l)?il(l,h,l.name,l.questionToken,l.type):SO(l)?oe(l,h,l.name,l.questionToken??l.exclamationToken,l.type,l.initializer):bnt(l)?et(l,h,l.name,l.questionToken,l.typeParameters,l.parameters,l.type):rV(l)?Zr(l,h,l.asteriskToken,l.name,l.questionToken,l.typeParameters,l.parameters,l.type,l.body):Zhe(l)?$d(l,h,l.parameters,l.body):nV(l)?al(l,h,l.name,l.parameters,l.type,l.body):vO(l)?Ee(l,h,l.name,l.parameters,l.body):Whe(l)?Tn(l,h,l.parameters,l.type):rye(l)?Vw(l,h,l.asteriskToken,l.name,l.typeParameters,l.parameters,l.type,l.body):nye(l)?Jw(l,h,l.typeParameters,l.parameters,l.type,l.equalsGreaterThanToken,l.body):oV(l)?Pb(l,h,l.name,l.typeParameters,l.heritageClauses,l.members):DO(l)?uI(l,h,l.declarationList):aye(l)?zb(l,h,l.asteriskToken,l.name,l.typeParameters,l.parameters,l.type,l.body):bO(l)?qS(l,h,l.name,l.typeParameters,l.heritageClauses,l.members):qV(l)?NI(l,h,l.name,l.typeParameters,l.heritageClauses,l.members):sye(l)?pp(l,h,l.name,l.typeParameters,l.type):tot(l)?dp(l,h,l.name,l.members):WD(l)?ti(l,h,l.name,l.body):cye(l)?jI(l,h,l.isTypeOnly,l.name,l.moduleReference):lye(l)?qI(l,h,l.importClause,l.moduleSpecifier,l.attributes):uye(l)?cy(l,h,l.expression):pye(l)?YI(l,h,l.isTypeOnly,l.exportClause,l.moduleSpecifier,l.attributes):pe.assertNever(l)}function Ec(l,_){return gO(l)?ou(l,_,l.dotDotDotToken,l.name,l.questionToken,l.type,l.initializer):SO(l)?oe(l,_,l.name,l.questionToken??l.exclamationToken,l.type,l.initializer):rV(l)?Zr(l,_,l.asteriskToken,l.name,l.questionToken,l.typeParameters,l.parameters,l.type,l.body):nV(l)?al(l,_,l.name,l.parameters,l.type,l.body):vO(l)?Ee(l,_,l.name,l.parameters,l.body):oV(l)?Pb(l,_,l.name,l.typeParameters,l.heritageClauses,l.members):bO(l)?qS(l,_,l.name,l.typeParameters,l.heritageClauses,l.members):pe.assertNever(l)}function Gd(l,_){switch(l.kind){case 178:return al(l,l.modifiers,_,l.parameters,l.type,l.body);case 179:return Ee(l,l.modifiers,_,l.parameters,l.body);case 175:return Zr(l,l.modifiers,l.asteriskToken,_,l.questionToken,l.typeParameters,l.parameters,l.type,l.body);case 174:return et(l,l.modifiers,_,l.questionToken,l.typeParameters,l.parameters,l.type);case 173:return oe(l,l.modifiers,_,l.questionToken??l.exclamationToken,l.type,l.initializer);case 172:return il(l,l.modifiers,_,l.questionToken,l.type);case 304:return cx(l,_,l.initializer)}}function Kt(l){return l?I(l):void 0}function Dn(l){return typeof l=="string"?xe(l):l}function mp(l){return typeof l=="string"?U(l):typeof l=="number"?O(l):typeof l=="boolean"?l?Ct():Hr():l}function gy(l){return l&&n().parenthesizeExpressionForDisallowedComma(l)}function J8(l){return typeof l=="number"?pt(l):l}function pl(l){return l&¬(l)?Fs(r(pI(),l),l):l}function zs(l){return typeof l=="string"||l&&!iye(l)?BS(l,void 0,void 0,void 0):l}function se(l,_){return l!==_&&(r(l,_),Fs(l,_)),l}}function nO(e){switch(e){case 345:return"type";case 343:return"returns";case 344:return"this";case 341:return"enum";case 331:return"author";case 333:return"class";case 334:return"public";case 335:return"private";case 336:return"protected";case 337:return"readonly";case 338:return"override";case 346:return"template";case 347:return"typedef";case 342:return"param";case 349:return"prop";case 339:return"callback";case 340:return"overload";case 329:return"augments";case 330:return"implements";case 352:return"import";default:return pe.fail(`Unsupported kind: ${pe.formatSyntaxKind(e)}`)}}var ac,Yfe={};function snt(e,t){switch(ac||(ac=TV(99,!1,0)),e){case 15:ac.setText("`"+t+"`");break;case 16:ac.setText("`"+t+"${");break;case 17:ac.setText("}"+t+"${");break;case 18:ac.setText("}"+t+"`");break}let r=ac.scan();if(r===20&&(r=ac.reScanTemplateToken(!1)),ac.isUnterminated())return ac.setText(void 0),Yfe;let n;switch(r){case 15:case 16:case 17:case 18:n=ac.getTokenValue();break}return n===void 0||ac.scan()!==1?(ac.setText(void 0),Yfe):(ac.setText(void 0),n)}function Uc(e){return e&&kn(e)?c1(e):fe(e)}function c1(e){return fe(e)&-67108865}function cnt(e,t){return t|e.transformFlags&134234112}function fe(e){if(!e)return 0;let t=e.transformFlags&~lnt(e.kind);return qet(e)&&Ahe(e.name)?cnt(e.name,t):t}function Pt(e){return e?e.transformFlags:0}function eme(e){let t=0;for(let r of e)t|=fe(r);e.transformFlags=t}function lnt(e){if(e>=183&&e<=206)return-2;switch(e){case 214:case 215:case 210:return-2147450880;case 268:return-1941676032;case 170:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112;case 207:case 208:return-2147450880;case 217:case 239:case 235:case 356:case 218:case 108:return-2147483648;case 212:case 213:return-2147483648;default:return-2147483648}}var kD=ont();function CD(e){return e.flags|=16,e}var unt={createBaseSourceFileNode:e=>CD(kD.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>CD(kD.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>CD(kD.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>CD(kD.createBaseTokenNode(e)),createBaseNode:e=>CD(kD.createBaseNode(e))},Fjt=MV(4,unt);function pnt(e,t){if(e.original!==t&&(e.original=t,t)){let r=t.emitNode;r&&(e.emitNode=dnt(r,e.emitNode))}return e}function dnt(e,t){let{flags:r,internalFlags:n,leadingComments:o,trailingComments:i,commentRange:a,sourceMapRange:s,tokenSourceMapRanges:c,constantValue:p,helpers:d,startsOnNewLine:f,snippetElement:m,classThis:y,assignedName:g}=e;if(t||(t={}),r&&(t.flags=r),n&&(t.internalFlags=n&-9),o&&(t.leadingComments=lc(o.slice(),t.leadingComments)),i&&(t.trailingComments=lc(i.slice(),t.trailingComments)),a&&(t.commentRange=a),s&&(t.sourceMapRange=s),c&&(t.tokenSourceMapRanges=_nt(c,t.tokenSourceMapRanges)),p!==void 0&&(t.constantValue=p),d)for(let S of d)t.helpers=PYe(t.helpers,S);return f!==void 0&&(t.startsOnNewLine=f),m!==void 0&&(t.snippetElement=m),y&&(t.classThis=y),g&&(t.assignedName=g),t}function _nt(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}function b1(e){return e.kind===9}function fnt(e){return e.kind===10}function g1(e){return e.kind===11}function mnt(e){return e.kind===15}function hnt(e){return e.kind===28}function tme(e){return e.kind===54}function rme(e){return e.kind===58}function kn(e){return e.kind===80}function jg(e){return e.kind===81}function ynt(e){return e.kind===95}function oO(e){return e.kind===134}function $z(e){return e.kind===108}function gnt(e){return e.kind===102}function Snt(e){return e.kind===167}function Ghe(e){return e.kind===168}function Hhe(e){return e.kind===169}function gO(e){return e.kind===170}function jV(e){return e.kind===171}function vnt(e){return e.kind===172}function SO(e){return e.kind===173}function bnt(e){return e.kind===174}function rV(e){return e.kind===175}function Zhe(e){return e.kind===177}function nV(e){return e.kind===178}function vO(e){return e.kind===179}function xnt(e){return e.kind===180}function Ent(e){return e.kind===181}function Whe(e){return e.kind===182}function Tnt(e){return e.kind===183}function Qhe(e){return e.kind===184}function Xhe(e){return e.kind===185}function Yhe(e){return e.kind===186}function Dnt(e){return e.kind===187}function Ant(e){return e.kind===188}function wnt(e){return e.kind===189}function Int(e){return e.kind===190}function knt(e){return e.kind===203}function Cnt(e){return e.kind===191}function Pnt(e){return e.kind===192}function Ont(e){return e.kind===193}function Nnt(e){return e.kind===194}function Fnt(e){return e.kind===195}function Rnt(e){return e.kind===196}function Lnt(e){return e.kind===197}function $nt(e){return e.kind===198}function Mnt(e){return e.kind===199}function jnt(e){return e.kind===200}function Bnt(e){return e.kind===201}function qnt(e){return e.kind===202}function Unt(e){return e.kind===206}function znt(e){return e.kind===209}function Vnt(e){return e.kind===210}function eye(e){return e.kind===211}function tf(e){return e.kind===212}function YD(e){return e.kind===213}function tye(e){return e.kind===214}function Jnt(e){return e.kind===216}function BV(e){return e.kind===218}function rye(e){return e.kind===219}function nye(e){return e.kind===220}function Knt(e){return e.kind===223}function Gnt(e){return e.kind===225}function v1(e){return e.kind===227}function Hnt(e){return e.kind===231}function oV(e){return e.kind===232}function Znt(e){return e.kind===233}function Wnt(e){return e.kind===234}function cO(e){return e.kind===236}function Qnt(e){return e.kind===237}function Xnt(e){return e.kind===357}function DO(e){return e.kind===244}function oye(e){return e.kind===245}function Ynt(e){return e.kind===257}function iye(e){return e.kind===261}function eot(e){return e.kind===262}function aye(e){return e.kind===263}function bO(e){return e.kind===264}function qV(e){return e.kind===265}function sye(e){return e.kind===266}function tot(e){return e.kind===267}function WD(e){return e.kind===268}function cye(e){return e.kind===272}function lye(e){return e.kind===273}function uye(e){return e.kind===278}function pye(e){return e.kind===279}function rot(e){return e.kind===280}function not(e){return e.kind===354}function dye(e){return e.kind===284}function nme(e){return e.kind===287}function oot(e){return e.kind===290}function _ye(e){return e.kind===296}function iot(e){return e.kind===298}function aot(e){return e.kind===304}function sot(e){return e.kind===308}function cot(e){return e.kind===310}function lot(e){return e.kind===315}function uot(e){return e.kind===318}function fye(e){return e.kind===321}function pot(e){return e.kind===323}function mye(e){return e.kind===324}function dot(e){return e.kind===329}function _ot(e){return e.kind===334}function fot(e){return e.kind===335}function mot(e){return e.kind===336}function hot(e){return e.kind===337}function yot(e){return e.kind===338}function got(e){return e.kind===340}function Sot(e){return e.kind===332}function ome(e){return e.kind===342}function vot(e){return e.kind===343}function UV(e){return e.kind===345}function bot(e){return e.kind===346}function xot(e){return e.kind===330}function Eot(e){return e.kind===351}var $g=new WeakMap;function hye(e,t){var r;let n=e.kind;return IV(n)?n===353?e._children:(r=$g.get(t))==null?void 0:r.get(e):ii}function Tot(e,t,r){e.kind===353&&pe.fail("Should not need to re-set the children of a SyntaxList.");let n=$g.get(t);return n===void 0&&(n=new WeakMap,$g.set(t,n)),n.set(e,r),r}function ime(e,t){var r;e.kind===353&&pe.fail("Did not expect to unset the children of a SyntaxList."),(r=$g.get(t))==null||r.delete(e)}function Dot(e,t){let r=$g.get(e);r!==void 0&&($g.delete(e),$g.set(t,r))}function ame(e){return(y1(e)&32768)!==0}function Aot(e){return g1(e.expression)&&e.expression.text==="use strict"}function wot(e){for(let t of e)if(sO(t)){if(Aot(t))return t}else break}function Iot(e){return BV(e)&&Bg(e)&&!!ntt(e)}function yye(e,t=63){switch(e.kind){case 218:return t&-2147483648&&Iot(e)?!1:(t&1)!==0;case 217:case 235:return(t&2)!==0;case 239:return(t&34)!==0;case 234:return(t&16)!==0;case 236:return(t&4)!==0;case 356:return(t&8)!==0}return!1}function zV(e,t=63){for(;yye(e,t);)e=e.expression;return e}function kot(e){return setStartsOnNewLine(e,!0)}function MD(e){if(xtt(e))return e.name;if(gtt(e)){switch(e.kind){case 304:return MD(e.initializer);case 305:return e.name;case 306:return MD(e.expression)}return}return yO(e,!0)?MD(e.left):Hnt(e)?MD(e.expression):e}function Cot(e){switch(e.kind){case 207:case 208:case 210:return e.elements;case 211:return e.properties}}function sme(e){if(e){let t=e;for(;;){if(kn(t)||!t.body)return kn(t)?t:t.name;t=t.body}}}var cme;(e=>{function t(d,f,m,y,g,S,x){let A=f>0?g[f-1]:void 0;return pe.assertEqual(m[f],t),g[f]=d.onEnter(y[f],A,x),m[f]=s(d,t),f}e.enter=t;function r(d,f,m,y,g,S,x){pe.assertEqual(m[f],r),pe.assertIsDefined(d.onLeft),m[f]=s(d,r);let A=d.onLeft(y[f].left,g[f],y[f]);return A?(p(f,y,A),c(f,m,y,g,A)):f}e.left=r;function n(d,f,m,y,g,S,x){return pe.assertEqual(m[f],n),pe.assertIsDefined(d.onOperator),m[f]=s(d,n),d.onOperator(y[f].operatorToken,g[f],y[f]),f}e.operator=n;function o(d,f,m,y,g,S,x){pe.assertEqual(m[f],o),pe.assertIsDefined(d.onRight),m[f]=s(d,o);let A=d.onRight(y[f].right,g[f],y[f]);return A?(p(f,y,A),c(f,m,y,g,A)):f}e.right=o;function i(d,f,m,y,g,S,x){pe.assertEqual(m[f],i),m[f]=s(d,i);let A=d.onExit(y[f],g[f]);if(f>0){if(f--,d.foldState){let I=m[f]===i?"right":"left";g[f]=d.foldState(g[f],A,I)}}else S.value=A;return f}e.exit=i;function a(d,f,m,y,g,S,x){return pe.assertEqual(m[f],a),f}e.done=a;function s(d,f){switch(f){case t:if(d.onLeft)return r;case r:if(d.onOperator)return n;case n:if(d.onRight)return o;case o:return i;case i:return a;case a:return a;default:pe.fail("Invalid state")}}e.nextState=s;function c(d,f,m,y,g){return d++,f[d]=t,m[d]=g,y[d]=void 0,d}function p(d,f,m){if(pe.shouldAssert(2))for(;d>=0;)pe.assert(f[d]!==m,"Circular traversal detected."),d--}})(cme||(cme={}));function lme(e,t){return typeof e=="object"?iV(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function Pot(e,t){return typeof e=="string"?e:Oot(e,pe.checkDefined(t))}function Oot(e,t){return Dhe(e)?t(e).slice(1):d1(e)?t(e):jg(e)?e.escapedText.slice(1):uc(e)}function iV(e,t,r,n,o){return t=lme(t,o),n=lme(n,o),r=Pot(r,o),`${e?"#":""}${t}${r}${n}`}function gye(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of Cot(e)){let r=MD(t);if(r&&btt(r)&&(r.transformFlags&65536||r.transformFlags&128&&gye(r)))return!0}return!1}function Fs(e,t){return t?ih(e,t.pos,t.end):e}function VV(e){let t=e.kind;return t===169||t===170||t===172||t===173||t===174||t===175||t===177||t===178||t===179||t===182||t===186||t===219||t===220||t===232||t===244||t===263||t===264||t===265||t===266||t===267||t===268||t===272||t===273||t===278||t===279}function Not(e){let t=e.kind;return t===170||t===173||t===175||t===178||t===179||t===232||t===264}var ume,pme,dme,_me,fme,Fot={createBaseSourceFileNode:e=>new(fme||(fme=oi.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(dme||(dme=oi.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(_me||(_me=oi.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(pme||(pme=oi.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(ume||(ume=oi.getNodeConstructor()))(e,-1,-1)},Rjt=MV(1,Fot);function q(e,t){return t&&e(t)}function je(e,t,r){if(r){if(t)return t(r);for(let n of r){let o=e(n);if(o)return o}}}function Rot(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function Lot(e){return Jc(e.statements,$ot)||Mot(e)}function $ot(e){return VV(e)&&jot(e,95)||cye(e)&&dye(e.moduleReference)||lye(e)||uye(e)||pye(e)?e:void 0}function Mot(e){return e.flags&8388608?Sye(e):void 0}function Sye(e){return Bot(e)?e:La(e,Sye)}function jot(e,t){return Ra(e.modifiers,r=>r.kind===t)}function Bot(e){return Qnt(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var qot={167:function(e,t,r){return q(t,e.left)||q(t,e.right)},169:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.constraint)||q(t,e.default)||q(t,e.expression)},305:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.questionToken)||q(t,e.exclamationToken)||q(t,e.equalsToken)||q(t,e.objectAssignmentInitializer)},306:function(e,t,r){return q(t,e.expression)},170:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.dotDotDotToken)||q(t,e.name)||q(t,e.questionToken)||q(t,e.type)||q(t,e.initializer)},173:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.questionToken)||q(t,e.exclamationToken)||q(t,e.type)||q(t,e.initializer)},172:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.questionToken)||q(t,e.type)||q(t,e.initializer)},304:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.questionToken)||q(t,e.exclamationToken)||q(t,e.initializer)},261:function(e,t,r){return q(t,e.name)||q(t,e.exclamationToken)||q(t,e.type)||q(t,e.initializer)},209:function(e,t,r){return q(t,e.dotDotDotToken)||q(t,e.propertyName)||q(t,e.name)||q(t,e.initializer)},182:function(e,t,r){return je(t,r,e.modifiers)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)},186:function(e,t,r){return je(t,r,e.modifiers)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)},185:function(e,t,r){return je(t,r,e.modifiers)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)},180:mme,181:mme,175:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.asteriskToken)||q(t,e.name)||q(t,e.questionToken)||q(t,e.exclamationToken)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.body)},174:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.questionToken)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)},177:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.body)},178:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.body)},179:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.body)},263:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.asteriskToken)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.body)},219:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.asteriskToken)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.body)},220:function(e,t,r){return je(t,r,e.modifiers)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.equalsGreaterThanToken)||q(t,e.body)},176:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.body)},184:function(e,t,r){return q(t,e.typeName)||je(t,r,e.typeArguments)},183:function(e,t,r){return q(t,e.assertsModifier)||q(t,e.parameterName)||q(t,e.type)},187:function(e,t,r){return q(t,e.exprName)||je(t,r,e.typeArguments)},188:function(e,t,r){return je(t,r,e.members)},189:function(e,t,r){return q(t,e.elementType)},190:function(e,t,r){return je(t,r,e.elements)},193:hme,194:hme,195:function(e,t,r){return q(t,e.checkType)||q(t,e.extendsType)||q(t,e.trueType)||q(t,e.falseType)},196:function(e,t,r){return q(t,e.typeParameter)},206:function(e,t,r){return q(t,e.argument)||q(t,e.attributes)||q(t,e.qualifier)||je(t,r,e.typeArguments)},303:function(e,t,r){return q(t,e.assertClause)},197:yme,199:yme,200:function(e,t,r){return q(t,e.objectType)||q(t,e.indexType)},201:function(e,t,r){return q(t,e.readonlyToken)||q(t,e.typeParameter)||q(t,e.nameType)||q(t,e.questionToken)||q(t,e.type)||je(t,r,e.members)},202:function(e,t,r){return q(t,e.literal)},203:function(e,t,r){return q(t,e.dotDotDotToken)||q(t,e.name)||q(t,e.questionToken)||q(t,e.type)},207:gme,208:gme,210:function(e,t,r){return je(t,r,e.elements)},211:function(e,t,r){return je(t,r,e.properties)},212:function(e,t,r){return q(t,e.expression)||q(t,e.questionDotToken)||q(t,e.name)},213:function(e,t,r){return q(t,e.expression)||q(t,e.questionDotToken)||q(t,e.argumentExpression)},214:Sme,215:Sme,216:function(e,t,r){return q(t,e.tag)||q(t,e.questionDotToken)||je(t,r,e.typeArguments)||q(t,e.template)},217:function(e,t,r){return q(t,e.type)||q(t,e.expression)},218:function(e,t,r){return q(t,e.expression)},221:function(e,t,r){return q(t,e.expression)},222:function(e,t,r){return q(t,e.expression)},223:function(e,t,r){return q(t,e.expression)},225:function(e,t,r){return q(t,e.operand)},230:function(e,t,r){return q(t,e.asteriskToken)||q(t,e.expression)},224:function(e,t,r){return q(t,e.expression)},226:function(e,t,r){return q(t,e.operand)},227:function(e,t,r){return q(t,e.left)||q(t,e.operatorToken)||q(t,e.right)},235:function(e,t,r){return q(t,e.expression)||q(t,e.type)},236:function(e,t,r){return q(t,e.expression)},239:function(e,t,r){return q(t,e.expression)||q(t,e.type)},237:function(e,t,r){return q(t,e.name)},228:function(e,t,r){return q(t,e.condition)||q(t,e.questionToken)||q(t,e.whenTrue)||q(t,e.colonToken)||q(t,e.whenFalse)},231:function(e,t,r){return q(t,e.expression)},242:vme,269:vme,308:function(e,t,r){return je(t,r,e.statements)||q(t,e.endOfFileToken)},244:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.declarationList)},262:function(e,t,r){return je(t,r,e.declarations)},245:function(e,t,r){return q(t,e.expression)},246:function(e,t,r){return q(t,e.expression)||q(t,e.thenStatement)||q(t,e.elseStatement)},247:function(e,t,r){return q(t,e.statement)||q(t,e.expression)},248:function(e,t,r){return q(t,e.expression)||q(t,e.statement)},249:function(e,t,r){return q(t,e.initializer)||q(t,e.condition)||q(t,e.incrementor)||q(t,e.statement)},250:function(e,t,r){return q(t,e.initializer)||q(t,e.expression)||q(t,e.statement)},251:function(e,t,r){return q(t,e.awaitModifier)||q(t,e.initializer)||q(t,e.expression)||q(t,e.statement)},252:bme,253:bme,254:function(e,t,r){return q(t,e.expression)},255:function(e,t,r){return q(t,e.expression)||q(t,e.statement)},256:function(e,t,r){return q(t,e.expression)||q(t,e.caseBlock)},270:function(e,t,r){return je(t,r,e.clauses)},297:function(e,t,r){return q(t,e.expression)||je(t,r,e.statements)},298:function(e,t,r){return je(t,r,e.statements)},257:function(e,t,r){return q(t,e.label)||q(t,e.statement)},258:function(e,t,r){return q(t,e.expression)},259:function(e,t,r){return q(t,e.tryBlock)||q(t,e.catchClause)||q(t,e.finallyBlock)},300:function(e,t,r){return q(t,e.variableDeclaration)||q(t,e.block)},171:function(e,t,r){return q(t,e.expression)},264:xme,232:xme,265:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.heritageClauses)||je(t,r,e.members)},266:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.typeParameters)||q(t,e.type)},267:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.members)},307:function(e,t,r){return q(t,e.name)||q(t,e.initializer)},268:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.body)},272:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.moduleReference)},273:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.importClause)||q(t,e.moduleSpecifier)||q(t,e.attributes)},274:function(e,t,r){return q(t,e.name)||q(t,e.namedBindings)},301:function(e,t,r){return je(t,r,e.elements)},302:function(e,t,r){return q(t,e.name)||q(t,e.value)},271:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)},275:function(e,t,r){return q(t,e.name)},281:function(e,t,r){return q(t,e.name)},276:Eme,280:Eme,279:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.exportClause)||q(t,e.moduleSpecifier)||q(t,e.attributes)},277:Tme,282:Tme,278:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.expression)},229:function(e,t,r){return q(t,e.head)||je(t,r,e.templateSpans)},240:function(e,t,r){return q(t,e.expression)||q(t,e.literal)},204:function(e,t,r){return q(t,e.head)||je(t,r,e.templateSpans)},205:function(e,t,r){return q(t,e.type)||q(t,e.literal)},168:function(e,t,r){return q(t,e.expression)},299:function(e,t,r){return je(t,r,e.types)},234:function(e,t,r){return q(t,e.expression)||je(t,r,e.typeArguments)},284:function(e,t,r){return q(t,e.expression)},283:function(e,t,r){return je(t,r,e.modifiers)},357:function(e,t,r){return je(t,r,e.elements)},285:function(e,t,r){return q(t,e.openingElement)||je(t,r,e.children)||q(t,e.closingElement)},289:function(e,t,r){return q(t,e.openingFragment)||je(t,r,e.children)||q(t,e.closingFragment)},286:Dme,287:Dme,293:function(e,t,r){return je(t,r,e.properties)},292:function(e,t,r){return q(t,e.name)||q(t,e.initializer)},294:function(e,t,r){return q(t,e.expression)},295:function(e,t,r){return q(t,e.dotDotDotToken)||q(t,e.expression)},288:function(e,t,r){return q(t,e.tagName)},296:function(e,t,r){return q(t,e.namespace)||q(t,e.name)},191:kg,192:kg,310:kg,316:kg,315:kg,317:kg,319:kg,318:function(e,t,r){return je(t,r,e.parameters)||q(t,e.type)},321:function(e,t,r){return(typeof e.comment=="string"?void 0:je(t,r,e.comment))||je(t,r,e.tags)},348:function(e,t,r){return q(t,e.tagName)||q(t,e.name)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))},311:function(e,t,r){return q(t,e.name)},312:function(e,t,r){return q(t,e.left)||q(t,e.right)},342:Ame,349:Ame,331:function(e,t,r){return q(t,e.tagName)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))},330:function(e,t,r){return q(t,e.tagName)||q(t,e.class)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))},329:function(e,t,r){return q(t,e.tagName)||q(t,e.class)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))},346:function(e,t,r){return q(t,e.tagName)||q(t,e.constraint)||je(t,r,e.typeParameters)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))},347:function(e,t,r){return q(t,e.tagName)||(e.typeExpression&&e.typeExpression.kind===310?q(t,e.typeExpression)||q(t,e.fullName)||(typeof e.comment=="string"?void 0:je(t,r,e.comment)):q(t,e.fullName)||q(t,e.typeExpression)||(typeof e.comment=="string"?void 0:je(t,r,e.comment)))},339:function(e,t,r){return q(t,e.tagName)||q(t,e.fullName)||q(t,e.typeExpression)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))},343:Cg,345:Cg,344:Cg,341:Cg,351:Cg,350:Cg,340:Cg,324:function(e,t,r){return Jc(e.typeParameters,t)||Jc(e.parameters,t)||q(t,e.type)},325:Mz,326:Mz,327:Mz,323:function(e,t,r){return Jc(e.jsDocPropertyTags,t)},328:Xm,333:Xm,334:Xm,335:Xm,336:Xm,337:Xm,332:Xm,338:Xm,352:Uot,356:zot};function mme(e,t,r){return je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)}function hme(e,t,r){return je(t,r,e.types)}function yme(e,t,r){return q(t,e.type)}function gme(e,t,r){return je(t,r,e.elements)}function Sme(e,t,r){return q(t,e.expression)||q(t,e.questionDotToken)||je(t,r,e.typeArguments)||je(t,r,e.arguments)}function vme(e,t,r){return je(t,r,e.statements)}function bme(e,t,r){return q(t,e.label)}function xme(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.heritageClauses)||je(t,r,e.members)}function Eme(e,t,r){return je(t,r,e.elements)}function Tme(e,t,r){return q(t,e.propertyName)||q(t,e.name)}function Dme(e,t,r){return q(t,e.tagName)||je(t,r,e.typeArguments)||q(t,e.attributes)}function kg(e,t,r){return q(t,e.type)}function Ame(e,t,r){return q(t,e.tagName)||(e.isNameFirst?q(t,e.name)||q(t,e.typeExpression):q(t,e.typeExpression)||q(t,e.name))||(typeof e.comment=="string"?void 0:je(t,r,e.comment))}function Cg(e,t,r){return q(t,e.tagName)||q(t,e.typeExpression)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))}function Mz(e,t,r){return q(t,e.name)}function Xm(e,t,r){return q(t,e.tagName)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))}function Uot(e,t,r){return q(t,e.tagName)||q(t,e.importClause)||q(t,e.moduleSpecifier)||q(t,e.attributes)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))}function zot(e,t,r){return q(t,e.expression)}function La(e,t,r){if(e===void 0||e.kind<=166)return;let n=qot[e.kind];return n===void 0?void 0:n(e,t,r)}function wme(e,t,r){let n=Ime(e),o=[];for(;o.length=0;--s)n.push(i[s]),o.push(a)}else{let s=t(i,a);if(s){if(s==="skip")continue;return s}if(i.kind>=167)for(let c of Ime(i))n.push(c),o.push(i)}}}function Ime(e){let t=[];return La(e,r,r),t;function r(n){t.unshift(n)}}function vye(e){e.externalModuleIndicator=Lot(e)}function Vot(e,t,r,n=!1,o){var i,a;(i=iO)==null||i.push(iO.Phase.Parse,"createSourceFile",{path:e},!0),Cfe("beforeParse");let s,{languageVersion:c,setExternalModuleIndicator:p,impliedNodeFormat:d,jsDocParsingMode:f}=typeof r=="object"?r:{languageVersion:r};if(c===100)s=Mg.parseSourceFile(e,t,c,void 0,n,6,S1,f);else{let m=d===void 0?p:y=>(y.impliedNodeFormat=d,(p||vye)(y));s=Mg.parseSourceFile(e,t,c,void 0,n,o,m,f)}return Cfe("afterParse"),XYe("Parse","beforeParse","afterParse"),(a=iO)==null||a.pop(),s}function Jot(e){return e.externalModuleIndicator!==void 0}function Kot(e,t,r,n=!1){let o=xO.updateSourceFile(e,t,r,n);return o.flags|=e.flags&12582912,o}var Mg;(e=>{var t=TV(99,!0),r=40960,n,o,i,a,s;function c(v){return Hr++,v}var p={createBaseSourceFileNode:v=>c(new s(v,0,0)),createBaseIdentifierNode:v=>c(new i(v,0,0)),createBasePrivateIdentifierNode:v=>c(new a(v,0,0)),createBaseTokenNode:v=>c(new o(v,0,0)),createBaseNode:v=>c(new n(v,0,0))},d=MV(11,p),{createNodeArray:f,createNumericLiteral:m,createStringLiteral:y,createLiteralLikeNode:g,createIdentifier:S,createPrivateIdentifier:x,createToken:A,createArrayLiteralExpression:I,createObjectLiteralExpression:E,createPropertyAccessExpression:C,createPropertyAccessChain:F,createElementAccessExpression:O,createElementAccessChain:$,createCallExpression:N,createCallChain:U,createNewExpression:ge,createParenthesizedExpression:Te,createBlock:ke,createVariableStatement:Ve,createExpressionStatement:me,createIfStatement:xe,createWhileStatement:Rt,createForStatement:Vt,createForOfStatement:Yt,createVariableDeclaration:vt,createVariableDeclarationList:Fr}=d,le,K,ae,he,Oe,pt,Ye,lt,Nt,Ct,Hr,It,fo,rn,Gn,bt,Hn=!0,Di=!1;function Ga(v,D,P,R,M=!1,ee,be,Ue=0){var Ce;if(ee=Jrt(v,ee),ee===6){let He=ou(v,D,P,R,M);return convertToJson(He,(Ce=He.statements[0])==null?void 0:Ce.expression,He.parseDiagnostics,!1,void 0),He.referencedFiles=ii,He.typeReferenceDirectives=ii,He.libReferenceDirectives=ii,He.amdDependencies=ii,He.hasNoDefaultLib=!1,He.pragmas=TYe,He}nl(v,D,P,R,ee,Ue);let De=Ld(P,M,ee,be||vye,Ue);return ol(),De}e.parseSourceFile=Ga;function ji(v,D){nl("",v,D,void 0,1,0),ce();let P=Ud(!0),R=T()===1&&!Ye.length;return ol(),R?P:void 0}e.parseIsolatedEntityName=ji;function ou(v,D,P=2,R,M=!1){nl(v,D,P,R,6,0),K=bt,ce();let ee=re(),be,Ue;if(T()===1)be=ui([],ee,ee),Ue=la();else{let He;for(;T()!==1;){let jt;switch(T()){case 23:jt=uk();break;case 112:case 97:case 106:jt=la();break;case 41:ye(()=>ce()===9&&ce()!==59)?jt=HI():jt=ex();break;case 9:case 11:if(ye(()=>ce()!==59)){jt=ll();break}default:jt=ex();break}He&&ef(He)?He.push(jt):He?He=[He,jt]:(He=jt,T()!==1&&Ft(G.Unexpected_token))}let mr=ef(He)?X(I(He),ee):pe.checkDefined(He),nr=me(mr);X(nr,ee),be=ui([nr],ee),Ue=cl(1,G.Unexpected_token)}let Ce=qe(v,2,6,!1,be,Ue,K,S1);M&&oe(Ce),Ce.nodeCount=Hr,Ce.identifierCount=fo,Ce.identifiers=It,Ce.parseDiagnostics=Ig(Ye,Ce),lt&&(Ce.jsDocDiagnostics=Ig(lt,Ce));let De=Ce;return ol(),De}e.parseJsonText=ou;function nl(v,D,P,R,M,ee){switch(n=oi.getNodeConstructor(),o=oi.getTokenConstructor(),i=oi.getIdentifierConstructor(),a=oi.getPrivateIdentifierConstructor(),s=oi.getSourceFileConstructor(),le=cet(v),ae=D,he=P,Nt=R,Oe=M,pt=Wfe(M),Ye=[],rn=0,It=new Map,fo=0,Hr=0,K=0,Hn=!0,Oe){case 1:case 2:bt=524288;break;case 6:bt=134742016;break;default:bt=0;break}Di=!1,t.setText(ae),t.setOnError(kf),t.setScriptTarget(he),t.setLanguageVariant(pt),t.setScriptKind(Oe),t.setJSDocParsingMode(ee)}function ol(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),ae=void 0,he=void 0,Nt=void 0,Oe=void 0,pt=void 0,K=0,Ye=void 0,lt=void 0,rn=0,It=void 0,Gn=void 0,Hn=!0}function Ld(v,D,P,R,M){let ee=Zot(le);ee&&(bt|=33554432),K=bt,ce();let be=qs(0,pa);pe.assert(T()===1);let Ue=fr(),Ce=Jt(la(),Ue),De=qe(le,v,P,ee,be,Ce,K,R);return Xot(De,ae),Yot(De,He),De.commentDirectives=t.getCommentDirectives(),De.nodeCount=Hr,De.identifierCount=fo,De.identifiers=It,De.parseDiagnostics=Ig(Ye,De),De.jsDocParsingMode=M,lt&&(De.jsDocDiagnostics=Ig(lt,De)),D&&oe(De),De;function He(mr,nr,jt){Ye.push(r1(le,ae,mr,nr,jt))}}let il=!1;function Jt(v,D){if(!D)return v;pe.assert(!v.jsDoc);let P=IYe(qtt(v,ae),R=>nC.parseJSDocComment(v,R.pos,R.end-R.pos));return P.length&&(v.jsDoc=P),il&&(il=!1,v.flags|=536870912),v}function cp(v){let D=Nt,P=xO.createSyntaxCursor(v);Nt={currentNode:He};let R=[],M=Ye;Ye=[];let ee=0,be=Ce(v.statements,0);for(;be!==-1;){let mr=v.statements[ee],nr=v.statements[be];lc(R,v.statements,ee,be),ee=De(v.statements,be);let jt=Iz(M,Ai=>Ai.start>=mr.pos),Wa=jt>=0?Iz(M,Ai=>Ai.start>=nr.pos,jt):-1;jt>=0&&lc(Ye,M,jt,Wa>=0?Wa:void 0),fs(()=>{let Ai=bt;for(bt|=65536,t.resetTokenState(nr.pos),ce();T()!==1;){let lu=t.getTokenFullStart(),uu=Tb(0,pa);if(R.push(uu),lu===t.getTokenFullStart()&&ce(),ee>=0){let Ec=v.statements[ee];if(uu.end===Ec.pos)break;uu.end>Ec.pos&&(ee=De(v.statements,ee+1))}}bt=Ai},2),be=ee>=0?Ce(v.statements,ee):-1}if(ee>=0){let mr=v.statements[ee];lc(R,v.statements,ee);let nr=Iz(M,jt=>jt.start>=mr.pos);nr>=0&&lc(Ye,M,nr)}return Nt=D,d.updateSourceFile(v,Fs(f(R),v.statements));function Ue(mr){return!(mr.flags&65536)&&!!(mr.transformFlags&67108864)}function Ce(mr,nr){for(let jt=nr;jt118}function ht(){return T()===80?!0:T()===127&&kt()||T()===135&&$r()?!1:T()>118}function ie(v,D,P=!0){return T()===v?(P&&ce(),!0):(D?Ft(D):Ft(G._0_expected,io(v)),!1)}let To=Object.keys(bV).filter(v=>v.length>2);function zo(v){if(Jnt(v)){Zn(pd(ae,v.template.pos),v.template.end,G.Module_declaration_names_may_only_use_or_quoted_strings);return}let D=kn(v)?uc(v):void 0;if(!D||!Oet(D,he)){Ft(G._0_expected,io(27));return}let P=pd(ae,v.pos);switch(D){case"const":case"let":case"var":Zn(P,v.end,G.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Bi(G.Interface_name_cannot_be_0,G.Interface_must_be_given_a_name,19);return;case"is":Zn(P,t.getTokenStart(),G.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Bi(G.Namespace_name_cannot_be_0,G.Namespace_must_be_given_a_name,19);return;case"type":Bi(G.Type_alias_name_cannot_be_0,G.Type_alias_must_be_given_a_name,64);return}let R=FD(D,To,Bo)??ms(D);if(R){Zn(P,v.end,G.Unknown_keyword_or_identifier_Did_you_mean_0,R);return}T()!==0&&Zn(P,v.end,G.Unexpected_keyword_or_identifier)}function Bi(v,D,P){T()===P?Ft(D):Ft(v,t.getTokenValue())}function ms(v){for(let D of To)if(v.length>D.length+2&&dO(v,D))return`${D} ${v.slice(D.length)}`}function yR(v,D,P){if(T()===60&&!t.hasPrecedingLineBreak()){Ft(G.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(T()===21){Ft(G.Cannot_start_a_function_call_in_a_type_annotation),ce();return}if(D&&!iu()){P?Ft(G._0_expected,io(27)):Ft(G.Expected_for_property_initializer);return}if(!CS()){if(P){Ft(G._0_expected,io(27));return}zo(v)}}function Ow(v){return T()===v?(vr(),!0):(pe.assert(Oz(v)),Ft(G._0_expected,io(v)),!1)}function Md(v,D,P,R){if(T()===D){ce();return}let M=Ft(G._0_expected,io(D));P&&M&&tO(M,r1(le,ae,R,1,G.The_parser_expected_to_find_a_1_to_match_the_0_token_here,io(v),io(D)))}function tr(v){return T()===v?(ce(),!0):!1}function mo(v){if(T()===v)return la()}function gR(v){if(T()===v)return vR()}function cl(v,D,P){return mo(v)||ua(v,!1,D||G._0_expected,P||io(v))}function SR(v){return gR(v)||(pe.assert(Oz(v)),ua(v,!1,G._0_expected,io(v)))}function la(){let v=re(),D=T();return ce(),X(A(D),v)}function vR(){let v=re(),D=T();return vr(),X(A(D),v)}function iu(){return T()===27?!0:T()===20||T()===1||t.hasPrecedingLineBreak()}function CS(){return iu()?(T()===27&&ce(),!0):!1}function ba(){return CS()||ie(27)}function ui(v,D,P,R){let M=f(v,R);return ih(M,D,P??t.getTokenFullStart()),M}function X(v,D,P){return ih(v,D,P??t.getTokenFullStart()),bt&&(v.flags|=bt),Di&&(Di=!1,v.flags|=262144),v}function ua(v,D,P,...R){D?Bs(t.getTokenFullStart(),0,P,...R):P&&Ft(P,...R);let M=re(),ee=v===80?S("",void 0):qfe(v)?d.createTemplateLiteralLikeNode(v,"","",void 0):v===9?m("",void 0):v===11?y("",void 0):v===283?d.createMissingDeclaration():A(v);return X(ee,M)}function jd(v){let D=It.get(v);return D===void 0&&It.set(v,D=v),D}function au(v,D,P){if(v){fo++;let Ue=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():re(),Ce=T(),De=jd(t.getTokenValue()),He=t.hasExtendedUnicodeEscape();return Ht(),X(S(De,Ce,He),Ue)}if(T()===81)return Ft(P||G.Private_identifiers_are_not_allowed_outside_class_bodies),au(!0);if(T()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return au(!0);fo++;let R=T()===1,M=t.isReservedWord(),ee=t.getTokenText(),be=M?G.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:G.Identifier_expected;return ua(80,R,D||be,ee)}function vb(v){return au(br(),void 0,v)}function No(v,D){return au(ht(),v,D)}function qi(v){return au(Zo(T()),v)}function Cf(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Ft(G.Unicode_escape_sequence_cannot_appear_here),au(Zo(T()))}function up(){return Zo(T())||T()===11||T()===9||T()===10}function Nw(){return Zo(T())||T()===11}function bR(v){if(T()===11||T()===9||T()===10){let D=ll();return D.text=jd(D.text),D}return v&&T()===23?xR():T()===81?PS():qi()}function Bd(){return bR(!0)}function xR(){let v=re();ie(23);let D=co(ti);return ie(24),X(d.createComputedPropertyName(D),v)}function PS(){let v=re(),D=x(jd(t.getTokenValue()));return ce(),X(D,v)}function Pf(v){return T()===v&&We(Fw)}function bb(){return ce(),t.hasPrecedingLineBreak()?!1:su()}function Fw(){switch(T()){case 87:return ce()===94;case 95:return ce(),T()===90?ye(ry):T()===156?ye(ER):ty();case 90:return ry();case 126:return ce(),su();case 139:case 153:return ce(),TR();default:return bb()}}function ty(){return T()===60||T()!==42&&T()!==130&&T()!==19&&su()}function ER(){return ce(),ty()}function Rw(){return Z_(T())&&We(Fw)}function su(){return T()===23||T()===19||T()===42||T()===26||up()}function TR(){return T()===23||up()}function ry(){return ce(),T()===86||T()===100||T()===120||T()===60||T()===128&&ye(Ek)||T()===134&&ye(Tk)}function OS(v,D){if(FS(v))return!0;switch(v){case 0:case 1:case 3:return!(T()===27&&D)&&Dk();case 2:return T()===84||T()===90;case 4:return ye(pI);case 5:return ye(jk)||T()===27&&!D;case 6:return T()===23||up();case 12:switch(T()){case 23:case 42:case 26:case 25:return!0;default:return up()}case 18:return up();case 9:return T()===23||T()===26||up();case 24:return Nw();case 7:return T()===19?ye(Lw):D?ht()&&!xb():Vb()&&!xb();case 8:return ax();case 10:return T()===28||T()===26||ax();case 19:return T()===103||T()===87||ht();case 15:switch(T()){case 28:case 25:return!0}case 11:return T()===26||dp();case 16:return MS(!1);case 17:return MS(!0);case 20:case 21:return T()===28||Rf();case 22:return dx();case 23:return T()===161&&ye(Pk)?!1:T()===11?!0:Zo(T());case 13:return Zo(T())||T()===19;case 14:return!0;case 25:return!0;case 26:return pe.fail("ParsingContext.Count used as a context");default:pe.assertNever(v,"Non-exhaustive case in 'isListElement'.")}}function Lw(){if(pe.assert(T()===19),ce()===20){let v=ce();return v===28||v===19||v===96||v===119}return!0}function ny(){return ce(),ht()}function DR(){return ce(),Zo(T())}function $w(){return ce(),uet(T())}function xb(){return T()===119||T()===96?ye(Mw):!1}function Mw(){return ce(),dp()}function oy(){return ce(),Rf()}function NS(v){if(T()===1)return!0;switch(v){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return T()===20;case 3:return T()===20||T()===84||T()===90;case 7:return T()===19||T()===96||T()===119;case 8:return Eb();case 19:return T()===32||T()===21||T()===19||T()===96||T()===119;case 11:return T()===22||T()===27;case 15:case 21:case 10:return T()===24;case 17:case 16:case 18:return T()===22||T()===24;case 20:return T()!==28;case 22:return T()===19||T()===20;case 13:return T()===32||T()===44;case 14:return T()===30&&ye(R8);default:return!1}}function Eb(){return!!(iu()||VI(T())||T()===39)}function jw(){pe.assert(rn,"Missing parsing context");for(let v=0;v<26;v++)if(rn&1<=0)}function Ib(v){return v===6?G.An_enum_member_name_must_be_followed_by_a_or:void 0}function cu(){let v=ui([],re());return v.isMissingList=!0,v}function Hw(v){return!!v.isMissingList}function qd(v,D,P,R){if(ie(P)){let M=hs(v,D);return ie(R),M}return cu()}function Ud(v,D){let P=re(),R=v?qi(D):No(D);for(;tr(25)&&T()!==30;)R=X(d.createQualifiedName(R,Of(v,!1,!0)),P);return R}function AR(v,D){return X(d.createQualifiedName(v,D),v.pos)}function Of(v,D,P){if(t.hasPrecedingLineBreak()&&Zo(T())&&ye(rx))return ua(80,!0,G.Identifier_expected);if(T()===81){let R=PS();return D?R:ua(80,!0,G.Identifier_expected)}return v?P?qi():Cf():No()}function wR(v){let D=re(),P=[],R;do R=Xw(v),P.push(R);while(R.literal.kind===17);return ui(P,D)}function LS(v){let D=re();return X(d.createTemplateExpression(iy(v),wR(v)),D)}function Zw(){let v=re();return X(d.createTemplateLiteralType(iy(!1),IR()),v)}function IR(){let v=re(),D=[],P;do P=Ww(),D.push(P);while(P.literal.kind===17);return ui(D,v)}function Ww(){let v=re();return X(d.createTemplateLiteralTypeSpan(no(),Qw(!1)),v)}function Qw(v){return T()===20?(mi(v),Yw()):cl(18,G._0_expected,io(20))}function Xw(v){let D=re();return X(d.createTemplateSpan(co(ti),Qw(v)),D)}function ll(){return Nf(T())}function iy(v){!v&&t.getTokenFlags()&26656&&mi(!1);let D=Nf(T());return pe.assert(D.kind===16,"Template head has wrong token kind"),D}function Yw(){let v=Nf(T());return pe.assert(v.kind===17||v.kind===18,"Template fragment has wrong token kind"),v}function kR(v){let D=v===15||v===18,P=t.getTokenText();return P.substring(1,P.length-(t.isUnterminated()?0:D?1:2))}function Nf(v){let D=re(),P=qfe(v)?d.createTemplateLiteralLikeNode(v,t.getTokenValue(),kR(v),t.getTokenFlags()&7176):v===9?m(t.getTokenValue(),t.getNumericLiteralFlags()):v===11?y(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):utt(v)?g(v,t.getTokenValue()):pe.fail();return t.hasExtendedUnicodeEscape()&&(P.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(P.isUnterminated=!0),ce(),X(P,D)}function Ff(){return Ud(!0,G.Type_expected)}function eI(){if(!t.hasPrecedingLineBreak()&&ei()===30)return qd(20,no,30,32)}function $S(){let v=re();return X(d.createTypeReferenceNode(Ff(),eI()),v)}function kb(v){switch(v.kind){case 184:return Lg(v.typeName);case 185:case 186:{let{parameters:D,type:P}=v;return Hw(D)||kb(P)}case 197:return kb(v.type);default:return!1}}function CR(v){return ce(),X(d.createTypePredicateNode(void 0,v,no()),v.pos)}function Cb(){let v=re();return ce(),X(d.createThisTypeNode(),v)}function PR(){let v=re();return ce(),X(d.createJSDocAllType(),v)}function tI(){let v=re();return ce(),X(d.createJSDocNonNullableType(qb(),!1),v)}function OR(){let v=re();return ce(),T()===28||T()===20||T()===22||T()===32||T()===64||T()===52?X(d.createJSDocUnknownType(),v):X(d.createJSDocNullableType(no(),!1),v)}function rI(){let v=re(),D=fr();if(We(Zk)){let P=ul(36),R=bc(59,!1);return Jt(X(d.createJSDocFunctionType(P,R),v),D)}return X(d.createTypeReferenceNode(qi(),void 0),v)}function Pb(){let v=re(),D;return(T()===110||T()===105)&&(D=qi(),ie(59)),X(d.createParameterDeclaration(void 0,void 0,D,void 0,Ob(),void 0),v)}function Ob(){t.setSkipJsDocLeadingAsterisks(!0);let v=re();if(tr(144)){let R=d.createJSDocNamepathType(void 0);e:for(;;)switch(T()){case 20:case 1:case 28:case 5:break e;default:vr()}return t.setSkipJsDocLeadingAsterisks(!1),X(R,v)}let D=tr(26),P=qS();return t.setSkipJsDocLeadingAsterisks(!1),D&&(P=X(d.createJSDocVariadicType(P),v)),T()===64?(ce(),X(d.createJSDocOptionalType(P),v)):P}function nI(){let v=re();ie(114);let D=Ud(!0),P=t.hasPrecedingLineBreak()?void 0:WS();return X(d.createTypeQueryNode(D,P),v)}function oI(){let v=re(),D=xc(!1,!0),P=No(),R,M;tr(96)&&(Rf()||!dp()?R=no():M=XI());let ee=tr(64)?no():void 0,be=d.createTypeParameterDeclaration(D,P,R,ee);return be.expression=M,X(be,v)}function ys(){if(T()===30)return qd(19,oI,30,32)}function MS(v){return T()===26||ax()||Z_(T())||T()===60||Rf(!v)}function iI(v){let D=Lf(G.Private_identifiers_cannot_be_used_as_parameters);return Ltt(D)===0&&!Ra(v)&&Z_(T())&&ce(),D}function aI(){return br()||T()===23||T()===19}function Nb(v){return Fb(v)}function sI(v){return Fb(v,!1)}function Fb(v,D=!0){let P=re(),R=fr(),M=v?ue(()=>xc(!0)):Ee(()=>xc(!0));if(T()===110){let Ce=d.createParameterDeclaration(M,void 0,au(!0),void 0,pp(),void 0),De=hV(M);return De&&_s(De,G.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Jt(X(Ce,P),R)}let ee=Hn;Hn=!1;let be=mo(26);if(!D&&!aI())return;let Ue=Jt(X(d.createParameterDeclaration(M,be,iI(M),mo(58),pp(),_p()),P),R);return Hn=ee,Ue}function bc(v,D){if(cI(v,D))return lp(qS)}function cI(v,D){return v===39?(ie(v),!0):tr(59)?!0:D&&T()===39?(Ft(G._0_expected,io(59)),ce(),!0):!1}function Rb(v,D){let P=kt(),R=$r();Zr(!!(v&1)),ro(!!(v&2));let M=v&32?hs(17,Pb):hs(16,()=>D?Nb(R):sI(R));return Zr(P),ro(R),M}function ul(v){if(!ie(21))return cu();let D=Rb(v,!0);return ie(22),D}function jS(){tr(28)||ba()}function lI(v){let D=re(),P=fr();v===181&&ie(105);let R=ys(),M=ul(4),ee=bc(59,!0);jS();let be=v===180?d.createCallSignature(R,M,ee):d.createConstructSignature(R,M,ee);return Jt(X(be,D),P)}function zd(){return T()===23&&ye(NR)}function NR(){if(ce(),T()===26||T()===24)return!0;if(Z_(T())){if(ce(),ht())return!0}else if(ht())ce();else return!1;return T()===59||T()===28?!0:T()!==58?!1:(ce(),T()===59||T()===28||T()===24)}function Lb(v,D,P){let R=qd(16,()=>Nb(!1),23,24),M=pp();jS();let ee=d.createIndexSignature(P,R,M);return Jt(X(ee,v),D)}function uI(v,D,P){let R=Bd(),M=mo(58),ee;if(T()===21||T()===30){let be=ys(),Ue=ul(4),Ce=bc(59,!0);ee=d.createMethodSignature(P,R,M,be,Ue,Ce)}else{let be=pp();ee=d.createPropertySignature(P,R,M,be),T()===64&&(ee.initializer=_p())}return jS(),Jt(X(ee,v),D)}function pI(){if(T()===21||T()===30||T()===139||T()===153)return!0;let v=!1;for(;Z_(T());)v=!0,ce();return T()===23?!0:(up()&&(v=!0,ce()),v?T()===21||T()===30||T()===58||T()===59||T()===28||iu():!1)}function ay(){if(T()===21||T()===30)return lI(180);if(T()===105&&ye(dI))return lI(181);let v=re(),D=fr(),P=xc(!1);return Pf(139)?$f(v,D,P,178,4):Pf(153)?$f(v,D,P,179,4):zd()?Lb(v,D,P):uI(v,D,P)}function dI(){return ce(),T()===21||T()===30}function _I(){return ce()===25}function fI(){switch(ce()){case 21:case 30:case 25:return!0}return!1}function mI(){let v=re();return X(d.createTypeLiteralNode(hI()),v)}function hI(){let v;return ie(19)?(v=qs(4,ay),ie(20)):v=cu(),v}function yI(){return ce(),T()===40||T()===41?ce()===148:(T()===148&&ce(),T()===23&&ny()&&ce()===103)}function FR(){let v=re(),D=qi();ie(103);let P=no();return X(d.createTypeParameterDeclaration(void 0,D,P,void 0),v)}function gI(){let v=re();ie(19);let D;(T()===148||T()===40||T()===41)&&(D=la(),D.kind!==148&&ie(148)),ie(23);let P=FR(),R=tr(130)?no():void 0;ie(24);let M;(T()===58||T()===40||T()===41)&&(M=la(),M.kind!==58&&ie(58));let ee=pp();ba();let be=qs(4,ay);return ie(20),X(d.createMappedTypeNode(D,P,R,M,ee,be),v)}function SI(){let v=re();if(tr(26))return X(d.createRestTypeNode(no()),v);let D=no();if(lot(D)&&D.pos===D.type.pos){let P=d.createOptionalTypeNode(D.type);return Fs(P,D),P.flags=D.flags,P}return D}function $b(){return ce()===59||T()===58&&ce()===59}function RR(){return T()===26?Zo(ce())&&$b():Zo(T())&&$b()}function vI(){if(ye(RR)){let v=re(),D=fr(),P=mo(26),R=qi(),M=mo(58);ie(59);let ee=SI(),be=d.createNamedTupleMember(P,R,M,ee);return Jt(X(be,v),D)}return SI()}function LR(){let v=re();return X(d.createTupleTypeNode(qd(21,vI,23,24)),v)}function bI(){let v=re();ie(21);let D=no();return ie(22),X(d.createParenthesizedType(D),v)}function $R(){let v;if(T()===128){let D=re();ce();let P=X(A(128),D);v=ui([P],D)}return v}function Mb(){let v=re(),D=fr(),P=$R(),R=tr(105);pe.assert(!P||R,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let M=ys(),ee=ul(4),be=bc(39,!1),Ue=R?d.createConstructorTypeNode(P,M,ee,be):d.createFunctionTypeNode(M,ee,be);return Jt(X(Ue,v),D)}function xI(){let v=la();return T()===25?void 0:v}function jb(v){let D=re();v&&ce();let P=T()===112||T()===97||T()===106?la():Nf(T());return v&&(P=X(d.createPrefixUnaryExpression(41,P),D)),X(d.createLiteralTypeNode(P),D)}function MR(){return ce(),T()===102}function Bb(){K|=4194304;let v=re(),D=tr(114);ie(102),ie(21);let P=no(),R;if(tr(28)){let be=t.getTokenStart();ie(19);let Ue=T();if(Ue===118||Ue===132?ce():Ft(G._0_expected,io(118)),ie(59),R=mx(Ue,!0),tr(28),!ie(20)){let Ce=_1(Ye);Ce&&Ce.code===G._0_expected.code&&tO(Ce,r1(le,ae,be,1,G.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}ie(22);let M=tr(25)?Ff():void 0,ee=eI();return X(d.createImportTypeNode(P,R,M,ee,D),v)}function EI(){return ce(),T()===9||T()===10}function qb(){switch(T()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return We(xI)||$S();case 67:t.reScanAsteriskEqualsToken();case 42:return PR();case 61:t.reScanQuestionToken();case 58:return OR();case 100:return rI();case 54:return tI();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return jb();case 41:return ye(EI)?jb(!0):$S();case 116:return la();case 110:{let v=Cb();return T()===142&&!t.hasPrecedingLineBreak()?CR(v):v}case 114:return ye(MR)?Bb():nI();case 19:return ye(yI)?gI():mI();case 23:return LR();case 21:return bI();case 102:return Bb();case 131:return ye(rx)?NI():$S();case 16:return Zw();default:return $S()}}function Rf(v){switch(T()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!v;case 41:return!v&&ye(EI);case 21:return!v&&ye(TI);default:return ht()}}function TI(){return ce(),T()===22||MS(!1)||Rf()}function DI(){let v=re(),D=qb();for(;!t.hasPrecedingLineBreak();)switch(T()){case 54:ce(),D=X(d.createJSDocNonNullableType(D,!0),v);break;case 58:if(ye(oy))return D;ce(),D=X(d.createJSDocNullableType(D,!0),v);break;case 23:if(ie(23),Rf()){let P=no();ie(24),D=X(d.createIndexedAccessTypeNode(D,P),v)}else ie(24),D=X(d.createArrayTypeNode(D),v);break;default:return D}return D}function AI(v){let D=re();return ie(v),X(d.createTypeOperatorNode(v,II()),D)}function jR(){if(tr(96)){let v=vc(no);if(Ir()||T()!==58)return v}}function wI(){let v=re(),D=No(),P=We(jR),R=d.createTypeParameterDeclaration(void 0,D,P);return X(R,v)}function BR(){let v=re();return ie(140),X(d.createInferTypeNode(wI()),v)}function II(){let v=T();switch(v){case 143:case 158:case 148:return AI(v);case 140:return BR()}return lp(DI)}function BS(v){if(zb()){let D=Mb(),P;return Xhe(D)?P=v?G.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:G.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:P=v?G.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:G.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,_s(D,P),D}}function kI(v,D,P){let R=re(),M=v===52,ee=tr(v),be=ee&&BS(M)||D();if(T()===v||ee){let Ue=[be];for(;tr(v);)Ue.push(BS(M)||D());be=X(P(ui(Ue,R)),R)}return be}function Ub(){return kI(51,II,d.createIntersectionTypeNode)}function qR(){return kI(52,Ub,d.createUnionTypeNode)}function CI(){return ce(),T()===105}function zb(){return T()===30||T()===21&&ye(PI)?!0:T()===105||T()===128&&ye(CI)}function UR(){if(Z_(T())&&xc(!1),ht()||T()===110)return ce(),!0;if(T()===23||T()===19){let v=Ye.length;return Lf(),v===Ye.length}return!1}function PI(){return ce(),!!(T()===22||T()===26||UR()&&(T()===59||T()===28||T()===58||T()===64||T()===22&&(ce(),T()===39)))}function qS(){let v=re(),D=ht()&&We(OI),P=no();return D?X(d.createTypePredicateNode(void 0,D,P),v):P}function OI(){let v=No();if(T()===142&&!t.hasPrecedingLineBreak())return ce(),v}function NI(){let v=re(),D=cl(131),P=T()===110?Cb():No(),R=tr(142)?no():void 0;return X(d.createTypePredicateNode(D,P,R),v)}function no(){if(bt&81920)return fi(81920,no);if(zb())return Mb();let v=re(),D=qR();if(!Ir()&&!t.hasPrecedingLineBreak()&&tr(96)){let P=vc(no);ie(58);let R=lp(no);ie(59);let M=lp(no);return X(d.createConditionalTypeNode(D,P,R,M),v)}return D}function pp(){return tr(59)?no():void 0}function Vb(){switch(T()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return ye(fI);default:return ht()}}function dp(){if(Vb())return!0;switch(T()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return JI()?!0:ht()}}function FI(){return T()!==19&&T()!==100&&T()!==86&&T()!==60&&dp()}function ti(){let v=Tn();v&&dn(!1);let D=re(),P=Hi(!0),R;for(;R=mo(28);)P=Gb(P,R,Hi(!0),D);return v&&dn(!0),P}function _p(){return tr(64)?Hi(!0):void 0}function Hi(v){if(RI())return LI();let D=VR(v)||qI(v);if(D)return D;let P=re(),R=fr(),M=sy(0);return M.kind===80&&T()===39?$I(P,M,v,R,void 0):h1(M)&&qhe(Dr())?Gb(M,la(),Hi(v),P):JR(M,P,v)}function RI(){return T()===127?kt()?!0:ye(nx):!1}function zR(){return ce(),!t.hasPrecedingLineBreak()&&ht()}function LI(){let v=re();return ce(),!t.hasPrecedingLineBreak()&&(T()===42||dp())?X(d.createYieldExpression(mo(42),Hi(!0)),v):X(d.createYieldExpression(void 0,void 0),v)}function $I(v,D,P,R,M){pe.assert(T()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let ee=d.createParameterDeclaration(void 0,void 0,D,void 0,void 0,void 0);X(ee,D.pos);let be=ui([ee],ee.pos,ee.end),Ue=cl(39),Ce=Jb(!!M,P),De=d.createArrowFunction(M,void 0,be,void 0,Ue,Ce);return Jt(X(De,v),R)}function VR(v){let D=MI();if(D!==0)return D===1?zI(!0,!0):We(()=>BI(v))}function MI(){return T()===21||T()===30||T()===134?ye(jI):T()===39?1:0}function jI(){if(T()===134&&(ce(),t.hasPrecedingLineBreak()||T()!==21&&T()!==30))return 0;let v=T(),D=ce();if(v===21){if(D===22)switch(ce()){case 39:case 59:case 19:return 1;default:return 0}if(D===23||D===19)return 2;if(D===26)return 1;if(Z_(D)&&D!==134&&ye(ny))return ce()===130?0:1;if(!ht()&&D!==110)return 0;switch(ce()){case 59:return 1;case 58:return ce(),T()===59||T()===28||T()===64||T()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return pe.assert(v===30),!ht()&&T()!==87?0:pt===1?ye(()=>{tr(87);let P=ce();if(P===96)switch(ce()){case 64:case 32:case 44:return!1;default:return!0}else if(P===28||P===64)return!0;return!1})?1:0:2}function BI(v){let D=t.getTokenStart();if(Gn?.has(D))return;let P=zI(!1,v);return P||(Gn||(Gn=new Set)).add(D),P}function qI(v){if(T()===134&&ye(UI)===1){let D=re(),P=fr(),R=Uk(),M=sy(0);return $I(D,M,v,P,R)}}function UI(){if(T()===134){if(ce(),t.hasPrecedingLineBreak()||T()===39)return 0;let v=sy(0);if(!t.hasPrecedingLineBreak()&&v.kind===80&&T()===39)return 1}return 0}function zI(v,D){let P=re(),R=fr(),M=Uk(),ee=Ra(M,oO)?2:0,be=ys(),Ue;if(ie(21)){if(v)Ue=Rb(ee,v);else{let lu=Rb(ee,v);if(!lu)return;Ue=lu}if(!ie(22)&&!v)return}else{if(!v)return;Ue=cu()}let Ce=T()===59,De=bc(59,!1);if(De&&!v&&kb(De))return;let He=De;for(;He?.kind===197;)He=He.type;let mr=He&&uot(He);if(!v&&T()!==39&&(mr||T()!==19))return;let nr=T(),jt=cl(39),Wa=nr===39||nr===19?Jb(Ra(M,oO),D):No();if(!D&&Ce&&T()!==59)return;let Ai=d.createArrowFunction(M,be,Ue,De,jt,Wa);return Jt(X(Ai,P),R)}function Jb(v,D){if(T()===19)return KS(v?2:0);if(T()!==27&&T()!==100&&T()!==86&&Dk()&&!FI())return KS(16|(v?2:0));let P=kt();Zr(!1);let R=Hn;Hn=!1;let M=v?ue(()=>Hi(D)):Ee(()=>Hi(D));return Hn=R,Zr(P),M}function JR(v,D,P){let R=mo(58);if(!R)return v;let M;return X(d.createConditionalExpression(v,R,fi(r,()=>Hi(!1)),M=cl(59),Xz(M)?Hi(P):ua(80,!1,G._0_expected,io(59))),D)}function sy(v){let D=re(),P=XI();return Kb(v,P,D)}function VI(v){return v===103||v===165}function Kb(v,D,P){for(;;){Dr();let R=Nz(T());if(!(T()===43?R>=v:R>v)||T()===103&&ut())break;if(T()===130||T()===152){if(t.hasPrecedingLineBreak())break;{let M=T();ce(),D=M===152?KI(D,no()):GI(D,no())}}else D=Gb(D,la(),sy(R),P)}return D}function JI(){return ut()&&T()===103?!1:Nz(T())>0}function KI(v,D){return X(d.createSatisfiesExpression(v,D),v.pos)}function Gb(v,D,P,R){return X(d.createBinaryExpression(v,D,P),R)}function GI(v,D){return X(d.createAsExpression(v,D),v.pos)}function HI(){let v=re();return X(d.createPrefixUnaryExpression(T(),er(fp)),v)}function ZI(){let v=re();return X(d.createDeleteExpression(er(fp)),v)}function KR(){let v=re();return X(d.createTypeOfExpression(er(fp)),v)}function WI(){let v=re();return X(d.createVoidExpression(er(fp)),v)}function GR(){return T()===135?$r()?!0:ye(nx):!1}function QI(){let v=re();return X(d.createAwaitExpression(er(fp)),v)}function XI(){if(HR()){let P=re(),R=US();return T()===43?Kb(Nz(T()),R,P):R}let v=T(),D=fp();if(T()===43){let P=pd(ae,D.pos),{end:R}=D;D.kind===217?Zn(P,R,G.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(pe.assert(Oz(v)),Zn(P,R,G.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,io(v)))}return D}function fp(){switch(T()){case 40:case 41:case 55:case 54:return HI();case 91:return ZI();case 114:return KR();case 116:return WI();case 30:return pt===1?ly(!0,void 0,void 0,!0):nk();case 135:if(GR())return QI();default:return US()}}function HR(){switch(T()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(pt!==1)return!1;default:return!0}}function US(){if(T()===46||T()===47){let D=re();return X(d.createPrefixUnaryExpression(T(),er(cy)),D)}else if(pt===1&&T()===30&&ye($w))return ly(!0);let v=cy();if(pe.assert(h1(v)),(T()===46||T()===47)&&!t.hasPrecedingLineBreak()){let D=T();return ce(),X(d.createPostfixUnaryExpression(v,D),v.pos)}return v}function cy(){let v=re(),D;return T()===102?ye(dI)?(K|=4194304,D=la()):ye(_I)?(ce(),ce(),D=X(d.createMetaProperty(102,qi()),v),D.name.escapedText==="defer"?(T()===21||T()===30)&&(K|=4194304):K|=8388608):D=zS():D=T()===108?YI():zS(),Xb(v,D)}function zS(){let v=re(),D=Yb();return Za(v,D,!0)}function YI(){let v=re(),D=la();if(T()===30){let P=re(),R=We(JS);R!==void 0&&(Zn(P,re(),G.super_may_not_use_type_arguments),Us()||(D=d.createExpressionWithTypeArguments(D,R)))}return T()===21||T()===25||T()===23?D:(cl(25,G.super_must_be_followed_by_an_argument_list_or_member_access),X(C(D,Of(!0,!0,!0)),v))}function ly(v,D,P,R=!1){let M=re(),ee=QR(v),be;if(ee.kind===287){let Ue=VS(ee),Ce,De=Ue[Ue.length-1];if(De?.kind===285&&!Ym(De.openingElement.tagName,De.closingElement.tagName)&&Ym(ee.tagName,De.closingElement.tagName)){let He=De.children.end,mr=X(d.createJsxElement(De.openingElement,De.children,X(d.createJsxClosingElement(X(S(""),He,He)),He,He)),De.openingElement.pos,He);Ue=ui([...Ue.slice(0,Ue.length-1),mr],Ue.pos,He),Ce=De.closingElement}else Ce=rk(ee,v),Ym(ee.tagName,Ce.tagName)||(P&&nme(P)&&Ym(Ce.tagName,P.tagName)?_s(ee.tagName,G.JSX_element_0_has_no_corresponding_closing_tag,$D(ae,ee.tagName)):_s(Ce.tagName,G.Expected_corresponding_JSX_closing_tag_for_0,$D(ae,ee.tagName)));be=X(d.createJsxElement(ee,Ue,Ce),M)}else ee.kind===290?be=X(d.createJsxFragment(ee,VS(ee),t8(v)),M):(pe.assert(ee.kind===286),be=ee);if(!R&&v&&T()===30){let Ue=typeof D>"u"?be.pos:D,Ce=We(()=>ly(!0,Ue));if(Ce){let De=ua(28,!1);return Xfe(De,Ce.pos,0),Zn(pd(ae,Ue),Ce.end,G.JSX_expressions_must_have_one_parent_element),X(d.createBinaryExpression(be,De,Ce),M)}}return be}function Hb(){let v=re(),D=d.createJsxText(t.getTokenValue(),Ct===13);return Ct=t.scanJsxToken(),X(D,v)}function ZR(v,D){switch(D){case 1:if(oot(v))_s(v,G.JSX_fragment_has_no_corresponding_closing_tag);else{let P=v.tagName,R=Math.min(pd(ae,P.pos),P.end);Zn(R,P.end,G.JSX_element_0_has_no_corresponding_closing_tag,$D(ae,v.tagName))}return;case 31:case 7:return;case 12:case 13:return Hb();case 19:return ek(!1);case 30:return ly(!1,void 0,v);default:return pe.assertNever(D)}}function VS(v){let D=[],P=re(),R=rn;for(rn|=16384;;){let M=ZR(v,Ct=t.reScanJsxToken());if(!M||(D.push(M),nme(v)&&M?.kind===285&&!Ym(M.openingElement.tagName,M.closingElement.tagName)&&Ym(v.tagName,M.closingElement.tagName)))break}return rn=R,ui(D,P)}function WR(){let v=re();return X(d.createJsxAttributes(qs(13,tk)),v)}function QR(v){let D=re();if(ie(30),T()===32)return sl(),X(d.createJsxOpeningFragment(),D);let P=Zb(),R=(bt&524288)===0?WS():void 0,M=WR(),ee;return T()===32?(sl(),ee=d.createJsxOpeningElement(P,R,M)):(ie(44),ie(32,void 0,!1)&&(v?ce():sl()),ee=d.createJsxSelfClosingElement(P,R,M)),X(ee,D)}function Zb(){let v=re(),D=XR();if(_ye(D))return D;let P=D;for(;tr(25);)P=X(C(P,Of(!0,!1,!1)),v);return P}function XR(){let v=re();Gi();let D=T()===110,P=Cf();return tr(59)?(Gi(),X(d.createJsxNamespacedName(P,Cf()),v)):D?X(d.createToken(110),v):P}function ek(v){let D=re();if(!ie(19))return;let P,R;return T()!==20&&(v||(P=mo(26)),R=ti()),v?ie(20):ie(20,void 0,!1)&&sl(),X(d.createJsxExpression(P,R),D)}function tk(){if(T()===19)return e8();let v=re();return X(d.createJsxAttribute(YR(),Wb()),v)}function Wb(){if(T()===64){if(ey()===11)return ll();if(T()===19)return ek(!0);if(T()===30)return ly(!0);Ft(G.or_JSX_element_expected)}}function YR(){let v=re();Gi();let D=Cf();return tr(59)?(Gi(),X(d.createJsxNamespacedName(D,Cf()),v)):D}function e8(){let v=re();ie(19),ie(26);let D=ti();return ie(20),X(d.createJsxSpreadAttribute(D),v)}function rk(v,D){let P=re();ie(31);let R=Zb();return ie(32,void 0,!1)&&(D||!Ym(v.tagName,R)?ce():sl()),X(d.createJsxClosingElement(R),P)}function t8(v){let D=re();return ie(31),ie(32,G.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(v?ce():sl()),X(d.createJsxJsxClosingFragment(),D)}function nk(){pe.assert(pt!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let v=re();ie(30);let D=no();ie(32);let P=fp();return X(d.createTypeAssertion(D,P),v)}function r8(){return ce(),Zo(T())||T()===23||Us()}function ok(){return T()===29&&ye(r8)}function Qb(v){if(v.flags&64)return!0;if(cO(v)){let D=v.expression;for(;cO(D)&&!(D.flags&64);)D=D.expression;if(D.flags&64){for(;cO(v);)v.flags|=64,v=v.expression;return!0}}return!1}function ik(v,D,P){let R=Of(!0,!0,!0),M=P||Qb(D),ee=M?F(D,P,R):C(D,R);if(M&&jg(ee.name)&&_s(ee.name,G.An_optional_chain_cannot_contain_private_identifiers),Wnt(D)&&D.typeArguments){let be=D.typeArguments.pos-1,Ue=pd(ae,D.typeArguments.end)+1;Zn(be,Ue,G.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return X(ee,v)}function n8(v,D,P){let R;if(T()===24)R=ua(80,!0,G.An_element_access_expression_should_take_an_argument);else{let ee=co(ti);TO(ee)&&(ee.text=jd(ee.text)),R=ee}ie(24);let M=P||Qb(D)?$(D,P,R):O(D,R);return X(M,v)}function Za(v,D,P){for(;;){let R,M=!1;if(P&&ok()?(R=cl(29),M=Zo(T())):M=tr(25),M){D=ik(v,D,R);continue}if((R||!Tn())&&tr(23)){D=n8(v,D,R);continue}if(Us()){D=!R&&D.kind===234?Vd(v,D.expression,R,D.typeArguments):Vd(v,D,R,void 0);continue}if(!R){if(T()===54&&!t.hasPrecedingLineBreak()){ce(),D=X(d.createNonNullExpression(D),v);continue}let ee=We(JS);if(ee){D=X(d.createExpressionWithTypeArguments(D,ee),v);continue}}return D}}function Us(){return T()===15||T()===16}function Vd(v,D,P,R){let M=d.createTaggedTemplateExpression(D,R,T()===15?(mi(!0),ll()):LS(!0));return(P||D.flags&64)&&(M.flags|=64),M.questionDotToken=P,X(M,v)}function Xb(v,D){for(;;){D=Za(v,D,!0);let P,R=mo(29);if(R&&(P=We(JS),Us())){D=Vd(v,D,R,P);continue}if(P||T()===21){!R&&D.kind===234&&(P=D.typeArguments,D=D.expression);let M=ak(),ee=R||Qb(D)?U(D,R,P,M):N(D,P,M);D=X(ee,v);continue}if(R){let M=ua(80,!1,G.Identifier_expected);D=X(F(D,R,M),v)}break}return D}function ak(){ie(21);let v=hs(11,lk);return ie(22),v}function JS(){if((bt&524288)!==0||ei()!==30)return;ce();let v=hs(20,no);if(Dr()===32)return ce(),v&&o8()?v:void 0}function o8(){switch(T()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||JI()||!dp()}function Yb(){switch(T()){case 15:t.getTokenFlags()&26656&&mi(!1);case 9:case 10:case 11:return ll();case 110:case 108:case 106:case 112:case 97:return la();case 21:return i8();case 23:return uk();case 19:return ex();case 134:if(!ye(Tk))break;return tx();case 60:return D8();case 86:return A8();case 100:return tx();case 105:return dk();case 44:case 69:if(nn()===14)return ll();break;case 16:return LS(!1);case 81:return PS()}return No(G.Expression_expected)}function i8(){let v=re(),D=fr();ie(21);let P=co(ti);return ie(22),Jt(X(Te(P),v),D)}function sk(){let v=re();ie(26);let D=Hi(!0);return X(d.createSpreadElement(D),v)}function ck(){return T()===26?sk():T()===28?X(d.createOmittedExpression(),re()):Hi(!0)}function lk(){return fi(r,ck)}function uk(){let v=re(),D=t.getTokenStart(),P=ie(23),R=t.hasPrecedingLineBreak(),M=hs(15,ck);return Md(23,24,P,D),X(I(M,R),v)}function pk(){let v=re(),D=fr();if(mo(26)){let De=Hi(!0);return Jt(X(d.createSpreadAssignment(De),v),D)}let P=xc(!0);if(Pf(139))return $f(v,D,P,178,0);if(Pf(153))return $f(v,D,P,179,0);let R=mo(42),M=ht(),ee=Bd(),be=mo(58),Ue=mo(54);if(R||T()===21||T()===30)return Mk(v,D,P,R,ee,be,Ue);let Ce;if(M&&T()!==59){let De=mo(64),He=De?co(()=>Hi(!0)):void 0;Ce=d.createShorthandPropertyAssignment(ee,He),Ce.equalsToken=De}else{ie(59);let De=co(()=>Hi(!0));Ce=d.createPropertyAssignment(ee,De)}return Ce.modifiers=P,Ce.questionToken=be,Ce.exclamationToken=Ue,Jt(X(Ce,v),D)}function ex(){let v=re(),D=t.getTokenStart(),P=ie(19),R=t.hasPrecedingLineBreak(),M=hs(12,pk,!0);return Md(19,20,P,D),X(E(M,R),v)}function tx(){let v=Tn();dn(!1);let D=re(),P=fr(),R=xc(!1);ie(100);let M=mo(42),ee=M?1:0,be=Ra(R,oO)?2:0,Ue=ee&&be?we(uy):ee?al(uy):be?ue(uy):uy(),Ce=ys(),De=ul(ee|be),He=bc(59,!1),mr=KS(ee|be);dn(v);let nr=d.createFunctionExpression(R,M,Ue,Ce,De,He,mr);return Jt(X(nr,D),P)}function uy(){return br()?vb():void 0}function dk(){let v=re();if(ie(105),tr(25)){let ee=qi();return X(d.createMetaProperty(105,ee),v)}let D=re(),P=Za(D,Yb(),!1),R;P.kind===234&&(R=P.typeArguments,P=P.expression),T()===29&&Ft(G.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,$D(ae,P));let M=T()===21?ak():void 0;return X(ge(P,R,M),v)}function Jd(v,D){let P=re(),R=fr(),M=t.getTokenStart(),ee=ie(19,D);if(ee||v){let be=t.hasPrecedingLineBreak(),Ue=qs(1,pa);Md(19,20,ee,M);let Ce=Jt(X(ke(Ue,be),P),R);return T()===64&&(Ft(G.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),ce()),Ce}else{let be=cu();return Jt(X(ke(be,void 0),P),R)}}function KS(v,D){let P=kt();Zr(!!(v&1));let R=$r();ro(!!(v&2));let M=Hn;Hn=!1;let ee=Tn();ee&&dn(!1);let be=Jd(!!(v&16),D);return ee&&dn(!0),Hn=M,Zr(P),ro(R),be}function _k(){let v=re(),D=fr();return ie(27),Jt(X(d.createEmptyStatement(),v),D)}function a8(){let v=re(),D=fr();ie(101);let P=t.getTokenStart(),R=ie(21),M=co(ti);Md(21,22,R,P);let ee=pa(),be=tr(93)?pa():void 0;return Jt(X(xe(M,ee,be),v),D)}function fk(){let v=re(),D=fr();ie(92);let P=pa();ie(117);let R=t.getTokenStart(),M=ie(21),ee=co(ti);return Md(21,22,M,R),tr(27),Jt(X(d.createDoStatement(P,ee),v),D)}function s8(){let v=re(),D=fr();ie(117);let P=t.getTokenStart(),R=ie(21),M=co(ti);Md(21,22,R,P);let ee=pa();return Jt(X(Rt(M,ee),v),D)}function mk(){let v=re(),D=fr();ie(99);let P=mo(135);ie(21);let R;T()!==27&&(T()===115||T()===121||T()===87||T()===160&&ye(wk)||T()===135&&ye(ox)?R=Rk(!0):R=$d(ti));let M;if(P?ie(165):tr(165)){let ee=co(()=>Hi(!0));ie(22),M=Yt(P,R,ee,pa())}else if(tr(103)){let ee=co(ti);ie(22),M=d.createForInStatement(R,ee,pa())}else{ie(27);let ee=T()!==27&&T()!==22?co(ti):void 0;ie(27);let be=T()!==22?co(ti):void 0;ie(22),M=Vt(R,ee,be,pa())}return Jt(X(M,v),D)}function hk(v){let D=re(),P=fr();ie(v===253?83:88);let R=iu()?void 0:No();ba();let M=v===253?d.createBreakStatement(R):d.createContinueStatement(R);return Jt(X(M,D),P)}function yk(){let v=re(),D=fr();ie(107);let P=iu()?void 0:co(ti);return ba(),Jt(X(d.createReturnStatement(P),v),D)}function c8(){let v=re(),D=fr();ie(118);let P=t.getTokenStart(),R=ie(21),M=co(ti);Md(21,22,R,P);let ee=Uo(67108864,pa);return Jt(X(d.createWithStatement(M,ee),v),D)}function gk(){let v=re(),D=fr();ie(84);let P=co(ti);ie(59);let R=qs(3,pa);return Jt(X(d.createCaseClause(P,R),v),D)}function l8(){let v=re();ie(90),ie(59);let D=qs(3,pa);return X(d.createDefaultClause(D),v)}function u8(){return T()===84?gk():l8()}function Sk(){let v=re();ie(19);let D=qs(2,u8);return ie(20),X(d.createCaseBlock(D),v)}function p8(){let v=re(),D=fr();ie(109),ie(21);let P=co(ti);ie(22);let R=Sk();return Jt(X(d.createSwitchStatement(P,R),v),D)}function vk(){let v=re(),D=fr();ie(111);let P=t.hasPrecedingLineBreak()?void 0:co(ti);return P===void 0&&(fo++,P=X(S(""),re())),CS()||zo(P),Jt(X(d.createThrowStatement(P),v),D)}function d8(){let v=re(),D=fr();ie(113);let P=Jd(!1),R=T()===85?bk():void 0,M;return(!R||T()===98)&&(ie(98,G.catch_or_finally_expected),M=Jd(!1)),Jt(X(d.createTryStatement(P,R,M),v),D)}function bk(){let v=re();ie(85);let D;tr(21)?(D=HS(),ie(22)):D=void 0;let P=Jd(!1);return X(d.createCatchClause(D,P),v)}function _8(){let v=re(),D=fr();return ie(89),ba(),Jt(X(d.createDebuggerStatement(),v),D)}function xk(){let v=re(),D=fr(),P,R=T()===21,M=co(ti);return kn(M)&&tr(59)?P=d.createLabeledStatement(M,pa()):(CS()||zo(M),P=me(M),R&&(D=!1)),Jt(X(P,v),D)}function rx(){return ce(),Zo(T())&&!t.hasPrecedingLineBreak()}function Ek(){return ce(),T()===86&&!t.hasPrecedingLineBreak()}function Tk(){return ce(),T()===100&&!t.hasPrecedingLineBreak()}function nx(){return ce(),(Zo(T())||T()===9||T()===10||T()===11)&&!t.hasPrecedingLineBreak()}function f8(){for(;;)switch(T()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Ik();case 135:return ix();case 120:case 156:case 166:return zR();case 144:case 145:return g8();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let v=T();if(ce(),t.hasPrecedingLineBreak())return!1;if(v===138&&T()===156)return!0;continue;case 162:return ce(),T()===19||T()===80||T()===95;case 102:return ce(),T()===166||T()===11||T()===42||T()===19||Zo(T());case 95:let D=ce();if(D===156&&(D=ye(ce)),D===64||D===42||D===19||D===90||D===130||D===60)return!0;continue;case 126:ce();continue;default:return!1}}function py(){return ye(f8)}function Dk(){switch(T()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return py()||ye(fI);case 87:case 95:return py();case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return py()||!ye(rx);default:return dp()}}function Ak(){return ce(),br()||T()===19||T()===23}function m8(){return ye(Ak)}function wk(){return GS(!0)}function h8(){return ce(),T()===64||T()===27||T()===59}function GS(v){return ce(),v&&T()===165?ye(h8):(br()||T()===19)&&!t.hasPrecedingLineBreak()}function Ik(){return ye(GS)}function ox(v){return ce()===160?GS(v):!1}function ix(){return ye(ox)}function pa(){switch(T()){case 27:return _k();case 19:return Jd(!1);case 115:return fy(re(),fr(),void 0);case 121:if(m8())return fy(re(),fr(),void 0);break;case 135:if(ix())return fy(re(),fr(),void 0);break;case 160:if(Ik())return fy(re(),fr(),void 0);break;case 100:return sx(re(),fr(),void 0);case 86:return ux(re(),fr(),void 0);case 101:return a8();case 92:return fk();case 117:return s8();case 99:return mk();case 88:return hk(252);case 83:return hk(253);case 107:return yk();case 118:return c8();case 109:return p8();case 111:return vk();case 113:case 85:case 98:return d8();case 89:return _8();case 60:return dy();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(py())return dy();break}return xk()}function kk(v){return v.kind===138}function dy(){let v=re(),D=fr(),P=xc(!0);if(Ra(P,kk)){let R=y8(v);if(R)return R;for(let M of P)M.flags|=33554432;return Uo(33554432,()=>Ck(v,D,P))}else return Ck(v,D,P)}function y8(v){return Uo(33554432,()=>{let D=FS(rn,v);if(D)return Bw(D)})}function Ck(v,D,P){switch(T()){case 115:case 121:case 87:case 160:case 135:return fy(v,D,P);case 100:return sx(v,D,P);case 86:return ux(v,D,P);case 120:return C8(v,D,P);case 156:return P8(v,D,P);case 94:return O8(v,D,P);case 162:case 144:case 145:return N8(v,D,P);case 102:return my(v,D,P);case 95:switch(ce(),T()){case 90:case 64:return tC(v,D,P);case 130:return L8(v,D,P);default:return eC(v,D,P)}default:if(P){let R=ua(283,!0,G.Declaration_expected);return eV(R,v),R.modifiers=P,R}return}}function Pk(){return ce()===11}function Ok(){return ce(),T()===161||T()===64}function g8(){return ce(),!t.hasPrecedingLineBreak()&&(ht()||T()===11)}function _y(v,D){if(T()!==19){if(v&4){jS();return}if(iu()){ba();return}}return KS(v,D)}function S8(){let v=re();if(T()===28)return X(d.createOmittedExpression(),v);let D=mo(26),P=Lf(),R=_p();return X(d.createBindingElement(D,void 0,P,R),v)}function Nk(){let v=re(),D=mo(26),P=br(),R=Bd(),M;P&&T()!==59?(M=R,R=void 0):(ie(59),M=Lf());let ee=_p();return X(d.createBindingElement(D,R,M,ee),v)}function v8(){let v=re();ie(19);let D=co(()=>hs(9,Nk));return ie(20),X(d.createObjectBindingPattern(D),v)}function Fk(){let v=re();ie(23);let D=co(()=>hs(10,S8));return ie(24),X(d.createArrayBindingPattern(D),v)}function ax(){return T()===19||T()===23||T()===81||br()}function Lf(v){return T()===23?Fk():T()===19?v8():vb(v)}function b8(){return HS(!0)}function HS(v){let D=re(),P=fr(),R=Lf(G.Private_identifiers_are_not_allowed_in_variable_declarations),M;v&&R.kind===80&&T()===54&&!t.hasPrecedingLineBreak()&&(M=la());let ee=pp(),be=VI(T())?void 0:_p(),Ue=vt(R,M,ee,be);return Jt(X(Ue,D),P)}function Rk(v){let D=re(),P=0;switch(T()){case 115:break;case 121:P|=1;break;case 87:P|=2;break;case 160:P|=4;break;case 135:pe.assert(ix()),P|=6,ce();break;default:pe.fail()}ce();let R;if(T()===165&&ye(Lk))R=cu();else{let M=ut();Et(v),R=hs(8,v?HS:b8),Et(M)}return X(Fr(R,P),D)}function Lk(){return ny()&&ce()===22}function fy(v,D,P){let R=Rk(!1);ba();let M=Ve(P,R);return Jt(X(M,v),D)}function sx(v,D,P){let R=$r(),M=zc(P);ie(100);let ee=mo(42),be=M&2048?uy():vb(),Ue=ee?1:0,Ce=M&1024?2:0,De=ys();M&32&&ro(!0);let He=ul(Ue|Ce),mr=bc(59,!1),nr=_y(Ue|Ce,G.or_expected);ro(R);let jt=d.createFunctionDeclaration(P,ee,be,De,He,mr,nr);return Jt(X(jt,v),D)}function x8(){if(T()===137)return ie(137);if(T()===11&&ye(ce)===21)return We(()=>{let v=ll();return v.text==="constructor"?v:void 0})}function $k(v,D,P){return We(()=>{if(x8()){let R=ys(),M=ul(0),ee=bc(59,!1),be=_y(0,G.or_expected),Ue=d.createConstructorDeclaration(P,M,be);return Ue.typeParameters=R,Ue.type=ee,Jt(X(Ue,v),D)}})}function Mk(v,D,P,R,M,ee,be,Ue){let Ce=R?1:0,De=Ra(P,oO)?2:0,He=ys(),mr=ul(Ce|De),nr=bc(59,!1),jt=_y(Ce|De,Ue),Wa=d.createMethodDeclaration(P,R,M,ee,He,mr,nr,jt);return Wa.exclamationToken=be,Jt(X(Wa,v),D)}function ZS(v,D,P,R,M){let ee=!M&&!t.hasPrecedingLineBreak()?mo(54):void 0,be=pp(),Ue=fi(90112,_p);yR(R,be,Ue);let Ce=d.createPropertyDeclaration(P,R,M||ee,be,Ue);return Jt(X(Ce,v),D)}function cx(v,D,P){let R=mo(42),M=Bd(),ee=mo(58);return R||T()===21||T()===30?Mk(v,D,P,R,M,ee,void 0,G.or_expected):ZS(v,D,P,M,ee)}function $f(v,D,P,R,M){let ee=Bd(),be=ys(),Ue=ul(0),Ce=bc(59,!1),De=_y(M),He=R===178?d.createGetAccessorDeclaration(P,ee,Ue,Ce,De):d.createSetAccessorDeclaration(P,ee,Ue,De);return He.typeParameters=be,vO(He)&&(He.type=Ce),Jt(X(He,v),D)}function jk(){let v;if(T()===60)return!0;for(;Z_(T());){if(v=T(),_tt(v))return!0;ce()}if(T()===42||(up()&&(v=T(),ce()),T()===23))return!0;if(v!==void 0){if(!th(v)||v===153||v===139)return!0;switch(T()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return iu()}}return!1}function E8(v,D,P){cl(126);let R=T8(),M=Jt(X(d.createClassStaticBlockDeclaration(R),v),D);return M.modifiers=P,M}function T8(){let v=kt(),D=$r();Zr(!1),ro(!0);let P=Jd(!1);return Zr(v),ro(D),P}function Bk(){if($r()&&T()===135){let v=re(),D=No(G.Expression_expected);ce();let P=Za(v,D,!0);return Xb(v,P)}return cy()}function qk(){let v=re();if(!tr(60))return;let D=Yh(Bk);return X(d.createDecorator(D),v)}function lx(v,D,P){let R=re(),M=T();if(T()===87&&D){if(!We(bb))return}else if(P&&T()===126&&ye(QS)||v&&T()===126||!Rw())return;return X(A(M),R)}function xc(v,D,P){let R=re(),M,ee,be,Ue=!1,Ce=!1,De=!1;if(v&&T()===60)for(;ee=qk();)M=sc(M,ee);for(;be=lx(Ue,D,P);)be.kind===126&&(Ue=!0),M=sc(M,be),Ce=!0;if(Ce&&v&&T()===60)for(;ee=qk();)M=sc(M,ee),De=!0;if(De)for(;be=lx(Ue,D,P);)be.kind===126&&(Ue=!0),M=sc(M,be);return M&&ui(M,R)}function Uk(){let v;if(T()===134){let D=re();ce();let P=X(A(134),D);v=ui([P],D)}return v}function zk(){let v=re(),D=fr();if(T()===27)return ce(),Jt(X(d.createSemicolonClassElement(),v),D);let P=xc(!0,!0,!0);if(T()===126&&ye(QS))return E8(v,D,P);if(Pf(139))return $f(v,D,P,178,0);if(Pf(153))return $f(v,D,P,179,0);if(T()===137||T()===11){let R=$k(v,D,P);if(R)return R}if(zd())return Lb(v,D,P);if(Zo(T())||T()===11||T()===9||T()===10||T()===42||T()===23)if(Ra(P,kk)){for(let R of P)R.flags|=33554432;return Uo(33554432,()=>cx(v,D,P))}else return cx(v,D,P);if(P){let R=ua(80,!0,G.Declaration_expected);return ZS(v,D,P,R,void 0)}return pe.fail("Should not have attempted to parse class member declaration.")}function D8(){let v=re(),D=fr(),P=xc(!0);if(T()===86)return px(v,D,P,232);let R=ua(283,!0,G.Expression_expected);return eV(R,v),R.modifiers=P,R}function A8(){return px(re(),fr(),void 0,232)}function ux(v,D,P){return px(v,D,P,264)}function px(v,D,P,R){let M=$r();ie(86);let ee=w8(),be=ys();Ra(P,ynt)&&ro(!0);let Ue=Jk(),Ce;ie(19)?(Ce=Kk(),ie(20)):Ce=cu(),ro(M);let De=R===264?d.createClassDeclaration(P,ee,be,Ue,Ce):d.createClassExpression(P,ee,be,Ue,Ce);return Jt(X(De,v),D)}function w8(){return br()&&!Vk()?au(br()):void 0}function Vk(){return T()===119&&ye(DR)}function Jk(){if(dx())return qs(22,I8)}function I8(){let v=re(),D=T();pe.assert(D===96||D===119),ce();let P=hs(7,k8);return X(d.createHeritageClause(D,P),v)}function k8(){let v=re(),D=cy();if(D.kind===234)return D;let P=WS();return X(d.createExpressionWithTypeArguments(D,P),v)}function WS(){return T()===30?qd(20,no,30,32):void 0}function dx(){return T()===96||T()===119}function Kk(){return qs(5,zk)}function C8(v,D,P){ie(120);let R=No(),M=ys(),ee=Jk(),be=hI(),Ue=d.createInterfaceDeclaration(P,R,M,ee,be);return Jt(X(Ue,v),D)}function P8(v,D,P){ie(156),t.hasPrecedingLineBreak()&&Ft(G.Line_break_not_permitted_here);let R=No(),M=ys();ie(64);let ee=T()===141&&We(xI)||no();ba();let be=d.createTypeAliasDeclaration(P,R,M,ee);return Jt(X(be,v),D)}function _x(){let v=re(),D=fr(),P=Bd(),R=co(_p);return Jt(X(d.createEnumMember(P,R),v),D)}function O8(v,D,P){ie(94);let R=No(),M;ie(19)?(M=Tt(()=>hs(6,_x)),ie(20)):M=cu();let ee=d.createEnumDeclaration(P,R,M);return Jt(X(ee,v),D)}function fx(){let v=re(),D;return ie(19)?(D=qs(1,pa),ie(20)):D=cu(),X(d.createModuleBlock(D),v)}function Gk(v,D,P,R){let M=R&32,ee=R&8?qi():No(),be=tr(25)?Gk(re(),!1,void 0,8|M):fx(),Ue=d.createModuleDeclaration(P,ee,be,R);return Jt(X(Ue,v),D)}function Hk(v,D,P){let R=0,M;T()===162?(M=No(),R|=2048):(M=ll(),M.text=jd(M.text));let ee;T()===19?ee=fx():ba();let be=d.createModuleDeclaration(P,M,ee,R);return Jt(X(be,v),D)}function N8(v,D,P){let R=0;if(T()===162)return Hk(v,D,P);if(tr(145))R|=32;else if(ie(144),T()===11)return Hk(v,D,P);return Gk(v,D,P,R)}function F8(){return T()===149&&ye(Zk)}function Zk(){return ce()===21}function QS(){return ce()===19}function R8(){return ce()===44}function L8(v,D,P){ie(130),ie(145);let R=No();ba();let M=d.createNamespaceExportDeclaration(R);return M.modifiers=P,Jt(X(M,v),D)}function my(v,D,P){ie(102);let R=t.getTokenFullStart(),M;ht()&&(M=No());let ee;if(M?.escapedText==="type"&&(T()!==161||ht()&&ye(Ok))&&(ht()||Kd())?(ee=156,M=ht()?No():void 0):M?.escapedText==="defer"&&(T()===161?!ye(Pk):T()!==28&&T()!==64)&&(ee=166,M=ht()?No():void 0),M&&!M8()&&ee!==166)return j8(v,D,P,M,ee===156);let be=Wk(M,R,ee,void 0),Ue=yy(),Ce=Qk();ba();let De=d.createImportDeclaration(P,be,Ue,Ce);return Jt(X(De,v),D)}function Wk(v,D,P,R=!1){let M;return(v||T()===42||T()===19)&&(M=B8(v,D,P,R),ie(161)),M}function Qk(){let v=T();if((v===118||v===132)&&!t.hasPrecedingLineBreak())return mx(v)}function $8(){let v=re(),D=Zo(T())?qi():Nf(11);ie(59);let P=Hi(!0);return X(d.createImportAttribute(D,P),v)}function mx(v,D){let P=re();D||ie(v);let R=t.getTokenStart();if(ie(19)){let M=t.hasPrecedingLineBreak(),ee=hs(24,$8,!0);if(!ie(20)){let be=_1(Ye);be&&be.code===G._0_expected.code&&tO(be,r1(le,ae,R,1,G.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return X(d.createImportAttributes(ee,M,v),P)}else{let M=ui([],re(),void 0,!1);return X(d.createImportAttributes(M,!1,v),P)}}function Kd(){return T()===42||T()===19}function M8(){return T()===28||T()===161}function j8(v,D,P,R,M){ie(64);let ee=hy();ba();let be=d.createImportEqualsDeclaration(P,M,R,ee);return Jt(X(be,v),D)}function B8(v,D,P,R){let M;return(!v||tr(28))&&(R&&t.setSkipJsDocLeadingAsterisks(!0),T()===42?M=U8():M=Xk(276),R&&t.setSkipJsDocLeadingAsterisks(!1)),X(d.createImportClause(P,v,M),D)}function hy(){return F8()?q8():Ud(!1)}function q8(){let v=re();ie(149),ie(21);let D=yy();return ie(22),X(d.createExternalModuleReference(D),v)}function yy(){if(T()===11){let v=ll();return v.text=jd(v.text),v}else return ti()}function U8(){let v=re();ie(42),ie(130);let D=No();return X(d.createNamespaceImport(D),v)}function hx(){return Zo(T())||T()===11}function Mf(v){return T()===11?ll():v()}function Xk(v){let D=re(),P=v===276?d.createNamedImports(qd(23,z8,19,20)):d.createNamedExports(qd(23,jf,19,20));return X(P,D)}function jf(){let v=fr();return Jt(Yk(282),v)}function z8(){return Yk(277)}function Yk(v){let D=re(),P=th(T())&&!ht(),R=t.getTokenStart(),M=t.getTokenEnd(),ee=!1,be,Ue=!0,Ce=Mf(qi);if(Ce.kind===80&&Ce.escapedText==="type")if(T()===130){let mr=qi();if(T()===130){let nr=qi();hx()?(ee=!0,be=mr,Ce=Mf(He),Ue=!1):(be=Ce,Ce=nr,Ue=!1)}else hx()?(be=Ce,Ue=!1,Ce=Mf(He)):(ee=!0,Ce=mr)}else hx()&&(ee=!0,Ce=Mf(He));Ue&&T()===130&&(be=Ce,ie(130),Ce=Mf(He)),v===277&&(Ce.kind!==80?(Zn(pd(ae,Ce.pos),Ce.end,G.Identifier_expected),Ce=ih(ua(80,!1),Ce.pos,Ce.pos)):P&&Zn(R,M,G.Identifier_expected));let De=v===277?d.createImportSpecifier(ee,be,Ce):d.createExportSpecifier(ee,be,Ce);return X(De,D);function He(){return P=th(T())&&!ht(),R=t.getTokenStart(),M=t.getTokenEnd(),qi()}}function V8(v){return X(d.createNamespaceExport(Mf(qi)),v)}function eC(v,D,P){let R=$r();ro(!0);let M,ee,be,Ue=tr(156),Ce=re();tr(42)?(tr(130)&&(M=V8(Ce)),ie(161),ee=yy()):(M=Xk(280),(T()===161||T()===11&&!t.hasPrecedingLineBreak())&&(ie(161),ee=yy()));let De=T();ee&&(De===118||De===132)&&!t.hasPrecedingLineBreak()&&(be=mx(De)),ba(),ro(R);let He=d.createExportDeclaration(P,Ue,M,ee,be);return Jt(X(He,v),D)}function tC(v,D,P){let R=$r();ro(!0);let M;tr(64)?M=!0:ie(90);let ee=Hi(!0);ba(),ro(R);let be=d.createExportAssignment(P,M,ee);return Jt(X(be,v),D)}let yx;(v=>{v[v.SourceElements=0]="SourceElements",v[v.BlockStatements=1]="BlockStatements",v[v.SwitchClauses=2]="SwitchClauses",v[v.SwitchClauseStatements=3]="SwitchClauseStatements",v[v.TypeMembers=4]="TypeMembers",v[v.ClassMembers=5]="ClassMembers",v[v.EnumMembers=6]="EnumMembers",v[v.HeritageClauseElement=7]="HeritageClauseElement",v[v.VariableDeclarations=8]="VariableDeclarations",v[v.ObjectBindingElements=9]="ObjectBindingElements",v[v.ArrayBindingElements=10]="ArrayBindingElements",v[v.ArgumentExpressions=11]="ArgumentExpressions",v[v.ObjectLiteralMembers=12]="ObjectLiteralMembers",v[v.JsxAttributes=13]="JsxAttributes",v[v.JsxChildren=14]="JsxChildren",v[v.ArrayLiteralMembers=15]="ArrayLiteralMembers",v[v.Parameters=16]="Parameters",v[v.JSDocParameters=17]="JSDocParameters",v[v.RestProperties=18]="RestProperties",v[v.TypeParameters=19]="TypeParameters",v[v.TypeArguments=20]="TypeArguments",v[v.TupleElementTypes=21]="TupleElementTypes",v[v.HeritageClauses=22]="HeritageClauses",v[v.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",v[v.ImportAttributes=24]="ImportAttributes",v[v.JSDocComment=25]="JSDocComment",v[v.Count=26]="Count"})(yx||(yx={}));let rC;(v=>{v[v.False=0]="False",v[v.True=1]="True",v[v.Unknown=2]="Unknown"})(rC||(rC={}));let nC;(v=>{function D(De,He,mr){nl("file.js",De,99,void 0,1,0),t.setText(De,He,mr),Ct=t.scan();let nr=P(),jt=qe("file.js",99,1,!1,[],A(1),0,S1),Wa=Ig(Ye,jt);return lt&&(jt.jsDocDiagnostics=Ig(lt,jt)),ol(),nr?{jsDocTypeExpression:nr,diagnostics:Wa}:void 0}v.parseJSDocTypeExpressionForTests=D;function P(De){let He=re(),mr=(De?tr:ie)(19),nr=Uo(16777216,Ob);(!De||mr)&&Ow(20);let jt=d.createJSDocTypeExpression(nr);return oe(jt),X(jt,He)}v.parseJSDocTypeExpression=P;function R(){let De=re(),He=tr(19),mr=re(),nr=Ud(!1);for(;T()===81;)hi(),vr(),nr=X(d.createJSDocMemberName(nr,No()),mr);He&&Ow(20);let jt=d.createJSDocNameReference(nr);return oe(jt),X(jt,De)}v.parseJSDocNameReference=R;function M(De,He,mr){nl("",De,99,void 0,1,0);let nr=Uo(16777216,()=>Ce(He,mr)),jt=Ig(Ye,{languageVariant:0,text:De});return ol(),nr?{jsDoc:nr,diagnostics:jt}:void 0}v.parseIsolatedJSDocComment=M;function ee(De,He,mr){let nr=Ct,jt=Ye.length,Wa=Di,Ai=Uo(16777216,()=>Ce(He,mr));return $V(Ai,De),bt&524288&&(lt||(lt=[]),lc(lt,Ye,jt)),Ct=nr,Ye.length=jt,Di=Wa,Ai}v.parseJSDocComment=ee;let be;(De=>{De[De.BeginningOfLine=0]="BeginningOfLine",De[De.SawAsterisk=1]="SawAsterisk",De[De.SavingComments=2]="SavingComments",De[De.SavingBackticks=3]="SavingBackticks"})(be||(be={}));let Ue;(De=>{De[De.Property=1]="Property",De[De.Parameter=2]="Parameter",De[De.CallbackParameter=4]="CallbackParameter"})(Ue||(Ue={}));function Ce(De=0,He){let mr=ae,nr=He===void 0?mr.length:De+He;if(He=nr-De,pe.assert(De>=0),pe.assert(De<=nr),pe.assert(nr<=mr.length),!Rot(mr,De))return;let jt,Wa,Ai,lu,uu,Ec=[],Gd=[],Kt=rn;rn|=1<<25;let Dn=t.scanRange(De+3,He-5,mp);return rn=Kt,Dn;function mp(){let te=1,Se,ve=De-(mr.lastIndexOf(` -`,De)+1)+4;function $e(hr){Se||(Se=ve),Ec.push(hr),ve+=hr.length}for(vr();by(5););by(4)&&(te=0,ve=0);e:for(;;){switch(T()){case 60:J8(Ec),uu||(uu=re()),xr(l(ve)),te=0,Se=void 0;break;case 4:Ec.push(t.getTokenText()),te=0,ve=0;break;case 42:let hr=t.getTokenText();te===1?(te=2,$e(hr)):(pe.assert(te===0),te=1,ve+=hr.length);break;case 5:pe.assert(te!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let lo=t.getTokenText();Se!==void 0&&ve+lo.length>Se&&Ec.push(lo.slice(Se-ve)),ve+=lo.length;break;case 1:break e;case 82:te=2,$e(t.getTokenValue());break;case 19:te=2;let gs=t.getTokenFullStart(),Qa=t.getTokenEnd()-1,xa=b(Qa);if(xa){lu||gy(Ec),Gd.push(X(d.createJSDocText(Ec.join("")),lu??De,gs)),Gd.push(xa),Ec=[],lu=t.getTokenEnd();break}default:te=2,$e(t.getTokenText());break}te===2?Ha(!1):vr()}let Re=Ec.join("").trimEnd();Gd.length&&Re.length&&Gd.push(X(d.createJSDocText(Re),lu??De,uu)),Gd.length&&jt&&pe.assertIsDefined(uu,"having parsed tags implies that the end of the comment span should be set");let Gt=jt&&ui(jt,Wa,Ai);return X(d.createJSDocComment(Gd.length?ui(Gd,De,uu):Re.length?Re:void 0,Gt),De,nr)}function gy(te){for(;te.length&&(te[0]===` -`||te[0]==="\r");)te.shift()}function J8(te){for(;te.length;){let Se=te[te.length-1].trimEnd();if(Se==="")te.pop();else if(Se.lengthlo&&($e.push(dl.slice(lo-te)),hr=2),te+=dl.length;break;case 19:hr=2;let oC=t.getTokenFullStart(),XS=t.getTokenEnd()-1,iC=b(XS);iC?(Re.push(X(d.createJSDocText($e.join("")),Gt??ve,oC)),Re.push(iC),$e=[],Gt=t.getTokenEnd()):gs(t.getTokenText());break;case 62:hr===3?hr=2:hr=3,gs(t.getTokenText());break;case 82:hr!==3&&(hr=2),gs(t.getTokenValue());break;case 42:if(hr===0){hr=1,te+=1;break}default:hr!==3&&(hr=2),gs(t.getTokenText());break}hr===2||hr===3?Qa=Ha(hr===3):Qa=vr()}gy($e);let xa=$e.join("").trimEnd();if(Re.length)return xa.length&&Re.push(X(d.createJSDocText(xa),Gt??ve)),ui(Re,ve,t.getTokenEnd());if(xa.length)return xa}function b(te){let Se=We(j);if(!Se)return;vr(),zs();let ve=k(),$e=[];for(;T()!==20&&T()!==4&&T()!==1;)$e.push(t.getTokenText()),vr();let Re=Se==="link"?d.createJSDocLink:Se==="linkcode"?d.createJSDocLinkCode:d.createJSDocLinkPlain;return X(Re(ve,$e.join("")),te,t.getTokenEnd())}function k(){if(Zo(T())){let te=re(),Se=qi();for(;tr(25);)Se=X(d.createQualifiedName(Se,T()===81?ua(80,!1):qi()),te);for(;T()===81;)hi(),vr(),Se=X(d.createJSDocMemberName(Se,No()),te);return Se}}function j(){if(se(),T()===19&&vr()===60&&Zo(vr())){let te=t.getTokenValue();if(_e(te))return te}}function _e(te){return te==="link"||te==="linkcode"||te==="linkplain"}function Qe(te,Se,ve,$e){return X(d.createJSDocUnknownTag(Se,_(te,re(),ve,$e)),te)}function xr(te){te&&(jt?jt.push(te):(jt=[te],Wa=te.pos),Ai=te.end)}function wi(){return se(),T()===19?P():void 0}function pu(){let te=by(23);te&&zs();let Se=by(62),ve=nIe();return Se&&SR(62),te&&(zs(),mo(64)&&ti(),ie(24)),{name:ve,isBracketed:te}}function Vs(te){switch(te.kind){case 151:return!0;case 189:return Vs(te.elementType);default:return Qhe(te)&&kn(te.typeName)&&te.typeName.escapedText==="Object"&&!te.typeArguments}}function Sy(te,Se,ve,$e){let Re=wi(),Gt=!Re;se();let{name:hr,isBracketed:lo}=pu(),gs=se();Gt&&!ye(j)&&(Re=wi());let Qa=_(te,re(),$e,gs),xa=Lwe(Re,hr,ve,$e);xa&&(Re=xa,Gt=!0);let dl=ve===1?d.createJSDocPropertyTag(Se,hr,lo,Re,Gt,Qa):d.createJSDocParameterTag(Se,hr,lo,Re,Gt,Qa);return X(dl,te)}function Lwe(te,Se,ve,$e){if(te&&Vs(te.type)){let Re=re(),Gt,hr;for(;Gt=We(()=>G8(ve,$e,Se));)Gt.kind===342||Gt.kind===349?hr=sc(hr,Gt):Gt.kind===346&&_s(Gt.tagName,G.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(hr){let lo=X(d.createJSDocTypeLiteral(hr,te.type.kind===189),Re);return X(d.createJSDocTypeExpression(lo),Re)}}}function $we(te,Se,ve,$e){Ra(jt,vot)&&Zn(Se.pos,t.getTokenStart(),G._0_tag_already_specified,JD(Se.escapedText));let Re=wi();return X(d.createJSDocReturnTag(Se,Re,_(te,re(),ve,$e)),te)}function FX(te,Se,ve,$e){Ra(jt,UV)&&Zn(Se.pos,t.getTokenStart(),G._0_tag_already_specified,JD(Se.escapedText));let Re=P(!0),Gt=ve!==void 0&&$e!==void 0?_(te,re(),ve,$e):void 0;return X(d.createJSDocTypeTag(Se,Re,Gt),te)}function Mwe(te,Se,ve,$e){let Re=T()===23||ye(()=>vr()===60&&Zo(vr())&&_e(t.getTokenValue()))?void 0:R(),Gt=ve!==void 0&&$e!==void 0?_(te,re(),ve,$e):void 0;return X(d.createJSDocSeeTag(Se,Re,Gt),te)}function jwe(te,Se,ve,$e){let Re=wi(),Gt=_(te,re(),ve,$e);return X(d.createJSDocThrowsTag(Se,Re,Gt),te)}function Bwe(te,Se,ve,$e){let Re=re(),Gt=qwe(),hr=t.getTokenFullStart(),lo=_(te,hr,ve,$e);lo||(hr=t.getTokenFullStart());let gs=typeof lo!="string"?ui(mV([X(Gt,Re,hr)],lo),Re):Gt.text+lo;return X(d.createJSDocAuthorTag(Se,gs),te)}function qwe(){let te=[],Se=!1,ve=t.getToken();for(;ve!==1&&ve!==4;){if(ve===30)Se=!0;else{if(ve===60&&!Se)break;if(ve===32&&Se){te.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}te.push(t.getTokenText()),ve=vr()}return d.createJSDocText(te.join(""))}function Uwe(te,Se,ve,$e){let Re=RX();return X(d.createJSDocImplementsTag(Se,Re,_(te,re(),ve,$e)),te)}function zwe(te,Se,ve,$e){let Re=RX();return X(d.createJSDocAugmentsTag(Se,Re,_(te,re(),ve,$e)),te)}function Vwe(te,Se,ve,$e){let Re=P(!1),Gt=ve!==void 0&&$e!==void 0?_(te,re(),ve,$e):void 0;return X(d.createJSDocSatisfiesTag(Se,Re,Gt),te)}function Jwe(te,Se,ve,$e){let Re=t.getTokenFullStart(),Gt;ht()&&(Gt=No());let hr=Wk(Gt,Re,156,!0),lo=yy(),gs=Qk(),Qa=ve!==void 0&&$e!==void 0?_(te,re(),ve,$e):void 0;return X(d.createJSDocImportTag(Se,hr,lo,gs,Qa),te)}function RX(){let te=tr(19),Se=re(),ve=Kwe();t.setSkipJsDocLeadingAsterisks(!0);let $e=WS();t.setSkipJsDocLeadingAsterisks(!1);let Re=d.createExpressionWithTypeArguments(ve,$e),Gt=X(Re,Se);return te&&(zs(),ie(20)),Gt}function Kwe(){let te=re(),Se=Bf();for(;tr(25);){let ve=Bf();Se=X(C(Se,ve),te)}return Se}function vy(te,Se,ve,$e,Re){return X(Se(ve,_(te,re(),$e,Re)),te)}function LX(te,Se,ve,$e){let Re=P(!0);return zs(),X(d.createJSDocThisTag(Se,Re,_(te,re(),ve,$e)),te)}function Gwe(te,Se,ve,$e){let Re=P(!0);return zs(),X(d.createJSDocEnumTag(Se,Re,_(te,re(),ve,$e)),te)}function Hwe(te,Se,ve,$e){let Re=wi();se();let Gt=K8();zs();let hr=h(ve),lo;if(!Re||Vs(Re.type)){let Qa,xa,dl,oC=!1;for(;(Qa=We(()=>Ywe(ve)))&&Qa.kind!==346;)if(oC=!0,Qa.kind===345)if(xa){let XS=Ft(G.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);XS&&tO(XS,r1(le,ae,0,0,G.The_tag_was_first_specified_here));break}else xa=Qa;else dl=sc(dl,Qa);if(oC){let XS=Re&&Re.type.kind===189,iC=d.createJSDocTypeLiteral(dl,XS);Re=xa&&xa.typeExpression&&!Vs(xa.typeExpression.type)?xa.typeExpression:X(iC,te),lo=Re.end}}lo=lo||hr!==void 0?re():(Gt??Re??Se).end,hr||(hr=_(te,lo,ve,$e));let gs=d.createJSDocTypedefTag(Se,Re,Gt,hr);return X(gs,te,lo)}function K8(te){let Se=t.getTokenStart();if(!Zo(T()))return;let ve=Bf();if(tr(25)){let $e=K8(!0),Re=d.createModuleDeclaration(void 0,ve,$e,te?8:void 0);return X(Re,Se)}return te&&(ve.flags|=4096),ve}function Zwe(te){let Se=re(),ve,$e;for(;ve=We(()=>G8(4,te));){if(ve.kind===346){_s(ve.tagName,G.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}$e=sc($e,ve)}return ui($e||[],Se)}function $X(te,Se){let ve=Zwe(Se),$e=We(()=>{if(by(60)){let Re=l(Se);if(Re&&Re.kind===343)return Re}});return X(d.createJSDocSignature(void 0,ve,$e),te)}function Wwe(te,Se,ve,$e){let Re=K8();zs();let Gt=h(ve),hr=$X(te,ve);Gt||(Gt=_(te,re(),ve,$e));let lo=Gt!==void 0?re():hr.end;return X(d.createJSDocCallbackTag(Se,hr,Re,Gt),te,lo)}function Qwe(te,Se,ve,$e){zs();let Re=h(ve),Gt=$X(te,ve);Re||(Re=_(te,re(),ve,$e));let hr=Re!==void 0?re():Gt.end;return X(d.createJSDocOverloadTag(Se,Gt,Re),te,hr)}function Xwe(te,Se){for(;!kn(te)||!kn(Se);)if(!kn(te)&&!kn(Se)&&te.right.escapedText===Se.right.escapedText)te=te.left,Se=Se.left;else return!1;return te.escapedText===Se.escapedText}function Ywe(te){return G8(1,te)}function G8(te,Se,ve){let $e=!0,Re=!1;for(;;)switch(vr()){case 60:if($e){let Gt=eIe(te,Se);return Gt&&(Gt.kind===342||Gt.kind===349)&&ve&&(kn(Gt.name)||!Xwe(ve,Gt.name.left))?!1:Gt}Re=!1;break;case 4:$e=!0,Re=!1;break;case 42:Re&&($e=!1),Re=!0;break;case 80:$e=!1;break;case 1:return!1}}function eIe(te,Se){pe.assert(T()===60);let ve=t.getTokenFullStart();vr();let $e=Bf(),Re=se(),Gt;switch($e.escapedText){case"type":return te===1&&FX(ve,$e);case"prop":case"property":Gt=1;break;case"arg":case"argument":case"param":Gt=6;break;case"template":return MX(ve,$e,Se,Re);case"this":return LX(ve,$e,Se,Re);default:return!1}return te&Gt?Sy(ve,$e,te,Se):!1}function tIe(){let te=re(),Se=by(23);Se&&zs();let ve=xc(!1,!0),$e=Bf(G.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Re;if(Se&&(zs(),ie(64),Re=Uo(16777216,Ob),ie(24)),!Lg($e))return X(d.createTypeParameterDeclaration(ve,$e,void 0,Re),te)}function rIe(){let te=re(),Se=[];do{zs();let ve=tIe();ve!==void 0&&Se.push(ve),se()}while(by(28));return ui(Se,te)}function MX(te,Se,ve,$e){let Re=T()===19?P():void 0,Gt=rIe();return X(d.createJSDocTemplateTag(Se,Re,Gt,_(te,re(),ve,$e)),te)}function by(te){return T()===te?(vr(),!0):!1}function nIe(){let te=Bf();for(tr(23)&&ie(24);tr(25);){let Se=Bf();tr(23)&&ie(24),te=AR(te,Se)}return te}function Bf(te){if(!Zo(T()))return ua(80,!te,te||G.Identifier_expected);fo++;let Se=t.getTokenStart(),ve=t.getTokenEnd(),$e=T(),Re=jd(t.getTokenValue()),Gt=X(S(Re,$e),Se,ve);return vr(),Gt}}})(nC=e.JSDocParser||(e.JSDocParser={}))})(Mg||(Mg={}));var kme=new WeakSet;function Got(e){kme.has(e)&&pe.fail("Source file has already been incrementally parsed"),kme.add(e)}var bye=new WeakSet;function Hot(e){return bye.has(e)}function aV(e){bye.add(e)}var xO;(e=>{function t(y,g,S,x){if(x=x||pe.shouldAssert(2),d(y,g,S,x),$et(S))return y;if(y.statements.length===0)return Mg.parseSourceFile(y.fileName,g,y.languageVersion,void 0,!0,y.scriptKind,y.setExternalModuleIndicator,y.jsDocParsingMode);Got(y),Mg.fixupParentReferences(y);let A=y.text,I=f(y),E=c(y,S);d(y,g,E,x),pe.assert(E.span.start<=S.span.start),pe.assert(ld(E.span)===ld(S.span)),pe.assert(ld(ID(E))===ld(ID(S)));let C=ID(E).length-E.span.length;s(y,E.span.start,ld(E.span),ld(ID(E)),C,A,g,x);let F=Mg.parseSourceFile(y.fileName,g,y.languageVersion,I,!0,y.scriptKind,y.setExternalModuleIndicator,y.jsDocParsingMode);return F.commentDirectives=r(y.commentDirectives,F.commentDirectives,E.span.start,ld(E.span),C,A,g,x),F.impliedNodeFormat=y.impliedNodeFormat,Dot(y,F),F}e.updateSourceFile=t;function r(y,g,S,x,A,I,E,C){if(!y)return g;let F,O=!1;for(let N of y){let{range:U,type:ge}=N;if(U.endx){$();let Te={range:{pos:U.pos+A,end:U.end+A},type:ge};F=sc(F,Te),C&&pe.assert(I.substring(U.pos,U.end)===E.substring(Te.range.pos,Te.range.end))}}return $(),F;function $(){O||(O=!0,F?g&&F.push(...g):F=g)}}function n(y,g,S,x,A,I,E){S?F(y):C(y);return;function C(O){let $="";if(E&&o(O)&&($=A.substring(O.pos,O.end)),ime(O,g),ih(O,O.pos+x,O.end+x),E&&o(O)&&pe.assert($===I.substring(O.pos,O.end)),La(O,C,F),Rg(O))for(let N of O.jsDoc)C(N);a(O,E)}function F(O){ih(O,O.pos+x,O.end+x);for(let $ of O)C($)}}function o(y){switch(y.kind){case 11:case 9:case 80:return!0}return!1}function i(y,g,S,x,A){pe.assert(y.end>=g,"Adjusting an element that was entirely before the change range"),pe.assert(y.pos<=S,"Adjusting an element that was entirely after the change range"),pe.assert(y.pos<=y.end);let I=Math.min(y.pos,x),E=y.end>=S?y.end+A:Math.min(y.end,x);if(pe.assert(I<=E),y.parent){let C=y.parent;pe.assertGreaterThanOrEqual(I,C.pos),pe.assertLessThanOrEqual(E,C.end)}ih(y,I,E)}function a(y,g){if(g){let S=y.pos,x=A=>{pe.assert(A.pos>=S),S=A.end};if(Rg(y))for(let A of y.jsDoc)x(A);La(y,x),pe.assert(S<=y.end)}}function s(y,g,S,x,A,I,E,C){F(y);return;function F($){if(pe.assert($.pos<=$.end),$.pos>S){n($,y,!1,A,I,E,C);return}let N=$.end;if(N>=g){if(aV($),ime($,y),i($,g,S,x,A),La($,F,O),Rg($))for(let U of $.jsDoc)F(U);a($,C);return}pe.assert(NS){n($,y,!0,A,I,E,C);return}let N=$.end;if(N>=g){aV($),i($,g,S,x,A);for(let U of $)F(U);return}pe.assert(N0&&I<=1;I++){let E=p(y,S);pe.assert(E.pos<=S);let C=E.pos;S=Math.max(0,C-1)}let x=Let(S,ld(g.span)),A=g.newLength+(g.span.start-S);return yhe(x,A)}function p(y,g){let S=y,x;if(La(y,I),x){let E=A(x);E.pos>S.pos&&(S=E)}return S;function A(E){for(;;){let C=Irt(E);if(C)E=C;else return E}}function I(E){if(!Lg(E))if(E.pos<=g){if(E.pos>=S.pos&&(S=E),gg),!0}}function d(y,g,S,x){let A=y.text;if(S&&(pe.assert(A.length-S.span.length+S.newLength===g.length),x||pe.shouldAssert(3))){let I=A.substr(0,S.span.start),E=g.substr(0,S.span.start);pe.assert(I===E);let C=A.substring(ld(S.span),A.length),F=g.substring(ld(ID(S)),g.length);pe.assert(C===F)}}function f(y){let g=y.statements,S=0;pe.assert(S=O.pos&&E=O.pos&&E{y[y.Value=-1]="Value"})(m||(m={}))})(xO||(xO={}));function Zot(e){return Wot(e)!==void 0}function Wot(e){let t=nhe(e,Zrt,!1);if(t)return t;if(ret(e,".ts")){let r=rhe(e),n=r.lastIndexOf(".d.");if(n>=0)return r.substring(n)}}function Qot(e,t,r,n){if(e){if(e==="import")return 99;if(e==="require")return 1;n(t,r-t,G.resolution_mode_should_be_either_require_or_import)}}function Xot(e,t){let r=[];for(let n of Zz(t,0)||ii){let o=t.substring(n.pos,n.end);nit(r,n,o)}e.pragmas=new Map;for(let n of r){if(e.pragmas.has(n.name)){let o=e.pragmas.get(n.name);o instanceof Array?o.push(n.args):e.pragmas.set(n.name,[o,n.args]);continue}e.pragmas.set(n.name,n.args)}}function Yot(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,n)=>{switch(n){case"reference":{let o=e.referencedFiles,i=e.typeReferenceDirectives,a=e.libReferenceDirectives;Jc(kz(r),s=>{let{types:c,lib:p,path:d,["resolution-mode"]:f,preserve:m}=s.arguments,y=m==="true"?!0:void 0;if(s.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(c){let g=Qot(f,c.pos,c.end,t);i.push({pos:c.pos,end:c.end,fileName:c.value,...g?{resolutionMode:g}:{},...y?{preserve:y}:{}})}else p?a.push({pos:p.pos,end:p.end,fileName:p.value,...y?{preserve:y}:{}}):d?o.push({pos:d.pos,end:d.end,fileName:d.value,...y?{preserve:y}:{}}):t(s.range.pos,s.range.end-s.range.pos,G.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Vz(kz(r),o=>({name:o.arguments.name,path:o.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(let o of r)e.moduleName&&t(o.range.pos,o.range.end-o.range.pos,G.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=o.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{Jc(kz(r),o=>{(!e.checkJsDirective||o.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:n==="ts-check",end:o.range.end,pos:o.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:pe.fail("Unhandled pragma kind")}})}var jz=new Map;function eit(e){if(jz.has(e))return jz.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return jz.set(e,t),t}var tit=/^\/\/\/\s*<(\S+)\s.*?\/>/m,rit=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function nit(e,t,r){let n=t.kind===2&&tit.exec(r);if(n){let i=n[1].toLowerCase(),a=the[i];if(!a||!(a.kind&1))return;if(a.args){let s={};for(let c of a.args){let p=eit(c.name).exec(r);if(!p&&!c.optional)return;if(p){let d=p[2]||p[3];if(c.captureSpan){let f=t.pos+p.index+p[1].length+1;s[c.name]={value:d,pos:f,end:f+d.length}}else s[c.name]=d}}e.push({name:i,args:{arguments:s,range:t}})}else e.push({name:i,args:{arguments:{},range:t}});return}let o=t.kind===2&&rit.exec(r);if(o)return Cme(e,t,2,o);if(t.kind===3){let i=/@(\S+)(\s+(?:\S.*)?)?$/gm,a;for(;a=i.exec(r);)Cme(e,t,4,a)}}function Cme(e,t,r,n){if(!n)return;let o=n[1].toLowerCase(),i=the[o];if(!i||!(i.kind&r))return;let a=n[2],s=oit(i,a);s!=="fail"&&e.push({name:o,args:{arguments:s,range:t}})}function oit(e,t){if(!t)return{};if(!e.args)return{};let r=t.trim().split(/\s+/),n={};for(let o=0;on.kind<310||n.kind>352);return r.kind<167?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),r=_1(t);if(r)return r.kind<167?r:r.getLastToken(e)}forEachChild(e,t){return La(this,e,t)}};function iit(e,t){let r=[];if(Ctt(e))return e.forEachChild(a=>{r.push(a)}),r;BD.setText((t||e.getSourceFile()).text);let n=e.pos,o=a=>{qD(r,n,a.pos,e),r.push(a),n=a.end},i=a=>{qD(r,n,a.pos,e),r.push(ait(a,e)),n=a.end};return Jc(e.jsDoc,o),n=e.pos,e.forEachChild(o,i),qD(r,n,e.end,e),BD.setText(void 0),r}function qD(e,t,r,n){for(BD.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function lO(e,t){if(!e)return ii;let r=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(Aye))){let n=new Set;for(let o of e){let i=wye(t,o,a=>{var s;if(!n.has(a))return n.add(a),o.kind===178||o.kind===179?a.getContextualJsDocTags(o,t):((s=a.declarations)==null?void 0:s.length)===1?a.getJsDocTags(t):void 0});i&&(r=[...i,...r])}}return r}function jD(e,t){if(!e)return ii;let r=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(Aye))){let n=new Set;for(let o of e){let i=wye(t,o,a=>{if(!n.has(a))return n.add(a),o.kind===178||o.kind===179?a.getContextualDocumentationComment(o,t):a.getDocumentationComment(t)});i&&(r=r.length===0?i.slice():i.concat(lineBreakPart(),r))}}return r}function wye(e,t,r){var n;let o=((n=t.parent)==null?void 0:n.kind)===177?t.parent.parent:t.parent;if(!o)return;let i=yrt(t);return DYe(crt(o),a=>{let s=e.getTypeAtLocation(a),c=i&&s.symbol?e.getTypeOfSymbol(s.symbol):s,p=e.getPropertyOfType(c,t.symbol.name);return p?r(p):void 0})}var uit=class extends JV{constructor(e,t,r){super(e,t,r)}update(e,t){return Kot(this,e,t)}getLineAndCharacterOfPosition(e){return phe(this,e)}getLineStarts(){return Hz(this)}getPositionOfLineAndCharacter(e,t,r){return Tet(Hz(this),e,t,this.text,r)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts(),n;t+1>=r.length&&(n=this.getEnd()),n||(n=r[t+1]-1);let o=this.getFullText();return o[n]===` -`&&o[n-1]==="\r"?n-1:n}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=jYe();return this.forEachChild(o),e;function t(i){let a=n(i);a&&e.add(a,i)}function r(i){let a=e.get(i);return a||e.set(i,a=[]),a}function n(i){let a=AV(i);return a&&(Ghe(a)&&tf(a.expression)?a.expression.name.text:Ahe(a)?getNameFromPropertyName(a):void 0)}function o(i){switch(i.kind){case 263:case 219:case 175:case 174:let a=i,s=n(a);if(s){let d=r(s),f=_1(d);f&&a.parent===f.parent&&a.symbol===f.symbol?a.body&&!f.body&&(d[d.length-1]=a):d.push(a)}La(i,o);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:t(i),La(i,o);break;case 170:if(!XD(i,31))break;case 261:case 209:{let d=i;if(vtt(d.name)){La(d.name,o);break}d.initializer&&o(d.initializer)}case 307:case 173:case 172:t(i);break;case 279:let c=i;c.exportClause&&(rot(c.exportClause)?Jc(c.exportClause.elements,o):o(c.exportClause.name));break;case 273:let p=i.importClause;p&&(p.name&&t(p.name),p.namedBindings&&(p.namedBindings.kind===275?t(p.namedBindings):Jc(p.namedBindings.elements,o)));break;case 227:PV(i)!==0&&t(i);default:La(i,o)}}}},pit=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(n=>n)}getLineAndCharacterOfPosition(e){return phe(this,e)}};function dit(){return{getNodeConstructor:()=>JV,getTokenConstructor:()=>Eye,getIdentifierConstructor:()=>Tye,getPrivateIdentifierConstructor:()=>Dye,getSourceFileConstructor:()=>uit,getSymbolConstructor:()=>sit,getTypeConstructor:()=>cit,getSignatureConstructor:()=>lit,getSourceMapSourceConstructor:()=>pit}}var _it=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],Ljt=[..._it,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];$rt(dit());var Iye=new Proxy({},{get:()=>!0}),kye=Iye["4.8"];function fd(e,t=!1){if(e!=null){if(kye){if(t||VV(e)){let r=Vet(e);return r?[...r]:void 0}return}return e.modifiers?.filter(r=>!jV(r))}}function l1(e,t=!1){if(e!=null){if(kye){if(t||Not(e)){let r=zet(e);return r?[...r]:void 0}return}return e.decorators?.filter(jV)}}var fit={},Cye=new Proxy({},{get:(e,t)=>t}),mit=Cye,hit=Cye,H=mit,ma=hit,yit=Iye["5.0"],_t=Qt,git=new Set([_t.AmpersandAmpersandToken,_t.BarBarToken,_t.QuestionQuestionToken]),Sit=new Set([Qt.AmpersandAmpersandEqualsToken,Qt.AmpersandEqualsToken,Qt.AsteriskAsteriskEqualsToken,Qt.AsteriskEqualsToken,Qt.BarBarEqualsToken,Qt.BarEqualsToken,Qt.CaretEqualsToken,Qt.EqualsToken,Qt.GreaterThanGreaterThanEqualsToken,Qt.GreaterThanGreaterThanGreaterThanEqualsToken,Qt.LessThanLessThanEqualsToken,Qt.MinusEqualsToken,Qt.PercentEqualsToken,Qt.PlusEqualsToken,Qt.QuestionQuestionEqualsToken,Qt.SlashEqualsToken]),vit=new Set([_t.AmpersandAmpersandToken,_t.AmpersandToken,_t.AsteriskAsteriskToken,_t.AsteriskToken,_t.BarBarToken,_t.BarToken,_t.CaretToken,_t.EqualsEqualsEqualsToken,_t.EqualsEqualsToken,_t.ExclamationEqualsEqualsToken,_t.ExclamationEqualsToken,_t.GreaterThanEqualsToken,_t.GreaterThanGreaterThanGreaterThanToken,_t.GreaterThanGreaterThanToken,_t.GreaterThanToken,_t.InKeyword,_t.InstanceOfKeyword,_t.LessThanEqualsToken,_t.LessThanLessThanToken,_t.LessThanToken,_t.MinusToken,_t.PercentToken,_t.PlusToken,_t.SlashToken]);function bit(e){return Sit.has(e.kind)}function xit(e){return git.has(e.kind)}function Eit(e){return vit.has(e.kind)}function nh(e){return io(e)}function Tit(e){return e.kind!==_t.SemicolonClassElement}function Kr(e,t){return fd(t)?.some(r=>r.kind===e)===!0}function Dit(e){let t=fd(e);return t==null?null:t[t.length-1]??null}function Ait(e){return e.kind===_t.CommaToken}function wit(e){return e.kind===_t.SingleLineCommentTrivia||e.kind===_t.MultiLineCommentTrivia}function Iit(e){return e.kind===_t.JSDocComment}function kit(e){if(bit(e))return{type:H.AssignmentExpression,operator:nh(e.kind)};if(xit(e))return{type:H.LogicalExpression,operator:nh(e.kind)};if(Eit(e))return{type:H.BinaryExpression,operator:nh(e.kind)};throw new Error(`Unexpected binary operator ${io(e.kind)}`)}function uO(e,t){let r=t.getLineAndCharacterOfPosition(e);return{column:r.character,line:r.line+1}}function Fg(e,t){let[r,n]=e.map(o=>uO(o,t));return{end:n,start:r}}function Cit(e){if(e.kind===Qt.Block)switch(e.parent.kind){case Qt.Constructor:case Qt.GetAccessor:case Qt.SetAccessor:case Qt.ArrowFunction:case Qt.FunctionExpression:case Qt.FunctionDeclaration:case Qt.MethodDeclaration:return!0;default:return!1}return!0}function n1(e,t){return[e.getStart(t),e.getEnd()]}function Pit(e){return e.kind>=_t.FirstToken&&e.kind<=_t.LastToken}function Pye(e){return e.kind>=_t.JsxElement&&e.kind<=_t.JsxAttribute}function sV(e){return e.flags&Vc.Let?"let":(e.flags&Vc.AwaitUsing)===Vc.AwaitUsing?"await using":e.flags&Vc.Const?"const":e.flags&Vc.Using?"using":"var"}function Pg(e){let t=fd(e);if(t!=null)for(let r of t)switch(r.kind){case _t.PublicKeyword:return"public";case _t.ProtectedKeyword:return"protected";case _t.PrivateKeyword:return"private";default:break}}function ju(e,t,r){return n(t);function n(o){return ltt(o)&&o.pos===e.end?o:Bit(o.getChildren(r),i=>(i.pos<=e.pos&&i.end>e.end||i.pos===e.end)&&jit(i,r)?n(i):void 0)}}function Oit(e,t){let r=e;for(;r;){if(t(r))return r;r=r.parent}}function Nit(e){return!!Oit(e,Pye)}function Pme(e){return u1(0,e,/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,t=>{let r=t.slice(1,-1);if(r[0]==="#"){let n=r[1]==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return n>1114111?t:String.fromCodePoint(n)}return fit[r]||t})}function o1(e){return e.kind===_t.ComputedPropertyName}function Ome(e){return!!e.questionToken}function Oye(e){return e.type===H.ChainExpression}function Fit(e,t){return Oye(t)&&e.expression.kind!==Qt.ParenthesizedExpression}function Rit(e){if(e.kind===_t.NullKeyword)return ma.Null;if(e.kind>=_t.FirstKeyword&&e.kind<=_t.LastFutureReservedWord)return e.kind===_t.FalseKeyword||e.kind===_t.TrueKeyword?ma.Boolean:ma.Keyword;if(e.kind>=_t.FirstPunctuation&&e.kind<=_t.LastPunctuation)return ma.Punctuator;if(e.kind>=_t.NoSubstitutionTemplateLiteral&&e.kind<=_t.TemplateTail)return ma.Template;switch(e.kind){case _t.NumericLiteral:case _t.BigIntLiteral:return ma.Numeric;case _t.PrivateIdentifier:return ma.PrivateIdentifier;case _t.JsxText:return ma.JSXText;case _t.StringLiteral:return e.parent.kind===_t.JsxAttribute||e.parent.kind===_t.JsxElement?ma.JSXText:ma.String;case _t.RegularExpressionLiteral:return ma.RegularExpression;case _t.Identifier:case _t.ConstructorKeyword:case _t.GetKeyword:case _t.SetKeyword:default:}return e.kind===_t.Identifier&&(Pye(e.parent)||e.parent.kind===_t.PropertyAccessExpression&&Nit(e))?ma.JSXIdentifier:ma.Identifier}function Lit(e,t){let r=e.kind===_t.JsxText?e.getFullStart():e.getStart(t),n=e.getEnd(),o=t.text.slice(r,n),i=Rit(e),a=[r,n],s=Fg(a,t);return i===ma.RegularExpression?{type:i,loc:s,range:a,regex:{flags:o.slice(o.lastIndexOf("/")+1),pattern:o.slice(1,o.lastIndexOf("/"))},value:o}:i===ma.PrivateIdentifier?{type:i,loc:s,range:a,value:o.slice(1)}:{type:i,loc:s,range:a,value:o}}function $it(e){let t=[];function r(n){wit(n)||Iit(n)||(Pit(n)&&n.kind!==_t.EndOfFileToken?t.push(Lit(n,e)):n.getChildren(e).forEach(r))}return r(e),t}var Mit=class extends Error{fileName;location;constructor(e,t,r){super(e),this.fileName=t,this.location=r,Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:new.target.name})}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};function GV(e,t,r,n=r){let[o,i]=[r,n].map(a=>{let{character:s,line:c}=t.getLineAndCharacterOfPosition(a);return{column:s,line:c+1,offset:a}});return new Mit(e,t.fileName,{end:i,start:o})}function jit(e,t){return e.kind===_t.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}function Bit(e,t){if(e!==void 0)for(let r=0;r=0&&e.kind!==mt.EndOfFileToken}function Nme(e){return!Jit(e)}function Kit(e){return Kr(mt.AbstractKeyword,e)}function Git(e){if(e.parameters.length&&!mye(e)){let t=e.parameters[0];if(Hit(t))return t}return null}function Hit(e){return Nye(e.name)}function Zit(e){return ghe(e.parent,whe)}function Wit(e){switch(e.kind){case mt.ClassDeclaration:return!0;case mt.ClassExpression:return!0;case mt.PropertyDeclaration:{let{parent:t}=e;return!!(bO(t)||m1(t)&&!Kit(e))}case mt.GetAccessor:case mt.SetAccessor:case mt.MethodDeclaration:{let{parent:t}=e;return!!e.body&&(bO(t)||m1(t))}case mt.Parameter:{let{parent:t}=e,r=t.parent;return!!t&&"body"in t&&!!t.body&&(t.kind===mt.Constructor||t.kind===mt.MethodDeclaration||t.kind===mt.SetAccessor)&&Git(t)!==e&&!!r&&r.kind===mt.ClassDeclaration}}return!1}function Qit(e){return!!("illegalDecorators"in e&&e.illegalDecorators?.length)}function zi(e,t){let r=e.getSourceFile(),n=e.getStart(r),o=e.getEnd();throw GV(t,r,n,o)}function Xit(e){Qit(e)&&zi(e.illegalDecorators[0],"Decorators are not valid here.");for(let t of l1(e,!0)??[])Wit(e)||(rV(e)&&!Nme(e.body)?zi(t,"A decorator can only decorate a method implementation, not an overload."):zi(t,"Decorators are not valid here."));for(let t of fd(e,!0)??[]){if(t.kind!==mt.ReadonlyKeyword&&((e.kind===mt.PropertySignature||e.kind===mt.MethodSignature)&&zi(t,`'${io(t.kind)}' modifier cannot appear on a type member`),e.kind===mt.IndexSignature&&(t.kind!==mt.StaticKeyword||!m1(e.parent))&&zi(t,`'${io(t.kind)}' modifier cannot appear on an index signature`)),t.kind!==mt.InKeyword&&t.kind!==mt.OutKeyword&&t.kind!==mt.ConstKeyword&&e.kind===mt.TypeParameter&&zi(t,`'${io(t.kind)}' modifier cannot appear on a type parameter`),(t.kind===mt.InKeyword||t.kind===mt.OutKeyword)&&(e.kind!==mt.TypeParameter||!(qV(e.parent)||m1(e.parent)||sye(e.parent)))&&zi(t,`'${io(t.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),t.kind===mt.ReadonlyKeyword&&e.kind!==mt.PropertyDeclaration&&e.kind!==mt.PropertySignature&&e.kind!==mt.IndexSignature&&e.kind!==mt.Parameter&&zi(t,"'readonly' modifier can only appear on a property declaration or index signature."),t.kind===mt.DeclareKeyword&&m1(e.parent)&&!SO(e)&&zi(t,`'${io(t.kind)}' modifier cannot appear on class elements of this kind.`),t.kind===mt.DeclareKeyword&&DO(e)){let r=sV(e.declarationList);(r==="using"||r==="await using")&&zi(t,`'declare' modifier cannot appear on a '${r}' declaration.`)}if(t.kind===mt.AbstractKeyword&&e.kind!==mt.ClassDeclaration&&e.kind!==mt.ConstructorType&&e.kind!==mt.MethodDeclaration&&e.kind!==mt.PropertyDeclaration&&e.kind!==mt.GetAccessor&&e.kind!==mt.SetAccessor&&zi(t,`'${io(t.kind)}' modifier can only appear on a class, method, or property declaration.`),(t.kind===mt.StaticKeyword||t.kind===mt.PublicKeyword||t.kind===mt.ProtectedKeyword||t.kind===mt.PrivateKeyword)&&(e.parent.kind===mt.ModuleBlock||e.parent.kind===mt.SourceFile)&&zi(t,`'${io(t.kind)}' modifier cannot appear on a module or namespace element.`),t.kind===mt.AccessorKeyword&&e.kind!==mt.PropertyDeclaration&&zi(t,"'accessor' modifier can only appear on a property declaration."),t.kind===mt.AsyncKeyword&&e.kind!==mt.MethodDeclaration&&e.kind!==mt.FunctionDeclaration&&e.kind!==mt.FunctionExpression&&e.kind!==mt.ArrowFunction&&zi(t,"'async' modifier cannot be used here."),e.kind===mt.Parameter&&(t.kind===mt.StaticKeyword||t.kind===mt.ExportKeyword||t.kind===mt.DeclareKeyword||t.kind===mt.AsyncKeyword)&&zi(t,`'${io(t.kind)}' modifier cannot appear on a parameter.`),t.kind===mt.PublicKeyword||t.kind===mt.ProtectedKeyword||t.kind===mt.PrivateKeyword)for(let r of fd(e)??[])r!==t&&(r.kind===mt.PublicKeyword||r.kind===mt.ProtectedKeyword||r.kind===mt.PrivateKeyword)&&zi(r,"Accessibility modifier already seen.");if(e.kind===mt.Parameter&&(t.kind===mt.PublicKeyword||t.kind===mt.PrivateKeyword||t.kind===mt.ProtectedKeyword||t.kind===mt.ReadonlyKeyword||t.kind===mt.OverrideKeyword)){let r=Zit(e);r?.kind===mt.Constructor&&Nme(r.body)||zi(t,"A parameter property is only allowed in a constructor implementation.");let n=e;n.dotDotDotToken&&zi(t,"A parameter property cannot be a rest parameter."),(n.name.kind===mt.ArrayBindingPattern||n.name.kind===mt.ObjectBindingPattern)&&zi(t,"A parameter property may not be declared using a binding pattern.")}t.kind!==mt.AsyncKeyword&&e.kind===mt.MethodDeclaration&&e.parent.kind===mt.ObjectLiteralExpression&&zi(t,`'${io(t.kind)}' modifier cannot be used here.`)}}var B=Qt;function Yit(e){return GV("message"in e&&e.message||e.messageText,e.file,e.start)}function eat(e){return tf(e)&&kn(e.name)&&Fye(e.expression)}function Fye(e){return e.kind===B.Identifier||eat(e)}var tat=class{allowPattern=!1;ast;esTreeNodeToTSNodeMap=new WeakMap;options;tsNodeToESTreeNodeMap=new WeakMap;constructor(e,t){this.ast=e,this.options={...t}}#t(e,t){let r=t===Qt.ForInStatement?"for...in":"for...of";if(eot(e)){e.declarations.length!==1&&this.#e(e,`Only a single variable declaration is allowed in a '${r}' statement.`);let n=e.declarations[0];n.initializer?this.#e(n,`The variable declaration of a '${r}' statement cannot have an initializer.`):n.type&&this.#e(n,`The variable declaration of a '${r}' statement cannot have a type annotation.`),t===Qt.ForInStatement&&e.flags&Vc.Using&&this.#e(e,"The left-hand side of a 'for...in' statement cannot be a 'using' declaration.")}else!cV(e)&&e.kind!==Qt.ObjectLiteralExpression&&e.kind!==Qt.ArrayLiteralExpression&&this.#e(e,`The left-hand side of a '${r}' statement must be a variable or a property access.`)}#r(e){this.options.allowInvalidAST||Xit(e)}#e(e,t){if(this.options.allowInvalidAST)return;let r,n;throw Array.isArray(e)?[r,n]=e:typeof e=="number"?r=n=e:(r=e.getStart(this.ast),n=e.getEnd()),GV(t,this.ast,r,n)}#n(e,t,r,n=!1){let o=n;return Object.defineProperty(e,t,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>e[r]:()=>(o||((void 0)(`The '${t}' property is deprecated on ${e.type} nodes. Use '${r}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),o=!0),e[r]),set(i){Object.defineProperty(e,t,{enumerable:!0,value:i,writable:!0})}}),e}#o(e,t,r,n){let o=!1;return Object.defineProperty(e,t,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>n:()=>{if(!o){let i=`The '${t}' property is deprecated on ${e.type} nodes.`;r&&(i+=` Use ${r} instead.`),i+=" See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.",(void 0)(i,"DeprecationWarning"),o=!0}return n},set(i){Object.defineProperty(e,t,{enumerable:!0,value:i,writable:!0})}}),e}assertModuleSpecifier(e,t){!t&&e.moduleSpecifier==null&&this.#e(e,"Module specifier must be a string literal."),e.moduleSpecifier&&e.moduleSpecifier?.kind!==B.StringLiteral&&this.#e(e.moduleSpecifier,"Module specifier must be a string literal.")}convertBindingNameWithTypeAnnotation(e,t,r){let n=this.convertPattern(e);return t&&(n.typeAnnotation=this.convertTypeAnnotation(t,r),this.fixParentLocation(n,n.typeAnnotation.range)),n}convertBodyExpressions(e,t){let r=Cit(t);return e.map(n=>{let o=this.convertChild(n);if(r){if(o?.expression&&oye(n)&&g1(n.expression)){let i=o.expression.raw;return o.directive=i.slice(1,-1),o}r=!1}return o}).filter(n=>n)}convertChainExpression(e,t){let{child:r,isOptional:n}=e.type===H.MemberExpression?{child:e.object,isOptional:e.optional}:e.type===H.CallExpression?{child:e.callee,isOptional:e.optional}:{child:e.expression,isOptional:!1},o=Fit(t,r);if(!o&&!n)return e;if(o&&Oye(r)){let i=r.expression;e.type===H.MemberExpression?e.object=i:e.type===H.CallExpression?e.callee=i:e.expression=i}return this.createNode(t,{type:H.ChainExpression,expression:e})}convertChild(e,t){return this.converter(e,t,!1)}convertChildren(e,t){return e.map(r=>this.converter(r,t,!1))}convertPattern(e,t){return this.converter(e,t,!0)}convertTypeAnnotation(e,t){let r=t?.kind===B.FunctionType||t?.kind===B.ConstructorType?2:1,n=[e.getFullStart()-r,e.end],o=Fg(n,this.ast);return{type:H.TSTypeAnnotation,loc:o,range:n,typeAnnotation:this.convertChild(e)}}convertTypeArgumentsToTypeParameterInstantiation(e,t){let r=ju(e,this.ast,this.ast),n=[e.pos-1,r.end];return e.length===0&&this.#e(n,"Type argument list cannot be empty."),this.createNode(t,{type:H.TSTypeParameterInstantiation,range:n,params:this.convertChildren(e)})}convertTSTypeParametersToTypeParametersDeclaration(e){let t=ju(e,this.ast,this.ast),r=[e.pos-1,t.end];return e.length===0&&this.#e(r,"Type parameter list cannot be empty."),{type:H.TSTypeParameterDeclaration,loc:Fg(r,this.ast),range:r,params:this.convertChildren(e)}}convertParameters(e){return e?.length?e.map(t=>{let r=this.convertChild(t);return r.decorators=this.convertChildren(l1(t)??[]),r}):[]}converter(e,t,r){if(!e)return null;this.#r(e);let n=this.allowPattern;r!=null&&(this.allowPattern=r);let o=this.convertNode(e,t??e.parent);return this.registerTSNodeInNodeMap(e,o),this.allowPattern=n,o}convertImportAttributes(e){let t=e.attributes??e.assertClause;return this.convertChildren(t?.elements??[])}convertJSXIdentifier(e){let t=this.createNode(e,{type:H.JSXIdentifier,name:e.getText()});return this.registerTSNodeInNodeMap(e,t),t}convertJSXNamespaceOrIdentifier(e){if(e.kind===Qt.JsxNamespacedName){let n=this.createNode(e,{type:H.JSXNamespacedName,name:this.createNode(e.name,{type:H.JSXIdentifier,name:e.name.text}),namespace:this.createNode(e.namespace,{type:H.JSXIdentifier,name:e.namespace.text})});return this.registerTSNodeInNodeMap(e,n),n}let t=e.getText(),r=t.indexOf(":");if(r>0){let n=n1(e,this.ast),o=this.createNode(e,{type:H.JSXNamespacedName,range:n,name:this.createNode(e,{type:H.JSXIdentifier,range:[n[0]+r+1,n[1]],name:t.slice(r+1)}),namespace:this.createNode(e,{type:H.JSXIdentifier,range:[n[0],n[0]+r],name:t.slice(0,r)})});return this.registerTSNodeInNodeMap(e,o),o}return this.convertJSXIdentifier(e)}convertJSXTagName(e,t){let r;switch(e.kind){case B.PropertyAccessExpression:e.name.kind===B.PrivateIdentifier&&this.#e(e.name,"Non-private identifier expected."),r=this.createNode(e,{type:H.JSXMemberExpression,object:this.convertJSXTagName(e.expression,t),property:this.convertJSXIdentifier(e.name)});break;case B.ThisKeyword:case B.Identifier:default:return this.convertJSXNamespaceOrIdentifier(e)}return this.registerTSNodeInNodeMap(e,r),r}convertMethodSignature(e){return this.createNode(e,{type:H.TSMethodSignature,accessibility:Pg(e),computed:o1(e.name),key:this.convertChild(e.name),kind:(()=>{switch(e.kind){case B.GetAccessor:return"get";case B.SetAccessor:return"set";case B.MethodSignature:return"method"}})(),optional:Ome(e),params:this.convertParameters(e.parameters),readonly:Kr(B.ReadonlyKeyword,e),returnType:e.type&&this.convertTypeAnnotation(e.type,e),static:Kr(B.StaticKeyword,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)})}fixParentLocation(e,t){t[0]e.range[1]&&(e.range[1]=t[1],e.loc.end=uO(e.range[1],this.ast))}convertNode(e,t){switch(e.kind){case B.SourceFile:return this.createNode(e,{type:H.Program,range:[e.getStart(this.ast),e.endOfFileToken.end],body:this.convertBodyExpressions(e.statements,e),comments:void 0,sourceType:e.externalModuleIndicator?"module":"script",tokens:void 0});case B.Block:return this.createNode(e,{type:H.BlockStatement,body:this.convertBodyExpressions(e.statements,e)});case B.Identifier:return Uit(e)?this.createNode(e,{type:H.ThisExpression}):this.createNode(e,{type:H.Identifier,decorators:[],name:e.text,optional:!1,typeAnnotation:void 0});case B.PrivateIdentifier:return this.createNode(e,{type:H.PrivateIdentifier,name:e.text.slice(1)});case B.WithStatement:return this.createNode(e,{type:H.WithStatement,body:this.convertChild(e.statement),object:this.convertChild(e.expression)});case B.ReturnStatement:return this.createNode(e,{type:H.ReturnStatement,argument:this.convertChild(e.expression)});case B.LabeledStatement:return this.createNode(e,{type:H.LabeledStatement,body:this.convertChild(e.statement),label:this.convertChild(e.label)});case B.ContinueStatement:return this.createNode(e,{type:H.ContinueStatement,label:this.convertChild(e.label)});case B.BreakStatement:return this.createNode(e,{type:H.BreakStatement,label:this.convertChild(e.label)});case B.IfStatement:return this.createNode(e,{type:H.IfStatement,alternate:this.convertChild(e.elseStatement),consequent:this.convertChild(e.thenStatement),test:this.convertChild(e.expression)});case B.SwitchStatement:return e.caseBlock.clauses.filter(r=>r.kind===B.DefaultClause).length>1&&this.#e(e,"A 'default' clause cannot appear more than once in a 'switch' statement."),this.createNode(e,{type:H.SwitchStatement,cases:this.convertChildren(e.caseBlock.clauses),discriminant:this.convertChild(e.expression)});case B.CaseClause:case B.DefaultClause:return this.createNode(e,{type:H.SwitchCase,consequent:this.convertChildren(e.statements),test:e.kind===B.CaseClause?this.convertChild(e.expression):null});case B.ThrowStatement:return e.expression.end===e.expression.pos&&this.#e(e,"A throw statement must throw an expression."),this.createNode(e,{type:H.ThrowStatement,argument:this.convertChild(e.expression)});case B.TryStatement:return this.createNode(e,{type:H.TryStatement,block:this.convertChild(e.tryBlock),finalizer:this.convertChild(e.finallyBlock),handler:this.convertChild(e.catchClause)});case B.CatchClause:return e.variableDeclaration?.initializer&&this.#e(e.variableDeclaration.initializer,"Catch clause variable cannot have an initializer."),this.createNode(e,{type:H.CatchClause,body:this.convertChild(e.block),param:e.variableDeclaration?this.convertBindingNameWithTypeAnnotation(e.variableDeclaration.name,e.variableDeclaration.type):null});case B.WhileStatement:return this.createNode(e,{type:H.WhileStatement,body:this.convertChild(e.statement),test:this.convertChild(e.expression)});case B.DoStatement:return this.createNode(e,{type:H.DoWhileStatement,body:this.convertChild(e.statement),test:this.convertChild(e.expression)});case B.ForStatement:return this.createNode(e,{type:H.ForStatement,body:this.convertChild(e.statement),init:this.convertChild(e.initializer),test:this.convertChild(e.condition),update:this.convertChild(e.incrementor)});case B.ForInStatement:return this.#t(e.initializer,e.kind),this.createNode(e,{type:H.ForInStatement,body:this.convertChild(e.statement),left:this.convertPattern(e.initializer),right:this.convertChild(e.expression)});case B.ForOfStatement:return this.#t(e.initializer,e.kind),this.createNode(e,{type:H.ForOfStatement,await:!!(e.awaitModifier&&e.awaitModifier.kind===B.AwaitKeyword),body:this.convertChild(e.statement),left:this.convertPattern(e.initializer),right:this.convertChild(e.expression)});case B.FunctionDeclaration:{let r=Kr(B.DeclareKeyword,e),n=Kr(B.AsyncKeyword,e),o=!!e.asteriskToken;r?e.body?this.#e(e,"An implementation cannot be declared in ambient contexts."):n?this.#e(e,"'async' modifier cannot be used in an ambient context."):o&&this.#e(e,"Generators are not allowed in an ambient context."):!e.body&&o&&this.#e(e,"A function signature cannot be declared as a generator.");let i=this.createNode(e,{type:e.body?H.FunctionDeclaration:H.TSDeclareFunction,async:n,body:this.convertChild(e.body)||void 0,declare:r,expression:!1,generator:o,id:this.convertChild(e.name),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,i)}case B.VariableDeclaration:{let r=!!e.exclamationToken,n=this.convertChild(e.initializer),o=this.convertBindingNameWithTypeAnnotation(e.name,e.type,e);return r&&(n?this.#e(e,"Declarations with initializers cannot also have definite assignment assertions."):(o.type!==H.Identifier||!o.typeAnnotation)&&this.#e(e,"Declarations with definite assignment assertions must also have type annotations.")),this.createNode(e,{type:H.VariableDeclarator,definite:r,id:o,init:n})}case B.VariableStatement:{let r=this.createNode(e,{type:H.VariableDeclaration,declarations:this.convertChildren(e.declarationList.declarations),declare:Kr(B.DeclareKeyword,e),kind:sV(e.declarationList)});return r.declarations.length||this.#e(e,"A variable declaration list must have at least one variable declarator."),(r.kind==="using"||r.kind==="await using")&&e.declarationList.declarations.forEach((n,o)=>{r.declarations[o].init==null&&this.#e(n,`'${r.kind}' declarations must be initialized.`),r.declarations[o].id.type!==H.Identifier&&this.#e(n.name,`'${r.kind}' declarations may not have binding patterns.`)}),(r.declare||["await using","const","using"].includes(r.kind))&&e.declarationList.declarations.forEach((n,o)=>{r.declarations[o].definite&&this.#e(n,"A definite assignment assertion '!' is not permitted in this context.")}),r.declare&&e.declarationList.declarations.forEach((n,o)=>{r.declarations[o].init&&(["let","var"].includes(r.kind)||r.declarations[o].id.typeAnnotation)&&this.#e(n,"Initializers are not permitted in ambient contexts.")}),this.fixExports(e,r)}case B.VariableDeclarationList:{let r=this.createNode(e,{type:H.VariableDeclaration,declarations:this.convertChildren(e.declarations),declare:!1,kind:sV(e)});return(r.kind==="using"||r.kind==="await using")&&e.declarations.forEach((n,o)=>{r.declarations[o].init!=null&&this.#e(n,`'${r.kind}' declarations may not be initialized in for statement.`),r.declarations[o].id.type!==H.Identifier&&this.#e(n.name,`'${r.kind}' declarations may not have binding patterns.`)}),r}case B.ExpressionStatement:return this.createNode(e,{type:H.ExpressionStatement,directive:void 0,expression:this.convertChild(e.expression)});case B.ThisKeyword:return this.createNode(e,{type:H.ThisExpression});case B.ArrayLiteralExpression:return this.allowPattern?this.createNode(e,{type:H.ArrayPattern,decorators:[],elements:e.elements.map(r=>this.convertPattern(r)),optional:!1,typeAnnotation:void 0}):this.createNode(e,{type:H.ArrayExpression,elements:this.convertChildren(e.elements)});case B.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(e,{type:H.ObjectPattern,decorators:[],optional:!1,properties:e.properties.map(n=>this.convertPattern(n)),typeAnnotation:void 0});let r=[];for(let n of e.properties)(n.kind===B.GetAccessor||n.kind===B.SetAccessor||n.kind===B.MethodDeclaration)&&!n.body&&this.#e(n.end-1,"'{' expected."),r.push(this.convertChild(n));return this.createNode(e,{type:H.ObjectExpression,properties:r})}case B.PropertyAssignment:{let{exclamationToken:r,questionToken:n}=e;return n&&this.#e(n,"A property assignment cannot have a question token."),r&&this.#e(r,"A property assignment cannot have an exclamation token."),this.createNode(e,{type:H.Property,computed:o1(e.name),key:this.convertChild(e.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.converter(e.initializer,e,this.allowPattern)})}case B.ShorthandPropertyAssignment:{let{exclamationToken:r,modifiers:n,questionToken:o}=e;return n&&this.#e(n[0],"A shorthand property assignment cannot have modifiers."),o&&this.#e(o,"A shorthand property assignment cannot have a question token."),r&&this.#e(r,"A shorthand property assignment cannot have an exclamation token."),e.objectAssignmentInitializer?this.createNode(e,{type:H.Property,computed:!1,key:this.convertChild(e.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.createNode(e,{type:H.AssignmentPattern,decorators:[],left:this.convertPattern(e.name),optional:!1,right:this.convertChild(e.objectAssignmentInitializer),typeAnnotation:void 0})}):this.createNode(e,{type:H.Property,computed:!1,key:this.convertChild(e.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.convertChild(e.name)})}case B.ComputedPropertyName:return this.convertChild(e.expression);case B.PropertyDeclaration:{let r=Kr(B.AbstractKeyword,e);r&&e.initializer&&this.#e(e.initializer,"Abstract property cannot have an initializer."),e.name.kind===B.StringLiteral&&e.name.text==="constructor"&&this.#e(e.name,"Classes may not have a field named 'constructor'.");let n=Kr(B.AccessorKeyword,e),o=n?r?H.TSAbstractAccessorProperty:H.AccessorProperty:r?H.TSAbstractPropertyDefinition:H.PropertyDefinition,i=this.convertChild(e.name);return this.createNode(e,{type:o,accessibility:Pg(e),computed:o1(e.name),declare:Kr(B.DeclareKeyword,e),decorators:this.convertChildren(l1(e)??[]),definite:!!e.exclamationToken,key:i,optional:(i.type===H.Literal||e.name.kind===B.Identifier||e.name.kind===B.ComputedPropertyName||e.name.kind===B.PrivateIdentifier)&&!!e.questionToken,override:Kr(B.OverrideKeyword,e),readonly:Kr(B.ReadonlyKeyword,e),static:Kr(B.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e),value:r?null:this.convertChild(e.initializer)})}case B.GetAccessor:case B.SetAccessor:if(e.parent.kind===B.InterfaceDeclaration||e.parent.kind===B.TypeLiteral)return this.convertMethodSignature(e);case B.MethodDeclaration:{let r=Kr(B.AbstractKeyword,e);r&&e.body&&this.#e(e.name,e.kind===B.GetAccessor||e.kind===B.SetAccessor?"An abstract accessor cannot have an implementation.":`Method '${Vit(e.name,this.ast)}' cannot have an implementation because it is marked abstract.`);let n=this.createNode(e,{type:e.body?H.FunctionExpression:H.TSEmptyBodyFunctionExpression,range:[e.parameters.pos-1,e.end],async:Kr(B.AsyncKeyword,e),body:this.convertChild(e.body),declare:!1,expression:!1,generator:!!e.asteriskToken,id:null,params:[],returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});n.typeParameters&&this.fixParentLocation(n,n.typeParameters.range);let o;if(t.kind===B.ObjectLiteralExpression)n.params=this.convertChildren(e.parameters),o=this.createNode(e,{type:H.Property,computed:o1(e.name),key:this.convertChild(e.name),kind:"init",method:e.kind===B.MethodDeclaration,optional:!!e.questionToken,shorthand:!1,value:n});else{n.params=this.convertParameters(e.parameters);let i=r?H.TSAbstractMethodDefinition:H.MethodDefinition;o=this.createNode(e,{type:i,accessibility:Pg(e),computed:o1(e.name),decorators:this.convertChildren(l1(e)??[]),key:this.convertChild(e.name),kind:"method",optional:!!e.questionToken,override:Kr(B.OverrideKeyword,e),static:Kr(B.StaticKeyword,e),value:n})}return e.kind===B.GetAccessor?o.kind="get":e.kind===B.SetAccessor?o.kind="set":!o.static&&e.name.kind===B.StringLiteral&&e.name.text==="constructor"&&o.type!==H.Property&&(o.kind="constructor"),o}case B.Constructor:{let r=Dit(e),n=(r&&ju(r,e,this.ast))??e.getFirstToken(),o=this.createNode(e,{type:e.body?H.FunctionExpression:H.TSEmptyBodyFunctionExpression,range:[e.parameters.pos-1,e.end],async:!1,body:this.convertChild(e.body),declare:!1,expression:!1,generator:!1,id:null,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});o.typeParameters&&this.fixParentLocation(o,o.typeParameters.range);let i=n.kind===B.StringLiteral?this.createNode(n,{type:H.Literal,raw:n.getText(),value:"constructor"}):this.createNode(e,{type:H.Identifier,range:[n.getStart(this.ast),n.end],decorators:[],name:"constructor",optional:!1,typeAnnotation:void 0}),a=Kr(B.StaticKeyword,e);return this.createNode(e,{type:Kr(B.AbstractKeyword,e)?H.TSAbstractMethodDefinition:H.MethodDefinition,accessibility:Pg(e),computed:!1,decorators:[],key:i,kind:a?"method":"constructor",optional:!1,override:!1,static:a,value:o})}case B.FunctionExpression:return this.createNode(e,{type:H.FunctionExpression,async:Kr(B.AsyncKeyword,e),body:this.convertChild(e.body),declare:!1,expression:!1,generator:!!e.asteriskToken,id:this.convertChild(e.name),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case B.SuperKeyword:return this.createNode(e,{type:H.Super});case B.ArrayBindingPattern:return this.createNode(e,{type:H.ArrayPattern,decorators:[],elements:e.elements.map(r=>this.convertPattern(r)),optional:!1,typeAnnotation:void 0});case B.OmittedExpression:return null;case B.ObjectBindingPattern:return this.createNode(e,{type:H.ObjectPattern,decorators:[],optional:!1,properties:e.elements.map(r=>this.convertPattern(r)),typeAnnotation:void 0});case B.BindingElement:{if(t.kind===B.ArrayBindingPattern){let n=this.convertChild(e.name,t);return e.initializer?this.createNode(e,{type:H.AssignmentPattern,decorators:[],left:n,optional:!1,right:this.convertChild(e.initializer),typeAnnotation:void 0}):e.dotDotDotToken?this.createNode(e,{type:H.RestElement,argument:n,decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):n}let r;return e.dotDotDotToken?r=this.createNode(e,{type:H.RestElement,argument:this.convertChild(e.propertyName??e.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):r=this.createNode(e,{type:H.Property,computed:!!(e.propertyName&&e.propertyName.kind===B.ComputedPropertyName),key:this.convertChild(e.propertyName??e.name),kind:"init",method:!1,optional:!1,shorthand:!e.propertyName,value:this.convertChild(e.name)}),e.initializer&&(r.value=this.createNode(e,{type:H.AssignmentPattern,range:[e.name.getStart(this.ast),e.initializer.end],decorators:[],left:this.convertChild(e.name),optional:!1,right:this.convertChild(e.initializer),typeAnnotation:void 0})),r}case B.ArrowFunction:return this.createNode(e,{type:H.ArrowFunctionExpression,async:Kr(B.AsyncKeyword,e),body:this.convertChild(e.body),expression:e.body.kind!==B.Block,generator:!1,id:null,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case B.YieldExpression:return this.createNode(e,{type:H.YieldExpression,argument:this.convertChild(e.expression),delegate:!!e.asteriskToken});case B.AwaitExpression:return this.createNode(e,{type:H.AwaitExpression,argument:this.convertChild(e.expression)});case B.NoSubstitutionTemplateLiteral:return this.createNode(e,{type:H.TemplateLiteral,expressions:[],quasis:[this.createNode(e,{type:H.TemplateElement,tail:!0,value:{cooked:e.text,raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-1)}})]});case B.TemplateExpression:{let r=this.createNode(e,{type:H.TemplateLiteral,expressions:[],quasis:[this.convertChild(e.head)]});return e.templateSpans.forEach(n=>{r.expressions.push(this.convertChild(n.expression)),r.quasis.push(this.convertChild(n.literal))}),r}case B.TaggedTemplateExpression:return e.tag.flags&Vc.OptionalChain&&this.#e(e,"Tagged template expressions are not permitted in an optional chain."),this.createNode(e,{type:H.TaggedTemplateExpression,quasi:this.convertChild(e.template),tag:this.convertChild(e.tag),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case B.TemplateHead:case B.TemplateMiddle:case B.TemplateTail:{let r=e.kind===B.TemplateTail;return this.createNode(e,{type:H.TemplateElement,tail:r,value:{cooked:e.text,raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-(r?1:2))}})}case B.SpreadAssignment:case B.SpreadElement:return this.allowPattern?this.createNode(e,{type:H.RestElement,argument:this.convertPattern(e.expression),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):this.createNode(e,{type:H.SpreadElement,argument:this.convertChild(e.expression)});case B.Parameter:{let r,n;return e.dotDotDotToken?r=n=this.createNode(e,{type:H.RestElement,argument:this.convertChild(e.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):e.initializer?(r=this.convertChild(e.name),n=this.createNode(e,{type:H.AssignmentPattern,range:[e.name.getStart(this.ast),e.initializer.end],decorators:[],left:r,optional:!1,right:this.convertChild(e.initializer),typeAnnotation:void 0}),fd(e)&&(n.range[0]=r.range[0],n.loc=Fg(n.range,this.ast))):r=n=this.convertChild(e.name,t),e.type&&(r.typeAnnotation=this.convertTypeAnnotation(e.type,e),this.fixParentLocation(r,r.typeAnnotation.range)),e.questionToken&&(e.questionToken.end>r.range[1]&&(r.range[1]=e.questionToken.end,r.loc.end=uO(r.range[1],this.ast)),r.optional=!0),fd(e)?this.createNode(e,{type:H.TSParameterProperty,accessibility:Pg(e),decorators:[],override:Kr(B.OverrideKeyword,e),parameter:n,readonly:Kr(B.ReadonlyKeyword,e),static:Kr(B.StaticKeyword,e)}):n}case B.ClassDeclaration:!e.name&&(!Kr(Qt.ExportKeyword,e)||!Kr(Qt.DefaultKeyword,e))&&this.#e(e,"A class declaration without the 'default' modifier must have a name.");case B.ClassExpression:{let r=e.heritageClauses??[],n=e.kind===B.ClassDeclaration?H.ClassDeclaration:H.ClassExpression,o,i;for(let s of r){let{token:c,types:p}=s;p.length===0&&this.#e(s,`'${io(c)}' list cannot be empty.`),c===B.ExtendsKeyword?(o&&this.#e(s,"'extends' clause already seen."),i&&this.#e(s,"'extends' clause must precede 'implements' clause."),p.length>1&&this.#e(p[1],"Classes can only extend a single class."),o??(o=s)):c===B.ImplementsKeyword&&(i&&this.#e(s,"'implements' clause already seen."),i??(i=s))}let a=this.createNode(e,{type:n,abstract:Kr(B.AbstractKeyword,e),body:this.createNode(e,{type:H.ClassBody,range:[e.members.pos-1,e.end],body:this.convertChildren(e.members.filter(Tit))}),declare:Kr(B.DeclareKeyword,e),decorators:this.convertChildren(l1(e)??[]),id:this.convertChild(e.name),implements:this.convertChildren(i?.types??[]),superClass:o?.types[0]?this.convertChild(o.types[0].expression):null,superTypeArguments:void 0,typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return o?.types[0]?.typeArguments&&(a.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(o.types[0].typeArguments,o.types[0])),this.fixExports(e,a)}case B.ModuleBlock:return this.createNode(e,{type:H.TSModuleBlock,body:this.convertBodyExpressions(e.statements,e)});case B.ImportDeclaration:{this.assertModuleSpecifier(e,!1);let r=this.createNode(e,this.#n({type:H.ImportDeclaration,attributes:this.convertImportAttributes(e),importKind:"value",source:this.convertChild(e.moduleSpecifier),specifiers:[]},"assertions","attributes",!0));if(e.importClause&&(e.importClause.isTypeOnly&&(r.importKind="type"),e.importClause.name&&r.specifiers.push(this.convertChild(e.importClause)),e.importClause.namedBindings))switch(e.importClause.namedBindings.kind){case B.NamespaceImport:r.specifiers.push(this.convertChild(e.importClause.namedBindings));break;case B.NamedImports:r.specifiers.push(...this.convertChildren(e.importClause.namedBindings.elements));break}return r}case B.NamespaceImport:return this.createNode(e,{type:H.ImportNamespaceSpecifier,local:this.convertChild(e.name)});case B.ImportSpecifier:return this.createNode(e,{type:H.ImportSpecifier,imported:this.convertChild(e.propertyName??e.name),importKind:e.isTypeOnly?"type":"value",local:this.convertChild(e.name)});case B.ImportClause:{let r=this.convertChild(e.name);return this.createNode(e,{type:H.ImportDefaultSpecifier,range:r.range,local:r})}case B.ExportDeclaration:return e.exportClause?.kind===B.NamedExports?(this.assertModuleSpecifier(e,!0),this.createNode(e,this.#n({type:H.ExportNamedDeclaration,attributes:this.convertImportAttributes(e),declaration:null,exportKind:e.isTypeOnly?"type":"value",source:this.convertChild(e.moduleSpecifier),specifiers:this.convertChildren(e.exportClause.elements,e)},"assertions","attributes",!0))):(this.assertModuleSpecifier(e,!1),this.createNode(e,this.#n({type:H.ExportAllDeclaration,attributes:this.convertImportAttributes(e),exported:e.exportClause?.kind===B.NamespaceExport?this.convertChild(e.exportClause.name):null,exportKind:e.isTypeOnly?"type":"value",source:this.convertChild(e.moduleSpecifier)},"assertions","attributes",!0)));case B.ExportSpecifier:{let r=e.propertyName??e.name;return r.kind===B.StringLiteral&&t.kind===B.ExportDeclaration&&t.moduleSpecifier?.kind!==B.StringLiteral&&this.#e(r,"A string literal cannot be used as a local exported binding without `from`."),this.createNode(e,{type:H.ExportSpecifier,exported:this.convertChild(e.name),exportKind:e.isTypeOnly?"type":"value",local:this.convertChild(r)})}case B.ExportAssignment:return e.isExportEquals?this.createNode(e,{type:H.TSExportAssignment,expression:this.convertChild(e.expression)}):this.createNode(e,{type:H.ExportDefaultDeclaration,declaration:this.convertChild(e.expression),exportKind:"value"});case B.PrefixUnaryExpression:case B.PostfixUnaryExpression:{let r=nh(e.operator);return r==="++"||r==="--"?(cV(e.operand)||this.#e(e.operand,"Invalid left-hand side expression in unary operation"),this.createNode(e,{type:H.UpdateExpression,argument:this.convertChild(e.operand),operator:r,prefix:e.kind===B.PrefixUnaryExpression})):this.createNode(e,{type:H.UnaryExpression,argument:this.convertChild(e.operand),operator:r,prefix:e.kind===B.PrefixUnaryExpression})}case B.DeleteExpression:return this.createNode(e,{type:H.UnaryExpression,argument:this.convertChild(e.expression),operator:"delete",prefix:!0});case B.VoidExpression:return this.createNode(e,{type:H.UnaryExpression,argument:this.convertChild(e.expression),operator:"void",prefix:!0});case B.TypeOfExpression:return this.createNode(e,{type:H.UnaryExpression,argument:this.convertChild(e.expression),operator:"typeof",prefix:!0});case B.TypeOperator:return this.createNode(e,{type:H.TSTypeOperator,operator:nh(e.operator),typeAnnotation:this.convertChild(e.type)});case B.BinaryExpression:{if(e.operatorToken.kind!==B.InKeyword&&e.left.kind===B.PrivateIdentifier?this.#e(e.left,"Private identifiers cannot appear on the right-hand-side of an 'in' expression."):e.right.kind===B.PrivateIdentifier&&this.#e(e.right,"Private identifiers are only allowed on the left-hand-side of an 'in' expression."),Ait(e.operatorToken)){let n=this.createNode(e,{type:H.SequenceExpression,expressions:[]}),o=this.convertChild(e.left);return o.type===H.SequenceExpression&&e.left.kind!==B.ParenthesizedExpression?n.expressions.push(...o.expressions):n.expressions.push(o),n.expressions.push(this.convertChild(e.right)),n}let r=kit(e.operatorToken);return this.allowPattern&&r.type===H.AssignmentExpression?this.createNode(e,{type:H.AssignmentPattern,decorators:[],left:this.convertPattern(e.left,e),optional:!1,right:this.convertChild(e.right),typeAnnotation:void 0}):this.createNode(e,{...r,left:this.converter(e.left,e,r.type===H.AssignmentExpression),right:this.convertChild(e.right)})}case B.PropertyAccessExpression:{let r=this.convertChild(e.expression),n=this.convertChild(e.name),o=this.createNode(e,{type:H.MemberExpression,computed:!1,object:r,optional:e.questionDotToken!=null,property:n});return this.convertChainExpression(o,e)}case B.ElementAccessExpression:{let r=this.convertChild(e.expression),n=this.convertChild(e.argumentExpression),o=this.createNode(e,{type:H.MemberExpression,computed:!0,object:r,optional:e.questionDotToken!=null,property:n});return this.convertChainExpression(o,e)}case B.CallExpression:{if(e.expression.kind===B.ImportKeyword)return e.arguments.length!==1&&e.arguments.length!==2&&this.#e(e.arguments[2]??e,"Dynamic import requires exactly one or two arguments."),this.createNode(e,this.#n({type:H.ImportExpression,options:e.arguments[1]?this.convertChild(e.arguments[1]):null,source:this.convertChild(e.arguments[0])},"attributes","options",!0));let r=this.convertChild(e.expression),n=this.convertChildren(e.arguments),o=e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e),i=this.createNode(e,{type:H.CallExpression,arguments:n,callee:r,optional:e.questionDotToken!=null,typeArguments:o});return this.convertChainExpression(i,e)}case B.NewExpression:{let r=e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e);return this.createNode(e,{type:H.NewExpression,arguments:this.convertChildren(e.arguments??[]),callee:this.convertChild(e.expression),typeArguments:r})}case B.ConditionalExpression:return this.createNode(e,{type:H.ConditionalExpression,alternate:this.convertChild(e.whenFalse),consequent:this.convertChild(e.whenTrue),test:this.convertChild(e.condition)});case B.MetaProperty:return this.createNode(e,{type:H.MetaProperty,meta:this.createNode(e.getFirstToken(),{type:H.Identifier,decorators:[],name:nh(e.keywordToken),optional:!1,typeAnnotation:void 0}),property:this.convertChild(e.name)});case B.Decorator:return this.createNode(e,{type:H.Decorator,expression:this.convertChild(e.expression)});case B.StringLiteral:return this.createNode(e,{type:H.Literal,raw:e.getText(),value:t.kind===B.JsxAttribute?Pme(e.text):e.text});case B.NumericLiteral:return this.createNode(e,{type:H.Literal,raw:e.getText(),value:Number(e.text)});case B.BigIntLiteral:{let r=n1(e,this.ast),n=this.ast.text.slice(r[0],r[1]),o=u1(0,n.slice(0,-1),"_",""),i=typeof BigInt<"u"?BigInt(o):null;return this.createNode(e,{type:H.Literal,range:r,bigint:i==null?o:String(i),raw:n,value:i})}case B.RegularExpressionLiteral:{let r=e.text.slice(1,e.text.lastIndexOf("/")),n=e.text.slice(e.text.lastIndexOf("/")+1),o=null;try{o=new RegExp(r,n)}catch{}return this.createNode(e,{type:H.Literal,raw:e.text,regex:{flags:n,pattern:r},value:o})}case B.TrueKeyword:return this.createNode(e,{type:H.Literal,raw:"true",value:!0});case B.FalseKeyword:return this.createNode(e,{type:H.Literal,raw:"false",value:!1});case B.NullKeyword:return this.createNode(e,{type:H.Literal,raw:"null",value:null});case B.EmptyStatement:return this.createNode(e,{type:H.EmptyStatement});case B.DebuggerStatement:return this.createNode(e,{type:H.DebuggerStatement});case B.JsxElement:return this.createNode(e,{type:H.JSXElement,children:this.convertChildren(e.children),closingElement:this.convertChild(e.closingElement),openingElement:this.convertChild(e.openingElement)});case B.JsxFragment:return this.createNode(e,{type:H.JSXFragment,children:this.convertChildren(e.children),closingFragment:this.convertChild(e.closingFragment),openingFragment:this.convertChild(e.openingFragment)});case B.JsxSelfClosingElement:return this.createNode(e,{type:H.JSXElement,children:[],closingElement:null,openingElement:this.createNode(e,{type:H.JSXOpeningElement,range:n1(e,this.ast),attributes:this.convertChildren(e.attributes.properties),name:this.convertJSXTagName(e.tagName,e),selfClosing:!0,typeArguments:e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):void 0})});case B.JsxOpeningElement:return this.createNode(e,{type:H.JSXOpeningElement,attributes:this.convertChildren(e.attributes.properties),name:this.convertJSXTagName(e.tagName,e),selfClosing:!1,typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case B.JsxClosingElement:return this.createNode(e,{type:H.JSXClosingElement,name:this.convertJSXTagName(e.tagName,e)});case B.JsxOpeningFragment:return this.createNode(e,{type:H.JSXOpeningFragment});case B.JsxClosingFragment:return this.createNode(e,{type:H.JSXClosingFragment});case B.JsxExpression:{let r=e.expression?this.convertChild(e.expression):this.createNode(e,{type:H.JSXEmptyExpression,range:[e.getStart(this.ast)+1,e.getEnd()-1]});return e.dotDotDotToken?this.createNode(e,{type:H.JSXSpreadChild,expression:r}):this.createNode(e,{type:H.JSXExpressionContainer,expression:r})}case B.JsxAttribute:return this.createNode(e,{type:H.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(e.name),value:this.convertChild(e.initializer)});case B.JsxText:{let r=e.getFullStart(),n=e.getEnd(),o=this.ast.text.slice(r,n);return this.createNode(e,{type:H.JSXText,range:[r,n],raw:o,value:Pme(o)})}case B.JsxSpreadAttribute:return this.createNode(e,{type:H.JSXSpreadAttribute,argument:this.convertChild(e.expression)});case B.QualifiedName:return this.createNode(e,{type:H.TSQualifiedName,left:this.convertChild(e.left),right:this.convertChild(e.right)});case B.TypeReference:return this.createNode(e,{type:H.TSTypeReference,typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e),typeName:this.convertChild(e.typeName)});case B.TypeParameter:return this.createNode(e,{type:H.TSTypeParameter,const:Kr(B.ConstKeyword,e),constraint:e.constraint&&this.convertChild(e.constraint),default:e.default?this.convertChild(e.default):void 0,in:Kr(B.InKeyword,e),name:this.convertChild(e.name),out:Kr(B.OutKeyword,e)});case B.ThisType:return this.createNode(e,{type:H.TSThisType});case B.AnyKeyword:case B.BigIntKeyword:case B.BooleanKeyword:case B.NeverKeyword:case B.NumberKeyword:case B.ObjectKeyword:case B.StringKeyword:case B.SymbolKeyword:case B.UnknownKeyword:case B.VoidKeyword:case B.UndefinedKeyword:case B.IntrinsicKeyword:return this.createNode(e,{type:H[`TS${B[e.kind]}`]});case B.NonNullExpression:{let r=this.createNode(e,{type:H.TSNonNullExpression,expression:this.convertChild(e.expression)});return this.convertChainExpression(r,e)}case B.TypeLiteral:return this.createNode(e,{type:H.TSTypeLiteral,members:this.convertChildren(e.members)});case B.ArrayType:return this.createNode(e,{type:H.TSArrayType,elementType:this.convertChild(e.elementType)});case B.IndexedAccessType:return this.createNode(e,{type:H.TSIndexedAccessType,indexType:this.convertChild(e.indexType),objectType:this.convertChild(e.objectType)});case B.ConditionalType:return this.createNode(e,{type:H.TSConditionalType,checkType:this.convertChild(e.checkType),extendsType:this.convertChild(e.extendsType),falseType:this.convertChild(e.falseType),trueType:this.convertChild(e.trueType)});case B.TypeQuery:return this.createNode(e,{type:H.TSTypeQuery,exprName:this.convertChild(e.exprName),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case B.MappedType:return e.members&&e.members.length>0&&this.#e(e.members[0],"A mapped type may not declare properties or methods."),this.createNode(e,this.#o({type:H.TSMappedType,constraint:this.convertChild(e.typeParameter.constraint),key:this.convertChild(e.typeParameter.name),nameType:this.convertChild(e.nameType)??null,optional:e.questionToken?e.questionToken.kind===B.QuestionToken||nh(e.questionToken.kind):!1,readonly:e.readonlyToken?e.readonlyToken.kind===B.ReadonlyKeyword||nh(e.readonlyToken.kind):void 0,typeAnnotation:e.type&&this.convertChild(e.type)},"typeParameter","'constraint' and 'key'",this.convertChild(e.typeParameter)));case B.ParenthesizedExpression:return this.convertChild(e.expression,t);case B.TypeAliasDeclaration:{let r=this.createNode(e,{type:H.TSTypeAliasDeclaration,declare:Kr(B.DeclareKeyword,e),id:this.convertChild(e.name),typeAnnotation:this.convertChild(e.type),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,r)}case B.MethodSignature:return this.convertMethodSignature(e);case B.PropertySignature:{let{initializer:r}=e;return r&&this.#e(r,"A property signature cannot have an initializer."),this.createNode(e,{type:H.TSPropertySignature,accessibility:Pg(e),computed:o1(e.name),key:this.convertChild(e.name),optional:Ome(e),readonly:Kr(B.ReadonlyKeyword,e),static:Kr(B.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e)})}case B.IndexSignature:return this.createNode(e,{type:H.TSIndexSignature,accessibility:Pg(e),parameters:this.convertChildren(e.parameters),readonly:Kr(B.ReadonlyKeyword,e),static:Kr(B.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e)});case B.ConstructorType:return this.createNode(e,{type:H.TSConstructorType,abstract:Kr(B.AbstractKeyword,e),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case B.FunctionType:{let{modifiers:r}=e;r&&this.#e(r[0],"A function type cannot have modifiers.")}case B.ConstructSignature:case B.CallSignature:{let r=e.kind===B.ConstructSignature?H.TSConstructSignatureDeclaration:e.kind===B.CallSignature?H.TSCallSignatureDeclaration:H.TSFunctionType;return this.createNode(e,{type:r,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)})}case B.ExpressionWithTypeArguments:{let r=t.kind,n=r===B.InterfaceDeclaration?H.TSInterfaceHeritage:r===B.HeritageClause?H.TSClassImplements:H.TSInstantiationExpression;return this.createNode(e,{type:n,expression:this.convertChild(e.expression),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)})}case B.InterfaceDeclaration:{let r=e.heritageClauses??[],n=[],o=!1;for(let a of r){a.token!==B.ExtendsKeyword&&this.#e(a,a.token===B.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token."),o&&this.#e(a,"'extends' clause already seen."),o=!0;for(let s of a.types)(!Fye(s.expression)||stt(s.expression))&&this.#e(s,"Interface declaration can only extend an identifier/qualified name with optional type arguments."),n.push(this.convertChild(s,e))}let i=this.createNode(e,{type:H.TSInterfaceDeclaration,body:this.createNode(e,{type:H.TSInterfaceBody,range:[e.members.pos-1,e.end],body:this.convertChildren(e.members)}),declare:Kr(B.DeclareKeyword,e),extends:n,id:this.convertChild(e.name),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,i)}case B.TypePredicate:{let r=this.createNode(e,{type:H.TSTypePredicate,asserts:e.assertsModifier!=null,parameterName:this.convertChild(e.parameterName),typeAnnotation:null});return e.type&&(r.typeAnnotation=this.convertTypeAnnotation(e.type,e),r.typeAnnotation.loc=r.typeAnnotation.typeAnnotation.loc,r.typeAnnotation.range=r.typeAnnotation.typeAnnotation.range),r}case B.ImportType:{let r=n1(e,this.ast);if(e.isTypeOf){let s=ju(e.getFirstToken(),e,this.ast);r[0]=s.getStart(this.ast)}let n=null;if(e.attributes){let s=this.createNode(e.attributes,{type:H.ObjectExpression,properties:e.attributes.elements.map(S=>this.createNode(S,{type:H.Property,computed:!1,key:this.convertChild(S.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.convertChild(S.value)}))}),c=ju(e.argument,e,this.ast),p=ju(c,e,this.ast),d=ju(e.attributes,e,this.ast),f=d.kind===Qt.CommaToken?ju(d,e,this.ast):d,m=ju(p,e,this.ast),y=n1(m,this.ast),g=m.kind===Qt.AssertKeyword?"assert":"with";n=this.createNode(e,{type:H.ObjectExpression,range:[p.getStart(this.ast),f.end],properties:[this.createNode(e,{type:H.Property,range:[y[0],e.attributes.end],computed:!1,key:this.createNode(e,{type:H.Identifier,range:y,decorators:[],name:g,optional:!1,typeAnnotation:void 0}),kind:"init",method:!1,optional:!1,shorthand:!1,value:s})]})}let o=this.convertChild(e.argument),i=o.literal,a=this.createNode(e,this.#o({type:H.TSImportType,range:r,options:n,qualifier:this.convertChild(e.qualifier),source:i,typeArguments:e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):null},"argument","source",o));return e.isTypeOf?this.createNode(e,{type:H.TSTypeQuery,exprName:a,typeArguments:void 0}):a}case B.EnumDeclaration:{let r=this.convertChildren(e.members),n=this.createNode(e,this.#o({type:H.TSEnumDeclaration,body:this.createNode(e,{type:H.TSEnumBody,range:[e.members.pos-1,e.end],members:r}),const:Kr(B.ConstKeyword,e),declare:Kr(B.DeclareKeyword,e),id:this.convertChild(e.name)},"members","'body.members'",this.convertChildren(e.members)));return this.fixExports(e,n)}case B.EnumMember:{let r=e.name.kind===Qt.ComputedPropertyName;return r&&this.#e(e.name,"Computed property names are not allowed in enums."),(e.name.kind===B.NumericLiteral||e.name.kind===B.BigIntLiteral)&&this.#e(e.name,"An enum member cannot have a numeric name."),this.createNode(e,this.#o({type:H.TSEnumMember,id:this.convertChild(e.name),initializer:e.initializer&&this.convertChild(e.initializer)},"computed",void 0,r))}case B.ModuleDeclaration:{let r=Kr(B.DeclareKeyword,e),n=this.createNode(e,{type:H.TSModuleDeclaration,...(()=>{if(e.flags&Vc.GlobalAugmentation){let i=this.convertChild(e.name),a=this.convertChild(e.body);return(a==null||a.type===H.TSModuleDeclaration)&&this.#e(e.body??e,"Expected a valid module body"),i.type!==H.Identifier&&this.#e(e.name,"global module augmentation must have an Identifier id"),{body:a,declare:!1,global:!1,id:i,kind:"global"}}if(g1(e.name)){let i=this.convertChild(e.body);return{kind:"module",...i!=null?{body:i}:{},declare:!1,global:!1,id:this.convertChild(e.name)}}e.body==null&&this.#e(e,"Expected a module body"),e.name.kind!==Qt.Identifier&&this.#e(e.name,"`namespace`s must have an Identifier id");let o=this.createNode(e.name,{type:H.Identifier,range:[e.name.getStart(this.ast),e.name.getEnd()],decorators:[],name:e.name.text,optional:!1,typeAnnotation:void 0});for(;e.body&&WD(e.body)&&e.body.name;){e=e.body,r||(r=Kr(B.DeclareKeyword,e));let i=e.name,a=this.createNode(i,{type:H.Identifier,range:[i.getStart(this.ast),i.getEnd()],decorators:[],name:i.text,optional:!1,typeAnnotation:void 0});o=this.createNode(i,{type:H.TSQualifiedName,range:[o.range[0],a.range[1]],left:o,right:a})}return{body:this.convertChild(e.body),declare:!1,global:!1,id:o,kind:e.flags&Vc.Namespace?"namespace":"module"}})()});return n.declare=r,e.flags&Vc.GlobalAugmentation&&(n.global=!0),this.fixExports(e,n)}case B.ParenthesizedType:return this.convertChild(e.type);case B.UnionType:return this.createNode(e,{type:H.TSUnionType,types:this.convertChildren(e.types)});case B.IntersectionType:return this.createNode(e,{type:H.TSIntersectionType,types:this.convertChildren(e.types)});case B.AsExpression:return this.createNode(e,{type:H.TSAsExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});case B.InferType:return this.createNode(e,{type:H.TSInferType,typeParameter:this.convertChild(e.typeParameter)});case B.LiteralType:return e.literal.kind===B.NullKeyword?this.createNode(e.literal,{type:H.TSNullKeyword}):this.createNode(e,{type:H.TSLiteralType,literal:this.convertChild(e.literal)});case B.TypeAssertionExpression:return this.createNode(e,{type:H.TSTypeAssertion,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});case B.ImportEqualsDeclaration:return this.fixExports(e,this.createNode(e,{type:H.TSImportEqualsDeclaration,id:this.convertChild(e.name),importKind:e.isTypeOnly?"type":"value",moduleReference:this.convertChild(e.moduleReference)}));case B.ExternalModuleReference:return e.expression.kind!==B.StringLiteral&&this.#e(e.expression,"String literal expected."),this.createNode(e,{type:H.TSExternalModuleReference,expression:this.convertChild(e.expression)});case B.NamespaceExportDeclaration:return this.createNode(e,{type:H.TSNamespaceExportDeclaration,id:this.convertChild(e.name)});case B.AbstractKeyword:return this.createNode(e,{type:H.TSAbstractKeyword});case B.TupleType:{let r=this.convertChildren(e.elements);return this.createNode(e,{type:H.TSTupleType,elementTypes:r})}case B.NamedTupleMember:{let r=this.createNode(e,{type:H.TSNamedTupleMember,elementType:this.convertChild(e.type,e),label:this.convertChild(e.name,e),optional:e.questionToken!=null});return e.dotDotDotToken?(r.range[0]=r.label.range[0],r.loc.start=r.label.loc.start,this.createNode(e,{type:H.TSRestType,typeAnnotation:r})):r}case B.OptionalType:return this.createNode(e,{type:H.TSOptionalType,typeAnnotation:this.convertChild(e.type)});case B.RestType:return this.createNode(e,{type:H.TSRestType,typeAnnotation:this.convertChild(e.type)});case B.TemplateLiteralType:{let r=this.createNode(e,{type:H.TSTemplateLiteralType,quasis:[this.convertChild(e.head)],types:[]});return e.templateSpans.forEach(n=>{r.types.push(this.convertChild(n.type)),r.quasis.push(this.convertChild(n.literal))}),r}case B.ClassStaticBlockDeclaration:return this.createNode(e,{type:H.StaticBlock,body:this.convertBodyExpressions(e.body.statements,e)});case B.AssertEntry:case B.ImportAttribute:return this.createNode(e,{type:H.ImportAttribute,key:this.convertChild(e.name),value:this.convertChild(e.value)});case B.SatisfiesExpression:return this.createNode(e,{type:H.TSSatisfiesExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});default:return this.deeplyCopy(e)}}createNode(e,t){let r=t;return r.range??(r.range=n1(e,this.ast)),r.loc??(r.loc=Fg(r.range,this.ast)),r&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(r,e),r}convertProgram(){return this.converter(this.ast)}deeplyCopy(e){e.kind===Qt.JSDocFunctionType&&this.#e(e,"JSDoc types can only be used inside documentation comments.");let t=`TS${B[e.kind]}`;if(this.options.errorOnUnknownASTType&&!H[t])throw new Error(`Unknown AST_NODE_TYPE: "${t}"`);let r=this.createNode(e,{type:t});"type"in e&&(r.typeAnnotation=e.type&&"kind"in e.type&&Stt(e.type)?this.convertTypeAnnotation(e.type,e):null),"typeArguments"in e&&(r.typeArguments=e.typeArguments&&"pos"in e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):null),"typeParameters"in e&&(r.typeParameters=e.typeParameters&&"pos"in e.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters):null);let n=l1(e);n?.length&&(r.decorators=this.convertChildren(n));let o=new Set(["_children","decorators","end","flags","heritageClauses","illegalDecorators","jsDoc","kind","locals","localSymbol","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(e).filter(([i])=>!o.has(i)).forEach(([i,a])=>{Array.isArray(a)?r[i]=this.convertChildren(a):a&&typeof a=="object"&&a.kind?r[i]=this.convertChild(a):r[i]=a}),r}fixExports(e,t){let r=WD(e)&&!g1(e.name)?zit(e):fd(e);if(r?.[0].kind===B.ExportKeyword){this.registerTSNodeInNodeMap(e,t);let n=r[0],o=r[1],i=o?.kind===B.DefaultKeyword,a=i?ju(o,this.ast,this.ast):ju(n,this.ast,this.ast);if(t.range[0]=a.getStart(this.ast),t.loc=Fg(t.range,this.ast),i)return this.createNode(e,{type:H.ExportDefaultDeclaration,range:[n.getStart(this.ast),t.range[1]],declaration:t,exportKind:"value"});let s=t.type===H.TSInterfaceDeclaration||t.type===H.TSTypeAliasDeclaration,c="declare"in t&&t.declare;return this.createNode(e,this.#n({type:H.ExportNamedDeclaration,range:[n.getStart(this.ast),t.range[1]],attributes:[],declaration:t,exportKind:s||c?"type":"value",source:null,specifiers:[]},"assertions","attributes",!0))}return t}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}registerTSNodeInNodeMap(e,t){t&&this.options.shouldPreserveNodeMaps&&!this.tsNodeToESTreeNodeMap.has(e)&&this.tsNodeToESTreeNodeMap.set(e,t)}};function rat(e,t,r=e.getSourceFile()){let n=[];for(;;){if(The(e.kind))t(e);else{let o=e.getChildren(r);if(o.length===1){e=o[0];continue}for(let i=o.length-1;i>=0;--i)n.push(o[i])}if(n.length===0)break;e=n.pop()}}function nat(e,t,r=e.getSourceFile()){let n=r.text,o=r.languageVariant!==Qme.JSX;return rat(e,a=>{if(a.pos!==a.end&&(a.kind!==Qt.JsxText&&wet(n,a.pos===0?(hhe(n)??"").length:a.pos,i),o||oat(a)))return Iet(n,a.end,i)},r);function i(a,s,c){t(n,{end:s,kind:c,pos:a})}}function oat(e){switch(e.kind){case Qt.CloseBraceToken:return e.parent.kind!==Qt.JsxExpression||!Bz(e.parent.parent);case Qt.GreaterThanToken:switch(e.parent.kind){case Qt.JsxClosingElement:case Qt.JsxClosingFragment:return!Bz(e.parent.parent.parent);case Qt.JsxOpeningElement:return e.end!==e.parent.end;case Qt.JsxOpeningFragment:return!1;case Qt.JsxSelfClosingElement:return e.end!==e.parent.end||!Bz(e.parent.parent)}}return!0}function Bz(e){return e.kind===Qt.JsxElement||e.kind===Qt.JsxFragment}var[$jt,Mjt]=EYe.split(".").map(e=>Number.parseInt(e,10)),jjt=cs.Intrinsic??cs.Any|cs.Unknown|cs.String|cs.Number|cs.BigInt|cs.Boolean|cs.BooleanLiteral|cs.ESSymbol|cs.Void|cs.Undefined|cs.Null|cs.Never|cs.NonPrimitive;function iat(e,t){let r=[];return nat(e,(n,o)=>{let i=o.kind===Qt.SingleLineCommentTrivia?ma.Line:ma.Block,a=[o.pos,o.end],s=Fg(a,e),c=a[0]+2,p=o.kind===Qt.SingleLineCommentTrivia?a[1]:a[1]-2;r.push({type:i,loc:s,range:a,value:t.slice(c,p)})},e),r}var aat=()=>{};function sat(e,t,r){let{parseDiagnostics:n}=e;if(n.length)throw Yit(n[0]);let o=new tat(e,{allowInvalidAST:t.allowInvalidAST,errorOnUnknownASTType:t.errorOnUnknownASTType,shouldPreserveNodeMaps:r,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings}),i=o.convertProgram();return(!t.range||!t.loc)&&aat(i,{enter:a=>{t.range||delete a.range,t.loc||delete a.loc}}),t.tokens&&(i.tokens=$it(e)),t.comment&&(i.comments=iat(e,t.codeFullText)),{astMaps:o.getASTMaps(),estree:i}}function Rye(e){if(typeof e!="object"||e==null)return!1;let t=e;return t.kind===Qt.SourceFile&&typeof t.getFullText=="function"}var cat=function(e){return e&&e.__esModule?e:{default:e}},lat=cat({extname:e=>"."+e.split(".").pop()});function uat(e,t){switch(lat.default.extname(e).toLowerCase()){case Ml.Cjs:case Ml.Js:case Ml.Mjs:return W_.JS;case Ml.Cts:case Ml.Mts:case Ml.Ts:return W_.TS;case Ml.Json:return W_.JSON;case Ml.Jsx:return W_.JSX;case Ml.Tsx:return W_.TSX;default:return t?W_.TSX:W_.TS}}var pat={default:dV},dat=(0,pat.default)("typescript-eslint:typescript-estree:create-program:createSourceFile");function _at(e){return dat("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),Rye(e.code)?e.code:Vot(e.filePath,e.codeFullText,{jsDocParsingMode:e.jsDocParsingMode,languageVersion:SV.Latest,setExternalModuleIndicator:e.setExternalModuleIndicator},!0,uat(e.filePath,e.jsx))}var fat=e=>e,mat=()=>{},hat=class{},yat=()=>!1,gat=()=>{},Sat=function(e){return e&&e.__esModule?e:{default:e}},vat={},lV={default:dV},bat=Sat({extname:e=>"."+e.split(".").pop()}),xat=(0,lV.default)("typescript-eslint:typescript-estree:parseSettings:createParseSettings"),Fme,qz=null,PD={ParseAll:RD?.ParseAll,ParseForTypeErrors:RD?.ParseForTypeErrors,ParseForTypeInfo:RD?.ParseForTypeInfo,ParseNone:RD?.ParseNone};function Eat(e,t={}){let r=Tat(e),n=yat(t),o,i=typeof t.loggerFn=="function",a=fat(typeof t.filePath=="string"&&t.filePath!==""?t.filePath:Dat(t.jsx),o),s=bat.default.extname(a).toLowerCase(),c=(()=>{switch(t.jsDocParsingMode){case"all":return PD.ParseAll;case"none":return PD.ParseNone;case"type-info":return PD.ParseForTypeInfo;default:return PD.ParseAll}})(),p={loc:t.loc===!0,range:t.range===!0,allowInvalidAST:t.allowInvalidAST===!0,code:e,codeFullText:r,comment:t.comment===!0,comments:[],debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every(d=>typeof d=="string")?t.extraFileExtensions:[],filePath:a,jsDocParsingMode:c,jsx:t.jsx===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:new Map,projectService:t.projectService||t.project&&t.projectService!==!1&&(void 0).env.TYPESCRIPT_ESLINT_PROJECT_SERVICE==="true"?Aat(t.projectService,{jsDocParsingMode:c,tsconfigRootDir:o}):void 0,setExternalModuleIndicator:t.sourceType==="module"||t.sourceType==null&&s===Ml.Mjs||t.sourceType==null&&s===Ml.Mts?d=>{d.externalModuleIndicator=!0}:void 0,singleRun:n,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings??!0,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:Fme??(Fme=new hat(n?"Infinity":t.cacheLifetime?.glob??void 0)),tsconfigRootDir:o};if(p.projectService&&t.project&&(void 0).env.TYPESCRIPT_ESLINT_IGNORE_PROJECT_AND_PROJECT_SERVICE_ERROR!=="true")throw new Error('Enabling "project" does nothing when "projectService" is enabled. You can remove the "project" setting.');if(p.debugLevel.size>0){let d=[];p.debugLevel.has("typescript-eslint")&&d.push("typescript-eslint:*"),(p.debugLevel.has("eslint")||lV.default.enabled("eslint:*,-eslint:code-path"))&&d.push("eslint:*,-eslint:code-path"),lV.default.enable(d.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");xat("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!p.programs&&!p.projectService&&(p.projects=new Map),t.jsDocParsingMode==null&&p.projects.size===0&&p.programs==null&&p.projectService==null&&(p.jsDocParsingMode=PD.ParseNone),gat(p,i),p}function Tat(e){return Rye(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function Dat(e){return e?"estree.tsx":"estree.ts"}function Aat(e,t){let r=typeof e=="object"?e:{};return mat(r.allowDefaultProject),qz??(qz=(0,vat.createProjectService)({options:r,...t})),qz}var wat={default:dV},Bjt=(0,wat.default)("typescript-eslint:typescript-estree:parser");function Iat(e,t){let{ast:r}=kat(e,t,!1);return r}function kat(e,t,r){let n=Eat(e,t);if(t?.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let o=_at(n),{astMaps:i,estree:a}=sat(o,n,r);return{ast:a,esTreeNodeToTSNodeMap:i.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:i.tsNodeToESTreeNodeMap}}function Cat(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var Pat=Cat;function Oat(e){let t=[];for(let r of e)try{return r()}catch(n){t.push(n)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var Nat=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},Fat=_V("findLast",function(){if(Array.isArray(this))return Nat}),Rat=Fat;function Lat(e){return this[e<0?this.length+e:e]}var $at=_V("at",function(){if(Array.isArray(this)||typeof this=="string")return Lat}),Mat=$at;function Y_(e){let t=e.range?.[0]??e.start,r=(e.declaration?.decorators??e.decorators)?.[0];return r?Math.min(Y_(r),t):t}function dd(e){return e.range?.[1]??e.end}function jat(e){let t=new Set(e);return r=>t.has(r?.type)}var HV=jat,Bat=HV(["Block","CommentBlock","MultiLine"]),ZV=Bat,qat=HV(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),Uat=qat,Uz=new WeakMap;function zat(e){return Uz.has(e)||Uz.set(e,ZV(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),Uz.get(e)}var Vat=zat;function Jat(e){if(!ZV(e))return!1;let t=`*${e.value}*`.split(` -`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var zz=new WeakMap;function Kat(e){return zz.has(e)||zz.set(e,Jat(e)),zz.get(e)}var Rme=Kat;function Gat(e){if(e.length<2)return;let t;for(let r=e.length-1;r>=0;r--){let n=e[r];if(t&&dd(n)===Y_(t)&&Rme(n)&&Rme(t)&&(e.splice(r+1,1),n.value+="*//*"+t.value,n.range=[Y_(n),dd(t)]),!Uat(n)&&!ZV(n))throw new TypeError(`Unknown comment type: "${n.type}".`);t=n}}var Hat=Gat;function Zat(e){return e!==null&&typeof e=="object"}var Wat=Zat,OD=null;function UD(e){if(OD!==null&&typeof OD.property){let t=OD;return OD=UD.prototype=null,t}return OD=UD.prototype=e??Object.create(null),new UD}var Qat=10;for(let e=0;e<=Qat;e++)UD();function Xat(e){return UD(e)}function Yat(e,t="type"){Xat(e);function r(n){let o=n[t],i=e[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:n});return i}return r}var est=Yat,J=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],tst={AccessorProperty:J[0],AnyTypeAnnotation:J[1],ArgumentPlaceholder:J[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:J[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:J[3],AsExpression:J[4],AssignmentExpression:J[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:J[6],BigIntLiteral:J[1],BigIntLiteralTypeAnnotation:J[1],BigIntTypeAnnotation:J[1],BinaryExpression:J[5],BindExpression:["object","callee"],BlockStatement:J[7],BooleanLiteral:J[1],BooleanLiteralTypeAnnotation:J[1],BooleanTypeAnnotation:J[1],BreakStatement:J[8],CallExpression:J[9],CatchClause:["param","body"],ChainExpression:J[3],ClassAccessorProperty:J[0],ClassBody:J[10],ClassDeclaration:J[11],ClassExpression:J[11],ClassImplements:J[12],ClassMethod:J[13],ClassPrivateMethod:J[13],ClassPrivateProperty:J[14],ClassProperty:J[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:J[15],ConditionalExpression:J[16],ConditionalTypeAnnotation:J[17],ContinueStatement:J[8],DebuggerStatement:J[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:J[18],DeclareEnum:J[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:J[20],DeclareFunction:["id","predicate"],DeclareHook:J[21],DeclareInterface:J[22],DeclareModule:J[19],DeclareModuleExports:J[23],DeclareNamespace:J[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:J[24],DeclareVariable:J[21],Decorator:J[3],Directive:J[18],DirectiveLiteral:J[1],DoExpression:J[10],DoWhileStatement:J[25],EmptyStatement:J[1],EmptyTypeAnnotation:J[1],EnumBigIntBody:J[26],EnumBigIntMember:J[27],EnumBooleanBody:J[26],EnumBooleanMember:J[27],EnumDeclaration:J[19],EnumDefaultedMember:J[21],EnumNumberBody:J[26],EnumNumberMember:J[27],EnumStringBody:J[26],EnumStringMember:J[27],EnumSymbolBody:J[26],ExistsTypeAnnotation:J[1],ExperimentalRestProperty:J[6],ExperimentalSpreadProperty:J[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:J[28],ExportNamedDeclaration:J[20],ExportNamespaceSpecifier:J[28],ExportSpecifier:["local","exported"],ExpressionStatement:J[3],File:["program"],ForInStatement:J[29],ForOfStatement:J[29],ForStatement:["init","test","update","body"],FunctionDeclaration:J[30],FunctionExpression:J[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:J[15],GenericTypeAnnotation:J[12],HookDeclaration:J[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:J[16],ImportAttribute:J[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:J[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:J[33],ImportSpecifier:["imported","local"],IndexedAccessType:J[34],InferredPredicate:J[1],InferTypeAnnotation:J[35],InterfaceDeclaration:J[22],InterfaceExtends:J[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:J[1],IntersectionTypeAnnotation:J[36],JsExpressionRoot:J[37],JsonRoot:J[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:J[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:J[1],JSXExpressionContainer:J[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:J[1],JSXMemberExpression:J[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:J[1],JSXSpreadAttribute:J[6],JSXSpreadChild:J[3],JSXText:J[1],KeyofTypeAnnotation:J[6],LabeledStatement:["label","body"],Literal:J[1],LogicalExpression:J[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:J[21],MatchExpression:J[39],MatchExpressionCase:J[40],MatchIdentifierPattern:J[21],MatchLiteralPattern:J[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:J[6],MatchStatement:J[39],MatchStatementCase:J[40],MatchUnaryPattern:J[6],MatchWildcardPattern:J[1],MemberExpression:J[38],MetaProperty:["meta","property"],MethodDefinition:J[42],MixedTypeAnnotation:J[1],ModuleExpression:J[10],NeverTypeAnnotation:J[1],NewExpression:J[9],NGChainedExpression:J[43],NGEmptyExpression:J[1],NGMicrosyntax:J[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:J[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:J[32],NGPipeExpression:["left","right","arguments"],NGRoot:J[37],NullableTypeAnnotation:J[23],NullLiteral:J[1],NullLiteralTypeAnnotation:J[1],NumberLiteralTypeAnnotation:J[1],NumberTypeAnnotation:J[1],NumericLiteral:J[1],ObjectExpression:["properties"],ObjectMethod:J[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:J[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:J[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:J[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:J[9],OptionalIndexedAccessType:J[34],OptionalMemberExpression:J[38],ParenthesizedExpression:J[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:J[1],PipelineTopicExpression:J[3],Placeholder:J[1],PrivateIdentifier:J[1],PrivateName:J[21],Program:J[7],Property:J[32],PropertyDefinition:J[14],QualifiedTypeIdentifier:J[44],QualifiedTypeofIdentifier:J[44],RegExpLiteral:J[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:J[6],SatisfiesExpression:J[4],SequenceExpression:J[43],SpreadElement:J[6],StaticBlock:J[10],StringLiteral:J[1],StringLiteralTypeAnnotation:J[1],StringTypeAnnotation:J[1],Super:J[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:J[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:J[1],TemplateLiteral:["quasis","expressions"],ThisExpression:J[1],ThisTypeAnnotation:J[1],ThrowStatement:J[6],TopicReference:J[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:J[45],TSAbstractKeyword:J[1],TSAbstractMethodDefinition:J[32],TSAbstractPropertyDefinition:J[45],TSAnyKeyword:J[1],TSArrayType:J[2],TSAsExpression:J[4],TSAsyncKeyword:J[1],TSBigIntKeyword:J[1],TSBooleanKeyword:J[1],TSCallSignatureDeclaration:J[46],TSClassImplements:J[47],TSConditionalType:J[17],TSConstructorType:J[46],TSConstructSignatureDeclaration:J[46],TSDeclareFunction:J[31],TSDeclareKeyword:J[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:J[26],TSEnumDeclaration:J[19],TSEnumMember:["id","initializer"],TSExportAssignment:J[3],TSExportKeyword:J[1],TSExternalModuleReference:J[3],TSFunctionType:J[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:J[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:J[35],TSInstantiationExpression:J[47],TSInterfaceBody:J[10],TSInterfaceDeclaration:J[22],TSInterfaceHeritage:J[47],TSIntersectionType:J[36],TSIntrinsicKeyword:J[1],TSJSDocAllType:J[1],TSJSDocNonNullableType:J[23],TSJSDocNullableType:J[23],TSJSDocUnknownType:J[1],TSLiteralType:J[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:J[10],TSModuleDeclaration:J[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:J[21],TSNeverKeyword:J[1],TSNonNullExpression:J[3],TSNullKeyword:J[1],TSNumberKeyword:J[1],TSObjectKeyword:J[1],TSOptionalType:J[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:J[23],TSPrivateKeyword:J[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:J[1],TSPublicKeyword:J[1],TSQualifiedName:J[5],TSReadonlyKeyword:J[1],TSRestType:J[23],TSSatisfiesExpression:J[4],TSStaticKeyword:J[1],TSStringKeyword:J[1],TSSymbolKeyword:J[1],TSTemplateLiteralType:["quasis","types"],TSThisType:J[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:J[23],TSTypeAssertion:J[4],TSTypeLiteral:J[26],TSTypeOperator:J[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:J[48],TSTypeParameterInstantiation:J[48],TSTypePredicate:J[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:J[1],TSUnionType:J[36],TSUnknownKeyword:J[1],TSVoidKeyword:J[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:J[24],TypeAnnotation:J[23],TypeCastExpression:J[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:J[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:J[48],TypeParameterInstantiation:J[48],TypePredicate:J[49],UnaryExpression:J[6],UndefinedTypeAnnotation:J[1],UnionTypeAnnotation:J[36],UnknownTypeAnnotation:J[1],UpdateExpression:J[6],V8IntrinsicIdentifier:J[1],VariableDeclaration:["declarations"],VariableDeclarator:J[27],Variance:J[1],VoidPattern:J[1],VoidTypeAnnotation:J[1],WhileStatement:J[25],WithStatement:["object","body"],YieldExpression:J[6]},rst=est(tst),nst=rst;function pO(e,t){if(!Wat(e))return e;if(Array.isArray(e)){for(let n=0;ny<=d);f=m&&n.slice(m,d).trim().length===0}return f?void 0:(p.extra={...p.extra,parenthesized:!0},p)}case"TemplateLiteral":if(c.expressions.length!==c.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(r==="flow"||r==="hermes"||r==="espree"||r==="typescript"||i){let p=Y_(c)+1,d=dd(c)-(c.tail?1:2);c.range=[p,d]}break;case"VariableDeclaration":{let p=Mat(0,c.declarations,-1);p?.init&&n[dd(p)]!==";"&&(c.range=[Y_(c),dd(p)]);break}case"TSParenthesizedType":return c.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(c.types.length===1)return c.types[0];break;case"ImportExpression":r==="hermes"&&c.attributes&&!c.options&&(c.options=c.attributes);break}},onLeave(c){switch(c.type){case"LogicalExpression":if(Lye(c))return uV(c);break;case"TSImportType":!c.source&&c.argument.type==="TSLiteralType"&&(c.source=c.argument.literal,delete c.argument);break}}}),e}function Lye(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function uV(e){return Lye(e)?uV({type:"LogicalExpression",operator:e.operator,left:uV({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[Y_(e.left),dd(e.right.left)]}),right:e.right.right,range:[Y_(e),dd(e)]}):e}var ast=ist,sst=/\*\/$/,cst=/^\/\*\*?/,lst=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,ust=/(^|\s+)\/\/([^\n\r]*)/g,Lme=/^(\r?\n)+/,pst=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,$me=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,dst=/(\r?\n|^) *\* ?/g,_st=[];function fst(e){let t=e.match(lst);return t?t[0].trimStart():""}function mst(e){e=u1(0,e.replace(cst,"").replace(sst,""),dst,"$1");let t="";for(;t!==e;)t=e,e=u1(0,e,pst,` +`;function Ha(Dr,on){er[Dr]+=on}}function Of(D){switch(D){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function re(D,Ht){if(D.fill)D.fill(Ht);else for(let er=0;er0?D.repeat(Ht):"";let er="";for(;er.length{},eet=()=>{},sO,Qt=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.AssertClause=301]="AssertClause",e[e.AssertEntry=302]="AssertEntry",e[e.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",e[e.PropertyAssignment=304]="PropertyAssignment",e[e.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",e[e.SpreadAssignment=306]="SpreadAssignment",e[e.EnumMember=307]="EnumMember",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.JSDocTypeExpression=310]="JSDocTypeExpression",e[e.JSDocNameReference=311]="JSDocNameReference",e[e.JSDocMemberName=312]="JSDocMemberName",e[e.JSDocAllType=313]="JSDocAllType",e[e.JSDocUnknownType=314]="JSDocUnknownType",e[e.JSDocNullableType=315]="JSDocNullableType",e[e.JSDocNonNullableType=316]="JSDocNonNullableType",e[e.JSDocOptionalType=317]="JSDocOptionalType",e[e.JSDocFunctionType=318]="JSDocFunctionType",e[e.JSDocVariadicType=319]="JSDocVariadicType",e[e.JSDocNamepathType=320]="JSDocNamepathType",e[e.JSDoc=321]="JSDoc",e[e.JSDocComment=321]="JSDocComment",e[e.JSDocText=322]="JSDocText",e[e.JSDocTypeLiteral=323]="JSDocTypeLiteral",e[e.JSDocSignature=324]="JSDocSignature",e[e.JSDocLink=325]="JSDocLink",e[e.JSDocLinkCode=326]="JSDocLinkCode",e[e.JSDocLinkPlain=327]="JSDocLinkPlain",e[e.JSDocTag=328]="JSDocTag",e[e.JSDocAugmentsTag=329]="JSDocAugmentsTag",e[e.JSDocImplementsTag=330]="JSDocImplementsTag",e[e.JSDocAuthorTag=331]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",e[e.JSDocClassTag=333]="JSDocClassTag",e[e.JSDocPublicTag=334]="JSDocPublicTag",e[e.JSDocPrivateTag=335]="JSDocPrivateTag",e[e.JSDocProtectedTag=336]="JSDocProtectedTag",e[e.JSDocReadonlyTag=337]="JSDocReadonlyTag",e[e.JSDocOverrideTag=338]="JSDocOverrideTag",e[e.JSDocCallbackTag=339]="JSDocCallbackTag",e[e.JSDocOverloadTag=340]="JSDocOverloadTag",e[e.JSDocEnumTag=341]="JSDocEnumTag",e[e.JSDocParameterTag=342]="JSDocParameterTag",e[e.JSDocReturnTag=343]="JSDocReturnTag",e[e.JSDocThisTag=344]="JSDocThisTag",e[e.JSDocTypeTag=345]="JSDocTypeTag",e[e.JSDocTemplateTag=346]="JSDocTemplateTag",e[e.JSDocTypedefTag=347]="JSDocTypedefTag",e[e.JSDocSeeTag=348]="JSDocSeeTag",e[e.JSDocPropertyTag=349]="JSDocPropertyTag",e[e.JSDocThrowsTag=350]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",e[e.JSDocImportTag=352]="JSDocImportTag",e[e.SyntaxList=353]="SyntaxList",e[e.NotEmittedStatement=354]="NotEmittedStatement",e[e.NotEmittedTypeElement=355]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",e[e.Count=359]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=166]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=310]="FirstJSDocNode",e[e.LastJSDocNode=352]="LastJSDocNode",e[e.FirstJSDocTagNode=328]="FirstJSDocTagNode",e[e.LastJSDocTagNode=352]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e))(Qt||{}),Jc=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(Jc||{}),Gme=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(Gme||{}),Hme=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(Hme||{}),Zz=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Zz||{}),Zme=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(Zme||{}),Wme=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(Wme||{}),cs=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(cs||{}),Qme=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(Qme||{}),Xme=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(Xme||{}),X_=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(X_||{}),bJ=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(bJ||{}),Yme=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(Yme||{}),jl=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(jl||{}),ehe=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(ehe||{}),the=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(the||{}),rhe=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(rhe||{}),kD={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},nhe={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},$D=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))($D||{}),ef="/",tet="\\",Nfe="://",ret=/\\/g;function net(e){return e===47||e===92}function oet(e,t){return e.length>t.length&&WYe(e,t)}function xJ(e){return e.length>0&&net(e.charCodeAt(e.length-1))}function Ffe(e){return e>=97&&e<=122||e>=65&&e<=90}function iet(e,t){let r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){let n=e.charCodeAt(t+2);if(n===97||n===65)return t+3}return-1}function aet(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let n=e.indexOf(t===47?ef:tet,2);return n<0?e.length:n+1}if(Ffe(t)&&e.charCodeAt(1)===58){let n=e.charCodeAt(2);if(n===47||n===92)return 3;if(e.length===2)return 2}let r=e.indexOf(Nfe);if(r!==-1){let n=r+Nfe.length,o=e.indexOf(ef,n);if(o!==-1){let i=e.slice(0,r),a=e.slice(n,o);if(i==="file"&&(a===""||a==="localhost")&&Ffe(e.charCodeAt(o+1))){let s=iet(e,o+2);if(s!==-1){if(e.charCodeAt(s)===47)return~(s+1);if(s===e.length)return~s}}return~(o+1)}return~e.length}return 0}function VD(e){let t=aet(e);return t<0?~t:t}function ohe(e,t,r){if(e=KD(e),VD(e)===e.length)return"";e=mO(e);let n=e.slice(Math.max(VD(e),e.lastIndexOf(ef)+1)),o=t!==void 0&&r!==void 0?ihe(n,t,r):void 0;return o?n.slice(0,n.length-o.length):n}function Rfe(e,t,r){if(fO(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let n=e.slice(e.length-t.length);if(r(n,t))return n}}function set(e,t,r){if(typeof t=="string")return Rfe(e,t,r)||"";for(let n of t){let o=Rfe(e,n,r);if(o)return o}return""}function ihe(e,t,r){if(t)return set(mO(e),t,r?vJ:KYe);let n=ohe(e),o=n.lastIndexOf(".");return o>=0?n.substring(o):""}function KD(e){return e.includes("\\")?e.replace(ret,ef):e}function cet(e,...t){e&&(e=KD(e));for(let r of t)r&&(r=KD(r),!e||VD(r)!==0?e=r:e=she(e)+r);return e}function uet(e,t){let r=VD(e);r===0&&t?(e=cet(t,e),r=VD(e)):e=KD(e);let n=ahe(e);if(n!==void 0)return n.length>r?mO(n):n;let o=e.length,i=e.substring(0,r),a,s=r,c=s,p=s,d=r!==0;for(;sc&&(a??(a=e.substring(0,c-1)),c=s);let m=e.indexOf(ef,s+1);m===-1&&(m=o);let y=m-c;if(y===1&&e.charCodeAt(s)===46)a??(a=e.substring(0,p));else if(y===2&&e.charCodeAt(s)===46&&e.charCodeAt(s+1)===46)if(!d)a!==void 0?a+=a.length===r?"..":"/..":p=s+2;else if(a===void 0)p-2>=0?a=e.substring(0,Math.max(r,e.lastIndexOf(ef,p-2))):a=e.substring(0,p);else{let g=a.lastIndexOf(ef);g!==-1?a=a.substring(0,Math.max(r,g)):a=i,a.length===r&&(d=r!==0)}else a!==void 0?(a.length!==r&&(a+=ef),d=!0,a+=e.substring(c,m)):(d=!0,p=m);s=m+1}return a??(o>r?mO(e):e)}function pet(e){e=KD(e);let t=ahe(e);return t!==void 0?t:(t=uet(e,""),t&&xJ(e)?she(t):t)}function ahe(e){if(!Lfe.test(e))return e;let t=e.replace(/\/\.\//g,"/");if(t.startsWith("./")&&(t=t.slice(2)),t!==e&&(e=t,!Lfe.test(e)))return e}function mO(e){return xJ(e)?e.substr(0,e.length-1):e}function she(e){return xJ(e)?e:e+ef}var Lfe=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function u(e,t,r,n,o,i,a){return{code:e,category:t,key:r,message:n,reportsUnnecessary:o,elidedInCompatabilityPyramid:i,reportsDeprecated:a}}var G={Unterminated_string_literal:u(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:u(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:u(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:u(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:u(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:u(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:u(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:u(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:u(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:u(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:u(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:u(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:u(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:u(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:u(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:u(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:u(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:u(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:u(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:u(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:u(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:u(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:u(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:u(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:u(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:u(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:u(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:u(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:u(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:u(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:u(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:u(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:u(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:u(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:u(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:u(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:u(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:u(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:u(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:u(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:u(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:u(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:u(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:u(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:u(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:u(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:u(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:u(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:u(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:u(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:u(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:u(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:u(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:u(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:u(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:u(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:u(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:u(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:u(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:u(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:u(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:u(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:u(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:u(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:u(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:u(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:u(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:u(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:u(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:u(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:u(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:u(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:u(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:u(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:u(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:u(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:u(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:u(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:u(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:u(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:u(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:u(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:u(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:u(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:u(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:u(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:u(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:u(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:u(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:u(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:u(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:u(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:u(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:u(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:u(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:u(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:u(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:u(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:u(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:u(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:u(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:u(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:u(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:u(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:u(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:u(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:u(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:u(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:u(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:u(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:u(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:u(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:u(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:u(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:u(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:u(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:u(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:u(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:u(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:u(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:u(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:u(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:u(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:u(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:u(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:u(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:u(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:u(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:u(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:u(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:u(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:u(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:u(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:u(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:u(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:u(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:u(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:u(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:u(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:u(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:u(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:u(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:u(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:u(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:u(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:u(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:u(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:u(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:u(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:u(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:u(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:u(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:u(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:u(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:u(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:u(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:u(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:u(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:u(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:u(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:u(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:u(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:u(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:u(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:u(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:u(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:u(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:u(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:u(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:u(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:u(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:u(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:u(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:u(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:u(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:u(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:u(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:u(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:u(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:u(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:u(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:u(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:u(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:u(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:u(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:u(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:u(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:u(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:u(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:u(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:u(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:u(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:u(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:u(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:u(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:u(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:u(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:u(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:u(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:u(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:u(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:u(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:u(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:u(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:u(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:u(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:u(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:u(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:u(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:u(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:u(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:u(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:u(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:u(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:u(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:u(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:u(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:u(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:u(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:u(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:u(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:u(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:u(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:u(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:u(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:u(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:u(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:u(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:u(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:u(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:u(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:u(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:u(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:u(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:u(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:u(1286,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:u(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:u(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:u(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:u(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:u(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:u(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:u(1293,1,"ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:u(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:u(1295,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript."),with_statements_are_not_allowed_in_an_async_function_block:u(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:u(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:u(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:u(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:u(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:u(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:u(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:u(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:u(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:u(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:u(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:u(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:u(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:u(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext:u(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:u(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:u(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:u(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:u(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:u(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:u(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:u(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:u(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:u(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:u(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:u(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:u(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:u(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:u(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:u(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:u(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:u(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext:u(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'."),A_label_is_not_allowed_here:u(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:u(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:u(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:u(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:u(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:u(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:u(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:u(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:u(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:u(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:u(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:u(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:u(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:u(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:u(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:u(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:u(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:u(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:u(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:u(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:u(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:u(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:u(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:u(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:u(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:u(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:u(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:u(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:u(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:u(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:u(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:u(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:u(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:u(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:u(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:u(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:u(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:u(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:u(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:u(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:u(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:u(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:u(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:u(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:u(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:u(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:u(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:u(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:u(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:u(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:u(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:u(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:u(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:u(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:u(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:u(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:u(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:u(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:u(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:u(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:u(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:u(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:u(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:u(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:u(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:u(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:u(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:u(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:u(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:u(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:u(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:u(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:u(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:u(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:u(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:u(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:u(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:u(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:u(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:u(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:u(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:u(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:u(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:u(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:u(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:u(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:u(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:u(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:u(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:u(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:u(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:u(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:u(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:u(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:u(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:u(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:u(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:u(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:u(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:u(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:u(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:u(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:u(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:u(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:u(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:u(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:u(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:u(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:u(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:u(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:u(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:u(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:u(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:u(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:u(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:u(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:u(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:u(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:u(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:u(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:u(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:u(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:u(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:u(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:u(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:u(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:u(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:u(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:u(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:u(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:u(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:u(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:u(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:u(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:u(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:u(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:u(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:u(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:u(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:u(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:u(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:u(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:u(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:u(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:u(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:u(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:u(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:u(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:u(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:u(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:u(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:u(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:u(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:u(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:u(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:u(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:u(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:u(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:u(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:u(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:u(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:u(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:u(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:u(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:u(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:u(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:u(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:u(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:u(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:u(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:u(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:u(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:u(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:u(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:u(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:u(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:u(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:u(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:u(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:u(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:u(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:u(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),using_declarations_are_not_allowed_in_ambient_contexts:u(1545,1,"using_declarations_are_not_allowed_in_ambient_contexts_1545","'using' declarations are not allowed in ambient contexts."),await_using_declarations_are_not_allowed_in_ambient_contexts:u(1546,1,"await_using_declarations_are_not_allowed_in_ambient_contexts_1546","'await using' declarations are not allowed in ambient contexts."),The_types_of_0_are_incompatible_between_these_types:u(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:u(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:u(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:u(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:u(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:u(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:u(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:u(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:u(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:u(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:u(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:u(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:u(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:u(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:u(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:u(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:u(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:u(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:u(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:u(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:u(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:u(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:u(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:u(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:u(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:u(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:u(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:u(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:u(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:u(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:u(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:u(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:u(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:u(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:u(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:u(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:u(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:u(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:u(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:u(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:u(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:u(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:u(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:u(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:u(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:u(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:u(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:u(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:u(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:u(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:u(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:u(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:u(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:u(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:u(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:u(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:u(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:u(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:u(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:u(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:u(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:u(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:u(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:u(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:u(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:u(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:u(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:u(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:u(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:u(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:u(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:u(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:u(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:u(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:u(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:u(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:u(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:u(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:u(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:u(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:u(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:u(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:u(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:u(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:u(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:u(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:u(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:u(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:u(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:u(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:u(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:u(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:u(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:u(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:u(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:u(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:u(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:u(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:u(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:u(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:u(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:u(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:u(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:u(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:u(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:u(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:u(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:u(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:u(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:u(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:u(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:u(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:u(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:u(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:u(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:u(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:u(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:u(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:u(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:u(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:u(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:u(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:u(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:u(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:u(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:u(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:u(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:u(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:u(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:u(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:u(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:u(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:u(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:u(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:u(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:u(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:u(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:u(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:u(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:u(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:u(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:u(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:u(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:u(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:u(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:u(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:u(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:u(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:u(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:u(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:u(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:u(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:u(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:u(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:u(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:u(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:u(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:u(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:u(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:u(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:u(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:u(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:u(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:u(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:u(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:u(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:u(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:u(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:u(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:u(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:u(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:u(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:u(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:u(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:u(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:u(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:u(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:u(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:u(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:u(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:u(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:u(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:u(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:u(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:u(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:u(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:u(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:u(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:u(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:u(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:u(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:u(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:u(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:u(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:u(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:u(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:u(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:u(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:u(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:u(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:u(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:u(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:u(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:u(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:u(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:u(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:u(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:u(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:u(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:u(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:u(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:u(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:u(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:u(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:u(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:u(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:u(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:u(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:u(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:u(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:u(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:u(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:u(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:u(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:u(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:u(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:u(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:u(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:u(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:u(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:u(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:u(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:u(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:u(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:u(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:u(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:u(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:u(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:u(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:u(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:u(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:u(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:u(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:u(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:u(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:u(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:u(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:u(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:u(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:u(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:u(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:u(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:u(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:u(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:u(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:u(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:u(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:u(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:u(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:u(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:u(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:u(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:u(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:u(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:u(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:u(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:u(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:u(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:u(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:u(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:u(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:u(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:u(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:u(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:u(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:u(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:u(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:u(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:u(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:u(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:u(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:u(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:u(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:u(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:u(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:u(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:u(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:u(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:u(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:u(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:u(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:u(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:u(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:u(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:u(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:u(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:u(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:u(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:u(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:u(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:u(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:u(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:u(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:u(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:u(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:u(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:u(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:u(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:u(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:u(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:u(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:u(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:u(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:u(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:u(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:u(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:u(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:u(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:u(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:u(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:u(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:u(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:u(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:u(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:u(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:u(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:u(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:u(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:u(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:u(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:u(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:u(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:u(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:u(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:u(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:u(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:u(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:u(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:u(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:u(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:u(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:u(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:u(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:u(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:u(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:u(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:u(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:u(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:u(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:u(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:u(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:u(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:u(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:u(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:u(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:u(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:u(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:u(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:u(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:u(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:u(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:u(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:u(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:u(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:u(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:u(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:u(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:u(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:u(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:u(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:u(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:u(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:u(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:u(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:u(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:u(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:u(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:u(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:u(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:u(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:u(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:u(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:u(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:u(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:u(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:u(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:u(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:u(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:u(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:u(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:u(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:u(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0:u(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 and above with module {0}."),Cannot_find_lib_definition_for_0:u(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:u(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:u(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:u(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:u(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:u(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:u(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:u(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:u(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:u(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:u(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:u(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:u(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:u(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:u(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:u(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:u(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:u(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:u(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:u(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:u(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:u(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:u(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:u(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:u(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:u(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:u(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:u(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:u(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:u(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:u(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:u(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:u(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:u(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:u(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:u(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:u(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:u(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:u(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:u(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:u(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:u(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:u(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:u(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:u(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:u(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:u(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:u(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:u(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:u(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:u(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:u(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:u(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:u(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:u(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:u(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:u(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:u(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:u(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:u(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:u(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:u(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:u(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:u(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:u(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:u(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:u(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:u(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:u(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:u(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:u(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:u(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:u(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:u(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:u(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:u(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:u(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:u(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:u(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:u(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:u(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:u(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:u(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:u(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:u(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:u(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:u(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:u(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks:u(2815,1,"arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815","'arguments' cannot be referenced in property initializers or class static initialization blocks."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:u(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:u(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:u(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:u(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:u(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:u(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:u(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:u(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:u(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:u(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:u(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:u(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:u(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:u(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:u(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:u(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:u(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:u(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:u(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:u(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:u(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:u(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:u(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:u(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:u(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:u(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:u(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:u(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:u(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:u(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:u(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:u(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:u(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:u(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:u(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:u(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:u(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:u(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:u(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:u(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:u(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:u(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:u(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:u(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:u(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:u(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:u(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:u(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:u(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:u(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:u(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:u(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:u(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:u(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),This_expression_is_never_nullish:u(2881,1,"This_expression_is_never_nullish_2881","This expression is never nullish."),Import_declaration_0_is_using_private_name_1:u(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:u(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:u(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:u(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:u(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:u(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:u(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:u(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:u(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:u(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:u(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:u(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:u(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:u(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:u(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:u(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:u(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:u(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:u(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:u(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:u(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:u(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:u(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:u(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:u(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:u(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:u(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:u(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:u(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:u(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:u(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:u(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:u(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:u(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:u(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:u(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:u(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:u(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:u(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:u(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:u(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:u(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:u(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:u(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:u(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:u(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:u(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:u(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:u(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:u(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:u(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:u(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:u(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:u(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:u(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:u(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:u(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:u(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:u(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:u(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:u(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:u(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:u(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:u(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:u(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:u(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:u(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:u(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:u(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:u(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:u(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:u(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:u(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:u(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:u(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:u(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:u(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:u(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:u(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:u(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:u(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:u(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:u(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:u(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:u(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:u(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:u(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:u(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:u(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:u(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:u(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:u(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:u(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:u(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),The_current_host_does_not_support_the_0_option:u(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:u(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:u(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:u(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:u(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:u(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:u(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:u(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:u(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:u(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:u(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:u(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:u(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:u(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:u(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:u(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:u(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:u(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:u(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:u(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:u(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:u(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:u(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:u(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:u(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:u(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:u(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:u(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:u(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:u(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:u(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:u(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:u(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:u(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:u(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:u(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:u(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:u(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:u(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:u(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:u(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:u(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:u(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:u(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:u(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:u(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:u(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:u(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:u(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:u(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:u(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:u(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:u(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:u(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:u(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:u(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:u(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:u(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:u(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:u(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:u(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:u(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:u(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:u(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:u(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:u(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:u(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:u(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:u(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:u(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:u(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:u(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:u(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:u(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:u(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:u(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:u(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:u(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:u(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:u(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:u(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:u(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:u(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:u(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:u(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:u(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:u(6024,3,"options_6024","options"),file:u(6025,3,"file_6025","file"),Examples_Colon_0:u(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:u(6027,3,"Options_Colon_6027","Options:"),Version_0:u(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:u(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:u(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:u(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:u(6034,3,"KIND_6034","KIND"),FILE:u(6035,3,"FILE_6035","FILE"),VERSION:u(6036,3,"VERSION_6036","VERSION"),LOCATION:u(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:u(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:u(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:u(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:u(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:u(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:u(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:u(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:u(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:u(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:u(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:u(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:u(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:u(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:u(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:u(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:u(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:u(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:u(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:u(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:u(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:u(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:u(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:u(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:u(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:u(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:u(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:u(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:u(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:u(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:u(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:u(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:u(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:u(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:u(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:u(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:u(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:u(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:u(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:u(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:u(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:u(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:u(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:u(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:u(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:u(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:u(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:u(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:u(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:u(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:u(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:u(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:u(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:u(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:u(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:u(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:u(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:u(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:u(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:u(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:u(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:u(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:u(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:u(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:u(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:u(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:u(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:u(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:u(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:u(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:u(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:u(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:u(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:u(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:u(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:u(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:u(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:u(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:u(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:u(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:u(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:u(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:u(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:u(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:u(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:u(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:u(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:u(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:u(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:u(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:u(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:u(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:u(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:u(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:u(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:u(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:u(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:u(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:u(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:u(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:u(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:u(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:u(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:u(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:u(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:u(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:u(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:u(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:u(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:u(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:u(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:u(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:u(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:u(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:u(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:u(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:u(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:u(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:u(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:u(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:u(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:u(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:u(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:u(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:u(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:u(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:u(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:u(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:u(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:u(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:u(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:u(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:u(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:u(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:u(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:u(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:u(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:u(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:u(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:u(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:u(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:u(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:u(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:u(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:u(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:u(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:u(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:u(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:u(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:u(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:u(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:u(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:u(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:u(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:u(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:u(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:u(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:u(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:u(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:u(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:u(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:u(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:u(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:u(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:u(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:u(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:u(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:u(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:u(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:u(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:u(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:u(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:u(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:u(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:u(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:u(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:u(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:u(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:u(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:u(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:u(6244,3,"Modules_6244","Modules"),File_Management:u(6245,3,"File_Management_6245","File Management"),Emit:u(6246,3,"Emit_6246","Emit"),JavaScript_Support:u(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:u(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:u(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:u(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:u(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:u(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:u(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:u(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:u(6255,3,"Projects_6255","Projects"),Output_Formatting:u(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:u(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:u(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:u(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:u(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:u(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:u(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:u(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:u(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:u(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:u(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:u(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:u(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:u(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:u(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:u(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:u(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:u(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:u(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:u(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:u(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:u(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:u(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:u(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:u(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),File_Layout:u(6284,3,"File_Layout_6284","File Layout"),Environment_Settings:u(6285,3,"Environment_Settings_6285","Environment Settings"),See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule:u(6286,3,"See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286","See also https://aka.ms/tsconfig/module"),For_nodejs_Colon:u(6287,3,"For_nodejs_Colon_6287","For nodejs:"),and_npm_install_D_types_Slashnode:u(6290,3,"and_npm_install_D_types_Slashnode_6290","and npm install -D @types/node"),Other_Outputs:u(6291,3,"Other_Outputs_6291","Other Outputs"),Stricter_Typechecking_Options:u(6292,3,"Stricter_Typechecking_Options_6292","Stricter Typechecking Options"),Style_Options:u(6293,3,"Style_Options_6293","Style Options"),Recommended_Options:u(6294,3,"Recommended_Options_6294","Recommended Options"),Enable_project_compilation:u(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:u(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:u(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:u(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:u(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:u(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:u(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:u(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:u(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:u(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:u(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:u(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:u(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:u(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:u(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:u(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:u(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:u(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:u(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:u(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:u(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:u(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:u(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:u(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:u(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:u(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:u(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:u(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:u(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:u(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:u(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:u(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:u(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:u(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:u(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:u(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:u(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:u(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:u(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:u(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:u(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:u(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:u(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:u(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:u(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:u(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:u(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:u(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:u(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:u(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:u(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:u(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:u(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:u(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:u(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:u(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:u(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:u(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:u(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:u(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:u(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:u(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:u(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:u(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:u(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:u(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:u(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:u(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:u(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:u(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:u(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:u(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:u(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:u(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:u(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:u(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:u(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files:u(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:u(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:u(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:u(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:u(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:u(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:u(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:u(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:u(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:u(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:u(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:u(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:u(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:u(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:u(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:u(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:u(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:u(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:u(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:u(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:u(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:u(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:u(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:u(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:u(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:u(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:u(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:u(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:u(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:u(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:u(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:u(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:u(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:u(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:u(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:u(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:u(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:u(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:u(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:u(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:u(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:u(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:u(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:u(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:u(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:u(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:u(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:u(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:u(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:u(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:u(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:u(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:u(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:u(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:u(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:u(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:u(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:u(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:u(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:u(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:u(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:u(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:u(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:u(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:u(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:u(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:u(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:u(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:u(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:u(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:u(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:u(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:u(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:u(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:u(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:u(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:u(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:u(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:u(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:u(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:u(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:u(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:u(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:u(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:u(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:u(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:u(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:u(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:u(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:u(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:u(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:u(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:u(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:u(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:u(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:u(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:u(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:u(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:u(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:u(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:u(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:u(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:u(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:u(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:u(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:u(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:u(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:u(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:u(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:u(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:u(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:u(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:u(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:u(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:u(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:u(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:u(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:u(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),Default_catch_clause_variables_as_unknown_instead_of_any:u(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:u(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:u(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:u(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:u(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:u(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),one_of_Colon:u(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:u(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:u(6902,3,"type_Colon_6902","type:"),default_Colon:u(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:u(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:u(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:u(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:u(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:u(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:u(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:u(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:u(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:u(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:u(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:u(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:u(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:u(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:u(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:u(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:u(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:u(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:u(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:u(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:u(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:u(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:u(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:u(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:u(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:u(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:u(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:u(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:u(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:u(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:u(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:u(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:u(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:u(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:u(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:u(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:u(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:u(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:u(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:u(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:u(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:u(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:u(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:u(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:u(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:u(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:u(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:u(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:u(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:u(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:u(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:u(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:u(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:u(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:u(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:u(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:u(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:u(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:u(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:u(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:u(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:u(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:u(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:u(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:u(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:u(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:u(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:u(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:u(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:u(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:u(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:u(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:u(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:u(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:u(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:u(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:u(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:u(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:u(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:u(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:u(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:u(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:u(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:u(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:u(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:u(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:u(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:u(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:u(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:u(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:u(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:u(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:u(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:u(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:u(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:u(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:u(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:u(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:u(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:u(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:u(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:u(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:u(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:u(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:u(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:u(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:u(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:u(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:u(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:u(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:u(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:u(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:u(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:u(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:u(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:u(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:u(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:u(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:u(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:u(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:u(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:u(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:u(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:u(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:u(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:u(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:u(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:u(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:u(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:u(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:u(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:u(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:u(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:u(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:u(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:u(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:u(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:u(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:u(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:u(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:u(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:u(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:u(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:u(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:u(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:u(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:u(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:u(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:u(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:u(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:u(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:u(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:u(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:u(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:u(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:u(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:u(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:u(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:u(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:u(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:u(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:u(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:u(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:u(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:u(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:u(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:u(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:u(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:u(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:u(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:u(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:u(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:u(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:u(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:u(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:u(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:u(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:u(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:u(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:u(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:u(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:u(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:u(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:u(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:u(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:u(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:u(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:u(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:u(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:u(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:u(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:u(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:u(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:u(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:u(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:u(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:u(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:u(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:u(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:u(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:u(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:u(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:u(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:u(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:u(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:u(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:u(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:u(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:u(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:u(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:u(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:u(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:u(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:u(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:u(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:u(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:u(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:u(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:u(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:u(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:u(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:u(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:u(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:u(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:u(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:u(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:u(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:u(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:u(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:u(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:u(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:u(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:u(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:u(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:u(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:u(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:u(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:u(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:u(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:u(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:u(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:u(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:u(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:u(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:u(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:u(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:u(95005,3,"Extract_function_95005","Extract function"),Extract_constant:u(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:u(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:u(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:u(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:u(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:u(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:u(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:u(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:u(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:u(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:u(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:u(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:u(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:u(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:u(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:u(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:u(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:u(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:u(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:u(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:u(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:u(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:u(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:u(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:u(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:u(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:u(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:u(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:u(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:u(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:u(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:u(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:u(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:u(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:u(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:u(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:u(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:u(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:u(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:u(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:u(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:u(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:u(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:u(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:u(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:u(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:u(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:u(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:u(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:u(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:u(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:u(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:u(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:u(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:u(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:u(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:u(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:u(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:u(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:u(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:u(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:u(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:u(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:u(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:u(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:u(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:u(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:u(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:u(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:u(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:u(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:u(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:u(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:u(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:u(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:u(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:u(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:u(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:u(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:u(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:u(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:u(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:u(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:u(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:u(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:u(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:u(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:u(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:u(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:u(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:u(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:u(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:u(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:u(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:u(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:u(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:u(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:u(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:u(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:u(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:u(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:u(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:u(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:u(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:u(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:u(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:u(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:u(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:u(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:u(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:u(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:u(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:u(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:u(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:u(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:u(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:u(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:u(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:u(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:u(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:u(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:u(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:u(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:u(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:u(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:u(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:u(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:u(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:u(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:u(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:u(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:u(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:u(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:u(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:u(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:u(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:u(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:u(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:u(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:u(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:u(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:u(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:u(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:u(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:u(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:u(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:u(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:u(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:u(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:u(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:u(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:u(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:u(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:u(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:u(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:u(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:u(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:u(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:u(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:u(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:u(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:u(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:u(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:u(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:u(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:u(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:u(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:u(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:u(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:u(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:u(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:u(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:u(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:u(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:u(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:u(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:u(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:u(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:u(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:u(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:u(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:u(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:u(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:u(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:u(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:u(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:u(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:u(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:u(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:u(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:u(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:u(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:u(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:u(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:u(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:u(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:u(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:u(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:u(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:u(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:u(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:u(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:u(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:u(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:u(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:u(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:u(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:u(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:u(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:u(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:u(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:u(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:u(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:u(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:u(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:u(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:u(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:u(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:u(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:u(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:u(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:u(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:u(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:u(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:u(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:u(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:u(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:u(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:u(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:u(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:u(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:u(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:u(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'."),Default_imports_are_not_allowed_in_a_deferred_import:u(18058,1,"Default_imports_are_not_allowed_in_a_deferred_import_18058","Default imports are not allowed in a deferred import."),Named_imports_are_not_allowed_in_a_deferred_import:u(18059,1,"Named_imports_are_not_allowed_in_a_deferred_import_18059","Named imports are not allowed in a deferred import."),Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:u(18060,1,"Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060","Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'."),_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:u(18061,1,"_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061","'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?")};function Zo(e){return e>=80}function det(e){return e===32||Zo(e)}var EJ={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,defer:166,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},_et=new Map(Object.entries(EJ)),che=new Map(Object.entries({...EJ,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),lhe=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),fet=new Map([[1,kD.RegularExpressionFlagsHasIndices],[16,kD.RegularExpressionFlagsDotAll],[32,kD.RegularExpressionFlagsUnicode],[64,kD.RegularExpressionFlagsUnicodeSets],[128,kD.RegularExpressionFlagsSticky]]),met=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],het=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],yet=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],get=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],vet=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,bet=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,xet=/@(?:see|link)/i;function hO(e,t){if(e=2?hO(e,yet):hO(e,met)}function Tet(e,t){return t>=2?hO(e,get):hO(e,het)}function uhe(e){let t=[];return e.forEach((r,n)=>{t[r]=n}),t}var Det=uhe(che);function io(e){return Det[e]}function phe(e){return che.get(e)}var ljt=uhe(lhe);function $fe(e){return lhe.get(e)}function dhe(e){let t=[],r=0,n=0;for(;r127&&cc(o)&&(t.push(n),n=r);break}}return t.push(n),t}function Aet(e,t,r,n,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:pe.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${n!==void 0?PYe(e,dhe(n)):"unknown"}`));let i=e[t]+r;return o?i>e[t+1]?e[t+1]:typeof n=="string"&&i>n.length?n.length:i:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function cc(e){return e===10||e===13||e===8232||e===8233}function nh(e){return e>=48&&e<=57}function Oz(e){return nh(e)||e>=65&&e<=70||e>=97&&e<=102}function TJ(e){return e>=65&&e<=90||e>=97&&e<=122}function fhe(e){return TJ(e)||nh(e)||e===95}function Nz(e){return e>=48&&e<=55}function dd(e,t,r,n,o){if(QD(t))return t;let i=!1;for(;;){let a=e.charCodeAt(t);switch(a){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;i=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(n)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&y1(a)){t++;continue}break}return t}}var cO=7;function Lg(e,t){if(pe.assert(t>=0),t===0||cc(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+cO=0&&r127&&y1(g)){f&&cc(g)&&(d=!0),r++;continue}break e}}return f&&(y=o(s,c,p,d,i,y)),y}function ket(e,t,r,n){return DO(!1,e,t,!1,r,n)}function Cet(e,t,r,n){return DO(!1,e,t,!0,r,n)}function Pet(e,t,r,n,o){return DO(!0,e,t,!1,r,n,o)}function Oet(e,t,r,n,o){return DO(!0,e,t,!0,r,n,o)}function yhe(e,t,r,n,o,i=[]){return i.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),i}function Qz(e,t){return Pet(e,t,yhe,void 0,void 0)}function Net(e,t){return Oet(e,t,yhe,void 0,void 0)}function ghe(e){let t=DJ.exec(e);if(t)return t[0]}function qu(e,t){return TJ(e)||e===36||e===95||e>127&&Eet(e,t)}function W_(e,t,r){return fhe(e)||e===36||(r===1?e===45||e===58:!1)||e>127&&Tet(e,t)}function Fet(e,t,r){let n=$g(e,0);if(!qu(n,t))return!1;for(let o=Yi(n);od,getStartPos:()=>d,getTokenEnd:()=>c,getTextPos:()=>c,getToken:()=>m,getTokenStart:()=>f,getTokenPos:()=>f,getTokenText:()=>s.substring(f,c),getTokenValue:()=>y,hasUnicodeEscape:()=>(g&1024)!==0,hasExtendedUnicodeEscape:()=>(g&8)!==0,hasPrecedingLineBreak:()=>(g&1)!==0,hasPrecedingJSDocComment:()=>(g&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(g&32768)!==0,isIdentifier:()=>m===80||m>118,isReservedWord:()=>m>=83&&m<=118,isUnterminated:()=>(g&4)!==0,getCommentDirectives:()=>S,getNumericLiteralFlags:()=>g&25584,getTokenFlags:()=>g,reScanGreaterToken:Ct,reScanAsteriskEqualsToken:Zr,reScanSlashToken:wt,reScanTemplateToken:Hn,reScanTemplateHeadOrNoSubstitutionTemplate:Di,scanJsxIdentifier:Md,scanJsxAttributeValue:al,reScanJsxAttributeValue:Vt,reScanJsxToken:Ga,reScanLessThanToken:ji,reScanHashToken:iu,reScanQuestionToken:ol,reScanInvalidIdentifier:lt,scanJsxToken:il,scanJsDocToken:oe,scanJSDocCommentTextToken:lp,scan:pt,getText:_n,clearCommentDirectives:ro,setText:fi,setScriptTarget:co,setLanguageVariant:jd,setScriptKind:up,setJSDocParsingMode:vc,setOnError:Uo,resetTokenState:sl,setTextPos:sl,setSkipJsDocLeadingAsterisks:ny,tryScan:Wr,lookAhead:Et,scanRange:et};return pe.isDebugging&&Object.defineProperty(T,"__debugShowCurrentPositionInText",{get:()=>{let ue=T.getText();return ue.slice(0,T.getTokenFullStart())+"\u2551"+ue.slice(T.getTokenFullStart())}}),T;function k(ue){return $g(s,ue)}function F(ue){return ue>=0&&ue=0&&ue=65&&ut<=70)ut+=32;else if(!(ut>=48&&ut<=57||ut>=97&&ut<=102))break;Tt.push(ut),c++,kt=!1}return Tt.length=p){Ie+=s.substring(Tt,c),g|=4,N(G.Unterminated_string_literal);break}let At=O(c);if(At===Ee){Ie+=s.substring(Tt,c),c++;break}if(At===92&&!ue){Ie+=s.substring(Tt,c),Ie+=Yt(3),Tt=c;continue}if((At===10||At===13)&&!ue){Ie+=s.substring(Tt,c),g|=4,N(G.Unterminated_string_literal);break}c++}return Ie}function Jt(ue){let Ee=O(c)===96;c++;let Ie=c,Tt="",At;for(;;){if(c>=p){Tt+=s.substring(Ie,c),g|=4,N(G.Unterminated_template_literal),At=Ee?15:18;break}let kt=O(c);if(kt===96){Tt+=s.substring(Ie,c),c++,At=Ee?15:18;break}if(kt===36&&c+1=p)return N(G.Unexpected_end_of_text),"";let Ie=O(c);switch(c++,Ie){case 48:if(c>=p||!nh(O(c)))return"\0";case 49:case 50:case 51:c=55296&&Tt<=56319&&c+6=56320&&wr<=57343)return c=ut,At+String.fromCharCode(wr)}return At;case 120:for(;c1114111&&(ue&&N(G.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,Ie,c-Ie),kt=!0),c>=p?(ue&&N(G.Unexpected_end_of_text),kt=!0):O(c)===125?c++:(ue&&N(G.Unterminated_Unicode_escape_sequence),kt=!0),kt?(g|=2048,s.substring(Ee,c)):(g|=8,Mfe(At))}function Fr(){if(c+5=0&&W_(Ie,e)){ue+=vt(!0),Ee=c;continue}if(Ie=Fr(),!(Ie>=0&&W_(Ie,e)))break;g|=1024,ue+=s.substring(Ee,c),ue+=Mfe(Ie),c+=6,Ee=c}else break}return ue+=s.substring(Ee,c),ue}function ae(){let ue=y.length;if(ue>=2&&ue<=12){let Ee=y.charCodeAt(0);if(Ee>=97&&Ee<=122){let Ie=_et.get(y);if(Ie!==void 0)return m=Ie}}return m=80}function he(ue){let Ee="",Ie=!1,Tt=!1;for(;;){let At=O(c);if(At===95){g|=512,Ie?(Ie=!1,Tt=!0):N(Tt?G.Multiple_consecutive_numeric_separators_are_not_permitted:G.Numeric_separators_are_not_allowed_here,c,1),c++;continue}if(Ie=!0,!nh(At)||At-48>=ue)break;Ee+=s[c],c++,Tt=!1}return O(c-1)===95&&N(G.Numeric_separators_are_not_allowed_here,c-1,1),Ee}function Oe(){return O(c)===110?(y+="n",g&384&&(y=Xrt(y)+"n"),c++,10):(y=""+(g&128?parseInt(y.slice(2),2):g&256?parseInt(y.slice(2),8):+y),9)}function pt(){for(d=c,g=0;;){if(f=c,c>=p)return m=1;let ue=k(c);if(c===0&&ue===35&&mhe(s,c)){if(c=hhe(s,c),t)continue;return m=6}switch(ue){case 10:case 13:if(g|=1,t){c++;continue}else return ue===13&&c+1=0&&qu(Ee,e))return y=vt(!0)+K(),m=ae();let Ie=Fr();return Ie>=0&&qu(Ie,e)?(c+=6,g|=1024,y=String.fromCharCode(Ie)+K(),m=ae()):(N(G.Invalid_character),c++,m=0);case 35:if(c!==0&&s[c+1]==="!")return N(G.can_only_be_used_at_the_start_of_a_file,c,2),c++,m=0;let Tt=k(c+1);if(Tt===92){c++;let ut=le();if(ut>=0&&qu(ut,e))return y="#"+vt(!0)+K(),m=81;let wr=Fr();if(wr>=0&&qu(wr,e))return c+=6,g|=1024,y="#"+String.fromCharCode(wr)+K(),m=81;c--}return qu(Tt,e)?(c++,Nt(Tt,e)):(y="#",N(G.Invalid_character,c++,Yi(ue))),m=81;case 65533:return N(G.File_appears_to_be_binary,0,0),c=p,m=8;default:let At=Nt(ue,e);if(At)return m=At;if(MD(ue)){c+=Yi(ue);continue}else if(cc(ue)){g|=1,c+=Yi(ue);continue}let kt=Yi(ue);return N(G.Invalid_character,c,kt),c+=kt,m=0}}}function Ye(){switch(I){case 0:return!0;case 1:return!1}return E!==3&&E!==4?!0:I===3?!1:xet.test(s.slice(d,c))}function lt(){pe.assert(m===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),c=f=d,g=0;let ue=k(c),Ee=Nt(ue,99);return Ee?m=Ee:(c+=Yi(ue),m)}function Nt(ue,Ee){let Ie=ue;if(qu(Ie,Ee)){for(c+=Yi(Ie);c=p)return m=1;let Ee=O(c);if(Ee===60)return O(c+1)===47?(c+=2,m=31):(c++,m=30);if(Ee===123)return c++,m=19;let Ie=0;for(;c0)break;y1(Ee)||(Ie=c)}c++}return y=s.substring(d,c),Ie===-1?13:12}function Md(){if(Zo(m)){for(;c=p)return m=1;for(let Ee=O(c);c=0&&MD(O(c-1))&&!(c+1=p)return m=1;let ue=k(c);switch(c+=Yi(ue),ue){case 9:case 11:case 12:case 32:for(;c=0&&qu(Ee,e))return y=vt(!0)+K(),m=ae();let Ie=Fr();return Ie>=0&&qu(Ie,e)?(c+=6,g|=1024,y=String.fromCharCode(Ie)+K(),m=ae()):(c++,m=0)}if(qu(ue,e)){let Ee=ue;for(;c=0),c=ue,d=ue,f=ue,m=0,y=void 0,g=0}function ny(ue){b+=ue?1:-1}}function $g(e,t){return e.codePointAt(t)}function Yi(e){return e>=65536?2:e===-1?0:1}function Ret(e){if(pe.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}var Let=String.fromCodePoint?e=>String.fromCodePoint(e):Ret;function Mfe(e){return Let(e)}var jfe=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),Bfe=new Set(["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","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","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"]),qfe=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),f1={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};f1.Script_Extensions=f1.Script;function ud(e){return e.start+e.length}function $et(e){return e.length===0}function IJ(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Met(e,t){return IJ(e,t-e)}function CD(e){return IJ(e.span.start,e.newLength)}function jet(e){return $et(e.span)&&e.newLength===0}function She(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}var ujt=She(IJ(0,0),0);function vhe(e,t){for(;e;){let r=t(e);if(r==="quit")return;if(r)return e;e=e.parent}}function yO(e){return(e.flags&16)===0}function Bet(e,t){if(e===void 0||yO(e))return e;for(e=e.original;e;){if(yO(e))return!t||t(e)?e:void 0;e=e.original}}function l1(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function GD(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function uc(e){return GD(e.escapedText)}function qet(e){let t=phe(e.escapedText);return t?JYe(t,oh):void 0}function Xz(e){return e.valueDeclaration&&_tt(e.valueDeclaration)?uc(e.valueDeclaration.name):GD(e.escapedName)}function bhe(e){let t=e.parent.parent;if(t){if(Jfe(t))return eO(t);switch(t.kind){case 244:if(t.declarationList&&t.declarationList.declarations[0])return eO(t.declarationList.declarations[0]);break;case 245:let r=t.expression;switch(r.kind===227&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 212:return r.name;case 213:let n=r.argumentExpression;if(kn(n))return n}break;case 218:return eO(t.expression);case 257:{if(Jfe(t.statement)||Att(t.statement))return eO(t.statement);break}}}}function eO(e){let t=xhe(e);return t&&kn(t)?t:void 0}function Uet(e){return e.name||bhe(e)}function zet(e){return!!e.name}function wJ(e){switch(e.kind){case 80:return e;case 349:case 342:{let{name:r}=e;if(r.kind===167)return r.right;break}case 214:case 227:{let r=e;switch(NJ(r)){case 1:case 4:case 5:case 3:return FJ(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 347:return Uet(e);case 341:return bhe(e);case 278:{let{expression:r}=e;return kn(r)?r:void 0}case 213:let t=e;if(Mhe(t))return t.argumentExpression}return e.name}function xhe(e){if(e!==void 0)return wJ(e)||(oye(e)||iye(e)||aJ(e)?Jet(e):void 0)}function Jet(e){if(e.parent){if(cot(e.parent)||Vnt(e.parent))return e.parent.name;if(E1(e.parent)&&e===e.parent.right){if(kn(e.parent.left))return e.parent.left;if(Jhe(e.parent.left))return FJ(e.parent.left)}else if(sye(e.parent)&&kn(e.parent.name))return e.parent.name}else return}function Vet(e){if(vrt(e))return Y_(e.modifiers,qJ)}function Ket(e){if(eA(e,98303))return Y_(e.modifiers,htt)}function Ehe(e,t){if(e.name)if(kn(e.name)){let r=e.name.escapedText;return HD(e.parent,t).filter(n=>ame(n)&&kn(n.name)&&n.name.escapedText===r)}else{let r=e.parent.parameters.indexOf(e);pe.assert(r>-1,"Parameters should always be in their parents' parameter list");let n=HD(e.parent,t).filter(ame);if(rEot(n)&&n.typeParameters.some(o=>o.name.escapedText===r))}function Zet(e){return The(e,!1)}function Wet(e){return The(e,!0)}function Qet(e){return lh(e,fot)}function Xet(e){return att(e,Tot)}function Yet(e){return lh(e,mot,!0)}function ett(e){return lh(e,hot,!0)}function ttt(e){return lh(e,yot,!0)}function rtt(e){return lh(e,got,!0)}function ntt(e){return lh(e,Sot,!0)}function ott(e){return lh(e,bot,!0)}function itt(e){let t=lh(e,JJ);if(t&&t.typeExpression&&t.typeExpression.type)return t}function HD(e,t){var r;if(!RJ(e))return ii;let n=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(n===void 0||t){let o=ort(e,t);pe.assert(o.length<2||o[0]!==o[1]),n=Jme(o,i=>hye(i)?i.tags:i),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=n)}return n}function Dhe(e){return HD(e,!1)}function lh(e,t,r){return Ume(HD(e,r),t)}function att(e,t){return Dhe(e).filter(t)}function Yz(e){return e.kind===80||e.kind===81}function stt(e){return nf(e)&&!!(e.flags&64)}function ctt(e){return tA(e)&&!!(e.flags&64)}function Ufe(e){return nye(e)&&!!(e.flags&64)}function ltt(e){let t=e.kind;return!!(e.flags&64)&&(t===212||t===213||t===214||t===236)}function kJ(e){return VJ(e,8)}function utt(e){return uO(e)&&!!(e.flags&64)}function CJ(e){return e>=167}function Ahe(e){return e>=0&&e<=166}function ptt(e){return Ahe(e.kind)}function ih(e){return fd(e,"pos")&&fd(e,"end")}function dtt(e){return 9<=e&&e<=15}function zfe(e){return 15<=e&&e<=18}function m1(e){var t;return kn(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function Ihe(e){var t;return zg(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function _tt(e){return(bO(e)||Stt(e))&&zg(e.name)}function Q_(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function ftt(e){return!!(Uhe(e)&31)}function mtt(e){return ftt(e)||e===126||e===164||e===129}function htt(e){return Q_(e.kind)}function whe(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===168}function khe(e){return!!e&>t(e.kind)}function ytt(e){switch(e){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function gtt(e){switch(e){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return ytt(e)}}function g1(e){return e&&(e.kind===264||e.kind===232)}function Stt(e){switch(e.kind){case 175:case 178:case 179:return!0;default:return!1}}function vtt(e){let t=e.kind;return t===304||t===305||t===306||t===175||t===178||t===179}function btt(e){return Prt(e.kind)}function xtt(e){if(e){let t=e.kind;return t===208||t===207}return!1}function Ett(e){let t=e.kind;return t===210||t===211}function Ttt(e){switch(e.kind){case 261:case 170:case 209:return!0}return!1}function S1(e){return Che(kJ(e).kind)}function Che(e){switch(e){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function Dtt(e){return Phe(kJ(e).kind)}function Phe(e){switch(e){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return Che(e)}}function Att(e){return Itt(kJ(e).kind)}function Itt(e){switch(e){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return Phe(e)}}function wtt(e){return e===220||e===209||e===264||e===232||e===176||e===177||e===267||e===307||e===282||e===263||e===219||e===178||e===274||e===272||e===277||e===265||e===292||e===175||e===174||e===268||e===271||e===275||e===281||e===170||e===304||e===173||e===172||e===179||e===305||e===266||e===169||e===261||e===347||e===339||e===349||e===203}function Ohe(e){return e===263||e===283||e===264||e===265||e===266||e===267||e===268||e===273||e===272||e===279||e===278||e===271}function Nhe(e){return e===253||e===252||e===260||e===247||e===245||e===243||e===250||e===251||e===249||e===246||e===257||e===254||e===256||e===258||e===259||e===244||e===248||e===255||e===354}function Jfe(e){return e.kind===169?e.parent&&e.parent.kind!==346||Jg(e):wtt(e.kind)}function ktt(e){let t=e.kind;return Nhe(t)||Ohe(t)||Ctt(e)}function Ctt(e){return e.kind!==242||e.parent!==void 0&&(e.parent.kind===259||e.parent.kind===300)?!1:!Vtt(e)}function Ptt(e){let t=e.kind;return Nhe(t)||Ohe(t)||t===242}function Fhe(e){return e.kind>=310&&e.kind<=352}function Ott(e){return e.kind===321||e.kind===320||e.kind===322||Rtt(e)||Ntt(e)||_ot(e)||yye(e)}function Ntt(e){return e.kind>=328&&e.kind<=352}function tO(e){return e.kind===179}function rO(e){return e.kind===178}function jg(e){if(!RJ(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function Ftt(e){return!!e.initializer}function PJ(e){return e.kind===11||e.kind===15}function Rtt(e){return e.kind===325||e.kind===326||e.kind===327}function Vfe(e){return(e.flags&33554432)!==0}var pjt=Ltt();function Ltt(){var e="";let t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,n)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&y1(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:x1,decreaseIndent:x1,clear:()=>e=""}}function $tt(e,t){let r=e.entries();for(let[n,o]of r){let i=t(o,n);if(i)return i}}function Mtt(e){return e.end-e.pos}function Rhe(e){return jtt(e),(e.flags&1048576)!==0}function jtt(e){e.flags&2097152||(((e.flags&262144)!==0||La(e,Rhe))&&(e.flags|=1048576),e.flags|=2097152)}function sh(e){for(;e&&e.kind!==308;)e=e.parent;return e}function Bg(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function eJ(e){return!Bg(e)}function gO(e,t,r){if(Bg(e))return e.pos;if(Fhe(e)||e.kind===12)return dd((t??sh(e)).text,e.pos,!1,!0);if(r&&jg(e))return gO(e.jsDoc[0],t);if(e.kind===353){t??(t=sh(e));let n=gJ(gye(e,t));if(n)return gO(n,t,r)}return dd((t??sh(e)).text,e.pos,!1,!1,Ktt(e))}function Kfe(e,t,r=!1){return jD(e.text,t,r)}function Btt(e){return!!vhe(e,uot)}function jD(e,t,r=!1){if(Bg(t))return"";let n=e.substring(r?t.pos:dd(e,t.pos),t.end);return Btt(t)&&(n=n.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(` +`)),n}function v1(e){let t=e.emitNode;return t&&t.flags||0}function qtt(e,t,r){pe.assertGreaterThanOrEqual(t,0),pe.assertGreaterThanOrEqual(r,0),pe.assertLessThanOrEqual(t,e.length),pe.assertLessThanOrEqual(t+r,e.length)}function lO(e){return e.kind===245&&e.expression.kind===11}function OJ(e){return!!(v1(e)&2097152)}function Gfe(e){return OJ(e)&&cye(e)}function Utt(e){return kn(e.name)&&!e.initializer}function Hfe(e){return OJ(e)&&IO(e)&&hJ(e.declarationList.declarations,Utt)}function ztt(e,t){let r=e.kind===170||e.kind===169||e.kind===219||e.kind===220||e.kind===218||e.kind===261||e.kind===282?yJ(Net(t,e.pos),Qz(t,e.pos)):Qz(t,e.pos);return Y_(r,n=>n.end<=e.end&&t.charCodeAt(n.pos+1)===42&&t.charCodeAt(n.pos+2)===42&&t.charCodeAt(n.pos+3)!==47)}function Jtt(e){if(e)switch(e.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function Vtt(e){return e&&e.kind===242&&khe(e.parent)}function Zfe(e){let t=e.kind;return(t===212||t===213)&&e.expression.kind===108}function Jg(e){return!!e&&!!(e.flags&524288)}function Ktt(e){return!!e&&!!(e.flags&16777216)}function Gtt(e){for(;SO(e,!0);)e=e.right;return e}function Htt(e){return kn(e)&&e.escapedText==="exports"}function Ztt(e){return kn(e)&&e.escapedText==="module"}function Lhe(e){return(nf(e)||$he(e))&&Ztt(e.expression)&&WD(e)==="exports"}function NJ(e){let t=Qtt(e);return t===5||Jg(e)?t:0}function Wtt(e){return RD(e.arguments)===3&&nf(e.expression)&&kn(e.expression.expression)&&uc(e.expression.expression)==="Object"&&uc(e.expression.name)==="defineProperty"&&AO(e.arguments[1])&&ZD(e.arguments[0],!0)}function $he(e){return tA(e)&&AO(e.argumentExpression)}function YD(e,t){return nf(e)&&(!t&&e.expression.kind===110||kn(e.name)&&ZD(e.expression,!0))||Mhe(e,t)}function Mhe(e,t){return $he(e)&&(!t&&e.expression.kind===110||MJ(e.expression)||YD(e.expression,!0))}function ZD(e,t){return MJ(e)||YD(e,t)}function Qtt(e){if(nye(e)){if(!Wtt(e))return 0;let t=e.arguments[0];return Htt(t)||Lhe(t)?8:YD(t)&&WD(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Jhe(e.left)||Xtt(Gtt(e))?0:ZD(e.left.expression,!0)&&WD(e.left)==="prototype"&&rye(ert(e))?6:Ytt(e.left)}function Xtt(e){return Hnt(e)&&T1(e.expression)&&e.expression.text==="0"}function FJ(e){if(nf(e))return e.name;let t=LJ(e.argumentExpression);return T1(t)||PJ(t)?t:e}function WD(e){let t=FJ(e);if(t){if(kn(t))return t.escapedText;if(PJ(t)||T1(t))return l1(t.text)}}function Ytt(e){if(e.expression.kind===110)return 4;if(Lhe(e))return 2;if(ZD(e.expression,!0)){if(krt(e.expression))return 3;let t=e;for(;!kn(t.expression);)t=t.expression;let r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&WD(t)==="exports")&&YD(e))return 1;if(ZD(e,!0)||tA(e)&&frt(e))return 5}return 0}function ert(e){for(;E1(e.right);)e=e.right;return e.right}function trt(e){return aye(e)&&E1(e.expression)&&NJ(e.expression)!==0&&E1(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function rrt(e){switch(e.kind){case 244:let t=tJ(e);return t&&t.initializer;case 173:return e.initializer;case 304:return e.initializer}}function tJ(e){return IO(e)?gJ(e.declarationList.declarations):void 0}function nrt(e){return XD(e)&&e.body&&e.body.kind===268?e.body:void 0}function RJ(e){switch(e.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function ort(e,t){let r;Jtt(e)&&Ftt(e)&&jg(e.initializer)&&(r=lc(r,Wfe(e,e.initializer.jsDoc)));let n=e;for(;n&&n.parent;){if(jg(n)&&(r=lc(r,Wfe(e,n.jsDoc))),n.kind===170){r=lc(r,(t?Het:Get)(n));break}if(n.kind===169){r=lc(r,(t?Wet:Zet)(n));break}n=art(n)}return r||ii}function Wfe(e,t){let r=RYe(t);return Jme(t,n=>{if(n===r){let o=Y_(n.tags,i=>irt(e,i));return n.tags===o?[n]:o}else return Y_(n.tags,vot)})}function irt(e,t){return!(JJ(t)||Dot(t))||!t.parent||!hye(t.parent)||!UJ(t.parent.parent)||t.parent.parent===e}function art(e){let t=e.parent;if(t.kind===304||t.kind===278||t.kind===173||t.kind===245&&e.kind===212||t.kind===254||nrt(t)||SO(e))return t;if(t.parent&&(tJ(t.parent)===e||SO(t)))return t.parent;if(t.parent&&t.parent.parent&&(tJ(t.parent.parent)||rrt(t.parent.parent)===e||trt(t.parent.parent)))return t.parent.parent}function LJ(e,t){return VJ(e,t?-2147483647:1)}function srt(e){let t=crt(e);if(t&&Jg(e)){let r=Qet(e);if(r)return r.class}return t}function crt(e){let t=$J(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function lrt(e){return Jg(e)?Xet(e).map(t=>t.class):$J(e.heritageClauses,119)?.types}function urt(e){return zJ(e)?prt(e)||ii:g1(e)&&yJ(Hz(srt(e)),lrt(e))||ii}function prt(e){let t=$J(e.heritageClauses,96);return t?t.types:void 0}function $J(e,t){if(e){for(let r of e)if(r.token===t)return r}}function oh(e){return 83<=e&&e<=166}function drt(e){return 19<=e&&e<=79}function Fz(e){return oh(e)||drt(e)}function AO(e){return PJ(e)||T1(e)}function _rt(e){return Znt(e)&&(e.operator===40||e.operator===41)&&T1(e.operand)}function frt(e){if(!(e.kind===168||e.kind===213))return!1;let t=tA(e)?LJ(e.argumentExpression):e.expression;return!AO(t)&&!_rt(t)}function mrt(e){return Yz(e)?uc(e):mye(e)?ont(e):e.text}function u1(e){return QD(e.pos)||QD(e.end)}function Rz(e){switch(e){case 61:return 5;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function Lz(e){return!!((e.templateFlags||0)&2048)}function hrt(e){return e&&!!(ynt(e)?Lz(e):Lz(e.head)||Ra(e.templateSpans,t=>Lz(t.literal)))}var djt=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),_jt=new Map(Object.entries({'"':""","'":"'"}));function yrt(e){return!!e&&e.kind===80&&grt(e)}function grt(e){return e.escapedText==="this"}function eA(e,t){return!!brt(e,t)}function Srt(e){return eA(e,256)}function vrt(e){return eA(e,32768)}function brt(e,t){return Ert(e)&t}function xrt(e,t,r){return e.kind>=0&&e.kind<=166?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=qhe(e)|536870912),r||t&&Jg(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=jhe(e)|268435456),Bhe(e.modifierFlagsCache)):Trt(e.modifierFlagsCache))}function Ert(e){return xrt(e,!1)}function jhe(e){let t=0;return e.parent&&!vO(e)&&(Jg(e)&&(Yet(e)&&(t|=8388608),ett(e)&&(t|=16777216),ttt(e)&&(t|=33554432),rtt(e)&&(t|=67108864),ntt(e)&&(t|=134217728)),ott(e)&&(t|=65536)),t}function Trt(e){return e&65535}function Bhe(e){return e&131071|(e&260046848)>>>23}function Drt(e){return Bhe(jhe(e))}function Art(e){return qhe(e)|Drt(e)}function qhe(e){let t=KJ(e)?zc(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function zc(e){let t=0;if(e)for(let r of e)t|=Uhe(r.kind);return t}function Uhe(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 171:return 32768}return 0}function Irt(e){return e===76||e===77||e===78}function zhe(e){return e>=64&&e<=79}function SO(e,t){return E1(e)&&(t?e.operatorToken.kind===64:zhe(e.operatorToken.kind))&&S1(e.left)}function MJ(e){return e.kind===80||wrt(e)}function wrt(e){return nf(e)&&kn(e.name)&&MJ(e.expression)}function krt(e){return YD(e)&&WD(e)==="prototype"}function $z(e){return e.flags&3899393?e.objectFlags:0}function Crt(e){let t;return La(e,r=>{eJ(r)&&(t=r)},r=>{for(let n=r.length-1;n>=0;n--)if(eJ(r[n])){t=r[n];break}}),t}function Prt(e){return e>=183&&e<=206||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===234||e===313||e===314||e===315||e===316||e===317||e===318||e===319}function Jhe(e){return e.kind===212||e.kind===213}function Ort(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function Nrt(e,t){this.flags=t,(pe.isDebugging||sO)&&(this.checker=e)}function Frt(e,t){this.flags=t,pe.isDebugging&&(this.checker=e)}function Mz(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Rrt(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function Lrt(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function $rt(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(n=>n)}var oi={getNodeConstructor:()=>Mz,getTokenConstructor:()=>Rrt,getIdentifierConstructor:()=>Lrt,getPrivateIdentifierConstructor:()=>Mz,getSourceFileConstructor:()=>Mz,getSymbolConstructor:()=>Ort,getTypeConstructor:()=>Nrt,getSignatureConstructor:()=>Frt,getSourceMapSourceConstructor:()=>$rt},Mrt=[];function jrt(e){Object.assign(oi,e),Vc(Mrt,t=>t(oi))}function Brt(e,t){return e.replace(/\{(\d+)\}/g,(r,n)=>""+pe.checkDefined(t[+n]))}var Qfe;function qrt(e){return Qfe&&Qfe[e.key]||e.message}function i1(e,t,r,n,o,...i){r+n>t.length&&(n=t.length-r),qtt(t,r,n);let a=qrt(o);return Ra(i)&&(a=Brt(a,i)),{file:void 0,start:r,length:n,messageText:a,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function Urt(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function Vhe(e,t){let r=t.fileName||"",n=t.text.length;pe.assertEqual(e.fileName,r),pe.assertLessThanOrEqual(e.start,n),pe.assertLessThanOrEqual(e.start+e.length,n);let o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(let i of e.relatedInformation)Urt(i)&&i.fileName===r?(pe.assertLessThanOrEqual(i.start,n),pe.assertLessThanOrEqual(i.start+i.length,n),o.relatedInformation.push(Vhe(i,t))):o.relatedInformation.push(i)}return o}function Og(e,t){let r=[];for(let n of e)r.push(Vhe(n,t));return r}function Xfe(e){return e===4||e===2||e===1||e===6?1:0}var Xn={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!!(e.allowImportingTsExtensions||e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===101&&9||e.module===102&&10||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:Xn.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(Xn.module.computeValue(e)){case 1:t=2;break;case 100:case 101:case 102:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>{if(e.moduleDetection!==void 0)return e.moduleDetection;let t=Xn.module.computeValue(e);return 100<=t&&t<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Xn.module.computeValue(e)){case 100:case 101:case 102:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:Xn.esModuleInterop.computeValue(e)||Xn.module.computeValue(e)===4||Xn.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=Xn.moduleResolution.computeValue(e);if(!Yfe(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=Xn.moduleResolution.computeValue(e);if(!Yfe(t))return!1;if(e.resolvePackageJsonImports!==void 0)return e.resolvePackageJsonImports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>{if(e.resolveJsonModule!==void 0)return e.resolveJsonModule;switch(Xn.module.computeValue(e)){case 102:case 199:return!0}return Xn.moduleResolution.computeValue(e)===100}},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||Xn.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&Xn.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?Xn.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Z_(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Z_(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Z_(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Z_(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Z_(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Z_(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Z_(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Z_(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Z_(e,"useUnknownInCatchVariables")}},fjt=Xn.allowImportingTsExtensions.computeValue,mjt=Xn.target.computeValue,hjt=Xn.module.computeValue,yjt=Xn.moduleResolution.computeValue,gjt=Xn.moduleDetection.computeValue,Sjt=Xn.isolatedModules.computeValue,vjt=Xn.esModuleInterop.computeValue,bjt=Xn.allowSyntheticDefaultImports.computeValue,xjt=Xn.resolvePackageJsonExports.computeValue,Ejt=Xn.resolvePackageJsonImports.computeValue,Tjt=Xn.resolveJsonModule.computeValue,Djt=Xn.declaration.computeValue,Ajt=Xn.preserveConstEnums.computeValue,Ijt=Xn.incremental.computeValue,wjt=Xn.declarationMap.computeValue,kjt=Xn.allowJs.computeValue,Cjt=Xn.useDefineForClassFields.computeValue;function Yfe(e){return e>=3&&e<=99||e===100}function Z_(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function zrt(e){return $tt(targetOptionDeclaration.type,(t,r)=>t===e?r:void 0)}var Jrt=["node_modules","bower_components","jspm_packages"],Khe=`(?!(?:${Jrt.join("|")})(?:/|$))`,Vrt={singleAsteriskRegexFragment:"(?:[^./]|(?:\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(?:/${Khe}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Ghe(e,Vrt.singleAsteriskRegexFragment)},Krt={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(?:/${Khe}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Ghe(e,Krt.singleAsteriskRegexFragment)};function Ghe(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function Grt(e,t){return t||Hrt(e)||3}function Hrt(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var Hhe=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],Pjt=zme(Hhe),Ojt=[...Hhe,[".json"]],Zrt=[[".js",".jsx"],[".mjs"],[".cjs"]],Njt=zme(Zrt),Wrt=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Fjt=[...Wrt,[".json"]],Qrt=[".d.ts",".d.cts",".d.mts"];function QD(e){return!(e>=0)}function nO(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),pe.assert(e.relatedInformation!==ii,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Xrt(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let p=e.length-1,d=0;for(;e.charCodeAt(d)===48;)d++;return e.slice(d,p)||"0"}let r=2,n=e.length-1,o=(n-r)*t,i=new Uint16Array((o>>>4)+(o&15?1:0));for(let p=n-1,d=0;p>=r;p--,d+=t){let f=d>>>4,m=e.charCodeAt(p),y=(m<=57?m-48:10+m-(m<=70?65:97))<<(d&15);i[f]|=y;let g=y>>>16;g&&(i[f+1]|=g)}let a="",s=i.length-1,c=!0;for(;c;){let p=0;c=!1;for(let d=s;d>=0;d--){let f=p<<16|i[d],m=f/10|0;i[d]=m,p=f-m*10,m&&!c&&(s=d,c=!0)}a=p+a}return a}function Yrt({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function rJ(e,t){return e.pos=t,e}function ent(e,t){return e.end=t,e}function ch(e,t,r){return ent(rJ(e,t),r)}function eme(e,t,r){return ch(e,t,t+r)}function jJ(e,t){return e&&t&&(e.parent=t),e}function tnt(e,t){if(!e)return e;return kme(e,Fhe(e)?r:o),e;function r(i,a){if(t&&i.parent===a)return"skip";jJ(i,a)}function n(i){if(jg(i))for(let a of i.jsDoc)r(a,i),kme(a,r)}function o(i,a){return r(i,a)||n(i)}}function rnt(e){return!!(e.flags&262144&&e.isThisType)}function nnt(e){var t;return((t=getSnippetElement(e))==null?void 0:t.kind)===0}function ont(e){return`${uc(e.namespace)}:${uc(e.name)}`}var Rjt=String.prototype.replace,nJ=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],Ljt=new Set(nJ),int=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),$jt=new Set([...nJ,...nJ.map(e=>`node:${e}`),...int]);function ant(){let e,t,r,n,o;return{createBaseSourceFileNode:i,createBaseIdentifierNode:a,createBasePrivateIdentifierNode:s,createBaseTokenNode:c,createBaseNode:p};function i(d){return new(o||(o=oi.getSourceFileConstructor()))(d,-1,-1)}function a(d){return new(r||(r=oi.getIdentifierConstructor()))(d,-1,-1)}function s(d){return new(n||(n=oi.getPrivateIdentifierConstructor()))(d,-1,-1)}function c(d){return new(t||(t=oi.getTokenConstructor()))(d,-1,-1)}function p(d){return new(e||(e=oi.getNodeConstructor()))(d,-1,-1)}}var snt={getParenthesizeLeftSideOfBinaryForOperator:e=>Bo,getParenthesizeRightSideOfBinaryForOperator:e=>Bo,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:Bo,parenthesizeConditionOfConditionalExpression:Bo,parenthesizeBranchOfConditionalExpression:Bo,parenthesizeExpressionOfExportDefault:Bo,parenthesizeExpressionOfNew:e=>pd(e,S1),parenthesizeLeftSideOfAccess:e=>pd(e,S1),parenthesizeOperandOfPostfixUnary:e=>pd(e,S1),parenthesizeOperandOfPrefixUnary:e=>pd(e,Dtt),parenthesizeExpressionsOfCommaDelimitedList:e=>pd(e,ih),parenthesizeExpressionForDisallowedComma:Bo,parenthesizeExpressionOfExpressionStatement:Bo,parenthesizeConciseBodyOfArrowFunction:Bo,parenthesizeCheckTypeOfConditionalType:Bo,parenthesizeExtendsTypeOfConditionalType:Bo,parenthesizeConstituentTypesOfUnionType:e=>pd(e,ih),parenthesizeConstituentTypeOfUnionType:Bo,parenthesizeConstituentTypesOfIntersectionType:e=>pd(e,ih),parenthesizeConstituentTypeOfIntersectionType:Bo,parenthesizeOperandOfTypeOperator:Bo,parenthesizeOperandOfReadonlyTypeOperator:Bo,parenthesizeNonArrayTypeOfPostfixType:Bo,parenthesizeElementTypesOfTupleType:e=>pd(e,ih),parenthesizeElementTypeOfTupleType:Bo,parenthesizeTypeOfOptionalType:Bo,parenthesizeTypeArguments:e=>e&&pd(e,ih),parenthesizeLeadingTypeArgument:Bo},oO=0,cnt=[];function BJ(e,t){let r=e&8?Bo:_nt,n=Pfe(()=>e&1?snt:createParenthesizerRules(E)),o=Pfe(()=>e&2?nullNodeConverters:createNodeConverters(E)),i=Ml(l=>(_,h)=>jS(_,l,h)),a=Ml(l=>_=>Jd(l,_)),s=Ml(l=>_=>Rf(_,l)),c=Ml(l=>()=>rk(l)),p=Ml(l=>_=>Xb(l,_)),d=Ml(l=>(_,h)=>r8(l,_,h)),f=Ml(l=>(_,h)=>nk(l,_,h)),m=Ml(l=>(_,h)=>t8(l,_,h)),y=Ml(l=>(_,h)=>bk(l,_,h)),g=Ml(l=>(_,h,x)=>_8(l,_,h,x)),S=Ml(l=>(_,h,x)=>xk(l,_,h,x)),b=Ml(l=>(_,h,x,C)=>f8(l,_,h,x,C)),E={get parenthesizer(){return n()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:I,createNumericLiteral:O,createBigIntLiteral:$,createStringLiteral:U,createStringLiteralFromNode:ge,createRegularExpressionLiteral:Te,createLiteralLikeNode:ke,createIdentifier:xe,createTempVariable:Rt,createLoopVariable:Jt,createUniqueName:Yt,getGeneratedNameForNode:vt,createPrivateIdentifier:le,createUniquePrivateName:ae,getGeneratedPrivateNameForNode:he,createToken:pt,createSuper:Ye,createThis:lt,createNull:Nt,createTrue:Ct,createFalse:Zr,createModifier:wt,createModifiersFromModifierFlags:fo,createQualifiedName:nn,updateQualifiedName:Gn,createComputedPropertyName:bt,updateComputedPropertyName:Hn,createTypeParameterDeclaration:Di,updateTypeParameterDeclaration:Ga,createParameterDeclaration:ji,updateParameterDeclaration:iu,createDecorator:ol,updateDecorator:il,createPropertySignature:Md,updatePropertySignature:al,createPropertyDeclaration:lp,updatePropertyDeclaration:oe,createMethodSignature:qe,updateMethodSignature:et,createMethodDeclaration:Et,updateMethodDeclaration:Wr,createConstructorDeclaration:co,updateConstructorDeclaration:jd,createGetAccessorDeclaration:vc,updateGetAccessorDeclaration:sl,createSetAccessorDeclaration:ue,updateSetAccessorDeclaration:Ee,createCallSignature:Tt,updateCallSignature:At,createConstructSignature:kt,updateConstructSignature:ut,createIndexSignature:wr,updateIndexSignature:Tn,createClassStaticBlockDeclaration:ro,updateClassStaticBlockDeclaration:fi,createTemplateLiteralTypeSpan:$r,updateTemplateLiteralTypeSpan:Ft,createKeywordTypeNode:Bs,createTypePredicateNode:Zn,updateTypePredicateNode:_s,createTypeReferenceNode:Of,updateTypeReferenceNode:re,createFunctionTypeNode:fr,updateFunctionTypeNode:D,createConstructorTypeNode:er,updateConstructorTypeNode:Ha,createTypeQueryNode:mi,updateTypeQueryNode:ei,createTypeLiteralNode:hi,updateTypeLiteralNode:Gi,createArrayTypeNode:cl,updateArrayTypeNode:oy,createTupleTypeNode:fs,updateTupleTypeNode:ye,createNamedTupleMember:We,updateNamedTupleMember:br,createOptionalTypeNode:ht,updateOptionalTypeNode:ie,createRestTypeNode:To,updateRestTypeNode:zo,createUnionTypeNode:SR,updateUnionTypeNode:FI,createIntersectionTypeNode:Bd,updateIntersectionTypeNode:tr,createConditionalTypeNode:mo,updateConditionalTypeNode:vR,createInferTypeNode:ll,updateInferTypeNode:bR,createImportTypeNode:au,updateImportTypeNode:NS,createParenthesizedType:ba,updateParenthesizedType:ui,createThisTypeNode:X,createTypeOperatorNode:ua,updateTypeOperatorNode:qd,createIndexedAccessTypeNode:su,updateIndexedAccessTypeNode:xb,createMappedTypeNode:No,updateMappedTypeNode:qi,createLiteralTypeNode:Nf,updateLiteralTypeNode:pp,createTemplateLiteralType:la,updateTemplateLiteralType:xR,createObjectBindingPattern:RI,updateObjectBindingPattern:ER,createArrayBindingPattern:Ud,updateArrayBindingPattern:TR,createBindingElement:FS,updateBindingElement:Ff,createArrayLiteralExpression:Eb,updateArrayLiteralExpression:LI,createObjectLiteralExpression:iy,updateObjectLiteralExpression:DR,createPropertyAccessExpression:e&4?(l,_)=>setEmitFlags(cu(l,_),262144):cu,updatePropertyAccessExpression:AR,createPropertyAccessChain:e&4?(l,_,h)=>setEmitFlags(ay(l,_,h),262144):ay,updatePropertyAccessChain:RS,createElementAccessExpression:sy,updateElementAccessExpression:IR,createElementAccessChain:jI,updateElementAccessChain:Tb,createCallExpression:cy,updateCallExpression:LS,createCallChain:Db,updateCallChain:qI,createNewExpression:qs,updateNewExpression:Ab,createTaggedTemplateExpression:$S,updateTaggedTemplateExpression:UI,createTypeAssertion:zI,updateTypeAssertion:JI,createParenthesizedExpression:Ib,updateParenthesizedExpression:VI,createFunctionExpression:wb,updateFunctionExpression:KI,createArrowFunction:kb,updateArrowFunction:GI,createDeleteExpression:HI,updateDeleteExpression:ZI,createTypeOfExpression:MS,updateTypeOfExpression:hs,createVoidExpression:Cb,updateVoidExpression:lu,createAwaitExpression:WI,updateAwaitExpression:zd,createPrefixUnaryExpression:Jd,updatePrefixUnaryExpression:wR,createPostfixUnaryExpression:Rf,updatePostfixUnaryExpression:kR,createBinaryExpression:jS,updateBinaryExpression:CR,createConditionalExpression:XI,updateConditionalExpression:YI,createTemplateExpression:ew,updateTemplateExpression:ul,createTemplateHead:rw,createTemplateMiddle:BS,createTemplateTail:Pb,createNoSubstitutionTemplateLiteral:OR,createTemplateLiteralLikeNode:$f,createYieldExpression:Ob,updateYieldExpression:NR,createSpreadElement:nw,updateSpreadElement:FR,createClassExpression:ow,updateClassExpression:Nb,createOmittedExpression:Fb,createExpressionWithTypeArguments:iw,updateExpressionWithTypeArguments:aw,createAsExpression:ys,updateAsExpression:qS,createNonNullExpression:sw,updateNonNullExpression:cw,createSatisfiesExpression:Rb,updateSatisfiesExpression:lw,createNonNullChain:Lb,updateNonNullChain:bc,createMetaProperty:uw,updateMetaProperty:$b,createTemplateSpan:pl,updateTemplateSpan:US,createSemicolonClassElement:pw,createBlock:Vd,updateBlock:RR,createVariableStatement:Mb,updateVariableStatement:dw,createEmptyStatement:_w,createExpressionStatement:uy,updateExpressionStatement:fw,createIfStatement:mw,updateIfStatement:hw,createDoStatement:yw,updateDoStatement:gw,createWhileStatement:Sw,updateWhileStatement:LR,createForStatement:vw,updateForStatement:bw,createForInStatement:jb,updateForInStatement:$R,createForOfStatement:xw,updateForOfStatement:MR,createContinueStatement:Ew,updateContinueStatement:jR,createBreakStatement:Bb,updateBreakStatement:Tw,createReturnStatement:qb,updateReturnStatement:BR,createWithStatement:Ub,updateWithStatement:Dw,createSwitchStatement:zb,updateSwitchStatement:Mf,createLabeledStatement:Aw,updateLabeledStatement:Iw,createThrowStatement:ww,updateThrowStatement:qR,createTryStatement:kw,updateTryStatement:UR,createDebuggerStatement:Cw,createVariableDeclaration:zS,updateVariableDeclaration:Pw,createVariableDeclarationList:Jb,updateVariableDeclarationList:zR,createFunctionDeclaration:Ow,updateFunctionDeclaration:Vb,createClassDeclaration:Nw,updateClassDeclaration:JS,createInterfaceDeclaration:Fw,updateInterfaceDeclaration:Rw,createTypeAliasDeclaration:no,updateTypeAliasDeclaration:dp,createEnumDeclaration:Kb,updateEnumDeclaration:_p,createModuleDeclaration:Lw,updateModuleDeclaration:ti,createModuleBlock:fp,updateModuleBlock:Hi,createCaseBlock:$w,updateCaseBlock:VR,createNamespaceExportDeclaration:Mw,updateNamespaceExportDeclaration:jw,createImportEqualsDeclaration:Bw,updateImportEqualsDeclaration:qw,createImportDeclaration:Uw,updateImportDeclaration:zw,createImportClause:Jw,updateImportClause:Vw,createAssertClause:Gb,updateAssertClause:GR,createAssertEntry:py,updateAssertEntry:Kw,createImportTypeAssertionContainer:Hb,updateImportTypeAssertionContainer:Gw,createImportAttributes:Hw,updateImportAttributes:Zb,createImportAttribute:Zw,updateImportAttribute:Ww,createNamespaceImport:Qw,updateNamespaceImport:HR,createNamespaceExport:Xw,updateNamespaceExport:ZR,createNamedImports:Yw,updateNamedImports:ek,createImportSpecifier:mp,updateImportSpecifier:WR,createExportAssignment:VS,updateExportAssignment:dy,createExportDeclaration:KS,updateExportDeclaration:tk,createNamedExports:Wb,updateNamedExports:QR,createExportSpecifier:GS,updateExportSpecifier:XR,createMissingDeclaration:YR,createExternalModuleReference:Qb,updateExternalModuleReference:e8,get createJSDocAllType(){return c(313)},get createJSDocUnknownType(){return c(314)},get createJSDocNonNullableType(){return f(316)},get updateJSDocNonNullableType(){return m(316)},get createJSDocNullableType(){return f(315)},get updateJSDocNullableType(){return m(315)},get createJSDocOptionalType(){return p(317)},get updateJSDocOptionalType(){return d(317)},get createJSDocVariadicType(){return p(319)},get updateJSDocVariadicType(){return d(319)},get createJSDocNamepathType(){return p(320)},get updateJSDocNamepathType(){return d(320)},createJSDocFunctionType:ok,updateJSDocFunctionType:n8,createJSDocTypeLiteral:ik,updateJSDocTypeLiteral:o8,createJSDocTypeExpression:ak,updateJSDocTypeExpression:Yb,createJSDocSignature:sk,updateJSDocSignature:i8,createJSDocTemplateTag:ex,updateJSDocTemplateTag:ck,createJSDocTypedefTag:HS,updateJSDocTypedefTag:a8,createJSDocParameterTag:tx,updateJSDocParameterTag:s8,createJSDocPropertyTag:lk,updateJSDocPropertyTag:uk,createJSDocCallbackTag:pk,updateJSDocCallbackTag:dk,createJSDocOverloadTag:_k,updateJSDocOverloadTag:rx,createJSDocAugmentsTag:nx,updateJSDocAugmentsTag:fy,createJSDocImplementsTag:fk,updateJSDocImplementsTag:d8,createJSDocSeeTag:Gd,updateJSDocSeeTag:ZS,createJSDocImportTag:Dk,updateJSDocImportTag:Ak,createJSDocNameReference:mk,updateJSDocNameReference:c8,createJSDocMemberName:hk,updateJSDocMemberName:l8,createJSDocLink:yk,updateJSDocLink:gk,createJSDocLinkCode:Sk,updateJSDocLinkCode:u8,createJSDocLinkPlain:vk,updateJSDocLinkPlain:p8,get createJSDocTypeTag(){return S(345)},get updateJSDocTypeTag(){return b(345)},get createJSDocReturnTag(){return S(343)},get updateJSDocReturnTag(){return b(343)},get createJSDocThisTag(){return S(344)},get updateJSDocThisTag(){return b(344)},get createJSDocAuthorTag(){return y(331)},get updateJSDocAuthorTag(){return g(331)},get createJSDocClassTag(){return y(333)},get updateJSDocClassTag(){return g(333)},get createJSDocPublicTag(){return y(334)},get updateJSDocPublicTag(){return g(334)},get createJSDocPrivateTag(){return y(335)},get updateJSDocPrivateTag(){return g(335)},get createJSDocProtectedTag(){return y(336)},get updateJSDocProtectedTag(){return g(336)},get createJSDocReadonlyTag(){return y(337)},get updateJSDocReadonlyTag(){return g(337)},get createJSDocOverrideTag(){return y(338)},get updateJSDocOverrideTag(){return g(338)},get createJSDocDeprecatedTag(){return y(332)},get updateJSDocDeprecatedTag(){return g(332)},get createJSDocThrowsTag(){return S(350)},get updateJSDocThrowsTag(){return b(350)},get createJSDocSatisfiesTag(){return S(351)},get updateJSDocSatisfiesTag(){return b(351)},createJSDocEnumTag:Tk,updateJSDocEnumTag:ox,createJSDocUnknownTag:Ek,updateJSDocUnknownTag:m8,createJSDocText:ix,updateJSDocText:h8,createJSDocComment:my,updateJSDocComment:Ik,createJsxElement:wk,updateJsxElement:y8,createJsxSelfClosingElement:kk,updateJsxSelfClosingElement:g8,createJsxOpeningElement:WS,updateJsxOpeningElement:Ck,createJsxClosingElement:ax,updateJsxClosingElement:sx,createJsxFragment:pa,createJsxText:hy,updateJsxText:S8,createJsxOpeningFragment:Ok,createJsxJsxClosingFragment:Nk,updateJsxFragment:Pk,createJsxAttribute:Fk,updateJsxAttribute:v8,createJsxAttributes:yy,updateJsxAttributes:b8,createJsxSpreadAttribute:Rk,updateJsxSpreadAttribute:x8,createJsxExpression:Lk,updateJsxExpression:cx,createJsxNamespacedName:jf,updateJsxNamespacedName:E8,createCaseClause:QS,updateCaseClause:$k,createDefaultClause:Mk,updateDefaultClause:gy,createHeritageClause:lx,updateHeritageClause:T8,createCatchClause:jk,updateCatchClause:Bk,createPropertyAssignment:XS,updatePropertyAssignment:ux,createShorthandPropertyAssignment:qk,updateShorthandPropertyAssignment:D8,createSpreadAssignment:Uk,updateSpreadAssignment:zk,createEnumMember:px,updateEnumMember:xc,createSourceFile:Jk,updateSourceFile:k8,createRedirectedSourceFile:Vk,createBundle:Kk,updateBundle:Gk,createSyntheticExpression:C8,createSyntaxList:P8,createNotEmittedStatement:YS,createNotEmittedTypeElement:O8,createPartiallyEmittedExpression:fx,updatePartiallyEmittedExpression:Hk,createCommaListExpression:mx,updateCommaListExpression:F8,createSyntheticReferenceExpression:hx,updateSyntheticReferenceExpression:Zk,cloneNode:e0,get createComma(){return i(28)},get createAssignment(){return i(64)},get createLogicalOr(){return i(57)},get createLogicalAnd(){return i(56)},get createBitwiseOr(){return i(52)},get createBitwiseXor(){return i(53)},get createBitwiseAnd(){return i(51)},get createStrictEquality(){return i(37)},get createStrictInequality(){return i(38)},get createEquality(){return i(35)},get createInequality(){return i(36)},get createLessThan(){return i(30)},get createLessThanEquals(){return i(33)},get createGreaterThan(){return i(32)},get createGreaterThanEquals(){return i(34)},get createLeftShift(){return i(48)},get createRightShift(){return i(49)},get createUnsignedRightShift(){return i(50)},get createAdd(){return i(40)},get createSubtract(){return i(41)},get createMultiply(){return i(42)},get createDivide(){return i(44)},get createModulo(){return i(45)},get createExponent(){return i(43)},get createPrefixPlus(){return a(40)},get createPrefixMinus(){return a(41)},get createPrefixIncrement(){return a(46)},get createPrefixDecrement(){return a(47)},get createBitwiseNot(){return a(55)},get createLogicalNot(){return a(54)},get createPostfixIncrement(){return s(46)},get createPostfixDecrement(){return s(47)},createImmediatelyInvokedFunctionExpression:$8,createImmediatelyInvokedArrowFunction:M8,createVoidZero:Sy,createExportDefault:Xk,createExternalModuleExport:Yk,createTypeCheck:j8,createIsNotTypeCheck:yx,createMethodCall:Hd,createGlobalMethodCall:vy,createFunctionBindCall:B8,createFunctionCallCall:q8,createFunctionApplyCall:U8,createArraySliceCall:z8,createArrayConcatCall:by,createObjectDefinePropertyCall:J8,createObjectGetOwnPropertyDescriptorCall:gx,createReflectGetCall:qf,createReflectSetCall:eC,createPropertyDescriptor:V8,createCallBinding:oC,createAssignmentTargetWrapper:iC,inlineExpressions:v,getInternalName:P,getLocalName:R,getExportName:M,getDeclarationName:ee,getNamespaceMemberName:be,getExternalModuleOrNamespaceExportName:Ue,restoreOuterExpressions:rC,restoreEnclosingLabel:nC,createUseStrictPrologue:He,copyPrologue:Ce,copyStandardPrologue:mr,copyCustomPrologue:nr,ensureUseStrict:jt,liftToBlock:Wa,mergeLexicalEnvironment:uu,replaceModifiers:pu,replaceDecoratorsAndModifiers:Ec,replacePropertyName:Zd};return Vc(cnt,l=>l(E)),E;function I(l,_){if(l===void 0||l===ii)l=[];else if(ih(l)){if(_===void 0||l.hasTrailingComma===_)return l.transformFlags===void 0&&rme(l),pe.attachNodeArrayDebugInfo(l),l;let C=l.slice();return C.pos=l.pos,C.end=l.end,C.hasTrailingComma=_,C.transformFlags=l.transformFlags,pe.attachNodeArrayDebugInfo(C),C}let h=l.length,x=h>=1&&h<=4?l.slice():l;return x.pos=-1,x.end=-1,x.hasTrailingComma=!!_,x.transformFlags=0,rme(x),pe.attachNodeArrayDebugInfo(x),x}function T(l){return t.createBaseNode(l)}function k(l){let _=T(l);return _.symbol=void 0,_.localSymbol=void 0,_}function F(l,_){return l!==_&&(l.typeArguments=_.typeArguments),se(l,_)}function O(l,_=0){let h=typeof l=="number"?l+"":l;pe.assert(h.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let x=k(9);return x.text=h,x.numericLiteralFlags=_,_&384&&(x.transformFlags|=1024),x}function $(l){let _=Oe(10);return _.text=typeof l=="string"?l:Yrt(l)+"n",_.transformFlags|=32,_}function N(l,_){let h=k(11);return h.text=l,h.singleQuote=_,h}function U(l,_,h){let x=N(l,_);return x.hasExtendedUnicodeEscape=h,h&&(x.transformFlags|=1024),x}function ge(l){let _=N(mrt(l),void 0);return _.textSourceNode=l,_}function Te(l){let _=Oe(14);return _.text=l,_}function ke(l,_){switch(l){case 9:return O(_,0);case 10:return $(_);case 11:return U(_,void 0);case 12:return hy(_,!1);case 13:return hy(_,!0);case 14:return Te(_);case 15:return $f(l,_,void 0,0)}}function Je(l){let _=t.createBaseIdentifierNode(80);return _.escapedText=l,_.jsDoc=void 0,_.flowNode=void 0,_.symbol=void 0,_}function me(l,_,h,x){let C=Je(l1(l));return setIdentifierAutoGenerate(C,{flags:_,id:oO,prefix:h,suffix:x}),oO++,C}function xe(l,_,h){_===void 0&&l&&(_=phe(l)),_===80&&(_=void 0);let x=Je(l1(l));return h&&(x.flags|=256),x.escapedText==="await"&&(x.transformFlags|=67108864),x.flags&256&&(x.transformFlags|=1024),x}function Rt(l,_,h,x){let C=1;_&&(C|=8);let j=me("",C,h,x);return l&&l(j),j}function Jt(l){let _=2;return l&&(_|=8),me("",_,void 0,void 0)}function Yt(l,_=0,h,x){return pe.assert(!(_&7),"Argument out of range: flags"),pe.assert((_&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),me(l,3|_,h,x)}function vt(l,_=0,h,x){pe.assert(!(_&7),"Argument out of range: flags");let C=l?Yz(l)?sJ(!1,h,l,x,uc):`generated@${getNodeId(l)}`:"";(h||x)&&(_|=16);let j=me(C,4|_,h,x);return j.original=l,j}function Fr(l){let _=t.createBasePrivateIdentifierNode(81);return _.escapedText=l,_.transformFlags|=16777216,_}function le(l){return fO(l,"#")||pe.fail("First character of private identifier must be #: "+l),Fr(l1(l))}function K(l,_,h,x){let C=Fr(l1(l));return setIdentifierAutoGenerate(C,{flags:_,id:oO,prefix:h,suffix:x}),oO++,C}function ae(l,_,h){l&&!fO(l,"#")&&pe.fail("First character of private identifier must be #: "+l);let x=8|(l?3:1);return K(l??"",x,_,h)}function he(l,_,h){let x=Yz(l)?sJ(!0,_,l,h,uc):`#generated@${getNodeId(l)}`,C=K(x,4|(_||h?16:0),_,h);return C.original=l,C}function Oe(l){return t.createBaseTokenNode(l)}function pt(l){pe.assert(l>=0&&l<=166,"Invalid token"),pe.assert(l<=15||l>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),pe.assert(l<=9||l>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),pe.assert(l!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let _=Oe(l),h=0;switch(l){case 134:h=384;break;case 160:h=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:h=1;break;case 108:h=134218752,_.flowNode=void 0;break;case 126:h=1024;break;case 129:h=16777216;break;case 110:h=16384,_.flowNode=void 0;break}return h&&(_.transformFlags|=h),_}function Ye(){return pt(108)}function lt(){return pt(110)}function Nt(){return pt(106)}function Ct(){return pt(112)}function Zr(){return pt(97)}function wt(l){return pt(l)}function fo(l){let _=[];return l&32&&_.push(wt(95)),l&128&&_.push(wt(138)),l&2048&&_.push(wt(90)),l&4096&&_.push(wt(87)),l&1&&_.push(wt(125)),l&2&&_.push(wt(123)),l&4&&_.push(wt(124)),l&64&&_.push(wt(128)),l&256&&_.push(wt(126)),l&16&&_.push(wt(164)),l&8&&_.push(wt(148)),l&512&&_.push(wt(129)),l&1024&&_.push(wt(134)),l&8192&&_.push(wt(103)),l&16384&&_.push(wt(147)),_.length?_:void 0}function nn(l,_){let h=T(167);return h.left=l,h.right=Dn(_),h.transformFlags|=fe(h.left)|p1(h.right),h.flowNode=void 0,h}function Gn(l,_,h){return l.left!==_||l.right!==h?se(nn(_,h),l):l}function bt(l){let _=T(168);return _.expression=n().parenthesizeExpressionOfComputedPropertyName(l),_.transformFlags|=fe(_.expression)|1024|131072,_}function Hn(l,_){return l.expression!==_?se(bt(_),l):l}function Di(l,_,h,x){let C=k(169);return C.modifiers=Kt(l),C.name=Dn(_),C.constraint=h,C.default=x,C.transformFlags=1,C.expression=void 0,C.jsDoc=void 0,C}function Ga(l,_,h,x,C){return l.modifiers!==_||l.name!==h||l.constraint!==x||l.default!==C?se(Di(_,h,x,C),l):l}function ji(l,_,h,x,C,j){let _e=k(170);return _e.modifiers=Kt(l),_e.dotDotDotToken=_,_e.name=Dn(h),_e.questionToken=x,_e.type=C,_e.initializer=xy(j),yrt(_e.name)?_e.transformFlags=1:_e.transformFlags=Pt(_e.modifiers)|fe(_e.dotDotDotToken)|Uc(_e.name)|fe(_e.questionToken)|fe(_e.initializer)|(_e.questionToken??_e.type?1:0)|(_e.dotDotDotToken??_e.initializer?1024:0)|(zc(_e.modifiers)&31?8192:0),_e.jsDoc=void 0,_e}function iu(l,_,h,x,C,j,_e){return l.modifiers!==_||l.dotDotDotToken!==h||l.name!==x||l.questionToken!==C||l.type!==j||l.initializer!==_e?se(ji(_,h,x,C,j,_e),l):l}function ol(l){let _=T(171);return _.expression=n().parenthesizeLeftSideOfAccess(l,!1),_.transformFlags|=fe(_.expression)|1|8192|33554432,_}function il(l,_){return l.expression!==_?se(ol(_),l):l}function Md(l,_,h,x){let C=k(172);return C.modifiers=Kt(l),C.name=Dn(_),C.type=x,C.questionToken=h,C.transformFlags=1,C.initializer=void 0,C.jsDoc=void 0,C}function al(l,_,h,x,C){return l.modifiers!==_||l.name!==h||l.questionToken!==x||l.type!==C?Vt(Md(_,h,x,C),l):l}function Vt(l,_){return l!==_&&(l.initializer=_.initializer),se(l,_)}function lp(l,_,h,x,C){let j=k(173);j.modifiers=Kt(l),j.name=Dn(_),j.questionToken=h&&ome(h)?h:void 0,j.exclamationToken=h&&nme(h)?h:void 0,j.type=x,j.initializer=xy(C);let _e=j.flags&33554432||zc(j.modifiers)&128;return j.transformFlags=Pt(j.modifiers)|Uc(j.name)|fe(j.initializer)|(_e||j.questionToken||j.exclamationToken||j.type?1:0)|(Zhe(j.name)||zc(j.modifiers)&256&&j.initializer?8192:0)|16777216,j.jsDoc=void 0,j}function oe(l,_,h,x,C,j){return l.modifiers!==_||l.name!==h||l.questionToken!==(x!==void 0&&ome(x)?x:void 0)||l.exclamationToken!==(x!==void 0&&nme(x)?x:void 0)||l.type!==C||l.initializer!==j?se(lp(_,h,x,C,j),l):l}function qe(l,_,h,x,C,j){let _e=k(174);return _e.modifiers=Kt(l),_e.name=Dn(_),_e.questionToken=h,_e.typeParameters=Kt(x),_e.parameters=Kt(C),_e.type=j,_e.transformFlags=1,_e.jsDoc=void 0,_e.locals=void 0,_e.nextContainer=void 0,_e.typeArguments=void 0,_e}function et(l,_,h,x,C,j,_e){return l.modifiers!==_||l.name!==h||l.questionToken!==x||l.typeParameters!==C||l.parameters!==j||l.type!==_e?F(qe(_,h,x,C,j,_e),l):l}function Et(l,_,h,x,C,j,_e,Qe){let xr=k(175);if(xr.modifiers=Kt(l),xr.asteriskToken=_,xr.name=Dn(h),xr.questionToken=x,xr.exclamationToken=void 0,xr.typeParameters=Kt(C),xr.parameters=I(j),xr.type=_e,xr.body=Qe,!xr.body)xr.transformFlags=1;else{let Ii=zc(xr.modifiers)&1024,du=!!xr.asteriskToken,Js=Ii&&du;xr.transformFlags=Pt(xr.modifiers)|fe(xr.asteriskToken)|Uc(xr.name)|fe(xr.questionToken)|Pt(xr.typeParameters)|Pt(xr.parameters)|fe(xr.type)|fe(xr.body)&-67108865|(Js?128:Ii?256:du?2048:0)|(xr.questionToken||xr.typeParameters||xr.type?1:0)|1024}return xr.typeArguments=void 0,xr.jsDoc=void 0,xr.locals=void 0,xr.nextContainer=void 0,xr.flowNode=void 0,xr.endFlowNode=void 0,xr.returnFlowNode=void 0,xr}function Wr(l,_,h,x,C,j,_e,Qe,xr){return l.modifiers!==_||l.asteriskToken!==h||l.name!==x||l.questionToken!==C||l.typeParameters!==j||l.parameters!==_e||l.type!==Qe||l.body!==xr?_n(Et(_,h,x,C,j,_e,Qe,xr),l):l}function _n(l,_){return l!==_&&(l.exclamationToken=_.exclamationToken),se(l,_)}function ro(l){let _=k(176);return _.body=l,_.transformFlags=fe(l)|16777216,_.modifiers=void 0,_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_.endFlowNode=void 0,_.returnFlowNode=void 0,_}function fi(l,_){return l.body!==_?Uo(ro(_),l):l}function Uo(l,_){return l!==_&&(l.modifiers=_.modifiers),se(l,_)}function co(l,_,h){let x=k(177);return x.modifiers=Kt(l),x.parameters=I(_),x.body=h,x.body?x.transformFlags=Pt(x.modifiers)|Pt(x.parameters)|fe(x.body)&-67108865|1024:x.transformFlags=1,x.typeParameters=void 0,x.type=void 0,x.typeArguments=void 0,x.jsDoc=void 0,x.locals=void 0,x.nextContainer=void 0,x.endFlowNode=void 0,x.returnFlowNode=void 0,x}function jd(l,_,h,x){return l.modifiers!==_||l.parameters!==h||l.body!==x?up(co(_,h,x),l):l}function up(l,_){return l!==_&&(l.typeParameters=_.typeParameters,l.type=_.type),F(l,_)}function vc(l,_,h,x,C){let j=k(178);return j.modifiers=Kt(l),j.name=Dn(_),j.parameters=I(h),j.type=x,j.body=C,j.body?j.transformFlags=Pt(j.modifiers)|Uc(j.name)|Pt(j.parameters)|fe(j.type)|fe(j.body)&-67108865|(j.type?1:0):j.transformFlags=1,j.typeArguments=void 0,j.typeParameters=void 0,j.jsDoc=void 0,j.locals=void 0,j.nextContainer=void 0,j.flowNode=void 0,j.endFlowNode=void 0,j.returnFlowNode=void 0,j}function sl(l,_,h,x,C,j){return l.modifiers!==_||l.name!==h||l.parameters!==x||l.type!==C||l.body!==j?ny(vc(_,h,x,C,j),l):l}function ny(l,_){return l!==_&&(l.typeParameters=_.typeParameters),F(l,_)}function ue(l,_,h,x){let C=k(179);return C.modifiers=Kt(l),C.name=Dn(_),C.parameters=I(h),C.body=x,C.body?C.transformFlags=Pt(C.modifiers)|Uc(C.name)|Pt(C.parameters)|fe(C.body)&-67108865|(C.type?1:0):C.transformFlags=1,C.typeArguments=void 0,C.typeParameters=void 0,C.type=void 0,C.jsDoc=void 0,C.locals=void 0,C.nextContainer=void 0,C.flowNode=void 0,C.endFlowNode=void 0,C.returnFlowNode=void 0,C}function Ee(l,_,h,x,C){return l.modifiers!==_||l.name!==h||l.parameters!==x||l.body!==C?Ie(ue(_,h,x,C),l):l}function Ie(l,_){return l!==_&&(l.typeParameters=_.typeParameters,l.type=_.type),F(l,_)}function Tt(l,_,h){let x=k(180);return x.typeParameters=Kt(l),x.parameters=Kt(_),x.type=h,x.transformFlags=1,x.jsDoc=void 0,x.locals=void 0,x.nextContainer=void 0,x.typeArguments=void 0,x}function At(l,_,h,x){return l.typeParameters!==_||l.parameters!==h||l.type!==x?F(Tt(_,h,x),l):l}function kt(l,_,h){let x=k(181);return x.typeParameters=Kt(l),x.parameters=Kt(_),x.type=h,x.transformFlags=1,x.jsDoc=void 0,x.locals=void 0,x.nextContainer=void 0,x.typeArguments=void 0,x}function ut(l,_,h,x){return l.typeParameters!==_||l.parameters!==h||l.type!==x?F(kt(_,h,x),l):l}function wr(l,_,h){let x=k(182);return x.modifiers=Kt(l),x.parameters=Kt(_),x.type=h,x.transformFlags=1,x.jsDoc=void 0,x.locals=void 0,x.nextContainer=void 0,x.typeArguments=void 0,x}function Tn(l,_,h,x){return l.parameters!==h||l.type!==x||l.modifiers!==_?F(wr(_,h,x),l):l}function $r(l,_){let h=T(205);return h.type=l,h.literal=_,h.transformFlags=1,h}function Ft(l,_,h){return l.type!==_||l.literal!==h?se($r(_,h),l):l}function Bs(l){return pt(l)}function Zn(l,_,h){let x=T(183);return x.assertsModifier=l,x.parameterName=Dn(_),x.type=h,x.transformFlags=1,x}function _s(l,_,h,x){return l.assertsModifier!==_||l.parameterName!==h||l.type!==x?se(Zn(_,h,x),l):l}function Of(l,_){let h=T(184);return h.typeName=Dn(l),h.typeArguments=_&&n().parenthesizeTypeArguments(I(_)),h.transformFlags=1,h}function re(l,_,h){return l.typeName!==_||l.typeArguments!==h?se(Of(_,h),l):l}function fr(l,_,h){let x=k(185);return x.typeParameters=Kt(l),x.parameters=Kt(_),x.type=h,x.transformFlags=1,x.modifiers=void 0,x.jsDoc=void 0,x.locals=void 0,x.nextContainer=void 0,x.typeArguments=void 0,x}function D(l,_,h,x){return l.typeParameters!==_||l.parameters!==h||l.type!==x?Ht(fr(_,h,x),l):l}function Ht(l,_){return l!==_&&(l.modifiers=_.modifiers),F(l,_)}function er(...l){return l.length===4?ce(...l):l.length===3?vr(...l):pe.fail("Incorrect number of arguments specified.")}function ce(l,_,h,x){let C=k(186);return C.modifiers=Kt(l),C.typeParameters=Kt(_),C.parameters=Kt(h),C.type=x,C.transformFlags=1,C.jsDoc=void 0,C.locals=void 0,C.nextContainer=void 0,C.typeArguments=void 0,C}function vr(l,_,h){return ce(void 0,l,_,h)}function Ha(...l){return l.length===5?Dr(...l):l.length===4?on(...l):pe.fail("Incorrect number of arguments specified.")}function Dr(l,_,h,x,C){return l.modifiers!==_||l.typeParameters!==h||l.parameters!==x||l.type!==C?F(er(_,h,x,C),l):l}function on(l,_,h,x){return Dr(l,l.modifiers,_,h,x)}function mi(l,_){let h=T(187);return h.exprName=l,h.typeArguments=_&&n().parenthesizeTypeArguments(_),h.transformFlags=1,h}function ei(l,_,h){return l.exprName!==_||l.typeArguments!==h?se(mi(_,h),l):l}function hi(l){let _=k(188);return _.members=I(l),_.transformFlags=1,_}function Gi(l,_){return l.members!==_?se(hi(_),l):l}function cl(l){let _=T(189);return _.elementType=n().parenthesizeNonArrayTypeOfPostfixType(l),_.transformFlags=1,_}function oy(l,_){return l.elementType!==_?se(cl(_),l):l}function fs(l){let _=T(190);return _.elements=I(n().parenthesizeElementTypesOfTupleType(l)),_.transformFlags=1,_}function ye(l,_){return l.elements!==_?se(fs(_),l):l}function We(l,_,h,x){let C=k(203);return C.dotDotDotToken=l,C.name=_,C.questionToken=h,C.type=x,C.transformFlags=1,C.jsDoc=void 0,C}function br(l,_,h,x,C){return l.dotDotDotToken!==_||l.name!==h||l.questionToken!==x||l.type!==C?se(We(_,h,x,C),l):l}function ht(l){let _=T(191);return _.type=n().parenthesizeTypeOfOptionalType(l),_.transformFlags=1,_}function ie(l,_){return l.type!==_?se(ht(_),l):l}function To(l){let _=T(192);return _.type=l,_.transformFlags=1,_}function zo(l,_){return l.type!==_?se(To(_),l):l}function Bi(l,_,h){let x=T(l);return x.types=E.createNodeArray(h(_)),x.transformFlags=1,x}function ms(l,_,h){return l.types!==_?se(Bi(l.kind,_,h),l):l}function SR(l){return Bi(193,l,n().parenthesizeConstituentTypesOfUnionType)}function FI(l,_){return ms(l,_,n().parenthesizeConstituentTypesOfUnionType)}function Bd(l){return Bi(194,l,n().parenthesizeConstituentTypesOfIntersectionType)}function tr(l,_){return ms(l,_,n().parenthesizeConstituentTypesOfIntersectionType)}function mo(l,_,h,x){let C=T(195);return C.checkType=n().parenthesizeCheckTypeOfConditionalType(l),C.extendsType=n().parenthesizeExtendsTypeOfConditionalType(_),C.trueType=h,C.falseType=x,C.transformFlags=1,C.locals=void 0,C.nextContainer=void 0,C}function vR(l,_,h,x,C){return l.checkType!==_||l.extendsType!==h||l.trueType!==x||l.falseType!==C?se(mo(_,h,x,C),l):l}function ll(l){let _=T(196);return _.typeParameter=l,_.transformFlags=1,_}function bR(l,_){return l.typeParameter!==_?se(ll(_),l):l}function la(l,_){let h=T(204);return h.head=l,h.templateSpans=I(_),h.transformFlags=1,h}function xR(l,_,h){return l.head!==_||l.templateSpans!==h?se(la(_,h),l):l}function au(l,_,h,x,C=!1){let j=T(206);return j.argument=l,j.attributes=_,j.assertions&&j.assertions.assertClause&&j.attributes&&(j.assertions.assertClause=j.attributes),j.qualifier=h,j.typeArguments=x&&n().parenthesizeTypeArguments(x),j.isTypeOf=C,j.transformFlags=1,j}function NS(l,_,h,x,C,j=l.isTypeOf){return l.argument!==_||l.attributes!==h||l.qualifier!==x||l.typeArguments!==C||l.isTypeOf!==j?se(au(_,h,x,C,j),l):l}function ba(l){let _=T(197);return _.type=l,_.transformFlags=1,_}function ui(l,_){return l.type!==_?se(ba(_),l):l}function X(){let l=T(198);return l.transformFlags=1,l}function ua(l,_){let h=T(199);return h.operator=l,h.type=l===148?n().parenthesizeOperandOfReadonlyTypeOperator(_):n().parenthesizeOperandOfTypeOperator(_),h.transformFlags=1,h}function qd(l,_){return l.type!==_?se(ua(l.operator,_),l):l}function su(l,_){let h=T(200);return h.objectType=n().parenthesizeNonArrayTypeOfPostfixType(l),h.indexType=_,h.transformFlags=1,h}function xb(l,_,h){return l.objectType!==_||l.indexType!==h?se(su(_,h),l):l}function No(l,_,h,x,C,j){let _e=k(201);return _e.readonlyToken=l,_e.typeParameter=_,_e.nameType=h,_e.questionToken=x,_e.type=C,_e.members=j&&I(j),_e.transformFlags=1,_e.locals=void 0,_e.nextContainer=void 0,_e}function qi(l,_,h,x,C,j,_e){return l.readonlyToken!==_||l.typeParameter!==h||l.nameType!==x||l.questionToken!==C||l.type!==j||l.members!==_e?se(No(_,h,x,C,j,_e),l):l}function Nf(l){let _=T(202);return _.literal=l,_.transformFlags=1,_}function pp(l,_){return l.literal!==_?se(Nf(_),l):l}function RI(l){let _=T(207);return _.elements=I(l),_.transformFlags|=Pt(_.elements)|1024|524288,_.transformFlags&32768&&(_.transformFlags|=65664),_}function ER(l,_){return l.elements!==_?se(RI(_),l):l}function Ud(l){let _=T(208);return _.elements=I(l),_.transformFlags|=Pt(_.elements)|1024|524288,_}function TR(l,_){return l.elements!==_?se(Ud(_),l):l}function FS(l,_,h,x){let C=k(209);return C.dotDotDotToken=l,C.propertyName=Dn(_),C.name=Dn(h),C.initializer=xy(x),C.transformFlags|=fe(C.dotDotDotToken)|Uc(C.propertyName)|Uc(C.name)|fe(C.initializer)|(C.dotDotDotToken?32768:0)|1024,C.flowNode=void 0,C}function Ff(l,_,h,x,C){return l.propertyName!==h||l.dotDotDotToken!==_||l.name!==x||l.initializer!==C?se(FS(_,h,x,C),l):l}function Eb(l,_){let h=T(210),x=l&&h1(l),C=I(l,x&&Qnt(x)?!0:void 0);return h.elements=n().parenthesizeExpressionsOfCommaDelimitedList(C),h.multiLine=_,h.transformFlags|=Pt(h.elements),h}function LI(l,_){return l.elements!==_?se(Eb(_,l.multiLine),l):l}function iy(l,_){let h=k(211);return h.properties=I(l),h.multiLine=_,h.transformFlags|=Pt(h.properties),h.jsDoc=void 0,h}function DR(l,_){return l.properties!==_?se(iy(_,l.multiLine),l):l}function $I(l,_,h){let x=k(212);return x.expression=l,x.questionDotToken=_,x.name=h,x.transformFlags=fe(x.expression)|fe(x.questionDotToken)|(kn(x.name)?p1(x.name):fe(x.name)|536870912),x.jsDoc=void 0,x.flowNode=void 0,x}function cu(l,_){let h=$I(n().parenthesizeLeftSideOfAccess(l,!1),void 0,Dn(_));return jz(l)&&(h.transformFlags|=384),h}function AR(l,_,h){return stt(l)?RS(l,_,l.questionDotToken,pd(h,kn)):l.expression!==_||l.name!==h?se(cu(_,h),l):l}function ay(l,_,h){let x=$I(n().parenthesizeLeftSideOfAccess(l,!0),_,Dn(h));return x.flags|=64,x.transformFlags|=32,x}function RS(l,_,h,x){return pe.assert(!!(l.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),l.expression!==_||l.questionDotToken!==h||l.name!==x?se(ay(_,h,x),l):l}function MI(l,_,h){let x=k(213);return x.expression=l,x.questionDotToken=_,x.argumentExpression=h,x.transformFlags|=fe(x.expression)|fe(x.questionDotToken)|fe(x.argumentExpression),x.jsDoc=void 0,x.flowNode=void 0,x}function sy(l,_){let h=MI(n().parenthesizeLeftSideOfAccess(l,!1),void 0,hp(_));return jz(l)&&(h.transformFlags|=384),h}function IR(l,_,h){return ctt(l)?Tb(l,_,l.questionDotToken,h):l.expression!==_||l.argumentExpression!==h?se(sy(_,h),l):l}function jI(l,_,h){let x=MI(n().parenthesizeLeftSideOfAccess(l,!0),_,hp(h));return x.flags|=64,x.transformFlags|=32,x}function Tb(l,_,h,x){return pe.assert(!!(l.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),l.expression!==_||l.questionDotToken!==h||l.argumentExpression!==x?se(jI(_,h,x),l):l}function BI(l,_,h,x){let C=k(214);return C.expression=l,C.questionDotToken=_,C.typeArguments=h,C.arguments=x,C.transformFlags|=fe(C.expression)|fe(C.questionDotToken)|Pt(C.typeArguments)|Pt(C.arguments),C.typeArguments&&(C.transformFlags|=1),Zfe(C.expression)&&(C.transformFlags|=16384),C}function cy(l,_,h){let x=BI(n().parenthesizeLeftSideOfAccess(l,!1),void 0,Kt(_),n().parenthesizeExpressionsOfCommaDelimitedList(I(h)));return vnt(x.expression)&&(x.transformFlags|=8388608),x}function LS(l,_,h,x){return Ufe(l)?qI(l,_,l.questionDotToken,h,x):l.expression!==_||l.typeArguments!==h||l.arguments!==x?se(cy(_,h,x),l):l}function Db(l,_,h,x){let C=BI(n().parenthesizeLeftSideOfAccess(l,!0),_,Kt(h),n().parenthesizeExpressionsOfCommaDelimitedList(I(x)));return C.flags|=64,C.transformFlags|=32,C}function qI(l,_,h,x,C){return pe.assert(!!(l.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),l.expression!==_||l.questionDotToken!==h||l.typeArguments!==x||l.arguments!==C?se(Db(_,h,x,C),l):l}function qs(l,_,h){let x=k(215);return x.expression=n().parenthesizeExpressionOfNew(l),x.typeArguments=Kt(_),x.arguments=h?n().parenthesizeExpressionsOfCommaDelimitedList(h):void 0,x.transformFlags|=fe(x.expression)|Pt(x.typeArguments)|Pt(x.arguments)|32,x.typeArguments&&(x.transformFlags|=1),x}function Ab(l,_,h,x){return l.expression!==_||l.typeArguments!==h||l.arguments!==x?se(qs(_,h,x),l):l}function $S(l,_,h){let x=T(216);return x.tag=n().parenthesizeLeftSideOfAccess(l,!1),x.typeArguments=Kt(_),x.template=h,x.transformFlags|=fe(x.tag)|Pt(x.typeArguments)|fe(x.template)|1024,x.typeArguments&&(x.transformFlags|=1),hrt(x.template)&&(x.transformFlags|=128),x}function UI(l,_,h,x){return l.tag!==_||l.typeArguments!==h||l.template!==x?se($S(_,h,x),l):l}function zI(l,_){let h=T(217);return h.expression=n().parenthesizeOperandOfPrefixUnary(_),h.type=l,h.transformFlags|=fe(h.expression)|fe(h.type)|1,h}function JI(l,_,h){return l.type!==_||l.expression!==h?se(zI(_,h),l):l}function Ib(l){let _=T(218);return _.expression=l,_.transformFlags=fe(_.expression),_.jsDoc=void 0,_}function VI(l,_){return l.expression!==_?se(Ib(_),l):l}function wb(l,_,h,x,C,j,_e){let Qe=k(219);Qe.modifiers=Kt(l),Qe.asteriskToken=_,Qe.name=Dn(h),Qe.typeParameters=Kt(x),Qe.parameters=I(C),Qe.type=j,Qe.body=_e;let xr=zc(Qe.modifiers)&1024,Ii=!!Qe.asteriskToken,du=xr&&Ii;return Qe.transformFlags=Pt(Qe.modifiers)|fe(Qe.asteriskToken)|Uc(Qe.name)|Pt(Qe.typeParameters)|Pt(Qe.parameters)|fe(Qe.type)|fe(Qe.body)&-67108865|(du?128:xr?256:Ii?2048:0)|(Qe.typeParameters||Qe.type?1:0)|4194304,Qe.typeArguments=void 0,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.flowNode=void 0,Qe.endFlowNode=void 0,Qe.returnFlowNode=void 0,Qe}function KI(l,_,h,x,C,j,_e,Qe){return l.name!==x||l.modifiers!==_||l.asteriskToken!==h||l.typeParameters!==C||l.parameters!==j||l.type!==_e||l.body!==Qe?F(wb(_,h,x,C,j,_e,Qe),l):l}function kb(l,_,h,x,C,j){let _e=k(220);_e.modifiers=Kt(l),_e.typeParameters=Kt(_),_e.parameters=I(h),_e.type=x,_e.equalsGreaterThanToken=C??pt(39),_e.body=n().parenthesizeConciseBodyOfArrowFunction(j);let Qe=zc(_e.modifiers)&1024;return _e.transformFlags=Pt(_e.modifiers)|Pt(_e.typeParameters)|Pt(_e.parameters)|fe(_e.type)|fe(_e.equalsGreaterThanToken)|fe(_e.body)&-67108865|(_e.typeParameters||_e.type?1:0)|(Qe?16640:0)|1024,_e.typeArguments=void 0,_e.jsDoc=void 0,_e.locals=void 0,_e.nextContainer=void 0,_e.flowNode=void 0,_e.endFlowNode=void 0,_e.returnFlowNode=void 0,_e}function GI(l,_,h,x,C,j,_e){return l.modifiers!==_||l.typeParameters!==h||l.parameters!==x||l.type!==C||l.equalsGreaterThanToken!==j||l.body!==_e?F(kb(_,h,x,C,j,_e),l):l}function HI(l){let _=T(221);return _.expression=n().parenthesizeOperandOfPrefixUnary(l),_.transformFlags|=fe(_.expression),_}function ZI(l,_){return l.expression!==_?se(HI(_),l):l}function MS(l){let _=T(222);return _.expression=n().parenthesizeOperandOfPrefixUnary(l),_.transformFlags|=fe(_.expression),_}function hs(l,_){return l.expression!==_?se(MS(_),l):l}function Cb(l){let _=T(223);return _.expression=n().parenthesizeOperandOfPrefixUnary(l),_.transformFlags|=fe(_.expression),_}function lu(l,_){return l.expression!==_?se(Cb(_),l):l}function WI(l){let _=T(224);return _.expression=n().parenthesizeOperandOfPrefixUnary(l),_.transformFlags|=fe(_.expression)|256|128|2097152,_}function zd(l,_){return l.expression!==_?se(WI(_),l):l}function Jd(l,_){let h=T(225);return h.operator=l,h.operand=n().parenthesizeOperandOfPrefixUnary(_),h.transformFlags|=fe(h.operand),(l===46||l===47)&&kn(h.operand)&&!m1(h.operand)&&!cme(h.operand)&&(h.transformFlags|=268435456),h}function wR(l,_){return l.operand!==_?se(Jd(l.operator,_),l):l}function Rf(l,_){let h=T(226);return h.operator=_,h.operand=n().parenthesizeOperandOfPostfixUnary(l),h.transformFlags|=fe(h.operand),kn(h.operand)&&!m1(h.operand)&&!cme(h.operand)&&(h.transformFlags|=268435456),h}function kR(l,_){return l.operand!==_?se(Rf(_,l.operator),l):l}function jS(l,_,h){let x=k(227),C=G8(_),j=C.kind;return x.left=n().parenthesizeLeftSideOfBinary(j,l),x.operatorToken=C,x.right=n().parenthesizeRightSideOfBinary(j,x.left,h),x.transformFlags|=fe(x.left)|fe(x.operatorToken)|fe(x.right),j===61?x.transformFlags|=32:j===64?rye(x.left)?x.transformFlags|=5248|QI(x.left):Knt(x.left)&&(x.transformFlags|=5120|QI(x.left)):j===43||j===68?x.transformFlags|=512:Irt(j)&&(x.transformFlags|=16),j===103&&zg(x.left)&&(x.transformFlags|=536870912),x.jsDoc=void 0,x}function QI(l){return vye(l)?65536:0}function CR(l,_,h,x){return l.left!==_||l.operatorToken!==h||l.right!==x?se(jS(_,h,x),l):l}function XI(l,_,h,x,C){let j=T(228);return j.condition=n().parenthesizeConditionOfConditionalExpression(l),j.questionToken=_??pt(58),j.whenTrue=n().parenthesizeBranchOfConditionalExpression(h),j.colonToken=x??pt(59),j.whenFalse=n().parenthesizeBranchOfConditionalExpression(C),j.transformFlags|=fe(j.condition)|fe(j.questionToken)|fe(j.whenTrue)|fe(j.colonToken)|fe(j.whenFalse),j.flowNodeWhenFalse=void 0,j.flowNodeWhenTrue=void 0,j}function YI(l,_,h,x,C,j){return l.condition!==_||l.questionToken!==h||l.whenTrue!==x||l.colonToken!==C||l.whenFalse!==j?se(XI(_,h,x,C,j),l):l}function ew(l,_){let h=T(229);return h.head=l,h.templateSpans=I(_),h.transformFlags|=fe(h.head)|Pt(h.templateSpans)|1024,h}function ul(l,_,h){return l.head!==_||l.templateSpans!==h?se(ew(_,h),l):l}function ly(l,_,h,x=0){pe.assert(!(x&-7177),"Unsupported template flags.");let C;if(h!==void 0&&h!==_&&(C=lnt(l,h),typeof C=="object"))return pe.fail("Invalid raw text");if(_===void 0){if(C===void 0)return pe.fail("Arguments 'text' and 'rawText' may not both be undefined.");_=C}else C!==void 0&&pe.assert(_===C,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return _}function tw(l){let _=1024;return l&&(_|=128),_}function PR(l,_,h,x){let C=Oe(l);return C.text=_,C.rawText=h,C.templateFlags=x&7176,C.transformFlags=tw(C.templateFlags),C}function Lf(l,_,h,x){let C=k(l);return C.text=_,C.rawText=h,C.templateFlags=x&7176,C.transformFlags=tw(C.templateFlags),C}function $f(l,_,h,x){return l===15?Lf(l,_,h,x):PR(l,_,h,x)}function rw(l,_,h){return l=ly(16,l,_,h),$f(16,l,_,h)}function BS(l,_,h){return l=ly(16,l,_,h),$f(17,l,_,h)}function Pb(l,_,h){return l=ly(16,l,_,h),$f(18,l,_,h)}function OR(l,_,h){return l=ly(16,l,_,h),Lf(15,l,_,h)}function Ob(l,_){pe.assert(!l||!!_,"A `YieldExpression` with an asteriskToken must have an expression.");let h=T(230);return h.expression=_&&n().parenthesizeExpressionForDisallowedComma(_),h.asteriskToken=l,h.transformFlags|=fe(h.expression)|fe(h.asteriskToken)|1024|128|1048576,h}function NR(l,_,h){return l.expression!==h||l.asteriskToken!==_?se(Ob(_,h),l):l}function nw(l){let _=T(231);return _.expression=n().parenthesizeExpressionForDisallowedComma(l),_.transformFlags|=fe(_.expression)|1024|32768,_}function FR(l,_){return l.expression!==_?se(nw(_),l):l}function ow(l,_,h,x,C){let j=k(232);return j.modifiers=Kt(l),j.name=Dn(_),j.typeParameters=Kt(h),j.heritageClauses=Kt(x),j.members=I(C),j.transformFlags|=Pt(j.modifiers)|Uc(j.name)|Pt(j.typeParameters)|Pt(j.heritageClauses)|Pt(j.members)|(j.typeParameters?1:0)|1024,j.jsDoc=void 0,j}function Nb(l,_,h,x,C,j){return l.modifiers!==_||l.name!==h||l.typeParameters!==x||l.heritageClauses!==C||l.members!==j?se(ow(_,h,x,C,j),l):l}function Fb(){return T(233)}function iw(l,_){let h=T(234);return h.expression=n().parenthesizeLeftSideOfAccess(l,!1),h.typeArguments=_&&n().parenthesizeTypeArguments(_),h.transformFlags|=fe(h.expression)|Pt(h.typeArguments)|1024,h}function aw(l,_,h){return l.expression!==_||l.typeArguments!==h?se(iw(_,h),l):l}function ys(l,_){let h=T(235);return h.expression=l,h.type=_,h.transformFlags|=fe(h.expression)|fe(h.type)|1,h}function qS(l,_,h){return l.expression!==_||l.type!==h?se(ys(_,h),l):l}function sw(l){let _=T(236);return _.expression=n().parenthesizeLeftSideOfAccess(l,!1),_.transformFlags|=fe(_.expression)|1,_}function cw(l,_){return utt(l)?bc(l,_):l.expression!==_?se(sw(_),l):l}function Rb(l,_){let h=T(239);return h.expression=l,h.type=_,h.transformFlags|=fe(h.expression)|fe(h.type)|1,h}function lw(l,_,h){return l.expression!==_||l.type!==h?se(Rb(_,h),l):l}function Lb(l){let _=T(236);return _.flags|=64,_.expression=n().parenthesizeLeftSideOfAccess(l,!0),_.transformFlags|=fe(_.expression)|1,_}function bc(l,_){return pe.assert(!!(l.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),l.expression!==_?se(Lb(_),l):l}function uw(l,_){let h=T(237);switch(h.keywordToken=l,h.name=_,h.transformFlags|=fe(h.name),l){case 105:h.transformFlags|=1024;break;case 102:h.transformFlags|=32;break;default:return pe.assertNever(l)}return h.flowNode=void 0,h}function $b(l,_){return l.name!==_?se(uw(l.keywordToken,_),l):l}function pl(l,_){let h=T(240);return h.expression=l,h.literal=_,h.transformFlags|=fe(h.expression)|fe(h.literal)|1024,h}function US(l,_,h){return l.expression!==_||l.literal!==h?se(pl(_,h),l):l}function pw(){let l=T(241);return l.transformFlags|=1024,l}function Vd(l,_){let h=T(242);return h.statements=I(l),h.multiLine=_,h.transformFlags|=Pt(h.statements),h.jsDoc=void 0,h.locals=void 0,h.nextContainer=void 0,h}function RR(l,_){return l.statements!==_?se(Vd(_,l.multiLine),l):l}function Mb(l,_){let h=T(244);return h.modifiers=Kt(l),h.declarationList=rf(_)?Jb(_):_,h.transformFlags|=Pt(h.modifiers)|fe(h.declarationList),zc(h.modifiers)&128&&(h.transformFlags=1),h.jsDoc=void 0,h.flowNode=void 0,h}function dw(l,_,h){return l.modifiers!==_||l.declarationList!==h?se(Mb(_,h),l):l}function _w(){let l=T(243);return l.jsDoc=void 0,l}function uy(l){let _=T(245);return _.expression=n().parenthesizeExpressionOfExpressionStatement(l),_.transformFlags|=fe(_.expression),_.jsDoc=void 0,_.flowNode=void 0,_}function fw(l,_){return l.expression!==_?se(uy(_),l):l}function mw(l,_,h){let x=T(246);return x.expression=l,x.thenStatement=dl(_),x.elseStatement=dl(h),x.transformFlags|=fe(x.expression)|fe(x.thenStatement)|fe(x.elseStatement),x.jsDoc=void 0,x.flowNode=void 0,x}function hw(l,_,h,x){return l.expression!==_||l.thenStatement!==h||l.elseStatement!==x?se(mw(_,h,x),l):l}function yw(l,_){let h=T(247);return h.statement=dl(l),h.expression=_,h.transformFlags|=fe(h.statement)|fe(h.expression),h.jsDoc=void 0,h.flowNode=void 0,h}function gw(l,_,h){return l.statement!==_||l.expression!==h?se(yw(_,h),l):l}function Sw(l,_){let h=T(248);return h.expression=l,h.statement=dl(_),h.transformFlags|=fe(h.expression)|fe(h.statement),h.jsDoc=void 0,h.flowNode=void 0,h}function LR(l,_,h){return l.expression!==_||l.statement!==h?se(Sw(_,h),l):l}function vw(l,_,h,x){let C=T(249);return C.initializer=l,C.condition=_,C.incrementor=h,C.statement=dl(x),C.transformFlags|=fe(C.initializer)|fe(C.condition)|fe(C.incrementor)|fe(C.statement),C.jsDoc=void 0,C.locals=void 0,C.nextContainer=void 0,C.flowNode=void 0,C}function bw(l,_,h,x,C){return l.initializer!==_||l.condition!==h||l.incrementor!==x||l.statement!==C?se(vw(_,h,x,C),l):l}function jb(l,_,h){let x=T(250);return x.initializer=l,x.expression=_,x.statement=dl(h),x.transformFlags|=fe(x.initializer)|fe(x.expression)|fe(x.statement),x.jsDoc=void 0,x.locals=void 0,x.nextContainer=void 0,x.flowNode=void 0,x}function $R(l,_,h,x){return l.initializer!==_||l.expression!==h||l.statement!==x?se(jb(_,h,x),l):l}function xw(l,_,h,x){let C=T(251);return C.awaitModifier=l,C.initializer=_,C.expression=n().parenthesizeExpressionForDisallowedComma(h),C.statement=dl(x),C.transformFlags|=fe(C.awaitModifier)|fe(C.initializer)|fe(C.expression)|fe(C.statement)|1024,l&&(C.transformFlags|=128),C.jsDoc=void 0,C.locals=void 0,C.nextContainer=void 0,C.flowNode=void 0,C}function MR(l,_,h,x,C){return l.awaitModifier!==_||l.initializer!==h||l.expression!==x||l.statement!==C?se(xw(_,h,x,C),l):l}function Ew(l){let _=T(252);return _.label=Dn(l),_.transformFlags|=fe(_.label)|4194304,_.jsDoc=void 0,_.flowNode=void 0,_}function jR(l,_){return l.label!==_?se(Ew(_),l):l}function Bb(l){let _=T(253);return _.label=Dn(l),_.transformFlags|=fe(_.label)|4194304,_.jsDoc=void 0,_.flowNode=void 0,_}function Tw(l,_){return l.label!==_?se(Bb(_),l):l}function qb(l){let _=T(254);return _.expression=l,_.transformFlags|=fe(_.expression)|128|4194304,_.jsDoc=void 0,_.flowNode=void 0,_}function BR(l,_){return l.expression!==_?se(qb(_),l):l}function Ub(l,_){let h=T(255);return h.expression=l,h.statement=dl(_),h.transformFlags|=fe(h.expression)|fe(h.statement),h.jsDoc=void 0,h.flowNode=void 0,h}function Dw(l,_,h){return l.expression!==_||l.statement!==h?se(Ub(_,h),l):l}function zb(l,_){let h=T(256);return h.expression=n().parenthesizeExpressionForDisallowedComma(l),h.caseBlock=_,h.transformFlags|=fe(h.expression)|fe(h.caseBlock),h.jsDoc=void 0,h.flowNode=void 0,h.possiblyExhaustive=!1,h}function Mf(l,_,h){return l.expression!==_||l.caseBlock!==h?se(zb(_,h),l):l}function Aw(l,_){let h=T(257);return h.label=Dn(l),h.statement=dl(_),h.transformFlags|=fe(h.label)|fe(h.statement),h.jsDoc=void 0,h.flowNode=void 0,h}function Iw(l,_,h){return l.label!==_||l.statement!==h?se(Aw(_,h),l):l}function ww(l){let _=T(258);return _.expression=l,_.transformFlags|=fe(_.expression),_.jsDoc=void 0,_.flowNode=void 0,_}function qR(l,_){return l.expression!==_?se(ww(_),l):l}function kw(l,_,h){let x=T(259);return x.tryBlock=l,x.catchClause=_,x.finallyBlock=h,x.transformFlags|=fe(x.tryBlock)|fe(x.catchClause)|fe(x.finallyBlock),x.jsDoc=void 0,x.flowNode=void 0,x}function UR(l,_,h,x){return l.tryBlock!==_||l.catchClause!==h||l.finallyBlock!==x?se(kw(_,h,x),l):l}function Cw(){let l=T(260);return l.jsDoc=void 0,l.flowNode=void 0,l}function zS(l,_,h,x){let C=k(261);return C.name=Dn(l),C.exclamationToken=_,C.type=h,C.initializer=xy(x),C.transformFlags|=Uc(C.name)|fe(C.initializer)|(C.exclamationToken??C.type?1:0),C.jsDoc=void 0,C}function Pw(l,_,h,x,C){return l.name!==_||l.type!==x||l.exclamationToken!==h||l.initializer!==C?se(zS(_,h,x,C),l):l}function Jb(l,_=0){let h=T(262);return h.flags|=_&7,h.declarations=I(l),h.transformFlags|=Pt(h.declarations)|4194304,_&7&&(h.transformFlags|=263168),_&4&&(h.transformFlags|=4),h}function zR(l,_){return l.declarations!==_?se(Jb(_,l.flags),l):l}function Ow(l,_,h,x,C,j,_e){let Qe=k(263);if(Qe.modifiers=Kt(l),Qe.asteriskToken=_,Qe.name=Dn(h),Qe.typeParameters=Kt(x),Qe.parameters=I(C),Qe.type=j,Qe.body=_e,!Qe.body||zc(Qe.modifiers)&128)Qe.transformFlags=1;else{let xr=zc(Qe.modifiers)&1024,Ii=!!Qe.asteriskToken,du=xr&&Ii;Qe.transformFlags=Pt(Qe.modifiers)|fe(Qe.asteriskToken)|Uc(Qe.name)|Pt(Qe.typeParameters)|Pt(Qe.parameters)|fe(Qe.type)|fe(Qe.body)&-67108865|(du?128:xr?256:Ii?2048:0)|(Qe.typeParameters||Qe.type?1:0)|4194304}return Qe.typeArguments=void 0,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.endFlowNode=void 0,Qe.returnFlowNode=void 0,Qe}function Vb(l,_,h,x,C,j,_e,Qe){return l.modifiers!==_||l.asteriskToken!==h||l.name!==x||l.typeParameters!==C||l.parameters!==j||l.type!==_e||l.body!==Qe?JR(Ow(_,h,x,C,j,_e,Qe),l):l}function JR(l,_){return l!==_&&l.modifiers===_.modifiers&&(l.modifiers=_.modifiers),F(l,_)}function Nw(l,_,h,x,C){let j=k(264);return j.modifiers=Kt(l),j.name=Dn(_),j.typeParameters=Kt(h),j.heritageClauses=Kt(x),j.members=I(C),zc(j.modifiers)&128?j.transformFlags=1:(j.transformFlags|=Pt(j.modifiers)|Uc(j.name)|Pt(j.typeParameters)|Pt(j.heritageClauses)|Pt(j.members)|(j.typeParameters?1:0)|1024,j.transformFlags&8192&&(j.transformFlags|=1)),j.jsDoc=void 0,j}function JS(l,_,h,x,C,j){return l.modifiers!==_||l.name!==h||l.typeParameters!==x||l.heritageClauses!==C||l.members!==j?se(Nw(_,h,x,C,j),l):l}function Fw(l,_,h,x,C){let j=k(265);return j.modifiers=Kt(l),j.name=Dn(_),j.typeParameters=Kt(h),j.heritageClauses=Kt(x),j.members=I(C),j.transformFlags=1,j.jsDoc=void 0,j}function Rw(l,_,h,x,C,j){return l.modifiers!==_||l.name!==h||l.typeParameters!==x||l.heritageClauses!==C||l.members!==j?se(Fw(_,h,x,C,j),l):l}function no(l,_,h,x){let C=k(266);return C.modifiers=Kt(l),C.name=Dn(_),C.typeParameters=Kt(h),C.type=x,C.transformFlags=1,C.jsDoc=void 0,C.locals=void 0,C.nextContainer=void 0,C}function dp(l,_,h,x,C){return l.modifiers!==_||l.name!==h||l.typeParameters!==x||l.type!==C?se(no(_,h,x,C),l):l}function Kb(l,_,h){let x=k(267);return x.modifiers=Kt(l),x.name=Dn(_),x.members=I(h),x.transformFlags|=Pt(x.modifiers)|fe(x.name)|Pt(x.members)|1,x.transformFlags&=-67108865,x.jsDoc=void 0,x}function _p(l,_,h,x){return l.modifiers!==_||l.name!==h||l.members!==x?se(Kb(_,h,x),l):l}function Lw(l,_,h,x=0){let C=k(268);return C.modifiers=Kt(l),C.flags|=x&2088,C.name=_,C.body=h,zc(C.modifiers)&128?C.transformFlags=1:C.transformFlags|=Pt(C.modifiers)|fe(C.name)|fe(C.body)|1,C.transformFlags&=-67108865,C.jsDoc=void 0,C.locals=void 0,C.nextContainer=void 0,C}function ti(l,_,h,x){return l.modifiers!==_||l.name!==h||l.body!==x?se(Lw(_,h,x,l.flags),l):l}function fp(l){let _=T(269);return _.statements=I(l),_.transformFlags|=Pt(_.statements),_.jsDoc=void 0,_}function Hi(l,_){return l.statements!==_?se(fp(_),l):l}function $w(l){let _=T(270);return _.clauses=I(l),_.transformFlags|=Pt(_.clauses),_.locals=void 0,_.nextContainer=void 0,_}function VR(l,_){return l.clauses!==_?se($w(_),l):l}function Mw(l){let _=k(271);return _.name=Dn(l),_.transformFlags|=p1(_.name)|1,_.modifiers=void 0,_.jsDoc=void 0,_}function jw(l,_){return l.name!==_?KR(Mw(_),l):l}function KR(l,_){return l!==_&&(l.modifiers=_.modifiers),se(l,_)}function Bw(l,_,h,x){let C=k(272);return C.modifiers=Kt(l),C.name=Dn(h),C.isTypeOnly=_,C.moduleReference=x,C.transformFlags|=Pt(C.modifiers)|p1(C.name)|fe(C.moduleReference),fye(C.moduleReference)||(C.transformFlags|=1),C.transformFlags&=-67108865,C.jsDoc=void 0,C}function qw(l,_,h,x,C){return l.modifiers!==_||l.isTypeOnly!==h||l.name!==x||l.moduleReference!==C?se(Bw(_,h,x,C),l):l}function Uw(l,_,h,x){let C=T(273);return C.modifiers=Kt(l),C.importClause=_,C.moduleSpecifier=h,C.attributes=C.assertClause=x,C.transformFlags|=fe(C.importClause)|fe(C.moduleSpecifier),C.transformFlags&=-67108865,C.jsDoc=void 0,C}function zw(l,_,h,x,C){return l.modifiers!==_||l.importClause!==h||l.moduleSpecifier!==x||l.attributes!==C?se(Uw(_,h,x,C),l):l}function Jw(l,_,h){let x=k(274);return typeof l=="boolean"&&(l=l?156:void 0),x.isTypeOnly=l===156,x.phaseModifier=l,x.name=_,x.namedBindings=h,x.transformFlags|=fe(x.name)|fe(x.namedBindings),l===156&&(x.transformFlags|=1),x.transformFlags&=-67108865,x}function Vw(l,_,h,x){return typeof _=="boolean"&&(_=_?156:void 0),l.phaseModifier!==_||l.name!==h||l.namedBindings!==x?se(Jw(_,h,x),l):l}function Gb(l,_){let h=T(301);return h.elements=I(l),h.multiLine=_,h.token=132,h.transformFlags|=4,h}function GR(l,_,h){return l.elements!==_||l.multiLine!==h?se(Gb(_,h),l):l}function py(l,_){let h=T(302);return h.name=l,h.value=_,h.transformFlags|=4,h}function Kw(l,_,h){return l.name!==_||l.value!==h?se(py(_,h),l):l}function Hb(l,_){let h=T(303);return h.assertClause=l,h.multiLine=_,h}function Gw(l,_,h){return l.assertClause!==_||l.multiLine!==h?se(Hb(_,h),l):l}function Hw(l,_,h){let x=T(301);return x.token=h??118,x.elements=I(l),x.multiLine=_,x.transformFlags|=4,x}function Zb(l,_,h){return l.elements!==_||l.multiLine!==h?se(Hw(_,h,l.token),l):l}function Zw(l,_){let h=T(302);return h.name=l,h.value=_,h.transformFlags|=4,h}function Ww(l,_,h){return l.name!==_||l.value!==h?se(Zw(_,h),l):l}function Qw(l){let _=k(275);return _.name=l,_.transformFlags|=fe(_.name),_.transformFlags&=-67108865,_}function HR(l,_){return l.name!==_?se(Qw(_),l):l}function Xw(l){let _=k(281);return _.name=l,_.transformFlags|=fe(_.name)|32,_.transformFlags&=-67108865,_}function ZR(l,_){return l.name!==_?se(Xw(_),l):l}function Yw(l){let _=T(276);return _.elements=I(l),_.transformFlags|=Pt(_.elements),_.transformFlags&=-67108865,_}function ek(l,_){return l.elements!==_?se(Yw(_),l):l}function mp(l,_,h){let x=k(277);return x.isTypeOnly=l,x.propertyName=_,x.name=h,x.transformFlags|=fe(x.propertyName)|fe(x.name),x.transformFlags&=-67108865,x}function WR(l,_,h,x){return l.isTypeOnly!==_||l.propertyName!==h||l.name!==x?se(mp(_,h,x),l):l}function VS(l,_,h){let x=k(278);return x.modifiers=Kt(l),x.isExportEquals=_,x.expression=_?n().parenthesizeRightSideOfBinary(64,void 0,h):n().parenthesizeExpressionOfExportDefault(h),x.transformFlags|=Pt(x.modifiers)|fe(x.expression),x.transformFlags&=-67108865,x.jsDoc=void 0,x}function dy(l,_,h){return l.modifiers!==_||l.expression!==h?se(VS(_,l.isExportEquals,h),l):l}function KS(l,_,h,x,C){let j=k(279);return j.modifiers=Kt(l),j.isTypeOnly=_,j.exportClause=h,j.moduleSpecifier=x,j.attributes=j.assertClause=C,j.transformFlags|=Pt(j.modifiers)|fe(j.exportClause)|fe(j.moduleSpecifier),j.transformFlags&=-67108865,j.jsDoc=void 0,j}function tk(l,_,h,x,C,j){return l.modifiers!==_||l.isTypeOnly!==h||l.exportClause!==x||l.moduleSpecifier!==C||l.attributes!==j?_y(KS(_,h,x,C,j),l):l}function _y(l,_){return l!==_&&l.modifiers===_.modifiers&&(l.modifiers=_.modifiers),se(l,_)}function Wb(l){let _=T(280);return _.elements=I(l),_.transformFlags|=Pt(_.elements),_.transformFlags&=-67108865,_}function QR(l,_){return l.elements!==_?se(Wb(_),l):l}function GS(l,_,h){let x=T(282);return x.isTypeOnly=l,x.propertyName=Dn(_),x.name=Dn(h),x.transformFlags|=fe(x.propertyName)|fe(x.name),x.transformFlags&=-67108865,x.jsDoc=void 0,x}function XR(l,_,h,x){return l.isTypeOnly!==_||l.propertyName!==h||l.name!==x?se(GS(_,h,x),l):l}function YR(){let l=k(283);return l.jsDoc=void 0,l}function Qb(l){let _=T(284);return _.expression=l,_.transformFlags|=fe(_.expression),_.transformFlags&=-67108865,_}function e8(l,_){return l.expression!==_?se(Qb(_),l):l}function rk(l){return T(l)}function nk(l,_,h=!1){let x=Xb(l,h?_&&n().parenthesizeNonArrayTypeOfPostfixType(_):_);return x.postfix=h,x}function Xb(l,_){let h=T(l);return h.type=_,h}function t8(l,_,h){return _.type!==h?se(nk(l,h,_.postfix),_):_}function r8(l,_,h){return _.type!==h?se(Xb(l,h),_):_}function ok(l,_){let h=k(318);return h.parameters=Kt(l),h.type=_,h.transformFlags=Pt(h.parameters)|(h.type?1:0),h.jsDoc=void 0,h.locals=void 0,h.nextContainer=void 0,h.typeArguments=void 0,h}function n8(l,_,h){return l.parameters!==_||l.type!==h?se(ok(_,h),l):l}function ik(l,_=!1){let h=k(323);return h.jsDocPropertyTags=Kt(l),h.isArrayType=_,h}function o8(l,_,h){return l.jsDocPropertyTags!==_||l.isArrayType!==h?se(ik(_,h),l):l}function ak(l){let _=T(310);return _.type=l,_}function Yb(l,_){return l.type!==_?se(ak(_),l):l}function sk(l,_,h){let x=k(324);return x.typeParameters=Kt(l),x.parameters=I(_),x.type=h,x.jsDoc=void 0,x.locals=void 0,x.nextContainer=void 0,x}function i8(l,_,h,x){return l.typeParameters!==_||l.parameters!==h||l.type!==x?se(sk(_,h,x),l):l}function Za(l){let _=iO(l.kind);return l.tagName.escapedText===l1(_)?l.tagName:xe(_)}function Us(l,_,h){let x=T(l);return x.tagName=_,x.comment=h,x}function Kd(l,_,h){let x=k(l);return x.tagName=_,x.comment=h,x}function ex(l,_,h,x){let C=Us(346,l??xe("template"),x);return C.constraint=_,C.typeParameters=I(h),C}function ck(l,_=Za(l),h,x,C){return l.tagName!==_||l.constraint!==h||l.typeParameters!==x||l.comment!==C?se(ex(_,h,x,C),l):l}function HS(l,_,h,x){let C=Kd(347,l??xe("typedef"),x);return C.typeExpression=_,C.fullName=h,C.name=lme(h),C.locals=void 0,C.nextContainer=void 0,C}function a8(l,_=Za(l),h,x,C){return l.tagName!==_||l.typeExpression!==h||l.fullName!==x||l.comment!==C?se(HS(_,h,x,C),l):l}function tx(l,_,h,x,C,j){let _e=Kd(342,l??xe("param"),j);return _e.typeExpression=x,_e.name=_,_e.isNameFirst=!!C,_e.isBracketed=h,_e}function s8(l,_=Za(l),h,x,C,j,_e){return l.tagName!==_||l.name!==h||l.isBracketed!==x||l.typeExpression!==C||l.isNameFirst!==j||l.comment!==_e?se(tx(_,h,x,C,j,_e),l):l}function lk(l,_,h,x,C,j){let _e=Kd(349,l??xe("prop"),j);return _e.typeExpression=x,_e.name=_,_e.isNameFirst=!!C,_e.isBracketed=h,_e}function uk(l,_=Za(l),h,x,C,j,_e){return l.tagName!==_||l.name!==h||l.isBracketed!==x||l.typeExpression!==C||l.isNameFirst!==j||l.comment!==_e?se(lk(_,h,x,C,j,_e),l):l}function pk(l,_,h,x){let C=Kd(339,l??xe("callback"),x);return C.typeExpression=_,C.fullName=h,C.name=lme(h),C.locals=void 0,C.nextContainer=void 0,C}function dk(l,_=Za(l),h,x,C){return l.tagName!==_||l.typeExpression!==h||l.fullName!==x||l.comment!==C?se(pk(_,h,x,C),l):l}function _k(l,_,h){let x=Us(340,l??xe("overload"),h);return x.typeExpression=_,x}function rx(l,_=Za(l),h,x){return l.tagName!==_||l.typeExpression!==h||l.comment!==x?se(_k(_,h,x),l):l}function nx(l,_,h){let x=Us(329,l??xe("augments"),h);return x.class=_,x}function fy(l,_=Za(l),h,x){return l.tagName!==_||l.class!==h||l.comment!==x?se(nx(_,h,x),l):l}function fk(l,_,h){let x=Us(330,l??xe("implements"),h);return x.class=_,x}function Gd(l,_,h){let x=Us(348,l??xe("see"),h);return x.name=_,x}function ZS(l,_,h,x){return l.tagName!==_||l.name!==h||l.comment!==x?se(Gd(_,h,x),l):l}function mk(l){let _=T(311);return _.name=l,_}function c8(l,_){return l.name!==_?se(mk(_),l):l}function hk(l,_){let h=T(312);return h.left=l,h.right=_,h.transformFlags|=fe(h.left)|fe(h.right),h}function l8(l,_,h){return l.left!==_||l.right!==h?se(hk(_,h),l):l}function yk(l,_){let h=T(325);return h.name=l,h.text=_,h}function gk(l,_,h){return l.name!==_?se(yk(_,h),l):l}function Sk(l,_){let h=T(326);return h.name=l,h.text=_,h}function u8(l,_,h){return l.name!==_?se(Sk(_,h),l):l}function vk(l,_){let h=T(327);return h.name=l,h.text=_,h}function p8(l,_,h){return l.name!==_?se(vk(_,h),l):l}function d8(l,_=Za(l),h,x){return l.tagName!==_||l.class!==h||l.comment!==x?se(fk(_,h,x),l):l}function bk(l,_,h){return Us(l,_??xe(iO(l)),h)}function _8(l,_,h=Za(_),x){return _.tagName!==h||_.comment!==x?se(bk(l,h,x),_):_}function xk(l,_,h,x){let C=Us(l,_??xe(iO(l)),x);return C.typeExpression=h,C}function f8(l,_,h=Za(_),x,C){return _.tagName!==h||_.typeExpression!==x||_.comment!==C?se(xk(l,h,x,C),_):_}function Ek(l,_){return Us(328,l,_)}function m8(l,_,h){return l.tagName!==_||l.comment!==h?se(Ek(_,h),l):l}function Tk(l,_,h){let x=Kd(341,l??xe(iO(341)),h);return x.typeExpression=_,x.locals=void 0,x.nextContainer=void 0,x}function ox(l,_=Za(l),h,x){return l.tagName!==_||l.typeExpression!==h||l.comment!==x?se(Tk(_,h,x),l):l}function Dk(l,_,h,x,C){let j=Us(352,l??xe("import"),C);return j.importClause=_,j.moduleSpecifier=h,j.attributes=x,j.comment=C,j}function Ak(l,_,h,x,C,j){return l.tagName!==_||l.comment!==j||l.importClause!==h||l.moduleSpecifier!==x||l.attributes!==C?se(Dk(_,h,x,C,j),l):l}function ix(l){let _=T(322);return _.text=l,_}function h8(l,_){return l.text!==_?se(ix(_),l):l}function my(l,_){let h=T(321);return h.comment=l,h.tags=Kt(_),h}function Ik(l,_,h){return l.comment!==_||l.tags!==h?se(my(_,h),l):l}function wk(l,_,h){let x=T(285);return x.openingElement=l,x.children=I(_),x.closingElement=h,x.transformFlags|=fe(x.openingElement)|Pt(x.children)|fe(x.closingElement)|2,x}function y8(l,_,h,x){return l.openingElement!==_||l.children!==h||l.closingElement!==x?se(wk(_,h,x),l):l}function kk(l,_,h){let x=T(286);return x.tagName=l,x.typeArguments=Kt(_),x.attributes=h,x.transformFlags|=fe(x.tagName)|Pt(x.typeArguments)|fe(x.attributes)|2,x.typeArguments&&(x.transformFlags|=1),x}function g8(l,_,h,x){return l.tagName!==_||l.typeArguments!==h||l.attributes!==x?se(kk(_,h,x),l):l}function WS(l,_,h){let x=T(287);return x.tagName=l,x.typeArguments=Kt(_),x.attributes=h,x.transformFlags|=fe(x.tagName)|Pt(x.typeArguments)|fe(x.attributes)|2,_&&(x.transformFlags|=1),x}function Ck(l,_,h,x){return l.tagName!==_||l.typeArguments!==h||l.attributes!==x?se(WS(_,h,x),l):l}function ax(l){let _=T(288);return _.tagName=l,_.transformFlags|=fe(_.tagName)|2,_}function sx(l,_){return l.tagName!==_?se(ax(_),l):l}function pa(l,_,h){let x=T(289);return x.openingFragment=l,x.children=I(_),x.closingFragment=h,x.transformFlags|=fe(x.openingFragment)|Pt(x.children)|fe(x.closingFragment)|2,x}function Pk(l,_,h,x){return l.openingFragment!==_||l.children!==h||l.closingFragment!==x?se(pa(_,h,x),l):l}function hy(l,_){let h=T(12);return h.text=l,h.containsOnlyTriviaWhiteSpaces=!!_,h.transformFlags|=2,h}function S8(l,_,h){return l.text!==_||l.containsOnlyTriviaWhiteSpaces!==h?se(hy(_,h),l):l}function Ok(){let l=T(290);return l.transformFlags|=2,l}function Nk(){let l=T(291);return l.transformFlags|=2,l}function Fk(l,_){let h=k(292);return h.name=l,h.initializer=_,h.transformFlags|=fe(h.name)|fe(h.initializer)|2,h}function v8(l,_,h){return l.name!==_||l.initializer!==h?se(Fk(_,h),l):l}function yy(l){let _=k(293);return _.properties=I(l),_.transformFlags|=Pt(_.properties)|2,_}function b8(l,_){return l.properties!==_?se(yy(_),l):l}function Rk(l){let _=T(294);return _.expression=l,_.transformFlags|=fe(_.expression)|2,_}function x8(l,_){return l.expression!==_?se(Rk(_),l):l}function Lk(l,_){let h=T(295);return h.dotDotDotToken=l,h.expression=_,h.transformFlags|=fe(h.dotDotDotToken)|fe(h.expression)|2,h}function cx(l,_){return l.expression!==_?se(Lk(l.dotDotDotToken,_),l):l}function jf(l,_){let h=T(296);return h.namespace=l,h.name=_,h.transformFlags|=fe(h.namespace)|fe(h.name)|2,h}function E8(l,_,h){return l.namespace!==_||l.name!==h?se(jf(_,h),l):l}function QS(l,_){let h=T(297);return h.expression=n().parenthesizeExpressionForDisallowedComma(l),h.statements=I(_),h.transformFlags|=fe(h.expression)|Pt(h.statements),h.jsDoc=void 0,h}function $k(l,_,h){return l.expression!==_||l.statements!==h?se(QS(_,h),l):l}function Mk(l){let _=T(298);return _.statements=I(l),_.transformFlags=Pt(_.statements),_}function gy(l,_){return l.statements!==_?se(Mk(_),l):l}function lx(l,_){let h=T(299);switch(h.token=l,h.types=I(_),h.transformFlags|=Pt(h.types),l){case 96:h.transformFlags|=1024;break;case 119:h.transformFlags|=1;break;default:return pe.assertNever(l)}return h}function T8(l,_){return l.types!==_?se(lx(l.token,_),l):l}function jk(l,_){let h=T(300);return h.variableDeclaration=zs(l),h.block=_,h.transformFlags|=fe(h.variableDeclaration)|fe(h.block)|(l?0:64),h.locals=void 0,h.nextContainer=void 0,h}function Bk(l,_,h){return l.variableDeclaration!==_||l.block!==h?se(jk(_,h),l):l}function XS(l,_){let h=k(304);return h.name=Dn(l),h.initializer=n().parenthesizeExpressionForDisallowedComma(_),h.transformFlags|=Uc(h.name)|fe(h.initializer),h.modifiers=void 0,h.questionToken=void 0,h.exclamationToken=void 0,h.jsDoc=void 0,h}function ux(l,_,h){return l.name!==_||l.initializer!==h?Bf(XS(_,h),l):l}function Bf(l,_){return l!==_&&(l.modifiers=_.modifiers,l.questionToken=_.questionToken,l.exclamationToken=_.exclamationToken),se(l,_)}function qk(l,_){let h=k(305);return h.name=Dn(l),h.objectAssignmentInitializer=_&&n().parenthesizeExpressionForDisallowedComma(_),h.transformFlags|=p1(h.name)|fe(h.objectAssignmentInitializer)|1024,h.equalsToken=void 0,h.modifiers=void 0,h.questionToken=void 0,h.exclamationToken=void 0,h.jsDoc=void 0,h}function D8(l,_,h){return l.name!==_||l.objectAssignmentInitializer!==h?A8(qk(_,h),l):l}function A8(l,_){return l!==_&&(l.modifiers=_.modifiers,l.questionToken=_.questionToken,l.exclamationToken=_.exclamationToken,l.equalsToken=_.equalsToken),se(l,_)}function Uk(l){let _=k(306);return _.expression=n().parenthesizeExpressionForDisallowedComma(l),_.transformFlags|=fe(_.expression)|128|65536,_.jsDoc=void 0,_}function zk(l,_){return l.expression!==_?se(Uk(_),l):l}function px(l,_){let h=k(307);return h.name=Dn(l),h.initializer=_&&n().parenthesizeExpressionForDisallowedComma(_),h.transformFlags|=fe(h.name)|fe(h.initializer)|1,h.jsDoc=void 0,h}function xc(l,_,h){return l.name!==_||l.initializer!==h?se(px(_,h),l):l}function Jk(l,_,h){let x=t.createBaseSourceFileNode(308);return x.statements=I(l),x.endOfFileToken=_,x.flags|=h,x.text="",x.fileName="",x.path="",x.resolvedPath="",x.originalFileName="",x.languageVersion=1,x.languageVariant=0,x.scriptKind=0,x.isDeclarationFile=!1,x.hasNoDefaultLib=!1,x.transformFlags|=Pt(x.statements)|fe(x.endOfFileToken),x.locals=void 0,x.nextContainer=void 0,x.endFlowNode=void 0,x.nodeCount=0,x.identifierCount=0,x.symbolCount=0,x.parseDiagnostics=void 0,x.bindDiagnostics=void 0,x.bindSuggestionDiagnostics=void 0,x.lineMap=void 0,x.externalModuleIndicator=void 0,x.setExternalModuleIndicator=void 0,x.pragmas=void 0,x.checkJsDirective=void 0,x.referencedFiles=void 0,x.typeReferenceDirectives=void 0,x.libReferenceDirectives=void 0,x.amdDependencies=void 0,x.commentDirectives=void 0,x.identifiers=void 0,x.packageJsonLocations=void 0,x.packageJsonScope=void 0,x.imports=void 0,x.moduleAugmentations=void 0,x.ambientModuleNames=void 0,x.classifiableNames=void 0,x.impliedNodeFormat=void 0,x}function Vk(l){let _=Object.create(l.redirectTarget);return Object.defineProperties(_,{id:{get(){return this.redirectInfo.redirectTarget.id},set(h){this.redirectInfo.redirectTarget.id=h}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(h){this.redirectInfo.redirectTarget.symbol=h}}}),_.redirectInfo=l,_}function I8(l){let _=Vk(l.redirectInfo);return _.flags|=l.flags&-17,_.fileName=l.fileName,_.path=l.path,_.resolvedPath=l.resolvedPath,_.originalFileName=l.originalFileName,_.packageJsonLocations=l.packageJsonLocations,_.packageJsonScope=l.packageJsonScope,_.emitNode=void 0,_}function w8(l){let _=t.createBaseSourceFileNode(308);_.flags|=l.flags&-17;for(let h in l)if(!(fd(_,h)||!fd(l,h))){if(h==="emitNode"){_.emitNode=void 0;continue}_[h]=l[h]}return _}function dx(l){let _=l.redirectInfo?I8(l):w8(l);return r(_,l),_}function _x(l,_,h,x,C,j,_e){let Qe=dx(l);return Qe.statements=I(_),Qe.isDeclarationFile=h,Qe.referencedFiles=x,Qe.typeReferenceDirectives=C,Qe.hasNoDefaultLib=j,Qe.libReferenceDirectives=_e,Qe.transformFlags=Pt(Qe.statements)|fe(Qe.endOfFileToken),Qe}function k8(l,_,h=l.isDeclarationFile,x=l.referencedFiles,C=l.typeReferenceDirectives,j=l.hasNoDefaultLib,_e=l.libReferenceDirectives){return l.statements!==_||l.isDeclarationFile!==h||l.referencedFiles!==x||l.typeReferenceDirectives!==C||l.hasNoDefaultLib!==j||l.libReferenceDirectives!==_e?se(_x(l,_,h,x,C,j,_e),l):l}function Kk(l){let _=T(309);return _.sourceFiles=l,_.syntheticFileReferences=void 0,_.syntheticTypeReferences=void 0,_.syntheticLibReferences=void 0,_.hasNoDefaultLib=void 0,_}function Gk(l,_){return l.sourceFiles!==_?se(Kk(_),l):l}function C8(l,_=!1,h){let x=T(238);return x.type=l,x.isSpread=_,x.tupleNameSource=h,x}function P8(l){let _=T(353);return _._children=l,_}function YS(l){let _=T(354);return _.original=l,Fs(_,l),_}function fx(l,_){let h=T(356);return h.expression=l,h.original=_,h.transformFlags|=fe(h.expression)|1,Fs(h,_),h}function Hk(l,_){return l.expression!==_?se(fx(_,l.original),l):l}function O8(){return T(355)}function N8(l){if(u1(l)&&!yO(l)&&!l.original&&!l.emitNode&&!l.id){if(eot(l))return l.elements;if(E1(l)&&gnt(l.operatorToken))return[l.left,l.right]}return l}function mx(l){let _=T(357);return _.elements=I(kYe(l,N8)),_.transformFlags|=Pt(_.elements),_}function F8(l,_){return l.elements!==_?se(mx(_),l):l}function hx(l,_){let h=T(358);return h.expression=l,h.thisArg=_,h.transformFlags|=fe(h.expression)|fe(h.thisArg),h}function Zk(l,_,h){return l.expression!==_||l.thisArg!==h?se(hx(_,h),l):l}function Wk(l){let _=Je(l.escapedText);return _.flags|=l.flags&-17,_.transformFlags=l.transformFlags,r(_,l),setIdentifierAutoGenerate(_,{...l.emitNode.autoGenerate}),_}function R8(l){let _=Je(l.escapedText);_.flags|=l.flags&-17,_.jsDoc=l.jsDoc,_.flowNode=l.flowNode,_.symbol=l.symbol,_.transformFlags=l.transformFlags,r(_,l);let h=getIdentifierTypeArguments(l);return h&&setIdentifierTypeArguments(_,h),_}function L8(l){let _=Fr(l.escapedText);return _.flags|=l.flags&-17,_.transformFlags=l.transformFlags,r(_,l),setIdentifierAutoGenerate(_,{...l.emitNode.autoGenerate}),_}function Qk(l){let _=Fr(l.escapedText);return _.flags|=l.flags&-17,_.transformFlags=l.transformFlags,r(_,l),_}function e0(l){if(l===void 0)return l;if(lot(l))return dx(l);if(m1(l))return Wk(l);if(kn(l))return R8(l);if(Ihe(l))return L8(l);if(zg(l))return Qk(l);let _=CJ(l.kind)?t.createBaseNode(l.kind):t.createBaseTokenNode(l.kind);_.flags|=l.flags&-17,_.transformFlags=l.transformFlags,r(_,l);for(let h in l)fd(_,h)||!fd(l,h)||(_[h]=l[h]);return _}function $8(l,_,h){return cy(wb(void 0,void 0,void 0,void 0,_?[_]:[],void 0,Vd(l,!0)),void 0,h?[h]:[])}function M8(l,_,h){return cy(kb(void 0,void 0,_?[_]:[],void 0,void 0,Vd(l,!0)),void 0,h?[h]:[])}function Sy(){return Cb(O("0"))}function Xk(l){return VS(void 0,!1,l)}function Yk(l){return KS(void 0,!1,Wb([GS(!1,void 0,l)]))}function j8(l,_){return _==="null"?E.createStrictEquality(l,Nt()):_==="undefined"?E.createStrictEquality(l,Sy()):E.createStrictEquality(MS(l),U(_))}function yx(l,_){return _==="null"?E.createStrictInequality(l,Nt()):_==="undefined"?E.createStrictInequality(l,Sy()):E.createStrictInequality(MS(l),U(_))}function Hd(l,_,h){return Ufe(l)?Db(ay(l,void 0,_),void 0,void 0,h):cy(cu(l,_),void 0,h)}function B8(l,_,h){return Hd(l,"bind",[_,...h])}function q8(l,_,h){return Hd(l,"call",[_,...h])}function U8(l,_,h){return Hd(l,"apply",[_,h])}function vy(l,_,h){return Hd(xe(l),_,h)}function z8(l,_){return Hd(l,"slice",_===void 0?[]:[hp(_)])}function by(l,_){return Hd(l,"concat",_)}function J8(l,_,h){return vy("Object","defineProperty",[l,hp(_),h])}function gx(l,_){return vy("Object","getOwnPropertyDescriptor",[l,hp(_)])}function qf(l,_,h){return vy("Reflect","get",h?[l,_,h]:[l,_])}function eC(l,_,h,x){return vy("Reflect","set",x?[l,_,h,x]:[l,_,h])}function Uf(l,_,h){return h?(l.push(XS(_,h)),!0):!1}function V8(l,_){let h=[];Uf(h,"enumerable",hp(l.enumerable)),Uf(h,"configurable",hp(l.configurable));let x=Uf(h,"writable",hp(l.writable));x=Uf(h,"value",l.value)||x;let C=Uf(h,"get",l.get);return C=Uf(h,"set",l.set)||C,pe.assert(!(x&&C),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),iy(h,!_)}function tC(l,_){switch(l.kind){case 218:return VI(l,_);case 217:return JI(l,l.type,_);case 235:return qS(l,_,l.type);case 239:return lw(l,_,l.type);case 236:return cw(l,_);case 234:return aw(l,_,l.typeArguments);case 356:return Hk(l,_)}}function K8(l){return UJ(l)&&u1(l)&&u1(getSourceMapRange(l))&&u1(getCommentRange(l))&&!Ra(getSyntheticLeadingComments(l))&&!Ra(getSyntheticTrailingComments(l))}function rC(l,_,h=63){return l&&Sye(l,h)&&!K8(l)?tC(l,rC(l.expression,_)):_}function nC(l,_,h){if(!_)return l;let x=Iw(_,_.label,tot(_.statement)?nC(l,_.statement):l);return h&&h(_),x}function Sx(l,_){let h=LJ(l);switch(h.kind){case 80:return _;case 110:case 9:case 10:case 11:return!1;case 210:return h.elements.length!==0;case 211:return h.properties.length>0;default:return!0}}function oC(l,_,h,x=!1){let C=VJ(l,63),j,_e;return Zfe(C)?(j=lt(),_e=C):jz(C)?(j=lt(),_e=h!==void 0&&h<2?Fs(xe("_super"),C):C):v1(C)&8192?(j=Sy(),_e=n().parenthesizeLeftSideOfAccess(C,!1)):nf(C)?Sx(C.expression,x)?(j=Rt(_),_e=cu(Fs(E.createAssignment(j,C.expression),C.expression),C.name),Fs(_e,C)):(j=C.expression,_e=C):tA(C)?Sx(C.expression,x)?(j=Rt(_),_e=sy(Fs(E.createAssignment(j,C.expression),C.expression),C.argumentExpression),Fs(_e,C)):(j=C.expression,_e=C):(j=Sy(),_e=n().parenthesizeLeftSideOfAccess(l,!1)),{target:_e,thisArg:j}}function iC(l,_){return cu(Ib(iy([ue(void 0,"value",[ji(void 0,void 0,l,void 0,void 0,void 0)],Vd([uy(_)]))])),"value")}function v(l){return l.length>10?mx(l):jYe(l,E.createComma)}function A(l,_,h,x=0,C){let j=C?l&&wJ(l):xhe(l);if(j&&kn(j)&&!m1(j)){let _e=jJ(Fs(e0(j),j),j.parent);return x|=v1(j),h||(x|=96),_||(x|=3072),x&&setEmitFlags(_e,x),_e}return vt(l)}function P(l,_,h){return A(l,_,h,98304)}function R(l,_,h,x){return A(l,_,h,32768,x)}function M(l,_,h){return A(l,_,h,16384)}function ee(l,_,h){return A(l,_,h)}function be(l,_,h,x){let C=cu(l,u1(_)?_:e0(_));Fs(C,_);let j=0;return x||(j|=96),h||(j|=3072),j&&setEmitFlags(C,j),C}function Ue(l,_,h,x){return l&&eA(_,32)?be(l,A(_),h,x):M(_,h,x)}function Ce(l,_,h,x){let C=mr(l,_,0,h);return nr(l,_,C,x)}function De(l){return b1(l.expression)&&l.expression.text==="use strict"}function He(){return Pot(uy(U("use strict")))}function mr(l,_,h=0,x){pe.assert(_.length===0,"Prologue directives should be at the first statement in the target statements array");let C=!1,j=l.length;for(;hQe&&Ii.splice(C,0,..._.slice(Qe,xr)),Qe>_e&&Ii.splice(x,0,..._.slice(_e,Qe)),_e>j&&Ii.splice(h,0,..._.slice(j,_e)),j>0)if(h===0)Ii.splice(0,0,..._.slice(0,j));else{let du=new Map;for(let Js=0;Js=0;Js--){let Ey=_[Js];du.has(Ey.expression.text)||Ii.unshift(Ey)}}return ih(l)?Fs(I(Ii,l.hasTrailingComma),l):l}function pu(l,_){let h;return typeof _=="number"?h=fo(_):h=_,Whe(l)?Ga(l,h,l.name,l.constraint,l.default):vO(l)?iu(l,h,l.dotDotDotToken,l.name,l.questionToken,l.type,l.initializer):tye(l)?Dr(l,h,l.typeParameters,l.parameters,l.type):xnt(l)?al(l,h,l.name,l.questionToken,l.type):bO(l)?oe(l,h,l.name,l.questionToken??l.exclamationToken,l.type,l.initializer):Ent(l)?et(l,h,l.name,l.questionToken,l.typeParameters,l.parameters,l.type):oJ(l)?Wr(l,h,l.asteriskToken,l.name,l.questionToken,l.typeParameters,l.parameters,l.type,l.body):Qhe(l)?jd(l,h,l.parameters,l.body):iJ(l)?sl(l,h,l.name,l.parameters,l.type,l.body):xO(l)?Ee(l,h,l.name,l.parameters,l.body):Xhe(l)?Tn(l,h,l.parameters,l.type):oye(l)?KI(l,h,l.asteriskToken,l.name,l.typeParameters,l.parameters,l.type,l.body):iye(l)?GI(l,h,l.typeParameters,l.parameters,l.type,l.equalsGreaterThanToken,l.body):aJ(l)?Nb(l,h,l.name,l.typeParameters,l.heritageClauses,l.members):IO(l)?dw(l,h,l.declarationList):cye(l)?Vb(l,h,l.asteriskToken,l.name,l.typeParameters,l.parameters,l.type,l.body):EO(l)?JS(l,h,l.name,l.typeParameters,l.heritageClauses,l.members):zJ(l)?Rw(l,h,l.name,l.typeParameters,l.heritageClauses,l.members):lye(l)?dp(l,h,l.name,l.typeParameters,l.type):not(l)?_p(l,h,l.name,l.members):XD(l)?ti(l,h,l.name,l.body):uye(l)?qw(l,h,l.isTypeOnly,l.name,l.moduleReference):pye(l)?zw(l,h,l.importClause,l.moduleSpecifier,l.attributes):dye(l)?dy(l,h,l.expression):_ye(l)?tk(l,h,l.isTypeOnly,l.exportClause,l.moduleSpecifier,l.attributes):pe.assertNever(l)}function Ec(l,_){return vO(l)?iu(l,_,l.dotDotDotToken,l.name,l.questionToken,l.type,l.initializer):bO(l)?oe(l,_,l.name,l.questionToken??l.exclamationToken,l.type,l.initializer):oJ(l)?Wr(l,_,l.asteriskToken,l.name,l.questionToken,l.typeParameters,l.parameters,l.type,l.body):iJ(l)?sl(l,_,l.name,l.parameters,l.type,l.body):xO(l)?Ee(l,_,l.name,l.parameters,l.body):aJ(l)?Nb(l,_,l.name,l.typeParameters,l.heritageClauses,l.members):EO(l)?JS(l,_,l.name,l.typeParameters,l.heritageClauses,l.members):pe.assertNever(l)}function Zd(l,_){switch(l.kind){case 178:return sl(l,l.modifiers,_,l.parameters,l.type,l.body);case 179:return Ee(l,l.modifiers,_,l.parameters,l.body);case 175:return Wr(l,l.modifiers,l.asteriskToken,_,l.questionToken,l.typeParameters,l.parameters,l.type,l.body);case 174:return et(l,l.modifiers,_,l.questionToken,l.typeParameters,l.parameters,l.type);case 173:return oe(l,l.modifiers,_,l.questionToken??l.exclamationToken,l.type,l.initializer);case 172:return al(l,l.modifiers,_,l.questionToken,l.type);case 304:return ux(l,_,l.initializer)}}function Kt(l){return l?I(l):void 0}function Dn(l){return typeof l=="string"?xe(l):l}function hp(l){return typeof l=="string"?U(l):typeof l=="number"?O(l):typeof l=="boolean"?l?Ct():Zr():l}function xy(l){return l&&n().parenthesizeExpressionForDisallowedComma(l)}function G8(l){return typeof l=="number"?pt(l):l}function dl(l){return l&&iot(l)?Fs(r(_w(),l),l):l}function zs(l){return typeof l=="string"||l&&!sye(l)?zS(l,void 0,void 0,void 0):l}function se(l,_){return l!==_&&(r(l,_),Fs(l,_)),l}}function iO(e){switch(e){case 345:return"type";case 343:return"returns";case 344:return"this";case 341:return"enum";case 331:return"author";case 333:return"class";case 334:return"public";case 335:return"private";case 336:return"protected";case 337:return"readonly";case 338:return"override";case 346:return"template";case 347:return"typedef";case 342:return"param";case 349:return"prop";case 339:return"callback";case 340:return"overload";case 329:return"augments";case 330:return"implements";case 352:return"import";default:return pe.fail(`Unsupported kind: ${pe.formatSyntaxKind(e)}`)}}var ac,tme={};function lnt(e,t){switch(ac||(ac=AJ(99,!1,0)),e){case 15:ac.setText("`"+t+"`");break;case 16:ac.setText("`"+t+"${");break;case 17:ac.setText("}"+t+"${");break;case 18:ac.setText("}"+t+"`");break}let r=ac.scan();if(r===20&&(r=ac.reScanTemplateToken(!1)),ac.isUnterminated())return ac.setText(void 0),tme;let n;switch(r){case 15:case 16:case 17:case 18:n=ac.getTokenValue();break}return n===void 0||ac.scan()!==1?(ac.setText(void 0),tme):(ac.setText(void 0),n)}function Uc(e){return e&&kn(e)?p1(e):fe(e)}function p1(e){return fe(e)&-67108865}function unt(e,t){return t|e.transformFlags&134234112}function fe(e){if(!e)return 0;let t=e.transformFlags&~pnt(e.kind);return zet(e)&&whe(e.name)?unt(e.name,t):t}function Pt(e){return e?e.transformFlags:0}function rme(e){let t=0;for(let r of e)t|=fe(r);e.transformFlags=t}function pnt(e){if(e>=183&&e<=206)return-2;switch(e){case 214:case 215:case 210:return-2147450880;case 268:return-1941676032;case 170:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112;case 207:case 208:return-2147450880;case 217:case 239:case 235:case 356:case 218:case 108:return-2147483648;case 212:case 213:return-2147483648;default:return-2147483648}}var PD=ant();function OD(e){return e.flags|=16,e}var dnt={createBaseSourceFileNode:e=>OD(PD.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>OD(PD.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>OD(PD.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>OD(PD.createBaseTokenNode(e)),createBaseNode:e=>OD(PD.createBaseNode(e))},Mjt=BJ(4,dnt);function _nt(e,t){if(e.original!==t&&(e.original=t,t)){let r=t.emitNode;r&&(e.emitNode=fnt(r,e.emitNode))}return e}function fnt(e,t){let{flags:r,internalFlags:n,leadingComments:o,trailingComments:i,commentRange:a,sourceMapRange:s,tokenSourceMapRanges:c,constantValue:p,helpers:d,startsOnNewLine:f,snippetElement:m,classThis:y,assignedName:g}=e;if(t||(t={}),r&&(t.flags=r),n&&(t.internalFlags=n&-9),o&&(t.leadingComments=lc(o.slice(),t.leadingComments)),i&&(t.trailingComments=lc(i.slice(),t.trailingComments)),a&&(t.commentRange=a),s&&(t.sourceMapRange=s),c&&(t.tokenSourceMapRanges=mnt(c,t.tokenSourceMapRanges)),p!==void 0&&(t.constantValue=p),d)for(let S of d)t.helpers=NYe(t.helpers,S);return f!==void 0&&(t.startsOnNewLine=f),m!==void 0&&(t.snippetElement=m),y&&(t.classThis=y),g&&(t.assignedName=g),t}function mnt(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}function T1(e){return e.kind===9}function hnt(e){return e.kind===10}function b1(e){return e.kind===11}function ynt(e){return e.kind===15}function gnt(e){return e.kind===28}function nme(e){return e.kind===54}function ome(e){return e.kind===58}function kn(e){return e.kind===80}function zg(e){return e.kind===81}function Snt(e){return e.kind===95}function aO(e){return e.kind===134}function jz(e){return e.kind===108}function vnt(e){return e.kind===102}function bnt(e){return e.kind===167}function Zhe(e){return e.kind===168}function Whe(e){return e.kind===169}function vO(e){return e.kind===170}function qJ(e){return e.kind===171}function xnt(e){return e.kind===172}function bO(e){return e.kind===173}function Ent(e){return e.kind===174}function oJ(e){return e.kind===175}function Qhe(e){return e.kind===177}function iJ(e){return e.kind===178}function xO(e){return e.kind===179}function Tnt(e){return e.kind===180}function Dnt(e){return e.kind===181}function Xhe(e){return e.kind===182}function Ant(e){return e.kind===183}function Yhe(e){return e.kind===184}function eye(e){return e.kind===185}function tye(e){return e.kind===186}function Int(e){return e.kind===187}function wnt(e){return e.kind===188}function knt(e){return e.kind===189}function Cnt(e){return e.kind===190}function Pnt(e){return e.kind===203}function Ont(e){return e.kind===191}function Nnt(e){return e.kind===192}function Fnt(e){return e.kind===193}function Rnt(e){return e.kind===194}function Lnt(e){return e.kind===195}function $nt(e){return e.kind===196}function Mnt(e){return e.kind===197}function jnt(e){return e.kind===198}function Bnt(e){return e.kind===199}function qnt(e){return e.kind===200}function Unt(e){return e.kind===201}function znt(e){return e.kind===202}function Jnt(e){return e.kind===206}function Vnt(e){return e.kind===209}function Knt(e){return e.kind===210}function rye(e){return e.kind===211}function nf(e){return e.kind===212}function tA(e){return e.kind===213}function nye(e){return e.kind===214}function Gnt(e){return e.kind===216}function UJ(e){return e.kind===218}function oye(e){return e.kind===219}function iye(e){return e.kind===220}function Hnt(e){return e.kind===223}function Znt(e){return e.kind===225}function E1(e){return e.kind===227}function Wnt(e){return e.kind===231}function aJ(e){return e.kind===232}function Qnt(e){return e.kind===233}function Xnt(e){return e.kind===234}function uO(e){return e.kind===236}function Ynt(e){return e.kind===237}function eot(e){return e.kind===357}function IO(e){return e.kind===244}function aye(e){return e.kind===245}function tot(e){return e.kind===257}function sye(e){return e.kind===261}function rot(e){return e.kind===262}function cye(e){return e.kind===263}function EO(e){return e.kind===264}function zJ(e){return e.kind===265}function lye(e){return e.kind===266}function not(e){return e.kind===267}function XD(e){return e.kind===268}function uye(e){return e.kind===272}function pye(e){return e.kind===273}function dye(e){return e.kind===278}function _ye(e){return e.kind===279}function oot(e){return e.kind===280}function iot(e){return e.kind===354}function fye(e){return e.kind===284}function ime(e){return e.kind===287}function aot(e){return e.kind===290}function mye(e){return e.kind===296}function sot(e){return e.kind===298}function cot(e){return e.kind===304}function lot(e){return e.kind===308}function uot(e){return e.kind===310}function pot(e){return e.kind===315}function dot(e){return e.kind===318}function hye(e){return e.kind===321}function _ot(e){return e.kind===323}function yye(e){return e.kind===324}function fot(e){return e.kind===329}function mot(e){return e.kind===334}function hot(e){return e.kind===335}function yot(e){return e.kind===336}function got(e){return e.kind===337}function Sot(e){return e.kind===338}function vot(e){return e.kind===340}function bot(e){return e.kind===332}function ame(e){return e.kind===342}function xot(e){return e.kind===343}function JJ(e){return e.kind===345}function Eot(e){return e.kind===346}function Tot(e){return e.kind===330}function Dot(e){return e.kind===351}var qg=new WeakMap;function gye(e,t){var r;let n=e.kind;return CJ(n)?n===353?e._children:(r=qg.get(t))==null?void 0:r.get(e):ii}function Aot(e,t,r){e.kind===353&&pe.fail("Should not need to re-set the children of a SyntaxList.");let n=qg.get(t);return n===void 0&&(n=new WeakMap,qg.set(t,n)),n.set(e,r),r}function sme(e,t){var r;e.kind===353&&pe.fail("Did not expect to unset the children of a SyntaxList."),(r=qg.get(t))==null||r.delete(e)}function Iot(e,t){let r=qg.get(e);r!==void 0&&(qg.delete(e),qg.set(t,r))}function cme(e){return(v1(e)&32768)!==0}function wot(e){return b1(e.expression)&&e.expression.text==="use strict"}function kot(e){for(let t of e)if(lO(t)){if(wot(t))return t}else break}function Cot(e){return UJ(e)&&Jg(e)&&!!itt(e)}function Sye(e,t=63){switch(e.kind){case 218:return t&-2147483648&&Cot(e)?!1:(t&1)!==0;case 217:case 235:return(t&2)!==0;case 239:return(t&34)!==0;case 234:return(t&16)!==0;case 236:return(t&4)!==0;case 356:return(t&8)!==0}return!1}function VJ(e,t=63){for(;Sye(e,t);)e=e.expression;return e}function Pot(e){return setStartsOnNewLine(e,!0)}function BD(e){if(Ttt(e))return e.name;if(vtt(e)){switch(e.kind){case 304:return BD(e.initializer);case 305:return e.name;case 306:return BD(e.expression)}return}return SO(e,!0)?BD(e.left):Wnt(e)?BD(e.expression):e}function Oot(e){switch(e.kind){case 207:case 208:case 210:return e.elements;case 211:return e.properties}}function lme(e){if(e){let t=e;for(;;){if(kn(t)||!t.body)return kn(t)?t:t.name;t=t.body}}}var ume;(e=>{function t(d,f,m,y,g,S,b){let E=f>0?g[f-1]:void 0;return pe.assertEqual(m[f],t),g[f]=d.onEnter(y[f],E,b),m[f]=s(d,t),f}e.enter=t;function r(d,f,m,y,g,S,b){pe.assertEqual(m[f],r),pe.assertIsDefined(d.onLeft),m[f]=s(d,r);let E=d.onLeft(y[f].left,g[f],y[f]);return E?(p(f,y,E),c(f,m,y,g,E)):f}e.left=r;function n(d,f,m,y,g,S,b){return pe.assertEqual(m[f],n),pe.assertIsDefined(d.onOperator),m[f]=s(d,n),d.onOperator(y[f].operatorToken,g[f],y[f]),f}e.operator=n;function o(d,f,m,y,g,S,b){pe.assertEqual(m[f],o),pe.assertIsDefined(d.onRight),m[f]=s(d,o);let E=d.onRight(y[f].right,g[f],y[f]);return E?(p(f,y,E),c(f,m,y,g,E)):f}e.right=o;function i(d,f,m,y,g,S,b){pe.assertEqual(m[f],i),m[f]=s(d,i);let E=d.onExit(y[f],g[f]);if(f>0){if(f--,d.foldState){let I=m[f]===i?"right":"left";g[f]=d.foldState(g[f],E,I)}}else S.value=E;return f}e.exit=i;function a(d,f,m,y,g,S,b){return pe.assertEqual(m[f],a),f}e.done=a;function s(d,f){switch(f){case t:if(d.onLeft)return r;case r:if(d.onOperator)return n;case n:if(d.onRight)return o;case o:return i;case i:return a;case a:return a;default:pe.fail("Invalid state")}}e.nextState=s;function c(d,f,m,y,g){return d++,f[d]=t,m[d]=g,y[d]=void 0,d}function p(d,f,m){if(pe.shouldAssert(2))for(;d>=0;)pe.assert(f[d]!==m,"Circular traversal detected."),d--}})(ume||(ume={}));function pme(e,t){return typeof e=="object"?sJ(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function Not(e,t){return typeof e=="string"?e:Fot(e,pe.checkDefined(t))}function Fot(e,t){return Ihe(e)?t(e).slice(1):m1(e)?t(e):zg(e)?e.escapedText.slice(1):uc(e)}function sJ(e,t,r,n,o){return t=pme(t,o),n=pme(n,o),r=Not(r,o),`${e?"#":""}${t}${r}${n}`}function vye(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of Oot(e)){let r=BD(t);if(r&&Ett(r)&&(r.transformFlags&65536||r.transformFlags&128&&vye(r)))return!0}return!1}function Fs(e,t){return t?ch(e,t.pos,t.end):e}function KJ(e){let t=e.kind;return t===169||t===170||t===172||t===173||t===174||t===175||t===177||t===178||t===179||t===182||t===186||t===219||t===220||t===232||t===244||t===263||t===264||t===265||t===266||t===267||t===268||t===272||t===273||t===278||t===279}function Rot(e){let t=e.kind;return t===170||t===173||t===175||t===178||t===179||t===232||t===264}var dme,_me,fme,mme,hme,Lot={createBaseSourceFileNode:e=>new(hme||(hme=oi.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(fme||(fme=oi.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(mme||(mme=oi.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(_me||(_me=oi.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(dme||(dme=oi.getNodeConstructor()))(e,-1,-1)},jjt=BJ(1,Lot);function q(e,t){return t&&e(t)}function je(e,t,r){if(r){if(t)return t(r);for(let n of r){let o=e(n);if(o)return o}}}function $ot(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function Mot(e){return Vc(e.statements,jot)||Bot(e)}function jot(e){return KJ(e)&&qot(e,95)||uye(e)&&fye(e.moduleReference)||pye(e)||dye(e)||_ye(e)?e:void 0}function Bot(e){return e.flags&8388608?bye(e):void 0}function bye(e){return Uot(e)?e:La(e,bye)}function qot(e,t){return Ra(e.modifiers,r=>r.kind===t)}function Uot(e){return Ynt(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var zot={167:function(e,t,r){return q(t,e.left)||q(t,e.right)},169:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.constraint)||q(t,e.default)||q(t,e.expression)},305:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.questionToken)||q(t,e.exclamationToken)||q(t,e.equalsToken)||q(t,e.objectAssignmentInitializer)},306:function(e,t,r){return q(t,e.expression)},170:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.dotDotDotToken)||q(t,e.name)||q(t,e.questionToken)||q(t,e.type)||q(t,e.initializer)},173:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.questionToken)||q(t,e.exclamationToken)||q(t,e.type)||q(t,e.initializer)},172:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.questionToken)||q(t,e.type)||q(t,e.initializer)},304:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.questionToken)||q(t,e.exclamationToken)||q(t,e.initializer)},261:function(e,t,r){return q(t,e.name)||q(t,e.exclamationToken)||q(t,e.type)||q(t,e.initializer)},209:function(e,t,r){return q(t,e.dotDotDotToken)||q(t,e.propertyName)||q(t,e.name)||q(t,e.initializer)},182:function(e,t,r){return je(t,r,e.modifiers)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)},186:function(e,t,r){return je(t,r,e.modifiers)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)},185:function(e,t,r){return je(t,r,e.modifiers)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)},180:yme,181:yme,175:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.asteriskToken)||q(t,e.name)||q(t,e.questionToken)||q(t,e.exclamationToken)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.body)},174:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.questionToken)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)},177:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.body)},178:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.body)},179:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.body)},263:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.asteriskToken)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.body)},219:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.asteriskToken)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.body)},220:function(e,t,r){return je(t,r,e.modifiers)||je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)||q(t,e.equalsGreaterThanToken)||q(t,e.body)},176:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.body)},184:function(e,t,r){return q(t,e.typeName)||je(t,r,e.typeArguments)},183:function(e,t,r){return q(t,e.assertsModifier)||q(t,e.parameterName)||q(t,e.type)},187:function(e,t,r){return q(t,e.exprName)||je(t,r,e.typeArguments)},188:function(e,t,r){return je(t,r,e.members)},189:function(e,t,r){return q(t,e.elementType)},190:function(e,t,r){return je(t,r,e.elements)},193:gme,194:gme,195:function(e,t,r){return q(t,e.checkType)||q(t,e.extendsType)||q(t,e.trueType)||q(t,e.falseType)},196:function(e,t,r){return q(t,e.typeParameter)},206:function(e,t,r){return q(t,e.argument)||q(t,e.attributes)||q(t,e.qualifier)||je(t,r,e.typeArguments)},303:function(e,t,r){return q(t,e.assertClause)},197:Sme,199:Sme,200:function(e,t,r){return q(t,e.objectType)||q(t,e.indexType)},201:function(e,t,r){return q(t,e.readonlyToken)||q(t,e.typeParameter)||q(t,e.nameType)||q(t,e.questionToken)||q(t,e.type)||je(t,r,e.members)},202:function(e,t,r){return q(t,e.literal)},203:function(e,t,r){return q(t,e.dotDotDotToken)||q(t,e.name)||q(t,e.questionToken)||q(t,e.type)},207:vme,208:vme,210:function(e,t,r){return je(t,r,e.elements)},211:function(e,t,r){return je(t,r,e.properties)},212:function(e,t,r){return q(t,e.expression)||q(t,e.questionDotToken)||q(t,e.name)},213:function(e,t,r){return q(t,e.expression)||q(t,e.questionDotToken)||q(t,e.argumentExpression)},214:bme,215:bme,216:function(e,t,r){return q(t,e.tag)||q(t,e.questionDotToken)||je(t,r,e.typeArguments)||q(t,e.template)},217:function(e,t,r){return q(t,e.type)||q(t,e.expression)},218:function(e,t,r){return q(t,e.expression)},221:function(e,t,r){return q(t,e.expression)},222:function(e,t,r){return q(t,e.expression)},223:function(e,t,r){return q(t,e.expression)},225:function(e,t,r){return q(t,e.operand)},230:function(e,t,r){return q(t,e.asteriskToken)||q(t,e.expression)},224:function(e,t,r){return q(t,e.expression)},226:function(e,t,r){return q(t,e.operand)},227:function(e,t,r){return q(t,e.left)||q(t,e.operatorToken)||q(t,e.right)},235:function(e,t,r){return q(t,e.expression)||q(t,e.type)},236:function(e,t,r){return q(t,e.expression)},239:function(e,t,r){return q(t,e.expression)||q(t,e.type)},237:function(e,t,r){return q(t,e.name)},228:function(e,t,r){return q(t,e.condition)||q(t,e.questionToken)||q(t,e.whenTrue)||q(t,e.colonToken)||q(t,e.whenFalse)},231:function(e,t,r){return q(t,e.expression)},242:xme,269:xme,308:function(e,t,r){return je(t,r,e.statements)||q(t,e.endOfFileToken)},244:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.declarationList)},262:function(e,t,r){return je(t,r,e.declarations)},245:function(e,t,r){return q(t,e.expression)},246:function(e,t,r){return q(t,e.expression)||q(t,e.thenStatement)||q(t,e.elseStatement)},247:function(e,t,r){return q(t,e.statement)||q(t,e.expression)},248:function(e,t,r){return q(t,e.expression)||q(t,e.statement)},249:function(e,t,r){return q(t,e.initializer)||q(t,e.condition)||q(t,e.incrementor)||q(t,e.statement)},250:function(e,t,r){return q(t,e.initializer)||q(t,e.expression)||q(t,e.statement)},251:function(e,t,r){return q(t,e.awaitModifier)||q(t,e.initializer)||q(t,e.expression)||q(t,e.statement)},252:Eme,253:Eme,254:function(e,t,r){return q(t,e.expression)},255:function(e,t,r){return q(t,e.expression)||q(t,e.statement)},256:function(e,t,r){return q(t,e.expression)||q(t,e.caseBlock)},270:function(e,t,r){return je(t,r,e.clauses)},297:function(e,t,r){return q(t,e.expression)||je(t,r,e.statements)},298:function(e,t,r){return je(t,r,e.statements)},257:function(e,t,r){return q(t,e.label)||q(t,e.statement)},258:function(e,t,r){return q(t,e.expression)},259:function(e,t,r){return q(t,e.tryBlock)||q(t,e.catchClause)||q(t,e.finallyBlock)},300:function(e,t,r){return q(t,e.variableDeclaration)||q(t,e.block)},171:function(e,t,r){return q(t,e.expression)},264:Tme,232:Tme,265:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.heritageClauses)||je(t,r,e.members)},266:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.typeParameters)||q(t,e.type)},267:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.members)},307:function(e,t,r){return q(t,e.name)||q(t,e.initializer)},268:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.body)},272:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||q(t,e.moduleReference)},273:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.importClause)||q(t,e.moduleSpecifier)||q(t,e.attributes)},274:function(e,t,r){return q(t,e.name)||q(t,e.namedBindings)},301:function(e,t,r){return je(t,r,e.elements)},302:function(e,t,r){return q(t,e.name)||q(t,e.value)},271:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)},275:function(e,t,r){return q(t,e.name)},281:function(e,t,r){return q(t,e.name)},276:Dme,280:Dme,279:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.exportClause)||q(t,e.moduleSpecifier)||q(t,e.attributes)},277:Ame,282:Ame,278:function(e,t,r){return je(t,r,e.modifiers)||q(t,e.expression)},229:function(e,t,r){return q(t,e.head)||je(t,r,e.templateSpans)},240:function(e,t,r){return q(t,e.expression)||q(t,e.literal)},204:function(e,t,r){return q(t,e.head)||je(t,r,e.templateSpans)},205:function(e,t,r){return q(t,e.type)||q(t,e.literal)},168:function(e,t,r){return q(t,e.expression)},299:function(e,t,r){return je(t,r,e.types)},234:function(e,t,r){return q(t,e.expression)||je(t,r,e.typeArguments)},284:function(e,t,r){return q(t,e.expression)},283:function(e,t,r){return je(t,r,e.modifiers)},357:function(e,t,r){return je(t,r,e.elements)},285:function(e,t,r){return q(t,e.openingElement)||je(t,r,e.children)||q(t,e.closingElement)},289:function(e,t,r){return q(t,e.openingFragment)||je(t,r,e.children)||q(t,e.closingFragment)},286:Ime,287:Ime,293:function(e,t,r){return je(t,r,e.properties)},292:function(e,t,r){return q(t,e.name)||q(t,e.initializer)},294:function(e,t,r){return q(t,e.expression)},295:function(e,t,r){return q(t,e.dotDotDotToken)||q(t,e.expression)},288:function(e,t,r){return q(t,e.tagName)},296:function(e,t,r){return q(t,e.namespace)||q(t,e.name)},191:Ng,192:Ng,310:Ng,316:Ng,315:Ng,317:Ng,319:Ng,318:function(e,t,r){return je(t,r,e.parameters)||q(t,e.type)},321:function(e,t,r){return(typeof e.comment=="string"?void 0:je(t,r,e.comment))||je(t,r,e.tags)},348:function(e,t,r){return q(t,e.tagName)||q(t,e.name)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))},311:function(e,t,r){return q(t,e.name)},312:function(e,t,r){return q(t,e.left)||q(t,e.right)},342:wme,349:wme,331:function(e,t,r){return q(t,e.tagName)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))},330:function(e,t,r){return q(t,e.tagName)||q(t,e.class)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))},329:function(e,t,r){return q(t,e.tagName)||q(t,e.class)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))},346:function(e,t,r){return q(t,e.tagName)||q(t,e.constraint)||je(t,r,e.typeParameters)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))},347:function(e,t,r){return q(t,e.tagName)||(e.typeExpression&&e.typeExpression.kind===310?q(t,e.typeExpression)||q(t,e.fullName)||(typeof e.comment=="string"?void 0:je(t,r,e.comment)):q(t,e.fullName)||q(t,e.typeExpression)||(typeof e.comment=="string"?void 0:je(t,r,e.comment)))},339:function(e,t,r){return q(t,e.tagName)||q(t,e.fullName)||q(t,e.typeExpression)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))},343:Fg,345:Fg,344:Fg,341:Fg,351:Fg,350:Fg,340:Fg,324:function(e,t,r){return Vc(e.typeParameters,t)||Vc(e.parameters,t)||q(t,e.type)},325:Bz,326:Bz,327:Bz,323:function(e,t,r){return Vc(e.jsDocPropertyTags,t)},328:th,333:th,334:th,335:th,336:th,337:th,332:th,338:th,352:Jot,356:Vot};function yme(e,t,r){return je(t,r,e.typeParameters)||je(t,r,e.parameters)||q(t,e.type)}function gme(e,t,r){return je(t,r,e.types)}function Sme(e,t,r){return q(t,e.type)}function vme(e,t,r){return je(t,r,e.elements)}function bme(e,t,r){return q(t,e.expression)||q(t,e.questionDotToken)||je(t,r,e.typeArguments)||je(t,r,e.arguments)}function xme(e,t,r){return je(t,r,e.statements)}function Eme(e,t,r){return q(t,e.label)}function Tme(e,t,r){return je(t,r,e.modifiers)||q(t,e.name)||je(t,r,e.typeParameters)||je(t,r,e.heritageClauses)||je(t,r,e.members)}function Dme(e,t,r){return je(t,r,e.elements)}function Ame(e,t,r){return q(t,e.propertyName)||q(t,e.name)}function Ime(e,t,r){return q(t,e.tagName)||je(t,r,e.typeArguments)||q(t,e.attributes)}function Ng(e,t,r){return q(t,e.type)}function wme(e,t,r){return q(t,e.tagName)||(e.isNameFirst?q(t,e.name)||q(t,e.typeExpression):q(t,e.typeExpression)||q(t,e.name))||(typeof e.comment=="string"?void 0:je(t,r,e.comment))}function Fg(e,t,r){return q(t,e.tagName)||q(t,e.typeExpression)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))}function Bz(e,t,r){return q(t,e.name)}function th(e,t,r){return q(t,e.tagName)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))}function Jot(e,t,r){return q(t,e.tagName)||q(t,e.importClause)||q(t,e.moduleSpecifier)||q(t,e.attributes)||(typeof e.comment=="string"?void 0:je(t,r,e.comment))}function Vot(e,t,r){return q(t,e.expression)}function La(e,t,r){if(e===void 0||e.kind<=166)return;let n=zot[e.kind];return n===void 0?void 0:n(e,t,r)}function kme(e,t,r){let n=Cme(e),o=[];for(;o.length=0;--s)n.push(i[s]),o.push(a)}else{let s=t(i,a);if(s){if(s==="skip")continue;return s}if(i.kind>=167)for(let c of Cme(i))n.push(c),o.push(i)}}}function Cme(e){let t=[];return La(e,r,r),t;function r(n){t.unshift(n)}}function xye(e){e.externalModuleIndicator=Mot(e)}function Kot(e,t,r,n=!1,o){var i,a;(i=sO)==null||i.push(sO.Phase.Parse,"createSourceFile",{path:e},!0),Ofe("beforeParse");let s,{languageVersion:c,setExternalModuleIndicator:p,impliedNodeFormat:d,jsDocParsingMode:f}=typeof r=="object"?r:{languageVersion:r};if(c===100)s=Ug.parseSourceFile(e,t,c,void 0,n,6,x1,f);else{let m=d===void 0?p:y=>(y.impliedNodeFormat=d,(p||xye)(y));s=Ug.parseSourceFile(e,t,c,void 0,n,o,m,f)}return Ofe("afterParse"),eet("Parse","beforeParse","afterParse"),(a=sO)==null||a.pop(),s}function Got(e){return e.externalModuleIndicator!==void 0}function Hot(e,t,r,n=!1){let o=TO.updateSourceFile(e,t,r,n);return o.flags|=e.flags&12582912,o}var Ug;(e=>{var t=AJ(99,!0),r=40960,n,o,i,a,s;function c(v){return Zr++,v}var p={createBaseSourceFileNode:v=>c(new s(v,0,0)),createBaseIdentifierNode:v=>c(new i(v,0,0)),createBasePrivateIdentifierNode:v=>c(new a(v,0,0)),createBaseTokenNode:v=>c(new o(v,0,0)),createBaseNode:v=>c(new n(v,0,0))},d=BJ(11,p),{createNodeArray:f,createNumericLiteral:m,createStringLiteral:y,createLiteralLikeNode:g,createIdentifier:S,createPrivateIdentifier:b,createToken:E,createArrayLiteralExpression:I,createObjectLiteralExpression:T,createPropertyAccessExpression:k,createPropertyAccessChain:F,createElementAccessExpression:O,createElementAccessChain:$,createCallExpression:N,createCallChain:U,createNewExpression:ge,createParenthesizedExpression:Te,createBlock:ke,createVariableStatement:Je,createExpressionStatement:me,createIfStatement:xe,createWhileStatement:Rt,createForStatement:Jt,createForOfStatement:Yt,createVariableDeclaration:vt,createVariableDeclarationList:Fr}=d,le,K,ae,he,Oe,pt,Ye,lt,Nt,Ct,Zr,wt,fo,nn,Gn,bt,Hn=!0,Di=!1;function Ga(v,A,P,R,M=!1,ee,be,Ue=0){var Ce;if(ee=Grt(v,ee),ee===6){let He=iu(v,A,P,R,M);return convertToJson(He,(Ce=He.statements[0])==null?void 0:Ce.expression,He.parseDiagnostics,!1,void 0),He.referencedFiles=ii,He.typeReferenceDirectives=ii,He.libReferenceDirectives=ii,He.amdDependencies=ii,He.hasNoDefaultLib=!1,He.pragmas=AYe,He}ol(v,A,P,R,ee,Ue);let De=Md(P,M,ee,be||xye,Ue);return il(),De}e.parseSourceFile=Ga;function ji(v,A){ol("",v,A,void 0,1,0),ce();let P=Jd(!0),R=D()===1&&!Ye.length;return il(),R?P:void 0}e.parseIsolatedEntityName=ji;function iu(v,A,P=2,R,M=!1){ol(v,A,P,R,6,0),K=bt,ce();let ee=re(),be,Ue;if(D()===1)be=ui([],ee,ee),Ue=la();else{let He;for(;D()!==1;){let jt;switch(D()){case 23:jt=dk();break;case 112:case 97:case 106:jt=la();break;case 41:ye(()=>ce()===9&&ce()!==59)?jt=Ww():jt=rx();break;case 9:case 11:if(ye(()=>ce()!==59)){jt=ul();break}default:jt=rx();break}He&&rf(He)?He.push(jt):He?He=[He,jt]:(He=jt,D()!==1&&Ft(G.Unexpected_token))}let mr=rf(He)?X(I(He),ee):pe.checkDefined(He),nr=me(mr);X(nr,ee),be=ui([nr],ee),Ue=ll(1,G.Unexpected_token)}let Ce=qe(v,2,6,!1,be,Ue,K,x1);M&&oe(Ce),Ce.nodeCount=Zr,Ce.identifierCount=fo,Ce.identifiers=wt,Ce.parseDiagnostics=Og(Ye,Ce),lt&&(Ce.jsDocDiagnostics=Og(lt,Ce));let De=Ce;return il(),De}e.parseJsonText=iu;function ol(v,A,P,R,M,ee){switch(n=oi.getNodeConstructor(),o=oi.getTokenConstructor(),i=oi.getIdentifierConstructor(),a=oi.getPrivateIdentifierConstructor(),s=oi.getSourceFileConstructor(),le=pet(v),ae=A,he=P,Nt=R,Oe=M,pt=Xfe(M),Ye=[],nn=0,wt=new Map,fo=0,Zr=0,K=0,Hn=!0,Oe){case 1:case 2:bt=524288;break;case 6:bt=134742016;break;default:bt=0;break}Di=!1,t.setText(ae),t.setOnError(Of),t.setScriptTarget(he),t.setLanguageVariant(pt),t.setScriptKind(Oe),t.setJSDocParsingMode(ee)}function il(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),ae=void 0,he=void 0,Nt=void 0,Oe=void 0,pt=void 0,K=0,Ye=void 0,lt=void 0,nn=0,wt=void 0,Gn=void 0,Hn=!0}function Md(v,A,P,R,M){let ee=Qot(le);ee&&(bt|=33554432),K=bt,ce();let be=qs(0,pa);pe.assert(D()===1);let Ue=fr(),Ce=Vt(la(),Ue),De=qe(le,v,P,ee,be,Ce,K,R);return eit(De,ae),tit(De,He),De.commentDirectives=t.getCommentDirectives(),De.nodeCount=Zr,De.identifierCount=fo,De.identifiers=wt,De.parseDiagnostics=Og(Ye,De),De.jsDocParsingMode=M,lt&&(De.jsDocDiagnostics=Og(lt,De)),A&&oe(De),De;function He(mr,nr,jt){Ye.push(i1(le,ae,mr,nr,jt))}}let al=!1;function Vt(v,A){if(!A)return v;pe.assert(!v.jsDoc);let P=CYe(ztt(v,ae),R=>iC.parseJSDocComment(v,R.pos,R.end-R.pos));return P.length&&(v.jsDoc=P),al&&(al=!1,v.flags|=536870912),v}function lp(v){let A=Nt,P=TO.createSyntaxCursor(v);Nt={currentNode:He};let R=[],M=Ye;Ye=[];let ee=0,be=Ce(v.statements,0);for(;be!==-1;){let mr=v.statements[ee],nr=v.statements[be];lc(R,v.statements,ee,be),ee=De(v.statements,be);let jt=Cz(M,Ai=>Ai.start>=mr.pos),Wa=jt>=0?Cz(M,Ai=>Ai.start>=nr.pos,jt):-1;jt>=0&&lc(Ye,M,jt,Wa>=0?Wa:void 0),fs(()=>{let Ai=bt;for(bt|=65536,t.resetTokenState(nr.pos),ce();D()!==1;){let uu=t.getTokenFullStart(),pu=Ab(0,pa);if(R.push(pu),uu===t.getTokenFullStart()&&ce(),ee>=0){let Ec=v.statements[ee];if(pu.end===Ec.pos)break;pu.end>Ec.pos&&(ee=De(v.statements,ee+1))}}bt=Ai},2),be=ee>=0?Ce(v.statements,ee):-1}if(ee>=0){let mr=v.statements[ee];lc(R,v.statements,ee);let nr=Cz(M,jt=>jt.start>=mr.pos);nr>=0&&lc(Ye,M,nr)}return Nt=A,d.updateSourceFile(v,Fs(f(R),v.statements));function Ue(mr){return!(mr.flags&65536)&&!!(mr.transformFlags&67108864)}function Ce(mr,nr){for(let jt=nr;jt118}function ht(){return D()===80?!0:D()===127&&kt()||D()===135&&$r()?!1:D()>118}function ie(v,A,P=!0){return D()===v?(P&&ce(),!0):(A?Ft(A):Ft(G._0_expected,io(v)),!1)}let To=Object.keys(EJ).filter(v=>v.length>2);function zo(v){if(Gnt(v)){Zn(dd(ae,v.template.pos),v.template.end,G.Module_declaration_names_may_only_use_or_quoted_strings);return}let A=kn(v)?uc(v):void 0;if(!A||!Fet(A,he)){Ft(G._0_expected,io(27));return}let P=dd(ae,v.pos);switch(A){case"const":case"let":case"var":Zn(P,v.end,G.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Bi(G.Interface_name_cannot_be_0,G.Interface_must_be_given_a_name,19);return;case"is":Zn(P,t.getTokenStart(),G.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Bi(G.Namespace_name_cannot_be_0,G.Namespace_must_be_given_a_name,19);return;case"type":Bi(G.Type_alias_name_cannot_be_0,G.Type_alias_must_be_given_a_name,64);return}let R=LD(A,To,Bo)??ms(A);if(R){Zn(P,v.end,G.Unknown_keyword_or_identifier_Did_you_mean_0,R);return}D()!==0&&Zn(P,v.end,G.Unexpected_keyword_or_identifier)}function Bi(v,A,P){D()===P?Ft(A):Ft(v,t.getTokenValue())}function ms(v){for(let A of To)if(v.length>A.length+2&&fO(v,A))return`${A} ${v.slice(A.length)}`}function SR(v,A,P){if(D()===60&&!t.hasPrecedingLineBreak()){Ft(G.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(D()===21){Ft(G.Cannot_start_a_function_call_in_a_type_annotation),ce();return}if(A&&!au()){P?Ft(G._0_expected,io(27)):Ft(G.Expected_for_property_initializer);return}if(!NS()){if(P){Ft(G._0_expected,io(27));return}zo(v)}}function FI(v){return D()===v?(vr(),!0):(pe.assert(Fz(v)),Ft(G._0_expected,io(v)),!1)}function Bd(v,A,P,R){if(D()===A){ce();return}let M=Ft(G._0_expected,io(A));P&&M&&nO(M,i1(le,ae,R,1,G.The_parser_expected_to_find_a_1_to_match_the_0_token_here,io(v),io(A)))}function tr(v){return D()===v?(ce(),!0):!1}function mo(v){if(D()===v)return la()}function vR(v){if(D()===v)return xR()}function ll(v,A,P){return mo(v)||ua(v,!1,A||G._0_expected,P||io(v))}function bR(v){return vR(v)||(pe.assert(Fz(v)),ua(v,!1,G._0_expected,io(v)))}function la(){let v=re(),A=D();return ce(),X(E(A),v)}function xR(){let v=re(),A=D();return vr(),X(E(A),v)}function au(){return D()===27?!0:D()===20||D()===1||t.hasPrecedingLineBreak()}function NS(){return au()?(D()===27&&ce(),!0):!1}function ba(){return NS()||ie(27)}function ui(v,A,P,R){let M=f(v,R);return ch(M,A,P??t.getTokenFullStart()),M}function X(v,A,P){return ch(v,A,P??t.getTokenFullStart()),bt&&(v.flags|=bt),Di&&(Di=!1,v.flags|=262144),v}function ua(v,A,P,...R){A?Bs(t.getTokenFullStart(),0,P,...R):P&&Ft(P,...R);let M=re(),ee=v===80?S("",void 0):zfe(v)?d.createTemplateLiteralLikeNode(v,"","",void 0):v===9?m("",void 0):v===11?y("",void 0):v===283?d.createMissingDeclaration():E(v);return X(ee,M)}function qd(v){let A=wt.get(v);return A===void 0&&wt.set(v,A=v),A}function su(v,A,P){if(v){fo++;let Ue=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():re(),Ce=D(),De=qd(t.getTokenValue()),He=t.hasExtendedUnicodeEscape();return Ht(),X(S(De,Ce,He),Ue)}if(D()===81)return Ft(P||G.Private_identifiers_are_not_allowed_outside_class_bodies),su(!0);if(D()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return su(!0);fo++;let R=D()===1,M=t.isReservedWord(),ee=t.getTokenText(),be=M?G.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:G.Identifier_expected;return ua(80,R,A||be,ee)}function xb(v){return su(br(),void 0,v)}function No(v,A){return su(ht(),v,A)}function qi(v){return su(Zo(D()),v)}function Nf(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Ft(G.Unicode_escape_sequence_cannot_appear_here),su(Zo(D()))}function pp(){return Zo(D())||D()===11||D()===9||D()===10}function RI(){return Zo(D())||D()===11}function ER(v){if(D()===11||D()===9||D()===10){let A=ul();return A.text=qd(A.text),A}return v&&D()===23?TR():D()===81?FS():qi()}function Ud(){return ER(!0)}function TR(){let v=re();ie(23);let A=co(ti);return ie(24),X(d.createComputedPropertyName(A),v)}function FS(){let v=re(),A=b(qd(t.getTokenValue()));return ce(),X(A,v)}function Ff(v){return D()===v&&We(LI)}function Eb(){return ce(),t.hasPrecedingLineBreak()?!1:cu()}function LI(){switch(D()){case 87:return ce()===94;case 95:return ce(),D()===90?ye(ay):D()===156?ye(DR):iy();case 90:return ay();case 126:return ce(),cu();case 139:case 153:return ce(),AR();default:return Eb()}}function iy(){return D()===60||D()!==42&&D()!==130&&D()!==19&&cu()}function DR(){return ce(),iy()}function $I(){return Q_(D())&&We(LI)}function cu(){return D()===23||D()===19||D()===42||D()===26||pp()}function AR(){return D()===23||pp()}function ay(){return ce(),D()===86||D()===100||D()===120||D()===60||D()===128&&ye(Dk)||D()===134&&ye(Ak)}function RS(v,A){if($S(v))return!0;switch(v){case 0:case 1:case 3:return!(D()===27&&A)&&Ik();case 2:return D()===84||D()===90;case 4:return ye(_w);case 5:return ye(qk)||D()===27&&!A;case 6:return D()===23||pp();case 12:switch(D()){case 23:case 42:case 26:case 25:return!0;default:return pp()}case 18:return pp();case 9:return D()===23||D()===26||pp();case 24:return RI();case 7:return D()===19?ye(MI):A?ht()&&!Tb():Kb()&&!Tb();case 8:return cx();case 10:return D()===28||D()===26||cx();case 19:return D()===103||D()===87||ht();case 15:switch(D()){case 28:case 25:return!0}case 11:return D()===26||_p();case 16:return qS(!1);case 17:return qS(!0);case 20:case 21:return D()===28||Mf();case 22:return fx();case 23:return D()===161&&ye(Nk)?!1:D()===11?!0:Zo(D());case 13:return Zo(D())||D()===19;case 14:return!0;case 25:return!0;case 26:return pe.fail("ParsingContext.Count used as a context");default:pe.assertNever(v,"Non-exhaustive case in 'isListElement'.")}}function MI(){if(pe.assert(D()===19),ce()===20){let v=ce();return v===28||v===19||v===96||v===119}return!0}function sy(){return ce(),ht()}function IR(){return ce(),Zo(D())}function jI(){return ce(),det(D())}function Tb(){return D()===119||D()===96?ye(BI):!1}function BI(){return ce(),_p()}function cy(){return ce(),Mf()}function LS(v){if(D()===1)return!0;switch(v){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return D()===20;case 3:return D()===20||D()===84||D()===90;case 7:return D()===19||D()===96||D()===119;case 8:return Db();case 19:return D()===32||D()===21||D()===19||D()===96||D()===119;case 11:return D()===22||D()===27;case 15:case 21:case 10:return D()===24;case 17:case 16:case 18:return D()===22||D()===24;case 20:return D()!==28;case 22:return D()===19||D()===20;case 13:return D()===32||D()===44;case 14:return D()===30&&ye($8);default:return!1}}function Db(){return!!(au()||Kw(D())||D()===39)}function qI(){pe.assert(nn,"Missing parsing context");for(let v=0;v<26;v++)if(nn&1<=0)}function Cb(v){return v===6?G.An_enum_member_name_must_be_followed_by_a_or:void 0}function lu(){let v=ui([],re());return v.isMissingList=!0,v}function WI(v){return!!v.isMissingList}function zd(v,A,P,R){if(ie(P)){let M=hs(v,A);return ie(R),M}return lu()}function Jd(v,A){let P=re(),R=v?qi(A):No(A);for(;tr(25)&&D()!==30;)R=X(d.createQualifiedName(R,Rf(v,!1,!0)),P);return R}function wR(v,A){return X(d.createQualifiedName(v,A),v.pos)}function Rf(v,A,P){if(t.hasPrecedingLineBreak()&&Zo(D())&&ye(ox))return ua(80,!0,G.Identifier_expected);if(D()===81){let R=FS();return A?R:ua(80,!0,G.Identifier_expected)}return v?P?qi():Nf():No()}function kR(v){let A=re(),P=[],R;do R=ew(v),P.push(R);while(R.literal.kind===17);return ui(P,A)}function jS(v){let A=re();return X(d.createTemplateExpression(ly(v),kR(v)),A)}function QI(){let v=re();return X(d.createTemplateLiteralType(ly(!1),CR()),v)}function CR(){let v=re(),A=[],P;do P=XI(),A.push(P);while(P.literal.kind===17);return ui(A,v)}function XI(){let v=re();return X(d.createTemplateLiteralTypeSpan(no(),YI(!1)),v)}function YI(v){return D()===20?(mi(v),tw()):ll(18,G._0_expected,io(20))}function ew(v){let A=re();return X(d.createTemplateSpan(co(ti),YI(v)),A)}function ul(){return Lf(D())}function ly(v){!v&&t.getTokenFlags()&26656&&mi(!1);let A=Lf(D());return pe.assert(A.kind===16,"Template head has wrong token kind"),A}function tw(){let v=Lf(D());return pe.assert(v.kind===17||v.kind===18,"Template fragment has wrong token kind"),v}function PR(v){let A=v===15||v===18,P=t.getTokenText();return P.substring(1,P.length-(t.isUnterminated()?0:A?1:2))}function Lf(v){let A=re(),P=zfe(v)?d.createTemplateLiteralLikeNode(v,t.getTokenValue(),PR(v),t.getTokenFlags()&7176):v===9?m(t.getTokenValue(),t.getNumericLiteralFlags()):v===11?y(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):dtt(v)?g(v,t.getTokenValue()):pe.fail();return t.hasExtendedUnicodeEscape()&&(P.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(P.isUnterminated=!0),ce(),X(P,A)}function $f(){return Jd(!0,G.Type_expected)}function rw(){if(!t.hasPrecedingLineBreak()&&ei()===30)return zd(20,no,30,32)}function BS(){let v=re();return X(d.createTypeReferenceNode($f(),rw()),v)}function Pb(v){switch(v.kind){case 184:return Bg(v.typeName);case 185:case 186:{let{parameters:A,type:P}=v;return WI(A)||Pb(P)}case 197:return Pb(v.type);default:return!1}}function OR(v){return ce(),X(d.createTypePredicateNode(void 0,v,no()),v.pos)}function Ob(){let v=re();return ce(),X(d.createThisTypeNode(),v)}function NR(){let v=re();return ce(),X(d.createJSDocAllType(),v)}function nw(){let v=re();return ce(),X(d.createJSDocNonNullableType(zb(),!1),v)}function FR(){let v=re();return ce(),D()===28||D()===20||D()===22||D()===32||D()===64||D()===52?X(d.createJSDocUnknownType(),v):X(d.createJSDocNullableType(no(),!1),v)}function ow(){let v=re(),A=fr();if(We(Qk)){let P=pl(36),R=bc(59,!1);return Vt(X(d.createJSDocFunctionType(P,R),v),A)}return X(d.createTypeReferenceNode(qi(),void 0),v)}function Nb(){let v=re(),A;return(D()===110||D()===105)&&(A=qi(),ie(59)),X(d.createParameterDeclaration(void 0,void 0,A,void 0,Fb(),void 0),v)}function Fb(){t.setSkipJsDocLeadingAsterisks(!0);let v=re();if(tr(144)){let R=d.createJSDocNamepathType(void 0);e:for(;;)switch(D()){case 20:case 1:case 28:case 5:break e;default:vr()}return t.setSkipJsDocLeadingAsterisks(!1),X(R,v)}let A=tr(26),P=JS();return t.setSkipJsDocLeadingAsterisks(!1),A&&(P=X(d.createJSDocVariadicType(P),v)),D()===64?(ce(),X(d.createJSDocOptionalType(P),v)):P}function iw(){let v=re();ie(114);let A=Jd(!0),P=t.hasPrecedingLineBreak()?void 0:YS();return X(d.createTypeQueryNode(A,P),v)}function aw(){let v=re(),A=xc(!1,!0),P=No(),R,M;tr(96)&&(Mf()||!_p()?R=no():M=ek());let ee=tr(64)?no():void 0,be=d.createTypeParameterDeclaration(A,P,R,ee);return be.expression=M,X(be,v)}function ys(){if(D()===30)return zd(19,aw,30,32)}function qS(v){return D()===26||cx()||Q_(D())||D()===60||Mf(!v)}function sw(v){let A=jf(G.Private_identifiers_cannot_be_used_as_parameters);return Mtt(A)===0&&!Ra(v)&&Q_(D())&&ce(),A}function cw(){return br()||D()===23||D()===19}function Rb(v){return Lb(v)}function lw(v){return Lb(v,!1)}function Lb(v,A=!0){let P=re(),R=fr(),M=v?ue(()=>xc(!0)):Ee(()=>xc(!0));if(D()===110){let Ce=d.createParameterDeclaration(M,void 0,su(!0),void 0,dp(),void 0),De=gJ(M);return De&&_s(De,G.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Vt(X(Ce,P),R)}let ee=Hn;Hn=!1;let be=mo(26);if(!A&&!cw())return;let Ue=Vt(X(d.createParameterDeclaration(M,be,sw(M),mo(58),dp(),fp()),P),R);return Hn=ee,Ue}function bc(v,A){if(uw(v,A))return up(JS)}function uw(v,A){return v===39?(ie(v),!0):tr(59)?!0:A&&D()===39?(Ft(G._0_expected,io(59)),ce(),!0):!1}function $b(v,A){let P=kt(),R=$r();Wr(!!(v&1)),ro(!!(v&2));let M=v&32?hs(17,Nb):hs(16,()=>A?Rb(R):lw(R));return Wr(P),ro(R),M}function pl(v){if(!ie(21))return lu();let A=$b(v,!0);return ie(22),A}function US(){tr(28)||ba()}function pw(v){let A=re(),P=fr();v===181&&ie(105);let R=ys(),M=pl(4),ee=bc(59,!0);US();let be=v===180?d.createCallSignature(R,M,ee):d.createConstructSignature(R,M,ee);return Vt(X(be,A),P)}function Vd(){return D()===23&&ye(RR)}function RR(){if(ce(),D()===26||D()===24)return!0;if(Q_(D())){if(ce(),ht())return!0}else if(ht())ce();else return!1;return D()===59||D()===28?!0:D()!==58?!1:(ce(),D()===59||D()===28||D()===24)}function Mb(v,A,P){let R=zd(16,()=>Rb(!1),23,24),M=dp();US();let ee=d.createIndexSignature(P,R,M);return Vt(X(ee,v),A)}function dw(v,A,P){let R=Ud(),M=mo(58),ee;if(D()===21||D()===30){let be=ys(),Ue=pl(4),Ce=bc(59,!0);ee=d.createMethodSignature(P,R,M,be,Ue,Ce)}else{let be=dp();ee=d.createPropertySignature(P,R,M,be),D()===64&&(ee.initializer=fp())}return US(),Vt(X(ee,v),A)}function _w(){if(D()===21||D()===30||D()===139||D()===153)return!0;let v=!1;for(;Q_(D());)v=!0,ce();return D()===23?!0:(pp()&&(v=!0,ce()),v?D()===21||D()===30||D()===58||D()===59||D()===28||au():!1)}function uy(){if(D()===21||D()===30)return pw(180);if(D()===105&&ye(fw))return pw(181);let v=re(),A=fr(),P=xc(!1);return Ff(139)?Bf(v,A,P,178,4):Ff(153)?Bf(v,A,P,179,4):Vd()?Mb(v,A,P):dw(v,A,P)}function fw(){return ce(),D()===21||D()===30}function mw(){return ce()===25}function hw(){switch(ce()){case 21:case 30:case 25:return!0}return!1}function yw(){let v=re();return X(d.createTypeLiteralNode(gw()),v)}function gw(){let v;return ie(19)?(v=qs(4,uy),ie(20)):v=lu(),v}function Sw(){return ce(),D()===40||D()===41?ce()===148:(D()===148&&ce(),D()===23&&sy()&&ce()===103)}function LR(){let v=re(),A=qi();ie(103);let P=no();return X(d.createTypeParameterDeclaration(void 0,A,P,void 0),v)}function vw(){let v=re();ie(19);let A;(D()===148||D()===40||D()===41)&&(A=la(),A.kind!==148&&ie(148)),ie(23);let P=LR(),R=tr(130)?no():void 0;ie(24);let M;(D()===58||D()===40||D()===41)&&(M=la(),M.kind!==58&&ie(58));let ee=dp();ba();let be=qs(4,uy);return ie(20),X(d.createMappedTypeNode(A,P,R,M,ee,be),v)}function bw(){let v=re();if(tr(26))return X(d.createRestTypeNode(no()),v);let A=no();if(pot(A)&&A.pos===A.type.pos){let P=d.createOptionalTypeNode(A.type);return Fs(P,A),P.flags=A.flags,P}return A}function jb(){return ce()===59||D()===58&&ce()===59}function $R(){return D()===26?Zo(ce())&&jb():Zo(D())&&jb()}function xw(){if(ye($R)){let v=re(),A=fr(),P=mo(26),R=qi(),M=mo(58);ie(59);let ee=bw(),be=d.createNamedTupleMember(P,R,M,ee);return Vt(X(be,v),A)}return bw()}function MR(){let v=re();return X(d.createTupleTypeNode(zd(21,xw,23,24)),v)}function Ew(){let v=re();ie(21);let A=no();return ie(22),X(d.createParenthesizedType(A),v)}function jR(){let v;if(D()===128){let A=re();ce();let P=X(E(128),A);v=ui([P],A)}return v}function Bb(){let v=re(),A=fr(),P=jR(),R=tr(105);pe.assert(!P||R,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let M=ys(),ee=pl(4),be=bc(39,!1),Ue=R?d.createConstructorTypeNode(P,M,ee,be):d.createFunctionTypeNode(M,ee,be);return Vt(X(Ue,v),A)}function Tw(){let v=la();return D()===25?void 0:v}function qb(v){let A=re();v&&ce();let P=D()===112||D()===97||D()===106?la():Lf(D());return v&&(P=X(d.createPrefixUnaryExpression(41,P),A)),X(d.createLiteralTypeNode(P),A)}function BR(){return ce(),D()===102}function Ub(){K|=4194304;let v=re(),A=tr(114);ie(102),ie(21);let P=no(),R;if(tr(28)){let be=t.getTokenStart();ie(19);let Ue=D();if(Ue===118||Ue===132?ce():Ft(G._0_expected,io(118)),ie(59),R=yx(Ue,!0),tr(28),!ie(20)){let Ce=h1(Ye);Ce&&Ce.code===G._0_expected.code&&nO(Ce,i1(le,ae,be,1,G.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}ie(22);let M=tr(25)?$f():void 0,ee=rw();return X(d.createImportTypeNode(P,R,M,ee,A),v)}function Dw(){return ce(),D()===9||D()===10}function zb(){switch(D()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return We(Tw)||BS();case 67:t.reScanAsteriskEqualsToken();case 42:return NR();case 61:t.reScanQuestionToken();case 58:return FR();case 100:return ow();case 54:return nw();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return qb();case 41:return ye(Dw)?qb(!0):BS();case 116:return la();case 110:{let v=Ob();return D()===142&&!t.hasPrecedingLineBreak()?OR(v):v}case 114:return ye(BR)?Ub():iw();case 19:return ye(Sw)?vw():yw();case 23:return MR();case 21:return Ew();case 102:return Ub();case 131:return ye(ox)?Rw():BS();case 16:return QI();default:return BS()}}function Mf(v){switch(D()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!v;case 41:return!v&&ye(Dw);case 21:return!v&&ye(Aw);default:return ht()}}function Aw(){return ce(),D()===22||qS(!1)||Mf()}function Iw(){let v=re(),A=zb();for(;!t.hasPrecedingLineBreak();)switch(D()){case 54:ce(),A=X(d.createJSDocNonNullableType(A,!0),v);break;case 58:if(ye(cy))return A;ce(),A=X(d.createJSDocNullableType(A,!0),v);break;case 23:if(ie(23),Mf()){let P=no();ie(24),A=X(d.createIndexedAccessTypeNode(A,P),v)}else ie(24),A=X(d.createArrayTypeNode(A),v);break;default:return A}return A}function ww(v){let A=re();return ie(v),X(d.createTypeOperatorNode(v,Cw()),A)}function qR(){if(tr(96)){let v=vc(no);if(wr()||D()!==58)return v}}function kw(){let v=re(),A=No(),P=We(qR),R=d.createTypeParameterDeclaration(void 0,A,P);return X(R,v)}function UR(){let v=re();return ie(140),X(d.createInferTypeNode(kw()),v)}function Cw(){let v=D();switch(v){case 143:case 158:case 148:return ww(v);case 140:return UR()}return up(Iw)}function zS(v){if(Vb()){let A=Bb(),P;return eye(A)?P=v?G.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:G.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:P=v?G.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:G.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,_s(A,P),A}}function Pw(v,A,P){let R=re(),M=v===52,ee=tr(v),be=ee&&zS(M)||A();if(D()===v||ee){let Ue=[be];for(;tr(v);)Ue.push(zS(M)||A());be=X(P(ui(Ue,R)),R)}return be}function Jb(){return Pw(51,Cw,d.createIntersectionTypeNode)}function zR(){return Pw(52,Jb,d.createUnionTypeNode)}function Ow(){return ce(),D()===105}function Vb(){return D()===30||D()===21&&ye(Nw)?!0:D()===105||D()===128&&ye(Ow)}function JR(){if(Q_(D())&&xc(!1),ht()||D()===110)return ce(),!0;if(D()===23||D()===19){let v=Ye.length;return jf(),v===Ye.length}return!1}function Nw(){return ce(),!!(D()===22||D()===26||JR()&&(D()===59||D()===28||D()===58||D()===64||D()===22&&(ce(),D()===39)))}function JS(){let v=re(),A=ht()&&We(Fw),P=no();return A?X(d.createTypePredicateNode(void 0,A,P),v):P}function Fw(){let v=No();if(D()===142&&!t.hasPrecedingLineBreak())return ce(),v}function Rw(){let v=re(),A=ll(131),P=D()===110?Ob():No(),R=tr(142)?no():void 0;return X(d.createTypePredicateNode(A,P,R),v)}function no(){if(bt&81920)return fi(81920,no);if(Vb())return Bb();let v=re(),A=zR();if(!wr()&&!t.hasPrecedingLineBreak()&&tr(96)){let P=vc(no);ie(58);let R=up(no);ie(59);let M=up(no);return X(d.createConditionalTypeNode(A,P,R,M),v)}return A}function dp(){return tr(59)?no():void 0}function Kb(){switch(D()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return ye(hw);default:return ht()}}function _p(){if(Kb())return!0;switch(D()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return Gw()?!0:ht()}}function Lw(){return D()!==19&&D()!==100&&D()!==86&&D()!==60&&_p()}function ti(){let v=Tn();v&&_n(!1);let A=re(),P=Hi(!0),R;for(;R=mo(28);)P=Zb(P,R,Hi(!0),A);return v&&_n(!0),P}function fp(){return tr(64)?Hi(!0):void 0}function Hi(v){if($w())return Mw();let A=KR(v)||zw(v);if(A)return A;let P=re(),R=fr(),M=py(0);return M.kind===80&&D()===39?jw(P,M,v,R,void 0):S1(M)&&zhe(Dr())?Zb(M,la(),Hi(v),P):GR(M,P,v)}function $w(){return D()===127?kt()?!0:ye(ix):!1}function VR(){return ce(),!t.hasPrecedingLineBreak()&&ht()}function Mw(){let v=re();return ce(),!t.hasPrecedingLineBreak()&&(D()===42||_p())?X(d.createYieldExpression(mo(42),Hi(!0)),v):X(d.createYieldExpression(void 0,void 0),v)}function jw(v,A,P,R,M){pe.assert(D()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let ee=d.createParameterDeclaration(void 0,void 0,A,void 0,void 0,void 0);X(ee,A.pos);let be=ui([ee],ee.pos,ee.end),Ue=ll(39),Ce=Gb(!!M,P),De=d.createArrowFunction(M,void 0,be,void 0,Ue,Ce);return Vt(X(De,v),R)}function KR(v){let A=Bw();if(A!==0)return A===1?Vw(!0,!0):We(()=>Uw(v))}function Bw(){return D()===21||D()===30||D()===134?ye(qw):D()===39?1:0}function qw(){if(D()===134&&(ce(),t.hasPrecedingLineBreak()||D()!==21&&D()!==30))return 0;let v=D(),A=ce();if(v===21){if(A===22)switch(ce()){case 39:case 59:case 19:return 1;default:return 0}if(A===23||A===19)return 2;if(A===26)return 1;if(Q_(A)&&A!==134&&ye(sy))return ce()===130?0:1;if(!ht()&&A!==110)return 0;switch(ce()){case 59:return 1;case 58:return ce(),D()===59||D()===28||D()===64||D()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return pe.assert(v===30),!ht()&&D()!==87?0:pt===1?ye(()=>{tr(87);let P=ce();if(P===96)switch(ce()){case 64:case 32:case 44:return!1;default:return!0}else if(P===28||P===64)return!0;return!1})?1:0:2}function Uw(v){let A=t.getTokenStart();if(Gn?.has(A))return;let P=Vw(!1,v);return P||(Gn||(Gn=new Set)).add(A),P}function zw(v){if(D()===134&&ye(Jw)===1){let A=re(),P=fr(),R=Jk(),M=py(0);return jw(A,M,v,P,R)}}function Jw(){if(D()===134){if(ce(),t.hasPrecedingLineBreak()||D()===39)return 0;let v=py(0);if(!t.hasPrecedingLineBreak()&&v.kind===80&&D()===39)return 1}return 0}function Vw(v,A){let P=re(),R=fr(),M=Jk(),ee=Ra(M,aO)?2:0,be=ys(),Ue;if(ie(21)){if(v)Ue=$b(ee,v);else{let uu=$b(ee,v);if(!uu)return;Ue=uu}if(!ie(22)&&!v)return}else{if(!v)return;Ue=lu()}let Ce=D()===59,De=bc(59,!1);if(De&&!v&&Pb(De))return;let He=De;for(;He?.kind===197;)He=He.type;let mr=He&&dot(He);if(!v&&D()!==39&&(mr||D()!==19))return;let nr=D(),jt=ll(39),Wa=nr===39||nr===19?Gb(Ra(M,aO),A):No();if(!A&&Ce&&D()!==59)return;let Ai=d.createArrowFunction(M,be,Ue,De,jt,Wa);return Vt(X(Ai,P),R)}function Gb(v,A){if(D()===19)return ZS(v?2:0);if(D()!==27&&D()!==100&&D()!==86&&Ik()&&!Lw())return ZS(16|(v?2:0));let P=kt();Wr(!1);let R=Hn;Hn=!1;let M=v?ue(()=>Hi(A)):Ee(()=>Hi(A));return Hn=R,Wr(P),M}function GR(v,A,P){let R=mo(58);if(!R)return v;let M;return X(d.createConditionalExpression(v,R,fi(r,()=>Hi(!1)),M=ll(59),eJ(M)?Hi(P):ua(80,!1,G._0_expected,io(59))),A)}function py(v){let A=re(),P=ek();return Hb(v,P,A)}function Kw(v){return v===103||v===165}function Hb(v,A,P){for(;;){Dr();let R=Rz(D());if(!(D()===43?R>=v:R>v)||D()===103&&ut())break;if(D()===130||D()===152){if(t.hasPrecedingLineBreak())break;{let M=D();ce(),A=M===152?Hw(A,no()):Zw(A,no())}}else A=Zb(A,la(),py(R),P)}return A}function Gw(){return ut()&&D()===103?!1:Rz(D())>0}function Hw(v,A){return X(d.createSatisfiesExpression(v,A),v.pos)}function Zb(v,A,P,R){return X(d.createBinaryExpression(v,A,P),R)}function Zw(v,A){return X(d.createAsExpression(v,A),v.pos)}function Ww(){let v=re();return X(d.createPrefixUnaryExpression(D(),er(mp)),v)}function Qw(){let v=re();return X(d.createDeleteExpression(er(mp)),v)}function HR(){let v=re();return X(d.createTypeOfExpression(er(mp)),v)}function Xw(){let v=re();return X(d.createVoidExpression(er(mp)),v)}function ZR(){return D()===135?$r()?!0:ye(ix):!1}function Yw(){let v=re();return X(d.createAwaitExpression(er(mp)),v)}function ek(){if(WR()){let P=re(),R=VS();return D()===43?Hb(Rz(D()),R,P):R}let v=D(),A=mp();if(D()===43){let P=dd(ae,A.pos),{end:R}=A;A.kind===217?Zn(P,R,G.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(pe.assert(Fz(v)),Zn(P,R,G.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,io(v)))}return A}function mp(){switch(D()){case 40:case 41:case 55:case 54:return Ww();case 91:return Qw();case 114:return HR();case 116:return Xw();case 30:return pt===1?_y(!0,void 0,void 0,!0):ik();case 135:if(ZR())return Yw();default:return VS()}}function WR(){switch(D()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(pt!==1)return!1;default:return!0}}function VS(){if(D()===46||D()===47){let A=re();return X(d.createPrefixUnaryExpression(D(),er(dy)),A)}else if(pt===1&&D()===30&&ye(jI))return _y(!0);let v=dy();if(pe.assert(S1(v)),(D()===46||D()===47)&&!t.hasPrecedingLineBreak()){let A=D();return ce(),X(d.createPostfixUnaryExpression(v,A),v.pos)}return v}function dy(){let v=re(),A;return D()===102?ye(fw)?(K|=4194304,A=la()):ye(mw)?(ce(),ce(),A=X(d.createMetaProperty(102,qi()),v),A.name.escapedText==="defer"?(D()===21||D()===30)&&(K|=4194304):K|=8388608):A=KS():A=D()===108?tk():KS(),ex(v,A)}function KS(){let v=re(),A=tx();return Za(v,A,!0)}function tk(){let v=re(),A=la();if(D()===30){let P=re(),R=We(HS);R!==void 0&&(Zn(P,re(),G.super_may_not_use_type_arguments),Us()||(A=d.createExpressionWithTypeArguments(A,R)))}return D()===21||D()===25||D()===23?A:(ll(25,G.super_must_be_followed_by_an_argument_list_or_member_access),X(k(A,Rf(!0,!0,!0)),v))}function _y(v,A,P,R=!1){let M=re(),ee=YR(v),be;if(ee.kind===287){let Ue=GS(ee),Ce,De=Ue[Ue.length-1];if(De?.kind===285&&!rh(De.openingElement.tagName,De.closingElement.tagName)&&rh(ee.tagName,De.closingElement.tagName)){let He=De.children.end,mr=X(d.createJsxElement(De.openingElement,De.children,X(d.createJsxClosingElement(X(S(""),He,He)),He,He)),De.openingElement.pos,He);Ue=ui([...Ue.slice(0,Ue.length-1),mr],Ue.pos,He),Ce=De.closingElement}else Ce=ok(ee,v),rh(ee.tagName,Ce.tagName)||(P&&ime(P)&&rh(Ce.tagName,P.tagName)?_s(ee.tagName,G.JSX_element_0_has_no_corresponding_closing_tag,jD(ae,ee.tagName)):_s(Ce.tagName,G.Expected_corresponding_JSX_closing_tag_for_0,jD(ae,ee.tagName)));be=X(d.createJsxElement(ee,Ue,Ce),M)}else ee.kind===290?be=X(d.createJsxFragment(ee,GS(ee),n8(v)),M):(pe.assert(ee.kind===286),be=ee);if(!R&&v&&D()===30){let Ue=typeof A>"u"?be.pos:A,Ce=We(()=>_y(!0,Ue));if(Ce){let De=ua(28,!1);return eme(De,Ce.pos,0),Zn(dd(ae,Ue),Ce.end,G.JSX_expressions_must_have_one_parent_element),X(d.createBinaryExpression(be,De,Ce),M)}}return be}function Wb(){let v=re(),A=d.createJsxText(t.getTokenValue(),Ct===13);return Ct=t.scanJsxToken(),X(A,v)}function QR(v,A){switch(A){case 1:if(aot(v))_s(v,G.JSX_fragment_has_no_corresponding_closing_tag);else{let P=v.tagName,R=Math.min(dd(ae,P.pos),P.end);Zn(R,P.end,G.JSX_element_0_has_no_corresponding_closing_tag,jD(ae,v.tagName))}return;case 31:case 7:return;case 12:case 13:return Wb();case 19:return rk(!1);case 30:return _y(!1,void 0,v);default:return pe.assertNever(A)}}function GS(v){let A=[],P=re(),R=nn;for(nn|=16384;;){let M=QR(v,Ct=t.reScanJsxToken());if(!M||(A.push(M),ime(v)&&M?.kind===285&&!rh(M.openingElement.tagName,M.closingElement.tagName)&&rh(v.tagName,M.closingElement.tagName)))break}return nn=R,ui(A,P)}function XR(){let v=re();return X(d.createJsxAttributes(qs(13,nk)),v)}function YR(v){let A=re();if(ie(30),D()===32)return cl(),X(d.createJsxOpeningFragment(),A);let P=Qb(),R=(bt&524288)===0?YS():void 0,M=XR(),ee;return D()===32?(cl(),ee=d.createJsxOpeningElement(P,R,M)):(ie(44),ie(32,void 0,!1)&&(v?ce():cl()),ee=d.createJsxSelfClosingElement(P,R,M)),X(ee,A)}function Qb(){let v=re(),A=e8();if(mye(A))return A;let P=A;for(;tr(25);)P=X(k(P,Rf(!0,!1,!1)),v);return P}function e8(){let v=re();Gi();let A=D()===110,P=Nf();return tr(59)?(Gi(),X(d.createJsxNamespacedName(P,Nf()),v)):A?X(d.createToken(110),v):P}function rk(v){let A=re();if(!ie(19))return;let P,R;return D()!==20&&(v||(P=mo(26)),R=ti()),v?ie(20):ie(20,void 0,!1)&&cl(),X(d.createJsxExpression(P,R),A)}function nk(){if(D()===19)return r8();let v=re();return X(d.createJsxAttribute(t8(),Xb()),v)}function Xb(){if(D()===64){if(oy()===11)return ul();if(D()===19)return rk(!0);if(D()===30)return _y(!0);Ft(G.or_JSX_element_expected)}}function t8(){let v=re();Gi();let A=Nf();return tr(59)?(Gi(),X(d.createJsxNamespacedName(A,Nf()),v)):A}function r8(){let v=re();ie(19),ie(26);let A=ti();return ie(20),X(d.createJsxSpreadAttribute(A),v)}function ok(v,A){let P=re();ie(31);let R=Qb();return ie(32,void 0,!1)&&(A||!rh(v.tagName,R)?ce():cl()),X(d.createJsxClosingElement(R),P)}function n8(v){let A=re();return ie(31),ie(32,G.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(v?ce():cl()),X(d.createJsxJsxClosingFragment(),A)}function ik(){pe.assert(pt!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let v=re();ie(30);let A=no();ie(32);let P=mp();return X(d.createTypeAssertion(A,P),v)}function o8(){return ce(),Zo(D())||D()===23||Us()}function ak(){return D()===29&&ye(o8)}function Yb(v){if(v.flags&64)return!0;if(uO(v)){let A=v.expression;for(;uO(A)&&!(A.flags&64);)A=A.expression;if(A.flags&64){for(;uO(v);)v.flags|=64,v=v.expression;return!0}}return!1}function sk(v,A,P){let R=Rf(!0,!0,!0),M=P||Yb(A),ee=M?F(A,P,R):k(A,R);if(M&&zg(ee.name)&&_s(ee.name,G.An_optional_chain_cannot_contain_private_identifiers),Xnt(A)&&A.typeArguments){let be=A.typeArguments.pos-1,Ue=dd(ae,A.typeArguments.end)+1;Zn(be,Ue,G.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return X(ee,v)}function i8(v,A,P){let R;if(D()===24)R=ua(80,!0,G.An_element_access_expression_should_take_an_argument);else{let ee=co(ti);AO(ee)&&(ee.text=qd(ee.text)),R=ee}ie(24);let M=P||Yb(A)?$(A,P,R):O(A,R);return X(M,v)}function Za(v,A,P){for(;;){let R,M=!1;if(P&&ak()?(R=ll(29),M=Zo(D())):M=tr(25),M){A=sk(v,A,R);continue}if((R||!Tn())&&tr(23)){A=i8(v,A,R);continue}if(Us()){A=!R&&A.kind===234?Kd(v,A.expression,R,A.typeArguments):Kd(v,A,R,void 0);continue}if(!R){if(D()===54&&!t.hasPrecedingLineBreak()){ce(),A=X(d.createNonNullExpression(A),v);continue}let ee=We(HS);if(ee){A=X(d.createExpressionWithTypeArguments(A,ee),v);continue}}return A}}function Us(){return D()===15||D()===16}function Kd(v,A,P,R){let M=d.createTaggedTemplateExpression(A,R,D()===15?(mi(!0),ul()):jS(!0));return(P||A.flags&64)&&(M.flags|=64),M.questionDotToken=P,X(M,v)}function ex(v,A){for(;;){A=Za(v,A,!0);let P,R=mo(29);if(R&&(P=We(HS),Us())){A=Kd(v,A,R,P);continue}if(P||D()===21){!R&&A.kind===234&&(P=A.typeArguments,A=A.expression);let M=ck(),ee=R||Yb(A)?U(A,R,P,M):N(A,P,M);A=X(ee,v);continue}if(R){let M=ua(80,!1,G.Identifier_expected);A=X(F(A,R,M),v)}break}return A}function ck(){ie(21);let v=hs(11,pk);return ie(22),v}function HS(){if((bt&524288)!==0||ei()!==30)return;ce();let v=hs(20,no);if(Dr()===32)return ce(),v&&a8()?v:void 0}function a8(){switch(D()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Gw()||!_p()}function tx(){switch(D()){case 15:t.getTokenFlags()&26656&&mi(!1);case 9:case 10:case 11:return ul();case 110:case 108:case 106:case 112:case 97:return la();case 21:return s8();case 23:return dk();case 19:return rx();case 134:if(!ye(Ak))break;return nx();case 60:return I8();case 86:return w8();case 100:return nx();case 105:return fk();case 44:case 69:if(on()===14)return ul();break;case 16:return jS(!1);case 81:return FS()}return No(G.Expression_expected)}function s8(){let v=re(),A=fr();ie(21);let P=co(ti);return ie(22),Vt(X(Te(P),v),A)}function lk(){let v=re();ie(26);let A=Hi(!0);return X(d.createSpreadElement(A),v)}function uk(){return D()===26?lk():D()===28?X(d.createOmittedExpression(),re()):Hi(!0)}function pk(){return fi(r,uk)}function dk(){let v=re(),A=t.getTokenStart(),P=ie(23),R=t.hasPrecedingLineBreak(),M=hs(15,uk);return Bd(23,24,P,A),X(I(M,R),v)}function _k(){let v=re(),A=fr();if(mo(26)){let De=Hi(!0);return Vt(X(d.createSpreadAssignment(De),v),A)}let P=xc(!0);if(Ff(139))return Bf(v,A,P,178,0);if(Ff(153))return Bf(v,A,P,179,0);let R=mo(42),M=ht(),ee=Ud(),be=mo(58),Ue=mo(54);if(R||D()===21||D()===30)return Bk(v,A,P,R,ee,be,Ue);let Ce;if(M&&D()!==59){let De=mo(64),He=De?co(()=>Hi(!0)):void 0;Ce=d.createShorthandPropertyAssignment(ee,He),Ce.equalsToken=De}else{ie(59);let De=co(()=>Hi(!0));Ce=d.createPropertyAssignment(ee,De)}return Ce.modifiers=P,Ce.questionToken=be,Ce.exclamationToken=Ue,Vt(X(Ce,v),A)}function rx(){let v=re(),A=t.getTokenStart(),P=ie(19),R=t.hasPrecedingLineBreak(),M=hs(12,_k,!0);return Bd(19,20,P,A),X(T(M,R),v)}function nx(){let v=Tn();_n(!1);let A=re(),P=fr(),R=xc(!1);ie(100);let M=mo(42),ee=M?1:0,be=Ra(R,aO)?2:0,Ue=ee&&be?Ie(fy):ee?sl(fy):be?ue(fy):fy(),Ce=ys(),De=pl(ee|be),He=bc(59,!1),mr=ZS(ee|be);_n(v);let nr=d.createFunctionExpression(R,M,Ue,Ce,De,He,mr);return Vt(X(nr,A),P)}function fy(){return br()?xb():void 0}function fk(){let v=re();if(ie(105),tr(25)){let ee=qi();return X(d.createMetaProperty(105,ee),v)}let A=re(),P=Za(A,tx(),!1),R;P.kind===234&&(R=P.typeArguments,P=P.expression),D()===29&&Ft(G.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,jD(ae,P));let M=D()===21?ck():void 0;return X(ge(P,R,M),v)}function Gd(v,A){let P=re(),R=fr(),M=t.getTokenStart(),ee=ie(19,A);if(ee||v){let be=t.hasPrecedingLineBreak(),Ue=qs(1,pa);Bd(19,20,ee,M);let Ce=Vt(X(ke(Ue,be),P),R);return D()===64&&(Ft(G.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),ce()),Ce}else{let be=lu();return Vt(X(ke(be,void 0),P),R)}}function ZS(v,A){let P=kt();Wr(!!(v&1));let R=$r();ro(!!(v&2));let M=Hn;Hn=!1;let ee=Tn();ee&&_n(!1);let be=Gd(!!(v&16),A);return ee&&_n(!0),Hn=M,Wr(P),ro(R),be}function mk(){let v=re(),A=fr();return ie(27),Vt(X(d.createEmptyStatement(),v),A)}function c8(){let v=re(),A=fr();ie(101);let P=t.getTokenStart(),R=ie(21),M=co(ti);Bd(21,22,R,P);let ee=pa(),be=tr(93)?pa():void 0;return Vt(X(xe(M,ee,be),v),A)}function hk(){let v=re(),A=fr();ie(92);let P=pa();ie(117);let R=t.getTokenStart(),M=ie(21),ee=co(ti);return Bd(21,22,M,R),tr(27),Vt(X(d.createDoStatement(P,ee),v),A)}function l8(){let v=re(),A=fr();ie(117);let P=t.getTokenStart(),R=ie(21),M=co(ti);Bd(21,22,R,P);let ee=pa();return Vt(X(Rt(M,ee),v),A)}function yk(){let v=re(),A=fr();ie(99);let P=mo(135);ie(21);let R;D()!==27&&(D()===115||D()===121||D()===87||D()===160&&ye(kk)||D()===135&&ye(ax)?R=$k(!0):R=jd(ti));let M;if(P?ie(165):tr(165)){let ee=co(()=>Hi(!0));ie(22),M=Yt(P,R,ee,pa())}else if(tr(103)){let ee=co(ti);ie(22),M=d.createForInStatement(R,ee,pa())}else{ie(27);let ee=D()!==27&&D()!==22?co(ti):void 0;ie(27);let be=D()!==22?co(ti):void 0;ie(22),M=Jt(R,ee,be,pa())}return Vt(X(M,v),A)}function gk(v){let A=re(),P=fr();ie(v===253?83:88);let R=au()?void 0:No();ba();let M=v===253?d.createBreakStatement(R):d.createContinueStatement(R);return Vt(X(M,A),P)}function Sk(){let v=re(),A=fr();ie(107);let P=au()?void 0:co(ti);return ba(),Vt(X(d.createReturnStatement(P),v),A)}function u8(){let v=re(),A=fr();ie(118);let P=t.getTokenStart(),R=ie(21),M=co(ti);Bd(21,22,R,P);let ee=Uo(67108864,pa);return Vt(X(d.createWithStatement(M,ee),v),A)}function vk(){let v=re(),A=fr();ie(84);let P=co(ti);ie(59);let R=qs(3,pa);return Vt(X(d.createCaseClause(P,R),v),A)}function p8(){let v=re();ie(90),ie(59);let A=qs(3,pa);return X(d.createDefaultClause(A),v)}function d8(){return D()===84?vk():p8()}function bk(){let v=re();ie(19);let A=qs(2,d8);return ie(20),X(d.createCaseBlock(A),v)}function _8(){let v=re(),A=fr();ie(109),ie(21);let P=co(ti);ie(22);let R=bk();return Vt(X(d.createSwitchStatement(P,R),v),A)}function xk(){let v=re(),A=fr();ie(111);let P=t.hasPrecedingLineBreak()?void 0:co(ti);return P===void 0&&(fo++,P=X(S(""),re())),NS()||zo(P),Vt(X(d.createThrowStatement(P),v),A)}function f8(){let v=re(),A=fr();ie(113);let P=Gd(!1),R=D()===85?Ek():void 0,M;return(!R||D()===98)&&(ie(98,G.catch_or_finally_expected),M=Gd(!1)),Vt(X(d.createTryStatement(P,R,M),v),A)}function Ek(){let v=re();ie(85);let A;tr(21)?(A=QS(),ie(22)):A=void 0;let P=Gd(!1);return X(d.createCatchClause(A,P),v)}function m8(){let v=re(),A=fr();return ie(89),ba(),Vt(X(d.createDebuggerStatement(),v),A)}function Tk(){let v=re(),A=fr(),P,R=D()===21,M=co(ti);return kn(M)&&tr(59)?P=d.createLabeledStatement(M,pa()):(NS()||zo(M),P=me(M),R&&(A=!1)),Vt(X(P,v),A)}function ox(){return ce(),Zo(D())&&!t.hasPrecedingLineBreak()}function Dk(){return ce(),D()===86&&!t.hasPrecedingLineBreak()}function Ak(){return ce(),D()===100&&!t.hasPrecedingLineBreak()}function ix(){return ce(),(Zo(D())||D()===9||D()===10||D()===11)&&!t.hasPrecedingLineBreak()}function h8(){for(;;)switch(D()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Ck();case 135:return sx();case 120:case 156:case 166:return VR();case 144:case 145:return v8();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let v=D();if(ce(),t.hasPrecedingLineBreak())return!1;if(v===138&&D()===156)return!0;continue;case 162:return ce(),D()===19||D()===80||D()===95;case 102:return ce(),D()===166||D()===11||D()===42||D()===19||Zo(D());case 95:let A=ce();if(A===156&&(A=ye(ce)),A===64||A===42||A===19||A===90||A===130||A===60)return!0;continue;case 126:ce();continue;default:return!1}}function my(){return ye(h8)}function Ik(){switch(D()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return my()||ye(hw);case 87:case 95:return my();case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return my()||!ye(ox);default:return _p()}}function wk(){return ce(),br()||D()===19||D()===23}function y8(){return ye(wk)}function kk(){return WS(!0)}function g8(){return ce(),D()===64||D()===27||D()===59}function WS(v){return ce(),v&&D()===165?ye(g8):(br()||D()===19)&&!t.hasPrecedingLineBreak()}function Ck(){return ye(WS)}function ax(v){return ce()===160?WS(v):!1}function sx(){return ye(ax)}function pa(){switch(D()){case 27:return mk();case 19:return Gd(!1);case 115:return gy(re(),fr(),void 0);case 121:if(y8())return gy(re(),fr(),void 0);break;case 135:if(sx())return gy(re(),fr(),void 0);break;case 160:if(Ck())return gy(re(),fr(),void 0);break;case 100:return lx(re(),fr(),void 0);case 86:return dx(re(),fr(),void 0);case 101:return c8();case 92:return hk();case 117:return l8();case 99:return yk();case 88:return gk(252);case 83:return gk(253);case 107:return Sk();case 118:return u8();case 109:return _8();case 111:return xk();case 113:case 85:case 98:return f8();case 89:return m8();case 60:return hy();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(my())return hy();break}return Tk()}function Pk(v){return v.kind===138}function hy(){let v=re(),A=fr(),P=xc(!0);if(Ra(P,Pk)){let R=S8(v);if(R)return R;for(let M of P)M.flags|=33554432;return Uo(33554432,()=>Ok(v,A,P))}else return Ok(v,A,P)}function S8(v){return Uo(33554432,()=>{let A=$S(nn,v);if(A)return UI(A)})}function Ok(v,A,P){switch(D()){case 115:case 121:case 87:case 160:case 135:return gy(v,A,P);case 100:return lx(v,A,P);case 86:return dx(v,A,P);case 120:return O8(v,A,P);case 156:return N8(v,A,P);case 94:return F8(v,A,P);case 162:case 144:case 145:return R8(v,A,P);case 102:return Sy(v,A,P);case 95:switch(ce(),D()){case 90:case 64:return nC(v,A,P);case 130:return M8(v,A,P);default:return rC(v,A,P)}default:if(P){let R=ua(283,!0,G.Declaration_expected);return rJ(R,v),R.modifiers=P,R}return}}function Nk(){return ce()===11}function Fk(){return ce(),D()===161||D()===64}function v8(){return ce(),!t.hasPrecedingLineBreak()&&(ht()||D()===11)}function yy(v,A){if(D()!==19){if(v&4){US();return}if(au()){ba();return}}return ZS(v,A)}function b8(){let v=re();if(D()===28)return X(d.createOmittedExpression(),v);let A=mo(26),P=jf(),R=fp();return X(d.createBindingElement(A,void 0,P,R),v)}function Rk(){let v=re(),A=mo(26),P=br(),R=Ud(),M;P&&D()!==59?(M=R,R=void 0):(ie(59),M=jf());let ee=fp();return X(d.createBindingElement(A,R,M,ee),v)}function x8(){let v=re();ie(19);let A=co(()=>hs(9,Rk));return ie(20),X(d.createObjectBindingPattern(A),v)}function Lk(){let v=re();ie(23);let A=co(()=>hs(10,b8));return ie(24),X(d.createArrayBindingPattern(A),v)}function cx(){return D()===19||D()===23||D()===81||br()}function jf(v){return D()===23?Lk():D()===19?x8():xb(v)}function E8(){return QS(!0)}function QS(v){let A=re(),P=fr(),R=jf(G.Private_identifiers_are_not_allowed_in_variable_declarations),M;v&&R.kind===80&&D()===54&&!t.hasPrecedingLineBreak()&&(M=la());let ee=dp(),be=Kw(D())?void 0:fp(),Ue=vt(R,M,ee,be);return Vt(X(Ue,A),P)}function $k(v){let A=re(),P=0;switch(D()){case 115:break;case 121:P|=1;break;case 87:P|=2;break;case 160:P|=4;break;case 135:pe.assert(sx()),P|=6,ce();break;default:pe.fail()}ce();let R;if(D()===165&&ye(Mk))R=lu();else{let M=ut();Et(v),R=hs(8,v?QS:E8),Et(M)}return X(Fr(R,P),A)}function Mk(){return sy()&&ce()===22}function gy(v,A,P){let R=$k(!1);ba();let M=Je(P,R);return Vt(X(M,v),A)}function lx(v,A,P){let R=$r(),M=zc(P);ie(100);let ee=mo(42),be=M&2048?fy():xb(),Ue=ee?1:0,Ce=M&1024?2:0,De=ys();M&32&&ro(!0);let He=pl(Ue|Ce),mr=bc(59,!1),nr=yy(Ue|Ce,G.or_expected);ro(R);let jt=d.createFunctionDeclaration(P,ee,be,De,He,mr,nr);return Vt(X(jt,v),A)}function T8(){if(D()===137)return ie(137);if(D()===11&&ye(ce)===21)return We(()=>{let v=ul();return v.text==="constructor"?v:void 0})}function jk(v,A,P){return We(()=>{if(T8()){let R=ys(),M=pl(0),ee=bc(59,!1),be=yy(0,G.or_expected),Ue=d.createConstructorDeclaration(P,M,be);return Ue.typeParameters=R,Ue.type=ee,Vt(X(Ue,v),A)}})}function Bk(v,A,P,R,M,ee,be,Ue){let Ce=R?1:0,De=Ra(P,aO)?2:0,He=ys(),mr=pl(Ce|De),nr=bc(59,!1),jt=yy(Ce|De,Ue),Wa=d.createMethodDeclaration(P,R,M,ee,He,mr,nr,jt);return Wa.exclamationToken=be,Vt(X(Wa,v),A)}function XS(v,A,P,R,M){let ee=!M&&!t.hasPrecedingLineBreak()?mo(54):void 0,be=dp(),Ue=fi(90112,fp);SR(R,be,Ue);let Ce=d.createPropertyDeclaration(P,R,M||ee,be,Ue);return Vt(X(Ce,v),A)}function ux(v,A,P){let R=mo(42),M=Ud(),ee=mo(58);return R||D()===21||D()===30?Bk(v,A,P,R,M,ee,void 0,G.or_expected):XS(v,A,P,M,ee)}function Bf(v,A,P,R,M){let ee=Ud(),be=ys(),Ue=pl(0),Ce=bc(59,!1),De=yy(M),He=R===178?d.createGetAccessorDeclaration(P,ee,Ue,Ce,De):d.createSetAccessorDeclaration(P,ee,Ue,De);return He.typeParameters=be,xO(He)&&(He.type=Ce),Vt(X(He,v),A)}function qk(){let v;if(D()===60)return!0;for(;Q_(D());){if(v=D(),mtt(v))return!0;ce()}if(D()===42||(pp()&&(v=D(),ce()),D()===23))return!0;if(v!==void 0){if(!oh(v)||v===153||v===139)return!0;switch(D()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return au()}}return!1}function D8(v,A,P){ll(126);let R=A8(),M=Vt(X(d.createClassStaticBlockDeclaration(R),v),A);return M.modifiers=P,M}function A8(){let v=kt(),A=$r();Wr(!1),ro(!0);let P=Gd(!1);return Wr(v),ro(A),P}function Uk(){if($r()&&D()===135){let v=re(),A=No(G.Expression_expected);ce();let P=Za(v,A,!0);return ex(v,P)}return dy()}function zk(){let v=re();if(!tr(60))return;let A=ny(Uk);return X(d.createDecorator(A),v)}function px(v,A,P){let R=re(),M=D();if(D()===87&&A){if(!We(Eb))return}else if(P&&D()===126&&ye(e0)||v&&D()===126||!$I())return;return X(E(M),R)}function xc(v,A,P){let R=re(),M,ee,be,Ue=!1,Ce=!1,De=!1;if(v&&D()===60)for(;ee=zk();)M=sc(M,ee);for(;be=px(Ue,A,P);)be.kind===126&&(Ue=!0),M=sc(M,be),Ce=!0;if(Ce&&v&&D()===60)for(;ee=zk();)M=sc(M,ee),De=!0;if(De)for(;be=px(Ue,A,P);)be.kind===126&&(Ue=!0),M=sc(M,be);return M&&ui(M,R)}function Jk(){let v;if(D()===134){let A=re();ce();let P=X(E(134),A);v=ui([P],A)}return v}function Vk(){let v=re(),A=fr();if(D()===27)return ce(),Vt(X(d.createSemicolonClassElement(),v),A);let P=xc(!0,!0,!0);if(D()===126&&ye(e0))return D8(v,A,P);if(Ff(139))return Bf(v,A,P,178,0);if(Ff(153))return Bf(v,A,P,179,0);if(D()===137||D()===11){let R=jk(v,A,P);if(R)return R}if(Vd())return Mb(v,A,P);if(Zo(D())||D()===11||D()===9||D()===10||D()===42||D()===23)if(Ra(P,Pk)){for(let R of P)R.flags|=33554432;return Uo(33554432,()=>ux(v,A,P))}else return ux(v,A,P);if(P){let R=ua(80,!0,G.Declaration_expected);return XS(v,A,P,R,void 0)}return pe.fail("Should not have attempted to parse class member declaration.")}function I8(){let v=re(),A=fr(),P=xc(!0);if(D()===86)return _x(v,A,P,232);let R=ua(283,!0,G.Expression_expected);return rJ(R,v),R.modifiers=P,R}function w8(){return _x(re(),fr(),void 0,232)}function dx(v,A,P){return _x(v,A,P,264)}function _x(v,A,P,R){let M=$r();ie(86);let ee=k8(),be=ys();Ra(P,Snt)&&ro(!0);let Ue=Gk(),Ce;ie(19)?(Ce=Hk(),ie(20)):Ce=lu(),ro(M);let De=R===264?d.createClassDeclaration(P,ee,be,Ue,Ce):d.createClassExpression(P,ee,be,Ue,Ce);return Vt(X(De,v),A)}function k8(){return br()&&!Kk()?su(br()):void 0}function Kk(){return D()===119&&ye(IR)}function Gk(){if(fx())return qs(22,C8)}function C8(){let v=re(),A=D();pe.assert(A===96||A===119),ce();let P=hs(7,P8);return X(d.createHeritageClause(A,P),v)}function P8(){let v=re(),A=dy();if(A.kind===234)return A;let P=YS();return X(d.createExpressionWithTypeArguments(A,P),v)}function YS(){return D()===30?zd(20,no,30,32):void 0}function fx(){return D()===96||D()===119}function Hk(){return qs(5,Vk)}function O8(v,A,P){ie(120);let R=No(),M=ys(),ee=Gk(),be=gw(),Ue=d.createInterfaceDeclaration(P,R,M,ee,be);return Vt(X(Ue,v),A)}function N8(v,A,P){ie(156),t.hasPrecedingLineBreak()&&Ft(G.Line_break_not_permitted_here);let R=No(),M=ys();ie(64);let ee=D()===141&&We(Tw)||no();ba();let be=d.createTypeAliasDeclaration(P,R,M,ee);return Vt(X(be,v),A)}function mx(){let v=re(),A=fr(),P=Ud(),R=co(fp);return Vt(X(d.createEnumMember(P,R),v),A)}function F8(v,A,P){ie(94);let R=No(),M;ie(19)?(M=Tt(()=>hs(6,mx)),ie(20)):M=lu();let ee=d.createEnumDeclaration(P,R,M);return Vt(X(ee,v),A)}function hx(){let v=re(),A;return ie(19)?(A=qs(1,pa),ie(20)):A=lu(),X(d.createModuleBlock(A),v)}function Zk(v,A,P,R){let M=R&32,ee=R&8?qi():No(),be=tr(25)?Zk(re(),!1,void 0,8|M):hx(),Ue=d.createModuleDeclaration(P,ee,be,R);return Vt(X(Ue,v),A)}function Wk(v,A,P){let R=0,M;D()===162?(M=No(),R|=2048):(M=ul(),M.text=qd(M.text));let ee;D()===19?ee=hx():ba();let be=d.createModuleDeclaration(P,M,ee,R);return Vt(X(be,v),A)}function R8(v,A,P){let R=0;if(D()===162)return Wk(v,A,P);if(tr(145))R|=32;else if(ie(144),D()===11)return Wk(v,A,P);return Zk(v,A,P,R)}function L8(){return D()===149&&ye(Qk)}function Qk(){return ce()===21}function e0(){return ce()===19}function $8(){return ce()===44}function M8(v,A,P){ie(130),ie(145);let R=No();ba();let M=d.createNamespaceExportDeclaration(R);return M.modifiers=P,Vt(X(M,v),A)}function Sy(v,A,P){ie(102);let R=t.getTokenFullStart(),M;ht()&&(M=No());let ee;if(M?.escapedText==="type"&&(D()!==161||ht()&&ye(Fk))&&(ht()||Hd())?(ee=156,M=ht()?No():void 0):M?.escapedText==="defer"&&(D()===161?!ye(Nk):D()!==28&&D()!==64)&&(ee=166,M=ht()?No():void 0),M&&!B8()&&ee!==166)return q8(v,A,P,M,ee===156);let be=Xk(M,R,ee,void 0),Ue=by(),Ce=Yk();ba();let De=d.createImportDeclaration(P,be,Ue,Ce);return Vt(X(De,v),A)}function Xk(v,A,P,R=!1){let M;return(v||D()===42||D()===19)&&(M=U8(v,A,P,R),ie(161)),M}function Yk(){let v=D();if((v===118||v===132)&&!t.hasPrecedingLineBreak())return yx(v)}function j8(){let v=re(),A=Zo(D())?qi():Lf(11);ie(59);let P=Hi(!0);return X(d.createImportAttribute(A,P),v)}function yx(v,A){let P=re();A||ie(v);let R=t.getTokenStart();if(ie(19)){let M=t.hasPrecedingLineBreak(),ee=hs(24,j8,!0);if(!ie(20)){let be=h1(Ye);be&&be.code===G._0_expected.code&&nO(be,i1(le,ae,R,1,G.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return X(d.createImportAttributes(ee,M,v),P)}else{let M=ui([],re(),void 0,!1);return X(d.createImportAttributes(M,!1,v),P)}}function Hd(){return D()===42||D()===19}function B8(){return D()===28||D()===161}function q8(v,A,P,R,M){ie(64);let ee=vy();ba();let be=d.createImportEqualsDeclaration(P,M,R,ee);return Vt(X(be,v),A)}function U8(v,A,P,R){let M;return(!v||tr(28))&&(R&&t.setSkipJsDocLeadingAsterisks(!0),D()===42?M=J8():M=eC(276),R&&t.setSkipJsDocLeadingAsterisks(!1)),X(d.createImportClause(P,v,M),A)}function vy(){return L8()?z8():Jd(!1)}function z8(){let v=re();ie(149),ie(21);let A=by();return ie(22),X(d.createExternalModuleReference(A),v)}function by(){if(D()===11){let v=ul();return v.text=qd(v.text),v}else return ti()}function J8(){let v=re();ie(42),ie(130);let A=No();return X(d.createNamespaceImport(A),v)}function gx(){return Zo(D())||D()===11}function qf(v){return D()===11?ul():v()}function eC(v){let A=re(),P=v===276?d.createNamedImports(zd(23,V8,19,20)):d.createNamedExports(zd(23,Uf,19,20));return X(P,A)}function Uf(){let v=fr();return Vt(tC(282),v)}function V8(){return tC(277)}function tC(v){let A=re(),P=oh(D())&&!ht(),R=t.getTokenStart(),M=t.getTokenEnd(),ee=!1,be,Ue=!0,Ce=qf(qi);if(Ce.kind===80&&Ce.escapedText==="type")if(D()===130){let mr=qi();if(D()===130){let nr=qi();gx()?(ee=!0,be=mr,Ce=qf(He),Ue=!1):(be=Ce,Ce=nr,Ue=!1)}else gx()?(be=Ce,Ue=!1,Ce=qf(He)):(ee=!0,Ce=mr)}else gx()&&(ee=!0,Ce=qf(He));Ue&&D()===130&&(be=Ce,ie(130),Ce=qf(He)),v===277&&(Ce.kind!==80?(Zn(dd(ae,Ce.pos),Ce.end,G.Identifier_expected),Ce=ch(ua(80,!1),Ce.pos,Ce.pos)):P&&Zn(R,M,G.Identifier_expected));let De=v===277?d.createImportSpecifier(ee,be,Ce):d.createExportSpecifier(ee,be,Ce);return X(De,A);function He(){return P=oh(D())&&!ht(),R=t.getTokenStart(),M=t.getTokenEnd(),qi()}}function K8(v){return X(d.createNamespaceExport(qf(qi)),v)}function rC(v,A,P){let R=$r();ro(!0);let M,ee,be,Ue=tr(156),Ce=re();tr(42)?(tr(130)&&(M=K8(Ce)),ie(161),ee=by()):(M=eC(280),(D()===161||D()===11&&!t.hasPrecedingLineBreak())&&(ie(161),ee=by()));let De=D();ee&&(De===118||De===132)&&!t.hasPrecedingLineBreak()&&(be=yx(De)),ba(),ro(R);let He=d.createExportDeclaration(P,Ue,M,ee,be);return Vt(X(He,v),A)}function nC(v,A,P){let R=$r();ro(!0);let M;tr(64)?M=!0:ie(90);let ee=Hi(!0);ba(),ro(R);let be=d.createExportAssignment(P,M,ee);return Vt(X(be,v),A)}let Sx;(v=>{v[v.SourceElements=0]="SourceElements",v[v.BlockStatements=1]="BlockStatements",v[v.SwitchClauses=2]="SwitchClauses",v[v.SwitchClauseStatements=3]="SwitchClauseStatements",v[v.TypeMembers=4]="TypeMembers",v[v.ClassMembers=5]="ClassMembers",v[v.EnumMembers=6]="EnumMembers",v[v.HeritageClauseElement=7]="HeritageClauseElement",v[v.VariableDeclarations=8]="VariableDeclarations",v[v.ObjectBindingElements=9]="ObjectBindingElements",v[v.ArrayBindingElements=10]="ArrayBindingElements",v[v.ArgumentExpressions=11]="ArgumentExpressions",v[v.ObjectLiteralMembers=12]="ObjectLiteralMembers",v[v.JsxAttributes=13]="JsxAttributes",v[v.JsxChildren=14]="JsxChildren",v[v.ArrayLiteralMembers=15]="ArrayLiteralMembers",v[v.Parameters=16]="Parameters",v[v.JSDocParameters=17]="JSDocParameters",v[v.RestProperties=18]="RestProperties",v[v.TypeParameters=19]="TypeParameters",v[v.TypeArguments=20]="TypeArguments",v[v.TupleElementTypes=21]="TupleElementTypes",v[v.HeritageClauses=22]="HeritageClauses",v[v.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",v[v.ImportAttributes=24]="ImportAttributes",v[v.JSDocComment=25]="JSDocComment",v[v.Count=26]="Count"})(Sx||(Sx={}));let oC;(v=>{v[v.False=0]="False",v[v.True=1]="True",v[v.Unknown=2]="Unknown"})(oC||(oC={}));let iC;(v=>{function A(De,He,mr){ol("file.js",De,99,void 0,1,0),t.setText(De,He,mr),Ct=t.scan();let nr=P(),jt=qe("file.js",99,1,!1,[],E(1),0,x1),Wa=Og(Ye,jt);return lt&&(jt.jsDocDiagnostics=Og(lt,jt)),il(),nr?{jsDocTypeExpression:nr,diagnostics:Wa}:void 0}v.parseJSDocTypeExpressionForTests=A;function P(De){let He=re(),mr=(De?tr:ie)(19),nr=Uo(16777216,Fb);(!De||mr)&&FI(20);let jt=d.createJSDocTypeExpression(nr);return oe(jt),X(jt,He)}v.parseJSDocTypeExpression=P;function R(){let De=re(),He=tr(19),mr=re(),nr=Jd(!1);for(;D()===81;)hi(),vr(),nr=X(d.createJSDocMemberName(nr,No()),mr);He&&FI(20);let jt=d.createJSDocNameReference(nr);return oe(jt),X(jt,De)}v.parseJSDocNameReference=R;function M(De,He,mr){ol("",De,99,void 0,1,0);let nr=Uo(16777216,()=>Ce(He,mr)),jt=Og(Ye,{languageVariant:0,text:De});return il(),nr?{jsDoc:nr,diagnostics:jt}:void 0}v.parseIsolatedJSDocComment=M;function ee(De,He,mr){let nr=Ct,jt=Ye.length,Wa=Di,Ai=Uo(16777216,()=>Ce(He,mr));return jJ(Ai,De),bt&524288&&(lt||(lt=[]),lc(lt,Ye,jt)),Ct=nr,Ye.length=jt,Di=Wa,Ai}v.parseJSDocComment=ee;let be;(De=>{De[De.BeginningOfLine=0]="BeginningOfLine",De[De.SawAsterisk=1]="SawAsterisk",De[De.SavingComments=2]="SavingComments",De[De.SavingBackticks=3]="SavingBackticks"})(be||(be={}));let Ue;(De=>{De[De.Property=1]="Property",De[De.Parameter=2]="Parameter",De[De.CallbackParameter=4]="CallbackParameter"})(Ue||(Ue={}));function Ce(De=0,He){let mr=ae,nr=He===void 0?mr.length:De+He;if(He=nr-De,pe.assert(De>=0),pe.assert(De<=nr),pe.assert(nr<=mr.length),!$ot(mr,De))return;let jt,Wa,Ai,uu,pu,Ec=[],Zd=[],Kt=nn;nn|=1<<25;let Dn=t.scanRange(De+3,He-5,hp);return nn=Kt,Dn;function hp(){let te=1,Se,ve=De-(mr.lastIndexOf(` +`,De)+1)+4;function $e(hr){Se||(Se=ve),Ec.push(hr),ve+=hr.length}for(vr();Dy(5););Dy(4)&&(te=0,ve=0);e:for(;;){switch(D()){case 60:G8(Ec),pu||(pu=re()),xr(l(ve)),te=0,Se=void 0;break;case 4:Ec.push(t.getTokenText()),te=0,ve=0;break;case 42:let hr=t.getTokenText();te===1?(te=2,$e(hr)):(pe.assert(te===0),te=1,ve+=hr.length);break;case 5:pe.assert(te!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let lo=t.getTokenText();Se!==void 0&&ve+lo.length>Se&&Ec.push(lo.slice(Se-ve)),ve+=lo.length;break;case 1:break e;case 82:te=2,$e(t.getTokenValue());break;case 19:te=2;let gs=t.getTokenFullStart(),Qa=t.getTokenEnd()-1,xa=x(Qa);if(xa){uu||xy(Ec),Zd.push(X(d.createJSDocText(Ec.join("")),uu??De,gs)),Zd.push(xa),Ec=[],uu=t.getTokenEnd();break}default:te=2,$e(t.getTokenText());break}te===2?Ha(!1):vr()}let Re=Ec.join("").trimEnd();Zd.length&&Re.length&&Zd.push(X(d.createJSDocText(Re),uu??De,pu)),Zd.length&&jt&&pe.assertIsDefined(pu,"having parsed tags implies that the end of the comment span should be set");let Gt=jt&&ui(jt,Wa,Ai);return X(d.createJSDocComment(Zd.length?ui(Zd,De,pu):Re.length?Re:void 0,Gt),De,nr)}function xy(te){for(;te.length&&(te[0]===` +`||te[0]==="\r");)te.shift()}function G8(te){for(;te.length;){let Se=te[te.length-1].trimEnd();if(Se==="")te.pop();else if(Se.lengthlo&&($e.push(_l.slice(lo-te)),hr=2),te+=_l.length;break;case 19:hr=2;let aC=t.getTokenFullStart(),t0=t.getTokenEnd()-1,sC=x(t0);sC?(Re.push(X(d.createJSDocText($e.join("")),Gt??ve,aC)),Re.push(sC),$e=[],Gt=t.getTokenEnd()):gs(t.getTokenText());break;case 62:hr===3?hr=2:hr=3,gs(t.getTokenText());break;case 82:hr!==3&&(hr=2),gs(t.getTokenValue());break;case 42:if(hr===0){hr=1,te+=1;break}default:hr!==3&&(hr=2),gs(t.getTokenText());break}hr===2||hr===3?Qa=Ha(hr===3):Qa=vr()}xy($e);let xa=$e.join("").trimEnd();if(Re.length)return xa.length&&Re.push(X(d.createJSDocText(xa),Gt??ve)),ui(Re,ve,t.getTokenEnd());if(xa.length)return xa}function x(te){let Se=We(j);if(!Se)return;vr(),zs();let ve=C(),$e=[];for(;D()!==20&&D()!==4&&D()!==1;)$e.push(t.getTokenText()),vr();let Re=Se==="link"?d.createJSDocLink:Se==="linkcode"?d.createJSDocLinkCode:d.createJSDocLinkPlain;return X(Re(ve,$e.join("")),te,t.getTokenEnd())}function C(){if(Zo(D())){let te=re(),Se=qi();for(;tr(25);)Se=X(d.createQualifiedName(Se,D()===81?ua(80,!1):qi()),te);for(;D()===81;)hi(),vr(),Se=X(d.createJSDocMemberName(Se,No()),te);return Se}}function j(){if(se(),D()===19&&vr()===60&&Zo(vr())){let te=t.getTokenValue();if(_e(te))return te}}function _e(te){return te==="link"||te==="linkcode"||te==="linkplain"}function Qe(te,Se,ve,$e){return X(d.createJSDocUnknownTag(Se,_(te,re(),ve,$e)),te)}function xr(te){te&&(jt?jt.push(te):(jt=[te],Wa=te.pos),Ai=te.end)}function Ii(){return se(),D()===19?P():void 0}function du(){let te=Dy(23);te&&zs();let Se=Dy(62),ve=iwe();return Se&&bR(62),te&&(zs(),mo(64)&&ti(),ie(24)),{name:ve,isBracketed:te}}function Js(te){switch(te.kind){case 151:return!0;case 189:return Js(te.elementType);default:return Yhe(te)&&kn(te.typeName)&&te.typeName.escapedText==="Object"&&!te.typeArguments}}function Ey(te,Se,ve,$e){let Re=Ii(),Gt=!Re;se();let{name:hr,isBracketed:lo}=du(),gs=se();Gt&&!ye(j)&&(Re=Ii());let Qa=_(te,re(),$e,gs),xa=MIe(Re,hr,ve,$e);xa&&(Re=xa,Gt=!0);let _l=ve===1?d.createJSDocPropertyTag(Se,hr,lo,Re,Gt,Qa):d.createJSDocParameterTag(Se,hr,lo,Re,Gt,Qa);return X(_l,te)}function MIe(te,Se,ve,$e){if(te&&Js(te.type)){let Re=re(),Gt,hr;for(;Gt=We(()=>Z8(ve,$e,Se));)Gt.kind===342||Gt.kind===349?hr=sc(hr,Gt):Gt.kind===346&&_s(Gt.tagName,G.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(hr){let lo=X(d.createJSDocTypeLiteral(hr,te.type.kind===189),Re);return X(d.createJSDocTypeExpression(lo),Re)}}}function jIe(te,Se,ve,$e){Ra(jt,xot)&&Zn(Se.pos,t.getTokenStart(),G._0_tag_already_specified,GD(Se.escapedText));let Re=Ii();return X(d.createJSDocReturnTag(Se,Re,_(te,re(),ve,$e)),te)}function LX(te,Se,ve,$e){Ra(jt,JJ)&&Zn(Se.pos,t.getTokenStart(),G._0_tag_already_specified,GD(Se.escapedText));let Re=P(!0),Gt=ve!==void 0&&$e!==void 0?_(te,re(),ve,$e):void 0;return X(d.createJSDocTypeTag(Se,Re,Gt),te)}function BIe(te,Se,ve,$e){let Re=D()===23||ye(()=>vr()===60&&Zo(vr())&&_e(t.getTokenValue()))?void 0:R(),Gt=ve!==void 0&&$e!==void 0?_(te,re(),ve,$e):void 0;return X(d.createJSDocSeeTag(Se,Re,Gt),te)}function qIe(te,Se,ve,$e){let Re=Ii(),Gt=_(te,re(),ve,$e);return X(d.createJSDocThrowsTag(Se,Re,Gt),te)}function UIe(te,Se,ve,$e){let Re=re(),Gt=zIe(),hr=t.getTokenFullStart(),lo=_(te,hr,ve,$e);lo||(hr=t.getTokenFullStart());let gs=typeof lo!="string"?ui(yJ([X(Gt,Re,hr)],lo),Re):Gt.text+lo;return X(d.createJSDocAuthorTag(Se,gs),te)}function zIe(){let te=[],Se=!1,ve=t.getToken();for(;ve!==1&&ve!==4;){if(ve===30)Se=!0;else{if(ve===60&&!Se)break;if(ve===32&&Se){te.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}te.push(t.getTokenText()),ve=vr()}return d.createJSDocText(te.join(""))}function JIe(te,Se,ve,$e){let Re=$X();return X(d.createJSDocImplementsTag(Se,Re,_(te,re(),ve,$e)),te)}function VIe(te,Se,ve,$e){let Re=$X();return X(d.createJSDocAugmentsTag(Se,Re,_(te,re(),ve,$e)),te)}function KIe(te,Se,ve,$e){let Re=P(!1),Gt=ve!==void 0&&$e!==void 0?_(te,re(),ve,$e):void 0;return X(d.createJSDocSatisfiesTag(Se,Re,Gt),te)}function GIe(te,Se,ve,$e){let Re=t.getTokenFullStart(),Gt;ht()&&(Gt=No());let hr=Xk(Gt,Re,156,!0),lo=by(),gs=Yk(),Qa=ve!==void 0&&$e!==void 0?_(te,re(),ve,$e):void 0;return X(d.createJSDocImportTag(Se,hr,lo,gs,Qa),te)}function $X(){let te=tr(19),Se=re(),ve=HIe();t.setSkipJsDocLeadingAsterisks(!0);let $e=YS();t.setSkipJsDocLeadingAsterisks(!1);let Re=d.createExpressionWithTypeArguments(ve,$e),Gt=X(Re,Se);return te&&(zs(),ie(20)),Gt}function HIe(){let te=re(),Se=zf();for(;tr(25);){let ve=zf();Se=X(k(Se,ve),te)}return Se}function Ty(te,Se,ve,$e,Re){return X(Se(ve,_(te,re(),$e,Re)),te)}function MX(te,Se,ve,$e){let Re=P(!0);return zs(),X(d.createJSDocThisTag(Se,Re,_(te,re(),ve,$e)),te)}function ZIe(te,Se,ve,$e){let Re=P(!0);return zs(),X(d.createJSDocEnumTag(Se,Re,_(te,re(),ve,$e)),te)}function WIe(te,Se,ve,$e){let Re=Ii();se();let Gt=H8();zs();let hr=h(ve),lo;if(!Re||Js(Re.type)){let Qa,xa,_l,aC=!1;for(;(Qa=We(()=>twe(ve)))&&Qa.kind!==346;)if(aC=!0,Qa.kind===345)if(xa){let t0=Ft(G.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);t0&&nO(t0,i1(le,ae,0,0,G.The_tag_was_first_specified_here));break}else xa=Qa;else _l=sc(_l,Qa);if(aC){let t0=Re&&Re.type.kind===189,sC=d.createJSDocTypeLiteral(_l,t0);Re=xa&&xa.typeExpression&&!Js(xa.typeExpression.type)?xa.typeExpression:X(sC,te),lo=Re.end}}lo=lo||hr!==void 0?re():(Gt??Re??Se).end,hr||(hr=_(te,lo,ve,$e));let gs=d.createJSDocTypedefTag(Se,Re,Gt,hr);return X(gs,te,lo)}function H8(te){let Se=t.getTokenStart();if(!Zo(D()))return;let ve=zf();if(tr(25)){let $e=H8(!0),Re=d.createModuleDeclaration(void 0,ve,$e,te?8:void 0);return X(Re,Se)}return te&&(ve.flags|=4096),ve}function QIe(te){let Se=re(),ve,$e;for(;ve=We(()=>Z8(4,te));){if(ve.kind===346){_s(ve.tagName,G.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}$e=sc($e,ve)}return ui($e||[],Se)}function jX(te,Se){let ve=QIe(Se),$e=We(()=>{if(Dy(60)){let Re=l(Se);if(Re&&Re.kind===343)return Re}});return X(d.createJSDocSignature(void 0,ve,$e),te)}function XIe(te,Se,ve,$e){let Re=H8();zs();let Gt=h(ve),hr=jX(te,ve);Gt||(Gt=_(te,re(),ve,$e));let lo=Gt!==void 0?re():hr.end;return X(d.createJSDocCallbackTag(Se,hr,Re,Gt),te,lo)}function YIe(te,Se,ve,$e){zs();let Re=h(ve),Gt=jX(te,ve);Re||(Re=_(te,re(),ve,$e));let hr=Re!==void 0?re():Gt.end;return X(d.createJSDocOverloadTag(Se,Gt,Re),te,hr)}function ewe(te,Se){for(;!kn(te)||!kn(Se);)if(!kn(te)&&!kn(Se)&&te.right.escapedText===Se.right.escapedText)te=te.left,Se=Se.left;else return!1;return te.escapedText===Se.escapedText}function twe(te){return Z8(1,te)}function Z8(te,Se,ve){let $e=!0,Re=!1;for(;;)switch(vr()){case 60:if($e){let Gt=rwe(te,Se);return Gt&&(Gt.kind===342||Gt.kind===349)&&ve&&(kn(Gt.name)||!ewe(ve,Gt.name.left))?!1:Gt}Re=!1;break;case 4:$e=!0,Re=!1;break;case 42:Re&&($e=!1),Re=!0;break;case 80:$e=!1;break;case 1:return!1}}function rwe(te,Se){pe.assert(D()===60);let ve=t.getTokenFullStart();vr();let $e=zf(),Re=se(),Gt;switch($e.escapedText){case"type":return te===1&&LX(ve,$e);case"prop":case"property":Gt=1;break;case"arg":case"argument":case"param":Gt=6;break;case"template":return BX(ve,$e,Se,Re);case"this":return MX(ve,$e,Se,Re);default:return!1}return te&Gt?Ey(ve,$e,te,Se):!1}function nwe(){let te=re(),Se=Dy(23);Se&&zs();let ve=xc(!1,!0),$e=zf(G.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Re;if(Se&&(zs(),ie(64),Re=Uo(16777216,Fb),ie(24)),!Bg($e))return X(d.createTypeParameterDeclaration(ve,$e,void 0,Re),te)}function owe(){let te=re(),Se=[];do{zs();let ve=nwe();ve!==void 0&&Se.push(ve),se()}while(Dy(28));return ui(Se,te)}function BX(te,Se,ve,$e){let Re=D()===19?P():void 0,Gt=owe();return X(d.createJSDocTemplateTag(Se,Re,Gt,_(te,re(),ve,$e)),te)}function Dy(te){return D()===te?(vr(),!0):!1}function iwe(){let te=zf();for(tr(23)&&ie(24);tr(25);){let Se=zf();tr(23)&&ie(24),te=wR(te,Se)}return te}function zf(te){if(!Zo(D()))return ua(80,!te,te||G.Identifier_expected);fo++;let Se=t.getTokenStart(),ve=t.getTokenEnd(),$e=D(),Re=qd(t.getTokenValue()),Gt=X(S(Re,$e),Se,ve);return vr(),Gt}}})(iC=e.JSDocParser||(e.JSDocParser={}))})(Ug||(Ug={}));var Pme=new WeakSet;function Zot(e){Pme.has(e)&&pe.fail("Source file has already been incrementally parsed"),Pme.add(e)}var Eye=new WeakSet;function Wot(e){return Eye.has(e)}function cJ(e){Eye.add(e)}var TO;(e=>{function t(y,g,S,b){if(b=b||pe.shouldAssert(2),d(y,g,S,b),jet(S))return y;if(y.statements.length===0)return Ug.parseSourceFile(y.fileName,g,y.languageVersion,void 0,!0,y.scriptKind,y.setExternalModuleIndicator,y.jsDocParsingMode);Zot(y),Ug.fixupParentReferences(y);let E=y.text,I=f(y),T=c(y,S);d(y,g,T,b),pe.assert(T.span.start<=S.span.start),pe.assert(ud(T.span)===ud(S.span)),pe.assert(ud(CD(T))===ud(CD(S)));let k=CD(T).length-T.span.length;s(y,T.span.start,ud(T.span),ud(CD(T)),k,E,g,b);let F=Ug.parseSourceFile(y.fileName,g,y.languageVersion,I,!0,y.scriptKind,y.setExternalModuleIndicator,y.jsDocParsingMode);return F.commentDirectives=r(y.commentDirectives,F.commentDirectives,T.span.start,ud(T.span),k,E,g,b),F.impliedNodeFormat=y.impliedNodeFormat,Iot(y,F),F}e.updateSourceFile=t;function r(y,g,S,b,E,I,T,k){if(!y)return g;let F,O=!1;for(let N of y){let{range:U,type:ge}=N;if(U.endb){$();let Te={range:{pos:U.pos+E,end:U.end+E},type:ge};F=sc(F,Te),k&&pe.assert(I.substring(U.pos,U.end)===T.substring(Te.range.pos,Te.range.end))}}return $(),F;function $(){O||(O=!0,F?g&&F.push(...g):F=g)}}function n(y,g,S,b,E,I,T){S?F(y):k(y);return;function k(O){let $="";if(T&&o(O)&&($=E.substring(O.pos,O.end)),sme(O,g),ch(O,O.pos+b,O.end+b),T&&o(O)&&pe.assert($===I.substring(O.pos,O.end)),La(O,k,F),jg(O))for(let N of O.jsDoc)k(N);a(O,T)}function F(O){ch(O,O.pos+b,O.end+b);for(let $ of O)k($)}}function o(y){switch(y.kind){case 11:case 9:case 80:return!0}return!1}function i(y,g,S,b,E){pe.assert(y.end>=g,"Adjusting an element that was entirely before the change range"),pe.assert(y.pos<=S,"Adjusting an element that was entirely after the change range"),pe.assert(y.pos<=y.end);let I=Math.min(y.pos,b),T=y.end>=S?y.end+E:Math.min(y.end,b);if(pe.assert(I<=T),y.parent){let k=y.parent;pe.assertGreaterThanOrEqual(I,k.pos),pe.assertLessThanOrEqual(T,k.end)}ch(y,I,T)}function a(y,g){if(g){let S=y.pos,b=E=>{pe.assert(E.pos>=S),S=E.end};if(jg(y))for(let E of y.jsDoc)b(E);La(y,b),pe.assert(S<=y.end)}}function s(y,g,S,b,E,I,T,k){F(y);return;function F($){if(pe.assert($.pos<=$.end),$.pos>S){n($,y,!1,E,I,T,k);return}let N=$.end;if(N>=g){if(cJ($),sme($,y),i($,g,S,b,E),La($,F,O),jg($))for(let U of $.jsDoc)F(U);a($,k);return}pe.assert(NS){n($,y,!0,E,I,T,k);return}let N=$.end;if(N>=g){cJ($),i($,g,S,b,E);for(let U of $)F(U);return}pe.assert(N0&&I<=1;I++){let T=p(y,S);pe.assert(T.pos<=S);let k=T.pos;S=Math.max(0,k-1)}let b=Met(S,ud(g.span)),E=g.newLength+(g.span.start-S);return She(b,E)}function p(y,g){let S=y,b;if(La(y,I),b){let T=E(b);T.pos>S.pos&&(S=T)}return S;function E(T){for(;;){let k=Crt(T);if(k)T=k;else return T}}function I(T){if(!Bg(T))if(T.pos<=g){if(T.pos>=S.pos&&(S=T),gg),!0}}function d(y,g,S,b){let E=y.text;if(S&&(pe.assert(E.length-S.span.length+S.newLength===g.length),b||pe.shouldAssert(3))){let I=E.substr(0,S.span.start),T=g.substr(0,S.span.start);pe.assert(I===T);let k=E.substring(ud(S.span),E.length),F=g.substring(ud(CD(S)),g.length);pe.assert(k===F)}}function f(y){let g=y.statements,S=0;pe.assert(S=O.pos&&T=O.pos&&T{y[y.Value=-1]="Value"})(m||(m={}))})(TO||(TO={}));function Qot(e){return Xot(e)!==void 0}function Xot(e){let t=ihe(e,Qrt,!1);if(t)return t;if(oet(e,".ts")){let r=ohe(e),n=r.lastIndexOf(".d.");if(n>=0)return r.substring(n)}}function Yot(e,t,r,n){if(e){if(e==="import")return 99;if(e==="require")return 1;n(t,r-t,G.resolution_mode_should_be_either_require_or_import)}}function eit(e,t){let r=[];for(let n of Qz(t,0)||ii){let o=t.substring(n.pos,n.end);iit(r,n,o)}e.pragmas=new Map;for(let n of r){if(e.pragmas.has(n.name)){let o=e.pragmas.get(n.name);o instanceof Array?o.push(n.args):e.pragmas.set(n.name,[o,n.args]);continue}e.pragmas.set(n.name,n.args)}}function tit(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,n)=>{switch(n){case"reference":{let o=e.referencedFiles,i=e.typeReferenceDirectives,a=e.libReferenceDirectives;Vc(Pz(r),s=>{let{types:c,lib:p,path:d,["resolution-mode"]:f,preserve:m}=s.arguments,y=m==="true"?!0:void 0;if(s.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(c){let g=Yot(f,c.pos,c.end,t);i.push({pos:c.pos,end:c.end,fileName:c.value,...g?{resolutionMode:g}:{},...y?{preserve:y}:{}})}else p?a.push({pos:p.pos,end:p.end,fileName:p.value,...y?{preserve:y}:{}}):d?o.push({pos:d.pos,end:d.end,fileName:d.value,...y?{preserve:y}:{}}):t(s.range.pos,s.range.end-s.range.pos,G.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Kz(Pz(r),o=>({name:o.arguments.name,path:o.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(let o of r)e.moduleName&&t(o.range.pos,o.range.end-o.range.pos,G.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=o.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{Vc(Pz(r),o=>{(!e.checkJsDirective||o.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:n==="ts-check",end:o.range.end,pos:o.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:pe.fail("Unhandled pragma kind")}})}var qz=new Map;function rit(e){if(qz.has(e))return qz.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return qz.set(e,t),t}var nit=/^\/\/\/\s*<(\S+)\s.*?\/>/m,oit=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function iit(e,t,r){let n=t.kind===2&&nit.exec(r);if(n){let i=n[1].toLowerCase(),a=nhe[i];if(!a||!(a.kind&1))return;if(a.args){let s={};for(let c of a.args){let p=rit(c.name).exec(r);if(!p&&!c.optional)return;if(p){let d=p[2]||p[3];if(c.captureSpan){let f=t.pos+p.index+p[1].length+1;s[c.name]={value:d,pos:f,end:f+d.length}}else s[c.name]=d}}e.push({name:i,args:{arguments:s,range:t}})}else e.push({name:i,args:{arguments:{},range:t}});return}let o=t.kind===2&&oit.exec(r);if(o)return Ome(e,t,2,o);if(t.kind===3){let i=/@(\S+)(\s+(?:\S.*)?)?$/gm,a;for(;a=i.exec(r);)Ome(e,t,4,a)}}function Ome(e,t,r,n){if(!n)return;let o=n[1].toLowerCase(),i=nhe[o];if(!i||!(i.kind&r))return;let a=n[2],s=ait(i,a);s!=="fail"&&e.push({name:o,args:{arguments:s,range:t}})}function ait(e,t){if(!t)return{};if(!e.args)return{};let r=t.trim().split(/\s+/),n={};for(let o=0;on.kind<310||n.kind>352);return r.kind<167?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),r=h1(t);if(r)return r.kind<167?r:r.getLastToken(e)}forEachChild(e,t){return La(this,e,t)}};function sit(e,t){let r=[];if(Ott(e))return e.forEachChild(a=>{r.push(a)}),r;UD.setText((t||e.getSourceFile()).text);let n=e.pos,o=a=>{zD(r,n,a.pos,e),r.push(a),n=a.end},i=a=>{zD(r,n,a.pos,e),r.push(cit(a,e)),n=a.end};return Vc(e.jsDoc,o),n=e.pos,e.forEachChild(o,i),zD(r,n,e.end,e),UD.setText(void 0),r}function zD(e,t,r,n){for(UD.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function pO(e,t){if(!e)return ii;let r=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(wye))){let n=new Set;for(let o of e){let i=kye(t,o,a=>{var s;if(!n.has(a))return n.add(a),o.kind===178||o.kind===179?a.getContextualJsDocTags(o,t):((s=a.declarations)==null?void 0:s.length)===1?a.getJsDocTags(t):void 0});i&&(r=[...i,...r])}}return r}function qD(e,t){if(!e)return ii;let r=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(wye))){let n=new Set;for(let o of e){let i=kye(t,o,a=>{if(!n.has(a))return n.add(a),o.kind===178||o.kind===179?a.getContextualDocumentationComment(o,t):a.getDocumentationComment(t)});i&&(r=r.length===0?i.slice():i.concat(lineBreakPart(),r))}}return r}function kye(e,t,r){var n;let o=((n=t.parent)==null?void 0:n.kind)===177?t.parent.parent:t.parent;if(!o)return;let i=Srt(t);return IYe(urt(o),a=>{let s=e.getTypeAtLocation(a),c=i&&s.symbol?e.getTypeOfSymbol(s.symbol):s,p=e.getPropertyOfType(c,t.symbol.name);return p?r(p):void 0})}var dit=class extends GJ{constructor(e,t,r){super(e,t,r)}update(e,t){return Hot(this,e,t)}getLineAndCharacterOfPosition(e){return _he(this,e)}getLineStarts(){return Wz(this)}getPositionOfLineAndCharacter(e,t,r){return Aet(Wz(this),e,t,this.text,r)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts(),n;t+1>=r.length&&(n=this.getEnd()),n||(n=r[t+1]-1);let o=this.getFullText();return o[n]===` +`&&o[n-1]==="\r"?n-1:n}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=qYe();return this.forEachChild(o),e;function t(i){let a=n(i);a&&e.add(a,i)}function r(i){let a=e.get(i);return a||e.set(i,a=[]),a}function n(i){let a=wJ(i);return a&&(Zhe(a)&&nf(a.expression)?a.expression.name.text:whe(a)?getNameFromPropertyName(a):void 0)}function o(i){switch(i.kind){case 263:case 219:case 175:case 174:let a=i,s=n(a);if(s){let d=r(s),f=h1(d);f&&a.parent===f.parent&&a.symbol===f.symbol?a.body&&!f.body&&(d[d.length-1]=a):d.push(a)}La(i,o);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:t(i),La(i,o);break;case 170:if(!eA(i,31))break;case 261:case 209:{let d=i;if(xtt(d.name)){La(d.name,o);break}d.initializer&&o(d.initializer)}case 307:case 173:case 172:t(i);break;case 279:let c=i;c.exportClause&&(oot(c.exportClause)?Vc(c.exportClause.elements,o):o(c.exportClause.name));break;case 273:let p=i.importClause;p&&(p.name&&t(p.name),p.namedBindings&&(p.namedBindings.kind===275?t(p.namedBindings):Vc(p.namedBindings.elements,o)));break;case 227:NJ(i)!==0&&t(i);default:La(i,o)}}}},_it=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(n=>n)}getLineAndCharacterOfPosition(e){return _he(this,e)}};function fit(){return{getNodeConstructor:()=>GJ,getTokenConstructor:()=>Dye,getIdentifierConstructor:()=>Aye,getPrivateIdentifierConstructor:()=>Iye,getSourceFileConstructor:()=>dit,getSymbolConstructor:()=>lit,getTypeConstructor:()=>uit,getSignatureConstructor:()=>pit,getSourceMapSourceConstructor:()=>_it}}var mit=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],Bjt=[...mit,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];jrt(fit());var Cye=new Proxy({},{get:()=>!0}),Pye=Cye["4.8"];function md(e,t=!1){if(e!=null){if(Pye){if(t||KJ(e)){let r=Ket(e);return r?[...r]:void 0}return}return e.modifiers?.filter(r=>!qJ(r))}}function d1(e,t=!1){if(e!=null){if(Pye){if(t||Rot(e)){let r=Vet(e);return r?[...r]:void 0}return}return e.decorators?.filter(qJ)}}var hit={},Oye=new Proxy({},{get:(e,t)=>t}),yit=Oye,git=Oye,H=yit,ma=git,Sit=Cye["5.0"],_t=Qt,vit=new Set([_t.AmpersandAmpersandToken,_t.BarBarToken,_t.QuestionQuestionToken]),bit=new Set([Qt.AmpersandAmpersandEqualsToken,Qt.AmpersandEqualsToken,Qt.AsteriskAsteriskEqualsToken,Qt.AsteriskEqualsToken,Qt.BarBarEqualsToken,Qt.BarEqualsToken,Qt.CaretEqualsToken,Qt.EqualsToken,Qt.GreaterThanGreaterThanEqualsToken,Qt.GreaterThanGreaterThanGreaterThanEqualsToken,Qt.LessThanLessThanEqualsToken,Qt.MinusEqualsToken,Qt.PercentEqualsToken,Qt.PlusEqualsToken,Qt.QuestionQuestionEqualsToken,Qt.SlashEqualsToken]),xit=new Set([_t.AmpersandAmpersandToken,_t.AmpersandToken,_t.AsteriskAsteriskToken,_t.AsteriskToken,_t.BarBarToken,_t.BarToken,_t.CaretToken,_t.EqualsEqualsEqualsToken,_t.EqualsEqualsToken,_t.ExclamationEqualsEqualsToken,_t.ExclamationEqualsToken,_t.GreaterThanEqualsToken,_t.GreaterThanGreaterThanGreaterThanToken,_t.GreaterThanGreaterThanToken,_t.GreaterThanToken,_t.InKeyword,_t.InstanceOfKeyword,_t.LessThanEqualsToken,_t.LessThanLessThanToken,_t.LessThanToken,_t.MinusToken,_t.PercentToken,_t.PlusToken,_t.SlashToken]);function Eit(e){return bit.has(e.kind)}function Tit(e){return vit.has(e.kind)}function Dit(e){return xit.has(e.kind)}function ah(e){return io(e)}function Ait(e){return e.kind!==_t.SemicolonClassElement}function Gr(e,t){return md(t)?.some(r=>r.kind===e)===!0}function Iit(e){let t=md(e);return t==null?null:t[t.length-1]??null}function wit(e){return e.kind===_t.CommaToken}function kit(e){return e.kind===_t.SingleLineCommentTrivia||e.kind===_t.MultiLineCommentTrivia}function Cit(e){return e.kind===_t.JSDocComment}function Pit(e){if(Eit(e))return{type:H.AssignmentExpression,operator:ah(e.kind)};if(Tit(e))return{type:H.LogicalExpression,operator:ah(e.kind)};if(Dit(e))return{type:H.BinaryExpression,operator:ah(e.kind)};throw new Error(`Unexpected binary operator ${io(e.kind)}`)}function dO(e,t){let r=t.getLineAndCharacterOfPosition(e);return{column:r.character,line:r.line+1}}function Mg(e,t){let[r,n]=e.map(o=>dO(o,t));return{end:n,start:r}}function Oit(e){if(e.kind===Qt.Block)switch(e.parent.kind){case Qt.Constructor:case Qt.GetAccessor:case Qt.SetAccessor:case Qt.ArrowFunction:case Qt.FunctionExpression:case Qt.FunctionDeclaration:case Qt.MethodDeclaration:return!0;default:return!1}return!0}function a1(e,t){return[e.getStart(t),e.getEnd()]}function Nit(e){return e.kind>=_t.FirstToken&&e.kind<=_t.LastToken}function Nye(e){return e.kind>=_t.JsxElement&&e.kind<=_t.JsxAttribute}function lJ(e){return e.flags&Jc.Let?"let":(e.flags&Jc.AwaitUsing)===Jc.AwaitUsing?"await using":e.flags&Jc.Const?"const":e.flags&Jc.Using?"using":"var"}function Rg(e){let t=md(e);if(t!=null)for(let r of t)switch(r.kind){case _t.PublicKeyword:return"public";case _t.ProtectedKeyword:return"protected";case _t.PrivateKeyword:return"private";default:break}}function Bu(e,t,r){return n(t);function n(o){return ptt(o)&&o.pos===e.end?o:Uit(o.getChildren(r),i=>(i.pos<=e.pos&&i.end>e.end||i.pos===e.end)&&qit(i,r)?n(i):void 0)}}function Fit(e,t){let r=e;for(;r;){if(t(r))return r;r=r.parent}}function Rit(e){return!!Fit(e,Nye)}function Nme(e){return _1(0,e,/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,t=>{let r=t.slice(1,-1);if(r[0]==="#"){let n=r[1]==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return n>1114111?t:String.fromCodePoint(n)}return hit[r]||t})}function s1(e){return e.kind===_t.ComputedPropertyName}function Fme(e){return!!e.questionToken}function Fye(e){return e.type===H.ChainExpression}function Lit(e,t){return Fye(t)&&e.expression.kind!==Qt.ParenthesizedExpression}function $it(e){if(e.kind===_t.NullKeyword)return ma.Null;if(e.kind>=_t.FirstKeyword&&e.kind<=_t.LastFutureReservedWord)return e.kind===_t.FalseKeyword||e.kind===_t.TrueKeyword?ma.Boolean:ma.Keyword;if(e.kind>=_t.FirstPunctuation&&e.kind<=_t.LastPunctuation)return ma.Punctuator;if(e.kind>=_t.NoSubstitutionTemplateLiteral&&e.kind<=_t.TemplateTail)return ma.Template;switch(e.kind){case _t.NumericLiteral:case _t.BigIntLiteral:return ma.Numeric;case _t.PrivateIdentifier:return ma.PrivateIdentifier;case _t.JsxText:return ma.JSXText;case _t.StringLiteral:return e.parent.kind===_t.JsxAttribute||e.parent.kind===_t.JsxElement?ma.JSXText:ma.String;case _t.RegularExpressionLiteral:return ma.RegularExpression;case _t.Identifier:case _t.ConstructorKeyword:case _t.GetKeyword:case _t.SetKeyword:default:}return e.kind===_t.Identifier&&(Nye(e.parent)||e.parent.kind===_t.PropertyAccessExpression&&Rit(e))?ma.JSXIdentifier:ma.Identifier}function Mit(e,t){let r=e.kind===_t.JsxText?e.getFullStart():e.getStart(t),n=e.getEnd(),o=t.text.slice(r,n),i=$it(e),a=[r,n],s=Mg(a,t);return i===ma.RegularExpression?{type:i,loc:s,range:a,regex:{flags:o.slice(o.lastIndexOf("/")+1),pattern:o.slice(1,o.lastIndexOf("/"))},value:o}:i===ma.PrivateIdentifier?{type:i,loc:s,range:a,value:o.slice(1)}:{type:i,loc:s,range:a,value:o}}function jit(e){let t=[];function r(n){kit(n)||Cit(n)||(Nit(n)&&n.kind!==_t.EndOfFileToken?t.push(Mit(n,e)):n.getChildren(e).forEach(r))}return r(e),t}var Bit=class extends Error{fileName;location;constructor(e,t,r){super(e),this.fileName=t,this.location=r,Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:new.target.name})}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};function ZJ(e,t,r,n=r){let[o,i]=[r,n].map(a=>{let{character:s,line:c}=t.getLineAndCharacterOfPosition(a);return{column:s,line:c+1,offset:a}});return new Bit(e,t.fileName,{end:i,start:o})}function qit(e,t){return e.kind===_t.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}function Uit(e,t){if(e!==void 0)for(let r=0;r=0&&e.kind!==mt.EndOfFileToken}function Rme(e){return!Git(e)}function Hit(e){return Gr(mt.AbstractKeyword,e)}function Zit(e){if(e.parameters.length&&!yye(e)){let t=e.parameters[0];if(Wit(t))return t}return null}function Wit(e){return Rye(e.name)}function Qit(e){return vhe(e.parent,khe)}function Xit(e){switch(e.kind){case mt.ClassDeclaration:return!0;case mt.ClassExpression:return!0;case mt.PropertyDeclaration:{let{parent:t}=e;return!!(EO(t)||g1(t)&&!Hit(e))}case mt.GetAccessor:case mt.SetAccessor:case mt.MethodDeclaration:{let{parent:t}=e;return!!e.body&&(EO(t)||g1(t))}case mt.Parameter:{let{parent:t}=e,r=t.parent;return!!t&&"body"in t&&!!t.body&&(t.kind===mt.Constructor||t.kind===mt.MethodDeclaration||t.kind===mt.SetAccessor)&&Zit(t)!==e&&!!r&&r.kind===mt.ClassDeclaration}}return!1}function Yit(e){return!!("illegalDecorators"in e&&e.illegalDecorators?.length)}function zi(e,t){let r=e.getSourceFile(),n=e.getStart(r),o=e.getEnd();throw ZJ(t,r,n,o)}function eat(e){Yit(e)&&zi(e.illegalDecorators[0],"Decorators are not valid here.");for(let t of d1(e,!0)??[])Xit(e)||(oJ(e)&&!Rme(e.body)?zi(t,"A decorator can only decorate a method implementation, not an overload."):zi(t,"Decorators are not valid here."));for(let t of md(e,!0)??[]){if(t.kind!==mt.ReadonlyKeyword&&((e.kind===mt.PropertySignature||e.kind===mt.MethodSignature)&&zi(t,`'${io(t.kind)}' modifier cannot appear on a type member`),e.kind===mt.IndexSignature&&(t.kind!==mt.StaticKeyword||!g1(e.parent))&&zi(t,`'${io(t.kind)}' modifier cannot appear on an index signature`)),t.kind!==mt.InKeyword&&t.kind!==mt.OutKeyword&&t.kind!==mt.ConstKeyword&&e.kind===mt.TypeParameter&&zi(t,`'${io(t.kind)}' modifier cannot appear on a type parameter`),(t.kind===mt.InKeyword||t.kind===mt.OutKeyword)&&(e.kind!==mt.TypeParameter||!(zJ(e.parent)||g1(e.parent)||lye(e.parent)))&&zi(t,`'${io(t.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),t.kind===mt.ReadonlyKeyword&&e.kind!==mt.PropertyDeclaration&&e.kind!==mt.PropertySignature&&e.kind!==mt.IndexSignature&&e.kind!==mt.Parameter&&zi(t,"'readonly' modifier can only appear on a property declaration or index signature."),t.kind===mt.DeclareKeyword&&g1(e.parent)&&!bO(e)&&zi(t,`'${io(t.kind)}' modifier cannot appear on class elements of this kind.`),t.kind===mt.DeclareKeyword&&IO(e)){let r=lJ(e.declarationList);(r==="using"||r==="await using")&&zi(t,`'declare' modifier cannot appear on a '${r}' declaration.`)}if(t.kind===mt.AbstractKeyword&&e.kind!==mt.ClassDeclaration&&e.kind!==mt.ConstructorType&&e.kind!==mt.MethodDeclaration&&e.kind!==mt.PropertyDeclaration&&e.kind!==mt.GetAccessor&&e.kind!==mt.SetAccessor&&zi(t,`'${io(t.kind)}' modifier can only appear on a class, method, or property declaration.`),(t.kind===mt.StaticKeyword||t.kind===mt.PublicKeyword||t.kind===mt.ProtectedKeyword||t.kind===mt.PrivateKeyword)&&(e.parent.kind===mt.ModuleBlock||e.parent.kind===mt.SourceFile)&&zi(t,`'${io(t.kind)}' modifier cannot appear on a module or namespace element.`),t.kind===mt.AccessorKeyword&&e.kind!==mt.PropertyDeclaration&&zi(t,"'accessor' modifier can only appear on a property declaration."),t.kind===mt.AsyncKeyword&&e.kind!==mt.MethodDeclaration&&e.kind!==mt.FunctionDeclaration&&e.kind!==mt.FunctionExpression&&e.kind!==mt.ArrowFunction&&zi(t,"'async' modifier cannot be used here."),e.kind===mt.Parameter&&(t.kind===mt.StaticKeyword||t.kind===mt.ExportKeyword||t.kind===mt.DeclareKeyword||t.kind===mt.AsyncKeyword)&&zi(t,`'${io(t.kind)}' modifier cannot appear on a parameter.`),t.kind===mt.PublicKeyword||t.kind===mt.ProtectedKeyword||t.kind===mt.PrivateKeyword)for(let r of md(e)??[])r!==t&&(r.kind===mt.PublicKeyword||r.kind===mt.ProtectedKeyword||r.kind===mt.PrivateKeyword)&&zi(r,"Accessibility modifier already seen.");if(e.kind===mt.Parameter&&(t.kind===mt.PublicKeyword||t.kind===mt.PrivateKeyword||t.kind===mt.ProtectedKeyword||t.kind===mt.ReadonlyKeyword||t.kind===mt.OverrideKeyword)){let r=Qit(e);r?.kind===mt.Constructor&&Rme(r.body)||zi(t,"A parameter property is only allowed in a constructor implementation.");let n=e;n.dotDotDotToken&&zi(t,"A parameter property cannot be a rest parameter."),(n.name.kind===mt.ArrayBindingPattern||n.name.kind===mt.ObjectBindingPattern)&&zi(t,"A parameter property may not be declared using a binding pattern.")}t.kind!==mt.AsyncKeyword&&e.kind===mt.MethodDeclaration&&e.parent.kind===mt.ObjectLiteralExpression&&zi(t,`'${io(t.kind)}' modifier cannot be used here.`)}}var B=Qt;function tat(e){return ZJ("message"in e&&e.message||e.messageText,e.file,e.start)}function rat(e){return nf(e)&&kn(e.name)&&Lye(e.expression)}function Lye(e){return e.kind===B.Identifier||rat(e)}var nat=class{allowPattern=!1;ast;esTreeNodeToTSNodeMap=new WeakMap;options;tsNodeToESTreeNodeMap=new WeakMap;constructor(e,t){this.ast=e,this.options={...t}}#t(e,t){let r=t===Qt.ForInStatement?"for...in":"for...of";if(rot(e)){e.declarations.length!==1&&this.#e(e,`Only a single variable declaration is allowed in a '${r}' statement.`);let n=e.declarations[0];n.initializer?this.#e(n,`The variable declaration of a '${r}' statement cannot have an initializer.`):n.type&&this.#e(n,`The variable declaration of a '${r}' statement cannot have a type annotation.`),t===Qt.ForInStatement&&e.flags&Jc.Using&&this.#e(e,"The left-hand side of a 'for...in' statement cannot be a 'using' declaration.")}else!uJ(e)&&e.kind!==Qt.ObjectLiteralExpression&&e.kind!==Qt.ArrayLiteralExpression&&this.#e(e,`The left-hand side of a '${r}' statement must be a variable or a property access.`)}#r(e){this.options.allowInvalidAST||eat(e)}#e(e,t){if(this.options.allowInvalidAST)return;let r,n;throw Array.isArray(e)?[r,n]=e:typeof e=="number"?r=n=e:(r=e.getStart(this.ast),n=e.getEnd()),ZJ(t,this.ast,r,n)}#n(e,t,r,n=!1){let o=n;return Object.defineProperty(e,t,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>e[r]:()=>(o||((void 0)(`The '${t}' property is deprecated on ${e.type} nodes. Use '${r}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),o=!0),e[r]),set(i){Object.defineProperty(e,t,{enumerable:!0,value:i,writable:!0})}}),e}#o(e,t,r,n){let o=!1;return Object.defineProperty(e,t,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>n:()=>{if(!o){let i=`The '${t}' property is deprecated on ${e.type} nodes.`;r&&(i+=` Use ${r} instead.`),i+=" See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.",(void 0)(i,"DeprecationWarning"),o=!0}return n},set(i){Object.defineProperty(e,t,{enumerable:!0,value:i,writable:!0})}}),e}assertModuleSpecifier(e,t){!t&&e.moduleSpecifier==null&&this.#e(e,"Module specifier must be a string literal."),e.moduleSpecifier&&e.moduleSpecifier?.kind!==B.StringLiteral&&this.#e(e.moduleSpecifier,"Module specifier must be a string literal.")}convertBindingNameWithTypeAnnotation(e,t,r){let n=this.convertPattern(e);return t&&(n.typeAnnotation=this.convertTypeAnnotation(t,r),this.fixParentLocation(n,n.typeAnnotation.range)),n}convertBodyExpressions(e,t){let r=Oit(t);return e.map(n=>{let o=this.convertChild(n);if(r){if(o?.expression&&aye(n)&&b1(n.expression)){let i=o.expression.raw;return o.directive=i.slice(1,-1),o}r=!1}return o}).filter(n=>n)}convertChainExpression(e,t){let{child:r,isOptional:n}=e.type===H.MemberExpression?{child:e.object,isOptional:e.optional}:e.type===H.CallExpression?{child:e.callee,isOptional:e.optional}:{child:e.expression,isOptional:!1},o=Lit(t,r);if(!o&&!n)return e;if(o&&Fye(r)){let i=r.expression;e.type===H.MemberExpression?e.object=i:e.type===H.CallExpression?e.callee=i:e.expression=i}return this.createNode(t,{type:H.ChainExpression,expression:e})}convertChild(e,t){return this.converter(e,t,!1)}convertChildren(e,t){return e.map(r=>this.converter(r,t,!1))}convertPattern(e,t){return this.converter(e,t,!0)}convertTypeAnnotation(e,t){let r=t?.kind===B.FunctionType||t?.kind===B.ConstructorType?2:1,n=[e.getFullStart()-r,e.end],o=Mg(n,this.ast);return{type:H.TSTypeAnnotation,loc:o,range:n,typeAnnotation:this.convertChild(e)}}convertTypeArgumentsToTypeParameterInstantiation(e,t){let r=Bu(e,this.ast,this.ast),n=[e.pos-1,r.end];return e.length===0&&this.#e(n,"Type argument list cannot be empty."),this.createNode(t,{type:H.TSTypeParameterInstantiation,range:n,params:this.convertChildren(e)})}convertTSTypeParametersToTypeParametersDeclaration(e){let t=Bu(e,this.ast,this.ast),r=[e.pos-1,t.end];return e.length===0&&this.#e(r,"Type parameter list cannot be empty."),{type:H.TSTypeParameterDeclaration,loc:Mg(r,this.ast),range:r,params:this.convertChildren(e)}}convertParameters(e){return e?.length?e.map(t=>{let r=this.convertChild(t);return r.decorators=this.convertChildren(d1(t)??[]),r}):[]}converter(e,t,r){if(!e)return null;this.#r(e);let n=this.allowPattern;r!=null&&(this.allowPattern=r);let o=this.convertNode(e,t??e.parent);return this.registerTSNodeInNodeMap(e,o),this.allowPattern=n,o}convertImportAttributes(e){let t=e.attributes??e.assertClause;return this.convertChildren(t?.elements??[])}convertJSXIdentifier(e){let t=this.createNode(e,{type:H.JSXIdentifier,name:e.getText()});return this.registerTSNodeInNodeMap(e,t),t}convertJSXNamespaceOrIdentifier(e){if(e.kind===Qt.JsxNamespacedName){let n=this.createNode(e,{type:H.JSXNamespacedName,name:this.createNode(e.name,{type:H.JSXIdentifier,name:e.name.text}),namespace:this.createNode(e.namespace,{type:H.JSXIdentifier,name:e.namespace.text})});return this.registerTSNodeInNodeMap(e,n),n}let t=e.getText(),r=t.indexOf(":");if(r>0){let n=a1(e,this.ast),o=this.createNode(e,{type:H.JSXNamespacedName,range:n,name:this.createNode(e,{type:H.JSXIdentifier,range:[n[0]+r+1,n[1]],name:t.slice(r+1)}),namespace:this.createNode(e,{type:H.JSXIdentifier,range:[n[0],n[0]+r],name:t.slice(0,r)})});return this.registerTSNodeInNodeMap(e,o),o}return this.convertJSXIdentifier(e)}convertJSXTagName(e,t){let r;switch(e.kind){case B.PropertyAccessExpression:e.name.kind===B.PrivateIdentifier&&this.#e(e.name,"Non-private identifier expected."),r=this.createNode(e,{type:H.JSXMemberExpression,object:this.convertJSXTagName(e.expression,t),property:this.convertJSXIdentifier(e.name)});break;case B.ThisKeyword:case B.Identifier:default:return this.convertJSXNamespaceOrIdentifier(e)}return this.registerTSNodeInNodeMap(e,r),r}convertMethodSignature(e){return this.createNode(e,{type:H.TSMethodSignature,accessibility:Rg(e),computed:s1(e.name),key:this.convertChild(e.name),kind:(()=>{switch(e.kind){case B.GetAccessor:return"get";case B.SetAccessor:return"set";case B.MethodSignature:return"method"}})(),optional:Fme(e),params:this.convertParameters(e.parameters),readonly:Gr(B.ReadonlyKeyword,e),returnType:e.type&&this.convertTypeAnnotation(e.type,e),static:Gr(B.StaticKeyword,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)})}fixParentLocation(e,t){t[0]e.range[1]&&(e.range[1]=t[1],e.loc.end=dO(e.range[1],this.ast))}convertNode(e,t){switch(e.kind){case B.SourceFile:return this.createNode(e,{type:H.Program,range:[e.getStart(this.ast),e.endOfFileToken.end],body:this.convertBodyExpressions(e.statements,e),comments:void 0,sourceType:e.externalModuleIndicator?"module":"script",tokens:void 0});case B.Block:return this.createNode(e,{type:H.BlockStatement,body:this.convertBodyExpressions(e.statements,e)});case B.Identifier:return Jit(e)?this.createNode(e,{type:H.ThisExpression}):this.createNode(e,{type:H.Identifier,decorators:[],name:e.text,optional:!1,typeAnnotation:void 0});case B.PrivateIdentifier:return this.createNode(e,{type:H.PrivateIdentifier,name:e.text.slice(1)});case B.WithStatement:return this.createNode(e,{type:H.WithStatement,body:this.convertChild(e.statement),object:this.convertChild(e.expression)});case B.ReturnStatement:return this.createNode(e,{type:H.ReturnStatement,argument:this.convertChild(e.expression)});case B.LabeledStatement:return this.createNode(e,{type:H.LabeledStatement,body:this.convertChild(e.statement),label:this.convertChild(e.label)});case B.ContinueStatement:return this.createNode(e,{type:H.ContinueStatement,label:this.convertChild(e.label)});case B.BreakStatement:return this.createNode(e,{type:H.BreakStatement,label:this.convertChild(e.label)});case B.IfStatement:return this.createNode(e,{type:H.IfStatement,alternate:this.convertChild(e.elseStatement),consequent:this.convertChild(e.thenStatement),test:this.convertChild(e.expression)});case B.SwitchStatement:return e.caseBlock.clauses.filter(r=>r.kind===B.DefaultClause).length>1&&this.#e(e,"A 'default' clause cannot appear more than once in a 'switch' statement."),this.createNode(e,{type:H.SwitchStatement,cases:this.convertChildren(e.caseBlock.clauses),discriminant:this.convertChild(e.expression)});case B.CaseClause:case B.DefaultClause:return this.createNode(e,{type:H.SwitchCase,consequent:this.convertChildren(e.statements),test:e.kind===B.CaseClause?this.convertChild(e.expression):null});case B.ThrowStatement:return e.expression.end===e.expression.pos&&this.#e(e,"A throw statement must throw an expression."),this.createNode(e,{type:H.ThrowStatement,argument:this.convertChild(e.expression)});case B.TryStatement:return this.createNode(e,{type:H.TryStatement,block:this.convertChild(e.tryBlock),finalizer:this.convertChild(e.finallyBlock),handler:this.convertChild(e.catchClause)});case B.CatchClause:return e.variableDeclaration?.initializer&&this.#e(e.variableDeclaration.initializer,"Catch clause variable cannot have an initializer."),this.createNode(e,{type:H.CatchClause,body:this.convertChild(e.block),param:e.variableDeclaration?this.convertBindingNameWithTypeAnnotation(e.variableDeclaration.name,e.variableDeclaration.type):null});case B.WhileStatement:return this.createNode(e,{type:H.WhileStatement,body:this.convertChild(e.statement),test:this.convertChild(e.expression)});case B.DoStatement:return this.createNode(e,{type:H.DoWhileStatement,body:this.convertChild(e.statement),test:this.convertChild(e.expression)});case B.ForStatement:return this.createNode(e,{type:H.ForStatement,body:this.convertChild(e.statement),init:this.convertChild(e.initializer),test:this.convertChild(e.condition),update:this.convertChild(e.incrementor)});case B.ForInStatement:return this.#t(e.initializer,e.kind),this.createNode(e,{type:H.ForInStatement,body:this.convertChild(e.statement),left:this.convertPattern(e.initializer),right:this.convertChild(e.expression)});case B.ForOfStatement:return this.#t(e.initializer,e.kind),this.createNode(e,{type:H.ForOfStatement,await:!!(e.awaitModifier&&e.awaitModifier.kind===B.AwaitKeyword),body:this.convertChild(e.statement),left:this.convertPattern(e.initializer),right:this.convertChild(e.expression)});case B.FunctionDeclaration:{let r=Gr(B.DeclareKeyword,e),n=Gr(B.AsyncKeyword,e),o=!!e.asteriskToken;r?e.body?this.#e(e,"An implementation cannot be declared in ambient contexts."):n?this.#e(e,"'async' modifier cannot be used in an ambient context."):o&&this.#e(e,"Generators are not allowed in an ambient context."):!e.body&&o&&this.#e(e,"A function signature cannot be declared as a generator.");let i=this.createNode(e,{type:e.body?H.FunctionDeclaration:H.TSDeclareFunction,async:n,body:this.convertChild(e.body)||void 0,declare:r,expression:!1,generator:o,id:this.convertChild(e.name),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,i)}case B.VariableDeclaration:{let r=!!e.exclamationToken,n=this.convertChild(e.initializer),o=this.convertBindingNameWithTypeAnnotation(e.name,e.type,e);return r&&(n?this.#e(e,"Declarations with initializers cannot also have definite assignment assertions."):(o.type!==H.Identifier||!o.typeAnnotation)&&this.#e(e,"Declarations with definite assignment assertions must also have type annotations.")),this.createNode(e,{type:H.VariableDeclarator,definite:r,id:o,init:n})}case B.VariableStatement:{let r=this.createNode(e,{type:H.VariableDeclaration,declarations:this.convertChildren(e.declarationList.declarations),declare:Gr(B.DeclareKeyword,e),kind:lJ(e.declarationList)});return r.declarations.length||this.#e(e,"A variable declaration list must have at least one variable declarator."),(r.kind==="using"||r.kind==="await using")&&e.declarationList.declarations.forEach((n,o)=>{r.declarations[o].init==null&&this.#e(n,`'${r.kind}' declarations must be initialized.`),r.declarations[o].id.type!==H.Identifier&&this.#e(n.name,`'${r.kind}' declarations may not have binding patterns.`)}),(r.declare||["await using","const","using"].includes(r.kind))&&e.declarationList.declarations.forEach((n,o)=>{r.declarations[o].definite&&this.#e(n,"A definite assignment assertion '!' is not permitted in this context.")}),r.declare&&e.declarationList.declarations.forEach((n,o)=>{r.declarations[o].init&&(["let","var"].includes(r.kind)||r.declarations[o].id.typeAnnotation)&&this.#e(n,"Initializers are not permitted in ambient contexts.")}),this.fixExports(e,r)}case B.VariableDeclarationList:{let r=this.createNode(e,{type:H.VariableDeclaration,declarations:this.convertChildren(e.declarations),declare:!1,kind:lJ(e)});return(r.kind==="using"||r.kind==="await using")&&e.declarations.forEach((n,o)=>{r.declarations[o].init!=null&&this.#e(n,`'${r.kind}' declarations may not be initialized in for statement.`),r.declarations[o].id.type!==H.Identifier&&this.#e(n.name,`'${r.kind}' declarations may not have binding patterns.`)}),r}case B.ExpressionStatement:return this.createNode(e,{type:H.ExpressionStatement,directive:void 0,expression:this.convertChild(e.expression)});case B.ThisKeyword:return this.createNode(e,{type:H.ThisExpression});case B.ArrayLiteralExpression:return this.allowPattern?this.createNode(e,{type:H.ArrayPattern,decorators:[],elements:e.elements.map(r=>this.convertPattern(r)),optional:!1,typeAnnotation:void 0}):this.createNode(e,{type:H.ArrayExpression,elements:this.convertChildren(e.elements)});case B.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(e,{type:H.ObjectPattern,decorators:[],optional:!1,properties:e.properties.map(n=>this.convertPattern(n)),typeAnnotation:void 0});let r=[];for(let n of e.properties)(n.kind===B.GetAccessor||n.kind===B.SetAccessor||n.kind===B.MethodDeclaration)&&!n.body&&this.#e(n.end-1,"'{' expected."),r.push(this.convertChild(n));return this.createNode(e,{type:H.ObjectExpression,properties:r})}case B.PropertyAssignment:{let{exclamationToken:r,questionToken:n}=e;return n&&this.#e(n,"A property assignment cannot have a question token."),r&&this.#e(r,"A property assignment cannot have an exclamation token."),this.createNode(e,{type:H.Property,computed:s1(e.name),key:this.convertChild(e.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.converter(e.initializer,e,this.allowPattern)})}case B.ShorthandPropertyAssignment:{let{exclamationToken:r,modifiers:n,questionToken:o}=e;return n&&this.#e(n[0],"A shorthand property assignment cannot have modifiers."),o&&this.#e(o,"A shorthand property assignment cannot have a question token."),r&&this.#e(r,"A shorthand property assignment cannot have an exclamation token."),e.objectAssignmentInitializer?this.createNode(e,{type:H.Property,computed:!1,key:this.convertChild(e.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.createNode(e,{type:H.AssignmentPattern,decorators:[],left:this.convertPattern(e.name),optional:!1,right:this.convertChild(e.objectAssignmentInitializer),typeAnnotation:void 0})}):this.createNode(e,{type:H.Property,computed:!1,key:this.convertChild(e.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.convertChild(e.name)})}case B.ComputedPropertyName:return this.convertChild(e.expression);case B.PropertyDeclaration:{let r=Gr(B.AbstractKeyword,e);r&&e.initializer&&this.#e(e.initializer,"Abstract property cannot have an initializer."),e.name.kind===B.StringLiteral&&e.name.text==="constructor"&&this.#e(e.name,"Classes may not have a field named 'constructor'.");let n=Gr(B.AccessorKeyword,e),o=n?r?H.TSAbstractAccessorProperty:H.AccessorProperty:r?H.TSAbstractPropertyDefinition:H.PropertyDefinition,i=this.convertChild(e.name);return this.createNode(e,{type:o,accessibility:Rg(e),computed:s1(e.name),declare:Gr(B.DeclareKeyword,e),decorators:this.convertChildren(d1(e)??[]),definite:!!e.exclamationToken,key:i,optional:(i.type===H.Literal||e.name.kind===B.Identifier||e.name.kind===B.ComputedPropertyName||e.name.kind===B.PrivateIdentifier)&&!!e.questionToken,override:Gr(B.OverrideKeyword,e),readonly:Gr(B.ReadonlyKeyword,e),static:Gr(B.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e),value:r?null:this.convertChild(e.initializer)})}case B.GetAccessor:case B.SetAccessor:if(e.parent.kind===B.InterfaceDeclaration||e.parent.kind===B.TypeLiteral)return this.convertMethodSignature(e);case B.MethodDeclaration:{let r=Gr(B.AbstractKeyword,e);r&&e.body&&this.#e(e.name,e.kind===B.GetAccessor||e.kind===B.SetAccessor?"An abstract accessor cannot have an implementation.":`Method '${Kit(e.name,this.ast)}' cannot have an implementation because it is marked abstract.`);let n=this.createNode(e,{type:e.body?H.FunctionExpression:H.TSEmptyBodyFunctionExpression,range:[e.parameters.pos-1,e.end],async:Gr(B.AsyncKeyword,e),body:this.convertChild(e.body),declare:!1,expression:!1,generator:!!e.asteriskToken,id:null,params:[],returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});n.typeParameters&&this.fixParentLocation(n,n.typeParameters.range);let o;if(t.kind===B.ObjectLiteralExpression)n.params=this.convertChildren(e.parameters),o=this.createNode(e,{type:H.Property,computed:s1(e.name),key:this.convertChild(e.name),kind:"init",method:e.kind===B.MethodDeclaration,optional:!!e.questionToken,shorthand:!1,value:n});else{n.params=this.convertParameters(e.parameters);let i=r?H.TSAbstractMethodDefinition:H.MethodDefinition;o=this.createNode(e,{type:i,accessibility:Rg(e),computed:s1(e.name),decorators:this.convertChildren(d1(e)??[]),key:this.convertChild(e.name),kind:"method",optional:!!e.questionToken,override:Gr(B.OverrideKeyword,e),static:Gr(B.StaticKeyword,e),value:n})}return e.kind===B.GetAccessor?o.kind="get":e.kind===B.SetAccessor?o.kind="set":!o.static&&e.name.kind===B.StringLiteral&&e.name.text==="constructor"&&o.type!==H.Property&&(o.kind="constructor"),o}case B.Constructor:{let r=Iit(e),n=(r&&Bu(r,e,this.ast))??e.getFirstToken(),o=this.createNode(e,{type:e.body?H.FunctionExpression:H.TSEmptyBodyFunctionExpression,range:[e.parameters.pos-1,e.end],async:!1,body:this.convertChild(e.body),declare:!1,expression:!1,generator:!1,id:null,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});o.typeParameters&&this.fixParentLocation(o,o.typeParameters.range);let i=n.kind===B.StringLiteral?this.createNode(n,{type:H.Literal,raw:n.getText(),value:"constructor"}):this.createNode(e,{type:H.Identifier,range:[n.getStart(this.ast),n.end],decorators:[],name:"constructor",optional:!1,typeAnnotation:void 0}),a=Gr(B.StaticKeyword,e);return this.createNode(e,{type:Gr(B.AbstractKeyword,e)?H.TSAbstractMethodDefinition:H.MethodDefinition,accessibility:Rg(e),computed:!1,decorators:[],key:i,kind:a?"method":"constructor",optional:!1,override:!1,static:a,value:o})}case B.FunctionExpression:return this.createNode(e,{type:H.FunctionExpression,async:Gr(B.AsyncKeyword,e),body:this.convertChild(e.body),declare:!1,expression:!1,generator:!!e.asteriskToken,id:this.convertChild(e.name),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case B.SuperKeyword:return this.createNode(e,{type:H.Super});case B.ArrayBindingPattern:return this.createNode(e,{type:H.ArrayPattern,decorators:[],elements:e.elements.map(r=>this.convertPattern(r)),optional:!1,typeAnnotation:void 0});case B.OmittedExpression:return null;case B.ObjectBindingPattern:return this.createNode(e,{type:H.ObjectPattern,decorators:[],optional:!1,properties:e.elements.map(r=>this.convertPattern(r)),typeAnnotation:void 0});case B.BindingElement:{if(t.kind===B.ArrayBindingPattern){let n=this.convertChild(e.name,t);return e.initializer?this.createNode(e,{type:H.AssignmentPattern,decorators:[],left:n,optional:!1,right:this.convertChild(e.initializer),typeAnnotation:void 0}):e.dotDotDotToken?this.createNode(e,{type:H.RestElement,argument:n,decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):n}let r;return e.dotDotDotToken?r=this.createNode(e,{type:H.RestElement,argument:this.convertChild(e.propertyName??e.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):r=this.createNode(e,{type:H.Property,computed:!!(e.propertyName&&e.propertyName.kind===B.ComputedPropertyName),key:this.convertChild(e.propertyName??e.name),kind:"init",method:!1,optional:!1,shorthand:!e.propertyName,value:this.convertChild(e.name)}),e.initializer&&(r.value=this.createNode(e,{type:H.AssignmentPattern,range:[e.name.getStart(this.ast),e.initializer.end],decorators:[],left:this.convertChild(e.name),optional:!1,right:this.convertChild(e.initializer),typeAnnotation:void 0})),r}case B.ArrowFunction:return this.createNode(e,{type:H.ArrowFunctionExpression,async:Gr(B.AsyncKeyword,e),body:this.convertChild(e.body),expression:e.body.kind!==B.Block,generator:!1,id:null,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case B.YieldExpression:return this.createNode(e,{type:H.YieldExpression,argument:this.convertChild(e.expression),delegate:!!e.asteriskToken});case B.AwaitExpression:return this.createNode(e,{type:H.AwaitExpression,argument:this.convertChild(e.expression)});case B.NoSubstitutionTemplateLiteral:return this.createNode(e,{type:H.TemplateLiteral,expressions:[],quasis:[this.createNode(e,{type:H.TemplateElement,tail:!0,value:{cooked:e.text,raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-1)}})]});case B.TemplateExpression:{let r=this.createNode(e,{type:H.TemplateLiteral,expressions:[],quasis:[this.convertChild(e.head)]});return e.templateSpans.forEach(n=>{r.expressions.push(this.convertChild(n.expression)),r.quasis.push(this.convertChild(n.literal))}),r}case B.TaggedTemplateExpression:return e.tag.flags&Jc.OptionalChain&&this.#e(e,"Tagged template expressions are not permitted in an optional chain."),this.createNode(e,{type:H.TaggedTemplateExpression,quasi:this.convertChild(e.template),tag:this.convertChild(e.tag),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case B.TemplateHead:case B.TemplateMiddle:case B.TemplateTail:{let r=e.kind===B.TemplateTail;return this.createNode(e,{type:H.TemplateElement,tail:r,value:{cooked:e.text,raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-(r?1:2))}})}case B.SpreadAssignment:case B.SpreadElement:return this.allowPattern?this.createNode(e,{type:H.RestElement,argument:this.convertPattern(e.expression),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):this.createNode(e,{type:H.SpreadElement,argument:this.convertChild(e.expression)});case B.Parameter:{let r,n;return e.dotDotDotToken?r=n=this.createNode(e,{type:H.RestElement,argument:this.convertChild(e.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):e.initializer?(r=this.convertChild(e.name),n=this.createNode(e,{type:H.AssignmentPattern,range:[e.name.getStart(this.ast),e.initializer.end],decorators:[],left:r,optional:!1,right:this.convertChild(e.initializer),typeAnnotation:void 0}),md(e)&&(n.range[0]=r.range[0],n.loc=Mg(n.range,this.ast))):r=n=this.convertChild(e.name,t),e.type&&(r.typeAnnotation=this.convertTypeAnnotation(e.type,e),this.fixParentLocation(r,r.typeAnnotation.range)),e.questionToken&&(e.questionToken.end>r.range[1]&&(r.range[1]=e.questionToken.end,r.loc.end=dO(r.range[1],this.ast)),r.optional=!0),md(e)?this.createNode(e,{type:H.TSParameterProperty,accessibility:Rg(e),decorators:[],override:Gr(B.OverrideKeyword,e),parameter:n,readonly:Gr(B.ReadonlyKeyword,e),static:Gr(B.StaticKeyword,e)}):n}case B.ClassDeclaration:!e.name&&(!Gr(Qt.ExportKeyword,e)||!Gr(Qt.DefaultKeyword,e))&&this.#e(e,"A class declaration without the 'default' modifier must have a name.");case B.ClassExpression:{let r=e.heritageClauses??[],n=e.kind===B.ClassDeclaration?H.ClassDeclaration:H.ClassExpression,o,i;for(let s of r){let{token:c,types:p}=s;p.length===0&&this.#e(s,`'${io(c)}' list cannot be empty.`),c===B.ExtendsKeyword?(o&&this.#e(s,"'extends' clause already seen."),i&&this.#e(s,"'extends' clause must precede 'implements' clause."),p.length>1&&this.#e(p[1],"Classes can only extend a single class."),o??(o=s)):c===B.ImplementsKeyword&&(i&&this.#e(s,"'implements' clause already seen."),i??(i=s))}let a=this.createNode(e,{type:n,abstract:Gr(B.AbstractKeyword,e),body:this.createNode(e,{type:H.ClassBody,range:[e.members.pos-1,e.end],body:this.convertChildren(e.members.filter(Ait))}),declare:Gr(B.DeclareKeyword,e),decorators:this.convertChildren(d1(e)??[]),id:this.convertChild(e.name),implements:this.convertChildren(i?.types??[]),superClass:o?.types[0]?this.convertChild(o.types[0].expression):null,superTypeArguments:void 0,typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return o?.types[0]?.typeArguments&&(a.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(o.types[0].typeArguments,o.types[0])),this.fixExports(e,a)}case B.ModuleBlock:return this.createNode(e,{type:H.TSModuleBlock,body:this.convertBodyExpressions(e.statements,e)});case B.ImportDeclaration:{this.assertModuleSpecifier(e,!1);let r=this.createNode(e,this.#n({type:H.ImportDeclaration,attributes:this.convertImportAttributes(e),importKind:"value",source:this.convertChild(e.moduleSpecifier),specifiers:[]},"assertions","attributes",!0));if(e.importClause&&(e.importClause.isTypeOnly&&(r.importKind="type"),e.importClause.name&&r.specifiers.push(this.convertChild(e.importClause)),e.importClause.namedBindings))switch(e.importClause.namedBindings.kind){case B.NamespaceImport:r.specifiers.push(this.convertChild(e.importClause.namedBindings));break;case B.NamedImports:r.specifiers.push(...this.convertChildren(e.importClause.namedBindings.elements));break}return r}case B.NamespaceImport:return this.createNode(e,{type:H.ImportNamespaceSpecifier,local:this.convertChild(e.name)});case B.ImportSpecifier:return this.createNode(e,{type:H.ImportSpecifier,imported:this.convertChild(e.propertyName??e.name),importKind:e.isTypeOnly?"type":"value",local:this.convertChild(e.name)});case B.ImportClause:{let r=this.convertChild(e.name);return this.createNode(e,{type:H.ImportDefaultSpecifier,range:r.range,local:r})}case B.ExportDeclaration:return e.exportClause?.kind===B.NamedExports?(this.assertModuleSpecifier(e,!0),this.createNode(e,this.#n({type:H.ExportNamedDeclaration,attributes:this.convertImportAttributes(e),declaration:null,exportKind:e.isTypeOnly?"type":"value",source:this.convertChild(e.moduleSpecifier),specifiers:this.convertChildren(e.exportClause.elements,e)},"assertions","attributes",!0))):(this.assertModuleSpecifier(e,!1),this.createNode(e,this.#n({type:H.ExportAllDeclaration,attributes:this.convertImportAttributes(e),exported:e.exportClause?.kind===B.NamespaceExport?this.convertChild(e.exportClause.name):null,exportKind:e.isTypeOnly?"type":"value",source:this.convertChild(e.moduleSpecifier)},"assertions","attributes",!0)));case B.ExportSpecifier:{let r=e.propertyName??e.name;return r.kind===B.StringLiteral&&t.kind===B.ExportDeclaration&&t.moduleSpecifier?.kind!==B.StringLiteral&&this.#e(r,"A string literal cannot be used as a local exported binding without `from`."),this.createNode(e,{type:H.ExportSpecifier,exported:this.convertChild(e.name),exportKind:e.isTypeOnly?"type":"value",local:this.convertChild(r)})}case B.ExportAssignment:return e.isExportEquals?this.createNode(e,{type:H.TSExportAssignment,expression:this.convertChild(e.expression)}):this.createNode(e,{type:H.ExportDefaultDeclaration,declaration:this.convertChild(e.expression),exportKind:"value"});case B.PrefixUnaryExpression:case B.PostfixUnaryExpression:{let r=ah(e.operator);return r==="++"||r==="--"?(uJ(e.operand)||this.#e(e.operand,"Invalid left-hand side expression in unary operation"),this.createNode(e,{type:H.UpdateExpression,argument:this.convertChild(e.operand),operator:r,prefix:e.kind===B.PrefixUnaryExpression})):this.createNode(e,{type:H.UnaryExpression,argument:this.convertChild(e.operand),operator:r,prefix:e.kind===B.PrefixUnaryExpression})}case B.DeleteExpression:return this.createNode(e,{type:H.UnaryExpression,argument:this.convertChild(e.expression),operator:"delete",prefix:!0});case B.VoidExpression:return this.createNode(e,{type:H.UnaryExpression,argument:this.convertChild(e.expression),operator:"void",prefix:!0});case B.TypeOfExpression:return this.createNode(e,{type:H.UnaryExpression,argument:this.convertChild(e.expression),operator:"typeof",prefix:!0});case B.TypeOperator:return this.createNode(e,{type:H.TSTypeOperator,operator:ah(e.operator),typeAnnotation:this.convertChild(e.type)});case B.BinaryExpression:{if(e.operatorToken.kind!==B.InKeyword&&e.left.kind===B.PrivateIdentifier?this.#e(e.left,"Private identifiers cannot appear on the right-hand-side of an 'in' expression."):e.right.kind===B.PrivateIdentifier&&this.#e(e.right,"Private identifiers are only allowed on the left-hand-side of an 'in' expression."),wit(e.operatorToken)){let n=this.createNode(e,{type:H.SequenceExpression,expressions:[]}),o=this.convertChild(e.left);return o.type===H.SequenceExpression&&e.left.kind!==B.ParenthesizedExpression?n.expressions.push(...o.expressions):n.expressions.push(o),n.expressions.push(this.convertChild(e.right)),n}let r=Pit(e.operatorToken);return this.allowPattern&&r.type===H.AssignmentExpression?this.createNode(e,{type:H.AssignmentPattern,decorators:[],left:this.convertPattern(e.left,e),optional:!1,right:this.convertChild(e.right),typeAnnotation:void 0}):this.createNode(e,{...r,left:this.converter(e.left,e,r.type===H.AssignmentExpression),right:this.convertChild(e.right)})}case B.PropertyAccessExpression:{let r=this.convertChild(e.expression),n=this.convertChild(e.name),o=this.createNode(e,{type:H.MemberExpression,computed:!1,object:r,optional:e.questionDotToken!=null,property:n});return this.convertChainExpression(o,e)}case B.ElementAccessExpression:{let r=this.convertChild(e.expression),n=this.convertChild(e.argumentExpression),o=this.createNode(e,{type:H.MemberExpression,computed:!0,object:r,optional:e.questionDotToken!=null,property:n});return this.convertChainExpression(o,e)}case B.CallExpression:{if(e.expression.kind===B.ImportKeyword)return e.arguments.length!==1&&e.arguments.length!==2&&this.#e(e.arguments[2]??e,"Dynamic import requires exactly one or two arguments."),this.createNode(e,this.#n({type:H.ImportExpression,options:e.arguments[1]?this.convertChild(e.arguments[1]):null,source:this.convertChild(e.arguments[0])},"attributes","options",!0));let r=this.convertChild(e.expression),n=this.convertChildren(e.arguments),o=e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e),i=this.createNode(e,{type:H.CallExpression,arguments:n,callee:r,optional:e.questionDotToken!=null,typeArguments:o});return this.convertChainExpression(i,e)}case B.NewExpression:{let r=e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e);return this.createNode(e,{type:H.NewExpression,arguments:this.convertChildren(e.arguments??[]),callee:this.convertChild(e.expression),typeArguments:r})}case B.ConditionalExpression:return this.createNode(e,{type:H.ConditionalExpression,alternate:this.convertChild(e.whenFalse),consequent:this.convertChild(e.whenTrue),test:this.convertChild(e.condition)});case B.MetaProperty:return this.createNode(e,{type:H.MetaProperty,meta:this.createNode(e.getFirstToken(),{type:H.Identifier,decorators:[],name:ah(e.keywordToken),optional:!1,typeAnnotation:void 0}),property:this.convertChild(e.name)});case B.Decorator:return this.createNode(e,{type:H.Decorator,expression:this.convertChild(e.expression)});case B.StringLiteral:return this.createNode(e,{type:H.Literal,raw:e.getText(),value:t.kind===B.JsxAttribute?Nme(e.text):e.text});case B.NumericLiteral:return this.createNode(e,{type:H.Literal,raw:e.getText(),value:Number(e.text)});case B.BigIntLiteral:{let r=a1(e,this.ast),n=this.ast.text.slice(r[0],r[1]),o=_1(0,n.slice(0,-1),"_",""),i=typeof BigInt<"u"?BigInt(o):null;return this.createNode(e,{type:H.Literal,range:r,bigint:i==null?o:String(i),raw:n,value:i})}case B.RegularExpressionLiteral:{let r=e.text.slice(1,e.text.lastIndexOf("/")),n=e.text.slice(e.text.lastIndexOf("/")+1),o=null;try{o=new RegExp(r,n)}catch{}return this.createNode(e,{type:H.Literal,raw:e.text,regex:{flags:n,pattern:r},value:o})}case B.TrueKeyword:return this.createNode(e,{type:H.Literal,raw:"true",value:!0});case B.FalseKeyword:return this.createNode(e,{type:H.Literal,raw:"false",value:!1});case B.NullKeyword:return this.createNode(e,{type:H.Literal,raw:"null",value:null});case B.EmptyStatement:return this.createNode(e,{type:H.EmptyStatement});case B.DebuggerStatement:return this.createNode(e,{type:H.DebuggerStatement});case B.JsxElement:return this.createNode(e,{type:H.JSXElement,children:this.convertChildren(e.children),closingElement:this.convertChild(e.closingElement),openingElement:this.convertChild(e.openingElement)});case B.JsxFragment:return this.createNode(e,{type:H.JSXFragment,children:this.convertChildren(e.children),closingFragment:this.convertChild(e.closingFragment),openingFragment:this.convertChild(e.openingFragment)});case B.JsxSelfClosingElement:return this.createNode(e,{type:H.JSXElement,children:[],closingElement:null,openingElement:this.createNode(e,{type:H.JSXOpeningElement,range:a1(e,this.ast),attributes:this.convertChildren(e.attributes.properties),name:this.convertJSXTagName(e.tagName,e),selfClosing:!0,typeArguments:e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):void 0})});case B.JsxOpeningElement:return this.createNode(e,{type:H.JSXOpeningElement,attributes:this.convertChildren(e.attributes.properties),name:this.convertJSXTagName(e.tagName,e),selfClosing:!1,typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case B.JsxClosingElement:return this.createNode(e,{type:H.JSXClosingElement,name:this.convertJSXTagName(e.tagName,e)});case B.JsxOpeningFragment:return this.createNode(e,{type:H.JSXOpeningFragment});case B.JsxClosingFragment:return this.createNode(e,{type:H.JSXClosingFragment});case B.JsxExpression:{let r=e.expression?this.convertChild(e.expression):this.createNode(e,{type:H.JSXEmptyExpression,range:[e.getStart(this.ast)+1,e.getEnd()-1]});return e.dotDotDotToken?this.createNode(e,{type:H.JSXSpreadChild,expression:r}):this.createNode(e,{type:H.JSXExpressionContainer,expression:r})}case B.JsxAttribute:return this.createNode(e,{type:H.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(e.name),value:this.convertChild(e.initializer)});case B.JsxText:{let r=e.getFullStart(),n=e.getEnd(),o=this.ast.text.slice(r,n);return this.createNode(e,{type:H.JSXText,range:[r,n],raw:o,value:Nme(o)})}case B.JsxSpreadAttribute:return this.createNode(e,{type:H.JSXSpreadAttribute,argument:this.convertChild(e.expression)});case B.QualifiedName:return this.createNode(e,{type:H.TSQualifiedName,left:this.convertChild(e.left),right:this.convertChild(e.right)});case B.TypeReference:return this.createNode(e,{type:H.TSTypeReference,typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e),typeName:this.convertChild(e.typeName)});case B.TypeParameter:return this.createNode(e,{type:H.TSTypeParameter,const:Gr(B.ConstKeyword,e),constraint:e.constraint&&this.convertChild(e.constraint),default:e.default?this.convertChild(e.default):void 0,in:Gr(B.InKeyword,e),name:this.convertChild(e.name),out:Gr(B.OutKeyword,e)});case B.ThisType:return this.createNode(e,{type:H.TSThisType});case B.AnyKeyword:case B.BigIntKeyword:case B.BooleanKeyword:case B.NeverKeyword:case B.NumberKeyword:case B.ObjectKeyword:case B.StringKeyword:case B.SymbolKeyword:case B.UnknownKeyword:case B.VoidKeyword:case B.UndefinedKeyword:case B.IntrinsicKeyword:return this.createNode(e,{type:H[`TS${B[e.kind]}`]});case B.NonNullExpression:{let r=this.createNode(e,{type:H.TSNonNullExpression,expression:this.convertChild(e.expression)});return this.convertChainExpression(r,e)}case B.TypeLiteral:return this.createNode(e,{type:H.TSTypeLiteral,members:this.convertChildren(e.members)});case B.ArrayType:return this.createNode(e,{type:H.TSArrayType,elementType:this.convertChild(e.elementType)});case B.IndexedAccessType:return this.createNode(e,{type:H.TSIndexedAccessType,indexType:this.convertChild(e.indexType),objectType:this.convertChild(e.objectType)});case B.ConditionalType:return this.createNode(e,{type:H.TSConditionalType,checkType:this.convertChild(e.checkType),extendsType:this.convertChild(e.extendsType),falseType:this.convertChild(e.falseType),trueType:this.convertChild(e.trueType)});case B.TypeQuery:return this.createNode(e,{type:H.TSTypeQuery,exprName:this.convertChild(e.exprName),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case B.MappedType:return e.members&&e.members.length>0&&this.#e(e.members[0],"A mapped type may not declare properties or methods."),this.createNode(e,this.#o({type:H.TSMappedType,constraint:this.convertChild(e.typeParameter.constraint),key:this.convertChild(e.typeParameter.name),nameType:this.convertChild(e.nameType)??null,optional:e.questionToken?e.questionToken.kind===B.QuestionToken||ah(e.questionToken.kind):!1,readonly:e.readonlyToken?e.readonlyToken.kind===B.ReadonlyKeyword||ah(e.readonlyToken.kind):void 0,typeAnnotation:e.type&&this.convertChild(e.type)},"typeParameter","'constraint' and 'key'",this.convertChild(e.typeParameter)));case B.ParenthesizedExpression:return this.convertChild(e.expression,t);case B.TypeAliasDeclaration:{let r=this.createNode(e,{type:H.TSTypeAliasDeclaration,declare:Gr(B.DeclareKeyword,e),id:this.convertChild(e.name),typeAnnotation:this.convertChild(e.type),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,r)}case B.MethodSignature:return this.convertMethodSignature(e);case B.PropertySignature:{let{initializer:r}=e;return r&&this.#e(r,"A property signature cannot have an initializer."),this.createNode(e,{type:H.TSPropertySignature,accessibility:Rg(e),computed:s1(e.name),key:this.convertChild(e.name),optional:Fme(e),readonly:Gr(B.ReadonlyKeyword,e),static:Gr(B.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e)})}case B.IndexSignature:return this.createNode(e,{type:H.TSIndexSignature,accessibility:Rg(e),parameters:this.convertChildren(e.parameters),readonly:Gr(B.ReadonlyKeyword,e),static:Gr(B.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e)});case B.ConstructorType:return this.createNode(e,{type:H.TSConstructorType,abstract:Gr(B.AbstractKeyword,e),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case B.FunctionType:{let{modifiers:r}=e;r&&this.#e(r[0],"A function type cannot have modifiers.")}case B.ConstructSignature:case B.CallSignature:{let r=e.kind===B.ConstructSignature?H.TSConstructSignatureDeclaration:e.kind===B.CallSignature?H.TSCallSignatureDeclaration:H.TSFunctionType;return this.createNode(e,{type:r,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)})}case B.ExpressionWithTypeArguments:{let r=t.kind,n=r===B.InterfaceDeclaration?H.TSInterfaceHeritage:r===B.HeritageClause?H.TSClassImplements:H.TSInstantiationExpression;return this.createNode(e,{type:n,expression:this.convertChild(e.expression),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)})}case B.InterfaceDeclaration:{let r=e.heritageClauses??[],n=[],o=!1;for(let a of r){a.token!==B.ExtendsKeyword&&this.#e(a,a.token===B.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token."),o&&this.#e(a,"'extends' clause already seen."),o=!0;for(let s of a.types)(!Lye(s.expression)||ltt(s.expression))&&this.#e(s,"Interface declaration can only extend an identifier/qualified name with optional type arguments."),n.push(this.convertChild(s,e))}let i=this.createNode(e,{type:H.TSInterfaceDeclaration,body:this.createNode(e,{type:H.TSInterfaceBody,range:[e.members.pos-1,e.end],body:this.convertChildren(e.members)}),declare:Gr(B.DeclareKeyword,e),extends:n,id:this.convertChild(e.name),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,i)}case B.TypePredicate:{let r=this.createNode(e,{type:H.TSTypePredicate,asserts:e.assertsModifier!=null,parameterName:this.convertChild(e.parameterName),typeAnnotation:null});return e.type&&(r.typeAnnotation=this.convertTypeAnnotation(e.type,e),r.typeAnnotation.loc=r.typeAnnotation.typeAnnotation.loc,r.typeAnnotation.range=r.typeAnnotation.typeAnnotation.range),r}case B.ImportType:{let r=a1(e,this.ast);if(e.isTypeOf){let s=Bu(e.getFirstToken(),e,this.ast);r[0]=s.getStart(this.ast)}let n=null;if(e.attributes){let s=this.createNode(e.attributes,{type:H.ObjectExpression,properties:e.attributes.elements.map(S=>this.createNode(S,{type:H.Property,computed:!1,key:this.convertChild(S.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.convertChild(S.value)}))}),c=Bu(e.argument,e,this.ast),p=Bu(c,e,this.ast),d=Bu(e.attributes,e,this.ast),f=d.kind===Qt.CommaToken?Bu(d,e,this.ast):d,m=Bu(p,e,this.ast),y=a1(m,this.ast),g=m.kind===Qt.AssertKeyword?"assert":"with";n=this.createNode(e,{type:H.ObjectExpression,range:[p.getStart(this.ast),f.end],properties:[this.createNode(e,{type:H.Property,range:[y[0],e.attributes.end],computed:!1,key:this.createNode(e,{type:H.Identifier,range:y,decorators:[],name:g,optional:!1,typeAnnotation:void 0}),kind:"init",method:!1,optional:!1,shorthand:!1,value:s})]})}let o=this.convertChild(e.argument),i=o.literal,a=this.createNode(e,this.#o({type:H.TSImportType,range:r,options:n,qualifier:this.convertChild(e.qualifier),source:i,typeArguments:e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):null},"argument","source",o));return e.isTypeOf?this.createNode(e,{type:H.TSTypeQuery,exprName:a,typeArguments:void 0}):a}case B.EnumDeclaration:{let r=this.convertChildren(e.members),n=this.createNode(e,this.#o({type:H.TSEnumDeclaration,body:this.createNode(e,{type:H.TSEnumBody,range:[e.members.pos-1,e.end],members:r}),const:Gr(B.ConstKeyword,e),declare:Gr(B.DeclareKeyword,e),id:this.convertChild(e.name)},"members","'body.members'",this.convertChildren(e.members)));return this.fixExports(e,n)}case B.EnumMember:{let r=e.name.kind===Qt.ComputedPropertyName;return r&&this.#e(e.name,"Computed property names are not allowed in enums."),(e.name.kind===B.NumericLiteral||e.name.kind===B.BigIntLiteral)&&this.#e(e.name,"An enum member cannot have a numeric name."),this.createNode(e,this.#o({type:H.TSEnumMember,id:this.convertChild(e.name),initializer:e.initializer&&this.convertChild(e.initializer)},"computed",void 0,r))}case B.ModuleDeclaration:{let r=Gr(B.DeclareKeyword,e),n=this.createNode(e,{type:H.TSModuleDeclaration,...(()=>{if(e.flags&Jc.GlobalAugmentation){let i=this.convertChild(e.name),a=this.convertChild(e.body);return(a==null||a.type===H.TSModuleDeclaration)&&this.#e(e.body??e,"Expected a valid module body"),i.type!==H.Identifier&&this.#e(e.name,"global module augmentation must have an Identifier id"),{body:a,declare:!1,global:!1,id:i,kind:"global"}}if(b1(e.name)){let i=this.convertChild(e.body);return{kind:"module",...i!=null?{body:i}:{},declare:!1,global:!1,id:this.convertChild(e.name)}}e.body==null&&this.#e(e,"Expected a module body"),e.name.kind!==Qt.Identifier&&this.#e(e.name,"`namespace`s must have an Identifier id");let o=this.createNode(e.name,{type:H.Identifier,range:[e.name.getStart(this.ast),e.name.getEnd()],decorators:[],name:e.name.text,optional:!1,typeAnnotation:void 0});for(;e.body&&XD(e.body)&&e.body.name;){e=e.body,r||(r=Gr(B.DeclareKeyword,e));let i=e.name,a=this.createNode(i,{type:H.Identifier,range:[i.getStart(this.ast),i.getEnd()],decorators:[],name:i.text,optional:!1,typeAnnotation:void 0});o=this.createNode(i,{type:H.TSQualifiedName,range:[o.range[0],a.range[1]],left:o,right:a})}return{body:this.convertChild(e.body),declare:!1,global:!1,id:o,kind:e.flags&Jc.Namespace?"namespace":"module"}})()});return n.declare=r,e.flags&Jc.GlobalAugmentation&&(n.global=!0),this.fixExports(e,n)}case B.ParenthesizedType:return this.convertChild(e.type);case B.UnionType:return this.createNode(e,{type:H.TSUnionType,types:this.convertChildren(e.types)});case B.IntersectionType:return this.createNode(e,{type:H.TSIntersectionType,types:this.convertChildren(e.types)});case B.AsExpression:return this.createNode(e,{type:H.TSAsExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});case B.InferType:return this.createNode(e,{type:H.TSInferType,typeParameter:this.convertChild(e.typeParameter)});case B.LiteralType:return e.literal.kind===B.NullKeyword?this.createNode(e.literal,{type:H.TSNullKeyword}):this.createNode(e,{type:H.TSLiteralType,literal:this.convertChild(e.literal)});case B.TypeAssertionExpression:return this.createNode(e,{type:H.TSTypeAssertion,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});case B.ImportEqualsDeclaration:return this.fixExports(e,this.createNode(e,{type:H.TSImportEqualsDeclaration,id:this.convertChild(e.name),importKind:e.isTypeOnly?"type":"value",moduleReference:this.convertChild(e.moduleReference)}));case B.ExternalModuleReference:return e.expression.kind!==B.StringLiteral&&this.#e(e.expression,"String literal expected."),this.createNode(e,{type:H.TSExternalModuleReference,expression:this.convertChild(e.expression)});case B.NamespaceExportDeclaration:return this.createNode(e,{type:H.TSNamespaceExportDeclaration,id:this.convertChild(e.name)});case B.AbstractKeyword:return this.createNode(e,{type:H.TSAbstractKeyword});case B.TupleType:{let r=this.convertChildren(e.elements);return this.createNode(e,{type:H.TSTupleType,elementTypes:r})}case B.NamedTupleMember:{let r=this.createNode(e,{type:H.TSNamedTupleMember,elementType:this.convertChild(e.type,e),label:this.convertChild(e.name,e),optional:e.questionToken!=null});return e.dotDotDotToken?(r.range[0]=r.label.range[0],r.loc.start=r.label.loc.start,this.createNode(e,{type:H.TSRestType,typeAnnotation:r})):r}case B.OptionalType:return this.createNode(e,{type:H.TSOptionalType,typeAnnotation:this.convertChild(e.type)});case B.RestType:return this.createNode(e,{type:H.TSRestType,typeAnnotation:this.convertChild(e.type)});case B.TemplateLiteralType:{let r=this.createNode(e,{type:H.TSTemplateLiteralType,quasis:[this.convertChild(e.head)],types:[]});return e.templateSpans.forEach(n=>{r.types.push(this.convertChild(n.type)),r.quasis.push(this.convertChild(n.literal))}),r}case B.ClassStaticBlockDeclaration:return this.createNode(e,{type:H.StaticBlock,body:this.convertBodyExpressions(e.body.statements,e)});case B.AssertEntry:case B.ImportAttribute:return this.createNode(e,{type:H.ImportAttribute,key:this.convertChild(e.name),value:this.convertChild(e.value)});case B.SatisfiesExpression:return this.createNode(e,{type:H.TSSatisfiesExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});default:return this.deeplyCopy(e)}}createNode(e,t){let r=t;return r.range??(r.range=a1(e,this.ast)),r.loc??(r.loc=Mg(r.range,this.ast)),r&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(r,e),r}convertProgram(){return this.converter(this.ast)}deeplyCopy(e){e.kind===Qt.JSDocFunctionType&&this.#e(e,"JSDoc types can only be used inside documentation comments.");let t=`TS${B[e.kind]}`;if(this.options.errorOnUnknownASTType&&!H[t])throw new Error(`Unknown AST_NODE_TYPE: "${t}"`);let r=this.createNode(e,{type:t});"type"in e&&(r.typeAnnotation=e.type&&"kind"in e.type&&btt(e.type)?this.convertTypeAnnotation(e.type,e):null),"typeArguments"in e&&(r.typeArguments=e.typeArguments&&"pos"in e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):null),"typeParameters"in e&&(r.typeParameters=e.typeParameters&&"pos"in e.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters):null);let n=d1(e);n?.length&&(r.decorators=this.convertChildren(n));let o=new Set(["_children","decorators","end","flags","heritageClauses","illegalDecorators","jsDoc","kind","locals","localSymbol","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(e).filter(([i])=>!o.has(i)).forEach(([i,a])=>{Array.isArray(a)?r[i]=this.convertChildren(a):a&&typeof a=="object"&&a.kind?r[i]=this.convertChild(a):r[i]=a}),r}fixExports(e,t){let r=XD(e)&&!b1(e.name)?Vit(e):md(e);if(r?.[0].kind===B.ExportKeyword){this.registerTSNodeInNodeMap(e,t);let n=r[0],o=r[1],i=o?.kind===B.DefaultKeyword,a=i?Bu(o,this.ast,this.ast):Bu(n,this.ast,this.ast);if(t.range[0]=a.getStart(this.ast),t.loc=Mg(t.range,this.ast),i)return this.createNode(e,{type:H.ExportDefaultDeclaration,range:[n.getStart(this.ast),t.range[1]],declaration:t,exportKind:"value"});let s=t.type===H.TSInterfaceDeclaration||t.type===H.TSTypeAliasDeclaration,c="declare"in t&&t.declare;return this.createNode(e,this.#n({type:H.ExportNamedDeclaration,range:[n.getStart(this.ast),t.range[1]],attributes:[],declaration:t,exportKind:s||c?"type":"value",source:null,specifiers:[]},"assertions","attributes",!0))}return t}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}registerTSNodeInNodeMap(e,t){t&&this.options.shouldPreserveNodeMaps&&!this.tsNodeToESTreeNodeMap.has(e)&&this.tsNodeToESTreeNodeMap.set(e,t)}};function oat(e,t,r=e.getSourceFile()){let n=[];for(;;){if(Ahe(e.kind))t(e);else{let o=e.getChildren(r);if(o.length===1){e=o[0];continue}for(let i=o.length-1;i>=0;--i)n.push(o[i])}if(n.length===0)break;e=n.pop()}}function iat(e,t,r=e.getSourceFile()){let n=r.text,o=r.languageVariant!==Yme.JSX;return oat(e,a=>{if(a.pos!==a.end&&(a.kind!==Qt.JsxText&&ket(n,a.pos===0?(ghe(n)??"").length:a.pos,i),o||aat(a)))return Cet(n,a.end,i)},r);function i(a,s,c){t(n,{end:s,kind:c,pos:a})}}function aat(e){switch(e.kind){case Qt.CloseBraceToken:return e.parent.kind!==Qt.JsxExpression||!Uz(e.parent.parent);case Qt.GreaterThanToken:switch(e.parent.kind){case Qt.JsxClosingElement:case Qt.JsxClosingFragment:return!Uz(e.parent.parent.parent);case Qt.JsxOpeningElement:return e.end!==e.parent.end;case Qt.JsxOpeningFragment:return!1;case Qt.JsxSelfClosingElement:return e.end!==e.parent.end||!Uz(e.parent.parent)}}return!0}function Uz(e){return e.kind===Qt.JsxElement||e.kind===Qt.JsxFragment}var[qjt,Ujt]=DYe.split(".").map(e=>Number.parseInt(e,10)),zjt=cs.Intrinsic??cs.Any|cs.Unknown|cs.String|cs.Number|cs.BigInt|cs.Boolean|cs.BooleanLiteral|cs.ESSymbol|cs.Void|cs.Undefined|cs.Null|cs.Never|cs.NonPrimitive;function sat(e,t){let r=[];return iat(e,(n,o)=>{let i=o.kind===Qt.SingleLineCommentTrivia?ma.Line:ma.Block,a=[o.pos,o.end],s=Mg(a,e),c=a[0]+2,p=o.kind===Qt.SingleLineCommentTrivia?a[1]:a[1]-2;r.push({type:i,loc:s,range:a,value:t.slice(c,p)})},e),r}var cat=()=>{};function lat(e,t,r){let{parseDiagnostics:n}=e;if(n.length)throw tat(n[0]);let o=new nat(e,{allowInvalidAST:t.allowInvalidAST,errorOnUnknownASTType:t.errorOnUnknownASTType,shouldPreserveNodeMaps:r,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings}),i=o.convertProgram();return(!t.range||!t.loc)&&cat(i,{enter:a=>{t.range||delete a.range,t.loc||delete a.loc}}),t.tokens&&(i.tokens=jit(e)),t.comment&&(i.comments=sat(e,t.codeFullText)),{astMaps:o.getASTMaps(),estree:i}}function $ye(e){if(typeof e!="object"||e==null)return!1;let t=e;return t.kind===Qt.SourceFile&&typeof t.getFullText=="function"}var uat=function(e){return e&&e.__esModule?e:{default:e}},pat=uat({extname:e=>"."+e.split(".").pop()});function dat(e,t){switch(pat.default.extname(e).toLowerCase()){case jl.Cjs:case jl.Js:case jl.Mjs:return X_.JS;case jl.Cts:case jl.Mts:case jl.Ts:return X_.TS;case jl.Json:return X_.JSON;case jl.Jsx:return X_.JSX;case jl.Tsx:return X_.TSX;default:return t?X_.TSX:X_.TS}}var _at={default:fJ},fat=(0,_at.default)("typescript-eslint:typescript-estree:create-program:createSourceFile");function mat(e){return fat("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),$ye(e.code)?e.code:Kot(e.filePath,e.codeFullText,{jsDocParsingMode:e.jsDocParsingMode,languageVersion:bJ.Latest,setExternalModuleIndicator:e.setExternalModuleIndicator},!0,dat(e.filePath,e.jsx))}var hat=e=>e,yat=()=>{},gat=class{},Sat=()=>!1,vat=()=>{},bat=function(e){return e&&e.__esModule?e:{default:e}},xat={},pJ={default:fJ},Eat=bat({extname:e=>"."+e.split(".").pop()}),Tat=(0,pJ.default)("typescript-eslint:typescript-estree:parseSettings:createParseSettings"),Lme,zz=null,ND={ParseAll:$D?.ParseAll,ParseForTypeErrors:$D?.ParseForTypeErrors,ParseForTypeInfo:$D?.ParseForTypeInfo,ParseNone:$D?.ParseNone};function Dat(e,t={}){let r=Aat(e),n=Sat(t),o,i=typeof t.loggerFn=="function",a=hat(typeof t.filePath=="string"&&t.filePath!==""?t.filePath:Iat(t.jsx),o),s=Eat.default.extname(a).toLowerCase(),c=(()=>{switch(t.jsDocParsingMode){case"all":return ND.ParseAll;case"none":return ND.ParseNone;case"type-info":return ND.ParseForTypeInfo;default:return ND.ParseAll}})(),p={loc:t.loc===!0,range:t.range===!0,allowInvalidAST:t.allowInvalidAST===!0,code:e,codeFullText:r,comment:t.comment===!0,comments:[],debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every(d=>typeof d=="string")?t.extraFileExtensions:[],filePath:a,jsDocParsingMode:c,jsx:t.jsx===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:new Map,projectService:t.projectService||t.project&&t.projectService!==!1&&(void 0).env.TYPESCRIPT_ESLINT_PROJECT_SERVICE==="true"?wat(t.projectService,{jsDocParsingMode:c,tsconfigRootDir:o}):void 0,setExternalModuleIndicator:t.sourceType==="module"||t.sourceType==null&&s===jl.Mjs||t.sourceType==null&&s===jl.Mts?d=>{d.externalModuleIndicator=!0}:void 0,singleRun:n,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings??!0,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:Lme??(Lme=new gat(n?"Infinity":t.cacheLifetime?.glob??void 0)),tsconfigRootDir:o};if(p.projectService&&t.project&&(void 0).env.TYPESCRIPT_ESLINT_IGNORE_PROJECT_AND_PROJECT_SERVICE_ERROR!=="true")throw new Error('Enabling "project" does nothing when "projectService" is enabled. You can remove the "project" setting.');if(p.debugLevel.size>0){let d=[];p.debugLevel.has("typescript-eslint")&&d.push("typescript-eslint:*"),(p.debugLevel.has("eslint")||pJ.default.enabled("eslint:*,-eslint:code-path"))&&d.push("eslint:*,-eslint:code-path"),pJ.default.enable(d.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");Tat("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!p.programs&&!p.projectService&&(p.projects=new Map),t.jsDocParsingMode==null&&p.projects.size===0&&p.programs==null&&p.projectService==null&&(p.jsDocParsingMode=ND.ParseNone),vat(p,i),p}function Aat(e){return $ye(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function Iat(e){return e?"estree.tsx":"estree.ts"}function wat(e,t){let r=typeof e=="object"?e:{};return yat(r.allowDefaultProject),zz??(zz=(0,xat.createProjectService)({options:r,...t})),zz}var kat={default:fJ},Jjt=(0,kat.default)("typescript-eslint:typescript-estree:parser");function Cat(e,t){let{ast:r}=Pat(e,t,!1);return r}function Pat(e,t,r){let n=Dat(e,t);if(t?.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let o=mat(n),{astMaps:i,estree:a}=lat(o,n,r);return{ast:a,esTreeNodeToTSNodeMap:i.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:i.tsNodeToESTreeNodeMap}}function Oat(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var Nat=Oat;function Fat(e){let t=[];for(let r of e)try{return r()}catch(n){t.push(n)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var Rat=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},Lat=mJ("findLast",function(){if(Array.isArray(this))return Rat}),$at=Lat;function Mat(e){return this[e<0?this.length+e:e]}var jat=mJ("at",function(){if(Array.isArray(this)||typeof this=="string")return Mat}),Bat=jat;function tf(e){let t=e.range?.[0]??e.start,r=(e.declaration?.decorators??e.decorators)?.[0];return r?Math.min(tf(r),t):t}function _d(e){return e.range?.[1]??e.end}function qat(e){let t=new Set(e);return r=>t.has(r?.type)}var WJ=qat,Uat=WJ(["Block","CommentBlock","MultiLine"]),QJ=Uat,zat=WJ(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),Jat=zat,Jz=new WeakMap;function Vat(e){return Jz.has(e)||Jz.set(e,QJ(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),Jz.get(e)}var Kat=Vat;function Gat(e){if(!QJ(e))return!1;let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var Vz=new WeakMap;function Hat(e){return Vz.has(e)||Vz.set(e,Gat(e)),Vz.get(e)}var $me=Hat;function Zat(e){if(e.length<2)return;let t;for(let r=e.length-1;r>=0;r--){let n=e[r];if(t&&_d(n)===tf(t)&&$me(n)&&$me(t)&&(e.splice(r+1,1),n.value+="*//*"+t.value,n.range=[tf(n),_d(t)]),!Jat(n)&&!QJ(n))throw new TypeError(`Unknown comment type: "${n.type}".`);t=n}}var Wat=Zat;function Qat(e){return e!==null&&typeof e=="object"}var Xat=Qat,FD=null;function JD(e){if(FD!==null&&typeof FD.property){let t=FD;return FD=JD.prototype=null,t}return FD=JD.prototype=e??Object.create(null),new JD}var Yat=10;for(let e=0;e<=Yat;e++)JD();function est(e){return JD(e)}function tst(e,t="type"){est(e);function r(n){let o=n[t],i=e[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:n});return i}return r}var rst=tst,V=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],nst={AccessorProperty:V[0],AnyTypeAnnotation:V[1],ArgumentPlaceholder:V[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:V[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:V[3],AsExpression:V[4],AssignmentExpression:V[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:V[6],BigIntLiteral:V[1],BigIntLiteralTypeAnnotation:V[1],BigIntTypeAnnotation:V[1],BinaryExpression:V[5],BindExpression:["object","callee"],BlockStatement:V[7],BooleanLiteral:V[1],BooleanLiteralTypeAnnotation:V[1],BooleanTypeAnnotation:V[1],BreakStatement:V[8],CallExpression:V[9],CatchClause:["param","body"],ChainExpression:V[3],ClassAccessorProperty:V[0],ClassBody:V[10],ClassDeclaration:V[11],ClassExpression:V[11],ClassImplements:V[12],ClassMethod:V[13],ClassPrivateMethod:V[13],ClassPrivateProperty:V[14],ClassProperty:V[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:V[15],ConditionalExpression:V[16],ConditionalTypeAnnotation:V[17],ContinueStatement:V[8],DebuggerStatement:V[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:V[18],DeclareEnum:V[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:V[20],DeclareFunction:["id","predicate"],DeclareHook:V[21],DeclareInterface:V[22],DeclareModule:V[19],DeclareModuleExports:V[23],DeclareNamespace:V[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:V[24],DeclareVariable:V[21],Decorator:V[3],Directive:V[18],DirectiveLiteral:V[1],DoExpression:V[10],DoWhileStatement:V[25],EmptyStatement:V[1],EmptyTypeAnnotation:V[1],EnumBigIntBody:V[26],EnumBigIntMember:V[27],EnumBooleanBody:V[26],EnumBooleanMember:V[27],EnumDeclaration:V[19],EnumDefaultedMember:V[21],EnumNumberBody:V[26],EnumNumberMember:V[27],EnumStringBody:V[26],EnumStringMember:V[27],EnumSymbolBody:V[26],ExistsTypeAnnotation:V[1],ExperimentalRestProperty:V[6],ExperimentalSpreadProperty:V[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:V[28],ExportNamedDeclaration:V[20],ExportNamespaceSpecifier:V[28],ExportSpecifier:["local","exported"],ExpressionStatement:V[3],File:["program"],ForInStatement:V[29],ForOfStatement:V[29],ForStatement:["init","test","update","body"],FunctionDeclaration:V[30],FunctionExpression:V[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:V[15],GenericTypeAnnotation:V[12],HookDeclaration:V[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:V[16],ImportAttribute:V[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:V[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:V[33],ImportSpecifier:["imported","local"],IndexedAccessType:V[34],InferredPredicate:V[1],InferTypeAnnotation:V[35],InterfaceDeclaration:V[22],InterfaceExtends:V[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:V[1],IntersectionTypeAnnotation:V[36],JsExpressionRoot:V[37],JsonRoot:V[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:V[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:V[1],JSXExpressionContainer:V[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:V[1],JSXMemberExpression:V[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:V[1],JSXSpreadAttribute:V[6],JSXSpreadChild:V[3],JSXText:V[1],KeyofTypeAnnotation:V[6],LabeledStatement:["label","body"],Literal:V[1],LogicalExpression:V[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:V[21],MatchExpression:V[39],MatchExpressionCase:V[40],MatchIdentifierPattern:V[21],MatchLiteralPattern:V[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:V[6],MatchStatement:V[39],MatchStatementCase:V[40],MatchUnaryPattern:V[6],MatchWildcardPattern:V[1],MemberExpression:V[38],MetaProperty:["meta","property"],MethodDefinition:V[42],MixedTypeAnnotation:V[1],ModuleExpression:V[10],NeverTypeAnnotation:V[1],NewExpression:V[9],NGChainedExpression:V[43],NGEmptyExpression:V[1],NGMicrosyntax:V[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:V[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:V[32],NGPipeExpression:["left","right","arguments"],NGRoot:V[37],NullableTypeAnnotation:V[23],NullLiteral:V[1],NullLiteralTypeAnnotation:V[1],NumberLiteralTypeAnnotation:V[1],NumberTypeAnnotation:V[1],NumericLiteral:V[1],ObjectExpression:["properties"],ObjectMethod:V[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:V[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:V[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:V[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:V[9],OptionalIndexedAccessType:V[34],OptionalMemberExpression:V[38],ParenthesizedExpression:V[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:V[1],PipelineTopicExpression:V[3],Placeholder:V[1],PrivateIdentifier:V[1],PrivateName:V[21],Program:V[7],Property:V[32],PropertyDefinition:V[14],QualifiedTypeIdentifier:V[44],QualifiedTypeofIdentifier:V[44],RegExpLiteral:V[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:V[6],SatisfiesExpression:V[4],SequenceExpression:V[43],SpreadElement:V[6],StaticBlock:V[10],StringLiteral:V[1],StringLiteralTypeAnnotation:V[1],StringTypeAnnotation:V[1],Super:V[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:V[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:V[1],TemplateLiteral:["quasis","expressions"],ThisExpression:V[1],ThisTypeAnnotation:V[1],ThrowStatement:V[6],TopicReference:V[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:V[45],TSAbstractKeyword:V[1],TSAbstractMethodDefinition:V[32],TSAbstractPropertyDefinition:V[45],TSAnyKeyword:V[1],TSArrayType:V[2],TSAsExpression:V[4],TSAsyncKeyword:V[1],TSBigIntKeyword:V[1],TSBooleanKeyword:V[1],TSCallSignatureDeclaration:V[46],TSClassImplements:V[47],TSConditionalType:V[17],TSConstructorType:V[46],TSConstructSignatureDeclaration:V[46],TSDeclareFunction:V[31],TSDeclareKeyword:V[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:V[26],TSEnumDeclaration:V[19],TSEnumMember:["id","initializer"],TSExportAssignment:V[3],TSExportKeyword:V[1],TSExternalModuleReference:V[3],TSFunctionType:V[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:V[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:V[35],TSInstantiationExpression:V[47],TSInterfaceBody:V[10],TSInterfaceDeclaration:V[22],TSInterfaceHeritage:V[47],TSIntersectionType:V[36],TSIntrinsicKeyword:V[1],TSJSDocAllType:V[1],TSJSDocNonNullableType:V[23],TSJSDocNullableType:V[23],TSJSDocUnknownType:V[1],TSLiteralType:V[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:V[10],TSModuleDeclaration:V[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:V[21],TSNeverKeyword:V[1],TSNonNullExpression:V[3],TSNullKeyword:V[1],TSNumberKeyword:V[1],TSObjectKeyword:V[1],TSOptionalType:V[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:V[23],TSPrivateKeyword:V[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:V[1],TSPublicKeyword:V[1],TSQualifiedName:V[5],TSReadonlyKeyword:V[1],TSRestType:V[23],TSSatisfiesExpression:V[4],TSStaticKeyword:V[1],TSStringKeyword:V[1],TSSymbolKeyword:V[1],TSTemplateLiteralType:["quasis","types"],TSThisType:V[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:V[23],TSTypeAssertion:V[4],TSTypeLiteral:V[26],TSTypeOperator:V[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:V[48],TSTypeParameterInstantiation:V[48],TSTypePredicate:V[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:V[1],TSUnionType:V[36],TSUnknownKeyword:V[1],TSVoidKeyword:V[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:V[24],TypeAnnotation:V[23],TypeCastExpression:V[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:V[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:V[48],TypeParameterInstantiation:V[48],TypePredicate:V[49],UnaryExpression:V[6],UndefinedTypeAnnotation:V[1],UnionTypeAnnotation:V[36],UnknownTypeAnnotation:V[1],UpdateExpression:V[6],V8IntrinsicIdentifier:V[1],VariableDeclaration:["declarations"],VariableDeclarator:V[27],Variance:V[1],VoidPattern:V[1],VoidTypeAnnotation:V[1],WhileStatement:V[25],WithStatement:["object","body"],YieldExpression:V[6]},ost=rst(nst),ist=ost;function _O(e,t){if(!Xat(e))return e;if(Array.isArray(e)){for(let n=0;ny<=d);f=m&&n.slice(m,d).trim().length===0}return f?void 0:(p.extra={...p.extra,parenthesized:!0},p)}case"TemplateLiteral":if(c.expressions.length!==c.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(r==="flow"||r==="hermes"||r==="espree"||r==="typescript"||i){let p=tf(c)+1,d=_d(c)-(c.tail?1:2);c.range=[p,d]}break;case"VariableDeclaration":{let p=Bat(0,c.declarations,-1);p?.init&&n[_d(p)]!==";"&&(c.range=[tf(c),_d(p)]);break}case"TSParenthesizedType":return c.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(c.types.length===1)return c.types[0];break;case"ImportExpression":r==="hermes"&&c.attributes&&!c.options&&(c.options=c.attributes);break}},onLeave(c){switch(c.type){case"LogicalExpression":if(Mye(c))return dJ(c);break;case"TSImportType":!c.source&&c.argument.type==="TSLiteralType"&&(c.source=c.argument.literal,delete c.argument);break}}}),e}function Mye(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function dJ(e){return Mye(e)?dJ({type:"LogicalExpression",operator:e.operator,left:dJ({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[tf(e.left),_d(e.right.left)]}),right:e.right.right,range:[tf(e),_d(e)]}):e}var cst=sst,lst=/\*\/$/,ust=/^\/\*\*?/,pst=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,dst=/(^|\s+)\/\/([^\n\r]*)/g,Mme=/^(\r?\n)+/,_st=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,jme=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,fst=/(\r?\n|^) *\* ?/g,mst=[];function hst(e){let t=e.match(pst);return t?t[0].trimStart():""}function yst(e){e=_1(0,e.replace(ust,"").replace(lst,""),fst,"$1");let t="";for(;t!==e;)t=e,e=_1(0,e,_st,` $1 $2 -`);e=e.replace(Lme,"").trimEnd();let r=Object.create(null),n=u1(0,e,$me,"").replace(Lme,"").trimEnd(),o;for(;o=$me.exec(e);){let i=u1(0,o[2],ust,"");if(typeof r[o[1]]=="string"||Array.isArray(r[o[1]])){let a=r[o[1]];r[o[1]]=[..._st,...Array.isArray(a)?a:[a],i]}else r[o[1]]=i}return{comments:n,pragmas:r}}var hst=["noformat","noprettier"],yst=["format","prettier"];function gst(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` -`);return t===-1?e:e.slice(0,t)}var Sst=gst;function $ye(e){let t=Sst(e);t&&(e=e.slice(t.length+1));let r=fst(e),{pragmas:n,comments:o}=mst(r);return{shebang:t,text:e,pragmas:n,comments:o}}function vst(e){let{pragmas:t}=$ye(e);return yst.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function bst(e){let{pragmas:t}=$ye(e);return hst.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function xst(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:vst,hasIgnorePragma:bst,locStart:Y_,locEnd:dd,...e}}var Est=xst,Tst=/^[^"'`]*<\/|^[^/]{2}.*\/>/mu;function Dst(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var Ast=Dst,Mye="module",jye="commonjs",wst=[Mye,jye];function Ist(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return Mye;if(/\.(?:cjs|cts)$/iu.test(e))return jye}}var kst={loc:!0,range:!0,comment:!0,tokens:!1,loggerFn:!1,project:!1,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:!0};function Cst(e){let{message:t,location:r}=e;if(!r)return e;let{start:n,end:o}=r;return Pat(t,{loc:{start:{line:n.line,column:n.column+1},end:{line:o.line,column:o.column+1}},cause:e})}var Pst=e=>e&&/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function Ost(e,t){let r=[{...kst,filePath:t}],n=Ist(t);if(n?r=r.map(i=>({...i,sourceType:n})):r=wst.flatMap(i=>r.map(a=>({...a,sourceType:i}))),Pst(t))return r;let o=Tst.test(e);return[o,!o].flatMap(i=>r.map(a=>({...a,jsx:i})))}function Nst(e,t){let r=t?.filepath;typeof r!="string"&&(r=void 0);let n=Ast(e),o=Ost(e,r),i;try{i=Oat(o.map(a=>()=>Iat(n,a)))}catch({errors:[a]}){throw Cst(a)}return ast(i,{parser:"typescript",text:e})}var Fst=Est(Nst);var Rst=[oU,WU,pV],Bye=new Map;function Lst(e,t){return`${t}::${e.length}::${e}`}async function e2(e,t){let r=Lst(e,t),n=Bye.get(r);if(n)return n;try{let o=e,i=!1;t==="typescript"&&(o=`type __T = ${e}`,i=!0);let s=(await y3(o,{parser:t==="typescript-module"?"typescript":t,plugins:Rst,printWidth:60,tabWidth:2,semi:!0,singleQuote:!1,trailingComma:"all"})).trimEnd();return i&&(s=s.replace(/^type __T =\s*/,"").replace(/;$/,"").trimEnd()),Bye.set(r,s),s}catch{return e}}import*as AO from"effect/Context";import*as sh from"effect/Effect";import*as qye from"effect/Layer";import*as Uye from"effect/Option";var Rs=class extends AO.Tag("#runtime/RuntimeLocalScopeService")(){},WV=e=>qye.succeed(Rs,e),ch=(e,t)=>t==null?e:e.pipe(sh.provide(WV(t))),lh=()=>sh.contextWith(e=>AO.getOption(e,Rs)).pipe(sh.map(e=>Uye.isSome(e)?e.value:null)),x1=e=>sh.gen(function*(){let t=yield*lh();return t===null?yield*new e3({message:"Runtime local scope is unavailable"}):e!==void 0&&t.installation.scopeId!==e?yield*new wv({message:`Scope ${e} is not the active local scope ${t.installation.scopeId}`,requestedScopeId:e,activeScopeId:t.installation.scopeId}):t});import*as t2 from"effect/Context";import*as uh from"effect/Layer";var qg=class extends t2.Tag("#runtime/InstallationStore")(){},Kc=class extends t2.Tag("#runtime/ScopeConfigStore")(){},$a=class extends t2.Tag("#runtime/ScopeStateStore")(){},Ma=class extends t2.Tag("#runtime/SourceArtifactStore")(){},r2=e=>uh.mergeAll(uh.succeed(Kc,e.scopeConfigStore),uh.succeed($a,e.scopeStateStore),uh.succeed(Ma,e.sourceArtifactStore)),n2=e=>uh.mergeAll(uh.succeed(qg,e.installationStore),r2(e));import*as JTe from"effect/Context";import*as yQ from"effect/Effect";import*as KTe from"effect/Layer";import*as zye from"effect/Context";var md=class extends zye.Tag("#runtime/SourceTypeDeclarationsRefresherService")(){};import*as Vye from"effect/Effect";var Ug=(e,t)=>Vye.gen(function*(){if(e.runtimeLocalScope.installation.scopeId!==t)return yield*new wv({message:`Runtime local scope mismatch: expected ${t}, got ${e.runtimeLocalScope.installation.scopeId}`,requestedScopeId:t,activeScopeId:e.runtimeLocalScope.installation.scopeId});let r=yield*e.scopeConfigStore.load(),n=yield*e.scopeStateStore.load();return{installation:e.runtimeLocalScope.installation,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,loadedConfig:r,scopeState:n}});import*as Mi from"effect/Effect";import*as Zye from"effect/Effect";var _o=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},vo=e=>typeof e=="string"&&e.trim().length>0?e.trim():null,Wye=e=>typeof e=="boolean"?e:null,wO=e=>Array.isArray(e)?e.flatMap(t=>{let r=vo(t);return r?[r]:[]}):[],Jye=e=>{if(e)try{return JSON.parse(e)}catch{return}},$st=e=>Dc(e),Mst=e=>e.replaceAll("~","~0").replaceAll("/","~1"),IO=e=>`#/$defs/google/${Mst(e)}`,jst=e=>{let t=vo(e)?.toLowerCase();switch(t){case"get":case"put":case"post":case"delete":case"patch":case"head":case"options":return t;default:throw new Error(`Unsupported Google Discovery HTTP method: ${String(e)}`)}},zg=e=>{let t=_o(e.schema),r=vo(t.$ref);if(r)return{$ref:IO(r)};let n=vo(t.description),o=vo(t.format),i=vo(t.type),a=wO(t.enum),s=typeof t.default=="string"||typeof t.default=="number"||typeof t.default=="boolean"?t.default:void 0,c=Wye(t.readOnly),p={...n?{description:n}:{},...o?{format:o}:{},...a.length>0?{enum:[...a]}:{},...s!==void 0?{default:s}:{},...c===!0?{readOnly:!0}:{}};if(i==="any")return p;if(i==="array"){let m=zg({schema:t.items,topLevelSchemas:e.topLevelSchemas});return{...p,type:"array",items:m??{}}}let d=_o(t.properties),f=t.additionalProperties;if(i==="object"||Object.keys(d).length>0||f!==void 0){let m=Object.fromEntries(Object.entries(d).map(([g,S])=>[g,zg({schema:S,topLevelSchemas:e.topLevelSchemas})])),y=f===void 0?void 0:f===!0?!0:zg({schema:f,topLevelSchemas:e.topLevelSchemas});return{...p,type:"object",...Object.keys(m).length>0?{properties:m}:{},...y!==void 0?{additionalProperties:y}:{}}}return i==="boolean"||i==="number"||i==="integer"||i==="string"?{...p,type:i}:Object.keys(p).length>0?p:{}},Bst=e=>{let t=zg({schema:e.parameter,topLevelSchemas:e.topLevelSchemas});return e.parameter.repeated===!0?{type:"array",items:t}:t},Kye=e=>{let t=_o(e.method),r=_o(t.parameters),n={},o=[];for(let[a,s]of Object.entries(r)){let c=_o(s);n[a]=Bst({parameter:c,topLevelSchemas:e.topLevelSchemas}),c.required===!0&&o.push(a)}let i=vo(_o(t.request).$ref);if(i){let a=e.topLevelSchemas[i];a?n.body=zg({schema:a,topLevelSchemas:e.topLevelSchemas}):n.body={$ref:IO(i)}}if(Object.keys(n).length!==0)return JSON.stringify({type:"object",properties:n,...o.length>0?{required:o}:{},additionalProperties:!1})},Gye=e=>{let t=vo(_o(_o(e.method).response).$ref);if(!t)return;let r=e.topLevelSchemas[t],n=r?zg({schema:r,topLevelSchemas:e.topLevelSchemas}):{$ref:IO(t)};return JSON.stringify(n)},qst=e=>Object.entries(_o(_o(e).parameters)).flatMap(([t,r])=>{let n=_o(r),o=vo(n.location);return o!=="path"&&o!=="query"&&o!=="header"?[]:[{name:t,location:o,required:n.required===!0,repeated:n.repeated===!0,description:vo(n.description),type:vo(n.type)??vo(n.$ref),...wO(n.enum).length>0?{enum:[...wO(n.enum)]}:{},...vo(n.default)?{default:vo(n.default)}:{}}]}),Hye=e=>{let t=_o(_o(_o(e.auth).oauth2).scopes),r=Object.fromEntries(Object.entries(t).flatMap(([n,o])=>{let i=vo(_o(o).description)??"";return[[n,i]]}));return Object.keys(r).length>0?r:void 0},Qye=e=>{let t=vo(e.method.id),r=vo(e.method.path);if(!t||!r)return null;let n=jst(e.method.httpMethod),o=t,i=o.startsWith(`${e.service}.`)?o.slice(e.service.length+1):o,a=i.split(".").filter(m=>m.length>0),s=a.at(-1)??i,c=a.length>1?a.slice(0,-1).join("."):null,p=vo(_o(_o(e.method).response).$ref),d=vo(_o(_o(e.method).request).$ref),f=_o(e.method.mediaUpload);return{toolId:i,rawToolId:o,methodId:t,name:i,description:vo(e.method.description),group:c,leaf:s,method:n,path:r,flatPath:vo(e.method.flatPath),parameters:qst(e.method),requestSchemaId:d,responseSchemaId:p,scopes:[...wO(e.method.scopes)],supportsMediaUpload:Object.keys(f).length>0,supportsMediaDownload:Wye(e.method.supportsMediaDownload)===!0,...Kye({method:e.method,topLevelSchemas:e.topLevelSchemas})?{inputSchema:Jye(Kye({method:e.method,topLevelSchemas:e.topLevelSchemas}))}:{},...Gye({method:e.method,topLevelSchemas:e.topLevelSchemas})?{outputSchema:Jye(Gye({method:e.method,topLevelSchemas:e.topLevelSchemas}))}:{}}},Xye=e=>{let t=_o(e.resource),r=Object.values(_o(t.methods)).flatMap(o=>{try{let i=Qye({service:e.service,version:e.version,rootUrl:e.rootUrl,servicePath:e.servicePath,topLevelSchemas:e.topLevelSchemas,method:_o(o)});return i?[i]:[]}catch{return[]}}),n=Object.values(_o(t.resources)).flatMap(o=>Xye({...e,resource:o}));return[...r,...n]},E1=(e,t)=>Zye.try({try:()=>{let r=typeof t=="string"?JSON.parse(t):t,n=vo(r.name),o=vo(r.version),i=vo(r.rootUrl),a=typeof r.servicePath=="string"?r.servicePath:"";if(!n||!o||!i)throw new Error(`Invalid Google Discovery document for ${e}`);let s=Object.fromEntries(Object.entries(_o(r.schemas)).map(([f,m])=>[f,_o(m)])),c=Object.fromEntries(Object.entries(s).map(([f,m])=>[IO(f),JSON.stringify(zg({schema:m,topLevelSchemas:s}))])),p=[...Object.values(_o(r.methods)).flatMap(f=>{let m=Qye({service:n,version:o,rootUrl:i,servicePath:a,topLevelSchemas:s,method:_o(f)});return m?[m]:[]}),...Object.values(_o(r.resources)).flatMap(f=>Xye({service:n,version:o,rootUrl:i,servicePath:a,topLevelSchemas:s,resource:f}))].sort((f,m)=>f.toolId.localeCompare(m.toolId));return{version:1,sourceHash:$st(typeof t=="string"?t:JSON.stringify(t)),service:n,versionName:o,title:vo(r.title),description:vo(r.description),rootUrl:i,servicePath:a,batchPath:vo(r.batchPath),documentationLink:vo(r.documentationLink),...Object.keys(c).length>0?{schemaRefTable:c}:{},...Hye(r)?{oauthScopes:Hye(r)}:{},methods:p}},catch:r=>r instanceof Error?r:new Error(`Failed to extract Google Discovery manifest: ${String(r)}`)}),QV=e=>[...e.methods];import*as XV from"effect/Either";import*as rf from"effect/Effect";var Ust=e=>{try{return new URL(e.servicePath||"",e.rootUrl).toString()}catch{return e.rootUrl}},zst=e=>e.scopes.length>0?Au("oauth2",{confidence:"high",reason:"Google Discovery document declares OAuth scopes",headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:"https://accounts.google.com/o/oauth2/v2/auth",oauthTokenUrl:"https://oauth2.googleapis.com/token",oauthScopes:[...e.scopes]}):Pp("Google Discovery document does not declare OAuth scopes","medium"),YV=e=>rf.gen(function*(){let t=yield*rf.either(cv({method:"GET",url:e.normalizedUrl,headers:e.headers}));if(XV.isLeft(t)||t.right.status<200||t.right.status>=300)return null;let r=yield*rf.either(E1(e.normalizedUrl,t.right.text));if(XV.isLeft(r))return null;let n=Ust({rootUrl:r.right.rootUrl,servicePath:r.right.servicePath}),o=kp(r.right.title)??`${r.right.service}.${r.right.versionName}.googleapis.com`,i=Object.keys(r.right.oauthScopes??{});return{detectedKind:"google_discovery",confidence:"high",endpoint:n,specUrl:e.normalizedUrl,name:o,namespace:os(r.right.service),transport:null,authInference:zst({scopes:i}),toolCount:r.right.methods.length,warnings:[]}}).pipe(rf.catchAll(()=>rf.succeed(null)));import*as ls from"effect/Schema";var eJ=ls.Struct({service:ls.String,version:ls.String,discoveryUrl:ls.optional(ls.NullOr(ls.String)),defaultHeaders:ls.optional(ls.NullOr(Wr)),scopes:ls.optional(ls.Array(ls.String))});var Vst=e=>{let t=e?.providerData.invocation.rootUrl;if(!t)return;let r=e?.providerData.invocation.servicePath??"";return[{url:new URL(r||"",t).toString()}]},Jst=e=>{let t=h_(e.source,e.operation.providerData.toolId),r=Oc.make(`cap_${mn({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),n=Qs.make(`exec_${mn({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"http"})}`),o=e.operation.inputSchema??{},i=e.operation.outputSchema??{},a=e.operation.providerData.invocation.scopes.length>0?_m.make(`security_${mn({sourceId:e.source.id,scopes:e.operation.providerData.invocation.scopes})}`):void 0;if(a&&!e.catalog.symbols[a]){let g=Object.fromEntries(e.operation.providerData.invocation.scopes.map(S=>[S,e.operation.providerData.invocation.scopeDescriptions?.[S]??S]));Vr(e.catalog.symbols)[a]={id:a,kind:"securityScheme",schemeType:"oauth2",docs:wn({summary:"OAuth 2.0",description:"Imported from Google Discovery scopes."}),oauth:{flows:{},scopes:g},synthetic:!1,provenance:un(e.documentId,"#/googleDiscovery/security")}}e.operation.providerData.invocation.parameters.forEach(g=>{let S=pm.make(`param_${mn({capabilityId:r,location:g.location,name:g.name})}`),x=kT(o,g.location,g.name)??(g.repeated?{type:"array",items:{type:g.type==="integer"?"integer":"string",...g.enum?{enum:g.enum}:{}}}:{type:g.type==="integer"?"integer":"string",...g.enum?{enum:g.enum}:{}});Vr(e.catalog.symbols)[S]={id:S,kind:"parameter",name:g.name,location:g.location,required:g.required,...wn({description:g.description})?{docs:wn({description:g.description})}:{},schemaShapeId:e.importer.importSchema(x,`#/googleDiscovery/${e.operation.providerData.toolId}/parameter/${g.location}/${g.name}`,o),synthetic:!1,provenance:un(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/parameter/${g.location}/${g.name}`)}});let s=e.operation.providerData.invocation.requestSchemaId||pv(o)!==void 0?Xy.make(`request_body_${mn({capabilityId:r})}`):void 0;if(s){let g=pv(o)??o;Vr(e.catalog.symbols)[s]={id:s,kind:"requestBody",contents:[{mediaType:"application/json",shapeId:e.importer.importSchema(g,`#/googleDiscovery/${e.operation.providerData.toolId}/requestBody`,o)}],synthetic:!1,provenance:un(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/requestBody`)}}let c=Nc.make(`response_${mn({capabilityId:r})}`);Vr(e.catalog.symbols)[c]={id:c,kind:"response",...wn({description:e.operation.description})?{docs:wn({description:e.operation.description})}:{},...e.operation.outputSchema!==void 0?{contents:[{mediaType:"application/json",shapeId:e.importer.importSchema(i,`#/googleDiscovery/${e.operation.providerData.toolId}/response`,i)}]}:{},synthetic:!1,provenance:un(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/response`)};let p=[];e.operation.providerData.invocation.supportsMediaUpload&&p.push("upload"),e.operation.providerData.invocation.supportsMediaDownload&&p.push("download");let d=g_({catalog:e.catalog,responseId:c,provenance:un(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/responseSet`),traits:p}),f=e.operation.inputSchema!==void 0?e.importer.importSchema(e.operation.inputSchema,`#/googleDiscovery/${e.operation.providerData.toolId}/call`,e.operation.inputSchema):e.importer.importSchema({type:"object",additionalProperties:!1},`#/googleDiscovery/${e.operation.providerData.toolId}/call`);Vr(e.catalog.executables)[n]={id:n,capabilityId:r,scopeId:e.serviceScopeId,adapterKey:"google_discovery",bindingVersion:Ca,binding:e.operation.providerData,projection:{responseSetId:d,callShapeId:f},display:{protocol:"http",method:e.operation.providerData.invocation.method.toUpperCase(),pathTemplate:e.operation.providerData.invocation.path,operationId:e.operation.providerData.methodId,group:e.operation.providerData.group,leaf:e.operation.providerData.leaf,rawToolId:e.operation.providerData.rawToolId,title:e.operation.title??null,summary:e.operation.description??null},synthetic:!1,provenance:un(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/executable`)};let m=e.operation.effect,y=a?{kind:"scheme",schemeId:a,scopes:e.operation.providerData.invocation.scopes}:{kind:"none"};Vr(e.catalog.capabilities)[r]={id:r,serviceScopeId:e.serviceScopeId,surface:{toolPath:t,...e.operation.title?{title:e.operation.title}:{},...e.operation.description?{summary:e.operation.description}:{},tags:["google",e.operation.providerData.service,e.operation.providerData.version]},semantics:{effect:m,safe:m==="read",idempotent:m==="read"||m==="delete",destructive:m==="delete"},auth:y,interaction:y_(m),executableIds:[n],synthetic:!1,provenance:un(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/capability`)}},Yye=e=>S_({source:e.source,documents:e.documents,serviceScopeDefaults:(()=>{let t=Vst(e.operations[0]);return t?{servers:t}:void 0})(),registerOperations:({catalog:t,documentId:r,serviceScopeId:n,importer:o})=>{for(let i of e.operations)Jst({catalog:t,source:e.source,documentId:r,serviceScopeId:n,operation:i,importer:o})}});import{FetchHttpClient as NBt,HttpClient as FBt,HttpClientRequest as RBt}from"@effect/platform";import*as kO from"effect/Effect";import*as qu from"effect/Schema";import{Schema as Ge}from"effect";var Kst=["get","put","post","delete","patch","head","options"],tJ=Ge.Literal(...Kst),ege=Ge.Literal("path","query","header"),rJ=Ge.Struct({name:Ge.String,location:ege,required:Ge.Boolean,repeated:Ge.Boolean,description:Ge.NullOr(Ge.String),type:Ge.NullOr(Ge.String),enum:Ge.optional(Ge.Array(Ge.String)),default:Ge.optional(Ge.String)}),tge=Ge.Struct({method:tJ,path:Ge.String,flatPath:Ge.NullOr(Ge.String),rootUrl:Ge.String,servicePath:Ge.String,parameters:Ge.Array(rJ),requestSchemaId:Ge.NullOr(Ge.String),responseSchemaId:Ge.NullOr(Ge.String),scopes:Ge.Array(Ge.String),scopeDescriptions:Ge.optional(Ge.Record({key:Ge.String,value:Ge.String})),supportsMediaUpload:Ge.Boolean,supportsMediaDownload:Ge.Boolean}),o2=Ge.Struct({kind:Ge.Literal("google_discovery"),service:Ge.String,version:Ge.String,toolId:Ge.String,rawToolId:Ge.String,methodId:Ge.String,group:Ge.NullOr(Ge.String),leaf:Ge.String,invocation:tge}),rge=Ge.Struct({toolId:Ge.String,rawToolId:Ge.String,methodId:Ge.String,name:Ge.String,description:Ge.NullOr(Ge.String),group:Ge.NullOr(Ge.String),leaf:Ge.String,method:tJ,path:Ge.String,flatPath:Ge.NullOr(Ge.String),parameters:Ge.Array(rJ),requestSchemaId:Ge.NullOr(Ge.String),responseSchemaId:Ge.NullOr(Ge.String),scopes:Ge.Array(Ge.String),supportsMediaUpload:Ge.Boolean,supportsMediaDownload:Ge.Boolean,inputSchema:Ge.optional(Ge.Unknown),outputSchema:Ge.optional(Ge.Unknown)}),nge=Ge.Record({key:Ge.String,value:Ge.String}),Gst=Ge.Struct({version:Ge.Literal(1),sourceHash:Ge.String,service:Ge.String,versionName:Ge.String,title:Ge.NullOr(Ge.String),description:Ge.NullOr(Ge.String),rootUrl:Ge.String,servicePath:Ge.String,batchPath:Ge.NullOr(Ge.String),documentationLink:Ge.NullOr(Ge.String),oauthScopes:Ge.optional(Ge.Record({key:Ge.String,value:Ge.String})),schemaRefTable:Ge.optional(nge),methods:Ge.Array(rge)});import*as Hst from"effect/Either";var jBt=qu.decodeUnknownEither(o2),ige=e=>({kind:"google_discovery",service:e.service,version:e.version,toolId:e.definition.toolId,rawToolId:e.definition.rawToolId,methodId:e.definition.methodId,group:e.definition.group,leaf:e.definition.leaf,invocation:{method:e.definition.method,path:e.definition.path,flatPath:e.definition.flatPath,rootUrl:e.rootUrl,servicePath:e.servicePath,parameters:e.definition.parameters,requestSchemaId:e.definition.requestSchemaId,responseSchemaId:e.definition.responseSchemaId,scopes:e.definition.scopes,...e.oauthScopes?{scopeDescriptions:Object.fromEntries(e.definition.scopes.flatMap(t=>e.oauthScopes?.[t]!==void 0?[[t,e.oauthScopes[t]]]:[]))}:{},supportsMediaUpload:e.definition.supportsMediaUpload,supportsMediaDownload:e.definition.supportsMediaDownload}}),Zst=qu.decodeUnknownEither(qu.parseJson(qu.Record({key:qu.String,value:qu.Unknown}))),nJ=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{};var age=(e,t,r)=>{if(t.length===0)return;let[n,...o]=t;if(!n)return;if(o.length===0){e[n]=r;return}let i=nJ(e[n]);e[n]=i,age(i,o,r)},oge=e=>{if(e.schema===void 0||e.schema===null)return{};let t=nJ(e.schema);if(!e.refTable||Object.keys(e.refTable).length===0)return t;let r=nJ(t.$defs);for(let[n,o]of Object.entries(e.refTable)){if(!n.startsWith("#/$defs/"))continue;let i=typeof o=="string"?(()=>{try{return JSON.parse(o)}catch{return o}})():o,a=n.slice(8).split("/").filter(s=>s.length>0);age(r,a,i)}return Object.keys(r).length>0?{...t,$defs:r}:t};var oJ=e=>{let t=Object.fromEntries(Object.entries(e.manifest.schemaRefTable??{}).map(([o,i])=>{try{return[o,JSON.parse(i)]}catch{return[o,i]}})),r=e.definition.inputSchema===void 0?void 0:oge({schema:e.definition.inputSchema,refTable:t}),n=e.definition.outputSchema===void 0?void 0:oge({schema:e.definition.outputSchema,refTable:t});return{inputTypePreview:hu(r,"unknown",1/0),outputTypePreview:hu(n,"unknown",1/0),...r!==void 0?{inputSchema:r}:{},...n!==void 0?{outputSchema:n}:{},providerData:ige({service:e.manifest.service,version:e.manifest.versionName,rootUrl:e.manifest.rootUrl,servicePath:e.manifest.servicePath,oauthScopes:e.manifest.oauthScopes,definition:e.definition})}};import{FetchHttpClient as Wst,HttpClient as Qst,HttpClientRequest as sge}from"@effect/platform";import*as Yn from"effect/Effect";import*as dr from"effect/Schema";var lge=dr.extend(gm,dr.Struct({kind:dr.Literal("google_discovery"),service:dr.Trim.pipe(dr.nonEmptyString()),version:dr.Trim.pipe(dr.nonEmptyString()),discoveryUrl:dr.optional(dr.NullOr(dr.Trim.pipe(dr.nonEmptyString()))),scopes:dr.optional(dr.Array(dr.Trim.pipe(dr.nonEmptyString()))),scopeOauthClientId:dr.optional(dr.NullOr(Nse)),oauthClient:Mse,name:Ho,namespace:Ho,auth:dr.optional(x_)})),Xst=lge,cge=dr.Struct({service:dr.Trim.pipe(dr.nonEmptyString()),version:dr.Trim.pipe(dr.nonEmptyString()),discoveryUrl:dr.Trim.pipe(dr.nonEmptyString()),defaultHeaders:dr.optional(dr.NullOr(Wr)),scopes:dr.optional(dr.Array(dr.Trim.pipe(dr.nonEmptyString())))}),Yst=dr.Struct({service:dr.String,version:dr.String,discoveryUrl:dr.optional(dr.String),defaultHeaders:dr.optional(dr.NullOr(Wr)),scopes:dr.optional(dr.Array(dr.String))}),i2=1,ect=(e,t)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&t.some(r=>Object.prototype.hasOwnProperty.call(e,r)),tct=(e,t)=>`https://www.googleapis.com/discovery/v1/apis/${encodeURIComponent(e)}/${encodeURIComponent(t)}/rest`,ph=e=>Yn.gen(function*(){if(ect(e.binding,["transport","queryParams","headers","specUrl"]))return yield*Co("google-discovery/adapter","Google Discovery sources cannot define MCP or OpenAPI binding fields");let t=yield*$p({sourceId:e.id,label:"Google Discovery",version:e.bindingVersion,expectedVersion:i2,schema:Yst,value:e.binding,allowedKeys:["service","version","discoveryUrl","defaultHeaders","scopes"]}),r=t.service.trim(),n=t.version.trim();if(r.length===0||n.length===0)return yield*Co("google-discovery/adapter","Google Discovery sources require service and version");let o=typeof t.discoveryUrl=="string"&&t.discoveryUrl.trim().length>0?t.discoveryUrl.trim():null;return{service:r,version:n,discoveryUrl:o??tct(r,n),defaultHeaders:t.defaultHeaders??null,scopes:(t.scopes??[]).map(i=>i.trim()).filter(i=>i.length>0)}}),uge=e=>Yn.gen(function*(){let t=yield*Qst.HttpClient,r=sge.get(e.url).pipe(sge.setHeaders({...e.headers,...e.cookies?{cookie:Object.entries(e.cookies).map(([o,i])=>`${o}=${encodeURIComponent(i)}`).join("; ")}:{}})),n=yield*t.execute(r).pipe(Yn.mapError(o=>o instanceof Error?o:new Error(String(o))));return n.status===401||n.status===403?yield*new b_("import",`Google Discovery fetch requires credentials (status ${n.status})`):n.status<200||n.status>=300?yield*Co("google-discovery/adapter",`Google Discovery fetch failed with status ${n.status}`):yield*n.text.pipe(Yn.mapError(o=>o instanceof Error?o:new Error(String(o))))}).pipe(Yn.provide(Wst.layer)),rct=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},pge=(e,t)=>{if(e==null)return[];if(Array.isArray(e)){let r=e.flatMap(n=>n==null?[]:[String(n)]);return t?r:[r.join(",")]}return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?[String(e)]:[JSON.stringify(e)]},nct=e=>e.pathTemplate.replaceAll(/\{([^}]+)\}/g,(t,r)=>{let n=e.parameters.find(a=>a.location==="path"&&a.name===r),o=e.args[r];if(o==null&&n?.required)throw new Error(`Missing required path parameter: ${r}`);let i=pge(o,!1);return i.length===0?"":encodeURIComponent(i[0])}),oct=e=>new URL(e.providerData.invocation.servicePath||"",e.providerData.invocation.rootUrl).toString(),ict=e=>{let t={};return e.headers.forEach((r,n)=>{t[n]=r}),t},act=async e=>{let t=e.headers.get("content-type")?.toLowerCase()??"",r=await e.text();if(r.trim().length===0)return null;if(t.includes("application/json")||t.includes("+json"))try{return JSON.parse(r)}catch{return r}return r},sct=e=>{let t=oJ({manifest:e.manifest,definition:e.definition});return{toolId:e.definition.toolId,title:e.definition.name,description:e.definition.description,effect:e.definition.method==="get"||e.definition.method==="head"?"read":e.definition.method==="delete"?"delete":"write",inputSchema:t.inputSchema,outputSchema:t.outputSchema,providerData:t.providerData}},cct=e=>{let t=Object.keys(e.oauthScopes??{});if(t.length===0)return[];let r=new Map;for(let o of t)r.set(o,new Set);for(let o of e.methods)for(let i of o.scopes)r.get(i)?.add(o.methodId);return t.filter(o=>{let i=r.get(o);return!i||i.size===0?!0:!t.some(a=>{if(a===o)return!1;let s=r.get(a);if(!s||s.size<=i.size)return!1;for(let c of i)if(!s.has(c))return!1;return!0})})},lct=e=>Yn.gen(function*(){let t=yield*ph(e),r=t.scopes??[],n=yield*uge({url:t.discoveryUrl,headers:t.defaultHeaders??void 0}).pipe(Yn.flatMap(a=>E1(e.name,a)),Yn.catchAll(()=>Yn.succeed(null))),o=n?cct(n):[],i=o.length>0?[...new Set([...o,...r])]:r;return i.length===0?null:{providerKey:"google_workspace",authorizationEndpoint:"https://accounts.google.com/o/oauth2/v2/auth",tokenEndpoint:"https://oauth2.googleapis.com/token",scopes:i,headerName:"Authorization",prefix:"Bearer ",clientAuthentication:"client_secret_post",authorizationParams:{access_type:"offline",prompt:"consent",include_granted_scopes:"true"}}}),dge={key:"google_discovery",displayName:"Google Discovery",catalogKind:"imported",connectStrategy:"direct",credentialStrategy:"credential_managed",bindingConfigVersion:i2,providerKey:"google_workspace",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:lge,executorAddInputSchema:Xst,executorAddHelpText:["service is the Discovery service name, e.g. sheets or drive. version is the API version, e.g. v4 or v3."],executorAddInputSignatureWidth:420,localConfigBindingSchema:eJ,localConfigBindingFromSource:e=>Yn.runSync(Yn.map(ph(e),t=>({service:t.service,version:t.version,discoveryUrl:t.discoveryUrl,defaultHeaders:t.defaultHeaders??null,scopes:t.scopes}))),serializeBindingConfig:e=>Rp({adapterKey:"google_discovery",version:i2,payloadSchema:cge,payload:Yn.runSync(ph(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:t})=>Yn.map(Lp({sourceId:e,label:"Google Discovery",adapterKey:"google_discovery",version:i2,payloadSchema:cge,value:t}),({version:r,payload:n})=>({version:r,payload:{service:n.service,version:n.version,discoveryUrl:n.discoveryUrl,defaultHeaders:n.defaultHeaders??null,scopes:n.scopes??[]}})),bindingStateFromSource:e=>Yn.map(ph(e),t=>({...Fp,defaultHeaders:t.defaultHeaders??null})),sourceConfigFromSource:e=>Yn.runSync(Yn.map(ph(e),t=>({kind:"google_discovery",service:t.service,version:t.version,discoveryUrl:t.discoveryUrl,defaultHeaders:t.defaultHeaders,scopes:t.scopes}))),validateSource:e=>Yn.gen(function*(){let t=yield*ph(e);return{...e,bindingVersion:i2,binding:{service:t.service,version:t.version,discoveryUrl:t.discoveryUrl,defaultHeaders:t.defaultHeaders??null,scopes:[...t.scopes??[]]}}}),shouldAutoProbe:e=>e.enabled&&(e.status==="draft"||e.status==="probing"),discoveryPriority:({normalizedUrl:e})=>e.includes("$discovery/rest")||e.includes("/discovery/v1/apis/")?500:300,detectSource:({normalizedUrl:e,headers:t})=>YV({normalizedUrl:e,headers:t}),syncCatalog:({source:e,resolveAuthMaterialForSlot:t})=>Yn.gen(function*(){let r=yield*ph(e),n=yield*t("import"),o=yield*uge({url:r.discoveryUrl,headers:{...r.defaultHeaders,...n.headers},cookies:n.cookies,queryParams:n.queryParams}).pipe(Yn.mapError(c=>E_(c)?c:new Error(`Failed fetching Google Discovery document for ${e.id}: ${c.message}`))),i=yield*E1(e.name,o),a=QV(i),s=Date.now();return Np({fragment:Yye({source:e,documents:[{documentKind:"google_discovery",documentKey:r.discoveryUrl,contentText:o,fetchedAt:s}],operations:a.map(c=>sct({manifest:i,definition:c}))}),importMetadata:ws({source:e,adapterKey:"google_discovery"}),sourceHash:i.sourceHash})}),getOauth2SetupConfig:({source:e})=>lct(e),normalizeOauthClientInput:e=>Yn.succeed({...e,redirectMode:e.redirectMode??"loopback"}),invoke:e=>Yn.tryPromise({try:async()=>{let t=Yn.runSync(ph(e.source)),r=Sm({executableId:e.executable.id,label:"Google Discovery",version:e.executable.bindingVersion,expectedVersion:Ca,schema:o2,value:e.executable.binding}),n=rct(e.args),o=nct({pathTemplate:r.invocation.path,args:n,parameters:r.invocation.parameters}),i=new URL(o.replace(/^\//,""),oct({providerData:r})),a={...t.defaultHeaders};for(let y of r.invocation.parameters){if(y.location==="path")continue;let g=n[y.name];if(g==null&&y.required)throw new Error(`Missing required ${y.location} parameter: ${y.name}`);let S=pge(g,y.repeated);if(S.length!==0){if(y.location==="query"){for(let x of S)i.searchParams.append(y.name,x);continue}y.location==="header"&&(a[y.name]=y.repeated?S.join(","):S[0])}}let s=yu({url:i,queryParams:e.auth.queryParams}),c=Tc({headers:{...a,...e.auth.headers},cookies:e.auth.cookies}),p,d=Object.keys(e.auth.bodyValues).length>0;r.invocation.requestSchemaId!==null&&(n.body!==void 0||d)&&(p=JSON.stringify(t_({body:n.body!==void 0?n.body:{},bodyValues:e.auth.bodyValues,label:`${r.invocation.method.toUpperCase()} ${r.invocation.path}`})),"content-type"in c||(c["content-type"]="application/json"));let f=await fetch(s.toString(),{method:r.invocation.method.toUpperCase(),headers:c,...p!==void 0?{body:p}:{}}),m=await act(f);return{data:f.ok?m:null,error:f.ok?null:m,headers:ict(f),status:f.status}},catch:t=>t instanceof Error?t:new Error(String(t))})};import*as bo from"effect/Schema";var _ge=bo.Literal("request","field"),fge=bo.Literal("query","mutation"),a2=bo.Struct({kind:bo.Literal("graphql"),toolKind:_ge,toolId:bo.String,rawToolId:bo.NullOr(bo.String),group:bo.NullOr(bo.String),leaf:bo.NullOr(bo.String),fieldName:bo.NullOr(bo.String),operationType:bo.NullOr(fge),operationName:bo.NullOr(bo.String),operationDocument:bo.NullOr(bo.String),queryTypeName:bo.NullOr(bo.String),mutationTypeName:bo.NullOr(bo.String),subscriptionTypeName:bo.NullOr(bo.String)});import*as $1e from"effect/Either";import*as Ih from"effect/Effect";var Or=e0(E1e(),1);import*as ugt from"effect/Either";import*as cA from"effect/Effect";import*as Xu from"effect/Schema";import*as Y4 from"effect/HashMap";import*as k1e from"effect/Option";var T1e=320;var pgt=["id","identifier","key","slug","name","title","number","url","state","status","success"],dgt=["node","nodes","edge","edges","pageInfo","viewer","user","users","team","teams","project","projects","organization","issue","issues","creator","assignee","items"];var HH=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},_gt=e=>typeof e=="string"&&e.trim().length>0?e:null;var C1e=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1 $2").replace(/[^a-zA-Z0-9]+/g," ").trim().split(/\s+/).filter(t=>t.length>0),P1e=e=>{let t=C1e(e).map(o=>o.toLowerCase());if(t.length===0)return"tool";let[r,...n]=t;return`${r}${n.map(o=>`${o[0]?.toUpperCase()??""}${o.slice(1)}`).join("")}`},Q4=e=>{let t=P1e(e);return`${t[0]?.toUpperCase()??""}${t.slice(1)}`},fgt=e=>C1e(e).map(t=>`${t[0]?.toUpperCase()??""}${t.slice(1)}`).join(" "),X4=(e,t)=>{let r=t?.trim();return r?{...e,description:r}:e},O1e=(e,t)=>t!==void 0?{...e,default:t}:e,ZH=(e,t)=>{let r=t?.trim();return r?{...e,deprecated:!0,"x-deprecationReason":r}:e},mgt=e=>{let t;try{t=JSON.parse(e)}catch(o){throw new Error(`GraphQL document is not valid JSON: ${o instanceof Error?o.message:String(o)}`)}let r=HH(t);if(Array.isArray(r.errors)&&r.errors.length>0){let o=r.errors.map(i=>_gt(HH(i).message)).filter(i=>i!==null);throw new Error(o.length>0?`GraphQL introspection returned errors: ${o.join("; ")}`:"GraphQL introspection returned errors")}let n=r.data;if(!n||typeof n!="object"||!("__schema"in n))throw new Error("GraphQL introspection document is missing data.__schema");return n},hgt={type:"object",properties:{query:{type:"string",description:"GraphQL query or mutation document."},variables:{type:"object",description:"Optional GraphQL variables.",additionalProperties:!0},operationName:{type:"string",description:"Optional GraphQL operation name."},headers:{type:"object",description:"Optional per-request headers.",additionalProperties:{type:"string"}}},required:["query"],additionalProperties:!1},ygt={type:"object",properties:{status:{type:"number"},headers:{type:"object",additionalProperties:{type:"string"}},body:{}},required:["status","headers","body"],additionalProperties:!1},eN=(0,Or.getIntrospectionQuery)({descriptions:!0,inputValueDeprecation:!0,schemaDescription:!0}),ggt=e=>{switch(e){case"String":case"ID":case"Date":case"DateTime":case"DateTimeOrDuration":case"Duration":case"UUID":case"TimelessDate":case"TimelessDateOrDuration":case"URI":return{type:"string"};case"Int":case"Float":return{type:"number"};case"Boolean":return{type:"boolean"};case"JSONObject":return{type:"object",additionalProperties:!0};case"JSONString":return{type:"string"};case"JSON":return{};default:return{}}},Sgt=e=>{switch(e){case"String":return"value";case"ID":return"id";case"Date":return"2026-03-08";case"DateTime":case"DateTimeOrDuration":return"2026-03-08T00:00:00.000Z";case"UUID":return"00000000-0000-0000-0000-000000000000";case"TimelessDate":case"TimelessDateOrDuration":return"2026-03-08";case"Duration":return"P1D";case"URI":return"https://example.com";case"Int":return 1;case"Float":return 1.5;case"Boolean":return!0;case"JSONObject":return{};case"JSONString":return"{}";default:return{}}},lA="#/$defs/graphql",vgt=e=>`${lA}/scalars/${e}`,bgt=e=>`${lA}/enums/${e}`,xgt=e=>`${lA}/input/${e}`,Egt=(e,t)=>`${lA}/output/${t===0?e:`${e}__depth${t}`}`,Tgt=()=>`${lA}/output/GraphqlTypenameOnly`,sA=e=>({$ref:e}),Dgt=()=>({type:"object",properties:{__typename:{type:"string"}},required:["__typename"],additionalProperties:!1}),Agt=()=>{let e={},t=new Map,r=(d,f)=>{e[d]=JSON.stringify(f)},n=()=>{let d=Tgt();return d in e||r(d,Dgt()),sA(d)},o=d=>{let f=vgt(d);return f in e||r(f,ggt(d)),sA(f)},i=(d,f)=>{let m=bgt(d);return m in e||r(m,{type:"string",enum:[...f]}),sA(m)},a=d=>{let f=xgt(d.name);if(!(f in e)){r(f,{});let m=Object.values(d.getFields()),y=Object.fromEntries(m.map(S=>{let x=s(S.type),A=ZH(O1e(X4(x,S.description),S.defaultValue),S.deprecationReason);return[S.name,A]})),g=m.filter(S=>(0,Or.isNonNullType)(S.type)&&S.defaultValue===void 0).map(S=>S.name);r(f,{type:"object",properties:y,...g.length>0?{required:g}:{},additionalProperties:!1})}return sA(f)},s=d=>{if((0,Or.isNonNullType)(d))return s(d.ofType);if((0,Or.isListType)(d))return{type:"array",items:s(d.ofType)};let f=(0,Or.getNamedType)(d);return(0,Or.isScalarType)(f)?o(f.name):(0,Or.isEnumType)(f)?i(f.name,f.getValues().map(m=>m.name)):(0,Or.isInputObjectType)(f)?a(f):{}},c=(d,f)=>{if((0,Or.isScalarType)(d))return{selectionSet:"",schema:o(d.name)};if((0,Or.isEnumType)(d))return{selectionSet:"",schema:i(d.name,d.getValues().map(U=>U.name))};let m=Egt(d.name,f),y=t.get(m);if(y)return y;if((0,Or.isUnionType)(d)){let U={selectionSet:"{ __typename }",schema:n()};return t.set(m,U),U}if(!(0,Or.isObjectType)(d)&&!(0,Or.isInterfaceType)(d))return{selectionSet:"{ __typename }",schema:n()};let g={selectionSet:"{ __typename }",schema:n()};if(t.set(m,g),f>=2)return g;let S=Object.values(d.getFields()).filter(U=>!U.name.startsWith("__")),x=S.filter(U=>(0,Or.isLeafType)((0,Or.getNamedType)(U.type))),A=S.filter(U=>!(0,Or.isLeafType)((0,Or.getNamedType)(U.type))),I=D1e({fields:x,preferredNames:pgt,limit:3}),E=D1e({fields:A,preferredNames:dgt,limit:2}),C=WH([...I,...E]);if(C.length===0)return g;let F=[],O={},$=[];for(let U of C){let ge=p(U.type,f+1),Te=ZH(X4(ge.schema,U.description),U.deprecationReason);O[U.name]=Te,$.push(U.name),F.push(ge.selectionSet.length>0?`${U.name} ${ge.selectionSet}`:U.name)}O.__typename={type:"string"},$.push("__typename"),F.push("__typename"),r(m,{type:"object",properties:O,required:$,additionalProperties:!1});let N={selectionSet:`{ ${F.join(" ")} }`,schema:sA(m)};return t.set(m,N),N},p=(d,f=0)=>{if((0,Or.isNonNullType)(d))return p(d.ofType,f);if((0,Or.isListType)(d)){let m=p(d.ofType,f);return{selectionSet:m.selectionSet,schema:{type:"array",items:m.schema}}}return c((0,Or.getNamedType)(d),f)};return{refTable:e,inputSchemaForType:s,selectedOutputForType:p}},W4=(e,t=0)=>{if((0,Or.isNonNullType)(e))return W4(e.ofType,t);if((0,Or.isListType)(e))return[W4(e.ofType,t+1)];let r=(0,Or.getNamedType)(e);if((0,Or.isScalarType)(r))return Sgt(r.name);if((0,Or.isEnumType)(r))return r.getValues()[0]?.name??"VALUE";if((0,Or.isInputObjectType)(r)){if(t>=2)return{};let n=Object.values(r.getFields()),o=n.filter(a=>(0,Or.isNonNullType)(a.type)&&a.defaultValue===void 0),i=o.length>0?o:n.slice(0,1);return Object.fromEntries(i.map(a=>[a.name,a.defaultValue??W4(a.type,t+1)]))}return{}},WH=e=>{let t=new Set,r=[];for(let n of e)t.has(n.name)||(t.add(n.name),r.push(n));return r},D1e=e=>{let t=e.preferredNames.map(r=>e.fields.find(n=>n.name===r)).filter(r=>r!==void 0);return t.length>=e.limit?WH(t).slice(0,e.limit):WH([...t,...e.fields]).slice(0,e.limit)},QH=e=>(0,Or.isNonNullType)(e)?`${QH(e.ofType)}!`:(0,Or.isListType)(e)?`[${QH(e.ofType)}]`:e.name,wgt=(e,t)=>{let r=Object.fromEntries(e.map(o=>{let i=t.inputSchemaForType(o.type),a=ZH(O1e(X4(i,o.description),o.defaultValue),o.deprecationReason);return[o.name,a]})),n=e.filter(o=>(0,Or.isNonNullType)(o.type)&&o.defaultValue===void 0).map(o=>o.name);return{type:"object",properties:{...r,headers:{type:"object",description:"Optional per-request headers.",additionalProperties:{type:"string"}}},...n.length>0?{required:n}:{},additionalProperties:!1}},Igt=(e,t)=>{let r=t.selectedOutputForType(e);return{type:"object",properties:{data:X4(r.schema,"Value returned for the selected GraphQL field."),errors:{type:"array",items:{type:"object",properties:{message:{type:"string",description:"GraphQL error message."},path:{type:"array",description:"Path to the field that produced the error.",items:{anyOf:[{type:"string"},{type:"number"}]}},locations:{type:"array",description:"Source locations for the error in the GraphQL document.",items:{type:"object",properties:{line:{type:"number"},column:{type:"number"}},required:["line","column"],additionalProperties:!1}},extensions:{type:"object",description:"Additional provider-specific GraphQL error metadata.",additionalProperties:!0}},required:["message"],additionalProperties:!0}}},required:["data","errors"],additionalProperties:!1}},kgt=e=>{if(e.length===0)return{};let t=e.filter(o=>(0,Or.isNonNullType)(o.type)&&o.defaultValue===void 0),r=t.length>0?t:e.slice(0,1);return Object.fromEntries(r.map(o=>[o.name,o.defaultValue??W4(o.type)]))},Cgt=e=>{let t=e.bundleBuilder.selectedOutputForType(e.fieldType),r=`${Q4(e.operationType)}${Q4(e.fieldName)}`,n=e.args.map(s=>`$${s.name}: ${QH(s.type)}`).join(", "),o=e.args.map(s=>`${s.name}: $${s.name}`).join(", "),i=o.length>0?`${e.fieldName}(${o})`:e.fieldName,a=t.selectionSet.length>0?` ${t.selectionSet}`:"";return{operationName:r,operationDocument:`${e.operationType} ${r}${n.length>0?`(${n})`:""} { ${i}${a} }`}},Pgt=e=>{let t=e.description?.trim();return t||`Execute the GraphQL ${e.operationType} field '${e.fieldName}'.`},Ogt=e=>({kind:"request",toolId:"request",rawToolId:"request",toolName:"GraphQL request",description:`Execute a raw GraphQL request against ${e}.`,inputSchema:hgt,outputSchema:ygt,exampleInput:{query:"query { __typename }"}}),Ngt=e=>{let t=e.map(o=>({...o})),r="request",n=o=>{let i=new Map;for(let a of t){let s=i.get(a.toolId)??[];s.push(a),i.set(a.toolId,s)}for(let[a,s]of i.entries())if(!(s.length<2&&a!==r))for(let c of s)c.toolId=o(c)};return n(o=>`${o.leaf}${Q4(o.operationType)}`),n(o=>`${o.leaf}${Q4(o.operationType)}${Dc(`${o.group}:${o.fieldName}`).slice(0,6)}`),t.sort((o,i)=>o.toolId.localeCompare(i.toolId)||o.fieldName.localeCompare(i.fieldName)||o.operationType.localeCompare(i.operationType)).map(o=>({...o}))},A1e=e=>e.rootType?Object.values(e.rootType.getFields()).filter(t=>!t.name.startsWith("__")).map(t=>{let r=P1e(t.name),n=Igt(t.type,e.bundleBuilder),o=wgt(t.args,e.bundleBuilder),{operationName:i,operationDocument:a}=Cgt({operationType:e.operationType,fieldName:t.name,args:t.args,fieldType:t.type,bundleBuilder:e.bundleBuilder});return{kind:"field",toolId:r,rawToolId:t.name,toolName:fgt(t.name),description:Pgt({operationType:e.operationType,fieldName:t.name,description:t.description}),group:e.operationType,leaf:r,fieldName:t.name,operationType:e.operationType,operationName:i,operationDocument:a,inputSchema:o,outputSchema:n,exampleInput:kgt(t.args),searchTerms:[e.operationType,t.name,...t.args.map(s=>s.name),(0,Or.getNamedType)(t.type).name]}}):[],Fgt=e=>Dc(e),N1e=(e,t)=>cA.try({try:()=>{let r=mgt(t),n=(0,Or.buildClientSchema)(r),o=Fgt(t),i=Agt(),a=Ngt([...A1e({rootType:n.getQueryType(),operationType:"query",bundleBuilder:i}),...A1e({rootType:n.getMutationType(),operationType:"mutation",bundleBuilder:i})]);return{version:2,sourceHash:o,queryTypeName:n.getQueryType()?.name??null,mutationTypeName:n.getMutationType()?.name??null,subscriptionTypeName:n.getSubscriptionType()?.name??null,...Object.keys(i.refTable).length>0?{schemaRefTable:i.refTable}:{},tools:[...a,Ogt(e)]}},catch:r=>r instanceof Error?r:new Error(String(r))}),F1e=e=>e.tools.map(t=>({toolId:t.toolId,rawToolId:t.rawToolId,name:t.toolName,description:t.description??`Execute ${t.toolName}.`,group:t.kind==="field"?t.group:null,leaf:t.kind==="field"?t.leaf:null,fieldName:t.kind==="field"?t.fieldName:null,operationType:t.kind==="field"?t.operationType:null,operationName:t.kind==="field"?t.operationName:null,operationDocument:t.kind==="field"?t.operationDocument:null,searchTerms:t.kind==="field"?t.searchTerms:["request","graphql","query","mutation"]})),Rgt=e=>{if(!e||Object.keys(e).length===0)return;let t={};for(let[r,n]of Object.entries(e)){if(!r.startsWith("#/$defs/"))continue;let o=typeof n=="string"?(()=>{try{return JSON.parse(n)}catch{return n}})():n,i=r.slice(8).split("/").filter(a=>a.length>0);L1e(t,i,o)}return Object.keys(t).length>0?t:void 0},w1e=e=>{if(e.schema===void 0)return;if(e.defsRoot===void 0)return e.schema;let t=e.cache.get(e.schema);if(t)return t;let r=e.schema.$defs,n=r&&typeof r=="object"&&!Array.isArray(r)?{...e.schema,$defs:{...e.defsRoot,...r}}:{...e.schema,$defs:e.defsRoot};return e.cache.set(e.schema,n),n},I1e=new WeakMap,Lgt=e=>{let t=I1e.get(e);if(t)return t;let r=Y4.fromIterable(e.tools.map(s=>[s.toolId,s])),n=Rgt(e.schemaRefTable),o=new WeakMap,i=new Map,a={resolve(s){let c=i.get(s.toolId);if(c)return c;let p=k1e.getOrUndefined(Y4.get(r,s.toolId)),d=w1e({schema:p?.inputSchema,defsRoot:n,cache:o}),f=w1e({schema:p?.outputSchema,defsRoot:n,cache:o}),m={inputTypePreview:hu(d,"unknown",T1e),outputTypePreview:hu(f,"unknown",T1e),...d!==void 0?{inputSchema:d}:{},...f!==void 0?{outputSchema:f}:{},...p?.exampleInput!==void 0?{exampleInput:p.exampleInput}:{},providerData:{kind:"graphql",toolKind:p?.kind??"request",toolId:s.toolId,rawToolId:s.rawToolId,group:s.group,leaf:s.leaf,fieldName:s.fieldName,operationType:s.operationType,operationName:s.operationName,operationDocument:s.operationDocument,queryTypeName:e.queryTypeName,mutationTypeName:e.mutationTypeName,subscriptionTypeName:e.subscriptionTypeName}};return i.set(s.toolId,m),m}};return I1e.set(e,a),a},R1e=e=>Lgt(e.manifest).resolve(e.definition),Izt=Xu.decodeUnknownEither(a2),kzt=Xu.decodeUnknownEither(Xu.parseJson(Xu.Record({key:Xu.String,value:Xu.Unknown}))),L1e=(e,t,r)=>{if(t.length===0)return;let[n,...o]=t;if(!n)return;if(o.length===0){e[n]=r;return}let i=HH(e[n]);e[n]=i,L1e(i,o,r)};var XH=e=>Ih.gen(function*(){let t=yield*Ih.either(cv({method:"POST",url:e.normalizedUrl,headers:{accept:"application/graphql-response+json, application/json","content-type":"application/json",...e.headers},body:JSON.stringify({query:eN})}));if($1e.isLeft(t))return null;let r=Yae(t.right.text),n=(t.right.headers["content-type"]??"").toLowerCase(),o=Ci(r)&&Ci(r.data)?r.data:null;if(o&&Ci(o.__schema)){let p=Cp(e.normalizedUrl);return{detectedKind:"graphql",confidence:"high",endpoint:e.normalizedUrl,specUrl:null,name:p,namespace:os(p),transport:null,authInference:Pp("GraphQL introspection succeeded without an advertised auth requirement","medium"),toolCount:null,warnings:[]}}let a=(Ci(r)&&Array.isArray(r.errors)?r.errors:[]).map(p=>Ci(p)&&typeof p.message=="string"?p.message:null).filter(p=>p!==null);if(!(n.includes("application/graphql-response+json")||fm(e.normalizedUrl)&&t.right.status>=400&&t.right.status<500||a.some(p=>/introspection|graphql|query/i.test(p))))return null;let c=Cp(e.normalizedUrl);return{detectedKind:"graphql",confidence:o?"high":"medium",endpoint:e.normalizedUrl,specUrl:null,name:c,namespace:os(c),transport:null,authInference:t.right.status===401||t.right.status===403?Qae(t.right.headers,"GraphQL endpoint rejected introspection and did not advertise a concrete auth scheme"):Pp(a.length>0?`GraphQL endpoint responded with errors during introspection: ${a[0]}`:"GraphQL endpoint shape detected","medium"),toolCount:null,warnings:a.length>0?[a[0]]:[]}}).pipe(Ih.catchAll(()=>Ih.succeed(null)));import*as U1 from"effect/Schema";var YH=U1.Struct({defaultHeaders:U1.optional(U1.NullOr(Wr))});var M1e=()=>({type:"array",items:{type:"object",properties:{message:{type:"string",description:"GraphQL error message."},path:{type:"array",description:"Path to the field that produced the error.",items:{anyOf:[{type:"string"},{type:"number"}]}},locations:{type:"array",description:"Source locations for the error in the GraphQL document.",items:{type:"object",properties:{line:{type:"number"},column:{type:"number"}},required:["line","column"],additionalProperties:!1}},extensions:{type:"object",description:"Additional provider-specific GraphQL error metadata.",additionalProperties:!0}},required:["message"],additionalProperties:!0}}),$gt=e=>{if(e.toolKind!=="field")return Xs(e.outputSchema);let t=Xs(e.outputSchema),r=Xs(Xs(t.properties).data);return Object.keys(r).length>0?lv(r,e.outputSchema):t},Mgt=e=>{if(e.toolKind!=="field")return M1e();let t=Xs(e.outputSchema),r=Xs(Xs(t.properties).errors);return Object.keys(r).length>0?lv(r,e.outputSchema):M1e()},jgt=e=>{let t=h_(e.source,e.operation.providerData.toolId),r=Oc.make(`cap_${mn({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),n=Qs.make(`exec_${mn({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"graphql"})}`),o=e.operation.inputSchema!==void 0?e.importer.importSchema(e.operation.inputSchema,`#/graphql/${e.operation.providerData.toolId}/call`):e.importer.importSchema({type:"object",additionalProperties:!0},`#/graphql/${e.operation.providerData.toolId}/call`),i=e.operation.outputSchema!==void 0?e.importer.importSchema($gt({toolKind:e.operation.providerData.toolKind,outputSchema:e.operation.outputSchema}),`#/graphql/${e.operation.providerData.toolId}/data`):e.importer.importSchema({type:"object",additionalProperties:!0},`#/graphql/${e.operation.providerData.toolId}/data`),a=e.importer.importSchema(Mgt({toolKind:e.operation.providerData.toolKind,outputSchema:e.operation.outputSchema}),`#/graphql/${e.operation.providerData.toolId}/errors`),s=Nc.make(`response_${mn({capabilityId:r})}`);Vr(e.catalog.symbols)[s]={id:s,kind:"response",...wn({description:e.operation.description})?{docs:wn({description:e.operation.description})}:{},contents:[{mediaType:"application/json",shapeId:i}],synthetic:!1,provenance:un(e.documentId,`#/graphql/${e.operation.providerData.toolId}/response`)};let c=g_({catalog:e.catalog,responseId:s,provenance:un(e.documentId,`#/graphql/${e.operation.providerData.toolId}/responseSet`)});Vr(e.catalog.executables)[n]={id:n,capabilityId:r,scopeId:e.serviceScopeId,adapterKey:"graphql",bindingVersion:Ca,binding:e.operation.providerData,projection:{responseSetId:c,callShapeId:o,resultDataShapeId:i,resultErrorShapeId:a},display:{protocol:"graphql",method:e.operation.providerData.operationType??"query",pathTemplate:e.operation.providerData.fieldName??e.operation.providerData.leaf??e.operation.providerData.toolId,operationId:e.operation.providerData.fieldName??e.operation.providerData.leaf??e.operation.providerData.toolId,group:e.operation.providerData.group,leaf:e.operation.providerData.leaf,rawToolId:e.operation.providerData.toolId,title:e.operation.title??null,summary:e.operation.description??null},synthetic:!1,provenance:un(e.documentId,`#/graphql/${e.operation.providerData.toolId}/executable`)};let p=e.operation.effect;Vr(e.catalog.capabilities)[r]={id:r,serviceScopeId:e.serviceScopeId,surface:{toolPath:t,...e.operation.title?{title:e.operation.title}:{},...e.operation.description?{summary:e.operation.description}:{},...e.operation.providerData.group?{tags:[e.operation.providerData.group]}:{}},semantics:{effect:p,safe:p==="read",idempotent:p==="read",destructive:!1},auth:{kind:"none"},interaction:y_(p),executableIds:[n],synthetic:!1,provenance:un(e.documentId,`#/graphql/${e.operation.providerData.toolId}/capability`)}},j1e=e=>S_({source:e.source,documents:e.documents,resourceDialectUri:"https://spec.graphql.org/",registerOperations:({catalog:t,documentId:r,serviceScopeId:n,importer:o})=>{for(let i of e.operations)jgt({catalog:t,source:e.source,documentId:r,serviceScopeId:n,operation:i,importer:o})}});import*as Bn from"effect/Effect";import*as Li from"effect/Schema";var Bgt=Li.extend(M6,Li.extend(gm,Li.Struct({kind:Li.Literal("graphql"),auth:Li.optional(x_)}))),qgt=Li.extend(gm,Li.Struct({kind:Li.Literal("graphql"),endpoint:Li.String,name:Ho,namespace:Ho,auth:Li.optional(x_)})),B1e=Li.Struct({defaultHeaders:Li.NullOr(Wr)}),Ugt=Li.Struct({defaultHeaders:Li.optional(Li.NullOr(Wr))}),uA=1,q1e=15e3,U1e=(e,t)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&t.some(r=>Object.prototype.hasOwnProperty.call(e,r)),cS=e=>Bn.gen(function*(){return U1e(e.binding,["transport","queryParams","headers"])?yield*Co("graphql/adapter","GraphQL sources cannot define MCP transport settings"):U1e(e.binding,["specUrl"])?yield*Co("graphql/adapter","GraphQL sources cannot define specUrl"):{defaultHeaders:(yield*$p({sourceId:e.id,label:"GraphQL",version:e.bindingVersion,expectedVersion:uA,schema:Ugt,value:e.binding,allowedKeys:["defaultHeaders"]})).defaultHeaders??null}}),zgt=e=>Bn.tryPromise({try:async()=>{let t;try{t=await fetch(yu({url:e.url,queryParams:e.queryParams}).toString(),{method:"POST",headers:Tc({headers:{"content-type":"application/json",...e.headers},cookies:e.cookies}),body:JSON.stringify(t_({body:{query:eN,operationName:"IntrospectionQuery"},bodyValues:e.bodyValues,label:`GraphQL introspection ${e.url}`})),signal:AbortSignal.timeout(q1e)})}catch(o){throw o instanceof Error&&(o.name==="AbortError"||o.name==="TimeoutError")?new Error(`GraphQL introspection timed out after ${q1e}ms`):o}let r=await t.text(),n;try{n=JSON.parse(r)}catch(o){throw new Error(`GraphQL introspection endpoint did not return JSON: ${o instanceof Error?o.message:String(o)}`)}if(!t.ok)throw t.status===401||t.status===403?new b_("import",`GraphQL introspection requires credentials (status ${t.status})`):new Error(`GraphQL introspection failed with status ${t.status}`);return JSON.stringify(n,null,2)},catch:t=>t instanceof Error?t:new Error(String(t))}),Vgt=e=>{let t=R1e({manifest:e.manifest,definition:e.definition});return{toolId:e.definition.toolId,title:e.definition.name,description:e.definition.description,effect:e.definition.operationType==="query"?"read":"write",inputSchema:t.inputSchema,outputSchema:t.outputSchema,providerData:t.providerData}},pA=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},z1e=e=>typeof e=="string"&&e.trim().length>0?e:null,Jgt=e=>Object.fromEntries(Object.entries(pA(e)).flatMap(([t,r])=>typeof r=="string"?[[t,r]]:[])),Kgt=e=>{let t={};return e.headers.forEach((r,n)=>{t[n]=r}),t},Ggt=async e=>(e.headers.get("content-type")?.toLowerCase()??"").includes("application/json")?e.json():e.text(),Hgt=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0)),V1e={key:"graphql",displayName:"GraphQL",catalogKind:"imported",connectStrategy:"direct",credentialStrategy:"credential_managed",bindingConfigVersion:uA,providerKey:"generic_graphql",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:Bgt,executorAddInputSchema:qgt,executorAddHelpText:["endpoint is the GraphQL HTTP endpoint."],executorAddInputSignatureWidth:320,localConfigBindingSchema:YH,localConfigBindingFromSource:e=>Bn.runSync(Bn.map(cS(e),t=>({defaultHeaders:t.defaultHeaders}))),serializeBindingConfig:e=>Rp({adapterKey:"graphql",version:uA,payloadSchema:B1e,payload:Bn.runSync(cS(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:t})=>Bn.map(Lp({sourceId:e,label:"GraphQL",adapterKey:"graphql",version:uA,payloadSchema:B1e,value:t}),({version:r,payload:n})=>({version:r,payload:n})),bindingStateFromSource:e=>Bn.map(cS(e),t=>({...Fp,defaultHeaders:t.defaultHeaders})),sourceConfigFromSource:e=>Bn.runSync(Bn.map(cS(e),t=>({kind:"graphql",endpoint:e.endpoint,defaultHeaders:t.defaultHeaders}))),validateSource:e=>Bn.gen(function*(){let t=yield*cS(e);return{...e,bindingVersion:uA,binding:{defaultHeaders:t.defaultHeaders}}}),shouldAutoProbe:e=>e.enabled&&(e.status==="draft"||e.status==="probing"),discoveryPriority:({normalizedUrl:e})=>fm(e)?400:150,detectSource:({normalizedUrl:e,headers:t})=>XH({normalizedUrl:e,headers:t}),syncCatalog:({source:e,resolveAuthMaterialForSlot:t})=>Bn.gen(function*(){let r=yield*cS(e),n=yield*t("import"),o=yield*zgt({url:e.endpoint,headers:{...r.defaultHeaders,...n.headers},queryParams:n.queryParams,cookies:n.cookies,bodyValues:n.bodyValues}).pipe(Bn.withSpan("graphql.introspection.fetch",{kind:"client",attributes:{"executor.source.id":e.id,"executor.source.endpoint":e.endpoint}}),Bn.mapError(d=>E_(d)?d:new Error(`Failed fetching GraphQL introspection for ${e.id}: ${d.message}`))),i=yield*N1e(e.name,o).pipe(Bn.withSpan("graphql.manifest.extract",{attributes:{"executor.source.id":e.id}}),Bn.mapError(d=>d instanceof Error?d:new Error(String(d))));yield*Bn.annotateCurrentSpan("graphql.tool.count",i.tools.length);let a=yield*Bn.sync(()=>F1e(i)).pipe(Bn.withSpan("graphql.definitions.compile",{attributes:{"executor.source.id":e.id,"graphql.tool.count":i.tools.length}}));yield*Bn.annotateCurrentSpan("graphql.definition.count",a.length);let s=yield*Bn.sync(()=>a.map(d=>Vgt({definition:d,manifest:i}))).pipe(Bn.withSpan("graphql.operations.build",{attributes:{"executor.source.id":e.id,"graphql.definition.count":a.length}})),c=Date.now(),p=yield*Bn.sync(()=>j1e({source:e,documents:[{documentKind:"graphql_introspection",documentKey:e.endpoint,contentText:o,fetchedAt:c}],operations:s})).pipe(Bn.withSpan("graphql.snapshot.build",{attributes:{"executor.source.id":e.id,"graphql.operation.count":s.length}}));return Np({fragment:p,importMetadata:ws({source:e,adapterKey:"graphql"}),sourceHash:i.sourceHash})}).pipe(Bn.withSpan("graphql.syncCatalog",{attributes:{"executor.source.id":e.id,"executor.source.endpoint":e.endpoint}})),invoke:e=>Bn.tryPromise({try:async()=>{let t=Bn.runSync(cS(e.source)),r=Sm({executableId:e.executable.id,label:"GraphQL",version:e.executable.bindingVersion,expectedVersion:Ca,schema:a2,value:e.executable.binding}),n=pA(e.args),o=Tc({headers:{"content-type":"application/json",...t.defaultHeaders,...e.auth.headers,...Jgt(n.headers)},cookies:e.auth.cookies}),i=yu({url:e.source.endpoint,queryParams:e.auth.queryParams}).toString(),a=r.toolKind==="request"||typeof r.operationDocument!="string"||r.operationDocument.trim().length===0,s=a?(()=>{let x=z1e(n.query);if(x===null)throw new Error("GraphQL request tools require args.query");return x})():r.operationDocument,c=a?n.variables!==void 0?pA(n.variables):void 0:Hgt(Object.fromEntries(Object.entries(n).filter(([x])=>x!=="headers"))),p=a?z1e(n.operationName)??void 0:r.operationName??void 0,d=await fetch(i,{method:"POST",headers:o,body:JSON.stringify({query:s,...c?{variables:c}:{},...p?{operationName:p}:{}})}),f=await Ggt(d),m=pA(f),y=Array.isArray(m.errors)?m.errors:[],g=r.fieldName??r.leaf??r.toolId,S=pA(m.data);return{data:a?f:S[g]??null,error:y.length>0?y:d.status>=400?f:null,headers:Kgt(d),status:d.status}},catch:t=>t instanceof Error?t:new Error(String(t))})};var NEe=e0(OEe(),1),xbt=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Ebt=e=>JSON.parse(e),Tbt=e=>(0,NEe.parse)(e),Dbt=e=>{try{return Ebt(e)}catch{return Tbt(e)}},zA=e=>{let t=e.trim();if(t.length===0)throw new Error("OpenAPI document is empty");try{let r=Dbt(t);if(!xbt(r))throw new Error("OpenAPI document must parse to an object");return r}catch(r){throw new Error(`Unable to parse OpenAPI document as JSON or YAML: ${r instanceof Error?r.message:String(r)}`)}};import*as tTe from"effect/Data";import*as rp from"effect/Effect";import{pipe as $bt}from"effect/Function";import*as nF from"effect/ParseResult";import*as oF from"effect/Schema";function REe(e,t){let r,n;try{let a=FEe(e,Ms.__wbindgen_malloc,Ms.__wbindgen_realloc),s=YN,c=FEe(t,Ms.__wbindgen_malloc,Ms.__wbindgen_realloc),p=YN,d=Ms.extract_manifest_json_wasm(a,s,c,p);var o=d[0],i=d[1];if(d[3])throw o=0,i=0,wbt(d[2]);return r=o,n=i,LEe(o,i)}finally{Ms.__wbindgen_free(r,n,1)}}function Abt(){return{__proto__:null,"./openapi_extractor_bg.js":{__proto__:null,__wbindgen_cast_0000000000000001:function(t,r){return LEe(t,r)},__wbindgen_init_externref_table:function(){let t=Ms.__wbindgen_externrefs,r=t.grow(4);t.set(0,void 0),t.set(r+0,void 0),t.set(r+1,null),t.set(r+2,!0),t.set(r+3,!1)}}}}function LEe(e,t){return e=e>>>0,kbt(e,t)}var VA=null;function QN(){return(VA===null||VA.byteLength===0)&&(VA=new Uint8Array(Ms.memory.buffer)),VA}function FEe(e,t,r){if(r===void 0){let s=JA.encode(e),c=t(s.length,1)>>>0;return QN().subarray(c,c+s.length).set(s),YN=s.length,c}let n=e.length,o=t(n,1)>>>0,i=QN(),a=0;for(;a127)break;i[o+a]=s}if(a!==n){a!==0&&(e=e.slice(a)),o=r(o,n,n=a+e.length*3,1)>>>0;let s=QN().subarray(o+a,o+n),c=JA.encodeInto(e,s);a+=c.written,o=r(o,n,a,1)>>>0}return YN=a,o}function wbt(e){let t=Ms.__wbindgen_externrefs.get(e);return Ms.__externref_table_dealloc(e),t}var XN=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});XN.decode();var Ibt=2146435072,FW=0;function kbt(e,t){return FW+=t,FW>=Ibt&&(XN=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),XN.decode(),FW=t),XN.decode(QN().subarray(e,e+t))}var JA=new TextEncoder;"encodeInto"in JA||(JA.encodeInto=function(e,t){let r=JA.encode(e);return t.set(r),{read:e.length,written:r.length}});var YN=0,Cbt,Ms;function Pbt(e,t){return Ms=e.exports,Cbt=t,VA=null,Ms.__wbindgen_start(),Ms}async function Obt(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(o){if(e.ok&&r(e.type)&&e.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",o);else throw o}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}function r(n){switch(n){case"basic":case"cors":case"default":return!0}return!1}}async function RW(e){if(Ms!==void 0)return Ms;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),e===void 0&&(e=new URL("openapi_extractor_bg.wasm",import.meta.url));let t=Abt();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:r,module:n}=await Obt(await e,t);return Pbt(r,n)}var eF,MEe=new URL("./openapi-extractor-wasm/openapi_extractor_bg.wasm",import.meta.url),$Ee=e=>e instanceof Error?e.message:String(e),Nbt=async()=>{await RW({module_or_path:MEe})},Fbt=async()=>{let[{readFile:e},{fileURLToPath:t}]=await Promise.all([import("node:fs/promises"),import("node:url")]),r=t(MEe),n=await e(r);await RW({module_or_path:n})},Rbt=()=>(eF||(eF=(async()=>{let e;try{await Nbt();return}catch(t){e=t}try{await Fbt();return}catch(t){throw new Error(["Unable to initialize OpenAPI extractor wasm.",`runtime-url failed: ${$Ee(e)}`,`node-fs fallback failed: ${$Ee(t)}`].join(" "))}})().catch(e=>{throw eF=void 0,e})),eF),jEe=(e,t)=>Rbt().then(()=>REe(e,t));import{Schema as Z}from"effect";var BEe=["get","put","post","delete","patch","head","options","trace"],qEe=["path","query","header","cookie"],eb=Z.Literal(...BEe),LW=Z.Literal(...qEe),UEe=Z.Struct({name:Z.String,location:LW,required:Z.Boolean,style:Z.optional(Z.String),explode:Z.optional(Z.Boolean),allowReserved:Z.optional(Z.Boolean),content:Z.optional(Z.Array(Z.suspend(()=>KA)))}),KA=Z.Struct({mediaType:Z.String,schema:Z.optional(Z.Unknown),examples:Z.optional(Z.Array(Z.suspend(()=>hS)))}),zEe=Z.Struct({name:Z.String,description:Z.optional(Z.String),required:Z.optional(Z.Boolean),deprecated:Z.optional(Z.Boolean),schema:Z.optional(Z.Unknown),content:Z.optional(Z.Array(KA)),style:Z.optional(Z.String),explode:Z.optional(Z.Boolean),examples:Z.optional(Z.Array(Z.suspend(()=>hS)))}),VEe=Z.Struct({required:Z.Boolean,contentTypes:Z.Array(Z.String),contents:Z.optional(Z.Array(KA))}),jh=Z.Struct({url:Z.String,description:Z.optional(Z.String),variables:Z.optional(Z.Record({key:Z.String,value:Z.String}))}),GA=Z.Struct({method:eb,pathTemplate:Z.String,parameters:Z.Array(UEe),requestBody:Z.NullOr(VEe)}),tF=Z.Struct({inputSchema:Z.optional(Z.Unknown),outputSchema:Z.optional(Z.Unknown),refHintKeys:Z.optional(Z.Array(Z.String))}),JEe=Z.Union(Z.String,Z.Record({key:Z.String,value:Z.Unknown})),Lbt=Z.Record({key:Z.String,value:JEe}),hS=Z.Struct({valueJson:Z.String,mediaType:Z.optional(Z.String),label:Z.optional(Z.String)}),KEe=Z.Struct({name:Z.String,location:LW,required:Z.Boolean,description:Z.optional(Z.String),examples:Z.optional(Z.Array(hS))}),GEe=Z.Struct({description:Z.optional(Z.String),examples:Z.optional(Z.Array(hS))}),HEe=Z.Struct({statusCode:Z.String,description:Z.optional(Z.String),contentTypes:Z.Array(Z.String),examples:Z.optional(Z.Array(hS))}),HA=Z.Struct({statusCode:Z.String,description:Z.optional(Z.String),contentTypes:Z.Array(Z.String),schema:Z.optional(Z.Unknown),examples:Z.optional(Z.Array(hS)),contents:Z.optional(Z.Array(KA)),headers:Z.optional(Z.Array(zEe))}),ZA=Z.Struct({summary:Z.optional(Z.String),deprecated:Z.optional(Z.Boolean),parameters:Z.Array(KEe),requestBody:Z.optional(GEe),response:Z.optional(HEe)}),mS=Z.suspend(()=>Z.Union(Z.Struct({kind:Z.Literal("none")}),Z.Struct({kind:Z.Literal("scheme"),schemeName:Z.String,scopes:Z.optional(Z.Array(Z.String))}),Z.Struct({kind:Z.Literal("allOf"),items:Z.Array(mS)}),Z.Struct({kind:Z.Literal("anyOf"),items:Z.Array(mS)}))),ZEe=Z.Literal("apiKey","http","oauth2","openIdConnect"),WEe=Z.Struct({authorizationUrl:Z.optional(Z.String),tokenUrl:Z.optional(Z.String),refreshUrl:Z.optional(Z.String),scopes:Z.optional(Z.Record({key:Z.String,value:Z.String}))}),WA=Z.Struct({schemeName:Z.String,schemeType:ZEe,description:Z.optional(Z.String),placementIn:Z.optional(Z.Literal("header","query","cookie")),placementName:Z.optional(Z.String),scheme:Z.optional(Z.String),bearerFormat:Z.optional(Z.String),openIdConnectUrl:Z.optional(Z.String),flows:Z.optional(Z.Record({key:Z.String,value:WEe}))}),$W=Z.Struct({kind:Z.Literal("openapi"),toolId:Z.String,rawToolId:Z.String,operationId:Z.optional(Z.String),group:Z.String,leaf:Z.String,tags:Z.Array(Z.String),versionSegment:Z.optional(Z.String),method:eb,path:Z.String,operationHash:Z.String,invocation:GA,documentation:Z.optional(ZA),responses:Z.optional(Z.Array(HA)),authRequirement:Z.optional(mS),securitySchemes:Z.optional(Z.Array(WA)),documentServers:Z.optional(Z.Array(jh)),servers:Z.optional(Z.Array(jh))}),QEe=Z.Struct({toolId:Z.String,operationId:Z.optional(Z.String),tags:Z.Array(Z.String),name:Z.String,description:Z.NullOr(Z.String),method:eb,path:Z.String,invocation:GA,operationHash:Z.String,typing:Z.optional(tF),documentation:Z.optional(ZA),responses:Z.optional(Z.Array(HA)),authRequirement:Z.optional(mS),securitySchemes:Z.optional(Z.Array(WA)),documentServers:Z.optional(Z.Array(jh)),servers:Z.optional(Z.Array(jh))}),MW=Z.Struct({version:Z.Literal(2),sourceHash:Z.String,tools:Z.Array(QEe),refHintTable:Z.optional(Z.Record({key:Z.String,value:Z.String}))});var tb=class extends tTe.TaggedError("OpenApiExtractionError"){},Mbt=oF.parseJson(MW),jbt=oF.decodeUnknown(Mbt),jW=(e,t,r)=>r instanceof tb?r:new tb({sourceName:e,stage:t,message:"OpenAPI extraction failed",details:nF.isParseError(r)?nF.TreeFormatter.formatErrorSync(r):String(r)}),Bbt=(e,t)=>typeof t=="string"?rp.succeed(t):rp.try({try:()=>JSON.stringify(t),catch:r=>new tb({sourceName:e,stage:"validate",message:"Unable to serialize OpenAPI input",details:String(r)})}),Nn=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{},QA=e=>Array.isArray(e)?e:[],On=e=>typeof e=="string"&&e.trim().length>0?e.trim():void 0,BW=e=>Array.isArray(e)?e.map(t=>BW(t)):e!==null&&typeof e=="object"?Object.fromEntries(Object.entries(e).sort(([t],[r])=>t.localeCompare(r)).map(([t,r])=>[t,BW(r)])):e,qW=e=>JSON.stringify(BW(e)),mf=(e,t)=>{if(Array.isArray(e)){for(let n of e)mf(n,t);return}if(e===null||typeof e!="object")return;let r=e;typeof r.$ref=="string"&&r.$ref.startsWith("#/")&&t.add(r.$ref);for(let n of Object.values(r))mf(n,t)},qbt=e=>e.replaceAll("~1","/").replaceAll("~0","~"),tp=(e,t,r=new Set)=>{let n=Nn(t),o=typeof n.$ref=="string"?n.$ref:null;if(!o||!o.startsWith("#/")||r.has(o))return t;let i=o.slice(2).split("/").reduce((d,f)=>{if(d!=null)return Nn(d)[qbt(f)]},e);if(i===void 0)return t;let a=new Set(r);a.add(o);let s=Nn(tp(e,i,a)),{$ref:c,...p}=n;return Object.keys(p).length>0?{...s,...p}:s},XEe=e=>/^2\d\d$/.test(e)?0:e==="default"?1:2,rTe=e=>{let t=Object.entries(Nn(e)).sort(([r],[n])=>r.localeCompare(n)).map(([r,n])=>[r,Nn(n)]);return t.find(([r])=>r==="application/json")??t.find(([r])=>r.toLowerCase().includes("+json"))??t.find(([r])=>r.toLowerCase().includes("json"))??t[0]},rF=e=>rTe(e)?.[1].schema,iF=(e,t)=>Object.entries(Nn(t)).sort(([n],[o])=>n.localeCompare(o)).map(([n,o])=>{let i=Nn(tp(e,o)),a=nTe(n,i);return{mediaType:n,...i.schema!==void 0?{schema:i.schema}:{},...a.length>0?{examples:a}:{}}}),VW=(e,t={})=>{let r=Nn(e),n=[];r.example!==void 0&&n.push({valueJson:qW(r.example),...t.mediaType?{mediaType:t.mediaType}:{},...t.label?{label:t.label}:{}});let o=Object.entries(Nn(r.examples)).sort(([i],[a])=>i.localeCompare(a));for(let[i,a]of o){let s=Nn(a);n.push({valueJson:qW(s.value!==void 0?s.value:a),...t.mediaType?{mediaType:t.mediaType}:{},label:i})}return n},Ubt=e=>VW(e),nTe=(e,t)=>{let r=VW(t,{mediaType:e});return r.length>0?r:Ubt(t.schema).map(n=>({...n,mediaType:e}))},zbt=(e,t,r)=>{let n=Nn(tp(e,r));if(Object.keys(n).length===0)return;let o=iF(e,n.content),i=o.length>0?[]:VW(n);return{name:t,...On(n.description)?{description:On(n.description)}:{},...typeof n.required=="boolean"?{required:n.required}:{},...typeof n.deprecated=="boolean"?{deprecated:n.deprecated}:{},...n.schema!==void 0?{schema:n.schema}:{},...o.length>0?{content:o}:{},...On(n.style)?{style:On(n.style)}:{},...typeof n.explode=="boolean"?{explode:n.explode}:{},...i.length>0?{examples:i}:{}}},Vbt=(e,t)=>Object.entries(Nn(t)).sort(([r],[n])=>r.localeCompare(n)).flatMap(([r,n])=>{let o=zbt(e,r,n);return o?[o]:[]}),UW=e=>QA(e).map(t=>Nn(t)).flatMap(t=>{let r=On(t.url);if(!r)return[];let n=Object.fromEntries(Object.entries(Nn(t.variables)).sort(([o],[i])=>o.localeCompare(i)).flatMap(([o,i])=>{let a=Nn(i),s=On(a.default);return s?[[o,s]]:[]}));return[{url:r,...On(t.description)?{description:On(t.description)}:{},...Object.keys(n).length>0?{variables:n}:{}}]}),oTe=(e,t)=>Nn(Nn(e.paths)[t.path]),zW=e=>`${e.location}:${e.name}`,Jbt=(e,t)=>{let r=new Map,n=oTe(e,t),o=yS(e,t);for(let i of QA(n.parameters)){let a=Nn(tp(e,i)),s=On(a.name),c=On(a.in);!s||!c||r.set(zW({location:c,name:s}),a)}for(let i of QA(o.parameters)){let a=Nn(tp(e,i)),s=On(a.name),c=On(a.in);!s||!c||r.set(zW({location:c,name:s}),a)}return r},yS=(e,t)=>Nn(Nn(Nn(e.paths)[t.path])[t.method]),Kbt=(e,t)=>{let r=yS(e,t);if(Object.keys(r).length===0)return;let n=tp(e,r.requestBody);return rF(Nn(n).content)},Gbt=(e,t)=>{let r=yS(e,t);if(Object.keys(r).length===0)return t.invocation.requestBody;let n=Nn(tp(e,r.requestBody));if(Object.keys(n).length===0)return t.invocation.requestBody;let o=iF(e,n.content),i=o.map(a=>a.mediaType);return{required:typeof n.required=="boolean"?n.required:t.invocation.requestBody?.required??!1,contentTypes:i,...o.length>0?{contents:o}:{}}},Hbt=(e,t)=>{let r=yS(e,t);if(Object.keys(r).length===0)return;let n=Object.entries(Nn(r.responses)),o=n.filter(([a])=>/^2\d\d$/.test(a)).sort(([a],[s])=>a.localeCompare(s)),i=n.filter(([a])=>a==="default");for(let[,a]of[...o,...i]){let s=tp(e,a),c=rF(Nn(s).content);if(c!==void 0)return c}},Zbt=(e,t)=>{let r=yS(e,t);if(Object.keys(r).length===0)return;let o=Object.entries(Nn(r.responses)).sort(([i],[a])=>XEe(i)-XEe(a)||i.localeCompare(a)).map(([i,a])=>{let s=Nn(tp(e,a)),c=iF(e,s.content),p=c.map(y=>y.mediaType),d=rTe(s.content),f=d?nTe(d[0],d[1]):[],m=Vbt(e,s.headers);return{statusCode:i,...On(s.description)?{description:On(s.description)}:{},contentTypes:p,...rF(s.content)!==void 0?{schema:rF(s.content)}:{},...f.length>0?{examples:f}:{},...c.length>0?{contents:c}:{},...m.length>0?{headers:m}:{}}});return o.length>0?o:void 0},Wbt=e=>{let t=UW(e.servers);return t.length>0?t:void 0},Qbt=(e,t)=>{let r=yS(e,t);if(Object.keys(r).length===0)return;let n=UW(r.servers);if(n.length>0)return n;let o=UW(oTe(e,t).servers);return o.length>0?o:void 0},YEe=e=>{let t=QA(e);if(t.length===0)return{kind:"none"};let r=t.flatMap(n=>{let o=Object.entries(Nn(n)).sort(([i],[a])=>i.localeCompare(a)).map(([i,a])=>{let s=QA(a).flatMap(c=>typeof c=="string"&&c.trim().length>0?[c.trim()]:[]);return{kind:"scheme",schemeName:i,...s.length>0?{scopes:s}:{}}});return o.length===0?[]:[o.length===1?o[0]:{kind:"allOf",items:o}]});if(r.length!==0)return r.length===1?r[0]:{kind:"anyOf",items:r}},Xbt=(e,t)=>{let r=yS(e,t);if(Object.keys(r).length!==0)return Object.prototype.hasOwnProperty.call(r,"security")?YEe(r.security):YEe(e.security)},iTe=(e,t)=>{if(e)switch(e.kind){case"none":return;case"scheme":t.add(e.schemeName);return;case"allOf":case"anyOf":for(let r of e.items)iTe(r,t)}},eTe=e=>{let t=Object.fromEntries(Object.entries(Nn(e)).sort(([r],[n])=>r.localeCompare(n)).map(([r,n])=>{let o=Nn(n),i=Object.fromEntries(Object.entries(Nn(o.scopes)).sort(([a],[s])=>a.localeCompare(s)).map(([a,s])=>[a,On(s)??""]));return[r,{...On(o.authorizationUrl)?{authorizationUrl:On(o.authorizationUrl)}:{},...On(o.tokenUrl)?{tokenUrl:On(o.tokenUrl)}:{},...On(o.refreshUrl)?{refreshUrl:On(o.refreshUrl)}:{},...Object.keys(i).length>0?{scopes:i}:{}}]}));return Object.keys(t).length>0?t:void 0},Ybt=(e,t)=>{if(!t||t.kind==="none")return;let r=new Set;iTe(t,r);let n=Nn(Nn(e.components).securitySchemes),o=[...r].sort((i,a)=>i.localeCompare(a)).flatMap(i=>{let a=n[i];if(a===void 0)return[];let s=Nn(tp(e,a)),c=On(s.type);if(!c)return[];let p=c==="apiKey"||c==="http"||c==="oauth2"||c==="openIdConnect"?c:"http",d=On(s.in),f=d==="header"||d==="query"||d==="cookie"?d:void 0;return[{schemeName:i,schemeType:p,...On(s.description)?{description:On(s.description)}:{},...f?{placementIn:f}:{},...On(s.name)?{placementName:On(s.name)}:{},...On(s.scheme)?{scheme:On(s.scheme)}:{},...On(s.bearerFormat)?{bearerFormat:On(s.bearerFormat)}:{},...On(s.openIdConnectUrl)?{openIdConnectUrl:On(s.openIdConnectUrl)}:{},...eTe(s.flows)?{flows:eTe(s.flows)}:{}}]});return o.length>0?o:void 0},ext=(e,t,r)=>{let n={...t.refHintTable},o=[...r].sort((a,s)=>a.localeCompare(s)),i=new Set(Object.keys(n));for(;o.length>0;){let a=o.shift();if(i.has(a))continue;i.add(a);let s=tp(e,{$ref:a});n[a]=qW(s);let c=new Set;mf(s,c);for(let p of[...c].sort((d,f)=>d.localeCompare(f)))i.has(p)||o.push(p)}return Object.keys(n).length>0?n:void 0},txt=(e,t)=>{let r=new Set,n=Wbt(e),o=t.tools.map(i=>{let a=Jbt(e,i),s=i.invocation.parameters.map(S=>{let x=a.get(zW({location:S.location,name:S.name})),A=iF(e,x?.content);return{...S,...On(x?.style)?{style:On(x?.style)}:{},...typeof x?.explode=="boolean"?{explode:x.explode}:{},...typeof x?.allowReserved=="boolean"?{allowReserved:x.allowReserved}:{},...A.length>0?{content:A}:{}}}),c=Gbt(e,i),p=i.typing?.inputSchema??Kbt(e,i),d=i.typing?.outputSchema??Hbt(e,i),f=Zbt(e,i),m=Xbt(e,i),y=Ybt(e,m),g=Qbt(e,i);for(let S of s)for(let x of S.content??[])mf(x.schema,r);for(let S of c?.contents??[])mf(S.schema,r);for(let S of f??[]){mf(S.schema,r);for(let x of S.contents??[])mf(x.schema,r);for(let x of S.headers??[]){mf(x.schema,r);for(let A of x.content??[])mf(A.schema,r)}}return{...i,invocation:{...i.invocation,parameters:s,requestBody:c},...p!==void 0||d!==void 0?{typing:{...i.typing,...p!==void 0?{inputSchema:p}:{},...d!==void 0?{outputSchema:d}:{}}}:{},...f?{responses:f}:{},...m?{authRequirement:m}:{},...y?{securitySchemes:y}:{},...n?{documentServers:n}:{},...g?{servers:g}:{}}});return{...t,tools:o,refHintTable:ext(e,t,r)}},rb=(e,t)=>rp.gen(function*(){let r=yield*Bbt(e,t),n=yield*rp.tryPromise({try:()=>jEe(e,r),catch:a=>jW(e,"extract",a)}),o=yield*$bt(jbt(n),rp.mapError(a=>jW(e,"extract",a))),i=yield*rp.try({try:()=>zA(r),catch:a=>jW(e,"validate",a)});return txt(i,o)});import*as XA from"effect/Either";import*as Ql from"effect/Effect";var rxt=(e,t)=>{if(!t.startsWith("#/"))return;let r=e;for(let n of t.slice(2).split("/")){let o=n.replaceAll("~1","/").replaceAll("~0","~");if(!Ci(r))return;r=r[o]}return r},JW=(e,t,r=0)=>{if(!Ci(t))return null;let n=Du(t.$ref);return n&&r<5?JW(e,rxt(e,n),r+1):t},nxt=e=>{let t=new Set,r=[],n=i=>{if(Array.isArray(i)){for(let a of i)if(Ci(a))for(let[s,c]of Object.entries(a))s.length===0||t.has(s)||(t.add(s),r.push({name:s,scopes:Array.isArray(c)?c.filter(p=>typeof p=="string"):[]}))}};n(e.security);let o=e.paths;if(!Ci(o))return r;for(let i of Object.values(o))if(Ci(i)){n(i.security);for(let a of Object.values(i))Ci(a)&&n(a.security)}return r},aTe=e=>{let t=Du(e.scheme.type)?.toLowerCase()??"";if(t==="oauth2"){let r=Ci(e.scheme.flows)?e.scheme.flows:{},n=Object.values(r).find(Ci)??null,o=n&&Ci(n.scopes)?Object.keys(n.scopes).filter(a=>a.length>0):[],i=[...new Set([...e.scopes,...o])].sort();return{name:e.name,kind:"oauth2",supported:!0,headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:n?kp(Du(n.authorizationUrl)):null,oauthTokenUrl:n?kp(Du(n.tokenUrl)):null,oauthScopes:i,reason:`OpenAPI security scheme "${e.name}" declares OAuth2`}}if(t==="http"){let r=Du(e.scheme.scheme)?.toLowerCase()??"";if(r==="bearer")return{name:e.name,kind:"bearer",supported:!0,headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" declares HTTP bearer auth`};if(r==="basic")return{name:e.name,kind:"basic",supported:!1,headerName:"Authorization",prefix:"Basic ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" declares HTTP basic auth`}}if(t==="apiKey"){let r=Du(e.scheme.in),n=r==="header"||r==="query"||r==="cookie"?r:null;return{name:e.name,kind:"apiKey",supported:!1,headerName:n==="header"?kp(Du(e.scheme.name)):null,prefix:null,parameterName:kp(Du(e.scheme.name)),parameterLocation:n,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" declares API key auth`}}return{name:e.name,kind:"unknown",supported:!1,headerName:null,prefix:null,parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" uses unsupported type ${t||"unknown"}`}},oxt=e=>{let t=Ci(e.components)?e.components:{},r=Ci(t.securitySchemes)?t.securitySchemes:{},n=nxt(e);if(n.length===0){if(Object.keys(r).length===0)return Pp("OpenAPI document does not declare security requirements");let a=Object.entries(r).map(([c,p])=>aTe({name:c,scopes:[],scheme:JW(e,p)??{}})).sort((c,p)=>{let d={oauth2:0,bearer:1,apiKey:2,basic:3,unknown:4};return d[c.kind]-d[p.kind]||c.name.localeCompare(p.name)})[0];if(!a)return Pp("OpenAPI document does not declare security requirements");let s=a.kind==="unknown"?"low":"medium";return a.kind==="oauth2"?Au("oauth2",{confidence:s,reason:`${a.reason}; scheme is defined but not explicitly applied to operations`,headerName:a.headerName,prefix:a.prefix,parameterName:a.parameterName,parameterLocation:a.parameterLocation,oauthAuthorizationUrl:a.oauthAuthorizationUrl,oauthTokenUrl:a.oauthTokenUrl,oauthScopes:a.oauthScopes}):a.kind==="bearer"?Au("bearer",{confidence:s,reason:`${a.reason}; scheme is defined but not explicitly applied to operations`,headerName:a.headerName,prefix:a.prefix,parameterName:a.parameterName,parameterLocation:a.parameterLocation,oauthAuthorizationUrl:a.oauthAuthorizationUrl,oauthTokenUrl:a.oauthTokenUrl,oauthScopes:a.oauthScopes}):a.kind==="apiKey"?sv("apiKey",{confidence:s,reason:`${a.reason}; scheme is defined but not explicitly applied to operations`,headerName:a.headerName,prefix:a.prefix,parameterName:a.parameterName,parameterLocation:a.parameterLocation,oauthAuthorizationUrl:a.oauthAuthorizationUrl,oauthTokenUrl:a.oauthTokenUrl,oauthScopes:a.oauthScopes}):a.kind==="basic"?sv("basic",{confidence:s,reason:`${a.reason}; scheme is defined but not explicitly applied to operations`,headerName:a.headerName,prefix:a.prefix,parameterName:a.parameterName,parameterLocation:a.parameterLocation,oauthAuthorizationUrl:a.oauthAuthorizationUrl,oauthTokenUrl:a.oauthTokenUrl,oauthScopes:a.oauthScopes}):Yy(`${a.reason}; scheme is defined but not explicitly applied to operations`)}let i=n.map(({name:a,scopes:s})=>{let c=JW(e,r[a]);return c==null?null:aTe({name:a,scopes:s,scheme:c})}).filter(a=>a!==null).sort((a,s)=>{let c={oauth2:0,bearer:1,apiKey:2,basic:3,unknown:4};return c[a.kind]-c[s.kind]||a.name.localeCompare(s.name)})[0];return i?i.kind==="oauth2"?Au("oauth2",{confidence:"high",reason:i.reason,headerName:i.headerName,prefix:i.prefix,parameterName:i.parameterName,parameterLocation:i.parameterLocation,oauthAuthorizationUrl:i.oauthAuthorizationUrl,oauthTokenUrl:i.oauthTokenUrl,oauthScopes:i.oauthScopes}):i.kind==="bearer"?Au("bearer",{confidence:"high",reason:i.reason,headerName:i.headerName,prefix:i.prefix,parameterName:i.parameterName,parameterLocation:i.parameterLocation,oauthAuthorizationUrl:i.oauthAuthorizationUrl,oauthTokenUrl:i.oauthTokenUrl,oauthScopes:i.oauthScopes}):i.kind==="apiKey"?sv("apiKey",{confidence:"high",reason:i.reason,headerName:i.headerName,prefix:i.prefix,parameterName:i.parameterName,parameterLocation:i.parameterLocation,oauthAuthorizationUrl:i.oauthAuthorizationUrl,oauthTokenUrl:i.oauthTokenUrl,oauthScopes:i.oauthScopes}):i.kind==="basic"?sv("basic",{confidence:"high",reason:i.reason,headerName:i.headerName,prefix:i.prefix,parameterName:i.parameterName,parameterLocation:i.parameterLocation,oauthAuthorizationUrl:i.oauthAuthorizationUrl,oauthTokenUrl:i.oauthTokenUrl,oauthScopes:i.oauthScopes}):Yy(i.reason):Yy("OpenAPI security requirements reference schemes that could not be resolved")},ixt=e=>{let t=e.document.servers;if(Array.isArray(t)){let r=t.find(Ci),n=r?kp(Du(r.url)):null;if(n)try{return new URL(n,e.normalizedUrl).toString()}catch{return e.normalizedUrl}}return new URL(e.normalizedUrl).origin},KW=e=>Ql.gen(function*(){let t=yield*Ql.either(cv({method:"GET",url:e.normalizedUrl,headers:e.headers}));if(XA.isLeft(t))return console.warn(`[discovery] OpenAPI probe HTTP fetch failed for ${e.normalizedUrl}:`,t.left.message),null;if(t.right.status<200||t.right.status>=300)return console.warn(`[discovery] OpenAPI probe got status ${t.right.status} for ${e.normalizedUrl}`),null;let r=yield*Ql.either(rb(e.normalizedUrl,t.right.text));if(XA.isLeft(r))return console.warn(`[discovery] OpenAPI manifest extraction failed for ${e.normalizedUrl}:`,r.left instanceof Error?r.left.message:String(r.left)),null;let n=yield*Ql.either(Ql.try({try:()=>zA(t.right.text),catch:s=>s instanceof Error?s:new Error(String(s))})),o=XA.isRight(n)&&Ci(n.right)?n.right:{},i=ixt({normalizedUrl:e.normalizedUrl,document:o}),a=kp(Du(o.info&&Ci(o.info)?o.info.title:null))??Cp(i);return{detectedKind:"openapi",confidence:"high",endpoint:i,specUrl:e.normalizedUrl,name:a,namespace:os(a),transport:null,authInference:oxt(o),toolCount:r.right.tools.length,warnings:[]}}).pipe(Ql.catchAll(t=>(console.warn(`[discovery] OpenAPI detection unexpected error for ${e.normalizedUrl}:`,t instanceof Error?t.message:String(t)),Ql.succeed(null))));import*as Bh from"effect/Schema";var GW=Bh.Struct({specUrl:Bh.String,defaultHeaders:Bh.optional(Bh.NullOr(Wr))});import{Schema as qo}from"effect";var ZW=/^v\d+(?:[._-]\d+)?$/i,sTe=new Set(["api"]),axt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1 $2").replace(/[^a-zA-Z0-9]+/g," ").trim().split(/\s+/).filter(t=>t.length>0),sxt=e=>e.toLowerCase(),aF=e=>{let t=axt(e).map(sxt);if(t.length===0)return"tool";let[r,...n]=t;return`${r}${n.map(o=>`${o[0]?.toUpperCase()??""}${o.slice(1)}`).join("")}`},HW=e=>{let t=aF(e);return`${t[0]?.toUpperCase()??""}${t.slice(1)}`},sF=e=>{let t=e?.trim();return t?aF(t):null},WW=e=>e.split("/").map(t=>t.trim()).filter(t=>t.length>0),cTe=e=>e.startsWith("{")&&e.endsWith("}"),cxt=e=>WW(e).map(t=>t.toLowerCase()).find(t=>ZW.test(t)),lxt=e=>{for(let t of WW(e)){let r=t.toLowerCase();if(!ZW.test(r)&&!sTe.has(r)&&!cTe(t))return sF(t)??"root"}return"root"},uxt=e=>e.split(/[/.]+/).map(t=>t.trim()).filter(t=>t.length>0),pxt=(e,t)=>{let r=e.operationId??e.toolId,n=uxt(r);if(n.length>1){let[o,...i]=n;if((sF(o)??o)===t&&i.length>0)return i.join(" ")}return r},dxt=(e,t)=>{let n=WW(e.path).filter(o=>!ZW.test(o.toLowerCase())).filter(o=>!sTe.has(o.toLowerCase())).filter(o=>!cTe(o)).map(o=>sF(o)??o).filter(o=>o!==t).map(o=>HW(o)).join("");return`${e.method}${n||"Operation"}`},_xt=(e,t)=>{let r=aF(pxt(e,t));return r.length>0&&r!==t?r:aF(dxt(e,t))},fxt=e=>e.description??`${e.method.toUpperCase()} ${e.path}`,mxt=qo.Struct({toolId:qo.String,rawToolId:qo.String,operationId:qo.optional(qo.String),name:qo.String,description:qo.String,group:qo.String,leaf:qo.String,tags:qo.Array(qo.String),versionSegment:qo.optional(qo.String),method:eb,path:qo.String,invocation:GA,operationHash:qo.String,typing:qo.optional(tF),documentation:qo.optional(ZA),responses:qo.optional(qo.Array(HA)),authRequirement:qo.optional(mS),securitySchemes:qo.optional(qo.Array(WA)),documentServers:qo.optional(qo.Array(jh)),servers:qo.optional(qo.Array(jh))}),hxt=e=>{let t=e.map(n=>({...n,toolId:`${n.group}.${n.leaf}`})),r=(n,o)=>{let i=new Map;for(let a of n){let s=i.get(a.toolId)??[];s.push(a),i.set(a.toolId,s)}for(let a of i.values())if(!(a.length<2))for(let s of a)s.toolId=o(s)};return r(t,n=>n.versionSegment?`${n.group}.${n.versionSegment}.${n.leaf}`:n.toolId),r(t,n=>`${n.versionSegment?`${n.group}.${n.versionSegment}`:n.group}.${n.leaf}${HW(n.method)}`),r(t,n=>`${n.versionSegment?`${n.group}.${n.versionSegment}`:n.group}.${n.leaf}${HW(n.method)}${n.operationHash.slice(0,8)}`),t},cF=e=>{let t=e.tools.map(r=>{let n=sF(r.tags[0])??lxt(r.path),o=_xt(r,n);return{rawToolId:r.toolId,operationId:r.operationId,name:r.name,description:fxt(r),group:n,leaf:o,tags:[...r.tags],versionSegment:cxt(r.path),method:r.method,path:r.path,invocation:r.invocation,operationHash:r.operationHash,typing:r.typing,documentation:r.documentation,responses:r.responses,authRequirement:r.authRequirement,securitySchemes:r.securitySchemes,documentServers:r.documentServers,servers:r.servers}});return hxt(t).sort((r,n)=>r.toolId.localeCompare(n.toolId)||r.rawToolId.localeCompare(n.rawToolId)||r.operationHash.localeCompare(n.operationHash))},QW=e=>({kind:"openapi",toolId:e.toolId,rawToolId:e.rawToolId,operationId:e.operationId,group:e.group,leaf:e.leaf,tags:e.tags,versionSegment:e.versionSegment,method:e.method,path:e.path,operationHash:e.operationHash,invocation:e.invocation,documentation:e.documentation,responses:e.responses,authRequirement:e.authRequirement,securitySchemes:e.securitySchemes,documentServers:e.documentServers,servers:e.servers});import*as nb from"effect/Match";var lF=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),yxt=e=>{try{return JSON.parse(e)}catch{return null}},YA=(e,t,r,n)=>{if(Array.isArray(e))return e.map(a=>YA(a,t,r,n));if(!lF(e))return e;let o=typeof e.$ref=="string"?e.$ref:null;if(o&&o.startsWith("#/")&&!n.has(o)){let a=r.get(o);if(a===void 0){let s=t[o];a=typeof s=="string"?yxt(s):lF(s)?s:null,r.set(o,a)}if(a!=null){let s=new Set(n);s.add(o);let{$ref:c,...p}=e,d=YA(a,t,r,s);if(Object.keys(p).length===0)return d;let f=YA(p,t,r,n);return lF(d)&&lF(f)?{...d,...f}:d}}let i={};for(let[a,s]of Object.entries(e))i[a]=YA(s,t,r,n);return i},qh=(e,t)=>e==null?null:!t||Object.keys(t).length===0?e:YA(e,t,new Map,new Set),XW=(e,t)=>({inputSchema:qh(e?.inputSchema,t),outputSchema:qh(e?.outputSchema,t)});var tw=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},gxt=e=>{let t=tw(e);if(t.type!=="object"&&t.properties===void 0)return!1;let r=tw(t.properties);return Object.keys(r).length===0&&t.additionalProperties===!1},pTe=(e,t=320)=>e==null?"void":gxt(e)?"{}":hu(e,"unknown",t),eQ=e=>e?.[0],ew=(e,t)=>{let r=tw(e);return tw(r.properties)[t]},Sxt=(e,t,r)=>{let n=ew(e,r);if(n!==void 0)return n;let i=ew(e,t==="header"?"headers":t==="cookie"?"cookies":t);return i===void 0?void 0:ew(i,r)},lTe=e=>!e||e.length===0?void 0:([...e].sort((r,n)=>r.mediaType.localeCompare(n.mediaType)).find(r=>r.mediaType==="application/json")??[...e].find(r=>r.mediaType.toLowerCase().includes("+json"))??[...e].find(r=>r.mediaType.toLowerCase().includes("json"))??e[0])?.schema,uTe=(e,t)=>{if(!t)return e;let r=tw(e);return Object.keys(r).length===0?e:{...r,description:t}},vxt=e=>{let t=e.invocation,r={},n=[];for(let o of t.parameters){let i=e.documentation?.parameters.find(s=>s.name===o.name&&s.location===o.location),a=Sxt(e.parameterSourceSchema,o.location,o.name)??lTe(o.content)??{type:"string"};r[o.name]=uTe(a,i?.description),o.required&&n.push(o.name)}return t.requestBody&&(r.body=uTe(e.requestBodySchema??lTe(t.requestBody.contents)??{type:"object"},e.documentation?.requestBody?.description),t.requestBody.required&&n.push("body")),Object.keys(r).length>0?{type:"object",properties:r,...n.length>0?{required:n}:{},additionalProperties:!1}:void 0},YW=e=>typeof e=="string"&&e.length>0?{$ref:e}:void 0,bxt=e=>{let t=e.typing?.refHintKeys??[];return nb.value(e.invocation.requestBody).pipe(nb.when(null,()=>({outputSchema:YW(t[0])})),nb.orElse(()=>({requestBodySchema:YW(t[0]),outputSchema:YW(t[1])})))},xxt=e=>{let t=XW(e.definition.typing,e.refHintTable),r=bxt(e.definition),n=qh(r.requestBodySchema,e.refHintTable),o=ew(t.inputSchema,"body")??ew(t.inputSchema,"input")??n??void 0,i=vxt({invocation:e.definition.invocation,documentation:e.definition.documentation,parameterSourceSchema:t.inputSchema,...o!==void 0?{requestBodySchema:o}:{}})??t.inputSchema??void 0,a=t.outputSchema??qh(r.outputSchema,e.refHintTable);return{...i!=null?{inputSchema:i}:{},...a!=null?{outputSchema:a}:{}}},Ext=e=>{if(!(!e.variants||e.variants.length===0))return e.variants.map(t=>{let r=qh(t.schema,e.refHintTable);return{...t,...r!==void 0?{schema:r}:{}}})},Txt=e=>{if(!e)return;let t={};for(let n of e.parameters){let o=eQ(n.examples);o&&(t[n.name]=JSON.parse(o.valueJson))}let r=eQ(e.requestBody?.examples);return r&&(t.body=JSON.parse(r.valueJson)),Object.keys(t).length>0?t:void 0},Dxt=e=>{let t=eQ(e?.response?.examples)?.valueJson;return t?JSON.parse(t):void 0},uF=e=>{let{inputSchema:t,outputSchema:r}=xxt(e),n=Ext({variants:e.definition.responses,refHintTable:e.refHintTable}),o=Txt(e.definition.documentation),i=Dxt(e.definition.documentation);return{inputTypePreview:hu(t,"unknown",1/0),outputTypePreview:pTe(r,1/0),...t!==void 0?{inputSchema:t}:{},...r!==void 0?{outputSchema:r}:{},...o!==void 0?{exampleInput:o}:{},...i!==void 0?{exampleOutput:i}:{},providerData:{...QW(e.definition),...n?{responses:n}:{}}}};var rw=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Axt=new TextEncoder,tQ=e=>(e??"").split(";",1)[0]?.trim().toLowerCase()??"",$i=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean"||typeof e=="bigint")return String(e);if(e==null)return"";try{return JSON.stringify(e)}catch{return String(e)}},dTe=e=>{let t=tQ(e);return t==="application/json"||t.endsWith("+json")||t.includes("json")},_Te=e=>{let t=tQ(e);return t.length===0?!1:t.startsWith("text/")||t==="application/xml"||t.endsWith("+xml")||t.endsWith("/xml")||t==="application/x-www-form-urlencoded"||t==="application/javascript"||t==="application/ecmascript"||t==="application/graphql"||t==="application/sql"||t==="application/x-yaml"||t==="application/yaml"||t==="application/toml"||t==="application/csv"||t==="image/svg+xml"||t.endsWith("+yaml")||t.endsWith("+toml")},nw=e=>dTe(e)?"json":_Te(e)||tQ(e).length===0?"text":"bytes",ow=e=>Object.entries(rw(e)?e:{}).sort(([t],[r])=>t.localeCompare(r)),wxt=e=>{switch(e){case"path":case"header":return"simple";case"cookie":case"query":return"form"}},Ixt=(e,t)=>e==="query"||e==="cookie"?t==="form":!1,rQ=e=>e.style??wxt(e.location),pF=e=>e.explode??Ixt(e.location,rQ(e)),ia=e=>encodeURIComponent($i(e)),kxt=(e,t)=>{let r=encodeURIComponent(e);return t?r.replace(/%3A/gi,":").replace(/%2F/gi,"/").replace(/%3F/gi,"?").replace(/%23/gi,"#").replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%40/gi,"@").replace(/%21/gi,"!").replace(/%24/gi,"$").replace(/%26/gi,"&").replace(/%27/gi,"'").replace(/%28/gi,"(").replace(/%29/gi,")").replace(/%2A/gi,"*").replace(/%2B/gi,"+").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%3D/gi,"="):r},iw=e=>{let t=[...(e.contents??[]).map(r=>r.mediaType),...e.contentTypes??[]];if(t.length!==0)return t.find(r=>r==="application/json")??t.find(r=>r.toLowerCase().includes("+json"))??t.find(r=>r.toLowerCase().includes("json"))??t[0]},Cxt=e=>{if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);if(typeof e=="string")return Axt.encode(e);if(Array.isArray(e)&&e.every(t=>typeof t=="number"&&Number.isInteger(t)&&t>=0&&t<=255))return Uint8Array.from(e);throw new Error("Binary OpenAPI request bodies must be bytes, a string, or an array of byte values")},aw=(e,t)=>{let r=t.toLowerCase();if(r==="application/json"||r.includes("+json")||r.includes("json"))return JSON.stringify(e);if(r==="application/x-www-form-urlencoded"){let n=new URLSearchParams;for(let[o,i]of ow(e)){if(Array.isArray(i)){for(let a of i)n.append(o,$i(a));continue}n.append(o,$i(i))}return n.toString()}return $i(e)},Pxt=(e,t)=>{let r=rQ(e),n=pF(e),o=e.allowReserved===!0,i=iw({contents:e.content});if(i)return{kind:"query",entries:[{name:e.name,value:aw(t,i),allowReserved:o}]};if(Array.isArray(t))return r==="spaceDelimited"?{kind:"query",entries:[{name:e.name,value:t.map(a=>$i(a)).join(" "),allowReserved:o}]}:r==="pipeDelimited"?{kind:"query",entries:[{name:e.name,value:t.map(a=>$i(a)).join("|"),allowReserved:o}]}:{kind:"query",entries:n?t.map(a=>({name:e.name,value:$i(a),allowReserved:o})):[{name:e.name,value:t.map(a=>$i(a)).join(","),allowReserved:o}]};if(rw(t)){let a=ow(t);return r==="deepObject"?{kind:"query",entries:a.map(([s,c])=>({name:`${e.name}[${s}]`,value:$i(c),allowReserved:o}))}:{kind:"query",entries:n?a.map(([s,c])=>({name:s,value:$i(c),allowReserved:o})):[{name:e.name,value:a.flatMap(([s,c])=>[s,$i(c)]).join(","),allowReserved:o}]}}return{kind:"query",entries:[{name:e.name,value:$i(t),allowReserved:o}]}},Oxt=(e,t)=>{let r=pF(e),n=iw({contents:e.content});if(n)return{kind:"header",value:aw(t,n)};if(Array.isArray(t))return{kind:"header",value:t.map(o=>$i(o)).join(",")};if(rw(t)){let o=ow(t);return{kind:"header",value:r?o.map(([i,a])=>`${i}=${$i(a)}`).join(","):o.flatMap(([i,a])=>[i,$i(a)]).join(",")}}return{kind:"header",value:$i(t)}},Nxt=(e,t)=>{let r=pF(e),n=iw({contents:e.content});if(n)return{kind:"cookie",pairs:[{name:e.name,value:aw(t,n)}]};if(Array.isArray(t))return{kind:"cookie",pairs:r?t.map(o=>({name:e.name,value:$i(o)})):[{name:e.name,value:t.map(o=>$i(o)).join(",")}]};if(rw(t)){let o=ow(t);return{kind:"cookie",pairs:r?o.map(([i,a])=>({name:i,value:$i(a)})):[{name:e.name,value:o.flatMap(([i,a])=>[i,$i(a)]).join(",")}]}}return{kind:"cookie",pairs:[{name:e.name,value:$i(t)}]}},Fxt=(e,t)=>{let r=rQ(e),n=pF(e),o=iw({contents:e.content});if(o)return{kind:"path",value:ia(aw(t,o))};if(Array.isArray(t))return r==="label"?{kind:"path",value:`.${t.map(i=>ia(i)).join(n?".":",")}`}:r==="matrix"?{kind:"path",value:n?t.map(i=>`;${encodeURIComponent(e.name)}=${ia(i)}`).join(""):`;${encodeURIComponent(e.name)}=${t.map(i=>ia(i)).join(",")}`}:{kind:"path",value:t.map(i=>ia(i)).join(",")};if(rw(t)){let i=ow(t);return r==="label"?{kind:"path",value:n?`.${i.map(([a,s])=>`${ia(a)}=${ia(s)}`).join(".")}`:`.${i.flatMap(([a,s])=>[ia(a),ia(s)]).join(",")}`}:r==="matrix"?{kind:"path",value:n?i.map(([a,s])=>`;${encodeURIComponent(a)}=${ia(s)}`).join(""):`;${encodeURIComponent(e.name)}=${i.flatMap(([a,s])=>[ia(a),ia(s)]).join(",")}`}:{kind:"path",value:n?i.map(([a,s])=>`${ia(a)}=${ia(s)}`).join(","):i.flatMap(([a,s])=>[ia(a),ia(s)]).join(",")}}return r==="label"?{kind:"path",value:`.${ia(t)}`}:r==="matrix"?{kind:"path",value:`;${encodeURIComponent(e.name)}=${ia(t)}`}:{kind:"path",value:ia(t)}},sw=(e,t)=>{switch(e.location){case"path":return Fxt(e,t);case"query":return Pxt(e,t);case"header":return Oxt(e,t);case"cookie":return Nxt(e,t)}},dF=(e,t)=>{if(t.length===0)return e.toString();let r=t.map(s=>`${encodeURIComponent(s.name)}=${kxt(s.value,s.allowReserved===!0)}`).join("&"),n=e.toString(),[o,i]=n.split("#",2),a=o.includes("?")?o.endsWith("?")||o.endsWith("&")?"":"&":"?";return`${o}${a}${r}${i?`#${i}`:""}`},_F=e=>{let t=iw(e.requestBody)??"application/json";return nw(t)==="bytes"?{contentType:t,body:Cxt(e.body)}:{contentType:t,body:aw(e.body,t)}};import{FetchHttpClient as ZJt,HttpClient as WJt,HttpClientRequest as QJt}from"@effect/platform";import*as fTe from"effect/Data";import*as ob from"effect/Effect";var nQ=class extends fTe.TaggedError("OpenApiToolInvocationError"){};var mTe=e=>{if(!(!e||e.length===0))return e.map(t=>({url:t.url,...t.description?{description:t.description}:{},...t.variables?{variables:t.variables}:{}}))},Rxt=e=>{let t=Tu.make(`scope_${mn({sourceId:e.source.id,toolId:e.operation.providerData.toolId,kind:"operation"})}`);return Vr(e.catalog.scopes)[t]={id:t,kind:"operation",parentId:e.parentScopeId,name:e.operation.title??e.operation.providerData.toolId,docs:wn({summary:e.operation.title??e.operation.providerData.toolId,description:e.operation.description??void 0}),defaults:e.defaults,synthetic:!1,provenance:un(e.documentId,`#/openapi/${e.operation.providerData.toolId}/scope`)},t},Lxt=e=>{let t=_m.make(`security_${mn({sourceId:e.source.id,provider:"openapi",schemeName:e.schemeName})}`);if(e.catalog.symbols[t])return t;let r=e.scheme,n=r?.scheme?.toLowerCase(),o=r?.schemeType==="apiKey"?"apiKey":r?.schemeType==="oauth2"?"oauth2":r?.schemeType==="http"&&n==="basic"?"basic":r?.schemeType==="http"&&n==="bearer"?"bearer":r?.schemeType==="openIdConnect"?"custom":r?.schemeType==="http"?"http":"custom",i=Object.fromEntries(Object.entries(r?.flows??{}).map(([c,p])=>[c,p])),a=Object.fromEntries(Object.entries(r?.flows??{}).flatMap(([,c])=>Object.entries(c.scopes??{}))),s=r?.description??(r?.openIdConnectUrl?`OpenID Connect: ${r.openIdConnectUrl}`:null);return Vr(e.catalog.symbols)[t]={id:t,kind:"securityScheme",schemeType:o,...wn({summary:e.schemeName,description:s})?{docs:wn({summary:e.schemeName,description:s})}:{},...r?.placementIn||r?.placementName?{placement:{...r?.placementIn?{in:r.placementIn}:{},...r?.placementName?{name:r.placementName}:{}}}:{},...o==="apiKey"&&r?.placementIn&&r?.placementName?{apiKey:{in:r.placementIn,name:r.placementName}}:{},...(o==="basic"||o==="bearer"||o==="http")&&r?.scheme?{http:{scheme:r.scheme,...r.bearerFormat?{bearerFormat:r.bearerFormat}:{}}}:{},...o==="oauth2"?{oauth:{...Object.keys(i).length>0?{flows:i}:{},...Object.keys(a).length>0?{scopes:a}:{}}}:{},...o==="custom"?{custom:{}}:{},synthetic:!1,provenance:un(e.documentId,`#/openapi/securitySchemes/${e.schemeName}`)},t},hTe=e=>{let t=e.authRequirement;if(!t)return{kind:"none"};switch(t.kind){case"none":return{kind:"none"};case"scheme":return{kind:"scheme",schemeId:Lxt({catalog:e.catalog,source:e.source,documentId:e.documentId,schemeName:t.schemeName,scheme:e.schemesByName.get(t.schemeName)}),...t.scopes&&t.scopes.length>0?{scopes:[...t.scopes]}:{}};case"allOf":case"anyOf":return{kind:t.kind,items:t.items.map(r=>hTe({catalog:e.catalog,source:e.source,documentId:e.documentId,authRequirement:r,schemesByName:e.schemesByName}))}}},fF=e=>e.contents.map((t,r)=>{let n=(t.examples??[]).map((o,i)=>mm({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`${e.pointerBase}/content/${r}/example/${i}`,name:o.label,summary:o.label,value:JSON.parse(o.valueJson)}));return{mediaType:t.mediaType,...t.schema!==void 0?{shapeId:e.importer.importSchema(t.schema,`${e.pointerBase}/content/${r}`,e.rootSchema)}:{},...n.length>0?{exampleIds:n}:{}}}),$xt=e=>{let t=dm.make(`header_${mn(e.idSeed)}`),r=(e.header.examples??[]).map((o,i)=>mm({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`${e.pointer}/example/${i}`,name:o.label,summary:o.label,value:JSON.parse(o.valueJson)})),n=e.header.content?fF({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:e.header.content,pointerBase:e.pointer}):void 0;return Vr(e.catalog.symbols)[t]={id:t,kind:"header",name:e.header.name,...wn({description:e.header.description})?{docs:wn({description:e.header.description})}:{},...typeof e.header.deprecated=="boolean"?{deprecated:e.header.deprecated}:{},...e.header.schema!==void 0?{schemaShapeId:e.importer.importSchema(e.header.schema,e.pointer,e.rootSchema)}:{},...n&&n.length>0?{content:n}:{},...r.length>0?{exampleIds:r}:{},...e.header.style?{style:e.header.style}:{},...typeof e.header.explode=="boolean"?{explode:e.header.explode}:{},synthetic:!1,provenance:un(e.documentId,e.pointer)},t},Mxt=e=>{let t=h_(e.source,e.operation.providerData.toolId),r=Oc.make(`cap_${mn({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),n=Qs.make(`exec_${mn({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"http"})}`),o=e.operation.inputSchema??{},i=e.operation.outputSchema??{},a=[],s=new Map((e.operation.providerData.securitySchemes??[]).map(S=>[S.schemeName,S]));e.operation.providerData.invocation.parameters.forEach(S=>{let x=pm.make(`param_${mn({capabilityId:r,location:S.location,name:S.name})}`),A=kT(o,S.location,S.name),I=e.operation.providerData.documentation?.parameters.find(F=>F.name===S.name&&F.location===S.location),E=(I?.examples??[]).map((F,O)=>{let $=JSON.parse(F.valueJson);return mm({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/parameter/${S.location}/${S.name}/example/${O}`,name:F.label,summary:F.label,value:$})});a.push(...E);let C=S.content?fF({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:S.content,pointerBase:`#/openapi/${e.operation.providerData.toolId}/parameter/${S.location}/${S.name}`}):void 0;Vr(e.catalog.symbols)[x]={id:x,kind:"parameter",name:S.name,location:S.location,required:S.required,...wn({description:I?.description??null})?{docs:wn({description:I?.description??null})}:{},...A!==void 0&&(!C||C.length===0)?{schemaShapeId:e.importer.importSchema(A,`#/openapi/${e.operation.providerData.toolId}/parameter/${S.location}/${S.name}`,e.rootSchema)}:{},...C&&C.length>0?{content:C}:{},...E.length>0?{exampleIds:E}:{},...S.style?{style:S.style}:{},...typeof S.explode=="boolean"?{explode:S.explode}:{},...typeof S.allowReserved=="boolean"?{allowReserved:S.allowReserved}:{},synthetic:!1,provenance:un(e.documentId,`#/openapi/${e.operation.providerData.toolId}/parameter/${S.location}/${S.name}`)}});let c=e.operation.providerData.invocation.requestBody?Xy.make(`request_body_${mn({capabilityId:r})}`):void 0;if(c){let S=pv(o),x=e.operation.providerData.invocation.requestBody?.contents?fF({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:e.operation.providerData.invocation.requestBody.contents,pointerBase:`#/openapi/${e.operation.providerData.toolId}/requestBody`}):void 0,A=x?.flatMap(E=>E.exampleIds??[])??(e.operation.providerData.documentation?.requestBody?.examples??[]).map((E,C)=>mm({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/requestBody/example/${C}`,name:E.label,summary:E.label,value:JSON.parse(E.valueJson)}));a.push(...A);let I=x&&x.length>0?x:CT(e.operation.providerData.invocation.requestBody?.contentTypes).map(E=>({mediaType:E,...S!==void 0?{shapeId:e.importer.importSchema(S,`#/openapi/${e.operation.providerData.toolId}/requestBody`,e.rootSchema)}:{},...A.length>0?{exampleIds:A}:{}}));Vr(e.catalog.symbols)[c]={id:c,kind:"requestBody",...wn({description:e.operation.providerData.documentation?.requestBody?.description??null})?{docs:wn({description:e.operation.providerData.documentation?.requestBody?.description??null})}:{},required:e.operation.providerData.invocation.requestBody?.required??!1,contents:I,synthetic:!1,provenance:un(e.documentId,`#/openapi/${e.operation.providerData.toolId}/requestBody`)}}let p=e.operation.providerData.responses??[],d=p.length>0?nB({catalog:e.catalog,variants:p.map((S,x)=>{let A=Nc.make(`response_${mn({capabilityId:r,statusCode:S.statusCode,responseIndex:x})}`),I=(S.examples??[]).map((F,O)=>mm({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/responses/${S.statusCode}/example/${O}`,name:F.label,summary:F.label,value:JSON.parse(F.valueJson)}));a.push(...I);let E=S.contents&&S.contents.length>0?fF({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:S.contents,pointerBase:`#/openapi/${e.operation.providerData.toolId}/responses/${S.statusCode}`}):(()=>{let F=S.schema!==void 0?e.importer.importSchema(S.schema,`#/openapi/${e.operation.providerData.toolId}/responses/${S.statusCode}`,e.rootSchema):void 0,O=CT(S.contentTypes);return O.length>0?O.map(($,N)=>({mediaType:$,...F!==void 0&&N===0?{shapeId:F}:{},...I.length>0&&N===0?{exampleIds:I}:{}})):void 0})(),C=(S.headers??[]).map((F,O)=>$xt({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,pointer:`#/openapi/${e.operation.providerData.toolId}/responses/${S.statusCode}/headers/${F.name}`,idSeed:{capabilityId:r,responseId:A,headerIndex:O,headerName:F.name},header:F}));return Vr(e.catalog.symbols)[A]={id:A,kind:"response",...wn({description:S.description??(x===0?e.operation.description:null)})?{docs:wn({description:S.description??(x===0?e.operation.description:null)})}:{},...C.length>0?{headerIds:C}:{},...E&&E.length>0?{contents:E}:{},synthetic:!1,provenance:un(e.documentId,`#/openapi/${e.operation.providerData.toolId}/responses/${S.statusCode}`)},{match:oB(S.statusCode),responseId:A}}),provenance:un(e.documentId,`#/openapi/${e.operation.providerData.toolId}/responseSet`)}):(()=>{let S=Nc.make(`response_${mn({capabilityId:r})}`),x=(e.operation.providerData.documentation?.response?.examples??[]).map((A,I)=>mm({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/response/example/${I}`,name:A.label,summary:A.label,value:JSON.parse(A.valueJson)}));return a.push(...x),Vr(e.catalog.symbols)[S]={id:S,kind:"response",...wn({description:e.operation.providerData.documentation?.response?.description??e.operation.description})?{docs:wn({description:e.operation.providerData.documentation?.response?.description??e.operation.description})}:{},contents:[{mediaType:CT(e.operation.providerData.documentation?.response?.contentTypes)[0]??"application/json",...e.operation.outputSchema!==void 0?{shapeId:e.importer.importSchema(i,`#/openapi/${e.operation.providerData.toolId}/response`)}:{},...x.length>0?{exampleIds:x}:{}}],synthetic:!1,provenance:un(e.documentId,`#/openapi/${e.operation.providerData.toolId}/response`)},g_({catalog:e.catalog,responseId:S,provenance:un(e.documentId,`#/openapi/${e.operation.providerData.toolId}/responseSet`)})})(),f=e.operation.inputSchema!==void 0?e.importer.importSchema(e.operation.inputSchema,`#/openapi/${e.operation.providerData.toolId}/call`,e.operation.inputSchema):e.importer.importSchema({type:"object",additionalProperties:!1},`#/openapi/${e.operation.providerData.toolId}/call`),m={id:n,capabilityId:r,scopeId:(()=>{let S=mTe(e.operation.providerData.servers);return!S||S.length===0?e.serviceScopeId:Rxt({catalog:e.catalog,source:e.source,documentId:e.documentId,parentScopeId:e.serviceScopeId,operation:e.operation,defaults:{servers:S}})})(),adapterKey:"openapi",bindingVersion:Ca,binding:e.operation.providerData,projection:{responseSetId:d,callShapeId:f},display:{protocol:"http",method:e.operation.providerData.invocation.method.toUpperCase(),pathTemplate:e.operation.providerData.invocation.pathTemplate,operationId:e.operation.providerData.operationId??null,group:e.operation.providerData.group,leaf:e.operation.providerData.leaf,rawToolId:e.operation.providerData.rawToolId,title:e.operation.title??null,summary:e.operation.description??null},synthetic:!1,provenance:un(e.documentId,`#/openapi/${e.operation.providerData.toolId}/executable`)};Vr(e.catalog.executables)[n]=m;let y=e.operation.effect,g=hTe({catalog:e.catalog,source:e.source,documentId:e.documentId,authRequirement:e.operation.providerData.authRequirement,schemesByName:s});Vr(e.catalog.capabilities)[r]={id:r,serviceScopeId:e.serviceScopeId,surface:{toolPath:t,...e.operation.title?{title:e.operation.title}:{},...e.operation.description?{summary:e.operation.description}:{},...e.operation.providerData.tags.length>0?{tags:e.operation.providerData.tags}:{}},semantics:{effect:y,safe:y==="read",idempotent:y==="read"||y==="delete",destructive:y==="delete"},auth:g,interaction:y_(y),executableIds:[n],...a.length>0?{exampleIds:a}:{},synthetic:!1,provenance:un(e.documentId,`#/openapi/${e.operation.providerData.toolId}/capability`)}},yTe=e=>{let t=(()=>{let r=e.documents[0]?.contentText;if(r)try{return JSON.parse(r)}catch{return}})();return S_({source:e.source,documents:e.documents,resourceDialectUri:"https://json-schema.org/draft/2020-12/schema",serviceScopeDefaults:(()=>{let r=mTe(e.operations.find(n=>(n.providerData.documentServers??[]).length>0)?.providerData.documentServers);return r?{servers:r}:void 0})(),registerOperations:({catalog:r,documentId:n,serviceScopeId:o,importer:i})=>{for(let a of e.operations)Mxt({catalog:r,source:e.source,documentId:n,serviceScopeId:o,operation:a,importer:i,rootSchema:t})}})};import{FetchHttpClient as jxt,HttpClient as Bxt,HttpClientRequest as gTe}from"@effect/platform";import*as ci from"effect/Effect";import*as to from"effect/Schema";var qxt=to.extend(M6,to.extend(gm,to.Struct({kind:to.Literal("openapi"),specUrl:to.Trim.pipe(to.nonEmptyString()),auth:to.optional(x_)}))),Uxt=to.extend(gm,to.Struct({kind:to.Literal("openapi"),endpoint:to.String,specUrl:to.String,name:Ho,namespace:Ho,auth:to.optional(x_)})),STe=to.Struct({specUrl:to.Trim.pipe(to.nonEmptyString()),defaultHeaders:to.optional(to.NullOr(Wr))}),zxt=to.Struct({specUrl:to.optional(to.String),defaultHeaders:to.optional(to.NullOr(Wr))}),cw=1,Vxt=(e,t)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&t.some(r=>Object.prototype.hasOwnProperty.call(e,r)),gS=e=>ci.gen(function*(){if(Vxt(e.binding,["transport","queryParams","headers"]))return yield*Co("openapi/adapter","OpenAPI sources cannot define MCP transport settings");let t=yield*$p({sourceId:e.id,label:"OpenAPI",version:e.bindingVersion,expectedVersion:cw,schema:zxt,value:e.binding,allowedKeys:["specUrl","defaultHeaders"]}),r=typeof t.specUrl=="string"?t.specUrl.trim():"";return r.length===0?yield*Co("openapi/adapter","OpenAPI sources require specUrl"):{specUrl:r,defaultHeaders:t.defaultHeaders??null}}),Jxt=e=>ci.gen(function*(){let t=yield*Bxt.HttpClient,r=gTe.get(yu({url:e.url,queryParams:e.queryParams}).toString()).pipe(gTe.setHeaders(Tc({headers:e.headers??{},cookies:e.cookies}))),n=yield*t.execute(r).pipe(ci.mapError(o=>o instanceof Error?o:new Error(String(o))));return n.status===401||n.status===403?yield*new b_("import",`OpenAPI spec fetch requires credentials (status ${n.status})`):n.status<200||n.status>=300?yield*Co("openapi/adapter",`OpenAPI spec fetch failed with status ${n.status}`):yield*n.text.pipe(ci.mapError(o=>o instanceof Error?o:new Error(String(o))))}).pipe(ci.provide(jxt.layer)),Kxt=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},Gxt={path:["path","pathParams","params"],query:["query","queryParams","params"],header:["headers","header"],cookie:["cookies","cookie"]},vTe=(e,t)=>{let r=e[t.name];if(r!==void 0)return r;for(let n of Gxt[t.location]){let o=e[n];if(typeof o!="object"||o===null||Array.isArray(o))continue;let i=o[t.name];if(i!==void 0)return i}},Hxt=(e,t,r)=>{let n=e;for(let a of r.parameters){if(a.location!=="path")continue;let s=vTe(t,a);if(s==null){if(a.required)throw new Error(`Missing required path parameter: ${a.name}`);continue}let c=sw(a,s);n=n.replaceAll(`{${a.name}}`,c.kind==="path"?c.value:encodeURIComponent(String(s)))}let o=[...n.matchAll(/\{([^{}]+)\}/g)].map(a=>a[1]).filter(a=>typeof a=="string"&&a.length>0);for(let a of o){let s=t[a]??(typeof t.path=="object"&&t.path!==null&&!Array.isArray(t.path)?t.path[a]:void 0)??(typeof t.pathParams=="object"&&t.pathParams!==null&&!Array.isArray(t.pathParams)?t.pathParams[a]:void 0)??(typeof t.params=="object"&&t.params!==null&&!Array.isArray(t.params)?t.params[a]:void 0);s!=null&&(n=n.replaceAll(`{${a}}`,encodeURIComponent(String(s))))}let i=[...n.matchAll(/\{([^{}]+)\}/g)].map(a=>a[1]).filter(a=>typeof a=="string"&&a.length>0);if(i.length>0){let a=[...new Set(i)].sort().join(", ");throw new Error(`Unresolved path parameters after substitution: ${a}`)}return n},Zxt=e=>{let t={};return e.headers.forEach((r,n)=>{t[n]=r}),t},Wxt=async e=>{if(e.status===204)return null;let t=nw(e.headers.get("content-type"));return t==="json"?e.json():t==="bytes"?new Uint8Array(await e.arrayBuffer()):e.text()},Qxt=e=>{let t=e.providerData.servers?.[0]??e.providerData.documentServers?.[0];if(!t)return new URL(e.endpoint).toString();let r=Object.entries(t.variables??{}).reduce((n,[o,i])=>n.replaceAll(`{${o}}`,i),t.url);return new URL(r,e.endpoint).toString()},Xxt=(e,t)=>{try{return new URL(t)}catch{let r=new URL(e),n=r.pathname==="/"?"":r.pathname.endsWith("/")?r.pathname.slice(0,-1):r.pathname,o=t.startsWith("/")?t:`/${t}`;return r.pathname=`${n}${o}`.replace(/\/{2,}/g,"/"),r.search="",r.hash="",r}},Yxt=e=>{let t=uF({definition:e.definition,refHintTable:e.refHintTable}),r=e.definition.method.toUpperCase();return{toolId:e.definition.toolId,title:e.definition.name,description:e.definition.description,effect:r==="GET"||r==="HEAD"?"read":r==="DELETE"?"delete":"write",inputSchema:t.inputSchema,outputSchema:t.outputSchema,providerData:t.providerData}},bTe={key:"openapi",displayName:"OpenAPI",catalogKind:"imported",connectStrategy:"direct",credentialStrategy:"credential_managed",bindingConfigVersion:cw,providerKey:"generic_http",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:qxt,executorAddInputSchema:Uxt,executorAddHelpText:["endpoint is the base API URL. specUrl is the OpenAPI document URL."],executorAddInputSignatureWidth:420,localConfigBindingSchema:GW,localConfigBindingFromSource:e=>ci.runSync(ci.map(gS(e),t=>({specUrl:t.specUrl,defaultHeaders:t.defaultHeaders}))),serializeBindingConfig:e=>Rp({adapterKey:"openapi",version:cw,payloadSchema:STe,payload:ci.runSync(gS(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:t})=>ci.map(Lp({sourceId:e,label:"OpenAPI",adapterKey:"openapi",version:cw,payloadSchema:STe,value:t}),({version:r,payload:n})=>({version:r,payload:{specUrl:n.specUrl,defaultHeaders:n.defaultHeaders??null}})),bindingStateFromSource:e=>ci.map(gS(e),t=>({...Fp,specUrl:t.specUrl,defaultHeaders:t.defaultHeaders})),sourceConfigFromSource:e=>ci.runSync(ci.map(gS(e),t=>({kind:"openapi",endpoint:e.endpoint,specUrl:t.specUrl,defaultHeaders:t.defaultHeaders}))),validateSource:e=>ci.gen(function*(){let t=yield*gS(e);return{...e,bindingVersion:cw,binding:{specUrl:t.specUrl,defaultHeaders:t.defaultHeaders}}}),shouldAutoProbe:e=>e.enabled&&(e.status==="draft"||e.status==="probing"),discoveryPriority:({normalizedUrl:e})=>fm(e)?50:250,detectSource:({normalizedUrl:e,headers:t})=>KW({normalizedUrl:e,headers:t}),syncCatalog:({source:e,resolveAuthMaterialForSlot:t})=>ci.gen(function*(){let r=yield*gS(e),n=yield*t("import"),o=yield*Jxt({url:r.specUrl,headers:{...r.defaultHeaders,...n.headers},queryParams:n.queryParams,cookies:n.cookies}).pipe(ci.mapError(c=>E_(c)?c:new Error(`Failed fetching OpenAPI spec for ${e.id}: ${c.message}`))),i=yield*rb(e.name,o).pipe(ci.mapError(c=>c instanceof Error?c:new Error(String(c)))),a=cF(i),s=Date.now();return Np({fragment:yTe({source:e,documents:[{documentKind:"openapi",documentKey:r.specUrl,contentText:o,fetchedAt:s}],operations:a.map(c=>Yxt({definition:c,refHintTable:i.refHintTable}))}),importMetadata:ws({source:e,adapterKey:"openapi"}),sourceHash:i.sourceHash})}),invoke:e=>ci.tryPromise({try:async()=>{let t=ci.runSync(gS(e.source)),r=Sm({executableId:e.executable.id,label:"OpenAPI",version:e.executable.bindingVersion,expectedVersion:Ca,schema:$W,value:e.executable.binding}),n=Kxt(e.args),o=Hxt(r.invocation.pathTemplate,n,r.invocation),i={...t.defaultHeaders},a=[],s=[];for(let S of r.invocation.parameters){if(S.location==="path")continue;let x=vTe(n,S);if(x==null){if(S.required)throw new Error(`Missing required ${S.location} parameter ${S.name}`);continue}let A=sw(S,x);if(A.kind==="query"){a.push(...A.entries);continue}if(A.kind==="header"){i[S.name]=A.value;continue}A.kind==="cookie"&&s.push(...A.pairs.map(I=>`${I.name}=${encodeURIComponent(I.value)}`))}let c;if(r.invocation.requestBody){let S=n.body??n.input;if(S!==void 0){let x=_F({requestBody:r.invocation.requestBody,body:t_({body:S,bodyValues:e.auth.bodyValues,label:`${r.method.toUpperCase()} ${r.path}`})});i["content-type"]=x.contentType,c=x.body}}let p=Xxt(Qxt({endpoint:e.source.endpoint,providerData:r}),o),d=yu({url:p,queryParams:e.auth.queryParams}),f=dF(d,a),m=Tc({headers:{...i,...e.auth.headers},cookies:{...e.auth.cookies}});if(s.length>0){let S=m.cookie;m.cookie=S?`${S}; ${s.join("; ")}`:s.join("; ")}let y=await fetch(f.toString(),{method:r.method.toUpperCase(),headers:m,...c!==void 0?{body:typeof c=="string"?c:new Uint8Array(c).buffer}:{}}),g=await Wxt(y);return{data:y.ok?g:null,error:y.ok?null:g,headers:Zxt(y),status:y.status}},catch:t=>t instanceof Error?t:new Error(String(t))})};var xTe=[bTe,V1e,dge,fce];import*as Xl from"effect/Effect";import*as TTe from"effect/Schema";var oQ=TTe.Struct({}),lw=1,eEt=(e,t)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&t.some(r=>Object.prototype.hasOwnProperty.call(e,r)),ETe=e=>Xl.gen(function*(){return eEt(e.binding,["specUrl","defaultHeaders","transport","queryParams","headers"])?yield*Ne("sources/source-adapters/internal","internal sources cannot define HTTP source settings"):yield*$p({sourceId:e.id,label:"internal",version:e.bindingVersion,expectedVersion:lw,schema:oQ,value:e.binding,allowedKeys:[]})}),DTe={key:"internal",displayName:"Internal",catalogKind:"internal",connectStrategy:"none",credentialStrategy:"none",bindingConfigVersion:lw,providerKey:"generic_internal",defaultImportAuthPolicy:"none",connectPayloadSchema:null,executorAddInputSchema:null,executorAddHelpText:null,executorAddInputSignatureWidth:null,localConfigBindingSchema:null,localConfigBindingFromSource:()=>null,serializeBindingConfig:e=>Rp({adapterKey:e.kind,version:lw,payloadSchema:oQ,payload:Xl.runSync(ETe(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:t})=>Xl.map(Lp({sourceId:e,label:"internal",adapterKey:"internal",version:lw,payloadSchema:oQ,value:t}),({version:r,payload:n})=>({version:r,payload:n})),bindingStateFromSource:()=>Xl.succeed(Fp),sourceConfigFromSource:e=>({kind:"internal",endpoint:e.endpoint}),validateSource:e=>Xl.gen(function*(){return yield*ETe(e),{...e,bindingVersion:lw,binding:{}}}),shouldAutoProbe:()=>!1,syncCatalog:({source:e})=>Xl.succeed(Np({fragment:{version:"ir.v1.fragment"},importMetadata:{...ws({source:e,adapterKey:"internal"}),importerVersion:"ir.v1.internal",sourceConfigHash:"internal"},sourceHash:null})),invoke:()=>Xl.fail(Ne("sources/source-adapters/internal","Internal sources do not support persisted adapter invocation"))};var mF=[...xTe,DTe],Qc=Cse(mF),tEt=Qc.connectableSourceAdapters,QKt=Qc.connectPayloadSchema,iQ=Qc.executorAddableSourceAdapters,hF=Qc.executorAddInputSchema,rEt=Qc.localConfigurableSourceAdapters,hf=Qc.getSourceAdapter,_i=Qc.getSourceAdapterForSource,aQ=Qc.findSourceAdapterByProviderKey,Uh=Qc.sourceBindingStateFromSource,nEt=Qc.sourceAdapterCatalogKind,zh=Qc.sourceAdapterRequiresInteractiveConnect,SS=Qc.sourceAdapterUsesCredentialManagedAuth,oEt=Qc.isInternalSourceAdapter;import*as yf from"effect/Effect";var ATe=e=>`${e.providerId}:${e.handle}`,yF=(e,t,r)=>yf.gen(function*(){if(t.previous===null)return;let n=new Set((t.next===null?[]:UT(t.next)).map(ATe)),o=UT(t.previous).filter(i=>!n.has(ATe(i)));yield*yf.forEach(o,i=>yf.either(r(i)),{discard:!0})}),gF=e=>new Set(e.flatMap(t=>t?[qp(t)]:[]).flatMap(t=>t?[t.grantId]:[])),sQ=e=>{let t=e.authArtifacts.filter(r=>r.slot===e.slot);if(e.actorScopeId!==void 0){let r=t.find(n=>n.actorScopeId===e.actorScopeId);if(r)return r}return t.find(r=>r.actorScopeId===null)??null},cQ=e=>e.authArtifacts.find(t=>t.slot===e.slot&&t.actorScopeId===(e.actorScopeId??null))??null,wTe=(e,t,r)=>yf.gen(function*(){let n=yield*e.authArtifacts.listByScopeAndSourceId({scopeId:t.scopeId,sourceId:t.sourceId});return yield*e.authArtifacts.removeByScopeAndSourceId({scopeId:t.scopeId,sourceId:t.sourceId}),yield*yf.forEach(n,o=>w_(e,{authArtifactId:o.id},r),{discard:!0}),yield*yf.forEach(n,o=>yF(e,{previous:o,next:null},r),{discard:!0}),n.length});var lQ="config:",uQ=e=>`${lQ}${e}`,uw=e=>e.startsWith(lQ)?e.slice(lQ.length):null;var iEt=/[^a-z0-9]+/g,ITe=e=>e.trim().toLowerCase().replace(iEt,"-").replace(/^-+/,"").replace(/-+$/,"");var Yl=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},SF=e=>JSON.parse(JSON.stringify(e)),kTe=(e,t)=>{let r=Yl(e.namespace)??Yl(e.name)??"source",n=ITe(r)||"source",o=n,i=2;for(;t.has(o);)o=`${n}-${i}`,i+=1;return Mn.make(o)},aEt=e=>{let t=Yl(e?.secrets?.defaults?.env);return t!==null&&e?.secrets?.providers?.[t]?t:e?.secrets?.providers?.default?"default":null},CTe=e=>{if(e.auth===void 0)return e.existing??{kind:"none"};if(typeof e.auth=="string"){let t=aEt(e.config);return{kind:"bearer",headerName:"Authorization",prefix:"Bearer ",token:{providerId:t?uQ(t):"env",handle:e.auth}}}if(typeof e.auth=="object"&&e.auth!==null){let t=e.auth,r=Yl(t.provider),n=r?r==="params"?"params":uQ(r):t.source==="env"?"env":t.source==="params"?"params":null,o=Yl(t.id);if(n&&o)return{kind:"bearer",headerName:"Authorization",prefix:"Bearer ",token:{providerId:n,handle:o}}}return e.existing??{kind:"none"}},sEt=e=>{if(e.source.auth.kind!=="bearer")return e.existingConfigAuth;if(e.source.auth.token.providerId==="env")return e.source.auth.token.handle;if(e.source.auth.token.providerId==="params")return{source:"params",provider:"params",id:e.source.auth.token.handle};let t=uw(e.source.auth.token.providerId);if(t!==null){let r=e.config?.secrets?.providers?.[t];if(r)return{source:r.source,provider:t,id:e.source.auth.token.handle}}return e.existingConfigAuth},PTe=e=>{let t=sEt({source:e.source,existingConfigAuth:e.existingConfigAuth,config:e.config}),r={...Yl(e.source.name)!==Yl(e.source.id)?{name:e.source.name}:{},...Yl(e.source.namespace)!==Yl(e.source.id)?{namespace:e.source.namespace??void 0}:{},...e.source.enabled===!1?{enabled:!1}:{},connection:{endpoint:e.source.endpoint,...t!==void 0?{auth:t}:{}}},n=_i(e.source);if(n.localConfigBindingSchema===null)throw new r3({message:`Unsupported source kind for local config: ${e.source.kind}`,kind:e.source.kind});return{kind:e.source.kind,...r,binding:SF(n.localConfigBindingFromSource(e.source))}};var pQ=e=>Mi.gen(function*(){let t=e.loadedConfig.config?.sources?.[e.sourceId];if(!t)return yield*new VT({message:`Configured source not found for id ${e.sourceId}`,sourceId:e.sourceId});let r=e.scopeState.sources[e.sourceId],n=hf(t.kind),o=yield*n.validateSource({id:Mn.make(e.sourceId),scopeId:e.scopeId,name:Yl(t.name)??e.sourceId,kind:t.kind,endpoint:t.connection.endpoint.trim(),status:r?.status??(t.enabled??!0?"connected":"draft"),enabled:t.enabled??!0,namespace:Yl(t.namespace)??e.sourceId,bindingVersion:n.bindingConfigVersion,binding:t.binding,importAuthPolicy:n.defaultImportAuthPolicy,importAuth:{kind:"none"},auth:CTe({auth:t.connection.auth,config:e.loadedConfig.config,existing:null}),sourceHash:r?.sourceHash??null,lastError:r?.lastError??null,createdAt:r?.createdAt??Date.now(),updatedAt:r?.updatedAt??Date.now()}),i=sQ({authArtifacts:e.authArtifacts.filter(c=>c.sourceId===o.id),actorScopeId:e.actorScopeId,slot:"runtime"}),a=sQ({authArtifacts:e.authArtifacts.filter(c=>c.sourceId===o.id),actorScopeId:e.actorScopeId,slot:"import"});return{source:{...o,auth:i===null?o.auth:W6(i),importAuth:o.importAuthPolicy==="separate"?a===null?o.importAuth:W6(a):{kind:"none"}},sourceId:e.sourceId}}),vF=(e,t,r={})=>Mi.gen(function*(){let n=yield*Ug(e,t),o=yield*e.executorState.authArtifacts.listByScopeId(t),i=yield*Mi.forEach(Object.keys(n.loadedConfig.config?.sources??{}),a=>Mi.map(pQ({scopeId:t,loadedConfig:n.loadedConfig,scopeState:n.scopeState,sourceId:Mn.make(a),actorScopeId:r.actorScopeId,authArtifacts:o}),({source:s})=>s));return yield*Mi.annotateCurrentSpan("executor.source.count",i.length),i}).pipe(Mi.withSpan("source.store.load_scope",{attributes:{"executor.scope.id":t}})),dQ=(e,t,r={})=>Mi.gen(function*(){let n=yield*Ug(e,t),o=yield*vF(e,t,r),i=yield*Mi.forEach(o,a=>Mi.map(e.sourceArtifactStore.read({sourceId:a.id}),s=>s===null?null:{source:a,snapshot:s.snapshot}));yield*e.sourceTypeDeclarationsRefresher.refreshWorkspaceInBackground({entries:i.filter(a=>a!==null)})}).pipe(Mi.withSpan("source.types.refresh_scope.schedule",{attributes:{"executor.scope.id":t}})),OTe=e=>e.enabled===!1||e.status==="auth_required"||e.status==="error"||e.status==="draft",NTe=(e,t,r={})=>Mi.gen(function*(){let[n,o,i]=yield*Mi.all([vF(e,t,{actorScopeId:r.actorScopeId}),e.executorState.authArtifacts.listByScopeId(t),e.executorState.secretMaterials.listAll().pipe(Mi.map(c=>new Set(c.map(p=>String(p.id)))))]),a=new Map(n.map(c=>[c.id,c.name])),s=new Map;for(let c of o)for(let p of UT(c)){if(!i.has(p.handle))continue;let d=s.get(p.handle)??[];d.some(f=>f.sourceId===c.sourceId)||(d.push({sourceId:c.sourceId,sourceName:a.get(c.sourceId)??c.sourceId}),s.set(p.handle,d))}return s}),bF=(e,t)=>Mi.gen(function*(){let r=yield*Ug(e,t.scopeId),n=yield*e.executorState.authArtifacts.listByScopeId(t.scopeId);return r.loadedConfig.config?.sources?.[t.sourceId]?(yield*pQ({scopeId:t.scopeId,loadedConfig:r.loadedConfig,scopeState:r.scopeState,sourceId:t.sourceId,actorScopeId:t.actorScopeId,authArtifacts:n})).source:yield*new VT({message:`Source not found: scopeId=${t.scopeId} sourceId=${t.sourceId}`,sourceId:t.sourceId})}).pipe(Mi.withSpan("source.store.load_by_id",{attributes:{"executor.scope.id":t.scopeId,"executor.source.id":t.sourceId}}));import*as Sf from"effect/Effect";import*as wd from"effect/Effect";import*as _Q from"effect/Option";var cEt=e=>qp(e),lEt=e=>cEt(e)?.grantId??null,fQ=(e,t)=>wd.map(e.authArtifacts.listByScopeId(t.scopeId),r=>r.filter(n=>{let o=lEt(n);return o!==null&&(t.grantId==null||o===t.grantId)})),FTe=(e,t)=>wd.gen(function*(){let r=yield*e.providerAuthGrants.getById(t.grantId);return _Q.isNone(r)||r.value.orphanedAt===null?!1:(yield*e.providerAuthGrants.upsert({...r.value,orphanedAt:null,updatedAt:Date.now()}),!0)}),mQ=(e,t)=>wd.gen(function*(){if((yield*fQ(e,t)).length>0)return!1;let n=yield*e.providerAuthGrants.getById(t.grantId);if(_Q.isNone(n)||n.value.scopeId!==t.scopeId)return!1;let o=n.value;return o.orphanedAt!==null?!1:(yield*e.providerAuthGrants.upsert({...o,orphanedAt:Date.now(),updatedAt:Date.now()}),!0)}),RTe=(e,t,r)=>wd.gen(function*(){yield*r(t.grant.refreshToken).pipe(wd.either,wd.ignore)});import*as np from"effect/Effect";var bn=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},LTe=e=>_i(e).sourceConfigFromSource(e),uEt=e=>_i(e).catalogKind,pEt=e=>_i(e).key,dEt=e=>_i(e).providerKey,$Te=e=>Dc(e).slice(0,24),_Et=e=>JSON.stringify({catalogKind:uEt(e),adapterKey:pEt(e),providerKey:dEt(e),sourceConfig:LTe(e)}),MTe=e=>JSON.stringify(LTe(e)),EF=e=>Rc.make(`src_catalog_${$Te(_Et(e))}`),hQ=e=>bm.make(`src_catalog_rev_${$Te(MTe(e))}`),xF=e=>np.gen(function*(){if(e===void 0||e.kind==="none")return{kind:"none"};if(e.kind==="bearer"){let a=bn(e.headerName)??"Authorization",s=e.prefix??"Bearer ",c=bn(e.token.providerId),p=bn(e.token.handle);return c===null||p===null?yield*Ne("sources/source-definitions","Bearer auth requires a token secret ref"):{kind:"bearer",headerName:a,prefix:s,token:{providerId:c,handle:p}}}if(e.kind==="oauth2_authorized_user"){let a=bn(e.headerName)??"Authorization",s=e.prefix??"Bearer ",c=bn(e.refreshToken.providerId),p=bn(e.refreshToken.handle);if(c===null||p===null)return yield*Ne("sources/source-definitions","OAuth2 authorized-user auth requires a refresh token secret ref");let d=null;if(e.clientSecret!==null){let y=bn(e.clientSecret.providerId),g=bn(e.clientSecret.handle);if(y===null||g===null)return yield*Ne("sources/source-definitions","OAuth2 authorized-user client secret ref must include providerId and handle");d={providerId:y,handle:g}}let f=bn(e.tokenEndpoint),m=bn(e.clientId);return f===null||m===null?yield*Ne("sources/source-definitions","OAuth2 authorized-user auth requires tokenEndpoint and clientId"):{kind:"oauth2_authorized_user",headerName:a,prefix:s,tokenEndpoint:f,clientId:m,clientAuthentication:e.clientAuthentication,clientSecret:d,refreshToken:{providerId:c,handle:p},grantSet:e.grantSet??null}}if(e.kind==="provider_grant_ref"){let a=bn(e.headerName)??"Authorization",s=e.prefix??"Bearer ",c=bn(e.grantId);return c===null?yield*Ne("sources/source-definitions","Provider grant auth requires a grantId"):{kind:"provider_grant_ref",grantId:jp.make(c),providerKey:bn(e.providerKey)??"",requiredScopes:e.requiredScopes.map(p=>p.trim()).filter(p=>p.length>0),headerName:a,prefix:s}}if(e.kind==="mcp_oauth"){let a=bn(e.redirectUri),s=bn(e.accessToken.providerId),c=bn(e.accessToken.handle);if(a===null||s===null||c===null)return yield*Ne("sources/source-definitions","MCP OAuth auth requires redirectUri and access token secret ref");let p=null;if(e.refreshToken!==null){let f=bn(e.refreshToken.providerId),m=bn(e.refreshToken.handle);if(f===null||m===null)return yield*Ne("sources/source-definitions","MCP OAuth refresh token ref must include providerId and handle");p={providerId:f,handle:m}}let d=bn(e.tokenType)??"Bearer";return{kind:"mcp_oauth",redirectUri:a,accessToken:{providerId:s,handle:c},refreshToken:p,tokenType:d,expiresIn:e.expiresIn??null,scope:bn(e.scope),resourceMetadataUrl:bn(e.resourceMetadataUrl),authorizationServerUrl:bn(e.authorizationServerUrl),resourceMetadataJson:bn(e.resourceMetadataJson),authorizationServerMetadataJson:bn(e.authorizationServerMetadataJson),clientInformationJson:bn(e.clientInformationJson)}}let t=bn(e.headerName)??"Authorization",r=e.prefix??"Bearer ",n=bn(e.accessToken.providerId),o=bn(e.accessToken.handle);if(n===null||o===null)return yield*Ne("sources/source-definitions","OAuth2 auth requires an access token secret ref");let i=null;if(e.refreshToken!==null){let a=bn(e.refreshToken.providerId),s=bn(e.refreshToken.handle);if(a===null||s===null)return yield*Ne("sources/source-definitions","OAuth2 refresh token ref must include providerId and handle");i={providerId:a,handle:s}}return{kind:"oauth2",headerName:t,prefix:r,accessToken:{providerId:n,handle:o},refreshToken:i}}),jTe=(e,t)=>t??hf(e).defaultImportAuthPolicy,fEt=e=>np.gen(function*(){return e.importAuthPolicy!=="separate"&&e.importAuth.kind!=="none"?yield*Ne("sources/source-definitions","importAuth must be none unless importAuthPolicy is separate"):e}),BTe=e=>np.flatMap(fEt(e),t=>np.map(_i(t).validateSource(t),r=>r)),vS=e=>np.gen(function*(){let t=yield*xF(e.payload.auth),r=yield*xF(e.payload.importAuth),n=jTe(e.payload.kind,e.payload.importAuthPolicy);return yield*BTe({id:e.sourceId,scopeId:e.scopeId,name:e.payload.name.trim(),kind:e.payload.kind,endpoint:e.payload.endpoint.trim(),status:e.payload.status??"draft",enabled:e.payload.enabled??!0,namespace:bn(e.payload.namespace),bindingVersion:hf(e.payload.kind).bindingConfigVersion,binding:e.payload.binding??{},importAuthPolicy:n,importAuth:r,auth:t,sourceHash:bn(e.payload.sourceHash),lastError:bn(e.payload.lastError),createdAt:e.now,updatedAt:e.now})}),gf=e=>np.gen(function*(){let t=e.payload.auth===void 0?e.source.auth:yield*xF(e.payload.auth),r=e.payload.importAuth===void 0?e.source.importAuth:yield*xF(e.payload.importAuth),n=jTe(e.source.kind,e.payload.importAuthPolicy??e.source.importAuthPolicy);return yield*BTe({...e.source,name:e.payload.name!==void 0?e.payload.name.trim():e.source.name,endpoint:e.payload.endpoint!==void 0?e.payload.endpoint.trim():e.source.endpoint,status:e.payload.status??e.source.status,enabled:e.payload.enabled??e.source.enabled,namespace:e.payload.namespace!==void 0?bn(e.payload.namespace):e.source.namespace,bindingVersion:e.payload.binding!==void 0?hf(e.source.kind).bindingConfigVersion:e.source.bindingVersion,binding:e.payload.binding!==void 0?e.payload.binding:e.source.binding,importAuthPolicy:n,importAuth:r,auth:t,sourceHash:e.payload.sourceHash!==void 0?bn(e.payload.sourceHash):e.source.sourceHash,lastError:e.payload.lastError!==void 0?bn(e.payload.lastError):e.source.lastError,updatedAt:e.now})});var qTe=e=>({id:e.catalogRevisionId??hQ(e.source),catalogId:e.catalogId,revisionNumber:e.revisionNumber,sourceConfigJson:MTe(e.source),importMetadataJson:e.importMetadataJson??null,importMetadataHash:e.importMetadataHash??null,snapshotHash:e.snapshotHash??null,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}),UTe=e=>({sourceRecord:{id:e.source.id,scopeId:e.source.scopeId,catalogId:e.catalogId,catalogRevisionId:e.catalogRevisionId,name:e.source.name,kind:e.source.kind,endpoint:e.source.endpoint,status:e.source.status,enabled:e.source.enabled,namespace:e.source.namespace,importAuthPolicy:e.source.importAuthPolicy,bindingConfigJson:_i(e.source).serializeBindingConfig(e.source),sourceHash:e.source.sourceHash,lastError:e.source.lastError,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt},runtimeAuthArtifact:qT({source:e.source,auth:e.source.auth,slot:"runtime",actorScopeId:e.actorScopeId,existingAuthArtifactId:e.existingRuntimeAuthArtifactId??og.make(`auth_art_${crypto.randomUUID()}`)}),importAuthArtifact:e.source.importAuthPolicy==="separate"?qT({source:e.source,auth:e.source.importAuth,slot:"import",actorScopeId:e.actorScopeId,existingAuthArtifactId:e.existingImportAuthArtifactId??og.make(`auth_art_${crypto.randomUUID()}`)}):null});var zTe=(e,t,r)=>Sf.gen(function*(){let n=yield*Ug(e,t.scopeId);if(!n.loadedConfig.config?.sources?.[t.sourceId])return!1;let o=SF(n.loadedConfig.projectConfig??{}),i={...o.sources};delete i[t.sourceId],yield*n.scopeConfigStore.writeProject({config:{...o,sources:i}});let{[t.sourceId]:a,...s}=n.scopeState.sources,c={...n.scopeState,sources:s};yield*n.scopeStateStore.write({state:c}),yield*n.sourceArtifactStore.remove({sourceId:t.sourceId});let p=yield*e.executorState.authArtifacts.listByScopeAndSourceId({scopeId:t.scopeId,sourceId:t.sourceId}),d=gF(p);return yield*e.executorState.sourceAuthSessions.removeByScopeAndSourceId(t.scopeId,t.sourceId),yield*e.executorState.sourceOauthClients.removeByScopeAndSourceId({scopeId:t.scopeId,sourceId:t.sourceId}),yield*wTe(e.executorState,t,r),yield*Sf.forEach([...d],f=>mQ(e.executorState,{scopeId:t.scopeId,grantId:f}),{discard:!0}),yield*dQ(e,t.scopeId),!0}),VTe=(e,t,r={},n)=>Sf.gen(function*(){let o=yield*Ug(e,t.scopeId),i={...t,id:o.loadedConfig.config?.sources?.[t.id]||o.scopeState.sources[t.id]?t.id:kTe(t,new Set(Object.keys(o.loadedConfig.config?.sources??{})))},a=yield*e.executorState.authArtifacts.listByScopeAndSourceId({scopeId:i.scopeId,sourceId:i.id}),s=cQ({authArtifacts:a,actorScopeId:r.actorScopeId,slot:"runtime"}),c=cQ({authArtifacts:a,actorScopeId:r.actorScopeId,slot:"import"}),p=SF(o.loadedConfig.projectConfig??{}),d={...p.sources},f=d[i.id];d[i.id]=PTe({source:i,existingConfigAuth:f?.connection.auth,config:o.loadedConfig.config}),yield*o.scopeConfigStore.writeProject({config:{...p,sources:d}});let{runtimeAuthArtifact:m,importAuthArtifact:y}=UTe({source:i,catalogId:EF(i),catalogRevisionId:hQ(i),actorScopeId:r.actorScopeId,existingRuntimeAuthArtifactId:s?.id??null,existingImportAuthArtifactId:c?.id??null});m===null?(s!==null&&(yield*w_(e.executorState,{authArtifactId:s.id},n)),yield*e.executorState.authArtifacts.removeByScopeSourceAndActor({scopeId:i.scopeId,sourceId:i.id,actorScopeId:r.actorScopeId??null,slot:"runtime"})):(yield*e.executorState.authArtifacts.upsert(m),s!==null&&s.id!==m.id&&(yield*w_(e.executorState,{authArtifactId:s.id},n))),yield*yF(e.executorState,{previous:s??null,next:m},n),y===null?(c!==null&&(yield*w_(e.executorState,{authArtifactId:c.id},n)),yield*e.executorState.authArtifacts.removeByScopeSourceAndActor({scopeId:i.scopeId,sourceId:i.id,actorScopeId:r.actorScopeId??null,slot:"import"})):(yield*e.executorState.authArtifacts.upsert(y),c!==null&&c.id!==y.id&&(yield*w_(e.executorState,{authArtifactId:c.id},n))),yield*yF(e.executorState,{previous:c??null,next:y},n);let g=gF([s,c]),S=gF([m,y]);yield*Sf.forEach([...S],I=>FTe(e.executorState,{grantId:I}),{discard:!0}),yield*Sf.forEach([...g].filter(I=>!S.has(I)),I=>mQ(e.executorState,{scopeId:i.scopeId,grantId:I}),{discard:!0});let x=o.scopeState.sources[i.id],A={...o.scopeState,sources:{...o.scopeState.sources,[i.id]:{status:i.status,lastError:i.lastError,sourceHash:i.sourceHash,createdAt:x?.createdAt??i.createdAt,updatedAt:i.updatedAt}}};return yield*o.scopeStateStore.write({state:A}),OTe(i)&&(yield*dQ(e,i.scopeId,r)),yield*bF(e,{scopeId:i.scopeId,sourceId:i.id,actorScopeId:r.actorScopeId})}).pipe(Sf.withSpan("source.store.persist",{attributes:{"executor.scope.id":t.scopeId,"executor.source.id":t.id,"executor.source.kind":t.kind,"executor.source.status":t.status}}));var Qo=class extends JTe.Tag("#runtime/RuntimeSourceStoreService")(){},GTe=KTe.effect(Qo,yQ.gen(function*(){let e=yield*Wn,t=yield*Rs,r=yield*Kc,n=yield*$a,o=yield*Ma,i=yield*md,a=yield*as,s={executorState:e,runtimeLocalScope:t,scopeConfigStore:r,scopeStateStore:n,sourceArtifactStore:o,sourceTypeDeclarationsRefresher:i};return Qo.of({loadSourcesInScope:(c,p={})=>vF(s,c,p),listLinkedSecretSourcesInScope:(c,p={})=>NTe(s,c,p),loadSourceById:c=>bF(s,c),removeSourceById:c=>zTe(s,c,a),persistSource:(c,p={})=>VTe(s,c,p,a)})}));var eDe=e=>({descriptor:e.tool.descriptor,namespace:e.tool.searchNamespace,searchText:e.tool.searchText,score:e.score}),mEt=e=>{let[t,r]=e.split(".");return r?`${t}.${r}`:t},hEt=e=>e.path,yEt=e=>({path:e.path,searchNamespace:e.searchNamespace,searchText:e.searchText,source:e.source,sourceRecord:e.sourceRecord,capabilityId:e.capabilityId,executableId:e.executableId,capability:e.capability,executable:e.executable,descriptor:e.descriptor,projectedCatalog:e.projectedCatalog}),gEt=e=>e==null?null:JSON.stringify(e,null,2),SEt=(e,t)=>e.toolDescriptors[t.id]?.toolPath.join(".")??"",vEt=(e,t)=>{let r=t.preferredExecutableId!==void 0?e.executables[t.preferredExecutableId]:void 0;if(r)return r;let n=t.executableIds.map(o=>e.executables[o]).find(o=>o!==void 0);if(!n)throw new Error(`Capability ${t.id} has no executable`);return n},ib=(e,t)=>{if(!t)return;let r=e.symbols[t];return r?.kind==="shape"?r:void 0},TF=(e,t)=>{let r={},n=new Set,o=new Set,i=new Set,a=new Map,s=new Set,c=E=>{let C=E.trim();if(C.length===0)return null;let F=C.replace(/[^A-Za-z0-9_]+/g,"_").replace(/_+/g,"_").replace(/^_+|_+$/g,"");return F.length===0?null:/^[A-Za-z_]/.test(F)?F:`shape_${F}`},p=(E,C)=>{let F=ib(e,E);return[...C,F?.title,E].flatMap(O=>typeof O=="string"&&O.trim().length>0?[O]:[])},d=(E,C)=>{let F=a.get(E);if(F)return F;let O=p(E,C);for(let ge of O){let Te=c(ge);if(Te&&!s.has(Te))return a.set(E,Te),s.add(Te),Te}let $=c(E)??"shape",N=$,U=2;for(;s.has(N);)N=`${$}_${String(U)}`,U+=1;return a.set(E,N),s.add(N),N},f=(E,C,F)=>p(E,C)[0]??F,m=(E,C,F)=>{let O=ib(e,E);if(!O)return!0;if(C<0||F.has(E))return!1;let $=new Set(F);return $.add(E),xn.value(O.node).pipe(xn.when({type:"unknown"},()=>!0),xn.when({type:"const"},()=>!0),xn.when({type:"enum"},()=>!0),xn.when({type:"scalar"},()=>!0),xn.when({type:"ref"},N=>m(N.target,C,$)),xn.when({type:"nullable"},N=>m(N.itemShapeId,C-1,$)),xn.when({type:"array"},N=>m(N.itemShapeId,C-1,$)),xn.when({type:"object"},N=>{let U=Object.values(N.fields);return U.length<=8&&U.every(ge=>m(ge.shapeId,C-1,$))}),xn.orElse(()=>!1))},y=E=>m(E,2,new Set),g=(E,C=[])=>{if(n.has(E))return S(E,C);if(!ib(e,E))return{};n.add(E);try{return x(E,C)}finally{n.delete(E)}},S=(E,C=[])=>{let F=d(E,C);if(i.has(E)||o.has(E))return{$ref:`#/$defs/${F}`};let O=ib(e,E);o.add(E);let $=n.has(E);$||n.add(E);try{r[F]=O?x(E,C):{},i.add(E)}finally{o.delete(E),$||n.delete(E)}return{$ref:`#/$defs/${F}`}},x=(E,C=[])=>{let F=ib(e,E);if(!F)return{};let O=f(E,C,"shape"),$=N=>({...F.title?{title:F.title}:{},...F.docs?.description?{description:F.docs.description}:{},...N});return xn.value(F.node).pipe(xn.when({type:"unknown"},()=>$({})),xn.when({type:"const"},N=>$({const:N.value})),xn.when({type:"enum"},N=>$({enum:N.values})),xn.when({type:"scalar"},N=>$({type:N.scalar==="bytes"?"string":N.scalar,...N.scalar==="bytes"?{format:"binary"}:{},...N.format?{format:N.format}:{},...N.constraints})),xn.when({type:"ref"},N=>y(N.target)?g(N.target,C):S(N.target,C)),xn.when({type:"nullable"},N=>$({anyOf:[g(N.itemShapeId,C),{type:"null"}]})),xn.when({type:"allOf"},N=>$({allOf:N.items.map((U,ge)=>g(U,[`${O}_allOf_${String(ge+1)}`]))})),xn.when({type:"anyOf"},N=>$({anyOf:N.items.map((U,ge)=>g(U,[`${O}_anyOf_${String(ge+1)}`]))})),xn.when({type:"oneOf"},N=>$({oneOf:N.items.map((U,ge)=>g(U,[`${O}_option_${String(ge+1)}`])),...N.discriminator?{discriminator:{propertyName:N.discriminator.propertyName,...N.discriminator.mapping?{mapping:Object.fromEntries(Object.entries(N.discriminator.mapping).map(([U,ge])=>[U,S(ge,[U,`${O}_${U}`]).$ref]))}:{}}}:{}})),xn.when({type:"not"},N=>$({not:g(N.itemShapeId,[`${O}_not`])})),xn.when({type:"conditional"},N=>$({if:g(N.ifShapeId,[`${O}_if`]),...N.thenShapeId?{then:g(N.thenShapeId,[`${O}_then`])}:{},...N.elseShapeId?{else:g(N.elseShapeId,[`${O}_else`])}:{}})),xn.when({type:"array"},N=>$({type:"array",items:g(N.itemShapeId,[`${O}_item`]),...N.minItems!==void 0?{minItems:N.minItems}:{},...N.maxItems!==void 0?{maxItems:N.maxItems}:{}})),xn.when({type:"tuple"},N=>$({type:"array",prefixItems:N.itemShapeIds.map((U,ge)=>g(U,[`${O}_item_${String(ge+1)}`])),...N.additionalItems!==void 0?{items:typeof N.additionalItems=="boolean"?N.additionalItems:g(N.additionalItems,[`${O}_item_rest`])}:{}})),xn.when({type:"map"},N=>$({type:"object",additionalProperties:g(N.valueShapeId,[`${O}_value`])})),xn.when({type:"object"},N=>$({type:"object",properties:Object.fromEntries(Object.entries(N.fields).map(([U,ge])=>[U,{...g(ge.shapeId,[U]),...ge.docs?.description?{description:ge.docs.description}:{}}])),...N.required&&N.required.length>0?{required:N.required}:{},...N.additionalProperties!==void 0?{additionalProperties:typeof N.additionalProperties=="boolean"?N.additionalProperties:g(N.additionalProperties,[`${O}_additionalProperty`])}:{},...N.patternProperties?{patternProperties:Object.fromEntries(Object.entries(N.patternProperties).map(([U,ge])=>[U,g(ge,[`${O}_patternProperty`])]))}:{}})),xn.when({type:"graphqlInterface"},N=>$({type:"object",properties:Object.fromEntries(Object.entries(N.fields).map(([U,ge])=>[U,g(ge.shapeId,[U])]))})),xn.when({type:"graphqlUnion"},N=>$({oneOf:N.memberTypeIds.map((U,ge)=>g(U,[`${O}_member_${String(ge+1)}`]))})),xn.exhaustive)},A=(E,C=[])=>{let F=ib(e,E);return F?xn.value(F.node).pipe(xn.when({type:"ref"},O=>A(O.target,C)),xn.orElse(()=>g(E,C))):{}},I=A(t,["input"]);return Object.keys(r).length>0?{...I,$defs:r}:I},tDe=e=>KT({catalog:e.catalog,roots:o3(e)}),bEt=e=>{let t=e.projected.toolDescriptors[e.capability.id],r=t.toolPath.join("."),n=t.interaction.mayRequireApproval||t.interaction.mayElicit?"required":"auto",o=e.includeSchemas?TF(e.projected.catalog,t.callShapeId):void 0,a=e.includeSchemas&&t.resultShapeId?TF(e.projected.catalog,t.resultShapeId):void 0,s=e.includeTypePreviews?e.typeProjector.renderSelfContainedShape(t.callShapeId,{aliasHint:di(...t.toolPath,"call")}):void 0,c=e.includeTypePreviews&&t.resultShapeId?e.typeProjector.renderSelfContainedShape(t.resultShapeId,{aliasHint:di(...t.toolPath,"result")}):void 0;return{path:r,sourceKey:e.source.id,description:e.capability.surface.summary??e.capability.surface.description,interaction:n,contract:{inputTypePreview:s,...c!==void 0?{outputTypePreview:c}:{},...o!==void 0?{inputSchema:o}:{},...a!==void 0?{outputSchema:a}:{}},providerKind:e.executable.adapterKey,providerData:{capabilityId:e.capability.id,executableId:e.executable.id,adapterKey:e.executable.adapterKey,display:e.executable.display}}},rDe=e=>{let t=vEt(e.catalogEntry.projected.catalog,e.capability),r=e.catalogEntry.projected.toolDescriptors[e.capability.id],n=bEt({source:e.catalogEntry.source,projected:e.catalogEntry.projected,capability:e.capability,executable:t,typeProjector:e.catalogEntry.typeProjector,includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews}),o=hEt(n),i=e.catalogEntry.projected.searchDocs[e.capability.id],a=mEt(o),s=[o,a,e.catalogEntry.source.name,e.capability.surface.title,e.capability.surface.summary,e.capability.surface.description,n.contract?.inputTypePreview,n.contract?.outputTypePreview,...i?.tags??[],...i?.protocolHints??[],...i?.authHints??[]].filter(c=>typeof c=="string"&&c.length>0).join(" ").toLowerCase();return{path:o,searchNamespace:a,searchText:s,source:e.catalogEntry.source,sourceRecord:e.catalogEntry.sourceRecord,revision:e.catalogEntry.revision,capabilityId:e.capability.id,executableId:t.id,capability:e.capability,executable:t,projectedDescriptor:r,descriptor:n,projectedCatalog:e.catalogEntry.projected.catalog,typeProjector:e.catalogEntry.typeProjector}},nDe=e=>({id:e.source.id,scopeId:e.source.scopeId,catalogId:e.artifact.catalogId,catalogRevisionId:e.artifact.revision.id,name:e.source.name,kind:e.source.kind,endpoint:e.source.endpoint,status:e.source.status,enabled:e.source.enabled,namespace:e.source.namespace,importAuthPolicy:e.source.importAuthPolicy,bindingConfigJson:JSON.stringify(e.source.binding),sourceHash:e.source.sourceHash,lastError:e.source.lastError,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}),Vh=class extends XTe.Tag("#runtime/RuntimeSourceCatalogStoreService")(){},xEt=e=>e??null,EEt=e=>JSON.stringify([...e].sort((t,r)=>String(t.id).localeCompare(String(r.id)))),oDe=(e,t)=>Br.gen(function*(){if(e.runtimeLocalScope.installation.scopeId!==t)return yield*Br.fail(Ne("catalog/source/runtime",`Runtime local scope mismatch: expected ${t}, got ${e.runtimeLocalScope.installation.scopeId}`))}),iDe=e=>F6(e.artifact.snapshot),aDe=(e,t)=>Br.gen(function*(){return yield*oDe(e,t.scopeId),yield*e.sourceStore.loadSourcesInScope(t.scopeId,{actorScopeId:t.actorScopeId})}),HTe=(e,t)=>Br.map(aDe(e,t),r=>({scopeId:t.scopeId,actorScopeId:xEt(t.actorScopeId),sourceFingerprint:EEt(r)})),TEt=(e,t)=>Br.gen(function*(){return(yield*Br.forEach(t,n=>Br.gen(function*(){let o=yield*e.sourceArtifactStore.read({sourceId:n.id});if(o===null)return null;let i=iDe({source:n,artifact:o}),a=NT({catalog:i.catalog}),s=tDe(a);return{source:n,sourceRecord:nDe({source:n,artifact:o}),revision:o.revision,snapshot:i,catalog:i.catalog,projected:a,typeProjector:s,importMetadata:i.import}}))).filter(n=>n!==null)}),sDe=(e,t)=>Br.gen(function*(){let r=yield*aDe(e,t);return yield*TEt(e,r)}),cDe=(e,t)=>Br.gen(function*(){yield*oDe(e,t.scopeId);let r=yield*e.sourceStore.loadSourceById({scopeId:t.scopeId,sourceId:t.sourceId,actorScopeId:t.actorScopeId}),n=yield*e.sourceArtifactStore.read({sourceId:r.id});if(n===null)return yield*new t3({message:`Catalog artifact missing for source ${t.sourceId}`,sourceId:t.sourceId});let o=iDe({source:r,artifact:n}),i=NT({catalog:o.catalog}),a=tDe(i);return{source:r,sourceRecord:nDe({source:r,artifact:n}),revision:n.revision,snapshot:o,catalog:o.catalog,projected:i,typeProjector:a,importMetadata:o.import}}),DEt=e=>Br.gen(function*(){let t=yield*Rs,r=yield*Qo,n=yield*Ma;return yield*sDe({runtimeLocalScope:t,sourceStore:r,sourceArtifactStore:n},e)}),lDe=e=>Br.gen(function*(){let t=yield*Rs,r=yield*Qo,n=yield*Ma;return yield*cDe({runtimeLocalScope:t,sourceStore:r,sourceArtifactStore:n},e)}),SQ=e=>Br.succeed(e.catalogs.flatMap(t=>Object.values(t.catalog.capabilities).map(r=>rDe({catalogEntry:t,capability:r,includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews??!0})))),ZTe=e=>Br.tryPromise({try:async()=>{let t=KT({catalog:e.catalog,roots:[{shapeId:e.shapeId,aliasHint:e.aliasHint}]}),r=t.renderDeclarationShape(e.shapeId,{aliasHint:e.aliasHint}),n=t.supportingDeclarations(),o=`type ${e.aliasHint} =`;return n.some(a=>a.includes(o))?n.join(` +`);e=e.replace(Mme,"").trimEnd();let r=Object.create(null),n=_1(0,e,jme,"").replace(Mme,"").trimEnd(),o;for(;o=jme.exec(e);){let i=_1(0,o[2],dst,"");if(typeof r[o[1]]=="string"||Array.isArray(r[o[1]])){let a=r[o[1]];r[o[1]]=[...mst,...Array.isArray(a)?a:[a],i]}else r[o[1]]=i}return{comments:n,pragmas:r}}var gst=["noformat","noprettier"],Sst=["format","prettier"];function vst(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var bst=vst;function jye(e){let t=bst(e);t&&(e=e.slice(t.length+1));let r=hst(e),{pragmas:n,comments:o}=yst(r);return{shebang:t,text:e,pragmas:n,comments:o}}function xst(e){let{pragmas:t}=jye(e);return Sst.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function Est(e){let{pragmas:t}=jye(e);return gst.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function Tst(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:xst,hasIgnorePragma:Est,locStart:tf,locEnd:_d,...e}}var Dst=Tst,Ast=/^[^"'`]*<\/|^[^/]{2}.*\/>/mu;function Ist(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var wst=Ist,Bye="module",qye="commonjs",kst=[Bye,qye];function Cst(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return Bye;if(/\.(?:cjs|cts)$/iu.test(e))return qye}}var Pst={loc:!0,range:!0,comment:!0,tokens:!1,loggerFn:!1,project:!1,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:!0};function Ost(e){let{message:t,location:r}=e;if(!r)return e;let{start:n,end:o}=r;return Nat(t,{loc:{start:{line:n.line,column:n.column+1},end:{line:o.line,column:o.column+1}},cause:e})}var Nst=e=>e&&/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function Fst(e,t){let r=[{...Pst,filePath:t}],n=Cst(t);if(n?r=r.map(i=>({...i,sourceType:n})):r=kst.flatMap(i=>r.map(a=>({...a,sourceType:i}))),Nst(t))return r;let o=Ast.test(e);return[o,!o].flatMap(i=>r.map(a=>({...a,jsx:i})))}function Rst(e,t){let r=t?.filepath;typeof r!="string"&&(r=void 0);let n=wst(e),o=Fst(e,r),i;try{i=Fat(o.map(a=>()=>Cat(n,a)))}catch({errors:[a]}){throw Ost(a)}return cst(i,{parser:"typescript",text:e})}var Lst=Dst(Rst);var $st=[aU,XU,_J],Uye=new Map;function Mst(e,t){return`${t}::${e.length}::${e}`}async function rA(e,t){let r=Mst(e,t),n=Uye.get(r);if(n)return n;try{let o=e,i=!1;t==="typescript"&&(o=`type __T = ${e}`,i=!0);let s=(await S3(o,{parser:t==="typescript-module"?"typescript":t,plugins:$st,printWidth:60,tabWidth:2,semi:!0,singleQuote:!1,trailingComma:"all"})).trimEnd();return i&&(s=s.replace(/^type __T =\s*/,"").replace(/;$/,"").trimEnd()),Uye.set(r,s),s}catch{return e}}import*as wO from"effect/Context";import*as uh from"effect/Effect";import*as zye from"effect/Layer";import*as Jye from"effect/Option";var Rs=class extends wO.Tag("#runtime/RuntimeLocalScopeService")(){},XJ=e=>zye.succeed(Rs,e),ph=(e,t)=>t==null?e:e.pipe(uh.provide(XJ(t))),dh=()=>uh.contextWith(e=>wO.getOption(e,Rs)).pipe(uh.map(e=>Jye.isSome(e)?e.value:null)),D1=e=>uh.gen(function*(){let t=yield*dh();return t===null?yield*new r3({message:"Runtime local scope is unavailable"}):e!==void 0&&t.installation.scopeId!==e?yield*new Cv({message:`Scope ${e} is not the active local scope ${t.installation.scopeId}`,requestedScopeId:e,activeScopeId:t.installation.scopeId}):t});import*as nA from"effect/Context";import*as _h from"effect/Layer";var Vg=class extends nA.Tag("#runtime/InstallationStore")(){},Kc=class extends nA.Tag("#runtime/ScopeConfigStore")(){},$a=class extends nA.Tag("#runtime/ScopeStateStore")(){},Ma=class extends nA.Tag("#runtime/SourceArtifactStore")(){},oA=e=>_h.mergeAll(_h.succeed(Kc,e.scopeConfigStore),_h.succeed($a,e.scopeStateStore),_h.succeed(Ma,e.sourceArtifactStore)),iA=e=>_h.mergeAll(_h.succeed(Vg,e.installationStore),oA(e));import*as GTe from"effect/Context";import*as SQ from"effect/Effect";import*as HTe from"effect/Layer";import*as Vye from"effect/Context";var hd=class extends Vye.Tag("#runtime/SourceTypeDeclarationsRefresherService")(){};import*as Kye from"effect/Effect";var Kg=(e,t)=>Kye.gen(function*(){if(e.runtimeLocalScope.installation.scopeId!==t)return yield*new Cv({message:`Runtime local scope mismatch: expected ${t}, got ${e.runtimeLocalScope.installation.scopeId}`,requestedScopeId:t,activeScopeId:e.runtimeLocalScope.installation.scopeId});let r=yield*e.scopeConfigStore.load(),n=yield*e.scopeStateStore.load();return{installation:e.runtimeLocalScope.installation,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,loadedConfig:r,scopeState:n}});import*as Mi from"effect/Effect";import*as Qye from"effect/Effect";var _o=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},vo=e=>typeof e=="string"&&e.trim().length>0?e.trim():null,Xye=e=>typeof e=="boolean"?e:null,kO=e=>Array.isArray(e)?e.flatMap(t=>{let r=vo(t);return r?[r]:[]}):[],Gye=e=>{if(e)try{return JSON.parse(e)}catch{return}},jst=e=>Dc(e),Bst=e=>e.replaceAll("~","~0").replaceAll("/","~1"),CO=e=>`#/$defs/google/${Bst(e)}`,qst=e=>{let t=vo(e)?.toLowerCase();switch(t){case"get":case"put":case"post":case"delete":case"patch":case"head":case"options":return t;default:throw new Error(`Unsupported Google Discovery HTTP method: ${String(e)}`)}},Gg=e=>{let t=_o(e.schema),r=vo(t.$ref);if(r)return{$ref:CO(r)};let n=vo(t.description),o=vo(t.format),i=vo(t.type),a=kO(t.enum),s=typeof t.default=="string"||typeof t.default=="number"||typeof t.default=="boolean"?t.default:void 0,c=Xye(t.readOnly),p={...n?{description:n}:{},...o?{format:o}:{},...a.length>0?{enum:[...a]}:{},...s!==void 0?{default:s}:{},...c===!0?{readOnly:!0}:{}};if(i==="any")return p;if(i==="array"){let m=Gg({schema:t.items,topLevelSchemas:e.topLevelSchemas});return{...p,type:"array",items:m??{}}}let d=_o(t.properties),f=t.additionalProperties;if(i==="object"||Object.keys(d).length>0||f!==void 0){let m=Object.fromEntries(Object.entries(d).map(([g,S])=>[g,Gg({schema:S,topLevelSchemas:e.topLevelSchemas})])),y=f===void 0?void 0:f===!0?!0:Gg({schema:f,topLevelSchemas:e.topLevelSchemas});return{...p,type:"object",...Object.keys(m).length>0?{properties:m}:{},...y!==void 0?{additionalProperties:y}:{}}}return i==="boolean"||i==="number"||i==="integer"||i==="string"?{...p,type:i}:Object.keys(p).length>0?p:{}},Ust=e=>{let t=Gg({schema:e.parameter,topLevelSchemas:e.topLevelSchemas});return e.parameter.repeated===!0?{type:"array",items:t}:t},Hye=e=>{let t=_o(e.method),r=_o(t.parameters),n={},o=[];for(let[a,s]of Object.entries(r)){let c=_o(s);n[a]=Ust({parameter:c,topLevelSchemas:e.topLevelSchemas}),c.required===!0&&o.push(a)}let i=vo(_o(t.request).$ref);if(i){let a=e.topLevelSchemas[i];a?n.body=Gg({schema:a,topLevelSchemas:e.topLevelSchemas}):n.body={$ref:CO(i)}}if(Object.keys(n).length!==0)return JSON.stringify({type:"object",properties:n,...o.length>0?{required:o}:{},additionalProperties:!1})},Zye=e=>{let t=vo(_o(_o(e.method).response).$ref);if(!t)return;let r=e.topLevelSchemas[t],n=r?Gg({schema:r,topLevelSchemas:e.topLevelSchemas}):{$ref:CO(t)};return JSON.stringify(n)},zst=e=>Object.entries(_o(_o(e).parameters)).flatMap(([t,r])=>{let n=_o(r),o=vo(n.location);return o!=="path"&&o!=="query"&&o!=="header"?[]:[{name:t,location:o,required:n.required===!0,repeated:n.repeated===!0,description:vo(n.description),type:vo(n.type)??vo(n.$ref),...kO(n.enum).length>0?{enum:[...kO(n.enum)]}:{},...vo(n.default)?{default:vo(n.default)}:{}}]}),Wye=e=>{let t=_o(_o(_o(e.auth).oauth2).scopes),r=Object.fromEntries(Object.entries(t).flatMap(([n,o])=>{let i=vo(_o(o).description)??"";return[[n,i]]}));return Object.keys(r).length>0?r:void 0},Yye=e=>{let t=vo(e.method.id),r=vo(e.method.path);if(!t||!r)return null;let n=qst(e.method.httpMethod),o=t,i=o.startsWith(`${e.service}.`)?o.slice(e.service.length+1):o,a=i.split(".").filter(m=>m.length>0),s=a.at(-1)??i,c=a.length>1?a.slice(0,-1).join("."):null,p=vo(_o(_o(e.method).response).$ref),d=vo(_o(_o(e.method).request).$ref),f=_o(e.method.mediaUpload);return{toolId:i,rawToolId:o,methodId:t,name:i,description:vo(e.method.description),group:c,leaf:s,method:n,path:r,flatPath:vo(e.method.flatPath),parameters:zst(e.method),requestSchemaId:d,responseSchemaId:p,scopes:[...kO(e.method.scopes)],supportsMediaUpload:Object.keys(f).length>0,supportsMediaDownload:Xye(e.method.supportsMediaDownload)===!0,...Hye({method:e.method,topLevelSchemas:e.topLevelSchemas})?{inputSchema:Gye(Hye({method:e.method,topLevelSchemas:e.topLevelSchemas}))}:{},...Zye({method:e.method,topLevelSchemas:e.topLevelSchemas})?{outputSchema:Gye(Zye({method:e.method,topLevelSchemas:e.topLevelSchemas}))}:{}}},ege=e=>{let t=_o(e.resource),r=Object.values(_o(t.methods)).flatMap(o=>{try{let i=Yye({service:e.service,version:e.version,rootUrl:e.rootUrl,servicePath:e.servicePath,topLevelSchemas:e.topLevelSchemas,method:_o(o)});return i?[i]:[]}catch{return[]}}),n=Object.values(_o(t.resources)).flatMap(o=>ege({...e,resource:o}));return[...r,...n]},A1=(e,t)=>Qye.try({try:()=>{let r=typeof t=="string"?JSON.parse(t):t,n=vo(r.name),o=vo(r.version),i=vo(r.rootUrl),a=typeof r.servicePath=="string"?r.servicePath:"";if(!n||!o||!i)throw new Error(`Invalid Google Discovery document for ${e}`);let s=Object.fromEntries(Object.entries(_o(r.schemas)).map(([f,m])=>[f,_o(m)])),c=Object.fromEntries(Object.entries(s).map(([f,m])=>[CO(f),JSON.stringify(Gg({schema:m,topLevelSchemas:s}))])),p=[...Object.values(_o(r.methods)).flatMap(f=>{let m=Yye({service:n,version:o,rootUrl:i,servicePath:a,topLevelSchemas:s,method:_o(f)});return m?[m]:[]}),...Object.values(_o(r.resources)).flatMap(f=>ege({service:n,version:o,rootUrl:i,servicePath:a,topLevelSchemas:s,resource:f}))].sort((f,m)=>f.toolId.localeCompare(m.toolId));return{version:1,sourceHash:jst(typeof t=="string"?t:JSON.stringify(t)),service:n,versionName:o,title:vo(r.title),description:vo(r.description),rootUrl:i,servicePath:a,batchPath:vo(r.batchPath),documentationLink:vo(r.documentationLink),...Object.keys(c).length>0?{schemaRefTable:c}:{},...Wye(r)?{oauthScopes:Wye(r)}:{},methods:p}},catch:r=>r instanceof Error?r:new Error(`Failed to extract Google Discovery manifest: ${String(r)}`)}),YJ=e=>[...e.methods];import*as eV from"effect/Either";import*as of from"effect/Effect";var Jst=e=>{try{return new URL(e.servicePath||"",e.rootUrl).toString()}catch{return e.rootUrl}},Vst=e=>e.scopes.length>0?Iu("oauth2",{confidence:"high",reason:"Google Discovery document declares OAuth scopes",headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:"https://accounts.google.com/o/oauth2/v2/auth",oauthTokenUrl:"https://oauth2.googleapis.com/token",oauthScopes:[...e.scopes]}):Op("Google Discovery document does not declare OAuth scopes","medium"),tV=e=>of.gen(function*(){let t=yield*of.either(pv({method:"GET",url:e.normalizedUrl,headers:e.headers}));if(eV.isLeft(t)||t.right.status<200||t.right.status>=300)return null;let r=yield*of.either(A1(e.normalizedUrl,t.right.text));if(eV.isLeft(r))return null;let n=Jst({rootUrl:r.right.rootUrl,servicePath:r.right.servicePath}),o=Cp(r.right.title)??`${r.right.service}.${r.right.versionName}.googleapis.com`,i=Object.keys(r.right.oauthScopes??{});return{detectedKind:"google_discovery",confidence:"high",endpoint:n,specUrl:e.normalizedUrl,name:o,namespace:os(r.right.service),transport:null,authInference:Vst({scopes:i}),toolCount:r.right.methods.length,warnings:[]}}).pipe(of.catchAll(()=>of.succeed(null)));import*as ls from"effect/Schema";var rV=ls.Struct({service:ls.String,version:ls.String,discoveryUrl:ls.optional(ls.NullOr(ls.String)),defaultHeaders:ls.optional(ls.NullOr(Qr)),scopes:ls.optional(ls.Array(ls.String))});var Kst=e=>{let t=e?.providerData.invocation.rootUrl;if(!t)return;let r=e?.providerData.invocation.servicePath??"";return[{url:new URL(r||"",t).toString()}]},Gst=e=>{let t=g_(e.source,e.operation.providerData.toolId),r=Oc.make(`cap_${hn({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),n=Qs.make(`exec_${hn({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"http"})}`),o=e.operation.inputSchema??{},i=e.operation.outputSchema??{},a=e.operation.providerData.invocation.scopes.length>0?hm.make(`security_${hn({sourceId:e.source.id,scopes:e.operation.providerData.invocation.scopes})}`):void 0;if(a&&!e.catalog.symbols[a]){let g=Object.fromEntries(e.operation.providerData.invocation.scopes.map(S=>[S,e.operation.providerData.invocation.scopeDescriptions?.[S]??S]));Vr(e.catalog.symbols)[a]={id:a,kind:"securityScheme",schemeType:"oauth2",docs:In({summary:"OAuth 2.0",description:"Imported from Google Discovery scopes."}),oauth:{flows:{},scopes:g},synthetic:!1,provenance:pn(e.documentId,"#/googleDiscovery/security")}}e.operation.providerData.invocation.parameters.forEach(g=>{let S=fm.make(`param_${hn({capabilityId:r,location:g.location,name:g.name})}`),b=PT(o,g.location,g.name)??(g.repeated?{type:"array",items:{type:g.type==="integer"?"integer":"string",...g.enum?{enum:g.enum}:{}}}:{type:g.type==="integer"?"integer":"string",...g.enum?{enum:g.enum}:{}});Vr(e.catalog.symbols)[S]={id:S,kind:"parameter",name:g.name,location:g.location,required:g.required,...In({description:g.description})?{docs:In({description:g.description})}:{},schemaShapeId:e.importer.importSchema(b,`#/googleDiscovery/${e.operation.providerData.toolId}/parameter/${g.location}/${g.name}`,o),synthetic:!1,provenance:pn(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/parameter/${g.location}/${g.name}`)}});let s=e.operation.providerData.invocation.requestSchemaId||fv(o)!==void 0?rg.make(`request_body_${hn({capabilityId:r})}`):void 0;if(s){let g=fv(o)??o;Vr(e.catalog.symbols)[s]={id:s,kind:"requestBody",contents:[{mediaType:"application/json",shapeId:e.importer.importSchema(g,`#/googleDiscovery/${e.operation.providerData.toolId}/requestBody`,o)}],synthetic:!1,provenance:pn(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/requestBody`)}}let c=Nc.make(`response_${hn({capabilityId:r})}`);Vr(e.catalog.symbols)[c]={id:c,kind:"response",...In({description:e.operation.description})?{docs:In({description:e.operation.description})}:{},...e.operation.outputSchema!==void 0?{contents:[{mediaType:"application/json",shapeId:e.importer.importSchema(i,`#/googleDiscovery/${e.operation.providerData.toolId}/response`,i)}]}:{},synthetic:!1,provenance:pn(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/response`)};let p=[];e.operation.providerData.invocation.supportsMediaUpload&&p.push("upload"),e.operation.providerData.invocation.supportsMediaDownload&&p.push("download");let d=v_({catalog:e.catalog,responseId:c,provenance:pn(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/responseSet`),traits:p}),f=e.operation.inputSchema!==void 0?e.importer.importSchema(e.operation.inputSchema,`#/googleDiscovery/${e.operation.providerData.toolId}/call`,e.operation.inputSchema):e.importer.importSchema({type:"object",additionalProperties:!1},`#/googleDiscovery/${e.operation.providerData.toolId}/call`);Vr(e.catalog.executables)[n]={id:n,capabilityId:r,scopeId:e.serviceScopeId,adapterKey:"google_discovery",bindingVersion:Ca,binding:e.operation.providerData,projection:{responseSetId:d,callShapeId:f},display:{protocol:"http",method:e.operation.providerData.invocation.method.toUpperCase(),pathTemplate:e.operation.providerData.invocation.path,operationId:e.operation.providerData.methodId,group:e.operation.providerData.group,leaf:e.operation.providerData.leaf,rawToolId:e.operation.providerData.rawToolId,title:e.operation.title??null,summary:e.operation.description??null},synthetic:!1,provenance:pn(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/executable`)};let m=e.operation.effect,y=a?{kind:"scheme",schemeId:a,scopes:e.operation.providerData.invocation.scopes}:{kind:"none"};Vr(e.catalog.capabilities)[r]={id:r,serviceScopeId:e.serviceScopeId,surface:{toolPath:t,...e.operation.title?{title:e.operation.title}:{},...e.operation.description?{summary:e.operation.description}:{},tags:["google",e.operation.providerData.service,e.operation.providerData.version]},semantics:{effect:m,safe:m==="read",idempotent:m==="read"||m==="delete",destructive:m==="delete"},auth:y,interaction:S_(m),executableIds:[n],synthetic:!1,provenance:pn(e.documentId,`#/googleDiscovery/${e.operation.providerData.toolId}/capability`)}},tge=e=>b_({source:e.source,documents:e.documents,serviceScopeDefaults:(()=>{let t=Kst(e.operations[0]);return t?{servers:t}:void 0})(),registerOperations:({catalog:t,documentId:r,serviceScopeId:n,importer:o})=>{for(let i of e.operations)Gst({catalog:t,source:e.source,documentId:r,serviceScopeId:n,operation:i,importer:o})}});import{FetchHttpClient as $Bt,HttpClient as MBt,HttpClientRequest as jBt}from"@effect/platform";import*as PO from"effect/Effect";import*as Uu from"effect/Schema";import{Schema as Ge}from"effect";var Hst=["get","put","post","delete","patch","head","options"],nV=Ge.Literal(...Hst),rge=Ge.Literal("path","query","header"),oV=Ge.Struct({name:Ge.String,location:rge,required:Ge.Boolean,repeated:Ge.Boolean,description:Ge.NullOr(Ge.String),type:Ge.NullOr(Ge.String),enum:Ge.optional(Ge.Array(Ge.String)),default:Ge.optional(Ge.String)}),nge=Ge.Struct({method:nV,path:Ge.String,flatPath:Ge.NullOr(Ge.String),rootUrl:Ge.String,servicePath:Ge.String,parameters:Ge.Array(oV),requestSchemaId:Ge.NullOr(Ge.String),responseSchemaId:Ge.NullOr(Ge.String),scopes:Ge.Array(Ge.String),scopeDescriptions:Ge.optional(Ge.Record({key:Ge.String,value:Ge.String})),supportsMediaUpload:Ge.Boolean,supportsMediaDownload:Ge.Boolean}),aA=Ge.Struct({kind:Ge.Literal("google_discovery"),service:Ge.String,version:Ge.String,toolId:Ge.String,rawToolId:Ge.String,methodId:Ge.String,group:Ge.NullOr(Ge.String),leaf:Ge.String,invocation:nge}),oge=Ge.Struct({toolId:Ge.String,rawToolId:Ge.String,methodId:Ge.String,name:Ge.String,description:Ge.NullOr(Ge.String),group:Ge.NullOr(Ge.String),leaf:Ge.String,method:nV,path:Ge.String,flatPath:Ge.NullOr(Ge.String),parameters:Ge.Array(oV),requestSchemaId:Ge.NullOr(Ge.String),responseSchemaId:Ge.NullOr(Ge.String),scopes:Ge.Array(Ge.String),supportsMediaUpload:Ge.Boolean,supportsMediaDownload:Ge.Boolean,inputSchema:Ge.optional(Ge.Unknown),outputSchema:Ge.optional(Ge.Unknown)}),ige=Ge.Record({key:Ge.String,value:Ge.String}),Zst=Ge.Struct({version:Ge.Literal(1),sourceHash:Ge.String,service:Ge.String,versionName:Ge.String,title:Ge.NullOr(Ge.String),description:Ge.NullOr(Ge.String),rootUrl:Ge.String,servicePath:Ge.String,batchPath:Ge.NullOr(Ge.String),documentationLink:Ge.NullOr(Ge.String),oauthScopes:Ge.optional(Ge.Record({key:Ge.String,value:Ge.String})),schemaRefTable:Ge.optional(ige),methods:Ge.Array(oge)});import*as Wst from"effect/Either";var zBt=Uu.decodeUnknownEither(aA),sge=e=>({kind:"google_discovery",service:e.service,version:e.version,toolId:e.definition.toolId,rawToolId:e.definition.rawToolId,methodId:e.definition.methodId,group:e.definition.group,leaf:e.definition.leaf,invocation:{method:e.definition.method,path:e.definition.path,flatPath:e.definition.flatPath,rootUrl:e.rootUrl,servicePath:e.servicePath,parameters:e.definition.parameters,requestSchemaId:e.definition.requestSchemaId,responseSchemaId:e.definition.responseSchemaId,scopes:e.definition.scopes,...e.oauthScopes?{scopeDescriptions:Object.fromEntries(e.definition.scopes.flatMap(t=>e.oauthScopes?.[t]!==void 0?[[t,e.oauthScopes[t]]]:[]))}:{},supportsMediaUpload:e.definition.supportsMediaUpload,supportsMediaDownload:e.definition.supportsMediaDownload}}),Qst=Uu.decodeUnknownEither(Uu.parseJson(Uu.Record({key:Uu.String,value:Uu.Unknown}))),iV=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{};var cge=(e,t,r)=>{if(t.length===0)return;let[n,...o]=t;if(!n)return;if(o.length===0){e[n]=r;return}let i=iV(e[n]);e[n]=i,cge(i,o,r)},age=e=>{if(e.schema===void 0||e.schema===null)return{};let t=iV(e.schema);if(!e.refTable||Object.keys(e.refTable).length===0)return t;let r=iV(t.$defs);for(let[n,o]of Object.entries(e.refTable)){if(!n.startsWith("#/$defs/"))continue;let i=typeof o=="string"?(()=>{try{return JSON.parse(o)}catch{return o}})():o,a=n.slice(8).split("/").filter(s=>s.length>0);cge(r,a,i)}return Object.keys(r).length>0?{...t,$defs:r}:t};var aV=e=>{let t=Object.fromEntries(Object.entries(e.manifest.schemaRefTable??{}).map(([o,i])=>{try{return[o,JSON.parse(i)]}catch{return[o,i]}})),r=e.definition.inputSchema===void 0?void 0:age({schema:e.definition.inputSchema,refTable:t}),n=e.definition.outputSchema===void 0?void 0:age({schema:e.definition.outputSchema,refTable:t});return{inputTypePreview:yu(r,"unknown",1/0),outputTypePreview:yu(n,"unknown",1/0),...r!==void 0?{inputSchema:r}:{},...n!==void 0?{outputSchema:n}:{},providerData:sge({service:e.manifest.service,version:e.manifest.versionName,rootUrl:e.manifest.rootUrl,servicePath:e.manifest.servicePath,oauthScopes:e.manifest.oauthScopes,definition:e.definition})}};import{FetchHttpClient as Xst,HttpClient as Yst,HttpClientRequest as lge}from"@effect/platform";import*as Yn from"effect/Effect";import*as dr from"effect/Schema";var pge=dr.extend(bm,dr.Struct({kind:dr.Literal("google_discovery"),service:dr.Trim.pipe(dr.nonEmptyString()),version:dr.Trim.pipe(dr.nonEmptyString()),discoveryUrl:dr.optional(dr.NullOr(dr.Trim.pipe(dr.nonEmptyString()))),scopes:dr.optional(dr.Array(dr.Trim.pipe(dr.nonEmptyString()))),scopeOauthClientId:dr.optional(dr.NullOr(Rse)),oauthClient:Bse,name:Ho,namespace:Ho,auth:dr.optional(T_)})),ect=pge,uge=dr.Struct({service:dr.Trim.pipe(dr.nonEmptyString()),version:dr.Trim.pipe(dr.nonEmptyString()),discoveryUrl:dr.Trim.pipe(dr.nonEmptyString()),defaultHeaders:dr.optional(dr.NullOr(Qr)),scopes:dr.optional(dr.Array(dr.Trim.pipe(dr.nonEmptyString())))}),tct=dr.Struct({service:dr.String,version:dr.String,discoveryUrl:dr.optional(dr.String),defaultHeaders:dr.optional(dr.NullOr(Qr)),scopes:dr.optional(dr.Array(dr.String))}),sA=1,rct=(e,t)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&t.some(r=>Object.prototype.hasOwnProperty.call(e,r)),nct=(e,t)=>`https://www.googleapis.com/discovery/v1/apis/${encodeURIComponent(e)}/${encodeURIComponent(t)}/rest`,fh=e=>Yn.gen(function*(){if(rct(e.binding,["transport","queryParams","headers","specUrl"]))return yield*Co("google-discovery/adapter","Google Discovery sources cannot define MCP or OpenAPI binding fields");let t=yield*Mp({sourceId:e.id,label:"Google Discovery",version:e.bindingVersion,expectedVersion:sA,schema:tct,value:e.binding,allowedKeys:["service","version","discoveryUrl","defaultHeaders","scopes"]}),r=t.service.trim(),n=t.version.trim();if(r.length===0||n.length===0)return yield*Co("google-discovery/adapter","Google Discovery sources require service and version");let o=typeof t.discoveryUrl=="string"&&t.discoveryUrl.trim().length>0?t.discoveryUrl.trim():null;return{service:r,version:n,discoveryUrl:o??nct(r,n),defaultHeaders:t.defaultHeaders??null,scopes:(t.scopes??[]).map(i=>i.trim()).filter(i=>i.length>0)}}),dge=e=>Yn.gen(function*(){let t=yield*Yst.HttpClient,r=lge.get(e.url).pipe(lge.setHeaders({...e.headers,...e.cookies?{cookie:Object.entries(e.cookies).map(([o,i])=>`${o}=${encodeURIComponent(i)}`).join("; ")}:{}})),n=yield*t.execute(r).pipe(Yn.mapError(o=>o instanceof Error?o:new Error(String(o))));return n.status===401||n.status===403?yield*new E_("import",`Google Discovery fetch requires credentials (status ${n.status})`):n.status<200||n.status>=300?yield*Co("google-discovery/adapter",`Google Discovery fetch failed with status ${n.status}`):yield*n.text.pipe(Yn.mapError(o=>o instanceof Error?o:new Error(String(o))))}).pipe(Yn.provide(Xst.layer)),oct=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},_ge=(e,t)=>{if(e==null)return[];if(Array.isArray(e)){let r=e.flatMap(n=>n==null?[]:[String(n)]);return t?r:[r.join(",")]}return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?[String(e)]:[JSON.stringify(e)]},ict=e=>e.pathTemplate.replaceAll(/\{([^}]+)\}/g,(t,r)=>{let n=e.parameters.find(a=>a.location==="path"&&a.name===r),o=e.args[r];if(o==null&&n?.required)throw new Error(`Missing required path parameter: ${r}`);let i=_ge(o,!1);return i.length===0?"":encodeURIComponent(i[0])}),act=e=>new URL(e.providerData.invocation.servicePath||"",e.providerData.invocation.rootUrl).toString(),sct=e=>{let t={};return e.headers.forEach((r,n)=>{t[n]=r}),t},cct=async e=>{let t=e.headers.get("content-type")?.toLowerCase()??"",r=await e.text();if(r.trim().length===0)return null;if(t.includes("application/json")||t.includes("+json"))try{return JSON.parse(r)}catch{return r}return r},lct=e=>{let t=aV({manifest:e.manifest,definition:e.definition});return{toolId:e.definition.toolId,title:e.definition.name,description:e.definition.description,effect:e.definition.method==="get"||e.definition.method==="head"?"read":e.definition.method==="delete"?"delete":"write",inputSchema:t.inputSchema,outputSchema:t.outputSchema,providerData:t.providerData}},uct=e=>{let t=Object.keys(e.oauthScopes??{});if(t.length===0)return[];let r=new Map;for(let o of t)r.set(o,new Set);for(let o of e.methods)for(let i of o.scopes)r.get(i)?.add(o.methodId);return t.filter(o=>{let i=r.get(o);return!i||i.size===0?!0:!t.some(a=>{if(a===o)return!1;let s=r.get(a);if(!s||s.size<=i.size)return!1;for(let c of i)if(!s.has(c))return!1;return!0})})},pct=e=>Yn.gen(function*(){let t=yield*fh(e),r=t.scopes??[],n=yield*dge({url:t.discoveryUrl,headers:t.defaultHeaders??void 0}).pipe(Yn.flatMap(a=>A1(e.name,a)),Yn.catchAll(()=>Yn.succeed(null))),o=n?uct(n):[],i=o.length>0?[...new Set([...o,...r])]:r;return i.length===0?null:{providerKey:"google_workspace",authorizationEndpoint:"https://accounts.google.com/o/oauth2/v2/auth",tokenEndpoint:"https://oauth2.googleapis.com/token",scopes:i,headerName:"Authorization",prefix:"Bearer ",clientAuthentication:"client_secret_post",authorizationParams:{access_type:"offline",prompt:"consent",include_granted_scopes:"true"}}}),fge={key:"google_discovery",displayName:"Google Discovery",catalogKind:"imported",connectStrategy:"direct",credentialStrategy:"credential_managed",bindingConfigVersion:sA,providerKey:"google_workspace",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:pge,executorAddInputSchema:ect,executorAddHelpText:["service is the Discovery service name, e.g. sheets or drive. version is the API version, e.g. v4 or v3."],executorAddInputSignatureWidth:420,localConfigBindingSchema:rV,localConfigBindingFromSource:e=>Yn.runSync(Yn.map(fh(e),t=>({service:t.service,version:t.version,discoveryUrl:t.discoveryUrl,defaultHeaders:t.defaultHeaders??null,scopes:t.scopes}))),serializeBindingConfig:e=>Lp({adapterKey:"google_discovery",version:sA,payloadSchema:uge,payload:Yn.runSync(fh(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:t})=>Yn.map($p({sourceId:e,label:"Google Discovery",adapterKey:"google_discovery",version:sA,payloadSchema:uge,value:t}),({version:r,payload:n})=>({version:r,payload:{service:n.service,version:n.version,discoveryUrl:n.discoveryUrl,defaultHeaders:n.defaultHeaders??null,scopes:n.scopes??[]}})),bindingStateFromSource:e=>Yn.map(fh(e),t=>({...Rp,defaultHeaders:t.defaultHeaders??null})),sourceConfigFromSource:e=>Yn.runSync(Yn.map(fh(e),t=>({kind:"google_discovery",service:t.service,version:t.version,discoveryUrl:t.discoveryUrl,defaultHeaders:t.defaultHeaders,scopes:t.scopes}))),validateSource:e=>Yn.gen(function*(){let t=yield*fh(e);return{...e,bindingVersion:sA,binding:{service:t.service,version:t.version,discoveryUrl:t.discoveryUrl,defaultHeaders:t.defaultHeaders??null,scopes:[...t.scopes??[]]}}}),shouldAutoProbe:e=>e.enabled&&(e.status==="draft"||e.status==="probing"),discoveryPriority:({normalizedUrl:e})=>e.includes("$discovery/rest")||e.includes("/discovery/v1/apis/")?500:300,detectSource:({normalizedUrl:e,headers:t})=>tV({normalizedUrl:e,headers:t}),syncCatalog:({source:e,resolveAuthMaterialForSlot:t})=>Yn.gen(function*(){let r=yield*fh(e),n=yield*t("import"),o=yield*dge({url:r.discoveryUrl,headers:{...r.defaultHeaders,...n.headers},cookies:n.cookies,queryParams:n.queryParams}).pipe(Yn.mapError(c=>D_(c)?c:new Error(`Failed fetching Google Discovery document for ${e.id}: ${c.message}`))),i=yield*A1(e.name,o),a=YJ(i),s=Date.now();return Fp({fragment:tge({source:e,documents:[{documentKind:"google_discovery",documentKey:r.discoveryUrl,contentText:o,fetchedAt:s}],operations:a.map(c=>lct({manifest:i,definition:c}))}),importMetadata:Is({source:e,adapterKey:"google_discovery"}),sourceHash:i.sourceHash})}),getOauth2SetupConfig:({source:e})=>pct(e),normalizeOauthClientInput:e=>Yn.succeed({...e,redirectMode:e.redirectMode??"loopback"}),invoke:e=>Yn.tryPromise({try:async()=>{let t=Yn.runSync(fh(e.source)),r=xm({executableId:e.executable.id,label:"Google Discovery",version:e.executable.bindingVersion,expectedVersion:Ca,schema:aA,value:e.executable.binding}),n=oct(e.args),o=ict({pathTemplate:r.invocation.path,args:n,parameters:r.invocation.parameters}),i=new URL(o.replace(/^\//,""),act({providerData:r})),a={...t.defaultHeaders};for(let y of r.invocation.parameters){if(y.location==="path")continue;let g=n[y.name];if(g==null&&y.required)throw new Error(`Missing required ${y.location} parameter: ${y.name}`);let S=_ge(g,y.repeated);if(S.length!==0){if(y.location==="query"){for(let b of S)i.searchParams.append(y.name,b);continue}y.location==="header"&&(a[y.name]=y.repeated?S.join(","):S[0])}}let s=gu({url:i,queryParams:e.auth.queryParams}),c=Tc({headers:{...a,...e.auth.headers},cookies:e.auth.cookies}),p,d=Object.keys(e.auth.bodyValues).length>0;r.invocation.requestSchemaId!==null&&(n.body!==void 0||d)&&(p=JSON.stringify(n_({body:n.body!==void 0?n.body:{},bodyValues:e.auth.bodyValues,label:`${r.invocation.method.toUpperCase()} ${r.invocation.path}`})),"content-type"in c||(c["content-type"]="application/json"));let f=await fetch(s.toString(),{method:r.invocation.method.toUpperCase(),headers:c,...p!==void 0?{body:p}:{}}),m=await cct(f);return{data:f.ok?m:null,error:f.ok?null:m,headers:sct(f),status:f.status}},catch:t=>t instanceof Error?t:new Error(String(t))})};import*as bo from"effect/Schema";var mge=bo.Literal("request","field"),hge=bo.Literal("query","mutation"),cA=bo.Struct({kind:bo.Literal("graphql"),toolKind:mge,toolId:bo.String,rawToolId:bo.NullOr(bo.String),group:bo.NullOr(bo.String),leaf:bo.NullOr(bo.String),fieldName:bo.NullOr(bo.String),operationType:bo.NullOr(hge),operationName:bo.NullOr(bo.String),operationDocument:bo.NullOr(bo.String),queryTypeName:bo.NullOr(bo.String),mutationTypeName:bo.NullOr(bo.String),subscriptionTypeName:bo.NullOr(bo.String)});import*as j1e from"effect/Either";import*as Ph from"effect/Effect";var Or=n0(D1e(),1);import*as dgt from"effect/Either";import*as u2 from"effect/Effect";import*as Yu from"effect/Schema";import*as tN from"effect/HashMap";import*as P1e from"effect/Option";var A1e=320;var _gt=["id","identifier","key","slug","name","title","number","url","state","status","success"],fgt=["node","nodes","edge","edges","pageInfo","viewer","user","users","team","teams","project","projects","organization","issue","issues","creator","assignee","items"];var WH=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},mgt=e=>typeof e=="string"&&e.trim().length>0?e:null;var O1e=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1 $2").replace(/[^a-zA-Z0-9]+/g," ").trim().split(/\s+/).filter(t=>t.length>0),N1e=e=>{let t=O1e(e).map(o=>o.toLowerCase());if(t.length===0)return"tool";let[r,...n]=t;return`${r}${n.map(o=>`${o[0]?.toUpperCase()??""}${o.slice(1)}`).join("")}`},Y4=e=>{let t=N1e(e);return`${t[0]?.toUpperCase()??""}${t.slice(1)}`},hgt=e=>O1e(e).map(t=>`${t[0]?.toUpperCase()??""}${t.slice(1)}`).join(" "),eN=(e,t)=>{let r=t?.trim();return r?{...e,description:r}:e},F1e=(e,t)=>t!==void 0?{...e,default:t}:e,QH=(e,t)=>{let r=t?.trim();return r?{...e,deprecated:!0,"x-deprecationReason":r}:e},ygt=e=>{let t;try{t=JSON.parse(e)}catch(o){throw new Error(`GraphQL document is not valid JSON: ${o instanceof Error?o.message:String(o)}`)}let r=WH(t);if(Array.isArray(r.errors)&&r.errors.length>0){let o=r.errors.map(i=>mgt(WH(i).message)).filter(i=>i!==null);throw new Error(o.length>0?`GraphQL introspection returned errors: ${o.join("; ")}`:"GraphQL introspection returned errors")}let n=r.data;if(!n||typeof n!="object"||!("__schema"in n))throw new Error("GraphQL introspection document is missing data.__schema");return n},ggt={type:"object",properties:{query:{type:"string",description:"GraphQL query or mutation document."},variables:{type:"object",description:"Optional GraphQL variables.",additionalProperties:!0},operationName:{type:"string",description:"Optional GraphQL operation name."},headers:{type:"object",description:"Optional per-request headers.",additionalProperties:{type:"string"}}},required:["query"],additionalProperties:!1},Sgt={type:"object",properties:{status:{type:"number"},headers:{type:"object",additionalProperties:{type:"string"}},body:{}},required:["status","headers","body"],additionalProperties:!1},rN=(0,Or.getIntrospectionQuery)({descriptions:!0,inputValueDeprecation:!0,schemaDescription:!0}),vgt=e=>{switch(e){case"String":case"ID":case"Date":case"DateTime":case"DateTimeOrDuration":case"Duration":case"UUID":case"TimelessDate":case"TimelessDateOrDuration":case"URI":return{type:"string"};case"Int":case"Float":return{type:"number"};case"Boolean":return{type:"boolean"};case"JSONObject":return{type:"object",additionalProperties:!0};case"JSONString":return{type:"string"};case"JSON":return{};default:return{}}},bgt=e=>{switch(e){case"String":return"value";case"ID":return"id";case"Date":return"2026-03-08";case"DateTime":case"DateTimeOrDuration":return"2026-03-08T00:00:00.000Z";case"UUID":return"00000000-0000-0000-0000-000000000000";case"TimelessDate":case"TimelessDateOrDuration":return"2026-03-08";case"Duration":return"P1D";case"URI":return"https://example.com";case"Int":return 1;case"Float":return 1.5;case"Boolean":return!0;case"JSONObject":return{};case"JSONString":return"{}";default:return{}}},p2="#/$defs/graphql",xgt=e=>`${p2}/scalars/${e}`,Egt=e=>`${p2}/enums/${e}`,Tgt=e=>`${p2}/input/${e}`,Dgt=(e,t)=>`${p2}/output/${t===0?e:`${e}__depth${t}`}`,Agt=()=>`${p2}/output/GraphqlTypenameOnly`,l2=e=>({$ref:e}),Igt=()=>({type:"object",properties:{__typename:{type:"string"}},required:["__typename"],additionalProperties:!1}),wgt=()=>{let e={},t=new Map,r=(d,f)=>{e[d]=JSON.stringify(f)},n=()=>{let d=Agt();return d in e||r(d,Igt()),l2(d)},o=d=>{let f=xgt(d);return f in e||r(f,vgt(d)),l2(f)},i=(d,f)=>{let m=Egt(d);return m in e||r(m,{type:"string",enum:[...f]}),l2(m)},a=d=>{let f=Tgt(d.name);if(!(f in e)){r(f,{});let m=Object.values(d.getFields()),y=Object.fromEntries(m.map(S=>{let b=s(S.type),E=QH(F1e(eN(b,S.description),S.defaultValue),S.deprecationReason);return[S.name,E]})),g=m.filter(S=>(0,Or.isNonNullType)(S.type)&&S.defaultValue===void 0).map(S=>S.name);r(f,{type:"object",properties:y,...g.length>0?{required:g}:{},additionalProperties:!1})}return l2(f)},s=d=>{if((0,Or.isNonNullType)(d))return s(d.ofType);if((0,Or.isListType)(d))return{type:"array",items:s(d.ofType)};let f=(0,Or.getNamedType)(d);return(0,Or.isScalarType)(f)?o(f.name):(0,Or.isEnumType)(f)?i(f.name,f.getValues().map(m=>m.name)):(0,Or.isInputObjectType)(f)?a(f):{}},c=(d,f)=>{if((0,Or.isScalarType)(d))return{selectionSet:"",schema:o(d.name)};if((0,Or.isEnumType)(d))return{selectionSet:"",schema:i(d.name,d.getValues().map(U=>U.name))};let m=Dgt(d.name,f),y=t.get(m);if(y)return y;if((0,Or.isUnionType)(d)){let U={selectionSet:"{ __typename }",schema:n()};return t.set(m,U),U}if(!(0,Or.isObjectType)(d)&&!(0,Or.isInterfaceType)(d))return{selectionSet:"{ __typename }",schema:n()};let g={selectionSet:"{ __typename }",schema:n()};if(t.set(m,g),f>=2)return g;let S=Object.values(d.getFields()).filter(U=>!U.name.startsWith("__")),b=S.filter(U=>(0,Or.isLeafType)((0,Or.getNamedType)(U.type))),E=S.filter(U=>!(0,Or.isLeafType)((0,Or.getNamedType)(U.type))),I=I1e({fields:b,preferredNames:_gt,limit:3}),T=I1e({fields:E,preferredNames:fgt,limit:2}),k=XH([...I,...T]);if(k.length===0)return g;let F=[],O={},$=[];for(let U of k){let ge=p(U.type,f+1),Te=QH(eN(ge.schema,U.description),U.deprecationReason);O[U.name]=Te,$.push(U.name),F.push(ge.selectionSet.length>0?`${U.name} ${ge.selectionSet}`:U.name)}O.__typename={type:"string"},$.push("__typename"),F.push("__typename"),r(m,{type:"object",properties:O,required:$,additionalProperties:!1});let N={selectionSet:`{ ${F.join(" ")} }`,schema:l2(m)};return t.set(m,N),N},p=(d,f=0)=>{if((0,Or.isNonNullType)(d))return p(d.ofType,f);if((0,Or.isListType)(d)){let m=p(d.ofType,f);return{selectionSet:m.selectionSet,schema:{type:"array",items:m.schema}}}return c((0,Or.getNamedType)(d),f)};return{refTable:e,inputSchemaForType:s,selectedOutputForType:p}},X4=(e,t=0)=>{if((0,Or.isNonNullType)(e))return X4(e.ofType,t);if((0,Or.isListType)(e))return[X4(e.ofType,t+1)];let r=(0,Or.getNamedType)(e);if((0,Or.isScalarType)(r))return bgt(r.name);if((0,Or.isEnumType)(r))return r.getValues()[0]?.name??"VALUE";if((0,Or.isInputObjectType)(r)){if(t>=2)return{};let n=Object.values(r.getFields()),o=n.filter(a=>(0,Or.isNonNullType)(a.type)&&a.defaultValue===void 0),i=o.length>0?o:n.slice(0,1);return Object.fromEntries(i.map(a=>[a.name,a.defaultValue??X4(a.type,t+1)]))}return{}},XH=e=>{let t=new Set,r=[];for(let n of e)t.has(n.name)||(t.add(n.name),r.push(n));return r},I1e=e=>{let t=e.preferredNames.map(r=>e.fields.find(n=>n.name===r)).filter(r=>r!==void 0);return t.length>=e.limit?XH(t).slice(0,e.limit):XH([...t,...e.fields]).slice(0,e.limit)},YH=e=>(0,Or.isNonNullType)(e)?`${YH(e.ofType)}!`:(0,Or.isListType)(e)?`[${YH(e.ofType)}]`:e.name,kgt=(e,t)=>{let r=Object.fromEntries(e.map(o=>{let i=t.inputSchemaForType(o.type),a=QH(F1e(eN(i,o.description),o.defaultValue),o.deprecationReason);return[o.name,a]})),n=e.filter(o=>(0,Or.isNonNullType)(o.type)&&o.defaultValue===void 0).map(o=>o.name);return{type:"object",properties:{...r,headers:{type:"object",description:"Optional per-request headers.",additionalProperties:{type:"string"}}},...n.length>0?{required:n}:{},additionalProperties:!1}},Cgt=(e,t)=>{let r=t.selectedOutputForType(e);return{type:"object",properties:{data:eN(r.schema,"Value returned for the selected GraphQL field."),errors:{type:"array",items:{type:"object",properties:{message:{type:"string",description:"GraphQL error message."},path:{type:"array",description:"Path to the field that produced the error.",items:{anyOf:[{type:"string"},{type:"number"}]}},locations:{type:"array",description:"Source locations for the error in the GraphQL document.",items:{type:"object",properties:{line:{type:"number"},column:{type:"number"}},required:["line","column"],additionalProperties:!1}},extensions:{type:"object",description:"Additional provider-specific GraphQL error metadata.",additionalProperties:!0}},required:["message"],additionalProperties:!0}}},required:["data","errors"],additionalProperties:!1}},Pgt=e=>{if(e.length===0)return{};let t=e.filter(o=>(0,Or.isNonNullType)(o.type)&&o.defaultValue===void 0),r=t.length>0?t:e.slice(0,1);return Object.fromEntries(r.map(o=>[o.name,o.defaultValue??X4(o.type)]))},Ogt=e=>{let t=e.bundleBuilder.selectedOutputForType(e.fieldType),r=`${Y4(e.operationType)}${Y4(e.fieldName)}`,n=e.args.map(s=>`$${s.name}: ${YH(s.type)}`).join(", "),o=e.args.map(s=>`${s.name}: $${s.name}`).join(", "),i=o.length>0?`${e.fieldName}(${o})`:e.fieldName,a=t.selectionSet.length>0?` ${t.selectionSet}`:"";return{operationName:r,operationDocument:`${e.operationType} ${r}${n.length>0?`(${n})`:""} { ${i}${a} }`}},Ngt=e=>{let t=e.description?.trim();return t||`Execute the GraphQL ${e.operationType} field '${e.fieldName}'.`},Fgt=e=>({kind:"request",toolId:"request",rawToolId:"request",toolName:"GraphQL request",description:`Execute a raw GraphQL request against ${e}.`,inputSchema:ggt,outputSchema:Sgt,exampleInput:{query:"query { __typename }"}}),Rgt=e=>{let t=e.map(o=>({...o})),r="request",n=o=>{let i=new Map;for(let a of t){let s=i.get(a.toolId)??[];s.push(a),i.set(a.toolId,s)}for(let[a,s]of i.entries())if(!(s.length<2&&a!==r))for(let c of s)c.toolId=o(c)};return n(o=>`${o.leaf}${Y4(o.operationType)}`),n(o=>`${o.leaf}${Y4(o.operationType)}${Dc(`${o.group}:${o.fieldName}`).slice(0,6)}`),t.sort((o,i)=>o.toolId.localeCompare(i.toolId)||o.fieldName.localeCompare(i.fieldName)||o.operationType.localeCompare(i.operationType)).map(o=>({...o}))},w1e=e=>e.rootType?Object.values(e.rootType.getFields()).filter(t=>!t.name.startsWith("__")).map(t=>{let r=N1e(t.name),n=Cgt(t.type,e.bundleBuilder),o=kgt(t.args,e.bundleBuilder),{operationName:i,operationDocument:a}=Ogt({operationType:e.operationType,fieldName:t.name,args:t.args,fieldType:t.type,bundleBuilder:e.bundleBuilder});return{kind:"field",toolId:r,rawToolId:t.name,toolName:hgt(t.name),description:Ngt({operationType:e.operationType,fieldName:t.name,description:t.description}),group:e.operationType,leaf:r,fieldName:t.name,operationType:e.operationType,operationName:i,operationDocument:a,inputSchema:o,outputSchema:n,exampleInput:Pgt(t.args),searchTerms:[e.operationType,t.name,...t.args.map(s=>s.name),(0,Or.getNamedType)(t.type).name]}}):[],Lgt=e=>Dc(e),R1e=(e,t)=>u2.try({try:()=>{let r=ygt(t),n=(0,Or.buildClientSchema)(r),o=Lgt(t),i=wgt(),a=Rgt([...w1e({rootType:n.getQueryType(),operationType:"query",bundleBuilder:i}),...w1e({rootType:n.getMutationType(),operationType:"mutation",bundleBuilder:i})]);return{version:2,sourceHash:o,queryTypeName:n.getQueryType()?.name??null,mutationTypeName:n.getMutationType()?.name??null,subscriptionTypeName:n.getSubscriptionType()?.name??null,...Object.keys(i.refTable).length>0?{schemaRefTable:i.refTable}:{},tools:[...a,Fgt(e)]}},catch:r=>r instanceof Error?r:new Error(String(r))}),L1e=e=>e.tools.map(t=>({toolId:t.toolId,rawToolId:t.rawToolId,name:t.toolName,description:t.description??`Execute ${t.toolName}.`,group:t.kind==="field"?t.group:null,leaf:t.kind==="field"?t.leaf:null,fieldName:t.kind==="field"?t.fieldName:null,operationType:t.kind==="field"?t.operationType:null,operationName:t.kind==="field"?t.operationName:null,operationDocument:t.kind==="field"?t.operationDocument:null,searchTerms:t.kind==="field"?t.searchTerms:["request","graphql","query","mutation"]})),$gt=e=>{if(!e||Object.keys(e).length===0)return;let t={};for(let[r,n]of Object.entries(e)){if(!r.startsWith("#/$defs/"))continue;let o=typeof n=="string"?(()=>{try{return JSON.parse(n)}catch{return n}})():n,i=r.slice(8).split("/").filter(a=>a.length>0);M1e(t,i,o)}return Object.keys(t).length>0?t:void 0},k1e=e=>{if(e.schema===void 0)return;if(e.defsRoot===void 0)return e.schema;let t=e.cache.get(e.schema);if(t)return t;let r=e.schema.$defs,n=r&&typeof r=="object"&&!Array.isArray(r)?{...e.schema,$defs:{...e.defsRoot,...r}}:{...e.schema,$defs:e.defsRoot};return e.cache.set(e.schema,n),n},C1e=new WeakMap,Mgt=e=>{let t=C1e.get(e);if(t)return t;let r=tN.fromIterable(e.tools.map(s=>[s.toolId,s])),n=$gt(e.schemaRefTable),o=new WeakMap,i=new Map,a={resolve(s){let c=i.get(s.toolId);if(c)return c;let p=P1e.getOrUndefined(tN.get(r,s.toolId)),d=k1e({schema:p?.inputSchema,defsRoot:n,cache:o}),f=k1e({schema:p?.outputSchema,defsRoot:n,cache:o}),m={inputTypePreview:yu(d,"unknown",A1e),outputTypePreview:yu(f,"unknown",A1e),...d!==void 0?{inputSchema:d}:{},...f!==void 0?{outputSchema:f}:{},...p?.exampleInput!==void 0?{exampleInput:p.exampleInput}:{},providerData:{kind:"graphql",toolKind:p?.kind??"request",toolId:s.toolId,rawToolId:s.rawToolId,group:s.group,leaf:s.leaf,fieldName:s.fieldName,operationType:s.operationType,operationName:s.operationName,operationDocument:s.operationDocument,queryTypeName:e.queryTypeName,mutationTypeName:e.mutationTypeName,subscriptionTypeName:e.subscriptionTypeName}};return i.set(s.toolId,m),m}};return C1e.set(e,a),a},$1e=e=>Mgt(e.manifest).resolve(e.definition),Ozt=Yu.decodeUnknownEither(cA),Nzt=Yu.decodeUnknownEither(Yu.parseJson(Yu.Record({key:Yu.String,value:Yu.Unknown}))),M1e=(e,t,r)=>{if(t.length===0)return;let[n,...o]=t;if(!n)return;if(o.length===0){e[n]=r;return}let i=WH(e[n]);e[n]=i,M1e(i,o,r)};var eZ=e=>Ph.gen(function*(){let t=yield*Ph.either(pv({method:"POST",url:e.normalizedUrl,headers:{accept:"application/graphql-response+json, application/json","content-type":"application/json",...e.headers},body:JSON.stringify({query:rN})}));if(j1e.isLeft(t))return null;let r=tse(t.right.text),n=(t.right.headers["content-type"]??"").toLowerCase(),o=Ci(r)&&Ci(r.data)?r.data:null;if(o&&Ci(o.__schema)){let p=Pp(e.normalizedUrl);return{detectedKind:"graphql",confidence:"high",endpoint:e.normalizedUrl,specUrl:null,name:p,namespace:os(p),transport:null,authInference:Op("GraphQL introspection succeeded without an advertised auth requirement","medium"),toolCount:null,warnings:[]}}let a=(Ci(r)&&Array.isArray(r.errors)?r.errors:[]).map(p=>Ci(p)&&typeof p.message=="string"?p.message:null).filter(p=>p!==null);if(!(n.includes("application/graphql-response+json")||ym(e.normalizedUrl)&&t.right.status>=400&&t.right.status<500||a.some(p=>/introspection|graphql|query/i.test(p))))return null;let c=Pp(e.normalizedUrl);return{detectedKind:"graphql",confidence:o?"high":"medium",endpoint:e.normalizedUrl,specUrl:null,name:c,namespace:os(c),transport:null,authInference:t.right.status===401||t.right.status===403?Yae(t.right.headers,"GraphQL endpoint rejected introspection and did not advertise a concrete auth scheme"):Op(a.length>0?`GraphQL endpoint responded with errors during introspection: ${a[0]}`:"GraphQL endpoint shape detected","medium"),toolCount:null,warnings:a.length>0?[a[0]]:[]}}).pipe(Ph.catchAll(()=>Ph.succeed(null)));import*as V1 from"effect/Schema";var tZ=V1.Struct({defaultHeaders:V1.optional(V1.NullOr(Qr))});var B1e=()=>({type:"array",items:{type:"object",properties:{message:{type:"string",description:"GraphQL error message."},path:{type:"array",description:"Path to the field that produced the error.",items:{anyOf:[{type:"string"},{type:"number"}]}},locations:{type:"array",description:"Source locations for the error in the GraphQL document.",items:{type:"object",properties:{line:{type:"number"},column:{type:"number"}},required:["line","column"],additionalProperties:!1}},extensions:{type:"object",description:"Additional provider-specific GraphQL error metadata.",additionalProperties:!0}},required:["message"],additionalProperties:!0}}),jgt=e=>{if(e.toolKind!=="field")return Xs(e.outputSchema);let t=Xs(e.outputSchema),r=Xs(Xs(t.properties).data);return Object.keys(r).length>0?dv(r,e.outputSchema):t},Bgt=e=>{if(e.toolKind!=="field")return B1e();let t=Xs(e.outputSchema),r=Xs(Xs(t.properties).errors);return Object.keys(r).length>0?dv(r,e.outputSchema):B1e()},qgt=e=>{let t=g_(e.source,e.operation.providerData.toolId),r=Oc.make(`cap_${hn({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),n=Qs.make(`exec_${hn({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"graphql"})}`),o=e.operation.inputSchema!==void 0?e.importer.importSchema(e.operation.inputSchema,`#/graphql/${e.operation.providerData.toolId}/call`):e.importer.importSchema({type:"object",additionalProperties:!0},`#/graphql/${e.operation.providerData.toolId}/call`),i=e.operation.outputSchema!==void 0?e.importer.importSchema(jgt({toolKind:e.operation.providerData.toolKind,outputSchema:e.operation.outputSchema}),`#/graphql/${e.operation.providerData.toolId}/data`):e.importer.importSchema({type:"object",additionalProperties:!0},`#/graphql/${e.operation.providerData.toolId}/data`),a=e.importer.importSchema(Bgt({toolKind:e.operation.providerData.toolKind,outputSchema:e.operation.outputSchema}),`#/graphql/${e.operation.providerData.toolId}/errors`),s=Nc.make(`response_${hn({capabilityId:r})}`);Vr(e.catalog.symbols)[s]={id:s,kind:"response",...In({description:e.operation.description})?{docs:In({description:e.operation.description})}:{},contents:[{mediaType:"application/json",shapeId:i}],synthetic:!1,provenance:pn(e.documentId,`#/graphql/${e.operation.providerData.toolId}/response`)};let c=v_({catalog:e.catalog,responseId:s,provenance:pn(e.documentId,`#/graphql/${e.operation.providerData.toolId}/responseSet`)});Vr(e.catalog.executables)[n]={id:n,capabilityId:r,scopeId:e.serviceScopeId,adapterKey:"graphql",bindingVersion:Ca,binding:e.operation.providerData,projection:{responseSetId:c,callShapeId:o,resultDataShapeId:i,resultErrorShapeId:a},display:{protocol:"graphql",method:e.operation.providerData.operationType??"query",pathTemplate:e.operation.providerData.fieldName??e.operation.providerData.leaf??e.operation.providerData.toolId,operationId:e.operation.providerData.fieldName??e.operation.providerData.leaf??e.operation.providerData.toolId,group:e.operation.providerData.group,leaf:e.operation.providerData.leaf,rawToolId:e.operation.providerData.toolId,title:e.operation.title??null,summary:e.operation.description??null},synthetic:!1,provenance:pn(e.documentId,`#/graphql/${e.operation.providerData.toolId}/executable`)};let p=e.operation.effect;Vr(e.catalog.capabilities)[r]={id:r,serviceScopeId:e.serviceScopeId,surface:{toolPath:t,...e.operation.title?{title:e.operation.title}:{},...e.operation.description?{summary:e.operation.description}:{},...e.operation.providerData.group?{tags:[e.operation.providerData.group]}:{}},semantics:{effect:p,safe:p==="read",idempotent:p==="read",destructive:!1},auth:{kind:"none"},interaction:S_(p),executableIds:[n],synthetic:!1,provenance:pn(e.documentId,`#/graphql/${e.operation.providerData.toolId}/capability`)}},q1e=e=>b_({source:e.source,documents:e.documents,resourceDialectUri:"https://spec.graphql.org/",registerOperations:({catalog:t,documentId:r,serviceScopeId:n,importer:o})=>{for(let i of e.operations)qgt({catalog:t,source:e.source,documentId:r,serviceScopeId:n,operation:i,importer:o})}});import*as Bn from"effect/Effect";import*as Li from"effect/Schema";var Ugt=Li.extend(B6,Li.extend(bm,Li.Struct({kind:Li.Literal("graphql"),auth:Li.optional(T_)}))),zgt=Li.extend(bm,Li.Struct({kind:Li.Literal("graphql"),endpoint:Li.String,name:Ho,namespace:Ho,auth:Li.optional(T_)})),U1e=Li.Struct({defaultHeaders:Li.NullOr(Qr)}),Jgt=Li.Struct({defaultHeaders:Li.optional(Li.NullOr(Qr))}),d2=1,z1e=15e3,J1e=(e,t)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&t.some(r=>Object.prototype.hasOwnProperty.call(e,r)),dS=e=>Bn.gen(function*(){return J1e(e.binding,["transport","queryParams","headers"])?yield*Co("graphql/adapter","GraphQL sources cannot define MCP transport settings"):J1e(e.binding,["specUrl"])?yield*Co("graphql/adapter","GraphQL sources cannot define specUrl"):{defaultHeaders:(yield*Mp({sourceId:e.id,label:"GraphQL",version:e.bindingVersion,expectedVersion:d2,schema:Jgt,value:e.binding,allowedKeys:["defaultHeaders"]})).defaultHeaders??null}}),Vgt=e=>Bn.tryPromise({try:async()=>{let t;try{t=await fetch(gu({url:e.url,queryParams:e.queryParams}).toString(),{method:"POST",headers:Tc({headers:{"content-type":"application/json",...e.headers},cookies:e.cookies}),body:JSON.stringify(n_({body:{query:rN,operationName:"IntrospectionQuery"},bodyValues:e.bodyValues,label:`GraphQL introspection ${e.url}`})),signal:AbortSignal.timeout(z1e)})}catch(o){throw o instanceof Error&&(o.name==="AbortError"||o.name==="TimeoutError")?new Error(`GraphQL introspection timed out after ${z1e}ms`):o}let r=await t.text(),n;try{n=JSON.parse(r)}catch(o){throw new Error(`GraphQL introspection endpoint did not return JSON: ${o instanceof Error?o.message:String(o)}`)}if(!t.ok)throw t.status===401||t.status===403?new E_("import",`GraphQL introspection requires credentials (status ${t.status})`):new Error(`GraphQL introspection failed with status ${t.status}`);return JSON.stringify(n,null,2)},catch:t=>t instanceof Error?t:new Error(String(t))}),Kgt=e=>{let t=$1e({manifest:e.manifest,definition:e.definition});return{toolId:e.definition.toolId,title:e.definition.name,description:e.definition.description,effect:e.definition.operationType==="query"?"read":"write",inputSchema:t.inputSchema,outputSchema:t.outputSchema,providerData:t.providerData}},_2=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},V1e=e=>typeof e=="string"&&e.trim().length>0?e:null,Ggt=e=>Object.fromEntries(Object.entries(_2(e)).flatMap(([t,r])=>typeof r=="string"?[[t,r]]:[])),Hgt=e=>{let t={};return e.headers.forEach((r,n)=>{t[n]=r}),t},Zgt=async e=>(e.headers.get("content-type")?.toLowerCase()??"").includes("application/json")?e.json():e.text(),Wgt=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0)),K1e={key:"graphql",displayName:"GraphQL",catalogKind:"imported",connectStrategy:"direct",credentialStrategy:"credential_managed",bindingConfigVersion:d2,providerKey:"generic_graphql",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:Ugt,executorAddInputSchema:zgt,executorAddHelpText:["endpoint is the GraphQL HTTP endpoint."],executorAddInputSignatureWidth:320,localConfigBindingSchema:tZ,localConfigBindingFromSource:e=>Bn.runSync(Bn.map(dS(e),t=>({defaultHeaders:t.defaultHeaders}))),serializeBindingConfig:e=>Lp({adapterKey:"graphql",version:d2,payloadSchema:U1e,payload:Bn.runSync(dS(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:t})=>Bn.map($p({sourceId:e,label:"GraphQL",adapterKey:"graphql",version:d2,payloadSchema:U1e,value:t}),({version:r,payload:n})=>({version:r,payload:n})),bindingStateFromSource:e=>Bn.map(dS(e),t=>({...Rp,defaultHeaders:t.defaultHeaders})),sourceConfigFromSource:e=>Bn.runSync(Bn.map(dS(e),t=>({kind:"graphql",endpoint:e.endpoint,defaultHeaders:t.defaultHeaders}))),validateSource:e=>Bn.gen(function*(){let t=yield*dS(e);return{...e,bindingVersion:d2,binding:{defaultHeaders:t.defaultHeaders}}}),shouldAutoProbe:e=>e.enabled&&(e.status==="draft"||e.status==="probing"),discoveryPriority:({normalizedUrl:e})=>ym(e)?400:150,detectSource:({normalizedUrl:e,headers:t})=>eZ({normalizedUrl:e,headers:t}),syncCatalog:({source:e,resolveAuthMaterialForSlot:t})=>Bn.gen(function*(){let r=yield*dS(e),n=yield*t("import"),o=yield*Vgt({url:e.endpoint,headers:{...r.defaultHeaders,...n.headers},queryParams:n.queryParams,cookies:n.cookies,bodyValues:n.bodyValues}).pipe(Bn.withSpan("graphql.introspection.fetch",{kind:"client",attributes:{"executor.source.id":e.id,"executor.source.endpoint":e.endpoint}}),Bn.mapError(d=>D_(d)?d:new Error(`Failed fetching GraphQL introspection for ${e.id}: ${d.message}`))),i=yield*R1e(e.name,o).pipe(Bn.withSpan("graphql.manifest.extract",{attributes:{"executor.source.id":e.id}}),Bn.mapError(d=>d instanceof Error?d:new Error(String(d))));yield*Bn.annotateCurrentSpan("graphql.tool.count",i.tools.length);let a=yield*Bn.sync(()=>L1e(i)).pipe(Bn.withSpan("graphql.definitions.compile",{attributes:{"executor.source.id":e.id,"graphql.tool.count":i.tools.length}}));yield*Bn.annotateCurrentSpan("graphql.definition.count",a.length);let s=yield*Bn.sync(()=>a.map(d=>Kgt({definition:d,manifest:i}))).pipe(Bn.withSpan("graphql.operations.build",{attributes:{"executor.source.id":e.id,"graphql.definition.count":a.length}})),c=Date.now(),p=yield*Bn.sync(()=>q1e({source:e,documents:[{documentKind:"graphql_introspection",documentKey:e.endpoint,contentText:o,fetchedAt:c}],operations:s})).pipe(Bn.withSpan("graphql.snapshot.build",{attributes:{"executor.source.id":e.id,"graphql.operation.count":s.length}}));return Fp({fragment:p,importMetadata:Is({source:e,adapterKey:"graphql"}),sourceHash:i.sourceHash})}).pipe(Bn.withSpan("graphql.syncCatalog",{attributes:{"executor.source.id":e.id,"executor.source.endpoint":e.endpoint}})),invoke:e=>Bn.tryPromise({try:async()=>{let t=Bn.runSync(dS(e.source)),r=xm({executableId:e.executable.id,label:"GraphQL",version:e.executable.bindingVersion,expectedVersion:Ca,schema:cA,value:e.executable.binding}),n=_2(e.args),o=Tc({headers:{"content-type":"application/json",...t.defaultHeaders,...e.auth.headers,...Ggt(n.headers)},cookies:e.auth.cookies}),i=gu({url:e.source.endpoint,queryParams:e.auth.queryParams}).toString(),a=r.toolKind==="request"||typeof r.operationDocument!="string"||r.operationDocument.trim().length===0,s=a?(()=>{let b=V1e(n.query);if(b===null)throw new Error("GraphQL request tools require args.query");return b})():r.operationDocument,c=a?n.variables!==void 0?_2(n.variables):void 0:Wgt(Object.fromEntries(Object.entries(n).filter(([b])=>b!=="headers"))),p=a?V1e(n.operationName)??void 0:r.operationName??void 0,d=await fetch(i,{method:"POST",headers:o,body:JSON.stringify({query:s,...c?{variables:c}:{},...p?{operationName:p}:{}})}),f=await Zgt(d),m=_2(f),y=Array.isArray(m.errors)?m.errors:[],g=r.fieldName??r.leaf??r.toolId,S=_2(m.data);return{data:a?f:S[g]??null,error:y.length>0?y:d.status>=400?f:null,headers:Hgt(d),status:d.status}},catch:t=>t instanceof Error?t:new Error(String(t))})};var REe=n0(FEe(),1),Tbt=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Dbt=e=>JSON.parse(e),Abt=e=>(0,REe.parse)(e),Ibt=e=>{try{return Dbt(e)}catch{return Abt(e)}},V2=e=>{let t=e.trim();if(t.length===0)throw new Error("OpenAPI document is empty");try{let r=Ibt(t);if(!Tbt(r))throw new Error("OpenAPI document must parse to an object");return r}catch(r){throw new Error(`Unable to parse OpenAPI document as JSON or YAML: ${r instanceof Error?r.message:String(r)}`)}};import*as nTe from"effect/Data";import*as np from"effect/Effect";import{pipe as jbt}from"effect/Function";import*as iF from"effect/ParseResult";import*as aF from"effect/Schema";function $Ee(e,t){let r,n;try{let a=LEe(e,Ms.__wbindgen_malloc,Ms.__wbindgen_realloc),s=tF,c=LEe(t,Ms.__wbindgen_malloc,Ms.__wbindgen_realloc),p=tF,d=Ms.extract_manifest_json_wasm(a,s,c,p);var o=d[0],i=d[1];if(d[3])throw o=0,i=0,kbt(d[2]);return r=o,n=i,MEe(o,i)}finally{Ms.__wbindgen_free(r,n,1)}}function wbt(){return{__proto__:null,"./openapi_extractor_bg.js":{__proto__:null,__wbindgen_cast_0000000000000001:function(t,r){return MEe(t,r)},__wbindgen_init_externref_table:function(){let t=Ms.__wbindgen_externrefs,r=t.grow(4);t.set(0,void 0),t.set(r+0,void 0),t.set(r+1,null),t.set(r+2,!0),t.set(r+3,!1)}}}}function MEe(e,t){return e=e>>>0,Pbt(e,t)}var K2=null;function YN(){return(K2===null||K2.byteLength===0)&&(K2=new Uint8Array(Ms.memory.buffer)),K2}function LEe(e,t,r){if(r===void 0){let s=G2.encode(e),c=t(s.length,1)>>>0;return YN().subarray(c,c+s.length).set(s),tF=s.length,c}let n=e.length,o=t(n,1)>>>0,i=YN(),a=0;for(;a127)break;i[o+a]=s}if(a!==n){a!==0&&(e=e.slice(a)),o=r(o,n,n=a+e.length*3,1)>>>0;let s=YN().subarray(o+a,o+n),c=G2.encodeInto(e,s);a+=c.written,o=r(o,n,a,1)>>>0}return tF=a,o}function kbt(e){let t=Ms.__wbindgen_externrefs.get(e);return Ms.__externref_table_dealloc(e),t}var eF=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});eF.decode();var Cbt=2146435072,LW=0;function Pbt(e,t){return LW+=t,LW>=Cbt&&(eF=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),eF.decode(),LW=t),eF.decode(YN().subarray(e,e+t))}var G2=new TextEncoder;"encodeInto"in G2||(G2.encodeInto=function(e,t){let r=G2.encode(e);return t.set(r),{read:e.length,written:r.length}});var tF=0,Obt,Ms;function Nbt(e,t){return Ms=e.exports,Obt=t,K2=null,Ms.__wbindgen_start(),Ms}async function Fbt(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(o){if(e.ok&&r(e.type)&&e.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",o);else throw o}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}function r(n){switch(n){case"basic":case"cors":case"default":return!0}return!1}}async function $W(e){if(Ms!==void 0)return Ms;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),e===void 0&&(e=new URL("openapi_extractor_bg.wasm",import.meta.url));let t=wbt();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:r,module:n}=await Fbt(await e,t);return Nbt(r,n)}var rF,BEe=new URL("./openapi-extractor-wasm/openapi_extractor_bg.wasm",import.meta.url),jEe=e=>e instanceof Error?e.message:String(e),Rbt=async()=>{await $W({module_or_path:BEe})},Lbt=async()=>{let[{readFile:e},{fileURLToPath:t}]=await Promise.all([import("node:fs/promises"),import("node:url")]),r=t(BEe),n=await e(r);await $W({module_or_path:n})},$bt=()=>(rF||(rF=(async()=>{let e;try{await Rbt();return}catch(t){e=t}try{await Lbt();return}catch(t){throw new Error(["Unable to initialize OpenAPI extractor wasm.",`runtime-url failed: ${jEe(e)}`,`node-fs fallback failed: ${jEe(t)}`].join(" "))}})().catch(e=>{throw rF=void 0,e})),rF),qEe=(e,t)=>$bt().then(()=>$Ee(e,t));import{Schema as Z}from"effect";var UEe=["get","put","post","delete","patch","head","options","trace"],zEe=["path","query","header","cookie"],nb=Z.Literal(...UEe),MW=Z.Literal(...zEe),JEe=Z.Struct({name:Z.String,location:MW,required:Z.Boolean,style:Z.optional(Z.String),explode:Z.optional(Z.Boolean),allowReserved:Z.optional(Z.Boolean),content:Z.optional(Z.Array(Z.suspend(()=>H2)))}),H2=Z.Struct({mediaType:Z.String,schema:Z.optional(Z.Unknown),examples:Z.optional(Z.Array(Z.suspend(()=>vS)))}),VEe=Z.Struct({name:Z.String,description:Z.optional(Z.String),required:Z.optional(Z.Boolean),deprecated:Z.optional(Z.Boolean),schema:Z.optional(Z.Unknown),content:Z.optional(Z.Array(H2)),style:Z.optional(Z.String),explode:Z.optional(Z.Boolean),examples:Z.optional(Z.Array(Z.suspend(()=>vS)))}),KEe=Z.Struct({required:Z.Boolean,contentTypes:Z.Array(Z.String),contents:Z.optional(Z.Array(H2))}),Uh=Z.Struct({url:Z.String,description:Z.optional(Z.String),variables:Z.optional(Z.Record({key:Z.String,value:Z.String}))}),Z2=Z.Struct({method:nb,pathTemplate:Z.String,parameters:Z.Array(JEe),requestBody:Z.NullOr(KEe)}),nF=Z.Struct({inputSchema:Z.optional(Z.Unknown),outputSchema:Z.optional(Z.Unknown),refHintKeys:Z.optional(Z.Array(Z.String))}),GEe=Z.Union(Z.String,Z.Record({key:Z.String,value:Z.Unknown})),Mbt=Z.Record({key:Z.String,value:GEe}),vS=Z.Struct({valueJson:Z.String,mediaType:Z.optional(Z.String),label:Z.optional(Z.String)}),HEe=Z.Struct({name:Z.String,location:MW,required:Z.Boolean,description:Z.optional(Z.String),examples:Z.optional(Z.Array(vS))}),ZEe=Z.Struct({description:Z.optional(Z.String),examples:Z.optional(Z.Array(vS))}),WEe=Z.Struct({statusCode:Z.String,description:Z.optional(Z.String),contentTypes:Z.Array(Z.String),examples:Z.optional(Z.Array(vS))}),W2=Z.Struct({statusCode:Z.String,description:Z.optional(Z.String),contentTypes:Z.Array(Z.String),schema:Z.optional(Z.Unknown),examples:Z.optional(Z.Array(vS)),contents:Z.optional(Z.Array(H2)),headers:Z.optional(Z.Array(VEe))}),Q2=Z.Struct({summary:Z.optional(Z.String),deprecated:Z.optional(Z.Boolean),parameters:Z.Array(HEe),requestBody:Z.optional(ZEe),response:Z.optional(WEe)}),SS=Z.suspend(()=>Z.Union(Z.Struct({kind:Z.Literal("none")}),Z.Struct({kind:Z.Literal("scheme"),schemeName:Z.String,scopes:Z.optional(Z.Array(Z.String))}),Z.Struct({kind:Z.Literal("allOf"),items:Z.Array(SS)}),Z.Struct({kind:Z.Literal("anyOf"),items:Z.Array(SS)}))),QEe=Z.Literal("apiKey","http","oauth2","openIdConnect"),XEe=Z.Struct({authorizationUrl:Z.optional(Z.String),tokenUrl:Z.optional(Z.String),refreshUrl:Z.optional(Z.String),scopes:Z.optional(Z.Record({key:Z.String,value:Z.String}))}),X2=Z.Struct({schemeName:Z.String,schemeType:QEe,description:Z.optional(Z.String),placementIn:Z.optional(Z.Literal("header","query","cookie")),placementName:Z.optional(Z.String),scheme:Z.optional(Z.String),bearerFormat:Z.optional(Z.String),openIdConnectUrl:Z.optional(Z.String),flows:Z.optional(Z.Record({key:Z.String,value:XEe}))}),jW=Z.Struct({kind:Z.Literal("openapi"),toolId:Z.String,rawToolId:Z.String,operationId:Z.optional(Z.String),group:Z.String,leaf:Z.String,tags:Z.Array(Z.String),versionSegment:Z.optional(Z.String),method:nb,path:Z.String,operationHash:Z.String,invocation:Z2,documentation:Z.optional(Q2),responses:Z.optional(Z.Array(W2)),authRequirement:Z.optional(SS),securitySchemes:Z.optional(Z.Array(X2)),documentServers:Z.optional(Z.Array(Uh)),servers:Z.optional(Z.Array(Uh))}),YEe=Z.Struct({toolId:Z.String,operationId:Z.optional(Z.String),tags:Z.Array(Z.String),name:Z.String,description:Z.NullOr(Z.String),method:nb,path:Z.String,invocation:Z2,operationHash:Z.String,typing:Z.optional(nF),documentation:Z.optional(Q2),responses:Z.optional(Z.Array(W2)),authRequirement:Z.optional(SS),securitySchemes:Z.optional(Z.Array(X2)),documentServers:Z.optional(Z.Array(Uh)),servers:Z.optional(Z.Array(Uh))}),BW=Z.Struct({version:Z.Literal(2),sourceHash:Z.String,tools:Z.Array(YEe),refHintTable:Z.optional(Z.Record({key:Z.String,value:Z.String}))});var ob=class extends nTe.TaggedError("OpenApiExtractionError"){},Bbt=aF.parseJson(BW),qbt=aF.decodeUnknown(Bbt),qW=(e,t,r)=>r instanceof ob?r:new ob({sourceName:e,stage:t,message:"OpenAPI extraction failed",details:iF.isParseError(r)?iF.TreeFormatter.formatErrorSync(r):String(r)}),Ubt=(e,t)=>typeof t=="string"?np.succeed(t):np.try({try:()=>JSON.stringify(t),catch:r=>new ob({sourceName:e,stage:"validate",message:"Unable to serialize OpenAPI input",details:String(r)})}),Nn=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{},Y2=e=>Array.isArray(e)?e:[],On=e=>typeof e=="string"&&e.trim().length>0?e.trim():void 0,UW=e=>Array.isArray(e)?e.map(t=>UW(t)):e!==null&&typeof e=="object"?Object.fromEntries(Object.entries(e).sort(([t],[r])=>t.localeCompare(r)).map(([t,r])=>[t,UW(r)])):e,zW=e=>JSON.stringify(UW(e)),yf=(e,t)=>{if(Array.isArray(e)){for(let n of e)yf(n,t);return}if(e===null||typeof e!="object")return;let r=e;typeof r.$ref=="string"&&r.$ref.startsWith("#/")&&t.add(r.$ref);for(let n of Object.values(r))yf(n,t)},zbt=e=>e.replaceAll("~1","/").replaceAll("~0","~"),rp=(e,t,r=new Set)=>{let n=Nn(t),o=typeof n.$ref=="string"?n.$ref:null;if(!o||!o.startsWith("#/")||r.has(o))return t;let i=o.slice(2).split("/").reduce((d,f)=>{if(d!=null)return Nn(d)[zbt(f)]},e);if(i===void 0)return t;let a=new Set(r);a.add(o);let s=Nn(rp(e,i,a)),{$ref:c,...p}=n;return Object.keys(p).length>0?{...s,...p}:s},eTe=e=>/^2\d\d$/.test(e)?0:e==="default"?1:2,oTe=e=>{let t=Object.entries(Nn(e)).sort(([r],[n])=>r.localeCompare(n)).map(([r,n])=>[r,Nn(n)]);return t.find(([r])=>r==="application/json")??t.find(([r])=>r.toLowerCase().includes("+json"))??t.find(([r])=>r.toLowerCase().includes("json"))??t[0]},oF=e=>oTe(e)?.[1].schema,sF=(e,t)=>Object.entries(Nn(t)).sort(([n],[o])=>n.localeCompare(o)).map(([n,o])=>{let i=Nn(rp(e,o)),a=iTe(n,i);return{mediaType:n,...i.schema!==void 0?{schema:i.schema}:{},...a.length>0?{examples:a}:{}}}),KW=(e,t={})=>{let r=Nn(e),n=[];r.example!==void 0&&n.push({valueJson:zW(r.example),...t.mediaType?{mediaType:t.mediaType}:{},...t.label?{label:t.label}:{}});let o=Object.entries(Nn(r.examples)).sort(([i],[a])=>i.localeCompare(a));for(let[i,a]of o){let s=Nn(a);n.push({valueJson:zW(s.value!==void 0?s.value:a),...t.mediaType?{mediaType:t.mediaType}:{},label:i})}return n},Jbt=e=>KW(e),iTe=(e,t)=>{let r=KW(t,{mediaType:e});return r.length>0?r:Jbt(t.schema).map(n=>({...n,mediaType:e}))},Vbt=(e,t,r)=>{let n=Nn(rp(e,r));if(Object.keys(n).length===0)return;let o=sF(e,n.content),i=o.length>0?[]:KW(n);return{name:t,...On(n.description)?{description:On(n.description)}:{},...typeof n.required=="boolean"?{required:n.required}:{},...typeof n.deprecated=="boolean"?{deprecated:n.deprecated}:{},...n.schema!==void 0?{schema:n.schema}:{},...o.length>0?{content:o}:{},...On(n.style)?{style:On(n.style)}:{},...typeof n.explode=="boolean"?{explode:n.explode}:{},...i.length>0?{examples:i}:{}}},Kbt=(e,t)=>Object.entries(Nn(t)).sort(([r],[n])=>r.localeCompare(n)).flatMap(([r,n])=>{let o=Vbt(e,r,n);return o?[o]:[]}),JW=e=>Y2(e).map(t=>Nn(t)).flatMap(t=>{let r=On(t.url);if(!r)return[];let n=Object.fromEntries(Object.entries(Nn(t.variables)).sort(([o],[i])=>o.localeCompare(i)).flatMap(([o,i])=>{let a=Nn(i),s=On(a.default);return s?[[o,s]]:[]}));return[{url:r,...On(t.description)?{description:On(t.description)}:{},...Object.keys(n).length>0?{variables:n}:{}}]}),aTe=(e,t)=>Nn(Nn(e.paths)[t.path]),VW=e=>`${e.location}:${e.name}`,Gbt=(e,t)=>{let r=new Map,n=aTe(e,t),o=bS(e,t);for(let i of Y2(n.parameters)){let a=Nn(rp(e,i)),s=On(a.name),c=On(a.in);!s||!c||r.set(VW({location:c,name:s}),a)}for(let i of Y2(o.parameters)){let a=Nn(rp(e,i)),s=On(a.name),c=On(a.in);!s||!c||r.set(VW({location:c,name:s}),a)}return r},bS=(e,t)=>Nn(Nn(Nn(e.paths)[t.path])[t.method]),Hbt=(e,t)=>{let r=bS(e,t);if(Object.keys(r).length===0)return;let n=rp(e,r.requestBody);return oF(Nn(n).content)},Zbt=(e,t)=>{let r=bS(e,t);if(Object.keys(r).length===0)return t.invocation.requestBody;let n=Nn(rp(e,r.requestBody));if(Object.keys(n).length===0)return t.invocation.requestBody;let o=sF(e,n.content),i=o.map(a=>a.mediaType);return{required:typeof n.required=="boolean"?n.required:t.invocation.requestBody?.required??!1,contentTypes:i,...o.length>0?{contents:o}:{}}},Wbt=(e,t)=>{let r=bS(e,t);if(Object.keys(r).length===0)return;let n=Object.entries(Nn(r.responses)),o=n.filter(([a])=>/^2\d\d$/.test(a)).sort(([a],[s])=>a.localeCompare(s)),i=n.filter(([a])=>a==="default");for(let[,a]of[...o,...i]){let s=rp(e,a),c=oF(Nn(s).content);if(c!==void 0)return c}},Qbt=(e,t)=>{let r=bS(e,t);if(Object.keys(r).length===0)return;let o=Object.entries(Nn(r.responses)).sort(([i],[a])=>eTe(i)-eTe(a)||i.localeCompare(a)).map(([i,a])=>{let s=Nn(rp(e,a)),c=sF(e,s.content),p=c.map(y=>y.mediaType),d=oTe(s.content),f=d?iTe(d[0],d[1]):[],m=Kbt(e,s.headers);return{statusCode:i,...On(s.description)?{description:On(s.description)}:{},contentTypes:p,...oF(s.content)!==void 0?{schema:oF(s.content)}:{},...f.length>0?{examples:f}:{},...c.length>0?{contents:c}:{},...m.length>0?{headers:m}:{}}});return o.length>0?o:void 0},Xbt=e=>{let t=JW(e.servers);return t.length>0?t:void 0},Ybt=(e,t)=>{let r=bS(e,t);if(Object.keys(r).length===0)return;let n=JW(r.servers);if(n.length>0)return n;let o=JW(aTe(e,t).servers);return o.length>0?o:void 0},tTe=e=>{let t=Y2(e);if(t.length===0)return{kind:"none"};let r=t.flatMap(n=>{let o=Object.entries(Nn(n)).sort(([i],[a])=>i.localeCompare(a)).map(([i,a])=>{let s=Y2(a).flatMap(c=>typeof c=="string"&&c.trim().length>0?[c.trim()]:[]);return{kind:"scheme",schemeName:i,...s.length>0?{scopes:s}:{}}});return o.length===0?[]:[o.length===1?o[0]:{kind:"allOf",items:o}]});if(r.length!==0)return r.length===1?r[0]:{kind:"anyOf",items:r}},ext=(e,t)=>{let r=bS(e,t);if(Object.keys(r).length!==0)return Object.prototype.hasOwnProperty.call(r,"security")?tTe(r.security):tTe(e.security)},sTe=(e,t)=>{if(e)switch(e.kind){case"none":return;case"scheme":t.add(e.schemeName);return;case"allOf":case"anyOf":for(let r of e.items)sTe(r,t)}},rTe=e=>{let t=Object.fromEntries(Object.entries(Nn(e)).sort(([r],[n])=>r.localeCompare(n)).map(([r,n])=>{let o=Nn(n),i=Object.fromEntries(Object.entries(Nn(o.scopes)).sort(([a],[s])=>a.localeCompare(s)).map(([a,s])=>[a,On(s)??""]));return[r,{...On(o.authorizationUrl)?{authorizationUrl:On(o.authorizationUrl)}:{},...On(o.tokenUrl)?{tokenUrl:On(o.tokenUrl)}:{},...On(o.refreshUrl)?{refreshUrl:On(o.refreshUrl)}:{},...Object.keys(i).length>0?{scopes:i}:{}}]}));return Object.keys(t).length>0?t:void 0},txt=(e,t)=>{if(!t||t.kind==="none")return;let r=new Set;sTe(t,r);let n=Nn(Nn(e.components).securitySchemes),o=[...r].sort((i,a)=>i.localeCompare(a)).flatMap(i=>{let a=n[i];if(a===void 0)return[];let s=Nn(rp(e,a)),c=On(s.type);if(!c)return[];let p=c==="apiKey"||c==="http"||c==="oauth2"||c==="openIdConnect"?c:"http",d=On(s.in),f=d==="header"||d==="query"||d==="cookie"?d:void 0;return[{schemeName:i,schemeType:p,...On(s.description)?{description:On(s.description)}:{},...f?{placementIn:f}:{},...On(s.name)?{placementName:On(s.name)}:{},...On(s.scheme)?{scheme:On(s.scheme)}:{},...On(s.bearerFormat)?{bearerFormat:On(s.bearerFormat)}:{},...On(s.openIdConnectUrl)?{openIdConnectUrl:On(s.openIdConnectUrl)}:{},...rTe(s.flows)?{flows:rTe(s.flows)}:{}}]});return o.length>0?o:void 0},rxt=(e,t,r)=>{let n={...t.refHintTable},o=[...r].sort((a,s)=>a.localeCompare(s)),i=new Set(Object.keys(n));for(;o.length>0;){let a=o.shift();if(i.has(a))continue;i.add(a);let s=rp(e,{$ref:a});n[a]=zW(s);let c=new Set;yf(s,c);for(let p of[...c].sort((d,f)=>d.localeCompare(f)))i.has(p)||o.push(p)}return Object.keys(n).length>0?n:void 0},nxt=(e,t)=>{let r=new Set,n=Xbt(e),o=t.tools.map(i=>{let a=Gbt(e,i),s=i.invocation.parameters.map(S=>{let b=a.get(VW({location:S.location,name:S.name})),E=sF(e,b?.content);return{...S,...On(b?.style)?{style:On(b?.style)}:{},...typeof b?.explode=="boolean"?{explode:b.explode}:{},...typeof b?.allowReserved=="boolean"?{allowReserved:b.allowReserved}:{},...E.length>0?{content:E}:{}}}),c=Zbt(e,i),p=i.typing?.inputSchema??Hbt(e,i),d=i.typing?.outputSchema??Wbt(e,i),f=Qbt(e,i),m=ext(e,i),y=txt(e,m),g=Ybt(e,i);for(let S of s)for(let b of S.content??[])yf(b.schema,r);for(let S of c?.contents??[])yf(S.schema,r);for(let S of f??[]){yf(S.schema,r);for(let b of S.contents??[])yf(b.schema,r);for(let b of S.headers??[]){yf(b.schema,r);for(let E of b.content??[])yf(E.schema,r)}}return{...i,invocation:{...i.invocation,parameters:s,requestBody:c},...p!==void 0||d!==void 0?{typing:{...i.typing,...p!==void 0?{inputSchema:p}:{},...d!==void 0?{outputSchema:d}:{}}}:{},...f?{responses:f}:{},...m?{authRequirement:m}:{},...y?{securitySchemes:y}:{},...n?{documentServers:n}:{},...g?{servers:g}:{}}});return{...t,tools:o,refHintTable:rxt(e,t,r)}},ib=(e,t)=>np.gen(function*(){let r=yield*Ubt(e,t),n=yield*np.tryPromise({try:()=>qEe(e,r),catch:a=>qW(e,"extract",a)}),o=yield*jbt(qbt(n),np.mapError(a=>qW(e,"extract",a))),i=yield*np.try({try:()=>V2(r),catch:a=>qW(e,"validate",a)});return nxt(i,o)});import*as eI from"effect/Either";import*as Xl from"effect/Effect";var oxt=(e,t)=>{if(!t.startsWith("#/"))return;let r=e;for(let n of t.slice(2).split("/")){let o=n.replaceAll("~1","/").replaceAll("~0","~");if(!Ci(r))return;r=r[o]}return r},GW=(e,t,r=0)=>{if(!Ci(t))return null;let n=Au(t.$ref);return n&&r<5?GW(e,oxt(e,n),r+1):t},ixt=e=>{let t=new Set,r=[],n=i=>{if(Array.isArray(i)){for(let a of i)if(Ci(a))for(let[s,c]of Object.entries(a))s.length===0||t.has(s)||(t.add(s),r.push({name:s,scopes:Array.isArray(c)?c.filter(p=>typeof p=="string"):[]}))}};n(e.security);let o=e.paths;if(!Ci(o))return r;for(let i of Object.values(o))if(Ci(i)){n(i.security);for(let a of Object.values(i))Ci(a)&&n(a.security)}return r},cTe=e=>{let t=Au(e.scheme.type)?.toLowerCase()??"";if(t==="oauth2"){let r=Ci(e.scheme.flows)?e.scheme.flows:{},n=Object.values(r).find(Ci)??null,o=n&&Ci(n.scopes)?Object.keys(n.scopes).filter(a=>a.length>0):[],i=[...new Set([...e.scopes,...o])].sort();return{name:e.name,kind:"oauth2",supported:!0,headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:n?Cp(Au(n.authorizationUrl)):null,oauthTokenUrl:n?Cp(Au(n.tokenUrl)):null,oauthScopes:i,reason:`OpenAPI security scheme "${e.name}" declares OAuth2`}}if(t==="http"){let r=Au(e.scheme.scheme)?.toLowerCase()??"";if(r==="bearer")return{name:e.name,kind:"bearer",supported:!0,headerName:"Authorization",prefix:"Bearer ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" declares HTTP bearer auth`};if(r==="basic")return{name:e.name,kind:"basic",supported:!1,headerName:"Authorization",prefix:"Basic ",parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" declares HTTP basic auth`}}if(t==="apiKey"){let r=Au(e.scheme.in),n=r==="header"||r==="query"||r==="cookie"?r:null;return{name:e.name,kind:"apiKey",supported:!1,headerName:n==="header"?Cp(Au(e.scheme.name)):null,prefix:null,parameterName:Cp(Au(e.scheme.name)),parameterLocation:n,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" declares API key auth`}}return{name:e.name,kind:"unknown",supported:!1,headerName:null,prefix:null,parameterName:null,parameterLocation:null,oauthAuthorizationUrl:null,oauthTokenUrl:null,oauthScopes:e.scopes,reason:`OpenAPI security scheme "${e.name}" uses unsupported type ${t||"unknown"}`}},axt=e=>{let t=Ci(e.components)?e.components:{},r=Ci(t.securitySchemes)?t.securitySchemes:{},n=ixt(e);if(n.length===0){if(Object.keys(r).length===0)return Op("OpenAPI document does not declare security requirements");let a=Object.entries(r).map(([c,p])=>cTe({name:c,scopes:[],scheme:GW(e,p)??{}})).sort((c,p)=>{let d={oauth2:0,bearer:1,apiKey:2,basic:3,unknown:4};return d[c.kind]-d[p.kind]||c.name.localeCompare(p.name)})[0];if(!a)return Op("OpenAPI document does not declare security requirements");let s=a.kind==="unknown"?"low":"medium";return a.kind==="oauth2"?Iu("oauth2",{confidence:s,reason:`${a.reason}; scheme is defined but not explicitly applied to operations`,headerName:a.headerName,prefix:a.prefix,parameterName:a.parameterName,parameterLocation:a.parameterLocation,oauthAuthorizationUrl:a.oauthAuthorizationUrl,oauthTokenUrl:a.oauthTokenUrl,oauthScopes:a.oauthScopes}):a.kind==="bearer"?Iu("bearer",{confidence:s,reason:`${a.reason}; scheme is defined but not explicitly applied to operations`,headerName:a.headerName,prefix:a.prefix,parameterName:a.parameterName,parameterLocation:a.parameterLocation,oauthAuthorizationUrl:a.oauthAuthorizationUrl,oauthTokenUrl:a.oauthTokenUrl,oauthScopes:a.oauthScopes}):a.kind==="apiKey"?uv("apiKey",{confidence:s,reason:`${a.reason}; scheme is defined but not explicitly applied to operations`,headerName:a.headerName,prefix:a.prefix,parameterName:a.parameterName,parameterLocation:a.parameterLocation,oauthAuthorizationUrl:a.oauthAuthorizationUrl,oauthTokenUrl:a.oauthTokenUrl,oauthScopes:a.oauthScopes}):a.kind==="basic"?uv("basic",{confidence:s,reason:`${a.reason}; scheme is defined but not explicitly applied to operations`,headerName:a.headerName,prefix:a.prefix,parameterName:a.parameterName,parameterLocation:a.parameterLocation,oauthAuthorizationUrl:a.oauthAuthorizationUrl,oauthTokenUrl:a.oauthTokenUrl,oauthScopes:a.oauthScopes}):ng(`${a.reason}; scheme is defined but not explicitly applied to operations`)}let i=n.map(({name:a,scopes:s})=>{let c=GW(e,r[a]);return c==null?null:cTe({name:a,scopes:s,scheme:c})}).filter(a=>a!==null).sort((a,s)=>{let c={oauth2:0,bearer:1,apiKey:2,basic:3,unknown:4};return c[a.kind]-c[s.kind]||a.name.localeCompare(s.name)})[0];return i?i.kind==="oauth2"?Iu("oauth2",{confidence:"high",reason:i.reason,headerName:i.headerName,prefix:i.prefix,parameterName:i.parameterName,parameterLocation:i.parameterLocation,oauthAuthorizationUrl:i.oauthAuthorizationUrl,oauthTokenUrl:i.oauthTokenUrl,oauthScopes:i.oauthScopes}):i.kind==="bearer"?Iu("bearer",{confidence:"high",reason:i.reason,headerName:i.headerName,prefix:i.prefix,parameterName:i.parameterName,parameterLocation:i.parameterLocation,oauthAuthorizationUrl:i.oauthAuthorizationUrl,oauthTokenUrl:i.oauthTokenUrl,oauthScopes:i.oauthScopes}):i.kind==="apiKey"?uv("apiKey",{confidence:"high",reason:i.reason,headerName:i.headerName,prefix:i.prefix,parameterName:i.parameterName,parameterLocation:i.parameterLocation,oauthAuthorizationUrl:i.oauthAuthorizationUrl,oauthTokenUrl:i.oauthTokenUrl,oauthScopes:i.oauthScopes}):i.kind==="basic"?uv("basic",{confidence:"high",reason:i.reason,headerName:i.headerName,prefix:i.prefix,parameterName:i.parameterName,parameterLocation:i.parameterLocation,oauthAuthorizationUrl:i.oauthAuthorizationUrl,oauthTokenUrl:i.oauthTokenUrl,oauthScopes:i.oauthScopes}):ng(i.reason):ng("OpenAPI security requirements reference schemes that could not be resolved")},sxt=e=>{let t=e.document.servers;if(Array.isArray(t)){let r=t.find(Ci),n=r?Cp(Au(r.url)):null;if(n)try{return new URL(n,e.normalizedUrl).toString()}catch{return e.normalizedUrl}}return new URL(e.normalizedUrl).origin},HW=e=>Xl.gen(function*(){let t=yield*Xl.either(pv({method:"GET",url:e.normalizedUrl,headers:e.headers}));if(eI.isLeft(t))return console.warn(`[discovery] OpenAPI probe HTTP fetch failed for ${e.normalizedUrl}:`,t.left.message),null;if(t.right.status<200||t.right.status>=300)return console.warn(`[discovery] OpenAPI probe got status ${t.right.status} for ${e.normalizedUrl}`),null;let r=yield*Xl.either(ib(e.normalizedUrl,t.right.text));if(eI.isLeft(r))return console.warn(`[discovery] OpenAPI manifest extraction failed for ${e.normalizedUrl}:`,r.left instanceof Error?r.left.message:String(r.left)),null;let n=yield*Xl.either(Xl.try({try:()=>V2(t.right.text),catch:s=>s instanceof Error?s:new Error(String(s))})),o=eI.isRight(n)&&Ci(n.right)?n.right:{},i=sxt({normalizedUrl:e.normalizedUrl,document:o}),a=Cp(Au(o.info&&Ci(o.info)?o.info.title:null))??Pp(i);return{detectedKind:"openapi",confidence:"high",endpoint:i,specUrl:e.normalizedUrl,name:a,namespace:os(a),transport:null,authInference:axt(o),toolCount:r.right.tools.length,warnings:[]}}).pipe(Xl.catchAll(t=>(console.warn(`[discovery] OpenAPI detection unexpected error for ${e.normalizedUrl}:`,t instanceof Error?t.message:String(t)),Xl.succeed(null))));import*as zh from"effect/Schema";var ZW=zh.Struct({specUrl:zh.String,defaultHeaders:zh.optional(zh.NullOr(Qr))});import{Schema as qo}from"effect";var QW=/^v\d+(?:[._-]\d+)?$/i,lTe=new Set(["api"]),cxt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1 $2").replace(/[^a-zA-Z0-9]+/g," ").trim().split(/\s+/).filter(t=>t.length>0),lxt=e=>e.toLowerCase(),cF=e=>{let t=cxt(e).map(lxt);if(t.length===0)return"tool";let[r,...n]=t;return`${r}${n.map(o=>`${o[0]?.toUpperCase()??""}${o.slice(1)}`).join("")}`},WW=e=>{let t=cF(e);return`${t[0]?.toUpperCase()??""}${t.slice(1)}`},lF=e=>{let t=e?.trim();return t?cF(t):null},XW=e=>e.split("/").map(t=>t.trim()).filter(t=>t.length>0),uTe=e=>e.startsWith("{")&&e.endsWith("}"),uxt=e=>XW(e).map(t=>t.toLowerCase()).find(t=>QW.test(t)),pxt=e=>{for(let t of XW(e)){let r=t.toLowerCase();if(!QW.test(r)&&!lTe.has(r)&&!uTe(t))return lF(t)??"root"}return"root"},dxt=e=>e.split(/[/.]+/).map(t=>t.trim()).filter(t=>t.length>0),_xt=(e,t)=>{let r=e.operationId??e.toolId,n=dxt(r);if(n.length>1){let[o,...i]=n;if((lF(o)??o)===t&&i.length>0)return i.join(" ")}return r},fxt=(e,t)=>{let n=XW(e.path).filter(o=>!QW.test(o.toLowerCase())).filter(o=>!lTe.has(o.toLowerCase())).filter(o=>!uTe(o)).map(o=>lF(o)??o).filter(o=>o!==t).map(o=>WW(o)).join("");return`${e.method}${n||"Operation"}`},mxt=(e,t)=>{let r=cF(_xt(e,t));return r.length>0&&r!==t?r:cF(fxt(e,t))},hxt=e=>e.description??`${e.method.toUpperCase()} ${e.path}`,yxt=qo.Struct({toolId:qo.String,rawToolId:qo.String,operationId:qo.optional(qo.String),name:qo.String,description:qo.String,group:qo.String,leaf:qo.String,tags:qo.Array(qo.String),versionSegment:qo.optional(qo.String),method:nb,path:qo.String,invocation:Z2,operationHash:qo.String,typing:qo.optional(nF),documentation:qo.optional(Q2),responses:qo.optional(qo.Array(W2)),authRequirement:qo.optional(SS),securitySchemes:qo.optional(qo.Array(X2)),documentServers:qo.optional(qo.Array(Uh)),servers:qo.optional(qo.Array(Uh))}),gxt=e=>{let t=e.map(n=>({...n,toolId:`${n.group}.${n.leaf}`})),r=(n,o)=>{let i=new Map;for(let a of n){let s=i.get(a.toolId)??[];s.push(a),i.set(a.toolId,s)}for(let a of i.values())if(!(a.length<2))for(let s of a)s.toolId=o(s)};return r(t,n=>n.versionSegment?`${n.group}.${n.versionSegment}.${n.leaf}`:n.toolId),r(t,n=>`${n.versionSegment?`${n.group}.${n.versionSegment}`:n.group}.${n.leaf}${WW(n.method)}`),r(t,n=>`${n.versionSegment?`${n.group}.${n.versionSegment}`:n.group}.${n.leaf}${WW(n.method)}${n.operationHash.slice(0,8)}`),t},uF=e=>{let t=e.tools.map(r=>{let n=lF(r.tags[0])??pxt(r.path),o=mxt(r,n);return{rawToolId:r.toolId,operationId:r.operationId,name:r.name,description:hxt(r),group:n,leaf:o,tags:[...r.tags],versionSegment:uxt(r.path),method:r.method,path:r.path,invocation:r.invocation,operationHash:r.operationHash,typing:r.typing,documentation:r.documentation,responses:r.responses,authRequirement:r.authRequirement,securitySchemes:r.securitySchemes,documentServers:r.documentServers,servers:r.servers}});return gxt(t).sort((r,n)=>r.toolId.localeCompare(n.toolId)||r.rawToolId.localeCompare(n.rawToolId)||r.operationHash.localeCompare(n.operationHash))},YW=e=>({kind:"openapi",toolId:e.toolId,rawToolId:e.rawToolId,operationId:e.operationId,group:e.group,leaf:e.leaf,tags:e.tags,versionSegment:e.versionSegment,method:e.method,path:e.path,operationHash:e.operationHash,invocation:e.invocation,documentation:e.documentation,responses:e.responses,authRequirement:e.authRequirement,securitySchemes:e.securitySchemes,documentServers:e.documentServers,servers:e.servers});import*as ab from"effect/Match";var pF=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Sxt=e=>{try{return JSON.parse(e)}catch{return null}},tI=(e,t,r,n)=>{if(Array.isArray(e))return e.map(a=>tI(a,t,r,n));if(!pF(e))return e;let o=typeof e.$ref=="string"?e.$ref:null;if(o&&o.startsWith("#/")&&!n.has(o)){let a=r.get(o);if(a===void 0){let s=t[o];a=typeof s=="string"?Sxt(s):pF(s)?s:null,r.set(o,a)}if(a!=null){let s=new Set(n);s.add(o);let{$ref:c,...p}=e,d=tI(a,t,r,s);if(Object.keys(p).length===0)return d;let f=tI(p,t,r,n);return pF(d)&&pF(f)?{...d,...f}:d}}let i={};for(let[a,s]of Object.entries(e))i[a]=tI(s,t,r,n);return i},Jh=(e,t)=>e==null?null:!t||Object.keys(t).length===0?e:tI(e,t,new Map,new Set),eQ=(e,t)=>({inputSchema:Jh(e?.inputSchema,t),outputSchema:Jh(e?.outputSchema,t)});var nI=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},vxt=e=>{let t=nI(e);if(t.type!=="object"&&t.properties===void 0)return!1;let r=nI(t.properties);return Object.keys(r).length===0&&t.additionalProperties===!1},_Te=(e,t=320)=>e==null?"void":vxt(e)?"{}":yu(e,"unknown",t),rQ=e=>e?.[0],rI=(e,t)=>{let r=nI(e);return nI(r.properties)[t]},bxt=(e,t,r)=>{let n=rI(e,r);if(n!==void 0)return n;let i=rI(e,t==="header"?"headers":t==="cookie"?"cookies":t);return i===void 0?void 0:rI(i,r)},pTe=e=>!e||e.length===0?void 0:([...e].sort((r,n)=>r.mediaType.localeCompare(n.mediaType)).find(r=>r.mediaType==="application/json")??[...e].find(r=>r.mediaType.toLowerCase().includes("+json"))??[...e].find(r=>r.mediaType.toLowerCase().includes("json"))??e[0])?.schema,dTe=(e,t)=>{if(!t)return e;let r=nI(e);return Object.keys(r).length===0?e:{...r,description:t}},xxt=e=>{let t=e.invocation,r={},n=[];for(let o of t.parameters){let i=e.documentation?.parameters.find(s=>s.name===o.name&&s.location===o.location),a=bxt(e.parameterSourceSchema,o.location,o.name)??pTe(o.content)??{type:"string"};r[o.name]=dTe(a,i?.description),o.required&&n.push(o.name)}return t.requestBody&&(r.body=dTe(e.requestBodySchema??pTe(t.requestBody.contents)??{type:"object"},e.documentation?.requestBody?.description),t.requestBody.required&&n.push("body")),Object.keys(r).length>0?{type:"object",properties:r,...n.length>0?{required:n}:{},additionalProperties:!1}:void 0},tQ=e=>typeof e=="string"&&e.length>0?{$ref:e}:void 0,Ext=e=>{let t=e.typing?.refHintKeys??[];return ab.value(e.invocation.requestBody).pipe(ab.when(null,()=>({outputSchema:tQ(t[0])})),ab.orElse(()=>({requestBodySchema:tQ(t[0]),outputSchema:tQ(t[1])})))},Txt=e=>{let t=eQ(e.definition.typing,e.refHintTable),r=Ext(e.definition),n=Jh(r.requestBodySchema,e.refHintTable),o=rI(t.inputSchema,"body")??rI(t.inputSchema,"input")??n??void 0,i=xxt({invocation:e.definition.invocation,documentation:e.definition.documentation,parameterSourceSchema:t.inputSchema,...o!==void 0?{requestBodySchema:o}:{}})??t.inputSchema??void 0,a=t.outputSchema??Jh(r.outputSchema,e.refHintTable);return{...i!=null?{inputSchema:i}:{},...a!=null?{outputSchema:a}:{}}},Dxt=e=>{if(!(!e.variants||e.variants.length===0))return e.variants.map(t=>{let r=Jh(t.schema,e.refHintTable);return{...t,...r!==void 0?{schema:r}:{}}})},Axt=e=>{if(!e)return;let t={};for(let n of e.parameters){let o=rQ(n.examples);o&&(t[n.name]=JSON.parse(o.valueJson))}let r=rQ(e.requestBody?.examples);return r&&(t.body=JSON.parse(r.valueJson)),Object.keys(t).length>0?t:void 0},Ixt=e=>{let t=rQ(e?.response?.examples)?.valueJson;return t?JSON.parse(t):void 0},dF=e=>{let{inputSchema:t,outputSchema:r}=Txt(e),n=Dxt({variants:e.definition.responses,refHintTable:e.refHintTable}),o=Axt(e.definition.documentation),i=Ixt(e.definition.documentation);return{inputTypePreview:yu(t,"unknown",1/0),outputTypePreview:_Te(r,1/0),...t!==void 0?{inputSchema:t}:{},...r!==void 0?{outputSchema:r}:{},...o!==void 0?{exampleInput:o}:{},...i!==void 0?{exampleOutput:i}:{},providerData:{...YW(e.definition),...n?{responses:n}:{}}}};var oI=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),wxt=new TextEncoder,nQ=e=>(e??"").split(";",1)[0]?.trim().toLowerCase()??"",$i=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean"||typeof e=="bigint")return String(e);if(e==null)return"";try{return JSON.stringify(e)}catch{return String(e)}},fTe=e=>{let t=nQ(e);return t==="application/json"||t.endsWith("+json")||t.includes("json")},mTe=e=>{let t=nQ(e);return t.length===0?!1:t.startsWith("text/")||t==="application/xml"||t.endsWith("+xml")||t.endsWith("/xml")||t==="application/x-www-form-urlencoded"||t==="application/javascript"||t==="application/ecmascript"||t==="application/graphql"||t==="application/sql"||t==="application/x-yaml"||t==="application/yaml"||t==="application/toml"||t==="application/csv"||t==="image/svg+xml"||t.endsWith("+yaml")||t.endsWith("+toml")},iI=e=>fTe(e)?"json":mTe(e)||nQ(e).length===0?"text":"bytes",aI=e=>Object.entries(oI(e)?e:{}).sort(([t],[r])=>t.localeCompare(r)),kxt=e=>{switch(e){case"path":case"header":return"simple";case"cookie":case"query":return"form"}},Cxt=(e,t)=>e==="query"||e==="cookie"?t==="form":!1,oQ=e=>e.style??kxt(e.location),_F=e=>e.explode??Cxt(e.location,oQ(e)),ia=e=>encodeURIComponent($i(e)),Pxt=(e,t)=>{let r=encodeURIComponent(e);return t?r.replace(/%3A/gi,":").replace(/%2F/gi,"/").replace(/%3F/gi,"?").replace(/%23/gi,"#").replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%40/gi,"@").replace(/%21/gi,"!").replace(/%24/gi,"$").replace(/%26/gi,"&").replace(/%27/gi,"'").replace(/%28/gi,"(").replace(/%29/gi,")").replace(/%2A/gi,"*").replace(/%2B/gi,"+").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%3D/gi,"="):r},sI=e=>{let t=[...(e.contents??[]).map(r=>r.mediaType),...e.contentTypes??[]];if(t.length!==0)return t.find(r=>r==="application/json")??t.find(r=>r.toLowerCase().includes("+json"))??t.find(r=>r.toLowerCase().includes("json"))??t[0]},Oxt=e=>{if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);if(typeof e=="string")return wxt.encode(e);if(Array.isArray(e)&&e.every(t=>typeof t=="number"&&Number.isInteger(t)&&t>=0&&t<=255))return Uint8Array.from(e);throw new Error("Binary OpenAPI request bodies must be bytes, a string, or an array of byte values")},cI=(e,t)=>{let r=t.toLowerCase();if(r==="application/json"||r.includes("+json")||r.includes("json"))return JSON.stringify(e);if(r==="application/x-www-form-urlencoded"){let n=new URLSearchParams;for(let[o,i]of aI(e)){if(Array.isArray(i)){for(let a of i)n.append(o,$i(a));continue}n.append(o,$i(i))}return n.toString()}return $i(e)},Nxt=(e,t)=>{let r=oQ(e),n=_F(e),o=e.allowReserved===!0,i=sI({contents:e.content});if(i)return{kind:"query",entries:[{name:e.name,value:cI(t,i),allowReserved:o}]};if(Array.isArray(t))return r==="spaceDelimited"?{kind:"query",entries:[{name:e.name,value:t.map(a=>$i(a)).join(" "),allowReserved:o}]}:r==="pipeDelimited"?{kind:"query",entries:[{name:e.name,value:t.map(a=>$i(a)).join("|"),allowReserved:o}]}:{kind:"query",entries:n?t.map(a=>({name:e.name,value:$i(a),allowReserved:o})):[{name:e.name,value:t.map(a=>$i(a)).join(","),allowReserved:o}]};if(oI(t)){let a=aI(t);return r==="deepObject"?{kind:"query",entries:a.map(([s,c])=>({name:`${e.name}[${s}]`,value:$i(c),allowReserved:o}))}:{kind:"query",entries:n?a.map(([s,c])=>({name:s,value:$i(c),allowReserved:o})):[{name:e.name,value:a.flatMap(([s,c])=>[s,$i(c)]).join(","),allowReserved:o}]}}return{kind:"query",entries:[{name:e.name,value:$i(t),allowReserved:o}]}},Fxt=(e,t)=>{let r=_F(e),n=sI({contents:e.content});if(n)return{kind:"header",value:cI(t,n)};if(Array.isArray(t))return{kind:"header",value:t.map(o=>$i(o)).join(",")};if(oI(t)){let o=aI(t);return{kind:"header",value:r?o.map(([i,a])=>`${i}=${$i(a)}`).join(","):o.flatMap(([i,a])=>[i,$i(a)]).join(",")}}return{kind:"header",value:$i(t)}},Rxt=(e,t)=>{let r=_F(e),n=sI({contents:e.content});if(n)return{kind:"cookie",pairs:[{name:e.name,value:cI(t,n)}]};if(Array.isArray(t))return{kind:"cookie",pairs:r?t.map(o=>({name:e.name,value:$i(o)})):[{name:e.name,value:t.map(o=>$i(o)).join(",")}]};if(oI(t)){let o=aI(t);return{kind:"cookie",pairs:r?o.map(([i,a])=>({name:i,value:$i(a)})):[{name:e.name,value:o.flatMap(([i,a])=>[i,$i(a)]).join(",")}]}}return{kind:"cookie",pairs:[{name:e.name,value:$i(t)}]}},Lxt=(e,t)=>{let r=oQ(e),n=_F(e),o=sI({contents:e.content});if(o)return{kind:"path",value:ia(cI(t,o))};if(Array.isArray(t))return r==="label"?{kind:"path",value:`.${t.map(i=>ia(i)).join(n?".":",")}`}:r==="matrix"?{kind:"path",value:n?t.map(i=>`;${encodeURIComponent(e.name)}=${ia(i)}`).join(""):`;${encodeURIComponent(e.name)}=${t.map(i=>ia(i)).join(",")}`}:{kind:"path",value:t.map(i=>ia(i)).join(",")};if(oI(t)){let i=aI(t);return r==="label"?{kind:"path",value:n?`.${i.map(([a,s])=>`${ia(a)}=${ia(s)}`).join(".")}`:`.${i.flatMap(([a,s])=>[ia(a),ia(s)]).join(",")}`}:r==="matrix"?{kind:"path",value:n?i.map(([a,s])=>`;${encodeURIComponent(a)}=${ia(s)}`).join(""):`;${encodeURIComponent(e.name)}=${i.flatMap(([a,s])=>[ia(a),ia(s)]).join(",")}`}:{kind:"path",value:n?i.map(([a,s])=>`${ia(a)}=${ia(s)}`).join(","):i.flatMap(([a,s])=>[ia(a),ia(s)]).join(",")}}return r==="label"?{kind:"path",value:`.${ia(t)}`}:r==="matrix"?{kind:"path",value:`;${encodeURIComponent(e.name)}=${ia(t)}`}:{kind:"path",value:ia(t)}},lI=(e,t)=>{switch(e.location){case"path":return Lxt(e,t);case"query":return Nxt(e,t);case"header":return Fxt(e,t);case"cookie":return Rxt(e,t)}},fF=(e,t)=>{if(t.length===0)return e.toString();let r=t.map(s=>`${encodeURIComponent(s.name)}=${Pxt(s.value,s.allowReserved===!0)}`).join("&"),n=e.toString(),[o,i]=n.split("#",2),a=o.includes("?")?o.endsWith("?")||o.endsWith("&")?"":"&":"?";return`${o}${a}${r}${i?`#${i}`:""}`},mF=e=>{let t=sI(e.requestBody)??"application/json";return iI(t)==="bytes"?{contentType:t,body:Oxt(e.body)}:{contentType:t,body:cI(e.body,t)}};import{FetchHttpClient as YVt,HttpClient as eKt,HttpClientRequest as tKt}from"@effect/platform";import*as hTe from"effect/Data";import*as sb from"effect/Effect";var iQ=class extends hTe.TaggedError("OpenApiToolInvocationError"){};var yTe=e=>{if(!(!e||e.length===0))return e.map(t=>({url:t.url,...t.description?{description:t.description}:{},...t.variables?{variables:t.variables}:{}}))},$xt=e=>{let t=Du.make(`scope_${hn({sourceId:e.source.id,toolId:e.operation.providerData.toolId,kind:"operation"})}`);return Vr(e.catalog.scopes)[t]={id:t,kind:"operation",parentId:e.parentScopeId,name:e.operation.title??e.operation.providerData.toolId,docs:In({summary:e.operation.title??e.operation.providerData.toolId,description:e.operation.description??void 0}),defaults:e.defaults,synthetic:!1,provenance:pn(e.documentId,`#/openapi/${e.operation.providerData.toolId}/scope`)},t},Mxt=e=>{let t=hm.make(`security_${hn({sourceId:e.source.id,provider:"openapi",schemeName:e.schemeName})}`);if(e.catalog.symbols[t])return t;let r=e.scheme,n=r?.scheme?.toLowerCase(),o=r?.schemeType==="apiKey"?"apiKey":r?.schemeType==="oauth2"?"oauth2":r?.schemeType==="http"&&n==="basic"?"basic":r?.schemeType==="http"&&n==="bearer"?"bearer":r?.schemeType==="openIdConnect"?"custom":r?.schemeType==="http"?"http":"custom",i=Object.fromEntries(Object.entries(r?.flows??{}).map(([c,p])=>[c,p])),a=Object.fromEntries(Object.entries(r?.flows??{}).flatMap(([,c])=>Object.entries(c.scopes??{}))),s=r?.description??(r?.openIdConnectUrl?`OpenID Connect: ${r.openIdConnectUrl}`:null);return Vr(e.catalog.symbols)[t]={id:t,kind:"securityScheme",schemeType:o,...In({summary:e.schemeName,description:s})?{docs:In({summary:e.schemeName,description:s})}:{},...r?.placementIn||r?.placementName?{placement:{...r?.placementIn?{in:r.placementIn}:{},...r?.placementName?{name:r.placementName}:{}}}:{},...o==="apiKey"&&r?.placementIn&&r?.placementName?{apiKey:{in:r.placementIn,name:r.placementName}}:{},...(o==="basic"||o==="bearer"||o==="http")&&r?.scheme?{http:{scheme:r.scheme,...r.bearerFormat?{bearerFormat:r.bearerFormat}:{}}}:{},...o==="oauth2"?{oauth:{...Object.keys(i).length>0?{flows:i}:{},...Object.keys(a).length>0?{scopes:a}:{}}}:{},...o==="custom"?{custom:{}}:{},synthetic:!1,provenance:pn(e.documentId,`#/openapi/securitySchemes/${e.schemeName}`)},t},gTe=e=>{let t=e.authRequirement;if(!t)return{kind:"none"};switch(t.kind){case"none":return{kind:"none"};case"scheme":return{kind:"scheme",schemeId:Mxt({catalog:e.catalog,source:e.source,documentId:e.documentId,schemeName:t.schemeName,scheme:e.schemesByName.get(t.schemeName)}),...t.scopes&&t.scopes.length>0?{scopes:[...t.scopes]}:{}};case"allOf":case"anyOf":return{kind:t.kind,items:t.items.map(r=>gTe({catalog:e.catalog,source:e.source,documentId:e.documentId,authRequirement:r,schemesByName:e.schemesByName}))}}},hF=e=>e.contents.map((t,r)=>{let n=(t.examples??[]).map((o,i)=>gm({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`${e.pointerBase}/content/${r}/example/${i}`,name:o.label,summary:o.label,value:JSON.parse(o.valueJson)}));return{mediaType:t.mediaType,...t.schema!==void 0?{shapeId:e.importer.importSchema(t.schema,`${e.pointerBase}/content/${r}`,e.rootSchema)}:{},...n.length>0?{exampleIds:n}:{}}}),jxt=e=>{let t=mm.make(`header_${hn(e.idSeed)}`),r=(e.header.examples??[]).map((o,i)=>gm({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`${e.pointer}/example/${i}`,name:o.label,summary:o.label,value:JSON.parse(o.valueJson)})),n=e.header.content?hF({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:e.header.content,pointerBase:e.pointer}):void 0;return Vr(e.catalog.symbols)[t]={id:t,kind:"header",name:e.header.name,...In({description:e.header.description})?{docs:In({description:e.header.description})}:{},...typeof e.header.deprecated=="boolean"?{deprecated:e.header.deprecated}:{},...e.header.schema!==void 0?{schemaShapeId:e.importer.importSchema(e.header.schema,e.pointer,e.rootSchema)}:{},...n&&n.length>0?{content:n}:{},...r.length>0?{exampleIds:r}:{},...e.header.style?{style:e.header.style}:{},...typeof e.header.explode=="boolean"?{explode:e.header.explode}:{},synthetic:!1,provenance:pn(e.documentId,e.pointer)},t},Bxt=e=>{let t=g_(e.source,e.operation.providerData.toolId),r=Oc.make(`cap_${hn({sourceId:e.source.id,toolId:e.operation.providerData.toolId})}`),n=Qs.make(`exec_${hn({sourceId:e.source.id,toolId:e.operation.providerData.toolId,protocol:"http"})}`),o=e.operation.inputSchema??{},i=e.operation.outputSchema??{},a=[],s=new Map((e.operation.providerData.securitySchemes??[]).map(S=>[S.schemeName,S]));e.operation.providerData.invocation.parameters.forEach(S=>{let b=fm.make(`param_${hn({capabilityId:r,location:S.location,name:S.name})}`),E=PT(o,S.location,S.name),I=e.operation.providerData.documentation?.parameters.find(F=>F.name===S.name&&F.location===S.location),T=(I?.examples??[]).map((F,O)=>{let $=JSON.parse(F.valueJson);return gm({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/parameter/${S.location}/${S.name}/example/${O}`,name:F.label,summary:F.label,value:$})});a.push(...T);let k=S.content?hF({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:S.content,pointerBase:`#/openapi/${e.operation.providerData.toolId}/parameter/${S.location}/${S.name}`}):void 0;Vr(e.catalog.symbols)[b]={id:b,kind:"parameter",name:S.name,location:S.location,required:S.required,...In({description:I?.description??null})?{docs:In({description:I?.description??null})}:{},...E!==void 0&&(!k||k.length===0)?{schemaShapeId:e.importer.importSchema(E,`#/openapi/${e.operation.providerData.toolId}/parameter/${S.location}/${S.name}`,e.rootSchema)}:{},...k&&k.length>0?{content:k}:{},...T.length>0?{exampleIds:T}:{},...S.style?{style:S.style}:{},...typeof S.explode=="boolean"?{explode:S.explode}:{},...typeof S.allowReserved=="boolean"?{allowReserved:S.allowReserved}:{},synthetic:!1,provenance:pn(e.documentId,`#/openapi/${e.operation.providerData.toolId}/parameter/${S.location}/${S.name}`)}});let c=e.operation.providerData.invocation.requestBody?rg.make(`request_body_${hn({capabilityId:r})}`):void 0;if(c){let S=fv(o),b=e.operation.providerData.invocation.requestBody?.contents?hF({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:e.operation.providerData.invocation.requestBody.contents,pointerBase:`#/openapi/${e.operation.providerData.toolId}/requestBody`}):void 0,E=b?.flatMap(T=>T.exampleIds??[])??(e.operation.providerData.documentation?.requestBody?.examples??[]).map((T,k)=>gm({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/requestBody/example/${k}`,name:T.label,summary:T.label,value:JSON.parse(T.valueJson)}));a.push(...E);let I=b&&b.length>0?b:OT(e.operation.providerData.invocation.requestBody?.contentTypes).map(T=>({mediaType:T,...S!==void 0?{shapeId:e.importer.importSchema(S,`#/openapi/${e.operation.providerData.toolId}/requestBody`,e.rootSchema)}:{},...E.length>0?{exampleIds:E}:{}}));Vr(e.catalog.symbols)[c]={id:c,kind:"requestBody",...In({description:e.operation.providerData.documentation?.requestBody?.description??null})?{docs:In({description:e.operation.providerData.documentation?.requestBody?.description??null})}:{},required:e.operation.providerData.invocation.requestBody?.required??!1,contents:I,synthetic:!1,provenance:pn(e.documentId,`#/openapi/${e.operation.providerData.toolId}/requestBody`)}}let p=e.operation.providerData.responses??[],d=p.length>0?iB({catalog:e.catalog,variants:p.map((S,b)=>{let E=Nc.make(`response_${hn({capabilityId:r,statusCode:S.statusCode,responseIndex:b})}`),I=(S.examples??[]).map((F,O)=>gm({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/responses/${S.statusCode}/example/${O}`,name:F.label,summary:F.label,value:JSON.parse(F.valueJson)}));a.push(...I);let T=S.contents&&S.contents.length>0?hF({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,contents:S.contents,pointerBase:`#/openapi/${e.operation.providerData.toolId}/responses/${S.statusCode}`}):(()=>{let F=S.schema!==void 0?e.importer.importSchema(S.schema,`#/openapi/${e.operation.providerData.toolId}/responses/${S.statusCode}`,e.rootSchema):void 0,O=OT(S.contentTypes);return O.length>0?O.map(($,N)=>({mediaType:$,...F!==void 0&&N===0?{shapeId:F}:{},...I.length>0&&N===0?{exampleIds:I}:{}})):void 0})(),k=(S.headers??[]).map((F,O)=>jxt({catalog:e.catalog,source:e.source,documentId:e.documentId,importer:e.importer,rootSchema:e.rootSchema,pointer:`#/openapi/${e.operation.providerData.toolId}/responses/${S.statusCode}/headers/${F.name}`,idSeed:{capabilityId:r,responseId:E,headerIndex:O,headerName:F.name},header:F}));return Vr(e.catalog.symbols)[E]={id:E,kind:"response",...In({description:S.description??(b===0?e.operation.description:null)})?{docs:In({description:S.description??(b===0?e.operation.description:null)})}:{},...k.length>0?{headerIds:k}:{},...T&&T.length>0?{contents:T}:{},synthetic:!1,provenance:pn(e.documentId,`#/openapi/${e.operation.providerData.toolId}/responses/${S.statusCode}`)},{match:aB(S.statusCode),responseId:E}}),provenance:pn(e.documentId,`#/openapi/${e.operation.providerData.toolId}/responseSet`)}):(()=>{let S=Nc.make(`response_${hn({capabilityId:r})}`),b=(e.operation.providerData.documentation?.response?.examples??[]).map((E,I)=>gm({catalog:e.catalog,source:e.source,documentId:e.documentId,pointer:`#/openapi/${e.operation.providerData.toolId}/response/example/${I}`,name:E.label,summary:E.label,value:JSON.parse(E.valueJson)}));return a.push(...b),Vr(e.catalog.symbols)[S]={id:S,kind:"response",...In({description:e.operation.providerData.documentation?.response?.description??e.operation.description})?{docs:In({description:e.operation.providerData.documentation?.response?.description??e.operation.description})}:{},contents:[{mediaType:OT(e.operation.providerData.documentation?.response?.contentTypes)[0]??"application/json",...e.operation.outputSchema!==void 0?{shapeId:e.importer.importSchema(i,`#/openapi/${e.operation.providerData.toolId}/response`)}:{},...b.length>0?{exampleIds:b}:{}}],synthetic:!1,provenance:pn(e.documentId,`#/openapi/${e.operation.providerData.toolId}/response`)},v_({catalog:e.catalog,responseId:S,provenance:pn(e.documentId,`#/openapi/${e.operation.providerData.toolId}/responseSet`)})})(),f=e.operation.inputSchema!==void 0?e.importer.importSchema(e.operation.inputSchema,`#/openapi/${e.operation.providerData.toolId}/call`,e.operation.inputSchema):e.importer.importSchema({type:"object",additionalProperties:!1},`#/openapi/${e.operation.providerData.toolId}/call`),m={id:n,capabilityId:r,scopeId:(()=>{let S=yTe(e.operation.providerData.servers);return!S||S.length===0?e.serviceScopeId:$xt({catalog:e.catalog,source:e.source,documentId:e.documentId,parentScopeId:e.serviceScopeId,operation:e.operation,defaults:{servers:S}})})(),adapterKey:"openapi",bindingVersion:Ca,binding:e.operation.providerData,projection:{responseSetId:d,callShapeId:f},display:{protocol:"http",method:e.operation.providerData.invocation.method.toUpperCase(),pathTemplate:e.operation.providerData.invocation.pathTemplate,operationId:e.operation.providerData.operationId??null,group:e.operation.providerData.group,leaf:e.operation.providerData.leaf,rawToolId:e.operation.providerData.rawToolId,title:e.operation.title??null,summary:e.operation.description??null},synthetic:!1,provenance:pn(e.documentId,`#/openapi/${e.operation.providerData.toolId}/executable`)};Vr(e.catalog.executables)[n]=m;let y=e.operation.effect,g=gTe({catalog:e.catalog,source:e.source,documentId:e.documentId,authRequirement:e.operation.providerData.authRequirement,schemesByName:s});Vr(e.catalog.capabilities)[r]={id:r,serviceScopeId:e.serviceScopeId,surface:{toolPath:t,...e.operation.title?{title:e.operation.title}:{},...e.operation.description?{summary:e.operation.description}:{},...e.operation.providerData.tags.length>0?{tags:e.operation.providerData.tags}:{}},semantics:{effect:y,safe:y==="read",idempotent:y==="read"||y==="delete",destructive:y==="delete"},auth:g,interaction:S_(y),executableIds:[n],...a.length>0?{exampleIds:a}:{},synthetic:!1,provenance:pn(e.documentId,`#/openapi/${e.operation.providerData.toolId}/capability`)}},STe=e=>{let t=(()=>{let r=e.documents[0]?.contentText;if(r)try{return JSON.parse(r)}catch{return}})();return b_({source:e.source,documents:e.documents,resourceDialectUri:"https://json-schema.org/draft/2020-12/schema",serviceScopeDefaults:(()=>{let r=yTe(e.operations.find(n=>(n.providerData.documentServers??[]).length>0)?.providerData.documentServers);return r?{servers:r}:void 0})(),registerOperations:({catalog:r,documentId:n,serviceScopeId:o,importer:i})=>{for(let a of e.operations)Bxt({catalog:r,source:e.source,documentId:n,serviceScopeId:o,operation:a,importer:i,rootSchema:t})}})};import{FetchHttpClient as qxt,HttpClient as Uxt,HttpClientRequest as vTe}from"@effect/platform";import*as ci from"effect/Effect";import*as to from"effect/Schema";var zxt=to.extend(B6,to.extend(bm,to.Struct({kind:to.Literal("openapi"),specUrl:to.Trim.pipe(to.nonEmptyString()),auth:to.optional(T_)}))),Jxt=to.extend(bm,to.Struct({kind:to.Literal("openapi"),endpoint:to.String,specUrl:to.String,name:Ho,namespace:Ho,auth:to.optional(T_)})),bTe=to.Struct({specUrl:to.Trim.pipe(to.nonEmptyString()),defaultHeaders:to.optional(to.NullOr(Qr))}),Vxt=to.Struct({specUrl:to.optional(to.String),defaultHeaders:to.optional(to.NullOr(Qr))}),uI=1,Kxt=(e,t)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&t.some(r=>Object.prototype.hasOwnProperty.call(e,r)),xS=e=>ci.gen(function*(){if(Kxt(e.binding,["transport","queryParams","headers"]))return yield*Co("openapi/adapter","OpenAPI sources cannot define MCP transport settings");let t=yield*Mp({sourceId:e.id,label:"OpenAPI",version:e.bindingVersion,expectedVersion:uI,schema:Vxt,value:e.binding,allowedKeys:["specUrl","defaultHeaders"]}),r=typeof t.specUrl=="string"?t.specUrl.trim():"";return r.length===0?yield*Co("openapi/adapter","OpenAPI sources require specUrl"):{specUrl:r,defaultHeaders:t.defaultHeaders??null}}),Gxt=e=>ci.gen(function*(){let t=yield*Uxt.HttpClient,r=vTe.get(gu({url:e.url,queryParams:e.queryParams}).toString()).pipe(vTe.setHeaders(Tc({headers:e.headers??{},cookies:e.cookies}))),n=yield*t.execute(r).pipe(ci.mapError(o=>o instanceof Error?o:new Error(String(o))));return n.status===401||n.status===403?yield*new E_("import",`OpenAPI spec fetch requires credentials (status ${n.status})`):n.status<200||n.status>=300?yield*Co("openapi/adapter",`OpenAPI spec fetch failed with status ${n.status}`):yield*n.text.pipe(ci.mapError(o=>o instanceof Error?o:new Error(String(o))))}).pipe(ci.provide(qxt.layer)),Hxt=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},Zxt={path:["path","pathParams","params"],query:["query","queryParams","params"],header:["headers","header"],cookie:["cookies","cookie"]},xTe=(e,t)=>{let r=e[t.name];if(r!==void 0)return r;for(let n of Zxt[t.location]){let o=e[n];if(typeof o!="object"||o===null||Array.isArray(o))continue;let i=o[t.name];if(i!==void 0)return i}},Wxt=(e,t,r)=>{let n=e;for(let a of r.parameters){if(a.location!=="path")continue;let s=xTe(t,a);if(s==null){if(a.required)throw new Error(`Missing required path parameter: ${a.name}`);continue}let c=lI(a,s);n=n.replaceAll(`{${a.name}}`,c.kind==="path"?c.value:encodeURIComponent(String(s)))}let o=[...n.matchAll(/\{([^{}]+)\}/g)].map(a=>a[1]).filter(a=>typeof a=="string"&&a.length>0);for(let a of o){let s=t[a]??(typeof t.path=="object"&&t.path!==null&&!Array.isArray(t.path)?t.path[a]:void 0)??(typeof t.pathParams=="object"&&t.pathParams!==null&&!Array.isArray(t.pathParams)?t.pathParams[a]:void 0)??(typeof t.params=="object"&&t.params!==null&&!Array.isArray(t.params)?t.params[a]:void 0);s!=null&&(n=n.replaceAll(`{${a}}`,encodeURIComponent(String(s))))}let i=[...n.matchAll(/\{([^{}]+)\}/g)].map(a=>a[1]).filter(a=>typeof a=="string"&&a.length>0);if(i.length>0){let a=[...new Set(i)].sort().join(", ");throw new Error(`Unresolved path parameters after substitution: ${a}`)}return n},Qxt=e=>{let t={};return e.headers.forEach((r,n)=>{t[n]=r}),t},Xxt=async e=>{if(e.status===204)return null;let t=iI(e.headers.get("content-type"));return t==="json"?e.json():t==="bytes"?new Uint8Array(await e.arrayBuffer()):e.text()},Yxt=e=>{let t=e.providerData.servers?.[0]??e.providerData.documentServers?.[0];if(!t)return new URL(e.endpoint).toString();let r=Object.entries(t.variables??{}).reduce((n,[o,i])=>n.replaceAll(`{${o}}`,i),t.url);return new URL(r,e.endpoint).toString()},eEt=(e,t)=>{try{return new URL(t)}catch{let r=new URL(e),n=r.pathname==="/"?"":r.pathname.endsWith("/")?r.pathname.slice(0,-1):r.pathname,o=t.startsWith("/")?t:`/${t}`;return r.pathname=`${n}${o}`.replace(/\/{2,}/g,"/"),r.search="",r.hash="",r}},tEt=e=>{let t=dF({definition:e.definition,refHintTable:e.refHintTable}),r=e.definition.method.toUpperCase();return{toolId:e.definition.toolId,title:e.definition.name,description:e.definition.description,effect:r==="GET"||r==="HEAD"?"read":r==="DELETE"?"delete":"write",inputSchema:t.inputSchema,outputSchema:t.outputSchema,providerData:t.providerData}},ETe={key:"openapi",displayName:"OpenAPI",catalogKind:"imported",connectStrategy:"direct",credentialStrategy:"credential_managed",bindingConfigVersion:uI,providerKey:"generic_http",defaultImportAuthPolicy:"reuse_runtime",connectPayloadSchema:zxt,executorAddInputSchema:Jxt,executorAddHelpText:["endpoint is the base API URL. specUrl is the OpenAPI document URL."],executorAddInputSignatureWidth:420,localConfigBindingSchema:ZW,localConfigBindingFromSource:e=>ci.runSync(ci.map(xS(e),t=>({specUrl:t.specUrl,defaultHeaders:t.defaultHeaders}))),serializeBindingConfig:e=>Lp({adapterKey:"openapi",version:uI,payloadSchema:bTe,payload:ci.runSync(xS(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:t})=>ci.map($p({sourceId:e,label:"OpenAPI",adapterKey:"openapi",version:uI,payloadSchema:bTe,value:t}),({version:r,payload:n})=>({version:r,payload:{specUrl:n.specUrl,defaultHeaders:n.defaultHeaders??null}})),bindingStateFromSource:e=>ci.map(xS(e),t=>({...Rp,specUrl:t.specUrl,defaultHeaders:t.defaultHeaders})),sourceConfigFromSource:e=>ci.runSync(ci.map(xS(e),t=>({kind:"openapi",endpoint:e.endpoint,specUrl:t.specUrl,defaultHeaders:t.defaultHeaders}))),validateSource:e=>ci.gen(function*(){let t=yield*xS(e);return{...e,bindingVersion:uI,binding:{specUrl:t.specUrl,defaultHeaders:t.defaultHeaders}}}),shouldAutoProbe:e=>e.enabled&&(e.status==="draft"||e.status==="probing"),discoveryPriority:({normalizedUrl:e})=>ym(e)?50:250,detectSource:({normalizedUrl:e,headers:t})=>HW({normalizedUrl:e,headers:t}),syncCatalog:({source:e,resolveAuthMaterialForSlot:t})=>ci.gen(function*(){let r=yield*xS(e),n=yield*t("import"),o=yield*Gxt({url:r.specUrl,headers:{...r.defaultHeaders,...n.headers},queryParams:n.queryParams,cookies:n.cookies}).pipe(ci.mapError(c=>D_(c)?c:new Error(`Failed fetching OpenAPI spec for ${e.id}: ${c.message}`))),i=yield*ib(e.name,o).pipe(ci.mapError(c=>c instanceof Error?c:new Error(String(c)))),a=uF(i),s=Date.now();return Fp({fragment:STe({source:e,documents:[{documentKind:"openapi",documentKey:r.specUrl,contentText:o,fetchedAt:s}],operations:a.map(c=>tEt({definition:c,refHintTable:i.refHintTable}))}),importMetadata:Is({source:e,adapterKey:"openapi"}),sourceHash:i.sourceHash})}),invoke:e=>ci.tryPromise({try:async()=>{let t=ci.runSync(xS(e.source)),r=xm({executableId:e.executable.id,label:"OpenAPI",version:e.executable.bindingVersion,expectedVersion:Ca,schema:jW,value:e.executable.binding}),n=Hxt(e.args),o=Wxt(r.invocation.pathTemplate,n,r.invocation),i={...t.defaultHeaders},a=[],s=[];for(let S of r.invocation.parameters){if(S.location==="path")continue;let b=xTe(n,S);if(b==null){if(S.required)throw new Error(`Missing required ${S.location} parameter ${S.name}`);continue}let E=lI(S,b);if(E.kind==="query"){a.push(...E.entries);continue}if(E.kind==="header"){i[S.name]=E.value;continue}E.kind==="cookie"&&s.push(...E.pairs.map(I=>`${I.name}=${encodeURIComponent(I.value)}`))}let c;if(r.invocation.requestBody){let S=n.body??n.input;if(S!==void 0){let b=mF({requestBody:r.invocation.requestBody,body:n_({body:S,bodyValues:e.auth.bodyValues,label:`${r.method.toUpperCase()} ${r.path}`})});i["content-type"]=b.contentType,c=b.body}}let p=eEt(Yxt({endpoint:e.source.endpoint,providerData:r}),o),d=gu({url:p,queryParams:e.auth.queryParams}),f=fF(d,a),m=Tc({headers:{...i,...e.auth.headers},cookies:{...e.auth.cookies}});if(s.length>0){let S=m.cookie;m.cookie=S?`${S}; ${s.join("; ")}`:s.join("; ")}let y=await fetch(f.toString(),{method:r.method.toUpperCase(),headers:m,...c!==void 0?{body:typeof c=="string"?c:new Uint8Array(c).buffer}:{}}),g=await Xxt(y);return{data:y.ok?g:null,error:y.ok?null:g,headers:Qxt(y),status:y.status}},catch:t=>t instanceof Error?t:new Error(String(t))})};var TTe=[ETe,K1e,fge,hce];import*as Yl from"effect/Effect";import*as ATe from"effect/Schema";var aQ=ATe.Struct({}),pI=1,rEt=(e,t)=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&t.some(r=>Object.prototype.hasOwnProperty.call(e,r)),DTe=e=>Yl.gen(function*(){return rEt(e.binding,["specUrl","defaultHeaders","transport","queryParams","headers"])?yield*Ne("sources/source-adapters/internal","internal sources cannot define HTTP source settings"):yield*Mp({sourceId:e.id,label:"internal",version:e.bindingVersion,expectedVersion:pI,schema:aQ,value:e.binding,allowedKeys:[]})}),ITe={key:"internal",displayName:"Internal",catalogKind:"internal",connectStrategy:"none",credentialStrategy:"none",bindingConfigVersion:pI,providerKey:"generic_internal",defaultImportAuthPolicy:"none",connectPayloadSchema:null,executorAddInputSchema:null,executorAddHelpText:null,executorAddInputSignatureWidth:null,localConfigBindingSchema:null,localConfigBindingFromSource:()=>null,serializeBindingConfig:e=>Lp({adapterKey:e.kind,version:pI,payloadSchema:aQ,payload:Yl.runSync(DTe(e))}),deserializeBindingConfig:({id:e,bindingConfigJson:t})=>Yl.map($p({sourceId:e,label:"internal",adapterKey:"internal",version:pI,payloadSchema:aQ,value:t}),({version:r,payload:n})=>({version:r,payload:n})),bindingStateFromSource:()=>Yl.succeed(Rp),sourceConfigFromSource:e=>({kind:"internal",endpoint:e.endpoint}),validateSource:e=>Yl.gen(function*(){return yield*DTe(e),{...e,bindingVersion:pI,binding:{}}}),shouldAutoProbe:()=>!1,syncCatalog:({source:e})=>Yl.succeed(Fp({fragment:{version:"ir.v1.fragment"},importMetadata:{...Is({source:e,adapterKey:"internal"}),importerVersion:"ir.v1.internal",sourceConfigHash:"internal"},sourceHash:null})),invoke:()=>Yl.fail(Ne("sources/source-adapters/internal","Internal sources do not support persisted adapter invocation"))};var yF=[...TTe,ITe],Qc=Ose(yF),nEt=Qc.connectableSourceAdapters,tGt=Qc.connectPayloadSchema,sQ=Qc.executorAddableSourceAdapters,gF=Qc.executorAddInputSchema,oEt=Qc.localConfigurableSourceAdapters,gf=Qc.getSourceAdapter,_i=Qc.getSourceAdapterForSource,cQ=Qc.findSourceAdapterByProviderKey,Vh=Qc.sourceBindingStateFromSource,iEt=Qc.sourceAdapterCatalogKind,Kh=Qc.sourceAdapterRequiresInteractiveConnect,ES=Qc.sourceAdapterUsesCredentialManagedAuth,aEt=Qc.isInternalSourceAdapter;import*as Sf from"effect/Effect";var wTe=e=>`${e.providerId}:${e.handle}`,SF=(e,t,r)=>Sf.gen(function*(){if(t.previous===null)return;let n=new Set((t.next===null?[]:JT(t.next)).map(wTe)),o=JT(t.previous).filter(i=>!n.has(wTe(i)));yield*Sf.forEach(o,i=>Sf.either(r(i)),{discard:!0})}),vF=e=>new Set(e.flatMap(t=>t?[Up(t)]:[]).flatMap(t=>t?[t.grantId]:[])),lQ=e=>{let t=e.authArtifacts.filter(r=>r.slot===e.slot);if(e.actorScopeId!==void 0){let r=t.find(n=>n.actorScopeId===e.actorScopeId);if(r)return r}return t.find(r=>r.actorScopeId===null)??null},uQ=e=>e.authArtifacts.find(t=>t.slot===e.slot&&t.actorScopeId===(e.actorScopeId??null))??null,kTe=(e,t,r)=>Sf.gen(function*(){let n=yield*e.authArtifacts.listByScopeAndSourceId({scopeId:t.scopeId,sourceId:t.sourceId});return yield*e.authArtifacts.removeByScopeAndSourceId({scopeId:t.scopeId,sourceId:t.sourceId}),yield*Sf.forEach(n,o=>k_(e,{authArtifactId:o.id},r),{discard:!0}),yield*Sf.forEach(n,o=>SF(e,{previous:o,next:null},r),{discard:!0}),n.length});var pQ="config:",dQ=e=>`${pQ}${e}`,dI=e=>e.startsWith(pQ)?e.slice(pQ.length):null;var sEt=/[^a-z0-9]+/g,CTe=e=>e.trim().toLowerCase().replace(sEt,"-").replace(/^-+/,"").replace(/-+$/,"");var eu=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},bF=e=>JSON.parse(JSON.stringify(e)),PTe=(e,t)=>{let r=eu(e.namespace)??eu(e.name)??"source",n=CTe(r)||"source",o=n,i=2;for(;t.has(o);)o=`${n}-${i}`,i+=1;return Mn.make(o)},cEt=e=>{let t=eu(e?.secrets?.defaults?.env);return t!==null&&e?.secrets?.providers?.[t]?t:e?.secrets?.providers?.default?"default":null},OTe=e=>{if(e.auth===void 0)return e.existing??{kind:"none"};if(typeof e.auth=="string"){let t=cEt(e.config);return{kind:"bearer",headerName:"Authorization",prefix:"Bearer ",token:{providerId:t?dQ(t):"env",handle:e.auth}}}if(typeof e.auth=="object"&&e.auth!==null){let t=e.auth,r=eu(t.provider),n=r?r==="params"?"params":dQ(r):t.source==="env"?"env":t.source==="params"?"params":null,o=eu(t.id);if(n&&o)return{kind:"bearer",headerName:"Authorization",prefix:"Bearer ",token:{providerId:n,handle:o}}}return e.existing??{kind:"none"}},lEt=e=>{if(e.source.auth.kind!=="bearer")return e.existingConfigAuth;if(e.source.auth.token.providerId==="env")return e.source.auth.token.handle;if(e.source.auth.token.providerId==="params")return{source:"params",provider:"params",id:e.source.auth.token.handle};let t=dI(e.source.auth.token.providerId);if(t!==null){let r=e.config?.secrets?.providers?.[t];if(r)return{source:r.source,provider:t,id:e.source.auth.token.handle}}return e.existingConfigAuth},NTe=e=>{let t=lEt({source:e.source,existingConfigAuth:e.existingConfigAuth,config:e.config}),r={...eu(e.source.name)!==eu(e.source.id)?{name:e.source.name}:{},...eu(e.source.namespace)!==eu(e.source.id)?{namespace:e.source.namespace??void 0}:{},...e.source.enabled===!1?{enabled:!1}:{},connection:{endpoint:e.source.endpoint,...t!==void 0?{auth:t}:{}}},n=_i(e.source);if(n.localConfigBindingSchema===null)throw new o3({message:`Unsupported source kind for local config: ${e.source.kind}`,kind:e.source.kind});return{kind:e.source.kind,...r,binding:bF(n.localConfigBindingFromSource(e.source))}};var _Q=e=>Mi.gen(function*(){let t=e.loadedConfig.config?.sources?.[e.sourceId];if(!t)return yield*new KT({message:`Configured source not found for id ${e.sourceId}`,sourceId:e.sourceId});let r=e.scopeState.sources[e.sourceId],n=gf(t.kind),o=yield*n.validateSource({id:Mn.make(e.sourceId),scopeId:e.scopeId,name:eu(t.name)??e.sourceId,kind:t.kind,endpoint:t.connection.endpoint.trim(),status:r?.status??(t.enabled??!0?"connected":"draft"),enabled:t.enabled??!0,namespace:eu(t.namespace)??e.sourceId,bindingVersion:n.bindingConfigVersion,binding:t.binding,importAuthPolicy:n.defaultImportAuthPolicy,importAuth:{kind:"none"},auth:OTe({auth:t.connection.auth,config:e.loadedConfig.config,existing:null}),sourceHash:r?.sourceHash??null,lastError:r?.lastError??null,createdAt:r?.createdAt??Date.now(),updatedAt:r?.updatedAt??Date.now()}),i=lQ({authArtifacts:e.authArtifacts.filter(c=>c.sourceId===o.id),actorScopeId:e.actorScopeId,slot:"runtime"}),a=lQ({authArtifacts:e.authArtifacts.filter(c=>c.sourceId===o.id),actorScopeId:e.actorScopeId,slot:"import"});return{source:{...o,auth:i===null?o.auth:X6(i),importAuth:o.importAuthPolicy==="separate"?a===null?o.importAuth:X6(a):{kind:"none"}},sourceId:e.sourceId}}),xF=(e,t,r={})=>Mi.gen(function*(){let n=yield*Kg(e,t),o=yield*e.executorState.authArtifacts.listByScopeId(t),i=yield*Mi.forEach(Object.keys(n.loadedConfig.config?.sources??{}),a=>Mi.map(_Q({scopeId:t,loadedConfig:n.loadedConfig,scopeState:n.scopeState,sourceId:Mn.make(a),actorScopeId:r.actorScopeId,authArtifacts:o}),({source:s})=>s));return yield*Mi.annotateCurrentSpan("executor.source.count",i.length),i}).pipe(Mi.withSpan("source.store.load_scope",{attributes:{"executor.scope.id":t}})),fQ=(e,t,r={})=>Mi.gen(function*(){let n=yield*Kg(e,t),o=yield*xF(e,t,r),i=yield*Mi.forEach(o,a=>Mi.map(e.sourceArtifactStore.read({sourceId:a.id}),s=>s===null?null:{source:a,snapshot:s.snapshot}));yield*e.sourceTypeDeclarationsRefresher.refreshWorkspaceInBackground({entries:i.filter(a=>a!==null)})}).pipe(Mi.withSpan("source.types.refresh_scope.schedule",{attributes:{"executor.scope.id":t}})),FTe=e=>e.enabled===!1||e.status==="auth_required"||e.status==="error"||e.status==="draft",RTe=(e,t,r={})=>Mi.gen(function*(){let[n,o,i]=yield*Mi.all([xF(e,t,{actorScopeId:r.actorScopeId}),e.executorState.authArtifacts.listByScopeId(t),e.executorState.secretMaterials.listAll().pipe(Mi.map(c=>new Set(c.map(p=>String(p.id)))))]),a=new Map(n.map(c=>[c.id,c.name])),s=new Map;for(let c of o)for(let p of JT(c)){if(!i.has(p.handle))continue;let d=s.get(p.handle)??[];d.some(f=>f.sourceId===c.sourceId)||(d.push({sourceId:c.sourceId,sourceName:a.get(c.sourceId)??c.sourceId}),s.set(p.handle,d))}return s}),EF=(e,t)=>Mi.gen(function*(){let r=yield*Kg(e,t.scopeId),n=yield*e.executorState.authArtifacts.listByScopeId(t.scopeId);return r.loadedConfig.config?.sources?.[t.sourceId]?(yield*_Q({scopeId:t.scopeId,loadedConfig:r.loadedConfig,scopeState:r.scopeState,sourceId:t.sourceId,actorScopeId:t.actorScopeId,authArtifacts:n})).source:yield*new KT({message:`Source not found: scopeId=${t.scopeId} sourceId=${t.sourceId}`,sourceId:t.sourceId})}).pipe(Mi.withSpan("source.store.load_by_id",{attributes:{"executor.scope.id":t.scopeId,"executor.source.id":t.sourceId}}));import*as bf from"effect/Effect";import*as wd from"effect/Effect";import*as mQ from"effect/Option";var uEt=e=>Up(e),pEt=e=>uEt(e)?.grantId??null,hQ=(e,t)=>wd.map(e.authArtifacts.listByScopeId(t.scopeId),r=>r.filter(n=>{let o=pEt(n);return o!==null&&(t.grantId==null||o===t.grantId)})),LTe=(e,t)=>wd.gen(function*(){let r=yield*e.providerAuthGrants.getById(t.grantId);return mQ.isNone(r)||r.value.orphanedAt===null?!1:(yield*e.providerAuthGrants.upsert({...r.value,orphanedAt:null,updatedAt:Date.now()}),!0)}),yQ=(e,t)=>wd.gen(function*(){if((yield*hQ(e,t)).length>0)return!1;let n=yield*e.providerAuthGrants.getById(t.grantId);if(mQ.isNone(n)||n.value.scopeId!==t.scopeId)return!1;let o=n.value;return o.orphanedAt!==null?!1:(yield*e.providerAuthGrants.upsert({...o,orphanedAt:Date.now(),updatedAt:Date.now()}),!0)}),$Te=(e,t,r)=>wd.gen(function*(){yield*r(t.grant.refreshToken).pipe(wd.either,wd.ignore)});import*as op from"effect/Effect";var bn=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},MTe=e=>_i(e).sourceConfigFromSource(e),dEt=e=>_i(e).catalogKind,_Et=e=>_i(e).key,fEt=e=>_i(e).providerKey,jTe=e=>Dc(e).slice(0,24),mEt=e=>JSON.stringify({catalogKind:dEt(e),adapterKey:_Et(e),providerKey:fEt(e),sourceConfig:MTe(e)}),BTe=e=>JSON.stringify(MTe(e)),DF=e=>Rc.make(`src_catalog_${jTe(mEt(e))}`),gQ=e=>Tm.make(`src_catalog_rev_${jTe(BTe(e))}`),TF=e=>op.gen(function*(){if(e===void 0||e.kind==="none")return{kind:"none"};if(e.kind==="bearer"){let a=bn(e.headerName)??"Authorization",s=e.prefix??"Bearer ",c=bn(e.token.providerId),p=bn(e.token.handle);return c===null||p===null?yield*Ne("sources/source-definitions","Bearer auth requires a token secret ref"):{kind:"bearer",headerName:a,prefix:s,token:{providerId:c,handle:p}}}if(e.kind==="oauth2_authorized_user"){let a=bn(e.headerName)??"Authorization",s=e.prefix??"Bearer ",c=bn(e.refreshToken.providerId),p=bn(e.refreshToken.handle);if(c===null||p===null)return yield*Ne("sources/source-definitions","OAuth2 authorized-user auth requires a refresh token secret ref");let d=null;if(e.clientSecret!==null){let y=bn(e.clientSecret.providerId),g=bn(e.clientSecret.handle);if(y===null||g===null)return yield*Ne("sources/source-definitions","OAuth2 authorized-user client secret ref must include providerId and handle");d={providerId:y,handle:g}}let f=bn(e.tokenEndpoint),m=bn(e.clientId);return f===null||m===null?yield*Ne("sources/source-definitions","OAuth2 authorized-user auth requires tokenEndpoint and clientId"):{kind:"oauth2_authorized_user",headerName:a,prefix:s,tokenEndpoint:f,clientId:m,clientAuthentication:e.clientAuthentication,clientSecret:d,refreshToken:{providerId:c,handle:p},grantSet:e.grantSet??null}}if(e.kind==="provider_grant_ref"){let a=bn(e.headerName)??"Authorization",s=e.prefix??"Bearer ",c=bn(e.grantId);return c===null?yield*Ne("sources/source-definitions","Provider grant auth requires a grantId"):{kind:"provider_grant_ref",grantId:Bp.make(c),providerKey:bn(e.providerKey)??"",requiredScopes:e.requiredScopes.map(p=>p.trim()).filter(p=>p.length>0),headerName:a,prefix:s}}if(e.kind==="mcp_oauth"){let a=bn(e.redirectUri),s=bn(e.accessToken.providerId),c=bn(e.accessToken.handle);if(a===null||s===null||c===null)return yield*Ne("sources/source-definitions","MCP OAuth auth requires redirectUri and access token secret ref");let p=null;if(e.refreshToken!==null){let f=bn(e.refreshToken.providerId),m=bn(e.refreshToken.handle);if(f===null||m===null)return yield*Ne("sources/source-definitions","MCP OAuth refresh token ref must include providerId and handle");p={providerId:f,handle:m}}let d=bn(e.tokenType)??"Bearer";return{kind:"mcp_oauth",redirectUri:a,accessToken:{providerId:s,handle:c},refreshToken:p,tokenType:d,expiresIn:e.expiresIn??null,scope:bn(e.scope),resourceMetadataUrl:bn(e.resourceMetadataUrl),authorizationServerUrl:bn(e.authorizationServerUrl),resourceMetadataJson:bn(e.resourceMetadataJson),authorizationServerMetadataJson:bn(e.authorizationServerMetadataJson),clientInformationJson:bn(e.clientInformationJson)}}let t=bn(e.headerName)??"Authorization",r=e.prefix??"Bearer ",n=bn(e.accessToken.providerId),o=bn(e.accessToken.handle);if(n===null||o===null)return yield*Ne("sources/source-definitions","OAuth2 auth requires an access token secret ref");let i=null;if(e.refreshToken!==null){let a=bn(e.refreshToken.providerId),s=bn(e.refreshToken.handle);if(a===null||s===null)return yield*Ne("sources/source-definitions","OAuth2 refresh token ref must include providerId and handle");i={providerId:a,handle:s}}return{kind:"oauth2",headerName:t,prefix:r,accessToken:{providerId:n,handle:o},refreshToken:i}}),qTe=(e,t)=>t??gf(e).defaultImportAuthPolicy,hEt=e=>op.gen(function*(){return e.importAuthPolicy!=="separate"&&e.importAuth.kind!=="none"?yield*Ne("sources/source-definitions","importAuth must be none unless importAuthPolicy is separate"):e}),UTe=e=>op.flatMap(hEt(e),t=>op.map(_i(t).validateSource(t),r=>r)),TS=e=>op.gen(function*(){let t=yield*TF(e.payload.auth),r=yield*TF(e.payload.importAuth),n=qTe(e.payload.kind,e.payload.importAuthPolicy);return yield*UTe({id:e.sourceId,scopeId:e.scopeId,name:e.payload.name.trim(),kind:e.payload.kind,endpoint:e.payload.endpoint.trim(),status:e.payload.status??"draft",enabled:e.payload.enabled??!0,namespace:bn(e.payload.namespace),bindingVersion:gf(e.payload.kind).bindingConfigVersion,binding:e.payload.binding??{},importAuthPolicy:n,importAuth:r,auth:t,sourceHash:bn(e.payload.sourceHash),lastError:bn(e.payload.lastError),createdAt:e.now,updatedAt:e.now})}),vf=e=>op.gen(function*(){let t=e.payload.auth===void 0?e.source.auth:yield*TF(e.payload.auth),r=e.payload.importAuth===void 0?e.source.importAuth:yield*TF(e.payload.importAuth),n=qTe(e.source.kind,e.payload.importAuthPolicy??e.source.importAuthPolicy);return yield*UTe({...e.source,name:e.payload.name!==void 0?e.payload.name.trim():e.source.name,endpoint:e.payload.endpoint!==void 0?e.payload.endpoint.trim():e.source.endpoint,status:e.payload.status??e.source.status,enabled:e.payload.enabled??e.source.enabled,namespace:e.payload.namespace!==void 0?bn(e.payload.namespace):e.source.namespace,bindingVersion:e.payload.binding!==void 0?gf(e.source.kind).bindingConfigVersion:e.source.bindingVersion,binding:e.payload.binding!==void 0?e.payload.binding:e.source.binding,importAuthPolicy:n,importAuth:r,auth:t,sourceHash:e.payload.sourceHash!==void 0?bn(e.payload.sourceHash):e.source.sourceHash,lastError:e.payload.lastError!==void 0?bn(e.payload.lastError):e.source.lastError,updatedAt:e.now})});var zTe=e=>({id:e.catalogRevisionId??gQ(e.source),catalogId:e.catalogId,revisionNumber:e.revisionNumber,sourceConfigJson:BTe(e.source),importMetadataJson:e.importMetadataJson??null,importMetadataHash:e.importMetadataHash??null,snapshotHash:e.snapshotHash??null,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}),JTe=e=>({sourceRecord:{id:e.source.id,scopeId:e.source.scopeId,catalogId:e.catalogId,catalogRevisionId:e.catalogRevisionId,name:e.source.name,kind:e.source.kind,endpoint:e.source.endpoint,status:e.source.status,enabled:e.source.enabled,namespace:e.source.namespace,importAuthPolicy:e.source.importAuthPolicy,bindingConfigJson:_i(e.source).serializeBindingConfig(e.source),sourceHash:e.source.sourceHash,lastError:e.source.lastError,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt},runtimeAuthArtifact:zT({source:e.source,auth:e.source.auth,slot:"runtime",actorScopeId:e.actorScopeId,existingAuthArtifactId:e.existingRuntimeAuthArtifactId??cg.make(`auth_art_${crypto.randomUUID()}`)}),importAuthArtifact:e.source.importAuthPolicy==="separate"?zT({source:e.source,auth:e.source.importAuth,slot:"import",actorScopeId:e.actorScopeId,existingAuthArtifactId:e.existingImportAuthArtifactId??cg.make(`auth_art_${crypto.randomUUID()}`)}):null});var VTe=(e,t,r)=>bf.gen(function*(){let n=yield*Kg(e,t.scopeId);if(!n.loadedConfig.config?.sources?.[t.sourceId])return!1;let o=bF(n.loadedConfig.projectConfig??{}),i={...o.sources};delete i[t.sourceId],yield*n.scopeConfigStore.writeProject({config:{...o,sources:i}});let{[t.sourceId]:a,...s}=n.scopeState.sources,c={...n.scopeState,sources:s};yield*n.scopeStateStore.write({state:c}),yield*n.sourceArtifactStore.remove({sourceId:t.sourceId});let p=yield*e.executorState.authArtifacts.listByScopeAndSourceId({scopeId:t.scopeId,sourceId:t.sourceId}),d=vF(p);return yield*e.executorState.sourceAuthSessions.removeByScopeAndSourceId(t.scopeId,t.sourceId),yield*e.executorState.sourceOauthClients.removeByScopeAndSourceId({scopeId:t.scopeId,sourceId:t.sourceId}),yield*kTe(e.executorState,t,r),yield*bf.forEach([...d],f=>yQ(e.executorState,{scopeId:t.scopeId,grantId:f}),{discard:!0}),yield*fQ(e,t.scopeId),!0}),KTe=(e,t,r={},n)=>bf.gen(function*(){let o=yield*Kg(e,t.scopeId),i={...t,id:o.loadedConfig.config?.sources?.[t.id]||o.scopeState.sources[t.id]?t.id:PTe(t,new Set(Object.keys(o.loadedConfig.config?.sources??{})))},a=yield*e.executorState.authArtifacts.listByScopeAndSourceId({scopeId:i.scopeId,sourceId:i.id}),s=uQ({authArtifacts:a,actorScopeId:r.actorScopeId,slot:"runtime"}),c=uQ({authArtifacts:a,actorScopeId:r.actorScopeId,slot:"import"}),p=bF(o.loadedConfig.projectConfig??{}),d={...p.sources},f=d[i.id];d[i.id]=NTe({source:i,existingConfigAuth:f?.connection.auth,config:o.loadedConfig.config}),yield*o.scopeConfigStore.writeProject({config:{...p,sources:d}});let{runtimeAuthArtifact:m,importAuthArtifact:y}=JTe({source:i,catalogId:DF(i),catalogRevisionId:gQ(i),actorScopeId:r.actorScopeId,existingRuntimeAuthArtifactId:s?.id??null,existingImportAuthArtifactId:c?.id??null});m===null?(s!==null&&(yield*k_(e.executorState,{authArtifactId:s.id},n)),yield*e.executorState.authArtifacts.removeByScopeSourceAndActor({scopeId:i.scopeId,sourceId:i.id,actorScopeId:r.actorScopeId??null,slot:"runtime"})):(yield*e.executorState.authArtifacts.upsert(m),s!==null&&s.id!==m.id&&(yield*k_(e.executorState,{authArtifactId:s.id},n))),yield*SF(e.executorState,{previous:s??null,next:m},n),y===null?(c!==null&&(yield*k_(e.executorState,{authArtifactId:c.id},n)),yield*e.executorState.authArtifacts.removeByScopeSourceAndActor({scopeId:i.scopeId,sourceId:i.id,actorScopeId:r.actorScopeId??null,slot:"import"})):(yield*e.executorState.authArtifacts.upsert(y),c!==null&&c.id!==y.id&&(yield*k_(e.executorState,{authArtifactId:c.id},n))),yield*SF(e.executorState,{previous:c??null,next:y},n);let g=vF([s,c]),S=vF([m,y]);yield*bf.forEach([...S],I=>LTe(e.executorState,{grantId:I}),{discard:!0}),yield*bf.forEach([...g].filter(I=>!S.has(I)),I=>yQ(e.executorState,{scopeId:i.scopeId,grantId:I}),{discard:!0});let b=o.scopeState.sources[i.id],E={...o.scopeState,sources:{...o.scopeState.sources,[i.id]:{status:i.status,lastError:i.lastError,sourceHash:i.sourceHash,createdAt:b?.createdAt??i.createdAt,updatedAt:i.updatedAt}}};return yield*o.scopeStateStore.write({state:E}),FTe(i)&&(yield*fQ(e,i.scopeId,r)),yield*EF(e,{scopeId:i.scopeId,sourceId:i.id,actorScopeId:r.actorScopeId})}).pipe(bf.withSpan("source.store.persist",{attributes:{"executor.scope.id":t.scopeId,"executor.source.id":t.id,"executor.source.kind":t.kind,"executor.source.status":t.status}}));var Qo=class extends GTe.Tag("#runtime/RuntimeSourceStoreService")(){},ZTe=HTe.effect(Qo,SQ.gen(function*(){let e=yield*Wn,t=yield*Rs,r=yield*Kc,n=yield*$a,o=yield*Ma,i=yield*hd,a=yield*as,s={executorState:e,runtimeLocalScope:t,scopeConfigStore:r,scopeStateStore:n,sourceArtifactStore:o,sourceTypeDeclarationsRefresher:i};return Qo.of({loadSourcesInScope:(c,p={})=>xF(s,c,p),listLinkedSecretSourcesInScope:(c,p={})=>RTe(s,c,p),loadSourceById:c=>EF(s,c),removeSourceById:c=>VTe(s,c,a),persistSource:(c,p={})=>KTe(s,c,p,a)})}));var rDe=e=>({descriptor:e.tool.descriptor,namespace:e.tool.searchNamespace,searchText:e.tool.searchText,score:e.score}),yEt=e=>{let[t,r]=e.split(".");return r?`${t}.${r}`:t},gEt=e=>e.path,SEt=e=>({path:e.path,searchNamespace:e.searchNamespace,searchText:e.searchText,source:e.source,sourceRecord:e.sourceRecord,capabilityId:e.capabilityId,executableId:e.executableId,capability:e.capability,executable:e.executable,descriptor:e.descriptor,projectedCatalog:e.projectedCatalog}),vEt=e=>e==null?null:JSON.stringify(e,null,2),bEt=(e,t)=>e.toolDescriptors[t.id]?.toolPath.join(".")??"",xEt=(e,t)=>{let r=t.preferredExecutableId!==void 0?e.executables[t.preferredExecutableId]:void 0;if(r)return r;let n=t.executableIds.map(o=>e.executables[o]).find(o=>o!==void 0);if(!n)throw new Error(`Capability ${t.id} has no executable`);return n},cb=(e,t)=>{if(!t)return;let r=e.symbols[t];return r?.kind==="shape"?r:void 0},AF=(e,t)=>{let r={},n=new Set,o=new Set,i=new Set,a=new Map,s=new Set,c=T=>{let k=T.trim();if(k.length===0)return null;let F=k.replace(/[^A-Za-z0-9_]+/g,"_").replace(/_+/g,"_").replace(/^_+|_+$/g,"");return F.length===0?null:/^[A-Za-z_]/.test(F)?F:`shape_${F}`},p=(T,k)=>{let F=cb(e,T);return[...k,F?.title,T].flatMap(O=>typeof O=="string"&&O.trim().length>0?[O]:[])},d=(T,k)=>{let F=a.get(T);if(F)return F;let O=p(T,k);for(let ge of O){let Te=c(ge);if(Te&&!s.has(Te))return a.set(T,Te),s.add(Te),Te}let $=c(T)??"shape",N=$,U=2;for(;s.has(N);)N=`${$}_${String(U)}`,U+=1;return a.set(T,N),s.add(N),N},f=(T,k,F)=>p(T,k)[0]??F,m=(T,k,F)=>{let O=cb(e,T);if(!O)return!0;if(k<0||F.has(T))return!1;let $=new Set(F);return $.add(T),xn.value(O.node).pipe(xn.when({type:"unknown"},()=>!0),xn.when({type:"const"},()=>!0),xn.when({type:"enum"},()=>!0),xn.when({type:"scalar"},()=>!0),xn.when({type:"ref"},N=>m(N.target,k,$)),xn.when({type:"nullable"},N=>m(N.itemShapeId,k-1,$)),xn.when({type:"array"},N=>m(N.itemShapeId,k-1,$)),xn.when({type:"object"},N=>{let U=Object.values(N.fields);return U.length<=8&&U.every(ge=>m(ge.shapeId,k-1,$))}),xn.orElse(()=>!1))},y=T=>m(T,2,new Set),g=(T,k=[])=>{if(n.has(T))return S(T,k);if(!cb(e,T))return{};n.add(T);try{return b(T,k)}finally{n.delete(T)}},S=(T,k=[])=>{let F=d(T,k);if(i.has(T)||o.has(T))return{$ref:`#/$defs/${F}`};let O=cb(e,T);o.add(T);let $=n.has(T);$||n.add(T);try{r[F]=O?b(T,k):{},i.add(T)}finally{o.delete(T),$||n.delete(T)}return{$ref:`#/$defs/${F}`}},b=(T,k=[])=>{let F=cb(e,T);if(!F)return{};let O=f(T,k,"shape"),$=N=>({...F.title?{title:F.title}:{},...F.docs?.description?{description:F.docs.description}:{},...N});return xn.value(F.node).pipe(xn.when({type:"unknown"},()=>$({})),xn.when({type:"const"},N=>$({const:N.value})),xn.when({type:"enum"},N=>$({enum:N.values})),xn.when({type:"scalar"},N=>$({type:N.scalar==="bytes"?"string":N.scalar,...N.scalar==="bytes"?{format:"binary"}:{},...N.format?{format:N.format}:{},...N.constraints})),xn.when({type:"ref"},N=>y(N.target)?g(N.target,k):S(N.target,k)),xn.when({type:"nullable"},N=>$({anyOf:[g(N.itemShapeId,k),{type:"null"}]})),xn.when({type:"allOf"},N=>$({allOf:N.items.map((U,ge)=>g(U,[`${O}_allOf_${String(ge+1)}`]))})),xn.when({type:"anyOf"},N=>$({anyOf:N.items.map((U,ge)=>g(U,[`${O}_anyOf_${String(ge+1)}`]))})),xn.when({type:"oneOf"},N=>$({oneOf:N.items.map((U,ge)=>g(U,[`${O}_option_${String(ge+1)}`])),...N.discriminator?{discriminator:{propertyName:N.discriminator.propertyName,...N.discriminator.mapping?{mapping:Object.fromEntries(Object.entries(N.discriminator.mapping).map(([U,ge])=>[U,S(ge,[U,`${O}_${U}`]).$ref]))}:{}}}:{}})),xn.when({type:"not"},N=>$({not:g(N.itemShapeId,[`${O}_not`])})),xn.when({type:"conditional"},N=>$({if:g(N.ifShapeId,[`${O}_if`]),...N.thenShapeId?{then:g(N.thenShapeId,[`${O}_then`])}:{},...N.elseShapeId?{else:g(N.elseShapeId,[`${O}_else`])}:{}})),xn.when({type:"array"},N=>$({type:"array",items:g(N.itemShapeId,[`${O}_item`]),...N.minItems!==void 0?{minItems:N.minItems}:{},...N.maxItems!==void 0?{maxItems:N.maxItems}:{}})),xn.when({type:"tuple"},N=>$({type:"array",prefixItems:N.itemShapeIds.map((U,ge)=>g(U,[`${O}_item_${String(ge+1)}`])),...N.additionalItems!==void 0?{items:typeof N.additionalItems=="boolean"?N.additionalItems:g(N.additionalItems,[`${O}_item_rest`])}:{}})),xn.when({type:"map"},N=>$({type:"object",additionalProperties:g(N.valueShapeId,[`${O}_value`])})),xn.when({type:"object"},N=>$({type:"object",properties:Object.fromEntries(Object.entries(N.fields).map(([U,ge])=>[U,{...g(ge.shapeId,[U]),...ge.docs?.description?{description:ge.docs.description}:{}}])),...N.required&&N.required.length>0?{required:N.required}:{},...N.additionalProperties!==void 0?{additionalProperties:typeof N.additionalProperties=="boolean"?N.additionalProperties:g(N.additionalProperties,[`${O}_additionalProperty`])}:{},...N.patternProperties?{patternProperties:Object.fromEntries(Object.entries(N.patternProperties).map(([U,ge])=>[U,g(ge,[`${O}_patternProperty`])]))}:{}})),xn.when({type:"graphqlInterface"},N=>$({type:"object",properties:Object.fromEntries(Object.entries(N.fields).map(([U,ge])=>[U,g(ge.shapeId,[U])]))})),xn.when({type:"graphqlUnion"},N=>$({oneOf:N.memberTypeIds.map((U,ge)=>g(U,[`${O}_member_${String(ge+1)}`]))})),xn.exhaustive)},E=(T,k=[])=>{let F=cb(e,T);return F?xn.value(F.node).pipe(xn.when({type:"ref"},O=>E(O.target,k)),xn.orElse(()=>g(T,k))):{}},I=E(t,["input"]);return Object.keys(r).length>0?{...I,$defs:r}:I},nDe=e=>HT({catalog:e.catalog,roots:a3(e)}),EEt=e=>{let t=e.projected.toolDescriptors[e.capability.id],r=t.toolPath.join("."),n=t.interaction.mayRequireApproval||t.interaction.mayElicit?"required":"auto",o=e.includeSchemas?AF(e.projected.catalog,t.callShapeId):void 0,a=e.includeSchemas&&t.resultShapeId?AF(e.projected.catalog,t.resultShapeId):void 0,s=e.includeTypePreviews?e.typeProjector.renderSelfContainedShape(t.callShapeId,{aliasHint:di(...t.toolPath,"call")}):void 0,c=e.includeTypePreviews&&t.resultShapeId?e.typeProjector.renderSelfContainedShape(t.resultShapeId,{aliasHint:di(...t.toolPath,"result")}):void 0;return{path:r,sourceKey:e.source.id,description:e.capability.surface.summary??e.capability.surface.description,interaction:n,contract:{inputTypePreview:s,...c!==void 0?{outputTypePreview:c}:{},...o!==void 0?{inputSchema:o}:{},...a!==void 0?{outputSchema:a}:{}},providerKind:e.executable.adapterKey,providerData:{capabilityId:e.capability.id,executableId:e.executable.id,adapterKey:e.executable.adapterKey,display:e.executable.display}}},oDe=e=>{let t=xEt(e.catalogEntry.projected.catalog,e.capability),r=e.catalogEntry.projected.toolDescriptors[e.capability.id],n=EEt({source:e.catalogEntry.source,projected:e.catalogEntry.projected,capability:e.capability,executable:t,typeProjector:e.catalogEntry.typeProjector,includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews}),o=gEt(n),i=e.catalogEntry.projected.searchDocs[e.capability.id],a=yEt(o),s=[o,a,e.catalogEntry.source.name,e.capability.surface.title,e.capability.surface.summary,e.capability.surface.description,n.contract?.inputTypePreview,n.contract?.outputTypePreview,...i?.tags??[],...i?.protocolHints??[],...i?.authHints??[]].filter(c=>typeof c=="string"&&c.length>0).join(" ").toLowerCase();return{path:o,searchNamespace:a,searchText:s,source:e.catalogEntry.source,sourceRecord:e.catalogEntry.sourceRecord,revision:e.catalogEntry.revision,capabilityId:e.capability.id,executableId:t.id,capability:e.capability,executable:t,projectedDescriptor:r,descriptor:n,projectedCatalog:e.catalogEntry.projected.catalog,typeProjector:e.catalogEntry.typeProjector}},iDe=e=>({id:e.source.id,scopeId:e.source.scopeId,catalogId:e.artifact.catalogId,catalogRevisionId:e.artifact.revision.id,name:e.source.name,kind:e.source.kind,endpoint:e.source.endpoint,status:e.source.status,enabled:e.source.enabled,namespace:e.source.namespace,importAuthPolicy:e.source.importAuthPolicy,bindingConfigJson:JSON.stringify(e.source.binding),sourceHash:e.source.sourceHash,lastError:e.source.lastError,createdAt:e.source.createdAt,updatedAt:e.source.updatedAt}),Gh=class extends eDe.Tag("#runtime/RuntimeSourceCatalogStoreService")(){},TEt=e=>e??null,DEt=e=>JSON.stringify([...e].sort((t,r)=>String(t.id).localeCompare(String(r.id)))),aDe=(e,t)=>qr.gen(function*(){if(e.runtimeLocalScope.installation.scopeId!==t)return yield*qr.fail(Ne("catalog/source/runtime",`Runtime local scope mismatch: expected ${t}, got ${e.runtimeLocalScope.installation.scopeId}`))}),sDe=e=>L6(e.artifact.snapshot),cDe=(e,t)=>qr.gen(function*(){return yield*aDe(e,t.scopeId),yield*e.sourceStore.loadSourcesInScope(t.scopeId,{actorScopeId:t.actorScopeId})}),WTe=(e,t)=>qr.map(cDe(e,t),r=>({scopeId:t.scopeId,actorScopeId:TEt(t.actorScopeId),sourceFingerprint:DEt(r)})),AEt=(e,t)=>qr.gen(function*(){return(yield*qr.forEach(t,n=>qr.gen(function*(){let o=yield*e.sourceArtifactStore.read({sourceId:n.id});if(o===null)return null;let i=sDe({source:n,artifact:o}),a=RT({catalog:i.catalog}),s=nDe(a);return{source:n,sourceRecord:iDe({source:n,artifact:o}),revision:o.revision,snapshot:i,catalog:i.catalog,projected:a,typeProjector:s,importMetadata:i.import}}))).filter(n=>n!==null)}),lDe=(e,t)=>qr.gen(function*(){let r=yield*cDe(e,t);return yield*AEt(e,r)}),uDe=(e,t)=>qr.gen(function*(){yield*aDe(e,t.scopeId);let r=yield*e.sourceStore.loadSourceById({scopeId:t.scopeId,sourceId:t.sourceId,actorScopeId:t.actorScopeId}),n=yield*e.sourceArtifactStore.read({sourceId:r.id});if(n===null)return yield*new n3({message:`Catalog artifact missing for source ${t.sourceId}`,sourceId:t.sourceId});let o=sDe({source:r,artifact:n}),i=RT({catalog:o.catalog}),a=nDe(i);return{source:r,sourceRecord:iDe({source:r,artifact:n}),revision:n.revision,snapshot:o,catalog:o.catalog,projected:i,typeProjector:a,importMetadata:o.import}}),IEt=e=>qr.gen(function*(){let t=yield*Rs,r=yield*Qo,n=yield*Ma;return yield*lDe({runtimeLocalScope:t,sourceStore:r,sourceArtifactStore:n},e)}),pDe=e=>qr.gen(function*(){let t=yield*Rs,r=yield*Qo,n=yield*Ma;return yield*uDe({runtimeLocalScope:t,sourceStore:r,sourceArtifactStore:n},e)}),bQ=e=>qr.succeed(e.catalogs.flatMap(t=>Object.values(t.catalog.capabilities).map(r=>oDe({catalogEntry:t,capability:r,includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews??!0})))),QTe=e=>qr.tryPromise({try:async()=>{let t=HT({catalog:e.catalog,roots:[{shapeId:e.shapeId,aliasHint:e.aliasHint}]}),r=t.renderDeclarationShape(e.shapeId,{aliasHint:e.aliasHint}),n=t.supportingDeclarations(),o=`type ${e.aliasHint} =`;return n.some(a=>a.includes(o))?n.join(` -`):[...n,wEt({catalog:e.catalog,shapeId:e.shapeId,aliasHint:e.aliasHint,body:r})].join(` +`):[...n,kEt({catalog:e.catalog,shapeId:e.shapeId,aliasHint:e.aliasHint,body:r})].join(` -`)},catch:t=>t instanceof Error?t:new Error(String(t))}),WTe=e=>e===void 0?Br.succeed(null):Br.tryPromise({try:()=>e2(e,"typescript"),catch:t=>t instanceof Error?t:new Error(String(t))}),QTe=e=>{let t=gEt(e);return t===null?Br.succeed(null):Br.tryPromise({try:()=>e2(t,"json"),catch:r=>r instanceof Error?r:new Error(String(r))})},AEt=e=>e.length===0?"tool":`${e.slice(0,1).toLowerCase()}${e.slice(1)}`,wEt=e=>{let t=e.catalog.symbols[e.shapeId],r=t?.kind==="shape"?JT({title:t.title,docs:t.docs,deprecated:t.deprecated,includeTitle:!0}):null,n=`type ${e.aliasHint} = ${e.body};`;return r?`${r} -${n}`:n},uDe=e=>{let t=di(...e.projectedDescriptor.toolPath,"call"),r=di(...e.projectedDescriptor.toolPath,"result"),n=e.projectedDescriptor.callShapeId,o=e.projectedDescriptor.resultShapeId??null,i=GT(e.projectedCatalog,n),a=o?r:"unknown",s=AEt(di(...e.projectedDescriptor.toolPath)),c=JT({title:e.capability.surface.title,docs:{...e.capability.surface.summary?{summary:e.capability.surface.summary}:{},...e.capability.surface.description?{description:e.capability.surface.description}:{}},includeTitle:!0});return Br.gen(function*(){let[p,d,f,m,y,g,S,x]=yield*Br.all([WTe(e.descriptor.contract?.inputTypePreview),WTe(e.descriptor.contract?.outputTypePreview),ZTe({catalog:e.projectedCatalog,shapeId:n,aliasHint:t}),o?ZTe({catalog:e.projectedCatalog,shapeId:o,aliasHint:r}):Br.succeed(null),QTe(e.descriptor.contract?.inputSchema??TF(e.projectedCatalog,n)),o?QTe(e.descriptor.contract?.outputSchema??TF(e.projectedCatalog,o)):Br.succeed(null),Br.tryPromise({try:()=>e2(`(${i?"args?":"args"}: ${t}) => Promise<${a}>`,"typescript"),catch:A=>A instanceof Error?A:new Error(String(A))}),Br.tryPromise({try:()=>e2([...c?[c]:[],`declare function ${s}(${i?"args?":"args"}: ${t}): Promise<${a}>;`].join(` -`),"typescript-module"),catch:A=>A instanceof Error?A:new Error(String(A))})]);return{callSignature:S,callDeclaration:x,callShapeId:n,resultShapeId:o,responseSetId:e.projectedDescriptor.responseSetId,input:{shapeId:n,typePreview:p,typeDeclaration:f,schemaJson:y,exampleJson:null},output:{shapeId:o,typePreview:d,typeDeclaration:m,schemaJson:g,exampleJson:null}}})},vQ=e=>Br.succeed(e.catalogs.flatMap(t=>Object.values(t.catalog.capabilities).flatMap(r=>SEt(t.projected,r)===e.path?[rDe({catalogEntry:t,capability:r,includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews??!0})]:[])).at(0)??null);var IEt=e=>Br.gen(function*(){let t=yield*DEt({scopeId:e.scopeId,actorScopeId:e.actorScopeId}),r=yield*vQ({catalogs:t,path:e.path,includeSchemas:e.includeSchemas});return r?{path:r.path,searchNamespace:r.searchNamespace,searchText:r.searchText,source:r.source,sourceRecord:r.sourceRecord,capabilityId:r.capabilityId,executableId:r.executableId,capability:r.capability,executable:r.executable,descriptor:r.descriptor,projectedCatalog:r.projectedCatalog}:null}),pDe=YTe.effect(Vh,Br.gen(function*(){let e=yield*Rs,t=yield*Qo,r=yield*Ma,n={runtimeLocalScope:e,sourceStore:t,sourceArtifactStore:r},o=yield*gQ.make({capacity:32,timeToLive:"10 minutes",lookup:c=>sDe(n,{scopeId:c.scopeId,actorScopeId:c.actorScopeId})}),i=yield*gQ.make({capacity:32,timeToLive:"10 minutes",lookup:c=>Br.gen(function*(){let p=yield*o.get(c);return(yield*SQ({catalogs:p,includeSchemas:!1,includeTypePreviews:!1})).map(yEt)})}),a=c=>Br.flatMap(HTe(n,c),p=>o.get(p)),s=c=>Br.flatMap(HTe(n,c),p=>i.get(p));return Vh.of({loadWorkspaceSourceCatalogs:c=>a(c),loadSourceWithCatalog:c=>cDe(n,c),loadWorkspaceSourceCatalogToolIndex:c=>s({scopeId:c.scopeId,actorScopeId:c.actorScopeId}),loadWorkspaceSourceCatalogToolByPath:c=>c.includeSchemas?IEt(c).pipe(Br.provideService(Rs,e),Br.provideService(Qo,t),Br.provideService(Ma,r)):Br.map(s({scopeId:c.scopeId,actorScopeId:c.actorScopeId}),p=>p.find(d=>d.path===c.path)??null)})}));import*as Jh from"effect/Effect";import*as dDe from"effect/Context";import*as vf from"effect/Effect";import*as _De from"effect/Layer";var kEt=e=>e.enabled&&e.status==="connected"&&_i(e).catalogKind!=="internal",eu=class extends dDe.Tag("#runtime/RuntimeSourceCatalogSyncService")(){},fDe=(e,t)=>vf.gen(function*(){if(e.runtimeLocalScope.installation.scopeId!==t)return yield*vf.fail(Ne("catalog/source/sync",`Runtime local scope mismatch: expected ${t}, got ${e.runtimeLocalScope.installation.scopeId}`))}),CEt=(e,t)=>vf.gen(function*(){if(yield*fDe(e,t.source.scopeId),!kEt(t.source)){let c=yield*e.scopeStateStore.load(),p=c.sources[t.source.id],d={...c,sources:{...c.sources,[t.source.id]:{status:t.source.enabled?t.source.status:"draft",lastError:null,sourceHash:t.source.sourceHash,createdAt:p?.createdAt??t.source.createdAt,updatedAt:Date.now()}}};yield*e.scopeStateStore.write({state:d}),yield*e.sourceTypeDeclarationsRefresher.refreshSourceInBackground({source:t.source,snapshot:null});return}let n=yield*_i(t.source).syncCatalog({source:t.source,resolveSecretMaterial:e.resolveSecretMaterial,resolveAuthMaterialForSlot:c=>e.sourceAuthMaterialService.resolve({source:t.source,slot:c,actorScopeId:t.actorScopeId})}),o=RT(n);yield*e.sourceArtifactStore.write({sourceId:t.source.id,artifact:e.sourceArtifactStore.build({source:t.source,syncResult:n})});let i=yield*e.scopeStateStore.load(),a=i.sources[t.source.id],s={...i,sources:{...i.sources,[t.source.id]:{status:"connected",lastError:null,sourceHash:n.sourceHash,createdAt:a?.createdAt??t.source.createdAt,updatedAt:Date.now()}}};yield*e.scopeStateStore.write({state:s}),yield*e.sourceTypeDeclarationsRefresher.refreshSourceInBackground({source:t.source,snapshot:o})}).pipe(vf.withSpan("source.catalog.sync",{attributes:{"executor.source.id":t.source.id,"executor.source.kind":t.source.kind,"executor.source.namespace":t.source.namespace,"executor.source.endpoint":t.source.endpoint}})),PEt=(e,t)=>vf.gen(function*(){yield*fDe(e,t.source.scopeId);let r=OB({source:t.source,endpoint:t.source.endpoint,manifest:t.manifest}),n=RT(r);yield*e.sourceArtifactStore.write({sourceId:t.source.id,artifact:e.sourceArtifactStore.build({source:t.source,syncResult:r})}),yield*e.sourceTypeDeclarationsRefresher.refreshSourceInBackground({source:t.source,snapshot:n})});var mDe=_De.effect(eu,vf.gen(function*(){let e=yield*Rs,t=yield*$a,r=yield*Ma,n=yield*md,o=yield*Ol,i=yield*Pm,a={runtimeLocalScope:e,scopeStateStore:t,sourceArtifactStore:r,sourceTypeDeclarationsRefresher:n,resolveSecretMaterial:o,sourceAuthMaterialService:i};return eu.of({sync:s=>CEt(a,s),persistMcpCatalogSnapshotFromManifest:s=>PEt(a,s)})}));var OEt=e=>e.enabled&&e.status==="connected"&&_i(e).catalogKind!=="internal",hDe=e=>Jh.gen(function*(){let t=yield*Rs,r=yield*Qo,n=yield*Ma,o=yield*eu,i=yield*r.loadSourcesInScope(e.scopeId,{actorScopeId:e.actorScopeId});for(let a of i)!OEt(a)||(yield*n.read({sourceId:a.id}))!==null||(yield*o.sync({source:a,actorScopeId:e.actorScopeId}).pipe(Jh.catchAll(()=>Jh.void)))}).pipe(Jh.withSpan("source.catalog.reconcile_missing",{attributes:{"executor.scope.id":e.scopeId}}));import*as yDe from"effect/Context";import*as Kh from"effect/Deferred";import*as ga from"effect/Effect";import*as gDe from"effect/Layer";var NEt=()=>({stateWaiters:[],currentInteraction:null}),bQ=e=>e===void 0?null:JSON.stringify(e),FEt=new Set(["tokenRef","tokenSecretMaterialId"]),xQ=e=>{if(Array.isArray(e))return e.map(xQ);if(!e||typeof e!="object")return e;let t=Object.entries(e).filter(([r])=>!FEt.has(r)).map(([r,n])=>[r,xQ(n)]);return Object.fromEntries(t)},pw=e=>{if(e.content===void 0)return e;let t=xQ(e.content);return{...e,content:t}},REt=e=>{let t=e.context?.interactionPurpose;return typeof t=="string"&&t.length>0?t:e.path==="executor.sources.add"?e.elicitation.mode==="url"?"source_connect_oauth2":"source_connect_secret":"elicitation"},EQ=()=>{let e=new Map,t=o=>{let i=e.get(o);if(i)return i;let a=NEt();return e.set(o,a),a},r=o=>ga.gen(function*(){let i=t(o.executionId),a=[...i.stateWaiters];i.stateWaiters=[],yield*ga.forEach(a,s=>Kh.succeed(s,o.state),{discard:!0})});return{publishState:r,registerStateWaiter:o=>ga.gen(function*(){let i=yield*Kh.make();return t(o).stateWaiters.push(i),i}),createOnElicitation:({executorState:o,executionId:i})=>a=>ga.gen(function*(){let s=t(i),c=yield*Kh.make(),p=Date.now(),d={id:Is.make(`${i}:${a.interactionId}`),executionId:i,status:"pending",kind:a.elicitation.mode==="url"?"url":"form",purpose:REt(a),payloadJson:bQ({path:a.path,sourceKey:a.sourceKey,args:a.args,context:a.context,elicitation:a.elicitation})??"{}",responseJson:null,responsePrivateJson:null,createdAt:p,updatedAt:p};return yield*o.executionInteractions.insert(d),yield*o.executions.update(i,{status:"waiting_for_interaction",updatedAt:p}),s.currentInteraction={interactionId:d.id,response:c},yield*ga.gen(function*(){yield*r({executionId:i,state:"waiting_for_interaction"});let f=yield*Kh.await(c),m=Date.now();return yield*o.executionInteractions.update(d.id,{status:f.action==="cancel"?"cancelled":"resolved",responseJson:bQ(pw(f)),responsePrivateJson:bQ(f),updatedAt:m}),yield*o.executions.update(i,{status:"running",updatedAt:m}),yield*r({executionId:i,state:"running"}),f}).pipe(ga.ensuring(ga.sync(()=>{s.currentInteraction?.interactionId===d.id&&(s.currentInteraction=null)})))}),resolveInteraction:({executionId:o,response:i})=>ga.gen(function*(){let s=e.get(o)?.currentInteraction;return s?(yield*Kh.succeed(s.response,i),!0):!1}),finishRun:({executionId:o,state:i})=>r({executionId:o,state:i}).pipe(ga.zipRight(zC(o)),ga.ensuring(ga.sync(()=>{e.delete(o)}))),clearRun:o=>zC(o).pipe(ga.ensuring(ga.sync(()=>{e.delete(o)})))}},Xc=class extends yDe.Tag("#runtime/LiveExecutionManagerService")(){},EHt=gDe.sync(Xc,EQ);import*as b2e from"effect/Context";import*as gw from"effect/Effect";import*as $F from"effect/Layer";var LEt="quickjs",TQ=e=>e?.runtime??LEt,DQ=async(e,t)=>{if(t)return t;switch(e){case"deno":{let{makeDenoSubprocessExecutor:r}=await import("@executor/runtime-deno-subprocess");return r()}case"ses":{let{makeSesExecutor:r}=await import("@executor/runtime-ses");return r()}default:{let{makeQuickJsExecutor:r}=await import("@executor/runtime-quickjs");return r()}}};import*as OF from"effect/Effect";import*as kd from"effect/Effect";import*as bDe from"effect/Cause";import*as xDe from"effect/Exit";import*as CQ from"effect/Schema";import*as SDe from"effect/JSONSchema";var _w=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},$Et=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"):[],dw=(e,t)=>e.length<=t?e:`${e.slice(0,Math.max(0,t-4))} ...`,MEt=(e,t,r)=>`${e}${r?"?":""}: ${DF(t)}`,AQ=(e,t)=>{let r=Array.isArray(t[e])?t[e].map(_w):[];if(r.length===0)return null;let n=r.map(o=>DF(o)).filter(o=>o.length>0);return n.length===0?null:n.join(e==="allOf"?" & ":" | ")},DF=(e,t=220)=>{let r=_w(e);if(typeof r.$ref=="string"){let i=r.$ref.trim();return i.length>0?i.split("/").at(-1)??i:"unknown"}if("const"in r)return JSON.stringify(r.const);let n=Array.isArray(r.enum)?r.enum:[];if(n.length>0)return dw(n.map(i=>JSON.stringify(i)).join(" | "),t);let o=AQ("oneOf",r)??AQ("anyOf",r)??AQ("allOf",r);if(o)return dw(o,t);if(r.type==="array"){let i=r.items?DF(r.items,t):"unknown";return dw(`${i}[]`,t)}if(r.type==="object"||r.properties){let i=_w(r.properties),a=Object.keys(i);if(a.length===0)return r.additionalProperties?"Record":"object";let s=new Set($Et(r.required)),c=a.map(p=>MEt(p,_w(i[p]),!s.has(p)));return dw(`{ ${c.join(", ")} }`,t)}return Array.isArray(r.type)?dw(r.type.join(" | "),t):typeof r.type=="string"?r.type:"unknown"},AF=(e,t)=>{let r=wF(e);return r?DF(r,t):"unknown"},wF=e=>{try{return _w(SDe.make(e))}catch{return null}};import*as Id from"effect/Schema";var jEt=Id.Union(Id.Struct({authKind:Id.Literal("none")}),Id.Struct({authKind:Id.Literal("bearer"),tokenRef:pi})),vDe=Id.decodeUnknownSync(jEt),wQ=()=>({authKind:"none"}),IQ=e=>({authKind:"bearer",tokenRef:e});var fw=async(e,t,r=null)=>{let n=n2(t),o=await kd.runPromiseExit(ch(e.pipe(kd.provide(n)),r));if(xDe.isSuccess(o))return o.value;throw bDe.squash(o.cause)},BEt=CQ.standardSchemaV1(hF),qEt=CQ.standardSchemaV1(Up),UEt=AF(hF,320),zEt=AF(Up,260),VEt=wF(hF)??{},JEt=wF(Up)??{},KEt=["Source add input shapes:",...iQ.flatMap(e=>e.executorAddInputSchema&&e.executorAddInputSignatureWidth!==null&&e.executorAddHelpText?[`- ${e.displayName}: ${AF(e.executorAddInputSchema,e.executorAddInputSignatureWidth)}`,...e.executorAddHelpText.map(t=>` ${t}`)]:[])," executor handles the credential setup for you."],GEt=()=>["Add an MCP, OpenAPI, or GraphQL source to the current scope.",...KEt].join(` -`),HEt=e=>{if(typeof e!="string"||e.trim().length===0)throw new Error("Missing execution run id for executor.sources.add");return Il.make(e)},IF=e=>e,kQ=e=>JSON.parse(JSON.stringify(e)),ZEt=e=>e.kind===void 0||zh(e.kind),WEt=e=>typeof e.kind=="string",QEt=e=>ZEt(e.args)?{kind:e.args.kind,endpoint:e.args.endpoint,name:e.args.name??null,namespace:e.args.namespace??null,transport:e.args.transport??null,queryParams:e.args.queryParams??null,headers:e.args.headers??null,command:e.args.command??null,args:e.args.args??null,env:e.args.env??null,cwd:e.args.cwd??null,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId}:"service"in e.args?{...e.args,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId}:"specUrl"in e.args?{...e.args,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId}:{...e.args,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId},XEt=e=>new URL(`/v1/workspaces/${encodeURIComponent(e.scopeId)}/sources/${encodeURIComponent(e.sourceId)}/credentials?interactionId=${encodeURIComponent(`${e.executionId}:${e.interactionId}`)}`,e.baseUrl).toString(),YEt=e=>kd.gen(function*(){if(!e.onElicitation)return yield*Ne("sources/executor-tools","executor.sources.add requires an elicitation-capable host");if(e.localServerBaseUrl===null)return yield*Ne("sources/executor-tools","executor.sources.add requires a local server base URL for credential capture");let t=yield*e.onElicitation({interactionId:e.interactionId,path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.metadata,context:e.invocation,elicitation:{mode:"url",message:e.credentialSlot==="import"?`Open the secure credential page to configure import access for ${e.source.name}`:`Open the secure credential page to connect ${e.source.name}`,url:XEt({baseUrl:e.localServerBaseUrl,scopeId:e.args.scopeId,sourceId:e.args.sourceId,executionId:e.executionId,interactionId:e.interactionId}),elicitationId:e.interactionId}}).pipe(kd.mapError(n=>n instanceof Error?n:new Error(String(n))));if(t.action!=="accept")return yield*Ne("sources/executor-tools",`Source credential setup was not completed for ${e.source.name}`);let r=yield*kd.try({try:()=>vDe(t.content),catch:()=>new Error("Credential capture did not return a valid source auth choice for executor.sources.add")});return r.authKind==="none"?{kind:"none"}:{kind:"bearer",tokenRef:r.tokenRef}}),EDe=e=>({"executor.sources.add":Sl({tool:{description:GEt(),inputSchema:BEt,outputSchema:qEt,execute:async(t,r)=>{let n=HEt(r?.invocation?.runId),o=Is.make(`executor.sources.add:${crypto.randomUUID()}`),i=QEt({args:t,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:n,interactionId:o}),a=await fw(e.sourceAuthService.addExecutorSource(i,r?.onElicitation?{mcpDiscoveryElicitation:{onElicitation:r.onElicitation,path:r.path??IF("executor.sources.add"),sourceKey:r.sourceKey,args:t,metadata:r.metadata,invocation:r.invocation}}:void 0),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);if(a.kind==="connected")return kQ(a.source);if(a.kind==="credential_required"){let p=a;if(!WEt(i))throw new Error("Credential-managed source setup expected a named adapter kind");let d=i;for(;p.kind==="credential_required";){let f=await fw(YEt({args:{...d,scopeId:e.scopeId,sourceId:p.source.id},credentialSlot:p.credentialSlot,source:p.source,executionId:n,interactionId:o,path:r?.path??IF("executor.sources.add"),sourceKey:r?.sourceKey??"executor",localServerBaseUrl:e.sourceAuthService.getLocalServerBaseUrl(),metadata:r?.metadata,invocation:r?.invocation,onElicitation:r?.onElicitation}),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);d=p.credentialSlot==="import"&&d.importAuthPolicy==="separate"?{...d,importAuth:f}:{...d,auth:f};let m=await fw(e.sourceAuthService.addExecutorSource(d,r?.onElicitation?{mcpDiscoveryElicitation:{onElicitation:r.onElicitation,path:r.path??IF("executor.sources.add"),sourceKey:r.sourceKey,args:t,metadata:r.metadata,invocation:r.invocation}}:void 0),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);if(m.kind==="connected")return kQ(m.source);if(m.kind==="credential_required"){p=m;continue}a=m;break}p.kind==="credential_required"&&(a=p)}if(!r?.onElicitation)throw new Error("executor.sources.add requires an elicitation-capable host");if(a.kind!=="oauth_required")throw new Error(`Source add did not reach OAuth continuation for ${a.source.id}`);if((await fw(r.onElicitation({interactionId:o,path:r.path??IF("executor.sources.add"),sourceKey:r.sourceKey,args:i,metadata:r.metadata,context:r.invocation,elicitation:{mode:"url",message:`Open the provider sign-in page to connect ${a.source.name}`,url:a.authorizationUrl,elicitationId:a.sessionId}}),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope)).action!=="accept")throw new Error(`Source add was not completed for ${a.source.id}`);let c=await fw(e.sourceAuthService.getSourceById({scopeId:e.scopeId,sourceId:a.source.id,actorScopeId:e.actorScopeId}),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);return kQ(c)}},metadata:{contract:{inputTypePreview:UEt,outputTypePreview:zEt,inputSchema:VEt,outputSchema:JEt},sourceKey:"executor",interaction:"auto"}})});import*as TDe from"effect/Effect";var DDe=e=>({toolPath:e.tool.path,sourceId:e.tool.source.id,sourceName:e.tool.source.name,sourceKind:e.tool.source.kind,sourceNamespace:e.tool.source.namespace??null,operationKind:e.tool.capability.semantics.effect==="read"?"read":e.tool.capability.semantics.effect==="write"?"write":e.tool.capability.semantics.effect==="delete"?"delete":e.tool.capability.semantics.effect==="action"?"execute":"unknown",interaction:e.tool.descriptor.interaction??"auto",approvalLabel:e.tool.capability.surface.title??e.tool.executable.display?.title??null}),ADe=e=>{let t=hf(e.tool.executable.adapterKey);return t.key!==e.tool.source.kind?TDe.fail(Ne("execution/ir-execution",`Executable ${e.tool.executable.id} expects adapter ${t.key}, but source ${e.tool.source.id} is ${e.tool.source.kind}`)):t.invoke({source:e.tool.source,capability:e.tool.capability,executable:e.tool.executable,descriptor:e.tool.descriptor,catalog:e.tool.projectedCatalog,args:e.args,auth:e.auth,onElicitation:e.onElicitation,context:e.context})};import*as BDe from"effect/Either";import*as xS from"effect/Effect";import*as op from"effect/Schema";var eTt=(e,t)=>{let r=e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*");return new RegExp(`^${r}$`).test(t)},wDe=e=>e.priority+Math.max(1,e.resourcePattern.replace(/\*/g,"").length),tTt=e=>e.interaction==="auto"?{kind:"allow",reason:`${e.approvalLabel??e.toolPath} defaults to allow`,matchedPolicyId:null}:{kind:"require_interaction",reason:`${e.approvalLabel??e.toolPath} defaults to approval`,matchedPolicyId:null},rTt=e=>e.effect==="deny"?{kind:"deny",reason:`Denied by policy ${e.id}`,matchedPolicyId:e.id}:e.approvalMode==="required"?{kind:"require_interaction",reason:`Approval required by policy ${e.id}`,matchedPolicyId:e.id}:{kind:"allow",reason:`Allowed by policy ${e.id}`,matchedPolicyId:e.id},IDe=e=>{let r=e.policies.filter(n=>n.enabled&&n.scopeId===e.context.scopeId&&eTt(n.resourcePattern,e.descriptor.toolPath)).sort((n,o)=>wDe(o)-wDe(n)||n.updatedAt-o.updatedAt)[0];return r?rTt(r):tTt(e.descriptor)};import{createHash as iTt}from"node:crypto";import*as Ba from"effect/Effect";import*as PQ from"effect/Effect";var nTt=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},kDe=(e,t)=>{let r=nTt(e.resourcePattern)??`${e.effect}-${e.approvalMode}`,n=r,o=2;for(;t.has(n);)n=`${r}-${o}`,o+=1;return t.add(n),n},oTt=e=>PQ.gen(function*(){let t=yield*$a,r=yield*t.load(),n=new Set(Object.keys(e.loadedConfig.config?.sources??{})),o=new Set(Object.keys(e.loadedConfig.config?.policies??{})),i={...r,sources:Object.fromEntries(Object.entries(r.sources).filter(([a])=>n.has(a))),policies:Object.fromEntries(Object.entries(r.policies).filter(([a])=>o.has(a)))};return JSON.stringify(i)===JSON.stringify(r)?r:(yield*t.write({state:i}),i)}),CDe=e=>PQ.gen(function*(){return yield*oTt({loadedConfig:e.loadedConfig}),e.loadedConfig.config});import{HttpApiSchema as mw}from"@effect/platform";import*as xi from"effect/Schema";var ab=class extends xi.TaggedError()("ControlPlaneBadRequestError",{operation:xi.String,message:xi.String,details:xi.String},mw.annotations({status:400})){},PDe=class extends xi.TaggedError()("ControlPlaneUnauthorizedError",{operation:xi.String,message:xi.String,details:xi.String},mw.annotations({status:401})){},ODe=class extends xi.TaggedError()("ControlPlaneForbiddenError",{operation:xi.String,message:xi.String,details:xi.String},mw.annotations({status:403})){},bf=class extends xi.TaggedError()("ControlPlaneNotFoundError",{operation:xi.String,message:xi.String,details:xi.String},mw.annotations({status:404})){},Gh=class extends xi.TaggedError()("ControlPlaneStorageError",{operation:xi.String,message:xi.String,details:xi.String},mw.annotations({status:500})){};import*as NDe from"effect/Effect";var Oo=e=>{let t={operation:e,child:r=>Oo(`${e}.${r}`),badRequest:(r,n)=>new ab({operation:e,message:r,details:n}),notFound:(r,n)=>new bf({operation:e,message:r,details:n}),storage:r=>new Gh({operation:e,message:r.message,details:r.message}),unknownStorage:(r,n)=>t.storage(r instanceof Error?new Error(`${r.message}: ${n}`):new Error(n)),mapStorage:r=>r.pipe(NDe.mapError(n=>t.storage(n)))};return t},hw=e=>typeof e=="string"?Oo(e):e;var js={list:Oo("policies.list"),create:Oo("policies.create"),get:Oo("policies.get"),update:Oo("policies.update"),remove:Oo("policies.remove")},OQ=e=>JSON.parse(JSON.stringify(e)),kF=e=>e.scopeRoot?.trim()||e.scopeId,FDe=e=>gv.make(`pol_local_${iTt("sha256").update(`${e.scopeStableKey}:${e.key}`).digest("hex").slice(0,16)}`),NQ=e=>({id:e.state?.id??FDe({scopeStableKey:e.scopeStableKey,key:e.key}),key:e.key,scopeId:e.scopeId,resourcePattern:e.policyConfig.match.trim(),effect:e.policyConfig.action,approvalMode:e.policyConfig.approval==="manual"?"required":"auto",priority:e.policyConfig.priority??0,enabled:e.policyConfig.enabled??!0,createdAt:e.state?.createdAt??Date.now(),updatedAt:e.state?.updatedAt??Date.now()}),bS=e=>Ba.gen(function*(){let t=yield*x1(e),r=yield*Kc,n=yield*$a,o=yield*r.load(),i=yield*n.load(),a=Object.entries(o.config?.policies??{}).map(([s,c])=>NQ({scopeId:e,scopeStableKey:kF({scopeId:e,scopeRoot:t.scope.scopeRoot}),key:s,policyConfig:c,state:i.policies[s]}));return{runtimeLocalScope:t,loadedConfig:o,scopeState:i,policies:a}}),FQ=e=>Ba.all([e.scopeConfigStore.writeProject({config:e.projectConfig}),e.scopeStateStore.write({state:e.scopeState})],{discard:!0}).pipe(Ba.mapError(t=>e.operation.unknownStorage(t,"Failed writing local scope policy files"))),yw=(e,t)=>x1(t).pipe(Ba.mapError(r=>e.notFound("Workspace not found",r instanceof Error?r.message:String(r)))),RDe=e=>Ba.gen(function*(){return yield*yw(js.list,e),(yield*bS(e).pipe(Ba.mapError(r=>js.list.unknownStorage(r,"Failed loading local scope policies")))).policies}),LDe=e=>Ba.gen(function*(){let t=yield*yw(js.create,e.scopeId),r=yield*Kc,n=yield*$a,o=yield*bS(e.scopeId).pipe(Ba.mapError(f=>js.create.unknownStorage(f,"Failed loading local scope policies"))),i=Date.now(),a=OQ(o.loadedConfig.projectConfig??{}),s={...a.policies},c=kDe({resourcePattern:e.payload.resourcePattern??"*",effect:e.payload.effect??"allow",approvalMode:e.payload.approvalMode??"auto"},new Set(Object.keys(s)));s[c]={match:e.payload.resourcePattern??"*",action:e.payload.effect??"allow",approval:(e.payload.approvalMode??"auto")==="required"?"manual":"auto",...e.payload.enabled===!1?{enabled:!1}:{},...(e.payload.priority??0)!==0?{priority:e.payload.priority??0}:{}};let p=o.scopeState.policies[c],d={...o.scopeState,policies:{...o.scopeState.policies,[c]:{id:p?.id??FDe({scopeStableKey:kF({scopeId:e.scopeId,scopeRoot:t.scope.scopeRoot}),key:c}),createdAt:p?.createdAt??i,updatedAt:i}}};return yield*FQ({operation:js.create,scopeConfigStore:r,scopeStateStore:n,projectConfig:{...a,policies:s},scopeState:d}),NQ({scopeId:e.scopeId,scopeStableKey:kF({scopeId:e.scopeId,scopeRoot:t.scope.scopeRoot}),key:c,policyConfig:s[c],state:d.policies[c]})}),$De=e=>Ba.gen(function*(){yield*yw(js.get,e.scopeId);let r=(yield*bS(e.scopeId).pipe(Ba.mapError(n=>js.get.unknownStorage(n,"Failed loading local scope policies")))).policies.find(n=>n.id===e.policyId)??null;return r===null?yield*js.get.notFound("Policy not found",`scopeId=${e.scopeId} policyId=${e.policyId}`):r}),MDe=e=>Ba.gen(function*(){let t=yield*yw(js.update,e.scopeId),r=yield*Kc,n=yield*$a,o=yield*bS(e.scopeId).pipe(Ba.mapError(m=>js.update.unknownStorage(m,"Failed loading local scope policies"))),i=o.policies.find(m=>m.id===e.policyId)??null;if(i===null)return yield*js.update.notFound("Policy not found",`scopeId=${e.scopeId} policyId=${e.policyId}`);let a=OQ(o.loadedConfig.projectConfig??{}),s={...a.policies},c=s[i.key];s[i.key]={...c,...e.payload.resourcePattern!==void 0?{match:e.payload.resourcePattern}:{},...e.payload.effect!==void 0?{action:e.payload.effect}:{},...e.payload.approvalMode!==void 0?{approval:e.payload.approvalMode==="required"?"manual":"auto"}:{},...e.payload.enabled!==void 0?{enabled:e.payload.enabled}:{},...e.payload.priority!==void 0?{priority:e.payload.priority}:{}};let p=Date.now(),d=o.scopeState.policies[i.key],f={...o.scopeState,policies:{...o.scopeState.policies,[i.key]:{id:i.id,createdAt:d?.createdAt??i.createdAt,updatedAt:p}}};return yield*FQ({operation:js.update,scopeConfigStore:r,scopeStateStore:n,projectConfig:{...a,policies:s},scopeState:f}),NQ({scopeId:e.scopeId,scopeStableKey:kF({scopeId:e.scopeId,scopeRoot:t.scope.scopeRoot}),key:i.key,policyConfig:s[i.key],state:f.policies[i.key]})}),jDe=e=>Ba.gen(function*(){let t=yield*yw(js.remove,e.scopeId),r=yield*Kc,n=yield*$a,o=yield*bS(e.scopeId).pipe(Ba.mapError(d=>js.remove.unknownStorage(d,"Failed loading local scope policies"))),i=o.policies.find(d=>d.id===e.policyId)??null;if(i===null)return{removed:!1};let a=OQ(o.loadedConfig.projectConfig??{}),s={...a.policies};delete s[i.key];let{[i.key]:c,...p}=o.scopeState.policies;return yield*FQ({operation:js.remove,scopeConfigStore:r,scopeStateStore:n,projectConfig:{...a,policies:s},scopeState:{...o.scopeState,policies:p}}),{removed:!0}});var aTt=e=>e,sTt={type:"object",properties:{approve:{type:"boolean",description:"Whether to approve this tool execution"}},required:["approve"],additionalProperties:!1},cTt=e=>e.approvalLabel?`Allow ${e.approvalLabel}?`:`Allow tool call: ${e.toolPath}?`,lTt=op.Struct({params:op.optional(op.Record({key:op.String,value:op.String}))}),uTt=op.decodeUnknownEither(lTt),qDe=e=>{let t=uTt(e);if(!(BDe.isLeft(t)||t.right.params===void 0))return{params:t.right.params}},RQ=e=>xS.fail(new Error(e)),UDe=e=>xS.gen(function*(){let t=DDe({tool:e.tool}),r=yield*bS(e.scopeId).pipe(xS.mapError(a=>a instanceof Error?a:new Error(String(a)))),n=IDe({descriptor:t,args:e.args,policies:r.policies,context:{scopeId:e.scopeId}});if(n.kind==="allow")return;if(n.kind==="deny")return yield*RQ(n.reason);if(!e.onElicitation)return yield*RQ(`Approval required for ${t.toolPath}, but no elicitation-capable host is available`);let o=typeof e.context?.callId=="string"&&e.context.callId.length>0?`tool_execution_gate:${e.context.callId}`:`tool_execution_gate:${crypto.randomUUID()}`;if((yield*e.onElicitation({interactionId:o,path:aTt(t.toolPath),sourceKey:e.tool.source.id,args:e.args,context:{...e.context,interactionPurpose:"tool_execution_gate",interactionReason:n.reason,invocationDescriptor:{operationKind:t.operationKind,interaction:t.interaction,approvalLabel:t.approvalLabel,sourceId:e.tool.source.id,sourceName:e.tool.source.name}},elicitation:{mode:"form",message:cTt(t),requestedSchema:sTt}}).pipe(xS.mapError(a=>a instanceof Error?a:new Error(String(a))))).action!=="accept")return yield*RQ(`Tool invocation not approved for ${t.toolPath}`)});var Hh=(e,t)=>ch(e,t);import*as Sa from"effect/Effect";var CF=e=>e.trim().toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),pTt=new Set(["a","an","the","am","as","for","from","get","i","in","is","list","me","my","of","on","or","signed","to","who"]),LQ=e=>e.length>3&&e.endsWith("s")?e.slice(0,-1):e,dTt=(e,t)=>e===t||LQ(e)===LQ(t),PF=(e,t)=>e.some(r=>dTt(r,t)),sb=(e,t)=>{if(e.includes(t))return!0;let r=LQ(t);return r!==t&&e.includes(r)},zDe=e=>pTt.has(e)?.25:1,_Tt=e=>{let[t,r]=e.split(".");return r?`${t}.${r}`:t},fTt=e=>[...e].sort((t,r)=>t.namespace.localeCompare(r.namespace)),mTt=e=>Sa.gen(function*(){let t=yield*e.sourceCatalogStore.loadWorkspaceSourceCatalogs({scopeId:e.scopeId,actorScopeId:e.actorScopeId}),r=new Map;for(let n of t)if(!(!n.source.enabled||n.source.status!=="connected"))for(let o of Object.values(n.projected.toolDescriptors)){let i=_Tt(o.toolPath.join(".")),a=r.get(i);r.set(i,{namespace:i,toolCount:(a?.toolCount??0)+1})}return fTt(r.values())}),hTt=e=>Sa.map(e.sourceCatalogStore.loadWorkspaceSourceCatalogToolIndex({scopeId:e.scopeId,actorScopeId:e.actorScopeId}),t=>t.filter(r=>r.source.enabled&&r.source.status==="connected")),$Q=e=>e.sourceCatalogStore.loadWorkspaceSourceCatalogToolByPath({scopeId:e.scopeId,path:e.path,actorScopeId:e.actorScopeId,includeSchemas:e.includeSchemas}).pipe(Sa.map(t=>t&&t.source.enabled&&t.source.status==="connected"?t:null)),yTt=(e,t)=>{let r=t.path.toLowerCase(),n=t.searchNamespace.toLowerCase(),o=t.path.split(".").at(-1)?.toLowerCase()??"",i=t.capability.surface.title?.toLowerCase()??"",a=t.capability.surface.summary?.toLowerCase()??t.capability.surface.description?.toLowerCase()??"",s=[t.executable.display?.pathTemplate,t.executable.display?.operationId,t.executable.display?.leaf].filter(A=>typeof A=="string"&&A.length>0).join(" ").toLowerCase(),c=CF(`${t.path} ${o}`),p=CF(t.searchNamespace),d=CF(t.capability.surface.title??""),f=CF(s),m=0,y=0,g=0,S=0;for(let A of e){let I=zDe(A);if(PF(c,A)){m+=12*I,y+=1,S+=1;continue}if(PF(p,A)){m+=11*I,y+=1,g+=1;continue}if(PF(d,A)){m+=9*I,y+=1;continue}if(PF(f,A)){m+=8*I,y+=1;continue}if(sb(r,A)||sb(o,A)){m+=6*I,y+=1,S+=1;continue}if(sb(n,A)){m+=5*I,y+=1,g+=1;continue}if(sb(i,A)||sb(s,A)){m+=4*I,y+=1;continue}sb(a,A)&&(m+=.5*I)}let x=e.filter(A=>zDe(A)>=1);if(x.length>=2)for(let A=0;Ar.includes(F)||s.includes(F))&&(m+=10)}return g>0&&S>0&&(m+=8),y===0&&m>0&&(m*=.25),m},VDe=e=>{let t=r2({scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore}),r=i=>i.pipe(Sa.provide(t)),o=Sa.runSync(Sa.cached(r(Sa.gen(function*(){let i=yield*hTt({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore});return lL({entries:i.map(a=>eDe({tool:a,score:s=>yTt(s,a)}))})}))));return{listNamespaces:({limit:i})=>Hh(r(Sa.map(mTt({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore}),a=>a.slice(0,i))),e.runtimeLocalScope),listTools:({namespace:i,query:a,limit:s})=>Hh(Sa.flatMap(o,c=>c.listTools({...i!==void 0?{namespace:i}:{},...a!==void 0?{query:a}:{},limit:s,includeSchemas:!1})),e.runtimeLocalScope),getToolByPath:({path:i,includeSchemas:a})=>Hh(a?Sa.map(r($Q({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore,path:i,includeSchemas:!0})),s=>s?.descriptor??null):Sa.flatMap(o,s=>s.getToolByPath({path:i,includeSchemas:!1})),e.runtimeLocalScope),searchTools:({query:i,namespace:a,limit:s})=>Hh(Sa.flatMap(o,c=>c.searchTools({query:i,...a!==void 0?{namespace:a}:{},limit:s})),e.runtimeLocalScope)}};var JDe=e=>{let t=r2({scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore}),r=y=>y.pipe(OF.provide(t)),n=EDe({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceAuthService:e.sourceAuthService,installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,runtimeLocalScope:e.runtimeLocalScope}),o=e.createInternalToolMap?.({scopeId:e.scopeId,actorScopeId:e.actorScopeId,executorStateStore:e.executorStateStore,sourceStore:e.sourceStore,sourceCatalogSyncService:e.sourceCatalogSyncService,sourceAuthService:e.sourceAuthService,installationStore:e.installationStore,instanceConfigResolver:e.instanceConfigResolver,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,updateSecretMaterial:e.updateSecretMaterial,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,runtimeLocalScope:e.runtimeLocalScope})??{},i=VDe({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,runtimeLocalScope:e.runtimeLocalScope}),a=null,s=zte({getCatalog:()=>{if(a===null)throw new Error("Workspace tool catalog has not been initialized");return a}}),c=Vte([s,n,o,e.localToolRuntime.tools]),p=e_({tools:c});a=qte({catalogs:[p,i]});let d=new Set(Object.keys(c)),f=Yd({tools:c,onElicitation:e.onElicitation}),m=y=>Hh(r(OF.gen(function*(){let g=yield*$Q({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore,path:y.path,includeSchemas:!1});if(!g)return yield*Ne("execution/scope/tool-invoker",`Unknown tool path: ${y.path}`);yield*UDe({scopeId:e.scopeId,tool:g,args:y.args,context:y.context,onElicitation:e.onElicitation});let S=yield*e.sourceAuthMaterialService.resolve({source:g.source,actorScopeId:e.actorScopeId,context:qDe(y.context)});return yield*ADe({scopeId:e.scopeId,actorScopeId:e.actorScopeId,tool:g,auth:S,args:y.args,onElicitation:e.onElicitation,context:y.context})})),e.runtimeLocalScope);return{catalog:a,toolInvoker:{invoke:({path:y,args:g,context:S})=>Hh(d.has(y)?f.invoke({path:y,args:g,context:S}):m({path:y,args:g,context:S}),e.runtimeLocalScope)}}};import*as YDe from"effect/Context";import*as Cd from"effect/Either";import*as Me from"effect/Effect";import*as e2e from"effect/Layer";import*as Ei from"effect/Option";import*as FF from"effect/ParseResult";import*as Fn from"effect/Schema";import{createServer as gTt}from"node:http";import*as MQ from"effect/Effect";var STt=10*6e4,KDe=e=>new Promise((t,r)=>{e.close(n=>{if(n){r(n);return}t()})}),jQ=e=>MQ.tryPromise({try:()=>new Promise((t,r)=>{let n=e.publicHost??"127.0.0.1",o=e.listenHost??"127.0.0.1",i=new URL(e.completionUrl),a=gTt((p,d)=>{try{let f=new URL(p.url??"/",`http://${n}`),m=new URL(i.toString());for(let[y,g]of f.searchParams.entries())m.searchParams.set(y,g);d.statusCode=302,d.setHeader("cache-control","no-store"),d.setHeader("location",m.toString()),d.end()}catch(f){let m=f instanceof Error?f:new Error(String(f));d.statusCode=500,d.setHeader("content-type","text/plain; charset=utf-8"),d.end(`OAuth redirect failed: ${m.message}`)}finally{KDe(a).catch(()=>{})}}),s=null,c=()=>(s!==null&&(clearTimeout(s),s=null),KDe(a).catch(()=>{}));a.once("error",p=>{r(p instanceof Error?p:new Error(String(p)))}),a.listen(0,o,()=>{let p=a.address();if(!p||typeof p=="string"){r(new Error("Failed to resolve OAuth loopback port"));return}s=setTimeout(()=>{c()},e.timeoutMs??STt),typeof s.unref=="function"&&s.unref(),t({redirectUri:`http://${n}:${p.port}`,close:MQ.tryPromise({try:c,catch:d=>d instanceof Error?d:new Error(String(d))})})})}),catch:t=>t instanceof Error?t:new Error(String(t))});var lr=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},zQ=e=>new URL(e).hostname,VQ=e=>{let t=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"");return t.length>0?t:"source"},vTt=e=>{let t=e.split(/[\\/]+/).map(r=>r.trim()).filter(r=>r.length>0);return t[t.length-1]??e},bTt=e=>{if(!e||e.length===0)return null;let t=e.map(r=>r.trim()).filter(r=>r.length>0);return t.length>0?t:null},xTt=e=>{let t=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");return t.length>0?t:"mcp"},ETt=e=>{let t=lr(e.name)??lr(e.endpoint)??lr(e.command)??"mcp";return`stdio://local/${xTt(t)}`},GDe=e=>{if(Qy({transport:e.transport??void 0,command:e.command??void 0}))return xf(lr(e.endpoint)??ETt(e));let t=lr(e.endpoint);if(t===null)throw new Error("Endpoint is required.");return xf(t)},t2e=e=>new URL(`/v1/workspaces/${encodeURIComponent(e.scopeId)}/sources/${encodeURIComponent(e.sourceId)}/credentials/oauth/complete`,e.baseUrl).toString(),TTt=e=>new URL("/v1/oauth/source-auth/callback",e.baseUrl).toString(),DTt=e=>new URL(`/v1/workspaces/${encodeURIComponent(e.scopeId)}/oauth/provider/callback`,e.baseUrl).toString();function xf(e){return new URL(e.trim()).toString()}var r2e=(e,t)=>`https://www.googleapis.com/discovery/v1/apis/${encodeURIComponent(e)}/${encodeURIComponent(t)}/rest`,n2e=(e,t)=>`Google ${e.split(/[^a-zA-Z0-9]+/).filter(Boolean).map(n=>n[0]?.toUpperCase()+n.slice(1)).join(" ")||e} ${t}`,o2e=e=>`google.${e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"")}`,i2e=Fn.Struct({kind:Fn.Literal("source_oauth"),nonce:Fn.String,displayName:Fn.NullOr(Fn.String)}),ATt=Fn.encodeSync(Fn.parseJson(i2e)),wTt=Fn.decodeUnknownOption(Fn.parseJson(i2e)),ITt=e=>ATt({kind:"source_oauth",nonce:crypto.randomUUID(),displayName:lr(e.displayName)}),kTt=e=>{let t=wTt(e);return Ei.isSome(t)?lr(t.value.displayName):null},HDe=e=>{let t=lr(e.displayName)??zQ(e.endpoint);return/\boauth\b/i.test(t)?t:`${t} OAuth`},CTt=(e,t)=>Me.gen(function*(){if(!zh(e.kind))return yield*Ne("sources/source-auth-service",`Expected MCP source, received ${e.kind}`);let r=yield*Uh(e),n=lm({endpoint:e.endpoint,transport:r.transport??void 0,queryParams:r.queryParams??void 0,headers:r.headers??void 0,command:r.command??void 0,args:r.args??void 0,env:r.env??void 0,cwd:r.cwd??void 0});return yield*rg({connect:n,namespace:e.namespace??VQ(e.name),sourceKey:e.id,mcpDiscoveryElicitation:t})}),ES=e=>({status:e.status,errorText:e.errorText,completedAt:e.now,updatedAt:e.now,sessionDataJson:e.sessionDataJson}),JQ=e=>Fn.encodeSync(UB)(e),PTt=Fn.decodeUnknownEither(UB),NF=e=>{if(e.providerKind!=="mcp_oauth")throw new Error(`Unsupported source auth provider for session ${e.id}`);let t=PTt(e.sessionDataJson);if(Cd.isLeft(t))throw new Error(`Invalid source auth session data for ${e.id}: ${FF.TreeFormatter.formatErrorSync(t.left)}`);return t.right},ZDe=e=>{let t=NF(e.session);return JQ({...t,...e.patch})},a2e=e=>Fn.encodeSync(zB)(e),OTt=Fn.decodeUnknownEither(zB),qQ=e=>{if(e.providerKind!=="oauth2_pkce")throw new Error(`Unsupported source auth provider for session ${e.id}`);let t=OTt(e.sessionDataJson);if(Cd.isLeft(t))throw new Error(`Invalid source auth session data for ${e.id}: ${FF.TreeFormatter.formatErrorSync(t.left)}`);return t.right},NTt=e=>{let t=qQ(e.session);return a2e({...t,...e.patch})},s2e=e=>Fn.encodeSync(VB)(e),FTt=Fn.decodeUnknownEither(VB),UQ=e=>{if(e.providerKind!=="oauth2_provider_batch")throw new Error(`Unsupported source auth provider for session ${e.id}`);let t=FTt(e.sessionDataJson);if(Cd.isLeft(t))throw new Error(`Invalid source auth session data for ${e.id}: ${FF.TreeFormatter.formatErrorSync(t.left)}`);return t.right},RTt=e=>{let t=UQ(e.session);return s2e({...t,...e.patch})},WDe=e=>Me.gen(function*(){if(e.session.executionId===null)return;let t=e.response.action==="accept"?{action:"accept"}:{action:"cancel",...e.response.reason?{content:{reason:e.response.reason}}:{}};if(!(yield*e.liveExecutionManager.resolveInteraction({executionId:e.session.executionId,response:t}))){let n=yield*e.executorState.executionInteractions.getPendingByExecutionId(e.session.executionId);Ei.isSome(n)&&(yield*e.executorState.executionInteractions.update(n.value.id,{status:t.action==="cancel"?"cancelled":"resolved",responseJson:QDe(pw(t)),responsePrivateJson:QDe(t),updatedAt:Date.now()}))}}),QDe=e=>e===void 0?null:JSON.stringify(e),aa=Me.fn("source.status.update")((e,t,r)=>Me.gen(function*(){let n=yield*e.loadSourceById({scopeId:t.scopeId,sourceId:t.id,actorScopeId:r.actorScopeId});return yield*e.persistSource({...n,status:r.status,lastError:r.lastError??null,auth:r.auth??n.auth,importAuth:r.importAuth??n.importAuth,updatedAt:Date.now()},{actorScopeId:r.actorScopeId})}).pipe(Me.withSpan("source.status.update",{attributes:{"executor.source.id":t.id,"executor.source.status":r.status}}))),c2e=e=>typeof e.kind=="string",LTt=e=>c2e(e)&&e.kind==="google_discovery",$Tt=e=>c2e(e)&&"endpoint"in e&&SS(e.kind),MTt=e=>e.kind===void 0||zh(e.kind),BQ=e=>Me.gen(function*(){let t=lr(e.rawValue);if(t!==null)return yield*e.storeSecretMaterial({purpose:"auth_material",value:t});let r=lr(e.ref?.providerId),n=lr(e.ref?.handle);return r===null||n===null?null:{providerId:r,handle:n}}),KQ=e=>Me.gen(function*(){let t=e.existing;if(e.auth===void 0&&t&&SS(t.kind))return t.auth;let r=e.auth??{kind:"none"};if(r.kind==="none")return{kind:"none"};let n=lr(r.headerName)??"Authorization",o=r.prefix??"Bearer ";if(r.kind==="bearer"){let s=lr(r.token),c=r.tokenRef??null;if(s===null&&c===null&&t&&SS(t.kind)&&t.auth.kind==="bearer")return t.auth;let p=yield*BQ({rawValue:s,ref:c,storeSecretMaterial:e.storeSecretMaterial});return p===null?yield*Ne("sources/source-auth-service","Bearer auth requires token or tokenRef"):{kind:"bearer",headerName:n,prefix:o,token:p}}if(lr(r.accessToken)===null&&r.accessTokenRef==null&&lr(r.refreshToken)===null&&r.refreshTokenRef==null&&t&&SS(t.kind)&&t.auth.kind==="oauth2")return t.auth;let i=yield*BQ({rawValue:r.accessToken,ref:r.accessTokenRef??null,storeSecretMaterial:e.storeSecretMaterial});if(i===null)return yield*Ne("sources/source-auth-service","OAuth2 auth requires accessToken or accessTokenRef");let a=yield*BQ({rawValue:r.refreshToken,ref:r.refreshTokenRef??null,storeSecretMaterial:e.storeSecretMaterial});return{kind:"oauth2",headerName:n,prefix:o,accessToken:i,refreshToken:a}}),l2e=e=>Me.gen(function*(){let t=SS(e.sourceKind)?"reuse_runtime":"none",r=e.importAuthPolicy??e.existing?.importAuthPolicy??t;if(r==="none"||r==="reuse_runtime")return{importAuthPolicy:r,importAuth:{kind:"none"}};if(e.importAuth===void 0&&e.existing&&e.existing.importAuthPolicy==="separate")return{importAuthPolicy:r,importAuth:e.existing.importAuth};let n=yield*KQ({existing:void 0,auth:e.importAuth??{kind:"none"},storeSecretMaterial:e.storeSecretMaterial});return{importAuthPolicy:r,importAuth:n}}),u2e=e=>!e.explicitAuthProvided&&e.auth.kind==="none"&&(e.existing?.auth.kind??"none")==="none",jTt=Fn.decodeUnknownOption(HB),p2e=Fn.encodeSync(HB),d2e=e=>{if(e.clientMetadataJson===null)return"app_callback";let t=jTt(e.clientMetadataJson);return Ei.isNone(t)?"app_callback":t.value.redirectMode??"app_callback"},RF=e=>e.clientSecretProviderId&&e.clientSecretHandle?{providerId:e.clientSecretProviderId,handle:e.clientSecretHandle}:null,BTt=e=>Me.gen(function*(){let t=_i(e.source),r=t.getOauth2SetupConfig?yield*t.getOauth2SetupConfig({source:e.source,slot:"runtime"}):null;if(r===null)return yield*Ne("sources/source-auth-service",`Source ${e.source.id} does not support OAuth client configuration`);let n=yield*e.executorState.sourceOauthClients.getByScopeSourceAndProvider({scopeId:e.source.scopeId,sourceId:e.source.id,providerKey:r.providerKey}),o=t.normalizeOauthClientInput?yield*t.normalizeOauthClientInput(e.oauthClient):e.oauthClient,i=Ei.isSome(n)?RF(n.value):null,a=o.clientSecret?yield*e.storeSecretMaterial({purpose:"oauth_client_info",value:o.clientSecret}):null,s=Date.now(),c=Ei.isSome(n)?n.value.id:z6.make(`src_oauth_client_${crypto.randomUUID()}`);return yield*e.executorState.sourceOauthClients.upsert({id:c,scopeId:e.source.scopeId,sourceId:e.source.id,providerKey:r.providerKey,clientId:o.clientId,clientSecretProviderId:a?.providerId??null,clientSecretHandle:a?.handle??null,clientMetadataJson:p2e({redirectMode:o.redirectMode??"app_callback"}),createdAt:Ei.isSome(n)?n.value.createdAt:s,updatedAt:s}),i&&(a===null||i.providerId!==a.providerId||i.handle!==a.handle)&&(yield*e.deleteSecretMaterial(i).pipe(Me.either,Me.ignore)),{providerKey:r.providerKey,clientId:o.clientId,clientSecret:a,redirectMode:o.redirectMode??"app_callback"}}),qTt=e=>Me.gen(function*(){let t=_i(e.source),r=t.getOauth2SetupConfig?yield*t.getOauth2SetupConfig({source:e.source,slot:"runtime"}):null;if(r===null)return null;let n=yield*e.executorState.sourceOauthClients.getByScopeSourceAndProvider({scopeId:e.source.scopeId,sourceId:e.source.id,providerKey:r.providerKey});return Ei.isNone(n)?null:{providerKey:n.value.providerKey,clientId:n.value.clientId,clientSecret:RF(n.value),redirectMode:d2e(n.value)}}),_2e=e=>Me.gen(function*(){let t=e.normalizeOauthClient?yield*e.normalizeOauthClient(e.oauthClient):e.oauthClient,r=t.clientSecret?yield*e.storeSecretMaterial({purpose:"oauth_client_info",value:t.clientSecret}):null,n=Date.now(),o=Em.make(`ws_oauth_client_${crypto.randomUUID()}`);return yield*e.executorState.scopeOauthClients.upsert({id:o,scopeId:e.scopeId,providerKey:e.providerKey,label:lr(e.label)??null,clientId:t.clientId,clientSecretProviderId:r?.providerId??null,clientSecretHandle:r?.handle??null,clientMetadataJson:p2e({redirectMode:t.redirectMode??"app_callback"}),createdAt:n,updatedAt:n}),{id:o,providerKey:e.providerKey,label:lr(e.label)??null,clientId:t.clientId,clientSecret:r,redirectMode:t.redirectMode??"app_callback"}}),GQ=e=>Me.gen(function*(){let t=yield*e.executorState.scopeOauthClients.getById(e.oauthClientId);return Ei.isNone(t)?null:!HQ({scopeId:e.scopeId,localScopeState:e.localScopeState}).includes(t.value.scopeId)||t.value.providerKey!==e.providerKey?yield*Ne("sources/source-auth-service",`Scope OAuth client ${e.oauthClientId} is not valid for ${e.providerKey}`):{id:t.value.id,providerKey:t.value.providerKey,label:t.value.label,clientId:t.value.clientId,clientSecret:RF(t.value),redirectMode:d2e(t.value)}}),UTt=(e,t)=>{let r=new Set(e);return t.every(n=>r.has(n))},Ef=e=>[...new Set(e.map(t=>t.trim()).filter(t=>t.length>0))],HQ=e=>{let t=e.localScopeState;return t?t.installation.scopeId!==e.scopeId?[e.scopeId]:[...new Set([e.scopeId,...t.installation.resolutionScopeIds])]:[e.scopeId]},zTt=(e,t)=>{let r=Object.entries(e??{}).sort(([o],[i])=>o.localeCompare(i)),n=Object.entries(t??{}).sort(([o],[i])=>o.localeCompare(i));return r.length===n.length&&r.every(([o,i],a)=>{let s=n[a];return s!==void 0&&s[0]===o&&s[1]===i})},VTt=(e,t)=>e.providerKey===t.providerKey&&e.authorizationEndpoint===t.authorizationEndpoint&&e.tokenEndpoint===t.tokenEndpoint&&e.headerName===t.headerName&&e.prefix===t.prefix&&e.clientAuthentication===t.clientAuthentication&&zTt(e.authorizationParams,t.authorizationParams),f2e=e=>Me.gen(function*(){let t=_i(e),r=t.getOauth2SetupConfig?yield*t.getOauth2SetupConfig({source:e,slot:"runtime"}):null;return r===null?null:{source:e,requiredScopes:Ef(r.scopes),setupConfig:r}}),JTt=e=>Me.gen(function*(){if(e.length===0)return yield*Ne("sources/source-auth-service","Provider auth setup requires at least one target source");let t=e[0].setupConfig;for(let r of e.slice(1))if(!VTt(t,r.setupConfig))return yield*Ne("sources/source-auth-service",`Provider auth setup for ${t.providerKey} requires compatible source OAuth configuration`);return{...t,scopes:Ef(e.flatMap(r=>[...r.requiredScopes]))}}),KTt=e=>Me.gen(function*(){let t=HQ({scopeId:e.scopeId,localScopeState:e.localScopeState});for(let r of t){let o=(yield*e.executorState.providerAuthGrants.listByScopeActorAndProvider({scopeId:r,actorScopeId:e.actorScopeId??null,providerKey:e.providerKey})).find(i=>i.oauthClientId===e.oauthClientId&&UTt(i.grantedScopes,e.requiredScopes));if(o)return Ei.some(o)}return Ei.none()}),GTt=e=>Me.gen(function*(){let t=e.existingGrant??null,r=t?.refreshToken??null;if(e.refreshToken!==null&&(r=yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:e.refreshToken,name:`${e.providerKey} Refresh`})),r===null)return yield*Ne("sources/source-auth-service",`Provider auth grant for ${e.providerKey} is missing a refresh token`);let n=Date.now(),o={id:t?.id??jp.make(`provider_grant_${crypto.randomUUID()}`),scopeId:e.scopeId,actorScopeId:e.actorScopeId??null,providerKey:e.providerKey,oauthClientId:e.oauthClientId,tokenEndpoint:e.tokenEndpoint,clientAuthentication:e.clientAuthentication,headerName:e.headerName,prefix:e.prefix,refreshToken:r,grantedScopes:[...Ef([...t?.grantedScopes??[],...e.grantedScopes])],lastRefreshedAt:t?.lastRefreshedAt??null,orphanedAt:null,createdAt:t?.createdAt??n,updatedAt:n};return yield*e.executorState.providerAuthGrants.upsert(o),t?.refreshToken&&(t.refreshToken.providerId!==r.providerId||t.refreshToken.handle!==r.handle)&&(yield*e.deleteSecretMaterial(t.refreshToken).pipe(Me.either,Me.ignore)),o}),m2e=e=>Me.gen(function*(){let t=_i(e.source),r=t.getOauth2SetupConfig?yield*t.getOauth2SetupConfig({source:e.source,slot:"runtime"}):null;if(r===null)return null;let n=yield*qTt({executorState:e.executorState,source:e.source});if(n===null)return null;let o=xm.make(`src_auth_${crypto.randomUUID()}`),i=crypto.randomUUID(),a=t2e({baseUrl:e.baseUrl,scopeId:e.source.scopeId,sourceId:e.source.id}),c=(e.redirectModeOverride??n.redirectMode)==="loopback"?yield*jQ({completionUrl:a}):null,p=c?.redirectUri??a,d=XB();return yield*Me.gen(function*(){let f=YB({authorizationEndpoint:r.authorizationEndpoint,clientId:n.clientId,redirectUri:p,scopes:[...r.scopes],state:i,codeVerifier:d,extraParams:r.authorizationParams}),m=Date.now();return yield*e.executorState.sourceAuthSessions.upsert({id:o,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,credentialSlot:"runtime",executionId:e.executionId??null,interactionId:e.interactionId??null,providerKind:"oauth2_pkce",status:"pending",state:i,sessionDataJson:a2e({kind:"oauth2_pkce",providerKey:r.providerKey,authorizationEndpoint:r.authorizationEndpoint,tokenEndpoint:r.tokenEndpoint,redirectUri:p,clientId:n.clientId,clientAuthentication:r.clientAuthentication,clientSecret:n.clientSecret,scopes:[...r.scopes],headerName:r.headerName,prefix:r.prefix,authorizationParams:{...r.authorizationParams},codeVerifier:d,authorizationUrl:f}),errorText:null,completedAt:null,createdAt:m,updatedAt:m}),{kind:"oauth_required",source:yield*aa(e.sourceStore,e.source,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null}),sessionId:o,authorizationUrl:f}}).pipe(Me.onError(()=>c?c.close.pipe(Me.orDie):Me.void))}),HTt=e=>Me.gen(function*(){if(e.targetSources.length===0)return yield*Ne("sources/source-auth-service","Provider OAuth setup requires at least one target source");let t=xm.make(`src_auth_${crypto.randomUUID()}`),r=crypto.randomUUID(),n=DTt({baseUrl:e.baseUrl,scopeId:e.scopeId}),i=(e.redirectModeOverride??e.scopeOauthClient.redirectMode)==="loopback"?yield*jQ({completionUrl:n}):null,a=i?.redirectUri??n,s=XB();return yield*Me.gen(function*(){let c=YB({authorizationEndpoint:e.setupConfig.authorizationEndpoint,clientId:e.scopeOauthClient.clientId,redirectUri:a,scopes:[...Ef(e.setupConfig.scopes)],state:r,codeVerifier:s,extraParams:e.setupConfig.authorizationParams}),p=Date.now();yield*e.executorState.sourceAuthSessions.upsert({id:t,scopeId:e.scopeId,sourceId:Mn.make(`oauth_provider_${crypto.randomUUID()}`),actorScopeId:e.actorScopeId??null,credentialSlot:"runtime",executionId:e.executionId??null,interactionId:e.interactionId??null,providerKind:"oauth2_provider_batch",status:"pending",state:r,sessionDataJson:s2e({kind:"provider_oauth_batch",providerKey:e.setupConfig.providerKey,authorizationEndpoint:e.setupConfig.authorizationEndpoint,tokenEndpoint:e.setupConfig.tokenEndpoint,redirectUri:a,oauthClientId:e.scopeOauthClient.id,clientAuthentication:e.setupConfig.clientAuthentication,scopes:[...Ef(e.setupConfig.scopes)],headerName:e.setupConfig.headerName,prefix:e.setupConfig.prefix,authorizationParams:{...e.setupConfig.authorizationParams},targetSources:e.targetSources.map(f=>({sourceId:f.source.id,requiredScopes:[...Ef(f.requiredScopes)]})),codeVerifier:s,authorizationUrl:c}),errorText:null,completedAt:null,createdAt:p,updatedAt:p});let d=yield*aa(e.sourceStore,e.targetSources[0].source,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null});return yield*Me.forEach(e.targetSources.slice(1),f=>aa(e.sourceStore,f.source,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null}).pipe(Me.asVoid),{discard:!0}),{sessionId:t,authorizationUrl:c,source:d}}).pipe(Me.onError(()=>i?i.close.pipe(Me.orDie):Me.void))}),h2e=e=>Me.gen(function*(){let t=yield*JTt(e.targets),r=yield*KTt({executorState:e.executorState,scopeId:e.scopeId,actorScopeId:e.actorScopeId,providerKey:t.providerKey,oauthClientId:e.scopeOauthClient.id,requiredScopes:t.scopes,localScopeState:e.localScopeState});if(Ei.isSome(r))return{kind:"connected",sources:yield*y2e({sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,actorScopeId:e.actorScopeId,grantId:r.value.id,providerKey:r.value.providerKey,headerName:r.value.headerName,prefix:r.value.prefix,targets:e.targets.map(c=>({source:c.source,requiredScopes:c.requiredScopes}))})};let n=lr(e.baseUrl),o=n??e.getLocalServerBaseUrl?.()??null;if(o===null)return yield*Ne("sources/source-auth-service",`Local executor server base URL is unavailable for ${t.providerKey} OAuth setup`);let i=yield*HTt({executorState:e.executorState,sourceStore:e.sourceStore,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId,baseUrl:o,redirectModeOverride:n?"app_callback":void 0,scopeOauthClient:e.scopeOauthClient,setupConfig:t,targetSources:e.targets.map(s=>({source:s.source,requiredScopes:s.requiredScopes}))});return{kind:"oauth_required",sources:yield*Me.forEach(e.targets,s=>e.sourceStore.loadSourceById({scopeId:s.source.scopeId,sourceId:s.source.id,actorScopeId:e.actorScopeId}),{discard:!1}),sessionId:i.sessionId,authorizationUrl:i.authorizationUrl}}),y2e=e=>Me.forEach(e.targets,t=>Me.gen(function*(){let r=yield*aa(e.sourceStore,t.source,{actorScopeId:e.actorScopeId,status:"connected",lastError:null,auth:{kind:"provider_grant_ref",grantId:e.grantId,providerKey:e.providerKey,requiredScopes:[...Ef(t.requiredScopes)],headerName:e.headerName,prefix:e.prefix}});return yield*e.sourceCatalogSync.sync({source:r,actorScopeId:e.actorScopeId}),r}),{discard:!1}),ZTt=e=>Me.gen(function*(){let t=yield*e.executorState.providerAuthGrants.getById(e.grantId);if(Ei.isNone(t)||t.value.scopeId!==e.scopeId)return!1;let r=yield*fQ(e.executorState,{scopeId:e.scopeId,grantId:e.grantId});return yield*Me.forEach(r,n=>Me.gen(function*(){let o=yield*e.sourceStore.loadSourceById({scopeId:n.scopeId,sourceId:n.sourceId,actorScopeId:n.actorScopeId}).pipe(Me.catchAll(()=>Me.succeed(null)));if(o===null){yield*w_(e.executorState,{authArtifactId:n.id},e.deleteSecretMaterial),yield*e.executorState.authArtifacts.removeByScopeSourceAndActor({scopeId:n.scopeId,sourceId:n.sourceId,actorScopeId:n.actorScopeId,slot:n.slot});return}yield*e.sourceStore.persistSource({...o,status:"auth_required",lastError:null,auth:n.slot==="runtime"?{kind:"none"}:o.auth,importAuth:n.slot==="import"?{kind:"none"}:o.importAuth,updatedAt:Date.now()},{actorScopeId:n.actorScopeId}).pipe(Me.asVoid)}),{discard:!0}),yield*RTe(e.executorState,{grant:t.value},e.deleteSecretMaterial),yield*e.executorState.providerAuthGrants.removeById(e.grantId),!0}),XDe=e=>Me.gen(function*(){let t=e.sourceId?null:GDe({endpoint:e.endpoint??null,transport:e.transport??null,command:e.command??null,name:e.name??null}),r=yield*e.sourceId?e.sourceStore.loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId,actorScopeId:e.actorScopeId}).pipe(Me.flatMap(Te=>zh(Te.kind)?Me.succeed(Te):Me.fail(Ne("sources/source-auth-service",`Expected MCP source, received ${Te.kind}`)))):e.sourceStore.loadSourcesInScope(e.scopeId,{actorScopeId:e.actorScopeId}).pipe(Me.map(Te=>Te.find(ke=>zh(ke.kind)&&t!==null&&xf(ke.endpoint)===t))),n=r?yield*Uh(r):null,o=e.command!==void 0?lr(e.command):n?.command??null,i=e.transport!==void 0&&e.transport!==null?e.transport:Qy({transport:n?.transport??void 0,command:o??void 0})?"stdio":n?.transport??"auto";if(i==="stdio"&&o===null)return yield*Ne("sources/source-auth-service","MCP stdio transport requires a command");let a=GDe({endpoint:e.endpoint??r?.endpoint??null,transport:i,command:o,name:e.name??r?.name??null}),s=lr(e.name)??r?.name??(i==="stdio"&&o!==null?vTt(o):zQ(a)),c=lr(e.namespace)??r?.namespace??VQ(s),p=e.enabled??r?.enabled??!0,d=i==="stdio"?null:e.queryParams!==void 0?e.queryParams:n?.queryParams??null,f=i==="stdio"?null:e.headers!==void 0?e.headers:n?.headers??null,m=e.args!==void 0?bTt(e.args):n?.args??null,y=e.env!==void 0?e.env:n?.env??null,g=e.cwd!==void 0?lr(e.cwd):n?.cwd??null,S=Date.now(),x=r?yield*gf({source:r,payload:{name:s,endpoint:a,namespace:c,status:"probing",enabled:p,binding:{transport:i,queryParams:d,headers:f,command:o,args:m,env:y,cwd:g},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:{kind:"none"},lastError:null},now:S}):yield*vS({scopeId:e.scopeId,sourceId:Mn.make(`src_${crypto.randomUUID()}`),payload:{name:s,kind:"mcp",endpoint:a,namespace:c,status:"probing",enabled:p,binding:{transport:i,queryParams:d,headers:f,command:o,args:m,env:y,cwd:g},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:{kind:"none"}},now:S}),A=yield*e.sourceStore.persistSource(x,{actorScopeId:e.actorScopeId});yield*e.sourceCatalogSync.sync({source:A,actorScopeId:e.actorScopeId});let I=yield*Me.either(CTt(A,e.mcpDiscoveryElicitation)),E=yield*Cd.match(I,{onLeft:()=>Me.succeed(null),onRight:Te=>Me.gen(function*(){let ke=yield*aa(e.sourceStore,A,{actorScopeId:e.actorScopeId,status:"connected",lastError:null,auth:{kind:"none"}}),Ve=yield*Me.either(e.sourceCatalogSync.persistMcpCatalogSnapshotFromManifest({source:ke,manifest:Te.manifest}));return yield*Cd.match(Ve,{onLeft:me=>aa(e.sourceStore,ke,{actorScopeId:e.actorScopeId,status:"error",lastError:me.message}).pipe(Me.zipRight(Me.fail(me))),onRight:()=>Me.succeed({kind:"connected",source:ke})})})});if(E)return E;let C=lr(e.baseUrl)??e.getLocalServerBaseUrl?.()??null;if(!C)return yield*Ne("sources/source-auth-service","Local executor server base URL is unavailable for source credential setup");let F=xm.make(`src_auth_${crypto.randomUUID()}`),O=crypto.randomUUID(),$=t2e({baseUrl:C,scopeId:e.scopeId,sourceId:A.id}),N=yield*LT({endpoint:a,redirectUrl:$,state:O}),U=yield*aa(e.sourceStore,A,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null}),ge=Date.now();return yield*e.executorState.sourceAuthSessions.upsert({id:F,scopeId:e.scopeId,sourceId:U.id,actorScopeId:e.actorScopeId??null,credentialSlot:"runtime",executionId:e.executionId??null,interactionId:e.interactionId??null,providerKind:"mcp_oauth",status:"pending",state:O,sessionDataJson:JQ({kind:"mcp_oauth",endpoint:a,redirectUri:$,scope:null,resourceMetadataUrl:N.resourceMetadataUrl,authorizationServerUrl:N.authorizationServerUrl,resourceMetadata:N.resourceMetadata,authorizationServerMetadata:N.authorizationServerMetadata,clientInformation:N.clientInformation,codeVerifier:N.codeVerifier,authorizationUrl:N.authorizationUrl}),errorText:null,completedAt:null,createdAt:ge,updatedAt:ge}),{kind:"oauth_required",source:U,sessionId:F,authorizationUrl:N.authorizationUrl}}),WTt=e=>Me.gen(function*(){let t=xf(e.sourceInput.endpoint),r=e.sourceInput.kind==="openapi"?xf(e.sourceInput.specUrl):null,o=(yield*e.sourceStore.loadSourcesInScope(e.sourceInput.scopeId,{actorScopeId:e.sourceInput.actorScopeId})).find(g=>{if(g.kind!==e.sourceInput.kind||xf(g.endpoint)!==t)return!1;if(e.sourceInput.kind==="openapi"){let S=Me.runSync(Uh(g));return lr(S.specUrl)===r}return!0}),i=lr(e.sourceInput.name)??o?.name??zQ(t),a=lr(e.sourceInput.namespace)??o?.namespace??VQ(i),s=o?yield*Uh(o):null,c=Date.now(),p=yield*KQ({existing:o,auth:e.sourceInput.auth,storeSecretMaterial:e.storeSecretMaterial}),d=yield*l2e({sourceKind:e.sourceInput.kind,existing:o,importAuthPolicy:e.sourceInput.importAuthPolicy??null,importAuth:e.sourceInput.importAuth??null,storeSecretMaterial:e.storeSecretMaterial}),f=o?yield*gf({source:o,payload:{name:i,endpoint:t,namespace:a,status:"probing",enabled:!0,binding:e.sourceInput.kind==="openapi"?{specUrl:r,defaultHeaders:s?.defaultHeaders??null}:{defaultHeaders:s?.defaultHeaders??null},importAuthPolicy:d.importAuthPolicy,importAuth:d.importAuth,auth:p,lastError:null},now:c}):yield*vS({scopeId:e.sourceInput.scopeId,sourceId:Mn.make(`src_${crypto.randomUUID()}`),payload:{name:i,kind:e.sourceInput.kind,endpoint:t,namespace:a,status:"probing",enabled:!0,binding:e.sourceInput.kind==="openapi"?{specUrl:r,defaultHeaders:s?.defaultHeaders??null}:{defaultHeaders:s?.defaultHeaders??null},importAuthPolicy:d.importAuthPolicy,importAuth:d.importAuth,auth:p},now:c}),m=yield*e.sourceStore.persistSource(f,{actorScopeId:e.sourceInput.actorScopeId});if(u2e({existing:o,explicitAuthProvided:e.sourceInput.auth!==void 0,auth:m.auth})){let g=lr(e.baseUrl),S=g??e.getLocalServerBaseUrl?.()??null;if(S){let A=yield*m2e({executorState:e.executorState,sourceStore:e.sourceStore,source:m,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:S,redirectModeOverride:g?"app_callback":void 0,storeSecretMaterial:e.storeSecretMaterial});if(A)return A}return{kind:"credential_required",source:yield*aa(e.sourceStore,m,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}),credentialSlot:"runtime"}}let y=yield*Me.either(e.sourceCatalogSync.sync({source:{...m,status:"connected"},actorScopeId:e.sourceInput.actorScopeId}));return yield*Cd.match(y,{onLeft:g=>E_(g)?aa(e.sourceStore,m,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}).pipe(Me.map(S=>({kind:"credential_required",source:S,credentialSlot:g.slot}))):aa(e.sourceStore,m,{actorScopeId:e.sourceInput.actorScopeId,status:"error",lastError:g.message}).pipe(Me.zipRight(Me.fail(g))),onRight:()=>aa(e.sourceStore,m,{actorScopeId:e.sourceInput.actorScopeId,status:"connected",lastError:null}).pipe(Me.map(g=>({kind:"connected",source:g})))})}).pipe(Me.withSpan("source.connect.http",{attributes:{"executor.source.kind":e.sourceInput.kind,"executor.source.endpoint":e.sourceInput.endpoint,...e.sourceInput.namespace?{"executor.source.namespace":e.sourceInput.namespace}:{},...e.sourceInput.name?{"executor.source.name":e.sourceInput.name}:{}}})),QTt=e=>Me.gen(function*(){let t=e.sourceInput.service.trim(),r=e.sourceInput.version.trim(),n=xf(lr(e.sourceInput.discoveryUrl)??r2e(t,r)),i=(yield*e.sourceStore.loadSourcesInScope(e.sourceInput.scopeId,{actorScopeId:e.sourceInput.actorScopeId})).find(E=>{if(E.kind!=="google_discovery")return!1;let C=E.binding;return typeof C.service!="string"||typeof C.version!="string"?!1:C.service.trim()===t&&C.version.trim()===r}),a=lr(e.sourceInput.name)??i?.name??n2e(t,r),s=lr(e.sourceInput.namespace)??i?.namespace??o2e(t),c=Array.isArray(i?.binding?.scopes)?i.binding.scopes:[],p=(e.sourceInput.scopes??c).map(E=>E.trim()).filter(E=>E.length>0),d=i?yield*Uh(i):null,f=Date.now(),m=yield*KQ({existing:i,auth:e.sourceInput.auth,storeSecretMaterial:e.storeSecretMaterial}),y=yield*l2e({sourceKind:e.sourceInput.kind,existing:i,importAuthPolicy:e.sourceInput.importAuthPolicy??null,importAuth:e.sourceInput.importAuth??null,storeSecretMaterial:e.storeSecretMaterial}),g=i?yield*gf({source:i,payload:{name:a,endpoint:n,namespace:s,status:"probing",enabled:!0,binding:{service:t,version:r,discoveryUrl:n,defaultHeaders:d?.defaultHeaders??null,scopes:[...p]},importAuthPolicy:y.importAuthPolicy,importAuth:y.importAuth,auth:m,lastError:null},now:f}):yield*vS({scopeId:e.sourceInput.scopeId,sourceId:Mn.make(`src_${crypto.randomUUID()}`),payload:{name:a,kind:"google_discovery",endpoint:n,namespace:s,status:"probing",enabled:!0,binding:{service:t,version:r,discoveryUrl:n,defaultHeaders:d?.defaultHeaders??null,scopes:[...p]},importAuthPolicy:y.importAuthPolicy,importAuth:y.importAuth,auth:m},now:f}),S=yield*e.sourceStore.persistSource(g,{actorScopeId:e.sourceInput.actorScopeId}),x=_i(S),A=yield*f2e(S);if(A!==null&&e.sourceInput.auth===void 0&&S.auth.kind==="none"){let E=null;if(e.sourceInput.scopeOauthClientId?E=yield*GQ({executorState:e.executorState,scopeId:S.scopeId,oauthClientId:e.sourceInput.scopeOauthClientId,providerKey:A.setupConfig.providerKey,localScopeState:e.localScopeState}):e.sourceInput.oauthClient&&(E=yield*_2e({executorState:e.executorState,scopeId:S.scopeId,providerKey:A.setupConfig.providerKey,oauthClient:e.sourceInput.oauthClient,label:`${a} OAuth Client`,normalizeOauthClient:x.normalizeOauthClientInput,storeSecretMaterial:e.storeSecretMaterial})),E===null)return yield*Ne("sources/source-auth-service",`${A.setupConfig.providerKey} shared auth requires a workspace OAuth client`);let C=yield*h2e({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,scopeId:S.scopeId,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:e.baseUrl,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeOauthClient:E,targets:[A],localScopeState:e.localScopeState});return C.kind==="connected"?{kind:"connected",source:C.sources[0]}:{kind:"oauth_required",source:C.sources[0],sessionId:C.sessionId,authorizationUrl:C.authorizationUrl}}if(e.sourceInput.oauthClient&&(yield*BTt({executorState:e.executorState,source:S,oauthClient:e.sourceInput.oauthClient,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial})),u2e({existing:i,explicitAuthProvided:e.sourceInput.auth!==void 0,auth:S.auth})){let E=lr(e.baseUrl),C=E??e.getLocalServerBaseUrl?.()??null;if(C){let O=yield*m2e({executorState:e.executorState,sourceStore:e.sourceStore,source:S,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:C,redirectModeOverride:E?"app_callback":void 0,storeSecretMaterial:e.storeSecretMaterial});if(O)return O}return{kind:"credential_required",source:yield*aa(e.sourceStore,S,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}),credentialSlot:"runtime"}}let I=yield*Me.either(e.sourceCatalogSync.sync({source:{...S,status:"connected"},actorScopeId:e.sourceInput.actorScopeId}));return yield*Cd.match(I,{onLeft:E=>E_(E)?aa(e.sourceStore,S,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}).pipe(Me.map(C=>({kind:"credential_required",source:C,credentialSlot:E.slot}))):aa(e.sourceStore,S,{actorScopeId:e.sourceInput.actorScopeId,status:"error",lastError:E.message}).pipe(Me.zipRight(Me.fail(E))),onRight:()=>aa(e.sourceStore,S,{actorScopeId:e.sourceInput.actorScopeId,status:"connected",lastError:null}).pipe(Me.map(E=>({kind:"connected",source:E})))})}),XTt=e=>Me.gen(function*(){if(e.sourceInput.sources.length===0)return yield*Ne("sources/source-auth-service","Google batch connect requires at least one source");let t=yield*e.sourceStore.loadSourcesInScope(e.sourceInput.scopeId,{actorScopeId:e.sourceInput.actorScopeId}),r=yield*Me.forEach(e.sourceInput.sources,i=>Me.gen(function*(){let a=i.service.trim(),s=i.version.trim(),c=xf(lr(i.discoveryUrl)??r2e(a,s)),p=t.find(I=>{if(I.kind!=="google_discovery")return!1;let E=I.binding;return typeof E.service=="string"&&typeof E.version=="string"&&E.service.trim()===a&&E.version.trim()===s}),d=lr(i.name)??p?.name??n2e(a,s),f=lr(i.namespace)??p?.namespace??o2e(a),m=Ef(i.scopes??(Array.isArray(p?.binding.scopes)?p?.binding.scopes:[])),y=p?yield*Uh(p):null,g=Date.now(),S=p?yield*gf({source:p,payload:{name:d,endpoint:c,namespace:f,status:"probing",enabled:!0,binding:{service:a,version:s,discoveryUrl:c,defaultHeaders:y?.defaultHeaders??null,scopes:[...m]},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:p.auth.kind==="provider_grant_ref"?p.auth:{kind:"none"},lastError:null},now:g}):yield*vS({scopeId:e.sourceInput.scopeId,sourceId:Mn.make(`src_${crypto.randomUUID()}`),payload:{name:d,kind:"google_discovery",endpoint:c,namespace:f,status:"probing",enabled:!0,binding:{service:a,version:s,discoveryUrl:c,defaultHeaders:y?.defaultHeaders??null,scopes:[...m]},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:{kind:"none"}},now:g}),x=yield*e.sourceStore.persistSource(S,{actorScopeId:e.sourceInput.actorScopeId}),A=yield*f2e(x);return A===null?yield*Ne("sources/source-auth-service",`Source ${x.id} does not support Google shared auth`):A}),{discard:!1}),n=yield*GQ({executorState:e.executorState,scopeId:e.sourceInput.scopeId,oauthClientId:e.sourceInput.scopeOauthClientId,providerKey:r[0].setupConfig.providerKey,localScopeState:e.localScopeState});if(n===null)return yield*Ne("sources/source-auth-service",`Scope OAuth client not found: ${e.sourceInput.scopeOauthClientId}`);let o=yield*h2e({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,scopeId:e.sourceInput.scopeId,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:e.sourceInput.baseUrl,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeOauthClient:n,targets:r,localScopeState:e.localScopeState});return o.kind==="connected"?{results:o.sources.map(i=>({source:i,status:"connected"})),providerOauthSession:null}:{results:o.sources.map(i=>({source:i,status:"pending_oauth"})),providerOauthSession:{sessionId:o.sessionId,authorizationUrl:o.authorizationUrl,sourceIds:o.sources.map(i=>i.id)}}}),YTt=(e,t)=>{let r=o=>Me.succeed(o),n=o=>Me.succeed(o);return{getSourceById:({scopeId:o,sourceId:i,actorScopeId:a})=>t(e.sourceStore.loadSourceById({scopeId:o,sourceId:i,actorScopeId:a})),addExecutorSource:(o,i=void 0)=>t((LTt(o)?QTt({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,sourceInput:o,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,resolveSecretMaterial:e.resolveSecretMaterial,getLocalServerBaseUrl:e.getLocalServerBaseUrl,baseUrl:i?.baseUrl,localScopeState:e.localScopeState}):$Tt(o)?WTt({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,sourceInput:o,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,resolveSecretMaterial:e.resolveSecretMaterial,getLocalServerBaseUrl:e.getLocalServerBaseUrl,baseUrl:i?.baseUrl,localScopeState:e.localScopeState}):MTt(o)?XDe({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeId:o.scopeId,actorScopeId:o.actorScopeId,executionId:o.executionId,interactionId:o.interactionId,endpoint:o.endpoint,name:o.name,namespace:o.namespace,transport:o.transport,queryParams:o.queryParams,headers:o.headers,command:o.command,args:o.args,env:o.env,cwd:o.cwd,mcpDiscoveryElicitation:i?.mcpDiscoveryElicitation,baseUrl:i?.baseUrl,resolveSecretMaterial:e.resolveSecretMaterial}):Me.fail(Ne("sources/source-auth-service",`Unsupported executor source input: ${JSON.stringify(o)}`))).pipe(Me.flatMap(r))),connectGoogleDiscoveryBatch:o=>t(XTt({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,sourceInput:o,getLocalServerBaseUrl:e.getLocalServerBaseUrl,localScopeState:e.localScopeState})),connectMcpSource:o=>t(XDe({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeId:o.scopeId,actorScopeId:o.actorScopeId,sourceId:o.sourceId,executionId:null,interactionId:null,endpoint:o.endpoint,name:o.name,namespace:o.namespace,enabled:o.enabled,transport:o.transport,queryParams:o.queryParams,headers:o.headers,command:o.command,args:o.args,env:o.env,cwd:o.cwd,baseUrl:o.baseUrl,resolveSecretMaterial:e.resolveSecretMaterial}).pipe(Me.flatMap(n))),listScopeOauthClients:({scopeId:o,providerKey:i})=>t(Me.gen(function*(){let a=HQ({scopeId:o,localScopeState:e.localScopeState}),s=new Map;for(let c of a){let p=yield*e.executorState.scopeOauthClients.listByScopeAndProvider({scopeId:c,providerKey:i});for(let d of p)s.has(d.id)||s.set(d.id,d)}return[...s.values()]})),createScopeOauthClient:({scopeId:o,providerKey:i,label:a,oauthClient:s})=>t(Me.gen(function*(){let c=aQ(i),p=yield*_2e({executorState:e.executorState,scopeId:o,providerKey:i,oauthClient:s,label:a,normalizeOauthClient:c?.normalizeOauthClientInput,storeSecretMaterial:e.storeSecretMaterial}),d=yield*e.executorState.scopeOauthClients.getById(p.id);return Ei.isNone(d)?yield*Ne("sources/source-auth-service",`Scope OAuth client ${p.id} was not persisted`):d.value})),removeScopeOauthClient:({scopeId:o,oauthClientId:i})=>t(Me.gen(function*(){let a=yield*e.executorState.scopeOauthClients.getById(i);if(Ei.isNone(a)||a.value.scopeId!==o)return!1;let c=(yield*e.executorState.providerAuthGrants.listByScopeId(o)).find(f=>f.oauthClientId===i);if(c)return yield*Ne("sources/source-auth-service",`Scope OAuth client ${i} is still referenced by provider grant ${c.id}`);let p=RF(a.value),d=yield*e.executorState.scopeOauthClients.removeById(i);return d&&p&&(yield*e.deleteSecretMaterial(p).pipe(Me.either,Me.ignore)),d})),removeProviderAuthGrant:({scopeId:o,grantId:i})=>t(ZTt({executorState:e.executorState,sourceStore:e.sourceStore,scopeId:o,grantId:i,deleteSecretMaterial:e.deleteSecretMaterial}))}},eDt=(e,t)=>({startSourceOAuthSession:r=>Me.gen(function*(){let n=lr(r.baseUrl)??e.getLocalServerBaseUrl?.()??null;if(!n)return yield*Ne("sources/source-auth-service","Local executor server base URL is unavailable for OAuth setup");let o=xm.make(`src_auth_${crypto.randomUUID()}`),i=ITt({displayName:r.displayName}),a=TTt({baseUrl:n}),s=xf(r.provider.endpoint),c=yield*LT({endpoint:s,redirectUrl:a,state:i}),p=Date.now();return yield*e.executorState.sourceAuthSessions.upsert({id:o,scopeId:r.scopeId,sourceId:Mn.make(`oauth_draft_${crypto.randomUUID()}`),actorScopeId:r.actorScopeId??null,credentialSlot:"runtime",executionId:null,interactionId:null,providerKind:"mcp_oauth",status:"pending",state:i,sessionDataJson:JQ({kind:"mcp_oauth",endpoint:s,redirectUri:a,scope:r.provider.kind,resourceMetadataUrl:c.resourceMetadataUrl,authorizationServerUrl:c.authorizationServerUrl,resourceMetadata:c.resourceMetadata,authorizationServerMetadata:c.authorizationServerMetadata,clientInformation:c.clientInformation,codeVerifier:c.codeVerifier,authorizationUrl:c.authorizationUrl}),errorText:null,completedAt:null,createdAt:p,updatedAt:p}),{sessionId:o,authorizationUrl:c.authorizationUrl}}),completeSourceOAuthSession:({state:r,code:n,error:o,errorDescription:i})=>t(Me.gen(function*(){let a=yield*e.executorState.sourceAuthSessions.getByState(r);if(Ei.isNone(a))return yield*Ne("sources/source-auth-service",`Source auth session not found for state ${r}`);let s=a.value,c=NF(s);if(s.status==="completed")return yield*Ne("sources/source-auth-service",`Source auth session ${s.id} is already completed`);if(s.status!=="pending")return yield*Ne("sources/source-auth-service",`Source auth session ${s.id} is not pending`);if(lr(o)!==null){let S=lr(i)??lr(o)??"OAuth authorization failed",x=Date.now();return yield*e.executorState.sourceAuthSessions.update(s.id,ES({sessionDataJson:s.sessionDataJson,status:"failed",now:x,errorText:S})),yield*Ne("sources/source-auth-service",S)}let p=lr(n);if(p===null)return yield*Ne("sources/source-auth-service","Missing OAuth authorization code");if(c.codeVerifier===null)return yield*Ne("sources/source-auth-service","OAuth session is missing the PKCE code verifier");if(c.scope!==null&&c.scope!=="mcp")return yield*Ne("sources/source-auth-service",`Unsupported OAuth provider: ${c.scope}`);let d=yield*EB({session:{endpoint:c.endpoint,redirectUrl:c.redirectUri,codeVerifier:c.codeVerifier,resourceMetadataUrl:c.resourceMetadataUrl,authorizationServerUrl:c.authorizationServerUrl,resourceMetadata:c.resourceMetadata,authorizationServerMetadata:c.authorizationServerMetadata,clientInformation:c.clientInformation},code:p}),f=HDe({displayName:kTt(s.state),endpoint:c.endpoint}),m=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:d.tokens.access_token,name:f}),y=d.tokens.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:d.tokens.refresh_token,name:`${f} Refresh`}):null,g={kind:"oauth2",headerName:"Authorization",prefix:"Bearer ",accessToken:m,refreshToken:y};return yield*e.executorState.sourceAuthSessions.update(s.id,ES({sessionDataJson:ZDe({session:s,patch:{codeVerifier:null,authorizationUrl:null,resourceMetadataUrl:d.resourceMetadataUrl,authorizationServerUrl:d.authorizationServerUrl,resourceMetadata:d.resourceMetadata,authorizationServerMetadata:d.authorizationServerMetadata}}),status:"completed",now:Date.now(),errorText:null})),{sessionId:s.id,auth:g}})),completeProviderOauthCallback:({scopeId:r,actorScopeId:n,state:o,code:i,error:a,errorDescription:s})=>t(Me.gen(function*(){let c=yield*e.executorState.sourceAuthSessions.getByState(o);if(Ei.isNone(c))return yield*Ne("sources/source-auth-service",`Source auth session not found for state ${o}`);let p=c.value;if(p.scopeId!==r)return yield*Ne("sources/source-auth-service",`Source auth session ${p.id} does not match scopeId=${r}`);if((p.actorScopeId??null)!==(n??null))return yield*Ne("sources/source-auth-service",`Source auth session ${p.id} does not match the active account`);if(p.providerKind!=="oauth2_provider_batch")return yield*Ne("sources/source-auth-service",`Source auth session ${p.id} is not a provider batch OAuth session`);if(p.status==="completed"){let F=UQ(p),O=yield*Me.forEach(F.targetSources,$=>e.sourceStore.loadSourceById({scopeId:r,sourceId:$.sourceId,actorScopeId:n}),{discard:!1});return{sessionId:p.id,sources:O}}if(p.status!=="pending")return yield*Ne("sources/source-auth-service",`Source auth session ${p.id} is not pending`);let d=UQ(p);if(lr(a)!==null){let F=lr(s)??lr(a)??"OAuth authorization failed";return yield*e.executorState.sourceAuthSessions.update(p.id,ES({sessionDataJson:p.sessionDataJson,status:"failed",now:Date.now(),errorText:F})),yield*Ne("sources/source-auth-service",F)}let f=lr(i);if(f===null)return yield*Ne("sources/source-auth-service","Missing OAuth authorization code");if(d.codeVerifier===null)return yield*Ne("sources/source-auth-service","OAuth session is missing the PKCE code verifier");let m=yield*GQ({executorState:e.executorState,scopeId:r,oauthClientId:d.oauthClientId,providerKey:d.providerKey,localScopeState:e.localScopeState});if(m===null)return yield*Ne("sources/source-auth-service",`Scope OAuth client not found: ${d.oauthClientId}`);let y=null;m.clientSecret&&(y=yield*e.resolveSecretMaterial({ref:m.clientSecret}));let g=yield*eq({tokenEndpoint:d.tokenEndpoint,clientId:m.clientId,clientAuthentication:d.clientAuthentication,clientSecret:y,redirectUri:d.redirectUri,codeVerifier:d.codeVerifier??"",code:f}),x=(yield*e.executorState.providerAuthGrants.listByScopeActorAndProvider({scopeId:r,actorScopeId:n??null,providerKey:d.providerKey})).find(F=>F.oauthClientId===d.oauthClientId)??null,A=Ef(lr(g.scope)?g.scope.split(/\s+/):d.scopes),I=yield*GTt({executorState:e.executorState,scopeId:r,actorScopeId:n,providerKey:d.providerKey,oauthClientId:d.oauthClientId,tokenEndpoint:d.tokenEndpoint,clientAuthentication:d.clientAuthentication,headerName:d.headerName,prefix:d.prefix,grantedScopes:A,refreshToken:lr(g.refresh_token),existingGrant:x,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial}),E=yield*Me.forEach(d.targetSources,F=>Me.map(e.sourceStore.loadSourceById({scopeId:r,sourceId:F.sourceId,actorScopeId:n}),O=>({source:O,requiredScopes:F.requiredScopes})),{discard:!1}),C=yield*y2e({sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,actorScopeId:n,grantId:I.id,providerKey:I.providerKey,headerName:I.headerName,prefix:I.prefix,targets:E});return yield*e.executorState.sourceAuthSessions.update(p.id,ES({sessionDataJson:RTt({session:p,patch:{codeVerifier:null,authorizationUrl:null}}),status:"completed",now:Date.now(),errorText:null})),{sessionId:p.id,sources:C}})),completeSourceCredentialSetup:({scopeId:r,sourceId:n,actorScopeId:o,state:i,code:a,error:s,errorDescription:c})=>t(Me.gen(function*(){let p=yield*e.executorState.sourceAuthSessions.getByState(i);if(Ei.isNone(p))return yield*Ne("sources/source-auth-service",`Source auth session not found for state ${i}`);let d=p.value;if(d.scopeId!==r||d.sourceId!==n)return yield*Ne("sources/source-auth-service",`Source auth session ${d.id} does not match scopeId=${r} sourceId=${n}`);if(o!==void 0&&(d.actorScopeId??null)!==(o??null))return yield*Ne("sources/source-auth-service",`Source auth session ${d.id} does not match the active account`);let f=yield*e.sourceStore.loadSourceById({scopeId:d.scopeId,sourceId:d.sourceId,actorScopeId:d.actorScopeId});if(d.status==="completed")return{sessionId:d.id,source:f};if(d.status!=="pending")return yield*Ne("sources/source-auth-service",`Source auth session ${d.id} is not pending`);let m=d.providerKind==="oauth2_pkce"?qQ(d):NF(d);if(lr(s)!==null){let A=lr(c)??lr(s)??"OAuth authorization failed",I=Date.now();yield*e.executorState.sourceAuthSessions.update(d.id,ES({sessionDataJson:d.sessionDataJson,status:"failed",now:I,errorText:A}));let E=yield*aa(e.sourceStore,f,{actorScopeId:d.actorScopeId,status:"error",lastError:A});return yield*e.sourceCatalogSync.sync({source:E,actorScopeId:d.actorScopeId}),yield*WDe({executorState:e.executorState,liveExecutionManager:e.liveExecutionManager,session:d,response:{action:"cancel",reason:A}}),yield*Ne("sources/source-auth-service",A)}let y=lr(a);if(y===null)return yield*Ne("sources/source-auth-service","Missing OAuth authorization code");if(m.codeVerifier===null)return yield*Ne("sources/source-auth-service","OAuth session is missing the PKCE code verifier");let g=Date.now(),S;if(d.providerKind==="oauth2_pkce"){let A=qQ(d),I=null;A.clientSecret&&(I=yield*e.resolveSecretMaterial({ref:A.clientSecret}));let E=yield*eq({tokenEndpoint:A.tokenEndpoint,clientId:A.clientId,clientAuthentication:A.clientAuthentication,clientSecret:I,redirectUri:A.redirectUri,codeVerifier:A.codeVerifier??"",code:y}),C=lr(E.refresh_token);if(C===null)return yield*Ne("sources/source-auth-service","OAuth authorization did not return a refresh token");let F=yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:C,name:`${f.name} Refresh`}),O=lr(E.scope)?E.scope.split(/\s+/).filter(N=>N.length>0):[...A.scopes];S=yield*aa(e.sourceStore,f,{actorScopeId:d.actorScopeId,status:"connected",lastError:null,auth:{kind:"oauth2_authorized_user",headerName:A.headerName,prefix:A.prefix,tokenEndpoint:A.tokenEndpoint,clientId:A.clientId,clientAuthentication:A.clientAuthentication,clientSecret:A.clientSecret,refreshToken:F,grantSet:O}});let $=yield*e.executorState.authArtifacts.getByScopeSourceAndActor({scopeId:S.scopeId,sourceId:S.id,actorScopeId:d.actorScopeId??null,slot:"runtime"});Ei.isSome($)&&(yield*ele({executorState:e.executorState,artifact:$.value,tokenResponse:E,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial})),yield*e.executorState.sourceAuthSessions.update(d.id,ES({sessionDataJson:NTt({session:d,patch:{codeVerifier:null,authorizationUrl:null}}),status:"completed",now:g,errorText:null}))}else{let A=NF(d),I=yield*EB({session:{endpoint:A.endpoint,redirectUrl:A.redirectUri,codeVerifier:A.codeVerifier??"",resourceMetadataUrl:A.resourceMetadataUrl,authorizationServerUrl:A.authorizationServerUrl,resourceMetadata:A.resourceMetadata,authorizationServerMetadata:A.authorizationServerMetadata,clientInformation:A.clientInformation},code:y}),E=HDe({displayName:f.name,endpoint:f.endpoint}),C=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:I.tokens.access_token,name:E}),F=I.tokens.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:I.tokens.refresh_token,name:`${E} Refresh`}):null;S=yield*aa(e.sourceStore,f,{actorScopeId:d.actorScopeId,status:"connected",lastError:null,auth:Qce({redirectUri:A.redirectUri,accessToken:C,refreshToken:F,tokenType:I.tokens.token_type,expiresIn:typeof I.tokens.expires_in=="number"&&Number.isFinite(I.tokens.expires_in)?I.tokens.expires_in:null,scope:I.tokens.scope??null,resourceMetadataUrl:I.resourceMetadataUrl,authorizationServerUrl:I.authorizationServerUrl,resourceMetadata:I.resourceMetadata,authorizationServerMetadata:I.authorizationServerMetadata,clientInformation:I.clientInformation})}),yield*e.executorState.sourceAuthSessions.update(d.id,ES({sessionDataJson:ZDe({session:d,patch:{codeVerifier:null,authorizationUrl:null,resourceMetadataUrl:I.resourceMetadataUrl,authorizationServerUrl:I.authorizationServerUrl,resourceMetadata:I.resourceMetadata,authorizationServerMetadata:I.authorizationServerMetadata}}),status:"completed",now:g,errorText:null}))}let x=yield*Me.either(e.sourceCatalogSync.sync({source:S,actorScopeId:d.actorScopeId}));return yield*Cd.match(x,{onLeft:A=>aa(e.sourceStore,S,{actorScopeId:d.actorScopeId,status:"error",lastError:A.message}).pipe(Me.zipRight(Me.fail(A))),onRight:()=>Me.succeed(void 0)}),yield*WDe({executorState:e.executorState,liveExecutionManager:e.liveExecutionManager,session:d,response:{action:"accept"}}),{sessionId:d.id,source:S}}))}),tDt=e=>{let t=o=>ch(o,e.localScopeState),r=YTt(e,t),n=eDt(e,t);return{getLocalServerBaseUrl:()=>e.getLocalServerBaseUrl?.()??null,storeSecretMaterial:({purpose:o,value:i})=>e.storeSecretMaterial({purpose:o,value:i}),...r,...n}},ip=class extends YDe.Tag("#runtime/RuntimeSourceAuthServiceTag")(){},g2e=(e={})=>e2e.effect(ip,Me.gen(function*(){let t=yield*Wn,r=yield*Xc,n=yield*Qo,o=yield*eu,i=yield*Ol,a=yield*Ys,s=yield*as,c=yield*lh();return tDt({executorState:t,liveExecutionManager:r,sourceStore:n,sourceCatalogSync:o,resolveSecretMaterial:i,storeSecretMaterial:a,deleteSecretMaterial:s,getLocalServerBaseUrl:e.getLocalServerBaseUrl,localScopeState:c??void 0})})),GZt=Fn.Union(Fn.Struct({kind:Fn.Literal("connected"),source:Up}),Fn.Struct({kind:Fn.Literal("credential_required"),source:Up,credentialSlot:Fn.Literal("runtime","import")}),Fn.Struct({kind:Fn.Literal("oauth_required"),source:Up,sessionId:xm,authorizationUrl:Fn.String}));import*as S2e from"effect/Context";import*as LF from"effect/Effect";import*as v2e from"effect/Layer";var Tf=class extends S2e.Tag("#runtime/LocalToolRuntimeLoaderService")(){},ZZt=v2e.effect(Tf,LF.succeed(Tf.of({load:()=>LF.die(new Error("LocalToolRuntimeLoaderLive is unsupported; provide a bound local tool runtime loader from the host adapter."))})));var rDt=()=>({tools:{},catalog:e_({tools:{}}),toolInvoker:Yd({tools:{}}),toolPaths:new Set}),nDt=e=>({scopeId:t,actorScopeId:r,onElicitation:n})=>gw.gen(function*(){let o=yield*lh(),i=o===null?null:yield*e.scopeConfigStore.load(),a=o===null?rDt():yield*e.localToolRuntimeLoader.load(),{catalog:s,toolInvoker:c}=JDe({scopeId:t,actorScopeId:r,executorStateStore:e.executorStateStore,sourceStore:e.sourceStore,sourceCatalogSyncService:e.sourceCatalogSyncService,sourceCatalogStore:e.sourceCatalogStore,installationStore:e.installationStore,instanceConfigResolver:e.instanceConfigResolver,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,updateSecretMaterial:e.updateSecretMaterial,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,sourceAuthMaterialService:e.sourceAuthMaterialService,sourceAuthService:e.sourceAuthService,runtimeLocalScope:o,localToolRuntime:a,createInternalToolMap:e.createInternalToolMap,onElicitation:n});return{executor:yield*gw.promise(()=>DQ(TQ(i?.config),e.customCodeExecutor)),toolInvoker:c,catalog:s}}),Zh=class extends b2e.Tag("#runtime/RuntimeExecutionResolverService")(){},x2e=(e={})=>e.executionResolver?$F.succeed(Zh,e.executionResolver):$F.effect(Zh,gw.gen(function*(){let t=yield*Wn,r=yield*Qo,n=yield*eu,o=yield*Pm,i=yield*ip,a=yield*Vh,s=yield*Tf,c=yield*qg,p=yield*Kp,d=yield*Ys,f=yield*as,m=yield*Jp,y=yield*Kc,g=yield*$a,S=yield*Ma;return nDt({executorStateStore:t,sourceStore:r,sourceCatalogSyncService:n,sourceAuthService:i,sourceAuthMaterialService:o,sourceCatalogStore:a,localToolRuntimeLoader:s,installationStore:c,instanceConfigResolver:p,storeSecretMaterial:d,deleteSecretMaterial:f,updateSecretMaterial:m,scopeConfigStore:y,scopeStateStore:g,sourceArtifactStore:S,createInternalToolMap:e.createInternalToolMap,customCodeExecutor:e.customCodeExecutor})}));import*as T2e from"effect/Data";var E2e=class extends T2e.TaggedError("ResumeUnsupportedError"){};import*as qa from"effect/Effect";var MF={bundle:Oo("sources.inspect.bundle"),tool:Oo("sources.inspect.tool"),discover:Oo("sources.inspect.discover")},cb=e=>e.trim().toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),oDt=e=>e.status==="draft"||e.status==="probing"||e.status==="auth_required",iDt=e=>qa.gen(function*(){let r=yield*(yield*Qo).loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId});return oDt(r)?r:yield*e.cause}),A2e=e=>lDe({scopeId:e.scopeId,sourceId:e.sourceId}).pipe(qa.map(t=>({kind:"catalog",catalogEntry:t})),qa.catchTag("LocalSourceArtifactMissingError",t=>qa.gen(function*(){return{kind:"empty",source:yield*iDt({scopeId:e.scopeId,sourceId:e.sourceId,cause:t})}}))),WQ=e=>{let t=e.executable.display??{};return{protocol:t.protocol??e.executable.adapterKey,method:t.method??null,pathTemplate:t.pathTemplate??null,rawToolId:t.rawToolId??e.path.split(".").at(-1)??null,operationId:t.operationId??null,group:t.group??null,leaf:t.leaf??e.path.split(".").at(-1)??null,tags:e.capability.surface.tags??[]}},aDt=e=>({path:e.path,method:WQ(e).method,...e.descriptor.contract?.inputTypePreview?{inputTypePreview:e.descriptor.contract.inputTypePreview}:{},...e.descriptor.contract?.outputTypePreview?{outputTypePreview:e.descriptor.contract.outputTypePreview}:{}}),w2e=e=>{let t=WQ(e);return{path:e.path,sourceKey:e.source.id,...e.capability.surface.title?{title:e.capability.surface.title}:{},...e.capability.surface.summary||e.capability.surface.description?{description:e.capability.surface.summary??e.capability.surface.description}:{},protocol:t.protocol,toolId:e.path.split(".").at(-1)??e.path,rawToolId:t.rawToolId,operationId:t.operationId,group:t.group,leaf:t.leaf,tags:[...t.tags],method:t.method,pathTemplate:t.pathTemplate,...e.descriptor.contract?.inputTypePreview?{inputTypePreview:e.descriptor.contract.inputTypePreview}:{},...e.descriptor.contract?.outputTypePreview?{outputTypePreview:e.descriptor.contract.outputTypePreview}:{}}},D2e=e=>e==="graphql"||e==="yaml"||e==="json"||e==="text"?e:"json",ZQ=(e,t)=>t==null?null:{kind:"code",title:e,language:"json",body:JSON.stringify(t,null,2)},sDt=e=>qa.gen(function*(){let t=w2e(e),r=WQ(e),n=yield*uDe(e),o=[{label:"Protocol",value:r.protocol},...r.method?[{label:"Method",value:r.method,mono:!0}]:[],...r.pathTemplate?[{label:"Target",value:r.pathTemplate,mono:!0}]:[],...r.operationId?[{label:"Operation",value:r.operationId,mono:!0}]:[],...r.group?[{label:"Group",value:r.group,mono:!0}]:[],...r.leaf?[{label:"Leaf",value:r.leaf,mono:!0}]:[],...r.rawToolId?[{label:"Raw tool",value:r.rawToolId,mono:!0}]:[],{label:"Signature",value:n.callSignature,mono:!0},{label:"Call shape",value:n.callShapeId,mono:!0},...n.resultShapeId?[{label:"Result shape",value:n.resultShapeId,mono:!0}]:[],{label:"Response set",value:n.responseSetId,mono:!0}],i=[...(e.capability.native??[]).map((s,c)=>({kind:"code",title:`Capability native ${String(c+1)}: ${s.kind}`,language:D2e(s.encoding),body:typeof s.value=="string"?s.value:JSON.stringify(s.value??null,null,2)})),...(e.executable.native??[]).map((s,c)=>({kind:"code",title:`Executable native ${String(c+1)}: ${s.kind}`,language:D2e(s.encoding),body:typeof s.value=="string"?s.value:JSON.stringify(s.value??null,null,2)}))],a=[{kind:"facts",title:"Overview",items:o},...t.description?[{kind:"markdown",title:"Description",body:t.description}]:[],...[ZQ("Capability",e.capability),ZQ("Executable",{id:e.executable.id,adapterKey:e.executable.adapterKey,bindingVersion:e.executable.bindingVersion,binding:e.executable.binding,projection:e.executable.projection,display:e.executable.display??null}),ZQ("Documentation",{summary:e.capability.surface.summary,description:e.capability.surface.description})].filter(s=>s!==null),...i];return{summary:t,contract:n,sections:a}}),I2e=e=>qa.gen(function*(){let t=yield*A2e({scopeId:e.scopeId,sourceId:e.sourceId});if(t.kind==="empty")return{source:t.source,namespace:t.source.namespace??"",pipelineKind:"ir",tools:[]};let r=yield*SQ({catalogs:[t.catalogEntry],includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews});return{source:t.catalogEntry.source,namespace:t.catalogEntry.source.namespace??"",pipelineKind:"ir",tools:r}}),cDt=e=>qa.gen(function*(){let t=yield*A2e({scopeId:e.scopeId,sourceId:e.sourceId});if(t.kind==="empty")return{source:t.source,namespace:t.source.namespace??"",pipelineKind:"ir",tool:null};let r=yield*vQ({catalogs:[t.catalogEntry],path:e.toolPath,includeSchemas:!0,includeTypePreviews:!1});return{source:t.catalogEntry.source,namespace:t.catalogEntry.source.namespace??"",pipelineKind:"ir",tool:r}}),lDt=e=>{let t=0,r=[],n=w2e(e.tool),o=cb(n.path),i=cb(n.title??""),a=cb(n.description??""),s=n.tags.flatMap(cb),c=cb(`${n.method??""} ${n.pathTemplate??""}`);for(let p of e.queryTokens){if(o.includes(p)){t+=12,r.push(`path matches ${p} (+12)`);continue}if(s.includes(p)){t+=10,r.push(`tag matches ${p} (+10)`);continue}if(i.includes(p)){t+=8,r.push(`title matches ${p} (+8)`);continue}if(c.includes(p)){t+=6,r.push(`method/path matches ${p} (+6)`);continue}(a.includes(p)||e.tool.searchText.includes(p))&&(t+=2,r.push(`description/text matches ${p} (+2)`))}return t<=0?null:{path:e.tool.path,score:t,...n.description?{description:n.description}:{},...n.inputTypePreview?{inputTypePreview:n.inputTypePreview}:{},...n.outputTypePreview?{outputTypePreview:n.outputTypePreview}:{},reasons:r}},QQ=(e,t,r)=>t instanceof bf||t instanceof Gh?t:e.unknownStorage(t,r),k2e=e=>qa.gen(function*(){let t=yield*I2e({...e,includeSchemas:!1,includeTypePreviews:!1});return{source:t.source,namespace:t.namespace,pipelineKind:t.pipelineKind,toolCount:t.tools.length,tools:t.tools.map(r=>aDt(r))}}).pipe(qa.mapError(t=>QQ(MF.bundle,t,"Failed building source inspection bundle"))),C2e=e=>qa.gen(function*(){let r=(yield*cDt({scopeId:e.scopeId,sourceId:e.sourceId,toolPath:e.toolPath})).tool;return r?yield*sDt(r):yield*MF.tool.notFound("Tool not found",`scopeId=${e.scopeId} sourceId=${e.sourceId} path=${e.toolPath}`)}).pipe(qa.mapError(t=>QQ(MF.tool,t,"Failed building source inspection tool detail"))),P2e=e=>qa.gen(function*(){let t=yield*I2e({scopeId:e.scopeId,sourceId:e.sourceId,includeSchemas:!1,includeTypePreviews:!1}),r=cb(e.payload.query),n=t.tools.map(o=>lDt({queryTokens:r,tool:o})).filter(o=>o!==null).sort((o,i)=>i.score-o.score||o.path.localeCompare(i.path)).slice(0,e.payload.limit??12);return{query:e.payload.query,queryTokens:r,bestPath:n[0]?.path??null,total:n.length,results:n}}).pipe(qa.mapError(t=>QQ(MF.discover,t,"Failed building source inspection discovery")));import*as jF from"effect/Effect";var uDt=mF,pDt=uDt.filter(e=>e.detectSource!==void 0),O2e=e=>jF.gen(function*(){let t=yield*jF.try({try:()=>Wae(e.url),catch:o=>o instanceof Error?o:new Error(String(o))}),r=Xae(e.probeAuth),n=[...pDt].sort((o,i)=>(i.discoveryPriority?.({normalizedUrl:t})??0)-(o.discoveryPriority?.({normalizedUrl:t})??0));for(let o of n){let i=yield*o.detectSource({normalizedUrl:t,headers:r});if(i)return i}return ese(t)});import*as N2e from"effect/Data";import*as F2e from"effect/Deferred";import*as Lr from"effect/Effect";import*as Ua from"effect/Option";import*as hc from"effect/Schema";var ap={create:Oo("executions.create"),get:Oo("executions.get"),resume:Oo("executions.resume")},XQ="__EXECUTION_SUSPENDED__",R2e="detach",lb=e=>e===void 0?null:JSON.stringify(e),dDt=e=>JSON.stringify(e===void 0?null:e),_Dt=e=>{if(e!==null)return JSON.parse(e)},fDt=hc.Literal("accept","decline","cancel"),mDt=hc.Struct({action:fDt,content:hc.optional(hc.Record({key:hc.String,value:hc.Unknown}))}),L2e=hc.decodeUnknown(mDt),hDt=e=>{let t=0;return{invoke:({path:r,args:n,context:o})=>(t+=1,e.toolInvoker.invoke({path:r,args:n,context:{...o,runId:e.executionId,callId:typeof o?.callId=="string"&&o.callId.length>0?o.callId:`call_${String(t)}`,executionStepSequence:t}}))}},YQ=e=>{let t=e?.executionStepSequence;return typeof t=="number"&&Number.isSafeInteger(t)&&t>0?t:null},yDt=(e,t)=>V6.make(`${e}:step:${String(t)}`),$2e=e=>{let t=typeof e.context?.callId=="string"&&e.context.callId.length>0?e.context.callId:null;return t===null?e.interactionId:`${t}:${e.path}`},gDt=e=>Is.make(`${e.executionId}:${$2e(e)}`),M2e=e=>e==="live"||e==="live_form"?e:R2e,BF=class extends N2e.TaggedError("ExecutionSuspendedError"){},SDt=e=>new BF({executionId:e.executionId,interactionId:e.interactionId,message:`${XQ}:${e.executionId}:${e.interactionId}`}),j2e=e=>e instanceof BF?!0:e instanceof Error?e.message.includes(XQ):typeof e=="string"&&e.includes(XQ),B2e=e=>Lr.try({try:()=>{if(e.responseJson===null)throw new Error(`Interaction ${e.interactionId} has no stored response`);return JSON.parse(e.responseJson)},catch:t=>t instanceof Error?t:new Error(String(t))}).pipe(Lr.flatMap(t=>L2e(t).pipe(Lr.mapError(r=>new Error(String(r)))))),vDt=e=>{if(!(e.expectedPath===e.actualPath&&e.expectedArgsJson===e.actualArgsJson))throw new Error([`Durable execution mismatch for ${e.executionId} at tool step ${String(e.sequence)}.`,`Expected ${e.expectedPath}(${e.expectedArgsJson}) but replay reached ${e.actualPath}(${e.actualArgsJson}).`].join(" "))},bDt=(e,t)=>Lr.gen(function*(){let r=hw(t.operation),n=yield*r.mapStorage(e.executions.getByScopeAndId(t.scopeId,t.executionId));return Ua.isNone(n)?yield*r.notFound("Execution not found",`scopeId=${t.scopeId} executionId=${t.executionId}`):n.value}),qF=(e,t)=>Lr.gen(function*(){let r=hw(t.operation),n=yield*bDt(e,t),o=yield*r.child("pending_interaction").mapStorage(e.executionInteractions.getPendingByExecutionId(t.executionId));return{execution:n,pendingInteraction:Ua.isSome(o)?o.value:null}}),q2e=(e,t)=>Lr.gen(function*(){let r=yield*qF(e,t);return r.execution.status!=="running"&&!(r.execution.status==="waiting_for_interaction"&&(r.pendingInteraction===null||r.pendingInteraction.id===t.previousPendingInteractionId))||t.attemptsRemaining<=0?r:(yield*Lr.promise(()=>new Promise(n=>setTimeout(n,25))),yield*q2e(e,{...t,attemptsRemaining:t.attemptsRemaining-1}))}),xDt=e=>Lr.gen(function*(){let t=Date.now(),r=yield*e.executorState.executionInteractions.getById(e.interactionId),n=YQ(e.request.context);return Ua.isSome(r)&&r.value.status!=="pending"?yield*B2e({interactionId:e.interactionId,responseJson:r.value.responsePrivateJson??r.value.responseJson}):(Ua.isNone(r)&&(yield*e.executorState.executionInteractions.insert({id:Is.make(e.interactionId),executionId:e.executionId,status:"pending",kind:e.request.elicitation.mode==="url"?"url":"form",purpose:"elicitation",payloadJson:lb({path:e.request.path,sourceKey:e.request.sourceKey,args:e.request.args,context:e.request.context,elicitation:e.request.elicitation})??"{}",responseJson:null,responsePrivateJson:null,createdAt:t,updatedAt:t})),n!==null&&(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,n,{status:"waiting",interactionId:Is.make(e.interactionId),updatedAt:t})),yield*e.executorState.executions.update(e.executionId,{status:"waiting_for_interaction",updatedAt:t}),yield*e.liveExecutionManager.publishState({executionId:e.executionId,state:"waiting_for_interaction"}),yield*SDt({executionId:e.executionId,interactionId:e.interactionId}))}),EDt=e=>{let t=e.liveExecutionManager.createOnElicitation({executorState:e.executorState,executionId:e.executionId});return r=>Lr.gen(function*(){let n=$2e({interactionId:r.interactionId,path:r.path,context:r.context}),o=gDt({executionId:e.executionId,interactionId:r.interactionId,path:r.path,context:r.context}),i=yield*e.executorState.executionInteractions.getById(o);if(Ua.isSome(i)&&i.value.status!=="pending")return yield*B2e({interactionId:o,responseJson:i.value.responsePrivateJson??i.value.responseJson});let a=e.interactionMode==="live"||e.interactionMode==="live_form"&&r.elicitation.mode!=="url";if(Ua.isNone(i)&&a){let s=YQ(r.context);return s!==null&&(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,s,{status:"waiting",interactionId:Is.make(o),updatedAt:Date.now()})),yield*t({...r,interactionId:n})}return yield*xDt({executorState:e.executorState,executionId:e.executionId,liveExecutionManager:e.liveExecutionManager,request:r,interactionId:o})})},TDt=e=>({invoke:({path:t,args:r,context:n})=>Lr.gen(function*(){let o=YQ(n);if(o===null)return yield*e.toolInvoker.invoke({path:t,args:r,context:n});let i=dDt(r),a=yield*e.executorState.executionSteps.getByExecutionAndSequence(e.executionId,o);if(Ua.isSome(a)){if(vDt({executionId:e.executionId,sequence:o,expectedPath:a.value.path,expectedArgsJson:a.value.argsJson,actualPath:t,actualArgsJson:i}),a.value.status==="completed")return _Dt(a.value.resultJson);if(a.value.status==="failed")return yield*Ne("execution/service",a.value.errorText??`Stored tool step ${String(o)} failed`)}else{let s=Date.now();yield*e.executorState.executionSteps.insert({id:yDt(e.executionId,o),executionId:e.executionId,sequence:o,kind:"tool_call",status:"pending",path:t,argsJson:i,resultJson:null,errorText:null,interactionId:null,createdAt:s,updatedAt:s})}try{let s=yield*e.toolInvoker.invoke({path:t,args:r,context:n}),c=Date.now();return yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,o,{status:"completed",resultJson:lb(s),errorText:null,updatedAt:c}),s}catch(s){let c=Date.now();return j2e(s)?(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,o,{status:"waiting",updatedAt:c}),yield*Lr.fail(s)):(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,o,{status:"failed",errorText:s instanceof Error?s.message:String(s),updatedAt:c}),yield*Lr.fail(s))}})}),DDt=e=>Lr.gen(function*(){if(j2e(e.outcome.error))return;if(e.outcome.error){let[n,o]=yield*Lr.all([e.executorState.executions.getById(e.executionId),e.executorState.executionInteractions.getPendingByExecutionId(e.executionId)]);if(Ua.isSome(n)&&n.value.status==="waiting_for_interaction"&&Ua.isSome(o))return}let t=Date.now(),r=yield*e.executorState.executions.update(e.executionId,{status:e.outcome.error?"failed":"completed",resultJson:lb(e.outcome.result),errorText:e.outcome.error??null,logsJson:lb(e.outcome.logs??null),completedAt:t,updatedAt:t});if(Ua.isNone(r)){yield*e.liveExecutionManager.clearRun(e.executionId);return}yield*e.liveExecutionManager.finishRun({executionId:e.executionId,state:r.value.status==="completed"?"completed":"failed"}),yield*e.executorState.executionSteps.deleteByExecutionId(e.executionId)}),ADt=e=>Lr.gen(function*(){let t=Date.now(),r=yield*e.executorState.executions.update(e.executionId,{status:"failed",errorText:e.error,completedAt:t,updatedAt:t});if(Ua.isNone(r)){yield*e.liveExecutionManager.clearRun(e.executionId);return}yield*e.liveExecutionManager.finishRun({executionId:e.executionId,state:"failed"}),yield*e.executorState.executionSteps.deleteByExecutionId(e.executionId)}),wDt=(e,t,r,n,o)=>t({scopeId:n.scopeId,actorScopeId:n.createdByScopeId,executionId:n.id,onElicitation:EDt({executorState:e,executionId:n.id,liveExecutionManager:r,interactionMode:o})}).pipe(Lr.map(i=>({executor:i.executor,toolInvoker:hDt({executionId:n.id,toolInvoker:TDt({executorState:e,executionId:n.id,toolInvoker:i.toolInvoker})})})),Lr.flatMap(({executor:i,toolInvoker:a})=>i.execute(n.code,a)),Lr.flatMap(i=>DDt({executorState:e,liveExecutionManager:r,executionId:n.id,outcome:i})),Lr.catchAll(i=>ADt({executorState:e,liveExecutionManager:r,executionId:n.id,error:i instanceof Error?i.message:String(i)}).pipe(Lr.catchAll(()=>r.clearRun(n.id))))),U2e=(e,t,r,n,o)=>Lr.gen(function*(){let i=yield*lh();yield*Lr.sync(()=>{let a=wDt(e,t,r,n,o);Lr.runFork(ch(a,i))})}),z2e=(e,t,r,n)=>Lr.gen(function*(){let o=yield*e.executions.getById(n.executionId);if(Ua.isNone(o))return!1;let i=yield*e.executionInteractions.getPendingByExecutionId(n.executionId);if(Ua.isNone(i)||o.value.status!=="waiting_for_interaction"&&o.value.status!=="failed")return!1;let a=Date.now(),c=[...yield*e.executionSteps.listByExecutionId(n.executionId)].reverse().find(d=>d.interactionId===i.value.id);c&&(yield*e.executionSteps.updateByExecutionAndSequence(n.executionId,c.sequence,{status:"waiting",errorText:null,updatedAt:a})),yield*e.executionInteractions.update(i.value.id,{status:n.response.action==="cancel"?"cancelled":"resolved",responseJson:lb(pw(n.response)),responsePrivateJson:lb(n.response),updatedAt:a});let p=yield*e.executions.update(n.executionId,{status:"running",updatedAt:a});return Ua.isNone(p)?!1:(yield*U2e(e,t,r,p.value,n.interactionMode),!0)}),IDt=(e,t,r,n)=>Lr.gen(function*(){let o=n.payload.code,i=Date.now(),a={id:Il.make(`exec_${crypto.randomUUID()}`),scopeId:n.scopeId,createdByScopeId:n.createdByScopeId,status:"pending",code:o,resultJson:null,errorText:null,logsJson:null,startedAt:null,completedAt:null,createdAt:i,updatedAt:i};yield*ap.create.child("insert").mapStorage(e.executions.insert(a));let s=yield*ap.create.child("mark_running").mapStorage(e.executions.update(a.id,{status:"running",startedAt:i,updatedAt:i}));if(Ua.isNone(s))return yield*ap.create.notFound("Execution not found after insert",`executionId=${a.id}`);let c=yield*r.registerStateWaiter(a.id);return yield*U2e(e,t,r,s.value,M2e(n.payload.interactionMode)),yield*F2e.await(c),yield*qF(e,{scopeId:n.scopeId,executionId:a.id,operation:ap.create})}),V2e=e=>Lr.gen(function*(){let t=yield*Wn,r=yield*Zh,n=yield*Xc;return yield*IDt(t,r,n,e)}),J2e=e=>Lr.flatMap(Wn,t=>qF(t,{scopeId:e.scopeId,executionId:e.executionId,operation:ap.get})),UF=e=>Lr.gen(function*(){let t=yield*Wn,r=yield*Zh,n=yield*Xc;return yield*z2e(t,r,n,{...e,interactionMode:e.interactionMode??R2e})}),K2e=e=>Lr.gen(function*(){let t=yield*Wn,r=yield*Zh,n=yield*Xc,o=yield*qF(t,{scopeId:e.scopeId,executionId:e.executionId,operation:"executions.resume"});if(o.execution.status!=="waiting_for_interaction"&&!(o.execution.status==="failed"&&o.pendingInteraction!==null))return yield*ap.resume.badRequest("Execution is not waiting for interaction",`executionId=${e.executionId} status=${o.execution.status}`);let i=e.payload.responseJson,a=i===void 0?{action:"accept"}:yield*Lr.try({try:()=>JSON.parse(i),catch:c=>ap.resume.badRequest("Invalid responseJson",c instanceof Error?c.message:String(c))}).pipe(Lr.flatMap(c=>L2e(c).pipe(Lr.mapError(p=>ap.resume.badRequest("Invalid responseJson",String(p))))));return!(yield*n.resolveInteraction({executionId:e.executionId,response:a}))&&!(yield*ap.resume.child("submit_interaction").mapStorage(z2e(t,r,n,{executionId:e.executionId,response:a,interactionMode:M2e(e.payload.interactionMode)})))?yield*ap.resume.badRequest("Resume is unavailable for this execution",`executionId=${e.executionId}`):yield*q2e(t,{scopeId:e.scopeId,executionId:e.executionId,operation:ap.resume,previousPendingInteractionId:o.pendingInteraction?.id??null,attemptsRemaining:400})});var kDt=e=>e instanceof Error?e.message:String(e),eX=e=>{let t=kDt(e);return new Error(`Failed initializing runtime: ${t}`)},CDt=e=>li.gen(function*(){yield*(yield*Vh).loadWorkspaceSourceCatalogToolIndex({scopeId:e.scopeId,actorScopeId:e.actorScopeId})}),PDt=()=>{let e={};return{tools:e,catalog:e_({tools:e}),toolInvoker:Yd({tools:e}),toolPaths:new Set}},ODt={refreshWorkspaceInBackground:()=>li.void,refreshSourceInBackground:()=>li.void},H2e=e=>({load:e.load,getOrProvision:e.getOrProvision}),Z2e=e=>({load:e.load,writeProject:({config:t})=>e.writeProject(t),resolveRelativePath:e.resolveRelativePath}),W2e=e=>({load:e.load,write:({state:t})=>e.write(t)}),Q2e=e=>({build:e.build,read:({sourceId:t})=>e.read(t),write:({sourceId:t,artifact:r})=>e.write({sourceId:t,artifact:r}),remove:({sourceId:t})=>e.remove(t)}),NDt=e=>Eo.mergeAll(Eo.succeed(Ol,e.resolve),Eo.succeed(Ys,e.store),Eo.succeed(as,e.delete),Eo.succeed(Jp,e.update)),FDt=e=>Eo.succeed(Kp,e.resolve),RDt=e=>({authArtifacts:e.auth.artifacts,authLeases:e.auth.leases,sourceOauthClients:e.auth.sourceOauthClients,scopeOauthClients:e.auth.scopeOauthClients,providerAuthGrants:e.auth.providerGrants,sourceAuthSessions:e.auth.sourceSessions,secretMaterials:e.secrets,executions:e.executions.runs,executionInteractions:e.executions.interactions,executionSteps:e.executions.steps}),LDt=e=>{let t=n2({installationStore:H2e(e.storage.installation),scopeConfigStore:Z2e(e.storage.scopeConfig),scopeStateStore:W2e(e.storage.scopeState),sourceArtifactStore:Q2e(e.storage.sourceArtifacts)}),r=Eo.succeed(Tf,Tf.of({load:()=>e.localToolRuntimeLoader?.load()??li.succeed(PDt())})),n=Eo.succeed(md,md.of(e.sourceTypeDeclarationsRefresher??ODt)),o=Eo.mergeAll(Eo.succeed(Wn,RDt(e.storage)),WV(e.localScopeState),t,Eo.succeed(Xc,e.liveExecutionManager),n),i=NDt(e.storage.secrets).pipe(Eo.provide(o)),a=FDt(e.instanceConfig),s=GTe.pipe(Eo.provide(Eo.mergeAll(o,i))),c=pDe.pipe(Eo.provide(Eo.mergeAll(o,s))),p=ole.pipe(Eo.provide(Eo.mergeAll(o,i))),d=mDe.pipe(Eo.provide(Eo.mergeAll(o,i,p))),f=g2e({getLocalServerBaseUrl:e.getLocalServerBaseUrl}).pipe(Eo.provide(Eo.mergeAll(o,a,i,s,d))),m=x2e({executionResolver:e.executionResolver,createInternalToolMap:e.createInternalToolMap,customCodeExecutor:e.customCodeExecutor}).pipe(Eo.provide(Eo.mergeAll(o,a,i,s,p,d,f,c,r)));return Eo.mergeAll(o,a,i,s,p,d,c,r,f,m)},X2e=(e,t)=>e.pipe(li.provide(t.managedRuntime)),Y2e=e=>li.gen(function*(){let t=yield*e.services.storage.installation.getOrProvision().pipe(li.mapError(eX)),r=yield*e.services.storage.scopeConfig.load().pipe(li.mapError(eX)),n={...e.services.scope,scopeId:t.scopeId,actorScopeId:e.services.scope.actorScopeId??t.actorScopeId,resolutionScopeIds:e.services.scope.resolutionScopeIds??t.resolutionScopeIds},o=yield*CDe({loadedConfig:r}).pipe(li.provide(n2({installationStore:H2e(e.services.storage.installation),scopeConfigStore:Z2e(e.services.storage.scopeConfig),scopeStateStore:W2e(e.services.storage.scopeState),sourceArtifactStore:Q2e(e.services.storage.sourceArtifacts)}))).pipe(li.mapError(eX)),i={scope:n,installation:t,loadedConfig:{...r,config:o}},a=EQ(),s=LDt({...e,...e.services,localScopeState:i,liveExecutionManager:a}),c=G2e.make(s);return yield*c.runtimeEffect,yield*hDe({scopeId:t.scopeId,actorScopeId:t.actorScopeId}).pipe(li.provide(c),li.catchAll(()=>li.void)),yield*CDt({scopeId:t.scopeId,actorScopeId:t.actorScopeId}).pipe(li.provide(c),li.catchAll(()=>li.void)),{storage:e.services.storage,localInstallation:t,managedRuntime:c,runtimeLayer:s,close:async()=>{await li.runPromise(dL()).catch(()=>{}),await c.dispose().catch(()=>{}),await e.services.storage.close?.().catch(()=>{})}}});var $Dt=e=>e instanceof Error?e:new Error(String(e)),_r=e=>Yc.isEffect(e)?e:e instanceof Promise?Yc.tryPromise({try:()=>e,catch:$Dt}):Yc.succeed(e),sa=e=>_r(e).pipe(Yc.map(t=>zF.isOption(t)?t:zF.fromNullable(t))),MDt=e=>({load:()=>_r(e.load()),getOrProvision:()=>_r(e.getOrProvision())}),jDt=e=>({load:()=>_r(e.load()),writeProject:t=>_r(e.writeProject(t)),resolveRelativePath:e.resolveRelativePath}),BDt=e=>({load:()=>_r(e.load()),write:t=>_r(e.write(t))}),qDt=e=>({build:e.build,read:t=>_r(e.read(t)),write:t=>_r(e.write(t)),remove:t=>_r(e.remove(t))}),UDt=e=>({resolve:()=>_r(e.resolve())}),zDt=e=>({load:()=>_r(e.load())}),VDt=e=>({refreshWorkspaceInBackground:t=>_r(e.refreshWorkspaceInBackground(t)).pipe(Yc.orDie),refreshSourceInBackground:t=>_r(e.refreshSourceInBackground(t)).pipe(Yc.orDie)}),JDt=e=>({artifacts:{listByScopeId:t=>_r(e.artifacts.listByScopeId(t)),listByScopeAndSourceId:t=>_r(e.artifacts.listByScopeAndSourceId(t)),getByScopeSourceAndActor:t=>sa(e.artifacts.getByScopeSourceAndActor(t)),upsert:t=>_r(e.artifacts.upsert(t)),removeByScopeSourceAndActor:t=>_r(e.artifacts.removeByScopeSourceAndActor(t)),removeByScopeAndSourceId:t=>_r(e.artifacts.removeByScopeAndSourceId(t))},leases:{listAll:()=>_r(e.leases.listAll()),getByAuthArtifactId:t=>sa(e.leases.getByAuthArtifactId(t)),upsert:t=>_r(e.leases.upsert(t)),removeByAuthArtifactId:t=>_r(e.leases.removeByAuthArtifactId(t))},sourceOauthClients:{getByScopeSourceAndProvider:t=>sa(e.sourceOauthClients.getByScopeSourceAndProvider(t)),upsert:t=>_r(e.sourceOauthClients.upsert(t)),removeByScopeAndSourceId:t=>_r(e.sourceOauthClients.removeByScopeAndSourceId(t))},scopeOauthClients:{listByScopeAndProvider:t=>_r(e.scopeOauthClients.listByScopeAndProvider(t)),getById:t=>sa(e.scopeOauthClients.getById(t)),upsert:t=>_r(e.scopeOauthClients.upsert(t)),removeById:t=>_r(e.scopeOauthClients.removeById(t))},providerGrants:{listByScopeId:t=>_r(e.providerGrants.listByScopeId(t)),listByScopeActorAndProvider:t=>_r(e.providerGrants.listByScopeActorAndProvider(t)),getById:t=>sa(e.providerGrants.getById(t)),upsert:t=>_r(e.providerGrants.upsert(t)),removeById:t=>_r(e.providerGrants.removeById(t))},sourceSessions:{listAll:()=>_r(e.sourceSessions.listAll()),listByScopeId:t=>_r(e.sourceSessions.listByScopeId(t)),getById:t=>sa(e.sourceSessions.getById(t)),getByState:t=>sa(e.sourceSessions.getByState(t)),getPendingByScopeSourceAndActor:t=>sa(e.sourceSessions.getPendingByScopeSourceAndActor(t)),insert:t=>_r(e.sourceSessions.insert(t)),update:(t,r)=>sa(e.sourceSessions.update(t,r)),upsert:t=>_r(e.sourceSessions.upsert(t)),removeByScopeAndSourceId:(t,r)=>_r(e.sourceSessions.removeByScopeAndSourceId(t,r))}}),KDt=e=>({getById:t=>sa(e.getById(t)),listAll:()=>_r(e.listAll()),upsert:t=>_r(e.upsert(t)),updateById:(t,r)=>sa(e.updateById(t,r)),removeById:t=>_r(e.removeById(t)),resolve:t=>_r(e.resolve(t)),store:t=>_r(e.store(t)),delete:t=>_r(e.delete(t)),update:t=>_r(e.update(t))}),GDt=e=>({runs:{getById:t=>sa(e.runs.getById(t)),getByScopeAndId:(t,r)=>sa(e.runs.getByScopeAndId(t,r)),insert:t=>_r(e.runs.insert(t)),update:(t,r)=>sa(e.runs.update(t,r))},interactions:{getById:t=>sa(e.interactions.getById(t)),listByExecutionId:t=>_r(e.interactions.listByExecutionId(t)),getPendingByExecutionId:t=>sa(e.interactions.getPendingByExecutionId(t)),insert:t=>_r(e.interactions.insert(t)),update:(t,r)=>sa(e.interactions.update(t,r))},steps:{getByExecutionAndSequence:(t,r)=>sa(e.steps.getByExecutionAndSequence(t,r)),listByExecutionId:t=>_r(e.steps.listByExecutionId(t)),insert:t=>_r(e.steps.insert(t)),deleteByExecutionId:t=>_r(e.steps.deleteByExecutionId(t)),updateByExecutionAndSequence:(t,r,n)=>sa(e.steps.updateByExecutionAndSequence(t,r,n))}}),ub=e=>({createRuntime:t=>Yc.flatMap(_r(e.loadRepositories(t)),r=>Y2e({...t,services:{scope:r.scope,storage:{installation:MDt(r.installation),scopeConfig:jDt(r.workspace.config),scopeState:BDt(r.workspace.state),sourceArtifacts:qDt(r.workspace.sourceArtifacts),auth:JDt(r.workspace.sourceAuth),secrets:KDt(r.secrets),executions:GDt(r.executions),close:r.close},localToolRuntimeLoader:r.workspace.localTools?zDt(r.workspace.localTools):void 0,sourceTypeDeclarationsRefresher:r.workspace.sourceTypeDeclarations?VDt(r.workspace.sourceTypeDeclarations):void 0,instanceConfig:UDt(r.instanceConfig)}}))});import*as iX from"effect/Effect";import*as db from"effect/Effect";import*as yc from"effect/Effect";import*as eAe from"effect/Option";var el={installation:Oo("local.installation.get"),sourceCredentialComplete:Oo("sources.credentials.complete"),sourceCredentialPage:Oo("sources.credentials.page"),sourceCredentialSubmit:Oo("sources.credentials.submit")},tX=e=>typeof e=="object"&&e!==null,rX=e=>typeof e=="string"?e:null,VF=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},HDt=e=>{try{if(e.purpose!=="source_connect_oauth2"&&e.purpose!=="source_connect_secret"&&e.purpose!=="elicitation")return null;let t=JSON.parse(e.payloadJson);if(!tX(t))return null;let r=t.args,n=t.elicitation;if(!tX(r)||!tX(n)||t.path!=="executor.sources.add")return null;let o=e.purpose==="elicitation"?n.mode==="url"?"source_connect_oauth2":"source_connect_secret":e.purpose;if(o==="source_connect_oauth2"&&n.mode!=="url"||o==="source_connect_secret"&&n.mode!=="form")return null;let i=VF(rX(r.scopeId)),a=VF(rX(r.sourceId)),s=VF(rX(n.message));return i===null||a===null||s===null?null:{interactionId:e.id,executionId:e.executionId,status:e.status,message:s,scopeId:hn.make(i),sourceId:Mn.make(a)}}catch{return null}},tAe=e=>yc.gen(function*(){let t=yield*Wn,r=yield*ip,n=yield*t.executionInteractions.getById(e.interactionId).pipe(yc.mapError(a=>e.operation.unknownStorage(a,`Failed loading execution interaction ${e.interactionId}`)));if(eAe.isNone(n))return yield*e.operation.notFound("Source credential request not found",`interactionId=${e.interactionId}`);let o=HDt(n.value);if(o===null||o.scopeId!==e.scopeId||o.sourceId!==e.sourceId)return yield*e.operation.notFound("Source credential request not found",`scopeId=${e.scopeId} sourceId=${e.sourceId} interactionId=${e.interactionId}`);let i=yield*r.getSourceById({scopeId:e.scopeId,sourceId:e.sourceId}).pipe(yc.mapError(a=>e.operation.unknownStorage(a,`Failed loading source ${e.sourceId}`)));return{...o,sourceLabel:i.name,endpoint:i.endpoint}}),rAe=()=>yc.gen(function*(){return yield*(yield*qg).load().pipe(yc.mapError(t=>el.installation.unknownStorage(t,"Failed loading local installation")))}),nAe=e=>tAe({...e,operation:el.sourceCredentialPage}),oAe=e=>yc.gen(function*(){let t=yield*tAe({scopeId:e.scopeId,sourceId:e.sourceId,interactionId:e.interactionId,operation:el.sourceCredentialSubmit});if(t.status!=="pending")return yield*el.sourceCredentialSubmit.badRequest("Source credential request is no longer active",`interactionId=${t.interactionId} status=${t.status}`);let r=yield*Xc;if(e.action==="cancel")return!(yield*r.resolveInteraction({executionId:t.executionId,response:{action:"cancel"}}))&&!(yield*UF({executionId:t.executionId,response:{action:"cancel"}}).pipe(yc.mapError(p=>el.sourceCredentialSubmit.unknownStorage(p,`Failed resuming execution for interaction ${t.interactionId}`))))?yield*el.sourceCredentialSubmit.badRequest("Source credential request is no longer resumable",`interactionId=${t.interactionId}`):{kind:"cancelled",sourceLabel:t.sourceLabel,endpoint:t.endpoint};if(e.action==="continue")return!(yield*r.resolveInteraction({executionId:t.executionId,response:{action:"accept",content:wQ()}}))&&!(yield*UF({executionId:t.executionId,response:{action:"accept",content:wQ()}}).pipe(yc.mapError(p=>el.sourceCredentialSubmit.unknownStorage(p,`Failed resuming execution for interaction ${t.interactionId}`))))?yield*el.sourceCredentialSubmit.badRequest("Source credential request is no longer resumable",`interactionId=${t.interactionId}`):{kind:"continued",sourceLabel:t.sourceLabel,endpoint:t.endpoint};let n=VF(e.token);if(n===null)return yield*el.sourceCredentialSubmit.badRequest("Missing token",`interactionId=${t.interactionId}`);let i=yield*(yield*ip).storeSecretMaterial({purpose:"auth_material",value:n}).pipe(yc.mapError(s=>el.sourceCredentialSubmit.unknownStorage(s,`Failed storing credential material for interaction ${t.interactionId}`)));return!(yield*r.resolveInteraction({executionId:t.executionId,response:{action:"accept",content:IQ(i)}}))&&!(yield*UF({executionId:t.executionId,response:{action:"accept",content:IQ(i)}}).pipe(yc.mapError(c=>el.sourceCredentialSubmit.unknownStorage(c,`Failed resuming execution for interaction ${t.interactionId}`))))?yield*el.sourceCredentialSubmit.badRequest("Source credential request is no longer resumable",`interactionId=${t.interactionId}`):{kind:"stored",sourceLabel:t.sourceLabel,endpoint:t.endpoint}}),iAe=e=>yc.gen(function*(){return yield*(yield*ip).completeSourceCredentialSetup(e).pipe(yc.mapError(r=>el.sourceCredentialComplete.unknownStorage(r,"Failed completing source credential setup")))});import*as za from"effect/Effect";import*as JF from"effect/Option";var sp=(e,t)=>new Gh({operation:e,message:t,details:t}),aAe=()=>za.flatMap(Kp,e=>e()),sAe=()=>za.gen(function*(){let e=yield*Wn,t=yield*Qo,r=yield*x1().pipe(za.mapError(()=>sp("secrets.list","Failed resolving local scope."))),n=yield*e.secretMaterials.listAll().pipe(za.mapError(()=>sp("secrets.list","Failed listing secrets."))),o=yield*t.listLinkedSecretSourcesInScope(r.installation.scopeId,{actorScopeId:r.installation.actorScopeId}).pipe(za.mapError(()=>sp("secrets.list","Failed loading linked sources.")));return n.map(i=>({...i,linkedSources:o.get(i.id)??[]}))}),cAe=e=>za.gen(function*(){let t=e.name.trim(),r=e.value,n=e.purpose??"auth_material";if(t.length===0)return yield*new ab({operation:"secrets.create",message:"Secret name is required.",details:"Secret name is required."});let o=yield*Wn,a=yield*(yield*Ys)({name:t,purpose:n,value:r,providerId:e.providerId}).pipe(za.mapError(p=>sp("secrets.create",p instanceof Error?p.message:"Failed creating secret."))),s=Bp.make(a.handle),c=yield*o.secretMaterials.getById(s).pipe(za.mapError(()=>sp("secrets.create","Failed loading created secret.")));return JF.isNone(c)?yield*sp("secrets.create",`Created secret not found: ${a.handle}`):{id:c.value.id,name:c.value.name,providerId:c.value.providerId,purpose:c.value.purpose,createdAt:c.value.createdAt,updatedAt:c.value.updatedAt}}),lAe=e=>za.gen(function*(){let t=Bp.make(e.secretId),n=yield*(yield*Wn).secretMaterials.getById(t).pipe(za.mapError(()=>sp("secrets.update","Failed looking up secret.")));if(JF.isNone(n))return yield*new bf({operation:"secrets.update",message:`Secret not found: ${e.secretId}`,details:`Secret not found: ${e.secretId}`});let o={};e.payload.name!==void 0&&(o.name=e.payload.name.trim()||null),e.payload.value!==void 0&&(o.value=e.payload.value);let a=yield*(yield*Jp)({ref:{providerId:n.value.providerId,handle:n.value.id},...o}).pipe(za.mapError(()=>sp("secrets.update","Failed updating secret.")));return{id:a.id,providerId:a.providerId,name:a.name,purpose:a.purpose,createdAt:a.createdAt,updatedAt:a.updatedAt}}),uAe=e=>za.gen(function*(){let t=Bp.make(e),n=yield*(yield*Wn).secretMaterials.getById(t).pipe(za.mapError(()=>sp("secrets.delete","Failed looking up secret.")));return JF.isNone(n)?yield*new bf({operation:"secrets.delete",message:`Secret not found: ${e}`,details:`Secret not found: ${e}`}):(yield*(yield*as)({providerId:n.value.providerId,handle:n.value.id}).pipe(za.mapError(()=>sp("secrets.delete","Failed removing secret."))))?{removed:!0}:yield*sp("secrets.delete",`Failed removing secret: ${e}`)});import*as pAe from"effect/Either";import*as Xo from"effect/Effect";import*as nX from"effect/Effect";var pb=(e,t)=>t.pipe(nX.mapError(r=>hw(e).storage(r)));var tu={list:Oo("sources.list"),create:Oo("sources.create"),get:Oo("sources.get"),update:Oo("sources.update"),remove:Oo("sources.remove")},ZDt=e=>_i(e).shouldAutoProbe(e),dAe=e=>Xo.gen(function*(){let t=yield*eu,r=ZDt(e.source),n=r?{...e.source,status:"connected"}:e.source,o=yield*Xo.either(t.sync({source:n,actorScopeId:e.actorScopeId}));return yield*pAe.match(o,{onRight:()=>Xo.gen(function*(){if(r){let i=yield*gf({source:e.source,payload:{status:"connected",lastError:null},now:Date.now()}).pipe(Xo.mapError(a=>e.operation.badRequest("Failed updating source status",a instanceof Error?a.message:String(a))));return yield*pb(e.operation.child("source_connected"),e.sourceStore.persistSource(i,{actorScopeId:e.actorScopeId})),i}return e.source}),onLeft:i=>Xo.gen(function*(){if(r||e.source.enabled&&e.source.status==="connected"){let a=yield*gf({source:e.source,payload:{status:"error",lastError:i.message},now:Date.now()}).pipe(Xo.mapError(s=>e.operation.badRequest("Failed indexing source tools",s instanceof Error?s.message:String(s))));yield*pb(e.operation.child("source_error"),e.sourceStore.persistSource(a,{actorScopeId:e.actorScopeId}))}return yield*e.operation.unknownStorage(i,"Failed syncing source tools")})})}),_Ae=e=>Xo.flatMap(Wn,()=>Xo.gen(function*(){return yield*(yield*Qo).loadSourcesInScope(e.scopeId,{actorScopeId:e.actorScopeId}).pipe(Xo.mapError(r=>tu.list.unknownStorage(r,"Failed projecting stored sources")))})),fAe=e=>Xo.flatMap(Wn,t=>Xo.gen(function*(){let r=yield*Qo,n=Date.now(),o=yield*vS({scopeId:e.scopeId,sourceId:Mn.make(`src_${crypto.randomUUID()}`),payload:e.payload,now:n}).pipe(Xo.mapError(s=>tu.create.badRequest("Invalid source definition",s instanceof Error?s.message:String(s)))),i=yield*pb(tu.create.child("persist"),r.persistSource(o,{actorScopeId:e.actorScopeId}));return yield*dAe({store:t,sourceStore:r,source:i,actorScopeId:e.actorScopeId,operation:tu.create})})),mAe=e=>Xo.flatMap(Wn,()=>Xo.gen(function*(){return yield*(yield*Qo).loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId,actorScopeId:e.actorScopeId}).pipe(Xo.mapError(r=>r instanceof Error&&r.message.startsWith("Source not found:")?tu.get.notFound("Source not found",`scopeId=${e.scopeId} sourceId=${e.sourceId}`):tu.get.unknownStorage(r,"Failed projecting stored source")))})),hAe=e=>Xo.flatMap(Wn,t=>Xo.gen(function*(){let r=yield*Qo,n=yield*r.loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId,actorScopeId:e.actorScopeId}).pipe(Xo.mapError(s=>s instanceof Error&&s.message.startsWith("Source not found:")?tu.update.notFound("Source not found",`scopeId=${e.scopeId} sourceId=${e.sourceId}`):tu.update.unknownStorage(s,"Failed projecting stored source"))),o=yield*gf({source:n,payload:e.payload,now:Date.now()}).pipe(Xo.mapError(s=>tu.update.badRequest("Invalid source definition",s instanceof Error?s.message:String(s)))),i=yield*pb(tu.update.child("persist"),r.persistSource(o,{actorScopeId:e.actorScopeId}));return yield*dAe({store:t,sourceStore:r,source:i,actorScopeId:e.actorScopeId,operation:tu.update})})),yAe=e=>Xo.flatMap(Wn,()=>Xo.gen(function*(){let t=yield*Qo;return{removed:yield*pb(tu.remove.child("remove"),t.removeSourceById({scopeId:e.scopeId,sourceId:e.sourceId}))}}));var WDt=e=>{let t=e.localInstallation,r=t.scopeId,n=t.actorScopeId,o=s=>X2e(s,e),i=s=>o(db.flatMap(ip,s)),a=()=>{let s=crypto.randomUUID();return{executionId:Il.make(`exec_sdk_${s}`),interactionId:`executor.sdk.${s}`}};return{runtime:e,installation:t,scopeId:r,actorScopeId:n,resolutionScopeIds:t.resolutionScopeIds,close:()=>e.close(),local:{installation:()=>o(rAe()),config:()=>o(aAe()),credentials:{get:({sourceId:s,interactionId:c})=>o(nAe({scopeId:r,sourceId:s,interactionId:c})),submit:({sourceId:s,interactionId:c,action:p,token:d})=>o(oAe({scopeId:r,sourceId:s,interactionId:c,action:p,token:d})),complete:({sourceId:s,state:c,code:p,error:d,errorDescription:f})=>o(iAe({scopeId:r,sourceId:s,state:c,code:p,error:d,errorDescription:f}))}},secrets:{list:()=>o(sAe()),create:s=>o(cAe(s)),update:s=>o(lAe(s)),remove:s=>o(uAe(s))},policies:{list:()=>o(RDe(r)),create:s=>o(LDe({scopeId:r,payload:s})),get:s=>o($De({scopeId:r,policyId:s})),update:(s,c)=>o(MDe({scopeId:r,policyId:s,payload:c})),remove:s=>o(jDe({scopeId:r,policyId:s})).pipe(db.map(c=>c.removed))},sources:{add:(s,c)=>i(p=>{let d=a();return p.addExecutorSource({...s,scopeId:r,actorScopeId:n,executionId:d.executionId,interactionId:d.interactionId},c)}),connect:s=>i(c=>c.connectMcpSource({...s,scopeId:r,actorScopeId:n})),connectBatch:s=>i(c=>{let p=a();return c.connectGoogleDiscoveryBatch({...s,scopeId:r,actorScopeId:n,executionId:p.executionId,interactionId:p.interactionId})}),discover:s=>o(O2e(s)),list:()=>o(_Ae({scopeId:r,actorScopeId:n})),create:s=>o(fAe({scopeId:r,actorScopeId:n,payload:s})),get:s=>o(mAe({scopeId:r,sourceId:s,actorScopeId:n})),update:(s,c)=>o(hAe({scopeId:r,sourceId:s,actorScopeId:n,payload:c})),remove:s=>o(yAe({scopeId:r,sourceId:s})).pipe(db.map(c=>c.removed)),inspection:{get:s=>o(k2e({scopeId:r,sourceId:s})),tool:({sourceId:s,toolPath:c})=>o(C2e({scopeId:r,sourceId:s,toolPath:c})),discover:({sourceId:s,payload:c})=>o(P2e({scopeId:r,sourceId:s,payload:c}))},oauthClients:{list:s=>i(c=>c.listScopeOauthClients({scopeId:r,providerKey:s})),create:s=>i(c=>c.createScopeOauthClient({scopeId:r,providerKey:s.providerKey,label:s.label,oauthClient:s.oauthClient})),remove:s=>i(c=>c.removeScopeOauthClient({scopeId:r,oauthClientId:s}))},providerGrants:{remove:s=>i(c=>c.removeProviderAuthGrant({scopeId:r,grantId:s}))}},oauth:{startSourceAuth:s=>i(c=>c.startSourceOAuthSession({...s,scopeId:r,actorScopeId:n})),completeSourceAuth:({state:s,code:c,error:p,errorDescription:d})=>i(f=>f.completeSourceOAuthSession({state:s,code:c,error:p,errorDescription:d})),completeProviderCallback:s=>i(c=>c.completeProviderOauthCallback({...s,scopeId:s.scopeId??r,actorScopeId:s.actorScopeId??n}))},executions:{create:s=>o(V2e({scopeId:r,payload:s,createdByScopeId:n})),get:s=>o(J2e({scopeId:r,executionId:s})),resume:(s,c)=>o(K2e({scopeId:r,executionId:s,payload:c,resumedByScopeId:n}))}}},oX=e=>db.map(e.backend.createRuntime({executionResolver:e.executionResolver,createInternalToolMap:e.createInternalToolMap,resolveSecretMaterial:e.resolveSecretMaterial,getLocalServerBaseUrl:e.getLocalServerBaseUrl,customCodeExecutor:e.customCodeExecutor}),WDt);var QDt=e=>{let t=r=>iX.runPromise(r);return{installation:e.installation,scopeId:e.scopeId,actorScopeId:e.actorScopeId,resolutionScopeIds:e.resolutionScopeIds,close:()=>e.close(),local:{installation:()=>t(e.local.installation()),config:()=>t(e.local.config()),credentials:{get:r=>t(e.local.credentials.get(r)),submit:r=>t(e.local.credentials.submit(r)),complete:r=>t(e.local.credentials.complete(r))}},secrets:{list:()=>t(e.secrets.list()),create:r=>t(e.secrets.create(r)),update:r=>t(e.secrets.update(r)),remove:r=>t(e.secrets.remove(r))},policies:{list:()=>t(e.policies.list()),create:r=>t(e.policies.create(r)),get:r=>t(e.policies.get(r)),update:(r,n)=>t(e.policies.update(r,n)),remove:r=>t(e.policies.remove(r))},sources:{add:(r,n)=>t(e.sources.add(r,n)),connect:r=>t(e.sources.connect(r)),connectBatch:r=>t(e.sources.connectBatch(r)),discover:r=>t(e.sources.discover(r)),list:()=>t(e.sources.list()),create:r=>t(e.sources.create(r)),get:r=>t(e.sources.get(r)),update:(r,n)=>t(e.sources.update(r,n)),remove:r=>t(e.sources.remove(r)),inspection:{get:r=>t(e.sources.inspection.get(r)),tool:r=>t(e.sources.inspection.tool(r)),discover:r=>t(e.sources.inspection.discover(r))},oauthClients:{list:r=>t(e.sources.oauthClients.list(r)),create:r=>t(e.sources.oauthClients.create(r)),remove:r=>t(e.sources.oauthClients.remove(r))},providerGrants:{remove:r=>t(e.sources.providerGrants.remove(r))}},oauth:{startSourceAuth:r=>t(e.oauth.startSourceAuth(r)),completeSourceAuth:r=>t(e.oauth.completeSourceAuth(r)),completeProviderCallback:r=>t(e.oauth.completeProviderCallback(r))},executions:{create:r=>t(e.executions.create(r)),get:r=>t(e.executions.get(r)),resume:(r,n)=>t(e.executions.resume(r,n))}}},aX=async e=>QDt(await iX.runPromise(oX(e)));import{FileSystem as kwe}from"@effect/platform";import{NodeFileSystem as rwt}from"@effect/platform-node";import*as Ki from"effect/Effect";import{homedir as xw}from"node:os";import{basename as s2t,dirname as c2t,isAbsolute as l2t,join as va,resolve as TS}from"node:path";import{FileSystem as hb}from"@effect/platform";function KF(e,t=!1){let r=e.length,n=0,o="",i=0,a=16,s=0,c=0,p=0,d=0,f=0;function m(E,C){let F=0,O=0;for(;F=48&&$<=57)O=O*16+$-48;else if($>=65&&$<=70)O=O*16+$-65+10;else if($>=97&&$<=102)O=O*16+$-97+10;else break;n++,F++}return F=r){E+=e.substring(C,n),f=2;break}let F=e.charCodeAt(n);if(F===34){E+=e.substring(C,n),n++;break}if(F===92){if(E+=e.substring(C,n),n++,n>=r){f=2;break}switch(e.charCodeAt(n++)){case 34:E+='"';break;case 92:E+="\\";break;case 47:E+="/";break;case 98:E+="\b";break;case 102:E+="\f";break;case 110:E+=` -`;break;case 114:E+="\r";break;case 116:E+=" ";break;case 117:let $=m(4,!0);$>=0?E+=String.fromCharCode($):f=4;break;default:f=5}C=n;continue}if(F>=0&&F<=31)if(Sw(F)){E+=e.substring(C,n),f=2;break}else f=6;n++}return E}function x(){if(o="",f=0,i=n,c=s,d=p,n>=r)return i=r,a=17;let E=e.charCodeAt(n);if(sX(E)){do n++,o+=String.fromCharCode(E),E=e.charCodeAt(n);while(sX(E));return a=15}if(Sw(E))return n++,o+=String.fromCharCode(E),E===13&&e.charCodeAt(n)===10&&(n++,o+=` -`),s++,p=n,a=14;switch(E){case 123:return n++,a=1;case 125:return n++,a=2;case 91:return n++,a=3;case 93:return n++,a=4;case 58:return n++,a=6;case 44:return n++,a=5;case 34:return n++,o=S(),a=10;case 47:let C=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n=12&&E<=15);return E}return{setPosition:y,getPosition:()=>n,scan:t?I:x,getToken:()=>a,getTokenValue:()=>o,getTokenOffset:()=>i,getTokenLength:()=>n-i,getTokenStartLine:()=>c,getTokenStartCharacter:()=>i-d,getTokenError:()=>f}}function sX(e){return e===32||e===9}function Sw(e){return e===10||e===13}function _b(e){return e>=48&&e<=57}var gAe;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(gAe||(gAe={}));var YDt=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),fb=200,e2t={" ":{"\n":new Array(fb).fill(0).map((e,t)=>` -`+" ".repeat(t)),"\r":new Array(fb).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(fb).fill(0).map((e,t)=>`\r -`+" ".repeat(t))}," ":{"\n":new Array(fb).fill(0).map((e,t)=>` -`+" ".repeat(t)),"\r":new Array(fb).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(fb).fill(0).map((e,t)=>`\r -`+" ".repeat(t))}};var GF;(function(e){e.DEFAULT={allowTrailingComma:!1}})(GF||(GF={}));function SAe(e,t=[],r=GF.DEFAULT){let n=null,o=[],i=[];function a(c){Array.isArray(o)?o.push(c):n!==null&&(o[n]=c)}return vAe(e,{onObjectBegin:()=>{let c={};a(c),i.push(o),o=c,n=null},onObjectProperty:c=>{n=c},onObjectEnd:()=>{o=i.pop()},onArrayBegin:()=>{let c=[];a(c),i.push(o),o=c,n=null},onArrayEnd:()=>{o=i.pop()},onLiteralValue:a,onError:(c,p,d)=>{t.push({error:c,offset:p,length:d})}},r),o[0]}function vAe(e,t,r=GF.DEFAULT){let n=KF(e,!1),o=[],i=0;function a(me){return me?()=>i===0&&me(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function s(me){return me?xe=>i===0&&me(xe,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function c(me){return me?xe=>i===0&&me(xe,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>o.slice()):()=>!0}function p(me){return me?()=>{i>0?i++:me(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>o.slice())===!1&&(i=1)}:()=>!0}function d(me){return me?()=>{i>0&&i--,i===0&&me(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:()=>!0}let f=p(t.onObjectBegin),m=c(t.onObjectProperty),y=d(t.onObjectEnd),g=p(t.onArrayBegin),S=d(t.onArrayEnd),x=c(t.onLiteralValue),A=s(t.onSeparator),I=a(t.onComment),E=s(t.onError),C=r&&r.disallowComments,F=r&&r.allowTrailingComma;function O(){for(;;){let me=n.scan();switch(n.getTokenError()){case 4:$(14);break;case 5:$(15);break;case 3:$(13);break;case 1:C||$(11);break;case 2:$(12);break;case 6:$(16);break}switch(me){case 12:case 13:C?$(10):I();break;case 16:$(1);break;case 15:case 14:break;default:return me}}}function $(me,xe=[],Rt=[]){if(E(me),xe.length+Rt.length>0){let Vt=n.getToken();for(;Vt!==17;){if(xe.indexOf(Vt)!==-1){O();break}else if(Rt.indexOf(Vt)!==-1)break;Vt=O()}}}function N(me){let xe=n.getTokenValue();return me?x(xe):(m(xe),o.push(xe)),O(),!0}function U(){switch(n.getToken()){case 11:let me=n.getTokenValue(),xe=Number(me);isNaN(xe)&&($(2),xe=0),x(xe);break;case 7:x(null);break;case 8:x(!0);break;case 9:x(!1);break;default:return!1}return O(),!0}function ge(){return n.getToken()!==10?($(3,[],[2,5]),!1):(N(!1),n.getToken()===6?(A(":"),O(),Ve()||$(4,[],[2,5])):$(5,[],[2,5]),o.pop(),!0)}function Te(){f(),O();let me=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(me||$(4,[],[]),A(","),O(),n.getToken()===2&&F)break}else me&&$(6,[],[]);ge()||$(4,[],[2,5]),me=!0}return y(),n.getToken()!==2?$(7,[2],[]):O(),!0}function ke(){g(),O();let me=!0,xe=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(xe||$(4,[],[]),A(","),O(),n.getToken()===4&&F)break}else xe&&$(6,[],[]);me?(o.push(0),me=!1):o[o.length-1]++,Ve()||$(4,[],[4,5]),xe=!0}return S(),me||o.pop(),n.getToken()!==4?$(8,[4],[]):O(),!0}function Ve(){switch(n.getToken()){case 3:return ke();case 1:return Te();case 10:return N(!0);default:return U()}}return O(),n.getToken()===17?r.allowEmptyContent?!0:($(4,[],[]),!1):Ve()?(n.getToken()!==17&&$(9,[],[]),!0):($(4,[],[]),!1)}var bAe;(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"})(bAe||(bAe={}));var xAe;(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"})(xAe||(xAe={}));var TAe=SAe;var EAe;(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"})(EAe||(EAe={}));function DAe(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return""}import*as Ti from"effect/Effect";import*as FAe from"effect/Schema";import*as Sc from"effect/Data";var Yo=e=>e instanceof Error?e.message:String(e),gc=class extends Sc.TaggedError("LocalFileSystemError"){},Wh=class extends Sc.TaggedError("LocalExecutorConfigDecodeError"){},HF=class extends Sc.TaggedError("LocalWorkspaceStateDecodeError"){},AAe=class extends Sc.TaggedError("LocalSourceArtifactDecodeError"){},ZF=class extends Sc.TaggedError("LocalToolTranspileError"){},vw=class extends Sc.TaggedError("LocalToolImportError"){},Qh=class extends Sc.TaggedError("LocalToolDefinitionError"){},WF=class extends Sc.TaggedError("LocalToolPathConflictError"){},wAe=class extends Sc.TaggedError("RuntimeLocalWorkspaceUnavailableError"){},IAe=class extends Sc.TaggedError("RuntimeLocalWorkspaceMismatchError"){},kAe=class extends Sc.TaggedError("LocalConfiguredSourceNotFoundError"){},CAe=class extends Sc.TaggedError("LocalSourceArtifactMissingError"){},PAe=class extends Sc.TaggedError("LocalUnsupportedSourceKindError"){};var RAe=FAe.decodeUnknownSync(Lce),u2t=e=>`${JSON.stringify(e,null,2)} -`,yb=e=>{let t=e.path.trim();return t.startsWith("~/")?va(xw(),t.slice(2)):t==="~"?xw():l2t(t)?t:TS(e.scopeRoot,t)},cX="executor.jsonc",bw=".executor",p2t="EXECUTOR_CONFIG_DIR",d2t="EXECUTOR_STATE_DIR",Xh=(e,t)=>r=>new gc({message:`Failed to ${t} ${e}: ${Yo(r)}`,action:t,path:e,details:Yo(r)}),mb=e=>{let t=e?.trim();return t&&t.length>0?t:void 0},_2t=(e={})=>{let t=e.env??process.env,r=e.platform??process.platform,n=e.homeDirectory??xw(),o=mb(t[p2t]);return o||(r==="win32"?va(mb(t.LOCALAPPDATA)??va(n,"AppData","Local"),"Executor"):r==="darwin"?va(n,"Library","Application Support","Executor"):va(mb(t.XDG_CONFIG_HOME)??va(n,".config"),"executor"))},f2t=(e={})=>{let t=e.env??process.env,r=e.platform??process.platform,n=e.homeDirectory??xw(),o=mb(t[d2t]);return o||(r==="win32"?va(mb(t.LOCALAPPDATA)??va(n,"AppData","Local"),"Executor","State"):r==="darwin"?va(n,"Library","Application Support","Executor","State"):va(mb(t.XDG_STATE_HOME)??va(n,".local","state"),"executor"))},m2t=(e={})=>{let t=_2t({env:e.env,platform:e.platform,homeDirectory:e.homeDirectory??xw()});return[va(t,cX)]},h2t=(e={})=>Ti.gen(function*(){let t=yield*hb.FileSystem,r=m2t(e);for(let n of r)if(yield*t.exists(n).pipe(Ti.mapError(Xh(n,"check config path"))))return n;return r[0]}),y2t=(e={})=>f2t(e),OAe=(e,t)=>{let r=e.split(` +`)},catch:t=>t instanceof Error?t:new Error(String(t))}),XTe=e=>e===void 0?qr.succeed(null):qr.tryPromise({try:()=>rA(e,"typescript"),catch:t=>t instanceof Error?t:new Error(String(t))}),YTe=e=>{let t=vEt(e);return t===null?qr.succeed(null):qr.tryPromise({try:()=>rA(t,"json"),catch:r=>r instanceof Error?r:new Error(String(r))})},wEt=e=>e.length===0?"tool":`${e.slice(0,1).toLowerCase()}${e.slice(1)}`,kEt=e=>{let t=e.catalog.symbols[e.shapeId],r=t?.kind==="shape"?GT({title:t.title,docs:t.docs,deprecated:t.deprecated,includeTitle:!0}):null,n=`type ${e.aliasHint} = ${e.body};`;return r?`${r} +${n}`:n},dDe=e=>{let t=di(...e.projectedDescriptor.toolPath,"call"),r=di(...e.projectedDescriptor.toolPath,"result"),n=e.projectedDescriptor.callShapeId,o=e.projectedDescriptor.resultShapeId??null,i=ZT(e.projectedCatalog,n),a=o?r:"unknown",s=wEt(di(...e.projectedDescriptor.toolPath)),c=GT({title:e.capability.surface.title,docs:{...e.capability.surface.summary?{summary:e.capability.surface.summary}:{},...e.capability.surface.description?{description:e.capability.surface.description}:{}},includeTitle:!0});return qr.gen(function*(){let[p,d,f,m,y,g,S,b]=yield*qr.all([XTe(e.descriptor.contract?.inputTypePreview),XTe(e.descriptor.contract?.outputTypePreview),QTe({catalog:e.projectedCatalog,shapeId:n,aliasHint:t}),o?QTe({catalog:e.projectedCatalog,shapeId:o,aliasHint:r}):qr.succeed(null),YTe(e.descriptor.contract?.inputSchema??AF(e.projectedCatalog,n)),o?YTe(e.descriptor.contract?.outputSchema??AF(e.projectedCatalog,o)):qr.succeed(null),qr.tryPromise({try:()=>rA(`(${i?"args?":"args"}: ${t}) => Promise<${a}>`,"typescript"),catch:E=>E instanceof Error?E:new Error(String(E))}),qr.tryPromise({try:()=>rA([...c?[c]:[],`declare function ${s}(${i?"args?":"args"}: ${t}): Promise<${a}>;`].join(` +`),"typescript-module"),catch:E=>E instanceof Error?E:new Error(String(E))})]);return{callSignature:S,callDeclaration:b,callShapeId:n,resultShapeId:o,responseSetId:e.projectedDescriptor.responseSetId,input:{shapeId:n,typePreview:p,typeDeclaration:f,schemaJson:y,exampleJson:null},output:{shapeId:o,typePreview:d,typeDeclaration:m,schemaJson:g,exampleJson:null}}})},xQ=e=>qr.succeed(e.catalogs.flatMap(t=>Object.values(t.catalog.capabilities).flatMap(r=>bEt(t.projected,r)===e.path?[oDe({catalogEntry:t,capability:r,includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews??!0})]:[])).at(0)??null);var CEt=e=>qr.gen(function*(){let t=yield*IEt({scopeId:e.scopeId,actorScopeId:e.actorScopeId}),r=yield*xQ({catalogs:t,path:e.path,includeSchemas:e.includeSchemas});return r?{path:r.path,searchNamespace:r.searchNamespace,searchText:r.searchText,source:r.source,sourceRecord:r.sourceRecord,capabilityId:r.capabilityId,executableId:r.executableId,capability:r.capability,executable:r.executable,descriptor:r.descriptor,projectedCatalog:r.projectedCatalog}:null}),_De=tDe.effect(Gh,qr.gen(function*(){let e=yield*Rs,t=yield*Qo,r=yield*Ma,n={runtimeLocalScope:e,sourceStore:t,sourceArtifactStore:r},o=yield*vQ.make({capacity:32,timeToLive:"10 minutes",lookup:c=>lDe(n,{scopeId:c.scopeId,actorScopeId:c.actorScopeId})}),i=yield*vQ.make({capacity:32,timeToLive:"10 minutes",lookup:c=>qr.gen(function*(){let p=yield*o.get(c);return(yield*bQ({catalogs:p,includeSchemas:!1,includeTypePreviews:!1})).map(SEt)})}),a=c=>qr.flatMap(WTe(n,c),p=>o.get(p)),s=c=>qr.flatMap(WTe(n,c),p=>i.get(p));return Gh.of({loadWorkspaceSourceCatalogs:c=>a(c),loadSourceWithCatalog:c=>uDe(n,c),loadWorkspaceSourceCatalogToolIndex:c=>s({scopeId:c.scopeId,actorScopeId:c.actorScopeId}),loadWorkspaceSourceCatalogToolByPath:c=>c.includeSchemas?CEt(c).pipe(qr.provideService(Rs,e),qr.provideService(Qo,t),qr.provideService(Ma,r)):qr.map(s({scopeId:c.scopeId,actorScopeId:c.actorScopeId}),p=>p.find(d=>d.path===c.path)??null)})}));import*as Hh from"effect/Effect";import*as fDe from"effect/Context";import*as xf from"effect/Effect";import*as mDe from"effect/Layer";var PEt=e=>e.enabled&&e.status==="connected"&&_i(e).catalogKind!=="internal",tu=class extends fDe.Tag("#runtime/RuntimeSourceCatalogSyncService")(){},hDe=(e,t)=>xf.gen(function*(){if(e.runtimeLocalScope.installation.scopeId!==t)return yield*xf.fail(Ne("catalog/source/sync",`Runtime local scope mismatch: expected ${t}, got ${e.runtimeLocalScope.installation.scopeId}`))}),OEt=(e,t)=>xf.gen(function*(){if(yield*hDe(e,t.source.scopeId),!PEt(t.source)){let c=yield*e.scopeStateStore.load(),p=c.sources[t.source.id],d={...c,sources:{...c.sources,[t.source.id]:{status:t.source.enabled?t.source.status:"draft",lastError:null,sourceHash:t.source.sourceHash,createdAt:p?.createdAt??t.source.createdAt,updatedAt:Date.now()}}};yield*e.scopeStateStore.write({state:d}),yield*e.sourceTypeDeclarationsRefresher.refreshSourceInBackground({source:t.source,snapshot:null});return}let n=yield*_i(t.source).syncCatalog({source:t.source,resolveSecretMaterial:e.resolveSecretMaterial,resolveAuthMaterialForSlot:c=>e.sourceAuthMaterialService.resolve({source:t.source,slot:c,actorScopeId:t.actorScopeId})}),o=$T(n);yield*e.sourceArtifactStore.write({sourceId:t.source.id,artifact:e.sourceArtifactStore.build({source:t.source,syncResult:n})});let i=yield*e.scopeStateStore.load(),a=i.sources[t.source.id],s={...i,sources:{...i.sources,[t.source.id]:{status:"connected",lastError:null,sourceHash:n.sourceHash,createdAt:a?.createdAt??t.source.createdAt,updatedAt:Date.now()}}};yield*e.scopeStateStore.write({state:s}),yield*e.sourceTypeDeclarationsRefresher.refreshSourceInBackground({source:t.source,snapshot:o})}).pipe(xf.withSpan("source.catalog.sync",{attributes:{"executor.source.id":t.source.id,"executor.source.kind":t.source.kind,"executor.source.namespace":t.source.namespace,"executor.source.endpoint":t.source.endpoint}})),NEt=(e,t)=>xf.gen(function*(){yield*hDe(e,t.source.scopeId);let r=FB({source:t.source,endpoint:t.source.endpoint,manifest:t.manifest}),n=$T(r);yield*e.sourceArtifactStore.write({sourceId:t.source.id,artifact:e.sourceArtifactStore.build({source:t.source,syncResult:r})}),yield*e.sourceTypeDeclarationsRefresher.refreshSourceInBackground({source:t.source,snapshot:n})});var yDe=mDe.effect(tu,xf.gen(function*(){let e=yield*Rs,t=yield*$a,r=yield*Ma,n=yield*hd,o=yield*Nl,i=yield*Fm,a={runtimeLocalScope:e,scopeStateStore:t,sourceArtifactStore:r,sourceTypeDeclarationsRefresher:n,resolveSecretMaterial:o,sourceAuthMaterialService:i};return tu.of({sync:s=>OEt(a,s),persistMcpCatalogSnapshotFromManifest:s=>NEt(a,s)})}));var FEt=e=>e.enabled&&e.status==="connected"&&_i(e).catalogKind!=="internal",gDe=e=>Hh.gen(function*(){let t=yield*Rs,r=yield*Qo,n=yield*Ma,o=yield*tu,i=yield*r.loadSourcesInScope(e.scopeId,{actorScopeId:e.actorScopeId});for(let a of i)!FEt(a)||(yield*n.read({sourceId:a.id}))!==null||(yield*o.sync({source:a,actorScopeId:e.actorScopeId}).pipe(Hh.catchAll(()=>Hh.void)))}).pipe(Hh.withSpan("source.catalog.reconcile_missing",{attributes:{"executor.scope.id":e.scopeId}}));import*as SDe from"effect/Context";import*as Zh from"effect/Deferred";import*as ga from"effect/Effect";import*as vDe from"effect/Layer";var REt=()=>({stateWaiters:[],currentInteraction:null}),EQ=e=>e===void 0?null:JSON.stringify(e),LEt=new Set(["tokenRef","tokenSecretMaterialId"]),TQ=e=>{if(Array.isArray(e))return e.map(TQ);if(!e||typeof e!="object")return e;let t=Object.entries(e).filter(([r])=>!LEt.has(r)).map(([r,n])=>[r,TQ(n)]);return Object.fromEntries(t)},_I=e=>{if(e.content===void 0)return e;let t=TQ(e.content);return{...e,content:t}},$Et=e=>{let t=e.context?.interactionPurpose;return typeof t=="string"&&t.length>0?t:e.path==="executor.sources.add"?e.elicitation.mode==="url"?"source_connect_oauth2":"source_connect_secret":"elicitation"},DQ=()=>{let e=new Map,t=o=>{let i=e.get(o);if(i)return i;let a=REt();return e.set(o,a),a},r=o=>ga.gen(function*(){let i=t(o.executionId),a=[...i.stateWaiters];i.stateWaiters=[],yield*ga.forEach(a,s=>Zh.succeed(s,o.state),{discard:!0})});return{publishState:r,registerStateWaiter:o=>ga.gen(function*(){let i=yield*Zh.make();return t(o).stateWaiters.push(i),i}),createOnElicitation:({executorState:o,executionId:i})=>a=>ga.gen(function*(){let s=t(i),c=yield*Zh.make(),p=Date.now(),d={id:ws.make(`${i}:${a.interactionId}`),executionId:i,status:"pending",kind:a.elicitation.mode==="url"?"url":"form",purpose:$Et(a),payloadJson:EQ({path:a.path,sourceKey:a.sourceKey,args:a.args,context:a.context,elicitation:a.elicitation})??"{}",responseJson:null,responsePrivateJson:null,createdAt:p,updatedAt:p};return yield*o.executionInteractions.insert(d),yield*o.executions.update(i,{status:"waiting_for_interaction",updatedAt:p}),s.currentInteraction={interactionId:d.id,response:c},yield*ga.gen(function*(){yield*r({executionId:i,state:"waiting_for_interaction"});let f=yield*Zh.await(c),m=Date.now();return yield*o.executionInteractions.update(d.id,{status:f.action==="cancel"?"cancelled":"resolved",responseJson:EQ(_I(f)),responsePrivateJson:EQ(f),updatedAt:m}),yield*o.executions.update(i,{status:"running",updatedAt:m}),yield*r({executionId:i,state:"running"}),f}).pipe(ga.ensuring(ga.sync(()=>{s.currentInteraction?.interactionId===d.id&&(s.currentInteraction=null)})))}),resolveInteraction:({executionId:o,response:i})=>ga.gen(function*(){let s=e.get(o)?.currentInteraction;return s?(yield*Zh.succeed(s.response,i),!0):!1}),finishRun:({executionId:o,state:i})=>r({executionId:o,state:i}).pipe(ga.zipRight(VC(o)),ga.ensuring(ga.sync(()=>{e.delete(o)}))),clearRun:o=>VC(o).pipe(ga.ensuring(ga.sync(()=>{e.delete(o)})))}},Xc=class extends SDe.Tag("#runtime/LiveExecutionManagerService")(){},IHt=vDe.sync(Xc,DQ);import*as EAe from"effect/Context";import*as vI from"effect/Effect";import*as jF from"effect/Layer";var MEt="quickjs",AQ=e=>e?.runtime??MEt,IQ=async(e,t)=>{if(t)return t;switch(e){case"deno":{let{makeDenoSubprocessExecutor:r}=await import("@executor/runtime-deno-subprocess");return r()}case"ses":{let{makeSesExecutor:r}=await import("@executor/runtime-ses");return r()}default:{let{makeQuickJsExecutor:r}=await import("@executor/runtime-quickjs");return r()}}};import*as FF from"effect/Effect";import*as Cd from"effect/Effect";import*as EDe from"effect/Cause";import*as TDe from"effect/Exit";import*as OQ from"effect/Schema";import*as bDe from"effect/JSONSchema";var mI=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?e:{},jEt=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"):[],fI=(e,t)=>e.length<=t?e:`${e.slice(0,Math.max(0,t-4))} ...`,BEt=(e,t,r)=>`${e}${r?"?":""}: ${IF(t)}`,wQ=(e,t)=>{let r=Array.isArray(t[e])?t[e].map(mI):[];if(r.length===0)return null;let n=r.map(o=>IF(o)).filter(o=>o.length>0);return n.length===0?null:n.join(e==="allOf"?" & ":" | ")},IF=(e,t=220)=>{let r=mI(e);if(typeof r.$ref=="string"){let i=r.$ref.trim();return i.length>0?i.split("/").at(-1)??i:"unknown"}if("const"in r)return JSON.stringify(r.const);let n=Array.isArray(r.enum)?r.enum:[];if(n.length>0)return fI(n.map(i=>JSON.stringify(i)).join(" | "),t);let o=wQ("oneOf",r)??wQ("anyOf",r)??wQ("allOf",r);if(o)return fI(o,t);if(r.type==="array"){let i=r.items?IF(r.items,t):"unknown";return fI(`${i}[]`,t)}if(r.type==="object"||r.properties){let i=mI(r.properties),a=Object.keys(i);if(a.length===0)return r.additionalProperties?"Record":"object";let s=new Set(jEt(r.required)),c=a.map(p=>BEt(p,mI(i[p]),!s.has(p)));return fI(`{ ${c.join(", ")} }`,t)}return Array.isArray(r.type)?fI(r.type.join(" | "),t):typeof r.type=="string"?r.type:"unknown"},wF=(e,t)=>{let r=kF(e);return r?IF(r,t):"unknown"},kF=e=>{try{return mI(bDe.make(e))}catch{return null}};import*as kd from"effect/Schema";var qEt=kd.Union(kd.Struct({authKind:kd.Literal("none")}),kd.Struct({authKind:kd.Literal("bearer"),tokenRef:pi})),xDe=kd.decodeUnknownSync(qEt),kQ=()=>({authKind:"none"}),CQ=e=>({authKind:"bearer",tokenRef:e});var hI=async(e,t,r=null)=>{let n=iA(t),o=await Cd.runPromiseExit(ph(e.pipe(Cd.provide(n)),r));if(TDe.isSuccess(o))return o.value;throw EDe.squash(o.cause)},UEt=OQ.standardSchemaV1(gF),zEt=OQ.standardSchemaV1(zp),JEt=wF(gF,320),VEt=wF(zp,260),KEt=kF(gF)??{},GEt=kF(zp)??{},HEt=["Source add input shapes:",...sQ.flatMap(e=>e.executorAddInputSchema&&e.executorAddInputSignatureWidth!==null&&e.executorAddHelpText?[`- ${e.displayName}: ${wF(e.executorAddInputSchema,e.executorAddInputSignatureWidth)}`,...e.executorAddHelpText.map(t=>` ${t}`)]:[])," executor handles the credential setup for you."],ZEt=()=>["Add an MCP, OpenAPI, or GraphQL source to the current scope.",...HEt].join(` +`),WEt=e=>{if(typeof e!="string"||e.trim().length===0)throw new Error("Missing execution run id for executor.sources.add");return kl.make(e)},CF=e=>e,PQ=e=>JSON.parse(JSON.stringify(e)),QEt=e=>e.kind===void 0||Kh(e.kind),XEt=e=>typeof e.kind=="string",YEt=e=>QEt(e.args)?{kind:e.args.kind,endpoint:e.args.endpoint,name:e.args.name??null,namespace:e.args.namespace??null,transport:e.args.transport??null,queryParams:e.args.queryParams??null,headers:e.args.headers??null,command:e.args.command??null,args:e.args.args??null,env:e.args.env??null,cwd:e.args.cwd??null,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId}:"service"in e.args?{...e.args,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId}:"specUrl"in e.args?{...e.args,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId}:{...e.args,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId},eTt=e=>new URL(`/v1/workspaces/${encodeURIComponent(e.scopeId)}/sources/${encodeURIComponent(e.sourceId)}/credentials?interactionId=${encodeURIComponent(`${e.executionId}:${e.interactionId}`)}`,e.baseUrl).toString(),tTt=e=>Cd.gen(function*(){if(!e.onElicitation)return yield*Ne("sources/executor-tools","executor.sources.add requires an elicitation-capable host");if(e.localServerBaseUrl===null)return yield*Ne("sources/executor-tools","executor.sources.add requires a local server base URL for credential capture");let t=yield*e.onElicitation({interactionId:e.interactionId,path:e.path,sourceKey:e.sourceKey,args:e.args,metadata:e.metadata,context:e.invocation,elicitation:{mode:"url",message:e.credentialSlot==="import"?`Open the secure credential page to configure import access for ${e.source.name}`:`Open the secure credential page to connect ${e.source.name}`,url:eTt({baseUrl:e.localServerBaseUrl,scopeId:e.args.scopeId,sourceId:e.args.sourceId,executionId:e.executionId,interactionId:e.interactionId}),elicitationId:e.interactionId}}).pipe(Cd.mapError(n=>n instanceof Error?n:new Error(String(n))));if(t.action!=="accept")return yield*Ne("sources/executor-tools",`Source credential setup was not completed for ${e.source.name}`);let r=yield*Cd.try({try:()=>xDe(t.content),catch:()=>new Error("Credential capture did not return a valid source auth choice for executor.sources.add")});return r.authKind==="none"?{kind:"none"}:{kind:"bearer",tokenRef:r.tokenRef}}),DDe=e=>({"executor.sources.add":vl({tool:{description:ZEt(),inputSchema:UEt,outputSchema:zEt,execute:async(t,r)=>{let n=WEt(r?.invocation?.runId),o=ws.make(`executor.sources.add:${crypto.randomUUID()}`),i=YEt({args:t,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:n,interactionId:o}),a=await hI(e.sourceAuthService.addExecutorSource(i,r?.onElicitation?{mcpDiscoveryElicitation:{onElicitation:r.onElicitation,path:r.path??CF("executor.sources.add"),sourceKey:r.sourceKey,args:t,metadata:r.metadata,invocation:r.invocation}}:void 0),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);if(a.kind==="connected")return PQ(a.source);if(a.kind==="credential_required"){let p=a;if(!XEt(i))throw new Error("Credential-managed source setup expected a named adapter kind");let d=i;for(;p.kind==="credential_required";){let f=await hI(tTt({args:{...d,scopeId:e.scopeId,sourceId:p.source.id},credentialSlot:p.credentialSlot,source:p.source,executionId:n,interactionId:o,path:r?.path??CF("executor.sources.add"),sourceKey:r?.sourceKey??"executor",localServerBaseUrl:e.sourceAuthService.getLocalServerBaseUrl(),metadata:r?.metadata,invocation:r?.invocation,onElicitation:r?.onElicitation}),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);d=p.credentialSlot==="import"&&d.importAuthPolicy==="separate"?{...d,importAuth:f}:{...d,auth:f};let m=await hI(e.sourceAuthService.addExecutorSource(d,r?.onElicitation?{mcpDiscoveryElicitation:{onElicitation:r.onElicitation,path:r.path??CF("executor.sources.add"),sourceKey:r.sourceKey,args:t,metadata:r.metadata,invocation:r.invocation}}:void 0),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);if(m.kind==="connected")return PQ(m.source);if(m.kind==="credential_required"){p=m;continue}a=m;break}p.kind==="credential_required"&&(a=p)}if(!r?.onElicitation)throw new Error("executor.sources.add requires an elicitation-capable host");if(a.kind!=="oauth_required")throw new Error(`Source add did not reach OAuth continuation for ${a.source.id}`);if((await hI(r.onElicitation({interactionId:o,path:r.path??CF("executor.sources.add"),sourceKey:r.sourceKey,args:i,metadata:r.metadata,context:r.invocation,elicitation:{mode:"url",message:`Open the provider sign-in page to connect ${a.source.name}`,url:a.authorizationUrl,elicitationId:a.sessionId}}),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope)).action!=="accept")throw new Error(`Source add was not completed for ${a.source.id}`);let c=await hI(e.sourceAuthService.getSourceById({scopeId:e.scopeId,sourceId:a.source.id,actorScopeId:e.actorScopeId}),{installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore},e.runtimeLocalScope);return PQ(c)}},metadata:{contract:{inputTypePreview:JEt,outputTypePreview:VEt,inputSchema:KEt,outputSchema:GEt},sourceKey:"executor",interaction:"auto"}})});import*as ADe from"effect/Effect";var IDe=e=>({toolPath:e.tool.path,sourceId:e.tool.source.id,sourceName:e.tool.source.name,sourceKind:e.tool.source.kind,sourceNamespace:e.tool.source.namespace??null,operationKind:e.tool.capability.semantics.effect==="read"?"read":e.tool.capability.semantics.effect==="write"?"write":e.tool.capability.semantics.effect==="delete"?"delete":e.tool.capability.semantics.effect==="action"?"execute":"unknown",interaction:e.tool.descriptor.interaction??"auto",approvalLabel:e.tool.capability.surface.title??e.tool.executable.display?.title??null}),wDe=e=>{let t=gf(e.tool.executable.adapterKey);return t.key!==e.tool.source.kind?ADe.fail(Ne("execution/ir-execution",`Executable ${e.tool.executable.id} expects adapter ${t.key}, but source ${e.tool.source.id} is ${e.tool.source.kind}`)):t.invoke({source:e.tool.source,capability:e.tool.capability,executable:e.tool.executable,descriptor:e.tool.descriptor,catalog:e.tool.projectedCatalog,args:e.args,auth:e.auth,onElicitation:e.onElicitation,context:e.context})};import*as UDe from"effect/Either";import*as AS from"effect/Effect";import*as ip from"effect/Schema";var rTt=(e,t)=>{let r=e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*");return new RegExp(`^${r}$`).test(t)},kDe=e=>e.priority+Math.max(1,e.resourcePattern.replace(/\*/g,"").length),nTt=e=>e.interaction==="auto"?{kind:"allow",reason:`${e.approvalLabel??e.toolPath} defaults to allow`,matchedPolicyId:null}:{kind:"require_interaction",reason:`${e.approvalLabel??e.toolPath} defaults to approval`,matchedPolicyId:null},oTt=e=>e.effect==="deny"?{kind:"deny",reason:`Denied by policy ${e.id}`,matchedPolicyId:e.id}:e.approvalMode==="required"?{kind:"require_interaction",reason:`Approval required by policy ${e.id}`,matchedPolicyId:e.id}:{kind:"allow",reason:`Allowed by policy ${e.id}`,matchedPolicyId:e.id},CDe=e=>{let r=e.policies.filter(n=>n.enabled&&n.scopeId===e.context.scopeId&&rTt(n.resourcePattern,e.descriptor.toolPath)).sort((n,o)=>kDe(o)-kDe(n)||n.updatedAt-o.updatedAt)[0];return r?oTt(r):nTt(e.descriptor)};import{createHash as sTt}from"node:crypto";import*as Ba from"effect/Effect";import*as NQ from"effect/Effect";var iTt=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},PDe=(e,t)=>{let r=iTt(e.resourcePattern)??`${e.effect}-${e.approvalMode}`,n=r,o=2;for(;t.has(n);)n=`${r}-${o}`,o+=1;return t.add(n),n},aTt=e=>NQ.gen(function*(){let t=yield*$a,r=yield*t.load(),n=new Set(Object.keys(e.loadedConfig.config?.sources??{})),o=new Set(Object.keys(e.loadedConfig.config?.policies??{})),i={...r,sources:Object.fromEntries(Object.entries(r.sources).filter(([a])=>n.has(a))),policies:Object.fromEntries(Object.entries(r.policies).filter(([a])=>o.has(a)))};return JSON.stringify(i)===JSON.stringify(r)?r:(yield*t.write({state:i}),i)}),ODe=e=>NQ.gen(function*(){return yield*aTt({loadedConfig:e.loadedConfig}),e.loadedConfig.config});import{HttpApiSchema as yI}from"@effect/platform";import*as xi from"effect/Schema";var lb=class extends xi.TaggedError()("ControlPlaneBadRequestError",{operation:xi.String,message:xi.String,details:xi.String},yI.annotations({status:400})){},NDe=class extends xi.TaggedError()("ControlPlaneUnauthorizedError",{operation:xi.String,message:xi.String,details:xi.String},yI.annotations({status:401})){},FDe=class extends xi.TaggedError()("ControlPlaneForbiddenError",{operation:xi.String,message:xi.String,details:xi.String},yI.annotations({status:403})){},Ef=class extends xi.TaggedError()("ControlPlaneNotFoundError",{operation:xi.String,message:xi.String,details:xi.String},yI.annotations({status:404})){},Wh=class extends xi.TaggedError()("ControlPlaneStorageError",{operation:xi.String,message:xi.String,details:xi.String},yI.annotations({status:500})){};import*as RDe from"effect/Effect";var Oo=e=>{let t={operation:e,child:r=>Oo(`${e}.${r}`),badRequest:(r,n)=>new lb({operation:e,message:r,details:n}),notFound:(r,n)=>new Ef({operation:e,message:r,details:n}),storage:r=>new Wh({operation:e,message:r.message,details:r.message}),unknownStorage:(r,n)=>t.storage(r instanceof Error?new Error(`${r.message}: ${n}`):new Error(n)),mapStorage:r=>r.pipe(RDe.mapError(n=>t.storage(n)))};return t},gI=e=>typeof e=="string"?Oo(e):e;var js={list:Oo("policies.list"),create:Oo("policies.create"),get:Oo("policies.get"),update:Oo("policies.update"),remove:Oo("policies.remove")},FQ=e=>JSON.parse(JSON.stringify(e)),PF=e=>e.scopeRoot?.trim()||e.scopeId,LDe=e=>bv.make(`pol_local_${sTt("sha256").update(`${e.scopeStableKey}:${e.key}`).digest("hex").slice(0,16)}`),RQ=e=>({id:e.state?.id??LDe({scopeStableKey:e.scopeStableKey,key:e.key}),key:e.key,scopeId:e.scopeId,resourcePattern:e.policyConfig.match.trim(),effect:e.policyConfig.action,approvalMode:e.policyConfig.approval==="manual"?"required":"auto",priority:e.policyConfig.priority??0,enabled:e.policyConfig.enabled??!0,createdAt:e.state?.createdAt??Date.now(),updatedAt:e.state?.updatedAt??Date.now()}),DS=e=>Ba.gen(function*(){let t=yield*D1(e),r=yield*Kc,n=yield*$a,o=yield*r.load(),i=yield*n.load(),a=Object.entries(o.config?.policies??{}).map(([s,c])=>RQ({scopeId:e,scopeStableKey:PF({scopeId:e,scopeRoot:t.scope.scopeRoot}),key:s,policyConfig:c,state:i.policies[s]}));return{runtimeLocalScope:t,loadedConfig:o,scopeState:i,policies:a}}),LQ=e=>Ba.all([e.scopeConfigStore.writeProject({config:e.projectConfig}),e.scopeStateStore.write({state:e.scopeState})],{discard:!0}).pipe(Ba.mapError(t=>e.operation.unknownStorage(t,"Failed writing local scope policy files"))),SI=(e,t)=>D1(t).pipe(Ba.mapError(r=>e.notFound("Workspace not found",r instanceof Error?r.message:String(r)))),$De=e=>Ba.gen(function*(){return yield*SI(js.list,e),(yield*DS(e).pipe(Ba.mapError(r=>js.list.unknownStorage(r,"Failed loading local scope policies")))).policies}),MDe=e=>Ba.gen(function*(){let t=yield*SI(js.create,e.scopeId),r=yield*Kc,n=yield*$a,o=yield*DS(e.scopeId).pipe(Ba.mapError(f=>js.create.unknownStorage(f,"Failed loading local scope policies"))),i=Date.now(),a=FQ(o.loadedConfig.projectConfig??{}),s={...a.policies},c=PDe({resourcePattern:e.payload.resourcePattern??"*",effect:e.payload.effect??"allow",approvalMode:e.payload.approvalMode??"auto"},new Set(Object.keys(s)));s[c]={match:e.payload.resourcePattern??"*",action:e.payload.effect??"allow",approval:(e.payload.approvalMode??"auto")==="required"?"manual":"auto",...e.payload.enabled===!1?{enabled:!1}:{},...(e.payload.priority??0)!==0?{priority:e.payload.priority??0}:{}};let p=o.scopeState.policies[c],d={...o.scopeState,policies:{...o.scopeState.policies,[c]:{id:p?.id??LDe({scopeStableKey:PF({scopeId:e.scopeId,scopeRoot:t.scope.scopeRoot}),key:c}),createdAt:p?.createdAt??i,updatedAt:i}}};return yield*LQ({operation:js.create,scopeConfigStore:r,scopeStateStore:n,projectConfig:{...a,policies:s},scopeState:d}),RQ({scopeId:e.scopeId,scopeStableKey:PF({scopeId:e.scopeId,scopeRoot:t.scope.scopeRoot}),key:c,policyConfig:s[c],state:d.policies[c]})}),jDe=e=>Ba.gen(function*(){yield*SI(js.get,e.scopeId);let r=(yield*DS(e.scopeId).pipe(Ba.mapError(n=>js.get.unknownStorage(n,"Failed loading local scope policies")))).policies.find(n=>n.id===e.policyId)??null;return r===null?yield*js.get.notFound("Policy not found",`scopeId=${e.scopeId} policyId=${e.policyId}`):r}),BDe=e=>Ba.gen(function*(){let t=yield*SI(js.update,e.scopeId),r=yield*Kc,n=yield*$a,o=yield*DS(e.scopeId).pipe(Ba.mapError(m=>js.update.unknownStorage(m,"Failed loading local scope policies"))),i=o.policies.find(m=>m.id===e.policyId)??null;if(i===null)return yield*js.update.notFound("Policy not found",`scopeId=${e.scopeId} policyId=${e.policyId}`);let a=FQ(o.loadedConfig.projectConfig??{}),s={...a.policies},c=s[i.key];s[i.key]={...c,...e.payload.resourcePattern!==void 0?{match:e.payload.resourcePattern}:{},...e.payload.effect!==void 0?{action:e.payload.effect}:{},...e.payload.approvalMode!==void 0?{approval:e.payload.approvalMode==="required"?"manual":"auto"}:{},...e.payload.enabled!==void 0?{enabled:e.payload.enabled}:{},...e.payload.priority!==void 0?{priority:e.payload.priority}:{}};let p=Date.now(),d=o.scopeState.policies[i.key],f={...o.scopeState,policies:{...o.scopeState.policies,[i.key]:{id:i.id,createdAt:d?.createdAt??i.createdAt,updatedAt:p}}};return yield*LQ({operation:js.update,scopeConfigStore:r,scopeStateStore:n,projectConfig:{...a,policies:s},scopeState:f}),RQ({scopeId:e.scopeId,scopeStableKey:PF({scopeId:e.scopeId,scopeRoot:t.scope.scopeRoot}),key:i.key,policyConfig:s[i.key],state:f.policies[i.key]})}),qDe=e=>Ba.gen(function*(){let t=yield*SI(js.remove,e.scopeId),r=yield*Kc,n=yield*$a,o=yield*DS(e.scopeId).pipe(Ba.mapError(d=>js.remove.unknownStorage(d,"Failed loading local scope policies"))),i=o.policies.find(d=>d.id===e.policyId)??null;if(i===null)return{removed:!1};let a=FQ(o.loadedConfig.projectConfig??{}),s={...a.policies};delete s[i.key];let{[i.key]:c,...p}=o.scopeState.policies;return yield*LQ({operation:js.remove,scopeConfigStore:r,scopeStateStore:n,projectConfig:{...a,policies:s},scopeState:{...o.scopeState,policies:p}}),{removed:!0}});var cTt=e=>e,lTt={type:"object",properties:{approve:{type:"boolean",description:"Whether to approve this tool execution"}},required:["approve"],additionalProperties:!1},uTt=e=>e.approvalLabel?`Allow ${e.approvalLabel}?`:`Allow tool call: ${e.toolPath}?`,pTt=ip.Struct({params:ip.optional(ip.Record({key:ip.String,value:ip.String}))}),dTt=ip.decodeUnknownEither(pTt),zDe=e=>{let t=dTt(e);if(!(UDe.isLeft(t)||t.right.params===void 0))return{params:t.right.params}},$Q=e=>AS.fail(new Error(e)),JDe=e=>AS.gen(function*(){let t=IDe({tool:e.tool}),r=yield*DS(e.scopeId).pipe(AS.mapError(a=>a instanceof Error?a:new Error(String(a)))),n=CDe({descriptor:t,args:e.args,policies:r.policies,context:{scopeId:e.scopeId}});if(n.kind==="allow")return;if(n.kind==="deny")return yield*$Q(n.reason);if(!e.onElicitation)return yield*$Q(`Approval required for ${t.toolPath}, but no elicitation-capable host is available`);let o=typeof e.context?.callId=="string"&&e.context.callId.length>0?`tool_execution_gate:${e.context.callId}`:`tool_execution_gate:${crypto.randomUUID()}`;if((yield*e.onElicitation({interactionId:o,path:cTt(t.toolPath),sourceKey:e.tool.source.id,args:e.args,context:{...e.context,interactionPurpose:"tool_execution_gate",interactionReason:n.reason,invocationDescriptor:{operationKind:t.operationKind,interaction:t.interaction,approvalLabel:t.approvalLabel,sourceId:e.tool.source.id,sourceName:e.tool.source.name}},elicitation:{mode:"form",message:uTt(t),requestedSchema:lTt}}).pipe(AS.mapError(a=>a instanceof Error?a:new Error(String(a))))).action!=="accept")return yield*$Q(`Tool invocation not approved for ${t.toolPath}`)});var Qh=(e,t)=>ph(e,t);import*as Sa from"effect/Effect";var OF=e=>e.trim().toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),_Tt=new Set(["a","an","the","am","as","for","from","get","i","in","is","list","me","my","of","on","or","signed","to","who"]),MQ=e=>e.length>3&&e.endsWith("s")?e.slice(0,-1):e,fTt=(e,t)=>e===t||MQ(e)===MQ(t),NF=(e,t)=>e.some(r=>fTt(r,t)),ub=(e,t)=>{if(e.includes(t))return!0;let r=MQ(t);return r!==t&&e.includes(r)},VDe=e=>_Tt.has(e)?.25:1,mTt=e=>{let[t,r]=e.split(".");return r?`${t}.${r}`:t},hTt=e=>[...e].sort((t,r)=>t.namespace.localeCompare(r.namespace)),yTt=e=>Sa.gen(function*(){let t=yield*e.sourceCatalogStore.loadWorkspaceSourceCatalogs({scopeId:e.scopeId,actorScopeId:e.actorScopeId}),r=new Map;for(let n of t)if(!(!n.source.enabled||n.source.status!=="connected"))for(let o of Object.values(n.projected.toolDescriptors)){let i=mTt(o.toolPath.join(".")),a=r.get(i);r.set(i,{namespace:i,toolCount:(a?.toolCount??0)+1})}return hTt(r.values())}),gTt=e=>Sa.map(e.sourceCatalogStore.loadWorkspaceSourceCatalogToolIndex({scopeId:e.scopeId,actorScopeId:e.actorScopeId}),t=>t.filter(r=>r.source.enabled&&r.source.status==="connected")),jQ=e=>e.sourceCatalogStore.loadWorkspaceSourceCatalogToolByPath({scopeId:e.scopeId,path:e.path,actorScopeId:e.actorScopeId,includeSchemas:e.includeSchemas}).pipe(Sa.map(t=>t&&t.source.enabled&&t.source.status==="connected"?t:null)),STt=(e,t)=>{let r=t.path.toLowerCase(),n=t.searchNamespace.toLowerCase(),o=t.path.split(".").at(-1)?.toLowerCase()??"",i=t.capability.surface.title?.toLowerCase()??"",a=t.capability.surface.summary?.toLowerCase()??t.capability.surface.description?.toLowerCase()??"",s=[t.executable.display?.pathTemplate,t.executable.display?.operationId,t.executable.display?.leaf].filter(E=>typeof E=="string"&&E.length>0).join(" ").toLowerCase(),c=OF(`${t.path} ${o}`),p=OF(t.searchNamespace),d=OF(t.capability.surface.title??""),f=OF(s),m=0,y=0,g=0,S=0;for(let E of e){let I=VDe(E);if(NF(c,E)){m+=12*I,y+=1,S+=1;continue}if(NF(p,E)){m+=11*I,y+=1,g+=1;continue}if(NF(d,E)){m+=9*I,y+=1;continue}if(NF(f,E)){m+=8*I,y+=1;continue}if(ub(r,E)||ub(o,E)){m+=6*I,y+=1,S+=1;continue}if(ub(n,E)){m+=5*I,y+=1,g+=1;continue}if(ub(i,E)||ub(s,E)){m+=4*I,y+=1;continue}ub(a,E)&&(m+=.5*I)}let b=e.filter(E=>VDe(E)>=1);if(b.length>=2)for(let E=0;Er.includes(F)||s.includes(F))&&(m+=10)}return g>0&&S>0&&(m+=8),y===0&&m>0&&(m*=.25),m},KDe=e=>{let t=oA({scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore}),r=i=>i.pipe(Sa.provide(t)),o=Sa.runSync(Sa.cached(r(Sa.gen(function*(){let i=yield*gTt({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore});return pL({entries:i.map(a=>rDe({tool:a,score:s=>STt(s,a)}))})}))));return{listNamespaces:({limit:i})=>Qh(r(Sa.map(yTt({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore}),a=>a.slice(0,i))),e.runtimeLocalScope),listTools:({namespace:i,query:a,limit:s})=>Qh(Sa.flatMap(o,c=>c.listTools({...i!==void 0?{namespace:i}:{},...a!==void 0?{query:a}:{},limit:s,includeSchemas:!1})),e.runtimeLocalScope),getToolByPath:({path:i,includeSchemas:a})=>Qh(a?Sa.map(r(jQ({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore,path:i,includeSchemas:!0})),s=>s?.descriptor??null):Sa.flatMap(o,s=>s.getToolByPath({path:i,includeSchemas:!1})),e.runtimeLocalScope),searchTools:({query:i,namespace:a,limit:s})=>Qh(Sa.flatMap(o,c=>c.searchTools({query:i,...a!==void 0?{namespace:a}:{},limit:s})),e.runtimeLocalScope)}};var GDe=e=>{let t=oA({scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore}),r=y=>y.pipe(FF.provide(t)),n=DDe({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceAuthService:e.sourceAuthService,installationStore:e.installationStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,runtimeLocalScope:e.runtimeLocalScope}),o=e.createInternalToolMap?.({scopeId:e.scopeId,actorScopeId:e.actorScopeId,executorStateStore:e.executorStateStore,sourceStore:e.sourceStore,sourceCatalogSyncService:e.sourceCatalogSyncService,sourceAuthService:e.sourceAuthService,installationStore:e.installationStore,instanceConfigResolver:e.instanceConfigResolver,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,updateSecretMaterial:e.updateSecretMaterial,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,runtimeLocalScope:e.runtimeLocalScope})??{},i=KDe({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,runtimeLocalScope:e.runtimeLocalScope}),a=null,s=Vte({getCatalog:()=>{if(a===null)throw new Error("Workspace tool catalog has not been initialized");return a}}),c=Kte([s,n,o,e.localToolRuntime.tools]),p=r_({tools:c});a=zte({catalogs:[p,i]});let d=new Set(Object.keys(c)),f=t_({tools:c,onElicitation:e.onElicitation}),m=y=>Qh(r(FF.gen(function*(){let g=yield*jQ({scopeId:e.scopeId,actorScopeId:e.actorScopeId,sourceCatalogStore:e.sourceCatalogStore,path:y.path,includeSchemas:!1});if(!g)return yield*Ne("execution/scope/tool-invoker",`Unknown tool path: ${y.path}`);yield*JDe({scopeId:e.scopeId,tool:g,args:y.args,context:y.context,onElicitation:e.onElicitation});let S=yield*e.sourceAuthMaterialService.resolve({source:g.source,actorScopeId:e.actorScopeId,context:zDe(y.context)});return yield*wDe({scopeId:e.scopeId,actorScopeId:e.actorScopeId,tool:g,auth:S,args:y.args,onElicitation:e.onElicitation,context:y.context})})),e.runtimeLocalScope);return{catalog:a,toolInvoker:{invoke:({path:y,args:g,context:S})=>Qh(d.has(y)?f.invoke({path:y,args:g,context:S}):m({path:y,args:g,context:S}),e.runtimeLocalScope)}}};import*as tAe from"effect/Context";import*as Pd from"effect/Either";import*as Me from"effect/Effect";import*as rAe from"effect/Layer";import*as Ei from"effect/Option";import*as LF from"effect/ParseResult";import*as Fn from"effect/Schema";import{createServer as vTt}from"node:http";import*as BQ from"effect/Effect";var bTt=10*6e4,HDe=e=>new Promise((t,r)=>{e.close(n=>{if(n){r(n);return}t()})}),qQ=e=>BQ.tryPromise({try:()=>new Promise((t,r)=>{let n=e.publicHost??"127.0.0.1",o=e.listenHost??"127.0.0.1",i=new URL(e.completionUrl),a=vTt((p,d)=>{try{let f=new URL(p.url??"/",`http://${n}`),m=new URL(i.toString());for(let[y,g]of f.searchParams.entries())m.searchParams.set(y,g);d.statusCode=302,d.setHeader("cache-control","no-store"),d.setHeader("location",m.toString()),d.end()}catch(f){let m=f instanceof Error?f:new Error(String(f));d.statusCode=500,d.setHeader("content-type","text/plain; charset=utf-8"),d.end(`OAuth redirect failed: ${m.message}`)}finally{HDe(a).catch(()=>{})}}),s=null,c=()=>(s!==null&&(clearTimeout(s),s=null),HDe(a).catch(()=>{}));a.once("error",p=>{r(p instanceof Error?p:new Error(String(p)))}),a.listen(0,o,()=>{let p=a.address();if(!p||typeof p=="string"){r(new Error("Failed to resolve OAuth loopback port"));return}s=setTimeout(()=>{c()},e.timeoutMs??bTt),typeof s.unref=="function"&&s.unref(),t({redirectUri:`http://${n}:${p.port}`,close:BQ.tryPromise({try:c,catch:d=>d instanceof Error?d:new Error(String(d))})})})}),catch:t=>t instanceof Error?t:new Error(String(t))});var lr=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},VQ=e=>new URL(e).hostname,KQ=e=>{let t=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"");return t.length>0?t:"source"},xTt=e=>{let t=e.split(/[\\/]+/).map(r=>r.trim()).filter(r=>r.length>0);return t[t.length-1]??e},ETt=e=>{if(!e||e.length===0)return null;let t=e.map(r=>r.trim()).filter(r=>r.length>0);return t.length>0?t:null},TTt=e=>{let t=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");return t.length>0?t:"mcp"},DTt=e=>{let t=lr(e.name)??lr(e.endpoint)??lr(e.command)??"mcp";return`stdio://local/${TTt(t)}`},ZDe=e=>{if(tg({transport:e.transport??void 0,command:e.command??void 0}))return Tf(lr(e.endpoint)??DTt(e));let t=lr(e.endpoint);if(t===null)throw new Error("Endpoint is required.");return Tf(t)},nAe=e=>new URL(`/v1/workspaces/${encodeURIComponent(e.scopeId)}/sources/${encodeURIComponent(e.sourceId)}/credentials/oauth/complete`,e.baseUrl).toString(),ATt=e=>new URL("/v1/oauth/source-auth/callback",e.baseUrl).toString(),ITt=e=>new URL(`/v1/workspaces/${encodeURIComponent(e.scopeId)}/oauth/provider/callback`,e.baseUrl).toString();function Tf(e){return new URL(e.trim()).toString()}var oAe=(e,t)=>`https://www.googleapis.com/discovery/v1/apis/${encodeURIComponent(e)}/${encodeURIComponent(t)}/rest`,iAe=(e,t)=>`Google ${e.split(/[^a-zA-Z0-9]+/).filter(Boolean).map(n=>n[0]?.toUpperCase()+n.slice(1)).join(" ")||e} ${t}`,aAe=e=>`google.${e.trim().toLowerCase().replace(/[^a-z0-9]+/g,".").replace(/^\.+|\.+$/g,"")}`,sAe=Fn.Struct({kind:Fn.Literal("source_oauth"),nonce:Fn.String,displayName:Fn.NullOr(Fn.String)}),wTt=Fn.encodeSync(Fn.parseJson(sAe)),kTt=Fn.decodeUnknownOption(Fn.parseJson(sAe)),CTt=e=>wTt({kind:"source_oauth",nonce:crypto.randomUUID(),displayName:lr(e.displayName)}),PTt=e=>{let t=kTt(e);return Ei.isSome(t)?lr(t.value.displayName):null},WDe=e=>{let t=lr(e.displayName)??VQ(e.endpoint);return/\boauth\b/i.test(t)?t:`${t} OAuth`},OTt=(e,t)=>Me.gen(function*(){if(!Kh(e.kind))return yield*Ne("sources/source-auth-service",`Expected MCP source, received ${e.kind}`);let r=yield*Vh(e),n=dm({endpoint:e.endpoint,transport:r.transport??void 0,queryParams:r.queryParams??void 0,headers:r.headers??void 0,command:r.command??void 0,args:r.args??void 0,env:r.env??void 0,cwd:r.cwd??void 0});return yield*ag({connect:n,namespace:e.namespace??KQ(e.name),sourceKey:e.id,mcpDiscoveryElicitation:t})}),IS=e=>({status:e.status,errorText:e.errorText,completedAt:e.now,updatedAt:e.now,sessionDataJson:e.sessionDataJson}),GQ=e=>Fn.encodeSync(JB)(e),NTt=Fn.decodeUnknownEither(JB),RF=e=>{if(e.providerKind!=="mcp_oauth")throw new Error(`Unsupported source auth provider for session ${e.id}`);let t=NTt(e.sessionDataJson);if(Pd.isLeft(t))throw new Error(`Invalid source auth session data for ${e.id}: ${LF.TreeFormatter.formatErrorSync(t.left)}`);return t.right},QDe=e=>{let t=RF(e.session);return GQ({...t,...e.patch})},cAe=e=>Fn.encodeSync(VB)(e),FTt=Fn.decodeUnknownEither(VB),zQ=e=>{if(e.providerKind!=="oauth2_pkce")throw new Error(`Unsupported source auth provider for session ${e.id}`);let t=FTt(e.sessionDataJson);if(Pd.isLeft(t))throw new Error(`Invalid source auth session data for ${e.id}: ${LF.TreeFormatter.formatErrorSync(t.left)}`);return t.right},RTt=e=>{let t=zQ(e.session);return cAe({...t,...e.patch})},lAe=e=>Fn.encodeSync(KB)(e),LTt=Fn.decodeUnknownEither(KB),JQ=e=>{if(e.providerKind!=="oauth2_provider_batch")throw new Error(`Unsupported source auth provider for session ${e.id}`);let t=LTt(e.sessionDataJson);if(Pd.isLeft(t))throw new Error(`Invalid source auth session data for ${e.id}: ${LF.TreeFormatter.formatErrorSync(t.left)}`);return t.right},$Tt=e=>{let t=JQ(e.session);return lAe({...t,...e.patch})},XDe=e=>Me.gen(function*(){if(e.session.executionId===null)return;let t=e.response.action==="accept"?{action:"accept"}:{action:"cancel",...e.response.reason?{content:{reason:e.response.reason}}:{}};if(!(yield*e.liveExecutionManager.resolveInteraction({executionId:e.session.executionId,response:t}))){let n=yield*e.executorState.executionInteractions.getPendingByExecutionId(e.session.executionId);Ei.isSome(n)&&(yield*e.executorState.executionInteractions.update(n.value.id,{status:t.action==="cancel"?"cancelled":"resolved",responseJson:YDe(_I(t)),responsePrivateJson:YDe(t),updatedAt:Date.now()}))}}),YDe=e=>e===void 0?null:JSON.stringify(e),aa=Me.fn("source.status.update")((e,t,r)=>Me.gen(function*(){let n=yield*e.loadSourceById({scopeId:t.scopeId,sourceId:t.id,actorScopeId:r.actorScopeId});return yield*e.persistSource({...n,status:r.status,lastError:r.lastError??null,auth:r.auth??n.auth,importAuth:r.importAuth??n.importAuth,updatedAt:Date.now()},{actorScopeId:r.actorScopeId})}).pipe(Me.withSpan("source.status.update",{attributes:{"executor.source.id":t.id,"executor.source.status":r.status}}))),uAe=e=>typeof e.kind=="string",MTt=e=>uAe(e)&&e.kind==="google_discovery",jTt=e=>uAe(e)&&"endpoint"in e&&ES(e.kind),BTt=e=>e.kind===void 0||Kh(e.kind),UQ=e=>Me.gen(function*(){let t=lr(e.rawValue);if(t!==null)return yield*e.storeSecretMaterial({purpose:"auth_material",value:t});let r=lr(e.ref?.providerId),n=lr(e.ref?.handle);return r===null||n===null?null:{providerId:r,handle:n}}),HQ=e=>Me.gen(function*(){let t=e.existing;if(e.auth===void 0&&t&&ES(t.kind))return t.auth;let r=e.auth??{kind:"none"};if(r.kind==="none")return{kind:"none"};let n=lr(r.headerName)??"Authorization",o=r.prefix??"Bearer ";if(r.kind==="bearer"){let s=lr(r.token),c=r.tokenRef??null;if(s===null&&c===null&&t&&ES(t.kind)&&t.auth.kind==="bearer")return t.auth;let p=yield*UQ({rawValue:s,ref:c,storeSecretMaterial:e.storeSecretMaterial});return p===null?yield*Ne("sources/source-auth-service","Bearer auth requires token or tokenRef"):{kind:"bearer",headerName:n,prefix:o,token:p}}if(lr(r.accessToken)===null&&r.accessTokenRef==null&&lr(r.refreshToken)===null&&r.refreshTokenRef==null&&t&&ES(t.kind)&&t.auth.kind==="oauth2")return t.auth;let i=yield*UQ({rawValue:r.accessToken,ref:r.accessTokenRef??null,storeSecretMaterial:e.storeSecretMaterial});if(i===null)return yield*Ne("sources/source-auth-service","OAuth2 auth requires accessToken or accessTokenRef");let a=yield*UQ({rawValue:r.refreshToken,ref:r.refreshTokenRef??null,storeSecretMaterial:e.storeSecretMaterial});return{kind:"oauth2",headerName:n,prefix:o,accessToken:i,refreshToken:a}}),pAe=e=>Me.gen(function*(){let t=ES(e.sourceKind)?"reuse_runtime":"none",r=e.importAuthPolicy??e.existing?.importAuthPolicy??t;if(r==="none"||r==="reuse_runtime")return{importAuthPolicy:r,importAuth:{kind:"none"}};if(e.importAuth===void 0&&e.existing&&e.existing.importAuthPolicy==="separate")return{importAuthPolicy:r,importAuth:e.existing.importAuth};let n=yield*HQ({existing:void 0,auth:e.importAuth??{kind:"none"},storeSecretMaterial:e.storeSecretMaterial});return{importAuthPolicy:r,importAuth:n}}),dAe=e=>!e.explicitAuthProvided&&e.auth.kind==="none"&&(e.existing?.auth.kind??"none")==="none",qTt=Fn.decodeUnknownOption(WB),_Ae=Fn.encodeSync(WB),fAe=e=>{if(e.clientMetadataJson===null)return"app_callback";let t=qTt(e.clientMetadataJson);return Ei.isNone(t)?"app_callback":t.value.redirectMode??"app_callback"},$F=e=>e.clientSecretProviderId&&e.clientSecretHandle?{providerId:e.clientSecretProviderId,handle:e.clientSecretHandle}:null,UTt=e=>Me.gen(function*(){let t=_i(e.source),r=t.getOauth2SetupConfig?yield*t.getOauth2SetupConfig({source:e.source,slot:"runtime"}):null;if(r===null)return yield*Ne("sources/source-auth-service",`Source ${e.source.id} does not support OAuth client configuration`);let n=yield*e.executorState.sourceOauthClients.getByScopeSourceAndProvider({scopeId:e.source.scopeId,sourceId:e.source.id,providerKey:r.providerKey}),o=t.normalizeOauthClientInput?yield*t.normalizeOauthClientInput(e.oauthClient):e.oauthClient,i=Ei.isSome(n)?$F(n.value):null,a=o.clientSecret?yield*e.storeSecretMaterial({purpose:"oauth_client_info",value:o.clientSecret}):null,s=Date.now(),c=Ei.isSome(n)?n.value.id:V6.make(`src_oauth_client_${crypto.randomUUID()}`);return yield*e.executorState.sourceOauthClients.upsert({id:c,scopeId:e.source.scopeId,sourceId:e.source.id,providerKey:r.providerKey,clientId:o.clientId,clientSecretProviderId:a?.providerId??null,clientSecretHandle:a?.handle??null,clientMetadataJson:_Ae({redirectMode:o.redirectMode??"app_callback"}),createdAt:Ei.isSome(n)?n.value.createdAt:s,updatedAt:s}),i&&(a===null||i.providerId!==a.providerId||i.handle!==a.handle)&&(yield*e.deleteSecretMaterial(i).pipe(Me.either,Me.ignore)),{providerKey:r.providerKey,clientId:o.clientId,clientSecret:a,redirectMode:o.redirectMode??"app_callback"}}),zTt=e=>Me.gen(function*(){let t=_i(e.source),r=t.getOauth2SetupConfig?yield*t.getOauth2SetupConfig({source:e.source,slot:"runtime"}):null;if(r===null)return null;let n=yield*e.executorState.sourceOauthClients.getByScopeSourceAndProvider({scopeId:e.source.scopeId,sourceId:e.source.id,providerKey:r.providerKey});return Ei.isNone(n)?null:{providerKey:n.value.providerKey,clientId:n.value.clientId,clientSecret:$F(n.value),redirectMode:fAe(n.value)}}),mAe=e=>Me.gen(function*(){let t=e.normalizeOauthClient?yield*e.normalizeOauthClient(e.oauthClient):e.oauthClient,r=t.clientSecret?yield*e.storeSecretMaterial({purpose:"oauth_client_info",value:t.clientSecret}):null,n=Date.now(),o=Am.make(`ws_oauth_client_${crypto.randomUUID()}`);return yield*e.executorState.scopeOauthClients.upsert({id:o,scopeId:e.scopeId,providerKey:e.providerKey,label:lr(e.label)??null,clientId:t.clientId,clientSecretProviderId:r?.providerId??null,clientSecretHandle:r?.handle??null,clientMetadataJson:_Ae({redirectMode:t.redirectMode??"app_callback"}),createdAt:n,updatedAt:n}),{id:o,providerKey:e.providerKey,label:lr(e.label)??null,clientId:t.clientId,clientSecret:r,redirectMode:t.redirectMode??"app_callback"}}),ZQ=e=>Me.gen(function*(){let t=yield*e.executorState.scopeOauthClients.getById(e.oauthClientId);return Ei.isNone(t)?null:!WQ({scopeId:e.scopeId,localScopeState:e.localScopeState}).includes(t.value.scopeId)||t.value.providerKey!==e.providerKey?yield*Ne("sources/source-auth-service",`Scope OAuth client ${e.oauthClientId} is not valid for ${e.providerKey}`):{id:t.value.id,providerKey:t.value.providerKey,label:t.value.label,clientId:t.value.clientId,clientSecret:$F(t.value),redirectMode:fAe(t.value)}}),JTt=(e,t)=>{let r=new Set(e);return t.every(n=>r.has(n))},Df=e=>[...new Set(e.map(t=>t.trim()).filter(t=>t.length>0))],WQ=e=>{let t=e.localScopeState;return t?t.installation.scopeId!==e.scopeId?[e.scopeId]:[...new Set([e.scopeId,...t.installation.resolutionScopeIds])]:[e.scopeId]},VTt=(e,t)=>{let r=Object.entries(e??{}).sort(([o],[i])=>o.localeCompare(i)),n=Object.entries(t??{}).sort(([o],[i])=>o.localeCompare(i));return r.length===n.length&&r.every(([o,i],a)=>{let s=n[a];return s!==void 0&&s[0]===o&&s[1]===i})},KTt=(e,t)=>e.providerKey===t.providerKey&&e.authorizationEndpoint===t.authorizationEndpoint&&e.tokenEndpoint===t.tokenEndpoint&&e.headerName===t.headerName&&e.prefix===t.prefix&&e.clientAuthentication===t.clientAuthentication&&VTt(e.authorizationParams,t.authorizationParams),hAe=e=>Me.gen(function*(){let t=_i(e),r=t.getOauth2SetupConfig?yield*t.getOauth2SetupConfig({source:e,slot:"runtime"}):null;return r===null?null:{source:e,requiredScopes:Df(r.scopes),setupConfig:r}}),GTt=e=>Me.gen(function*(){if(e.length===0)return yield*Ne("sources/source-auth-service","Provider auth setup requires at least one target source");let t=e[0].setupConfig;for(let r of e.slice(1))if(!KTt(t,r.setupConfig))return yield*Ne("sources/source-auth-service",`Provider auth setup for ${t.providerKey} requires compatible source OAuth configuration`);return{...t,scopes:Df(e.flatMap(r=>[...r.requiredScopes]))}}),HTt=e=>Me.gen(function*(){let t=WQ({scopeId:e.scopeId,localScopeState:e.localScopeState});for(let r of t){let o=(yield*e.executorState.providerAuthGrants.listByScopeActorAndProvider({scopeId:r,actorScopeId:e.actorScopeId??null,providerKey:e.providerKey})).find(i=>i.oauthClientId===e.oauthClientId&&JTt(i.grantedScopes,e.requiredScopes));if(o)return Ei.some(o)}return Ei.none()}),ZTt=e=>Me.gen(function*(){let t=e.existingGrant??null,r=t?.refreshToken??null;if(e.refreshToken!==null&&(r=yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:e.refreshToken,name:`${e.providerKey} Refresh`})),r===null)return yield*Ne("sources/source-auth-service",`Provider auth grant for ${e.providerKey} is missing a refresh token`);let n=Date.now(),o={id:t?.id??Bp.make(`provider_grant_${crypto.randomUUID()}`),scopeId:e.scopeId,actorScopeId:e.actorScopeId??null,providerKey:e.providerKey,oauthClientId:e.oauthClientId,tokenEndpoint:e.tokenEndpoint,clientAuthentication:e.clientAuthentication,headerName:e.headerName,prefix:e.prefix,refreshToken:r,grantedScopes:[...Df([...t?.grantedScopes??[],...e.grantedScopes])],lastRefreshedAt:t?.lastRefreshedAt??null,orphanedAt:null,createdAt:t?.createdAt??n,updatedAt:n};return yield*e.executorState.providerAuthGrants.upsert(o),t?.refreshToken&&(t.refreshToken.providerId!==r.providerId||t.refreshToken.handle!==r.handle)&&(yield*e.deleteSecretMaterial(t.refreshToken).pipe(Me.either,Me.ignore)),o}),yAe=e=>Me.gen(function*(){let t=_i(e.source),r=t.getOauth2SetupConfig?yield*t.getOauth2SetupConfig({source:e.source,slot:"runtime"}):null;if(r===null)return null;let n=yield*zTt({executorState:e.executorState,source:e.source});if(n===null)return null;let o=Dm.make(`src_auth_${crypto.randomUUID()}`),i=crypto.randomUUID(),a=nAe({baseUrl:e.baseUrl,scopeId:e.source.scopeId,sourceId:e.source.id}),c=(e.redirectModeOverride??n.redirectMode)==="loopback"?yield*qQ({completionUrl:a}):null,p=c?.redirectUri??a,d=eq();return yield*Me.gen(function*(){let f=tq({authorizationEndpoint:r.authorizationEndpoint,clientId:n.clientId,redirectUri:p,scopes:[...r.scopes],state:i,codeVerifier:d,extraParams:r.authorizationParams}),m=Date.now();return yield*e.executorState.sourceAuthSessions.upsert({id:o,scopeId:e.source.scopeId,sourceId:e.source.id,actorScopeId:e.actorScopeId??null,credentialSlot:"runtime",executionId:e.executionId??null,interactionId:e.interactionId??null,providerKind:"oauth2_pkce",status:"pending",state:i,sessionDataJson:cAe({kind:"oauth2_pkce",providerKey:r.providerKey,authorizationEndpoint:r.authorizationEndpoint,tokenEndpoint:r.tokenEndpoint,redirectUri:p,clientId:n.clientId,clientAuthentication:r.clientAuthentication,clientSecret:n.clientSecret,scopes:[...r.scopes],headerName:r.headerName,prefix:r.prefix,authorizationParams:{...r.authorizationParams},codeVerifier:d,authorizationUrl:f}),errorText:null,completedAt:null,createdAt:m,updatedAt:m}),{kind:"oauth_required",source:yield*aa(e.sourceStore,e.source,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null}),sessionId:o,authorizationUrl:f}}).pipe(Me.onError(()=>c?c.close.pipe(Me.orDie):Me.void))}),WTt=e=>Me.gen(function*(){if(e.targetSources.length===0)return yield*Ne("sources/source-auth-service","Provider OAuth setup requires at least one target source");let t=Dm.make(`src_auth_${crypto.randomUUID()}`),r=crypto.randomUUID(),n=ITt({baseUrl:e.baseUrl,scopeId:e.scopeId}),i=(e.redirectModeOverride??e.scopeOauthClient.redirectMode)==="loopback"?yield*qQ({completionUrl:n}):null,a=i?.redirectUri??n,s=eq();return yield*Me.gen(function*(){let c=tq({authorizationEndpoint:e.setupConfig.authorizationEndpoint,clientId:e.scopeOauthClient.clientId,redirectUri:a,scopes:[...Df(e.setupConfig.scopes)],state:r,codeVerifier:s,extraParams:e.setupConfig.authorizationParams}),p=Date.now();yield*e.executorState.sourceAuthSessions.upsert({id:t,scopeId:e.scopeId,sourceId:Mn.make(`oauth_provider_${crypto.randomUUID()}`),actorScopeId:e.actorScopeId??null,credentialSlot:"runtime",executionId:e.executionId??null,interactionId:e.interactionId??null,providerKind:"oauth2_provider_batch",status:"pending",state:r,sessionDataJson:lAe({kind:"provider_oauth_batch",providerKey:e.setupConfig.providerKey,authorizationEndpoint:e.setupConfig.authorizationEndpoint,tokenEndpoint:e.setupConfig.tokenEndpoint,redirectUri:a,oauthClientId:e.scopeOauthClient.id,clientAuthentication:e.setupConfig.clientAuthentication,scopes:[...Df(e.setupConfig.scopes)],headerName:e.setupConfig.headerName,prefix:e.setupConfig.prefix,authorizationParams:{...e.setupConfig.authorizationParams},targetSources:e.targetSources.map(f=>({sourceId:f.source.id,requiredScopes:[...Df(f.requiredScopes)]})),codeVerifier:s,authorizationUrl:c}),errorText:null,completedAt:null,createdAt:p,updatedAt:p});let d=yield*aa(e.sourceStore,e.targetSources[0].source,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null});return yield*Me.forEach(e.targetSources.slice(1),f=>aa(e.sourceStore,f.source,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null}).pipe(Me.asVoid),{discard:!0}),{sessionId:t,authorizationUrl:c,source:d}}).pipe(Me.onError(()=>i?i.close.pipe(Me.orDie):Me.void))}),gAe=e=>Me.gen(function*(){let t=yield*GTt(e.targets),r=yield*HTt({executorState:e.executorState,scopeId:e.scopeId,actorScopeId:e.actorScopeId,providerKey:t.providerKey,oauthClientId:e.scopeOauthClient.id,requiredScopes:t.scopes,localScopeState:e.localScopeState});if(Ei.isSome(r))return{kind:"connected",sources:yield*SAe({sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,actorScopeId:e.actorScopeId,grantId:r.value.id,providerKey:r.value.providerKey,headerName:r.value.headerName,prefix:r.value.prefix,targets:e.targets.map(c=>({source:c.source,requiredScopes:c.requiredScopes}))})};let n=lr(e.baseUrl),o=n??e.getLocalServerBaseUrl?.()??null;if(o===null)return yield*Ne("sources/source-auth-service",`Local executor server base URL is unavailable for ${t.providerKey} OAuth setup`);let i=yield*WTt({executorState:e.executorState,sourceStore:e.sourceStore,scopeId:e.scopeId,actorScopeId:e.actorScopeId,executionId:e.executionId,interactionId:e.interactionId,baseUrl:o,redirectModeOverride:n?"app_callback":void 0,scopeOauthClient:e.scopeOauthClient,setupConfig:t,targetSources:e.targets.map(s=>({source:s.source,requiredScopes:s.requiredScopes}))});return{kind:"oauth_required",sources:yield*Me.forEach(e.targets,s=>e.sourceStore.loadSourceById({scopeId:s.source.scopeId,sourceId:s.source.id,actorScopeId:e.actorScopeId}),{discard:!1}),sessionId:i.sessionId,authorizationUrl:i.authorizationUrl}}),SAe=e=>Me.forEach(e.targets,t=>Me.gen(function*(){let r=yield*aa(e.sourceStore,t.source,{actorScopeId:e.actorScopeId,status:"connected",lastError:null,auth:{kind:"provider_grant_ref",grantId:e.grantId,providerKey:e.providerKey,requiredScopes:[...Df(t.requiredScopes)],headerName:e.headerName,prefix:e.prefix}});return yield*e.sourceCatalogSync.sync({source:r,actorScopeId:e.actorScopeId}),r}),{discard:!1}),QTt=e=>Me.gen(function*(){let t=yield*e.executorState.providerAuthGrants.getById(e.grantId);if(Ei.isNone(t)||t.value.scopeId!==e.scopeId)return!1;let r=yield*hQ(e.executorState,{scopeId:e.scopeId,grantId:e.grantId});return yield*Me.forEach(r,n=>Me.gen(function*(){let o=yield*e.sourceStore.loadSourceById({scopeId:n.scopeId,sourceId:n.sourceId,actorScopeId:n.actorScopeId}).pipe(Me.catchAll(()=>Me.succeed(null)));if(o===null){yield*k_(e.executorState,{authArtifactId:n.id},e.deleteSecretMaterial),yield*e.executorState.authArtifacts.removeByScopeSourceAndActor({scopeId:n.scopeId,sourceId:n.sourceId,actorScopeId:n.actorScopeId,slot:n.slot});return}yield*e.sourceStore.persistSource({...o,status:"auth_required",lastError:null,auth:n.slot==="runtime"?{kind:"none"}:o.auth,importAuth:n.slot==="import"?{kind:"none"}:o.importAuth,updatedAt:Date.now()},{actorScopeId:n.actorScopeId}).pipe(Me.asVoid)}),{discard:!0}),yield*$Te(e.executorState,{grant:t.value},e.deleteSecretMaterial),yield*e.executorState.providerAuthGrants.removeById(e.grantId),!0}),eAe=e=>Me.gen(function*(){let t=e.sourceId?null:ZDe({endpoint:e.endpoint??null,transport:e.transport??null,command:e.command??null,name:e.name??null}),r=yield*e.sourceId?e.sourceStore.loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId,actorScopeId:e.actorScopeId}).pipe(Me.flatMap(Te=>Kh(Te.kind)?Me.succeed(Te):Me.fail(Ne("sources/source-auth-service",`Expected MCP source, received ${Te.kind}`)))):e.sourceStore.loadSourcesInScope(e.scopeId,{actorScopeId:e.actorScopeId}).pipe(Me.map(Te=>Te.find(ke=>Kh(ke.kind)&&t!==null&&Tf(ke.endpoint)===t))),n=r?yield*Vh(r):null,o=e.command!==void 0?lr(e.command):n?.command??null,i=e.transport!==void 0&&e.transport!==null?e.transport:tg({transport:n?.transport??void 0,command:o??void 0})?"stdio":n?.transport??"auto";if(i==="stdio"&&o===null)return yield*Ne("sources/source-auth-service","MCP stdio transport requires a command");let a=ZDe({endpoint:e.endpoint??r?.endpoint??null,transport:i,command:o,name:e.name??r?.name??null}),s=lr(e.name)??r?.name??(i==="stdio"&&o!==null?xTt(o):VQ(a)),c=lr(e.namespace)??r?.namespace??KQ(s),p=e.enabled??r?.enabled??!0,d=i==="stdio"?null:e.queryParams!==void 0?e.queryParams:n?.queryParams??null,f=i==="stdio"?null:e.headers!==void 0?e.headers:n?.headers??null,m=e.args!==void 0?ETt(e.args):n?.args??null,y=e.env!==void 0?e.env:n?.env??null,g=e.cwd!==void 0?lr(e.cwd):n?.cwd??null,S=Date.now(),b=r?yield*vf({source:r,payload:{name:s,endpoint:a,namespace:c,status:"probing",enabled:p,binding:{transport:i,queryParams:d,headers:f,command:o,args:m,env:y,cwd:g},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:{kind:"none"},lastError:null},now:S}):yield*TS({scopeId:e.scopeId,sourceId:Mn.make(`src_${crypto.randomUUID()}`),payload:{name:s,kind:"mcp",endpoint:a,namespace:c,status:"probing",enabled:p,binding:{transport:i,queryParams:d,headers:f,command:o,args:m,env:y,cwd:g},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:{kind:"none"}},now:S}),E=yield*e.sourceStore.persistSource(b,{actorScopeId:e.actorScopeId});yield*e.sourceCatalogSync.sync({source:E,actorScopeId:e.actorScopeId});let I=yield*Me.either(OTt(E,e.mcpDiscoveryElicitation)),T=yield*Pd.match(I,{onLeft:()=>Me.succeed(null),onRight:Te=>Me.gen(function*(){let ke=yield*aa(e.sourceStore,E,{actorScopeId:e.actorScopeId,status:"connected",lastError:null,auth:{kind:"none"}}),Je=yield*Me.either(e.sourceCatalogSync.persistMcpCatalogSnapshotFromManifest({source:ke,manifest:Te.manifest}));return yield*Pd.match(Je,{onLeft:me=>aa(e.sourceStore,ke,{actorScopeId:e.actorScopeId,status:"error",lastError:me.message}).pipe(Me.zipRight(Me.fail(me))),onRight:()=>Me.succeed({kind:"connected",source:ke})})})});if(T)return T;let k=lr(e.baseUrl)??e.getLocalServerBaseUrl?.()??null;if(!k)return yield*Ne("sources/source-auth-service","Local executor server base URL is unavailable for source credential setup");let F=Dm.make(`src_auth_${crypto.randomUUID()}`),O=crypto.randomUUID(),$=nAe({baseUrl:k,scopeId:e.scopeId,sourceId:E.id}),N=yield*MT({endpoint:a,redirectUrl:$,state:O}),U=yield*aa(e.sourceStore,E,{actorScopeId:e.actorScopeId,status:"auth_required",lastError:null}),ge=Date.now();return yield*e.executorState.sourceAuthSessions.upsert({id:F,scopeId:e.scopeId,sourceId:U.id,actorScopeId:e.actorScopeId??null,credentialSlot:"runtime",executionId:e.executionId??null,interactionId:e.interactionId??null,providerKind:"mcp_oauth",status:"pending",state:O,sessionDataJson:GQ({kind:"mcp_oauth",endpoint:a,redirectUri:$,scope:null,resourceMetadataUrl:N.resourceMetadataUrl,authorizationServerUrl:N.authorizationServerUrl,resourceMetadata:N.resourceMetadata,authorizationServerMetadata:N.authorizationServerMetadata,clientInformation:N.clientInformation,codeVerifier:N.codeVerifier,authorizationUrl:N.authorizationUrl}),errorText:null,completedAt:null,createdAt:ge,updatedAt:ge}),{kind:"oauth_required",source:U,sessionId:F,authorizationUrl:N.authorizationUrl}}),XTt=e=>Me.gen(function*(){let t=Tf(e.sourceInput.endpoint),r=e.sourceInput.kind==="openapi"?Tf(e.sourceInput.specUrl):null,o=(yield*e.sourceStore.loadSourcesInScope(e.sourceInput.scopeId,{actorScopeId:e.sourceInput.actorScopeId})).find(g=>{if(g.kind!==e.sourceInput.kind||Tf(g.endpoint)!==t)return!1;if(e.sourceInput.kind==="openapi"){let S=Me.runSync(Vh(g));return lr(S.specUrl)===r}return!0}),i=lr(e.sourceInput.name)??o?.name??VQ(t),a=lr(e.sourceInput.namespace)??o?.namespace??KQ(i),s=o?yield*Vh(o):null,c=Date.now(),p=yield*HQ({existing:o,auth:e.sourceInput.auth,storeSecretMaterial:e.storeSecretMaterial}),d=yield*pAe({sourceKind:e.sourceInput.kind,existing:o,importAuthPolicy:e.sourceInput.importAuthPolicy??null,importAuth:e.sourceInput.importAuth??null,storeSecretMaterial:e.storeSecretMaterial}),f=o?yield*vf({source:o,payload:{name:i,endpoint:t,namespace:a,status:"probing",enabled:!0,binding:e.sourceInput.kind==="openapi"?{specUrl:r,defaultHeaders:s?.defaultHeaders??null}:{defaultHeaders:s?.defaultHeaders??null},importAuthPolicy:d.importAuthPolicy,importAuth:d.importAuth,auth:p,lastError:null},now:c}):yield*TS({scopeId:e.sourceInput.scopeId,sourceId:Mn.make(`src_${crypto.randomUUID()}`),payload:{name:i,kind:e.sourceInput.kind,endpoint:t,namespace:a,status:"probing",enabled:!0,binding:e.sourceInput.kind==="openapi"?{specUrl:r,defaultHeaders:s?.defaultHeaders??null}:{defaultHeaders:s?.defaultHeaders??null},importAuthPolicy:d.importAuthPolicy,importAuth:d.importAuth,auth:p},now:c}),m=yield*e.sourceStore.persistSource(f,{actorScopeId:e.sourceInput.actorScopeId});if(dAe({existing:o,explicitAuthProvided:e.sourceInput.auth!==void 0,auth:m.auth})){let g=lr(e.baseUrl),S=g??e.getLocalServerBaseUrl?.()??null;if(S){let E=yield*yAe({executorState:e.executorState,sourceStore:e.sourceStore,source:m,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:S,redirectModeOverride:g?"app_callback":void 0,storeSecretMaterial:e.storeSecretMaterial});if(E)return E}return{kind:"credential_required",source:yield*aa(e.sourceStore,m,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}),credentialSlot:"runtime"}}let y=yield*Me.either(e.sourceCatalogSync.sync({source:{...m,status:"connected"},actorScopeId:e.sourceInput.actorScopeId}));return yield*Pd.match(y,{onLeft:g=>D_(g)?aa(e.sourceStore,m,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}).pipe(Me.map(S=>({kind:"credential_required",source:S,credentialSlot:g.slot}))):aa(e.sourceStore,m,{actorScopeId:e.sourceInput.actorScopeId,status:"error",lastError:g.message}).pipe(Me.zipRight(Me.fail(g))),onRight:()=>aa(e.sourceStore,m,{actorScopeId:e.sourceInput.actorScopeId,status:"connected",lastError:null}).pipe(Me.map(g=>({kind:"connected",source:g})))})}).pipe(Me.withSpan("source.connect.http",{attributes:{"executor.source.kind":e.sourceInput.kind,"executor.source.endpoint":e.sourceInput.endpoint,...e.sourceInput.namespace?{"executor.source.namespace":e.sourceInput.namespace}:{},...e.sourceInput.name?{"executor.source.name":e.sourceInput.name}:{}}})),YTt=e=>Me.gen(function*(){let t=e.sourceInput.service.trim(),r=e.sourceInput.version.trim(),n=Tf(lr(e.sourceInput.discoveryUrl)??oAe(t,r)),i=(yield*e.sourceStore.loadSourcesInScope(e.sourceInput.scopeId,{actorScopeId:e.sourceInput.actorScopeId})).find(T=>{if(T.kind!=="google_discovery")return!1;let k=T.binding;return typeof k.service!="string"||typeof k.version!="string"?!1:k.service.trim()===t&&k.version.trim()===r}),a=lr(e.sourceInput.name)??i?.name??iAe(t,r),s=lr(e.sourceInput.namespace)??i?.namespace??aAe(t),c=Array.isArray(i?.binding?.scopes)?i.binding.scopes:[],p=(e.sourceInput.scopes??c).map(T=>T.trim()).filter(T=>T.length>0),d=i?yield*Vh(i):null,f=Date.now(),m=yield*HQ({existing:i,auth:e.sourceInput.auth,storeSecretMaterial:e.storeSecretMaterial}),y=yield*pAe({sourceKind:e.sourceInput.kind,existing:i,importAuthPolicy:e.sourceInput.importAuthPolicy??null,importAuth:e.sourceInput.importAuth??null,storeSecretMaterial:e.storeSecretMaterial}),g=i?yield*vf({source:i,payload:{name:a,endpoint:n,namespace:s,status:"probing",enabled:!0,binding:{service:t,version:r,discoveryUrl:n,defaultHeaders:d?.defaultHeaders??null,scopes:[...p]},importAuthPolicy:y.importAuthPolicy,importAuth:y.importAuth,auth:m,lastError:null},now:f}):yield*TS({scopeId:e.sourceInput.scopeId,sourceId:Mn.make(`src_${crypto.randomUUID()}`),payload:{name:a,kind:"google_discovery",endpoint:n,namespace:s,status:"probing",enabled:!0,binding:{service:t,version:r,discoveryUrl:n,defaultHeaders:d?.defaultHeaders??null,scopes:[...p]},importAuthPolicy:y.importAuthPolicy,importAuth:y.importAuth,auth:m},now:f}),S=yield*e.sourceStore.persistSource(g,{actorScopeId:e.sourceInput.actorScopeId}),b=_i(S),E=yield*hAe(S);if(E!==null&&e.sourceInput.auth===void 0&&S.auth.kind==="none"){let T=null;if(e.sourceInput.scopeOauthClientId?T=yield*ZQ({executorState:e.executorState,scopeId:S.scopeId,oauthClientId:e.sourceInput.scopeOauthClientId,providerKey:E.setupConfig.providerKey,localScopeState:e.localScopeState}):e.sourceInput.oauthClient&&(T=yield*mAe({executorState:e.executorState,scopeId:S.scopeId,providerKey:E.setupConfig.providerKey,oauthClient:e.sourceInput.oauthClient,label:`${a} OAuth Client`,normalizeOauthClient:b.normalizeOauthClientInput,storeSecretMaterial:e.storeSecretMaterial})),T===null)return yield*Ne("sources/source-auth-service",`${E.setupConfig.providerKey} shared auth requires a workspace OAuth client`);let k=yield*gAe({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,scopeId:S.scopeId,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:e.baseUrl,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeOauthClient:T,targets:[E],localScopeState:e.localScopeState});return k.kind==="connected"?{kind:"connected",source:k.sources[0]}:{kind:"oauth_required",source:k.sources[0],sessionId:k.sessionId,authorizationUrl:k.authorizationUrl}}if(e.sourceInput.oauthClient&&(yield*UTt({executorState:e.executorState,source:S,oauthClient:e.sourceInput.oauthClient,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial})),dAe({existing:i,explicitAuthProvided:e.sourceInput.auth!==void 0,auth:S.auth})){let T=lr(e.baseUrl),k=T??e.getLocalServerBaseUrl?.()??null;if(k){let O=yield*yAe({executorState:e.executorState,sourceStore:e.sourceStore,source:S,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:k,redirectModeOverride:T?"app_callback":void 0,storeSecretMaterial:e.storeSecretMaterial});if(O)return O}return{kind:"credential_required",source:yield*aa(e.sourceStore,S,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}),credentialSlot:"runtime"}}let I=yield*Me.either(e.sourceCatalogSync.sync({source:{...S,status:"connected"},actorScopeId:e.sourceInput.actorScopeId}));return yield*Pd.match(I,{onLeft:T=>D_(T)?aa(e.sourceStore,S,{actorScopeId:e.sourceInput.actorScopeId,status:"auth_required",lastError:null}).pipe(Me.map(k=>({kind:"credential_required",source:k,credentialSlot:T.slot}))):aa(e.sourceStore,S,{actorScopeId:e.sourceInput.actorScopeId,status:"error",lastError:T.message}).pipe(Me.zipRight(Me.fail(T))),onRight:()=>aa(e.sourceStore,S,{actorScopeId:e.sourceInput.actorScopeId,status:"connected",lastError:null}).pipe(Me.map(T=>({kind:"connected",source:T})))})}),eDt=e=>Me.gen(function*(){if(e.sourceInput.sources.length===0)return yield*Ne("sources/source-auth-service","Google batch connect requires at least one source");let t=yield*e.sourceStore.loadSourcesInScope(e.sourceInput.scopeId,{actorScopeId:e.sourceInput.actorScopeId}),r=yield*Me.forEach(e.sourceInput.sources,i=>Me.gen(function*(){let a=i.service.trim(),s=i.version.trim(),c=Tf(lr(i.discoveryUrl)??oAe(a,s)),p=t.find(I=>{if(I.kind!=="google_discovery")return!1;let T=I.binding;return typeof T.service=="string"&&typeof T.version=="string"&&T.service.trim()===a&&T.version.trim()===s}),d=lr(i.name)??p?.name??iAe(a,s),f=lr(i.namespace)??p?.namespace??aAe(a),m=Df(i.scopes??(Array.isArray(p?.binding.scopes)?p?.binding.scopes:[])),y=p?yield*Vh(p):null,g=Date.now(),S=p?yield*vf({source:p,payload:{name:d,endpoint:c,namespace:f,status:"probing",enabled:!0,binding:{service:a,version:s,discoveryUrl:c,defaultHeaders:y?.defaultHeaders??null,scopes:[...m]},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:p.auth.kind==="provider_grant_ref"?p.auth:{kind:"none"},lastError:null},now:g}):yield*TS({scopeId:e.sourceInput.scopeId,sourceId:Mn.make(`src_${crypto.randomUUID()}`),payload:{name:d,kind:"google_discovery",endpoint:c,namespace:f,status:"probing",enabled:!0,binding:{service:a,version:s,discoveryUrl:c,defaultHeaders:y?.defaultHeaders??null,scopes:[...m]},importAuthPolicy:"reuse_runtime",importAuth:{kind:"none"},auth:{kind:"none"}},now:g}),b=yield*e.sourceStore.persistSource(S,{actorScopeId:e.sourceInput.actorScopeId}),E=yield*hAe(b);return E===null?yield*Ne("sources/source-auth-service",`Source ${b.id} does not support Google shared auth`):E}),{discard:!1}),n=yield*ZQ({executorState:e.executorState,scopeId:e.sourceInput.scopeId,oauthClientId:e.sourceInput.scopeOauthClientId,providerKey:r[0].setupConfig.providerKey,localScopeState:e.localScopeState});if(n===null)return yield*Ne("sources/source-auth-service",`Scope OAuth client not found: ${e.sourceInput.scopeOauthClientId}`);let o=yield*gAe({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,scopeId:e.sourceInput.scopeId,actorScopeId:e.sourceInput.actorScopeId,executionId:e.sourceInput.executionId,interactionId:e.sourceInput.interactionId,baseUrl:e.sourceInput.baseUrl,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeOauthClient:n,targets:r,localScopeState:e.localScopeState});return o.kind==="connected"?{results:o.sources.map(i=>({source:i,status:"connected"})),providerOauthSession:null}:{results:o.sources.map(i=>({source:i,status:"pending_oauth"})),providerOauthSession:{sessionId:o.sessionId,authorizationUrl:o.authorizationUrl,sourceIds:o.sources.map(i=>i.id)}}}),tDt=(e,t)=>{let r=o=>Me.succeed(o),n=o=>Me.succeed(o);return{getSourceById:({scopeId:o,sourceId:i,actorScopeId:a})=>t(e.sourceStore.loadSourceById({scopeId:o,sourceId:i,actorScopeId:a})),addExecutorSource:(o,i=void 0)=>t((MTt(o)?YTt({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,sourceInput:o,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,resolveSecretMaterial:e.resolveSecretMaterial,getLocalServerBaseUrl:e.getLocalServerBaseUrl,baseUrl:i?.baseUrl,localScopeState:e.localScopeState}):jTt(o)?XTt({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,sourceInput:o,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,resolveSecretMaterial:e.resolveSecretMaterial,getLocalServerBaseUrl:e.getLocalServerBaseUrl,baseUrl:i?.baseUrl,localScopeState:e.localScopeState}):BTt(o)?eAe({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeId:o.scopeId,actorScopeId:o.actorScopeId,executionId:o.executionId,interactionId:o.interactionId,endpoint:o.endpoint,name:o.name,namespace:o.namespace,transport:o.transport,queryParams:o.queryParams,headers:o.headers,command:o.command,args:o.args,env:o.env,cwd:o.cwd,mcpDiscoveryElicitation:i?.mcpDiscoveryElicitation,baseUrl:i?.baseUrl,resolveSecretMaterial:e.resolveSecretMaterial}):Me.fail(Ne("sources/source-auth-service",`Unsupported executor source input: ${JSON.stringify(o)}`))).pipe(Me.flatMap(r))),connectGoogleDiscoveryBatch:o=>t(eDt({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,sourceInput:o,getLocalServerBaseUrl:e.getLocalServerBaseUrl,localScopeState:e.localScopeState})),connectMcpSource:o=>t(eAe({executorState:e.executorState,sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,getLocalServerBaseUrl:e.getLocalServerBaseUrl,scopeId:o.scopeId,actorScopeId:o.actorScopeId,sourceId:o.sourceId,executionId:null,interactionId:null,endpoint:o.endpoint,name:o.name,namespace:o.namespace,enabled:o.enabled,transport:o.transport,queryParams:o.queryParams,headers:o.headers,command:o.command,args:o.args,env:o.env,cwd:o.cwd,baseUrl:o.baseUrl,resolveSecretMaterial:e.resolveSecretMaterial}).pipe(Me.flatMap(n))),listScopeOauthClients:({scopeId:o,providerKey:i})=>t(Me.gen(function*(){let a=WQ({scopeId:o,localScopeState:e.localScopeState}),s=new Map;for(let c of a){let p=yield*e.executorState.scopeOauthClients.listByScopeAndProvider({scopeId:c,providerKey:i});for(let d of p)s.has(d.id)||s.set(d.id,d)}return[...s.values()]})),createScopeOauthClient:({scopeId:o,providerKey:i,label:a,oauthClient:s})=>t(Me.gen(function*(){let c=cQ(i),p=yield*mAe({executorState:e.executorState,scopeId:o,providerKey:i,oauthClient:s,label:a,normalizeOauthClient:c?.normalizeOauthClientInput,storeSecretMaterial:e.storeSecretMaterial}),d=yield*e.executorState.scopeOauthClients.getById(p.id);return Ei.isNone(d)?yield*Ne("sources/source-auth-service",`Scope OAuth client ${p.id} was not persisted`):d.value})),removeScopeOauthClient:({scopeId:o,oauthClientId:i})=>t(Me.gen(function*(){let a=yield*e.executorState.scopeOauthClients.getById(i);if(Ei.isNone(a)||a.value.scopeId!==o)return!1;let c=(yield*e.executorState.providerAuthGrants.listByScopeId(o)).find(f=>f.oauthClientId===i);if(c)return yield*Ne("sources/source-auth-service",`Scope OAuth client ${i} is still referenced by provider grant ${c.id}`);let p=$F(a.value),d=yield*e.executorState.scopeOauthClients.removeById(i);return d&&p&&(yield*e.deleteSecretMaterial(p).pipe(Me.either,Me.ignore)),d})),removeProviderAuthGrant:({scopeId:o,grantId:i})=>t(QTt({executorState:e.executorState,sourceStore:e.sourceStore,scopeId:o,grantId:i,deleteSecretMaterial:e.deleteSecretMaterial}))}},rDt=(e,t)=>({startSourceOAuthSession:r=>Me.gen(function*(){let n=lr(r.baseUrl)??e.getLocalServerBaseUrl?.()??null;if(!n)return yield*Ne("sources/source-auth-service","Local executor server base URL is unavailable for OAuth setup");let o=Dm.make(`src_auth_${crypto.randomUUID()}`),i=CTt({displayName:r.displayName}),a=ATt({baseUrl:n}),s=Tf(r.provider.endpoint),c=yield*MT({endpoint:s,redirectUrl:a,state:i}),p=Date.now();return yield*e.executorState.sourceAuthSessions.upsert({id:o,scopeId:r.scopeId,sourceId:Mn.make(`oauth_draft_${crypto.randomUUID()}`),actorScopeId:r.actorScopeId??null,credentialSlot:"runtime",executionId:null,interactionId:null,providerKind:"mcp_oauth",status:"pending",state:i,sessionDataJson:GQ({kind:"mcp_oauth",endpoint:s,redirectUri:a,scope:r.provider.kind,resourceMetadataUrl:c.resourceMetadataUrl,authorizationServerUrl:c.authorizationServerUrl,resourceMetadata:c.resourceMetadata,authorizationServerMetadata:c.authorizationServerMetadata,clientInformation:c.clientInformation,codeVerifier:c.codeVerifier,authorizationUrl:c.authorizationUrl}),errorText:null,completedAt:null,createdAt:p,updatedAt:p}),{sessionId:o,authorizationUrl:c.authorizationUrl}}),completeSourceOAuthSession:({state:r,code:n,error:o,errorDescription:i})=>t(Me.gen(function*(){let a=yield*e.executorState.sourceAuthSessions.getByState(r);if(Ei.isNone(a))return yield*Ne("sources/source-auth-service",`Source auth session not found for state ${r}`);let s=a.value,c=RF(s);if(s.status==="completed")return yield*Ne("sources/source-auth-service",`Source auth session ${s.id} is already completed`);if(s.status!=="pending")return yield*Ne("sources/source-auth-service",`Source auth session ${s.id} is not pending`);if(lr(o)!==null){let S=lr(i)??lr(o)??"OAuth authorization failed",b=Date.now();return yield*e.executorState.sourceAuthSessions.update(s.id,IS({sessionDataJson:s.sessionDataJson,status:"failed",now:b,errorText:S})),yield*Ne("sources/source-auth-service",S)}let p=lr(n);if(p===null)return yield*Ne("sources/source-auth-service","Missing OAuth authorization code");if(c.codeVerifier===null)return yield*Ne("sources/source-auth-service","OAuth session is missing the PKCE code verifier");if(c.scope!==null&&c.scope!=="mcp")return yield*Ne("sources/source-auth-service",`Unsupported OAuth provider: ${c.scope}`);let d=yield*DB({session:{endpoint:c.endpoint,redirectUrl:c.redirectUri,codeVerifier:c.codeVerifier,resourceMetadataUrl:c.resourceMetadataUrl,authorizationServerUrl:c.authorizationServerUrl,resourceMetadata:c.resourceMetadata,authorizationServerMetadata:c.authorizationServerMetadata,clientInformation:c.clientInformation},code:p}),f=WDe({displayName:PTt(s.state),endpoint:c.endpoint}),m=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:d.tokens.access_token,name:f}),y=d.tokens.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:d.tokens.refresh_token,name:`${f} Refresh`}):null,g={kind:"oauth2",headerName:"Authorization",prefix:"Bearer ",accessToken:m,refreshToken:y};return yield*e.executorState.sourceAuthSessions.update(s.id,IS({sessionDataJson:QDe({session:s,patch:{codeVerifier:null,authorizationUrl:null,resourceMetadataUrl:d.resourceMetadataUrl,authorizationServerUrl:d.authorizationServerUrl,resourceMetadata:d.resourceMetadata,authorizationServerMetadata:d.authorizationServerMetadata}}),status:"completed",now:Date.now(),errorText:null})),{sessionId:s.id,auth:g}})),completeProviderOauthCallback:({scopeId:r,actorScopeId:n,state:o,code:i,error:a,errorDescription:s})=>t(Me.gen(function*(){let c=yield*e.executorState.sourceAuthSessions.getByState(o);if(Ei.isNone(c))return yield*Ne("sources/source-auth-service",`Source auth session not found for state ${o}`);let p=c.value;if(p.scopeId!==r)return yield*Ne("sources/source-auth-service",`Source auth session ${p.id} does not match scopeId=${r}`);if((p.actorScopeId??null)!==(n??null))return yield*Ne("sources/source-auth-service",`Source auth session ${p.id} does not match the active account`);if(p.providerKind!=="oauth2_provider_batch")return yield*Ne("sources/source-auth-service",`Source auth session ${p.id} is not a provider batch OAuth session`);if(p.status==="completed"){let F=JQ(p),O=yield*Me.forEach(F.targetSources,$=>e.sourceStore.loadSourceById({scopeId:r,sourceId:$.sourceId,actorScopeId:n}),{discard:!1});return{sessionId:p.id,sources:O}}if(p.status!=="pending")return yield*Ne("sources/source-auth-service",`Source auth session ${p.id} is not pending`);let d=JQ(p);if(lr(a)!==null){let F=lr(s)??lr(a)??"OAuth authorization failed";return yield*e.executorState.sourceAuthSessions.update(p.id,IS({sessionDataJson:p.sessionDataJson,status:"failed",now:Date.now(),errorText:F})),yield*Ne("sources/source-auth-service",F)}let f=lr(i);if(f===null)return yield*Ne("sources/source-auth-service","Missing OAuth authorization code");if(d.codeVerifier===null)return yield*Ne("sources/source-auth-service","OAuth session is missing the PKCE code verifier");let m=yield*ZQ({executorState:e.executorState,scopeId:r,oauthClientId:d.oauthClientId,providerKey:d.providerKey,localScopeState:e.localScopeState});if(m===null)return yield*Ne("sources/source-auth-service",`Scope OAuth client not found: ${d.oauthClientId}`);let y=null;m.clientSecret&&(y=yield*e.resolveSecretMaterial({ref:m.clientSecret}));let g=yield*rq({tokenEndpoint:d.tokenEndpoint,clientId:m.clientId,clientAuthentication:d.clientAuthentication,clientSecret:y,redirectUri:d.redirectUri,codeVerifier:d.codeVerifier??"",code:f}),b=(yield*e.executorState.providerAuthGrants.listByScopeActorAndProvider({scopeId:r,actorScopeId:n??null,providerKey:d.providerKey})).find(F=>F.oauthClientId===d.oauthClientId)??null,E=Df(lr(g.scope)?g.scope.split(/\s+/):d.scopes),I=yield*ZTt({executorState:e.executorState,scopeId:r,actorScopeId:n,providerKey:d.providerKey,oauthClientId:d.oauthClientId,tokenEndpoint:d.tokenEndpoint,clientAuthentication:d.clientAuthentication,headerName:d.headerName,prefix:d.prefix,grantedScopes:E,refreshToken:lr(g.refresh_token),existingGrant:b,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial}),T=yield*Me.forEach(d.targetSources,F=>Me.map(e.sourceStore.loadSourceById({scopeId:r,sourceId:F.sourceId,actorScopeId:n}),O=>({source:O,requiredScopes:F.requiredScopes})),{discard:!1}),k=yield*SAe({sourceStore:e.sourceStore,sourceCatalogSync:e.sourceCatalogSync,actorScopeId:n,grantId:I.id,providerKey:I.providerKey,headerName:I.headerName,prefix:I.prefix,targets:T});return yield*e.executorState.sourceAuthSessions.update(p.id,IS({sessionDataJson:$Tt({session:p,patch:{codeVerifier:null,authorizationUrl:null}}),status:"completed",now:Date.now(),errorText:null})),{sessionId:p.id,sources:k}})),completeSourceCredentialSetup:({scopeId:r,sourceId:n,actorScopeId:o,state:i,code:a,error:s,errorDescription:c})=>t(Me.gen(function*(){let p=yield*e.executorState.sourceAuthSessions.getByState(i);if(Ei.isNone(p))return yield*Ne("sources/source-auth-service",`Source auth session not found for state ${i}`);let d=p.value;if(d.scopeId!==r||d.sourceId!==n)return yield*Ne("sources/source-auth-service",`Source auth session ${d.id} does not match scopeId=${r} sourceId=${n}`);if(o!==void 0&&(d.actorScopeId??null)!==(o??null))return yield*Ne("sources/source-auth-service",`Source auth session ${d.id} does not match the active account`);let f=yield*e.sourceStore.loadSourceById({scopeId:d.scopeId,sourceId:d.sourceId,actorScopeId:d.actorScopeId});if(d.status==="completed")return{sessionId:d.id,source:f};if(d.status!=="pending")return yield*Ne("sources/source-auth-service",`Source auth session ${d.id} is not pending`);let m=d.providerKind==="oauth2_pkce"?zQ(d):RF(d);if(lr(s)!==null){let E=lr(c)??lr(s)??"OAuth authorization failed",I=Date.now();yield*e.executorState.sourceAuthSessions.update(d.id,IS({sessionDataJson:d.sessionDataJson,status:"failed",now:I,errorText:E}));let T=yield*aa(e.sourceStore,f,{actorScopeId:d.actorScopeId,status:"error",lastError:E});return yield*e.sourceCatalogSync.sync({source:T,actorScopeId:d.actorScopeId}),yield*XDe({executorState:e.executorState,liveExecutionManager:e.liveExecutionManager,session:d,response:{action:"cancel",reason:E}}),yield*Ne("sources/source-auth-service",E)}let y=lr(a);if(y===null)return yield*Ne("sources/source-auth-service","Missing OAuth authorization code");if(m.codeVerifier===null)return yield*Ne("sources/source-auth-service","OAuth session is missing the PKCE code verifier");let g=Date.now(),S;if(d.providerKind==="oauth2_pkce"){let E=zQ(d),I=null;E.clientSecret&&(I=yield*e.resolveSecretMaterial({ref:E.clientSecret}));let T=yield*rq({tokenEndpoint:E.tokenEndpoint,clientId:E.clientId,clientAuthentication:E.clientAuthentication,clientSecret:I,redirectUri:E.redirectUri,codeVerifier:E.codeVerifier??"",code:y}),k=lr(T.refresh_token);if(k===null)return yield*Ne("sources/source-auth-service","OAuth authorization did not return a refresh token");let F=yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:k,name:`${f.name} Refresh`}),O=lr(T.scope)?T.scope.split(/\s+/).filter(N=>N.length>0):[...E.scopes];S=yield*aa(e.sourceStore,f,{actorScopeId:d.actorScopeId,status:"connected",lastError:null,auth:{kind:"oauth2_authorized_user",headerName:E.headerName,prefix:E.prefix,tokenEndpoint:E.tokenEndpoint,clientId:E.clientId,clientAuthentication:E.clientAuthentication,clientSecret:E.clientSecret,refreshToken:F,grantSet:O}});let $=yield*e.executorState.authArtifacts.getByScopeSourceAndActor({scopeId:S.scopeId,sourceId:S.id,actorScopeId:d.actorScopeId??null,slot:"runtime"});Ei.isSome($)&&(yield*rle({executorState:e.executorState,artifact:$.value,tokenResponse:T,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial})),yield*e.executorState.sourceAuthSessions.update(d.id,IS({sessionDataJson:RTt({session:d,patch:{codeVerifier:null,authorizationUrl:null}}),status:"completed",now:g,errorText:null}))}else{let E=RF(d),I=yield*DB({session:{endpoint:E.endpoint,redirectUrl:E.redirectUri,codeVerifier:E.codeVerifier??"",resourceMetadataUrl:E.resourceMetadataUrl,authorizationServerUrl:E.authorizationServerUrl,resourceMetadata:E.resourceMetadata,authorizationServerMetadata:E.authorizationServerMetadata,clientInformation:E.clientInformation},code:y}),T=WDe({displayName:f.name,endpoint:f.endpoint}),k=yield*e.storeSecretMaterial({purpose:"oauth_access_token",value:I.tokens.access_token,name:T}),F=I.tokens.refresh_token?yield*e.storeSecretMaterial({purpose:"oauth_refresh_token",value:I.tokens.refresh_token,name:`${T} Refresh`}):null;S=yield*aa(e.sourceStore,f,{actorScopeId:d.actorScopeId,status:"connected",lastError:null,auth:Yce({redirectUri:E.redirectUri,accessToken:k,refreshToken:F,tokenType:I.tokens.token_type,expiresIn:typeof I.tokens.expires_in=="number"&&Number.isFinite(I.tokens.expires_in)?I.tokens.expires_in:null,scope:I.tokens.scope??null,resourceMetadataUrl:I.resourceMetadataUrl,authorizationServerUrl:I.authorizationServerUrl,resourceMetadata:I.resourceMetadata,authorizationServerMetadata:I.authorizationServerMetadata,clientInformation:I.clientInformation})}),yield*e.executorState.sourceAuthSessions.update(d.id,IS({sessionDataJson:QDe({session:d,patch:{codeVerifier:null,authorizationUrl:null,resourceMetadataUrl:I.resourceMetadataUrl,authorizationServerUrl:I.authorizationServerUrl,resourceMetadata:I.resourceMetadata,authorizationServerMetadata:I.authorizationServerMetadata}}),status:"completed",now:g,errorText:null}))}let b=yield*Me.either(e.sourceCatalogSync.sync({source:S,actorScopeId:d.actorScopeId}));return yield*Pd.match(b,{onLeft:E=>aa(e.sourceStore,S,{actorScopeId:d.actorScopeId,status:"error",lastError:E.message}).pipe(Me.zipRight(Me.fail(E))),onRight:()=>Me.succeed(void 0)}),yield*XDe({executorState:e.executorState,liveExecutionManager:e.liveExecutionManager,session:d,response:{action:"accept"}}),{sessionId:d.id,source:S}}))}),nDt=e=>{let t=o=>ph(o,e.localScopeState),r=tDt(e,t),n=rDt(e,t);return{getLocalServerBaseUrl:()=>e.getLocalServerBaseUrl?.()??null,storeSecretMaterial:({purpose:o,value:i})=>e.storeSecretMaterial({purpose:o,value:i}),...r,...n}},ap=class extends tAe.Tag("#runtime/RuntimeSourceAuthServiceTag")(){},vAe=(e={})=>rAe.effect(ap,Me.gen(function*(){let t=yield*Wn,r=yield*Xc,n=yield*Qo,o=yield*tu,i=yield*Nl,a=yield*Ys,s=yield*as,c=yield*dh();return nDt({executorState:t,liveExecutionManager:r,sourceStore:n,sourceCatalogSync:o,resolveSecretMaterial:i,storeSecretMaterial:a,deleteSecretMaterial:s,getLocalServerBaseUrl:e.getLocalServerBaseUrl,localScopeState:c??void 0})})),QZt=Fn.Union(Fn.Struct({kind:Fn.Literal("connected"),source:zp}),Fn.Struct({kind:Fn.Literal("credential_required"),source:zp,credentialSlot:Fn.Literal("runtime","import")}),Fn.Struct({kind:Fn.Literal("oauth_required"),source:zp,sessionId:Dm,authorizationUrl:Fn.String}));import*as bAe from"effect/Context";import*as MF from"effect/Effect";import*as xAe from"effect/Layer";var Af=class extends bAe.Tag("#runtime/LocalToolRuntimeLoaderService")(){},YZt=xAe.effect(Af,MF.succeed(Af.of({load:()=>MF.die(new Error("LocalToolRuntimeLoaderLive is unsupported; provide a bound local tool runtime loader from the host adapter."))})));var oDt=()=>({tools:{},catalog:r_({tools:{}}),toolInvoker:t_({tools:{}}),toolPaths:new Set}),iDt=e=>({scopeId:t,actorScopeId:r,onElicitation:n})=>vI.gen(function*(){let o=yield*dh(),i=o===null?null:yield*e.scopeConfigStore.load(),a=o===null?oDt():yield*e.localToolRuntimeLoader.load(),{catalog:s,toolInvoker:c}=GDe({scopeId:t,actorScopeId:r,executorStateStore:e.executorStateStore,sourceStore:e.sourceStore,sourceCatalogSyncService:e.sourceCatalogSyncService,sourceCatalogStore:e.sourceCatalogStore,installationStore:e.installationStore,instanceConfigResolver:e.instanceConfigResolver,storeSecretMaterial:e.storeSecretMaterial,deleteSecretMaterial:e.deleteSecretMaterial,updateSecretMaterial:e.updateSecretMaterial,scopeConfigStore:e.scopeConfigStore,scopeStateStore:e.scopeStateStore,sourceArtifactStore:e.sourceArtifactStore,sourceAuthMaterialService:e.sourceAuthMaterialService,sourceAuthService:e.sourceAuthService,runtimeLocalScope:o,localToolRuntime:a,createInternalToolMap:e.createInternalToolMap,onElicitation:n});return{executor:yield*vI.promise(()=>IQ(AQ(i?.config),e.customCodeExecutor)),toolInvoker:c,catalog:s}}),Xh=class extends EAe.Tag("#runtime/RuntimeExecutionResolverService")(){},TAe=(e={})=>e.executionResolver?jF.succeed(Xh,e.executionResolver):jF.effect(Xh,vI.gen(function*(){let t=yield*Wn,r=yield*Qo,n=yield*tu,o=yield*Fm,i=yield*ap,a=yield*Gh,s=yield*Af,c=yield*Vg,p=yield*Gp,d=yield*Ys,f=yield*as,m=yield*Kp,y=yield*Kc,g=yield*$a,S=yield*Ma;return iDt({executorStateStore:t,sourceStore:r,sourceCatalogSyncService:n,sourceAuthService:i,sourceAuthMaterialService:o,sourceCatalogStore:a,localToolRuntimeLoader:s,installationStore:c,instanceConfigResolver:p,storeSecretMaterial:d,deleteSecretMaterial:f,updateSecretMaterial:m,scopeConfigStore:y,scopeStateStore:g,sourceArtifactStore:S,createInternalToolMap:e.createInternalToolMap,customCodeExecutor:e.customCodeExecutor})}));import*as AAe from"effect/Data";var DAe=class extends AAe.TaggedError("ResumeUnsupportedError"){};import*as qa from"effect/Effect";var BF={bundle:Oo("sources.inspect.bundle"),tool:Oo("sources.inspect.tool"),discover:Oo("sources.inspect.discover")},pb=e=>e.trim().toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),aDt=e=>e.status==="draft"||e.status==="probing"||e.status==="auth_required",sDt=e=>qa.gen(function*(){let r=yield*(yield*Qo).loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId});return aDt(r)?r:yield*e.cause}),wAe=e=>pDe({scopeId:e.scopeId,sourceId:e.sourceId}).pipe(qa.map(t=>({kind:"catalog",catalogEntry:t})),qa.catchTag("LocalSourceArtifactMissingError",t=>qa.gen(function*(){return{kind:"empty",source:yield*sDt({scopeId:e.scopeId,sourceId:e.sourceId,cause:t})}}))),XQ=e=>{let t=e.executable.display??{};return{protocol:t.protocol??e.executable.adapterKey,method:t.method??null,pathTemplate:t.pathTemplate??null,rawToolId:t.rawToolId??e.path.split(".").at(-1)??null,operationId:t.operationId??null,group:t.group??null,leaf:t.leaf??e.path.split(".").at(-1)??null,tags:e.capability.surface.tags??[]}},cDt=e=>({path:e.path,method:XQ(e).method,...e.descriptor.contract?.inputTypePreview?{inputTypePreview:e.descriptor.contract.inputTypePreview}:{},...e.descriptor.contract?.outputTypePreview?{outputTypePreview:e.descriptor.contract.outputTypePreview}:{}}),kAe=e=>{let t=XQ(e);return{path:e.path,sourceKey:e.source.id,...e.capability.surface.title?{title:e.capability.surface.title}:{},...e.capability.surface.summary||e.capability.surface.description?{description:e.capability.surface.summary??e.capability.surface.description}:{},protocol:t.protocol,toolId:e.path.split(".").at(-1)??e.path,rawToolId:t.rawToolId,operationId:t.operationId,group:t.group,leaf:t.leaf,tags:[...t.tags],method:t.method,pathTemplate:t.pathTemplate,...e.descriptor.contract?.inputTypePreview?{inputTypePreview:e.descriptor.contract.inputTypePreview}:{},...e.descriptor.contract?.outputTypePreview?{outputTypePreview:e.descriptor.contract.outputTypePreview}:{}}},IAe=e=>e==="graphql"||e==="yaml"||e==="json"||e==="text"?e:"json",QQ=(e,t)=>t==null?null:{kind:"code",title:e,language:"json",body:JSON.stringify(t,null,2)},lDt=e=>qa.gen(function*(){let t=kAe(e),r=XQ(e),n=yield*dDe(e),o=[{label:"Protocol",value:r.protocol},...r.method?[{label:"Method",value:r.method,mono:!0}]:[],...r.pathTemplate?[{label:"Target",value:r.pathTemplate,mono:!0}]:[],...r.operationId?[{label:"Operation",value:r.operationId,mono:!0}]:[],...r.group?[{label:"Group",value:r.group,mono:!0}]:[],...r.leaf?[{label:"Leaf",value:r.leaf,mono:!0}]:[],...r.rawToolId?[{label:"Raw tool",value:r.rawToolId,mono:!0}]:[],{label:"Signature",value:n.callSignature,mono:!0},{label:"Call shape",value:n.callShapeId,mono:!0},...n.resultShapeId?[{label:"Result shape",value:n.resultShapeId,mono:!0}]:[],{label:"Response set",value:n.responseSetId,mono:!0}],i=[...(e.capability.native??[]).map((s,c)=>({kind:"code",title:`Capability native ${String(c+1)}: ${s.kind}`,language:IAe(s.encoding),body:typeof s.value=="string"?s.value:JSON.stringify(s.value??null,null,2)})),...(e.executable.native??[]).map((s,c)=>({kind:"code",title:`Executable native ${String(c+1)}: ${s.kind}`,language:IAe(s.encoding),body:typeof s.value=="string"?s.value:JSON.stringify(s.value??null,null,2)}))],a=[{kind:"facts",title:"Overview",items:o},...t.description?[{kind:"markdown",title:"Description",body:t.description}]:[],...[QQ("Capability",e.capability),QQ("Executable",{id:e.executable.id,adapterKey:e.executable.adapterKey,bindingVersion:e.executable.bindingVersion,binding:e.executable.binding,projection:e.executable.projection,display:e.executable.display??null}),QQ("Documentation",{summary:e.capability.surface.summary,description:e.capability.surface.description})].filter(s=>s!==null),...i];return{summary:t,contract:n,sections:a}}),CAe=e=>qa.gen(function*(){let t=yield*wAe({scopeId:e.scopeId,sourceId:e.sourceId});if(t.kind==="empty")return{source:t.source,namespace:t.source.namespace??"",pipelineKind:"ir",tools:[]};let r=yield*bQ({catalogs:[t.catalogEntry],includeSchemas:e.includeSchemas,includeTypePreviews:e.includeTypePreviews});return{source:t.catalogEntry.source,namespace:t.catalogEntry.source.namespace??"",pipelineKind:"ir",tools:r}}),uDt=e=>qa.gen(function*(){let t=yield*wAe({scopeId:e.scopeId,sourceId:e.sourceId});if(t.kind==="empty")return{source:t.source,namespace:t.source.namespace??"",pipelineKind:"ir",tool:null};let r=yield*xQ({catalogs:[t.catalogEntry],path:e.toolPath,includeSchemas:!0,includeTypePreviews:!1});return{source:t.catalogEntry.source,namespace:t.catalogEntry.source.namespace??"",pipelineKind:"ir",tool:r}}),pDt=e=>{let t=0,r=[],n=kAe(e.tool),o=pb(n.path),i=pb(n.title??""),a=pb(n.description??""),s=n.tags.flatMap(pb),c=pb(`${n.method??""} ${n.pathTemplate??""}`);for(let p of e.queryTokens){if(o.includes(p)){t+=12,r.push(`path matches ${p} (+12)`);continue}if(s.includes(p)){t+=10,r.push(`tag matches ${p} (+10)`);continue}if(i.includes(p)){t+=8,r.push(`title matches ${p} (+8)`);continue}if(c.includes(p)){t+=6,r.push(`method/path matches ${p} (+6)`);continue}(a.includes(p)||e.tool.searchText.includes(p))&&(t+=2,r.push(`description/text matches ${p} (+2)`))}return t<=0?null:{path:e.tool.path,score:t,...n.description?{description:n.description}:{},...n.inputTypePreview?{inputTypePreview:n.inputTypePreview}:{},...n.outputTypePreview?{outputTypePreview:n.outputTypePreview}:{},reasons:r}},YQ=(e,t,r)=>t instanceof Ef||t instanceof Wh?t:e.unknownStorage(t,r),PAe=e=>qa.gen(function*(){let t=yield*CAe({...e,includeSchemas:!1,includeTypePreviews:!1});return{source:t.source,namespace:t.namespace,pipelineKind:t.pipelineKind,toolCount:t.tools.length,tools:t.tools.map(r=>cDt(r))}}).pipe(qa.mapError(t=>YQ(BF.bundle,t,"Failed building source inspection bundle"))),OAe=e=>qa.gen(function*(){let r=(yield*uDt({scopeId:e.scopeId,sourceId:e.sourceId,toolPath:e.toolPath})).tool;return r?yield*lDt(r):yield*BF.tool.notFound("Tool not found",`scopeId=${e.scopeId} sourceId=${e.sourceId} path=${e.toolPath}`)}).pipe(qa.mapError(t=>YQ(BF.tool,t,"Failed building source inspection tool detail"))),NAe=e=>qa.gen(function*(){let t=yield*CAe({scopeId:e.scopeId,sourceId:e.sourceId,includeSchemas:!1,includeTypePreviews:!1}),r=pb(e.payload.query),n=t.tools.map(o=>pDt({queryTokens:r,tool:o})).filter(o=>o!==null).sort((o,i)=>i.score-o.score||o.path.localeCompare(i.path)).slice(0,e.payload.limit??12);return{query:e.payload.query,queryTokens:r,bestPath:n[0]?.path??null,total:n.length,results:n}}).pipe(qa.mapError(t=>YQ(BF.discover,t,"Failed building source inspection discovery")));import*as qF from"effect/Effect";var dDt=yF,_Dt=dDt.filter(e=>e.detectSource!==void 0),FAe=e=>qF.gen(function*(){let t=yield*qF.try({try:()=>Xae(e.url),catch:o=>o instanceof Error?o:new Error(String(o))}),r=ese(e.probeAuth),n=[..._Dt].sort((o,i)=>(i.discoveryPriority?.({normalizedUrl:t})??0)-(o.discoveryPriority?.({normalizedUrl:t})??0));for(let o of n){let i=yield*o.detectSource({normalizedUrl:t,headers:r});if(i)return i}return rse(t)});import*as RAe from"effect/Data";import*as LAe from"effect/Deferred";import*as Lr from"effect/Effect";import*as Ua from"effect/Option";import*as hc from"effect/Schema";var sp={create:Oo("executions.create"),get:Oo("executions.get"),resume:Oo("executions.resume")},eX="__EXECUTION_SUSPENDED__",$Ae="detach",db=e=>e===void 0?null:JSON.stringify(e),fDt=e=>JSON.stringify(e===void 0?null:e),mDt=e=>{if(e!==null)return JSON.parse(e)},hDt=hc.Literal("accept","decline","cancel"),yDt=hc.Struct({action:hDt,content:hc.optional(hc.Record({key:hc.String,value:hc.Unknown}))}),MAe=hc.decodeUnknown(yDt),gDt=e=>{let t=0;return{invoke:({path:r,args:n,context:o})=>(t+=1,e.toolInvoker.invoke({path:r,args:n,context:{...o,runId:e.executionId,callId:typeof o?.callId=="string"&&o.callId.length>0?o.callId:`call_${String(t)}`,executionStepSequence:t}}))}},tX=e=>{let t=e?.executionStepSequence;return typeof t=="number"&&Number.isSafeInteger(t)&&t>0?t:null},SDt=(e,t)=>K6.make(`${e}:step:${String(t)}`),jAe=e=>{let t=typeof e.context?.callId=="string"&&e.context.callId.length>0?e.context.callId:null;return t===null?e.interactionId:`${t}:${e.path}`},vDt=e=>ws.make(`${e.executionId}:${jAe(e)}`),BAe=e=>e==="live"||e==="live_form"?e:$Ae,UF=class extends RAe.TaggedError("ExecutionSuspendedError"){},bDt=e=>new UF({executionId:e.executionId,interactionId:e.interactionId,message:`${eX}:${e.executionId}:${e.interactionId}`}),qAe=e=>e instanceof UF?!0:e instanceof Error?e.message.includes(eX):typeof e=="string"&&e.includes(eX),UAe=e=>Lr.try({try:()=>{if(e.responseJson===null)throw new Error(`Interaction ${e.interactionId} has no stored response`);return JSON.parse(e.responseJson)},catch:t=>t instanceof Error?t:new Error(String(t))}).pipe(Lr.flatMap(t=>MAe(t).pipe(Lr.mapError(r=>new Error(String(r)))))),xDt=e=>{if(!(e.expectedPath===e.actualPath&&e.expectedArgsJson===e.actualArgsJson))throw new Error([`Durable execution mismatch for ${e.executionId} at tool step ${String(e.sequence)}.`,`Expected ${e.expectedPath}(${e.expectedArgsJson}) but replay reached ${e.actualPath}(${e.actualArgsJson}).`].join(" "))},EDt=(e,t)=>Lr.gen(function*(){let r=gI(t.operation),n=yield*r.mapStorage(e.executions.getByScopeAndId(t.scopeId,t.executionId));return Ua.isNone(n)?yield*r.notFound("Execution not found",`scopeId=${t.scopeId} executionId=${t.executionId}`):n.value}),zF=(e,t)=>Lr.gen(function*(){let r=gI(t.operation),n=yield*EDt(e,t),o=yield*r.child("pending_interaction").mapStorage(e.executionInteractions.getPendingByExecutionId(t.executionId));return{execution:n,pendingInteraction:Ua.isSome(o)?o.value:null}}),zAe=(e,t)=>Lr.gen(function*(){let r=yield*zF(e,t);return r.execution.status!=="running"&&!(r.execution.status==="waiting_for_interaction"&&(r.pendingInteraction===null||r.pendingInteraction.id===t.previousPendingInteractionId))||t.attemptsRemaining<=0?r:(yield*Lr.promise(()=>new Promise(n=>setTimeout(n,25))),yield*zAe(e,{...t,attemptsRemaining:t.attemptsRemaining-1}))}),TDt=e=>Lr.gen(function*(){let t=Date.now(),r=yield*e.executorState.executionInteractions.getById(e.interactionId),n=tX(e.request.context);return Ua.isSome(r)&&r.value.status!=="pending"?yield*UAe({interactionId:e.interactionId,responseJson:r.value.responsePrivateJson??r.value.responseJson}):(Ua.isNone(r)&&(yield*e.executorState.executionInteractions.insert({id:ws.make(e.interactionId),executionId:e.executionId,status:"pending",kind:e.request.elicitation.mode==="url"?"url":"form",purpose:"elicitation",payloadJson:db({path:e.request.path,sourceKey:e.request.sourceKey,args:e.request.args,context:e.request.context,elicitation:e.request.elicitation})??"{}",responseJson:null,responsePrivateJson:null,createdAt:t,updatedAt:t})),n!==null&&(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,n,{status:"waiting",interactionId:ws.make(e.interactionId),updatedAt:t})),yield*e.executorState.executions.update(e.executionId,{status:"waiting_for_interaction",updatedAt:t}),yield*e.liveExecutionManager.publishState({executionId:e.executionId,state:"waiting_for_interaction"}),yield*bDt({executionId:e.executionId,interactionId:e.interactionId}))}),DDt=e=>{let t=e.liveExecutionManager.createOnElicitation({executorState:e.executorState,executionId:e.executionId});return r=>Lr.gen(function*(){let n=jAe({interactionId:r.interactionId,path:r.path,context:r.context}),o=vDt({executionId:e.executionId,interactionId:r.interactionId,path:r.path,context:r.context}),i=yield*e.executorState.executionInteractions.getById(o);if(Ua.isSome(i)&&i.value.status!=="pending")return yield*UAe({interactionId:o,responseJson:i.value.responsePrivateJson??i.value.responseJson});let a=e.interactionMode==="live"||e.interactionMode==="live_form"&&r.elicitation.mode!=="url";if(Ua.isNone(i)&&a){let s=tX(r.context);return s!==null&&(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,s,{status:"waiting",interactionId:ws.make(o),updatedAt:Date.now()})),yield*t({...r,interactionId:n})}return yield*TDt({executorState:e.executorState,executionId:e.executionId,liveExecutionManager:e.liveExecutionManager,request:r,interactionId:o})})},ADt=e=>({invoke:({path:t,args:r,context:n})=>Lr.gen(function*(){let o=tX(n);if(o===null)return yield*e.toolInvoker.invoke({path:t,args:r,context:n});let i=fDt(r),a=yield*e.executorState.executionSteps.getByExecutionAndSequence(e.executionId,o);if(Ua.isSome(a)){if(xDt({executionId:e.executionId,sequence:o,expectedPath:a.value.path,expectedArgsJson:a.value.argsJson,actualPath:t,actualArgsJson:i}),a.value.status==="completed")return mDt(a.value.resultJson);if(a.value.status==="failed")return yield*Ne("execution/service",a.value.errorText??`Stored tool step ${String(o)} failed`)}else{let s=Date.now();yield*e.executorState.executionSteps.insert({id:SDt(e.executionId,o),executionId:e.executionId,sequence:o,kind:"tool_call",status:"pending",path:t,argsJson:i,resultJson:null,errorText:null,interactionId:null,createdAt:s,updatedAt:s})}try{let s=yield*e.toolInvoker.invoke({path:t,args:r,context:n}),c=Date.now();return yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,o,{status:"completed",resultJson:db(s),errorText:null,updatedAt:c}),s}catch(s){let c=Date.now();return qAe(s)?(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,o,{status:"waiting",updatedAt:c}),yield*Lr.fail(s)):(yield*e.executorState.executionSteps.updateByExecutionAndSequence(e.executionId,o,{status:"failed",errorText:s instanceof Error?s.message:String(s),updatedAt:c}),yield*Lr.fail(s))}})}),IDt=e=>Lr.gen(function*(){if(qAe(e.outcome.error))return;if(e.outcome.error){let[n,o]=yield*Lr.all([e.executorState.executions.getById(e.executionId),e.executorState.executionInteractions.getPendingByExecutionId(e.executionId)]);if(Ua.isSome(n)&&n.value.status==="waiting_for_interaction"&&Ua.isSome(o))return}let t=Date.now(),r=yield*e.executorState.executions.update(e.executionId,{status:e.outcome.error?"failed":"completed",resultJson:db(e.outcome.result),errorText:e.outcome.error??null,logsJson:db(e.outcome.logs??null),completedAt:t,updatedAt:t});if(Ua.isNone(r)){yield*e.liveExecutionManager.clearRun(e.executionId);return}yield*e.liveExecutionManager.finishRun({executionId:e.executionId,state:r.value.status==="completed"?"completed":"failed"}),yield*e.executorState.executionSteps.deleteByExecutionId(e.executionId)}),wDt=e=>Lr.gen(function*(){let t=Date.now(),r=yield*e.executorState.executions.update(e.executionId,{status:"failed",errorText:e.error,completedAt:t,updatedAt:t});if(Ua.isNone(r)){yield*e.liveExecutionManager.clearRun(e.executionId);return}yield*e.liveExecutionManager.finishRun({executionId:e.executionId,state:"failed"}),yield*e.executorState.executionSteps.deleteByExecutionId(e.executionId)}),kDt=(e,t,r,n,o)=>t({scopeId:n.scopeId,actorScopeId:n.createdByScopeId,executionId:n.id,onElicitation:DDt({executorState:e,executionId:n.id,liveExecutionManager:r,interactionMode:o})}).pipe(Lr.map(i=>({executor:i.executor,toolInvoker:gDt({executionId:n.id,toolInvoker:ADt({executorState:e,executionId:n.id,toolInvoker:i.toolInvoker})})})),Lr.flatMap(({executor:i,toolInvoker:a})=>i.execute(n.code,a)),Lr.flatMap(i=>IDt({executorState:e,liveExecutionManager:r,executionId:n.id,outcome:i})),Lr.catchAll(i=>wDt({executorState:e,liveExecutionManager:r,executionId:n.id,error:i instanceof Error?i.message:String(i)}).pipe(Lr.catchAll(()=>r.clearRun(n.id))))),JAe=(e,t,r,n,o)=>Lr.gen(function*(){let i=yield*dh();yield*Lr.sync(()=>{let a=kDt(e,t,r,n,o);Lr.runFork(ph(a,i))})}),VAe=(e,t,r,n)=>Lr.gen(function*(){let o=yield*e.executions.getById(n.executionId);if(Ua.isNone(o))return!1;let i=yield*e.executionInteractions.getPendingByExecutionId(n.executionId);if(Ua.isNone(i)||o.value.status!=="waiting_for_interaction"&&o.value.status!=="failed")return!1;let a=Date.now(),c=[...yield*e.executionSteps.listByExecutionId(n.executionId)].reverse().find(d=>d.interactionId===i.value.id);c&&(yield*e.executionSteps.updateByExecutionAndSequence(n.executionId,c.sequence,{status:"waiting",errorText:null,updatedAt:a})),yield*e.executionInteractions.update(i.value.id,{status:n.response.action==="cancel"?"cancelled":"resolved",responseJson:db(_I(n.response)),responsePrivateJson:db(n.response),updatedAt:a});let p=yield*e.executions.update(n.executionId,{status:"running",updatedAt:a});return Ua.isNone(p)?!1:(yield*JAe(e,t,r,p.value,n.interactionMode),!0)}),CDt=(e,t,r,n)=>Lr.gen(function*(){let o=n.payload.code,i=Date.now(),a={id:kl.make(`exec_${crypto.randomUUID()}`),scopeId:n.scopeId,createdByScopeId:n.createdByScopeId,status:"pending",code:o,resultJson:null,errorText:null,logsJson:null,startedAt:null,completedAt:null,createdAt:i,updatedAt:i};yield*sp.create.child("insert").mapStorage(e.executions.insert(a));let s=yield*sp.create.child("mark_running").mapStorage(e.executions.update(a.id,{status:"running",startedAt:i,updatedAt:i}));if(Ua.isNone(s))return yield*sp.create.notFound("Execution not found after insert",`executionId=${a.id}`);let c=yield*r.registerStateWaiter(a.id);return yield*JAe(e,t,r,s.value,BAe(n.payload.interactionMode)),yield*LAe.await(c),yield*zF(e,{scopeId:n.scopeId,executionId:a.id,operation:sp.create})}),KAe=e=>Lr.gen(function*(){let t=yield*Wn,r=yield*Xh,n=yield*Xc;return yield*CDt(t,r,n,e)}),GAe=e=>Lr.flatMap(Wn,t=>zF(t,{scopeId:e.scopeId,executionId:e.executionId,operation:sp.get})),JF=e=>Lr.gen(function*(){let t=yield*Wn,r=yield*Xh,n=yield*Xc;return yield*VAe(t,r,n,{...e,interactionMode:e.interactionMode??$Ae})}),HAe=e=>Lr.gen(function*(){let t=yield*Wn,r=yield*Xh,n=yield*Xc,o=yield*zF(t,{scopeId:e.scopeId,executionId:e.executionId,operation:"executions.resume"});if(o.execution.status!=="waiting_for_interaction"&&!(o.execution.status==="failed"&&o.pendingInteraction!==null))return yield*sp.resume.badRequest("Execution is not waiting for interaction",`executionId=${e.executionId} status=${o.execution.status}`);let i=e.payload.responseJson,a=i===void 0?{action:"accept"}:yield*Lr.try({try:()=>JSON.parse(i),catch:c=>sp.resume.badRequest("Invalid responseJson",c instanceof Error?c.message:String(c))}).pipe(Lr.flatMap(c=>MAe(c).pipe(Lr.mapError(p=>sp.resume.badRequest("Invalid responseJson",String(p))))));return!(yield*n.resolveInteraction({executionId:e.executionId,response:a}))&&!(yield*sp.resume.child("submit_interaction").mapStorage(VAe(t,r,n,{executionId:e.executionId,response:a,interactionMode:BAe(e.payload.interactionMode)})))?yield*sp.resume.badRequest("Resume is unavailable for this execution",`executionId=${e.executionId}`):yield*zAe(t,{scopeId:e.scopeId,executionId:e.executionId,operation:sp.resume,previousPendingInteractionId:o.pendingInteraction?.id??null,attemptsRemaining:400})});var PDt=e=>e instanceof Error?e.message:String(e),rX=e=>{let t=PDt(e);return new Error(`Failed initializing runtime: ${t}`)},ODt=e=>li.gen(function*(){yield*(yield*Gh).loadWorkspaceSourceCatalogToolIndex({scopeId:e.scopeId,actorScopeId:e.actorScopeId})}),NDt=()=>{let e={};return{tools:e,catalog:r_({tools:e}),toolInvoker:t_({tools:e}),toolPaths:new Set}},FDt={refreshWorkspaceInBackground:()=>li.void,refreshSourceInBackground:()=>li.void},WAe=e=>({load:e.load,getOrProvision:e.getOrProvision}),QAe=e=>({load:e.load,writeProject:({config:t})=>e.writeProject(t),resolveRelativePath:e.resolveRelativePath}),XAe=e=>({load:e.load,write:({state:t})=>e.write(t)}),YAe=e=>({build:e.build,read:({sourceId:t})=>e.read(t),write:({sourceId:t,artifact:r})=>e.write({sourceId:t,artifact:r}),remove:({sourceId:t})=>e.remove(t)}),RDt=e=>Eo.mergeAll(Eo.succeed(Nl,e.resolve),Eo.succeed(Ys,e.store),Eo.succeed(as,e.delete),Eo.succeed(Kp,e.update)),LDt=e=>Eo.succeed(Gp,e.resolve),$Dt=e=>({authArtifacts:e.auth.artifacts,authLeases:e.auth.leases,sourceOauthClients:e.auth.sourceOauthClients,scopeOauthClients:e.auth.scopeOauthClients,providerAuthGrants:e.auth.providerGrants,sourceAuthSessions:e.auth.sourceSessions,secretMaterials:e.secrets,executions:e.executions.runs,executionInteractions:e.executions.interactions,executionSteps:e.executions.steps}),MDt=e=>{let t=iA({installationStore:WAe(e.storage.installation),scopeConfigStore:QAe(e.storage.scopeConfig),scopeStateStore:XAe(e.storage.scopeState),sourceArtifactStore:YAe(e.storage.sourceArtifacts)}),r=Eo.succeed(Af,Af.of({load:()=>e.localToolRuntimeLoader?.load()??li.succeed(NDt())})),n=Eo.succeed(hd,hd.of(e.sourceTypeDeclarationsRefresher??FDt)),o=Eo.mergeAll(Eo.succeed(Wn,$Dt(e.storage)),XJ(e.localScopeState),t,Eo.succeed(Xc,e.liveExecutionManager),n),i=RDt(e.storage.secrets).pipe(Eo.provide(o)),a=LDt(e.instanceConfig),s=ZTe.pipe(Eo.provide(Eo.mergeAll(o,i))),c=_De.pipe(Eo.provide(Eo.mergeAll(o,s))),p=ale.pipe(Eo.provide(Eo.mergeAll(o,i))),d=yDe.pipe(Eo.provide(Eo.mergeAll(o,i,p))),f=vAe({getLocalServerBaseUrl:e.getLocalServerBaseUrl}).pipe(Eo.provide(Eo.mergeAll(o,a,i,s,d))),m=TAe({executionResolver:e.executionResolver,createInternalToolMap:e.createInternalToolMap,customCodeExecutor:e.customCodeExecutor}).pipe(Eo.provide(Eo.mergeAll(o,a,i,s,p,d,f,c,r)));return Eo.mergeAll(o,a,i,s,p,d,c,r,f,m)},e2e=(e,t)=>e.pipe(li.provide(t.managedRuntime)),t2e=e=>li.gen(function*(){let t=yield*e.services.storage.installation.getOrProvision().pipe(li.mapError(rX)),r=yield*e.services.storage.scopeConfig.load().pipe(li.mapError(rX)),n={...e.services.scope,scopeId:t.scopeId,actorScopeId:e.services.scope.actorScopeId??t.actorScopeId,resolutionScopeIds:e.services.scope.resolutionScopeIds??t.resolutionScopeIds},o=yield*ODe({loadedConfig:r}).pipe(li.provide(iA({installationStore:WAe(e.services.storage.installation),scopeConfigStore:QAe(e.services.storage.scopeConfig),scopeStateStore:XAe(e.services.storage.scopeState),sourceArtifactStore:YAe(e.services.storage.sourceArtifacts)}))).pipe(li.mapError(rX)),i={scope:n,installation:t,loadedConfig:{...r,config:o}},a=DQ(),s=MDt({...e,...e.services,localScopeState:i,liveExecutionManager:a}),c=ZAe.make(s);return yield*c.runtimeEffect,yield*gDe({scopeId:t.scopeId,actorScopeId:t.actorScopeId}).pipe(li.provide(c),li.catchAll(()=>li.void)),yield*ODt({scopeId:t.scopeId,actorScopeId:t.actorScopeId}).pipe(li.provide(c),li.catchAll(()=>li.void)),{storage:e.services.storage,localInstallation:t,managedRuntime:c,runtimeLayer:s,close:async()=>{await li.runPromise(fL()).catch(()=>{}),await c.dispose().catch(()=>{}),await e.services.storage.close?.().catch(()=>{})}}});var jDt=e=>e instanceof Error?e:new Error(String(e)),_r=e=>Yc.isEffect(e)?e:e instanceof Promise?Yc.tryPromise({try:()=>e,catch:jDt}):Yc.succeed(e),sa=e=>_r(e).pipe(Yc.map(t=>VF.isOption(t)?t:VF.fromNullable(t))),BDt=e=>({load:()=>_r(e.load()),getOrProvision:()=>_r(e.getOrProvision())}),qDt=e=>({load:()=>_r(e.load()),writeProject:t=>_r(e.writeProject(t)),resolveRelativePath:e.resolveRelativePath}),UDt=e=>({load:()=>_r(e.load()),write:t=>_r(e.write(t))}),zDt=e=>({build:e.build,read:t=>_r(e.read(t)),write:t=>_r(e.write(t)),remove:t=>_r(e.remove(t))}),JDt=e=>({resolve:()=>_r(e.resolve())}),VDt=e=>({load:()=>_r(e.load())}),KDt=e=>({refreshWorkspaceInBackground:t=>_r(e.refreshWorkspaceInBackground(t)).pipe(Yc.orDie),refreshSourceInBackground:t=>_r(e.refreshSourceInBackground(t)).pipe(Yc.orDie)}),GDt=e=>({artifacts:{listByScopeId:t=>_r(e.artifacts.listByScopeId(t)),listByScopeAndSourceId:t=>_r(e.artifacts.listByScopeAndSourceId(t)),getByScopeSourceAndActor:t=>sa(e.artifacts.getByScopeSourceAndActor(t)),upsert:t=>_r(e.artifacts.upsert(t)),removeByScopeSourceAndActor:t=>_r(e.artifacts.removeByScopeSourceAndActor(t)),removeByScopeAndSourceId:t=>_r(e.artifacts.removeByScopeAndSourceId(t))},leases:{listAll:()=>_r(e.leases.listAll()),getByAuthArtifactId:t=>sa(e.leases.getByAuthArtifactId(t)),upsert:t=>_r(e.leases.upsert(t)),removeByAuthArtifactId:t=>_r(e.leases.removeByAuthArtifactId(t))},sourceOauthClients:{getByScopeSourceAndProvider:t=>sa(e.sourceOauthClients.getByScopeSourceAndProvider(t)),upsert:t=>_r(e.sourceOauthClients.upsert(t)),removeByScopeAndSourceId:t=>_r(e.sourceOauthClients.removeByScopeAndSourceId(t))},scopeOauthClients:{listByScopeAndProvider:t=>_r(e.scopeOauthClients.listByScopeAndProvider(t)),getById:t=>sa(e.scopeOauthClients.getById(t)),upsert:t=>_r(e.scopeOauthClients.upsert(t)),removeById:t=>_r(e.scopeOauthClients.removeById(t))},providerGrants:{listByScopeId:t=>_r(e.providerGrants.listByScopeId(t)),listByScopeActorAndProvider:t=>_r(e.providerGrants.listByScopeActorAndProvider(t)),getById:t=>sa(e.providerGrants.getById(t)),upsert:t=>_r(e.providerGrants.upsert(t)),removeById:t=>_r(e.providerGrants.removeById(t))},sourceSessions:{listAll:()=>_r(e.sourceSessions.listAll()),listByScopeId:t=>_r(e.sourceSessions.listByScopeId(t)),getById:t=>sa(e.sourceSessions.getById(t)),getByState:t=>sa(e.sourceSessions.getByState(t)),getPendingByScopeSourceAndActor:t=>sa(e.sourceSessions.getPendingByScopeSourceAndActor(t)),insert:t=>_r(e.sourceSessions.insert(t)),update:(t,r)=>sa(e.sourceSessions.update(t,r)),upsert:t=>_r(e.sourceSessions.upsert(t)),removeByScopeAndSourceId:(t,r)=>_r(e.sourceSessions.removeByScopeAndSourceId(t,r))}}),HDt=e=>({getById:t=>sa(e.getById(t)),listAll:()=>_r(e.listAll()),upsert:t=>_r(e.upsert(t)),updateById:(t,r)=>sa(e.updateById(t,r)),removeById:t=>_r(e.removeById(t)),resolve:t=>_r(e.resolve(t)),store:t=>_r(e.store(t)),delete:t=>_r(e.delete(t)),update:t=>_r(e.update(t))}),ZDt=e=>({runs:{getById:t=>sa(e.runs.getById(t)),getByScopeAndId:(t,r)=>sa(e.runs.getByScopeAndId(t,r)),insert:t=>_r(e.runs.insert(t)),update:(t,r)=>sa(e.runs.update(t,r))},interactions:{getById:t=>sa(e.interactions.getById(t)),listByExecutionId:t=>_r(e.interactions.listByExecutionId(t)),getPendingByExecutionId:t=>sa(e.interactions.getPendingByExecutionId(t)),insert:t=>_r(e.interactions.insert(t)),update:(t,r)=>sa(e.interactions.update(t,r))},steps:{getByExecutionAndSequence:(t,r)=>sa(e.steps.getByExecutionAndSequence(t,r)),listByExecutionId:t=>_r(e.steps.listByExecutionId(t)),insert:t=>_r(e.steps.insert(t)),deleteByExecutionId:t=>_r(e.steps.deleteByExecutionId(t)),updateByExecutionAndSequence:(t,r,n)=>sa(e.steps.updateByExecutionAndSequence(t,r,n))}}),Yh=e=>({createRuntime:t=>Yc.flatMap(_r(e.loadRepositories(t)),r=>t2e({...t,services:{scope:r.scope,storage:{installation:BDt(r.installation),scopeConfig:qDt(r.workspace.config),scopeState:UDt(r.workspace.state),sourceArtifacts:zDt(r.workspace.sourceArtifacts),auth:GDt(r.workspace.sourceAuth),secrets:HDt(r.secrets),executions:ZDt(r.executions),close:r.close},localToolRuntimeLoader:r.workspace.localTools?VDt(r.workspace.localTools):void 0,sourceTypeDeclarationsRefresher:r.workspace.sourceTypeDeclarations?KDt(r.workspace.sourceTypeDeclarations):void 0,instanceConfig:JDt(r.instanceConfig)}}))});import*as sX from"effect/Effect";import*as fb from"effect/Effect";import*as yc from"effect/Effect";import*as r2e from"effect/Option";var el={installation:Oo("local.installation.get"),sourceCredentialComplete:Oo("sources.credentials.complete"),sourceCredentialPage:Oo("sources.credentials.page"),sourceCredentialSubmit:Oo("sources.credentials.submit")},nX=e=>typeof e=="object"&&e!==null,oX=e=>typeof e=="string"?e:null,KF=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},WDt=e=>{try{if(e.purpose!=="source_connect_oauth2"&&e.purpose!=="source_connect_secret"&&e.purpose!=="elicitation")return null;let t=JSON.parse(e.payloadJson);if(!nX(t))return null;let r=t.args,n=t.elicitation;if(!nX(r)||!nX(n)||t.path!=="executor.sources.add")return null;let o=e.purpose==="elicitation"?n.mode==="url"?"source_connect_oauth2":"source_connect_secret":e.purpose;if(o==="source_connect_oauth2"&&n.mode!=="url"||o==="source_connect_secret"&&n.mode!=="form")return null;let i=KF(oX(r.scopeId)),a=KF(oX(r.sourceId)),s=KF(oX(n.message));return i===null||a===null||s===null?null:{interactionId:e.id,executionId:e.executionId,status:e.status,message:s,scopeId:Br.make(i),sourceId:Mn.make(a)}}catch{return null}},n2e=e=>yc.gen(function*(){let t=yield*Wn,r=yield*ap,n=yield*t.executionInteractions.getById(e.interactionId).pipe(yc.mapError(a=>e.operation.unknownStorage(a,`Failed loading execution interaction ${e.interactionId}`)));if(r2e.isNone(n))return yield*e.operation.notFound("Source credential request not found",`interactionId=${e.interactionId}`);let o=WDt(n.value);if(o===null||o.scopeId!==e.scopeId||o.sourceId!==e.sourceId)return yield*e.operation.notFound("Source credential request not found",`scopeId=${e.scopeId} sourceId=${e.sourceId} interactionId=${e.interactionId}`);let i=yield*r.getSourceById({scopeId:e.scopeId,sourceId:e.sourceId}).pipe(yc.mapError(a=>e.operation.unknownStorage(a,`Failed loading source ${e.sourceId}`)));return{...o,sourceLabel:i.name,endpoint:i.endpoint}}),o2e=()=>yc.gen(function*(){return yield*(yield*Vg).load().pipe(yc.mapError(t=>el.installation.unknownStorage(t,"Failed loading local installation")))}),i2e=e=>n2e({...e,operation:el.sourceCredentialPage}),a2e=e=>yc.gen(function*(){let t=yield*n2e({scopeId:e.scopeId,sourceId:e.sourceId,interactionId:e.interactionId,operation:el.sourceCredentialSubmit});if(t.status!=="pending")return yield*el.sourceCredentialSubmit.badRequest("Source credential request is no longer active",`interactionId=${t.interactionId} status=${t.status}`);let r=yield*Xc;if(e.action==="cancel")return!(yield*r.resolveInteraction({executionId:t.executionId,response:{action:"cancel"}}))&&!(yield*JF({executionId:t.executionId,response:{action:"cancel"}}).pipe(yc.mapError(p=>el.sourceCredentialSubmit.unknownStorage(p,`Failed resuming execution for interaction ${t.interactionId}`))))?yield*el.sourceCredentialSubmit.badRequest("Source credential request is no longer resumable",`interactionId=${t.interactionId}`):{kind:"cancelled",sourceLabel:t.sourceLabel,endpoint:t.endpoint};if(e.action==="continue")return!(yield*r.resolveInteraction({executionId:t.executionId,response:{action:"accept",content:kQ()}}))&&!(yield*JF({executionId:t.executionId,response:{action:"accept",content:kQ()}}).pipe(yc.mapError(p=>el.sourceCredentialSubmit.unknownStorage(p,`Failed resuming execution for interaction ${t.interactionId}`))))?yield*el.sourceCredentialSubmit.badRequest("Source credential request is no longer resumable",`interactionId=${t.interactionId}`):{kind:"continued",sourceLabel:t.sourceLabel,endpoint:t.endpoint};let n=KF(e.token);if(n===null)return yield*el.sourceCredentialSubmit.badRequest("Missing token",`interactionId=${t.interactionId}`);let i=yield*(yield*ap).storeSecretMaterial({purpose:"auth_material",value:n}).pipe(yc.mapError(s=>el.sourceCredentialSubmit.unknownStorage(s,`Failed storing credential material for interaction ${t.interactionId}`)));return!(yield*r.resolveInteraction({executionId:t.executionId,response:{action:"accept",content:CQ(i)}}))&&!(yield*JF({executionId:t.executionId,response:{action:"accept",content:CQ(i)}}).pipe(yc.mapError(c=>el.sourceCredentialSubmit.unknownStorage(c,`Failed resuming execution for interaction ${t.interactionId}`))))?yield*el.sourceCredentialSubmit.badRequest("Source credential request is no longer resumable",`interactionId=${t.interactionId}`):{kind:"stored",sourceLabel:t.sourceLabel,endpoint:t.endpoint}}),s2e=e=>yc.gen(function*(){return yield*(yield*ap).completeSourceCredentialSetup(e).pipe(yc.mapError(r=>el.sourceCredentialComplete.unknownStorage(r,"Failed completing source credential setup")))});import*as za from"effect/Effect";import*as GF from"effect/Option";var cp=(e,t)=>new Wh({operation:e,message:t,details:t}),c2e=()=>za.flatMap(Gp,e=>e()),l2e=()=>za.gen(function*(){let e=yield*Wn,t=yield*Qo,r=yield*D1().pipe(za.mapError(()=>cp("secrets.list","Failed resolving local scope."))),n=yield*e.secretMaterials.listAll().pipe(za.mapError(()=>cp("secrets.list","Failed listing secrets."))),o=yield*t.listLinkedSecretSourcesInScope(r.installation.scopeId,{actorScopeId:r.installation.actorScopeId}).pipe(za.mapError(()=>cp("secrets.list","Failed loading linked sources.")));return n.map(i=>({...i,linkedSources:o.get(i.id)??[]}))}),u2e=e=>za.gen(function*(){let t=e.name.trim(),r=e.value,n=e.purpose??"auth_material";if(t.length===0)return yield*new lb({operation:"secrets.create",message:"Secret name is required.",details:"Secret name is required."});let o=yield*Wn,a=yield*(yield*Ys)({name:t,purpose:n,value:r,providerId:e.providerId}).pipe(za.mapError(p=>cp("secrets.create",p instanceof Error?p.message:"Failed creating secret."))),s=qp.make(a.handle),c=yield*o.secretMaterials.getById(s).pipe(za.mapError(()=>cp("secrets.create","Failed loading created secret.")));return GF.isNone(c)?yield*cp("secrets.create",`Created secret not found: ${a.handle}`):{id:c.value.id,name:c.value.name,providerId:c.value.providerId,purpose:c.value.purpose,createdAt:c.value.createdAt,updatedAt:c.value.updatedAt}}),p2e=e=>za.gen(function*(){let t=qp.make(e.secretId),n=yield*(yield*Wn).secretMaterials.getById(t).pipe(za.mapError(()=>cp("secrets.update","Failed looking up secret.")));if(GF.isNone(n))return yield*new Ef({operation:"secrets.update",message:`Secret not found: ${e.secretId}`,details:`Secret not found: ${e.secretId}`});let o={};e.payload.name!==void 0&&(o.name=e.payload.name.trim()||null),e.payload.value!==void 0&&(o.value=e.payload.value);let a=yield*(yield*Kp)({ref:{providerId:n.value.providerId,handle:n.value.id},...o}).pipe(za.mapError(()=>cp("secrets.update","Failed updating secret.")));return{id:a.id,providerId:a.providerId,name:a.name,purpose:a.purpose,createdAt:a.createdAt,updatedAt:a.updatedAt}}),d2e=e=>za.gen(function*(){let t=qp.make(e),n=yield*(yield*Wn).secretMaterials.getById(t).pipe(za.mapError(()=>cp("secrets.delete","Failed looking up secret.")));return GF.isNone(n)?yield*new Ef({operation:"secrets.delete",message:`Secret not found: ${e}`,details:`Secret not found: ${e}`}):(yield*(yield*as)({providerId:n.value.providerId,handle:n.value.id}).pipe(za.mapError(()=>cp("secrets.delete","Failed removing secret."))))?{removed:!0}:yield*cp("secrets.delete",`Failed removing secret: ${e}`)});import*as _2e from"effect/Either";import*as Xo from"effect/Effect";import*as iX from"effect/Effect";var _b=(e,t)=>t.pipe(iX.mapError(r=>gI(e).storage(r)));var ru={list:Oo("sources.list"),create:Oo("sources.create"),get:Oo("sources.get"),update:Oo("sources.update"),remove:Oo("sources.remove")},QDt=e=>_i(e).shouldAutoProbe(e),f2e=e=>Xo.gen(function*(){let t=yield*tu,r=QDt(e.source),n=r?{...e.source,status:"connected"}:e.source,o=yield*Xo.either(t.sync({source:n,actorScopeId:e.actorScopeId}));return yield*_2e.match(o,{onRight:()=>Xo.gen(function*(){if(r){let i=yield*vf({source:e.source,payload:{status:"connected",lastError:null},now:Date.now()}).pipe(Xo.mapError(a=>e.operation.badRequest("Failed updating source status",a instanceof Error?a.message:String(a))));return yield*_b(e.operation.child("source_connected"),e.sourceStore.persistSource(i,{actorScopeId:e.actorScopeId})),i}return e.source}),onLeft:i=>Xo.gen(function*(){if(r||e.source.enabled&&e.source.status==="connected"){let a=yield*vf({source:e.source,payload:{status:"error",lastError:i.message},now:Date.now()}).pipe(Xo.mapError(s=>e.operation.badRequest("Failed indexing source tools",s instanceof Error?s.message:String(s))));yield*_b(e.operation.child("source_error"),e.sourceStore.persistSource(a,{actorScopeId:e.actorScopeId}))}return yield*e.operation.unknownStorage(i,"Failed syncing source tools")})})}),m2e=e=>Xo.flatMap(Wn,()=>Xo.gen(function*(){return yield*(yield*Qo).loadSourcesInScope(e.scopeId,{actorScopeId:e.actorScopeId}).pipe(Xo.mapError(r=>ru.list.unknownStorage(r,"Failed projecting stored sources")))})),h2e=e=>Xo.flatMap(Wn,t=>Xo.gen(function*(){let r=yield*Qo,n=Date.now(),o=yield*TS({scopeId:e.scopeId,sourceId:Mn.make(`src_${crypto.randomUUID()}`),payload:e.payload,now:n}).pipe(Xo.mapError(s=>ru.create.badRequest("Invalid source definition",s instanceof Error?s.message:String(s)))),i=yield*_b(ru.create.child("persist"),r.persistSource(o,{actorScopeId:e.actorScopeId}));return yield*f2e({store:t,sourceStore:r,source:i,actorScopeId:e.actorScopeId,operation:ru.create})})),y2e=e=>Xo.flatMap(Wn,()=>Xo.gen(function*(){return yield*(yield*Qo).loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId,actorScopeId:e.actorScopeId}).pipe(Xo.mapError(r=>r instanceof Error&&r.message.startsWith("Source not found:")?ru.get.notFound("Source not found",`scopeId=${e.scopeId} sourceId=${e.sourceId}`):ru.get.unknownStorage(r,"Failed projecting stored source")))})),g2e=e=>Xo.flatMap(Wn,t=>Xo.gen(function*(){let r=yield*Qo,n=yield*r.loadSourceById({scopeId:e.scopeId,sourceId:e.sourceId,actorScopeId:e.actorScopeId}).pipe(Xo.mapError(s=>s instanceof Error&&s.message.startsWith("Source not found:")?ru.update.notFound("Source not found",`scopeId=${e.scopeId} sourceId=${e.sourceId}`):ru.update.unknownStorage(s,"Failed projecting stored source"))),o=yield*vf({source:n,payload:e.payload,now:Date.now()}).pipe(Xo.mapError(s=>ru.update.badRequest("Invalid source definition",s instanceof Error?s.message:String(s)))),i=yield*_b(ru.update.child("persist"),r.persistSource(o,{actorScopeId:e.actorScopeId}));return yield*f2e({store:t,sourceStore:r,source:i,actorScopeId:e.actorScopeId,operation:ru.update})})),S2e=e=>Xo.flatMap(Wn,()=>Xo.gen(function*(){let t=yield*Qo;return{removed:yield*_b(ru.remove.child("remove"),t.removeSourceById({scopeId:e.scopeId,sourceId:e.sourceId}))}}));var XDt=e=>{let t=e.localInstallation,r=t.scopeId,n=t.actorScopeId,o=s=>e2e(s,e),i=s=>o(fb.flatMap(ap,s)),a=()=>{let s=crypto.randomUUID();return{executionId:kl.make(`exec_sdk_${s}`),interactionId:`executor.sdk.${s}`}};return{runtime:e,installation:t,scopeId:r,actorScopeId:n,resolutionScopeIds:t.resolutionScopeIds,close:()=>e.close(),local:{installation:()=>o(o2e()),config:()=>o(c2e()),credentials:{get:({sourceId:s,interactionId:c})=>o(i2e({scopeId:r,sourceId:s,interactionId:c})),submit:({sourceId:s,interactionId:c,action:p,token:d})=>o(a2e({scopeId:r,sourceId:s,interactionId:c,action:p,token:d})),complete:({sourceId:s,state:c,code:p,error:d,errorDescription:f})=>o(s2e({scopeId:r,sourceId:s,state:c,code:p,error:d,errorDescription:f}))}},secrets:{list:()=>o(l2e()),create:s=>o(u2e(s)),update:s=>o(p2e(s)),remove:s=>o(d2e(s))},policies:{list:()=>o($De(r)),create:s=>o(MDe({scopeId:r,payload:s})),get:s=>o(jDe({scopeId:r,policyId:s})),update:(s,c)=>o(BDe({scopeId:r,policyId:s,payload:c})),remove:s=>o(qDe({scopeId:r,policyId:s})).pipe(fb.map(c=>c.removed))},sources:{add:(s,c)=>i(p=>{let d=a();return p.addExecutorSource({...s,scopeId:r,actorScopeId:n,executionId:d.executionId,interactionId:d.interactionId},c)}),connect:s=>i(c=>c.connectMcpSource({...s,scopeId:r,actorScopeId:n})),connectBatch:s=>i(c=>{let p=a();return c.connectGoogleDiscoveryBatch({...s,scopeId:r,actorScopeId:n,executionId:p.executionId,interactionId:p.interactionId})}),discover:s=>o(FAe(s)),list:()=>o(m2e({scopeId:r,actorScopeId:n})),create:s=>o(h2e({scopeId:r,actorScopeId:n,payload:s})),get:s=>o(y2e({scopeId:r,sourceId:s,actorScopeId:n})),update:(s,c)=>o(g2e({scopeId:r,sourceId:s,actorScopeId:n,payload:c})),remove:s=>o(S2e({scopeId:r,sourceId:s})).pipe(fb.map(c=>c.removed)),inspection:{get:s=>o(PAe({scopeId:r,sourceId:s})),tool:({sourceId:s,toolPath:c})=>o(OAe({scopeId:r,sourceId:s,toolPath:c})),discover:({sourceId:s,payload:c})=>o(NAe({scopeId:r,sourceId:s,payload:c}))},oauthClients:{list:s=>i(c=>c.listScopeOauthClients({scopeId:r,providerKey:s})),create:s=>i(c=>c.createScopeOauthClient({scopeId:r,providerKey:s.providerKey,label:s.label,oauthClient:s.oauthClient})),remove:s=>i(c=>c.removeScopeOauthClient({scopeId:r,oauthClientId:s}))},providerGrants:{remove:s=>i(c=>c.removeProviderAuthGrant({scopeId:r,grantId:s}))}},oauth:{startSourceAuth:s=>i(c=>c.startSourceOAuthSession({...s,scopeId:r,actorScopeId:n})),completeSourceAuth:({state:s,code:c,error:p,errorDescription:d})=>i(f=>f.completeSourceOAuthSession({state:s,code:c,error:p,errorDescription:d})),completeProviderCallback:s=>i(c=>c.completeProviderOauthCallback({...s,scopeId:s.scopeId??r,actorScopeId:s.actorScopeId??n}))},executions:{create:s=>o(KAe({scopeId:r,payload:s,createdByScopeId:n})),get:s=>o(GAe({scopeId:r,executionId:s})),resume:(s,c)=>o(HAe({scopeId:r,executionId:s,payload:c,resumedByScopeId:n}))}}},aX=e=>fb.map(e.backend.createRuntime({executionResolver:e.executionResolver,createInternalToolMap:e.createInternalToolMap,resolveSecretMaterial:e.resolveSecretMaterial,getLocalServerBaseUrl:e.getLocalServerBaseUrl,customCodeExecutor:e.customCodeExecutor}),XDt);var YDt=e=>{let t=r=>sX.runPromise(r);return{installation:e.installation,scopeId:e.scopeId,actorScopeId:e.actorScopeId,resolutionScopeIds:e.resolutionScopeIds,close:()=>e.close(),local:{installation:()=>t(e.local.installation()),config:()=>t(e.local.config()),credentials:{get:r=>t(e.local.credentials.get(r)),submit:r=>t(e.local.credentials.submit(r)),complete:r=>t(e.local.credentials.complete(r))}},secrets:{list:()=>t(e.secrets.list()),create:r=>t(e.secrets.create(r)),update:r=>t(e.secrets.update(r)),remove:r=>t(e.secrets.remove(r))},policies:{list:()=>t(e.policies.list()),create:r=>t(e.policies.create(r)),get:r=>t(e.policies.get(r)),update:(r,n)=>t(e.policies.update(r,n)),remove:r=>t(e.policies.remove(r))},sources:{add:(r,n)=>t(e.sources.add(r,n)),connect:r=>t(e.sources.connect(r)),connectBatch:r=>t(e.sources.connectBatch(r)),discover:r=>t(e.sources.discover(r)),list:()=>t(e.sources.list()),create:r=>t(e.sources.create(r)),get:r=>t(e.sources.get(r)),update:(r,n)=>t(e.sources.update(r,n)),remove:r=>t(e.sources.remove(r)),inspection:{get:r=>t(e.sources.inspection.get(r)),tool:r=>t(e.sources.inspection.tool(r)),discover:r=>t(e.sources.inspection.discover(r))},oauthClients:{list:r=>t(e.sources.oauthClients.list(r)),create:r=>t(e.sources.oauthClients.create(r)),remove:r=>t(e.sources.oauthClients.remove(r))},providerGrants:{remove:r=>t(e.sources.providerGrants.remove(r))}},oauth:{startSourceAuth:r=>t(e.oauth.startSourceAuth(r)),completeSourceAuth:r=>t(e.oauth.completeSourceAuth(r)),completeProviderCallback:r=>t(e.oauth.completeProviderCallback(r))},executions:{create:r=>t(e.executions.create(r)),get:r=>t(e.executions.get(r)),resume:(r,n)=>t(e.executions.resume(r,n))}}},cX=async e=>YDt(await sX.runPromise(aX(e)));import{FileSystem as PIe}from"@effect/platform";import{NodeFileSystem as oIt}from"@effect/platform-node";import*as Ki from"effect/Effect";import{homedir as TI}from"node:os";import{basename as lAt,dirname as uAt,isAbsolute as pAt,join as va,resolve as wS}from"node:path";import{FileSystem as gb}from"@effect/platform";function HF(e,t=!1){let r=e.length,n=0,o="",i=0,a=16,s=0,c=0,p=0,d=0,f=0;function m(T,k){let F=0,O=0;for(;F=48&&$<=57)O=O*16+$-48;else if($>=65&&$<=70)O=O*16+$-65+10;else if($>=97&&$<=102)O=O*16+$-97+10;else break;n++,F++}return F=r){T+=e.substring(k,n),f=2;break}let F=e.charCodeAt(n);if(F===34){T+=e.substring(k,n),n++;break}if(F===92){if(T+=e.substring(k,n),n++,n>=r){f=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+=` +`;break;case 114:T+="\r";break;case 116:T+=" ";break;case 117:let $=m(4,!0);$>=0?T+=String.fromCharCode($):f=4;break;default:f=5}k=n;continue}if(F>=0&&F<=31)if(bI(F)){T+=e.substring(k,n),f=2;break}else f=6;n++}return T}function b(){if(o="",f=0,i=n,c=s,d=p,n>=r)return i=r,a=17;let T=e.charCodeAt(n);if(lX(T)){do n++,o+=String.fromCharCode(T),T=e.charCodeAt(n);while(lX(T));return a=15}if(bI(T))return n++,o+=String.fromCharCode(T),T===13&&e.charCodeAt(n)===10&&(n++,o+=` +`),s++,p=n,a=14;switch(T){case 123:return n++,a=1;case 125:return n++,a=2;case 91:return n++,a=3;case 93:return n++,a=4;case 58:return n++,a=6;case 44:return n++,a=5;case 34:return n++,o=S(),a=10;case 47:let k=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n=12&&T<=15);return T}return{setPosition:y,getPosition:()=>n,scan:t?I:b,getToken:()=>a,getTokenValue:()=>o,getTokenOffset:()=>i,getTokenLength:()=>n-i,getTokenStartLine:()=>c,getTokenStartCharacter:()=>i-d,getTokenError:()=>f}}function lX(e){return e===32||e===9}function bI(e){return e===10||e===13}function mb(e){return e>=48&&e<=57}var v2e;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(v2e||(v2e={}));var tAt=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),hb=200,rAt={" ":{"\n":new Array(hb).fill(0).map((e,t)=>` +`+" ".repeat(t)),"\r":new Array(hb).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(hb).fill(0).map((e,t)=>`\r +`+" ".repeat(t))}," ":{"\n":new Array(hb).fill(0).map((e,t)=>` +`+" ".repeat(t)),"\r":new Array(hb).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(hb).fill(0).map((e,t)=>`\r +`+" ".repeat(t))}};var ZF;(function(e){e.DEFAULT={allowTrailingComma:!1}})(ZF||(ZF={}));function b2e(e,t=[],r=ZF.DEFAULT){let n=null,o=[],i=[];function a(c){Array.isArray(o)?o.push(c):n!==null&&(o[n]=c)}return x2e(e,{onObjectBegin:()=>{let c={};a(c),i.push(o),o=c,n=null},onObjectProperty:c=>{n=c},onObjectEnd:()=>{o=i.pop()},onArrayBegin:()=>{let c=[];a(c),i.push(o),o=c,n=null},onArrayEnd:()=>{o=i.pop()},onLiteralValue:a,onError:(c,p,d)=>{t.push({error:c,offset:p,length:d})}},r),o[0]}function x2e(e,t,r=ZF.DEFAULT){let n=HF(e,!1),o=[],i=0;function a(me){return me?()=>i===0&&me(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function s(me){return me?xe=>i===0&&me(xe,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function c(me){return me?xe=>i===0&&me(xe,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>o.slice()):()=>!0}function p(me){return me?()=>{i>0?i++:me(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>o.slice())===!1&&(i=1)}:()=>!0}function d(me){return me?()=>{i>0&&i--,i===0&&me(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:()=>!0}let f=p(t.onObjectBegin),m=c(t.onObjectProperty),y=d(t.onObjectEnd),g=p(t.onArrayBegin),S=d(t.onArrayEnd),b=c(t.onLiteralValue),E=s(t.onSeparator),I=a(t.onComment),T=s(t.onError),k=r&&r.disallowComments,F=r&&r.allowTrailingComma;function O(){for(;;){let me=n.scan();switch(n.getTokenError()){case 4:$(14);break;case 5:$(15);break;case 3:$(13);break;case 1:k||$(11);break;case 2:$(12);break;case 6:$(16);break}switch(me){case 12:case 13:k?$(10):I();break;case 16:$(1);break;case 15:case 14:break;default:return me}}}function $(me,xe=[],Rt=[]){if(T(me),xe.length+Rt.length>0){let Jt=n.getToken();for(;Jt!==17;){if(xe.indexOf(Jt)!==-1){O();break}else if(Rt.indexOf(Jt)!==-1)break;Jt=O()}}}function N(me){let xe=n.getTokenValue();return me?b(xe):(m(xe),o.push(xe)),O(),!0}function U(){switch(n.getToken()){case 11:let me=n.getTokenValue(),xe=Number(me);isNaN(xe)&&($(2),xe=0),b(xe);break;case 7:b(null);break;case 8:b(!0);break;case 9:b(!1);break;default:return!1}return O(),!0}function ge(){return n.getToken()!==10?($(3,[],[2,5]),!1):(N(!1),n.getToken()===6?(E(":"),O(),Je()||$(4,[],[2,5])):$(5,[],[2,5]),o.pop(),!0)}function Te(){f(),O();let me=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(me||$(4,[],[]),E(","),O(),n.getToken()===2&&F)break}else me&&$(6,[],[]);ge()||$(4,[],[2,5]),me=!0}return y(),n.getToken()!==2?$(7,[2],[]):O(),!0}function ke(){g(),O();let me=!0,xe=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(xe||$(4,[],[]),E(","),O(),n.getToken()===4&&F)break}else xe&&$(6,[],[]);me?(o.push(0),me=!1):o[o.length-1]++,Je()||$(4,[],[4,5]),xe=!0}return S(),me||o.pop(),n.getToken()!==4?$(8,[4],[]):O(),!0}function Je(){switch(n.getToken()){case 3:return ke();case 1:return Te();case 10:return N(!0);default:return U()}}return O(),n.getToken()===17?r.allowEmptyContent?!0:($(4,[],[]),!1):Je()?(n.getToken()!==17&&$(9,[],[]),!0):($(4,[],[]),!1)}var E2e;(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"})(E2e||(E2e={}));var T2e;(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"})(T2e||(T2e={}));var A2e=b2e;var D2e;(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"})(D2e||(D2e={}));function I2e(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return""}import*as Ti from"effect/Effect";import*as L2e from"effect/Schema";import*as Sc from"effect/Data";var Yo=e=>e instanceof Error?e.message:String(e),gc=class extends Sc.TaggedError("LocalFileSystemError"){},ey=class extends Sc.TaggedError("LocalExecutorConfigDecodeError"){},WF=class extends Sc.TaggedError("LocalWorkspaceStateDecodeError"){},w2e=class extends Sc.TaggedError("LocalSourceArtifactDecodeError"){},QF=class extends Sc.TaggedError("LocalToolTranspileError"){},xI=class extends Sc.TaggedError("LocalToolImportError"){},ty=class extends Sc.TaggedError("LocalToolDefinitionError"){},XF=class extends Sc.TaggedError("LocalToolPathConflictError"){},k2e=class extends Sc.TaggedError("RuntimeLocalWorkspaceUnavailableError"){},C2e=class extends Sc.TaggedError("RuntimeLocalWorkspaceMismatchError"){},P2e=class extends Sc.TaggedError("LocalConfiguredSourceNotFoundError"){},O2e=class extends Sc.TaggedError("LocalSourceArtifactMissingError"){},N2e=class extends Sc.TaggedError("LocalUnsupportedSourceKindError"){};var $2e=L2e.decodeUnknownSync(Mce),dAt=e=>`${JSON.stringify(e,null,2)} +`,Sb=e=>{let t=e.path.trim();return t.startsWith("~/")?va(TI(),t.slice(2)):t==="~"?TI():pAt(t)?t:wS(e.scopeRoot,t)},uX="executor.jsonc",EI=".executor",_At="EXECUTOR_CONFIG_DIR",fAt="EXECUTOR_STATE_DIR",ry=(e,t)=>r=>new gc({message:`Failed to ${t} ${e}: ${Yo(r)}`,action:t,path:e,details:Yo(r)}),yb=e=>{let t=e?.trim();return t&&t.length>0?t:void 0},mAt=(e={})=>{let t=e.env??process.env,r=e.platform??process.platform,n=e.homeDirectory??TI(),o=yb(t[_At]);return o||(r==="win32"?va(yb(t.LOCALAPPDATA)??va(n,"AppData","Local"),"Executor"):r==="darwin"?va(n,"Library","Application Support","Executor"):va(yb(t.XDG_CONFIG_HOME)??va(n,".config"),"executor"))},hAt=(e={})=>{let t=e.env??process.env,r=e.platform??process.platform,n=e.homeDirectory??TI(),o=yb(t[fAt]);return o||(r==="win32"?va(yb(t.LOCALAPPDATA)??va(n,"AppData","Local"),"Executor","State"):r==="darwin"?va(n,"Library","Application Support","Executor","State"):va(yb(t.XDG_STATE_HOME)??va(n,".local","state"),"executor"))},yAt=(e={})=>{let t=mAt({env:e.env,platform:e.platform,homeDirectory:e.homeDirectory??TI()});return[va(t,uX)]},gAt=(e={})=>Ti.gen(function*(){let t=yield*gb.FileSystem,r=yAt(e);for(let n of r)if(yield*t.exists(n).pipe(Ti.mapError(ry(n,"check config path"))))return n;return r[0]}),SAt=(e={})=>hAt(e),F2e=(e,t)=>{let r=e.split(` `);return t.map(n=>{let o=e.slice(0,n.offset).split(` -`),i=o.length,a=o[o.length-1]?.length??0,s=r[i-1],c=`line ${i}, column ${a+1}`,p=DAe(n.error);return s?`${p} at ${c} +`),i=o.length,a=o[o.length-1]?.length??0,s=r[i-1],c=`line ${i}, column ${a+1}`,p=I2e(n.error);return s?`${p} at ${c} ${s}`:`${p} at ${c}`}).join(` -`)},g2t=e=>{let t=[];try{let r=TAe(e.content,t,{allowTrailingComma:!0});if(t.length>0)throw new Wh({message:`Invalid executor config at ${e.path}: ${OAe(e.content,t)}`,path:e.path,details:OAe(e.content,t)});return RAe(r)}catch(r){throw r instanceof Wh?r:new Wh({message:`Invalid executor config at ${e.path}: ${Yo(r)}`,path:e.path,details:Yo(r)})}},S2t=(e,t)=>{if(!(!e&&!t))return{...e,...t}},v2t=(e,t)=>{if(!(!e&&!t))return{...e,...t}},b2t=(e,t)=>{if(!(!e&&!t))return{...e,...t}},x2t=(e,t)=>!e&&!t?null:RAe({runtime:t?.runtime??e?.runtime,workspace:{...e?.workspace,...t?.workspace},sources:S2t(e?.sources,t?.sources),policies:v2t(e?.policies,t?.policies),secrets:{providers:b2t(e?.secrets?.providers,t?.secrets?.providers),defaults:{...e?.secrets?.defaults,...t?.secrets?.defaults}}}),E2t=e=>Ti.gen(function*(){let t=yield*hb.FileSystem,r=va(e,bw,cX);return yield*t.exists(r).pipe(Ti.mapError(Xh(r,"check project config path"))),r}),T2t=e=>Ti.gen(function*(){let t=yield*hb.FileSystem,r=va(e,bw,cX);return yield*t.exists(r).pipe(Ti.mapError(Xh(r,"check project config path")))}),D2t=e=>Ti.gen(function*(){let t=yield*hb.FileSystem,r=TS(e),n=null,o=null;for(;;){if(n===null&&(yield*T2t(r))&&(n=r),o===null){let a=va(r,".git");(yield*t.exists(a).pipe(Ti.mapError(Xh(a,"check git root"))))&&(o=r)}let i=c2t(r);if(i===r)break;r=i}return n??o??TS(e)}),QF=(e={})=>Ti.gen(function*(){let t=TS(e.cwd??process.cwd()),r=TS(e.workspaceRoot??(yield*D2t(t))),n=s2t(r)||"workspace",o=yield*E2t(r),i=TS(e.homeConfigPath??(yield*h2t())),a=TS(e.homeStateDirectory??y2t());return{cwd:t,workspaceRoot:r,workspaceName:n,configDirectory:va(r,bw),projectConfigPath:o,homeConfigPath:i,homeStateDirectory:a,artifactsDirectory:va(r,bw,"artifacts"),stateDirectory:va(r,bw,"state")}}),NAe=e=>Ti.gen(function*(){let t=yield*hb.FileSystem;if(!(yield*t.exists(e).pipe(Ti.mapError(Xh(e,"check config path")))))return null;let n=yield*t.readFileString(e,"utf8").pipe(Ti.mapError(Xh(e,"read config")));return yield*Ti.try({try:()=>g2t({path:e,content:n}),catch:o=>o instanceof Wh?o:new Wh({message:`Invalid executor config at ${e}: ${Yo(o)}`,path:e,details:Yo(o)})})}),XF=e=>Ti.gen(function*(){let[t,r]=yield*Ti.all([NAe(e.homeConfigPath),NAe(e.projectConfigPath)]);return{config:x2t(t,r),homeConfig:t,projectConfig:r,homeConfigPath:e.homeConfigPath,projectConfigPath:e.projectConfigPath}}),YF=e=>Ti.gen(function*(){let t=yield*hb.FileSystem;yield*t.makeDirectory(e.context.configDirectory,{recursive:!0}).pipe(Ti.mapError(Xh(e.context.configDirectory,"create config directory"))),yield*t.writeFileString(e.context.projectConfigPath,u2t(e.config)).pipe(Ti.mapError(Xh(e.context.projectConfigPath,"write config")))});import{randomUUID as k2t}from"node:crypto";import{dirname as jAe,join as C2t}from"node:path";import{FileSystem as pX}from"@effect/platform";import{NodeFileSystem as LXt}from"@effect/platform-node";import*as Ji from"effect/Effect";import*as tn from"effect/Option";import*as Va from"effect/Schema";import{createHash as A2t}from"node:crypto";import*as MAe from"effect/Effect";var LAe=hn.make("acc_local_default"),w2t=e=>A2t("sha256").update(e).digest("hex").slice(0,16),I2t=e=>e.replaceAll("\\","/"),$Ae=e=>hn.make(`ws_local_${w2t(I2t(e.workspaceRoot))}`),Ew=e=>({actorScopeId:LAe,scopeId:$Ae(e),resolutionScopeIds:[$Ae(e),LAe]}),Tw=e=>MAe.succeed(Ew(e)),eR=e=>Tw(e.context);var BAe=1,P2t="executor-state.json",O2t=Va.Struct({version:Va.Literal(BAe),authArtifacts:Va.Array(Sce),authLeases:Va.Array(Pce),sourceOauthClients:Va.Array(Oce),scopeOauthClients:Va.Array(Nce),providerAuthGrants:Va.Array(Fce),sourceAuthSessions:Va.Array(Tce),secretMaterials:Va.Array(Rce),executions:Va.Array(ZB),executionInteractions:Va.Array(WB),executionSteps:Va.Array(Bce)}),N2t=Va.decodeUnknown(O2t),F2t=()=>({version:BAe,authArtifacts:[],authLeases:[],sourceOauthClients:[],scopeOauthClients:[],providerAuthGrants:[],sourceAuthSessions:[],secretMaterials:[],executions:[],executionInteractions:[],executionSteps:[]}),En=e=>JSON.parse(JSON.stringify(e)),R2t=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null,uX=e=>{if(Array.isArray(e)){let o=!1;return{value:e.map(a=>{let s=uX(a);return o=o||s.migrated,s.value}),migrated:o}}let t=R2t(e);if(t===null)return{value:e,migrated:!1};let r=!1,n={};for(let[o,i]of Object.entries(t)){let a=o;o==="workspaceId"?(a="scopeId",r=!0):o==="actorAccountId"?(a="actorScopeId",r=!0):o==="createdByAccountId"?(a="createdByScopeId",r=!0):o==="workspaceOauthClients"&&(a="scopeOauthClients",r=!0);let s=uX(i);r=r||s.migrated,n[a]=s.value}return{value:n,migrated:r}},Af=(e,t)=>r=>new gc({message:`Failed to ${t} ${e}: ${Yo(r)}`,action:t,path:e,details:Yo(r)}),Dw=(e,t)=>(e??null)===(t??null),Df=e=>[...e].sort((t,r)=>t.updatedAt-r.updatedAt||t.id.localeCompare(r.id)),lX=e=>[...e].sort((t,r)=>r.updatedAt-t.updatedAt||r.id.localeCompare(t.id)),tR=e=>C2t(e.homeStateDirectory,"workspaces",Ew(e).scopeId,P2t),L2t=(e,t)=>t.pipe(Ji.provideService(pX.FileSystem,e));var $2t=e=>Ji.gen(function*(){let t=yield*pX.FileSystem,r=tR(e);if(!(yield*t.exists(r).pipe(Ji.mapError(Af(r,"check executor state path")))))return F2t();let o=yield*t.readFileString(r,"utf8").pipe(Ji.mapError(Af(r,"read executor state"))),i=yield*Ji.try({try:()=>JSON.parse(o),catch:Af(r,"parse executor state")}),a=uX(i),s=yield*N2t(a.value).pipe(Ji.mapError(Af(r,"decode executor state")));return a.migrated&&(yield*qAe(e,s)),s}),qAe=(e,t)=>Ji.gen(function*(){let r=yield*pX.FileSystem,n=tR(e),o=`${n}.${k2t()}.tmp`;yield*r.makeDirectory(jAe(n),{recursive:!0}).pipe(Ji.mapError(Af(jAe(n),"create executor state directory"))),yield*r.writeFileString(o,`${JSON.stringify(t,null,2)} -`,{mode:384}).pipe(Ji.mapError(Af(o,"write executor state"))),yield*r.rename(o,n).pipe(Ji.mapError(Af(n,"replace executor state")))});var M2t=(e,t)=>{let r=null,n=Promise.resolve(),o=c=>Ji.runPromise(L2t(t,c)),i=async()=>(r!==null||(r=await o($2t(e))),r);return{read:c=>Ji.tryPromise({try:async()=>(await n,c(En(await i()))),catch:Af(tR(e),"read executor state")}),mutate:c=>Ji.tryPromise({try:async()=>{let p,d=null;if(n=n.then(async()=>{try{let f=En(await i()),m=await c(f);r=m.state,p=m.value,await o(qAe(e,r))}catch(f){d=f}}),await n,d!==null)throw d;return p},catch:Af(tR(e),"write executor state")})}},j2t=(e,t)=>{let r=M2t(e,t);return{authArtifacts:{listByScopeId:n=>r.read(o=>Df(o.authArtifacts.filter(i=>i.scopeId===n))),listByScopeAndSourceId:n=>r.read(o=>Df(o.authArtifacts.filter(i=>i.scopeId===n.scopeId&&i.sourceId===n.sourceId))),getByScopeSourceAndActor:n=>r.read(o=>{let i=o.authArtifacts.find(a=>a.scopeId===n.scopeId&&a.sourceId===n.sourceId&&a.slot===n.slot&&Dw(a.actorScopeId,n.actorScopeId));return i?tn.some(En(i)):tn.none()}),upsert:n=>r.mutate(o=>{let i=o.authArtifacts.filter(a=>!(a.scopeId===n.scopeId&&a.sourceId===n.sourceId&&a.slot===n.slot&&Dw(a.actorScopeId,n.actorScopeId)));return i.push(En(n)),{state:{...o,authArtifacts:i},value:void 0}}),removeByScopeSourceAndActor:n=>r.mutate(o=>{let i=o.authArtifacts.filter(a=>a.scopeId!==n.scopeId||a.sourceId!==n.sourceId||!Dw(a.actorScopeId,n.actorScopeId)||n.slot!==void 0&&a.slot!==n.slot);return{state:{...o,authArtifacts:i},value:i.length!==o.authArtifacts.length}}),removeByScopeAndSourceId:n=>r.mutate(o=>{let i=o.authArtifacts.filter(a=>a.scopeId!==n.scopeId||a.sourceId!==n.sourceId);return{state:{...o,authArtifacts:i},value:o.authArtifacts.length-i.length}})},authLeases:{listAll:()=>r.read(n=>Df(n.authLeases)),getByAuthArtifactId:n=>r.read(o=>{let i=o.authLeases.find(a=>a.authArtifactId===n);return i?tn.some(En(i)):tn.none()}),upsert:n=>r.mutate(o=>{let i=o.authLeases.filter(a=>a.authArtifactId!==n.authArtifactId);return i.push(En(n)),{state:{...o,authLeases:i},value:void 0}}),removeByAuthArtifactId:n=>r.mutate(o=>{let i=o.authLeases.filter(a=>a.authArtifactId!==n);return{state:{...o,authLeases:i},value:i.length!==o.authLeases.length}})},sourceOauthClients:{getByScopeSourceAndProvider:n=>r.read(o=>{let i=o.sourceOauthClients.find(a=>a.scopeId===n.scopeId&&a.sourceId===n.sourceId&&a.providerKey===n.providerKey);return i?tn.some(En(i)):tn.none()}),upsert:n=>r.mutate(o=>{let i=o.sourceOauthClients.filter(a=>!(a.scopeId===n.scopeId&&a.sourceId===n.sourceId&&a.providerKey===n.providerKey));return i.push(En(n)),{state:{...o,sourceOauthClients:i},value:void 0}}),removeByScopeAndSourceId:n=>r.mutate(o=>{let i=o.sourceOauthClients.filter(a=>a.scopeId!==n.scopeId||a.sourceId!==n.sourceId);return{state:{...o,sourceOauthClients:i},value:o.sourceOauthClients.length-i.length}})},scopeOauthClients:{listByScopeAndProvider:n=>r.read(o=>Df(o.scopeOauthClients.filter(i=>i.scopeId===n.scopeId&&i.providerKey===n.providerKey))),getById:n=>r.read(o=>{let i=o.scopeOauthClients.find(a=>a.id===n);return i?tn.some(En(i)):tn.none()}),upsert:n=>r.mutate(o=>{let i=o.scopeOauthClients.filter(a=>a.id!==n.id);return i.push(En(n)),{state:{...o,scopeOauthClients:i},value:void 0}}),removeById:n=>r.mutate(o=>{let i=o.scopeOauthClients.filter(a=>a.id!==n);return{state:{...o,scopeOauthClients:i},value:i.length!==o.scopeOauthClients.length}})},providerAuthGrants:{listByScopeId:n=>r.read(o=>Df(o.providerAuthGrants.filter(i=>i.scopeId===n))),listByScopeActorAndProvider:n=>r.read(o=>Df(o.providerAuthGrants.filter(i=>i.scopeId===n.scopeId&&i.providerKey===n.providerKey&&Dw(i.actorScopeId,n.actorScopeId)))),getById:n=>r.read(o=>{let i=o.providerAuthGrants.find(a=>a.id===n);return i?tn.some(En(i)):tn.none()}),upsert:n=>r.mutate(o=>{let i=o.providerAuthGrants.filter(a=>a.id!==n.id);return i.push(En(n)),{state:{...o,providerAuthGrants:i},value:void 0}}),removeById:n=>r.mutate(o=>{let i=o.providerAuthGrants.filter(a=>a.id!==n);return{state:{...o,providerAuthGrants:i},value:i.length!==o.providerAuthGrants.length}})},sourceAuthSessions:{listAll:()=>r.read(n=>Df(n.sourceAuthSessions)),listByScopeId:n=>r.read(o=>Df(o.sourceAuthSessions.filter(i=>i.scopeId===n))),getById:n=>r.read(o=>{let i=o.sourceAuthSessions.find(a=>a.id===n);return i?tn.some(En(i)):tn.none()}),getByState:n=>r.read(o=>{let i=o.sourceAuthSessions.find(a=>a.state===n);return i?tn.some(En(i)):tn.none()}),getPendingByScopeSourceAndActor:n=>r.read(o=>{let i=Df(o.sourceAuthSessions.filter(a=>a.scopeId===n.scopeId&&a.sourceId===n.sourceId&&a.status==="pending"&&Dw(a.actorScopeId,n.actorScopeId)&&(n.credentialSlot===void 0||a.credentialSlot===n.credentialSlot)))[0]??null;return i?tn.some(En(i)):tn.none()}),insert:n=>r.mutate(o=>({state:{...o,sourceAuthSessions:[...o.sourceAuthSessions,En(n)]},value:void 0})),update:(n,o)=>r.mutate(i=>{let a=null,s=i.sourceAuthSessions.map(c=>c.id!==n?c:(a={...c,...En(o)},a));return{state:{...i,sourceAuthSessions:s},value:a?tn.some(En(a)):tn.none()}}),upsert:n=>r.mutate(o=>{let i=o.sourceAuthSessions.filter(a=>a.id!==n.id);return i.push(En(n)),{state:{...o,sourceAuthSessions:i},value:void 0}}),removeByScopeAndSourceId:(n,o)=>r.mutate(i=>{let a=i.sourceAuthSessions.filter(s=>s.scopeId!==n||s.sourceId!==o);return{state:{...i,sourceAuthSessions:a},value:a.length!==i.sourceAuthSessions.length}})},secretMaterials:{getById:n=>r.read(o=>{let i=o.secretMaterials.find(a=>a.id===n);return i?tn.some(En(i)):tn.none()}),listAll:()=>r.read(n=>lX(n.secretMaterials)),upsert:n=>r.mutate(o=>{let i=o.secretMaterials.filter(a=>a.id!==n.id);return i.push(En(n)),{state:{...o,secretMaterials:i},value:void 0}}),updateById:(n,o)=>r.mutate(i=>{let a=null,s=i.secretMaterials.map(c=>c.id!==n?c:(a={...c,...o.name!==void 0?{name:o.name}:{},...o.value!==void 0?{value:o.value}:{},updatedAt:Date.now()},a));return{state:{...i,secretMaterials:s},value:a?tn.some(En(a)):tn.none()}}),removeById:n=>r.mutate(o=>{let i=o.secretMaterials.filter(a=>a.id!==n);return{state:{...o,secretMaterials:i},value:i.length!==o.secretMaterials.length}})},executions:{getById:n=>r.read(o=>{let i=o.executions.find(a=>a.id===n);return i?tn.some(En(i)):tn.none()}),getByScopeAndId:(n,o)=>r.read(i=>{let a=i.executions.find(s=>s.scopeId===n&&s.id===o);return a?tn.some(En(a)):tn.none()}),insert:n=>r.mutate(o=>({state:{...o,executions:[...o.executions,En(n)]},value:void 0})),update:(n,o)=>r.mutate(i=>{let a=null,s=i.executions.map(c=>c.id!==n?c:(a={...c,...En(o)},a));return{state:{...i,executions:s},value:a?tn.some(En(a)):tn.none()}})},executionInteractions:{getById:n=>r.read(o=>{let i=o.executionInteractions.find(a=>a.id===n);return i?tn.some(En(i)):tn.none()}),listByExecutionId:n=>r.read(o=>lX(o.executionInteractions.filter(i=>i.executionId===n))),getPendingByExecutionId:n=>r.read(o=>{let i=lX(o.executionInteractions.filter(a=>a.executionId===n&&a.status==="pending"))[0]??null;return i?tn.some(En(i)):tn.none()}),insert:n=>r.mutate(o=>({state:{...o,executionInteractions:[...o.executionInteractions,En(n)]},value:void 0})),update:(n,o)=>r.mutate(i=>{let a=null,s=i.executionInteractions.map(c=>c.id!==n?c:(a={...c,...En(o)},a));return{state:{...i,executionInteractions:s},value:a?tn.some(En(a)):tn.none()}})},executionSteps:{getByExecutionAndSequence:(n,o)=>r.read(i=>{let a=i.executionSteps.find(s=>s.executionId===n&&s.sequence===o);return a?tn.some(En(a)):tn.none()}),listByExecutionId:n=>r.read(o=>[...o.executionSteps].filter(i=>i.executionId===n).sort((i,a)=>i.sequence-a.sequence||a.updatedAt-i.updatedAt)),insert:n=>r.mutate(o=>({state:{...o,executionSteps:[...o.executionSteps,En(n)]},value:void 0})),deleteByExecutionId:n=>r.mutate(o=>({state:{...o,executionSteps:o.executionSteps.filter(i=>i.executionId!==n)},value:void 0})),updateByExecutionAndSequence:(n,o,i)=>r.mutate(a=>{let s=null,c=a.executionSteps.map(p=>p.executionId!==n||p.sequence!==o?p:(s={...p,...En(i)},s));return{state:{...a,executionSteps:c},value:s?tn.some(En(s)):tn.none()}})}}},UAe=(e,t)=>({executorState:j2t(e,t),close:async()=>{}});import{randomUUID as mX}from"node:crypto";import{spawn as JAe}from"node:child_process";import{isAbsolute as B2t}from"node:path";import{FileSystem as hX}from"@effect/platform";import{NodeFileSystem as q2t}from"@effect/platform-node";import*as yt from"effect/Effect";import*as yX from"effect/Layer";import*as rR from"effect/Option";var gX="env",U2t="params",wf="keychain",Pd="local",DS=e=>e instanceof Error?e:new Error(String(e)),z2t="executor",gb=5e3,KAe="DANGEROUSLY_ALLOW_ENV_SECRETS",GAe="EXECUTOR_SECRET_STORE_PROVIDER",V2t="EXECUTOR_KEYCHAIN_SERVICE_NAME",Sb=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},J2t=e=>{let t=Sb(e)?.toLowerCase();return t==="1"||t==="true"||t==="yes"},SX=e=>{let t=Sb(e)?.toLowerCase();return t===wf?wf:t===Pd?Pd:null},K2t=e=>e??J2t(process.env[KAe]),G2t=e=>Sb(e)??Sb(process.env[V2t])??z2t,Aw=e=>{let t=e?.trim();return t&&t.length>0?t:null},HAe=e=>({id:e.id,providerId:e.providerId,name:e.name,purpose:e.purpose,createdAt:e.createdAt,updatedAt:e.updatedAt}),H2t=(e=process.platform)=>e==="darwin"?"security":e==="linux"?"secret-tool":null,AS=e=>yt.tryPromise({try:()=>new Promise((t,r)=>{let n=JAe(e.command,[...e.args],{stdio:"pipe",env:e.env}),o="",i="",a=!1,s=e.timeoutMs===void 0?null:setTimeout(()=>{a||(a=!0,n.kill("SIGKILL"),r(new Error(`${e.operation}: '${e.command}' timed out after ${e.timeoutMs}ms`)))},e.timeoutMs);n.stdout.on("data",c=>{o+=c.toString("utf8")}),n.stderr.on("data",c=>{i+=c.toString("utf8")}),n.on("error",c=>{a||(a=!0,s&&clearTimeout(s),r(new Error(`${e.operation}: failed spawning '${e.command}': ${c.message}`)))}),n.on("close",c=>{a||(a=!0,s&&clearTimeout(s),t({exitCode:c??0,stdout:o,stderr:i}))}),e.stdin!==void 0&&n.stdin.write(e.stdin),n.stdin.end()}),catch:t=>t instanceof Error?t:new Error(`${e.operation}: command execution failed: ${String(t)}`)}),ww=e=>{if(e.result.exitCode===0)return yt.succeed(e.result);let t=Aw(e.result.stderr)??Aw(e.result.stdout)??"command returned non-zero exit code";return yt.fail(Ne("local/secret-material-providers",`${e.operation}: ${e.message}: ${t}`))},dX=new Map,Z2t=e=>yt.tryPromise({try:async()=>{let t=dX.get(e);if(t)return t;let r=new Promise(o=>{let i=JAe(e,["--help"],{stdio:"ignore"}),a=setTimeout(()=>{i.kill("SIGKILL"),o(!1)},2e3);i.on("error",()=>{clearTimeout(a),o(!1)}),i.on("close",()=>{clearTimeout(a),o(!0)})});dX.set(e,r);let n=await r;return n||dX.delete(e),n},catch:t=>t instanceof Error?t:new Error(`command.exists: failed checking '${e}': ${String(t)}`)}),W2t=(e=process.platform)=>{let t=H2t(e);return t===null?yt.succeed(!1):Z2t(t)},ZAe=(e={})=>{let t=Pd,r=e.storeProviderId??SX((e.env??process.env)[GAe]);return r?yt.succeed(r):(e.platform??process.platform)!=="darwin"?yt.succeed(t):W2t(e.platform).pipe(yt.map(n=>n?wf:t),yt.catchAll(()=>yt.succeed(t)))},fX=e=>yt.gen(function*(){let t=Bp.make(e.id),r=yield*e.runtime.executorState.secretMaterials.getById(t);return rR.isNone(r)?yield*Ne("local/secret-material-providers",`${e.operation}: secret material not found: ${e.id}`):r.value}),WAe=e=>yt.gen(function*(){let t=Date.now(),r=Bp.make(`sec_${mX()}`);return yield*e.runtime.executorState.secretMaterials.upsert({id:r,providerId:e.providerId,handle:e.providerHandle,name:Sb(e.name),purpose:e.purpose,value:e.value,createdAt:t,updatedAt:t}),{providerId:e.providerId,handle:r}}),_X=e=>yt.gen(function*(){let t=yield*fX({id:e.ref.handle,runtime:e.runtime,operation:e.operation});return t.providerId!==wf?yield*Ne("local/secret-material-providers",`${e.operation}: secret ${t.id} is stored in provider '${t.providerId}', not '${wf}'`):{providerHandle:t.handle,material:t}}),zAe=e=>{switch(process.platform){case"darwin":return AS({command:"security",args:["find-generic-password","-a",e.providerHandle,"-s",e.runtime.keychainServiceName,"-w"],operation:"keychain.get",timeoutMs:gb}).pipe(yt.flatMap(t=>ww({result:t,operation:"keychain.get",message:"Failed loading secret from macOS keychain"})),yt.map(t=>t.stdout.trimEnd()));case"linux":return AS({command:"secret-tool",args:["lookup","service",e.runtime.keychainServiceName,"account",e.providerHandle],operation:"keychain.get",timeoutMs:gb}).pipe(yt.flatMap(t=>ww({result:t,operation:"keychain.get",message:"Failed loading secret from desktop keyring"})),yt.map(t=>t.stdout.trimEnd()));default:return yt.fail(Ne("local/secret-material-providers",`keychain.get: keychain provider is unsupported on platform '${process.platform}'`))}},VAe=e=>{let t=Sb(e.name);switch(process.platform){case"darwin":return AS({command:"security",args:["add-generic-password","-a",e.providerHandle,"-s",e.runtime.keychainServiceName,"-w",e.value,...t?["-l",t]:[],"-U"],operation:"keychain.put",timeoutMs:gb}).pipe(yt.flatMap(r=>ww({result:r,operation:"keychain.put",message:"Failed storing secret in macOS keychain"})));case"linux":return AS({command:"secret-tool",args:["store","--label",t??e.runtime.keychainServiceName,"service",e.runtime.keychainServiceName,"account",e.providerHandle],stdin:e.value,operation:"keychain.put",timeoutMs:gb}).pipe(yt.flatMap(r=>ww({result:r,operation:"keychain.put",message:"Failed storing secret in desktop keyring"})));default:return yt.fail(Ne("local/secret-material-providers",`keychain.put: keychain provider is unsupported on platform '${process.platform}'`))}},Q2t=e=>{switch(process.platform){case"darwin":return AS({command:"security",args:["delete-generic-password","-a",e.providerHandle,"-s",e.runtime.keychainServiceName],operation:"keychain.delete",timeoutMs:gb}).pipe(yt.map(t=>t.exitCode===0));case"linux":return AS({command:"secret-tool",args:["clear","service",e.runtime.keychainServiceName,"account",e.providerHandle],operation:"keychain.delete",timeoutMs:gb}).pipe(yt.map(t=>t.exitCode===0));default:return yt.fail(Ne("local/secret-material-providers",`keychain.delete: keychain provider is unsupported on platform '${process.platform}'`))}},X2t=()=>({resolve:({ref:e,context:t})=>{let r=Aw(t.params?.[e.handle]);return r===null?yt.fail(Ne("local/secret-material-providers",`Secret parameter ${e.handle} is not set`)):yt.succeed(r)},remove:()=>yt.succeed(!1)}),Y2t=()=>({resolve:({ref:e,runtime:t})=>{if(!t.dangerouslyAllowEnvSecrets)return yt.fail(Ne("local/secret-material-providers",`Env-backed secrets are disabled. Set ${KAe}=true to allow provider '${gX}'.`));let r=Aw(t.env[e.handle]);return r===null?yt.fail(Ne("local/secret-material-providers",`Environment variable ${e.handle} is not set`)):yt.succeed(r)},remove:()=>yt.succeed(!1)}),eAt=()=>({resolve:({ref:e,runtime:t})=>yt.gen(function*(){let r=yield*fX({id:e.handle,runtime:t,operation:"local.get"});return r.providerId!==Pd?yield*Ne("local/secret-material-providers",`local.get: secret ${r.id} is stored in provider '${r.providerId}', not '${Pd}'`):r.value===null?yield*Ne("local/secret-material-providers",`local.get: secret ${r.id} does not have a local value`):r.value}),store:({purpose:e,value:t,name:r,runtime:n})=>WAe({providerId:Pd,providerHandle:`local:${mX()}`,purpose:e,value:t,name:r,runtime:n}),update:({ref:e,name:t,value:r,runtime:n})=>yt.gen(function*(){let o=yield*fX({id:e.handle,runtime:n,operation:"local.update"});if(o.providerId!==Pd)return yield*Ne("local/secret-material-providers",`local.update: secret ${o.id} is stored in provider '${o.providerId}', not '${Pd}'`);if(t===void 0&&r===void 0)return HAe(o);let i=yield*n.executorState.secretMaterials.updateById(o.id,{...t!==void 0?{name:t}:{},...r!==void 0?{value:r}:{}});return rR.isNone(i)?yield*Ne("local/secret-material-providers",`local.update: secret material not found: ${o.id}`):{id:i.value.id,providerId:i.value.providerId,name:i.value.name,purpose:i.value.purpose,createdAt:i.value.createdAt,updatedAt:i.value.updatedAt}}),remove:({ref:e,runtime:t})=>yt.gen(function*(){let r=Bp.make(e.handle);return yield*t.executorState.secretMaterials.removeById(r)})}),tAt=()=>({resolve:({ref:e,runtime:t})=>yt.gen(function*(){let r=yield*_X({ref:e,runtime:t,operation:"keychain.get"});return yield*zAe({providerHandle:r.providerHandle,runtime:t})}),store:({purpose:e,value:t,name:r,runtime:n})=>yt.gen(function*(){let o=mX();return yield*VAe({providerHandle:o,name:r,value:t,runtime:n}),yield*WAe({providerId:wf,providerHandle:o,purpose:e,value:null,name:r,runtime:n})}),update:({ref:e,name:t,value:r,runtime:n})=>yt.gen(function*(){let o=yield*_X({ref:e,runtime:n,operation:"keychain.update"});if(t===void 0&&r===void 0)return HAe(o.material);let i=t??o.material.name,a=r??(yield*zAe({providerHandle:o.providerHandle,runtime:n}));yield*VAe({providerHandle:o.providerHandle,name:i,value:a,runtime:n});let s=yield*n.executorState.secretMaterials.updateById(o.material.id,{name:i});return rR.isNone(s)?yield*Ne("local/secret-material-providers",`keychain.update: secret material not found: ${o.material.id}`):{id:s.value.id,providerId:s.value.providerId,name:s.value.name,purpose:s.value.purpose,createdAt:s.value.createdAt,updatedAt:s.value.updatedAt}}),remove:({ref:e,runtime:t})=>yt.gen(function*(){let r=yield*_X({ref:e,runtime:t,operation:"keychain.delete"});return(yield*Q2t({providerHandle:r.providerHandle,runtime:t}))?yield*t.executorState.secretMaterials.removeById(r.material.id):!1})}),nR=()=>new Map([[U2t,X2t()],[gX,Y2t()],[wf,tAt()],[Pd,eAt()]]),oR=e=>{let t=e.providers.get(e.providerId);return t?yt.succeed(t):yt.fail(Ne("local/secret-material-providers",`Unsupported secret provider: ${e.providerId}`))},iR=e=>({executorState:e.executorState,env:process.env,dangerouslyAllowEnvSecrets:K2t(e.dangerouslyAllowEnvSecrets),keychainServiceName:G2t(e.keychainServiceName),localConfig:e.localConfig??null,workspaceRoot:e.workspaceRoot??null}),rAt=(e,t)=>yt.gen(function*(){let r=yield*hX.FileSystem,n=yield*r.stat(e).pipe(yt.mapError(DS));if(n.type==="SymbolicLink"){if(!t)return!1;let o=yield*r.realPath(e).pipe(yt.mapError(DS));return(yield*r.stat(o).pipe(yt.mapError(DS))).type==="File"}return n.type==="File"}),nAt=(e,t)=>yt.gen(function*(){if(!t||t.length===0)return!0;let r=yield*hX.FileSystem,n=yield*r.realPath(e).pipe(yt.mapError(DS));for(let o of t){let i=yield*r.realPath(o).pipe(yt.mapError(DS));if(n===i||n.startsWith(`${i}/`))return!0}return!1}),oAt=e=>yt.gen(function*(){let t=yield*hX.FileSystem,r=yb({path:e.provider.path,scopeRoot:e.workspaceRoot}),n=yield*t.readFileString(r,"utf8").pipe(yt.mapError(DS));return(e.provider.mode??"singleValue")==="singleValue"?n.trim():yield*yt.try({try:()=>{let i=JSON.parse(n);if(e.ref.handle.startsWith("/")){let s=e.ref.handle.split("/").slice(1).map(p=>p.replaceAll("~1","/").replaceAll("~0","~")),c=i;for(let p of s){if(typeof c!="object"||c===null||!(p in c))throw new Error(`Secret path not found in ${r}: ${e.ref.handle}`);c=c[p]}if(typeof c!="string"||c.trim().length===0)throw new Error(`Secret path did not resolve to a string: ${e.ref.handle}`);return c}if(typeof i!="object"||i===null)throw new Error(`JSON secret provider must resolve to an object: ${r}`);let a=i[e.ref.handle];if(typeof a!="string"||a.trim().length===0)throw new Error(`Secret key not found in ${r}: ${e.ref.handle}`);return a},catch:DS})}),iAt=e=>yt.gen(function*(){let t=uw(e.ref.providerId);if(t===null)return yield*Ne("local/secret-material-providers",`Unsupported secret provider: ${e.ref.providerId}`);let r=e.runtime.localConfig?.secrets?.providers?.[t];if(!r)return yield*Ne("local/secret-material-providers",`Config secret provider "${t}" is not configured`);if(e.runtime.workspaceRoot===null)return yield*Ne("local/secret-material-providers",`Config secret provider "${t}" requires a workspace root`);if(r.source==="env"){let a=Aw(e.runtime.env[e.ref.handle]);return a===null?yield*Ne("local/secret-material-providers",`Environment variable ${e.ref.handle} is not set`):a}if(r.source==="file")return yield*oAt({provider:r,ref:e.ref,workspaceRoot:e.runtime.workspaceRoot});let n=r.command.trim();return B2t(n)?(yield*rAt(n,r.allowSymlinkCommand??!1))?(yield*nAt(n,r.trustedDirs))?yield*AS({command:n,args:[...r.args??[],e.ref.handle],env:{...e.runtime.env,...r.env},operation:`config-secret.get:${t}`}).pipe(yt.flatMap(a=>ww({result:a,operation:`config-secret.get:${t}`,message:"Failed resolving configured exec secret"})),yt.map(a=>a.stdout.trimEnd())):yield*Ne("local/secret-material-providers",`Exec secret provider command is outside trustedDirs: ${n}`):yield*Ne("local/secret-material-providers",`Exec secret provider command is not an allowed regular file: ${n}`):yield*Ne("local/secret-material-providers",`Exec secret provider command must be absolute: ${n}`)}),QAe=e=>{let t=nR(),r=iR(e);return({ref:n,context:o})=>yt.gen(function*(){let i=yield*oR({providers:t,providerId:n.providerId}).pipe(yt.catchAll(()=>uw(n.providerId)!==null?yt.succeed(null):yt.fail(Ne("local/secret-material-providers",`Unsupported secret provider: ${n.providerId}`))));return i===null?yield*iAt({ref:n,runtime:r}):yield*i.resolve({ref:n,context:o??{},runtime:r})}).pipe(yt.provide(q2t.layer))},XAe=e=>{let t=nR(),r=iR(e);return({purpose:n,value:o,name:i,providerId:a})=>yt.gen(function*(){let s=yield*ZAe({storeProviderId:SX(a)??void 0,env:r.env}),c=yield*oR({providers:t,providerId:s});return c.store?yield*c.store({purpose:n,value:o,name:i,runtime:r}):yield*Ne("local/secret-material-providers",`Secret provider ${s} does not support storing secret material`)})},YAe=e=>{let t=nR(),r=iR(e);return({ref:n,name:o,value:i})=>yt.gen(function*(){let a=yield*oR({providers:t,providerId:n.providerId});return a.update?yield*a.update({ref:n,name:o,value:i,runtime:r}):yield*Ne("local/secret-material-providers",`Secret provider ${n.providerId} does not support updating secret material`)})},ewe=e=>{let t=nR(),r=iR(e);return n=>yt.gen(function*(){let o=yield*oR({providers:t,providerId:n.providerId});return o.remove?yield*o.remove({ref:n,runtime:r}):!1})};var twe=()=>()=>{let e=SX(process.env[GAe]),t=[{id:Pd,name:"Local store",canStore:!0}];return(process.platform==="darwin"||process.platform==="linux")&&t.push({id:wf,name:process.platform==="darwin"?"macOS Keychain":"Desktop Keyring",canStore:process.platform==="darwin"||e===wf}),t.push({id:gX,name:"Environment variable",canStore:!1}),ZAe({storeProviderId:e??void 0}).pipe(yt.map(r=>({platform:process.platform,secretProviders:t,defaultSecretStoreProvider:r})))};import{join as aR}from"node:path";import{FileSystem as vX}from"@effect/platform";import*as Ja from"effect/Effect";import*as rwe from"effect/Option";import*as ca from"effect/Schema";var nwe=3,Iw=4,iYt=ca.Struct({version:ca.Literal(nwe),sourceId:Mn,catalogId:Rc,generatedAt:wt,revision:BT,snapshot:OT}),aYt=ca.Struct({version:ca.Literal(Iw),sourceId:Mn,catalogId:Rc,generatedAt:wt,revision:BT,snapshot:OT}),aAt=ca.Struct({version:ca.Literal(nwe),sourceId:Mn,catalogId:Rc,generatedAt:wt,revision:BT,snapshot:ca.Unknown}),sAt=ca.Struct({version:ca.Literal(Iw),sourceId:Mn,catalogId:Rc,generatedAt:wt,revision:BT,snapshot:ca.Unknown}),cAt=ca.decodeUnknownOption(ca.parseJson(ca.Union(sAt,aAt))),lAt=e=>e.version===Iw?e:{...e,version:Iw},uAt=e=>e,owe=e=>{let t=structuredClone(e),r=[];for(let[n,o]of Object.entries(t.snapshot.catalog.documents)){let i=o,a=o.native?.find(c=>c.kind==="source_document"&&typeof c.value=="string");if(!a||typeof a.value!="string")continue;r.push({documentId:n,blob:a,content:a.value});let s=(o.native??[]).filter(c=>c!==a);s.length>0?i.native=s:delete i.native}return{artifact:t,rawDocuments:r}},iwe=e=>{let t=structuredClone(e.artifact),r=uAt(t.snapshot.catalog.documents);for(let[n,o]of Object.entries(e.rawDocuments)){let i=r[n];if(!i)continue;let a=(i.native??[]).filter(s=>s.kind!=="source_document");i.native=[o,...a]}return t},pAt=e=>FT(JSON.stringify(e)),dAt=e=>FT(JSON.stringify(e.import)),_At=e=>{try{return F6(e)}catch{return null}},awe=e=>{let t=cAt(e);if(rwe.isNone(t))return null;let r=lAt(t.value),n=_At(r.snapshot);return n===null?null:{...r,snapshot:n}},wS=e=>{let t=EF(e.source),r=Date.now(),n=RT(e.syncResult),o=dAt(n),i=pAt(n),a=qTe({source:e.source,catalogId:t,revisionNumber:1,importMetadataJson:JSON.stringify(n.import),importMetadataHash:o,snapshotHash:i});return{version:Iw,sourceId:e.source.id,catalogId:t,generatedAt:r,revision:a,snapshot:n}};var ru=(e,t)=>r=>new gc({message:`Failed to ${t} ${e}: ${Yo(r)}`,action:t,path:e,details:Yo(r)}),bX=e=>aR(e.context.artifactsDirectory,"sources",`${e.sourceId}.json`),xX=e=>aR(e.context.artifactsDirectory,"sources",e.sourceId,"documents"),swe=e=>aR(xX(e),`${e.documentId}.txt`);var sR=e=>Ja.gen(function*(){let t=yield*vX.FileSystem,r=bX(e);if(!(yield*t.exists(r).pipe(Ja.mapError(ru(r,"check source artifact path")))))return null;let o=yield*t.readFileString(r,"utf8").pipe(Ja.mapError(ru(r,"read source artifact"))),i=awe(o);if(i===null)return null;let a={};for(let s of Object.keys(i.snapshot.catalog.documents)){let c=swe({context:e.context,sourceId:e.sourceId,documentId:s});if(!(yield*t.exists(c).pipe(Ja.mapError(ru(c,"check source document path")))))continue;let d=yield*t.readFileString(c,"utf8").pipe(Ja.mapError(ru(c,"read source document")));a[s]={sourceKind:i.snapshot.import.sourceKind,kind:"source_document",value:d}}return Object.keys(a).length>0?iwe({artifact:i,rawDocuments:a}):i}),cR=e=>Ja.gen(function*(){let t=yield*vX.FileSystem,r=aR(e.context.artifactsDirectory,"sources"),n=bX(e),o=xX(e),i=owe(e.artifact);if(yield*t.makeDirectory(r,{recursive:!0}).pipe(Ja.mapError(ru(r,"create source artifact directory"))),yield*t.remove(o,{recursive:!0,force:!0}).pipe(Ja.mapError(ru(o,"remove source document directory"))),i.rawDocuments.length>0){yield*t.makeDirectory(o,{recursive:!0}).pipe(Ja.mapError(ru(o,"create source document directory")));for(let a of i.rawDocuments){let s=swe({context:e.context,sourceId:e.sourceId,documentId:a.documentId});yield*t.writeFileString(s,a.content).pipe(Ja.mapError(ru(s,"write source document")))}}yield*t.writeFileString(n,`${JSON.stringify(i.artifact)} -`).pipe(Ja.mapError(ru(n,"write source artifact")))}),lR=e=>Ja.gen(function*(){let t=yield*vX.FileSystem,r=bX(e);(yield*t.exists(r).pipe(Ja.mapError(ru(r,"check source artifact path"))))&&(yield*t.remove(r).pipe(Ja.mapError(ru(r,"remove source artifact"))));let o=xX(e);yield*t.remove(o,{recursive:!0,force:!0}).pipe(Ja.mapError(ru(o,"remove source document directory")))});import{createHash as cwe}from"node:crypto";import{dirname as TX,extname as kw,join as IS,relative as DX,resolve as fAt,sep as uwe}from"node:path";import{fileURLToPath as mAt,pathToFileURL as hAt}from"node:url";import{FileSystem as Cw}from"@effect/platform";import*as Rn from"effect/Effect";import*as nu from"typescript";var yAt=new Set([".ts",".js",".mjs"]),gAt="tools",SAt="local-tools",vAt="local.tool",bAt=/^[A-Za-z0-9_-]+$/;var xAt=()=>{let e={};return{tools:e,catalog:e_({tools:e}),toolInvoker:Yd({tools:e}),toolPaths:new Set}},Od=(e,t)=>r=>new gc({message:`Failed to ${t} ${e}: ${Yo(r)}`,action:t,path:e,details:Yo(r)}),EAt=e=>IS(e.configDirectory,gAt),TAt=e=>IS(e.artifactsDirectory,SAt),DAt=e=>yAt.has(kw(e)),AAt=e=>e.startsWith(".")||e.startsWith("_"),wAt=e=>{let t=kw(e);return`${e.slice(0,-t.length)}.js`},IAt=e=>Rn.gen(function*(){let r=e.slice(0,-kw(e).length).split(uwe).filter(Boolean),n=r.at(-1)==="index"?r.slice(0,-1):r;if(n.length===0)return yield*new Qh({message:`Invalid local tool path ${e}: root index files are not supported`,path:e,details:"Root index files are not supported. Use a named file such as hello.ts or a nested index.ts."});for(let o of n)if(!bAt.test(o))return yield*new Qh({message:`Invalid local tool path ${e}: segment ${o} contains unsupported characters`,path:e,details:`Tool path segments may only contain letters, numbers, underscores, and hyphens. Invalid segment: ${o}`});return n.join(".")}),kAt=e=>Rn.gen(function*(){return(yield*(yield*Cw.FileSystem).readDirectory(e).pipe(Rn.mapError(Od(e,"read local tools directory")))).sort((n,o)=>n.localeCompare(o))}),CAt=e=>Rn.gen(function*(){let t=yield*Cw.FileSystem;if(!(yield*t.exists(e).pipe(Rn.mapError(Od(e,"check local tools directory")))))return[];let n=o=>Rn.gen(function*(){let i=yield*kAt(o),a=[];for(let s of i){let c=IS(o,s),p=yield*t.stat(c).pipe(Rn.mapError(Od(c,"stat local tool path")));if(p.type==="Directory"){a.push(...yield*n(c));continue}p.type==="File"&&DAt(c)&&a.push(c)}return a});return yield*n(e)}),PAt=(e,t)=>t.filter(r=>DX(e,r).split(uwe).every(n=>!AAt(n))),OAt=(e,t)=>{let r=(t??[]).filter(n=>n.category===nu.DiagnosticCategory.Error).map(n=>{let o=nu.flattenDiagnosticMessageText(n.messageText,` -`);if(!n.file||n.start===void 0)return o;let i=n.file.getLineAndCharacterOfPosition(n.start);return`${i.line+1}:${i.character+1} ${o}`});return r.length===0?null:new ZF({message:`Failed to transpile local tool ${e}`,path:e,details:r.join(` -`)})},EX=e=>{if(!e.startsWith("./")&&!e.startsWith("../"))return e;let t=e.match(/^(.*?)(\?.*|#.*)?$/),r=t?.[1]??e,n=t?.[2]??"",o=kw(r);return o===".js"?e:[".ts",".mjs"].includes(o)?`${r.slice(0,-o.length)}.js${n}`:o.length>0?e:`${r}.js${n}`},lwe=e=>e.replace(/(from\s+["'])(\.{1,2}\/[^"']+)(["'])/g,(t,r,n,o)=>`${r}${EX(n)}${o}`).replace(/(import\s+["'])(\.{1,2}\/[^"']+)(["'])/g,(t,r,n,o)=>`${r}${EX(n)}${o}`).replace(/(import\(\s*["'])(\.{1,2}\/[^"']+)(["']\s*\))/g,(t,r,n,o)=>`${r}${EX(n)}${o}`),NAt=e=>Rn.gen(function*(){if(kw(e.sourcePath)!==".ts")return lwe(e.content);let t=nu.transpileModule(e.content,{fileName:e.sourcePath,compilerOptions:{module:nu.ModuleKind.ESNext,moduleResolution:nu.ModuleResolutionKind.Bundler,target:nu.ScriptTarget.ES2022,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1},reportDiagnostics:!0}),r=OAt(e.sourcePath,t.diagnostics);return r?yield*r:lwe(t.outputText)}),FAt=()=>Rn.gen(function*(){let e=yield*Cw.FileSystem,t=TX(mAt(import.meta.url));for(;;){let r=IS(t,"node_modules");if(yield*e.exists(r).pipe(Rn.mapError(Od(r,"check executor node_modules directory"))))return r;let o=TX(t);if(o===t)return null;t=o}}),RAt=e=>Rn.gen(function*(){let t=yield*Cw.FileSystem,r=IS(e,"node_modules"),n=yield*FAt();(yield*t.exists(r).pipe(Rn.mapError(Od(r,"check local tool node_modules link"))))||n!==null&&(yield*t.symlink(n,r).pipe(Rn.mapError(Od(r,"create local tool node_modules link"))))}),LAt=e=>Rn.gen(function*(){let t=yield*Cw.FileSystem,r=yield*Rn.forEach(e.sourceFiles,a=>Rn.gen(function*(){let s=yield*t.readFileString(a,"utf8").pipe(Rn.mapError(Od(a,"read local tool source"))),c=DX(e.sourceDirectory,a),p=cwe("sha256").update(c).update("\0").update(s).digest("hex").slice(0,12);return{sourcePath:a,relativePath:c,content:s,contentHash:p}})),n=cwe("sha256").update(JSON.stringify(r.map(a=>[a.relativePath,a.contentHash]))).digest("hex").slice(0,16),o=IS(TAt(e.context),n);yield*t.makeDirectory(o,{recursive:!0}).pipe(Rn.mapError(Od(o,"create local tool artifact directory"))),yield*RAt(o);let i=new Map;for(let a of r){let s=wAt(a.relativePath),c=IS(o,s),p=TX(c),d=yield*NAt({sourcePath:a.sourcePath,content:a.content});yield*t.makeDirectory(p,{recursive:!0}).pipe(Rn.mapError(Od(p,"create local tool artifact parent directory"))),yield*t.writeFileString(c,d).pipe(Rn.mapError(Od(c,"write local tool artifact"))),i.set(a.sourcePath,c)}return i}),pwe=e=>typeof e=="object"&&e!==null&&"inputSchema"in e&&typeof e.execute=="function",$At=e=>typeof e=="object"&&e!==null&&"tool"in e&&pwe(e.tool),MAt=e=>{let t=`${vAt}.${e.toolPath}`;if($At(e.exported)){let r=e.exported;return Rn.succeed({...r,metadata:{...r.metadata,sourceKey:t}})}if(pwe(e.exported)){let r=e.exported;return Rn.succeed({tool:r,metadata:{sourceKey:t}})}return Rn.fail(new Qh({message:`Invalid local tool export in ${e.sourcePath}`,path:e.sourcePath,details:"Local tool files must export a default value or named `tool` export containing either an executable tool or a `{ tool, metadata? }` definition."}))},jAt=e=>Rn.tryPromise({try:()=>import(hAt(fAt(e.artifactPath)).href),catch:t=>new vw({message:`Failed to import local tool ${e.sourcePath}`,path:e.sourcePath,details:Yo(t)})}).pipe(Rn.flatMap(t=>{let r=t.default!==void 0,n=t.tool!==void 0;return r&&n?Rn.fail(new Qh({message:`Invalid local tool export in ${e.sourcePath}`,path:e.sourcePath,details:"Export either a default tool or a named `tool` export, but not both."})):!r&&!n?Rn.fail(new Qh({message:`Missing local tool export in ${e.sourcePath}`,path:e.sourcePath,details:"Expected a default export or named `tool` export."})):MAt({toolPath:e.toolPath,sourcePath:e.sourcePath,exported:r?t.default:t.tool})})),dwe=e=>Rn.gen(function*(){let t=EAt(e),r=yield*CAt(t);if(r.length===0)return xAt();let n=yield*LAt({context:e,sourceDirectory:t,sourceFiles:r}),o=PAt(t,r),i={},a=new Map;for(let s of o){let c=DX(t,s),p=yield*IAt(c),d=a.get(p);if(d)return yield*new WF({message:`Local tool path conflict for ${p}`,path:s,otherPath:d,toolPath:p});let f=n.get(s);if(!f)return yield*new vw({message:`Missing compiled artifact for local tool ${s}`,path:s,details:"Expected a compiled local tool artifact, but none was produced."});i[p]=yield*jAt({sourcePath:s,artifactPath:f,toolPath:p}),a.set(p,s)}return{tools:i,catalog:e_({tools:i}),toolInvoker:Yd({tools:i}),toolPaths:new Set(Object.keys(i))}});import{join as UAt}from"node:path";import{FileSystem as mwe}from"@effect/platform";import*as Nd from"effect/Effect";import*as hwe from"effect/Schema";import*as Ka from"effect/Schema";var BAt=Ka.Struct({status:xv,lastError:Ka.NullOr(Ka.String),sourceHash:Ka.NullOr(Ka.String),createdAt:wt,updatedAt:wt}),qAt=Ka.Struct({id:gv,createdAt:wt,updatedAt:wt}),_we=Ka.Struct({version:Ka.Literal(1),sources:Ka.Record({key:Ka.String,value:BAt}),policies:Ka.Record({key:Ka.String,value:qAt})}),fwe=()=>({version:1,sources:{},policies:{}});var zAt="workspace-state.json",VAt=hwe.decodeUnknownSync(_we),uR=(e,t)=>r=>new gc({message:`Failed to ${t} ${e}: ${Yo(r)}`,action:t,path:e,details:Yo(r)}),ywe=e=>UAt(e.stateDirectory,zAt),pR=e=>Nd.gen(function*(){let t=yield*mwe.FileSystem,r=ywe(e);if(!(yield*t.exists(r).pipe(Nd.mapError(uR(r,"check workspace state path")))))return fwe();let o=yield*t.readFileString(r,"utf8").pipe(Nd.mapError(uR(r,"read workspace state")));return yield*Nd.try({try:()=>VAt(JSON.parse(o)),catch:i=>new HF({message:`Invalid local scope state at ${r}: ${Yo(i)}`,path:r,details:Yo(i)})})}),dR=e=>Nd.gen(function*(){let t=yield*mwe.FileSystem;yield*t.makeDirectory(e.context.stateDirectory,{recursive:!0}).pipe(Nd.mapError(uR(e.context.stateDirectory,"create state directory")));let r=ywe(e.context);yield*t.writeFileString(r,`${JSON.stringify(e.state,null,2)} -`).pipe(Nd.mapError(uR(r,"write workspace state")))});import{join as Pw}from"node:path";import{FileSystem as Swe}from"@effect/platform";import{NodeFileSystem as vwe}from"@effect/platform-node";import*as _R from"effect/Cause";import*as yn from"effect/Effect";import*as kX from"effect/Fiber";var JAt="types",KAt="sources",tl=(e,t)=>r=>new gc({message:`Failed to ${t} ${e}: ${Yo(r)}`,action:t,path:e,details:Yo(r)}),fR=e=>Pw(e.configDirectory,JAt),CX=e=>Pw(fR(e),KAt),bwe=e=>`${e}.d.ts`,xwe=(e,t)=>Pw(CX(e),bwe(t)),Ewe=e=>Pw(fR(e),"index.d.ts"),IX=e=>`SourceTools_${e.replace(/[^A-Za-z0-9_$]+/g,"_")}`,GAt=e=>`(${e.argsOptional?"args?:":"args:"} ${e.inputType}) => Promise<${e.outputType}>`,gwe=()=>({method:null,children:new Map}),HAt=(e,t)=>e.length===0?"{}":["{",...e.map(r=>`${t}${r}`),`${t.slice(0,-2)}}`].join(` -`),Twe=(e,t)=>{let r=" ".repeat(t+1),n=[...e.children.entries()].sort(([a],[s])=>a.localeCompare(s)).map(([a,s])=>`${lq(a)}: ${Twe(s,t+1)};`),o=HAt(n,r);if(e.method===null)return o;let i=GAt(e.method);return e.children.size===0?i:`(${i}) & ${o}`},ZAt=e=>{let t=gwe();for(let r of e){let n=t;for(let o of r.segments){let i=n.children.get(o);if(i){n=i;continue}let a=gwe();n.children.set(o,a),n=a}n.method=r}return t},WAt=e=>{let t=NT({catalog:e.catalog}),r=Object.values(t.toolDescriptors).sort((i,a)=>i.toolPath.join(".").localeCompare(a.toolPath.join("."))),n=KT({catalog:t.catalog,roots:o3(t)});return{methods:r.map(i=>({segments:i.toolPath,inputType:n.renderDeclarationShape(i.callShapeId,{aliasHint:di(...i.toolPath,"call")}),outputType:i.resultShapeId?n.renderDeclarationShape(i.resultShapeId,{aliasHint:di(...i.toolPath,"result")}):"unknown",argsOptional:GT(t.catalog,i.callShapeId)})),supportingTypes:n.supportingDeclarations()}},Dwe=e=>{let t=IX(e.source.id),r=WAt(e.snapshot),n=ZAt(r.methods),o=Twe(n,0);return["// Generated by executor. Do not edit by hand.",`// Source: ${e.source.name} (${e.source.id})`,"",...r.supportingTypes,...r.supportingTypes.length>0?[""]:[],`export interface ${t} ${o}`,"",`export declare const tools: ${t};`,`export type ${t}Tools = ${t};`,"export default tools;",""].join(` -`)},QAt=e=>Awe(e.map(t=>({sourceId:t.source.id}))),Awe=e=>{let t=[...e].sort((i,a)=>i.sourceId.localeCompare(a.sourceId)),r=t.map(i=>`import type { ${IX(i.sourceId)} } from "../sources/${i.sourceId}";`),n=t.map(i=>IX(i.sourceId)),o=n.length>0?n.join(" & "):"{}";return["// Generated by executor. Do not edit by hand.",...r,...r.length>0?[""]:[],`export type ExecutorSourceTools = ${o};`,"","declare global {"," const tools: ExecutorSourceTools;","}","","export declare const tools: ExecutorSourceTools;","export default tools;",""].join(` -`)},XAt=e=>yn.gen(function*(){let t=yield*Swe.FileSystem,r=fR(e.context),n=CX(e.context),o=e.entries.filter(c=>c.source.enabled&&c.source.status==="connected").sort((c,p)=>c.source.id.localeCompare(p.source.id));yield*t.makeDirectory(r,{recursive:!0}).pipe(yn.mapError(tl(r,"create declaration directory"))),yield*t.makeDirectory(n,{recursive:!0}).pipe(yn.mapError(tl(n,"create source declaration directory")));let i=new Set(o.map(c=>bwe(c.source.id))),a=yield*t.readDirectory(n).pipe(yn.mapError(tl(n,"read source declaration directory")));for(let c of a){if(i.has(c))continue;let p=Pw(n,c);yield*t.remove(p).pipe(yn.mapError(tl(p,"remove stale source declaration")))}for(let c of o){let p=xwe(e.context,c.source.id);yield*t.writeFileString(p,Dwe(c)).pipe(yn.mapError(tl(p,"write source declaration")))}let s=Ewe(e.context);yield*t.writeFileString(s,QAt(o)).pipe(yn.mapError(tl(s,"write aggregate declaration")))}),YAt=e=>yn.gen(function*(){let t=yield*Swe.FileSystem,r=fR(e.context),n=CX(e.context);yield*t.makeDirectory(r,{recursive:!0}).pipe(yn.mapError(tl(r,"create declaration directory"))),yield*t.makeDirectory(n,{recursive:!0}).pipe(yn.mapError(tl(n,"create source declaration directory")));let o=xwe(e.context,e.source.id);if(e.source.enabled&&e.source.status==="connected"&&e.snapshot!==null){let c=e.snapshot;if(c===null)return;yield*t.writeFileString(o,Dwe({source:e.source,snapshot:c})).pipe(yn.mapError(tl(o,"write source declaration")))}else(yield*t.exists(o).pipe(yn.mapError(tl(o,"check source declaration path"))))&&(yield*t.remove(o).pipe(yn.mapError(tl(o,"remove source declaration"))));let a=(yield*t.readDirectory(n).pipe(yn.mapError(tl(n,"read source declaration directory")))).filter(c=>c.endsWith(".d.ts")).map(c=>({sourceId:c.slice(0,-5)})),s=Ewe(e.context);yield*t.writeFileString(s,Awe(a)).pipe(yn.mapError(tl(s,"write aggregate declaration")))}),PX=e=>XAt(e).pipe(yn.provide(vwe.layer)),OX=e=>YAt(e).pipe(yn.provide(vwe.layer)),wwe=(e,t)=>{let r=_R.isCause(t)?_R.pretty(t):t instanceof Error?t.message:String(t);console.warn(`[source-types] ${e} failed: ${r}`)},Iwe="1500 millis",AX=new Map,wX=new Map,mR=e=>{let t=e.context.configDirectory,r=AX.get(t);r&&yn.runFork(kX.interruptFork(r));let n=yn.runFork(yn.sleep(Iwe).pipe(yn.zipRight(PX(e).pipe(yn.catchAllCause(o=>yn.sync(()=>{wwe("workspace declaration refresh",o)}))))));AX.set(t,n),n.addObserver(()=>{AX.delete(t)})},hR=e=>{let t=`${e.context.configDirectory}:${e.source.id}`,r=wX.get(t);r&&yn.runFork(kX.interruptFork(r));let n=yn.runFork(yn.sleep(Iwe).pipe(yn.zipRight(OX(e).pipe(yn.catchAllCause(o=>yn.sync(()=>{wwe(`source ${e.source.id} declaration refresh`,o)}))))));wX.set(t,n),n.addObserver(()=>{wX.delete(t)})};var Fd=e=>e instanceof Error?e:new Error(String(e)),If=(e,t)=>t.pipe(Ki.provideService(kwe.FileSystem,e)),nwt=e=>({load:()=>Tw(e).pipe(Ki.mapError(Fd)),getOrProvision:()=>eR({context:e}).pipe(Ki.mapError(Fd))}),owt=(e,t)=>({load:()=>If(t,XF(e)).pipe(Ki.mapError(Fd)),writeProject:r=>If(t,YF({context:e,config:r})).pipe(Ki.mapError(Fd)),resolveRelativePath:yb}),iwt=(e,t)=>({load:()=>If(t,pR(e)).pipe(Ki.mapError(Fd)),write:r=>If(t,dR({context:e,state:r})).pipe(Ki.mapError(Fd))}),awt=(e,t)=>({build:wS,read:r=>If(t,sR({context:e,sourceId:r})).pipe(Ki.mapError(Fd)),write:({sourceId:r,artifact:n})=>If(t,cR({context:e,sourceId:r,artifact:n})).pipe(Ki.mapError(Fd)),remove:r=>If(t,lR({context:e,sourceId:r})).pipe(Ki.mapError(Fd))}),swt=(e,t)=>({load:()=>If(t,dwe(e))}),cwt=e=>({refreshWorkspaceInBackground:({entries:t})=>Ki.sync(()=>{mR({context:e,entries:t})}),refreshSourceInBackground:({source:t,snapshot:r})=>Ki.sync(()=>{hR({context:e,source:t,snapshot:r})})}),lwt=e=>({scopeName:e.workspaceName,scopeRoot:e.workspaceRoot,metadata:{kind:"file",configDirectory:e.configDirectory,projectConfigPath:e.projectConfigPath,homeConfigPath:e.homeConfigPath,homeStateDirectory:e.homeStateDirectory,artifactsDirectory:e.artifactsDirectory,stateDirectory:e.stateDirectory}}),Cwe=(e={},t={})=>Ki.gen(function*(){let r=yield*kwe.FileSystem,n=yield*If(r,QF({cwd:e.cwd,workspaceRoot:e.workspaceRoot,homeConfigPath:e.homeConfigPath,homeStateDirectory:e.homeStateDirectory})).pipe(Ki.mapError(Fd)),o=UAe(n,r),i=owt(n,r),a=yield*i.load(),s=t.resolveSecretMaterial??QAe({executorState:o.executorState,localConfig:a.config,workspaceRoot:n.workspaceRoot});return{scope:lwt(n),installation:nwt(n),workspace:{config:i,state:iwt(n,r),sourceArtifacts:awt(n,r),sourceAuth:{artifacts:o.executorState.authArtifacts,leases:o.executorState.authLeases,sourceOauthClients:o.executorState.sourceOauthClients,scopeOauthClients:o.executorState.scopeOauthClients,providerGrants:o.executorState.providerAuthGrants,sourceSessions:o.executorState.sourceAuthSessions},localTools:swt(n,r),sourceTypeDeclarations:cwt(n)},secrets:{...o.executorState.secretMaterials,resolve:s,store:XAe({executorState:o.executorState}),delete:ewe({executorState:o.executorState}),update:YAe({executorState:o.executorState})},executions:{runs:o.executorState.executions,interactions:o.executorState.executionInteractions,steps:o.executorState.executionSteps},instanceConfig:{resolve:twe()},close:o.close}}).pipe(Ki.provide(rwt.layer)),NX=(e={})=>ub({loadRepositories:t=>Cwe(e,t)});import*as Rwe from"effect/Effect";import*as kS from"effect/Effect";var Pwe={action:"accept"},uwt={action:"decline"},pwt=e=>{let t=e.context??{},r=t.invocationDescriptor??{};return{toolPath:String(e.path),sourceId:String(r.sourceId??e.sourceKey??""),sourceName:String(r.sourceName??""),operationKind:r.operationKind??"unknown",args:e.args,reason:String(t.interactionReason??"Approval required"),approvalLabel:typeof r.approvalLabel=="string"?r.approvalLabel:null,context:t}},dwt=e=>{let t=e.context??{};return e.elicitation.mode==="url"?{kind:"url",url:e.elicitation.url,message:e.elicitation.message,sourceId:e.sourceKey||void 0,context:t}:{kind:"form",message:e.elicitation.message,requestedSchema:e.elicitation.requestedSchema,toolPath:String(e.path)||void 0,sourceId:e.sourceKey||void 0,context:t}},_wt=e=>e.context?.interactionPurpose==="tool_execution_gate",Owe=e=>{let{onToolApproval:t,onInteraction:r}=e;return n=>kS.gen(function*(){if(_wt(n)){if(t==="allow-all"||t===void 0)return Pwe;if(t==="deny-all")return uwt;let a=pwt(n);return(yield*kS.tryPromise({try:()=>Promise.resolve(t(a)),catch:c=>c instanceof Error?c:new Error(String(c))})).approved?Pwe:{action:"decline"}}if(!r){let a=n.elicitation.mode??"form";return yield*kS.fail(new Error(`An ${a} interaction was requested (${n.elicitation.message}), but no onInteraction callback was provided`))}let o=dwt(n),i=yield*kS.tryPromise({try:()=>Promise.resolve(r(o)),catch:a=>a instanceof Error?a:new Error(String(a))});return{action:i.action,content:"content"in i?i.content:void 0}})};var rl=e=>JSON.parse(JSON.stringify(e)),fwt=(e,t)=>{let r=e.find(t);return r!=null?rl(r):null},mwt=()=>{let e=hn.make(`ws_mem_${crypto.randomUUID().slice(0,16)}`),t=hn.make(`acc_mem_${crypto.randomUUID().slice(0,16)}`);return{scopeId:e,actorScopeId:t,resolutionScopeIds:[e,t]}},Rd=()=>{let e=[];return{items:e,findBy:t=>fwt(e,t),filterBy:t=>rl(e.filter(t)),insert:t=>{e.push(rl(t))},upsertBy:(t,r)=>{let n=t(r),o=e.findIndex(i=>t(i)===n);o>=0?e[o]=rl(r):e.push(rl(r))},removeBy:t=>{let r=e.findIndex(t);return r>=0?(e.splice(r,1),!0):!1},removeAllBy:t=>{let r=e.length,n=e.filter(o=>!t(o));return e.length=0,e.push(...n),r-n.length},updateBy:(t,r)=>{let n=e.find(t);return n?(Object.assign(n,r),rl(n)):null}}},Nwe=e=>ub({loadRepositories:t=>{let r=mwt(),n=e?.resolveSecret,o=Rd(),i=Rd(),a=Rd(),s=Rd(),c=Rd(),p=Rd(),d=Rd(),f=Rd(),m=Rd(),y=Rd(),g=new Map;return{scope:{scopeName:"memory",scopeRoot:process.cwd()},installation:{load:()=>rl(r),getOrProvision:()=>rl(r)},workspace:{config:(()=>{let S=null;return{load:()=>({config:S,homeConfig:null,projectConfig:S}),writeProject:x=>{S=rl(x)},resolveRelativePath:({path:x})=>x}})(),state:(()=>{let S={version:1,sources:{},policies:{}};return{load:()=>rl(S),write:x=>{S=rl(x)}}})(),sourceArtifacts:{build:wS,read:S=>g.get(S)??null,write:({sourceId:S,artifact:x})=>{g.set(S,x)},remove:S=>{g.delete(S)}},sourceAuth:{artifacts:{listByScopeId:S=>o.filterBy(x=>x.scopeId===S),listByScopeAndSourceId:({scopeId:S,sourceId:x})=>o.filterBy(A=>A.scopeId===S&&A.sourceId===x),getByScopeSourceAndActor:({scopeId:S,sourceId:x,actorScopeId:A,slot:I})=>o.findBy(E=>E.scopeId===S&&E.sourceId===x&&E.actorScopeId===A&&E.slot===I),upsert:S=>o.upsertBy(x=>`${x.scopeId}:${x.sourceId}:${x.actorScopeId}:${x.slot}`,S),removeByScopeSourceAndActor:({scopeId:S,sourceId:x,actorScopeId:A,slot:I})=>o.removeBy(E=>E.scopeId===S&&E.sourceId===x&&E.actorScopeId===A&&(I===void 0||E.slot===I)),removeByScopeAndSourceId:({scopeId:S,sourceId:x})=>o.removeAllBy(A=>A.scopeId===S&&A.sourceId===x)},leases:{listAll:()=>rl(i.items),getByAuthArtifactId:S=>i.findBy(x=>x.authArtifactId===S),upsert:S=>i.upsertBy(x=>x.authArtifactId,S),removeByAuthArtifactId:S=>i.removeBy(x=>x.authArtifactId===S)},sourceOauthClients:{getByScopeSourceAndProvider:({scopeId:S,sourceId:x,providerKey:A})=>a.findBy(I=>I.scopeId===S&&I.sourceId===x&&I.providerKey===A),upsert:S=>a.upsertBy(x=>`${x.scopeId}:${x.sourceId}:${x.providerKey}`,S),removeByScopeAndSourceId:({scopeId:S,sourceId:x})=>a.removeAllBy(A=>A.scopeId===S&&A.sourceId===x)},scopeOauthClients:{listByScopeAndProvider:({scopeId:S,providerKey:x})=>s.filterBy(A=>A.scopeId===S&&A.providerKey===x),getById:S=>s.findBy(x=>x.id===S),upsert:S=>s.upsertBy(x=>x.id,S),removeById:S=>s.removeBy(x=>x.id===S)},providerGrants:{listByScopeId:S=>c.filterBy(x=>x.scopeId===S),listByScopeActorAndProvider:({scopeId:S,actorScopeId:x,providerKey:A})=>c.filterBy(I=>I.scopeId===S&&I.actorScopeId===x&&I.providerKey===A),getById:S=>c.findBy(x=>x.id===S),upsert:S=>c.upsertBy(x=>x.id,S),removeById:S=>c.removeBy(x=>x.id===S)},sourceSessions:{listAll:()=>rl(p.items),listByScopeId:S=>p.filterBy(x=>x.scopeId===S),getById:S=>p.findBy(x=>x.id===S),getByState:S=>p.findBy(x=>x.state===S),getPendingByScopeSourceAndActor:({scopeId:S,sourceId:x,actorScopeId:A,credentialSlot:I})=>p.findBy(E=>E.scopeId===S&&E.sourceId===x&&E.actorScopeId===A&&E.status==="pending"&&(I===void 0||E.credentialSlot===I)),insert:S=>p.insert(S),update:(S,x)=>p.updateBy(A=>A.id===S,x),upsert:S=>p.upsertBy(x=>x.id,S),removeByScopeAndSourceId:(S,x)=>p.removeAllBy(A=>A.scopeId===S&&A.sourceId===x)>0}}},secrets:{getById:S=>d.findBy(x=>x.id===S),listAll:()=>d.items.map(S=>({id:S.id,providerId:S.providerId,name:S.name,purpose:S.purpose,createdAt:S.createdAt,updatedAt:S.updatedAt})),upsert:S=>d.upsertBy(x=>x.id,S),updateById:(S,x)=>d.updateBy(A=>A.id===S,{...x,updatedAt:Date.now()}),removeById:S=>d.removeBy(x=>x.id===S),resolve:n?({secretId:S,context:x})=>Promise.resolve(n({secretId:S,context:x})):({secretId:S})=>d.items.find(A=>A.id===S)?.value??null,store:S=>{let x=Date.now(),A={...S,createdAt:x,updatedAt:x};d.upsertBy(C=>C.id,A);let{value:I,...E}=A;return E},delete:S=>d.removeBy(x=>x.id===S.id),update:S=>d.updateBy(x=>x.id===S.id,{...S,updatedAt:Date.now()})},executions:{runs:{getById:S=>f.findBy(x=>x.id===S),getByScopeAndId:(S,x)=>f.findBy(A=>A.scopeId===S&&A.id===x),insert:S=>f.insert(S),update:(S,x)=>f.updateBy(A=>A.id===S,x)},interactions:{getById:S=>m.findBy(x=>x.id===S),listByExecutionId:S=>m.filterBy(x=>x.executionId===S),getPendingByExecutionId:S=>m.findBy(x=>x.executionId===S&&x.status==="pending"),insert:S=>m.insert(S),update:(S,x)=>m.updateBy(A=>A.id===S,x)},steps:{getByExecutionAndSequence:(S,x)=>y.findBy(A=>A.executionId===S&&A.sequence===x),listByExecutionId:S=>y.filterBy(x=>x.executionId===S),insert:S=>y.insert(S),deleteByExecutionId:S=>{y.removeAllBy(x=>x.executionId===S)},updateByExecutionAndSequence:(S,x,A)=>y.updateBy(I=>I.executionId===S&&I.sequence===x,A)}},instanceConfig:{resolve:()=>({platform:"memory",secretProviders:[],defaultSecretStoreProvider:"memory"})}}}});var hwt=e=>{let t={};for(let[r,n]of Object.entries(e))t[r]={description:n.description,inputSchema:n.inputSchema??Hd,execute:n.execute};return t},ywt=e=>typeof e=="object"&&e!==null&&"loadRepositories"in e&&typeof e.loadRepositories=="function",gwt=e=>typeof e=="object"&&e!==null&&"createRuntime"in e&&typeof e.createRuntime=="function",Swt=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind==="file",vwt=e=>{let t=e.storage??"memory";if(t==="memory")return Nwe(e);if(Swt(t))return t.fs&&console.warn("@executor/sdk: Custom `fs` in file storage is not yet supported. Using default Node.js filesystem."),NX({cwd:t.cwd,workspaceRoot:t.workspaceRoot});if(ywt(t))return ub({loadRepositories:t.loadRepositories});if(gwt(t))return t;throw new Error("Invalid storage option")},Fwe=e=>{if(e!==null)try{return JSON.parse(e)}catch{return e}},bwt=e=>{try{return JSON.parse(e)}catch{return{}}},xwt=50,Ewt=(e,t)=>{let r=Owe({onToolApproval:t.onToolApproval,onInteraction:t.onInteraction});return async n=>{let o=await e.executions.create({code:n}),i=0;for(;o.execution.status==="waiting_for_interaction"&&o.pendingInteraction!==null&&i{let t=vwt(e),r=e.tools?()=>hwt(e.tools):void 0,n=e.runtime&&typeof e.runtime!="string"?e.runtime:void 0,o=await aX({backend:t,createInternalToolMap:r,customCodeExecutor:n});return{execute:Ewt(o,e),sources:o.sources,policies:o.policies,secrets:o.secrets,oauth:o.oauth,local:o.local,close:o.close}};export{Twt as createExecutor}; +`)},vAt=e=>{let t=[];try{let r=A2e(e.content,t,{allowTrailingComma:!0});if(t.length>0)throw new ey({message:`Invalid executor config at ${e.path}: ${F2e(e.content,t)}`,path:e.path,details:F2e(e.content,t)});return $2e(r)}catch(r){throw r instanceof ey?r:new ey({message:`Invalid executor config at ${e.path}: ${Yo(r)}`,path:e.path,details:Yo(r)})}},bAt=(e,t)=>{if(!(!e&&!t))return{...e,...t}},xAt=(e,t)=>{if(!(!e&&!t))return{...e,...t}},EAt=(e,t)=>{if(!(!e&&!t))return{...e,...t}},TAt=(e,t)=>!e&&!t?null:$2e({runtime:t?.runtime??e?.runtime,workspace:{...e?.workspace,...t?.workspace},sources:bAt(e?.sources,t?.sources),policies:xAt(e?.policies,t?.policies),secrets:{providers:EAt(e?.secrets?.providers,t?.secrets?.providers),defaults:{...e?.secrets?.defaults,...t?.secrets?.defaults}}}),DAt=e=>Ti.gen(function*(){let t=yield*gb.FileSystem,r=va(e,EI,uX);return yield*t.exists(r).pipe(Ti.mapError(ry(r,"check project config path"))),r}),AAt=e=>Ti.gen(function*(){let t=yield*gb.FileSystem,r=va(e,EI,uX);return yield*t.exists(r).pipe(Ti.mapError(ry(r,"check project config path")))}),IAt=e=>Ti.gen(function*(){let t=yield*gb.FileSystem,r=wS(e),n=null,o=null;for(;;){if(n===null&&(yield*AAt(r))&&(n=r),o===null){let a=va(r,".git");(yield*t.exists(a).pipe(Ti.mapError(ry(a,"check git root"))))&&(o=r)}let i=uAt(r);if(i===r)break;r=i}return n??o??wS(e)}),YF=(e={})=>Ti.gen(function*(){let t=wS(e.cwd??process.cwd()),r=wS(e.workspaceRoot??(yield*IAt(t))),n=lAt(r)||"workspace",o=yield*DAt(r),i=wS(e.homeConfigPath??(yield*gAt())),a=wS(e.homeStateDirectory??SAt());return{cwd:t,workspaceRoot:r,workspaceName:n,configDirectory:va(r,EI),projectConfigPath:o,homeConfigPath:i,homeStateDirectory:a,artifactsDirectory:va(r,EI,"artifacts"),stateDirectory:va(r,EI,"state")}}),R2e=e=>Ti.gen(function*(){let t=yield*gb.FileSystem;if(!(yield*t.exists(e).pipe(Ti.mapError(ry(e,"check config path")))))return null;let n=yield*t.readFileString(e,"utf8").pipe(Ti.mapError(ry(e,"read config")));return yield*Ti.try({try:()=>vAt({path:e,content:n}),catch:o=>o instanceof ey?o:new ey({message:`Invalid executor config at ${e}: ${Yo(o)}`,path:e,details:Yo(o)})})}),eR=e=>Ti.gen(function*(){let[t,r]=yield*Ti.all([R2e(e.homeConfigPath),R2e(e.projectConfigPath)]);return{config:TAt(t,r),homeConfig:t,projectConfig:r,homeConfigPath:e.homeConfigPath,projectConfigPath:e.projectConfigPath}}),tR=e=>Ti.gen(function*(){let t=yield*gb.FileSystem;yield*t.makeDirectory(e.context.configDirectory,{recursive:!0}).pipe(Ti.mapError(ry(e.context.configDirectory,"create config directory"))),yield*t.writeFileString(e.context.projectConfigPath,dAt(e.config)).pipe(Ti.mapError(ry(e.context.projectConfigPath,"write config")))});import{randomUUID as PAt}from"node:crypto";import{dirname as q2e,join as OAt}from"node:path";import{FileSystem as _X}from"@effect/platform";import{NodeFileSystem as BXt}from"@effect/platform-node";import*as Vi from"effect/Effect";import*as rn from"effect/Option";import*as Ja from"effect/Schema";import{createHash as wAt}from"node:crypto";import*as B2e from"effect/Effect";var M2e=Br.make("acc_local_default"),kAt=e=>wAt("sha256").update(e).digest("hex").slice(0,16),CAt=e=>e.replaceAll("\\","/"),j2e=e=>Br.make(`ws_local_${kAt(CAt(e.workspaceRoot))}`),DI=e=>({actorScopeId:M2e,scopeId:j2e(e),resolutionScopeIds:[j2e(e),M2e]}),AI=e=>B2e.succeed(DI(e)),rR=e=>AI(e.context);var U2e=1,NAt="executor-state.json",FAt=Ja.Struct({version:Ja.Literal(U2e),authArtifacts:Ja.Array(bce),authLeases:Ja.Array(Nce),sourceOauthClients:Ja.Array(Fce),scopeOauthClients:Ja.Array(Rce),providerAuthGrants:Ja.Array(Lce),sourceAuthSessions:Ja.Array(Ace),secretMaterials:Ja.Array($ce),executions:Ja.Array(QB),executionInteractions:Ja.Array(XB),executionSteps:Ja.Array(Uce)}),RAt=Ja.decodeUnknown(FAt),LAt=()=>({version:U2e,authArtifacts:[],authLeases:[],sourceOauthClients:[],scopeOauthClients:[],providerAuthGrants:[],sourceAuthSessions:[],secretMaterials:[],executions:[],executionInteractions:[],executionSteps:[]}),En=e=>JSON.parse(JSON.stringify(e)),$At=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null,dX=e=>{if(Array.isArray(e)){let o=!1;return{value:e.map(a=>{let s=dX(a);return o=o||s.migrated,s.value}),migrated:o}}let t=$At(e);if(t===null)return{value:e,migrated:!1};let r=!1,n={};for(let[o,i]of Object.entries(t)){let a=o;o==="workspaceId"?(a="scopeId",r=!0):o==="actorAccountId"?(a="actorScopeId",r=!0):o==="createdByAccountId"?(a="createdByScopeId",r=!0):o==="workspaceOauthClients"&&(a="scopeOauthClients",r=!0);let s=dX(i);r=r||s.migrated,n[a]=s.value}return{value:n,migrated:r}},wf=(e,t)=>r=>new gc({message:`Failed to ${t} ${e}: ${Yo(r)}`,action:t,path:e,details:Yo(r)}),II=(e,t)=>(e??null)===(t??null),If=e=>[...e].sort((t,r)=>t.updatedAt-r.updatedAt||t.id.localeCompare(r.id)),pX=e=>[...e].sort((t,r)=>r.updatedAt-t.updatedAt||r.id.localeCompare(t.id)),nR=e=>OAt(e.homeStateDirectory,"workspaces",DI(e).scopeId,NAt),MAt=(e,t)=>t.pipe(Vi.provideService(_X.FileSystem,e));var jAt=e=>Vi.gen(function*(){let t=yield*_X.FileSystem,r=nR(e);if(!(yield*t.exists(r).pipe(Vi.mapError(wf(r,"check executor state path")))))return LAt();let o=yield*t.readFileString(r,"utf8").pipe(Vi.mapError(wf(r,"read executor state"))),i=yield*Vi.try({try:()=>JSON.parse(o),catch:wf(r,"parse executor state")}),a=dX(i),s=yield*RAt(a.value).pipe(Vi.mapError(wf(r,"decode executor state")));return a.migrated&&(yield*z2e(e,s)),s}),z2e=(e,t)=>Vi.gen(function*(){let r=yield*_X.FileSystem,n=nR(e),o=`${n}.${PAt()}.tmp`;yield*r.makeDirectory(q2e(n),{recursive:!0}).pipe(Vi.mapError(wf(q2e(n),"create executor state directory"))),yield*r.writeFileString(o,`${JSON.stringify(t,null,2)} +`,{mode:384}).pipe(Vi.mapError(wf(o,"write executor state"))),yield*r.rename(o,n).pipe(Vi.mapError(wf(n,"replace executor state")))});var BAt=(e,t)=>{let r=null,n=Promise.resolve(),o=c=>Vi.runPromise(MAt(t,c)),i=async()=>(r!==null||(r=await o(jAt(e))),r);return{read:c=>Vi.tryPromise({try:async()=>(await n,c(En(await i()))),catch:wf(nR(e),"read executor state")}),mutate:c=>Vi.tryPromise({try:async()=>{let p,d=null;if(n=n.then(async()=>{try{let f=En(await i()),m=await c(f);r=m.state,p=m.value,await o(z2e(e,r))}catch(f){d=f}}),await n,d!==null)throw d;return p},catch:wf(nR(e),"write executor state")})}},qAt=(e,t)=>{let r=BAt(e,t);return{authArtifacts:{listByScopeId:n=>r.read(o=>If(o.authArtifacts.filter(i=>i.scopeId===n))),listByScopeAndSourceId:n=>r.read(o=>If(o.authArtifacts.filter(i=>i.scopeId===n.scopeId&&i.sourceId===n.sourceId))),getByScopeSourceAndActor:n=>r.read(o=>{let i=o.authArtifacts.find(a=>a.scopeId===n.scopeId&&a.sourceId===n.sourceId&&a.slot===n.slot&&II(a.actorScopeId,n.actorScopeId));return i?rn.some(En(i)):rn.none()}),upsert:n=>r.mutate(o=>{let i=o.authArtifacts.filter(a=>!(a.scopeId===n.scopeId&&a.sourceId===n.sourceId&&a.slot===n.slot&&II(a.actorScopeId,n.actorScopeId)));return i.push(En(n)),{state:{...o,authArtifacts:i},value:void 0}}),removeByScopeSourceAndActor:n=>r.mutate(o=>{let i=o.authArtifacts.filter(a=>a.scopeId!==n.scopeId||a.sourceId!==n.sourceId||!II(a.actorScopeId,n.actorScopeId)||n.slot!==void 0&&a.slot!==n.slot);return{state:{...o,authArtifacts:i},value:i.length!==o.authArtifacts.length}}),removeByScopeAndSourceId:n=>r.mutate(o=>{let i=o.authArtifacts.filter(a=>a.scopeId!==n.scopeId||a.sourceId!==n.sourceId);return{state:{...o,authArtifacts:i},value:o.authArtifacts.length-i.length}})},authLeases:{listAll:()=>r.read(n=>If(n.authLeases)),getByAuthArtifactId:n=>r.read(o=>{let i=o.authLeases.find(a=>a.authArtifactId===n);return i?rn.some(En(i)):rn.none()}),upsert:n=>r.mutate(o=>{let i=o.authLeases.filter(a=>a.authArtifactId!==n.authArtifactId);return i.push(En(n)),{state:{...o,authLeases:i},value:void 0}}),removeByAuthArtifactId:n=>r.mutate(o=>{let i=o.authLeases.filter(a=>a.authArtifactId!==n);return{state:{...o,authLeases:i},value:i.length!==o.authLeases.length}})},sourceOauthClients:{getByScopeSourceAndProvider:n=>r.read(o=>{let i=o.sourceOauthClients.find(a=>a.scopeId===n.scopeId&&a.sourceId===n.sourceId&&a.providerKey===n.providerKey);return i?rn.some(En(i)):rn.none()}),upsert:n=>r.mutate(o=>{let i=o.sourceOauthClients.filter(a=>!(a.scopeId===n.scopeId&&a.sourceId===n.sourceId&&a.providerKey===n.providerKey));return i.push(En(n)),{state:{...o,sourceOauthClients:i},value:void 0}}),removeByScopeAndSourceId:n=>r.mutate(o=>{let i=o.sourceOauthClients.filter(a=>a.scopeId!==n.scopeId||a.sourceId!==n.sourceId);return{state:{...o,sourceOauthClients:i},value:o.sourceOauthClients.length-i.length}})},scopeOauthClients:{listByScopeAndProvider:n=>r.read(o=>If(o.scopeOauthClients.filter(i=>i.scopeId===n.scopeId&&i.providerKey===n.providerKey))),getById:n=>r.read(o=>{let i=o.scopeOauthClients.find(a=>a.id===n);return i?rn.some(En(i)):rn.none()}),upsert:n=>r.mutate(o=>{let i=o.scopeOauthClients.filter(a=>a.id!==n.id);return i.push(En(n)),{state:{...o,scopeOauthClients:i},value:void 0}}),removeById:n=>r.mutate(o=>{let i=o.scopeOauthClients.filter(a=>a.id!==n);return{state:{...o,scopeOauthClients:i},value:i.length!==o.scopeOauthClients.length}})},providerAuthGrants:{listByScopeId:n=>r.read(o=>If(o.providerAuthGrants.filter(i=>i.scopeId===n))),listByScopeActorAndProvider:n=>r.read(o=>If(o.providerAuthGrants.filter(i=>i.scopeId===n.scopeId&&i.providerKey===n.providerKey&&II(i.actorScopeId,n.actorScopeId)))),getById:n=>r.read(o=>{let i=o.providerAuthGrants.find(a=>a.id===n);return i?rn.some(En(i)):rn.none()}),upsert:n=>r.mutate(o=>{let i=o.providerAuthGrants.filter(a=>a.id!==n.id);return i.push(En(n)),{state:{...o,providerAuthGrants:i},value:void 0}}),removeById:n=>r.mutate(o=>{let i=o.providerAuthGrants.filter(a=>a.id!==n);return{state:{...o,providerAuthGrants:i},value:i.length!==o.providerAuthGrants.length}})},sourceAuthSessions:{listAll:()=>r.read(n=>If(n.sourceAuthSessions)),listByScopeId:n=>r.read(o=>If(o.sourceAuthSessions.filter(i=>i.scopeId===n))),getById:n=>r.read(o=>{let i=o.sourceAuthSessions.find(a=>a.id===n);return i?rn.some(En(i)):rn.none()}),getByState:n=>r.read(o=>{let i=o.sourceAuthSessions.find(a=>a.state===n);return i?rn.some(En(i)):rn.none()}),getPendingByScopeSourceAndActor:n=>r.read(o=>{let i=If(o.sourceAuthSessions.filter(a=>a.scopeId===n.scopeId&&a.sourceId===n.sourceId&&a.status==="pending"&&II(a.actorScopeId,n.actorScopeId)&&(n.credentialSlot===void 0||a.credentialSlot===n.credentialSlot)))[0]??null;return i?rn.some(En(i)):rn.none()}),insert:n=>r.mutate(o=>({state:{...o,sourceAuthSessions:[...o.sourceAuthSessions,En(n)]},value:void 0})),update:(n,o)=>r.mutate(i=>{let a=null,s=i.sourceAuthSessions.map(c=>c.id!==n?c:(a={...c,...En(o)},a));return{state:{...i,sourceAuthSessions:s},value:a?rn.some(En(a)):rn.none()}}),upsert:n=>r.mutate(o=>{let i=o.sourceAuthSessions.filter(a=>a.id!==n.id);return i.push(En(n)),{state:{...o,sourceAuthSessions:i},value:void 0}}),removeByScopeAndSourceId:(n,o)=>r.mutate(i=>{let a=i.sourceAuthSessions.filter(s=>s.scopeId!==n||s.sourceId!==o);return{state:{...i,sourceAuthSessions:a},value:a.length!==i.sourceAuthSessions.length}})},secretMaterials:{getById:n=>r.read(o=>{let i=o.secretMaterials.find(a=>a.id===n);return i?rn.some(En(i)):rn.none()}),listAll:()=>r.read(n=>pX(n.secretMaterials)),upsert:n=>r.mutate(o=>{let i=o.secretMaterials.filter(a=>a.id!==n.id);return i.push(En(n)),{state:{...o,secretMaterials:i},value:void 0}}),updateById:(n,o)=>r.mutate(i=>{let a=null,s=i.secretMaterials.map(c=>c.id!==n?c:(a={...c,...o.name!==void 0?{name:o.name}:{},...o.value!==void 0?{value:o.value}:{},updatedAt:Date.now()},a));return{state:{...i,secretMaterials:s},value:a?rn.some(En(a)):rn.none()}}),removeById:n=>r.mutate(o=>{let i=o.secretMaterials.filter(a=>a.id!==n);return{state:{...o,secretMaterials:i},value:i.length!==o.secretMaterials.length}})},executions:{getById:n=>r.read(o=>{let i=o.executions.find(a=>a.id===n);return i?rn.some(En(i)):rn.none()}),getByScopeAndId:(n,o)=>r.read(i=>{let a=i.executions.find(s=>s.scopeId===n&&s.id===o);return a?rn.some(En(a)):rn.none()}),insert:n=>r.mutate(o=>({state:{...o,executions:[...o.executions,En(n)]},value:void 0})),update:(n,o)=>r.mutate(i=>{let a=null,s=i.executions.map(c=>c.id!==n?c:(a={...c,...En(o)},a));return{state:{...i,executions:s},value:a?rn.some(En(a)):rn.none()}})},executionInteractions:{getById:n=>r.read(o=>{let i=o.executionInteractions.find(a=>a.id===n);return i?rn.some(En(i)):rn.none()}),listByExecutionId:n=>r.read(o=>pX(o.executionInteractions.filter(i=>i.executionId===n))),getPendingByExecutionId:n=>r.read(o=>{let i=pX(o.executionInteractions.filter(a=>a.executionId===n&&a.status==="pending"))[0]??null;return i?rn.some(En(i)):rn.none()}),insert:n=>r.mutate(o=>({state:{...o,executionInteractions:[...o.executionInteractions,En(n)]},value:void 0})),update:(n,o)=>r.mutate(i=>{let a=null,s=i.executionInteractions.map(c=>c.id!==n?c:(a={...c,...En(o)},a));return{state:{...i,executionInteractions:s},value:a?rn.some(En(a)):rn.none()}})},executionSteps:{getByExecutionAndSequence:(n,o)=>r.read(i=>{let a=i.executionSteps.find(s=>s.executionId===n&&s.sequence===o);return a?rn.some(En(a)):rn.none()}),listByExecutionId:n=>r.read(o=>[...o.executionSteps].filter(i=>i.executionId===n).sort((i,a)=>i.sequence-a.sequence||a.updatedAt-i.updatedAt)),insert:n=>r.mutate(o=>({state:{...o,executionSteps:[...o.executionSteps,En(n)]},value:void 0})),deleteByExecutionId:n=>r.mutate(o=>({state:{...o,executionSteps:o.executionSteps.filter(i=>i.executionId!==n)},value:void 0})),updateByExecutionAndSequence:(n,o,i)=>r.mutate(a=>{let s=null,c=a.executionSteps.map(p=>p.executionId!==n||p.sequence!==o?p:(s={...p,...En(i)},s));return{state:{...a,executionSteps:c},value:s?rn.some(En(s)):rn.none()}})}}},J2e=(e,t)=>({executorState:qAt(e,t),close:async()=>{}});import{randomUUID as yX}from"node:crypto";import{spawn as G2e}from"node:child_process";import{isAbsolute as UAt}from"node:path";import{FileSystem as gX}from"@effect/platform";import{NodeFileSystem as zAt}from"@effect/platform-node";import*as yt from"effect/Effect";import*as SX from"effect/Layer";import*as oR from"effect/Option";var vX="env",JAt="params",kf="keychain",Od="local",kS=e=>e instanceof Error?e:new Error(String(e)),VAt="executor",vb=5e3,H2e="DANGEROUSLY_ALLOW_ENV_SECRETS",Z2e="EXECUTOR_SECRET_STORE_PROVIDER",KAt="EXECUTOR_KEYCHAIN_SERVICE_NAME",bb=e=>{if(e==null)return null;let t=e.trim();return t.length>0?t:null},GAt=e=>{let t=bb(e)?.toLowerCase();return t==="1"||t==="true"||t==="yes"},bX=e=>{let t=bb(e)?.toLowerCase();return t===kf?kf:t===Od?Od:null},HAt=e=>e??GAt(process.env[H2e]),ZAt=e=>bb(e)??bb(process.env[KAt])??VAt,wI=e=>{let t=e?.trim();return t&&t.length>0?t:null},W2e=e=>({id:e.id,providerId:e.providerId,name:e.name,purpose:e.purpose,createdAt:e.createdAt,updatedAt:e.updatedAt}),WAt=(e=process.platform)=>e==="darwin"?"security":e==="linux"?"secret-tool":null,CS=e=>yt.tryPromise({try:()=>new Promise((t,r)=>{let n=G2e(e.command,[...e.args],{stdio:"pipe",env:e.env}),o="",i="",a=!1,s=e.timeoutMs===void 0?null:setTimeout(()=>{a||(a=!0,n.kill("SIGKILL"),r(new Error(`${e.operation}: '${e.command}' timed out after ${e.timeoutMs}ms`)))},e.timeoutMs);n.stdout.on("data",c=>{o+=c.toString("utf8")}),n.stderr.on("data",c=>{i+=c.toString("utf8")}),n.on("error",c=>{a||(a=!0,s&&clearTimeout(s),r(new Error(`${e.operation}: failed spawning '${e.command}': ${c.message}`)))}),n.on("close",c=>{a||(a=!0,s&&clearTimeout(s),t({exitCode:c??0,stdout:o,stderr:i}))}),e.stdin!==void 0&&n.stdin.write(e.stdin),n.stdin.end()}),catch:t=>t instanceof Error?t:new Error(`${e.operation}: command execution failed: ${String(t)}`)}),kI=e=>{if(e.result.exitCode===0)return yt.succeed(e.result);let t=wI(e.result.stderr)??wI(e.result.stdout)??"command returned non-zero exit code";return yt.fail(Ne("local/secret-material-providers",`${e.operation}: ${e.message}: ${t}`))},fX=new Map,QAt=e=>yt.tryPromise({try:async()=>{let t=fX.get(e);if(t)return t;let r=new Promise(o=>{let i=G2e(e,["--help"],{stdio:"ignore"}),a=setTimeout(()=>{i.kill("SIGKILL"),o(!1)},2e3);i.on("error",()=>{clearTimeout(a),o(!1)}),i.on("close",()=>{clearTimeout(a),o(!0)})});fX.set(e,r);let n=await r;return n||fX.delete(e),n},catch:t=>t instanceof Error?t:new Error(`command.exists: failed checking '${e}': ${String(t)}`)}),XAt=(e=process.platform)=>{let t=WAt(e);return t===null?yt.succeed(!1):QAt(t)},Q2e=(e={})=>{let t=Od,r=e.storeProviderId??bX((e.env??process.env)[Z2e]);return r?yt.succeed(r):(e.platform??process.platform)!=="darwin"?yt.succeed(t):XAt(e.platform).pipe(yt.map(n=>n?kf:t),yt.catchAll(()=>yt.succeed(t)))},hX=e=>yt.gen(function*(){let t=qp.make(e.id),r=yield*e.runtime.executorState.secretMaterials.getById(t);return oR.isNone(r)?yield*Ne("local/secret-material-providers",`${e.operation}: secret material not found: ${e.id}`):r.value}),X2e=e=>yt.gen(function*(){let t=Date.now(),r=qp.make(`sec_${yX()}`);return yield*e.runtime.executorState.secretMaterials.upsert({id:r,providerId:e.providerId,handle:e.providerHandle,name:bb(e.name),purpose:e.purpose,value:e.value,createdAt:t,updatedAt:t}),{providerId:e.providerId,handle:r}}),mX=e=>yt.gen(function*(){let t=yield*hX({id:e.ref.handle,runtime:e.runtime,operation:e.operation});return t.providerId!==kf?yield*Ne("local/secret-material-providers",`${e.operation}: secret ${t.id} is stored in provider '${t.providerId}', not '${kf}'`):{providerHandle:t.handle,material:t}}),V2e=e=>{switch(process.platform){case"darwin":return CS({command:"security",args:["find-generic-password","-a",e.providerHandle,"-s",e.runtime.keychainServiceName,"-w"],operation:"keychain.get",timeoutMs:vb}).pipe(yt.flatMap(t=>kI({result:t,operation:"keychain.get",message:"Failed loading secret from macOS keychain"})),yt.map(t=>t.stdout.trimEnd()));case"linux":return CS({command:"secret-tool",args:["lookup","service",e.runtime.keychainServiceName,"account",e.providerHandle],operation:"keychain.get",timeoutMs:vb}).pipe(yt.flatMap(t=>kI({result:t,operation:"keychain.get",message:"Failed loading secret from desktop keyring"})),yt.map(t=>t.stdout.trimEnd()));default:return yt.fail(Ne("local/secret-material-providers",`keychain.get: keychain provider is unsupported on platform '${process.platform}'`))}},K2e=e=>{let t=bb(e.name);switch(process.platform){case"darwin":return CS({command:"security",args:["add-generic-password","-a",e.providerHandle,"-s",e.runtime.keychainServiceName,"-w",e.value,...t?["-l",t]:[],"-U"],operation:"keychain.put",timeoutMs:vb}).pipe(yt.flatMap(r=>kI({result:r,operation:"keychain.put",message:"Failed storing secret in macOS keychain"})));case"linux":return CS({command:"secret-tool",args:["store","--label",t??e.runtime.keychainServiceName,"service",e.runtime.keychainServiceName,"account",e.providerHandle],stdin:e.value,operation:"keychain.put",timeoutMs:vb}).pipe(yt.flatMap(r=>kI({result:r,operation:"keychain.put",message:"Failed storing secret in desktop keyring"})));default:return yt.fail(Ne("local/secret-material-providers",`keychain.put: keychain provider is unsupported on platform '${process.platform}'`))}},YAt=e=>{switch(process.platform){case"darwin":return CS({command:"security",args:["delete-generic-password","-a",e.providerHandle,"-s",e.runtime.keychainServiceName],operation:"keychain.delete",timeoutMs:vb}).pipe(yt.map(t=>t.exitCode===0));case"linux":return CS({command:"secret-tool",args:["clear","service",e.runtime.keychainServiceName,"account",e.providerHandle],operation:"keychain.delete",timeoutMs:vb}).pipe(yt.map(t=>t.exitCode===0));default:return yt.fail(Ne("local/secret-material-providers",`keychain.delete: keychain provider is unsupported on platform '${process.platform}'`))}},e2t=()=>({resolve:({ref:e,context:t})=>{let r=wI(t.params?.[e.handle]);return r===null?yt.fail(Ne("local/secret-material-providers",`Secret parameter ${e.handle} is not set`)):yt.succeed(r)},remove:()=>yt.succeed(!1)}),t2t=()=>({resolve:({ref:e,runtime:t})=>{if(!t.dangerouslyAllowEnvSecrets)return yt.fail(Ne("local/secret-material-providers",`Env-backed secrets are disabled. Set ${H2e}=true to allow provider '${vX}'.`));let r=wI(t.env[e.handle]);return r===null?yt.fail(Ne("local/secret-material-providers",`Environment variable ${e.handle} is not set`)):yt.succeed(r)},remove:()=>yt.succeed(!1)}),r2t=()=>({resolve:({ref:e,runtime:t})=>yt.gen(function*(){let r=yield*hX({id:e.handle,runtime:t,operation:"local.get"});return r.providerId!==Od?yield*Ne("local/secret-material-providers",`local.get: secret ${r.id} is stored in provider '${r.providerId}', not '${Od}'`):r.value===null?yield*Ne("local/secret-material-providers",`local.get: secret ${r.id} does not have a local value`):r.value}),store:({purpose:e,value:t,name:r,runtime:n})=>X2e({providerId:Od,providerHandle:`local:${yX()}`,purpose:e,value:t,name:r,runtime:n}),update:({ref:e,name:t,value:r,runtime:n})=>yt.gen(function*(){let o=yield*hX({id:e.handle,runtime:n,operation:"local.update"});if(o.providerId!==Od)return yield*Ne("local/secret-material-providers",`local.update: secret ${o.id} is stored in provider '${o.providerId}', not '${Od}'`);if(t===void 0&&r===void 0)return W2e(o);let i=yield*n.executorState.secretMaterials.updateById(o.id,{...t!==void 0?{name:t}:{},...r!==void 0?{value:r}:{}});return oR.isNone(i)?yield*Ne("local/secret-material-providers",`local.update: secret material not found: ${o.id}`):{id:i.value.id,providerId:i.value.providerId,name:i.value.name,purpose:i.value.purpose,createdAt:i.value.createdAt,updatedAt:i.value.updatedAt}}),remove:({ref:e,runtime:t})=>yt.gen(function*(){let r=qp.make(e.handle);return yield*t.executorState.secretMaterials.removeById(r)})}),n2t=()=>({resolve:({ref:e,runtime:t})=>yt.gen(function*(){let r=yield*mX({ref:e,runtime:t,operation:"keychain.get"});return yield*V2e({providerHandle:r.providerHandle,runtime:t})}),store:({purpose:e,value:t,name:r,runtime:n})=>yt.gen(function*(){let o=yX();return yield*K2e({providerHandle:o,name:r,value:t,runtime:n}),yield*X2e({providerId:kf,providerHandle:o,purpose:e,value:null,name:r,runtime:n})}),update:({ref:e,name:t,value:r,runtime:n})=>yt.gen(function*(){let o=yield*mX({ref:e,runtime:n,operation:"keychain.update"});if(t===void 0&&r===void 0)return W2e(o.material);let i=t??o.material.name,a=r??(yield*V2e({providerHandle:o.providerHandle,runtime:n}));yield*K2e({providerHandle:o.providerHandle,name:i,value:a,runtime:n});let s=yield*n.executorState.secretMaterials.updateById(o.material.id,{name:i});return oR.isNone(s)?yield*Ne("local/secret-material-providers",`keychain.update: secret material not found: ${o.material.id}`):{id:s.value.id,providerId:s.value.providerId,name:s.value.name,purpose:s.value.purpose,createdAt:s.value.createdAt,updatedAt:s.value.updatedAt}}),remove:({ref:e,runtime:t})=>yt.gen(function*(){let r=yield*mX({ref:e,runtime:t,operation:"keychain.delete"});return(yield*YAt({providerHandle:r.providerHandle,runtime:t}))?yield*t.executorState.secretMaterials.removeById(r.material.id):!1})}),iR=()=>new Map([[JAt,e2t()],[vX,t2t()],[kf,n2t()],[Od,r2t()]]),aR=e=>{let t=e.providers.get(e.providerId);return t?yt.succeed(t):yt.fail(Ne("local/secret-material-providers",`Unsupported secret provider: ${e.providerId}`))},sR=e=>({executorState:e.executorState,env:process.env,dangerouslyAllowEnvSecrets:HAt(e.dangerouslyAllowEnvSecrets),keychainServiceName:ZAt(e.keychainServiceName),localConfig:e.localConfig??null,workspaceRoot:e.workspaceRoot??null}),o2t=(e,t)=>yt.gen(function*(){let r=yield*gX.FileSystem,n=yield*r.stat(e).pipe(yt.mapError(kS));if(n.type==="SymbolicLink"){if(!t)return!1;let o=yield*r.realPath(e).pipe(yt.mapError(kS));return(yield*r.stat(o).pipe(yt.mapError(kS))).type==="File"}return n.type==="File"}),i2t=(e,t)=>yt.gen(function*(){if(!t||t.length===0)return!0;let r=yield*gX.FileSystem,n=yield*r.realPath(e).pipe(yt.mapError(kS));for(let o of t){let i=yield*r.realPath(o).pipe(yt.mapError(kS));if(n===i||n.startsWith(`${i}/`))return!0}return!1}),a2t=e=>yt.gen(function*(){let t=yield*gX.FileSystem,r=Sb({path:e.provider.path,scopeRoot:e.workspaceRoot}),n=yield*t.readFileString(r,"utf8").pipe(yt.mapError(kS));return(e.provider.mode??"singleValue")==="singleValue"?n.trim():yield*yt.try({try:()=>{let i=JSON.parse(n);if(e.ref.handle.startsWith("/")){let s=e.ref.handle.split("/").slice(1).map(p=>p.replaceAll("~1","/").replaceAll("~0","~")),c=i;for(let p of s){if(typeof c!="object"||c===null||!(p in c))throw new Error(`Secret path not found in ${r}: ${e.ref.handle}`);c=c[p]}if(typeof c!="string"||c.trim().length===0)throw new Error(`Secret path did not resolve to a string: ${e.ref.handle}`);return c}if(typeof i!="object"||i===null)throw new Error(`JSON secret provider must resolve to an object: ${r}`);let a=i[e.ref.handle];if(typeof a!="string"||a.trim().length===0)throw new Error(`Secret key not found in ${r}: ${e.ref.handle}`);return a},catch:kS})}),s2t=e=>yt.gen(function*(){let t=dI(e.ref.providerId);if(t===null)return yield*Ne("local/secret-material-providers",`Unsupported secret provider: ${e.ref.providerId}`);let r=e.runtime.localConfig?.secrets?.providers?.[t];if(!r)return yield*Ne("local/secret-material-providers",`Config secret provider "${t}" is not configured`);if(e.runtime.workspaceRoot===null)return yield*Ne("local/secret-material-providers",`Config secret provider "${t}" requires a workspace root`);if(r.source==="env"){let a=wI(e.runtime.env[e.ref.handle]);return a===null?yield*Ne("local/secret-material-providers",`Environment variable ${e.ref.handle} is not set`):a}if(r.source==="file")return yield*a2t({provider:r,ref:e.ref,workspaceRoot:e.runtime.workspaceRoot});let n=r.command.trim();return UAt(n)?(yield*o2t(n,r.allowSymlinkCommand??!1))?(yield*i2t(n,r.trustedDirs))?yield*CS({command:n,args:[...r.args??[],e.ref.handle],env:{...e.runtime.env,...r.env},operation:`config-secret.get:${t}`}).pipe(yt.flatMap(a=>kI({result:a,operation:`config-secret.get:${t}`,message:"Failed resolving configured exec secret"})),yt.map(a=>a.stdout.trimEnd())):yield*Ne("local/secret-material-providers",`Exec secret provider command is outside trustedDirs: ${n}`):yield*Ne("local/secret-material-providers",`Exec secret provider command is not an allowed regular file: ${n}`):yield*Ne("local/secret-material-providers",`Exec secret provider command must be absolute: ${n}`)}),Y2e=e=>{let t=iR(),r=sR(e);return({ref:n,context:o})=>yt.gen(function*(){let i=yield*aR({providers:t,providerId:n.providerId}).pipe(yt.catchAll(()=>dI(n.providerId)!==null?yt.succeed(null):yt.fail(Ne("local/secret-material-providers",`Unsupported secret provider: ${n.providerId}`))));return i===null?yield*s2t({ref:n,runtime:r}):yield*i.resolve({ref:n,context:o??{},runtime:r})}).pipe(yt.provide(zAt.layer))},eIe=e=>{let t=iR(),r=sR(e);return({purpose:n,value:o,name:i,providerId:a})=>yt.gen(function*(){let s=yield*Q2e({storeProviderId:bX(a)??void 0,env:r.env}),c=yield*aR({providers:t,providerId:s});return c.store?yield*c.store({purpose:n,value:o,name:i,runtime:r}):yield*Ne("local/secret-material-providers",`Secret provider ${s} does not support storing secret material`)})},tIe=e=>{let t=iR(),r=sR(e);return({ref:n,name:o,value:i})=>yt.gen(function*(){let a=yield*aR({providers:t,providerId:n.providerId});return a.update?yield*a.update({ref:n,name:o,value:i,runtime:r}):yield*Ne("local/secret-material-providers",`Secret provider ${n.providerId} does not support updating secret material`)})},rIe=e=>{let t=iR(),r=sR(e);return n=>yt.gen(function*(){let o=yield*aR({providers:t,providerId:n.providerId});return o.remove?yield*o.remove({ref:n,runtime:r}):!1})};var nIe=()=>()=>{let e=bX(process.env[Z2e]),t=[{id:Od,name:"Local store",canStore:!0}];return(process.platform==="darwin"||process.platform==="linux")&&t.push({id:kf,name:process.platform==="darwin"?"macOS Keychain":"Desktop Keyring",canStore:process.platform==="darwin"||e===kf}),t.push({id:vX,name:"Environment variable",canStore:!1}),Q2e({storeProviderId:e??void 0}).pipe(yt.map(r=>({platform:process.platform,secretProviders:t,defaultSecretStoreProvider:r})))};import{join as cR}from"node:path";import{FileSystem as xX}from"@effect/platform";import*as Va from"effect/Effect";import*as oIe from"effect/Option";import*as ca from"effect/Schema";var iIe=3,CI=4,lYt=ca.Struct({version:ca.Literal(iIe),sourceId:Mn,catalogId:Rc,generatedAt:It,revision:UT,snapshot:FT}),uYt=ca.Struct({version:ca.Literal(CI),sourceId:Mn,catalogId:Rc,generatedAt:It,revision:UT,snapshot:FT}),c2t=ca.Struct({version:ca.Literal(iIe),sourceId:Mn,catalogId:Rc,generatedAt:It,revision:UT,snapshot:ca.Unknown}),l2t=ca.Struct({version:ca.Literal(CI),sourceId:Mn,catalogId:Rc,generatedAt:It,revision:UT,snapshot:ca.Unknown}),u2t=ca.decodeUnknownOption(ca.parseJson(ca.Union(l2t,c2t))),p2t=e=>e.version===CI?e:{...e,version:CI},d2t=e=>e,aIe=e=>{let t=structuredClone(e),r=[];for(let[n,o]of Object.entries(t.snapshot.catalog.documents)){let i=o,a=o.native?.find(c=>c.kind==="source_document"&&typeof c.value=="string");if(!a||typeof a.value!="string")continue;r.push({documentId:n,blob:a,content:a.value});let s=(o.native??[]).filter(c=>c!==a);s.length>0?i.native=s:delete i.native}return{artifact:t,rawDocuments:r}},sIe=e=>{let t=structuredClone(e.artifact),r=d2t(t.snapshot.catalog.documents);for(let[n,o]of Object.entries(e.rawDocuments)){let i=r[n];if(!i)continue;let a=(i.native??[]).filter(s=>s.kind!=="source_document");i.native=[o,...a]}return t},_2t=e=>LT(JSON.stringify(e)),f2t=e=>LT(JSON.stringify(e.import)),m2t=e=>{try{return L6(e)}catch{return null}},cIe=e=>{let t=u2t(e);if(oIe.isNone(t))return null;let r=p2t(t.value),n=m2t(r.snapshot);return n===null?null:{...r,snapshot:n}},Cf=e=>{let t=DF(e.source),r=Date.now(),n=$T(e.syncResult),o=f2t(n),i=_2t(n),a=zTe({source:e.source,catalogId:t,revisionNumber:1,importMetadataJson:JSON.stringify(n.import),importMetadataHash:o,snapshotHash:i});return{version:CI,sourceId:e.source.id,catalogId:t,generatedAt:r,revision:a,snapshot:n}};var nu=(e,t)=>r=>new gc({message:`Failed to ${t} ${e}: ${Yo(r)}`,action:t,path:e,details:Yo(r)}),EX=e=>cR(e.context.artifactsDirectory,"sources",`${e.sourceId}.json`),TX=e=>cR(e.context.artifactsDirectory,"sources",e.sourceId,"documents"),lIe=e=>cR(TX(e),`${e.documentId}.txt`);var lR=e=>Va.gen(function*(){let t=yield*xX.FileSystem,r=EX(e);if(!(yield*t.exists(r).pipe(Va.mapError(nu(r,"check source artifact path")))))return null;let o=yield*t.readFileString(r,"utf8").pipe(Va.mapError(nu(r,"read source artifact"))),i=cIe(o);if(i===null)return null;let a={};for(let s of Object.keys(i.snapshot.catalog.documents)){let c=lIe({context:e.context,sourceId:e.sourceId,documentId:s});if(!(yield*t.exists(c).pipe(Va.mapError(nu(c,"check source document path")))))continue;let d=yield*t.readFileString(c,"utf8").pipe(Va.mapError(nu(c,"read source document")));a[s]={sourceKind:i.snapshot.import.sourceKind,kind:"source_document",value:d}}return Object.keys(a).length>0?sIe({artifact:i,rawDocuments:a}):i}),uR=e=>Va.gen(function*(){let t=yield*xX.FileSystem,r=cR(e.context.artifactsDirectory,"sources"),n=EX(e),o=TX(e),i=aIe(e.artifact);if(yield*t.makeDirectory(r,{recursive:!0}).pipe(Va.mapError(nu(r,"create source artifact directory"))),yield*t.remove(o,{recursive:!0,force:!0}).pipe(Va.mapError(nu(o,"remove source document directory"))),i.rawDocuments.length>0){yield*t.makeDirectory(o,{recursive:!0}).pipe(Va.mapError(nu(o,"create source document directory")));for(let a of i.rawDocuments){let s=lIe({context:e.context,sourceId:e.sourceId,documentId:a.documentId});yield*t.writeFileString(s,a.content).pipe(Va.mapError(nu(s,"write source document")))}}yield*t.writeFileString(n,`${JSON.stringify(i.artifact)} +`).pipe(Va.mapError(nu(n,"write source artifact")))}),pR=e=>Va.gen(function*(){let t=yield*xX.FileSystem,r=EX(e);(yield*t.exists(r).pipe(Va.mapError(nu(r,"check source artifact path"))))&&(yield*t.remove(r).pipe(Va.mapError(nu(r,"remove source artifact"))));let o=TX(e);yield*t.remove(o,{recursive:!0,force:!0}).pipe(Va.mapError(nu(o,"remove source document directory")))});import{createHash as uIe}from"node:crypto";import{dirname as AX,extname as PI,join as PS,relative as IX,resolve as h2t,sep as dIe}from"node:path";import{fileURLToPath as y2t,pathToFileURL as g2t}from"node:url";import{FileSystem as OI}from"@effect/platform";import*as Rn from"effect/Effect";import*as ou from"typescript";var S2t=new Set([".ts",".js",".mjs"]),v2t="tools",b2t="local-tools",x2t="local.tool",E2t=/^[A-Za-z0-9_-]+$/;var T2t=()=>{let e={};return{tools:e,catalog:r_({tools:e}),toolInvoker:t_({tools:e}),toolPaths:new Set}},Nd=(e,t)=>r=>new gc({message:`Failed to ${t} ${e}: ${Yo(r)}`,action:t,path:e,details:Yo(r)}),D2t=e=>PS(e.configDirectory,v2t),A2t=e=>PS(e.artifactsDirectory,b2t),I2t=e=>S2t.has(PI(e)),w2t=e=>e.startsWith(".")||e.startsWith("_"),k2t=e=>{let t=PI(e);return`${e.slice(0,-t.length)}.js`},C2t=e=>Rn.gen(function*(){let r=e.slice(0,-PI(e).length).split(dIe).filter(Boolean),n=r.at(-1)==="index"?r.slice(0,-1):r;if(n.length===0)return yield*new ty({message:`Invalid local tool path ${e}: root index files are not supported`,path:e,details:"Root index files are not supported. Use a named file such as hello.ts or a nested index.ts."});for(let o of n)if(!E2t.test(o))return yield*new ty({message:`Invalid local tool path ${e}: segment ${o} contains unsupported characters`,path:e,details:`Tool path segments may only contain letters, numbers, underscores, and hyphens. Invalid segment: ${o}`});return n.join(".")}),P2t=e=>Rn.gen(function*(){return(yield*(yield*OI.FileSystem).readDirectory(e).pipe(Rn.mapError(Nd(e,"read local tools directory")))).sort((n,o)=>n.localeCompare(o))}),O2t=e=>Rn.gen(function*(){let t=yield*OI.FileSystem;if(!(yield*t.exists(e).pipe(Rn.mapError(Nd(e,"check local tools directory")))))return[];let n=o=>Rn.gen(function*(){let i=yield*P2t(o),a=[];for(let s of i){let c=PS(o,s),p=yield*t.stat(c).pipe(Rn.mapError(Nd(c,"stat local tool path")));if(p.type==="Directory"){a.push(...yield*n(c));continue}p.type==="File"&&I2t(c)&&a.push(c)}return a});return yield*n(e)}),N2t=(e,t)=>t.filter(r=>IX(e,r).split(dIe).every(n=>!w2t(n))),F2t=(e,t)=>{let r=(t??[]).filter(n=>n.category===ou.DiagnosticCategory.Error).map(n=>{let o=ou.flattenDiagnosticMessageText(n.messageText,` +`);if(!n.file||n.start===void 0)return o;let i=n.file.getLineAndCharacterOfPosition(n.start);return`${i.line+1}:${i.character+1} ${o}`});return r.length===0?null:new QF({message:`Failed to transpile local tool ${e}`,path:e,details:r.join(` +`)})},DX=e=>{if(!e.startsWith("./")&&!e.startsWith("../"))return e;let t=e.match(/^(.*?)(\?.*|#.*)?$/),r=t?.[1]??e,n=t?.[2]??"",o=PI(r);return o===".js"?e:[".ts",".mjs"].includes(o)?`${r.slice(0,-o.length)}.js${n}`:o.length>0?e:`${r}.js${n}`},pIe=e=>e.replace(/(from\s+["'])(\.{1,2}\/[^"']+)(["'])/g,(t,r,n,o)=>`${r}${DX(n)}${o}`).replace(/(import\s+["'])(\.{1,2}\/[^"']+)(["'])/g,(t,r,n,o)=>`${r}${DX(n)}${o}`).replace(/(import\(\s*["'])(\.{1,2}\/[^"']+)(["']\s*\))/g,(t,r,n,o)=>`${r}${DX(n)}${o}`),R2t=e=>Rn.gen(function*(){if(PI(e.sourcePath)!==".ts")return pIe(e.content);let t=ou.transpileModule(e.content,{fileName:e.sourcePath,compilerOptions:{module:ou.ModuleKind.ESNext,moduleResolution:ou.ModuleResolutionKind.Bundler,target:ou.ScriptTarget.ES2022,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1},reportDiagnostics:!0}),r=F2t(e.sourcePath,t.diagnostics);return r?yield*r:pIe(t.outputText)}),L2t=()=>Rn.gen(function*(){let e=yield*OI.FileSystem,t=AX(y2t(import.meta.url));for(;;){let r=PS(t,"node_modules");if(yield*e.exists(r).pipe(Rn.mapError(Nd(r,"check executor node_modules directory"))))return r;let o=AX(t);if(o===t)return null;t=o}}),$2t=e=>Rn.gen(function*(){let t=yield*OI.FileSystem,r=PS(e,"node_modules"),n=yield*L2t();(yield*t.exists(r).pipe(Rn.mapError(Nd(r,"check local tool node_modules link"))))||n!==null&&(yield*t.symlink(n,r).pipe(Rn.mapError(Nd(r,"create local tool node_modules link"))))}),M2t=e=>Rn.gen(function*(){let t=yield*OI.FileSystem,r=yield*Rn.forEach(e.sourceFiles,a=>Rn.gen(function*(){let s=yield*t.readFileString(a,"utf8").pipe(Rn.mapError(Nd(a,"read local tool source"))),c=IX(e.sourceDirectory,a),p=uIe("sha256").update(c).update("\0").update(s).digest("hex").slice(0,12);return{sourcePath:a,relativePath:c,content:s,contentHash:p}})),n=uIe("sha256").update(JSON.stringify(r.map(a=>[a.relativePath,a.contentHash]))).digest("hex").slice(0,16),o=PS(A2t(e.context),n);yield*t.makeDirectory(o,{recursive:!0}).pipe(Rn.mapError(Nd(o,"create local tool artifact directory"))),yield*$2t(o);let i=new Map;for(let a of r){let s=k2t(a.relativePath),c=PS(o,s),p=AX(c),d=yield*R2t({sourcePath:a.sourcePath,content:a.content});yield*t.makeDirectory(p,{recursive:!0}).pipe(Rn.mapError(Nd(p,"create local tool artifact parent directory"))),yield*t.writeFileString(c,d).pipe(Rn.mapError(Nd(c,"write local tool artifact"))),i.set(a.sourcePath,c)}return i}),_Ie=e=>typeof e=="object"&&e!==null&&"inputSchema"in e&&typeof e.execute=="function",j2t=e=>typeof e=="object"&&e!==null&&"tool"in e&&_Ie(e.tool),B2t=e=>{let t=`${x2t}.${e.toolPath}`;if(j2t(e.exported)){let r=e.exported;return Rn.succeed({...r,metadata:{...r.metadata,sourceKey:t}})}if(_Ie(e.exported)){let r=e.exported;return Rn.succeed({tool:r,metadata:{sourceKey:t}})}return Rn.fail(new ty({message:`Invalid local tool export in ${e.sourcePath}`,path:e.sourcePath,details:"Local tool files must export a default value or named `tool` export containing either an executable tool or a `{ tool, metadata? }` definition."}))},q2t=e=>Rn.tryPromise({try:()=>import(g2t(h2t(e.artifactPath)).href),catch:t=>new xI({message:`Failed to import local tool ${e.sourcePath}`,path:e.sourcePath,details:Yo(t)})}).pipe(Rn.flatMap(t=>{let r=t.default!==void 0,n=t.tool!==void 0;return r&&n?Rn.fail(new ty({message:`Invalid local tool export in ${e.sourcePath}`,path:e.sourcePath,details:"Export either a default tool or a named `tool` export, but not both."})):!r&&!n?Rn.fail(new ty({message:`Missing local tool export in ${e.sourcePath}`,path:e.sourcePath,details:"Expected a default export or named `tool` export."})):B2t({toolPath:e.toolPath,sourcePath:e.sourcePath,exported:r?t.default:t.tool})})),fIe=e=>Rn.gen(function*(){let t=D2t(e),r=yield*O2t(t);if(r.length===0)return T2t();let n=yield*M2t({context:e,sourceDirectory:t,sourceFiles:r}),o=N2t(t,r),i={},a=new Map;for(let s of o){let c=IX(t,s),p=yield*C2t(c),d=a.get(p);if(d)return yield*new XF({message:`Local tool path conflict for ${p}`,path:s,otherPath:d,toolPath:p});let f=n.get(s);if(!f)return yield*new xI({message:`Missing compiled artifact for local tool ${s}`,path:s,details:"Expected a compiled local tool artifact, but none was produced."});i[p]=yield*q2t({sourcePath:s,artifactPath:f,toolPath:p}),a.set(p,s)}return{tools:i,catalog:r_({tools:i}),toolInvoker:t_({tools:i}),toolPaths:new Set(Object.keys(i))}});import{join as J2t}from"node:path";import{FileSystem as yIe}from"@effect/platform";import*as Fd from"effect/Effect";import*as gIe from"effect/Schema";import*as Ka from"effect/Schema";var U2t=Ka.Struct({status:Dv,lastError:Ka.NullOr(Ka.String),sourceHash:Ka.NullOr(Ka.String),createdAt:It,updatedAt:It}),z2t=Ka.Struct({id:bv,createdAt:It,updatedAt:It}),mIe=Ka.Struct({version:Ka.Literal(1),sources:Ka.Record({key:Ka.String,value:U2t}),policies:Ka.Record({key:Ka.String,value:z2t})}),hIe=()=>({version:1,sources:{},policies:{}});var V2t="workspace-state.json",K2t=gIe.decodeUnknownSync(mIe),dR=(e,t)=>r=>new gc({message:`Failed to ${t} ${e}: ${Yo(r)}`,action:t,path:e,details:Yo(r)}),SIe=e=>J2t(e.stateDirectory,V2t),_R=e=>Fd.gen(function*(){let t=yield*yIe.FileSystem,r=SIe(e);if(!(yield*t.exists(r).pipe(Fd.mapError(dR(r,"check workspace state path")))))return hIe();let o=yield*t.readFileString(r,"utf8").pipe(Fd.mapError(dR(r,"read workspace state")));return yield*Fd.try({try:()=>K2t(JSON.parse(o)),catch:i=>new WF({message:`Invalid local scope state at ${r}: ${Yo(i)}`,path:r,details:Yo(i)})})}),fR=e=>Fd.gen(function*(){let t=yield*yIe.FileSystem;yield*t.makeDirectory(e.context.stateDirectory,{recursive:!0}).pipe(Fd.mapError(dR(e.context.stateDirectory,"create state directory")));let r=SIe(e.context);yield*t.writeFileString(r,`${JSON.stringify(e.state,null,2)} +`).pipe(Fd.mapError(dR(r,"write workspace state")))});import{join as NI}from"node:path";import{FileSystem as bIe}from"@effect/platform";import{NodeFileSystem as xIe}from"@effect/platform-node";import*as mR from"effect/Cause";import*as yn from"effect/Effect";import*as PX from"effect/Fiber";var G2t="types",H2t="sources",tl=(e,t)=>r=>new gc({message:`Failed to ${t} ${e}: ${Yo(r)}`,action:t,path:e,details:Yo(r)}),hR=e=>NI(e.configDirectory,G2t),OX=e=>NI(hR(e),H2t),EIe=e=>`${e}.d.ts`,TIe=(e,t)=>NI(OX(e),EIe(t)),DIe=e=>NI(hR(e),"index.d.ts"),CX=e=>`SourceTools_${e.replace(/[^A-Za-z0-9_$]+/g,"_")}`,Z2t=e=>`(${e.argsOptional?"args?:":"args:"} ${e.inputType}) => Promise<${e.outputType}>`,vIe=()=>({method:null,children:new Map}),W2t=(e,t)=>e.length===0?"{}":["{",...e.map(r=>`${t}${r}`),`${t.slice(0,-2)}}`].join(` +`),AIe=(e,t)=>{let r=" ".repeat(t+1),n=[...e.children.entries()].sort(([a],[s])=>a.localeCompare(s)).map(([a,s])=>`${pq(a)}: ${AIe(s,t+1)};`),o=W2t(n,r);if(e.method===null)return o;let i=Z2t(e.method);return e.children.size===0?i:`(${i}) & ${o}`},Q2t=e=>{let t=vIe();for(let r of e){let n=t;for(let o of r.segments){let i=n.children.get(o);if(i){n=i;continue}let a=vIe();n.children.set(o,a),n=a}n.method=r}return t},X2t=e=>{let t=RT({catalog:e.catalog}),r=Object.values(t.toolDescriptors).sort((i,a)=>i.toolPath.join(".").localeCompare(a.toolPath.join("."))),n=HT({catalog:t.catalog,roots:a3(t)});return{methods:r.map(i=>({segments:i.toolPath,inputType:n.renderDeclarationShape(i.callShapeId,{aliasHint:di(...i.toolPath,"call")}),outputType:i.resultShapeId?n.renderDeclarationShape(i.resultShapeId,{aliasHint:di(...i.toolPath,"result")}):"unknown",argsOptional:ZT(t.catalog,i.callShapeId)})),supportingTypes:n.supportingDeclarations()}},IIe=e=>{let t=CX(e.source.id),r=X2t(e.snapshot),n=Q2t(r.methods),o=AIe(n,0);return["// Generated by executor. Do not edit by hand.",`// Source: ${e.source.name} (${e.source.id})`,"",...r.supportingTypes,...r.supportingTypes.length>0?[""]:[],`export interface ${t} ${o}`,"",`export declare const tools: ${t};`,`export type ${t}Tools = ${t};`,"export default tools;",""].join(` +`)},Y2t=e=>wIe(e.map(t=>({sourceId:t.source.id}))),wIe=e=>{let t=[...e].sort((i,a)=>i.sourceId.localeCompare(a.sourceId)),r=t.map(i=>`import type { ${CX(i.sourceId)} } from "../sources/${i.sourceId}";`),n=t.map(i=>CX(i.sourceId)),o=n.length>0?n.join(" & "):"{}";return["// Generated by executor. Do not edit by hand.",...r,...r.length>0?[""]:[],`export type ExecutorSourceTools = ${o};`,"","declare global {"," const tools: ExecutorSourceTools;","}","","export declare const tools: ExecutorSourceTools;","export default tools;",""].join(` +`)},eIt=e=>yn.gen(function*(){let t=yield*bIe.FileSystem,r=hR(e.context),n=OX(e.context),o=e.entries.filter(c=>c.source.enabled&&c.source.status==="connected").sort((c,p)=>c.source.id.localeCompare(p.source.id));yield*t.makeDirectory(r,{recursive:!0}).pipe(yn.mapError(tl(r,"create declaration directory"))),yield*t.makeDirectory(n,{recursive:!0}).pipe(yn.mapError(tl(n,"create source declaration directory")));let i=new Set(o.map(c=>EIe(c.source.id))),a=yield*t.readDirectory(n).pipe(yn.mapError(tl(n,"read source declaration directory")));for(let c of a){if(i.has(c))continue;let p=NI(n,c);yield*t.remove(p).pipe(yn.mapError(tl(p,"remove stale source declaration")))}for(let c of o){let p=TIe(e.context,c.source.id);yield*t.writeFileString(p,IIe(c)).pipe(yn.mapError(tl(p,"write source declaration")))}let s=DIe(e.context);yield*t.writeFileString(s,Y2t(o)).pipe(yn.mapError(tl(s,"write aggregate declaration")))}),tIt=e=>yn.gen(function*(){let t=yield*bIe.FileSystem,r=hR(e.context),n=OX(e.context);yield*t.makeDirectory(r,{recursive:!0}).pipe(yn.mapError(tl(r,"create declaration directory"))),yield*t.makeDirectory(n,{recursive:!0}).pipe(yn.mapError(tl(n,"create source declaration directory")));let o=TIe(e.context,e.source.id);if(e.source.enabled&&e.source.status==="connected"&&e.snapshot!==null){let c=e.snapshot;if(c===null)return;yield*t.writeFileString(o,IIe({source:e.source,snapshot:c})).pipe(yn.mapError(tl(o,"write source declaration")))}else(yield*t.exists(o).pipe(yn.mapError(tl(o,"check source declaration path"))))&&(yield*t.remove(o).pipe(yn.mapError(tl(o,"remove source declaration"))));let a=(yield*t.readDirectory(n).pipe(yn.mapError(tl(n,"read source declaration directory")))).filter(c=>c.endsWith(".d.ts")).map(c=>({sourceId:c.slice(0,-5)})),s=DIe(e.context);yield*t.writeFileString(s,wIe(a)).pipe(yn.mapError(tl(s,"write aggregate declaration")))}),NX=e=>eIt(e).pipe(yn.provide(xIe.layer)),FX=e=>tIt(e).pipe(yn.provide(xIe.layer)),kIe=(e,t)=>{let r=mR.isCause(t)?mR.pretty(t):t instanceof Error?t.message:String(t);console.warn(`[source-types] ${e} failed: ${r}`)},CIe="1500 millis",wX=new Map,kX=new Map,yR=e=>{let t=e.context.configDirectory,r=wX.get(t);r&&yn.runFork(PX.interruptFork(r));let n=yn.runFork(yn.sleep(CIe).pipe(yn.zipRight(NX(e).pipe(yn.catchAllCause(o=>yn.sync(()=>{kIe("workspace declaration refresh",o)}))))));wX.set(t,n),n.addObserver(()=>{wX.delete(t)})},gR=e=>{let t=`${e.context.configDirectory}:${e.source.id}`,r=kX.get(t);r&&yn.runFork(PX.interruptFork(r));let n=yn.runFork(yn.sleep(CIe).pipe(yn.zipRight(FX(e).pipe(yn.catchAllCause(o=>yn.sync(()=>{kIe(`source ${e.source.id} declaration refresh`,o)}))))));kX.set(t,n),n.addObserver(()=>{kX.delete(t)})};var Rd=e=>e instanceof Error?e:new Error(String(e)),Pf=(e,t)=>t.pipe(Ki.provideService(PIe.FileSystem,e)),iIt=e=>({load:()=>AI(e).pipe(Ki.mapError(Rd)),getOrProvision:()=>rR({context:e}).pipe(Ki.mapError(Rd))}),aIt=(e,t)=>({load:()=>Pf(t,eR(e)).pipe(Ki.mapError(Rd)),writeProject:r=>Pf(t,tR({context:e,config:r})).pipe(Ki.mapError(Rd)),resolveRelativePath:Sb}),sIt=(e,t)=>({load:()=>Pf(t,_R(e)).pipe(Ki.mapError(Rd)),write:r=>Pf(t,fR({context:e,state:r})).pipe(Ki.mapError(Rd))}),cIt=(e,t)=>({build:Cf,read:r=>Pf(t,lR({context:e,sourceId:r})).pipe(Ki.mapError(Rd)),write:({sourceId:r,artifact:n})=>Pf(t,uR({context:e,sourceId:r,artifact:n})).pipe(Ki.mapError(Rd)),remove:r=>Pf(t,pR({context:e,sourceId:r})).pipe(Ki.mapError(Rd))}),lIt=(e,t)=>({load:()=>Pf(t,fIe(e))}),uIt=e=>({refreshWorkspaceInBackground:({entries:t})=>Ki.sync(()=>{yR({context:e,entries:t})}),refreshSourceInBackground:({source:t,snapshot:r})=>Ki.sync(()=>{gR({context:e,source:t,snapshot:r})})}),pIt=e=>({scopeName:e.workspaceName,scopeRoot:e.workspaceRoot,metadata:{kind:"file",configDirectory:e.configDirectory,projectConfigPath:e.projectConfigPath,homeConfigPath:e.homeConfigPath,homeStateDirectory:e.homeStateDirectory,artifactsDirectory:e.artifactsDirectory,stateDirectory:e.stateDirectory}}),OIe=(e={},t={})=>Ki.gen(function*(){let r=yield*PIe.FileSystem,n=yield*Pf(r,YF({cwd:e.cwd,workspaceRoot:e.workspaceRoot,homeConfigPath:e.homeConfigPath,homeStateDirectory:e.homeStateDirectory})).pipe(Ki.mapError(Rd)),o=J2e(n,r),i=aIt(n,r),a=yield*i.load(),s=t.resolveSecretMaterial??Y2e({executorState:o.executorState,localConfig:a.config,workspaceRoot:n.workspaceRoot});return{scope:pIt(n),installation:iIt(n),workspace:{config:i,state:sIt(n,r),sourceArtifacts:cIt(n,r),sourceAuth:{artifacts:o.executorState.authArtifacts,leases:o.executorState.authLeases,sourceOauthClients:o.executorState.sourceOauthClients,scopeOauthClients:o.executorState.scopeOauthClients,providerGrants:o.executorState.providerAuthGrants,sourceSessions:o.executorState.sourceAuthSessions},localTools:lIt(n,r),sourceTypeDeclarations:uIt(n)},secrets:{...o.executorState.secretMaterials,resolve:s,store:eIe({executorState:o.executorState}),delete:rIe({executorState:o.executorState}),update:tIe({executorState:o.executorState})},executions:{runs:o.executorState.executions,interactions:o.executorState.executionInteractions,steps:o.executorState.executionSteps},instanceConfig:{resolve:nIe()},close:o.close}}).pipe(Ki.provide(oIt.layer)),RX=(e={})=>Yh({loadRepositories:t=>OIe(e,t)});import*as $Ie from"effect/Effect";import*as OS from"effect/Effect";var NIe={action:"accept"},dIt={action:"decline"},_It=e=>{let t=e.context??{},r=t.invocationDescriptor??{};return{toolPath:String(e.path),sourceId:String(r.sourceId??e.sourceKey??""),sourceName:String(r.sourceName??""),operationKind:r.operationKind??"unknown",args:e.args,reason:String(t.interactionReason??"Approval required"),approvalLabel:typeof r.approvalLabel=="string"?r.approvalLabel:null,context:t}},fIt=e=>{let t=e.context??{};return e.elicitation.mode==="url"?{kind:"url",url:e.elicitation.url,message:e.elicitation.message,sourceId:e.sourceKey||void 0,context:t}:{kind:"form",message:e.elicitation.message,requestedSchema:e.elicitation.requestedSchema,toolPath:String(e.path)||void 0,sourceId:e.sourceKey||void 0,context:t}},mIt=e=>e.context?.interactionPurpose==="tool_execution_gate",FIe=e=>{let{onToolApproval:t,onInteraction:r}=e;return n=>OS.gen(function*(){if(mIt(n)){if(t==="allow-all"||t===void 0)return NIe;if(t==="deny-all")return dIt;let a=_It(n);return(yield*OS.tryPromise({try:()=>Promise.resolve(t(a)),catch:c=>c instanceof Error?c:new Error(String(c))})).approved?NIe:{action:"decline"}}if(!r){let a=n.elicitation.mode??"form";return yield*OS.fail(new Error(`An ${a} interaction was requested (${n.elicitation.message}), but no onInteraction callback was provided`))}let o=fIt(n),i=yield*OS.tryPromise({try:()=>Promise.resolve(r(o)),catch:a=>a instanceof Error?a:new Error(String(a))});return{action:i.action,content:"content"in i?i.content:void 0}})};var rl=e=>JSON.parse(JSON.stringify(e)),hIt=(e,t)=>{let r=e.find(t);return r!=null?rl(r):null},yIt=()=>{let e=Br.make(`ws_mem_${crypto.randomUUID().slice(0,16)}`),t=Br.make(`acc_mem_${crypto.randomUUID().slice(0,16)}`);return{scopeId:e,actorScopeId:t,resolutionScopeIds:[e,t]}},Ld=()=>{let e=[];return{items:e,findBy:t=>hIt(e,t),filterBy:t=>rl(e.filter(t)),insert:t=>{e.push(rl(t))},upsertBy:(t,r)=>{let n=t(r),o=e.findIndex(i=>t(i)===n);o>=0?e[o]=rl(r):e.push(rl(r))},removeBy:t=>{let r=e.findIndex(t);return r>=0?(e.splice(r,1),!0):!1},removeAllBy:t=>{let r=e.length,n=e.filter(o=>!t(o));return e.length=0,e.push(...n),r-n.length},updateBy:(t,r)=>{let n=e.find(t);return n?(Object.assign(n,r),rl(n)):null}}},RIe=e=>Yh({loadRepositories:t=>{let r=yIt(),n=e?.resolveSecret,o=Ld(),i=Ld(),a=Ld(),s=Ld(),c=Ld(),p=Ld(),d=Ld(),f=Ld(),m=Ld(),y=Ld(),g=new Map;return{scope:{scopeName:"memory",scopeRoot:process.cwd()},installation:{load:()=>rl(r),getOrProvision:()=>rl(r)},workspace:{config:(()=>{let S=null;return{load:()=>({config:S,homeConfig:null,projectConfig:S}),writeProject:b=>{S=rl(b)},resolveRelativePath:({path:b})=>b}})(),state:(()=>{let S={version:1,sources:{},policies:{}};return{load:()=>rl(S),write:b=>{S=rl(b)}}})(),sourceArtifacts:{build:Cf,read:S=>g.get(S)??null,write:({sourceId:S,artifact:b})=>{g.set(S,b)},remove:S=>{g.delete(S)}},sourceAuth:{artifacts:{listByScopeId:S=>o.filterBy(b=>b.scopeId===S),listByScopeAndSourceId:({scopeId:S,sourceId:b})=>o.filterBy(E=>E.scopeId===S&&E.sourceId===b),getByScopeSourceAndActor:({scopeId:S,sourceId:b,actorScopeId:E,slot:I})=>o.findBy(T=>T.scopeId===S&&T.sourceId===b&&T.actorScopeId===E&&T.slot===I),upsert:S=>o.upsertBy(b=>`${b.scopeId}:${b.sourceId}:${b.actorScopeId}:${b.slot}`,S),removeByScopeSourceAndActor:({scopeId:S,sourceId:b,actorScopeId:E,slot:I})=>o.removeBy(T=>T.scopeId===S&&T.sourceId===b&&T.actorScopeId===E&&(I===void 0||T.slot===I)),removeByScopeAndSourceId:({scopeId:S,sourceId:b})=>o.removeAllBy(E=>E.scopeId===S&&E.sourceId===b)},leases:{listAll:()=>rl(i.items),getByAuthArtifactId:S=>i.findBy(b=>b.authArtifactId===S),upsert:S=>i.upsertBy(b=>b.authArtifactId,S),removeByAuthArtifactId:S=>i.removeBy(b=>b.authArtifactId===S)},sourceOauthClients:{getByScopeSourceAndProvider:({scopeId:S,sourceId:b,providerKey:E})=>a.findBy(I=>I.scopeId===S&&I.sourceId===b&&I.providerKey===E),upsert:S=>a.upsertBy(b=>`${b.scopeId}:${b.sourceId}:${b.providerKey}`,S),removeByScopeAndSourceId:({scopeId:S,sourceId:b})=>a.removeAllBy(E=>E.scopeId===S&&E.sourceId===b)},scopeOauthClients:{listByScopeAndProvider:({scopeId:S,providerKey:b})=>s.filterBy(E=>E.scopeId===S&&E.providerKey===b),getById:S=>s.findBy(b=>b.id===S),upsert:S=>s.upsertBy(b=>b.id,S),removeById:S=>s.removeBy(b=>b.id===S)},providerGrants:{listByScopeId:S=>c.filterBy(b=>b.scopeId===S),listByScopeActorAndProvider:({scopeId:S,actorScopeId:b,providerKey:E})=>c.filterBy(I=>I.scopeId===S&&I.actorScopeId===b&&I.providerKey===E),getById:S=>c.findBy(b=>b.id===S),upsert:S=>c.upsertBy(b=>b.id,S),removeById:S=>c.removeBy(b=>b.id===S)},sourceSessions:{listAll:()=>rl(p.items),listByScopeId:S=>p.filterBy(b=>b.scopeId===S),getById:S=>p.findBy(b=>b.id===S),getByState:S=>p.findBy(b=>b.state===S),getPendingByScopeSourceAndActor:({scopeId:S,sourceId:b,actorScopeId:E,credentialSlot:I})=>p.findBy(T=>T.scopeId===S&&T.sourceId===b&&T.actorScopeId===E&&T.status==="pending"&&(I===void 0||T.credentialSlot===I)),insert:S=>p.insert(S),update:(S,b)=>p.updateBy(E=>E.id===S,b),upsert:S=>p.upsertBy(b=>b.id,S),removeByScopeAndSourceId:(S,b)=>p.removeAllBy(E=>E.scopeId===S&&E.sourceId===b)>0}}},secrets:{getById:S=>d.findBy(b=>b.id===S),listAll:()=>d.items.map(S=>({id:S.id,providerId:S.providerId,name:S.name,purpose:S.purpose,createdAt:S.createdAt,updatedAt:S.updatedAt})),upsert:S=>d.upsertBy(b=>b.id,S),updateById:(S,b)=>d.updateBy(E=>E.id===S,{...b,updatedAt:Date.now()}),removeById:S=>d.removeBy(b=>b.id===S),resolve:n?({secretId:S,context:b})=>Promise.resolve(n({secretId:S,context:b})):({secretId:S})=>d.items.find(E=>E.id===S)?.value??null,store:S=>{let b=Date.now(),E={...S,createdAt:b,updatedAt:b};d.upsertBy(k=>k.id,E);let{value:I,...T}=E;return T},delete:S=>d.removeBy(b=>b.id===S.id),update:S=>d.updateBy(b=>b.id===S.id,{...S,updatedAt:Date.now()})},executions:{runs:{getById:S=>f.findBy(b=>b.id===S),getByScopeAndId:(S,b)=>f.findBy(E=>E.scopeId===S&&E.id===b),insert:S=>f.insert(S),update:(S,b)=>f.updateBy(E=>E.id===S,b)},interactions:{getById:S=>m.findBy(b=>b.id===S),listByExecutionId:S=>m.filterBy(b=>b.executionId===S),getPendingByExecutionId:S=>m.findBy(b=>b.executionId===S&&b.status==="pending"),insert:S=>m.insert(S),update:(S,b)=>m.updateBy(E=>E.id===S,b)},steps:{getByExecutionAndSequence:(S,b)=>y.findBy(E=>E.executionId===S&&E.sequence===b),listByExecutionId:S=>y.filterBy(b=>b.executionId===S),insert:S=>y.insert(S),deleteByExecutionId:S=>{y.removeAllBy(b=>b.executionId===S)},updateByExecutionAndSequence:(S,b,E)=>y.updateBy(I=>I.executionId===S&&I.sequence===b,E)}},instanceConfig:{resolve:()=>({platform:"memory",secretProviders:[],defaultSecretStoreProvider:"memory"})}}}});var gIt=e=>{let t={};for(let[r,n]of Object.entries(e))t[r]={description:n.description,inputSchema:n.inputSchema??Wd,execute:n.execute};return t},SIt=e=>typeof e=="object"&&e!==null&&"loadRepositories"in e&&typeof e.loadRepositories=="function",vIt=e=>typeof e=="object"&&e!==null&&"createRuntime"in e&&typeof e.createRuntime=="function",bIt=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind==="file",xIt=e=>{let t=e.storage??"memory";if(t==="memory")return RIe(e);if(bIt(t))return t.fs&&console.warn("@executor/sdk: Custom `fs` in file storage is not yet supported. Using default Node.js filesystem."),RX({cwd:t.cwd,workspaceRoot:t.workspaceRoot});if(SIt(t))return Yh({loadRepositories:t.loadRepositories});if(vIt(t))return t;throw new Error("Invalid storage option")},LIe=e=>{if(e!==null)try{return JSON.parse(e)}catch{return e}},EIt=e=>{try{return JSON.parse(e)}catch{return{}}},TIt=50,DIt=(e,t)=>{let r=FIe({onToolApproval:t.onToolApproval,onInteraction:t.onInteraction});return async n=>{let o=await e.executions.create({code:n}),i=0;for(;o.execution.status==="waiting_for_interaction"&&o.pendingInteraction!==null&&i{let t=xIt(e),r=e.tools?()=>gIt(e.tools):void 0,n=e.runtime&&typeof e.runtime!="string"?e.runtime:void 0,o=await cX({backend:t,createInternalToolMap:r,customCodeExecutor:n});return{execute:DIt(o,e),sources:o.sources,policies:o.policies,secrets:o.secrets,oauth:o.oauth,local:o.local,close:o.close}};var nl=e=>JSON.parse(JSON.stringify(e)),IIt=(e,t)=>{let r=e.find(t);return r!=null?nl(r):null},$d=(e,t)=>{let r=[],n=()=>{try{e.writeFileSync(t,JSON.stringify(r,null,2))}catch{}};return{items:r,hydrate:async()=>{try{if(await e.exists(t)){let o=await e.readFile(t),i=JSON.parse(o);Array.isArray(i)&&(r.length=0,r.push(...i))}}catch{}},findBy:o=>IIt(r,o),filterBy:o=>nl(r.filter(o)),insert:o=>{r.push(nl(o)),n()},upsertBy:(o,i)=>{let a=o(i),s=r.findIndex(c=>o(c)===a);s>=0?r[s]=nl(i):r.push(nl(i)),n()},removeBy:o=>{let i=r.findIndex(o);return i>=0?(r.splice(i,1),n(),!0):!1},removeAllBy:o=>{let i=r.length,a=r.filter(s=>!o(s));return r.length=0,r.push(...a),i!==a.length&&n(),i-a.length},updateBy:(o,i)=>{let a=r.find(o);return a?(Object.assign(a,i),n(),nl(a)):null}}},wIt=e=>{let{fs:t,resolveSecret:r}=e,n=e.root??"/.executor";if(t.mkdirSync)try{t.mkdirSync(n,{recursive:!0}),t.mkdirSync(`${n}/artifacts`,{recursive:!0})}catch{}return Yh({loadRepositories:async o=>{let i;try{if(await t.exists(`${n}/installation.json`))i=JSON.parse(await t.readFile(`${n}/installation.json`));else{let b=Br.make(`ws_fs_${crypto.randomUUID().slice(0,16)}`),E=Br.make(`acc_fs_${crypto.randomUUID().slice(0,16)}`);i={scopeId:b,actorScopeId:E,resolutionScopeIds:[b,E]},t.writeFileSync(`${n}/installation.json`,JSON.stringify(i,null,2))}}catch{let b=Br.make(`ws_fs_${crypto.randomUUID().slice(0,16)}`),E=Br.make(`acc_fs_${crypto.randomUUID().slice(0,16)}`);i={scopeId:b,actorScopeId:E,resolutionScopeIds:[b,E]}}let a=$d(t,`${n}/auth-artifacts.json`),s=$d(t,`${n}/auth-leases.json`),c=$d(t,`${n}/source-oauth-clients.json`),p=$d(t,`${n}/scope-oauth-clients.json`),d=$d(t,`${n}/provider-grants.json`),f=$d(t,`${n}/source-sessions.json`),m=$d(t,`${n}/secrets.json`),y=$d(t,`${n}/execution-runs.json`),g=$d(t,`${n}/execution-interactions.json`),S=$d(t,`${n}/execution-steps.json`);return await Promise.all([a.hydrate(),s.hydrate(),c.hydrate(),p.hydrate(),d.hydrate(),f.hydrate(),m.hydrate(),y.hydrate(),g.hydrate(),S.hydrate()]),{scope:{scopeName:"fs",scopeRoot:n},installation:{load:()=>nl(i),getOrProvision:()=>nl(i)},workspace:{config:await(async()=>{let b=null;try{await t.exists(`${n}/config.json`)&&(b=JSON.parse(await t.readFile(`${n}/config.json`)))}catch{}return{load:()=>({config:b,homeConfig:null,projectConfig:b}),writeProject:E=>{b=nl(E),t.writeFileSync(`${n}/config.json`,JSON.stringify(b,null,2))},resolveRelativePath:({path:E})=>E}})(),state:await(async()=>{let b={version:1,sources:{},policies:{}};try{await t.exists(`${n}/state.json`)&&(b=JSON.parse(await t.readFile(`${n}/state.json`)))}catch{}return{load:()=>nl(b),write:E=>{b=nl(E),t.writeFileSync(`${n}/state.json`,JSON.stringify(b,null,2))}}})(),sourceArtifacts:(()=>{let b=new Map;return{build:Cf,read:E=>b.get(E)??null,write:({sourceId:E,artifact:I})=>{b.set(E,I),t.writeFileSync(`${n}/artifacts/${E}.json`,JSON.stringify(I))},remove:E=>{b.delete(E);try{t.writeFileSync(`${n}/artifacts/${E}.json`,"")}catch{}}}})(),sourceAuth:{artifacts:{listByScopeId:b=>a.filterBy(E=>E.scopeId===b),listByScopeAndSourceId:({scopeId:b,sourceId:E})=>a.filterBy(I=>I.scopeId===b&&I.sourceId===E),getByScopeSourceAndActor:({scopeId:b,sourceId:E,actorScopeId:I,slot:T})=>a.findBy(k=>k.scopeId===b&&k.sourceId===E&&k.actorScopeId===I&&k.slot===T),upsert:b=>a.upsertBy(E=>`${E.scopeId}:${E.sourceId}:${E.actorScopeId}:${E.slot}`,b),removeByScopeSourceAndActor:({scopeId:b,sourceId:E,actorScopeId:I,slot:T})=>a.removeBy(k=>k.scopeId===b&&k.sourceId===E&&k.actorScopeId===I&&(T===void 0||k.slot===T)),removeByScopeAndSourceId:({scopeId:b,sourceId:E})=>a.removeAllBy(I=>I.scopeId===b&&I.sourceId===E)},leases:{listAll:()=>nl(s.items),getByAuthArtifactId:b=>s.findBy(E=>E.authArtifactId===b),upsert:b=>s.upsertBy(E=>E.authArtifactId,b),removeByAuthArtifactId:b=>s.removeBy(E=>E.authArtifactId===b)},sourceOauthClients:{getByScopeSourceAndProvider:({scopeId:b,sourceId:E,providerKey:I})=>c.findBy(T=>T.scopeId===b&&T.sourceId===E&&T.providerKey===I),upsert:b=>c.upsertBy(E=>`${E.scopeId}:${E.sourceId}:${E.providerKey}`,b),removeByScopeAndSourceId:({scopeId:b,sourceId:E})=>c.removeAllBy(I=>I.scopeId===b&&I.sourceId===E)},scopeOauthClients:{listByScopeAndProvider:({scopeId:b,providerKey:E})=>p.filterBy(I=>I.scopeId===b&&I.providerKey===E),getById:b=>p.findBy(E=>E.id===b),upsert:b=>p.upsertBy(E=>E.id,b),removeById:b=>p.removeBy(E=>E.id===b)},providerGrants:{listByScopeId:b=>d.filterBy(E=>E.scopeId===b),listByScopeActorAndProvider:({scopeId:b,actorScopeId:E,providerKey:I})=>d.filterBy(T=>T.scopeId===b&&T.actorScopeId===E&&T.providerKey===I),getById:b=>d.findBy(E=>E.id===b),upsert:b=>d.upsertBy(E=>E.id,b),removeById:b=>d.removeBy(E=>E.id===b)},sourceSessions:{listAll:()=>nl(f.items),listByScopeId:b=>f.filterBy(E=>E.scopeId===b),getById:b=>f.findBy(E=>E.id===b),getByState:b=>f.findBy(E=>E.state===b),getPendingByScopeSourceAndActor:({scopeId:b,sourceId:E,actorScopeId:I,credentialSlot:T})=>f.findBy(k=>k.scopeId===b&&k.sourceId===E&&k.actorScopeId===I&&k.status==="pending"&&(T===void 0||k.credentialSlot===T)),insert:b=>f.insert(b),update:(b,E)=>f.updateBy(I=>I.id===b,E),upsert:b=>f.upsertBy(E=>E.id,b),removeByScopeAndSourceId:(b,E)=>f.removeAllBy(I=>I.scopeId===b&&I.sourceId===E)>0}}},secrets:{getById:b=>m.findBy(E=>E.id===b),listAll:()=>m.items.map(b=>({id:b.id,providerId:b.providerId,name:b.name,purpose:b.purpose,createdAt:b.createdAt,updatedAt:b.updatedAt})),upsert:b=>m.upsertBy(E=>E.id,b),updateById:(b,E)=>m.updateBy(I=>I.id===b,{...E,updatedAt:Date.now()}),removeById:b=>m.removeBy(E=>E.id===b),resolve:r?({secretId:b,context:E})=>Promise.resolve(r({secretId:b,context:E})):({secretId:b})=>m.items.find(I=>I.id===b)?.value??null,store:b=>{let E=Date.now(),I={...b,createdAt:E,updatedAt:E};m.upsertBy(F=>F.id,I);let{value:T,...k}=I;return k},delete:b=>m.removeBy(E=>E.id===b.id),update:b=>m.updateBy(E=>E.id===b.id,{...b,updatedAt:Date.now()})},executions:{runs:{getById:b=>y.findBy(E=>E.id===b),getByScopeAndId:(b,E)=>y.findBy(I=>I.scopeId===b&&I.id===E),insert:b=>y.insert(b),update:(b,E)=>y.updateBy(I=>I.id===b,E)},interactions:{getById:b=>g.findBy(E=>E.id===b),listByExecutionId:b=>g.filterBy(E=>E.executionId===b),getPendingByExecutionId:b=>g.findBy(E=>E.executionId===b&&E.status==="pending"),insert:b=>g.insert(b),update:(b,E)=>g.updateBy(I=>I.id===b,E)},steps:{getByExecutionAndSequence:(b,E)=>S.findBy(I=>I.executionId===b&&I.sequence===E),listByExecutionId:b=>S.filterBy(E=>E.executionId===b),insert:b=>S.insert(b),deleteByExecutionId:b=>{S.removeAllBy(E=>E.executionId===b)},updateByExecutionAndSequence:(b,E,I)=>S.updateBy(T=>T.executionId===b&&T.sequence===E,I)}},instanceConfig:{resolve:()=>({platform:"fs",secretProviders:[],defaultSecretStoreProvider:"fs"})}}}})};export{AIt as createExecutor,wIt as createFsBackend};